omnicell-router 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/RELEASING.md +238 -238
  2. package/RELEASING.zh-CN.md +230 -230
  3. package/backend/dist/capture/recorder.js +2 -1
  4. package/backend/dist/cli/clients/base.js +8 -16
  5. package/backend/dist/cli/clients/dsh.js +8 -16
  6. package/backend/dist/cli/clients/pi.js +16 -9
  7. package/backend/dist/cli/types.d.ts +5 -0
  8. package/backend/dist/config/env.js +2 -1
  9. package/backend/dist/config/index.js +2 -0
  10. package/backend/dist/config/types.d.ts +23 -0
  11. package/backend/dist/harness/adapters/amp.d.ts +2 -0
  12. package/backend/dist/harness/adapters/amp.js +7 -0
  13. package/backend/dist/harness/adapters/claude.d.ts +2 -0
  14. package/backend/dist/harness/adapters/claude.js +7 -0
  15. package/backend/dist/harness/adapters/cline.d.ts +2 -0
  16. package/backend/dist/harness/adapters/cline.js +6 -0
  17. package/backend/dist/harness/adapters/codex.d.ts +2 -0
  18. package/backend/dist/harness/adapters/codex.js +6 -0
  19. package/backend/dist/harness/adapters/cursor.d.ts +5 -0
  20. package/backend/dist/harness/adapters/cursor.js +10 -0
  21. package/backend/dist/harness/adapters/declarative.d.ts +62 -0
  22. package/backend/dist/harness/adapters/declarative.js +202 -0
  23. package/backend/dist/harness/adapters/dsh.d.ts +5 -0
  24. package/backend/dist/harness/adapters/dsh.js +6 -0
  25. package/backend/dist/harness/adapters/gemini-cli.d.ts +2 -0
  26. package/backend/dist/harness/adapters/gemini-cli.js +7 -0
  27. package/backend/dist/harness/adapters/github-copilot.d.ts +5 -0
  28. package/backend/dist/harness/adapters/github-copilot.js +10 -0
  29. package/backend/dist/harness/adapters/index.d.ts +44 -0
  30. package/backend/dist/harness/adapters/index.js +99 -0
  31. package/backend/dist/harness/adapters/opencode.d.ts +2 -0
  32. package/backend/dist/harness/adapters/opencode.js +55 -0
  33. package/backend/dist/harness/adapters/pi.d.ts +1 -0
  34. package/backend/dist/harness/adapters/pi.js +22 -0
  35. package/backend/dist/harness/adapters/skills-paths.d.ts +15 -0
  36. package/backend/dist/harness/adapters/skills-paths.js +17 -0
  37. package/backend/dist/harness/adapters/types.d.ts +174 -0
  38. package/backend/dist/harness/adapters/types.js +12 -0
  39. package/backend/dist/harness/adapters/universal.d.ts +6 -0
  40. package/backend/dist/harness/adapters/universal.js +10 -0
  41. package/backend/dist/harness/adapters/windsurf.d.ts +2 -0
  42. package/backend/dist/harness/adapters/windsurf.js +10 -0
  43. package/backend/dist/harness/adapters/zed.d.ts +2 -0
  44. package/backend/dist/harness/adapters/zed.js +6 -0
  45. package/backend/dist/harness/awesome-opencode.d.ts +40 -0
  46. package/backend/dist/harness/awesome-opencode.js +75 -0
  47. package/backend/dist/harness/browse.d.ts +202 -0
  48. package/backend/dist/harness/browse.js +1214 -0
  49. package/backend/dist/harness/catalog-npm.d.ts +59 -0
  50. package/backend/dist/harness/catalog-npm.js +145 -0
  51. package/backend/dist/harness/clawhub.d.ts +212 -0
  52. package/backend/dist/harness/clawhub.js +426 -0
  53. package/backend/dist/harness/config-file.d.ts +29 -0
  54. package/backend/dist/harness/config-file.js +35 -0
  55. package/backend/dist/harness/detail.d.ts +74 -0
  56. package/backend/dist/harness/detail.js +330 -0
  57. package/backend/dist/harness/discover.d.ts +118 -0
  58. package/backend/dist/harness/discover.js +507 -0
  59. package/backend/dist/harness/drift.d.ts +21 -0
  60. package/backend/dist/harness/drift.js +25 -0
  61. package/backend/dist/harness/hash.d.ts +10 -0
  62. package/backend/dist/harness/hash.js +63 -0
  63. package/backend/dist/harness/hosts.d.ts +18 -0
  64. package/backend/dist/harness/hosts.js +15 -0
  65. package/backend/dist/harness/install.d.ts +88 -0
  66. package/backend/dist/harness/install.js +301 -0
  67. package/backend/dist/harness/inventory.d.ts +10 -0
  68. package/backend/dist/harness/inventory.js +198 -0
  69. package/backend/dist/harness/ledger.d.ts +39 -0
  70. package/backend/dist/harness/ledger.js +83 -0
  71. package/backend/dist/harness/maintenance.d.ts +115 -0
  72. package/backend/dist/harness/maintenance.js +603 -0
  73. package/backend/dist/harness/manifest.d.ts +31 -0
  74. package/backend/dist/harness/manifest.js +234 -0
  75. package/backend/dist/harness/net.d.ts +86 -0
  76. package/backend/dist/harness/net.js +113 -0
  77. package/backend/dist/harness/opencode-cafe.d.ts +40 -0
  78. package/backend/dist/harness/opencode-cafe.js +85 -0
  79. package/backend/dist/harness/opencode-ecosystem.d.ts +34 -0
  80. package/backend/dist/harness/opencode-ecosystem.js +246 -0
  81. package/backend/dist/harness/pi-dev.d.ts +81 -0
  82. package/backend/dist/harness/pi-dev.js +187 -0
  83. package/backend/dist/harness/probe.d.ts +33 -0
  84. package/backend/dist/harness/probe.js +85 -0
  85. package/backend/dist/harness/registry.d.ts +2 -0
  86. package/backend/dist/harness/registry.js +26 -0
  87. package/backend/dist/harness/scopes.d.ts +21 -0
  88. package/backend/dist/harness/scopes.js +22 -0
  89. package/backend/dist/harness/skill-md.d.ts +18 -0
  90. package/backend/dist/harness/skill-md.js +71 -0
  91. package/backend/dist/harness/skills-sh.d.ts +109 -0
  92. package/backend/dist/harness/skills-sh.js +178 -0
  93. package/backend/dist/harness/smithery.d.ts +64 -0
  94. package/backend/dist/harness/smithery.js +146 -0
  95. package/backend/dist/harness/sources/awesome-opencode.d.ts +11 -0
  96. package/backend/dist/harness/sources/awesome-opencode.js +39 -0
  97. package/backend/dist/harness/sources/clawhub.d.ts +2 -0
  98. package/backend/dist/harness/sources/clawhub.js +83 -0
  99. package/backend/dist/harness/sources/github.d.ts +9 -0
  100. package/backend/dist/harness/sources/github.js +202 -0
  101. package/backend/dist/harness/sources/mcp-official.d.ts +2 -0
  102. package/backend/dist/harness/sources/mcp-official.js +110 -0
  103. package/backend/dist/harness/sources/npm.d.ts +2 -0
  104. package/backend/dist/harness/sources/npm.js +152 -0
  105. package/backend/dist/harness/sources/opencode-cafe.d.ts +11 -0
  106. package/backend/dist/harness/sources/opencode-cafe.js +41 -0
  107. package/backend/dist/harness/sources/smithery.d.ts +2 -0
  108. package/backend/dist/harness/sources/smithery.js +81 -0
  109. package/backend/dist/harness/spi.d.ts +98 -0
  110. package/backend/dist/harness/spi.js +8 -0
  111. package/backend/dist/harness/stars.d.ts +70 -0
  112. package/backend/dist/harness/stars.js +202 -0
  113. package/backend/dist/harness/translation.d.ts +142 -0
  114. package/backend/dist/harness/translation.js +567 -0
  115. package/backend/dist/harness/tree.d.ts +13 -0
  116. package/backend/dist/harness/tree.js +19 -0
  117. package/backend/dist/harness/types.d.ts +286 -0
  118. package/backend/dist/harness/types.js +8 -0
  119. package/backend/dist/harness/writers/extension.d.ts +116 -0
  120. package/backend/dist/harness/writers/extension.js +219 -0
  121. package/backend/dist/harness/writers/mcp.d.ts +72 -0
  122. package/backend/dist/harness/writers/mcp.js +195 -0
  123. package/backend/dist/harness/writers/skill.d.ts +60 -0
  124. package/backend/dist/harness/writers/skill.js +146 -0
  125. package/backend/dist/opencode/agents.d.ts +5 -0
  126. package/backend/dist/opencode/agents.js +10 -1
  127. package/backend/dist/opencode/catalog/cache.js +2 -1
  128. package/backend/dist/opencode/catalog/logos.js +2 -1
  129. package/backend/dist/opencode/catalog/ocr-store.js +2 -1
  130. package/backend/dist/opencode/catalog/overrides-store.js +2 -1
  131. package/backend/dist/opencode/credentials/factory.js +10 -27
  132. package/backend/dist/opencode/credentials/ocr-store.js +2 -1
  133. package/backend/dist/opencode/provider-defs.js +2 -1
  134. package/backend/dist/opencode/user-config.js +8 -16
  135. package/backend/dist/providers/registry.d.ts +15 -4
  136. package/backend/dist/providers/registry.js +29 -5
  137. package/backend/dist/providers/virtual-meta.d.ts +13 -0
  138. package/backend/dist/providers/virtual-meta.js +18 -0
  139. package/backend/dist/quota/store.js +2 -1
  140. package/backend/dist/resilience/breaker-state.js +2 -1
  141. package/backend/dist/resilience/credential-state.js +2 -1
  142. package/backend/dist/routes/console.js +137 -15
  143. package/backend/dist/routes/harness.d.ts +2 -0
  144. package/backend/dist/routes/harness.js +622 -0
  145. package/backend/dist/server.js +4 -0
  146. package/backend/dist/session/session-manager.js +2 -1
  147. package/backend/dist/surfaces/systemone-probe.d.ts +25 -0
  148. package/backend/dist/surfaces/systemone-probe.js +74 -0
  149. package/backend/dist/utils/atomic-write.d.ts +12 -0
  150. package/backend/dist/utils/atomic-write.js +29 -0
  151. package/bin/ocr.js +2 -2
  152. package/frontend/dist/assets/{index-DEo2iAT7.css → index-1o7qI-KJ.css} +1 -1
  153. package/frontend/dist/assets/index-DvXKvNxl.js +962 -0
  154. package/frontend/dist/index.html +2 -2
  155. package/package.json +87 -87
  156. package/backend/dist/budget/budget-manager.d.ts +0 -25
  157. package/backend/dist/budget/budget-manager.js +0 -54
  158. package/backend/dist/config/governance-limits.d.ts +0 -68
  159. package/backend/dist/config/governance-limits.js +0 -261
  160. package/backend/dist/flywheel/collector.d.ts +0 -74
  161. package/backend/dist/flywheel/collector.js +0 -235
  162. package/backend/dist/flywheel/dataset.d.ts +0 -130
  163. package/backend/dist/flywheel/dataset.js +0 -638
  164. package/backend/dist/flywheel/decision-capture.d.ts +0 -68
  165. package/backend/dist/flywheel/decision-capture.js +0 -85
  166. package/backend/dist/flywheel/prune.d.ts +0 -133
  167. package/backend/dist/flywheel/prune.js +0 -495
  168. package/backend/dist/flywheel/schema.d.ts +0 -108
  169. package/backend/dist/flywheel/schema.js +0 -117
  170. package/backend/dist/flywheel/trainer.d.ts +0 -84
  171. package/backend/dist/flywheel/trainer.js +0 -198
  172. package/backend/dist/opencode/catalog/custom-store.d.ts +0 -50
  173. package/backend/dist/opencode/catalog/custom-store.js +0 -144
  174. package/backend/dist/opencode/credentials/push.d.ts +0 -38
  175. package/backend/dist/opencode/credentials/push.js +0 -116
  176. package/backend/dist/opencode/credentials/reconcile.d.ts +0 -49
  177. package/backend/dist/opencode/credentials/reconcile.js +0 -216
  178. package/backend/dist/opencode/sync.d.ts +0 -29
  179. package/backend/dist/opencode/sync.js +0 -186
  180. package/backend/dist/pipeline/account-selection.d.ts +0 -101
  181. package/backend/dist/pipeline/account-selection.js +0 -112
  182. package/backend/dist/providers/systemone.d.ts +0 -29
  183. package/backend/dist/providers/systemone.js +0 -170
  184. package/backend/dist/ratelimit/duration.d.ts +0 -24
  185. package/backend/dist/ratelimit/duration.js +0 -43
  186. package/backend/dist/ratelimit/governance-runtime.d.ts +0 -121
  187. package/backend/dist/ratelimit/governance-runtime.js +0 -183
  188. package/backend/dist/ratelimit/index.d.ts +0 -4
  189. package/backend/dist/ratelimit/index.js +0 -4
  190. package/backend/dist/ratelimit/limiter.d.ts +0 -157
  191. package/backend/dist/ratelimit/limiter.js +0 -244
  192. package/backend/dist/ratelimit/sliding-window-counter.d.ts +0 -63
  193. package/backend/dist/ratelimit/sliding-window-counter.js +0 -103
  194. package/backend/dist/ratelimit/subject.d.ts +0 -26
  195. package/backend/dist/ratelimit/subject.js +0 -28
  196. package/backend/dist/resilience/account-state.d.ts +0 -84
  197. package/backend/dist/resilience/account-state.js +0 -228
  198. package/backend/dist/router/layer1-classifier.d.ts +0 -111
  199. package/backend/dist/router/layer1-classifier.js +0 -467
  200. package/backend/dist/router/layer2-judge.d.ts +0 -111
  201. package/backend/dist/router/layer2-judge.js +0 -373
  202. package/backend/dist/router/retry-escalation.d.ts +0 -89
  203. package/backend/dist/router/retry-escalation.js +0 -99
  204. package/backend/dist/routes/flywheel.d.ts +0 -3
  205. package/backend/dist/routes/flywheel.js +0 -268
  206. package/backend/dist/routes/systemone.d.ts +0 -3
  207. package/backend/dist/routes/systemone.js +0 -90
  208. package/backend/dist/surfaces/governance-envelope.d.ts +0 -34
  209. package/backend/dist/surfaces/governance-envelope.js +0 -47
  210. package/backend/dist/utils/token-estimator.d.ts +0 -7
  211. package/backend/dist/utils/token-estimator.js +0 -20
  212. package/frontend/dist/assets/index-nwgWkmU1.js +0 -840
