MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / launchClawcodexCommand

Function launchClawcodexCommand

ui-tui/src/lib/externalCli.ts:10–16  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

8const resolveClawcodexBin = () => process.env.CLAWCODEX_BIN?.trim() || 'clawcodex'
9
10export const launchClawcodexCommand = (args: string[]): Promise<LaunchResult> =>
11 new Promise(resolve => {
12 const child = spawn(resolveClawcodexBin(), args, { stdio: 'inherit' })
13
14 child.on('error', err => resolve({ code: null, error: err.message }))
15 child.on('exit', code => resolve({ code }))
16 })

Callers

nothing calls this directly

Calls 4

resolveClawcodexBinFunction · 0.85
onMethod · 0.80
resolveFunction · 0.70
spawnFunction · 0.50

Tested by

no test coverage detected