dsh-agent-plugins-market 0.14.4 → 0.15.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 (83) hide show
  1. package/README.md +3 -0
  2. package/README.zh.md +3 -0
  3. package/client/client.js +1 -1
  4. package/client/client.js.map +1 -1
  5. package/lib/packages/market-bundle/src/application/catalog.js +20 -15
  6. package/lib/packages/market-bundle/src/index.js +36 -13
  7. package/lib/packages/market-bundle/src/platform/diagnostics.js +146 -0
  8. package/lib/packages/market-bundle/src/platform/feedback-tool.js +37 -6
  9. package/lib/packages/market-bundle/src/platform/settings-namespace.js +2 -1
  10. package/lib/packages/market-bundle/src/session-extension.js +4 -4
  11. package/lib/packages/market-catalog/src/application/catalog-context.js +8 -14
  12. package/lib/packages/market-catalog/src/application/install-store.js +5 -9
  13. package/lib/packages/market-catalog/src/application/snapshot-cache.js +118 -211
  14. package/lib/packages/market-catalog/src/application/source-index-schema.js +117 -0
  15. package/lib/packages/market-catalog/src/application/source-index.js +309 -0
  16. package/lib/packages/market-catalog/src/application/source-store.js +167 -194
  17. package/lib/packages/market-catalog/src/scanning/paths.js +18 -2
  18. package/lib/packages/market-catalog/src/scanning/scan-pipeline.js +2 -1
  19. package/lib/packages/market-catalog/src/scanning/scan-resolvers.js +21 -13
  20. package/lib/packages/market-catalog/src/scanning/source-catalog.js +24 -17
  21. package/lib/packages/market-contracts/src/contracts/mcp-health.js +1 -0
  22. package/lib/packages/market-contracts/src/host/plugin-message-source.js +8 -0
  23. package/lib/packages/market-lsp/src/application/lsp-service.js +8 -8
  24. package/lib/packages/market-mcp/src/application/mcp/mcp-health.js +182 -0
  25. package/lib/packages/market-mcp/src/application/mcp-service.js +8 -8
  26. package/lib/packages/market-mcp/src/index.js +2 -0
  27. package/lib/packages/market-mcp/src/runtime/mcp/bridge/connection.js +5 -1
  28. package/lib/packages/market-mcp/src/runtime/mcp/bridge/tools.js +52 -1
  29. package/lib/packages/market-mcp/src/runtime/mcp/mcp-connection-registry.js +30 -0
  30. package/lib/packages/market-runtime/src/application/command-arguments.js +14 -17
  31. package/lib/packages/market-runtime/src/application/command-resources.js +3 -2
  32. package/lib/packages/market-runtime/src/application/panel-resources.js +1 -1
  33. package/lib/packages/market-runtime/src/index.js +2 -3
  34. package/lib/packages/market-runtime/src/runtime/agents/agent-role-router.js +16 -22
  35. package/lib/packages/market-runtime/src/runtime/agents/role-composition.js +22 -13
  36. package/lib/packages/market-runtime/src/runtime/agents/subagent-catalog.js +49 -95
  37. package/lib/packages/market-runtime/src/runtime/agents/subagent-seam.js +29 -5
  38. package/lib/packages/market-runtime/src/runtime/host/extension-session-state.js +31 -2
  39. package/lib/packages/market-runtime/src/runtime/host/host-locale.js +18 -2
  40. package/lib/packages/market-runtime/src/runtime/host/mcp-health-notice.js +93 -0
  41. package/lib/packages/market-runtime/src/runtime/host/mcp-health-section.js +60 -0
  42. package/lib/packages/market-runtime/src/runtime/host/scoped-contributors.js +22 -10
  43. package/lib/types/packages/market-bundle/src/application/catalog.d.ts +7 -2
  44. package/lib/types/packages/market-bundle/src/platform/diagnostics.d.ts +88 -0
  45. package/lib/types/packages/market-bundle/src/platform/feedback-tool.d.ts +12 -1
  46. package/lib/types/packages/market-bundle/src/platform/settings-namespace.d.ts +3 -0
  47. package/lib/types/packages/market-bundle/src/session-extension.d.ts +1 -1
  48. package/lib/types/packages/market-catalog/src/application/catalog-context.d.ts +5 -8
  49. package/lib/types/packages/market-catalog/src/application/snapshot-cache.d.ts +24 -61
  50. package/lib/types/packages/market-catalog/src/application/source-index-schema.d.ts +25 -0
  51. package/lib/types/packages/market-catalog/src/application/source-index.d.ts +43 -0
  52. package/lib/types/packages/market-catalog/src/application/source-store.d.ts +6 -12
  53. package/lib/types/packages/market-catalog/src/scanning/scan-pipeline.d.ts +8 -0
  54. package/lib/types/packages/market-catalog/src/scanning/scan-resolvers.d.ts +2 -0
  55. package/lib/types/packages/market-catalog/src/scanning/source-catalog.d.ts +17 -1
  56. package/lib/types/packages/market-contracts/src/contracts/mcp-health.d.ts +49 -0
  57. package/lib/types/packages/market-contracts/src/host/plugin-message-source.d.ts +28 -5
  58. package/lib/types/packages/market-lsp/src/application/lsp-service.d.ts +1 -1
  59. package/lib/types/packages/market-mcp/src/application/mcp/mcp-health.d.ts +119 -0
  60. package/lib/types/packages/market-mcp/src/application/mcp-service.d.ts +1 -1
  61. package/lib/types/packages/market-mcp/src/index.d.ts +2 -0
  62. package/lib/types/packages/market-mcp/src/runtime/mcp/bridge/tools.d.ts +25 -0
  63. package/lib/types/packages/market-mcp/src/runtime/mcp/mcp-connection-registry.d.ts +23 -0
  64. package/lib/types/packages/market-runtime/src/application/command-arguments.d.ts +10 -8
  65. package/lib/types/packages/market-runtime/src/application/command-resources.d.ts +1 -1
  66. package/lib/types/packages/market-runtime/src/catalog-port.d.ts +1 -0
  67. package/lib/types/packages/market-runtime/src/index.d.ts +3 -3
  68. package/lib/types/packages/market-runtime/src/runtime/agents/role-composition.d.ts +10 -7
  69. package/lib/types/packages/market-runtime/src/runtime/agents/subagent-catalog.d.ts +10 -19
  70. package/lib/types/packages/market-runtime/src/runtime/agents/subagent-seam.d.ts +21 -9
  71. package/lib/types/packages/market-runtime/src/runtime/host/extension-session-state.d.ts +12 -0
  72. package/lib/types/packages/market-runtime/src/runtime/host/host-locale.d.ts +1 -1
  73. package/lib/types/packages/market-runtime/src/runtime/host/mcp-health-notice.d.ts +60 -0
  74. package/lib/types/packages/market-runtime/src/runtime/host/mcp-health-section.d.ts +46 -0
  75. package/package.json +69 -75
  76. package/lib/packages/market-runtime/src/runtime/agents/agent-teams-seat.js +0 -58
  77. package/lib/packages/market-runtime/src/runtime/agents/team-coordination.js +0 -51
  78. package/lib/packages/market-runtime/src/runtime/agents/teammate-role-runtime.js +0 -235
  79. package/lib/packages/market-runtime/src/runtime/agents/teammate-role-tool.js +0 -145
  80. package/lib/types/packages/market-runtime/src/runtime/agents/agent-teams-seat.d.ts +0 -41
  81. package/lib/types/packages/market-runtime/src/runtime/agents/team-coordination.d.ts +0 -8
  82. package/lib/types/packages/market-runtime/src/runtime/agents/teammate-role-runtime.d.ts +0 -74
  83. package/lib/types/packages/market-runtime/src/runtime/agents/teammate-role-tool.d.ts +0 -13
