@cortexkit/pi-magic-context 0.49.48 → 0.49.50

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 (57) hide show
  1. package/dist/auto-search-worker.js +5 -5
  2. package/dist/chunk-embedding-write-worker.js +12 -12
  3. package/dist/{compaction-marker-candidates-17a21jfn.js → compaction-marker-candidates-9yhrstyb.js} +2 -2
  4. package/dist/compaction-marker-candidates-worker.js +1 -1
  5. package/dist/{compartment-chunk-embedding-nyjs3dfh.js → compartment-chunk-embedding-wg7emg3z.js} +7 -7
  6. package/dist/embedding-backfill-fbhpk2yy.js +27 -0
  7. package/dist/embedding-worker-process.js +1 -1
  8. package/dist/embedding-worker.js +5 -5
  9. package/dist/historian-calibration-extension.js +1 -1
  10. package/dist/{index-bbffazv6.js → index-06rdy9h6.js} +11 -9
  11. package/dist/{index-h1rtbjrp.js → index-38bm78h4.js} +25 -21
  12. package/dist/{index-tsg6swzr.js → index-38pf5bqw.js} +6 -4
  13. package/dist/{index-w26zvs1q.js → index-46wk0td0.js} +1 -1
  14. package/dist/{index-vnygvrad.js → index-4j5442b0.js} +7 -7
  15. package/dist/{index-806brt0p.js → index-4ss8c8ky.js} +10 -10
  16. package/dist/{index-bbbp8zs1.js → index-6d0bby9d.js} +2 -2
  17. package/dist/{index-000fthre.js → index-7y60kyea.js} +1 -1
  18. package/dist/{index-gzk7d940.js → index-aec63gtj.js} +3 -0
  19. package/dist/{index-6748dkmx.js → index-ch3rvpjg.js} +2 -2
  20. package/dist/{index-0wtm7g7f.js → index-j0eagxkz.js} +1 -1
  21. package/dist/{index-gwm5x42c.js → index-jexm22qn.js} +3 -3
  22. package/dist/{index-yacs388s.js → index-jxm4bvm4.js} +1 -1
  23. package/dist/{index-pja6ggeq.js → index-jy9fq8gp.js} +11 -11
  24. package/dist/{index-4sa1rx3h.js → index-ndg15t3x.js} +4 -4
  25. package/dist/{index-j1kkx3f3.js → index-pkg07s54.js} +2 -2
  26. package/dist/{index-bhj8kymt.js → index-qcsjj9m0.js} +3 -3
  27. package/dist/{index-gwvahsdz.js → index-qm139qq2.js} +2 -2
  28. package/dist/{index-rcenqffj.js → index-r6dj8rm9.js} +27 -11
  29. package/dist/{index-3g9fnq6y.js → index-szn2tac8.js} +1 -1
  30. package/dist/{index-zwbgxt01.js → index-ty2m0s0s.js} +6 -5
  31. package/dist/{index-2kmwjq42.js → index-xssjy4z9.js} +1 -1
  32. package/dist/{index-6pk49fc3.js → index-xx1911hb.js} +1 -1
  33. package/dist/{index-cq71g4dk.js → index-yjgkjkjs.js} +1 -1
  34. package/dist/{index-zybqfwfv.js → index-ywvhr524.js} +4 -4
  35. package/dist/{index-gymgz20n.js → index-yxeg8zaa.js} +23 -20
  36. package/dist/{index-d107f484.js → index-zc6fdyx7.js} +4 -4
  37. package/dist/{index-mp0gh04g.js → index-zxm7ckvc.js} +2 -2
  38. package/dist/index.js +194 -122
  39. package/dist/{logger-2j70hhz4.js → logger-hhgpkbx1.js} +1 -1
  40. package/dist/{message-fts-rowid-map-ff4qg3e4.js → message-fts-rowid-map-tec2x7qe.js} +4 -4
  41. package/dist/{message-index-bounded-f0bk44ch.js → message-index-bounded-wg71m86d.js} +10 -10
  42. package/dist/{message-time-backfill-x45573rs.js → message-time-backfill-krre2qnb.js} +2 -2
  43. package/dist/migration-worker.js +9 -9
  44. package/dist/{project-embedding-registry-ysaezfqw.js → project-embedding-registry-hpca84nz.js} +12 -12
  45. package/dist/raw-ordinal-warmup-worker.js +8 -8
  46. package/dist/{read-session-chunk-6nt4dzkk.js → read-session-chunk-dmpabgvh.js} +8 -8
  47. package/dist/{read-session-raw-nttnwy8p.js → read-session-raw-75dcxtdy.js} +2 -2
  48. package/dist/{render-yn7fgmg7.js → render-71rpjt3g.js} +17 -17
  49. package/dist/{safe-notification-target-jk69jxwp.js → safe-notification-target-8s1xg0q9.js} +2 -2
  50. package/dist/{search-archive-pcf0za02.js → search-archive-w12r0c45.js} +10 -10
  51. package/dist/{search-yvcam5gm.js → search-m61nenns.js} +20 -20
  52. package/dist/{storage-tags-s0zqj0m0.js → storage-tags-ahhwtfdq.js} +4 -4
  53. package/dist/subagent-entry.js +26 -26
  54. package/dist/tag-snapshot-worker-pi.js +11 -11
  55. package/dist/{v2-archive-reader-accb2tjp.js → v2-archive-reader-5n1w78zj.js} +1 -1
  56. package/package.json +1 -1
  57. package/dist/embedding-backfill-er9jc4xf.js +0 -27
@@ -27,16 +27,16 @@ serveWorkerJobs(async (initial, port) => {
27
27
  { Database, registerSqliteDiagnosticSink },
28
28
  { log }
29
29
  ] = await Promise.all([
30
- import("./embedding-backfill-er9jc4xf.js"),
30
+ import("./embedding-backfill-fbhpk2yy.js"),
31
31
  import("./embedding-cache-7rp4gqzr.js"),
32
32
  import("./storage-memory-0ndn65fm.js"),
33
- import("./project-embedding-registry-ysaezfqw.js"),
34
- import("./search-yvcam5gm.js"),
35
- import("./compartment-chunk-embedding-nyjs3dfh.js"),
33
+ import("./project-embedding-registry-hpca84nz.js"),
34
+ import("./search-m61nenns.js"),
35
+ import("./compartment-chunk-embedding-wg7emg3z.js"),
36
36
  import("./embedding-activity-ew6dshfd.js"),
37
37
  import("./harness-9872e0ym.js"),
38
38
  import("./sqlite-v89bj0yy.js"),
39
- import("./logger-2j70hhz4.js")
39
+ import("./logger-hhgpkbx1.js")
40
40
  ]);
41
41
  setHarness(input.harness);
42
42
  registerSqliteDiagnosticSink(log, getHarness);
@@ -11,38 +11,38 @@ import {
11
11
  isWorkerCloseMessage,
12
12
  exitOnWorkerClose
13
13
  } from "./index-x2n261wp.js";
14
- import"./index-000fthre.js";
15
- import"./index-gymgz20n.js";
14
+ import"./index-7y60kyea.js";
15
+ import"./index-yxeg8zaa.js";
16
16
  import"./index-dnp1jjar.js";
17
- import"./index-gwvahsdz.js";
17
+ import"./index-qm139qq2.js";
18
18
  import"./index-8sqebjzk.js";
19
19
  import"./index-wfqysrwq.js";
20
- import"./index-3g9fnq6y.js";
21
- import"./index-bbbp8zs1.js";
20
+ import"./index-szn2tac8.js";
21
+ import"./index-6d0bby9d.js";
22
22
  import {
23
23
  replaceCompartmentChunkEmbeddings2,
24
24
  recordChunkEmbedBackoff2,
25
25
  loadUnembeddedSessionChunkCandidates2,
26
26
  countUnembeddedSessionCompartments2
27
- } from "./index-4sa1rx3h.js";
27
+ } from "./index-ndg15t3x.js";
28
28
  import {
29
29
  recordSessionProjectIdentity,
30
30
  acquireGitSweepLease,
31
31
  renewGitSweepLease,
32
32
  releaseGitSweepLease
33
- } from "./index-mp0gh04g.js";
34
- import"./index-6pk49fc3.js";
33
+ } from "./index-zxm7ckvc.js";
34
+ import"./index-xx1911hb.js";
35
35
  import {
36
36
  LATEST_SUPPORTED_VERSION,
37
37
  enforceSchemaFence
38
- } from "./index-bbffazv6.js";
38
+ } from "./index-06rdy9h6.js";
39
39
  import"./index-3bb24eb6.js";
40
- import"./index-d107f484.js";
41
- import"./index-yacs388s.js";
40
+ import"./index-zc6fdyx7.js";
41
+ import"./index-jxm4bvm4.js";
42
42
  import"./index-135e8hvg.js";
43
43
  import"./index-n0zjvs3h.js";
44
44
  import"./index-c6wbq66z.js";
45
- import"./index-0wtm7g7f.js";
45
+ import"./index-j0eagxkz.js";
46
46
  import {
47
47
  serveWorkerJobs
48
48
  } from "./index-nypgv96r.js";
