@cortexkit/opencode-magic-context 0.49.5 → 0.49.6

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 (94) hide show
  1. package/dist/auto-search-worker.js +5 -5
  2. package/dist/{compaction-marker-candidates-dd638ypn.js → compaction-marker-candidates-cz72pm1t.js} +2 -2
  3. package/dist/compaction-marker-candidates-worker.js +2 -2
  4. package/dist/{conflict-warning-hook-ae8nmv7c.js → conflict-warning-hook-1jq1rxx7.js} +5 -5
  5. package/dist/{context-yg023c5r.js → context-ae3gxdye.js} +23 -23
  6. package/dist/{embedding-backfill-aj488s8x.js → embedding-backfill-dtjmyktb.js} +6 -6
  7. package/dist/{index-kb9nn0a0.js → index-0nnd4bry.js} +2 -2
  8. package/dist/{index-yqps2zsv.js → index-1j8jcjpa.js} +1 -1
  9. package/dist/{index-3wckxwfp.js → index-1xaw2pq8.js} +5 -5
  10. package/dist/{index-m4p77myp.js → index-6q5h70h2.js} +1 -1
  11. package/dist/{index-7ndnvw7a.js → index-7q1m1qjk.js} +1 -1
  12. package/dist/{index-6m7rdv7y.js → index-9m7bn21d.js} +1 -1
  13. package/dist/{index-c0b01zrc.js → index-9s58tq95.js} +3 -3
  14. package/dist/{index-p2hs3rps.js → index-a796ct3s.js} +4 -4
  15. package/dist/{index-qvr78ej6.js → index-ab3bgm2m.js} +2 -2
  16. package/dist/{index-znzgze2v.js → index-besxhcsh.js} +7 -7
  17. package/dist/{index-7w18gg78.js → index-bg5qqene.js} +1 -1
  18. package/dist/{index-fst3t0d9.js → index-ch08qwgd.js} +8 -8
  19. package/dist/{index-dd18gej8.js → index-ck6y3td2.js} +3 -3
  20. package/dist/{index-7jzrrxap.js → index-cm4hmxyk.js} +1 -1
  21. package/dist/{index-yxawqmdd.js → index-f3dnvnw6.js} +1 -1
  22. package/dist/{index-41gqa557.js → index-g9exahnx.js} +1 -1
  23. package/dist/{index-bhk710rw.js → index-hr64sth2.js} +1 -1
  24. package/dist/{index-gcdb3rqw.js → index-j55vn694.js} +1 -1
  25. package/dist/{index-x3y1np1h.js → index-mj1fgfrk.js} +23 -23
  26. package/dist/{index-fjtgekd4.js → index-s0gsmthp.js} +4 -4
  27. package/dist/{index-v4bqjy56.js → index-vh3e2mvr.js} +17 -17
  28. package/dist/{index-jpm52v9x.js → index-vnjhmkwk.js} +1 -1
  29. package/dist/{index-7zg9dvx0.js → index-vztbgcdk.js} +4 -4
  30. package/dist/{index-xfbfrngb.js → index-xqyj5c85.js} +2 -2
  31. package/dist/{index-2mqps3c1.js → index-zgzdm6dg.js} +9 -9
  32. package/dist/index.js +34 -34
  33. package/dist/{message-index-bounded-pv6ct15d.js → message-index-bounded-630j53ps.js} +9 -9
  34. package/dist/{message-index-jqa7qd0s.js → message-index-c84wm2g0.js} +9 -9
  35. package/dist/{message-time-backfill-8x06r9kx.js → message-time-backfill-8kj57qe3.js} +1 -1
  36. package/dist/migration-worker.js +6 -6
  37. package/dist/{project-embedding-registry-fcmszatg.js → project-embedding-registry-vv59t7ah.js} +5 -5
  38. package/dist/raw-ordinal-warmup-worker.js +6 -6
  39. package/dist/{read-session-chunk-cwgjwjd0.js → read-session-chunk-t3vjd0h0.js} +5 -5
  40. package/dist/{read-session-raw-z38cn0as.js → read-session-raw-gf7eytnm.js} +2 -2
  41. package/dist/{recomp-orchestrator-xw9wt5bm.js → recomp-orchestrator-1d08g57a.js} +20 -20
  42. package/dist/{search-v1t47s2q.js → search-kth2p6cc.js} +16 -16
  43. package/dist/{send-session-notification-yp9m5g4p.js → send-session-notification-3j6krd4w.js} +4 -4
  44. package/dist/{sqlite-mhjkerzq.js → sqlite-d7edbk1s.js} +1 -1
  45. package/dist/{storage-memory-07fx57k6.js → storage-memory-af5zdz98.js} +2 -2
  46. package/dist/{storage-tags-0ssbmzg9.js → storage-tags-dyj7mmbq.js} +2 -2
  47. package/dist/{transform-postprocess-phase-ttra554y.js → transform-postprocess-phase-bv3kb5s1.js} +20 -20
  48. package/dist/v2/auto-search-worker.js +5 -5
  49. package/dist/v2/{compaction-marker-candidates-1s21e2fz.js → compaction-marker-candidates-6gqp5wrc.js} +2 -2
  50. package/dist/v2/compaction-marker-candidates-worker.js +2 -2
  51. package/dist/v2/{context-6en6a8ar.js → context-p8f2shp1.js} +23 -23
  52. package/dist/v2/{embedding-backfill-9hbkfvnz.js → embedding-backfill-cg4rv90f.js} +6 -6
  53. package/dist/v2/{message-index-h8ssgq3q.js → message-index-3ws17x1g.js} +9 -9
  54. package/dist/v2/{message-index-bounded-c0810p5w.js → message-index-bounded-yzxmf6vp.js} +9 -9
  55. package/dist/v2/{message-time-backfill-cje68egj.js → message-time-backfill-5nf10c65.js} +1 -1
  56. package/dist/v2/migration-worker.js +6 -6
  57. package/dist/v2/{project-embedding-registry-42th7k1z.js → project-embedding-registry-rsnf2263.js} +5 -5
  58. package/dist/v2/raw-ordinal-warmup-worker.js +6 -6
  59. package/dist/v2/{read-session-chunk-n86v9xfg.js → read-session-chunk-vtb0w2kd.js} +5 -5
  60. package/dist/v2/{read-session-raw-3b3ehga4.js → read-session-raw-gpcddemt.js} +2 -2
  61. package/dist/v2/{recomp-orchestrator-krvsbnds.js → recomp-orchestrator-v64r4s4r.js} +19 -19
  62. package/dist/v2/{search-048v8y02.js → search-bpa4fxq1.js} +16 -16
  63. package/dist/v2/{send-session-notification-a4h2azxa.js → send-session-notification-5aj2j7vf.js} +4 -4
  64. package/dist/v2/{server-9a6v0wth.js → server-09g9pkvx.js} +7 -7
  65. package/dist/v2/{server-kb9nn0a0.js → server-0nnd4bry.js} +2 -2
  66. package/dist/v2/{server-cjz51jm2.js → server-158ehmk2.js} +3 -3
  67. package/dist/v2/{server-3dqjhchy.js → server-387vkhjq.js} +1 -1
  68. package/dist/v2/{server-czb2rkpk.js → server-4tn95znb.js} +1 -1
  69. package/dist/v2/{server-9290a1mb.js → server-6a9mxnb2.js} +1 -1
  70. package/dist/v2/{server-e2v4m8xe.js → server-7skbfb81.js} +17 -17
  71. package/dist/v2/{server-4enr7s6x.js → server-9zqewm6g.js} +1 -1
  72. package/dist/v2/{server-hetyb88z.js → server-aa9w15cs.js} +8 -8
  73. package/dist/v2/{server-q6j5dasr.js → server-btgnsv7w.js} +1 -1
  74. package/dist/v2/{server-7jzrrxap.js → server-cm4hmxyk.js} +1 -1
  75. package/dist/v2/{server-5zrpr764.js → server-f9py7s7a.js} +1 -1
  76. package/dist/v2/{server-4n2tknpc.js → server-fby0cxbq.js} +4 -4
  77. package/dist/v2/{server-8wcf79fe.js → server-keswwkvv.js} +1 -1
  78. package/dist/v2/{server-3bc6k4k4.js → server-qn23p4h7.js} +5 -5
  79. package/dist/v2/{server-cvgn49tr.js → server-wrem2nmz.js} +1 -1
  80. package/dist/v2/{server-8pqnnmf9.js → server-ww9nr8pe.js} +2 -2
  81. package/dist/v2/{server-rygvffsf.js → server-x2r63c0x.js} +4 -4
  82. package/dist/v2/{server-pcygfdbs.js → server-yd01snxq.js} +1 -1
  83. package/dist/v2/{server-2htmbqbv.js → server-yezz0cp2.js} +1 -1
  84. package/dist/v2/server.js +2 -2
  85. package/dist/v2/{sqlite-mhjkerzq.js → sqlite-d7edbk1s.js} +1 -1
  86. package/dist/v2/{storage-memory-07fx57k6.js → storage-memory-af5zdz98.js} +2 -2
  87. package/dist/v2/{storage-tags-3a4cavqb.js → storage-tags-d47bpaqa.js} +2 -2
  88. package/dist/v2/{wrapup-orchestrator-r2v7kgy3.js → wrapup-orchestrator-cahk37n7.js} +19 -19
  89. package/dist/{wrapup-orchestrator-z7agncp8.js → wrapup-orchestrator-mqp0v195.js} +21 -21
  90. package/package.json +1 -1
  91. package/src/shared/sqlite-acquisition-routing.test.ts +4 -3
  92. package/src/shared/sqlite-foreground-wait.test.ts +140 -0
  93. package/src/shared/sqlite-pass-scope.test.ts +4 -4
  94. package/src/shared/sqlite.ts +2 -2
