/** * agent.ts * * Single-shot agent chat — runs a driver session without a flow. * Useful for ad-hoc tasks and skill invocations. * * The interactive REPL lives at @skaile/workspaces/tui (startRepl). */ import type { AgentEvent } from "@skaile/workspaces/bridge"; /** * Options for the agent REPL session (legacy). * * @docLink packages/runner/dev-guide#agent-chat-single-shot */ export interface AgentReplOptions { /** GitAgent definition directory (SOUL.md, RULES.md, knowledge/) */ agentDir?: string; /** Project working directory for the agent */ projectDir: string; /** Bridge driver: 'omp' | 'claude-sdk' | 'codex' (default: 'omp') */ driver?: string; /** LLM model override */ model?: string; /** LLM provider override */ provider?: string; /** Path to settings.json for API key resolution */ settingsFile?: string; /** Called for every raw agent event */ onEvent?: (event: AgentEvent) => void; /** Called for log lines */ onLog?: (line: string) => void; /** Prompts directory for deployed command files */ promptsDir?: string; } /** * Options for a single-shot agent chat session. * * @docLink packages/runner/dev-guide#agent-chat-single-shot */ export interface AgentChatOptions extends AgentReplOptions { /** The message to send */ message: string; /** Optional skill ID — if provided, the skill prompt is prepended */ skill?: string; } /** * Send a single message to an agent and wait for the response. * Prints agent output to stdout, then exits. * @docLink packages/runner/dev-guide#agent-chat-single-shot */ export declare function runAgentChat(opts: AgentChatOptions): Promise; //# sourceMappingURL=agent.d.ts.map