@cortexkit/pi-magic-context 0.48.0 → 0.49.1

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 (47) hide show
  1. package/dist/auto-search-worker.js +3 -3
  2. package/dist/embedding-backfill-scywarbn.js +20 -0
  3. package/dist/embedding-worker-process.js +29 -0
  4. package/dist/embedding-worker.js +6 -6
  5. package/dist/historian-calibration-extension.js +30 -5
  6. package/dist/index-0j0zqb4t.js +712 -0
  7. package/dist/{index-pvm4pd5d.js → index-0rasmwm8.js} +811 -76
  8. package/dist/{index-fp37he9a.js → index-0vrkp1jq.js} +1 -1
  9. package/dist/{index-419bndtm.js → index-21v1kfs7.js} +2 -2
  10. package/dist/{index-fm3ksh5e.js → index-27jh224p.js} +4 -4
  11. package/dist/{index-98z1c1r0.js → index-28vnkyy7.js} +1231 -3018
  12. package/dist/{index-wrm4nbj7.js → index-290tzwp1.js} +1 -1
  13. package/dist/{index-603mt6nm.js → index-4gfq5t09.js} +17 -2
  14. package/dist/{index-vf38qhee.js → index-81nthk8j.js} +44 -1
  15. package/dist/{index-5jp1h0bz.js → index-b2anqqad.js} +467 -14
  16. package/dist/{index-6pgq5ns2.js → index-cyrnv16r.js} +314 -1072
  17. package/dist/index-fqb1bddn.js +4947 -0
  18. package/dist/{index-dkx0b1kt.js → index-g7hndmqm.js} +20 -29
  19. package/dist/index-gc2749rx.js +1168 -0
  20. package/dist/{index-5hd7h4rr.js → index-kjd1fj55.js} +39 -31
  21. package/dist/{index-8y5knskr.js → index-mcgehvgw.js} +93 -9
  22. package/dist/{index-r7xg4hvw.js → index-p5zesr4e.js} +26 -722
  23. package/dist/{index-9xb0axhc.js → index-r56xgha8.js} +1 -1
  24. package/dist/{index-544c0e0x.js → index-r874cgmv.js} +42 -40
  25. package/dist/{index-72bdc1bd.js → index-rd53pk0h.js} +4 -4
  26. package/dist/{index-0am8a7k1.js → index-rdtgp48t.js} +8 -6
  27. package/dist/{index-rt5jgzp1.js → index-vakawmbc.js} +160 -25
  28. package/dist/{index-f956htf3.js → index-x3dcnxh0.js} +6 -2
  29. package/dist/{index-zrr5t5a7.js → index-zh1jw8qp.js} +106 -1
  30. package/dist/index.js +2271 -1769
  31. package/dist/{logger-v3dsxdnm.js → logger-j6tecd1h.js} +1 -1
  32. package/dist/{message-index-bounded-t7vvty76.js → message-index-bounded-110sb4fm.js} +13 -12
  33. package/dist/{message-time-backfill-4ndf7hrq.js → message-time-backfill-05ppypkz.js} +2 -2
  34. package/dist/migration-worker.js +10 -9
  35. package/dist/{project-embedding-registry-jy2hmq28.js → project-embedding-registry-64t0mw8y.js} +10 -10
  36. package/dist/raw-ordinal-warmup-worker.js +4 -4
  37. package/dist/{read-session-chunk-47pjn7fz.js → read-session-chunk-rvmc25n5.js} +10 -7
  38. package/dist/{read-session-raw-yn8nawav.js → read-session-raw-npx3920c.js} +5 -3
  39. package/dist/{safe-notification-target-3c1ns931.js → safe-notification-target-vn9kpmv4.js} +2 -2
  40. package/dist/{search-42szfhwp.js → search-7z3w8pmz.js} +19 -18
  41. package/dist/{storage-tags-jym5z6yk.js → storage-tags-kjnsqbdb.js} +6 -6
  42. package/dist/subagent-entry.js +25 -23
  43. package/package.json +3 -3
  44. package/dist/embedding-backfill-bnnytehy.js +0 -20
  45. package/dist/index-bgmv2kaf.js +0 -290
  46. package/dist/index-hrf13mn3.js +0 -2388
  47. /package/dist/{index-5prbx026.js → index-2pp04pmg.js} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  getLoggerDiagnostics2,
7
7
  flushLogger2,
8
8
  getLogFilePath2
9
- } from "./index-f956htf3.js";
9
+ } from "./index-x3dcnxh0.js";
10
10
  import"./index-0h2mkab2.js";
11
11
  export {
12
12
  flushLogger2 as flushLogger,
@@ -3,15 +3,15 @@ import {
3
3
  withIndexChunk2,
4
4
  yieldIndexChunk2
5
5
  } from "./index-3cgbv47m.js";
6
- import"./index-5hd7h4rr.js";
7
- import"./index-9xb0axhc.js";
6
+ import"./index-kjd1fj55.js";
7
+ import"./index-r56xgha8.js";
8
8
  import"./index-0h2mkab2.js";
9
- import"./index-f956htf3.js";
10
- import"./index-8y5knskr.js";
11
- import"./index-bgmv2kaf.js";
12
- import"./index-rt5jgzp1.js";
9
+ import"./index-x3dcnxh0.js";
10
+ import"./index-mcgehvgw.js";
11
+ import"./index-cyrnv16r.js";
12
+ import"./index-vakawmbc.js";
13
13
  import"./index-8976mezv.js";
14
- import"./index-hrf13mn3.js";
14
+ import"./index-fqb1bddn.js";
15
15
  import {
16
16
  MESSAGE_INDEX_MAX_FTS_BYTES,
17
17
  messageIndexSkipKey,
@@ -19,11 +19,12 @@ import {
19
19
  markMessageIndexDirty,
20
20
  getIndexableContent,
21
21
  indexSingleMessage
22
- } from "./index-5jp1h0bz.js";
23
- import"./index-603mt6nm.js";
24
- import"./index-419bndtm.js";
25
- import"./index-fm3ksh5e.js";
26
- import"./index-fp37he9a.js";
22
+ } from "./index-b2anqqad.js";
23
+ import"./index-4gfq5t09.js";
24
+ import"./index-0j0zqb4t.js";
25
+ import"./index-21v1kfs7.js";
26
+ import"./index-27jh224p.js";
27
+ import"./index-0vrkp1jq.js";
27
28
 
28
29
  // ../plugin/src/features/magic-context/message-index-bounded.ts
29
30
  import { createHash } from "node:crypto";
@@ -3,10 +3,10 @@ import {
3
3
  withoutSqliteTransformPass2
4
4
  } from "./index-3cgbv47m.js";
5
5
  import"./index-0h2mkab2.js";
6
- import"./index-f956htf3.js";
6
+ import"./index-x3dcnxh0.js";
7
7
  import {
8
8
  logSlowWriteTransaction
9
- } from "./index-fp37he9a.js";
9
+ } from "./index-0vrkp1jq.js";
10
10
 
11
11
  // ../plugin/src/features/magic-context/message-time-backfill.ts
12
12
  var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;
@@ -2,27 +2,28 @@ import"./index-0h2mkab2.js";
2
2
  import {
3
3
  setLogLineForwarder2,
4
4
  log2
5
- } from "./index-f956htf3.js";
5
+ } from "./index-x3dcnxh0.js";
6
6
  import {
7
7
  Database2
8
8
  } from "./index-3cgbv47m.js";
9
9
  import"./index-135e8hvg.js";
10
10
  import {
11
11
  runMigrationsWithRetry
12
- } from "./index-72bdc1bd.js";
12
+ } from "./index-rd53pk0h.js";
13
13
  import {
14
14
  closeQuietly
15
- } from "./index-8y5knskr.js";
15
+ } from "./index-mcgehvgw.js";
16
16
  import"./index-8976mezv.js";
