@inerrata-corporation/errata 2.0.6-dev.2047 → 2.0.6-dev.2069

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.
Files changed (2) hide show
  1. package/errata.mjs +21 -3
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -591,6 +591,15 @@ var init_graph_events = __esm({
591
591
  prefixes: ["promotion."],
592
592
  consumer: "graph-health.mjs promotion triggers (receipt-absence floor, kCountErrors > 0) + probe:mechanism-liveness reading the durable pgboss.job.output twin"
593
593
  },
594
+ "graph.mergegate": {
595
+ // The nightly merge gate (reconcile Phase 2 claims + dream-merge), one
596
+ // event per nightly run: mergegate.<lane>.{merged,refused,truncated,...}.
597
+ // refused is the deferred-recovery backlog (pairs above threshold the
598
+ // judge or a veto kept apart), measured so the recovery follow-up starts
599
+ // from a number.
600
+ prefixes: ["mergegate."],
601
+ consumer: "graph-health.mjs 'Graph merge gate' triggers (truncation + refused backlog, pending a live baseline) beside ingest.judge.*"
602
+ },
594
603
  "graph.census": {
595
604
  prefixes: [
596
605
  "nodes.",
@@ -77047,7 +77056,7 @@ function createWatchBreaker(deps) {
77047
77056
  }
77048
77057
 
77049
77058
  // src/engine.ts
77050
- var DAEMON_VERSION = true ? "2.0.6-dev.2047" : "2.0.0-alpha.0";
77059
+ var DAEMON_VERSION = true ? "2.0.6-dev.2069" : "2.0.0-alpha.0";
77051
77060
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
77052
77061
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
77053
77062
  var GIT_OP_MUTE_MS = 4e3;
@@ -82243,6 +82252,7 @@ async function spineForUnit(git3, root, unit) {
82243
82252
  const wire = (d) => ({ ecosystem: d.ecosystem, name: d.name, version: d.version, kind: d.kind, manifest: d.manifest });
82244
82253
  return { declared: rings.declared.map(wire), context: rings.context.map(wire) };
82245
82254
  }
82255
+ var HEX_BODY_HASH = /^[0-9a-f]{8,64}$/;
82246
82256
  function anchorsFor(pathTokens, ignoreLines, projectId, anchors) {
82247
82257
  if (!anchors) return void 0;
82248
82258
  const out2 = {};
@@ -82254,7 +82264,12 @@ function anchorsFor(pathTokens, ignoreLines, projectId, anchors) {
82254
82264
  for (const n of nodes) {
82255
82265
  const qname = n.attrs["qname"];
82256
82266
  if (typeof qname !== "string") continue;
82257
- list.push({ symbolId: projectSymbolId(anchors.salt, projectId, relPath, qname, n.label), kind: n.label });
82267
+ const bodyHash = n.attrs["bodyHash"];
82268
+ list.push({
82269
+ symbolId: projectSymbolId(anchors.salt, projectId, relPath, qname, n.label),
82270
+ kind: n.label,
82271
+ ...typeof bodyHash === "string" && HEX_BODY_HASH.test(bodyHash) ? { contentHash: bodyHash } : {}
82272
+ });
82258
82273
  if (list.length >= MAX_ANCHORS_PER_TOKEN) break;
82259
82274
  }
82260
82275
  if (list.length > 0) out2[token] = list;
@@ -82362,7 +82377,10 @@ async function runHistoryWalk(root, input, client, opts = {}) {
82362
82377
  const spine = await spineForUnit(git3, root, u);
82363
82378
  if (spine) body2.spine = spine;
82364
82379
  const anchors = anchorsFor(bundle.pathTokens, ignoreLines, projectId, opts.anchors);
82365
- if (anchors) body2.anchors = anchors;
82380
+ if (anchors) {
82381
+ body2.anchors = anchors;
82382
+ body2.observedAtCommit = headSha;
82383
+ }
82366
82384
  profile = stage(profile, { state: dryRun ? "extracting" : "contributing", unitsDone: doneSoFar - 1, lastError: void 0 }, now);
82367
82385
  persist(profile);
82368
82386
  response = await reportHistoryStage(client, profile, log);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.6-dev.2047",
3
+ "version": "2.0.6-dev.2069",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {