MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / shellRun

Function shellRun

test/completion-gate.test.ts:21–21  ·  view source on GitHub ↗
(cmd: string)

Source from the content-addressed store, hash-verified

19const editOk = (name: string): MsgLike => ({ role: 'tool', name, content: 'Applied 1 edit (syntax validated)' });
20const editErr = (name: string): MsgLike => ({ role: 'tool', name, content: '[SYNTAX_REJECTED] would break file' });
21const shellRun = (cmd: string): MsgLike => ({ role: 'assistant', tool_calls: [{ function: { name: 'shell', arguments: JSON.stringify({ command: cmd }) } }] });
22const shellOut = (out: string): MsgLike => ({ role: 'tool', name: 'shell', content: out });
23
24console.log('— claim extraction (EN + FA) —');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected