@cortexkit/pi-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 (35) hide show
  1. package/dist/auto-search-worker.js +5 -5
  2. package/dist/{compaction-marker-candidates-cd17s4ys.js → compaction-marker-candidates-9w5g66at.js} +2 -2
  3. package/dist/compaction-marker-candidates-worker.js +2 -2
  4. package/dist/{embedding-backfill-r7n7dj50.js → embedding-backfill-809pgwvb.js} +6 -6
  5. package/dist/{index-gxk9hcd1.js → index-0p9gemc6.js} +13 -13
  6. package/dist/{index-a1jmtv6r.js → index-57mvvbbh.js} +6 -6
  7. package/dist/{index-2apf1afe.js → index-5rc9kvrk.js} +1 -1
  8. package/dist/{index-9ygacw4e.js → index-5z1h0qsa.js} +4 -4
  9. package/dist/{index-3cgbv47m.js → index-8vbh4tzw.js} +2 -2
  10. package/dist/{index-mzn6t38b.js → index-9mn34fnx.js} +2 -2
  11. package/dist/{index-27jh224p.js → index-cd6bjrj4.js} +1 -1
  12. package/dist/{index-9n88gmpf.js → index-fcacf11g.js} +1 -1
  13. package/dist/{index-g1csz24n.js → index-fx0r5485.js} +3 -3
  14. package/dist/{index-57njcjax.js → index-hfnjfk4d.js} +7 -7
  15. package/dist/{index-590pwxvr.js → index-j7pa3t4s.js} +3 -3
  16. package/dist/{index-g7984a4r.js → index-kamhcj15.js} +1 -1
  17. package/dist/{index-xjqheg7a.js → index-kxxdyjfs.js} +1 -1
  18. package/dist/{index-xvm5cdyn.js → index-p4matwj0.js} +1 -1
  19. package/dist/{index-g3600tpw.js → index-swab4319.js} +1 -1
  20. package/dist/{index-4gfq5t09.js → index-wf7mwdnf.js} +1 -1
  21. package/dist/index.js +17 -17
  22. package/dist/{message-index-bounded-0qa5eacp.js → message-index-bounded-8a94k72f.js} +7 -7
  23. package/dist/{message-index-2damq13v.js → message-index-m6snq0fh.js} +7 -7
  24. package/dist/{message-time-backfill-05ppypkz.js → message-time-backfill-xqwg3hg1.js} +1 -1
  25. package/dist/migration-worker.js +5 -5
  26. package/dist/{project-embedding-registry-fzc4eb29.js → project-embedding-registry-3x6nmszv.js} +5 -5
  27. package/dist/raw-ordinal-warmup-worker.js +6 -6
  28. package/dist/{read-session-chunk-q05ztqg5.js → read-session-chunk-49e1ayzs.js} +4 -4
  29. package/dist/{read-session-raw-527m0yxx.js → read-session-raw-545mgtjz.js} +2 -2
  30. package/dist/{search-5m0jjf29.js → search-q76dp7w9.js} +13 -13
  31. package/dist/{sqlite-3yye76ht.js → sqlite-wp7wddw3.js} +1 -1
  32. package/dist/{storage-memory-1z20y55x.js → storage-memory-7417pbm9.js} +2 -2
  33. package/dist/{storage-tags-1b2w0wst.js → storage-tags-cvjsrbqh.js} +2 -2
  34. package/dist/subagent-entry.js +16 -16
  35. package/package.json +1 -1
@@ -17,14 +17,14 @@ var [
17
17
  { setHarness },
18
18
  { Database }
19
19
  ] = await Promise.all([
20
- import("./embedding-backfill-r7n7dj50.js"),
20
+ import("./embedding-backfill-809pgwvb.js"),
21
21
  import("./embedding-cache-7rp4gqzr.js"),
22
- import("./storage-memory-1z20y55x.js"),
23
- import("./project-embedding-registry-fzc4eb29.js"),
24
- import("./search-5m0jjf29.js"),
22
+ import("./storage-memory-7417pbm9.js"),
23
+ import("./project-embedding-registry-3x6nmszv.js"),
24
+ import("./search-q76dp7w9.js"),
25
25
  import("./embedding-activity-ew6dshfd.js"),
26
26
  import("./harness-9872e0ym.js"),
27
- import("./sqlite-3yye76ht.js")
27
+ import("./sqlite-wp7wddw3.js")
28
28
  ]);
29
29
  setHarness(input.harness);
30
30
  setEmbeddingSessionBusy(input.sessionId, input.embeddingHostBusy === true);
@@ -4,9 +4,9 @@ import {
4
4
  readMarkerCandidateBasis2,
5
5
  prepareMarkerCandidateBasis2,
6
6
  scanMarkerCandidateSnapshot2
7
- } from "./index-g3600tpw.js";
7
+ } from "./index-swab4319.js";
8
8
  import"./index-399p688g.js";
9
- import"./index-3cgbv47m.js";
9
+ import"./index-8vbh4tzw.js";
10
10
  import"./index-x3dcnxh0.js";
11
11
  import"./index-0h2mkab2.js";
12
12
  export {
@@ -5,8 +5,8 @@ if (!port)
5
5
  throw new Error("marker candidate worker requires a parent port");
6
6
  port.postMessage({ kind: "accepted" });
7
7
  var [{ Database }, { scanMarkerCandidateSnapshot }] = await Promise.all([
8
- import("./sqlite-3yye76ht.js"),
9
- import("./compaction-marker-candidates-cd17s4ys.js")
8
+ import("./sqlite-wp7wddw3.js"),
9
+ import("./compaction-marker-candidates-9w5g66at.js")
10
10
  ]);
11
11
  var input = workerData;
12
12
  var db;
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ensureMemoryEmbeddings2
3
- } from "./index-xvm5cdyn.js";
4
- import"./index-g1csz24n.js";
3
+ } from "./index-p4matwj0.js";
4
+ import"./index-fx0r5485.js";
5
5
  import"./index-9p40dgkm.js";
