dsh-plugin-tool-management 0.22.2 → 0.22.4

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 (46) hide show
  1. package/CHANGELOG.md +1395 -1341
  2. package/README.md +177 -176
  3. package/README_EN.md +177 -176
  4. package/docs/UPDATE.md +49 -47
  5. package/lib/catalog-caps.js +22 -0
  6. package/lib/client.js +4797 -4544
  7. package/lib/compat/host-contracts.js +18 -3
  8. package/lib/compat/preset-reach.js +69 -12
  9. package/lib/confirm-gate.js +49 -18
  10. package/lib/context-inject-contract.js +2 -1
  11. package/lib/context-inject-frame.js +100 -48
  12. package/lib/context-inject-select.js +28 -0
  13. package/lib/index.js +258 -73
  14. package/lib/legacy-tool-names.js +46 -0
  15. package/lib/mcp/manager.js +13 -1
  16. package/lib/mcp/secret-guard.js +27 -0
  17. package/lib/mcp/state-section.js +25 -11
  18. package/lib/memories/archive.js +44 -0
  19. package/lib/memories/constants.js +9 -7
  20. package/lib/memories/index-io.js +4 -1
  21. package/lib/memories/snapshot.js +8 -8
  22. package/lib/op-registry.js +5 -1
  23. package/lib/ops/compat.js +13 -1
  24. package/lib/ops/scene-capture.js +72 -0
  25. package/lib/scenes/candidates.js +17 -2
  26. package/lib/scope/scope-overrides.js +9 -2
  27. package/lib/settings-sidecars.js +9 -2
  28. package/lib/skills/catalog.js +46 -14
  29. package/lib/skills/provider-registration.js +41 -4
  30. package/lib/skills/service.js +4 -4
  31. package/lib/subagents/catalog.js +24 -10
  32. package/lib/subagents/run-provider.js +41 -10
  33. package/lib/subagents/tools.js +63 -7
  34. package/lib/tool-table-switch.js +41 -4
  35. package/lib/tools/control.js +158 -0
  36. package/lib/tools/deps.js +88 -0
  37. package/lib/tools/mcp.js +35 -10
  38. package/lib/tools/memory.js +9 -5
  39. package/lib/tools/prompt.js +7 -8
  40. package/lib/tools/remove.js +84 -65
  41. package/lib/tools/scene.js +179 -76
  42. package/lib/tools/skills.js +13 -8
  43. package/lib/tools/subagent.js +19 -10
  44. package/lib/tools/table.js +92 -57
  45. package/lib/trash-id.js +3 -2
  46. package/package.json +152 -152
