@dudko.dev/agent-web 0.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/LICENSE +21 -0
- package/README.md +176 -0
- package/dist/chunk-R7H4HSYT.js +22 -0
- package/dist/chunk-R7H4HSYT.js.map +1 -0
- package/dist/index.cjs +1407 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +835 -0
- package/dist/index.d.ts +835 -0
- package/dist/index.js +1298 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp.cjs +111 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +47 -0
- package/dist/mcp.d.ts +47 -0
- package/dist/mcp.js +83 -0
- package/dist/mcp.js.map +1 -0
- package/dist/webllm-IM3UD6YI.js +9 -0
- package/dist/webllm-IM3UD6YI.js.map +1 -0
- package/package.json +152 -0
package/package.json
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dudko.dev/agent-web",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Headless, configurable in-browser LLM agent on the Vercel AI SDK: multi-provider bring-your-own-key (OpenAI, Anthropic, Google, xAI, DeepSeek, gateway, openai-compatible) AND local WebGPU/WebLLM, native + prompted tool-calling, structured output, an encrypted IndexedDB token vault, and a plan → execute → replan → synthesize loop. UI-agnostic.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
13
|
+
"require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }
|
|
14
|
+
},
|
|
15
|
+
"./mcp": {
|
|
16
|
+
"import": { "types": "./dist/mcp.d.ts", "default": "./dist/mcp.js" },
|
|
17
|
+
"require": { "types": "./dist/mcp.d.cts", "default": "./dist/mcp.cjs" }
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
30
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
31
|
+
"test": "node --test --experimental-strip-types --disable-warning=ExperimentalWarning tests/*.test.ts",
|
|
32
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
|
33
|
+
"pretest": "npm run build"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"agent",
|
|
37
|
+
"ai-agent",
|
|
38
|
+
"llm",
|
|
39
|
+
"llm-agent",
|
|
40
|
+
"browser",
|
|
41
|
+
"in-browser",
|
|
42
|
+
"ai-sdk",
|
|
43
|
+
"vercel-ai-sdk",
|
|
44
|
+
"webgpu",
|
|
45
|
+
"webllm",
|
|
46
|
+
"mlc",
|
|
47
|
+
"openai",
|
|
48
|
+
"anthropic",
|
|
49
|
+
"google",
|
|
50
|
+
"gemini",
|
|
51
|
+
"xai",
|
|
52
|
+
"deepseek",
|
|
53
|
+
"ai-gateway",
|
|
54
|
+
"byok",
|
|
55
|
+
"mcp",
|
|
56
|
+
"offline",
|
|
57
|
+
"private",
|
|
58
|
+
"planner",
|
|
59
|
+
"replanner",
|
|
60
|
+
"plan-execute",
|
|
61
|
+
"tool-use",
|
|
62
|
+
"function-calling",
|
|
63
|
+
"structured-output",
|
|
64
|
+
"indexeddb",
|
|
65
|
+
"webcrypto",
|
|
66
|
+
"vault",
|
|
67
|
+
"memory",
|
|
68
|
+
"headless",
|
|
69
|
+
"typescript"
|
|
70
|
+
],
|
|
71
|
+
"author": {
|
|
72
|
+
"name": "Siarhei Dudko",
|
|
73
|
+
"email": "siarhei@dudko.dev",
|
|
74
|
+
"url": "https://dudko.dev"
|
|
75
|
+
},
|
|
76
|
+
"license": "MIT",
|
|
77
|
+
"repository": {
|
|
78
|
+
"type": "git",
|
|
79
|
+
"url": "git+https://github.com/dudko-dev/agent-web.git"
|
|
80
|
+
},
|
|
81
|
+
"homepage": "https://github.com/dudko-dev/agent-web#readme",
|
|
82
|
+
"bugs": {
|
|
83
|
+
"url": "https://github.com/dudko-dev/agent-web/issues"
|
|
84
|
+
},
|
|
85
|
+
"funding": [
|
|
86
|
+
{
|
|
87
|
+
"type": "individual",
|
|
88
|
+
"url": "http://dudko.dev/donate"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "buymeacoffee",
|
|
92
|
+
"url": "https://www.buymeacoffee.com/dudko.dev"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "paypal",
|
|
96
|
+
"url": "https://paypal.me/dudkodev"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "patreon",
|
|
100
|
+
"url": "https://patreon.com/dudko_dev"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"engines": {
|
|
104
|
+
"node": ">=18"
|
|
105
|
+
},
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"ai": "^6.0.218",
|
|
108
|
+
"idb": "^8.0.0",
|
|
109
|
+
"zod": "^4.4.3"
|
|
110
|
+
},
|
|
111
|
+
"peerDependencies": {
|
|
112
|
+
"@ai-sdk/openai": "^3.0.0",
|
|
113
|
+
"@ai-sdk/anthropic": "^3.0.0",
|
|
114
|
+
"@ai-sdk/google": "^3.0.0",
|
|
115
|
+
"@ai-sdk/openai-compatible": "^2.0.0",
|
|
116
|
+
"@ai-sdk/xai": "^3.0.0",
|
|
117
|
+
"@ai-sdk/deepseek": "^2.0.0",
|
|
118
|
+
"@browser-ai/web-llm": "^2.0.0",
|
|
119
|
+
"@browser-ai/core": "^2.0.0",
|
|
120
|
+
"@mlc-ai/web-llm": ">=0.2.70",
|
|
121
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
122
|
+
},
|
|
123
|
+
"peerDependenciesMeta": {
|
|
124
|
+
"@ai-sdk/openai": { "optional": true },
|
|
125
|
+
"@ai-sdk/anthropic": { "optional": true },
|
|
126
|
+
"@ai-sdk/google": { "optional": true },
|
|
127
|
+
"@ai-sdk/openai-compatible": { "optional": true },
|
|
128
|
+
"@ai-sdk/xai": { "optional": true },
|
|
129
|
+
"@ai-sdk/deepseek": { "optional": true },
|
|
130
|
+
"@browser-ai/web-llm": { "optional": true },
|
|
131
|
+
"@browser-ai/core": { "optional": true },
|
|
132
|
+
"@mlc-ai/web-llm": { "optional": true },
|
|
133
|
+
"@modelcontextprotocol/sdk": { "optional": true }
|
|
134
|
+
},
|
|
135
|
+
"devDependencies": {
|
|
136
|
+
"@ai-sdk/anthropic": "^3.0.92",
|
|
137
|
+
"@ai-sdk/deepseek": "^2.0.44",
|
|
138
|
+
"@ai-sdk/google": "^3.0.88",
|
|
139
|
+
"@ai-sdk/openai": "^3.0.80",
|
|
140
|
+
"@ai-sdk/openai-compatible": "^2.0.56",
|
|
141
|
+
"@ai-sdk/xai": "^3.0.102",
|
|
142
|
+
"@browser-ai/core": "^2.1.12",
|
|
143
|
+
"@browser-ai/web-llm": "^2.1.7",
|
|
144
|
+
"@mlc-ai/web-llm": "^0.2.84",
|
|
145
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
146
|
+
"@types/node": "^22.9.0",
|
|
147
|
+
"fake-indexeddb": "^6.2.5",
|
|
148
|
+
"prettier": "^3.3.3",
|
|
149
|
+
"tsup": "^8.5.1",
|
|
150
|
+
"typescript": "^5.6.0"
|
|
151
|
+
}
|
|
152
|
+
}
|