@forbocai/browser 0.4.4 → 0.4.8

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.
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/worker.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ // src/worker.ts
4
+ var import_web_llm = require("@mlc-ai/web-llm");
5
+ var handler = new import_web_llm.WebWorkerMLCEngineHandler();
6
+ self.onmessage = (msg) => {
7
+ handler.onmessage(msg);
8
+ };
@@ -0,0 +1,6 @@
1
+ // src/worker.ts
2
+ import { WebWorkerMLCEngineHandler } from "@mlc-ai/web-llm";
3
+ var handler = new WebWorkerMLCEngineHandler();
4
+ self.onmessage = (msg) => {
5
+ handler.onmessage(msg);
6
+ };
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
- "name": "@forbocai/browser",
3
- "version": "0.4.4",
4
- "license": "UNLICENSED",
5
- "description": "Web Browser implementation for ForbocAI SDK",
6
- "main": "dist/index.js",
7
- "module": "dist/index.mjs",
8
- "types": "dist/index.d.ts",
9
- "scripts": {
10
- "build": "tsup src/index.ts --format cjs,esm --dts",
11
- "dev": "tsup src/index.ts --watch",
12
- "test": "vitest"
13
- },
14
- "dependencies": {
15
- "@forbocai/core": "*",
16
- "@mlc-ai/web-llm": "^0.2.46",
17
- "@orama/orama": "^2.0.26",
18
- "@xenova/transformers": "^2.17.2"
19
- },
20
- "devDependencies": {
21
- "tsup": "^8.5.1",
22
- "typescript": "^5.9.3",
23
- "vitest": "^1.0.0"
24
- },
25
- "files": [
26
- "dist",
27
- "package.json"
28
- ]
29
- }
2
+ "name": "@forbocai/browser",
3
+ "version": "0.4.8",
4
+ "license": "UNLICENSED",
5
+ "description": "Web Browser implementation for ForbocAI SDK",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.mjs",
8
+ "types": "dist/index.d.ts",
9
+ "scripts": {
10
+ "build": "tsup src/index.ts src/worker.ts --format cjs,esm --dts",
11
+ "dev": "tsup src/index.ts --watch",
12
+ "test": "vitest"
13
+ },
14
+ "dependencies": {
15
+ "@forbocai/core": "^0.4.8",
16
+ "@mlc-ai/web-llm": "^0.2.46",
17
+ "@orama/orama": "^2.0.26",
18
+ "@xenova/transformers": "^2.17.2"
19
+ },
20
+ "devDependencies": {
21
+ "tsup": "^8.5.1",
22
+ "typescript": "^5.9.3",
23
+ "vitest": "^1.0.0"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "package.json"
28
+ ]
29
+ }