MCPcopy Create free account
hub / github.com/Ark0N/Codeman / runPrompt

Method runPrompt

src/session.ts:1751–1868  ·  view source on GitHub ↗

* Runs a one-shot prompt and returns the result. * * This spawns Claude CLI with `--output-format stream-json` to get * structured JSON output. The promise resolves when Claude completes * the response. * * @param prompt - The prompt text to send to Claude * @param options - Opt

(
    prompt: string,
    options?: { model?: string; onProgress?: (info: { tokens?: number; status?: string }) => void }
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

runResearchAgentMethod · 0.95
runPlannerAgentMethod · 0.95
sendInputMethod · 0.95
registerPlanRoutesFunction · 0.95
registerSessionRoutesFunction · 0.95
runScheduledLoopMethod · 0.80

Calls 8

_resetBuffersMethod · 0.95
_handleTerminalOutputMethod · 0.95
processOutputMethod · 0.95
buildPromptArgsFunction · 0.85
buildClaudeEnvFunction · 0.85
errorMethod · 0.80
logMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected