@remnic/core 10.0.187 → 10.0.188

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.
Files changed (170) hide show
  1. package/dist/access-admin-ops-surface.js +38 -38
  2. package/dist/access-cli.js +38 -38
  3. package/dist/access-extraction-force-flush-preempt.js +38 -38
  4. package/dist/access-extraction-force-flush.js +38 -38
  5. package/dist/access-http-briefing.js +38 -38
  6. package/dist/access-http-query.js +38 -38
  7. package/dist/access-http.js +38 -38
  8. package/dist/access-identity-continuity-surface.js +38 -38
  9. package/dist/access-lcm-surface.js +38 -38
  10. package/dist/access-mcp.js +38 -38
  11. package/dist/access-observe-write-surface.js +38 -38
  12. package/dist/access-operations-batch.js +38 -38
  13. package/dist/access-operations.js +38 -38
  14. package/dist/access-recall-concurrency.js +38 -38
  15. package/dist/access-recall-response.js +38 -38
  16. package/dist/access-recall-surface.js +38 -38
  17. package/dist/access-service.js +38 -38
  18. package/dist/active-recall.js +1 -1
  19. package/dist/briefing.js +2 -2
  20. package/dist/buffer-add-turns-bounded.js +2 -2
  21. package/dist/buffer-admission-idempotency.d.ts.map +1 -1
  22. package/dist/buffer-admission-idempotency.js +1 -1
  23. package/dist/buffer-persistence.d.ts +14 -0
  24. package/dist/buffer-persistence.d.ts.map +1 -1
  25. package/dist/buffer-persistence.js +3 -1
  26. package/dist/buffer.js +4 -4
  27. package/dist/calibration.js +3 -3
  28. package/dist/causal-consolidation.js +3 -3
  29. package/dist/{chunk-2ZS7CB5H.js → chunk-2I3ETW3G.js} +2 -2
  30. package/dist/{chunk-PSUSA5SM.js → chunk-2VNMSEZR.js} +2 -2
  31. package/dist/{chunk-LANV6I63.js → chunk-56BNHKZM.js} +7 -7
  32. package/dist/{chunk-3FEQNKMB.js → chunk-5WDUY2ZZ.js} +2 -2
  33. package/dist/{chunk-BANMPRSC.js → chunk-65DWWJKI.js} +2 -2
  34. package/dist/{chunk-O5ZCDK32.js → chunk-6AMFGXG2.js} +39 -11
  35. package/dist/chunk-6AMFGXG2.js.map +1 -0
  36. package/dist/{chunk-VZBKCRU7.js → chunk-6MDHK6NO.js} +2 -2
  37. package/dist/{chunk-2RAVHJCD.js → chunk-6OHCNTKU.js} +2 -2
  38. package/dist/{chunk-K5RGHUX7.js → chunk-A32EBVCZ.js} +2 -2
  39. package/dist/{chunk-KVM3BS5K.js → chunk-ATPY63F5.js} +2 -2
  40. package/dist/chunk-B256MMS7.js +205 -0
  41. package/dist/chunk-B256MMS7.js.map +1 -0
  42. package/dist/{chunk-MOWLANEJ.js → chunk-C6Y2YHJL.js} +2 -2
  43. package/dist/{chunk-IMT7NTFV.js → chunk-CIAQK2OU.js} +6 -1
  44. package/dist/{chunk-IMT7NTFV.js.map → chunk-CIAQK2OU.js.map} +1 -1
  45. package/dist/{chunk-AJVCM2E3.js → chunk-CYX7JI4O.js} +2 -2
  46. package/dist/{chunk-76KL37ON.js → chunk-D3FP4JQI.js} +2 -2
  47. package/dist/{chunk-TQXKUQFX.js → chunk-FZU62GIV.js} +7 -6
  48. package/dist/chunk-FZU62GIV.js.map +1 -0
  49. package/dist/{chunk-YDGQYG4L.js → chunk-H442UKDV.js} +8 -8
  50. package/dist/{chunk-FXDQO7VX.js → chunk-HL53XYHC.js} +3 -3
  51. package/dist/{chunk-4VFEN3WT.js → chunk-IMSLPQJB.js} +2 -2
  52. package/dist/{chunk-FKLSIQBF.js → chunk-K3JGILZC.js} +3 -3
  53. package/dist/{chunk-JRHOL6B5.js → chunk-K6BS5RB4.js} +2 -2
  54. package/dist/{chunk-HHCLV572.js → chunk-KVTUUU7H.js} +2 -2
  55. package/dist/{chunk-TRFSTCQK.js → chunk-LL6WEMTC.js} +34 -6
  56. package/dist/chunk-LL6WEMTC.js.map +1 -0
  57. package/dist/{chunk-L2DYRQQH.js → chunk-MTKSH7HY.js} +30 -30
  58. package/dist/{chunk-2WITFW6F.js → chunk-NKHRIDYP.js} +2 -2
  59. package/dist/{chunk-KYZMCH4I.js → chunk-NN3LMWKA.js} +12 -4
  60. package/dist/chunk-NN3LMWKA.js.map +1 -0
  61. package/dist/{chunk-CTWWMEGR.js → chunk-PCGBESAN.js} +2 -2
  62. package/dist/{chunk-MDXZIU5X.js → chunk-QGT5KNQT.js} +2 -2
  63. package/dist/{chunk-YJZDRM33.js → chunk-QXHWOUS6.js} +3 -3
  64. package/dist/{chunk-OVJAQWHO.js → chunk-RPOG6HLI.js} +2 -2
  65. package/dist/{chunk-2QQCCUXF.js → chunk-RVODERA5.js} +2 -2
  66. package/dist/{chunk-P5FF44G3.js → chunk-T3XOP7TA.js} +4 -4
  67. package/dist/{chunk-FQE5QN5Q.js → chunk-TAPF7T26.js} +2 -2
  68. package/dist/{chunk-7UTCETGK.js → chunk-TQODBIMW.js} +2 -2
  69. package/dist/{chunk-KZJEKKK6.js → chunk-VQQZJ6KJ.js} +3 -3
  70. package/dist/{chunk-I233SAGS.js → chunk-X3ERYOLO.js} +2 -2
  71. package/dist/{chunk-UCCXPMTP.js → chunk-XQF2KLV5.js} +2 -2
  72. package/dist/{chunk-LPYGM6RE.js → chunk-XWPYK5T4.js} +2 -2
  73. package/dist/{chunk-7EPEZYX3.js → chunk-YVXR7CPS.js} +2 -2
  74. package/dist/cli.js +38 -38
  75. package/dist/coding/export-okf-codegraph.js +1 -1
  76. package/dist/compounding/engine.js +3 -3
  77. package/dist/config.js +1 -1
  78. package/dist/connectors/codex-materialize-runner.js +2 -2
  79. package/dist/connectors/index.js +2 -2
  80. package/dist/convergence-refresh.js +4 -4
  81. package/dist/corpus-watermark.js +4 -4
  82. package/dist/entity-retrieval.js +2 -2
  83. package/dist/explicit-capture.js +38 -38
  84. package/dist/extraction.js +6 -6
  85. package/dist/harmonic-retrieval.js +2 -2
  86. package/dist/index.js +38 -38
  87. package/dist/local-llm-helpers.d.ts.map +1 -1
  88. package/dist/local-llm-helpers.js +2 -2
  89. package/dist/local-llm-transport.d.ts +82 -9
  90. package/dist/local-llm-transport.d.ts.map +1 -1
  91. package/dist/local-llm-transport.js +11 -3
  92. package/dist/local-llm.d.ts.map +1 -1
  93. package/dist/local-llm.js +3 -3
  94. package/dist/location/index.js +3 -3
  95. package/dist/maintenance/memory-governance.js +2 -2
  96. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +2 -2
  97. package/dist/maintenance/rebuild-memory-projection-runner.js +4 -4
  98. package/dist/maintenance/rebuild-memory-projection.js +3 -3
  99. package/dist/namespaces/migrate.js +3 -3
  100. package/dist/namespaces/storage.js +2 -2
  101. package/dist/operator-doctor-corpus.js +5 -5
  102. package/dist/operator-toolkit.js +8 -8
  103. package/dist/orchestration/backlog-scheduler.js +39 -39
  104. package/dist/orchestration/buffer-drain-runner.js +39 -39
  105. package/dist/orchestration/maintenance.js +13 -13
  106. package/dist/orchestrator.js +38 -38
  107. package/dist/recall-navigation.js +38 -38
  108. package/dist/resume-bundles.js +1 -1
  109. package/dist/semantic-consolidation.js +3 -3
  110. package/dist/semantic-rule-promotion.js +2 -2
  111. package/dist/semantic-rule-verifier.js +2 -2
  112. package/dist/source-agent-qualifier.js +2 -2
  113. package/dist/standup/build.js +2 -2
  114. package/dist/storage/entity-canonical-id-migration-runner.d.ts.map +1 -1
  115. package/dist/storage.js +1 -1
  116. package/dist/summarizer.js +4 -4
  117. package/dist/support-passport/index.js +4 -4
  118. package/dist/transfer/export-okf.js +2 -2
  119. package/dist/verified-recall.js +2 -2
  120. package/dist/who-knows-cli.js +3 -3
  121. package/dist/who-knows.js +2 -2
  122. package/package.json +2 -2
  123. package/src/buffer-admission-idempotency.test.ts +115 -0
  124. package/src/buffer-admission-idempotency.ts +67 -11
  125. package/src/buffer-persistence.ts +46 -5
  126. package/src/local-llm-headers-timeout.test.ts +246 -16
  127. package/src/local-llm-helpers.ts +14 -4
  128. package/src/local-llm-transport.ts +253 -16
  129. package/src/local-llm.ts +7 -8
  130. package/src/storage/entity-canonical-id-migration-runner.test.ts +90 -0
  131. package/src/storage/entity-canonical-id-migration-runner.ts +10 -0
  132. package/dist/chunk-5YQXWVCP.js +0 -74
  133. package/dist/chunk-5YQXWVCP.js.map +0 -1
  134. package/dist/chunk-KYZMCH4I.js.map +0 -1
  135. package/dist/chunk-O5ZCDK32.js.map +0 -1
  136. package/dist/chunk-TQXKUQFX.js.map +0 -1
  137. package/dist/chunk-TRFSTCQK.js.map +0 -1
  138. /package/dist/{chunk-2ZS7CB5H.js.map → chunk-2I3ETW3G.js.map} +0 -0
  139. /package/dist/{chunk-PSUSA5SM.js.map → chunk-2VNMSEZR.js.map} +0 -0
  140. /package/dist/{chunk-LANV6I63.js.map → chunk-56BNHKZM.js.map} +0 -0
  141. /package/dist/{chunk-3FEQNKMB.js.map → chunk-5WDUY2ZZ.js.map} +0 -0
  142. /package/dist/{chunk-BANMPRSC.js.map → chunk-65DWWJKI.js.map} +0 -0
  143. /package/dist/{chunk-VZBKCRU7.js.map → chunk-6MDHK6NO.js.map} +0 -0
  144. /package/dist/{chunk-2RAVHJCD.js.map → chunk-6OHCNTKU.js.map} +0 -0
  145. /package/dist/{chunk-K5RGHUX7.js.map → chunk-A32EBVCZ.js.map} +0 -0
  146. /package/dist/{chunk-KVM3BS5K.js.map → chunk-ATPY63F5.js.map} +0 -0
  147. /package/dist/{chunk-MOWLANEJ.js.map → chunk-C6Y2YHJL.js.map} +0 -0
  148. /package/dist/{chunk-AJVCM2E3.js.map → chunk-CYX7JI4O.js.map} +0 -0
  149. /package/dist/{chunk-76KL37ON.js.map → chunk-D3FP4JQI.js.map} +0 -0
  150. /package/dist/{chunk-YDGQYG4L.js.map → chunk-H442UKDV.js.map} +0 -0
  151. /package/dist/{chunk-FXDQO7VX.js.map → chunk-HL53XYHC.js.map} +0 -0
  152. /package/dist/{chunk-4VFEN3WT.js.map → chunk-IMSLPQJB.js.map} +0 -0
  153. /package/dist/{chunk-FKLSIQBF.js.map → chunk-K3JGILZC.js.map} +0 -0
  154. /package/dist/{chunk-JRHOL6B5.js.map → chunk-K6BS5RB4.js.map} +0 -0
  155. /package/dist/{chunk-HHCLV572.js.map → chunk-KVTUUU7H.js.map} +0 -0
  156. /package/dist/{chunk-L2DYRQQH.js.map → chunk-MTKSH7HY.js.map} +0 -0
  157. /package/dist/{chunk-2WITFW6F.js.map → chunk-NKHRIDYP.js.map} +0 -0
  158. /package/dist/{chunk-CTWWMEGR.js.map → chunk-PCGBESAN.js.map} +0 -0
  159. /package/dist/{chunk-MDXZIU5X.js.map → chunk-QGT5KNQT.js.map} +0 -0
  160. /package/dist/{chunk-YJZDRM33.js.map → chunk-QXHWOUS6.js.map} +0 -0
  161. /package/dist/{chunk-OVJAQWHO.js.map → chunk-RPOG6HLI.js.map} +0 -0
  162. /package/dist/{chunk-2QQCCUXF.js.map → chunk-RVODERA5.js.map} +0 -0
  163. /package/dist/{chunk-P5FF44G3.js.map → chunk-T3XOP7TA.js.map} +0 -0
  164. /package/dist/{chunk-FQE5QN5Q.js.map → chunk-TAPF7T26.js.map} +0 -0
  165. /package/dist/{chunk-7UTCETGK.js.map → chunk-TQODBIMW.js.map} +0 -0
  166. /package/dist/{chunk-KZJEKKK6.js.map → chunk-VQQZJ6KJ.js.map} +0 -0
  167. /package/dist/{chunk-I233SAGS.js.map → chunk-X3ERYOLO.js.map} +0 -0
  168. /package/dist/{chunk-UCCXPMTP.js.map → chunk-XQF2KLV5.js.map} +0 -0
  169. /package/dist/{chunk-LPYGM6RE.js.map → chunk-XWPYK5T4.js.map} +0 -0
  170. /package/dist/{chunk-7EPEZYX3.js.map → chunk-YVXR7CPS.js.map} +0 -0
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  exportOkfBundle,
38
38
  parseIncludeStatus
