@lmzhen/dsh-evolution-review 0.1.0 → 0.2.0-rc.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.
Files changed (2) hide show
  1. package/lib/index.js +9 -1
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -339,6 +339,13 @@ function apply(ctx, rawConfig) {
339
339
  }
340
340
  if (op.action === "write_file") return await library.writeSupportFile(name, op.file_path ?? "", op.file_content ?? op.content ?? "", origin);
341
341
  if (op.action === "remove_file") return await library.removeSupportFile(name, op.file_path ?? "", origin);
342
+ if (op.action === "restructure") {
343
+ const moves = (op.restructure ?? []).filter((move) => move !== null).map((move) => ({
344
+ heading: move.heading ?? "",
345
+ toFile: move.to_file ?? ""
346
+ }));
347
+ return await library.restructure(name, moves, origin);
348
+ }
342
349
  return {
343
350
  ok: false,
344
351
  message: `Unknown skill action "${op.action ?? ""}"`
@@ -406,7 +413,8 @@ function filterUnreadSkillOps(ops, readNames) {
406
413
  "patch",
407
414
  "delete",
408
415
  "write_file",
409
- "remove_file"
416
+ "remove_file",
417
+ "restructure"
410
418
  ];
411
419
  let dropped = 0;
412
420
  for (let index = ops.length - 1; index >= 0; index -= 1) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-review",
3
3
  "description": "Background review orchestration (community build)",
4
- "version": "0.1.0",
4
+ "version": "0.2.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -33,8 +33,8 @@
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
35
  "@deepseek-ai/schemastery": "^3.18.1",
36
- "@lmzhen/dsh-evolution-core": "^0.1.0",
37
- "@lmzhen/dsh-evolution-plan-validator": "^0.1.0"
36
+ "@lmzhen/dsh-evolution-core": "^0.2.0-rc.2",
37
+ "@lmzhen/dsh-evolution-plan-validator": "^0.2.0-rc.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@deepseek-ai/cordis": "^4.0.1",
@@ -43,7 +43,7 @@
43
43
  "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
44
44
  "@deepseek-ai/dsh-session": "^0.1.1-rc.2",
45
45
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
46
- "@lmzhen/dsh-evolution-state": "^0.1.0"
46
+ "@lmzhen/dsh-evolution-state": "^0.2.0-rc.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
@@ -54,8 +54,8 @@
54
54
  "@deepseek-ai/dsh-session-persistence": "^0.1.1-rc.2",
55
55
  "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.1-rc.2",
56
56
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
57
- "@lmzhen/dsh-evolution-core": "^0.1.0",
58
- "@lmzhen/dsh-evolution-plan-validator": "^0.1.0",
59
- "@lmzhen/dsh-evolution-state": "^0.1.0"
57
+ "@lmzhen/dsh-evolution-core": "^0.2.0-rc.2",
58
+ "@lmzhen/dsh-evolution-plan-validator": "^0.2.0-rc.2",
59
+ "@lmzhen/dsh-evolution-state": "^0.2.0-rc.2"
60
60
  }
61
61
  }