dsh-agent-plugins-market 0.11.1 → 0.12.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 (37) hide show
  1. package/README.md +1 -1
  2. package/README.zh.md +1 -1
  3. package/client/client.js +3 -3
  4. package/client/client.js.map +1 -1
  5. package/lib/packages/market-bundle/src/application/catalog.js +1 -1
  6. package/lib/packages/market-bundle/src/application/extension-inventory.js +5 -5
  7. package/lib/packages/market-bundle/src/index.js +32 -6
  8. package/lib/packages/market-catalog/src/application/deadline.js +28 -0
  9. package/lib/packages/market-catalog/src/index.js +1 -1
  10. package/lib/packages/market-catalog/src/scanning/project-hooks.js +11 -1
  11. package/lib/packages/market-contracts/src/contracts/extension-presets.js +5 -3
  12. package/lib/packages/market-mcp/src/application/mcp-service.js +17 -8
  13. package/lib/packages/market-mcp/src/runtime/mcp/mcp-mounts.js +178 -41
  14. package/lib/packages/market-runtime/src/application/command-arguments.js +115 -0
  15. package/lib/packages/market-runtime/src/application/command-resources.js +58 -5
  16. package/lib/packages/market-runtime/src/runtime/core/reconcile-scheduler.js +12 -1
  17. package/lib/packages/market-runtime/src/runtime/host/host-locale.js +2 -0
  18. package/lib/packages/market-runtime/src/runtime/host/resource-filter-service.js +58 -2
  19. package/lib/packages/market-runtime/src/runtime/host/scoped-contributors.js +8 -1
  20. package/lib/packages/market-runtime/src/runtime/surfaces/commands-mounts.js +27 -6
  21. package/lib/packages/market-runtime/src/runtime/surfaces/extension-hooks.js +501 -33
  22. package/lib/types/packages/market-bundle/src/index.d.ts +10 -0
  23. package/lib/types/packages/market-catalog/src/application/catalog-context.d.ts +6 -0
  24. package/lib/types/packages/market-catalog/src/application/deadline.d.ts +22 -0
  25. package/lib/types/packages/market-catalog/src/index.d.ts +1 -1
  26. package/lib/types/packages/market-catalog/src/scanning/project-hooks.d.ts +0 -1
  27. package/lib/types/packages/market-contracts/src/contracts/extension-presets.d.ts +11 -10
  28. package/lib/types/packages/market-mcp/src/application/mcp-service.d.ts +10 -1
  29. package/lib/types/packages/market-mcp/src/runtime/mcp/mcp-mounts.d.ts +6 -0
  30. package/lib/types/packages/market-runtime/src/application/command-arguments.d.ts +55 -0
  31. package/lib/types/packages/market-runtime/src/application/command-resources.d.ts +19 -0
  32. package/lib/types/packages/market-runtime/src/runtime/core/reconcile-scheduler.d.ts +12 -2
  33. package/lib/types/packages/market-runtime/src/runtime/host/host-locale.d.ts +1 -1
  34. package/lib/types/packages/market-runtime/src/runtime/host/resource-filter-service.d.ts +29 -1
  35. package/lib/types/packages/market-runtime/src/runtime/surfaces/commands-mounts.d.ts +10 -7
  36. package/lib/types/packages/market-runtime/src/runtime/surfaces/extension-hooks.d.ts +110 -4
  37. package/package.json +31 -31
package/README.md CHANGED
@@ -75,7 +75,7 @@ Terminal alternative: `dsh plugin --profile <name> add dsh-agent-plugins-market`
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
76
  - **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
77
  - **Per-workspace control.** Each workspace switches the six mounted surfaces off or on, keeps its own resource filters, and saves a resource-window setup as a favorite that works across projects.
78
- - **Hooks you can read and try.** A hook row opens a declaration card with its event, matcher and timeout, plus a dry run in your home directory.
78
+ - **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.
79
79
  - **Bilingual by default.** The interface and the injected prompts follow the host language. Descriptions and documents show the original, a translation or both, and stay cached until you clear them.
80
80
 
81
81
  ## Everyday use
package/README.zh.md CHANGED
@@ -75,7 +75,7 @@
75
75
  - **逐个 MCP 服务精调。** 不改动来源就能覆盖某条声明,单独关闭某个工具,并设置工具调用与启动超时。
76
76
  - **项目资源与自己创作的内容。** 打开**扫描项目 Agent 布局**后,无需安装即可读取项目自身目录中的技能、命令、角色、MCP 服务与 hooks。自己的内容放在 `~/.agents/` 下,以 Markdown 编写;停用资源不必删除文件。
77
77
  - **按工作区生效的控制。** 每个工作区可以单独开关六类挂载能力,保留自己的资源筛选条件,并把资源窗口配置存为可跨项目使用的收藏。
78
- - **可读可试的 Hooks。** 每个 hook 行都能打开声明卡,查看事件、匹配条件与超时,并在用户根目录试运行一次。
78
+ - **Hooks 会真正生效,而不只是旁观。** 十个事件会应用 hook 返回的结果:工具拦截、确认与放行,补充上下文,纠正反馈,强制续跑,以及 `continue: false` 带来的真正中止。每个 hook 行都能打开声明卡,查看事件、匹配条件与超时,并在用户根目录试运行一次。[Hook 事件覆盖](docs/reference/hooks-event-coverage.md)列出了全部事件,以及宿主暂时无法应用的三个字段。
79
79
  - **默认双语。** 界面与注入的提示词跟随宿主语言。描述与文档可显示原文、译文或双语,结果缓存在本地直到你清空缓存。
80
80
 
81
81
  ## 日常使用
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.1-rc.2_@deepseek-ai+cordis@4.0.4/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js
36
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-util-workspace-path@0.2.1-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
@@ -2029,7 +2029,7 @@ const zh = {
2029
2029
  hooksFilterSupported: "可运行",
2030
2030
  hooksFilterLimited: "受限",
2031
2031
  hooksPanelEmpty: "暂无已配置的钩子",
2032
- hooksEventPartial: "宿主部分支持此事件,仅权限与空闲通知可运行。",
2032
+ hooksEventPartial: "此事件会运行,但有一项决定宿主无法执行:压缩前的否决。",
2033
2033
  hooksEventUnsupported: "宿主暂不执行此事件,仅登记。",
2034
2034
  mcpConnected: "已连接",
2035
2035
  mcpDegraded: "降级",
@@ -2495,7 +2495,7 @@ const en = {
2495
2495
  hooksFilterSupported: "Runnable",
2496
2496
  hooksFilterLimited: "Limited",
2497
2497
  hooksPanelEmpty: "No hooks configured yet",
2498
- hooksEventPartial: "Partially supported by the host; only permission and idle notifications can run.",
2498
+ hooksEventPartial: "This event runs, but one decision has no host seam: a pre-compaction veto.",
2499
2499
  hooksEventUnsupported: "Host does not run this event yet; registered only.",
2500
2500
  mcpConnected: "Connected",
2501
2501
  mcpDegraded: "Degraded",