(slug: string)
| 118 | `; |
| 119 | |
| 120 | const removeConnectionsCode = (slug: string) => ` |
| 121 | const list = await tools.executor.coreTools.connections.list({}); |
| 122 | const mine = (list.ok ? list.data.connections : []).filter((c) => c.integration === ${JSON.stringify(slug)}); |
| 123 | for (const c of mine) { |
| 124 | await tools.executor.coreTools.connections.remove({ owner: c.owner, integration: c.integration, name: c.name }); |
| 125 | } |
| 126 | return { removed: mine.length }; |
| 127 | `; |
| 128 | |
| 129 | /** Run `execute`, auto-approving any policy-paused execution, and parse the |
| 130 | * sandbox's JSON return value. */ |
no outgoing calls
no test coverage detected