@tangle-network/agent-knowledge 17.1.10 → 19.0.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/CHANGELOG.md +35 -0
- package/README.md +18 -5
- package/dist/benchmarks-B3kU-Yxz.js.map +1 -1
- package/dist/cli.js +9 -5
- package/dist/cli.js.map +1 -1
- package/dist/index-DZeFm-BP.d.ts.map +1 -1
- package/dist/index-eDsIXWyM.d.ts.map +1 -1
- package/dist/index.d.ts +480 -482
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +310 -439
- package/dist/index.js.map +1 -1
- package/dist/{inspect-DrJnvx5Z.js → inspect-C6YK7af7.js} +251 -7
- package/dist/inspect-C6YK7af7.js.map +1 -0
- package/dist/memory/index.js +1 -1
- package/dist/{memory-Bn1Xs1hY.js → memory-BYWNir2t.js} +9 -6
- package/dist/{memory-Bn1Xs1hY.js.map → memory-BYWNir2t.js.map} +1 -1
- package/dist/sources/index.d.ts +25 -26
- package/dist/sources/index.d.ts.map +1 -1
- package/dist/sources/index.js +2 -2
- package/dist/sources/index.js.map +1 -1
- package/dist/viz/index.d.ts +9 -10
- package/dist/viz/index.d.ts.map +1 -1
- package/package.json +18 -43
- package/dist/inspect-DrJnvx5Z.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
|
+
## 19.0.0
|
|
2
|
+
|
|
3
|
+
Knowledge tools require the digest from knowledge_read when updating an existing page.
|
|
4
|
+
Stale writes refuse the complete proposal under the shared mutation lock.
|
|
5
|
+
An identical retry preserves the completed write.
|
|
6
|
+
Write transactions retain the host actor and run identity, with unknown authors explicitly null.
|
|
7
|
+
Knowledge tools retain prior and new page bytes by default; applications can explicitly disable history.
|
|
8
|
+
Lower-level proposal writers can select the same conditional-write contract.
|
|
9
|
+
|
|
1
10
|
# Changelog
|
|
2
11
|
|
|
12
|
+
## 18.0.0 — 2026-09-29
|
|
13
|
+
|
|
14
|
+
Require Eval 0.201 through 0.203, Interface 2.15, and TCloud 0.8.
|
|
15
|
+
Require Node.js 22.12 to match TCloud's supported runtime.
|
|
16
|
+
Use Zod 4.6.5 with the Core 0.10 and Trace Contract 2 dependency cohort.
|
|
17
|
+
Knowledge 17 remains the release for older Eval contracts.
|
|
18
|
+
Run packed-package and official optimizer checks against every supported Eval minor.
|
|
19
|
+
Keep knowledge records, source formats, and public knowledge operations unchanged.
|
|
20
|
+
|
|
21
|
+
## 17.1.12 — 2026-09-28
|
|
22
|
+
|
|
23
|
+
Allow consumers to install public Eval 0.200 alongside Knowledge after packed-package checks. Keep the previously supported Eval 0.182 through 0.199 releases; the 0.200.1 development pin replaces 0.199.0.
|
|
24
|
+
Eval 0.201 is not admitted yet: it requires Core 0.10 and Zod 4.6.5, while the Sandbox release TCloud installs still requires Core 0.9 and Zod 4.5.4, so a consumer would hold two copies of each.
|
|
25
|
+
Build with tsdown 0.23 and pnpm 12. The exported symbols and their shapes are unchanged.
|
|
26
|
+
|
|
27
|
+
## 17.1.11 — 2026-09-28
|
|
28
|
+
|
|
29
|
+
Use published TCloud 0.6 for research chat and search.
|
|
30
|
+
Require Interface 2.13 to match the installed Sandbox dependency.
|
|
31
|
+
Keep the public `RouterError`, retry options, and injectable `RouterClient` contract.
|
|
32
|
+
Forward cancellation into HTTP and attribute cost from each response.
|
|
33
|
+
Pass run cancellation through default worker and verifier requests, including claim extraction.
|
|
34
|
+
Stop research after cancellation before fallback queries, source writes, or round events.
|
|
35
|
+
Set `usage().usd` to NaN if a successful response omits its cost receipt.
|
|
36
|
+
Reject search results without URLs and retain the caller-controlled reasoning timeout.
|
|
37
|
+
|
|
3
38
|
## 17.1.10 — 2026-09-27
|
|
4
39
|
|
|
5
40
|
Allow consumers to install public Eval 0.199 alongside Knowledge after packed-package checks. Keep the previously supported Eval 0.182 through 0.198 releases; the 0.199.0 development pin replaces 0.198.0.
|
package/README.md
CHANGED
|
@@ -9,13 +9,16 @@ Supply application callbacks for those decisions, or use `@tangle-network/agent-
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pnpm add @tangle-network/agent-knowledge@
|
|
12
|
+
pnpm add @tangle-network/agent-knowledge@18.0.0 @tangle-network/agent-eval@0.203.0 @tangle-network/agent-interface@2.15.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Requires Node.js
|
|
15
|
+
Requires Node.js 22.12 or later.
|
|
16
16
|
|
|
17
|
-
Eval 0.
|
|
18
|
-
Package and official optimizer checks exercise
|
|
17
|
+
Eval 0.201 through 0.203 are supported.
|
|
18
|
+
Package and official optimizer checks exercise each supported minor; development uses 0.203.0.
|
|
19
|
+
These releases use Core 0.10, Trace Contract 2, and Zod 4.6.5.
|
|
20
|
+
Knowledge 18 requires TCloud 0.8 with Sandbox 0.58.4 or later in that minor.
|
|
21
|
+
Use Knowledge 17 with older Eval releases.
|
|
19
22
|
|
|
20
23
|
## Choose an API
|
|
21
24
|
|
|
@@ -201,11 +204,21 @@ const tools = createKnowledgeTools({
|
|
|
201
204
|
`knowledge_record` writes into this run's store through the intake gate.
|
|
202
205
|
Each proposal must contain complete `---FILE: <page-path>---` / `---END FILE---` blocks, with delimiters on separate lines.
|
|
203
206
|
The tool rejects malformed, unsafe, or empty proposals before writing any pages.
|
|
207
|
+
Read an existing page before editing it.
|
|
208
|
+
Pass expectedPageDigests with the page path and pageDigest returned by knowledge_read.
|
|
209
|
+
The write checks each digest under the store lock.
|
|
210
|
+
A stale edit refuses the whole proposal and names the current digest.
|
|
211
|
+
New pages need no digest; an explicit null requires the path to be absent.
|
|
212
|
+
Retrying an identical completed write is safe.
|
|
204
213
|
It does not report a partial write as tool success.
|
|
205
214
|
The lower-level `applyKnowledgeWriteBlocks` API retains its explicit `written` and `warnings` result for callers that inspect partial proposals.
|
|
206
215
|
`knowledge_resolve` returns the resolution status of each reference.
|
|
207
216
|
|
|
208
|
-
|
|
217
|
+
Knowledge tools retain write history by default.
|
|
218
|
+
Each transaction records the host actorId, runId, and exact prior and new bytes.
|
|
219
|
+
An absent author remains explicitly null.
|
|
220
|
+
An application can disable history with retainHistory: false.
|
|
221
|
+
Lower-level writers opt into history with retainHistory: true and conditional edits with expectedPageDigests.
|
|
209
222
|
Completed write transactions then retain their existing manifest and before/after snapshots under `.agent-knowledge/history/<transactionId>`.
|
|
210
223
|
The move is atomic and a repeated finish after a lost acknowledgement is idempotent.
|
|
211
224
|
The default remains cleanup after completion, so callers choose retention deliberately and account for its unbounded storage growth.
|