@cortexkit/opencode-magic-context 0.49.97 → 0.49.99

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 (207) hide show
  1. package/dist/{announcement-8nj2jd87.js → announcement-p2xjv6cp.js} +4 -5
  2. package/dist/auto-search-worker.js +5 -5
  3. package/dist/chunk-embedding-write-worker.js +15 -16
  4. package/dist/{compaction-marker-candidates-a4b0anvv.js → compaction-marker-candidates-2apg7ewt.js} +2 -3
  5. package/dist/compaction-marker-candidates-worker.js +1 -1
  6. package/dist/{compartment-chunk-embedding-re2cw7y3.js → compartment-chunk-embedding-gnemmf79.js} +7 -8
  7. package/dist/{conflict-warning-hook-wcq55y61.js → conflict-warning-hook-x1ynwzwz.js} +7 -8
  8. package/dist/{context-br04s0b6.js → context-z77a2jpx.js} +377 -60
  9. package/dist/{derive-budgets-g1sy72e8.js → derive-budgets-vbv0fwsd.js} +4 -5
  10. package/dist/embedding-backfill-79br4kk6.js +28 -0
  11. package/dist/embedding-worker-process.js +1 -2
  12. package/dist/embedding-worker.js +6 -7
  13. package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
  14. package/dist/features/magic-context/memory/embedding-probe.d.ts +10 -9
  15. package/dist/features/magic-context/memory/embedding-probe.d.ts.map +1 -1
  16. package/dist/features/magic-context/memory/embedding-response-slots.d.ts +13 -0
  17. package/dist/features/magic-context/memory/embedding-response-slots.d.ts.map +1 -0
  18. package/dist/features/magic-context/storage-native-replay.d.ts +2 -0
  19. package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
  20. package/dist/{history-owner-74826t4n.js → history-owner-8dj31nyf.js} +2 -3
  21. package/dist/hooks/magic-context/apply-operations.d.ts +1 -1
  22. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  23. package/dist/hooks/magic-context/execute-flush.d.ts +1 -1
  24. package/dist/hooks/magic-context/execute-flush.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/tag-messages.d.ts +1 -1
  26. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/transform.d.ts +2 -0
  28. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  29. package/dist/{index-tbdy1hk0.js → index-0wj3jr8n.js} +6 -6
  30. package/dist/{index-j4dcjb8t.js → index-1vv1ka4a.js} +4 -4
  31. package/dist/{index-zfx7mtqa.js → index-2m3t73wk.js} +1 -1
  32. package/dist/{index-3fhb0j32.js → index-34xvre52.js} +223 -5
  33. package/dist/{index-pkxkeezb.js → index-4qc8d9by.js} +17 -17
  34. package/dist/{index-mmf6e740.js → index-507a56zb.js} +7 -7
  35. package/dist/{index-qdjxrbnr.js → index-5nf2a14a.js} +52 -45
  36. package/dist/{index-w9hxgntq.js → index-5xrj3zp4.js} +5 -5
  37. package/dist/{index-kj4bprep.js → index-61a853ky.js} +4 -4
  38. package/dist/{index-zmgp0tr6.js → index-74w347am.js} +3 -3
  39. package/dist/{index-hp46xe93.js → index-8hhmv0ff.js} +6 -6
  40. package/dist/{index-c205x7xd.js → index-8k9qpyjf.js} +1 -1
  41. package/dist/{index-tqtpgnhr.js → index-9awtk18w.js} +1 -1
  42. package/dist/{index-h7kta6cn.js → index-9eqt7755.js} +3 -3
  43. package/dist/{index-x49x59ar.js → index-9q7wzca8.js} +23 -25
  44. package/dist/{index-880a24vd.js → index-ab86c21b.js} +1 -1
  45. package/dist/{index-3n4j5rqc.js → index-abhmtj00.js} +1 -1
  46. package/dist/{index-tr4ep2ej.js → index-ajmy0v5j.js} +31 -0
  47. package/dist/{index-dj64gzg5.js → index-cayqdwf9.js} +2 -2
  48. package/dist/{index-0sqhg9nf.js → index-dnxnj42p.js} +12 -12
  49. package/dist/{index-0bjj9yf3.js → index-e6s2jpr8.js} +2 -2
  50. package/dist/{index-8v1brm5n.js → index-em72jhc0.js} +11 -11
  51. package/dist/{index-910gahfb.js → index-esym6cw4.js} +6 -8
  52. package/dist/{index-7sdns2ww.js → index-fd3hkyk1.js} +2 -2
  53. package/dist/{index-fgw241hh.js → index-gcf2x04k.js} +2 -2
  54. package/dist/{index-89xg64wb.js → index-geph2sa6.js} +2 -2
  55. package/dist/{index-45qgkg8j.js → index-h1qh9n8b.js} +2 -2
  56. package/dist/{index-9jvxq5rt.js → index-h1xvt8fw.js} +4 -4
  57. package/dist/{index-0ve29s6f.js → index-hbqxxb2n.js} +1 -1
  58. package/dist/{index-dnpcv1rg.js → index-hyvxmz3e.js} +4 -4
  59. package/dist/{index-hedgz8an.js → index-jsbgw33b.js} +1 -1
  60. package/dist/{index-mgy7g740.js → index-kjdys7e2.js} +1 -1
  61. package/dist/{index-e6ay1gez.js → index-mfx7hzyc.js} +2 -2
  62. package/dist/{index-7m2tnk8q.js → index-mhdavdd4.js} +31 -28
  63. package/dist/{index-r1d45dsr.js → index-nyjztqyj.js} +3 -3
  64. package/dist/{index-azkfw78y.js → index-qxzk5s30.js} +1 -1
  65. package/dist/{index-6mryx739.js → index-t7st85f5.js} +1 -1
  66. package/dist/{index-89bkkgcn.js → index-tyjx0dwz.js} +4 -4
  67. package/dist/{index-k34hc455.js → index-vdzd98ry.js} +2 -2
  68. package/dist/{index-hj78hvhm.js → index-vegw385y.js} +2 -2
  69. package/dist/{index-w7n7qkpf.js → index-w6kcwhhj.js} +4 -4
  70. package/dist/{index-xcej5kpt.js → index-xbna9akt.js} +5 -5
  71. package/dist/{index-cpbr0xvk.js → index-xtv4d4hv.js} +2 -2
  72. package/dist/{index-zkjx8gq3.js → index-xw608ytx.js} +11 -11
  73. package/dist/{index-jzrvdqb8.js → index-y5f5yg5a.js} +1 -1
  74. package/dist/index.js +55 -56
  75. package/dist/{logger-nmb2508f.js → logger-dgtrf43g.js} +1 -2
  76. package/dist/{message-fts-rowid-map-vcatdan0.js → message-fts-rowid-map-cfq59g6g.js} +4 -5
  77. package/dist/{message-index-bounded-abhwe610.js → message-index-bounded-6y7p974x.js} +10 -11
  78. package/dist/{message-time-backfill-zc5rsvhv.js → message-time-backfill-av870n4c.js} +2 -3
  79. package/dist/migration-worker.js +12 -13
  80. package/dist/plugin/rpc-handlers.d.ts +1 -0
  81. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  82. package/dist/{project-embedding-registry-e566q4bg.js → project-embedding-registry-xy8dcdys.js} +13 -14
  83. package/dist/raw-ordinal-warmup-worker.js +8 -8
  84. package/dist/{read-session-chunk-sde0wym3.js → read-session-chunk-9ejnbe07.js} +8 -9
  85. package/dist/{read-session-raw-trhdgc9z.js → read-session-raw-pgc9gxtn.js} +2 -3
  86. package/dist/{recomp-orchestrator-dapm3e4v.js → recomp-orchestrator-9k91tkyx.js} +32 -33
  87. package/dist/render-9712q3gp.js +42 -0
  88. package/dist/{safe-notification-target-54ns7dv9.js → safe-notification-target-01j8km9e.js} +2 -3
  89. package/dist/{search-archive-4bbn3ztv.js → search-archive-5jr011gc.js} +11 -12
  90. package/dist/{search-11aw8wpq.js → search-yhaxy3e6.js} +25 -26
  91. package/dist/{send-session-notification-gxrj4w1r.js → send-session-notification-tfhs4dbc.js} +5 -6
  92. package/dist/shared/rpc-types.d.ts +5 -0
  93. package/dist/shared/rpc-types.d.ts.map +1 -1
  94. package/dist/shared/status-view-check.d.ts.map +1 -1
  95. package/dist/shared/status-view.d.ts +8 -0
  96. package/dist/shared/status-view.d.ts.map +1 -1
  97. package/dist/shared/transcript.d.ts +1 -1
  98. package/dist/shared/transcript.d.ts.map +1 -1
  99. package/dist/{storage-tags-jq0c0zsn.js → storage-tags-vd3sgd4s.js} +5 -6
  100. package/dist/{store-29ksp6vy.js → store-235fjtsn.js} +6 -4
  101. package/dist/{store-reader-dgh3ssxx.js → store-reader-01e8t5j0.js} +4 -1
  102. package/dist/{transform-postprocess-phase-1xrjg6be.js → transform-postprocess-phase-mf5js6cs.js} +33 -34
  103. package/dist/v2/auto-search-worker.js +5 -5
  104. package/dist/v2/checkpoint-instruction-status.d.ts +13 -0
  105. package/dist/v2/checkpoint-instruction-status.d.ts.map +1 -0
  106. package/dist/v2/chunk-embedding-write-worker.js +15 -16
  107. package/dist/v2/{compaction-marker-candidates-6nypmsr3.js → compaction-marker-candidates-3rxg3f1e.js} +2 -3
  108. package/dist/v2/compaction-marker-candidates-worker.js +1 -1
  109. package/dist/v2/{compartment-chunk-embedding-jthtfhcd.js → compartment-chunk-embedding-6v74y2r3.js} +7 -8
  110. package/dist/v2/{context-43r0mzkp.js → context-4fej2dzv.js} +390 -69
  111. package/dist/v2/{derive-budgets-wj0q7s7d.js → derive-budgets-9237wmq5.js} +5 -6
  112. package/dist/v2/embedding-backfill-nhgp8znm.js +28 -0
  113. package/dist/v2/embedding-worker-process.js +1 -2
  114. package/dist/v2/embedding-worker.js +6 -7
  115. package/dist/v2/fold/idle.d.ts +11 -1
  116. package/dist/v2/fold/idle.d.ts.map +1 -1
  117. package/dist/v2/fold/instruction-supersession.d.ts +22 -1
  118. package/dist/v2/fold/instruction-supersession.d.ts.map +1 -1
  119. package/dist/v2/fold/native-replay-v3.d.ts +1 -0
  120. package/dist/v2/fold/native-replay-v3.d.ts.map +1 -1
  121. package/dist/v2/fold/native-replay.d.ts +73 -0
  122. package/dist/v2/fold/native-replay.d.ts.map +1 -1
  123. package/dist/v2/{history-owner-8pd5ax3n.js → history-owner-k4gx50a0.js} +2 -3
  124. package/dist/v2/hooks/context.d.ts.map +1 -1
  125. package/dist/v2/{logger-58jfese9.js → logger-0ys28353.js} +1 -2
  126. package/dist/v2/{message-fts-rowid-map-ax4vk78j.js → message-fts-rowid-map-88x2zbyj.js} +4 -5
  127. package/dist/v2/{message-index-bounded-qh794qxx.js → message-index-bounded-wj5rs9az.js} +10 -11
  128. package/dist/v2/{message-time-backfill-yj773saf.js → message-time-backfill-5p4vwd79.js} +2 -3
  129. package/dist/v2/migration-worker.js +12 -13
  130. package/dist/v2/{project-embedding-registry-z05xvckg.js → project-embedding-registry-qz9x79kn.js} +13 -14
  131. package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
  132. package/dist/v2/{read-session-chunk-8tn2dbn1.js → read-session-chunk-89ep8br4.js} +8 -9
  133. package/dist/v2/{read-session-raw-ywebck9q.js → read-session-raw-seh1kcvp.js} +2 -3
  134. package/dist/v2/recomp-orchestrator-9wap1z1d.js +68 -0
  135. package/dist/v2/render-bzzypsgy.js +42 -0
  136. package/dist/v2/{safe-notification-target-zrwbh6k7.js → safe-notification-target-3e2rq2ys.js} +2 -3
  137. package/dist/v2/{search-archive-8zqsf9e6.js → search-archive-4yr4hw2m.js} +11 -12
  138. package/dist/v2/{search-35cz80x0.js → search-ymm2crs3.js} +24 -25
  139. package/dist/v2/{send-session-notification-8x146x5y.js → send-session-notification-vtnk598k.js} +5 -6
  140. package/dist/v2/{server-vj0xbbrc.js → server-0b3ms151.js} +2 -2
  141. package/dist/v2/{server-r3h4fy4k.js → server-1bks09js.js} +5 -5
  142. package/dist/v2/{server-nnh81jqy.js → server-2ek9exbe.js} +6 -8
  143. package/dist/v2/{server-63ree5ns.js → server-2xng77ch.js} +1 -1
  144. package/dist/v2/{server-2sare4qg.js → server-3mb205v9.js} +4 -4
  145. package/dist/v2/{server-n34vzyfm.js → server-3qeqa3b6.js} +1 -1
  146. package/dist/v2/{server-av3p9c8k.js → server-54nc921b.js} +1 -1
  147. package/dist/v2/{server-2qvnr3t7.js → server-5zx51pm4.js} +1 -1
  148. package/dist/v2/{server-vsx9tsks.js → server-62t1852h.js} +11 -11
  149. package/dist/v2/{server-svccj9rd.js → server-6mq43ear.js} +4 -4
  150. package/dist/v2/{server-1fnsfm3a.js → server-6r3b0re0.js} +24 -26
  151. package/dist/v2/{server-db91dxwc.js → server-7861dnm3.js} +6 -6
  152. package/dist/v2/{server-6qax5pds.js → server-7c5p0bh1.js} +2 -2
  153. package/dist/v2/{server-z5cv5wm5.js → server-7wpw3wc6.js} +31 -28
  154. package/dist/v2/{server-11ra1pmx.js → server-8xgs110k.js} +4 -4
  155. package/dist/v2/{server-40vdz8sf.js → server-98xd6j4r.js} +2 -2
  156. package/dist/v2/{server-k3ntgf6n.js → server-b5eg9ct6.js} +2 -2
  157. package/dist/v2/{server-2cq3e1c1.js → server-b65sqz7y.js} +4 -4
  158. package/dist/v2/{server-ganavh75.js → server-bhr92yb4.js} +2 -2
  159. package/dist/v2/{server-4yrvbnnm.js → server-bzebqckc.js} +2 -2
  160. package/dist/v2/{server-rt8t6s2a.js → server-cc58mckk.js} +2 -2
  161. package/dist/v2/{server-xekyjy4w.js → server-d0h1gjz2.js} +6 -6
  162. package/dist/v2/{server-73bqw5c0.js → server-d46xewmt.js} +1 -1
  163. package/dist/v2/{server-rr5c0xcg.js → server-d4h86y7v.js} +2 -2
  164. package/dist/v2/{server-7tj8yzrv.js → server-e14d7ebh.js} +2 -2
  165. package/dist/v2/{server-gh2w75fn.js → server-e8ybwfv8.js} +3 -3
  166. package/dist/v2/{server-zemnpv92.js → server-ghk96d57.js} +4 -4
  167. package/dist/v2/{server-j1gxs1gj.js → server-h95cdc30.js} +1 -1
  168. package/dist/v2/{server-5t4nzfpt.js → server-j09jx1n9.js} +1 -1
  169. package/dist/v2/{server-n33hyq9t.js → server-jrs4gny6.js} +2 -2
  170. package/dist/v2/{server-7h4gwphm.js → server-pqgnjf38.js} +3 -3
  171. package/dist/v2/{server-379fd3n7.js → server-rbxtp4sm.js} +1 -1
  172. package/dist/v2/{server-2wz6y46g.js → server-sfffm587.js} +1 -1
  173. package/dist/v2/{server-bx5k66qc.js → server-vgy98kcd.js} +1 -1
  174. package/dist/v2/{server-kzrrdjp5.js → server-xc7t2r4k.js} +223 -5
  175. package/dist/v2/{server-z2nv8jdv.js → server-xn7fpv2b.js} +12 -12
  176. package/dist/v2/{server-tq523gj6.js → server-yacpgq4s.js} +1 -1
  177. package/dist/v2/{server-vtkbxzw1.js → server-ysg14rv1.js} +31 -0
  178. package/dist/v2/{server-qjjky07w.js → server-zedjjdc5.js} +11 -11
  179. package/dist/v2/server.js +8 -9
  180. package/dist/v2/{storage-tags-pcenytad.js → storage-tags-8kktww54.js} +5 -6
  181. package/dist/v2/{store-gx19qc3a.js → store-0kjfynwp.js} +6 -4
  182. package/dist/v2/{store-reader-qt2msa8z.js → store-reader-w0srb18d.js} +4 -1
  183. package/dist/v2/store-reader.d.ts +1 -0
  184. package/dist/v2/store-reader.d.ts.map +1 -1
  185. package/dist/v2/tui/index.d.ts +1 -1
  186. package/dist/v2/tui/index.d.ts.map +1 -1
  187. package/dist/v2/{v2-archive-reader-hvdyz30c.js → v2-archive-reader-veyqp15a.js} +1 -1
  188. package/dist/v2/{wrapup-orchestrator-0d4ceff3.js → wrapup-orchestrator-89cg7p41.js} +33 -34
  189. package/dist/{v2-archive-reader-qs24chs6.js → v2-archive-reader-3s332fn7.js} +1 -1
  190. package/dist/wrapup-orchestrator-41rt7etq.js +55 -0
  191. package/package.json +2 -2
  192. package/src/shared/rpc-types.ts +6 -0
  193. package/src/shared/status-view-check.ts +11 -0
  194. package/src/shared/status-view.ts +24 -1
  195. package/src/shared/tag-transcript.ts +5 -4
  196. package/src/shared/test-preload-leak-scan.test.ts +56 -0
  197. package/src/shared/transcript.ts +1 -1
  198. package/src/v2/tui/index.ts +8 -1
  199. package/src/v2/tui/status-dialog-fallback.test.ts +21 -0
  200. package/dist/embedding-backfill-pdymqbnh.js +0 -29
  201. package/dist/index-dt7cyqfe.js +0 -223
  202. package/dist/render-6vmqzcem.js +0 -43
  203. package/dist/v2/embedding-backfill-16b16m38.js +0 -29
  204. package/dist/v2/recomp-orchestrator-vzygyqwn.js +0 -69
  205. package/dist/v2/render-9b5dxp9e.js +0 -43
  206. package/dist/v2/server-dt7cyqfe.js +0 -223
  207. package/dist/wrapup-orchestrator-v1mhjw55.js +0 -56