@@ -0,0 +1,246 @@
1
+ /**
2
+ * Curated OpenCode ecosystem catalog — a SHIPPED SNAPSHOT, not a live fetch.
3
+ *
4
+ * Source: https://opencode.ai/docs/ecosystem/ whose upstream file is
5
+ * `packages/web/src/content/docs/ecosystem.mdx` in the `anomalyco/opencode` repo (a Starlight page
6
+ * with no JSON endpoint). Snapshot taken 2026-10-25 from the `## Plugins` table only: `## Projects`
7
+ * lists standalone apps (a Discord bot, editor plugins) and `## Agents` lists config bundles, so
8
+ * neither is an installable extension.
9
+ *
10
+ * Why a snapshot instead of fetching the mdx at runtime:
11
+ * - `raw.githubusercontent.com` and `cdn.jsdelivr.net` both reset the connection from this
12
+ * environment (measured), so a live fetch would render an empty market that looks broken;
13
+ * - the upstream table has no version or schema contract — a snapshot pins what an operator sees.
14
+ * Cost: the list goes stale. Refresh by re-copying the `## Plugins` table, and bump `SNAPSHOT_AT`.
15
+ *
16
+ * `npm` is the published package name when one was VERIFIED to exist on the registry and to belong
17
+ * to the same project the table links to (checked against the package's own `repository` field).
18
+ * Rows without it are browse-only: the table name is not an npm name, so they cannot be installed
19
+ * from here — the npm source is where that row is actually served (ADR-0015 §D6).
20
+ */
21
+ /** The day the `## Plugins` table was copied. Bump it with every refresh. */
22
+ export const SNAPSHOT_AT = '2026-10-25';
23
+ export const OPENCODE_ECOSYSTEM = [
24
+ {
25
+ name: 'opencode-daytona',
26
+ repo: 'daytona/integrations',
27
+ url: 'https://github.com/daytona/integrations/tree/main/packages/opencode-plugin',
28
+ description: 'Automatically run OpenCode sessions in isolated Daytona sandboxes with git sync and live previews',
29
+ npm: 'opencode-daytona',
30
+ },
31
+ {
32
+ name: 'opencode-helicone-session',
33
+ repo: 'H2Shami/opencode-helicone-session',
34
+ url: 'https://github.com/H2Shami/opencode-helicone-session',
35
+ description: 'Automatically inject Helicone session headers for request grouping',
36
+ npm: 'opencode-helicone-session',
37
+ },
38
+ {
39
+ name: 'opencode-type-inject',
40
+ repo: 'nick-vi/opencode-type-inject',
41
+ url: 'https://github.com/nick-vi/opencode-type-inject',
42
+ description: 'Auto-inject TypeScript/Svelte types into file reads with lookup tools',
43
+ // Published under the author's scope; the package's repository field is nick-vi/type-inject.
44
+ npm: '@nick-vi/opencode-type-inject',
45
+ },
46
+ {
47
+ name: 'opencode-openai-codex-auth',
48
+ repo: 'numman-ali/opencode-openai-codex-auth',
49
+ url: 'https://github.com/numman-ali/opencode-openai-codex-auth',
50
+ description: 'Use your ChatGPT Plus/Pro subscription instead of API credits',
51
+ npm: 'opencode-openai-codex-auth',
52
+ },
53
+ {
54
+ name: 'opencode-gemini-auth',
55
+ repo: 'jenslys/opencode-gemini-auth',
56
+ url: 'https://github.com/jenslys/opencode-gemini-auth',
57
+ description: 'Use your existing Gemini plan instead of API billing',
58
+ npm: 'opencode-gemini-auth',
59
+ },
60
+ {
61
+ name: 'opencode-antigravity-auth',
62
+ repo: 'NoeFabris/opencode-antigravity-auth',
63
+ url: 'https://github.com/NoeFabris/opencode-antigravity-auth',
64
+ description: "Use Antigravity's free models instead of API billing",
65
+ npm: 'opencode-antigravity-auth',
66
+ },
67
+ {
68
+ name: 'opencode-dynamic-context-pruning',
69
+ repo: 'Tarquinen/opencode-dynamic-context-pruning',
70
+ url: 'https://github.com/Tarquinen/opencode-dynamic-context-pruning',
71
+ description: 'Optimize token usage by pruning obsolete tool outputs',
72
+ // Published as `opencode-dcp` under the author's scope.
73
+ npm: '@tarquinen/opencode-dcp',
74
+ },
75
+ {
76
+ name: 'opencode-vibeguard',
77
+ repo: 'inkdust2021/opencode-vibeguard',
78
+ url: 'https://github.com/inkdust2021/opencode-vibeguard',
79
+ description: 'Redact secrets/PII into VibeGuard-style placeholders before LLM calls; restore locally',
80
+ npm: 'opencode-vibeguard',
81
+ },
82
+ {
83
+ name: 'opencode-websearch-cited',
84
+ repo: 'ghoulr/opencode-websearch-cited',
85
+ url: 'https://github.com/ghoulr/opencode-websearch-cited',
86
+ description: 'Add native websearch support for supported providers with Google grounded style',
87
+ npm: 'opencode-websearch-cited',
88
+ },
89
+ {
90
+ name: 'opencode-pty',
91
+ repo: 'shekohex/opencode-pty',
92
+ url: 'https://github.com/shekohex/opencode-pty',
93
+ description: 'Enables AI agents to run background processes in a PTY, send interactive input to them.',
94
+ npm: 'opencode-pty',
95
+ },
96
+ {
97
+ name: 'opencode-shell-strategy',
98
+ repo: 'JRedeker/opencode-shell-strategy',
99
+ url: 'https://github.com/JRedeker/opencode-shell-strategy',
100
+ description: 'Instructions for non-interactive shell commands - prevents hangs from TTY-dependent operations',
101
+ // No package published under this or a scoped variant; see `opencode-morph-fast-apply` for the
102
+ // same author's publishing pattern (a `@f97/` scope) that does not exist for this one.
103
+ },
104
+ {
105
+ name: 'opencode-wakatime',
106
+ repo: 'angristan/opencode-wakatime',
107
+ url: 'https://github.com/angristan/opencode-wakatime',
108
+ description: 'Track OpenCode usage with Wakatime',
109
+ npm: 'opencode-wakatime',
110
+ },
111
+ {
112
+ name: 'opencode-md-table-formatter',
113
+ repo: 'franlol/opencode-md-table-formatter',
114
+ url: 'https://github.com/franlol/opencode-md-table-formatter/tree/main',
115
+ description: 'Clean up markdown tables produced by LLMs',
116
+ npm: '@franlol/opencode-md-table-formatter',
117
+ },
118
+ {
119
+ name: 'opencode-morph-fast-apply',
120
+ repo: 'JRedeker/opencode-morph-fast-apply',
121
+ url: 'https://github.com/JRedeker/opencode-morph-fast-apply',
122
+ description: '10x faster code editing with Morph Fast Apply API and lazy edit markers',
123
+ // The package's repository field points back at JRedeker/opencode-morph-fast-apply.
124
+ npm: '@f97/opencode-morph-fast-apply',
125
+ },
126
+ {
127
+ name: 'opencode-morph-plugin',
128
+ repo: 'morphllm/opencode-morph-plugin',
129
+ url: 'https://github.com/morphllm/opencode-morph-plugin',
130
+ description: 'Fast Apply editing, WarpGrep codebase search, and context compaction via Morph',
131
+ npm: '@morphllm/opencode-morph-plugin',
132
+ },
133
+ {
134
+ name: 'oh-my-opencode',
135
+ repo: 'code-yeongyu/oh-my-opencode',
136
+ url: 'https://github.com/code-yeongyu/oh-my-opencode',
137
+ description: 'Background agents, pre-built LSP/AST/MCP tools, curated agents, Claude Code compatible',
138
+ npm: 'oh-my-opencode',
139
+ },
140
+ {
141
+ name: 'opencode-notifier',
142
+ repo: 'mohak34/opencode-notifier',
143
+ url: 'https://github.com/mohak34/opencode-notifier',
144
+ description: 'Desktop notifications and sound alerts for permission, completion, and error events',
145
+ npm: '@mohak34/opencode-notifier',
146
+ },
147
+ {
148
+ name: 'opencode-zellij-namer',
149
+ repo: '24601/opencode-zellij-namer',
150
+ url: 'https://github.com/24601/opencode-zellij-namer',
151
+ description: 'AI-powered automatic Zellij session naming based on OpenCode context',
152
+ npm: 'opencode-zellij-namer',
153
+ },
154
+ {
155
+ name: 'opencode-supermemory',
156
+ repo: 'supermemoryai/opencode-supermemory',
157
+ url: 'https://github.com/supermemoryai/opencode-supermemory',
158
+ description: 'Persistent memory across sessions using Supermemory',
159
+ npm: 'opencode-supermemory',
160
+ },
161
+ {
162
+ name: '@plannotator/opencode',
163
+ repo: 'backnotprop/plannotator',
164
+ url: 'https://github.com/backnotprop/plannotator/tree/main/apps/opencode-plugin',
165
+ description: 'Interactive plan review with visual annotation and private/offline sharing',
166
+ npm: '@plannotator/opencode',
167
+ },
168
+ {
169
+ name: '@openspoon/subtask2',
170
+ repo: 'spoons-and-mirrors/subtask2',
171
+ url: 'https://github.com/spoons-and-mirrors/subtask2',
172
+ description: 'Extend opencode /commands into a powerful orchestration system with granular flow control',
173
+ npm: '@openspoon/subtask2',
174
+ },
175
+ {
176
+ name: 'opencode-scheduler',
177
+ repo: 'different-ai/opencode-scheduler',
178
+ url: 'https://github.com/different-ai/opencode-scheduler',
179
+ description: 'Schedule recurring jobs using launchd (Mac) or systemd (Linux) with cron syntax',
180
+ npm: 'opencode-scheduler',
181
+ },
182
+ {
183
+ name: 'opencode-conductor',
184
+ repo: 'derekbar90/opencode-conductor',
185
+ url: 'https://github.com/derekbar90/opencode-conductor',
186
+ description: 'Protocol-Driven Workflow: Automation of the Context -> Spec -> Plan -> Implement lifecycle.',
187
+ npm: 'opencode-conductor',
188
+ },
189
+ {
190
+ name: 'micode',
191
+ repo: 'vtemian/micode',
192
+ url: 'https://github.com/vtemian/micode',
193
+ description: 'Structured Brainstorm → Plan → Implement workflow with session continuity',
194
+ npm: 'micode',
195
+ },
196
+ {
197
+ name: 'octto',
198
+ repo: 'vtemian/octto',
199
+ url: 'https://github.com/vtemian/octto',
200
+ description: 'Interactive browser UI for AI brainstorming with multi-question forms',
201
+ npm: 'octto',
202
+ },
203
+ {
204
+ name: 'opencode-sentry-monitor',
205
+ repo: 'stolinski/opencode-sentry-monitor',
206
+ url: 'https://github.com/stolinski/opencode-sentry-monitor',
207
+ description: 'Trace and debug your AI agents with Sentry AI Monitoring',
208
+ npm: 'opencode-sentry-monitor',
209
+ },
210
+ {
211
+ name: 'opencode-firecrawl',
212
+ repo: 'firecrawl/opencode-firecrawl',
213
+ url: 'https://github.com/firecrawl/opencode-firecrawl',
214
+ description: 'Web scraping, crawling, and search via the Firecrawl CLI',
215
+ // The only registry hit is an unrelated `opencode-firecrawl-ng` fork; the official repo
216
+ // publishes no package of this name, so this row stays browse-only.
217
+ },
218
+ {
219
+ name: 'opencode-jfrog-plugin',
220
+ repo: 'jfrog/opencode-jfrog-plugin',
221
+ url: 'https://github.com/jfrog/opencode-jfrog-plugin',
222
+ description: 'JFrog Plugin for seamless integration of Opencode users to JFrog platform',
223
+ npm: '@jfrog/opencode-jfrog-plugin',
224
+ },
225
+ {
226
+ name: 'opencode-goal-plugin',
227
+ repo: 'willytop8/OpenCode-goal-plugin',
228
+ url: 'https://github.com/willytop8/OpenCode-goal-plugin',
229
+ description: 'Session-scoped /goal workflow that keeps objectives in context and auto-continues until complete',
230
+ npm: 'opencode-goal-plugin',
231
+ },
232
+ {
233
+ name: 'opencode-tavily',
234
+ repo: 'tavily-ai/opencode-tavily',
235
+ url: 'https://github.com/tavily-ai/opencode-tavily',
236
+ description: 'Web search, extraction, crawling, and deep research via the Tavily CLI',
237
+ npm: 'opencode-tavily',
238
+ },
239
+ {
240
+ name: 'opencode-supabase',
241
+ repo: 'supabase-community/opencode-supabase',
242
+ url: 'https://github.com/supabase-community/opencode-supabase',
243
+ description: 'Supabase plugin for OpenCode: account login, Management API tools, bundled Supabase agent skills, and guided Supabase MCP setup.',
244
+ npm: 'opencode-supabase',
245
+ },
246
+ ];
@@ -0,0 +1,81 @@
1
+ /**
2
+ * pi.dev package catalog reader — the OFFICIAL Pi source.
3
+ *
4
+ * `pi.dev/packages` is Pi's own catalog of npm packages: extensions, skills, prompt templates and
5
+ * themes, each printed with the exact command that installs it (`pi install npm:<pkg>`). It publishes
6
+ * no JSON API — the page is SERVER-RENDERED — so this reader keys off the machine-readable attributes
7
+ * the catalog's own filter/sort script already consumes (`data-package-card`, `data-package-name`,
8
+ * `data-package-types`, `data-package-date`, `data-package-path`, `data-package-downloads`) plus the
9
+ * printed `pi install npm:` command.
10
+ *
11
+ * Those attributes are an UNMEASURED-BY-CONTRACT surface: measured 2026-10-25, documented nowhere. So
12
+ * the reader fails LOUD: a page that carries neither package cards nor the result-count marker, or
13
+ * cards that yield no usable row, answers `upstream` rather than an empty list — "no packages" and
14
+ * "the markup moved" are different claims and the market must not confuse them.
15
+ *
16
+ * `data-package-downloads` is the catalog's own ordering key and is deliberately NOT mapped onto a
17
+ * market row: the market's popularity field is GitHub stars (left `null` here, and resolvable on
18
+ * demand from the row's repo by `harness/stars.ts`), and printing a download count under it
19
+ * would relabel one number as another. Ordering still follows the official ranking, because the
20
+ * request asks for `sort=downloads`.
21
+ *
22
+ * PAGING is the catalog's own: 50 cards per page, `&page=<n>` (measured 2026-10-25; `p`/`offset` are
23
+ * ignored), so walking the catalog means walking ITS pages. The count marker above the grid
24
+ * (`1-50 / 286 (of 5338)`) answers both questions the caller needs — how many rows match, and whether
25
+ * a successor page exists — without asking for a page that would come back empty.
26
+ */
27
+ import { type FailureReason } from './net.js';
28
+ /** Cards per server-rendered page (measured; the site ignores any page-size parameter). */
29
+ export declare const PI_DEV_PAGE_SIZE = 50;
30
+ export interface PiDevEntry {
31
+ /** npm package name the catalog prints in its install command. */
32
+ packageName: string;
33
+ description: string | null;
34
+ /** Catalog type chips (`extension`, `skill`, `theme`, `prompt`); empty for an untyped package. */
35
+ types: string[];
36
+ /** First non-issue GitHub link on the card. */
37
+ repoUrl?: string;
38
+ /** The catalog's own page for this package. */
39
+ url: string;
40
+ /** ISO publication time from the card's epoch-ms attribute; `''` when absent. */
41
+ publishedAt: string;
42
+ }
43
+ export type PiDevRead = {
44
+ ok: true;
45
+ entries: PiDevEntry[];
46
+ /** Rows the catalog says match this query — the SOURCE's count, not this market's row count
47
+ * (callers that filter rows must not pass it on as their own total). */
48
+ total: number | null;
49
+ /** The catalog has a successor page for this query. */
50
+ more: boolean;
51
+ } | {
52
+ ok: false;
53
+ code: 'unavailable' | 'upstream';
54
+ reason: FailureReason;
55
+ reasonParams?: Record<string, string>;
56
+ message: string;
57
+ };
58
+ /** Decode the handful of HTML entities a card can carry (descriptions are escaped upstream). */
59
+ export declare function decodeEntities(value: string): string;
60
+ /**
61
+ * Split one server-rendered catalog page into entries. Exported for tests: the fixture is a page
62
+ * fragment, and the mapping to a market row is the caller's business.
63
+ *
64
+ * `cards` and `marker` let the caller tell "the page had no results" from "the page is not a catalog
65
+ * any more" — see the fail-loud note at the top of this module.
66
+ */
67
+ export declare function parsePiDevCatalog(html: string): {
68
+ entries: PiDevEntry[];
69
+ cards: number;
70
+ marker: boolean;
71
+ };
72
+ /**
73
+ * The grid's count marker — `1-50 / 286 (of 5338)` — answers two questions: how many rows the query
74
+ * matches, and whether a successor page exists. Parsing it beats "ask for page N+1 and see if it is
75
+ * empty": that costs a request and cannot tell an exhausted catalog from a broken one.
76
+ */
77
+ export declare function parsePiDevCount(html: string): {
78
+ total: number | null;
79
+ more: boolean;
80
+ };
81
+ export declare function fetchPiDevCatalog(query: string, page?: number, fetchImpl?: typeof fetch, sort?: string): Promise<PiDevRead>;
@@ -0,0 +1,187 @@
1
+ /**
2
+ * pi.dev package catalog reader — the OFFICIAL Pi source.
3
+ *
4
+ * `pi.dev/packages` is Pi's own catalog of npm packages: extensions, skills, prompt templates and
5
+ * themes, each printed with the exact command that installs it (`pi install npm:<pkg>`). It publishes
6
+ * no JSON API — the page is SERVER-RENDERED — so this reader keys off the machine-readable attributes
7
+ * the catalog's own filter/sort script already consumes (`data-package-card`, `data-package-name`,
8
+ * `data-package-types`, `data-package-date`, `data-package-path`, `data-package-downloads`) plus the
9
+ * printed `pi install npm:` command.
10
+ *
11
+ * Those attributes are an UNMEASURED-BY-CONTRACT surface: measured 2026-10-25, documented nowhere. So
12
+ * the reader fails LOUD: a page that carries neither package cards nor the result-count marker, or
13
+ * cards that yield no usable row, answers `upstream` rather than an empty list — "no packages" and
14
+ * "the markup moved" are different claims and the market must not confuse them.
15
+ *
16
+ * `data-package-downloads` is the catalog's own ordering key and is deliberately NOT mapped onto a
17
+ * market row: the market's popularity field is GitHub stars (left `null` here, and resolvable on
18
+ * demand from the row's repo by `harness/stars.ts`), and printing a download count under it
19
+ * would relabel one number as another. Ordering still follows the official ranking, because the
20
+ * request asks for `sort=downloads`.
21
+ *
22
+ * PAGING is the catalog's own: 50 cards per page, `&page=<n>` (measured 2026-10-25; `p`/`offset` are
23
+ * ignored), so walking the catalog means walking ITS pages. The count marker above the grid
24
+ * (`1-50 / 286 (of 5338)`) answers both questions the caller needs — how many rows match, and whether
25
+ * a successor page exists — without asking for a page that would come back empty.
26
+ */
27
+ import { describeFetchFailure, fetchFailureReason, fetchWithRetry } from './net.js';
28
+ const CATALOG_URL = 'https://pi.dev/packages';
29
+ /** Cards per server-rendered page (measured; the site ignores any page-size parameter). */
30
+ export const PI_DEV_PAGE_SIZE = 50;
31
+ const NAMED_ENTITIES = {
32
+ amp: '&',
33
+ lt: '<',
34
+ gt: '>',
35
+ quot: '"',
36
+ apos: "'",
37
+ nbsp: ' ',
38
+ };
39
+ /** Decode the handful of HTML entities a card can carry (descriptions are escaped upstream). */
40
+ export function decodeEntities(value) {
41
+ return value.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (whole, body) => {
42
+ if (body.startsWith('#')) {
43
+ const hex = body[1] === 'x' || body[1] === 'X';
44
+ const code = hex ? Number.parseInt(body.slice(2), 16) : Number.parseInt(body.slice(1), 10);
45
+ return Number.isFinite(code) && code > 0 && code <= 0x10ffff ? String.fromCodePoint(code) : whole;
46
+ }
47
+ return NAMED_ENTITIES[body.toLowerCase()] ?? whole;
48
+ });
49
+ }
50
+ /**
51
+ * Readable prose from a card fragment.
52
+ *
53
+ * A description is sometimes not prose at all: the author published markdown/HTML, so the card shows
54
+ * escaped markup (`&lt;p&gt; &lt;img …&gt;`). Decode first, then drop tags — what survives is the
55
+ * honest text, and an image-only banner leaves nothing, which becomes `null` rather than markup soup.
56
+ */
57
+ function plainText(fragment) {
58
+ return decodeEntities(fragment)
59
+ .replace(/<[^>]*>/g, ' ')
60
+ .replace(/\s+/g, ' ')
61
+ .trim();
62
+ }
63
+ /** Same grammar the npm adapter enforces: `[@scope/]name`, no shell-shaped characters. */
64
+ const PACKAGE_GRAMMAR = /^(@[\w.-]+\/)?[\w.-]+$/;
65
+ function attr(block, name) {
66
+ return new RegExp(`\\b${name}="([^"]*)"`).exec(block)?.[1];
67
+ }
68
+ /**
69
+ * Split one server-rendered catalog page into entries. Exported for tests: the fixture is a page
70
+ * fragment, and the mapping to a market row is the caller's business.
71
+ *
72
+ * `cards` and `marker` let the caller tell "the page had no results" from "the page is not a catalog
73
+ * any more" — see the fail-loud note at the top of this module.
74
+ */
75
+ export function parsePiDevCatalog(html) {
76
+ const marker = /class="packages-count"/.test(html);
77
+ const blocks = html.split(/<article\b/).filter((block) => block.includes('data-package-card="true"'));
78
+ const entries = [];
79
+ for (const block of blocks) {
80
+ const declared = attr(block, 'data-package-name');
81
+ if (!declared)
82
+ continue;
83
+ // The printed install command is the catalog's own statement of the package it installs; the npm
84
+ // link is the fallback and the card name the last resort (all three agree on every measured row).
85
+ const printed = /pi install npm:([^\s<]+)/.exec(block)?.[1];
86
+ const npmLink = /npmjs\.com\/package\/([^"\s?#]+)/.exec(block)?.[1];
87
+ const packageName = decodeEntities(printed ?? npmLink ?? declared);
88
+ if (!PACKAGE_GRAMMAR.test(packageName))
89
+ continue;
90
+ const repoUrl = [...block.matchAll(/https:\/\/github\.com\/[\w.-]+\/[\w.-]+/g)]
91
+ .map((m) => m[0])
92
+ .find((url) => !/\/issues(\/|$)/.test(url));
93
+ const dateMs = Number(attr(block, 'data-package-date'));
94
+ const publishedAt = Number.isFinite(dateMs) && dateMs > 0 ? new Date(dateMs).toISOString() : '';
95
+ const desc = /<p class="packages-desc">([\s\S]*?)<\/p>/.exec(block)?.[1];
96
+ const path = attr(block, 'data-package-path');
97
+ entries.push({
98
+ packageName,
99
+ description: desc === undefined ? null : plainText(desc) || null,
100
+ types: (attr(block, 'data-package-types') ?? '').split(/\s+/).filter(Boolean),
101
+ ...(repoUrl ? { repoUrl } : {}),
102
+ url: path && /^\/[\w./@-]+$/.test(path) ? `https://pi.dev${path}` : `https://pi.dev/packages/${packageName}`,
103
+ publishedAt,
104
+ });
105
+ }
106
+ return { entries, cards: blocks.length, marker };
107
+ }
108
+ /**
109
+ * The grid's count marker — `1-50 / 286 (of 5338)` — answers two questions: how many rows the query
110
+ * matches, and whether a successor page exists. Parsing it beats "ask for page N+1 and see if it is
111
+ * empty": that costs a request and cannot tell an exhausted catalog from a broken one.
112
+ */
113
+ export function parsePiDevCount(html) {
114
+ const m = /class="packages-count"[^>]*>\s*(\d+)-(\d+)\s*\/\s*([\d,]+)(?:\s*\(of\s*([\d,]+)\))?/.exec(html);
115
+ if (!m)
116
+ return { total: null, more: false };
117
+ const end = Number(m[2]);
118
+ const total = Number(m[3].replace(/,/g, ''));
119
+ if (!Number.isFinite(total))
120
+ return { total: null, more: false };
121
+ return { total, more: Number.isFinite(end) && end < total };
122
+ }
123
+ /**
124
+ * Read ONE catalog page. `query` is passed verbatim as the catalog's own `name` filter; `page` is the
125
+ * catalog's own 1-based page (50 cards each). Page 1 leaves the parameter off, so the request stays
126
+ * exactly the URL that was measured.
127
+ */
128
+ /** The catalog's OWN order values, read from its sort control (`Most downloads` / `Recently
129
+ * published` / `A-Z`). Any other value is ignored by the site — measured 2026-10-25: unknown
130
+ * values fall back to the downloads order — so this adapter never sends one it has not seen work. */
131
+ const PI_DEV_SORTS = new Set(['downloads', 'recent', 'name']);
132
+ export async function fetchPiDevCatalog(query, page = 1, fetchImpl = fetch, sort = 'downloads') {
133
+ const typed = query.trim();
134
+ const at = Math.max(page, 1);
135
+ const paged = at > 1 ? `&page=${at}` : '';
136
+ const order = PI_DEV_SORTS.has(sort) ? sort : 'downloads';
137
+ const url = `${CATALOG_URL}?sort=${order}${paged}${typed ? `&name=${encodeURIComponent(typed)}` : ''}`;
138
+ let res;
139
+ try {
140
+ // The CDN drops bursts from some environments, so a transient failure is asked again under the
141
+ // shared policy; `upstream` + a reason is what a caller sees once the budget is spent.
142
+ res = await fetchWithRetry(url, { headers: { Accept: 'text/html', 'User-Agent': 'omnicellrouter-harness' } }, undefined, { fetchImpl });
143
+ }
144
+ catch (e) {
145
+ // Connection resets are measured from this environment (the CDN drops bursts): "try later", never
146
+ // "no such package".
147
+ return { ok: false, code: 'upstream', reason: fetchFailureReason(e), message: describeFetchFailure('pi.dev catalog', e) };
148
+ }
149
+ if (res.status === 429 || res.status >= 500) {
150
+ return { ok: false, code: 'unavailable', reason: 'unavailable', message: `pi.dev catalog returned HTTP ${res.status} — try again later` };
151
+ }
152
+ if (!res.ok) {
153
+ return {
154
+ ok: false,
155
+ code: 'upstream',
156
+ reason: 'http',
157
+ reasonParams: { status: String(res.status) },
158
+ message: `pi.dev catalog returned HTTP ${res.status}`,
159
+ };
160
+ }
161
+ let html;
162
+ try {
163
+ html = await res.text();
164
+ }
165
+ catch (e) {
166
+ return { ok: false, code: 'upstream', reason: fetchFailureReason(e), message: describeFetchFailure('pi.dev catalog', e) };
167
+ }
168
+ const parsed = parsePiDevCatalog(html);
169
+ if (parsed.cards === 0 && !parsed.marker) {
170
+ return {
171
+ ok: false,
172
+ code: 'upstream',
173
+ reason: 'markupChanged',
174
+ message: 'pi.dev catalog markup changed — no package cards or result count',
175
+ };
176
+ }
177
+ if (parsed.cards > 0 && parsed.entries.length === 0) {
178
+ return {
179
+ ok: false,
180
+ code: 'upstream',
181
+ reason: 'markupChanged',
182
+ message: 'pi.dev catalog markup changed — package cards carried no package name',
183
+ };
184
+ }
185
+ const count = parsePiDevCount(html);
186
+ return { ok: true, entries: parsed.entries, total: count.total, more: count.more };
187
+ }
@@ -0,0 +1,33 @@
1
+ import type { CopyPlacement } from './types.js';
2
+ /**
3
+ * Install probe (ADR-0015 §D8) — post-apply verification that a copy is actually loadable-shaped,
4
+ * not just written. Placement upgrades `materialized` → `verified` only when the probe PASSES; a
5
+ * failed probe records `unverified` and never lies about state (the copy-state vocabulary has no
6
+ * "probably fine").
7
+ *
8
+ * Probes are read-only and cheap:
9
+ * - skill → `<copy>/SKILL.md` exists (the minimum a runtime needs to load the skill);
10
+ * - mcp → the config file parses and contains the server key;
11
+ * - extension → `external` copy: the apply-time subprocess exit code IS the proof; config copy:
12
+ * the file the writer merged into still lists the spec in that host's container.
13
+ *
14
+ * A probe answers THREE states, never two: `true` (proven present), `false` (proven absent) and
15
+ * `null` (this copy cannot be judged at all — e.g. the host has no extension landing to inspect).
16
+ * An undecidable copy keeps whatever placement it already had; "I cannot tell" is not the same
17
+ * claim as "I checked and it failed", and placement is the vocabulary that must never overstate.
18
+ *
19
+ * The container name comes from the host ADAPTER (`containers`), never from a literal — a new
20
+ * extension host must not require editing the probe, and a renamed key (`plugin` → `plugins`) is a
21
+ * per-host fact, not a probe change.
22
+ */
23
+ export interface ProbeResult {
24
+ artifactId: string;
25
+ /** `placement: null` = undecidable; the copy's stored placement is left untouched. */
26
+ copies: {
27
+ path: string;
28
+ placement: CopyPlacement | null;
29
+ }[];
30
+ /** True when every copy probed verified. */
31
+ allVerified: boolean;
32
+ }
33
+ export declare function probeArtifact(artifactId: string): ProbeResult | null;
@@ -0,0 +1,85 @@
1
+ import fs from 'node:fs';
2
+ import { findArtifact, writeManifest, readManifest } from './manifest.js';
3
+ import { adapterFor, isExtensionHost } from './adapters/index.js';
4
+ function skillProbe(path) {
5
+ return fs.existsSync(path) && fs.existsSync(`${path}/SKILL.md`);
6
+ }
7
+ function configContains(path, key) {
8
+ try {
9
+ const parsed = JSON.parse(fs.readFileSync(path, 'utf8').replace(/^\uFEFF/, ''));
10
+ if (!parsed || typeof parsed !== 'object')
11
+ return false;
12
+ // The server entry lives under the container the writer merged into (opencode: `mcp`).
13
+ const container = parsed['mcp'];
14
+ return Boolean(container && typeof container === 'object' && key in container);
15
+ }
16
+ catch {
17
+ return false;
18
+ }
19
+ }
20
+ function arrayContains(path, containers, value) {
21
+ try {
22
+ const parsed = JSON.parse(fs.readFileSync(path, 'utf8').replace(/^\uFEFF/, ''));
23
+ return containers.some((container) => {
24
+ const arr = parsed[container];
25
+ return Array.isArray(arr) && arr.includes(value);
26
+ });
27
+ }
28
+ catch {
29
+ return false;
30
+ }
31
+ }
32
+ /**
33
+ * Extension copy probe. An `external` copy is package-manager-owned: its `path` is an identity token
34
+ * and the subprocess exit code already proved the install, so there is nothing left to inspect.
35
+ *
36
+ * A config copy is verified only against the container the host catalog declares. The compared value
37
+ * is `record.name`, which for an extension record IS the verbatim spec the writer pushed into that
38
+ * container (`writers/extension.ts`: `arr.push(req.spec)` + `name: req.spec`) — never the package
39
+ * name, which would miss every pinned `name@version` entry.
40
+ *
41
+ * `null` is returned whenever the landing cannot be resolved (`ok: false`), the host lands via a
42
+ * package-manager subprocess (no in-file container exists), or the record carries no harness: in all
43
+ * three the probe has no table to read, so the copy's placement must stay as recorded.
44
+ */
45
+ function extensionProbe(record, copy) {
46
+ if (copy.external === true)
47
+ return true;
48
+ if (!record.harness)
49
+ return null;
50
+ // Only the container list is taken from the adapter: the probe reads the RECORDED path, and the
51
+ // container spelling is host-static. (Project-scope path resolution would need the install's
52
+ // projectRoot.)
53
+ const adapter = adapterFor(record.harness);
54
+ const containers = isExtensionHost(adapter) ? adapter.containers() : [];
55
+ if (containers.length === 0)
56
+ return null;
57
+ return arrayContains(copy.path, containers, record.name);
58
+ }
59
+ export function probeArtifact(artifactId) {
60
+ const record = findArtifact(artifactId);
61
+ if (!record)
62
+ return null;
63
+ const probed = record.copies.map((copy) => {
64
+ let ok;
65
+ if (record.kind === 'skill')
66
+ ok = skillProbe(copy.path);
67
+ else if (record.kind === 'mcp')
68
+ ok = configContains(copy.path, record.name);
69
+ else
70
+ ok = extensionProbe(record, copy);
71
+ return { path: copy.path, placement: ok === null ? null : (ok ? 'verified' : 'unverified') };
72
+ });
73
+ // Persist the upgraded placement so the inventory reports what was PROVEN, not what was written.
74
+ // An undecidable copy (`null`) is left exactly as recorded — no rewrite to `unverified`.
75
+ const manifest = readManifest();
76
+ const target = manifest.artifacts.find((a) => a.id === artifactId);
77
+ if (target) {
78
+ target.copies = target.copies.map((copy) => {
79
+ const hit = probed.find((p) => p.path === copy.path);
80
+ return hit && hit.placement !== null ? { ...copy, placement: hit.placement } : copy;
81
+ });
82
+ writeManifest(manifest);
83
+ }
84
+ return { artifactId, copies: probed, allVerified: probed.length > 0 && probed.every((p) => p.placement === 'verified') };
85
+ }
@@ -0,0 +1,2 @@
1
+ import type { SourceAdapter } from './spi.js';
2
+ export declare function getAdapter(sourceId: string): SourceAdapter | undefined;
@@ -0,0 +1,26 @@
1
+ import { awesomeAdapter } from './sources/awesome-opencode.js';
2
+ import { clawhubAdapter } from './sources/clawhub.js';
3
+ import { githubAdapter } from './sources/github.js';
4
+ import { mcpOfficialAdapter } from './sources/mcp-official.js';
5
+ import { npmAdapter } from './sources/npm.js';
6
+ import { opencodeCafeAdapter } from './sources/opencode-cafe.js';
7
+ import { smitheryAdapter } from './sources/smithery.js';
8
+ /**
9
+ * Source adapter registry (ADR-0015 §8).
10
+ *
11
+ * Onboarding a marketplace = one adapter file + one entry here — never a route or page edit. Sources
12
+ * declared in the console's SOURCES view but absent here answer install requests with
13
+ * `unsupported_source` instead of pretending.
14
+ */
15
+ const ADAPTERS = [
16
+ awesomeAdapter,
17
+ clawhubAdapter,
18
+ githubAdapter,
19
+ mcpOfficialAdapter,
20
+ npmAdapter,
21
+ opencodeCafeAdapter,
22
+ smitheryAdapter,
23
+ ];
24
+ export function getAdapter(sourceId) {
25
+ return ADAPTERS.find((a) => a.id === sourceId);
26
+ }