@cortexkit/pi-magic-context 0.49.11 → 0.49.13
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 +4 -4
- package/dist/chunk-embedding-write-worker.js +87 -0
- package/dist/{compaction-marker-candidates-n4dphyz4.js → compaction-marker-candidates-k4tqg4jb.js} +2 -2
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/embedding-backfill-7kj16fh9.js +21 -0
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +5 -5
- package/dist/historian-calibration-extension.js +2 -2
- package/dist/{index-ta0ed2nc.js → index-1k729e4f.js} +15 -15
- package/dist/index-1mrvw9en.js +225 -0
- package/dist/{index-g13fb2sj.js → index-3cnarwf8.js} +4 -4
- package/dist/{index-729kkhmf.js → index-46q4e104.js} +1 -1
- package/dist/{index-m8aaepft.js → index-53xdqb3d.js} +7 -7
- package/dist/{index-szh001qb.js → index-6dz2ed1v.js} +2 -2
- package/dist/{index-gqxsds3q.js → index-6ex901g3.js} +187 -27
- package/dist/{index-gycf3sp7.js → index-7bqrfyny.js} +46 -2
- package/dist/{index-drah07tf.js → index-7qc73yk5.js} +64 -7
- package/dist/{index-s9kwv5pp.js → index-7wagp5jp.js} +5 -5
- package/dist/{index-8yjhda46.js → index-9jvktm7k.js} +3 -3
- package/dist/{index-3veejgp8.js → index-apgwdby5.js} +1 -1
- package/dist/{index-0vq6ebae.js → index-aypx5h57.js} +58 -64
- package/dist/{index-43zqh10z.js → index-d4dt19md.js} +1 -1
- package/dist/{index-fdxzpnbj.js → index-djxc8w8c.js} +1 -1
- package/dist/{index-x7426vy4.js → index-ed9d2ded.js} +18 -5
- package/dist/{index-kh3jt7t9.js → index-f18ec69t.js} +1 -1
- package/dist/{index-4pxydwvg.js → index-g4jf772p.js} +1 -1
- package/dist/{index-4vj37yw9.js → index-he9s4qsj.js} +16 -6
- package/dist/{index-ttxsmaj5.js → index-jrap43gc.js} +1 -1
- package/dist/{index-78c864c8.js → index-nwbhe6qv.js} +324 -254
- package/dist/{index-9azmm7cg.js → index-t27xk4r7.js} +10 -10
- package/dist/{index-s3c9dskk.js → index-vv1j5cak.js} +8 -8
- package/dist/{index-2df03yc3.js → index-wp9q91kn.js} +8 -8
- package/dist/{index-xmdkde4v.js → index-y29y2j2w.js} +12 -1
- package/dist/index.js +854 -369
- package/dist/{logger-qg51hmp7.js → logger-dygt96rn.js} +1 -1
- package/dist/{message-index-5zjmsg57.js → message-index-7w179p64.js} +13 -13
- package/dist/{message-index-bounded-chgr6dn3.js → message-index-bounded-80n96ehp.js} +13 -13
- package/dist/{message-time-backfill-q9s88zdv.js → message-time-backfill-r2ar1qvk.js} +2 -2
- package/dist/migration-worker.js +9 -9
- package/dist/{project-embedding-registry-dk5axctd.js → project-embedding-registry-52zwmtbn.js} +11 -10
- package/dist/raw-ordinal-warmup-worker.js +12 -7
- package/dist/{read-session-chunk-3kb7r5pq.js → read-session-chunk-83864b37.js} +8 -8
- package/dist/{read-session-raw-hm7ptnrh.js → read-session-raw-azkqjgzg.js} +6 -2
- package/dist/{safe-notification-target-62ty6rvp.js → safe-notification-target-2rkvkmw8.js} +2 -2
- package/dist/{search-8pczyejh.js → search-hffb8xht.js} +20 -19
- package/dist/{storage-tags-zh23ynsh.js → storage-tags-zmf30zqp.js} +6 -4
- package/dist/subagent-entry.js +23 -22
- package/package.json +2 -2
- package/dist/embedding-backfill-1tknh2jn.js +0 -20
- /package/dist/{index-69vas84q.js → index-e6xnpach.js} +0 -0
|
@@ -17,23 +17,23 @@ import {
|
|
|
17
17
|
indexMessagesAfterOrdinal2,
|
|
18
18
|
indexSourcesAfterOrdinal2,
|
|
19
19
|
sweepOrphanedOpenCodeMessageIndexes2
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
20
|
+
} from "./index-vv1j5cak.js";
|
|
21
|
+
import"./index-7qc73yk5.js";
|
|
22
|
+
import"./index-53xdqb3d.js";
|
|
23
|
+
import"./index-ed9d2ded.js";
|
|
24
|
+
import"./index-he9s4qsj.js";
|
|
25
25
|
import"./index-399p688g.js";
|
|
26
26
|
import"./index-6x556c2q.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
27
|
+
import"./index-6dz2ed1v.js";
|
|
28
|
+
import"./index-1k729e4f.js";
|
|
29
|
+
import"./index-apgwdby5.js";
|
|
30
|
+
import"./index-djxc8w8c.js";
|
|
31
31
|
import"./index-8976mezv.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
32
|
+
import"./index-jrap43gc.js";
|
|
33
|
+
import"./index-d4dt19md.js";
|
|
34
|
+
import"./index-g4jf772p.js";
|
|
35
35
|
import"./index-asrxgdt4.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-7bqrfyny.js";
|
|
37
37
|
import"./index-0h2mkab2.js";
|
|
38
38
|
export {
|
|
39
39
|
MESSAGE_INDEX_MAX_FTS_BYTES2 as MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
withIndexChunk2,
|
|
4
4
|
yieldIndexChunk2
|
|
5
5
|
} from "./index-asrxgdt4.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
import"./index-ed9d2ded.js";
|
|
7
|
+
import"./index-g4jf772p.js";
|
|
8
8
|
import"./index-0h2mkab2.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
import"./index-7bqrfyny.js";
|
|
10
|
+
import"./index-jrap43gc.js";
|
|
11
|
+
import"./index-1k729e4f.js";
|
|
12
12
|
import"./index-399p688g.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-he9s4qsj.js";
|
|
14
14
|
import"./index-8976mezv.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-53xdqb3d.js";
|
|
16
16
|
import"./index-6x556c2q.js";
|
|
17
17
|
import {
|
|
18
18
|
MESSAGE_INDEX_MAX_FTS_BYTES2,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
markMessageIndexDirty2,
|
|
22
22
|
getIndexableContent2,
|
|
23
23
|
indexSingleMessage2
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
24
|
+
} from "./index-vv1j5cak.js";
|
|
25
|
+
import"./index-djxc8w8c.js";
|
|
26
|
+
import"./index-apgwdby5.js";
|
|
27
|
+
import"./index-6dz2ed1v.js";
|
|
28
|
+
import"./index-7qc73yk5.js";
|
|
29
|
+
import"./index-d4dt19md.js";
|
|
30
30
|
|
|
31
31
|
// ../plugin/src/features/magic-context/message-index-bounded.ts
|
|
32
32
|
import { createHash } from "node:crypto";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
withoutSqliteTransformPass2
|
|
4
4
|
} from "./index-asrxgdt4.js";
|
|
5
5
|
import"./index-0h2mkab2.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-7bqrfyny.js";
|
|
7
7
|
import {
|
|
8
8
|
logSlowWriteTransaction
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-d4dt19md.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,28 +2,28 @@ import"./index-0h2mkab2.js";
|
|
|
2
2
|
import {
|
|
3
3
|
setLogLineForwarder2,
|
|
4
4
|
log2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-7bqrfyny.js";
|
|
6
6
|
import {
|
|
7
7
|
Database2
|
|
8
8
|
} from "./index-asrxgdt4.js";
|
|
9
9
|
import"./index-135e8hvg.js";
|
|
10
10
|
import {
|
|
11
11
|
runMigrationsWithRetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-3cnarwf8.js";
|
|
13
13
|
import {
|
|
14
14
|
closeQuietly
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-jrap43gc.js";
|
|
16
16
|
import"./index-8976mezv.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
import"./index-6ex901g3.js";
|
|
18
|
+
import"./index-apgwdby5.js";
|
|
19
19
|
import"./index-fapenpch.js";
|
|
20
20
|
import {
|
|
21
21
|
setSqlitePragmaConfig,
|
|
22
22
|
initializeDatabase
|
|
23
|
-
} from "./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
23
|
+
} from "./index-t27xk4r7.js";
|
|
24
|
+
import"./index-djxc8w8c.js";
|
|
25
|
+
import"./index-g4jf772p.js";
|
|
26
|
+
import"./index-d4dt19md.js";
|
|
27
27
|
|
|
28
28
|
// ../plugin/src/features/magic-context/migration-worker.ts
|
|
29
29
|
import { parentPort, workerData } from "node:worker_threads";
|
package/dist/{project-embedding-registry-dk5axctd.js → project-embedding-registry-52zwmtbn.js}
RENAMED
|
@@ -33,19 +33,20 @@ import {
|
|
|
33
33
|
sweepAllRegisteredProjects2,
|
|
34
34
|
_setTestProviderFactoryForProject2,
|
|
35
35
|
_resetProjectEmbeddingRegistryForTests2
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-nwbhe6qv.js";
|
|
37
37
|
import"./index-9p40dgkm.js";
|
|
38
|
-
import"./index-drah07tf.js";
|
|
39
38
|
import"./index-yhzhdp3m.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
39
|
+
import"./index-1mrvw9en.js";
|
|
40
|
+
import"./index-7qc73yk5.js";
|
|
41
|
+
import"./index-9jvktm7k.js";
|
|
42
|
+
import"./index-6dz2ed1v.js";
|
|
43
|
+
import"./index-1k729e4f.js";
|
|
44
|
+
import"./index-6ex901g3.js";
|
|
45
|
+
import"./index-djxc8w8c.js";
|
|
46
|
+
import"./index-d4dt19md.js";
|
|
47
|
+
import"./index-g4jf772p.js";
|
|
47
48
|
import"./index-asrxgdt4.js";
|
|
48
|
-
import"./index-
|
|
49
|
+
import"./index-7bqrfyny.js";
|
|
49
50
|
import"./index-0h2mkab2.js";
|
|
50
51
|
export {
|
|
51
52
|
_resetProjectEmbeddingRegistryForTests2 as _resetProjectEmbeddingRegistryForTests,
|
|
@@ -7,14 +7,14 @@ var input = workerData;
|
|
|
7
7
|
port.postMessage({ kind: "accepted" });
|
|
8
8
|
var [
|
|
9
9
|
{ Database, registerSqliteDiagnosticSink },
|
|
10
|
-
{ scanRawSessionSummaryRows },
|
|
10
|
+
{ readRawSessionMessageIdsAtOrdinalsFromDb, scanRawSessionSummaryRows },
|
|
11
11
|
{ getHarness, setHarness },
|
|
12
12
|
{ log }
|
|
13
13
|
] = await Promise.all([
|
|
14
14
|
import("./sqlite-adjpy399.js"),
|
|
15
|
-
import("./read-session-raw-
|
|
15
|
+
import("./read-session-raw-azkqjgzg.js"),
|
|
16
16
|
import("./harness-9872e0ym.js"),
|
|
17
|
-
import("./logger-
|
|
17
|
+
import("./logger-dygt96rn.js")
|
|
18
18
|
]);
|
|
19
19
|
setHarness(input.harness ?? "opencode");
|
|
20
20
|
registerSqliteDiagnosticSink(log, getHarness);
|
|
@@ -23,14 +23,19 @@ var reply;
|
|
|
23
23
|
try {
|
|
24
24
|
db = input.indexMessage || input.orphanSweep ? new Database(input.path) : new Database(input.path, { readonly: true });
|
|
25
25
|
db.exec("PRAGMA busy_timeout = 250");
|
|
26
|
-
if (input.
|
|
26
|
+
if (input.exactOrdinalIds) {
|
|
27
|
+
reply = {
|
|
28
|
+
kind: "exact-ordinal-ids",
|
|
29
|
+
ids: readRawSessionMessageIdsAtOrdinalsFromDb(db, input.sessionId, input.exactOrdinalIds)
|
|
30
|
+
};
|
|
31
|
+
} else if (input.orphanSweep) {
|
|
27
32
|
const [
|
|
28
33
|
{ setHarness },
|
|
29
34
|
{ sweepOrphanedOpenCodeMessageIndexes },
|
|
30
35
|
{ configureContextDatabasePragmas }
|
|
31
36
|
] = await Promise.all([
|
|
32
37
|
import("./harness-9872e0ym.js"),
|
|
33
|
-
import("./message-index-
|
|
38
|
+
import("./message-index-7w179p64.js"),
|
|
34
39
|
import("./sqlite-context-pragmas-gcgch6qz.js")
|
|
35
40
|
]);
|
|
36
41
|
setHarness(input.harness ?? "opencode");
|
|
@@ -44,7 +49,7 @@ try {
|
|
|
44
49
|
const { setHarness } = await import("./harness-9872e0ym.js");
|
|
45
50
|
setHarness(input.harness ?? "opencode");
|
|
46
51
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
47
|
-
import("./message-index-bounded-
|
|
52
|
+
import("./message-index-bounded-80n96ehp.js"),
|
|
48
53
|
import("./sqlite-context-pragmas-gcgch6qz.js")
|
|
49
54
|
]);
|
|
50
55
|
configureContextDatabasePragmas(db);
|
|
@@ -54,7 +59,7 @@ try {
|
|
|
54
59
|
const result = await indexMessageInShortChunks(writer, input.sessionId, message, input, () => !cancellation || Atomics.load(cancellation, 0) === 0);
|
|
55
60
|
reply = { kind: "indexed", inserted: result.inserted, measurements: result.measurements };
|
|
56
61
|
} else if (input.tagRatio !== undefined) {
|
|
57
|
-
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-
|
|
62
|
+
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-zmf30zqp.js");
|
|
58
63
|
const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
|
|
59
64
|
if (delta)
|
|
60
65
|
reply = { kind: "tag-delta", delta };
|
|
@@ -35,21 +35,21 @@ import {
|
|
|
35
35
|
readSessionChunk2,
|
|
36
36
|
getRawSessionMessageIdsThrough2,
|
|
37
37
|
readRawSessionSeedTail2
|
|
38
|
-
} from "./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
38
|
+
} from "./index-53xdqb3d.js";
|
|
39
|
+
import"./index-ed9d2ded.js";
|
|
40
|
+
import"./index-he9s4qsj.js";
|
|
41
41
|
import"./index-399p688g.js";
|
|
42
42
|
import"./index-6x556c2q.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-1k729e4f.js";
|
|
44
44
|
import"./index-8976mezv.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
45
|
+
import"./index-jrap43gc.js";
|
|
46
|
+
import"./index-d4dt19md.js";
|
|
47
47
|
import {
|
|
48
48
|
hasMeaningfulUserText2,
|
|
49
49
|
extractTexts2
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-g4jf772p.js";
|
|
51
51
|
import"./index-asrxgdt4.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-7bqrfyny.js";
|
|
53
53
|
import"./index-0h2mkab2.js";
|
|
54
54
|
export {
|
|
55
55
|
RAW_MESSAGE_VISIT_PAGE_SIZE2 as RAW_MESSAGE_VISIT_PAGE_SIZE,
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
readRawSessionMessageSummaryPageFromDb2,
|
|
7
7
|
countRawSessionMessageOrdinalsFromDb2,
|
|
8
8
|
readRawSessionMessageIdOrdinalsForRangeFromDb2,
|
|
9
|
+
readRawSessionMessageIdsAtOrdinalsFromDb2,
|
|
9
10
|
readRawSessionMessageOrdinalPageFromDb2,
|
|
10
11
|
countStoredRawSessionMessagesFromDb2,
|
|
11
12
|
readRawSessionTailFromDb2,
|
|
@@ -14,6 +15,7 @@ import {
|
|
|
14
15
|
forgetRawSessionOrdinalWatermark2,
|
|
15
16
|
forgetRawSessionSummaryRows2,
|
|
16
17
|
noteRawSessionSummaryRowWritten2,
|
|
18
|
+
RawOrdinalsNotReady2,
|
|
17
19
|
rawOrdinalSummarySeed2,
|
|
18
20
|
scanRawSessionSummaryRows2,
|
|
19
21
|
getRawSessionSummaryEpoch2,
|
|
@@ -24,13 +26,14 @@ import {
|
|
|
24
26
|
hasRawSessionMessageByIdFromDb2,
|
|
25
27
|
readRawSeedTailFromDb2,
|
|
26
28
|
readRawSessionBoundaryEndpointsFromDb2
|
|
27
|
-
} from "./index-
|
|
29
|
+
} from "./index-he9s4qsj.js";
|
|
28
30
|
import"./index-399p688g.js";
|
|
29
31
|
import"./index-asrxgdt4.js";
|
|
30
|
-
import"./index-
|
|
32
|
+
import"./index-7bqrfyny.js";
|
|
31
33
|
import"./index-0h2mkab2.js";
|
|
32
34
|
export {
|
|
33
35
|
RAW_SUMMARY_TEXT_MAX_CHARS2 as RAW_SUMMARY_TEXT_MAX_CHARS,
|
|
36
|
+
RawOrdinalsNotReady2 as RawOrdinalsNotReady,
|
|
34
37
|
buildInMemoryTailRawMessages2 as buildInMemoryTailRawMessages,
|
|
35
38
|
countRawSessionMessageOrdinalsFromDb2 as countRawSessionMessageOrdinalsFromDb,
|
|
36
39
|
countStoredRawSessionMessagesFromDb2 as countStoredRawSessionMessagesFromDb,
|
|
@@ -47,6 +50,7 @@ export {
|
|
|
47
50
|
readRawSessionBoundaryEndpointsFromDb2 as readRawSessionBoundaryEndpointsFromDb,
|
|
48
51
|
readRawSessionMessageByIdFromDb2 as readRawSessionMessageByIdFromDb,
|
|
49
52
|
readRawSessionMessageIdOrdinalsForRangeFromDb2 as readRawSessionMessageIdOrdinalsForRangeFromDb,
|
|
53
|
+
readRawSessionMessageIdsAtOrdinalsFromDb2 as readRawSessionMessageIdsAtOrdinalsFromDb,
|
|
50
54
|
readRawSessionMessageOrdinalByIdFromDb2 as readRawSessionMessageOrdinalByIdFromDb,
|
|
51
55
|
readRawSessionMessageOrdinalPageFromDb2 as readRawSessionMessageOrdinalPageFromDb,
|
|
52
56
|
readRawSessionMessagePageFromDb2 as readRawSessionMessagePageFromDb,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isDefaultSessionTitle2,
|
|
3
3
|
waitForSafeNotificationTarget2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-f18ec69t.js";
|
|
5
|
+
import"./index-7bqrfyny.js";
|
|
6
6
|
import"./index-0h2mkab2.js";
|
|
7
7
|
export {
|
|
8
8
|
isDefaultSessionTitle2 as isDefaultSessionTitle,
|
|
@@ -5,33 +5,34 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-wp9q91kn.js";
|
|
9
|
+
import"./index-vv1j5cak.js";
|
|
10
|
+
import"./index-7wagp5jp.js";
|
|
11
11
|
import"./index-hy44m6jc.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-nwbhe6qv.js";
|
|
13
13
|
import"./index-9p40dgkm.js";
|
|
14
|
-
import"./index-drah07tf.js";
|
|
15
14
|
import"./index-yhzhdp3m.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
import"./index-1mrvw9en.js";
|
|
16
|
+
import"./index-7qc73yk5.js";
|
|
17
|
+
import"./index-53xdqb3d.js";
|
|
18
|
+
import"./index-ed9d2ded.js";
|
|
19
|
+
import"./index-he9s4qsj.js";
|
|
19
20
|
import"./index-399p688g.js";
|
|
20
21
|
import"./index-6x556c2q.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
22
|
+
import"./index-9jvktm7k.js";
|
|
23
|
+
import"./index-6dz2ed1v.js";
|
|
24
|
+
import"./index-1k729e4f.js";
|
|
25
|
+
import"./index-3cnarwf8.js";
|
|
26
|
+
import"./index-apgwdby5.js";
|
|
26
27
|
import"./index-135e8hvg.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-6ex901g3.js";
|
|
29
|
+
import"./index-djxc8w8c.js";
|
|
29
30
|
import"./index-8976mezv.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-jrap43gc.js";
|
|
32
|
+
import"./index-d4dt19md.js";
|
|
33
|
+
import"./index-g4jf772p.js";
|
|
33
34
|
import"./index-asrxgdt4.js";
|
|
34
|
-
import"./index-
|
|
35
|
+
import"./index-7bqrfyny.js";
|
|
35
36
|
import"./index-0h2mkab2.js";
|
|
36
37
|
export {
|
|
37
38
|
createUnifiedSearchDiagnostics2 as createUnifiedSearchDiagnostics,
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
backfillTagTokenCounts2,
|
|
22
22
|
insertTag2,
|
|
23
23
|
updateTagStatus2,
|
|
24
|
+
markTagDropped2,
|
|
24
25
|
getInertWhitespaceAssistantTagsByNumbers2,
|
|
25
26
|
updateTagDropMode2,
|
|
26
27
|
updateCavemanDepth2,
|
|
@@ -58,11 +59,11 @@ import {
|
|
|
58
59
|
adoptNullOwnerToolTag2,
|
|
59
60
|
getCandidateToolOwners2,
|
|
60
61
|
pickNearestPriorOwner2
|
|
61
|
-
} from "./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
62
|
+
} from "./index-ed9d2ded.js";
|
|
63
|
+
import"./index-jrap43gc.js";
|
|
64
|
+
import"./index-g4jf772p.js";
|
|
64
65
|
import"./index-asrxgdt4.js";
|
|
65
|
-
import"./index-
|
|
66
|
+
import"./index-7bqrfyny.js";
|
|
66
67
|
import"./index-0h2mkab2.js";
|
|
67
68
|
export {
|
|
68
69
|
AGE_RECLAIM_MIN_TOKENS2 as AGE_RECLAIM_MIN_TOKENS,
|
|
@@ -110,6 +111,7 @@ export {
|
|
|
110
111
|
hasPiFallbackMessageTags2 as hasPiFallbackMessageTags,
|
|
111
112
|
hasPiFallbackToolOwnerTags2 as hasPiFallbackToolOwnerTags,
|
|
112
113
|
insertTag2 as insertTag,
|
|
114
|
+
markTagDropped2 as markTagDropped,
|
|
113
115
|
markTagsCompactedByMessageIds2 as markTagsCompactedByMessageIds,
|
|
114
116
|
pickNearestPriorOwner2 as pickNearestPriorOwner,
|
|
115
117
|
scanTagOwnerDelta2 as scanTagOwnerDelta,
|
package/dist/subagent-entry.js
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TOKEN_BUDGET_TOOL_REFUSAL
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-53xdqb3d.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-7bqrfyny.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectIdentityForSession
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-6ex901g3.js";
|
|
13
13
|
import"./index-asrxgdt4.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-apgwdby5.js";
|
|
15
15
|
import"./index-fapenpch.js";
|
|
16
16
|
import {
|
|
17
17
|
openDatabase
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
18
|
+
} from "./index-t27xk4r7.js";
|
|
19
|
+
import"./index-djxc8w8c.js";
|
|
20
|
+
import"./index-3cnarwf8.js";
|
|
21
|
+
import"./index-jrap43gc.js";
|
|
22
22
|
import"./index-135e8hvg.js";
|
|
23
23
|
import"./index-8976mezv.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-g4jf772p.js";
|
|
25
25
|
import {
|
|
26
26
|
loadPiConfig,
|
|
27
27
|
ensureProjectRegisteredFromPiDirectory,
|
|
28
28
|
resolvePiHarnessKind,
|
|
29
29
|
registerMagicContextTools
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
30
|
+
} from "./index-aypx5h57.js";
|
|
31
|
+
import"./index-1k729e4f.js";
|
|
32
|
+
import"./index-6dz2ed1v.js";
|
|
33
|
+
import"./index-7qc73yk5.js";
|
|
34
|
+
import"./index-9jvktm7k.js";
|
|
35
|
+
import"./index-nwbhe6qv.js";
|
|
36
36
|
import"./index-9p40dgkm.js";
|
|
37
|
+
import"./index-1mrvw9en.js";
|
|
37
38
|
import"./index-yhzhdp3m.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-7wagp5jp.js";
|
|
40
|
+
import"./index-vv1j5cak.js";
|
|
41
|
+
import"./index-ed9d2ded.js";
|
|
41
42
|
import"./index-399p688g.js";
|
|
42
|
-
import"./index-
|
|
43
|
+
import"./index-he9s4qsj.js";
|
|
43
44
|
import"./index-6x556c2q.js";
|
|
44
|
-
import"./index-
|
|
45
|
+
import"./index-wp9q91kn.js";
|
|
45
46
|
import"./index-hy44m6jc.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-46q4e104.js";
|
|
48
|
+
import"./index-d4dt19md.js";
|
|
48
49
|
import {
|
|
49
50
|
setStoragePrivatePermissionEnforcement
|
|
50
51
|
} from "./index-81nthk8j.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/pi-magic-context",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.13",
|
|
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 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 ../plugin/src/features/magic-context/compaction-marker-candidates-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",
|
|
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 ../plugin/src/features/magic-context/compaction-marker-candidates-worker.ts ../plugin/src/features/magic-context/chunk-embedding-write-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",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-s9kwv5pp.js";
|
|
4
|
-
import"./index-78c864c8.js";
|
|
5
|
-
import"./index-9p40dgkm.js";
|
|
6
|
-
import"./index-drah07tf.js";
|
|
7
|
-
import"./index-yhzhdp3m.js";
|
|
8
|
-
import"./index-8yjhda46.js";
|
|
9
|
-
import"./index-szh001qb.js";
|
|
10
|
-
import"./index-ta0ed2nc.js";
|
|
11
|
-
import"./index-gqxsds3q.js";
|
|
12
|
-
import"./index-fdxzpnbj.js";
|
|
13
|
-
import"./index-43zqh10z.js";
|
|
14
|
-
import"./index-4pxydwvg.js";
|
|
15
|
-
import"./index-asrxgdt4.js";
|
|
16
|
-
import"./index-gycf3sp7.js";
|
|
17
|
-
import"./index-0h2mkab2.js";
|
|
18
|
-
export {
|
|
19
|
-
ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
|
|
20
|
-
};
|
|
File without changes
|