@artooi/ag-ui-web-component 0.36.0 → 0.37.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 +66 -1
- package/README.md +9 -5
- package/dist/ag-ui-web-component.bundle.js +3 -3
- package/dist/ag-ui-web-component.bundle.js.map +3 -3
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/index.js +89 -31
- package/dist/index.js.map +2 -2
- package/dist/ui/ui_strings.d.ts +4 -0
- package/dist/ui/ui_strings.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/ag_ui_chat.ts +118 -33
- package/src/ui/ui_strings.ts +6 -0
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,70 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.37.0] — 2026-09-06
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **The README attribute gate only checked one direction, so it could not see its
|
|
15
|
+
own weakening.** It asked whether every attribute the element *reads* is
|
|
16
|
+
documented; an attribute falling out of the scanned set shrinks the set being
|
|
17
|
+
filtered, so the answer stays empty and nothing goes red. Adding a
|
|
18
|
+
variable-named read and raising the declared count -- without teaching the
|
|
19
|
+
matcher the new helper -- dropped two attributes out of the scan and the whole
|
|
20
|
+
suite still passed. Verified by doing exactly that: 1651 tests green.
|
|
21
|
+
|
|
22
|
+
There is now a reverse check. It refuses a documented row that nothing
|
|
23
|
+
consumes, and "consumes" had to be defined carefully: four documented
|
|
24
|
+
attributes (`density`, `data-side`, `data-small-viewport`, `data-answer-well`)
|
|
25
|
+
are host-set and read by the stylesheet alone through `:host([...])`, never by
|
|
26
|
+
any `getAttribute` call. A first version that looked only at JavaScript called
|
|
27
|
+
all four stale, which would have deleted four working rows.
|
|
28
|
+
|
|
29
|
+
- **A message sent with no `endpoint` disappeared without a word.** The send path
|
|
30
|
+
returned early when the attribute was unset, and by then the two visible halves
|
|
31
|
+
of a successful send had already happened: the user's bubble was in the
|
|
32
|
+
transcript and `ag-ui-submit` had been dispatched. So the composer cleared, the
|
|
33
|
+
message appeared to go, Send never became Stop, no request was made, and
|
|
34
|
+
nothing at all reached the console. What that looks like is an agent ignoring
|
|
35
|
+
you, and what it gets reported as is a server that never answers.
|
|
36
|
+
|
|
37
|
+
The refusal stays -- there is nowhere to send to, and an agent built on an
|
|
38
|
+
empty endpoint would post to the current page -- but both audiences are now
|
|
39
|
+
told, because they need different things. A `console.error` names the missing
|
|
40
|
+
attribute and what to set it to, since a missing attribute is the page's
|
|
41
|
+
mistake and the page's author is not reading the transcript. A `not-connected`
|
|
42
|
+
run notice tells the reader their message went nowhere, because the honest
|
|
43
|
+
alternative to one muted line is an indefinite wait in front of their own
|
|
44
|
+
question. Both fire on every attempt rather than once: a one-shot report is the
|
|
45
|
+
same silence again for the second try, which is the try a puzzled user makes.
|
|
46
|
+
|
|
47
|
+
- **Picking a run to continue with an empty composer closed the panel over
|
|
48
|
+
nothing.** A continuation sends only the new turn -- the server supplies
|
|
49
|
+
everything before it from the snapshot -- so with nothing typed there was
|
|
50
|
+
nothing to send, and the handler returned. The row's button had already
|
|
51
|
+
dismissed the panel by then, so the widget visibly reacted and then did
|
|
52
|
+
nothing, which reads as a resume that was attempted and lost rather than one
|
|
53
|
+
that never started. It now says what the composer still needs, above the input
|
|
54
|
+
and cleared by the next keystroke, and puts the caret there.
|
|
55
|
+
|
|
56
|
+
- **A `data-strings` or `data-skills` value that would not parse was discarded
|
|
57
|
+
without a word.** Quoting JSON inside an HTML attribute is fiddly, and the
|
|
58
|
+
result of getting it wrong was indistinguishable from never having set the
|
|
59
|
+
attribute: the strings stayed English, or the palette came up empty, with
|
|
60
|
+
nothing anywhere naming the attribute. Both now warn on the console, naming
|
|
61
|
+
which one and what to check -- the answer `data-paste-attach` already gave for
|
|
62
|
+
a value it could not read. Console only: a page author's typo is not the
|
|
63
|
+
reader's business, nothing the reader did was refused, and the widget is still
|
|
64
|
+
perfectly usable without the override.
|
|
65
|
+
|
|
66
|
+
### Changed
|
|
67
|
+
|
|
68
|
+
- The composer hint above the input is no longer only a skills affordance: it
|
|
69
|
+
also carries the message above. Its `skill-hint` `part` is unchanged, since
|
|
70
|
+
renaming a part is breaking and a second hint in the same slot would be worse
|
|
71
|
+
than one whose name is older than its job. Two new `UiStrings` keys,
|
|
72
|
+
`notConnected` and `continueNeedsTurn`, are overridable like every other.
|
|
73
|
+
|
|
10
74
|
## [0.36.0] — 2026-09-05
|
|
11
75
|
|
|
12
76
|
### Added
|
|
@@ -3477,7 +3541,8 @@ hosts that both arrange the page the way it expects.
|
|
|
3477
3541
|
### Notes
|
|
3478
3542
|
- First release — exercising the automated npm OIDC publish pipeline end-to-end.
|
|
3479
3543
|
|
|
3480
|
-
[Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.
|
|
3544
|
+
[Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.37.0...HEAD
|
|
3545
|
+
[0.37.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.36.0...v0.37.0
|
|
3481
3546
|
[0.36.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.35.2...v0.36.0
|
|
3482
3547
|
[0.35.2]: https://github.com/Artui/ag-ui-web-component/compare/v0.35.1...v0.35.2
|
|
3483
3548
|
[0.35.1]: https://github.com/Artui/ag-ui-web-component/compare/v0.35.0...v0.35.1
|
package/README.md
CHANGED
|
@@ -173,14 +173,14 @@ another origin, add `credentials="include"` too; see
|
|
|
173
173
|
|
|
174
174
|
| Attribute | Property | Notes |
|
|
175
175
|
| --- | --- | --- |
|
|
176
|
-
| `endpoint` | `endpoint` | The AG-UI endpoint URL. Required to send. Reflecting getter + setter. |
|
|
176
|
+
| `endpoint` | `endpoint` | The AG-UI endpoint URL. Required to send: without it a send is refused with a `console.error` naming the missing attribute and a `not-connected` run notice in the transcript. Reflecting getter + setter. |
|
|
177
177
|
| `credentials` | `credentials` | Cookie policy for every request the element makes: `omit` / `same-origin` / `include`. Unset means the browser default (`same-origin`), which sends no cookies cross-origin. See [Authenticating requests](#authenticating-requests). |
|
|
178
178
|
| `title-text` | — | Header label; defaults to `"Assistant"`. Live: writing it after the element connects re-labels the header. See [When each attribute is read](#when-each-attribute-is-read). |
|
|
179
179
|
| `data-tool-display` | `toolDisplay` | Tool-call card detail: `inline` / `minimal` / `compact` / `full` (default `full`). |
|
|
180
180
|
| `data-text-animation` | — | Incoming-text reveal: `none` (default) / `fade` / `word`. |
|
|
181
181
|
| `data-prompt-chips` | — | Present (bare, or any value but `"false"`) to surface skills as chips. |
|
|
182
182
|
| `data-slash-commands` | — | Present (bare, or any value but `"false"`) to enable the `/`-command palette. |
|
|
183
|
-
| `data-skills` | — | Inline JSON skill catalog. |
|
|
183
|
+
| `data-skills` | — | Inline JSON skill catalog. A value that will not parse is ignored and reported on the console, rather than reading as an empty catalog. |
|
|
184
184
|
| `data-skills-url` | — | URL of a JSON skill catalog (fetched with the element's headers and cookie policy). |
|
|
185
185
|
| `data-tools-url` | — | URL of a server tool-label catalog (`[{ name, summary, description? }]`), fetched with the element's headers and cookie policy; labels tool-call cards for server-side tools. |
|
|
186
186
|
| `user-key` | `userKey` | Who the stored conversation belongs to — any string identifying the signed-in principal. Joins the storage namespace, and **changing it purges what the previous principal left behind**. Live (not connect-time): a logout is the host's to announce. See [Who the stored conversation belongs to](#who-the-stored-conversation-belongs-to-user-key). |
|
|
@@ -192,7 +192,7 @@ another origin, add `credentials="include"` too; see
|
|
|
192
192
|
| `data-attachment-max-bytes` | — | Client-side upload size cap in bytes (default 10 MiB; `0` disables). The server stays authoritative. |
|
|
193
193
|
| `data-transcribe-url` | — | URL of the voice-transcription endpoint (django-ag-ui's `TranscribeView`); reveals the composer's mic button. See [Voice input](#voice-input). |
|
|
194
194
|
| `data-theme-toggle` | — | Boolean: show a built-in header light⇄dark toggle (persists per tab). Off by default. See [Theme toggle](#theme-toggle). |
|
|
195
|
-
| `data-strings` | `strings` | Partial JSON override of the UI string table (localization). The property wins key-by-key over the attribute;
|
|
195
|
+
| `data-strings` | `strings` | Partial JSON override of the UI string table (localization). The property wins key-by-key over the attribute; a value that will not parse is ignored and reported on the console. See [Internationalization](#internationalization-i18n). |
|
|
196
196
|
| `data-icon-url` | — | Header (and launcher) icon image URL. A slotted `slot="icon"` wins; see [Header & launcher icon](#header-and-launcher-icon). |
|
|
197
197
|
| `data-launcher-icon-url` | — | Icon image URL for the collapsed launcher only, when it should differ from the header's. Falls back to `data-icon-url`; a slotted `slot="launcher"` wins over both. |
|
|
198
198
|
| `data-unread-badge` | — | **On by default.** `="false"` hides the launcher's unread badge; the count and the `ag-ui-unread` event keep running. See [Collapsing to the launcher](#collapsing-to-the-launcher). |
|
|
@@ -2312,6 +2312,10 @@ Type the next turn in the composer, then pick a row:
|
|
|
2312
2312
|
|
|
2313
2313
|
Both send to the matching server endpoint and stream into the same transcript.
|
|
2314
2314
|
|
|
2315
|
+
Picking a row with an empty composer says so above the input and puts the caret
|
|
2316
|
+
there, rather than closing the panel over nothing: a continuation sends **only**
|
|
2317
|
+
the new turn, so with nothing typed there is nothing to send.
|
|
2318
|
+
|
|
2315
2319
|
### One URL, three endpoints
|
|
2316
2320
|
|
|
2317
2321
|
`data-runs-url` is the only thing to configure. `resume/<id>/` and `fork/<id>/`
|
|
@@ -2873,7 +2877,7 @@ component sets, so a new one cannot ship undocumented.
|
|
|
2873
2877
|
| Follow-up suggestions | `suggestions`, `suggestion-chip` |
|
|
2874
2878
|
| Message actions | `message-actions`, `message-action` (plus `message-action-retry`, `message-action-copy`, `message-action-up`, `message-action-down`), and the icon holder inside each: `message-action-icon` (plus `message-action-icon-retry`, `message-action-icon-copy`, `message-action-icon-up`, `message-action-icon-down`) |
|
|
2875
2879
|
| Queued messages | `queued`, `queued-chip` |
|
|
2876
|
-
| Run notices | `run-notice` (plus `run-notice-interrupted`, `run-notice-attachment-pending`, `run-notice-compaction`, `run-notice-skill`, `run-notice-history-replaced`, `run-notice-chart-undrawable`, `run-notice-surface`), `run-notice-icon`, `run-notice-text`, `run-notice-undo` |
|
|
2880
|
+
| Run notices | `run-notice` (plus `run-notice-interrupted`, `run-notice-attachment-pending`, `run-notice-compaction`, `run-notice-skill`, `run-notice-history-replaced`, `run-notice-chart-undrawable`, `run-notice-surface`, `run-notice-not-connected`), `run-notice-icon`, `run-notice-text`, `run-notice-undo` |
|
|
2877
2881
|
| Tool cards | `tool-card`, `tool-card-head`, `tool-card-icon`, `tool-card-name`, `tool-card-status`, `tool-card-decision`, `tool-card-toggle`, `tool-card-body`, `tool-card-section` (plus `tool-card-args-section`, `tool-card-result-section`), `tool-card-section-label` (plus `tool-card-args-label`, `tool-card-result-label`), `tool-card-args`, `tool-card-result`, `tool-card-approval`, `tool-card-subagent` |
|
|
2878
2882
|
| Delegated sub-agents | `subagent`, `subagent-row`, `subagent-icon`, `subagent-status`, `subagent-steps`, `subagent-step`, `subagent-step-icon`, `subagent-step-name` |
|
|
2879
2883
|
| Client-side confirmation | `confirm`, `confirm-body`, `confirm-args`, `confirm-actions`, `confirm-button` (plus `confirm-confirm`, `confirm-cancel`, `confirm-always`) |
|
|
@@ -2881,7 +2885,7 @@ component sets, so a new one cannot ship undocumented.
|
|
|
2881
2885
|
| Typed question | `question`, `question-body`, `question-options`, `question-choice`, `question-choice-text`, `question-radio`, `question-input`, `question-actions`, `question-button` |
|
|
2882
2886
|
| Composer | `composer`, `composer-surface`, `composer-tools`, `input`, `send`, `attach-button`, `voice-button` |
|
|
2883
2887
|
| Attachments | `attachment-tray`, `attachment-chips` (the read-only chips on sent bubbles), and the shared chip parts `attachment-chip`, `attachment-chip-icon`, `attachment-chip-name`, `attachment-chip-size`, `attachment-chip-bar`, `attachment-chip-bar-fill`, `attachment-chip-retry`, `attachment-chip-remove` |
|
|
2884
|
-
| Skills | `skill-chips`, `skill-chip`, `skill-palette`, `skill-item`, `skill-item-title`, `skill-item-desc`, `skill-item-token`, `skill-hint` (the missing
|
|
2888
|
+
| Skills | `skill-chips`, `skill-chip`, `skill-palette`, `skill-item`, `skill-item-title`, `skill-item-desc`, `skill-item-token`, `skill-hint` (the composer hint: a skill’s missing placeholders, and a run continuation with nothing typed) |
|
|
2885
2889
|
| Thread drawer | `drawer`, `drawer-backdrop`, `drawer-panel`, `drawer-header`, `drawer-title`, `drawer-new`, `drawer-close`, `drawer-filter`, `drawer-list`, `drawer-empty`, `drawer-row`, `drawer-row-select`, `drawer-row-title`, `drawer-row-time`, `drawer-row-preview`, `drawer-row-actions`, `drawer-row-rename`, `drawer-row-delete`, `drawer-rename-input`, `drawer-confirm`, `drawer-confirm-label`, `drawer-confirm-yes`, `drawer-confirm-no` |
|
|
2886
2890
|
| Charts | `chart-block`, `chart-title`, `chart-legend` |
|
|
2887
2891
|
| Checkpoints panel | `checkpoints`, `checkpoints-header`, `checkpoints-title`, `checkpoints-list`, `checkpoints-empty`, `checkpoint-row`, `checkpoint-label`, `checkpoint-time`, `checkpoint-id`, `checkpoint-branch`, `checkpoint-action` (plus `checkpoint-resume`, `checkpoint-fork`) |
|