6
- import"./index-27jh224p.js";
6
+ import"./index-cd6bjrj4.js";
7
7
  import"./index-yhzhdp3m.js";
8
8
  import"./index-gc2749rx.js";
9
9
  import"./index-21v1kfs7.js";
10
10
  import"./index-cyrnv16r.js";
11
- import"./index-g7984a4r.js";
12
- import"./index-4gfq5t09.js";
11
+ import"./index-kamhcj15.js";
12
+ import"./index-wf7mwdnf.js";
13
13
  import"./index-0vrkp1jq.js";
14
- import"./index-3cgbv47m.js";
14
+ import"./index-8vbh4tzw.js";
15
15
  import"./index-r56xgha8.js";
16
16
  import"./index-x3dcnxh0.js";
17
17
  import"./index-0h2mkab2.js";
@@ -51,7 +51,7 @@ import {
51
51
  visitRawSessionMessages2,
52
52
  readRawSessionMessageById2,
53
53
  readSessionChunk2
54
- } from "./index-590pwxvr.js";
54
+ } from "./index-j7pa3t4s.js";
55
55
  import {
56
56
  isRecord,
57
57
  providerVisibleMessage,
@@ -65,7 +65,7 @@ import {
65
65
  getTagNumberByMessageId2,
66
66
  getTagsBySession2,
67
67
  getTagById2
68
- } from "./index-9n88gmpf.js";
68
+ } from "./index-fcacf11g.js";
69
69
  import {
70
70
  estimateTokens
71
71
  } from "./index-r56xgha8.js";
@@ -73,7 +73,7 @@ import {
73
73
  Database2,
74
74
  withSqliteBackgroundWriter2,
75
75
  withoutSqliteTransformPass2
76
- } from "./index-3cgbv47m.js";
76
+ } from "./index-8vbh4tzw.js";
77
77
  import {
78
78
  stableStringify,
79
79
  closeQuietly,
@@ -85,7 +85,7 @@ import {
85
85
  } from "./index-8976mezv.js";
86
86
  import {
87
87
  noteRawSessionSummaryRowWritten2
88
- } from "./index-2apf1afe.js";
88
+ } from "./index-5rc9kvrk.js";
89
89
  import {
90
90
  piHarnessKindFromExecutable,
91
91
  isPidAlive
@@ -97,7 +97,7 @@ import {
97
97
  clearLkgRecoveryFence,
98
98
  deleteSessionScopedRows,
99
99
  getLastIndexedOrdinal2
100
- } from "./index-9ygacw4e.js";
100
+ } from "./index-5z1h0qsa.js";
101
101
  import {
102
102
  SubcClient,
103
103
  connectionFileExists,
@@ -107,10 +107,10 @@ import {
107
107
  } from "./index-21v1kfs7.js";
108
108
  import {
109
109
  sameProjectDirectory
110
- } from "./index-4gfq5t09.js";
110
+ } from "./index-wf7mwdnf.js";
111
111
  import {
112
112
  getErrorMessage
113
- } from "./index-a1jmtv6r.js";
113
+ } from "./index-57mvvbbh.js";
114
114
  import {
115
115
  V2_MEMORY_CATEGORIES,
116
116
  CATEGORY_PRIORITY,
@@ -124,13 +124,13 @@ import {
124
124
  expandWorkspaceIdentitySetWithAliases,
125
125
  resolveStoredPathWorkspaceIdentity,
126
126
  storedPathBelongsToWorkspace
127
- } from "./index-mzn6t38b.js";
127
+ } from "./index-9mn34fnx.js";
128
128
  import {
129
129
  directoryHasGitMetadata,
130
130
  resolveProjectIdentityForSession,
131
131
  normalizeStoredProjectPath,
132
132
  storedPathBelongsToIdentity
133
- } from "./index-g7984a4r.js";
133
+ } from "./index-kamhcj15.js";
134
134
  import {
135
135
  drainBackgroundBatches,
136
136
  markProjectLoadUntrusted2,
@@ -142,7 +142,7 @@ import {
142
142
  unregisterProjectEmbedding2,
143
143
  getProjectEmbeddingSnapshot2,
144
144
  embedTextForProject2
145
- } from "./index-g1csz24n.js";
145
+ } from "./index-fx0r5485.js";
146
146
  import {
147
147
  getNoteByIdInScope,
148
148
  getNotes,
@@ -158,7 +158,7 @@ import {
158
158
  resolveMemoriesByIdsForSearch2,
159
159
  unifiedSearch2,
160
160
  formatSearchResults2
161
- } from "./index-57njcjax.js";
161
+ } from "./index-hfnjfk4d.js";
162
162
  import {
163
163
  computeCueContentHash,
164
164
  getMuralCueState,
@@ -174,7 +174,7 @@ import {
174
174
  supersededMemory2,
175
175
  mergeMemoryStats2,
176
176
  archiveMemory2
177
- } from "./index-xjqheg7a.js";
177
+ } from "./index-kxxdyjfs.js";
178
178
  import {
179
179
  saveEmbedding,
180
180
  invalidateMemory2
@@ -183,7 +183,7 @@ import {
183
183
  isMarkerCandidateBasisCurrent2,
184
184
  invalidateMarkerCandidateBasis2,
185
185
  readMarkerCandidateBasis2
186
- } from "./index-g3600tpw.js";
186
+ } from "./index-swab4319.js";
187
187
  import {
188
188
  computeNormalizedHash
189
189
  } from "./index-9x1f96r8.js";
