@cortexkit/opencode-magic-context 0.49.48 → 0.49.50

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 (224) hide show
  1. package/dist/{announcement-g789dmt6.js → announcement-9pr71hd5.js} +3 -2
  2. package/dist/auto-search-worker.js +5 -5
  3. package/dist/chunk-embedding-write-worker.js +14 -15
  4. package/dist/{compaction-marker-candidates-dkfp1q9j.js → compaction-marker-candidates-8hazqfvj.js} +2 -3
  5. package/dist/compaction-marker-candidates-worker.js +1 -1
  6. package/dist/{compartment-chunk-embedding-snj51nmg.js → compartment-chunk-embedding-gfd093f8.js} +7 -8
  7. package/dist/config/project-security.d.ts.map +1 -1
  8. package/dist/config/schema/magic-context.d.ts +10 -0
  9. package/dist/config/schema/magic-context.d.ts.map +1 -1
  10. package/dist/{conflict-warning-hook-w1aw6w5t.js → conflict-warning-hook-56qpq7ws.js} +7 -8
  11. package/dist/{context-8r125qv3.js → context-4js5qnnm.js} +61 -49
  12. package/dist/{derive-budgets-nkw09vq7.js → derive-budgets-z53424qx.js} +2 -3
  13. package/dist/embedding-backfill-3wdjzrvs.js +27 -0
  14. package/dist/embedding-worker-process.js +2 -3
  15. package/dist/embedding-worker.js +6 -7
  16. package/dist/features/magic-context/dreamer/docs-proposals.d.ts.map +1 -1
  17. package/dist/features/magic-context/dreamer/provider-output-failure.d.ts +5 -7
  18. package/dist/features/magic-context/dreamer/provider-output-failure.d.ts.map +1 -1
  19. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  20. package/dist/features/magic-context/dreamer/verify.d.ts.map +1 -1
  21. package/dist/features/magic-context/memory/embedding-identity.d.ts.map +1 -1
  22. package/dist/features/magic-context/memory/embedding-openai.d.ts +4 -0
  23. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  24. package/dist/features/magic-context/memory/embedding-probe.d.ts +10 -0
  25. package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -1
  26. package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
  27. package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
  28. package/dist/features/magic-context/storage-db.d.ts +14 -0
  29. package/dist/features/magic-context/storage-db.d.ts.map +1 -1
  30. package/dist/features/magic-context/transform-decision-log.d.ts +2 -0
  31. package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
  32. package/dist/{history-owner-0z620wgz.js → history-owner-n50e0e8y.js} +2 -3
  33. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  34. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  35. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  36. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +5 -3
  37. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  38. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  39. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  40. package/dist/{index-rvmhyk89.js → index-07rp6xcn.js} +9 -9
  41. package/dist/{index-txs8tce6.js → index-0k283v27.js} +2 -4
  42. package/dist/{index-ak11t3gm.js → index-0tz2fzpq.js} +1 -1
  43. package/dist/{index-2qbtqg1w.js → index-25tm250q.js} +1 -1
  44. package/dist/{index-h9m41624.js → index-2ny9xwdn.js} +2 -2
  45. package/dist/{index-xa9mmq6c.js → index-36wseasx.js} +1 -1
  46. package/dist/{index-cgzpbz78.js → index-5dptmnvd.js} +5 -5
  47. package/dist/{index-q41sm60t.js → index-5g6npyw5.js} +89 -63
  48. package/dist/{index-qsyx931k.js → index-5t1mr0bt.js} +13 -15
  49. package/dist/{index-jrfre9ah.js → index-82dfe8en.js} +146 -5
  50. package/dist/{index-d4qw2h43.js → index-8d7gkgjs.js} +6 -5
  51. package/dist/{index-gn6gfz4y.js → index-90z05d0p.js} +1 -1
  52. package/dist/{index-trkxkgmd.js → index-97bjd14c.js} +5 -5
  53. package/dist/{index-9wnbnx8f.js → index-a6aqpfp6.js} +1 -1
  54. package/dist/{index-s79g172v.js → index-bamnjp2t.js} +29 -13
  55. package/dist/{index-4wpfbzks.js → index-bkg4hdyh.js} +3 -3
  56. package/dist/{index-gp3kcpc4.js → index-cd3vp8xa.js} +1 -1
  57. package/dist/{index-vk6srk5r.js → index-ct3ettqt.js} +3 -3
  58. package/dist/{index-sd2s4t4p.js → index-cwj6qhmf.js} +2 -2
  59. package/dist/{index-brj6was5.js → index-em92bp7f.js} +2 -2
  60. package/dist/{index-2p37txes.js → index-ga5q492k.js} +1 -1
  61. package/dist/{index-8cfnaagj.js → index-gapnh6tk.js} +2 -4
  62. package/dist/{index-fw42ms3m.js → index-gz001bx7.js} +1 -1
  63. package/dist/{index-zetm0ayn.js → index-h8g08nxs.js} +164 -106
  64. package/dist/{index-qcz1fy7h.js → index-hexdee98.js} +4 -4
  65. package/dist/{index-fgft4qjn.js → index-hkveze74.js} +4 -4
  66. package/dist/{index-smtbdmc3.js → index-hsv31e69.js} +2 -2
  67. package/dist/{index-dj2p8653.js → index-hsyczpn7.js} +2 -2
  68. package/dist/{index-4dpvnp8k.js → index-jjy5a5w0.js} +3 -0
  69. package/dist/{index-1hwn96x1.js → index-kn1bx21r.js} +3 -3
  70. package/dist/{index-t6s0tsp7.js → index-mjh63zvw.js} +3 -3
  71. package/dist/{index-ta87fpfs.js → index-n0twfvah.js} +64 -15
  72. package/dist/{index-nj360hcs.js → index-pb8ysnq2.js} +4 -4
  73. package/dist/{index-jz5bk7xd.js → index-qperbvjn.js} +2 -2
  74. package/dist/{index-25ka1jza.js → index-r9agn061.js} +4 -4
  75. package/dist/{index-hkh8x221.js → index-rbs27k1d.js} +7 -7
  76. package/dist/{index-hacf2tyx.js → index-reyws9fy.js} +1 -1
  77. package/dist/{index-cgsmttyj.js → index-s131svmx.js} +4 -4
  78. package/dist/{index-fxbk7gk3.js → index-tad3can2.js} +1 -1
  79. package/dist/{index-8ka0ne8t.js → index-v4a1pnny.js} +6 -6
  80. package/dist/{index-xh3jyejb.js → index-wr2t8zb0.js} +17 -19
  81. package/dist/{index-q6pjqm49.js → index-z4832qfe.js} +14 -14
  82. package/dist/index.js +54 -56
  83. package/dist/{logger-qwnbcfj9.js → logger-sw7z6sjz.js} +1 -2
  84. package/dist/{message-fts-rowid-map-msffhkve.js → message-fts-rowid-map-kx1bsdyg.js} +4 -5
  85. package/dist/{message-index-bounded-0q7sy04w.js → message-index-bounded-k0ebpy3y.js} +12 -13
  86. package/dist/{message-time-backfill-39bm498k.js → message-time-backfill-hp2jgn49.js} +2 -3
  87. package/dist/migration-worker.js +12 -13
  88. package/dist/plugin/embedding-bootstrap-helpers.d.ts.map +1 -1
  89. package/dist/plugin/embedding-routing.d.ts.map +1 -1
  90. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  91. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  92. package/dist/{project-embedding-registry-r6xfsrbe.js → project-embedding-registry-5dwh5zfn.js} +12 -13
  93. package/dist/raw-ordinal-warmup-worker.js +8 -8
  94. package/dist/{read-session-chunk-7fmg9p5m.js → read-session-chunk-6712p893.js} +10 -11
  95. package/dist/{read-session-raw-x7a9b3jm.js → read-session-raw-04ger9zt.js} +2 -3
  96. package/dist/{recomp-orchestrator-jqa5z4ar.js → recomp-orchestrator-8ebydg5j.js} +31 -32
  97. package/dist/render-dtc4qkq4.js +43 -0
  98. package/dist/{safe-notification-target-wztd7bgk.js → safe-notification-target-mx5khyxf.js} +2 -3
  99. package/dist/{search-archive-df09r8qn.js → search-archive-f6hjbnsa.js} +12 -13
  100. package/dist/{search-kt764afk.js → search-edv0gy1d.js} +24 -25
  101. package/dist/{send-session-notification-j93pn2hn.js → send-session-notification-gamjee2f.js} +5 -6
  102. package/dist/shared/data-path.d.ts +7 -13
  103. package/dist/shared/data-path.d.ts.map +1 -1
  104. package/dist/shared/hidden-model-cooldown.d.ts +23 -0
  105. package/dist/shared/hidden-model-cooldown.d.ts.map +1 -0
  106. package/dist/shared/model-suggestion-retry.d.ts +0 -2
  107. package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
  108. package/dist/shared/provider-response-completion.d.ts +10 -0
  109. package/dist/shared/provider-response-completion.d.ts.map +1 -1
  110. package/dist/shared/rpc-types.d.ts +1 -0
  111. package/dist/shared/rpc-types.d.ts.map +1 -1
  112. package/dist/shared/status-summary.d.ts +1 -0
  113. package/dist/shared/status-summary.d.ts.map +1 -1
  114. package/dist/shared/status-view-check.d.ts.map +1 -1
  115. package/dist/shared/status-view.d.ts +1 -0
  116. package/dist/shared/status-view.d.ts.map +1 -1
  117. package/dist/shared/test-db.d.ts +13 -0
  118. package/dist/shared/test-db.d.ts.map +1 -0
  119. package/dist/{storage-tags-96vyd6ra.js → storage-tags-kdb4qsyq.js} +4 -5
  120. package/dist/test-preload.d.ts +2 -0
  121. package/dist/test-preload.d.ts.map +1 -0
  122. package/dist/{transform-postprocess-phase-a7ety10n.js → transform-postprocess-phase-1bg25094.js} +32 -33
  123. package/dist/v2/auto-search-worker.js +5 -5
  124. package/dist/v2/chunk-embedding-write-worker.js +14 -14
  125. package/dist/v2/{compaction-marker-candidates-y737qb1v.js → compaction-marker-candidates-re14353a.js} +2 -2
  126. package/dist/v2/compaction-marker-candidates-worker.js +1 -1
  127. package/dist/v2/{compartment-chunk-embedding-nj5nrnbj.js → compartment-chunk-embedding-0pxsrzrt.js} +7 -7
  128. package/dist/v2/{context-9x7mnb7x.js → context-qkr7z6d0.js} +99 -63
  129. package/dist/v2/{derive-budgets-b5cgrtp8.js → derive-budgets-w0815q82.js} +3 -3
  130. package/dist/v2/embedding-backfill-x1zpc04f.js +27 -0
  131. package/dist/v2/embedding-worker-process.js +1 -1
  132. package/dist/v2/embedding-worker.js +5 -5
  133. package/dist/v2/hidden-completion.d.ts.map +1 -1
  134. package/dist/v2/{history-owner-fpka43cn.js → history-owner-ep91wgqj.js} +2 -2
  135. package/dist/v2/hooks/context.d.ts.map +1 -1
  136. package/dist/v2/hooks/usage-persist.d.ts +1 -1
  137. package/dist/v2/hooks/usage-persist.d.ts.map +1 -1
  138. package/dist/v2/hooks/usage-reading.d.ts +3 -0
  139. package/dist/v2/hooks/usage-reading.d.ts.map +1 -1
  140. package/dist/v2/{logger-4cj6d03m.js → logger-xnscpj6w.js} +1 -1
  141. package/dist/v2/{message-fts-rowid-map-qe7cpksd.js → message-fts-rowid-map-57jh6xpb.js} +4 -4
  142. package/dist/v2/{message-index-bounded-hctgp22r.js → message-index-bounded-a36rw93p.js} +12 -12
  143. package/dist/v2/{message-time-backfill-0c4h7sg6.js → message-time-backfill-baxebka0.js} +2 -2
  144. package/dist/v2/migration-worker.js +11 -11
  145. package/dist/v2/{project-embedding-registry-ek0cy0d5.js → project-embedding-registry-v2fxrs8b.js} +12 -12
  146. package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
  147. package/dist/v2/{read-session-chunk-zknadvjr.js → read-session-chunk-hzhxvhyv.js} +10 -10
  148. package/dist/v2/{read-session-raw-yss2ev98.js → read-session-raw-3e482h3c.js} +2 -2
  149. package/dist/v2/{recomp-orchestrator-m5w0eqke.js → recomp-orchestrator-yzr49pd0.js} +32 -32
  150. package/dist/v2/{render-89asy54r.js → render-rhaevxv1.js} +21 -21
  151. package/dist/v2/{safe-notification-target-gphhast7.js → safe-notification-target-9r79xnbt.js} +2 -2
  152. package/dist/v2/{search-archive-axz2gbdb.js → search-archive-9924fyk8.js} +12 -12
  153. package/dist/v2/{search-kdtja5rx.js → search-ggvexvv7.js} +23 -23
  154. package/dist/v2/{send-session-notification-na3q825m.js → send-session-notification-95p89k7q.js} +5 -5
  155. package/dist/v2/{server-yyqmvbvv.js → server-016a1whm.js} +161 -102
  156. package/dist/v2/{server-z3tyd1mx.js → server-0k586y7d.js} +3 -3
  157. package/dist/v2/{server-p9s40wfa.js → server-0ms13pc8.js} +3 -0
  158. package/dist/v2/{server-e3m10ds0.js → server-16kfxcxj.js} +4 -4
  159. package/dist/v2/{server-nn4hbymt.js → server-3bfc26r7.js} +9 -9
  160. package/dist/v2/{server-7vb38e51.js → server-3jc6qmdz.js} +1 -1
  161. package/dist/v2/{server-jra7awr5.js → server-3qf9n5ck.js} +11 -11
  162. package/dist/v2/{server-69m30b21.js → server-3yk44ddz.js} +1 -1
  163. package/dist/v2/{server-2gjqhmn9.js → server-4h4acntc.js} +27 -11
  164. package/dist/v2/{server-3schkz95.js → server-58h6rrnx.js} +4 -4
  165. package/dist/v2/{server-af1rmkyn.js → server-5kgesxck.js} +2 -2
  166. package/dist/v2/{server-mfn1yf9d.js → server-7vrtk78d.js} +1 -1
  167. package/dist/v2/{server-27kccwe7.js → server-88yvx6r9.js} +63 -12
  168. package/dist/v2/{server-f0j864ma.js → server-91gb0vh8.js} +1 -1
  169. package/dist/v2/{server-131h608x.js → server-966dq3pd.js} +2 -2
  170. package/dist/v2/{server-jb6tjyeb.js → server-bb6kf05j.js} +23 -20
  171. package/dist/v2/{server-sg2qjkrb.js → server-brsx45r6.js} +6 -4
  172. package/dist/v2/{server-gwxys0d0.js → server-c8z2grq0.js} +1 -1
  173. package/dist/v2/{server-y8n33d9j.js → server-g61hgy1y.js} +4 -4
  174. package/dist/v2/{server-zahgxer8.js → server-jxrqsn84.js} +3 -3
  175. package/dist/v2/{server-2j87594q.js → server-kgq2e2hh.js} +2 -2
  176. package/dist/v2/{server-ddw42d76.js → server-mxsy9h1d.js} +2 -2
  177. package/dist/v2/{server-qmmkhz2z.js → server-np27dgyt.js} +1 -1
  178. package/dist/v2/{server-jqn7q7tm.js → server-q93jdtz8.js} +5 -5
  179. package/dist/v2/{server-dcws5831.js → server-qp5sj6n5.js} +2 -2
  180. package/dist/v2/{server-7be0ersd.js → server-rcchadw0.js} +3 -3
  181. package/dist/v2/{server-b3r080cm.js → server-rz5jnhnv.js} +1 -1
  182. package/dist/v2/{server-zt1m5rwj.js → server-sa1fdt41.js} +1 -1
  183. package/dist/v2/{server-wa4qhryh.js → server-sb55ddgn.js} +5 -4
  184. package/dist/v2/{server-4x7n5qz7.js → server-scp3y4dh.js} +13 -11
  185. package/dist/v2/{server-pej5rnye.js → server-sgn61hht.js} +2 -2
  186. package/dist/v2/{server-ypf1ap0v.js → server-t8n27rbt.js} +1 -1
  187. package/dist/v2/{server-sefxj8k1.js → server-tmf0ayqp.js} +1 -1
  188. package/dist/v2/{server-sr8tf5dt.js → server-vjadwb3j.js} +6 -5
  189. package/dist/v2/{server-bez34e60.js → server-vqq3g1t7.js} +4 -4
  190. package/dist/v2/{server-tpt7bwq8.js → server-ww7xbxxf.js} +1 -1
  191. package/dist/v2/server.js +6 -6
  192. package/dist/v2/{storage-tags-xq8hjqkf.js → storage-tags-rzv7y0n3.js} +4 -4
  193. package/dist/v2/{v2-archive-reader-ky1wqcws.js → v2-archive-reader-5ggewg8q.js} +1 -1
  194. package/dist/v2/{wrapup-orchestrator-6wt67saz.js → wrapup-orchestrator-36c5wyvq.js} +32 -32
  195. package/dist/{v2-archive-reader-665x2x4d.js → v2-archive-reader-gx5ke1d7.js} +1 -1
  196. package/dist/wrapup-orchestrator-ya31knav.js +55 -0
  197. package/package.json +1 -1
  198. package/src/config/index.test.ts +20 -0
  199. package/src/config/project-security.test.ts +5 -1
  200. package/src/config/project-security.ts +4 -0
  201. package/src/config/schema/magic-context.test.ts +43 -0
  202. package/src/config/schema/magic-context.ts +19 -0
  203. package/src/shared/data-path.test.ts +104 -56
  204. package/src/shared/data-path.ts +30 -30
  205. package/src/shared/hidden-model-cooldown.test.ts +117 -0
  206. package/src/shared/hidden-model-cooldown.ts +123 -0
  207. package/src/shared/model-suggestion-retry.test.ts +53 -76
  208. package/src/shared/model-suggestion-retry.ts +38 -53
  209. package/src/shared/provider-response-completion.test.ts +49 -0
  210. package/src/shared/provider-response-completion.ts +64 -0
  211. package/src/shared/rpc-types.ts +1 -0
  212. package/src/shared/startup-maintenance-policy.test.ts +115 -0
  213. package/src/shared/status-detail-text.test.ts +7 -0
  214. package/src/shared/status-summary.ts +3 -0
  215. package/src/shared/status-view-check.ts +1 -0
  216. package/src/shared/status-view.test.ts +15 -0
  217. package/src/shared/status-view.ts +11 -1
  218. package/src/shared/test-db.test.ts +84 -0
  219. package/src/shared/test-db.ts +36 -0
  220. package/dist/embedding-backfill-kpy5shsa.js +0 -28
  221. package/dist/index-g2q4htwp.js +0 -146
  222. package/dist/render-mnqc74ar.js +0 -44
  223. package/dist/v2/embedding-backfill-360efh1t.js +0 -27
  224. package/dist/wrapup-orchestrator-7kmb3jf9.js +0 -56
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-ak11t3gm.js";
3
+ } from "./index-0tz2fzpq.js";
4
4
  import {
5
5
  stableStringify
6
- } from "./index-9wnbnx8f.js";
6
+ } from "./index-a6aqpfp6.js";
7
7
 
