disclaw/dist/agent/runner.d.ts
2026-04-08 14:24:45 +02:00

22 lines
No EOL
758 B
TypeScript

import type { Conversation } from "../db/database";
export interface RunAgentOptions {
workspacePath: string;
channelName: string;
userMessage: string;
conversationHistory: Conversation[];
abortController?: AbortController;
}
/**
* Runs the Claude Code CLI as a child process and returns the text response.
*
* The CLI is invoked with:
* claude -p "prompt" --output-format json
*
* The working directory is set to the workspace path so Claude Code
* automatically reads the CLAUDE.md file for agent identity and context.
*
* Timeout defaults to 120 seconds. The process is killed if it exceeds
* the timeout.
*/
export declare function runAgent(options: RunAgentOptions): Promise<string>;
//# sourceMappingURL=runner.d.ts.map