(slug: string)
| 52 | `; |
| 53 | |
| 54 | const createHandoffCode = (slug: string) => ` |
| 55 | const handoff = await tools.executor.coreTools.connections.createHandoff({ |
| 56 | integration: ${JSON.stringify(slug)}, |
| 57 | owner: "org", |
| 58 | label: "Resend (emulated)", |
| 59 | }); |
| 60 | return handoff.ok ? { ok: true, url: handoff.data.url } : { ok: false, error: handoff.error }; |
| 61 | `; |
| 62 | |
| 63 | // Selfhost scenarios share one workspace identity — leaked connections fail |
| 64 | // other scenarios' zero-state assertions, so remove everything this one made. |