@@ -25,16 +25,14 @@ import {
25
25
  ensureCortexKitArtifactGitignore,
26
26
  getMagicContextStorageResolution,
27
27
  getMagicContextStorageDir,
28
+ sanitizeDiagnosticText,
29
+ hasShareabilitySensitiveText,
28
30
  classifyStalePluginBuild,
29
31
  importPluginModule,
30
32
  log2,
31
33
  sessionLog2,
32
34
  getLoggerDiagnostics2
33
- } from "./index-3fhb0j32.js";
34
- import {
35
- sanitizeDiagnosticText,
36
- hasShareabilitySensitiveText
37
- } from "./index-dt7cyqfe.js";
35
+ } from "./index-34xvre52.js";
38
36
  import {
39
37
  resolveOpenCodeDbPath,
40
38
  assertOpenCodeStoreGeneration,
@@ -65,14 +63,14 @@ import {
65
63
  rpcPortFilePath,
66
64
  parseRpcPortFile,
67
65
  inspectProcessesAsync
68
- } from "./index-3n4j5rqc.js";
66
+ } from "./index-abhmtj00.js";
69
67
  import {
70
68
  shouldEnforcePrivateStoragePermissions,
71
69
  ensureStorageDirectorySync,
72
70
  writeStorageFileAtomicSync,
73
71
  writeStorageFileAsync,
74
72
  createStorageWriteStream
75
- } from "./index-6mryx739.js";
73
+ } from "./index-t7st85f5.js";
76
74
  import {
77
75
  pruneMissingProjectIdentities,
78
76
  shouldSkipHomeProjectMemory,
@@ -89,7 +87,7 @@ import {
89
87
  storedPathBelongsToIdentity,
90
88
  beginBootQuietPeriod,
91
89
  scheduleAfterBootQuiet
92
- } from "./index-hj78hvhm.js";
90
+ } from "./index-vegw385y.js";
93
91
  import {
94
92
  recordSessionProjectIdentity,
95
93
  hasRecordedSessionProjectIdentity,
@@ -99,7 +97,7 @@ import {
99
97
  markGitSweepSuccessAndRelease,
100
98
  parkGitSweepNonIndexable,
101
99
  releaseGitSweepLease
102
- } from "./index-7sdns2ww.js";
100
+ } from "./index-fd3hkyk1.js";
103
101
  import {
104
102
  getMagicContextBuiltinCommands,
105
103
  formatConfigParseStatusLine,
@@ -215,7 +213,7 @@ import {
215
213
  snapRangeToCompartments,
216
214
  getActiveCompartmentRun,
217
215
  startCompartmentAgent
218
- } from "./index-x49x59ar.js";
216
+ } from "./index-9q7wzca8.js";
219
217
  import {
220
218
  formatWindowDerivationLine,
221
219
  getSdkWindowGeometry,
@@ -224,7 +222,7 @@ import {
224
222
  deriveTriggerBudget2,
225
223
  resolveKnownHistorianContextLimit2,
226
224
  resolveHistorianProducerLimits2
227
- } from "./index-45qgkg8j.js";
225
+ } from "./index-h1qh9n8b.js";
228
226
  import {
229
227
  resolveModelCalibration,
230
228
  calibrateBuckets,
@@ -239,7 +237,7 @@ import {
239
237
  estimateTokens,
240
238
  estimateFixedPromptTokens,
241
239
  normalizeText
242
- } from "./index-zfx7mtqa.js";
240
+ } from "./index-2m3t73wk.js";
243
241
  import {
244
242
  protectedToolTokenCount,
245
243
  peelLeadingMcTagNotation,
@@ -373,14 +371,14 @@ import {
373
371
  getTagsByNumbers2,
374
372
  getDroppedTagsByNumbers2,
375
373
  getMaxDroppedTagNumber2
376
- } from "./index-w7n7qkpf.js";
374
+ } from "./index-w6kcwhhj.js";
377
375
  import {
378
376
  BoundedSessionMap,
379
377
  observeTemporalDecisions,
380
378
  stableStringify,
381
379
  getMeasuredToolDefinitionTokens,
382
380
  getExactSessionToolDefinitionTokens
383
- } from "./index-cpbr0xvk.js";
381
+ } from "./index-xtv4d4hv.js";
384
382
  import {
385
383
  withContentLanguageDirective,
386
384
  string,
@@ -407,7 +405,7 @@ import {
407
405
  extractInMemoryMessageViews2,
408
406
  buildInMemoryTailRawMessages2,
409
407
  RawOrdinalsNotReady2
410
- } from "./index-hedgz8an.js";
408
+ } from "./index-jsbgw33b.js";
411
409
  import {
412
410
  openCodeDbExists,
413
411
  withReadOnlySessionDb,
@@ -415,7 +413,7 @@ import {
415
413
  latestPersistedMessageForRecovery,
416
414
  latestRealUserTurnIdFromOpenCodeDb,
417
415
  findLastAssistantModelFromOpenCodeDb
418
- } from "./index-k34hc455.js";
416
+ } from "./index-vdzd98ry.js";
419
417
  import {
420
418
  askAnswerLines,
421
419
  estimateTrueRawMessageTokens,
@@ -447,7 +445,7 @@ import {
447
445
  readRawSessionMessageById2,
448
446
  readSessionChunk2,
449
447
  readRawSessionSeedTail2
450
- } from "./index-hp46xe93.js";
448
+ } from "./index-8hhmv0ff.js";
451
449
  import {
452
450
  buildDreamTaskRuntimeConfigs2,
453
451
  userMemoryCollectionEnabled2
@@ -457,7 +455,7 @@ import {
457
455
  isFailClosedBlockingError,
458
456
  shouldBypassFailClosedBlock,
459
457
  resolveAgentNameFromMessages
460
- } from "./index-c205x7xd.js";
458
+ } from "./index-8k9qpyjf.js";
461
459
  import {
462
460
  configureContextDatabasePragmas2
463
461
  } from "./index-fb3zxn06.js";
