@lmzhen/dsh-evolution-curator 0.21.0 → 0.22.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 +6 -6
- package/lib/types/index.d.ts +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { randomUUID } from "node:crypto";
|
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { BlockAssembler, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
5
5
|
import z from "@deepseek-ai/schemastery";
|
|
6
|
-
import { CURATOR_DRY_RUN_BANNER, CURATOR_PROMPT, DEFAULT_ARCHIVE_AFTER_DAYS, DEFAULT_CURATOR_BOOT_GRACE_SECONDS, DEFAULT_CURATOR_INTERVAL_HOURS, DEFAULT_CURATOR_MODEL, DEFAULT_CURATOR_REVIEW_MAX_TOKENS, DEFAULT_HEALTH_THRESHOLDS, DEFAULT_MIN_IDLE_HOURS, DEFAULT_SKILL_LIMITS, DEFAULT_STALE_AFTER_DAYS, EvolutionGateSet, INSTANCE_KEYS, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, SKILL_NAME_RE, buildCuratorRunReport, claimInstance, clampOnce, clampedNumber, computeDedupGroups, computeLifecycleTransitions, computePrefixClusters, computeQualityScores, computeScopeView, contentHash, emptyRecord, entryTarget, evolutionHome, evolutionIoAdapter, foldCuratorFields, isPresent, isUnknown, loadSuppressedNames, loadUsage, markerEntryName, mutateUsage, newSkillLibrary, paramRowId, parseCuratorNominations, parseFrontmatter, pickWithPolicy, policyStageLimits, probeList, probeText, readNumberParam, relatedSkillNames, releaseInstance, renderCuratorReportMarkdown, reportTime, reportsSweepLockTarget, sessionLastEventTime, sweepReports, transactIo, updateSuppressedNames, usageObserved, userSetKeys, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
|
|
6
|
+
import { CURATOR_DRY_RUN_BANNER, CURATOR_PROMPT, DEFAULT_ARCHIVE_AFTER_DAYS, DEFAULT_CURATOR_BOOT_GRACE_SECONDS, DEFAULT_CURATOR_INTERVAL_HOURS, DEFAULT_CURATOR_MODEL, DEFAULT_CURATOR_REVIEW_MAX_TOKENS, DEFAULT_HEALTH_THRESHOLDS, DEFAULT_MIN_IDLE_HOURS, DEFAULT_SKILL_LIMITS, DEFAULT_STALE_AFTER_DAYS, EvolutionGateSet, INSTANCE_KEYS, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, SKILL_NAME_RE, buildCuratorRunReport, claimInstance, clampOnce, clampedNumber, computeDedupGroups, computeLifecycleTransitions, computePrefixClusters, computeQualityScores, computeScopeView, contentHash, emptyRecord, entryTarget, evolutionHome, evolutionIoAdapter, foldCuratorFields, isPresent, isUnknown, liveBool, loadSuppressedNames, loadUsage, markerEntryName, mutateUsage, newSkillLibrary, paramRowId, parseCuratorNominations, parseFrontmatter, pickWithPolicy, policyStageLimits, probeList, probeText, readNumberParam, relatedSkillNames, releaseInstance, renderCuratorReportMarkdown, reportTime, reportsSweepLockTarget, sessionLastEventTime, sweepReports, transactIo, unwrapLive, updateSuppressedNames, usageObserved, userSetKeys, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
|
|
7
7
|
//#region lib/types/index.js
|
|
8
8
|
/**
|
|
9
9
|
* Deterministic skill lifecycle curator with interval gate and archive.
|
|
@@ -174,9 +174,9 @@ var EvolutionCurator = class extends Service {
|
|
|
174
174
|
* @param key - the canonical registry id of the field.
|
|
175
175
|
* @returns the current plain value, or undefined when nothing supplied one.
|
|
176
176
|
*/
|
|
177
|
-
|
|
178
|
-
if (key === "curatorIntervalHours") return this.config.curatorIntervalHours
|
|
179
|
-
return this.config[key]
|
|
177
|
+
rowValue(key) {
|
|
178
|
+
if (key === "curatorIntervalHours") return unwrapLive(this.config.curatorIntervalHours) ?? this.config.intervalHours;
|
|
179
|
+
return unwrapLive(this.config[key]);
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* One live numeric row field, clamped and warned once (G3.1).
|
|
@@ -187,7 +187,7 @@ var EvolutionCurator = class extends Service {
|
|
|
187
187
|
* @returns the value the engine may use.
|
|
188
188
|
*/
|
|
189
189
|
rowNumber(key, fallback, min, max) {
|
|
190
|
-
return clampOnce(this.clampedKeys, this.clampWarn, key, this.
|
|
190
|
+
return clampOnce(this.clampedKeys, this.clampWarn, key, this.rowValue(key), fallback, min, max);
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* One DEPLOYMENT numeric row field, clamped and warned once.
|
|
@@ -212,7 +212,7 @@ var EvolutionCurator = class extends Service {
|
|
|
212
212
|
* @returns the current value.
|
|
213
213
|
*/
|
|
214
214
|
rowBoolean(key, fallback) {
|
|
215
|
-
return this.config[key]
|
|
215
|
+
return liveBool(this.config[key], fallback);
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
218
|
* This row's resolved values — the base layer of the precedence chain (G1 §8.3).
|
package/lib/types/index.d.ts
CHANGED
|
@@ -244,7 +244,7 @@ export declare class EvolutionCurator extends Service {
|
|
|
244
244
|
* @param key - the canonical registry id of the field.
|
|
245
245
|
* @returns the current plain value, or undefined when nothing supplied one.
|
|
246
246
|
*/
|
|
247
|
-
private
|
|
247
|
+
private rowValue;
|
|
248
248
|
/**
|
|
249
249
|
* One live numeric row field, clamped and warned once (G3.1).
|
|
250
250
|
* @param key - the canonical registry id of the field.
|
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.22.0",
|
|
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.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.22.0"
|
|
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.
|
|
37
|
-
"@lmzhen/dsh-evolution-state": "^0.
|
|
36
|
+
"@lmzhen/dsh-evolution-io": "^0.22.0",
|
|
37
|
+
"@lmzhen/dsh-evolution-state": "^0.22.0"
|
|
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.
|
|
43
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
44
|
-
"@lmzhen/dsh-evolution-state": "^0.
|
|
42
|
+
"@lmzhen/dsh-evolution-core": "^0.22.0",
|
|
43
|
+
"@lmzhen/dsh-evolution-io": "^0.22.0",
|
|
44
|
+
"@lmzhen/dsh-evolution-state": "^0.22.0"
|
|
45
45
|
}
|
|
46
46
|
}
|