@cortexkit/opencode-magic-context 0.49.47 → 0.49.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/{announcement-g789dmt6.js → announcement-9pr71hd5.js} +3 -2
  2. package/dist/auto-search-worker.js +5 -5
  3. package/dist/chunk-embedding-write-worker.js +14 -15
  4. package/dist/{compaction-marker-candidates-dkfp1q9j.js → compaction-marker-candidates-8hazqfvj.js} +2 -3
  5. package/dist/compaction-marker-candidates-worker.js +1 -1
  6. package/dist/{compartment-chunk-embedding-snj51nmg.js → compartment-chunk-embedding-gfd093f8.js} +7 -8
  7. package/dist/{conflict-warning-hook-w1aw6w5t.js → conflict-warning-hook-56qpq7ws.js} +7 -8
  8. package/dist/{context-hvkjxqhs.js → context-bwf57gnh.js} +41 -43
  9. package/dist/{derive-budgets-nkw09vq7.js → derive-budgets-z53424qx.js} +2 -3
  10. package/dist/{embedding-backfill-kpy5shsa.js → embedding-backfill-d9x9q2e2.js} +12 -13
  11. package/dist/embedding-worker-process.js +2 -3
  12. package/dist/embedding-worker.js +5 -6
  13. package/dist/features/magic-context/dreamer/docs-proposals.d.ts.map +1 -1
  14. package/dist/{history-owner-0z620wgz.js → history-owner-n50e0e8y.js} +2 -3
  15. package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
  16. package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
  17. package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
  18. package/dist/hooks/magic-context/hook.d.ts.map +1 -1
  19. package/dist/hooks/magic-context/protected-tail-boundary.d.ts +5 -3
  20. package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
  21. package/dist/hooks/magic-context/todo-view.d.ts +29 -17
  22. package/dist/hooks/magic-context/todo-view.d.ts.map +1 -1
  23. package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
  24. package/dist/hooks/magic-context/transform.d.ts.map +1 -1
  25. package/dist/{index-txs8tce6.js → index-0k283v27.js} +2 -4
  26. package/dist/{index-s79g172v.js → index-0mdh2cke.js} +10 -10
  27. package/dist/{index-ak11t3gm.js → index-0tz2fzpq.js} +1 -1
  28. package/dist/{index-2qbtqg1w.js → index-25tm250q.js} +1 -1
  29. package/dist/{index-h9m41624.js → index-2ny9xwdn.js} +2 -2
  30. package/dist/{index-xa9mmq6c.js → index-36wseasx.js} +1 -1
  31. package/dist/{index-sd2s4t4p.js → index-3n9ee4jh.js} +2 -2
  32. package/dist/{index-xgczbhyx.js → index-5850zme4.js} +3 -3
  33. package/dist/{index-5jk4h64j.js → index-5bksfv58.js} +13 -15
  34. package/dist/{index-esr8qcc4.js → index-7n2n3v92.js} +5 -5
  35. package/dist/{index-jrfre9ah.js → index-82dfe8en.js} +146 -5
  36. package/dist/{index-gn6gfz4y.js → index-90z05d0p.js} +1 -1
  37. package/dist/{index-9wnbnx8f.js → index-a6aqpfp6.js} +1 -1
  38. package/dist/{index-b0xt5qz9.js → index-agfh931z.js} +11 -13
  39. package/dist/{index-d4qw2h43.js → index-arxg51bj.js} +4 -4
  40. package/dist/{index-x53gnmce.js → index-bkg4hdyh.js} +6 -28
  41. package/dist/{index-gp3kcpc4.js → index-cd3vp8xa.js} +1 -1
  42. package/dist/{index-44pp3vrj.js → index-cs7pmwt6.js} +4 -4
  43. package/dist/{index-brj6was5.js → index-em92bp7f.js} +2 -2
  44. package/dist/{index-2p37txes.js → index-ga5q492k.js} +1 -1
  45. package/dist/{index-8cfnaagj.js → index-gapnh6tk.js} +2 -4
  46. package/dist/{index-fw42ms3m.js → index-gz001bx7.js} +1 -1
  47. package/dist/{index-kw7azjmy.js → index-h3p558ec.js} +3 -3
  48. package/dist/{index-qcz1fy7h.js → index-hexdee98.js} +4 -4
  49. package/dist/{index-smtbdmc3.js → index-hsv31e69.js} +2 -2
  50. package/dist/{index-dj2p8653.js → index-hsyczpn7.js} +2 -2
  51. package/dist/{index-c99tqfge.js → index-j7verehm.js} +93 -73
  52. package/dist/{index-etn2hmb5.js → index-jedbxq6n.js} +4 -4
  53. package/dist/{index-2x3kd999.js → index-k47v0tmk.js} +16 -18
  54. package/dist/{index-1hwn96x1.js → index-kn1bx21r.js} +3 -3
  55. package/dist/{index-nj360hcs.js → index-pb8ysnq2.js} +4 -4
  56. package/dist/{index-xgnh498s.js → index-qb75tv9j.js} +8 -8
  57. package/dist/{index-jz5bk7xd.js → index-qperbvjn.js} +2 -2
  58. package/dist/{index-25ka1jza.js → index-r9agn061.js} +4 -4
  59. package/dist/{index-hacf2tyx.js → index-reyws9fy.js} +1 -1
  60. package/dist/{index-fxbk7gk3.js → index-tad3can2.js} +1 -1
  61. package/dist/{index-hkh8x221.js → index-tj5gz396.js} +3 -5
  62. package/dist/{index-bqhjzhv4.js → index-va9x7y48.js} +35 -31
  63. package/dist/{index-37a9bfta.js → index-vbmh68fb.js} +6 -6
  64. package/dist/{index-1qmv26ga.js → index-vyv4tame.js} +12 -14
  65. package/dist/{index-eej9kwad.js → index-wdmfnmv1.js} +5 -5
  66. package/dist/index.js +53 -55
  67. package/dist/{logger-qwnbcfj9.js → logger-sw7z6sjz.js} +1 -2
  68. package/dist/{message-fts-rowid-map-msffhkve.js → message-fts-rowid-map-kx1bsdyg.js} +4 -5
  69. package/dist/{message-index-bounded-3qpg8dq5.js → message-index-bounded-2shxmht9.js} +11 -12
  70. package/dist/{message-time-backfill-39bm498k.js → message-time-backfill-hp2jgn49.js} +2 -3
  71. package/dist/migration-worker.js +12 -13
  72. package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
  73. package/dist/{project-embedding-registry-r6xfsrbe.js → project-embedding-registry-nzgkq61z.js} +11 -12
  74. package/dist/raw-ordinal-warmup-worker.js +8 -8
  75. package/dist/{read-session-chunk-7h9f32sz.js → read-session-chunk-c15y8yg6.js} +9 -10
  76. package/dist/{read-session-raw-x7a9b3jm.js → read-session-raw-04ger9zt.js} +2 -3
  77. package/dist/{recomp-orchestrator-43g9tjya.js → recomp-orchestrator-gfxqqpph.js} +30 -31
  78. package/dist/{render-4m7x9cq4.js → render-5tx8r0me.js} +20 -21
  79. package/dist/{safe-notification-target-wztd7bgk.js → safe-notification-target-mx5khyxf.js} +2 -3
  80. package/dist/{search-archive-f6kwv02s.js → search-archive-6tgh88xp.js} +11 -12
  81. package/dist/{search-0a3hh5x6.js → search-k2n5bvsk.js} +23 -24
  82. package/dist/{send-session-notification-j93pn2hn.js → send-session-notification-gamjee2f.js} +5 -6
  83. package/dist/shared/data-path.d.ts +7 -13
  84. package/dist/shared/data-path.d.ts.map +1 -1
  85. package/dist/{storage-tags-q8erkn48.js → storage-tags-kdb4qsyq.js} +4 -5
  86. package/dist/{transform-postprocess-phase-5746a5b6.js → transform-postprocess-phase-36dw4kxb.js} +31 -32
  87. package/dist/v2/auto-search-worker.js +5 -5
  88. package/dist/v2/chunk-embedding-write-worker.js +14 -14
  89. package/dist/v2/{compaction-marker-candidates-y737qb1v.js → compaction-marker-candidates-re14353a.js} +2 -2
  90. package/dist/v2/compaction-marker-candidates-worker.js +1 -1
  91. package/dist/v2/{compartment-chunk-embedding-nj5nrnbj.js → compartment-chunk-embedding-0pxsrzrt.js} +7 -7
  92. package/dist/v2/{context-e9n2mxax.js → context-td3jyze3.js} +90 -68
  93. package/dist/v2/{derive-budgets-b5cgrtp8.js → derive-budgets-w0815q82.js} +3 -3
  94. package/dist/v2/{embedding-backfill-360efh1t.js → embedding-backfill-5dqdm3ff.js} +12 -12
  95. package/dist/v2/embedding-worker-process.js +1 -1
  96. package/dist/v2/embedding-worker.js +4 -4
  97. package/dist/v2/{history-owner-fpka43cn.js → history-owner-ep91wgqj.js} +2 -2
  98. package/dist/v2/{logger-4cj6d03m.js → logger-xnscpj6w.js} +1 -1
  99. package/dist/v2/{message-fts-rowid-map-qe7cpksd.js → message-fts-rowid-map-57jh6xpb.js} +4 -4
  100. package/dist/v2/{message-index-bounded-na8debr6.js → message-index-bounded-j1jskn8a.js} +11 -11
  101. package/dist/v2/{message-time-backfill-0c4h7sg6.js → message-time-backfill-baxebka0.js} +2 -2
  102. package/dist/v2/migration-worker.js +11 -11
  103. package/dist/v2/{project-embedding-registry-ek0cy0d5.js → project-embedding-registry-swm4mw1t.js} +11 -11
  104. package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
  105. package/dist/v2/{read-session-chunk-x33xeg2g.js → read-session-chunk-carzw3m8.js} +9 -9
  106. package/dist/v2/{read-session-raw-yss2ev98.js → read-session-raw-3e482h3c.js} +2 -2
  107. package/dist/v2/{recomp-orchestrator-jyjpn5jm.js → recomp-orchestrator-e7vrs932.js} +31 -31
  108. package/dist/v2/{render-mp82ns36.js → render-e9mh9y1d.js} +20 -20
  109. package/dist/v2/{safe-notification-target-gphhast7.js → safe-notification-target-9r79xnbt.js} +2 -2
  110. package/dist/v2/{search-archive-d0fcqch9.js → search-archive-j3kb9ggd.js} +11 -11
  111. package/dist/v2/{search-ebd0yr40.js → search-sr23g316.js} +22 -22
  112. package/dist/v2/{send-session-notification-na3q825m.js → send-session-notification-95p89k7q.js} +5 -5
  113. package/dist/v2/{server-pej5rnye.js → server-0qxb8r8q.js} +2 -2
  114. package/dist/v2/{server-sg2qjkrb.js → server-1ppcpsdw.js} +2 -2
  115. package/dist/v2/{server-c43zxc9k.js → server-2qxt6qv0.js} +8 -8
  116. package/dist/v2/{server-7vb38e51.js → server-3jc6qmdz.js} +1 -1
  117. package/dist/v2/{server-69m30b21.js → server-3yk44ddz.js} +1 -1
  118. package/dist/v2/{server-wwmaqtxy.js → server-4y2pcckw.js} +3 -3
  119. package/dist/v2/{server-3schkz95.js → server-58h6rrnx.js} +4 -4
  120. package/dist/v2/{server-af1rmkyn.js → server-5kgesxck.js} +2 -2
  121. package/dist/v2/{server-mfn1yf9d.js → server-7vrtk78d.js} +1 -1
  122. package/dist/v2/{server-f0j864ma.js → server-91gb0vh8.js} +1 -1
  123. package/dist/v2/{server-131h608x.js → server-966dq3pd.js} +2 -2
  124. package/dist/v2/{server-jb6tjyeb.js → server-bb6kf05j.js} +23 -20
  125. package/dist/v2/{server-zypeavf0.js → server-c5kq8d5n.js} +4 -4
  126. package/dist/v2/{server-gwxys0d0.js → server-c8z2grq0.js} +1 -1
  127. package/dist/v2/{server-gy26cwvw.js → server-e14c3hd6.js} +10 -10
  128. package/dist/v2/{server-epvj1cey.js → server-e20kfytm.js} +11 -11
  129. package/dist/v2/{server-2gjqhmn9.js → server-fw49gc57.js} +8 -8
  130. package/dist/v2/{server-y8n33d9j.js → server-g61hgy1y.js} +4 -4
  131. package/dist/v2/{server-2j87594q.js → server-kgq2e2hh.js} +2 -2
  132. package/dist/v2/{server-ddw42d76.js → server-mxsy9h1d.js} +2 -2
  133. package/dist/v2/{server-qmmkhz2z.js → server-np27dgyt.js} +1 -1
  134. package/dist/v2/{server-dcws5831.js → server-qp5sj6n5.js} +2 -2
  135. package/dist/v2/{server-sr8tf5dt.js → server-r7y35vm9.js} +4 -4
  136. package/dist/v2/{server-t4hk02v1.js → server-rcchadw0.js} +6 -28
  137. package/dist/v2/{server-b3r080cm.js → server-rz5jnhnv.js} +1 -1
  138. package/dist/v2/{server-zt1m5rwj.js → server-sa1fdt41.js} +1 -1
  139. package/dist/v2/{server-fhxe5jgm.js → server-t5cgb15n.js} +5 -5
  140. package/dist/v2/{server-ypf1ap0v.js → server-t8n27rbt.js} +1 -1
  141. package/dist/v2/{server-sefxj8k1.js → server-tmf0ayqp.js} +1 -1
  142. package/dist/v2/{server-wa4qhryh.js → server-ttrrh27h.js} +2 -2
  143. package/dist/v2/{server-bez34e60.js → server-vqq3g1t7.js} +4 -4
  144. package/dist/v2/{server-tpt7bwq8.js → server-ww7xbxxf.js} +1 -1
  145. package/dist/v2/{server-1f03b92k.js → server-y7q8cds3.js} +3 -3
  146. package/dist/v2/{server-xsrykjkj.js → server-yxe0gh3v.js} +11 -11
  147. package/dist/v2/{server-rg92e592.js → server-z7n3n1ra.js} +34 -28
  148. package/dist/v2/server.js +5 -5
  149. package/dist/v2/{storage-tags-ztar1k0g.js → storage-tags-rzv7y0n3.js} +4 -4
  150. package/dist/v2/{v2-archive-reader-gm6mygag.js → v2-archive-reader-jnzjavzr.js} +1 -1
  151. package/dist/v2/{wrapup-orchestrator-y9a02xpd.js → wrapup-orchestrator-jw4nre49.js} +31 -31
  152. package/dist/{v2-archive-reader-yp9956t8.js → v2-archive-reader-b76tfeje.js} +1 -1
  153. package/dist/wrapup-orchestrator-fhfazjkq.js +55 -0
  154. package/package.json +1 -1
  155. package/src/shared/data-path.test.ts +104 -56
  156. package/src/shared/data-path.ts +30 -30
  157. package/dist/index-g2q4htwp.js +0 -146
  158. package/dist/wrapup-orchestrator-ese0epyk.js +0 -56
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionLog2
3
- } from "./index-jrfre9ah.js";
3
+ } from "./index-82dfe8en.js";
4
4
  import {
5
5
  isKnownAutocommit
6
6
  } from "./index-8ajstryz.js";
