@tangle-network/agent-knowledge 3.2.1 → 4.0.1
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 +49 -0
- package/README.md +306 -40
- package/dist/benchmarks/index.d.ts +51 -4
- package/dist/benchmarks/index.js +1 -4
- package/dist/chunk-3CAAGJCE.js +4784 -0
- package/dist/chunk-3CAAGJCE.js.map +1 -0
- package/dist/chunk-BBCIB4UL.js +3321 -0
- package/dist/chunk-BBCIB4UL.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +44 -8
- package/dist/index.js.map +1 -1
- package/dist/memory/index.d.ts +618 -5
- package/dist/memory/index.js +44 -3
- package/dist/types-ZzY_x0r7.d.ts +661 -0
- package/package.json +7 -5
- package/dist/chunk-RIHIYCX2.js +0 -1853
- package/dist/chunk-RIHIYCX2.js.map +0 -1
- package/dist/chunk-VN2OGUUP.js +0 -851
- package/dist/chunk-VN2OGUUP.js.map +0 -1
- package/dist/chunk-XVU5FFQA.js +0 -49
- package/dist/chunk-XVU5FFQA.js.map +0 -1
- package/dist/index-BHQk7jOT.d.ts +0 -429
- package/dist/types-BFRyr390.d.ts +0 -319
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-
|
|
85
|
+
} from "./chunk-3CAAGJCE.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
|
-
|
|
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-
|
|
143
|
+
} from "./chunk-BBCIB4UL.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
|
-
|
|
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,
|