@cortexkit/opencode-magic-context 0.49.56 → 0.49.59

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 (177) hide show
  1. package/dist/{announcement-9pr71hd5.js → announcement-p41dde4h.js} +2 -2
  2. package/dist/auto-search-worker.js +5 -5
  3. package/dist/chunk-embedding-write-worker.js +13 -13
  4. package/dist/{compaction-marker-candidates-8hazqfvj.js → compaction-marker-candidates-1ndjqh9k.js} +2 -2
  5. package/dist/compaction-marker-candidates-worker.js +1 -1
  6. package/dist/{compartment-chunk-embedding-gfd093f8.js → compartment-chunk-embedding-ymc9mtwv.js} +7 -7
  7. package/dist/{conflict-warning-hook-56qpq7ws.js → conflict-warning-hook-m8yezwdj.js} +7 -7
  8. package/dist/{context-bejy30t5.js → context-aexc6pbs.js} +69 -44
  9. package/dist/{derive-budgets-z53424qx.js → derive-budgets-heypxqdz.js} +2 -2
  10. package/dist/{embedding-backfill-2dvf3rcn.js → embedding-backfill-sk7agn5v.js} +12 -12
  11. package/dist/embedding-worker-process.js +1 -1
  12. package/dist/embedding-worker.js +4 -4
  13. package/dist/features/magic-context/mural/render-mural.d.ts +17 -0
  14. package/dist/features/magic-context/mural/render-mural.d.ts.map +1 -1
  15. package/dist/features/magic-context/mural/render-trigger.d.ts +2 -1
  16. package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
  17. package/dist/features/magic-context/mural/resolve-mural.d.ts +8 -2
  18. package/dist/features/magic-context/mural/resolve-mural.d.ts.map +1 -1
  19. package/dist/features/magic-context/storage-historian-runs.d.ts +7 -0
  20. package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
  21. package/dist/{history-owner-n50e0e8y.js → history-owner-xqfsvf9k.js} +2 -2
  22. package/dist/hooks/magic-context/command-handler.d.ts +2 -0
  23. package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
  24. package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
  25. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  26. package/dist/hooks/magic-context/compartment-runner-types.d.ts +9 -0
  27. package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
  28. package/dist/hooks/magic-context/compartment-runner.d.ts +7 -1
  29. package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
  30. package/dist/hooks/magic-context/historian-failure-report.d.ts +112 -0
  31. package/dist/hooks/magic-context/historian-failure-report.d.ts.map +1 -0
  32. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  33. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  34. package/dist/hooks/magic-context/transform-compartment-phase.d.ts +11 -1
  35. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  36. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  37. package/dist/{index-5ptp2de1.js → index-0cz8bsyx.js} +9 -9
  38. package/dist/{index-r9agn061.js → index-1sq1krqw.js} +4 -4
  39. package/dist/{index-b6rdv8re.js → index-3hk445am.js} +4 -4
  40. package/dist/{index-by14cr73.js → index-3yyfftqq.js} +11 -11
  41. package/dist/{index-ffab4edg.js → index-575njz7q.js} +74 -50
  42. package/dist/{index-gapnh6tk.js → index-5ps3axh5.js} +1 -1
  43. package/dist/{index-0tz2fzpq.js → index-5vsk2cpp.js} +1 -1
  44. package/dist/{index-90z05d0p.js → index-832w615x.js} +1 -1
  45. package/dist/{index-sk6p6esd.js → index-8sc7vqt7.js} +4 -4
  46. package/dist/{index-cd3vp8xa.js → index-98qy103c.js} +1 -1
  47. package/dist/{index-3jeq08jv.js → index-a09sw9fx.js} +380 -93
  48. package/dist/{index-29ff546v.js → index-d0feqcs5.js} +6 -6
  49. package/dist/{index-gz001bx7.js → index-e6ncz7a6.js} +1 -1
  50. package/dist/{index-reyws9fy.js → index-esqcwes7.js} +1 -1
  51. package/dist/{index-h62j8z2r.js → index-ev2rrjfc.js} +4 -4
  52. package/dist/{index-sx1sppd6.js → index-gq1g9a3a.js} +8 -8
  53. package/dist/{index-ga5q492k.js → index-gqf8r04r.js} +1 -1
  54. package/dist/{index-5483ntzh.js → index-gth4t4ar.js} +5 -5
  55. package/dist/{index-pxfb7pp8.js → index-j4aeh6tx.js} +14 -14
  56. package/dist/{index-qperbvjn.js → index-jg7sbt3v.js} +2 -2
  57. package/dist/{index-9mggb1nv.js → index-jrj95cce.js} +2 -2
  58. package/dist/{index-12p4j9wa.js → index-kv4ntrr6.js} +5 -5
  59. package/dist/{index-tad3can2.js → index-m0pwswv9.js} +1 -1
  60. package/dist/{index-pdh4tdcq.js → index-n6aye6ny.js} +2 -2
  61. package/dist/{index-hsyczpn7.js → index-pxnzyvjc.js} +2 -2
  62. package/dist/{index-kn1bx21r.js → index-pzvdf7sr.js} +3 -3
  63. package/dist/{index-36wseasx.js → index-q7q6qp1f.js} +1 -1
  64. package/dist/{index-qfc1kjh4.js → index-s2jdky2x.js} +3 -3
  65. package/dist/{index-2ny9xwdn.js → index-s32f8y67.js} +2 -2
  66. package/dist/{index-3wmp1nb7.js → index-s3t4vk21.js} +7 -7
  67. package/dist/{index-hexdee98.js → index-snbpdpa3.js} +4 -4
  68. package/dist/{index-dhdv88e5.js → index-tebcx987.js} +1 -1
  69. package/dist/{index-5gqszjq9.js → index-tq20edcs.js} +3 -3
  70. package/dist/{index-0k283v27.js → index-tzy5h4x6.js} +1 -1
  71. package/dist/{index-em92bp7f.js → index-x40zr813.js} +2 -2
  72. package/dist/{index-sv5tn72j.js → index-xx05vta0.js} +4 -4
  73. package/dist/{index-82dfe8en.js → index-ywrz4wy2.js} +9 -4
  74. package/dist/{index-wgbp5zch.js → index-ywxvdwmj.js} +25 -10
  75. package/dist/{index-xstbytjn.js → index-zb4h9nrk.js} +2 -2
  76. package/dist/{index-2vsd5064.js → index-zxj39ba2.js} +4 -4
  77. package/dist/index.js +51 -50
  78. package/dist/{logger-sw7z6sjz.js → logger-d7c8akh9.js} +1 -1
  79. package/dist/{message-fts-rowid-map-kx1bsdyg.js → message-fts-rowid-map-0xx8ge09.js} +4 -4
  80. package/dist/{message-index-bounded-xav3h8qe.js → message-index-bounded-f6yz4xq8.js} +10 -10
  81. package/dist/{message-time-backfill-hp2jgn49.js → message-time-backfill-pz5981mf.js} +2 -2
  82. package/dist/migration-worker.js +10 -10
  83. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  84. package/dist/{project-embedding-registry-f2azrq24.js → project-embedding-registry-c2sfnamh.js} +11 -11
  85. package/dist/raw-ordinal-warmup-worker.js +8 -8
  86. package/dist/{read-session-chunk-70aam2c1.js → read-session-chunk-8b1g06nz.js} +8 -8
  87. package/dist/{read-session-raw-04ger9zt.js → read-session-raw-3sc9231y.js} +2 -2
  88. package/dist/{recomp-orchestrator-2tsjqbrm.js → recomp-orchestrator-zqn9zwxn.js} +29 -29
  89. package/dist/{render-fgxbcmnh.js → render-nrfbtkkw.js} +19 -19
  90. package/dist/{safe-notification-target-mx5khyxf.js → safe-notification-target-d21swr3n.js} +2 -2
  91. package/dist/{search-archive-0mz3p1g1.js → search-archive-1ppdjfm9.js} +10 -10
  92. package/dist/{search-jfwb4ms3.js → search-xha0r30f.js} +22 -22
  93. package/dist/{send-session-notification-gamjee2f.js → send-session-notification-ykvt5k2s.js} +5 -5
  94. package/dist/shared/data-path.d.ts +31 -36
  95. package/dist/shared/data-path.d.ts.map +1 -1
  96. package/dist/shared/test-temp-dir.d.ts +28 -0
  97. package/dist/shared/test-temp-dir.d.ts.map +1 -1
  98. package/dist/{storage-tags-arnkn5t1.js → storage-tags-spet01yb.js} +5 -5
  99. package/dist/{transform-postprocess-phase-64xtx439.js → transform-postprocess-phase-gxb3sp91.js} +30 -30
  100. package/dist/v2/auto-search-worker.js +5 -5
  101. package/dist/v2/chunk-embedding-write-worker.js +13 -13
  102. package/dist/v2/{compaction-marker-candidates-re14353a.js → compaction-marker-candidates-bp1bn579.js} +2 -2
  103. package/dist/v2/compaction-marker-candidates-worker.js +1 -1
  104. package/dist/v2/{compartment-chunk-embedding-0pxsrzrt.js → compartment-chunk-embedding-x6qw6mjk.js} +7 -7
  105. package/dist/v2/{context-5hhm89jw.js → context-wszt0gbq.js} +102 -57
  106. package/dist/v2/{derive-budgets-w0815q82.js → derive-budgets-gw030jzt.js} +3 -3
  107. package/dist/v2/{embedding-backfill-48qbnh7p.js → embedding-backfill-j2xj86zn.js} +12 -12
  108. package/dist/v2/embedding-worker-process.js +1 -1
  109. package/dist/v2/embedding-worker.js +4 -4
  110. package/dist/v2/{history-owner-ep91wgqj.js → history-owner-260djmv5.js} +2 -2
  111. package/dist/v2/hooks/claude-agent-instructions.d.ts +27 -0
  112. package/dist/v2/hooks/claude-agent-instructions.d.ts.map +1 -0
  113. package/dist/v2/hooks/context.d.ts.map +1 -1
  114. package/dist/v2/hooks/hidden-child.d.ts +15 -2
  115. package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
  116. package/dist/v2/hooks/usage-persist.d.ts +7 -1
  117. package/dist/v2/hooks/usage-persist.d.ts.map +1 -1
  118. package/dist/v2/{logger-xnscpj6w.js → logger-zyf43np1.js} +1 -1
  119. package/dist/v2/{message-fts-rowid-map-57jh6xpb.js → message-fts-rowid-map-n8mcvcpz.js} +4 -4
  120. package/dist/v2/{message-index-bounded-sw8hyqw1.js → message-index-bounded-0w8eh8fc.js} +10 -10
  121. package/dist/v2/{message-time-backfill-baxebka0.js → message-time-backfill-ynb3vg6r.js} +2 -2
  122. package/dist/v2/migration-worker.js +10 -10
  123. package/dist/v2/{project-embedding-registry-kwahtjgg.js → project-embedding-registry-k0hjqt11.js} +11 -11
  124. package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
  125. package/dist/v2/{read-session-chunk-nqkn0yb4.js → read-session-chunk-dxs1tgt9.js} +8 -8
  126. package/dist/v2/{read-session-raw-3e482h3c.js → read-session-raw-wg5zc29f.js} +2 -2
  127. package/dist/v2/{recomp-orchestrator-dzdxrgdt.js → recomp-orchestrator-76rv3b89.js} +30 -30
  128. package/dist/v2/{render-jfa3hj8z.js → render-9knrdrjs.js} +19 -19
  129. package/dist/v2/{safe-notification-target-9r79xnbt.js → safe-notification-target-y55z2zat.js} +2 -2
  130. package/dist/v2/{search-8dc9ex0a.js → search-a2a0qs3t.js} +21 -21
  131. package/dist/v2/{search-archive-p4s9q7a3.js → search-archive-2jmyvj69.js} +10 -10
  132. package/dist/v2/{send-session-notification-95p89k7q.js → send-session-notification-8g4r97bp.js} +5 -5
  133. package/dist/v2/{server-7vrtk78d.js → server-3ap5dmhc.js} +1 -1
  134. package/dist/v2/{server-avfc9ezb.js → server-4r86tcs2.js} +3 -3
  135. package/dist/v2/{server-np27dgyt.js → server-5sbsnpkn.js} +1 -1
  136. package/dist/v2/{server-rz5jnhnv.js → server-6ash6z8z.js} +1 -1
  137. package/dist/v2/{server-beydmd68.js → server-88n85n60.js} +4 -4
  138. package/dist/v2/{server-g61hgy1y.js → server-8pdfmc27.js} +4 -4
  139. package/dist/v2/{server-gge95a03.js → server-8ycacd59.js} +6 -6
  140. package/dist/v2/{server-8e5m2gre.js → server-9ab9jnpq.js} +3 -3
  141. package/dist/v2/{server-z6sxv6n3.js → server-9emfsa60.js} +382 -95
  142. package/dist/v2/{server-kyfj1090.js → server-9m5r04ws.js} +5 -5
  143. package/dist/v2/{server-3yk44ddz.js → server-afsz3cmx.js} +1 -1
  144. package/dist/v2/{server-c8z2grq0.js → server-at0v0z4t.js} +1 -1
  145. package/dist/v2/{server-v817sf79.js → server-d07yxksx.js} +2 -2
  146. package/dist/v2/{server-kwtnrhv3.js → server-d706s5xn.js} +2 -2
  147. package/dist/v2/{server-ycvqg2s3.js → server-d9aayyxk.js} +4 -4
  148. package/dist/v2/{server-966dq3pd.js → server-ds8vpfkr.js} +2 -2
  149. package/dist/v2/{server-bb6kf05j.js → server-j8376q08.js} +9 -4
  150. package/dist/v2/{server-7waad75d.js → server-ja6swvmb.js} +11 -11
  151. package/dist/v2/{server-tmf0ayqp.js → server-jdfe07mp.js} +1 -1
  152. package/dist/v2/{server-6k0rnwbd.js → server-jn4pktdk.js} +4 -4
  153. package/dist/v2/{server-qp5sj6n5.js → server-jtq03rkb.js} +2 -2
  154. package/dist/v2/{server-sa1fdt41.js → server-kc5kb9ya.js} +1 -1
  155. package/dist/v2/{server-91gb0vh8.js → server-npdey91q.js} +1 -1
  156. package/dist/v2/{server-vqq3g1t7.js → server-qjff96a6.js} +4 -4
  157. package/dist/v2/{server-4x0xq8a1.js → server-rbtx6q5v.js} +1 -1
  158. package/dist/v2/{server-jwydbwcx.js → server-svx20ra2.js} +4 -4
  159. package/dist/v2/{server-q02z0jq7.js → server-t8tmrtcg.js} +25 -10
  160. package/dist/v2/{server-0ayyh3mx.js → server-tzh55x6d.js} +9 -9
  161. package/dist/v2/{server-5p0bjk3y.js → server-v1s0cb4v.js} +2 -2
  162. package/dist/v2/{server-mxsy9h1d.js → server-x6fn9x8q.js} +2 -2
  163. package/dist/v2/{server-b0357as4.js → server-xepx8t43.js} +2 -2
  164. package/dist/v2/{server-3jc6qmdz.js → server-y8xjr8rx.js} +1 -1
  165. package/dist/v2/{server-5kgesxck.js → server-ypaat9rj.js} +2 -2
  166. package/dist/v2/{server-rpmkz5ta.js → server-z5255w05.js} +8 -8
  167. package/dist/v2/server.js +5 -5
  168. package/dist/v2/{storage-tags-19da4c0m.js → storage-tags-50wsqg3t.js} +5 -5
  169. package/dist/v2/{v2-archive-reader-jpdh0ktt.js → v2-archive-reader-ycjh6a2d.js} +1 -1
  170. package/dist/v2/{wrapup-orchestrator-5dfj2mcs.js → wrapup-orchestrator-ejcx02g2.js} +30 -30
  171. package/dist/{v2-archive-reader-557b5dn3.js → v2-archive-reader-wec0a8fx.js} +1 -1
  172. package/dist/wrapup-orchestrator-e7mczz6e.js +54 -0
  173. package/package.json +1 -1
  174. package/src/shared/data-path.test.ts +27 -10
  175. package/src/shared/data-path.ts +39 -39
  176. package/src/shared/test-temp-dir.ts +59 -0
  177. package/dist/wrapup-orchestrator-21hgybdk.js +0 -54
