@cortexkit/opencode-magic-context 0.49.19 → 0.49.20

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 (271) hide show
  1. package/dist/auto-search-worker.js +48 -9
  2. package/dist/chunk-embedding-write-worker.js +30 -23
  3. package/dist/{compaction-marker-candidates-n4krhat4.js → compaction-marker-candidates-b2q30cft.js} +3 -3
  4. package/dist/compaction-marker-candidates-worker.js +2 -2
  5. package/dist/compartment-chunk-embedding-va090as0.js +65 -0
  6. package/dist/config/schema/magic-context.d.ts +6 -6
  7. package/dist/{conflict-warning-hook-4pmz879v.js → conflict-warning-hook-frp3z2wk.js} +9 -8
  8. package/dist/{context-j31m2dv7.js → context-mkece1db.js} +455 -134
  9. package/dist/{derive-budgets-zn7yzd2d.js → derive-budgets-pqybnx09.js} +2 -2
  10. package/dist/embedding-backfill-gy3p78py.js +25 -0
  11. package/dist/embedding-worker-process.js +2 -2
  12. package/dist/embedding-worker.js +5 -5
  13. package/dist/features/magic-context/chunk-embedding-writer.d.ts.map +1 -1
  14. package/dist/features/magic-context/compartment-chunk-embedding.d.ts +44 -1
  15. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  16. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
  17. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
  18. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +2 -0
  19. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  20. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  21. package/dist/features/magic-context/memory/embedding-local.d.ts +1 -0
  22. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  23. package/dist/features/magic-context/memory/local-embedding-pooling.d.ts +22 -0
  24. package/dist/features/magic-context/memory/local-embedding-pooling.d.ts.map +1 -0
  25. package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
  26. package/dist/features/magic-context/message-index.d.ts +2 -0
  27. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  28. package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
  29. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  30. package/dist/features/magic-context/search.d.ts +27 -0
  31. package/dist/features/magic-context/search.d.ts.map +1 -1
  32. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
  33. package/dist/features/magic-context/storage-meta-persisted.d.ts +1 -0
  34. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  35. package/dist/features/magic-context/subagent-token-capture.d.ts +20 -0
  36. package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
  37. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  38. package/dist/{history-owner-xp3pngv7.js → history-owner-36wp3mkb.js} +2 -2
  39. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  40. package/dist/hooks/magic-context/auto-embed-session.d.ts.map +1 -1
  41. package/dist/hooks/magic-context/auto-search-hint.d.ts +7 -1
  42. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  43. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  44. package/dist/hooks/magic-context/auto-search-worker-client.d.ts +33 -6
  45. package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
  46. package/dist/hooks/magic-context/cache-busting-signals.d.ts +5 -2
  47. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
  48. package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
  49. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  50. package/dist/hooks/magic-context/compartment-runner-types.d.ts +5 -0
  51. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  52. package/dist/hooks/magic-context/compartment-trigger.d.ts +1 -1
  53. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  54. package/dist/hooks/magic-context/diagnostic-log-state.d.ts +4 -0
  55. package/dist/hooks/magic-context/diagnostic-log-state.d.ts.map +1 -0
  56. package/dist/hooks/magic-context/execute-reclaim.d.ts +35 -0
  57. package/dist/hooks/magic-context/execute-reclaim.d.ts.map +1 -0
  58. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  59. package/dist/hooks/magic-context/hook.d.ts +1 -3
  60. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  61. package/dist/hooks/magic-context/latest-assistant-turn.d.ts +8 -0
  62. package/dist/hooks/magic-context/latest-assistant-turn.d.ts.map +1 -1
  63. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts +5 -0
  64. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
  65. package/dist/hooks/magic-context/nudge-evaluation-log.d.ts +3 -0
  66. package/dist/hooks/magic-context/nudge-evaluation-log.d.ts.map +1 -0
  67. package/dist/hooks/magic-context/pending-drop-eligibility.d.ts.map +1 -1
  68. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +4 -0
  69. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  70. package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
  71. package/dist/hooks/magic-context/system-date-refresh.d.ts +5 -5
  72. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  73. package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts +10 -0
  74. package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts.map +1 -0
  75. package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
  76. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  77. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  78. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +21 -6
  79. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  80. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  81. package/dist/{index-bjcnntmz.js → index-0wthn7fp.js} +468 -18
  82. package/dist/{index-kq82mtg0.js → index-11zf2wwc.js} +3 -3
  83. package/dist/{index-b5vqckbw.js → index-153r2q6z.js} +314 -127
  84. package/dist/{index-3h4dp9wb.js → index-1pefp8ar.js} +5 -5
  85. package/dist/{index-beht37jy.js → index-1zx2pa5d.js} +1 -1
  86. package/dist/{index-ze7mvk54.js → index-2yhtnfcf.js} +75 -57
  87. package/dist/{index-cf74k5ak.js → index-305y133n.js} +4 -4
  88. package/dist/{index-s734jcsr.js → index-35qc6606.js} +9 -3
  89. package/dist/{index-se4m2g6w.js → index-48stjd56.js} +105 -19
  90. package/dist/{index-4911rn0b.js → index-4n7w9rad.js} +6 -6
  91. package/dist/{index-kee4kn5j.js → index-4pnsgvfk.js} +1 -1
  92. package/dist/{v2/server-8cd2j99z.js → index-5kym00ag.js} +32 -13
  93. package/dist/{index-4s3t0nd0.js → index-616rsjrv.js} +2 -2
  94. package/dist/{index-jhghdnsm.js → index-67nyj0gy.js} +485 -202
  95. package/dist/{index-6x57ar45.js → index-adk2z5d8.js} +3 -3
  96. package/dist/{index-c5pytzne.js → index-b88dwwrh.js} +1 -1
  97. package/dist/{index-rr2bb45z.js → index-c4b76d4t.js} +2 -2
  98. package/dist/{index-nj7yykkx.js → index-c7phnbvk.js} +1 -1
  99. package/dist/index-cpjk5jd2.js +82 -0
  100. package/dist/{index-edmpdxcw.js → index-d6rp4dxh.js} +5 -5
  101. package/dist/{index-dxmq29t1.js → index-dc8hy95c.js} +69 -17
  102. package/dist/{index-j75v2476.js → index-h7tgn49j.js} +12 -15
  103. package/dist/{index-ke416mdc.js → index-j76ah6d7.js} +2 -2
  104. package/dist/{index-c1p88z1y.js → index-jfh3cktr.js} +4 -4
  105. package/dist/{index-a6mc0v4d.js → index-jmycsey7.js} +3 -3
  106. package/dist/{index-24fezq97.js → index-jr5na10t.js} +4 -4
  107. package/dist/{index-s74zqahq.js → index-kc9pn495.js} +4 -4
  108. package/dist/{index-p5y3k4g7.js → index-nda0zgna.js} +2 -1
  109. package/dist/{index-jn12fvvh.js → index-neb2jaed.js} +3 -3
  110. package/dist/{index-63k48rv9.js → index-pnjwa6qa.js} +5 -5
  111. package/dist/{index-jrr131e0.js → index-rmd0069m.js} +11 -11
  112. package/dist/{index-y9f76s3f.js → index-rrv26qjz.js} +1 -1
  113. package/dist/{index-v10f1rjv.js → index-spwjbkc7.js} +1 -1
  114. package/dist/{index-k29z4aqh.js → index-t5pck3ss.js} +1 -1
  115. package/dist/{index-3esx8tkf.js → index-t7hx3qcb.js} +318 -104
  116. package/dist/{index-rpxdjkm0.js → index-v7r4td4c.js} +306 -59
  117. package/dist/{index-2vxtcb95.js → index-vkc1ca9p.js} +2 -2
  118. package/dist/{index-9zcsy3hh.js → index-x4k3f4mf.js} +17 -9
  119. package/dist/{index-bp5083x2.js → index-x9k3mqrf.js} +1 -1
  120. package/dist/{index-n37sebck.js → index-y4a3nhtk.js} +1 -1
  121. package/dist/index.js +52 -49
  122. package/dist/{logger-jm3sqqzr.js → logger-94kew5wm.js} +1 -1
  123. package/dist/{message-fts-rowid-map-17s0dfn4.js → message-fts-rowid-map-22tevnnj.js} +6 -5
  124. package/dist/{message-index-gtpqnj8w.js → message-index-5qxcz6h7.js} +16 -15
  125. package/dist/{message-index-bounded-zyc8h32y.js → message-index-bounded-n0m0t7tv.js} +16 -15
  126. package/dist/{message-time-backfill-73mmm76q.js → message-time-backfill-0myx7fz3.js} +3 -3
  127. package/dist/migration-worker.js +13 -12
  128. package/dist/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
  129. package/dist/plugin/embedding-bootstrap.d.ts +3 -1
  130. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
  131. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  132. package/dist/plugin/rpc-handlers.d.ts +8 -0
  133. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  134. package/dist/plugin/subagent-tool-policy.d.ts +9 -0
  135. package/dist/plugin/subagent-tool-policy.d.ts.map +1 -1
  136. package/dist/{project-embedding-registry-z74mhqkf.js → project-embedding-registry-s2pqgec9.js} +13 -12
  137. package/dist/raw-ordinal-warmup-worker.js +136 -101
  138. package/dist/{read-session-chunk-jjb48bt9.js → read-session-chunk-0a8vdyqp.js} +11 -10
  139. package/dist/{read-session-raw-rsc8c7qy.js → read-session-raw-y5cszf0b.js} +4 -3
  140. package/dist/recomp-orchestrator-61vyha9j.js +62 -0
  141. package/dist/{safe-notification-target-1szv1k5k.js → safe-notification-target-mkr9yzvr.js} +2 -2
  142. package/dist/{search-archive-6vm0e2f5.js → search-archive-8q9s49p5.js} +12 -11
  143. package/dist/{search-xsqk1bj4.js → search-v1y9ejws.js} +25 -24
  144. package/dist/{send-session-notification-6ve0e8p4.js → send-session-notification-0k6qzydk.js} +7 -6
  145. package/dist/shared/logger.d.ts.map +1 -1
  146. package/dist/shared/model-resolution.d.ts +2 -0
  147. package/dist/shared/model-resolution.d.ts.map +1 -1
  148. package/dist/shared/prompt-async-transport.d.ts +3 -0
  149. package/dist/shared/prompt-async-transport.d.ts.map +1 -1
  150. package/dist/shared/rpc-types.d.ts +7 -0
  151. package/dist/shared/rpc-types.d.ts.map +1 -1
  152. package/dist/shared/sqlite.d.ts +1 -1
  153. package/dist/shared/sqlite.d.ts.map +1 -1
  154. package/dist/shared/subagent-runner.d.ts +2 -0
  155. package/dist/shared/subagent-runner.d.ts.map +1 -1
  156. package/dist/shared/worker-shutdown.d.ts +68 -0
  157. package/dist/shared/worker-shutdown.d.ts.map +1 -0
  158. package/dist/shared/worker-shutdown.fixture.d.ts +2 -0
  159. package/dist/shared/worker-shutdown.fixture.d.ts.map +1 -0
  160. package/dist/{sqlite-zf72c52d.js → sqlite-1rpvw2rj.js} +1 -1
  161. package/dist/{storage-memory-y3qmy00r.js → storage-memory-nm7v82mj.js} +2 -2
  162. package/dist/{storage-tags-r7k9tjcv.js → storage-tags-r6nk29n4.js} +5 -5
  163. package/dist/{task-config-x3qmayd2.js → task-config-t6bpyka7.js} +2 -2
  164. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  165. package/dist/{transform-postprocess-phase-jj99r7z2.js → transform-postprocess-phase-vtrgb7m6.js} +34 -31
  166. package/dist/v2/auto-search-worker.js +48 -9
  167. package/dist/v2/chunk-embedding-write-worker.js +30 -23
  168. package/dist/v2/{compaction-marker-candidates-ebx3388k.js → compaction-marker-candidates-cfab70cs.js} +3 -3
  169. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  170. package/dist/v2/compartment-chunk-embedding-nbdqx1td.js +64 -0
  171. package/dist/v2/{context-y5yamxak.js → context-cc33tv2z.js} +1189 -386
  172. package/dist/v2/{derive-budgets-2zh4gm2c.js → derive-budgets-knf763tt.js} +3 -3
  173. package/dist/v2/embedding-backfill-yxv2h5mc.js +24 -0
  174. package/dist/v2/embedding-worker-process.js +2 -2
  175. package/dist/v2/embedding-worker.js +5 -5
  176. package/dist/v2/hidden-child-record.d.ts +2 -0
  177. package/dist/v2/hidden-child-record.d.ts.map +1 -1
  178. package/dist/v2/hidden-completion.d.ts +2 -0
  179. package/dist/v2/hidden-completion.d.ts.map +1 -1
  180. package/dist/v2/hidden-model-activity.d.ts +7 -0
  181. package/dist/v2/hidden-model-activity.d.ts.map +1 -0
  182. package/dist/v2/{history-owner-42e16w0n.js → history-owner-ad0crnrn.js} +2 -2
  183. package/dist/v2/hooks/context.d.ts.map +1 -1
  184. package/dist/v2/hooks/generate.d.ts +36 -1
  185. package/dist/v2/hooks/generate.d.ts.map +1 -1
  186. package/dist/v2/hooks/lkg-system.d.ts +35 -4
  187. package/dist/v2/hooks/lkg-system.d.ts.map +1 -1
  188. package/dist/v2/hooks/payload.d.ts +16 -1
  189. package/dist/v2/hooks/payload.d.ts.map +1 -1
  190. package/dist/v2/{logger-7qt02bnb.js → logger-p34mjtja.js} +1 -1
  191. package/dist/v2/{message-fts-rowid-map-wfx67gfd.js → message-fts-rowid-map-dg12wymk.js} +6 -5
  192. package/dist/v2/{message-index-bounded-spd8r7pj.js → message-index-bounded-f4e01xk0.js} +16 -15
  193. package/dist/v2/{message-index-8vz2pq76.js → message-index-ydzrp6y6.js} +16 -15
  194. package/dist/v2/{message-time-backfill-04t0km1z.js → message-time-backfill-ddh8n9gy.js} +3 -3
  195. package/dist/v2/migration-worker.js +13 -12
  196. package/dist/v2/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
  197. package/dist/v2/{project-embedding-registry-gnkj56xp.js → project-embedding-registry-deza9ksw.js} +13 -12
  198. package/dist/v2/raw-ordinal-warmup-worker.js +136 -101
  199. package/dist/v2/{read-session-chunk-cwkxrmns.js → read-session-chunk-8cxfagky.js} +11 -10
  200. package/dist/v2/{read-session-raw-yaegtjzh.js → read-session-raw-1nrrecvx.js} +4 -3
  201. package/dist/v2/recomp-orchestrator-47m4hv5g.js +61 -0
  202. package/dist/v2/{safe-notification-target-qg7n2s77.js → safe-notification-target-khnzg57c.js} +2 -2
  203. package/dist/v2/{search-archive-wve3tq1k.js → search-archive-e80cvc09.js} +12 -11
  204. package/dist/v2/{search-hwg7jfbj.js → search-fjz746zr.js} +25 -24
  205. package/dist/v2/{send-session-notification-3pxn658x.js → send-session-notification-nwvrv34d.js} +7 -6
  206. package/dist/v2/{server-8by8qfec.js → server-0epqaxhd.js} +75 -57
  207. package/dist/v2/{server-pwv4ezb0.js → server-168pb207.js} +1 -1
  208. package/dist/v2/{server-h0410h0v.js → server-1bw1wcbp.js} +1 -1
  209. package/dist/v2/{server-beht37jy.js → server-1zx2pa5d.js} +1 -1
  210. package/dist/v2/{server-a9xqj88f.js → server-230fnbws.js} +4 -4
  211. package/dist/v2/{server-tbe1femw.js → server-29qp8nz4.js} +1 -1
  212. package/dist/v2/{server-tgnbmwah.js → server-3mz2qh5a.js} +1 -1
  213. package/dist/v2/{server-hy3d3vsx.js → server-4nw4fqhr.js} +2 -2
  214. package/dist/v2/{server-45q69hkq.js → server-4sxjs6hn.js} +5 -5
  215. package/dist/v2/{server-34kwfsr4.js → server-53eh1r8r.js} +2 -2
  216. package/dist/v2/{server-xj136kt8.js → server-55rgxfrw.js} +9 -3
  217. package/dist/v2/{server-nj659894.js → server-5arr9ecn.js} +2 -2
  218. package/dist/{index-8cd2j99z.js → v2/server-5kym00ag.js} +32 -13
  219. package/dist/v2/{server-2ar62dyx.js → server-63fqdghs.js} +106 -20
  220. package/dist/v2/{server-f2xf5gcb.js → server-6495nmn9.js} +12 -15
  221. package/dist/v2/{server-qd11g795.js → server-92g7d776.js} +2 -1
  222. package/dist/v2/{server-xq7dfjke.js → server-9x0kmta4.js} +5 -5
  223. package/dist/v2/{server-27gq4mfz.js → server-a3dwxfgd.js} +4 -4
  224. package/dist/v2/{server-6tmj0s7j.js → server-af2pght7.js} +3 -3
  225. package/dist/v2/{server-1wy7b9de.js → server-br1x0tev.js} +3 -3
  226. package/dist/v2/{server-n1prf1g6.js → server-brj8j2gk.js} +2 -2
  227. package/dist/v2/{server-6vdzn1td.js → server-c7dxxsj7.js} +308 -61
  228. package/dist/v2/server-cpjk5jd2.js +82 -0
  229. package/dist/v2/{server-g3qma5c0.js → server-dj7tz4ph.js} +2 -2
  230. package/dist/v2/{server-9hx7g5jp.js → server-ej96a39v.js} +17 -9
  231. package/dist/v2/{server-6pmqg9m4.js → server-gyy4k6mf.js} +1 -1
  232. package/dist/v2/{server-bmymkx73.js → server-hqzyq8n4.js} +11 -11
  233. package/dist/v2/{server-h1v0pyxb.js → server-j4jnp9b5.js} +468 -18
  234. package/dist/v2/{server-da07v4xp.js → server-k3t06fxr.js} +1 -1
  235. package/dist/v2/{server-gsxjv2q2.js → server-m91f9m5s.js} +69 -17
  236. package/dist/v2/{server-rmygf5pn.js → server-ne8arh8t.js} +2 -2
  237. package/dist/v2/{server-hm38q7r0.js → server-vn2nwcv6.js} +5 -5
  238. package/dist/v2/{server-46neh5fa.js → server-wyawsa88.js} +314 -127
  239. package/dist/v2/{server-zzkj2fch.js → server-xsryvyf6.js} +4 -4
  240. package/dist/v2/{server-n37sebck.js → server-y4a3nhtk.js} +1 -1
  241. package/dist/v2/{server-d04vrx0j.js → server-ygtykank.js} +2 -2
  242. package/dist/v2/server.js +6 -6
  243. package/dist/v2/{sqlite-zf72c52d.js → sqlite-1rpvw2rj.js} +1 -1
  244. package/dist/v2/{storage-memory-y3qmy00r.js → storage-memory-nm7v82mj.js} +2 -2
  245. package/dist/v2/{storage-tags-3wdb8zph.js → storage-tags-ss08kj5r.js} +5 -5
  246. package/dist/v2/store-reader.d.ts +8 -0
  247. package/dist/v2/store-reader.d.ts.map +1 -1
  248. package/dist/v2/{task-config-nvz8mapa.js → task-config-7md27rx8.js} +2 -2
  249. package/dist/v2/{wrapup-orchestrator-embdz8gj.js → wrapup-orchestrator-639whfhq.js} +32 -31
  250. package/dist/wrapup-orchestrator-mnvt2g8m.js +49 -0
  251. package/package.json +1 -1
  252. package/src/config/index.test.ts +28 -6
  253. package/src/shared/logger.test.ts +42 -1
  254. package/src/shared/logger.ts +11 -13
  255. package/src/shared/model-resolution.test.ts +67 -12
  256. package/src/shared/model-resolution.ts +43 -16
  257. package/src/shared/model-suggestion-retry.ts +1 -1
  258. package/src/shared/prompt-async-transport.ts +47 -3
  259. package/src/shared/rpc-types.ts +7 -0
  260. package/src/shared/sqlite-busy-budget-review.test.ts +6 -1
  261. package/src/shared/sqlite.ts +4 -2
  262. package/src/shared/subagent-runner.ts +2 -0
  263. package/src/shared/worker-shutdown-fence.test.ts +87 -0
  264. package/src/shared/worker-shutdown.fixture.ts +25 -0
  265. package/src/shared/worker-shutdown.test.ts +127 -0
  266. package/src/shared/worker-shutdown.ts +160 -0
  267. package/dist/embedding-backfill-fmz50tsy.js +0 -24
  268. package/dist/recomp-orchestrator-999jj4bc.js +0 -61
  269. package/dist/v2/embedding-backfill-7c7yr69y.js +0 -23
  270. package/dist/v2/recomp-orchestrator-f6m9jr7p.js +0 -60
  271. package/dist/wrapup-orchestrator-whhbjmaz.js +0 -48
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-c5pytzne.js";
3
+ } from "./index-b88dwwrh.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-pavzsdc6.js";
7
7
  import {
8
8
  log2
9
- } from "./index-j75v2476.js";
9
+ } from "./index-h7tgn49j.js";
10
10
  import {
11
11
  inRootAsyncContext2
12
- } from "./index-beht37jy.js";
12
+ } from "./index-1zx2pa5d.js";
13
13
 
