@tangle-network/agent-knowledge 8.0.8 → 8.0.9
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 +10 -1
- package/README.md +40 -1
- package/dist/benchmarks/index.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/{index-CLNBGN_f.d.ts → index-DypNCZtP.d.ts} +2 -2
- package/dist/{index-CLNBGN_f.d.ts.map → index-DypNCZtP.d.ts.map} +1 -1
- package/dist/{index-BPNsQVSx.d.ts → index-Ij4giqqj.d.ts} +3 -3
- package/dist/{index-BPNsQVSx.d.ts.map → index-Ij4giqqj.d.ts.map} +1 -1
- package/dist/index.d.ts +395 -81
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +783 -40
- package/dist/index.js.map +1 -1
- package/dist/{inspect-B7AJ7CZS.js → inspect-0tmv3xV8.js} +199 -19
- package/dist/inspect-0tmv3xV8.js.map +1 -0
- package/dist/memory/index.d.ts +2 -2
- package/dist/{types-CXZS0w00.d.ts → types-CTT16XnO.d.ts} +4 -2
- package/dist/types-CTT16XnO.d.ts.map +1 -0
- package/dist/viz/index.d.ts +1 -1
- package/docs/knowledge-use-receipts.md +182 -0
- package/docs/run-scoped-citations.md +106 -0
- package/package.json +13 -8
- package/dist/inspect-B7AJ7CZS.js.map +0 -1
- package/dist/types-CXZS0w00.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { A as SourceRegistry, C as KnowledgeWriteParseResult, D as ResearchSourceVersion, E as ResearchClaimRecord, O as SourceAnchor, S as KnowledgeWriteBlock, T as ResearchClaimLedger, _ as KnowledgePolicy, a as KnowledgeBaseCandidate, b as KnowledgeSearchResult, c as KnowledgeEventType, d as KnowledgeGraphNode, f as KnowledgeId, g as KnowledgePageInvalidation, h as KnowledgePage, i as KNOWLEDGE_EVENT_TYPES, j as TrackedClaim, k as SourceRecord, l as KnowledgeGraph, m as KnowledgeLintFinding, n as DeepQuestion, o as KnowledgeClaim, p as KnowledgeIndex, r as DeepQuestionKind, s as KnowledgeEvent, t as ClaimRef, u as KnowledgeGraphEdge, v as KnowledgeRelation, w as ResearchClaimEvidence, x as KnowledgeUnit, y as KnowledgeRelease } from "./types-
|
|
2
|
-
import { $ as RetrievalConfig, A as KnowledgeBenchmarkResponder, At as AgentMemoryScope, B as KnowledgeMemoryEvent, Bt as RetrievalHoldoutSessionState, C as KnowledgeBenchmarkArtifact, Ct as createInMemoryBenchmarkAdapter, D as KnowledgeBenchmarkEvaluation, Dt as AgentMemoryContext, E as KnowledgeBenchmarkDistribution, Et as AgentMemoryBranchIsolation, F as KnowledgeBenchmarkSplit, Ft as RetrievalHoldoutCallContext, G as MemoryAdapterBenchmarkCandidate, H as KnowledgeRetrievalBenchmarkCase, I as KnowledgeBenchmarkTaskKind, It as RetrievalHoldoutConfig, J as RunKnowledgeBenchmarkSuiteResult, K as MemoryAdapterBenchmarkRankingRow, L as KnowledgeClaimMatcher, Lt as RetrievalHoldoutEligibleItem, M as KnowledgeBenchmarkSliceSummary, Mt as AgentMemoryWriteInput, N as KnowledgeBenchmarkSource, Nt as AgentMemoryWriteResult, O as KnowledgeBenchmarkFamily, Ot as AgentMemoryHit, P as KnowledgeBenchmarkSpec, Pt as RetrievalHoldoutBypassReason, Q as PartitionRetrievalScenariosOptions, R as KnowledgeMemoryBenchmarkCase, Rt as RetrievalHoldoutEvent, S as KnowledgeAnswerBenchmarkTaskKind, St as acquireAgentMemoryRunLease, T as KnowledgeBenchmarkCaseBase, Tt as AgentMemoryAdapter, U as KnowledgeRetrievalBenchmarkQrel, V as KnowledgeMemoryFactMatcher, W as KnowledgeRetrievalBenchmarkQuery, X as RunMemoryAdapterBenchmarkResult, Y as RunMemoryAdapterBenchmarkOptions, Z as BuildRetrievalEvalDispatchOptions, _ as buildIndustryRagBenchmarkSmokeCases, _t as scoreRetrievalArtifact, a as runKnowledgeBenchmarkSuite, at as RetrievalGoldTarget, b as BuildRetrievalBenchmarkCasesFromQrelsOptions, bt as AgentMemoryRunLease, c as buildRetrievalBenchmarkCasesFromQrels, ct as RetrievalRecallJudgeOptions, d as summarizeKnowledgeBenchmarkCampaign, dt as RetrievedSourceSpan, et as RetrievalEvalArtifact, f as runMemoryAdapterBenchmark, ft as buildRetrievalEvalDispatch, g as buildIndustryMemoryBenchmarkSmokeCases, gt as retrievalRecallJudge, h as buildFirstPartyMemoryLifecycleBenchmarkCases, ht as retrievalConfigSurface, i as renderKnowledgeBenchmarkReportMarkdown, it as RetrievalEvalScenario, j as KnowledgeBenchmarkScenario, jt as AgentMemorySearchOptions, k as KnowledgeBenchmarkReport, kt as AgentMemoryKind, l as parseKnowledgeBenchmarkJsonl, lt as RetrievalScenarioPartitions, m as INDUSTRY_RAG_BENCHMARKS, mt as retrievalConfigFromSurface, n as buildKnowledgeBenchmarkScenarios, nt as RetrievalEvalRetrieverInput, o as scoreKnowledgeBenchmarkArtifact, ot as RetrievalMetricSummary, p as INDUSTRY_MEMORY_BENCHMARKS, pt as partitionRetrievalScenarios, q as RunKnowledgeBenchmarkSuiteOptions, r as knowledgeBenchmarkJudge, rt as RetrievalEvalRetrieverResult, s as scoreMemoryBenchmarkArtifact, st as RetrievalMetricWeights, t as isKnowledgeMemoryBenchmarkCase, tt as RetrievalEvalRetriever, u as parseKnowledgeBenchmarkQrels, ut as RetrievedKnowledgeHit, v as respondToIndustryMemoryBenchmarkSmokeCase, vt as AgentMemoryAcquireRunLease, w as KnowledgeBenchmarkCase, wt as createNoopMemoryBenchmarkAdapter, x as KnowledgeAnswerBenchmarkCase, xt as OwnedAgentMemoryRunLease, y as respondToIndustryRagBenchmarkSmokeCase, yt as AgentMemoryControllerMode, z as KnowledgeMemoryBenchmarkTaskKind, zt as RetrievalHoldoutResult } from "./index-
|
|
3
|
-
import { $ as runAgentMemoryLearningExperiment, $t as jsonObjectCandidateCodec, A as AgentMemoryFinalPair, At as BuildAgentMemorySequencesFromBenchmarkCasesOptions, B as applySessionStickyRetrievalHoldout, Bt as AgentMemorySharingPolicy, C as runBoundedMemoryLifecycle, Ct as AgentMemorySequenceArtifact, D as AgentMemoryActivationDriver, Dt as AgentMemorySequenceStep, E as AgentMemoryActivation, Et as AgentMemorySequenceScenario, F as RunAgentMemoryImprovementResult, Ft as RunAgentMemoryLearningExperimentResult, G as toOffPolicyTrajectory, Gt as forkAgentMemoryBranchSnapshot, H as emitRetrievalHoldoutBypass, Ht as CreateAgentMemoryBranchOptions, I as RetrievalHoldoutOffPolicyOptions, It as AgentMemoryBranch, J as GraphitiToolNames, Jt as RunSerializedKnowledgeOptimizationOptions, K as GraphitiMcpClientLike, Kt as defaultGetMemoryContext, L as RetrievalHoldoutOffPolicyResult, Lt as AgentMemoryBranchLifetime, M as AgentMemoryPromotionDecision, Mt as RunAgentMemoryExperimentOptions, N as MemoryConfigScenario, Nt as RunAgentMemoryExperimentResult, O as AgentMemoryDimensionComparison, Ot as AgentMemoryTransferCellComparison, P as RunAgentMemoryImprovementOptions, Pt as RunAgentMemoryLearningExperimentOptions, Q as compareAgentMemoryLearning, Qt as jsonCandidateCodec, R as RetrievalHoldoutSessionSummary, Rt as AgentMemoryBranchSnapshot, S as resolveMemoryCleanupTimeoutMs, St as AgentMemorySequence, T as runAgentMemoryImprovement, Tt as AgentMemorySequenceProbeResult, U as resetRetrievalHoldoutRegistry, Ut as ForkAgentMemoryBranchSnapshotOptions, V as deterministicRng, Vt as AgentMemoryVisibility, W as retrievalHoldoutConfigHash, Wt as createAgentMemoryBranch, X as graphitiMemoryAdapterIdentity, Xt as SerializedCandidate, Y as createGraphitiMemoryAdapter, Yt as RunSerializedKnowledgeOptimizationResult, Z as runAgentMemoryExperiment, Zt as SerializedCandidateCodec, _ as AgentMemoryLifecycleTimeoutError, _t as AgentMemoryLearningArmOrder, a as AgentMemoryScopeSchema, at as AgentMemoryExecutionContext, b as createMemoryExecutionPool, bt as AgentMemoryLearningComparison, c as createNeo4jAgentMemoryAdapter, ct as AgentMemoryExecutionPaidCallInput, d as Mem0HostedMemoryAdapterOptions, dt as AgentMemoryExperimentCandidate, en as runSerializedKnowledgeOptimization, et as agentMemorySequenceJudge, f as Mem0MemoryAdapterOptions, ft as AgentMemoryExperimentCandidateRef, g as mem0MemoryAdapterIdentity, gt as AgentMemoryForgettingComparison, h as createMem0MemoryAdapter, ht as AgentMemoryExperimentRunLease, i as AgentMemoryKindSchema, it as AgentMemoryEvidenceRef, j as AgentMemoryImprovementRunLease, jt as CompareAgentMemoryLearningOptions, k as AgentMemoryFinalEvaluation, kt as AgentMemoryTransferStepSummary, l as Mem0ClientMode, lt as AgentMemoryExecutionPaidCallResult, m as Mem0OssMemoryAdapterOptions, mt as AgentMemoryExperimentRankingRow, n as memoryWriteResultToSourceRecord, nt as buildAgentMemorySequencesFromBenchmarkCases, o as AgentMemoryWriteInputSchema, ot as AgentMemoryExecutionCostMeter, p as Mem0OssClient, pt as AgentMemoryExperimentComparisonRef, q as GraphitiMemoryAdapterOptions, qt as renderMemoryContext, r as AgentMemoryHitSchema, rt as AgentMemoryAttemptEvent, s as Neo4jAgentMemoryAdapterOptions, st as AgentMemoryExecutionCostReceipt, t as memoryHitToSourceRecord, tn as scenarioContentFingerprint, tt as buildAgentMemorySequenceScenarios, u as Mem0HostedClient, ut as AgentMemoryExecutionStep, v as AgentMemoryLifecycleUnsafeError, vt as AgentMemoryLearningCandidateSummary, w as sleepForMemoryRecovery, wt as AgentMemorySequenceProbe, x as memoryRecoveryDelayMs, xt as AgentMemoryMode, y as DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, yt as AgentMemoryLearningCellComparison, z as applyRetrievalHoldout, zt as AgentMemoryJournalEntry } from "./index-
|
|
1
|
+
import { A as SourceRegistry, C as KnowledgeWriteParseResult, D as ResearchSourceVersion, E as ResearchClaimRecord, O as SourceAnchor, S as KnowledgeWriteBlock, T as ResearchClaimLedger, _ as KnowledgePolicy, a as KnowledgeBaseCandidate, b as KnowledgeSearchResult, c as KnowledgeEventType, d as KnowledgeGraphNode, f as KnowledgeId, g as KnowledgePageInvalidation, h as KnowledgePage, i as KNOWLEDGE_EVENT_TYPES, j as TrackedClaim, k as SourceRecord, l as KnowledgeGraph, m as KnowledgeLintFinding, n as DeepQuestion, o as KnowledgeClaim, p as KnowledgeIndex, r as DeepQuestionKind, s as KnowledgeEvent, t as ClaimRef, u as KnowledgeGraphEdge, v as KnowledgeRelation, w as ResearchClaimEvidence, x as KnowledgeUnit, y as KnowledgeRelease } from "./types-CTT16XnO.js";
|
|
2
|
+
import { $ as RetrievalConfig, A as KnowledgeBenchmarkResponder, At as AgentMemoryScope, B as KnowledgeMemoryEvent, Bt as RetrievalHoldoutSessionState, C as KnowledgeBenchmarkArtifact, Ct as createInMemoryBenchmarkAdapter, D as KnowledgeBenchmarkEvaluation, Dt as AgentMemoryContext, E as KnowledgeBenchmarkDistribution, Et as AgentMemoryBranchIsolation, F as KnowledgeBenchmarkSplit, Ft as RetrievalHoldoutCallContext, G as MemoryAdapterBenchmarkCandidate, H as KnowledgeRetrievalBenchmarkCase, I as KnowledgeBenchmarkTaskKind, It as RetrievalHoldoutConfig, J as RunKnowledgeBenchmarkSuiteResult, K as MemoryAdapterBenchmarkRankingRow, L as KnowledgeClaimMatcher, Lt as RetrievalHoldoutEligibleItem, M as KnowledgeBenchmarkSliceSummary, Mt as AgentMemoryWriteInput, N as KnowledgeBenchmarkSource, Nt as AgentMemoryWriteResult, O as KnowledgeBenchmarkFamily, Ot as AgentMemoryHit, P as KnowledgeBenchmarkSpec, Pt as RetrievalHoldoutBypassReason, Q as PartitionRetrievalScenariosOptions, R as KnowledgeMemoryBenchmarkCase, Rt as RetrievalHoldoutEvent, S as KnowledgeAnswerBenchmarkTaskKind, St as acquireAgentMemoryRunLease, T as KnowledgeBenchmarkCaseBase, Tt as AgentMemoryAdapter, U as KnowledgeRetrievalBenchmarkQrel, V as KnowledgeMemoryFactMatcher, W as KnowledgeRetrievalBenchmarkQuery, X as RunMemoryAdapterBenchmarkResult, Y as RunMemoryAdapterBenchmarkOptions, Z as BuildRetrievalEvalDispatchOptions, _ as buildIndustryRagBenchmarkSmokeCases, _t as scoreRetrievalArtifact, a as runKnowledgeBenchmarkSuite, at as RetrievalGoldTarget, b as BuildRetrievalBenchmarkCasesFromQrelsOptions, bt as AgentMemoryRunLease, c as buildRetrievalBenchmarkCasesFromQrels, ct as RetrievalRecallJudgeOptions, d as summarizeKnowledgeBenchmarkCampaign, dt as RetrievedSourceSpan, et as RetrievalEvalArtifact, f as runMemoryAdapterBenchmark, ft as buildRetrievalEvalDispatch, g as buildIndustryMemoryBenchmarkSmokeCases, gt as retrievalRecallJudge, h as buildFirstPartyMemoryLifecycleBenchmarkCases, ht as retrievalConfigSurface, i as renderKnowledgeBenchmarkReportMarkdown, it as RetrievalEvalScenario, j as KnowledgeBenchmarkScenario, jt as AgentMemorySearchOptions, k as KnowledgeBenchmarkReport, kt as AgentMemoryKind, l as parseKnowledgeBenchmarkJsonl, lt as RetrievalScenarioPartitions, m as INDUSTRY_RAG_BENCHMARKS, mt as retrievalConfigFromSurface, n as buildKnowledgeBenchmarkScenarios, nt as RetrievalEvalRetrieverInput, o as scoreKnowledgeBenchmarkArtifact, ot as RetrievalMetricSummary, p as INDUSTRY_MEMORY_BENCHMARKS, pt as partitionRetrievalScenarios, q as RunKnowledgeBenchmarkSuiteOptions, r as knowledgeBenchmarkJudge, rt as RetrievalEvalRetrieverResult, s as scoreMemoryBenchmarkArtifact, st as RetrievalMetricWeights, t as isKnowledgeMemoryBenchmarkCase, tt as RetrievalEvalRetriever, u as parseKnowledgeBenchmarkQrels, ut as RetrievedKnowledgeHit, v as respondToIndustryMemoryBenchmarkSmokeCase, vt as AgentMemoryAcquireRunLease, w as KnowledgeBenchmarkCase, wt as createNoopMemoryBenchmarkAdapter, x as KnowledgeAnswerBenchmarkCase, xt as OwnedAgentMemoryRunLease, y as respondToIndustryRagBenchmarkSmokeCase, yt as AgentMemoryControllerMode, z as KnowledgeMemoryBenchmarkTaskKind, zt as RetrievalHoldoutResult } from "./index-DypNCZtP.js";
|
|
3
|
+
import { $ as runAgentMemoryLearningExperiment, $t as jsonObjectCandidateCodec, A as AgentMemoryFinalPair, At as BuildAgentMemorySequencesFromBenchmarkCasesOptions, B as applySessionStickyRetrievalHoldout, Bt as AgentMemorySharingPolicy, C as runBoundedMemoryLifecycle, Ct as AgentMemorySequenceArtifact, D as AgentMemoryActivationDriver, Dt as AgentMemorySequenceStep, E as AgentMemoryActivation, Et as AgentMemorySequenceScenario, F as RunAgentMemoryImprovementResult, Ft as RunAgentMemoryLearningExperimentResult, G as toOffPolicyTrajectory, Gt as forkAgentMemoryBranchSnapshot, H as emitRetrievalHoldoutBypass, Ht as CreateAgentMemoryBranchOptions, I as RetrievalHoldoutOffPolicyOptions, It as AgentMemoryBranch, J as GraphitiToolNames, Jt as RunSerializedKnowledgeOptimizationOptions, K as GraphitiMcpClientLike, Kt as defaultGetMemoryContext, L as RetrievalHoldoutOffPolicyResult, Lt as AgentMemoryBranchLifetime, M as AgentMemoryPromotionDecision, Mt as RunAgentMemoryExperimentOptions, N as MemoryConfigScenario, Nt as RunAgentMemoryExperimentResult, O as AgentMemoryDimensionComparison, Ot as AgentMemoryTransferCellComparison, P as RunAgentMemoryImprovementOptions, Pt as RunAgentMemoryLearningExperimentOptions, Q as compareAgentMemoryLearning, Qt as jsonCandidateCodec, R as RetrievalHoldoutSessionSummary, Rt as AgentMemoryBranchSnapshot, S as resolveMemoryCleanupTimeoutMs, St as AgentMemorySequence, T as runAgentMemoryImprovement, Tt as AgentMemorySequenceProbeResult, U as resetRetrievalHoldoutRegistry, Ut as ForkAgentMemoryBranchSnapshotOptions, V as deterministicRng, Vt as AgentMemoryVisibility, W as retrievalHoldoutConfigHash, Wt as createAgentMemoryBranch, X as graphitiMemoryAdapterIdentity, Xt as SerializedCandidate, Y as createGraphitiMemoryAdapter, Yt as RunSerializedKnowledgeOptimizationResult, Z as runAgentMemoryExperiment, Zt as SerializedCandidateCodec, _ as AgentMemoryLifecycleTimeoutError, _t as AgentMemoryLearningArmOrder, a as AgentMemoryScopeSchema, at as AgentMemoryExecutionContext, b as createMemoryExecutionPool, bt as AgentMemoryLearningComparison, c as createNeo4jAgentMemoryAdapter, ct as AgentMemoryExecutionPaidCallInput, d as Mem0HostedMemoryAdapterOptions, dt as AgentMemoryExperimentCandidate, en as runSerializedKnowledgeOptimization, et as agentMemorySequenceJudge, f as Mem0MemoryAdapterOptions, ft as AgentMemoryExperimentCandidateRef, g as mem0MemoryAdapterIdentity, gt as AgentMemoryForgettingComparison, h as createMem0MemoryAdapter, ht as AgentMemoryExperimentRunLease, i as AgentMemoryKindSchema, it as AgentMemoryEvidenceRef, j as AgentMemoryImprovementRunLease, jt as CompareAgentMemoryLearningOptions, k as AgentMemoryFinalEvaluation, kt as AgentMemoryTransferStepSummary, l as Mem0ClientMode, lt as AgentMemoryExecutionPaidCallResult, m as Mem0OssMemoryAdapterOptions, mt as AgentMemoryExperimentRankingRow, n as memoryWriteResultToSourceRecord, nt as buildAgentMemorySequencesFromBenchmarkCases, o as AgentMemoryWriteInputSchema, ot as AgentMemoryExecutionCostMeter, p as Mem0OssClient, pt as AgentMemoryExperimentComparisonRef, q as GraphitiMemoryAdapterOptions, qt as renderMemoryContext, r as AgentMemoryHitSchema, rt as AgentMemoryAttemptEvent, s as Neo4jAgentMemoryAdapterOptions, st as AgentMemoryExecutionCostReceipt, t as memoryHitToSourceRecord, tn as scenarioContentFingerprint, tt as buildAgentMemorySequenceScenarios, u as Mem0HostedClient, ut as AgentMemoryExecutionStep, v as AgentMemoryLifecycleUnsafeError, vt as AgentMemoryLearningCandidateSummary, w as sleepForMemoryRecovery, wt as AgentMemorySequenceProbe, x as memoryRecoveryDelayMs, xt as AgentMemoryMode, y as DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, yt as AgentMemoryLearningCellComparison, z as applyRetrievalHoldout, zt as AgentMemoryJournalEntry } from "./index-Ij4giqqj.js";
|
|
4
4
|
import { CornellLiiSelector, CornellLiiSourceOptions, FetchOpts, FragmentProvenance, IRS_DIMENSION_HINTS, IrsPublicationsSourceOptions, KnowledgeFragment, 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";
|
|
5
|
-
import { AgentCandidateJsonValue, AgentCandidateKnowledgeRef, AgentImprovementActivation, AgentImprovementActivationResult } from "@tangle-network/agent-interface";
|
|
5
|
+
import { AgentCandidateJsonValue, AgentCandidateKnowledgeRef, AgentImprovementActivation, AgentImprovementActivationResult, Sha256Digest } from "@tangle-network/agent-interface";
|
|
6
6
|
import { AnalystFinding, AnalystSeverity, ControlEvalResult, ControlRuntimeConfig, DataAcquisitionPlan, DatasetScenario, GateDecision, KnowledgeAcquisitionMode, KnowledgeBundle, KnowledgeFreshness, KnowledgeImportance, KnowledgeReadinessReport, KnowledgeRequirement, KnowledgeRequirementCategory, KnowledgeSensitivity, ReleaseConfidenceScorecard, ReleaseTraceEvidence, RunRecord, UserQuestion } from "@tangle-network/agent-eval";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { ComparisonCost, DispatchContext, JudgeConfig, OptimizationMethod, Scenario } from "@tangle-network/agent-eval/campaign";
|
|
9
|
+
import { EvidenceRef } from "@tangle-network/agent-eval/analyst";
|
|
9
10
|
import { LockOptions } from "proper-lockfile";
|
|
10
11
|
//#region src/adapters.d.ts
|
|
11
12
|
interface SourceAdapterInput {
|
|
@@ -1449,6 +1450,72 @@ type KnowledgePolicyDispatch<TPolicy extends AgentCandidateJsonValue, TScenario
|
|
|
1449
1450
|
//#region src/kb-improvement/run.d.ts
|
|
1450
1451
|
declare function improveKnowledgeBase(options: KnowledgeImprovementOptions): Promise<KnowledgeImprovementResult>;
|
|
1451
1452
|
//#endregion
|
|
1453
|
+
//#region src/kb-improvement/selected-candidate.d.ts
|
|
1454
|
+
declare const measuredSelectionReceiptSchema: z.ZodObject<{
|
|
1455
|
+
kind: z.ZodLiteral<"measured-knowledge-change-selection-receipt">;
|
|
1456
|
+
version: z.ZodLiteral<1>;
|
|
1457
|
+
receiptHash: z.ZodString;
|
|
1458
|
+
selectionDigest: z.ZodString;
|
|
1459
|
+
sourceCandidate: z.ZodObject<{
|
|
1460
|
+
kind: z.ZodLiteral<"knowledge-improvement-candidate">;
|
|
1461
|
+
runId: z.ZodString;
|
|
1462
|
+
candidateId: z.ZodString;
|
|
1463
|
+
goalHash: z.ZodString;
|
|
1464
|
+
baseHash: z.ZodString;
|
|
1465
|
+
candidateHash: z.ZodString;
|
|
1466
|
+
evidenceHash: z.ZodString;
|
|
1467
|
+
promotionPlanHash: z.ZodString;
|
|
1468
|
+
}, z.core.$strict>;
|
|
1469
|
+
sourcePlanHash: z.ZodString;
|
|
1470
|
+
selectedPaths: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
1471
|
+
derivedImplementationRef: z.ZodString;
|
|
1472
|
+
runId: z.ZodString;
|
|
1473
|
+
derivedCandidateId: z.ZodString;
|
|
1474
|
+
derivedCandidateStatus: z.ZodString;
|
|
1475
|
+
selectedCandidateHash: z.ZodString;
|
|
1476
|
+
selectedPlanHash: z.ZodString;
|
|
1477
|
+
selectedEvidenceHash: z.ZodString;
|
|
1478
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
1479
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1480
|
+
}, z.core.$strict>;
|
|
1481
|
+
type KnowledgeEvaluationPhase = Exclude<RagKnowledgeImprovementPhase, 'knowledge-acquisition' | 'knowledge-update'>;
|
|
1482
|
+
interface ImproveSelectedKnowledgeCandidateOptions extends Omit<KnowledgeImprovementOptions, 'root' | 'goal' | 'implementationRef' | 'runId' | 'step' | 'knowledgeResearch' | 'acquireKnowledge' | 'updateKnowledge' | 'enabledPhases' | 'requiredPhases'> {
|
|
1483
|
+
root: string;
|
|
1484
|
+
goal: string;
|
|
1485
|
+
/** Identity of the helper, policy, or human procedure choosing the subset. */
|
|
1486
|
+
implementationRef: string;
|
|
1487
|
+
/** Previously measured whole candidate from which the subset is derived. */
|
|
1488
|
+
sourceCandidate: KnowledgeImprovementCandidateRef;
|
|
1489
|
+
/** Exact changed file paths to carry into the derived candidate. */
|
|
1490
|
+
selectedPaths: readonly string[];
|
|
1491
|
+
/** Optional explicit run identity. The default includes the selection digest. */
|
|
1492
|
+
runId?: string;
|
|
1493
|
+
/** Human-readable reason for selecting this subset. */
|
|
1494
|
+
rationale?: string;
|
|
1495
|
+
/** JSON-safe policy output retained in the selection receipt. */
|
|
1496
|
+
selectionMetadata?: Record<string, AgentCandidateJsonValue>;
|
|
1497
|
+
/** Evaluation-only phases. `knowledge-update` is inserted by this helper. */
|
|
1498
|
+
enabledEvaluationPhases?: readonly KnowledgeEvaluationPhase[];
|
|
1499
|
+
/** Evaluation-only phases that must complete. `knowledge-update` is always required. */
|
|
1500
|
+
requiredEvaluationPhases?: readonly KnowledgeEvaluationPhase[];
|
|
1501
|
+
}
|
|
1502
|
+
type MeasuredKnowledgeSelectionReceipt = z.infer<typeof measuredSelectionReceiptSchema>;
|
|
1503
|
+
interface ImproveSelectedKnowledgeCandidateResult extends KnowledgeImprovementResult {
|
|
1504
|
+
selection: MeasuredKnowledgeSelectionReceipt;
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Derive a subset from an already measured candidate, then measure the subset as
|
|
1508
|
+
* a new candidate before it can be promoted.
|
|
1509
|
+
*
|
|
1510
|
+
* Directly filtering an activation plan is unsafe: a whole candidate can pass
|
|
1511
|
+
* while one page subset breaks links, removes supporting sources, or changes a
|
|
1512
|
+
* readiness score. This helper instead applies the chosen changed paths to an
|
|
1513
|
+
* isolated baseline, recomputes the index, runs the ordinary improvement
|
|
1514
|
+
* evaluator, and returns the ordinary candidate reference. Promotion therefore
|
|
1515
|
+
* remains one path and can never admit an unmeasured hybrid.
|
|
1516
|
+
*/
|
|
1517
|
+
declare function improveSelectedKnowledgeCandidate(options: ImproveSelectedKnowledgeCandidateOptions): Promise<ImproveSelectedKnowledgeCandidateResult>;
|
|
1518
|
+
//#endregion
|
|
1452
1519
|
//#region src/kb-improvement/state.d.ts
|
|
1453
1520
|
declare function knowledgeImprovementRunId(root: string, goal: string): string;
|
|
1454
1521
|
declare function knowledgeImprovementRunDir(root: string, runId: string): string;
|
|
@@ -1604,6 +1671,191 @@ declare function stripFrontmatter(content: string): {
|
|
|
1604
1671
|
bodyOffset: number;
|
|
1605
1672
|
};
|
|
1606
1673
|
//#endregion
|
|
1674
|
+
//#region src/store.d.ts
|
|
1675
|
+
interface KnowledgeLayout {
|
|
1676
|
+
root: string;
|
|
1677
|
+
knowledgeDir: string;
|
|
1678
|
+
rawSourcesDir: string;
|
|
1679
|
+
sourceRegistryPath: string;
|
|
1680
|
+
indexPath: string;
|
|
1681
|
+
logPath: string;
|
|
1682
|
+
cacheDir: string;
|
|
1683
|
+
}
|
|
1684
|
+
declare function layoutFor(root: string): KnowledgeLayout;
|
|
1685
|
+
/**
|
|
1686
|
+
* Filenames that `initKnowledgeBase` writes as human-navigation scaffolding.
|
|
1687
|
+
* These are excluded from the page index — they exist on disk so authors can
|
|
1688
|
+
* curate their vault, but they are not searchable content.
|
|
1689
|
+
*
|
|
1690
|
+
* Add new scaffold filenames here (and only here) to keep lint, validate, viz,
|
|
1691
|
+
* and the indexer consistent.
|
|
1692
|
+
*/
|
|
1693
|
+
declare const SCAFFOLD_PAGE_BASENAMES: readonly string[];
|
|
1694
|
+
/**
|
|
1695
|
+
* True when a knowledge-relative path points at a scaffold file rather than
|
|
1696
|
+
* authored content. Accepts both repo-relative paths (`knowledge/index.md`)
|
|
1697
|
+
* and any nested `<dir>/index.md` or `<dir>/log.md` (for example
|
|
1698
|
+
* `knowledge/concepts/index.md`) so subdirectory README-style scaffolds are
|
|
1699
|
+
* also excluded.
|
|
1700
|
+
*/
|
|
1701
|
+
declare function isScaffoldPath(path: string): boolean;
|
|
1702
|
+
declare function initKnowledgeBase(root: string): Promise<KnowledgeLayout>;
|
|
1703
|
+
interface LoadKnowledgePagesOptions {
|
|
1704
|
+
/** Root-relative directory containing Markdown pages. Defaults to `knowledge`. */
|
|
1705
|
+
pagesDirectory?: string;
|
|
1706
|
+
}
|
|
1707
|
+
declare function loadKnowledgePages(root: string, options?: LoadKnowledgePagesOptions): Promise<KnowledgePage[]>;
|
|
1708
|
+
declare function writeJson(path: string, value: unknown): Promise<void>;
|
|
1709
|
+
//#endregion
|
|
1710
|
+
//#region src/run-scoped.d.ts
|
|
1711
|
+
/** Where a page in a chained read came from. */
|
|
1712
|
+
type PageOrigin = 'here' | `inherited:${string}` | 'shared';
|
|
1713
|
+
interface OriginatedPage {
|
|
1714
|
+
page: KnowledgePage;
|
|
1715
|
+
origin: PageOrigin;
|
|
1716
|
+
}
|
|
1717
|
+
interface RunLineageRecord {
|
|
1718
|
+
runId: string;
|
|
1719
|
+
parentRunId: string | null;
|
|
1720
|
+
createdAt: string;
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Durable authority for run ancestry.
|
|
1724
|
+
*
|
|
1725
|
+
* A product whose run manifest already owns lineage can supply an authority
|
|
1726
|
+
* backed by that manifest. `record` is optional for read-only authorities; in
|
|
1727
|
+
* that case `init` verifies that the existing authority agrees with the parent
|
|
1728
|
+
* requested by the caller before creating any store files.
|
|
1729
|
+
*/
|
|
1730
|
+
interface RunLineageAuthority {
|
|
1731
|
+
parentOf(runId: string): Promise<string | null>;
|
|
1732
|
+
record?(record: RunLineageRecord): Promise<void>;
|
|
1733
|
+
}
|
|
1734
|
+
declare const RUN_LINEAGE_BASENAME = "lineage.json";
|
|
1735
|
+
interface RunScopedStoresOptions {
|
|
1736
|
+
/** The root under which per-run stores live. */
|
|
1737
|
+
root: string;
|
|
1738
|
+
/** Store path for a run; defaults to `<root>/<runId>/knowledge-base`. */
|
|
1739
|
+
runStorePath?: (runId: string) => string;
|
|
1740
|
+
/**
|
|
1741
|
+
* The curated store every run may read but no run writes. Searched last and
|
|
1742
|
+
* labeled `shared`.
|
|
1743
|
+
*/
|
|
1744
|
+
sharedRoot?: string;
|
|
1745
|
+
/** External owner for run ancestry. Defaults to a record inside each run store. */
|
|
1746
|
+
lineageAuthority?: RunLineageAuthority;
|
|
1747
|
+
}
|
|
1748
|
+
interface RunScopedStores {
|
|
1749
|
+
/** Create or open a run store and bind it to one exact parent identity. */
|
|
1750
|
+
init(runId: string, options?: {
|
|
1751
|
+
parentRunId?: string | null;
|
|
1752
|
+
}): Promise<KnowledgeLayout>;
|
|
1753
|
+
/** The ancestor chain of a run, nearest first. */
|
|
1754
|
+
lineage(runId: string): Promise<string[]>;
|
|
1755
|
+
/**
|
|
1756
|
+
* Every page visible to a run: current, ancestors, then shared. A repeated
|
|
1757
|
+
* page id is retained at every origin so citation resolution can report the
|
|
1758
|
+
* ambiguity instead of silently shadowing one page.
|
|
1759
|
+
*/
|
|
1760
|
+
loadChain(runId: string): Promise<OriginatedPage[]>;
|
|
1761
|
+
}
|
|
1762
|
+
declare function createRunScopedStores(options: RunScopedStoresOptions): RunScopedStores;
|
|
1763
|
+
/** File-backed authority used when the product has no separate run manifest. */
|
|
1764
|
+
declare function createFileRunLineageAuthority(runStorePath: (runId: string) => string): RunLineageAuthority;
|
|
1765
|
+
//#endregion
|
|
1766
|
+
//#region src/citation-resolution.d.ts
|
|
1767
|
+
/**
|
|
1768
|
+
* A citation into the knowledge visible to one run.
|
|
1769
|
+
*
|
|
1770
|
+
* An unqualified reference is accepted only when exactly one visible page has
|
|
1771
|
+
* the requested id. Callers can qualify a reference by origin when a current,
|
|
1772
|
+
* inherited, or shared page intentionally reuses the same stable id.
|
|
1773
|
+
*/
|
|
1774
|
+
interface KnowledgeCitationReference {
|
|
1775
|
+
readonly pageId: KnowledgeId;
|
|
1776
|
+
readonly origin?: PageOrigin;
|
|
1777
|
+
}
|
|
1778
|
+
interface KnowledgeCitationCandidate {
|
|
1779
|
+
readonly pageId: KnowledgeId;
|
|
1780
|
+
readonly origin: PageOrigin;
|
|
1781
|
+
readonly page: KnowledgePage;
|
|
1782
|
+
}
|
|
1783
|
+
type KnowledgeCitationResolutionStatus = 'resolved' | 'missing' | 'ambiguous';
|
|
1784
|
+
interface KnowledgeCitationResolution {
|
|
1785
|
+
readonly reference: KnowledgeCitationReference;
|
|
1786
|
+
readonly status: KnowledgeCitationResolutionStatus;
|
|
1787
|
+
readonly candidates: readonly KnowledgeCitationCandidate[];
|
|
1788
|
+
readonly resolved?: KnowledgeCitationCandidate;
|
|
1789
|
+
}
|
|
1790
|
+
type KnowledgeCitationAuditIssueKind = 'self' | 'missing' | 'ambiguous';
|
|
1791
|
+
interface KnowledgeCitationAuditIssue {
|
|
1792
|
+
readonly kind: KnowledgeCitationAuditIssueKind;
|
|
1793
|
+
readonly sourcePageId: KnowledgeId;
|
|
1794
|
+
readonly sourcePath: string;
|
|
1795
|
+
readonly sourceOrigin: PageOrigin;
|
|
1796
|
+
readonly persistedCitation: string;
|
|
1797
|
+
readonly reference: KnowledgeCitationReference;
|
|
1798
|
+
readonly candidates: readonly KnowledgeCitationCandidate[];
|
|
1799
|
+
}
|
|
1800
|
+
interface KnowledgeCitationAuditReport {
|
|
1801
|
+
readonly ok: boolean;
|
|
1802
|
+
readonly checkedPages: number;
|
|
1803
|
+
readonly checkedCitations: number;
|
|
1804
|
+
readonly issues: readonly KnowledgeCitationAuditIssue[];
|
|
1805
|
+
}
|
|
1806
|
+
interface AuditKnowledgeCitationsOptions {
|
|
1807
|
+
/** Limit audited source pages to these origins. All visible origins are checked by default. */
|
|
1808
|
+
readonly sourceOrigins?: readonly PageOrigin[];
|
|
1809
|
+
}
|
|
1810
|
+
/** A batch contains at least one citation that is missing or ambiguous. */
|
|
1811
|
+
declare class KnowledgeCitationResolutionError extends Error {
|
|
1812
|
+
readonly resolutions: readonly KnowledgeCitationResolution[];
|
|
1813
|
+
constructor(resolutions: readonly KnowledgeCitationResolution[]);
|
|
1814
|
+
}
|
|
1815
|
+
/** A persisted page contains a self, missing, or ambiguous citation. */
|
|
1816
|
+
declare class KnowledgeCitationAuditError extends Error {
|
|
1817
|
+
readonly report: KnowledgeCitationAuditReport;
|
|
1818
|
+
constructor(report: KnowledgeCitationAuditReport);
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Parse the persisted citation form.
|
|
1822
|
+
*
|
|
1823
|
+
* `page-id` is unqualified. `here::page-id`, `shared::page-id`, and
|
|
1824
|
+
* `inherited:<runId>::page-id` bind an intentional duplicate to one origin.
|
|
1825
|
+
*/
|
|
1826
|
+
declare function parseKnowledgeCitationReference(value: string): KnowledgeCitationReference;
|
|
1827
|
+
/** Serialize one reference into the canonical frontmatter representation. */
|
|
1828
|
+
declare function formatKnowledgeCitationReference(reference: KnowledgeCitationReference): string;
|
|
1829
|
+
/** Resolve one reference against an already materialized visibility chain. */
|
|
1830
|
+
declare function resolveKnowledgeCitation(visiblePages: readonly OriginatedPage[], reference: KnowledgeCitationReference): KnowledgeCitationResolution;
|
|
1831
|
+
/** Resolve a batch without discarding missing or ambiguous rows. */
|
|
1832
|
+
declare function resolveKnowledgeCitations(visiblePages: readonly OriginatedPage[], references: readonly KnowledgeCitationReference[]): readonly KnowledgeCitationResolution[];
|
|
1833
|
+
/**
|
|
1834
|
+
* Resolve a batch and fail closed unless every reference names exactly one
|
|
1835
|
+
* visible page. Returned candidates preserve the caller's reference order.
|
|
1836
|
+
*/
|
|
1837
|
+
declare function assertKnowledgeCitationsResolved(visiblePages: readonly OriginatedPage[], references: readonly KnowledgeCitationReference[]): readonly KnowledgeCitationCandidate[];
|
|
1838
|
+
/** Audit persisted `cites` relations against one immutable visibility snapshot. */
|
|
1839
|
+
declare function auditKnowledgeCitations(visiblePages: readonly OriginatedPage[], options?: AuditKnowledgeCitationsOptions): KnowledgeCitationAuditReport;
|
|
1840
|
+
/** Audit and fail closed when any persisted citation is unresolved. */
|
|
1841
|
+
declare function assertKnowledgeCitationAudit(report: KnowledgeCitationAuditReport): void;
|
|
1842
|
+
/** Resolve one citation using a run-scoped store's declared visibility chain. */
|
|
1843
|
+
declare function resolveRunScopedCitation(stores: RunScopedStores, runId: string, reference: KnowledgeCitationReference): Promise<KnowledgeCitationResolution>;
|
|
1844
|
+
/** Resolve citations using one chain read so every row sees the same snapshot. */
|
|
1845
|
+
declare function resolveRunScopedCitations(stores: RunScopedStores, runId: string, references: readonly KnowledgeCitationReference[]): Promise<readonly KnowledgeCitationResolution[]>;
|
|
1846
|
+
/** Resolve a run-scoped batch and fail closed on any missing or ambiguous id. */
|
|
1847
|
+
declare function assertRunScopedCitationsResolved(stores: RunScopedStores, runId: string, references: readonly KnowledgeCitationReference[]): Promise<readonly KnowledgeCitationCandidate[]>;
|
|
1848
|
+
/** Audit only pages authored in the current run against the full visible chain. */
|
|
1849
|
+
declare function auditCurrentRunCitations(stores: RunScopedStores, runId: string): Promise<KnowledgeCitationAuditReport>;
|
|
1850
|
+
/** Audit current-run citations and fail closed on every unresolved relation. */
|
|
1851
|
+
declare function assertCurrentRunCitationsResolved(stores: RunScopedStores, runId: string): Promise<KnowledgeCitationAuditReport>;
|
|
1852
|
+
//#endregion
|
|
1853
|
+
//#region src/citation-lint.d.ts
|
|
1854
|
+
/** Convert a chain-aware citation audit into the package lint vocabulary. */
|
|
1855
|
+
declare function knowledgeCitationAuditFindings(report: KnowledgeCitationAuditReport): KnowledgeLintFinding[];
|
|
1856
|
+
/** Lint only current-run pages against their complete declared visibility chain. */
|
|
1857
|
+
declare function lintCurrentRunCitations(stores: RunScopedStores, runId: string): Promise<KnowledgeLintFinding[]>;
|
|
1858
|
+
//#endregion
|
|
1607
1859
|
//#region src/claim-evidence.d.ts
|
|
1608
1860
|
/**
|
|
1609
1861
|
* The evidence contract for claims that machines, not authors, get to grade.
|
|
@@ -2617,6 +2869,142 @@ declare class FileSystemKbStore implements KbStore, ClaimLedgerStore {
|
|
|
2617
2869
|
private claimLedgerPath;
|
|
2618
2870
|
}
|
|
2619
2871
|
//#endregion
|
|
2872
|
+
//#region src/knowledge-use-receipts.d.ts
|
|
2873
|
+
declare const KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION: '1.0.0';
|
|
2874
|
+
declare const KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM: 'rfc8785-sha256';
|
|
2875
|
+
interface KnowledgeVisibilitySnapshotEntry {
|
|
2876
|
+
readonly position: number;
|
|
2877
|
+
readonly pageId: string;
|
|
2878
|
+
readonly origin: PageOrigin;
|
|
2879
|
+
readonly path: string;
|
|
2880
|
+
readonly pageDigest: Sha256Digest;
|
|
2881
|
+
readonly sourceIds: readonly string[];
|
|
2882
|
+
readonly invalidated: boolean;
|
|
2883
|
+
}
|
|
2884
|
+
/** Exact ordered page visibility presented to one retrieval operation. */
|
|
2885
|
+
interface KnowledgeVisibilitySnapshot {
|
|
2886
|
+
readonly schemaVersion: typeof KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION;
|
|
2887
|
+
readonly digestAlgorithm: typeof KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM;
|
|
2888
|
+
readonly snapshotDigest: Sha256Digest;
|
|
2889
|
+
readonly entries: readonly KnowledgeVisibilitySnapshotEntry[];
|
|
2890
|
+
}
|
|
2891
|
+
interface KnowledgeRetrieverIdentity {
|
|
2892
|
+
/** Stable implementation name, for example `token-overlap-v1`. */
|
|
2893
|
+
readonly id: string;
|
|
2894
|
+
/** Published or application-defined implementation version. */
|
|
2895
|
+
readonly version: string;
|
|
2896
|
+
/** Exact identity of every retrieval setting not represented elsewhere. */
|
|
2897
|
+
readonly configDigest: Sha256Digest;
|
|
2898
|
+
}
|
|
2899
|
+
interface OriginatedKnowledgeSearchResult extends KnowledgeSearchResult {
|
|
2900
|
+
readonly origin: PageOrigin;
|
|
2901
|
+
}
|
|
2902
|
+
interface KnowledgeRetrievalResultReceipt {
|
|
2903
|
+
readonly rank: number;
|
|
2904
|
+
readonly pageId: string;
|
|
2905
|
+
readonly origin: PageOrigin;
|
|
2906
|
+
readonly path: string;
|
|
2907
|
+
readonly pageDigest: Sha256Digest;
|
|
2908
|
+
readonly rrfScore: number;
|
|
2909
|
+
readonly normalizedScore: number;
|
|
2910
|
+
readonly snippet: string;
|
|
2911
|
+
readonly reasons: readonly string[];
|
|
2912
|
+
}
|
|
2913
|
+
type KnowledgeReceiptAttributeValue = string | number | boolean | null;
|
|
2914
|
+
/**
|
|
2915
|
+
* Immutable proof of what one actor could see and what its retriever returned.
|
|
2916
|
+
* Final prose is not evidence that retrieval happened; this receipt is.
|
|
2917
|
+
*/
|
|
2918
|
+
interface KnowledgeRetrievalReceipt {
|
|
2919
|
+
readonly schemaVersion: typeof KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION;
|
|
2920
|
+
readonly kind: 'knowledge-retrieval';
|
|
2921
|
+
readonly digestAlgorithm: typeof KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM;
|
|
2922
|
+
readonly receiptDigest: Sha256Digest;
|
|
2923
|
+
readonly createdAt: string;
|
|
2924
|
+
readonly runId: string;
|
|
2925
|
+
readonly actorId?: string;
|
|
2926
|
+
readonly profileDigest?: Sha256Digest;
|
|
2927
|
+
readonly executionRef?: Sha256Digest;
|
|
2928
|
+
readonly query: string;
|
|
2929
|
+
readonly retriever: KnowledgeRetrieverIdentity;
|
|
2930
|
+
readonly visibility: KnowledgeVisibilitySnapshot;
|
|
2931
|
+
readonly results: readonly KnowledgeRetrievalResultReceipt[];
|
|
2932
|
+
readonly evidenceRefs: readonly EvidenceRef[];
|
|
2933
|
+
readonly attributes: Readonly<Record<string, KnowledgeReceiptAttributeValue>>;
|
|
2934
|
+
}
|
|
2935
|
+
interface CreateKnowledgeRetrievalReceiptInput {
|
|
2936
|
+
readonly runId: string;
|
|
2937
|
+
readonly actorId?: string;
|
|
2938
|
+
readonly profileDigest?: Sha256Digest;
|
|
2939
|
+
readonly executionRef?: Sha256Digest;
|
|
2940
|
+
readonly query: string;
|
|
2941
|
+
readonly retriever: KnowledgeRetrieverIdentity;
|
|
2942
|
+
readonly visiblePages: readonly OriginatedPage[];
|
|
2943
|
+
readonly results: readonly OriginatedKnowledgeSearchResult[];
|
|
2944
|
+
readonly evidenceRefs?: readonly EvidenceRef[];
|
|
2945
|
+
readonly attributes?: Readonly<Record<string, KnowledgeReceiptAttributeValue>>;
|
|
2946
|
+
readonly createdAt?: Date | string;
|
|
2947
|
+
}
|
|
2948
|
+
type KnowledgeUseRelation = 'supports' | 'contradicts' | 'extends' | 'rederives' | 'background';
|
|
2949
|
+
type KnowledgeConsumerKind = 'decision' | 'artifact' | 'experiment' | 'candidate' | 'message' | 'other';
|
|
2950
|
+
interface KnowledgeConsumerRef {
|
|
2951
|
+
readonly kind: KnowledgeConsumerKind;
|
|
2952
|
+
readonly uri: string;
|
|
2953
|
+
readonly digest?: Sha256Digest;
|
|
2954
|
+
}
|
|
2955
|
+
interface KnowledgeUsedResult {
|
|
2956
|
+
readonly rank: number;
|
|
2957
|
+
readonly pageId: string;
|
|
2958
|
+
readonly origin: PageOrigin;
|
|
2959
|
+
readonly path: string;
|
|
2960
|
+
readonly pageDigest: Sha256Digest;
|
|
2961
|
+
}
|
|
2962
|
+
/**
|
|
2963
|
+
* Immutable proof that one retrieved page was selected for a downstream
|
|
2964
|
+
* decision, artifact, experiment, candidate, or message.
|
|
2965
|
+
*/
|
|
2966
|
+
interface KnowledgeUseReceipt {
|
|
2967
|
+
readonly schemaVersion: typeof KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION;
|
|
2968
|
+
readonly kind: 'knowledge-use';
|
|
2969
|
+
readonly digestAlgorithm: typeof KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM;
|
|
2970
|
+
readonly receiptDigest: Sha256Digest;
|
|
2971
|
+
readonly createdAt: string;
|
|
2972
|
+
readonly runId: string;
|
|
2973
|
+
readonly actorId?: string;
|
|
2974
|
+
readonly profileDigest?: Sha256Digest;
|
|
2975
|
+
readonly executionRef?: Sha256Digest;
|
|
2976
|
+
readonly retrievalReceiptDigest: Sha256Digest;
|
|
2977
|
+
readonly used: KnowledgeUsedResult;
|
|
2978
|
+
readonly relation: KnowledgeUseRelation;
|
|
2979
|
+
readonly consumer: KnowledgeConsumerRef;
|
|
2980
|
+
readonly evidenceRefs: readonly EvidenceRef[];
|
|
2981
|
+
readonly attributes: Readonly<Record<string, KnowledgeReceiptAttributeValue>>;
|
|
2982
|
+
}
|
|
2983
|
+
interface CreateKnowledgeUseReceiptInput {
|
|
2984
|
+
readonly retrieval: KnowledgeRetrievalReceipt;
|
|
2985
|
+
/** Exact one-based rank from the retrieval receipt. */
|
|
2986
|
+
readonly selectedRank: number;
|
|
2987
|
+
readonly relation: KnowledgeUseRelation;
|
|
2988
|
+
readonly consumer: KnowledgeConsumerRef;
|
|
2989
|
+
readonly evidenceRefs?: readonly EvidenceRef[];
|
|
2990
|
+
readonly attributes?: Readonly<Record<string, KnowledgeReceiptAttributeValue>>;
|
|
2991
|
+
readonly createdAt?: Date | string;
|
|
2992
|
+
}
|
|
2993
|
+
/** Stable content identity for one exact knowledge page. */
|
|
2994
|
+
declare function knowledgePageDigest(page: KnowledgePage): Sha256Digest;
|
|
2995
|
+
/** Snapshot the exact ordered current/ancestor/shared page view. */
|
|
2996
|
+
declare function createKnowledgeVisibilitySnapshot(visiblePages: readonly OriginatedPage[]): KnowledgeVisibilitySnapshot;
|
|
2997
|
+
/** Create a retrieval receipt and refuse results that were not in the view. */
|
|
2998
|
+
declare function createKnowledgeRetrievalReceipt(input: CreateKnowledgeRetrievalReceiptInput): KnowledgeRetrievalReceipt;
|
|
2999
|
+
/** Verify the receipt's schema, internal joins, and canonical digest. */
|
|
3000
|
+
declare function verifyKnowledgeRetrievalReceipt(receipt: KnowledgeRetrievalReceipt): KnowledgeRetrievalReceipt;
|
|
3001
|
+
/** Prove that a receipt still describes the supplied visibility bytes. */
|
|
3002
|
+
declare function assertKnowledgeRetrievalMatchesVisibility(receipt: KnowledgeRetrievalReceipt, visiblePages: readonly OriginatedPage[]): void;
|
|
3003
|
+
/** Create a downstream-use receipt for one exact ranked result. */
|
|
3004
|
+
declare function createKnowledgeUseReceipt(input: CreateKnowledgeUseReceiptInput): KnowledgeUseReceipt;
|
|
3005
|
+
/** Verify one use receipt against the exact retrieval that authorized it. */
|
|
3006
|
+
declare function verifyKnowledgeUseReceipt(receipt: KnowledgeUseReceipt, retrieval: KnowledgeRetrievalReceipt): KnowledgeUseReceipt;
|
|
3007
|
+
//#endregion
|
|
2620
3008
|
//#region src/lint.d.ts
|
|
2621
3009
|
declare function lintKnowledgeIndex(index: KnowledgeIndex): KnowledgeLintFinding[];
|
|
2622
3010
|
//#endregion
|
|
@@ -2958,82 +3346,6 @@ declare function createResearchDrivingDriver(options?: ResearchDrivingDriverOpti
|
|
|
2958
3346
|
*/
|
|
2959
3347
|
declare function createPersistentResearchDrivingDriver(options: PersistentResearchDrivingDriverOptions): Promise<ResearchDrivingDriver>;
|
|
2960
3348
|
//#endregion
|
|
2961
|
-
//#region src/store.d.ts
|
|
2962
|
-
interface KnowledgeLayout {
|
|
2963
|
-
root: string;
|
|
2964
|
-
knowledgeDir: string;
|
|
2965
|
-
rawSourcesDir: string;
|
|
2966
|
-
sourceRegistryPath: string;
|
|
2967
|
-
indexPath: string;
|
|
2968
|
-
logPath: string;
|
|
2969
|
-
cacheDir: string;
|
|
2970
|
-
}
|
|
2971
|
-
declare function layoutFor(root: string): KnowledgeLayout;
|
|
2972
|
-
/**
|
|
2973
|
-
* Filenames that `initKnowledgeBase` writes as human-navigation scaffolding.
|
|
2974
|
-
* These are excluded from the page index — they exist on disk so authors can
|
|
2975
|
-
* curate their vault, but they are not searchable content.
|
|
2976
|
-
*
|
|
2977
|
-
* Add new scaffold filenames here (and only here) to keep lint, validate, viz,
|
|
2978
|
-
* and the indexer consistent.
|
|
2979
|
-
*/
|
|
2980
|
-
declare const SCAFFOLD_PAGE_BASENAMES: readonly string[];
|
|
2981
|
-
/**
|
|
2982
|
-
* True when a knowledge-relative path points at a scaffold file rather than
|
|
2983
|
-
* authored content. Accepts both repo-relative paths (`knowledge/index.md`)
|
|
2984
|
-
* and any nested `<dir>/index.md` or `<dir>/log.md` (for example
|
|
2985
|
-
* `knowledge/concepts/index.md`) so subdirectory README-style scaffolds are
|
|
2986
|
-
* also excluded.
|
|
2987
|
-
*/
|
|
2988
|
-
declare function isScaffoldPath(path: string): boolean;
|
|
2989
|
-
declare function initKnowledgeBase(root: string): Promise<KnowledgeLayout>;
|
|
2990
|
-
interface LoadKnowledgePagesOptions {
|
|
2991
|
-
/** Root-relative directory containing Markdown pages. Defaults to `knowledge`. */
|
|
2992
|
-
pagesDirectory?: string;
|
|
2993
|
-
}
|
|
2994
|
-
declare function loadKnowledgePages(root: string, options?: LoadKnowledgePagesOptions): Promise<KnowledgePage[]>;
|
|
2995
|
-
declare function writeJson(path: string, value: unknown): Promise<void>;
|
|
2996
|
-
//#endregion
|
|
2997
|
-
//#region src/run-scoped.d.ts
|
|
2998
|
-
/** Where a page in a chained read came from. */
|
|
2999
|
-
type PageOrigin = 'here' | `inherited:${string}` | 'shared';
|
|
3000
|
-
interface OriginatedPage {
|
|
3001
|
-
page: KnowledgePage;
|
|
3002
|
-
origin: PageOrigin;
|
|
3003
|
-
}
|
|
3004
|
-
interface RunLineageRecord {
|
|
3005
|
-
runId: string;
|
|
3006
|
-
parentRunId: string | null;
|
|
3007
|
-
createdAt: string;
|
|
3008
|
-
}
|
|
3009
|
-
declare const RUN_LINEAGE_BASENAME = "lineage.json";
|
|
3010
|
-
interface RunScopedStoresOptions {
|
|
3011
|
-
/** The root under which per-run stores live. */
|
|
3012
|
-
root: string;
|
|
3013
|
-
/** Store path for a run; defaults to `<root>/<runId>/knowledge-base`. */
|
|
3014
|
-
runStorePath?: (runId: string) => string;
|
|
3015
|
-
/**
|
|
3016
|
-
* The curated store every run may read but no run writes — promotion into it is a deliberate
|
|
3017
|
-
* act outside this module. Searched last, labeled `shared`.
|
|
3018
|
-
*/
|
|
3019
|
-
sharedRoot?: string;
|
|
3020
|
-
}
|
|
3021
|
-
interface RunScopedStores {
|
|
3022
|
-
/** Create (or open) a run's store, recording its parent at creation time. */
|
|
3023
|
-
init(runId: string, options?: {
|
|
3024
|
-
parentRunId?: string | null;
|
|
3025
|
-
}): Promise<KnowledgeLayout>;
|
|
3026
|
-
/** The ancestor chain of a run, nearest first, resolved from records written at init. */
|
|
3027
|
-
lineage(runId: string): Promise<string[]>;
|
|
3028
|
-
/**
|
|
3029
|
-
* Every page visible to a run: its own, then each ancestor's, then the shared store's, each
|
|
3030
|
-
* labeled with its origin. Later stores never shadow earlier ones — a reader sees both copies
|
|
3031
|
-
* of a twice-recorded claim and the labels that distinguish them.
|
|
3032
|
-
*/
|
|
3033
|
-
loadChain(runId: string): Promise<OriginatedPage[]>;
|
|
3034
|
-
}
|
|
3035
|
-
declare function createRunScopedStores(options: RunScopedStoresOptions): RunScopedStores;
|
|
3036
|
-
//#endregion
|
|
3037
3349
|
//#region src/schemas.d.ts
|
|
3038
3350
|
declare const SourceAnchorSchema: z.ZodObject<{
|
|
3039
3351
|
id: z.ZodString;
|
|
@@ -3088,6 +3400,7 @@ declare const KnowledgePageSchema: z.ZodObject<{
|
|
|
3088
3400
|
sourceIds: z.ZodArray<z.ZodString>;
|
|
3089
3401
|
tags: z.ZodArray<z.ZodString>;
|
|
3090
3402
|
outLinks: z.ZodArray<z.ZodString>;
|
|
3403
|
+
cites: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3091
3404
|
contradicts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3092
3405
|
invalidation: z.ZodOptional<z.ZodObject<{
|
|
3093
3406
|
verdict: z.ZodLiteral<"contradicted">;
|
|
@@ -3149,6 +3462,7 @@ declare const KnowledgeIndexSchema: z.ZodObject<{
|
|
|
3149
3462
|
sourceIds: z.ZodArray<z.ZodString>;
|
|
3150
3463
|
tags: z.ZodArray<z.ZodString>;
|
|
3151
3464
|
outLinks: z.ZodArray<z.ZodString>;
|
|
3465
|
+
cites: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3152
3466
|
contradicts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3153
3467
|
invalidation: z.ZodOptional<z.ZodObject<{
|
|
3154
3468
|
verdict: z.ZodLiteral<"contradicted">;
|
|
@@ -3355,5 +3669,5 @@ declare function normalizeLinkTarget(target: string): string;
|
|
|
3355
3669
|
declare function isSafeKnowledgePath(path: string, allowedPrefixes?: string[]): boolean;
|
|
3356
3670
|
declare function parseKnowledgeWriteBlocks(text: string, allowedPrefixes?: string[]): KnowledgeWriteParseResult;
|
|
3357
3671
|
//#endregion
|
|
3358
|
-
export { AdaptiveDecision, AdaptiveDriverOptions, AdaptiveResearchDriver, AdaptiveStats, AddSourceOptions, AddSourceTextInput, AgentMemoryAcquireRunLease, type AgentMemoryActivation, type AgentMemoryActivationDriver, AgentMemoryAdapter, type AgentMemoryAttemptEvent, AgentMemoryBranch, AgentMemoryBranchIsolation, AgentMemoryBranchLifetime, AgentMemoryBranchSnapshot, AgentMemoryContext, AgentMemoryControllerMode, type AgentMemoryDimensionComparison, type AgentMemoryEvidenceRef, type AgentMemoryExecutionContext, type AgentMemoryExecutionCostMeter, type AgentMemoryExecutionCostReceipt, type AgentMemoryExecutionPaidCallInput, type AgentMemoryExecutionPaidCallResult, type AgentMemoryExecutionStep, type AgentMemoryExperimentCandidate, type AgentMemoryExperimentCandidateRef, type AgentMemoryExperimentComparisonRef, type AgentMemoryExperimentRankingRow, type AgentMemoryExperimentRunLease, type AgentMemoryFinalEvaluation, type AgentMemoryFinalPair, type AgentMemoryForgettingComparison, AgentMemoryHit, AgentMemoryHitSchema, type AgentMemoryImprovementRunLease, AgentMemoryJournalEntry, AgentMemoryKind, AgentMemoryKindSchema, type AgentMemoryLearningArmOrder, type AgentMemoryLearningCandidateSummary, type AgentMemoryLearningCellComparison, type AgentMemoryLearningComparison, AgentMemoryLifecycleTimeoutError, AgentMemoryLifecycleUnsafeError, type AgentMemoryMode, type AgentMemoryPromotionDecision, AgentMemoryRunLease, AgentMemoryScope, AgentMemoryScopeSchema, AgentMemorySearchOptions, type AgentMemorySequence, type AgentMemorySequenceArtifact, type AgentMemorySequenceProbe, type AgentMemorySequenceProbeResult, type AgentMemorySequenceScenario, type AgentMemorySequenceStep, AgentMemorySharingPolicy, type AgentMemoryTransferCellComparison, type AgentMemoryTransferStepSummary, AgentMemoryVisibility, AgentMemoryWriteInput, AgentMemoryWriteInputSchema, AgentMemoryWriteResult, ApplyWriteBlocksResult, type BuildAgentMemorySequencesFromBenchmarkCasesOptions, BuildEvalKnowledgeBundleOptions, type BuildRetrievalBenchmarkCasesFromQrelsOptions, BuildRetrievalEvalDispatchOptions, CHECKABLE_RUNG_THRESHOLD, CheckExecution, ChunkingOptions, ClaimEvidence, ClaimGrade, ClaimGroundingDriverOptions, ClaimLedgerGoalConflictError, ClaimLedgerMigrationRequiredError, ClaimLedgerStore, ClaimRef, ClaimVerdict, CompanyEvalCase, type CompareAgentMemoryLearningOptions, CornellLiiSelector, CornellLiiSourceOptions, CreateAgentMemoryBranchOptions, D1Adapter, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, DedupReason, DeepQuestion, DeepQuestionKind, DeepQuestionSchema, DefineReadinessSpecInput, DetectChangesOptions, DetectChangesResult, DiscoveryLoopResult, DiscoveryLoopRound, DiscoveryLoopStopReason, DiscoveryResult, DiscoveryTask, DriverResearchContext, EvalKnowledgeBundleBuildResult, EvaluateKnowledgeBaseReadinessOptions, EvidenceRung, ExpectedGroup, type ExternalRagEvalScore, FactResult, FetchOpts, FileSystemFreshnessStoreOptions, FileSystemKbStore, FileSystemKbStoreOptions, FileSystemSearchOptions, FileSystemSearchProvider, FileSystemSearchProviderOptions, ForkAgentMemoryBranchSnapshotOptions, FragmentProvenance, FreshnessKey, FreshnessMark, FreshnessRecord, FreshnessTtl, GraphitiMcpClientLike, GraphitiMemoryAdapterOptions, GraphitiToolNames, GroundClaimOptions, GroundingResult, INDUSTRY_MEMORY_BENCHMARKS, INDUSTRY_RAG_BENCHMARKS, IRS_DIMENSION_HINTS, IrsPublicationsSourceOptions, KB_CLAIM_LEDGER_DIR, KB_EVENTS_PATH, KB_INDEX_PATH, KB_STORE_DIR, KNOWLEDGE_EVENT_TYPES, KbStore, type KnowledgeAnswerBenchmarkCase, type KnowledgeAnswerBenchmarkTaskKind, KnowledgeBaseCandidate, KnowledgeBaseCandidateSchema, type KnowledgeBaseQualityOptions, type KnowledgeBaseQualityReport, KnowledgeBaseReadinessEvaluation, type KnowledgeBenchmarkArtifact, type KnowledgeBenchmarkCase, type KnowledgeBenchmarkCaseBase, type KnowledgeBenchmarkDistribution, type KnowledgeBenchmarkEvaluation, type KnowledgeBenchmarkFamily, type KnowledgeBenchmarkReport, type KnowledgeBenchmarkResponder, type KnowledgeBenchmarkScenario, type KnowledgeBenchmarkSliceSummary, type KnowledgeBenchmarkSource, type KnowledgeBenchmarkSpec, type KnowledgeBenchmarkSplit, type KnowledgeBenchmarkTaskKind, KnowledgeChange, KnowledgeChangeKind, KnowledgeChunk, KnowledgeClaim, type KnowledgeClaimMatcher, KnowledgeControlLoopAction, KnowledgeControlLoopActionResult, KnowledgeControlLoopAdapter, KnowledgeControlLoopAdapterOptions, KnowledgeControlLoopState, KnowledgeDiscoveryDispatcher, KnowledgeDiscoveryWorker, KnowledgeEvent, KnowledgeEventQuery, KnowledgeEventSchema, KnowledgeEventType, KnowledgeExplanation, KnowledgeFragment, KnowledgeFreshnessStore, KnowledgeGap, KnowledgeGraph, KnowledgeGraphEdge, KnowledgeGraphEdgeSchema, KnowledgeGraphNode, KnowledgeGraphNodeSchema, KnowledgeId, type KnowledgeImprovementActivationPersistence, type KnowledgeImprovementCandidateRecord, type KnowledgeImprovementCandidateRef, KnowledgeImprovementCandidateRefSchema, type KnowledgeImprovementEvaluationInput, type KnowledgeImprovementEvaluator, type KnowledgeImprovementEvent, type KnowledgeImprovementEvidence, KnowledgeImprovementEvidenceSchema, type KnowledgeImprovementMetric, type KnowledgeImprovementMetricProvenance, type KnowledgeImprovementMutationReceipt, type KnowledgeImprovementMutationResult, type KnowledgeImprovementOptions, type KnowledgeImprovementRagOptimizationOptions, type KnowledgeImprovementRagOptimizationRunInput, type KnowledgeImprovementResult, type KnowledgeImprovementRetrievalOptions, type KnowledgeImprovementRunState, KnowledgeImprovementRunStateSchema, type KnowledgeImprovementStatus, type KnowledgeImprovementTarget, type KnowledgeImprovementUpdate, type KnowledgeImprovementUpdateInput, KnowledgeIndex, KnowledgeIndexSchema, KnowledgeInspection, KnowledgeLayout, KnowledgeLintFinding, type KnowledgeMemoryBenchmarkCase, type KnowledgeMemoryBenchmarkTaskKind, type KnowledgeMemoryEvent, type KnowledgeMemoryFactMatcher, type KnowledgeMutationLock, type KnowledgeMutationOptions, KnowledgePage, KnowledgePageInvalidation, KnowledgePageInvalidationSchema, KnowledgePageSchema, KnowledgePolicy, type KnowledgePolicyDispatch, KnowledgeProposal, KnowledgeProposalParseError, type KnowledgeReadOptions, KnowledgeReadinessSpec, KnowledgeRelation, KnowledgeRelease, KnowledgeReleaseInput, KnowledgeReleaseReport, KnowledgeResearchLoopContext, KnowledgeResearchLoopDecision, KnowledgeResearchLoopResult, KnowledgeResearchLoopStep, type KnowledgeRetrievalBenchmarkCase, type KnowledgeRetrievalBenchmarkQrel, type KnowledgeRetrievalBenchmarkQuery, KnowledgeSearchHit, KnowledgeSearchResult, KnowledgeSource, KnowledgeUnit, KnowledgeWriteBlock, KnowledgeWriteParseResult, type LoadKnowledgeImprovementActivationResultOptions, LoadKnowledgePagesOptions, MAX_RESPONSE_BYTES, MIN_REQUEST_GAP_MS, MaterialFact, MaterialFactLens, MaterialFactsResult, Mem0ClientMode, Mem0HostedClient, Mem0HostedMemoryAdapterOptions, Mem0MemoryAdapterOptions, Mem0OssClient, Mem0OssMemoryAdapterOptions, type MemoryAdapterBenchmarkCandidate, type MemoryAdapterBenchmarkRankingRow, type MemoryConfigScenario, MemoryKbStore, type NearDuplicateDetectionOptions, type NearDuplicatePair, type NearDuplicateReport, Neo4jAgentMemoryAdapterOptions, type OptimizeKnowledgeBasePolicyOptions, type OptimizeKnowledgeBasePolicyResult, OriginatedPage, OwnedAgentMemoryRunLease, POLITE_USER_AGENT, PageOrigin, ParsedFrontmatter, PartitionRetrievalScenariosOptions, type PendingKnowledgeMutation, PersistentResearchDrivingDriverOptions, PoliteFetchOptions, PoliteFetchResult, type PromoteKnowledgeCandidateOptions, ProposeFromFindingsResult, READINESS_SPEC_DEFAULTS, RUN_LINEAGE_BASENAME, type RagAnswerEvalArtifact, type RagAnswerEvalCase, type RagAnswerEvalScenario, type RagAnswerMetricSummary, type RagAnswerQualityHookOptions, RagAnswerQualityInput, type RagAnswerQualityJudgeOptions, RagAnswerQualityResult, type RagCalibrationOptions, type RagCalibrationResult, RagDiagnosisInput, type RagEvalCitation, type RagEvalClaim, type RagEvalContext, type RagEvalMetricKey, type RagEvalProvider, type RagEvalSlice, RagGapFinding, RagGapKind, RagGapSeverity, RagKnowledgeAcquisitionInput, RagKnowledgeImprovementPhase, RagKnowledgeImprovementPhaseResult, RagKnowledgeImprovementPhaseStatus, RagKnowledgeResearchOptions, RagKnowledgeUpdateInput, RagKnowledgeUpdateResult, RagOptimizationConfig, RagOptimizationSelection, RagPhaseInputBase, RagPromotionInput, RagPromotionResult, type RagRequiredContext, type RecoverPendingKnowledgeMutationOptions, RegularFileSnapshot, RejectedSource, ResearchClaimEvidence, ResearchClaimEvidenceSchema, ResearchClaimLedger, ResearchClaimLedgerSchema, ResearchClaimRecord, ResearchClaimRecordSchema, ResearchContribution, ResearchDriver, ResearchDrivingDriver, ResearchDrivingDriverOptions, ResearchDrivingState, ResearchDrivingSteer, ResearchSourceProposal, ResearchSourceVersion, ResearchSourceVersionSchema, ResearchWorker, type ResolvedKnowledgeImprovementCandidate, type ResolvedKnowledgeImprovementComparison, type ResolvedKnowledgeImprovementComparisonSnapshot, type RestoreKnowledgeCandidateBaselineOptions, RetrievalConfig, RetrievalEvalArtifact, RetrievalEvalRetriever, RetrievalEvalRetrieverInput, RetrievalEvalRetrieverResult, RetrievalEvalScenario, RetrievalGoldTarget, RetrievalHoldoutBypassReason, RetrievalHoldoutCallContext, RetrievalHoldoutConfig, RetrievalHoldoutEligibleItem, RetrievalHoldoutEvent, RetrievalHoldoutOffPolicyOptions, RetrievalHoldoutOffPolicyResult, RetrievalHoldoutResult, RetrievalHoldoutSessionState, RetrievalHoldoutSessionSummary, RetrievalMetricSummary, RetrievalMetricWeights, RetrievalOptimizationSelection, RetrievalRecallJudgeOptions, RetrievalScenarioPartitions, RetrievedKnowledgeHit, RetrievedSourceSpan, RouterClient, RouterError, RouterUsage, type RunAgentMemoryExperimentOptions, type RunAgentMemoryExperimentResult, type RunAgentMemoryImprovementOptions, type RunAgentMemoryImprovementResult, type RunAgentMemoryLearningExperimentOptions, type RunAgentMemoryLearningExperimentResult, RunDiscoveryLoopOptions, type RunKnowledgeBenchmarkSuiteOptions, type RunKnowledgeBenchmarkSuiteResult, RunKnowledgeResearchLoopOptions, RunLineageRecord, type RunMemoryAdapterBenchmarkOptions, type RunMemoryAdapterBenchmarkResult, RunRagKnowledgeImprovementLoopOptions, RunRagKnowledgeImprovementLoopResult, RunRagOptimizationOptions, RunRagOptimizationResult, RunRetrievalImprovementLoopOptions, RunRetrievalImprovementLoopResult, RunScopedStores, RunScopedStoresOptions, RunSerializedKnowledgeOptimizationOptions, RunSerializedKnowledgeOptimizationResult, SCAFFOLD_PAGE_BASENAMES, SearchKnowledgeOptions, SerializedCandidate, SerializedCandidateCodec, SourceAdapter, SourceAdapterInput, SourceAdapterOutput, SourceAnchor, SourceAnchorSchema, SourceFreshnessInspection, SourceRecord, SourceRecordSchema, SourceRegistry, SourceVerdict, SourceVerificationContext, StateSosEntity, StateSosSourceConfig, TangleRouterOptions, ThesisRunOptions, ThesisRunResult, ThesisTaskInput, TrackedClaim, TriageClass, UncheckableClaimError, type UseKnowledgeImprovementCandidateOptions, ValidateKnowledgeOptions, ValidateKnowledgeResult, VerifiedGradeableEvidence, VerifiedResearchLoopOptions, VerifiedResearchLoopResult, VerifiedResearchRound, VerifyGradeableEvidenceOptions, VerifyingDriverOptions, WIKILINK_REGEX, WebResearchWorkerOptions, WebSearchHit, WorkerClaimDecorationOptions, WorkerResearchContext, __resetHttpThrottle, acquireAgentMemoryRunLease, addSourcePath, addSourceText, agentMemorySequenceJudge, applyKnowledgeWriteBlocks, applyKnowledgeWriteBlocksFile, applyRetrievalHoldout, applySessionStickyRetrievalHoldout, assertClaimLedgerId, assertDeepQuestionIntegrity, assertGradeableEvidence, assertResearchClaimEvidenceIntegrity, assertResearchClaimLedgerIntegrity, assertTrackedClaimIntegrity, buildAgentMemorySequenceScenarios, buildAgentMemorySequencesFromBenchmarkCases, buildEvalKnowledgeBundle, buildFirstPartyMemoryLifecycleBenchmarkCases, buildIndustryMemoryBenchmarkSmokeCases, buildIndustryRagBenchmarkSmokeCases, buildKnowledgeBenchmarkScenarios, buildKnowledgeGraph, buildKnowledgeIndex, buildRetrievalBenchmarkCasesFromQrels, buildRetrievalEvalDispatch, calibrateRagAnswerJudge, canonicalizeUrl, chunkMarkdown, citedClaimKey, citedClaimOf, claimEvidenceId, claimId, claimSourceHost, compareAgentMemoryLearning, contentKey, createAdaptiveResearchDriver, createAgentMemoryBranch, createClaimDecorator, createClaimGroundingVerifier, createCollectionResearchDriver, createCornellLiiSource, createD1FreshnessStoreStub, createFileSystemFreshnessStore, createFileSystemSearchProvider, createGraphitiMemoryAdapter, createInMemoryBenchmarkAdapter, createIrsPublicationsSource, createKnowledgeControlLoopAdapter, createKnowledgeEvent, createLocalDiscoveryDispatcher, createMem0MemoryAdapter, createMemoryExecutionPool, createNeo4jAgentMemoryAdapter, createNoopMemoryBenchmarkAdapter, createPersistentResearchDrivingDriver, createRagAnswerQualityHook, createResearchDrivingDriver, createRunScopedStores, createStateSosSource, createTangleRouterClient, createVerifyingResearchDriver, createWebResearchWorker, deepQuestionId, defaultGetMemoryContext, defineReadinessSpec, detectChanges, detectNearDuplicatePages, deterministicRng, diagnoseRagAnswerFailure, emitRetrievalHoldoutBypass, emptyClaimLedger, evaluateKnowledgeBaseReadiness, explainKnowledgeTarget, extractLinks, extractWikilinks, firstMatch, forkAgentMemoryBranchSnapshot, formatFrontmatter, fromAgentCandidateKnowledgeRef, gradeCompanyAgainstText, gradeFactAgainstText, gradeFor, graphitiMemoryAdapterIdentity, groundClaimInText, hashKnowledgeBase, htmlToText, improveKnowledgeBase, initKnowledgeBase, innerHtmlById, inspectKnowledgeIndex, inspectPendingKnowledgeMutation, investmentThesisSet, isKernelAnchoredPath, isKnowledgeMemoryBenchmarkCase, isMissingFile, isSafeKnowledgePath, isScaffoldPath, jsonCandidateCodec, jsonObjectCandidateCodec, kbIndexToText, knowledgeBenchmarkJudge, knowledgeImprovementCandidateRef, knowledgeImprovementRunDir, knowledgeImprovementRunId, knowledgeReleaseReport, layoutFor, lensDistribution, linkClaimContradictions, lintKnowledgeIndex, listRegularFilesWithinRoot, loadKnowledgeImprovementActivationResult, loadKnowledgeImprovementEvents, loadKnowledgeImprovementState, loadKnowledgePages, loadSourceRegistry, looksLikeBlockPage, materialFactsSurfaced, materialFactsSurfacedInText, materializeRegisteredClaimEvidence, mediaTypeFor, mem0MemoryAdapterIdentity, memoryHitToSourceRecord, memoryRecoveryDelayMs, memoryWriteResultToSourceRecord, mergeClaimLedgers, mergeTrackedClaims, normalizeClaimText, normalizeExternalRagScores, normalizeLinkTarget, normalizePageText, optimizeKnowledgeBasePolicy, parseFrontmatter, parseKnowledgeBenchmarkJsonl, parseKnowledgeBenchmarkQrels, parseKnowledgeWriteBlocks, partitionRetrievalScenarios, politeFetch, promoteKnowledgeCandidate, proposeFromFinding, proposeFromFindings, ragAnswerQualityJudge, readRegularFileNoFollow, readRegularFileWithinRoot, reciprocalRankFusion, recoverPendingKnowledgeMutation, removeDurable, renameDurable, renderKnowledgeBenchmarkReportMarkdown, renderMemoryContext, researchSourceVersionKey, resetRetrievalHoldoutRegistry, resolveMemoryCleanupTimeoutMs, respondToIndustryMemoryBenchmarkSmokeCase, respondToIndustryRagBenchmarkSmokeCase, restoreKnowledgeCandidateBaseline, retrievalConfigFromSurface, retrievalConfigSurface, retrievalHoldoutConfigHash, retrievalRecallJudge, runAgentMemoryExperiment, runAgentMemoryImprovement, runAgentMemoryLearningExperiment, runBoundedMemoryLifecycle, runDiscoveryLoop, runInvestmentThesisTask, runKnowledgeBenchmarkSuite, runKnowledgeResearchLoop, runMemoryAdapterBenchmark, runRagKnowledgeImprovementLoop, runRagOptimization, runRetrievalImprovementLoop, runSerializedKnowledgeOptimization, runVerifiedResearchLoop, scenarioContentFingerprint, scoreKnowledgeBaseIndex, scoreKnowledgeBenchmarkArtifact, scoreMemoryBenchmarkArtifact, scoreRagAnswerArtifact, scoreRetrievalArtifact, searchKnowledge, sha256, sleepForMemoryRecovery, slugify, snapshotSourceTextInput, sourceMatchesGaps, sourceRegistryPath, stableId, stripFrontmatter, summarizeKnowledgeBenchmarkCampaign, syncDirectory, textSourceAdapter, textSourceId, thesisReadinessSpecs, toAgentCandidateKnowledgeRef, toDeepEvalTestCases, toOffPolicyTrajectory, toRagCheckerRecords, toRagasEvaluationRows, toTruLensRecords, tokenizeQuery, totalMaterialFacts, triageSource, validateKnowledgeIndex, verdictFor, verifyGradeableEvidence, withCitedClaim, withKnowledgeImprovementCandidate, withKnowledgeImprovementComparison, withKnowledgeMutation, withKnowledgeRead, withSafeDescendant, withSafeDirectory, writeFileDurable, writeFileDurableWithinRoot, writeJson, writeJsonDurable, writeJsonDurableWithinRoot, writeKnowledgeIndex, writeSourceRegistry };
|
|
3672
|
+
export { AdaptiveDecision, AdaptiveDriverOptions, AdaptiveResearchDriver, AdaptiveStats, AddSourceOptions, AddSourceTextInput, AgentMemoryAcquireRunLease, type AgentMemoryActivation, type AgentMemoryActivationDriver, AgentMemoryAdapter, type AgentMemoryAttemptEvent, AgentMemoryBranch, AgentMemoryBranchIsolation, AgentMemoryBranchLifetime, AgentMemoryBranchSnapshot, AgentMemoryContext, AgentMemoryControllerMode, type AgentMemoryDimensionComparison, type AgentMemoryEvidenceRef, type AgentMemoryExecutionContext, type AgentMemoryExecutionCostMeter, type AgentMemoryExecutionCostReceipt, type AgentMemoryExecutionPaidCallInput, type AgentMemoryExecutionPaidCallResult, type AgentMemoryExecutionStep, type AgentMemoryExperimentCandidate, type AgentMemoryExperimentCandidateRef, type AgentMemoryExperimentComparisonRef, type AgentMemoryExperimentRankingRow, type AgentMemoryExperimentRunLease, type AgentMemoryFinalEvaluation, type AgentMemoryFinalPair, type AgentMemoryForgettingComparison, AgentMemoryHit, AgentMemoryHitSchema, type AgentMemoryImprovementRunLease, AgentMemoryJournalEntry, AgentMemoryKind, AgentMemoryKindSchema, type AgentMemoryLearningArmOrder, type AgentMemoryLearningCandidateSummary, type AgentMemoryLearningCellComparison, type AgentMemoryLearningComparison, AgentMemoryLifecycleTimeoutError, AgentMemoryLifecycleUnsafeError, type AgentMemoryMode, type AgentMemoryPromotionDecision, AgentMemoryRunLease, AgentMemoryScope, AgentMemoryScopeSchema, AgentMemorySearchOptions, type AgentMemorySequence, type AgentMemorySequenceArtifact, type AgentMemorySequenceProbe, type AgentMemorySequenceProbeResult, type AgentMemorySequenceScenario, type AgentMemorySequenceStep, AgentMemorySharingPolicy, type AgentMemoryTransferCellComparison, type AgentMemoryTransferStepSummary, AgentMemoryVisibility, AgentMemoryWriteInput, AgentMemoryWriteInputSchema, AgentMemoryWriteResult, ApplyWriteBlocksResult, AuditKnowledgeCitationsOptions, type BuildAgentMemorySequencesFromBenchmarkCasesOptions, BuildEvalKnowledgeBundleOptions, type BuildRetrievalBenchmarkCasesFromQrelsOptions, BuildRetrievalEvalDispatchOptions, CHECKABLE_RUNG_THRESHOLD, CheckExecution, ChunkingOptions, ClaimEvidence, ClaimGrade, ClaimGroundingDriverOptions, ClaimLedgerGoalConflictError, ClaimLedgerMigrationRequiredError, ClaimLedgerStore, ClaimRef, ClaimVerdict, CompanyEvalCase, type CompareAgentMemoryLearningOptions, CornellLiiSelector, CornellLiiSourceOptions, CreateAgentMemoryBranchOptions, CreateKnowledgeRetrievalReceiptInput, CreateKnowledgeUseReceiptInput, D1Adapter, DEFAULT_MEMORY_CLEANUP_TIMEOUT_MS, DedupReason, DeepQuestion, DeepQuestionKind, DeepQuestionSchema, DefineReadinessSpecInput, DetectChangesOptions, DetectChangesResult, DiscoveryLoopResult, DiscoveryLoopRound, DiscoveryLoopStopReason, DiscoveryResult, DiscoveryTask, DriverResearchContext, EvalKnowledgeBundleBuildResult, EvaluateKnowledgeBaseReadinessOptions, EvidenceRung, ExpectedGroup, type ExternalRagEvalScore, FactResult, FetchOpts, FileSystemFreshnessStoreOptions, FileSystemKbStore, FileSystemKbStoreOptions, FileSystemSearchOptions, FileSystemSearchProvider, FileSystemSearchProviderOptions, ForkAgentMemoryBranchSnapshotOptions, FragmentProvenance, FreshnessKey, FreshnessMark, FreshnessRecord, FreshnessTtl, GraphitiMcpClientLike, GraphitiMemoryAdapterOptions, GraphitiToolNames, GroundClaimOptions, GroundingResult, INDUSTRY_MEMORY_BENCHMARKS, INDUSTRY_RAG_BENCHMARKS, IRS_DIMENSION_HINTS, type ImproveSelectedKnowledgeCandidateOptions, type ImproveSelectedKnowledgeCandidateResult, IrsPublicationsSourceOptions, KB_CLAIM_LEDGER_DIR, KB_EVENTS_PATH, KB_INDEX_PATH, KB_STORE_DIR, KNOWLEDGE_EVENT_TYPES, KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM, KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION, KbStore, type KnowledgeAnswerBenchmarkCase, type KnowledgeAnswerBenchmarkTaskKind, KnowledgeBaseCandidate, KnowledgeBaseCandidateSchema, type KnowledgeBaseQualityOptions, type KnowledgeBaseQualityReport, KnowledgeBaseReadinessEvaluation, type KnowledgeBenchmarkArtifact, type KnowledgeBenchmarkCase, type KnowledgeBenchmarkCaseBase, type KnowledgeBenchmarkDistribution, type KnowledgeBenchmarkEvaluation, type KnowledgeBenchmarkFamily, type KnowledgeBenchmarkReport, type KnowledgeBenchmarkResponder, type KnowledgeBenchmarkScenario, type KnowledgeBenchmarkSliceSummary, type KnowledgeBenchmarkSource, type KnowledgeBenchmarkSpec, type KnowledgeBenchmarkSplit, type KnowledgeBenchmarkTaskKind, KnowledgeChange, KnowledgeChangeKind, KnowledgeChunk, KnowledgeCitationAuditError, KnowledgeCitationAuditIssue, KnowledgeCitationAuditIssueKind, KnowledgeCitationAuditReport, KnowledgeCitationCandidate, KnowledgeCitationReference, KnowledgeCitationResolution, KnowledgeCitationResolutionError, KnowledgeCitationResolutionStatus, KnowledgeClaim, type KnowledgeClaimMatcher, KnowledgeConsumerKind, KnowledgeConsumerRef, KnowledgeControlLoopAction, KnowledgeControlLoopActionResult, KnowledgeControlLoopAdapter, KnowledgeControlLoopAdapterOptions, KnowledgeControlLoopState, KnowledgeDiscoveryDispatcher, KnowledgeDiscoveryWorker, type KnowledgeEvaluationPhase, KnowledgeEvent, KnowledgeEventQuery, KnowledgeEventSchema, KnowledgeEventType, KnowledgeExplanation, KnowledgeFragment, KnowledgeFreshnessStore, KnowledgeGap, KnowledgeGraph, KnowledgeGraphEdge, KnowledgeGraphEdgeSchema, KnowledgeGraphNode, KnowledgeGraphNodeSchema, KnowledgeId, type KnowledgeImprovementActivationPersistence, type KnowledgeImprovementCandidateRecord, type KnowledgeImprovementCandidateRef, KnowledgeImprovementCandidateRefSchema, type KnowledgeImprovementEvaluationInput, type KnowledgeImprovementEvaluator, type KnowledgeImprovementEvent, type KnowledgeImprovementEvidence, KnowledgeImprovementEvidenceSchema, type KnowledgeImprovementMetric, type KnowledgeImprovementMetricProvenance, type KnowledgeImprovementMutationReceipt, type KnowledgeImprovementMutationResult, type KnowledgeImprovementOptions, type KnowledgeImprovementRagOptimizationOptions, type KnowledgeImprovementRagOptimizationRunInput, type KnowledgeImprovementResult, type KnowledgeImprovementRetrievalOptions, type KnowledgeImprovementRunState, KnowledgeImprovementRunStateSchema, type KnowledgeImprovementStatus, type KnowledgeImprovementTarget, type KnowledgeImprovementUpdate, type KnowledgeImprovementUpdateInput, KnowledgeIndex, KnowledgeIndexSchema, KnowledgeInspection, KnowledgeLayout, KnowledgeLintFinding, type KnowledgeMemoryBenchmarkCase, type KnowledgeMemoryBenchmarkTaskKind, type KnowledgeMemoryEvent, type KnowledgeMemoryFactMatcher, type KnowledgeMutationLock, type KnowledgeMutationOptions, KnowledgePage, KnowledgePageInvalidation, KnowledgePageInvalidationSchema, KnowledgePageSchema, KnowledgePolicy, type KnowledgePolicyDispatch, KnowledgeProposal, KnowledgeProposalParseError, type KnowledgeReadOptions, KnowledgeReadinessSpec, KnowledgeReceiptAttributeValue, KnowledgeRelation, KnowledgeRelease, KnowledgeReleaseInput, KnowledgeReleaseReport, KnowledgeResearchLoopContext, KnowledgeResearchLoopDecision, KnowledgeResearchLoopResult, KnowledgeResearchLoopStep, type KnowledgeRetrievalBenchmarkCase, type KnowledgeRetrievalBenchmarkQrel, type KnowledgeRetrievalBenchmarkQuery, KnowledgeRetrievalReceipt, KnowledgeRetrievalResultReceipt, KnowledgeRetrieverIdentity, KnowledgeSearchHit, KnowledgeSearchResult, KnowledgeSource, KnowledgeUnit, KnowledgeUseReceipt, KnowledgeUseRelation, KnowledgeUsedResult, KnowledgeVisibilitySnapshot, KnowledgeVisibilitySnapshotEntry, KnowledgeWriteBlock, KnowledgeWriteParseResult, type LoadKnowledgeImprovementActivationResultOptions, LoadKnowledgePagesOptions, MAX_RESPONSE_BYTES, MIN_REQUEST_GAP_MS, MaterialFact, MaterialFactLens, MaterialFactsResult, type MeasuredKnowledgeSelectionReceipt, Mem0ClientMode, Mem0HostedClient, Mem0HostedMemoryAdapterOptions, Mem0MemoryAdapterOptions, Mem0OssClient, Mem0OssMemoryAdapterOptions, type MemoryAdapterBenchmarkCandidate, type MemoryAdapterBenchmarkRankingRow, type MemoryConfigScenario, MemoryKbStore, type NearDuplicateDetectionOptions, type NearDuplicatePair, type NearDuplicateReport, Neo4jAgentMemoryAdapterOptions, type OptimizeKnowledgeBasePolicyOptions, type OptimizeKnowledgeBasePolicyResult, OriginatedKnowledgeSearchResult, OriginatedPage, OwnedAgentMemoryRunLease, POLITE_USER_AGENT, PageOrigin, ParsedFrontmatter, PartitionRetrievalScenariosOptions, type PendingKnowledgeMutation, PersistentResearchDrivingDriverOptions, PoliteFetchOptions, PoliteFetchResult, type PromoteKnowledgeCandidateOptions, ProposeFromFindingsResult, READINESS_SPEC_DEFAULTS, RUN_LINEAGE_BASENAME, type RagAnswerEvalArtifact, type RagAnswerEvalCase, type RagAnswerEvalScenario, type RagAnswerMetricSummary, type RagAnswerQualityHookOptions, RagAnswerQualityInput, type RagAnswerQualityJudgeOptions, RagAnswerQualityResult, type RagCalibrationOptions, type RagCalibrationResult, RagDiagnosisInput, type RagEvalCitation, type RagEvalClaim, type RagEvalContext, type RagEvalMetricKey, type RagEvalProvider, type RagEvalSlice, RagGapFinding, RagGapKind, RagGapSeverity, RagKnowledgeAcquisitionInput, RagKnowledgeImprovementPhase, RagKnowledgeImprovementPhaseResult, RagKnowledgeImprovementPhaseStatus, RagKnowledgeResearchOptions, RagKnowledgeUpdateInput, RagKnowledgeUpdateResult, RagOptimizationConfig, RagOptimizationSelection, RagPhaseInputBase, RagPromotionInput, RagPromotionResult, type RagRequiredContext, type RecoverPendingKnowledgeMutationOptions, RegularFileSnapshot, RejectedSource, ResearchClaimEvidence, ResearchClaimEvidenceSchema, ResearchClaimLedger, ResearchClaimLedgerSchema, ResearchClaimRecord, ResearchClaimRecordSchema, ResearchContribution, ResearchDriver, ResearchDrivingDriver, ResearchDrivingDriverOptions, ResearchDrivingState, ResearchDrivingSteer, ResearchSourceProposal, ResearchSourceVersion, ResearchSourceVersionSchema, ResearchWorker, type ResolvedKnowledgeImprovementCandidate, type ResolvedKnowledgeImprovementComparison, type ResolvedKnowledgeImprovementComparisonSnapshot, type RestoreKnowledgeCandidateBaselineOptions, RetrievalConfig, RetrievalEvalArtifact, RetrievalEvalRetriever, RetrievalEvalRetrieverInput, RetrievalEvalRetrieverResult, RetrievalEvalScenario, RetrievalGoldTarget, RetrievalHoldoutBypassReason, RetrievalHoldoutCallContext, RetrievalHoldoutConfig, RetrievalHoldoutEligibleItem, RetrievalHoldoutEvent, RetrievalHoldoutOffPolicyOptions, RetrievalHoldoutOffPolicyResult, RetrievalHoldoutResult, RetrievalHoldoutSessionState, RetrievalHoldoutSessionSummary, RetrievalMetricSummary, RetrievalMetricWeights, RetrievalOptimizationSelection, RetrievalRecallJudgeOptions, RetrievalScenarioPartitions, RetrievedKnowledgeHit, RetrievedSourceSpan, RouterClient, RouterError, RouterUsage, type RunAgentMemoryExperimentOptions, type RunAgentMemoryExperimentResult, type RunAgentMemoryImprovementOptions, type RunAgentMemoryImprovementResult, type RunAgentMemoryLearningExperimentOptions, type RunAgentMemoryLearningExperimentResult, RunDiscoveryLoopOptions, type RunKnowledgeBenchmarkSuiteOptions, type RunKnowledgeBenchmarkSuiteResult, RunKnowledgeResearchLoopOptions, RunLineageAuthority, RunLineageRecord, type RunMemoryAdapterBenchmarkOptions, type RunMemoryAdapterBenchmarkResult, RunRagKnowledgeImprovementLoopOptions, RunRagKnowledgeImprovementLoopResult, RunRagOptimizationOptions, RunRagOptimizationResult, RunRetrievalImprovementLoopOptions, RunRetrievalImprovementLoopResult, RunScopedStores, RunScopedStoresOptions, RunSerializedKnowledgeOptimizationOptions, RunSerializedKnowledgeOptimizationResult, SCAFFOLD_PAGE_BASENAMES, SearchKnowledgeOptions, SerializedCandidate, SerializedCandidateCodec, SourceAdapter, SourceAdapterInput, SourceAdapterOutput, SourceAnchor, SourceAnchorSchema, SourceFreshnessInspection, SourceRecord, SourceRecordSchema, SourceRegistry, SourceVerdict, SourceVerificationContext, StateSosEntity, StateSosSourceConfig, TangleRouterOptions, ThesisRunOptions, ThesisRunResult, ThesisTaskInput, TrackedClaim, TriageClass, UncheckableClaimError, type UseKnowledgeImprovementCandidateOptions, ValidateKnowledgeOptions, ValidateKnowledgeResult, VerifiedGradeableEvidence, VerifiedResearchLoopOptions, VerifiedResearchLoopResult, VerifiedResearchRound, VerifyGradeableEvidenceOptions, VerifyingDriverOptions, WIKILINK_REGEX, WebResearchWorkerOptions, WebSearchHit, WorkerClaimDecorationOptions, WorkerResearchContext, __resetHttpThrottle, acquireAgentMemoryRunLease, addSourcePath, addSourceText, agentMemorySequenceJudge, applyKnowledgeWriteBlocks, applyKnowledgeWriteBlocksFile, applyRetrievalHoldout, applySessionStickyRetrievalHoldout, assertClaimLedgerId, assertCurrentRunCitationsResolved, assertDeepQuestionIntegrity, assertGradeableEvidence, assertKnowledgeCitationAudit, assertKnowledgeCitationsResolved, assertKnowledgeRetrievalMatchesVisibility, assertResearchClaimEvidenceIntegrity, assertResearchClaimLedgerIntegrity, assertRunScopedCitationsResolved, assertTrackedClaimIntegrity, auditCurrentRunCitations, auditKnowledgeCitations, buildAgentMemorySequenceScenarios, buildAgentMemorySequencesFromBenchmarkCases, buildEvalKnowledgeBundle, buildFirstPartyMemoryLifecycleBenchmarkCases, buildIndustryMemoryBenchmarkSmokeCases, buildIndustryRagBenchmarkSmokeCases, buildKnowledgeBenchmarkScenarios, buildKnowledgeGraph, buildKnowledgeIndex, buildRetrievalBenchmarkCasesFromQrels, buildRetrievalEvalDispatch, calibrateRagAnswerJudge, canonicalizeUrl, chunkMarkdown, citedClaimKey, citedClaimOf, claimEvidenceId, claimId, claimSourceHost, compareAgentMemoryLearning, contentKey, createAdaptiveResearchDriver, createAgentMemoryBranch, createClaimDecorator, createClaimGroundingVerifier, createCollectionResearchDriver, createCornellLiiSource, createD1FreshnessStoreStub, createFileRunLineageAuthority, createFileSystemFreshnessStore, createFileSystemSearchProvider, createGraphitiMemoryAdapter, createInMemoryBenchmarkAdapter, createIrsPublicationsSource, createKnowledgeControlLoopAdapter, createKnowledgeEvent, createKnowledgeRetrievalReceipt, createKnowledgeUseReceipt, createKnowledgeVisibilitySnapshot, createLocalDiscoveryDispatcher, createMem0MemoryAdapter, createMemoryExecutionPool, createNeo4jAgentMemoryAdapter, createNoopMemoryBenchmarkAdapter, createPersistentResearchDrivingDriver, createRagAnswerQualityHook, createResearchDrivingDriver, createRunScopedStores, createStateSosSource, createTangleRouterClient, createVerifyingResearchDriver, createWebResearchWorker, deepQuestionId, defaultGetMemoryContext, defineReadinessSpec, detectChanges, detectNearDuplicatePages, deterministicRng, diagnoseRagAnswerFailure, emitRetrievalHoldoutBypass, emptyClaimLedger, evaluateKnowledgeBaseReadiness, explainKnowledgeTarget, extractLinks, extractWikilinks, firstMatch, forkAgentMemoryBranchSnapshot, formatFrontmatter, formatKnowledgeCitationReference, fromAgentCandidateKnowledgeRef, gradeCompanyAgainstText, gradeFactAgainstText, gradeFor, graphitiMemoryAdapterIdentity, groundClaimInText, hashKnowledgeBase, htmlToText, improveKnowledgeBase, improveSelectedKnowledgeCandidate, initKnowledgeBase, innerHtmlById, inspectKnowledgeIndex, inspectPendingKnowledgeMutation, investmentThesisSet, isKernelAnchoredPath, isKnowledgeMemoryBenchmarkCase, isMissingFile, isSafeKnowledgePath, isScaffoldPath, jsonCandidateCodec, jsonObjectCandidateCodec, kbIndexToText, knowledgeBenchmarkJudge, knowledgeCitationAuditFindings, knowledgeImprovementCandidateRef, knowledgeImprovementRunDir, knowledgeImprovementRunId, knowledgePageDigest, knowledgeReleaseReport, layoutFor, lensDistribution, linkClaimContradictions, lintCurrentRunCitations, lintKnowledgeIndex, listRegularFilesWithinRoot, loadKnowledgeImprovementActivationResult, loadKnowledgeImprovementEvents, loadKnowledgeImprovementState, loadKnowledgePages, loadSourceRegistry, looksLikeBlockPage, materialFactsSurfaced, materialFactsSurfacedInText, materializeRegisteredClaimEvidence, mediaTypeFor, mem0MemoryAdapterIdentity, memoryHitToSourceRecord, memoryRecoveryDelayMs, memoryWriteResultToSourceRecord, mergeClaimLedgers, mergeTrackedClaims, normalizeClaimText, normalizeExternalRagScores, normalizeLinkTarget, normalizePageText, optimizeKnowledgeBasePolicy, parseFrontmatter, parseKnowledgeBenchmarkJsonl, parseKnowledgeBenchmarkQrels, parseKnowledgeCitationReference, parseKnowledgeWriteBlocks, partitionRetrievalScenarios, politeFetch, promoteKnowledgeCandidate, proposeFromFinding, proposeFromFindings, ragAnswerQualityJudge, readRegularFileNoFollow, readRegularFileWithinRoot, reciprocalRankFusion, recoverPendingKnowledgeMutation, removeDurable, renameDurable, renderKnowledgeBenchmarkReportMarkdown, renderMemoryContext, researchSourceVersionKey, resetRetrievalHoldoutRegistry, resolveKnowledgeCitation, resolveKnowledgeCitations, resolveMemoryCleanupTimeoutMs, resolveRunScopedCitation, resolveRunScopedCitations, respondToIndustryMemoryBenchmarkSmokeCase, respondToIndustryRagBenchmarkSmokeCase, restoreKnowledgeCandidateBaseline, retrievalConfigFromSurface, retrievalConfigSurface, retrievalHoldoutConfigHash, retrievalRecallJudge, runAgentMemoryExperiment, runAgentMemoryImprovement, runAgentMemoryLearningExperiment, runBoundedMemoryLifecycle, runDiscoveryLoop, runInvestmentThesisTask, runKnowledgeBenchmarkSuite, runKnowledgeResearchLoop, runMemoryAdapterBenchmark, runRagKnowledgeImprovementLoop, runRagOptimization, runRetrievalImprovementLoop, runSerializedKnowledgeOptimization, runVerifiedResearchLoop, scenarioContentFingerprint, scoreKnowledgeBaseIndex, scoreKnowledgeBenchmarkArtifact, scoreMemoryBenchmarkArtifact, scoreRagAnswerArtifact, scoreRetrievalArtifact, searchKnowledge, sha256, sleepForMemoryRecovery, slugify, snapshotSourceTextInput, sourceMatchesGaps, sourceRegistryPath, stableId, stripFrontmatter, summarizeKnowledgeBenchmarkCampaign, syncDirectory, textSourceAdapter, textSourceId, thesisReadinessSpecs, toAgentCandidateKnowledgeRef, toDeepEvalTestCases, toOffPolicyTrajectory, toRagCheckerRecords, toRagasEvaluationRows, toTruLensRecords, tokenizeQuery, totalMaterialFacts, triageSource, validateKnowledgeIndex, verdictFor, verifyGradeableEvidence, verifyKnowledgeRetrievalReceipt, verifyKnowledgeUseReceipt, withCitedClaim, withKnowledgeImprovementCandidate, withKnowledgeImprovementComparison, withKnowledgeMutation, withKnowledgeRead, withSafeDescendant, withSafeDirectory, writeFileDurable, writeFileDurableWithinRoot, writeJson, writeJsonDurable, writeJsonDurableWithinRoot, writeKnowledgeIndex, writeSourceRegistry };
|
|
3359
3673
|
//# sourceMappingURL=index.d.ts.map
|