@@ -8,14 +8,14 @@ import {
8
8
  clearIgnoredMessages2,
9
9
  observeIgnoredNotificationEvent2,
10
10
  sendStatusNotification2
11
- } from "./server-4enr7s6x.js";
11
+ } from "./server-9zqewm6g.js";
12
12
  import"./server-qt1qqasc.js";
13
13
  import"./server-676xw7at.js";
14
- import"./server-czb2rkpk.js";
15
- import"./server-3dqjhchy.js";
14
+ import"./server-4tn95znb.js";
15
+ import"./server-387vkhjq.js";
16
16
  import"./server-51779zs2.js";
17
17
  import"./server-2ra6pwf3.js";
18
- import"./server-kb9nn0a0.js";
18
+ import"./server-0nnd4bry.js";
19
19
  import"./server-t4k4qexw.js";
20
20
  import"./server-pavzsdc6.js";
21
21
  export {
@@ -19,7 +19,7 @@ import {
19
19
  parseRpcPortFile,
20
20
  inspectProcessesAsync,
21
21
  inspectWindowsProcessesSync
22
- } from "./server-cvgn49tr.js";
22
+ } from "./server-wrem2nmz.js";
23
23
  import {
24
24
  registerSlowWriteReporter2,
25
25
  registerSqliteDiagnosticSink2,
@@ -29,13 +29,13 @@ import {
29
29
  withoutSqliteTransformPass2,
30
30
  isTransientSqliteError2,
31
31
  withPrivilegedWriter2
32
- } from "./server-kb9nn0a0.js";
32
+ } from "./server-0nnd4bry.js";
33
33
  import {
34
34
  configureContextDatabasePragmas2
35
35
  } from "./server-fb3zxn06.js";
