@lmzhen/dsh-evolution-curator 0.3.51 → 0.3.53

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 -1
  2. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -148,7 +148,12 @@ var EvolutionCurator = class extends Service {
148
148
  * kept deliberately: an unattended resume must not auto-run mid-boot).
149
149
  */
150
150
  async setPaused(paused) {
151
- await this.curatorStateService()?.transactCuratorState((current) => ({
151
+ const stateService = this.curatorStateService();
152
+ if (!stateService) {
153
+ this.ctx.logger.warn("evolution-curator: curator state service absent; pause not persisted");
154
+ return;
155
+ }
156
+ await stateService.transactCuratorState((current) => ({
152
157
  schemaVersion: 1,
153
158
  lastRunAt: current?.lastRunAt ?? Date.now(),
154
159
  runCount: current?.runCount ?? 0,
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-curator",
3
3
  "description": "Deterministic skill lifecycle and recovery (community build)",
4
- "version": "0.3.51",
4
+ "version": "0.3.53",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/lmzhen/dsh-evolution.git",
11
- "directory": "packages/dsh-evolution-curator"
11
+ "directory": "packages/evolution-curator"
12
12
  },
13
13
  "type": "module",
14
14
  "main": "lib/index.js",
@@ -31,20 +31,20 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-core": "^0.3.51"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.53"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/cordis": "^4.0.1",
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
39
  "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
40
- "@lmzhen/dsh-evolution-io": "^0.3.51",
41
- "@lmzhen/dsh-evolution-state": "^0.3.51"
40
+ "@lmzhen/dsh-evolution-io": "^0.3.53",
41
+ "@lmzhen/dsh-evolution-state": "^0.3.53"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
45
45
  "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
46
- "@lmzhen/dsh-evolution-core": "^0.3.51",
47
- "@lmzhen/dsh-evolution-io": "^0.3.51",
48
- "@lmzhen/dsh-evolution-state": "^0.3.51"
46
+ "@lmzhen/dsh-evolution-core": "^0.3.53",
47
+ "@lmzhen/dsh-evolution-io": "^0.3.53",
48
+ "@lmzhen/dsh-evolution-state": "^0.3.53"
49
49
  }
50
50
  }