@cortexkit/opencode-magic-context 0.49.7 → 0.49.8

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 (200) hide show
  1. package/dist/auto-search-worker.js +6 -6
  2. package/dist/compaction-marker-candidates-worker.js +2 -2
  3. package/dist/{compaction-marker-candidates-a0edbqrr.js → compaction-marker-candidates-xxz35vwp.js} +3 -3
  4. package/dist/{conflict-warning-hook-myk5hbt9.js → conflict-warning-hook-w3crzrar.js} +8 -8
  5. package/dist/{context-ffr7e0g7.js → context-x0ccfv0f.js} +65 -42
  6. package/dist/{derive-budgets-j4ry8j8n.js → derive-budgets-3nbxsyss.js} +2 -2
  7. package/dist/embedding-backfill-3h2m5n0q.js +21 -0
  8. package/dist/embedding-worker-process.js +6 -2
  9. package/dist/embedding-worker.js +6 -5
  10. package/dist/features/magic-context/compaction-marker-candidates.d.ts.map +1 -1
  11. package/dist/features/magic-context/dreamer/cron.d.ts +2 -0
  12. package/dist/features/magic-context/dreamer/cron.d.ts.map +1 -1
  13. package/dist/features/magic-context/dreamer/provider-output-failure.d.ts +1 -0
  14. package/dist/features/magic-context/dreamer/provider-output-failure.d.ts.map +1 -1
  15. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  16. package/dist/features/magic-context/memory/embedding-worker-client.d.ts.map +1 -1
  17. package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
  18. package/dist/features/magic-context/migration-worker-client.d.ts.map +1 -1
  19. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  20. package/dist/features/magic-context/smart-notes/wake-plane.d.ts.map +1 -1
  21. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
  22. package/dist/history-owner-ty29fz0f.js +244 -0
  23. package/dist/hooks/auto-update-checker/checker.d.ts.map +1 -1
  24. package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/edit-marker.d.ts +2 -0
  28. package/dist/hooks/magic-context/edit-marker.d.ts.map +1 -1
  29. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/module-transport.d.ts +1 -0
  31. package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
  32. package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/read-session-chunk.d.ts +8 -4
  34. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  35. package/dist/hooks/magic-context/rust-mode-transform.d.ts +1 -0
  36. package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
  37. package/dist/hooks/magic-context/rust-refusal-recovery.d.ts.map +1 -1
  38. package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
  39. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  40. package/dist/hooks/magic-context/unresolved-history-boundary.d.ts +5 -1
  41. package/dist/hooks/magic-context/unresolved-history-boundary.d.ts.map +1 -1
  42. package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
  43. package/dist/{index-g8qbdb03.js → index-0jz47061.js} +6 -3
  44. package/dist/{index-4mjhqadz.js → index-150zz6fh.js} +1 -1
  45. package/dist/{index-j58gqrn2.js → index-2rw244rh.js} +31 -24
  46. package/dist/{index-0gyq3djm.js → index-4hb8nt93.js} +3 -3
  47. package/dist/{index-ax2jhztn.js → index-7bjgyaj1.js} +4 -4
  48. package/dist/{index-h2wc01qk.js → index-8kk7yh6m.js} +2 -2
  49. package/dist/{index-n5a170gs.js → index-9g1c4bt9.js} +81 -58
  50. package/dist/{index-w6bd03dc.js → index-a43xq1pg.js} +5 -5
  51. package/dist/{index-tqf7yg27.js → index-a4b0gbyg.js} +1 -1
  52. package/dist/{index-37q80veb.js → index-angx1s0k.js} +4 -3
  53. package/dist/{index-wq16ahsn.js → index-b4gcb3rk.js} +8 -8
  54. package/dist/{index-z1tjp257.js → index-b64n4d0h.js} +1 -1
  55. package/dist/{index-1bt88epp.js → index-bd9cjab3.js} +1 -1
  56. package/dist/{index-gbmqa9x9.js → index-bmwfzz28.js} +9 -6
  57. package/dist/{index-qx53vezw.js → index-gjvjh960.js} +1 -1
  58. package/dist/{index-ebnngykq.js → index-gzg9ekc1.js} +19 -18
  59. package/dist/{index-5tbvdff4.js → index-hxrvx6cy.js} +79 -40
  60. package/dist/{index-w23dh319.js → index-jw4gbfkv.js} +1 -1
  61. package/dist/index-knvkbfvh.js +25 -0
  62. package/dist/{index-vkbqdnkj.js → index-kvw6xew3.js} +6 -3
  63. package/dist/{index-rzmjkdd6.js → index-mp2kghkv.js} +3 -27
  64. package/dist/{index-nsjyysj0.js → index-mvvephtj.js} +5 -1
  65. package/dist/{index-9yyqq3mm.js → index-n78avt2p.js} +1 -1
  66. package/dist/{index-vt4sf4ep.js → index-pgy3h49n.js} +4 -4
  67. package/dist/{index-w6vr754t.js → index-pjgzdezw.js} +13 -9
  68. package/dist/{v2/server-1rfgbjfn.js → index-q28hsbpg.js} +15 -3
  69. package/dist/{index-a8acx4gc.js → index-q76br5zn.js} +3 -3
  70. package/dist/{index-j5hce1ab.js → index-qgp5vnt4.js} +5 -5
  71. package/dist/{index-sf94at64.js → index-rg1cezmj.js} +22 -22
  72. package/dist/{index-sh91t19a.js → index-s178h9z8.js} +4 -3
  73. package/dist/{index-tagss15p.js → index-w1ejb9qr.js} +105 -58
  74. package/dist/{index-k6xvbj2e.js → index-w28y7d0z.js} +2 -0
  75. package/dist/{index-j8epsc0g.js → index-wafzvyhg.js} +33 -10
  76. package/dist/{index-rwmpkss5.js → index-xf6k8szp.js} +4 -4
  77. package/dist/{index-tmtty2x5.js → index-xpn05jxq.js} +4 -4
  78. package/dist/{index-n7kwfw2r.js → index-ydjgz36f.js} +7 -7
  79. package/dist/{index-4btknbqh.js → index-zf9nydbd.js} +48 -38
  80. package/dist/index.js +51 -50
  81. package/dist/{logger-ewak5q1s.js → logger-wn328tfg.js} +1 -1
  82. package/dist/{message-index-bounded-04rycpx4.js → message-index-bounded-hxjp56qk.js} +16 -16
  83. package/dist/{message-index-rqtse28y.js → message-index-zs882h8e.js} +16 -16
  84. package/dist/{message-time-backfill-a5ytnp53.js → message-time-backfill-nb5hhnrt.js} +3 -3
  85. package/dist/migration-worker.js +11 -11
  86. package/dist/plugin/boot-quiet.d.ts.map +1 -1
  87. package/dist/plugin/dream-timer.d.ts.map +1 -1
  88. package/dist/plugin/rpc-handlers.d.ts +2 -0
  89. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  90. package/dist/{project-embedding-registry-k0sd9k7v.js → project-embedding-registry-vy7sv9jt.js} +11 -11
  91. package/dist/raw-ordinal-warmup-worker.js +6 -6
  92. package/dist/{read-session-chunk-h1btx938.js → read-session-chunk-t9r7r0sg.js} +11 -11
  93. package/dist/{read-session-raw-vdf4wh78.js → read-session-raw-gm6xj30v.js} +3 -3
  94. package/dist/recomp-orchestrator-gr36zvd2.js +60 -0
  95. package/dist/{safe-notification-target-q0cyrx3x.js → safe-notification-target-jdynm677.js} +2 -2
  96. package/dist/{search-3rbdx6hw.js → search-qjen1pmz.js} +24 -24
  97. package/dist/{send-session-notification-2tp44tfa.js → send-session-notification-q8ngbap3.js} +6 -6
  98. package/dist/shared/history-owner.d.ts +12 -0
  99. package/dist/shared/history-owner.d.ts.map +1 -0
  100. package/dist/shared/off-thread-migration-clock.d.ts +8 -1
  101. package/dist/shared/off-thread-migration-clock.d.ts.map +1 -1
  102. package/dist/shared/redaction.d.ts.map +1 -1
  103. package/dist/shared/rpc-server.d.ts.map +1 -1
  104. package/dist/shared/sqlite.d.ts +2 -0
  105. package/dist/shared/sqlite.d.ts.map +1 -1
  106. package/dist/shared/user-facing-codes.d.ts +2 -2
  107. package/dist/{sqlite-j3tvg8r0.js → sqlite-4pqyynrs.js} +3 -1
  108. package/dist/{storage-memory-8168bgef.js → storage-memory-j3v3hc83.js} +2 -2
  109. package/dist/{storage-tags-61z5j2f9.js → storage-tags-a513rkj3.js} +5 -5
  110. package/dist/{transform-postprocess-phase-7qts7h54.js → transform-postprocess-phase-yv463b7y.js} +30 -30
  111. package/dist/v2/auto-search-worker.js +6 -6
  112. package/dist/v2/{compaction-marker-candidates-6nypjkpf.js → compaction-marker-candidates-a15w3mqh.js} +3 -3
  113. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  114. package/dist/v2/{context-xq4rtywr.js → context-wd82v9z6.js} +137 -68
  115. package/dist/v2/{derive-budgets-enckmg7y.js → derive-budgets-0rmpmxjw.js} +3 -3
  116. package/dist/v2/embedding-backfill-vr7wdtrf.js +20 -0
  117. package/dist/v2/embedding-worker-process.js +6 -2
  118. package/dist/v2/embedding-worker.js +6 -5
  119. package/dist/v2/hidden-completion.d.ts.map +1 -1
  120. package/dist/v2/history-owner-2cr9py37.js +243 -0
  121. package/dist/v2/hooks/context.d.ts.map +1 -1
  122. package/dist/v2/hooks/store.d.ts +1 -0
  123. package/dist/v2/hooks/store.d.ts.map +1 -1
  124. package/dist/v2/{logger-pj02s7sr.js → logger-te6e1j72.js} +1 -1
  125. package/dist/v2/{message-index-bounded-5vh1h2g7.js → message-index-bounded-madg2kfr.js} +16 -16
  126. package/dist/v2/{message-index-8e5z2xx8.js → message-index-yd94vt9n.js} +16 -16
  127. package/dist/v2/{message-time-backfill-2z365239.js → message-time-backfill-rz1pnpaj.js} +3 -3
  128. package/dist/v2/migration-worker.js +11 -11
  129. package/dist/v2/{project-embedding-registry-b77awytr.js → project-embedding-registry-ja23aygk.js} +11 -11
  130. package/dist/v2/raw-ordinal-warmup-worker.js +6 -6
  131. package/dist/v2/{read-session-chunk-4sat83cx.js → read-session-chunk-7qs791f3.js} +11 -11
  132. package/dist/v2/{read-session-raw-a3hw9jsp.js → read-session-raw-h4azh85b.js} +3 -3
  133. package/dist/v2/recomp-orchestrator-ee91r9s6.js +59 -0
  134. package/dist/v2/{safe-notification-target-y3p1hce9.js → safe-notification-target-936374xx.js} +2 -2
  135. package/dist/v2/search-pn15rr52.js +46 -0
  136. package/dist/v2/{send-session-notification-ppgc8qdz.js → send-session-notification-6n7chhyp.js} +6 -6
  137. package/dist/v2/{server-v4fwha43.js → server-08k4zkfk.js} +48 -38
  138. package/dist/v2/{server-ras2sxnc.js → server-44ryn9rb.js} +9 -6
  139. package/dist/v2/{server-fw31krgq.js → server-4easnf78.js} +19 -19
  140. package/dist/v2/{server-hcvcxzx7.js → server-4gz0xkrc.js} +5 -5
  141. package/dist/v2/{server-d6g4whc2.js → server-4qr18rfg.js} +3 -3
  142. package/dist/v2/{server-sy4b1sra.js → server-4rs8sm06.js} +5 -5
  143. package/dist/v2/{server-brhj8qtd.js → server-63ha7f0f.js} +3 -27
  144. package/dist/v2/{server-3t0q2cqx.js → server-7dv9wt9r.js} +1 -1
  145. package/dist/v2/{server-cw6521wn.js → server-7e087rvk.js} +2 -0
  146. package/dist/v2/{server-hb6xhh9q.js → server-988cqjme.js} +6 -3
  147. package/dist/v2/{server-fpqe39as.js → server-9a6bwc12.js} +4 -4
  148. package/dist/v2/{server-t4k4qexw.js → server-9e5r8y60.js} +5 -1
  149. package/dist/v2/{server-7ekna9zs.js → server-adfte03x.js} +2 -2
  150. package/dist/v2/{server-qcw43339.js → server-ak7w74j9.js} +4 -4
  151. package/dist/v2/{server-dd0nja67.js → server-bx59ezg6.js} +4 -3
  152. package/dist/v2/{server-676xw7at.js → server-ckrb5rm8.js} +1 -1
  153. package/dist/{index-w4mw92w3.js → v2/server-cxsr0ng6.js} +15 -3
  154. package/dist/v2/{server-t528t8qm.js → server-hn9fb3v0.js} +2 -2
  155. package/dist/v2/{server-7srtwsa4.js → server-j3dm74ey.js} +9 -9
  156. package/dist/v2/{server-w3zeywp1.js → server-jjsf29aq.js} +4 -4
  157. package/dist/v2/server-knvkbfvh.js +25 -0
  158. package/dist/v2/{server-9yyqq3mm.js → server-n78avt2p.js} +1 -1
  159. package/dist/v2/{server-kdrezdy0.js → server-njnx39q2.js} +6 -3
  160. package/dist/v2/{server-x08d1xf3.js → server-npm52h2q.js} +4 -3
  161. package/dist/v2/{server-vb7pbd9p.js → server-nveratm5.js} +1 -1
  162. package/dist/v2/{server-mv1w7t6z.js → server-q360kdb8.js} +77 -38
  163. package/dist/v2/{server-kzns2hbz.js → server-s6jqh8bj.js} +1 -1
  164. package/dist/v2/{server-6byqfbqf.js → server-shme41gj.js} +1 -1
  165. package/dist/v2/{server-j8epsc0g.js → server-wafzvyhg.js} +33 -10
  166. package/dist/v2/{server-gtv9wbhq.js → server-xj4mewze.js} +81 -58
  167. package/dist/v2/{server-nfan6zb6.js → server-y5g32dhq.js} +31 -24
  168. package/dist/v2/{server-jdwd03ep.js → server-yak3sxya.js} +7 -7
  169. package/dist/v2/{server-wkdgjjch.js → server-zrwaj29a.js} +2 -2
  170. package/dist/v2/server.js +7 -6
  171. package/dist/v2/{sqlite-j3tvg8r0.js → sqlite-4pqyynrs.js} +3 -1
  172. package/dist/v2/{storage-memory-8168bgef.js → storage-memory-j3v3hc83.js} +2 -2
  173. package/dist/v2/{storage-tags-j2fzq3sw.js → storage-tags-spa92sgj.js} +5 -5
  174. package/dist/v2/store-reader.d.ts.map +1 -1
  175. package/dist/v2/{wrapup-orchestrator-s92ebfzv.js → wrapup-orchestrator-5wxy1ggv.js} +38 -35
  176. package/dist/wrapup-orchestrator-gv08c6f9.js +47 -0
  177. package/package.json +1 -1
  178. package/src/config/compaction-accessor-guard.test.ts +3 -0
  179. package/src/features/magic-context/dreamer/cron.ts +8 -0
  180. package/src/shared/history-owner.test.ts +60 -0
  181. package/src/shared/history-owner.ts +43 -0
  182. package/src/shared/host-stall-profiler-node.ts +3 -1
  183. package/src/shared/host-stall-profiler.ts +3 -1
  184. package/src/shared/off-thread-migration-clock.test.ts +80 -10
  185. package/src/shared/off-thread-migration-clock.ts +37 -13
  186. package/src/shared/redaction.test.ts +16 -0
  187. package/src/shared/redaction.ts +8 -1
  188. package/src/shared/root-async-context.probe.mjs +36 -0
  189. package/src/shared/root-async-context.test.ts +49 -0
  190. package/src/shared/rpc-server.ts +27 -23
  191. package/src/shared/sqlite-busy-budget-review.test.ts +291 -0
  192. package/src/shared/sqlite-foreground-wait.test.ts +253 -1
  193. package/src/shared/sqlite.ts +55 -14
  194. package/src/shared/user-facing-codes.ts +2 -2
  195. package/dist/embedding-backfill-re16xncd.js +0 -21
  196. package/dist/recomp-orchestrator-trcgmm23.js +0 -60
  197. package/dist/v2/embedding-backfill-xd9ygzgd.js +0 -20
  198. package/dist/v2/recomp-orchestrator-n11zv1f1.js +0 -59
  199. package/dist/v2/search-mvgqtkkz.js +0 -46
  200. package/dist/wrapup-orchestrator-df61jmz9.js +0 -47
