@cortexkit/opencode-magic-context 0.49.48 → 0.49.49

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 (153) 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/{conflict-warning-hook-w1aw6w5t.js → conflict-warning-hook-56qpq7ws.js} +7 -8
  8. package/dist/{context-8r125qv3.js → context-bwf57gnh.js} +41 -43
  9. package/dist/{derive-budgets-nkw09vq7.js → derive-budgets-z53424qx.js} +2 -3
  10. package/dist/{embedding-backfill-kpy5shsa.js → embedding-backfill-d9x9q2e2.js} +12 -13
  11. package/dist/embedding-worker-process.js +2 -3
  12. package/dist/embedding-worker.js +5 -6
  13. package/dist/features/magic-context/dreamer/docs-proposals.d.ts.map +1 -1
  14. package/dist/{history-owner-0z620wgz.js → history-owner-n50e0e8y.js} +2 -3
  15. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  16. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  17. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +5 -3
  18. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  19. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  20. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  21. package/dist/{index-txs8tce6.js → index-0k283v27.js} +2 -4
  22. package/dist/{index-s79g172v.js → index-0mdh2cke.js} +10 -10
  23. package/dist/{index-ak11t3gm.js → index-0tz2fzpq.js} +1 -1
  24. package/dist/{index-2qbtqg1w.js → index-25tm250q.js} +1 -1
  25. package/dist/{index-h9m41624.js → index-2ny9xwdn.js} +2 -2
  26. package/dist/{index-xa9mmq6c.js → index-36wseasx.js} +1 -1
  27. package/dist/{index-sd2s4t4p.js → index-3n9ee4jh.js} +2 -2
  28. package/dist/{index-vk6srk5r.js → index-5850zme4.js} +3 -3
  29. package/dist/{index-qsyx931k.js → index-5bksfv58.js} +13 -15
  30. package/dist/{index-cgzpbz78.js → index-7n2n3v92.js} +5 -5
  31. package/dist/{index-jrfre9ah.js → index-82dfe8en.js} +146 -5
  32. package/dist/{index-gn6gfz4y.js → index-90z05d0p.js} +1 -1
  33. package/dist/{index-9wnbnx8f.js → index-a6aqpfp6.js} +1 -1
  34. package/dist/{index-q6pjqm49.js → index-agfh931z.js} +11 -13
  35. package/dist/{index-d4qw2h43.js → index-arxg51bj.js} +4 -4
  36. package/dist/{index-4wpfbzks.js → index-bkg4hdyh.js} +3 -3
  37. package/dist/{index-gp3kcpc4.js → index-cd3vp8xa.js} +1 -1
  38. package/dist/{index-cgsmttyj.js → index-cs7pmwt6.js} +4 -4
  39. package/dist/{index-brj6was5.js → index-em92bp7f.js} +2 -2
  40. package/dist/{index-2p37txes.js → index-ga5q492k.js} +1 -1
  41. package/dist/{index-8cfnaagj.js → index-gapnh6tk.js} +2 -4
  42. package/dist/{index-fw42ms3m.js → index-gz001bx7.js} +1 -1
  43. package/dist/{index-t6s0tsp7.js → index-h3p558ec.js} +3 -3
  44. package/dist/{index-qcz1fy7h.js → index-hexdee98.js} +4 -4
  45. package/dist/{index-smtbdmc3.js → index-hsv31e69.js} +2 -2
  46. package/dist/{index-dj2p8653.js → index-hsyczpn7.js} +2 -2
  47. package/dist/{index-q41sm60t.js → index-j7verehm.js} +71 -54
  48. package/dist/{index-fgft4qjn.js → index-jedbxq6n.js} +4 -4
  49. package/dist/{index-xh3jyejb.js → index-k47v0tmk.js} +16 -18
  50. package/dist/{index-1hwn96x1.js → index-kn1bx21r.js} +3 -3
  51. package/dist/{index-nj360hcs.js → index-pb8ysnq2.js} +4 -4
  52. package/dist/{index-rvmhyk89.js → index-qb75tv9j.js} +8 -8
  53. package/dist/{index-jz5bk7xd.js → index-qperbvjn.js} +2 -2
  54. package/dist/{index-25ka1jza.js → index-r9agn061.js} +4 -4
  55. package/dist/{index-hacf2tyx.js → index-reyws9fy.js} +1 -1
  56. package/dist/{index-fxbk7gk3.js → index-tad3can2.js} +1 -1
  57. package/dist/{index-hkh8x221.js → index-tj5gz396.js} +3 -5
  58. package/dist/{index-zetm0ayn.js → index-va9x7y48.js} +35 -31
  59. package/dist/{index-8ka0ne8t.js → index-vbmh68fb.js} +6 -6
  60. package/dist/{index-ta87fpfs.js → index-vyv4tame.js} +12 -14
  61. package/dist/{index-trkxkgmd.js → index-wdmfnmv1.js} +5 -5
  62. package/dist/index.js +53 -55
  63. package/dist/{logger-qwnbcfj9.js → logger-sw7z6sjz.js} +1 -2
  64. package/dist/{message-fts-rowid-map-msffhkve.js → message-fts-rowid-map-kx1bsdyg.js} +4 -5
  65. package/dist/{message-index-bounded-0q7sy04w.js → message-index-bounded-2shxmht9.js} +11 -12
  66. package/dist/{message-time-backfill-39bm498k.js → message-time-backfill-hp2jgn49.js} +2 -3
  67. package/dist/migration-worker.js +12 -13
  68. package/dist/{project-embedding-registry-r6xfsrbe.js → project-embedding-registry-nzgkq61z.js} +11 -12
  69. package/dist/raw-ordinal-warmup-worker.js +8 -8
  70. package/dist/{read-session-chunk-7fmg9p5m.js → read-session-chunk-c15y8yg6.js} +9 -10
  71. package/dist/{read-session-raw-x7a9b3jm.js → read-session-raw-04ger9zt.js} +2 -3
  72. package/dist/{recomp-orchestrator-jqa5z4ar.js → recomp-orchestrator-gfxqqpph.js} +30 -31
  73. package/dist/{render-mnqc74ar.js → render-5tx8r0me.js} +20 -21
  74. package/dist/{safe-notification-target-wztd7bgk.js → safe-notification-target-mx5khyxf.js} +2 -3
  75. package/dist/{search-archive-df09r8qn.js → search-archive-6tgh88xp.js} +11 -12
  76. package/dist/{search-kt764afk.js → search-k2n5bvsk.js} +23 -24
  77. package/dist/{send-session-notification-j93pn2hn.js → send-session-notification-gamjee2f.js} +5 -6
  78. package/dist/shared/data-path.d.ts +7 -13
  79. package/dist/shared/data-path.d.ts.map +1 -1
  80. package/dist/{storage-tags-96vyd6ra.js → storage-tags-kdb4qsyq.js} +4 -5
  81. package/dist/{transform-postprocess-phase-a7ety10n.js → transform-postprocess-phase-36dw4kxb.js} +31 -32
  82. package/dist/v2/auto-search-worker.js +5 -5
  83. package/dist/v2/chunk-embedding-write-worker.js +14 -14
  84. package/dist/v2/{compaction-marker-candidates-y737qb1v.js → compaction-marker-candidates-re14353a.js} +2 -2
  85. package/dist/v2/compaction-marker-candidates-worker.js +1 -1
  86. package/dist/v2/{compartment-chunk-embedding-nj5nrnbj.js → compartment-chunk-embedding-0pxsrzrt.js} +7 -7
  87. package/dist/v2/{context-9x7mnb7x.js → context-td3jyze3.js} +68 -49
  88. package/dist/v2/{derive-budgets-b5cgrtp8.js → derive-budgets-w0815q82.js} +3 -3
  89. package/dist/v2/{embedding-backfill-360efh1t.js → embedding-backfill-5dqdm3ff.js} +12 -12
  90. package/dist/v2/embedding-worker-process.js +1 -1
  91. package/dist/v2/embedding-worker.js +4 -4
  92. package/dist/v2/{history-owner-fpka43cn.js → history-owner-ep91wgqj.js} +2 -2
  93. package/dist/v2/{logger-4cj6d03m.js → logger-xnscpj6w.js} +1 -1
  94. package/dist/v2/{message-fts-rowid-map-qe7cpksd.js → message-fts-rowid-map-57jh6xpb.js} +4 -4
  95. package/dist/v2/{message-index-bounded-hctgp22r.js → message-index-bounded-j1jskn8a.js} +11 -11
  96. package/dist/v2/{message-time-backfill-0c4h7sg6.js → message-time-backfill-baxebka0.js} +2 -2
  97. package/dist/v2/migration-worker.js +11 -11
  98. package/dist/v2/{project-embedding-registry-ek0cy0d5.js → project-embedding-registry-swm4mw1t.js} +11 -11
  99. package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
  100. package/dist/v2/{read-session-chunk-zknadvjr.js → read-session-chunk-carzw3m8.js} +9 -9
  101. package/dist/v2/{read-session-raw-yss2ev98.js → read-session-raw-3e482h3c.js} +2 -2
  102. package/dist/v2/{recomp-orchestrator-m5w0eqke.js → recomp-orchestrator-e7vrs932.js} +31 -31
  103. package/dist/v2/{render-89asy54r.js → render-e9mh9y1d.js} +20 -20
  104. package/dist/v2/{safe-notification-target-gphhast7.js → safe-notification-target-9r79xnbt.js} +2 -2
  105. package/dist/v2/{search-archive-axz2gbdb.js → search-archive-j3kb9ggd.js} +11 -11
  106. package/dist/v2/{search-kdtja5rx.js → search-sr23g316.js} +22 -22
  107. package/dist/v2/{send-session-notification-na3q825m.js → send-session-notification-95p89k7q.js} +5 -5
  108. package/dist/v2/{server-pej5rnye.js → server-0qxb8r8q.js} +2 -2
  109. package/dist/v2/{server-sg2qjkrb.js → server-1ppcpsdw.js} +2 -2
  110. package/dist/v2/{server-nn4hbymt.js → server-2qxt6qv0.js} +8 -8
  111. package/dist/v2/{server-7vb38e51.js → server-3jc6qmdz.js} +1 -1
  112. package/dist/v2/{server-69m30b21.js → server-3yk44ddz.js} +1 -1
  113. package/dist/v2/{server-z3tyd1mx.js → server-4y2pcckw.js} +3 -3
  114. package/dist/v2/{server-3schkz95.js → server-58h6rrnx.js} +4 -4
  115. package/dist/v2/{server-af1rmkyn.js → server-5kgesxck.js} +2 -2
  116. package/dist/v2/{server-mfn1yf9d.js → server-7vrtk78d.js} +1 -1
  117. package/dist/v2/{server-f0j864ma.js → server-91gb0vh8.js} +1 -1
  118. package/dist/v2/{server-131h608x.js → server-966dq3pd.js} +2 -2
  119. package/dist/v2/{server-jb6tjyeb.js → server-bb6kf05j.js} +23 -20
  120. package/dist/v2/{server-e3m10ds0.js → server-c5kq8d5n.js} +4 -4
  121. package/dist/v2/{server-gwxys0d0.js → server-c8z2grq0.js} +1 -1
  122. package/dist/v2/{server-4x7n5qz7.js → server-e14c3hd6.js} +10 -10
  123. package/dist/v2/{server-jra7awr5.js → server-e20kfytm.js} +11 -11
  124. package/dist/v2/{server-2gjqhmn9.js → server-fw49gc57.js} +8 -8
  125. package/dist/v2/{server-y8n33d9j.js → server-g61hgy1y.js} +4 -4
  126. package/dist/v2/{server-2j87594q.js → server-kgq2e2hh.js} +2 -2
  127. package/dist/v2/{server-ddw42d76.js → server-mxsy9h1d.js} +2 -2
  128. package/dist/v2/{server-qmmkhz2z.js → server-np27dgyt.js} +1 -1
  129. package/dist/v2/{server-dcws5831.js → server-qp5sj6n5.js} +2 -2
  130. package/dist/v2/{server-sr8tf5dt.js → server-r7y35vm9.js} +4 -4
  131. package/dist/v2/{server-7be0ersd.js → server-rcchadw0.js} +3 -3
  132. package/dist/v2/{server-b3r080cm.js → server-rz5jnhnv.js} +1 -1
  133. package/dist/v2/{server-zt1m5rwj.js → server-sa1fdt41.js} +1 -1
  134. package/dist/v2/{server-jqn7q7tm.js → server-t5cgb15n.js} +5 -5
  135. package/dist/v2/{server-ypf1ap0v.js → server-t8n27rbt.js} +1 -1
  136. package/dist/v2/{server-sefxj8k1.js → server-tmf0ayqp.js} +1 -1
  137. package/dist/v2/{server-wa4qhryh.js → server-ttrrh27h.js} +2 -2
  138. package/dist/v2/{server-bez34e60.js → server-vqq3g1t7.js} +4 -4
  139. package/dist/v2/{server-tpt7bwq8.js → server-ww7xbxxf.js} +1 -1
  140. package/dist/v2/{server-zahgxer8.js → server-y7q8cds3.js} +3 -3
  141. package/dist/v2/{server-27kccwe7.js → server-yxe0gh3v.js} +11 -11
  142. package/dist/v2/{server-yyqmvbvv.js → server-z7n3n1ra.js} +34 -28
  143. package/dist/v2/server.js +5 -5
  144. package/dist/v2/{storage-tags-xq8hjqkf.js → storage-tags-rzv7y0n3.js} +4 -4
  145. package/dist/v2/{v2-archive-reader-ky1wqcws.js → v2-archive-reader-jnzjavzr.js} +1 -1
  146. package/dist/v2/{wrapup-orchestrator-6wt67saz.js → wrapup-orchestrator-jw4nre49.js} +31 -31
  147. package/dist/{v2-archive-reader-665x2x4d.js → v2-archive-reader-b76tfeje.js} +1 -1
  148. package/dist/wrapup-orchestrator-fhfazjkq.js +55 -0
  149. package/package.json +1 -1
  150. package/src/shared/data-path.test.ts +104 -56
  151. package/src/shared/data-path.ts +30 -30
  152. package/dist/index-g2q4htwp.js +0 -146
  153. package/dist/wrapup-orchestrator-7kmb3jf9.js +0 -56
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-jrfre9ah.js";
3
+ } from "./index-82dfe8en.js";
4
4
  import {
5
5
  clearEmergencyRecovery
6
- } from "./index-rvmhyk89.js";
6
+ } from "./index-qb75tv9j.js";
7
7
  import {
8
8
  requestPendingMaterialization,
9
9
  dropSlot
10
- } from "./index-ta87fpfs.js";
10
+ } from "./index-vyv4tame.js";
11
11
  import {
12
12
  executeContextRecomp
13
- } from "./index-zetm0ayn.js";
13
+ } from "./index-va9x7y48.js";
14
14
  import {
15
15
  renderUserFacingFailure,
16
16
  userFacingFailureCode
17
- } from "./index-sd2s4t4p.js";
17
+ } from "./index-3n9ee4jh.js";
18
18
 
