@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Orchestrator
3
- } from "./chunk-GZ6QAYSH.js";
3
+ } from "./chunk-4FJKKC2N.js";
4
4
  import "./chunk-4SKKVWLQ.js";
5
5
  import "./chunk-7HYPN2GC.js";
6
6
  import "./chunk-666A3MOW.js";
@@ -1,5 +1,5 @@
1
1
  import { IncomingMessage } from 'node:http';
2
- import { E as EngramAccessService } from './access-service-DsS-TatL.js';
2
+ import { E as EngramAccessService } from './access-service-BCuaiNHa.js';
3
3
  import { ResolvedIdentity } from './adapters/types.js';
4
4
  import { AdapterRegistry } from './adapters/registry.js';
5
5
  import './storage.js';
@@ -22,7 +22,7 @@ import './user-model.js';
22
22
  import './recall-audit-anomaly.js';
23
23
  import './recall-audit.js';
24
24
  import './explicit-capture.js';
25
- import './orchestrator-DZqPVoMI.js';
25
+ import './orchestrator-DyP9QYsh.js';
26
26
  import './briefing.js';
27
27
  import './buffer.js';
28
28
  import './transcript.js';
@@ -1,5 +1,5 @@
1
1
  import { Readable, Writable } from 'node:stream';
2
- import { E as EngramAccessService } from './access-service-DsS-TatL.js';
2
+ import { E as EngramAccessService } from './access-service-BCuaiNHa.js';
3
3
  import './storage.js';
4
4
  import './page-versioning.js';
5
5
  import './consolidation-operator.js';
@@ -20,7 +20,7 @@ import './user-model.js';
20
20
  import './recall-audit-anomaly.js';
21
21
  import './recall-audit.js';
22
22
  import './explicit-capture.js';
23
- import './orchestrator-DZqPVoMI.js';
23
+ import './orchestrator-DyP9QYsh.js';
24
24
  import './briefing.js';
25
25
  import './buffer.js';
26
26
  import './transcript.js';