8
8
  // src/shared/bounded-session-map.ts
9
9
  class BoundedSessionMap {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-ak11t3gm.js";
3
+ } from "./index-0tz2fzpq.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-pavzsdc6.js";
7
7
  import {
8
8
  log2
9
- } from "./index-jrfre9ah.js";
9
+ } from "./index-82dfe8en.js";
10
10
  import {
11
11
  inRootAsyncContext2
12
12
  } from "./index-gzy5w8ya.js";
@@ -6880,6 +6880,7 @@ var BaseEmbeddingConfigSchema = object({
6880
6880
  query_instruction: union([string(), literal(false)]).optional().describe("OpenAI-compatible query prefix override. A string is prepended verbatim to search queries; false disables the built-in model-family instruction. Qwen3-Embedding, gte-Qwen instruct, e5 instruct, and Nomic families have built-in recipes. Query-only changes do not re-embed stored content. User-level only; project values are ignored."),
6881
6881
  document_prefix: string().optional().describe("OpenAI-compatible stored-document prefix override, prepended verbatim. Defaults to the model-family recipe (empty for Qwen3/gte/e5 instruct; 'search_document: ' for Nomic). Changing it changes stored vectors and triggers re-embedding. User-level only; project values are ignored."),
6882
6882
  truncate: string().optional().describe("Optional truncate mode sent in the embedding request body (e.g. NVIDIA NIM accepts 'NONE' | 'START' | 'END'). Omitted from the request when unset."),
6883
+ dimensions: number().int().min(1).max(8192).optional().describe("Optional output width for Matryoshka embedding models (e.g. Qwen3-Embedding-8B accepts 768 | 1024 | 2048 | 4096; OpenAI text-embedding-3-* accept smaller widths than native). Sent as the OpenAI-compatible `dimensions` request field. Omitted from the request when unset, so the endpoint default applies. Changing it changes the produced vectors and folds into the embedding model identity, so switching widths re-embeds rather than mixing vector spaces. Not supported for the local provider, and ignored from project config like the other embedding fields (a repository cannot choose how private text is embedded)."),
6883
6884
  max_input_tokens: number().int().positive().optional().describe("Optional maximum input tokens for chunk embeddings. Defaults conservatively to 512 when omitted."),
6884
6885
  local_runtime: _enum(["auto", "native", "wasm"]).default("auto").describe("Local provider only: ONNX runtime selection. 'auto' uses native under Node and uses WASM under Bun versions before 1.4.0, where Bun's NAPI teardown race can panic on quit; native is restored automatically on Bun 1.4.0+. Inference runs in a dedicated worker after disabling POSIX telemetry in the native process environment. Compiled Bun hosts and hosts without a verified in-process opt-out use a subprocess instead. Windows native ONNX emits OS-controlled ETW diagnostics, not direct uploads. On Bun before 1.4.0, even explicit 'native' uses WASM because native worker teardown can crash the process. Set 'wasm' to avoid loading the native addon on newer hosts too."),
6885
6886
  local_dtype: _enum([
@@ -6928,6 +6929,7 @@ var EmbeddingConfigSchema = BaseEmbeddingConfigSchema.transform((data) => {
6928
6929
  ...model ? { model } : {},
6929
6930
  ...endpoint ? { endpoint } : {},
6930
6931
  ...apiKey ? { api_key: apiKey } : {},
6932
+ ...data.dimensions ? { dimensions: data.dimensions } : {},
6931
6933
  ...inputType ? { input_type: inputType } : {},
6932
6934
  ...queryInputType ? { query_input_type: queryInputType } : {},
6933
6935
  ...data.query_instruction !== undefined ? { query_instruction: data.query_instruction } : {},
@@ -6954,6 +6956,7 @@ var EmbeddingConfigSchema = BaseEmbeddingConfigSchema.transform((data) => {
6954
6956
  provider: "openai-compatible",
6955
6957
  model: data.model?.trim() ?? "",
6956
6958
  endpoint: data.endpoint?.trim() ?? "",
6959
+ ...data.dimensions ? { dimensions: data.dimensions } : {},
6957
6960
  ...apiKey ? { api_key: apiKey } : {},
6958
6961
  ...inputType ? { input_type: inputType } : {},
6959
6962
  ...queryInputType ? { query_input_type: queryInputType } : {},
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  importPluginModule,
3
3
  log2
4
- } from "./index-jrfre9ah.js";
4
+ } from "./index-82dfe8en.js";
5
5
  import {
6
6
  sendStatusNotification2
7
- } from "./index-25ka1jza.js";
7
+ } from "./index-r9agn061.js";
8
8
  import {
9
9
  formatConflictShort
10
- } from "./index-hacf2tyx.js";
10
+ } from "./index-reyws9fy.js";
11
11
 
12
12
  // src/plugin/conflict-warning-hook.ts
13
13
  import { existsSync, readFileSync } from "node:fs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-ak11t3gm.js";
3
+ } from "./index-0tz2fzpq.js";
4
4
  import {
5
5
  expandToolPart,
6
6
  visitRawSessionMessages2,
7
7
  readRawSessionMessageById2
8
- } from "./index-rvmhyk89.js";
8
+ } from "./index-07rp6xcn.js";
9
9
  import {
10
10
  getTagById2
11
- } from "./index-4wpfbzks.js";
11
+ } from "./index-bkg4hdyh.js";
12
12
 
13
13
  // src/tools/ctx-expand/render.ts
14
14
  import { createHash } from "node:crypto";
@@ -5,7 +5,7 @@ import {
5
5
  tagIdentityRevisionKey,
6
6
  deleteTagIdentityRevisions,
7
7
  getTableColumnNames
8
- } from "./index-9wnbnx8f.js";
8
+ } from "./index-a6aqpfp6.js";
9
9
  import {
10
10
  invalidateAutoEmbedSession,
11
11
  drainBackgroundBatches
@@ -15,12 +15,10 @@ import {
15
15
  } from "./index-pavzsdc6.js";
16
16
  import {
17
17
  getDataDir,
18
- getMagicContextStorageDir
19
- } from "./index-g2q4htwp.js";
20
- import {
18
+ getMagicContextStorageDir,
21
19
  log2,
22
20
  sessionLog2
23
- } from "./index-jrfre9ah.js";
21
+ } from "./index-82dfe8en.js";
24
22
  import {
25
23
  prepareCachedStatement2,
26
24
  withSqliteBackgroundWriter2,
@@ -28,14 +26,14 @@ import {
28
26
  } from "./index-gzy5w8ya.js";
29
27
  import {
30
28
  deleteUnmappedMessageFtsRows2
31
- } from "./index-h9m41624.js";
29
+ } from "./index-2ny9xwdn.js";
32
30
  import {
33
31
  deleteChunkEmbedBackoffForSession2
34
- } from "./index-qcz1fy7h.js";
32
+ } from "./index-hexdee98.js";
35
33
  import {
36
34
  isPidAlive,
37
35
  readProcessStartTime
38
- } from "./index-2p37txes.js";
36
+ } from "./index-ga5q492k.js";
39
37
  import {
40
38
  MERGED_REASONING_PARTS_PREFIX,
41
39
  decodeMergedReasoningParts,
@@ -63,23 +61,23 @@ import {
63
61
  serializeProcessedImageMarkers,
64
62
  getPendingPiCompactionMarkerState,
65
63
  logPiCompactionMarkerClear
66
- } from "./index-rvmhyk89.js";
64
+ } from "./index-07rp6xcn.js";
67
65
  import {
68
66
  stripTagPrefix,
69
67
  isRecord,
70
68
  providerVisibleMessage
71
- } from "./index-4wpfbzks.js";
69
+ } from "./index-bkg4hdyh.js";
72
70
  import {
73
71
  withReadOnlySessionDb
74
- } from "./index-brj6was5.js";
72
+ } from "./index-em92bp7f.js";
75
73
  import {
76
74
  BoundedSessionMap,
77
75
  getMeasuredToolDefinitionTokens
78
- } from "./index-smtbdmc3.js";
76
+ } from "./index-hsv31e69.js";
79
77
  import {
80
78
  layoutLkgPrefix,
81
79
  assembleLkgPrefix
82
- } from "./index-nj360hcs.js";
80
+ } from "./index-pb8ysnq2.js";
83
81
  import {
84
82
  gaDatabasePath2,
85
83
  V2StoreReader2
@@ -96,7 +94,7 @@ import {
96
94
  } from "./index-avwt563y.js";
97
95
  import {
98
96
  logSlowWriteTransaction
99
- } from "./index-fxbk7gk3.js";
97
+ } from "./index-tad3can2.js";
100
98
  import {
101
99
  ensurePrivateStorageDirectorySync,
102
100
  writeStorageFileSync,
@@ -669,6 +667,57 @@ import { createHash as createHash6 } from "node:crypto";
669
667
  import { createHash as createHash4 } from "node:crypto";
670
668
 
671
669
  // src/shared/provider-response-completion.ts
670
+ var SERVER_FALLBACK_USAGE_SIGNATURE_PREFIX = "cortexkit-server-fallback-usage-v1:";
671
+ var SERVER_FALLBACK_SIGNATURE_PREFIX = "cortexkit-server-fallback-v1:";
672
+ function parseServerFallbackInputTokens(json) {
673
+ try {
674
+ const payload = JSON.parse(json);
675
+ if (!isRecord(payload) || !Array.isArray(payload.iterations))
676
+ return;
677
+ let last;
678
+ for (const entry of payload.iterations) {
679
+ if (isRecord(entry) && entry.type === "fallback_message")
680
+ last = entry;
681
+ }
682
+ if (!isRecord(last))
683
+ return;
684
+ const counts = [
685
+ last.input_tokens,
686
+ last.cache_read_input_tokens ?? 0,
687
+ last.cache_creation_input_tokens ?? 0
688
+ ];
689
+ if (!counts.every((count) => typeof count === "number" && Number.isFinite(count) && count >= 0))
690
+ return;
691
+ const inputTokens = counts.reduce((sum, count) => sum + Number(count), 0);
692
+ return Number.isFinite(inputTokens) ? inputTokens : undefined;
693
+ } catch {
694
+ return;
695
+ }
696
+ }
697
+ function readServerFallbackUsage(content) {
698
+ if (!Array.isArray(content))
699
+ return;
700
+ let boundary = false;
701
+ let invalidUsage = false;
702
+ for (const part of content) {
703
+ if (!isRecord(part) || part.type !== "reasoning")
704
+ continue;
705
+ for (const location of [part.native, part.state]) {
706
+ if (!isRecord(location) || typeof location.signature !== "string")
707
+ continue;
708
+ const signature = location.signature;
709
+ if (signature.startsWith(SERVER_FALLBACK_USAGE_SIGNATURE_PREFIX)) {
710
+ const inputTokens = parseServerFallbackInputTokens(signature.slice(SERVER_FALLBACK_USAGE_SIGNATURE_PREFIX.length));
711
+ if (inputTokens !== undefined)
712
+ return { kind: "usage", inputTokens };
713
+ invalidUsage = true;
714
+ } else if (signature.startsWith(SERVER_FALLBACK_SIGNATURE_PREFIX)) {
715
+ boundary = true;
716
+ }
717
+ }
718
+ }
719
+ return boundary || invalidUsage ? { kind: "boundary", invalidUsage } : undefined;
720
+ }
672
721
  function providerResponseFailed(input) {
673
722
  if (input.error !== undefined && input.error !== null && input.error !== "")
674
723
  return true;
@@ -4595,4 +4644,4 @@ var ERROR_CLASSES = new Set([
4595
4644
  "permission_denied",
4596
4645
  "unknown"
4597
4646
  ]);
4598
- export { advanceSessionActivity, observeSessionActivity, backfillSessionActivity, COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, createDbLkgPersistence, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, lkgInputIdentity, registerLkgPersistence, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
4647
+ export { advanceSessionActivity, observeSessionActivity, backfillSessionActivity, COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, cancelAutoSearchWork, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, createDbLkgPersistence, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, lkgInputIdentity, registerLkgPersistence, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
@@ -3,12 +3,12 @@ import {
3
3
  } from "./index-fr0wbhdn.js";
4
4
  import {
5
5
  log2
6
- } from "./index-jrfre9ah.js";
6
+ } from "./index-82dfe8en.js";
7
7
  import {
8
8
  ensureColumn,
9
9
  healAllNullColumns,
10
10
  installV95PerfSchema
11
- } from "./index-9wnbnx8f.js";
11
+ } from "./index-a6aqpfp6.js";
12
12
  import {
13
13
  resolveOpenCodeDbPath,
14
14
  openCodeDbPathExists,
@@ -20,10 +20,10 @@ import {
20
20
  import {
21
21
  normalizeStoredProjectPath,
22
22
  storedPathBelongsToIdentity
23
- } from "./index-txs8tce6.js";
23
+ } from "./index-0k283v27.js";
24
24
  import {
25
25
  logSlowWriteTransaction
26
- } from "./index-fxbk7gk3.js";
26
+ } from "./index-tad3can2.js";
27
27
 
28
28
  // src/features/magic-context/lkg-prefix-chunks.ts
29
29
  import { createHash } from "node:crypto";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./index-pavzsdc6.js";
4
4
  import {
5
5
  isUserHomeDirectory
6
- } from "./index-txs8tce6.js";
6
+ } from "./index-0k283v27.js";
7
7
  import {
8
8
  logSlowWriteTransaction
9
- } from "./index-fxbk7gk3.js";
9
+ } from "./index-tad3can2.js";
10
10
 
11
11
  // src/features/magic-context/session-project-storage.ts
12
12
  var SESSION_CHUNK_REPAIR_BATCH_SIZE = 100;
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  importPluginModule,
6
6
  sessionLog2
7
- } from "./index-jrfre9ah.js";
7
+ } from "./index-82dfe8en.js";
8
8
  import {
9
9
  isDefaultSessionTitle2
10
- } from "./index-fw42ms3m.js";
10
+ } from "./index-gz001bx7.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./index-brj6was5.js";
13
+ } from "./index-em92bp7f.js";
14
14
  import {
15
15
  getErrorMessage
16
16
  } from "./index-y8v6yerm.js";
@@ -142,7 +142,7 @@ async function sendIgnoredMessageNow(client, sessionId, text, params, forcePersi
142
142
  holdIgnoredNotification({ client, sessionId, text, params, forcePersist }, "during target checks");
143
143
  return "queued";
144
144
  }
145
- const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-wztd7bgk.js"));
145
+ const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-mx5khyxf.js"));
146
146
  if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
147
147
  sessionLog2(sessionId, "notification skipped (session not titled yet)");
148
148
  return "skipped";
@@ -1,19 +1,17 @@
1
1
  import {
2
2
  DEFAULT_LOCAL_EMBEDDING_MODEL
3
- } from "./index-4dpvnp8k.js";
3
+ } from "./index-jjy5a5w0.js";
4
4
  import {
5
5
  getSynapseLaneIdentity
6
- } from "./index-dj2p8653.js";
6
+ } from "./index-hsyczpn7.js";
7
7
  import {
8
8
  getHarness2
9
9
  } from "./index-pavzsdc6.js";