19
19
  // src/hooks/magic-context/recomp-orchestrator.ts
20
20
  function resolveLiveModelKey(liveSessionState, sessionId) {
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  detectOverflow,
29
29
  isAnthropicFamilyRoute,
30
30
  readRawSessionMessages2
31
- } from "./index-rvmhyk89.js";
31
+ } from "./index-qb75tv9j.js";
32
32
  import {
33
33
  setHarness2
34
34
  } from "./index-pavzsdc6.js";
@@ -36,16 +36,14 @@ import {
36
36
  getOpenCodeStorageDir,
37
37
  getMagicContextStorageDir,
38
38
  isMagicContextStorageOutsideEngram,
39
- claimStorageBackupWarningCheck
40
- } from "./index-g2q4htwp.js";
41
- import"./index-z4p0ry94.js";
42
- import {
39
+ claimStorageBackupWarningCheck,
43
40
  registerStalePluginBuildHost,
44
41
  importPluginModule,
45
42
  log2,
46
43
  sessionLog2,
47
44
  flushLogger2
48
- } from "./index-jrfre9ah.js";
45
+ } from "./index-82dfe8en.js";
46
+ import"./index-z4p0ry94.js";
49
47
  import {
50
48
  withContentLanguageDirective,
51
49
  string,
@@ -84,7 +82,7 @@ import {
84
82
  checkCompactionMarkerConsistency,
85
83
  clearInjectionCache,
86
84
  clearNoteNudgeTriggerOnly
87
- } from "./index-zetm0ayn.js";
85
+ } from "./index-va9x7y48.js";
88
86
  import"./index-sd3egckz.js";
