@cortexkit/opencode-magic-context 0.49.95 → 0.49.97

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 (208) hide show
  1. package/dist/{announcement-4ynkaf0d.js → announcement-8nj2jd87.js} +5 -5
  2. package/dist/auto-search-worker.js +5 -5
  3. package/dist/chunk-embedding-write-worker.js +16 -16
  4. package/dist/{compaction-marker-candidates-1ndjqh9k.js → compaction-marker-candidates-a4b0anvv.js} +3 -3
  5. package/dist/compaction-marker-candidates-worker.js +1 -1
  6. package/dist/{compartment-chunk-embedding-4nn3hsw2.js → compartment-chunk-embedding-re2cw7y3.js} +8 -8
  7. package/dist/config/removed-agent-config.d.ts +1 -1
  8. package/dist/config/removed-agent-config.d.ts.map +1 -1
  9. package/dist/config/schema/magic-context.d.ts +0 -75
  10. package/dist/config/schema/magic-context.d.ts.map +1 -1
  11. package/dist/{conflict-warning-hook-exf96bpt.js → conflict-warning-hook-wcq55y61.js} +8 -8
  12. package/dist/{context-h9x9m2p3.js → context-br04s0b6.js} +86 -104
  13. package/dist/{derive-budgets-hzzq71rm.js → derive-budgets-g1sy72e8.js} +5 -5
  14. package/dist/embedding-backfill-pdymqbnh.js +29 -0
  15. package/dist/embedding-worker-process.js +2 -2
  16. package/dist/embedding-worker.js +8 -8
  17. package/dist/features/magic-context/dreamer/token-budget.d.ts +2 -2
  18. package/dist/features/magic-context/dreamer/token-budget.d.ts.map +1 -1
  19. package/dist/features/magic-context/search-rerank.d.ts +2 -2
  20. package/dist/features/magic-context/search-rerank.d.ts.map +1 -1
  21. package/dist/features/magic-context/search.d.ts.map +1 -1
  22. package/dist/features/magic-context/storage-native-replay.d.ts +7 -0
  23. package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
  24. package/dist/{history-owner-xqfsvf9k.js → history-owner-74826t4n.js} +3 -3
  25. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/inject-compartments.d.ts +6 -1
  28. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  29. package/dist/hooks/magic-context/tag-messages.d.ts +11 -1
  30. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  31. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +2 -1
  32. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +1 -0
  34. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  35. package/dist/hooks/magic-context/transform.d.ts +2 -0
  36. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  37. package/dist/{index-3ywyr4zx.js → index-0bjj9yf3.js} +2 -2
  38. package/dist/{index-7skgrbsg.js → index-0sqhg9nf.js} +41 -21
  39. package/dist/{index-nxxzeq4y.js → index-0ve29s6f.js} +1 -1
  40. package/dist/{index-ywrz4wy2.js → index-3fhb0j32.js} +1 -1
  41. package/dist/{index-gqf8r04r.js → index-3n4j5rqc.js} +1 -1
  42. package/dist/{index-xsqw8kbd.js → index-45qgkg8j.js} +2 -2
  43. package/dist/{index-5df2fw5b.js → index-6mryx739.js} +1 -1
  44. package/dist/{index-tedck05r.js → index-7m2tnk8q.js} +10 -10
  45. package/dist/{index-r4y0dczp.js → index-7sdns2ww.js} +2 -2
  46. package/dist/{index-mjy2k9jr.js → index-880a24vd.js} +1 -1
  47. package/dist/{index-esacb9d0.js → index-89bkkgcn.js} +4 -4
  48. package/dist/{index-s32f8y67.js → index-89xg64wb.js} +2 -2
  49. package/dist/{index-pc49a7zt.js → index-8v1brm5n.js} +13 -11
  50. package/dist/{index-qmm8xpbc.js → index-910gahfb.js} +6 -6
  51. package/dist/{index-47hst5me.js → index-9jvxq5rt.js} +4 -4
  52. package/dist/{index-832w615x.js → index-azkfw78y.js} +1 -1
  53. package/dist/{index-wh9fxds5.js → index-c205x7xd.js} +1 -1
  54. package/dist/{index-mg9s2rc3.js → index-cpbr0xvk.js} +2 -2
  55. package/dist/{index-cr483vx6.js → index-dj64gzg5.js} +2 -2
  56. package/dist/{index-jba6ny4m.js → index-dnpcv1rg.js} +4 -4
  57. package/dist/{index-z4p0ry94.js → index-dt7cyqfe.js} +2 -1
  58. package/dist/{index-tm799pq7.js → index-e6ay1gez.js} +1 -1
  59. package/dist/{index-j7n64sg4.js → index-fgw241hh.js} +2 -2
  60. package/dist/{index-yzzxb5e1.js → index-h7kta6cn.js} +3 -3
  61. package/dist/{index-q7q6qp1f.js → index-hedgz8an.js} +1 -1
  62. package/dist/{index-5pgyqgmx.js → index-hj78hvhm.js} +2 -2
  63. package/dist/{index-7r11k4xr.js → index-hp46xe93.js} +7 -7
  64. package/dist/{index-ejgp0z9p.js → index-j4dcjb8t.js} +4 -4
  65. package/dist/{index-e6ncz7a6.js → index-jzrvdqb8.js} +1 -1
  66. package/dist/{index-sp5pvs95.js → index-k34hc455.js} +2 -2
  67. package/dist/{index-9ffntwyr.js → index-kj4bprep.js} +4 -4
  68. package/dist/{index-xe34pwb6.js → index-mgy7g740.js} +1 -1
  69. package/dist/{index-2v9qpmb3.js → index-mmf6e740.js} +7 -7
  70. package/dist/{index-3tmbvn0z.js → index-pkxkeezb.js} +27 -19
  71. package/dist/{index-jm62g83a.js → index-qdjxrbnr.js} +71 -44
  72. package/dist/{index-xjaf9g90.js → index-r1d45dsr.js} +4 -4
  73. package/dist/{index-y915t3ey.js → index-r3f85n7y.js} +5 -1
  74. package/dist/{index-wqwjawer.js → index-tbdy1hk0.js} +6 -6
  75. package/dist/{index-m0pwswv9.js → index-tqtpgnhr.js} +1 -1
  76. package/dist/{index-zk6gtf43.js → index-w7n7qkpf.js} +5 -5
  77. package/dist/{index-ewta5h87.js → index-w9hxgntq.js} +5 -5
  78. package/dist/{index-2gewejcz.js → index-x49x59ar.js} +145 -32
  79. package/dist/{index-7dzaamqg.js → index-xcej5kpt.js} +4 -4
  80. package/dist/{index-s7460efs.js → index-zfx7mtqa.js} +1 -1
  81. package/dist/{index-c81tggen.js → index-zkjx8gq3.js} +11 -11
  82. package/dist/{index-et39x9k3.js → index-zmgp0tr6.js} +3 -3
  83. package/dist/index.js +58 -55
  84. package/dist/{logger-d7c8akh9.js → logger-nmb2508f.js} +2 -2
  85. package/dist/{message-fts-rowid-map-0xx8ge09.js → message-fts-rowid-map-vcatdan0.js} +5 -5
  86. package/dist/{message-index-bounded-d3x8rhpz.js → message-index-bounded-abhwe610.js} +12 -12
  87. package/dist/{message-time-backfill-pz5981mf.js → message-time-backfill-zc5rsvhv.js} +3 -3
  88. package/dist/migration-worker.js +13 -13
  89. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  90. package/dist/{project-embedding-registry-az68q792.js → project-embedding-registry-e566q4bg.js} +15 -15
  91. package/dist/raw-ordinal-warmup-worker.js +8 -8
  92. package/dist/{read-session-chunk-70r1snq3.js → read-session-chunk-sde0wym3.js} +10 -10
  93. package/dist/{read-session-raw-3sc9231y.js → read-session-raw-trhdgc9z.js} +3 -3
  94. package/dist/{recomp-orchestrator-cn4r2gz6.js → recomp-orchestrator-dapm3e4v.js} +33 -33
  95. package/dist/render-6vmqzcem.js +43 -0
  96. package/dist/{safe-notification-target-d21swr3n.js → safe-notification-target-54ns7dv9.js} +3 -3
  97. package/dist/{search-b0cb342r.js → search-11aw8wpq.js} +27 -27
  98. package/dist/{search-archive-s9t3exc1.js → search-archive-4bbn3ztv.js} +13 -13
  99. package/dist/{send-session-notification-0779tyd9.js → send-session-notification-gxrj4w1r.js} +6 -6
  100. package/dist/shared/host-sqlite-runtime.d.ts +3 -0
  101. package/dist/shared/host-sqlite-runtime.d.ts.map +1 -0
  102. package/dist/shared/redaction.d.ts.map +1 -1
  103. package/dist/shared/transcript.d.ts +14 -0
  104. package/dist/shared/transcript.d.ts.map +1 -1
  105. package/dist/{storage-tags-xvbje7jm.js → storage-tags-jq0c0zsn.js} +7 -7
  106. package/dist/{store-91kawq9a.js → store-29ksp6vy.js} +3 -3
  107. package/dist/{transform-postprocess-phase-r1xhsjrh.js → transform-postprocess-phase-1xrjg6be.js} +34 -34
  108. package/dist/v2/auto-search-worker.js +5 -5
  109. package/dist/v2/chunk-embedding-write-worker.js +16 -16
  110. package/dist/v2/{compaction-marker-candidates-bp1bn579.js → compaction-marker-candidates-6nypmsr3.js} +3 -3
  111. package/dist/v2/compaction-marker-candidates-worker.js +1 -1
  112. package/dist/v2/{compartment-chunk-embedding-a7ddvz7v.js → compartment-chunk-embedding-jthtfhcd.js} +8 -8
  113. package/dist/v2/{context-2hssw26q.js → context-43r0mzkp.js} +127 -111
  114. package/dist/v2/{derive-budgets-hr4qqrnv.js → derive-budgets-wj0q7s7d.js} +6 -6
  115. package/dist/v2/embedding-backfill-16b16m38.js +29 -0
  116. package/dist/v2/embedding-worker-process.js +2 -2
  117. package/dist/v2/embedding-worker.js +8 -8
  118. package/dist/v2/fold/native-replay.d.ts +2 -1
  119. package/dist/v2/fold/native-replay.d.ts.map +1 -1
  120. package/dist/v2/hidden-child-native.d.ts.map +1 -1
  121. package/dist/v2/hidden-child-record.d.ts +8 -0
  122. package/dist/v2/hidden-child-record.d.ts.map +1 -1
  123. package/dist/v2/hidden-completion.d.ts.map +1 -1
  124. package/dist/v2/hidden-run-holder.d.ts +8 -2
  125. package/dist/v2/hidden-run-holder.d.ts.map +1 -1
  126. package/dist/v2/{history-owner-260djmv5.js → history-owner-8pd5ax3n.js} +3 -3
  127. package/dist/v2/hooks/context.d.ts.map +1 -1
  128. package/dist/v2/hooks/hidden-child.d.ts +3 -0
  129. package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
  130. package/dist/v2/{logger-zyf43np1.js → logger-58jfese9.js} +2 -2
  131. package/dist/v2/{message-fts-rowid-map-n8mcvcpz.js → message-fts-rowid-map-ax4vk78j.js} +5 -5
  132. package/dist/v2/{message-index-bounded-tbwrff24.js → message-index-bounded-qh794qxx.js} +12 -12
  133. package/dist/v2/{message-time-backfill-ynb3vg6r.js → message-time-backfill-yj773saf.js} +3 -3
  134. package/dist/v2/migration-worker.js +13 -13
  135. package/dist/v2/{project-embedding-registry-2zeycxek.js → project-embedding-registry-z05xvckg.js} +15 -15
  136. package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
  137. package/dist/v2/{read-session-chunk-cvgsfsgr.js → read-session-chunk-8tn2dbn1.js} +10 -10
  138. package/dist/v2/{read-session-raw-wg5zc29f.js → read-session-raw-ywebck9q.js} +3 -3
  139. package/dist/v2/recomp-orchestrator-vzygyqwn.js +69 -0
  140. package/dist/v2/render-9b5dxp9e.js +43 -0
  141. package/dist/v2/{safe-notification-target-y55z2zat.js → safe-notification-target-zrwbh6k7.js} +3 -3
  142. package/dist/v2/{search-x1cac8t6.js → search-35cz80x0.js} +26 -26
  143. package/dist/v2/{search-archive-k2yh0jj3.js → search-archive-8zqsf9e6.js} +13 -13
  144. package/dist/v2/{send-session-notification-v69y04f5.js → send-session-notification-8x146x5y.js} +6 -6
  145. package/dist/v2/{server-gj259dqy.js → server-11ra1pmx.js} +5 -5
  146. package/dist/v2/{server-6nh36020.js → server-1fnsfm3a.js} +132 -33
  147. package/dist/v2/{server-gs2251jr.js → server-2cq3e1c1.js} +4 -4
  148. package/dist/v2/{server-39bcszk4.js → server-2qvnr3t7.js} +1 -1
  149. package/dist/v2/{server-jkj1dq6j.js → server-2sare4qg.js} +4 -4
  150. package/dist/v2/{server-jdfe07mp.js → server-2wz6y46g.js} +1 -1
  151. package/dist/v2/{server-at0v0z4t.js → server-379fd3n7.js} +1 -1
  152. package/dist/v2/{server-ds8vpfkr.js → server-40vdz8sf.js} +2 -2
  153. package/dist/v2/{server-qntmqaca.js → server-4yrvbnnm.js} +2 -2
  154. package/dist/v2/{server-x69fqsvz.js → server-5t4nzfpt.js} +1 -1
  155. package/dist/v2/{server-npdey91q.js → server-63ree5ns.js} +1 -1
  156. package/dist/v2/{server-gqkdfdvw.js → server-6qax5pds.js} +2 -2
  157. package/dist/v2/{server-qb3s0mnc.js → server-73bqw5c0.js} +1 -1
  158. package/dist/v2/{server-qy58c11s.js → server-7h4gwphm.js} +4 -4
  159. package/dist/v2/{server-476anw1w.js → server-7tj8yzrv.js} +1 -1
  160. package/dist/v2/{server-e6xneh68.js → server-arfzfxe8.js} +5 -1
  161. package/dist/v2/{server-6ash6z8z.js → server-av3p9c8k.js} +1 -1
  162. package/dist/v2/{server-5hwf5c7r.js → server-bx5k66qc.js} +1 -1
  163. package/dist/v2/{server-s81b3nct.js → server-db91dxwc.js} +7 -7
  164. package/dist/v2/{server-z4p0ry94.js → server-dt7cyqfe.js} +2 -1
  165. package/dist/v2/{server-zc8s06gx.js → server-ganavh75.js} +2 -2
  166. package/dist/v2/{server-cvm1qrqc.js → server-gh2w75fn.js} +3 -3
  167. package/dist/v2/{server-y0pd600x.js → server-j1gxs1gj.js} +1 -1
  168. package/dist/v2/{server-xepfjgv5.js → server-k3ntgf6n.js} +2 -2
  169. package/dist/v2/{server-j8376q08.js → server-kzrrdjp5.js} +1 -1
  170. package/dist/v2/{server-1rrmxhd1.js → server-n33hyq9t.js} +2 -2
  171. package/dist/v2/{server-0tv6kytx.js → server-n34vzyfm.js} +1 -1
  172. package/dist/v2/{server-prrx17q3.js → server-nnh81jqy.js} +6 -6
  173. package/dist/v2/{server-cd93xyyx.js → server-qjjky07w.js} +13 -11
  174. package/dist/v2/{server-vbr1rdkg.js → server-r3h4fy4k.js} +4 -4
  175. package/dist/v2/{server-96nm9vk4.js → server-rr5c0xcg.js} +2 -2
  176. package/dist/v2/{server-j4jjtdc5.js → server-rt8t6s2a.js} +2 -2
  177. package/dist/v2/{server-srtq37nh.js → server-svccj9rd.js} +4 -4
  178. package/dist/v2/{server-5sbsnpkn.js → server-tq523gj6.js} +1 -1
  179. package/dist/v2/{server-00adcfjd.js → server-vj0xbbrc.js} +17 -3
  180. package/dist/v2/{server-88pjnecb.js → server-vsx9tsks.js} +11 -11
  181. package/dist/v2/{server-s8mk882p.js → server-xekyjy4w.js} +6 -6
  182. package/dist/v2/{server-bfct1yvb.js → server-z2nv8jdv.js} +41 -21
  183. package/dist/v2/{server-6aj72z52.js → server-z5cv5wm5.js} +10 -10
  184. package/dist/v2/{server-5016ccyn.js → server-zemnpv92.js} +4 -4
  185. package/dist/v2/server.js +9 -9
  186. package/dist/v2/{storage-tags-y20j3jdp.js → storage-tags-pcenytad.js} +7 -7
  187. package/dist/v2/{store-b95snz31.js → store-gx19qc3a.js} +3 -3
  188. package/dist/v2/{v2-archive-reader-q92kwkr5.js → v2-archive-reader-hvdyz30c.js} +1 -1
  189. package/dist/v2/{wrapup-orchestrator-ydqkxkhj.js → wrapup-orchestrator-0d4ceff3.js} +34 -34
  190. package/dist/{v2-archive-reader-x62hsr4c.js → v2-archive-reader-qs24chs6.js} +1 -1
  191. package/dist/wrapup-orchestrator-v1mhjw55.js +56 -0
  192. package/package.json +1 -1
  193. package/src/config/index.test.ts +23 -5
  194. package/src/config/live-run-config.test.ts +7 -7
  195. package/src/config/removed-agent-config.ts +14 -1
  196. package/src/config/schema/magic-context.ts +5 -1
  197. package/src/shared/host-sqlite-runtime.test.ts +21 -0
  198. package/src/shared/host-sqlite-runtime.ts +32 -0
  199. package/src/shared/redaction.test.ts +11 -8
  200. package/src/shared/redaction.ts +5 -1
  201. package/src/shared/tag-transcript.ts +61 -10
  202. package/src/shared/transcript.ts +16 -0
  203. package/dist/embedding-backfill-wdrqkw09.js +0 -29
  204. package/dist/render-g45k3gts.js +0 -43
  205. package/dist/v2/embedding-backfill-gveter8p.js +0 -29
  206. package/dist/v2/recomp-orchestrator-k4cj62f2.js +0 -69
  207. package/dist/v2/render-ys7a3zks.js +0 -43
  208. package/dist/wrapup-orchestrator-kt81d6et.js +0 -56
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isPidAlive
3
- } from "./index-gqf8r04r.js";
3
+ } from "./index-3n4j5rqc.js";
4
4
 
