import { AgentDispatcher } from './agent-dispatch.js'; import type { AgentExecutionResult, DispatchDependencies } from './types.js'; export type ParsedAgentCommand = { readonly authorizationScope: 'project'; readonly commandId: string; readonly projectId: string; readonly task: string; } | { readonly authorizationScope: 'studio'; readonly commandId: 'improve'; readonly studioAction: 'improve'; readonly task: string; }; export interface AgentHostAdapter { readonly execute: (rawCommand: unknown, trustedHostContext: unknown) => Promise; } export declare function createAgentHostAdapter(rawBundle: unknown, dependencies: DispatchDependencies): AgentHostAdapter; export declare function parseAgentCommand(value: unknown): ParsedAgentCommand | null; /** * Executable host boundary. Command text supplies only exact command/project syntax and task data; * verified identity, install root, correlation, call chain, and internal envelope come separately. */ export declare function executeAgentCommand(rawCommand: unknown, trustedHostContext: unknown, dispatcher: AgentDispatcher): Promise;