@@ -9,11 +9,11 @@ import {
9
9
  certifiedMarkerReferenceFloor2,
10
10
  readMarkerReferenceRows2,
11
11
  readKnownMarkerReferenceRows2
12
- } from "./index-2kmwjq42.js";
12
+ } from "./index-xssjy4z9.js";
13
13
  import"./index-wfqysrwq.js";
14
14
  import"./index-8sqebjzk.js";
15
15
  import"./index-2qtx0q6h.js";
16
- import"./index-gymgz20n.js";
16
+ import"./index-yxeg8zaa.js";
17
17
  import"./index-0h2mkab2.js";
18
18
  import"./index-dnp1jjar.js";
19
19
  import"./index-x2n261wp.js";
@@ -7,7 +7,7 @@ serveWorkerJobs(async (input, port) => {
7
7
  port.postMessage({ kind: "accepted" });
8
8
  const [{ Database }, { scanMarkerCandidateSnapshot }] = await Promise.all([
9
9
  import("./sqlite-v89bj0yy.js"),
10
- import("./compaction-marker-candidates-17a21jfn.js")
10
+ import("./compaction-marker-candidates-9yhrstyb.js")
11
11
  ]);
12
12
  let db;
13
13
  let reply;
@@ -24,16 +24,16 @@ import {
24
24
  countSessionCompartmentEmbedCoverage2,
25
25
  countSessionCompartmentEmbedCoveragePolite2,
26
26
  countUnembeddedSessionCompartmentsPolite2
27
- } from "./index-4sa1rx3h.js";
28
- import"./index-gwvahsdz.js";
29
- import"./index-bbbp8zs1.js";
30
- import"./index-3g9fnq6y.js";
27
+ } from "./index-ndg15t3x.js";
28
+ import"./index-qm139qq2.js";
29
+ import"./index-6d0bby9d.js";
30
+ import"./index-szn2tac8.js";
31
31
  import"./index-wfqysrwq.js";
32
32
  import"./index-8sqebjzk.js";
33
- import"./index-0wtm7g7f.js";
34
- import"./index-000fthre.js";
33
+ import"./index-j0eagxkz.js";
34
+ import"./index-7y60kyea.js";
35
35
  import"./index-2qtx0q6h.js";
36
- import"./index-gymgz20n.js";
36
+ import"./index-yxeg8zaa.js";
37
37
  import"./index-0h2mkab2.js";
38
38
  import"./index-dnp1jjar.js";
39
39
  import"./index-x2n261wp.js";
@@ -0,0 +1,27 @@
1
+ import {
2
+ ensureMemoryEmbeddings2
3
+ } from "./index-ty2m0s0s.js";
4
+ import"./index-r6dj8rm9.js";
5
+ import"./index-9p40dgkm.js";
6
+ import"./index-hgd00nas.js";
7
+ import"./index-yhzhdp3m.js";
8
+ import"./index-zxm7ckvc.js";
9
+ import"./index-ndg15t3x.js";
10
+ import"./index-38pf5bqw.js";
11
+ import"./index-qm139qq2.js";
12
+ import"./index-aec63gtj.js";
13
+ import"./index-xx1911hb.js";
14
+ import"./index-6d0bby9d.js";
15
+ import"./index-szn2tac8.js";
16
+ import"./index-wfqysrwq.js";
17
+ import"./index-8sqebjzk.js";
18
+ import"./index-j0eagxkz.js";
19
+ import"./index-7y60kyea.js";
20
+ import"./index-2qtx0q6h.js";
21
+ import"./index-yxeg8zaa.js";
22
+ import"./index-0h2mkab2.js";
23
+ import"./index-dnp1jjar.js";
24
+ import"./index-x2n261wp.js";
25
+ export {
26
+ ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
27
+ };
@@ -1,7 +1,7 @@
1
1
  import"./index-0h2mkab2.js";
2
2
  import {
3
3
  log2
4
- } from "./index-gymgz20n.js";
4
+ } from "./index-yxeg8zaa.js";
5
5
  import"./index-dnp1jjar.js";
6
6
  import {
7
7
  inRootAsyncContext2
@@ -3,17 +3,17 @@ import {
3
3
  } from "./index-0h2mkab2.js";
4
4
  import {
5
5
  log2
6
- } from "./index-gymgz20n.js";
6
+ } from "./index-yxeg8zaa.js";
7
7
  import"./index-dnp1jjar.js";
8
- import"./index-gzk7d940.js";
9
- import"./index-gwvahsdz.js";
10
- import"./index-000fthre.js";
8
+ import"./index-aec63gtj.js";
9
+ import"./index-qm139qq2.js";
10
+ import"./index-7y60kyea.js";
11
11
  import"./index-2qtx0q6h.js";