36
36
  import {
37
37
  startMessageFtsRowidMapBackfill
38
- } from "./server-2htmbqbv.js";
38
+ } from "./server-yezz0cp2.js";
39
39
  import {
40
40
  LKG_SLOT_CHUNKS_DDL,
41
41
  SESSION_REPLAY_DECISIONS_DDL,
@@ -45,7 +45,7 @@ import {
45
45
  hasPendingMigrations,
46
46
  getMainThreadMigrationBodyCount,
47
47
  runMigrations
48
- } from "./server-8pqnnmf9.js";
48
+ } from "./server-ww9nr8pe.js";
49
49
  import {
50
50
  ensureColumn,
51
51
  installV95PerfSchema,
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  bootQuietRemainingMs,
60
60
  scheduleAfterBootQuiet
61
- } from "./server-q6j5dasr.js";
61
+ } from "./server-btgnsv7w.js";
62
62
  import {
63
63
  setDatabase,
64
64
  loadToolDefinitionMeasurements
@@ -1198,8 +1198,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1198
1198
  startMessageFtsRowidMapBackfill(db).then(async () => {
1199
1199
  if (!readsOpenCodeStore)
1200
1200
  return;
1201
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-n86v9xfg.js"));
1202
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-cje68egj.js"));
1201
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-vtb0w2kd.js"));
1202
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-5nf10c65.js"));
1203
1203
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
1204
1204
  readPage: readRawSessionMessagePage
1205
1205
  }));
@@ -556,7 +556,7 @@ class SqliteAcquisitionBusyError2 extends Error {
556
556
  }
