@browser-ai/core 1.0.0 → 2.0.1
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/README.md +32 -379
- package/dist/index.d.mts +41 -70
- package/dist/index.d.ts +41 -70
- package/dist/index.js +98 -62
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +72 -72
package/package.json
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@browser-ai/core",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Browser
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Jakob Hoeg Mørk",
|
|
7
|
-
"url": "https://jakobhoeg.dev"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/jakobhoeg/browser-ai.git",
|
|
12
|
-
"directory": "packages/vercel/
|
|
13
|
-
},
|
|
14
|
-
"main": "dist/index.js",
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"types": "./dist/index.d.ts",
|
|
19
|
-
"import": "./dist/index.js",
|
|
20
|
-
"require": "./dist/index.js"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist/**/*"
|
|
25
|
-
],
|
|
26
|
-
"sideEffects": false,
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "npm run clean && tsup",
|
|
29
|
-
"build:prod": "tsup",
|
|
30
|
-
"build:test": "npm run test:run && tsup",
|
|
31
|
-
"dev": "tsup --watch",
|
|
32
|
-
"clean": "rimraf dist",
|
|
33
|
-
"test": "vitest",
|
|
34
|
-
"test:watch": "vitest --watch",
|
|
35
|
-
"test:coverage": "vitest --coverage",
|
|
36
|
-
"test:run": "vitest run",
|
|
37
|
-
"dev:example": "npm run build && npm run -w examples/next-hybrid dev"
|
|
38
|
-
},
|
|
39
|
-
"keywords": [
|
|
40
|
-
"ai",
|
|
41
|
-
"ai-sdk",
|
|
42
|
-
"vercel",
|
|
43
|
-
"browser-ai",
|
|
44
|
-
"built-in-ai",
|
|
45
|
-
"chrome",
|
|
46
|
-
"edge",
|
|
47
|
-
"prompt-api",
|
|
48
|
-
"language-model",
|
|
49
|
-
"tool-calling",
|
|
50
|
-
"function-calling"
|
|
51
|
-
],
|
|
52
|
-
"license": "Apache License",
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@mediapipe/tasks-text": "^0.10.22-rc.20250304"
|
|
55
|
-
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"ai": "^
|
|
58
|
-
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@types/dom-chromium-ai": "^0.0.10",
|
|
61
|
-
"@types/node": "^20.0.0",
|
|
62
|
-
"@vitest/coverage-v8": "^1.0.0",
|
|
63
|
-
"jsdom": "^26.1.0",
|
|
64
|
-
"rimraf": "^5.0.0",
|
|
65
|
-
"tsup": "^8.0.0",
|
|
66
|
-
"typescript": "^5.0.0",
|
|
67
|
-
"vitest": "^1.0.0",
|
|
68
|
-
"zod": "^3.25.76"
|
|
69
|
-
},
|
|
70
|
-
"publishConfig": {
|
|
71
|
-
"access": "public"
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@browser-ai/core",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Browser AI model provider for Vercel AI SDK (Chrome & Edge)",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Jakob Hoeg Mørk",
|
|
7
|
+
"url": "https://jakobhoeg.dev"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/jakobhoeg/browser-ai.git",
|
|
12
|
+
"directory": "packages/vercel/browser-ai"
|
|
13
|
+
},
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist/**/*"
|
|
25
|
+
],
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "npm run clean && tsup",
|
|
29
|
+
"build:prod": "tsup",
|
|
30
|
+
"build:test": "npm run test:run && tsup",
|
|
31
|
+
"dev": "tsup --watch",
|
|
32
|
+
"clean": "rimraf dist",
|
|
33
|
+
"test": "vitest",
|
|
34
|
+
"test:watch": "vitest --watch",
|
|
35
|
+
"test:coverage": "vitest --coverage",
|
|
36
|
+
"test:run": "vitest run",
|
|
37
|
+
"dev:example": "npm run build && npm run -w examples/next-hybrid dev"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"ai",
|
|
41
|
+
"ai-sdk",
|
|
42
|
+
"vercel",
|
|
43
|
+
"browser-ai",
|
|
44
|
+
"built-in-ai",
|
|
45
|
+
"chrome",
|
|
46
|
+
"edge",
|
|
47
|
+
"prompt-api",
|
|
48
|
+
"language-model",
|
|
49
|
+
"tool-calling",
|
|
50
|
+
"function-calling"
|
|
51
|
+
],
|
|
52
|
+
"license": "Apache License",
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@mediapipe/tasks-text": "^0.10.22-rc.20250304"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"ai": "^6.0.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/dom-chromium-ai": "^0.0.10",
|
|
61
|
+
"@types/node": "^20.0.0",
|
|
62
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
63
|
+
"jsdom": "^26.1.0",
|
|
64
|
+
"rimraf": "^5.0.0",
|
|
65
|
+
"tsup": "^8.0.0",
|
|
66
|
+
"typescript": "^5.0.0",
|
|
67
|
+
"vitest": "^1.0.0",
|
|
68
|
+
"zod": "^3.25.76"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
}
|
|
73
73
|
}
|