import type { AgentTool } from "@caupulican/pi-agent-core"; import { type Static, Type } from "typebox"; import { spawnProcess } from "../../utils/child-process.ts"; import type { ToolDefinition } from "../extensions/types.ts"; import { type OrchestrationExecutionPolicy } from "../orchestration/contracts.ts"; declare const runProcessSchema: Type.TObject<{ executable: Type.TString; args: Type.TOptional>; }>; export type RunProcessInput = Static; export interface RunProcessDetails { outcome: "exited" | "failed" | "aborted" | "timeout" | "output_limit"; executable: string; exitCode: number | null; durationMs: number; truncated: boolean; } export interface RunProcessToolOptions { policy: OrchestrationExecutionPolicy; maxWallClockMs: number; spawn?: typeof spawnProcess; /** Additional environment resolved for the execution cwd; the policy allowlist still applies. */ environment?: (cwd: string) => NodeJS.ProcessEnv; } export declare function createRunProcessToolDefinition(cwd: string, options: RunProcessToolOptions): ToolDefinition; export declare function createRunProcessTool(cwd: string, options: RunProcessToolOptions): AgentTool; export {}; //# sourceMappingURL=run-process.d.ts.map