89
87
  import {
90
88
  hasTrustedAbsoluteWall,
@@ -94,7 +92,7 @@ import {
94
92
  deriveHistorianChunkTokens2,
95
93
  resolveKnownHistorianContextLimit2,
96
94
  resolveHistorianContextLimit2
97
- } from "./index-8cfnaagj.js";
95
+ } from "./index-gapnh6tk.js";
98
96
  import {
99
97
  buildDreamTaskRuntimeConfigs2,
100
98
  userMemoryCollectionEnabled2,
@@ -171,7 +169,7 @@ import {
171
169
  parameterDescriptionsFor,
172
170
  MagicContextRpcServer,
173
171
  applyHiddenSubagentTemperature
174
- } from "./index-q41sm60t.js";
172
+ } from "./index-j7verehm.js";
175
173
  import {
176
174
  resolveOpenCodeDbPath,
177
175
  openCodeDbPathExists,
@@ -198,10 +196,10 @@ import {
198
196
  beginBootQuietPeriod,
199
197
  bootQuietRemainingMs,
200
198
  scheduleAfterBootQuiet
201
- } from "./index-txs8tce6.js";
199
+ } from "./index-0k283v27.js";
202
200
  import {
203
201
  deleteTemporalDecision
204
- } from "./index-9wnbnx8f.js";
202
+ } from "./index-a6aqpfp6.js";
205
203
  import {
206
204
  observeSessionActivity,
207
205
  backfillSessionActivity,
@@ -219,11 +217,11 @@ import {
219
217
  createDbLkgPersistence,
220
218
  registerLkgPersistence,
221
219
  dropSlot
222
- } from "./index-ta87fpfs.js";
220
+ } from "./index-vyv4tame.js";
223
221
  import {
224
222
  recordSessionProjectIdentity
225
- } from "./index-jz5bk7xd.js";
226
- import"./index-2p37txes.js";
223
+ } from "./index-qperbvjn.js";
224
+ import"./index-ga5q492k.js";
227
225
  import"./index-fb3zxn06.js";