39
- } from "./chunk-FQE5QN5Q.js";
39
+ } from "./chunk-TAPF7T26.js";
40
40
  import {
41
41
  exportSqlite
42
42
  } from "./chunk-BV2TIZ4F.js";
@@ -71,12 +71,12 @@ import {
71
71
  import {
72
72
  buildStandup,
73
73
  parseStandupDate
74
- } from "./chunk-7UTCETGK.js";
74
+ } from "./chunk-TQODBIMW.js";
75
75
  import {
76
76
  SupportPassportAccessSurface,
77
77
  createSupportPassportModelAdapter,
78
78
  supportsSupportPassportPrivateFiles
79
- } from "./chunk-2WITFW6F.js";
79
+ } from "./chunk-NKHRIDYP.js";
80
80
  import {
81
81
  RoutingRulesStore
82
82
  } from "./chunk-TBUEE7XF.js";
@@ -86,7 +86,7 @@ import {
86
86
  import {
87
87
  ActivityStore,
88
88
  MaintenanceScheduler
89
- } from "./chunk-YDGQYG4L.js";
89
+ } from "./chunk-H442UKDV.js";
90
90
  import {
91
91
  runPeerProfileReasoner
92
92
  } from "./chunk-WTXUUZYI.js";
@@ -110,7 +110,7 @@ import {
110
110
  } from "./chunk-6PEEZSGL.js";
