(slug: string)
| 131 | `; |
| 132 | |
| 133 | const removeConnectionsCode = (slug: string) => ` |
| 134 | const list = await tools.executor.coreTools.connections.list({}); |
| 135 | const mine = (list.ok ? list.data.connections : []).filter((c) => c.integration === ${JSON.stringify(slug)}); |
| 136 | for (const c of mine) { |
| 137 | await tools.executor.coreTools.connections.remove({ owner: c.owner, integration: c.integration, name: c.name }); |
| 138 | } |
| 139 | return { removed: mine.length }; |
| 140 | `; |
| 141 | |
| 142 | /** Run `execute`, auto-approving any policy-paused execution, and parse the |
| 143 | * sandbox's JSON return value. */ |
no outgoing calls
no test coverage detected