@lmzhen/dsh-evolution-curator 0.1.0-rc.62 → 0.1.0-rc.63
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.
- package/lib/index.js +9 -2
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -196,7 +196,7 @@ var EvolutionCurator = class extends Service {
|
|
|
196
196
|
const parsed = parseCuratorNominations(assembler.blocks().filter((block) => block.type === "text").map((block) => block.text).join("\n"));
|
|
197
197
|
return {
|
|
198
198
|
prunings: parsed.prunings.filter((name) => candidates.includes(name)),
|
|
199
|
-
consolidations: parsed.consolidations
|
|
199
|
+
consolidations: parsed.consolidations.filter((item) => candidates.includes(item.from))
|
|
200
200
|
};
|
|
201
201
|
} catch {
|
|
202
202
|
return empty;
|
|
@@ -352,12 +352,14 @@ var EvolutionCurator = class extends Service {
|
|
|
352
352
|
suppressedNames,
|
|
353
353
|
referencedSkillNames: this.referencedSkillNames
|
|
354
354
|
}, /* @__PURE__ */ new Date(), gates);
|
|
355
|
-
const
|
|
355
|
+
const recommendPool = [...new Set([...result.markStale, ...dedupMembers])];
|
|
356
|
+
const nominations = this.llmReview ? await this.recommend(recommendPool, { dryRun }) : {
|
|
356
357
|
prunings: [],
|
|
357
358
|
consolidations: []
|
|
358
359
|
};
|
|
359
360
|
const gatedNominations = {
|
|
360
361
|
...nominations,
|
|
362
|
+
prunings: nominations.prunings.filter((name) => result.markStale.includes(name)),
|
|
361
363
|
consolidations: gateConsolidations(nominations.consolidations, gates)
|
|
362
364
|
};
|
|
363
365
|
const llmNominations = gatedNominations.prunings;
|
|
@@ -371,6 +373,7 @@ var EvolutionCurator = class extends Service {
|
|
|
371
373
|
bundledNames,
|
|
372
374
|
suppressedNames,
|
|
373
375
|
root,
|
|
376
|
+
recommendPool: new Set(recommendPool),
|
|
374
377
|
failedFrom: new Map(result.transitions.filter((t) => t.to === "archived").map((t) => [t.name, t.from]))
|
|
375
378
|
});
|
|
376
379
|
if (!dryRun) this.lastRun = Date.now();
|
|
@@ -527,6 +530,10 @@ var EvolutionCurator = class extends Service {
|
|
|
527
530
|
errors.push(`${nomination.from}: consolidation target or source missing from the skill tree`);
|
|
528
531
|
continue;
|
|
529
532
|
}
|
|
533
|
+
if (!input.recommendPool.has(nomination.from)) {
|
|
534
|
+
errors.push(`${nomination.from}: consolidation nomination outside the candidate pool — refused (advisory text has no executability authority)`);
|
|
535
|
+
continue;
|
|
536
|
+
}
|
|
530
537
|
const consolidated = await this.skills.consolidate(nomination.into, [nomination.from], "background_review");
|
|
531
538
|
if (!consolidated.ok) {
|
|
532
539
|
errors.push(`${nomination.from}: ${consolidated.message}`);
|
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.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.63",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
36
|
-
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.63"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
40
40
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
41
41
|
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
42
|
-
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.
|
|
43
|
-
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.
|
|
42
|
+
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.63",
|
|
43
|
+
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.63"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
47
47
|
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
48
|
-
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.
|
|
49
|
-
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.
|
|
50
|
-
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.
|
|
48
|
+
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.63",
|
|
49
|
+
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.63",
|
|
50
|
+
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.63"
|
|
51
51
|
}
|
|
52
52
|
}
|