@remnic/core 10.0.121 → 10.0.123

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 (239) hide show
  1. package/dist/access-admin-ops-surface.js +90 -88
  2. package/dist/access-cli.js +90 -88
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-extraction-force-flush.js +90 -88
  5. package/dist/access-http-briefing.js +90 -88
  6. package/dist/access-http-query.js +90 -88
  7. package/dist/access-http.js +90 -88
  8. package/dist/access-identity-continuity-surface.js +90 -88
  9. package/dist/access-lcm-surface.js +90 -88
  10. package/dist/access-mcp.js +90 -88
  11. package/dist/access-observe-write-category.js +8 -8
  12. package/dist/access-observe-write-surface.js +90 -88
  13. package/dist/access-offline-manifest.js +5 -5
  14. package/dist/access-operations-batch.js +90 -88
  15. package/dist/access-operations.js +90 -88
  16. package/dist/access-recall-concurrency.js +90 -88
  17. package/dist/access-recall-response.js +90 -88
  18. package/dist/access-recall-surface.js +90 -88
  19. package/dist/access-schema.js +7 -7
  20. package/dist/access-service.js +90 -88
  21. package/dist/active-recall.js +16 -16
  22. package/dist/adapters/devin.d.ts +22 -0
  23. package/dist/adapters/devin.d.ts.map +1 -0
  24. package/dist/adapters/devin.js +9 -0
  25. package/dist/adapters/index.d.ts +1 -0
  26. package/dist/adapters/index.d.ts.map +1 -1
  27. package/dist/adapters/index.js +9 -5
  28. package/dist/adapters/registry.d.ts.map +1 -1
  29. package/dist/adapters/registry.js +3 -2
  30. package/dist/briefing.js +11 -11
  31. package/dist/calibration.js +3 -3
  32. package/dist/{capsule-crypto-GWVG7LGC.js → capsule-crypto-7FJQINUR.js} +2 -2
  33. package/dist/causal-consolidation.js +12 -12
  34. package/dist/{chunk-SEOJHETP.js → chunk-2NGTY22Z.js} +7 -6
  35. package/dist/{chunk-SEOJHETP.js.map → chunk-2NGTY22Z.js.map} +1 -1
  36. package/dist/{chunk-OWHERGF2.js → chunk-2NLLXCJG.js} +2 -2
  37. package/dist/{chunk-FCTVE5LR.js → chunk-3B7EF4MP.js} +3 -3
  38. package/dist/{chunk-LMOMY73A.js → chunk-3OEZA5TR.js} +2 -2
  39. package/dist/{chunk-K6TY4CE2.js → chunk-3S7VJJTG.js} +2 -2
  40. package/dist/{chunk-NOWVCYNK.js → chunk-53VLXNAO.js} +2 -2
  41. package/dist/chunk-6O3SGRJD.js +1 -0
  42. package/dist/chunk-6O3SGRJD.js.map +1 -0
  43. package/dist/{chunk-5RONA5FF.js → chunk-7DFJ4JX2.js} +4 -4
  44. package/dist/{chunk-BUKK5SWA.js → chunk-7LCGFUMB.js} +4 -4
  45. package/dist/{chunk-5PCUUGLT.js → chunk-7P72BY4F.js} +2 -2
  46. package/dist/{chunk-T45PJYFQ.js → chunk-AC6F3ADA.js} +2 -2
  47. package/dist/{chunk-OGLKGZ43.js → chunk-AM5ZNSUK.js} +2 -2
  48. package/dist/{chunk-QPHUVP2P.js → chunk-B5LNHYSG.js} +2 -2
  49. package/dist/{chunk-DE75UQ57.js → chunk-CHZMU6HA.js} +2 -2
  50. package/dist/{chunk-2XEUUKDW.js → chunk-CKUDZMC3.js} +2 -2
  51. package/dist/{chunk-HBNMJ26J.js → chunk-EGLJALMG.js} +5 -5
  52. package/dist/{chunk-DF7YDJIM.js → chunk-EOJF66EQ.js} +2 -2
  53. package/dist/{chunk-CPWYYRJ2.js → chunk-GFZRBHLH.js} +2 -2
  54. package/dist/{chunk-WQGVW3G3.js → chunk-GSRRD7ZJ.js} +2 -2
  55. package/dist/{chunk-4RASUAN3.js → chunk-HXFIILGF.js} +4 -4
  56. package/dist/{chunk-L5PM7B3I.js → chunk-IFFCHE3O.js} +1 -1
  57. package/dist/{chunk-L5PM7B3I.js.map → chunk-IFFCHE3O.js.map} +1 -1
  58. package/dist/{chunk-4VAUQBFJ.js → chunk-IWULSPDY.js} +3 -3
  59. package/dist/{chunk-33ZUPQRA.js → chunk-JLUOSKCU.js} +2 -2
  60. package/dist/{chunk-6GOJZ3J6.js → chunk-JWFBN2LM.js} +2 -2
  61. package/dist/{chunk-FOBC27IU.js → chunk-KBO44266.js} +8 -8
  62. package/dist/{chunk-EL6VOZBN.js → chunk-KU3K2WNM.js} +10 -10
  63. package/dist/{chunk-RDCKC5MI.js → chunk-LP326T2D.js} +3 -3
  64. package/dist/{chunk-WRTLTOHA.js → chunk-MFKWQJRQ.js} +2 -2
  65. package/dist/{chunk-6TDEZRCX.js → chunk-NMQF4CAA.js} +2 -2
  66. package/dist/{chunk-5HIYPMHC.js → chunk-PJIJA3MK.js} +3 -3
  67. package/dist/{chunk-N72KBIZ2.js → chunk-Q5Q3IHPP.js} +16 -10
  68. package/dist/chunk-Q5Q3IHPP.js.map +1 -0
  69. package/dist/{chunk-MPNLLPJK.js → chunk-QQ4GEUCX.js} +2 -2
  70. package/dist/{chunk-LOULFH66.js → chunk-R6DTQYSK.js} +3 -3
  71. package/dist/{chunk-FSBJJUW3.js → chunk-SC76A2ZT.js} +10 -10
  72. package/dist/{chunk-C2NKFGZA.js → chunk-SMCMHPFY.js} +2 -2
  73. package/dist/{chunk-WTQHJ6NE.js → chunk-T4Q57NRP.js} +2 -2
  74. package/dist/{chunk-QCP75JGO.js → chunk-TFA6HPOA.js} +5 -5
  75. package/dist/{chunk-ZZ5S2SFB.js → chunk-TS3ILFYM.js} +3 -3
  76. package/dist/{chunk-ZUFOTAOD.js → chunk-TVMPYREI.js} +8 -8
  77. package/dist/{chunk-6Q2BIF5F.js → chunk-UDUJIKFQ.js} +3 -3
  78. package/dist/{chunk-P7FC7N5Z.js → chunk-UJAOI56X.js} +2 -2
  79. package/dist/{chunk-ITUZ54A5.js → chunk-UTY3HL57.js} +2 -2
  80. package/dist/chunk-V24YLFJW.js +72 -0
  81. package/dist/chunk-V24YLFJW.js.map +1 -0
  82. package/dist/{chunk-X6QQNDIW.js → chunk-VIWACB5U.js} +4 -4
  83. package/dist/{chunk-GBHURLXI.js → chunk-VKS2WV2M.js} +2 -2
  84. package/dist/{chunk-SH4R3FVM.js → chunk-VYX7W6EB.js} +2 -2
  85. package/dist/{chunk-JLH6HOJX.js → chunk-WGYORDDM.js} +122 -122
  86. package/dist/{chunk-FA7SLQ5X.js → chunk-WUQH7BDU.js} +1 -1
  87. package/dist/chunk-WUQH7BDU.js.map +1 -0
  88. package/dist/{chunk-CNCN5UN4.js → chunk-WY7QVTBD.js} +2 -2
  89. package/dist/{chunk-VOF42L6Q.js → chunk-X33UXMUS.js} +3 -3
  90. package/dist/{chunk-UVYI6VIX.js → chunk-X7Y7WX73.js} +1 -1
  91. package/dist/{chunk-SED6JMID.js → chunk-XN3F3V5H.js} +7 -7
  92. package/dist/{chunk-SAM4RDS4.js → chunk-Y6RTVJJK.js} +2 -2
  93. package/dist/{chunk-2UE5JB3G.js → chunk-Y7LKZQ4T.js} +2 -2
  94. package/dist/{chunk-4L7R2ING.js → chunk-Z7GJNZTY.js} +2 -2
  95. package/dist/{chunk-SVP57SAR.js → chunk-ZBK3UBMB.js} +4 -4
  96. package/dist/{chunk-G3T6YMBO.js → chunk-ZGEBQW2J.js} +8 -4
  97. package/dist/{chunk-G3T6YMBO.js.map → chunk-ZGEBQW2J.js.map} +1 -1
  98. package/dist/chunk-ZTJPFACY.js +33 -0
  99. package/dist/chunk-ZTJPFACY.js.map +1 -0
  100. package/dist/cli.js +90 -88
  101. package/dist/coding/export-okf-codegraph.js +10 -10
  102. package/dist/compounding/engine.js +12 -12
  103. package/dist/config.js +16 -16
  104. package/dist/connectors/codex-materialize-runner.js +11 -11
  105. package/dist/connectors/index.js +11 -11
  106. package/dist/convergence-refresh.js +13 -13
  107. package/dist/conversation-index/backend.js +2 -2
  108. package/dist/corpus-watermark.js +13 -13
  109. package/dist/deep-recall-http-glue.js +8 -8
  110. package/dist/deep-recall.js +2 -2
  111. package/dist/entity-retrieval.js +11 -11
  112. package/dist/explicit-capture.js +90 -88
  113. package/dist/extraction-error-classification.d.ts +2 -0
  114. package/dist/extraction-error-classification.d.ts.map +1 -1
  115. package/dist/extraction-error-classification.js +1 -1
  116. package/dist/extraction-reply-diagnostic.d.ts +31 -0
  117. package/dist/extraction-reply-diagnostic.d.ts.map +1 -0
  118. package/dist/extraction-reply-diagnostic.js +13 -0
  119. package/dist/extraction-reply-diagnostic.js.map +1 -0
  120. package/dist/extraction.d.ts +0 -1
  121. package/dist/extraction.d.ts.map +1 -1
  122. package/dist/extraction.js +18 -17
  123. package/dist/{first-start-migration-FILJH3RO.js → first-start-migration-U4K2P7KF.js} +4 -4
  124. package/dist/harmonic-retrieval.js +11 -11
  125. package/dist/index.js +120 -118
  126. package/dist/lcm/index.js +3 -3
  127. package/dist/local-llm-helpers.d.ts +1 -0
  128. package/dist/local-llm-helpers.d.ts.map +1 -1
  129. package/dist/local-llm-helpers.js +1 -1
  130. package/dist/local-llm.js +3 -3
  131. package/dist/location/index.js +12 -12
  132. package/dist/maintenance/memory-governance.js +11 -11
  133. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +11 -11
  134. package/dist/maintenance/rebuild-memory-projection-runner.js +13 -13
  135. package/dist/maintenance/rebuild-memory-projection.js +12 -12
  136. package/dist/namespaces/migrate.js +12 -12
  137. package/dist/namespaces/search.js +6 -6
  138. package/dist/namespaces/storage.js +11 -11
  139. package/dist/offline-sync-changeset-generations.js +3 -3
  140. package/dist/offline-sync-embedding-generation.js +2 -2
  141. package/dist/offline-sync-snapshot-stream.js +5 -5
  142. package/dist/offline-sync.js +7 -7
  143. package/dist/operator-doctor-corpus.js +14 -14
  144. package/dist/operator-toolkit.js +23 -23
  145. package/dist/orchestration/backlog-scheduler.js +91 -89
  146. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  147. package/dist/orchestration/buffer-drain-runner.js +91 -89
  148. package/dist/orchestration/maintenance.js +22 -22
  149. package/dist/orchestrator.js +90 -88
  150. package/dist/recall-navigation.js +90 -88
  151. package/dist/resume-bundles.js +19 -19
  152. package/dist/search/factory.js +5 -5
  153. package/dist/search/index.js +9 -9
  154. package/dist/semantic-consolidation.js +12 -12
  155. package/dist/semantic-rule-promotion.js +11 -11
  156. package/dist/semantic-rule-verifier.js +11 -11
  157. package/dist/source-agent-qualifier.js +11 -11
  158. package/dist/standup/build.js +11 -11
  159. package/dist/storage.js +10 -10
  160. package/dist/summarizer.js +4 -4
  161. package/dist/support-passport/index.js +4 -4
  162. package/dist/transcript.js +2 -2
  163. package/dist/transfer/backup.js +2 -2
  164. package/dist/transfer/capsule-export.js +2 -2
  165. package/dist/transfer/capsule-import.js +2 -2
  166. package/dist/transfer/export-okf.js +11 -11
  167. package/dist/verified-recall.js +11 -11
  168. package/dist/who-knows-cli.js +12 -12
  169. package/dist/who-knows.js +11 -11
  170. package/package.json +12 -2
  171. package/src/adapters/devin.test.ts +75 -0
  172. package/src/adapters/devin.ts +45 -0
  173. package/src/adapters/grok-opencode.test.ts +1 -0
  174. package/src/adapters/index.ts +1 -0
  175. package/src/adapters/registry.ts +2 -0
  176. package/src/extraction-error-classification.ts +2 -0
  177. package/src/extraction-reply-diagnostic-wiring.test.ts +87 -0
  178. package/src/extraction-reply-diagnostic.test.ts +130 -0
  179. package/src/extraction-reply-diagnostic.ts +105 -0
  180. package/src/extraction.ts +7 -16
  181. package/src/local-llm-headers-timeout.test.ts +24 -1
  182. package/src/local-llm-helpers.ts +1 -1
  183. package/src/local-llm.ts +3 -3
  184. package/dist/chunk-FA7SLQ5X.js.map +0 -1
  185. package/dist/chunk-N72KBIZ2.js.map +0 -1
  186. package/dist/chunk-XW2T4QAW.js +0 -1
  187. /package/dist/{capsule-crypto-GWVG7LGC.js.map → adapters/devin.js.map} +0 -0
  188. /package/dist/{chunk-XW2T4QAW.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  189. /package/dist/{chunk-OWHERGF2.js.map → chunk-2NLLXCJG.js.map} +0 -0
  190. /package/dist/{chunk-FCTVE5LR.js.map → chunk-3B7EF4MP.js.map} +0 -0
  191. /package/dist/{chunk-LMOMY73A.js.map → chunk-3OEZA5TR.js.map} +0 -0
  192. /package/dist/{chunk-K6TY4CE2.js.map → chunk-3S7VJJTG.js.map} +0 -0
  193. /package/dist/{chunk-NOWVCYNK.js.map → chunk-53VLXNAO.js.map} +0 -0
  194. /package/dist/{chunk-5RONA5FF.js.map → chunk-7DFJ4JX2.js.map} +0 -0
  195. /package/dist/{chunk-BUKK5SWA.js.map → chunk-7LCGFUMB.js.map} +0 -0
  196. /package/dist/{chunk-5PCUUGLT.js.map → chunk-7P72BY4F.js.map} +0 -0
  197. /package/dist/{chunk-T45PJYFQ.js.map → chunk-AC6F3ADA.js.map} +0 -0
  198. /package/dist/{chunk-OGLKGZ43.js.map → chunk-AM5ZNSUK.js.map} +0 -0
  199. /package/dist/{chunk-QPHUVP2P.js.map → chunk-B5LNHYSG.js.map} +0 -0
  200. /package/dist/{chunk-DE75UQ57.js.map → chunk-CHZMU6HA.js.map} +0 -0
  201. /package/dist/{chunk-2XEUUKDW.js.map → chunk-CKUDZMC3.js.map} +0 -0
  202. /package/dist/{chunk-HBNMJ26J.js.map → chunk-EGLJALMG.js.map} +0 -0
  203. /package/dist/{chunk-DF7YDJIM.js.map → chunk-EOJF66EQ.js.map} +0 -0
  204. /package/dist/{chunk-CPWYYRJ2.js.map → chunk-GFZRBHLH.js.map} +0 -0
  205. /package/dist/{chunk-WQGVW3G3.js.map → chunk-GSRRD7ZJ.js.map} +0 -0
  206. /package/dist/{chunk-4RASUAN3.js.map → chunk-HXFIILGF.js.map} +0 -0
  207. /package/dist/{chunk-4VAUQBFJ.js.map → chunk-IWULSPDY.js.map} +0 -0
  208. /package/dist/{chunk-33ZUPQRA.js.map → chunk-JLUOSKCU.js.map} +0 -0
  209. /package/dist/{chunk-6GOJZ3J6.js.map → chunk-JWFBN2LM.js.map} +0 -0
  210. /package/dist/{chunk-FOBC27IU.js.map → chunk-KBO44266.js.map} +0 -0
  211. /package/dist/{chunk-EL6VOZBN.js.map → chunk-KU3K2WNM.js.map} +0 -0
  212. /package/dist/{chunk-RDCKC5MI.js.map → chunk-LP326T2D.js.map} +0 -0
  213. /package/dist/{chunk-WRTLTOHA.js.map → chunk-MFKWQJRQ.js.map} +0 -0
  214. /package/dist/{chunk-6TDEZRCX.js.map → chunk-NMQF4CAA.js.map} +0 -0
  215. /package/dist/{chunk-5HIYPMHC.js.map → chunk-PJIJA3MK.js.map} +0 -0
  216. /package/dist/{chunk-MPNLLPJK.js.map → chunk-QQ4GEUCX.js.map} +0 -0
  217. /package/dist/{chunk-LOULFH66.js.map → chunk-R6DTQYSK.js.map} +0 -0
  218. /package/dist/{chunk-FSBJJUW3.js.map → chunk-SC76A2ZT.js.map} +0 -0
  219. /package/dist/{chunk-C2NKFGZA.js.map → chunk-SMCMHPFY.js.map} +0 -0
  220. /package/dist/{chunk-WTQHJ6NE.js.map → chunk-T4Q57NRP.js.map} +0 -0
  221. /package/dist/{chunk-QCP75JGO.js.map → chunk-TFA6HPOA.js.map} +0 -0
  222. /package/dist/{chunk-ZZ5S2SFB.js.map → chunk-TS3ILFYM.js.map} +0 -0
  223. /package/dist/{chunk-ZUFOTAOD.js.map → chunk-TVMPYREI.js.map} +0 -0
  224. /package/dist/{chunk-6Q2BIF5F.js.map → chunk-UDUJIKFQ.js.map} +0 -0
  225. /package/dist/{chunk-P7FC7N5Z.js.map → chunk-UJAOI56X.js.map} +0 -0
  226. /package/dist/{chunk-ITUZ54A5.js.map → chunk-UTY3HL57.js.map} +0 -0
  227. /package/dist/{chunk-X6QQNDIW.js.map → chunk-VIWACB5U.js.map} +0 -0
  228. /package/dist/{chunk-GBHURLXI.js.map → chunk-VKS2WV2M.js.map} +0 -0
  229. /package/dist/{chunk-SH4R3FVM.js.map → chunk-VYX7W6EB.js.map} +0 -0
  230. /package/dist/{chunk-JLH6HOJX.js.map → chunk-WGYORDDM.js.map} +0 -0
  231. /package/dist/{chunk-CNCN5UN4.js.map → chunk-WY7QVTBD.js.map} +0 -0
  232. /package/dist/{chunk-VOF42L6Q.js.map → chunk-X33UXMUS.js.map} +0 -0
  233. /package/dist/{chunk-UVYI6VIX.js.map → chunk-X7Y7WX73.js.map} +0 -0
  234. /package/dist/{chunk-SED6JMID.js.map → chunk-XN3F3V5H.js.map} +0 -0
  235. /package/dist/{chunk-SAM4RDS4.js.map → chunk-Y6RTVJJK.js.map} +0 -0
  236. /package/dist/{chunk-2UE5JB3G.js.map → chunk-Y7LKZQ4T.js.map} +0 -0
  237. /package/dist/{chunk-4L7R2ING.js.map → chunk-Z7GJNZTY.js.map} +0 -0
  238. /package/dist/{chunk-SVP57SAR.js.map → chunk-ZBK3UBMB.js.map} +0 -0
  239. /package/dist/{first-start-migration-FILJH3RO.js.map → first-start-migration-U4K2P7KF.js.map} +0 -0
@@ -16,6 +16,14 @@ import {
16
16
  syncWearableSource,
17
17
  wearableSourceLabel
18
18
  } from "./chunk-B3DR2JBZ.js";
19
+ import {
20
+ exportWorkBoardMarkdown,
21
+ exportWorkBoardSnapshot,
22
+ importWorkBoardSnapshot
23
+ } from "./chunk-W4F3C7N7.js";
24
+ import {
25
+ WorkStorage
26
+ } from "./chunk-MPC7TYTZ.js";
19
27
  import {
20
28
  chatgptReplayNormalizer
21
29
  } from "./chunk-MMACM5G2.js";
@@ -32,40 +40,36 @@ import {
32
40
  importSqlite
33
41
  } from "./chunk-PYHOAXTI.js";
34
42
  import {
35
- exportWorkBoardMarkdown,
36
- exportWorkBoardSnapshot,
37
- importWorkBoardSnapshot
38
- } from "./chunk-W4F3C7N7.js";
39
- import {
40
- WorkStorage
41
- } from "./chunk-MPC7TYTZ.js";
43
+ backupMemoryDir
44
+ } from "./chunk-2NLLXCJG.js";
42
45
  import {
43
46
  importCapsule
44
- } from "./chunk-HBNMJ26J.js";
47
+ } from "./chunk-EGLJALMG.js";
45
48
  import {
46
49
  exportJsonBundle
47
50
  } from "./chunk-UP6MOYCB.js";