111
111
  import {
112
112
  rebuildMemoryLifecycleLedger
113
- } from "./chunk-CTWWMEGR.js";
113
+ } from "./chunk-PCGBESAN.js";
114
114
  import {
115
115
  rebuildObservations
116
116
  } from "./chunk-2X4WP4GD.js";
@@ -124,7 +124,7 @@ import {
124
124
  runLocationDay,
125
125
  runLocationStatus,
126
126
  runLocationSync
127
- } from "./chunk-YJZDRM33.js";
127
+ } from "./chunk-QXHWOUS6.js";
128
128
  import {
129
129
  archiveObservations
130
130
  } from "./chunk-SBQOBY3S.js";
@@ -140,7 +140,7 @@ import {
140
140
  import {
141
141
  CompoundingEngine,
142
142
  defaultTierMigrationCycleBudget
143
- } from "./chunk-FKLSIQBF.js";
143
+ } from "./chunk-K3JGILZC.js";
144
144
  import {
145
145
  SharedContextManager,
146
146
  UNATTRIBUTED_ACCESS_WRITE_ORIGIN
@@ -199,7 +199,7 @@ import {
199
199
  handleWhoKnowsHttpQuery,
200
200
  loadWhoKnowsEntities,
201
201
  validateWhoKnowsInput
202
- } from "./chunk-7EPEZYX3.js";
202
+ } from "./chunk-YVXR7CPS.js";
203
203
  import {
204
204
  WriteQuarantineStore
205
205
  } from "./chunk-BANSBRNX.js";
@@ -225,7 +225,7 @@ import {
225
225
  import {
226
226
  compareVerifiedEpisodeResults,
227
227
  searchVerifiedEpisodes
228
- } from "./chunk-2RAVHJCD.js";
228
+ } from "./chunk-6OHCNTKU.js";
229
229
  import {
230
230
  applyTrustScoreStage,
231
231
  buildTrustSignalsForRerank,
@@ -270,7 +270,7 @@ import {
270
270
  import {
271
271
  HourlySummarizer,
272
272
  summarizeHourlyStatus
273
- } from "./chunk-3FEQNKMB.js";
273
+ } from "./chunk-5WDUY2ZZ.js";
274
274
  import {
275
275
  buildTargetedFactRecallSection,
276
276
  shouldRecallTargetedFactEvidence
@@ -289,11 +289,11 @@ import {
289
289
  } from "./chunk-WWDO7ZWM.js";
290
290
  import {
291
291
  promoteSemanticRuleFromMemory
292
- } from "./chunk-MOWLANEJ.js";
292
+ } from "./chunk-C6Y2YHJL.js";
293
293
  import {
294
294
  compareVerifiedSemanticRuleResults,
295
295
  searchVerifiedSemanticRules
296
- } from "./chunk-LPYGM6RE.js";
296
+ } from "./chunk-XWPYK5T4.js";
297
297
  import {
298
298
  buildResponseGuidanceRecallSection,
299
299
  shouldRecallResponseGuidance
@@ -461,12 +461,12 @@ import {
461
461
  runOperatorRepair,
462
462
  runOperatorSetup,
463
463
  summarizeNamespaceMaintenanceHealth
464
- } from "./chunk-LANV6I63.js";
464
+ } from "./chunk-56BNHKZM.js";
465
465
  import {
466
466
  NamespaceCatalog,
467
467
  isNamespaceKind,
468
468
  planNamespaceMaintenance
469
- } from "./chunk-I233SAGS.js";
469
+ } from "./chunk-X3ERYOLO.js";
470
470
  import {
471
471
  analyzeSessionIntegrity,
472
472
  applySessionRepair,
@@ -577,7 +577,7 @@ import {
577
577
  import {
578
578
  readProjectedHarmonicGraph,
579
579
  searchHarmonicRetrieval
580
- } from "./chunk-BANMPRSC.js";
580
+ } from "./chunk-65DWWJKI.js";
581
581
  import {
582
582
  removeNodeEdgesForRewrite,
583
583
  rollbackNodeEdgeRewrite
@@ -587,7 +587,7 @@ import {
587
587
  } from "./chunk-XXSOVESA.js";
588
588
  import {
589
589
  ExtractionEngine
590
- } from "./chunk-4VFEN3WT.js";
590
+ } from "./chunk-IMSLPQJB.js";
591
591
  import {
592
592
  wrapWorkLayerContext
593
593
  } from "./chunk-EI6V5UXY.js";
@@ -673,7 +673,7 @@ import {
673
673
  buildEntityRecallSection,
674
674
  entityRecentTranscriptLookbackHours,
675
675
  readRecentEntityTranscriptEntries
676
- } from "./chunk-JRHOL6B5.js";
676
+ } from "./chunk-K6BS5RB4.js";
677
677
  import {
678
678
  boundRecallContextComposition,
679
679
  composeMissingMemoryContext,
@@ -716,15 +716,15 @@ import {
716
716
  import {
717
717
  CorpusWatermarkCache,
718
718
  computeServiceCorpusCensus
719
- } from "./chunk-OVJAQWHO.js";
719
+ } from "./chunk-RPOG6HLI.js";
720
720
  import {
721
721
  listNamespaces,
722
722
  runNamespaceMigration,
723
723
  verifyNamespaces
724
- } from "./chunk-PSUSA5SM.js";
724
+ } from "./chunk-2VNMSEZR.js";
725
725
  import {
726
726
  NamespaceStorageRouter
727
- } from "./chunk-KVM3BS5K.js";
727
+ } from "./chunk-ATPY63F5.js";
728
728
  import {
729
729
  CrossNamespaceBudget,
730
730
  toBudgetWarning
@@ -738,12 +738,12 @@ import {
738
738
  } from "./chunk-EZ25VE3G.js";
739
739
  import {
740
740
  refreshConvergedNamespaces
741
- } from "./chunk-HHCLV572.js";
741
+ } from "./chunk-KVTUUU7H.js";
742
742
  import {
743
743
  rebuildMemoryProjection,
744
744
  repairMemoryProjection,
745
745
  verifyMemoryProjection
746
- } from "./chunk-KZJEKKK6.js";
746
+ } from "./chunk-VQQZJ6KJ.js";
747
747
  import {
748
748
  buildProposedActions,
749
749
  buildQualityScore,
@@ -752,7 +752,7 @@ import {
752
752
  readMemoryGovernanceRunArtifact,
753
753
  restoreMemoryGovernanceRun,
754
754
  runMemoryGovernance
755
- } from "./chunk-76KL37ON.js";
755
+ } from "./chunk-D3FP4JQI.js";
756
756
  import {
757
757
  collectNativeKnowledgeChunks,
758
758
  formatNativeKnowledgeSection,
@@ -785,7 +785,7 @@ import {
785
785
  materializeAfterSemanticConsolidation,
786
786
  parseConsolidationResponse,
787
787
  parseOperatorAwareConsolidationResponse
788
- } from "./chunk-2ZS7CB5H.js";
788
+ } from "./chunk-2I3ETW3G.js";
789
789
  import {
790
790
  resolveNamespaceChildRoot
791
791
  } from "./chunk-3UXOZBHV.js";