@@ -4,22 +4,22 @@ import {
4
4
  } from "./index-1zx87sdm.js";
5
5
  import {
6
6
  estimateTokens
7
- } from "./index-qx53vezw.js";
7
+ } from "./index-gjvjh960.js";
8
8
  import {
9
9
  getHarness2
10
10
  } from "./index-pavzsdc6.js";
11
11
  import {
12
12
  sessionLog2
13
- } from "./index-nsjyysj0.js";
13
+ } from "./index-mvvephtj.js";
14
14
  import {
15
15
  getTagIdentityWriteGeneration2,
16
16
  getSqliteDatabasePath2
17
- } from "./index-j8epsc0g.js";
17
+ } from "./index-wafzvyhg.js";
18
18
  import {
19
19
  tagIdentityRevisionKey,
20
20
  tagOrderConstraintIndex,
21
21
  stableStringify
22
- } from "./index-1bt88epp.js";
22
+ } from "./index-bd9cjab3.js";
23
23
  import {
24
24
  DEFAULT_PROTECTED_TOOLS,
25
25
  normalizeProtectedToolName,
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  sanitizeDiagnosticText,
3
3
  sessionLog2
4
- } from "./index-nsjyysj0.js";
4
+ } from "./index-mvvephtj.js";
5
5
  import {
6
6
  getHarness2
7
7
  } from "./index-pavzsdc6.js";