14
14
  // ../../node_modules/.bun/@cortexkit+subc-client@0.11.1/node_modules/@cortexkit/subc-client/dist/client.js
15
15
  import { promises as fs2 } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-j75v2476.js";
3
+ } from "./index-h7tgn49j.js";
4
4
 
5
5
  // src/hooks/magic-context/read-session-formatting.ts
6
6
  import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./index-pavzsdc6.js";
4
4
  import {
5
5
  isUserHomeDirectory
6
- } from "./index-2vxtcb95.js";
6
+ } from "./index-vkc1ca9p.js";
7
7
  import {
8
8
  logSlowWriteTransaction
9
- } from "./index-k29z4aqh.js";
9
+ } from "./index-t5pck3ss.js";
10
10
 
11
11
  // src/features/magic-context/session-project-storage.ts
12
12
  var SESSION_CHUNK_REPAIR_BATCH_SIZE = 100;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-j75v2476.js";
3
+ } from "./index-h7tgn49j.js";
4
4
  import {
5
5
  canonicalProjectDirectory
6
6
  } from "./index-knvkbfvh.js";
@@ -0,0 +1,82 @@
1
+ // src/shared/worker-shutdown.ts
2
+ var WORKER_CLOSE_MESSAGE = { kind: "close" };
3
+ function isWorkerCloseMessage(message) {
4
+ return typeof message === "object" && message !== null && message.kind === WORKER_CLOSE_MESSAGE.kind;
5
+ }
6
+ function exitOnWorkerClose(port, closeConnections) {
7
+ const listener = (message) => {
8
+ if (!isWorkerCloseMessage(message))
9
+ return;
10
+ try {
11
+ closeConnections();
12
+ } finally {
13
+ process.exit(0);
14
+ }
15
+ };
16
+ if (!port)
17
+ return { closePort() {} };
18
+ port.on("message", listener);
19
+ let closed = false;
20
+ return {
21
+ closePort() {
22
+ if (closed)
23
+ return;
24
+ closed = true;
25
+ setTimeout(() => {
26
+ port.off("message", listener);
27
+ port.close();
28
+ });
29
+ }
30
+ };
31
+ }
32
+ var outcomes = new Map;
33
+ function createWorkerShutdown(worker, site, deadlineMs) {
34
+ let exited = false;
35
+ let forced = false;
36
+ let closing;
37
+ const exit = new Promise((resolve) => {
38
+ worker.once("exit", () => {
39
+ exited = true;
40
+ resolve();
41
+ });
42
+ });
43
+ const record = () => {
44
+ const counts = outcomes.get(site) ?? { graceful: 0, forced: 0 };
45
+ if (forced)
46
+ counts.forced += 1;
47
+ else
48
+ counts.graceful += 1;
49
+ outcomes.set(site, counts);
50
+ };
51
+ const terminate = () => {
52
+ forced = true;
53
+ worker.terminate().catch(() => {});
54
+ };
55
+ return {
56
+ close() {
57
+ if (closing)
58
+ return closing;
59
+ if (exited) {
60
+ closing = Promise.resolve();
61
+ return closing;
62
+ }
63
+ try {
64
+ worker.postMessage(WORKER_CLOSE_MESSAGE);
65
+ } catch {
66
+ terminate();
67
+ }
68
+ const fallback = setTimeout(() => {
69
+ if (!exited)
70
+ terminate();
71
+ }, deadlineMs);
72
+ fallback.unref?.();
73
+ closing = exit.then(() => {
74
+ clearTimeout(fallback);
75
+ record();
76
+ });
77
+ return closing;
78
+ }
79
+ };
80
+ }
81
+
82
+ export { isWorkerCloseMessage, exitOnWorkerClose, createWorkerShutdown };
@@ -3,21 +3,21 @@ import {
3
3
  } from "./index-kaqs6h31.js";
