@lmzhen/dsh-evolution-curator 0.18.0 → 0.18.1

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 +8 -3
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -404,6 +404,7 @@ var EvolutionCurator = class extends Service {
404
404
  "Return a YAML summary with consolidations and prunings lists. Nominate only actions whose archival/merge is clearly safe."
405
405
  ].join("\n");
406
406
  const settings = this.settings();
407
+ const llmSignal = AbortSignal.timeout(settings.curatorReviewTimeoutMs);
407
408
  try {
408
409
  const assembler = new BlockAssembler();
409
410
  for await (const chunk of llm.stream({
@@ -421,7 +422,7 @@ var EvolutionCurator = class extends Service {
421
422
  }
422
423
  })],
423
424
  maxTokens: settings.curatorReviewMaxTokens,
424
- signal: AbortSignal.timeout(settings.curatorReviewTimeoutMs)
425
+ signal: llmSignal
425
426
  })) assembler.push(chunk);
426
427
  const parsed = parseCuratorNominations(assembler.blocks().filter((block) => block.type === "text").map((block) => block.text).join("\n"));
427
428
  return {
@@ -430,8 +431,12 @@ var EvolutionCurator = class extends Service {
430
431
  warnings: parsed.warnings
431
432
  };
432
433
  } catch (error) {
433
- this.ctx.logger.warn(`evolution-curator: LLM nomination pass failed: ${error instanceof Error ? error.message : String(error)}`);
434
- return empty;
434
+ const failure = llmSignal.aborted ? `LLM nomination pass timed out after ${settings.curatorReviewTimeoutMs} ms — no nominations this run (NOT "nothing to nominate": the pass did not complete)` : `LLM nomination pass failed: ${error instanceof Error ? error.message : String(error)} — no nominations this run (NOT "nothing to nominate": the pass did not complete)`;
435
+ this.ctx.logger.warn(`evolution-curator: ${failure}`);
436
+ return {
437
+ ...empty,
438
+ warnings: [failure]
439
+ };
435
440
  }
436
441
  }
437
442
  /** Optional curator-state service (evolution-state-json / storage-domain). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-curator",
3
3
  "description": "Deterministic skill lifecycle and recovery (community build)",
4
- "version": "0.18.0",
4
+ "version": "0.18.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,20 +27,20 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.4",
30
- "@lmzhen/dsh-evolution-core": "^0.18.0"
30
+ "@lmzhen/dsh-evolution-core": "^0.18.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.1",
34
34
  "@deepseek-ai/dsh-llm": "^0.2.0-rc.1",
35
35
  "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
36
- "@lmzhen/dsh-evolution-io": "^0.18.0",
37
- "@lmzhen/dsh-evolution-state": "^0.18.0"
36
+ "@lmzhen/dsh-evolution-io": "^0.18.1",
37
+ "@lmzhen/dsh-evolution-state": "^0.18.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@deepseek-ai/dsh-llm": "^0.2.0-rc.1",
41
41
  "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
42
- "@lmzhen/dsh-evolution-core": "^0.18.0",
43
- "@lmzhen/dsh-evolution-io": "^0.18.0",
44
- "@lmzhen/dsh-evolution-state": "^0.18.0"
42
+ "@lmzhen/dsh-evolution-core": "^0.18.1",
43
+ "@lmzhen/dsh-evolution-io": "^0.18.1",
44
+ "@lmzhen/dsh-evolution-state": "^0.18.1"
45
45
  }
46
46
  }