557
557
  }
558
558
  var SHORT_BUSY_TIMEOUT_MS = 25;
559
- var FOREGROUND_IN_PASS_BUSY_TIMEOUT_MS = 250;
559
+ var FOREGROUND_IN_PASS_BUSY_TIMEOUT_MS = 2000;
560
560
  var FOREGROUND_ACQUISITION_BUDGET_MS = 16500;
561
561
  var SLOW_WRITER_LOG_MS = 250;
562
562
  var WRITER_TRANSACTION_END = /^\s*(?:COMMIT|END|ROLLBACK)(?:\s+TRANSACTION)?\s*;?\s*$/i;
@@ -572,7 +572,7 @@ function withAutocommitTimeout(db, operation) {
572
572
  if (isInTransaction(db) || !lease && !backgroundWriterScope.getStore())
573
573
  return operation();
574
574
  const previous = pragmaNumber(db, "busy_timeout");
575
- db.exec(`PRAGMA busy_timeout=${lease ? Math.floor(lease.remainingWaitMs) : SHORT_BUSY_TIMEOUT_MS}`);
575
+ db.exec(`PRAGMA busy_timeout=${lease ? Math.floor(Math.min(lease.remainingWaitMs, lease.guard?.remainingMs() ?? Infinity)) : SHORT_BUSY_TIMEOUT_MS}`);
576
576
  const started = performance.now();
577
577
  try {
578
578
  return operation();
@@ -2,7 +2,7 @@ import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withoutSqliteTransformPass2,
4
4
  isTransientSqliteError2
5
- } from "./server-kb9nn0a0.js";
5
+ } from "./server-0nnd4bry.js";
6
6
  import {
7
7
  DEFAULT_LOCAL_EMBEDDING_MODEL
8
8
  } from "./server-cw6521wn.js";
@@ -40,7 +40,7 @@ import {
40
40
  loadUnembeddedSessionChunkCandidatesPolite,
41
41
  countSessionCompartmentEmbedCoverage,
42
42
  countUnembeddedSessionCompartmentsPolite
43
- } from "./server-8wcf79fe.js";
43
+ } from "./server-keswwkvv.js";
44
44
  import {
45
45
  saveEmbeddingIfHashMatches,
46
46
  getMemoryEmbedCoverage,
@@ -56,7 +56,7 @@ import {
56
56
  import {
57
57
  isUserHomeDirectory,
58
58
  setBootQuietPeriodForTests
59
- } from "./server-q6j5dasr.js";
59
+ } from "./server-btgnsv7w.js";
60
60
  import {
61
61
  logSlowWriteTransaction
62
62
  } from "./server-3t0q2cqx.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getSqliteDatabasePath2,
9
9
  releaseIndexOwner2
10
- } from "./server-kb9nn0a0.js";
10
+ } from "./server-0nnd4bry.js";
11
11
 
12
12
  // src/hooks/magic-context/raw-ordinal-warmup.ts
13
13
  import { Worker } from "node:worker_threads";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./server-2ra6pwf3.js";
15
15
  import {
16
16
  Database2
17
- } from "./server-kb9nn0a0.js";
17
+ } from "./server-0nnd4bry.js";
18
18
  import {
19
19
  closeQuietly
20
20
  } from "./server-8ajstryz.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./server-t4k4qexw.js";
7
7
  import {
8
8
  getSqliteDatabasePath2
9
- } from "./server-kb9nn0a0.js";
9
+ } from "./server-0nnd4bry.js";
10
10
 
11
11
  // src/features/magic-context/compaction-marker-candidates.ts
12
12
  import { existsSync, realpathSync } from "node:fs";