@@ -15,7 +15,7 @@ import {
15
15
  withoutSqliteTransformPass2,
16
16
  isTransientSqliteError2,
17
17
  withPrivilegedWriter2
18
- } from "./index-3cgbv47m.js";
18
+ } from "./index-8vbh4tzw.js";
19
19
  import {
20
20
  harnessOwnsOpenCodeStore2
21
21
  } from "./index-0h2mkab2.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./index-fapenpch.js";
36
36
  import {
37
37
  startMessageFtsRowidMapBackfill
38
- } from "./index-4gfq5t09.js";
38
+ } from "./index-wf7mwdnf.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 "./index-mzn6t38b.js";
48
+ } from "./index-9mn34fnx.js";
49
49
  import {
50
50
  closeQuietly,
51
51
  ensureColumn,
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  bootQuietRemainingMs,
63
63
  scheduleAfterBootQuiet
64
- } from "./index-g7984a4r.js";
64
+ } from "./index-kamhcj15.js";
65
65
  import {
66
66
  logSlowWriteTransaction
67
67
  } from "./index-0vrkp1jq.js";
@@ -1287,8 +1287,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
1287
1287
  startMessageFtsRowidMapBackfill(db).then(async () => {
1288
1288
  if (!readsOpenCodeStore)
1289
1289
  return;
1290
- const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-q05ztqg5.js"));
1291
- const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-05ppypkz.js"));
1290
+ const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-49e1ayzs.js"));
1291
+ const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-xqwg3hg1.js"));
1292
1292
  await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
1293
1293
  readPage: readRawSessionMessagePage
1294
1294
  }));
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getSqliteDatabasePath2,
3
3
  releaseIndexOwner2
4
- } from "./index-3cgbv47m.js";
4
+ } from "./index-8vbh4tzw.js";
5
5
  import {
6
6
  registerExitAbort
7
7
  } from "./index-399p688g.js";
@@ -16,16 +16,16 @@ import {
16
16
  import {
17
17
  withSqliteBackgroundWriter2,
18
18
  withoutSqliteTransformPass2
19
- } from "./index-3cgbv47m.js";
19
+ } from "./index-8vbh4tzw.js";
20
20
  import {
21
21
  recordMessageFtsRowid,
22
22
  recordIndexedMessageTime,
23
23
  messageFtsOrdinalRangeIsMapped,
24
24
  deleteUnmappedMessageFtsRows
25
- } from "./index-4gfq5t09.js";
25
+ } from "./index-wf7mwdnf.js";
26
26
  import {
27
27
  deleteChunkEmbedBackoffForSession
28
- } from "./index-27jh224p.js";
28
+ } from "./index-cd6bjrj4.js";
29
29
  import {
30
30
  closeQuietly,
31
31
  TAG_TOMBSTONE_OWNER_PREFIX,
@@ -37,7 +37,7 @@ import {
37
37
  } from "./index-mcgehvgw.js";
38
38
  import {
39
39
  cleanUserText2
40
- } from "./index-590pwxvr.js";
40
+ } from "./index-j7pa3t4s.js";
41
41
  import {
42
42
  logSlowWriteTransaction
43
43
  } from "./index-0vrkp1jq.js";
@@ -495,7 +495,7 @@ class SqliteAcquisitionBusyError extends Error {
495
495
  }
496
496
  }
497
497
  var SHORT_BUSY_TIMEOUT_MS = 25;
498
- var FOREGROUND_IN_PASS_BUSY_TIMEOUT_MS = 250;
498
+ var FOREGROUND_IN_PASS_BUSY_TIMEOUT_MS = 2000;
499
499
  var FOREGROUND_ACQUISITION_BUDGET_MS = 16500;
500
500
  var SLOW_WRITER_LOG_MS = 250;
501
501
  var WRITER_TRANSACTION_END = /^\s*(?:COMMIT|END|ROLLBACK)(?:\s+TRANSACTION)?\s*;?\s*$/i;
@@ -511,7 +511,7 @@ function withAutocommitTimeout(db, operation) {
511
511
  if (isInTransaction(db) || !lease && !backgroundWriterScope.getStore())
512
512
  return operation();
513
513
  const previous = pragmaNumber(db, "busy_timeout");
514
- db.exec(`PRAGMA busy_timeout=${lease ? Math.floor(lease.remainingWaitMs) : SHORT_BUSY_TIMEOUT_MS}`);
514
+ db.exec(`PRAGMA busy_timeout=${lease ? Math.floor(Math.min(lease.remainingWaitMs, lease.guard?.remainingMs() ?? Infinity)) : SHORT_BUSY_TIMEOUT_MS}`);
515
515
  const started = performance.now();
516
516
  try {
517
517
  return operation();
@@ -16,11 +16,11 @@ import {
16
16
  } from "./index-8976mezv.js";
17
17
  import {
18
18
  Database2
19
- } from "./index-3cgbv47m.js";
19
+ } from "./index-8vbh4tzw.js";
20
20
  import {
21
21
  normalizeStoredProjectPath,
22
22
  storedPathBelongsToIdentity
23
- } from "./index-g7984a4r.js";
23
+ } from "./index-kamhcj15.js";
24
24
  import {
25
25
  logSlowWriteTransaction
26
26
  } from "./index-0vrkp1jq.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./index-21v1kfs7.js";
14
14
  import {
15
15
  messageFtsOrdinalRangeIsMapped
16
- } from "./index-4gfq5t09.js";
16
+ } from "./index-wf7mwdnf.js";
17
17
 
18
18
  // ../plugin/src/features/magic-context/compartment-chunk-embedding.ts
19
19
  import { createHash } from "node:crypto";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  getTagIdentityWriteGeneration2,
12
12
  getSqliteDatabasePath2
