@cortexkit/opencode-magic-context 0.49.80 → 0.49.82

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 (168) hide show
  1. package/dist/auto-search-worker.js +3 -3
  2. package/dist/chunk-embedding-write-worker.js +4 -4
  3. package/dist/{conflict-warning-hook-m8yezwdj.js → conflict-warning-hook-a0wrnzch.js} +3 -3
  4. package/dist/{context-7rkrv5q8.js → context-00f1hdz2.js} +278 -43
  5. package/dist/{embedding-backfill-0tvprmrn.js → embedding-backfill-k994xdas.js} +4 -4
  6. package/dist/features/magic-context/memory/identity-merge-command.d.ts +4 -0
  7. package/dist/features/magic-context/memory/identity-merge-command.d.ts.map +1 -0
  8. package/dist/features/magic-context/memory/project-binding-notice.d.ts +5 -0
  9. package/dist/features/magic-context/memory/project-binding-notice.d.ts.map +1 -0
  10. package/dist/features/magic-context/memory/project-identity.d.ts +1 -0
  11. package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
  12. package/dist/features/magic-context/storage-clone.d.ts +17 -0
  13. package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
  14. package/dist/features/magic-context/store-generation-rebase.d.ts +13 -0
  15. package/dist/features/magic-context/store-generation-rebase.d.ts.map +1 -1
  16. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts +1 -7
  17. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  18. package/dist/hooks/magic-context/execute-status.d.ts.map +1 -1
  19. package/dist/hooks/magic-context/inject-compartments.d.ts +16 -0
  20. package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
  21. package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
  22. package/dist/hooks/magic-context/stored-compartment-gaps.d.ts +16 -0
  23. package/dist/hooks/magic-context/stored-compartment-gaps.d.ts.map +1 -0
  24. package/dist/hooks/magic-context/transform.d.ts +1 -0
  25. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  26. package/dist/{index-m4q6ptgz.js → index-2xhzmwf6.js} +4 -4
  27. package/dist/{index-jhhkb4jv.js → index-2ygw6q5s.js} +1 -1
  28. package/dist/{index-v0epndb8.js → index-93rezfvc.js} +22 -2
  29. package/dist/{index-exvsw656.js → index-b2787fk6.js} +116 -42
  30. package/dist/{index-tebcx987.js → index-bd34njzg.js} +1 -1
  31. package/dist/{index-zpd4pxnp.js → index-dg5jvh9r.js} +6 -6
  32. package/dist/{index-6athgjba.js → index-e21n48yd.js} +34 -2
  33. package/dist/{index-ezgeq2z7.js → index-eptthgkw.js} +5 -5
  34. package/dist/{index-9554nr2q.js → index-fgy6hnr3.js} +6 -1
  35. package/dist/{index-tzy5h4x6.js → index-fpqdbb67.js} +1 -1
  36. package/dist/{v2/server-x8a7jmkh.js → index-fzgyvsb1.js} +15 -4
  37. package/dist/{index-1sq1krqw.js → index-g6hfh4h4.js} +4 -4
  38. package/dist/{index-hpmx99e9.js → index-hz1xdb15.js} +3 -3
  39. package/dist/{index-xjpemea9.js → index-jvr9ba9y.js} +151 -37
  40. package/dist/{index-esqcwes7.js → index-nxxzeq4y.js} +4 -2
  41. package/dist/{index-m6rkq3t4.js → index-rnyaa7cj.js} +1 -1
  42. package/dist/{index-yfn52pb6.js → index-shpyv8gq.js} +2 -2
  43. package/dist/{index-pzvdf7sr.js → index-stx8zd81.js} +3 -3
  44. package/dist/{index-jg7sbt3v.js → index-vpw46557.js} +1 -1
  45. package/dist/{index-xx05vta0.js → index-w2wpx7t5.js} +1 -1
  46. package/dist/{index-177yv84k.js → index-w8dcjt7f.js} +1 -1
  47. package/dist/{index-mgvj4vkb.js → index-wxxcfpxh.js} +5 -5
  48. package/dist/{index-xsdaz3mq.js → index-x8qgqnym.js} +30 -11
  49. package/dist/{index-aawwdt26.js → index-zvane1rq.js} +2 -2
  50. package/dist/index.js +32 -32
  51. package/dist/migration-worker.js +3 -3
  52. package/dist/plugin/rpc-handlers.d.ts +2 -0
  53. package/dist/plugin/rpc-handlers.d.ts.map +1 -1
  54. package/dist/{project-embedding-registry-sw4z2ptg.js → project-embedding-registry-y3z36mjy.js} +3 -3
  55. package/dist/raw-ordinal-warmup-worker.js +2 -2
  56. package/dist/{recomp-orchestrator-n7h0a0tn.js → recomp-orchestrator-fjdp3t1d.js} +14 -14
  57. package/dist/{render-bjxgkrk6.js → render-c9fjwrad.js} +6 -6
  58. package/dist/{rpc-notifications-3hed126v.js → rpc-notifications-t9q0ynq7.js} +3 -1
  59. package/dist/{search-z56487n8.js → search-1jejx5cx.js} +9 -9
  60. package/dist/{search-archive-p3jhx9wc.js → search-archive-s2jas2jb.js} +2 -2
  61. package/dist/{send-session-notification-ykvt5k2s.js → send-session-notification-7x518gew.js} +1 -1
  62. package/dist/shared/conflict-detector.d.ts +6 -0
  63. package/dist/shared/conflict-detector.d.ts.map +1 -1
  64. package/dist/shared/conflict-fixer.d.ts +1 -0
  65. package/dist/shared/conflict-fixer.d.ts.map +1 -1
  66. package/dist/shared/prompt-surface-runtime.d.ts +1 -1
  67. package/dist/shared/rpc-notifications.d.ts +8 -3
  68. package/dist/shared/rpc-notifications.d.ts.map +1 -1
  69. package/dist/shared/rpc-types.d.ts +4 -0
  70. package/dist/shared/rpc-types.d.ts.map +1 -1
  71. package/dist/shared/status-summary.d.ts +2 -0
  72. package/dist/shared/status-summary.d.ts.map +1 -1
  73. package/dist/shared/status-view-check.d.ts.map +1 -1
  74. package/dist/shared/status-view.d.ts +1 -0
  75. package/dist/shared/status-view.d.ts.map +1 -1
  76. package/dist/shared/user-facing-codes.d.ts +5 -0
  77. package/dist/shared/user-facing-codes.d.ts.map +1 -1
  78. package/dist/{store-8trkpmtx.js → store-ggrq9e14.js} +6 -2
  79. package/dist/{store-reader-3eh1s1m8.js → store-reader-tr64nxyy.js} +1 -1
  80. package/dist/tools/ctx-memory/constants.d.ts +1 -1
  81. package/dist/tools/ctx-memory/constants.d.ts.map +1 -1
  82. package/dist/tools/light-descriptions.d.ts +1 -1
  83. package/dist/tools/light-descriptions.d.ts.map +1 -1
  84. package/dist/tools/parameter-descriptions.d.ts +6 -6
  85. package/dist/tools/parameter-descriptions.d.ts.map +1 -1
  86. package/dist/{transform-postprocess-phase-f0wssyce.js → transform-postprocess-phase-p2egg02g.js} +15 -15
  87. package/dist/v2/auto-search-worker.js +3 -3
  88. package/dist/v2/chunk-embedding-write-worker.js +4 -4
  89. package/dist/v2/{context-r1swhysg.js → context-gwkgh0wd.js} +398 -58
  90. package/dist/v2/{embedding-backfill-qnaswpmb.js → embedding-backfill-hjvjxp7d.js} +4 -4
  91. package/dist/v2/fold/owner.d.ts +8 -0
  92. package/dist/v2/fold/owner.d.ts.map +1 -1
  93. package/dist/v2/fork-inheritance.d.ts +25 -17
  94. package/dist/v2/fork-inheritance.d.ts.map +1 -1
  95. package/dist/v2/hidden-child-native.d.ts +6 -6
  96. package/dist/v2/hidden-child-native.d.ts.map +1 -1
  97. package/dist/v2/hidden-child-record.d.ts +21 -3
  98. package/dist/v2/hidden-child-record.d.ts.map +1 -1
  99. package/dist/v2/hidden-child-sweep.d.ts +1 -1
  100. package/dist/v2/hidden-child-sweep.d.ts.map +1 -1
  101. package/dist/v2/hidden-completion.d.ts +1 -0
  102. package/dist/v2/hidden-completion.d.ts.map +1 -1
  103. package/dist/v2/hidden-run-holder.d.ts +16 -0
  104. package/dist/v2/hidden-run-holder.d.ts.map +1 -0
  105. package/dist/v2/hooks/context.d.ts.map +1 -1
  106. package/dist/v2/hooks/dream-timer.d.ts +5 -7
  107. package/dist/v2/hooks/dream-timer.d.ts.map +1 -1
  108. package/dist/v2/hooks/fork-history-status.d.ts +10 -0
  109. package/dist/v2/hooks/fork-history-status.d.ts.map +1 -0
  110. package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
  111. package/dist/v2/hooks/store.d.ts +4 -0
  112. package/dist/v2/hooks/store.d.ts.map +1 -1
  113. package/dist/v2/hooks/types.d.ts +5 -26
  114. package/dist/v2/hooks/types.d.ts.map +1 -1
  115. package/dist/v2/migration-worker.js +3 -3
  116. package/dist/v2/{project-embedding-registry-52f2jept.js → project-embedding-registry-mzsvyads.js} +3 -3
  117. package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
  118. package/dist/v2/{recomp-orchestrator-4w2w4kd4.js → recomp-orchestrator-jn39mxh0.js} +13 -13
  119. package/dist/v2/{render-hwqk0d8t.js → render-q2aj9bgy.js} +6 -6
  120. package/dist/v2/{rpc-notifications-3hed126v.js → rpc-notifications-t9q0ynq7.js} +3 -1
  121. package/dist/v2/{search-eftsvbg7.js → search-9xn6ds9x.js} +8 -8
  122. package/dist/v2/{search-archive-mdxzvgpm.js → search-archive-fj59gjv1.js} +2 -2
  123. package/dist/v2/{send-session-notification-8g4r97bp.js → send-session-notification-p52rhjzy.js} +1 -1
  124. package/dist/v2/{server-ma9jwnas.js → server-1cn3kryt.js} +4 -4
  125. package/dist/v2/{server-34pvhvxt.js → server-1efjj215.js} +22 -2
  126. package/dist/v2/{server-jn4pktdk.js → server-2ktxmtbd.js} +1 -1
  127. package/dist/v2/{server-zw1e3wq5.js → server-2w1rdttn.js} +1 -1
  128. package/dist/v2/{server-jtq03rkb.js → server-4z964n1c.js} +1 -1
  129. package/dist/v2/{server-pxdpwycq.js → server-53n8hv5q.js} +6 -6
  130. package/dist/v2/{server-rbtx6q5v.js → server-569he5mh.js} +1 -1
  131. package/dist/v2/{server-rthnpmbp.js → server-5yfq912a.js} +34 -2
  132. package/dist/v2/{server-mhrgymcs.js → server-68q80y27.js} +2 -2
  133. package/dist/v2/{server-afsz3cmx.js → server-bt546axy.js} +1 -1
  134. package/dist/v2/{server-dhdn8mwq.js → server-c8mqs0v5.js} +30 -11
  135. package/dist/{index-x8a7jmkh.js → v2/server-fzgyvsb1.js} +15 -4
  136. package/dist/v2/{server-76v5y7zm.js → server-g1a0nhtk.js} +2 -2
  137. package/dist/v2/{server-25qtxt4d.js → server-gx1s06dx.js} +6 -1
  138. package/dist/v2/{server-x8ksqcw7.js → server-pejjj0nv.js} +1 -1
  139. package/dist/v2/{server-fqnty3nk.js → server-vt6nj2hn.js} +111 -37
  140. package/dist/v2/{server-qjff96a6.js → server-wdq85mxj.js} +4 -4
  141. package/dist/v2/server.js +3 -3
  142. package/dist/v2/{store-m3zny7q2.js → store-qdgzd38f.js} +6 -2
  143. package/dist/v2/{store-reader-yaxtdy6f.js → store-reader-83tka051.js} +1 -1
  144. package/dist/v2/store-reader.d.ts +15 -8
  145. package/dist/v2/store-reader.d.ts.map +1 -1
  146. package/dist/v2/tui/index.d.ts +1 -1
  147. package/dist/v2/tui/index.d.ts.map +1 -1
  148. package/dist/v2/{v2-archive-reader-p89x05hj.js → v2-archive-reader-9z8z97db.js} +1 -1
  149. package/dist/v2/{wrapup-orchestrator-0f4nwpbv.js → wrapup-orchestrator-vd5zfp3v.js} +13 -13
  150. package/dist/{v2-archive-reader-vzmzb245.js → v2-archive-reader-r0xpxsb1.js} +1 -1
  151. package/dist/{wrapup-orchestrator-5k9hgb3t.js → wrapup-orchestrator-k29zqfp9.js} +15 -15
  152. package/package.json +1 -1
  153. package/src/agents/smart-notes-dreamer-gate.golden.json +169 -169
  154. package/src/shared/conflict-detector.ts +35 -2
  155. package/src/shared/conflict-fixer.ts +10 -6
  156. package/src/shared/fold-render-lock-fence.test.ts +2 -0
  157. package/src/shared/prompt-surface-a1-golden.md +8 -7
  158. package/src/shared/rpc-notifications.test.ts +29 -0
  159. package/src/shared/rpc-notifications.ts +24 -5
  160. package/src/shared/rpc-types.ts +4 -0
  161. package/src/shared/status-summary.ts +9 -1
  162. package/src/shared/status-view-check.ts +2 -0
  163. package/src/shared/status-view.test.ts +9 -0
  164. package/src/shared/status-view.ts +4 -0
  165. package/src/shared/user-facing-codes.ts +5 -0
  166. package/src/tui/slots/sidebar-content.tsx +11 -5
  167. package/src/tui-compiled/slots/sidebar-content.tsx +191 -176
  168. package/src/v2/tui/index.ts +7 -2
@@ -210,7 +210,7 @@ import {
210
210
  getProjectState,
211
211
  recordSubagentInvocation,
212
212
  getLatestHistorianInvocationId
213
- } from "./server-dhdn8mwq.js";
213
+ } from "./server-c8mqs0v5.js";
214
214
  import {
215
215
  invalidateAutoEmbedSession
216
216
  } from "./server-2amn2s73.js";
@@ -238,14 +238,14 @@ import {
238
238
  import {
239
239
  shouldSkipHomeProjectMemory,
240
240
  resolveProjectIdentity
241
- } from "./server-afsz3cmx.js";
241
+ } from "./server-bt546axy.js";
242
242
  import {
243
243
  contentSha2562,
244
244
  enqueueShadowEmbeddingItems2,
245
245
  getProjectChunkEmbeddingModelId2,
246
246
  getProjectEmbeddingMaxInputTokens2,
247
247
  embedItemsWindowBounded2
248
- } from "./server-mhrgymcs.js";
248
+ } from "./server-68q80y27.js";
249
249
  import {
250
250
  V2_MEMORY_CATEGORIES,
251
251
  CATEGORY_PRIORITY,
@@ -256,7 +256,7 @@ import {
256
256
  userFacingFailureCode,
257
257
  promoteSessionFactsDurable,
258
258
  embedPromotedFacts
259
- } from "./server-25qtxt4d.js";
259
+ } from "./server-gx1s06dx.js";
260
260
  import {
261
261
  computeCueContentHash,
262
262
  getMuralCueState,
@@ -270,7 +270,7 @@ import {
270
270
  LATEST_SUPPORTED_VERSION,
271
271
  getPersistedSchemaVersion,
272
272
  openDatabase
273
- } from "./server-76v5y7zm.js";
273
+ } from "./server-g1a0nhtk.js";
274
274
  import {
275
275
  parseCompartmentOutput,
276
276
  resolveWorkspaceShareCategories,
@@ -279,7 +279,7 @@ import {
279
279
  resolveStoredPathWorkspaceIdentity,
280
280
  sourceNameForMemory,
281
281
  computeWorkspaceEpochFingerprint
282
- } from "./server-jn4pktdk.js";
282
+ } from "./server-2ktxmtbd.js";
283
283
  import {
284
284
  FAIL_CLOSED_DOCTOR_COMMAND
285
285
  } from "./server-39bcszk4.js";
@@ -287,10 +287,10 @@ import {
287
287
  getSessionNotes,
288
288
  getReadySmartNotes,
289
289
  insertPrimerCandidates
290
- } from "./server-rbtx6q5v.js";
290
+ } from "./server-569he5mh.js";
291
291
  import {
292
292
  pushNotification2
293
- } from "./server-x8a7jmkh.js";
293
+ } from "./server-fzgyvsb1.js";
294
294
  import {
295
295
  deriveTriggerBudget2,
296
296
  resolveHistorianProducerLimits2,
@@ -298,7 +298,7 @@ import {
298
298
  } from "./server-rp52f40v.js";
299
299
  import {
300
300
  sendStatusNotification2
301
- } from "./server-qjff96a6.js";
301
+ } from "./server-wdq85mxj.js";
302
302
  import {
303
303
  retreatPastHostUnservedRows,
304
304
  snapTerminalCompartmentToServedRow,
@@ -308,6 +308,9 @@ import {
308
308
  import {
309
309
  piModelRefToCanonical
310
310
  } from "./server-avwt563y.js";
311
+ import {
312
+ sameProjectDirectory
313
+ } from "./server-knvkbfvh.js";
311
314
  import {
312
315
  getErrorMessage,
313
316
  describeError
@@ -828,6 +831,9 @@ function readCoordinateRebaseNotice(db, sessionId) {
828
831
  }) : [];
829
832
  return {
830
833
  generation: record.generation,
834
+ ...Object.hasOwn(record, "inheritedGaps") ? {
835
+ inheritedGaps: Array.isArray(record.inheritedGaps) ? record.inheritedGaps.flatMap((gap) => gap && typeof gap === "object" && Number.isSafeInteger(gap.start) && Number.isSafeInteger(gap.end) && gap.start >= 1 && gap.end >= gap.start ? [{ start: gap.start, end: gap.end }] : []) : []
836
+ } : {},
831
837
  previousGeneration: record.previousGeneration === "v1" || record.previousGeneration === "v2" ? record.previousGeneration : null,
832
838
  at: count(record.at),
833
839
  unresolvedCompartments: count(record.unresolvedCompartments),
@@ -1334,8 +1340,9 @@ function recoverUnresolvedCompartments(args) {
1334
1340
  const derivedSequences = new Set(result.derived.map((note) => note.sequence));
1335
1341
  const notice = {
1336
1342
  generation,
1343
+ ...previous?.inheritedGaps !== undefined ? { inheritedGaps: previous.inheritedGaps } : {},
1337
1344
  previousGeneration: previous?.previousGeneration ?? null,
1338
- at: previous?.at ?? now,
1345
+ at: previous?.at || now,
1339
1346
  unresolvedCompartments: result.unresolved.length,
1340
1347
  discardedReductions: previous?.discardedReductions ?? 0,
1341
1348
  droppedDepthRows: previous?.droppedDepthRows ?? 0,
@@ -2669,7 +2676,7 @@ function providerOutputFailureFromInvalidManifest(messages, responseText) {
2669
2676
  }
2670
2677
 
2671
2678
  // src/v2/hooks/hidden-child.ts
2672
- import { createHash as createHash5 } from "node:crypto";
2679
+ import { createHash as createHash6 } from "node:crypto";
2673
2680
 
2674
2681
  // src/agents/dreamer.ts
2675
2682
  var DREAMER_AGENT = "dreamer";
@@ -2730,6 +2737,43 @@ function withoutHistorianTailCache(body) {
2730
2737
  return body;
2731
2738
  }
2732
2739
 
2740
+ // src/v2/hidden-run-holder.ts
2741
+ import { createHash as createHash5, randomUUID } from "node:crypto";
2742
+ import { stat } from "node:fs/promises";
2743
+ var HOLDER_PREFIX = "ses_mc_bg_";
2744
+ var HOLDER_CANDIDATES = 3;
2745
+ function isHiddenRunHolder(id) {
2746
+ return id.startsWith(HOLDER_PREFIX);
2747
+ }
2748
+ function supportsQuietHiddenChildren(version) {
2749
+ return typeof version === "string" && /^\d+\.\d+\.\d+$/.test(version) && version !== "2.3.0";
2750
+ }
2751
+ function matchesHiddenRunLocation(wanted, returned) {
2752
+ return sameProjectDirectory(wanted, returned ?? "");
2753
+ }
2754
+ async function hiddenRunPlacement(createHolder, directory) {
2755
+ if (!(await stat(directory)).isDirectory())
2756
+ throw new Error(`Not a run directory: ${directory}`);
2757
+ const base = HOLDER_PREFIX + createHash5("sha256").update(directory).digest("hex").slice(0, 32);
2758
+ const displaced = [];
2759
+ for (let index = 0;index < HOLDER_CANDIDATES; index++) {
2760
+ const id = index === 0 ? base : `${base}_${index + 1}`;
2761
+ const holder = await createHolder({
2762
+ id,
2763
+ title: "Magic Context background runs",
2764
+ location: { directory },
2765
+ metadata: { magic_context: "background-holder" }
2766
+ });
2767
+ if (holder.id !== id || holder.parentID)
2768
+ throw new Error(`OpenCode did not return the expected background holder ${id}`);
2769
+ if (holder.metadata?.magic_context === "background-holder" && matchesHiddenRunLocation(directory, holder.location?.directory)) {
2770
+ return { id: `ses_aut_${randomUUID()}`, parentID: id };
2771
+ }
2772
+ displaced.push(id);
2773
+ }
2774
+ throw new Error(`No background holder at ${directory}; displaced holders: ${displaced.join(", ")}`);
2775
+ }
2776
+
2733
2777
  // src/v2/hooks/claude-agent-instructions.ts
2734
2778
  var CLAUDE_AGENT_PROVIDER_ID = "claude-agent";
2735
2779
  function deliversInstructionsInUserMessage(providerID) {
@@ -2747,6 +2791,7 @@ ${system}
2747
2791
  var HIDDEN_HISTORIAN_AGENT = "historian";
2748
2792
  var HIDDEN_DREAMER_AGENT = "dreamer-classifier";
2749
2793
  var HIDDEN_CURATE_AGENT = DREAMER_AGENT;
2794
+ var HOLDER_CHAT_REFUSAL = "This session holds Magic Context's background runs and can't be used for chat.";
2750
2795
  var AGENT_TOOLS = {
2751
2796
  [HIDDEN_HISTORIAN_AGENT]: [],
2752
2797
  [HIDDEN_DREAMER_AGENT]: [],
@@ -2934,7 +2979,7 @@ var REFUSAL_PART_DIGESTS = 8;
2934
2979
  function textDigest(text) {
2935
2980
  return {
2936
2981
  length: text.length,
2937
- sha256: createHash5("sha256").update(text).digest("hex").slice(0, 16)
2982
+ sha256: createHash6("sha256").update(text).digest("hex").slice(0, 16)
2938
2983
  };
2939
2984
  }
2940
2985
  function firstDifference(a, b) {
@@ -2979,7 +3024,7 @@ class HiddenChildHook {
2979
3024
  }
2980
3025
  }
2981
3026
  owns(sessionID) {
2982
- return this.childIDs.has(sessionID);
3027
+ return this.childIDs.has(sessionID) || isHiddenRunHolder(sessionID);
2983
3028
  }
2984
3029
  async cacheRequest(draft) {
2985
3030
  const attempt = this.active.get(draft.sessionID);
@@ -3070,6 +3115,10 @@ class HiddenChildHook {
3070
3115
  }
3071
3116
  return false;
3072
3117
  }
3118
+ if (isHiddenRunHolder(draft.sessionID)) {
3119
+ this.note(`[magic-context] hidden child refused: ${HOLDER_CHAT_REFUSAL} session=${draft.sessionID}`);
3120
+ throw new HiddenCompletionRefusal("hidden_prompt_unrecognized", HOLDER_CHAT_REFUSAL, true);
3121
+ }
3073
3122
  const texts = userTexts(draft.messages.at(-1));
3074
3123
  const named = new Set;
3075
3124
  for (const text of texts) {
@@ -4648,7 +4697,7 @@ async function promptAsyncAndWaitForIdle(client, request, options = {}) {
4648
4697
  }
4649
4698
  }
4650
4699
  // src/shared/prompt-surface-runtime.ts
4651
- import { createHash as createHash6 } from "node:crypto";
4700
+ import { createHash as createHash7 } from "node:crypto";
4652
4701
  import { existsSync as existsSync2, readFileSync as readFileSync2, statSync as statSync3 } from "node:fs";
4653
4702
  import { dirname, isAbsolute, resolve } from "node:path";
4654
4703
 
@@ -4656,7 +4705,7 @@ import { dirname, isAbsolute, resolve } from "node:path";
4656
4705
  var CTX_REDUCE_LIGHT_DESCRIPTION = `Stamp an item as no longer needed for the work ahead. Not a delete: stamping QUEUES it, the item stays readable until Magic Context clears stamped items in one sweep, newest tags are protected, and a cleared item goes to the archive (recent: a [dropped §N§] placeholder; older: removed) recoverable via ctx_expand(tag=N). The question is "does this need to stay on my desk for what comes next?" — a file you keep editing stays, the grep that found it goes. Stamp used reads/searches/outputs, acted-on build/test output, redundant dumps, extracted pasted payloads; keep user messages, your own text, unresolved errors, raw evidence, exact wording that may matter. Look at each tag; never blanket-stamp "1-50". Grammar: "3-5", "1,2,9", "1-5,8,12-15".`;
4657
4706
  var CTX_EXPAND_LIGHT_DESCRIPTION = "Recover one item with tag=N (a §N§ or dropped placeholder number), not a message ordinal; text or one tool call with full input/output. message=N and start/end are whole-message ordinals from history/search, never tag numbers. Recover raw conversation behind a <session-history> heading or around a ctx_search hit: ctx_expand(start, end) returns [N] U:/A: lines (~15K-token cap; oversized ranges return the head and where to continue). verbose=true lists messages with per-part previews to pick one; message=N returns that message in full, including a tool output released with ctx_reduce. Ranges after the last compartment are your live tail, not expandable.";
4658
4707
  var CTX_NOTE_LIGHT_DESCRIPTION = 'Session notes are pending intentions: work you intend to return to, with findings attached ("take a note" always qualifies). Not active steps, an executing plan, or restart insurance; a record of how things stand (world-state, a design at a point in time) with nothing you intend to do about it — that goes stale silently; a fact worth keeping is memory, the rest is nothing. First line = title (<80 chars). write saves; read lists rows (note_ids for bodies); update changes one; dismiss retires 1–50. Dismiss a note when its work lands or is abandoned; a queue you never dismiss from stops being read. surface_condition parks it until an outside check against repo files, git, GitHub or the web holds.';
4659
- var CTX_MEMORY_LIGHT_DESCRIPTION = "Durable facts about this project, shared with every agent on it and kept for the months this work lasts; active ones are already in <project-memory> as `#id: fact`. Write one standalone fact when it must not have to be found again — a rule, an architecture fact, a constraint, a config value, a naming convention — especially what cost you turns. A pending intention with evidence is ctx_note, not memory. write (content + category); update one id (content; category optional); archive one or more ids (reason optional); merge two or more ids (content); get 1–20 ids in any status.";
4708
+ var CTX_MEMORY_LIGHT_DESCRIPTION = "Durable facts about this project, shared with every agent and kept for the months this work lasts; active ones are already in <project-memory> as `#id: fact`. Write one standalone fact you must not have to find again — a rule, an architecture fact, a constraint, a config value, a naming convention — especially what cost you turns. A pending intention with evidence is ctx_note, not memory. write (content + category); update one id (content + category); archive one or more ids (reason optional); merge 2+ distinct same-category ids (content); get 1–20 ids in any status.";
4660
4709
  var CTX_SEARCH_LIGHT_DESCRIPTION = 'Search the archive — everything that ever happened here that is not on your desk: memories not in <project-memory>, compacted conversation, commits, notes. Phrase query as a natural-language question carrying the exact terms you expect ("where is the opencode source code path?", "why did we choose SQLite over postgres?", "how does the dreamer lease work?") — a keyword stack finds less. Sources (omit for all): memory (rules, conventions), message (compacted conversation; hits carry ordinals for ctx_expand), git_commit (when did this change), primer (reusable project Q&A the dreamer distils from recurring questions), note (parked follow-ups). Memory ids alone (`#7234`) resolve directly. from/to restrict every source to an inclusive UTC date range.';
4661
4710
 
4662
4711
  // src/shared/prompt-surface-runtime.ts
@@ -4681,7 +4730,7 @@ function promptSurfaceHashMaterial(systemContent, preset = "full") {
4681
4730
  \x00magic-context-prompt-surface:${preset}`;
4682
4731
  }
4683
4732
  function systemPromptFingerprint(systemContent, preset = "full") {
4684
- return createHash6("md5").update(promptSurfaceHashMaterial(systemContent, preset)).digest("hex");
4733
+ return createHash7("md5").update(promptSurfaceHashMaterial(systemContent, preset)).digest("hex");
4685
4734
  }
4686
4735
  var PROMPT_SURFACE_TOOL_ID_SET = new Set(ACTIVE_TOOL_IDS);
4687
4736
  function resolveUserConfigDirectory(options) {
@@ -6744,7 +6793,7 @@ function compareMemorySelectionPriority(left, right) {
6744
6793
  }
6745
6794
 
6746
6795
  // src/features/magic-context/mural/render-trigger.ts
6747
- import { createHash as createHash7 } from "node:crypto";
6796
+ import { createHash as createHash8 } from "node:crypto";
6748
6797
 
6749
6798
  // src/features/magic-context/mural/mural-selection.ts
6750
6799
  var DEFAULT_MURAL_MEMORY_BUDGET = 8000;
@@ -7520,7 +7569,7 @@ function ensureMuralRendered(db, projectIdentity, budgetTokens = DEFAULT_MURAL_M
7520
7569
  log2(`[mural] skipped for ${projectIdentity}: ${skipReason}`);
7521
7570
  return { hasMural: false, rerendered: false, skipReason };
7522
7571
  }
7523
- const textHash = createHash7("sha256").update(plan.layout.text).digest("hex");
7572
+ const textHash = createHash8("sha256").update(plan.layout.text).digest("hex");
7524
7573
  if (existing && existing.contentHash === textHash && existing.width === plan.width && existing.height === plan.height) {
7525
7574
  return rememberRender(db, projectIdentity, key, existing.image, {
7526
7575
  hasMural: true,
@@ -9294,7 +9343,8 @@ function resolveMuralForM0(options, projectPath, modelKey, budgetTokens, mode =
9294
9343
  return;
9295
9344
  return resolveMuralWire(options.db, projectPath, modelKey, true, budgetTokens, mode);
9296
9345
  }
9297
- function materializeM0(options) {
9346
+ function materializeM0(options, render) {
9347
+ const persist = render?.persist !== false;
9298
9348
  const projectPath = options.projectPath;
9299
9349
  const projectDirectory = options.projectDirectory ?? projectPath ?? "";
9300
9350
  let snapshotMarkers;
@@ -9359,7 +9409,7 @@ function materializeM0(options) {
9359
9409
  })
9360
9410
  };
9361
9411
  const trimmed = workspace.isWorkspaced ? trimWorkspaceMemoriesToBudgetV2(options.sessionId, memories, memoryBudget, workspace, memoryRenderOptions) : trimMemoriesToBudgetV2(options.sessionId, memories, memoryBudget);
9362
- const mural = options.memoryEnabled === false ? undefined : options.mural ?? resolveMuralForM0(options, projectPath, snapshotMarkers.modelKey, memoryBudget);
9412
+ const mural = options.memoryEnabled === false ? undefined : options.mural ?? resolveMuralForM0(options, projectPath, snapshotMarkers.modelKey, memoryBudget, persist ? "persist" : "read-only");
9363
9413
  let decayPressureMultiplier = 1;
9364
9414
  let m0Text = renderM0({
9365
9415
  projectDocs: docs.renderedBlock,
@@ -9400,6 +9450,8 @@ function materializeM0(options) {
9400
9450
  snapshotMarkers.muralHash = frozenMuralHash;
9401
9451
  snapshotMarkers.materializedAt = foldMaterializedAt;
9402
9452
  const renderedMemoryIds = trimmed.renderOrder.map((m) => m.id);
9453
+ if (!persist)
9454
+ return { m0Bytes, m0Text, snapshotMarkers, renderedMemoryIds };
9403
9455
  options.beforePhase3ForTest?.();
9404
9456
  const steps = new WriteTransactionSteps;
9405
9457
  const upgradeIdentity = withCachedM0ToolDefinitionsHash(withCachedM0MemoryIds(encodeCachedM0UpgradeIdentity(snapshotMarkers.upgradeState, snapshotMarkers.compartmentRenderEpoch, snapshotMarkers.muralEnabled, snapshotMarkers.renderBudgetIdentity, snapshotMarkers.memoryRenderEpoch, snapshotMarkers.renderedBudgets ?? null), renderedMemoryIds), snapshotMarkers.toolDefinitionsHash ?? null);
@@ -14691,17 +14743,9 @@ async function validateBoundarySnapshotOffThread(args, options = {}) {
14691
14743
  };
14692
14744
  }
14693
14745
 
14694
- // src/hooks/magic-context/compartment-runner-incremental.ts
14695
- var inconsistentProducerWindows = new Set;
14696
- function logInconsistentProducerWindowOnce(sessionId, model, window, reserve) {
14697
- if (inconsistentProducerWindows.has(model))
14698
- return;
14699
- inconsistentProducerWindows.add(model);
14700
- sessionLog2(sessionId, `producer window inconsistent for ${model}: window=${window} reserve=${reserve}; sending unguarded`);
14701
- }
14702
- var HISTORIAN_ALERT_COOLDOWN_MS = 60 * 1000;
14703
- function nonNarrativeStoredGapRanges(db, sessionId, compartments) {
14704
- const rebasedToV2 = readCoordinateRebaseNotice(db, sessionId)?.generation === "v2";
14746
+ // src/hooks/magic-context/stored-compartment-gaps.ts
14747
+ function nonNarrativeStoredGapRanges(db, sessionId, compartments, readRange = (start, end) => readRawSessionMessageRange2(sessionId, start, end), onConversionGap) {
14748
+ const notice = readCoordinateRebaseNotice(db, sessionId);
14705
14749
  const safeRanges = [];
14706
14750
  for (let index = 0;index < compartments.length; index += 1) {
14707
14751
  const previous = compartments[index - 1];
@@ -14712,14 +14756,44 @@ function nonNarrativeStoredGapRanges(db, sessionId, compartments) {
14712
14756
  const end = current.startMessage - 1;
14713
14757
  if (end < start)
14714
14758
  continue;
14715
- const messages = readRawSessionMessageRange2(sessionId, start, end);
14716
- const ordinals = new Set(messages.map((message) => message.ordinal));
14717
- const complete = ordinals.size === end - start + 1 && messages.every((message) => message.ordinal >= start && message.ordinal <= end && (areRustHistorianSyntheticParts2(message.parts) || index > 0 && rebasedToV2 && isStrictGapHealingMessage2(message)));
14718
- if (complete)
14719
- safeRanges.push({ start, end });
14759
+ const ordinals = new Set;
14760
+ let valid = true;
14761
+ let needsConversion = false;
14762
+ for (const message of readRange(start, end)) {
14763
+ const { ordinal } = message;
14764
+ if (ordinal < start || ordinal > end) {
14765
+ valid = false;
14766
+ break;
14767
+ }
14768
+ if (!areRustHistorianSyntheticParts2(message.parts)) {
14769
+ const insideInheritedGap = notice?.inheritedGaps?.some((gap) => gap.start <= ordinal && ordinal <= gap.end);
14770
+ if (index === 0 || notice?.generation !== "v2" || insideInheritedGap === false || !isStrictGapHealingMessage2(message)) {
14771
+ valid = false;
14772
+ break;
14773
+ }
14774
+ needsConversion = true;
14775
+ }
14776
+ ordinals.add(ordinal);
14777
+ }
14778
+ if (valid && ordinals.size === end - start + 1) {
14779
+ const gap = { start, end };
14780
+ safeRanges.push(gap);
14781
+ if (needsConversion)
14782
+ onConversionGap?.(gap);
14783
+ }
14720
14784
  }
14721
14785
  return safeRanges;
14722
14786
  }
14787
+
14788
+ // src/hooks/magic-context/compartment-runner-incremental.ts
14789
+ var inconsistentProducerWindows = new Set;
14790
+ function logInconsistentProducerWindowOnce(sessionId, model, window, reserve) {
14791
+ if (inconsistentProducerWindows.has(model))
14792
+ return;
14793
+ inconsistentProducerWindows.add(model);
14794
+ sessionLog2(sessionId, `producer window inconsistent for ${model}: window=${window} reserve=${reserve}; sending unguarded`);
14795
+ }
14796
+ var HISTORIAN_ALERT_COOLDOWN_MS = 60 * 1000;
14723
14797
  var lastHistorianAlertBySession = new Map;
14724
14798
  var loggedStoredValidationFailures = new Map;
14725
14799
  function logStoredValidationFailureOnce(sessionId, error) {
@@ -16658,4 +16732,4 @@ ${failure}`;
16658
16732
  }
16659
16733
  }
16660
16734
 
16661
- export { historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, v2ToolDefinitionsHash, v2RequestToolsFingerprint, classifyRequestToolsChange, readCoordinateGeneration, rebaseSessionCoordinatesAsync, HiddenCompletionRefusal, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder, startCompactionMarkerCandidatePreparation, removeMcOwnedCompactionMarkers, getCompartmentEvents, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, DreamerProviderOutputFailureError, providerOutputFailureFromInvalidManifest, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, HIDDEN_HISTORIAN_AGENT, HIDDEN_DREAMER_AGENT, HIDDEN_CURATE_AGENT, hiddenAgentFor, hiddenToolLoop, HIDDEN_RUN_DISPOSED_REASON, noteChildOfDisposedInstance, hiddenChildPermissions, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, parseProviderModel, modelBodyField, toModelEntry, hiddenModelCooldowns, ModelProducedNoOutputError, noteModelActivityMonitored, noteModelOutputReceived, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, annotateSubagentInvocationError, failedInvocationStatus, emptyTokenTotals, sumTokensFromChildMessages, recordChildInvocation, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, MARKER_SUMMARY_TEXT, markerUpdateDefinitelyDidNotCut, applyDeferredCompactionMarker, teardownChildSession, runTokenLog, formatRunTokenLog, createChildSessionWithFence, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, extractM0Block, formatDate, TEMPORAL_MARKER_REPLAY_PATTERN, collectTemporalCandidates, injectTemporalMarkers, clearInjectionCache, getVisibleMemoryIds, selectHiddenMessagesAtCompactionSeam, prepareCompartmentInjection, renderCompartmentInjection, MaterializeContentionError, mustMaterialize, trimMemoriesToBudgetV2, renderMemoryBlockV2, stripMemoryMuralBlock, servedHeadTexts, materializeM0, hydrateCachedM0Mural, resetPrefixTrimFallbackState, findHostCompactionWindow, capturePrefixTrimSourceOrder, prepareCachedM0M1Replay, headMessagesForSizing, rawTailAfterNewestCompartment, hasCompleteCachedM0M1, injectM0M1, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, resolveHiddenCompletionExecutor, createV1HiddenCompletionExecutor, readHistorianFailureStreak, describeHistorianJoinRefusal, shouldWaitForNewHistorianHistory, EMPTY_READ_REPLY, noteTouchedAt, renderGlance, renderNotesById, formatWriteReply, observeNoteNudgeServe, onNoteTrigger, peekNoteNudgeText, markNoteNudgeDelivered, clearNoteNudgeTriggerAndCooldown, omitIncompleteFileTokenTotals, describeBoundaryDiagnostics, RECOVERY_NO_HEAD_LIMIT, deriveProtectedTailTokenTarget, selectPerRunCap, resolveOpenCodeProtectedTailBoundary, resolveWrapupProtectedTailBoundary, getRawHistoryEligibility, hasRunnableCompartmentWindow, recordHighPressureNoEligibleHead, noteTransformPassForExactOrdinalReads, runCompartmentAgent, getActiveCompartmentRun, markActiveCompartmentRunPublished, registerActiveCompartmentRun, startCompartmentAgent, isRecompFailure2, isRecompSkip2, extractRecompReason2, setRecompStarting2, setRecompNote2, setRecompTerminal2, buildRecompDeps2, runManagedRecomp2 };
16735
+ export { historianRunConfig, dreamerRunConfig, pluginConfigReader, currentPluginConfigReader, withLiveDreamerOutputCap, v2ToolDefinitionsHash, v2RequestToolsFingerprint, classifyRequestToolsChange, readCoordinateGeneration, rebaseSessionCoordinatesAsync, HiddenCompletionRefusal, getOpenCodeDbPath, compareOpenCodeMessagesByCanonicalOrder, startCompactionMarkerCandidatePreparation, removeMcOwnedCompactionMarkers, getCompartmentEvents, USER_MEMORY_CANDIDATE_TTL_MS, insertUserMemoryCandidates, getUserMemoryCandidates, deleteUserMemoryCandidates, pruneExpiredUserMemoryCandidates, insertUserMemory, getActiveUserMemories, updateUserMemoryContent, dismissUserMemory, DreamerProviderOutputFailureError, providerOutputFailureFromInvalidManifest, DREAMER_AGENT, DREAMER_RETROSPECTIVE_AGENT, DREAMER_PRIMER_INVESTIGATOR_AGENT, DREAMER_MEMORY_MAPPER_AGENT, DREAMER_CLASSIFIER_AGENT, DREAMER_DOCS_AGENT, DREAMER_REVIEWER_AGENT, supportsQuietHiddenChildren, matchesHiddenRunLocation, hiddenRunPlacement, HIDDEN_HISTORIAN_AGENT, HIDDEN_DREAMER_AGENT, HIDDEN_CURATE_AGENT, hiddenAgentFor, hiddenToolLoop, HIDDEN_RUN_DISPOSED_REASON, noteChildOfDisposedInstance, hiddenChildPermissions, registerHiddenChildAgents, hiddenToolCallRefusal, HiddenAgentStepLimit, HiddenChildHook, extractLatestAssistantText, hasLengthCappedOutput, parseProviderModel, modelBodyField, toModelEntry, hiddenModelCooldowns, ModelProducedNoOutputError, noteModelActivityMonitored, noteModelOutputReceived, isPromptTimeoutError, getPromptFailureDetail, raceWithSignal, promptSyncWithValidatedOutputRetry, normalizeSDKResponse, annotateSubagentInvocationError, failedInvocationStatus, emptyTokenTotals, sumTokensFromChildMessages, recordChildInvocation, createPromptAsyncTransport, CTX_NOTE_LIGHT_DESCRIPTION, ACTIVE_TOOL_IDS, systemPromptFingerprint, createPromptSurfaceRuntime, createPromptSurfaceGuidanceEpochCache, MARKER_SUMMARY_TEXT, markerUpdateDefinitelyDidNotCut, applyDeferredCompactionMarker, teardownChildSession, runTokenLog, formatRunTokenLog, createChildSessionWithFence, validateStoredCompartments, buildMagicContextSection, getMuralIdentity, getMural, modelKeyAcceptsImages, resolveMuralWire, extractM0Block, formatDate, TEMPORAL_MARKER_REPLAY_PATTERN, collectTemporalCandidates, injectTemporalMarkers, clearInjectionCache, getVisibleMemoryIds, selectHiddenMessagesAtCompactionSeam, prepareCompartmentInjection, renderCompartmentInjection, MaterializeContentionError, mustMaterialize, trimMemoriesToBudgetV2, renderMemoryBlockV2, stripMemoryMuralBlock, servedHeadTexts, materializeM0, hydrateCachedM0Mural, resetPrefixTrimFallbackState, findHostCompactionWindow, capturePrefixTrimSourceOrder, prepareCachedM0M1Replay, headMessagesForSizing, rawTailAfterNewestCompartment, hasCompleteCachedM0M1, injectM0M1, clampProducerAtomChars, producerInputTokenLimit, historianProducerReserve, producerPromptFailureReason, resolveHiddenCompletionExecutor, createV1HiddenCompletionExecutor, readHistorianFailureStreak, describeHistorianJoinRefusal, shouldWaitForNewHistorianHistory, EMPTY_READ_REPLY, noteTouchedAt, renderGlance, renderNotesById, formatWriteReply, observeNoteNudgeServe, onNoteTrigger, peekNoteNudgeText, markNoteNudgeDelivered, clearNoteNudgeTriggerAndCooldown, omitIncompleteFileTokenTotals, describeBoundaryDiagnostics, RECOVERY_NO_HEAD_LIMIT, deriveProtectedTailTokenTarget, selectPerRunCap, resolveOpenCodeProtectedTailBoundary, resolveWrapupProtectedTailBoundary, getRawHistoryEligibility, hasRunnableCompartmentWindow, recordHighPressureNoEligibleHead, noteTransformPassForExactOrdinalReads, nonNarrativeStoredGapRanges, runCompartmentAgent, getActiveCompartmentRun, markActiveCompartmentRunPublished, registerActiveCompartmentRun, startCompartmentAgent, isRecompFailure2, isRecompSkip2, extractRecompReason2, setRecompStarting2, setRecompNote2, setRecompTerminal2, buildRecompDeps2, runManagedRecomp2 };
@@ -53,11 +53,11 @@ async function trySendTuiToast(sessionId, text, params, forcePersist) {
53
53
  const message = text.length > 200 ? `${text.slice(0, 200)}…` : text;
54
54
  const toastVariant = inferToastVariant(text);
55
55
  const duration = params.toastDurationMs ?? 5000;
56
- const { isTuiConnected: checkTui } = await importPluginModule(() => import("./rpc-notifications-3hed126v.js"));
56
+ const { isTuiConnected: checkTui } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
57
57
  if (!checkTui(sessionId))
58
58
  return false;
59
59
  try {
60
- const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-3hed126v.js"));
60
+ const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
61
61
  pushNotification("toast", {
62
62
  title,
63
63
  message,
@@ -286,7 +286,7 @@ async function sendCommandResult2(client, sessionId, text, params) {
286
286
  if (shouldHoldIgnoredNotification(sessionId)) {
287
287
  return sendIgnoredMessage2(client, sessionId, text, params);
288
288
  }
289
- const { isTuiConnected } = await importPluginModule(() => import("./rpc-notifications-3hed126v.js"));
289
+ const { isTuiConnected } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
290
290
  if (isTuiConnected(sessionId))
291
291
  return sendIgnoredMessage2(client, sessionId, text, params);
292
292
  const session = client?.session;
@@ -386,7 +386,7 @@ function observeIgnoredNotificationEvent2(event) {
386
386
  }
387
387
  async function sendStatusNotification2(_client, sessionId, text, params) {
388
388
  try {
389
- const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-3hed126v.js"));
389
+ const { pushNotification } = await importPluginModule(() => import("./rpc-notifications-t9q0ynq7.js"));
390
390
  pushNotification("toast", {
391
391
  title: extractToastTitle(text),
392
392
  message: text,
package/dist/v2/server.js CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  } from "./server-rz6g5xne.js";
26
26
  import {
27
27
  pushNotification2
28
- } from "./server-x8a7jmkh.js";
28
+ } from "./server-fzgyvsb1.js";
29
29
  import"./server-gzy5w8ya.js";
30
30
  import {
31
31
  compareSemverCore
@@ -7875,7 +7875,7 @@ var require_src2 = __commonJS(function(exports, module) {
7875
7875
  // package.json
7876
7876
  var package_default = {
7877
7877
  name: "@cortexkit/opencode-magic-context",
7878
- version: "0.49.80",
7878
+ version: "0.49.82",
7879
7879
  type: "module",
7880
7880
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
7881
7881
  main: "dist/index.js",
@@ -8196,7 +8196,7 @@ async function setup(context) {
8196
8196
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
8197
8197
  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.`);
8198
8198
  }
8199
- const { registerContext } = await import("./context-r1swhysg.js");
8199
+ const { registerContext } = await import("./context-gwkgh0wd.js");
8200
8200
  setHarness2("opencode2");
8201
8201
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
8202
8202
  const duties = await registerContext(context);
@@ -1,13 +1,15 @@
1
1
  import {
2
2
  rawMessagePage2,
3
+ readV2MessageRange2,
4
+ iterateV2MessageRange2,
3
5
  servedBoundaryRow2,
4
6
  resolveV2BoundaryUserMessage2,
5
7
  readAllV2RawMessagesForConversion2,
6
8
  readV2RawMessagePagesForConversion2,
7
9
  createV2RawMessageReader2,
8
10
  createV2RawMessageProvider2
9
- } from "./server-34pvhvxt.js";
10
- import"./server-rthnpmbp.js";
11
+ } from "./server-1efjj215.js";
12
+ import"./server-5yfq912a.js";
11
13
  import"./server-39bcszk4.js";
12
14
  import"./server-2ra6pwf3.js";
13
15
  import"./server-gzy5w8ya.js";
@@ -15,8 +17,10 @@ import"./server-z4p0ry94.js";
15
17
  export {
16
18
  createV2RawMessageProvider2 as createV2RawMessageProvider,
17
19
  createV2RawMessageReader2 as createV2RawMessageReader,
20
+ iterateV2MessageRange2 as iterateV2MessageRange,
18
21
  rawMessagePage2 as rawMessagePage,
19
22
  readAllV2RawMessagesForConversion2 as readAllV2RawMessagesForConversion,
23
+ readV2MessageRange2 as readV2MessageRange,
20
24
  readV2RawMessagePagesForConversion2 as readV2RawMessagePagesForConversion,
21
25
  resolveV2BoundaryUserMessage2 as resolveV2BoundaryUserMessage,
22
26
  servedBoundaryRow2 as servedBoundaryRow
@@ -3,7 +3,7 @@ import {
3
3
  RAW_MESSAGE_TYPES2,
4
4
  V2StoreReaderPool2,
5
5
  V2StoreReader2
6
- } from "./server-rthnpmbp.js";
6
+ } from "./server-5yfq912a.js";
7
7
  import"./server-2ra6pwf3.js";
8
8
  import"./server-gzy5w8ya.js";
9
9
  export {
@@ -234,11 +234,10 @@ export declare class V2StoreReader {
234
234
  isSubagent(sessionID: string): boolean | null;
235
235
  /**
236
236
  * The most recently updated top-level user session the host created in
237
- * `directory`, or undefined when there is none. Children, Magic Context's
238
- * own hidden runs and archived sessions are never returned. The session must
239
- * be in this very directory: OpenCode 2 puts a child session in its parent's
240
- * location, and only the plugin context of that location recognises the
241
- * child, so a parent from a sibling checkout would strand the run.
237
+ * `directory`, or undefined when there is none. Exclude children, archived
238
+ * sessions, and Magic Context's internal runs and holders. The timer borrows
239
+ * a user session in this directory for task context and model selection, not
240
+ * as the parent of a hidden child.
242
241
  *
243
242
  * The directory is compared by `sameProjectDirectory`, not by SQL equality.
244
243
  * OpenCode 2 on Windows stores `D:/work/app` while the plugin's location is
@@ -247,9 +246,11 @@ export declare class V2StoreReader {
247
246
  * a page at a time, and the first one in this directory wins.
248
247
  */
249
248
  latestRootSessionInDirectory(directory: string): string | undefined;
250
- /** Native user activity on root sessions; internal children must never become
251
- * retrospective input. Activity is read from the source, not project-binding
252
- * times or optional activity keys in Magic Context's store. */
249
+ /** When the user was last active in each top-level session. The nightly task
250
+ * that learns from recent user sessions picks them by this, so Magic Context's
251
+ * own background runs and their holder sessions are left out. The time comes
252
+ * from the host's messages, not from project-binding times or optional
253
+ * activity keys in Magic Context's store. */
253
254
  rootSessionActivity(sessionIDs: readonly string[]): Map<string, number>;
254
255
  oldestUserMessageTimesSince(sessionIDs: readonly string[], sinceMs: number): Map<string, number>;
255
256
  /** Timestamp-bounded retrospective read. Project only genuine user text in
@@ -330,6 +331,12 @@ export declare class V2StoreReader {
330
331
  * in seq order, without decoding any message body.
331
332
  */
332
333
  rowStampsThrough(sessionID: string, throughSeq: number, after?: number): V2RowStamp[];
334
+ /** Exact body equality for candidate fork pairs, without decoding or returning the bodies. */
335
+ matchingForkBodies(parentID: string, forkID: string, throughSeq: number): Map<string, string>;
336
+ /** Step through counted rows without reading past the consumer's decision. */
337
+ iterateRawMessageRange(sessionID: string, from: number, to: number): Iterable<StoreRow>;
338
+ /** Identify suffix replacement without reading any message bodies. */
339
+ messageCountAndNewestId(sessionID: string): [number, string | null];
333
340
  latestSequenceForIds(sessionID: string, ids: readonly string[]): number;
334
341
  private compactionByStatus;
335
342
  latestCompaction(sessionID: string): StoreRow<"compaction"> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"store-reader.d.ts","sourceRoot":"","sources":["../../src/v2/store-reader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAOvF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,yFAAyF;AACzF,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,MAAM,EACf,GAAG,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,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAOzC,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,EAAE;IAU5E,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,SAAS;IAUrE,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS;IAU3D,8EAA8E;IAC9E,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,EAAE;IAWrC;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,EAAE;IAItC,OAAO,CAAC,GAAG;CAcd"}
@@ -22,7 +22,7 @@ export declare function sidebarText(snapshot: SidebarSnapshot | undefined): stri
22
22
  *
23
23
  * Exported for test access.
24
24
  */
25
- export declare function statusText(detail: Pick<StatusDetail, "contextLimit" | "usagePercentage" | "inputTokens" | "compaction_enabled" | "historianRunning" | "compartmentCount" | "memoryBlockCount" | "memoryCount" | "pendingOpsCount" | "configGeneration" | "configAdoptedAt" | "configReloadFailure" | "lastTransformError">): string;
25
+ export declare function statusText(detail: Pick<StatusDetail, "contextLimit" | "usagePercentage" | "inputTokens" | "compaction_enabled" | "historianRunning" | "compartmentCount" | "memoryBlockCount" | "memoryCount" | "pendingOpsCount" | "configGeneration" | "configAdoptedAt" | "configReloadFailure" | "lastTransformError" | "projectBindingWarning">): string;
26
26
  /**
27
27
  * Plain-text status for one checked result: the status lines above, or the
28
28
  * "status unavailable" view as text when there is no usable snapshot. A
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/tui/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI5E,OAAO,EAOH,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,C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;;GAQG;AACH,wBAAgB,UAAU,CACtB,MAAM,EAAE,IAAI,CACR,YAAY,EACV,cAAc,GACd,iBAAiB,GACjB,aAAa,GACb,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,aAAa,GACb,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,CAC5B,GACF,MAAM,CA8BR;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAoBhE;AAOD,KAAK,UAAU,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC;AAE5E,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAqM9F;AAED,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAStE;;;;;AAED,wBAAuD"}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readV2ArchiveOffThread2,
3
3
  serveV2ArchiveReads2
4
- } from "./server-ma9jwnas.js";
4
+ } from "./server-1cn3kryt.js";
5
5
  import"./server-v0p37hm2.js";
6
6
  import"./server-gzy5w8ya.js";
7
7
  import"./server-1d042x6w.js";
@@ -12,7 +12,7 @@ import {
12
12
  getCompartments,
13
13
  getLastCompartmentEndMessage,
14
14
  requestPendingMaterialization
15
- } from "./server-dhdn8mwq.js";
15
+ } from "./server-c8mqs0v5.js";
16
16
  import"./server-2amn2s73.js";
17
17
  import"./server-y8xjr8rx.js";
18
18
  import"./server-x6fn9x8q.js";
@@ -35,7 +35,7 @@ import {
35
35
  clearEmergencyRecovery
36
36
  } from "./server-xdh4r20h.js";
37
37
  import"./server-xepx8t43.js";
38
- import"./server-76v5y7zm.js";
38
+ import"./server-g1a0nhtk.js";
39
39
  import"./server-1zx87sdm.js";
40
40
  import"./server-rz6g5xne.js";
41
41
  import"./server-2ra6pwf3.js";
@@ -44,15 +44,15 @@ import {
44
44
  prepareRawSessionOrdinals2
45
45
  } from "./server-2gcfmd47.js";
46
46
  import"./server-fr0wbhdn.js";
47
- import"./server-jn4pktdk.js";
48
- import"./server-afsz3cmx.js";
49
- import"./server-rthnpmbp.js";
47
+ import"./server-2ktxmtbd.js";
48
+ import"./server-bt546axy.js";
49
+ import"./server-5yfq912a.js";
50
50
  import"./server-fb3zxn06.js";
51
51
  import"./server-39bcszk4.js";
52
- import"./server-rbtx6q5v.js";
52
+ import"./server-569he5mh.js";
53
53
  import {
54
54
  pushNotification2
55
- } from "./server-x8a7jmkh.js";
55
+ } from "./server-fzgyvsb1.js";
56
56
  import"./server-at0v0z4t.js";
57
57
  import {
58
58
  describeBoundaryDiagnostics,
@@ -64,14 +64,14 @@ import {
64
64
  registerActiveCompartmentRun,
65
65
  setRecompStarting2,
66
66
  setRecompTerminal2
67
- } from "./server-fqnty3nk.js";
67
+ } from "./server-vt6nj2hn.js";
68
68
  import"./server-qt1qqasc.js";
69
- import"./server-mhrgymcs.js";
70
- import"./server-jtq03rkb.js";
69
+ import"./server-68q80y27.js";
70
+ import"./server-4z964n1c.js";
71
71
  import"./server-4dhv7mqz.js";
72
72
  import"./server-d706s5xn.js";
73
- import"./server-25qtxt4d.js";
74
- import"./server-x8ksqcw7.js";
73
+ import"./server-gx1s06dx.js";
74
+ import"./server-pejjj0nv.js";
75
75
  import"./server-jjvbk92s.js";
76
76
  import"./server-bj779zmp.js";
77
77
  import"./server-nqdzv8b7.js";
@@ -79,7 +79,7 @@ import"./server-rp52f40v.js";
79
79
  import"./server-npdey91q.js";
80
80
  import {
81
81
  sendStatusNotification2
82
- } from "./server-qjff96a6.js";
82
+ } from "./server-wdq85mxj.js";
83
83
  import"./server-5sbsnpkn.js";
84
84
 
85
85
  // src/hooks/magic-context/wrapup-orchestrator.ts