@@ -41,10 +41,10 @@ import {
41
41
  withSqliteBackgroundWriter2,
42
42
  withoutSqliteTransformPass2,
43
43
  beginSqliteWriterAsync2
44
- } from "./server-kb9nn0a0.js";
44
+ } from "./server-0nnd4bry.js";
45
45
  import {
46
46
  sameProjectDirectory
47
- } from "./server-2htmbqbv.js";
47
+ } from "./server-yezz0cp2.js";
48
48
  import {
49
49
  buildCanonicalChunkTextFromFts,
50
50
  buildCompartmentSummaryFallbackText,
@@ -54,10 +54,10 @@ import {
54
54
  replaceCompartmentChunkEmbeddings,
55
55
  deleteChunkEmbedBackoffForSession,
56
56
  chunkWindowSourceKey
57
- } from "./server-8wcf79fe.js";
57
+ } from "./server-keswwkvv.js";
58
58
  import {
59
59
  isPidAlive
60
- } from "./server-cvgn49tr.js";
60
+ } from "./server-wrem2nmz.js";
61
61
  import {
62
62
  BoundedSessionMap,
63
63
  clearCompressionDepth,
@@ -72,7 +72,7 @@ import {
72
72
  toMessageIndexSource2,
73
73
  clearIndexedMessagesInTransaction2,
74
74
  indexSourcesAfterOrdinal2
75
- } from "./server-3bc6k4k4.js";
75
+ } from "./server-qn23p4h7.js";
76
76
  import {
77
77
  detectOverflow,
78
78
  SESSION_META_SELECT_COLUMNS,
@@ -157,7 +157,7 @@ import {
157
157
  getRawSessionTagKeysThrough2,
158
158
  getLegacyProtectedTailStartOrdinal2,
159
159
  readSessionChunk2
160
- } from "./server-4n2tknpc.js";
160
+ } from "./server-fby0cxbq.js";
161
161
  import {
162
162
  getTableColumnNames
163
163
  } from "./server-6byqfbqf.js";
@@ -167,7 +167,7 @@ import {
167
167
  LATEST_SUPPORTED_VERSION,
168
168
  getPersistedSchemaVersion,
169
169
  openDatabase
170
- } from "./server-9a6v0wth.js";
170
+ } from "./server-09g9pkvx.js";
171
171
  import {
172
172
  providerMass,
173
173
  calibrationForModelKey,
@@ -185,11 +185,11 @@ import {
185
185
  foldShrunkPartTags2,
186
186
  getTagNumberByMessageId2,
187
187
  getActiveTagsBySession2
188
- } from "./server-pcygfdbs.js";
188
+ } from "./server-yd01snxq.js";
189
189
  import {
190
190
  isStrictGapHealingMessage2,
191
191
  noteRawSessionSummaryRowWritten2
192
- } from "./server-3dqjhchy.js";
192
+ } from "./server-387vkhjq.js";
193
193
  import {
194
194
  resolveOpenCodeDbPath,
195
195
  assertOpenCodeStoreGeneration,
@@ -199,7 +199,7 @@ import {
199
199
  import {
200
200
  withReadOnlySessionDb,
201
201
  getMessageTimesFromOpenCodeDb
202
- } from "./server-czb2rkpk.js";
202
+ } from "./server-4tn95znb.js";
203
203
  import {
204
204
  getMeasuredToolDefinitionTokens
205
205
  } from "./server-7ekna9zs.js";
@@ -218,11 +218,11 @@ import {
218
218
  resolveStoredPathWorkspaceIdentity,
219
219
  sourceNameForMemory,
220
220
  computeWorkspaceEpochFingerprint
221
- } from "./server-8pqnnmf9.js";
221
+ } from "./server-ww9nr8pe.js";
222
222
  import {
223
223
  shouldSkipHomeProjectMemory,
224
224
  resolveProjectIdentity
225
- } from "./server-q6j5dasr.js";
225
+ } from "./server-btgnsv7w.js";
226
226
  import {
227
227
  drainBackgroundBatches,
228
228
  contentSha2562,
@@ -230,7 +230,7 @@ import {
230
230
  getProjectChunkEmbeddingModelId2,
231
231
  getProjectEmbeddingMaxInputTokens2,
232
232
  embedItemsForProject2
233
- } from "./server-cjz51jm2.js";
233
+ } from "./server-158ehmk2.js";
234
234
  import {
235
235
  getSessionNotes,
236
236
  getReadySmartNotes,
@@ -239,13 +239,13 @@ import {
239
239
  userFacingFailureCode,
240
240
  promoteSessionFactsDurable,
241
241
  embedPromotedFacts
242
- } from "./server-rygvffsf.js";
242
+ } from "./server-x2r63c0x.js";
243
243
  import {
244
244
  isMarkerCandidateBasisCurrent2,
245
245
  invalidateMarkerCandidateBasis2,
246
246
  readMarkerCandidateBasis2,
247
247
  prepareMarkerCandidateBasis2
248
- } from "./server-9290a1mb.js";
248
+ } from "./server-6a9mxnb2.js";
249
249
  import {
250
250
  computeCueContentHash,
251
251
  getMuralCueState,
@@ -253,7 +253,7 @@ import {
253
253
  getMemoriesByProject2,
254
254
  getMemoriesByProjects2,
255
255
  getMaxMemoryIdForProjects2
256
- } from "./server-7jzrrxap.js";
256
+ } from "./server-cm4hmxyk.js";
257
257
  import {
258
258
  pushNotification2
259
259
  } from "./server-x8a7jmkh.js";
