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.
- package/.agents/adapters/contract.md +7 -0
- package/.agents/rules/METADATA.md +33 -0
- package/.agents/skills/decision/SKILL.md +4 -0
- package/.agents/skills/journal/SKILL.md +4 -0
- package/.agents/skills/journal-workflow/SKILL.md +16 -0
- package/.agents/skills/recall/SKILL.md +18 -0
- package/.grokbot/README.md +10 -0
- package/README.md +15 -6
- package/bin/journal.js +37 -4
- package/docs/architecture.md +14 -1
- package/docs/djournal-in-practice.md +2 -0
- package/docs/grok-bot.md +80 -0
- package/docs/installation.md +18 -3
- package/docs/read-only-team-journal.md +2 -1
- package/docs/recall.md +120 -0
- package/docs/remote-sync.md +1 -1
- package/docs/uninstalling.md +5 -2
- package/integrations/grok-bot/README.md +50 -0
- package/integrations/grok-bot/checkup.md +41 -0
- package/integrations/grok-bot/getting-started.md +50 -0
- package/integrations/grok-bot/peer-briefing.md +22 -0
- package/integrations/grok-bot/skill-registration.md +61 -0
- package/lib/installer/index.js +65 -1
- package/lib/recall/corpus.js +4 -0
- package/lib/recall/files.js +247 -0
- package/lib/recall/index.js +20 -1
- package/lib/recall/snapshot.js +8 -2
- package/package.json +4 -2
package/lib/recall/snapshot.js
CHANGED
|
@@ -18,7 +18,9 @@ const {
|
|
|
18
18
|
serializeSearchIndex,
|
|
19
19
|
} = require("./search.js");
|
|
20
20
|
|
|
21
|
-
const
|
|
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
|
|
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.
|
|
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": {
|