@@ -13,20 +13,18 @@ import {
13
13
  } from "./index-gzy5w8ya.js";
14
14
  import {
15
15
  scheduleAfterBootQuiet
16
- } from "./index-txs8tce6.js";
16
+ } from "./index-0k283v27.js";
17
17
  import {
18
18
  getHarness2,
19
19
  harnessOwnsOpenCodeStore2
20
20
  } from "./index-pavzsdc6.js";
21
21
  import {
22
22
  getMagicContextStorageDir,
23
- getLegacyOpenCodeMagicContextStorageDir
24
- } from "./index-g2q4htwp.js";
25
- import {
23
+ getLegacyOpenCodeMagicContextStorageDir,
26
24
  importPluginModule,
27
25
  writeForwardedLogLine2,
28
26
  log2
29
- } from "./index-jrfre9ah.js";
27
+ } from "./index-82dfe8en.js";
30
28
  import {
31
29
  isOwnRpcServerRecord,
32
30
  isPidAlive,
@@ -37,7 +35,7 @@ import {
37
35
  parseRpcPortFile,
38
36
  inspectProcessesAsync,
39
37
  inspectWindowsProcessesSync
40
- } from "./index-2p37txes.js";
38
+ } from "./index-ga5q492k.js";
41
39
  import {
42
40
  configureContextDatabasePragmas2
43
41
  } from "./index-fb3zxn06.js";
