dsh-agent-plugins-market 0.7.0 → 0.7.1

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 (78) hide show
  1. package/README.md +2 -2
  2. package/README.zh.md +2 -2
  3. package/client/client.js +28048 -1033
  4. package/client/client.js.map +1 -1
  5. package/lib/application/catalog-context.js +8 -1
  6. package/lib/application/catalog.js +13 -0
  7. package/lib/application/details.js +13 -2
  8. package/lib/application/mcp-service.js +17 -0
  9. package/lib/application/panel-resources.js +16 -4
  10. package/lib/application/project-agent-roles.js +7 -1
  11. package/lib/catalog/archive.js +1 -1
  12. package/lib/catalog/paths.js +8 -0
  13. package/lib/catalog/plugin-variables.js +38 -0
  14. package/lib/catalog/project-hooks.js +14 -1
  15. package/lib/catalog/skills-parse.js +47 -0
  16. package/lib/catalog/source-catalog.js +8 -3
  17. package/lib/catalog/suite-components.js +2 -2
  18. package/lib/contracts/market.js +1 -0
  19. package/lib/contracts/settings.js +63 -0
  20. package/lib/index.js +26 -11
  21. package/lib/model/layouts.js +10 -1
  22. package/lib/routes.js +12 -0
  23. package/lib/runtime/agent-role-router.js +28 -6
  24. package/lib/runtime/commands-mounts.js +50 -9
  25. package/lib/runtime/deadline.js +32 -6
  26. package/lib/runtime/dynamic-context.js +140 -0
  27. package/lib/runtime/feedback-tool.js +7 -3
  28. package/lib/runtime/host-locale.js +39 -3
  29. package/lib/runtime/lsp-mounts.js +23 -2
  30. package/lib/runtime/mcp-backend.js +14 -15
  31. package/lib/runtime/mcp-client/config.js +8 -0
  32. package/lib/runtime/mcp-client/connection.js +6 -6
  33. package/lib/runtime/mcp-client/host-seams.js +8 -88
  34. package/lib/runtime/mcp-config.js +7 -4
  35. package/lib/runtime/project-runtime.js +23 -9
  36. package/lib/runtime/reconcile-scheduler.js +6 -8
  37. package/lib/runtime/reconciler.js +2 -1
  38. package/lib/runtime/regions.js +0 -19
  39. package/lib/runtime/settings-namespace.js +21 -13
  40. package/lib/runtime/skills-provider.js +33 -11
  41. package/lib/runtime/source-auto-update.js +10 -14
  42. package/lib/runtime/timer-seat.js +80 -0
  43. package/lib/runtime/tool-registry-observer.js +20 -20
  44. package/lib/runtime/user-commands.js +5 -1
  45. package/lib/runtime/user-panels.js +110 -41
  46. package/lib/runtime/user-store.js +114 -58
  47. package/lib/types/application/catalog-context.d.ts +6 -0
  48. package/lib/types/application/catalog.d.ts +9 -0
  49. package/lib/types/application/mcp-service.d.ts +6 -0
  50. package/lib/types/application/ports.d.ts +1 -1
  51. package/lib/types/application/queries.d.ts +2 -0
  52. package/lib/types/catalog/paths.d.ts +6 -0
  53. package/lib/types/catalog/plugin-variables.d.ts +16 -0
  54. package/lib/types/catalog/skills-parse.d.ts +13 -0
  55. package/lib/types/catalog/source-catalog.d.ts +7 -2
  56. package/lib/types/contracts/market.d.ts +10 -0
  57. package/lib/types/contracts/settings.d.ts +59 -0
  58. package/lib/types/model/layouts.d.ts +10 -0
  59. package/lib/types/runtime/agent-role-router.d.ts +6 -2
  60. package/lib/types/runtime/commands-mounts.d.ts +15 -7
  61. package/lib/types/runtime/deadline.d.ts +10 -11
  62. package/lib/types/runtime/dynamic-context.d.ts +81 -0
  63. package/lib/types/runtime/host-locale.d.ts +19 -1
  64. package/lib/types/runtime/lsp-mounts.d.ts +7 -0
  65. package/lib/types/runtime/mcp-backend.d.ts +8 -15
  66. package/lib/types/runtime/mcp-client/config.d.ts +8 -0
  67. package/lib/types/runtime/mcp-client/host-seams.d.ts +20 -64
  68. package/lib/types/runtime/project-runtime.d.ts +10 -3
  69. package/lib/types/runtime/reconcile-scheduler.d.ts +1 -1
  70. package/lib/types/runtime/regions.d.ts +1 -4
  71. package/lib/types/runtime/settings-namespace.d.ts +10 -10
  72. package/lib/types/runtime/skills-provider.d.ts +11 -2
  73. package/lib/types/runtime/source-auto-update.d.ts +3 -4
  74. package/lib/types/runtime/timer-seat.d.ts +51 -0
  75. package/lib/types/runtime/tool-registry-observer.d.ts +12 -6
  76. package/lib/types/runtime/user-panels.d.ts +65 -12
  77. package/lib/types/runtime/user-store.d.ts +65 -16
  78. package/package.json +21 -4
package/README.md CHANGED
@@ -155,7 +155,7 @@ The table says per layout whether this plugin reads a given surface at all. **Ye
155
155
  | Project-native directories | Yes | Yes | Yes | Yes | Partial | No |
156
156
 
157
157
  - **Skills** are read from the paths a manifest declares and from the conventional `skills/` directory, including flat `SKILL.md` files.
