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

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.4530" : "2.0.0-alpha.0";
86679
+ var DAEMON_VERSION = true ? "2.0.22-dev.4534" : "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;
@@ -92299,7 +92299,15 @@ var revisionCaches = /* @__PURE__ */ new WeakMap();
92299
92299
  function cachesFor(git3) {
92300
92300
  let caches = revisionCaches.get(git3);
92301
92301
  if (!caches) {
92302
- caches = { parents: new Bounded(4), dependencies: new Bounded(8), trees: new Bounded(4), symbols: new Bounded(4e3), diffs: new Bounded(2e3) };
92302
+ caches = {
92303
+ parents: new Bounded(4),
92304
+ dependencies: new Bounded(8),
92305
+ trees: new Bounded(4),
92306
+ symbols: new Bounded(4e3),
92307
+ diffs: new Bounded(2e3),
92308
+ listings: new Bounded(4),
92309
+ blobs: new Bounded(256)
92310
+ };
92303
92311
  revisionCaches.set(git3, caches);
92304
92312
  }
92305
92313
  return caches;
@@ -92407,12 +92415,34 @@ async function syncHistoryRevisionPage(opts, resolve10) {
92407
92415
  const key = `${root}|${atCommit}|${ignoreKey}|${[...manifestIds].sort().join(",")}`;
92408
92416
  let snapshot = caches.dependencies.get(key);
92409
92417
  if (!snapshot) {
92418
+ const listed = (args2) => {
92419
+ if (args2[0] !== "ls-tree") return git3(args2);
92420
+ const k = `${root}|${args2.join(" ")}`;
92421
+ let out2 = caches.listings.get(k);
92422
+ if (!out2) {
92423
+ out2 = git3(args2);
92424
+ caches.listings.set(k, out2);
92425
+ out2.catch(() => caches.listings.delete(k));
92426
+ }
92427
+ return out2;
92428
+ };
92429
+ const blob = (oid) => {
92430
+ const k = `${root}|${oid}`;
92431
+ let out2 = caches.blobs.get(k);
92432
+ if (!out2) {
92433
+ out2 = git3(["show", oid]);
92434
+ caches.blobs.set(k, out2);
92435
+ out2.catch(() => caches.blobs.delete(k));
92436
+ }
92437
+ return out2;
92438
+ };
92410
92439
  snapshot = readHistoryDependencySnapshot({
92411
92440
  root,
92412
92441
  commit: atCommit,
92413
92442
  side: "after",
92414
92443
  manifestIds,
92415
- git: git3,
92444
+ git: listed,
92445
+ readBlob: blob,
92416
92446
  allowPath: (p) => pathAllowedByFloor(p) && !isPathBlocked(ignore2, p)
92417
92447
  });
92418
92448
  caches.dependencies.set(key, snapshot);
@@ -95284,10 +95314,13 @@ async function startMultiDaemon(opts = {}) {
95284
95314
  };
95285
95315
  app.all("/ws/:id", dispatchHot);
95286
95316
  app.all("/ws/:id/*", dispatchHot);
95317
+ const anchorPullInFlight = /* @__PURE__ */ new Map();
95287
95318
  const retireWorkspace = async (rec, reason) => {
95288
95319
  const idx = records.indexOf(rec);
95289
95320
  if (idx === -1) return;
95290
95321
  records.splice(idx, 1);
95322
+ await anchorPullInFlight.get(rec.root)?.catch(() => {
95323
+ });
95291
95324
  try {
95292
95325
  await rec.engine.stop();
95293
95326
  } catch (err2) {
@@ -95427,7 +95460,6 @@ async function startMultiDaemon(opts = {}) {
95427
95460
  });
95428
95461
  const revisionBacklog = /* @__PURE__ */ new Set();
95429
95462
  const lastAnchorPull = /* @__PURE__ */ new Map();
95430
- const anchorPullInFlight = /* @__PURE__ */ new Map();
95431
95463
  const pullProjectAnchors = (r, client, salt) => {
95432
95464
  const running = anchorPullInFlight.get(r.root);
95433
95465
  if (running) return running;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.22-dev.4530",
3
+ "version": "2.0.22-dev.4534",
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.4530",
3
+ "version": "2.0.22-dev.4534",
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
- 070354c29f752597560a79b2f85cda3b3988bc46099b17b49f95e8ce37fdad47 .codex-plugin/plugin.json
1
+ a7ccdd68670f09f9a8d6888aff3aea5100bd616d3fd76877b8372bdadf019523 .codex-plugin/plugin.json
2
2
  a7bebae9fb01c838d6c75fc784129e28be571233fa66ff5ee8039b574f35ccf7 assets/icon.png
3
3
  fc38b64e4df1e0b72c35764bef6c4c05430d97c9009ad0ecc8a9e75b4deab232 configure-local.mjs
4
4
  73dc6028b3b070257c7c31f252d11e55a9e096f4aed0f187f10cb21716e1e6d7 dist/client.js