@@ -801,7 +801,7 @@ import {
801
801
  } from "./chunk-GKCXTSFF.js";
802
802
  import {
803
803
  SmartBuffer
804
- } from "./chunk-FXDQO7VX.js";
804
+ } from "./chunk-HL53XYHC.js";
805
805
  import {
806
806
  ExtractionDeadlineError,
807
807
  ExtractionRunCoordinator,
@@ -856,7 +856,7 @@ import {
856
856
  } from "./chunk-CSAKJVXW.js";
857
857
  import {
858
858
  LocalLlmClient
859
- } from "./chunk-TQXKUQFX.js";
859
+ } from "./chunk-FZU62GIV.js";
860
860
  import {
861
861
  isCapsuleImportArchiveInputError,
862
862
  validateCapsuleImportArchive
@@ -885,14 +885,14 @@ import {
885
885
  parseBriefingFocus,
886
886
  parseBriefingWindow,
887
887
  validateBriefingFormat
888
- } from "./chunk-MDXZIU5X.js";
888
+ } from "./chunk-QGT5KNQT.js";
889
889
  import {
890
890
  BriefingTimeoutError,
891
891
  withBriefingDeadline
892
892
  } from "./chunk-FNFURZBZ.js";
893
893
  import {
894
894
  scopeObserveBufferAdmissionIdempotencyKey
895
- } from "./chunk-O5ZCDK32.js";
895
+ } from "./chunk-6AMFGXG2.js";
896
896
  import {
897
897
  AMBIENT_CAPTURE_PROMPT_RULE,
898
898
  isHighImpactPersonalFact
@@ -1070,7 +1070,7 @@ import {
1070
1070
  reconstructFusionInputs,
1071
1071
  selfDeps,
1072
1072
  serializeFusionDay
1073
- } from "./chunk-IMT7NTFV.js";
1073
+ } from "./chunk-CIAQK2OU.js";
1074
1074
  import {
1075
1075
  buildRetiredFactTombstoneInputs
1076
1076
  } from "./chunk-QGVCFVX6.js";
@@ -68085,4 +68085,4 @@ export {
68085
68085
  EngramAccessService,
68086
68086
  AccessAdminOpsSurface
68087
68087
  };
68088
- //# sourceMappingURL=chunk-L2DYRQQH.js.map
68088
+ //# sourceMappingURL=chunk-MTKSH7HY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalLlmClient
3
- } from "./chunk-TQXKUQFX.js";
3
+ } from "./chunk-FZU62GIV.js";
4
4
  import {
5
5
  SupportPassportCreateGrantInputSchema,
6
6
  SupportPassportCreateGrantRequestSchema,
@@ -4497,4 +4497,4 @@ export {
4497
4497
  parseSupportPassportModelJob,
4498
4498
  SupportPassportModelBridge
4499
4499
  };
4500
- //# sourceMappingURL=chunk-2WITFW6F.js.map
4500
+ //# sourceMappingURL=chunk-NKHRIDYP.js.map
@@ -1,11 +1,13 @@
1
1
  import {
2
- directProbeDispatcher
3
- } from "./chunk-5YQXWVCP.js";
2
+ directProbeDispatcher,
3
+ isInvalidDispatcherArg
4
+ } from "./chunk-B256MMS7.js";
4
5
  import {
5
6
  log
6
7
  } from "./chunk-3WCASNQZ.js";
7
8
 
8
9
  // src/local-llm-helpers.ts
