/** * batch — constants and shared types. */ export declare const MAX_LINES: number; export declare const MAX_BYTES: number; /** Per-line byte cap applied to read, rg, and bash output before aggregate limits. */ export declare const MAX_BYTES_PER_LINE: number; export declare const SAFE_FULL_READ_LIMIT = 400; export declare const TARGETED_READ_LINE_LIMIT = 500; export declare const MAX_CONTEXT_MAP_ENTRIES = 100; export declare const MAX_TOTAL_RESULT_LINES = 1500; export declare const BATCH_READ_MAX_TOTAL_BYTES: number; export declare const MAX_DIRECTORY_LISTING_ENTRIES: number; export declare const BASH_SOFT_TIMEOUT_MS = 120000; export declare const BASH_DEFAULT_TIMEOUT_MS: number; export declare const BASH_POLL_TAIL_LINES = 50; export declare const MAX_BASH_OUTPUT_BYTES: number; export declare const MAX_BASH_OUTPUT_LINES: number; /** Post-process caps for rg match output (per batch rg op). */ export declare const RG_MAX_OUTPUT_LINES: number; export declare const RG_MAX_OUTPUT_BYTES: number; /** Default --max-count per file when searching broad paths (`.` / `..`) without `n`. */ export declare const RG_DEFAULT_MAX_COUNT: number; export declare const COMPRESS_TOKEN_FLOOR = 50; export declare const COMPRESS_VERBATIM_MAX_TOKENS = 8000; export declare const COMPRESS_SAFETY_SCAN_HEAD = 5; export declare const COMPRESS_SAFETY_SCAN_TAIL = 5; export declare const COMPRESS_SAFETY_SCAN_MAX_NEEDLES = 20; export declare const COMPRESS_TERSE_MIN_SAVINGS_PCT = 3; export declare const COMPRESS_PASSTHROUGH_PATTERNS: RegExp[]; export declare const COMPRESS_VERBATIM_PATTERNS: RegExp[]; export declare const COMPRESS_SAFETY_NEEDLES: string[]; export declare const RG_SIGNATURES_MAX_FILES = 10; export interface EditReplacement { f: string; r: string; } export interface FileOpInput { o: "read" | "write" | "edit" | "delete" | "bash" | "rg" | "patch"; p: string; c?: string; e?: EditReplacement[]; s?: number; l?: number; i?: string; t?: number; h?: string; q?: string; n?: number; u?: number; } export interface RgOpInput { o: "rg"; p: string; q: string; l?: boolean; i?: boolean; t?: string; n?: number; u?: number; } export interface ContextMapEntry { kind: string; name: string; startLine: number; endLine: number; parent?: string; signature?: string; } export interface OpResult { op: "read" | "write" | "edit" | "delete" | "bash" | "rg" | "patch" | "search" | "fetch"; path?: string; status: "ok" | "error" | "skipped" | "pending"; content?: string; bytes?: number; blocksChanged?: number; totalLines?: number; contextMap?: boolean; directoryListing?: boolean; language?: string; symbols?: ContextMapEntry[]; symbolsTruncated?: boolean; warning?: string; truncated?: boolean; nextOffset?: number; enclosingSignatures?: Record; skipped?: boolean; reason?: "aggregate_line_limit" | "aggregate_byte_limit"; consumed?: { lines: number; bytes: number; }; remainingOps?: number; error?: string; hint?: string; retryable?: boolean; suggestedFix?: string; id?: string; command?: string; exitCode?: number; stdout?: string; stderr?: string; duration?: number; timingTier?: string; q?: string; s?: number; l?: number; affected?: { added: string[]; modified: string[]; deleted: string[]; }; exact?: boolean; query?: string; url?: string; filePath?: string; contentLength?: number; } export interface ReadOptions { /** * When false, readWithOffsetLimit ignores regular batch MAX_LINES and total * MAX_BYTES caps. batch_read applies its own safe full-file and targeted-read * guards before calling this helper. */ truncate?: boolean; toolName?: "batch" | "batch_read"; } export interface ExecuteOptions { readOptions?: ReadOptions; includeLimitWarnings?: boolean; } export type ContextLanguage = "typescript" | "javascript" | "python" | "terraform" | "hcl" | "yaml" | "dockerfile" | "plain"; export interface FileContextMap { language: ContextLanguage; symbols: ContextMapEntry[]; symbolsTruncated?: boolean; } export type BatchTheme = { fg: (color: string, text: string) => string; bold: (s: string) => string; }; type BatchToolResult = { content: Array<{ type: "text"; text: string; }>; details?: { results: OpResult[]; }; _toolCallId?: string; }; export type BatchOnUpdate = (partial: BatchToolResult) => void; export interface PendingBashResult { id: string; command: string; status: "pending" | "completed"; exitCode?: number; stdout?: string; stderr?: string; duration?: number; timingTier?: string; } export type BashOpResult = OpResult; export {}; //# sourceMappingURL=constants.d.ts.map