8
8
  import {
9
9
  isTransientSqliteError2
10
- } from "./index-j8epsc0g.js";
10
+ } from "./index-wafzvyhg.js";
11
11
  import {
12
12
  PROMOTABLE_CATEGORIES,
13
13
  CATEGORY_DEFAULT_TTL
14
14
  } from "./index-fr0wbhdn.js";
15
15
  import {
16
16
  managedAuthorityNoteRow
17
- } from "./index-j5hce1ab.js";
17
+ } from "./index-qgp5vnt4.js";
18
18
  import {
19
19
  embedTextForProject2
20
- } from "./index-sf94at64.js";
20
+ } from "./index-rg1cezmj.js";
21
21
  import {
22
22
  saveEmbeddingIfHashMatches
23
23
  } from "./index-4dhv7mqz.js";
@@ -30,7 +30,7 @@ import {
30
30
  buildWorkspaceMemorySqlFilter2,
31
31
  getMemoryById2,
32
32
  updateMemorySeenCount2
33
- } from "./index-9yyqq3mm.js";
33
+ } from "./index-n78avt2p.js";
34
34
  import {
35
35
  computeNormalizedHash
36
36
  } from "./index-2bvekkfy.js";
@@ -49,8 +49,8 @@ var USER_FACING_FAILURES = {
49
49
  },
