/** * Workspace tool factory — sandboxed read/write/glob/grep/ls/edit/bash. * * Mirrors `_harness/_tools.py` but uses Node's built-in fs and child_process * APIs instead of Python's pathlib + subprocess. * * All path arguments are resolved through `SandboxPolicy.checkRead/Write`, * which throws on path escape attempts. Bash output is hard-capped at * `sandbox.maxOutputBytes`. */ import { type SandboxPolicy } from "./sandbox.js"; import { type HarnessTool } from "./types.js"; export interface WorkspaceOptions { readOnly?: boolean; streaming?: boolean; diffMode?: boolean; multimodal?: boolean; onOutput?: (chunk: string) => void; } /** * Build the standard workspace tool kit. * * Default tools (7): read_file, write_file, glob, grep, ls, edit_file, bash. * `readOnly: true` drops write_file and edit_file. */ export declare function workspaceTools(sandbox: SandboxPolicy, opts?: WorkspaceOptions): HarnessTool[]; //# sourceMappingURL=workspace.d.ts.map