5
5
  // src/shared/storage-permissions.ts
6
6
  import { randomBytes } from "node:crypto";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-s7460efs.js";
3
+ } from "./index-zfx7mtqa.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-pavzsdc6.js";
7
7
  import {
8
8
  log2
9
- } from "./index-ywrz4wy2.js";
9
+ } from "./index-3fhb0j32.js";
10
10
  import {
11
11
  sanitizeDiagnosticText
12
- } from "./index-z4p0ry94.js";
12
+ } from "./index-dt7cyqfe.js";
13
13
  import {
14
14
  SYNAPSE_DEFAULT_MODEL,
15
15
  isSynapseEmbeddingTruncated,
16
16
  getSynapseBatchRequestKey,
17
17
  SynapseEmbeddingProvider
18
- } from "./index-j7n64sg4.js";
18
+ } from "./index-fgw241hh.js";
19
19
  import {
20
20
  inRootAsyncContext2,
21
21
  getSqliteDatabasePath2
@@ -43,10 +43,10 @@ import {
43
43
  countSessionCompartmentEmbedCoverage2,
44
44
  countSessionCompartmentEmbedCoveragePolite2,
45
45
  countUnembeddedSessionCompartmentsPolite2
46
- } from "./index-ejgp0z9p.js";
46
+ } from "./index-j4dcjb8t.js";
47
47
  import {
48
48
  DEFAULT_LOCAL_EMBEDDING_MODEL
49
- } from "./index-y915t3ey.js";
49
+ } from "./index-r3f85n7y.js";
50
50
  import {
51
51
  embeddingModelsMatch,
52
52
  resolveEmbeddingTextPrefixes,
@@ -56,7 +56,7 @@ import {
56
56
  getEmbeddingProviderIdentity,
57
57
  dominantEmbeddingFailure,
58
58
  LocalEmbeddingProvider
59
- } from "./index-xjaf9g90.js";
59
+ } from "./index-r1d45dsr.js";
60
60
  import {
61
61
  embedPauseBySession,
62
62
  activeEmbeddingSessions,
@@ -67,7 +67,7 @@ import {
67
67
  } from "./index-2amn2s73.js";
68
68
  import {
69
69
  setBootQuietPeriodForTests
70
- } from "./index-5pgyqgmx.js";
70
+ } from "./index-hj78hvhm.js";
71
71
  import {
72
72
  isEmbeddingHostBusy2
73
73
  } from "./index-qt1qqasc.js";
