djournal 0.9.1 → 0.11.0

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.
@@ -18,7 +18,9 @@ const {
18
18
  serializeSearchIndex,
19
19
  } = require("./search.js");
20
20
 
21
- const SNAPSHOT_SCHEMA_VERSION = 1;
21
+ const { EXTRACTOR_VERSION, buildPathIndex, validPathIndex } = require("./files.js");
22
+
23
+ const SNAPSHOT_SCHEMA_VERSION = 2;
22
24
  const MAX_SNAPSHOT_BYTES = 256 * 1024 * 1024;
23
25
  const LOCK_STALE_MS = 30_000;
24
26
 
@@ -55,7 +57,7 @@ function validateSnapshot(value, context) {
55
57
  if (value.schemaVersion !== SNAPSHOT_SCHEMA_VERSION || value.indexVersion !== INDEX_VERSION) return false;
56
58
  if (value.projectKey !== projectIdentity(context) || typeof value.builtAt !== "string") return false;
57
59
  if (!validManifest(value.files) || !value.documents || typeof value.documents !== "object" || !value.index) return false;
58
- return true;
60
+ return validPathIndex(value);
59
61
  }
60
62
 
61
63
  function loadSnapshot(context, options = {}) {
@@ -176,6 +178,8 @@ function snapshotFromRecords(context, records, index) {
176
178
  }
177
179
  return {
178
180
  schemaVersion: SNAPSHOT_SCHEMA_VERSION,
181
+ extractorVersion: EXTRACTOR_VERSION,
182
+ pathIndex: buildPathIndex(documents),
179
183
  indexVersion: INDEX_VERSION,
180
184
  projectKey: projectIdentity(context),
181
185
  builtAt: new Date().toISOString(),
@@ -245,6 +249,8 @@ function incrementalBuild(context, prior, discovery) {
245
249
 
246
250
  const snapshot = {
247
251
  schemaVersion: SNAPSHOT_SCHEMA_VERSION,
252
+ extractorVersion: EXTRACTOR_VERSION,
253
+ pathIndex: buildPathIndex(documents),
248
254
  indexVersion: INDEX_VERSION,
249
255
  projectKey: projectIdentity(context),
250
256
  builtAt: new Date().toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djournal",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "description": "Durable project memory for coding agents, stored as linked Markdown",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -11,7 +11,9 @@
11
11
  ".agents/",
12
12
  ".claude/",
13
13
  ".codex/",
14
+ ".grokbot/",
14
15
  ".pi/",
16
+ "integrations/",
15
17
  "AGENTS.md",
16
18
  "CLAUDE.md",
17
19
  "LICENSE",
@@ -27,7 +29,7 @@
27
29
  "benchmark:recall": "node scripts/benchmark-recall.cjs",
28
30
  "link:global": "npm link",
29
31
  "release": "semantic-release",
30
- "test": "node tests/update-checker.test.js && node tests/journal-hook.test.js && node tests/pi-adapter.test.js && node tests/recall.test.js && node tests/installer/installer.test.js && node tests/release-policy.test.js && node tests/skill-instructions.test.js && npm run check:package",
32
+ "test": "node tests/update-checker.test.js && node tests/journal-hook.test.js && node tests/pi-adapter.test.js && node tests/recall.test.js && node tests/recall-files.test.js && node tests/installer/installer.test.js && node tests/release-policy.test.js && node tests/skill-instructions.test.js && npm run check:package",
31
33
  "prepublishOnly": "npm test"
32
34
  },
33
35
  "repository": {