@artooi/ag-ui-web-component 0.41.1 → 0.41.3
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 +57 -1
- package/README.md +4 -1
- package/dist/ag-ui-web-component.bundle.js +78 -75
- package/dist/ag-ui-web-component.bundle.js.map +4 -4
- package/dist/constants.d.ts +6 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/index.js +1482 -1021
- package/dist/index.js.map +4 -4
- package/dist/ui/history/conversation_history.d.ts +7 -2
- package/dist/ui/history/conversation_history.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +6 -1
- package/src/core/ag_ui_chat.ts +21 -1
- package/src/ui/history/conversation_history.ts +56 -8
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.41.3] — 2026-10-07
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **A resumed or forked run shows the turn it was sent with.** Picking Resume
|
|
15
|
+
or Fork in the checkpoint panel sent what the composer held and streamed the
|
|
16
|
+
answer, but drew no bubble for the turn, so the answer arrived under no
|
|
17
|
+
question. The save already held the turn, so a reload showed a question the
|
|
18
|
+
live transcript never had. The continuation now draws the turn the way Send
|
|
19
|
+
does, ahead of its answer, and tests hold that the live transcript and the
|
|
20
|
+
restored one agree after both a resume and a fork.
|
|
21
|
+
- **`ag-ui-submit` fires for a continued turn.** A host listens to it as "the
|
|
22
|
+
user sent something", and a turn sent with Resume or Fork is one: only the
|
|
23
|
+
endpoint differs. The event fires once the continuation is the run in flight,
|
|
24
|
+
so a `sendMessage()` from a listener is refused rather than starting a second
|
|
25
|
+
run beside it, and a listener that stops it -- a new chat, a thread switch,
|
|
26
|
+
moving the element -- stops it before its request is made. Its
|
|
27
|
+
`detail.attachments` is empty, because a continuation sends only the
|
|
28
|
+
composer's text.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **Ships DOMPurify 3.4.16 and marked 18.0.14**, from the lockfile refresh
|
|
33
|
+
since 0.41.2. Both builds carry them inlined, the npm build as well as the
|
|
34
|
+
vendored bundle: only `@ag-ui/client` and `@ag-ui/core` are left to the
|
|
35
|
+
host's resolver, so a host's own lockfile does not choose which sanitiser
|
|
36
|
+
runs.
|
|
37
|
+
|
|
38
|
+
## [0.41.2] — 2026-09-23
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- **The demo answers a denied approval with a result, as a real server does.**
|
|
43
|
+
The mock streamed a result only for the calls a person approved, and said so
|
|
44
|
+
in a comment: a denial was left for the model to answer. django-ag-ui streams
|
|
45
|
+
one for every answered call, and a denied one carries pydantic-ai's denial
|
|
46
|
+
message with `outcome: "denied"` on both carriers. With no result, the next
|
|
47
|
+
request answered the call as not finished, so the playground's own
|
|
48
|
+
multi-approval scenario came back from a reload with every declined card
|
|
49
|
+
reading "not finished". The mock also denies by default now, as pydantic-ai
|
|
50
|
+
does, so only an answer whose payload says `approved: true` runs the call.
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- **A navigating tool's card reads done on the page it navigated to.** A tool
|
|
55
|
+
marked `x-navigates` reloads the page, and the next mount answers its call
|
|
56
|
+
with the landed page's result and continues the run. That result reached the
|
|
57
|
+
agent, but the call's card was never settled from it: it spun for the whole
|
|
58
|
+
continuation, and when the run finished, the sweep that closes any card still
|
|
59
|
+
open marked it "not finished" -- on the one call known to have finished. The
|
|
60
|
+
resume now settles the card from the result it sends, so it reads done with
|
|
61
|
+
that result while the continuation runs, and matches what a later reload
|
|
62
|
+
shows from the stored message.
|
|
63
|
+
|
|
10
64
|
## [0.41.1] — 2026-09-22
|
|
11
65
|
|
|
12
66
|
### Changed
|
|
@@ -4196,7 +4250,9 @@ hosts that both arrange the page the way it expects.
|
|
|
4196
4250
|
### Notes
|
|
4197
4251
|
- First release — exercising the automated npm OIDC publish pipeline end-to-end.
|
|
4198
4252
|
|
|
4199
|
-
[Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.41.
|
|
4253
|
+
[Unreleased]: https://github.com/Artui/ag-ui-web-component/compare/v0.41.3...HEAD
|
|
4254
|
+
[0.41.3]: https://github.com/Artui/ag-ui-web-component/compare/v0.41.2...v0.41.3
|
|
4255
|
+
[0.41.2]: https://github.com/Artui/ag-ui-web-component/compare/v0.41.1...v0.41.2
|
|
4200
4256
|
[0.41.1]: https://github.com/Artui/ag-ui-web-component/compare/v0.41.0...v0.41.1
|
|
4201
4257
|
[0.41.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.40.0...v0.41.0
|
|
4202
4258
|
[0.40.0]: https://github.com/Artui/ag-ui-web-component/compare/v0.39.0...v0.40.0
|
package/README.md
CHANGED
|
@@ -2409,7 +2409,10 @@ Type the next turn in the composer, then pick a row:
|
|
|
2409
2409
|
- **Resume** — continue that run.
|
|
2410
2410
|
- **Fork** — branch it, leaving the original untouched.
|
|
2411
2411
|
|
|
2412
|
-
Both send to the matching server endpoint and stream into the same transcript.
|
|
2412
|
+
Both send to the matching server endpoint and stream into the same transcript. The
|
|
2413
|
+
turn you typed is drawn there ahead of the answer and announced with `ag-ui-submit`,
|
|
2414
|
+
exactly as a send is, so a host that keeps its own record of what the user said sees
|
|
2415
|
+
continued turns too.
|
|
2413
2416
|
|
|
2414
2417
|
Picking a row with an empty composer says so above the input and puts the caret
|
|
2415
2418
|
there, rather than closing the panel over nothing: a continuation sends **only**
|