@@ -6,23 +6,23 @@ import {
6
6
  } from "./server-gzy5w8ya.js";
7
7
  import {
8
8
  runSessionWarmupWorker
9
- } from "./server-rz5jnhnv.js";
9
+ } from "./server-6ash6z8z.js";
10
10
  import {
11
11
  estimateTokens
12
- } from "./server-3jc6qmdz.js";
12
+ } from "./server-y8xjr8rx.js";
13
13
  import {
14
14
  openCodeDbExists,
15
15
  withReadOnlySessionDb
16
- } from "./server-7vrtk78d.js";
16
+ } from "./server-3ap5dmhc.js";
17
17
  import {
18
18
  hasRawMessageProvider2,
19
19
  rawMessageWorkerSource2,
20
20
  rawMessageOffThreadRangeReader2,
21
21
  readRawSessionMessageIdOrdinalsForRange2
22
- } from "./server-gge95a03.js";
22
+ } from "./server-8ycacd59.js";
23
23
  import {
24
24
  readV2ArchiveOffThread2
25
- } from "./server-8e5m2gre.js";
25
+ } from "./server-9ab9jnpq.js";
26
26
 
27
27
  // src/tools/ctx-expand/search-archive.ts
28
28
  var archiveReadsOnThisThread = 0;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getMagicContextStorageDir,
