Skip to main content

Crate harness_glob

Crate harness_glob 

Source
Expand description

Glob tool — Rust port of @agent-sh/harness-glob.

Conforms to agent-knowledge/design/glob.md (language-neutral spec). Same two-stage pipeline as the TS version: ignore walker for gitignore-respecting enumeration, then in-process globset match with bash-glob semantics.

Structs§

ErrorResult
GlobEngineInput
GlobParams
Ported from @agent-sh/harness-glob/src/schema.ts. Serde’s deny_unknown_fields plus a pre-check for the known-alias table lets us return the same targeted hints the TS version ships.
GlobPathsMeta
GlobPathsResult
GlobSessionConfig

Enums§

GlobParseError
GlobResult

Constants§

DEFAULT_HEAD_LIMIT
DEFAULT_OFFSET
DEFAULT_TIMEOUT_MS
FUZZY_SUGGESTION_LIMIT
GLOB_MAX_BYTES
GLOB_MAX_FILE_SIZE
GLOB_MAX_PATHS_SCANNED
GLOB_TOOL_DESCRIPTION
GLOB_TOOL_NAME

Traits§

GlobEngine
Pluggable engine — default enumerates files via ignore::WalkBuilder (the same machinery ripgrep uses for its ignore-aware walk). The pattern filter happens OUTSIDE this engine in the orchestrator, matching the TS design where the engine is pure enumeration.

Functions§

default_engine
format_paths
glob
has_recursive_marker
safe_parse_glob_params
suggest_siblings