dsh-agent-plugins-market 0.5.1 → 0.5.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.
package/README.md CHANGED
@@ -66,7 +66,7 @@ Build artifacts (`lib/`, `client/`) are not committed; npm publishes them via `p
66
66
  - **MCP servers** — every valid `mcp.json` server of an enabled plugin mounts a live `dsh-mcp-client` child; tools appear as `mcp__<plugin>__<server>__<tool>`.
67
67
  - **Hooks** — a plugin's `hooks/hooks.json` mounts the `dsh-hooks-claude-code` bridge on the harness interception points (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SubagentStart, SubagentStop).
68
68
  - **Commands / subagents** — `commands/*.md` register as dsh slash commands; `agents/*.md` register as `agent-<name>` skills.
69
- - **Context** — the enabled-plugin catalog (user + project sections) is injected at session start; the `agent_plugins` tool queries it.
69
+ - **Model context** — skills flow through the host-native skill catalog and MCP tools register directly through `dsh-mcp-client`; suite inventory and source metadata remain available in the Web market page without adding a redundant model-facing inventory tool.
70
70
  - **Runtime discovery** — installed plugins are discovered from configured source ids under `~/.dsh/agent-plugins/.sources/<sourceId>/` (user dimension) and `<project>/.dsh/agent-plugins/.sources/<sourceId>/` (project dimension). Stale unmanaged user checkouts are ignored, while project checkouts remain state-authorized. Local sources read the working tree directly, including uncommitted changes.
71
71
  - **Native project layouts (zero-copy migration)** — a repository's own `.claude/` and `.agents/` directories (skills, agents) are discovered in place as read-only `project-native` suites: no install, no copying, no state file. Repositories migrating from Claude Code or agent-plugins.org conventions work as-is; a project skill shadows an installed suite skill of the same name (project wins).
72
72
 
package/README.zh.md CHANGED
@@ -66,7 +66,7 @@ dsh plugin --profile <名字> add github:Sivan757/dsh-agent-plugins-market
66
66
  - **MCP 服务器**:启用套件的 `mcp.json` 每个合法 server 动态挂载 `dsh-mcp-client` 子插件,工具名 `mcp__<套件>__<server>__<工具>`;
67
67
  - **Hooks**:套件 `hooks/hooks.json` 挂载 `dsh-hooks-claude-code` 桥,映射到宿主拦截点(SessionStart、UserPromptSubmit、PreToolUse、PostToolUse、Stop、SubagentStart、SubagentStop);
68
68
  - **命令 / 子代理**:`commands/*.md` 注册为 dsh 斜杠命令;`agents/*.md` 注册为 `agent-<name>` 技能;
69
- - **上下文**:会话启动注入启用套件清单(用户级 + 项目级),`agent_plugins` 工具可查询。
69
+ - **模型上下文**:技能通过宿主原生 skill catalog 注入,MCP 工具通过 `dsh-mcp-client` 直接注册;套件清单与来源信息通过 Web 市场页查询,不注册冗余的模型侧 inventory 工具。
70
70
  - **运行时发现**——已安装套件只从已配置的源 ID 对应目录发现:`~/.dsh/agent-plugins/.sources/<源id>/`(用户维度)与 `<项目>/.dsh/agent-plugins/.sources/<源id>/`(项目维度)。用户维度的过期未登记 checkout 会被忽略,项目维度仍按 state 中的安装记录授权;本地源直接读取工作树(含未提交改动)。
71
71
  - **项目原生布局(零拷贝迁移)**——项目自己的 `.claude/`、`.agents/` 目录(skills、agents)就地发现为只读「项目原生」套件:无需安装、无需拷贝、无状态文件。从 Claude Code 或 agent-plugins.org 约定迁移过来的仓库开箱即用;同名技能发生冲突时项目侧优先(覆盖已安装套件中的同名技能)。
72
72
 
package/client/client.js CHANGED
@@ -108,10 +108,10 @@ const zh = {
108
108
  uninstallConfirmTitle: "卸载 Agent Plugins",
109
109
  uninstallConfirmDesc: "将从已安装列表移除该 Agent Plugins,其技能与 MCP 工具随即停止注入。仓库源克隆保留。",
110
110
  installConfirmTitle: "确认安装",
111
- installConfirmDesc: "启用后以下能力将注入当前会话。请确认来源可信,详情可查看插件卡片。",
112
- installAndEnable: "确认安装",
111
+ installConfirmDesc: "安装后以下能力将注入当前会话。请确认来源可信,详情可查看插件卡片。",
112
+ installConfirmAction: "确认安装",
113
113
  installConfirmNoSurfaces: "该套件未声明任何运行时能力。",
114
- installConfirmExecutable: "风险提示:启用后将启动该套件的 MCP 子进程并挂载 hooks(第三方代码)。请确认来源可信后再启用。",
114
+ installConfirmExecutable: "风险提示:安装后将启动该套件的 MCP 子进程并挂载 hooks(第三方代码)。请确认来源可信后再安装。",
115
115
  installConfirmSource: "来源",
116
116
  removeSourceConfirmTitle: "移除仓库源「{sourceId}」",
117
117
  removeSourceConfirmDesc: "将删除该源的本地克隆与全部安装记录。",
@@ -257,10 +257,10 @@ const en = {
257
257
  uninstallConfirmTitle: "Uninstall suite",
258
258
  uninstallConfirmDesc: "Removes the suite from the installed list; its skills and MCP tools stop injecting. The source clone stays.",
259
259
  installConfirmTitle: "Confirm install",
260
- installConfirmDesc: "Once enabled, the surfaces below inject into your sessions. Confirm you trust the source; see the suite card for details.",
261
- installAndEnable: "Install",
260
+ installConfirmDesc: "After install, the surfaces below inject into your sessions. Confirm you trust the source; see the suite card for details.",
261
+ installConfirmAction: "Install",
262
262
  installConfirmNoSurfaces: "This suite declares no runtime surfaces.",
263
- installConfirmExecutable: "Risk notice: enabling starts this suite's MCP child processes and mounts hooks (third-party code). Enable only if you trust the source.",
263
+ installConfirmExecutable: "Risk notice: installing starts this suite's MCP child processes and mounts hooks (third-party code). Install only if you trust the source.",
264
264
  installConfirmSource: "Source",
265
265
  removeSourceConfirmTitle: "Remove source “{sourceId}”",
266
266
  removeSourceConfirmDesc: "Deletes the local clone and all install records of this source.",
@@ -724,7 +724,7 @@ function InstallConfirmModal(props) {
724
724
  onClick: () => {
725
725
  props.onConfirm();
726
726
  }
727
- }, t("installAndEnable"))),
727
+ }, t("installConfirmAction"))),
728
728
  children: (0, react.createElement)("div", { className: market_module_default.installConfirmBody }, (0, react.createElement)("div", { className: market_module_default.installConfirmSuite }, `${state.suite.sourceId} / ${state.suite.name}`), state.suite.version === void 0 ? null : (0, react.createElement)("div", { className: market_module_default.installConfirmMeta }, `${t("version")}: v${state.suite.version}`), tags.length === 0 ? (0, react.createElement)("div", { className: market_module_default.installConfirmMeta }, t("installConfirmNoSurfaces")) : (0, react.createElement)("div", { className: market_module_default.installConfirmTags }, tags.map((tag) => (0, react.createElement)("span", {
729
729
  key: tag.key,
730
730
  className: market_module_default.tag