@inerrata-corporation/errata 2.0.6-dev.2047 → 2.0.6-dev.2063
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 +12 -3
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -77047,7 +77047,7 @@ function createWatchBreaker(deps) {
|
|
|
77047
77047
|
}
|
|
77048
77048
|
|
|
77049
77049
|
// src/engine.ts
|
|
77050
|
-
var DAEMON_VERSION = true ? "2.0.6-dev.
|
|
77050
|
+
var DAEMON_VERSION = true ? "2.0.6-dev.2063" : "2.0.0-alpha.0";
|
|
77051
77051
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
77052
77052
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
77053
77053
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -82243,6 +82243,7 @@ async function spineForUnit(git3, root, unit) {
|
|
|
82243
82243
|
const wire = (d) => ({ ecosystem: d.ecosystem, name: d.name, version: d.version, kind: d.kind, manifest: d.manifest });
|
|
82244
82244
|
return { declared: rings.declared.map(wire), context: rings.context.map(wire) };
|
|
82245
82245
|
}
|
|
82246
|
+
var HEX_BODY_HASH = /^[0-9a-f]{8,64}$/;
|
|
82246
82247
|
function anchorsFor(pathTokens, ignoreLines, projectId, anchors) {
|
|
82247
82248
|
if (!anchors) return void 0;
|
|
82248
82249
|
const out2 = {};
|
|
@@ -82254,7 +82255,12 @@ function anchorsFor(pathTokens, ignoreLines, projectId, anchors) {
|
|
|
82254
82255
|
for (const n of nodes) {
|
|
82255
82256
|
const qname = n.attrs["qname"];
|
|
82256
82257
|
if (typeof qname !== "string") continue;
|
|
82257
|
-
|
|
82258
|
+
const bodyHash = n.attrs["bodyHash"];
|
|
82259
|
+
list.push({
|
|
82260
|
+
symbolId: projectSymbolId(anchors.salt, projectId, relPath, qname, n.label),
|
|
82261
|
+
kind: n.label,
|
|
82262
|
+
...typeof bodyHash === "string" && HEX_BODY_HASH.test(bodyHash) ? { contentHash: bodyHash } : {}
|
|
82263
|
+
});
|
|
82258
82264
|
if (list.length >= MAX_ANCHORS_PER_TOKEN) break;
|
|
82259
82265
|
}
|
|
82260
82266
|
if (list.length > 0) out2[token] = list;
|
|
@@ -82362,7 +82368,10 @@ async function runHistoryWalk(root, input, client, opts = {}) {
|
|
|
82362
82368
|
const spine = await spineForUnit(git3, root, u);
|
|
82363
82369
|
if (spine) body2.spine = spine;
|
|
82364
82370
|
const anchors = anchorsFor(bundle.pathTokens, ignoreLines, projectId, opts.anchors);
|
|
82365
|
-
if (anchors)
|
|
82371
|
+
if (anchors) {
|
|
82372
|
+
body2.anchors = anchors;
|
|
82373
|
+
body2.observedAtCommit = headSha;
|
|
82374
|
+
}
|
|
82366
82375
|
profile = stage(profile, { state: dryRun ? "extracting" : "contributing", unitsDone: doneSoFar - 1, lastError: void 0 }, now);
|
|
82367
82376
|
persist(profile);
|
|
82368
82377
|
response = await reportHistoryStage(client, profile, log);
|