@tangle-network/agent-knowledge 3.2.1 → 4.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/dist/index.d.ts CHANGED
@@ -4,12 +4,11 @@ import { KnowledgeRequirementCategory, KnowledgeAcquisitionMode, KnowledgeImport
4
4
  import { AgentImprovementActivation, AgentImprovementActivationResult, AgentCandidateKnowledgeRef } from '@tangle-network/agent-interface';
5
5
  import { z } from 'zod';
6
6
  import { JsonValue, Scenario, JudgeConfig } from '@tangle-network/agent-eval/campaign';
7
- import { R as RunRetrievalImprovementLoopResult, a as RunRetrievalImprovementLoopOptions } from './index-BHQk7jOT.js';
8
- export { B as BuildRetrievalBenchmarkCasesFromQrelsOptions, b as BuildRetrievalEvalDispatchOptions, c as BuildRetrievalParameterCandidatesOptions, I as INDUSTRY_MEMORY_BENCHMARKS, d as INDUSTRY_RAG_BENCHMARKS, K as KnowledgeAnswerBenchmarkCase, e as KnowledgeAnswerBenchmarkTaskKind, f as KnowledgeBenchmarkArtifact, g as KnowledgeBenchmarkCase, h as KnowledgeBenchmarkCaseBase, i as KnowledgeBenchmarkDistribution, j as KnowledgeBenchmarkEvaluation, k as KnowledgeBenchmarkFamily, l as KnowledgeBenchmarkReport, m as KnowledgeBenchmarkResponder, n as KnowledgeBenchmarkScenario, o as KnowledgeBenchmarkSliceSummary, p as KnowledgeBenchmarkSource, q as KnowledgeBenchmarkSpec, r as KnowledgeBenchmarkSplit, s as KnowledgeBenchmarkTaskKind, t as KnowledgeClaimMatcher, u as KnowledgeMemoryBenchmarkCase, v as KnowledgeMemoryBenchmarkTaskKind, w as KnowledgeMemoryEvent, x as KnowledgeMemoryFactMatcher, y as KnowledgeRetrievalBenchmarkCase, z as KnowledgeRetrievalBenchmarkQrel, A as KnowledgeRetrievalBenchmarkQuery, M as MemoryAdapterBenchmarkCandidate, C as MemoryAdapterBenchmarkRankingRow, D as RetrievalConfig, E as RetrievalEvalArtifact, F as RetrievalEvalRetriever, G as RetrievalEvalRetrieverInput, H as RetrievalEvalRetrieverResult, J as RetrievalEvalScenario, L as RetrievalGoldTarget, N as RetrievalMetricSummary, O as RetrievalMetricWeights, P as RetrievalParameterSearchSpace, Q as RetrievalParameterSweepProposerOptions, S as RetrievalRecallJudgeOptions, T as RetrievedKnowledgeHit, U as RetrievedSourceSpan, V as RunKnowledgeBenchmarkSuiteOptions, W as RunKnowledgeBenchmarkSuiteResult, X as RunMemoryAdapterBenchmarkOptions, Y as RunMemoryAdapterBenchmarkResult, Z as buildFirstPartyMemoryLifecycleBenchmarkCases, _ as buildIndustryMemoryBenchmarkSmokeCases, $ as buildIndustryRagBenchmarkSmokeCases, a0 as buildKnowledgeBenchmarkScenarios, a1 as buildRetrievalBenchmarkCasesFromQrels, a2 as buildRetrievalEvalDispatch, a3 as buildRetrievalParameterCandidates, a4 as createInMemoryBenchmarkAdapter, a5 as createMemoryAdapterBenchmarkResponder, a6 as createNoopMemoryBenchmarkAdapter, a7 as isKnowledgeMemoryBenchmarkCase, a8 as knowledgeBenchmarkJudge, a9 as parseKnowledgeBenchmarkJsonl, aa as parseKnowledgeBenchmarkQrels, ab as renderKnowledgeBenchmarkReportMarkdown, ac as respondToIndustryMemoryBenchmarkSmokeCase, ad as respondToIndustryRagBenchmarkSmokeCase, ae as retrievalConfigFromSurface, af as retrievalConfigSurface, ag as retrievalParameterSweepProposer, ah as retrievalRecallJudge, ai as runKnowledgeBenchmarkSuite, aj as runMemoryAdapterBenchmark, ak as runRetrievalImprovementLoop, al as scoreKnowledgeBenchmarkArtifact, am as scoreMemoryBenchmarkArtifact, an as scoreRetrievalArtifact, ao as summarizeKnowledgeBenchmarkCampaign } from './index-BHQk7jOT.js';
7
+ import { R as RunRetrievalImprovementLoopResult, a as RunRetrievalImprovementLoopOptions } from './index-Bqg1mBPt.js';
8
+ export { A as AgentMemoryAcquireRunLease, b as AgentMemoryAdapter, c as AgentMemoryBranchIsolation, d as AgentMemoryContext, e as AgentMemoryControllerMode, f as AgentMemoryHit, g as AgentMemoryKind, h as AgentMemoryRunLease, i as AgentMemoryScope, j as AgentMemorySearchOptions, k as AgentMemoryWriteInput, l as AgentMemoryWriteResult, B as BuildRetrievalBenchmarkCasesFromQrelsOptions, m as BuildRetrievalEvalDispatchOptions, n as BuildRetrievalParameterCandidatesOptions, I as INDUSTRY_MEMORY_BENCHMARKS, o as INDUSTRY_RAG_BENCHMARKS, K as KnowledgeAnswerBenchmarkCase, p as KnowledgeAnswerBenchmarkTaskKind, q as KnowledgeBenchmarkArtifact, r as KnowledgeBenchmarkCase, s as KnowledgeBenchmarkCaseBase, t as KnowledgeBenchmarkDistribution, u as KnowledgeBenchmarkEvaluation, v as KnowledgeBenchmarkFamily, w as KnowledgeBenchmarkReport, x as KnowledgeBenchmarkResponder, y as KnowledgeBenchmarkScenario, z as KnowledgeBenchmarkSliceSummary, C as KnowledgeBenchmarkSource, D as KnowledgeBenchmarkSpec, E as KnowledgeBenchmarkSplit, F as KnowledgeBenchmarkTaskKind, G as KnowledgeClaimMatcher, H as KnowledgeMemoryBenchmarkCase, J as KnowledgeMemoryBenchmarkTaskKind, L as KnowledgeMemoryEvent, M as KnowledgeMemoryFactMatcher, N as KnowledgeRetrievalBenchmarkCase, O as KnowledgeRetrievalBenchmarkQrel, P as KnowledgeRetrievalBenchmarkQuery, Q as MemoryAdapterBenchmarkCandidate, S as MemoryAdapterBenchmarkRankingRow, T as OwnedAgentMemoryRunLease, U as RetrievalConfig, V as RetrievalEvalArtifact, W as RetrievalEvalRetriever, X as RetrievalEvalRetrieverInput, Y as RetrievalEvalRetrieverResult, Z as RetrievalEvalScenario, _ as RetrievalGoldTarget, $ as RetrievalHoldoutBypassReason, a0 as RetrievalHoldoutCallContext, a1 as RetrievalHoldoutConfig, a2 as RetrievalHoldoutEligibleItem, a3 as RetrievalHoldoutEvent, a4 as RetrievalHoldoutOffPolicyOptions, a5 as RetrievalHoldoutOffPolicyResult, a6 as RetrievalHoldoutResult, a7 as RetrievalHoldoutSessionState, a8 as RetrievalHoldoutSessionSummary, a9 as RetrievalMetricSummary, aa as RetrievalMetricWeights, ab as RetrievalParameterSearchSpace, ac as RetrievalParameterSweepProposerOptions, ad as RetrievalRecallJudgeOptions, ae as RetrievedKnowledgeHit, af as RetrievedSourceSpan, ag as RunKnowledgeBenchmarkSuiteOptions, ah as RunKnowledgeBenchmarkSuiteResult, ai as RunMemoryAdapterBenchmarkOptions, aj as RunMemoryAdapterBenchmarkResult, ak as acquireAgentMemoryRunLease, al as applyRetrievalHoldout, am as applySessionStickyRetrievalHoldout, an as buildFirstPartyMemoryLifecycleBenchmarkCases, ao as buildIndustryMemoryBenchmarkSmokeCases, ap as buildIndustryRagBenchmarkSmokeCases, aq as buildKnowledgeBenchmarkScenarios, ar as buildRetrievalBenchmarkCasesFromQrels, as as buildRetrievalEvalDispatch, at as buildRetrievalParameterCandidates, au as createInMemoryBenchmarkAdapter, av as createNoopMemoryBenchmarkAdapter, aw as deterministicRng, ax as emitRetrievalHoldoutBypass, ay as isKnowledgeMemoryBenchmarkCase, az as knowledgeBenchmarkJudge, aA as parseKnowledgeBenchmarkJsonl, aB as parseKnowledgeBenchmarkQrels, aC as renderKnowledgeBenchmarkReportMarkdown, aD as resetRetrievalHoldoutRegistry, aE as respondToIndustryMemoryBenchmarkSmokeCase, aF as respondToIndustryRagBenchmarkSmokeCase, aG as retrievalConfigFromSurface, aH as retrievalConfigSurface, aI as retrievalHoldoutConfigHash, aJ as retrievalParameterSweepProposer, aK as retrievalRecallJudge, aL as runKnowledgeBenchmarkSuite, aM as runMemoryAdapterBenchmark, aN as runRetrievalImprovementLoop, aO as scoreKnowledgeBenchmarkArtifact, aP as scoreMemoryBenchmarkArtifact, aQ as scoreRetrievalArtifact, aR as summarizeKnowledgeBenchmarkCampaign, aS as toOffPolicyTrajectory } from './index-Bqg1mBPt.js';
9
9
  import { KnowledgeFragment } from './sources/index.js';
10
10
  export { CornellLiiSelector, CornellLiiSourceOptions, FetchOpts, FragmentProvenance, IRS_DIMENSION_HINTS, IrsPublicationsSourceOptions, KnowledgeSource, MAX_RESPONSE_BYTES, MIN_REQUEST_GAP_MS, POLITE_USER_AGENT, PoliteFetchOptions, PoliteFetchResult, StateSosEntity, StateSosSourceConfig, __resetHttpThrottle, createCornellLiiSource, createIrsPublicationsSource, createStateSosSource, extractLinks, firstMatch, htmlToText, innerHtmlById, looksLikeBlockPage, politeFetch } from './sources/index.js';
11
- export { AgentMemoryHitSchema, AgentMemoryKindSchema, AgentMemoryScopeSchema, AgentMemoryWriteInputSchema, Neo4jAgentMemoryAdapterOptions, createNeo4jAgentMemoryAdapter, defaultGetMemoryContext, memoryHitToSourceRecord, memoryWriteResultToSourceRecord, renderMemoryContext } from './memory/index.js';
12
- export { A as AgentMemoryAdapter, b as AgentMemoryContext, c as AgentMemoryHit, d as AgentMemoryKind, a as AgentMemoryScope, e as AgentMemorySearchOptions, f as AgentMemoryWriteInput, g as AgentMemoryWriteResult, R as RetrievalHoldoutBypassReason, h as RetrievalHoldoutCallContext, i as RetrievalHoldoutConfig, j as RetrievalHoldoutEligibleItem, k as RetrievalHoldoutEvent, l as RetrievalHoldoutOffPolicyOptions, m as RetrievalHoldoutOffPolicyResult, n as RetrievalHoldoutResult, o as RetrievalHoldoutSessionState, p as RetrievalHoldoutSessionSummary, q as applyRetrievalHoldout, r as applySessionStickyRetrievalHoldout, s as deterministicRng, t as emitRetrievalHoldoutBypass, u as resetRetrievalHoldoutRegistry, v as retrievalHoldoutConfigHash, w as toOffPolicyTrajectory } from './types-BFRyr390.js';
11
+ export { AgentMemoryActivation, AgentMemoryActivationDriver, AgentMemoryAttemptEvent, AgentMemoryBranch, AgentMemoryBranchLifetime, AgentMemoryBranchSnapshot, AgentMemoryDimensionComparison, AgentMemoryExperimentCandidate, AgentMemoryExperimentRankingRow, AgentMemoryExperimentRunLease, AgentMemoryGovernor, AgentMemoryHitSchema, AgentMemoryImprovementRunLease, AgentMemoryImprovementSeed, AgentMemoryJournalEntry, AgentMemoryKindSchema, AgentMemoryLifecycleTimeoutError, AgentMemoryLifecycleUnsafeError, AgentMemoryPromotionDecision, AgentMemoryScopeSchema, AgentMemorySequence, AgentMemorySequenceArtifact, AgentMemorySequenceProbe, AgentMemorySequenceProbeResult, AgentMemorySequenceScenario, AgentMemorySequenceStep, AgentMemorySharingPolicy, AgentMemoryVisibility, AgentMemoryWriteInputSchema, BuildAgentMemorySequencesFromBenchmarkCasesOptions, CreateAgentMemoryBranchOptions, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, ForkAgentMemoryBranchSnapshotOptions, GraphitiMcpClientLike, GraphitiMemoryAdapterOptions, GraphitiToolNames, Mem0ClientLike, Mem0ClientMode, Mem0MemoryAdapterOptions, Neo4jAgentMemoryAdapterOptions, RunAgentMemoryExperimentOptions, RunAgentMemoryExperimentResult, RunAgentMemoryImprovementOptions, RunAgentMemoryImprovementResult, agentMemorySequenceJudge, buildAgentMemorySequenceScenarios, buildAgentMemorySequencesFromBenchmarkCases, createAgentMemoryBranch, createGraphitiMemoryAdapter, createMem0MemoryAdapter, createMemoryExecutionPool, createNeo4jAgentMemoryAdapter, defaultGetMemoryContext, forkAgentMemoryBranchSnapshot, graphitiMemoryAdapterIdentity, mem0MemoryAdapterIdentity, memoryHitToSourceRecord, memoryRecoveryDelayMs, memoryWriteResultToSourceRecord, renderMemoryContext, resolveMemoryCleanupTimeoutMs, runAgentMemoryExperiment, runAgentMemoryImprovement, runBoundedMemoryLifecycle, sleepForMemoryRecovery } from './memory/index.js';
13
12
  import '@tangle-network/agent-eval/rl';
14
13
 
15
14
  interface SourceAdapterInput {
package/dist/index.js CHANGED
@@ -61,17 +61,28 @@ import {
61
61
  AgentMemoryKindSchema,
62
62
  AgentMemoryScopeSchema,
63
63
  AgentMemoryWriteInputSchema,
64
+ agentMemorySequenceJudge,
64
65
  applyRetrievalHoldout,
65
66
  applySessionStickyRetrievalHoldout,
67
+ buildAgentMemorySequenceScenarios,
68
+ buildAgentMemorySequencesFromBenchmarkCases,
69
+ createAgentMemoryBranch,
70
+ createGraphitiMemoryAdapter,
71
+ createMem0MemoryAdapter,
66
72
  createNeo4jAgentMemoryAdapter,
67
73
  defaultGetMemoryContext,
68
74
  deterministicRng,
69
75
  emitRetrievalHoldoutBypass,
76
+ forkAgentMemoryBranchSnapshot,
77
+ graphitiMemoryAdapterIdentity,
78
+ mem0MemoryAdapterIdentity,
70
79
  renderMemoryContext,
71
80
  resetRetrievalHoldoutRegistry,
72
81
  retrievalHoldoutConfigHash,
82
+ runAgentMemoryExperiment,
83
+ runAgentMemoryImprovement,
73
84
  toOffPolicyTrajectory
74
- } from "./chunk-VN2OGUUP.js";
85
+ } from "./chunk-UWOTQNBI.js";
75
86
  import {
76
87
  IRS_DIMENSION_HINTS,
77
88
  MAX_RESPONSE_BYTES,
@@ -89,8 +100,12 @@ import {
89
100
  politeFetch
90
101
  } from "./chunk-WCYW2GDA.js";
91
102
  import {
103
+ AgentMemoryLifecycleTimeoutError,
104
+ AgentMemoryLifecycleUnsafeError,
105
+ DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS,
92
106
  INDUSTRY_MEMORY_BENCHMARKS,
93
107
  INDUSTRY_RAG_BENCHMARKS,
108
+ acquireAgentMemoryRunLease,
94
109
  buildFirstPartyMemoryLifecycleBenchmarkCases,
95
110
  buildIndustryMemoryBenchmarkSmokeCases,
96
111
  buildIndustryRagBenchmarkSmokeCases,
@@ -99,36 +114,38 @@ import {
99
114
  buildRetrievalEvalDispatch,
100
115
  buildRetrievalParameterCandidates,
101
116
  createInMemoryBenchmarkAdapter,
102
- createMemoryAdapterBenchmarkResponder,
117
+ createMemoryExecutionPool,
103
118
  createNoopMemoryBenchmarkAdapter,
104
119
  isKnowledgeMemoryBenchmarkCase,
105
120
  knowledgeBenchmarkJudge,
121
+ memoryHitToSourceRecord,
122
+ memoryRecoveryDelayMs,
123
+ memoryWriteResultToSourceRecord,
106
124
  parseKnowledgeBenchmarkJsonl,
107
125
  parseKnowledgeBenchmarkQrels,
108
126
  renderKnowledgeBenchmarkReportMarkdown,
127
+ resolveMemoryCleanupTimeoutMs,
109
128
  respondToIndustryMemoryBenchmarkSmokeCase,
110
129
  respondToIndustryRagBenchmarkSmokeCase,
111
130
  retrievalConfigFromSurface,
112
131
  retrievalConfigSurface,
113
132
  retrievalParameterSweepProposer,
114
133
  retrievalRecallJudge,
134
+ runBoundedMemoryLifecycle,
115
135
  runKnowledgeBenchmarkSuite,
116
136
  runMemoryAdapterBenchmark,
117
137
  runRetrievalImprovementLoop,
118
138
  scoreKnowledgeBenchmarkArtifact,
119
139
  scoreMemoryBenchmarkArtifact,
120
140
  scoreRetrievalArtifact,
141
+ sleepForMemoryRecovery,
121
142
  summarizeKnowledgeBenchmarkCampaign
122
- } from "./chunk-RIHIYCX2.js";
143
+ } from "./chunk-DW6APRTX.js";
123
144
  import {
124
145
  reciprocalRankFusion,
125
146
  searchKnowledge,
126
147
  tokenizeQuery
127
148
  } from "./chunk-DQ3PDMDP.js";
128
- import {
129
- memoryHitToSourceRecord,
130
- memoryWriteResultToSourceRecord
131
- } from "./chunk-XVU5FFQA.js";
132
149
  import {
133
150
  sha256,
134
151
  slugify,
@@ -6220,8 +6237,11 @@ function buildSteerText(gaps, deepQuestions, invalidationTargets, minIndependent
6220
6237
  export {
6221
6238
  AgentMemoryHitSchema,
6222
6239
  AgentMemoryKindSchema,
6240
+ AgentMemoryLifecycleTimeoutError,
6241
+ AgentMemoryLifecycleUnsafeError,
6223
6242
  AgentMemoryScopeSchema,
6224
6243
  AgentMemoryWriteInputSchema,
6244
+ DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS,
6225
6245
  FileSystemKbStore,
6226
6246
  INDUSTRY_MEMORY_BENCHMARKS,
6227
6247
  INDUSTRY_RAG_BENCHMARKS,
@@ -6247,12 +6267,16 @@ export {
6247
6267
  SourceRecordSchema,
6248
6268
  WIKILINK_REGEX,
6249
6269
  __resetHttpThrottle,
6270
+ acquireAgentMemoryRunLease,
6250
6271
  addSourcePath,
6251
6272
  addSourceText,
6273
+ agentMemorySequenceJudge,
6252
6274
  applyKnowledgeWriteBlocks,
6253
6275
  applyKnowledgeWriteBlocksFile,
6254
6276
  applyRetrievalHoldout,
6255
6277
  applySessionStickyRetrievalHoldout,
6278
+ buildAgentMemorySequenceScenarios,
6279
+ buildAgentMemorySequencesFromBenchmarkCases,
6256
6280
  buildEvalKnowledgeBundle,
6257
6281
  buildFirstPartyMemoryLifecycleBenchmarkCases,
6258
6282
  buildIndustryMemoryBenchmarkSmokeCases,
@@ -6270,18 +6294,21 @@ export {
6270
6294
  citedClaimOf,
6271
6295
  contentKey,
6272
6296
  createAdaptiveResearchDriver,
6297
+ createAgentMemoryBranch,
6273
6298
  createClaimDecorator,
6274
6299
  createClaimGroundingVerifier,
6275
6300
  createCollectionResearchDriver,
6276
6301
  createCornellLiiSource,
6277
6302
  createD1FreshnessStoreStub,
6278
6303
  createFileSystemFreshnessStore,
6304
+ createGraphitiMemoryAdapter,
6279
6305
  createInMemoryBenchmarkAdapter,
6280
6306
  createIrsPublicationsSource,
6281
6307
  createKnowledgeControlLoopAdapter,
6282
6308
  createKnowledgeEvent,
6283
6309
  createLocalDiscoveryDispatcher,
6284
- createMemoryAdapterBenchmarkResponder,
6310
+ createMem0MemoryAdapter,
6311
+ createMemoryExecutionPool,
6285
6312
  createNeo4jAgentMemoryAdapter,
6286
6313
  createNoopMemoryBenchmarkAdapter,
6287
6314
  createRagAnswerQualityHook,
@@ -6301,10 +6328,12 @@ export {
6301
6328
  extractLinks,
6302
6329
  extractWikilinks,
6303
6330
  firstMatch,
6331
+ forkAgentMemoryBranchSnapshot,
6304
6332
  formatFrontmatter,
6305
6333
  fromAgentCandidateKnowledgeRef,
6306
6334
  gradeCompanyAgainstText,
6307
6335
  gradeFactAgainstText,
6336
+ graphitiMemoryAdapterIdentity,
6308
6337
  groundClaimInText,
6309
6338
  hashKnowledgeBase,
6310
6339
  htmlToText,
@@ -6335,7 +6364,9 @@ export {
6335
6364
  materialFactsSurfaced,
6336
6365
  materialFactsSurfacedInText,
6337
6366
  mediaTypeFor,
6367
+ mem0MemoryAdapterIdentity,
6338
6368
  memoryHitToSourceRecord,
6369
+ memoryRecoveryDelayMs,
6339
6370
  memoryWriteResultToSourceRecord,
6340
6371
  normalizeExternalRagScores,
6341
6372
  normalizeLinkTarget,
@@ -6353,6 +6384,7 @@ export {
6353
6384
  renderKnowledgeBenchmarkReportMarkdown,
6354
6385
  renderMemoryContext,
6355
6386
  resetRetrievalHoldoutRegistry,
6387
+ resolveMemoryCleanupTimeoutMs,
6356
6388
  respondToIndustryMemoryBenchmarkSmokeCase,
6357
6389
  respondToIndustryRagBenchmarkSmokeCase,
6358
6390
  restoreKnowledgeCandidateBaseline,
@@ -6361,6 +6393,9 @@ export {
6361
6393
  retrievalHoldoutConfigHash,
6362
6394
  retrievalParameterSweepProposer,
6363
6395
  retrievalRecallJudge,
6396
+ runAgentMemoryExperiment,
6397
+ runAgentMemoryImprovement,
6398
+ runBoundedMemoryLifecycle,
6364
6399
  runDiscoveryLoop,
6365
6400
  runInvestmentThesisTask,
6366
6401
  runKnowledgeBenchmarkSuite,
@@ -6377,6 +6412,7 @@ export {
6377
6412
  scoreRetrievalArtifact,
6378
6413
  searchKnowledge,
6379
6414
  sha256,
6415
+ sleepForMemoryRecovery,
6380
6416
  slugify,
6381
6417
  sourceMatchesGaps,
6382
6418
  sourceRegistryPath,