50
50
  history_boundary_unresolved: {
51
51
  code: "MC-H04",
52
- sentence: "This request was not sent: the message that marks where this session's history summary ends is missing from the OpenCode store, and without it the request is larger than the model's context window.",
53
- action: "Run /ctx-recomp to rebuild the history summary."
52
+ sentence: "This request was not sent: Magic Context could not safely place the history summary boundary in the loaded conversation, and the untrimmed request is larger than the model's context window.",
53
+ action: "Reopen this session in its current project directory, then run /ctx-recomp to rebuild the history summary. A model with a larger context window can also help."
54
54
  },
55
55
  history_over_window_unmanaged: {
56
56
  code: "MC-H06",
@@ -3,7 +3,22 @@ import {
3
3
  importPluginModule,
4
4
  writeForwardedLogLine2,
5
5
  log2
6
- } from "./index-nsjyysj0.js";
6
+ } from "./index-mvvephtj.js";
7
+ import {
8
+ inRootAsyncContext2,
9
+ registerSlowWriteReporter2,
10
+ registerSqliteDiagnosticSink2,
11
+ detectSqliteRuntime2,
12
+ Database2,
13
+ withSqliteBackgroundWriter2,
14
+ withoutSqliteTransformPass2,
15
+ isTransientSqliteError2,
16
+ withPrivilegedWriter2
17
+ } from "./index-wafzvyhg.js";
18
+ import {
19
+ bootQuietRemainingMs,
20
+ scheduleAfterBootQuiet
21
+ } from "./index-0jz47061.js";
7
22
  import {
8
23
  getHarness2,
9
24
  harnessOwnsOpenCodeStore2
@@ -22,23 +37,13 @@ import {
22
37
  parseRpcPortFile,
23
38
  inspectProcessesAsync,
24
39
  inspectWindowsProcessesSync
25
- } from "./index-w4mw92w3.js";
26
- import {
27
- registerSlowWriteReporter2,
28
- registerSqliteDiagnosticSink2,
29
- detectSqliteRuntime2,
30
- Database2,
31
- withSqliteBackgroundWriter2,
32
- withoutSqliteTransformPass2,
33
- isTransientSqliteError2,
34
- withPrivilegedWriter2
35
- } from "./index-j8epsc0g.js";
40
+ } from "./index-q28hsbpg.js";
36
41
  import {
37
42
  configureContextDatabasePragmas2
38
43
  } from "./index-fb3zxn06.js";
39
44
  import {
40
45
  startMessageFtsRowidMapBackfill
41
- } from "./index-rzmjkdd6.js";
46
+ } from "./index-mp2kghkv.js";
42
47
  import {
43
48
  LKG_SLOT_CHUNKS_DDL,
44
49
  SESSION_REPLAY_DECISIONS_DDL,
@@ -48,24 +53,20 @@ import {
48
53
  hasPendingMigrations,
49
54
  getMainThreadMigrationBodyCount,
50
55
  runMigrations
51
- } from "./index-j5hce1ab.js";
56
+ } from "./index-qgp5vnt4.js";
52
57
  import {
53
58
  installTagIdentityRevisionTrigger,
54
59
  ensureColumn,
55
60
  installV95PerfSchema
56
- } from "./index-1bt88epp.js";
61
+ } from "./index-bd9cjab3.js";
57
62
  import {
58
63
  resolveOpenCodeDbPath,
59
64
  hasV1MessageTables
60
65
  } from "./index-58e3y90n.js";
61
- import {
62
- bootQuietRemainingMs,
63
- scheduleAfterBootQuiet
64
- } from "./index-g8qbdb03.js";
65
66
  import {
66
67
  setDatabase,
67
68
  loadToolDefinitionMeasurements
68
- } from "./index-h2wc01qk.js";
69
+ } from "./index-8kk7yh6m.js";
69
70
  import {
70
71
  getErrorMessage
71
72
  } from "./index-y8v6yerm.js";