10
+ import { fetch as undiciFetch } from "undici";
9
11
  function isAbortError(err) {
10
12
  if (!err || typeof err !== "object") return false;
11
13
  const maybe = err;
@@ -90,7 +92,13 @@ async function probeFetch(url, options) {
90
92
  const init = { signal: requestSignal, headers: options.headers };
91
93
  const dispatcher = directProbeDispatcher();
92
94
  if (dispatcher) init.dispatcher = dispatcher;
93
- const response = await fetch(url, init);
95
+ let response;
96
+ try {
97
+ response = await fetch(url, init);
98
+ } catch (err) {
99
+ if (!(err instanceof Error) || !isInvalidDispatcherArg(err)) throw err;
100
+ response = await undiciFetch(url, init);
101
+ }
94
102
  clearTimeout(timeout);
95
103
  if (!response.ok) {
96
104
  log.debug(`local LLM probe: ${url} returned HTTP ${response.status}`);
@@ -247,4 +255,4 @@ export {
247
255
  localLlmBackendPoolExpiredAtMs,
248
256
  markLocalLlmBackendPoolUnavailable
249
257
  };
250
- //# sourceMappingURL=chunk-KYZMCH4I.js.map
258
+ //# sourceMappingURL=chunk-NN3LMWKA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/local-llm-helpers.ts"],"sourcesContent":["import type { ResponseFormatJSONSchema } from \"openai/resources/shared\";\nimport { fetch as undiciFetch, type Response as UndiciResponse } from \"undici\";\nimport { log } from \"./logger.js\";\nimport { directProbeDispatcher, isInvalidDispatcherArg, type TransportRequestInit } from \"./local-llm-transport.js\";\nimport type { LocalLlmRequestPriority } from \"./local-llm.js\";\n\nexport interface LocalLlmChatCompletionOptions {\n temperature?: number;\n maxTokens?: number;\n responseFormat?: { type: string } | ResponseFormatJSONSchema;\n timeoutMs?: number;\n operation?: string;\n forceDisableThinking?: boolean;\n disableThinking?: boolean;\n priority?: LocalLlmRequestPriority;\n signal?: AbortSignal;\n redactProviderErrors?: boolean;\n /** Per-request model; defaults to config.localLlmModel. */\n model?: string;\n /**\n * Optional out-box for the terminal failure cause (issue #2891): on a\n * failed request the client records the last provider error here so\n * callers can classify it (e.g. HTTP 429 → rate-limited) in memory\n * instead of seeing only null. Never logged.\n */\n failureDiag?: { lastError?: unknown; finishReason?: string };\n}\n\nexport interface LocalLlmChatCompletionResult {\n content: string;\n usage?: { promptTokens: number; completionTokens: number; totalTokens: number };\n}\nexport function isAbortError(err: unknown): boolean {\n if (!err || typeof err !== \"object\") return false;\n const maybe = err as { name?: string; message?: string };\n return (\n maybe.name === \"AbortError\" ||\n maybe.message === \"This operation was aborted\" ||\n maybe.message === \"The operation was aborted\"\n );\n}\n\n/** Caller signal combined with a client-wide shutdown signal, so a daemon\n * stop aborts in-flight requests and retry loops at once — even for\n * callers that pass no signal of their own. */\nexport function combineClientAbortSignals(\n caller: AbortSignal | undefined,\n shutdown: AbortSignal | undefined,\n): AbortSignal | undefined {\n if (shutdown === undefined) return caller;\n if (caller === undefined) return shutdown;\n return AbortSignal.any([caller, shutdown]);\n}\n\nexport function waitForRetryBackoff(backoffMs: number, signal?: AbortSignal): Promise<boolean> {\n return new Promise((resolve) => {\n let settled = false;\n let timer: NodeJS.Timeout | undefined;\n const onAbort = (): void => {\n if (settled) return;\n settled = true;\n if (timer) clearTimeout(timer);\n signal?.removeEventListener(\"abort\", onAbort);\n resolve(false);\n };\n const onTimer = (): void => {\n if (settled) return;\n settled = true;\n signal?.removeEventListener(\"abort\", onAbort);\n resolve(true);\n };\n timer = setTimeout(onTimer, backoffMs);\n if (signal) {\n if (signal.aborted) onAbort();\n else signal.addEventListener(\"abort\", onAbort, { once: true });\n }\n });\n}\n\nexport function normalizeBackendTripReason(reason: string): string {\n const cleaned = reason.replace(/\\s+/g, \" \").replace(/^[-:–—\\s]+/, \"\").trim();\n if (!cleaned) return \"unknown local backend failure\";\n return cleaned.length > 160 ? `${cleaned.slice(0, 157)}...` : cleaned;\n}\n\nexport function extractNonRecoverableBackendReason(reason: string): string | null {\n const match = reason.match(\n /Failed to load model|Library not loaded|different Team IDs|code signature|llm_engine_mlx_amphibian/i,\n );\n return match?.[0] ?? null;\n}\n\nexport function extractNonRecoverableBackendReasonFromErrorText(errorText: string): string | null {\n const directReason = extractNonRecoverableBackendReason(errorText);\n if (directReason) return directReason;\n try {\n const parsed = JSON.parse(errorText) as { error?: { message?: string } };\n return extractNonRecoverableBackendReason(parsed?.error?.message ?? \"\");\n } catch {\n return null;\n }\n}\n\n/**\n * Flatten a fetch rejection into one line, including the `cause` undici hides\n * the real reason behind (`fetch failed` alone says nothing).\n */\nexport function describeFetchFailure(err: unknown): string {\n const name = err instanceof Error ? err.name : \"\";\n const message = err instanceof Error ? err.message : String(err);\n const cause: unknown = err instanceof Error ? (err as Error & { cause?: unknown }).cause : undefined;\n const causeText = cause instanceof Error\n ? ` (cause: ${cause.name}: ${cause.message}${\n typeof (cause as Error & { code?: unknown }).code === \"string\"\n ? ` [${String((cause as Error & { code?: unknown }).code)}]`\n : \"\"\n })`\n : cause === undefined\n ? \"\"\n : ` (cause: ${String(cause)})`;\n return `${name ? `${name}: ` : \"\"}${message}${causeText}`;\n}\n\n/**\n * What to record when every availability probe failed.\n *\n * A probe that TIMED OUT is not evidence the backend is down: the budget is a\n * fixed 2s and a busy event loop can burn it before the socket is scheduled,\n * so the backend looks dead while it answers other callers in single-digit ms.\n * Caching that verdict took extraction offline for a whole health-check\n * interval at a time (issue #2210), so a timeout leaves availability UNKNOWN —\n * this call fails, the next one re-probes instead of reading a stale false.\n *\n * A backend that ANSWERED and said no is a real verdict and stays cached, or\n * the daemon re-probes a known-bad endpoint on every request.\n */\nexport function resolveUnavailableVerdict(args: {\n baseUrl: string;\n sawAbortedProbe: boolean;\n wasAvailable: boolean | null;\n}): { cacheVerdict: boolean; warning: string | null } {\n if (args.sawAbortedProbe) {\n return {\n cacheVerdict: false,\n warning:\n `local LLM availability probe timed out at ${args.baseUrl} (event loop busy?); treating availability as ` +\n \"unknown and re-probing on the next request rather than marking the backend down\",\n };\n }\n return {\n cacheVerdict: true,\n // Surfaced at warn, not debug: extraction stops silently when this flips,\n // and the daemon emits no debug at all unless configured for it.\n warning: args.wasAvailable !== false ? `local LLM became unavailable at ${args.baseUrl}` : null,\n };\n}\n\nexport interface ProbeFetchResult {\n ok: boolean;\n data: unknown;\n status: number | null;\n /** The probe hit its own budget rather than getting an answer. */\n aborted?: boolean;\n}\n\n/**\n * One health-probe request.\n *\n * Every failure is logged with its cause: a transport error and a 404 both\n * returned `ok: false` with nothing recorded, so an unreachable backend was\n * indistinguishable from a wrong path and an availability failure had no\n * diagnosable reason at all (§22, issue #2210).\n */\nexport async function probeFetch(\n url: string,\n options: { timeoutMs: number; headers: Record<string, string>; signal?: AbortSignal },\n): Promise<ProbeFetchResult> {\n const controller = new AbortController();\n const requestSignal = options.signal\n ? AbortSignal.any([options.signal, controller.signal])\n : controller.signal;\n const timeout = setTimeout(() => controller.abort(), options.timeoutMs);\n try {\n const init: TransportRequestInit = { signal: requestSignal, headers: options.headers };\n const dispatcher = directProbeDispatcher();\n if (dispatcher) init.dispatcher = dispatcher;\n let response: Response | UndiciResponse;\n try {\n response = await fetch(url, init);\n } catch (err) {\n // node >= 26 wraps dispatch failures in TypeError(\"fetch failed\"),\n // so UND_ERR_INVALID_ARG can ride `err` or its cause chain; the\n // bundled undici's fetch accepts the same init on every supported\n // Node, so direct-mode probes still run there.\n if (!(err instanceof Error) || !isInvalidDispatcherArg(err)) throw err;\n response = await undiciFetch(url, init);\n }\n clearTimeout(timeout);\n if (!response.ok) {\n log.debug(`local LLM probe: ${url} returned HTTP ${response.status}`);\n return { ok: false, data: null, status: response.status };\n }\n const contentType = response.headers.get(\"content-type\");\n const data = contentType?.includes(\"application/json\") ? await response.json() : await response.text();\n return { ok: true, data, status: response.status };\n } catch (err) {\n clearTimeout(timeout);\n const aborted = isAbortError(err);\n log.debug(\n `local LLM probe: ${url} ${aborted ? `timed out after ${options.timeoutMs}ms` : \"failed\"}: ${describeFetchFailure(err)}`,\n );\n return { ok: false, data: null, status: null, aborted };\n }\n}\n\ninterface PendingProbe {\n promise: Promise<boolean>;\n controller: AbortController;\n /** Callers still awaiting this sequence; at zero the sequence is aborted. */\n waiters: number;\n}\n\n/**\n * Collapses concurrent probe sequences onto one in-flight run.\n *\n * A timed-out availability probe deliberately caches nothing (issue #2210),\n * which removed the false verdict that used to absorb concurrent callers:\n * every queued request would then run its own full probe sequence, on a host\n * already slow enough to blow the probe budget.\n *\n * Cancellation is refcounted rather than shared: one caller walking away must\n * not abort a sequence the others are still waiting on, so the underlying task\n * is aborted only once every waiter has gone.\n */\nexport class SingleFlightProbe {\n private pending: PendingProbe | null = null;\n\n run(task: (signal: AbortSignal) => Promise<boolean>, signal?: AbortSignal): Promise<boolean> {\n let active = this.pending;\n if (!active) {\n const controller = new AbortController();\n const created: PendingProbe = { promise: Promise.resolve(false), controller, waiters: 0 };\n created.promise = task(controller.signal).finally(() => {\n if (this.pending === created) this.pending = null;\n });\n this.pending = created;\n active = created;\n }\n const entry = active;\n entry.waiters += 1;\n let released = false;\n const release = () => {\n if (released) return;\n released = true;\n entry.waiters -= 1;\n if (entry.waiters > 0) return;\n // Detach BEFORE aborting. `pending` would otherwise still point at this\n // doomed entry until the task's own `finally` runs a microtask later, and\n // a caller arriving in that window would join an aborted sequence and\n // read its `false` as a verdict.\n if (this.pending === entry) this.pending = null;\n entry.controller.abort();\n };\n if (!signal) return entry.promise.finally(release);\n return new Promise<boolean>((resolve, reject) => {\n const onAbort = () => {\n release();\n resolve(false);\n };\n signal.addEventListener(\"abort\", onAbort, { once: true });\n entry.promise.then(\n (value) => {\n signal.removeEventListener(\"abort\", onAbort);\n release();\n resolve(value);\n },\n (err: unknown) => {\n signal.removeEventListener(\"abort\", onAbort);\n release();\n reject(err instanceof Error ? err : new Error(String(err)));\n },\n );\n });\n }\n}\n\n/** True when `value` is safe for `fetch` request headers. Node's `Headers`\n * accepts a ByteString: controls and DEL are out, and so is anything above\n * U+00FF — `é` is sendable, `Ā` is not (Kilo review on #3474). */\nexport function isHttpHeaderFieldValue(value: string): boolean {\n if (!value) return false;\n for (let i = 0; i < value.length; i += 1) {\n const code = value.charCodeAt(i);\n if (code < 0x20 || code === 0x7f || code > 0xff) return false;\n }\n return true;\n}\n\nfunction trimTrailingSlashes(url: string): string {\n let end = url.length;\n while (end > 0 && url.charCodeAt(end - 1) === 47) end -= 1;\n return end === url.length ? url : url.slice(0, end);\n}\n\n/** Circuit-breaker and rate-limit scope when recall/extraction share one proxy URL. */\nexport function formatLocalLlmPoolKey(chatUrl: string, operation: string): string {\n let normalized = chatUrl.replace(\"localhost\", \"127.0.0.1\");\n normalized = trimTrailingSlashes(normalized);\n if (normalized.endsWith(\"/v1\")) {\n normalized = normalized.slice(0, -3);\n }\n const completions = normalized.endsWith(\"/chat/completions\")\n ? normalized\n : `${normalized}/v1/chat/completions`;\n return `${completions}|op=${operation}`;\n}\n\n/** HTTP headers the jarvis-ml recall proxy reads for pool routing. */\nexport function buildLocalLlmRoutingHeaders(\n operation: string,\n priority: \"recall-critical\" | \"background\" | undefined,\n): Record<string, string> {\n const routingEntries: Array<readonly [string, string]> = [\n [\"Content-Type\", \"application/json\"],\n ];\n if (operation !== \"unspecified\" && isHttpHeaderFieldValue(operation)) {\n routingEntries.push([\"X-Remnic-Operation\", operation]);\n }\n if (priority) {\n routingEntries.push([\"X-Remnic-Priority\", priority]);\n }\n return Object.fromEntries(routingEntries) satisfies Record<string, string>;\n}\n\nconst LOCAL_LLM_GLOBAL_BACKEND_STATE = \"__openclawEngramLocalLlmBackendState\";\n\nexport type LocalLlmBackendPoolState = {\n untilMs: number;\n reason: string;\n /** Once the trip lapses this is set instead of deleting the entry: every\n * client must observe the transition once, so a tombstone stays visible for\n * BACKEND_POOL_TOMBSTONE_MS. */\n expiredAtMs?: number;\n};\n\n/** How long a lapsed circuit stays readable so each client can invalidate its\n * cached health verdict once (the health cache is 60s; this leaves margin). */\nconst BACKEND_POOL_TOMBSTONE_MS = 15 * 60_000;\n\nfunction localLlmBackendPoolMap(): Map<string, LocalLlmBackendPoolState> {\n // SAFETY: globalThis carries one optional Map slot keyed for backend pool state.\n const globalAny = globalThis as typeof globalThis & {\n [LOCAL_LLM_GLOBAL_BACKEND_STATE]?: Map<string, LocalLlmBackendPoolState>;\n };\n const existing = globalAny[LOCAL_LLM_GLOBAL_BACKEND_STATE];\n if (existing) return existing;\n const created = new Map<string, LocalLlmBackendPoolState>();\n globalAny[LOCAL_LLM_GLOBAL_BACKEND_STATE] = created;\n return created;\n}\n\nexport function getLocalLlmTrippedBackendPoolState(\n now: number,\n chatUrl: string,\n operation: string,\n): LocalLlmBackendPoolState | null {\n const key = formatLocalLlmPoolKey(chatUrl, operation);\n const map = localLlmBackendPoolMap();\n const state = map.get(key) ?? null;\n if (!state) return null;\n if (state.untilMs <= now) {\n state.expiredAtMs ??= state.untilMs;\n if (state.expiredAtMs + BACKEND_POOL_TOMBSTONE_MS <= now) map.delete(key);\n return null;\n }\n return state;\n}\n\n/** The instant this pool's circuit lapsed, or null while it is active or\n * absent. The tombstone stays in the map so every client holding a cached\n * health verdict can observe the transition once — deleting on first read left\n * later clients stale (wAN review on #3474). */\nexport function localLlmBackendPoolExpiredAtMs(now: number, chatUrl: string, operation: string): number | null {\n const key = formatLocalLlmPoolKey(chatUrl, operation);\n const state = localLlmBackendPoolMap().get(key) ?? null;\n if (state && state.untilMs <= now) {\n state.expiredAtMs ??= state.untilMs;\n return state.expiredAtMs;\n }\n return null;\n}\n\nexport function markLocalLlmBackendPoolUnavailable(\n reason: string,\n durationMs: number,\n chatUrl: string,\n operation: string,\n): void {\n const normalizedReason = normalizeBackendTripReason(reason);\n const key = formatLocalLlmPoolKey(chatUrl, operation);\n if (durationMs > 0) {\n localLlmBackendPoolMap().set(key, { untilMs: Date.now() + durationMs, reason: normalizedReason });\n } else {\n localLlmBackendPoolMap().delete(key);\n }\n}\n"],"mappings":";;;;;;;;;AACA,SAAS,SAAS,mBAAoD;AA+B/D,SAAS,aAAa,KAAuB;AAClD,MAAI,CAAC,OAAO,OAAO,QAAQ,SAAU,QAAO;AAC5C,QAAM,QAAQ;AACd,SACE,MAAM,SAAS,gBACf,MAAM,YAAY,gCAClB,MAAM,YAAY;AAEtB;AAKO,SAAS,0BACd,QACA,UACyB;AACzB,MAAI,aAAa,OAAW,QAAO;AACnC,MAAI,WAAW,OAAW,QAAO;AACjC,SAAO,YAAY,IAAI,CAAC,QAAQ,QAAQ,CAAC;AAC3C;AAEO,SAAS,oBAAoB,WAAmB,QAAwC;AAC7F,SAAO,IAAI,QAAQ,CAAC,YAAY;AAC9B,QAAI,UAAU;AACd,QAAI;AACJ,UAAM,UAAU,MAAY;AAC1B,UAAI,QAAS;AACb,gBAAU;AACV,UAAI,MAAO,cAAa,KAAK;AAC7B,cAAQ,oBAAoB,SAAS,OAAO;AAC5C,cAAQ,KAAK;AAAA,IACf;AACA,UAAM,UAAU,MAAY;AAC1B,UAAI,QAAS;AACb,gBAAU;AACV,cAAQ,oBAAoB,SAAS,OAAO;AAC5C,cAAQ,IAAI;AAAA,IACd;AACA,YAAQ,WAAW,SAAS,SAAS;AACrC,QAAI,QAA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AAO;AACrB,QAAM,UAAU,oBAAI,IAAsC;AAC1D,YAAU,8BAA8B,IAAI;AAC5C,SAAO;AACT;AAEO,SAAS,mCACd,KACA,SACA,WACiC;AACjC,QAAM,MAAM,sBAAsB,SAAS,SAAS;AACpD,QAAM,MAAM,uBAAuB;AACnC,QAAM,QAAQ,IAAI,IAAI,GAAG,KAAK;AAC9B,MAAI,CAAC,MAAO,QAAO;AACnB,MAAI,MAAM,WAAW,KAAK;AACxB,UAAM,gBAAgB,MAAM;AAC5B,QAAI,MAAM,cAAc,6BAA6B,IAAK,KAAI,OAAO,GAAG;AACxE,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAMO,SAAS,+BAA+B,KAAa,SAAiB,WAAkC;AAC7G,QAAM,MAAM,sBAAsB,SAAS,SAAS;AACpD,QAAM,QAAQ,uBAAuB,EAAE,IAAI,GAAG,KAAK;AACnD,MAAI,SAAS,MAAM,WAAW,KAAK;AACjC,UAAM,gBAAgB,MAAM;AAC5B,WAAO,MAAM;AAAA,EACf;AACA,SAAO;AACT;AAEO,SAAS,mCACd,QACA,YACA,SACA,WACM;AACN,QAAM,mBAAmB,2BAA2B,MAAM;AAC1D,QAAM,MAAM,sBAAsB,SAAS,SAAS;AACpD,MAAI,aAAa,GAAG;AAClB,2BAAuB,EAAE,IAAI,KAAK,EAAE,SAAS,KAAK,IAAI,IAAI,YAAY,QAAQ,iBAAiB,CAAC;AAAA,EAClG,OAAO;AACL,2BAAuB,EAAE,OAAO,GAAG;AAAA,EACrC;AACF;","names":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KJTKLXTH.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-IMT7NTFV.js";
6
+ } from "./chunk-CIAQK2OU.js";
7
7
  import {
8
8
  assertInjectedStorageRooted
9
9
  } from "./chunk-BNZAR6PO.js";
@@ -260,4 +260,4 @@ export {
260
260
  backupExistingLedger,
261
261
  rebuildMemoryLifecycleLedger
262
262
  };
263
- //# sourceMappingURL=chunk-CTWWMEGR.js.map
263
+ //# sourceMappingURL=chunk-PCGBESAN.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-EKUI7I2X.js";
11
11
  import {
12
12
  StorageManager
13
- } from "./chunk-IMT7NTFV.js";
13
+ } from "./chunk-CIAQK2OU.js";
14
14
  import {
15
15
  normalizeEntityName
16
16
  } from "./chunk-YXZG5TVN.js";
@@ -974,4 +974,4 @@ export {
974
974
  resolveBriefingSaveDir,
975
975
  briefingFilename
976
976
  };
977
- //# sourceMappingURL=chunk-MDXZIU5X.js.map
977
+ //# sourceMappingURL=chunk-QGT5KNQT.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot
3
- } from "./chunk-KVM3BS5K.js";
3
+ } from "./chunk-ATPY63F5.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-IMT7NTFV.js";
6
+ } from "./chunk-CIAQK2OU.js";
7
7
  import {
8
8
  composeLocationDayBody,
9
9
  composeLocationDayMeta,
@@ -852,4 +852,4 @@ export {
852
852
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
853
853
  startLocationAutoSync
854
854
  };
855
- //# sourceMappingURL=chunk-YJZDRM33.js.map
855
+ //# sourceMappingURL=chunk-QXHWOUS6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listNamespaces
3
- } from "./chunk-PSUSA5SM.js";
3
+ } from "./chunk-2VNMSEZR.js";
4
4
  import {
5
5
  corpusScanWorker
6
6
  } from "./chunk-4LZ7SVKM.js";
