@lmzhen/dsh-evolution-review 0.31.1 → 0.32.0

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 +13 -0
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -724,6 +724,19 @@ function apply(ctx, rawConfig = {}) {
724
724
  } catch (emitError) {
725
725
  ctx.logger.warn("dsh-evolution-review: review-completed emit failed: " + (emitError instanceof Error ? emitError.message : String(emitError)));
726
726
  }
727
+ try {
728
+ const ok = (action) => action.status === "ok";
729
+ ctx.emit("evolution/plan-applied", {
730
+ sessionId: String(session.id),
731
+ planId: String(childId),
732
+ memoryApplied: collected.actions.filter((action) => action.type === "memory" && ok(action)).length,
733
+ skillApplied: collected.actions.filter((action) => action.type === "skill" && ok(action)).length,
734
+ rejectedOps: collected.actions.filter((action) => !ok(action)).length,
735
+ ...collected.error === void 0 ? {} : { executionError: collected.error }
736
+ });
737
+ } catch (emitError) {
738
+ ctx.logger.warn("dsh-evolution-review: plan-applied emit failed: " + (emitError instanceof Error ? emitError.message : String(emitError)));
739
+ }
727
740
  } catch (error) {
728
741
  offEvent();
729
742
  collected.error = error instanceof Error ? error.message : String(error);
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.31.1",
4
+ "version": "0.32.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,7 +27,7 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-core": "^0.31.1"
30
+ "@lmzhen/dsh-evolution-core": "^0.32.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.5",
@@ -35,8 +35,8 @@
35
35
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
36
36
  "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
37
37
  "@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
38
- "@lmzhen/dsh-evolution-policy": "^0.31.1",
39
- "@lmzhen/dsh-evolution-state": "^0.31.1"
38
+ "@lmzhen/dsh-evolution-policy": "^0.32.0",
39
+ "@lmzhen/dsh-evolution-state": "^0.32.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
@@ -44,8 +44,8 @@
44
44
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
45
45
  "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
46
46
  "@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
47
- "@lmzhen/dsh-evolution-core": "^0.31.1",
48
- "@lmzhen/dsh-evolution-state": "^0.31.1"
47
+ "@lmzhen/dsh-evolution-core": "^0.32.0",
48
+ "@lmzhen/dsh-evolution-state": "^0.32.0"
49
49
  },
50
50
  "engines": {
51
51
  "dsh": ">=0.2.1-rc.2 <0.2.2-0"