@cortexkit/opencode-magic-context 0.49.19 → 0.49.21

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 (323) 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-31h86ph0.js} +3 -3
  4. package/dist/compaction-marker-candidates-worker.js +2 -2
  5. package/dist/compartment-chunk-embedding-he60aaa2.js +65 -0
  6. package/dist/config/project-security.d.ts.map +1 -1
  7. package/dist/config/schema/magic-context.d.ts +43 -9
  8. package/dist/config/schema/magic-context.d.ts.map +1 -1
  9. package/dist/{conflict-warning-hook-4pmz879v.js → conflict-warning-hook-2r32hyx6.js} +9 -8
  10. package/dist/{context-j31m2dv7.js → context-j7hp43a0.js} +576 -185
  11. package/dist/{derive-budgets-zn7yzd2d.js → derive-budgets-pqybnx09.js} +2 -2
  12. package/dist/embedding-backfill-dtke6tck.js +25 -0
  13. package/dist/embedding-worker-process.js +2 -2
  14. package/dist/embedding-worker.js +6 -6
  15. package/dist/features/magic-context/chunk-embedding-writer.d.ts.map +1 -1
  16. package/dist/features/magic-context/compartment-chunk-embedding.d.ts +44 -1
  17. package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
  18. package/dist/features/magic-context/dreamer/docs-proposals.d.ts +1 -0
  19. package/dist/features/magic-context/dreamer/docs-proposals.d.ts.map +1 -1
  20. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
  21. package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
  22. package/dist/features/magic-context/dreamer/task-executor.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/memory/embedding-identity.d.ts.map +1 -1
  26. package/dist/features/magic-context/memory/embedding-local.d.ts +1 -0
  27. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  28. package/dist/features/magic-context/memory/embedding-synapse.d.ts.map +1 -1
  29. package/dist/features/magic-context/memory/embedding-worker-client.d.ts +7 -1
  30. package/dist/features/magic-context/memory/embedding-worker-client.d.ts.map +1 -1
  31. package/dist/features/magic-context/memory/local-embedding-pooling.d.ts +22 -0
  32. package/dist/features/magic-context/memory/local-embedding-pooling.d.ts.map +1 -0
  33. package/dist/features/magic-context/message-index-async.d.ts +7 -2
  34. package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
  35. package/dist/features/magic-context/message-index.d.ts +2 -0
  36. package/dist/features/magic-context/message-index.d.ts.map +1 -1
  37. package/dist/features/magic-context/mural/compress-cues.d.ts.map +1 -1
  38. package/dist/features/magic-context/project-embedding-registry.d.ts +2 -0
  39. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  40. package/dist/features/magic-context/search-rerank.d.ts +9 -2
  41. package/dist/features/magic-context/search-rerank.d.ts.map +1 -1
  42. package/dist/features/magic-context/search.d.ts +29 -0
  43. package/dist/features/magic-context/search.d.ts.map +1 -1
  44. package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
  45. package/dist/features/magic-context/storage-db.d.ts +2 -0
  46. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  47. package/dist/features/magic-context/storage-meta-persisted.d.ts +2 -0
  48. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  49. package/dist/features/magic-context/subagent-token-capture.d.ts +20 -0
  50. package/dist/features/magic-context/subagent-token-capture.d.ts.map +1 -1
  51. package/dist/features/magic-context/user-memory/review-user-memories.d.ts.map +1 -1
  52. package/dist/{history-owner-xp3pngv7.js → history-owner-36wp3mkb.js} +2 -2
  53. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  54. package/dist/hooks/magic-context/auto-embed-session.d.ts.map +1 -1
  55. package/dist/hooks/magic-context/auto-search-hint.d.ts +7 -1
  56. package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
  57. package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
  58. package/dist/hooks/magic-context/auto-search-worker-client.d.ts +33 -6
  59. package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
  60. package/dist/hooks/magic-context/cache-busting-signals.d.ts +6 -2
  61. package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
  62. package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
  63. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  64. package/dist/hooks/magic-context/compartment-runner-types.d.ts +5 -0
  65. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  66. package/dist/hooks/magic-context/compartment-trigger.d.ts +1 -1
  67. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  68. package/dist/hooks/magic-context/diagnostic-log-state.d.ts +4 -0
  69. package/dist/hooks/magic-context/diagnostic-log-state.d.ts.map +1 -0
  70. package/dist/hooks/magic-context/execute-reclaim.d.ts +35 -0
  71. package/dist/hooks/magic-context/execute-reclaim.d.ts.map +1 -0
  72. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  73. package/dist/hooks/magic-context/hook.d.ts +1 -3
  74. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  75. package/dist/hooks/magic-context/latest-assistant-turn.d.ts +8 -0
  76. package/dist/hooks/magic-context/latest-assistant-turn.d.ts.map +1 -1
  77. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts +5 -0
  78. package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
  79. package/dist/hooks/magic-context/nudge-evaluation-log.d.ts +3 -0
  80. package/dist/hooks/magic-context/nudge-evaluation-log.d.ts.map +1 -0
  81. package/dist/hooks/magic-context/pending-drop-eligibility.d.ts.map +1 -1
  82. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +4 -0
  83. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  84. package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
  85. package/dist/hooks/magic-context/served-shape-repair.d.ts +19 -0
  86. package/dist/hooks/magic-context/served-shape-repair.d.ts.map +1 -0
  87. package/dist/hooks/magic-context/strip-content.d.ts +4 -2
  88. package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
  89. package/dist/hooks/magic-context/system-date-refresh.d.ts +5 -5
  90. package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
  91. package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts +10 -0
  92. package/dist/hooks/magic-context/system-prompt-sticky-date.d.ts.map +1 -0
  93. package/dist/hooks/magic-context/tag-content-primitives.d.ts +1 -1
  94. package/dist/hooks/magic-context/tag-content-primitives.d.ts.map +1 -1
  95. package/dist/hooks/magic-context/tag-messages.d.ts +4 -1
  96. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  97. package/dist/hooks/magic-context/text-complete.d.ts +1 -1
  98. package/dist/hooks/magic-context/text-complete.d.ts.map +1 -1
  99. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  100. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +21 -6
  101. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  102. package/dist/hooks/magic-context/transform.d.ts +2 -2
  103. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  104. package/dist/{index-3esx8tkf.js → index-11gzxvf4.js} +394 -125
  105. package/dist/{index-jn12fvvh.js → index-1gtfne2c.js} +3 -3
  106. package/dist/{index-jhghdnsm.js → index-1kbznkft.js} +521 -214
  107. package/dist/{index-3h4dp9wb.js → index-3svaejkh.js} +5 -5
  108. package/dist/{index-kee4kn5j.js → index-4pnsgvfk.js} +1 -1
  109. package/dist/{index-bjcnntmz.js → index-51rdvtkz.js} +501 -20
  110. package/dist/{v2/server-8cd2j99z.js → index-5kym00ag.js} +32 -13
  111. package/dist/{index-s74zqahq.js → index-66eby7hx.js} +4 -4
  112. package/dist/{index-63k48rv9.js → index-9q1g3c5q.js} +5 -5
  113. package/dist/{index-jrr131e0.js → index-a9zvn5fe.js} +29 -15
  114. package/dist/{index-c5pytzne.js → index-b88dwwrh.js} +1 -1
  115. package/dist/{index-nj7yykkx.js → index-c7phnbvk.js} +1 -1
  116. package/dist/index-cpjk5jd2.js +82 -0
  117. package/dist/{index-c1p88z1y.js → index-ffzhwfzy.js} +4 -4
  118. package/dist/{v2/server-beht37jy.js → index-gzy5w8ya.js} +194 -5
  119. package/dist/{index-j75v2476.js → index-h7tgn49j.js} +12 -15
  120. package/dist/{index-edmpdxcw.js → index-j32jj2t8.js} +5 -5
  121. package/dist/{index-ke416mdc.js → index-j76ah6d7.js} +2 -2
  122. package/dist/{index-s734jcsr.js → index-jfem3dgz.js} +9 -3
  123. package/dist/{index-n37sebck.js → index-jjvbk92s.js} +1 -1
  124. package/dist/{index-4911rn0b.js → index-jmq8kfe7.js} +6 -6
  125. package/dist/{index-rr2bb45z.js → index-kfyb3k6n.js} +2 -2
  126. package/dist/{index-2vxtcb95.js → index-kq5w68dp.js} +2 -2
  127. package/dist/{index-kq82mtg0.js → index-ksq50rg0.js} +3 -3
  128. package/dist/{index-b5vqckbw.js → index-m32esgmj.js} +314 -127
  129. package/dist/{index-9zcsy3hh.js → index-mnhcdfxg.js} +161 -13
  130. package/dist/{index-se4m2g6w.js → index-mnnkgq0q.js} +111 -19
  131. package/dist/{index-p5y3k4g7.js → index-nda0zgna.js} +2 -1
  132. package/dist/{index-wgypt3cs.js → index-nxrsns5x.js} +2466 -1290
  133. package/dist/{index-4s3t0nd0.js → index-qgh1qwjj.js} +2 -2
  134. package/dist/{index-y9f76s3f.js → index-rrv26qjz.js} +1 -1
  135. package/dist/{index-24fezq97.js → index-rxqr723x.js} +5 -5
  136. package/dist/{index-v10f1rjv.js → index-spwjbkc7.js} +1 -1
  137. package/dist/{index-dxmq29t1.js → index-syaazvy2.js} +182 -47
  138. package/dist/{index-k29z4aqh.js → index-t5pck3ss.js} +1 -1
  139. package/dist/{index-6x57ar45.js → index-wfybj1dw.js} +4 -6
  140. package/dist/{index-cf74k5ak.js → index-whcgcfrv.js} +9 -6
  141. package/dist/{index-a6mc0v4d.js → index-x6cbrv9h.js} +3 -3
  142. package/dist/{index-bp5083x2.js → index-x9k3mqrf.js} +1 -1
  143. package/dist/{index-rpxdjkm0.js → index-y76rhsnr.js} +319 -61
  144. package/dist/{index-ze7mvk54.js → index-zy67whjr.js} +95 -59
  145. package/dist/index.js +58 -54
  146. package/dist/{logger-jm3sqqzr.js → logger-94kew5wm.js} +1 -1
  147. package/dist/{message-fts-rowid-map-17s0dfn4.js → message-fts-rowid-map-e79b7b6x.js} +6 -5
  148. package/dist/{message-index-gtpqnj8w.js → message-index-4q8ek2fc.js} +17 -16
  149. package/dist/{message-index-bounded-zyc8h32y.js → message-index-bounded-rydsg9r5.js} +17 -16
  150. package/dist/{message-time-backfill-73mmm76q.js → message-time-backfill-4qva0b4f.js} +3 -3
  151. package/dist/migration-worker.js +13 -12
  152. package/dist/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
  153. package/dist/plugin/embedding-bootstrap.d.ts +4 -1
  154. package/dist/plugin/embedding-bootstrap.d.ts.map +1 -1
  155. package/dist/plugin/hooks/create-session-hooks.d.ts +1 -0
  156. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  157. package/dist/plugin/rpc-handlers.d.ts +8 -0
  158. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  159. package/dist/plugin/subagent-tool-policy.d.ts +9 -0
  160. package/dist/plugin/subagent-tool-policy.d.ts.map +1 -1
  161. package/dist/plugin/tool-registry.d.ts.map +1 -1
  162. package/dist/{project-embedding-registry-z74mhqkf.js → project-embedding-registry-hn529988.js} +16 -13
  163. package/dist/raw-ordinal-warmup-worker.js +136 -101
  164. package/dist/{read-session-chunk-jjb48bt9.js → read-session-chunk-t039f0m5.js} +12 -11
  165. package/dist/{read-session-raw-rsc8c7qy.js → read-session-raw-aw6jgvwg.js} +4 -3
  166. package/dist/recomp-orchestrator-hbm53jj5.js +62 -0
  167. package/dist/{safe-notification-target-1szv1k5k.js → safe-notification-target-mkr9yzvr.js} +2 -2
  168. package/dist/search-archive-weh164mh.js +26 -0
  169. package/dist/search-hea079d7.js +50 -0
  170. package/dist/{send-session-notification-6ve0e8p4.js → send-session-notification-gqzkz7da.js} +7 -6
  171. package/dist/shared/logger.d.ts.map +1 -1
  172. package/dist/shared/model-resolution.d.ts +2 -0
  173. package/dist/shared/model-resolution.d.ts.map +1 -1
  174. package/dist/shared/prompt-async-transport.d.ts +3 -0
  175. package/dist/shared/prompt-async-transport.d.ts.map +1 -1
  176. package/dist/shared/rpc-types.d.ts +7 -0
  177. package/dist/shared/rpc-types.d.ts.map +1 -1
  178. package/dist/shared/sqlite.d.ts +6 -1
  179. package/dist/shared/sqlite.d.ts.map +1 -1
  180. package/dist/shared/subagent-runner.d.ts +2 -0
  181. package/dist/shared/subagent-runner.d.ts.map +1 -1
  182. package/dist/shared/tag-transcript.d.ts +2 -0
  183. package/dist/shared/tag-transcript.d.ts.map +1 -1
  184. package/dist/shared/worker-shutdown.d.ts +68 -0
  185. package/dist/shared/worker-shutdown.d.ts.map +1 -0
  186. package/dist/shared/worker-shutdown.fixture.d.ts +2 -0
  187. package/dist/shared/worker-shutdown.fixture.d.ts.map +1 -0
  188. package/dist/{sqlite-zf72c52d.js → sqlite-zdgm52sv.js} +5 -1
  189. package/dist/{storage-memory-y3qmy00r.js → storage-memory-e6a7mb0k.js} +2 -2
  190. package/dist/{storage-tags-r7k9tjcv.js → storage-tags-a77q4v77.js} +5 -5
  191. package/dist/{task-config-x3qmayd2.js → task-config-t6bpyka7.js} +2 -2
  192. package/dist/tools/ctx-search/tools.d.ts.map +1 -1
  193. package/dist/tools/ctx-search/types.d.ts +1 -0
  194. package/dist/tools/ctx-search/types.d.ts.map +1 -1
  195. package/dist/{transform-postprocess-phase-jj99r7z2.js → transform-postprocess-phase-0b04tm1p.js} +35 -32
  196. package/dist/v2/auto-search-worker.js +48 -9
  197. package/dist/v2/chunk-embedding-write-worker.js +30 -23
  198. package/dist/v2/{compaction-marker-candidates-ebx3388k.js → compaction-marker-candidates-m4vmye3w.js} +3 -3
  199. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  200. package/dist/v2/compartment-chunk-embedding-8jjmcgeg.js +64 -0
  201. package/dist/v2/{context-y5yamxak.js → context-ea3x7smm.js} +1797 -810
  202. package/dist/v2/{derive-budgets-2zh4gm2c.js → derive-budgets-knf763tt.js} +3 -3
  203. package/dist/v2/embedding-backfill-5e74ae0m.js +24 -0
  204. package/dist/v2/embedding-worker-process.js +2 -2
  205. package/dist/v2/embedding-worker.js +6 -6
  206. package/dist/v2/hidden-child-record.d.ts +2 -0
  207. package/dist/v2/hidden-child-record.d.ts.map +1 -1
  208. package/dist/v2/hidden-completion.d.ts +2 -0
  209. package/dist/v2/hidden-completion.d.ts.map +1 -1
  210. package/dist/v2/hidden-model-activity.d.ts +7 -0
  211. package/dist/v2/hidden-model-activity.d.ts.map +1 -0
  212. package/dist/v2/{history-owner-42e16w0n.js → history-owner-ad0crnrn.js} +2 -2
  213. package/dist/v2/hooks/context.d.ts.map +1 -1
  214. package/dist/v2/hooks/copied-tag-notation.d.ts +1 -1
  215. package/dist/v2/hooks/copied-tag-notation.d.ts.map +1 -1
  216. package/dist/v2/hooks/dream-timer.d.ts +2 -0
  217. package/dist/v2/hooks/dream-timer.d.ts.map +1 -1
  218. package/dist/v2/hooks/embedding-lifecycle.d.ts +7 -0
  219. package/dist/v2/hooks/embedding-lifecycle.d.ts.map +1 -0
  220. package/dist/v2/hooks/generate.d.ts +36 -1
  221. package/dist/v2/hooks/generate.d.ts.map +1 -1
  222. package/dist/v2/hooks/lkg-system.d.ts +35 -4
  223. package/dist/v2/hooks/lkg-system.d.ts.map +1 -1
  224. package/dist/v2/hooks/payload.d.ts +16 -1
  225. package/dist/v2/hooks/payload.d.ts.map +1 -1
  226. package/dist/v2/hooks/store.d.ts +2 -0
  227. package/dist/v2/hooks/store.d.ts.map +1 -1
  228. package/dist/v2/hooks/tools.d.ts +2 -1
  229. package/dist/v2/hooks/tools.d.ts.map +1 -1
  230. package/dist/v2/hooks/transform-features.d.ts +2 -2
  231. package/dist/v2/hooks/transform-features.d.ts.map +1 -1
  232. package/dist/v2/{logger-7qt02bnb.js → logger-p34mjtja.js} +1 -1
  233. package/dist/v2/{message-fts-rowid-map-wfx67gfd.js → message-fts-rowid-map-n8fdg2ja.js} +6 -5
  234. package/dist/v2/{message-index-bounded-spd8r7pj.js → message-index-bounded-8rcd7qq9.js} +17 -16
  235. package/dist/v2/{message-index-8vz2pq76.js → message-index-qz9wdp82.js} +17 -16
  236. package/dist/v2/{message-time-backfill-04t0km1z.js → message-time-backfill-zvthw6xb.js} +3 -3
  237. package/dist/v2/migration-worker.js +13 -12
  238. package/dist/v2/{model-resolution-nx97z3x7.js → model-resolution-280gmqvd.js} +1 -1
  239. package/dist/v2/{project-embedding-registry-gnkj56xp.js → project-embedding-registry-v38q4xd5.js} +16 -13
  240. package/dist/v2/raw-ordinal-warmup-worker.js +136 -101
  241. package/dist/v2/{read-session-chunk-cwkxrmns.js → read-session-chunk-wazfyxcg.js} +12 -11
  242. package/dist/v2/{read-session-raw-yaegtjzh.js → read-session-raw-b70cpwzj.js} +4 -3
  243. package/dist/v2/recomp-orchestrator-b12zaptj.js +61 -0
  244. package/dist/v2/{safe-notification-target-qg7n2s77.js → safe-notification-target-khnzg57c.js} +2 -2
  245. package/dist/v2/search-archive-x64rtz1z.js +25 -0
  246. package/dist/v2/search-hza9x72a.js +49 -0
  247. package/dist/v2/{send-session-notification-3pxn658x.js → send-session-notification-8eqe259v.js} +7 -6
  248. package/dist/v2/{server-45q69hkq.js → server-132h8twc.js} +5 -5
  249. package/dist/v2/{server-h0410h0v.js → server-1bw1wcbp.js} +1 -1
  250. package/dist/v2/{server-271qxsf5.js → server-24g8r2d0.js} +2466 -1290
  251. package/dist/v2/{server-tbe1femw.js → server-29qp8nz4.js} +1 -1
  252. package/dist/v2/{server-gsxjv2q2.js → server-33nqbqkw.js} +182 -47
  253. package/dist/v2/{server-tgnbmwah.js → server-3mz2qh5a.js} +1 -1
  254. package/dist/v2/{server-n1prf1g6.js → server-3vhxy2k5.js} +2 -2
  255. package/dist/v2/{server-xj136kt8.js → server-4kjmrjn4.js} +9 -3
  256. package/dist/v2/{server-34kwfsr4.js → server-53eh1r8r.js} +2 -2
  257. package/dist/{index-8cd2j99z.js → v2/server-5kym00ag.js} +32 -13
  258. package/dist/v2/{server-46neh5fa.js → server-62g58aaz.js} +314 -127
  259. package/dist/v2/{server-f2xf5gcb.js → server-6495nmn9.js} +12 -15
  260. package/dist/v2/{server-a9xqj88f.js → server-6v3cdzsx.js} +4 -4
  261. package/dist/v2/{server-d04vrx0j.js → server-806rzhs6.js} +2 -2
  262. package/dist/v2/{server-qd11g795.js → server-92g7d776.js} +2 -1
  263. package/dist/v2/{server-nj659894.js → server-94wk1ey3.js} +14 -3
  264. package/dist/v2/{server-6tmj0s7j.js → server-ab1g0wn9.js} +4 -6
  265. package/dist/v2/{server-8by8qfec.js → server-ad18djzs.js} +95 -59
  266. package/dist/v2/{server-hy3d3vsx.js → server-bsgd4dk1.js} +2 -2
  267. package/dist/v2/server-cpjk5jd2.js +82 -0
  268. package/dist/v2/{server-g3qma5c0.js → server-d1dzgvwd.js} +2 -2
  269. package/dist/v2/{server-hm38q7r0.js → server-d48x3m4x.js} +5 -5
  270. package/dist/v2/{server-1wy7b9de.js → server-dtp8hcjh.js} +3 -3
  271. package/dist/v2/{server-27gq4mfz.js → server-fa7vtp40.js} +9 -6
  272. package/dist/v2/{server-6pmqg9m4.js → server-gyy4k6mf.js} +1 -1
  273. package/dist/{index-beht37jy.js → v2/server-gzy5w8ya.js} +194 -5
  274. package/dist/v2/{server-bmymkx73.js → server-j8h7bsca.js} +29 -15
  275. package/dist/v2/{server-n37sebck.js → server-jjvbk92s.js} +1 -1
  276. package/dist/v2/{server-da07v4xp.js → server-k3t06fxr.js} +1 -1
  277. package/dist/v2/{server-9hx7g5jp.js → server-m4bfaevz.js} +1197 -1049
  278. package/dist/v2/{server-2ar62dyx.js → server-ppcd1qxh.js} +191 -99
  279. package/dist/v2/{server-rmygf5pn.js → server-qjvk4a9t.js} +2 -2
  280. package/dist/v2/{server-zzkj2fch.js → server-qteg2kt9.js} +5 -5
  281. package/dist/v2/{server-pwv4ezb0.js → server-rqebawx1.js} +2 -2
  282. package/dist/v2/{server-h1v0pyxb.js → server-vr4szghm.js} +501 -20
  283. package/dist/v2/{server-xq7dfjke.js → server-wwaw5npa.js} +5 -5
  284. package/dist/v2/{server-6vdzn1td.js → server-zg5y109h.js} +323 -76
  285. package/dist/v2/server.js +8 -8
  286. package/dist/v2/{sqlite-zf72c52d.js → sqlite-zdgm52sv.js} +5 -1
  287. package/dist/v2/{storage-memory-y3qmy00r.js → storage-memory-e6a7mb0k.js} +2 -2
  288. package/dist/v2/{storage-tags-3wdb8zph.js → storage-tags-q71rnr9f.js} +5 -5
  289. package/dist/v2/store-reader.d.ts +10 -0
  290. package/dist/v2/store-reader.d.ts.map +1 -1
  291. package/dist/v2/{task-config-nvz8mapa.js → task-config-7md27rx8.js} +2 -2
  292. package/dist/v2/{wrapup-orchestrator-embdz8gj.js → wrapup-orchestrator-3ssd5yy1.js} +33 -32
  293. package/dist/wrapup-orchestrator-5vpcd1zx.js +49 -0
  294. package/package.json +2 -2
  295. package/src/config/index.test.ts +72 -6
  296. package/src/config/project-security.ts +15 -0
  297. package/src/config/rerank.test.ts +60 -0
  298. package/src/config/schema/magic-context.ts +57 -0
  299. package/src/shared/logger.test.ts +42 -1
  300. package/src/shared/logger.ts +11 -13
  301. package/src/shared/model-resolution.test.ts +67 -12
  302. package/src/shared/model-resolution.ts +43 -16
  303. package/src/shared/model-suggestion-retry.ts +2 -2
  304. package/src/shared/prompt-async-transport.ts +47 -3
  305. package/src/shared/rpc-types.ts +7 -0
  306. package/src/shared/sqlite-busy-budget-review.test.ts +6 -1
  307. package/src/shared/sqlite-turn-deadline.test.ts +270 -0
  308. package/src/shared/sqlite.ts +239 -9
  309. package/src/shared/subagent-runner.ts +2 -0
  310. package/src/shared/tag-transcript.ts +9 -1
  311. package/src/shared/worker-shutdown-fence.test.ts +87 -0
  312. package/src/shared/worker-shutdown.fixture.ts +25 -0
  313. package/src/shared/worker-shutdown.test.ts +127 -0
  314. package/src/shared/worker-shutdown.ts +160 -0
  315. package/dist/embedding-backfill-fmz50tsy.js +0 -24
  316. package/dist/recomp-orchestrator-999jj4bc.js +0 -61
  317. package/dist/search-archive-6vm0e2f5.js +0 -25
  318. package/dist/search-xsqk1bj4.js +0 -49
  319. package/dist/v2/embedding-backfill-7c7yr69y.js +0 -23
  320. package/dist/v2/recomp-orchestrator-f6m9jr7p.js +0 -60
  321. package/dist/v2/search-archive-wve3tq1k.js +0 -24
  322. package/dist/v2/search-hwg7jfbj.js +0 -48
  323. package/dist/wrapup-orchestrator-whhbjmaz.js +0 -48
