@cortexkit/pi-magic-context 0.49.19 → 0.49.21
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 +48 -9
- package/dist/chunk-embedding-write-worker.js +29 -22
- package/dist/{compaction-marker-candidates-wjzqbspm.js → compaction-marker-candidates-p1kqkqhq.js} +3 -3
- package/dist/compaction-marker-candidates-worker.js +2 -2
- package/dist/compartment-chunk-embedding-y01m95c2.js +64 -0
- package/dist/embedding-backfill-2vh6m3bg.js +24 -0
- package/dist/embedding-worker-process.js +2 -2
- package/dist/embedding-worker.js +6 -6
- package/dist/historian-calibration-extension.js +1 -1
- package/dist/{index-e1rza8gp.js → index-29nw7n1r.js} +1 -1
- package/dist/{index-rrwv9y2k.js → index-2qtx0q6h.js} +214 -5
- package/dist/{index-msqrs4nf.js → index-3c3ztwgc.js} +5 -5
- package/dist/index-54wmg4rj.js +82 -0
- package/dist/{index-yygsh681.js → index-579m1751.js} +3 -3
- package/dist/{index-rc1dez8m.js → index-5j6vwg4z.js} +154 -13
- package/dist/{index-qpq6w67c.js → index-6wdwv3a6.js} +2 -2
- package/dist/{index-vktahpdj.js → index-at6py2k3.js} +9 -3
- package/dist/{index-bxmf4dhr.js → index-ccanzg8p.js} +2367 -1243
- package/dist/{index-sqt2haap.js → index-dbgg6hsf.js} +28 -14
- package/dist/{index-7bqrfyny.js → index-fgs78jyd.js} +12 -15
- package/dist/{index-58mj0dzc.js → index-ftvm2acc.js} +181 -46
- package/dist/{index-wveb51es.js → index-gqjxy2p7.js} +74 -9
- package/dist/{index-d8gc0112.js → index-gwxaz0z5.js} +4 -6
- package/dist/{index-d4dt19md.js → index-hqw0rt9k.js} +1 -1
- package/dist/{index-g7p75667.js → index-hxp6q5f8.js} +2 -2
- package/dist/{index-svgkv4g2.js → index-j3pz3a1b.js} +2 -2
- package/dist/{index-f18ec69t.js → index-jn44h81p.js} +1 -1
- package/dist/{index-1kcfwk9c.js → index-my0dn413.js} +1 -1
- package/dist/{index-apgwdby5.js → index-n4wyxcgr.js} +1 -1
- package/dist/{index-rhprywn6.js → index-n8e5e9fp.js} +28 -7
- package/dist/{index-z2rkv0mb.js → index-pe5gz5c4.js} +5 -5
- package/dist/{index-dtp1efvf.js → index-st4gwt64.js} +2 -2
- package/dist/{index-xnch62s6.js → index-vx6f7wff.js} +314 -127
- package/dist/{index-jrap43gc.js → index-w1avzkdt.js} +1 -1
- package/dist/{index-vmcgew7x.js → index-w1twp2kp.js} +78 -58
- package/dist/{index-ek9zvs4f.js → index-w6r3ggnp.js} +57 -27
- package/dist/{index-ym6nh2gk.js → index-wgmhk91m.js} +113 -20
- package/dist/{index-2mmy81qt.js → index-wqpjhx1p.js} +501 -20
- package/dist/index.js +1178 -417
- package/dist/{logger-dygt96rn.js → logger-shetp43v.js} +1 -1
- package/dist/{message-fts-rowid-map-cvpy2dmb.js → message-fts-rowid-map-59y476bk.js} +6 -5
- package/dist/{message-index-rc2x41k4.js → message-index-3snxf11x.js} +15 -14
- package/dist/{message-index-bounded-66saeq5j.js → message-index-bounded-4ngt600v.js} +15 -14
- package/dist/{message-time-backfill-ssshbdy8.js → message-time-backfill-e3r8ddh1.js} +3 -3
- package/dist/migration-worker.js +12 -11
- package/dist/{project-embedding-registry-vf1ncptn.js → project-embedding-registry-hfyzs654.js} +14 -13
- package/dist/raw-ordinal-warmup-worker.js +136 -101
- package/dist/{read-session-chunk-h5bzj91r.js → read-session-chunk-5dmc77q2.js} +10 -9
- package/dist/{read-session-raw-9s3xn7fc.js → read-session-raw-yxv2fv34.js} +4 -3
- package/dist/{safe-notification-target-2rkvkmw8.js → safe-notification-target-zcpchea6.js} +2 -2
- package/dist/search-archive-3daj5ttc.js +21 -0
- package/dist/{search-wh7b9zht.js → search-jhfh3tsj.js} +23 -22
- package/dist/{sqlite-fsp0sf3r.js → sqlite-v89bj0yy.js} +7 -1
- package/dist/{storage-memory-yxxc5v4n.js → storage-memory-0ndn65fm.js} +2 -2
- package/dist/{storage-tags-1kets0q8.js → storage-tags-r48vxthe.js} +7 -5
- package/dist/subagent-entry.js +28 -26
- package/dist/tag-snapshot-worker-pi.js +22 -14
- package/package.json +5 -2
- package/dist/embedding-backfill-vwag34t0.js +0 -23
- package/dist/search-archive-4817pqev.js +0 -20
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
deleteMemory2,
|
|
32
32
|
getMemoryCount2,
|
|
33
33
|
getMemoryCountsByStatus2
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-29nw7n1r.js";
|
|
35
35
|
import"./index-yhzhdp3m.js";
|
|
36
36
|
import"./index-135e8hvg.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-2qtx0q6h.js";
|
|
38
38
|
export {
|
|
39
39
|
COLUMN_MAP2 as COLUMN_MAP,
|
|
40
40
|
ModuleMemoryAuthorityError2 as ModuleMemoryAuthorityError,
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
TAG_SELECT_COLUMNS2,
|
|
49
49
|
getTagsBySession2,
|
|
50
50
|
getActiveTagsBySession2,
|
|
51
|
+
getTailHygieneTags2,
|
|
51
52
|
getTagsForPendingOperations2,
|
|
52
53
|
getTagsByNumbers2,
|
|
53
54
|
getNewestToolTagNumbers2,
|
|
@@ -60,11 +61,11 @@ import {
|
|
|
60
61
|
adoptNullOwnerToolTag2,
|
|
61
62
|
getCandidateToolOwners2,
|
|
62
63
|
pickNearestPriorOwner2
|
|
63
|
-
} from "./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
64
|
+
} from "./index-n8e5e9fp.js";
|
|
65
|
+
import"./index-w1avzkdt.js";
|
|
66
|
+
import"./index-my0dn413.js";
|
|
67
|
+
import"./index-2qtx0q6h.js";
|
|
68
|
+
import"./index-fgs78jyd.js";
|
|
68
69
|
import"./index-0h2mkab2.js";
|
|
69
70
|
export {
|
|
70
71
|
AGE_RECLAIM_MIN_TOKENS2 as AGE_RECLAIM_MIN_TOKENS,
|
|
@@ -106,6 +107,7 @@ export {
|
|
|
106
107
|
getTagsByNumbers2 as getTagsByNumbers,
|
|
107
108
|
getTagsBySession2 as getTagsBySession,
|
|
108
109
|
getTagsForPendingOperations2 as getTagsForPendingOperations,
|
|
110
|
+
getTailHygieneTags2 as getTailHygieneTags,
|
|
109
111
|
getToolTagNumberByOwner2 as getToolTagNumberByOwner,
|
|
110
112
|
getTopNBySize2 as getTopNBySize,
|
|
111
113
|
getTriggerTagTokenUpperBound2 as getTriggerTagTokenUpperBound,
|
package/dist/subagent-entry.js
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TOKEN_BUDGET_TOOL_REFUSAL
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-gqjxy2p7.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-fgs78jyd.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectIdentityForSession
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-hxp6q5f8.js";
|
|
13
|
+
import"./index-2qtx0q6h.js";
|
|
14
|
+
import"./index-n4wyxcgr.js";
|
|
15
15
|
import"./index-fapenpch.js";
|
|
16
16
|
import {
|
|
17
17
|
openDatabase
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-dbgg6hsf.js";
|
|
19
19
|
import"./index-399p688g.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
20
|
+
import"./index-54wmg4rj.js";
|
|
21
|
+
import"./index-at6py2k3.js";
|
|
22
|
+
import"./index-579m1751.js";
|
|
23
|
+
import"./index-3c3ztwgc.js";
|
|
24
|
+
import"./index-w1avzkdt.js";
|
|
24
25
|
import"./index-135e8hvg.js";
|
|
25
26
|
import"./index-8976mezv.js";
|
|
26
|
-
import"./index-
|
|
27
|
+
import"./index-my0dn413.js";
|
|
27
28
|
import"./index-4knyh1kt.js";
|
|
28
29
|
import {
|
|
29
30
|
loadPiConfig,
|
|
30
31
|
ensureProjectRegisteredFromPiDirectory,
|
|
31
32
|
resolvePiHarnessKind,
|
|
32
33
|
registerMagicContextTools
|
|
33
|
-
} from "./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
34
|
+
} from "./index-w6r3ggnp.js";
|
|
35
|
+
import"./index-ccanzg8p.js";
|
|
36
|
+
import"./index-gwxaz0z5.js";
|
|
37
|
+
import"./index-vx6f7wff.js";
|
|
38
|
+
import"./index-wqpjhx1p.js";
|
|
39
|
+
import"./index-w1twp2kp.js";
|
|
39
40
|
import"./index-9p40dgkm.js";
|
|
40
|
-
import"./index-
|
|
41
|
+
import"./index-j3pz3a1b.js";
|
|
41
42
|
import"./index-yhzhdp3m.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
43
|
+
import"./index-pe5gz5c4.js";
|
|
44
|
+
import"./index-wgmhk91m.js";
|
|
45
|
+
import"./index-n8e5e9fp.js";
|
|
45
46
|
import"./index-6x556c2q.js";
|
|
46
|
-
import"./index-
|
|
47
|
+
import"./index-ftvm2acc.js";
|
|
47
48
|
import"./index-1cvyaw9a.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
49
|
+
import"./index-st4gwt64.js";
|
|
50
|
+
import"./index-29nw7n1r.js";
|
|
51
|
+
import"./index-6wdwv3a6.js";
|
|
52
|
+
import"./index-hqw0rt9k.js";
|
|
52
53
|
import {
|
|
53
54
|
setStoragePrivatePermissionEnforcement
|
|
54
55
|
} from "./index-81nthk8j.js";
|
|
@@ -93,6 +94,7 @@ function magicContextSubagentExtension(pi) {
|
|
|
93
94
|
const dreamerActionsEnabled = pi.getFlag(SUBAGENT_DREAMER_ACTIONS_FLAG) === true;
|
|
94
95
|
registerMagicContextTools(pi, {
|
|
95
96
|
rerankConnectionFile: cfg.subc?.connection_file,
|
|
97
|
+
rerankConfig: cfg.rerank,
|
|
96
98
|
db,
|
|
97
99
|
ensureProjectRegistered: ensureProjectRegisteredFromPiDirectory,
|
|
98
100
|
resolveProjectIdentity: (ctx) => resolveProjectIdentityForSession(ctx.cwd, cfg.allow_home_project),
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Database2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
3
|
+
} from "./index-2qtx0q6h.js";
|
|
4
|
+
import"./index-hxp6q5f8.js";
|
|
5
5
|
import"./index-0h2mkab2.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
import"./index-fgs78jyd.js";
|
|
7
|
+
import"./index-n4wyxcgr.js";
|
|
8
8
|
import"./index-fapenpch.js";
|
|
9
9
|
import {
|
|
10
10
|
LATEST_SUPPORTED_VERSION,
|
|
11
11
|
getPersistedSchemaVersion
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-dbgg6hsf.js";
|
|
13
13
|
import"./index-399p688g.js";
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
import {
|
|
15
|
+
exitOnWorkerClose
|
|
16
|
+
} from "./index-54wmg4rj.js";
|
|
17
|
+
import"./index-at6py2k3.js";
|
|
18
|
+
import"./index-579m1751.js";
|
|
19
|
+
import"./index-3c3ztwgc.js";
|
|
17
20
|
import {
|
|
18
21
|
tagRevisionKey
|
|
19
|
-
} from "./index-
|
|
22
|
+
} from "./index-w1avzkdt.js";
|
|
20
23
|
import"./index-135e8hvg.js";
|
|
21
24
|
import"./index-8976mezv.js";
|
|
22
|
-
import"./index-
|
|
25
|
+
import"./index-my0dn413.js";
|
|
23
26
|
import {
|
|
24
27
|
normalizeTagSnapshotRow2,
|
|
25
28
|
TAG_SELECT_COLUMNS2
|
|
26
|
-
} from "./index-
|
|
29
|
+
} from "./index-n8e5e9fp.js";
|
|
27
30
|
import {
|
|
28
31
|
encodePiHydrationOperation,
|
|
29
32
|
PI_FALLBACK_ROW_COLUMNS,
|
|
30
33
|
PI_FALLBACK_ROW_PREDICATE
|
|
31
|
-
} from "./index-
|
|
32
|
-
import"./index-
|
|
34
|
+
} from "./index-5j6vwg4z.js";
|
|
35
|
+
import"./index-hqw0rt9k.js";
|
|
33
36
|
|
|
34
37
|
// src/tag-snapshot-worker-pi.ts
|
|
35
38
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -48,6 +51,11 @@ var sampledGeneration = false;
|
|
|
48
51
|
var generationStatement;
|
|
49
52
|
var opened = false;
|
|
50
53
|
var persistedVersion = 0;
|
|
54
|
+
var { closePort } = exitOnWorkerClose(port, () => {
|
|
55
|
+
const connection = db;
|
|
56
|
+
db = undefined;
|
|
57
|
+
connection?.close();
|
|
58
|
+
});
|
|
51
59
|
|
|
52
60
|
class StaleGeneration extends Error {
|
|
53
61
|
}
|
|
@@ -229,7 +237,7 @@ var run = async () => {
|
|
|
229
237
|
});
|
|
230
238
|
} finally {
|
|
231
239
|
db?.close();
|
|
232
|
-
|
|
240
|
+
closePort();
|
|
233
241
|
}
|
|
234
242
|
};
|
|
235
243
|
run();
|
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.21",
|
|
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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"comment-json": "^5.0.0",
|
|
50
50
|
"onnxruntime-web": "1.26.0-dev.20260416-b7804b056c",
|
|
51
51
|
"quickjs-emscripten": "^0.32.0",
|
|
52
|
-
"zod": "^4.
|
|
52
|
+
"zod": "^4.6.6"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
55
|
"onnxruntime-node": "1.30.0",
|
|
@@ -65,9 +65,12 @@
|
|
|
65
65
|
"@types/bun": "^1.3.10",
|
|
66
66
|
"@types/node": "^22.20.0",
|
|
67
67
|
"omp-coding-agent-1812": "npm:@oh-my-pi/pi-coding-agent@18.12.3",
|
|
68
|
+
"omp-coding-agent-18126": "npm:@oh-my-pi/pi-coding-agent@18.12.6",
|
|
69
|
+
"omp-pi-ai-171": "npm:@oh-my-pi/pi-ai@17.1.7",
|
|
68
70
|
"omp-pi-ai-1889": "npm:@oh-my-pi/pi-ai@18.8.9",
|
|
69
71
|
"omp-pi-ai-1811": "npm:@oh-my-pi/pi-ai@18.11.3",
|
|
70
72
|
"omp-pi-ai-1812": "npm:@oh-my-pi/pi-ai@18.12.3",
|
|
73
|
+
"omp-pi-ai-18126": "npm:@oh-my-pi/pi-ai@18.12.6",
|
|
71
74
|
"pi-agent-core-087": "npm:@earendil-works/pi-agent-core@0.87.1",
|
|
72
75
|
"pi-ai-086": "npm:@earendil-works/pi-ai@0.86.0",
|
|
73
76
|
"pi-ai-087": "npm:@earendil-works/pi-ai@0.87.1",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-z2rkv0mb.js";
|
|
4
|
-
import"./index-vmcgew7x.js";
|
|
5
|
-
import"./index-9p40dgkm.js";
|
|
6
|
-
import"./index-yhzhdp3m.js";
|
|
7
|
-
import"./index-svgkv4g2.js";
|
|
8
|
-
import"./index-xnch62s6.js";
|
|
9
|
-
import"./index-2mmy81qt.js";
|
|
10
|
-
import"./index-d8gc0112.js";
|
|
11
|
-
import"./index-bxmf4dhr.js";
|
|
12
|
-
import"./index-g7p75667.js";
|
|
13
|
-
import"./index-yygsh681.js";
|
|
14
|
-
import"./index-vktahpdj.js";
|
|
15
|
-
import"./index-399p688g.js";
|
|
16
|
-
import"./index-d4dt19md.js";
|
|
17
|
-
import"./index-1kcfwk9c.js";
|
|
18
|
-
import"./index-rrwv9y2k.js";
|
|
19
|
-
import"./index-7bqrfyny.js";
|
|
20
|
-
import"./index-0h2mkab2.js";
|
|
21
|
-
export {
|
|
22
|
-
ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
|
|
23
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderSearchArchive2
|
|
3
|
-
} from "./index-dtp1efvf.js";
|
|
4
|
-
import"./index-1cvyaw9a.js";
|
|
5
|
-
import"./index-wveb51es.js";
|
|
6
|
-
import"./index-rhprywn6.js";
|
|
7
|
-
import"./index-6x556c2q.js";
|
|
8
|
-
import"./index-bxmf4dhr.js";
|
|
9
|
-
import"./index-8976mezv.js";
|
|
10
|
-
import"./index-jrap43gc.js";
|
|
11
|
-
import"./index-vktahpdj.js";
|
|
12
|
-
import"./index-399p688g.js";
|
|
13
|
-
import"./index-d4dt19md.js";
|
|
14
|
-
import"./index-1kcfwk9c.js";
|
|
15
|
-
import"./index-rrwv9y2k.js";
|
|
16
|
-
import"./index-7bqrfyny.js";
|
|
17
|
-
import"./index-0h2mkab2.js";
|
|
18
|
-
export {
|
|
19
|
-
renderSearchArchive2 as renderSearchArchive
|
|
20
|
-
};
|