dsh-agent-plugins-market 0.4.5 → 0.4.6
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 +4 -4
- package/README.zh.md +4 -4
- package/client/client.js +697 -63
- package/client/client.js.map +1 -1
- package/lib/discovery.js +30 -28
- package/lib/index.js +4 -0
- package/lib/manager.js +11 -0
- package/lib/mcp-status.js +147 -0
- package/lib/routes.js +3 -0
- package/lib/types/discovery.d.ts +7 -4
- package/lib/types/manager.d.ts +6 -0
- package/lib/types/mcp-status.d.ts +51 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ dsh plugin --profile <name> add dsh-agent-plugins-market
|
|
|
30
30
|
pnpm add dsh-agent-plugins-market
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Restart dsh, open **Settings → Agent Plugins Market**, add a marketplace repo as a source (e.g. `https://github.com/anthropics/claude-plugins-official`), and install suites with one click. Skills appear in the `/` slash menu; MCP tools appear as `mcp__<suite>__<server>__<tool>`; slash commands and `/agent-*` subagents register automatically.
|
|
33
|
+
Restart dsh, open **Settings → Agent Plugins Market**, add a marketplace repo as a source (e.g. `https://github.com/anthropics/claude-plugins-official`), and install suites with one click. On legacy Web shells without the `settings.section` slot, the same UI falls back to a top-level Agent Plugins Market page entry. Skills appear in the `/` slash menu; MCP tools appear as `mcp__<suite>__<server>__<tool>`; slash commands and `/agent-*` subagents register automatically.
|
|
34
34
|
|
|
35
35
|
<details>
|
|
36
36
|
<summary><strong>More install options</strong></summary>
|
|
@@ -48,7 +48,7 @@ dsh plugin --profile <name> add github:Sivan757/dsh-agent-plugins-market
|
|
|
48
48
|
```jsonc
|
|
49
49
|
// ~/.dsh/profiles/<profile>/package.json
|
|
50
50
|
{
|
|
51
|
-
"dependencies": { "dsh-agent-plugins-market": "^0.4.
|
|
51
|
+
"dependencies": { "dsh-agent-plugins-market": "^0.4.6" },
|
|
52
52
|
"dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-agent-plugins-market"] } }
|
|
53
53
|
}
|
|
54
54
|
```
|
|
@@ -60,14 +60,14 @@ The built entry point (`lib/`, `client/`) is committed to the repository, so Git
|
|
|
60
60
|
## Features
|
|
61
61
|
|
|
62
62
|
- **Plugin / suite management** — configure git repository sources (markets), browse every discoverable plugin, install / uninstall / enable / disable / refresh per source or per plugin. Source ids are derived automatically from the repository manifest JSON — no manual input.
|
|
63
|
-
- **Market page in the Web GUI** — source pills + search/actions, status tabs, a two-column card grid, and a plugin detail modal with previews for skills / MCP / hooks / commands / LSP.
|
|
63
|
+
- **Market page in the Web GUI** — source pills + search/actions, status tabs, a two-column card grid, and a plugin detail modal with previews for skills / MCP / hooks / commands / LSP. New shells render it as a localized Settings page; legacy shells without `settings.section` receive a guarded top-level page-mode fallback instead of a duplicate surface.
|
|
64
64
|
- **Runtime injection**
|
|
65
65
|
- **Skills** — a `ctx.skills` SkillProvider (project rank 250 / user rank 450); `${CLAUDE_PLUGIN_ROOT}` is substituted so Claude Code-authored skills work verbatim, and appear in the `/` slash menu.
|
|
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
69
|
- **Context** — the enabled-plugin catalog (user + project sections) is injected at session start; the `agent_plugins` tool queries it.
|
|
70
|
-
- **Runtime discovery** — installed plugins are discovered from `~/.dsh/agent-plugins/.sources/<sourceId>/` (user dimension) and `<project>/.dsh/agent-plugins/.sources/<sourceId>/` (project dimension). Local sources read the working tree directly, including uncommitted changes.
|
|
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
|
|
|
72
72
|
## Supported plugin layouts
|
|
73
73
|
|
package/README.zh.md
CHANGED
|
@@ -30,7 +30,7 @@ dsh plugin --profile <名字> add dsh-agent-plugins-market
|
|
|
30
30
|
pnpm add dsh-agent-plugins-market
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
重启 dsh,打开 **设置 → Agent Plugins 市场**,把市场仓库添加为源(例如 `https://github.com/anthropics/claude-plugins-official
|
|
33
|
+
重启 dsh,打开 **设置 → Agent Plugins 市场**,把市场仓库添加为源(例如 `https://github.com/anthropics/claude-plugins-official`),一键安装套件。对于没有 `settings.section` slot 的旧版 Web 外壳,同一套界面会自动回退为顶层 Agent Plugins 市场页。技能出现在「/」斜杠菜单;MCP 工具以 `mcp__<套件>__<server>__<工具>` 出现;斜杠命令与 `/agent-*` 子代理自动注册。
|
|
34
34
|
|
|
35
35
|
<details>
|
|
36
36
|
<summary><strong>更多安装方式</strong></summary>
|
|
@@ -48,7 +48,7 @@ dsh plugin --profile <名字> add github:Sivan757/dsh-agent-plugins-market
|
|
|
48
48
|
```jsonc
|
|
49
49
|
// ~/.dsh/profiles/<profile>/package.json
|
|
50
50
|
{
|
|
51
|
-
"dependencies": { "dsh-agent-plugins-market": "^0.4.
|
|
51
|
+
"dependencies": { "dsh-agent-plugins-market": "^0.4.6" },
|
|
52
52
|
"dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-agent-plugins-market"] } }
|
|
53
53
|
}
|
|
54
54
|
```
|
|
@@ -60,14 +60,14 @@ dsh plugin --profile <名字> add github:Sivan757/dsh-agent-plugins-market
|
|
|
60
60
|
## 功能特性
|
|
61
61
|
|
|
62
62
|
- **套件管理**——配置 git 仓库源(市场),浏览每个源的套件,支持安装、卸载、启用、禁用、刷新;源 ID 自动从仓库清单 JSON 解析,无需手填。
|
|
63
|
-
- **Web
|
|
63
|
+
- **Web 市场页**——顶部源胶囊 + 搜索/操作、状态标签、两列卡片网格、套件详情弹窗(技能/MCP/hooks/命令/LSP 全部可预览)。新版外壳使用带中文/英文切换的设置页;没有 `settings.section` slot 的旧版外壳才启用受保护的顶层页面回退,不会重复渲染两份市场页。
|
|
64
64
|
- **运行时注入**
|
|
65
65
|
- **技能**:注册 `ctx.skills` SkillProvider(项目 rank 250 / 用户 rank 450),`${CLAUDE_PLUGIN_ROOT}` 自动替换,Claude Code 生态技能原样可用,出现在「/」斜杠菜单;
|
|
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
69
|
- **上下文**:会话启动注入启用套件清单(用户级 + 项目级),`agent_plugins` 工具可查询。
|
|
70
|
-
-
|
|
70
|
+
- **运行时发现**——已安装套件只从已配置的源 ID 对应目录发现:`~/.dsh/agent-plugins/.sources/<源id>/`(用户维度)与 `<项目>/.dsh/agent-plugins/.sources/<源id>/`(项目维度)。用户维度的过期未登记 checkout 会被忽略,项目维度仍按 state 中的安装记录授权;本地源直接读取工作树(含未提交改动)。
|
|
71
71
|
|
|
72
72
|
## 兼容的套件布局
|
|
73
73
|
|