@inerrata-corporation/errata 2.0.2-dev.513 → 2.0.2-dev.517

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
@@ -29521,6 +29521,7 @@ async function incrementalReindex(store, rootPath, workspaceId2, changedAbsPaths
29521
29521
  };
29522
29522
  }
29523
29523
  const fileHashes = /* @__PURE__ */ new Map();
29524
+ const contentMovedPaths = /* @__PURE__ */ new Set();
29524
29525
  for (const rel of [...changedRelPaths]) {
29525
29526
  let h;
29526
29527
  try {
@@ -29533,6 +29534,8 @@ async function incrementalReindex(store, rootPath, workspaceId2, changedAbsPaths
29533
29534
  if (fnode && fnode.attrs["contentHash"] === h && !fileHasStrandedSymbol(store, fnode.id)) {
29534
29535
  store.updateNode(fnode.id, { lastUpdatedAt: t });
29535
29536
  changedRelPaths.delete(rel);
29537
+ } else if (!fnode || fnode.attrs["contentHash"] !== h) {
29538
+ contentMovedPaths.add(rel);
29536
29539
  }
29537
29540
  }
29538
29541
  if (changedRelPaths.size === 0) {
@@ -29777,12 +29780,11 @@ async function incrementalReindex(store, rootPath, workspaceId2, changedAbsPaths
29777
29780
  if (!h) continue;
29778
29781
  const fnode = store.getNode(fileNodeId(workspaceId2, rel));
29779
29782
  if (!fnode) continue;
29780
- const contentMoved = fnode.attrs["contentHash"] !== h;
29781
29783
  store.updateNode(fnode.id, {
29782
29784
  attrs: {
29783
29785
  ...fnode.attrs,
29784
29786
  contentHash: h,
29785
- ...contentMoved ? { contentChangedAt: t } : {}
29787
+ ...contentMovedPaths.has(rel) ? { contentChangedAt: t } : {}
29786
29788
  }
29787
29789
  });
29788
29790
  }
@@ -53860,7 +53862,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
53860
53862
  }
53861
53863
 
53862
53864
  // src/engine.ts
53863
- var DAEMON_VERSION = true ? "2.0.2-dev.513" : "2.0.0-alpha.0";
53865
+ var DAEMON_VERSION = true ? "2.0.2-dev.517" : "2.0.0-alpha.0";
53864
53866
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
53865
53867
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
53866
53868
  var GIT_OP_MUTE_MS = 4e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.513",
3
+ "version": "2.0.2-dev.517",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
package/pass-worker.mjs CHANGED
@@ -15885,6 +15885,7 @@ async function incrementalReindex(store2, rootPath, workspaceId, changedAbsPaths
15885
15885
  };
15886
15886
  }
15887
15887
  const fileHashes = /* @__PURE__ */ new Map();
15888
+ const contentMovedPaths = /* @__PURE__ */ new Set();
15888
15889
  for (const rel of [...changedRelPaths]) {
15889
15890
  let h;
15890
15891
  try {
@@ -15897,6 +15898,8 @@ async function incrementalReindex(store2, rootPath, workspaceId, changedAbsPaths
15897
15898
  if (fnode && fnode.attrs["contentHash"] === h && !fileHasStrandedSymbol(store2, fnode.id)) {
15898
15899
  store2.updateNode(fnode.id, { lastUpdatedAt: t });
15899
15900
  changedRelPaths.delete(rel);
15901
+ } else if (!fnode || fnode.attrs["contentHash"] !== h) {
15902
+ contentMovedPaths.add(rel);
15900
15903
  }
15901
15904
  }
15902
15905
  if (changedRelPaths.size === 0) {
@@ -16141,12 +16144,11 @@ async function incrementalReindex(store2, rootPath, workspaceId, changedAbsPaths
16141
16144
  if (!h) continue;
16142
16145
  const fnode = store2.getNode(fileNodeId(workspaceId, rel));
16143
16146
  if (!fnode) continue;
16144
- const contentMoved = fnode.attrs["contentHash"] !== h;
16145
16147
  store2.updateNode(fnode.id, {
16146
16148
  attrs: {
16147
16149
  ...fnode.attrs,
16148
16150
  contentHash: h,
16149
- ...contentMoved ? { contentChangedAt: t } : {}
16151
+ ...contentMovedPaths.has(rel) ? { contentChangedAt: t } : {}
16150
16152
  }
16151
16153
  });
16152
16154
  }