@lmzhen/dsh-tool-skill-manage 0.3.46 → 0.3.47

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 (2) hide show
  1. package/lib/index.js +7 -5
  2. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -100,11 +100,13 @@ function apply(ctx, rawConfig = {}) {
100
100
  else if (action === "delete") result = await library.archive(name, args.absorbed_into ? { absorbedInto: args.absorbed_into } : {});
101
101
  else if (action === "write_file") result = await library.writeSupportFile(name, args.file_path ?? "", args.file_content ?? "", origin);
102
102
  else if (action === "remove_file") result = await library.removeSupportFile(name, args.file_path ?? "", origin);
103
- else if (action === "restructure") result = await library.restructure(name, (args.restructure ?? []).map((move) => ({
104
- heading: move.heading ?? "",
105
- toFile: move.to_file ?? ""
106
- })), origin);
107
- else if (action === "pin") result = await library.setPinned(name, true, origin);
103
+ else if (action === "restructure") {
104
+ const moves = Array.isArray(args.restructure) ? args.restructure : [];
105
+ result = await library.restructure(name, moves.map((move) => ({
106
+ heading: move.heading ?? "",
107
+ toFile: move.to_file ?? ""
108
+ })), origin);
109
+ } else if (action === "pin") result = await library.setPinned(name, true, origin);
108
110
  else if (action === "unpin") result = await library.setPinned(name, false, origin);
109
111
  else result = {
110
112
  ok: false,
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.46",
4
+ "version": "0.3.47",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,22 +31,22 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-approval": "^0.3.46",
35
- "@lmzhen/dsh-evolution-core": "^0.3.46"
34
+ "@lmzhen/dsh-evolution-approval": "^0.3.47",
35
+ "@lmzhen/dsh-evolution-core": "^0.3.47"
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-tools": "^0.1.1-rc.2",
41
- "@lmzhen/dsh-evolution-io": "^0.3.46",
42
- "@lmzhen/dsh-skill-usage": "^0.3.46"
41
+ "@lmzhen/dsh-evolution-io": "^0.3.47",
42
+ "@lmzhen/dsh-skill-usage": "^0.3.47"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
46
46
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
47
47
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
48
- "@lmzhen/dsh-evolution-core": "^0.3.46",
49
- "@lmzhen/dsh-evolution-io": "^0.3.46",
50
- "@lmzhen/dsh-skill-usage": "^0.3.46"
48
+ "@lmzhen/dsh-evolution-core": "^0.3.47",
49
+ "@lmzhen/dsh-evolution-io": "^0.3.47",
50
+ "@lmzhen/dsh-skill-usage": "^0.3.47"
51
51
  }
52
52
  }