228
226
  import {
229
227
  startBootDeadline,
@@ -234,7 +232,7 @@ import {
234
232
  openDatabaseAsync,
235
233
  isDatabasePersisted,
236
234
  getDatabasePersistenceError
237
- } from "./index-q6pjqm49.js";
235
+ } from "./index-agfh931z.js";
238
236
  import {
239
237
  registerExitAbort,
240
238
  unregisterExitAbort
@@ -243,48 +241,48 @@ import"./index-96ztjvkn.js";
243
241
  import"./index-1d042x6w.js";
244
242
  import {
245
243
  forgetRawSessionOrdinalWatermark2
246
- } from "./index-xa9mmq6c.js";
247
- import"./index-h9m41624.js";
248
- import"./index-nj360hcs.js";
244
+ } from "./index-36wseasx.js";
245
+ import"./index-2ny9xwdn.js";
246
+ import"./index-pb8ysnq2.js";
249
247
  import"./index-fr0wbhdn.js";
250
248
  import {
251
249
  preloadTokenizer
252
- } from "./index-ak11t3gm.js";
250
+ } from "./index-0tz2fzpq.js";
253
251
  import {
254
252
  BoundedSessionMap,
255
253
  recordToolDefinition,
256
254
  getCurrentToolSetHash
257
- } from "./index-smtbdmc3.js";
258
- import"./index-dj2p8653.js";
255
+ } from "./index-hsv31e69.js";
256
+ import"./index-hsyczpn7.js";
259
257
  import {
260
258
  getDefaultSubcConnectionFile,
261
259
  SubcModuleTransport
262
- } from "./index-qsyx931k.js";
260
+ } from "./index-5bksfv58.js";
263
261
  import"./index-qt1qqasc.js";
264
- import"./index-fw42ms3m.js";
262
+ import"./index-gz001bx7.js";
265
263
  import {
266
264
  observeOpenCodeTurnEvent,
267
265
  clearTrackedOpenCodeSession,
268
266
  findLastAssistantModelFromOpenCodeDb
269
- } from "./index-brj6was5.js";
267
+ } from "./index-em92bp7f.js";
270
268
  import {
271
269
  sendCommandResult2,
272
270
  sendStatusNotification2
273
- } from "./index-25ka1jza.js";
271
+ } from "./index-r9agn061.js";
274
272
  import {
275
273
  detectConflicts,
276
274
  resolveCompactionForBoot
277
- } from "./index-hacf2tyx.js";
275
+ } from "./index-reyws9fy.js";
278
276
  import {
279
277
  sendConflictWarning2,
280
278
  cleanupConflictWarnings2
281
- } from "./index-1hwn96x1.js";
279
+ } from "./index-kn1bx21r.js";
282
280
  import"./index-1zx87sdm.js";
