@lmzhen/dsh-evolution-curator 0.37.0 → 0.38.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 +10 -9
  2. package/package.json +12 -12
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ import { CURATOR_DRY_RUN_BANNER, CURATOR_PROMPT, DEFAULT_ARCHIVE_AFTER_DAYS, DEF
2
2
  import { Service } from "@deepseek-ai/cordis";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { dirname, join } from "node:path";
5
- import { BlockAssembler, createUserMessage } from "@deepseek-ai/dsh-llm";
5
+ import { createUserMessage } from "@deepseek-ai/dsh-llm";
6
6
  import z from "@deepseek-ai/schemastery";
7
7
  //#region lib/types/unit-undo-plan.js
8
8
  /**
@@ -454,8 +454,8 @@ var EvolutionCurator = class EvolutionCurator extends Service {
454
454
  warnings: []
455
455
  };
456
456
  if (candidates.length === 0) return empty;
457
- const llm = this.ctx.get("llm");
458
- if (!llm) {
457
+ const llm = this.ctx.get("evolutionLlm");
458
+ if (llm === void 0 || !llm.available()) {
459
459
  if (!this.llmAbsentWarned) {
460
460
  this.llmAbsentWarned = true;
461
461
  this.ctx.logger.warn("evolution-curator: llmReview is enabled but no llm service is mounted — the LLM nomination channel NEVER runs (every pass degrades to deterministic-only). Mount an llm provider or set llmReview:false.");
@@ -482,10 +482,12 @@ var EvolutionCurator = class EvolutionCurator extends Service {
482
482
  const settings = this.settings();
483
483
  const llmSignal = AbortSignal.timeout(settings.curatorReviewTimeoutMs);
484
484
  try {
485
- const assembler = new BlockAssembler();
486
- for await (const chunk of llm.stream({
487
- provider: this.curatorProvider,
488
- model,
485
+ const parsed = parseCuratorNominations(await llm.text({
486
+ purpose: "evolution-curator",
487
+ route: {
488
+ provider: this.curatorProvider,
489
+ model
490
+ },
489
491
  messages: [createUserMessage({
490
492
  content: [{
491
493
  type: "text",
@@ -499,8 +501,7 @@ var EvolutionCurator = class EvolutionCurator extends Service {
499
501
  })],
500
502
  maxTokens: settings.curatorReviewMaxTokens,
501
503
  signal: llmSignal
502
- })) assembler.push(chunk);
503
- const parsed = parseCuratorNominations(assembler.blocks().filter((block) => block.type === "text").map((block) => block.text).join("\n"));
504
+ }));
504
505
  return {
505
506
  prunings: parsed.prunings.filter((name) => candidates.includes(name)),
506
507
  consolidations: parsed.consolidations.filter((item) => candidates.includes(item.from)),
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.37.0",
4
+ "version": "0.38.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,23 +27,23 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-core": "^0.37.0"
30
+ "@lmzhen/dsh-evolution-core": "^0.38.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.5",
34
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
35
- "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
36
- "@lmzhen/dsh-evolution-io": "^0.37.0",
37
- "@lmzhen/dsh-evolution-state": "^0.37.0"
34
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
35
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
36
+ "@lmzhen/dsh-evolution-io": "^0.38.0",
37
+ "@lmzhen/dsh-evolution-state": "^0.38.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
41
- "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
42
- "@lmzhen/dsh-evolution-core": "^0.37.0",
43
- "@lmzhen/dsh-evolution-io": "^0.37.0",
44
- "@lmzhen/dsh-evolution-state": "^0.37.0"
40
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
41
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
42
+ "@lmzhen/dsh-evolution-core": "^0.38.0",
43
+ "@lmzhen/dsh-evolution-io": "^0.38.0",
44
+ "@lmzhen/dsh-evolution-state": "^0.38.0"
45
45
  },
46
46
  "engines": {
47
- "dsh": ">=0.2.1-rc.2 <0.2.2-0"
47
+ "dsh": ">=0.2.2-rc.0 <0.2.3-0"
48
48
  }
49
49
  }