(slug: string, connection: string, tool: string, args: unknown)
| 40 | // ToolResult envelope fields the assertions need. Tool failures are values in |
| 41 | // the sandbox (`{ ok: false, error }`), not exceptions. |
| 42 | const invokeToolCode = (slug: string, connection: string, tool: string, args: unknown) => ` |
| 43 | const result = await tools.${slug}.org.${connection}.${tool}(${JSON.stringify(args)}); |
| 44 | return { ok: result.ok, payload: result.ok ? result.data : result.error }; |
| 45 | `; |
| 46 | |
| 47 | type SandboxToolOutcome = { |
| 48 | readonly ok: boolean; |
no outgoing calls
no test coverage detected