@lmzhen/dsh-evolution-curator 0.1.0-rc.30 → 0.1.0-rc.32
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 -0
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -380,6 +380,11 @@ var EvolutionCurator = class extends Service {
|
|
|
380
380
|
if (record && (from === "stale" || from === "active")) record.state = from;
|
|
381
381
|
errors.push(`${name}: ${archived.message}`);
|
|
382
382
|
} else {
|
|
383
|
+
const record = usage.get(name);
|
|
384
|
+
if (record) {
|
|
385
|
+
record.state = "archived";
|
|
386
|
+
record.archived_at = (/* @__PURE__ */ new Date()).toISOString();
|
|
387
|
+
}
|
|
383
388
|
archivedSkills.push({
|
|
384
389
|
name,
|
|
385
390
|
path: archived.path ?? "",
|
|
@@ -425,6 +430,10 @@ var EvolutionCurator = class extends Service {
|
|
|
425
430
|
} catch {
|
|
426
431
|
this.ctx.logger.warn("evolution-curator: failed to persist usage sidecar");
|
|
427
432
|
}
|
|
433
|
+
const usageRegistry = this.ctx.get("skillUsage");
|
|
434
|
+
try {
|
|
435
|
+
await usageRegistry?.invalidate?.();
|
|
436
|
+
} catch {}
|
|
428
437
|
return {
|
|
429
438
|
archivedSkills,
|
|
430
439
|
errors,
|
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.32",
|
|
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.32"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
40
40
|
"@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
|
|
41
41
|
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
|
|
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.32",
|
|
43
|
+
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.32"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
|
|
47
47
|
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
|
|
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.32",
|
|
49
|
+
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.32",
|
|
50
|
+
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.32"
|
|
51
51
|
}
|
|
52
52
|
}
|