UNPKG

@promptbook/node

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

24 lines (23 loc) 819 B
import type { PromptRunOptions } from '../types/PromptRunOptions'; import type { PromptRunResult } from '../types/PromptRunResult'; import type { PromptRunner } from '../types/PromptRunner'; import type { ClaudeCodeRunnerOptions } from './ClaudeCodeRunnerOptions'; /** * Runs prompts via the Claude Code CLI. */ export declare class ClaudeCodeRunner implements PromptRunner { private readonly options; readonly name = "claude-code"; /** * Creates a new Claude Code runner. */ constructor(options?: ClaudeCodeRunnerOptions); /** * Runs the prompt using Claude Code and parses usage output. */ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>; /** * Runs one Claude Code CLI process and returns its raw output. */ private runClaudeCodeOnce; }