3
3
  log2
4
- } from "./server-bb6kf05j.js";
4
+ } from "./server-j8376q08.js";
5
5
  import {
6
6
  inRootAsyncContext2
7
7
  } from "./server-gzy5w8ya.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./server-v0p37hm2.js";
4
4
  import {
5
5
  log2
6
- } from "./server-bb6kf05j.js";
6
+ } from "./server-j8376q08.js";
7
7
  import {
8
8
  inRootAsyncContext2,
9
9
  getSqliteDatabasePath2
@@ -7,10 +7,10 @@ import {
7
7
  } from "./server-fr0wbhdn.js";
8
8
  import {
9
9
  sessionLog2
10
- } from "./server-bb6kf05j.js";
10
+ } from "./server-j8376q08.js";
11
11
  import {
12
12
  embedTextForProject2
13
- } from "./server-rpmkz5ta.js";
13
+ } from "./server-z5255w05.js";
14
14
  import {
15
15
  saveEmbeddingIfHashMatches
16
16
  } from "./server-4dhv7mqz.js";
@@ -8,10 +8,10 @@ import {
8
8
  getMagicContextStorageDir,
9
9
  importPluginModule,
10
10
  log2
11
- } from "./server-bb6kf05j.js";
11
+ } from "./server-j8376q08.js";
12
12
  import {
13
13
  getSynapseLaneIdentity
14
- } from "./server-mxsy9h1d.js";
14
+ } from "./server-x6fn9x8q.js";
15
15
  import {
16
16
  inRootAsyncContext2
17
17
  } from "./server-gzy5w8ya.js";
@@ -3,19 +3,19 @@ import {
3
3
  } from "./server-rz6g5xne.js";
4
4
  import {
5
5
  log2
6
- } from "./server-bb6kf05j.js";
6
+ } from "./server-j8376q08.js";
7
7
  import {
8
8
  isSynapseEmbeddingTruncated,
9
9
  SynapseEmbeddingProvider
10
- } from "./server-mxsy9h1d.js";
10
+ } from "./server-x6fn9x8q.js";
11
11
  import {
12
12
  LocalEmbeddingProvider
13
- } from "./server-kwtnrhv3.js";
13
+ } from "./server-d706s5xn.js";
14
14
  import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./server-rpmkz5ta.js";
18
+ } from "./server-z5255w05.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./server-qt1qqasc.js";
@@ -5,10 +5,10 @@ import {
5
5
  } from "./server-gzy5w8ya.js";
6
6
  import {
7
7
  runSessionWarmupWorker
8
- } from "./server-rz5jnhnv.js";
8
+ } from "./server-6ash6z8z.js";
9
9
  import {
10
10
  logSlowWriteTransaction
11
- } from "./server-np27dgyt.js";
11
+ } from "./server-5sbsnpkn.js";
12
12
 
13
13
  // src/features/magic-context/message-fts-rowid-map.ts
14
14
  import { createHash } from "node:crypto";
@@ -41,6 +41,14 @@ function getMagicContextLogPath(harness = getHarness2()) {
41
41
  return envPath;
42
42
  return path.join(getMagicContextTempDir(harness), "magic-context.log");
43
43
  }
44
+ function getMagicContextHistorianDir(harness = getHarness2()) {
45
+ return path.join(getMagicContextTempDir(harness), "historian");
46
+ }
47
+ function getMagicContextHistorianSessionDir(sessionId, harness = getHarness2()) {
48
+ const safeSessionId = sessionId.replace(/[^a-zA-Z0-9._-]/g, "-");
49
+ const directoryName = /^\.*$/.test(safeSessionId) ? "unknown-session" : safeSessionId;
50
+ return path.join(getMagicContextHistorianDir(harness), directoryName);
51
+ }
44
52
  function getProjectMagicContextDir(directory) {
45
53
  return path.join(directory, ".cortexkit", "magic-context");
46
54
  }
@@ -70,9 +78,6 @@ function ensureCortexKitArtifactGitignore(directory) {
70
78
  log2("Failed to ensure project artifact gitignore", { directory, error: String(error) });
71
79
  }
72
80
  }
73
- function getProjectMagicContextHistorianDir(directory) {
74
- return path.join(getProjectMagicContextDir(directory), "historian");
75
- }
76
81
  function getOpenCodeStorageDir() {
77
82
  return path.join(getDataDir(), "opencode", "storage");
78
83
  }
@@ -482,4 +487,4 @@ if (!isTestEnv) {
482
487
  process.on("exit", flush);
483
488
  }
484
489
 
485
- export { getDataDir, ensureCortexKitArtifactGitignore, getProjectMagicContextHistorianDir, getMagicContextStorageDir, isMagicContextStorageOutsideEngram, claimStorageBackupWarningCheck, getLegacyOpenCodeMagicContextStorageDir, registerStalePluginBuildHost, classifyStalePluginBuild, importPluginModule, setLogLineForwarder2, writeForwardedLogLine2, log2, sessionLog2, getLoggerDiagnostics2, flushLogger2, getLogFilePath2 };
490
+ export { getDataDir, getMagicContextHistorianSessionDir, ensureCortexKitArtifactGitignore, getMagicContextStorageDir, isMagicContextStorageOutsideEngram, claimStorageBackupWarningCheck, getLegacyOpenCodeMagicContextStorageDir, registerStalePluginBuildHost, classifyStalePluginBuild, importPluginModule, setLogLineForwarder2, writeForwardedLogLine2, log2, sessionLog2, getLoggerDiagnostics2, flushLogger2, getLogFilePath2 };
@@ -5,17 +5,17 @@ import {
5
5
  getDataDir,
6
6
  log2,
7
7
  sessionLog2
8
- } from "./server-bb6kf05j.js";
8
+ } from "./server-j8376q08.js";
9
9
  import {
10
10
  inRootAsyncContext2,
11
11
  withSqliteBackgroundWriter2
12
12
  } from "./server-gzy5w8ya.js";
13
13
  import {
14
14
  scheduleAfterBootQuiet
15
- } from "./server-3yk44ddz.js";
15
+ } from "./server-afsz3cmx.js";
16
16
  import {
17
17
  isRecord
18
- } from "./server-beydmd68.js";
18
+ } from "./server-88n85n60.js";
19
19
  import {
20
20
  cleanSearchText,
21
21
  hintKeywordRelevance,
@@ -25,7 +25,7 @@ import {
25
25
  isMessageIndexReconciledThrough,
26
26
  clearIndexedMessages,
27
27
  indexMessagesAfterOrdinal
28
- } from "./server-jwydbwcx.js";
28
+ } from "./server-svx20ra2.js";
29
29
  import {
30
30
  Priority,
31
31
  AdmissionClass,
@@ -34,13 +34,13 @@ import {
34
34
  StaleRouteHandleError,
35
35
  SubcClient,
36
36
  isConsumerReconnectTransient
37
- } from "./server-mxsy9h1d.js";
37
+ } from "./server-x6fn9x8q.js";
38
38
  import {
39
39
  buildCanonicalChunkTextFromFts2,
40
40
  loadCompartmentChunkEmbeddingsForSearch2,
41
41
  peekCompartmentChunkSearchPool2,
42
42
  warmCompartmentChunkSearchPool2
43
- } from "./server-g61hgy1y.js";
43
+ } from "./server-8pdfmc27.js";
44
44
  import {
45
45
  saveCommitEmbedding,
46
46
  loadProjectCommitEmbeddings,
@@ -56,7 +56,7 @@ import {
56
56
  enqueueShadowEmbeddingItems2,
57
57
  getProjectEmbeddingSnapshot2,
58
58
  embedItemsForProject2
59
- } from "./server-rpmkz5ta.js";
59
+ } from "./server-z5255w05.js";
60
60
  import {
61
61
  recordEmbeddingMeasurement
62
62
  } from "./server-2amn2s73.js";
@@ -68,7 +68,7 @@ import {
68
68
  isEmbeddingEnabled,
69
69
  embedText,
70
70
  ensureMemoryEmbeddings2
71
- } from "./server-ycvqg2s3.js";
71
+ } from "./server-d9aayyxk.js";
72
72
  import {
73
73
  ModuleMemoryAuthorityError2,
74
74
  getMemoriesByProject2,
@@ -81,7 +81,7 @@ import {
81
81
  sanitizeFtsQuery,
82
82
  searchMemoriesFTS,
83
83
  searchMemoriesFTSUnion
84
- } from "./server-v817sf79.js";
84
+ } from "./server-d07yxksx.js";
85
85
  import {
86
86
  MESSAGE_FTS_SESSION_FILTER_SQL,
87
87
  withMessageFtsSessionFilter
@@ -92,11 +92,11 @@ import {
92
92
  expandWorkspaceIdentitySetWithAliases,
93
93
  resolveStoredPathWorkspaceIdentity,
94
94
  sourceNameForMemory
95
- } from "./server-6k0rnwbd.js";
95
+ } from "./server-jn4pktdk.js";
96
96
  import {
97
97
  getNotes,
98
98
  getActivePrimers
99
- } from "./server-4x0xq8a1.js";
99
+ } from "./server-rbtx6q5v.js";
100
100
  import {
101
101
  isKnownAutocommit
102
102
  } from "./server-8ajstryz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./server-bb6kf05j.js";
3
+ } from "./server-j8376q08.js";
4
4
  import {
5
5
  canonicalProjectDirectory
6
6
  } from "./server-knvkbfvh.js";
@@ -3,12 +3,12 @@ import {
3
3
  } from "./server-fr0wbhdn.js";
4
4
  import {
5
5
  log2
6
- } from "./server-bb6kf05j.js";
6
+ } from "./server-j8376q08.js";
7
7
  import {
8
8
  ensureColumn,
9
9
  healAllNullColumns,
10
10
  installV95PerfSchema
11
- } from "./server-b0357as4.js";
11
+ } from "./server-xepx8t43.js";
12
12
  import {
13
13
  resolveOpenCodeDbPath,
14
14
  openCodeDbPathExists,
@@ -20,10 +20,10 @@ import {
20
20
  import {
21
21
  normalizeStoredProjectPath,
22
22
  storedPathBelongsToIdentity
23
- } from "./server-3yk44ddz.js";
23
+ } from "./server-afsz3cmx.js";
24
24
  import {
25
25
  logSlowWriteTransaction
26
- } from "./server-np27dgyt.js";
26
+ } from "./server-5sbsnpkn.js";
27
27
 
28
28
  // src/features/magic-context/migrations.ts
29
29
  import { isMainThread } from "node:worker_threads";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./server-pavzsdc6.js";
4
4
  import {
5
5
  isUserHomeDirectory
6
- } from "./server-3yk44ddz.js";
6
+ } from "./server-afsz3cmx.js";
7
7
  import {
8
8
  logSlowWriteTransaction
9
- } from "./server-np27dgyt.js";
9
+ } from "./server-5sbsnpkn.js";
10
10
 
11
11
  // src/features/magic-context/git-commits/sweep-coordinator.ts
12
12
  var GIT_SWEEP_COOLDOWN_MS = 10 * 60 * 1000;
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getMagicContextStorageDir,
6
6
  sessionLog2
7
- } from "./server-bb6kf05j.js";
7
+ } from "./server-j8376q08.js";
8
8
  import {
9
9
  modelRefLookupOrder
10
10
  } from "./server-avwt563y.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./server-bb6kf05j.js";
3
+ } from "./server-j8376q08.js";
4
4
 
5
5
  // src/shared/safe-notification-target.ts
6
6
  var DEFAULT_TITLE_RE = /^(New session - |Child session - )\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  importPluginModule,
6
6
  sessionLog2
7
- } from "./server-bb6kf05j.js";
7
+ } from "./server-j8376q08.js";
8
8
  import {
9
9
  isDefaultSessionTitle2
10
- } from "./server-91gb0vh8.js";
10
+ } from "./server-npdey91q.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./server-7vrtk78d.js";
13
+ } from "./server-3ap5dmhc.js";
14
14
  import {
15
15
  getErrorMessage
16
16
  } from "./server-y8v6yerm.js";
@@ -142,7 +142,7 @@ async function sendIgnoredMessageNow(client, sessionId, text, params, forcePersi
142
142
  holdIgnoredNotification({ client, sessionId, text, params, forcePersist }, "during target checks");
143
143
  return "queued";
144
144
  }
145
- const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-9r79xnbt.js"));
145
+ const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-y55z2zat.js"));
146
146
  if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
147
147
  sessionLog2(sessionId, "notification skipped (session not titled yet)");
148
148
  return "skipped";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./server-gzy5w8ya.js";
7
7
  import {
8
8
  managedAuthorityNoteRow
9
- } from "./server-6k0rnwbd.js";
9
+ } from "./server-jn4pktdk.js";
10
10
 
11
11
  // src/features/magic-context/storage-notes.ts
12
12
  var NOTE_TYPES = new Set(["session", "smart"]);
@@ -3,22 +3,22 @@ import {
3
3
  removeNestedBlocks,
4
4
  hasMeaningfulUserText2,
5
5
  extractTexts2
6
- } from "./server-3jc6qmdz.js";
6
+ } from "./server-y8xjr8rx.js";
7
7
  import {
8
8
  getHarness2
9
9
  } from "./server-pavzsdc6.js";
10
10
  import {
11
11
  cleanUserText2
12
- } from "./server-gge95a03.js";
12
+ } from "./server-8ycacd59.js";
13
13
  import {
14
14
  recordMessageFtsRowid2,
15
15
  recordIndexedMessageTime2,
16
16
  messageFtsOrdinalRangeIsMapped2,
17
17
  deleteUnmappedMessageFtsRows2
18
- } from "./server-966dq3pd.js";
18
+ } from "./server-ds8vpfkr.js";
19
19
  import {
20
20
  logSlowWriteTransaction
21
- } from "./server-np27dgyt.js";
21
+ } from "./server-5sbsnpkn.js";
22
22
 
23
23
  // src/features/magic-context/message-index.ts
24
24
  import { createHash } from "node:crypto";