@@ -49,7 +47,7 @@ import {
49
47
  } from "./index-96ztjvkn.js";
50
48
  import {
51
49
  startMessageFtsRowidMapBackfill2
52
- } from "./index-h9m41624.js";
50
+ } from "./index-2ny9xwdn.js";
53
51
  import {
54
52
  LKG_SLOT_CHUNKS_DDL,
55
53
  SESSION_REPLAY_DECISIONS_DDL,
@@ -59,12 +57,12 @@ import {
59
57
  hasPendingMigrations,
60
58
  getMainThreadMigrationBodyCount,
61
59
  runMigrations
62
- } from "./index-nj360hcs.js";
60
+ } from "./index-pb8ysnq2.js";
63
61
  import {
64
62
  installTagIdentityRevisionTrigger,
65
63
  ensureColumn,
66
64
  installV95PerfSchema
67
- } from "./index-9wnbnx8f.js";
65
+ } from "./index-a6aqpfp6.js";
68
66
  import {
69
67
  resolveOpenCodeDbPath,
70
68
  hasV1MessageTables
@@ -72,7 +70,7 @@ import {
72
70
  import {
73
71
  setDatabase,
74
72
  loadToolDefinitionMeasurements
75
- } from "./index-smtbdmc3.js";
73
+ } from "./index-hsv31e69.js";
76
74
  import {
77
75
  getErrorMessage
78
76
  } from "./index-y8v6yerm.js";
@@ -81,7 +79,7 @@ import {
81
79
  } from "./index-8ajstryz.js";
82
80
  import {
83
81
  logSlowWriteTransaction
84
- } from "./index-fxbk7gk3.js";
82
+ } from "./index-tad3can2.js";
85
83
  import {
86
84
  shouldEnforcePrivateStoragePermissions,
87
85
  ensureStorageDirectorySync,
@@ -1024,8 +1022,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1024
1022
  state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
1025
1023
  if (signal.aborted || !readsOpenCodeStore)
1026
1024
  return;
1027
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-7h9f32sz.js"));
1028
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-39bm498k.js"));
1025
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-c15y8yg6.js"));
1026
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-hp2jgn49.js"));
1029
1027
  if (signal.aborted)
1030
1028
  return;
1031
1029
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
@@ -3,19 +3,19 @@ import {
3
3
  } from "./index-4dpvnp8k.js";
4
4
  import {
5
5
  log2
6
- } from "./index-jrfre9ah.js";
6
+ } from "./index-82dfe8en.js";
7
7
  import {
8
8
  isSynapseEmbeddingTruncated,
9
9
  SynapseEmbeddingProvider
10
- } from "./index-dj2p8653.js";
10
+ } from "./index-hsyczpn7.js";
11
11
  import {
12
12
  LocalEmbeddingProvider
13
- } from "./index-hkh8x221.js";
13
+ } from "./index-tj5gz396.js";
14
14
  import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./index-s79g172v.js";