@@ -292,4 +292,4 @@ export {
292
292
  computeServiceCorpusWatermarks,
293
293
  computeServiceCorpusCensus
294
294
  };
295
- //# sourceMappingURL=chunk-OVJAQWHO.js.map
295
+ //# sourceMappingURL=chunk-RPOG6HLI.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  rebuildMemoryProjection,
3
3
  watchProjectionRebuildParent
4
- } from "./chunk-KZJEKKK6.js";
4
+ } from "./chunk-VQQZJ6KJ.js";
5
5
  import {
6
6
  initLogger,
7
7
  log
@@ -77,4 +77,4 @@ if (invokedAsRunner) {
77
77
  export {
78
78
  PROJECTION_REBUILD_RUNNER_FLAG
79
79
  };
80
- //# sourceMappingURL=chunk-2QQCCUXF.js.map
80
+ //# sourceMappingURL=chunk-RVODERA5.js.map
@@ -2,7 +2,7 @@ import {
2
2
  ExtractionDrain,
3
3
  TurnIngestionCoordinator,
4
4
  shouldSkipImplicitExtraction
5
- } from "./chunk-L2DYRQQH.js";
5
+ } from "./chunk-MTKSH7HY.js";
6
6
  import {
7
7
  headerConnector,
8
8
  renderExtractionConversation,
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-6TIQLG7I.js";
11
11
  import {
12
12
  SmartBuffer
13
- } from "./chunk-FXDQO7VX.js";
13
+ } from "./chunk-HL53XYHC.js";
14
14
  import {
15
15
  selfDeps
16
- } from "./chunk-IMT7NTFV.js";
16
+ } from "./chunk-CIAQK2OU.js";
17
17
  import {
18
18
  describeError,
19
19
  groupTurnsByExtractionScope
@@ -447,4 +447,4 @@ export {
447
447
  ClaimBufferStorage,
448
448
  BufferDrainRunner
449
449
  };
450
- //# sourceMappingURL=chunk-P5FF44G3.js.map
450
+ //# sourceMappingURL=chunk-T3XOP7TA.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-3UXOZBHV.js";
15
15
  import {
16
16
  StorageManager
17
- } from "./chunk-IMT7NTFV.js";
17
+ } from "./chunk-CIAQK2OU.js";
18
18
  import {
19
19
  OKF_PROFILE_TYPE,
20
20
  okfTypeForMemory
@@ -272,4 +272,4 @@ export {
272
272
  exportOkfBundle,
273
273
  firstHeading
274
274
  };
275
- //# sourceMappingURL=chunk-FQE5QN5Q.js.map
275
+ //# sourceMappingURL=chunk-TAPF7T26.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-IMT7NTFV.js";
3
+ } from "./chunk-CIAQK2OU.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-7UTCETGK.js.map
202
+ //# sourceMappingURL=chunk-TQODBIMW.js.map
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  listMemoryGovernanceRuns,
6
6
  readMemoryGovernanceRunArtifact