@@ -78,7 +78,7 @@ import {
78
78
  acquireGitSweepLease,
79
79
  renewGitSweepLease,
80
80
  releaseGitSweepLease
81
- } from "./index-r4y0dczp.js";
81
+ } from "./index-7sdns2ww.js";
82
82
  import {
83
83
  saveEmbeddingIfHashMatches,
84
84
  getMemoryEmbedCoverage,
@@ -89,7 +89,7 @@ import {
89
89
  } from "./index-8ajstryz.js";
90
90
  import {
91
91
  logSlowWriteTransaction
92
- } from "./index-m0pwswv9.js";
92
+ } from "./index-tqtpgnhr.js";
93
93
 
94
94
  // src/features/magic-context/memory/embedding-openai.ts
95
95
  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-5pgyqgmx.js";
6
+ } from "./index-hj78hvhm.js";
7
7
  import {
8
8
  logSlowWriteTransaction
9
- } from "./index-m0pwswv9.js";
9
+ } from "./index-tqtpgnhr.js";
10
10
 
11
11
  // src/features/magic-context/session-project-storage.ts
12
12
  var SESSION_CHUNK_REPAIR_BATCH_SIZE = 100;
@@ -6,7 +6,7 @@ import {
6
6
  } from "./index-gzy5w8ya.js";