18
+ } from "./index-0mdh2cke.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./index-qt1qqasc.js";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./index-1zx87sdm.js";
5
5
  import {
6
6
  estimateTokens
7
- } from "./index-ak11t3gm.js";
7
+ } from "./index-0tz2fzpq.js";
8
8
  import {
9
9
  getHarness2
10
10
  } from "./index-pavzsdc6.js";
11
11
  import {
12
12
  sessionLog2
13
- } from "./index-jrfre9ah.js";
13
+ } from "./index-82dfe8en.js";
14
14
  import {
15
15
  getTagIdentityWriteGeneration2,
16
16
  getSqliteDatabasePath2
@@ -20,7 +20,7 @@ import {
20
20
  tagOrderConstraintIndex,
21
21
  stableStringify,
22
22
  stableStringifyHash
23
- } from "./index-9wnbnx8f.js";
23
+ } from "./index-a6aqpfp6.js";
24
24
  import {
25
25
  DEFAULT_PROTECTED_TOOLS,
26
26
  normalizeProtectedToolName,
@@ -622,32 +622,16 @@ function projectMessage(message, projectPart) {
622
622
 
623
623
  // src/hooks/magic-context/todo-view.ts
624
624
  import { createHash } from "node:crypto";
625
- var TODO_STATUS_PENDING = "pending";
626
- var TODO_STATUS_IN_PROGRESS = "in_progress";
627
625
  var TODO_STATUS_COMPLETED = "completed";
628
626
  var TODO_STATUS_CANCELLED = "cancelled";
629
- var TODO_PRIORITY_HIGH = "high";
630
627
  var TODO_PRIORITY_MEDIUM = "medium";
631
- var TODO_PRIORITY_LOW = "low";
632
- var TODO_STATUSES = [
633
- TODO_STATUS_PENDING,
634
- TODO_STATUS_IN_PROGRESS,
635
- TODO_STATUS_COMPLETED,
636
- TODO_STATUS_CANCELLED
637
- ];
638
- var TODO_PRIORITIES = [
639
- TODO_PRIORITY_HIGH,
640
- TODO_PRIORITY_MEDIUM,
641
- TODO_PRIORITY_LOW
642
- ];
643
- var TODO_STATUS_SET = new Set(TODO_STATUSES);
644
- var TODO_PRIORITY_SET = new Set(TODO_PRIORITIES);
645
628
  var TERMINAL_STATUSES = new Set([
646
629
  TODO_STATUS_COMPLETED,
647
630
  TODO_STATUS_CANCELLED
648
631
  ]);
649
632
  var TITLE_DONE_STATUSES = new Set([TODO_STATUS_COMPLETED]);
650
633
  var SYNTHETIC_CALL_ID_PREFIX = "mc_synthetic_todo_";
634
+ var CLEARED_TODO_STATE_JSON = "[]";
651
635
  function normalizeTodoStateJson(todos) {
652
636
  if (!Array.isArray(todos))
653
637
  return null;
@@ -722,17 +706,11 @@ function parseTodoState(stateJson) {
722
706
  return null;
723
707
  }
724
708
  }
725
- function isTodoStatus(value) {
726
- return typeof value === "string" && TODO_STATUS_SET.has(value);
727
- }
728
- function isTodoPriority(value) {
729
- return typeof value === "string" && TODO_PRIORITY_SET.has(value);
730
- }
731
709
  function isTodoItem(value) {
732
710
  if (value === null || typeof value !== "object")
733
711
  return false;
734
712
  const todo = value;
735
- return typeof todo.content === "string" && isTodoStatus(todo.status) && (todo.priority === undefined || isTodoPriority(todo.priority));
713
+ return typeof todo.content === "string" && typeof todo.status === "string" && todo.status.length > 0 && (todo.priority === undefined || typeof todo.priority === "string");
736
714
  }
737
715
 
738
716
  // src/hooks/magic-context/tail-hygiene-walk.ts
@@ -3884,4 +3862,4 @@ function deleteToolTagsByOwner(db, sessionId, ownerMsgId) {
3884
3862
  return getDeleteToolTagsByOwnerStatement(db).all(sessionId, ownerMsgId).length;
3885
3863
  }
3886
3864
 
3887
- export { protectedToolTagNumbers, protectedToolTokenCount, stripWellFormedLeadingTagPrefix, stripPersistedAssistantText, byteSize, stripTagPrefix, peelLeadingMcTagNotation, prependTag, isThinkingPart, currentReclaimableToolOutputCount, isRecord, contentTagOwnerMessageId, estimateImageTokensFromDataUrl, estimateToolAttachmentImageTokens, providerVisiblePart, providerVisibleMessage, normalizeTodoStateJson, buildSyntheticTodoPart, computeSyntheticCallId, isSyntheticTodoPart, countRealUserMessages, tailHygieneStructuralSignature, sameTailHygieneStructuralSignature, formatTailHygienePrefixMismatch, refreshTailHygieneBaseline, effectiveTailHygiene, assertTailHygieneContentUnchangedIfEnabled, CHANNEL1_SENTINEL, CHANNEL1_FLOOR_TOKENS, isDroppedToolOutput, toolOutputTokens, decideChannel1, evaluateChannel2, formatChannel1Evaluation, formatChannel2Evaluation, buildChannel2Reminder, buildChannel1Reminder, estimateEmergencyDropReclaimTokens, planEmergencyDrop, measureEmergencyTag, queuePendingOp, queuePendingDropForUnchangedTag, getPendingOps, hasPendingDropOps, getPendingOpsCount, clearPendingOps, removePendingOp, updateTagByteSize2, getRecentTagOwnerMessageIds2, getActiveTagTokenAggregate2, AGE_RECLAIM_MIN_TOKENS2, getOldestActiveUnprotectedToolTags2, getActiveToolTagsForAgeReclaim2, getTriggerTagTokenUpperBound2, getActiveTagTokenTotalsByMessage2, updateTagTokenCount2, getPersistedToolTagAccounting2, getAllStatusTagTokenTotalsFlat2, getReasoningTokenEstimatesByMessage2, tryGetReasoningTokenEstimatesByMessage2, getMaxTagNumberByOwnerMessage2, TagOwnerSummaryNotReady2, scanTagOwnerSummary2, cachedTagOwnerRatios2, tagOwnerWarmupState2, scanTagOwnerDelta2, installTagOwnerDelta2, installTagOwnerSummary2, isTagOwnerSummaryReady2, tagTokenCountIsNull2, backfillTagTokenCounts2, insertTag2, updateTagStatus2, markTagDropped2, markWhitespaceAssistantTagInert2, getInertWhitespaceAssistantTags2, getInertWhitespaceAssistantTagsByNumbers2, updateTagDropMode2, updateCavemanDepth2, updateTagMessageId2, hasPiFallbackMessageTags2, findAdoptableFallbackTags2, adoptFallbackTagMessageId2, foldShrunkPartTags2, hasPiFallbackToolOwnerTags2, findPiFallbackToolOwnerTags2, adoptPiFallbackToolOwnerTag2, adoptPiFallbackMessageTag2, markTagsCompactedByMessageIds2, deleteTagsByMessageId2, getMaxTagNumberBySession2, getTagNumberByMessageId2, getAssignableTagNumberByMessageId2, getMinMessageTagNumberForRawId2, deriveTagLoadFloor2, TAG_SELECT_COLUMNS2, getTagsBySession2, getActiveTagsBySession2, getTailHygieneTags2, getDroppedTagsBySession2, getTagsForPendingOperations2, getTagsByNumbers2, getNewestToolTagNumbers2, getDroppedTagsByNumbers2, getMaxDroppedTagNumber2, getTagById2, getTopNBySize2, getToolTagNumberByOwner2, getNullOwnerToolTag2, adoptNullOwnerToolTag2, getCandidateToolOwners2, pickNearestPriorOwner2 };
3865
+ export { protectedToolTagNumbers, protectedToolTokenCount, stripWellFormedLeadingTagPrefix, stripPersistedAssistantText, byteSize, stripTagPrefix, peelLeadingMcTagNotation, prependTag, isThinkingPart, currentReclaimableToolOutputCount, isRecord, contentTagOwnerMessageId, estimateImageTokensFromDataUrl, estimateToolAttachmentImageTokens, providerVisiblePart, providerVisibleMessage, CLEARED_TODO_STATE_JSON, normalizeTodoStateJson, buildSyntheticTodoPart, computeSyntheticCallId, isSyntheticTodoPart, countRealUserMessages, tailHygieneStructuralSignature, sameTailHygieneStructuralSignature, formatTailHygienePrefixMismatch, refreshTailHygieneBaseline, effectiveTailHygiene, assertTailHygieneContentUnchangedIfEnabled, CHANNEL1_SENTINEL, CHANNEL1_FLOOR_TOKENS, isDroppedToolOutput, toolOutputTokens, decideChannel1, evaluateChannel2, formatChannel1Evaluation, formatChannel2Evaluation, buildChannel2Reminder, buildChannel1Reminder, estimateEmergencyDropReclaimTokens, planEmergencyDrop, measureEmergencyTag, queuePendingOp, queuePendingDropForUnchangedTag, getPendingOps, hasPendingDropOps, getPendingOpsCount, clearPendingOps, removePendingOp, updateTagByteSize2, getRecentTagOwnerMessageIds2, getActiveTagTokenAggregate2, AGE_RECLAIM_MIN_TOKENS2, getOldestActiveUnprotectedToolTags2, getActiveToolTagsForAgeReclaim2, getTriggerTagTokenUpperBound2, getActiveTagTokenTotalsByMessage2, updateTagTokenCount2, getPersistedToolTagAccounting2, getAllStatusTagTokenTotalsFlat2, getReasoningTokenEstimatesByMessage2, tryGetReasoningTokenEstimatesByMessage2, getMaxTagNumberByOwnerMessage2, TagOwnerSummaryNotReady2, scanTagOwnerSummary2, cachedTagOwnerRatios2, tagOwnerWarmupState2, scanTagOwnerDelta2, installTagOwnerDelta2, installTagOwnerSummary2, isTagOwnerSummaryReady2, tagTokenCountIsNull2, backfillTagTokenCounts2, insertTag2, updateTagStatus2, markTagDropped2, markWhitespaceAssistantTagInert2, getInertWhitespaceAssistantTags2, getInertWhitespaceAssistantTagsByNumbers2, updateTagDropMode2, updateCavemanDepth2, updateTagMessageId2, hasPiFallbackMessageTags2, findAdoptableFallbackTags2, adoptFallbackTagMessageId2, foldShrunkPartTags2, hasPiFallbackToolOwnerTags2, findPiFallbackToolOwnerTags2, adoptPiFallbackToolOwnerTag2, adoptPiFallbackMessageTag2, markTagsCompactedByMessageIds2, deleteTagsByMessageId2, getMaxTagNumberBySession2, getTagNumberByMessageId2, getAssignableTagNumberByMessageId2, getMinMessageTagNumberForRawId2, deriveTagLoadFloor2, TAG_SELECT_COLUMNS2, getTagsBySession2, getActiveTagsBySession2, getTailHygieneTags2, getDroppedTagsBySession2, getTagsForPendingOperations2, getTagsByNumbers2, getNewestToolTagNumbers2, getDroppedTagsByNumbers2, getMaxDroppedTagNumber2, getTagById2, getTopNBySize2, getToolTagNumberByOwner2, getNullOwnerToolTag2, adoptNullOwnerToolTag2, getCandidateToolOwners2, pickNearestPriorOwner2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getMagicContextStorageDir
3
- } from "./index-g2q4htwp.js";
3
+ } from "./index-82dfe8en.js";
4
4
  import {
5
5
  ensureStorageDirectorySync,
6
6
  writeStorageFileAtomicSync
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  log2,
6
6
  sessionLog2
7
- } from "./index-jrfre9ah.js";
7
+ } from "./index-82dfe8en.js";
8
8
  import {
9
9
  inRootAsyncContext2,
10
10
  getSqliteDatabasePath2,
@@ -13,10 +13,10 @@ import {
13
13
  } from "./index-gzy5w8ya.js";
14
14
  import {
15
15
  runSessionWarmupWorker
16
- } from "./index-xa9mmq6c.js";
16
+ } from "./index-36wseasx.js";
17
17
  import {
18
18
  scheduleAfterBootQuiet
19
- } from "./index-txs8tce6.js";
19
+ } from "./index-0k283v27.js";
20
20
  import {
21
21
  cleanSearchText,
22
22
  hintKeywordRelevance,
@@ -28,7 +28,7 @@ import {
28
28
  clearIndexedMessages,
29
29
  indexSingleMessage,
30
30
  indexMessagesAfterOrdinal
31
- } from "./index-etn2hmb5.js";
31
+ } from "./index-jedbxq6n.js";
32
32
 
