dsh-plugin-tool-management 0.1.0 → 0.1.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
@@ -16,11 +16,11 @@
16
16
 
17
17
  <!-- 图片占位 1:MCP 管理页截图 → docs/images/mcp-page.png -->
18
18
 
19
- ![MCP 管理](docs/images/mcp-page.png)
19
+ ![MCP 管理](https://raw.githubusercontent.com/ouli-1242/dsh-plugin-tool-management/main/docs/images/mcp-page.png)
20
20
 
21
21
  <!-- 图片占位 2:Skills 管理页截图 → docs/images/skills-page.png -->
22
22
 
23
- ![Skills 管理](docs/images/skills-page.png)
23
+ ![Skills 管理](https://raw.githubusercontent.com/ouli-1242/dsh-plugin-tool-management/main/docs/images/skills-page.png)
24
24
 
25
25
  ## 核心亮点
26
26
 
@@ -104,8 +104,8 @@ dsh plugin --profile web add dsh-plugin-tool-management@latest
104
104
  |---|---|
105
105
  | MCP 服务器定义 | `profiles/<profile>/cordis.patch.yml`(项目级)或 `~/.dsh/cordis.patch.yml`(全局),改写前自动 `.bak` |
106
106
  | 服务器备注 / 页面设置 / 工具停用列表 / 导出 | DSH 主目录下的旁路 JSON(`skill-mcp-manager-*.json`) |
107
- | 技能启停策略 / 自定义目录 | `~/.dsh/skill-mcp-manager/state.json` |
108
- | 技能回收站 / 导入暂存 | `~/.dsh/skill-mcp-manager/trash`、`uploads` |
107
+ | 技能启停策略 / 自定义目录 | `~/.dsh/tool-management/state.json` |
108
+ | 技能回收站 / 导入暂存 | `~/.dsh/tool-management/trash`、`uploads` |
109
109
  | 运行日志 | `~/.dsh/dsh-plugin-tool-management.log`(滚动) |
110
110
 
111
111
  ## 常见问题
package/README_EN.md CHANGED
@@ -16,11 +16,11 @@ No hand-editing of `cordis.patch.yml`, and skill source files are never touched.
16
16
 
17
17
  <!-- Image slot 1: MCP management page screenshot → docs/images/mcp-page.png -->
18
18
 
19
- ![MCP management](docs/images/mcp-page.png)
19
+ ![MCP management](https://raw.githubusercontent.com/ouli-1242/dsh-plugin-tool-management/main/docs/images/mcp-page.png)
20
20
 
21
21
  <!-- Image slot 2: Skills management page screenshot → docs/images/skills-page.png -->
22
22
 
23
- ![Skills management](docs/images/skills-page.png)
23
+ ![Skills management](https://raw.githubusercontent.com/ouli-1242/dsh-plugin-tool-management/main/docs/images/skills-page.png)
24
24
 
25
25
  ## Highlights
26
26
 
@@ -104,8 +104,8 @@ Why a token: the cross-site protection (POST-only + custom header + same-origin
104
104
  |---|---|
105
105
  | MCP server definitions | `profiles/<profile>/cordis.patch.yml` (project) or `~/.dsh/cordis.patch.yml` (global), auto-`.bak` before every rewrite |
106
106
  | Server notes / page settings / disabled tools / export | Sidecar JSON files under the DSH home (`dsh-plugin-tool-management-*.json`) |
107
- | Skill toggle policy / custom directories | `~/.dsh/dsh-plugin-tool-management/state.json` |
108
- | Skill recycle bin / import staging | `~/.dsh/dsh-plugin-tool-management/trash`, `uploads` |
107
+ | Skill toggle policy / custom directories | `~/.dsh/tool-management/state.json` |
108
+ | Skill recycle bin / import staging | `~/.dsh/tool-management/trash`, `uploads` |
109
109
  | Runtime log | `~/.dsh/dsh-plugin-tool-management.log` (rolling) |
110
110
 
111
111
  ## FAQ
package/lib/index.js CHANGED
@@ -151,7 +151,9 @@ export default {
151
151
  async function migrateRenamedData(home) {
152
152
  const sep = home.indexOf('\\') >= 0 ? '\\' : '/';
153
153
  const pairs = [
154
- ['skill-mcp-manager', 'dsh-plugin-tool-management'],
154
+ // 状态目录经历过两次改名:skill-mcp-manager → dsh-plugin-tool-management → tool-management
155
+ ['skill-mcp-manager', 'tool-management'],
156
+ ['dsh-plugin-tool-management', 'tool-management'],
155
157
  ['skill-mcp-manager-notes.json', 'dsh-plugin-tool-management-notes.json'],
156
158
  ['skill-mcp-manager-settings.json', 'dsh-plugin-tool-management-settings.json'],
157
159
  ['skill-mcp-manager-disabled-tools.json', 'dsh-plugin-tool-management-disabled-tools.json'],
@@ -355,7 +355,7 @@ export async function projectRoots(projectCwds = [], diagnostics) {
355
355
  return roots;
356
356
  }
357
357
  export function managerHomePath() {
358
- return join(resolveDshHome(), "dsh-plugin-tool-management");
358
+ return join(resolveDshHome(), "tool-management");
359
359
  }
360
360
  export function managerStatePath() {
361
361
  return join(managerHomePath(), "state.json");
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "dsh-plugin-tool-management",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "DSH plugin: unified Skills and MCP manager — Settings UI + HTTP API + model-facing skill_mcp_manager_* / skill_manager_* tools. Install with one command: dsh plugin --profile web add dsh-plugin-tool-management@latest",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/ouli-1242/dsh-plugin-tool-management"
8
+ },
5
9
  "type": "module",
6
10
  "main": "lib/index.js",
7
11
  "exports": {