10
10
  import {
11
- getMagicContextStorageDir
12
- } from "./index-g2q4htwp.js";
13
- import {
11
+ getMagicContextStorageDir,
14
12
  importPluginModule,
15
13
  log2
16
- } from "./index-jrfre9ah.js";
14
+ } from "./index-82dfe8en.js";
17
15
  import {
18
16
  inRootAsyncContext2
19
17
  } from "./index-gzy5w8ya.js";
@@ -545,6 +543,7 @@ function getEmbeddingProviderIdentity(config) {
545
543
  throw new Error("Unknown embedding provider");
546
544
  }
547
545
  const truncate = config.provider === "openai-compatible" ? config.truncate?.trim() : undefined;
546
+ const dimensions = config.provider === "openai-compatible" ? config.dimensions : undefined;
548
547
  const documentPrefix = config.provider === "openai-compatible" ? resolveEmbeddingTextPrefixes(config.model, config.query_instruction, config.document_prefix).documentPrefix : "";
549
548
  const localDtype = config.provider === "local" && config.local_dtype && config.local_dtype !== "fp32" ? config.local_dtype : undefined;
550
549
  const localPooling = config.provider === "local" ? getCachedLocalEmbeddingPooling(config.model?.trim() || DEFAULT_LOCAL_EMBEDDING_MODEL) : null;
