@lmzhen/dsh-tool-skill-manage 0.3.66 → 0.3.67
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/lib/index.js +8 -1
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -125,7 +125,14 @@ function apply(ctx, rawConfig = {}) {
|
|
|
125
125
|
else if (action === "remove_file") result = await library.removeSupportFile(name, args.file_path ?? "", origin);
|
|
126
126
|
else if (action === "restructure") {
|
|
127
127
|
const moves = Array.isArray(args.restructure) ? args.restructure : [];
|
|
128
|
-
|
|
128
|
+
if (moves.some((move) => {
|
|
129
|
+
const raw = move;
|
|
130
|
+
return raw === null || typeof raw !== "object";
|
|
131
|
+
})) result = {
|
|
132
|
+
ok: false,
|
|
133
|
+
message: "Every entry of restructure must be an object with heading and to_file."
|
|
134
|
+
};
|
|
135
|
+
else result = await library.restructure(name, moves.map((move) => ({
|
|
129
136
|
heading: typeof move.heading === "string" ? move.heading : "",
|
|
130
137
|
toFile: typeof move.to_file === "string" ? move.to_file : ""
|
|
131
138
|
})), origin);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-tool-skill-manage",
|
|
3
3
|
"description": "Model-facing skill_manage tool (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.67",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-approval": "^0.3.
|
|
35
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-approval": "^0.3.67",
|
|
35
|
+
"@lmzhen/dsh-evolution-core": "^0.3.67"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
39
39
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
40
40
|
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
|
|
41
41
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
42
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
43
|
-
"@lmzhen/dsh-skill-usage": "^0.3.
|
|
42
|
+
"@lmzhen/dsh-evolution-io": "^0.3.67",
|
|
43
|
+
"@lmzhen/dsh-skill-usage": "^0.3.67"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
|
|
47
47
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
48
48
|
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
|
|
49
49
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
50
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
51
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
52
|
-
"@lmzhen/dsh-skill-usage": "^0.3.
|
|
50
|
+
"@lmzhen/dsh-evolution-core": "^0.3.67",
|
|
51
|
+
"@lmzhen/dsh-evolution-io": "^0.3.67",
|
|
52
|
+
"@lmzhen/dsh-skill-usage": "^0.3.67"
|
|
53
53
|
}
|
|
54
54
|
}
|