13
- } from "./index-3cgbv47m.js";
13
+ } from "./index-8vbh4tzw.js";
14
14
  import {
15
15
  tagOrderConstraintIndex,
16
16
  tagIdentityRevisionKey
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  isUserHomeDirectory,
10
10
  setBootQuietPeriodForTests
11
- } from "./index-g7984a4r.js";
11
+ } from "./index-kamhcj15.js";
12
12
  import {
13
13
  withSqliteBackgroundWriter2,
14
14
  withoutSqliteTransformPass2,
15
15
  isTransientSqliteError2
16
- } from "./index-3cgbv47m.js";
16
+ } from "./index-8vbh4tzw.js";
17
17
  import {
18
18
  estimateTokens
19
19
  } from "./index-r56xgha8.js";
@@ -39,7 +39,7 @@ import {
39
39
  countSessionCompartmentEmbedCoverage,
40
40
  countSessionCompartmentEmbedCoveragePolite,
41
41
  countUnembeddedSessionCompartmentsPolite
42
- } from "./index-27jh224p.js";
42
+ } from "./index-cd6bjrj4.js";
43
43
  import {
44
44
  DEFAULT_LOCAL_EMBEDDING_MODEL
45
45
  } from "./index-cyrnv16r.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./index-0h2mkab2.js";
4
4
  import {
5
5
  isTransientSqliteError2
6
- } from "./index-3cgbv47m.js";
6
+ } from "./index-8vbh4tzw.js";
7
7
  import {
8
8
  PROMOTABLE_CATEGORIES,
9
9
  CATEGORY_DEFAULT_TTL
@@ -21,7 +21,7 @@ import {
21
21
  resolveStoredPathWorkspaceIdentity,
22
22
  sourceNameForMemory,
23
23
  managedAuthorityNoteRow
24
- } from "./index-mzn6t38b.js";
24
+ } from "./index-9mn34fnx.js";
25
25
  import {
26
26
  isKnownAutocommit
27
27
  } from "./index-mcgehvgw.js";
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  buildCanonicalChunkTextFromFts,
33
33
  loadCompartmentChunkEmbeddingsForSearch
34
- } from "./index-27jh224p.js";
34
+ } from "./index-cd6bjrj4.js";
35
35
  import {
36
36
  recordEmbeddingMeasurement,
37
37
  saveCommitEmbedding,
@@ -49,7 +49,7 @@ import {
49
49
  getProjectEmbeddingSnapshot2,
50
50
  embedTextForProject2,
51
51
  embedItemsForProject2
52
- } from "./index-g1csz24n.js";
52
+ } from "./index-fx0r5485.js";
53
53
  import {
54
54
  saveEmbeddingIfHashMatches,
55
55
  getProjectEmbeddings2
@@ -59,7 +59,7 @@ import {
59
59
  isEmbeddingEnabled,
60
60
  embedText,
61
61
  ensureMemoryEmbeddings2
62
- } from "./index-xvm5cdyn.js";
62
+ } from "./index-p4matwj0.js";
63
63
  import {
64
64
  getMemorySelectColumns2,
65
65
  isMemoryRow2,
@@ -73,10 +73,10 @@ import {
73
73
  getMemoryById2,
74
74
  updateMemorySeenCount2,
75
75
  updateMemoryRetrievalCount2
76
- } from "./index-xjqheg7a.js";
76
+ } from "./index-kxxdyjfs.js";
77
77
  import {
78
78
  getIndexedMessageCorpusSize2
79
- } from "./index-9ygacw4e.js";
79
+ } from "./index-5z1h0qsa.js";
80
80
  import {
81
81
  computeNormalizedHash
82
82
  } from "./index-9x1f96r8.js";
@@ -21,7 +21,7 @@ import {
21
21
  TAG_SELECT_COLUMNS2,
22
22
  getCandidateToolOwners2,
23
23
  pickNearestPriorOwner2
24
- } from "./index-9n88gmpf.js";
24
+ } from "./index-fcacf11g.js";
25
25
  import {
26
26
  OMO_INTERNAL_INITIATOR_MARKER,
27
27
  isSystemDirective,
@@ -40,7 +40,7 @@ import {
40
40
  import {
41
41
  Database2,
42
42
  prepareCachedStatement2
43
- } from "./index-3cgbv47m.js";
43
+ } from "./index-8vbh4tzw.js";
44
44
  import {
45
45
  stableStringify,
46
46
  closeQuietly
@@ -69,7 +69,7 @@ import {
69
69
  hasRawSessionMessageByIdFromDb2,
70
70
  readRawSeedTailFromDb2,
71
71
  readRawSessionBoundaryEndpointsFromDb2
72
- } from "./index-2apf1afe.js";
72
+ } from "./index-5rc9kvrk.js";
73
73
  import {
74
74
  logSlowWriteTransaction
75
75
  } from "./index-0vrkp1jq.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-x3dcnxh0.js";
5
5
  import {
6
6
  projectDirectoryKey
7
- } from "./index-4gfq5t09.js";
7
+ } from "./index-wf7mwdnf.js";
8
8
  import {
9
9
  writeStorageFileAtomicSync
10
10
  } from "./index-81nthk8j.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withPrivilegedWriter2
3
- } from "./index-3cgbv47m.js";
3
+ } from "./index-8vbh4tzw.js";
4
4
  import {
5
5
  MEMORY_CATEGORY_ORDER_SQL
6
6
  } from "./index-135e8hvg.js";
@@ -15,7 +15,7 @@ import {
15
15
  OpenAICompatibleEmbeddingProvider,
16
16
  getProjectEmbeddingSnapshot2,
17
17
  embedBatchForProject2
18
- } from "./index-g1csz24n.js";
18
+ } from "./index-fx0r5485.js";
19
19
  import {
20
20
  isEmbeddingHostBusy2
21
21
  } from "./index-9p40dgkm.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./index-x3dcnxh0.js";
7
7
  import {
8
8
  getSqliteDatabasePath2
9
- } from "./index-3cgbv47m.js";
9
+ } from "./index-8vbh4tzw.js";
10
10
 
11
11
  // ../plugin/src/features/magic-context/compaction-marker-candidates.ts
