@lmzhen/dsh-evolution-curator 0.47.0 → 0.48.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.
- package/lib/index.js +0 -2
- package/lib/types/index.d.ts +8 -23
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -90,7 +90,6 @@ var EvolutionCurator = class extends Service {
|
|
|
90
90
|
root: z.string().default(""),
|
|
91
91
|
enabled: z.boolean().default(true),
|
|
92
92
|
curatorIntervalHours: z.number().min(1).volatile(),
|
|
93
|
-
intervalHours: z.number().min(1),
|
|
94
93
|
staleAfterDays: z.number().min(1).default(DEFAULT_STALE_AFTER_DAYS).volatile(),
|
|
95
94
|
archiveAfterDays: z.number().min(1).default(DEFAULT_ARCHIVE_AFTER_DAYS).volatile(),
|
|
96
95
|
llmReview: z.boolean().default(false).volatile(),
|
|
@@ -232,7 +231,6 @@ var EvolutionCurator = class extends Service {
|
|
|
232
231
|
* @returns the current plain value, or undefined when nothing supplied one.
|
|
233
232
|
*/
|
|
234
233
|
rowValue(key) {
|
|
235
|
-
if (key === "curatorIntervalHours") return unwrapLive(this.config.curatorIntervalHours) ?? this.config.intervalHours;
|
|
236
234
|
return unwrapLive(this.config[key]);
|
|
237
235
|
}
|
|
238
236
|
/**
|
package/lib/types/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { type CuratorConsolidation, type CuratorNominations, type CuratorRunRepo
|
|
|
19
19
|
import { type SkillHealthVerdict } from '@lmzhen/dsh-evolution-core/skills';
|
|
20
20
|
import { type SkillActionResult } from '@lmzhen/dsh-evolution-core/skills';
|
|
21
21
|
import type { SkillVersion } from '@lmzhen/dsh-evolution-core/skills';
|
|
22
|
+
import type { SkillHealthAssessment } from '@lmzhen/dsh-evolution-core/skills';
|
|
22
23
|
import type { CuratorStateRecord } from '@lmzhen/dsh-evolution-state';
|
|
23
24
|
/** B-10 (v18): the optional LLM nomination pass gets its own timeout so a
|
|
24
25
|
* hung/unresponsive provider cannot hold the control-plane mutex forever
|
|
@@ -32,13 +33,9 @@ declare module '@deepseek-ai/cordis' {
|
|
|
32
33
|
}
|
|
33
34
|
export interface Config {
|
|
34
35
|
enabled?: boolean;
|
|
35
|
-
/** Canonical registry id for the due-ness interval
|
|
36
|
+
/** Canonical registry id for the due-ness interval. G0/S0.3: the legacy alias
|
|
37
|
+
* `intervalHours` is migration/doctor input only; live rows use `curatorIntervalHours`. */
|
|
36
38
|
curatorIntervalHours?: Volatile<number | undefined>;
|
|
37
|
-
/** The due-ness interval. The policy snapshot shadows it in every shipped
|
|
38
|
-
* composition — configure `curatorIntervalHours` there; that name is the
|
|
39
|
-
* canonical id. Deprecated alias (G0/S0.3): still readable, refused by
|
|
40
|
-
* writes; removal was planned for 0.7.0 and is deferred (the alias still ships — see the package README). */
|
|
41
|
-
intervalHours?: number;
|
|
42
39
|
staleAfterDays?: Volatile<number>;
|
|
43
40
|
archiveAfterDays?: Volatile<number>;
|
|
44
41
|
/** Skill-tree root for curator scope/snapshot/archive (D2, v11) — a custom
|
|
@@ -167,7 +164,6 @@ export declare class EvolutionCurator extends Service {
|
|
|
167
164
|
root: z<string, string, "defined">;
|
|
168
165
|
enabled: z<boolean, boolean, "defined">;
|
|
169
166
|
curatorIntervalHours: z<number, number, "volatile">;
|
|
170
|
-
intervalHours: z<number, number, "plain">;
|
|
171
167
|
staleAfterDays: z<number, number, "volatile-defined">;
|
|
172
168
|
archiveAfterDays: z<number, number, "volatile-defined">;
|
|
173
169
|
llmReview: z<boolean, boolean, "volatile-defined">;
|
|
@@ -190,7 +186,6 @@ export declare class EvolutionCurator extends Service {
|
|
|
190
186
|
root: z<string, string, "defined">;
|
|
191
187
|
enabled: z<boolean, boolean, "defined">;
|
|
192
188
|
curatorIntervalHours: z<number, number, "volatile">;
|
|
193
|
-
intervalHours: z<number, number, "plain">;
|
|
194
189
|
staleAfterDays: z<number, number, "volatile-defined">;
|
|
195
190
|
archiveAfterDays: z<number, number, "volatile-defined">;
|
|
196
191
|
llmReview: z<boolean, boolean, "volatile-defined">;
|
|
@@ -518,22 +513,12 @@ export declare class EvolutionCurator extends Service {
|
|
|
518
513
|
healthView(): Promise<Array<{
|
|
519
514
|
name: string;
|
|
520
515
|
verdict: SkillHealthVerdict;
|
|
521
|
-
dims: {
|
|
522
|
-
bodyChars: number | null;
|
|
523
|
-
bodyTokens: number | null;
|
|
524
|
-
|
|
525
|
-
supportGroups: number;
|
|
526
|
-
supportFiles: number | null;
|
|
527
|
-
churnPatches: number | null;
|
|
528
|
-
churnReads: number | null;
|
|
529
|
-
readable?: boolean;
|
|
516
|
+
dims: Omit<Pick<SkillHealthAssessment['dims'], 'bodyChars' | 'bodyTokens' | 'stampDensityPerKb' | 'supportGroups' | 'supportFiles' | 'churnPatches' | 'churnReads'>, 'bodyChars' | 'bodyTokens'> & {
|
|
517
|
+
readonly bodyChars: number | null;
|
|
518
|
+
readonly bodyTokens: number | null;
|
|
519
|
+
readonly readable?: boolean;
|
|
530
520
|
};
|
|
531
|
-
findings:
|
|
532
|
-
severity: 'warn' | 'error';
|
|
533
|
-
rule: string;
|
|
534
|
-
message: string;
|
|
535
|
-
count: number;
|
|
536
|
-
}>;
|
|
521
|
+
findings: SkillHealthAssessment['findings'];
|
|
537
522
|
hardCapHits?: number | null;
|
|
538
523
|
protection?: string | null;
|
|
539
524
|
}>>;
|
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.
|
|
4
|
+
"version": "0.48.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
32
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
32
|
+
"@lmzhen/dsh-evolution-core": "^0.48.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
36
36
|
"@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
|
|
37
37
|
"@deepseek-ai/dsh-session": "^0.2.2-rc.0",
|
|
38
|
-
"@lmzhen/dsh-evolution-state": "^0.
|
|
38
|
+
"@lmzhen/dsh-evolution-state": "^0.48.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
|
|
42
42
|
"@deepseek-ai/dsh-session": "^0.2.2-rc.0",
|
|
43
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
44
|
-
"@lmzhen/dsh-evolution-state": "^0.
|
|
43
|
+
"@lmzhen/dsh-evolution-core": "^0.48.0",
|
|
44
|
+
"@lmzhen/dsh-evolution-state": "^0.48.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"dsh": ">=0.2.2-rc.0 <0.2.3-0"
|