@@ -264,7 +264,7 @@ import {
264
264
  } from "./server-t528t8qm.js";
265
265
  import {
266
266
  sendStatusNotification2
267
- } from "./server-4enr7s6x.js";
267
+ } from "./server-9zqewm6g.js";
268
268
  import {
269
269
  getErrorMessage,
270
270
  describeError
@@ -10,7 +10,7 @@ import {
10
10
  } from "./server-676xw7at.js";
11
11
  import {
12
12
  shouldHoldIgnoredNotification
13
- } from "./server-czb2rkpk.js";
13
+ } from "./server-4tn95znb.js";
14
14
  import {
15
15
  getErrorMessage
16
16
  } from "./server-y8v6yerm.js";
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  buildCanonicalChunkTextFromFts,
19
19
  loadCompartmentChunkEmbeddingsForSearch
20
- } from "./server-8wcf79fe.js";
20
+ } from "./server-keswwkvv.js";
21
21
  import {
22
22
  recordEmbeddingMeasurement,
23
23
  saveCommitEmbedding,
@@ -34,7 +34,7 @@ import {
34
34
  enqueueShadowEmbeddingItems2,
35
35
  getProjectEmbeddingSnapshot2,
36
36
  embedItemsForProject2
37
- } from "./server-cjz51jm2.js";
37
+ } from "./server-158ehmk2.js";
38
38
  import {
39
39
  getProjectEmbeddings2
40
40
  } from "./server-4dhv7mqz.js";
@@ -43,13 +43,13 @@ import {
43
43
  isEmbeddingEnabled,
44
44
  embedText,
45
45
  ensureMemoryEmbeddings2
46
- } from "./server-5zrpr764.js";
46
+ } from "./server-f9py7s7a.js";
47
47
  import {
48
48
  ModuleMemoryAuthorityError2,
49
49
  getMemoriesByProject2,
50
50
  getMemoriesByProjects2,
51
51
  updateMemoryRetrievalCount2
52
- } from "./server-7jzrrxap.js";
52
+ } from "./server-cm4hmxyk.js";
53
53
  import {
54
54
  getNotes,
55
55
  getActivePrimers,
@@ -58,20 +58,20 @@ import {
58
58
  sanitizeFtsQuery,
59
59
  searchMemoriesFTS,
60
60
  searchMemoriesFTSUnion
61
- } from "./server-rygvffsf.js";
61
+ } from "./server-x2r63c0x.js";
62
62
  import {
63
63
  isRecord
64
- } from "./server-pcygfdbs.js";
64
+ } from "./server-yd01snxq.js";
65
65
  import {
66
66
  getIndexedMessageCorpusSize2
67
- } from "./server-3bc6k4k4.js";
67
+ } from "./server-qn23p4h7.js";
68
68
  import {
69
69
  resolveWorkspaceShareCategories,
70
70
  resolveWorkspaceIdentitySet,
71
71
  expandWorkspaceIdentitySetWithAliases,
72
72
  resolveStoredPathWorkspaceIdentity,
73
73
  sourceNameForMemory
74
- } from "./server-8pqnnmf9.js";
74
+ } from "./server-ww9nr8pe.js";
75
75
  import {
76
76
  isKnownAutocommit
77
77
  } from "./server-8ajstryz.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./server-t4k4qexw.js";
5
5
  import {
6
6
  projectDirectoryKey
7
- } from "./server-2htmbqbv.js";
7
+ } from "./server-yezz0cp2.js";
8
8
  import {
9
9
  writeStorageFileAtomicSync
10
10
  } from "./server-fvnzcnww.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPrivilegedWriter2
3
- } from "./server-kb9nn0a0.js";
3
+ } from "./server-0nnd4bry.js";
4
4
  import {
5
5
  MEMORY_CATEGORY_ORDER_SQL
6
6
  } from "./server-fr0wbhdn.js";