@@ -10,7 +10,7 @@ import {
10
10
  getMagicContextStorageDir,
11
11
  log2,
12
12
  sessionLog2
13
- } from "./server-bb6kf05j.js";
13
+ } from "./server-j8376q08.js";
14
14
  import {
15
15
  prepareCachedStatement2,
16
16
  withSqliteBackgroundWriter2,
@@ -18,14 +18,14 @@ import {
18
18
  } from "./server-gzy5w8ya.js";
19
19
  import {
20
20
  deleteUnmappedMessageFtsRows2
21
- } from "./server-966dq3pd.js";
21
+ } from "./server-ds8vpfkr.js";
22
22
  import {
23
23
  deleteChunkEmbedBackoffForSession2
24
- } from "./server-g61hgy1y.js";
24
+ } from "./server-8pdfmc27.js";
25
25
  import {
26
26
  isPidAlive,
27
27
  readProcessStartTime
28
- } from "./server-tmf0ayqp.js";
28
+ } from "./server-jdfe07mp.js";
29
29
  import {
30
30
  stripTagPrefix,
31
31
  isRecord,
@@ -57,7 +57,7 @@ import {
57
57
  getPendingPiCompactionMarkerState,
58
58
  logPiCompactionMarkerClear,
59
59
  isPrefixBoundThinkingModel
60
- } from "./server-beydmd68.js";
60
+ } from "./server-88n85n60.js";
61
61
  import {
62
62
  BoundedSessionMap,
63
63
  getMeasuredToolDefinitionTokens,
@@ -67,14 +67,14 @@ import {
67
67
  tagRevisionKey,
68
68
  tagIdentityRevisionKey,
69
69
  deleteTagIdentityRevisions
70
- } from "./server-b0357as4.js";
70
+ } from "./server-xepx8t43.js";
71
71
  import {
72
72
  withReadOnlySessionDb
73
- } from "./server-7vrtk78d.js";
73
+ } from "./server-3ap5dmhc.js";
74
74
  import {
75
75
  layoutLkgPrefix,
76
76
  assembleLkgPrefix
77
- } from "./server-6k0rnwbd.js";
77
+ } from "./server-jn4pktdk.js";
78
78
  import {
79
79
  gaDatabasePath2,
80
80
  V2StoreReader2
@@ -91,7 +91,7 @@ import {
91
91
  } from "./server-avwt563y.js";
92
92
  import {
93
93
  logSlowWriteTransaction
94
- } from "./server-np27dgyt.js";
94
+ } from "./server-5sbsnpkn.js";
95
95
  import {
96
96
  ensurePrivateStorageDirectorySync,
97
97
  writeStorageFileSync,
@@ -4817,6 +4817,21 @@ function externalHistorianFailureReason(error, prefix = "provider_error") {
4817
4817
  }
4818
4818
 
4819
4819
  // src/features/magic-context/storage-historian-runs.ts
4820
+ function getRecentFailedHistorianRunTimes(db, sessionId, limit) {
4821
+ if (!Number.isInteger(limit) || limit <= 0)
4822
+ return [];
4823
+ try {
4824
+ return db.prepare(`SELECT created_at FROM historian_runs
4825
+ WHERE session_id = ? AND run_kind = 'incremental' AND status = 'failed'
4826
+ AND id > (
4827
+ SELECT COALESCE(MAX(id), 0) FROM historian_runs
4828
+ WHERE session_id = ? AND run_kind = 'incremental' AND status = 'success'
4829
+ )
4830
+ ORDER BY id DESC LIMIT ?`).all(sessionId, sessionId, limit).map((row) => row.created_at);
4831
+ } catch {
4832
+ return [];
4833
+ }
4834
+ }
4820
4835
  function recordHistorianRun(db, input) {
4821
4836
  try {
4822
4837
  const failureReason = input.failureReason == null ? input.status === "failed" ? "provider_error" : null : capHistorianFailureReason(input.failureReason, input.status === "failed" ? "provider_error" : "");
@@ -5121,4 +5136,4 @@ var ERROR_CLASSES = new Set([
5121
5136
  "permission_denied",
5122
5137
  "unknown"
5123
5138
  ]);
5124
- export { COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, advanceSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginServedRequest, noteServedPassPermission, noteServedModel, noteServedReplay, noteServedHostInput, noteServedRefusal, countServedRefusal, dropServedRecord, forgetServedRecord, commitServedRequest, lkgInputIdentity, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgContentDigest, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
5139
+ export { COMPARTMENT_LEASE_RENEWAL_MS, getCompartmentLeaseBlocker, acquireCompartmentLease, renewCompartmentLease, releaseCompartmentLease, releaseCompartmentLeaseBestEffort, isCompartmentLeaseHeld, isNoContentCompartment, queueM0Mutation, getMaxM0MutationId, getCompartments, getLastCompartmentEndMessage, getLastCompartmentEndMessageId, getCompartmentsByEndMessageId, appendCompartments, buildCompartmentBlock, saveRecompStagingPass, getRecompStaging, clearRecompStaging, getRecompPartialRange, setRecompPartialRange, escapeXmlAttr, escapeXmlContent, getUncoveredCompartmentEndsThrough, isPartialCompartmentEnd, readProjectDocsCanonical, readServerFallbackUsage, providerResponseFailed, isSuccessfulProviderCompletion, LkgRecoveryFenceError, lkgServedArrayDigest, hasCleanLkgRecoveryFence, dirtyLkgRecoveryRevision, ownsLkgDirtyFence, invalidateCleanLkgRecoveryFence, prepareLkgCaptureFence, certifyCommittedLkgCapture, markLkgRecoveryDirty, rememberUnpublishedAutoSearchNoHint, getUnpublishedAutoSearchNoHint, forgetUnpublishedAutoSearchNoHint, registerAutoSearchWork, advanceSessionActivity, backfillSessionActivity, readSessionMeta, getOrCreateSessionMeta, updateSessionMeta, advanceToolReclaimWatermark, markSessionCleanupPending, retryPendingSessionCleanups, retryPendingRustSessionCleanupsForProject, clearSession, requestPendingMaterialization, pendingMaterializationOrigin, hasPendingMaterializationOrigin, clearPendingMaterialization, clearPendingMaterializationOrigin, recordSystemPromptForRequest, recordHeldHeadForRequest, bindSystemPromptResponse, isHeldHeadForRequest, deferDeliveredSystemRefresh, retirePendingSystemPromptDelivery, lkgProviderInputTotal, beginV2LkgRequest, claimLkgRequestIdentity, currentLkgRequestIdentity, noteCapturedLkgRequest, noteLkgProviderResponse, measuredLkgPrefix, clearLkgMeasuredRequest, saveLkgSlotToDb, clearPersistedLkgSlotStrict, loadPersistedLkgSlot, drainStaleLkgSlots, resolveLkgModelKeys, createLkgEntryProjector, captureLkgSlot, validateAnthropicReasoningRuns, validateLkgSeam, replayLkg, coldStartRawServedIndex, coldStartUncapturedReplay, noteUncertifiedNormalLkg, hasProcessLocalLkgProof, lkgDirtyRevision, rememberLkgDirtyRevision, readPersistedLkgUntaggedInputIds, persistLkgUntaggedInputIds, noteLkgRecoveryPrefix, readLkgRecoveryPrefix, noteLkgHealthyPrefix, lkgRecoveryReplayUnproven, lkgRecoveryEntryUnproven, beginServedRequest, noteServedPassPermission, noteServedModel, noteServedReplay, noteServedHostInput, noteServedRefusal, countServedRefusal, dropServedRecord, forgetServedRecord, commitServedRequest, lkgInputIdentity, beginLkgPass, visitMessageContentFields, contentSnapshotValue, messageContentFields, signatureForFields, exactReusablePrefix, incrementalLkgContentDigests, lkgContentDigest, lkgSlotRejection, captureSlot, getInMemorySlot, getSlot, forgetInMemorySlot, dropSlot, noteEntry, getLkgSlotHeapStats, TOOL_SWEEP_SCOPED_MARKER, useScopedToolSweep, createPreAdoptionToolSweepResolver, copySessionStateForClone, externalHistorianFailureReason, getRecentFailedHistorianRunTimes, recordHistorianRun, summarizeImportance, tallyFactsByCategory, MEMORY_VISIBILITY_MUTATION_CATEGORY, queueMemoryMutation, getMemoryMutationsForRender, getMemoryMutationsForRenderByProjects, getMaxMemoryMutationId, getMaxMemoryMutationIdForProjects, GLOBAL_USER_PROFILE_PROJECT_PATH, getProjectState, bumpProjectUserProfileVersion, saveSourceContent, replaceSourceContent, getSourceContents, recordSubagentInvocation, getLatestHistorianInvocationId };
@@ -13,7 +13,7 @@ import {
13
13
  } from "./server-gzy5w8ya.js";
14
14
  import {
15
15
  scheduleAfterBootQuiet
16
- } from "./server-3yk44ddz.js";
16
+ } from "./server-afsz3cmx.js";
17
17
  import {
18
18
  getHarness2,
19
19
  harnessOwnsOpenCodeStore2
@@ -24,7 +24,7 @@ import {
24
24
  importPluginModule,
25
25
  writeForwardedLogLine2,
26
26
  log2
27
- } from "./server-bb6kf05j.js";
27
+ } from "./server-j8376q08.js";
28
28
  import {
29
29
  isOwnRpcServerRecord,
30
30
  isPidAlive,
@@ -35,7 +35,7 @@ import {
35
35
  parseRpcPortFile,
36
36
  inspectProcessesAsync,
37
37
  inspectWindowsProcessesSync
38
- } from "./server-tmf0ayqp.js";
38
+ } from "./server-jdfe07mp.js";
39
39
  import {
40
40
  configureContextDatabasePragmas2
41
41
  } from "./server-fb3zxn06.js";
@@ -47,7 +47,7 @@ import {
47
47
  } from "./server-96ztjvkn.js";
48
48
  import {
49
49
  startMessageFtsRowidMapBackfill2
50
- } from "./server-966dq3pd.js";
50
+ } from "./server-ds8vpfkr.js";
51
51
  import {
52
52
  LKG_SLOT_CHUNKS_DDL,
53
53
  SESSION_REPLAY_DECISIONS_DDL,
@@ -57,14 +57,14 @@ import {
57
57
  hasPendingMigrations,
58
58
  getMainThreadMigrationBodyCount,
59
59
  runMigrations
60
- } from "./server-6k0rnwbd.js";
60
+ } from "./server-jn4pktdk.js";
61
61
  import {
62
62
  setDatabase,
63
63
  loadToolDefinitionMeasurements,
64
64
  ensureColumn,
65
65
  installV95PerfSchema,
66
66
  installTagIdentityRevisionTrigger
67
- } from "./server-b0357as4.js";
67
+ } from "./server-xepx8t43.js";
68
68
  import {
69
69
  resolveOpenCodeDbPath,
70
70
  hasV1MessageTables
@@ -77,7 +77,7 @@ import {
77
77
  } from "./server-8ajstryz.js";
78
78
  import {
79
79
  logSlowWriteTransaction
80
- } from "./server-np27dgyt.js";
80
+ } from "./server-5sbsnpkn.js";
81
81
  import {
82
82
  shouldEnforcePrivateStoragePermissions,
83
83
  ensureStorageDirectorySync,
@@ -1021,8 +1021,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1021
1021
  state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
1022
1022
  if (signal.aborted || !readsOpenCodeStore)
1023
1023
  return;
1024
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-nqkn0yb4.js"));
1025
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-baxebka0.js"));
1024
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-dxs1tgt9.js"));
1025
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-ynb3vg6r.js"));
1026
1026
  if (signal.aborted)
1027
1027
  return;
1028
1028
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log2
3
- } from "./server-bb6kf05j.js";
3
+ } from "./server-j8376q08.js";
4
4
  import {
5
5
  setOutputReserveConfig
6
- } from "./server-sa1fdt41.js";
6
+ } from "./server-kc5kb9ya.js";
7
7
  import {
8
8
  DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
9
9
  PROTECTED_TOKENS_MIN,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./server-3jc6qmdz.js";
3
+ } from "./server-y8xjr8rx.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./server-pavzsdc6.js";
7
7
  import {
8
8
  log2
9
- } from "./server-bb6kf05j.js";
9
+ } from "./server-j8376q08.js";
10
10
  import {
11
11
  inRootAsyncContext2
12
12
  } from "./server-gzy5w8ya.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./server-bb6kf05j.js";
3
+ } from "./server-j8376q08.js";
4
4
  import {
5
5
  estimateTokens
6
- } from "./server-3jc6qmdz.js";
6
+ } from "./server-y8xjr8rx.js";
7
7
  import {
8
8
  isKnownAutocommit
9
9
  } from "./server-8ajstryz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./server-bb6kf05j.js";
3
+ } from "./server-j8376q08.js";
4
4
 
5
5
  // src/hooks/magic-context/read-session-formatting.ts
6
6
  import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  log2
3
- } from "./server-bb6kf05j.js";
3
+ } from "./server-j8376q08.js";
4
4
  import {
5
5
  getSdkWindowGeometry,
6
6
  getSdkContextLimit,
7
7
  getSdkInputLimit
8
- } from "./server-sa1fdt41.js";
8
+ } from "./server-kc5kb9ya.js";
9
9
  import {
10
10
  localBudget,
11
11
  calibrationForModelKey