@@ -471,7 +469,7 @@ import {
471
469
  runSqliteOptimize,
472
470
  openDatabase,
473
471
  openCurrentDatabase
474
- } from "./index-zkjx8gq3.js";
472
+ } from "./index-xw608ytx.js";
475
473
  import {
476
474
  unescapeXml,
477
475
  resolveWorkspaceShareCategories,
@@ -480,7 +478,7 @@ import {
480
478
  resolveStoredPathWorkspaceIdentity,
481
479
  storedPathBelongsToWorkspace,
482
480
  computeWorkspaceEpochFingerprint
483
- } from "./index-dnpcv1rg.js";
481
+ } from "./index-hyvxmz3e.js";
484
482
  import {
485
483
  V2_MEMORY_CATEGORIES,
486
484
  CATEGORY_PRIORITY
@@ -502,7 +500,7 @@ import {
502
500
  toSynapseLaneDescriptor,
503
501
  formatSynapseLaneDescriptor,
504
502
  SynapseEmbeddingProvider
505
- } from "./index-fgw241hh.js";
503
+ } from "./index-gcf2x04k.js";
506
504
  import {
507
505
  readHistoryGapMark,
508
506
  clearHistoryGapMark,
@@ -590,10 +588,10 @@ import {
590
588
  GLOBAL_USER_PROFILE_PROJECT_PATH,
591
589
  getProjectState,
592
590
  bumpProjectUserProfileVersion
593
- } from "./index-8v1brm5n.js";
591
+ } from "./index-em72jhc0.js";
594
592
  import {
595
593
  getLastIndexedOrdinal
596
- } from "./index-89bkkgcn.js";
594
+ } from "./index-tyjx0dwz.js";
597
595
  import {
598
596
  SESSION_NOTE_CONDITION_ERROR,
599
597
  getNoteByIdInScope,
@@ -619,7 +617,7 @@ import {
619
617
  createPrimer,
620
618
  updatePrimerSupport,
621
619
  updatePrimerAnswer
622
- } from "./index-880a24vd.js";
620
+ } from "./index-ab86c21b.js";
623
621
  import {
624
622
  registerNotificationSink2,
625
623
  pushNotification2,
@@ -631,7 +629,7 @@ import {
631
629
  getCachedLocalEmbeddingPooling,
632
630
  preflightLocalEmbeddingPooling,
633
631
  getLocalEmbeddingNativeMemoryStats
634
- } from "./index-r1d45dsr.js";
632
+ } from "./index-nyjztqyj.js";
635
633
  import {
636
634
  withQueryEmbeddingDeadline,
637
635
  describeShadowBackfillWriteRefusal2,
@@ -653,7 +651,7 @@ import {
653
651
  embedSessionCompartmentChunks2,
654
652
  getEmbeddingCoverageStatus2,
655
653
  getAutoEmbeddingSessionCoverage2
656
- } from "./index-7m2tnk8q.js";
654
+ } from "./index-mhdavdd4.js";
657
655
  import {
658
656
  saveEmbeddingIfHashMatches,
659
657
  invalidateProject2,
@@ -679,7 +677,7 @@ import {
679
677
  readGitFileChangeTimesSince,
680
678
  verificationFileExists,
681
679
  normalizeVerificationFiles
682
- } from "./index-910gahfb.js";
680
+ } from "./index-esym6cw4.js";
683
681
  import {
684
682
  computeCueContentHash,
685
683
  hasMuralCueColumns,
@@ -727,13 +725,13 @@ import {
727
725
  resolveMemoriesByIdsForSearch2,
728
726
  unifiedSearch2,
729
727
  formatSearchResults2
730
- } from "./index-0sqhg9nf.js";
728
+ } from "./index-dnxnj42p.js";
731
729
  import {
732
730
  scheduleReconciliation,
733
731
  scheduleIncrementalIndex,
734
732
  getMessageIndexQueueHeapStats,
735
733
  clearSessionTracking
736
- } from "./index-9jvxq5rt.js";
734
+ } from "./index-h1xvt8fw.js";
737
735
  import {
738
736
  resolveModelCacheTtl,
739
737
  resolveContextWindowGeometry,
@@ -832,24 +830,24 @@ import {
832
830
  abortSessionFailClosed2,
833
831
  evaluateEmergencyFailClosed2,
834
832
  runPostTransformPhase2
835
- } from "./index-pkxkeezb.js";
833
+ } from "./index-4qc8d9by.js";
836
834
  import {
837
835
  flushIgnoredMessages2,
838
836
  clearIgnoredMessages2,
839
837
  observeIgnoredNotificationEvent2,
840
838
  sendStatusNotification2
841
- } from "./index-kj4bprep.js";
839
+ } from "./index-61a853ky.js";
842
840
  import {
843
841
  setRecompStarting2,
844
842
  setRecompTerminal2
845
- } from "./index-w9hxgntq.js";
843
+ } from "./index-5xrj3zp4.js";
846
844
  import {
847
845
  ANNOUNCEMENT_VERSION2,
848
846
  ANNOUNCEMENT_FEATURES2,
849
847
  ANNOUNCEMENT_FOOTER2,
850
848
  markAnnouncementSeen2,
851
849
  shouldShowAnnouncement2
852
- } from "./index-dj64gzg5.js";
850
+ } from "./index-cayqdwf9.js";
853
851
  import {
854
852
  resolvePromptContext2
855
853
  } from "./index-fmsr7v69.js";
