@cortexkit/opencode-magic-context 0.49.18 → 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 (296) hide show
  1. package/dist/auto-search-worker.js +53 -10
  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-m897gfp9.js → context-mkece1db.js} +460 -135
  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/classify.d.ts +3 -0
  17. package/dist/features/magic-context/dreamer/classify.d.ts.map +1 -1
  18. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts +11 -0
  19. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
  20. package/dist/features/magic-context/dreamer/map-memories.d.ts +3 -0
  21. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
  22. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
  23. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +2 -0
  24. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  25. package/dist/features/magic-context/dreamer/verify.d.ts +3 -0
  26. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
  27. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  28. package/dist/features/magic-context/memory/embedding-local.d.ts +1 -0
  29. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  30. package/dist/features/magic-context/memory/local-embedding-pooling.d.ts +22 -0
  31. package/dist/features/magic-context/memory/local-embedding-pooling.d.ts.map +1 -0
  32. package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
  33. package/dist/features/magic-context/message-index.d.ts +2 -0
  34. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  35. package/dist/features/magic-context/migrations.d.ts.map +1 -1
  36. package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
  37. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  38. package/dist/features/magic-context/search.d.ts +27 -0
  39. package/dist/features/magic-context/search.d.ts.map +1 -1
  40. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
  41. package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
  42. package/dist/features/magic-context/storage-meta-persisted.d.ts +14 -0
  43. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  44. package/dist/features/magic-context/subagent-token-capture.d.ts +20 -0
  45. package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
  46. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  47. package/dist/{history-owner-xp3pngv7.js → history-owner-36wp3mkb.js} +2 -2
  48. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  49. package/dist/hooks/magic-context/auto-embed-session.d.ts.map +1 -1
  50. package/dist/hooks/magic-context/auto-search-hint.d.ts +7 -1
  51. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  52. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  53. package/dist/hooks/magic-context/auto-search-worker-client.d.ts +33 -6
  54. package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
  55. package/dist/hooks/magic-context/auto-search-worker-evaluation.fixture.d.ts +2 -0
  56. package/dist/hooks/magic-context/auto-search-worker-evaluation.fixture.d.ts.map +1 -0
  57. package/dist/hooks/magic-context/cache-busting-signals.d.ts +5 -2
  58. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
  59. package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
  60. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  61. package/dist/hooks/magic-context/compartment-runner-types.d.ts +5 -0
  62. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  63. package/dist/hooks/magic-context/compartment-trigger.d.ts +1 -1
  64. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  65. package/dist/hooks/magic-context/diagnostic-log-state.d.ts +4 -0
  66. package/dist/hooks/magic-context/diagnostic-log-state.d.ts.map +1 -0
  67. package/dist/hooks/magic-context/execute-reclaim.d.ts +35 -0
  68. package/dist/hooks/magic-context/execute-reclaim.d.ts.map +1 -0
  69. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  70. package/dist/hooks/magic-context/hook.d.ts +1 -3
  71. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  72. package/dist/hooks/magic-context/latest-assistant-turn.d.ts +8 -0
  73. package/dist/hooks/magic-context/latest-assistant-turn.d.ts.map +1 -1
  74. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts +5 -0
  75. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
  76. package/dist/hooks/magic-context/lkg-recovery-prefix.d.ts +13 -0
  77. package/dist/hooks/magic-context/lkg-recovery-prefix.d.ts.map +1 -1
  78. package/dist/hooks/magic-context/nudge-evaluation-log.d.ts +3 -0
  79. package/dist/hooks/magic-context/nudge-evaluation-log.d.ts.map +1 -0
  80. package/dist/hooks/magic-context/pending-drop-eligibility.d.ts.map +1 -1
  81. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +4 -0
  82. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  83. package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
  84. package/dist/hooks/magic-context/system-date-refresh.d.ts +15 -2
  85. package/dist/hooks/magic-context/system-date-refresh.d.ts.map +1 -1
  86. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  87. package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts +10 -0
  88. package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts.map +1 -0
  89. package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
  90. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  91. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  92. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +23 -6
  93. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  94. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  95. package/dist/{index-bjcnntmz.js → index-0wthn7fp.js} +468 -18
  96. package/dist/{index-kq82mtg0.js → index-11zf2wwc.js} +3 -3
  97. package/dist/{index-b5vqckbw.js → index-153r2q6z.js} +314 -127
  98. package/dist/{index-v8awdgvd.js → index-1pefp8ar.js} +5 -5
  99. package/dist/{v2/server-beht37jy.js → index-1zx2pa5d.js} +1 -1
  100. package/dist/{index-ze7mvk54.js → index-2yhtnfcf.js} +75 -57
  101. package/dist/{index-cf74k5ak.js → index-305y133n.js} +4 -4
  102. package/dist/{index-s734jcsr.js → index-35qc6606.js} +9 -3
  103. package/dist/{index-x4njr8df.js → index-48stjd56.js} +105 -19
  104. package/dist/{index-24jbw52d.js → index-4n7w9rad.js} +6 -6
  105. package/dist/{index-kee4kn5j.js → index-4pnsgvfk.js} +1 -1
  106. package/dist/{v2/server-8cd2j99z.js → index-5kym00ag.js} +32 -13
  107. package/dist/{index-4s3t0nd0.js → index-616rsjrv.js} +2 -2
  108. package/dist/{index-e4xv8890.js → index-67nyj0gy.js} +507 -210
  109. package/dist/{index-6x57ar45.js → index-adk2z5d8.js} +3 -3
  110. package/dist/{index-c5pytzne.js → index-b88dwwrh.js} +1 -1
  111. package/dist/{index-rr2bb45z.js → index-c4b76d4t.js} +2 -2
  112. package/dist/{index-nj7yykkx.js → index-c7phnbvk.js} +1 -1
  113. package/dist/index-cpjk5jd2.js +82 -0
  114. package/dist/{index-6s5941tm.js → index-d6rp4dxh.js} +5 -5
  115. package/dist/{index-s7j8tvhv.js → index-dc8hy95c.js} +69 -17
  116. package/dist/{index-j75v2476.js → index-h7tgn49j.js} +12 -15
  117. package/dist/{index-ke416mdc.js → index-j76ah6d7.js} +2 -2
  118. package/dist/{index-r4nkrs05.js → index-jfh3cktr.js} +4 -4
  119. package/dist/{index-a6mc0v4d.js → index-jmycsey7.js} +3 -3
  120. package/dist/{index-24fezq97.js → index-jr5na10t.js} +4 -4
  121. package/dist/{index-s74zqahq.js → index-kc9pn495.js} +4 -4
  122. package/dist/{index-p5y3k4g7.js → index-nda0zgna.js} +2 -1
  123. package/dist/{index-jn12fvvh.js → index-neb2jaed.js} +3 -3
  124. package/dist/{index-qn7xstt2.js → index-pnjwa6qa.js} +6 -7
  125. package/dist/{index-fgncb0ng.js → index-rmd0069m.js} +11 -11
  126. package/dist/{index-y9f76s3f.js → index-rrv26qjz.js} +1 -1
  127. package/dist/{index-v10f1rjv.js → index-spwjbkc7.js} +1 -1
  128. package/dist/{index-k29z4aqh.js → index-t5pck3ss.js} +1 -1
  129. package/dist/{index-936py2wm.js → index-t7hx3qcb.js} +361 -113
  130. package/dist/{index-s1ex9y6p.js → index-v7r4td4c.js} +464 -79
  131. package/dist/{index-2vxtcb95.js → index-vkc1ca9p.js} +2 -2
  132. package/dist/{index-rmwykbbb.js → index-x4k3f4mf.js} +33 -10
  133. package/dist/{index-bp5083x2.js → index-x9k3mqrf.js} +1 -1
  134. package/dist/{index-n37sebck.js → index-y4a3nhtk.js} +1 -1
  135. package/dist/index.js +57 -50
  136. package/dist/{logger-jm3sqqzr.js → logger-94kew5wm.js} +1 -1
  137. package/dist/{message-fts-rowid-map-17s0dfn4.js → message-fts-rowid-map-22tevnnj.js} +6 -5
  138. package/dist/{message-index-66jv6fh4.js → message-index-5qxcz6h7.js} +16 -15
  139. package/dist/{message-index-bounded-n1frdn85.js → message-index-bounded-n0m0t7tv.js} +16 -15
  140. package/dist/{message-time-backfill-73mmm76q.js → message-time-backfill-0myx7fz3.js} +3 -3
  141. package/dist/migration-worker.js +13 -12
  142. package/dist/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
  143. package/dist/plugin/embedding-bootstrap.d.ts +3 -1
  144. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
  145. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  146. package/dist/plugin/messages-transform.d.ts.map +1 -1
  147. package/dist/plugin/rpc-handlers.d.ts +8 -0
  148. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  149. package/dist/plugin/subagent-tool-policy.d.ts +9 -0
  150. package/dist/plugin/subagent-tool-policy.d.ts.map +1 -1
  151. package/dist/plugin/tool-registry.d.ts.map +1 -1
  152. package/dist/{project-embedding-registry-z74mhqkf.js → project-embedding-registry-s2pqgec9.js} +13 -12
  153. package/dist/raw-ordinal-warmup-worker.js +136 -101
  154. package/dist/{read-session-chunk-v06g3vka.js → read-session-chunk-0a8vdyqp.js} +11 -10
  155. package/dist/{read-session-raw-rsc8c7qy.js → read-session-raw-y5cszf0b.js} +4 -3
  156. package/dist/recomp-orchestrator-61vyha9j.js +62 -0
  157. package/dist/{safe-notification-target-1szv1k5k.js → safe-notification-target-mkr9yzvr.js} +2 -2
  158. package/dist/{search-archive-4d53y23e.js → search-archive-8q9s49p5.js} +12 -11
  159. package/dist/{search-nkf271d4.js → search-v1y9ejws.js} +25 -24
  160. package/dist/{send-session-notification-6ve0e8p4.js → send-session-notification-0k6qzydk.js} +7 -6
  161. package/dist/shared/logger.d.ts.map +1 -1
  162. package/dist/shared/model-resolution.d.ts +2 -0
  163. package/dist/shared/model-resolution.d.ts.map +1 -1
  164. package/dist/shared/model-suggestion-retry.d.ts +30 -1
  165. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  166. package/dist/shared/prompt-async-transport.d.ts +3 -0
  167. package/dist/shared/prompt-async-transport.d.ts.map +1 -1
  168. package/dist/shared/rpc-types.d.ts +7 -0
  169. package/dist/shared/rpc-types.d.ts.map +1 -1
  170. package/dist/shared/sqlite.d.ts +1 -1
  171. package/dist/shared/sqlite.d.ts.map +1 -1
  172. package/dist/shared/subagent-runner.d.ts +2 -0
  173. package/dist/shared/subagent-runner.d.ts.map +1 -1
  174. package/dist/shared/worker-shutdown.d.ts +68 -0
  175. package/dist/shared/worker-shutdown.d.ts.map +1 -0
  176. package/dist/shared/worker-shutdown.fixture.d.ts +2 -0
  177. package/dist/shared/worker-shutdown.fixture.d.ts.map +1 -0
  178. package/dist/{sqlite-zf72c52d.js → sqlite-1rpvw2rj.js} +1 -1
  179. package/dist/{storage-memory-y3qmy00r.js → storage-memory-nm7v82mj.js} +2 -2
  180. package/dist/{storage-tags-r7k9tjcv.js → storage-tags-r6nk29n4.js} +5 -5
  181. package/dist/{task-config-x3qmayd2.js → task-config-t6bpyka7.js} +2 -2
  182. package/dist/tools/ctx-expand/rust-mode-tag.test-support.d.ts +15 -0
  183. package/dist/tools/ctx-expand/rust-mode-tag.test-support.d.ts.map +1 -0
  184. package/dist/tools/ctx-expand/tools.d.ts +11 -0
  185. package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
  186. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  187. package/dist/{transform-postprocess-phase-zpgav0h7.js → transform-postprocess-phase-vtrgb7m6.js} +34 -31
  188. package/dist/v2/auto-search-worker.js +53 -10
  189. package/dist/v2/chunk-embedding-write-worker.js +30 -23
  190. package/dist/v2/{compaction-marker-candidates-ebx3388k.js → compaction-marker-candidates-cfab70cs.js} +3 -3
  191. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  192. package/dist/v2/compartment-chunk-embedding-nbdqx1td.js +64 -0
  193. package/dist/v2/{context-f2xh7ba4.js → context-cc33tv2z.js} +1259 -404
  194. package/dist/v2/{derive-budgets-2zh4gm2c.js → derive-budgets-knf763tt.js} +3 -3
  195. package/dist/v2/embedding-backfill-yxv2h5mc.js +24 -0
  196. package/dist/v2/embedding-worker-process.js +2 -2
  197. package/dist/v2/embedding-worker.js +5 -5
  198. package/dist/v2/hidden-child-record.d.ts +2 -0
  199. package/dist/v2/hidden-child-record.d.ts.map +1 -1
  200. package/dist/v2/hidden-completion.d.ts +2 -0
  201. package/dist/v2/hidden-completion.d.ts.map +1 -1
  202. package/dist/v2/hidden-model-activity.d.ts +7 -0
  203. package/dist/v2/hidden-model-activity.d.ts.map +1 -0
  204. package/dist/v2/{history-owner-42e16w0n.js → history-owner-ad0crnrn.js} +2 -2
  205. package/dist/v2/hooks/context.d.ts.map +1 -1
  206. package/dist/v2/hooks/generate.d.ts +36 -1
  207. package/dist/v2/hooks/generate.d.ts.map +1 -1
  208. package/dist/v2/hooks/lkg-system.d.ts +35 -4
  209. package/dist/v2/hooks/lkg-system.d.ts.map +1 -1
  210. package/dist/v2/hooks/payload.d.ts +16 -1
  211. package/dist/v2/hooks/payload.d.ts.map +1 -1
  212. package/dist/v2/hooks/tools.d.ts.map +1 -1
  213. package/dist/v2/{logger-7qt02bnb.js → logger-p34mjtja.js} +1 -1
  214. package/dist/v2/{message-fts-rowid-map-wfx67gfd.js → message-fts-rowid-map-dg12wymk.js} +6 -5
  215. package/dist/v2/{message-index-bounded-w3hfm29z.js → message-index-bounded-f4e01xk0.js} +16 -15
  216. package/dist/v2/{message-index-48f7hw7a.js → message-index-ydzrp6y6.js} +16 -15
  217. package/dist/v2/{message-time-backfill-04t0km1z.js → message-time-backfill-ddh8n9gy.js} +3 -3
  218. package/dist/v2/migration-worker.js +13 -12
  219. package/dist/v2/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
  220. package/dist/v2/{project-embedding-registry-gnkj56xp.js → project-embedding-registry-deza9ksw.js} +13 -12
  221. package/dist/v2/raw-ordinal-warmup-worker.js +136 -101
  222. package/dist/v2/{read-session-chunk-zpgmxwte.js → read-session-chunk-8cxfagky.js} +11 -10
  223. package/dist/v2/{read-session-raw-yaegtjzh.js → read-session-raw-1nrrecvx.js} +4 -3
  224. package/dist/v2/recomp-orchestrator-47m4hv5g.js +61 -0
  225. package/dist/v2/{safe-notification-target-qg7n2s77.js → safe-notification-target-khnzg57c.js} +2 -2
  226. package/dist/v2/{search-archive-vv48s2aa.js → search-archive-e80cvc09.js} +12 -11
  227. package/dist/v2/{search-kza414f0.js → search-fjz746zr.js} +25 -24
  228. package/dist/v2/{send-session-notification-3pxn658x.js → send-session-notification-nwvrv34d.js} +7 -6
  229. package/dist/v2/{server-8by8qfec.js → server-0epqaxhd.js} +75 -57
  230. package/dist/v2/{server-pwv4ezb0.js → server-168pb207.js} +1 -1
  231. package/dist/v2/{server-h0410h0v.js → server-1bw1wcbp.js} +1 -1
  232. package/dist/{index-beht37jy.js → v2/server-1zx2pa5d.js} +1 -1
  233. package/dist/v2/{server-a9xqj88f.js → server-230fnbws.js} +4 -4
  234. package/dist/v2/{server-tbe1femw.js → server-29qp8nz4.js} +1 -1
  235. package/dist/v2/{server-tgnbmwah.js → server-3mz2qh5a.js} +1 -1
  236. package/dist/v2/{server-hy3d3vsx.js → server-4nw4fqhr.js} +2 -2
  237. package/dist/v2/{server-qv7f0hhe.js → server-4sxjs6hn.js} +5 -5
  238. package/dist/v2/{server-34kwfsr4.js → server-53eh1r8r.js} +2 -2
  239. package/dist/v2/{server-xj136kt8.js → server-55rgxfrw.js} +9 -3
  240. package/dist/v2/{server-nj659894.js → server-5arr9ecn.js} +2 -2
  241. package/dist/{index-8cd2j99z.js → v2/server-5kym00ag.js} +32 -13
  242. package/dist/v2/{server-2ehj0bw7.js → server-63fqdghs.js} +106 -20
  243. package/dist/v2/{server-f2xf5gcb.js → server-6495nmn9.js} +12 -15
  244. package/dist/v2/{server-qd11g795.js → server-92g7d776.js} +2 -1
  245. package/dist/v2/{server-gpvay0xz.js → server-9x0kmta4.js} +6 -7
  246. package/dist/v2/{server-27gq4mfz.js → server-a3dwxfgd.js} +4 -4
  247. package/dist/v2/{server-6tmj0s7j.js → server-af2pght7.js} +3 -3
  248. package/dist/v2/{server-1wy7b9de.js → server-br1x0tev.js} +3 -3
  249. package/dist/v2/{server-n1prf1g6.js → server-brj8j2gk.js} +2 -2
  250. package/dist/v2/{server-bfpda1tb.js → server-c7dxxsj7.js} +466 -81
  251. package/dist/v2/server-cpjk5jd2.js +82 -0
  252. package/dist/v2/{server-g3qma5c0.js → server-dj7tz4ph.js} +2 -2
  253. package/dist/v2/{server-xhab8jx8.js → server-ej96a39v.js} +33 -10
  254. package/dist/v2/{server-6pmqg9m4.js → server-gyy4k6mf.js} +1 -1
  255. package/dist/v2/{server-a2eqhkxr.js → server-hqzyq8n4.js} +11 -11
  256. package/dist/v2/{server-h1v0pyxb.js → server-j4jnp9b5.js} +468 -18
  257. package/dist/v2/{server-da07v4xp.js → server-k3t06fxr.js} +1 -1
  258. package/dist/v2/{server-1nyybqan.js → server-m91f9m5s.js} +69 -17
  259. package/dist/v2/{server-rmygf5pn.js → server-ne8arh8t.js} +2 -2
  260. package/dist/v2/{server-my7k4eds.js → server-vn2nwcv6.js} +5 -5
  261. package/dist/v2/{server-46neh5fa.js → server-wyawsa88.js} +314 -127
  262. package/dist/v2/{server-zzkj2fch.js → server-xsryvyf6.js} +4 -4
  263. package/dist/v2/{server-n37sebck.js → server-y4a3nhtk.js} +1 -1
  264. package/dist/v2/{server-d04vrx0j.js → server-ygtykank.js} +2 -2
  265. package/dist/v2/server.js +6 -6
  266. package/dist/v2/{sqlite-zf72c52d.js → sqlite-1rpvw2rj.js} +1 -1
  267. package/dist/v2/{storage-memory-y3qmy00r.js → storage-memory-nm7v82mj.js} +2 -2
  268. package/dist/v2/{storage-tags-3wdb8zph.js → storage-tags-ss08kj5r.js} +5 -5
  269. package/dist/v2/store-reader.d.ts +8 -0
  270. package/dist/v2/store-reader.d.ts.map +1 -1
  271. package/dist/v2/{task-config-nvz8mapa.js → task-config-7md27rx8.js} +2 -2
  272. package/dist/v2/{wrapup-orchestrator-psqz7yh0.js → wrapup-orchestrator-639whfhq.js} +32 -31
  273. package/dist/wrapup-orchestrator-mnvt2g8m.js +49 -0
  274. package/package.json +1 -1
  275. package/src/config/index.test.ts +28 -6
  276. package/src/shared/logger.test.ts +42 -1
  277. package/src/shared/logger.ts +11 -13
  278. package/src/shared/model-resolution.test.ts +67 -12
  279. package/src/shared/model-resolution.ts +43 -16
  280. package/src/shared/model-suggestion-retry.test.ts +166 -0
  281. package/src/shared/model-suggestion-retry.ts +165 -14
  282. package/src/shared/prompt-async-transport.test.ts +107 -0
  283. package/src/shared/prompt-async-transport.ts +86 -3
  284. package/src/shared/rpc-types.ts +7 -0
  285. package/src/shared/sqlite-busy-budget-review.test.ts +6 -1
  286. package/src/shared/sqlite.ts +4 -2
  287. package/src/shared/subagent-runner.ts +2 -0
  288. package/src/shared/worker-shutdown-fence.test.ts +87 -0
  289. package/src/shared/worker-shutdown.fixture.ts +25 -0
  290. package/src/shared/worker-shutdown.test.ts +127 -0
  291. package/src/shared/worker-shutdown.ts +160 -0
  292. package/dist/embedding-backfill-fmz50tsy.js +0 -24
  293. package/dist/recomp-orchestrator-ghpk2dtq.js +0 -61
  294. package/dist/v2/embedding-backfill-7c7yr69y.js +0 -23
  295. package/dist/v2/recomp-orchestrator-4vfxej9t.js +0 -60
  296. package/dist/wrapup-orchestrator-s9zc5b00.js +0 -48