@@ -15,7 +15,7 @@ import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./server-cjz51jm2.js";
18
+ } from "./server-158ehmk2.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./server-qt1qqasc.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./server-pavzsdc6.js";
4
4
  import {
5
5
  prepareCachedStatement2
6
- } from "./server-kb9nn0a0.js";
6
+ } from "./server-0nnd4bry.js";
7
7
  import {
8
8
  UNKNOWN_FIT_RATIO,
9
9
  resolveDecisionCalibration,
@@ -23,7 +23,7 @@ import {
23
23
  TAG_SELECT_COLUMNS2,
24
24
  getCandidateToolOwners2,
25
25
  pickNearestPriorOwner2
26
- } from "./server-pcygfdbs.js";
26
+ } from "./server-yd01snxq.js";
27
27
  import {
28
28
  OMO_INTERNAL_INITIATOR_MARKER,
29
29
  isSystemDirective,
@@ -68,13 +68,13 @@ import {
68
68
  readRawSeedTailFromDb2,
69
69
  readRawSessionBoundaryEndpointsFromDb2,
70
70
  prewarmRawSessionOrdinalsForDb
71
- } from "./server-3dqjhchy.js";
71
+ } from "./server-387vkhjq.js";
72
72
  import {
73
73
  openCodeDbExists,
74
74
  withReadOnlySessionDb,
75
75
  getRawSessionMessageCountFromDb,
76
76
  getMessageTimesFromOpenCodeDb
77
- } from "./server-czb2rkpk.js";
77
+ } from "./server-4tn95znb.js";
78
78
  import {
79
79
  getToolDefinitionMeasurementSignature,
80
80
  getLargestMeasuredToolDefinitionTokens,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./server-hb6xhh9q.js";
14
14
  import {
15
15
  messageFtsOrdinalRangeIsMapped
16
- } from "./server-2htmbqbv.js";
16
+ } from "./server-yezz0cp2.js";
17
17
 
18
18
  // src/features/magic-context/compartment-chunk-embedding.ts
19
19
  import { createHash } from "node:crypto";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  withSqliteBackgroundWriter2,
14
14
  withoutSqliteTransformPass2
15
- } from "./server-kb9nn0a0.js";
15
+ } from "./server-0nnd4bry.js";
16
16
  import {
17
17
  TAG_TOMBSTONE_OWNER_PREFIX,
18
18
  tagTombstoneOwnerRange,
@@ -23,20 +23,20 @@ import {
23
23
  } from "./server-6byqfbqf.js";
24
24
  import {
25
25
  cleanUserText2
26
- } from "./server-4n2tknpc.js";
26
+ } from "./server-fby0cxbq.js";
27
27
  import {
28
28
  recordMessageFtsRowid,
29
29
  recordIndexedMessageTime,
30
30
  messageFtsOrdinalRangeIsMapped,
31
31
  deleteUnmappedMessageFtsRows
32
- } from "./server-2htmbqbv.js";
32
+ } from "./server-yezz0cp2.js";
33
33
  import {
34
34
  isPidAlive,
35
35
  readProcessStartTime
36
- } from "./server-cvgn49tr.js";
36
+ } from "./server-wrem2nmz.js";
37
37
  import {
38
38
  deleteChunkEmbedBackoffForSession
39
- } from "./server-8wcf79fe.js";
39
+ } from "./server-keswwkvv.js";
40
40
  import {
41
41
  ensurePrivateStorageDirectorySync,
42
42
  writeStorageFileSync,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./server-t4k4qexw.js";
4
4
  import {
5
5
  canonicalProjectDirectory
6
- } from "./server-2htmbqbv.js";
6
+ } from "./server-yezz0cp2.js";
7
7
 
8
8
  // src/shared/rpc-utils.ts
9
9
  import { execFile, execFileSync } from "node:child_process";
@@ -16,11 +16,11 @@ import {
16
16
  } from "./server-2ra6pwf3.js";
17
17
  import {
18
18
  Database2
19
- } from "./server-kb9nn0a0.js";
19
+ } from "./server-0nnd4bry.js";
20
20
  import {
21
21
  normalizeStoredProjectPath,
22
22
  storedPathBelongsToIdentity
23
- } from "./server-q6j5dasr.js";
23
+ } from "./server-btgnsv7w.js";
24
24
  import {
25
25
  logSlowWriteTransaction
26
26
  } from "./server-3t0q2cqx.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./server-pavzsdc6.js";
