(slug: string)
| 62 | // Selfhost scenarios share one workspace identity — leaked connections fail |
| 63 | // other scenarios' zero-state assertions, so remove everything this one made. |
| 64 | const removeConnectionsCode = (slug: string) => ` |
| 65 | const list = await tools.executor.coreTools.connections.list({}); |
| 66 | const mine = (list.ok ? list.data.connections : []).filter((c) => c.integration === ${JSON.stringify(slug)}); |
| 67 | for (const c of mine) { |
| 68 | await tools.executor.coreTools.connections.remove({ owner: c.owner, integration: c.integration, name: c.name }); |
| 69 | } |
| 70 | return { removed: mine.length }; |
| 71 | `; |
| 72 | |
| 73 | const sendEmailCode = (slug: string, subject: string) => ` |
| 74 | const found = await tools.search({ namespace: ${JSON.stringify(slug)}, query: "send email", limit: 5 }); |
no outgoing calls
no test coverage detected