dsh-plugin-tool-management 0.20.1 → 0.20.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.
@@ -155,8 +155,11 @@ export function createCandidates(deps) {
155
155
  }
156
156
  }
157
157
  /**
158
- * 记忆候选(档案编辑器第 4 段「记忆」):`[{ id, scene, name, description }]`。
158
+ * 记忆候选(档案编辑器第 4 段「记忆」):`[{ id, scene, name, description, attach? }]`。
159
159
  * 只读、不读正文(勾选集只存 id);任何异常降级为空列表,不让档案弹窗崩掉。
160
+ *
161
+ * `attach` 是宿主在 `rules-list` 里给 bundle 记忆补的附件摘要,这里原样带过去 ——
162
+ * 场景编辑器要在行上标一枚回形针,让用户看见"勾这条会连带把参考资料一起带进场景"。
160
163
  */
161
164
  async function memoryCandidates() {
162
165
  try {
@@ -170,6 +173,7 @@ export function createCandidates(deps) {
170
173
  scene: String(x.group || ''),
171
174
  name: String(x.name || ''),
172
175
  description: String(x.description || ''),
176
+ ...(x.attach ? { attach: x.attach } : {}),
173
177
  }));
174
178
  }
175
179
  catch {
package/package.json CHANGED
@@ -1,115 +1,115 @@
1
- {
2
- "name": "dsh-plugin-tool-management",
3
- "version": "0.20.1",
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
- "./package.json": "./package.json"
16
- },
17
- "files": [
18
- "lib",
19
- "cordis.patch.yml",
20
- "README.md",
21
- "README_EN.md",
22
- "CHANGELOG.md",
23
- "LICENSE",
24
- "screenshots.json",
25
- "docs/images",
26
- "docs/update.md"
27
- ],
28
- "engines": {
29
- "node": ">=18"
30
- },
31
- "publishConfig": {
32
- "registry": "https://registry.npmjs.org",
33
- "access": "public"
34
- },
35
- "scripts": {
36
- "build": "tsc -p tsconfig.json && node scripts/sync-client.mjs && node scripts/sync-profile.mjs",
37
- "prepublishOnly": "npm run build && npm run lint && npm run typecheck:client && node --test test/client-exports.test.mjs",
38
- "lint": "node --check lib/client.js && node --check lib/index.js",
39
- "typecheck:client": "node scripts/sync-client.mjs && tsc -p tsconfig.client.json",
40
- "check:i18n": "node scripts/check-i18n.mjs lib/client.js",
41
- "check:host": "node scripts/host-deps.mjs && node scripts/doctor.mjs",
42
- "host-deps": "node scripts/host-deps.mjs --fix",
43
- "doctor": "node scripts/doctor.mjs",
44
- "test": "npm run build && npm run check:i18n && npm run typecheck:client && node --test test/contracts.test.mjs test/client-exports.test.mjs",
45
- "sync:profile": "node scripts/sync-profile.mjs"
46
- },
47
- "keywords": [
48
- "dsh",
49
- "deepseek-harness",
50
- "skill",
51
- "skills",
52
- "mcp",
53
- "mcp-server",
54
- "plugin",
55
- "cordis"
56
- ],
57
- "dsh": {
58
- "bundle": {
59
- "patch": "./cordis.patch.yml"
60
- },
61
- "client": {
62
- "platform": "web",
63
- "inject": [
64
- "@deepseek-ai/dsh-client-locale",
65
- "@deepseek-ai/dsh-client-ui-input-trigger"
66
- ]
67
- }
68
- },
69
- "peerDependencies": {
70
- "@deepseek-ai/cordis": "^4.0.2",
71
- "@deepseek-ai/dsh-agent-preset-registry": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
72
- "@deepseek-ai/dsh-llm": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
73
- "@deepseek-ai/dsh-session": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
74
- "@deepseek-ai/dsh-session-projection-cache": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
75
- "@deepseek-ai/dsh-settings": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
76
- "@deepseek-ai/dsh-spill-local": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
77
- "@deepseek-ai/dsh-storage-domain": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
78
- "@deepseek-ai/dsh-subagent-fork-in-process": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
79
- "@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
80
- "@deepseek-ai/dsh-tools": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
81
- "@deepseek-ai/dsh-workspace": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
82
- "react": "^18.2.0"
83
- },
84
- "peerDependenciesMeta": {
85
- "@deepseek-ai/dsh-subagent-fork-in-process": {
86
- "optional": true
87
- },
88
- "@deepseek-ai/dsh-subagent-spawn-in-process": {
89
- "optional": true
90
- }
91
- },
92
- "devDependencies": {
93
- "@deepseek-ai/cordis": "^4.0.1",
94
- "@deepseek-ai/dsh-agent-preset-registry": "^0.2.0-rc.2",
95
- "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
96
- "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
97
- "@deepseek-ai/dsh-session-projection-cache": "^0.2.0-rc.2",
98
- "@deepseek-ai/dsh-settings": "^0.2.0-rc.2",
99
- "@deepseek-ai/dsh-spill-local": "^0.2.0-rc.2",
100
- "@deepseek-ai/dsh-storage-domain": "^0.2.0-rc.2",
101
- "@deepseek-ai/dsh-subagent-fork-in-process": "^0.2.0-rc.2",
102
- "@deepseek-ai/dsh-subagent-spawn-in-process": "^0.2.0-rc.2",
103
- "@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
104
- "@deepseek-ai/dsh-workspace": "^0.2.0-rc.2",
105
- "@types/js-yaml": "^4.0.9",
106
- "@types/node": "^24.0.0",
107
- "react": "^18.2.0",
108
- "typescript": "^6.0.0"
109
- },
110
- "license": "MIT",
111
- "dependencies": {
112
- "fflate": "^0.8.3",
113
- "js-yaml": "^4.3.2"
114
- }
115
- }
1
+ {
2
+ "name": "dsh-plugin-tool-management",
3
+ "version": "0.20.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
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "lib",
19
+ "cordis.patch.yml",
20
+ "README.md",
21
+ "README_EN.md",
22
+ "CHANGELOG.md",
23
+ "LICENSE",
24
+ "screenshots.json",
25
+ "docs/images",
26
+ "docs/update.md"
27
+ ],
28
+ "engines": {
29
+ "node": ">=18"
30
+ },
31
+ "publishConfig": {
32
+ "registry": "https://registry.npmjs.org",
33
+ "access": "public"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json && node scripts/sync-client.mjs && node scripts/sync-profile.mjs",
37
+ "prepublishOnly": "npm run build && npm run lint && npm run typecheck:client && node --test test/client-exports.test.mjs",
38
+ "lint": "node --check lib/client.js && node --check lib/index.js",
39
+ "typecheck:client": "node scripts/sync-client.mjs && tsc -p tsconfig.client.json",
40
+ "check:i18n": "node scripts/check-i18n.mjs lib/client.js",
41
+ "check:host": "node scripts/host-deps.mjs && node scripts/doctor.mjs",
42
+ "host-deps": "node scripts/host-deps.mjs --fix",
43
+ "doctor": "node scripts/doctor.mjs",
44
+ "test": "npm run build && npm run check:i18n && npm run typecheck:client && node --test test/contracts.test.mjs test/client-exports.test.mjs",
45
+ "sync:profile": "node scripts/sync-profile.mjs"
46
+ },
47
+ "keywords": [
48
+ "dsh",
49
+ "deepseek-harness",
50
+ "skill",
51
+ "skills",
52
+ "mcp",
53
+ "mcp-server",
54
+ "plugin",
55
+ "cordis"
56
+ ],
57
+ "dsh": {
58
+ "bundle": {
59
+ "patch": "./cordis.patch.yml"
60
+ },
61
+ "client": {
62
+ "platform": "web",
63
+ "inject": [
64
+ "@deepseek-ai/dsh-client-locale",
65
+ "@deepseek-ai/dsh-client-ui-input-trigger"
66
+ ]
67
+ }
68
+ },
69
+ "peerDependencies": {
70
+ "@deepseek-ai/cordis": "^4.0.2",
71
+ "@deepseek-ai/dsh-agent-preset-registry": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
72
+ "@deepseek-ai/dsh-llm": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
73
+ "@deepseek-ai/dsh-session": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
74
+ "@deepseek-ai/dsh-session-projection-cache": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
75
+ "@deepseek-ai/dsh-settings": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
76
+ "@deepseek-ai/dsh-spill-local": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
77
+ "@deepseek-ai/dsh-storage-domain": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
78
+ "@deepseek-ai/dsh-subagent-fork-in-process": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
79
+ "@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
80
+ "@deepseek-ai/dsh-tools": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
81
+ "@deepseek-ai/dsh-workspace": ">=0.1.7-rc.2 || >=0.2.0-rc.1",
82
+ "react": "^18.2.0"
83
+ },
84
+ "peerDependenciesMeta": {
85
+ "@deepseek-ai/dsh-subagent-fork-in-process": {
86
+ "optional": true
87
+ },
88
+ "@deepseek-ai/dsh-subagent-spawn-in-process": {
89
+ "optional": true
90
+ }
91
+ },
92
+ "devDependencies": {
93
+ "@deepseek-ai/cordis": "^4.0.1",
94
+ "@deepseek-ai/dsh-agent-preset-registry": "^0.2.0-rc.2",
95
+ "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
96
+ "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
97
+ "@deepseek-ai/dsh-session-projection-cache": "^0.2.0-rc.2",
98
+ "@deepseek-ai/dsh-settings": "^0.2.0-rc.2",
99
+ "@deepseek-ai/dsh-spill-local": "^0.2.0-rc.2",
100
+ "@deepseek-ai/dsh-storage-domain": "^0.2.0-rc.2",
101
+ "@deepseek-ai/dsh-subagent-fork-in-process": "^0.2.0-rc.2",
102
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "^0.2.0-rc.2",
103
+ "@deepseek-ai/dsh-tools": "^0.2.0-rc.2",
104
+ "@deepseek-ai/dsh-workspace": "^0.2.0-rc.2",
105
+ "@types/js-yaml": "^4.0.9",
106
+ "@types/node": "^24.0.0",
107
+ "react": "^18.2.0",
108
+ "typescript": "^6.0.0"
109
+ },
110
+ "license": "MIT",
111
+ "dependencies": {
112
+ "fflate": "^0.8.3",
113
+ "js-yaml": "^4.3.2"
114
+ }
115
+ }