4
4
  import {
5
5
  getSqliteDatabasePath2
6
- } from "./index-beht37jy.js";
6
+ } from "./index-1zx2pa5d.js";
7
7
  import {
8
8
  runSessionWarmupWorker
9
- } from "./index-s734jcsr.js";
9
+ } from "./index-35qc6606.js";
10
10
  import {
11
11
  estimateTokens
12
- } from "./index-c5pytzne.js";
12
+ } from "./index-b88dwwrh.js";
13
13
  import {
14
14
  openCodeDbExists,
15
15
  withReadOnlySessionDb
16
- } from "./index-kq82mtg0.js";
16
+ } from "./index-11zf2wwc.js";
17
17
  import {
18
18
  hasRawMessageProvider2,
19
19
  readRawSessionMessageIdOrdinalsForRange2
20
- } from "./index-9zcsy3hh.js";
20
+ } from "./index-x4k3f4mf.js";
21
21
 
22
22
  // src/tools/ctx-expand/search-archive.ts
23
23
  var archiveReadsOnThisThread = 0;
@@ -6,7 +6,7 @@ import {
6
6
  StaleRouteHandleError,
7
7
  SubcClient,
8
8
  isConsumerReconnectTransient
9
- } from "./index-6x57ar45.js";
9
+ } from "./index-adk2z5d8.js";
10
10
  import {
11
11
  getHarness2
12
12
  } from "./index-pavzsdc6.js";