17
- import"./index-dkx0b1kt.js";
17
+ import"./index-g7hndmqm.js";
18
+ import"./index-0j0zqb4t.js";
19
+ import"./index-fapenpch.js";
18
20
  import {
19
21
  setSqlitePragmaConfig,
20
22
  initializeDatabase
21
- } from "./index-r7xg4hvw.js";
22
- import"./index-fapenpch.js";
23
- import"./index-603mt6nm.js";
24
- import"./index-9xb0axhc.js";
25
- import"./index-fp37he9a.js";
23
+ } from "./index-p5zesr4e.js";
24
+ import"./index-4gfq5t09.js";
25
+ import"./index-r56xgha8.js";
26
+ import"./index-0vrkp1jq.js";
26
27
 
27
28
  // ../plugin/src/features/magic-context/migration-worker.ts
28
29
  import { parentPort, workerData } from "node:worker_threads";
@@ -33,19 +33,19 @@ import {
33
33
  sweepAllRegisteredProjects2,
34
34
  _setTestProviderFactoryForProject2,
35
35
  _resetProjectEmbeddingRegistryForTests2
36
- } from "./index-544c0e0x.js";
37
- import"./index-fm3ksh5e.js";
36
+ } from "./index-r874cgmv.js";
37
+ import"./index-27jh224p.js";
38
38
  import"./index-yhzhdp3m.js";
39
39
  import"./index-9p40dgkm.js";
40
- import"./index-6pgq5ns2.js";
41
- import"./index-419bndtm.js";
42
- import"./index-dkx0b1kt.js";
43
- import"./index-603mt6nm.js";
44
- import"./index-fp37he9a.js";
45
- import"./index-bgmv2kaf.js";
40
+ import"./index-gc2749rx.js";
41
+ import"./index-21v1kfs7.js";
42
+ import"./index-cyrnv16r.js";
43
+ import"./index-g7hndmqm.js";
44
+ import"./index-4gfq5t09.js";
45
+ import"./index-0vrkp1jq.js";
46
46
  import"./index-3cgbv47m.js";
47
- import"./index-9xb0axhc.js";
48
- import"./index-f956htf3.js";
47
+ import"./index-r56xgha8.js";
48
+ import"./index-x3dcnxh0.js";
49
49
  import"./index-0h2mkab2.js";