12
12
  import {
13
13
  resolveLocalEmbeddingWorkerRuntime,
14
14
  getLocalEmbeddingNativeMemoryStats,
15
15
  LocalEmbeddingProvider
16
- } from "./index-tsg6swzr.js";
16
+ } from "./index-38pf5bqw.js";
17
17
  import {
18
18
  setStoragePrivatePermissionEnforcement
19
19
  } from "./index-81nthk8j.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-0b5kqg7n.js";
11
11
  import"./index-4knyh1kt.js";
12
12
  import"./index-6x556c2q.js";
13
- import"./index-gymgz20n.js";
13
+ import"./index-yxeg8zaa.js";
14
14
  import"./index-0h2mkab2.js";
15
15
  import"./index-dnp1jjar.js";
16
16
  export {
@@ -8,7 +8,7 @@ import {
8
8
  importPluginModule,
9
9
  writeForwardedLogLine2,
10
10
  log2
11
- } from "./index-gymgz20n.js";
11
+ } from "./index-yxeg8zaa.js";
12
12
  import {
13
13
  inRootAsyncContext2,
14
14
  registerSlowWriteReporter2,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./index-2qtx0q6h.js";
25
25
  import {
26
26
  scheduleAfterBootQuiet
27
- } from "./index-6pk49fc3.js";
27
+ } from "./index-xx1911hb.js";
28
28
  import {
29
29
  configureContextDatabasePragmas2
30
30
  } from "./index-fapenpch.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./index-wfqysrwq.js";
37
37
  import {
38
38
  startMessageFtsRowidMapBackfill2
39
- } from "./index-bbbp8zs1.js";
39
+ } from "./index-6d0bby9d.js";
40
40
  import {
41
41
  LKG_SLOT_CHUNKS_DDL,
42
42
  SESSION_REPLAY_DECISIONS_DDL,
@@ -46,12 +46,12 @@ import {
46
46
  hasPendingMigrations,
47
47
  getMainThreadMigrationBodyCount,
48
48
  runMigrations
49
- } from "./index-d107f484.js";
49
+ } from "./index-zc6fdyx7.js";
50
50
  import {
51
51
  ensureColumn,
52
52
  installV95PerfSchema,
53
53
  installTagIdentityRevisionTrigger
54
- } from "./index-yacs388s.js";
54
+ } from "./index-jxm4bvm4.js";
55
55
  import {
56
56
  resolveOpenCodeDbPath,
57
57
  hasV1MessageTables
@@ -65,7 +65,7 @@ import {
65
65
  } from "./index-nrzkqte4.js";
66
66
  import {
67
67
  logSlowWriteTransaction
68
- } from "./index-0wtm7g7f.js";
68
+ } from "./index-j0eagxkz.js";
69
69
  import {
70
70
  shouldEnforcePrivateStoragePermissions,
71
71
  ensureStorageDirectorySync,
@@ -1336,6 +1336,7 @@ var databases = new Map;
1336
1336
  var pendingAsyncOpens = new Map;
1337
1337
  var pendingDatabaseCloses = new Set;
1338
1338
  var startupBackfills = new WeakMap;
1339
+ var scheduleStartupMaintenanceOnOpen = true;
1339
1340
  var persistenceByDatabase = new WeakMap;
1340
1341
  var persistenceErrorByDatabase = new WeakMap;
1341
1342
  var pathByDatabase = new WeakMap;
@@ -1768,7 +1769,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1768
1769
  return null;
1769
1770
  }
1770
1771
  healWedgedChannel2Claims(db);
1771
- if (!explicitDbPath) {
1772
+ if (!explicitDbPath && scheduleStartupMaintenanceOnOpen) {
1772
1773
  const readsOpenCodeStore = harnessOwnsOpenCodeStore2();
1773
1774
  const state = { controller: new AbortController };
1774
1775
  startupBackfills.set(db, state);
@@ -1788,8 +1789,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1788
1789
  state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
1789
1790
  if (signal.aborted || !readsOpenCodeStore)
1790
1791
  return;
1791
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-6nt4dzkk.js"));
1792
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-x45573rs.js"));
1792
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-dmpabgvh.js"));
1793
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-krre2qnb.js"));
1793
1794
  if (signal.aborted)
1794
1795
  return;
1795
1796
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
@@ -1809,6 +1810,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1809
1810
  log2(`[magic-context] message-index backfill failed (will resume next startup): ${getErrorMessage(error)}`);
1810
1811
  });
1811
1812
  }));
1813
+ state.run = runBackfills;
1812
1814
  state.timer = scheduleAfterBootQuiet(runBackfills);
1813
1815
  }
1814
1816
  setDatabase(db);