@@ -556,7 +555,8 @@ function getEmbeddingProviderIdentity(config) {
556
555
  apiKeyPresent: Boolean(config.api_key?.trim()),
557
556
  inputType: config.input_type?.trim() || "",
558
557
  ...documentPrefix ? { documentPrefix } : {},
559
- ...truncate ? { truncate } : {}
558
+ ...truncate ? { truncate } : {},
559
+ ...dimensions ? { dimensions } : {}
560
560
  } : {
561
561
  provider: "local",
562
562
  model: config.model?.trim() || DEFAULT_LOCAL_EMBEDDING_MODEL,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-sd3egckz.js";
4
4
  import {
5
5
  log2
6
- } from "./index-jrfre9ah.js";
6
+ } from "./index-82dfe8en.js";
7
7
 
8
8
  // src/shared/conflict-detector.ts
9
9
  import { homedir as homedir2 } from "node:os";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  log2,
6
6
  sessionLog2
7
- } from "./index-jrfre9ah.js";
7
+ } from "./index-82dfe8en.js";
8
8
  import {
9
9
  inRootAsyncContext2,
10
10
  getSqliteDatabasePath2,
@@ -13,10 +13,10 @@ import {
13
13
  } from "./index-gzy5w8ya.js";
14
14
  import {
15
15
  runSessionWarmupWorker
16
- } from "./index-xa9mmq6c.js";
16
+ } from "./index-36wseasx.js";
17
17
  import {
18
18
  scheduleAfterBootQuiet
19
- } from "./index-txs8tce6.js";
19
+ } from "./index-0k283v27.js";
20
20
  import {
21
21
  cleanSearchText,
22
22
  hintKeywordRelevance,
@@ -28,7 +28,7 @@ import {
28
28
  clearIndexedMessages,
29
29
  indexSingleMessage,
30
30
  indexMessagesAfterOrdinal
31
- } from "./index-fgft4qjn.js";
31
+ } from "./index-hkveze74.js";
32
32
 