7
7
  import {
8
8
  managedAuthorityNoteRow
9
- } from "./index-jba6ny4m.js";
9
+ } from "./index-dnpcv1rg.js";
10
10
 
11
11
  // src/features/magic-context/storage-notes.ts
12
12
  var NOTE_TYPES = new Set(["session", "smart"]);
@@ -6,19 +6,19 @@ import {
6
6
  removeNestedBlocks,
7
7
  hasMeaningfulUserText2,
8
8
  extractTexts2
9
- } from "./index-s7460efs.js";
9
+ } from "./index-zfx7mtqa.js";
10
10
  import {
11
11
  cleanUserText2
12
- } from "./index-7r11k4xr.js";
12
+ } from "./index-hp46xe93.js";
13
13
  import {
14
14
  recordMessageFtsRowid2,
15
15
  recordIndexedMessageTime2,
16
16
  messageFtsOrdinalRangeIsMapped2,
17
17
  deleteUnmappedMessageFtsRows2
18
- } from "./index-s32f8y67.js";
18
+ } from "./index-89xg64wb.js";
19
19
  import {
20
20
  logSlowWriteTransaction
21
- } from "./index-m0pwswv9.js";
21
+ } from "./index-tqtpgnhr.js";
22
22
 
23
23
  // src/features/magic-context/compression-depth-storage.ts
