@inerrata-corporation/errata 2.0.17-dev.3465 → 2.0.17-dev.3469
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/errata.mjs +14 -6
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -17056,7 +17056,7 @@ function depsForUnit(spine, touched, readParentText) {
|
|
|
17056
17056
|
for (const purl of declared.keys()) context.delete(purl);
|
|
17057
17057
|
return { declared: [...declared.values()], context: [...context.values()] };
|
|
17058
17058
|
}
|
|
17059
|
-
var ECOSYSTEM_SYSTEM, ECOSYSTEM_LANGUAGE, TOOL_KINDS, MANIFEST_PATH_RE, LOCAL_IMAGE_RE, PACKAGE_JSON_SECTIONS, GRADLE_CONFIGS, POM_FOREIGN_BLOCKS;
|
|
17059
|
+
var ECOSYSTEM_SYSTEM, ECOSYSTEM_LANGUAGE, TOOL_KINDS, MANIFEST_PATH_RE, LOCAL_IMAGE_RE, PACKAGE_JSON_SECTIONS, GRADLE_CONFIGS, POM_FOREIGN_BLOCKS, HISTORY_MAX_SPINE_DEPS;
|
|
17060
17060
|
var init_manifests = __esm({
|
|
17061
17061
|
"../../packages/shared/src/manifests.ts"() {
|
|
17062
17062
|
"use strict";
|
|
@@ -17089,6 +17089,7 @@ var init_manifests = __esm({
|
|
|
17089
17089
|
PACKAGE_JSON_SECTIONS = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];
|
|
17090
17090
|
GRADLE_CONFIGS = "implementation|api|compileOnly|compileOnlyApi|runtimeOnly|testImplementation|testCompileOnly|testRuntimeOnly|annotationProcessor|kapt|ksp|classpath|developmentOnly";
|
|
17091
17091
|
POM_FOREIGN_BLOCKS = /<(parent|dependencies|dependencyManagement|build|profiles|reporting|distributionManagement|modules)>[\s\S]*?<\/\1>/g;
|
|
17092
|
+
HISTORY_MAX_SPINE_DEPS = 64;
|
|
17092
17093
|
}
|
|
17093
17094
|
});
|
|
17094
17095
|
|
|
@@ -17346,6 +17347,7 @@ __export(src_exports, {
|
|
|
17346
17347
|
GIT_EDGES: () => GIT_EDGES,
|
|
17347
17348
|
GRAPH_EVENT_VOCABULARIES: () => GRAPH_EVENT_VOCABULARIES,
|
|
17348
17349
|
HISTORY_EVIDENCE_SCHEMA_VERSION: () => HISTORY_EVIDENCE_SCHEMA_VERSION,
|
|
17350
|
+
HISTORY_MAX_SPINE_DEPS: () => HISTORY_MAX_SPINE_DEPS,
|
|
17349
17351
|
HISTORY_SCRUBBER_VERSION: () => HISTORY_SCRUBBER_VERSION,
|
|
17350
17352
|
HistoryAnchorSourceSchema: () => HistoryAnchorSourceSchema,
|
|
17351
17353
|
HistoryCandidateBatchSchema: () => HistoryCandidateBatchSchema,
|
|
@@ -82232,7 +82234,7 @@ function createWatchBreaker(deps) {
|
|
|
82232
82234
|
}
|
|
82233
82235
|
|
|
82234
82236
|
// src/engine.ts
|
|
82235
|
-
var DAEMON_VERSION = true ? "2.0.17-dev.
|
|
82237
|
+
var DAEMON_VERSION = true ? "2.0.17-dev.3469" : "2.0.0-alpha.0";
|
|
82236
82238
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
82237
82239
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
82238
82240
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -87687,7 +87689,14 @@ function manifestBlobs(listing) {
|
|
|
87687
87689
|
}
|
|
87688
87690
|
return out2;
|
|
87689
87691
|
}
|
|
87690
|
-
|
|
87692
|
+
function boundedHistorySpine(rings, log) {
|
|
87693
|
+
const omittedDeclared = Math.max(0, rings.declared.length - HISTORY_MAX_SPINE_DEPS);
|
|
87694
|
+
const omittedContext = Math.max(0, rings.context.length - HISTORY_MAX_SPINE_DEPS);
|
|
87695
|
+
if (omittedDeclared || omittedContext) log(`dependency context bounded: omitted ${omittedDeclared} declared and ${omittedContext} context entries (limit ${HISTORY_MAX_SPINE_DEPS} per ring; source diff retained)`);
|
|
87696
|
+
const wire = (d) => ({ ecosystem: d.ecosystem, name: d.name, version: d.version, kind: d.kind, manifest: d.manifest });
|
|
87697
|
+
return { declared: rings.declared.slice(0, HISTORY_MAX_SPINE_DEPS).map(wire), context: rings.context.slice(0, HISTORY_MAX_SPINE_DEPS).map(wire) };
|
|
87698
|
+
}
|
|
87699
|
+
async function spineForUnit(git3, root, unit, readBlob, log) {
|
|
87691
87700
|
const blobs = manifestBlobs(await git3(root, ["ls-tree", "-r", unit.sha]));
|
|
87692
87701
|
if (blobs.size === 0) return void 0;
|
|
87693
87702
|
const texts = /* @__PURE__ */ new Map();
|
|
@@ -87701,8 +87710,7 @@ async function spineForUnit(git3, root, unit, readBlob) {
|
|
|
87701
87710
|
parentTexts.set(f.path, await readBlob(`${unit.sha}^:${f.path}`).catch(() => null));
|
|
87702
87711
|
}
|
|
87703
87712
|
const rings = depsForUnit(spine, unit.files.map((f) => f.path), readParent);
|
|
87704
|
-
|
|
87705
|
-
return { declared: rings.declared.map(wire), context: rings.context.map(wire) };
|
|
87713
|
+
return boundedHistorySpine(rings, log);
|
|
87706
87714
|
}
|
|
87707
87715
|
function stage(profile, patch, now) {
|
|
87708
87716
|
const at = now().toISOString();
|
|
@@ -87878,7 +87886,7 @@ async function walk10(root, input, client, opts, readBlob) {
|
|
|
87878
87886
|
...prev ? { after: { sha: prev.sha, subIndex: prev.subIndex } } : {},
|
|
87879
87887
|
...!dryRun && u.index <= anchor.index ? { backfill: { anchorIndex: anchor.index, ...anchor.seq !== void 0 ? { anchorSeq: anchor.seq } : {} } } : {}
|
|
87880
87888
|
};
|
|
87881
|
-
const spine = await spineForUnit(git3, root, u, readBlob);
|
|
87889
|
+
const spine = await spineForUnit(git3, root, u, readBlob, (line) => log(`[errata] history ${u.sha.slice(0, 12)}/${u.subIndex}: ${line}`));
|
|
87882
87890
|
if (spine) body2.spine = spine;
|
|
87883
87891
|
const anchors = opts.anchors ? await historicalAnchors({
|
|
87884
87892
|
root,
|