@@ -17,7 +17,7 @@ import {
17
17
  getMagicContextStorageDir,
18
18
  log2,
19
19
  sessionLog2
20
- } from "./index-gymgz20n.js";
20
+ } from "./index-yxeg8zaa.js";
21
21
  import {
22
22
  piModelRefToCanonical,
23
23
  modelRefLookupOrder,
@@ -30,7 +30,7 @@ import {
30
30
  PER_HARNESS_MODEL_KEYS,
31
31
  ConfigProfilesSchema,
32
32
  MagicContextConfigSchema
33
- } from "./index-gzk7d940.js";
33
+ } from "./index-aec63gtj.js";
34
34
  import {
35
35
  V2_MEMORY_CATEGORIES,
36
36
  CATEGORY_PRIORITY,
@@ -38,25 +38,25 @@ import {
38
38
  } from "./index-135e8hvg.js";
39
39
  import {
40
40
  estimateTokens
41
- } from "./index-000fthre.js";
41
+ } from "./index-7y60kyea.js";
42
42
  import {
43
43
  SubcClient,
44
44
  connectionFileExists,
45
45
  SYNAPSE_DEFAULT_MODEL,
46
46
  toSynapseLaneDescriptor,
47
47
  SynapseEmbeddingProvider
48
- } from "./index-gwvahsdz.js";
48
+ } from "./index-qm139qq2.js";
49
49
  import {
50
50
  inRootAsyncContext2,
51
51
  Database2
52
52
  } from "./index-2qtx0q6h.js";
53
53
  import {
54
54
  noteRawSessionSummaryRowWritten2
55
- } from "./index-3g9fnq6y.js";
55
+ } from "./index-szn2tac8.js";
56
56
  import {
57
57
  piHarnessKindFromExecutable,
58
58
  getErrorMessage
59
- } from "./index-bbffazv6.js";
59
+ } from "./index-06rdy9h6.js";
60
60
  import {
61
61
  getOrCreateSessionMeta,
62
62
  updateSessionMeta,
@@ -70,10 +70,10 @@ import {
70
70
  renderMessageByOrdinal2,
71
71
  renderVerboseRange2,
72
72
  renderItemByTag2
73
- } from "./index-pja6ggeq.js";
73
+ } from "./index-jy9fq8gp.js";
74
74
  import {
75
75
  getLastIndexedOrdinal
76
- } from "./index-zybqfwfv.js";
76
+ } from "./index-ywvhr524.js";
77
77
  import {
78
78
  setNoteLastReadAt,
79
79
  getPersistedCompactionMarkerState,
@@ -83,10 +83,10 @@ import {
83
83
  hasRawMessageProvider2,
84
84
  setRawMessageProvider2,
85
85
  readSessionChunk2
86
- } from "./index-vnygvrad.js";
86
+ } from "./index-4j5442b0.js";
87
87
  import {
88
88
  stableStringify
89
- } from "./index-yacs388s.js";
89
+ } from "./index-jxm4bvm4.js";
90
90
  import {
91
91
  computeCueContentHash,
92
92
  getMuralCueState,
@@ -109,7 +109,7 @@ import {
109
109
  } from "./index-yhzhdp3m.js";
110
110
  import {
111
111
  preflightLocalEmbeddingPooling
112
- } from "./index-tsg6swzr.js";
112
+ } from "./index-38pf5bqw.js";
113
113
  import {
114
114
  withQueryEmbeddingDeadline,
115
115
  markProjectLoadUntrusted2,
@@ -121,20 +121,20 @@ import {
121
121
  unregisterProjectEmbedding2,
122
122
  getProjectEmbeddingSnapshot2,
123
123
  embedTextForProject2
124
- } from "./index-rcenqffj.js";
124
+ } from "./index-r6dj8rm9.js";
125
125
  import {
126
126
  directoryHasGitMetadata,
127
127
  resolveProjectIdentityForSession,
128
128
  normalizeStoredProjectPath,
129
129
  storedPathBelongsToIdentity
130
- } from "./index-6pk49fc3.js";
130
+ } from "./index-xx1911hb.js";
131
131
  import {
132
132
  createUnifiedSearchDiagnostics2,
133
133
  parseIdShapedQuery2,
134
134
  resolveMemoriesByIdsForSearch2,
135
135
  unifiedSearch2,
136
136
  formatSearchResults2
137
- } from "./index-806brt0p.js";
137
+ } from "./index-4ss8c8ky.js";
138
138
  import {
139
139
  TODO_STATUSES,
140
140
  TODO_PRIORITIES,
@@ -145,7 +145,7 @@ import {
145
145
  getInertWhitespaceAssistantTagsByNumbers2,
146
146
  getTagNumberByMessageId2,
147
147
  getTagsBySession2
148
- } from "./index-bhj8kymt.js";
148
+ } from "./index-qcsjj9m0.js";
149
149
  import {
150
150
  resolveOpenCodeDbPath,
151
151
  assertOpenCodeStoreGeneration
@@ -159,7 +159,7 @@ import {
159
159
  expandWorkspaceIdentitySetWithAliases,
160
160
  resolveStoredPathWorkspaceIdentity,
161
161
  storedPathBelongsToWorkspace
162
- } from "./index-d107f484.js";
162
+ } from "./index-zc6fdyx7.js";
163
163
  import {
164
164
  getNoteByIdInScope,
165
165
  getNotes,
@@ -170,7 +170,7 @@ import {
170
170
  updateNote,
171
171
  dismissNotes,
172
172
  dismissNote
173
- } from "./index-w26zvs1q.js";
173
+ } from "./index-46wk0td0.js";
174
174
  import {
175
175
  isMarkerCandidateBasisCurrent2,
176
176
  invalidateMarkerCandidateBasis2,
@@ -181,10 +181,10 @@ import {
181
181
  certifiedMarkerReferenceFloor2,
182
182
  readMarkerReferenceRows2,
183
183
  readKnownMarkerReferenceRows2
184
- } from "./index-2kmwjq42.js";
184
+ } from "./index-xssjy4z9.js";
185
185
  import {
186
186
  renderSearchArchive2
187
- } from "./index-6748dkmx.js";
187
+ } from "./index-ch3rvpjg.js";
188
188
  import {
189
189
  computeNormalizedHash
190
190
  } from "./index-9x1f96r8.js";