50
50
  export {
51
51
  _resetProjectEmbeddingRegistryForTests2 as _resetProjectEmbeddingRegistryForTests,
@@ -7,7 +7,7 @@ var input = workerData;
7
7
  port.postMessage({ kind: "accepted" });
8
8
  var [{ Database }, { scanRawSessionSummaryRows }] = await Promise.all([
9
9
  import("./sqlite-3yye76ht.js"),
10
- import("./read-session-raw-yn8nawav.js")
10
+ import("./read-session-raw-npx3920c.js")
11
11
  ]);
12
12
  var db;
13
13
  var reply;
@@ -22,11 +22,11 @@ try {
22
22
  { configureContextDatabasePragmas },
23
23
  { registerSqliteDiagnosticSink }
24
24
  ] = await Promise.all([
25
- import("./message-index-bounded-t7vvty76.js"),
25
+ import("./message-index-bounded-110sb4fm.js"),
26
26
  import("./sqlite-context-pragmas-gcgch6qz.js"),
27
27
  import("./sqlite-3yye76ht.js")
28
28
  ]);
29
- const { log } = await import("./logger-v3dsxdnm.js");
29
+ const { log } = await import("./logger-j6tecd1h.js");
30
30
  registerSqliteDiagnosticSink(log);
31
31
  configureContextDatabasePragmas(db);
32
32
  const writer = db;
@@ -35,7 +35,7 @@ try {
35
35
  const result = await indexMessageInShortChunks(writer, input.sessionId, message, input, () => !cancellation || Atomics.load(cancellation, 0) === 0);
36
36
  reply = { kind: "indexed", inserted: result.inserted, measurements: result.measurements };
37
37
  } else if (input.tagRatio !== undefined) {
38
- const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-jym5z6yk.js");
38
+ const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-kjnsqbdb.js");
39
39
  const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
40
40
  if (delta)
41
41
  reply = { kind: "tag-delta", delta };
@@ -21,6 +21,7 @@ import {
21
21
  readRawSessionMessageIdOrdinalsForRange2,
22
22
  readRawSessionMessageIdOrdinals2,
23
23
  readRawSessionMessagePartsById2,
24
+ readRawSessionBoundaryEndpoints2,
24
25
  hasRawSessionMessageById2,
25
26
  readRawSessionMessageOrdinalById2,
26
27
  compareRawSessionMessageOrder2,
@@ -33,18 +34,19 @@ import {
33
34
  readSessionChunk2,
34
35
  getRawSessionMessageIdsThrough2,
35
36
  readRawSessionSeedTail2
36
- } from "./index-hrf13mn3.js";
37
- import"./index-rt5jgzp1.js";
38
- import"./index-5hd7h4rr.js";
39
- import"./index-bgmv2kaf.js";
37
+ } from "./index-fqb1bddn.js";
38
+ import"./index-vakawmbc.js";
39
+ import"./index-kjd1fj55.js";
40
+ import"./index-cyrnv16r.js";
40
41
  import"./index-8976mezv.js";
41
- import"./index-8y5knskr.js";
42
+ import"./index-mcgehvgw.js";
43
+ import"./index-0vrkp1jq.js";
42
44
  import"./index-3cgbv47m.js";
43
45
  import {
44
46
  hasMeaningfulUserText2,
45
47
  extractTexts2
46
- } from "./index-9xb0axhc.js";
47
- import"./index-f956htf3.js";
48
+ } from "./index-r56xgha8.js";
49
+ import"./index-x3dcnxh0.js";
48
50
  import"./index-0h2mkab2.js";
49
51
  export {
50
52
  RAW_MESSAGE_VISIT_PAGE_SIZE2 as RAW_MESSAGE_VISIT_PAGE_SIZE,
@@ -66,6 +68,7 @@ export {
66
68
  prepareRawSessionOrdinals2 as prepareRawSessionOrdinals,
67
69
  primeInMemoryTailRawMessageCache2 as primeInMemoryTailRawMessageCache,
68
70
  primeTailRawMessageCache2 as primeTailRawMessageCache,
71
+ readRawSessionBoundaryEndpoints2 as readRawSessionBoundaryEndpoints,
69
72
  readRawSessionMessageById2 as readRawSessionMessageById,
70
73
  readRawSessionMessageIdOrdinals2 as readRawSessionMessageIdOrdinals,
71
74
  readRawSessionMessageIdOrdinalsForRange2 as readRawSessionMessageIdOrdinalsForRange,
@@ -22,10 +22,11 @@ import {
22
22
  readRawSessionMessageOrdinalByIdFromDb2,
23
23
  readRawSessionMessageByIdFromDb2,
24
24
  hasRawSessionMessageByIdFromDb2,
25
- readRawSeedTailFromDb2
26
- } from "./index-rt5jgzp1.js";
25
+ readRawSeedTailFromDb2,
26
+ readRawSessionBoundaryEndpointsFromDb2
27
+ } from "./index-vakawmbc.js";
27
28
  import"./index-3cgbv47m.js";
28
- import"./index-f956htf3.js";
29
+ import"./index-x3dcnxh0.js";
29
30
  import"./index-0h2mkab2.js";
30
31
  export {
31
32
  RAW_SUMMARY_TEXT_MAX_CHARS2 as RAW_SUMMARY_TEXT_MAX_CHARS,
@@ -42,6 +43,7 @@ export {
42
43
  noteRawSessionSummaryRowWritten2 as noteRawSessionSummaryRowWritten,
43
44
  rawOrdinalSummarySeed2 as rawOrdinalSummarySeed,
44
45
  readRawSeedTailFromDb2 as readRawSeedTailFromDb,
46
+ readRawSessionBoundaryEndpointsFromDb2 as readRawSessionBoundaryEndpointsFromDb,
45
47
  readRawSessionMessageByIdFromDb2 as readRawSessionMessageByIdFromDb,
46
48
  readRawSessionMessageIdOrdinalsForRangeFromDb2 as readRawSessionMessageIdOrdinalsForRangeFromDb,
47
49
  readRawSessionMessageOrdinalByIdFromDb2 as readRawSessionMessageOrdinalByIdFromDb,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  isDefaultSessionTitle2,
3
3
  waitForSafeNotificationTarget2
4
- } from "./index-wrm4nbj7.js";
5
- import"./index-f956htf3.js";
4
+ } from "./index-290tzwp1.js";
5
+ import"./index-x3dcnxh0.js";
6
6
  import"./index-0h2mkab2.js";
7
7
  export {
8
8
  isDefaultSessionTitle2 as isDefaultSessionTitle,
@@ -5,30 +5,31 @@ import {
5
5
  resolveMemoriesByIdsForSearch2,
6
6
  unifiedSearch2,
7
7
  formatSearchResults2
8
- } from "./index-pvm4pd5d.js";
9
- import"./index-5jp1h0bz.js";
10
- import"./index-0am8a7k1.js";
8
+ } from "./index-0rasmwm8.js";
9
+ import"./index-b2anqqad.js";
10
+ import"./index-rdtgp48t.js";
11
11
  import"./index-xjqheg7a.js";
12
- import"./index-544c0e0x.js";
13
- import"./index-fm3ksh5e.js";
12
+ import"./index-r874cgmv.js";
13
+ import"./index-27jh224p.js";
14
14
  import"./index-yhzhdp3m.js";
15
15
  import"./index-9p40dgkm.js";
16
- import"./index-6pgq5ns2.js";
17
- import"./index-419bndtm.js";
18
- import"./index-72bdc1bd.js";
16
+ import"./index-fqb1bddn.js";
17
+ import"./index-vakawmbc.js";
18
+ import"./index-kjd1fj55.js";
19
+ import"./index-gc2749rx.js";
20
+ import"./index-21v1kfs7.js";
21
+ import"./index-cyrnv16r.js";
22
+ import"./index-rd53pk0h.js";
23
+ import"./index-0j0zqb4t.js";
19
24
  import"./index-135e8hvg.js";
20
- import"./index-dkx0b1kt.js";
21
- import"./index-603mt6nm.js";
22
- import"./index-fp37he9a.js";
23
- import"./index-hrf13mn3.js";
24
- import"./index-rt5jgzp1.js";
25
- import"./index-5hd7h4rr.js";
26
- import"./index-bgmv2kaf.js";
25
+ import"./index-g7hndmqm.js";
26
+ import"./index-4gfq5t09.js";
27
27
  import"./index-8976mezv.js";
28
- import"./index-8y5knskr.js";
28
+ import"./index-mcgehvgw.js";
29
+ import"./index-0vrkp1jq.js";
29
30
  import"./index-3cgbv47m.js";
30
- import"./index-9xb0axhc.js";
31
- import"./index-f956htf3.js";
31
+ import"./index-r56xgha8.js";
32
+ import"./index-x3dcnxh0.js";
32
33
  import"./index-0h2mkab2.js";
33
34
  export {
34
35
  createUnifiedSearchDiagnostics2 as createUnifiedSearchDiagnostics,
@@ -21,7 +21,7 @@ import {
21
21
  backfillTagTokenCounts2,
22
22
  insertTag2,
23
23
  updateTagStatus2,
24
- getInertWhitespaceAssistantTags2,
24
+ getInertWhitespaceAssistantTagsByNumbers2,
25
25
  updateTagDropMode2,
26
26
  updateCavemanDepth2,
27
27
  updateTagMessageId2,
@@ -58,11 +58,11 @@ import {
58
58
  adoptNullOwnerToolTag2,
59
59
  getCandidateToolOwners2,
60
60
  pickNearestPriorOwner2
61
- } from "./index-5hd7h4rr.js";
62
- import"./index-8y5knskr.js";
61
+ } from "./index-kjd1fj55.js";
62
+ import"./index-mcgehvgw.js";
63
63
  import"./index-3cgbv47m.js";
64
- import"./index-9xb0axhc.js";
65
- import"./index-f956htf3.js";
64
+ import"./index-r56xgha8.js";
65
+ import"./index-x3dcnxh0.js";
66
66
  import"./index-0h2mkab2.js";
67
67
  export {
68
68
  AGE_RECLAIM_MIN_TOKENS2 as AGE_RECLAIM_MIN_TOKENS,
@@ -87,7 +87,7 @@ export {
87
87
  getAssignableTagNumberByMessageId2 as getAssignableTagNumberByMessageId,
88
88
  getCandidateToolOwners2 as getCandidateToolOwners,
89
89
  getDroppedTagsByNumbers2 as getDroppedTagsByNumbers,
90
- getInertWhitespaceAssistantTags2 as getInertWhitespaceAssistantTags,
90
+ getInertWhitespaceAssistantTagsByNumbers2 as getInertWhitespaceAssistantTagsByNumbers,
91
91
  getMaxDroppedTagNumber2 as getMaxDroppedTagNumber,
92
92
  getMaxTagNumberByOwnerMessage2 as getMaxTagNumberByOwnerMessage,
93
93
  getMaxTagNumberBySession2 as getMaxTagNumberBySession,
@@ -1,49 +1,50 @@
1
1
  import {
2
2
  TOKEN_BUDGET_TOOL_REFUSAL
3
- } from "./index-hrf13mn3.js";
3
+ } from "./index-fqb1bddn.js";
4
4
  import {
5
5
  setHarness2
6
6
  } from "./index-0h2mkab2.js";
7
7
  import {
8
8
  log2
9
- } from "./index-f956htf3.js";
9
+ } from "./index-x3dcnxh0.js";
10
10
  import {
11
11
  resolveProjectIdentityForSession
12
- } from "./index-dkx0b1kt.js";
13
- import {
14
- openDatabase
15
- } from "./index-r7xg4hvw.js";
12
+ } from "./index-g7hndmqm.js";
13
+ import"./index-0j0zqb4t.js";
16
14
  import"./index-3cgbv47m.js";
17
15
  import"./index-fapenpch.js";
18
- import"./index-603mt6nm.js";
19
- import"./index-72bdc1bd.js";
20
- import"./index-8y5knskr.js";
16
+ import {
17
+ openDatabase
18
+ } from "./index-p5zesr4e.js";
19
+ import"./index-4gfq5t09.js";
20
+ import"./index-rd53pk0h.js";
21
+ import"./index-mcgehvgw.js";
21
22
  import"./index-135e8hvg.js";
22
23
  import"./index-8976mezv.js";
23
- import"./index-9xb0axhc.js";
24
+ import"./index-r56xgha8.js";
24
25
  import {
25
26
  loadPiConfig,
26
27
  ensureProjectRegisteredFromPiDirectory,
27
28
  resolvePiHarnessKind,
28
29
  registerMagicContextTools
29
- } from "./index-98z1c1r0.js";
30
- import"./index-6pgq5ns2.js";
31
- import"./index-bgmv2kaf.js";
32
- import"./index-419bndtm.js";
33
- import"./index-fm3ksh5e.js";
34
- import"./index-544c0e0x.js";
30
+ } from "./index-28vnkyy7.js";
31
+ import"./index-cyrnv16r.js";
32
+ import"./index-21v1kfs7.js";
33
+ import"./index-27jh224p.js";
34
+ import"./index-gc2749rx.js";
35
+ import"./index-r874cgmv.js";
35
36
  import"./index-9p40dgkm.js";
36
37
  import"./index-yhzhdp3m.js";
37
- import"./index-0am8a7k1.js";
38
- import"./index-5jp1h0bz.js";
39
- import"./index-5hd7h4rr.js";
40
- import"./index-rt5jgzp1.js";
41
- import"./index-pvm4pd5d.js";
38
+ import"./index-rdtgp48t.js";
39
+ import"./index-b2anqqad.js";
40
+ import"./index-kjd1fj55.js";
41
+ import"./index-vakawmbc.js";
42
+ import"./index-0rasmwm8.js";
42
43
  import"./index-xjqheg7a.js";
43
- import"./index-fp37he9a.js";
44
+ import"./index-0vrkp1jq.js";
44
45
  import {
45
46
  setStoragePrivatePermissionEnforcement
46
- } from "./index-vf38qhee.js";
47
+ } from "./index-81nthk8j.js";
47
48
 