@@ -3,10 +3,10 @@ import {
3
3
  } from "./index-g2q4htwp.js";
4
4
  import {
5
5
  log2
6
- } from "./index-j75v2476.js";
6
+ } from "./index-h7tgn49j.js";
7
7
  import {
8
8
  inRootAsyncContext2
9
- } from "./index-beht37jy.js";
9
+ } from "./index-1zx2pa5d.js";
10
10
  import {
11
11
  projectDirectoryKey
12
12
  } from "./index-knvkbfvh.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-pavzsdc6.js";
4
4
  import {
5
5
  sessionLog2
6
- } from "./index-j75v2476.js";
6
+ } from "./index-h7tgn49j.js";
7
7
  import {
8
8
  UNKNOWN_FIT_RATIO,
9
9
  resolveDecisionCalibration,
@@ -23,7 +23,7 @@ import {
23
23
  TAG_SELECT_COLUMNS2,
24
24
  getCandidateToolOwners2,
25
25
  pickNearestPriorOwner2
26
- } from "./index-cf74k5ak.js";
26
+ } from "./index-305y133n.js";
27
27
  import {
28
28
  OMO_INTERNAL_INITIATOR_MARKER,
29
29
  isSystemDirective,
@@ -41,13 +41,13 @@ import {
41
41
  formatBlock,
42
42
  compactTextForSummary,
43
43
  mergeCommitHashes
44
- } from "./index-c5pytzne.js";
44
+ } from "./index-b88dwwrh.js";
45
45
  import {
46
46
  prepareCachedStatement2
47
- } from "./index-beht37jy.js";
47
+ } from "./index-1zx2pa5d.js";
48
48
  import {
49
49
  stableStringify
50
- } from "./index-bp5083x2.js";
50
+ } from "./index-x9k3mqrf.js";
51
51
  import {
52
52
  renderToolTemplate,
53
53
  resolveModelConfigValue,
@@ -69,25 +69,25 @@ import {
69
69
  readRawSeedTailFromDb2,
70
70
  readRawSessionBoundaryEndpointsFromDb2,
71
71
  prewarmRawSessionOrdinalsForDb
72
- } from "./index-s734jcsr.js";
72
+ } from "./index-35qc6606.js";
73
73
  import {
74
74
  openCodeDbExists,
75
75
  withReadOnlySessionDb,
76
76
  getRawSessionMessageCountFromDb,
77
77
  getMessageTimesFromOpenCodeDb
78
- } from "./index-kq82mtg0.js";
78
+ } from "./index-11zf2wwc.js";
79
79
  import {
80
80
  getToolDefinitionMeasurementSignature,
81
81
  getLargestMeasuredToolDefinitionTokens,
82
82
  getMeasuredToolDefinitionTokens
83
- } from "./index-ke416mdc.js";
83
+ } from "./index-j76ah6d7.js";
84
84
  import {
85
85
  canonicalModelIdentity,
86
86
  piModelRefToCanonical
87
87
  } from "./index-avwt563y.js";