@@ -82,7 +83,7 @@ import {
82
83
  } from "./index-8ajstryz.js";
83
84
  import {
84
85
  logSlowWriteTransaction
85
- } from "./index-4mjhqadz.js";
86
+ } from "./index-150zz6fh.js";
86
87
 
87
88
  // src/features/magic-context/fail-closed-block.ts
88
89
  var FAIL_CLOSED_DOCTOR_COMMAND = "npx @cortexkit/magic-context@latest doctor";
@@ -382,15 +383,25 @@ var activeMigrations = 0;
382
383
  var activeSince = 0;
383
384
  var accumulatedMs = 0;
384
385
  var idleWaiters = [];
385
- function offThreadMigrationMs(now = performance.now()) {
386
- return accumulatedMs + (activeMigrations > 0 ? Math.max(0, now - activeSince) : 0);
386
+ var testClock;
387
+ function now() {
388
+ return testClock?.now() ?? performance.now();
389
+ }
390
+ function scheduleTimeout(callback, delayMs) {
391
+ if (testClock)
392
+ return testClock.setTimeout(callback, delayMs);
393
+ const timer = setTimeout(callback, delayMs);
394
+ return () => clearTimeout(timer);
395
+ }
396
+ function offThreadMigrationMs(at = now()) {
397
+ return accumulatedMs + (activeMigrations > 0 ? Math.max(0, at - activeSince) : 0);
387
398
  }
388
399
  function isOffThreadMigrationRunning() {
389
400
  return activeMigrations > 0;
390
401
  }
391
402
  function beginOffThreadMigration() {
392
403
  if (activeMigrations === 0)
393
- activeSince = performance.now();
404
+ activeSince = now();
394
405
  activeMigrations += 1;
395
406
  let ended = false;
396
407
  return () => {
@@ -400,7 +411,7 @@ function beginOffThreadMigration() {
400
411
  activeMigrations -= 1;
401
412
  if (activeMigrations > 0)
402
413
  return;
403
- accumulatedMs += Math.max(0, performance.now() - activeSince);
414
+ accumulatedMs += Math.max(0, now() - activeSince);
404
415
  const waiters = idleWaiters;
405
416
  idleWaiters = [];
406
417
  for (const wake of waiters)
@@ -413,10 +424,10 @@ function whenOffThreadMigrationIdle() {
413
424
  return new Promise((resolve) => idleWaiters.push(resolve));
414
425
  }
415
426
  function startBootDeadline(timeoutMs, onDeferred) {
416
- const startedAt = performance.now();
427
+ const startedAt = now();
417
428
  const migratedAtStart = offThreadMigrationMs(startedAt);
418
429
  const budgetMs = Math.max(0, timeoutMs);
419
- let timer;
430
+ let cancelTimer;
420
431
  let cancelled = false;
421
432
  let deferredReported = false;
422
433
  let resolveExpired;
@@ -424,12 +435,12 @@ function startBootDeadline(timeoutMs, onDeferred) {
424
435
  resolveExpired = resolve;
425
436
  });
426
437
  const remainingMs = () => {
427
- const now = performance.now();
428
- const countedMs = now - startedAt - (offThreadMigrationMs(now) - migratedAtStart);
438
+ const currentTime = now();
439
+ const countedMs = currentTime - startedAt - (offThreadMigrationMs(currentTime) - migratedAtStart);
429
440
  return budgetMs - countedMs;
430
441
  };
431
442
  const check = () => {
432
- timer = undefined;
443
+ cancelTimer = undefined;
433
444
  if (cancelled)
434
445
  return;
435
446
  if (isOffThreadMigrationRunning()) {
@@ -442,19 +453,18 @@ function startBootDeadline(timeoutMs, onDeferred) {
442
453
  }
443
454
  const left = remainingMs();
444
455
  if (left > 0) {
445
- timer = setTimeout(check, left);
456
+ cancelTimer = scheduleTimeout(check, left);
446
457
  return;
447
458
  }
448
459
  resolveExpired();
449
460
  };
450
- timer = setTimeout(check, budgetMs);
461
+ cancelTimer = scheduleTimeout(check, budgetMs);
451
462
  return {
452
463
  expired,
453
464
  cancel: () => {
454
465
  cancelled = true;
455
- if (timer)
456
- clearTimeout(timer);
457
- timer = undefined;
466
+ cancelTimer?.();
467
+ cancelTimer = undefined;
458
468
  }
459
469
  };
460
470
  }
@@ -471,7 +481,7 @@ function runMigrationsOffThread(data) {
471
481
  return new Promise((resolve, reject) => {
472
482
  let worker;
473
483
  try {
474
- worker = new Worker(workerEntryOverride ?? defaultWorkerEntry(), { workerData: data });
484
+ worker = inRootAsyncContext2(() => new Worker(workerEntryOverride ?? defaultWorkerEntry(), { workerData: data }));
475
485
  } catch (error) {
476
486
  reject(workerStartError(error instanceof Error ? error.message : String(error)));
477
487
  return;
@@ -1260,8 +1270,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1260
1270
  startMessageFtsRowidMapBackfill(db).then(async () => {
1261
1271
  if (!readsOpenCodeStore)
1262
1272
  return;
1263
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-h1btx938.js"));
1264
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-a5ytnp53.js"));
1273
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-t9r7r0sg.js"));
1274
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-nb5hhnrt.js"));
1265
1275
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
1266
1276
  readPage: readRawSessionMessagePage
1267
1277
  }));
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  log2,
12
12
  sessionLog2,
13
13
  flushLogger2
14
- } from "./index-nsjyysj0.js";
14
+ } from "./index-mvvephtj.js";
15
15
  import {
16
16
  withContentLanguageDirective,
17
17
  string,
@@ -23,7 +23,7 @@ import {
23
23
  record,
24
24
  DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
25
25
  DEFAULT_HISTORIAN_TIMEOUT_MS
26
- } from "./index-k6xvbj2e.js";
26
+ } from "./index-w28y7d0z.js";
27
27
  import {
28
28
  denyTaskRoutingToCallerAgents,
29
29
  buildHiddenAgentRegistrations,
@@ -72,7 +72,7 @@ import {
72
72
  checkCompactionMarkerConsistency,
73
73
  clearInjectionCache,
74
74
  clearNoteNudgeTriggerOnly
75
- } from "./index-5tbvdff4.js";
75
+ } from "./index-hxrvx6cy.js";
76
76
  import"./index-sd3egckz.js";
77
77
  import {
78
78
  hasTrustedAbsoluteWall,
@@ -82,14 +82,16 @@ import {
82
82
  deriveHistorianChunkTokens2,
83
83
  resolveKnownHistorianContextLimit2,
84
84
  resolveHistorianContextLimit2
85
- } from "./index-w23dh319.js";
85
+ } from "./index-jw4gbfkv.js";
86
86
  import {
87
87
  resolveOpenCodeDbPath,
88
88
  openCodeDbPathExists,
89
89
  formatOpenCodeDbMissingBanner,
90
90
  claimOpenCodeDbDiagnosticOnce
91
91
  } from "./index-58e3y90n.js";
92
- import"./index-j8epsc0g.js";
92
+ import {
93
+ inRootAsyncContext2
94
+ } from "./index-wafzvyhg.js";
93
95
  import {
94
96
  openOpenCodeDb,
95
97
  DREAMER_SYSTEM_PROMPT,
@@ -158,7 +160,7 @@ import {
158
160
  parameterDescriptionsFor,
159
161
  MagicContextRpcServer,
160
162
  applyHiddenSubagentTemperature
161
- } from "./index-tagss15p.js";
163
+ } from "./index-w1ejb9qr.js";
162
164
  import {
163
165
  formatFailClosedBlockingMessage,
164
166
  createFailClosedController,
@@ -173,7 +175,7 @@ import {
173
175
  openDatabaseAsync,
174
176
  isDatabasePersisted,
175
177
  getDatabasePersistenceError
176
- } from "./index-4btknbqh.js";
178
+ } from "./index-zf9nydbd.js";
177
179
  import {
178
180
  setHomeProjectPermission,
179
181
  ProjectIdentityError,
@@ -184,34 +186,34 @@ import {
184
186
  beginBootQuietPeriod,
185
187
  bootQuietRemainingMs,
186
188
  scheduleAfterBootQuiet
187
- } from "./index-g8qbdb03.js";
189
+ } from "./index-0jz47061.js";
188
190
  import {
189
191
  deleteTemporalDecision
190
- } from "./index-1bt88epp.js";
192
+ } from "./index-bd9cjab3.js";
191
193
  import {
192
194
  BoundedSessionMap,
193
195
  observeSessionActivity,
194
196
  backfillSessionActivity,
195
197
  deleteIndexedMessage2
196
- } from "./index-wq16ahsn.js";
198
+ } from "./index-b4gcb3rk.js";
197
199
  import {
198
200
  recordSessionProjectIdentity,
199
201
  getProjectEmbeddingSnapshot2,
200
202
  getEmbeddingCoverageStatus2,
201
203
  getAutoEmbeddingSessionCoverage2
202
- } from "./index-sf94at64.js";
203
- import"./index-w4mw92w3.js";
204
+ } from "./index-rg1cezmj.js";
205
+ import"./index-q28hsbpg.js";
204
206
  import"./index-fb3zxn06.js";
205
- import"./index-rzmjkdd6.js";
206
- import"./index-j5hce1ab.js";
207
+ import"./index-mp2kghkv.js";
208
+ import"./index-qgp5vnt4.js";
207
209
  import"./index-fr0wbhdn.js";
208
210
  import {
209
211
  preloadTokenizer
210
- } from "./index-qx53vezw.js";
212
+ } from "./index-gjvjh960.js";
211
213
  import {
212
214
  getCurrentToolSetHash,
213
215
  recordToolDefinition
214
- } from "./index-h2wc01qk.js";
216
+ } from "./index-8kk7yh6m.js";
215
217
  import {
216
218
  invalidateTrueRawTokenCache,
217
219
  recordToolParameters,
@@ -241,46 +243,46 @@ import {
241
243
  detectOverflow,
242
244
  isAnthropicFamilyRoute,
243
245
  readRawSessionMessages2
244
- } from "./index-n5a170gs.js";
245
- import"./index-vkbqdnkj.js";
246
+ } from "./index-9g1c4bt9.js";
247
+ import"./index-kvw6xew3.js";
246
248
  import {
247
249
  getDefaultSubcConnectionFile,
248
250
  SubcModuleTransport
249
- } from "./index-j58gqrn2.js";
251
+ } from "./index-2rw244rh.js";
250
252
  import {
251
253
  isEmbeddingHostBusy2
252
254
  } from "./index-qt1qqasc.js";
