@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.
- package/dist/auto-search-worker.js +3 -3
- package/dist/embedding-backfill-scywarbn.js +20 -0
- package/dist/embedding-worker-process.js +29 -0
- package/dist/embedding-worker.js +6 -6
- package/dist/historian-calibration-extension.js +30 -5
- package/dist/index-0j0zqb4t.js +712 -0
- package/dist/{index-pvm4pd5d.js → index-0rasmwm8.js} +811 -76
- package/dist/{index-fp37he9a.js → index-0vrkp1jq.js} +1 -1
- package/dist/{index-419bndtm.js → index-21v1kfs7.js} +2 -2
- package/dist/{index-fm3ksh5e.js → index-27jh224p.js} +4 -4
- package/dist/{index-98z1c1r0.js → index-28vnkyy7.js} +1231 -3018
- package/dist/{index-wrm4nbj7.js → index-290tzwp1.js} +1 -1
- package/dist/{index-603mt6nm.js → index-4gfq5t09.js} +17 -2
- package/dist/{index-vf38qhee.js → index-81nthk8j.js} +44 -1
- package/dist/{index-5jp1h0bz.js → index-b2anqqad.js} +467 -14
- package/dist/{index-6pgq5ns2.js → index-cyrnv16r.js} +314 -1072
- package/dist/index-fqb1bddn.js +4947 -0
- package/dist/{index-dkx0b1kt.js → index-g7hndmqm.js} +20 -29
- package/dist/index-gc2749rx.js +1168 -0
- package/dist/{index-5hd7h4rr.js → index-kjd1fj55.js} +39 -31
- package/dist/{index-8y5knskr.js → index-mcgehvgw.js} +93 -9
- package/dist/{index-r7xg4hvw.js → index-p5zesr4e.js} +26 -722
- package/dist/{index-9xb0axhc.js → index-r56xgha8.js} +1 -1
- package/dist/{index-544c0e0x.js → index-r874cgmv.js} +42 -40
- package/dist/{index-72bdc1bd.js → index-rd53pk0h.js} +4 -4
- package/dist/{index-0am8a7k1.js → index-rdtgp48t.js} +8 -6
- package/dist/{index-rt5jgzp1.js → index-vakawmbc.js} +160 -25
- package/dist/{index-f956htf3.js → index-x3dcnxh0.js} +6 -2
- package/dist/{index-zrr5t5a7.js → index-zh1jw8qp.js} +106 -1
- package/dist/index.js +2271 -1769
- package/dist/{logger-v3dsxdnm.js → logger-j6tecd1h.js} +1 -1
- package/dist/{message-index-bounded-t7vvty76.js → message-index-bounded-110sb4fm.js} +13 -12
- package/dist/{message-time-backfill-4ndf7hrq.js → message-time-backfill-05ppypkz.js} +2 -2
- package/dist/migration-worker.js +10 -9
- package/dist/{project-embedding-registry-jy2hmq28.js → project-embedding-registry-64t0mw8y.js} +10 -10
- package/dist/raw-ordinal-warmup-worker.js +4 -4
- package/dist/{read-session-chunk-47pjn7fz.js → read-session-chunk-rvmc25n5.js} +10 -7
- package/dist/{read-session-raw-yn8nawav.js → read-session-raw-npx3920c.js} +5 -3
- package/dist/{safe-notification-target-3c1ns931.js → safe-notification-target-vn9kpmv4.js} +2 -2
- package/dist/{search-42szfhwp.js → search-7z3w8pmz.js} +19 -18
- package/dist/{storage-tags-jym5z6yk.js → storage-tags-kjnsqbdb.js} +6 -6
- package/dist/subagent-entry.js +25 -23
- package/package.json +3 -3
- package/dist/embedding-backfill-bnnytehy.js +0 -20
- package/dist/index-bgmv2kaf.js +0 -290
- package/dist/index-hrf13mn3.js +0 -2388
- /package/dist/{index-5prbx026.js → index-2pp04pmg.js} +0 -0
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
withIndexChunk2,
|
|
4
4
|
yieldIndexChunk2
|
|
5
5
|
} from "./index-3cgbv47m.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
import"./index-kjd1fj55.js";
|
|
7
|
+
import"./index-r56xgha8.js";
|
|
8
8
|
import"./index-0h2mkab2.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
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-
|
|
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-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
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-
|
|
6
|
+
import"./index-x3dcnxh0.js";
|
|
7
7
|
import {
|
|
8
8
|
logSlowWriteTransaction
|
|
9
|
-
} from "./index-
|
|
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;
|
package/dist/migration-worker.js
CHANGED
|
@@ -2,27 +2,28 @@ import"./index-0h2mkab2.js";
|
|
|
2
2
|
import {
|
|
3
3
|
setLogLineForwarder2,
|
|
4
4
|
log2
|
|
5
|
-
} from "./index-
|
|
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-
|
|
12
|
+
} from "./index-rd53pk0h.js";
|
|
13
13
|
import {
|
|
14
14
|
closeQuietly
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-mcgehvgw.js";
|
|
16
16
|
import"./index-8976mezv.js";
|
|
17
|
-
import"./index-
|
|
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-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
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";
|
package/dist/{project-embedding-registry-jy2hmq28.js → project-embedding-registry-64t0mw8y.js}
RENAMED
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
sweepAllRegisteredProjects2,
|
|
34
34
|
_setTestProviderFactoryForProject2,
|
|
35
35
|
_resetProjectEmbeddingRegistryForTests2
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
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-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
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-
|
|
48
|
-
import"./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
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-
|
|
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-
|
|
47
|
-
import"./index-
|
|
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
|
-
|
|
25
|
+
readRawSeedTailFromDb2,
|
|
26
|
+
readRawSessionBoundaryEndpointsFromDb2
|
|
27
|
+
} from "./index-vakawmbc.js";
|
|
27
28
|
import"./index-3cgbv47m.js";
|
|
28
|
-
import"./index-
|
|
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-
|
|
5
|
-
import"./index-
|
|
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-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-0rasmwm8.js";
|
|
9
|
+
import"./index-b2anqqad.js";
|
|
10
|
+
import"./index-rdtgp48t.js";
|
|
11
11
|
import"./index-xjqheg7a.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
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-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
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-
|
|
21
|
-
import"./index-
|
|
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-
|
|
28
|
+
import"./index-mcgehvgw.js";
|
|
29
|
+
import"./index-0vrkp1jq.js";
|
|
29
30
|
import"./index-3cgbv47m.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
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
|
-
|
|
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-
|
|
62
|
-
import"./index-
|
|
61
|
+
} from "./index-kjd1fj55.js";
|
|
62
|
+
import"./index-mcgehvgw.js";
|
|
63
63
|
import"./index-3cgbv47m.js";
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
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
|
-
|
|
90
|
+
getInertWhitespaceAssistantTagsByNumbers2 as getInertWhitespaceAssistantTagsByNumbers,
|
|
91
91
|
getMaxDroppedTagNumber2 as getMaxDroppedTagNumber,
|
|
92
92
|
getMaxTagNumberByOwnerMessage2 as getMaxTagNumberByOwnerMessage,
|
|
93
93
|
getMaxTagNumberBySession2 as getMaxTagNumberBySession,
|
package/dist/subagent-entry.js
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TOKEN_BUDGET_TOOL_REFUSAL
|
|
3
|
-
} from "./index-
|
|
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-
|
|
9
|
+
} from "./index-x3dcnxh0.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectIdentityForSession
|
|
12
|
-
} from "./index-
|
|
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
|
|
19
|
-
|
|
20
|
-
|
|
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-
|
|
24
|
+
import"./index-r56xgha8.js";
|
|
24
25
|
import {
|
|
25
26
|
loadPiConfig,
|
|
26
27
|
ensureProjectRegisteredFromPiDirectory,
|
|
27
28
|
resolvePiHarnessKind,
|
|
28
29
|
registerMagicContextTools
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
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-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
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-
|
|
44
|
+
import"./index-0vrkp1jq.js";
|
|
44
45
|
import {
|
|
45
46
|
setStoragePrivatePermissionEnforcement
|
|
46
|
-
} from "./index-
|
|
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.
|
|
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
|
-
};
|