33
33
  // src/features/magic-context/message-index-async.ts
34
34
  var indexCancellations = new Map;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-pavzsdc6.js";
5
5
  import {
6
6
  log2
7
- } from "./index-jrfre9ah.js";
7
+ } from "./index-82dfe8en.js";
8
8
  import {
9
9
  resolveOpenCodeDbPath,
10
10
  assertOpenCodeStoreGeneration,
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  forgetRawSessionOrdinalWatermark2,
21
21
  forgetRawSessionSummaryRows2
22
- } from "./index-xa9mmq6c.js";
22
+ } from "./index-36wseasx.js";
23
23
  import {
24
24
  closeQuietly
25
25
  } from "./index-8ajstryz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-jrfre9ah.js";
3
+ } from "./index-82dfe8en.js";
4
4
  import {
5
5
  canonicalProjectDirectory
6
6
  } from "./index-knvkbfvh.js";
@@ -2,12 +2,10 @@ import {
2
2
  getHarness2
3
3
  } from "./index-pavzsdc6.js";
4
4
  import {
5
- getMagicContextStorageDir
6
- } from "./index-g2q4htwp.js";
7
- import {
5
+ getMagicContextStorageDir,
8
6
  log2,
9
7
  sessionLog2
10
- } from "./index-jrfre9ah.js";
8
+ } from "./index-82dfe8en.js";
11
9
  import {
12
10
  localBudget,
13
11
  calibrationForModelKey
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-jrfre9ah.js";
3
+ } from "./index-82dfe8en.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$/;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-ak11t3gm.js";
3
+ } from "./index-0tz2fzpq.js";
4
4
  import {
5
5
  expandToolPart,
6
6
  visitRawSessionMessages2,
7
7
  readRawSessionMessageById2
8
- } from "./index-xgnh498s.js";
8
+ } from "./index-qb75tv9j.js";
9
9
  import {
10
10
  getTagById2
11
- } from "./index-x53gnmce.js";
11
+ } from "./index-bkg4hdyh.js";
12
12
 
