@remnic/core 9.3.738 → 9.3.739
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-boundary.d.ts +6 -6
- package/dist/access-cli.js +1 -1
- package/dist/access-http.d.ts +6 -6
- package/dist/access-mcp.d.ts +6 -6
- package/dist/access-operations.d.ts +6 -6
- package/dist/{access-service-DwQ6BIQw.d.ts → access-service-Cbk-Kv_A.d.ts} +1 -1
- package/dist/access-service.d.ts +6 -6
- package/dist/access-surface-catalog.d.ts +6 -6
- package/dist/bootstrap.d.ts +5 -5
- package/dist/{chunk-EKQ3LWBM.js → chunk-IEWUPZ75.js} +583 -511
- package/dist/chunk-IEWUPZ75.js.map +1 -0
- package/dist/{cli-BlEIWDQw.d.ts → cli-BQW2xKdb.d.ts} +2 -2
- package/dist/cli.d.ts +7 -7
- package/dist/explicit-capture.d.ts +5 -5
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/mcp-memory-inspector-app.d.ts +6 -6
- package/dist/{orchestrator-CJZ21ZiB.d.ts → orchestrator-BOAFN_Yr.d.ts} +186 -56
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +1 -1
- package/dist/schemas.d.ts +22 -22
- package/dist/transfer/types.d.ts +12 -12
- package/package.json +2 -2
- package/src/orchestration/conversation-index-coordinator.ts +344 -0
- package/src/orchestration/recall-rerank-coordinator.ts +425 -0
- package/src/orchestrator.ts +39 -552
- package/dist/chunk-EKQ3LWBM.js.map +0 -1
|
@@ -7,7 +7,7 @@ import { RebuildMemoryLifecycleLedgerResult } from './maintenance/rebuild-memory
|
|
|
7
7
|
import { RebuildObservationsResult } from './maintenance/rebuild-observations.js';
|
|
8
8
|
import { ArchiveObservationsResult } from './maintenance/archive-observations.js';
|
|
9
9
|
import { Writable, Readable } from 'node:stream';
|
|
10
|
-
import { O as Orchestrator } from './orchestrator-
|
|
10
|
+
import { O as Orchestrator } from './orchestrator-BOAFN_Yr.js';
|
|
11
11
|
import { ReplayRunSummary } from './replay/runner.js';
|
|
12
12
|
import { ReplaySource, ReplayTurn } from './replay/types.js';
|
|
13
13
|
import { b as BulkImportResult } from './types-gb_SNtjR.js';
|
|
@@ -16,7 +16,7 @@ import { WorkProjectStatus, WorkTaskStatus, WorkTaskPriority } from './work/type
|
|
|
16
16
|
import { RoutePatternType } from './routing/engine.js';
|
|
17
17
|
import { TailscaleSyncOptions } from './network/tailscale.js';
|
|
18
18
|
import { DashboardStatus } from './dashboard-runtime.js';
|
|
19
|
-
import { g as EngramAccessService } from './access-service-
|
|
19
|
+
import { g as EngramAccessService } from './access-service-Cbk-Kv_A.js';
|
|
20
20
|
import { ResolveSecretRefFn } from './resolve-auth-token.js';
|
|
21
21
|
import { CompatRunner, CompatReport } from './compat/types.js';
|
|
22
22
|
import { EvalBaselineDeltaReport, EvalBaselineSnapshot, EvalCiGateReport, EvalBenchmarkPackSummary, EvalHarnessStatus, EvalStoredBaselineCiGateReport } from './evals.js';
|
package/dist/cli.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import './maintenance/rebuild-memory-lifecycle-ledger.js';
|
|
|
7
7
|
import './maintenance/rebuild-observations.js';
|
|
8
8
|
import './maintenance/archive-observations.js';
|
|
9
9
|
import 'node:stream';
|
|
10
|
-
import './orchestrator-
|
|
10
|
+
import './orchestrator-BOAFN_Yr.js';
|
|
11
11
|
import './replay/runner.js';
|
|
12
12
|
import './replay/types.js';
|
|
13
13
|
import './types-gb_SNtjR.js';
|
|
@@ -16,7 +16,7 @@ import './work/types.js';
|
|
|
16
16
|
import './routing/engine.js';
|
|
17
17
|
import './network/tailscale.js';
|
|
18
18
|
import './dashboard-runtime.js';
|
|
19
|
-
import './access-service-
|
|
19
|
+
import './access-service-Cbk-Kv_A.js';
|
|
20
20
|
import './resolve-auth-token.js';
|
|
21
21
|
import './compat/types.js';
|
|
22
22
|
import './evals.js';
|
|
@@ -38,7 +38,7 @@ import './trust-zones.js';
|
|
|
38
38
|
import './session-integrity.js';
|
|
39
39
|
import './recall-state.js';
|
|
40
40
|
import './policy-runtime.js';
|
|
41
|
-
export { A as AccessHttpServeCliCommandOptions, a as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CliApi, b as CliCommand, c as CliProgram, d as CompatCliCommandOptions, e as ConnectorsRunCliOutputOptions, f as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, g as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, h as MemoryActionAuditCliNamespaceSummary, i as MemoryActionAuditCliReport, j as MemoryGovernanceCliCommandOptions, k as MemoryGovernanceReportCliCommandOptions, l as MemoryGovernanceRestoreCliCommandOptions, m as MemoryReviewDispositionCliCommandOptions, n as MemoryTimelineCliCommandOptions, o as MigrateCliOrchestrator, q as MigrateCliReport, s as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, t as PolicyDiffEntry, u as PolicyRollbackCliReport, v as PolicyStatusCliReport, w as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, x as RebuildMemoryProjectionCliCommandOptions, y as RebuildObservationsCliCommandOptions, z as RepairMemoryProjectionCliCommandOptions, F as ReplayCliCommandOptions, H as ReplayCliOrchestrator, I as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, J as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, K as TailscaleSyncCliCommandOptions, L as TierMigrationCliOrchestrator, N as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, O as WorkProjectCliCommandOptions, Q as WorkTaskCliCommandOptions, U as emitConnectorsRunCliResult, X as filterNormalMemorySearchResults, Y as hasDestructivePurgeFailures, Z as isNormalRetrievalVisibleMemory, _ as listMemoryMarkdownFilePaths, $ as parseDurationToMs, a0 as parseStrictCliDate, a1 as planAggressiveDuplicateDeletions, a2 as planExactDuplicateDeletions, a3 as registerCli, a4 as resolveAccessPrincipalOverride, a5 as resolveMemoryDirForNamespace, a6 as runAbstractionNodeStatusCliCommand, a7 as runAccessHttpServeCliCommand, a8 as runAccessHttpStatusCliCommand, a9 as runAccessHttpStopCliCommand, aa as runAccessMcpServeCliCommand, ab as runArchiveObservationsCliCommand, ac as runBenchmarkBaselineReportCliCommand, ad as runBenchmarkBaselineSnapshotCliCommand, ae as runBenchmarkCiGateCliCommand, af as runBenchmarkImportCliCommand, ag as runBenchmarkStatusCliCommand, ah as runBenchmarkStoredBaselineCiGateCliCommand, ai as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, aj as runCausalTrajectoryStatusCliCommand, ak as runCommitmentLifecycleCliCommand, al as runCommitmentRecordCliCommand, am as runCommitmentSetStateCliCommand, an as runCommitmentStatusCliCommand, ao as runCompatCliCommand, ap as runCompoundingPromoteCliCommand, aq as runConversationIndexHealthCliCommand, ar as runConversationIndexInspectCliCommand, as as runConversationIndexRebuildCliCommand, at as runCueAnchorStatusCliCommand, au as runDashboardStartCliCommand, av as runDashboardStatusCliCommand, aw as runDashboardStopCliCommand, ax as runGraphHealthCliCommand, ay as runHarmonicSearchCliCommand, az as runMemoryActionAuditCliCommand, aA as runMemoryGovernanceCliCommand, aB as runMemoryGovernanceReportCliCommand, aC as runMemoryGovernanceRestoreCliCommand, aD as runMemoryReviewDispositionCliCommand, aE as runMemoryTimelineCliCommand, aF as runMigrateNormalizeFrontmatterCliCommand, aG as runMigrateObservationsCliCommand, aH as runMigrateRechunkCliCommand, aI as runMigrateReextractCliCommand, aJ as runMigrateRescoreImportanceCliCommand, aK as runObjectiveStateStatusCliCommand, aL as runPolicyDiffCliCommand, aM as runPolicyRollbackCliCommand, aN as runPolicyStatusCliCommand, aO as runRebuildMemoryLifecycleLedgerCliCommand, aP as runRebuildMemoryProjectionCliCommand, aQ as runRebuildObservationsCliCommand, aR as runRepairMemoryProjectionCliCommand, aS as runReplayCliCommand, aT as runResumeBundleBuildCliCommand, aU as runResumeBundleRecordCliCommand, aV as runResumeBundleStatusCliCommand, aW as runRouteCliCommand, aX as runSemanticRulePromoteCliCommand, aY as runSemanticRuleVerifyCliCommand, aZ as runSessionCheckCliCommand, a_ as runSessionRepairCliCommand, a$ as runTailscaleStatusCliCommand, b0 as runTailscaleSyncCliCommand, b1 as runTierMigrateCliCommand, b2 as runTierStatusCliCommand, b3 as runTrainingExportCliCommand, b4 as runTrustZoneDemoSeedCliCommand, b5 as runTrustZonePromoteCliCommand, b6 as runTrustZoneStatusCliCommand, b7 as runUtilityLearningCliCommand, b8 as runUtilityLearningStatusCliCommand, b9 as runUtilityTelemetryRecordCliCommand, ba as runUtilityTelemetryStatusCliCommand, bb as runVerifiedRecallSearchCliCommand, bc as runVerifyMemoryProjectionCliCommand, bd as runWebDavServeCliCommand, be as runWebDavStopCliCommand, bf as runWorkProductRecallSearchCliCommand, bg as runWorkProductRecordCliCommand, bh as runWorkProductStatusCliCommand, bi as runWorkProjectCliCommand, bj as runWorkTaskCliCommand } from './cli-
|
|
41
|
+
export { A as AccessHttpServeCliCommandOptions, a as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CliApi, b as CliCommand, c as CliProgram, d as CompatCliCommandOptions, e as ConnectorsRunCliOutputOptions, f as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, g as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, h as MemoryActionAuditCliNamespaceSummary, i as MemoryActionAuditCliReport, j as MemoryGovernanceCliCommandOptions, k as MemoryGovernanceReportCliCommandOptions, l as MemoryGovernanceRestoreCliCommandOptions, m as MemoryReviewDispositionCliCommandOptions, n as MemoryTimelineCliCommandOptions, o as MigrateCliOrchestrator, q as MigrateCliReport, s as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, t as PolicyDiffEntry, u as PolicyRollbackCliReport, v as PolicyStatusCliReport, w as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, x as RebuildMemoryProjectionCliCommandOptions, y as RebuildObservationsCliCommandOptions, z as RepairMemoryProjectionCliCommandOptions, F as ReplayCliCommandOptions, H as ReplayCliOrchestrator, I as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, J as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, K as TailscaleSyncCliCommandOptions, L as TierMigrationCliOrchestrator, N as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, O as WorkProjectCliCommandOptions, Q as WorkTaskCliCommandOptions, U as emitConnectorsRunCliResult, X as filterNormalMemorySearchResults, Y as hasDestructivePurgeFailures, Z as isNormalRetrievalVisibleMemory, _ as listMemoryMarkdownFilePaths, $ as parseDurationToMs, a0 as parseStrictCliDate, a1 as planAggressiveDuplicateDeletions, a2 as planExactDuplicateDeletions, a3 as registerCli, a4 as resolveAccessPrincipalOverride, a5 as resolveMemoryDirForNamespace, a6 as runAbstractionNodeStatusCliCommand, a7 as runAccessHttpServeCliCommand, a8 as runAccessHttpStatusCliCommand, a9 as runAccessHttpStopCliCommand, aa as runAccessMcpServeCliCommand, ab as runArchiveObservationsCliCommand, ac as runBenchmarkBaselineReportCliCommand, ad as runBenchmarkBaselineSnapshotCliCommand, ae as runBenchmarkCiGateCliCommand, af as runBenchmarkImportCliCommand, ag as runBenchmarkStatusCliCommand, ah as runBenchmarkStoredBaselineCiGateCliCommand, ai as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, aj as runCausalTrajectoryStatusCliCommand, ak as runCommitmentLifecycleCliCommand, al as runCommitmentRecordCliCommand, am as runCommitmentSetStateCliCommand, an as runCommitmentStatusCliCommand, ao as runCompatCliCommand, ap as runCompoundingPromoteCliCommand, aq as runConversationIndexHealthCliCommand, ar as runConversationIndexInspectCliCommand, as as runConversationIndexRebuildCliCommand, at as runCueAnchorStatusCliCommand, au as runDashboardStartCliCommand, av as runDashboardStatusCliCommand, aw as runDashboardStopCliCommand, ax as runGraphHealthCliCommand, ay as runHarmonicSearchCliCommand, az as runMemoryActionAuditCliCommand, aA as runMemoryGovernanceCliCommand, aB as runMemoryGovernanceReportCliCommand, aC as runMemoryGovernanceRestoreCliCommand, aD as runMemoryReviewDispositionCliCommand, aE as runMemoryTimelineCliCommand, aF as runMigrateNormalizeFrontmatterCliCommand, aG as runMigrateObservationsCliCommand, aH as runMigrateRechunkCliCommand, aI as runMigrateReextractCliCommand, aJ as runMigrateRescoreImportanceCliCommand, aK as runObjectiveStateStatusCliCommand, aL as runPolicyDiffCliCommand, aM as runPolicyRollbackCliCommand, aN as runPolicyStatusCliCommand, aO as runRebuildMemoryLifecycleLedgerCliCommand, aP as runRebuildMemoryProjectionCliCommand, aQ as runRebuildObservationsCliCommand, aR as runRepairMemoryProjectionCliCommand, aS as runReplayCliCommand, aT as runResumeBundleBuildCliCommand, aU as runResumeBundleRecordCliCommand, aV as runResumeBundleStatusCliCommand, aW as runRouteCliCommand, aX as runSemanticRulePromoteCliCommand, aY as runSemanticRuleVerifyCliCommand, aZ as runSessionCheckCliCommand, a_ as runSessionRepairCliCommand, a$ as runTailscaleStatusCliCommand, b0 as runTailscaleSyncCliCommand, b1 as runTierMigrateCliCommand, b2 as runTierStatusCliCommand, b3 as runTrainingExportCliCommand, b4 as runTrustZoneDemoSeedCliCommand, b5 as runTrustZonePromoteCliCommand, b6 as runTrustZoneStatusCliCommand, b7 as runUtilityLearningCliCommand, b8 as runUtilityLearningStatusCliCommand, b9 as runUtilityTelemetryRecordCliCommand, ba as runUtilityTelemetryStatusCliCommand, bb as runVerifiedRecallSearchCliCommand, bc as runVerifyMemoryProjectionCliCommand, bd as runWebDavServeCliCommand, be as runWebDavStopCliCommand, bf as runWorkProductRecallSearchCliCommand, bg as runWorkProductRecordCliCommand, bh as runWorkProductStatusCliCommand, bi as runWorkProjectCliCommand, bj as runWorkTaskCliCommand } from './cli-BQW2xKdb.js';
|
|
42
42
|
import './connectors-cli-2iaQ5tX2.js';
|
|
43
43
|
import './storage.js';
|
|
44
44
|
import './page-versioning.js';
|
|
@@ -77,6 +77,10 @@ import './schemas.js';
|
|
|
77
77
|
import './profiling.js';
|
|
78
78
|
import './trust-score-stage.js';
|
|
79
79
|
import './trust-score.js';
|
|
80
|
+
import './conversation-index/chunker.js';
|
|
81
|
+
import './conversation-index/backend.js';
|
|
82
|
+
import './faiss-adapter-BHecI1fF.js';
|
|
83
|
+
import './runtime/child-process.js';
|
|
80
84
|
import './live-connectors-runner.js';
|
|
81
85
|
import './framework-CNDn2164.js';
|
|
82
86
|
import './relevance.js';
|
|
@@ -92,10 +96,6 @@ import './lcm/archive.js';
|
|
|
92
96
|
import './lcm/summarizer.js';
|
|
93
97
|
import './lcm/dag.js';
|
|
94
98
|
import './lcm/queue.js';
|
|
95
|
-
import './conversation-index/backend.js';
|
|
96
|
-
import './conversation-index/chunker.js';
|
|
97
|
-
import './faiss-adapter-BHecI1fF.js';
|
|
98
|
-
import './runtime/child-process.js';
|
|
99
99
|
import './types-B1VHaf2w.js';
|
|
100
100
|
import './recall-explain-renderer.js';
|
|
101
101
|
import './recall-audit-anomaly.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as Orchestrator } from './orchestrator-
|
|
1
|
+
import { O as Orchestrator } from './orchestrator-BOAFN_Yr.js';
|
|
2
2
|
import { M as MemoryCategory, P as PluginConfig } from './types-CglNn2V-.js';
|
|
3
3
|
import './briefing.js';
|
|
4
4
|
import './storage.js';
|
|
@@ -50,6 +50,10 @@ import './semantic-rule-verifier.js';
|
|
|
50
50
|
import './work-product-ledger.js';
|
|
51
51
|
import './trust-score-stage.js';
|
|
52
52
|
import './trust-score.js';
|
|
53
|
+
import './conversation-index/chunker.js';
|
|
54
|
+
import './conversation-index/backend.js';
|
|
55
|
+
import './faiss-adapter-BHecI1fF.js';
|
|
56
|
+
import './runtime/child-process.js';
|
|
53
57
|
import './live-connectors-runner.js';
|
|
54
58
|
import './framework-CNDn2164.js';
|
|
55
59
|
import './relevance.js';
|
|
@@ -68,10 +72,6 @@ import './lcm/archive.js';
|
|
|
68
72
|
import './lcm/summarizer.js';
|
|
69
73
|
import './lcm/dag.js';
|
|
70
74
|
import './lcm/queue.js';
|
|
71
|
-
import './conversation-index/backend.js';
|
|
72
|
-
import './conversation-index/chunker.js';
|
|
73
|
-
import './faiss-adapter-BHecI1fF.js';
|
|
74
|
-
import './runtime/child-process.js';
|
|
75
75
|
import './policy-runtime.js';
|
|
76
76
|
|
|
77
77
|
type ExplicitCaptureInput = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { PluginEntryResolverOptions, resolvePluginEntry } from './plugin-entry-resolver.js';
|
|
2
2
|
export { isOpenaiApiKeyDisabled, parseConfig, resolveEnvVars } from './config.js';
|
|
3
3
|
export { MigrationOptions, MigrationResult, RollbackResult, migrateFromEngram, rollbackFromEngramMigration } from './migrate/from-engram.js';
|
|
4
|
-
import { S as SpeakerRegistry, W as WearablesService } from './orchestrator-
|
|
5
|
-
export { D as DEFAULT_SELF_NAME, O as Orchestrator, R as ResolvedSpeaker, a as SpeakerOverride, b as WEARABLE_SOURCE_PREFIX, c as WearableDayTranscriptView, d as WearableMemoryGenDeps, e as WearableMemoryGenResult, f as WearableMemorySearchResult, g as WearableMemoryWriter, h as WearableSearchBackend, i as WearableStorageIo, j as WearableSyncDeps, k as WearableSyncOptions, l as WearableTranscriptSearchResult, m as WearablesServiceDeps, n as buildExtractionTurns, o as dateInTimezone, p as defaultTimezone, q as defaultWorkspaceDir, r as distinctSpeakerLabels, s as emptySpeakerRegistry, t as generateWearableMemories, u as importNativeMemories, v as loadSpeakerRegistry, w as locateTranscriptPath, x as memoryStatusForMode, y as resolveSpeaker, z as resolveSyncDates, A as sanitizeSessionKeyForFilename, B as saveSpeakerRegistry, C as speakerRegistryKey, E as speakersFilePath, F as syncWearableSource, H as wearableDayTag, J as wearableSourceLabel, K as writeDailyDigestMemory } from './orchestrator-
|
|
4
|
+
import { S as SpeakerRegistry, W as WearablesService } from './orchestrator-BOAFN_Yr.js';
|
|
5
|
+
export { D as DEFAULT_SELF_NAME, O as Orchestrator, R as ResolvedSpeaker, a as SpeakerOverride, b as WEARABLE_SOURCE_PREFIX, c as WearableDayTranscriptView, d as WearableMemoryGenDeps, e as WearableMemoryGenResult, f as WearableMemorySearchResult, g as WearableMemoryWriter, h as WearableSearchBackend, i as WearableStorageIo, j as WearableSyncDeps, k as WearableSyncOptions, l as WearableTranscriptSearchResult, m as WearablesServiceDeps, n as buildExtractionTurns, o as dateInTimezone, p as defaultTimezone, q as defaultWorkspaceDir, r as distinctSpeakerLabels, s as emptySpeakerRegistry, t as generateWearableMemories, u as importNativeMemories, v as loadSpeakerRegistry, w as locateTranscriptPath, x as memoryStatusForMode, y as resolveSpeaker, z as resolveSyncDates, A as sanitizeSessionKeyForFilename, B as saveSpeakerRegistry, C as speakerRegistryKey, E as speakersFilePath, F as syncWearableSource, H as wearableDayTag, J as wearableSourceLabel, K as writeDailyDigestMemory } from './orchestrator-BOAFN_Yr.js';
|
|
6
6
|
export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
|
|
7
7
|
export { ModelCapabilities, ModelRegistry } from './model-registry.js';
|
|
8
8
|
export { ACTIVE_STATUSES, ContradictionFilter, ContradictionJudgeBatchResult, ContradictionJudgeInput, ContradictionJudgeResult, ContradictionListResult, ContradictionVerdict, ResolutionResult, ResolutionVerb, ScanDependencies, ScanResult, computePairId, executeResolution, isCoolingDown, isValidResolutionVerb, judgeContradictionPairs, listPairs, readPair, resolvePair, runContradictionScan, writePair, writePairs } from './contradiction/index.js';
|
|
@@ -24,7 +24,7 @@ import { aA as CodingContext, aR as CodingModeConfig, P as PluginConfig, aS as C
|
|
|
24
24
|
export { W as AgentAccessAuthToken, r as BriefingActiveThread, aV as BriefingConfig, p as BriefingFocus, o as BriefingFollowup, aW as BriefingOpenCommitment, t as BriefingRecentEntity, s as BriefingResult, n as BriefingSections, aX as BriefingWindow, O as BufferSurpriseEvent, q as CalendarEvent, C as CalendarSource, aY as CodexCompatConfig, aQ as ConsolidationObservation, a8 as ContinuityImprovementLoop, aZ as DEFAULT_RECALL_DISCLOSURE, E as EntityFile, a4 as EntityStructuredSection, a_ as ExtractedFact, G as GatewayConfig, ae as MemoryActionEligibilityContext, a$ as MemoryActionEligibilitySource, _ as MemoryActionType, g as MemoryFile, k as MemoryFrontmatter, b0 as MemoryObservation, b1 as MemoryScope, b2 as RECALL_DISCLOSURE_LEVELS, i as RecallDisclosure, U as SecretRef, b3 as WearableAuthCheck, b4 as WearableFetchOptions, b5 as WearableFetchPage, aH as WearableMemoryMode, aG as WearableNativeMemory, b6 as WearableNativeMemoryPage, aL as WearableSourceStatus, aK as WearableSyncSummary, b7 as WearableTranscriptSegment, b8 as isRecallDisclosure } from './types-CglNn2V-.js';
|
|
25
25
|
export { JudgeBatchResult, JudgeCandidate, JudgeVerdict, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
|
|
26
26
|
export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
|
|
27
|
-
export { i as EngramAccessInputError, g as EngramAccessService, P as ProcedureStatsConfigSnapshot, j as ProcedureStatsRecent, k as ProcedureStatsReport, l as ProcedureStatusCounts, m as computeProcedureStats, n as formatProcedureStatsText } from './access-service-
|
|
27
|
+
export { i as EngramAccessInputError, g as EngramAccessService, P as ProcedureStatsConfigSnapshot, j as ProcedureStatsRecent, k as ProcedureStatsReport, l as ProcedureStatusCounts, m as computeProcedureStats, n as formatProcedureStatsText } from './access-service-Cbk-Kv_A.js';
|
|
28
28
|
export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
|
|
29
29
|
export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
|
|
30
30
|
export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
|
|
@@ -79,7 +79,7 @@ export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, Enrichme
|
|
|
79
79
|
export { d as BulkImportError, B as BulkImportOptions, b as BulkImportResult, a as BulkImportSource, e as BulkImportSourceAdapter, f as ImportSourceRole, I as ImportTurn, g as ImportTurnValidationIssue, i as isImportRole, p as parseIsoTimestamp, v as validateImportTurn } from './types-gb_SNtjR.js';
|
|
80
80
|
export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
|
|
81
81
|
export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-DmqtvION.js';
|
|
82
|
-
export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-
|
|
82
|
+
export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-BQW2xKdb.js';
|
|
83
83
|
export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
|
|
84
84
|
export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
|
|
85
85
|
export { ComputeMemoryWorthInput, MemoryWorthResult, computeMemoryWorth } from './memory-worth.js';
|
|
@@ -131,6 +131,10 @@ import './semantic-rule-verifier.js';
|
|
|
131
131
|
import './work-product-ledger.js';
|
|
132
132
|
import './trust-score-stage.js';
|
|
133
133
|
import './trust-score.js';
|
|
134
|
+
import './conversation-index/chunker.js';
|
|
135
|
+
import './conversation-index/backend.js';
|
|
136
|
+
import './faiss-adapter-BHecI1fF.js';
|
|
137
|
+
import './runtime/child-process.js';
|
|
134
138
|
import './relevance.js';
|
|
135
139
|
import './negative.js';
|
|
136
140
|
import './session-observer-state.js';
|
|
@@ -140,10 +144,6 @@ import './lcm/archive.js';
|
|
|
140
144
|
import './lcm/summarizer.js';
|
|
141
145
|
import './lcm/dag.js';
|
|
142
146
|
import './lcm/queue.js';
|
|
143
|
-
import './conversation-index/backend.js';
|
|
144
|
-
import './conversation-index/chunker.js';
|
|
145
|
-
import './faiss-adapter-BHecI1fF.js';
|
|
146
|
-
import './runtime/child-process.js';
|
|
147
147
|
import './policy-runtime.js';
|
|
148
148
|
import './profiling.js';
|
|
149
149
|
import './schemas.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as EngramAccessRecallResponse } from './access-service-
|
|
1
|
+
import { h as EngramAccessRecallResponse } from './access-service-Cbk-Kv_A.js';
|
|
2
2
|
import { ActionConfidenceRequest } from './access-schema.js';
|
|
3
3
|
import { RecallXraySnapshot } from './recall-xray.js';
|
|
4
4
|
import { ActionConfidenceResult } from './action-confidence.js';
|
|
@@ -22,7 +22,7 @@ import './memory-provenance.js';
|
|
|
22
22
|
import './user-model.js';
|
|
23
23
|
import './recall-audit-anomaly.js';
|
|
24
24
|
import './recall-audit.js';
|
|
25
|
-
import './orchestrator-
|
|
25
|
+
import './orchestrator-BOAFN_Yr.js';
|
|
26
26
|
import './briefing.js';
|
|
27
27
|
import './buffer.js';
|
|
28
28
|
import './extraction-faithfulness.js';
|
|
@@ -62,6 +62,10 @@ import './semantic-rule-verifier.js';
|
|
|
62
62
|
import './work-product-ledger.js';
|
|
63
63
|
import './trust-score-stage.js';
|
|
64
64
|
import './trust-score.js';
|
|
65
|
+
import './conversation-index/chunker.js';
|
|
66
|
+
import './conversation-index/backend.js';
|
|
67
|
+
import './faiss-adapter-BHecI1fF.js';
|
|
68
|
+
import './runtime/child-process.js';
|
|
65
69
|
import './live-connectors-runner.js';
|
|
66
70
|
import './framework-CNDn2164.js';
|
|
67
71
|
import './relevance.js';
|
|
@@ -75,10 +79,6 @@ import './lcm/archive.js';
|
|
|
75
79
|
import './lcm/summarizer.js';
|
|
76
80
|
import './lcm/dag.js';
|
|
77
81
|
import './lcm/queue.js';
|
|
78
|
-
import './conversation-index/backend.js';
|
|
79
|
-
import './conversation-index/chunker.js';
|
|
80
|
-
import './faiss-adapter-BHecI1fF.js';
|
|
81
|
-
import './runtime/child-process.js';
|
|
82
82
|
import './policy-runtime.js';
|
|
83
83
|
import './explicit-capture.js';
|
|
84
84
|
import './cross-namespace-budget.js';
|
|
@@ -24,6 +24,10 @@ import { VerifiedEpisodeResult } from './verified-recall.js';
|
|
|
24
24
|
import { VerifiedSemanticRuleResult } from './semantic-rule-verifier.js';
|
|
25
25
|
import { WorkProductLedgerSearchResult } from './work-product-ledger.js';
|
|
26
26
|
import { TrustStageResultItem } from './trust-score-stage.js';
|
|
27
|
+
import { ConversationChunk } from './conversation-index/chunker.js';
|
|
28
|
+
import { ConversationIndexBackend, ConversationIndexBackendInspection } from './conversation-index/backend.js';
|
|
29
|
+
import { C as ConversationSearchResult } from './faiss-adapter-BHecI1fF.js';
|
|
30
|
+
import { CapabilitySet } from './capabilities.js';
|
|
27
31
|
import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
|
|
28
32
|
import { ModelRegistry } from './model-registry.js';
|
|
29
33
|
import { RelevanceStore } from './relevance.js';
|
|
@@ -31,12 +35,10 @@ import { NegativeExampleStore } from './negative.js';
|
|
|
31
35
|
import { RecallXraySnapshot } from './recall-xray.js';
|
|
32
36
|
import { SessionObserverState } from './session-observer-state.js';
|
|
33
37
|
import { a as SemanticDedupHit } from './semantic-DJR8_DMQ.js';
|
|
34
|
-
import { CapabilitySet } from './capabilities.js';
|
|
35
38
|
import { ReplayTurn } from './replay/types.js';
|
|
36
39
|
import { I as ImportTurn } from './types-gb_SNtjR.js';
|
|
37
40
|
import { JudgeCandidate, JudgeBatchResult } from './extraction-judge.js';
|
|
38
41
|
import { LcmEngine } from './lcm/engine.js';
|
|
39
|
-
import { ConversationIndexBackendInspection } from './conversation-index/backend.js';
|
|
40
42
|
import { b as NamespaceKind, N as NamespaceCatalog } from './catalog-_Bap6vfD.js';
|
|
41
43
|
import { NamespaceSearchHealth } from './namespaces/search.js';
|
|
42
44
|
import { SharedContextManager } from './shared-context/manager.js';
|
|
@@ -902,6 +904,182 @@ declare class RecallResultFormatter {
|
|
|
902
904
|
} | null>;
|
|
903
905
|
}
|
|
904
906
|
|
|
907
|
+
/**
|
|
908
|
+
* Conversation index coordinator — extracted from the orchestrator (issue #1526).
|
|
909
|
+
*
|
|
910
|
+
* Owns the conversation-index subsystem: semantic recall over past
|
|
911
|
+
* conversations, plus the build / update / rebuild / inspect / health
|
|
912
|
+
* lifecycle of the on-disk chunk store and its pluggable search backend
|
|
913
|
+
* (qmd or faiss). Behavior-preserving move from orchestrator.ts — no logic
|
|
914
|
+
* changes; the orchestrator constructs one instance and keeps thin
|
|
915
|
+
* delegating methods so existing call sites and tests that exercise the
|
|
916
|
+
* private API continue to work.
|
|
917
|
+
*
|
|
918
|
+
* The backend and transcript are read through getters (not captured at
|
|
919
|
+
* construction) so that post-construction reassignment of the orchestrator's
|
|
920
|
+
* live fields — exercised by the conversation-index integration tests and by
|
|
921
|
+
* backend swap-in at deferred-init time — is honored. This mirrors the
|
|
922
|
+
* TierMigrationCoordinator accessor pattern.
|
|
923
|
+
*/
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Coordinator for the conversation-index subsystem.
|
|
927
|
+
*
|
|
928
|
+
* Holds the per-session last-update timestamps (previously an orchestrator
|
|
929
|
+
* field) and delegates chunk building / persistence / embedding to the
|
|
930
|
+
* configured backend.
|
|
931
|
+
*/
|
|
932
|
+
declare class ConversationIndexCoordinator {
|
|
933
|
+
private readonly config;
|
|
934
|
+
private readonly getTranscript;
|
|
935
|
+
private readonly getBackend;
|
|
936
|
+
private readonly indexDir;
|
|
937
|
+
private readonly lastUpdateAtMs;
|
|
938
|
+
constructor(options: {
|
|
939
|
+
config: PluginConfig;
|
|
940
|
+
getTranscript: () => TranscriptManager;
|
|
941
|
+
getBackend: () => ConversationIndexBackend | undefined;
|
|
942
|
+
indexDir: string;
|
|
943
|
+
});
|
|
944
|
+
/** Semantic recall over past-conversation chunks (fail-open: empty on miss). */
|
|
945
|
+
search(retrievalQuery: string, topK: number): Promise<ConversationSearchResult[]>;
|
|
946
|
+
/** Render conversation-recall search hits as a budgeted markdown section. */
|
|
947
|
+
formatRecallSection(results: ConversationSearchResult[], maxChars: number): string | null;
|
|
948
|
+
/** Recursively count `.md` chunk documents under a directory. */
|
|
949
|
+
countChunkDocs(dir: string): Promise<number>;
|
|
950
|
+
/** Read recent transcript entries and chunk them for indexing. */
|
|
951
|
+
buildChunks(sessionKey?: string, hours?: number): Promise<ConversationChunk[]>;
|
|
952
|
+
getHealth(): Promise<{
|
|
953
|
+
enabled: boolean;
|
|
954
|
+
backend: "qmd" | "faiss";
|
|
955
|
+
status: "ok" | "degraded" | "disabled";
|
|
956
|
+
chunkDocCount: number;
|
|
957
|
+
lastUpdateAt: string | null;
|
|
958
|
+
qmdAvailable?: boolean;
|
|
959
|
+
faiss?: {
|
|
960
|
+
ok: boolean;
|
|
961
|
+
status: "ok" | "degraded" | "error";
|
|
962
|
+
indexPath: string;
|
|
963
|
+
message?: string;
|
|
964
|
+
manifest?: {
|
|
965
|
+
version: number;
|
|
966
|
+
modelId: string;
|
|
967
|
+
normalizedModelId: string;
|
|
968
|
+
dimension: number;
|
|
969
|
+
chunkCount: number;
|
|
970
|
+
updatedAt: string;
|
|
971
|
+
lastSuccessfulRebuildAt: string;
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
}>;
|
|
975
|
+
inspect(): Promise<ConversationIndexBackendInspection & {
|
|
976
|
+
enabled: boolean;
|
|
977
|
+
chunkDocCount: number;
|
|
978
|
+
lastUpdateAt: string | null;
|
|
979
|
+
}>;
|
|
980
|
+
update(sessionKey: string, hours?: number, opts?: {
|
|
981
|
+
embed?: boolean;
|
|
982
|
+
enforceMinInterval?: boolean;
|
|
983
|
+
}): Promise<{
|
|
984
|
+
chunks: number;
|
|
985
|
+
skipped: boolean;
|
|
986
|
+
reason?: string;
|
|
987
|
+
retryAfterMs?: number;
|
|
988
|
+
embedded?: boolean;
|
|
989
|
+
}>;
|
|
990
|
+
rebuild(sessionKey?: string, hours?: number, opts?: {
|
|
991
|
+
embed?: boolean;
|
|
992
|
+
}): Promise<{
|
|
993
|
+
chunks: number;
|
|
994
|
+
skipped: boolean;
|
|
995
|
+
reason?: string;
|
|
996
|
+
embedded?: boolean;
|
|
997
|
+
rebuilt?: boolean;
|
|
998
|
+
}>;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Recall rerank coordinator — extracted from the orchestrator (issue #1526).
|
|
1003
|
+
*
|
|
1004
|
+
* Owns the post-retrieval result-ranking subsystem: Memory-Worth reranking,
|
|
1005
|
+
* TrustScore scoring + quarantine, reasoning-trace boost, and MMR
|
|
1006
|
+
* diversification/limiting. Behavior-preserving move from orchestrator.ts —
|
|
1007
|
+
* no logic changes; the orchestrator constructs one instance and keeps thin
|
|
1008
|
+
* delegating methods so existing call sites (recallInternal,
|
|
1009
|
+
* applyColdFallbackPipeline) continue to work.
|
|
1010
|
+
*
|
|
1011
|
+
* Config, storage, and the QMD-result memory reader are accessed through
|
|
1012
|
+
* getter callbacks (not captured at construction) so that post-construction
|
|
1013
|
+
* reassignment of the orchestrator's live fields is honored. This mirrors
|
|
1014
|
+
* the ConversationIndexCoordinator / TierMigrationCoordinator accessor
|
|
1015
|
+
* pattern.
|
|
1016
|
+
*/
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Coordinator for the recall-result reranking subsystem.
|
|
1020
|
+
*
|
|
1021
|
+
* Holds the per-namespace caches for memory-worth counters and trust signals
|
|
1022
|
+
* (previously orchestrator fields) so the reranking stages don't trigger a
|
|
1023
|
+
* full `readAllMemories` scan per query.
|
|
1024
|
+
*/
|
|
1025
|
+
declare class RecallRerankCoordinator {
|
|
1026
|
+
private readonly getConfig;
|
|
1027
|
+
private readonly getStorage;
|
|
1028
|
+
private readonly readQmdResultMemory;
|
|
1029
|
+
private readonly memoryWorthCounterCache;
|
|
1030
|
+
private static readonly MEMORY_WORTH_CACHE_TTL_MS;
|
|
1031
|
+
private readonly trustSignalCache;
|
|
1032
|
+
private static readonly TRUST_SIGNAL_CACHE_TTL_MS;
|
|
1033
|
+
constructor(options: {
|
|
1034
|
+
getConfig: () => PluginConfig;
|
|
1035
|
+
getStorage: (namespace: string) => Promise<StorageManager>;
|
|
1036
|
+
readQmdResultMemory: (resultPath: string, fallbackStorage: StorageManager, recallNamespaces: readonly string[]) => Promise<MemoryFile | null>;
|
|
1037
|
+
});
|
|
1038
|
+
applyMemoryWorthRerank(results: QmdSearchResult[], namespaces: string[]): Promise<QmdSearchResult[]>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Issue #1577 — unified TrustScore recall stage. Thin wiring over the pure
|
|
1041
|
+
* {@link applyTrustScoreStage} scorer + the {@link buildTrustSignalsForRerank}
|
|
1042
|
+
* signal builder. The stage subsumes the Memory Worth multiplier — the
|
|
1043
|
+
* orchestrator runs exactly one of the two (mutual exclusion, rule 39; the
|
|
1044
|
+
* double-multiplier test in trust-score-stage.test.ts pins it structurally).
|
|
1045
|
+
*
|
|
1046
|
+
* Returns the admitted results AND the per-path trust map (including
|
|
1047
|
+
* quarantined items) so the caller can: (a) render epistemic hedges, (b)
|
|
1048
|
+
* surface quarantined items in X-ray with a reason (rule 34), and (c) filter
|
|
1049
|
+
* quarantined paths from fallback recall branches. The trust map is a
|
|
1050
|
+
* per-recall local — never instance state — so concurrent recalls cannot
|
|
1051
|
+
* race on it (review: shared-trust-map concurrency).
|
|
1052
|
+
*/
|
|
1053
|
+
applyTrustScoreRerank(results: QmdSearchResult[], namespaces: string[]): Promise<{
|
|
1054
|
+
results: QmdSearchResult[];
|
|
1055
|
+
trustByPath: Map<string, TrustStageResultItem> | null;
|
|
1056
|
+
}>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Issue #1577 — apply the TrustScore stage (or, when trust is off, the Memory
|
|
1059
|
+
* Worth multiplier fallback) to ONE recall branch's results, returning the
|
|
1060
|
+
* scored results + the per-path trust map. Thin wiring over
|
|
1061
|
+
* {@link applyTrustScoreRerank} so every recall path — hot QMD, embedding
|
|
1062
|
+
* fallback, recent scan — applies the SAME multiplier gate (rule 41: a
|
|
1063
|
+
* feature gate must apply across ALL parallel recall paths). TrustScore
|
|
1064
|
+
* subsumes Memory Worth; exactly one runs (rule 39). Fail-open on lookup
|
|
1065
|
+
* errors so a storage hiccup never breaks a fallback path.
|
|
1066
|
+
*/
|
|
1067
|
+
applyTrustScoreToBranch(results: QmdSearchResult[], namespaces: string[], caps: CapabilitySet, label: string): Promise<{
|
|
1068
|
+
results: QmdSearchResult[];
|
|
1069
|
+
trustByPath: Map<string, TrustStageResultItem> | null;
|
|
1070
|
+
}>;
|
|
1071
|
+
diversifyAndLimitRecallResults(sectionId: string, results: QmdSearchResult[], limit: number, retrievalQuery?: string, caps?: CapabilitySet): QmdSearchResult[];
|
|
1072
|
+
/**
|
|
1073
|
+
* Apply Maximal Marginal Relevance to a section's ordered candidate list.
|
|
1074
|
+
*
|
|
1075
|
+
* Operates per-section so one redundant cluster cannot dominate a section,
|
|
1076
|
+
* and so one section's MMR pass cannot starve other sections. Returns the
|
|
1077
|
+
* input unchanged when disabled, when there are fewer than 2 candidates, or
|
|
1078
|
+
* when no budget information is available.
|
|
1079
|
+
*/
|
|
1080
|
+
applyMmrToQmdResults(sectionId: string, results: QmdSearchResult[], caps?: CapabilitySet): QmdSearchResult[];
|
|
1081
|
+
}
|
|
1082
|
+
|
|
905
1083
|
/**
|
|
906
1084
|
* Pattern-reinforcement maintenance job (issue #687 PR 2/4).
|
|
907
1085
|
*
|
|
@@ -1442,25 +1620,6 @@ declare class Orchestrator {
|
|
|
1442
1620
|
/** Lossless Context Management engine — proactive session archive + DAG summarization. */
|
|
1443
1621
|
readonly lcmEngine: LcmEngine | null;
|
|
1444
1622
|
private readonly rerankCache;
|
|
1445
|
-
/**
|
|
1446
|
-
* Short-TTL cache for Memory Worth counter lookups so interactive recall
|
|
1447
|
-
* doesn't trigger a full `readAllMemories` scan per query. Keyed by
|
|
1448
|
-
* namespace; the filter unions across namespaces at query time. The TTL
|
|
1449
|
-
* is intentionally short (seconds, not minutes) because counters are
|
|
1450
|
-
* mutated by `recordMemoryOutcome` asynchronously and we'd rather serve
|
|
1451
|
-
* a 30-second-stale worth score than a stable-but-wrong one.
|
|
1452
|
-
*/
|
|
1453
|
-
private readonly memoryWorthCounterCache;
|
|
1454
|
-
private static readonly MEMORY_WORTH_CACHE_TTL_MS;
|
|
1455
|
-
/**
|
|
1456
|
-
* Issue #1577 — per-namespace TrustScore signal map cache. Same TTL/shape
|
|
1457
|
-
* discipline as {@link memoryWorthCounterCache}: seconds-scale, evicted on
|
|
1458
|
-
* every call, keyed by namespace. Holds the frontmatter-derived signals
|
|
1459
|
-
* (worth, provenance, faithfulness, corroboration, recency) so the trust
|
|
1460
|
-
* stage doesn't trigger a fresh `readAllMemories` scan per query.
|
|
1461
|
-
*/
|
|
1462
|
-
private readonly trustSignalCache;
|
|
1463
|
-
private static readonly TRUST_SIGNAL_CACHE_TTL_MS;
|
|
1464
1623
|
/**
|
|
1465
1624
|
* Per-session workspace selections keyed by sessionKey.
|
|
1466
1625
|
* Set by the before_agent_start hook so recall() uses the correct
|
|
@@ -1507,13 +1666,18 @@ declare class Orchestrator {
|
|
|
1507
1666
|
* to RecallResultFormatter.
|
|
1508
1667
|
*/
|
|
1509
1668
|
readonly recallResultFormatter: RecallResultFormatter;
|
|
1669
|
+
/**
|
|
1670
|
+
* Issue #1526: conversation-index subsystem moved to
|
|
1671
|
+
* ConversationIndexCoordinator.
|
|
1672
|
+
*/
|
|
1673
|
+
readonly conversationIndexCoordinator: ConversationIndexCoordinator;
|
|
1674
|
+
readonly recallRerankCoordinator: RecallRerankCoordinator;
|
|
1510
1675
|
private heartbeatObserverChains;
|
|
1511
1676
|
private recentExtractionFingerprints;
|
|
1512
1677
|
private readonly consolidationObservers;
|
|
1513
1678
|
private wearablesServiceInstance;
|
|
1514
1679
|
private wearablesAutoSyncHandle;
|
|
1515
1680
|
private lastQmdReprobeAtMs;
|
|
1516
|
-
private readonly conversationIndexLastUpdateAtMs;
|
|
1517
1681
|
private lastFileHygieneRunAtMs;
|
|
1518
1682
|
private lastPatternReinforcementAtByNs;
|
|
1519
1683
|
private lastRecallFailureLogAtMs;
|
|
@@ -1969,8 +2133,6 @@ declare class Orchestrator {
|
|
|
1969
2133
|
}): Promise<string>;
|
|
1970
2134
|
private searchConversationRecallResults;
|
|
1971
2135
|
private formatConversationRecallSection;
|
|
1972
|
-
private countConversationChunkDocs;
|
|
1973
|
-
private buildConversationIndexChunks;
|
|
1974
2136
|
getConversationIndexHealth(): Promise<{
|
|
1975
2137
|
enabled: boolean;
|
|
1976
2138
|
backend: "qmd" | "faiss";
|
|
@@ -2319,41 +2481,9 @@ declare class Orchestrator {
|
|
|
2319
2481
|
private resolveColdQmdResultForRecall;
|
|
2320
2482
|
private storageForAbsoluteQmdResultPath;
|
|
2321
2483
|
private applyMemoryWorthRerank;
|
|
2322
|
-
/**
|
|
2323
|
-
* Issue #1577 — unified TrustScore recall stage. Thin wiring over the pure
|
|
2324
|
-
* {@link applyTrustScoreStage} scorer + the {@link buildTrustSignalsForRerank}
|
|
2325
|
-
* signal builder. The stage subsumes the Memory Worth multiplier — the
|
|
2326
|
-
* orchestrator runs exactly one of the two (mutual exclusion, rule 39; the
|
|
2327
|
-
* double-multiplier test in trust-score-stage.test.ts pins it structurally).
|
|
2328
|
-
*
|
|
2329
|
-
* Returns the admitted results AND the per-path trust map (including
|
|
2330
|
-
* quarantined items) so the caller can: (a) render epistemic hedges, (b)
|
|
2331
|
-
* surface quarantined items in X-ray with a reason (rule 34), and (c) filter
|
|
2332
|
-
* quarantined paths from fallback recall branches. The trust map is a
|
|
2333
|
-
* per-recall local — never instance state — so concurrent recalls cannot
|
|
2334
|
-
* race on it (review: shared-trust-map concurrency).
|
|
2335
|
-
*/
|
|
2336
2484
|
private applyTrustScoreRerank;
|
|
2337
|
-
/**
|
|
2338
|
-
* Issue #1577 — apply the TrustScore stage (or, when trust is off, the Memory
|
|
2339
|
-
* Worth multiplier fallback) to ONE recall branch's results, returning the
|
|
2340
|
-
* scored results + the per-path trust map. Thin wiring over
|
|
2341
|
-
* {@link applyTrustScoreRerank} so every recall path — hot QMD, embedding
|
|
2342
|
-
* fallback, recent scan — applies the SAME multiplier gate (rule 41: a
|
|
2343
|
-
* feature gate must apply across ALL parallel recall paths). TrustScore
|
|
2344
|
-
* subsumes Memory Worth; exactly one runs (rule 39). Fail-open on lookup
|
|
2345
|
-
* errors so a storage hiccup never breaks a fallback path.
|
|
2346
|
-
*/
|
|
2347
2485
|
private applyTrustScoreToBranch;
|
|
2348
2486
|
private diversifyAndLimitRecallResults;
|
|
2349
|
-
/**
|
|
2350
|
-
* Apply Maximal Marginal Relevance to a section's ordered candidate list.
|
|
2351
|
-
*
|
|
2352
|
-
* Operates per-section so one redundant cluster cannot dominate a section,
|
|
2353
|
-
* and so one section's MMR pass cannot starve other sections. Returns the
|
|
2354
|
-
* input unchanged when disabled, when there are fewer than 2 candidates, or
|
|
2355
|
-
* when no budget information is available.
|
|
2356
|
-
*/
|
|
2357
2487
|
private applyMmrToQmdResults;
|
|
2358
2488
|
private buildLastRecallBudgetSummary;
|
|
2359
2489
|
private collectLastRecallSources;
|
package/dist/orchestrator.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import './summarizer.js';
|
|
|
8
8
|
import './local-llm.js';
|
|
9
9
|
import './fallback-llm.js';
|
|
10
10
|
import './orchestration/maintenance.js';
|
|
11
|
-
export { L as BulkImportBatchIngestResult, M as BulkImportBatchPartialFailureError, N as GraphRecallRankedResult, Q as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, T as QmdRecallSnapshot, U as RecallInvocationOptions, V as RecallModeDecision, X as appendMemoryToGraphContext, Y as blendGraphExpandedRecallScore, Z as buildCompressionGuidelinesMarkdown, _ as buildMemoryPathById, $ as computeArtifactCandidateFetchLimit, a0 as computeArtifactRecallLimit, a1 as computeQmdHybridFetchLimit, q as defaultWorkspaceDir, a2 as deriveTopicsFromExtraction, a3 as filterRecallCandidates, a4 as graphPathRelativeToStorage, a5 as hasIdentityRecoveryIntent, a6 as isArtifactMemoryPath, a7 as lifecycleRecallScoreAdjustment, a8 as mergeArtifactRecallCandidates, a9 as mergeGraphExpandedResults, aa as resolveEffectiveIdentityInjectionMode, ab as resolveEffectiveRecallMode, ac as resolvePersistedMemoryRelativePath, ad as resolveRecallModeDecision, ae as resolveRecallModeDecisionAsync, af as resolveRecentThreadMemoryPaths, A as sanitizeSessionKeyForFilename, ag as shouldFilterLifecycleRecallCandidate, ah as summarizeGraphShadowComparison } from './orchestrator-
|
|
11
|
+
export { L as BulkImportBatchIngestResult, M as BulkImportBatchPartialFailureError, N as GraphRecallRankedResult, Q as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, T as QmdRecallSnapshot, U as RecallInvocationOptions, V as RecallModeDecision, X as appendMemoryToGraphContext, Y as blendGraphExpandedRecallScore, Z as buildCompressionGuidelinesMarkdown, _ as buildMemoryPathById, $ as computeArtifactCandidateFetchLimit, a0 as computeArtifactRecallLimit, a1 as computeQmdHybridFetchLimit, q as defaultWorkspaceDir, a2 as deriveTopicsFromExtraction, a3 as filterRecallCandidates, a4 as graphPathRelativeToStorage, a5 as hasIdentityRecoveryIntent, a6 as isArtifactMemoryPath, a7 as lifecycleRecallScoreAdjustment, a8 as mergeArtifactRecallCandidates, a9 as mergeGraphExpandedResults, aa as resolveEffectiveIdentityInjectionMode, ab as resolveEffectiveRecallMode, ac as resolvePersistedMemoryRelativePath, ad as resolveRecallModeDecision, ae as resolveRecallModeDecisionAsync, af as resolveRecentThreadMemoryPaths, A as sanitizeSessionKeyForFilename, ag as shouldFilterLifecycleRecallCandidate, ah as summarizeGraphShadowComparison } from './orchestrator-BOAFN_Yr.js';
|
|
12
12
|
export { formatCompressionGuidelinesForRecall } from './orchestration/compression-guideline-coordinator.js';
|
|
13
13
|
import './live-connectors-runner.js';
|
|
14
14
|
import './model-registry.js';
|
|
@@ -60,6 +60,9 @@ import './semantic-rule-verifier.js';
|
|
|
60
60
|
import './work-product-ledger.js';
|
|
61
61
|
import './trust-score-stage.js';
|
|
62
62
|
import './trust-score.js';
|
|
63
|
+
import './conversation-index/chunker.js';
|
|
64
|
+
import './faiss-adapter-BHecI1fF.js';
|
|
65
|
+
import './runtime/child-process.js';
|
|
63
66
|
import './extraction-judge.js';
|
|
64
67
|
import './framework-CNDn2164.js';
|
|
65
68
|
import './memory-provenance.js';
|
|
@@ -70,6 +73,3 @@ import './lcm/dag.js';
|
|
|
70
73
|
import './lcm/queue.js';
|
|
71
74
|
import './connectors/codex-materialize.js';
|
|
72
75
|
import './logger.js';
|
|
73
|
-
import './conversation-index/chunker.js';
|
|
74
|
-
import './faiss-adapter-BHecI1fF.js';
|
|
75
|
-
import './runtime/child-process.js';
|
package/dist/orchestrator.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
sanitizeSessionKeyForFilename,
|
|
27
27
|
shouldFilterLifecycleRecallCandidate,
|
|
28
28
|
summarizeGraphShadowComparison
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IEWUPZ75.js";
|
|
30
30
|
import "./chunk-OZECYVGI.js";
|
|
31
31
|
import {
|
|
32
32
|
formatCompressionGuidelinesForRecall
|