dsh-agent-plugins-market 0.8.1 → 0.8.3

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 (157) hide show
  1. package/README.md +2 -2
  2. package/README.zh.md +2 -2
  3. package/client/client.js +1593 -1728
  4. package/client/client.js.map +1 -1
  5. package/lib/application/agent-roles.js +53 -0
  6. package/lib/application/catalog-context.js +2 -2
  7. package/lib/application/catalog.js +4 -8
  8. package/lib/{runtime → application}/deadline.js +1 -1
  9. package/lib/application/details.js +3 -3
  10. package/lib/application/json-file.js +43 -0
  11. package/lib/{runtime → application/lsp}/lsp-direct-config.js +9 -7
  12. package/lib/application/lsp/lsp-server-state.js +17 -0
  13. package/lib/{runtime → application/lsp}/lsp-status.js +22 -7
  14. package/lib/{runtime → application/lsp}/profile-seam.js +1 -1
  15. package/lib/application/lsp-service.js +5 -5
  16. package/lib/{runtime → application/mcp}/mcp-backend.js +3 -19
  17. package/lib/{runtime → application/mcp}/mcp-config.js +4 -4
  18. package/lib/{runtime → application/mcp}/mcp-direct-config.js +8 -49
  19. package/lib/{runtime → application/mcp}/mcp-overrides.js +3 -5
  20. package/lib/{runtime → application/mcp}/mcp-redaction.js +27 -4
  21. package/lib/{runtime → application/mcp}/mcp-status.js +13 -7
  22. package/lib/application/mcp-service.js +11 -35
  23. package/lib/application/panel-resources.js +48 -11
  24. package/lib/{runtime → application/panels}/user-hooks.js +2 -2
  25. package/lib/{runtime → application/panels}/user-store.js +2 -2
  26. package/lib/application/ports.js +1 -0
  27. package/lib/application/project-agent-roles.js +1 -1
  28. package/lib/{runtime → application}/server-config.js +7 -17
  29. package/lib/application/snapshot-cache.js +1 -1
  30. package/lib/application/source-store.js +3 -4
  31. package/lib/{runtime → application/state}/state-store.js +5 -7
  32. package/lib/{runtime → application/state}/storage-migration.js +4 -4
  33. package/lib/catalog/source-catalog.js +0 -4
  34. package/lib/contracts/lsp.js +1 -0
  35. package/lib/contracts/market.js +0 -1
  36. package/lib/contracts/mcp.js +1 -0
  37. package/lib/index.js +42 -33
  38. package/lib/routes.js +2 -9
  39. package/lib/runtime/{agent-role-router.js → agents/agent-role-router.js} +7 -53
  40. package/lib/runtime/{subagent-catalog.js → agents/subagent-catalog.js} +24 -16
  41. package/lib/runtime/core/context.js +31 -0
  42. package/lib/runtime/{reconciler.js → core/reconciler.js} +5 -5
  43. package/lib/runtime/host/failure-detail.js +58 -0
  44. package/lib/runtime/{feedback-tool.js → host/feedback-tool.js} +1 -1
  45. package/lib/runtime/host/host-locale.js +83 -0
  46. package/lib/runtime/{settings-namespace.js → host/settings-namespace.js} +1 -1
  47. package/lib/runtime/host/shell-path.js +196 -0
  48. package/lib/runtime/{tool-registry-observer.js → host/tool-registry-observer.js} +2 -1
  49. package/lib/runtime/{lsp-mounts.js → lsp/lsp-mounts.js} +69 -20
  50. package/lib/runtime/{mcp-client → mcp/bridge}/bridge.js +52 -22
  51. package/lib/runtime/{mcp-client → mcp/bridge}/connection.js +2 -2
  52. package/lib/runtime/{mcp-client → mcp/bridge}/oauth.js +1 -1
  53. package/lib/runtime/{mcp-client → mcp/bridge}/tools.js +2 -2
  54. package/lib/runtime/{mcp-auth-record.js → mcp/mcp-auth-record.js} +1 -1
  55. package/lib/runtime/{mcp-mounts.js → mcp/mcp-mounts.js} +14 -7
  56. package/lib/runtime/{user-commands.js → panels/user-commands.js} +3 -3
  57. package/lib/runtime/{user-panels.js → panels/user-panels.js} +2 -2
  58. package/lib/runtime/{commands-mounts.js → surfaces/commands-mounts.js} +7 -7
  59. package/lib/runtime/{hooks-mounts.js → surfaces/hooks-mounts.js} +2 -2
  60. package/lib/runtime/{project-runtime.js → surfaces/project-runtime.js} +5 -5
  61. package/lib/runtime/{skills-provider.js → surfaces/skills-provider.js} +4 -4
  62. package/lib/types/application/agent-roles.d.ts +30 -0
  63. package/lib/types/application/catalog.d.ts +4 -7
  64. package/lib/types/application/details.d.ts +1 -1
  65. package/lib/types/application/json-file.d.ts +12 -0
  66. package/lib/types/{runtime → application/lsp}/lsp-direct-config.d.ts +1 -1
  67. package/lib/types/{runtime → application/lsp}/lsp-status.d.ts +3 -3
  68. package/lib/types/{runtime → application/mcp}/mcp-backend.d.ts +4 -9
  69. package/lib/types/{runtime/mcp-client/config.d.ts → application/mcp/mcp-bridge-config.d.ts} +11 -1
  70. package/lib/types/{runtime → application/mcp}/mcp-config.d.ts +6 -7
  71. package/lib/types/application/mcp/mcp-direct-config.d.ts +17 -0
  72. package/lib/types/{runtime → application/mcp}/mcp-overrides.d.ts +1 -1
  73. package/lib/types/{runtime → application/mcp}/mcp-status.d.ts +7 -7
  74. package/lib/types/application/mcp-service.d.ts +4 -11
  75. package/lib/types/application/panel-resources.d.ts +9 -2
  76. package/lib/types/{runtime → application/panels}/user-hooks.d.ts +1 -1
  77. package/lib/types/{runtime → application/panels}/user-store.d.ts +1 -1
  78. package/lib/types/application/ports.d.ts +17 -3
  79. package/lib/types/application/project-agent-roles.d.ts +1 -1
  80. package/lib/types/application/queries.d.ts +3 -6
  81. package/lib/types/{runtime → application}/regions.d.ts +1 -1
  82. package/lib/types/{runtime → application/state}/state-store.d.ts +2 -2
  83. package/lib/types/catalog/source-catalog.d.ts +0 -2
  84. package/lib/types/contracts/lsp-status.d.ts +6 -0
  85. package/lib/types/contracts/lsp.d.ts +16 -0
  86. package/lib/types/contracts/market.d.ts +1 -4
  87. package/lib/types/contracts/mcp-status.d.ts +21 -2
  88. package/lib/types/contracts/mcp.d.ts +20 -0
  89. package/lib/types/model/types.d.ts +0 -14
  90. package/lib/types/runtime/{agent-role-router.d.ts → agents/agent-role-router.d.ts} +3 -28
  91. package/lib/types/runtime/{subagent-catalog.d.ts → agents/subagent-catalog.d.ts} +6 -6
  92. package/lib/types/runtime/core/context.d.ts +14 -0
  93. package/lib/types/runtime/{reconcile-scheduler.d.ts → core/reconcile-scheduler.d.ts} +2 -2
  94. package/lib/types/runtime/{reconciler.d.ts → core/reconciler.d.ts} +8 -8
  95. package/lib/types/runtime/host/failure-detail.d.ts +6 -0
  96. package/lib/types/runtime/host/host-locale.d.ts +66 -0
  97. package/lib/types/runtime/{model-catalog.d.ts → host/model-catalog.d.ts} +1 -1
  98. package/lib/types/runtime/{settings-namespace.d.ts → host/settings-namespace.d.ts} +2 -2
  99. package/lib/types/runtime/host/shell-path.d.ts +70 -0
  100. package/lib/types/runtime/{lsp-mounts.d.ts → lsp/lsp-mounts.d.ts} +17 -11
  101. package/lib/types/runtime/{mcp-client → mcp/bridge}/bridge.d.ts +1 -1
  102. package/lib/types/runtime/{mcp-client → mcp/bridge}/connection.d.ts +3 -11
  103. package/lib/types/runtime/{mcp-client → mcp/bridge}/host-contract.d.ts +1 -1
  104. package/lib/types/runtime/{mcp-client → mcp/bridge}/oauth.d.ts +1 -1
  105. package/lib/types/runtime/{mcp-client → mcp/bridge}/transport.d.ts +1 -1
  106. package/lib/types/runtime/{mcp-auth-record.d.ts → mcp/mcp-auth-record.d.ts} +1 -1
  107. package/lib/types/runtime/{mcp-credentials.d.ts → mcp/mcp-credentials.d.ts} +1 -1
  108. package/lib/types/runtime/{mcp-mounts.d.ts → mcp/mcp-mounts.d.ts} +5 -11
  109. package/lib/types/runtime/{user-commands.d.ts → panels/user-commands.d.ts} +1 -1
  110. package/lib/types/runtime/{user-panels.d.ts → panels/user-panels.d.ts} +1 -1
  111. package/lib/types/runtime/{commands-mounts.d.ts → surfaces/commands-mounts.d.ts} +2 -2
  112. package/lib/types/runtime/{hooks-mounts.d.ts → surfaces/hooks-mounts.d.ts} +1 -1
  113. package/lib/types/runtime/{project-runtime.d.ts → surfaces/project-runtime.d.ts} +3 -3
  114. package/lib/types/runtime/{skills-provider.d.ts → surfaces/skills-provider.d.ts} +1 -1
  115. package/package.json +38 -35
  116. package/lib/runtime/host-locale.js +0 -89
  117. package/lib/runtime/legacy-root-migration.js +0 -12
  118. package/lib/runtime/lsp-server-state.js +0 -19
  119. package/lib/runtime/mcp-client/json-schema-subset.js +0 -181
  120. package/lib/types/runtime/host-locale.d.ts +0 -31
  121. package/lib/types/runtime/legacy-root-migration.d.ts +0 -2
  122. package/lib/types/runtime/mcp-client/json-schema-subset.d.ts +0 -58
  123. package/lib/types/runtime/mcp-direct-config.d.ts +0 -39
  124. /package/lib/{runtime/mcp-client/config.js → application/mcp/mcp-bridge-config.js} +0 -0
  125. /package/lib/{runtime → application}/regions.js +0 -0
  126. /package/lib/runtime/{agent-role-names.js → agents/agent-role-names.js} +0 -0
  127. /package/lib/runtime/{mount-lifecycle.js → core/mount-lifecycle.js} +0 -0
  128. /package/lib/runtime/{reconcile-scheduler.js → core/reconcile-scheduler.js} +0 -0
  129. /package/lib/runtime/{source-auto-update.js → core/source-auto-update.js} +0 -0
  130. /package/lib/runtime/{timer-seat.js → core/timer-seat.js} +0 -0
  131. /package/lib/runtime/{model-catalog.js → host/model-catalog.js} +0 -0
  132. /package/lib/runtime/{plugin-message-source.js → host/plugin-message-source.js} +0 -0
  133. /package/lib/runtime/{mcp-client → mcp/bridge}/host-contract.js +0 -0
  134. /package/lib/runtime/{mcp-client → mcp/bridge}/host-seams.js +0 -0
  135. /package/lib/runtime/{mcp-client → mcp/bridge}/plugin-identity.js +0 -0
  136. /package/lib/runtime/{mcp-client → mcp/bridge}/projection.js +0 -0
  137. /package/lib/runtime/{mcp-client → mcp/bridge}/transport.js +0 -0
  138. /package/lib/runtime/{mcp-credentials.js → mcp/mcp-credentials.js} +0 -0
  139. /package/lib/runtime/{dynamic-context.js → surfaces/dynamic-context.js} +0 -0
  140. /package/lib/types/{runtime → application}/deadline.d.ts +0 -0
  141. /package/lib/types/{runtime → application/lsp}/lsp-server-state.d.ts +0 -0
  142. /package/lib/types/{runtime → application/lsp}/profile-seam.d.ts +0 -0
  143. /package/lib/types/{runtime → application/mcp}/mcp-redaction.d.ts +0 -0
  144. /package/lib/types/{runtime → application}/server-config.d.ts +0 -0
  145. /package/lib/types/{runtime → application/state}/storage-migration.d.ts +0 -0
  146. /package/lib/types/runtime/{agent-role-names.d.ts → agents/agent-role-names.d.ts} +0 -0
  147. /package/lib/types/runtime/{mount-lifecycle.d.ts → core/mount-lifecycle.d.ts} +0 -0
  148. /package/lib/types/runtime/{source-auto-update.d.ts → core/source-auto-update.d.ts} +0 -0
  149. /package/lib/types/runtime/{timer-seat.d.ts → core/timer-seat.d.ts} +0 -0
  150. /package/lib/types/runtime/{feedback-tool.d.ts → host/feedback-tool.d.ts} +0 -0
  151. /package/lib/types/runtime/{plugin-message-source.d.ts → host/plugin-message-source.d.ts} +0 -0
  152. /package/lib/types/runtime/{tool-registry-observer.d.ts → host/tool-registry-observer.d.ts} +0 -0
  153. /package/lib/types/runtime/{mcp-client → mcp/bridge}/host-seams.d.ts +0 -0
  154. /package/lib/types/runtime/{mcp-client → mcp/bridge}/plugin-identity.d.ts +0 -0
  155. /package/lib/types/runtime/{mcp-client → mcp/bridge}/projection.d.ts +0 -0
  156. /package/lib/types/runtime/{mcp-client → mcp/bridge}/tools.d.ts +0 -0
  157. /package/lib/types/runtime/{dynamic-context.d.ts → surfaces/dynamic-context.d.ts} +0 -0
