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

Function editOk

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

Source from the content-addressed store, hash-verified

17}
18
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 });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected