@cortexkit/opencode-magic-context 0.49.6 → 0.49.7

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/auto-search-worker.js +10 -7
  2. package/dist/{compaction-marker-candidates-cz72pm1t.js → compaction-marker-candidates-a0edbqrr.js} +2 -2
  3. package/dist/compaction-marker-candidates-worker.js +2 -2
  4. package/dist/{conflict-warning-hook-1jq1rxx7.js → conflict-warning-hook-myk5hbt9.js} +5 -5
  5. package/dist/{context-ae3gxdye.js → context-ffr7e0g7.js} +46 -34
  6. package/dist/{embedding-backfill-dtjmyktb.js → embedding-backfill-re16xncd.js} +6 -6
  7. package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
  8. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts +6 -3
  9. package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
  10. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +7 -1
  11. package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -1
  12. package/dist/features/magic-context/dreamer/map-memories.d.ts +2 -2
  13. package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
  14. package/dist/features/magic-context/dreamer/primer-seed.d.ts +2 -0
  15. package/dist/features/magic-context/dreamer/primer-seed.d.ts.map +1 -1
  16. package/dist/features/magic-context/dreamer/refresh-primers.d.ts +2 -2
  17. package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
  18. package/dist/features/magic-context/storage-meta-persisted.d.ts +10 -3
  19. package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
  20. package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
  21. package/dist/features/magic-context/storage-replay-document.d.ts +4 -0
  22. package/dist/features/magic-context/storage-replay-document.d.ts.map +1 -1
  23. package/dist/hooks/magic-context/apply-operations.d.ts +7 -0
  24. package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/history-boundary-repair.d.ts.map +1 -1
  27. package/dist/hooks/magic-context/lkg-persist.d.ts.map +1 -1
  28. package/dist/hooks/magic-context/note-nudger.d.ts +5 -3
  29. package/dist/hooks/magic-context/note-nudger.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/postprocess-read-cache.d.ts.map +1 -1
  31. package/dist/hooks/magic-context/read-session-chunk.d.ts +7 -0
  32. package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/replay-committed-drops.d.ts +9 -0
  34. package/dist/hooks/magic-context/replay-committed-drops.d.ts.map +1 -0
  35. package/dist/hooks/magic-context/rust-lkg-freeze-registry.d.ts +2 -2
  36. package/dist/hooks/magic-context/rust-lkg-freeze-registry.d.ts.map +1 -1
  37. package/dist/hooks/magic-context/rust-mode-transform.d.ts +3 -0
  38. package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
  39. package/dist/hooks/magic-context/rust-served-raw.d.ts +29 -0
  40. package/dist/hooks/magic-context/rust-served-raw.d.ts.map +1 -0
  41. package/dist/hooks/magic-context/strip-content.d.ts +23 -24
  42. package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
  43. package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
  44. package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
  45. package/dist/hooks/magic-context/tool-drop-target.d.ts +2 -0
  46. package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
  47. package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
  48. package/dist/{index-6q5h70h2.js → index-0gyq3djm.js} +1 -1
  49. package/dist/{index-vnjhmkwk.js → index-37q80veb.js} +1 -1
  50. package/dist/{index-besxhcsh.js → index-4btknbqh.js} +9 -8
  51. package/dist/{index-vh3e2mvr.js → index-5tbvdff4.js} +59 -28
  52. package/dist/{index-cm4hmxyk.js → index-9yyqq3mm.js} +1 -1
  53. package/dist/{index-ab3bgm2m.js → index-a8acx4gc.js} +2 -2
  54. package/dist/{index-j55vn694.js → index-ax2jhztn.js} +1 -1
  55. package/dist/{index-zgzdm6dg.js → index-ebnngykq.js} +145 -94
  56. package/dist/{index-g9exahnx.js → index-g8qbdb03.js} +1 -1
  57. package/dist/{index-ch08qwgd.js → index-j58gqrn2.js} +65 -65
  58. package/dist/{index-xqyj5c85.js → index-j5hce1ab.js} +2 -2
  59. package/dist/{index-0nnd4bry.js → index-j8epsc0g.js} +34 -13
  60. package/dist/{index-vztbgcdk.js → index-n5a170gs.js} +227 -38
  61. package/dist/{index-s0gsmthp.js → index-n7kwfw2r.js} +4 -4
  62. package/dist/{index-ck6y3td2.js → index-rwmpkss5.js} +3 -3
  63. package/dist/{index-bg5qqene.js → index-rzmjkdd6.js} +1 -1
  64. package/dist/{index-9s58tq95.js → index-sf94at64.js} +3 -3
  65. package/dist/{index-f3dnvnw6.js → index-sh91t19a.js} +1 -1
  66. package/dist/{index-mj1fgfrk.js → index-tagss15p.js} +857 -125
  67. package/dist/{index-1j8jcjpa.js → index-tmtty2x5.js} +1 -1
  68. package/dist/{index-hr64sth2.js → index-vt4sf4ep.js} +1 -1
  69. package/dist/{index-9m7bn21d.js → index-w4mw92w3.js} +1 -1
  70. package/dist/{index-7q1m1qjk.js → index-w6bd03dc.js} +1 -1
  71. package/dist/{index-a796ct3s.js → index-w6vr754t.js} +4 -4
  72. package/dist/{index-1xaw2pq8.js → index-wq16ahsn.js} +5 -5
  73. package/dist/index.js +36 -36
  74. package/dist/{message-index-bounded-630j53ps.js → message-index-bounded-04rycpx4.js} +9 -9
  75. package/dist/{message-index-c84wm2g0.js → message-index-rqtse28y.js} +9 -9
  76. package/dist/{message-time-backfill-8kj57qe3.js → message-time-backfill-a5ytnp53.js} +1 -1
  77. package/dist/migration-worker.js +6 -6
  78. package/dist/plugin/messages-transform.d.ts.map +1 -1
  79. package/dist/{project-embedding-registry-vv59t7ah.js → project-embedding-registry-k0sd9k7v.js} +5 -5
  80. package/dist/raw-ordinal-warmup-worker.js +17 -15
  81. package/dist/{read-session-chunk-t3vjd0h0.js → read-session-chunk-h1btx938.js} +7 -5
  82. package/dist/{read-session-raw-gf7eytnm.js → read-session-raw-vdf4wh78.js} +2 -2
  83. package/dist/{recomp-orchestrator-1d08g57a.js → recomp-orchestrator-trcgmm23.js} +20 -20
  84. package/dist/{search-kth2p6cc.js → search-3rbdx6hw.js} +16 -16
  85. package/dist/{send-session-notification-3j6krd4w.js → send-session-notification-2tp44tfa.js} +4 -4
  86. package/dist/shared/processed-image-eligibility.d.ts +22 -0
  87. package/dist/shared/processed-image-eligibility.d.ts.map +1 -0
  88. package/dist/shared/recovery-reasoning-prefix.d.ts +9 -0
  89. package/dist/shared/recovery-reasoning-prefix.d.ts.map +1 -0
  90. package/dist/shared/sqlite.d.ts +1 -1
  91. package/dist/shared/sqlite.d.ts.map +1 -1
  92. package/dist/shared/tag-transcript.d.ts +9 -0
  93. package/dist/shared/tag-transcript.d.ts.map +1 -1
  94. package/dist/{sqlite-d7edbk1s.js → sqlite-j3tvg8r0.js} +1 -1
  95. package/dist/{storage-memory-af5zdz98.js → storage-memory-8168bgef.js} +2 -2
  96. package/dist/{storage-tags-dyj7mmbq.js → storage-tags-61z5j2f9.js} +2 -2
  97. package/dist/tools/ctx-expand/search-archive.d.ts +4 -0
  98. package/dist/tools/ctx-expand/search-archive.d.ts.map +1 -0
  99. package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
  100. package/dist/{transform-postprocess-phase-bv3kb5s1.js → transform-postprocess-phase-7qts7h54.js} +20 -20
  101. package/dist/v2/auto-search-worker.js +10 -7
  102. package/dist/v2/{compaction-marker-candidates-6gqp5wrc.js → compaction-marker-candidates-6nypjkpf.js} +2 -2
  103. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  104. package/dist/v2/{context-p8f2shp1.js → context-xq4rtywr.js} +1019 -233
  105. package/dist/v2/{embedding-backfill-cg4rv90f.js → embedding-backfill-xd9ygzgd.js} +6 -6
  106. package/dist/v2/hooks/payload.d.ts.map +1 -1
  107. package/dist/v2/{message-index-3ws17x1g.js → message-index-8e5z2xx8.js} +9 -9
  108. package/dist/v2/{message-index-bounded-yzxmf6vp.js → message-index-bounded-5vh1h2g7.js} +9 -9
  109. package/dist/v2/{message-time-backfill-5nf10c65.js → message-time-backfill-2z365239.js} +1 -1
  110. package/dist/v2/migration-worker.js +6 -6
  111. package/dist/v2/{project-embedding-registry-rsnf2263.js → project-embedding-registry-b77awytr.js} +5 -5
  112. package/dist/v2/raw-ordinal-warmup-worker.js +17 -15
  113. package/dist/v2/{read-session-chunk-vtb0w2kd.js → read-session-chunk-4sat83cx.js} +7 -5
  114. package/dist/v2/{read-session-raw-gpcddemt.js → read-session-raw-a3hw9jsp.js} +2 -2
  115. package/dist/v2/{recomp-orchestrator-v64r4s4r.js → recomp-orchestrator-n11zv1f1.js} +19 -19
  116. package/dist/v2/{search-bpa4fxq1.js → search-mvgqtkkz.js} +16 -16
  117. package/dist/v2/{send-session-notification-5aj2j7vf.js → send-session-notification-ppgc8qdz.js} +4 -4
  118. package/dist/v2/{server-wrem2nmz.js → server-1rfgbjfn.js} +1 -1
  119. package/dist/v2/{server-qn23p4h7.js → server-7srtwsa4.js} +5 -5
  120. package/dist/v2/{server-cm4hmxyk.js → server-9yyqq3mm.js} +1 -1
  121. package/dist/v2/{server-yezz0cp2.js → server-brhj8qtd.js} +1 -1
  122. package/dist/v2/{server-387vkhjq.js → server-dd0nja67.js} +1 -1
  123. package/dist/v2/{server-keswwkvv.js → server-fpqe39as.js} +1 -1
  124. package/dist/v2/{server-158ehmk2.js → server-fw31krgq.js} +3 -3
  125. package/dist/v2/{server-fby0cxbq.js → server-gtv9wbhq.js} +227 -38
  126. package/dist/v2/{server-ww9nr8pe.js → server-hcvcxzx7.js} +2 -2
  127. package/dist/v2/{server-0nnd4bry.js → server-j8epsc0g.js} +34 -13
  128. package/dist/v2/{server-x2r63c0x.js → server-jdwd03ep.js} +4 -4
  129. package/dist/v2/{server-btgnsv7w.js → server-kdrezdy0.js} +1 -1
  130. package/dist/v2/{server-7skbfb81.js → server-mv1w7t6z.js} +61 -30
  131. package/dist/v2/{server-aa9w15cs.js → server-nfan6zb6.js} +65 -65
  132. package/dist/v2/{server-9zqewm6g.js → server-qcw43339.js} +1 -1
  133. package/dist/v2/{server-f9py7s7a.js → server-sy4b1sra.js} +1 -1
  134. package/dist/v2/{server-09g9pkvx.js → server-v4fwha43.js} +9 -8
  135. package/dist/v2/{server-yd01snxq.js → server-w3zeywp1.js} +1 -1
  136. package/dist/v2/{server-4tn95znb.js → server-wkdgjjch.js} +1 -1
  137. package/dist/v2/{server-6a9mxnb2.js → server-x08d1xf3.js} +1 -1
  138. package/dist/v2/server.js +4 -4
  139. package/dist/v2/{sqlite-d7edbk1s.js → sqlite-j3tvg8r0.js} +1 -1
  140. package/dist/v2/{storage-memory-af5zdz98.js → storage-memory-8168bgef.js} +2 -2
  141. package/dist/v2/{storage-tags-d47bpaqa.js → storage-tags-j2fzq3sw.js} +2 -2
  142. package/dist/v2/{wrapup-orchestrator-cahk37n7.js → wrapup-orchestrator-s92ebfzv.js} +19 -19
  143. package/dist/{wrapup-orchestrator-mqp0v195.js → wrapup-orchestrator-df61jmz9.js} +21 -21
  144. package/package.json +3 -3
  145. package/src/shared/processed-image-eligibility.test.ts +68 -0
  146. package/src/shared/processed-image-eligibility.ts +41 -0
  147. package/src/shared/processed-image-position-review.json +20 -0
  148. package/src/shared/processed-image-position-review.test.ts +19 -0
  149. package/src/shared/recovery-reasoning-prefix.test.ts +34 -0
  150. package/src/shared/recovery-reasoning-prefix.ts +35 -0
  151. package/src/shared/sqlite-writer-diagnostics.test.ts +31 -0
  152. package/src/shared/sqlite.ts +63 -22
  153. package/src/shared/tag-transcript.ts +118 -0
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  getTagIdentityWriteGeneration2,
16
16
  getSqliteDatabasePath2
17
- } from "./index-0nnd4bry.js";
17
+ } from "./index-j8epsc0g.js";
18
18
  import {
19
19
  tagIdentityRevisionKey,
20
20
  tagOrderConstraintIndex,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-tqf7yg27.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./index-ab3bgm2m.js";
13
+ } from "./index-a8acx4gc.js";
14
14
  import {
15
15
  getErrorMessage
16
16
  } from "./index-y8v6yerm.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-nsjyysj0.js";
4
4
  import {
5
5
  canonicalProjectDirectory
6
- } from "./index-bg5qqene.js";
6
+ } from "./index-rzmjkdd6.js";
7
7
 
8
8
  // src/shared/rpc-utils.ts
9
9
  import { execFile, execFileSync } from "node:child_process";
@@ -15,7 +15,7 @@ import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./index-9s58tq95.js";
18
+ } from "./index-sf94at64.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./index-qt1qqasc.js";
@@ -15,7 +15,7 @@ import {
15
15
  getActiveCompartmentRun,
16
16
  markActiveCompartmentRunPublished,
17
17
  registerActiveCompartmentRun
18
- } from "./index-vh3e2mvr.js";
18
+ } from "./index-5tbvdff4.js";
19
19
  import {
20
20
  getWrapupInProgressState,
21
21
  acquireWrapupInProgress,
@@ -24,17 +24,17 @@ import {
24
24
  getHistorianFailureState,
25
25
  clearEmergencyRecovery,
26
26
  prepareRawSessionOrdinals2
27
- } from "./index-vztbgcdk.js";
27
+ } from "./index-n5a170gs.js";
28
28
  import {
29
29
  pushNotification2
30
30
  } from "./index-x8a7jmkh.js";