package/README.md CHANGED
@@ -73,6 +73,7 @@ Terminal alternative: `dsh plugin --profile <name> add dsh-agent-plugins-market`
73
73
 
74
74
  - **MCP OAuth with nothing to declare.** A remote MCP server that answers `401` starts RFC 9728 discovery, dynamic client registration and PKCE authorization in your browser, and the granted token persists. OAuth is on by default, so a suite needs no declaration for it.
75
75
  - **Per-server MCP control.** Override a declaration without editing its source, switch one tool off, and set the tool-call and startup timeouts.
76
+ - **MCP health that reaches the conversation.** A server that drops its connection reports the retry, its suite and the last error in the chat, and while it is unavailable the model's prompt names the missing tools, so an answer says what is gone instead of silently working around it.
76
77
  - **Project and personal resources.** Turn on **Scan project Agent layouts** to read skills, commands, roles, MCP servers and hooks from the project's own directories. Author your own under `~/.agents/` as Markdown, and disable a resource without deleting its file.
77
78
  - **Per-workspace control.** Each workspace switches the six mounted surfaces off or on, keeps its own resource filters, saves a resource-window setup as a favorite that works across projects, and stows tabs it does not need into the menu at the end of the tab row.
78
79
  - **Hooks that decide, not just observe.** Ten events apply what the hook returns: tool deny, ask and allow, added context, corrective feedback, a forced continuation, and a real halt for `continue: false`. A hook row opens a declaration card with its event, matcher and timeout, plus a dry run in your home directory. [Hook event coverage](docs/reference/hooks-event-coverage.md) lists every event and the three reference fields the host cannot apply yet.
@@ -96,6 +97,8 @@ The workspace has nine tabs:
96
97
 
97
98
  A **source** is where content comes from. A **suite** is an installable unit discovered there. Adding a source discovers its suites. Enabling a suite turns its runtime capabilities on.