158
- - **Agents and commands** are read as Markdown (`agents/*.md`, `commands/*.md`). Cursor commands must be `.md`; its `.mdc`, `.markdown` and `.txt` variants are not read. Codex and Kimi native agent/command formats (TOML, YAML) have no adapter yet.
158
+ - **Agents and commands** are read as Markdown (`agents/*.md`, `commands/*.md`). Cursor plugin commands accept `.md`, `.mdc`, `.markdown` and `.txt`. Codex and Kimi native agent/command formats (TOML, YAML) have no adapter yet.
159
159
  - **MCP** covers declared files, inline tables and arrays. Cursor's schema-less `mcp.json` and agent-plugins' strict `mcp.json` both work; Kimi Code is inline-only. Codex app connectors stay outside this adapter.
160
160
  - **Hooks** map the command-style events DSH has an equivalent for; events without one (for example `afterFileEdit`) are reported instead of simulated. Cursor's native events are not read.
161
161
  - **LSP** accepts declared files, arrays and inline tables plus the conventional `.lsp.json` / `lsp.json` locations. Declarations inside a project are reported but not mounted: the host LSP registry is global. Some layouts only expose LSP directories for preview.
@@ -166,7 +166,7 @@ Reading a layout does not guarantee every behavior of its original platform. Inv
166
166
 
167
167
  ### Project layout switch
168
168
 
169
- The plugin settings card has **Scan project Agent layouts** (`dsh-agent-plugins-market.scanProjectLayouts`, default off). It controls one thing: whether the project you are working in contributes skills, commands, agent roles, MCP servers and hooks from its own directories (`.claude`, `.agents`, `.codex`, `.cursor`, `.kimi`, `.zcode`, `.qoder`, `.github`). Turning it on adds those candidates immediately and turning it off removes them; configured sources and installed suites are unaffected.
169
+ The plugin settings card has **Scan project Agent layouts** (`dsh-agent-plugins-market.scanProjectLayouts`, default off). It controls one thing: whether the project you are working in contributes skills, commands, agent roles, MCP servers and hooks from its own directories (`.claude`, `.agents`, `.codex`, `.cursor`, `.kimi`, `.zcode`, `.qoder`, `.github`). Turning it on adds those candidates; turning it off removes them on the next discovery pass. The card applies a switch when you save it, and each setting offers Use default while it carries your own value. Configured sources and installed suites are unaffected.
170
170
 
171
171
  [Project layouts](docs/user/usage.md#project-layouts) lists the directories and files read per layout and how they are mounted.
172
172
 
package/README.zh.md CHANGED
@@ -155,7 +155,7 @@ dsh plugin --profile <name> add dsh-agent-plugins-market
155
155
  | 项目原生目录 | 支持 | 支持 | 支持 | 支持 | 部分 | 不支持 |
156
156
 
157
157
  - **技能**读取清单声明的路径与约定的 `skills/` 目录,也支持平铺的 `SKILL.md` 文件。
158
- - **代理与命令**按 Markdown 读取(`agents/*.md`、`commands/*.md`)。Cursor 命令只读 `.md`,不读 `.mdc`、`.markdown`、`.txt`;Codex 与 Kimi 的原生代理/命令格式(TOML、YAML)尚未适配。
158
+ - **代理与命令**按 Markdown 读取(`agents/*.md`、`commands/*.md`)。Cursor 插件命令接受 `.md`、`.mdc`、`.markdown`、`.txt`;Codex 与 Kimi 的原生代理/命令格式(TOML、YAML)尚未适配。
159
159
  - **MCP** 支持声明的文件、内联表与数组。Cursor 的无 schema `mcp.json` 与 agent-plugins 的严格 `mcp.json` 都能读取;Kimi Code 只读内联声明。Codex 的 app 连接器不在适配范围内。
160
160
  - **Hooks** 只映射 DSH 有对应点的命令类事件;没有对应点的事件(例如 `afterFileEdit`)给出诊断而不伪造执行。Cursor 的原生事件不读取。
161
161
  - **LSP** 支持声明的文件、数组、内联表,以及约定的 `.lsp.json` / `lsp.json` 位置。项目内的 LSP 声明只给诊断、不挂载:宿主 LSP 注册表是全局的。部分布局只提供目录预览。
@@ -166,7 +166,7 @@ dsh plugin --profile <name> add dsh-agent-plugins-market
166
166
 
167
167
  ### 项目布局开关
168
168
 
169
- 插件设置卡提供**扫描项目 Agent 布局**(`dsh-agent-plugins-market.scanProjectLayouts`,默认关闭)。它只控制一件事:当前项目是否把自己目录(`.claude`、`.agents`、`.codex`、`.cursor`、`.kimi`、`.zcode`、`.qoder`、`.github`)里的技能、命令、代理角色、MCP 服务与 hooks 贡献到会话里。开启后立即纳入这些候选,关闭后立即移除;配置源与已安装套件不受影响。
169
+ 插件设置卡提供**扫描项目 Agent 布局**(`dsh-agent-plugins-market.scanProjectLayouts`,默认关闭)。它只控制一件事:当前项目是否把自己目录(`.claude`、`.agents`、`.codex`、`.cursor`、`.kimi`、`.zcode`、`.qoder`、`.github`)里的技能、命令、代理角色、MCP 服务与 hooks 贡献到会话里。开启后纳入这些候选,关闭后在下一轮发现时移除。卡片在你保存时生效,设置带着你自己填的值时也提供「恢复默认」。配置源与已安装套件不受影响。
170
170
 
171
171
  每种布局读取哪些目录与文件、如何挂载,见[项目布局](docs/user/usage.zh.md#项目布局)。
172
172