package/README.md CHANGED
@@ -54,7 +54,7 @@ English | [简体中文](README.zh.md) | [Documentation](https://sivan757.github
54
54
  - **First-party source.** The plugin presets one source record pointing at its own suite collection, so the market lists that repository on first run with no URL to paste. It is an ordinary Git source from there on — refresh it to fetch, then install and toggle its suites like any other.
55
55
  - **Downloads that fit your network.** Pick a download region — default `auto` follows the interface language, or choose global / China mainland — and the plugin routes `github.com` clones through the matching mirror. A proxy and per-invocation tuning live in the host config.
56
56
  - **Runtime surfaces.** Enabled suites inject into sessions: skills into the catalog and slash menu, commands as `/name`, agent personas into the subagent catalog, MCP tools with an `mcp__` prefix, hooks onto host lifecycle events, and language servers through the `lsp` tool.
57
- - **MCP.** A built-in bridge runs stdio, Streamable HTTP with OAuth and legacy SSE without a host MCP client. `${VAR}` references resolve from the host credential store or the launch environment; per-server overrides disable or patch a declaration without editing the source, set the tool-call and startup timeouts, and switch individual tools off; a new service starts from a template or a pasted definition whose entries each report their own outcome; an optional host-client compatibility mode is available. Tools register as `mcp__<suite>__<server>__<tool>`.
57
+ - **MCP.** A built-in bridge runs stdio, Streamable HTTP with OAuth and legacy SSE without a host MCP client. `${VAR}` references resolve from the host credential store or the launch environment; per-server overrides disable or patch a declaration without editing the source, set the tool-call and startup timeouts, and switch individual tools off; the new-service form asks only for the name, the transport and the field that transport requires, with every other setting written as JSON; an optional host-client compatibility mode is available. Tools register as `mcp__<suite>__<server>__<tool>`.
58
58
  - **LSP.** Self-provisioned: installing the plugin is the whole setup, and the `lsp` tool mounts only while a language server is wanted. The server executable itself must be on `PATH`. Upgrading from a release that asked you to expose LSP from your profile? A profile that still carries that hand-added layer reports a seam conflict; the LSP panel names the file and removes the layer for you, keeping a backup.
59
59
  - **Agent personas and delegation.** Role cards save an exact provider, model and reasoning effort; they appear in the session catalog and run through `subagent_role`, which starts a durable background child and returns its id immediately.
60
60
  - **Project dimension.** Skills, agents, commands, MCP servers and hooks are read from the project's own directories with no install step.
@@ -219,7 +219,7 @@ Only when you tick **also delete the managed market directory** in the confirmat
219
219
  - [Contributing](CONTRIBUTING.md): development setup, checks and PR workflow.
220
220
  - [Security policy](SECURITY.md) · [Release history](CHANGELOG.md) · [MIT license](LICENSE).
221
221
  - [Domain glossary](CONTEXT.md) · [Architecture](docs/developer/decisions/0001-catalog-centered-modular-refactor.md).
222
- - [Agent roles and storage](docs/user/agent-roles.md): installed-resource editing, model routing and migration.
222
+ - [Agent roles and storage](docs/user/agent-roles.md): installed-resource switching, model routing and migration.
223
223
 
224
224
  ## Community
225
225
 
package/README.zh.md CHANGED
@@ -54,7 +54,7 @@
54
54
  - **第一方来源。** 插件预置一条指向自身套件集合的仓库源记录,所以首次运行市场里就列出该仓库,不需要粘贴任何地址。此后它就是普通 Git 来源——刷新以拉取,再像其他来源一样安装与启停其中的套件。
55
55
  - **适合你网络的下载方式。** 下载区域设置(默认 `auto` 跟随界面语言,也可显式选择全球或中国大陆)决定 `github.com` 克隆走的镜像前缀;代理与单次调用调优在宿主配置里。
56
56
  - **运行时能力。** 启用套件会注入会话:技能进入目录与斜杠菜单,命令以 `/名称` 调用,代理角色进入子代理目录,MCP 工具以 `mcp__` 前缀注册,hooks 挂到宿主生命周期事件,语言服务器通过 `lsp` 工具使用。
57
- - **MCP。** 内置桥接无需宿主 MCP 客户端,支持 stdio、带 OAuth 的 Streamable HTTP 和旧式 SSE。`${VAR}` 引用从宿主凭据服务或启动环境解析;按服务覆盖可禁用或修补声明,不必修改源文件,可设置工具调用超时与启动超时,也可逐个关闭工具;新建服务可以从模板或粘贴的定义开始,粘贴的每一条各自给出结果;还可选用宿主客户端兼容模式。工具名为 `mcp__<套件>__<服务>__<工具>`。
57
+ - **MCP。** 内置桥接无需宿主 MCP 客户端,支持 stdio、带 OAuth 的 Streamable HTTP 和旧式 SSE。`${VAR}` 引用从宿主凭据服务或启动环境解析;按服务覆盖可禁用或修补声明,不必修改源文件,可设置工具调用超时与启动超时,也可逐个关闭工具;新建服务表单只问名称、传输方式与该传输方式必需的字段,其余设置都以 JSON 写入;还可选用宿主客户端兼容模式。工具名为 `mcp__<套件>__<服务>__<工具>`。
58
58
  - **LSP。** 随插件自带:安装插件即完成全部设置,`lsp` 工具只在确有语言服务器需求时挂载;语言服务器可执行文件本身需在 `PATH` 中。从「需要你自己在 profile 里暴露 LSP」的版本升级上来时,若 profile 里还留着那层手工配置,会报接缝冲突;LSP 面板会指出该文件并代为移除这一层,且保留备份。
59
59
  - **代理角色与委派。** 角色卡片保存精确的供应商、模型与思考强度;角色出现在会话目录中,通过 `subagent_role` 运行,立即返回可继续的后台子代理 ID。
60
60
  - **项目维度。** 项目自身的技能、代理、命令、MCP 服务与 hooks 无需安装即被发现。
@@ -219,7 +219,7 @@ README 中的仓库在 [`tests/fixtures/real-layouts/`](tests/fixtures/real-layo
219
219
  - [贡献指南](CONTRIBUTING.md):开发环境、检查命令和 PR 流程。
220
220
  - [安全政策](SECURITY.md) · [版本记录](CHANGELOG.md) · [MIT 许可](LICENSE)。
221
221
  - [领域词汇](CONTEXT.md) · [架构设计](docs/developer/decisions/0001-catalog-centered-modular-refactor.md)。
222
- - [代理角色与存储](docs/user/agent-roles.zh.md):已安装资源编辑、角色模型路由与目录迁移。
222
+ - [代理角色与存储](docs/user/agent-roles.zh.md):已安装资源切换、角色模型路由与目录迁移。
223
223
 
224
224
  ## 交流群
225
225