48
49
  // src/subagent-entry.ts
49
50
  import { readFileSync } from "node:fs";
@@ -84,6 +85,7 @@ function magicContextSubagentExtension(pi) {
84
85
  await ensureProjectRegisteredFromPiDirectory(directory, db);
85
86
  const dreamerActionsEnabled = pi.getFlag(SUBAGENT_DREAMER_ACTIONS_FLAG) === true;
86
87
  registerMagicContextTools(pi, {
88
+ rerankConnectionFile: cfg.subc?.connection_file,
87
89
  db,
88
90
  ensureProjectRegistered: ensureProjectRegisteredFromPiDirectory,
89
91
  resolveProjectIdentity: (ctx) => resolveProjectIdentityForSession(ctx.cwd, cfg.allow_home_project),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/pi-magic-context",
3
- "version": "0.48.0",
3
+ "version": "0.49.1",
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",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "//": "The build intentionally bundles typebox (no --external typebox) and keeps it a regular dependency. OMP's extension loader rewrites every bare `typebox` import to its own omptype-based shim, whose schemas are callable objects rather than JSON Schema; they fail structuredClone during tool registration, so an external typebox import stops Magic Context loading on OMP. src/typebox-bundling.test.ts guards this.",
31
31
  "scripts": {
32
- "build": "bun ../../scripts/check-bun.mjs && tsc -p ../retina-local-fs/tsconfig.build.json && bun ../../scripts/clean-dist-chunks.mjs dist index.js subagent-entry.js historian-calibration-extension.js raw-ordinal-warmup-worker.js transformers-web.js transformers-node-wasm.js && bun build ../plugin/src/features/magic-context/memory/transformers-web-entry.ts --outfile dist/transformers-web.js --target browser --format esm --external onnxruntime-web && bun ../plugin/scripts/build-transformers-node-wasm.ts dist && bun build src/index.ts src/subagent-entry.ts src/historian-calibration-extension.ts ../plugin/src/features/magic-context/memory/embedding-worker.ts ../plugin/src/features/magic-context/migration-worker.ts ../plugin/src/hooks/magic-context/auto-search-worker.ts ../plugin/src/hooks/magic-context/raw-ordinal-warmup-worker.ts --outdir dist --entry-naming '[name].[ext]' --target node --format esm --splitting --external @earendil-works/pi-coding-agent --external @oh-my-pi/pi-coding-agent --external @earendil-works/pi-tui --external onnxruntime-node --external onnxruntime-web --external sharp --external node:sqlite",
32
+ "build": "bun ../../scripts/check-bun.mjs && tsc -p ../retina-local-fs/tsconfig.build.json && bun ../../scripts/clean-dist-chunks.mjs dist index.js subagent-entry.js historian-calibration-extension.js embedding-worker-process.js raw-ordinal-warmup-worker.js transformers-web.js transformers-node-wasm.js && bun build ../plugin/src/features/magic-context/memory/transformers-web-entry.ts --outfile dist/transformers-web.js --target browser --format esm --external onnxruntime-web && bun ../plugin/scripts/build-transformers-node-wasm.ts dist && bun build src/index.ts src/subagent-entry.ts src/historian-calibration-extension.ts ../plugin/src/features/magic-context/memory/embedding-worker.ts ../plugin/src/features/magic-context/memory/embedding-worker-process.ts ../plugin/src/features/magic-context/migration-worker.ts ../plugin/src/hooks/magic-context/auto-search-worker.ts ../plugin/src/hooks/magic-context/raw-ordinal-warmup-worker.ts --outdir dist --entry-naming '[name].[ext]' --target node --format esm --splitting --external @earendil-works/pi-coding-agent --external @oh-my-pi/pi-coding-agent --external @earendil-works/pi-tui --external onnxruntime-node --external onnxruntime-web --external sharp --external bun:ffi --external node:sqlite",
33
33
  "build:e2e-argv": "bun ../../scripts/clean-dist-chunks.mjs ../../tests/docker/.generated subagent-runner-e2e.mjs && bun build src/subagent-runner.ts --outdir ../../tests/docker/.generated --entry-naming 'subagent-runner-e2e.mjs' --splitting --target node --format esm --external node:sqlite && node --input-type=module -e 'const { __test } = await import(\"../../tests/docker/.generated/subagent-runner-e2e.mjs\"); if (typeof __test.buildArgs !== \"function\" || typeof __test.resolvePiInvocation !== \"function\") throw new Error(\"argv renderer exports missing\"); console.log(\"Node argv renderer: 2 exports loaded\")'",
34
34
  "typecheck": "tsc -p ../retina-local-fs/tsconfig.build.json && tsc --noEmit",
35
35
  "test": "bun ../../scripts/check-bun.mjs && bun install --frozen-lockfile && BUN_JSC_useOMGJIT=0 bun test --parallel=4 --timeout 30000",
@@ -38,7 +38,7 @@
38
38
  "lint:fix": "biome check --write src",
39
39
  "format": "biome format --write src",
40
40
  "format:check": "biome format src",
41
- "clean": "bun ../../scripts/clean-dist-chunks.mjs dist index.js subagent-entry.js historian-calibration-extension.js embedding-worker.js migration-worker.js raw-ordinal-warmup-worker.js transformers-web.js transformers-node-wasm.js",
41
+ "clean": "bun ../../scripts/clean-dist-chunks.mjs dist index.js subagent-entry.js historian-calibration-extension.js embedding-worker.js embedding-worker-process.js migration-worker.js raw-ordinal-warmup-worker.js transformers-web.js transformers-node-wasm.js",
42
42
  "prepublishOnly": "bun run build"
43
43
  },
44
44
  "//test": "Test runs cap file-isolated workers at four (one for test:serial) and disable JSC's optimizing WebAssembly tier so per-file isolation does not pay its compilation cost on every file. These are not production settings and do not change host process engine options.",
@@ -1,20 +0,0 @@
1
- import {
2
- ensureMemoryEmbeddings2
3
- } from "./index-0am8a7k1.js";
4
- import"./index-544c0e0x.js";
5
- import"./index-fm3ksh5e.js";
6
- import"./index-yhzhdp3m.js";
7
- import"./index-9p40dgkm.js";
8
- import"./index-6pgq5ns2.js";
9
- import"./index-419bndtm.js";
10
- import"./index-dkx0b1kt.js";
11
- import"./index-603mt6nm.js";
12
- import"./index-fp37he9a.js";
13
- import"./index-bgmv2kaf.js";
14
- import"./index-3cgbv47m.js";
15
- import"./index-9xb0axhc.js";
16
- import"./index-f956htf3.js";
17
- import"./index-0h2mkab2.js";
18
- export {
19
- ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
20
- };