283
281
  import {
284
282
  stripPersistedAssistantText,
285
283
  deleteTagsByMessageId2,
286
284
  getMaxTagNumberBySession2
287
- } from "./index-4wpfbzks.js";
285
+ } from "./index-bkg4hdyh.js";
288
286
  import {
289
287
  resolveHistorianModel2,
290
288
  resolveOpenCodeAgentOverrides2,
@@ -294,24 +292,24 @@ import {
294
292
  getEmbedDrainUiStatus,
295
293
  clearEmbedSessionState
296
294
  } from "./index-2amn2s73.js";
297
- import"./index-qcz1fy7h.js";
295
+ import"./index-hexdee98.js";
298
296
  import {
299
297
  deleteIndexedMessage
300
- } from "./index-fgft4qjn.js";
298
+ } from "./index-jedbxq6n.js";
301
299
  import"./index-6athgjba.js";
302
- import"./index-2qbtqg1w.js";
300
+ import"./index-25tm250q.js";
303
301
  import {
304
302
  pushNotification2
305
303
  } from "./index-x8a7jmkh.js";
306
- import"./index-hkh8x221.js";
304
+ import"./index-tj5gz396.js";
307
305
  import {
308
306
  getEmbeddingCoverageStatus2
309
- } from "./index-s79g172v.js";
307
+ } from "./index-0mdh2cke.js";
310
308
  import"./index-4dhv7mqz.js";
311
- import"./index-d4qw2h43.js";
309
+ import"./index-arxg51bj.js";
312
310
  import"./index-jjvbk92s.js";
313
- import"./index-sd2s4t4p.js";
314
- import"./index-gn6gfz4y.js";
311
+ import"./index-3n9ee4jh.js";
312
+ import"./index-90z05d0p.js";
315
313
  import {
316
314
  createTagger,
317
315
  cavemanWordRulesForLanguage,
@@ -319,25 +317,25 @@ import {
319
317
  clearToolPermissionDenied,
320
318
  collectForeignTextParts,
321
319
  resetDegradedCacheCount2
322
- } from "./index-xh3jyejb.js";
320
+ } from "./index-k47v0tmk.js";
323
321
  import {
324
322
  scheduleClearAndReindex
325
- } from "./index-cgsmttyj.js";
323
+ } from "./index-cs7pmwt6.js";
326
324
  import {
327
325
  runManagedRecomp2
328
- } from "./index-trkxkgmd.js";
326
+ } from "./index-wdmfnmv1.js";
329
327
  import {
330
328
  isValidSemver,
331
329
  compareSemverCore
332
- } from "./index-gp3kcpc4.js";
330
+ } from "./index-cd3vp8xa.js";
333
331
  import"./index-fmsr7v69.js";
334
332
  import {
335
333
  runManagedWrapup2
336
- } from "./index-8ka0ne8t.js";
337
- import"./index-t6s0tsp7.js";
334
+ } from "./index-vbmh68fb.js";
335
+ import"./index-h3p558ec.js";
338
336
  import"./index-kaqs6h31.js";