12
12
  import { existsSync, realpathSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withoutSqliteTransformPass2
4
- } from "./index-3cgbv47m.js";
4
+ } from "./index-8vbh4tzw.js";
5
5
  import {
6
6
  logSlowWriteTransaction
7
7
  } from "./index-0vrkp1jq.js";
package/dist/index.js CHANGED
@@ -249,7 +249,7 @@ import {
249
249
  registerTodoStateLifecycle,
250
250
  syncCtxMemoryToolEnabled,
251
251
  registerMagicContextTools
252
- } from "./index-gxk9hcd1.js";
252
+ } from "./index-0p9gemc6.js";
253
253
  import {
254
254
  canonicalModelIdentity,
255
255
  piModelRefToCanonical,
@@ -289,7 +289,7 @@ import {
289
289
  openCurrentDatabase,
290
290
  openDatabaseAsync,
291
291
  closeDatabase
292
- } from "./index-a1jmtv6r.js";
292
+ } from "./index-57mvvbbh.js";
293
293
  import {
294
294
  setHomeProjectPermission,
295
295
  ProjectIdentityError,
@@ -300,7 +300,7 @@ import {
300
300
  resolveProjectIdentityForSession,
301
301
  beginBootQuietPeriod,
302
302
  scheduleAfterBootQuiet
303
- } from "./index-g7984a4r.js";
303
+ } from "./index-kamhcj15.js";
304
304
  import {
305
305
  detectThinkingBindingMismatch,
306
306
  detectLatestTurnThinkingMismatch,
@@ -455,7 +455,7 @@ import {
455
455
  getRawSessionTagKeysThrough2,
456
456
  getLegacyProtectedTailStartOrdinal2,
457
457
  readSessionChunk2
458
- } from "./index-590pwxvr.js";
458
+ } from "./index-j7pa3t4s.js";
459
459
  import {
460
460
  UNKNOWN_FIT_RATIO,
461
461
  hasMeasuredDecisionCalibration,
@@ -538,7 +538,7 @@ import {
538
538
  getToolTagNumberByOwner2,
539
539
  getNullOwnerToolTag2,
540
540
  adoptNullOwnerToolTag2
541
- } from "./index-9n88gmpf.js";
541
+ } from "./index-fcacf11g.js";
542
542
  import {
543
543
  textMentionsRecentCommit,
544
544
  hasMeaningfulUserText2,
@@ -562,7 +562,7 @@ import {
562
562
  isTransientSqliteError2,
563
563
  withAsyncPrivilegedWriter2,
564
564
  indexCoordinationInput2
565
- } from "./index-3cgbv47m.js";
565
+ } from "./index-8vbh4tzw.js";
566
566
  import {
567
567
  stableStringify,
568
568
  closeQuietly,
@@ -587,7 +587,7 @@ import"./index-399p688g.js";
587
587
  import {
588
588
  runSessionWarmupWorker,
589
589
  RAW_SUMMARY_TEXT_MAX_CHARS2
590
- } from "./index-2apf1afe.js";
590
+ } from "./index-5rc9kvrk.js";
591
591
  import {
592
592
  piHarnessKindFromExecutable
593
593
  } from "./index-0j0zqb4t.js";
@@ -613,13 +613,13 @@ import {
613
613
  indexSingleMessage2,
614
614
  indexMessagesAfterOrdinal2,
615
615
  sweepOrphanedOpenCodeMessageIndexes2
616
- } from "./index-9ygacw4e.js";
616
+ } from "./index-5z1h0qsa.js";
617
617
  import {
618
618
  formatSynapseLaneDescriptor
619
619
  } from "./index-21v1kfs7.js";
620
620
  import {
621
621
  sameProjectDirectory
622
- } from "./index-4gfq5t09.js";
622
+ } from "./index-wf7mwdnf.js";
623
623
  import {
624
624
  buildCanonicalChunkTextFromFts,
625
625
  buildCompartmentSummaryFallbackText,
@@ -629,7 +629,7 @@ import {
629
629
  replaceCompartmentChunkEmbeddings,
630
630
  deleteChunkEmbedBackoffForSession,
631
631
  chunkWindowSourceKey
632
- } from "./index-27jh224p.js";
632
+ } from "./index-cd6bjrj4.js";
633
633
  import {
634
634
  recordSessionProjectIdentity,
635
635
  GIT_SWEEP_LEASE_RENEWAL_MS,
@@ -654,7 +654,7 @@ import {
654
654
  embedSessionCompartmentChunks2,
655
655
  getEmbeddingCoverageStatus2,
656
656
  getAutoEmbeddingSessionCoverage2
657
- } from "./index-g1csz24n.js";
657
+ } from "./index-fx0r5485.js";
658
658
  import {
659
659
  V2_MEMORY_CATEGORIES
660
660
  } from "./index-135e8hvg.js";
@@ -666,7 +666,7 @@ import {
666
666
  expandWorkspaceIdentitySetWithAliases,
667
667
  sourceNameForMemory,
668
668
  computeWorkspaceEpochFingerprint
669
- } from "./index-mzn6t38b.js";
669
+ } from "./index-9mn34fnx.js";
670
670
  import {
671
671
  configureContextDatabasePragmas2
672
672
  } from "./index-fapenpch.js";
@@ -716,7 +716,7 @@ import {
716
716
  normalizeVerificationFiles,
717
717
  indexCommitsForProject,
718
718
  embedUnembeddedCommits
719
- } from "./index-57njcjax.js";
719
+ } from "./index-hfnjfk4d.js";
720
720
  import {
721
721
  setEmbeddingSessionBusy2,
722
722
  isEmbeddingHostBusy2
@@ -740,7 +740,7 @@ import {
740
740
  setMemoryClassification2,
741
741
  archiveMemory2,
742
742
  getMemoryCountsByStatus2
743
- } from "./index-xjqheg7a.js";
743
+ } from "./index-kxxdyjfs.js";
744
744
  import {
745
745
  invalidateMemory2
746
746
  } from "./index-yhzhdp3m.js";