@@ -104,9 +104,9 @@ declare const recallRequestSchema: z.ZodObject<{
104
104
  includeLowConfidence: z.ZodOptional<z.ZodBoolean>;
105
105
  }, "strip", z.ZodTypeAny, {
106
106
  query: string;
107
+ namespace?: string | undefined;
107
108
  sessionKey?: string | undefined;
108
109
  tags?: string[] | undefined;
109
- namespace?: string | undefined;
110
110
  topK?: number | undefined;
111
111
  mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
112
112
  cwd?: string | undefined;
@@ -125,9 +125,9 @@ declare const recallRequestSchema: z.ZodObject<{
125
125
  tagMatch?: "all" | "any" | undefined;
126
126
  }, {
127
127
  query: string;
128
+ namespace?: string | undefined;
128
129
  sessionKey?: string | undefined;
129
130
  tags?: string[] | undefined;
130
- namespace?: string | undefined;
131
131
  topK?: number | undefined;
132
132
  mode?: "auto" | "no_recall" | "minimal" | "full" | "graph_mode" | undefined;
133
133
  cwd?: string | undefined;
@@ -149,11 +149,11 @@ declare const recallExplainRequestSchema: z.ZodObject<{
149
149
  sessionKey: z.ZodOptional<z.ZodString>;
150
150
  namespace: z.ZodOptional<z.ZodString>;
151
151
  }, "strip", z.ZodTypeAny, {
152
- sessionKey?: string | undefined;
153
152
  namespace?: string | undefined;
154
- }, {
155
153
  sessionKey?: string | undefined;
154
+ }, {
156
155
  namespace?: string | undefined;
156
+ sessionKey?: string | undefined;
157
157
  }>;
158
158
  /**
159
159
  * Standalone "set coding context" request. Used by the HTTP endpoint
@@ -365,30 +365,30 @@ declare const memoryStoreRequestSchema: z.ZodObject<{
365
365
  projectTag: z.ZodOptional<z.ZodString>;
366
366
  }, "strip", z.ZodTypeAny, {
367
367
  content: string;
368
+ namespace?: string | undefined;
369
+ category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
370
+ confidence?: number | undefined;
371
+ ttl?: string | undefined;
368
372
  schemaVersion?: number | undefined;
369
373
  sessionKey?: string | undefined;
370
374
  tags?: string[] | undefined;
371
375
  dryRun?: boolean | undefined;
372
- namespace?: string | undefined;
373
- category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
374
- confidence?: number | undefined;
375
376
  entityRef?: string | undefined;
376
- ttl?: string | undefined;
377
377
  sourceReason?: string | undefined;
378
378
  cwd?: string | undefined;
379
379
  idempotencyKey?: string | undefined;
380
380
  projectTag?: string | undefined;
381
381
  }, {
382
382
  content: string;
383
+ namespace?: string | undefined;
384
+ category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
385
+ confidence?: number | undefined;
386
+ ttl?: string | undefined;
383
387
  schemaVersion?: number | undefined;
384
388
  sessionKey?: string | undefined;
385
389
  tags?: string[] | undefined;
386
390
  dryRun?: boolean | undefined;
387
- namespace?: string | undefined;
388
- category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
389
- confidence?: number | undefined;
390
391
  entityRef?: string | undefined;
391
- ttl?: string | undefined;
392
392
  sourceReason?: string | undefined;
393
393
  cwd?: string | undefined;
394
394
  idempotencyKey?: string | undefined;
@@ -411,30 +411,30 @@ declare const suggestionSubmitRequestSchema: z.ZodObject<{
411
411
  projectTag: z.ZodOptional<z.ZodString>;
412
412
  }, "strip", z.ZodTypeAny, {
413
413
  content: string;
414
+ namespace?: string | undefined;
415
+ category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
416
+ confidence?: number | undefined;
417
+ ttl?: string | undefined;
414
418
  schemaVersion?: number | undefined;
415
419
  sessionKey?: string | undefined;
416
420
  tags?: string[] | undefined;
417
421
  dryRun?: boolean | undefined;
418
- namespace?: string | undefined;
419
- category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
420
- confidence?: number | undefined;
421
422
  entityRef?: string | undefined;
422
- ttl?: string | undefined;
423
423
  sourceReason?: string | undefined;
424
424
  cwd?: string | undefined;
425
425
  idempotencyKey?: string | undefined;
426
426
  projectTag?: string | undefined;
427
427
  }, {
428
428
  content: string;
429
+ namespace?: string | undefined;
430
+ category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
431
+ confidence?: number | undefined;
432
+ ttl?: string | undefined;
429
433
  schemaVersion?: number | undefined;
430
434
  sessionKey?: string | undefined;
431
435
  tags?: string[] | undefined;
432
436
  dryRun?: boolean | undefined;
433
- namespace?: string | undefined;
434
- category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace" | undefined;
435
- confidence?: number | undefined;
436
437
  entityRef?: string | undefined;
437
- ttl?: string | undefined;
438
438
  sourceReason?: string | undefined;
439
439
  cwd?: string | undefined;
440
440
  idempotencyKey?: string | undefined;
@@ -468,18 +468,18 @@ declare const trustZonePromoteRequestSchema: z.ZodObject<{
468
468
  recordId: string;
469
469
  targetZone: "working" | "trusted";
470
470
  promotionReason: string;
471
+ namespace?: string | undefined;
471
472
  recordedAt?: string | undefined;
472
473
  summary?: string | undefined;
473
474
  dryRun?: boolean | undefined;
474
- namespace?: string | undefined;
475
475
  }, {
476
476
  recordId: string;
477
477
  targetZone: "working" | "trusted";
478
478
  promotionReason: string;
479
+ namespace?: string | undefined;
479
480
  recordedAt?: string | undefined;
480
481
  summary?: string | undefined;
481
482
  dryRun?: boolean | undefined;
482
- namespace?: string | undefined;
483
483
  }>;
484
484
  declare const trustZoneDemoSeedRequestSchema: z.ZodObject<{
485
485
  scenario: z.ZodOptional<z.ZodString>;
@@ -487,14 +487,14 @@ declare const trustZoneDemoSeedRequestSchema: z.ZodObject<{
487
487
  dryRun: z.ZodOptional<z.ZodBoolean>;
488
488
  namespace: z.ZodOptional<z.ZodString>;
489
489
  }, "strip", z.ZodTypeAny, {
490
+ namespace?: string | undefined;
490
491
  recordedAt?: string | undefined;
491
492
  dryRun?: boolean | undefined;
492
- namespace?: string | undefined;
493
493
  scenario?: string | undefined;
494
494
  }, {
495
+ namespace?: string | undefined;
495
496
  recordedAt?: string | undefined;
496
497
  dryRun?: boolean | undefined;
497
- namespace?: string | undefined;
498
498
  scenario?: string | undefined;
499
499
  }>;
500
500
  declare const lcmSearchRequestSchema: z.ZodObject<{
@@ -505,15 +505,15 @@ declare const lcmSearchRequestSchema: z.ZodObject<{
505
505
  limit: z.ZodOptional<z.ZodNumber>;
506
506
  }, "strip", z.ZodTypeAny, {
507
507
  query: string;
508
- sessionKey?: string | undefined;
509
508
  namespace?: string | undefined;
510
509
  limit?: number | undefined;
510
+ sessionKey?: string | undefined;
511
511
  sessionPrefix?: string | undefined;
512
512
  }, {
513
513
  query: string;
514
- sessionKey?: string | undefined;
515
514
  namespace?: string | undefined;
516
515
  limit?: number | undefined;
516
+ sessionKey?: string | undefined;
517
517
  sessionPrefix?: string | undefined;
518
518
  }>;
519
519
  declare const lcmCompactionFlushRequestSchema: z.ZodObject<{
@@ -548,14 +548,14 @@ declare const daySummaryRequestSchema: z.ZodObject<{
548
548
  namespace: z.ZodOptional<z.ZodString>;
549
549
  timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
550
550
  }, "strip", z.ZodTypeAny, {
551
+ namespace?: string | undefined;
551
552
  sessionKey?: string | undefined;
552
553
  timeZone?: string | undefined;
553
- namespace?: string | undefined;
554
554
  memories?: string | undefined;
555
555
  }, {
556
+ namespace?: string | undefined;
556
557
  sessionKey?: string | undefined;
557
558
  timeZone?: string | undefined;
558
- namespace?: string | undefined;
559
559
  memories?: string | undefined;
560
560
  }>;
561
561
  declare const capsuleExportRequestSchema: z.ZodObject<{
@@ -603,11 +603,11 @@ declare const capsuleListRequestSchema: z.ZodObject<{
603
603
  namespace: z.ZodOptional<z.ZodString>;
604
604
  sessionKey: z.ZodOptional<z.ZodString>;
605
605
  }, "strip", z.ZodTypeAny, {
606
- sessionKey?: string | undefined;
607
606
  namespace?: string | undefined;
608
- }, {
609
607
  sessionKey?: string | undefined;
608
+ }, {
610
609
  namespace?: string | undefined;
610
+ sessionKey?: string | undefined;
611
611
  }>;
612
612
  declare const offlineSyncSnapshotRequestSchema: z.ZodObject<{
613
613
  namespace: z.ZodOptional<z.ZodString>;
@@ -748,11 +748,11 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
748
748
  safety: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodEnum<["safe", "requires-review", "blocked"]>>>, NonNullable<"blocked" | "safe" | "requires-review"> | undefined, "blocked" | "safe" | "requires-review" | null | undefined>;
749
749
  safetyReasons: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>, string[] | undefined, string[] | null | undefined>;
750
750
  }, "strict", z.ZodTypeAny, {
751
+ confidence?: number | undefined;
751
752
  source?: string | undefined;
752
753
  stale?: boolean | undefined;
753
754
  created?: string | undefined;
754
755
  updated?: string | undefined;
755
- confidence?: number | undefined;
756
756
  scope?: string | undefined;
757
757
  retrievalReason?: string | undefined;
758
758
  safety?: NonNullable<"blocked" | "safe" | "requires-review"> | undefined;
@@ -762,11 +762,11 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
762
762
  safetyReasons?: string[] | undefined;
763
763
  userContextScopes?: string[] | undefined;
764
764
  }, {
765
+ confidence?: number | null | undefined;
765
766
  source?: string | null | undefined;
766
767
  stale?: boolean | null | undefined;
767
768
  created?: string | null | undefined;
768
769
  updated?: string | null | undefined;
769
- confidence?: number | null | undefined;
770
770
  scope?: string | null | undefined;
771
771
  retrievalReason?: string | null | undefined;
772
772
  safety?: "blocked" | "safe" | "requires-review" | null | undefined;
@@ -776,11 +776,11 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
776
776
  safetyReasons?: string[] | null | undefined;
777
777
  userContextScopes?: string[] | null | undefined;
778
778
  }>, "many">>>, {
779
+ confidence?: number | undefined;
779
780
  source?: string | undefined;
780
781
  stale?: boolean | undefined;
781
782
  created?: string | undefined;
782
783
  updated?: string | undefined;
783
- confidence?: number | undefined;
784
784
  scope?: string | undefined;
785
785
  retrievalReason?: string | undefined;
786
786
  safety?: NonNullable<"blocked" | "safe" | "requires-review"> | undefined;
@@ -790,11 +790,11 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
790
790
  safetyReasons?: string[] | undefined;
791
791
  userContextScopes?: string[] | undefined;
792
792
  }[] | undefined, {
793
+ confidence?: number | null | undefined;
793
794
  source?: string | null | undefined;
794
795
  stale?: boolean | null | undefined;
795
796
  created?: string | null | undefined;
796
797
  updated?: string | null | undefined;
797
- confidence?: number | null | undefined;
798
798
  scope?: string | null | undefined;
799
799
  retrievalReason?: string | null | undefined;
800
800
  safety?: "blocked" | "safe" | "requires-review" | null | undefined;
@@ -816,11 +816,11 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
816
816
  matched?: boolean | undefined;
817
817
  }[] | undefined;
818
818
  retrievedMemories?: {
819
+ confidence?: number | undefined;
819
820
  source?: string | undefined;
820
821
  stale?: boolean | undefined;
821
822
  created?: string | undefined;
822
823
  updated?: string | undefined;
823
- confidence?: number | undefined;
824
824
  scope?: string | undefined;
825
825
  retrievalReason?: string | undefined;
826
826
  safety?: NonNullable<"blocked" | "safe" | "requires-review"> | undefined;
@@ -842,11 +842,11 @@ declare const actionConfidenceRequestSchema: z.ZodObject<{
842
842
  matched?: boolean | null | undefined;
843
843
  }[] | null | undefined;
844
844
  retrievedMemories?: {
845
+ confidence?: number | null | undefined;
845
846
  source?: string | null | undefined;
846
847
  stale?: boolean | null | undefined;
847
848
  created?: string | null | undefined;
848
849
  updated?: string | null | undefined;
849
- confidence?: number | null | undefined;
850
850
  scope?: string | null | undefined;
851
851
  retrievalReason?: string | null | undefined;
852
852
  safety?: "blocked" | "safe" | "requires-review" | null | undefined;
@@ -6,7 +6,7 @@ import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
6
6
  import { ExplicitCaptureInput } from './explicit-capture.js';
7
7
  import { BudgetDecision } from './cross-namespace-budget.js';
8
8
  import { readMemoryGovernanceRunArtifact } from './maintenance/memory-governance.js';
9
- import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult, W as WearablesService } from './orchestrator-DZqPVoMI.js';
9
+ import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult, W as WearablesService } from './orchestrator-DyP9QYsh.js';
10
10
  import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
11
11
  import { LastRecallSnapshot } from './recall-state.js';
12
12
  import { GraphSnapshotRequest, GraphSnapshotResponse } from './graph-snapshot.js';
@@ -1,13 +1,13 @@
1
1
  import './storage.js';
2
2
  import './types-B1VHaf2w.js';
3
- export { C as CodingScopedWriteInput, h as ENGRAM_ACCESS_WRITE_SCHEMA_VERSION, i as EngramAccessActionConfidenceRequest, j as EngramAccessActionConfidenceResponse, k as EngramAccessBriefingRequest, l as EngramAccessBriefingResponse, m as EngramAccessCapsuleListResponse, n as EngramAccessDaySummaryRequest, o as EngramAccessEntityListResponse, p as EngramAccessEntityResponse, q as EngramAccessEntitySummary, r as EngramAccessHealthResponse, b as EngramAccessInputError, s as EngramAccessLcmCompactionFlushRequest, t as EngramAccessLcmCompactionFlushResponse, u as EngramAccessLcmCompactionRecordRequest, v as EngramAccessLcmCompactionRecordResponse, w as EngramAccessLcmSearchRequest, x as EngramAccessLcmSearchResponse, y as EngramAccessLcmStatusResponse, z as EngramAccessMaintenanceResponse, A as EngramAccessMemoryBrowseRequest, B as EngramAccessMemoryBrowseResponse, D as EngramAccessMemoryRecord, F as EngramAccessMemoryResponse, G as EngramAccessMemoryStoreRequest, H as EngramAccessMemorySummary, I as EngramAccessObserveMessage, J as EngramAccessObserveRequest, K as EngramAccessObserveResponse, L as EngramAccessOfflineSyncApplyFileContentRequest, M as EngramAccessOfflineSyncApplyFileContentResponse, N as EngramAccessOfflineSyncApplyRequest, O as EngramAccessOfflineSyncApplyResponse, Q as EngramAccessOfflineSyncFileContentRequest, R as EngramAccessOfflineSyncFileContentResponse, S as EngramAccessOfflineSyncFilesRequest, T as EngramAccessOfflineSyncFilesResponse, U as EngramAccessOfflineSyncSnapshotRequest, V as EngramAccessOfflineSyncSnapshotResponse, W as EngramAccessOfflineSyncSnapshotStreamResponse, X as EngramAccessQmdCollectionState, Y as EngramAccessQmdHealthResponse, Z as EngramAccessQualityResponse, _ as EngramAccessRecallExplainRequest, $ as EngramAccessRecallExplainResponse, a0 as EngramAccessRecallRequest, a as EngramAccessRecallResponse, a1 as EngramAccessReviewDispositionRequest, a2 as EngramAccessReviewDispositionResponse, a3 as EngramAccessReviewQueueResponse, a4 as EngramAccessScopeDebug, E as EngramAccessService, a5 as EngramAccessSetCodingContextRequest, a6 as EngramAccessSuggestionSubmitRequest, a7 as EngramAccessTimelineResponse, a8 as EngramAccessTrustZoneBrowseRequest, a9 as EngramAccessTrustZoneBrowseResponse, aa as EngramAccessTrustZoneDemoSeedRequest, ab as EngramAccessTrustZoneDemoSeedResponse, ac as EngramAccessTrustZonePromoteRequest, ad as EngramAccessTrustZonePromoteResponse, ae as EngramAccessTrustZoneRecordSummary, af as EngramAccessTrustZoneStatusResponse, ag as EngramAccessWriteEnvelope, ah as EngramAccessWriteResponse, ai as MemoryScopePlan, aj as shapeMemorySummary } from './access-service-DsS-TatL.js';
3
+ export { C as CodingScopedWriteInput, h as ENGRAM_ACCESS_WRITE_SCHEMA_VERSION, i as EngramAccessActionConfidenceRequest, j as EngramAccessActionConfidenceResponse, k as EngramAccessBriefingRequest, l as EngramAccessBriefingResponse, m as EngramAccessCapsuleListResponse, n as EngramAccessDaySummaryRequest, o as EngramAccessEntityListResponse, p as EngramAccessEntityResponse, q as EngramAccessEntitySummary, r as EngramAccessHealthResponse, b as EngramAccessInputError, s as EngramAccessLcmCompactionFlushRequest, t as EngramAccessLcmCompactionFlushResponse, u as EngramAccessLcmCompactionRecordRequest, v as EngramAccessLcmCompactionRecordResponse, w as EngramAccessLcmSearchRequest, x as EngramAccessLcmSearchResponse, y as EngramAccessLcmStatusResponse, z as EngramAccessMaintenanceResponse, A as EngramAccessMemoryBrowseRequest, B as EngramAccessMemoryBrowseResponse, D as EngramAccessMemoryRecord, F as EngramAccessMemoryResponse, G as EngramAccessMemoryStoreRequest, H as EngramAccessMemorySummary, I as EngramAccessObserveMessage, J as EngramAccessObserveRequest, K as EngramAccessObserveResponse, L as EngramAccessOfflineSyncApplyFileContentRequest, M as EngramAccessOfflineSyncApplyFileContentResponse, N as EngramAccessOfflineSyncApplyRequest, O as EngramAccessOfflineSyncApplyResponse, Q as EngramAccessOfflineSyncFileContentRequest, R as EngramAccessOfflineSyncFileContentResponse, S as EngramAccessOfflineSyncFilesRequest, T as EngramAccessOfflineSyncFilesResponse, U as EngramAccessOfflineSyncSnapshotRequest, V as EngramAccessOfflineSyncSnapshotResponse, W as EngramAccessOfflineSyncSnapshotStreamResponse, X as EngramAccessQmdCollectionState, Y as EngramAccessQmdHealthResponse, Z as EngramAccessQualityResponse, _ as EngramAccessRecallExplainRequest, $ as EngramAccessRecallExplainResponse, a0 as EngramAccessRecallRequest, a as EngramAccessRecallResponse, a1 as EngramAccessReviewDispositionRequest, a2 as EngramAccessReviewDispositionResponse, a3 as EngramAccessReviewQueueResponse, a4 as EngramAccessScopeDebug, E as EngramAccessService, a5 as EngramAccessSetCodingContextRequest, a6 as EngramAccessSuggestionSubmitRequest, a7 as EngramAccessTimelineResponse, a8 as EngramAccessTrustZoneBrowseRequest, a9 as EngramAccessTrustZoneBrowseResponse, aa as EngramAccessTrustZoneDemoSeedRequest, ab as EngramAccessTrustZoneDemoSeedResponse, ac as EngramAccessTrustZonePromoteRequest, ad as EngramAccessTrustZonePromoteResponse, ae as EngramAccessTrustZoneRecordSummary, af as EngramAccessTrustZoneStatusResponse, ag as EngramAccessWriteEnvelope, ah as EngramAccessWriteResponse, ai as MemoryScopePlan, aj as shapeMemorySummary } from './access-service-BCuaiNHa.js';
4
4
  import './recall-explain-renderer.js';
5
5
  import './types-D96bCB3C.js';
6
6
  import './recall-audit-anomaly.js';
7
7
  import './explicit-capture.js';
8
8
  import './cross-namespace-budget.js';
9
9
  import './maintenance/memory-governance.js';
10
- import './orchestrator-DZqPVoMI.js';
10
+ import './orchestrator-DyP9QYsh.js';
11
11
  import './live-connectors-runner.js';
12
12
  import './recall-state.js';
13
13
  import './graph-snapshot.js';
@@ -1,5 +1,5 @@
1
1
  import { P as PluginConfig } from './types-D96bCB3C.js';
2
- import { O as Orchestrator } from './orchestrator-DZqPVoMI.js';
2
+ import { O as Orchestrator } from './orchestrator-DyP9QYsh.js';
3
3
  import './types-ByK7T3L6.js';
4
4
  import './index-DJ9QWMw-.js';
5
5
  import './briefing.js';
@@ -8212,6 +8212,16 @@ ${r.snippet.trim()}
8212
8212
  finalChars: usedChars
8213
8213
  };
8214
8214
  }
8215
+ /**
8216
+ * Clock source for the shared post-retrieval assembly/enrichment budget. The
8217
+ * deadline is set from this value and every expiry check reads it back, so a
8218
+ * test can drive the budget deterministically instead of racing the few-ms
8219
+ * wall-clock window that made the "skips … after budget expires" tests flaky.
8220
+ * Production behavior is unchanged — it returns the wall clock.
8221
+ */
8222
+ recallAssemblyClockMs() {
8223
+ return Date.now();
8224
+ }
8215
8225
  async recallInternal(prompt, sessionKey, options = {}, caps = resolveCapabilities(this.config)) {
8216
8226
  const recallStart = Date.now();
8217
8227
  const backendDegradations = [];
@@ -10460,7 +10470,7 @@ ${formatted}`;
10460
10470
  `recall phase-1: core work done at +${Date.now() - recallStart}ms (phase took ${Date.now() - phase1Start}ms); continuing with incremental enrichment assembly`
10461
10471
  );
10462
10472
  throwIfRecallAborted(options.abortSignal);
10463
- const enrichmentAssemblyDeadlineAtMs = enrichmentSectionDeadlineMs > 0 ? Date.now() + enrichmentSectionDeadlineMs : null;
10473
+ const enrichmentAssemblyDeadlineAtMs = enrichmentSectionDeadlineMs > 0 ? this.recallAssemblyClockMs() + enrichmentSectionDeadlineMs : null;
10464
10474
  const awaitEnrichmentSection = async (name, promise) => {
10465
10475
  const finalizeEnrichmentOutcome = (outcome2) => {
10466
10476
  if (outcome2.status === "resolved") {
@@ -10488,7 +10498,7 @@ ${formatted}`;
10488
10498
  return null;
10489
10499
  }
10490
10500
  let timeoutHandle;
10491
- const timeoutMs = enrichmentAssemblyDeadlineAtMs === null ? null : Math.max(0, enrichmentAssemblyDeadlineAtMs - Date.now());
10501
+ const timeoutMs = enrichmentAssemblyDeadlineAtMs === null ? null : Math.max(0, enrichmentAssemblyDeadlineAtMs - this.recallAssemblyClockMs());
10492
10502
  if (timeoutMs === 0) {
10493
10503
  const settledOutcome = promise.getSettledOutcome();
10494
10504
  if (settledOutcome) {
@@ -10522,7 +10532,7 @@ ${formatted}`;
10522
10532
  }
10523
10533
  return finalizeEnrichmentOutcome(outcome);
10524
10534
  };
10525
- const remainingEnrichmentAssemblyMs = () => enrichmentAssemblyDeadlineAtMs === null ? null : Math.max(0, enrichmentAssemblyDeadlineAtMs - Date.now());
10535
+ const remainingEnrichmentAssemblyMs = () => enrichmentAssemblyDeadlineAtMs === null ? null : Math.max(0, enrichmentAssemblyDeadlineAtMs - this.recallAssemblyClockMs());
10526
10536
  const awaitAssemblyStep = async (name, task, fallback) => {
10527
10537
  if (options.abortSignal?.aborted) {
10528
10538
  log.debug(
@@ -17377,4 +17387,4 @@ export {
17377
17387
  resolvePersistedMemoryRelativePath,
17378
17388
  Orchestrator
17379
17389
  };
17380
- //# sourceMappingURL=chunk-GZ6QAYSH.js.map
17390
+ //# sourceMappingURL=chunk-4FJKKC2N.js.map