(slug: string)
| 108 | `; |
| 109 | |
| 110 | const invokeDownloadsCode = (slug: string) => ` |
| 111 | const found = await tools.search({ namespace: ${JSON.stringify(slug)}, query: "downloads", limit: 5 }); |
| 112 | const path = found.items[0]?.path; |
| 113 | if (!path) return { ok: false, error: "no downloads tool found", items: found.items }; |
| 114 | let t = tools; |
| 115 | for (const seg of path.split(".")) t = t[seg]; |
| 116 | const result = await t({ period: "last-week", package: "react" }); |
| 117 | return { ok: result.ok, path, data: result.ok ? result.data : result.error }; |
| 118 | `; |
| 119 | |
| 120 | const removeConnectionsCode = (slug: string) => ` |
| 121 | const list = await tools.executor.coreTools.connections.list({}); |
no outgoing calls
no test coverage detected