@lmzhen/dsh-evolution-curator 0.49.0 → 0.51.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 -9
- package/lib/types/index.d.ts +0 -4
- package/package.json +10 -10
package/lib/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { createUserMessage, settingsPort } from "@lmzhen/dsh-evolution-core/platform";
|
|
1
2
|
import { Service } from "@deepseek-ai/cordis";
|
|
2
|
-
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_MIN_IDLE_HOURS, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_SKILL_LIMITS, DEFAULT_STALE_AFTER_DAYS,
|
|
3
|
+
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_MIN_IDLE_HOURS, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_SKILL_LIMITS, DEFAULT_STALE_AFTER_DAYS, EvolutionGateSet, HomeAuthority, INSTANCE_KEYS, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, SKILL_NAME_RE, authorityFrom, buildCuratorRunReport, claimInstance, clampOnce, clampedNumber, computeDedupGroups, computeLifecycleTransitions, computePrefixClusters, computeQualityScores, computeScopeView, contentHash, emptyRecord, eventsFile, evolutionHome, evolutionIoAdapter, foldCuratorFields, isPresent, isUnknown, liveBool, loadSuppressedNames, loadUsage, mutateUsage, paramRowId, parseCuratorNominations, pickWithPolicy, policyStageLimits, probeList, probeText, readEvolutionEvents, readNumberParam, releaseInstance, renderCuratorReportMarkdown, reportTime, reportsSweepLockTarget, sessionLastEventTime, sweepReports, transactIo, unwrapLive, updateSuppressedNames, usageObserved, userSetKeys, verifyPromptBundle, withTreeWrite, writeProposalReport } from "@lmzhen/dsh-evolution-core";
|
|
3
4
|
import { randomUUID } from "node:crypto";
|
|
4
5
|
import { dirname, join } from "node:path";
|
|
5
|
-
import { createUserMessage } from "@lmzhen/dsh-evolution-core/platform";
|
|
6
6
|
import z from "@deepseek-ai/schemastery";
|
|
7
7
|
import { DEFAULT_HEALTH_THRESHOLDS, blobPath, entryTarget, historyIndexFile, lintSkill, markerEntryName, newSkillLibrary, parseFrontmatter, parseHistoryIndex, relatedSkillNames } from "@lmzhen/dsh-evolution-core/skills";
|
|
8
|
+
import { EXTRACT_PROMPT_HASH } from "@lmzhen/dsh-evolution-core/extract";
|
|
8
9
|
import { executeUnitUndo, planUnitUndoAcross, resolveUnitMembers, staleRouteStubs, unitMembersAreComplete } from "@lmzhen/dsh-evolution-core/write";
|
|
9
10
|
//#region lib/types/unit-undo-plan.js
|
|
10
11
|
/** The newest unit the index carries, or undefined when no entry has a unit id yet. */
|
|
@@ -39,10 +40,6 @@ function planUnitUndo(members, _versions) {
|
|
|
39
40
|
}
|
|
40
41
|
//#endregion
|
|
41
42
|
//#region lib/types/index.js
|
|
42
|
-
/**
|
|
43
|
-
* Deterministic skill lifecycle curator with interval gate and archive.
|
|
44
|
-
* @module @lmzhen/dsh-evolution-curator
|
|
45
|
-
*/
|
|
46
43
|
/** Quality-warned skills may turn stale after this many idle days (package-private tunable, P2-8). */
|
|
47
44
|
const DEFAULT_QUALITY_WARN_STALE_AFTER_DAYS = 7;
|
|
48
45
|
/**
|
|
@@ -169,8 +166,8 @@ var EvolutionCurator = class extends Service {
|
|
|
169
166
|
constructor(ctx, config = {}) {
|
|
170
167
|
super(ctx, "evolutionCurator");
|
|
171
168
|
ctx.inject(["settings"], (injected) => {
|
|
172
|
-
const settings = injected
|
|
173
|
-
if (
|
|
169
|
+
const settings = settingsPort(injected);
|
|
170
|
+
if (settings?.configure === void 0) return;
|
|
174
171
|
const disposer = settings.configure({ auto: false }, ctx.fiber);
|
|
175
172
|
if (typeof disposer === "function") ctx.effect(() => disposer, "evolution-curator: settings presentation");
|
|
176
173
|
});
|
|
@@ -1187,7 +1184,7 @@ var EvolutionCurator = class extends Service {
|
|
|
1187
1184
|
}
|
|
1188
1185
|
recentSessionActive() {
|
|
1189
1186
|
const settings = this.settings();
|
|
1190
|
-
const agents = this.ctx.get("
|
|
1187
|
+
const agents = this.ctx.get("evolutionPlatform")?.ports?.agents;
|
|
1191
1188
|
if (!agents) return !settings.minIdleFailOpen;
|
|
1192
1189
|
let latest = 0;
|
|
1193
1190
|
let measured = 0;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deterministic skill lifecycle curator with interval gate and archive.
|
|
3
|
-
* @module @lmzhen/dsh-evolution-curator
|
|
4
|
-
*/
|
|
5
1
|
import { Context, Service } from '@deepseek-ai/cordis';
|
|
6
2
|
import type { Volatile } from '@deepseek-ai/cordis';
|
|
7
3
|
import type { ContextFormed } from '@lmzhen/dsh-evolution-core/platform';
|
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.51.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,21 +29,21 @@
|
|
|
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.51.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
36
|
-
"@deepseek-ai/dsh-llm": "^0.2.2-rc.
|
|
37
|
-
"@deepseek-ai/dsh-session": "^0.2.2-rc.
|
|
38
|
-
"@lmzhen/dsh-evolution-state": "^0.
|
|
36
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.3",
|
|
37
|
+
"@deepseek-ai/dsh-session": "^0.2.2-rc.3",
|
|
38
|
+
"@lmzhen/dsh-evolution-state": "^0.51.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@deepseek-ai/dsh-llm": "^0.2.2-rc.
|
|
42
|
-
"@deepseek-ai/dsh-session": "^0.2.2-rc.
|
|
43
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
44
|
-
"@lmzhen/dsh-evolution-state": "^0.
|
|
41
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.3",
|
|
42
|
+
"@deepseek-ai/dsh-session": "^0.2.2-rc.3",
|
|
43
|
+
"@lmzhen/dsh-evolution-core": "^0.51.0",
|
|
44
|
+
"@lmzhen/dsh-evolution-state": "^0.51.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"dsh": ">=0.2.2-rc.
|
|
47
|
+
"dsh": ">=0.2.2-rc.3 <0.2.3-0"
|
|
48
48
|
}
|
|
49
49
|
}
|