4
4
  import {
5
5
  isTransientSqliteError2
6
- } from "./server-kb9nn0a0.js";
6
+ } from "./server-0nnd4bry.js";
7
7
  import {
8
8
  PROMOTABLE_CATEGORIES,
9
9
  CATEGORY_DEFAULT_TTL
@@ -14,10 +14,10 @@ import {
14
14
  } from "./server-t4k4qexw.js";
15
15
  import {
16
16
  managedAuthorityNoteRow
17
- } from "./server-8pqnnmf9.js";
17
+ } from "./server-ww9nr8pe.js";
18
18
  import {
19
19
  embedTextForProject2
20
- } from "./server-cjz51jm2.js";
20
+ } from "./server-158ehmk2.js";
21
21
  import {
22
22
  saveEmbeddingIfHashMatches
23
23
  } from "./server-4dhv7mqz.js";
@@ -30,7 +30,7 @@ import {
30
30
  buildWorkspaceMemorySqlFilter2,
31
31
  getMemoryById2,
32
32
  updateMemorySeenCount2
33
- } from "./server-7jzrrxap.js";
33
+ } from "./server-cm4hmxyk.js";
34
34
  import {
35
35
  computeNormalizedHash
36
36
  } from "./server-2bvekkfy.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  getTagIdentityWriteGeneration2,
16
16
  getSqliteDatabasePath2
17
- } from "./server-kb9nn0a0.js";
17
+ } from "./server-0nnd4bry.js";
18
18
  import {
19
19
  stableStringify,
20
20
  tagOrderConstraintIndex,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withoutSqliteTransformPass2
4
- } from "./server-kb9nn0a0.js";
4
+ } from "./server-0nnd4bry.js";
5
5
  import {
6
6
  logSlowWriteTransaction
7
7
  } from "./server-3t0q2cqx.js";
package/dist/v2/server.js CHANGED
@@ -7870,7 +7870,7 @@ var require_src2 = __commonJS(function(exports, module) {
7870
7870
  // package.json
7871
7871
  var package_default = {
7872
7872
  name: "@cortexkit/opencode-magic-context",
7873
- version: "0.49.5",
7873
+ version: "0.49.6",
7874
7874
  type: "module",
7875
7875
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
7876
7876
  main: "dist/index.js",
@@ -8186,7 +8186,7 @@ async function setup(context) {
8186
8186
  log2("v2 setup() called on a host without session.hook; v1 server lane owns this host, v2 lane inert");
8187
8187
  return async () => {};
8188
8188
  }
8189
- const { registerContext } = await import("./context-6en6a8ar.js");
8189
+ const { registerContext } = await import("./context-p8f2shp1.js");
8190
8190
  setHarness2("opencode2");
8191
8191
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
8192
8192
  const duties = await registerContext(context);
@@ -20,7 +20,7 @@ import {
20
20
  releaseIndexOwner2,
21
21
  withIndexChunk2,
22
22
  yieldIndexChunk2
23
- } from "./server-kb9nn0a0.js";
23
+ } from "./server-0nnd4bry.js";
24
24
  export {
25
25
  Database2 as Database,
26
26
  SqliteAcquisitionBusyError2 as SqliteAcquisitionBusyError,
@@ -31,10 +31,10 @@ import {
31
31
  deleteMemory2,
32
32
  getMemoryCount2,
33
33
  getMemoryCountsByStatus2
34
- } from "./server-7jzrrxap.js";
34
+ } from "./server-cm4hmxyk.js";
35
35
  import"./server-4dhv7mqz.js";
36
36
  import"./server-fr0wbhdn.js";
37
- import"./server-kb9nn0a0.js";
37
+ import"./server-0nnd4bry.js";
38
38
  export {
39
39
  COLUMN_MAP2 as COLUMN_MAP,
40
40
  ModuleMemoryAuthorityError2 as ModuleMemoryAuthorityError,
@@ -60,10 +60,10 @@ import {
60
60
  adoptNullOwnerToolTag2,
61
61
  getCandidateToolOwners2,
62
62
  pickNearestPriorOwner2
63
- } from "./server-pcygfdbs.js";
63
+ } from "./server-yd01snxq.js";
64
64
  import"./server-1zx87sdm.js";
65
65
  import"./server-6byqfbqf.js";
66
- import"./server-kb9nn0a0.js";
66
+ import"./server-0nnd4bry.js";
67
67
  import"./server-kzns2hbz.js";
68
68
  import"./server-t4k4qexw.js";
69
69
  import"./server-pavzsdc6.js";