@@ -193,7 +193,7 @@ import {
193
193
  } from "./index-nrzkqte4.js";
194
194
  import {
195
195
  logSlowWriteTransaction
196
- } from "./index-0wtm7g7f.js";
196
+ } from "./index-j0eagxkz.js";
197
197
  import {
198
198
  ensureStorageDirectorySync,
199
199
  writeStorageFileAtomicSync
@@ -1732,7 +1732,8 @@ var EMBEDDING_USER_ONLY_FIELDS = [
1732
1732
  "provider",
1733
1733
  "fallback_provider",
1734
1734
  "query_instruction",
1735
- "document_prefix"
1735
+ "document_prefix",
1736
+ "dimensions"
1736
1737
  ];
1737
1738
  var PERCENTAGE_THRESHOLD_REASON = "security: a repository may only raise compaction thresholds above the user's effective value; it cannot force earlier historian work or cloned-repo cost escalation.";
1738
1739
  var TOKEN_THRESHOLD_REASON = "security: a repository may only raise execute_threshold_tokens above the user's trusted token threshold; it cannot force earlier historian work or cloned-repo cost escalation.";
@@ -6554,6 +6555,7 @@ var EMBEDDING_AFFECTING_KEYS = new Set([
6554
6555
  "embedding.provider",
6555
6556
  "embedding.input_type",
6556
6557
  "embedding.truncate",
6558
+ "embedding.dimensions",
6557
6559
  "embedding.max_input_tokens",
6558
6560
  "embedding.query_input_type",
6559
6561
  "embedding.query_instruction",
@@ -6672,6 +6674,7 @@ function fallbackConfig(config, provider) {
6672
6674
  const queryInstruction = typeof raw.query_instruction === "string" || raw.query_instruction === false ? raw.query_instruction : undefined;
6673
6675
  const documentPrefix = typeof raw.document_prefix === "string" ? raw.document_prefix : undefined;
6674
6676
  const truncate = typeof raw.truncate === "string" ? raw.truncate.trim() : "";
6677
+ const dimensions = typeof raw.dimensions === "number" ? raw.dimensions : undefined;
6675
6678
  const maxInputTokens = typeof raw.max_input_tokens === "number" ? raw.max_input_tokens : undefined;
6676
6679
  if (provider === "off")
6677
6680
  return { provider: "off" };
@@ -6686,6 +6689,7 @@ function fallbackConfig(config, provider) {
6686
6689
  ...queryInstruction !== undefined ? { query_instruction: queryInstruction } : {},
6687
6690
  ...documentPrefix !== undefined ? { document_prefix: documentPrefix } : {},
6688
6691
  ...truncate ? { truncate } : {},
6692
+ ...dimensions !== undefined ? { dimensions } : {},
6689
6693
  ...maxInputTokens !== undefined ? { max_input_tokens: maxInputTokens } : {}
6690
6694
  };
6691
6695
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DEFAULT_LOCAL_EMBEDDING_MODEL
3
- } from "./index-gzk7d940.js";
3
+ } from "./index-aec63gtj.js";
4
4
  import {
5
5
  getSynapseLaneIdentity
6
- } from "./index-gwvahsdz.js";
6
+ } from "./index-qm139qq2.js";
7
7
  import {
8
8
  getHarness2
9
9
  } from "./index-0h2mkab2.js";
@@ -11,7 +11,7 @@ import {
11
11
  getMagicContextStorageDir,
12
12
  importPluginModule,
13
13
  log2
14
- } from "./index-gymgz20n.js";
14
+ } from "./index-yxeg8zaa.js";
15
15
  import {
16
16
  inRootAsyncContext2
17
17
  } from "./index-2qtx0q6h.js";
