@lmzhen/dsh-evolution-review 0.1.0-rc.41 → 0.1.0-rc.42

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 +6 -3
  2. package/package.json +9 -7
package/lib/index.js CHANGED
@@ -91,7 +91,8 @@ function apply(ctx, rawConfig) {
91
91
  const cumulative = (cumulativeToolCalls.get(session.id) ?? 0) + signal.toolCalls;
92
92
  cumulativeToolCalls.set(session.id, cumulative);
93
93
  if (kind) {
94
- session.append("evolution/review-scheduled", {
94
+ ctx.emit("evolution/review-scheduled", {
95
+ sessionId: session.id,
95
96
  kind,
96
97
  toolCalls: signal.toolCalls,
97
98
  userChars: signal.userChars,
@@ -116,7 +117,8 @@ function apply(ctx, rawConfig) {
116
117
  if (completionInjected.has(session.id)) return;
117
118
  if (!shouldCompletionReview(event.data.reason, cumulative, config.skillReviewCompletionMinToolCalls)) return;
118
119
  completionInjected.add(session.id);
119
- session.append("evolution/review-scheduled", {
120
+ ctx.emit("evolution/review-scheduled", {
121
+ sessionId: session.id,
120
122
  kind: "skill",
121
123
  toolCalls: signal.toolCalls,
122
124
  userChars: signal.userChars,
@@ -193,7 +195,8 @@ function apply(ctx, rawConfig) {
193
195
  validation.accepted.skillOps = acceptedSkillOps;
194
196
  const actions = await executePlan(validation.accepted);
195
197
  const evidenceQuotes = [...validation.accepted.memoryOps ?? [], ...acceptedSkillOps].reduce((total, op) => total + (Array.isArray(op.evidence) ? op.evidence.length : 0), 0);
196
- session.append("evolution/plan-applied", {
198
+ ctx.emit("evolution/plan-applied", {
199
+ sessionId: session.id,
197
200
  planId: randomUUID(),
198
201
  policyFingerprint,
199
202
  memoryApplied: actions.filter((action) => action.startsWith("Memory")).length,
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-rc.41",
4
+ "version": "0.1.0-rc.42",
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-rc.41",
37
- "@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.41"
36
+ "@lmzhen/dsh-evolution-core": "^0.1.0-rc.42",
37
+ "@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.42"
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.0-rc.6",
44
44
  "@deepseek-ai/dsh-session": "^0.1.0-rc.6",
45
45
  "@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
46
- "@lmzhen/dsh-evolution-state": "^0.1.0-rc.41"
46
+ "@lmzhen/dsh-evolution-state": "^0.1.0-rc.42"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
@@ -51,9 +51,11 @@
51
51
  "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
52
52
  "@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
53
53
  "@deepseek-ai/dsh-session": "^0.1.0-rc.6",
54
+ "@deepseek-ai/dsh-session-persistence": "^0.1.0-rc.6",
55
+ "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.0-rc.6",
54
56
  "@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
55
- "@lmzhen/dsh-evolution-core": "^0.1.0-rc.41",
56
- "@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.41",
57
- "@lmzhen/dsh-evolution-state": "^0.1.0-rc.41"
57
+ "@lmzhen/dsh-evolution-core": "^0.1.0-rc.42",
58
+ "@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.42",
59
+ "@lmzhen/dsh-evolution-state": "^0.1.0-rc.42"
58
60
  }
59
61
  }