@@ -15,14 +15,16 @@ import {
15
15
  } from "./index-g2q4htwp.js";
16
16
  import {
17
17
  log2
18
- } from "./index-j75v2476.js";
18
+ } from "./index-h7tgn49j.js";
19
19
  import {
20
20
  inRootAsyncContext2
21
- } from "./index-beht37jy.js";
21
+ } from "./index-1zx2pa5d.js";
22
22
  import {
23
- buildCanonicalChunkTextFromFts,
24
- loadCompartmentChunkEmbeddingsForSearch
25
- } from "./index-b5vqckbw.js";
23
+ buildCanonicalChunkTextFromFts2,
24
+ loadCompartmentChunkEmbeddingsForSearch2,
25
+ peekCompartmentChunkSearchPool2,
26
+ warmCompartmentChunkSearchPool2
27
+ } from "./index-153r2q6z.js";
26
28
  import {
27
29
  recordEmbeddingMeasurement,
28
30
  saveCommitEmbedding,
@@ -39,7 +41,7 @@ import {
39
41
  enqueueShadowEmbeddingItems2,
40
42
  getProjectEmbeddingSnapshot2,
41
43
  embedItemsForProject2
42
- } from "./index-ze7mvk54.js";
44
+ } from "./index-2yhtnfcf.js";
43
45
  import {
44
46
  getProjectEmbeddings2
45
47
  } from "./index-4dhv7mqz.js";