7
- } from "./chunk-76KL37ON.js";
7
+ } from "./chunk-D3FP4JQI.js";
8
8
  import {
9
9
  loadPersistedNativeKnowledgeChunks
10
10
  } from "./chunk-2DQ2XREU.js";
11
11
  import {
12
12
  StorageManager
13
- } from "./chunk-IMT7NTFV.js";
13
+ } from "./chunk-CIAQK2OU.js";
14
14
  import {
15
15
  normalizeProjectionPreview,
16
16
  normalizeProjectionTags
@@ -1156,4 +1156,4 @@ export {
1156
1156
  verifyMemoryProjection,
1157
1157
  repairMemoryProjection
1158
1158
  };
1159
- //# sourceMappingURL=chunk-KZJEKKK6.js.map
1159
+ //# sourceMappingURL=chunk-VQQZJ6KJ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot,
3
3
  resolveNamespaceStorageRoot
4
- } from "./chunk-KVM3BS5K.js";
4
+ } from "./chunk-ATPY63F5.js";
5
5
  import {
6
6
  getConfiguredNamespaces
7
7
  } from "./chunk-Y6FJDJUK.js";
@@ -2308,4 +2308,4 @@ export {
2308
2308
  runNamespaceMaintenancePlan,
2309
2309
  runNamespaceMaintenanceBatchPlan
2310
2310
  };