48
51
  import {
49
52
  exportOkfBundle,
50
53
  parseIncludeStatus
51
- } from "./chunk-ITUZ54A5.js";
54
+ } from "./chunk-UTY3HL57.js";
52
55
  import {
53
56
  exportSqlite
54
57
  } from "./chunk-BV2TIZ4F.js";
58
+ import {
59
+ buildStandup,
60
+ parseStandupDate
61
+ } from "./chunk-EOJF66EQ.js";
55
62
  import {
56
63
  SupportPassportAccessSurface,
57
64
  createSupportPassportModelAdapter,
58
65
  supportsSupportPassportPrivateFiles
59
- } from "./chunk-SH4R3FVM.js";
66
+ } from "./chunk-VYX7W6EB.js";
60
67
  import {
61
68
  detectImportFormat
62
69
  } from "./chunk-OZKVVUJB.js";
63
70
  import {
64
71
  importJsonBundle
65
72
  } from "./chunk-2DL3OFLD.js";
66
- import {
67
- backupMemoryDir
68
- } from "./chunk-OWHERGF2.js";
69
73
  import {
70
74
  exportMarkdownBundle
71
75
  } from "./chunk-765K3SAT.js";
@@ -73,10 +77,6 @@ import {
73
77
  isSharedContextWriteInputError,
74
78
  parseSharedWriteOutputControls
75
79
  } from "./chunk-IFBSZGW3.js";