@@ -48,13 +50,13 @@ import {
48
50
  isEmbeddingEnabled,
49
51
  embedText,
50
52
  ensureMemoryEmbeddings2
51
- } from "./index-24fezq97.js";
53
+ } from "./index-jr5na10t.js";
52
54
  import {
53
55
  ModuleMemoryAuthorityError2,
54
56
  getMemoriesByProject2,
55
57
  getMemoriesByProjects2,
56
58
  updateMemoryRetrievalCount2
57
- } from "./index-n37sebck.js";
59
+ } from "./index-y4a3nhtk.js";
58
60
  import {
59
61
  USER_FACING_FAILURES,
60
62
  getNotes,
@@ -63,27 +65,27 @@ import {
63
65
  sanitizeFtsQuery,
64
66
  searchMemoriesFTS,
65
67
  searchMemoriesFTSUnion
66
- } from "./index-3h4dp9wb.js";
68
+ } from "./index-1pefp8ar.js";
67
69
  import {
68
70
  cleanSearchText,
69
71
  keywordRelevance,
70
72
  matchedSearchSnippet,
71
73
  getIndexedMessageCorpusSize2
72
- } from "./index-se4m2g6w.js";
74
+ } from "./index-48stjd56.js";
73
75
  import {
74
76
  MESSAGE_FTS_SESSION_FILTER_SQL,
75
77
  withMessageFtsSessionFilter
76
78
  } from "./index-kaqs6h31.js";
77
79
  import {
78
80
  isRecord
79
- } from "./index-cf74k5ak.js";
81
+ } from "./index-305y133n.js";
80
82
  import {
81
83
  resolveWorkspaceShareCategories,
82
84
  resolveWorkspaceIdentitySet,
83
85
  expandWorkspaceIdentitySetWithAliases,
84
86
  resolveStoredPathWorkspaceIdentity,
85
87
  sourceNameForMemory
86
- } from "./index-63k48rv9.js";
88
+ } from "./index-pnjwa6qa.js";
87
89
  import {
88
90
  isKnownAutocommit
89
91
  } from "./index-8ajstryz.js";
