@threadbase-sh/scanner 0.8.2 → 0.8.4

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/dist/index.js CHANGED
@@ -1238,7 +1238,10 @@ function classify(filePath, existing) {
1238
1238
  }
1239
1239
  return { change: "unchanged", stat: stat3 };
1240
1240
  }
1241
- return { change: "appended", stat: stat3 };
1241
+ if (existing.content_fingerprint && existing.size_bytes === existing.last_indexed_offset && fingerprint(filePath, existing.last_indexed_offset) === existing.content_fingerprint) {
1242
+ return { change: "appended", stat: stat3 };
1243
+ }
1244
+ return { change: "reindex", stat: stat3 };
1242
1245
  }
1243
1246
 
1244
1247
  // src/providers/parse.ts
@@ -2664,7 +2667,7 @@ var ConversationScanner = class {
2664
2667
  this.lastTier.name,
2665
2668
  void 0,
2666
2669
  readGitBranch,
2667
- true,
2670
+ false,
2668
2671
  provider
2669
2672
  );
2670
2673
  evict2(meta2);