@dudko.dev/agent-web-react 0.0.19 → 0.0.21
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 +10 -2
- package/dist/index.cjs +396 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +244 -10
- package/dist/index.d.ts +244 -10
- package/dist/index.js +394 -54
- package/dist/index.js.map +1 -1
- package/dist/styles.css +203 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -37,7 +37,10 @@ app with a single hook and (optionally) a set of pre-styled components:
|
|
|
37
37
|
> one edits a sticky-notes board, one drives any number of MCP servers (plus a
|
|
38
38
|
> 185-tool mock catalogue to show tool search), and one plays chess against you
|
|
39
39
|
> — your move triggers it, analyst subagents run in Web Workers. Cloud BYOK or
|
|
40
|
-
> local WebGPU, all in your browser.
|
|
40
|
+
> local WebGPU, all in your browser. Settings turn on tool consent, thinking, token
|
|
41
|
+
> and step limits, compaction, skills - the agent's own **notebook** (it writes down
|
|
42
|
+
> what it figured out, in the workspace, across reloads) and **web access** limited
|
|
43
|
+
> to hosts you list. Type to the agent while it works. Source in [`demo/`](demo/).
|
|
41
44
|
|
|
42
45
|
## Install
|
|
43
46
|
|
|
@@ -170,6 +173,7 @@ function Custom() {
|
|
|
170
173
|
| --- | --- |
|
|
171
174
|
| `run(goal, { images, files, attachments, label })` | Start a run (with attachments); resolves with the `RunResult` |
|
|
172
175
|
| `stop()` | Abort the in-flight run |
|
|
176
|
+
| `send(text)`, `stopSubagent(id)` | Say something to the running agent (shown to the model at its next boundary; the replanner re-checks the plan) / stop one subagent. `queued`, `notes` and `undelivered` show where a message is — see [docs/chat.md](docs/chat.md#talking-to-the-agent-while-it-works) |
|
|
173
177
|
| `reset()` | Clear the whole conversation (and the agent's memory of it) |
|
|
174
178
|
| `reload()` | Rebuild the agent (e.g. after storing a new key) |
|
|
175
179
|
| `status` | `idle` \| `initializing` \| `ready` \| `running` \| `error` |
|
|
@@ -420,6 +424,7 @@ use them standalone. The full guide: [docs/chat.md](docs/chat.md).
|
|
|
420
424
|
| `<ApprovalModeSwitch>` | Segmented consent-mode switch. |
|
|
421
425
|
| `<ChatHistoryList>` | Saved chats (from `useChatHistory`). |
|
|
422
426
|
| `<FilesPanel>` | A `VirtualFileSystem`, live: preview, download, delete, upload. |
|
|
427
|
+
| `<LearnedSkills>` | The agent's notebook (`learning`): its lessons, where each came from, forget. |
|
|
423
428
|
| `<ContextMeter>` | Tokens by kind, budget bar, last compaction, Compact. |
|
|
424
429
|
| `<PlanView>` | A plan's reasoning + step list. |
|
|
425
430
|
| `<ModelLoadBar>` | WebLLM download/init progress. |
|
|
@@ -472,7 +477,10 @@ from one place.
|
|
|
472
477
|
kind in the transcript, a chat saved and restored after a reload, an image
|
|
473
478
|
attached (shown, sent as a file part, saved in the workspace), a file
|
|
474
479
|
dropped anywhere on the page, consent in "Ask" mode, slash commands, the
|
|
475
|
-
chess move that triggers the agent, and Russian labels
|
|
480
|
+
chess move that triggers the agent, and Russian labels; the agent's
|
|
481
|
+
notebook (a lesson written, kept in the workspace across a reload, seen by the
|
|
482
|
+
planner, forgotten on request) and web access (off by default; an allowed page
|
|
483
|
+
is read, a metadata address is refused). The MCP and authorization servers it
|
|
476
484
|
talks to are started on loopback by [`e2e/servers.ts`](e2e/servers.ts), CORS
|
|
477
485
|
headers included — so the test also pins the deployment requirement that the
|
|
478
486
|
challenge header be exposed.
|