@@ -543,6 +543,7 @@ function getEmbeddingProviderIdentity(config) {
543
543
  throw new Error("Unknown embedding provider");
544
544
  }
545
545
  const truncate = config.provider === "openai-compatible" ? config.truncate?.trim() : undefined;
546
+ const dimensions = config.provider === "openai-compatible" ? config.dimensions : undefined;
546
547
  const documentPrefix = config.provider === "openai-compatible" ? resolveEmbeddingTextPrefixes(config.model, config.query_instruction, config.document_prefix).documentPrefix : "";
547
548
  const localDtype = config.provider === "local" && config.local_dtype && config.local_dtype !== "fp32" ? config.local_dtype : undefined;
548
549
  const localPooling = config.provider === "local" ? getCachedLocalEmbeddingPooling(config.model?.trim() || DEFAULT_LOCAL_EMBEDDING_MODEL) : null;
@@ -554,7 +555,8 @@ function getEmbeddingProviderIdentity(config) {
554
555
  apiKeyPresent: Boolean(config.api_key?.trim()),
555
556
  inputType: config.input_type?.trim() || "",
556
557
  ...documentPrefix ? { documentPrefix } : {},
557
- ...truncate ? { truncate } : {}
558
+ ...truncate ? { truncate } : {},
559
+ ...dimensions ? { dimensions } : {}
558
560
  } : {
559
561
  provider: "local",
560
562
  model: config.model?.trim() || DEFAULT_LOCAL_EMBEDDING_MODEL,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./index-2qtx0q6h.js";
7
7
  import {
8
8
  managedAuthorityNoteRow
9
- } from "./index-d107f484.js";
9
+ } from "./index-zc6fdyx7.js";
10
10
 
11
11
  // ../plugin/src/features/magic-context/storage-notes.ts
12
12
  var NOTE_TYPES = new Set(["session", "smart"]);
@@ -4,7 +4,7 @@ import {
4
4
  renderToolTemplate,
5
5
  resolveModelConfigValue,
6
6
  deriveDefaultProtectedTokens
7
- } from "./index-gzk7d940.js";
7
+ } from "./index-aec63gtj.js";
8
8
  import {
9
9
  getHarness2,
10
10
  harnessOwnsOpenCodeStore2
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  log2,
14
14
  sessionLog2
15
- } from "./index-gymgz20n.js";
15
+ } from "./index-yxeg8zaa.js";
16
16
  import {
17
17
  resolveDecisionCalibration,
18
18
  calibrationForModelKey,
@@ -23,7 +23,7 @@ import {
23
23
  TAG_SELECT_COLUMNS2,
24
24
  getCandidateToolOwners2,
25
25
  pickNearestPriorOwner2
26
- } from "./index-bhj8kymt.js";
26
+ } from "./index-qcsjj9m0.js";
27
27
  import {
28
28
  OMO_INTERNAL_INITIATOR_MARKER,
29
29
  isSystemDirective,
@@ -39,14 +39,14 @@ import {
39
39
  formatBlock,
40
40
  compactTextForSummary,
41
41
  mergeCommitHashes
42
- } from "./index-000fthre.js";
42
+ } from "./index-7y60kyea.js";
43
43
  import {
44
44
  Database2,
45
45
  prepareCachedStatement2
46
46
  } from "./index-2qtx0q6h.js";
47
47
  import {
48
48
  stableStringify
49
- } from "./index-yacs388s.js";
49
+ } from "./index-jxm4bvm4.js";
50
50
  import {
51
51
  resolveOpenCodeDbPath,
52
52
  assertOpenCodeStoreGeneration,
@@ -71,7 +71,7 @@ import {
71
71
  hasRawSessionMessageByIdFromDb2,
72
72
  readRawSeedTailFromDb2,
73
73
  readRawSessionBoundaryEndpointsFromDb2
74
- } from "./index-3g9fnq6y.js";
74
+ } from "./index-szn2tac8.js";
75
75
  import {
76
76
  markHostUnservedRow,
77
77
  isHostUnservedRow
@@ -81,7 +81,7 @@ import {
81
81
  } from "./index-nrzkqte4.js";
82
82
  import {
83
83
  logSlowWriteTransaction
84
- } from "./index-0wtm7g7f.js";
84
+ } from "./index-j0eagxkz.js";
85
85
 
