@dudko.dev/agent-web 0.0.1 → 0.0.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/README.md CHANGED
@@ -37,6 +37,37 @@ npm install @browser-ai/web-llm @mlc-ai/web-llm
37
37
  npm install @modelcontextprotocol/sdk
38
38
  ```
39
39
 
40
+ ### CDN / standalone bundle (no build step)
41
+
42
+ `dist/agent-web.js` is a **self-contained ESM bundle** of the core — `ai`,
43
+ `zod` and `idb` are baked in. It ships in the npm package (so it's on every
44
+ CDN) and is attached to each
45
+ [GitHub release](https://github.com/dudko-dev/agent-web/releases) as
46
+ `agent-web-<version>.min.js`:
47
+
48
+ ```html
49
+ <script type="module">
50
+ import { createAgent, defineTool } from 'https://cdn.jsdelivr.net/npm/@dudko.dev/agent-web/dist/agent-web.js'
51
+ // or: https://unpkg.com/@dudko.dev/agent-web/dist/agent-web.js
52
+ </script>
53
+ ```
54
+
55
+ Bundler users can also opt into it via the `@dudko.dev/agent-web/bundle`
56
+ subpath. Optional provider peers stay external even in the bundle; in a
57
+ bundler-less page, map the ones you use with an import map (the runtime
58
+ `import()` respects it) — direct `LanguageModel`s and `gateway` specs need no
59
+ import map at all:
60
+
61
+ ```html
62
+ <script type="importmap">
63
+ {
64
+ "imports": {
65
+ "@ai-sdk/openai": "https://cdn.jsdelivr.net/npm/@ai-sdk/openai/+esm"
66
+ }
67
+ }
68
+ </script>
69
+ ```
70
+
40
71
  ## Quick start — cloud model, bring-your-own-key
41
72
 
42
73
  Keys are stored **encrypted at rest** (WebCrypto, IndexedDB) and referenced by
@@ -155,10 +186,11 @@ enters your core bundle.
155
186
  | `planner` / `synthesizer` | = `model` | per-stage model overrides (inherit base provider/creds if partial) |
156
187
  | `credentials` | — | a `CredentialStore` for `credentialRef` keys |
157
188
  | `tools` | `{}` | host tools (`defineTool`) |
189
+ | `availableTools` / `excludedTools` | — | whitelist / blacklist of tool names mounted from `tools` |
158
190
  | `toolMode` | `'auto'` | `native` \| `prompted` \| `auto` (cloud→native, local→prompted) |
159
191
  | `systemPrompt` | — | prepended to every phase |
160
192
  | `describeState` | — | serialize world state into prompt context |
161
- | `memory` | — | `ContextStore` (`IndexedDBStore` / `MemoryStore`) |
193
+ | `memory` | — | `ContextStore` (`IndexedDBStore` / `MemoryStore`); recent turns are read back into the planner prompt |
162
194
  | `maxIterations` / `maxStepsPerTask` / `maxRevisions` | 8 / 4 / 2 | loop caps |
163
195
  | `chatTimeoutMs` | 120000 | per-call watchdog |
164
196
  | `replan` / `synthesize` | `true` | toggle phases |
@@ -170,6 +202,8 @@ enters your core bundle.
170
202
  - [docs/providers.md](docs/providers.md) — every provider, CORS & direct-vs-proxy.
171
203
  - [docs/security.md](docs/security.md) — the token vault & its threat model.
172
204
  - [docs/tasks.md](docs/tasks.md) — status & roadmap.
205
+ - [`@dudko.dev/agent`](https://www.npmjs.com/package/@dudko.dev/agent) — the
206
+ Node/server sibling (stdio MCP, persistence/resume, OpenTelemetry, CLI).
173
207
 
174
208
  ## License
175
209