33
33
  // src/features/magic-context/message-index-async.ts
34
34
  var indexCancellations = new Map;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-jrfre9ah.js";
3
+ } from "./index-82dfe8en.js";
4
4
 
5
5
  // src/shared/write-transaction-timing.ts
6
6
  var SLOW_WRITE_TRANSACTION_THRESHOLD_MS = 1000;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-jrfre9ah.js";
3
+ } from "./index-82dfe8en.js";
4
4
  import {
5
5
  COMPARTMENT_LEASE_RENEWAL_MS,
6
6
  acquireCompartmentLease,
@@ -8,7 +8,7 @@ import {
8
8
  releaseCompartmentLeaseBestEffort,
9
9
  getCompartments,
10
10
  getLastCompartmentEndMessage
11
- } from "./index-ta87fpfs.js";
11
+ } from "./index-n0twfvah.js";
12
12
  import {
13
13
  inRootAsyncContext2
14
14
  } from "./index-gzy5w8ya.js";
@@ -20,7 +20,7 @@ import {
20
20
  getHistorianFailureState,
21
21
  clearEmergencyRecovery,
22
22
  prepareRawSessionOrdinals2
23
- } from "./index-rvmhyk89.js";
23
+ } from "./index-07rp6xcn.js";
24
24
  import {
25
25
  pushNotification2
26
26
  } from "./index-x8a7jmkh.js";
