(name, args)
| 40 | |
| 41 | const sayThenEnd = (t) => function* () { yield { type: "text", text: t } } |
| 42 | const toolThen = (name, args) => |
| 43 | function* () { |
| 44 | yield { |
| 45 | type: "native_tool_calls", |
| 46 | toolCalls: [{ index: 0, id: "call_1", function: { name, arguments: JSON.stringify(args) } }], |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // A — PreToolUse exit-2 blocks REAL tool execution (the command never runs). |
| 51 | { |
no outgoing calls
no test coverage detected