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

Function createRunRequest

tools/claw-launcher-ui/server.mjs:768–780  ·  view source on GitHub ↗
(body, config)

Source from the content-addressed store, hash-verified

766}
767
768function createRunRequest(body, config) {
769 const prompt = String(body.prompt || '').trim()
770 const workspaceDir = resolve(config.workspaceDir)
771 return {
772 id: createId('queued-run'),
773 prompt,
774 config,
775 workspaceDir,
776 sessionId: state.sessions.selectedSessionId || state.run.sessionId || null,
777 createdAt: safeNow(),
778 approval: getApprovalRequirement({ prompt, config, workspaceDir }),
779 }
780}
781
782function snapshotState() {
783 syncQueuedState()

Callers 1

startClawPromptFunction · 0.85

Calls 3

createIdFunction · 0.85
safeNowFunction · 0.85
getApprovalRequirementFunction · 0.85

Tested by

no test coverage detected