@@ -32,14 +32,14 @@ import {
32
32
  getActiveCompartmentRun,
33
33
  markActiveCompartmentRunPublished,
34
34
  registerActiveCompartmentRun
35
- } from "./index-zetm0ayn.js";
35
+ } from "./index-h8g08nxs.js";
36
36
  import {
37
37
  sendStatusNotification2
38
- } from "./index-25ka1jza.js";
38
+ } from "./index-r9agn061.js";
39
39
  import {
40
40
  setRecompStarting2,
41
41
  setRecompTerminal2
42
- } from "./index-trkxkgmd.js";
42
+ } from "./index-97bjd14c.js";
43
43
 
44
44
  // src/hooks/magic-context/wrapup-orchestrator.ts
45
45
  import * as crypto from "node:crypto";
@@ -7,7 +7,7 @@ import {
7
7
  getTemporalDecisions,
8
8
  freezeTemporalDecisions,
9
9
  stableStringify
10
- } from "./index-9wnbnx8f.js";
10
+ } from "./index-a6aqpfp6.js";
11
11
  import {
12
12
  protectedToolTagNumbers,
13
13
  stripPersistedAssistantText,
@@ -74,19 +74,17 @@ import {
74
74
  adoptNullOwnerToolTag2,
75
75
  getCandidateToolOwners2,
76
76
  pickNearestPriorOwner2
77
- } from "./index-4wpfbzks.js";
77
+ } from "./index-bkg4hdyh.js";
78
78
  import {
79
79
  textMentionsRecentCommit,
80
80
  hasMeaningfulUserText2,
81
81
  estimateTokens
82
- } from "./index-ak11t3gm.js";
83
- import {
84
- getMagicContextStorageDir
85
- } from "./index-g2q4htwp.js";
82
+ } from "./index-0tz2fzpq.js";
86
83
  import {
84
+ getMagicContextStorageDir,
87
85
  log2,
88
86
  sessionLog2
89
- } from "./index-jrfre9ah.js";
87
+ } from "./index-82dfe8en.js";
90
88
  import {
91
89
  inRootAsyncContext2,
92
90
  getTagIdentityWriteGeneration2,
@@ -102,7 +100,7 @@ import {
102
100
  } from "./index-1d042x6w.js";
103
101
  import {
104
102
  runSessionWarmupWorker
105
- } from "./index-xa9mmq6c.js";
103
+ } from "./index-36wseasx.js";
106
104
  import {
107
105
  getMaxM0MutationId,
108
106
  getLastCompartmentEndMessage,
@@ -121,11 +119,11 @@ import {
121
119
  saveSourceContent,
122
120
  replaceSourceContent,
123
121
  getSourceContents
124
- } from "./index-ta87fpfs.js";
122
+ } from "./index-n0twfvah.js";
125
123
  import {
126
124
  cleanSearchText,
127
125
  matchedSearchSnippet
128
- } from "./index-fgft4qjn.js";
126
+ } from "./index-hkveze74.js";
129
127
  import {
130
128
  stripSystemInjection,
131
129
  isTextPart,
@@ -223,15 +221,15 @@ import {
223
221
  extractToolCallObservation,
224
222
  ToolMutationBatch,
225
223
  createToolDropTarget
226
- } from "./index-rvmhyk89.js";
224
+ } from "./index-07rp6xcn.js";
227
225
  import {
228
226
  isValidLanguageCode
229
- } from "./index-4dpvnp8k.js";
227
+ } from "./index-jjy5a5w0.js";
230
228
  import {
231
229
  getProjectEmbeddingSnapshot2,
232
230
  embedTextForProject2,
233
231
  embedBatchForProject2
234
- } from "./index-s79g172v.js";
232
+ } from "./index-bamnjp2t.js";
235
233
  import {
236
234
  isEmbeddingHostBusy2
237
235
  } from "./index-qt1qqasc.js";