86
86
  // ../plugin/src/features/magic-context/overflow-detection.ts
87
87
  var OVERFLOW_PATTERNS = [
@@ -12,10 +12,10 @@ import {
12
12
  getDataDir,
13
13
  log2,
14
14
  sessionLog2
15
- } from "./index-gymgz20n.js";
15
+ } from "./index-yxeg8zaa.js";
16
16
  import {
17
17
  SubcClient
18
- } from "./index-gwvahsdz.js";
18
+ } from "./index-qm139qq2.js";
19
19
  import {
20
20
  inRootAsyncContext2,
21
21
  getSqliteDatabasePath2,
@@ -24,13 +24,13 @@ import {
24
24
  } from "./index-2qtx0q6h.js";
25
25
  import {
26
26
  runSessionWarmupWorker
27
- } from "./index-3g9fnq6y.js";
27
+ } from "./index-szn2tac8.js";
28
28
  import {
29
29
  buildCanonicalChunkTextFromFts2,
30
30
  loadCompartmentChunkEmbeddingsForSearch2,
31
31
  peekCompartmentChunkSearchPool2,
32
32
  warmCompartmentChunkSearchPool2
33
- } from "./index-4sa1rx3h.js";
33
+ } from "./index-ndg15t3x.js";
34
34
  import {
35
35
  saveCommitEmbedding,
36
36
  loadProjectCommitEmbeddings,
@@ -47,13 +47,13 @@ import {
47
47
  getProjectEmbeddingSnapshot2,
48
48
  embedTextForProject2,
49
49
  embedItemsForProject2
50
- } from "./index-rcenqffj.js";
50
+ } from "./index-r6dj8rm9.js";
51
51
  import {
52
52
  recordEmbeddingMeasurement
53
53
  } from "./index-hgd00nas.js";
54
54
  import {
55
55
  scheduleAfterBootQuiet
56
- } from "./index-6pk49fc3.js";
56
+ } from "./index-xx1911hb.js";
57
57
  import {
58
58
  saveEmbeddingIfHashMatches,
59
59
  getProjectEmbeddings2
@@ -63,7 +63,7 @@ import {
63
63
  isEmbeddingEnabled,
64
64
  embedText,
65
65
  ensureMemoryEmbeddings2
66
- } from "./index-zwbgxt01.js";
66
+ } from "./index-ty2m0s0s.js";
67
67
  import {
68
68
  getMemorySelectColumns2,
69
69
  isMemoryRow2,
@@ -91,7 +91,7 @@ import {
91
91
  clearIndexedMessages,
92
92
  indexSingleMessage,
93
93
  indexMessagesAfterOrdinal
94
- } from "./index-zybqfwfv.js";
94
+ } from "./index-ywvhr524.js";
95
95
  import {
96
96
  MESSAGE_FTS_SESSION_FILTER_SQL,
97
97
  withMessageFtsSessionFilter
@@ -102,11 +102,11 @@ import {
102
102
  expandWorkspaceIdentitySetWithAliases,
103
103
  resolveStoredPathWorkspaceIdentity,
104
104
  sourceNameForMemory
105
- } from "./index-d107f484.js";
105
+ } from "./index-zc6fdyx7.js";
106
106
  import {
107
107
  getNotes,
108
108
  getActivePrimers
109
- } from "./index-w26zvs1q.js";
109
+ } from "./index-46wk0td0.js";
110
110
  import {
111
111
  computeNormalizedHash
112
112
  } from "./index-9x1f96r8.js";
@@ -5,10 +5,10 @@ import {
5
5
  } from "./index-2qtx0q6h.js";
6
6
  import {
7
7
  runSessionWarmupWorker
8
- } from "./index-3g9fnq6y.js";
8
+ } from "./index-szn2tac8.js";
9
9
  import {
10
10
  logSlowWriteTransaction
11
- } from "./index-0wtm7g7f.js";
11
+ } from "./index-j0eagxkz.js";
12
12
 
13
13
  // ../plugin/src/features/magic-context/message-fts-rowid-map.ts
14
14
  import { createHash } from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log2
3
- } from "./index-gymgz20n.js";
3
+ } from "./index-yxeg8zaa.js";
4
4
 
5
5
  // ../plugin/src/hooks/magic-context/read-session-formatting.ts
6
6
  import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";