253
- import"./index-tqf7yg27.js";
255
+ import"./index-a4b0gbyg.js";
254
256
  import {
255
257
  registerExitAbort,
256
258
  unregisterExitAbort
257
259
  } from "./index-v0p37hm2.js";
258
260
  import {
259
261
  forgetRawSessionOrdinalWatermark2
260
- } from "./index-37q80veb.js";
262
+ } from "./index-angx1s0k.js";
261
263
  import {
262
264
  observeOpenCodeTurnEvent,
263
265
  clearTrackedOpenCodeSession,
264
266
  findLastAssistantModelFromOpenCodeDb
265
- } from "./index-a8acx4gc.js";
267
+ } from "./index-q76br5zn.js";
266
268
  import {
267
269
  sendCommandResult2,
268
270
  sendStatusNotification2
269
- } from "./index-vt4sf4ep.js";
271
+ } from "./index-pgy3h49n.js";
270
272
  import {
271
273
  detectConflicts,
272
274
  resolveCompactionForBoot
273
- } from "./index-z1tjp257.js";
275
+ } from "./index-b64n4d0h.js";
274
276
  import {
275
277
  sendConflictWarning2,
276
278
  cleanupConflictWarnings2
277
- } from "./index-0gyq3djm.js";
279
+ } from "./index-4hb8nt93.js";
278
280
  import"./index-1zx87sdm.js";
