@artooi/ag-ui-web-component 0.2.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2] — 2026-06-02
11
+
12
+ ### Added
13
+ - **Friendly tool-call card labels.** The built-in tools now carry `x-summary`
14
+ labels (`navigate_to_route` → "Navigate", `list_routes` → "List pages",
15
+ `read_page` → "Read the page", state-hook `read_*`/`set_*` → "Read/Update
16
+ <name>"). For tools whose schema never reaches the browser — **server-side
17
+ tools** (drf-mcp, `@tool` registry) — a new `toolSummaries: Record<string,
18
+ string>` property maps tool name → label as a fallback (e.g.
19
+ `chat.toolSummaries = { list_projects: "Search projects" }`).
20
+
21
+ ### Changed
22
+ - A tool call that ends with **no client handler and no `TOOL_CALL_RESULT`** now
23
+ settles the card as **"No result returned."** instead of the misleading
24
+ "Executed on the server." (nothing executed it).
25
+
26
+ ### Fixed
27
+ - **Incoming-text animations no longer double-fire.** Two distinct cases:
28
+ - *End of stream:* `data-text-animation="word"` wrapped the finished assistant
29
+ message into staggered `.word` spans on `TEXT_MESSAGE_END`, so a response
30
+ that had already streamed in re-animated itself one word at a time. The word
31
+ reveal now runs only when a message arrives **at once** (single text delta,
32
+ or an error bubble); a message streamed across multiple deltas keeps its
33
+ progressive reveal and isn't re-wrapped.
34
+ - *Reload from memory:* on rehydrate the whole transcript mounts at once, so
35
+ every restored assistant bubble animated its text in parallel (fade) or
36
+ re-wrapped word-by-word — wrong, since it's old content, not arriving. Restored
37
+ bubbles are now marked `message--restored`, excluded from the fade entrance
38
+ animation and never word-wrapped, so history appears statically.
39
+
10
40
  ## [0.2.1] — 2026-06-02
11
41
 
12
42
  ### Added
@@ -129,7 +159,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
129
159
  ### Notes
130
160
  - First release — exercising the automated npm OIDC publish pipeline end-to-end.
131
161
 
132
- [Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.1...HEAD
162
+ [Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.2...HEAD
163
+ [0.2.2]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.1...v0.2.2
133
164
  [0.2.1]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.0...v0.2.1
134
165
  [0.2.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.1.1...v0.2.0
135
166
  [0.1.1]: https://github.com/Artui/ag-ui-web-component/compare/v0.1.0...v0.1.1
package/README.md CHANGED
@@ -158,8 +158,14 @@ That's the whole integration: an `endpoint` attribute pointing at your AG-UI ser
158
158
 
159
159
  **Properties** (JS only, not attributes): `headers`, `autoConfirm`, `confirmPredicate`,
160
160
  `agentFactory`, `getTools`, `getContext`, `routeMap`, `navigate`, `getPageMap`,
161
- `autoInjectPageMap`, `conversationStore`, `navigationResult`, `skillContext`, plus the mirrors
162
- `endpoint` / `toolDisplay` / `collapsed`.
161
+ `autoInjectPageMap`, `conversationStore`, `navigationResult`, `skillContext`, `toolSummaries`,
162
+ plus the mirrors `endpoint` / `toolDisplay` / `collapsed`.
163
+
164
+ `toolSummaries` is a `Record<string, string>` mapping tool name → a friendly card
165
+ label, used when a tool has no `x-summary` in its own schema. Built-in and client tools
166
+ should carry `x-summary` directly; this map is the seam for **server-side tools** (drf-mcp,
167
+ the django-ag-ui `@tool` registry), whose schema never reaches the browser — e.g.
168
+ `chat.toolSummaries = { list_projects: "Search projects" }`.
163
169
 
164
170
  **Methods**: `registerTool`, `registerStateHook`, `setSkills`, `appendMessage`, `newChat`,
165
171
  `setCollapsed`, `toggleCollapsed`.