31
31
  import {
32
32
  sendStatusNotification2
33
- } from "./index-hr64sth2.js";
33
+ } from "./index-vt4sf4ep.js";
34
34
  import {
35
35
  setRecompStarting2,
36
36
  setRecompTerminal2
37
- } from "./index-ck6y3td2.js";
37
+ } from "./index-rwmpkss5.js";
38
38
 
39
39
  // src/hooks/magic-context/wrapup-orchestrator.ts
40
40
  import * as crypto from "node:crypto";
@@ -20,23 +20,23 @@ import {
20
20
  import {
21
21
  withSqliteBackgroundWriter2,
22
22
  withoutSqliteTransformPass2
23
- } from "./index-0nnd4bry.js";
23
+ } from "./index-j8epsc0g.js";
24
24
  import {
25
25
  cleanUserText2
26
- } from "./index-vztbgcdk.js";
26
+ } from "./index-n5a170gs.js";
27
27
  import {
28
28
  recordMessageFtsRowid,
29
29
  recordIndexedMessageTime,
30
30
  messageFtsOrdinalRangeIsMapped,
31
31
  deleteUnmappedMessageFtsRows
32
- } from "./index-bg5qqene.js";
32
+ } from "./index-rzmjkdd6.js";
33
33
  import {
34
34
  isPidAlive,
35
35
  readProcessStartTime
36
- } from "./index-9m7bn21d.js";
36
+ } from "./index-w4mw92w3.js";
37
37
  import {
38
38
  deleteChunkEmbedBackoffForSession
39
- } from "./index-j55vn694.js";
39
+ } from "./index-ax2jhztn.js";
40
40
  import {
41
41
  ensurePrivateStorageDirectorySync,
42
42
  writeStorageFileSync,
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ import {
72
72
  checkCompactionMarkerConsistency,
73
73
  clearInjectionCache,
74
74
  clearNoteNudgeTriggerOnly
75
- } from "./index-vh3e2mvr.js";
75
+ } from "./index-5tbvdff4.js";
76
76
  import"./index-sd3egckz.js";