@@ -750,8 +750,8 @@ import {
750
750
  import"./index-gc2749rx.js";
751
751
  import {
752
752
  cosineSimilarity
753
- } from "./index-xvm5cdyn.js";
754
- import"./index-g3600tpw.js";
753
+ } from "./index-p4matwj0.js";
754
+ import"./index-swab4319.js";
755
755
  import {
756
756
  buildHiddenAgentRegistrations,
757
757
  logTemperatureDecision,
@@ -3421,7 +3421,7 @@ function startHostStallProfilerSwitch() {
3421
3421
  // package.json
3422
3422
  var package_default = {
3423
3423
  name: "@cortexkit/pi-magic-context",
3424
- version: "0.49.5",
3424
+ version: "0.49.6",
3425
3425
  type: "module",
3426
3426
  description: "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
3427
3427
  main: "dist/index.js",
@@ -2,17 +2,17 @@ import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withIndexChunk2,
4
4
  yieldIndexChunk2
5
- } from "./index-3cgbv47m.js";
6
- import"./index-9n88gmpf.js";
5
+ } from "./index-8vbh4tzw.js";
6
+ import"./index-fcacf11g.js";
7
7
  import"./index-r56xgha8.js";
8
8
  import"./index-0h2mkab2.js";
9
9
  import"./index-x3dcnxh0.js";
10
10
  import"./index-mcgehvgw.js";
11
11
  import"./index-cyrnv16r.js";
12
12
  import"./index-399p688g.js";
13
- import"./index-2apf1afe.js";
13
+ import"./index-5rc9kvrk.js";
14
14
  import"./index-8976mezv.js";
15
- import"./index-590pwxvr.js";
15
+ import"./index-j7pa3t4s.js";
16
16
  import {
17
17
  MESSAGE_INDEX_MAX_FTS_BYTES2,
18
18
  messageIndexSkipKey2,
@@ -20,11 +20,11 @@ import {
20
20
  markMessageIndexDirty2,
21
21
  getIndexableContent2,
22
22
  indexSingleMessage2
23
- } from "./index-9ygacw4e.js";
24
- import"./index-4gfq5t09.js";
23
+ } from "./index-5z1h0qsa.js";
24
+ import"./index-wf7mwdnf.js";
25
25
  import"./index-0j0zqb4t.js";
26
26
  import"./index-21v1kfs7.js";
27
- import"./index-27jh224p.js";
27
+ import"./index-cd6bjrj4.js";
28
28
  import"./index-0vrkp1jq.js";
29
29
 
30
30
  // ../plugin/src/features/magic-context/message-index-bounded.ts
@@ -17,20 +17,20 @@ import {
17
17
  indexMessagesAfterOrdinal2,
18
18
  indexSourcesAfterOrdinal2,
19
19
  sweepOrphanedOpenCodeMessageIndexes2
20
- } from "./index-9ygacw4e.js";
21
- import"./index-27jh224p.js";
22
- import"./index-590pwxvr.js";
23
- import"./index-9n88gmpf.js";
24
- import"./index-2apf1afe.js";
20
+ } from "./index-5z1h0qsa.js";
21
+ import"./index-cd6bjrj4.js";
22
+ import"./index-j7pa3t4s.js";
23
+ import"./index-fcacf11g.js";
24
+ import"./index-5rc9kvrk.js";
25
25
  import"./index-399p688g.js";
26
26
  import"./index-21v1kfs7.js";
27
27
  import"./index-cyrnv16r.js";
28
28
  import"./index-0j0zqb4t.js";
29
- import"./index-4gfq5t09.js";
29
+ import"./index-wf7mwdnf.js";
30
30
  import"./index-8976mezv.js";
31
31
  import"./index-mcgehvgw.js";
32
32
  import"./index-0vrkp1jq.js";
33
- import"./index-3cgbv47m.js";
33
+ import"./index-8vbh4tzw.js";
34
34
  import"./index-r56xgha8.js";
35
35
  import"./index-x3dcnxh0.js";
36
36
  import"./index-0h2mkab2.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withSqliteBackgroundWriter2,
3
3
  withoutSqliteTransformPass2
4
- } from "./index-3cgbv47m.js";
4
+ } from "./index-8vbh4tzw.js";
5
5
  import"./index-0h2mkab2.js";
6
6
  import"./index-x3dcnxh0.js";
7
7
  import {
@@ -5,23 +5,23 @@ import {
5
5
  } from "./index-x3dcnxh0.js";
6
6
  import {
7
7
  Database2
8
- } from "./index-3cgbv47m.js";
8
+ } from "./index-8vbh4tzw.js";
9
9
  import"./index-135e8hvg.js";
10
10
  import {
11
11
  runMigrationsWithRetry
12
- } from "./index-mzn6t38b.js";
12
+ } from "./index-9mn34fnx.js";
13
13
  import {
14
14
  closeQuietly
15
15
  } from "./index-mcgehvgw.js";
16
16
  import"./index-8976mezv.js";
17
- import"./index-g7984a4r.js";
17
+ import"./index-kamhcj15.js";
18
18
  import"./index-0j0zqb4t.js";
19
19
  import"./index-fapenpch.js";
20
20
  import {
21
21
  setSqlitePragmaConfig,
22
22
  initializeDatabase
23
- } from "./index-a1jmtv6r.js";
24
- import"./index-4gfq5t09.js";
23
+ } from "./index-57mvvbbh.js";
24
+ import"./index-wf7mwdnf.js";
25
25
  import"./index-r56xgha8.js";
26
26
  import"./index-0vrkp1jq.js";
27
27
 
