(slug: string, specUrl: string)
| 28 | // does, and the platform derives the paste-a-token auth method from the |
| 29 | // spec's security scheme. |
| 30 | const addSpecCode = (slug: string, specUrl: string) => ` |
| 31 | const added = await tools.executor.openapi.addSpec({ |
| 32 | spec: { kind: "url", url: ${JSON.stringify(specUrl)} }, |
| 33 | slug: ${JSON.stringify(slug)}, |
| 34 | }); |
| 35 | return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error }; |
| 36 | `; |
| 37 | |
| 38 | const createHandoffCode = (slug: string) => ` |
| 39 | const handoff = await tools.executor.coreTools.connections.createHandoff({ |
no outgoing calls
no test coverage detected