dsh-agent-plugins-market 0.9.0 → 0.9.2

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 (358) hide show
  1. package/README.md +64 -154
  2. package/README.zh.md +74 -164
  3. package/assets/dsh-agent-plugins.png +0 -0
  4. package/client/client.js +5371 -1085
  5. package/client/client.js.map +1 -1
  6. package/lib/index.js +2 -257
  7. package/lib/{application → packages/market-bundle/src/application}/catalog.js +207 -41
  8. package/lib/{application → packages/market-bundle/src/application}/details.js +73 -29
  9. package/lib/packages/market-bundle/src/application/extension-inventory.js +408 -0
  10. package/lib/packages/market-bundle/src/application/extension-project.js +64 -0
  11. package/lib/packages/market-bundle/src/application/resource-inventory.js +96 -0
  12. package/lib/packages/market-bundle/src/application/server-config.js +9 -0
  13. package/lib/packages/market-bundle/src/application/suite-queries.js +86 -0
  14. package/lib/packages/market-bundle/src/index.js +372 -0
  15. package/lib/{runtime/host → packages/market-bundle/src/platform}/feedback-tool.js +2 -2
  16. package/lib/{runtime/host → packages/market-bundle/src/platform}/settings-namespace.js +55 -7
  17. package/lib/packages/market-bundle/src/platform/settings-schema.js +25 -0
  18. package/lib/packages/market-bundle/src/routes-extension-presets.js +161 -0
  19. package/lib/packages/market-bundle/src/routes-resources.js +127 -0
  20. package/lib/{routes.js → packages/market-bundle/src/routes.js} +225 -21
  21. package/lib/packages/market-bundle/src/runtime-adapters.js +57 -0
  22. package/lib/packages/market-bundle/src/session-extension.js +337 -0
  23. package/lib/{application → packages/market-catalog/src/application}/catalog-context.js +7 -4
  24. package/lib/{application → packages/market-catalog/src/application}/install-store.js +3 -3
  25. package/lib/{application → packages/market-catalog/src/application}/snapshot-cache.js +100 -11
  26. package/lib/{application → packages/market-catalog/src/application}/source-store.js +24 -11
  27. package/lib/{application → packages/market-catalog/src/application}/state/state-store.js +1 -1
  28. package/lib/{application → packages/market-catalog/src/application}/state/storage-migration.js +1 -1
  29. package/lib/packages/market-catalog/src/index.js +19 -0
  30. package/lib/{catalog → packages/market-catalog/src/scanning}/archive.js +1 -1
  31. package/lib/{catalog → packages/market-catalog/src/scanning}/codex-mcp.js +1 -1
  32. package/lib/{catalog → packages/market-catalog/src/scanning}/component-files.js +2 -2
  33. package/lib/{catalog → packages/market-catalog/src/scanning}/manifests.js +2 -2
  34. package/lib/{catalog → packages/market-catalog/src/scanning}/native-project.js +1 -1
  35. package/lib/{catalog → packages/market-catalog/src/scanning}/paths.js +1 -1
  36. package/lib/{catalog → packages/market-catalog/src/scanning}/plugin-variables.js +21 -1
  37. package/lib/{catalog → packages/market-catalog/src/scanning}/scan-resolvers.js +35 -2
  38. package/lib/{catalog → packages/market-catalog/src/scanning}/skills-parse.js +40 -10
  39. package/lib/{catalog → packages/market-catalog/src/scanning}/validate.js +15 -2
  40. package/lib/packages/market-contracts/src/contracts/extension-presets.js +125 -0
  41. package/lib/{contracts → packages/market-contracts/src/contracts}/market.js +33 -5
  42. package/lib/packages/market-contracts/src/contracts/mcp-overrides.js +2 -0
  43. package/lib/packages/market-contracts/src/contracts/resource-window.js +29 -0
  44. package/lib/packages/market-contracts/src/contracts/settings.js +130 -0
  45. package/lib/packages/market-contracts/src/contracts/surface-toggles.js +29 -0
  46. package/lib/packages/market-contracts/src/contracts/translation.js +28 -0
  47. package/lib/packages/market-contracts/src/index.js +4 -0
  48. package/lib/{model → packages/market-contracts/src/model}/layouts.js +11 -0
  49. package/lib/{application → packages/market-contracts/src/ports}/ports.js +3 -0
  50. package/lib/{application/mcp/mcp-redaction.js → packages/market-contracts/src/redaction.js} +17 -1
  51. package/lib/{application → packages/market-lsp/src/application}/lsp/lsp-direct-config.js +2 -2
  52. package/lib/{application → packages/market-lsp/src/application}/lsp/lsp-server-state.js +1 -1
  53. package/lib/{application → packages/market-lsp/src/application}/lsp/lsp-status.js +20 -3
  54. package/lib/{application → packages/market-lsp/src/application}/lsp/profile-seam.js +1 -1
  55. package/lib/packages/market-lsp/src/application/lsp/validation.js +46 -0
  56. package/lib/{application → packages/market-lsp/src/application}/lsp-service.js +61 -3
  57. package/lib/packages/market-lsp/src/index.js +8 -0
  58. package/lib/{runtime → packages/market-lsp/src/runtime}/lsp/lsp-mounts.js +79 -40
  59. package/lib/{application → packages/market-mcp/src/application}/mcp/mcp-backend.js +0 -16
  60. package/lib/{application → packages/market-mcp/src/application}/mcp/mcp-config.js +104 -21
  61. package/lib/{application → packages/market-mcp/src/application}/mcp/mcp-direct-config.js +12 -4
  62. package/lib/{application → packages/market-mcp/src/application}/mcp/mcp-overrides.js +4 -4
  63. package/lib/{application → packages/market-mcp/src/application}/mcp/mcp-status.js +49 -10
  64. package/lib/packages/market-mcp/src/application/mcp/validation.js +63 -0
  65. package/lib/{application → packages/market-mcp/src/application}/mcp-service.js +111 -91
  66. package/lib/packages/market-mcp/src/index.js +10 -0
  67. package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/bridge.js +12 -9
  68. package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/connection.js +1 -1
  69. package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/oauth.js +1 -1
  70. package/lib/packages/market-mcp/src/runtime/mcp/bridge/tool-ownership.js +26 -0
  71. package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/tools.js +1 -1
  72. package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/mcp-auth-record.js +35 -4
  73. package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/mcp-mounts.js +35 -4
  74. package/lib/packages/market-runtime/src/adapter-contracts.js +1 -0
  75. package/lib/packages/market-runtime/src/application/command-resources.js +74 -0
  76. package/lib/packages/market-runtime/src/application/extension-authorization.js +27 -0
  77. package/lib/packages/market-runtime/src/application/extension-hook-selection.js +56 -0
  78. package/lib/packages/market-runtime/src/application/extension-suite-declarations.js +57 -0
  79. package/lib/packages/market-runtime/src/application/extension-suite-selection.js +84 -0
  80. package/lib/packages/market-runtime/src/application/fs-probe.js +43 -0
  81. package/lib/packages/market-runtime/src/application/panel-resources.js +370 -0
  82. package/lib/{application → packages/market-runtime/src/application}/panels/user-hooks.js +2 -2
  83. package/lib/{application → packages/market-runtime/src/application}/panels/user-store.js +53 -13
  84. package/lib/{application → packages/market-runtime/src/application}/project-agent-roles.js +20 -11
  85. package/lib/packages/market-runtime/src/application/state/extension-presets.js +144 -0
  86. package/lib/packages/market-runtime/src/application/state/resource-favorites.js +90 -0
  87. package/lib/packages/market-runtime/src/application/state/resource-filters.js +2 -0
  88. package/lib/packages/market-runtime/src/application/state/surface-toggles.js +10 -0
  89. package/lib/packages/market-runtime/src/application/state/workspace-policy.js +56 -0
  90. package/lib/packages/market-runtime/src/catalog-port.js +1 -0
  91. package/lib/packages/market-runtime/src/extension-service.js +1 -0
  92. package/lib/packages/market-runtime/src/index.js +31 -0
  93. package/lib/{runtime → packages/market-runtime/src/runtime}/agents/agent-role-router.js +74 -79
  94. package/lib/packages/market-runtime/src/runtime/agents/agent-teams-seat.js +58 -0
  95. package/lib/{runtime → packages/market-runtime/src/runtime}/agents/subagent-catalog.js +89 -21
  96. package/lib/packages/market-runtime/src/runtime/agents/team-coordination.js +51 -0
  97. package/lib/packages/market-runtime/src/runtime/agents/teammate-role-runtime.js +241 -0
  98. package/lib/packages/market-runtime/src/runtime/agents/teammate-role-tool.js +130 -0
  99. package/lib/{runtime → packages/market-runtime/src/runtime}/core/reconcile-scheduler.js +2 -2
  100. package/lib/packages/market-runtime/src/runtime/core/reconciler.js +457 -0
  101. package/lib/packages/market-runtime/src/runtime/host/command-name-allocator.js +168 -0
  102. package/lib/packages/market-runtime/src/runtime/host/extension-progress.js +120 -0
  103. package/lib/packages/market-runtime/src/runtime/host/extension-runtime.js +405 -0
  104. package/lib/packages/market-runtime/src/runtime/host/extension-session-state.js +839 -0
  105. package/lib/packages/market-runtime/src/runtime/host/extension-tool-gates.js +96 -0
  106. package/lib/{runtime → packages/market-runtime/src/runtime}/host/failure-detail.js +1 -1
  107. package/lib/{runtime → packages/market-runtime/src/runtime}/host/host-locale.js +2 -0
  108. package/lib/packages/market-runtime/src/runtime/host/menu-row-identities.js +38 -0
  109. package/lib/packages/market-runtime/src/runtime/host/resource-filter-service.js +81 -0
  110. package/lib/packages/market-runtime/src/runtime/host/scoped-contributors.js +304 -0
  111. package/lib/packages/market-runtime/src/runtime/host/surface-toggle-service.js +15 -0
  112. package/lib/packages/market-runtime/src/runtime/panels/user-commands.js +211 -0
  113. package/lib/{runtime → packages/market-runtime/src/runtime}/panels/user-panels.js +34 -14
  114. package/lib/packages/market-runtime/src/runtime/surfaces/commands-mounts.js +256 -0
  115. package/lib/packages/market-runtime/src/runtime/surfaces/extension-hooks.js +294 -0
  116. package/lib/packages/market-runtime/src/runtime/surfaces/hook-dry-run.js +122 -0
  117. package/lib/{runtime → packages/market-runtime/src/runtime}/surfaces/hooks-mounts.js +1 -1
  118. package/lib/{runtime → packages/market-runtime/src/runtime}/surfaces/project-runtime.js +23 -13
  119. package/lib/packages/market-runtime/src/runtime/surfaces/skills-provider.js +241 -0
  120. package/lib/packages/market-translation/src/application/state/translation-cache.js +122 -0
  121. package/lib/packages/market-translation/src/application/translation/chain.js +99 -0
  122. package/lib/packages/market-translation/src/application/translation/document.js +384 -0
  123. package/lib/packages/market-translation/src/application/translation/localizer.js +642 -0
  124. package/lib/packages/market-translation/src/application/translation/service.js +113 -0
  125. package/lib/packages/market-translation/src/application/translation/unit.js +19 -0
  126. package/lib/packages/market-translation/src/index.js +4 -0
  127. package/lib/packages/market-translation/src/runtime/host/llm-translator.js +278 -0
  128. package/lib/packages/market-translation/src/runtime/host/machine-translator.js +152 -0
  129. package/lib/packages/market-translation/src/runtime/host/text-masking.js +96 -0
  130. package/lib/packages/market-translation/src/runtime/host/translation-providers.js +116 -0
  131. package/lib/types/index.d.ts +2 -130
  132. package/lib/types/{application → packages/market-bundle/src/application}/catalog.d.ts +117 -22
  133. package/lib/types/packages/market-bundle/src/application/details.d.ts +24 -0
  134. package/lib/types/packages/market-bundle/src/application/extension-inventory.d.ts +45 -0
  135. package/lib/types/packages/market-bundle/src/application/extension-project.d.ts +26 -0
  136. package/lib/types/packages/market-bundle/src/application/resource-inventory.d.ts +42 -0
  137. package/lib/types/packages/market-bundle/src/application/server-config.d.ts +9 -0
  138. package/lib/types/packages/market-bundle/src/application/suite-queries.d.ts +84 -0
  139. package/lib/types/packages/market-bundle/src/index.d.ts +125 -0
  140. package/lib/types/{runtime/host → packages/market-bundle/src/platform}/settings-namespace.d.ts +44 -9
  141. package/lib/types/{application/mcp/mcp-backend.d.ts → packages/market-bundle/src/platform/settings-schema.d.ts} +13 -28
  142. package/lib/types/packages/market-bundle/src/routes-extension-presets.d.ts +15 -0
  143. package/lib/types/packages/market-bundle/src/routes-resources.d.ts +17 -0
  144. package/lib/types/packages/market-bundle/src/routes.d.ts +32 -0
  145. package/lib/types/packages/market-bundle/src/runtime-adapters.d.ts +42 -0
  146. package/lib/types/packages/market-bundle/src/session-extension.d.ts +62 -0
  147. package/lib/types/{application → packages/market-catalog/src/application}/catalog-context.d.ts +11 -3
  148. package/lib/types/{application → packages/market-catalog/src/application}/install-store.d.ts +1 -1
  149. package/lib/types/{application → packages/market-catalog/src/application}/regions.d.ts +1 -1
  150. package/lib/types/{application → packages/market-catalog/src/application}/snapshot-cache.d.ts +44 -2
  151. package/lib/types/{application → packages/market-catalog/src/application}/source-store.d.ts +12 -3
  152. package/lib/types/{application → packages/market-catalog/src/application}/state/state-store.d.ts +1 -1
  153. package/lib/types/packages/market-catalog/src/index.d.ts +22 -0
  154. package/lib/types/{catalog → packages/market-catalog/src/scanning}/archive.d.ts +1 -1
  155. package/lib/types/{catalog → packages/market-catalog/src/scanning}/codex-mcp.d.ts +1 -1
  156. package/lib/types/{catalog → packages/market-catalog/src/scanning}/component-files.d.ts +1 -1
  157. package/lib/types/{catalog → packages/market-catalog/src/scanning}/lsp-spec.d.ts +1 -1
  158. package/lib/types/{catalog → packages/market-catalog/src/scanning}/manifests.d.ts +3 -3
  159. package/lib/types/{catalog → packages/market-catalog/src/scanning}/native-project.d.ts +2 -2
  160. package/lib/types/{catalog → packages/market-catalog/src/scanning}/plugin-variables.d.ts +12 -1
  161. package/lib/types/{catalog → packages/market-catalog/src/scanning}/project-config.d.ts +2 -2
  162. package/lib/types/{catalog → packages/market-catalog/src/scanning}/project-hooks.d.ts +2 -2
  163. package/lib/types/{catalog → packages/market-catalog/src/scanning}/scan-pipeline.d.ts +1 -1
  164. package/lib/types/{catalog → packages/market-catalog/src/scanning}/scan-resolvers.d.ts +3 -3
  165. package/lib/types/{catalog → packages/market-catalog/src/scanning}/source-catalog.d.ts +1 -1
  166. package/lib/types/{catalog → packages/market-catalog/src/scanning}/suite-components.d.ts +1 -1
  167. package/lib/types/{catalog → packages/market-catalog/src/scanning}/suite-scanner.d.ts +1 -1
  168. package/lib/types/{catalog → packages/market-catalog/src/scanning}/surfaces.d.ts +1 -1
  169. package/lib/types/{catalog → packages/market-catalog/src/scanning}/validate.d.ts +1 -1
  170. package/lib/types/packages/market-contracts/src/contracts/extension-presets.d.ts +237 -0
  171. package/lib/types/{contracts → packages/market-contracts/src/contracts}/market.d.ts +87 -16
  172. package/lib/types/packages/market-contracts/src/contracts/mcp-overrides.d.ts +39 -0
  173. package/lib/types/{contracts → packages/market-contracts/src/contracts}/mcp-status.d.ts +9 -0
  174. package/lib/types/packages/market-contracts/src/contracts/resource-window.d.ts +70 -0
  175. package/lib/types/packages/market-contracts/src/contracts/settings.d.ts +121 -0
  176. package/lib/types/packages/market-contracts/src/contracts/surface-toggles.d.ts +28 -0
  177. package/lib/types/packages/market-contracts/src/contracts/translation.d.ts +81 -0
  178. package/lib/types/{runtime → packages/market-contracts/src}/host/plugin-message-source.d.ts +1 -1
  179. package/lib/types/packages/market-contracts/src/index.d.ts +5 -0
  180. package/lib/types/{model → packages/market-contracts/src/model}/layouts.d.ts +7 -0
  181. package/lib/types/{model → packages/market-contracts/src/model}/types.d.ts +2 -2
  182. package/lib/types/packages/market-contracts/src/ports/ports.d.ts +183 -0
  183. package/lib/types/{application → packages/market-contracts/src/ports}/queries.d.ts +27 -6
  184. package/lib/types/{application/mcp/mcp-redaction.d.ts → packages/market-contracts/src/redaction.d.ts} +2 -0
  185. package/lib/types/{application → packages/market-lsp/src/application}/lsp/lsp-direct-config.d.ts +1 -1
  186. package/lib/types/{application → packages/market-lsp/src/application}/lsp/lsp-status.d.ts +21 -5
  187. package/lib/types/packages/market-lsp/src/application/lsp/validation.d.ts +8 -0
  188. package/lib/types/{application → packages/market-lsp/src/application}/lsp-service.d.ts +19 -6
  189. package/lib/types/packages/market-lsp/src/index.d.ts +8 -0
  190. package/lib/types/{runtime → packages/market-lsp/src/runtime}/lsp/lsp-mounts.d.ts +26 -6
  191. package/lib/types/packages/market-mcp/src/application/mcp/mcp-backend.d.ts +28 -0
  192. package/lib/types/{application → packages/market-mcp/src/application}/mcp/mcp-bridge-config.d.ts +1 -1
  193. package/lib/types/{application → packages/market-mcp/src/application}/mcp/mcp-config.d.ts +2 -2
  194. package/lib/types/{application → packages/market-mcp/src/application}/mcp/mcp-direct-config.d.ts +6 -1
  195. package/lib/types/{application → packages/market-mcp/src/application}/mcp/mcp-overrides.d.ts +4 -38
  196. package/lib/types/packages/market-mcp/src/application/mcp/mcp-status.d.ts +40 -0
  197. package/lib/types/{application/server-config.d.ts → packages/market-mcp/src/application/mcp/validation.d.ts} +2 -10
  198. package/lib/types/{application → packages/market-mcp/src/application}/mcp-service.d.ts +22 -16
  199. package/lib/types/packages/market-mcp/src/index.d.ts +12 -0
  200. package/lib/types/packages/market-mcp/src/runtime/mcp/bridge/tool-ownership.d.ts +14 -0
  201. package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/mcp-auth-record.d.ts +4 -0
  202. package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/mcp-mounts.d.ts +19 -3
  203. package/lib/types/packages/market-runtime/src/adapter-contracts.d.ts +89 -0
  204. package/lib/types/{application → packages/market-runtime/src/application}/agent-roles.d.ts +2 -0
  205. package/lib/types/packages/market-runtime/src/application/command-resources.d.ts +26 -0
  206. package/lib/types/packages/market-runtime/src/application/extension-authorization.d.ts +12 -0
  207. package/lib/types/packages/market-runtime/src/application/extension-hook-selection.d.ts +23 -0
  208. package/lib/types/packages/market-runtime/src/application/extension-suite-declarations.d.ts +10 -0
  209. package/lib/types/packages/market-runtime/src/application/extension-suite-selection.d.ts +30 -0
  210. package/lib/types/packages/market-runtime/src/application/fs-probe.d.ts +12 -0
  211. package/lib/types/packages/market-runtime/src/application/panel-resources.d.ts +100 -0
  212. package/lib/types/{application → packages/market-runtime/src/application}/panels/user-hooks.d.ts +1 -1
  213. package/lib/types/packages/market-runtime/src/application/project-agent-roles.d.ts +10 -0
  214. package/lib/types/packages/market-runtime/src/application/state/extension-presets.d.ts +24 -0
  215. package/lib/types/packages/market-runtime/src/application/state/resource-favorites.d.ts +9 -0
  216. package/lib/types/packages/market-runtime/src/application/state/resource-filters.d.ts +2 -0
  217. package/lib/types/packages/market-runtime/src/application/state/surface-toggles.d.ts +6 -0
  218. package/lib/types/packages/market-runtime/src/application/state/workspace-policy.d.ts +19 -0
  219. package/lib/types/packages/market-runtime/src/catalog-port.d.ts +30 -0
  220. package/lib/types/packages/market-runtime/src/extension-service.d.ts +14 -0
  221. package/lib/types/packages/market-runtime/src/index.d.ts +41 -0
  222. package/lib/types/{runtime → packages/market-runtime/src/runtime}/agents/agent-role-router.d.ts +66 -31
  223. package/lib/types/packages/market-runtime/src/runtime/agents/agent-teams-seat.d.ts +41 -0
  224. package/lib/types/{runtime → packages/market-runtime/src/runtime}/agents/subagent-catalog.d.ts +34 -2
  225. package/lib/types/packages/market-runtime/src/runtime/agents/team-coordination.d.ts +8 -0
  226. package/lib/types/packages/market-runtime/src/runtime/agents/teammate-role-runtime.d.ts +74 -0
  227. package/lib/types/packages/market-runtime/src/runtime/agents/teammate-role-tool.d.ts +6 -0
  228. package/lib/types/{runtime → packages/market-runtime/src/runtime}/core/reconcile-scheduler.d.ts +5 -2
  229. package/lib/types/packages/market-runtime/src/runtime/core/reconciler.d.ts +141 -0
  230. package/lib/types/packages/market-runtime/src/runtime/host/command-name-allocator.d.ts +132 -0
  231. package/lib/types/packages/market-runtime/src/runtime/host/extension-progress.d.ts +91 -0
  232. package/lib/types/packages/market-runtime/src/runtime/host/extension-runtime.d.ts +77 -0
  233. package/lib/types/packages/market-runtime/src/runtime/host/extension-session-state.d.ts +242 -0
  234. package/lib/types/packages/market-runtime/src/runtime/host/extension-tool-gates.d.ts +38 -0
  235. package/lib/types/{runtime → packages/market-runtime/src/runtime}/host/host-locale.d.ts +1 -1
  236. package/lib/types/packages/market-runtime/src/runtime/host/menu-row-identities.d.ts +50 -0
  237. package/lib/types/{runtime → packages/market-runtime/src/runtime}/host/model-catalog.d.ts +1 -1
  238. package/lib/types/packages/market-runtime/src/runtime/host/resource-filter-service.d.ts +34 -0
  239. package/lib/types/packages/market-runtime/src/runtime/host/scoped-contributors.d.ts +58 -0
  240. package/lib/types/packages/market-runtime/src/runtime/host/surface-toggle-service.d.ts +10 -0
  241. package/lib/types/packages/market-runtime/src/runtime/panels/user-commands.d.ts +74 -0
  242. package/lib/types/{runtime → packages/market-runtime/src/runtime}/panels/user-panels.d.ts +7 -1
  243. package/lib/types/packages/market-runtime/src/runtime/surfaces/commands-mounts.d.ts +81 -0
  244. package/lib/types/packages/market-runtime/src/runtime/surfaces/extension-hooks.d.ts +59 -0
  245. package/lib/types/packages/market-runtime/src/runtime/surfaces/hook-dry-run.d.ts +91 -0
  246. package/lib/types/{runtime → packages/market-runtime/src/runtime}/surfaces/hooks-mounts.d.ts +1 -1
  247. package/lib/types/{runtime → packages/market-runtime/src/runtime}/surfaces/project-runtime.d.ts +8 -5
  248. package/lib/types/packages/market-runtime/src/runtime/surfaces/skills-provider.d.ts +71 -0
  249. package/lib/types/packages/market-translation/src/application/state/translation-cache.d.ts +56 -0
  250. package/lib/types/packages/market-translation/src/application/translation/chain.d.ts +47 -0
  251. package/lib/types/packages/market-translation/src/application/translation/document.d.ts +54 -0
  252. package/lib/types/packages/market-translation/src/application/translation/localizer.d.ts +325 -0
  253. package/lib/types/packages/market-translation/src/application/translation/service.d.ts +89 -0
  254. package/lib/types/packages/market-translation/src/application/translation/unit.d.ts +35 -0
  255. package/lib/types/packages/market-translation/src/index.d.ts +4 -0
  256. package/lib/types/packages/market-translation/src/runtime/host/llm-translator.d.ts +30 -0
  257. package/lib/types/packages/market-translation/src/runtime/host/machine-translator.d.ts +52 -0
  258. package/lib/types/packages/market-translation/src/runtime/host/text-masking.d.ts +42 -0
  259. package/lib/types/packages/market-translation/src/runtime/host/translation-providers.d.ts +42 -0
  260. package/locale/en.json +6 -0
  261. package/locale/zh.json +6 -0
  262. package/package.json +47 -10
  263. package/schemas/README.md +4 -4
  264. package/schemas/agent-plugins/spec.md +2 -2
  265. package/schemas/com.deepseek.harness/spec.md +1 -1
  266. package/schemas/skill-collection/spec.md +10 -2
  267. package/lib/application/panel-resources.js +0 -161
  268. package/lib/application/server-config.js +0 -109
  269. package/lib/contracts/settings.js +0 -63
  270. package/lib/runtime/core/reconciler.js +0 -100
  271. package/lib/runtime/panels/user-commands.js +0 -105
  272. package/lib/runtime/surfaces/commands-mounts.js +0 -186
  273. package/lib/runtime/surfaces/skills-provider.js +0 -160
  274. package/lib/types/application/details.d.ts +0 -7
  275. package/lib/types/application/mcp/mcp-status.d.ts +0 -24
  276. package/lib/types/application/panel-resources.d.ts +0 -28
  277. package/lib/types/application/ports.d.ts +0 -86
  278. package/lib/types/application/project-agent-roles.d.ts +0 -3
  279. package/lib/types/contracts/settings.d.ts +0 -59
  280. package/lib/types/routes.d.ts +0 -16
  281. package/lib/types/runtime/core/reconciler.d.ts +0 -58
  282. package/lib/types/runtime/panels/user-commands.d.ts +0 -27
  283. package/lib/types/runtime/surfaces/commands-mounts.d.ts +0 -48
  284. package/lib/types/runtime/surfaces/skills-provider.d.ts +0 -23
  285. /package/lib/{application → packages/market-catalog/src/application}/deadline.js +0 -0
  286. /package/lib/{application → packages/market-catalog/src/application}/json-file.js +0 -0
  287. /package/lib/{application → packages/market-catalog/src/application}/regions.js +0 -0
  288. /package/lib/{catalog → packages/market-catalog/src/scanning}/fs-probes.js +0 -0
  289. /package/lib/{catalog → packages/market-catalog/src/scanning}/git.js +0 -0
  290. /package/lib/{catalog → packages/market-catalog/src/scanning}/lsp-spec.js +0 -0
  291. /package/lib/{catalog → packages/market-catalog/src/scanning}/project-config.js +0 -0
  292. /package/lib/{catalog → packages/market-catalog/src/scanning}/project-hooks.js +0 -0
  293. /package/lib/{catalog → packages/market-catalog/src/scanning}/scan-pipeline.js +0 -0
  294. /package/lib/{catalog → packages/market-catalog/src/scanning}/source-catalog.js +0 -0
  295. /package/lib/{catalog → packages/market-catalog/src/scanning}/suite-components.js +0 -0
  296. /package/lib/{catalog → packages/market-catalog/src/scanning}/suite-scanner.js +0 -0
  297. /package/lib/{catalog → packages/market-catalog/src/scanning}/surfaces.js +0 -0
  298. /package/lib/{contracts → packages/market-contracts/src/contracts}/lsp-status.js +0 -0
  299. /package/lib/{contracts → packages/market-contracts/src/contracts}/lsp.js +0 -0
  300. /package/lib/{contracts → packages/market-contracts/src/contracts}/mcp-status.js +0 -0
  301. /package/lib/{contracts → packages/market-contracts/src/contracts}/mcp.js +0 -0
  302. /package/lib/{runtime → packages/market-contracts/src}/host/plugin-message-source.js +0 -0
  303. /package/lib/{model → packages/market-contracts/src/model}/command-names.js +0 -0
  304. /package/lib/{model → packages/market-contracts/src/model}/preset-source.js +0 -0
  305. /package/lib/{model → packages/market-contracts/src/model}/types.js +0 -0
  306. /package/lib/{application → packages/market-contracts/src/ports}/queries.js +0 -0
  307. /package/lib/{application → packages/market-mcp/src/application}/mcp/mcp-bridge-config.js +0 -0
  308. /package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/host-contract.js +0 -0
  309. /package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/host-seams.js +0 -0
  310. /package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/plugin-identity.js +0 -0
  311. /package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/projection.js +0 -0
  312. /package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/transport.js +0 -0
  313. /package/lib/{runtime → packages/market-mcp/src/runtime}/mcp/mcp-credentials.js +0 -0
  314. /package/lib/{application → packages/market-runtime/src/application}/agent-roles.js +0 -0
  315. /package/lib/{runtime → packages/market-runtime/src/runtime}/agents/agent-role-names.js +0 -0
  316. /package/lib/{runtime → packages/market-runtime/src/runtime}/core/context.js +0 -0
  317. /package/lib/{runtime → packages/market-runtime/src/runtime}/core/mount-lifecycle.js +0 -0
  318. /package/lib/{runtime → packages/market-runtime/src/runtime}/core/source-auto-update.js +0 -0
  319. /package/lib/{runtime → packages/market-runtime/src/runtime}/core/timer-seat.js +0 -0
  320. /package/lib/{runtime → packages/market-runtime/src/runtime}/host/model-catalog.js +0 -0
  321. /package/lib/{runtime → packages/market-runtime/src/runtime}/host/shell-path.js +0 -0
  322. /package/lib/{runtime → packages/market-runtime/src/runtime}/host/tool-registry-observer.js +0 -0
  323. /package/lib/{runtime → packages/market-runtime/src/runtime}/surfaces/dynamic-context.js +0 -0
  324. /package/lib/types/{runtime/host → packages/market-bundle/src/platform}/feedback-tool.d.ts +0 -0
  325. /package/lib/types/{application → packages/market-catalog/src/application}/deadline.d.ts +0 -0
  326. /package/lib/types/{application → packages/market-catalog/src/application}/json-file.d.ts +0 -0
  327. /package/lib/types/{application → packages/market-catalog/src/application}/state/storage-migration.d.ts +0 -0
  328. /package/lib/types/{catalog → packages/market-catalog/src/scanning}/fs-probes.d.ts +0 -0
  329. /package/lib/types/{catalog → packages/market-catalog/src/scanning}/git.d.ts +0 -0
  330. /package/lib/types/{catalog → packages/market-catalog/src/scanning}/paths.d.ts +0 -0
  331. /package/lib/types/{catalog → packages/market-catalog/src/scanning}/skills-parse.d.ts +0 -0
  332. /package/lib/types/{contracts → packages/market-contracts/src/contracts}/lsp-status.d.ts +0 -0
  333. /package/lib/types/{contracts → packages/market-contracts/src/contracts}/lsp.d.ts +0 -0
  334. /package/lib/types/{contracts → packages/market-contracts/src/contracts}/mcp.d.ts +0 -0
  335. /package/lib/types/{model → packages/market-contracts/src/model}/command-names.d.ts +0 -0
  336. /package/lib/types/{model → packages/market-contracts/src/model}/preset-source.d.ts +0 -0
  337. /package/lib/types/{application → packages/market-lsp/src/application}/lsp/lsp-server-state.d.ts +0 -0
  338. /package/lib/types/{application → packages/market-lsp/src/application}/lsp/profile-seam.d.ts +0 -0
  339. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/bridge.d.ts +0 -0
  340. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/connection.d.ts +0 -0
  341. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/host-contract.d.ts +0 -0
  342. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/host-seams.d.ts +0 -0
  343. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/oauth.d.ts +0 -0
  344. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/plugin-identity.d.ts +0 -0
  345. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/projection.d.ts +0 -0
  346. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/tools.d.ts +0 -0
  347. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/bridge/transport.d.ts +0 -0
  348. /package/lib/types/{runtime → packages/market-mcp/src/runtime}/mcp/mcp-credentials.d.ts +0 -0
  349. /package/lib/types/{application → packages/market-runtime/src/application}/panels/user-store.d.ts +0 -0
  350. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/agents/agent-role-names.d.ts +0 -0
  351. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/core/context.d.ts +0 -0
  352. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/core/mount-lifecycle.d.ts +0 -0
  353. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/core/source-auto-update.d.ts +0 -0
  354. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/core/timer-seat.d.ts +0 -0
  355. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/host/failure-detail.d.ts +0 -0
  356. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/host/shell-path.d.ts +0 -0
  357. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/host/tool-registry-observer.d.ts +0 -0
  358. /package/lib/types/{runtime → packages/market-runtime/src/runtime}/surfaces/dynamic-context.d.ts +0 -0