77
77
  import {
78
78
  hasTrustedAbsoluteWall,
@@ -89,7 +89,7 @@ import {
89
89
  formatOpenCodeDbMissingBanner,
90
90
  claimOpenCodeDbDiagnosticOnce
91
91
  } from "./index-58e3y90n.js";
92
- import"./index-0nnd4bry.js";
92
+ import"./index-j8epsc0g.js";
93
93
  import {
94
94
  openOpenCodeDb,
95
95
  DREAMER_SYSTEM_PROMPT,
@@ -158,7 +158,7 @@ import {
158
158
  parameterDescriptionsFor,
159
159
  MagicContextRpcServer,
160
160
  applyHiddenSubagentTemperature
161
- } from "./index-mj1fgfrk.js";
161
+ } from "./index-tagss15p.js";
162
162
  import {
163
163
  formatFailClosedBlockingMessage,
164
164
  createFailClosedController,
@@ -173,7 +173,7 @@ import {
173
173
  openDatabaseAsync,
174
174
  isDatabasePersisted,
175
175
  getDatabasePersistenceError
176
- } from "./index-besxhcsh.js";
176
+ } from "./index-4btknbqh.js";
177
177
  import {
178
178
  setHomeProjectPermission,
179
179
  ProjectIdentityError,
@@ -184,7 +184,7 @@ import {
184
184
  beginBootQuietPeriod,
185
185
  bootQuietRemainingMs,
186
186
  scheduleAfterBootQuiet
187
- } from "./index-g9exahnx.js";
187
+ } from "./index-g8qbdb03.js";
188
188
  import {
189
189
  deleteTemporalDecision
190
190
  } from "./index-1bt88epp.js";
@@ -193,17 +193,17 @@ import {
193
193
  observeSessionActivity,
194
194
  backfillSessionActivity,
195
195
  deleteIndexedMessage2
196
- } from "./index-1xaw2pq8.js";
196
+ } from "./index-wq16ahsn.js";
197
197
  import {
198
198
  recordSessionProjectIdentity,
199
199
  getProjectEmbeddingSnapshot2,
200
200
  getEmbeddingCoverageStatus2,
201
201
  getAutoEmbeddingSessionCoverage2
202
- } from "./index-9s58tq95.js";
203
- import"./index-9m7bn21d.js";
202
+ } from "./index-sf94at64.js";
203
+ import"./index-w4mw92w3.js";
204
204
  import"./index-fb3zxn06.js";
205
- import"./index-bg5qqene.js";
206
- import"./index-xqyj5c85.js";
205
+ import"./index-rzmjkdd6.js";
206
+ import"./index-j5hce1ab.js";
207
207
  import"./index-fr0wbhdn.js";
208
208
  import {
209
209
  preloadTokenizer
@@ -241,12 +241,12 @@ import {
241
241
  detectOverflow,
242
242
  isAnthropicFamilyRoute,
243
243
  readRawSessionMessages2
244
- } from "./index-vztbgcdk.js";
244
+ } from "./index-n5a170gs.js";
245
245
  import"./index-vkbqdnkj.js";
246
246
  import {
247
247
  getDefaultSubcConnectionFile,
248
248
  SubcModuleTransport
249
- } from "./index-ch08qwgd.js";
249
+ } from "./index-j58gqrn2.js";
250
250
  import {
251
251
  isEmbeddingHostBusy2
252
252
  } from "./index-qt1qqasc.js";
@@ -257,16 +257,16 @@ import {
257
257
  } from "./index-v0p37hm2.js";