24
24
  var incrementDepthStatements = new WeakMap;
@@ -5,10 +5,10 @@ import {
5
5
  } from "./index-gzy5w8ya.js";
6
6
  import {
7
7
  runSessionWarmupWorker
8
- } from "./index-q7q6qp1f.js";
8
+ } from "./index-hedgz8an.js";
9
9
  import {
10
10
  logSlowWriteTransaction
11
- } from "./index-m0pwswv9.js";
11
+ } from "./index-tqtpgnhr.js";
12
12
 
13
13
  // src/features/magic-context/message-fts-rowid-map.ts
14
14
  import { createHash } from "node:crypto";
@@ -7,7 +7,7 @@ import {
7
7
  deleteTagIdentityRevisions,
8
8
  getTableColumnNames,
9
9
  getMeasuredToolDefinitionTokens
10
- } from "./index-mg9s2rc3.js";
10
+ } from "./index-cpbr0xvk.js";
11
11
  import {
12
12
  invalidateAutoEmbedSession,
13
13
  drainBackgroundBatches
@@ -20,7 +20,7 @@ import {
20
20
  getMagicContextStorageDir,
21
21
  log2,
22
22
  sessionLog2
23
- } from "./index-ywrz4wy2.js";
23
+ } from "./index-3fhb0j32.js";
24
24
  import {
25
25
  prepareCachedStatement2,
26
26
  withSqliteBackgroundWriter2,
@@ -28,14 +28,14 @@ import {
28
28
  } from "./index-gzy5w8ya.js";
29
29
  import {
30
30
  deleteUnmappedMessageFtsRows2
31
- } from "./index-s32f8y67.js";
31
+ } from "./index-89xg64wb.js";
32
32
  import {
33
33
  deleteChunkEmbedBackoffForSession2
34
- } from "./index-ejgp0z9p.js";
34
+ } from "./index-j4dcjb8t.js";
35
35
  import {
36
36
  isPidAlive,
37
37
  readProcessStartTime
38
- } from "./index-gqf8r04r.js";
38
+ } from "./index-3n4j5rqc.js";
39
39
  import {
40
40
  stripTagPrefix,
41
41
  isRecord,
@@ -68,21 +68,21 @@ import {
68
68
  getPendingPiCompactionMarkerState,
69
69
  logPiCompactionMarkerClear,
70
70
  isPrefixBoundThinkingModel
71
- } from "./index-zk6gtf43.js";
71
+ } from "./index-w7n7qkpf.js";
72
72
  import {
73
73
  withReadOnlySessionDb
74
- } from "./index-sp5pvs95.js";
74
+ } from "./index-k34hc455.js";
75
75
  import {
76
76
  layoutLkgPrefix,
77
77
  assembleLkgPrefix
78
- } from "./index-jba6ny4m.js";
78
+ } from "./index-dnpcv1rg.js";
79
79
  import {
80
80
  ensurePrivateStorageDirectorySync,
81
81
  writeStorageFileSync,
82
82
  writeStorageFileAtomicSync,
83
83
  syncStorageDirectorySync,
84
84
  writeStorageFileDurableAtomicSync
85
- } from "./index-5df2fw5b.js";
85
+ } from "./index-6mryx739.js";
86
86
  import {
87
87
  gaDatabasePath2,
88
88
  V2StoreReader2
@@ -99,7 +99,7 @@ import {
99
99
  } from "./index-avwt563y.js";
100
100
  import {
101
101
  logSlowWriteTransaction
102
- } from "./index-m0pwswv9.js";
102
+ } from "./index-tqtpgnhr.js";
103
103
 
