@lmzhen/dsh-evolution-core 0.55.0 → 0.55.1
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/{extract-plan-ihQznLVT.js → extract-plan-BxDhKSki.js} +2 -2
- package/lib/extract.js +4 -4
- package/lib/index.js +42 -7
- package/lib/{limits-DBg3UMkw.js → limits-CO4JGSJL.js} +10 -1
- package/lib/{mutation-storage-adapter-BM7mIJKp.js → mutation-storage-adapter-7R3ra0wj.js} +1 -1
- package/lib/{mutations-1wLISSrY.js → mutations-mvTnWkua.js} +1 -1
- package/lib/policy.js +1 -1
- package/lib/{quality-DNUVRbUm.js → quality-CREp6s1G.js} +1 -1
- package/lib/{review-context-CXKwGGd8.js → review-context-70XYS11J.js} +1 -1
- package/lib/{skill-history-B-DyIedq.js → skill-history-YX84wO20.js} +4 -3
- package/lib/skills.js +11 -10
- package/lib/types/constants.d.ts +9 -0
- package/lib/types/constants.js +9 -0
- package/lib/types/skill-history.js +2 -1
- package/lib/types/skill-stats.js +5 -3
- package/lib/types/text-budgets.d.ts +35 -0
- package/lib/types/text-budgets.js +6 -1
- package/lib/{usage-e34VZPmK.js → usage-DrczLTP4.js} +1 -1
- package/lib/write.js +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as planReferenceRewrite, L as planRehoming, M as externalRefs, N as supportRefs, O as selectSections, P as applyReferenceRewrite } from "./usage-
|
|
2
|
-
import { u as frontmatterBlock } from "./mutations-
|
|
1
|
+
import { I as planReferenceRewrite, L as planRehoming, M as externalRefs, N as supportRefs, O as selectSections, P as applyReferenceRewrite } from "./usage-DrczLTP4.js";
|
|
2
|
+
import { u as frontmatterBlock } from "./mutations-mvTnWkua.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
//#region lib/types/extract-plan.js
|
|
5
5
|
const LF = String.fromCharCode(10);
|
package/lib/extract.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { p as isPresent } from "./io-GxghO3Ip.js";
|
|
2
|
-
import { i as DEFAULT_SKILL_LIMITS } from "./limits-
|
|
2
|
+
import { i as DEFAULT_SKILL_LIMITS } from "./limits-CO4JGSJL.js";
|
|
3
3
|
import { a as measureUnit } from "./text-metrics-CyJhxWBs.js";
|
|
4
|
-
import { p as parseFrontmatter, r as contentHash } from "./mutations-
|
|
5
|
-
import { C as EXTRACT_PROMPT_VERSION, S as EXTRACT_PROMPT_V1, T as ownerCandidatesFromSummaries, _ as readProposalReport, b as proposalFromPlan, d as nearDuplicateSummaries, m as readExternalSupport, v as readProposalReports, w as findOwnerCandidate, x as EXTRACT_PROMPT_HASH, y as writeProposalReport } from "./quality-
|
|
6
|
-
import { n as projectExtractBodies, t as planExtract } from "./extract-plan-
|
|
4
|
+
import { p as parseFrontmatter, r as contentHash } from "./mutations-mvTnWkua.js";
|
|
5
|
+
import { C as EXTRACT_PROMPT_VERSION, S as EXTRACT_PROMPT_V1, T as ownerCandidatesFromSummaries, _ as readProposalReport, b as proposalFromPlan, d as nearDuplicateSummaries, m as readExternalSupport, v as readProposalReports, w as findOwnerCandidate, x as EXTRACT_PROMPT_HASH, y as writeProposalReport } from "./quality-CREp6s1G.js";
|
|
6
|
+
import { n as projectExtractBodies, t as planExtract } from "./extract-plan-BxDhKSki.js";
|
|
7
7
|
import { dirname, join } from "node:path";
|
|
8
8
|
//#region lib/types/extract-request.js
|
|
9
9
|
/** The one human-readable owner decision shared by tool and CLI. */
|
package/lib/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { S as reportTime, _ as probeMtime, a as isProcessAlive, b as probeText, c as transactIo, d as isAbsent, f as isMissingPath, g as probeList, h as probeAbsent, i as isCommittedWarning, l as writeDurableTmp, m as isUnknown, n as atomicWriteFiles, o as nodeEvolutionIo, p as isPresent, r as evolutionIoAdapter, s as renameWithRetry, t as TransactionNotInvokedError, u as declaredReportStamp, v as probePresent, x as probeUnknown, y as probeReason } from "./io-GxghO3Ip.js";
|
|
2
2
|
import { a as leaseFile, c as AuthorityBusyError, d as HomeAuthority, f as authorityHolder, i as LeaseStore, l as AuthorityOrderError, n as mutationLockFrom, o as HomeFence, p as leaseAsTreeLock, r as DEFAULT_LEASE_TTL_MS, s as HomeFenceError, t as MutationAuthority, u as AuthorityReentryError } from "./mutation-authority-DQfpXs1O.js";
|
|
3
3
|
import { a as isFileShapedPath, i as KEEP_LINE_RE, n as DEFAULT_CITATION_REF_BUDGET, o as resolveCitations, r as HOOK_LINE_RE, s as scanBodyHooks, t as CITATION_SUPPORT_DIRS } from "./citations-CZKTUGQF.js";
|
|
4
|
-
import { A as DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, B as MAX_SKILL_CONTENT_CHARS, C as DEFAULT_REVIEW_TIMEOUT_MS, D as DEFAULT_SKILL_VERSION_KEEP, E as DEFAULT_SKILL_REVIEW_TRIGGER, F as DEFAULT_USER_TOKENS, G as
|
|
4
|
+
import { $ as SUPPORT_SPRAWL_FILES, A as DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, B as MAX_SKILL_CONTENT_CHARS, C as DEFAULT_REVIEW_TIMEOUT_MS, D as DEFAULT_SKILL_VERSION_KEEP, E as DEFAULT_SKILL_REVIEW_TRIGGER, F as DEFAULT_USER_TOKENS, G as MEMORY_GUIDANCE_SECTION_ORDER, H as MAX_SKILL_NAME_LENGTH, I as ENTRY_DELIMITER, J as REVIEW_TEXT_PREVIEW_GRAPHEMES, K as MERGE_BODY_PREVIEW_BYTES, L as EVOLUTION_WRITE_TOOLS, M as DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, N as DEFAULT_THREAT_MAX_SCAN_CHARS, O as DEFAULT_SOFT_BODY_TOKENS, P as DEFAULT_USER_CHAR_LIMIT, Q as SUPPORT_DIRS, R as FORBIDDEN_CONTROL_KEYS, S as DEFAULT_REVIEW_SKILL_INTERVAL, T as DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, U as MAX_TIMER_DELAY_MS, V as MAX_SKILL_FILE_BYTES, W as MEMORY_ENTRY_PREVIEW_GRAPHEMES, X as SKILL_ACTION_REQUIRED_FIELDS, Y as SKILLS_GUIDANCE_SECTION_ORDER, Z as SKILL_NAME_RE, _ as DEFAULT_MEMORY_CHAR_LIMIT, a as DEFAULT_SUPPORT_FILE_CHAR_POLICY, b as DEFAULT_PROBE_TIMEOUT_MS, c as AUTHORING_DESCRIPTION_BAR, d as DEFAULT_ARCHIVE_AFTER_DAYS, et as TEXT_DIFF_MAX_GRAPHEMES, f as DEFAULT_CONSOLIDATION_FAILURES, g as DEFAULT_CURATOR_REVIEW_MAX_TOKENS, h as DEFAULT_CURATOR_MODEL, i as DEFAULT_SKILL_LIMITS, j as DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, k as DEFAULT_STALE_AFTER_DAYS, l as AUTHORING_SPLIT_LINE_CHARS, m as DEFAULT_CURATOR_INTERVAL_HOURS, n as DEFAULT_CITATION_POLICY, nt as VERSION_BODY_PREVIEW_GRAPHEMES, o as POLICY_STAGE_DEFAULTS, p as DEFAULT_CURATOR_BOOT_GRACE_SECONDS, q as PROTECTED_BUILTIN_SKILLS, r as DEFAULT_REFERENCE_REWRITE_POLICY, s as policyStageLimits, t as DEFAULT_ARCHIVE_RETENTION_POLICY, tt as UPSTREAM_LIMIT_CHARS_PER_TOKEN, u as CONTENT_SPLIT_HINT, v as DEFAULT_MEMORY_TOKENS, w as DEFAULT_SKILL_CONTENT_CHARS, x as DEFAULT_REVIEW_MEMORY_INTERVAL, y as DEFAULT_MIN_IDLE_HOURS, z as MAX_DESCRIPTION_LENGTH } from "./limits-CO4JGSJL.js";
|
|
5
5
|
import { _ as scopedPackageName, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, g as scopeOfNearestManifest, l as MAINTAINER_PRESET_ID, p as REVIEWER_PRESET_ID, s as EVOLUTION_PRESET_IDS, u as RESTRICTED_PRESET_DISPLAY } from "./ensure-BLmEW0Ju.js";
|
|
6
|
-
import { A as retainEventArchives, C as appendEvolutionEvent, D as parseEvolutionEvents, E as listEventArchives, G as DEFAULT_WRITE_CONFIRM_MODE, H as isUnreadWrite, I as softBodyTokenBudget, K as DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS, L as RULES, O as readEvolutionEvents, P as assessStructureHealth, S as EVENT_LOG_VERSION, T as evolutionEventPayloadIssue, _ as fuzzyPatch, a as isReviewChannelSession, b as EVENT_LOG_RETAIN_ARCHIVES, c as PATTERN_OVERLAP, d as scanContentThreats, f as scanMemoryThreats, g as FUZZY_MAX_WORK, h as FUZZY_MAX_PATTERN_CHARS, i as clearReviewChannel, j as DEFAULT_HEALTH_THRESHOLDS, k as readEvolutionTimeline, l as THREAT_EXEMPTION_HINT, m as makeSerialQueue, n as recordReviewRead, o as markReviewChannel, p as scanThreats, q as authorityFrom, r as withReviewContext, s as sweepReviewChannelSessions, t as currentReviewContext, u as evaluateThreat, v as trimPatternBoundaries, w as eventsFile, x as EVENT_LOG_ROTATE_AT, y as EVENT_ARCHIVE_PREFIX, z as lintSkill } from "./review-context-
|
|
6
|
+
import { A as retainEventArchives, C as appendEvolutionEvent, D as parseEvolutionEvents, E as listEventArchives, G as DEFAULT_WRITE_CONFIRM_MODE, H as isUnreadWrite, I as softBodyTokenBudget, K as DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS, L as RULES, O as readEvolutionEvents, P as assessStructureHealth, S as EVENT_LOG_VERSION, T as evolutionEventPayloadIssue, _ as fuzzyPatch, a as isReviewChannelSession, b as EVENT_LOG_RETAIN_ARCHIVES, c as PATTERN_OVERLAP, d as scanContentThreats, f as scanMemoryThreats, g as FUZZY_MAX_WORK, h as FUZZY_MAX_PATTERN_CHARS, i as clearReviewChannel, j as DEFAULT_HEALTH_THRESHOLDS, k as readEvolutionTimeline, l as THREAT_EXEMPTION_HINT, m as makeSerialQueue, n as recordReviewRead, o as markReviewChannel, p as scanThreats, q as authorityFrom, r as withReviewContext, s as sweepReviewChannelSessions, t as currentReviewContext, u as evaluateThreat, v as trimPatternBoundaries, w as eventsFile, x as EVENT_LOG_ROTATE_AT, y as EVENT_ARCHIVE_PREFIX, z as lintSkill } from "./review-context-70XYS11J.js";
|
|
7
7
|
import { i as HOST_LOCALES, n as errorText, r as errorTextIn, t as EVOLUTION_ERRORS } from "./errors-BxzLTVbS.js";
|
|
8
8
|
import { A as dispatchKeyOf, C as PTC_DISPATCH_EVENT, D as assertDispatchPayload, E as ToolDispatchPayloadError, F as isSkillToolName, I as readDispatchSignal, L as skillReadNameOf, M as dispatchStepOf, N as foldToolDispatches, O as collectReadSkillNames, P as isSkillReadToolName, R as supportFileReadFromPath, S as NATIVE_RESULT_EVENT, T as ToolDispatchNormalizer, _ as isBookkeepingFrame, a as evolutionSignalsProjection, b as MODEL_SESSION_EVENT_TYPES, c as sessionLastEventTime, d as advanceReview, f as foldTurnEvent, g as evidenceKindIndex, h as observeEvent, i as evolutionReadsProjection, j as dispatchPathOf, k as collectReadSupportFiles, l as sessionReadNames, m as initialTurnFold, n as evolutionEvidenceProjection, o as isProjectableSession, p as foldTurnEvents, r as evolutionProjectionHistoryProjection, s as sessionEvidenceIndex, t as evolutionActivityProjection, u as sessionTurnSignals, v as DEFAULT_SUPPORT_READ_TOOL_NAMES, w as PTC_DISPATCH_START_EVENT, x as NATIVE_CALL_EVENT, y as DISPATCH_EVENT_TYPES, z as supportFileReadOf } from "./session-projection-CbIKvDfJ.js";
|
|
9
9
|
import { a as measureUnit, i as measureText, n as conservativeTokenEstimator, o as truncateGraphemes, r as graphemeCount, s as utf8ByteLength, t as codePointCount } from "./text-metrics-CyJhxWBs.js";
|
|
10
|
-
import { A as h2Sections, C as saveUsage, D as usageObserved, E as usageFile, F as describeReferenceRewrite, I as planReferenceRewrite, L as planRehoming, M as externalRefs, N as supportRefs, O as selectSections, P as applyReferenceRewrite, S as saveSuppressedNames, T as updateSuppressedNames, _ as loadUsage, a as applyCuratorMetaFields, b as normalizeUsageRecord, c as bumpUse, d as emptyRecord, f as foldCuratorFields, g as loadSuppressedNames, h as latestActivityAt, i as applyCuratorLifecycleFields, j as readingStats, k as displayBodyOf, l as bumpView, m as idleDays, n as SUPPRESSED_FILE_VERSION, o as bumpPatch, p as getRecord, r as VIEW_WINDOW_DAYS, s as bumpSupportRead, t as MAX_SUPPORT_READ_PATHS, u as daysSinceIso, v as markAgentCreated, w as suppressedFile, x as recentViewCount, y as mutateUsage } from "./usage-
|
|
10
|
+
import { A as h2Sections, C as saveUsage, D as usageObserved, E as usageFile, F as describeReferenceRewrite, I as planReferenceRewrite, L as planRehoming, M as externalRefs, N as supportRefs, O as selectSections, P as applyReferenceRewrite, S as saveSuppressedNames, T as updateSuppressedNames, _ as loadUsage, a as applyCuratorMetaFields, b as normalizeUsageRecord, c as bumpUse, d as emptyRecord, f as foldCuratorFields, g as loadSuppressedNames, h as latestActivityAt, i as applyCuratorLifecycleFields, j as readingStats, k as displayBodyOf, l as bumpView, m as idleDays, n as SUPPRESSED_FILE_VERSION, o as bumpPatch, p as getRecord, r as VIEW_WINDOW_DAYS, s as bumpSupportRead, t as MAX_SUPPORT_READ_PATHS, u as daysSinceIso, v as markAgentCreated, w as suppressedFile, x as recentViewCount, y as mutateUsage } from "./usage-DrczLTP4.js";
|
|
11
11
|
import { n as isRecord, t as asRecord } from "./guards-3f02mnf2.js";
|
|
12
|
-
import { a as mutationsFile, i as loadMutations, n as MUTATIONS_FILE_VERSION, o as recordMutation, r as contentHash, t as DEFAULT_MUTATION_CAP } from "./mutations-
|
|
13
|
-
import { T as ownerCandidatesFromSummaries, _ as readProposalReport, a as SUMMARY_DUPLICATE_HINT_THRESHOLD, b as proposalFromPlan, c as computePrefixClusters, d as nearDuplicateSummaries, f as projectionText, g as proposalReportName, h as proposalReportDir, i as QUALITY_WEIGHTS, l as computeQualityScores, m as readExternalSupport, n as DEDUP_SIMILARITY_THRESHOLD, o as affinity, p as vocabulary, r as LOW_QUALITY_THRESHOLD, s as computeDedupGroups, t as DEDUP_MAX_PAIR_COMPARISONS, u as identity, v as readProposalReports, w as findOwnerCandidate, y as writeProposalReport } from "./quality-
|
|
12
|
+
import { a as mutationsFile, i as loadMutations, n as MUTATIONS_FILE_VERSION, o as recordMutation, r as contentHash, t as DEFAULT_MUTATION_CAP } from "./mutations-mvTnWkua.js";
|
|
13
|
+
import { T as ownerCandidatesFromSummaries, _ as readProposalReport, a as SUMMARY_DUPLICATE_HINT_THRESHOLD, b as proposalFromPlan, c as computePrefixClusters, d as nearDuplicateSummaries, f as projectionText, g as proposalReportName, h as proposalReportDir, i as QUALITY_WEIGHTS, l as computeQualityScores, m as readExternalSupport, n as DEDUP_SIMILARITY_THRESHOLD, o as affinity, p as vocabulary, r as LOW_QUALITY_THRESHOLD, s as computeDedupGroups, t as DEDUP_MAX_PAIR_COMPARISONS, u as identity, v as readProposalReports, w as findOwnerCandidate, y as writeProposalReport } from "./quality-CREp6s1G.js";
|
|
14
14
|
import { n as evolutionRoot, t as evolutionHome } from "./state-store-Jpa-iYIZ.js";
|
|
15
|
-
import "./skill-history-
|
|
15
|
+
import "./skill-history-YX84wO20.js";
|
|
16
16
|
import { HOST_ROUTES, MAX_REQUEST_BODY_BYTES, hostSurface, json, methodNotAllowed, readJsonObject, registerHostRoutes } from "./http-routes.js";
|
|
17
17
|
import { w as allowRowCollisions } from "./composition-CtNbVHq3.js";
|
|
18
18
|
import { t as clampedNumber } from "./numeric-Dc53KQoe.js";
|
|
@@ -688,6 +688,41 @@ const TEXT_BUDGETS = {
|
|
|
688
688
|
limit: 200,
|
|
689
689
|
severity: "report"
|
|
690
690
|
},
|
|
691
|
+
diffWindow: {
|
|
692
|
+
id: "history.diff-window",
|
|
693
|
+
axis: "display",
|
|
694
|
+
unit: "graphemes",
|
|
695
|
+
limit: TEXT_DIFF_MAX_GRAPHEMES,
|
|
696
|
+
severity: "report"
|
|
697
|
+
},
|
|
698
|
+
reviewPreview: {
|
|
699
|
+
id: "history.review-preview",
|
|
700
|
+
axis: "display",
|
|
701
|
+
unit: "graphemes",
|
|
702
|
+
limit: REVIEW_TEXT_PREVIEW_GRAPHEMES,
|
|
703
|
+
severity: "report"
|
|
704
|
+
},
|
|
705
|
+
memoryPreview: {
|
|
706
|
+
id: "memory.entry-preview",
|
|
707
|
+
axis: "display",
|
|
708
|
+
unit: "graphemes",
|
|
709
|
+
limit: 200,
|
|
710
|
+
severity: "report"
|
|
711
|
+
},
|
|
712
|
+
versionBodyPreview: {
|
|
713
|
+
id: "history.body-preview",
|
|
714
|
+
axis: "display",
|
|
715
|
+
unit: "graphemes",
|
|
716
|
+
limit: VERSION_BODY_PREVIEW_GRAPHEMES,
|
|
717
|
+
severity: "report"
|
|
718
|
+
},
|
|
719
|
+
mergeBodyPreview: {
|
|
720
|
+
id: "merge.body-preview",
|
|
721
|
+
axis: "display",
|
|
722
|
+
unit: "utf8Bytes",
|
|
723
|
+
limit: MERGE_BODY_PREVIEW_BYTES,
|
|
724
|
+
severity: "report"
|
|
725
|
+
},
|
|
691
726
|
bodySoft: {
|
|
692
727
|
id: "skill.body.soft",
|
|
693
728
|
axis: "context",
|
|
@@ -5520,4 +5555,4 @@ function classifySessionEvent(event) {
|
|
|
5520
5555
|
return MODEL_EVENT_TYPES.has(type) ? "model" : "unknown";
|
|
5521
5556
|
}
|
|
5522
5557
|
//#endregion
|
|
5523
|
-
export { AUTHORING_DESCRIPTION_BAR, AUTHORING_SPLIT_LINE_CHARS, AuthorityBusyError, AuthorityOrderError, AuthorityReentryError, CITATION_SUPPORT_DIRS, COMBINED_REVIEW_PROMPT, COMPLETION_SKILL_REVIEW_PROMPT, CONTENT_SPLIT_HINT, CURATOR_DRY_RUN_BANNER, CURATOR_PROMPT, DEDUP_MAX_PAIR_COMPARISONS, DEDUP_SIMILARITY_THRESHOLD, DEFAULT_ARCHIVE_AFTER_DAYS, DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, DEFAULT_CITATION_REF_BUDGET, DEFAULT_CONSOLIDATION_FAILURES, DEFAULT_CURATOR_BOOT_GRACE_SECONDS, DEFAULT_CURATOR_INTERVAL_HOURS, DEFAULT_CURATOR_MODEL, DEFAULT_CURATOR_REVIEW_MAX_TOKENS, DEFAULT_LEASE_TTL_MS, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_MEMORY_TOKENS, DEFAULT_MIN_IDLE_HOURS, DEFAULT_MUTATION_CAP, DEFAULT_PROBE_TIMEOUT_MS, DEFAULT_REFERENCE_REWRITE_POLICY, DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_RUN_RECORDS, DEFAULT_SKILL_CONTENT_CHARS, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, DEFAULT_SKILL_REVIEW_TRIGGER, DEFAULT_SKILL_VERSION_KEEP, DEFAULT_SOFT_BODY_TOKENS, DEFAULT_STALE_AFTER_DAYS, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, DEFAULT_SUPPORT_FILE_CHAR_POLICY, DEFAULT_SUPPORT_READ_TOOL_NAMES, DEFAULT_THREAT_MAX_SCAN_CHARS, DEFAULT_USER_CHAR_LIMIT, DEFAULT_USER_TOKENS, DEFAULT_WRITE_CONFIRM_MODE, DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS, DIAGNOSTICS_FACT_KEYS, DIAGNOSTICS_RUNTIME_KEYS, DIAGNOSTICS_VIEW_SCHEMA_VERSION, DISPATCH_EVENT_TYPES, DRIFT_MAX_LINE_CHARS, DRIFT_SIGNALS_VERSION, DRIFT_SIGNAL_NOUNS, DSH_AUTHORING_STANDARDS, ENTRY_DELIMITER, EVENT_ARCHIVE_PREFIX, EVENT_LOG_RETAIN_ARCHIVES, EVENT_LOG_ROTATE_AT, EVENT_LOG_VERSION, EVOLUTION_ERRORS, EVOLUTION_PRESET_IDS, EVOLUTION_WRITE_TOOLS, EvolutionGateSet, FAMILY_SESSION_TOOL_NAMES, FORBIDDEN_CONTROL_KEYS, FUZZY_MAX_PATTERN_CHARS, FUZZY_MAX_WORK, GOVERNANCE_PROMPT_TEMPLATE, HOOK_LINE_RE, HOST_LOCALES, HOST_ROUTES, HomeAuthority, HomeFence, HomeFenceError, INJECT_COMBINED_REVIEW_PROMPT, INJECT_COMPLETION_SKILL_REVIEW_PROMPT, INJECT_MEMORY_REVIEW_PROMPT, INJECT_SKILL_REVIEW_PROMPT, INSTANCE_KEYS, KEEP_LINE_RE, LONG_RUNS, LOW_QUALITY_THRESHOLD, LeaseStore, MAINTAINER_PRESET_ID, MAINTAIN_OUTPUT_INSTRUCTION, MAINTAIN_PROMPT, MAX_DESCRIPTION_LENGTH, MAX_REQUEST_BODY_BYTES, MAX_SKILL_CONTENT_CHARS, MAX_SKILL_FILE_BYTES, MAX_SKILL_NAME_LENGTH, MAX_SUPPORT_READ_PATHS, MAX_TIMER_DELAY_MS, MEMORY_GUIDANCE_SECTION_ORDER, MEMORY_REVIEW_PROMPT, MEMORY_TOKENS, MODEL_SESSION_EVENT_TYPES, MUTATIONS_FILE_VERSION, MemoryStore, MutationAuthority, NAMESPACE_MIGRATIONS, NATIVE_CALL_EVENT, NATIVE_RESULT_EVENT, PARAM_ALIASES, PARAM_EXPOSURE, PARAM_GROUP_LABELS, PARAM_NAMESPACES, PATTERN_OVERLAP, PLATFORM_LINE, PLATFORM_SERVICE_PROBES, POLICY_STAGE_DEFAULTS, PROMPT_BUNDLE, PROMPT_BUNDLE_ID, PROMPT_BUNDLE_VERSION, PROTECTED_BUILTIN_SKILLS, PTC_DISPATCH_EVENT, PTC_DISPATCH_START_EVENT, QUALITY_WEIGHTS, RESTRICTED_PRESET_DISPLAY, RESTRICTED_TOOLS_ROW_ID, RESTRICTOR_MODULE, REVIEWER_PRESET_ID, RUNS_SCHEMA_VERSION, SKILLS_GUIDANCE, SKILLS_GUIDANCE_SECTION_ORDER, SKILL_ACTION_REQUIRED_FIELDS, SKILL_NAME_RE, SKILL_REVIEW_PROMPT, SOFT_BODY_TOKENS, STORE_LEDGER, SUMMARY_DUPLICATE_HINT_THRESHOLD, SUPPORT_DIRS, SUPPORT_SPRAWL_FILES, SUPPRESSED_FILE_VERSION, TEXT_BUDGETS, THREAT_EXEMPTION_HINT, ToolDispatchNormalizer, ToolDispatchPayloadError, TransactionNotInvokedError, UPSTREAM_LIMIT_CHARS_PER_TOKEN, USER_TOKENS, VIEW_WINDOW_DAYS, abortLink, absentHostServices, advanceReview, affinity, allowRowCollisions, appendEvolutionEvent, applyCuratorLifecycleFields, applyCuratorMetaFields, applyNamespaceMigration, applyReferenceRewrite, asRecord, assertDispatchPayload, atomicWriteFiles, authorityFrom, authorityHolder, backupsReachability, buildCuratorRunReport, buildHealthBaseline, buildLearnPrompt, bumpPatch, bumpSupportRead, bumpUse, bumpView, callingScope, claimInstance, clampOnce, clampedNumber, classifyNamespaceMigration, classifySessionEvent, clearReviewChannel, codePointCount, collectReadSkillNames, collectReadSupportFiles, compareTextBudget, computeDedupGroups, computeDriftSignals, computeLifecycleTransitions, computePrefixClusters, computeQualityScores, computeScopeView, conservativeTokenEstimator, contentHash, createGateSet, createSubagentKernel as createSubagentChannel, createSubagentKernel, createSubagentRun, currentReviewContext, daysSinceIso, declaredReportStamp, describeReferenceRewrite, dispatchKeyOf, dispatchPathOf, dispatchStepOf, displayBodyOf, duplicateHeadings, emptyRecord, errorText, errorTextIn, evaluateThreat, eventsFile, evidenceKindIndex, evolutionActivityProjection, evolutionEventPayloadIssue, evolutionEvidenceProjection, evolutionHome, evolutionIoAdapter, evolutionProjectionHistoryProjection, evolutionReadsProjection, evolutionRoot, evolutionSignalsProjection, externalRefs, findDriftSignal, findOwnerCandidate, foldCuratorFields, foldToolDispatches, foldTurnEvent, foldTurnEvents, fuzzyPatch, getRecord, graphemeCount, h2Sections, historyReachability, hostSurface, identity, idleDays, initialTurnFold, instanceClaimKey, instanceHolder, isAbsent, isBookkeepingFrame, isCommittedWarning, isDeprecatedParamId, isFileShapedPath, isMissingPath, isPresent, isProcessAlive, isProjectableSession, isRecord, isReviewChannelSession, isSkillReadToolName, isSkillToolName, isUnknown, json, latestActivityAt, leaseAsTreeLock, leaseFile, lifecycleCandidate, listEventArchives, liveBool, liveNumber, loadMutations, loadSuppressedNames, loadUsage, makeSerialQueue, markAgentCreated, markReviewChannel, measureText, measureUnit, memoryRoot, methodNotAllowed, missingSupportPointers, mutateUsage, mutationLockFrom, mutationsFile, narrowNameMatches, nearDuplicateSummaries, newRunRegistry, nodeEvolutionIo, normalizeUsageRecord, observeEvent, overlongLines, ownerCandidatesFromSummaries, paramRowId, paramSettingsId, parseCuratorNominations, parseEvolutionEvents, payloadText, persistedWriteSites, pickWithPolicy, planNamespaceMigration, planReferenceRewrite, planRehoming, policyStageLimits, probeAbsent, probeChannelState, probeList, probeMtime, probePresent, probeReason, probeText, probeUnknown, projectionText, proposalFromPlan, proposalReportDir, proposalReportName, protectedSkillNamesOf, readDispatchSignal, readEvolutionEvents, readEvolutionTimeline, readExternalSupport, readJsonObject, readNumberParam, readParam, readProposalReport, readProposalReports, readingStats, recentViewCount, recordMutation, recordReviewRead, redactSecrets, referencedBlobs, registerHostRoutes, releaseInstance, renameWithRetry, renderCuratorReportMarkdown, reportTime, reportsReachability, reportsSweepLockTarget, resolveCitations, resolveParamId, retainEventArchives, retirementReport, reviewPrompt, runWriteGates, runsFile, saveSuppressedNames, saveUsage, scanBodyHooks, scanContentThreats, scanMemoryThreats, scanThreats, scopeOfNearestManifest, scopedPackageName, scopedProbeReport, selectSections, sessionAudited, sessionEvidenceIndex, sessionLastEventTime, sessionReadNames, sessionSeesFamilyTools, sessionTurnSignals, skillReadNameOf, skillWriteGateContext, supportFileReadFromPath, supportFileReadOf, supportRefs, suppressedFile, sweepReports, sweepReviewChannelSessions, textOfValue, transactIo, trimPatternBoundaries, truncateGraphemes, unhookedSupportPointers, unwrapLive, updateSuppressedNames, usageFile, usageObserved, userSetKeys, utf8ByteLength, verifyPromptBundle, vocabulary, waitForSubagentEnd, withReviewContext, withTreeWrite, writeDurableTmp, writeProposalReport };
|
|
5558
|
+
export { AUTHORING_DESCRIPTION_BAR, AUTHORING_SPLIT_LINE_CHARS, AuthorityBusyError, AuthorityOrderError, AuthorityReentryError, CITATION_SUPPORT_DIRS, COMBINED_REVIEW_PROMPT, COMPLETION_SKILL_REVIEW_PROMPT, CONTENT_SPLIT_HINT, CURATOR_DRY_RUN_BANNER, CURATOR_PROMPT, DEDUP_MAX_PAIR_COMPARISONS, DEDUP_SIMILARITY_THRESHOLD, DEFAULT_ARCHIVE_AFTER_DAYS, DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, DEFAULT_CITATION_REF_BUDGET, DEFAULT_CONSOLIDATION_FAILURES, DEFAULT_CURATOR_BOOT_GRACE_SECONDS, DEFAULT_CURATOR_INTERVAL_HOURS, DEFAULT_CURATOR_MODEL, DEFAULT_CURATOR_REVIEW_MAX_TOKENS, DEFAULT_LEASE_TTL_MS, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_MEMORY_TOKENS, DEFAULT_MIN_IDLE_HOURS, DEFAULT_MUTATION_CAP, DEFAULT_PROBE_TIMEOUT_MS, DEFAULT_REFERENCE_REWRITE_POLICY, DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_RUN_RECORDS, DEFAULT_SKILL_CONTENT_CHARS, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, DEFAULT_SKILL_REVIEW_TRIGGER, DEFAULT_SKILL_VERSION_KEEP, DEFAULT_SOFT_BODY_TOKENS, DEFAULT_STALE_AFTER_DAYS, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, DEFAULT_SUPPORT_FILE_CHAR_POLICY, DEFAULT_SUPPORT_READ_TOOL_NAMES, DEFAULT_THREAT_MAX_SCAN_CHARS, DEFAULT_USER_CHAR_LIMIT, DEFAULT_USER_TOKENS, DEFAULT_WRITE_CONFIRM_MODE, DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS, DIAGNOSTICS_FACT_KEYS, DIAGNOSTICS_RUNTIME_KEYS, DIAGNOSTICS_VIEW_SCHEMA_VERSION, DISPATCH_EVENT_TYPES, DRIFT_MAX_LINE_CHARS, DRIFT_SIGNALS_VERSION, DRIFT_SIGNAL_NOUNS, DSH_AUTHORING_STANDARDS, ENTRY_DELIMITER, EVENT_ARCHIVE_PREFIX, EVENT_LOG_RETAIN_ARCHIVES, EVENT_LOG_ROTATE_AT, EVENT_LOG_VERSION, EVOLUTION_ERRORS, EVOLUTION_PRESET_IDS, EVOLUTION_WRITE_TOOLS, EvolutionGateSet, FAMILY_SESSION_TOOL_NAMES, FORBIDDEN_CONTROL_KEYS, FUZZY_MAX_PATTERN_CHARS, FUZZY_MAX_WORK, GOVERNANCE_PROMPT_TEMPLATE, HOOK_LINE_RE, HOST_LOCALES, HOST_ROUTES, HomeAuthority, HomeFence, HomeFenceError, INJECT_COMBINED_REVIEW_PROMPT, INJECT_COMPLETION_SKILL_REVIEW_PROMPT, INJECT_MEMORY_REVIEW_PROMPT, INJECT_SKILL_REVIEW_PROMPT, INSTANCE_KEYS, KEEP_LINE_RE, LONG_RUNS, LOW_QUALITY_THRESHOLD, LeaseStore, MAINTAINER_PRESET_ID, MAINTAIN_OUTPUT_INSTRUCTION, MAINTAIN_PROMPT, MAX_DESCRIPTION_LENGTH, MAX_REQUEST_BODY_BYTES, MAX_SKILL_CONTENT_CHARS, MAX_SKILL_FILE_BYTES, MAX_SKILL_NAME_LENGTH, MAX_SUPPORT_READ_PATHS, MAX_TIMER_DELAY_MS, MEMORY_ENTRY_PREVIEW_GRAPHEMES, MEMORY_GUIDANCE_SECTION_ORDER, MEMORY_REVIEW_PROMPT, MEMORY_TOKENS, MERGE_BODY_PREVIEW_BYTES, MODEL_SESSION_EVENT_TYPES, MUTATIONS_FILE_VERSION, MemoryStore, MutationAuthority, NAMESPACE_MIGRATIONS, NATIVE_CALL_EVENT, NATIVE_RESULT_EVENT, PARAM_ALIASES, PARAM_EXPOSURE, PARAM_GROUP_LABELS, PARAM_NAMESPACES, PATTERN_OVERLAP, PLATFORM_LINE, PLATFORM_SERVICE_PROBES, POLICY_STAGE_DEFAULTS, PROMPT_BUNDLE, PROMPT_BUNDLE_ID, PROMPT_BUNDLE_VERSION, PROTECTED_BUILTIN_SKILLS, PTC_DISPATCH_EVENT, PTC_DISPATCH_START_EVENT, QUALITY_WEIGHTS, RESTRICTED_PRESET_DISPLAY, RESTRICTED_TOOLS_ROW_ID, RESTRICTOR_MODULE, REVIEWER_PRESET_ID, REVIEW_TEXT_PREVIEW_GRAPHEMES, RUNS_SCHEMA_VERSION, SKILLS_GUIDANCE, SKILLS_GUIDANCE_SECTION_ORDER, SKILL_ACTION_REQUIRED_FIELDS, SKILL_NAME_RE, SKILL_REVIEW_PROMPT, SOFT_BODY_TOKENS, STORE_LEDGER, SUMMARY_DUPLICATE_HINT_THRESHOLD, SUPPORT_DIRS, SUPPORT_SPRAWL_FILES, SUPPRESSED_FILE_VERSION, TEXT_BUDGETS, TEXT_DIFF_MAX_GRAPHEMES, THREAT_EXEMPTION_HINT, ToolDispatchNormalizer, ToolDispatchPayloadError, TransactionNotInvokedError, UPSTREAM_LIMIT_CHARS_PER_TOKEN, USER_TOKENS, VERSION_BODY_PREVIEW_GRAPHEMES, VIEW_WINDOW_DAYS, abortLink, absentHostServices, advanceReview, affinity, allowRowCollisions, appendEvolutionEvent, applyCuratorLifecycleFields, applyCuratorMetaFields, applyNamespaceMigration, applyReferenceRewrite, asRecord, assertDispatchPayload, atomicWriteFiles, authorityFrom, authorityHolder, backupsReachability, buildCuratorRunReport, buildHealthBaseline, buildLearnPrompt, bumpPatch, bumpSupportRead, bumpUse, bumpView, callingScope, claimInstance, clampOnce, clampedNumber, classifyNamespaceMigration, classifySessionEvent, clearReviewChannel, codePointCount, collectReadSkillNames, collectReadSupportFiles, compareTextBudget, computeDedupGroups, computeDriftSignals, computeLifecycleTransitions, computePrefixClusters, computeQualityScores, computeScopeView, conservativeTokenEstimator, contentHash, createGateSet, createSubagentKernel as createSubagentChannel, createSubagentKernel, createSubagentRun, currentReviewContext, daysSinceIso, declaredReportStamp, describeReferenceRewrite, dispatchKeyOf, dispatchPathOf, dispatchStepOf, displayBodyOf, duplicateHeadings, emptyRecord, errorText, errorTextIn, evaluateThreat, eventsFile, evidenceKindIndex, evolutionActivityProjection, evolutionEventPayloadIssue, evolutionEvidenceProjection, evolutionHome, evolutionIoAdapter, evolutionProjectionHistoryProjection, evolutionReadsProjection, evolutionRoot, evolutionSignalsProjection, externalRefs, findDriftSignal, findOwnerCandidate, foldCuratorFields, foldToolDispatches, foldTurnEvent, foldTurnEvents, fuzzyPatch, getRecord, graphemeCount, h2Sections, historyReachability, hostSurface, identity, idleDays, initialTurnFold, instanceClaimKey, instanceHolder, isAbsent, isBookkeepingFrame, isCommittedWarning, isDeprecatedParamId, isFileShapedPath, isMissingPath, isPresent, isProcessAlive, isProjectableSession, isRecord, isReviewChannelSession, isSkillReadToolName, isSkillToolName, isUnknown, json, latestActivityAt, leaseAsTreeLock, leaseFile, lifecycleCandidate, listEventArchives, liveBool, liveNumber, loadMutations, loadSuppressedNames, loadUsage, makeSerialQueue, markAgentCreated, markReviewChannel, measureText, measureUnit, memoryRoot, methodNotAllowed, missingSupportPointers, mutateUsage, mutationLockFrom, mutationsFile, narrowNameMatches, nearDuplicateSummaries, newRunRegistry, nodeEvolutionIo, normalizeUsageRecord, observeEvent, overlongLines, ownerCandidatesFromSummaries, paramRowId, paramSettingsId, parseCuratorNominations, parseEvolutionEvents, payloadText, persistedWriteSites, pickWithPolicy, planNamespaceMigration, planReferenceRewrite, planRehoming, policyStageLimits, probeAbsent, probeChannelState, probeList, probeMtime, probePresent, probeReason, probeText, probeUnknown, projectionText, proposalFromPlan, proposalReportDir, proposalReportName, protectedSkillNamesOf, readDispatchSignal, readEvolutionEvents, readEvolutionTimeline, readExternalSupport, readJsonObject, readNumberParam, readParam, readProposalReport, readProposalReports, readingStats, recentViewCount, recordMutation, recordReviewRead, redactSecrets, referencedBlobs, registerHostRoutes, releaseInstance, renameWithRetry, renderCuratorReportMarkdown, reportTime, reportsReachability, reportsSweepLockTarget, resolveCitations, resolveParamId, retainEventArchives, retirementReport, reviewPrompt, runWriteGates, runsFile, saveSuppressedNames, saveUsage, scanBodyHooks, scanContentThreats, scanMemoryThreats, scanThreats, scopeOfNearestManifest, scopedPackageName, scopedProbeReport, selectSections, sessionAudited, sessionEvidenceIndex, sessionLastEventTime, sessionReadNames, sessionSeesFamilyTools, sessionTurnSignals, skillReadNameOf, skillWriteGateContext, supportFileReadFromPath, supportFileReadOf, supportRefs, suppressedFile, sweepReports, sweepReviewChannelSessions, textOfValue, transactIo, trimPatternBoundaries, truncateGraphemes, unhookedSupportPointers, unwrapLive, updateSuppressedNames, usageFile, usageObserved, userSetKeys, utf8ByteLength, verifyPromptBundle, vocabulary, waitForSubagentEnd, withReviewContext, withTreeWrite, writeDurableTmp, writeProposalReport };
|
|
@@ -87,6 +87,15 @@ const DEFAULT_SKILL_VERSION_KEEP = 20;
|
|
|
87
87
|
* standard — deriving the band from the ceiling is exactly what let a 40k
|
|
88
88
|
* ceiling hide a 99k body without a single signal saying "split me" (V3). */
|
|
89
89
|
const AUTHORING_SPLIT_LINE_CHARS = 2e4;
|
|
90
|
+
/** Display-only truncation caps. They are answers about what a reader gets, never
|
|
91
|
+
* write limits; every one is measured in graphemes and declared in TEXT_BUDGETS.
|
|
92
|
+
* Keeping them here is what lets the route, the activity store, the memory tool
|
|
93
|
+
* and the merge panel stop carrying private copies of the same number. */
|
|
94
|
+
const TEXT_DIFF_MAX_GRAPHEMES = 4e3;
|
|
95
|
+
const REVIEW_TEXT_PREVIEW_GRAPHEMES = 2e3;
|
|
96
|
+
const MEMORY_ENTRY_PREVIEW_GRAPHEMES = 200;
|
|
97
|
+
const VERSION_BODY_PREVIEW_GRAPHEMES = 2e4;
|
|
98
|
+
const MERGE_BODY_PREVIEW_BYTES = 64 * 1024;
|
|
90
99
|
/** Upstream's conversion basis for CHARACTER LIMITS: 2.75 chars/token, labelled
|
|
91
100
|
* model-independent in the config template (\`cli-config.yaml.example:538\`), and the
|
|
92
101
|
* basis behind every quoted token figure there — memory 2200 chars ≈ 800 tokens,
|
|
@@ -279,4 +288,4 @@ const DEFAULT_SKILL_LIMITS = {
|
|
|
279
288
|
versionKeep: 20
|
|
280
289
|
};
|
|
281
290
|
//#endregion
|
|
282
|
-
export { DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS as A, MAX_SKILL_CONTENT_CHARS as B, DEFAULT_REVIEW_TIMEOUT_MS as C, DEFAULT_SKILL_VERSION_KEEP as D, DEFAULT_SKILL_REVIEW_TRIGGER as E, DEFAULT_USER_TOKENS as F,
|
|
291
|
+
export { SUPPORT_SPRAWL_FILES as $, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS as A, MAX_SKILL_CONTENT_CHARS as B, DEFAULT_REVIEW_TIMEOUT_MS as C, DEFAULT_SKILL_VERSION_KEEP as D, DEFAULT_SKILL_REVIEW_TRIGGER as E, DEFAULT_USER_TOKENS as F, MEMORY_GUIDANCE_SECTION_ORDER as G, MAX_SKILL_NAME_LENGTH as H, ENTRY_DELIMITER as I, REVIEW_TEXT_PREVIEW_GRAPHEMES as J, MERGE_BODY_PREVIEW_BYTES as K, EVOLUTION_WRITE_TOOLS as L, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS as M, DEFAULT_THREAT_MAX_SCAN_CHARS as N, DEFAULT_SOFT_BODY_TOKENS as O, DEFAULT_USER_CHAR_LIMIT as P, SUPPORT_DIRS as Q, FORBIDDEN_CONTROL_KEYS as R, DEFAULT_REVIEW_SKILL_INTERVAL as S, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS as T, MAX_TIMER_DELAY_MS as U, MAX_SKILL_FILE_BYTES as V, MEMORY_ENTRY_PREVIEW_GRAPHEMES as W, SKILL_ACTION_REQUIRED_FIELDS as X, SKILLS_GUIDANCE_SECTION_ORDER as Y, SKILL_NAME_RE as Z, DEFAULT_MEMORY_CHAR_LIMIT as _, DEFAULT_SUPPORT_FILE_CHAR_POLICY as a, DEFAULT_PROBE_TIMEOUT_MS as b, AUTHORING_DESCRIPTION_BAR as c, DEFAULT_ARCHIVE_AFTER_DAYS as d, TEXT_DIFF_MAX_GRAPHEMES as et, DEFAULT_CONSOLIDATION_FAILURES as f, DEFAULT_CURATOR_REVIEW_MAX_TOKENS as g, DEFAULT_CURATOR_MODEL as h, DEFAULT_SKILL_LIMITS as i, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS as j, DEFAULT_STALE_AFTER_DAYS as k, AUTHORING_SPLIT_LINE_CHARS as l, DEFAULT_CURATOR_INTERVAL_HOURS as m, DEFAULT_CITATION_POLICY as n, VERSION_BODY_PREVIEW_GRAPHEMES as nt, POLICY_STAGE_DEFAULTS as o, DEFAULT_CURATOR_BOOT_GRACE_SECONDS as p, PROTECTED_BUILTIN_SKILLS as q, DEFAULT_REFERENCE_REWRITE_POLICY as r, policyStageLimits as s, DEFAULT_ARCHIVE_RETENTION_POLICY as t, UPSTREAM_LIMIT_CHARS_PER_TOKEN as tt, CONTENT_SPLIT_HINT as u, DEFAULT_MEMORY_TOKENS as v, DEFAULT_SKILL_CONTENT_CHARS as w, DEFAULT_REVIEW_MEMORY_INTERVAL as x, DEFAULT_MIN_IDLE_HOURS as y, MAX_DESCRIPTION_LENGTH as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isProcessAlive, c as transactIo, i as isCommittedWarning, t as TransactionNotInvokedError } from "./io-GxghO3Ip.js";
|
|
2
|
-
import { l as exceedsContentLimit, r as contentHash } from "./mutations-
|
|
2
|
+
import { l as exceedsContentLimit, r as contentHash } from "./mutations-mvTnWkua.js";
|
|
3
3
|
import { basename, dirname, isAbsolute, join, relative } from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
//#region lib/types/write-kernel.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as transactIo, o as nodeEvolutionIo } from "./io-GxghO3Ip.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Z as SKILL_NAME_RE, i as DEFAULT_SKILL_LIMITS, u as CONTENT_SPLIT_HINT } from "./limits-CO4JGSJL.js";
|
|
3
3
|
import { a as measureUnit, o as truncateGraphemes, r as graphemeCount } from "./text-metrics-CyJhxWBs.js";
|
|
4
4
|
import { n as isRecord } from "./guards-3f02mnf2.js";
|
|
5
5
|
import { join } from "node:path";
|
package/lib/policy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as EVOLUTION_WRITE_TOOLS, P as DEFAULT_USER_CHAR_LIMIT, R as FORBIDDEN_CONTROL_KEYS, _ as DEFAULT_MEMORY_CHAR_LIMIT, a as DEFAULT_SUPPORT_FILE_CHAR_POLICY, h as DEFAULT_CURATOR_MODEL, n as DEFAULT_CITATION_POLICY, o as POLICY_STAGE_DEFAULTS, q as PROTECTED_BUILTIN_SKILLS, r as DEFAULT_REFERENCE_REWRITE_POLICY, t as DEFAULT_ARCHIVE_RETENTION_POLICY, w as DEFAULT_SKILL_CONTENT_CHARS } from "./limits-CO4JGSJL.js";
|
|
2
2
|
import { t as asRecord } from "./guards-3f02mnf2.js";
|
|
3
3
|
import { t as clampedNumber } from "./numeric-Dc53KQoe.js";
|
|
4
4
|
import { n as toolsPort } from "./tools-BrUswg8v.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as probeText, g as probeList, m as isUnknown, p as isPresent } from "./io-GxghO3Ip.js";
|
|
2
|
-
import { A as h2Sections, M as externalRefs, h as latestActivityAt } from "./usage-
|
|
2
|
+
import { A as h2Sections, M as externalRefs, h as latestActivityAt } from "./usage-DrczLTP4.js";
|
|
3
3
|
import { t as evolutionHome } from "./state-store-Jpa-iYIZ.js";
|
|
4
4
|
import { readFile, realpath, stat } from "node:fs/promises";
|
|
5
5
|
import { basename, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as transactIo } from "./io-GxghO3Ip.js";
|
|
2
|
-
import { N as DEFAULT_THREAT_MAX_SCAN_CHARS, O as DEFAULT_SOFT_BODY_TOKENS,
|
|
2
|
+
import { N as DEFAULT_THREAT_MAX_SCAN_CHARS, O as DEFAULT_SOFT_BODY_TOKENS, tt as UPSTREAM_LIMIT_CHARS_PER_TOKEN } from "./limits-CO4JGSJL.js";
|
|
3
3
|
import { O as collectReadSkillNames, R as supportFileReadFromPath, k as collectReadSupportFiles, l as sessionReadNames, o as isProjectableSession, v as DEFAULT_SUPPORT_READ_TOOL_NAMES } from "./session-projection-CbIKvDfJ.js";
|
|
4
4
|
import { a as measureUnit, i as measureText } from "./text-metrics-CyJhxWBs.js";
|
|
5
5
|
import { t as clampedNumber } from "./numeric-Dc53KQoe.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { b as probeText, c as transactIo, m as isUnknown, p as isPresent } from "./io-GxghO3Ip.js";
|
|
2
|
+
import { et as TEXT_DIFF_MAX_GRAPHEMES } from "./limits-CO4JGSJL.js";
|
|
2
3
|
import { o as truncateGraphemes, r as graphemeCount } from "./text-metrics-CyJhxWBs.js";
|
|
3
|
-
import { r as contentHash } from "./mutations-
|
|
4
|
+
import { r as contentHash } from "./mutations-mvTnWkua.js";
|
|
4
5
|
import { join } from "node:path";
|
|
5
6
|
//#region lib/types/skill-history.js
|
|
6
7
|
/**
|
|
@@ -542,7 +543,7 @@ function versionActionKind(action) {
|
|
|
542
543
|
/** Lines one changed region may carry before it is windowed and flagged. */
|
|
543
544
|
const TEXT_DIFF_MAX_LINES = 40;
|
|
544
545
|
/** Characters one windowed side may carry, so a single enormous line cannot travel whole. */
|
|
545
|
-
const TEXT_DIFF_MAX_CHARS =
|
|
546
|
+
const TEXT_DIFF_MAX_CHARS = TEXT_DIFF_MAX_GRAPHEMES;
|
|
546
547
|
/**
|
|
547
548
|
* The facts of one whole-body replacement: how many lines the changed region gained and lost, and
|
|
548
549
|
* that region itself as one hunk.
|
|
@@ -574,7 +575,7 @@ function textDiffFacts(before, after, path, maxLines = 40) {
|
|
|
574
575
|
};
|
|
575
576
|
const window = (lines) => {
|
|
576
577
|
const joined = lines.slice(0, maxLines).join("\n");
|
|
577
|
-
if (graphemeCount(joined) <=
|
|
578
|
+
if (graphemeCount(joined) <= TEXT_DIFF_MAX_CHARS) return {
|
|
578
579
|
text: joined,
|
|
579
580
|
cut: lines.length > maxLines
|
|
580
581
|
};
|
package/lib/skills.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { _ as probeMtime, b as probeText, c as transactIo, d as isAbsent, g as probeList, h as probeAbsent, i as isCommittedWarning, m as isUnknown, o as nodeEvolutionIo, p as isPresent, t as TransactionNotInvokedError, v as probePresent, x as probeUnknown, y as probeReason } from "./io-GxghO3Ip.js";
|
|
2
2
|
import { n as mutationLockFrom } from "./mutation-authority-DQfpXs1O.js";
|
|
3
3
|
import { o as resolveCitations } from "./citations-CZKTUGQF.js";
|
|
4
|
-
import {
|
|
5
|
-
import { B as READ_REQUIRED_ACTIONS, C as appendEvolutionEvent, F as lintBody, H as isUnreadWrite, I as softBodyTokenBudget, L as RULES, M as HEALTH_STAMP_RE, N as MIN_STAMP_BODY_CHARS, P as assessStructureHealth, R as diffFindings, U as sessionReadSkillNames, V as filterUnreadSkillOps, W as sessionReadSupportFiles, _ as fuzzyPatch, a as isReviewChannelSession, d as scanContentThreats, j as DEFAULT_HEALTH_THRESHOLDS, m as makeSerialQueue, q as authorityFrom, t as currentReviewContext, v as trimPatternBoundaries, w as eventsFile, z as lintSkill } from "./review-context-
|
|
4
|
+
import { Q as SUPPORT_DIRS, Z as SKILL_NAME_RE, a as DEFAULT_SUPPORT_FILE_CHAR_POLICY, i as DEFAULT_SKILL_LIMITS, n as DEFAULT_CITATION_POLICY, o as POLICY_STAGE_DEFAULTS, q as PROTECTED_BUILTIN_SKILLS, r as DEFAULT_REFERENCE_REWRITE_POLICY, s as policyStageLimits, t as DEFAULT_ARCHIVE_RETENTION_POLICY, u as CONTENT_SPLIT_HINT } from "./limits-CO4JGSJL.js";
|
|
5
|
+
import { B as READ_REQUIRED_ACTIONS, C as appendEvolutionEvent, F as lintBody, H as isUnreadWrite, I as softBodyTokenBudget, L as RULES, M as HEALTH_STAMP_RE, N as MIN_STAMP_BODY_CHARS, P as assessStructureHealth, R as diffFindings, U as sessionReadSkillNames, V as filterUnreadSkillOps, W as sessionReadSupportFiles, _ as fuzzyPatch, a as isReviewChannelSession, d as scanContentThreats, j as DEFAULT_HEALTH_THRESHOLDS, m as makeSerialQueue, q as authorityFrom, t as currentReviewContext, v as trimPatternBoundaries, w as eventsFile, z as lintSkill } from "./review-context-70XYS11J.js";
|
|
6
6
|
import { a as measureUnit } from "./text-metrics-CyJhxWBs.js";
|
|
7
|
-
import { E as usageFile, F as describeReferenceRewrite, I as planReferenceRewrite, L as planRehoming, N as supportRefs, O as selectSections, P as applyReferenceRewrite, _ as loadUsage, p as getRecord, w as suppressedFile, y as mutateUsage } from "./usage-
|
|
8
|
-
import { _ as validateFrontmatter, c as ensureSkillFrontmatter, d as frontmatterCatalogInvalid, f as normalizeFrontmatter, g as skillMdOnDisk, h as shrinksOverLimit, i as loadMutations, l as exceedsContentLimit, m as relatedSkillNames, o as recordMutation, p as parseFrontmatter, r as contentHash, s as authoringFeedback, u as frontmatterBlock, v as yamlPlainScalarNeedsQuotes } from "./mutations-
|
|
7
|
+
import { E as usageFile, F as describeReferenceRewrite, I as planReferenceRewrite, L as planRehoming, N as supportRefs, O as selectSections, P as applyReferenceRewrite, _ as loadUsage, p as getRecord, w as suppressedFile, y as mutateUsage } from "./usage-DrczLTP4.js";
|
|
8
|
+
import { _ as validateFrontmatter, c as ensureSkillFrontmatter, d as frontmatterCatalogInvalid, f as normalizeFrontmatter, g as skillMdOnDisk, h as shrinksOverLimit, i as loadMutations, l as exceedsContentLimit, m as relatedSkillNames, o as recordMutation, p as parseFrontmatter, r as contentHash, s as authoringFeedback, u as frontmatterBlock, v as yamlPlainScalarNeedsQuotes } from "./mutations-mvTnWkua.js";
|
|
9
9
|
import { n as evolutionRoot } from "./state-store-Jpa-iYIZ.js";
|
|
10
|
-
import { C as partitionVersions, D as textDiffFacts, E as summaryChars, O as versionActionKind, S as parseHistoryIndex, T as recordVersions, _ as loadVersionContent, a as RETENTION_FEEDBACK_KEEP_RATIO, b as normalizeChangeSummary, c as TEXT_DIFF_MAX_LINES, d as contentRetentionFeedback, f as elapsedSince, g as latestVersionAt, h as historyRoot, i as HISTORY_INDEX_VERSION, k as versionTarget, l as blobPath, m as historyIndexFile, n as DEFAULT_SKILL_WRITE_SUMMARY_CHARS, o as RETENTION_FEEDBACK_MIN_CHARS, p as entryTarget, r as HISTORY_DIR, s as TEXT_DIFF_MAX_CHARS, t as BASELINE_ACTION, u as clipChangeSummary, v as loadVersions, w as readHistoryIndex, x as orderVersions, y as nextHistoryIndex } from "./skill-history-
|
|
11
|
-
import { D as fileMutationLock, E as MutationUnit, n as unitJournalPort, r as unitSnapshotPort, t as pruneTreeChangeUnits } from "./mutation-storage-adapter-
|
|
12
|
-
import { n as projectExtractBodies } from "./extract-plan-
|
|
10
|
+
import { C as partitionVersions, D as textDiffFacts, E as summaryChars, O as versionActionKind, S as parseHistoryIndex, T as recordVersions, _ as loadVersionContent, a as RETENTION_FEEDBACK_KEEP_RATIO, b as normalizeChangeSummary, c as TEXT_DIFF_MAX_LINES, d as contentRetentionFeedback, f as elapsedSince, g as latestVersionAt, h as historyRoot, i as HISTORY_INDEX_VERSION, k as versionTarget, l as blobPath, m as historyIndexFile, n as DEFAULT_SKILL_WRITE_SUMMARY_CHARS, o as RETENTION_FEEDBACK_MIN_CHARS, p as entryTarget, r as HISTORY_DIR, s as TEXT_DIFF_MAX_CHARS, t as BASELINE_ACTION, u as clipChangeSummary, v as loadVersions, w as readHistoryIndex, x as orderVersions, y as nextHistoryIndex } from "./skill-history-YX84wO20.js";
|
|
11
|
+
import { D as fileMutationLock, E as MutationUnit, n as unitJournalPort, r as unitSnapshotPort, t as pruneTreeChangeUnits } from "./mutation-storage-adapter-7R3ra0wj.js";
|
|
12
|
+
import { n as projectExtractBodies } from "./extract-plan-BxDhKSki.js";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
14
14
|
//#region lib/types/skill-stats.js
|
|
15
15
|
/**
|
|
@@ -57,9 +57,10 @@ function verdictRank(verdict) {
|
|
|
57
57
|
if (verdict === null || verdict === void 0 || verdict === "") return null;
|
|
58
58
|
if (verdict === "needs-restructure") return 0;
|
|
59
59
|
if (verdict === "warn") return 1;
|
|
60
|
-
if (verdict === "
|
|
61
|
-
if (verdict === "
|
|
62
|
-
return 4;
|
|
60
|
+
if (verdict === "unreadable") return 2;
|
|
61
|
+
if (verdict === "unknown") return 3;
|
|
62
|
+
if (verdict === "healthy") return 4;
|
|
63
|
+
return 5;
|
|
63
64
|
}
|
|
64
65
|
/** Stable name comparison shared by every tie-break. */
|
|
65
66
|
function compareNames(left, right) {
|
package/lib/types/constants.d.ts
CHANGED
|
@@ -63,6 +63,15 @@ export declare const DEFAULT_SKILL_VERSION_KEEP = 20;
|
|
|
63
63
|
* standard — deriving the band from the ceiling is exactly what let a 40k
|
|
64
64
|
* ceiling hide a 99k body without a single signal saying "split me" (V3). */
|
|
65
65
|
export declare const AUTHORING_SPLIT_LINE_CHARS = 20000;
|
|
66
|
+
/** Display-only truncation caps. They are answers about what a reader gets, never
|
|
67
|
+
* write limits; every one is measured in graphemes and declared in TEXT_BUDGETS.
|
|
68
|
+
* Keeping them here is what lets the route, the activity store, the memory tool
|
|
69
|
+
* and the merge panel stop carrying private copies of the same number. */
|
|
70
|
+
export declare const TEXT_DIFF_MAX_GRAPHEMES = 4000;
|
|
71
|
+
export declare const REVIEW_TEXT_PREVIEW_GRAPHEMES = 2000;
|
|
72
|
+
export declare const MEMORY_ENTRY_PREVIEW_GRAPHEMES = 200;
|
|
73
|
+
export declare const VERSION_BODY_PREVIEW_GRAPHEMES = 20000;
|
|
74
|
+
export declare const MERGE_BODY_PREVIEW_BYTES: number;
|
|
66
75
|
/** Upstream's conversion basis for CHARACTER LIMITS: 2.75 chars/token, labelled
|
|
67
76
|
* model-independent in the config template (\`cli-config.yaml.example:538\`), and the
|
|
68
77
|
* basis behind every quoted token figure there — memory 2200 chars ≈ 800 tokens,
|
package/lib/types/constants.js
CHANGED
|
@@ -78,6 +78,15 @@ export const DEFAULT_SKILL_VERSION_KEEP = 20;
|
|
|
78
78
|
* standard — deriving the band from the ceiling is exactly what let a 40k
|
|
79
79
|
* ceiling hide a 99k body without a single signal saying "split me" (V3). */
|
|
80
80
|
export const AUTHORING_SPLIT_LINE_CHARS = 20_000;
|
|
81
|
+
/** Display-only truncation caps. They are answers about what a reader gets, never
|
|
82
|
+
* write limits; every one is measured in graphemes and declared in TEXT_BUDGETS.
|
|
83
|
+
* Keeping them here is what lets the route, the activity store, the memory tool
|
|
84
|
+
* and the merge panel stop carrying private copies of the same number. */
|
|
85
|
+
export const TEXT_DIFF_MAX_GRAPHEMES = 4_000;
|
|
86
|
+
export const REVIEW_TEXT_PREVIEW_GRAPHEMES = 2_000;
|
|
87
|
+
export const MEMORY_ENTRY_PREVIEW_GRAPHEMES = 200;
|
|
88
|
+
export const VERSION_BODY_PREVIEW_GRAPHEMES = 20_000;
|
|
89
|
+
export const MERGE_BODY_PREVIEW_BYTES = 64 * 1024;
|
|
81
90
|
/** Upstream's conversion basis for CHARACTER LIMITS: 2.75 chars/token, labelled
|
|
82
91
|
* model-independent in the config template (\`cli-config.yaml.example:538\`), and the
|
|
83
92
|
* basis behind every quoted token figure there — memory 2200 chars ≈ 800 tokens,
|
|
@@ -31,6 +31,7 @@ import { transactIo } from "./io.js";
|
|
|
31
31
|
import { isPresent, isUnknown, probeText } from "./probe.js";
|
|
32
32
|
import { contentHash } from "./mutations.js";
|
|
33
33
|
import { graphemeCount, truncateGraphemes } from "./text-metrics.js";
|
|
34
|
+
import { TEXT_DIFF_MAX_GRAPHEMES } from "./constants.js";
|
|
34
35
|
/** Root-level history directory. Dot-prefixed so skill discovery skips it. */
|
|
35
36
|
export const HISTORY_DIR = '.history';
|
|
36
37
|
/** Versioned index shape, so a future field can migrate without guessing. */
|
|
@@ -648,7 +649,7 @@ export function versionActionKind(action) {
|
|
|
648
649
|
/** Lines one changed region may carry before it is windowed and flagged. */
|
|
649
650
|
export const TEXT_DIFF_MAX_LINES = 40;
|
|
650
651
|
/** Characters one windowed side may carry, so a single enormous line cannot travel whole. */
|
|
651
|
-
export const TEXT_DIFF_MAX_CHARS =
|
|
652
|
+
export const TEXT_DIFF_MAX_CHARS = TEXT_DIFF_MAX_GRAPHEMES;
|
|
652
653
|
/**
|
|
653
654
|
* The facts of one whole-body replacement: how many lines the changed region gained and lost, and
|
|
654
655
|
* that region itself as one hunk.
|
package/lib/types/skill-stats.js
CHANGED
|
@@ -50,11 +50,13 @@ export function verdictRank(verdict) {
|
|
|
50
50
|
return 0;
|
|
51
51
|
if (verdict === 'warn')
|
|
52
52
|
return 1;
|
|
53
|
-
if (verdict === '
|
|
53
|
+
if (verdict === 'unreadable')
|
|
54
54
|
return 2;
|
|
55
|
-
if (verdict === '
|
|
55
|
+
if (verdict === 'unknown')
|
|
56
56
|
return 3;
|
|
57
|
-
|
|
57
|
+
if (verdict === 'healthy')
|
|
58
|
+
return 4;
|
|
59
|
+
return 5;
|
|
58
60
|
}
|
|
59
61
|
/** Stable name comparison shared by every tie-break. */
|
|
60
62
|
function compareNames(left, right) {
|
|
@@ -117,6 +117,41 @@ export declare const TEXT_BUDGETS: {
|
|
|
117
117
|
readonly limit: 200;
|
|
118
118
|
readonly severity: "report";
|
|
119
119
|
};
|
|
120
|
+
readonly diffWindow: {
|
|
121
|
+
readonly id: "history.diff-window";
|
|
122
|
+
readonly axis: "display";
|
|
123
|
+
readonly unit: "graphemes";
|
|
124
|
+
readonly limit: 4000;
|
|
125
|
+
readonly severity: "report";
|
|
126
|
+
};
|
|
127
|
+
readonly reviewPreview: {
|
|
128
|
+
readonly id: "history.review-preview";
|
|
129
|
+
readonly axis: "display";
|
|
130
|
+
readonly unit: "graphemes";
|
|
131
|
+
readonly limit: 2000;
|
|
132
|
+
readonly severity: "report";
|
|
133
|
+
};
|
|
134
|
+
readonly memoryPreview: {
|
|
135
|
+
readonly id: "memory.entry-preview";
|
|
136
|
+
readonly axis: "display";
|
|
137
|
+
readonly unit: "graphemes";
|
|
138
|
+
readonly limit: 200;
|
|
139
|
+
readonly severity: "report";
|
|
140
|
+
};
|
|
141
|
+
readonly versionBodyPreview: {
|
|
142
|
+
readonly id: "history.body-preview";
|
|
143
|
+
readonly axis: "display";
|
|
144
|
+
readonly unit: "graphemes";
|
|
145
|
+
readonly limit: 20000;
|
|
146
|
+
readonly severity: "report";
|
|
147
|
+
};
|
|
148
|
+
readonly mergeBodyPreview: {
|
|
149
|
+
readonly id: "merge.body-preview";
|
|
150
|
+
readonly axis: "display";
|
|
151
|
+
readonly unit: "utf8Bytes";
|
|
152
|
+
readonly limit: number;
|
|
153
|
+
readonly severity: "report";
|
|
154
|
+
};
|
|
120
155
|
readonly bodySoft: {
|
|
121
156
|
readonly id: "skill.body.soft";
|
|
122
157
|
readonly axis: "context";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module @lmzhen/dsh-evolution-core
|
|
10
10
|
*/
|
|
11
|
-
import { AUTHORING_DESCRIPTION_BAR, DEFAULT_SOFT_BODY_TOKENS, DEFAULT_MEMORY_TOKENS, DEFAULT_USER_TOKENS, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, MAX_DESCRIPTION_LENGTH, MAX_SKILL_CONTENT_CHARS, MAX_SKILL_FILE_BYTES, MAX_SKILL_NAME_LENGTH, } from "./constants.js";
|
|
11
|
+
import { AUTHORING_DESCRIPTION_BAR, DEFAULT_SOFT_BODY_TOKENS, DEFAULT_MEMORY_TOKENS, DEFAULT_USER_TOKENS, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, MAX_DESCRIPTION_LENGTH, MAX_SKILL_CONTENT_CHARS, MAX_SKILL_FILE_BYTES, MAX_SKILL_NAME_LENGTH, MERGE_BODY_PREVIEW_BYTES, MEMORY_ENTRY_PREVIEW_GRAPHEMES, REVIEW_TEXT_PREVIEW_GRAPHEMES, TEXT_DIFF_MAX_GRAPHEMES, VERSION_BODY_PREVIEW_GRAPHEMES, } from "./constants.js";
|
|
12
12
|
import { DEFAULT_SKILL_WRITE_SUMMARY_CHARS } from "./skill-history.js";
|
|
13
13
|
import { measureText } from "./text-metrics.js";
|
|
14
14
|
import { DRIFT_MAX_LINE_CHARS } from "./drift-signals.js";
|
|
@@ -35,6 +35,11 @@ export const TEXT_BUDGETS = {
|
|
|
35
35
|
substantiveUser: { id: 'review.substantive.user', axis: 'display', unit: 'graphemes', limit: DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, severity: 'soft' },
|
|
36
36
|
substantiveAgent: { id: 'review.substantive.agent', axis: 'display', unit: 'graphemes', limit: DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, severity: 'soft' },
|
|
37
37
|
retentionFeedback: { id: 'history.retention-feedback', axis: 'display', unit: 'graphemes', limit: 200, severity: 'report' },
|
|
38
|
+
diffWindow: { id: 'history.diff-window', axis: 'display', unit: 'graphemes', limit: TEXT_DIFF_MAX_GRAPHEMES, severity: 'report' },
|
|
39
|
+
reviewPreview: { id: 'history.review-preview', axis: 'display', unit: 'graphemes', limit: REVIEW_TEXT_PREVIEW_GRAPHEMES, severity: 'report' },
|
|
40
|
+
memoryPreview: { id: 'memory.entry-preview', axis: 'display', unit: 'graphemes', limit: MEMORY_ENTRY_PREVIEW_GRAPHEMES, severity: 'report' },
|
|
41
|
+
versionBodyPreview: { id: 'history.body-preview', axis: 'display', unit: 'graphemes', limit: VERSION_BODY_PREVIEW_GRAPHEMES, severity: 'report' },
|
|
42
|
+
mergeBodyPreview: { id: 'merge.body-preview', axis: 'display', unit: 'utf8Bytes', limit: MERGE_BODY_PREVIEW_BYTES, severity: 'report' },
|
|
38
43
|
bodySoft: { id: 'skill.body.soft', axis: 'context', unit: 'tokens', limit: SOFT_BODY_TOKENS, severity: 'soft' },
|
|
39
44
|
memory: { id: 'memory.budget', axis: 'context', unit: 'tokens', limit: MEMORY_TOKENS, severity: 'hard' },
|
|
40
45
|
user: { id: 'user.budget', axis: 'context', unit: 'tokens', limit: USER_TOKENS, severity: 'hard' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as transactIo, o as nodeEvolutionIo } from "./io-GxghO3Ip.js";
|
|
2
2
|
import { o as resolveCitations } from "./citations-CZKTUGQF.js";
|
|
3
3
|
import { n as isRecord } from "./guards-3f02mnf2.js";
|
|
4
|
-
import { p as parseFrontmatter, u as frontmatterBlock } from "./mutations-
|
|
4
|
+
import { p as parseFrontmatter, u as frontmatterBlock } from "./mutations-mvTnWkua.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
//#region lib/types/reference-rewrite.js
|
|
7
7
|
/**
|
package/lib/write.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as contentHash } from "./mutations-
|
|
2
|
-
import { p as entryTarget } from "./skill-history-
|
|
3
|
-
import { C as writeUnitEvidence, D as fileMutationLock, E as MutationUnit, O as validateMutationRequest, S as upsertUnitIndex, T as writeUnitSnapshot, _ as unitIndexPath, a as UNIT_JOURNAL_SCHEMA_VERSION, b as unitSnapshotsDir, c as unitJournalPath, d as UNIT_STORAGE_SCHEMA_VERSION, f as readUnitEvidence, g as unitEvidencePath, h as readUnitSnapshot, i as UNIT_JOURNAL_PHASES, k as WriteKernel, l as unitJournalPhaseRank, m as readUnitReceipt, n as unitJournalPort, o as assertUnitJournalTransition, p as readUnitIndex, r as unitSnapshotPort, s as readUnitJournal, t as pruneTreeChangeUnits, u as writeUnitJournal, v as unitReceiptPath, w as writeUnitReceipt, x as unitStorageKey, y as unitSnapshotPath } from "./mutation-storage-adapter-
|
|
1
|
+
import { r as contentHash } from "./mutations-mvTnWkua.js";
|
|
2
|
+
import { p as entryTarget } from "./skill-history-YX84wO20.js";
|
|
3
|
+
import { C as writeUnitEvidence, D as fileMutationLock, E as MutationUnit, O as validateMutationRequest, S as upsertUnitIndex, T as writeUnitSnapshot, _ as unitIndexPath, a as UNIT_JOURNAL_SCHEMA_VERSION, b as unitSnapshotsDir, c as unitJournalPath, d as UNIT_STORAGE_SCHEMA_VERSION, f as readUnitEvidence, g as unitEvidencePath, h as readUnitSnapshot, i as UNIT_JOURNAL_PHASES, k as WriteKernel, l as unitJournalPhaseRank, m as readUnitReceipt, n as unitJournalPort, o as assertUnitJournalTransition, p as readUnitIndex, r as unitSnapshotPort, s as readUnitJournal, t as pruneTreeChangeUnits, u as writeUnitJournal, v as unitReceiptPath, w as writeUnitReceipt, x as unitStorageKey, y as unitSnapshotPath } from "./mutation-storage-adapter-7R3ra0wj.js";
|
|
4
4
|
//#region lib/types/unit-undo.js
|
|
5
5
|
/**
|
|
6
6
|
* Cross-skill unit undo executor.
|
package/package.json
CHANGED