258
258
  import {
259
259
  forgetRawSessionOrdinalWatermark2
260
- } from "./index-vnjhmkwk.js";
260
+ } from "./index-37q80veb.js";
261
261
  import {
262
262
  observeOpenCodeTurnEvent,
263
263
  clearTrackedOpenCodeSession,
264
264
  findLastAssistantModelFromOpenCodeDb
265
- } from "./index-ab3bgm2m.js";
265
+ } from "./index-a8acx4gc.js";
266
266
  import {
267
267
  sendCommandResult2,
268
268
  sendStatusNotification2
269
- } from "./index-hr64sth2.js";
269
+ } from "./index-vt4sf4ep.js";
270
270
  import {
271
271
  detectConflicts,
272
272
  resolveCompactionForBoot
@@ -274,13 +274,13 @@ import {
274
274
  import {
275
275
  sendConflictWarning2,
276
276
  cleanupConflictWarnings2
277
- } from "./index-6q5h70h2.js";
277
+ } from "./index-0gyq3djm.js";
278
278
  import"./index-1zx87sdm.js";
279
279
  import {
280
280
  stripPersistedAssistantText,
281
281
  deleteTagsByMessageId2,
282
282
  getMaxTagNumberBySession2
283
- } from "./index-1j8jcjpa.js";
283
+ } from "./index-tmtty2x5.js";
284
284
  import {
285
285
  resolveHistorianModel2,
286
286
  resolveOpenCodeAgentOverrides2,
@@ -290,26 +290,26 @@ import {
290
290
  buildDreamTaskRuntimeConfigs2,
291
291
  userMemoryCollectionEnabled2
292
292
  } from "./index-ghc9f0n7.js";
293
- import"./index-j55vn694.js";
294
- import"./index-s0gsmthp.js";
293
+ import"./index-ax2jhztn.js";
294
+ import"./index-n7kwfw2r.js";
295
295
  import {
296
296
  pushNotification2
297
297
  } from "./index-x8a7jmkh.js";
298
298
  import"./index-gbmqa9x9.js";
299
299
  import"./index-4dhv7mqz.js";
300
- import"./index-7q1m1qjk.js";
301
- import"./index-cm4hmxyk.js";
302
- import"./index-f3dnvnw6.js";
300
+ import"./index-w6bd03dc.js";
301
+ import"./index-9yyqq3mm.js";
302
+ import"./index-sh91t19a.js";
303
303
  import {
304
304
  createTagger,
305
305
  cavemanWordRulesForLanguage,
306
306
  setCtxReduceRegisteredGlobally,
307
307
  clearToolPermissionDenied,
308
308
  resetDegradedCacheCount2
309
- } from "./index-zgzdm6dg.js";
309
+ } from "./index-ebnngykq.js";
310
310
  import {
311
311
  runManagedRecomp2
312
- } from "./index-ck6y3td2.js";
312
+ } from "./index-rwmpkss5.js";
313
313
  import {
314
314
  isValidSemver,
315
315
  compareSemverCore
@@ -317,7 +317,7 @@ import {
317
317
  import"./index-fmsr7v69.js";
318
318
  import {
319
319
  runManagedWrapup2
320
- } from "./index-a796ct3s.js";
320
+ } from "./index-w6vr754t.js";
321
321
  import {
322
322
  __toESM,
323
323
  __commonJS
@@ -8179,7 +8179,7 @@ var require_src2 = __commonJS(function(exports, module) {
8179
8179
  // package.json
8180
8180
  var package_default = {
8181
8181
  name: "@cortexkit/opencode-magic-context",
8182
- version: "0.49.6",
8182
+ version: "0.49.7",
8183
8183
  type: "module",
8184
8184
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
8185
8185
  main: "dist/index.js",
@@ -8222,8 +8222,8 @@ var package_default = {
8222
8222
  "check:tui-compiled": 'git diff --exit-code -- src/tui-compiled && test -z "$(git status --porcelain -- src/tui-compiled)"',
8223
8223
  "check:transformers-node-wasm": "bun scripts/verify-transformers-node-wasm.ts",
8224
8224
  typecheck: "tsc -p ../retina-local-fs/tsconfig.build.json && tsc --noEmit && tsc -p tsconfig.scripts.json",
8225
- test: "bun ../../scripts/check-bun.mjs && bun install --frozen-lockfile && BUN_JSC_useOMGJIT=0 bun test --parallel=4 --timeout 30000",
8226
- "test:serial": "bun install --frozen-lockfile && BUN_JSC_useOMGJIT=0 bun test --timeout 30000",
8225
+ test: "bun ../../scripts/check-bun.mjs && bun install --frozen-lockfile && MC_REVIEW_ASSERT_LIVENESS=1 BUN_JSC_useOMGJIT=0 bun test --parallel=4 --timeout 30000",
8226
+ "test:serial": "bun install --frozen-lockfile && MC_REVIEW_ASSERT_LIVENESS=1 BUN_JSC_useOMGJIT=0 bun test --timeout 30000",
8227
8227
  "test:parallel:probe": "bun scripts/verify-parallel-db-isolation.ts",
8228
8228
  lint: "bun ../../scripts/check-bun.mjs && biome check .",
8229
8229
  "lint:fix": "biome check --write .",
@@ -12057,7 +12057,7 @@ async function setup(context) {
12057
12057
  log2("v2 setup() called on a host without session.hook; v1 server lane owns this host, v2 lane inert");
12058
12058
  return async () => {};
12059
12059
  }
12060
- const { registerContext } = await import("./context-ae3gxdye.js");
12060
+ const { registerContext } = await import("./context-ffr7e0g7.js");
12061
12061
  setHarness2("opencode2");
12062
12062
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
12063
12063
  const duties = await registerContext(context);
@@ -12128,7 +12128,7 @@ var server = async (ctx) => {
12128
12128
  if (hasBannerEntries)
12129
12129
  setTimeout(async () => {
12130
12130
  try {
12131
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-3j6krd4w.js"));
12131
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-2tp44tfa.js"));
12132
12132
  const clientWithSessions = ctx.client;
12133
12133
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12134
12134
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12145,7 +12145,7 @@ var server = async (ctx) => {
12145
12145
  log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
12146
12146
  setTimeout(async () => {
12147
12147
  try {
12148
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-3j6krd4w.js"));
12148
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-2tp44tfa.js"));
12149
12149
  const clientWithSessions = ctx.client;
12150
12150
  const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
12151
12151
  const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
@@ -12421,12 +12421,12 @@ var server = async (ctx) => {
12421
12421
  {
12422
12422
  const fence = getSchemaFenceRejection();
12423
12423
  if (fence) {
12424
- importPluginModule(() => import("./conflict-warning-hook-1jq1rxx7.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12424
+ importPluginModule(() => import("./conflict-warning-hook-myk5hbt9.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
12425
12425
  }
12426
12426
  }
12427
12427
  const serverUrl = ctx.serverUrl;
12428
12428
  const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
12429
- importPluginModule(() => import("./send-session-notification-3j6krd4w.js")).then(({ setNotificationServerUrl }) => {
12429
+ importPluginModule(() => import("./send-session-notification-2tp44tfa.js")).then(({ setNotificationServerUrl }) => {
12430
12430
  setNotificationServerUrl(serverUrlStr);
12431
12431
  }).catch((error) => log2("[magic-context] notification transport unavailable:", error));
12432
12432
  if (conflictResult?.hasConflict) {
@@ -12449,7 +12449,7 @@ var server = async (ctx) => {
12449
12449
  }) => {
12450
12450
  if (!shouldShowAnnouncement())
12451
12451
  return;
12452
- return importPluginModule(() => import("./conflict-warning-hook-1jq1rxx7.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12452
+ return importPluginModule(() => import("./conflict-warning-hook-myk5hbt9.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
12453
12453
  }).catch(() => {});
12454
12454
  }, 8000);
12455
12455
  }
@@ -12523,8 +12523,8 @@ var server = async (ctx) => {
12523
12523
  tryReopenStorage,
12524
12524
  rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
12525
12525
  onStorageBusyRefusal: async (sessionId, message) => {
12526
- const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-3j6krd4w.js"));
12527
- const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-bv3kb5s1.js"));
12526
+ const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-2tp44tfa.js"));
12527
+ const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-7qts7h54.js"));
12528
12528
  await sendStatusNotification(ctx.client, sessionId, message, {
12529
12529
  toastDurationMs: 15000
12530
12530
  });
@@ -2,9 +2,9 @@ import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withIndexChunk2,
4
4
  yieldIndexChunk2
5
- } from "./index-0nnd4bry.js";
5
+ } from "./index-j8epsc0g.js";
6
6
  import"./index-1zx87sdm.js";
7
- import"./index-1j8jcjpa.js";
7
+ import"./index-tmtty2x5.js";
8
8
  import"./index-qx53vezw.js";
9
9
  import"./index-pavzsdc6.js";
10
10
  import"./index-0sahzkwr.js";
@@ -12,10 +12,10 @@ import"./index-nsjyysj0.js";
12
12
  import"./index-1bt88epp.js";
13
13
  import"./index-k6xvbj2e.js";
14
14
  import"./index-v0p37hm2.js";
15
- import"./index-vnjhmkwk.js";
15
+ import"./index-37q80veb.js";
16
16
  import"./index-58e3y90n.js";
17
- import"./index-ab3bgm2m.js";
18
- import"./index-vztbgcdk.js";
17
+ import"./index-a8acx4gc.js";
18
+ import"./index-n5a170gs.js";
19
19
  import"./index-h2wc01qk.js";
20
20
  import {
21
21
  MESSAGE_INDEX_MAX_FTS_BYTES2,
@@ -24,11 +24,11 @@ import {
24
24
  markMessageIndexDirty2,
25
25
  getIndexableContent2,
26
26
  indexSingleMessage2
27
- } from "./index-1xaw2pq8.js";
28
- import"./index-bg5qqene.js";
29
- import"./index-9m7bn21d.js";
27
+ } from "./index-wq16ahsn.js";
28
+ import"./index-rzmjkdd6.js";
29
+ import"./index-w4mw92w3.js";
30
30
  import"./index-vkbqdnkj.js";
31
- import"./index-j55vn694.js";
31
+ import"./index-ax2jhztn.js";
32
32
  import"./index-4mjhqadz.js";
33
33
 
34
34
  // src/features/magic-context/message-index-bounded.ts
@@ -17,23 +17,23 @@ import {
17
17
  indexMessagesAfterOrdinal2,
18
18
  indexSourcesAfterOrdinal2,
19
19
  sweepOrphanedOpenCodeMessageIndexes2
20
- } from "./index-1xaw2pq8.js";
21
- import"./index-j55vn694.js";
20
+ } from "./index-wq16ahsn.js";
21
+ import"./index-ax2jhztn.js";
22
22
  import"./index-vkbqdnkj.js";
23
- import"./index-9m7bn21d.js";
24
- import"./index-bg5qqene.js";
25
- import"./index-vztbgcdk.js";
26
- import"./index-1j8jcjpa.js";
23
+ import"./index-w4mw92w3.js";
24
+ import"./index-rzmjkdd6.js";
25
+ import"./index-n5a170gs.js";
26
+ import"./index-tmtty2x5.js";
27
27
  import"./index-1zx87sdm.js";
28
- import"./index-ab3bgm2m.js";
29
- import"./index-vnjhmkwk.js";
28
+ import"./index-a8acx4gc.js";
29
+ import"./index-37q80veb.js";
30
30
  import"./index-v0p37hm2.js";
31
31
  import"./index-k6xvbj2e.js";
32
32
  import"./index-h2wc01qk.js";
33
33
  import"./index-1bt88epp.js";
34
34
  import"./index-58e3y90n.js";
35
35
  import"./index-4mjhqadz.js";
36
- import"./index-0nnd4bry.js";
36
+ import"./index-j8epsc0g.js";
37
37
  import"./index-qx53vezw.js";
38
38
  import"./index-nsjyysj0.js";
39
39
  import"./index-0sahzkwr.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withoutSqliteTransformPass2
4
- } from "./index-0nnd4bry.js";
4
+ } from "./index-j8epsc0g.js";
5
5
  import"./index-pavzsdc6.js";
6
6
  import"./index-0sahzkwr.js";
7
7
  import"./index-nsjyysj0.js";
@@ -6,21 +6,21 @@ import {
6
6
  } from "./index-nsjyysj0.js";
7
7
  import {
8
8
  Database2
9
- } from "./index-0nnd4bry.js";
9
+ } from "./index-j8epsc0g.js";
10
10
  import"./index-fr0wbhdn.js";
11
11
  import {
12
12
  runMigrationsWithRetry
13
- } from "./index-xqyj5c85.js";
13
+ } from "./index-j5hce1ab.js";
14
14
  import"./index-1bt88epp.js";
15
15
  import"./index-58e3y90n.js";
16
- import"./index-g9exahnx.js";
17
- import"./index-9m7bn21d.js";
16
+ import"./index-g8qbdb03.js";
17
+ import"./index-w4mw92w3.js";
18
18
  import"./index-fb3zxn06.js";
19
19
  import {
20
20
  setSqlitePragmaConfig,
21
21
  initializeDatabase
22
- } from "./index-besxhcsh.js";
23
- import"./index-bg5qqene.js";
22
+ } from "./index-4btknbqh.js";
23
+ import"./index-rzmjkdd6.js";
24
24
  import"./index-qx53vezw.js";
25
25
  import"./index-h2wc01qk.js";
26
26
  import {
@@ -1 +1 @@
1
- {"version":3,"file":"messages-transform.d.ts","sourceRoot":"","sources":["../../src/plugin/messages-transform.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,oBAAoB,EAI5B,MAAM,6CAA6C,CAAC;AAsBrD,OAAO,EAAqB,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE/E,OAAO,EAEH,KAAK,wBAAwB,EAEhC,MAAM,iDAAiD,CAAC;AAGzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAW/E,eAAO,MAAM,gCAAgC,qIACoF,CAAC;AAElI,qBAAa,2BAA4B,SAAQ,KAAK;IAClD,QAAQ,CAAC,IAAI,8BAA8B;IAC3C,QAAQ,CAAC,WAAW,QAAQ;;CAM/B;AAED,qBAAa,0BAA2B,SAAQ,KAAK;IACjD,QAAQ,CAAC,IAAI,6BAA6B;IAC1C,QAAQ,CAAC,WAAW,QAAQ;;CAM/B;AAED,KAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,OAAO,kBAAkB,EAAE,OAAO,CAAC;IACzC,KAAK,EAAE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,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,qBAAqB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7E,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAmSjG"}
@@ -34,17 +34,17 @@ import {
34
34
  sweepAllRegisteredProjects2,
35
35
  _setTestProviderFactoryForProject2,
36
36
  _resetProjectEmbeddingRegistryForTests2
37
- } from "./index-9s58tq95.js";
38
- import"./index-j55vn694.js";
37
+ } from "./index-sf94at64.js";
38
+ import"./index-ax2jhztn.js";
39
39
  import"./index-4dhv7mqz.js";
40
40
  import"./index-qt1qqasc.js";
41
41
  import"./index-gbmqa9x9.js";
42
42
  import"./index-vkbqdnkj.js";
43
- import"./index-g9exahnx.js";
44
- import"./index-bg5qqene.js";
43
+ import"./index-g8qbdb03.js";
44
+ import"./index-rzmjkdd6.js";
45
45
  import"./index-k6xvbj2e.js";
46
46
  import"./index-4mjhqadz.js";
47
- import"./index-0nnd4bry.js";
47
+ import"./index-j8epsc0g.js";
48
48
  import"./index-qx53vezw.js";
49
49
  import"./index-nsjyysj0.js";
50
50
  import"./index-0sahzkwr.js";
@@ -5,10 +5,19 @@ if (!port)
5
5
  throw new Error("raw ordinal warm-up worker requires a parent port");
6
6
  var input = workerData;
7
7
  port.postMessage({ kind: "accepted" });
8
- var [{ Database }, { scanRawSessionSummaryRows }] = await Promise.all([
9
- import("./sqlite-d7edbk1s.js"),
10
- import("./read-session-raw-gf7eytnm.js")
8
+ var [
9
+ { Database, registerSqliteDiagnosticSink },
10
+ { scanRawSessionSummaryRows },
11
+ { getHarness, setHarness },
12
+ { log }
13
+ ] = await Promise.all([
14
+ import("./sqlite-j3tvg8r0.js"),
15
+ import("./read-session-raw-vdf4wh78.js"),
16
+ import("./harness-e4avh192.js"),
17
+ import("./logger-ewak5q1s.js")
11
18
  ]);
19
+ setHarness(input.harness ?? "opencode");
20
+ registerSqliteDiagnosticSink(log, getHarness);
12
21
  var db;
13
22
  var reply;
14
23
  try {
@@ -21,7 +30,7 @@ try {
21
30
  { configureContextDatabasePragmas }
22
31
  ] = await Promise.all([
23
32
  import("./harness-e4avh192.js"),
24
- import("./message-index-c84wm2g0.js"),
33
+ import("./message-index-rqtse28y.js"),
25
34
  import("./sqlite-context-pragmas-mv9jqwjh.js")
26
35
  ]);
27
36
  setHarness(input.harness ?? "opencode");
@@ -34,17 +43,10 @@ try {
34
43
  } else if (input.indexMessage) {
35
44
  const { setHarness } = await import("./harness-e4avh192.js");
36
45
  setHarness(input.harness ?? "opencode");
37
- const [
38
- { indexMessageInShortChunks },
39
- { configureContextDatabasePragmas },
40
- { registerSqliteDiagnosticSink }
41
- ] = await Promise.all([
42
- import("./message-index-bounded-630j53ps.js"),
43
- import("./sqlite-context-pragmas-mv9jqwjh.js"),
44
- import("./sqlite-d7edbk1s.js")
46
+ const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
47
+ import("./message-index-bounded-04rycpx4.js"),
48
+ import("./sqlite-context-pragmas-mv9jqwjh.js")
45
49
  ]);
46
- const { log } = await import("./logger-ewak5q1s.js");
47
- registerSqliteDiagnosticSink(log);
48
50
  configureContextDatabasePragmas(db);
49
51
  const writer = db;
50
52
  const message = input.indexMessage;
@@ -52,7 +54,7 @@ try {
52
54
  const result = await indexMessageInShortChunks(writer, input.sessionId, message, input, () => !cancellation || Atomics.load(cancellation, 0) === 0);
53
55
  reply = { kind: "indexed", inserted: result.inserted, measurements: result.measurements };
54
56
  } else if (input.tagRatio !== undefined) {
55
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-dyj7mmbq.js");
57
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-61z5j2f9.js");
56
58
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
57
59
  if (delta)
58
60
  reply = { kind: "tag-delta", delta };
@@ -11,6 +11,7 @@ import {
11
11
  getRawSessionMessageOrdinalCount2,
12
12
  RAW_MESSAGE_VISIT_PAGE_SIZE2,
13
13
  visitRawSessionMessages2,
14
+ visitRawSessionMessagesAsync2,
14
15
  readRawSessionMessageRange2,
15
16
  prepareRawSessionOrdinals2,
16
17
  primeTailRawMessageCache2,
@@ -34,18 +35,18 @@ import {
34
35
  readSessionChunk2,
35
36
  getRawSessionMessageIdsThrough2,
36
37
  readRawSessionSeedTail2
37
- } from "./index-vztbgcdk.js";
38
- import"./index-1j8jcjpa.js";
38
+ } from "./index-n5a170gs.js";
39
+ import"./index-tmtty2x5.js";
39
40
  import"./index-1zx87sdm.js";
40
- import"./index-ab3bgm2m.js";
41
- import"./index-vnjhmkwk.js";
41
+ import"./index-a8acx4gc.js";
42
+ import"./index-37q80veb.js";
42
43
  import"./index-v0p37hm2.js";
43
44
  import"./index-k6xvbj2e.js";
44
45
  import"./index-h2wc01qk.js";
45
46
  import"./index-1bt88epp.js";
46
47
  import"./index-58e3y90n.js";
47
48
  import"./index-4mjhqadz.js";
48
- import"./index-0nnd4bry.js";
49
+ import"./index-j8epsc0g.js";
49
50
  import {
50
51
  hasMeaningfulUserText2,
51
52
  extractTexts2
@@ -89,6 +90,7 @@ export {
89
90
  setBoundedRawMessageProvider2 as setBoundedRawMessageProvider,
90
91
  setRawMessageProvider2 as setRawMessageProvider,
91
92
  visitRawSessionMessages2 as visitRawSessionMessages,
93
+ visitRawSessionMessagesAsync2 as visitRawSessionMessagesAsync,
92
94
  withRawMessageProvider2 as withRawMessageProvider,
93
95
  withRawSessionMessageCache2 as withRawSessionMessageCache
94
96
  };
@@ -25,9 +25,9 @@ import {
25
25
  hasRawSessionMessageByIdFromDb2,
26
26
  readRawSeedTailFromDb2,
27
27
  readRawSessionBoundaryEndpointsFromDb2
28
- } from "./index-vnjhmkwk.js";
28
+ } from "./index-37q80veb.js";
29
29
  import"./index-v0p37hm2.js";
30
- import"./index-0nnd4bry.js";
30
+ import"./index-j8epsc0g.js";
31
31
  import"./index-nsjyysj0.js";
32
32
  import"./index-0sahzkwr.js";
33
33
  import"./index-pavzsdc6.js";