@cortexkit/pi-magic-context 0.49.0 → 0.49.2
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-b71dvfs8.js → embedding-backfill-scywarbn.js} +7 -7
- package/dist/embedding-worker-process.js +29 -0
- package/dist/embedding-worker.js +5 -5
- package/dist/index-0j0zqb4t.js +712 -0
- package/dist/{index-hwqb3s7f.js → index-0rasmwm8.js} +5 -5
- package/dist/{index-bejpsj10.js → index-27jh224p.js} +1 -1
- package/dist/{index-ehybv5nr.js → index-28vnkyy7.js} +1129 -2990
- package/dist/{index-r024r8da.js → index-4gfq5t09.js} +16 -1
- package/dist/{index-vf38qhee.js → index-81nthk8j.js} +44 -1
- package/dist/{index-yzcjxnt2.js → index-b2anqqad.js} +422 -6
- package/dist/{index-1evzceyw.js → index-cyrnv16r.js} +314 -1072
- package/dist/index-fqb1bddn.js +4947 -0
- package/dist/{index-041ex0cj.js → index-g7hndmqm.js} +20 -34
- package/dist/index-gc2749rx.js +1168 -0
- package/dist/{index-t7xfqtg6.js → index-p5zesr4e.js} +22 -718
- package/dist/{index-yarjn32j.js → index-r874cgmv.js} +38 -36
- package/dist/{index-3mgf68pn.js → index-rd53pk0h.js} +1 -1
- package/dist/{index-904reqtg.js → index-rdtgp48t.js} +6 -4
- package/dist/index.js +1637 -1126
- package/dist/{message-index-bounded-qz5dz2se.js → message-index-bounded-110sb4fm.js} +6 -5
- package/dist/migration-worker.js +6 -5
- package/dist/{project-embedding-registry-ky7wrkr1.js → project-embedding-registry-64t0mw8y.js} +6 -6
- package/dist/raw-ordinal-warmup-worker.js +1 -1
- package/dist/{read-session-chunk-24sd89tf.js → read-session-chunk-rvmc25n5.js} +3 -2
- package/dist/{search-jbh28nwy.js → search-7z3w8pmz.js} +15 -14
- package/dist/subagent-entry.js +17 -16
- package/package.json +3 -3
- package/dist/index-3rea6zd9.js +0 -2396
- package/dist/index-bgmv2kaf.js +0 -290
- /package/dist/{index-5prbx026.js → index-2pp04pmg.js} +0 -0
|
@@ -17,11 +17,11 @@ var [
|
|
|
17
17
|
{ setHarness },
|
|
18
18
|
{ Database }
|
|
19
19
|
] = await Promise.all([
|
|
20
|
-
import("./embedding-backfill-
|
|
20
|
+
import("./embedding-backfill-scywarbn.js"),
|
|
21
21
|
import("./embedding-cache-7rp4gqzr.js"),
|
|
22
22
|
import("./storage-memory-1z20y55x.js"),
|
|
23
|
-
import("./project-embedding-registry-
|
|
24
|
-
import("./search-
|
|
23
|
+
import("./project-embedding-registry-64t0mw8y.js"),
|
|
24
|
+
import("./search-7z3w8pmz.js"),
|
|
25
25
|
import("./embedding-activity-ew6dshfd.js"),
|
|
26
26
|
import("./harness-9872e0ym.js"),
|
|
27
27
|
import("./sqlite-3yye76ht.js")
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
5
|
-
import"./index-
|
|
3
|
+
} from "./index-rdtgp48t.js";
|
|
4
|
+
import"./index-r874cgmv.js";
|
|
5
|
+
import"./index-27jh224p.js";
|
|
6
6
|
import"./index-yhzhdp3m.js";
|
|
7
7
|
import"./index-9p40dgkm.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-gc2749rx.js";
|
|
9
9
|
import"./index-21v1kfs7.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
import"./index-cyrnv16r.js";
|
|
11
|
+
import"./index-g7hndmqm.js";
|
|
12
|
+
import"./index-4gfq5t09.js";
|
|
12
13
|
import"./index-0vrkp1jq.js";
|
|
13
|
-
import"./index-bgmv2kaf.js";
|
|
14
14
|
import"./index-3cgbv47m.js";
|
|
15
15
|
import"./index-r56xgha8.js";
|
|
16
16
|
import"./index-x3dcnxh0.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import"./index-0h2mkab2.js";
|
|
2
|
+
import {
|
|
3
|
+
log2
|
|
4
|
+
} from "./index-x3dcnxh0.js";
|
|
5
|
+
|
|
6
|
+
// ../plugin/src/features/magic-context/memory/embedding-worker-process.ts
|
|
7
|
+
import { Worker } from "node:worker_threads";
|
|
8
|
+
var worker;
|
|
9
|
+
process.on("message", (message) => {
|
|
10
|
+
if (message.entry && !worker) {
|
|
11
|
+
worker = new Worker(new URL(message.entry), { workerData: message.data });
|
|
12
|
+
worker.on("message", (reply) => {
|
|
13
|
+
const wire = {
|
|
14
|
+
...reply,
|
|
15
|
+
vectors: reply.vectors?.map((vector) => vector === null ? null : Buffer.from(vector.buffer, vector.byteOffset, vector.byteLength).toString("base64"))
|
|
16
|
+
};
|
|
17
|
+
if (process.connected)
|
|
18
|
+
process.send?.(wire);
|
|
19
|
+
});
|
|
20
|
+
worker.on("error", (error) => {
|
|
21
|
+
log2("[magic-context] embedding worker failed:", error);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
});
|
|
24
|
+
worker.on("exit", (code) => process.exit(code));
|
|
25
|
+
} else {
|
|
26
|
+
worker?.postMessage(message);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
process.on("disconnect", () => process.exit(0));
|
package/dist/embedding-worker.js
CHANGED
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
6
|
} from "./index-x3dcnxh0.js";
|
|
7
|
+
import"./index-cyrnv16r.js";
|
|
8
|
+
import"./index-21v1kfs7.js";
|
|
9
|
+
import"./index-r56xgha8.js";
|
|
7
10
|
import {
|
|
8
11
|
resolveLocalEmbeddingWorkerRuntime,
|
|
9
12
|
getLocalEmbeddingNativeMemoryStats,
|
|
10
13
|
LocalEmbeddingProvider
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-bgmv2kaf.js";
|
|
13
|
-
import"./index-21v1kfs7.js";
|
|
14
|
-
import"./index-r56xgha8.js";
|
|
14
|
+
} from "./index-gc2749rx.js";
|
|
15
15
|
import {
|
|
16
16
|
setStoragePrivatePermissionEnforcement
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-81nthk8j.js";
|
|
18
18
|
|
|
19
19
|
// ../plugin/src/features/magic-context/memory/embedding-worker.ts
|
|
20
20
|
import { parentPort, workerData } from "node:worker_threads";
|