@tangle-network/agent-knowledge 19.0.1 → 19.0.2

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.
@@ -42,6 +42,20 @@ Malformed encoded handles fail explicitly. Historical ambiguous handles are not
42
42
  or silently rewritten; retain the original evidence and qualify a new reference from
43
43
  its known origin.
44
44
 
45
+ ## Repeated tool reads
46
+
47
+ Stores created by `createRunScopedStores` reuse immutable page views inside the knowledge tools.
48
+ Every call inventories the configured pages directory under the existing mutation epoch guard.
49
+ File path, inode, size, modification time and change time invalidate a view, including direct Markdown edits, additions, renames and deletions.
50
+ The current store, each ancestor and the shared root are checked separately; lineage is resolved on every call.
51
+
52
+ The cache retains at most eight roots and 64 MiB of source file bytes per stores instance, plus one combined view within those bounds.
53
+ Those are retention limits, not a bound on parsed heap size or transient read memory.
54
+ Public `loadChain` still returns fresh mutable pages, and custom stores retain their existing read behavior.
55
+ An unchanged search reuses its lexical index and exact visibility encoding.
56
+ It still verifies the persisted visibility artifact before recording each new retrieval receipt; reading an existing artifact does not advance the mutation epoch.
57
+ Historical snapshots and receipts keep their existing format and retention.
58
+
45
59
  ## Search and read use the same identity
46
60
 
47
61
  `buildKnowledgeBrief` and `knowledge_search` rank distinct visible documents without
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-knowledge",
3
- "version": "19.0.1",
3
+ "version": "19.0.2",
4
4
  "description": "Build, search, evaluate, and improve source-backed knowledge bases.",
5
5
  "homepage": "https://github.com/tangle-network/agent-knowledge#readme",
6
6
  "repository": {