/** * just-bash adapter: `semgrep`, the semantic-grep command. * * `createSemgrepCommand({ fs })` returns a just-bash custom command the host * passes to `new Bash({ fs, customCommands: [...] })`, so an agent's shell * session gets chunk search without leaving bash: * * semgrep [-k N] "query" [path] * * One hit per line, grep-style and addressable — the line range hydrates * with the session's own tooling (`sed -n 12,34p file`): * * /content/pricing.md:12-34 [0.0323] Pricing > Plans — Plans start at… * * Dispatch follows the handle: a `PgFileSystem` constructed with the `embed` * option searches hybrid (BM25 + vector, RRF-fused); without one it is * BM25-only — same query language, weaker recall, zero configuration. All * imports from just-bash are type-only, so the optional peer dependency * stays optional. */ import type { Command } from "just-bash"; import type { PgFileSystem } from "../../core/filesystem.js"; export interface CreateSemgrepCommandOptions { /** * The searchable filesystem — normally the same `PgFileSystem` instance * the `Bash` session runs on, so results honor the handle's version, * excludes and mounts. */ fs: PgFileSystem; } /** * Build the `semgrep` command over a searchable `PgFileSystem`. Register it * on the session: `new Bash({ fs, customCommands: [createSemgrepCommand({ fs })] })`. */ export declare function createSemgrepCommand(options: CreateSemgrepCommandOptions): Command; //# sourceMappingURL=index.d.ts.map