dsh-plugin-tool-management 0.21.4 → 0.21.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/CHANGELOG.md +35 -0
- package/README.md +125 -225
- package/README_EN.md +131 -228
- package/docs/UPDATE.md +41 -39
- package/docs/images/1-EN.png +0 -0
- package/docs/images/1.png +0 -0
- package/docs/images/2-EN.png +0 -0
- package/docs/images/2.png +0 -0
- package/docs/images/3-EN.png +0 -0
- package/docs/images/3.png +0 -0
- package/docs/images/4-EN.png +0 -0
- package/docs/images/4.png +0 -0
- package/docs/images/5-EN.png +0 -0
- package/docs/images/5.png +0 -0
- package/docs/images/6-EN.png +0 -0
- package/docs/images/6.png +0 -0
- package/docs/images/7-EN.png +0 -0
- package/docs/images/7.png +0 -0
- package/docs/images/8-EN.png +0 -0
- package/docs/images/8.png +0 -0
- package/docs/images/banner-en.png +0 -0
- package/docs/images/banner-zh.png +0 -0
- package/lib/compat/host-roots.js +1 -1
- package/lib/compat/probe.js +7 -6
- package/lib/confirm-gate.js +134 -0
- package/lib/index.js +43 -0
- package/lib/op-registry.js +7 -5
- package/lib/ops/memory.js +10 -2
- package/lib/ops/prompts.js +2 -1
- package/lib/prompts/quick-service.js +3 -2
- package/lib/prompts/service.js +3 -2
- package/lib/subagents/persona-parse.js +44 -2
- package/lib/subagents/persona-write.js +11 -3
- package/lib/subagents/service.js +2 -2
- package/lib/subagents/tools.js +11 -2
- package/lib/tools/deps.js +61 -5
- package/lib/tools/mcp.js +28 -5
- package/lib/tools/memory.js +17 -4
- package/lib/tools/prompt.js +9 -3
- package/lib/tools/remove.js +101 -17
- package/lib/tools/scene.js +17 -3
- package/lib/tools/skills.js +12 -3
- package/lib/tools/table.js +4 -1
- package/lib/trash-retention.js +6 -2
- package/package.json +13 -13
- package/docs/images/icon.png +0 -0
- package/docs/images/promo-cover-EN.png +0 -0
- package/docs/images/promo-cover.png +0 -0
package/lib/trash-retention.js
CHANGED
|
@@ -25,7 +25,9 @@ import { dirname } from 'node:path';
|
|
|
25
25
|
import { writeFileAtomically } from './memories/index-io.js';
|
|
26
26
|
import { recordAudit } from './audit-log.js';
|
|
27
27
|
import { hubPath, listTrashEntries, purgeTrashEntry, } from './hub.js';
|
|
28
|
-
import { listTrash as listSkillTrash
|
|
28
|
+
import { listTrash as listSkillTrash } from './skills/skill-trash.js';
|
|
29
|
+
import { permanentlyDeleteTrashSafely } from './skills/system-trash.js';
|
|
30
|
+
import { pluginLog } from './skills/service.js';
|
|
29
31
|
/** 一天的毫秒数(保留期按「天」配置,比较按毫秒)。与 sessions/history.ts 同一个常量。 */
|
|
30
32
|
export const MS_PER_DAY = 24 * 60 * 60 * 1000;
|
|
31
33
|
/** 保留期侧车文件名(放 hub 根,与 `history-retention.json` 并排)。 */
|
|
@@ -139,7 +141,9 @@ export async function collectTrashCandidates(memories) {
|
|
|
139
141
|
name: item.name,
|
|
140
142
|
// `deletedAt` 在技能元数据里是可选的:更早的版本可能没写 → 空串 → 不清扫(第 ③ 条)。
|
|
141
143
|
deletedAt: String(item.deletedAt ?? ''),
|
|
142
|
-
|
|
144
|
+
// 与手工 skill-trash-delete 同一道保险:先送系统回收站、失败才硬删。自动清扫
|
|
145
|
+
// 无人值守、破坏力更大,不能反而比手工路径少一层。
|
|
146
|
+
purge: () => permanentlyDeleteTrashSafely(item.id, pluginLog()),
|
|
143
147
|
});
|
|
144
148
|
}
|
|
145
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-tool-management",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.6",
|
|
4
4
|
"description": "一个设置面板,统一管理 MCP、技能、记忆、子智能体、提示词和归档会话;可自定义搭配场景,一个场景即可切换整个环境;Agent也能帮你操作这个插件。",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"docs/UPDATE.md"
|
|
29
29
|
],
|
|
30
30
|
"engines": {
|
|
31
|
-
"dsh": ">=0.2.1-rc.
|
|
31
|
+
"dsh": ">=0.2.1-rc.3 <0.2.2",
|
|
32
32
|
"node": ">=18"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
@@ -73,17 +73,17 @@
|
|
|
73
73
|
"icon": "./docs/images/logo.png",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
76
|
-
"@deepseek-ai/dsh-agent-preset-registry": ">=0.2.1-rc.
|
|
77
|
-
"@deepseek-ai/dsh-llm": ">=0.2.1-rc.
|
|
78
|
-
"@deepseek-ai/dsh-session": ">=0.2.1-rc.
|
|
79
|
-
"@deepseek-ai/dsh-session-projection-cache": ">=0.2.1-rc.
|
|
80
|
-
"@deepseek-ai/dsh-settings": ">=0.2.1-rc.
|
|
81
|
-
"@deepseek-ai/dsh-spill-local": ">=0.2.1-rc.
|
|
82
|
-
"@deepseek-ai/dsh-storage-domain": ">=0.2.1-rc.
|
|
83
|
-
"@deepseek-ai/dsh-subagent-fork-in-process": ">=0.2.1-rc.
|
|
84
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.2.1-rc.
|
|
85
|
-
"@deepseek-ai/dsh-tools": ">=0.2.1-rc.
|
|
86
|
-
"@deepseek-ai/dsh-workspace": ">=0.2.1-rc.
|
|
76
|
+
"@deepseek-ai/dsh-agent-preset-registry": ">=0.2.1-rc.3 <0.2.2",
|
|
77
|
+
"@deepseek-ai/dsh-llm": ">=0.2.1-rc.3 <0.2.2",
|
|
78
|
+
"@deepseek-ai/dsh-session": ">=0.2.1-rc.3 <0.2.2",
|
|
79
|
+
"@deepseek-ai/dsh-session-projection-cache": ">=0.2.1-rc.3 <0.2.2",
|
|
80
|
+
"@deepseek-ai/dsh-settings": ">=0.2.1-rc.3 <0.2.2",
|
|
81
|
+
"@deepseek-ai/dsh-spill-local": ">=0.2.1-rc.3 <0.2.2",
|
|
82
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.2.1-rc.3 <0.2.2",
|
|
83
|
+
"@deepseek-ai/dsh-subagent-fork-in-process": ">=0.2.1-rc.3 <0.2.2",
|
|
84
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": ">=0.2.1-rc.3 <0.2.2",
|
|
85
|
+
"@deepseek-ai/dsh-tools": ">=0.2.1-rc.3 <0.2.2",
|
|
86
|
+
"@deepseek-ai/dsh-workspace": ">=0.2.1-rc.3 <0.2.2",
|
|
87
87
|
"react": "^18.2.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
package/docs/images/icon.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|