@@ -33,17 +33,17 @@ import {
33
33
  sweepAllRegisteredProjects2,
34
34
  _setTestProviderFactoryForProject2,
35
35
  _resetProjectEmbeddingRegistryForTests2
36
- } from "./index-g1csz24n.js";
36
+ } from "./index-fx0r5485.js";
37
37
  import"./index-9p40dgkm.js";
38
- import"./index-27jh224p.js";
38
+ import"./index-cd6bjrj4.js";
39
39
  import"./index-yhzhdp3m.js";
40
40
  import"./index-gc2749rx.js";
41
41
  import"./index-21v1kfs7.js";
42
42
  import"./index-cyrnv16r.js";
43
- import"./index-g7984a4r.js";
44
- import"./index-4gfq5t09.js";
43
+ import"./index-kamhcj15.js";
44
+ import"./index-wf7mwdnf.js";
45
45
  import"./index-0vrkp1jq.js";
46
- import"./index-3cgbv47m.js";
46
+ import"./index-8vbh4tzw.js";
47
47
  import"./index-r56xgha8.js";
48
48
  import"./index-x3dcnxh0.js";
49
49
  import"./index-0h2mkab2.js";
@@ -6,8 +6,8 @@ if (!port)
6
6
  var input = workerData;
7
7
  port.postMessage({ kind: "accepted" });
8
8
  var [{ Database }, { scanRawSessionSummaryRows }] = await Promise.all([
9
- import("./sqlite-3yye76ht.js"),
10
- import("./read-session-raw-527m0yxx.js")
9
+ import("./sqlite-wp7wddw3.js"),
10
+ import("./read-session-raw-545mgtjz.js")
11
11
  ]);
12
12
  var db;
13
13
  var reply;
@@ -21,7 +21,7 @@ try {
21
21
  { configureContextDatabasePragmas }
22
22
  ] = await Promise.all([
23
23
  import("./harness-9872e0ym.js"),
24
- import("./message-index-2damq13v.js"),
24
+ import("./message-index-m6snq0fh.js"),
25
25
  import("./sqlite-context-pragmas-gcgch6qz.js")
26
26
  ]);
27
27
  setHarness(input.harness ?? "opencode");
@@ -39,9 +39,9 @@ try {
39
39
  { configureContextDatabasePragmas },
40
40
  { registerSqliteDiagnosticSink }
41
41
  ] = await Promise.all([
42
- import("./message-index-bounded-0qa5eacp.js"),
42
+ import("./message-index-bounded-8a94k72f.js"),
43
43
  import("./sqlite-context-pragmas-gcgch6qz.js"),
44
- import("./sqlite-3yye76ht.js")
44
+ import("./sqlite-wp7wddw3.js")
45
45
  ]);
46
46
  const { log } = await import("./logger-j6tecd1h.js");
47
47
  registerSqliteDiagnosticSink(log);
@@ -52,7 +52,7 @@ try {
52
52
  const result = await indexMessageInShortChunks(writer, input.sessionId, message, input, () => !cancellation || Atomics.load(cancellation, 0) === 0);
53
53
  reply = { kind: "indexed", inserted: result.inserted, measurements: result.measurements };
54
54
  } else if (input.tagRatio !== undefined) {
55
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-1b2w0wst.js");
55
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-cvjsrbqh.js");
56
56
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
57
57
  if (delta)
58
58
  reply = { kind: "tag-delta", delta };
@@ -34,15 +34,15 @@ import {
34
34
  readSessionChunk2,
35
35
  getRawSessionMessageIdsThrough2,
36
36
  readRawSessionSeedTail2
37
- } from "./index-590pwxvr.js";
38
- import"./index-9n88gmpf.js";
39
- import"./index-2apf1afe.js";
37
+ } from "./index-j7pa3t4s.js";
38
+ import"./index-fcacf11g.js";
39
+ import"./index-5rc9kvrk.js";
40
40
  import"./index-399p688g.js";
41
41
  import"./index-cyrnv16r.js";
42
42
  import"./index-8976mezv.js";
43
43
  import"./index-mcgehvgw.js";
44
44
  import"./index-0vrkp1jq.js";
45
- import"./index-3cgbv47m.js";
45
+ import"./index-8vbh4tzw.js";
46
46
  import {
47
47
  hasMeaningfulUserText2,
48
48
  extractTexts2
@@ -24,9 +24,9 @@ import {
24
24
  hasRawSessionMessageByIdFromDb2,
25
25
  readRawSeedTailFromDb2,
26
26
  readRawSessionBoundaryEndpointsFromDb2
27
- } from "./index-2apf1afe.js";
27
+ } from "./index-5rc9kvrk.js";
28
28
  import"./index-399p688g.js";
29
- import"./index-3cgbv47m.js";
29
+ import"./index-8vbh4tzw.js";
30
30
  import"./index-x3dcnxh0.js";
31
31
  import"./index-0h2mkab2.js";
32
32
  export {
@@ -5,30 +5,30 @@ import {
5
5
  resolveMemoriesByIdsForSearch2,
6
6
  unifiedSearch2,
7
7
  formatSearchResults2
8
- } from "./index-57njcjax.js";
9
- import"./index-9ygacw4e.js";
10
- import"./index-xvm5cdyn.js";
11
- import"./index-xjqheg7a.js";
12
- import"./index-g1csz24n.js";
8
+ } from "./index-hfnjfk4d.js";
9
+ import"./index-5z1h0qsa.js";
10
+ import"./index-p4matwj0.js";
11
+ import"./index-kxxdyjfs.js";
12
+ import"./index-fx0r5485.js";
13
13
  import"./index-9p40dgkm.js";
14
- import"./index-27jh224p.js";
14
+ import"./index-cd6bjrj4.js";
15
15
  import"./index-yhzhdp3m.js";