@@ -1,86 +0,0 @@
1
- /**
2
- * The host seams a catalog consumes, in one declared place.
3
- *
4
- * Every seam is read at call time rather than captured at construction: the
5
- * credentials, tools and settings services resolve *after* `apply()` returns,
6
- * so a value snapshotted when the catalog is built would stay undefined for
7
- * the rest of the process. A composition root wires the seams it has;
8
- * {@link resolveCatalogPorts} fills in the rest from
9
- * {@link defaultCatalogPorts}, which keeps a bare `new Catalog({...})` — the
10
- * shape the tests build — fully functional.
11
- */
12
- import type { LspServerSpec, SourceKind } from '../model/types.js';
13
- export type { McpBackendInfo } from '../contracts/market.js';
14
- import type { DownloadRegionSetting } from '../contracts/settings.js';
15
- import type { McpBackend } from '../contracts/mcp.js';
16
- import type { LspMountDiagnostic } from '../contracts/lsp.js';
17
- /** One MCP tool observed from the host tool registry (structural). */
18
- export interface McpToolSnapshot {
19
- name: string;
20
- description?: string;
21
- /** The input schema the server advertised, when the host exposes it. */
22
- parameters?: unknown;
23
- }
24
- /** The LSP mount-registry surface the aggregator consumes (structural, for tests). */
25
- export interface LspMountStatusSource {
26
- diagnosticsSnapshot(): Map<string, LspMountDiagnostic>;
27
- hasLiveMounts(): boolean;
28
- disabledServers?(): Set<string>;
29
- }
30
- /** A new source: its location, optional branch, and acquisition kind. */
31
- export interface SourceInput {
32
- url: string;
33
- branch?: string;
34
- local?: boolean;
35
- kind?: SourceKind;
36
- sha256?: string;
37
- }
38
- /** A partial source update; omitted fields keep their persisted value. */
39
- export interface SourcePatch {
40
- url?: string;
41
- branch?: string;
42
- local?: boolean;
43
- kind?: SourceKind;
44
- sha256?: string;
45
- }
46
- /** The user's direct LSP server table, keyed by server name. */
47
- export type LspServerTable = Record<string, LspServerSpec>;
48
- /** Credential-store seam backing the MCP re-authorize action. */
49
- export interface CredentialGrantStore {
50
- deleteGrantRecord(serverName: string): Promise<void>;
51
- }
52
- /** The complete set of host seams a catalog needs; every member is resolved. */
53
- export interface CatalogPorts {
54
- /** Live host MCP tool registry snapshot for the status surface. */
55
- mcpToolSnapshot(): readonly McpToolSnapshot[];
56
- /** Absent when the credentials service is not mounted in this composition. */
57
- credentialsStore: CredentialGrantStore | undefined;
58
- /** Flags one mount key for an explicit rebuild on the next reconcile. */
59
- mcpRemount(suiteId: string, serverKey: string): void;
60
- /** Flags every live mount for an explicit rebuild on the next reconcile. */
61
- mcpRemountAll(): void;
62
- /** Resolves the mount key owning one derived serverName; undefined when not mounted. */
63
- mcpServerOwner(serverName: string): {
64
- suiteId: string;
65
- serverKey: string;
66
- } | undefined;
67
- /** Latest LSP mount diagnostics. */
68
- lspStatusSource: LspMountStatusSource;
69
- /** The persisted MCP mount backend choice. */
70
- mcpBackend(): Promise<McpBackend>;
71
- /** Persists an MCP mount backend choice. */
72
- setMcpBackend(backend: McpBackend): Promise<void>;
73
- /** The persisted download-region setting. */
74
- downloadRegion(): Promise<DownloadRegionSetting>;
75
- /** The host locale preference ('zh' default when unset). */
76
- localePreference(): string;
77
- }
78
- /** The seams a composition root may wire; the rest fall back to the defaults. */
79
- export type CatalogPortsOverride = Partial<CatalogPorts>;
80
- /**
81
- * The seams a catalog runs on when nothing is wired. The MCP backend writer
82
- * rejects rather than silently accepting a choice nothing can persist.
83
- */
84
- export declare const defaultCatalogPorts: CatalogPorts;
85
- /** Fill in every seam the composition root left unwired. */
86
- export declare function resolveCatalogPorts(overrides?: CatalogPortsOverride): CatalogPorts;
@@ -1,3 +0,0 @@
1
- import { type AgentRoleEntry } from './agent-roles.js';
2
- import type { Catalog } from './catalog.js';
3
- export declare function projectAgentRoles(catalog: Catalog, parent: unknown): Promise<AgentRoleEntry[]>;
@@ -1,59 +0,0 @@
1
- /**
2
- * Browser-safe settings contract of the market's host settings namespace: the
3
- * namespace key, the fields with their defaults, and the one reader that turns
4
- * a stored section into resolved values.
5
- *
6
- * The defaults live here and nowhere else. The namespace schema declares them
7
- * to the host, the node half reads them back through {@link resolveMarketSettings},
8
- * and the browser half — which cannot import `src/runtime` — reads the same
9
- * resolved values off the settings snapshot it is handed. Changing a default is
10
- * therefore a one-line edit in this module.
11
- *
12
- * @module contracts/settings
13
- */
14
- /** Settings namespace this plugin registers; the key the plugin-config tab pairs our card by. */
15
- export declare const MARKET_SETTINGS_NAMESPACE = "dsh-agent-plugins-market";
16
- /** The persisted download-region setting: `auto` follows the interface language. */
17
- export type DownloadRegionSetting = 'auto' | 'global' | 'china';
18
- /** Every market setting with the value it resolves to when the document says nothing. */
19
- export interface MarketSettings {
20
- /** ON = the built-in MCP bridge with OAuth and SSE; OFF = host client compat mode. */
21
- mcpEnhanced: boolean;
22
- /** ON = native project Agent layouts (`.claude/`, `.agents/`) take part in discovery. */
23
- scanProjectLayouts: boolean;
24
- /** Download region for GitHub acquisition. */
25
- downloadRegion: DownloadRegionSetting;
26
- /** ON = the `report_market_issue` model tool is registered. */
27
- feedbackEnabled: boolean;
28
- /** ON = every configured source refreshes in the background. */
29
- autoUpdateSources: boolean;
30
- }
31
- /**
32
- * The default of every market setting — the single place one is written.
33
- *
34
- * These are user-visible behavior: a flip here is a behavior change that ships
35
- * with its documentation, not a private implementation detail.
36
- */
37
- export declare const MARKET_SETTINGS_DEFAULTS: MarketSettings;
38
- /** Every field name the market's settings section carries. */
39
- export type MarketSettingKey = keyof MarketSettings;
40
- /**
41
- * Narrow an untrusted stored region to a setting; anything else reads as the
42
- * declared default.
43
- * @param value - the stored `downloadRegion` value.
44
- * @param fallback - the value an unrecognized input reads as.
45
- */
46
- export declare function narrowDownloadRegion(value: unknown, fallback?: DownloadRegionSetting): DownloadRegionSetting;
47
- /**
48
- * Resolve a stored settings section the way the host resolves it: each field
49
- * takes its stored value when it is one this field accepts, and its declared
50
- * default otherwise.
51
- *
52
- * The host hands the resolved section back on its own, but not every caller has
53
- * one — the plugin's own halves read a section they may not have received yet,
54
- * and a test hands in a bare literal. Funnelling all of them through this
55
- * function is what keeps a second reading of "what does missing mean" from
56
- * growing somewhere else.
57
- * @param section - the stored (or absent) namespace section, untrusted.
58
- */
59
- export declare function resolveMarketSettings(section: unknown): MarketSettings;
@@ -1,16 +0,0 @@
1
- import type { IncomingMessage, ServerResponse } from 'node:http';
2
- import type { MarketService } from './application/queries.js';
3
- import type { PanelResourceStore } from './application/panel-resources.js';
4
- export interface WebServerService {
5
- register(route: {
6
- kind: 'exact' | 'prefix';
7
- path: string;
8
- handler: (request: IncomingMessage, response: ServerResponse) => void | Promise<void>;
9
- }): () => void;
10
- }
11
- /** Mount every route; returns the disposer releasing them all. */
12
- export declare function mountSuiteRoutes(hostCtx: unknown, manager: MarketService, panels?: {
13
- skills: PanelResourceStore;
14
- commands: PanelResourceStore;
15
- agents: PanelResourceStore;
16
- }): () => void;
@@ -1,58 +0,0 @@
1
- /**
2
- * Runtime reconciliation for enabled suites.
3
- *
4
- * One catalog snapshot is fanned out to the existing MCP, command, hook, and
5
- * LSP mount adapters. The adapters remain separate because their host surfaces
6
- * and failure semantics differ; this module owns ordering, containment, and
7
- * disposal only.
8
- */
9
- import type { Context } from '@deepseek-ai/cordis';
10
- import { type CommandMountDiagnostic } from '../surfaces/commands-mounts.js';
11
- import { type HooksMountDiagnostic } from '../surfaces/hooks-mounts.js';
12
- import { LspMountRegistry, type LspMountDiagnostic } from '../lsp/lsp-mounts.js';
13
- import { type McpMountDiagnostic } from '../mcp/mcp-mounts.js';
14
- import type { Suite } from '../../model/types.js';
15
- import { type HostTranslate } from '../host/host-locale.js';
16
- /** Diagnostics returned by one runtime reconciliation pass. */
17
- export interface RuntimeDiagnostics {
18
- mcp: McpMountDiagnostic[];
19
- commands: CommandMountDiagnostic[];
20
- hooks: HooksMountDiagnostic[];
21
- lsp: LspMountDiagnostic[];
22
- errors: Array<{
23
- surface: 'mcp' | 'commands' | 'hooks' | 'lsp';
24
- reason: string;
25
- }>;
26
- }
27
- export declare class RuntimeReconciler {
28
- private readonly mcp;
29
- private readonly commands;
30
- private readonly hooks;
31
- private readonly lspRegistry;
32
- private readonly queues;
33
- private disposed;
34
- constructor(ctx: Context, dataRoot: string, t?: HostTranslate);
35
- /** The LSP mount registry, consumed by the LSP status surface. */
36
- get lsp(): LspMountRegistry;
37
- /** Install the per-suite MCP overrides provider used at mount time. */
38
- setMcpOverridesProvider(provider: () => Promise<Map<string, import('../../application/mcp/mcp-overrides.js').McpSuiteOverrides>>): void;
39
- /** Install the live tool-name provider used for foreign-namespace mount guards. */
40
- setMcpToolNamesProvider(provider: () => string[]): void;
41
- /** Install the backend provider deciding which MCP client mounts each server. */
42
- setMcpBackendProvider(provider: () => Promise<import('../../application/mcp/mcp-backend.js').McpBackend>): void;
43
- /** Whether the current MCP snapshot uses one credential reference. */
44
- usesCredential(ref: string): boolean;
45
- /** Flag one MCP mount for an explicit rebuild on the next reconcile. */
46
- forceMcpRemount(suiteId: string, serverKey: string): void;
47
- /** Flag every live MCP mount for a rebuild on the next reconcile. */
48
- forceMcpRemountAll(): void;
49
- /** The mount key owning one derived serverName; undefined when not mounted here. */
50
- mcpServerOwner(serverName: string): {
51
- suiteId: string;
52
- serverKey: string;
53
- } | undefined;
54
- /** Reconcile all runtime surfaces against one enabled-suite snapshot. */
55
- reconcile(enabledSuites: readonly Suite[]): Promise<RuntimeDiagnostics>;
56
- /** Dispose all live mounts and registrations. */
57
- dispose(): Promise<void>;
58
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * User command mounting: every enabled entry of the user commands panel
3
- * registers as a dsh slash command, so user-authored quick replies behave
4
- * exactly like suite commands — the body with `$ARGUMENTS` substituted rides
5
- * one follow-up message on the receiving agent. A nested entry registers
6
- * under its flattened call name (`git/commit` → `git-commit`) while the panel
7
- * keeps addressing it by path; when two entries flatten to one call name the
8
- * first registers and the other is reported. Reconciled on every catalog
9
- * change, keyed by the call name.
10
- * @module runtime/user-commands
11
- */
12
- import type { Context } from '@deepseek-ai/cordis';
13
- import type { HostTranslate } from '../host/host-locale.js';
14
- import type { UserPanelStore } from './user-panels.js';
15
- /** Register/unregister user-panel commands to match the panel's enabled entries. */
16
- export declare class UserCommandMountRegistry {
17
- private readonly ctx;
18
- private readonly store;
19
- private readonly t;
20
- private readonly fingerprints;
21
- private readonly live;
22
- constructor(ctx: Context, store: UserPanelStore, t: HostTranslate);
23
- /** Sync the live registrations with the panel's enabled entries. */
24
- reconcile(): Promise<string[]>;
25
- /** Dispose every registration (plugin teardown). */
26
- disposeAll(): void;
27
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * Claude Code command compatibility: `commands/*.md` of enabled suites
3
- * register as dsh slash commands.
4
- *
5
- * A CC command is a prompt template the model executes (its body carries
6
- * `$ARGUMENTS`, path variables and `` !`cmd` `` dynamic-context placeholders),
7
- * so the handler maps it onto the harness's follow-up mechanism: the template
8
- * with those placeholders resolved becomes one durable user-role follow-up
9
- * message on the receiving agent. Registrations reconcile on every
10
- * enable/disable/install/uninstall; a broken command file, a failed injected
11
- * command, or an unavailable `ctx.commands` is contained per command and
12
- * reported as a diagnostic.
13
- */
14
- import type { Context } from '@deepseek-ai/cordis';
15
- import type { Suite, SuiteMarkdownResource } from '../../model/types.js';
16
- import { type HostTranslate } from '../host/host-locale.js';
17
- export interface CommandMountDiagnostic {
18
- suiteId: string;
19
- command: string;
20
- reason: string;
21
- }
22
- interface CommandSpec {
23
- name: string;
24
- description: string;
25
- body: string;
26
- hint?: string;
27
- /** Set when the command file belongs to a suite with a plugin root; absent for project-native files. */
28
- suiteRoot?: string;
29
- /** The suite's `${PLUGIN_DATA}` directory; absent for project-native files. */
30
- suiteData?: string;
31
- }
32
- export declare class CommandMountRegistry {
33
- private readonly ctx;
34
- private readonly t;
35
- private readonly dataRoot?;
36
- private readonly fingerprints;
37
- private readonly live;
38
- constructor(ctx: Context, t?: HostTranslate, dataRoot?: string | undefined);
39
- /** The live shell seam, when the profile has one; dynamic context stays literal without it. */
40
- private shell;
41
- /** Register/unregister suite commands to match the enabled suites exactly. */
42
- reconcile(enabledSuites: Suite[]): Promise<CommandMountDiagnostic[]>;
43
- /** Dispose every registered command; used at plugin teardown. */
44
- disposeAll(): void;
45
- }
46
- /** Parse `commands/*.md` of one suite root (Claude Code format). */
47
- export declare function readCommands(root: string, resources?: SuiteMarkdownResource[]): Promise<CommandSpec[]>;
48
- export {};
@@ -1,23 +0,0 @@
1
- import type { SkillCandidate, SkillDefinition, SkillLookupOptions, SkillProvider } from '@deepseek-ai/dsh-skill';
2
- import type { Catalog } from '../../application/catalog.js';
3
- import { type ShellSeam } from './dynamic-context.js';
4
- export declare const SUITE_PROJECT_SOURCE = "agent-plugin-project";
5
- export declare const SUITE_USER_SOURCE = "agent-plugin-user";
6
- /** Runtime inputs the provider cannot read off one suite. */
7
- export interface SuiteSkillProviderOptions {
8
- /** Plugin storage root holding each suite's data directory. */
9
- dataRoot?: string;
10
- /** Resolves the live shell seam; absent keeps dynamic-context placeholders literal. */
11
- shell?: () => ShellSeam | undefined;
12
- }
13
- export declare class SuiteSkillProvider implements SkillProvider {
14
- private readonly manager;
15
- private readonly options;
16
- readonly name = "agent-plugin";
17
- constructor(manager: Catalog, options?: SuiteSkillProviderOptions);
18
- list(options: SkillLookupOptions): Promise<SkillCandidate[]>;
19
- get(candidate: SkillCandidate, options: SkillLookupOptions): Promise<SkillDefinition | undefined>;
20
- private candidateFor;
21
- private locate;
22
- private locateProject;
23
- }