@@ -0,0 +1,87 @@
1
+ import { expect, test } from "bun:test";
2
+ import { readdirSync, readFileSync } from "node:fs";
3
+ import { join, relative, resolve } from "node:path";
4
+ import ts from "typescript";
5
+
6
+ // A worker that installs exitOnWorkerClose must close its parent port only
7
+ // through the returned closePort, which removes the close listener first. On
8
+ // Bun 1.3.14 a worker whose port closes with that listener still attached never
9
+ // exits, and the port's own close() cannot be wrapped there (it is read-only),
10
+ // so this fence rejects a direct close in any such file.
11
+
12
+ const root = resolve(import.meta.dir, "../../../..");
13
+ const helper = "packages/plugin/src/shared/worker-shutdown.ts";
14
+
15
+ function files(dir: string): string[] {
16
+ return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
17
+ const path = join(dir, entry.name);
18
+ if (entry.isDirectory()) return files(path);
19
+ return /\.tsx?$/.test(path) && !/\.test\.|\.d\.ts$/.test(path) ? [path] : [];
20
+ });
21
+ }
22
+
23
+ function unwrap(node: ts.Expression): ts.Expression {
24
+ let current = node;
25
+ while (ts.isParenthesizedExpression(current) || ts.isNonNullExpression(current))
26
+ current = current.expression;
27
+ return current;
28
+ }
29
+
30
+ /** Direct closes of the parent port, or of a variable holding it, in a file that installs the close listener. */
31
+ function scan(path: string, text: string): { usesHelper: boolean; violations: string[] } {
32
+ const source = ts.createSourceFile(path, text, ts.ScriptTarget.Latest, true);
33
+ const ports = new Set(["parentPort"]);
34
+ let usesHelper = false;
35
+ const closes: ts.CallExpression[] = [];
36
+ const visit = (node: ts.Node) => {
37
+ if (
38
+ ts.isVariableDeclaration(node) &&
39
+ ts.isIdentifier(node.name) &&
40
+ node.initializer &&
41
+ ts.isIdentifier(unwrap(node.initializer)) &&
42
+ ports.has((unwrap(node.initializer) as ts.Identifier).text)
43
+ )
44
+ ports.add(node.name.text);
45
+ if (ts.isCallExpression(node)) {
46
+ const callee = unwrap(node.expression);
47
+ if (ts.isIdentifier(callee) && callee.text === "exitOnWorkerClose") usesHelper = true;
48
+ if (ts.isPropertyAccessExpression(callee) && callee.name.text === "close")
49
+ closes.push(node);
50
+ }
51
+ ts.forEachChild(node, visit);
52
+ };
53
+ visit(source);
54
+ if (!usesHelper || path === helper) return { usesHelper, violations: [] };
55
+ const violations = closes.flatMap((call) => {
56
+ const target = unwrap((unwrap(call.expression) as ts.PropertyAccessExpression).expression);
57
+ if (!ts.isIdentifier(target) || !ports.has(target.text)) return [];
58
+ const line = source.getLineAndCharacterOfPosition(call.getStart(source)).line + 1;
59
+ return [
60
+ `${path}:${line}: close the port through exitOnWorkerClose's closePort, not ${target.text}.close()`,
61
+ ];
62
+ });
63
+ return { usesHelper, violations };
64
+ }
65
+
66
+ test("workers with the close listener close their port only through closePort", () => {
67
+ const scans = ["packages/plugin/src", "packages/pi-plugin/src", "packages/cli/src"]
68
+ .flatMap((directory) => files(join(root, directory)))
69
+ .map((path) => scan(relative(root, path), readFileSync(path, "utf8")));
70
+ // Pi tag snapshots, raw-ordinal warm-up, auto-search, the chunk writer and the test fixture.
71
+ expect(scans.filter((result) => result.usesHelper).length).toBeGreaterThanOrEqual(5);
72
+ expect(scans.flatMap((result) => result.violations)).toEqual([]);
73
+ });
74
+
75
+ test("the fence rejects direct port closes and accepts closePort", () => {
76
+ const header = 'import { parentPort } from "node:worker_threads";\n';
77
+ const install = "const { closePort } = exitOnWorkerClose(parentPort, () => db.close());\n";
78
+ expect(scan("worker.ts", `${header}${install}parentPort?.close();`).violations).toHaveLength(1);
79
+ expect(
80
+ scan("worker.ts", `${header}const port = parentPort!;\n${install}port.close();`).violations,
81
+ ).toHaveLength(1);
82
+ expect(
83
+ scan("worker.ts", `${header}${install}db.close();\nclosePort();`).violations,
84
+ ).toHaveLength(0);
85
+ // A worker without the close listener may close its port directly.
86
+ expect(scan("worker.ts", `${header}parentPort?.close();`).violations).toHaveLength(0);
87
+ });
@@ -0,0 +1,25 @@
1
+ // Worker for worker-shutdown.test.ts. "cooperative" closes its connection
2
+ // when asked; "deaf" never reads parent messages, so only terminate() stops it.
3
+ // "finish" installs the close listener, finishes its work and closes its own
4
+ // port through the helper's `closePort()`; the thread must then exit by itself.
5
+ import { parentPort, workerData } from "node:worker_threads";
6
+ import { Database } from "./sqlite";
7
+ import { exitOnWorkerClose } from "./worker-shutdown";
8
+
9
+ const { path, mode } = workerData as {
10
+ path: string;
11
+ mode: "cooperative" | "deaf" | "finish";
12
+ };
13
+ const db = new Database(path);
14
+ db.prepare("SELECT 1").get();
15
+ if (mode === "finish") {
16
+ const { closePort } = exitOnWorkerClose(parentPort, () => db.close());
17
+ db.close();
18
+ parentPort?.postMessage("ready");
19
+ closePort();
20
+ } else {
21
+ if (mode === "cooperative") exitOnWorkerClose(parentPort, () => db.close());
22
+ // Keep the thread alive until it is asked to close or is terminated.
23
+ setInterval(() => {}, 1_000);
24
+ parentPort?.postMessage("ready");
25
+ }
@@ -0,0 +1,127 @@
1
+ import { Database } from "bun:sqlite";
2
+ import { afterEach, expect, test } from "bun:test";
3
+ import { EventEmitter } from "node:events";
4
+ import { join } from "node:path";
5
+ import { Worker } from "node:worker_threads";
6
+ import { createTestTempDir } from "./test-temp-dir";
7
+ import {
8
+ createWorkerShutdown,
9
+ exitOnWorkerClose,
10
+ getWorkerShutdownStats,
11
+ type WorkerClosePort,
12
+ } from "./worker-shutdown";
13
+
14
+ const cleanups: (() => void)[] = [];
15
+ afterEach(() => {
16
+ for (const cleanup of cleanups.splice(0)) cleanup();
17
+ });
18
+
19
+ async function start(mode: "cooperative" | "deaf" | "finish") {
20
+ const { dir, cleanup } = createTestTempDir("mc-worker-shutdown-");
21
+ cleanups.push(cleanup);
22
+ const path = join(dir, "store.db");
23
+ const owner = new Database(path);
24
+ owner.exec("PRAGMA journal_mode=WAL");
25
+ cleanups.unshift(() => owner.close());
26
+ const worker = new Worker(new URL("./worker-shutdown.fixture.ts", import.meta.url), {
27
+ workerData: { path, mode },
28
+ });
29
+ const exitCode = new Promise<number>((resolve) => worker.once("exit", resolve));
30
+ await new Promise<void>((resolve) => worker.once("message", () => resolve()));
31
+ return { owner, worker, exitCode };
32
+ }
33
+
34
+ function counts(site: string) {
35
+ return { ...(getWorkerShutdownStats().get(site) ?? { graceful: 0, forced: 0 }) };
36
+ }
37
+
38
+ test("a worker asked to close shuts its connection and exits by itself", async () => {
39
+ const site = "test-cooperative";
40
+ const { owner, worker, exitCode } = await start("cooperative");
41
+ const before = counts(site);
42
+ const shutdown = createWorkerShutdown(worker, site, 10_000);
43
+ const started = performance.now();
44
+ await shutdown.close();
45
+ // Well inside the deadline: the worker exited on its own, it was not terminated.
46
+ expect(performance.now() - started).toBeLessThan(5_000);
47
+ expect(await exitCode).toBe(0);
48
+ expect(counts(site)).toEqual({ graceful: before.graceful + 1, forced: before.forced });
49
+ owner.exec("PRAGMA busy_timeout=0");
50
+ owner.exec("BEGIN IMMEDIATE");
51
+ owner.exec("ROLLBACK");
52
+ });
53
+
54
+ test("a worker that does not exit is terminated at the deadline", async () => {
55
+ const site = "test-deaf";
56
+ const { worker, exitCode } = await start("deaf");
57
+ const before = counts(site);
58
+ const shutdown = createWorkerShutdown(worker, site, 100);
59
+ const started = performance.now();
60
+ await shutdown.close();
61
+ expect(performance.now() - started).toBeGreaterThanOrEqual(90);
62
+ await exitCode;
63
+ expect(counts(site)).toEqual({ graceful: before.graceful, forced: before.forced + 1 });
64
+ });
65
+
66
+ test("closing twice shares one shutdown, and closing an exited worker is a no-op", async () => {
67
+ const site = "test-repeat";
68
+ const { worker, exitCode } = await start("cooperative");
69
+ const before = counts(site);
70
+ const shutdown = createWorkerShutdown(worker, site, 10_000);
71
+ const first = shutdown.close();
72
+ expect(shutdown.close()).toBe(first);
73
+ await first;
74
+ await exitCode;
75
+ expect(counts(site)).toEqual({ graceful: before.graceful + 1, forced: before.forced });
76
+
77
+ const exited = await start("deaf");
78
+ const late = createWorkerShutdown(exited.worker, site, 10_000);
79
+ await exited.worker.terminate();
80
+ await exited.exitCode;
81
+ await late.close();
82
+ expect(counts(site)).toEqual({ graceful: before.graceful + 1, forced: before.forced });
83
+ });
84
+
85
+ /** A port that records how many message listeners were attached when it closed. */
86
+ function recordingPort() {
87
+ const events = new EventEmitter();
88
+ const closedWith: number[] = [];
89
+ const port = {
90
+ on: (event: string, listener: (...args: unknown[]) => void) => {
91
+ events.on(event, listener);
92
+ return port;
93
+ },
94
+ off: (event: string, listener: (...args: unknown[]) => void) => {
95
+ events.off(event, listener);
96
+ return port;
97
+ },
98
+ close: () => {
99
+ closedWith.push(events.listenerCount("message"));
100
+ },
101
+ };
102
+ return { port: port as unknown as WorkerClosePort, events, closedWith };
103
+ }
104
+
105
+ test("closePort removes the close listener before the port closes", async () => {
106
+ const { port, events, closedWith } = recordingPort();
107
+ const { closePort } = exitOnWorkerClose(port, () => {});
108
+ expect(events.listenerCount("message")).toBe(1);
109
+ closePort();
110
+ // Closing again does not close the port twice.
111
+ closePort();
112
+ await new Promise((resolve) => setTimeout(resolve, 10));
113
+ // Bun 1.3.14 never ends a worker whose port closes with a listener attached.
114
+ expect(closedWith).toEqual([0]);
115
+ });
116
+
117
+ test("a worker that closes its own port through closePort exits by itself", async () => {
118
+ const { worker, exitCode } = await start("finish");
119
+ const outcome = await Promise.race([
120
+ exitCode,
121
+ new Promise<string>((resolve) => setTimeout(() => resolve("no exit"), 5_000)),
122
+ ]);
123
+ // Terminate only a worker that is still running: on Bun 1.3.14,
124
+ // terminate() on a worker that has already exited never settles.
125
+ if (outcome === "no exit") await worker.terminate();
126
+ expect(outcome).toBe(0);
127
+ });
@@ -0,0 +1,160 @@
1
+ import type { MessagePort, Worker } from "node:worker_threads";
2
+
3
+ /**
4
+ * Stopping a worker thread that still has a SQLite connection open.
5
+ *
6
+ * On Bun 1.4.4, `worker.terminate()` closes the worker's open `bun:sqlite`
7
+ * connections while it tears the thread down, and for that whole teardown
8
+ * (measured from a few ms up to about 460 ms) every other connection to the same
9
+ * file gets SQLITE_BUSY when it asks for the writer lock. Reads keep working. A
10
+ * caller that terminates a worker and then writes at once, such as
11
+ * `clearSession()` cancelling a session's auto-search backfill, then fails its
12
+ * own write. Bun 1.4.3 and earlier did not do this, and a worker that closes
13
+ * its connection itself never causes it on any version.
14
+ *
15
+ * So an owner asks the worker to stop: it posts {@link WORKER_CLOSE_MESSAGE},
16
+ * the worker closes its connections and exits (see {@link exitOnWorkerClose}),
17
+ * and `terminate()` runs only if the worker has not exited by a deadline. The
18
+ * deadline is chosen per worker from the longest synchronous SQLite work it may
19
+ * be in the middle of, because a worker handles the message only between
20
+ * statements. Bun 1.3 queues parent messages until a worker's entry module has
21
+ * finished evaluating, so a close posted while the worker is still loading is
22
+ * handled as soon as it has loaded.
23
+ */
24
+ export const WORKER_CLOSE_MESSAGE = { kind: "close" } as const;
25
+
26
+ export function isWorkerCloseMessage(message: unknown): boolean {
27
+ return (
28
+ typeof message === "object" &&
29
+ message !== null &&
30
+ (message as { kind?: unknown }).kind === WORKER_CLOSE_MESSAGE.kind
31
+ );
32
+ }
33
+
34
+ /**
35
+ * Worker side: when the owner asks this worker to stop, close its connections
36
+ * and end the thread. `process.exit()` in a worker thread ends only that
37
+ * thread, on Node and on Bun. Other `message` listeners in the worker see the
38
+ * same message and must ignore its kind.
39
+ *
40
+ * On Bun 1.3.14 a worker whose parent port still has a `message` listener does
41
+ * not exit after `port.close()`, so this listener must never outlive the port.
42
+ * A worker that installs it closes its port only through the returned
43
+ * `closePort`, which removes the listener first (on the next timer turn). The port's own `close()`
44
+ * cannot be wrapped instead: on Bun 1.3.14 it is a read-only, non-configurable
45
+ * property. `worker-shutdown-fence.test.ts` rejects any direct port close in a
46
+ * file that calls this function.
47
+ */
48
+ export function exitOnWorkerClose(
49
+ port: WorkerClosePort | null,
50
+ closeConnections: () => void,
51
+ ): { closePort(): void } {
52
+ const listener = (message: unknown) => {
53
+ if (!isWorkerCloseMessage(message)) return;
54
+ try {
55
+ closeConnections();
56
+ } finally {
57
+ // Exit even if a close threw: the thread is ending and a connection
58
+ // that could not close is released by the thread's teardown instead.
59
+ process.exit(0);
60
+ }
61
+ };
62
+ if (!port) return { closePort() {} };
63
+ port.on("message", listener);
64
+ let closed = false;
65
+ return {
66
+ closePort() {
67
+ if (closed) return;
68
+ closed = true;
69
+ // Close on a later timer turn, not synchronously: on Bun 1.3.14 a
70
+ // port closed while an entry module with a top-level await is still
71
+ // evaluating does not end the thread. Every current caller closes
72
+ // its port at the end of the module body or later, so the timer runs
73
+ // after evaluation has finished.
74
+ setTimeout(() => {
75
+ port.off("message", listener);
76
+ port.close();
77
+ });
78
+ },
79
+ };
80
+ }
81
+
82
+ /** The parts of a worker's parent port that {@link exitOnWorkerClose} uses. */
83
+ export type WorkerClosePort = Pick<MessagePort, "on" | "off" | "close">;
84
+
85
+ export interface WorkerShutdown {
86
+ /**
87
+ * Ask the worker to close its connections and exit; terminate it if it has
88
+ * not exited after the deadline. Calling it again returns the same promise.
89
+ * Resolves once the worker has exited.
90
+ */
91
+ close(): Promise<void>;
92
+ }
93
+
94
+ const outcomes = new Map<string, { graceful: number; forced: number }>();
95
+
96
+ /** How each site's workers ended after a close, by themselves or terminated. A snapshot. */
97
+ export function getWorkerShutdownStats(): ReadonlyMap<
98
+ string,
99
+ { readonly graceful: number; readonly forced: number }
100
+ > {
101
+ return new Map([...outcomes].map(([site, counts]) => [site, { ...counts }]));
102
+ }
103
+
104
+ /**
105
+ * Owner side. Call right after creating the worker, so its exit is observed
106
+ * even when it exits before anyone asks it to close.
107
+ *
108
+ * @param site names the worker in {@link getWorkerShutdownStats}.
109
+ * @param deadlineMs how long the worker may take to close and exit before it
110
+ * is terminated.
111
+ */
112
+ export function createWorkerShutdown(
113
+ worker: Worker,
114
+ site: string,
115
+ deadlineMs: number,
116
+ ): WorkerShutdown {
117
+ let exited = false;
118
+ let forced = false;
119
+ let closing: Promise<void> | undefined;
120
+ const exit = new Promise<void>((resolve) => {
121
+ worker.once("exit", () => {
122
+ exited = true;
123
+ resolve();
124
+ });
125
+ });
126
+ const record = () => {
127
+ const counts = outcomes.get(site) ?? { graceful: 0, forced: 0 };
128
+ if (forced) counts.forced += 1;
129
+ else counts.graceful += 1;
130
+ outcomes.set(site, counts);
131
+ };
132
+ const terminate = () => {
133
+ forced = true;
134
+ void worker.terminate().catch(() => {});
135
+ };
136
+ return {
137
+ close() {
138
+ if (closing) return closing;
139
+ if (exited) {
140
+ closing = Promise.resolve();
141
+ return closing;
142
+ }
143
+ try {
144
+ worker.postMessage(WORKER_CLOSE_MESSAGE);
145
+ } catch {
146
+ terminate();
147
+ }
148
+ const fallback = setTimeout(() => {
149
+ if (!exited) terminate();
150
+ }, deadlineMs);
151
+ // A host that is exiting must not wait for this timer.
152
+ fallback.unref?.();
153
+ closing = exit.then(() => {
154
+ clearTimeout(fallback);
155
+ record();
156
+ });
157
+ return closing;
158
+ },
159
+ };
160
+ }
@@ -1,24 +0,0 @@
1
- import {
2
- ensureMemoryEmbeddings2
3
- } from "./index-24fezq97.js";
4
- import"./index-ze7mvk54.js";
5
- import"./index-4dhv7mqz.js";
6
- import"./index-qt1qqasc.js";
7
- import"./index-bjcnntmz.js";
8
- import"./index-wgypt3cs.js";
9
- import"./index-rr2bb45z.js";
10
- import"./index-b5vqckbw.js";
11
- import"./index-6x57ar45.js";
12
- import"./index-2vxtcb95.js";
13
- import"./index-a6mc0v4d.js";
14
- import"./index-s734jcsr.js";
15
- import"./index-v0p37hm2.js";
16
- import"./index-k29z4aqh.js";
17
- import"./index-c5pytzne.js";
18
- import"./index-beht37jy.js";
19
- import"./index-j75v2476.js";
20
- import"./index-g2q4htwp.js";
21
- import"./index-pavzsdc6.js";
22
- export {
23
- ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
24
- };
@@ -1,61 +0,0 @@
1
- import {
2
- isRecompFailure2,
3
- isRecompSkip2,
4
- extractRecompReason2,
5
- setRecompStarting2,
6
- setRecompNote2,
7
- setRecompTerminal2,
8
- buildRecompDeps2,
9
- runManagedRecomp2
10
- } from "./index-c1p88z1y.js";
11
- import"./index-rpxdjkm0.js";
12
- import"./index-4s3t0nd0.js";
13
- import"./index-3h4dp9wb.js";
14
- import"./index-se4m2g6w.js";
15
- import"./index-sd3egckz.js";
16
- import"./index-24fezq97.js";
17
- import"./index-ze7mvk54.js";
18
- import"./index-n37sebck.js";
19
- import"./index-4dhv7mqz.js";
20
- import"./index-v10f1rjv.js";
21
- import"./index-s74zqahq.js";
22
- import"./index-qt1qqasc.js";
23
- import"./index-9zcsy3hh.js";
24
- import"./index-cf74k5ak.js";
25
- import"./index-1zx87sdm.js";
26
- import"./index-kq82mtg0.js";
27
- import"./index-x8a7jmkh.js";
28
- import"./index-y9f76s3f.js";
29
- import"./index-bjcnntmz.js";
30
- import"./index-wgypt3cs.js";
31
- import"./index-rr2bb45z.js";
32
- import"./index-b5vqckbw.js";
33
- import"./index-6x57ar45.js";
34
- import"./index-jrr131e0.js";
35
- import"./index-fb3zxn06.js";
36
- import"./index-63k48rv9.js";
37
- import"./index-2vxtcb95.js";
38
- import"./index-a6mc0v4d.js";
39
- import"./index-fr0wbhdn.js";
40
- import"./index-nj7yykkx.js";
41
- import"./index-ke416mdc.js";
42
- import"./index-bp5083x2.js";
43
- import"./index-58e3y90n.js";
44
- import"./index-s734jcsr.js";
45
- import"./index-v0p37hm2.js";
46
- import"./index-k29z4aqh.js";
47
- import"./index-c5pytzne.js";
48
- import"./index-beht37jy.js";
49
- import"./index-j75v2476.js";
50
- import"./index-g2q4htwp.js";
51
- import"./index-pavzsdc6.js";
52
- export {
53
- buildRecompDeps2 as buildRecompDeps,
54
- extractRecompReason2 as extractRecompReason,
55
- isRecompFailure2 as isRecompFailure,
56
- isRecompSkip2 as isRecompSkip,
57
- runManagedRecomp2 as runManagedRecomp,
58
- setRecompNote2 as setRecompNote,
59
- setRecompStarting2 as setRecompStarting,
60
- setRecompTerminal2 as setRecompTerminal
61
- };
@@ -1,25 +0,0 @@
1
- import {
2
- renderSearchArchive2,
3
- renderSearchArchiveOffThread2
4
- } from "./index-edmpdxcw.js";
5
- import"./index-kaqs6h31.js";
6
- import"./index-9zcsy3hh.js";
7
- import"./index-cf74k5ak.js";
8
- import"./index-1zx87sdm.js";
9
- import"./index-kq82mtg0.js";
10
- import"./index-wgypt3cs.js";
11
- import"./index-ke416mdc.js";
12
- import"./index-bp5083x2.js";
13
- import"./index-58e3y90n.js";
14
- import"./index-s734jcsr.js";
15
- import"./index-v0p37hm2.js";
16
- import"./index-k29z4aqh.js";
17
- import"./index-c5pytzne.js";
18
- import"./index-beht37jy.js";
19
- import"./index-j75v2476.js";
20
- import"./index-g2q4htwp.js";
21
- import"./index-pavzsdc6.js";
22
- export {
23
- renderSearchArchive2 as renderSearchArchive,
24
- renderSearchArchiveOffThread2 as renderSearchArchiveOffThread
25
- };
@@ -1,49 +0,0 @@
1
- import {
2
- createUnifiedSearchDiagnostics2,
3
- searchMessageHistory2,
4
- parseIdShapedQuery2,
5
- resolveMemoriesByIdsForSearch2,
6
- unifiedSearch2,
7
- formatSearchResults2
8
- } from "./index-dxmq29t1.js";
9
- import"./index-kaqs6h31.js";
10
- import"./index-3h4dp9wb.js";
11
- import"./index-se4m2g6w.js";
12
- import"./index-24fezq97.js";
13
- import"./index-ze7mvk54.js";
14
- import"./index-n37sebck.js";
15
- import"./index-4dhv7mqz.js";
16
- import"./index-qt1qqasc.js";
17
- import"./index-9zcsy3hh.js";
18
- import"./index-cf74k5ak.js";
19
- import"./index-1zx87sdm.js";
20
- import"./index-kq82mtg0.js";
21
- import"./index-bjcnntmz.js";
22
- import"./index-wgypt3cs.js";
23
- import"./index-rr2bb45z.js";
24
- import"./index-b5vqckbw.js";
25
- import"./index-6x57ar45.js";
26
- import"./index-63k48rv9.js";
27
- import"./index-2vxtcb95.js";
28
- import"./index-a6mc0v4d.js";
29
- import"./index-fr0wbhdn.js";
30
- import"./index-nj7yykkx.js";
31
- import"./index-ke416mdc.js";
32
- import"./index-bp5083x2.js";
33
- import"./index-58e3y90n.js";
34
- import"./index-s734jcsr.js";
35
- import"./index-v0p37hm2.js";
36
- import"./index-k29z4aqh.js";
37
- import"./index-c5pytzne.js";
38
- import"./index-beht37jy.js";
39
- import"./index-j75v2476.js";
40
- import"./index-g2q4htwp.js";
41
- import"./index-pavzsdc6.js";
42
- export {
43
- createUnifiedSearchDiagnostics2 as createUnifiedSearchDiagnostics,
44
- formatSearchResults2 as formatSearchResults,
45
- parseIdShapedQuery2 as parseIdShapedQuery,
46
- resolveMemoriesByIdsForSearch2 as resolveMemoriesByIdsForSearch,
47
- searchMessageHistory2 as searchMessageHistory,
48
- unifiedSearch2 as unifiedSearch
49
- };
@@ -1,23 +0,0 @@
1
- import {
2
- ensureMemoryEmbeddings2
3
- } from "./server-zzkj2fch.js";
4
- import"./server-8by8qfec.js";
5
- import"./server-4dhv7mqz.js";
6
- import"./server-qt1qqasc.js";
7
- import"./server-h1v0pyxb.js";
8
- import"./server-271qxsf5.js";
9
- import"./server-hy3d3vsx.js";
10
- import"./server-46neh5fa.js";
11
- import"./server-6tmj0s7j.js";
12
- import"./server-rmygf5pn.js";
13
- import"./server-1wy7b9de.js";
14
- import"./server-xj136kt8.js";
15
- import"./server-51779zs2.js";
16
- import"./server-6pmqg9m4.js";
17
- import"./server-tgnbmwah.js";
18
- import"./server-beht37jy.js";
19
- import"./server-f2xf5gcb.js";
20
- import"./server-pavzsdc6.js";
21
- export {
22
- ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
23
- };
@@ -1,60 +0,0 @@
1
- import {
2
- isRecompFailure2,
3
- isRecompSkip2,
4
- extractRecompReason2,
5
- setRecompStarting2,
6
- setRecompNote2,
7
- setRecompTerminal2,
8
- buildRecompDeps2,
9
- runManagedRecomp2
10
- } from "./server-6vdzn1td.js";
11
- import"./server-d04vrx0j.js";
12
- import"./server-hm38q7r0.js";
13
- import"./server-2ar62dyx.js";
14
- import"./server-zzkj2fch.js";
15
- import"./server-n37sebck.js";
16
- import"./server-8by8qfec.js";
17
- import"./server-4dhv7mqz.js";
18
- import"./server-34kwfsr4.js";
19
- import"./server-a9xqj88f.js";
20
- import"./server-qt1qqasc.js";
21
- import"./server-9hx7g5jp.js";
22
- import"./server-27gq4mfz.js";
23
- import"./server-1zx87sdm.js";
24
- import"./server-n1prf1g6.js";
25
- import"./server-h0410h0v.js";
26
- import"./server-nj659894.js";
27
- import"./server-tbe1femw.js";
28
- import"./server-x8a7jmkh.js";
29
- import"./server-h1v0pyxb.js";
30
- import"./server-271qxsf5.js";
31
- import"./server-hy3d3vsx.js";
32
- import"./server-46neh5fa.js";
33
- import"./server-6tmj0s7j.js";
34
- import"./server-bmymkx73.js";
35
- import"./server-fb3zxn06.js";
36
- import"./server-xq7dfjke.js";
37
- import"./server-fr0wbhdn.js";
38
- import"./server-rmygf5pn.js";
39
- import"./server-1wy7b9de.js";
40
- import"./server-da07v4xp.js";
41
- import"./server-g3qma5c0.js";
42
- import"./server-pwv4ezb0.js";
43
- import"./server-2ra6pwf3.js";
44
- import"./server-xj136kt8.js";
45
- import"./server-51779zs2.js";
46
- import"./server-6pmqg9m4.js";
47
- import"./server-tgnbmwah.js";
48
- import"./server-beht37jy.js";
49
- import"./server-f2xf5gcb.js";
50
- import"./server-pavzsdc6.js";
51
- export {
52
- buildRecompDeps2 as buildRecompDeps,
53
- extractRecompReason2 as extractRecompReason,
54
- isRecompFailure2 as isRecompFailure,
55
- isRecompSkip2 as isRecompSkip,
56
- runManagedRecomp2 as runManagedRecomp,
57
- setRecompNote2 as setRecompNote,
58
- setRecompStarting2 as setRecompStarting,
59
- setRecompTerminal2 as setRecompTerminal
60
- };
@@ -1,24 +0,0 @@
1
- import {
2
- renderSearchArchive2,
3
- renderSearchArchiveOffThread2
4
- } from "./server-45q69hkq.js";
5
- import"./server-kaqs6h31.js";
6
- import"./server-9hx7g5jp.js";
7
- import"./server-27gq4mfz.js";
8
- import"./server-1zx87sdm.js";
9
- import"./server-n1prf1g6.js";
10
- import"./server-271qxsf5.js";
11
- import"./server-g3qma5c0.js";
12
- import"./server-pwv4ezb0.js";
13
- import"./server-2ra6pwf3.js";
14
- import"./server-xj136kt8.js";
15
- import"./server-51779zs2.js";
16
- import"./server-6pmqg9m4.js";
17
- import"./server-tgnbmwah.js";
18
- import"./server-beht37jy.js";
19
- import"./server-f2xf5gcb.js";
20
- import"./server-pavzsdc6.js";
21
- export {
22
- renderSearchArchive2 as renderSearchArchive,
23
- renderSearchArchiveOffThread2 as renderSearchArchiveOffThread
24
- };