import { buildSemanticAgentPrompt, type SemanticAgentExecutor } from '../lib/semantic-agents'; import { type SandboxFactory } from '../lib/evidence-sandbox'; export interface AgentsRunOptions { base?: string; agentCmd?: string; domains?: string; force?: boolean; yes?: boolean; dryRun?: boolean; timeout?: string; json?: boolean; /** Environment names passed through to the agent BY NAME (`--pass-env`, repeatable). */ passEnv?: string[]; /** Injectable for tests. */ git?: (args: string) => string; executor?: SemanticAgentExecutor; cwd?: string; /** The parent environment to classify and allowlist from (default process.env). */ env?: NodeJS.ProcessEnv; /** Sandbox factory (default: detached git worktree outside the repository). */ sandbox?: SandboxFactory; } /** * The production executor: the operator's template becomes an argv list * (never a shell line), `{prompt}` becomes exactly one argument, argv[0] is * resolved to a real executable, and the child receives the ALLOWLISTED * environment built once up front — plus ES_AGENT_PROMPT for templates that * still read the prompt from the environment. Its cwd is the sandbox. */ export declare function buildSpawnExecutor(params: { argvTemplate: readonly string[]; spawnFile: string; spawnPrefixArgs: readonly string[]; timeoutSeconds: number; childEnv: Record; }): SemanticAgentExecutor; export declare function agentsRunCommand(options?: AgentsRunOptions): Promise; export interface AgentsCostOptions { since?: string; json?: boolean; cwd?: string; } /** Parse --since: '30d'/'24h' relative forms or an ISO date. */ export declare function resolveSinceIso(since: string | undefined, nowMs?: number): string | undefined; /** * `enterprise-skills agents cost` — summarize the local agent-cost ledger * (spec §21). Visibility only: the numbers are what the customer's own agent * command reported; unmetered runs are counted and stated, never estimated. */ export declare function agentsCostCommand(options?: AgentsCostOptions): Promise; /** Exported for the plan/prompt smoke test. */ export { buildSemanticAgentPrompt }; //# sourceMappingURL=agents.d.ts.map