@cortexkit/opencode-magic-context 0.49.84 → 0.49.85
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/{announcement-p41dde4h.js → announcement-fnyxaahs.js} +3 -1
- package/dist/auto-search-worker.js +3 -3
- package/dist/chunk-embedding-write-worker.js +5 -4
- package/dist/{context-3sajdysh.js → context-bjfwzbts.js} +27 -26
- package/dist/{derive-budgets-0kcek5ex.js → derive-budgets-90869322.js} +3 -1
- package/dist/{embedding-backfill-k994xdas.js → embedding-backfill-v6sw58m8.js} +7 -5
- package/dist/embedding-worker.js +15 -27
- package/dist/features/magic-context/memory/embedding-worker-boundary.test-support.d.ts +24 -0
- package/dist/features/magic-context/memory/embedding-worker-boundary.test-support.d.ts.map +1 -0
- package/dist/features/magic-context/memory/embedding-worker-client.d.ts +35 -1
- package/dist/features/magic-context/memory/embedding-worker-client.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-worker-loop.d.ts +57 -0
- package/dist/features/magic-context/memory/embedding-worker-loop.d.ts.map +1 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts +6 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
- package/dist/{index-tvbkemec.js → index-08jfpny9.js} +1 -1
- package/dist/{index-k0jnsjcp.js → index-0rge5rkh.js} +6 -6
- package/dist/{index-0wehkw71.js → index-1pf5qrx4.js} +4 -4
- package/dist/{index-98qy103c.js → index-2kf73btc.js} +1 -1
- package/dist/{index-vpw46557.js → index-3dtzyred.js} +1 -1
- package/dist/{index-bd34njzg.js → index-4ntnt8ee.js} +1 -1
- package/dist/{index-w2wpx7t5.js → index-4w5rx7de.js} +1 -1
- package/dist/{index-xd0ww0ns.js → index-798s7c8s.js} +1 -1
- package/dist/{index-fpqdbb67.js → index-7svecf3m.js} +3 -3
- package/dist/{index-tqnvn9pa.js → index-9fsxmjs6.js} +3 -3
- package/dist/{v2/server-fvnzcnww.js → index-c5tmzym6.js} +192 -11
- package/dist/{index-w8dcjt7f.js → index-k0tb2z28.js} +1 -1
- package/dist/{index-zb4h9nrk.js → index-k50xhjw1.js} +202 -14
- package/dist/{index-qybp04ff.js → index-kqnef2tg.js} +3 -3
- package/dist/{index-szwrpyac.js → index-nny4gm06.js} +1 -1
- package/dist/{index-fgy6hnr3.js → index-pw279hmt.js} +2 -2
- package/dist/{index-xjfan0za.js → index-qvn3q9f1.js} +37 -37
- package/dist/{index-shpyv8gq.js → index-s8ks5nz4.js} +16 -9
- package/dist/{index-cfy5k1pa.js → index-sbr58jaf.js} +5 -5
- package/dist/{index-d028gmgp.js → index-tzbcb8yt.js} +14 -14
- package/dist/{index-skwwbcnv.js → index-w6v4dw5f.js} +24 -24
- package/dist/{index-5wjv4c41.js → index-xccywqdj.js} +15 -15
- package/dist/{index-kthfyf45.js → index-zmqx48vt.js} +3 -3
- package/dist/index.js +33 -33
- package/dist/migration-worker.js +4 -3
- package/dist/{project-embedding-registry-y3z36mjy.js → project-embedding-registry-q80scexh.js} +6 -4
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-m2s3jpvj.js → recomp-orchestrator-xzs0a455.js} +16 -15
- package/dist/{render-p2j7rn9a.js → render-yqp7q79f.js} +8 -7
- package/dist/{search-archive-hz9xh7nh.js → search-archive-r4h96j2z.js} +2 -2
- package/dist/{search-ksx0f1qd.js → search-ztgy3ya6.js} +12 -10
- package/dist/shared/storage-file-mutex.d.ts.map +1 -1
- package/dist/shared/storage-permissions.d.ts +5 -3
- package/dist/shared/storage-permissions.d.ts.map +1 -1
- package/dist/{store-x0swqb5c.js → store-n4yz3n66.js} +2 -2
- package/dist/{store-reader-tsv1w4vt.js → store-reader-nf8z86n9.js} +1 -1
- package/dist/{transform-postprocess-phase-1wb2rrr1.js → transform-postprocess-phase-39a5hm2a.js} +17 -16
- package/dist/v2/auto-search-worker.js +3 -3
- package/dist/v2/chunk-embedding-write-worker.js +5 -4
- package/dist/v2/{context-at9nje0j.js → context-k2rrqzf4.js} +39 -39
- package/dist/v2/{derive-budgets-xbwcap8k.js → derive-budgets-ecjy1aqh.js} +4 -2
- package/dist/v2/{embedding-backfill-hjvjxp7d.js → embedding-backfill-k8kqnwfq.js} +7 -5
- package/dist/v2/embedding-worker.js +15 -27
- package/dist/v2/migration-worker.js +4 -3
- package/dist/v2/{project-embedding-registry-mzsvyads.js → project-embedding-registry-2jp1antr.js} +6 -4
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-nhef90gc.js → recomp-orchestrator-jnbxbsc8.js} +17 -16
- package/dist/v2/{render-c9r2g2jv.js → render-fezgh7pa.js} +8 -7
- package/dist/v2/{search-archive-80ckv9kq.js → search-archive-zz1kza50.js} +2 -2
- package/dist/v2/{search-t06js5dc.js → search-h5w7510x.js} +11 -9
- package/dist/v2/{server-4z964n1c.js → server-3p6b0qya.js} +1 -1
- package/dist/v2/{server-3cndh146.js → server-4wwwm2ya.js} +24 -24
- package/dist/v2/{server-mr9rqn0y.js → server-97w51d8n.js} +4 -4
- package/dist/v2/{server-gx1s06dx.js → server-98hsp35q.js} +2 -2
- package/dist/v2/{server-d706s5xn.js → server-b93f0bqh.js} +205 -17
- package/dist/v2/{server-dfesqfv1.js → server-brgandk4.js} +1 -1
- package/dist/v2/{server-w1jfaxas.js → server-cwtehwbb.js} +1 -1
- package/dist/v2/{server-y4favn4d.js → server-e2k9mt86.js} +1 -1
- package/dist/v2/{server-68q80y27.js → server-hn8b7sfe.js} +16 -9
- package/dist/v2/{server-pejjj0nv.js → server-mbkwcwgw.js} +1 -1
- package/dist/v2/{server-ry6rpspz.js → server-n5zr7190.js} +15 -15
- package/dist/v2/{server-210rc0z9.js → server-ps6rz88g.js} +1 -1
- package/dist/{index-fvnzcnww.js → v2/server-r2es6zt7.js} +192 -11
- package/dist/v2/{server-bt546axy.js → server-rz4snd3x.js} +3 -3
- package/dist/v2/{server-3hhakg5a.js → server-s76ty4ws.js} +13 -13
- package/dist/v2/{server-hhw6rzsn.js → server-w7mpvkpj.js} +1 -1
- package/dist/v2/{server-863bwkga.js → server-x77hd658.js} +6 -6
- package/dist/v2/{server-sy98vksf.js → server-xa8fefhw.js} +3 -3
- package/dist/v2/{server-cce6m31c.js → server-ytqps2xa.js} +1 -1
- package/dist/v2/server.js +6 -4
- package/dist/v2/{store-reader-paamf0ac.js → store-reader-2vhx33n6.js} +1 -1
- package/dist/v2/{store-h3s95ywe.js → store-y56y034s.js} +2 -2
- package/dist/v2/{v2-archive-reader-1zzteaa5.js → v2-archive-reader-e2w39c3p.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-9y98qcqz.js → wrapup-orchestrator-mmje3etf.js} +16 -15
- package/dist/{v2-archive-reader-3yjxaj5z.js → v2-archive-reader-8dsngf2j.js} +1 -1
- package/dist/{wrapup-orchestrator-sa3a075a.js → wrapup-orchestrator-sm6pwf3p.js} +17 -16
- package/package.json +1 -1
- package/src/shared/storage-file-mutex-review.test.ts +125 -2
- package/src/shared/storage-file-mutex.ts +17 -8
- package/src/shared/storage-permissions-creators.test.ts +194 -0
- package/src/shared/storage-permissions-startup.test.ts +476 -0
- package/src/shared/storage-permissions.ts +227 -12
- /package/dist/{index-rdh63md0.js → index-1y4y98r1.js} +0 -0
- /package/dist/v2/{server-9nk5h6w6.js → server-qyazxy92.js} +0 -0
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
renderVerboseRangeForTool2,
|
|
4
4
|
renderItemByTag2
|
|
5
5
|
} from "./index-70cv85b0.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
import"./index-w6v4dw5f.js";
|
|
7
|
+
import"./index-4ntnt8ee.js";
|
|
8
8
|
import"./index-05bm2ndp.js";
|
|
9
9
|
import"./index-2amn2s73.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-1y4y98r1.js";
|
|
11
11
|
import"./index-7j2zv9nm.js";
|
|
12
12
|
import"./index-xrnhxkz7.js";
|
|
13
13
|
import"./index-1zx87sdm.js";
|
|
@@ -15,20 +15,21 @@ import"./index-x40zr813.js";
|
|
|
15
15
|
import"./index-6nqz8hsz.js";
|
|
16
16
|
import"./index-snbpdpa3.js";
|
|
17
17
|
import"./index-pxnzyvjc.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-xccywqdj.js";
|
|
19
19
|
import"./index-fb3zxn06.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-4w5rx7de.js";
|
|
21
21
|
import"./index-fr0wbhdn.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-7svecf3m.js";
|
|
23
23
|
import"./index-s32f8y67.js";
|
|
24
24
|
import"./index-wh9fxds5.js";
|
|
25
|
-
import"./index-gqf8r04r.js";
|
|
26
25
|
import"./index-jrj95cce.js";
|
|
27
26
|
import"./index-q7q6qp1f.js";
|
|
28
27
|
import"./index-96ztjvkn.js";
|
|
29
28
|
import"./index-v0p37hm2.js";
|
|
30
29
|
import"./index-58e3y90n.js";
|
|
31
30
|
import"./index-m0pwswv9.js";
|
|
31
|
+
import"./index-c5tmzym6.js";
|
|
32
|
+
import"./index-gqf8r04r.js";
|
|
32
33
|
import"./index-5vsk2cpp.js";
|
|
33
34
|
import"./index-gzy5w8ya.js";
|
|
34
35
|
import"./index-ywrz4wy2.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSearchArchive2,
|
|
3
3
|
renderSearchArchiveOffThread2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-nny4gm06.js";
|
|
5
|
+
import"./index-1pf5qrx4.js";
|
|
6
6
|
import"./index-52x68mj4.js";
|
|
7
7
|
import"./index-7j2zv9nm.js";
|
|
8
8
|
import"./index-xrnhxkz7.js";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
} from "./index-0rge5rkh.js";
|
|
9
|
+
import"./index-798s7c8s.js";
|
|
10
10
|
import"./index-52x68mj4.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-pw279hmt.js";
|
|
12
|
+
import"./index-k0tb2z28.js";
|
|
13
13
|
import"./index-jjvbk92s.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-s8ks5nz4.js";
|
|
15
15
|
import"./index-4dhv7mqz.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-4ntnt8ee.js";
|
|
17
17
|
import"./index-05bm2ndp.js";
|
|
18
18
|
import"./index-2amn2s73.js";
|
|
19
19
|
import"./index-qt1qqasc.js";
|
|
@@ -21,14 +21,14 @@ import"./index-7j2zv9nm.js";
|
|
|
21
21
|
import"./index-xrnhxkz7.js";
|
|
22
22
|
import"./index-1zx87sdm.js";
|
|
23
23
|
import"./index-x40zr813.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-k50xhjw1.js";
|
|
25
25
|
import"./index-6nqz8hsz.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-3dtzyred.js";
|
|
27
27
|
import"./index-snbpdpa3.js";
|
|
28
28
|
import"./index-pxnzyvjc.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-4w5rx7de.js";
|
|
30
30
|
import"./index-fr0wbhdn.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-7svecf3m.js";
|
|
32
32
|
import"./index-s32f8y67.js";
|
|
33
33
|
import"./index-jrj95cce.js";
|
|
34
34
|
import"./index-q7q6qp1f.js";
|
|
@@ -36,6 +36,8 @@ import"./index-96ztjvkn.js";
|
|
|
36
36
|
import"./index-v0p37hm2.js";
|
|
37
37
|
import"./index-58e3y90n.js";
|
|
38
38
|
import"./index-m0pwswv9.js";
|
|
39
|
+
import"./index-c5tmzym6.js";
|
|
40
|
+
import"./index-gqf8r04r.js";
|
|
39
41
|
import"./index-5vsk2cpp.js";
|
|
40
42
|
import"./index-gzy5w8ya.js";
|
|
41
43
|
import"./index-ywrz4wy2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-file-mutex.d.ts","sourceRoot":"","sources":["../../src/shared/storage-file-mutex.ts"],"names":[],"mappings":"AAuDA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,SAAS,SAAO,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"storage-file-mutex.d.ts","sourceRoot":"","sources":["../../src/shared/storage-file-mutex.ts"],"names":[],"mappings":"AAuDA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,SAAS,SAAO,GAAG,CAAC,CAsF7F"}
|
|
@@ -18,8 +18,10 @@ export declare function writeStorageFileSync(filePath: string, content: string |
|
|
|
18
18
|
export declare function writeStorageFileAtomicSync(filePath: string, content: string | Uint8Array, forcePrivate?: boolean): void;
|
|
19
19
|
/** Flush the namespace containing a safety-critical sidecar (POSIX only). */
|
|
20
20
|
export declare function syncStorageDirectorySync(directory: string): void;
|
|
21
|
-
/** Publish a safety record only after both its bytes and directory entry are durable.
|
|
22
|
-
|
|
21
|
+
/** Publish a safety record only after both its bytes and directory entry are durable.
|
|
22
|
+
* Hold the mutex through this call to use a constant tempPath.
|
|
23
|
+
*/
|
|
24
|
+
export declare function writeStorageFileDurableAtomicSync(filePath: string, content: string, afterTempSync?: () => void, tempPath?: string): void;
|
|
23
25
|
export declare function copyStorageFileSync(sourcePath: string, destinationPath: string, forcePrivate?: boolean): void;
|
|
24
26
|
export declare function copyStorageTreeSync(sourcePath: string, destinationPath: string, forcePrivate?: boolean): void;
|
|
25
27
|
export declare function openStorageFileSync(filePath: string, flags: string, forcePrivate?: boolean): number;
|
|
@@ -28,7 +30,7 @@ export declare function writeStorageFileHandleAsync(handle: FileHandle, content:
|
|
|
28
30
|
export declare function createStorageWriteStream(filePath: string, forcePrivate?: boolean): WriteStream;
|
|
29
31
|
export declare function createStorageFileHandleAsync(filePath: string, flags: string, forcePrivate?: boolean): Promise<FileHandle>;
|
|
30
32
|
/** Tighten existing entries during storage startup; symlinks are never followed. */
|
|
31
|
-
export declare function tightenStorageTreeSync(
|
|
33
|
+
export declare function tightenStorageTreeSync(directory: string, dbPath?: string): {
|
|
32
34
|
tightened: number;
|
|
33
35
|
failures: number;
|
|
34
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-permissions.d.ts","sourceRoot":"","sources":["../../src/shared/storage-permissions.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"storage-permissions.d.ts","sourceRoot":"","sources":["../../src/shared/storage-permissions.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAS,WAAW,EAAE,MAAM,SAAS,CAAC;AAqBlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAuCnD,wBAAgB,sCAAsC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAY7E;AAED,wBAAgB,sCAAsC,IAAI,OAAO,CAEhE;AAED,wFAAwF;AACxF,wBAAgB,kDAAkD,IAAI,IAAI,CAEzE;AAED,gFAAgF;AAChF,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,MAAM,EACjB,YAAY,UAAQ,EACpB,SAAS,UAAO,GACjB,IAAI,CAMN;AAED,kGAAkG;AAClG,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CASzE;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GAAG,UAAU,EAC5B,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GACnF,IAAI,CAON;AAED,2FAA2F;AAC3F,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GAAG,UAAU,EAC5B,YAAY,UAAQ,GACrB,IAAI,CAUN;AAED,6EAA6E;AAC7E,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAOhE;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC7C,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,MAAM,IAAI,EAC1B,QAAQ,SAAsE,GAC/E,IAAI,CAkBN;AAED,wBAAgB,mBAAmB,CAC/B,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,YAAY,UAAQ,GACrB,IAAI,CAuBN;AAED,wBAAgB,mBAAmB,CAC/B,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,YAAY,UAAQ,GACrB,IAAI,CAeN;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,MAAM,CAIjG;AAED,wBAAsB,qBAAqB,CACvC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GAAG,UAAU,EAC5B,YAAY,UAAQ,GACrB,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,wBAAsB,2BAA2B,CAC7C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,WAAW,CAG5F;AAED,wBAAsB,4BAA4B,CAC9C,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,YAAY,UAAQ,uBAIvB;AAgCD,oFAAoF;AACpF,wBAAgB,sBAAsB,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,SAAgC,GACvC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAuKzC"}
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
readV2RawMessagePagesForConversion2,
|
|
9
9
|
createV2RawMessageReader2,
|
|
10
10
|
createV2RawMessageProvider2
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-08jfpny9.js";
|
|
12
|
+
import"./index-1y4y98r1.js";
|
|
13
13
|
import"./index-wh9fxds5.js";
|
|
14
14
|
import"./index-58e3y90n.js";
|
|
15
15
|
import"./index-gzy5w8ya.js";
|
package/dist/{transform-postprocess-phase-1wb2rrr1.js → transform-postprocess-phase-39a5hm2a.js}
RENAMED
|
@@ -19,22 +19,22 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
} from "./index-sbr58jaf.js";
|
|
23
|
+
import"./index-798s7c8s.js";
|
|
24
|
+
import"./index-tzbcb8yt.js";
|
|
25
25
|
import"./index-832w615x.js";
|
|
26
26
|
import"./index-sd3egckz.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-pw279hmt.js";
|
|
28
|
+
import"./index-k0tb2z28.js";
|
|
29
29
|
import"./index-jjvbk92s.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-s8ks5nz4.js";
|
|
31
31
|
import"./index-4dhv7mqz.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-w6v4dw5f.js";
|
|
33
|
+
import"./index-4ntnt8ee.js";
|
|
34
34
|
import"./index-05bm2ndp.js";
|
|
35
35
|
import"./index-2amn2s73.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-1y4y98r1.js";
|
|
37
|
+
import"./index-zmqx48vt.js";
|
|
38
38
|
import"./index-g6hfh4h4.js";
|
|
39
39
|
import"./index-qt1qqasc.js";
|
|
40
40
|
import"./index-7j2zv9nm.js";
|
|
@@ -43,25 +43,26 @@ import"./index-1zx87sdm.js";
|
|
|
43
43
|
import"./index-x40zr813.js";
|
|
44
44
|
import"./index-fzgyvsb1.js";
|
|
45
45
|
import"./index-e6ncz7a6.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-k50xhjw1.js";
|
|
47
47
|
import"./index-6nqz8hsz.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-3dtzyred.js";
|
|
49
49
|
import"./index-snbpdpa3.js";
|
|
50
50
|
import"./index-pxnzyvjc.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-xccywqdj.js";
|
|
52
52
|
import"./index-fb3zxn06.js";
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-4w5rx7de.js";
|
|
54
54
|
import"./index-fr0wbhdn.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-7svecf3m.js";
|
|
56
56
|
import"./index-s32f8y67.js";
|
|
57
57
|
import"./index-wh9fxds5.js";
|
|
58
|
-
import"./index-gqf8r04r.js";
|
|
59
58
|
import"./index-jrj95cce.js";
|
|
60
59
|
import"./index-q7q6qp1f.js";
|
|
61
60
|
import"./index-96ztjvkn.js";
|
|
62
61
|
import"./index-v0p37hm2.js";
|
|
63
62
|
import"./index-58e3y90n.js";
|
|
64
63
|
import"./index-m0pwswv9.js";
|
|
64
|
+
import"./index-c5tmzym6.js";
|
|
65
|
+
import"./index-gqf8r04r.js";
|
|
65
66
|
import"./index-5vsk2cpp.js";
|
|
66
67
|
import"./index-gzy5w8ya.js";
|
|
67
68
|
import"./index-ywrz4wy2.js";
|
|
@@ -27,11 +27,11 @@ serveWorkerJobs(async (initial, port) => {
|
|
|
27
27
|
{ Database, registerSqliteDiagnosticSink },
|
|
28
28
|
{ log }
|
|
29
29
|
] = await Promise.all([
|
|
30
|
-
import("./embedding-backfill-
|
|
30
|
+
import("./embedding-backfill-k8kqnwfq.js"),
|
|
31
31
|
import("./embedding-cache-mgyr73ef.js"),
|
|
32
32
|
import("./storage-memory-e6a7mb0k.js"),
|
|
33
|
-
import("./project-embedding-registry-
|
|
34
|
-
import("./search-
|
|
33
|
+
import("./project-embedding-registry-2jp1antr.js"),
|
|
34
|
+
import("./search-h5w7510x.js"),
|
|
35
35
|
import("./compartment-chunk-embedding-x6qw6mjk.js"),
|
|
36
36
|
import("./embedding-activity-g1dhes6g.js"),
|
|
37
37
|
import("./harness-e4avh192.js"),
|
|
@@ -30,15 +30,16 @@ import {
|
|
|
30
30
|
renewGitSweepLease,
|
|
31
31
|
releaseGitSweepLease,
|
|
32
32
|
recordSessionProjectIdentity
|
|
33
|
-
} from "./server-
|
|
34
|
-
import"./server-bt546axy.js";
|
|
33
|
+
} from "./server-3p6b0qya.js";
|
|
35
34
|
import"./server-jdfe07mp.js";
|
|
35
|
+
import"./server-r2es6zt7.js";
|
|
36
|
+
import"./server-rz4snd3x.js";
|
|
36
37
|
import {
|
|
37
38
|
LATEST_SUPPORTED_VERSION,
|
|
38
39
|
enforceSchemaFence
|
|
39
|
-
} from "./server-
|
|
40
|
+
} from "./server-n5zr7190.js";
|
|
40
41
|
import"./server-39bcszk4.js";
|
|
41
|
-
import"./server-
|
|
42
|
+
import"./server-ps6rz88g.js";
|
|
42
43
|
import"./server-a2f1bhyj.js";
|
|
43
44
|
import"./server-fr0wbhdn.js";
|
|
44
45
|
import"./server-2ra6pwf3.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveLegacyConfigSources,
|
|
8
8
|
getProtectedTokensTierOverrides,
|
|
9
9
|
loadPluginConfigDetailed
|
|
10
|
-
} from "./server-
|
|
10
|
+
} from "./server-e2k9mt86.js";
|
|
11
11
|
import {
|
|
12
12
|
getHarness2,
|
|
13
13
|
harnessOwnsOpenCodeStore2
|
|
@@ -26,6 +26,20 @@ import {
|
|
|
26
26
|
sanitizeDiagnosticText,
|
|
27
27
|
hasShareabilitySensitiveText
|
|
28
28
|
} from "./server-z4p0ry94.js";
|
|
29
|
+
import {
|
|
30
|
+
registerOwnRpcServerInstance,
|
|
31
|
+
rpcPortDir,
|
|
32
|
+
rpcPortFilePath,
|
|
33
|
+
parseRpcPortFile,
|
|
34
|
+
inspectProcessesAsync
|
|
35
|
+
} from "./server-jdfe07mp.js";
|
|
36
|
+
import {
|
|
37
|
+
shouldEnforcePrivateStoragePermissions,
|
|
38
|
+
ensureStorageDirectorySync,
|
|
39
|
+
writeStorageFileAtomicSync,
|
|
40
|
+
writeStorageFileAsync,
|
|
41
|
+
createStorageWriteStream
|
|
42
|
+
} from "./server-r2es6zt7.js";
|
|
29
43
|
import {
|
|
30
44
|
hasTrustedAbsoluteWall,
|
|
31
45
|
applyProvenInputFloor,
|
|
@@ -38,7 +52,7 @@ import {
|
|
|
38
52
|
getSdkContextLimit,
|
|
39
53
|
getSdkOutputLimit,
|
|
40
54
|
getModelsDevCacheState
|
|
41
|
-
} from "./server-
|
|
55
|
+
} from "./server-xa8fefhw.js";
|
|
42
56
|
import {
|
|
43
57
|
string,
|
|
44
58
|
number,
|
|
@@ -228,7 +242,7 @@ import {
|
|
|
228
242
|
startCompartmentAgent,
|
|
229
243
|
setRecompStarting2,
|
|
230
244
|
setRecompTerminal2
|
|
231
|
-
} from "./server-
|
|
245
|
+
} from "./server-s76ty4ws.js";
|
|
232
246
|
import {
|
|
233
247
|
embedPauseBySession,
|
|
234
248
|
embedRunStateBySession,
|
|
@@ -292,13 +306,6 @@ import"./server-ds8vpfkr.js";
|
|
|
292
306
|
import {
|
|
293
307
|
deleteChunkEmbedBackoffForSession2
|
|
294
308
|
} from "./server-8pdfmc27.js";
|
|
295
|
-
import {
|
|
296
|
-
registerOwnRpcServerInstance,
|
|
297
|
-
rpcPortDir,
|
|
298
|
-
rpcPortFilePath,
|
|
299
|
-
parseRpcPortFile,
|
|
300
|
-
inspectProcessesAsync
|
|
301
|
-
} from "./server-jdfe07mp.js";
|
|
302
309
|
import {
|
|
303
310
|
acquireCompartmentLease,
|
|
304
311
|
releaseCompartmentLeaseBestEffort,
|
|
@@ -418,7 +425,7 @@ import {
|
|
|
418
425
|
saveSourceContent,
|
|
419
426
|
replaceSourceContent,
|
|
420
427
|
getSourceContents
|
|
421
|
-
} from "./server-
|
|
428
|
+
} from "./server-4wwwm2ya.js";
|
|
422
429
|
import {
|
|
423
430
|
cleanSearchText,
|
|
424
431
|
matchedSearchSnippet,
|
|
@@ -722,7 +729,7 @@ import {
|
|
|
722
729
|
storedPathBelongsToIdentity,
|
|
723
730
|
beginBootQuietPeriod,
|
|
724
731
|
scheduleAfterBootQuiet
|
|
725
|
-
} from "./server-
|
|
732
|
+
} from "./server-rz4snd3x.js";
|
|
726
733
|
import {
|
|
727
734
|
resolveModelCalibration,
|
|
728
735
|
calibrateBuckets,
|
|
@@ -811,7 +818,7 @@ import {
|
|
|
811
818
|
resolveMemoriesByIdsForSearch2,
|
|
812
819
|
unifiedSearch2,
|
|
813
820
|
formatSearchResults2
|
|
814
|
-
} from "./server-
|
|
821
|
+
} from "./server-x77hd658.js";
|
|
815
822
|
import {
|
|
816
823
|
startBootDeadline,
|
|
817
824
|
getUnconfirmedMigrationHolders,
|
|
@@ -827,7 +834,7 @@ import {
|
|
|
827
834
|
openDatabaseAsync,
|
|
828
835
|
isDatabasePersisted,
|
|
829
836
|
getDatabasePersistenceError
|
|
830
|
-
} from "./server-
|
|
837
|
+
} from "./server-n5zr7190.js";
|
|
831
838
|
import {
|
|
832
839
|
V2_MEMORY_CATEGORIES,
|
|
833
840
|
CATEGORY_PRIORITY
|
|
@@ -840,13 +847,13 @@ import {
|
|
|
840
847
|
resolveStoredPathWorkspaceIdentity,
|
|
841
848
|
storedPathBelongsToWorkspace,
|
|
842
849
|
computeWorkspaceEpochFingerprint
|
|
843
|
-
} from "./server-
|
|
850
|
+
} from "./server-ps6rz88g.js";
|
|
844
851
|
import {
|
|
845
852
|
gaDatabasePath2,
|
|
846
853
|
RAW_MESSAGE_TYPES2,
|
|
847
854
|
V2StoreReaderPool2,
|
|
848
855
|
V2StoreReader2
|
|
849
|
-
} from "./server-
|
|
856
|
+
} from "./server-qyazxy92.js";
|
|
850
857
|
import {
|
|
851
858
|
configureContextDatabasePragmas2
|
|
852
859
|
} from "./server-fb3zxn06.js";
|
|
@@ -875,14 +882,14 @@ import {
|
|
|
875
882
|
createPrimer,
|
|
876
883
|
updatePrimerSupport,
|
|
877
884
|
updatePrimerAnswer
|
|
878
|
-
} from "./server-
|
|
885
|
+
} from "./server-w7mpvkpj.js";
|
|
879
886
|
import {
|
|
880
887
|
deriveTriggerBudget2,
|
|
881
888
|
deriveHistorianChunkTokens2,
|
|
882
889
|
resolveKnownHistorianContextLimit2,
|
|
883
890
|
resolveHistorianProducerLimits2,
|
|
884
891
|
resolveHistorianContextLimit2
|
|
885
|
-
} from "./server-
|
|
892
|
+
} from "./server-cwtehwbb.js";
|
|
886
893
|
import"./server-at0v0z4t.js";
|
|
887
894
|
import {
|
|
888
895
|
isEmbeddingHostBusy2
|
|
@@ -908,7 +915,7 @@ import {
|
|
|
908
915
|
embedSessionCompartmentChunks2,
|
|
909
916
|
getEmbeddingCoverageStatus2,
|
|
910
917
|
getAutoEmbeddingSessionCoverage2
|
|
911
|
-
} from "./server-
|
|
918
|
+
} from "./server-hn8b7sfe.js";
|
|
912
919
|
import {
|
|
913
920
|
GIT_SWEEP_LEASE_RENEWAL_MS,
|
|
914
921
|
acquireGitSweepLease,
|
|
@@ -918,7 +925,7 @@ import {
|
|
|
918
925
|
releaseGitSweepLease,
|
|
919
926
|
recordSessionProjectIdentity,
|
|
920
927
|
hasRecordedSessionProjectIdentity
|
|
921
|
-
} from "./server-
|
|
928
|
+
} from "./server-3p6b0qya.js";
|
|
922
929
|
import {
|
|
923
930
|
saveEmbeddingIfHashMatches,
|
|
924
931
|
invalidateProject2,
|
|
@@ -928,7 +935,7 @@ import {
|
|
|
928
935
|
getCachedLocalEmbeddingPooling,
|
|
929
936
|
preflightLocalEmbeddingPooling,
|
|
930
937
|
getLocalEmbeddingNativeMemoryStats
|
|
931
|
-
} from "./server-
|
|
938
|
+
} from "./server-b93f0bqh.js";
|
|
932
939
|
import {
|
|
933
940
|
renderUserFacingFailure,
|
|
934
941
|
userFacingFailureCode,
|
|
@@ -948,8 +955,8 @@ import {
|
|
|
948
955
|
readGitFileChangeTimesSince,
|
|
949
956
|
verificationFileExists,
|
|
950
957
|
normalizeVerificationFiles
|
|
951
|
-
} from "./server-
|
|
952
|
-
import"./server-
|
|
958
|
+
} from "./server-98hsp35q.js";
|
|
959
|
+
import"./server-mbkwcwgw.js";
|
|
953
960
|
import {
|
|
954
961
|
computeCueContentHash,
|
|
955
962
|
hasMuralCueColumns,
|
|
@@ -1015,7 +1022,7 @@ import {
|
|
|
1015
1022
|
readV2RawMessagePagesForConversion2,
|
|
1016
1023
|
createV2RawMessageReader2,
|
|
1017
1024
|
createV2RawMessageProvider2
|
|
1018
|
-
} from "./server-
|
|
1025
|
+
} from "./server-ytqps2xa.js";
|
|
1019
1026
|
import {
|
|
1020
1027
|
resolvePromptContext2
|
|
1021
1028
|
} from "./server-fmsr7v69.js";
|
|
@@ -1027,10 +1034,10 @@ import {
|
|
|
1027
1034
|
import"./server-52x68mj4.js";
|
|
1028
1035
|
import {
|
|
1029
1036
|
readV2ArchiveOffThread2
|
|
1030
|
-
} from "./server-
|
|
1037
|
+
} from "./server-97w51d8n.js";
|
|
1031
1038
|
import {
|
|
1032
1039
|
renderSearchArchiveOffThread2
|
|
1033
|
-
} from "./server-
|
|
1040
|
+
} from "./server-brgandk4.js";
|
|
1034
1041
|
import {
|
|
1035
1042
|
markHostInstructionRow,
|
|
1036
1043
|
hostInstructionRow,
|
|
@@ -1061,10 +1068,6 @@ import {
|
|
|
1061
1068
|
piModelRefToCanonical,
|
|
1062
1069
|
modelRefLookupOrder
|
|
1063
1070
|
} from "./server-avwt563y.js";
|
|
1064
|
-
import {
|
|
1065
|
-
sameProjectDirectory,
|
|
1066
|
-
canonicalProjectDirectory
|
|
1067
|
-
} from "./server-knvkbfvh.js";
|
|
1068
1071
|
import {
|
|
1069
1072
|
getErrorMessage,
|
|
1070
1073
|
describeError
|
|
@@ -1077,12 +1080,9 @@ import {
|
|
|
1077
1080
|
logSlowWriteTransaction
|
|
1078
1081
|
} from "./server-5sbsnpkn.js";
|
|
1079
1082
|
import {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
writeStorageFileAsync,
|
|
1084
|
-
createStorageWriteStream
|
|
1085
|
-
} from "./server-fvnzcnww.js";
|
|
1083
|
+
sameProjectDirectory,
|
|
1084
|
+
canonicalProjectDirectory
|
|
1085
|
+
} from "./server-knvkbfvh.js";
|
|
1086
1086
|
|
|
1087
1087
|
// ../../node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/external.js
|
|
1088
1088
|
var exports_external = {};
|
|
@@ -26360,7 +26360,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26360
26360
|
return { count: buildCompartmentCount(db, sessionId, moduleStatus) };
|
|
26361
26361
|
});
|
|
26362
26362
|
const buildManagedCtx = async (db) => {
|
|
26363
|
-
const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-
|
|
26363
|
+
const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-ecjy1aqh.js"));
|
|
26364
26364
|
const { resolveHistorianModel } = await importPluginModule(() => import("./model-resolution-280gmqvd.js"));
|
|
26365
26365
|
const { userObservationCollectionEnabled, userObservationsRequested } = await importPluginModule(() => import("./task-config-ex2vajr2.js"));
|
|
26366
26366
|
const DEFAULT_HISTORIAN_TIMEOUT_MS = 10 * 60 * 1000;
|
|
@@ -26412,7 +26412,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26412
26412
|
const db = readDatabase();
|
|
26413
26413
|
if (!db)
|
|
26414
26414
|
return { ok: false, error: "db unavailable" };
|
|
26415
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
26415
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-jnbxbsc8.js"));
|
|
26416
26416
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-p52rhjzy.js"));
|
|
26417
26417
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
26418
26418
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -26497,7 +26497,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26497
26497
|
const db = readDatabase();
|
|
26498
26498
|
if (!db)
|
|
26499
26499
|
return { ok: false, error: "db unavailable" };
|
|
26500
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
26500
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-mmje3etf.js"));
|
|
26501
26501
|
const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
|
|
26502
26502
|
const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
|
|
26503
26503
|
if (!window)
|
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
resolveHistorianProducerLimits2,
|
|
6
6
|
resolveHistorianContextLimit2,
|
|
7
7
|
producerSourceLocalBudget2
|
|
8
|
-
} from "./server-
|
|
8
|
+
} from "./server-cwtehwbb.js";
|
|
9
9
|
import"./server-1zx87sdm.js";
|
|
10
|
-
import"./server-
|
|
10
|
+
import"./server-xa8fefhw.js";
|
|
11
|
+
import"./server-r2es6zt7.js";
|
|
12
|
+
import"./server-jdfe07mp.js";
|
|
11
13
|
import"./server-j8376q08.js";
|
|
12
14
|
import"./server-pavzsdc6.js";
|
|
13
15
|
import"./server-z4p0ry94.js";
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./server-
|
|
4
|
-
import"./server-
|
|
3
|
+
} from "./server-mbkwcwgw.js";
|
|
4
|
+
import"./server-hn8b7sfe.js";
|
|
5
5
|
import"./server-4dhv7mqz.js";
|
|
6
6
|
import"./server-2amn2s73.js";
|
|
7
7
|
import"./server-qt1qqasc.js";
|
|
8
|
-
import"./server-
|
|
8
|
+
import"./server-b93f0bqh.js";
|
|
9
9
|
import"./server-rz6g5xne.js";
|
|
10
|
-
import"./server-
|
|
10
|
+
import"./server-3p6b0qya.js";
|
|
11
11
|
import"./server-8pdfmc27.js";
|
|
12
12
|
import"./server-x6fn9x8q.js";
|
|
13
|
-
import"./server-
|
|
13
|
+
import"./server-rz4snd3x.js";
|
|
14
14
|
import"./server-ds8vpfkr.js";
|
|
15
15
|
import"./server-6ash6z8z.js";
|
|
16
16
|
import"./server-96ztjvkn.js";
|
|
17
17
|
import"./server-v0p37hm2.js";
|
|
18
18
|
import"./server-5sbsnpkn.js";
|
|
19
19
|
import"./server-y8xjr8rx.js";
|
|
20
|
+
import"./server-r2es6zt7.js";
|
|
21
|
+
import"./server-jdfe07mp.js";
|
|
20
22
|
import"./server-gzy5w8ya.js";
|
|
21
23
|
import"./server-j8376q08.js";
|
|
22
24
|
import"./server-pavzsdc6.js";
|
|
@@ -2,21 +2,24 @@ import {
|
|
|
2
2
|
setHarness2
|
|
3
3
|
} from "./server-pavzsdc6.js";
|
|
4
4
|
import {
|
|
5
|
-
log2
|
|
5
|
+
log2,
|
|
6
|
+
flushLogger2
|
|
6
7
|
} from "./server-j8376q08.js";
|
|
7
8
|
import"./server-z4p0ry94.js";
|
|
9
|
+
import"./server-jdfe07mp.js";
|
|
10
|
+
import {
|
|
11
|
+
setStoragePrivatePermissionEnforcement
|
|
12
|
+
} from "./server-r2es6zt7.js";
|
|
8
13
|
import"./server-rz6g5xne.js";
|
|
9
14
|
import"./server-x6fn9x8q.js";
|
|
10
15
|
import"./server-y8xjr8rx.js";
|
|
11
16
|
import"./server-gzy5w8ya.js";
|
|
12
17
|
import {
|
|
18
|
+
serveEmbeddingWorker,
|
|
13
19
|
resolveLocalEmbeddingWorkerRuntime,
|
|
14
20
|
getLocalEmbeddingNativeMemoryStats,
|
|
15
21
|
LocalEmbeddingProvider
|
|
16
|
-
} from "./server-
|
|
17
|
-
import {
|
|
18
|
-
setStoragePrivatePermissionEnforcement
|
|
19
|
-
} from "./server-fvnzcnww.js";
|
|
22
|
+
} from "./server-b93f0bqh.js";
|
|
20
23
|
|
|
21
24
|
// src/features/magic-context/memory/embedding-worker.ts
|
|
22
25
|
import { parentPort, workerData } from "node:worker_threads";
|
|
@@ -26,27 +29,12 @@ var unsafeNative = workerData.runtimePreference === "native" && resolveLocalEmbe
|
|
|
26
29
|
if (unsafeNative)
|
|
27
30
|
log2("[magic-context] native embedding worker teardown is unsafe on this Bun version; using WASM. Upgrade the host to Bun >=1.4.0 for native inference.");
|
|
28
31
|
var provider = new LocalEmbeddingProvider(workerData.model, workerData.maxInputTokens, workerData.dtype, unsafeNative ? "wasm" : workerData.runtimePreference);
|
|
29
|
-
|
|
30
|
-
parentPort
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
vectors = [];
|
|
37
|
-
for (let offset = 0;offset < request.texts.length; offset += 2) {
|
|
38
|
-
vectors.push(...await provider.embedBatch(request.texts.slice(offset, offset + 2)));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
parentPort?.postMessage({
|
|
42
|
-
id: request.id,
|
|
43
|
-
loaded,
|
|
44
|
-
vectors,
|
|
45
|
-
failure: provider.getLastFailureReason(),
|
|
46
|
-
stats: getLocalEmbeddingNativeMemoryStats()
|
|
47
|
-
}, vectors?.flatMap((vector) => vector ? [vector.buffer] : []) ?? []);
|
|
48
|
-
} catch (error) {
|
|
49
|
-
parentPort?.postMessage({ id: request.id, loaded: false, error: String(error) });
|
|
32
|
+
if (parentPort)
|
|
33
|
+
serveEmbeddingWorker(parentPort, provider, {
|
|
34
|
+
batchSize: 2,
|
|
35
|
+
stats: getLocalEmbeddingNativeMemoryStats,
|
|
36
|
+
exit: () => {
|
|
37
|
+
flushLogger2();
|
|
38
|
+
process.exit(0);
|
|
50
39
|
}
|
|
51
40
|
});
|
|
52
|
-
});
|
|
@@ -10,16 +10,17 @@ import {
|
|
|
10
10
|
import"./server-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./server-
|
|
13
|
+
} from "./server-ps6rz88g.js";
|
|
14
14
|
import"./server-a2f1bhyj.js";
|
|
15
15
|
import"./server-2ra6pwf3.js";
|
|
16
|
-
import"./server-bt546axy.js";
|
|
17
16
|
import"./server-jdfe07mp.js";
|
|
17
|
+
import"./server-r2es6zt7.js";
|
|
18
|
+
import"./server-rz4snd3x.js";
|
|
18
19
|
import"./server-fb3zxn06.js";
|
|
19
20
|
import {
|
|
20
21
|
setSqlitePragmaConfig,
|
|
21
22
|
initializeDatabase
|
|
22
|
-
} from "./server-
|
|
23
|
+
} from "./server-n5zr7190.js";
|
|
23
24
|
import"./server-39bcszk4.js";
|
|
24
25
|
import"./server-v0p37hm2.js";
|
|
25
26
|
import"./server-96ztjvkn.js";
|