()
| 190 | // Tools the current mode is permitted to invoke (ask/plan = read-only, |
| 191 | // plan additionally gets write_plan, agent gets everything). |
| 192 | const allowedNamesFor = () => |
| 193 | new Set( |
| 194 | toolsForMode(mode) |
| 195 | .map((t) => t.schema.function.name) |
| 196 | .filter((n) => !disabledToolNames.has(n)), |
| 197 | ); |
| 198 | |
| 199 | history.push({ kind: "user", text: prompt, attachments: attachments && attachments.length ? attachments : undefined }); |
| 200 | emit({ type: "run-status", status: "running" }); |
no test coverage detected