/** * invoke-agent — feat/codex-support P3-4/P3-5 * * forgen 의 sub-agent (assets/claude/agents/.md) 를 host-aware 로 호출. * Claude 의 Task tool 동치 — 별도 child process 에서 sub-agent 의 system prompt 를 * prefix 로 사용자 task 실행 후 결과 반환. * * Recursion guard: FORGEN_INVOKE_DEPTH env var 로 depth 추적, max 2 (sub-agent 가 * 또 sub-agent 호출 시도 → 차단). */ import { type ExecHostResult } from './exec-host.js'; import type { HostId } from '../core/trust-layer-intent.js'; export interface InvokeAgentOptions { agentName: string; task: string; /** Child process timeout (ms). Default 60s. */ timeoutMs?: number; /** Override host (default: profile.default_host). */ host?: HostId; } export interface InvokeAgentResult { agentName: string; host: HostId; summary: string; durationMs: number; usage: ExecHostResult['usage']; } export declare function invokeAgent(opts: InvokeAgentOptions): Promise;