279
281
  import {
280
282
  stripPersistedAssistantText,
281
283
  deleteTagsByMessageId2,
282
284
  getMaxTagNumberBySession2
283
- } from "./index-tmtty2x5.js";
285
+ } from "./index-xpn05jxq.js";
284
286
  import {
285
287
  resolveHistorianModel2,
286
288
  resolveOpenCodeAgentOverrides2,
@@ -290,26 +292,26 @@ import {
290
292
  buildDreamTaskRuntimeConfigs2,
291
293
  userMemoryCollectionEnabled2
292
294
  } from "./index-ghc9f0n7.js";
293
- import"./index-ax2jhztn.js";
294
- import"./index-n7kwfw2r.js";
295
+ import"./index-7bjgyaj1.js";
296
+ import"./index-ydjgz36f.js";
295
297
  import {
296
298
  pushNotification2
297
299
  } from "./index-x8a7jmkh.js";
298
- import"./index-gbmqa9x9.js";
300
+ import"./index-bmwfzz28.js";
299
301
  import"./index-4dhv7mqz.js";
300
- import"./index-w6bd03dc.js";
301
- import"./index-9yyqq3mm.js";
302
- import"./index-sh91t19a.js";
302
+ import"./index-a43xq1pg.js";
303
+ import"./index-n78avt2p.js";
304
+ import"./index-s178h9z8.js";
303
305
  import {
304
306
  createTagger,
305
307
  cavemanWordRulesForLanguage,
306
308
  setCtxReduceRegisteredGlobally,
307
309
  clearToolPermissionDenied,
308
310
  resetDegradedCacheCount2
309
- } from "./index-ebnngykq.js";
311
+ } from "./index-gzg9ekc1.js";
310
312
  import {
311
313
  runManagedRecomp2
312
- } from "./index-rwmpkss5.js";
314
+ } from "./index-xf6k8szp.js";
313
315
  import {
314
316
  isValidSemver,
315
317
  compareSemverCore
@@ -317,7 +319,7 @@ import {
317
319
  import"./index-fmsr7v69.js";
318
320
  import {
319
321
  runManagedWrapup2
320
- } from "./index-w6vr754t.js";
322
+ } from "./index-pjgzdezw.js";
321
323
  import {
322
324
  __toESM,
323
325
  __commonJS
@@ -337,7 +339,7 @@ import {
337
339
  import {
338
340
  closeQuietly
339
341
  } from "./index-8ajstryz.js";
340
- import"./index-4mjhqadz.js";
342
+ import"./index-150zz6fh.js";
341
343
 
342
344
  // ../../node_modules/.bun/esprima@4.0.1/node_modules/esprima/dist/esprima.js
343
345
  var require_esprima = __commonJS(function(exports, module) {
@@ -8179,7 +8181,7 @@ var require_src2 = __commonJS(function(exports, module) {
8179
8181
  // package.json
8180
8182
  var package_default = {
8181
8183
  name: "@cortexkit/opencode-magic-context",
8182
- version: "0.49.7",
8184
+ version: "0.49.8",
8183
8185
  type: "module",
8184
8186
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
8185
8187
  main: "dist/index.js",
@@ -8878,10 +8880,10 @@ function runHostPluginInstall(spec, signal, timeoutMs = 60000) {
8878
8880
  const onAbort = () => finish(false);
8879
8881
  signal?.addEventListener("abort", onAbort, { once: true });
8880
8882
  try {
8881
- const proc = spawn("opencode", ["plugin", spec, "--global", "--force"], {
8883
+ const proc = inRootAsyncContext2(() => spawn("opencode", ["plugin", spec, "--global", "--force"], {
8882
8884
  windowsHide: true,
8883
8885
  stdio: "ignore"
8884
- });
8886
+ }));
8885
8887
  processStarted = true;
8886
8888
  proc.on("error", () => finish(false, false));
8887
8889
  proc.on("exit", (code) => finish(code === 0));
@@ -11695,7 +11697,7 @@ function createNodeHostStallProfiler(deps) {
11695
11697
  if (stopped || !existsSync7(enablePath))
11696
11698
  return;
11697
11699
  session = api;
11698
- api.connect();
11700
+ inRootAsyncContext2(() => api.connect());
11699
11701
  await post(api, "Profiler.enable");
11700
11702
  await post(api, "Profiler.setSamplingInterval", {
11701
11703
  interval: Math.round(options.sampleIntervalMs * 1000)
@@ -11745,7 +11747,6 @@ function createNodeHostStallProfiler(deps) {
11745
11747
  isUnavailable: () => unavailable
11746
11748
  };
11747
11749
  }
11748
-
11749
11750
  // src/shared/host-stall-profiler.ts
11750
11751
  function hostStallProfilerDir() {
11751
11752
  return path7.join(getMagicContextStorageDir(), HOST_PROFILER_DIRNAME);
@@ -11762,7 +11763,7 @@ function startHostStallProfilerSwitch() {
11762
11763
  now: () => performance.now(),
11763
11764
  wallNow: () => Date.now(),
11764
11765
  setInterval: (callback, ms) => {
11765
- const handle = setInterval(callback, ms);
11766
+ const handle = inRootAsyncContext2(() => setInterval(callback, ms));
11766
11767
  handle.unref?.();
11767
11768
  return handle;
11768
11769
  },
@@ -12057,7 +12058,7 @@ async function setup(context) {
12057
12058
  log2("v2 setup() called on a host without session.hook; v1 server lane owns this host, v2 lane inert");
12058
12059
  return async () => {};
12059
12060
  }
12060
- const { registerContext } = await import("./context-ffr7e0g7.js");
12061
+ const { registerContext } = await import("./context-x0ccfv0f.js");
12061
12062
  setHarness2("opencode2");
12062
12063
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
12063
12064
  const duties = await registerContext(context);
@@ -12128,7 +12129,7 @@ var server = async (ctx) => {
12128
12129
  if (hasBannerEntries)
12129
12130
  setTimeout(async () => {
12130
12131
  try {
12131
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-2tp44tfa.js"));
12132
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-q8ngbap3.js"));
12132
12133
  const clientWithSessions = ctx.client;
12133
12134
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12134
12135
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12145,7 +12146,7 @@ var server = async (ctx) => {
12145
12146
  log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
12146
12147
  setTimeout(async () => {
12147
12148
  try {
12148
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-2tp44tfa.js"));
12149
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-q8ngbap3.js"));
12149
12150
  const clientWithSessions = ctx.client;
12150
12151
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12151
12152
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12421,12 +12422,12 @@ var server = async (ctx) => {
12421
12422
  {
12422
12423
  const fence = getSchemaFenceRejection();
12423
12424
  if (fence) {
12424
- importPluginModule(() => import("./conflict-warning-hook-myk5hbt9.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12425
+ importPluginModule(() => import("./conflict-warning-hook-w3crzrar.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12425
12426
  }
12426
12427
  }
12427
12428
  const serverUrl = ctx.serverUrl;
12428
12429
  const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
12429
- importPluginModule(() => import("./send-session-notification-2tp44tfa.js")).then(({ setNotificationServerUrl }) => {
12430
+ importPluginModule(() => import("./send-session-notification-q8ngbap3.js")).then(({ setNotificationServerUrl }) => {
12430
12431
  setNotificationServerUrl(serverUrlStr);
12431
12432
  }).catch((error) => log2("[magic-context] notification transport unavailable:", error));
12432
12433
  if (conflictResult?.hasConflict) {
@@ -12449,7 +12450,7 @@ var server = async (ctx) => {
12449
12450
  }) => {
12450
12451
  if (!shouldShowAnnouncement())
12451
12452
  return;
12452
- return importPluginModule(() => import("./conflict-warning-hook-myk5hbt9.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12453
+ return importPluginModule(() => import("./conflict-warning-hook-w3crzrar.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12453
12454
  }).catch(() => {});
12454
12455
  }, 8000);
12455
12456
  }
@@ -12523,8 +12524,8 @@ var server = async (ctx) => {
12523
12524
  tryReopenStorage,
12524
12525
  rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
12525
12526
  onStorageBusyRefusal: async (sessionId, message) => {
12526
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-2tp44tfa.js"));
12527
- const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-7qts7h54.js"));
12527
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-q8ngbap3.js"));
12528
+ const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-yv463b7y.js"));
12528
12529
  await sendStatusNotification(ctx.client, sessionId, message, {
12529
12530
  toastDurationMs: 15000
12530
12531
  });
@@ -6,7 +6,7 @@ import {
6
6
  getLoggerDiagnostics2,
7
7
  flushLogger2,
8
8
  getLogFilePath2
9
- } from "./index-nsjyysj0.js";
9
+ } from "./index-mvvephtj.js";
10
10
  import"./index-0sahzkwr.js";
11
11
  import"./index-pavzsdc6.js";
12
12
  export {
@@ -2,21 +2,21 @@ import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withIndexChunk2,
4
4
  yieldIndexChunk2
5
- } from "./index-j8epsc0g.js";
5
+ } from "./index-wafzvyhg.js";
6
6
  import"./index-1zx87sdm.js";
7
- import"./index-tmtty2x5.js";
8
- import"./index-qx53vezw.js";
7
+ import"./index-xpn05jxq.js";
8
+ import"./index-gjvjh960.js";
9
9
  import"./index-pavzsdc6.js";
10
10
  import"./index-0sahzkwr.js";
11
- import"./index-nsjyysj0.js";
12
- import"./index-1bt88epp.js";
13
- import"./index-k6xvbj2e.js";
11
+ import"./index-mvvephtj.js";
12
+ import"./index-bd9cjab3.js";
13
+ import"./index-w28y7d0z.js";
14
14
  import"./index-v0p37hm2.js";
15
- import"./index-37q80veb.js";
15
+ import"./index-angx1s0k.js";
16
16
  import"./index-58e3y90n.js";
17
- import"./index-a8acx4gc.js";
18
- import"./index-n5a170gs.js";
19
- import"./index-h2wc01qk.js";
17
+ import"./index-q76br5zn.js";
18
+ import"./index-9g1c4bt9.js";
19
+ import"./index-8kk7yh6m.js";
20
20
  import {
21
21
  MESSAGE_INDEX_MAX_FTS_BYTES2,
22
22
  messageIndexSkipKey2,
@@ -24,12 +24,12 @@ import {
24
24
  markMessageIndexDirty2,
25
25
  getIndexableContent2,
26
26
  indexSingleMessage2
27
- } from "./index-wq16ahsn.js";
28
- import"./index-rzmjkdd6.js";
29
- import"./index-w4mw92w3.js";
30
- import"./index-vkbqdnkj.js";
31
- import"./index-ax2jhztn.js";
32
- import"./index-4mjhqadz.js";
27
+ } from "./index-b4gcb3rk.js";
28
+ import"./index-mp2kghkv.js";
29
+ import"./index-q28hsbpg.js";
30
+ import"./index-kvw6xew3.js";
31
+ import"./index-7bjgyaj1.js";
32
+ import"./index-150zz6fh.js";
33
33
 
34
34
  // src/features/magic-context/message-index-bounded.ts
35
35
  import { createHash } from "node:crypto";