2311
- //# sourceMappingURL=chunk-I233SAGS.js.map
2311
+ //# sourceMappingURL=chunk-X3ERYOLO.js.map
@@ -2,7 +2,7 @@ import {
2
2
  WHO_KNOWS_DEFAULT_LIMIT,
3
3
  WHO_KNOWS_MAX_LIMIT,
4
4
  validateWhoKnowsInput
5
- } from "./chunk-7EPEZYX3.js";
5
+ } from "./chunk-YVXR7CPS.js";
6
6
 
7
7
  // src/who-knows-cli.ts
8
8
  function extractWhoKnowsRawArgs(rest) {
@@ -74,4 +74,4 @@ export {
74
74
  renderWhoKnowsText,
75
75
  renderWhoKnows
76
76
  };
77
- //# sourceMappingURL=chunk-UCCXPMTP.js.map
77
+ //# sourceMappingURL=chunk-XQF2KLV5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-IMT7NTFV.js";
3
+ } from "./chunk-CIAQK2OU.js";
4
4
  import {
5
5
  countRecallTokenOverlap,
6
6
  normalizeRecallTokens
@@ -119,4 +119,4 @@ export {
119
119
  compareVerifiedSemanticRuleResults,
120
120
  searchVerifiedSemanticRules
121
121
  };
122
- //# sourceMappingURL=chunk-LPYGM6RE.js.map
122
+ //# sourceMappingURL=chunk-XWPYK5T4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseEntityFile
3
- } from "./chunk-IMT7NTFV.js";
3
+ } from "./chunk-CIAQK2OU.js";
4
4
  import {
5
5
  inferMemoryStatus
6
6
  } from "./chunk-7RJUVTVF.js";
@@ -253,4 +253,4 @@ export {
253
253
  WHO_KNOWS_MCP_TOOLS,
254
254
  handleWhoKnowsHttpQuery
255
255
  };
256
- //# sourceMappingURL=chunk-7EPEZYX3.js.map
256
+ //# sourceMappingURL=chunk-YVXR7CPS.js.map