88
88
  import {
89
89
  logSlowWriteTransaction
90
- } from "./index-k29z4aqh.js";
90
+ } from "./index-t5pck3ss.js";
91
91
 
92
92
  // src/shared/hidden-zen-read.ts
93
93
  function isToolFreeHiddenAgent(agent) {
@@ -3712,6 +3712,21 @@ var THINKING_BINDING_STRIP_ORDER_END_MARKER = "binding_mismatch_order:end";
3712
3712
  function thinkingBindingRecoveryFrozenId(messageId) {
3713
3713
  return `${THINKING_BINDING_RECOVERY_FROZEN_PREFIX}${messageId}`;
3714
3714
  }
3715
+ var COMPACTION_OFF_THINKING_FROZEN_PREFIX = "compaction_off_thinking:";
3716
+ function compactionOffThinkingFrozenId(messageId) {
3717
+ return `${COMPACTION_OFF_THINKING_FROZEN_PREFIX}${messageId}`;
3718
+ }
3719
+ function compactionOffFrozenThinkingIds(ledger) {
3720
+ const ids = new Set;
3721
+ for (const entry of ledger) {
3722
+ if (!entry.startsWith(COMPACTION_OFF_THINKING_FROZEN_PREFIX))
3723
+ continue;
3724
+ const id = entry.slice(COMPACTION_OFF_THINKING_FROZEN_PREFIX.length);
3725
+ if (id.length > 0)
3726
+ ids.add(id);
3727
+ }
3728
+ return ids;
3729
+ }
3715
3730
  function getThinkingBindingRecoveryTarget(db, sessionId) {
3716
3731
  const row = db.prepare("SELECT thinking_binding_recovery_target FROM session_meta WHERE session_id = ?").get(sessionId);
3717
3732
  const target = row?.thinking_binding_recovery_target;
@@ -3929,6 +3944,13 @@ function getCompactionMarkerHealth(db, sessionId, now = Date.now()) {
3929
3944
  pendingSinceMs: firstFailedAt
3930
3945
  };
3931
3946
  }
3947
+ function executeReclaimFromReplay(raw) {
3948
+ try {
3949
+ return parseReplayDocument(raw).executeReclaim;
3950
+ } catch {
3951
+ return;
3952
+ }
3953
+ }
3932
3954
  function loadPostprocessReplaySnapshot(db, sessionId) {
3933
3955
  const row = db.prepare(`SELECT stale_reduce_stripped_ids, processed_image_stripped_ids,
3934
3956
  stripped_placeholder_ids, note_nudge_anchors,
@@ -3943,6 +3965,7 @@ function loadPostprocessReplaySnapshot(db, sessionId) {
3943
3965
  const todoPermissionDenied = row?.todo_permission_denied === 1 ? true : row?.todo_permission_denied === 0 ? false : null;
3944
3966
  const thinkingBindingRecoveryTarget = row?.thinking_binding_recovery_target;
3945
3967
  return {
3968
+ executeReclaim: executeReclaimFromReplay(row?.trailing_blank_decisions),
3946
3969
  staleReduceStrippedIds: new Set(parseStrippedBlob(row?.stale_reduce_stripped_ids)),
3947
3970
  processedImageStrippedIds: new Set(parseProcessedImageMarkers(row?.processed_image_stripped_ids).keys()),
3948
3971
  processedImageMarkers: parseProcessedImageMarkers(row?.processed_image_stripped_ids),
@@ -7331,4 +7354,4 @@ function readRawSessionSeedTail2(sessionId, boundaryId, onQuery) {
7331
7354
  });
7332
7355
  }
7333
7356
 
7334
- export { isToolFreeHiddenAgent, TOOL_USE_DISABLED, ZEN_READ_AGENT_SUFFIX, needsBlockedRead, withBlockedReadInstruction, rememberV1HiddenRun, shapeV1HiddenMessage, expandToolPart, markHostUnservedRow, retreatPastHostUnservedRows, snapTerminalCompartmentToServedRow, isHostRenderedSystemMessage, markCoveredInstructionRow, isCoveredInstructionRow, takeCoveredInstructionRows, cloneKeepingCoveredInstructionMarks, completedToolArcCrossesBoundary, estimateTrueRawMessageTokens, buildToolArcs, fenceBoundaryForCompletedToolArcs, fenceBoundaryForToolArcs, buildTrueRawTokenIndex, computeRawRangeFingerprint, invalidateTrueRawTokenCache, stripSystemInjection, isTextPart, isToolPartWithOutput, isFilePart, toolPartHasUserAnswer, DreamTokenBudgetExceeded, TOKEN_BUDGET_FINALIZE_MESSAGE, registerBudgetFinalizeChild, releaseBudgetFinalizeChild, createDreamTokenBudget, recordToolParameters, createDroppedInputGuard, assertExecutableToolInput, createDroppedInputToolExecuteBeforeHook, isEditTool, MERGED_REASONING_PARTS_PREFIX, decodeMergedReasoningParts, MAX_EXECUTE_THRESHOLD, escalationBands, HYGIENE_PROVIDER_UNITS_VERSION, sessionDecisionCalibration, transitionSessionHygieneUnits, readEpochFloorSnapshot, getProtectionWindowForSession, SESSION_META_SELECT_COLUMNS, META_COLUMNS, BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, isSessionMetaRow, getDefaultSessionMeta, ensureSessionMetaRow, toSessionMeta, persistCachedM0, clearCachedM0M1, clearCachedM0, withReplayEnvelopeSnapshot, invalidateReplayEnvelopeSnapshot, isRustMarkerAdmissionFenced, setRustMarkerAdmissionFence, ReplayDocumentError, readReplayEnvelope, readReplayDocument, updateReplayDocument, writeReplayDocument, isEmergencyRecoveryArmed, isProviderOverflowReconfirmed, isProviderOverflowFailClosedProven, getEmergencyRecoveryArmedAt, describeProtectedTailDrainBudgetSkip, loadPersistedUsage, loadProtectedTailMeta, markProtectedTailPolicyV3Seeded, recordProtectedTailPublicationFloor, recordProtectedTailNoEligibleHead, resetProtectedTailNoEligibleHead, getWrapupInProgressState, isWrapupInProgress, acquireWrapupInProgress, updateWrapupInProgress, releaseWrapupInProgress, resolveCompactionModeRecord, getCompactionModeRecord, setCompactionModeRecord, getProtectedTailDrainBudgetSkip, reserveProtectedTailDrainTokens, clearEmergencyDrainLatch, recordHistorianDrainFailure, clearHistorianDrainFailure, rollbackProtectedTailDrainReservation, getPersistedReasoningWatermark, setPersistedReasoningWatermark, clearPersistedReasoningWatermark, getEmergencyInputSample, setEmergencyDropSample, clearEmergencyDropSample, getLastNudgeUndropped, setLastNudgeUndropped, getChannel1NudgeState, setChannel1NudgeState, markChannel1PostReduceGracePending, captureChannel1PostReduceGraceBaseline, getChannel2NudgeState, getChannel2NudgeClaim, setChannel2NudgeState, casChannel2NudgeState, claimChannel2NudgeState, casChannel2NudgeClaim, getPersistedNoteNudge, setPersistedNoteNudgeTrigger, setPersistedNoteNudgeTriggerMessageId, getNoteNudgeAnchors, getAutoSearchHintDecisions, deliverNoteNudgeAtomic, appendAutoSearchHintDecision, pruneNoteNudgeAnchors, removeNoteNudgeAnchorByMessageId, queueAutoSearchHintDecisionRetirement, flushAutoSearchHintDecisionRetirement, removeAutoSearchHintDecisionByMessageId, getPersistedTodoPermissionDenied, setPersistedTodoPermissionDenied, getPersistedTodoSyntheticAnchor, setPersistedTodoSyntheticAnchor, clearPersistedTodoSyntheticAnchor, getNoteLastReadAt, setNoteLastReadAt, getHistorianFailureState, incrementHistorianFailure, clearHistorianFailureState, getOverflowState, loadTransformPassStateSnapshot, recordOverflowDetected, recordDetectedContextLimit, clearEmergencyRecovery, clearDetectedContextLimit, getPersistedCompactionMarkerState, setPersistedCompactionMarkerState, getDeferredClearedCompactionMarkerState, retireDeferredClearedCompactionMarkerState, parseStrippedPlaceholderState, serializeStrippedPlaceholderState, getStrippedPlaceholderIds, applyStrippedPlaceholderDelta, removeStrippedPlaceholderId, THINKING_BINDING_RECOVERY_FROZEN_PREFIX, THINKING_BINDING_STRIP_ORDER_END_MARKER, thinkingBindingRecoveryFrozenId, getThinkingBindingRecoveryTarget, armThinkingBindingRecovery, clearThinkingBindingRecoveryIf, getMergedReasoningStrippedIds, addMergedReasoningStrippedIds, getTrailingBlankDecisions, addTrailingBlankDecisions, demoteTrailingBlankKeepDecisions, getStaleReduceStrippedIds, addStaleReduceStrippedIds, getProcessedImageStrippedIds, parseProcessedImageMarkers, serializeProcessedImageMarkers, getProcessedImageMarkers, addProcessedImageStrippedIds, getPendingCompactionMarkerState, getCompactionMarkerHealth, loadPostprocessReplaySnapshot, setPendingCompactionMarkerState, replacePendingCompactionMarkerStateIf, clearPendingCompactionMarkerStateIf, getPendingPiCompactionMarkerState, clearPendingPiCompactionMarkerStateIf, logPiCompactionMarkerClear, getSessionsWithPendingMarker, setSessionWorkMetrics, getObservedEpochFloor, resolveEpochFloorForPass, getReasoningRemovalState, addRemovedReasoningIds, markDropLeavesReasoning, detectThinkingBindingMismatch, detectLatestTurnThinkingMismatch, isPrefixBoundThinkingModel, detectOverflow, modelAcceptsEmptyContent, isAnthropicFamilyRoute, neutralizeDroppedReasoningPart, restoreNeutralizedReasoningPart, isNeutralizedReasoningPart, variantChangeBustsProviderCache, makeSentinel, makeWholeMessageSentinel, isSentinel, replaySentinelByMessageIds, isInActiveAnthropicTurn, activeAnthropicTurnStart, hasAnthropicReasoning, stripSystemInjectedMessages, stripDroppedPlaceholderMessages, replayClearedReasoning, replayStrippedInlineThinking, clearOldReasoning, stripClearedReasoning, stripInlineThinking, findReasoningBearingAssistantIds, findLatestAssistantReasoningMutationExemptMessage, snapshotTrailingBlankSourceDecisions, findTrailingBlankDecisionCandidates, applyFrozenTrailingBlankDecisions, stripReasoningFromAssistantIds, findMergedReasoningStripDecisions, stripReasoningFromMergedAssistants, getEmptyImageParts, stripProcessedImages, projectOpencodeReasoningBudgetCutoff, DEFAULT_KEEP_REASONING_TOKENS, resolveKeepReasoningTokens, reasoningStepCost, reasoningBudgetCutoff, reasoningTextAndOpaque, opencodeReasoningBudgetCutoff, describeFinalWireTail, estimatePartImageTokens, estimateMessageTokens, wireContentBytes, createFinalWireUsageTracker, estimateFinalWireInputTokens, estimateAppendedWireTokens, SKELETON_REAL_INPUT_MAX_BYTES, partHasCompletedResult, extractToolCallObservation, ToolMutationBatch, createToolDropTarget, resolveHostServedBoundaryId2, hasRawMessageProvider2, setRawMessageProvider2, setBoundedRawMessageProvider2, withRawMessageProvider2, cleanUserText2, withRawSessionMessageCache2, readRawSessionMessages2, readRawSessionMessagePage2, getRawSessionMessageOrdinalCount2, RAW_MESSAGE_VISIT_PAGE_SIZE2, visitRawSessionMessages2, visitRawSessionMessagesAsync2, readRawSessionMessageRange2, prepareRawSessionOrdinals2, primeTailRawMessageCache2, getCachedAbsoluteMessageCount2, primeInMemoryTailRawMessageCache2, readRawSessionMessageOrdinalPage2, getRawSessionStoredMessageCount2, readRawSessionMessageIdOrdinalsForRange2, readRawSessionMessageIdOrdinals2, readRawSessionMessagePartsById2, readRawSessionBoundaryEndpoints2, hasRawSessionMessageById2, readRawSessionMessageOrdinalById2, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
7357
+ export { isToolFreeHiddenAgent, TOOL_USE_DISABLED, ZEN_READ_AGENT_SUFFIX, needsBlockedRead, withBlockedReadInstruction, rememberV1HiddenRun, shapeV1HiddenMessage, expandToolPart, markHostUnservedRow, retreatPastHostUnservedRows, snapTerminalCompartmentToServedRow, isHostRenderedSystemMessage, markCoveredInstructionRow, isCoveredInstructionRow, takeCoveredInstructionRows, cloneKeepingCoveredInstructionMarks, completedToolArcCrossesBoundary, estimateTrueRawMessageTokens, buildToolArcs, fenceBoundaryForCompletedToolArcs, fenceBoundaryForToolArcs, buildTrueRawTokenIndex, computeRawRangeFingerprint, invalidateTrueRawTokenCache, stripSystemInjection, isTextPart, isToolPartWithOutput, isFilePart, toolPartHasUserAnswer, DreamTokenBudgetExceeded, TOKEN_BUDGET_FINALIZE_MESSAGE, registerBudgetFinalizeChild, releaseBudgetFinalizeChild, createDreamTokenBudget, recordToolParameters, createDroppedInputGuard, assertExecutableToolInput, createDroppedInputToolExecuteBeforeHook, isEditTool, MERGED_REASONING_PARTS_PREFIX, decodeMergedReasoningParts, MAX_EXECUTE_THRESHOLD, escalationBands, HYGIENE_PROVIDER_UNITS_VERSION, sessionDecisionCalibration, transitionSessionHygieneUnits, readEpochFloorSnapshot, getProtectionWindowForSession, SESSION_META_SELECT_COLUMNS, META_COLUMNS, BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, isSessionMetaRow, getDefaultSessionMeta, ensureSessionMetaRow, toSessionMeta, persistCachedM0, clearCachedM0M1, clearCachedM0, withReplayEnvelopeSnapshot, invalidateReplayEnvelopeSnapshot, isRustMarkerAdmissionFenced, setRustMarkerAdmissionFence, ReplayDocumentError, readReplayEnvelope, readReplayDocument, updateReplayDocument, writeReplayDocument, isEmergencyRecoveryArmed, isProviderOverflowReconfirmed, isProviderOverflowFailClosedProven, getEmergencyRecoveryArmedAt, describeProtectedTailDrainBudgetSkip, loadPersistedUsage, loadProtectedTailMeta, markProtectedTailPolicyV3Seeded, recordProtectedTailPublicationFloor, recordProtectedTailNoEligibleHead, resetProtectedTailNoEligibleHead, getWrapupInProgressState, isWrapupInProgress, acquireWrapupInProgress, updateWrapupInProgress, releaseWrapupInProgress, resolveCompactionModeRecord, getCompactionModeRecord, setCompactionModeRecord, getProtectedTailDrainBudgetSkip, reserveProtectedTailDrainTokens, clearEmergencyDrainLatch, recordHistorianDrainFailure, clearHistorianDrainFailure, rollbackProtectedTailDrainReservation, getPersistedReasoningWatermark, setPersistedReasoningWatermark, clearPersistedReasoningWatermark, getEmergencyInputSample, setEmergencyDropSample, clearEmergencyDropSample, getLastNudgeUndropped, setLastNudgeUndropped, getChannel1NudgeState, setChannel1NudgeState, markChannel1PostReduceGracePending, captureChannel1PostReduceGraceBaseline, getChannel2NudgeState, getChannel2NudgeClaim, setChannel2NudgeState, casChannel2NudgeState, claimChannel2NudgeState, casChannel2NudgeClaim, getPersistedNoteNudge, setPersistedNoteNudgeTrigger, setPersistedNoteNudgeTriggerMessageId, getNoteNudgeAnchors, getAutoSearchHintDecisions, deliverNoteNudgeAtomic, appendAutoSearchHintDecision, pruneNoteNudgeAnchors, removeNoteNudgeAnchorByMessageId, queueAutoSearchHintDecisionRetirement, flushAutoSearchHintDecisionRetirement, removeAutoSearchHintDecisionByMessageId, getPersistedTodoPermissionDenied, setPersistedTodoPermissionDenied, getPersistedTodoSyntheticAnchor, setPersistedTodoSyntheticAnchor, clearPersistedTodoSyntheticAnchor, getNoteLastReadAt, setNoteLastReadAt, getHistorianFailureState, incrementHistorianFailure, clearHistorianFailureState, getOverflowState, loadTransformPassStateSnapshot, recordOverflowDetected, recordDetectedContextLimit, clearEmergencyRecovery, clearDetectedContextLimit, getPersistedCompactionMarkerState, setPersistedCompactionMarkerState, getDeferredClearedCompactionMarkerState, retireDeferredClearedCompactionMarkerState, parseStrippedPlaceholderState, serializeStrippedPlaceholderState, getStrippedPlaceholderIds, applyStrippedPlaceholderDelta, removeStrippedPlaceholderId, THINKING_BINDING_RECOVERY_FROZEN_PREFIX, THINKING_BINDING_STRIP_ORDER_END_MARKER, thinkingBindingRecoveryFrozenId, COMPACTION_OFF_THINKING_FROZEN_PREFIX, compactionOffThinkingFrozenId, compactionOffFrozenThinkingIds, getThinkingBindingRecoveryTarget, armThinkingBindingRecovery, clearThinkingBindingRecoveryIf, getMergedReasoningStrippedIds, addMergedReasoningStrippedIds, getTrailingBlankDecisions, addTrailingBlankDecisions, demoteTrailingBlankKeepDecisions, getStaleReduceStrippedIds, addStaleReduceStrippedIds, getProcessedImageStrippedIds, parseProcessedImageMarkers, serializeProcessedImageMarkers, getProcessedImageMarkers, addProcessedImageStrippedIds, getPendingCompactionMarkerState, getCompactionMarkerHealth, loadPostprocessReplaySnapshot, setPendingCompactionMarkerState, replacePendingCompactionMarkerStateIf, clearPendingCompactionMarkerStateIf, getPendingPiCompactionMarkerState, clearPendingPiCompactionMarkerStateIf, logPiCompactionMarkerClear, getSessionsWithPendingMarker, setSessionWorkMetrics, getObservedEpochFloor, resolveEpochFloorForPass, getReasoningRemovalState, addRemovedReasoningIds, markDropLeavesReasoning, detectThinkingBindingMismatch, detectLatestTurnThinkingMismatch, isPrefixBoundThinkingModel, detectOverflow, modelAcceptsEmptyContent, isAnthropicFamilyRoute, neutralizeDroppedReasoningPart, restoreNeutralizedReasoningPart, isNeutralizedReasoningPart, variantChangeBustsProviderCache, makeSentinel, makeWholeMessageSentinel, isSentinel, replaySentinelByMessageIds, isInActiveAnthropicTurn, activeAnthropicTurnStart, hasAnthropicReasoning, stripSystemInjectedMessages, stripDroppedPlaceholderMessages, replayClearedReasoning, replayStrippedInlineThinking, clearOldReasoning, stripClearedReasoning, stripInlineThinking, findReasoningBearingAssistantIds, findLatestAssistantReasoningMutationExemptMessage, snapshotTrailingBlankSourceDecisions, findTrailingBlankDecisionCandidates, applyFrozenTrailingBlankDecisions, stripReasoningFromAssistantIds, findMergedReasoningStripDecisions, stripReasoningFromMergedAssistants, getEmptyImageParts, stripProcessedImages, projectOpencodeReasoningBudgetCutoff, DEFAULT_KEEP_REASONING_TOKENS, resolveKeepReasoningTokens, reasoningStepCost, reasoningBudgetCutoff, reasoningTextAndOpaque, opencodeReasoningBudgetCutoff, describeFinalWireTail, estimatePartImageTokens, estimateMessageTokens, wireContentBytes, createFinalWireUsageTracker, estimateFinalWireInputTokens, estimateAppendedWireTokens, SKELETON_REAL_INPUT_MAX_BYTES, partHasCompletedResult, extractToolCallObservation, ToolMutationBatch, createToolDropTarget, resolveHostServedBoundaryId2, hasRawMessageProvider2, setRawMessageProvider2, setBoundedRawMessageProvider2, withRawMessageProvider2, cleanUserText2, withRawSessionMessageCache2, readRawSessionMessages2, readRawSessionMessagePage2, getRawSessionMessageOrdinalCount2, RAW_MESSAGE_VISIT_PAGE_SIZE2, visitRawSessionMessages2, visitRawSessionMessagesAsync2, readRawSessionMessageRange2, prepareRawSessionOrdinals2, primeTailRawMessageCache2, getCachedAbsoluteMessageCount2, primeInMemoryTailRawMessageCache2, readRawSessionMessageOrdinalPage2, getRawSessionStoredMessageCount2, readRawSessionMessageIdOrdinalsForRange2, readRawSessionMessageIdOrdinals2, readRawSessionMessagePartsById2, readRawSessionBoundaryEndpoints2, hasRawSessionMessageById2, readRawSessionMessageOrdinalById2, compareRawSessionMessageOrder2, readRawSessionMessageById2, getRawSessionMessageCount2, RAW_SESSION_TAG_KEY_PAGE_SIZE2, getRawSessionTagKeysThrough2, getLegacyProtectedTailStartOrdinal2, getProtectedTailStartOrdinal2, readSessionChunk2, getRawSessionMessageIdsThrough2, readRawSessionSeedTail2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-j75v2476.js";
3
+ } from "./index-h7tgn49j.js";
4
4
  import {
5
5
  isKnownAutocommit
6
6
  } from "./index-8ajstryz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPrivilegedWriter2
3
- } from "./index-beht37jy.js";
3
+ } from "./index-1zx2pa5d.js";
4
4
  import {
5
5
  MEMORY_CATEGORY_ORDER_SQL
6
6
  } from "./index-fr0wbhdn.js";
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  detectOverflow,
29
29
  isAnthropicFamilyRoute,
30
30
  readRawSessionMessages2
31
- } from "./index-rmwykbbb.js";
31
+ } from "./index-x4k3f4mf.js";
32
32
  import {
33
33
  setHarness2
34
34
  } from "./index-pavzsdc6.js";
@@ -44,7 +44,7 @@ import {
44
44
  log2,
45
45
  sessionLog2,
46
46
  flushLogger2
47
- } from "./index-j75v2476.js";
47
+ } from "./index-h7tgn49j.js";
48
48
  import {
49
49
  withContentLanguageDirective,
50
50
  string,
@@ -97,7 +97,7 @@ import {
97
97
  checkCompactionMarkerConsistency,
98
98
  clearInjectionCache,
99
99
  clearNoteNudgeTriggerOnly
100
- } from "./index-s1ex9y6p.js";
100
+ } from "./index-v7r4td4c.js";
101
101
  import"./index-sd3egckz.js";
102
102
  import {
103
103
  hasTrustedAbsoluteWall,
@@ -107,13 +107,13 @@ import {
107
107
  deriveHistorianChunkTokens2,
108
108
  resolveKnownHistorianContextLimit2,
109
109
  resolveHistorianContextLimit2
110
- } from "./index-v10f1rjv.js";
110
+ } from "./index-spwjbkc7.js";
111
111
  import {
112
112
  buildDreamTaskRuntimeConfigs2,
113
113
  userMemoryCollectionEnabled2,
114
114
  userObservationCollectionEnabled2,
115
115
  userObservationsRequested2
116
- } from "./index-p5y3k4g7.js";
116
+ } from "./index-nda0zgna.js";
117
117
  import {
118
118
  logConfigDependencyNotesOnce,
119
119
  openOpenCodeDb,
@@ -185,7 +185,7 @@ import {
185
185
  parameterDescriptionsFor,
186
186
  MagicContextRpcServer,
187
187
  applyHiddenSubagentTemperature
188
- } from "./index-936py2wm.js";
188
+ } from "./index-t7hx3qcb.js";
189
189
  import {
190
190
  resolveOpenCodeDbPath,
191
191
  openCodeDbPathExists,
@@ -194,7 +194,7 @@ import {
194
194
  } from "./index-58e3y90n.js";
195
195
  import {
196
196
  inRootAsyncContext2
197
- } from "./index-beht37jy.js";
197
+ } from "./index-1zx2pa5d.js";
198
198
  import {
199
199
  formatFailClosedBlockingMessage,
200
200
  createFailClosedController,
@@ -209,7 +209,7 @@ import {
209
209
  openDatabaseAsync,
210
210
  isDatabasePersisted,
211
211
  getDatabasePersistenceError
212
- } from "./index-fgncb0ng.js";
212
+ } from "./index-rmd0069m.js";
213
213
  import {
214
214
  setHomeProjectPermission,
215
215
  ProjectIdentityError,
@@ -220,98 +220,99 @@ import {
220
220
  beginBootQuietPeriod,
221
221
  bootQuietRemainingMs,
222
222
  scheduleAfterBootQuiet
223
- } from "./index-2vxtcb95.js";
223
+ } from "./index-vkc1ca9p.js";
224
224
  import {
225
225
  deleteTemporalDecision
226
- } from "./index-bp5083x2.js";
226
+ } from "./index-x9k3mqrf.js";
227
227
  import {
228
228
  BoundedSessionMap,
229
229
  observeSessionActivity,
230
230
  backfillSessionActivity,
231
231
  deleteIndexedMessage2
232
- } from "./index-x4njr8df.js";
232
+ } from "./index-48stjd56.js";
233
233
  import {
234
234
  recordSessionProjectIdentity
235
- } from "./index-rr2bb45z.js";
236
- import"./index-nj7yykkx.js";
235
+ } from "./index-c4b76d4t.js";
236
+ import"./index-c7phnbvk.js";
237
237
  import"./index-fb3zxn06.js";
238
238
  import {
239
239
  registerExitAbort,
240
240
  unregisterExitAbort
241
241
  } from "./index-v0p37hm2.js";
242
+ import"./index-cpjk5jd2.js";
242
243
  import {
243
244
  forgetRawSessionOrdinalWatermark2
244
- } from "./index-s734jcsr.js";
245
- import"./index-a6mc0v4d.js";
246
- import"./index-qn7xstt2.js";
245
+ } from "./index-35qc6606.js";
246
+ import"./index-jmycsey7.js";
247
+ import"./index-pnjwa6qa.js";
247
248
  import"./index-fr0wbhdn.js";
248
249
  import {
249
250
  preloadTokenizer
250
- } from "./index-c5pytzne.js";
251
+ } from "./index-b88dwwrh.js";
251
252
  import {
252
253
  getCurrentToolSetHash,
253
254
  recordToolDefinition
254
- } from "./index-ke416mdc.js";
255
- import"./index-6x57ar45.js";
255
+ } from "./index-j76ah6d7.js";
256
+ import"./index-adk2z5d8.js";
256
257
  import {
257
258
  getDefaultSubcConnectionFile,
258
259
  SubcModuleTransport
259
- } from "./index-s7j8tvhv.js";
260
+ } from "./index-dc8hy95c.js";
260
261
  import"./index-qt1qqasc.js";
261
- import"./index-y9f76s3f.js";
262
+ import"./index-rrv26qjz.js";
262
263
  import {
263
264
  observeOpenCodeTurnEvent,
264
265
  clearTrackedOpenCodeSession,
265
266
  findLastAssistantModelFromOpenCodeDb
266
- } from "./index-kq82mtg0.js";
267
+ } from "./index-11zf2wwc.js";
267
268
  import {
268
269
  sendCommandResult2,
269
270
  sendStatusNotification2
270
- } from "./index-s74zqahq.js";
271
+ } from "./index-kc9pn495.js";
271
272
  import {
272
273
  detectConflicts,
273
274
  resolveCompactionForBoot
274
- } from "./index-kee4kn5j.js";
275
+ } from "./index-4pnsgvfk.js";
275
276
  import {
276
277
  sendConflictWarning2,
277
278
  cleanupConflictWarnings2
278
- } from "./index-jn12fvvh.js";
279
+ } from "./index-neb2jaed.js";
279
280
  import"./index-1zx87sdm.js";
280
281
  import {
281
282
  stripPersistedAssistantText,
282
283
  deleteTagsByMessageId2,
283
284
  getMaxTagNumberBySession2
284
- } from "./index-cf74k5ak.js";
285
+ } from "./index-305y133n.js";
285
286
  import {
286
287
  resolveHistorianModel2,
287
288
  resolveOpenCodeAgentOverrides2,
288
289
  resolveHistorianAgentOverrides2
289
- } from "./index-8cd2j99z.js";
290
+ } from "./index-5kym00ag.js";
290
291
  import {
291
292
  getEmbedDrainUiStatus,
292
293
  clearEmbedSessionState,
293
294
  getEmbeddingCoverageStatus2
294
- } from "./index-ze7mvk54.js";
295
- import"./index-b5vqckbw.js";
296
- import"./index-v8awdgvd.js";
295
+ } from "./index-2yhtnfcf.js";
296
+ import"./index-153r2q6z.js";
297
+ import"./index-1pefp8ar.js";
297
298
  import {
298
299
  pushNotification2
299
300
  } from "./index-x8a7jmkh.js";
300
- import"./index-bjcnntmz.js";
301
+ import"./index-0wthn7fp.js";
301
302
  import"./index-4dhv7mqz.js";
302
- import"./index-24fezq97.js";
303
- import"./index-n37sebck.js";
304
- import"./index-4s3t0nd0.js";
303
+ import"./index-jr5na10t.js";
304
+ import"./index-y4a3nhtk.js";
305
+ import"./index-616rsjrv.js";
305
306
  import {
306
307
  createTagger,
307
308
  cavemanWordRulesForLanguage,
308
309
  setCtxReduceRegisteredGlobally,
309
310
  clearToolPermissionDenied,
310
311
  resetDegradedCacheCount2
311
- } from "./index-e4xv8890.js";
312
+ } from "./index-67nyj0gy.js";
312
313
  import {
313
314
  runManagedRecomp2
314
- } from "./index-r4nkrs05.js";
315
+ } from "./index-jfh3cktr.js";
315
316
  import {
316
317
  isValidSemver,
317
318
  compareSemverCore
@@ -319,9 +320,9 @@ import {
319
320
  import"./index-fmsr7v69.js";
320
321
  import {
321
322
  runManagedWrapup2
322
- } from "./index-24jbw52d.js";
323
+ } from "./index-4n7w9rad.js";
323
324
  import"./index-kaqs6h31.js";
324
- import"./index-6s5941tm.js";
325
+ import"./index-d6rp4dxh.js";
325
326
  import {
326
327
  isDreamerRunnable,
327
328
  isSmartNoteSurfaceAvailable,
@@ -341,7 +342,7 @@ import {
341
342
  import {
342
343
  closeQuietly
343
344
  } from "./index-8ajstryz.js";
344
- import"./index-k29z4aqh.js";
345
+ import"./index-t5pck3ss.js";
345
346
  import {
346
347
  setStoragePrivatePermissionEnforcement,
347
348
  ensureStorageDirectorySync,
@@ -8189,7 +8190,7 @@ var require_src2 = __commonJS(function(exports, module) {
8189
8190
  // package.json
8190
8191
  var package_default = {
8191
8192
  name: "@cortexkit/opencode-magic-context",
8192
- version: "0.49.18",
8193
+ version: "0.49.20",
8193
8194
  type: "module",
8194
8195
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
8195
8196
  main: "dist/index.js",
@@ -10451,7 +10452,9 @@ function createMagicContextHook(deps) {
10451
10452
  db,
10452
10453
  projectIdentity: identity,
10453
10454
  ensureRegistered: async () => {
10454
- await ensureProjectRegisteredFromOpenCodeDirectory(directory, db);
10455
+ await ensureProjectRegisteredFromOpenCodeDirectory(directory, db, {
10456
+ preflightLocalPooling: true
10457
+ });
10455
10458
  maybeSendProjectIdentitySessionWarning(sessionId, directory);
10456
10459
  }
10457
10460
  }, sessionId);
@@ -11853,7 +11856,11 @@ function createToolRegistry(args) {
11853
11856
  getProtectionWindow: (sessionId) => getProtectionWindowForSession(db, sessionId, getObservedEpochFloor(db, sessionId)),
11854
11857
  rustToolBackends
11855
11858
  }),
11856
- ...createCtxExpandTools({ db, expandTools: pluginConfig.historian?.expand_tools }),
11859
+ ...createCtxExpandTools({
11860
+ db,
11861
+ expandTools: pluginConfig.historian?.expand_tools,
11862
+ transformMode: pluginConfig.transform_mode
11863
+ }),
11857
11864
  ...createCtxNoteTools({
11858
11865
  db,
11859
11866
  dreamerEnabled: isDreamerRunnable(pluginConfig),
@@ -12035,7 +12042,7 @@ async function setup(context) {
12035
12042
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
12036
12043
  log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
12037
12044
  }
12038
- const { registerContext } = await import("./context-m897gfp9.js");
12045
+ const { registerContext } = await import("./context-mkece1db.js");
12039
12046
  setHarness2("opencode2");
12040
12047
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
12041
12048
  const duties = await registerContext(context);
@@ -12114,7 +12121,7 @@ var server = async (ctx) => {
12114
12121
  if (hasBannerEntries)
12115
12122
  setTimeout(async () => {
12116
12123
  try {
12117
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
12124
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
12118
12125
  const clientWithSessions = ctx.client;
12119
12126
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12120
12127
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12132,7 +12139,7 @@ var server = async (ctx) => {
12132
12139
  log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
12133
12140
  setTimeout(async () => {
12134
12141
  try {
12135
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
12142
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
12136
12143
  const clientWithSessions = ctx.client;
12137
12144
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12138
12145
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12409,12 +12416,12 @@ var server = async (ctx) => {
12409
12416
  {
12410
12417
  const fence = getSchemaFenceRejection();
12411
12418
  if (fence) {
12412
- importPluginModule(() => import("./conflict-warning-hook-4pmz879v.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12419
+ importPluginModule(() => import("./conflict-warning-hook-frp3z2wk.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12413
12420
  }
12414
12421
  }
12415
12422
  const serverUrl = ctx.serverUrl;
12416
12423
  const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
12417
- importPluginModule(() => import("./send-session-notification-6ve0e8p4.js")).then(({ setNotificationServerUrl }) => {
12424
+ importPluginModule(() => import("./send-session-notification-0k6qzydk.js")).then(({ setNotificationServerUrl }) => {
12418
12425
  setNotificationServerUrl(serverUrlStr);
12419
12426
  }).catch((error) => log2("[magic-context] notification transport unavailable:", error));
12420
12427
  if (conflictResult?.hasConflict) {
@@ -12437,7 +12444,7 @@ var server = async (ctx) => {
12437
12444
  }) => {
12438
12445
  if (!shouldShowAnnouncement())
12439
12446
  return;
12440
- return importPluginModule(() => import("./conflict-warning-hook-4pmz879v.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12447
+ return importPluginModule(() => import("./conflict-warning-hook-frp3z2wk.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12441
12448
  }).catch(() => {});
12442
12449
  }, 8000);
12443
12450
  }
@@ -12511,8 +12518,8 @@ var server = async (ctx) => {
12511
12518
  tryReopenStorage,
12512
12519
  rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
12513
12520
  onStorageBusyRefusal: async (sessionId, message) => {
12514
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
12515
- const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-zpgav0h7.js"));
12521
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0k6qzydk.js"));
12522
+ const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-vtrgb7m6.js"));
12516
12523
  await sendStatusNotification(ctx.client, sessionId, message, {
12517
12524
  toastDurationMs: 15000
12518
12525
  });
@@ -6,7 +6,7 @@ import {
6
6
  getLoggerDiagnostics2,
7
7
  flushLogger2,
8
8
  getLogFilePath2
9
- } from "./index-j75v2476.js";
9
+ } from "./index-h7tgn49j.js";
10
10
  import"./index-g2q4htwp.js";
11
11
  import"./index-pavzsdc6.js";
12
12
  export {
@@ -6,14 +6,15 @@ import {
6
6
  messageFtsOrdinalRangeIsMapped2,
7
7
  getMessageFtsRowidMapBackfillProgress2,
8
8
  deleteUnmappedMessageFtsRows2
9
- } from "./index-a6mc0v4d.js";
10
- import"./index-s734jcsr.js";
9
+ } from "./index-jmycsey7.js";
10
+ import"./index-35qc6606.js";
11
11
  import"./index-v0p37hm2.js";
12
- import"./index-k29z4aqh.js";
13
- import"./index-beht37jy.js";
14
- import"./index-j75v2476.js";
12
+ import"./index-t5pck3ss.js";
13
+ import"./index-1zx2pa5d.js";
14
+ import"./index-h7tgn49j.js";
15
15
  import"./index-g2q4htwp.js";
16
16
  import"./index-pavzsdc6.js";
17
+ import"./index-cpjk5jd2.js";
17
18
  export {
18
19
  deleteUnmappedMessageFtsRows2 as deleteUnmappedMessageFtsRows,
19
20
  getMessageFtsRowidMapBackfillProgress2 as getMessageFtsRowidMapBackfillProgress,
@@ -17,27 +17,28 @@ import {
17
17
  indexMessagesAfterOrdinal2,
18
18
  indexSourcesAfterOrdinal2,
19
19
  sweepOrphanedOpenCodeMessageIndexesCooperatively2
20
- } from "./index-x4njr8df.js";
21
- import"./index-rmwykbbb.js";
22
- import"./index-cf74k5ak.js";
20
+ } from "./index-48stjd56.js";
21
+ import"./index-x4k3f4mf.js";
22
+ import"./index-305y133n.js";
23
23
  import"./index-1zx87sdm.js";
24
- import"./index-kq82mtg0.js";
24
+ import"./index-11zf2wwc.js";
25
25
  import"./index-wgypt3cs.js";
26
- import"./index-b5vqckbw.js";
27
- import"./index-6x57ar45.js";
28
- import"./index-a6mc0v4d.js";
29
- import"./index-nj7yykkx.js";
30
- import"./index-ke416mdc.js";
31
- import"./index-bp5083x2.js";
26
+ import"./index-153r2q6z.js";
27
+ import"./index-adk2z5d8.js";
28
+ import"./index-jmycsey7.js";
29
+ import"./index-c7phnbvk.js";
30
+ import"./index-j76ah6d7.js";
31
+ import"./index-x9k3mqrf.js";
32
32
  import"./index-58e3y90n.js";
33
- import"./index-s734jcsr.js";
33
+ import"./index-35qc6606.js";
34
34
  import"./index-v0p37hm2.js";
35
- import"./index-k29z4aqh.js";
36
- import"./index-c5pytzne.js";
37
- import"./index-beht37jy.js";
38
- import"./index-j75v2476.js";
35
+ import"./index-t5pck3ss.js";
36
+ import"./index-b88dwwrh.js";
37
+ import"./index-1zx2pa5d.js";
38
+ import"./index-h7tgn49j.js";
39
39
  import"./index-g2q4htwp.js";
40
40
  import"./index-pavzsdc6.js";
41
+ import"./index-cpjk5jd2.js";
41
42
  export {
42
43
  MESSAGE_INDEX_MAX_FTS_BYTES2 as MESSAGE_INDEX_MAX_FTS_BYTES,
43
44
  clearIndexedMessages2 as clearIndexedMessages,
@@ -2,11 +2,11 @@ import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withIndexChunk2,
4
4
  yieldIndexChunk2
5
- } from "./index-beht37jy.js";
5
+ } from "./index-1zx2pa5d.js";
6
6
  import"./index-pavzsdc6.js";
7
7
  import"./index-g2q4htwp.js";
8
- import"./index-j75v2476.js";
9
- import"./index-nj7yykkx.js";
8
+ import"./index-h7tgn49j.js";
9
+ import"./index-c7phnbvk.js";
10
10
  import {
11
11
  MESSAGE_INDEX_MAX_FTS_BYTES2,
12
12
  messageIndexSkipKey2,
@@ -14,22 +14,23 @@ import {
14
14
  markMessageIndexDirty2,
15
15
  getIndexableContent2,
16
16
  indexSingleMessage2
17
- } from "./index-x4njr8df.js";
17
+ } from "./index-48stjd56.js";
18
18
  import"./index-1zx87sdm.js";
19
- import"./index-cf74k5ak.js";
20
- import"./index-c5pytzne.js";
21
- import"./index-bp5083x2.js";
19
+ import"./index-305y133n.js";
20
+ import"./index-b88dwwrh.js";
21
+ import"./index-x9k3mqrf.js";
22
22
  import"./index-wgypt3cs.js";
23
23
  import"./index-v0p37hm2.js";
24
- import"./index-s734jcsr.js";
24
+ import"./index-cpjk5jd2.js";
25
+ import"./index-35qc6606.js";
25
26
  import"./index-58e3y90n.js";
26
- import"./index-kq82mtg0.js";
27
- import"./index-rmwykbbb.js";
28
- import"./index-ke416mdc.js";
29
- import"./index-a6mc0v4d.js";
30
- import"./index-6x57ar45.js";
31
- import"./index-b5vqckbw.js";
32
- import"./index-k29z4aqh.js";
27
+ import"./index-11zf2wwc.js";
28
+ import"./index-x4k3f4mf.js";
29
+ import"./index-j76ah6d7.js";
30
+ import"./index-jmycsey7.js";
31
+ import"./index-adk2z5d8.js";
32
+ import"./index-153r2q6z.js";
33
+ import"./index-t5pck3ss.js";
33
34
 
34
35
  // src/features/magic-context/message-index-bounded.ts
35
36
  import { createHash } from "node:crypto";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withoutSqliteTransformPass2
4
- } from "./index-beht37jy.js";
4
+ } from "./index-1zx2pa5d.js";
5
5
  import"./index-pavzsdc6.js";
6
6
  import"./index-g2q4htwp.js";
7
- import"./index-j75v2476.js";
7
+ import"./index-h7tgn49j.js";
8
8
  import {
9
9
  logSlowWriteTransaction
10
- } from "./index-k29z4aqh.js";
10
+ } from "./index-t5pck3ss.js";
11
11
 
12
12
  // src/features/magic-context/message-time-backfill.ts
13
13
  var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;