16
- import"./index-590pwxvr.js";
17
- import"./index-9n88gmpf.js";
18
- import"./index-2apf1afe.js";
16
+ import"./index-j7pa3t4s.js";
17
+ import"./index-fcacf11g.js";
18
+ import"./index-5rc9kvrk.js";
19
19
  import"./index-399p688g.js";
20
20
  import"./index-gc2749rx.js";
21
21
  import"./index-21v1kfs7.js";
22
22
  import"./index-cyrnv16r.js";
23
- import"./index-mzn6t38b.js";
23
+ import"./index-9mn34fnx.js";
24
24
  import"./index-0j0zqb4t.js";
25
25
  import"./index-135e8hvg.js";
26
- import"./index-g7984a4r.js";
27
- import"./index-4gfq5t09.js";
26
+ import"./index-kamhcj15.js";
27
+ import"./index-wf7mwdnf.js";
28
28
  import"./index-8976mezv.js";
29
29
  import"./index-mcgehvgw.js";
30
30
  import"./index-0vrkp1jq.js";
31
- import"./index-3cgbv47m.js";
31
+ import"./index-8vbh4tzw.js";
32
32
  import"./index-r56xgha8.js";
33
33
  import"./index-x3dcnxh0.js";
34
34
  import"./index-0h2mkab2.js";
@@ -19,7 +19,7 @@ import {
19
19
  releaseIndexOwner2,
20
20
  withIndexChunk2,
21
21
  yieldIndexChunk2
22
- } from "./index-3cgbv47m.js";
22
+ } from "./index-8vbh4tzw.js";
23
23
  export {
24
24
  Database2 as Database,
25
25
  assertTransformWrite2 as assertTransformWrite,
@@ -31,10 +31,10 @@ import {
31
31
  deleteMemory2,
32
32
  getMemoryCount2,
33
33
  getMemoryCountsByStatus2
34
- } from "./index-xjqheg7a.js";
34
+ } from "./index-kxxdyjfs.js";
35
35
  import"./index-yhzhdp3m.js";
36
36
  import"./index-135e8hvg.js";
37
- import"./index-3cgbv47m.js";
37
+ import"./index-8vbh4tzw.js";
38
38
  export {
39
39
  COLUMN_MAP2 as COLUMN_MAP,
40
40
  ModuleMemoryAuthorityError2 as ModuleMemoryAuthorityError,
@@ -58,9 +58,9 @@ import {
58
58
  adoptNullOwnerToolTag2,
59
59
  getCandidateToolOwners2,
60
60
  pickNearestPriorOwner2
61
- } from "./index-9n88gmpf.js";
61
+ } from "./index-fcacf11g.js";
62
62
  import"./index-mcgehvgw.js";
63
- import"./index-3cgbv47m.js";
63
+ import"./index-8vbh4tzw.js";
64
64
  import"./index-r56xgha8.js";
65
65
  import"./index-x3dcnxh0.js";
66
66
  import"./index-0h2mkab2.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TOKEN_BUDGET_TOOL_REFUSAL
3
- } from "./index-590pwxvr.js";
3
+ } from "./index-j7pa3t4s.js";
4
4
  import {
5
5
  setHarness2
6
6
  } from "./index-0h2mkab2.js";
@@ -9,15 +9,15 @@ import {
9
9
  } from "./index-x3dcnxh0.js";
10
10
  import {
11
11
  resolveProjectIdentityForSession
12
- } from "./index-g7984a4r.js";
12
+ } from "./index-kamhcj15.js";
13
13
  import"./index-0j0zqb4t.js";
14
- import"./index-3cgbv47m.js";
14
+ import"./index-8vbh4tzw.js";
15
15
  import"./index-fapenpch.js";
16
16
  import {
17
17
  openDatabase
18
- } from "./index-a1jmtv6r.js";
19
- import"./index-4gfq5t09.js";
20
- import"./index-mzn6t38b.js";
18
+ } from "./index-57mvvbbh.js";
19
+ import"./index-wf7mwdnf.js";
20
+ import"./index-9mn34fnx.js";
21
21
  import"./index-mcgehvgw.js";
22
22
  import"./index-135e8hvg.js";
23
23
  import"./index-8976mezv.js";
@@ -27,22 +27,22 @@ import {
27
27
  ensureProjectRegisteredFromPiDirectory,
28
28
  resolvePiHarnessKind,
29
29
  registerMagicContextTools
30
- } from "./index-gxk9hcd1.js";
30
+ } from "./index-0p9gemc6.js";
31
31
  import"./index-cyrnv16r.js";
32
32
  import"./index-21v1kfs7.js";
33
- import"./index-27jh224p.js";
33
+ import"./index-cd6bjrj4.js";
34
34
  import"./index-gc2749rx.js";
35
- import"./index-g1csz24n.js";
35
+ import"./index-fx0r5485.js";
36
36
  import"./index-9p40dgkm.js";
37
37
  import"./index-yhzhdp3m.js";
38
- import"./index-xvm5cdyn.js";
39
- import"./index-9ygacw4e.js";
40
- import"./index-9n88gmpf.js";
38
+ import"./index-p4matwj0.js";
39
+ import"./index-5z1h0qsa.js";
40
+ import"./index-fcacf11g.js";
41
41
  import"./index-399p688g.js";
42
- import"./index-2apf1afe.js";
43
- import"./index-57njcjax.js";
44
- import"./index-xjqheg7a.js";
45
- import"./index-g3600tpw.js";
42
+ import"./index-5rc9kvrk.js";
43
+ import"./index-hfnjfk4d.js";
44
+ import"./index-kxxdyjfs.js";
45
+ import"./index-swab4319.js";
46
46
  import"./index-0vrkp1jq.js";
47
47
  import {
48
48
  setStoragePrivatePermissionEnforcement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/pi-magic-context",
3
- "version": "0.49.5",
3
+ "version": "0.49.6",
4
4
  "type": "module",
5
5
  "description": "Pi and OMP coding agent extension for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",