104
104
  // src/features/magic-context/session-activity.ts
105
105
  var PREFIX = "retrospective_activity:";
@@ -4501,8 +4501,10 @@ function decodePiContentDecision(value) {
4501
4501
  var NATIVE_TOOL_INPUTS = "native tool inputs";
4502
4502
  var NATIVE_REASONING_IDS = "native reasoning ids";
4503
4503
  var nativeWriteBarriers = new WeakMap;
4504
+ class PersistedReplayStateError extends Error {
4505
+ }
4504
4506
  function invalidPersistedReplayState(lane, sessionId) {
4505
- return new Error(`invalid persisted ${lane} state for session ${sessionId}`);
4507
+ return new PersistedReplayStateError(`invalid persisted ${lane} state for session ${sessionId}`);
4506
4508
  }
4507
4509
  function assertNonEmptyId(value, lane, sessionId) {
4508
4510
  if (typeof value !== "string" || value.length === 0) {
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  sanitizeDiagnosticText
3
- } from "./index-z4p0ry94.js";
3
+ } from "./index-dt7cyqfe.js";
4
4
  import {
5
5
  PROMOTABLE_CATEGORIES,
6
6
  CATEGORY_DEFAULT_TTL
7
7
  } from "./index-fr0wbhdn.js";
8
8
  import {
9
9
  DEFAULT_LOCAL_EMBEDDING_MODEL
10
- } from "./index-y915t3ey.js";
10
+ } from "./index-r3f85n7y.js";
11
11
  import {
12
12
  sessionLog2
13
- } from "./index-ywrz4wy2.js";
13
+ } from "./index-3fhb0j32.js";
14
14
  import {
15
15
  isSynapseEmbeddingTruncated,
16
16
  SynapseEmbeddingProvider
17
- } from "./index-j7n64sg4.js";
17
+ } from "./index-fgw241hh.js";
18
18
  import {
19
19
  LocalEmbeddingProvider
20
- } from "./index-xjaf9g90.js";
20
+ } from "./index-r1d45dsr.js";
21
21
  import {
22
22
  OpenAICompatibleEmbeddingProvider,
23
23
  embedTextForProject2
24
- } from "./index-tedck05r.js";
24
+ } from "./index-7m2tnk8q.js";
25
25
  import {
26
26
  saveEmbeddingIfHashMatches
27
27
  } from "./index-qjwpqvnf.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  log2,
6
6
  sessionLog2
7
- } from "./index-ywrz4wy2.js";
7
+ } from "./index-3fhb0j32.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-q7q6qp1f.js";
16
+ } from "./index-hedgz8an.js";
17
17
  import {
18
18
  scheduleAfterBootQuiet
19
- } from "./index-5pgyqgmx.js";
19
+ } from "./index-hj78hvhm.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-esacb9d0.js";
31
+ } from "./index-89bkkgcn.js";
32
32
 
33
33
  // src/features/magic-context/message-index-async.ts
34
34
  var indexCancellations = new Map;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-v0p37hm2.js";
4
4
  import {
5
5
  log2
6
- } from "./index-ywrz4wy2.js";
6
+ } from "./index-3fhb0j32.js";
7
7
  import {
8
8
  inRootAsyncContext2,
9
9
  getSqliteDatabasePath2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sanitizeDiagnosticText
3
- } from "./index-z4p0ry94.js";
3
+ } from "./index-dt7cyqfe.js";
4
4
 
5
5
  // src/features/magic-context/fail-closed-block.ts
6
6
  var FAIL_CLOSED_DOCTOR_COMMAND = "npx @cortexkit/magic-context@latest doctor";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-ywrz4wy2.js";
3
+ } from "./index-3fhb0j32.js";
4
4
  import {
5
5
  estimateTokens
6
- } from "./index-s7460efs.js";
6
+ } from "./index-zfx7mtqa.js";
7
7
  import {
8
8
  isKnownAutocommit
9
9
  } from "./index-8ajstryz.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getMagicContextStorageDir
