MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / runPromptOnce

Function runPromptOnce

compatible-shell/src/cli.mjs:10–17  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

8import { TOOL_DEFINITIONS, executeToolCalls } from './tools.mjs'
9
10export async function runPromptOnce(options = {}) {
11 const state = createState(options)
12 await runUserTurn(options.prompt || '', state, null)
13 return {
14 messages: state.messages,
15 sessionPath: state.sessionStore.sessionPath,
16 }
17}
18
19async function main() {
20 const options = parseArgs(process.argv.slice(2))

Callers 2

mainFunction · 0.90
mainFunction · 0.85

Calls 2

createStateFunction · 0.85
runUserTurnFunction · 0.85

Tested by

no test coverage detected