@lmzhen/dsh-evolution-maintenance 0.54.0 → 0.55.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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as snapshotFromLibrary, i as enrichmentSnapshotOptions, n as computeProbe, r as buildEnrichment, t as PROBE_SIGNALS } from "./probe-
|
|
1
|
+
import { a as snapshotFromLibrary, i as enrichmentSnapshotOptions, n as computeProbe, r as buildEnrichment, t as PROBE_SIGNALS } from "./probe-DSp1MrDC.js";
|
|
2
2
|
import { AUTHORING_DESCRIPTION_BAR, DEFAULT_CURATOR_MODEL, DRIFT_MAX_LINE_CHARS, DRIFT_SIGNALS_VERSION, DRIFT_SIGNAL_NOUNS, LOW_QUALITY_THRESHOLD, MAINTAIN_OUTPUT_INSTRUCTION, MAINTAIN_PROMPT, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, PROMPT_BUNDLE_ID, STORE_LEDGER, computeDriftSignals, evolutionHome, findDriftSignal, isRecord, redactSecrets, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { DEFAULT_HEALTH_THRESHOLDS, MIN_STAMP_BODY_CHARS } from "@lmzhen/dsh-evolution-core/skills";
|
|
@@ -444,7 +444,7 @@ function renderMaintainTemplate(template, bundleVersion, signalsVersion, signatu
|
|
|
444
444
|
function thresholdNoun(id) {
|
|
445
445
|
if (id === "stamp_density") return `${DEFAULT_HEALTH_THRESHOLDS.stampDensityPerKb}/KB`;
|
|
446
446
|
if (id === "description_chars") return `${AUTHORING_DESCRIPTION_BAR}`;
|
|
447
|
-
if (id === "body_size") return `${DEFAULT_HEALTH_THRESHOLDS.
|
|
447
|
+
if (id === "body_size") return `${DEFAULT_HEALTH_THRESHOLDS.softBodyTokens}`;
|
|
448
448
|
if (id === "overlong_line") return `${DRIFT_MAX_LINE_CHARS}`;
|
|
449
449
|
return `(阈 ${id})`;
|
|
450
450
|
}
|
|
@@ -456,7 +456,7 @@ function jointSignature(template, signalsVersion) {
|
|
|
456
456
|
thresholds: {
|
|
457
457
|
stampDensityPerKb: DEFAULT_HEALTH_THRESHOLDS.stampDensityPerKb,
|
|
458
458
|
minStampBodyChars: MIN_STAMP_BODY_CHARS,
|
|
459
|
-
|
|
459
|
+
softBodyTokens: DEFAULT_HEALTH_THRESHOLDS.softBodyTokens,
|
|
460
460
|
descriptionChars: AUTHORING_DESCRIPTION_BAR,
|
|
461
461
|
qualityLow: LOW_QUALITY_THRESHOLD,
|
|
462
462
|
maxLineChars: DRIFT_MAX_LINE_CHARS
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computeDedupGroups, computePrefixClusters, duplicateHeadings, graphemeCount, idleDays, isPresent, missingSupportPointers, narrowNameMatches, overlongLines, resolveCitations, retirementReport, truncateGraphemes, usageObserved } from "@lmzhen/dsh-evolution-core";
|
|
2
2
|
import { HEALTH_STAMP_RE, MIN_STAMP_BODY_CHARS, frontmatterCatalogInvalid, parseFrontmatter } from "@lmzhen/dsh-evolution-core/skills";
|
|
3
3
|
//#region lib/types/drift-scan.js
|
|
4
4
|
/**
|
|
@@ -35,7 +35,6 @@ async function snapshotFromLibrary(library, options = {}) {
|
|
|
35
35
|
body,
|
|
36
36
|
description: options.descriptions?.get(entry.name),
|
|
37
37
|
supportFiles,
|
|
38
|
-
cost: bodyCost(body),
|
|
39
38
|
...supportFiles === void 0 ? {} : { citations: resolveCitations({
|
|
40
39
|
content: body,
|
|
41
40
|
file: "SKILL.md",
|
|
@@ -231,8 +230,9 @@ function computeProbe(signal, target, snapshots) {
|
|
|
231
230
|
case "description_chars": {
|
|
232
231
|
const desc = snapshot.description;
|
|
233
232
|
if (desc === void 0) return result(signal, ["description=missing"], target);
|
|
234
|
-
const
|
|
235
|
-
|
|
233
|
+
const length = graphemeCount(desc);
|
|
234
|
+
const text = length > 160 ? `${truncateGraphemes(desc, 160, "")}…(truncated: ${length} total)` : desc;
|
|
235
|
+
return result(signal, [`description=${length} chars`, `desc-text: ${text}`], target);
|
|
236
236
|
}
|
|
237
237
|
case "quality_low": {
|
|
238
238
|
const quality = snapshot.quality;
|
package/lib/tools.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as snapshotFromLibrary, i as enrichmentSnapshotOptions, n as computeProbe, r as buildEnrichment, t as PROBE_SIGNALS } from "./probe-
|
|
1
|
+
import { a as snapshotFromLibrary, i as enrichmentSnapshotOptions, n as computeProbe, r as buildEnrichment, t as PROBE_SIGNALS } from "./probe-DSp1MrDC.js";
|
|
2
2
|
import { DEFAULT_PROBE_TIMEOUT_MS, MAX_TIMER_DELAY_MS, authorityFrom, clampedNumber, mutationLockFrom, redactSecrets } from "@lmzhen/dsh-evolution-core";
|
|
3
3
|
import { assertSkillsRootAliasRetired, newSkillLibrary, resolveRootConfig } from "@lmzhen/dsh-evolution-core/skills";
|
|
4
4
|
import z from "@deepseek-ai/schemastery";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-maintenance",
|
|
3
3
|
"description": "Deterministic maintenance-scan surface: skill-library snapshot assembly, drift signals and mechanical-facts rendering (design 011) (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.55.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
38
|
-
"@lmzhen/dsh-evolution-core": "0.
|
|
38
|
+
"@lmzhen/dsh-evolution-core": "0.55.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@deepseek-ai/cordis": "^4.0.5",
|