@@ -1677,7 +1679,7 @@ Reason: ${row.reason}` : ""}`;
1677
1679
  case "compartment": {
1678
1680
  title = hit.title;
1679
1681
  location = `compartment ${hit.compartmentId} ${hit.sessionId} @${hit.startOrdinal}-${hit.endOrdinal}`;
1680
- body = buildCanonicalChunkTextFromFts(db, hit.sessionId, hit.startOrdinal, hit.endOrdinal) ?? "";
1682
+ body = buildCanonicalChunkTextFromFts2(db, hit.sessionId, hit.startOrdinal, hit.endOrdinal) ?? "";
1681
1683
  break;
1682
1684
  }
1683
1685
  }
@@ -2616,10 +2618,42 @@ function searchNotes(args) {
2616
2618
  }));
2617
2619
  }
2618
2620
  async function searchCompartmentChunks(args) {
2619
- if (!args.queryEmbedding || args.limit <= 0 || !args.modelId || args.modelId === "off")
2621
+ if (args.limit <= 0 || !args.modelId || args.modelId === "off") {
2622
+ if (args.timings)
2623
+ args.timings.chunkPool = "off";
2620
2624
  return [];
2625
+ }
2626
+ if (!args.queryEmbedding) {
2627
+ if (args.timings)
2628
+ args.timings.chunkPool = "no-vector";
2629
+ if (args.warmOnly)
2630
+ warmCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
2631
+ return [];
2632
+ }
2621
2633
  const cutoff = args.maxOrdinal != null && args.maxOrdinal >= 0 ? args.maxOrdinal : null;
2622
- const rows = await loadCompartmentChunkEmbeddingsForSearch(args.db, args.sessionId, args.projectPath, args.modelId, args.dateRange);
2634
+ let rows;
2635
+ if (args.warmOnly) {
2636
+ const warm = peekCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId, args.dateRange);
2637
+ if (warm === null) {
2638
+ if (args.timings)
2639
+ args.timings.chunkPool = "cold";
2640
+ warmCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
2641
+ return [];
2642
+ }
2643
+ if (args.timings)
2644
+ args.timings.chunkPool = "warm";
2645
+ rows = warm;
2646
+ } else {
2647
+ try {
2648
+ rows = await loadCompartmentChunkEmbeddingsForSearch2(args.db, args.sessionId, args.projectPath, args.modelId, args.dateRange, args.signal);
2649
+ } catch (error) {
2650
+ if (args.signal?.aborted)
2651
+ return [];
2652
+ throw error;
2653
+ }
2654
+ if (args.timings)
2655
+ args.timings.chunkPool = "loaded";
2656
+ }
2623
2657
  if (rows.length === 0)
2624
2658
  return [];
2625
2659
  const byCompartment = new Map;
@@ -2944,6 +2978,8 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
2944
2978
  if (options.signal?.aborted)
2945
2979
  return [];
2946
2980
  const messageProbes = options.explicitSearch ? extractLiteralProbes(trimmedQuery) : [];
2981
+ const timings = options.stepTimings;
2982
+ let stepStartedAt = performance.now();
2947
2983
  let messageResults = [];
2948
2984
  if (runMessages) {
2949
2985
  const messageRequest = {
@@ -2970,8 +3006,13 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
2970
3006
  messageResults = outcome.results.filter((result) => result.messageId !== options.excludeMessageId);
2971
3007
  if (lanes)
2972
3008
  lanes.message_fts = (outcome.laneResults ?? outcome.results).slice(0, 25);
3009
+ if (timings)
3010
+ timings.messageMs = performance.now() - stepStartedAt;
2973
3011
  }
3012
+ stepStartedAt = performance.now();
2974
3013
  const capturedQuery = await queryEmbeddingPromise;
3014
+ if (timings && needsEmbedding)
3015
+ timings.vectorWaitMs = performance.now() - stepStartedAt;
2975
3016
  if (options.signal?.aborted)
2976
3017
  return [];
2977
3018
  const embeddingSnapshot = getProjectEmbeddingSnapshot2(projectPath);
@@ -2981,6 +3022,9 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
2981
3022
  const workspace = resolveSearchWorkspaceContext(db, projectPath);
2982
3023
  const embeddingModelId = queryContract?.modelId ?? options.embeddingModelIdOverride ?? embeddingSnapshot?.modelId;
2983
3024
  const chunkModelId = queryContract?.chunkModelId ?? options.chunkModelIdOverride ?? embeddingSnapshot?.chunkModelId;
3025
+ stepStartedAt = performance.now();
3026
+ if (timings)
3027
+ timings.chunkPool = "off";
2984
3028
  const compartmentResults = runCompartmentChunks ? await searchCompartmentChunks({
2985
3029
  db,
2986
3030
  sessionId,
@@ -2989,8 +3033,14 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
2989
3033
  limit: lanes ? Math.max(tierLimit, 25) : tierLimit,
2990
3034
  maxOrdinal: options.maxMessageOrdinal,
2991
3035
  modelId: chunkModelId && chunkModelId !== "off" ? chunkModelId : null,
2992
- dateRange
3036
+ dateRange,
3037
+ warmOnly: options.chunkPoolWarmOnly,
3038
+ signal: options.signal,
3039
+ timings
2993
3040
  }) : [];
3041
+ if (timings && runCompartmentChunks)
3042
+ timings.chunkMs = performance.now() - stepStartedAt;
3043
+ stepStartedAt = performance.now();
2994
3044
  if (lanes)
2995
3045
  lanes.chunk_vector = compartmentResults.slice(0, 25);
2996
3046
  const messageLikeResults = mergeMessageAndCompartmentResults({
@@ -3046,6 +3096,8 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
3046
3096
  dateRange
3047
3097
  })) : Promise.resolve([])
3048
3098
  ]);
3099
+ if (timings)
3100
+ timings.otherLanesMs = performance.now() - stepStartedAt;
3049
3101
  if (options.diagnostics) {
3050
3102
  options.diagnostics.suppressedVisibleMemoryIds = memoryOutcome.suppressedVisibleIds;
3051
3103
  }