76
- import {
77
- buildStandup,
78
- parseStandupDate
79
- } from "./chunk-DF7YDJIM.js";
80
80
  import {
81
81
  buildReplayNormalizerRegistry,
82
82
  clampBatchSize,
@@ -89,6 +89,9 @@ import {
89
89
  import {
90
90
  RoutingRulesStore
91
91
  } from "./chunk-TBUEE7XF.js";
92
+ import {
93
+ TailscaleHelper
94
+ } from "./chunk-SZDLX763.js";
92
95
  import {
93
96
  WebDavServer
94
97
  } from "./chunk-PYIFUBRK.js";
@@ -98,7 +101,7 @@ import {
98
101
  import {
99
102
  ActivityStore,
100
103
  MaintenanceScheduler
101
- } from "./chunk-EL6VOZBN.js";
104
+ } from "./chunk-KU3K2WNM.js";
102
105
  import {
103
106
  runPeerProfileReasoner
104
107
  } from "./chunk-I74SUMNI.js";
@@ -109,14 +112,17 @@ import {
109
112
  migrateFromEngram
110
113
  } from "./chunk-VZAKYDMJ.js";
111
114
  import {
112
- TailscaleHelper
113
- } from "./chunk-SZDLX763.js";
115
+ archiveObservations
116
+ } from "./chunk-7IGMKQWK.js";
114
117
  import {
115
118
  migrateObservations
116
119
  } from "./chunk-EDR6CVWZ.js";
117
120
  import {
118
121
  rebuildMemoryLifecycleLedger
119
- } from "./chunk-K6TY4CE2.js";
122
+ } from "./chunk-3S7VJJTG.js";
123
+ import {
124
+ LcmEngine
125
+ } from "./chunk-K3FH3LAQ.js";
120
126
  import {
121
127
  backfillMemoryStorage,
122
128
  runLocationBackfill,
@@ -124,13 +130,7 @@ import {
124
130
  runLocationDay,
125
131
  runLocationStatus,
126
132
  runLocationSync
127
- } from "./chunk-VOF42L6Q.js";
128
- import {
129
- archiveObservations
130
- } from "./chunk-7IGMKQWK.js";
131
- import {
132
- LcmEngine
133
- } from "./chunk-K3FH3LAQ.js";
133
+ } from "./chunk-X33UXMUS.js";
134
134
  import {
135
135
  executeResolution,
136
136
  isValidResolutionVerb,
@@ -142,26 +142,6 @@ import {
142
142
  import {
143
143
  cleanupConversationChunks
144
144
  } from "./chunk-C5JF6EZ7.js";
145
- import {
146
- runCompatChecks
147
- } from "./chunk-2524MOWK.js";
148
- import {
149
- CompoundingEngine,
150
- defaultTierMigrationCycleBudget
151
- } from "./chunk-6Q2BIF5F.js";
152
- import {
153
- SharedContextManager,
154
- UNATTRIBUTED_ACCESS_WRITE_ORIGIN
155
- } from "./chunk-JVBAPAWZ.js";
156
- import {
157
- AdapterRegistry
158
- } from "./chunk-G3T6YMBO.js";
159
- import {
160
- getBulkImportSource,
161
- listBulkImportSources,
162
- registerBulkImportSource,
163
- runBulkImportPipeline
164
- } from "./chunk-HSSERO3E.js";
165
145
  import {
166
146
  ACTIVE_DECISION_STATUSES,
167
147
  CodegraphRuntimeError,
@@ -186,6 +166,26 @@ import {
186
166
  import {
187
167
  isCodingGraphInstalled
188
168
  } from "./chunk-VQ7B2Q6M.js";
169
+ import {
170
+ runCompatChecks
171
+ } from "./chunk-2524MOWK.js";
172
+ import {
173
+ CompoundingEngine,
174
+ defaultTierMigrationCycleBudget
175
+ } from "./chunk-UDUJIKFQ.js";
176
+ import {
177
+ SharedContextManager,
178
+ UNATTRIBUTED_ACCESS_WRITE_ORIGIN
179
+ } from "./chunk-JVBAPAWZ.js";
180
+ import {
181
+ AdapterRegistry
182
+ } from "./chunk-ZGEBQW2J.js";
183
+ import {
184
+ getBulkImportSource,
185
+ listBulkImportSources,
186
+ registerBulkImportSource,
187
+ runBulkImportPipeline
188
+ } from "./chunk-HSSERO3E.js";
189
189
  import {
190
190
  WriteQuarantineStore
191
191
  } from "./chunk-BANSBRNX.js";
@@ -208,7 +208,7 @@ import {
208
208
  import {
209
209
  compareVerifiedEpisodeResults,
210
210
  searchVerifiedEpisodes
211
- } from "./chunk-33ZUPQRA.js";
211
+ } from "./chunk-JLUOSKCU.js";
212
212
  import {
213
213
  WHO_KNOWS_DEFAULT_LIMIT,
214
214
  WHO_KNOWS_MCP_TOOLS,
@@ -216,7 +216,7 @@ import {
216
216
  handleWhoKnowsHttpQuery,
217
217
  loadWhoKnowsEntities,
218
218
  validateWhoKnowsInput
219
- } from "./chunk-OGLKGZ43.js";
219
+ } from "./chunk-AM5ZNSUK.js";
220
220
  import {
221
221
  applyTrustScoreStage,
222
222
  buildTrustSignalsForRerank,
@@ -240,6 +240,9 @@ import {
240
240
  import {
241
241
  cleanArchivedUserMessage
242
242
  } from "./chunk-47DU4SGJ.js";
243
+ import {
244
+ decideTierTransition
245
+ } from "./chunk-C73N66PR.js";
243
246
  import {
244
247
  TmtBuilder
245
248
  } from "./chunk-ECZU5BJH.js";
@@ -258,13 +261,10 @@ import {
258
261
  import {
259
262
  TierMigrationExecutor
260
263
  } from "./chunk-YRFAYOFQ.js";
261
- import {
262
- decideTierTransition
263
- } from "./chunk-C73N66PR.js";
264
264
  import {
265
265
  HourlySummarizer,
266
266
  summarizeHourlyStatus
267
- } from "./chunk-5PCUUGLT.js";
267
+ } from "./chunk-7P72BY4F.js";
268
268
  import {
269
269
  buildTargetedFactRecallSection,
270
270
  shouldRecallTargetedFactEvidence
@@ -283,11 +283,11 @@ import {
283
283
  } from "./chunk-WWDO7ZWM.js";
284
284
  import {
285
285
  promoteSemanticRuleFromMemory
286
- } from "./chunk-WQGVW3G3.js";
286
+ } from "./chunk-GSRRD7ZJ.js";
287
287
  import {
288
288
  compareVerifiedSemanticRuleResults,
289
289
  searchVerifiedSemanticRules
290
- } from "./chunk-2XEUUKDW.js";
290
+ } from "./chunk-CKUDZMC3.js";
291
291
  import {
292
292
  buildResponseGuidanceRecallSection,
293
293
  shouldRecallResponseGuidance
@@ -296,7 +296,7 @@ import {
296
296
  buildResumeBundleFromState,
297
297
  getResumeBundleStatus,
298
298
  recordResumeBundle
299
- } from "./chunk-4VAUQBFJ.js";
299
+ } from "./chunk-IWULSPDY.js";
300
300
  import {
301
301
  getWorkProductLedgerStatus,
302
302
  recordWorkProductLedgerEntry,
@@ -305,7 +305,7 @@ import {
305
305
  import {
306
306
  TranscriptManager,
307
307
  utcDayRange
308
- } from "./chunk-5RONA5FF.js";
308
+ } from "./chunk-7DFJ4JX2.js";
309
309
  import {
310
310
  mergeWithAgentResults,
311
311
  runDirectAgent,
@@ -333,6 +333,9 @@ import {
333
333
  import {
334
334
  composeSalvagedEnvelope
335
335
  } from "./chunk-5CO5G4MN.js";
336
+ import {
337
+ findUnresolvedEntityRefs
338
+ } from "./chunk-X7XN6YU4.js";
336
339
  import {
337
340
  RelevanceStore
338
341
  } from "./chunk-X7J56GPG.js";
@@ -347,9 +350,6 @@ import {
347
350
  import {
348
351
  parseXrayCliOptions
349
352
  } from "./chunk-NHVAX7MH.js";
350
- import {
351
- findUnresolvedEntityRefs
352
- } from "./chunk-X7XN6YU4.js";
353
353
  import {
354
354
  LastRecallStore,
355
355
  RecallHandleHistoryStore,
@@ -374,6 +374,9 @@ import {
374
374
  filterRecentScanMemories,
375
375
  stateViewPacketActive
376
376
  } from "./chunk-G2DF5MI7.js";
377
+ import {
378
+ assertIdInNavigationWindow
379
+ } from "./chunk-5KVT6G5U.js";
377
380
  import {
378
381
  maybeRespondRecallNavigation
379
382
  } from "./chunk-WXDTOE6F.js";
@@ -393,18 +396,6 @@ import {
393
396
  import {
394
397
  parseNavigateLinkType
395
398
  } from "./chunk-7O5EW7KX.js";
396
- import {
397
- assertIdInNavigationWindow
398
- } from "./chunk-5KVT6G5U.js";
399
- import {
400
- reorderRecallResultsWithMmr
401
- } from "./chunk-IIK2PD3F.js";
402
- import {
403
- takeNavigateBudget
404
- } from "./chunk-VYDGHJIN.js";
405
- import {
406
- decideDisclosureEscalation
407
- } from "./chunk-H7XKCNR6.js";
408
399
  import {
409
400
  parseRecallExplainFormat,
410
401
  renderRecallExplain,
@@ -416,6 +407,15 @@ import {
416
407
  estimateRecallTokens,
417
408
  summarizeDisclosureTokens
418
409
  } from "./chunk-XNRLRNQF.js";
410
+ import {
411
+ reorderRecallResultsWithMmr
412
+ } from "./chunk-IIK2PD3F.js";
413
+ import {
414
+ takeNavigateBudget
415
+ } from "./chunk-VYDGHJIN.js";
416
+ import {
417
+ decideDisclosureEscalation
418
+ } from "./chunk-H7XKCNR6.js";
419
419
  import {
420
420
  compactRecallContextFromBuckets,
421
421
  decideRecallContextComposition,
@@ -425,6 +425,15 @@ import {
425
425
  import {
426
426
  applyReasoningTraceBoost
427
427
  } from "./chunk-EVWDNKQA.js";
428
+ import {
429
+ collectPatternMemories,
430
+ explainPatternMemory,
431
+ parsePatternsExplainOptions,
432
+ parsePatternsListOptions,
433
+ parseStrictCliDate,
434
+ renderPatternExplain,
435
+ renderPatternsList
436
+ } from "./chunk-3T74IZB3.js";
428
437
  import {
429
438
  PolicyRuntimeManager,
430
439
  readRuntimePolicySnapshot,
@@ -444,32 +453,23 @@ import {
444
453
  runOperatorRepair,
445
454
  runOperatorSetup,
446
455
  summarizeNamespaceMaintenanceHealth
447
- } from "./chunk-ZUFOTAOD.js";
456
+ } from "./chunk-TVMPYREI.js";
448
457
  import {
449
458
  NamespaceCatalog,
450
459
  isNamespaceKind,
451
460
  planNamespaceMaintenance
452
- } from "./chunk-NOWVCYNK.js";
461
+ } from "./chunk-53VLXNAO.js";
453
462
  import {
454
463
  analyzeSessionIntegrity,
455
464
  applySessionRepair,
456
465
  planSessionRepair
457
466
  } from "./chunk-KFY3SGN7.js";
458
- import {
459
- collectPatternMemories,
460
- explainPatternMemory,
461
- parsePatternsExplainOptions,
462
- parsePatternsListOptions,
463
- parseStrictCliDate,
464
- renderPatternExplain,
465
- renderPatternsList
466
- } from "./chunk-3T74IZB3.js";
467
- import {
468
- buildEmbeddingAwareSnapshotStream
469
- } from "./chunk-ZZ5S2SFB.js";
470
467
  import {
471
468
  ReplicaDivergenceMonitor
472
469
  } from "./chunk-7IWRLYFJ.js";
470
+ import {
471
+ buildEmbeddingAwareSnapshotStream
472
+ } from "./chunk-TS3ILFYM.js";
473
473
  import {
474
474
  NegativeExampleStore
475
475
  } from "./chunk-23L3IXFD.js";
@@ -551,10 +551,14 @@ import {
551
551
  import {
552
552
  readProjectedHarmonicGraph,
553
553
  searchHarmonicRetrieval
554
- } from "./chunk-4L7R2ING.js";
554
+ } from "./chunk-Z7GJNZTY.js";
555
555
  import {
556
556
  classifyMemoryKind
557
557
  } from "./chunk-YAZNBMNF.js";
558
+ import {
559
+ removeNodeEdgesForRewrite,
560
+ rollbackNodeEdgeRewrite
561
+ } from "./chunk-OM5ESBES.js";
558
562
  import {
559
563
  scoreEvidencePathDetail
560
564
  } from "./chunk-XXSOVESA.js";
@@ -565,10 +569,6 @@ import {
565
569
  buildFocusedListRecallSection,
566
570
  shouldRecallFocusedListEvidence
567
571
  } from "./chunk-BPPUH5JM.js";
568
- import {
569
- removeNodeEdgesForRewrite,
570
- rollbackNodeEdgeRewrite
571
- } from "./chunk-OM5ESBES.js";
572
572
  import {
573
573
  chunkExtractionWindow,
574
574
  classifyDrainResult,
@@ -577,7 +577,7 @@ import {
577
577
  } from "./chunk-LZIOY7ZU.js";
578
578
  import {
579
579
  ExtractionEngine
580
- } from "./chunk-N72KBIZ2.js";
580
+ } from "./chunk-Q5Q3IHPP.js";
581
581
  import {
582
582
  wrapWorkLayerContext
583
583
  } from "./chunk-EI6V5UXY.js";
@@ -642,7 +642,7 @@ import {
642
642
  buildEntityRecallSection,
643
643
  entityRecentTranscriptLookbackHours,
644
644
  readRecentEntityTranscriptEntries
645
- } from "./chunk-C2NKFGZA.js";
645
+ } from "./chunk-SMCMHPFY.js";
646
646
  import {
647
647
  boundRecallContextComposition,
648
648
  composeMissingMemoryContext,
@@ -673,7 +673,7 @@ import {
673
673
  } from "./chunk-6SRYCJ5I.js";
674
674
  import {
675
675
  respondDeepRecall
676
- } from "./chunk-WRTLTOHA.js";
676
+ } from "./chunk-MFKWQJRQ.js";
677
677
  import {
678
678
  DEEP_RECALL_MCP_TOOLS
679
679
  } from "./chunk-HUSTM6PU.js";
@@ -688,19 +688,19 @@ import {
688
688
  } from "./chunk-3X5OPDPF.js";
689
689
  import {
690
690
  runBudgetedDeepRecall
691
- } from "./chunk-4RASUAN3.js";
691
+ } from "./chunk-HXFIILGF.js";
692
692
  import {
693
693
  CorpusWatermarkCache,
694
694
  computeServiceCorpusCensus
695
- } from "./chunk-DE75UQ57.js";
695
+ } from "./chunk-CHZMU6HA.js";
696
696
  import {
697
697
  listNamespaces,
698
698
  runNamespaceMigration,
699
699
  verifyNamespaces
700
- } from "./chunk-5HIYPMHC.js";
700
+ } from "./chunk-PJIJA3MK.js";
701
701
  import {
702
702
  NamespaceStorageRouter
703
- } from "./chunk-6TDEZRCX.js";
703
+ } from "./chunk-NMQF4CAA.js";
704
704
  import {
705
705
  CrossNamespaceBudget,
706
706
  toBudgetWarning
@@ -717,12 +717,12 @@ import {
717
717
  } from "./chunk-7G5NTS7F.js";
718
718
  import {
719
719
  refreshConvergedNamespaces
720
- } from "./chunk-WTQHJ6NE.js";
720
+ } from "./chunk-T4Q57NRP.js";
721
721
  import {
722
722
  rebuildMemoryProjection,
723
723
  repairMemoryProjection,
724
724
  verifyMemoryProjection
725
- } from "./chunk-LOULFH66.js";
725
+ } from "./chunk-R6DTQYSK.js";
726
726
  import {
727
727
  buildProposedActions,
728
728
  buildQualityScore,
@@ -731,7 +731,7 @@ import {
731
731
  readMemoryGovernanceRunArtifact,
732
732
  restoreMemoryGovernanceRun,
733
733
  runMemoryGovernance
734
- } from "./chunk-QPHUVP2P.js";
734
+ } from "./chunk-B5LNHYSG.js";
735
735
  import {
736
736
  collectNativeKnowledgeChunks,
737
737
  formatNativeKnowledgeSection,
@@ -764,7 +764,7 @@ import {
764
764
  materializeAfterSemanticConsolidation,
765
765
  parseConsolidationResponse,
766
766
  parseOperatorAwareConsolidationResponse
767
- } from "./chunk-SAM4RDS4.js";
767
+ } from "./chunk-Y6RTVJJK.js";
768
768
  import {
769
769
  resolveNamespaceChildRoot
770
770
  } from "./chunk-3UXOZBHV.js";
@@ -835,7 +835,7 @@ import {
835
835
  } from "./chunk-CSAKJVXW.js";
836
836
  import {
837
837
  LocalLlmClient
838
- } from "./chunk-SEOJHETP.js";
838
+ } from "./chunk-2NGTY22Z.js";
839
839
  import {
840
840
  isCapsuleImportArchiveInputError,
841
841
  validateCapsuleImportArchive
@@ -851,7 +851,7 @@ import {
851
851
  parseBriefingFocus,
852
852
  parseBriefingWindow,
853
853
  validateBriefingFormat
854
- } from "./chunk-2UE5JB3G.js";
854
+ } from "./chunk-Y7LKZQ4T.js";
855
855
  import {
856
856
  ReplayAdmissionRefusedError,
857
857
  StorageTargetRequiredError
@@ -912,7 +912,7 @@ import {
912
912
  validateCorrectionAction,
913
913
  validateCorrectionRequest,
914
914
  validateRedactionPattern
915
- } from "./chunk-X6QQNDIW.js";
915
+ } from "./chunk-VIWACB5U.js";
916
916
  import {
917
917
  compileCorrectionRule,
918
918
  correctionsFilePath,
@@ -1025,7 +1025,7 @@ import {
1025
1025
  reconstructFusionInputs,
1026
1026
  selfDeps,
1027
1027
  serializeFusionDay
1028
- } from "./chunk-FSBJJUW3.js";
1028
+ } from "./chunk-SC76A2ZT.js";
1029
1029
  import {
1030
1030
  buildRetiredFactTombstoneInputs
1031
1031
  } from "./chunk-QGVCFVX6.js";
@@ -1044,12 +1044,12 @@ import {
1044
1044
  embeddingBacklogExceeds,
1045
1045
  isSearchHealthDegraded,
1046
1046
  namespaceCollectionName
1047
- } from "./chunk-MPNLLPJK.js";
1047
+ } from "./chunk-QQ4GEUCX.js";
1048
1048
  import {
1049
1049
  createConversationIndexRuntime,
1050
1050
  createSearchBackend,
1051
1051
  isSearchBackendEnabled
1052
- } from "./chunk-FOBC27IU.js";
1052
+ } from "./chunk-KBO44266.js";
1053
1053
  import {
1054
1054
  NoopSearchBackend
1055
1055
  } from "./chunk-CYEPCZN5.js";
@@ -1190,7 +1190,7 @@ import {
1190
1190
  } from "./chunk-SYOIVK7K.js";
1191
1191
  import {
1192
1192
  createOfflineSyncManifestStream
1193
- } from "./chunk-CNCN5UN4.js";
1193
+ } from "./chunk-WY7QVTBD.js";
1194
1194
  import {
1195
1195
  peerManifestRevision
1196
1196
  } from "./chunk-M2XR6B6V.js";
@@ -1350,7 +1350,7 @@ import {
1350
1350
  } from "./chunk-EAHNSQ7H.js";
1351
1351
  import {
1352
1352
  splitCanonicalWriteRequest
1353
- } from "./chunk-CPWYYRJ2.js";
1353
+ } from "./chunk-GFZRBHLH.js";
1354
1354
  import {
1355
1355
  buildWithBriefingLocation,
1356
1356
  daySummaryAutoOptions,
@@ -1393,10 +1393,10 @@ import {
1393
1393
  retainedCategoryAlias,
1394
1394
  suggestionSubmitRequestSchema,
1395
1395
  validateRequest
1396
- } from "./chunk-RDCKC5MI.js";
1396
+ } from "./chunk-LP326T2D.js";
1397
1397
  import {
1398
1398
  exportCapsule
1399
- } from "./chunk-BUKK5SWA.js";
1399
+ } from "./chunk-7LCGFUMB.js";
1400
1400
  import {
1401
1401
  CAPSULE_ID_PATTERN
1402
1402
  } from "./chunk-WEHSQBFR.js";
@@ -1432,18 +1432,18 @@ import {
1432
1432
  buildOfflineSyncSnapshotFromBase,
1433
1433
  normalizeOfflineSyncChangeset,
1434
1434
  readOfflineSyncFileContentChunk
1435
- } from "./chunk-SED6JMID.js";
1435
+ } from "./chunk-XN3F3V5H.js";
1436
1436
  import {
1437
1437
  storageBackedIndexStoreIo
1438
- } from "./chunk-SVP57SAR.js";
1438
+ } from "./chunk-ZBK3UBMB.js";
1439
+ import {
1440
+ compileOfflineSyncExcludeGlobs
1441
+ } from "./chunk-63LFM77Z.js";
1439
1442
  import {
1440
1443
  assertIsDirectoryNotSymlink,
1441
1444
  assertRealpathInsideRoot,
1442
1445
  validateArchiveRelativePath
1443
1446
  } from "./chunk-GCGJW34D.js";