@@ -857,14 +855,14 @@ import {
857
855
  renderMessageByOrdinal2,
858
856
  renderVerboseRangeForTool2,
859
857
  renderItemByTag2
860
- } from "./index-h7kta6cn.js";
858
+ } from "./index-9eqt7755.js";
861
859
  import {
862
860
  readV2ArchiveOffThread2
863
- } from "./index-xcej5kpt.js";
861
+ } from "./index-xbna9akt.js";
864
862
  import {
865
863
  unresolvedLiveTailRefusal2,
866
864
  renderSearchArchiveOffThread2
867
- } from "./index-tbdy1hk0.js";
865
+ } from "./index-0wj3jr8n.js";
868
866
  import {
869
867
  takeCoveredInstructionRows,
870
868
  cloneKeepingCoveredInstructionMarks
@@ -889,7 +887,7 @@ import {
889
887
  } from "./index-8ajstryz.js";
890
888
  import {
891
889
  logSlowWriteTransaction
892
- } from "./index-tqtpgnhr.js";
890
+ } from "./index-9awtk18w.js";
893
891
  import {
894
892
  canonicalProjectDirectory
895
893
  } from "./index-knvkbfvh.js";
@@ -13252,20 +13250,24 @@ function pauseEmbedHistoryDrain(deps, sessionId) {
13252
13250
  }