@@ -348,6 +348,7 @@ async function importPluginModule(load) {
348
348
 
349
349
  // src/shared/logger.ts
350
350
  var isTestEnv = false;
351
+ var syncLogWrites = process.env.MAGIC_CONTEXT_LOG_SYNC === "1";
351
352
  var buffer = [];
352
353
  var flushTimer = null;
353
354
  var FLUSH_INTERVAL_MS = 500;
@@ -492,6 +493,15 @@ function scheduleFlush() {
492
493
  flush();
493
494
  }, FLUSH_INTERVAL_MS);
494
495
  }
496
+ function appendLine(line) {
497
+ buffer.push(line);
498
+ bufferedBytes += Buffer.byteLength(line);
499
+ boundBuffer();
500
+ if (syncLogWrites || buffer.length >= BUFFER_SIZE_LIMIT)
501
+ flush();
502
+ else
503
+ scheduleFlush();
504
+ }
495
505
  var lineForwarder = null;
496
506
  function setLogLineForwarder2(forward) {
497
507
  lineForwarder = forward;
@@ -500,13 +510,7 @@ function writeForwardedLogLine2(line) {
500
510
  if (isTestEnv)
501
511
  return;
502
512
  try {
503
- buffer.push(line);
504
- bufferedBytes += Buffer.byteLength(line);
505
- boundBuffer();
506
- if (buffer.length >= BUFFER_SIZE_LIMIT)
507
- flush();
508
- else
509
- scheduleFlush();
513
+ appendLine(line);
510
514
  } catch {}
511
515
  }
512
516
  function log2(message, data) {
@@ -531,14 +535,7 @@ ${data.stack}` : ""}`)}` : ` ${JSON.stringify(sanitizeConfigValue(data))}`;
531
535
  lineForwarder(line);
532
536
  return;
533
537
  }
534
- buffer.push(line);
535
- bufferedBytes += Buffer.byteLength(line);
536
- boundBuffer();
537
- if (buffer.length >= BUFFER_SIZE_LIMIT) {
538
- flush();
539
- } else {
540
- scheduleFlush();
541
- }
538
+ appendLine(line);
542
539
  } catch {}
543
540
  }
544
541
  function sessionLog2(sessionId, message, data) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-c5pytzne.js";
3
+ } from "./index-b88dwwrh.js";
4
4
  import {
5
5
  stableStringify
6
- } from "./index-bp5083x2.js";
6
+ } from "./index-x9k3mqrf.js";
7
7
 
8
8
  // src/features/magic-context/tool-definition-tokens.ts
9
9
  import { createHash } from "node:crypto";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-j75v2476.js";
3
+ } from "./index-h7tgn49j.js";
4
4
  import {
5
5
  clearEmergencyRecovery
6
- } from "./index-9zcsy3hh.js";
6
+ } from "./index-x4k3f4mf.js";
7
7
  import {
8
8
  requestPendingMaterialization,
9
9
  dropSlot,
10
10
  executeContextRecomp
11
- } from "./index-rpxdjkm0.js";
11
+ } from "./index-v7r4td4c.js";
12
12
  import {
13
13
  renderUserFacingFailure,
14
14
  userFacingFailureCode
15
- } from "./index-3h4dp9wb.js";
15
+ } from "./index-1pefp8ar.js";
16
16
 
17
17
  // src/hooks/magic-context/recomp-orchestrator.ts
18
18
  function resolveLiveModelKey(liveSessionState, sessionId) {
@@ -2,13 +2,13 @@ import {
2
2
  getSqliteDatabasePath2,
3
3
  withSqliteBackgroundWriter2,
4
4
  withoutSqliteTransformPass2
5
- } from "./index-beht37jy.js";
5
+ } from "./index-1zx2pa5d.js";
6
6
  import {
7
7
  runSessionWarmupWorker
8
- } from "./index-s734jcsr.js";
8
+ } from "./index-35qc6606.js";
9
9
  import {
10
10
  logSlowWriteTransaction
11
- } from "./index-k29z4aqh.js";
11
+ } from "./index-t5pck3ss.js";
12
12
 
13
13
  // src/features/magic-context/message-fts-rowid-map.ts
14
14
  import { createHash } from "node:crypto";
@@ -3,19 +3,19 @@ import {
3
3
  } from "./index-wgypt3cs.js";
4
4
  import {
5
5
  log2
6
- } from "./index-j75v2476.js";
6
+ } from "./index-h7tgn49j.js";
7
7
  import {
8
8
  isSynapseEmbeddingTruncated,
9
9
  SynapseEmbeddingProvider
10
- } from "./index-6x57ar45.js";
10
+ } from "./index-adk2z5d8.js";
11
11
  import {
12
12
  LocalEmbeddingProvider
13
- } from "./index-bjcnntmz.js";
13
+ } from "./index-0wthn7fp.js";
14
14
  import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./index-ze7mvk54.js";
18
+ } from "./index-2yhtnfcf.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./index-qt1qqasc.js";
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  importPluginModule,
6
6
  sessionLog2
7
- } from "./index-j75v2476.js";
7
+ } from "./index-h7tgn49j.js";
8
8
  import {
9
9
  isDefaultSessionTitle2
10
- } from "./index-y9f76s3f.js";
10
+ } from "./index-rrv26qjz.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./index-kq82mtg0.js";
13
+ } from "./index-11zf2wwc.js";
14
14
  import {
15
15
  getErrorMessage
16
16
  } from "./index-y8v6yerm.js";
@@ -142,7 +142,7 @@ async function sendIgnoredMessageNow(client, sessionId, text, params, forcePersi
142
142
  holdIgnoredNotification({ client, sessionId, text, params, forcePersist }, "during target checks");
143
143
  return "queued";
144
144
  }
145
- const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-1szv1k5k.js"));
145
+ const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-mkr9yzvr.js"));
146
146
  if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
147
147
  sessionLog2(sessionId, "notification skipped (session not titled yet)");
148
148
  return "skipped";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveDreamerTaskModel2
3
- } from "./index-8cd2j99z.js";
3
+ } from "./index-5kym00ag.js";
4
4
  import {
5
5
  isDreamerRunnable
6
6
  } from "./index-ksdyrrav.js";
@@ -187,6 +187,7 @@ function buildDreamTaskRuntimeConfigs2(dreamer, harness, language, smartNotesEna
187
187
  schedule: resolved.schedule ?? "",
188
188
  model: resolved.primary,
189
189
  fallbackModels: resolved.fallbacks,
190
+ modelConfigKey: resolved.primary?.sourceConfigKey ?? resolved.fallbacks[0]?.sourceConfigKey,
190
191
  thinkingLevel: harness === "pi" ? resolved.primary?.qualifier : undefined,
191
192
  language,
192
193
  timeoutMinutes: resolved.timeoutMinutes ?? 20,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  importPluginModule,
3
3
  log2
4
- } from "./index-j75v2476.js";
4
+ } from "./index-h7tgn49j.js";
5
5
  import {
6
6
  sendStatusNotification2
7
- } from "./index-s74zqahq.js";
7
+ } from "./index-kc9pn495.js";
8
8
  import {
9
9
  formatConflictShort
10
- } from "./index-kee4kn5j.js";
10
+ } from "./index-4pnsgvfk.js";
11
11
 
12
12
  // src/plugin/conflict-warning-hook.ts
13
13
  import { existsSync, readFileSync } from "node:fs";
@@ -3,12 +3,12 @@ import {
3
3
  } from "./index-fr0wbhdn.js";
4
4
  import {
5
5
  log2
6
- } from "./index-j75v2476.js";
6
+ } from "./index-h7tgn49j.js";
7
7
  import {
8
8
  ensureColumn,
9
9
  healAllNullColumns,
10
10
  installV95PerfSchema
11
- } from "./index-bp5083x2.js";
11
+ } from "./index-x9k3mqrf.js";
12
12
  import {
13
13
  resolveOpenCodeDbPath,
14
14
  openCodeDbPathExists,
@@ -16,14 +16,14 @@ import {
16
16
  } from "./index-58e3y90n.js";
17
17
  import {
18
18
  Database2
19
- } from "./index-beht37jy.js";
19
+ } from "./index-1zx2pa5d.js";
20
20
  import {
21
21
  normalizeStoredProjectPath,
22
22
  storedPathBelongsToIdentity
23
- } from "./index-2vxtcb95.js";
23
+ } from "./index-vkc1ca9p.js";
24
24
  import {
25
25
  logSlowWriteTransaction
26
- } from "./index-k29z4aqh.js";
26
+ } from "./index-t5pck3ss.js";
27
27
 
28
28
  // src/features/magic-context/lkg-prefix-chunks.ts
29
29
  import { createHash } from "node:crypto";
@@ -3,7 +3,7 @@ import {
3
3
  importPluginModule,
4
4
  writeForwardedLogLine2,
5
5
  log2
6
- } from "./index-j75v2476.js";
6
+ } from "./index-h7tgn49j.js";
7
7
  import {
8
8
  inRootAsyncContext2,
9
9
  registerSlowWriteReporter2,
@@ -14,10 +14,10 @@ import {
14
14
  withoutSqliteTransformPass2,
15
15
  isTransientSqliteError2,
16
16
  withPrivilegedWriter2
17
- } from "./index-beht37jy.js";
17
+ } from "./index-1zx2pa5d.js";
18
18
  import {
19
19
  scheduleAfterBootQuiet
20
- } from "./index-2vxtcb95.js";
20
+ } from "./index-vkc1ca9p.js";
21
21
  import {
22
22
  getHarness2,
23
23
  harnessOwnsOpenCodeStore2
@@ -36,13 +36,13 @@ import {
36
36
  parseRpcPortFile,
37
37
  inspectProcessesAsync,
38
38
  inspectWindowsProcessesSync
39
- } from "./index-nj7yykkx.js";
39
+ } from "./index-c7phnbvk.js";
40
40
  import {
41
41
  configureContextDatabasePragmas2
42
42
  } from "./index-fb3zxn06.js";
43
43
  import {
44
44
  startMessageFtsRowidMapBackfill2
45
- } from "./index-a6mc0v4d.js";
45
+ } from "./index-jmycsey7.js";
46
46
  import {
47
47
  LKG_SLOT_CHUNKS_DDL,
48
48
  SESSION_REPLAY_DECISIONS_DDL,
@@ -52,12 +52,12 @@ import {
52
52
  hasPendingMigrations,
53
53
  getMainThreadMigrationBodyCount,
54
54
  runMigrations
55
- } from "./index-63k48rv9.js";
55
+ } from "./index-pnjwa6qa.js";
56
56
  import {
57
57
  installTagIdentityRevisionTrigger,
58
58
  ensureColumn,
59
59
  installV95PerfSchema
60
- } from "./index-bp5083x2.js";
60
+ } from "./index-x9k3mqrf.js";
61
61
  import {
62
62
  resolveOpenCodeDbPath,
63
63
  hasV1MessageTables
@@ -65,7 +65,7 @@ import {
65
65
  import {
66
66
  setDatabase,
67
67
  loadToolDefinitionMeasurements
68
- } from "./index-ke416mdc.js";
68
+ } from "./index-j76ah6d7.js";
69
69
  import {
70
70
  getErrorMessage
71
71
  } from "./index-y8v6yerm.js";
@@ -74,7 +74,7 @@ import {
74
74
  } from "./index-8ajstryz.js";
75
75
  import {
76
76
  logSlowWriteTransaction
77
- } from "./index-k29z4aqh.js";
77
+ } from "./index-t5pck3ss.js";
78
78
  import {
79
79
  shouldEnforcePrivateStoragePermissions,
80
80
  ensureStorageDirectorySync,
@@ -1277,8 +1277,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1277
1277
  state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
1278
1278
  if (signal.aborted || !readsOpenCodeStore)
1279
1279
  return;
1280
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-jjb48bt9.js"));
1281
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-73mmm76q.js"));
1280
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-0a8vdyqp.js"));
1281
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-0myx7fz3.js"));
1282
1282
  if (signal.aborted)
1283
1283
  return;
1284
1284
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-j75v2476.js";
3
+ } from "./index-h7tgn49j.js";
4
4
 
5
5
  // src/shared/safe-notification-target.ts
6
6
  var DEFAULT_TITLE_RE = /^(New session - |Child session - )\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;