13
13
  // src/tools/ctx-expand/render.ts
14
14
  import { createHash } from "node:crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  getTokenEstimatorFingerprint,
3
3
  estimateTokens
4
- } from "./index-ak11t3gm.js";
4
+ } from "./index-0tz2fzpq.js";
5
5
  import {
6
6
  getHarness2
7
7
  } from "./index-pavzsdc6.js";
8
8
  import {
9
9
  log2
10
- } from "./index-jrfre9ah.js";
10
+ } from "./index-82dfe8en.js";
11
11
  import {
12
12
  isSynapseEmbeddingTruncated
13
- } from "./index-dj2p8653.js";
13
+ } from "./index-hsyczpn7.js";
14
14
  import {
15
15
  messageFtsOrdinalRangeIsMapped2
16
- } from "./index-h9m41624.js";
16
+ } from "./index-2ny9xwdn.js";
17
17
  import {
18
18
  isKnownAutocommit
19
19
  } from "./index-8ajstryz.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-ak11t3gm.js";
3
+ } from "./index-0tz2fzpq.js";
4
4
  import {
5
5
  stableStringify
6
- } from "./index-9wnbnx8f.js";
6
+ } from "./index-a6aqpfp6.js";
7
7
 
8
8
  // src/shared/bounded-session-map.ts
9
9
  class BoundedSessionMap {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  estimateTokens
3
- } from "./index-ak11t3gm.js";
3
+ } from "./index-0tz2fzpq.js";
4
4
  import {
5
5
  getHarness2
6
6
  } from "./index-pavzsdc6.js";
7
7
  import {
8
8
  log2
9
- } from "./index-jrfre9ah.js";
9
+ } from "./index-82dfe8en.js";
10
10
  import {
11
11
  inRootAsyncContext2
12
12
  } from "./index-gzy5w8ya.js";