3
- } from "./index-ywrz4wy2.js";
3
+ } from "./index-3fhb0j32.js";
4
4
  import {
5
5
  ensureStorageDirectorySync,
6
6
  writeStorageFileAtomicSync
7
- } from "./index-5df2fw5b.js";
7
+ } from "./index-6mryx739.js";
8
8
 
9
9
  // src/hooks/auto-update-checker/semver.ts
10
10
  function isValidSemver(version) {
@@ -3,12 +3,12 @@ import {
3
3
  } from "./index-fr0wbhdn.js";
4
4
  import {
5
5
  log2
6
- } from "./index-ywrz4wy2.js";
6
+ } from "./index-3fhb0j32.js";
7
7
  import {
8
8
  ensureColumn,
9
9
  healAllNullColumns,
10
10
  installV95PerfSchema
11
- } from "./index-mg9s2rc3.js";
11
+ } from "./index-cpbr0xvk.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-5pgyqgmx.js";
23
+ } from "./index-hj78hvhm.js";
24
24
  import {
25
25
  logSlowWriteTransaction
26
- } from "./index-m0pwswv9.js";
26
+ } from "./index-tqtpgnhr.js";
27
27
 
28
28
  // src/features/magic-context/lkg-prefix-chunks.ts
29
29
  import { createHash } from "node:crypto";
@@ -96,7 +96,8 @@ function sanitizePathString(value) {
96
96
  sanitized = sanitized.replace(/\/home\/[^/]+\//g, "/home/<USER>/");
97
97
  sanitized = sanitized.replace(/C:\\Users\\[^\\]+\\/g, "C:\\Users\\<USER>\\");
98
98
  if (username) {
99
- sanitized = sanitized.replace(new RegExp(escapeRegex(username), "g"), "<USER>");
99
+ const word = "[\\p{L}\\p{M}\\p{N}_]";
100
+ sanitized = sanitized.replace(new RegExp(`(?<!${word})${escapeRegex(username)}(?!${word})`, "gu"), "<USER>");
100
101
  }
101
102
  return sanitized;
102
103
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  formatFailClosedBlockingSummary
3
- } from "./index-wh9fxds5.js";
3
+ } from "./index-c205x7xd.js";
4
4
  import {
5
5
  RAW_MESSAGE_TYPES2
6
6
  } from "./index-tr4ep2ej.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-s7460efs.js";
3
+ } from "./index-zfx7mtqa.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-pavzsdc6.js";
7
7
  import {
8
8
  log2
9
- } from "./index-ywrz4wy2.js";
9
+ } from "./index-3fhb0j32.js";
10
10
  import {
11
11
  inRootAsyncContext2
12
12
  } from "./index-gzy5w8ya.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-s7460efs.js";
3
+ } from "./index-zfx7mtqa.js";
4
4
  import {
5
5
  getTagById2
6
- } from "./index-zk6gtf43.js";
6
+ } from "./index-w7n7qkpf.js";
7
7
  import {
8
8
  expandToolPart,
9
9
  visitRawSessionMessages2,
10
10
  readRawSessionMessageById2
11
- } from "./index-7r11k4xr.js";
11
+ } from "./index-hp46xe93.js";
12
12
 
13
13
  // src/tools/ctx-expand/render.ts
14
14
  import { createHash } from "node:crypto";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-v0p37hm2.js";
4
4
  import {
5
5
  log2
6
- } from "./index-ywrz4wy2.js";
6
+ } from "./index-3fhb0j32.js";
7
7
  import {
8
8
  inRootAsyncContext2,
9
9
  getSqliteDatabasePath2,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getMagicContextStorageDir,
3
3
  log2
4
- } from "./index-ywrz4wy2.js";
4
+ } from "./index-3fhb0j32.js";
5
5
  import {
6
6
  writeStorageFileAtomicSync
7
- } from "./index-5df2fw5b.js";
7
+ } from "./index-6mryx739.js";
8
8
  import {
9
9
  inRootAsyncContext2
10
10
  } from "./index-gzy5w8ya.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-ywrz4wy2.js";
3
+ } from "./index-3fhb0j32.js";
4
4
  import {
5
5
  stripTagPrefix,
6
6
  isRecord,
@@ -9,7 +9,7 @@ import {
9
9
  estimateMessageTokens,
10
10
  getCandidateToolOwners2,
11
11
  pickNearestPriorOwner2
12
- } from "./index-zk6gtf43.js";
12
+ } from "./index-w7n7qkpf.js";
13
13
  import {
14
14
  OMO_INTERNAL_INITIATOR_MARKER,
15
15
  isSystemDirective,
@@ -24,13 +24,13 @@ import {
24
24
  formatBlock,
25
25
  compactTextForSummary,
26
26
  mergeCommitHashes
27
- } from "./index-s7460efs.js";
27
+ } from "./index-zfx7mtqa.js";
28
28
  import {
29
29
  stableStringify
30
- } from "./index-mg9s2rc3.js";
30
+ } from "./index-cpbr0xvk.js";
31
31
  import {
32
32
  renderToolTemplate
33
- } from "./index-y915t3ey.js";
33
+ } from "./index-r3f85n7y.js";
34
34
  import {
35
35
  readRawSessionMessagesFromDb2,
36
36
  readRawSessionMessagePageFromDb2,
@@ -47,13 +47,13 @@ import {
47
47
  readRawSeedTailFromDb2,
48
48
  readRawSessionBoundaryEndpointsFromDb2,
49
49
  prewarmRawSessionOrdinalsForDb
50
- } from "./index-q7q6qp1f.js";
50
+ } from "./index-hedgz8an.js";
51
51
  import {
52
52
  openCodeDbExists,
53
53
  withReadOnlySessionDb,
54
54
  getRawSessionMessageCountFromDb,
55
55
  getMessageTimesFromOpenCodeDb
56
- } from "./index-sp5pvs95.js";
56
+ } from "./index-k34hc455.js";
57
57
  import {
58
58
  markHostUnservedRow,
59
59
  isHostUnservedRow
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  getTokenEstimatorFingerprint,
3
3
  estimateTokens
4
- } from "./index-s7460efs.js";
4
+ } from "./index-zfx7mtqa.js";
5
5
  import {
6
6
  getHarness2
7
7
  } from "./index-pavzsdc6.js";
