@threadbase-sh/scanner 0.8.2 → 0.8.3
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/cli.js +5 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Command } from "commander";
|
|
|
5
5
|
import pino2 from "pino";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.8.
|
|
8
|
+
var version = "0.8.3";
|
|
9
9
|
|
|
10
10
|
// src/logger.ts
|
|
11
11
|
import pino from "pino";
|
|
@@ -932,7 +932,10 @@ function classify(filePath, existing) {
|
|
|
932
932
|
}
|
|
933
933
|
return { change: "unchanged", stat: stat3 };
|
|
934
934
|
}
|
|
935
|
-
|
|
935
|
+
if (existing.content_fingerprint && existing.size_bytes === existing.last_indexed_offset && fingerprint(filePath, existing.last_indexed_offset) === existing.content_fingerprint) {
|
|
936
|
+
return { change: "appended", stat: stat3 };
|
|
937
|
+
}
|
|
938
|
+
return { change: "reindex", stat: stat3 };
|
|
936
939
|
}
|
|
937
940
|
|
|
938
941
|
// src/providers/codex-cli.ts
|