/** * Executor Controller — orchestration for execute / execute_file / batch_execute. * * Owns a single PolyglotExecutor instance and applies the intent progressive- * disclosure pass (B3) on large outputs. The tool handlers are thin shims that * delegate here; this layer composes the executor service + intent search. * * Trust model (re-stated because it is load-bearing): the executor runs * USER-SUPPLIED code on the HOST as the current user. There is no OS-level * sandbox. Timeouts, the env denylist, and execute_file's boundary/deny-glob * guard are best-effort containment, NOT isolation. */ import type { ToolResponse } from "@massa-th0th/shared"; import { PolyglotExecutor } from "../services/executor/index.js"; import type { ExecuteParams } from "../tools/execute.js"; import type { ExecuteFileParams } from "../tools/execute_file.js"; import type { BatchExecuteParams } from "../tools/batch_execute.js"; export declare class ExecutorController { private static instance; private readonly executor; constructor(executor?: PolyglotExecutor); static getInstance(): ExecutorController; /** For tests: reset the singleton (cleans up backgrounded processes). */ static resetInstance(): void; get runtimes(): import("../index.js").RuntimeMap; /** execute (ctx_execute). */ execute(params: ExecuteParams): Promise; /** execute_file (ctx_execute_file). */ executeFile(params: ExecuteFileParams): Promise; /** * batch_execute (ctx_batch_execute) — run N shell commands via run-pool. * Order is preserved (results[i] ↔ commands[i]); a failing command becomes a * `rejected` entry, never aborting its siblings. * * Each command is itself run through the executor's `shell` language so it * inherits the same timeout/env-denylist/byte-cap containment as `execute`. */ batchExecute(params: BatchExecuteParams): Promise; /** Bound export for the controller layer. */ static get MAX_TIMEOUT_MS(): number; } //# sourceMappingURL=executor-controller.d.ts.map