8
8
  import {
9
9
  log2
10
- } from "./index-ywrz4wy2.js";
10
+ } from "./index-3fhb0j32.js";
11
11
  import {
12
12
  isSynapseEmbeddingTruncated
13
- } from "./index-j7n64sg4.js";
13
+ } from "./index-fgw241hh.js";
14
14
  import {
15
15
  messageFtsOrdinalRangeIsMapped2
16
- } from "./index-s32f8y67.js";
16
+ } from "./index-89xg64wb.js";
17
17
  import {
18
18
  isKnownAutocommit
19
19
  } from "./index-8ajstryz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-ywrz4wy2.js";
3
+ } from "./index-3fhb0j32.js";
4
4
 
5
5
  // src/shared/safe-notification-target.ts
6
6
  var DEFAULT_TITLE_RE = /^(New session - |Child session - )\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-pavzsdc6.js";
5
5
  import {
6
6
  log2
7
- } from "./index-ywrz4wy2.js";
7
+ } from "./index-3fhb0j32.js";
8
8
  import {
9
9
  resolveOpenCodeDbPath,
10
10
  assertOpenCodeStoreGeneration,
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  forgetRawSessionOrdinalWatermark2,
21
21
  forgetRawSessionSummaryRows2
22
- } from "./index-q7q6qp1f.js";
22
+ } from "./index-hedgz8an.js";
23
23
  import {
24
24
  closeQuietly
25
25
  } from "./index-8ajstryz.js";
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  importPluginModule,
6
6
  sessionLog2
7
- } from "./index-ywrz4wy2.js";
7
+ } from "./index-3fhb0j32.js";
8
8
  import {
9
9
  isDefaultSessionTitle2
10
- } from "./index-e6ncz7a6.js";
10
+ } from "./index-jzrvdqb8.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./index-sp5pvs95.js";
13
+ } from "./index-k34hc455.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-d21swr3n.js"));
145
+ const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-54ns7dv9.js"));
146
146
  if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
147
147
  sessionLog2(sessionId, "notification skipped (session not titled yet)");
148
148
  return "skipped";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TEXT_TAG_IDENTITY_MARKER
3
- } from "./index-zk6gtf43.js";
3
+ } from "./index-w7n7qkpf.js";
4
4
 
5
5
  // src/features/magic-context/message-fts-session-filter.ts
6
6
  var MESSAGE_FTS_SESSION_FILTER_SQL = `+message_history_fts.rowid IN (
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-ywrz4wy2.js";
3
+ } from "./index-3fhb0j32.js";
4
4
  import {
5
5
  COMPARTMENT_LEASE_RENEWAL_MS,
6
6
  acquireCompartmentLease,
@@ -9,7 +9,7 @@ import {
9
9
  getCompartments,
10
10
  getLastCompartmentEndMessage,
11
11
  requestPendingMaterialization
12
- } from "./index-pc49a7zt.js";
12
+ } from "./index-8v1brm5n.js";
13
13
  import {
14
14
  inRootAsyncContext2
15
15
  } from "./index-gzy5w8ya.js";
@@ -20,10 +20,10 @@ import {
20
20
  releaseWrapupInProgress,
21
21
  getHistorianFailureState,
22
22
  clearEmergencyRecovery
23
- } from "./index-zk6gtf43.js";
23
+ } from "./index-w7n7qkpf.js";
24
24
  import {
25
25
  prepareRawSessionOrdinals2
26
- } from "./index-7r11k4xr.js";
26
+ } from "./index-hp46xe93.js";
27
27
  import {
28
28
  pushNotification2
29
29
  } from "./index-y14pawe1.js";
@@ -35,14 +35,14 @@ import {
35
35
  getActiveCompartmentRun,
36
36
  markActiveCompartmentRunPublished,
37
37
  registerActiveCompartmentRun
38
- } from "./index-2gewejcz.js";
38
+ } from "./index-x49x59ar.js";
39
39
  import {
40
40
  sendStatusNotification2
41
- } from "./index-9ffntwyr.js";
41
+ } from "./index-kj4bprep.js";
42
42
  import {
43
43
  setRecompStarting2,
44
44
  setRecompTerminal2
45
- } from "./index-ewta5h87.js";
45
+ } from "./index-w9hxgntq.js";
46
46
 
47
47
  // src/hooks/magic-context/wrapup-orchestrator.ts
48
48
  import * as crypto from "node:crypto";