98
99
 
100
+ Session startup and resource panels read sources with installed suites. Managed sources reuse discovery indexes across restarts. Local and adopted sources recheck installed suite directories on demand. Opening Market discovers other configured sources as needed. See [discovery and refresh](docs/user/sources.md#discovery-and-refresh) for when edits become visible.
101
+
99
102
  Your own content lives under `~/.agents/`: skills, commands and personas as Markdown, hooks in `hooks.json`, and the MCP and LSP services you add in `mcp.json` and `lsp.json`. The [instructions guide](https://sivan757.github.io/dsh-agent-plugins-market/docs/instructions/) explains the AGENTS.md chain the host injects and the page that edits it, and the [output styles guide](https://sivan757.github.io/dsh-agent-plugins-market/docs/output-styles/) explains the block that shapes each answer. Project-native resources stay in the project. See [storage and discovery](https://sivan757.github.io/dsh-agent-plugins-market/docs/resources/#storage-and-discovery).
100
103
 
101
104
  ## Compatibility
package/README.zh.md CHANGED
@@ -73,6 +73,7 @@
73
73
 
74
74
  - **MCP OAuth,无需声明。** 远端 MCP 服务返回 `401` 时,自动完成 RFC 9728 发现、动态客户端注册与 PKCE 授权,浏览器授权后令牌持久保存。OAuth 默认开启,套件不需要为此写任何声明。
75
75
  - **逐个 MCP 服务精调。** 不改动来源就能覆盖某条声明,单独关闭某个工具,并设置工具调用与启动超时。
76
+ - **MCP 掉线会说出来。** 服务断线时在对话里说明第几次重试、所属套件与最近错误;不可用期间,模型的提示词里点名缺失的工具,回答会说明缺了什么,而不是悄悄绕开。
76
77
  - **项目资源与自己创作的内容。** 打开**扫描项目 Agent 布局**后,无需安装即可读取项目自身目录中的技能、命令、角色、MCP 服务与 hooks。自己的内容放在 `~/.agents/` 下,以 Markdown 编写;停用资源不必删除文件。
77
78
  - **按工作区生效的控制。** 每个工作区可以单独开关六类挂载能力,保留自己的资源筛选条件,把资源窗口配置存为可跨项目使用的收藏,还可以把用不到的页签收纳进页签行末尾的菜单。
78
79
  - **Hooks 会真正生效,而不只是旁观。** 十个事件会应用 hook 返回的结果:工具拦截、确认与放行,补充上下文,纠正反馈,强制续跑,以及 `continue: false` 带来的真正中止。每个 hook 行都能打开声明卡,查看事件、匹配条件与超时,并在用户根目录试运行一次。[Hook 事件覆盖](docs/reference/hooks-event-coverage.md)列出了全部事件,以及宿主暂时无法应用的三个字段。
@@ -96,6 +97,8 @@
96
97
 
97
98
  **来源(source)**表示内容来自哪里,**套件(suite)**是从中发现的可安装单元。添加来源用于发现套件,启用套件决定其运行时能力是否生效。
98
99
 
100
+ 会话启动与资源面板读取包含已安装套件的来源。托管来源跨重启复用发现索引。本地与收编来源在读取时按需复查已安装套件的目录。打开市场时,才按需发现其他已配置来源。编辑何时可见,见[发现与刷新](docs/user/sources.zh.md#发现与刷新)。
101
+
99
102
  你自己创作的内容都放在 `~/.agents/` 下:技能、命令和角色是 Markdown 文件,hooks 放在 `hooks.json`,工作区里新增的 MCP 与 LSP 服务分别保存在 `mcp.json` 与 `lsp.json`。[指令指南](https://sivan757.github.io/dsh-agent-plugins-market/docs/zh/instructions/)说明宿主注入的 AGENTS.md 链条与编辑它的页面,[输出风格指南](https://sivan757.github.io/dsh-agent-plugins-market/docs/zh/output-styles/)说明塑造每次回答的那段文本。项目原生资源继续保留在项目中。路径与优先级见[存储与发现](https://sivan757.github.io/dsh-agent-plugins-market/docs/zh/resources/#存储与发现)。
100
103
 
101
104
  ## 兼容性
package/client/client.js CHANGED
@@ -33,7 +33,7 @@ let react_dom_client = require("react-dom/client");
33
33
  let react_dom = require("react-dom");
34
34
  let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
35
35
  let react_jsx_runtime = require("react/jsx-runtime");
36
- //#region node_modules/.pnpm/@deepseek-ai+dsh-util-workspace-path@0.2.2-rc.1_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js
36
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-util-workspace-path@0.2.2-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js
37
37
  /**
38
38
  * The `dsh-resource://file/…` address grammar: how a file is named across the
39
39
  * Sidebar and the resource model, built and parsed without touching a