13253
13251
 
13254
13252
  // src/hooks/magic-context/execute-flush.ts
13255
- function executeFlush(db, sessionId) {
13253
+ function executeFlush(db, sessionId, onToolDrops) {
13256
13254
  try {
13257
13255
  const pendingOps = getPendingOps(db, sessionId);
13258
13256
  if (pendingOps.length === 0) {
13259
13257
  return "No pending operations to flush.";
13260
13258
  }
13261
13259
  let dropped = 0;
13262
- db.transaction(() => {
13260
+ const toolDrops = db.transaction(() => {
13261
+ const toolDrops = onToolDrops ? getTagsByNumbers2(db, sessionId, pendingOps.map((op) => op.tagId)).filter((tag) => tag.type === "tool" && tag.status === "active").map((tag) => tag.tagNumber) : [];
13263
13262
  for (const op of pendingOps) {
13264
13263
  updateTagStatus2(db, sessionId, op.tagId, "dropped");
13265
13264
  removePendingOp(db, sessionId, op.tagId);
13266
13265
  dropped++;
13267
13266
  }
13267
+ return toolDrops;
13268
13268
  }).immediate();
13269
+ if (toolDrops.length > 0)
13270
+ onToolDrops?.(toolDrops);
13269
13271
  const parts = [];
13270
13272
  if (dropped > 0)
13271
13273
  parts.push(`${dropped} dropped`);
@@ -16366,6 +16368,9 @@ function registerRpcHandlers(rpcServer, args) {
16366
16368
  const detail = buildStatusDetail(db, sessionId, dir, modelKey, rawConfig, liveSessionState, injectionBudgetTokens, moduleStatus, compactionEnabled);
16367
16369
  if (showForkHistoryGap(db, sessionId))
16368
16370
  detail.forkHistoryGap = true;
16371
+ const checkpointInstructions = args.readCheckpointInstructions?.(sessionId);
16372
+ if (checkpointInstructions?.tokens)
16373
+ detail.checkpointInstructions = checkpointInstructions;
16369
16374
  if (args.hiddenCompletionExecutor?.capabilities.tools === false) {
16370
16375
  detail.dreamerUnsupportedTasks = toolLoopDreamTasks();
16371
16376
  }
@@ -16409,7 +16414,7 @@ function registerRpcHandlers(rpcServer, args) {
16409
16414
  return { count: buildCompartmentCount(db, sessionId, moduleStatus) };
16410
16415
  });
16411
16416
  const buildManagedCtx = async (db) => {
16412
- const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-g1sy72e8.js"));
16417
+ const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-vbv0fwsd.js"));
16413
16418
  const { resolveHistorianModel } = await importPluginModule(() => import("./model-resolution-280gmqvd.js"));
16414
16419
  const { userObservationCollectionEnabled, userObservationsRequested } = await importPluginModule(() => import("./task-config-vrebjxyy.js"));
16415
16420
  const DEFAULT_HISTORIAN_TIMEOUT_MS = 10 * 60 * 1000;
@@ -16442,7 +16447,7 @@ function registerRpcHandlers(rpcServer, args) {
16442
16447
  return { ok: false, error: "no session" };
16443
16448
  const readDirectory = args.readSessionDirectory;
16444
16449
  if (readDirectory) {
16445
- const { handoffHistoryWork } = await import("./history-owner-74826t4n.js");
16450
+ const { handoffHistoryWork } = await import("./history-owner-8dj31nyf.js");
16446
16451
  const handed = await handoffHistoryWork({
16447
16452
  storageDir: args.storageDir ?? getMagicContextStorageDir(),
16448
16453
  directory,
@@ -16461,8 +16466,8 @@ function registerRpcHandlers(rpcServer, args) {
16461
16466
  const db = readDatabase();
16462
16467
  if (!db)
16463
16468
  return { ok: false, error: "db unavailable" };
16464
- const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-dapm3e4v.js"));
16465
- const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-gxrj4w1r.js"));
16469
+ const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-9k91tkyx.js"));
16470
+ const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-tfhs4dbc.js"));
16466
16471
  log2(`[rpc] recomp requested for session ${sessionId}`);
16467
16472
  if (!args.client && !args.hiddenCompletionExecutor) {
16468
16473
  return {
@@ -16520,7 +16525,7 @@ function registerRpcHandlers(rpcServer, args) {
16520
16525
  rpcServer.handle("wrapup", async (params) => {
16521
16526
  const readDirectory = args.readSessionDirectory;
16522
16527
  if (readDirectory && params.sessionId) {
16523
- const { handoffHistoryWork } = await import("./history-owner-74826t4n.js");
16528
+ const { handoffHistoryWork } = await import("./history-owner-8dj31nyf.js");
16524
16529
  const sessionId = String(params.sessionId);
16525
16530
  const handed = await handoffHistoryWork({
16526
16531
  storageDir: args.storageDir ?? getMagicContextStorageDir(),
@@ -16546,7 +16551,7 @@ function registerRpcHandlers(rpcServer, args) {
16546
16551
  const db = readDatabase();
16547
16552
  if (!db)
16548
16553
  return { ok: false, error: "db unavailable" };
16549
- const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-v1mhjw55.js"));
16554
+ const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-41rt7etq.js"));
16550
16555
  const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
16551
16556
  const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
16552
16557
  if (!window)
@@ -25624,6 +25629,7 @@ function createTransform(deps) {
25624
25629
  onCompartmentStatePublished: (sid) => {
25625
25630
  deferredHistoryRefreshSessions.add(sid);
25626
25631
  deferredMaterializationSessions.add(sid);
25632
+ deps.onHistoryPublished?.(sid);
25627
25633
  }
25628
25634
  }, undefined, urgent ? undefined : prepareRecoveryBoundary);
25629
25635
  return true;
@@ -25999,6 +26005,7 @@ ${notice}`, notificationParams));
25999
26005
  onCompartmentStatePublished: (sid) => {
26000
26006
  deferredHistoryRefreshSessions.add(sid);
26001
26007
  deferredMaterializationSessions.add(sid);
26008
+ deps.onHistoryPublished?.(sid);
26002
26009
  }
26003
26010
  });
26004
26011
  pendingCompartmentInjection = compartmentPhase.pendingCompartmentInjection;
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-3fhb0j32.js";
3
+ } from "./index-34xvre52.js";
4
4
  import {
5
5
  clearEmergencyRecovery
6
- } from "./index-w7n7qkpf.js";
6
+ } from "./index-w6kcwhhj.js";
7
7
  import {
8
8
  requestPendingMaterialization,
9
9
  dropSlot
10
- } from "./index-8v1brm5n.js";
10
+ } from "./index-em72jhc0.js";
11
11
  import {
12
12
  pausedRecompReason,
13
13
  executeContextRecomp
14
- } from "./index-x49x59ar.js";
14
+ } from "./index-9q7wzca8.js";
15
15
  import {
16
16
  renderUserFacingFailure,
17
17
  userFacingFailureCode
18
- } from "./index-910gahfb.js";
18
+ } from "./index-esym6cw4.js";
19
19
 
20
20
  // src/hooks/magic-context/recomp-orchestrator.ts
21
21
  function resolveLiveModelKey(liveSessionState, sessionId) {
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  importPluginModule,
6
6
  sessionLog2
7
- } from "./index-3fhb0j32.js";
7
+ } from "./index-34xvre52.js";
8
8
  import {
9
9
  isDefaultSessionTitle2
10
- } from "./index-jzrvdqb8.js";
10
+ } from "./index-y5f5yg5a.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./index-k34hc455.js";
13
+ } from "./index-vdzd98ry.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-54ns7dv9.js"));
145
+ const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-01j8km9e.js"));
146
146
  if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
147
147
  sessionLog2(sessionId, "notification skipped (session not titled yet)");
148
148
  return "skipped";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  importPluginModule,
3
3
  log2
4
- } from "./index-3fhb0j32.js";
4
+ } from "./index-34xvre52.js";
5
5
  import {
6
6
  sendStatusNotification2
7
- } from "./index-kj4bprep.js";
7
+ } from "./index-61a853ky.js";
8
8
  import {
9
9
  formatConflictShort
10
- } from "./index-0ve29s6f.js";
10
+ } from "./index-hbqxxb2n.js";
11
11
 
12
12
  // src/plugin/conflict-warning-hook.ts
13
13
  import { existsSync, readFileSync } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-3fhb0j32.js";
3
+ } from "./index-34xvre52.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-w7n7qkpf.js";
12
+ } from "./index-w6kcwhhj.js";
13
13
  import {
14
14
  OMO_INTERNAL_INITIATOR_MARKER,
15
15
  isSystemDirective,
@@ -24,10 +24,10 @@ import {
24
24
  formatBlock,
25
25
  compactTextForSummary,
26
26
  mergeCommitHashes
27
- } from "./index-zfx7mtqa.js";
27
+ } from "./index-2m3t73wk.js";
28
28
  import {
29
29
  stableStringify
30
- } from "./index-cpbr0xvk.js";
30
+ } from "./index-xtv4d4hv.js";
31
31
  import {
32
32
  renderToolTemplate
33
33
  } from "./index-r3f85n7y.js";
@@ -47,13 +47,13 @@ import {
47
47
  readRawSeedTailFromDb2,
48
48
  readRawSessionBoundaryEndpointsFromDb2,
49
49
  prewarmRawSessionOrdinalsForDb
50
- } from "./index-hedgz8an.js";
50
+ } from "./index-jsbgw33b.js";
51
51
  import {
52
52
  openCodeDbExists,
53
53
  withReadOnlySessionDb,
54
54
  getRawSessionMessageCountFromDb,
55
55
  getMessageTimesFromOpenCodeDb
56
- } from "./index-k34hc455.js";
56
+ } from "./index-vdzd98ry.js";
57
57
  import {
58
58
  markHostUnservedRow,
59
59
  isHostUnservedRow
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sanitizeDiagnosticText
3
- } from "./index-dt7cyqfe.js";
3
+ } from "./index-34xvre52.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,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-3fhb0j32.js";
3
+ } from "./index-34xvre52.js";
4
4
 
5
5
  // src/shared/write-transaction-timing.ts
6
6
  var SLOW_WRITE_TRANSACTION_THRESHOLD_MS = 1000;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-zfx7mtqa.js";
3
+ } from "./index-2m3t73wk.js";
4
4
  import {
5
5
  getTagById2
6
- } from "./index-w7n7qkpf.js";
6
+ } from "./index-w6kcwhhj.js";
7
7
  import {
8
8
  expandToolPart,
9
9
  visitRawSessionMessages2,
10
10
  readRawSessionMessageById2
11
- } from "./index-hp46xe93.js";
11
+ } from "./index-8hhmv0ff.js";
12
12
 
13
13
  // src/tools/ctx-expand/render.ts
14
14
  import { createHash } from "node:crypto";