1444
- import {
1445
- compileOfflineSyncExcludeGlobs
1446
- } from "./chunk-63LFM77Z.js";
1447
1447
  import {
1448
1448
  serializeMutations,
1449
1449
  withHeldFileLock
@@ -23113,7 +23113,7 @@ var OrchestratorInitCoordinator = class {
23113
23113
  if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
23114
23114
  if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
23115
23115
  try {
23116
- const { runFirstStartMigration } = await import("./first-start-migration-FILJH3RO.js");
23116
+ const { runFirstStartMigration } = await import("./first-start-migration-U4K2P7KF.js");
23117
23117
  if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
23118
23118
  const result = await runFirstStartMigration({
23119
23119
  storage: this.deps.storage,
@@ -50865,7 +50865,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
50865
50865
  }
50866
50866
  }
50867
50867
  if (sourceArchive.endsWith(".enc")) {
50868
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
50868
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
50869
50869
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
50870
50870
  if (encDetected) {
50871
50871
  throw new Error(
@@ -51028,7 +51028,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51028
51028
  const { parseExportBundle } = await import("./transfer/types.js");
51029
51029
  let decryptedBuf;
51030
51030
  try {
51031
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
51031
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
51032
51032
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
51033
51033
  } catch (decErr) {
51034
51034
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -67233,4 +67233,4 @@ export {
67233
67233
  EngramAccessService,
67234
67234
  AccessAdminOpsSurface
67235
67235
  };
67236
- //# sourceMappingURL=chunk-JLH6HOJX.js.map
67236
+ //# sourceMappingURL=chunk-WGYORDDM.js.map
@@ -167,4 +167,4 @@ export {
167
167
  probeFetch,
168
168
  SingleFlightProbe
169
169
  };
170
- //# sourceMappingURL=chunk-FA7SLQ5X.js.map
170
+ //# sourceMappingURL=chunk-WUQH7BDU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/local-llm-helpers.ts"],"sourcesContent":["import type { ResponseFormatJSONSchema } from \"openai/resources/shared\";\nimport type { Agent } from \"undici\";\nimport { log } from \"./logger.js\";\nimport { directProbeDispatcher } 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: RequestInit & { dispatcher?: Agent } = { signal: requestSignal, headers: options.headers };\n const dispatcher = directProbeDispatcher();\n if (dispatcher) init.dispatcher = dispatcher;\n const response = await fetch(url, init);\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"],"mappings":";;;;;;;;AAgCO,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;AAC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D;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NS7U4ZYU.js";
15
15
  import {
16
16
  iterateOfflineSyncSnapshotFileRecords
17
- } from "./chunk-SED6JMID.js";
17
+ } from "./chunk-XN3F3V5H.js";
18
18
 
19
19
  // src/access-offline-manifest.ts
20
20
  import * as nodePath from "path";
@@ -250,4 +250,4 @@ export {
250
250
  retainExcludedClassifications,
251
251
  createOfflineSyncManifestStream
252
252
  };
253
- //# sourceMappingURL=chunk-CNCN5UN4.js.map
253
+ //# sourceMappingURL=chunk-WY7QVTBD.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot
3
- } from "./chunk-6TDEZRCX.js";
3
+ } from "./chunk-NMQF4CAA.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-FSBJJUW3.js";
6
+ } from "./chunk-SC76A2ZT.js";
7
7
  import {
8
8
  resolveNamespaceCapabilities
9
9
  } from "./chunk-C5LWPYS3.js";
@@ -779,4 +779,4 @@ export {
779
779
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
780
780
  startLocationAutoSync
781
781
  };
782
- //# sourceMappingURL=chunk-VOF42L6Q.js.map
782
+ //# sourceMappingURL=chunk-X33UXMUS.js.map
@@ -246,4 +246,4 @@ export {
246
246
  decryptCapsuleFile,
247
247
  decryptCapsuleFileInMemory
248
248
  };
249
- //# sourceMappingURL=chunk-UVYI6VIX.js.map
249
+ //# sourceMappingURL=chunk-X7Y7WX73.js.map