@artooi/ag-ui-web-component 0.2.2 → 0.3.0

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,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.0] — 2026-06-03
11
+
12
+ ### Added
13
+ - **`data-tools-url` — server tool-label catalog.** On connect the element
14
+ fetches a JSON catalog (`[{ name, summary, description? }]`) from the URL
15
+ (with `headers`) and uses it to label tool-call cards for **server-side tools**
16
+ whose schema never reaches the browser. Pairs with django-ag-ui's `tools/`
17
+ endpoint, so a tool's label flows from its server-side source (drf-mcp
18
+ `display_name`, `@tool(summary=…)`) with no per-tool client duplication.
19
+ Per-card label precedence: the tool's own `x-summary` → an explicit
20
+ `toolSummaries` entry → the fetched catalog → the raw name. Exports the
21
+ `ToolCatalogEntry` type and the `parseToolCatalog` helper.
22
+
10
23
  ## [0.2.2] — 2026-06-02
11
24
 
12
25
  ### Added
@@ -159,7 +172,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
159
172
  ### Notes
160
173
  - First release — exercising the automated npm OIDC publish pipeline end-to-end.
161
174
 
162
- [Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.2...HEAD
175
+ [Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.3.0...HEAD
176
+ [0.3.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.2...v0.3.0
163
177
  [0.2.2]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.1...v0.2.2
164
178
  [0.2.1]: https://github.com/Artui/ag-ui-web-component/compare/v0.2.0...v0.2.1
165
179
  [0.2.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.1.1...v0.2.0
package/README.md CHANGED
@@ -151,6 +151,7 @@ That's the whole integration: an `endpoint` attribute pointing at your AG-UI ser
151
151
  | `data-slash-commands` | — | `"true"` to enable the `/`-command palette. |
152
152
  | `data-skills` | — | Inline JSON skill catalog. |
153
153
  | `data-skills-url` | — | URL of a JSON skill catalog (fetched with `headers`). |
154
+ | `data-tools-url` | — | URL of a server tool-label catalog (`[{ name, summary, description? }]`), fetched with `headers`; labels tool-call cards for server-side tools. |
154
155
  | `collapsed` | `collapsed` | Reflected boolean; collapses the widget. Persisted per-tab in `sessionStorage`. |
155
156
  | `theme` | — | CSS-only: `light` (default) / `dark` / `auto` / `code`. |
156
157
  | `density` | — | CSS-only: `comfortable` (default) / `compact`. |
@@ -165,7 +166,10 @@ plus the mirrors `endpoint` / `toolDisplay` / `collapsed`.
165
166
  label, used when a tool has no `x-summary` in its own schema. Built-in and client tools
166
167
  should carry `x-summary` directly; this map is the seam for **server-side tools** (drf-mcp,
167
168
  the django-ag-ui `@tool` registry), whose schema never reaches the browser — e.g.
168
- `chat.toolSummaries = { list_projects: "Search projects" }`.
169
+ `chat.toolSummaries = { list_projects: "Search projects" }`. Or point
170
+ `data-tools-url` at a server catalog endpoint (django-ag-ui's `tools/`) and the
171
+ labels are fetched automatically — per card, `x-summary` → an explicit
172
+ `toolSummaries` entry → the fetched catalog → the raw name.
169
173
 
170
174
  **Methods**: `registerTool`, `registerStateHook`, `setSkills`, `appendMessage`, `newChat`,
171
175
  `setCollapsed`, `toggleCollapsed`.