@remnic/core 9.3.666 → 9.3.668
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-cli.js +1 -1
- package/dist/access-http.d.ts +2 -2
- package/dist/access-mcp.d.ts +2 -2
- package/dist/access-schema.d.ts +36 -36
- package/dist/{access-service-DsS-TatL.d.ts → access-service-BCuaiNHa.d.ts} +1 -1
- package/dist/access-service.d.ts +2 -2
- package/dist/bootstrap.d.ts +1 -1
- package/dist/{chunk-GZ6QAYSH.js → chunk-4FJKKC2N.js} +14 -4
- package/dist/chunk-4FJKKC2N.js.map +1 -0
- package/dist/{cli-BypxcNqq.d.ts → cli-C98xlwYA.d.ts} +2 -2
- package/dist/cli.d.ts +3 -3
- package/dist/explicit-capture.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/mcp-memory-inspector-app.d.ts +2 -2
- package/dist/{orchestrator-DZqPVoMI.d.ts → orchestrator-DyP9QYsh.d.ts} +8 -0
- package/dist/orchestrator.d.ts +1 -1
- package/dist/orchestrator.js +1 -1
- package/dist/schemas.d.ts +42 -42
- package/dist/shared-context/manager.d.ts +2 -2
- package/package.json +1 -1
- package/src/orchestrator.ts +14 -3
- package/dist/chunk-GZ6QAYSH.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-DyP9QYsh.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-ByK7T3L6.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 { E as EngramAccessService } from './access-service-
|
|
19
|
+
import { E as EngramAccessService } from './access-service-BCuaiNHa.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-DyP9QYsh.js';
|
|
11
11
|
import './replay/runner.js';
|
|
12
12
|
import './replay/types.js';
|
|
13
13
|
import './types-ByK7T3L6.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-BCuaiNHa.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 CompatCliCommandOptions, b as ConnectorsRunCliOutputOptions, c as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, d as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, e as MemoryActionAuditCliNamespaceSummary, f as MemoryActionAuditCliReport, g as MemoryGovernanceCliCommandOptions, h as MemoryGovernanceReportCliCommandOptions, i as MemoryGovernanceRestoreCliCommandOptions, j as MemoryReviewDispositionCliCommandOptions, k as MemoryTimelineCliCommandOptions, l as MigrateCliOrchestrator, m as MigrateCliReport, n as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, o as PolicyDiffEntry, q as PolicyRollbackCliReport, s as PolicyStatusCliReport, t as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, u as RebuildMemoryProjectionCliCommandOptions, v as RebuildObservationsCliCommandOptions, w as RepairMemoryProjectionCliCommandOptions, x as ReplayCliCommandOptions, y as ReplayCliOrchestrator, z as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, F as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, H as TailscaleSyncCliCommandOptions, I as TierMigrationCliOrchestrator, J as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, K as WorkProjectCliCommandOptions, L as WorkTaskCliCommandOptions, N as emitConnectorsRunCliResult, O as filterNormalMemorySearchResults, Q as hasDestructivePurgeFailures, U as isNormalRetrievalVisibleMemory, X as listMemoryMarkdownFilePaths, Y as parseDurationToMs, Z as parseStrictCliDate, _ as planAggressiveDuplicateDeletions, $ as planExactDuplicateDeletions, a0 as registerCli, a1 as resolveAccessPrincipalOverride, a2 as resolveMemoryDirForNamespace, a3 as runAbstractionNodeStatusCliCommand, a4 as runAccessHttpServeCliCommand, a5 as runAccessHttpStatusCliCommand, a6 as runAccessHttpStopCliCommand, a7 as runAccessMcpServeCliCommand, a8 as runArchiveObservationsCliCommand, a9 as runBenchmarkBaselineReportCliCommand, aa as runBenchmarkBaselineSnapshotCliCommand, ab as runBenchmarkCiGateCliCommand, ac as runBenchmarkImportCliCommand, ad as runBenchmarkStatusCliCommand, ae as runBenchmarkStoredBaselineCiGateCliCommand, af as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, ag as runCausalTrajectoryStatusCliCommand, ah as runCommitmentLifecycleCliCommand, ai as runCommitmentRecordCliCommand, aj as runCommitmentSetStateCliCommand, ak as runCommitmentStatusCliCommand, al as runCompatCliCommand, am as runCompoundingPromoteCliCommand, an as runConversationIndexHealthCliCommand, ao as runConversationIndexInspectCliCommand, ap as runConversationIndexRebuildCliCommand, aq as runCueAnchorStatusCliCommand, ar as runDashboardStartCliCommand, as as runDashboardStatusCliCommand, at as runDashboardStopCliCommand, au as runGraphHealthCliCommand, av as runHarmonicSearchCliCommand, aw as runMemoryActionAuditCliCommand, ax as runMemoryGovernanceCliCommand, ay as runMemoryGovernanceReportCliCommand, az as runMemoryGovernanceRestoreCliCommand, aA as runMemoryReviewDispositionCliCommand, aB as runMemoryTimelineCliCommand, aC as runMigrateNormalizeFrontmatterCliCommand, aD as runMigrateObservationsCliCommand, aE as runMigrateRechunkCliCommand, aF as runMigrateReextractCliCommand, aG as runMigrateRescoreImportanceCliCommand, aH as runObjectiveStateStatusCliCommand, aI as runPolicyDiffCliCommand, aJ as runPolicyRollbackCliCommand, aK as runPolicyStatusCliCommand, aL as runRebuildMemoryLifecycleLedgerCliCommand, aM as runRebuildMemoryProjectionCliCommand, aN as runRebuildObservationsCliCommand, aO as runRepairMemoryProjectionCliCommand, aP as runReplayCliCommand, aQ as runResumeBundleBuildCliCommand, aR as runResumeBundleRecordCliCommand, aS as runResumeBundleStatusCliCommand, aT as runRouteCliCommand, aU as runSemanticRulePromoteCliCommand, aV as runSemanticRuleVerifyCliCommand, aW as runSessionCheckCliCommand, aX as runSessionRepairCliCommand, aY as runTailscaleStatusCliCommand, aZ as runTailscaleSyncCliCommand, a_ as runTierMigrateCliCommand, a$ as runTierStatusCliCommand, b0 as runTrainingExportCliCommand, b1 as runTrustZoneDemoSeedCliCommand, b2 as runTrustZonePromoteCliCommand, b3 as runTrustZoneStatusCliCommand, b4 as runUtilityLearningCliCommand, b5 as runUtilityLearningStatusCliCommand, b6 as runUtilityTelemetryRecordCliCommand, b7 as runUtilityTelemetryStatusCliCommand, b8 as runVerifiedRecallSearchCliCommand, b9 as runVerifyMemoryProjectionCliCommand, ba as runWebDavServeCliCommand, bb as runWebDavStopCliCommand, bc as runWorkProductRecallSearchCliCommand, bd as runWorkProductRecordCliCommand, be as runWorkProductStatusCliCommand, bf as runWorkProjectCliCommand, bg as runWorkTaskCliCommand } from './cli-
|
|
41
|
+
export { A as AccessHttpServeCliCommandOptions, a as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CompatCliCommandOptions, b as ConnectorsRunCliOutputOptions, c as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, d as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, e as MemoryActionAuditCliNamespaceSummary, f as MemoryActionAuditCliReport, g as MemoryGovernanceCliCommandOptions, h as MemoryGovernanceReportCliCommandOptions, i as MemoryGovernanceRestoreCliCommandOptions, j as MemoryReviewDispositionCliCommandOptions, k as MemoryTimelineCliCommandOptions, l as MigrateCliOrchestrator, m as MigrateCliReport, n as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, o as PolicyDiffEntry, q as PolicyRollbackCliReport, s as PolicyStatusCliReport, t as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, u as RebuildMemoryProjectionCliCommandOptions, v as RebuildObservationsCliCommandOptions, w as RepairMemoryProjectionCliCommandOptions, x as ReplayCliCommandOptions, y as ReplayCliOrchestrator, z as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, F as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, H as TailscaleSyncCliCommandOptions, I as TierMigrationCliOrchestrator, J as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, K as WorkProjectCliCommandOptions, L as WorkTaskCliCommandOptions, N as emitConnectorsRunCliResult, O as filterNormalMemorySearchResults, Q as hasDestructivePurgeFailures, U as isNormalRetrievalVisibleMemory, X as listMemoryMarkdownFilePaths, Y as parseDurationToMs, Z as parseStrictCliDate, _ as planAggressiveDuplicateDeletions, $ as planExactDuplicateDeletions, a0 as registerCli, a1 as resolveAccessPrincipalOverride, a2 as resolveMemoryDirForNamespace, a3 as runAbstractionNodeStatusCliCommand, a4 as runAccessHttpServeCliCommand, a5 as runAccessHttpStatusCliCommand, a6 as runAccessHttpStopCliCommand, a7 as runAccessMcpServeCliCommand, a8 as runArchiveObservationsCliCommand, a9 as runBenchmarkBaselineReportCliCommand, aa as runBenchmarkBaselineSnapshotCliCommand, ab as runBenchmarkCiGateCliCommand, ac as runBenchmarkImportCliCommand, ad as runBenchmarkStatusCliCommand, ae as runBenchmarkStoredBaselineCiGateCliCommand, af as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, ag as runCausalTrajectoryStatusCliCommand, ah as runCommitmentLifecycleCliCommand, ai as runCommitmentRecordCliCommand, aj as runCommitmentSetStateCliCommand, ak as runCommitmentStatusCliCommand, al as runCompatCliCommand, am as runCompoundingPromoteCliCommand, an as runConversationIndexHealthCliCommand, ao as runConversationIndexInspectCliCommand, ap as runConversationIndexRebuildCliCommand, aq as runCueAnchorStatusCliCommand, ar as runDashboardStartCliCommand, as as runDashboardStatusCliCommand, at as runDashboardStopCliCommand, au as runGraphHealthCliCommand, av as runHarmonicSearchCliCommand, aw as runMemoryActionAuditCliCommand, ax as runMemoryGovernanceCliCommand, ay as runMemoryGovernanceReportCliCommand, az as runMemoryGovernanceRestoreCliCommand, aA as runMemoryReviewDispositionCliCommand, aB as runMemoryTimelineCliCommand, aC as runMigrateNormalizeFrontmatterCliCommand, aD as runMigrateObservationsCliCommand, aE as runMigrateRechunkCliCommand, aF as runMigrateReextractCliCommand, aG as runMigrateRescoreImportanceCliCommand, aH as runObjectiveStateStatusCliCommand, aI as runPolicyDiffCliCommand, aJ as runPolicyRollbackCliCommand, aK as runPolicyStatusCliCommand, aL as runRebuildMemoryLifecycleLedgerCliCommand, aM as runRebuildMemoryProjectionCliCommand, aN as runRebuildObservationsCliCommand, aO as runRepairMemoryProjectionCliCommand, aP as runReplayCliCommand, aQ as runResumeBundleBuildCliCommand, aR as runResumeBundleRecordCliCommand, aS as runResumeBundleStatusCliCommand, aT as runRouteCliCommand, aU as runSemanticRulePromoteCliCommand, aV as runSemanticRuleVerifyCliCommand, aW as runSessionCheckCliCommand, aX as runSessionRepairCliCommand, aY as runTailscaleStatusCliCommand, aZ as runTailscaleSyncCliCommand, a_ as runTierMigrateCliCommand, a$ as runTierStatusCliCommand, b0 as runTrainingExportCliCommand, b1 as runTrustZoneDemoSeedCliCommand, b2 as runTrustZonePromoteCliCommand, b3 as runTrustZoneStatusCliCommand, b4 as runUtilityLearningCliCommand, b5 as runUtilityLearningStatusCliCommand, b6 as runUtilityTelemetryRecordCliCommand, b7 as runUtilityTelemetryStatusCliCommand, b8 as runVerifiedRecallSearchCliCommand, b9 as runVerifyMemoryProjectionCliCommand, ba as runWebDavServeCliCommand, bb as runWebDavStopCliCommand, bc as runWorkProductRecallSearchCliCommand, bd as runWorkProductRecordCliCommand, be as runWorkProductStatusCliCommand, bf as runWorkProjectCliCommand, bg as runWorkTaskCliCommand } from './cli-C98xlwYA.js';
|
|
42
42
|
import './connectors-cli-2iaQ5tX2.js';
|
|
43
43
|
import './storage.js';
|
|
44
44
|
import './page-versioning.js';
|
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, N as NamespaceCatalog, a as NamespaceCatalogFilter, b as NamespaceCatalogRebuildResult, c as NamespaceCatalogSkippedRoot, d as NamespaceDiscoverySource, e as NamespaceKind, f as NamespaceRecord, g as NamespaceTouchMetadata, O as Orchestrator, R as ResolvedSpeaker, h as SpeakerOverride, i as WEARABLE_SOURCE_PREFIX, j as WearableDayTranscriptView, k as WearableMemoryGenDeps, l as WearableMemoryGenResult, m as WearableMemorySearchResult, n as WearableMemoryWriter, o as WearableSearchBackend, p as WearableStorageIo, q as WearableSyncDeps, r as WearableSyncOptions, s as WearableTranscriptSearchResult, t as WearablesServiceDeps, u as buildExtractionTurns, v as dateInTimezone, w as defaultTimezone, x as defaultWorkspaceDir, y as distinctSpeakerLabels, z as emptySpeakerRegistry, A as generateWearableMemories, B as importNativeMemories, C as loadSpeakerRegistry, E as locateTranscriptPath, F as memoryStatusForMode, H as resolveSpeaker, J as resolveSyncDates, K as sanitizeSessionKeyForFilename, L as saveSpeakerRegistry, M as speakerRegistryKey, Q as speakersFilePath, T as syncWearableSource, U as wearableDayTag, V as wearableSourceLabel, X as writeDailyDigestMemory } from './orchestrator-
|
|
4
|
+
import { S as SpeakerRegistry, W as WearablesService } from './orchestrator-DyP9QYsh.js';
|
|
5
|
+
export { D as DEFAULT_SELF_NAME, N as NamespaceCatalog, a as NamespaceCatalogFilter, b as NamespaceCatalogRebuildResult, c as NamespaceCatalogSkippedRoot, d as NamespaceDiscoverySource, e as NamespaceKind, f as NamespaceRecord, g as NamespaceTouchMetadata, O as Orchestrator, R as ResolvedSpeaker, h as SpeakerOverride, i as WEARABLE_SOURCE_PREFIX, j as WearableDayTranscriptView, k as WearableMemoryGenDeps, l as WearableMemoryGenResult, m as WearableMemorySearchResult, n as WearableMemoryWriter, o as WearableSearchBackend, p as WearableStorageIo, q as WearableSyncDeps, r as WearableSyncOptions, s as WearableTranscriptSearchResult, t as WearablesServiceDeps, u as buildExtractionTurns, v as dateInTimezone, w as defaultTimezone, x as defaultWorkspaceDir, y as distinctSpeakerLabels, z as emptySpeakerRegistry, A as generateWearableMemories, B as importNativeMemories, C as loadSpeakerRegistry, E as locateTranscriptPath, F as memoryStatusForMode, H as resolveSpeaker, J as resolveSyncDates, K as sanitizeSessionKeyForFilename, L as saveSpeakerRegistry, M as speakerRegistryKey, Q as speakersFilePath, T as syncWearableSource, U as wearableDayTag, V as wearableSourceLabel, X as writeDailyDigestMemory } from './orchestrator-DyP9QYsh.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 { aI as CodingContext, aN as CodingModeConfig, P as PluginConfig, M as Me
|
|
|
24
24
|
export { a7 as AgentAccessAuthToken, W as BriefingActiveThread, aQ as BriefingConfig, S as BriefingFocus, O as BriefingFollowup, aR as BriefingOpenCommitment, Y as BriefingRecentEntity, X as BriefingResult, N as BriefingSections, aS as BriefingWindow, o as BufferSurpriseEvent, V as CalendarEvent, U as CalendarSource, aT as CodexCompatConfig, aL as ConsolidationObservation, s as ContinuityImprovementLoop, aU as DEFAULT_RECALL_DISCLOSURE, x as EntityFile, E as EntityStructuredSection, aV as ExtractedFact, G as GatewayConfig, ak as MemoryActionEligibilityContext, aW as MemoryActionEligibilitySource, ab as MemoryActionType, g as MemoryFile, j as MemoryFrontmatter, aX as MemoryObservation, aY as MemoryScope, aZ as RECALL_DISCLOSURE_LEVELS, K as RecallDisclosure, a6 as SecretRef, a_ as WearableAuthCheck, a$ as WearableFetchOptions, b0 as WearableFetchPage, aB as WearableMemoryMode, aA as WearableNativeMemory, b1 as WearableNativeMemoryPage, aF as WearableSourceStatus, aE as WearableSyncSummary, b2 as WearableTranscriptSegment, b3 as isRecallDisclosure } from './types-D96bCB3C.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 { b as EngramAccessInputError, E as EngramAccessService, P as ProcedureStatsConfigSnapshot, c as ProcedureStatsRecent, d as ProcedureStatsReport, e as ProcedureStatusCounts, f as computeProcedureStats, g as formatProcedureStatsText } from './access-service-
|
|
27
|
+
export { b as EngramAccessInputError, E as EngramAccessService, P as ProcedureStatsConfigSnapshot, c as ProcedureStatsRecent, d as ProcedureStatsReport, e as ProcedureStatusCounts, f as computeProcedureStats, g as formatProcedureStatsText } from './access-service-BCuaiNHa.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';
|
|
@@ -78,7 +78,7 @@ export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, Enrichme
|
|
|
78
78
|
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-ByK7T3L6.js';
|
|
79
79
|
export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
|
|
80
80
|
export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-BSTuml0d.js';
|
|
81
|
-
export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-
|
|
81
|
+
export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-C98xlwYA.js';
|
|
82
82
|
export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
|
|
83
83
|
export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
|
|
84
84
|
export { ComputeMemoryWorthInput, MemoryWorthResult, computeMemoryWorth } from './memory-worth.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EngramAccessRecallResponse } from './access-service-
|
|
1
|
+
import { a as EngramAccessRecallResponse } from './access-service-BCuaiNHa.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';
|
|
@@ -21,7 +21,7 @@ import './user-model.js';
|
|
|
21
21
|
import './recall-audit-anomaly.js';
|
|
22
22
|
import './recall-audit.js';
|
|
23
23
|
import './explicit-capture.js';
|
|
24
|
-
import './orchestrator-
|
|
24
|
+
import './orchestrator-DyP9QYsh.js';
|
|
25
25
|
import './briefing.js';
|
|
26
26
|
import './buffer.js';
|
|
27
27
|
import './transcript.js';
|
|
@@ -1909,6 +1909,14 @@ declare class Orchestrator {
|
|
|
1909
1909
|
private estimateReservedRecallBudget;
|
|
1910
1910
|
private getRecallBudgetChars;
|
|
1911
1911
|
private assembleRecallSections;
|
|
1912
|
+
/**
|
|
1913
|
+
* Clock source for the shared post-retrieval assembly/enrichment budget. The
|
|
1914
|
+
* deadline is set from this value and every expiry check reads it back, so a
|
|
1915
|
+
* test can drive the budget deterministically instead of racing the few-ms
|
|
1916
|
+
* wall-clock window that made the "skips … after budget expires" tests flaky.
|
|
1917
|
+
* Production behavior is unchanged — it returns the wall clock.
|
|
1918
|
+
*/
|
|
1919
|
+
protected recallAssemblyClockMs(): number;
|
|
1912
1920
|
private recallInternal;
|
|
1913
1921
|
processTurn(role: "user" | "assistant", content: string, sessionKey?: string, options?: {
|
|
1914
1922
|
bufferKey?: string;
|
package/dist/orchestrator.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import './summarizer.js';
|
|
|
7
7
|
import './local-llm.js';
|
|
8
8
|
import './fallback-llm.js';
|
|
9
9
|
import './live-connectors-runner.js';
|
|
10
|
-
export { Y as BulkImportBatchIngestResult, Z as BulkImportBatchPartialFailureError, _ as GraphRecallRankedResult, $ as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, a0 as QmdRecallSnapshot, a1 as RecallInvocationOptions, a2 as RecallModeDecision, a3 as appendMemoryToGraphContext, a4 as blendGraphExpandedRecallScore, a5 as buildCompressionGuidelinesMarkdown, a6 as buildMemoryPathById, a7 as computeArtifactCandidateFetchLimit, a8 as computeArtifactRecallLimit, a9 as computeQmdHybridFetchLimit, aa as dedupeEntitySynthesisEvidenceEntries, x as defaultWorkspaceDir, ab as deriveTopicsFromExtraction, ac as filterRecallCandidates, ad as formatCompressionGuidelinesForRecall, ae as graphPathRelativeToStorage, af as hasIdentityRecoveryIntent, ag as isArtifactMemoryPath, ah as lifecycleRecallScoreAdjustment, ai as mergeArtifactRecallCandidates, aj as mergeGraphExpandedResults, ak as resolveEffectiveIdentityInjectionMode, al as resolveEffectiveRecallMode, am as resolvePersistedMemoryRelativePath, an as resolveRecallModeDecision, ao as resolveRecallModeDecisionAsync, ap as resolveRecentThreadMemoryPaths, K as sanitizeSessionKeyForFilename, aq as shouldFilterLifecycleRecallCandidate, ar as summarizeGraphShadowComparison } from './orchestrator-
|
|
10
|
+
export { Y as BulkImportBatchIngestResult, Z as BulkImportBatchPartialFailureError, _ as GraphRecallRankedResult, $ as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, a0 as QmdRecallSnapshot, a1 as RecallInvocationOptions, a2 as RecallModeDecision, a3 as appendMemoryToGraphContext, a4 as blendGraphExpandedRecallScore, a5 as buildCompressionGuidelinesMarkdown, a6 as buildMemoryPathById, a7 as computeArtifactCandidateFetchLimit, a8 as computeArtifactRecallLimit, a9 as computeQmdHybridFetchLimit, aa as dedupeEntitySynthesisEvidenceEntries, x as defaultWorkspaceDir, ab as deriveTopicsFromExtraction, ac as filterRecallCandidates, ad as formatCompressionGuidelinesForRecall, ae as graphPathRelativeToStorage, af as hasIdentityRecoveryIntent, ag as isArtifactMemoryPath, ah as lifecycleRecallScoreAdjustment, ai as mergeArtifactRecallCandidates, aj as mergeGraphExpandedResults, ak as resolveEffectiveIdentityInjectionMode, al as resolveEffectiveRecallMode, am as resolvePersistedMemoryRelativePath, an as resolveRecallModeDecision, ao as resolveRecallModeDecisionAsync, ap as resolveRecentThreadMemoryPaths, K as sanitizeSessionKeyForFilename, aq as shouldFilterLifecycleRecallCandidate, ar as summarizeGraphShadowComparison } from './orchestrator-DyP9QYsh.js';
|
|
11
11
|
import './model-registry.js';
|
|
12
12
|
import './relevance.js';
|
|
13
13
|
import './negative.js';
|
package/dist/orchestrator.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
sanitizeSessionKeyForFilename,
|
|
29
29
|
shouldFilterLifecycleRecallCandidate,
|
|
30
30
|
summarizeGraphShadowComparison
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4FJKKC2N.js";
|
|
32
32
|
import "./chunk-4SKKVWLQ.js";
|
|
33
33
|
import "./chunk-7HYPN2GC.js";
|
|
34
34
|
import "./chunk-666A3MOW.js";
|
package/dist/schemas.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
|
|
|
7
7
|
importance: z.ZodNumber;
|
|
8
8
|
source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
|
|
9
9
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
|
|
11
10
|
confidence: number;
|
|
11
|
+
source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
|
|
12
12
|
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
13
13
|
importance: number;
|
|
14
14
|
}, {
|
|
15
|
-
source: "manual" | "extraction" | "consolidation" | "replay" | "unknown";
|
|
16
15
|
confidence: number;
|
|
16
|
+
source: "unknown" | "manual" | "extraction" | "consolidation" | "replay";
|
|
17
17
|
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
18
18
|
importance: number;
|
|
19
19
|
}>;
|
|
@@ -149,10 +149,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
observed_outcome?: string | null | undefined;
|
|
150
150
|
}>>>;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
tags: string[];
|
|
153
|
-
content: string;
|
|
154
152
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
153
|
+
content: string;
|
|
155
154
|
confidence: number;
|
|
155
|
+
tags: string[];
|
|
156
156
|
entityRef?: string | null | undefined;
|
|
157
157
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
158
158
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -178,10 +178,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
178
178
|
observed_outcome?: string | null | undefined;
|
|
179
179
|
} | null | undefined;
|
|
180
180
|
}, {
|
|
181
|
-
tags: string[];
|
|
182
|
-
content: string;
|
|
183
181
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
182
|
+
content: string;
|
|
184
183
|
confidence: number;
|
|
184
|
+
tags: string[];
|
|
185
185
|
entityRef?: string | null | undefined;
|
|
186
186
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
187
187
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -207,10 +207,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
207
207
|
observed_outcome?: string | null | undefined;
|
|
208
208
|
} | null | undefined;
|
|
209
209
|
}>, {
|
|
210
|
-
tags: string[];
|
|
211
|
-
content: string;
|
|
212
210
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
211
|
+
content: string;
|
|
213
212
|
confidence: number;
|
|
213
|
+
tags: string[];
|
|
214
214
|
entityRef?: string | null | undefined;
|
|
215
215
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
216
216
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -236,10 +236,10 @@ declare const ExtractedFactSchema: z.ZodEffects<z.ZodObject<{
|
|
|
236
236
|
observed_outcome?: string | null | undefined;
|
|
237
237
|
} | null | undefined;
|
|
238
238
|
}, {
|
|
239
|
-
tags: string[];
|
|
240
|
-
content: string;
|
|
241
239
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
240
|
+
content: string;
|
|
242
241
|
confidence: number;
|
|
242
|
+
tags: string[];
|
|
243
243
|
entityRef?: string | null | undefined;
|
|
244
244
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
245
245
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -457,10 +457,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
457
457
|
observed_outcome?: string | null | undefined;
|
|
458
458
|
}>>>;
|
|
459
459
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
tags: string[];
|
|
461
|
-
content: string;
|
|
462
460
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
461
|
+
content: string;
|
|
463
462
|
confidence: number;
|
|
463
|
+
tags: string[];
|
|
464
464
|
entityRef?: string | null | undefined;
|
|
465
465
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
466
466
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -486,10 +486,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
486
486
|
observed_outcome?: string | null | undefined;
|
|
487
487
|
} | null | undefined;
|
|
488
488
|
}, {
|
|
489
|
-
tags: string[];
|
|
490
|
-
content: string;
|
|
491
489
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
490
|
+
content: string;
|
|
492
491
|
confidence: number;
|
|
492
|
+
tags: string[];
|
|
493
493
|
entityRef?: string | null | undefined;
|
|
494
494
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
495
495
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -515,10 +515,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
515
515
|
observed_outcome?: string | null | undefined;
|
|
516
516
|
} | null | undefined;
|
|
517
517
|
}>, {
|
|
518
|
-
tags: string[];
|
|
519
|
-
content: string;
|
|
520
518
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
519
|
+
content: string;
|
|
521
520
|
confidence: number;
|
|
521
|
+
tags: string[];
|
|
522
522
|
entityRef?: string | null | undefined;
|
|
523
523
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
524
524
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -544,10 +544,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
544
544
|
observed_outcome?: string | null | undefined;
|
|
545
545
|
} | null | undefined;
|
|
546
546
|
}, {
|
|
547
|
-
tags: string[];
|
|
548
|
-
content: string;
|
|
549
547
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
548
|
+
content: string;
|
|
550
549
|
confidence: number;
|
|
550
|
+
tags: string[];
|
|
551
551
|
entityRef?: string | null | undefined;
|
|
552
552
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
553
553
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -631,10 +631,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
631
631
|
}>, "many">>>;
|
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
|
633
633
|
facts: {
|
|
634
|
-
tags: string[];
|
|
635
|
-
content: string;
|
|
636
634
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
635
|
+
content: string;
|
|
637
636
|
confidence: number;
|
|
637
|
+
tags: string[];
|
|
638
638
|
entityRef?: string | null | undefined;
|
|
639
639
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
640
640
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -680,10 +680,10 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
680
680
|
}[] | null | undefined;
|
|
681
681
|
}, {
|
|
682
682
|
facts: {
|
|
683
|
-
tags: string[];
|
|
684
|
-
content: string;
|
|
685
683
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
684
|
+
content: string;
|
|
686
685
|
confidence: number;
|
|
686
|
+
tags: string[];
|
|
687
687
|
entityRef?: string | null | undefined;
|
|
688
688
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
689
689
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -825,10 +825,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
825
825
|
observed_outcome?: string | null | undefined;
|
|
826
826
|
}>>>;
|
|
827
827
|
}, "strip", z.ZodTypeAny, {
|
|
828
|
-
tags: string[];
|
|
829
|
-
content: string;
|
|
830
828
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
829
|
+
content: string;
|
|
831
830
|
confidence: number;
|
|
831
|
+
tags: string[];
|
|
832
832
|
entityRef?: string | null | undefined;
|
|
833
833
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
834
834
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -854,10 +854,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
854
854
|
observed_outcome?: string | null | undefined;
|
|
855
855
|
} | null | undefined;
|
|
856
856
|
}, {
|
|
857
|
-
tags: string[];
|
|
858
|
-
content: string;
|
|
859
857
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
858
|
+
content: string;
|
|
860
859
|
confidence: number;
|
|
860
|
+
tags: string[];
|
|
861
861
|
entityRef?: string | null | undefined;
|
|
862
862
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
863
863
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -883,10 +883,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
883
883
|
observed_outcome?: string | null | undefined;
|
|
884
884
|
} | null | undefined;
|
|
885
885
|
}>, {
|
|
886
|
-
tags: string[];
|
|
887
|
-
content: string;
|
|
888
886
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
887
|
+
content: string;
|
|
889
888
|
confidence: number;
|
|
889
|
+
tags: string[];
|
|
890
890
|
entityRef?: string | null | undefined;
|
|
891
891
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
892
892
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -912,10 +912,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
912
912
|
observed_outcome?: string | null | undefined;
|
|
913
913
|
} | null | undefined;
|
|
914
914
|
}, {
|
|
915
|
-
tags: string[];
|
|
916
|
-
content: string;
|
|
917
915
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
916
|
+
content: string;
|
|
918
917
|
confidence: number;
|
|
918
|
+
tags: string[];
|
|
919
919
|
entityRef?: string | null | undefined;
|
|
920
920
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
921
921
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1013,10 +1013,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1013
1013
|
}>, "many">>>;
|
|
1014
1014
|
}, "strip", z.ZodTypeAny, {
|
|
1015
1015
|
facts: {
|
|
1016
|
-
tags: string[];
|
|
1017
|
-
content: string;
|
|
1018
1016
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
1017
|
+
content: string;
|
|
1019
1018
|
confidence: number;
|
|
1019
|
+
tags: string[];
|
|
1020
1020
|
entityRef?: string | null | undefined;
|
|
1021
1021
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
1022
1022
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1068,10 +1068,10 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
1068
1068
|
identityReflection?: string | null | undefined;
|
|
1069
1069
|
}, {
|
|
1070
1070
|
facts: {
|
|
1071
|
-
tags: string[];
|
|
1072
|
-
content: string;
|
|
1073
1071
|
category: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
1072
|
+
content: string;
|
|
1074
1073
|
confidence: number;
|
|
1074
|
+
tags: string[];
|
|
1075
1075
|
entityRef?: string | null | undefined;
|
|
1076
1076
|
structuredAttributes?: Record<string, string> | null | undefined;
|
|
1077
1077
|
promptedByQuestion?: string | null | undefined;
|
|
@@ -1285,13 +1285,13 @@ declare const ContradictionVerificationSchema: z.ZodObject<{
|
|
|
1285
1285
|
reasoning: z.ZodString;
|
|
1286
1286
|
whichIsNewer: z.ZodEnum<["first", "second", "unclear"]>;
|
|
1287
1287
|
}, "strip", z.ZodTypeAny, {
|
|
1288
|
-
reasoning: string;
|
|
1289
1288
|
confidence: number;
|
|
1289
|
+
reasoning: string;
|
|
1290
1290
|
isContradiction: boolean;
|
|
1291
1291
|
whichIsNewer: "second" | "first" | "unclear";
|
|
1292
1292
|
}, {
|
|
1293
|
-
reasoning: string;
|
|
1294
1293
|
confidence: number;
|
|
1294
|
+
reasoning: string;
|
|
1295
1295
|
isContradiction: boolean;
|
|
1296
1296
|
whichIsNewer: "second" | "first" | "unclear";
|
|
1297
1297
|
}>;
|
|
@@ -1386,8 +1386,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
1386
1386
|
reason: z.ZodString;
|
|
1387
1387
|
appliedAt: z.ZodString;
|
|
1388
1388
|
}, "strip", z.ZodTypeAny, {
|
|
1389
|
-
reason: string;
|
|
1390
1389
|
confidence: number;
|
|
1390
|
+
reason: string;
|
|
1391
1391
|
parameter: string;
|
|
1392
1392
|
previousValue: number;
|
|
1393
1393
|
nextValue: number;
|
|
@@ -1395,8 +1395,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
1395
1395
|
evidenceCount: number;
|
|
1396
1396
|
appliedAt: string;
|
|
1397
1397
|
}, {
|
|
1398
|
-
reason: string;
|
|
1399
1398
|
confidence: number;
|
|
1399
|
+
reason: string;
|
|
1400
1400
|
parameter: string;
|
|
1401
1401
|
previousValue: number;
|
|
1402
1402
|
nextValue: number;
|
|
@@ -1420,8 +1420,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1420
1420
|
reason: z.ZodString;
|
|
1421
1421
|
appliedAt: z.ZodString;
|
|
1422
1422
|
}, "strip", z.ZodTypeAny, {
|
|
1423
|
-
reason: string;
|
|
1424
1423
|
confidence: number;
|
|
1424
|
+
reason: string;
|
|
1425
1425
|
parameter: string;
|
|
1426
1426
|
previousValue: number;
|
|
1427
1427
|
nextValue: number;
|
|
@@ -1429,8 +1429,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1429
1429
|
evidenceCount: number;
|
|
1430
1430
|
appliedAt: string;
|
|
1431
1431
|
}, {
|
|
1432
|
-
reason: string;
|
|
1433
1432
|
confidence: number;
|
|
1433
|
+
reason: string;
|
|
1434
1434
|
parameter: string;
|
|
1435
1435
|
previousValue: number;
|
|
1436
1436
|
nextValue: number;
|
|
@@ -1447,8 +1447,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1447
1447
|
maxDeltaPerCycle: number;
|
|
1448
1448
|
protectedParams: string[];
|
|
1449
1449
|
adjustments: {
|
|
1450
|
-
reason: string;
|
|
1451
1450
|
confidence: number;
|
|
1451
|
+
reason: string;
|
|
1452
1452
|
parameter: string;
|
|
1453
1453
|
previousValue: number;
|
|
1454
1454
|
nextValue: number;
|
|
@@ -1464,8 +1464,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
1464
1464
|
maxDeltaPerCycle: number;
|
|
1465
1465
|
protectedParams: string[];
|
|
1466
1466
|
adjustments: {
|
|
1467
|
-
reason: string;
|
|
1468
1467
|
confidence: number;
|
|
1468
|
+
reason: string;
|
|
1469
1469
|
parameter: string;
|
|
1470
1470
|
previousValue: number;
|
|
1471
1471
|
nextValue: number;
|
|
@@ -22,9 +22,9 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
22
22
|
date: string;
|
|
23
23
|
agent: string;
|
|
24
24
|
reason: string;
|
|
25
|
+
confidence?: number | undefined;
|
|
25
26
|
workflow?: string | undefined;
|
|
26
27
|
tags?: string[] | undefined;
|
|
27
|
-
confidence?: number | undefined;
|
|
28
28
|
severity?: "high" | "low" | "medium" | undefined;
|
|
29
29
|
outcome?: string | undefined;
|
|
30
30
|
refs?: string[] | undefined;
|
|
@@ -36,9 +36,9 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
36
36
|
date: string;
|
|
37
37
|
agent: string;
|
|
38
38
|
reason: string;
|
|
39
|
+
confidence?: number | undefined;
|
|
39
40
|
workflow?: string | undefined;
|
|
40
41
|
tags?: string[] | undefined;
|
|
41
|
-
confidence?: number | undefined;
|
|
42
42
|
severity?: "high" | "low" | "medium" | undefined;
|
|
43
43
|
outcome?: string | undefined;
|
|
44
44
|
refs?: string[] | undefined;
|
package/package.json
CHANGED
package/src/orchestrator.ts
CHANGED
|
@@ -7295,6 +7295,17 @@ export class Orchestrator {
|
|
|
7295
7295
|
};
|
|
7296
7296
|
}
|
|
7297
7297
|
|
|
7298
|
+
/**
|
|
7299
|
+
* Clock source for the shared post-retrieval assembly/enrichment budget. The
|
|
7300
|
+
* deadline is set from this value and every expiry check reads it back, so a
|
|
7301
|
+
* test can drive the budget deterministically instead of racing the few-ms
|
|
7302
|
+
* wall-clock window that made the "skips … after budget expires" tests flaky.
|
|
7303
|
+
* Production behavior is unchanged — it returns the wall clock.
|
|
7304
|
+
*/
|
|
7305
|
+
protected recallAssemblyClockMs(): number {
|
|
7306
|
+
return Date.now();
|
|
7307
|
+
}
|
|
7308
|
+
|
|
7298
7309
|
private async recallInternal(
|
|
7299
7310
|
prompt: string,
|
|
7300
7311
|
sessionKey?: string,
|
|
@@ -10261,7 +10272,7 @@ export class Orchestrator {
|
|
|
10261
10272
|
|
|
10262
10273
|
const enrichmentAssemblyDeadlineAtMs =
|
|
10263
10274
|
enrichmentSectionDeadlineMs > 0
|
|
10264
|
-
?
|
|
10275
|
+
? this.recallAssemblyClockMs() + enrichmentSectionDeadlineMs
|
|
10265
10276
|
: null;
|
|
10266
10277
|
|
|
10267
10278
|
const awaitEnrichmentSection = async <T>(
|
|
@@ -10303,7 +10314,7 @@ export class Orchestrator {
|
|
|
10303
10314
|
const timeoutMs =
|
|
10304
10315
|
enrichmentAssemblyDeadlineAtMs === null
|
|
10305
10316
|
? null
|
|
10306
|
-
: Math.max(0, enrichmentAssemblyDeadlineAtMs -
|
|
10317
|
+
: Math.max(0, enrichmentAssemblyDeadlineAtMs - this.recallAssemblyClockMs());
|
|
10307
10318
|
if (timeoutMs === 0) {
|
|
10308
10319
|
const settledOutcome = promise.getSettledOutcome();
|
|
10309
10320
|
if (settledOutcome) {
|
|
@@ -10349,7 +10360,7 @@ export class Orchestrator {
|
|
|
10349
10360
|
const remainingEnrichmentAssemblyMs = (): number | null =>
|
|
10350
10361
|
enrichmentAssemblyDeadlineAtMs === null
|
|
10351
10362
|
? null
|
|
10352
|
-
: Math.max(0, enrichmentAssemblyDeadlineAtMs -
|
|
10363
|
+
: Math.max(0, enrichmentAssemblyDeadlineAtMs - this.recallAssemblyClockMs());
|
|
10353
10364
|
|
|
10354
10365
|
const awaitAssemblyStep = async <T>(
|
|
10355
10366
|
name: string,
|