@inerrata-corporation/errata 2.0.22-dev.4534 → 2.0.22-dev.4540

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 CHANGED
@@ -86676,7 +86676,7 @@ function createWatchBreaker(deps) {
86676
86676
  }
86677
86677
 
86678
86678
  // src/engine.ts
86679
- var DAEMON_VERSION = true ? "2.0.22-dev.4534" : "2.0.0-alpha.0";
86679
+ var DAEMON_VERSION = true ? "2.0.22-dev.4540" : "2.0.0-alpha.0";
86680
86680
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
86681
86681
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
86682
86682
  var GIT_OP_MUTE_MS = 4e3;
@@ -92471,9 +92471,9 @@ async function syncHistoryRevisionPage(opts, resolve10) {
92471
92471
  const path3 = local?.attrs["relPath"];
92472
92472
  if (typeof path3 !== "string" || !pathAllowedByFloor(path3) || isPathBlocked(ignore2, path3) || /[\r\n]/.test(path3)) continue;
92473
92473
  paths.add(path3);
92474
- const hashes = await fileSymbols({ caches, providers, root, salt, projectId }, path3, fileId(path3), () => git3(["show", `${atCommit}:${path3}`]));
92475
- if (!hashes) partial2 = true;
92476
- const bodyHash = hashes?.get(anchor.symbolId);
92474
+ const file2 = await fileSymbols({ caches, providers, root, salt, projectId }, path3, fileId(path3), () => git3(["show", `${atCommit}:${path3}`]));
92475
+ if (!file2) partial2 = true;
92476
+ const bodyHash = file2?.hashes.get(anchor.symbolId);
92477
92477
  if (bodyHash) symbols.push({ symbolId: anchor.symbolId, bodyHash });
92478
92478
  }
92479
92479
  const source = occurrenceSourceCommit(occurrence);
@@ -92576,22 +92576,28 @@ async function fileSymbols(ctx, path3, fileId, read2) {
92576
92576
  const fileKey = `${ctx.root}|${ctx.salt}|${ctx.projectId}|${fileId}|${path3}`;
92577
92577
  const cached2 = ctx.caches.symbols.get(fileKey);
92578
92578
  if (cached2) return cached2;
92579
- const hashes = /* @__PURE__ */ new Map();
92579
+ const out2 = { ids: /* @__PURE__ */ new Set(), hashes: /* @__PURE__ */ new Map(), parsed: true };
92580
92580
  const provider = ctx.providers.find((p) => p.fileExtensions.includes(extname3(path3).toLowerCase()));
92581
92581
  if (!provider) {
92582
- ctx.caches.symbols.set(fileKey, hashes);
92583
- return hashes;
92582
+ ctx.caches.symbols.set(fileKey, out2);
92583
+ return out2;
92584
92584
  }
92585
92585
  const source = await read2().catch(() => null);
92586
92586
  if (source === null) return void 0;
92587
- ctx.caches.symbols.set(fileKey, hashes);
92588
- if (Buffer.byteLength(source) > 1e6 || source.includes("\0")) return hashes;
92587
+ ctx.caches.symbols.set(fileKey, out2);
92588
+ if (Buffer.byteLength(source) > 1e6 || source.includes("\0")) {
92589
+ out2.parsed = false;
92590
+ return out2;
92591
+ }
92589
92592
  await provider.preload?.();
92590
92593
  for (const symbol2 of provider.extractSymbols(source, path3)) {
92591
92594
  const kind = KINDS[symbol2.kind];
92592
- if (kind && symbol2.bodyHash) hashes.set(projectSymbolId(ctx.salt, ctx.projectId, path3, symbol2.qname ?? symbol2.name, kind), symbol2.bodyHash);
92595
+ if (!kind) continue;
92596
+ const id = projectSymbolId(ctx.salt, ctx.projectId, path3, symbol2.qname ?? symbol2.name, kind);
92597
+ out2.ids.add(id);
92598
+ if (symbol2.bodyHash) out2.hashes.set(id, symbol2.bodyHash);
92593
92599
  }
92594
- return hashes;
92600
+ return out2;
92595
92601
  }
92596
92602
  var CARRY_MAX_CODE_FILES = 400;
92597
92603
  var CARRY_MAX_SYMBOLS = 5e3;
@@ -92626,12 +92632,12 @@ ${await git3(["rev-list", "--parents", "-1", from])}`.split("\n").map((row) => r
92626
92632
  }
92627
92633
  for (const change of allSymbols ? [] : code) {
92628
92634
  for (const blob of change.blobs) {
92629
- const hashes = await fileSymbols(o, change.path, blob, () => git3(["show", blob]));
92630
- if (!hashes) {
92635
+ const file2 = await fileSymbols(o, change.path, blob, () => git3(["show", blob]));
92636
+ if (!file2 || !file2.parsed) {
92631
92637
  allSymbols = true;
92632
92638
  break;
92633
92639
  }
92634
- for (const id of hashes.keys()) symbols.add(id);
92640
+ for (const id of file2.ids) symbols.add(id);
92635
92641
  }
92636
92642
  if (allSymbols) break;
92637
92643
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.22-dev.4534",
3
+ "version": "2.0.22-dev.4540",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "errata-context",
3
- "version": "2.0.22-dev.4534",
3
+ "version": "2.0.22-dev.4540",
4
4
  "description": "A minimal 3D view of loaded Errata priors and recent graph bursts.",
5
5
  "author": {
6
6
  "name": "inErrata"
@@ -1,4 +1,4 @@
1
- a7ccdd68670f09f9a8d6888aff3aea5100bd616d3fd76877b8372bdadf019523 .codex-plugin/plugin.json
1
+ 49972879e17f1037397b0fe434c6c78f4d41ae4458de157acb01a2e5a7208033 .codex-plugin/plugin.json
2
2
  a7bebae9fb01c838d6c75fc784129e28be571233fa66ff5ee8039b574f35ccf7 assets/icon.png
3
3
  fc38b64e4df1e0b72c35764bef6c4c05430d97c9009ad0ecc8a9e75b4deab232 configure-local.mjs
4
4
  73dc6028b3b070257c7c31f252d11e55a9e096f4aed0f187f10cb21716e1e6d7 dist/client.js