@@ -239,15 +237,15 @@ import {
239
237
  getMessageIndexEpoch,
240
238
  isMessageIndexSearchable,
241
239
  createAutoSearchDiagnostics
242
- } from "./index-cgsmttyj.js";
240
+ } from "./index-s131svmx.js";
243
241
  import {
244
242
  openCodeDbExists,
245
243
  withReadOnlySessionDb,
246
244
  getMessageTimesFromOpenCodeDb
247
- } from "./index-brj6was5.js";
245
+ } from "./index-em92bp7f.js";
248
246
  import {
249
247
  BoundedSessionMap
250
- } from "./index-smtbdmc3.js";
248
+ } from "./index-hsv31e69.js";
251
249
  import {
252
250
  compareOpenCodeMessagesByCanonicalOrder,
253
251
  startCompactionMarkerCandidatePreparation,
@@ -268,10 +266,10 @@ import {
268
266
  peekNoteNudgeText,
269
267
  markNoteNudgeDelivered,
270
268
  getActiveCompartmentRun
271
- } from "./index-zetm0ayn.js";
269
+ } from "./index-h8g08nxs.js";
272
270
  import {
273
271
  userFacingFailureCode
274
- } from "./index-sd2s4t4p.js";
272
+ } from "./index-cwj6qhmf.js";
275
273
  import {
276
274
  normalizeProtectedToolName,
277
275
  mergeProtectedTools
@@ -281,7 +279,7 @@ import {
281
279
  } from "./index-y8v6yerm.js";
282
280
  import {
283
281
  logSlowWriteTransaction
284
- } from "./index-fxbk7gk3.js";
282
+ } from "./index-tad3can2.js";
285
283
 
286
284
  // src/features/magic-context/tagger.ts
287
285
  var TOOL_COMPOSITE_KEY_SEP = "\x00";