package/package.json CHANGED
@@ -1,152 +1,152 @@
1
- {
2
- "name": "dsh-plugin-tool-management",
3
- "version": "0.22.2",
4
- "description": "一个设置面板,统一管理 MCP、技能、记忆、子智能体、提示词和归档会话;可自定义搭配场景,一个场景即可切换整个环境;Agent也能帮你操作这个插件。",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/ouli-1242/dsh-plugin-tool-management"
8
- },
9
- "type": "module",
10
- "main": "lib/index.js",
11
- "exports": {
12
- ".": "./lib/index.js",
13
- "./client": "./lib/client.js",
14
- "./workspace": "./lib/sessions/workspace.js",
15
- "./locale/*.json": "./locale/*.json",
16
- "./package.json": "./package.json"
17
- },
18
- "files": [
19
- "lib",
20
- "locale",
21
- "cordis.patch.yml",
22
- "README.md",
23
- "README_EN.md",
24
- "CHANGELOG.md",
25
- "LICENSE",
26
- "screenshots.json",
27
- "docs/images",
28
- "docs/UPDATE.md"
29
- ],
30
- "engines": {
31
- "dsh": ">=0.2.2-rc.1 <0.2.3",
32
- "node": ">=24.9"
33
- },
34
- "publishConfig": {
35
- "registry": "https://registry.npmjs.org",
36
- "access": "public"
37
- },
38
- "scripts": {
39
- "build": "tsc -p tsconfig.json && node scripts/sync-client.mjs && node scripts/sync-profile.mjs",
40
- "prepublishOnly": "npm run build && npm run lint && npm run typecheck:client && node --test test/client-exports.test.mjs",
41
- "lint": "node --check lib/client.js && node --check lib/index.js",
42
- "typecheck:client": "node scripts/sync-client.mjs && tsc -p tsconfig.client.json",
43
- "check:i18n": "node scripts/check-i18n.mjs lib/client.js",
44
- "check:host": "node scripts/host-deps.mjs && node scripts/doctor.mjs",
45
- "check:strict": "node scripts/check-strict.mjs",
46
- "host-deps": "node scripts/host-deps.mjs --fix",
47
- "doctor": "node scripts/doctor.mjs",
48
- "test": "npm run build && npm run check:i18n && npm run typecheck:client && node --test test/contracts.test.mjs test/client-exports.test.mjs",
49
- "sync:profile": "node scripts/sync-profile.mjs"
50
- },
51
- "keywords": [
52
- "dsh",
53
- "deepseek-harness",
54
- "skill",
55
- "skills",
56
- "mcp",
57
- "mcp-server",
58
- "plugin",
59
- "cordis"
60
- ],
61
- "dsh": {
62
- "bundle": {
63
- "patch": "./cordis.patch.yml"
64
- },
65
- "client": {
66
- "platform": "web",
67
- "inject": [
68
- "@deepseek-ai/dsh-client-locale",
69
- "@deepseek-ai/dsh-client-ui-input-trigger"
70
- ]
71
- }
72
- },
73
- "icon": "./docs/images/logo.png",
74
- "peerDependencies": {
75
- "@deepseek-ai/cordis": "^4.0.2",
76
- "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.1 <0.2.3",
77
- "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1 <0.2.3",
78
- "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.2.3",
79
- "@deepseek-ai/dsh-session-projection-cache": ">=0.2.2-rc.1 <0.2.3",
80
- "@deepseek-ai/dsh-settings": ">=0.2.2-rc.1 <0.2.3",
81
- "@deepseek-ai/dsh-spill-local": ">=0.2.2-rc.1 <0.2.3",
82
- "@deepseek-ai/dsh-storage-domain": ">=0.2.2-rc.1 <0.2.3",
83
- "@deepseek-ai/dsh-subagent-fork-in-process": ">=0.2.2-rc.1 <0.2.3",
84
- "@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.2.2-rc.1 <0.2.3",
85
- "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.2.3",
86
- "@deepseek-ai/dsh-workspace": ">=0.2.2-rc.1 <0.2.3",
87
- "react": "^18.2.0"
88
- },
89
- "peerDependenciesMeta": {
90
- "@deepseek-ai/cordis": {
91
- "optional": true
92
- },
93
- "@deepseek-ai/dsh-agent-preset-registry": {
94
- "optional": true
95
- },
96
- "@deepseek-ai/dsh-llm": {
97
- "optional": true
98
- },
99
- "@deepseek-ai/dsh-session": {
100
- "optional": true
101
- },
102
- "@deepseek-ai/dsh-session-projection-cache": {
103
- "optional": true
104
- },
105
- "@deepseek-ai/dsh-settings": {
106
- "optional": true
107
- },
108
- "@deepseek-ai/dsh-spill-local": {
109
- "optional": true
110
- },
111
- "@deepseek-ai/dsh-storage-domain": {
112
- "optional": true
113
- },
114
- "@deepseek-ai/dsh-subagent-fork-in-process": {
115
- "optional": true
116
- },
117
- "@deepseek-ai/dsh-subagent-spawn-in-process": {
118
- "optional": true
119
- },
120
- "@deepseek-ai/dsh-tools": {
121
- "optional": true
122
- },
123
- "@deepseek-ai/dsh-workspace": {
124
- "optional": true
125
- }
126
- },
127
- "devDependencies": {
128
- "@deepseek-ai/cordis": "^4.1.0",
129
- "@deepseek-ai/dsh-agent-preset-registry": "^0.2.2-rc.1",
130
- "@deepseek-ai/dsh-llm": "^0.2.2-rc.1",
131
- "@deepseek-ai/dsh-session": "^0.2.2-rc.1",
132
- "@deepseek-ai/dsh-session-projection-cache": "^0.2.2-rc.1",
133
- "@deepseek-ai/dsh-settings": "^0.2.2-rc.1",
134
- "@deepseek-ai/dsh-spill-local": "^0.2.2-rc.1",
135
- "@deepseek-ai/dsh-storage-domain": "^0.2.2-rc.1",
136
- "@deepseek-ai/dsh-subagent-fork-in-process": "^0.2.2-rc.1",
137
- "@deepseek-ai/dsh-subagent-spawn-in-process": "^0.2.2-rc.1",
138
- "@deepseek-ai/dsh-tools": "^0.2.2-rc.1",
139
- "@deepseek-ai/dsh-workspace": "^0.2.2-rc.1",
140
- "@types/js-yaml": "^4.0.9",
141
- "@types/node": "^24.0.0",
142
- "@types/semver": "^7.7.0",
143
- "react": "^18.2.0",
144
- "typescript": "^6.0.0"
145
- },
146
- "license": "MIT",
147
- "dependencies": {
148
- "fflate": "^0.8.3",
149
- "js-yaml": "^4.3.2",
150
- "semver": "^7.7.2"
151
- }
152
- }
1
+ {
2
+ "name": "dsh-plugin-tool-management",
3
+ "version": "0.22.4",
4
+ "description": "一个设置面板,统一管理 MCP、技能、记忆、子智能体、提示词和归档会话;可自定义搭配场景,一个场景即可切换整个环境;Agent也能帮你操作这个插件。",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/ouli-1242/dsh-plugin-tool-management"
8
+ },
9
+ "type": "module",
10
+ "main": "lib/index.js",
11
+ "exports": {
12
+ ".": "./lib/index.js",
13
+ "./client": "./lib/client.js",
14
+ "./workspace": "./lib/sessions/workspace.js",
15
+ "./locale/*.json": "./locale/*.json",
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "lib",
20
+ "locale",
21
+ "cordis.patch.yml",
22
+ "README.md",
23
+ "README_EN.md",
24
+ "CHANGELOG.md",
25
+ "LICENSE",
26
+ "screenshots.json",
27
+ "docs/images",
28
+ "docs/UPDATE.md"
29
+ ],
30
+ "engines": {
31
+ "dsh": ">=0.2.2-rc.1 <0.2.3",
32
+ "node": ">=24.9"
33
+ },
34
+ "publishConfig": {
35
+ "registry": "https://registry.npmjs.org",
36
+ "access": "public"
37
+ },
38
+ "scripts": {
39
+ "build": "tsc -p tsconfig.json && node scripts/sync-client.mjs && node scripts/sync-profile.mjs",
40
+ "prepublishOnly": "npm run build && npm run lint && npm run typecheck:client && node --test test/client-exports.test.mjs",
41
+ "lint": "node --check lib/client.js && node --check lib/index.js",
42
+ "typecheck:client": "node scripts/sync-client.mjs && tsc -p tsconfig.client.json",
43
+ "check:i18n": "node scripts/check-i18n.mjs lib/client.js",
44
+ "check:host": "node scripts/host-deps.mjs && node scripts/doctor.mjs",
45
+ "check:strict": "node scripts/check-strict.mjs",
46
+ "host-deps": "node scripts/host-deps.mjs --fix",
47
+ "doctor": "node scripts/doctor.mjs",
48
+ "test": "npm run build && npm run check:i18n && npm run typecheck:client && node --test test/contracts.test.mjs test/client-exports.test.mjs",
49
+ "sync:profile": "node scripts/sync-profile.mjs"
50
+ },
51
+ "keywords": [
52
+ "dsh",
53
+ "deepseek-harness",
54
+ "skill",
55
+ "skills",
56
+ "mcp",
57
+ "mcp-server",
58
+ "plugin",
59
+ "cordis"
60
+ ],
61
+ "dsh": {
62
+ "bundle": {
63
+ "patch": "./cordis.patch.yml"
64
+ },
65
+ "client": {
66
+ "platform": "web",
67
+ "inject": [
68
+ "@deepseek-ai/dsh-client-locale",
69
+ "@deepseek-ai/dsh-client-ui-input-trigger"
70
+ ]
71
+ }
72
+ },
73
+ "icon": "./docs/images/logo.png",
74
+ "peerDependencies": {
75
+ "@deepseek-ai/cordis": "^4.0.2",
76
+ "@deepseek-ai/dsh-agent-preset-registry": ">=0.2.2-rc.1 <0.2.3",
77
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1 <0.2.3",
78
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.2.3",
79
+ "@deepseek-ai/dsh-session-projection-cache": ">=0.2.2-rc.1 <0.2.3",
80
+ "@deepseek-ai/dsh-settings": ">=0.2.2-rc.1 <0.2.3",
81
+ "@deepseek-ai/dsh-spill-local": ">=0.2.2-rc.1 <0.2.3",
82
+ "@deepseek-ai/dsh-storage-domain": ">=0.2.2-rc.1 <0.2.3",
83
+ "@deepseek-ai/dsh-subagent-fork-in-process": ">=0.2.2-rc.1 <0.2.3",
84
+ "@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.2.2-rc.1 <0.2.3",
85
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.2.3",
86
+ "@deepseek-ai/dsh-workspace": ">=0.2.2-rc.1 <0.2.3",
87
+ "react": "^18.2.0"
88
+ },
89
+ "peerDependenciesMeta": {
90
+ "@deepseek-ai/cordis": {
91
+ "optional": true
92
+ },
93
+ "@deepseek-ai/dsh-agent-preset-registry": {
94
+ "optional": true
95
+ },
96
+ "@deepseek-ai/dsh-llm": {
97
+ "optional": true
98
+ },
99
+ "@deepseek-ai/dsh-session": {
100
+ "optional": true
101
+ },
102
+ "@deepseek-ai/dsh-session-projection-cache": {
103
+ "optional": true
104
+ },
105
+ "@deepseek-ai/dsh-settings": {
106
+ "optional": true
107
+ },
108
+ "@deepseek-ai/dsh-spill-local": {
109
+ "optional": true
110
+ },
111
+ "@deepseek-ai/dsh-storage-domain": {
112
+ "optional": true
113
+ },
114
+ "@deepseek-ai/dsh-subagent-fork-in-process": {
115
+ "optional": true
116
+ },
117
+ "@deepseek-ai/dsh-subagent-spawn-in-process": {
118
+ "optional": true
119
+ },
120
+ "@deepseek-ai/dsh-tools": {
121
+ "optional": true
122
+ },
123
+ "@deepseek-ai/dsh-workspace": {
124
+ "optional": true
125
+ }
126
+ },
127
+ "devDependencies": {
128
+ "@deepseek-ai/cordis": "^4.1.0",
129
+ "@deepseek-ai/dsh-agent-preset-registry": "^0.2.2-rc.1",
130
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.1",
131
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.1",
132
+ "@deepseek-ai/dsh-session-projection-cache": "^0.2.2-rc.1",
133
+ "@deepseek-ai/dsh-settings": "^0.2.2-rc.1",
134
+ "@deepseek-ai/dsh-spill-local": "^0.2.2-rc.1",
135
+ "@deepseek-ai/dsh-storage-domain": "^0.2.2-rc.1",
136
+ "@deepseek-ai/dsh-subagent-fork-in-process": "^0.2.2-rc.1",
137
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "^0.2.2-rc.1",
138
+ "@deepseek-ai/dsh-tools": "^0.2.2-rc.1",
139
+ "@deepseek-ai/dsh-workspace": "^0.2.2-rc.1",
140
+ "@types/js-yaml": "^4.0.9",
141
+ "@types/node": "^24.0.0",
142
+ "@types/semver": "^7.7.0",
143
+ "react": "^18.2.0",
144
+ "typescript": "^6.0.0"
145
+ },
146
+ "license": "MIT",
147
+ "dependencies": {
148
+ "fflate": "^0.8.3",
149
+ "js-yaml": "^4.3.2",
150
+ "semver": "^7.7.2"
151
+ }
152
+ }