@tangle-network/agent-knowledge 17.0.1 → 17.1.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 +21 -0
- package/README.md +8 -1
- package/dist/benchmarks/index.js +1 -1
- package/dist/{benchmarks-BbPJdmHe.js → benchmarks-B3kU-Yxz.js} +2 -2
- package/dist/{benchmarks-BbPJdmHe.js.map → benchmarks-B3kU-Yxz.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +62 -21
- package/dist/index.js.map +1 -1
- package/dist/{inspect-Dn7xCZLn.js → inspect-DrJnvx5Z.js} +27 -4
- package/dist/inspect-DrJnvx5Z.js.map +1 -0
- package/dist/memory/index.js +2 -2
- package/dist/{memory-ce9n5O24.js → memory-Bn1Xs1hY.js} +2 -2
- package/dist/{memory-ce9n5O24.js.map → memory-Bn1Xs1hY.js.map} +1 -1
- package/dist/{search-Cw6eYfSd.js → search-Cbyj2shJ.js} +16 -11
- package/dist/search-Cbyj2shJ.js.map +1 -0
- package/docs/run-scoped-citations.md +30 -0
- package/package.json +2 -2
- package/dist/inspect-Dn7xCZLn.js.map +0 -1
- package/dist/search-Cw6eYfSd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.1.0
|
|
4
|
+
|
|
5
|
+
- Preserve document identity through reciprocal-rank fusion; same-id pages from different origins can no longer replace matching bytes.
|
|
6
|
+
- Build run-scoped citation handles and graph edges through the existing citation resolver. Unique ids remain unchanged; ambiguous origins are explicit and every returned handle resolves to the page actually ranked.
|
|
7
|
+
- Expose existing invalidation, tag and kind filters to `knowledge_search` without changing its defaults, write intake, or access scope.
|
|
8
|
+
- Share one typed reciprocal-rank fusion implementation between document ranking and the unchanged public string-key helper.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 17.0.3 — 2026-09-20
|
|
12
|
+
|
|
13
|
+
Allow consumers to install Eval 0.182 or 0.183 alongside Knowledge.
|
|
14
|
+
Run packed-package and official optimizer checks against both releases.
|
|
15
|
+
The development dependency remains 0.182.0.
|
|
16
|
+
|
|
17
|
+
## 17.0.2 — 2026-09-16
|
|
18
|
+
|
|
19
|
+
`knowledge_record` documents the complete FILE block grammar and rejects malformed, unsafe, or empty proposals before writing.
|
|
20
|
+
The parser no longer absorbs a later page into an unterminated earlier block.
|
|
21
|
+
Delimiters inside code fences remain page content.
|
|
22
|
+
Direct `applyKnowledgeWriteBlocks` callers retain the explicit partial-result contract and must inspect `written` and `warnings`.
|
|
23
|
+
|
|
3
24
|
## 17.0.1 — 2026-09-15
|
|
4
25
|
|
|
5
26
|
Requires Eval `>=0.182.0 <0.183.0` and tests against 0.182.0.
|
package/README.md
CHANGED
|
@@ -9,11 +9,14 @@ 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@17.0
|
|
12
|
+
pnpm add @tangle-network/agent-knowledge@17.1.0 @tangle-network/agent-eval@0.183.0 @tangle-network/agent-interface@2.10.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Requires Node.js 20.19 or later.
|
|
16
16
|
|
|
17
|
+
Eval 0.182 and 0.183 are supported.
|
|
18
|
+
Package and official optimizer checks exercise both released minors; development remains pinned to 0.182.0.
|
|
19
|
+
|
|
17
20
|
## Choose an API
|
|
18
21
|
|
|
19
22
|
| Goal | Start with | Import |
|
|
@@ -196,6 +199,10 @@ const tools = createKnowledgeTools({
|
|
|
196
199
|
`knowledge_search` builds a brief and mints a retrieval receipt on every call, so retrieval is recorded by the infrastructure rather than claimed by the run.
|
|
197
200
|
`knowledge_read` reports an id visible at two origins as `ambiguous` with both candidates, and never chooses one.
|
|
198
201
|
`knowledge_record` writes into this run's store through the intake gate.
|
|
202
|
+
Each proposal must contain complete `---FILE: <page-path>---` / `---END FILE---` blocks, with delimiters on separate lines.
|
|
203
|
+
The tool rejects malformed, unsafe, or empty proposals before writing any pages.
|
|
204
|
+
It does not report a partial write as tool success.
|
|
205
|
+
The lower-level `applyKnowledgeWriteBlocks` API retains its explicit `written` and `warnings` result for callers that inspect partial proposals.
|
|
199
206
|
`knowledge_resolve` returns the resolution status of each reference.
|
|
200
207
|
|
|
201
208
|
When a pursuit must preserve every edit for later refinement or branch reconciliation, pass `retainHistory: true`.
|
package/dist/benchmarks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { F as buildIndustryRagBenchmarkSmokeCases, H as createNoopMemoryBenchmarkAdapter, I as respondToIndustryMemoryBenchmarkSmokeCase, L as respondToIndustryRagBenchmarkSmokeCase, M as INDUSTRY_RAG_BENCHMARKS, N as buildFirstPartyMemoryLifecycleBenchmarkCases, P as buildIndustryMemoryBenchmarkSmokeCases, R as isKnowledgeMemoryBenchmarkCase, V as createInMemoryBenchmarkAdapter, a as buildKnowledgeBenchmarkScenarios, c as runKnowledgeBenchmarkSuite, d as summarizeKnowledgeBenchmarkCampaign, i as runMemoryAdapterBenchmark, j as INDUSTRY_MEMORY_BENCHMARKS, l as scoreKnowledgeBenchmarkArtifact, n as parseKnowledgeBenchmarkJsonl, o as knowledgeBenchmarkJudge, r as parseKnowledgeBenchmarkQrels, s as renderKnowledgeBenchmarkReportMarkdown, t as buildRetrievalBenchmarkCasesFromQrels, u as scoreMemoryBenchmarkArtifact } from "../benchmarks-
|
|
1
|
+
import { F as buildIndustryRagBenchmarkSmokeCases, H as createNoopMemoryBenchmarkAdapter, I as respondToIndustryMemoryBenchmarkSmokeCase, L as respondToIndustryRagBenchmarkSmokeCase, M as INDUSTRY_RAG_BENCHMARKS, N as buildFirstPartyMemoryLifecycleBenchmarkCases, P as buildIndustryMemoryBenchmarkSmokeCases, R as isKnowledgeMemoryBenchmarkCase, V as createInMemoryBenchmarkAdapter, a as buildKnowledgeBenchmarkScenarios, c as runKnowledgeBenchmarkSuite, d as summarizeKnowledgeBenchmarkCampaign, i as runMemoryAdapterBenchmark, j as INDUSTRY_MEMORY_BENCHMARKS, l as scoreKnowledgeBenchmarkArtifact, n as parseKnowledgeBenchmarkJsonl, o as knowledgeBenchmarkJudge, r as parseKnowledgeBenchmarkQrels, s as renderKnowledgeBenchmarkReportMarkdown, t as buildRetrievalBenchmarkCasesFromQrels, u as scoreMemoryBenchmarkArtifact } from "../benchmarks-B3kU-Yxz.js";
|
|
2
2
|
export { INDUSTRY_MEMORY_BENCHMARKS, INDUSTRY_RAG_BENCHMARKS, buildFirstPartyMemoryLifecycleBenchmarkCases, buildIndustryMemoryBenchmarkSmokeCases, buildIndustryRagBenchmarkSmokeCases, buildKnowledgeBenchmarkScenarios, buildRetrievalBenchmarkCasesFromQrels, createInMemoryBenchmarkAdapter, createNoopMemoryBenchmarkAdapter, isKnowledgeMemoryBenchmarkCase, knowledgeBenchmarkJudge, parseKnowledgeBenchmarkJsonl, parseKnowledgeBenchmarkQrels, renderKnowledgeBenchmarkReportMarkdown, respondToIndustryMemoryBenchmarkSmokeCase, respondToIndustryRagBenchmarkSmokeCase, runKnowledgeBenchmarkSuite, runMemoryAdapterBenchmark, scoreKnowledgeBenchmarkArtifact, scoreMemoryBenchmarkArtifact, summarizeKnowledgeBenchmarkCampaign };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as stableId, t as sha256 } from "./ids-Bevz_pXV.js";
|
|
2
|
-
import { r as searchKnowledge } from "./search-
|
|
2
|
+
import { r as searchKnowledge } from "./search-Cbyj2shJ.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { canonicalJson } from "@tangle-network/agent-eval";
|
|
@@ -2821,4 +2821,4 @@ function defaultDocumentTarget(documentId, targetKind) {
|
|
|
2821
2821
|
//#endregion
|
|
2822
2822
|
export { reserveRecoveryAttempts as A, rankCandidates as B, sleepForMemoryRecovery as C, hasSettledPaidCall as D, assertNoInterruptedPaidCalls as E, buildIndustryRagBenchmarkSmokeCases as F, buildRetrievalEvalDispatch as G, createNoopMemoryBenchmarkAdapter as H, respondToIndustryMemoryBenchmarkSmokeCase as I, retrievalConfigSurface as J, partitionRetrievalScenarios as K, respondToIndustryRagBenchmarkSmokeCase as L, INDUSTRY_RAG_BENCHMARKS as M, buildFirstPartyMemoryLifecycleBenchmarkCases as N, readActiveAttemptJournal as O, buildIndustryMemoryBenchmarkSmokeCases as P, isKnowledgeMemoryBenchmarkCase as R, runBoundedMemoryLifecycle as S, appendDurableJournalEvent as T, memoryHitToSourceRecord as U, createInMemoryBenchmarkAdapter as V, memoryWriteResultToSourceRecord as W, scoreRetrievalArtifact as X, retrievalRecallJudge as Y, mean as Z, MEMORY_OPERATION_CANCELLATION_TIMEOUT_MS as _, buildKnowledgeBenchmarkScenarios as a, memoryRecoveryDelayMs as b, runKnowledgeBenchmarkSuite as c, summarizeKnowledgeBenchmarkCampaign as d, acquireAgentMemoryRunLease as f, MEMORY_CAMPAIGN_DISPATCH_SHUTDOWN_TIMEOUT_MS as g, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS as h, runMemoryAdapterBenchmark as i, INDUSTRY_MEMORY_BENCHMARKS as j, reconcileInterruptedMemoryPaidCalls as k, scoreKnowledgeBenchmarkArtifact as l, AgentMemoryLifecycleUnsafeError as m, parseKnowledgeBenchmarkJsonl as n, knowledgeBenchmarkJudge as o, AgentMemoryLifecycleTimeoutError as p, retrievalConfigFromSurface as q, parseKnowledgeBenchmarkQrels as r, renderKnowledgeBenchmarkReportMarkdown as s, buildRetrievalBenchmarkCasesFromQrels as t, scoreMemoryBenchmarkArtifact as u, createBoundedMemoryAdapter as v, appendAttemptJournalEvent as w, resolveMemoryCleanupTimeoutMs as x, createMemoryExecutionPool as y, normalizeUsd as z };
|
|
2823
2823
|
|
|
2824
|
-
//# sourceMappingURL=benchmarks-
|
|
2824
|
+
//# sourceMappingURL=benchmarks-B3kU-Yxz.js.map
|