(slug: string)
| 121 | `; |
| 122 | |
| 123 | const invokeDownloadsCode = (slug: string) => ` |
| 124 | const found = await tools.search({ namespace: ${JSON.stringify(slug)}, query: "downloads", limit: 5 }); |
| 125 | const path = found.items[0]?.path; |
| 126 | if (!path) return { ok: false, error: "no downloads tool found", items: found.items }; |
| 127 | let t = tools; |
| 128 | for (const seg of path.split(".")) t = t[seg]; |
| 129 | const result = await t({ period: "last-week", package: "react" }); |
| 130 | return { ok: result.ok, path, data: result.ok ? result.data : result.error }; |
| 131 | `; |
| 132 | |
| 133 | const removeConnectionsCode = (slug: string) => ` |
| 134 | const list = await tools.executor.coreTools.connections.list({}); |
no outgoing calls
no test coverage detected