339
- import"./index-vk6srk5r.js";
340
- import"./index-cgzpbz78.js";
337
+ import"./index-5850zme4.js";
338
+ import"./index-7n2n3v92.js";
341
339
  import {
342
340
  isDreamerRunnable,
343
341
  isSmartNoteSurfaceAvailable,
@@ -357,7 +355,7 @@ import {
357
355
  import {
358
356
  closeQuietly
359
357
  } from "./index-8ajstryz.js";
360
- import"./index-fxbk7gk3.js";
358
+ import"./index-tad3can2.js";
361
359
  import {
362
360
  setStoragePrivatePermissionEnforcement,
363
361
  ensureStorageDirectorySync,
@@ -8205,7 +8203,7 @@ var require_src2 = __commonJS(function(exports, module) {
8205
8203
  // package.json
8206
8204
  var package_default = {
8207
8205
  name: "@cortexkit/opencode-magic-context",
8208
- version: "0.49.48",
8206
+ version: "0.49.49",
8209
8207
  type: "module",
8210
8208
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
8211
8209
  main: "dist/index.js",
@@ -12063,7 +12061,7 @@ async function setup(context) {
12063
12061
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
12064
12062
  log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
12065
12063
  }
12066
- const { registerContext } = await import("./context-8r125qv3.js");
12064
+ const { registerContext } = await import("./context-bwf57gnh.js");
12067
12065
  setHarness2("opencode2");
12068
12066
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
12069
12067
  const duties = await registerContext(context);
@@ -12142,7 +12140,7 @@ var server = async (ctx) => {
12142
12140
  if (hasBannerEntries)
12143
12141
  setTimeout(async () => {
12144
12142
  try {
12145
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-j93pn2hn.js"));
12143
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-gamjee2f.js"));
12146
12144
  const clientWithSessions = ctx.client;
12147
12145
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12148
12146
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12160,7 +12158,7 @@ var server = async (ctx) => {
12160
12158
  log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
12161
12159
  setTimeout(async () => {
12162
12160
  try {
12163
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-j93pn2hn.js"));
12161
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-gamjee2f.js"));
12164
12162
  const clientWithSessions = ctx.client;
12165
12163
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12166
12164
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12433,12 +12431,12 @@ var server = async (ctx) => {
12433
12431
  {
12434
12432
  const fence = getSchemaFenceRejection();
12435
12433
  if (fence) {
12436
- importPluginModule(() => import("./conflict-warning-hook-w1aw6w5t.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12434
+ importPluginModule(() => import("./conflict-warning-hook-56qpq7ws.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12437
12435
  }
12438
12436
  }
12439
12437
  const serverUrl = ctx.serverUrl;
12440
12438
  const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
12441
- importPluginModule(() => import("./send-session-notification-j93pn2hn.js")).then(({ setNotificationServerUrl }) => {
12439
+ importPluginModule(() => import("./send-session-notification-gamjee2f.js")).then(({ setNotificationServerUrl }) => {
12442
12440
  setNotificationServerUrl(serverUrlStr);
12443
12441
  }).catch((error) => log2("[magic-context] notification transport unavailable:", error));
12444
12442
  if (conflictResult?.hasConflict) {
@@ -12452,7 +12450,7 @@ var server = async (ctx) => {
12452
12450
  }
12453
12451
  if (pluginConfig.enabled && !conflictResult?.hasConflict) {
12454
12452
  setTimeout(() => {
12455
- importPluginModule(() => import("./announcement-g789dmt6.js")).then(({
12453
+ importPluginModule(() => import("./announcement-9pr71hd5.js")).then(({
12456
12454
  shouldShowAnnouncement,
12457
12455
  ANNOUNCEMENT_VERSION,
12458
12456
  ANNOUNCEMENT_FEATURES,
@@ -12461,7 +12459,7 @@ var server = async (ctx) => {
12461
12459
  }) => {
12462
12460
  if (!shouldShowAnnouncement())
12463
12461
  return;
12464
- return importPluginModule(() => import("./conflict-warning-hook-w1aw6w5t.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12462
+ return importPluginModule(() => import("./conflict-warning-hook-56qpq7ws.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12465
12463
  }).catch(() => {});
12466
12464
  }, 8000);
12467
12465
  }
@@ -12535,8 +12533,8 @@ var server = async (ctx) => {
12535
12533
  tryReopenStorage,
12536
12534
  rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
12537
12535
  onStorageBusyRefusal: async (sessionId, message) => {
12538
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-j93pn2hn.js"));
12539
- const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-a7ety10n.js"));
12536
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-gamjee2f.js"));
12537
+ const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-36dw4kxb.js"));
12540
12538
  await sendStatusNotification(ctx.client, sessionId, message, {
12541
12539
  toastDurationMs: 15000
12542
12540
  });
@@ -6,8 +6,7 @@ import {
6
6
  getLoggerDiagnostics2,
7
7
  flushLogger2,
8
8
  getLogFilePath2
9
- } from "./index-jrfre9ah.js";
10
- import"./index-g2q4htwp.js";
9
+ } from "./index-82dfe8en.js";
11
10
  import"./index-pavzsdc6.js";
12
11
  import"./index-z4p0ry94.js";
13
12
  export {
@@ -5,14 +5,13 @@ import {
5
5
  startMessageFtsRowidMapBackfill2,
6
6
  messageFtsOrdinalRangeIsMapped2,
7
7
  deleteUnmappedMessageFtsRows2
8
- } from "./index-h9m41624.js";
9
- import"./index-xa9mmq6c.js";
8
+ } from "./index-2ny9xwdn.js";
9
+ import"./index-36wseasx.js";
10
10
  import"./index-96ztjvkn.js";
11
11
  import"./index-v0p37hm2.js";
12
- import"./index-fxbk7gk3.js";
12
+ import"./index-tad3can2.js";
13
13
  import"./index-gzy5w8ya.js";
14
- import"./index-jrfre9ah.js";
15
- import"./index-g2q4htwp.js";
14
+ import"./index-82dfe8en.js";
16
15
  import"./index-pavzsdc6.js";
17
16
  import"./index-z4p0ry94.js";
18
17
  import"./index-1d042x6w.js";
@@ -4,22 +4,21 @@ import {
4
4
  yieldIndexChunk2
5
5
  } from "./index-gzy5w8ya.js";
6
6
  import"./index-1zx87sdm.js";
7
- import"./index-4wpfbzks.js";
8
- import"./index-ak11t3gm.js";
7
+ import"./index-bkg4hdyh.js";
8
+ import"./index-0tz2fzpq.js";
9
9
  import"./index-pavzsdc6.js";
10
- import"./index-g2q4htwp.js";
10
+ import"./index-82dfe8en.js";
11
11
  import"./index-z4p0ry94.js";
12
- import"./index-jrfre9ah.js";
13
- import"./index-9wnbnx8f.js";
12
+ import"./index-a6aqpfp6.js";
14
13
  import"./index-4dpvnp8k.js";
15
14
  import"./index-v0p37hm2.js";
16
15
  import"./index-96ztjvkn.js";
17
16
  import"./index-1d042x6w.js";
18
- import"./index-xa9mmq6c.js";
17
+ import"./index-36wseasx.js";
19
18
  import"./index-58e3y90n.js";
20
- import"./index-brj6was5.js";
21
- import"./index-rvmhyk89.js";
22
- import"./index-smtbdmc3.js";
19
+ import"./index-em92bp7f.js";
20
+ import"./index-qb75tv9j.js";
21
+ import"./index-hsv31e69.js";
23
22
  import {
24
23
  MESSAGE_INDEX_MAX_FTS_BYTES,
25
24
  messageIndexSkipKey,
@@ -27,9 +26,9 @@ import {
27
26
  markMessageIndexDirty,
28
27
  getIndexableContent,
29
28
  indexSingleMessage
30
- } from "./index-fgft4qjn.js";
31
- import"./index-h9m41624.js";
32
- import"./index-fxbk7gk3.js";
29
+ } from "./index-jedbxq6n.js";
30
+ import"./index-2ny9xwdn.js";
31
+ import"./index-tad3can2.js";
33
32
 
34
33
  // src/features/magic-context/message-index-bounded.ts
35
34
  import { createHash } from "node:crypto";
@@ -3,12 +3,11 @@ import {
3
3
  withoutSqliteTransformPass2
4
4
  } from "./index-gzy5w8ya.js";
5
5
  import"./index-pavzsdc6.js";
6
- import"./index-g2q4htwp.js";
6
+ import"./index-82dfe8en.js";
7
7
  import"./index-z4p0ry94.js";
8
- import"./index-jrfre9ah.js";
9
8
  import {
10
9
  logSlowWriteTransaction
11
- } from "./index-fxbk7gk3.js";
10
+ } from "./index-tad3can2.js";
12
11
 
13
12
  // src/features/magic-context/message-time-backfill.ts
14
13
  var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;
@@ -1,38 +1,37 @@
1
1
  import"./index-pavzsdc6.js";
2
- import"./index-g2q4htwp.js";
3
- import"./index-z4p0ry94.js";
4
2
  import {
5
3
  setLogLineForwarder2,
6
4
  log2
7
- } from "./index-jrfre9ah.js";
5
+ } from "./index-82dfe8en.js";
6
+ import"./index-z4p0ry94.js";
8
7
  import {
9
8
  Database2
10
9
  } from "./index-gzy5w8ya.js";
11
10
  import"./index-fr0wbhdn.js";
12
11
  import {
13
12
  runMigrationsWithRetry
14
- } from "./index-nj360hcs.js";
15
- import"./index-9wnbnx8f.js";
13
+ } from "./index-pb8ysnq2.js";
14
+ import"./index-a6aqpfp6.js";
16
15
  import"./index-58e3y90n.js";
17
- import"./index-txs8tce6.js";
18
- import"./index-2p37txes.js";
16
+ import"./index-0k283v27.js";
17
+ import"./index-ga5q492k.js";
19
18
  import"./index-fb3zxn06.js";
20
19
  import {
21
20
  setSqlitePragmaConfig,
22
21
  initializeDatabase
23
- } from "./index-q6pjqm49.js";
22
+ } from "./index-agfh931z.js";
24
23
  import"./index-wh9fxds5.js";
25
24
  import"./index-v0p37hm2.js";
26
25
  import"./index-96ztjvkn.js";
27
26
  import"./index-1d042x6w.js";
28
- import"./index-xa9mmq6c.js";
29
- import"./index-h9m41624.js";
30
- import"./index-ak11t3gm.js";
31
- import"./index-smtbdmc3.js";
27
+ import"./index-36wseasx.js";
28
+ import"./index-2ny9xwdn.js";
29
+ import"./index-0tz2fzpq.js";
30
+ import"./index-hsv31e69.js";
32
31
  import {
33
32
  closeQuietly
34
33
  } from "./index-8ajstryz.js";
35
- import"./index-fxbk7gk3.js";
34
+ import"./index-tad3can2.js";
36
35
  import {
37
36
  serveWorkerJobs
38
37
  } from "./index-7v05d9b7.js";
@@ -35,25 +35,24 @@ import {
35
35
  sweepAllRegisteredProjects2,
36
36
  _setTestProviderFactoryForProject2,
37
37
  _resetProjectEmbeddingRegistryForTests2
38
- } from "./index-s79g172v.js";
38
+ } from "./index-0mdh2cke.js";
39
39
  import"./index-4dhv7mqz.js";
40
40
  import"./index-2amn2s73.js";
41
41
  import"./index-qt1qqasc.js";
42
- import"./index-hkh8x221.js";
42
+ import"./index-tj5gz396.js";
43
43
  import"./index-4dpvnp8k.js";
44
- import"./index-jz5bk7xd.js";
45
- import"./index-qcz1fy7h.js";
46
- import"./index-dj2p8653.js";
47
- import"./index-txs8tce6.js";
48
- import"./index-h9m41624.js";
49
- import"./index-xa9mmq6c.js";
44
+ import"./index-qperbvjn.js";
45
+ import"./index-hexdee98.js";
46
+ import"./index-hsyczpn7.js";
47
+ import"./index-0k283v27.js";
48
+ import"./index-2ny9xwdn.js";
49
+ import"./index-36wseasx.js";
50
50
  import"./index-96ztjvkn.js";
51
51
  import"./index-v0p37hm2.js";
52
- import"./index-fxbk7gk3.js";
53
- import"./index-ak11t3gm.js";
52
+ import"./index-tad3can2.js";
53
+ import"./index-0tz2fzpq.js";
54
54
  import"./index-gzy5w8ya.js";
55
- import"./index-jrfre9ah.js";
56
- import"./index-g2q4htwp.js";
55
+ import"./index-82dfe8en.js";
57
56
  import"./index-pavzsdc6.js";
58
57
  import"./index-z4p0ry94.js";
59
58
  import"./index-1d042x6w.js";
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
19
19
  await main();
20
20
  async function main() {
21
21
  if (input.v2ArchiveReader) {
22
- const { serveV2ArchiveReads } = await import("./v2-archive-reader-665x2x4d.js");
22
+ const { serveV2ArchiveReads } = await import("./v2-archive-reader-b76tfeje.js");
23
23
  await serveV2ArchiveReads(port, openConnections);
24
24
  return;
25
25
  }
@@ -30,9 +30,9 @@ serveWorkerJobs(async (input, port) => {
30
30
  { log }
31
31
  ] = await Promise.all([
32
32
  import("./sqlite-zdgm52sv.js"),
33
- import("./read-session-raw-x7a9b3jm.js"),
33
+ import("./read-session-raw-04ger9zt.js"),
34
34
  import("./harness-e4avh192.js"),
35
- import("./logger-qwnbcfj9.js")
35
+ import("./logger-sw7z6sjz.js")
36
36
  ]);
37
37
  setHarness(input.harness ?? "opencode");
38
38
  registerSqliteDiagnosticSink(log, getHarness);
@@ -46,13 +46,13 @@ serveWorkerJobs(async (input, port) => {
46
46
  openConnections.add(db);
47
47
  db.exec("PRAGMA busy_timeout = 250");
48
48
  if (input.ftsRowidBackfill) {
49
- const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-msffhkve.js");
49
+ const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-kx1bsdyg.js");
50
50
  db.exec("PRAGMA busy_timeout = 0");
51
51
  await runMessageFtsRowidMapBackfill(db);
52
52
  reply = { kind: "fts-rowid-backfill" };
53
53
  } else if (input.searchArchive) {
54
- const { renderSearchArchive } = await import("./search-archive-df09r8qn.js");
55
- const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-x7a9b3jm.js");
54
+ const { renderSearchArchive } = await import("./search-archive-6tgh88xp.js");
55
+ const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-04ger9zt.js");
56
56
  const archive = input.searchArchive;
57
57
  let raw;
58
58
  try {
@@ -81,7 +81,7 @@ serveWorkerJobs(async (input, port) => {
81
81
  const { setHarness } = await import("./harness-e4avh192.js");
82
82
  setHarness(input.harness ?? "opencode");
83
83
  const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
84
- import("./message-index-bounded-0q7sy04w.js"),
84
+ import("./message-index-bounded-2shxmht9.js"),
85
85
  import("./sqlite-context-pragmas-mv9jqwjh.js")
86
86
  ]);
87
87
  configureContextDatabasePragmas(db);
@@ -95,7 +95,7 @@ serveWorkerJobs(async (input, port) => {
95
95
  measurements: result.measurements
96
96
  };
97
97
  } else if (input.tagRatio !== undefined) {
98
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-96vyd6ra.js");
98
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-kdb4qsyq.js");
99
99
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
100
100
  if (delta)
101
101
  reply = { kind: "tag-delta", delta };
@@ -38,25 +38,24 @@ import {
38
38
  readSessionChunk2,
39
39
  getRawSessionMessageIdsThrough2,
40
40
  readRawSessionSeedTail2
41
- } from "./index-rvmhyk89.js";
42
- import"./index-4wpfbzks.js";
41
+ } from "./index-qb75tv9j.js";
42
+ import"./index-bkg4hdyh.js";
43
43
  import"./index-1zx87sdm.js";
44
- import"./index-brj6was5.js";
44
+ import"./index-em92bp7f.js";
45
45
  import"./index-4dpvnp8k.js";
46
- import"./index-smtbdmc3.js";
47
- import"./index-9wnbnx8f.js";
48
- import"./index-xa9mmq6c.js";
46
+ import"./index-hsv31e69.js";
47
+ import"./index-a6aqpfp6.js";
48
+ import"./index-36wseasx.js";
49
49
  import"./index-96ztjvkn.js";
50
50
  import"./index-v0p37hm2.js";
51
51
  import"./index-58e3y90n.js";
52
- import"./index-fxbk7gk3.js";
52
+ import"./index-tad3can2.js";
53
53
  import {
54
54
  hasMeaningfulUserText2,
55
55
  extractTexts2
56
- } from "./index-ak11t3gm.js";
56
+ } from "./index-0tz2fzpq.js";
57
57
  import"./index-gzy5w8ya.js";
58
- import"./index-jrfre9ah.js";
59
- import"./index-g2q4htwp.js";
58
+ import"./index-82dfe8en.js";
60
59
  import"./index-pavzsdc6.js";
61
60
  import"./index-z4p0ry94.js";
62
61
  import"./index-1d042x6w.js";
@@ -29,12 +29,11 @@ import {
29
29
  hasRawSessionMessageByIdFromDb2,
30
30
  readRawSeedTailFromDb2,
31
31
  readRawSessionBoundaryEndpointsFromDb2
32
- } from "./index-xa9mmq6c.js";
32
+ } from "./index-36wseasx.js";
33
33
  import"./index-96ztjvkn.js";
34
34
  import"./index-v0p37hm2.js";
35
35
  import"./index-gzy5w8ya.js";
36
- import"./index-jrfre9ah.js";
37
- import"./index-g2q4htwp.js";
36
+ import"./index-82dfe8en.js";
38
37
  import"./index-pavzsdc6.js";
39
38
  import"./index-z4p0ry94.js";
40
39
  import"./index-1d042x6w.js";