@object-ui/plugin-chatbot 17.3.0 → 17.6.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
@@ -1,5 +1,369 @@
1
1
  # @object-ui/plugin-chatbot
2
2
 
3
+ ## 17.6.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [88085e3]
8
+ - Updated dependencies [69251bf]
9
+ - Updated dependencies [57e668f]
10
+ - Updated dependencies [516663d]
11
+ - Updated dependencies [41ac1b7]
12
+ - Updated dependencies [1eaf0a1]
13
+ - Updated dependencies [460c4d0]
14
+ - Updated dependencies [0ae27f7]
15
+ - Updated dependencies [2533ec5]
16
+ - Updated dependencies [78c0f9a]
17
+ - Updated dependencies [bbe8b86]
18
+ - Updated dependencies [8477be5]
19
+ - Updated dependencies [279fb13]
20
+ - Updated dependencies [2e82ab2]
21
+ - Updated dependencies [ad07b65]
22
+ - Updated dependencies [41f498b]
23
+ - Updated dependencies [ef0d150]
24
+ - Updated dependencies [f34226e]
25
+ - Updated dependencies [564b605]
26
+ - Updated dependencies [e1d4251]
27
+ - Updated dependencies [40d3a33]
28
+ - Updated dependencies [8b9dc62]
29
+ - Updated dependencies [1184192]
30
+ - Updated dependencies [a2a9747]
31
+ - Updated dependencies [a1609a6]
32
+ - Updated dependencies [53f23bc]
33
+ - Updated dependencies [c4533dc]
34
+ - Updated dependencies [be60815]
35
+ - Updated dependencies [37f6844]
36
+ - Updated dependencies [93de4f6]
37
+ - Updated dependencies [2b50261]
38
+ - Updated dependencies [384f30d]
39
+ - Updated dependencies [ac600e5]
40
+ - Updated dependencies [97fba31]
41
+ - Updated dependencies [232f61a]
42
+ - Updated dependencies [d374caf]
43
+ - Updated dependencies [5673576]
44
+ - Updated dependencies [c1ef923]
45
+ - Updated dependencies [911ceaa]
46
+ - Updated dependencies [98eab36]
47
+ - Updated dependencies [af5e292]
48
+ - Updated dependencies [3fbbea1]
49
+ - Updated dependencies [7f96b10]
50
+ - Updated dependencies [167ec42]
51
+ - Updated dependencies [616a2a5]
52
+ - Updated dependencies [0046d8f]
53
+ - Updated dependencies [f1d4748]
54
+ - Updated dependencies [bea374e]
55
+ - Updated dependencies [b1119ec]
56
+ - Updated dependencies [9f23d2b]
57
+ - Updated dependencies [578e025]
58
+ - Updated dependencies [af025ee]
59
+ - Updated dependencies [d109a4d]
60
+ - Updated dependencies [598c89a]
61
+ - Updated dependencies [4a0bd17]
62
+ - Updated dependencies [b8b9af4]
63
+ - Updated dependencies [31676be]
64
+ - Updated dependencies [8c0d52e]
65
+ - Updated dependencies [aff10e2]
66
+ - Updated dependencies [70a774b]
67
+ - Updated dependencies [9ce096f]
68
+ - Updated dependencies [e05db88]
69
+ - Updated dependencies [7458a41]
70
+ - Updated dependencies [ad13d63]
71
+ - Updated dependencies [5ffcc14]
72
+ - Updated dependencies [d971e51]
73
+ - Updated dependencies [97abb24]
74
+ - Updated dependencies [deb157a]
75
+ - Updated dependencies [9c60144]
76
+ - Updated dependencies [d2ce342]
77
+ - Updated dependencies [9695da7]
78
+ - Updated dependencies [75444e3]
79
+ - Updated dependencies [58b8346]
80
+ - Updated dependencies [2d0bd16]
81
+ - Updated dependencies [a9e17b4]
82
+ - Updated dependencies [b8ce7dc]
83
+ - Updated dependencies [dad51e5]
84
+ - Updated dependencies [1c9c342]
85
+ - Updated dependencies [787c738]
86
+ - Updated dependencies [8396656]
87
+ - Updated dependencies [dbbd38a]
88
+ - Updated dependencies [8871c14]
89
+ - Updated dependencies [93fe362]
90
+ - Updated dependencies [dfc6975]
91
+ - Updated dependencies [3cf4de0]
92
+ - Updated dependencies [c9dc811]
93
+ - Updated dependencies [144ef9b]
94
+ - Updated dependencies [138ab04]
95
+ - Updated dependencies [a0b9e91]
96
+ - Updated dependencies [99bd015]
97
+ - Updated dependencies [21e4585]
98
+ - @object-ui/types@17.6.0
99
+ - @object-ui/i18n@17.6.0
100
+ - @object-ui/react@17.6.0
101
+ - @object-ui/components@17.6.0
102
+ - @object-ui/core@17.6.0
103
+
104
+ ## 17.5.0
105
+
106
+ ### Minor Changes
107
+
108
+ - 3256b14: `@object-ui/plugin-chatbot`'s `ChatMessage` is now one type instead of two
109
+
110
+ The barrel exported two different `ChatMessage` types: a minimal one it declared itself (`id` / `role` / `content` / `timestamp` / `avatar` / `avatarFallback`) and the shape `<ChatbotEnhanced>` actually renders, re-exported under the alias `ChatbotEnhancedMessage`. The natural name resolved to the narrow one, so an importer reaching for `ChatMessage` silently got the wrong contract — and the compiler could not object, because both shapes existed on purpose and every construction site spreads the extra keys conditionally, which defeats excess-property checking. That is how app-shell's `AiChatPage` ended up unable to read `toolInvocations` off its own function's return value (objectui#4040; re-pointed in PR #4379, but the collision itself was left standing). objectui#4383.
111
+
112
+ **Breaking semantics** (declared `minor` per AGENTS.md §版本号策略 — objectui never declares `major` outside an `@objectstack` major sync): `ChatMessage` exported from `@object-ui/plugin-chatbot` now denotes the enhanced shape. In practice this is a widening rather than a removal — every field of the retired shape survives with the same type, and the enhanced shape adds only optional keys (`streaming`, `toolInvocations`, `reasoning`, `sources`, `traceId`, `buildProgress`, `blueprintProgress`, `charts`), so anything that was a valid `ChatMessage` still is, and `<Chatbot messages={…} />` keeps accepting the same values. Code that relied on the name meaning _exactly_ the six-key shape (exhaustive `keyof` maps, `Equal`-style assertions) is the case that changes.
113
+
114
+ `ChatbotEnhancedMessage` is kept as a `@deprecated` alias of the same type, so importers that spelled the disambiguating name keep compiling; new code should import `ChatMessage`. Pinned at compile time by `packages/plugin-chatbot/src/__tests__/chat-message-contract.test.ts`.
115
+
116
+ - eec2e4f: `useObjectChat` declares the message shape it actually hands back
117
+
118
+ The hook typed `messages` — and the `onSend(content, messages)` callback fed from it — as `@object-ui/types`' authoring `ChatMessage`. That was true in local mode only. In API mode the values came out of the runtime mapper and were asserted into place with `as OuiChatMessage[]`, and the authoring contract declares none of what they carry: `buildProgress`, `blueprintProgress`, `charts`, and `pendingActionId` / `draftReview` / `proposedPlan` / `proposedChanges` / `builderHandoff` on every tool invocation. Those keys are the HITL approval card, the "Review N changes" affordance, the proposed-plan card, the build panel and the inline charts. They survived only because nothing on the path ever rebuilt a message; anyone writing the obvious thing — reconstruct a message field-by-field from its declared type — deleted all of them, with the compiler agreeing, because the declared type genuinely did not have them.
119
+
120
+ The declaration is now the truth, published as `ObjectChatMessage`. The survey behind it found the honest type to be neither of the two `ChatMessage` types on either side, because neither is true of both modes: it stays **wide** where local mode is wide (an authored `'tool'` role and the legacy `'partial-call'` / `'call'` / `'result'` tool states reach this surface unchanged and are folded only at the render seam), **narrow** where both modes are narrow (`timestamp` is `string`, never `Date` — API mode never produces one and local mode absorbs it before emitting), and adds the render-only keys API mode really carries. The `as OuiChatMessage[]` assertion is deleted rather than moved: the mapper's output satisfies the declared type, so the compiler checks that assignment instead of being told to stop looking.
121
+
122
+ Nothing about the values changed, and nothing correct breaks. `ObjectChatMessage` is a **subtype** of the authoring `ChatMessage` it replaces, so every consumer that accepted the old declaration still accepts these values — including a host `onSend` callback that types its parameter as `ChatMessage[]`, which keeps type-checking by contravariance. Naming `ObjectChatMessage` is what lets a host _read_ the keys above. The one observable narrowing is deliberate: code that branched on `timestamp instanceof Date` was handling a value this hook cannot emit, and now says so at compile time.
123
+
124
+ The seam below it (`chatMessageAdapter.ts`, from objectui#4399) is still necessary and unchanged in behaviour — `'tool'` and the legacy tool states still have to be narrowed for the renderers. What changed is that its pass-through is no longer an act of faith: its input type (`SeamChatMessage`, also exported, alongside `SeamToolInvocation`) names the render-only keys, so the spread preserves them as declared properties the compiler can see, and the pass-through tests type their API-mode fixture directly instead of casting it past the compiler. A cast returning to the hook is now caught by a test rather than by a future outage.
125
+
126
+ App-shell carries a comment-only correction on the same family: `AiChatPage` still described `@object-ui/plugin-chatbot` as exporting a second, minimal legacy `ChatMessage` alongside the enhanced one. That collision was retired in objectui#4383 — the barrel publishes one contract and `ChatbotEnhancedMessage` is a deprecated alias of it — so the paragraph was sending readers to look for a hazard that no longer exists.
127
+
128
+ ### Patch Changes
129
+
130
+ - dde7283: `chatbot` and `chatbot-enhanced` now pass only whitelisted DOM props to their host element (objectui#4431)
131
+
132
+ Both registrations destructured `schema` and `className` and forwarded everything else. `SchemaRenderer` hands a registered component the authored node's own keys, the contents of its `props` container, the ARIA it resolved and the host's trailing props — so all of it became attributes on the chat root `div`, because React passes unknown lowercase attributes through in silence and stringifies object values. Measured through the real SDUI path with a data-source adapter attached: **14 non-DOM attributes on each widget**, including `datasource="[object Object]"` (the injected adapter, which only appears on a deployment that really loads data) and a camelCase `arialabel` sitting next to the resolved `aria-label`, so the element carried each ARIA value twice under two spellings — one of them meaningless to assistive technology.
133
+
134
+ Both are now consume-or-whitelist: configuration is read off `schema` as before, the evaluated `disabled` verdict is consumed by name, and only `toDomProps`' output reaches the element. The resolved `aria-label` / `aria-describedby`, `role`, `id`, `tabIndex` and the `data-*` family still arrive — dropping them would have been an accessibility regression dressed as a leak fix, so the pin asserts the delivered set exactly, not just the absent one. `chatbot-floating` is untouched: its content mounts through a portal and its root never spread.
135
+
136
+ `@object-ui/core` gains the shared executor this migration needs (`utils/dom-props.ts`): `toDomProps` for the SDUI widget contract, plus `pickDomProps` — the mechanism — for a package whose own contract declares a different key set. That is the objectui#4409 dependency direction: plugin packages declare `@object-ui/core` and must not grow a dependency on `@object-ui/fields` to reach a whitelist.
137
+
138
+ `@object-ui/fields` keeps its own key list and its compile-time bindings, and now executes them through core's mechanism. Its behaviour is unchanged and its exported `DomProps<P>` is the same structural type. The two lists differ for measured reasons and no longer can drift silently: `name` and `disabled` are legal only on form controls, which is what every field widget renders and what `FieldWidgetComponentProps` declares, while `role` is resolved by `SchemaRenderer` for every SDUI node and is not part of the field contract. A new assertion binds every shared key in both directions, with `role` named as the single deliberate exception.
139
+
140
+ - 37bbc42: Replace the three `messages as any` casts at the `@object-ui/types` ↔
141
+ `@object-ui/plugin-chatbot` `ChatMessage` boundary with one explicit typed
142
+ adapter (`toRuntimeMessages` / `authoredToRuntimeMessage`, now exported).
143
+
144
+ The authoring contract (`ChatbotSchema['messages']`) and the runtime contract
145
+ `<ChatbotEnhanced>` renders are both deliberate and deliberately different; the
146
+ casts erased ALL of that drift rather than the intentional parts, so a future
147
+ vocabulary move would have surfaced as rendering behaviour instead of a type
148
+ error. Each narrowing is now named, documented and tested: an authored
149
+ `role: 'tool'` message is an assistant message (unchanged rendering — the
150
+ implicit fallthrough is now the recorded decision), a `Date` timestamp becomes
151
+ its ISO string (one expression, consumed by both the seam and the hook's
152
+ `normalizeMessages`), and the legacy tool-invocation states
153
+ `'partial-call'`/`'call'`/`'result'` map to their AI SDK v6 equivalents as the
154
+ authoring type's own documentation declares — previously they reached the tool
155
+ chip unrecognised and rendered a status badge with no label.
156
+
157
+ - Updated dependencies [0e67b53]
158
+ - Updated dependencies [ceccdcf]
159
+ - Updated dependencies [d6e5124]
160
+ - Updated dependencies [debad27]
161
+ - Updated dependencies [dc2aa3e]
162
+ - Updated dependencies [ee66e2e]
163
+ - Updated dependencies [ee26e65]
164
+ - Updated dependencies [5900ac5]
165
+ - Updated dependencies [932cbcd]
166
+ - Updated dependencies [734d186]
167
+ - Updated dependencies [f650253]
168
+ - Updated dependencies [3d9769a]
169
+ - Updated dependencies [8f85f8b]
170
+ - Updated dependencies [d0c3b26]
171
+ - Updated dependencies [3fc2971]
172
+ - Updated dependencies [aca27fa]
173
+ - Updated dependencies [dde7283]
174
+ - Updated dependencies [f7c6430]
175
+ - Updated dependencies [4dadf0d]
176
+ - Updated dependencies [ae10a01]
177
+ - Updated dependencies [92876f0]
178
+ - Updated dependencies [f279deb]
179
+ - Updated dependencies [4b70d28]
180
+ - Updated dependencies [eb7f586]
181
+ - Updated dependencies [e901131]
182
+ - Updated dependencies [d9d3463]
183
+ - Updated dependencies [2a40f69]
184
+ - Updated dependencies [bec3e14]
185
+ - Updated dependencies [613b167]
186
+ - Updated dependencies [b4d3c22]
187
+ - Updated dependencies [1f9b905]
188
+ - Updated dependencies [cb13400]
189
+ - Updated dependencies [828549a]
190
+ - Updated dependencies [e1ade8f]
191
+ - Updated dependencies [bc64bfe]
192
+ - Updated dependencies [abb0f81]
193
+ - Updated dependencies [38ab505]
194
+ - Updated dependencies [3e19fe7]
195
+ - Updated dependencies [bb58d1d]
196
+ - Updated dependencies [5cc847c]
197
+ - Updated dependencies [fa21254]
198
+ - Updated dependencies [33c32bf]
199
+ - Updated dependencies [66fb4fa]
200
+ - Updated dependencies [b953a97]
201
+ - Updated dependencies [d7f3e30]
202
+ - Updated dependencies [6d641c9]
203
+ - Updated dependencies [7e4f0e5]
204
+ - Updated dependencies [a84385b]
205
+ - Updated dependencies [45e1949]
206
+ - Updated dependencies [92250d6]
207
+ - Updated dependencies [c1d939f]
208
+ - Updated dependencies [58bebf6]
209
+ - Updated dependencies [405e808]
210
+ - Updated dependencies [49ae9f4]
211
+ - Updated dependencies [a3ae404]
212
+ - Updated dependencies [bfdf3d4]
213
+ - Updated dependencies [bb68488]
214
+ - Updated dependencies [c0f9a4b]
215
+ - Updated dependencies [b1e42d0]
216
+ - Updated dependencies [2459a3e]
217
+ - Updated dependencies [ac853ce]
218
+ - Updated dependencies [fa51109]
219
+ - Updated dependencies [d6aa172]
220
+ - Updated dependencies [fe52a04]
221
+ - Updated dependencies [d46f9b8]
222
+ - Updated dependencies [3f5f87c]
223
+ - Updated dependencies [2fea4d2]
224
+ - Updated dependencies [f5e1143]
225
+ - Updated dependencies [7f1cb33]
226
+ - Updated dependencies [f148a64]
227
+ - Updated dependencies [bb68488]
228
+ - Updated dependencies [2e3b0c0]
229
+ - Updated dependencies [9461dd3]
230
+ - Updated dependencies [78fa331]
231
+ - Updated dependencies [47f551b]
232
+ - Updated dependencies [31ab1ac]
233
+ - Updated dependencies [0082db8]
234
+ - Updated dependencies [ab04728]
235
+ - Updated dependencies [5bf09fd]
236
+ - Updated dependencies [06915b0]
237
+ - Updated dependencies [ff84b05]
238
+ - @object-ui/i18n@17.5.0
239
+ - @object-ui/react@17.5.0
240
+ - @object-ui/components@17.5.0
241
+ - @object-ui/core@17.5.0
242
+ - @object-ui/types@17.5.0
243
+
244
+ ## 17.4.0
245
+
246
+ ### Minor Changes
247
+
248
+ - d9ce385: `ApproveOutcome` / `RejectOutcome` are now derived from `@objectstack/spec`
249
+ instead of hand-transcribed (objectui#3783). Same failure class #3220 cleared
250
+ from the same file for `PendingActionRow` / `PendingActionStatus` — but this pair
251
+ wore local names rather than spec names, so `check-spec-symbol-derivation.mjs`,
252
+ which fires on a spec export name being occupied, had no handle on it. A renamed
253
+ hand copy is invisible to a name-based guard by construction.
254
+
255
+ Both types now re-export the spec's decision responses
256
+ (`ApproveAiPendingActionResponse` / `RejectAiPendingActionResponse` from
257
+ `@objectstack/spec/api` — the same schemas `@objectstack/client`'s
258
+ `ai.pendingActions.approve()` / `.reject()` type their returns with). The public
259
+ export names do not change. The shapes do, in three ways:
260
+
261
+ - **`ApproveOutcome` no longer declares `id`.** The approve response has never
262
+ carried one — `id` is on the _reject_ response. This was the one drift that
263
+ was not dormant: `useHitlInChat`'s public `onDecided` callback promised
264
+ consumers `id: string` and handed them `undefined` at runtime, with nothing
265
+ in the compiler to say so. **If you read `outcome.id` after an approve, that
266
+ read was already `undefined` and now fails to compile** — take the id from
267
+ `ContinueContext.pendingActionId` or from the row you decided on.
268
+ - **`status` is closed.** `'executed' | 'failed' | string` and
269
+ `'rejected' | string` were both just `string`: a union with `string` absorbs
270
+ the literals, so neither annotation carried any information. They are now
271
+ `'executed' | 'failed'` and `'rejected'`.
272
+ - **The `[k: string]: unknown` index signature on `ApproveOutcome` is gone.** The
273
+ objectstack#4075 mechanism: with it, any structural comparison against the
274
+ spec answers "identical" however far the copy has drifted, so a parity test
275
+ bolted onto the old type would have been green from its first day.
276
+
277
+ **Breaking at the type level for importers of `@object-ui/plugin-chatbot`** —
278
+ narrowing a published type is a break even when the old type was lying, which is
279
+ why it is spelled out here. Shipped as `minor` per AGENTS.md §版本号策略: the
280
+ family's `major` tracks `@objectstack`'s, and objectui's own breaking changes go
281
+ out as `minor` with the break named in the changeset.
282
+
283
+ Runtime behaviour is unchanged — including the hook's decision handling for a
284
+ status outside the spec vocabulary, and the locally synthesized failure envelope
285
+ on a non-2xx, both now pinned by tests. The consumer-side tolerances that remain
286
+ in `useHitlInChat` are recorded in objectui#3790 for a maintainer decision.
287
+
288
+ ### Patch Changes
289
+
290
+ - 2a54e86: `parseAiQuotaError` now reads the AI quota refusal code from all three shapes the
291
+ cloud 429 producers use, instead of only the flat `error`-holds-the-code dialect.
292
+
293
+ The two live producers fill the same `error` key in opposite ways — the token
294
+ guardrail puts the **code** there, `service-ai` puts the **message** there and the
295
+ code in a `code` sibling — while ADR-0112 declares a third shape both are
296
+ converging on: `{ success: false, error: { code, message } }`. The consumer had to
297
+ learn the declared shape **first**, or the producers' convergence would silently
298
+ turn every quota refusal back into a generic "Response failed" banner (the same
299
+ consumer-first sequencing as objectui#2992).
300
+
301
+ - Code lookup order is a total order — declared envelope, then the flat guardrail
302
+ code, then the `code` sibling — so a transitional producer that double-emits the
303
+ new envelope alongside the legacy top-level keys has one defined outcome.
304
+ - Only the code's **location** widens. The recognized code set is unchanged, and
305
+ any unrecognized shape still degrades to today's behavior (`null`), so no
306
+ non-quota error is newly captured by the quota CTA.
307
+ - Companion fields (`upgrade`, `topUp`, `messageEn`) keep their established
308
+ top-level read; their position inside the declared envelope is deliberately not
309
+ presumed, and is aligned once the producer PR fixes the real shape.
310
+
311
+ - Updated dependencies [794c497]
312
+ - Updated dependencies [993336f]
313
+ - Updated dependencies [f0a625a]
314
+ - Updated dependencies [b5980f4]
315
+ - Updated dependencies [8aad9fd]
316
+ - Updated dependencies [6719877]
317
+ - Updated dependencies [56ff091]
318
+ - Updated dependencies [7864f03]
319
+ - Updated dependencies [0cbdca8]
320
+ - Updated dependencies [d229dfa]
321
+ - Updated dependencies [ecae400]
322
+ - Updated dependencies [4bc6c23]
323
+ - Updated dependencies [d3e738a]
324
+ - Updated dependencies [c3b01a7]
325
+ - Updated dependencies [f5f8744]
326
+ - Updated dependencies [7ed3360]
327
+ - Updated dependencies [69becd2]
328
+ - Updated dependencies [5e52495]
329
+ - Updated dependencies [0fa5e4d]
330
+ - Updated dependencies [b750823]
331
+ - Updated dependencies [5bfaabd]
332
+ - Updated dependencies [e06810e]
333
+ - Updated dependencies [ab3ad4f]
334
+ - Updated dependencies [c2fd122]
335
+ - Updated dependencies [ac2139c]
336
+ - Updated dependencies [b14ab3a]
337
+ - Updated dependencies [e24d767]
338
+ - Updated dependencies [8c60819]
339
+ - Updated dependencies [aca561a]
340
+ - Updated dependencies [e64a52e]
341
+ - Updated dependencies [844d17f]
342
+ - Updated dependencies [48132f7]
343
+ - Updated dependencies [4dcd52a]
344
+ - Updated dependencies [42ae5c6]
345
+ - Updated dependencies [0ef9dfd]
346
+ - Updated dependencies [1d723e3]
347
+ - Updated dependencies [0109f54]
348
+ - Updated dependencies [7e5bb5d]
349
+ - Updated dependencies [fbc23e0]
350
+ - Updated dependencies [6d762da]
351
+ - Updated dependencies [e6fdbdc]
352
+ - Updated dependencies [54233b1]
353
+ - Updated dependencies [f9faa7d]
354
+ - Updated dependencies [97b63d7]
355
+ - Updated dependencies [6bb454a]
356
+ - Updated dependencies [523be48]
357
+ - Updated dependencies [7e2b7e9]
358
+ - Updated dependencies [33526fd]
359
+ - Updated dependencies [32413ec]
360
+ - Updated dependencies [c1e1e6b]
361
+ - @object-ui/components@17.4.0
362
+ - @object-ui/react@17.4.0
363
+ - @object-ui/core@17.4.0
364
+ - @object-ui/i18n@17.4.0
365
+ - @object-ui/types@17.4.0
366
+
3
367
  ## 17.3.0
4
368
 
5
369
  ### Patch Changes
@@ -1000,6 +1364,7 @@ type:'chart', … }}/>` (decoupled — no hard dep on `plugin-charts`), giving t
1000
1364
  - 0335ec4: Polish the AI chat surface based on real-world dogfooding feedback.
1001
1365
 
1002
1366
  **`@object-ui/plugin-chatbot`** — new display helpers shared by `ChatbotEnhanced`:
1367
+
1003
1368
  - `unwrapToolResult(value)` peels the MCP-style `{ type: 'text', value: '<json>' }`
1004
1369
  envelope that backend tools emit (`@objectstack/service-ai`'s data/metadata
1005
1370
  tools, in particular), and JSON-parses the inner payload. The result panel
@@ -1020,6 +1385,7 @@ type:'chart', … }}/>` (decoupled — no hard dep on `plugin-charts`), giving t
1020
1385
  so wrappers can compose richer titles.
1021
1386
 
1022
1387
  **`@object-ui/app-shell`** — `AiChatPage`:
1388
+
1023
1389
  - Removes the fake "Hello! I'm X" assistant welcome bubble so the empty-state
1024
1390
  suggestion chips can actually render.
1025
1391
  - Adds per-agent default suggestion sets (`data_chat`, `metadata_assistant`)
@@ -1472,6 +1838,7 @@ Assistant… (try "系统里有多少个用户?")`).
1472
1838
  ### Patch Changes
1473
1839
 
1474
1840
  - 1b6dc64: fix: complete Tailwind v3→v4 migration cleanup
1841
+
1475
1842
  - Rename deprecated `flex-shrink-0` → `shrink-0` and `flex-grow-N` →
1476
1843
  `grow-N` (Tailwind v4 dropped the long-form aliases). Affects
1477
1844
  data-table, fields/index, FileField, ChatbotEnhanced,
@@ -1532,6 +1899,7 @@ Assistant… (try "系统里有多少个用户?")`).
1532
1899
  Library builds (vite lib mode) now externalize every non-relative import instead of bundling third-party CJS dependencies into the published dist. This avoids inlined `require("react")` / `require("react-dom")` calls that cause `Calling \`require\` for "react" in an environment that doesn't expose the \`require\` function` runtime errors when consumer apps re-bundle the published dist.
1533
1900
 
1534
1901
  Specifically fixes:
1902
+
1535
1903
  - `@object-ui/plugin-dashboard` no longer inlines `react-grid-layout` (and its transitive `react-draggable` / `react-resizable` CJS bundles). `react-grid-layout` is now declared as a peer dependency so consumers install a single ESM-friendly copy.
1536
1904
  - `@object-ui/components`, `@object-ui/plugin-calendar`, `@object-ui/plugin-charts`, `@object-ui/plugin-designer` no longer inline `react-i18next` / `i18next` / `use-sync-external-store` CJS shims.
1537
1905
  - All plugin packages now use a unified `external: (id) => !/^[./]/.test(id) && !id.startsWith(__dirname)` rule, ensuring future additions of CJS deps are automatically externalized.
package/README.md CHANGED
@@ -55,7 +55,7 @@ function App() {
55
55
  ### AI Streaming Mode (service-ai)
56
56
 
57
57
  When `api` is set in the schema, the chatbot connects to a backend SSE endpoint
58
- using `@ai-sdk/react` v3 (Vercel UI Message Stream protocol) for streaming,
58
+ using `@ai-sdk/react` v4 (Vercel UI Message Stream protocol) for streaming,
59
59
  tool-calling, and production-grade chat:
60
60
 
61
61
  ```tsx
@@ -110,6 +110,30 @@ function MyChat() {
110
110
  }
111
111
  ```
112
112
 
113
+ #### What `messages` actually contains
114
+
115
+ `messages` — and the `onSend(content, messages)` callback fed from it — is
116
+ typed `ObjectChatMessage[]`, exported from this package. It is deliberately
117
+ neither of the two `ChatMessage` types nearby, because neither is true of both
118
+ modes (objectui#4424):
119
+
120
+ - **Not `@object-ui/types`' authoring `ChatMessage`.** In API mode the values
121
+ come from the runtime mapper and carry `buildProgress`, `blueprintProgress`,
122
+ `charts`, and `pendingActionId` / `draftReview` / `proposedPlan` /
123
+ `proposedChanges` / `builderHandoff` on each tool invocation — the approval
124
+ card, the "Review N changes" affordance, the plan card, the build panel and
125
+ the inline charts. The authoring contract declares none of them, so rebuilding
126
+ a message field-by-field from it deletes all of them, and the compiler agrees.
127
+ - **Not this package's runtime `ChatMessage` either.** In local mode an authored
128
+ `'tool'` role and the legacy `'partial-call'` / `'call'` / `'result'` tool
129
+ states pass through untouched; they are folded only at the render seam
130
+ (`toRuntimeMessages`, `chatMessageAdapter.ts`).
131
+
132
+ `ObjectChatMessage` is a subtype of the authoring `ChatMessage`, so anything
133
+ already typed against that keeps compiling — naming `ObjectChatMessage` is what
134
+ lets you *read* the keys above. `timestamp` is always a `string` here: both
135
+ modes absorb an authored `Date` before emitting.
136
+
113
137
  ## Schema-Driven Usage
114
138
 
115
139
  ### Discovering Backend Agents
@@ -211,17 +235,6 @@ const aiSchema = {
211
235
  | Stop/Reload | Stop cancels timer | Stop interrupts stream |
212
236
  | Backend | None required | service-ai (IAIService) |
213
237
 
214
- <!-- release-metadata:v3.3.0 -->
215
-
216
- ## Compatibility
217
-
218
- - **React:** 18.x or 19.x
219
- - **Node.js:** ≥ 18
220
- - **TypeScript:** ≥ 5.0 (strict mode)
221
- - **`@objectstack/spec`:** ^3.3.0
222
- - **`@objectstack/client`:** ^3.3.0
223
- - **Tailwind CSS:** ≥ 3.4 (for packages with UI)
224
-
225
238
  ## Links
226
239
 
227
240
  - 📚 [Documentation](https://www.objectui.org/docs/plugins/plugin-chatbot)
@@ -267,6 +280,62 @@ import { AIElements } from '@object-ui/plugin-chatbot';
267
280
  </AIElements.Conversation>;
268
281
  ```
269
282
 
283
+ ### The `ChatMessage` type
284
+
285
+ `ChatMessage` is this package's one message contract — the shape
286
+ `<ChatbotEnhanced>` renders and the mappers below produce. On top of the core
287
+ `id` / `role` / `content` / `timestamp` / `avatar` / `avatarFallback` fields it
288
+ carries the streaming and agent-process keys (`streaming`, `toolInvocations`,
289
+ `reasoning`, `sources`, `traceId`, `buildProgress`, `blueprintProgress`,
290
+ `charts`), all optional.
291
+
292
+ ```tsx
293
+ import type { ChatMessage } from '@object-ui/plugin-chatbot';
294
+ ```
295
+
296
+ > This barrel used to export **two** different `ChatMessage` types: a minimal
297
+ > one declared here, plus the enhanced shape aliased as
298
+ > `ChatbotEnhancedMessage`. Reaching for the natural name got you the narrow
299
+ > contract with no compiler complaint (objectui#4383). The minimal shape is
300
+ > retired; `ChatbotEnhancedMessage` is now a **deprecated alias of the same
301
+ > type**, kept only so existing importers keep compiling.
302
+
303
+ Note that `@object-ui/types` also exports a `ChatMessage`. That one is the
304
+ **JSON/SDUI schema** type (`ChatbotSchema['messages']`, `role` includes
305
+ `'tool'`, `timestamp` may be a `Date`) — the authoring contract, not the React
306
+ runtime one. Import the schema type from `@object-ui/types` and the runtime
307
+ type from this package.
308
+
309
+ ### Authoring → runtime: `toRuntimeMessages`
310
+
311
+ The two contracts are both deliberate, so they drift — and the conversion
312
+ between them is a real decision, not a formality. If you hold **authored**
313
+ messages (`@object-ui/types`) and want to render them with the components in
314
+ this package, convert them; do not cast:
315
+
316
+ ```tsx
317
+ import type { ChatMessage as AuthoredChatMessage } from '@object-ui/types';
318
+ import { ChatbotEnhanced, toRuntimeMessages } from '@object-ui/plugin-chatbot';
319
+
320
+ function MyAuthoredChat({ messages }: { messages: AuthoredChatMessage[] }) {
321
+ return <ChatbotEnhanced messages={toRuntimeMessages(messages)} />;
322
+ }
323
+ ```
324
+
325
+ | key | authoring (`@object-ui/types`) | runtime (this package) | what the adapter decides |
326
+ |---|---|---|---|
327
+ | `role` | `'user' \| 'assistant' \| 'system' \| 'tool'` | `'user' \| 'assistant' \| 'system'` | a `'tool'` message **is an assistant message**: it renders as an assistant bubble with its content shown. `'system'` keeps its own role (`<Chatbot>` renders it as a centred pill). |
328
+ | `timestamp` | `string \| Date` | `string` | a `Date` becomes its ISO 8601 string. The runtime renders the timestamp straight into a React child, where an object throws. |
329
+ | `toolInvocations[].state` | AI SDK v6 states **+ legacy** `'partial-call' \| 'call' \| 'result'` | v6 states only | the legacy spellings map to `'input-streaming'` / `'input-available'` / `'output-available'` — the mapping the authoring type's own docs declare. |
330
+ | everything else | — | — | passed through untouched, including keys the runtime contract does not declare. |
331
+
332
+ The three registered SDUI renderers (`chatbot`, `chatbot-enhanced`,
333
+ `chatbot-floating`) use this adapter; they used to use `messages as any`, which
334
+ compiled away the intentional drift and any accidental drift with it
335
+ (objectui#4399). `authoredToRuntimeMessage` is the single-message variant, and
336
+ `toRuntimeRole` / `toRuntimeTimestamp` / `toRuntimeToolState` are the individual
337
+ decisions if you need one on its own.
338
+
270
339
  ### Message mapping helpers
271
340
 
272
341
  If you wire `@ai-sdk/react`'s `useChat()` directly and want to render its
@@ -281,6 +281,20 @@ export interface ChatToolInvocation {
281
281
  prompt: string;
282
282
  packageId?: string;
283
283
  };
284
+ /**
285
+ * objectui#5695 — the terminal verdict of a confirm-replay (`replay_<id>`
286
+ * tool results; cloud `runApprovedProposalReplay`). Rendered as a terminal
287
+ * state on the ORIGINAL 确认修改 card — 已生效 / 已暂存为草稿 / 未生效 — so a
288
+ * rolled-back publish exists somewhere a USER can see it, independent of
289
+ * whether the model narrates it honestly.
290
+ */
291
+ replayOutcome?: {
292
+ kind: 'published' | 'drafted' | 'failed';
293
+ outcome?: string;
294
+ error?: string;
295
+ packageId?: string;
296
+ dispatchError?: boolean;
297
+ };
284
298
  }
285
299
  export interface ChatSource {
286
300
  id?: string;
@@ -679,6 +693,21 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
679
693
  * not supplied, so an unrecognised server-side verb still renders.
680
694
  */
681
695
  changeVerbLabels?: Record<string, string>;
696
+ /** In-flight badge while the confirm-replay is applying (default "Applying…"). objectui#5695. */
697
+ changesApplyingLabel?: string;
698
+ /** Terminal badge when the replay published the change (default "Applied"). */
699
+ changesAppliedLabel?: string;
700
+ /** Terminal badge when the replay staged a draft (default "Saved as draft"). */
701
+ changesDraftedLabel?: string;
702
+ /** Terminal badge when the replay's publish did not go live (default "Not applied"). */
703
+ changesFailedLabel?: string;
704
+ /**
705
+ * cloud#1610 — a small chip above the composer naming what the conversation
706
+ * is currently ABOUT (「正在讨论:仪表盘 sales_overview」), so the context the
707
+ * host sends to the agent is visible to the user instead of invisible
708
+ * grounding. Display-only; absent = no chip.
709
+ */
710
+ surfaceContextLabel?: string;
682
711
  /**
683
712
  * Live draft-status resolver: how many drafts are still PENDING in a
684
713
  * package (e.g. `GET /metadata/_drafts?packageId=` count). When provided,
@@ -1 +1 @@
1
- {"version":3,"file":"ChatbotEnhanced.d.ts","sourceRoot":"","sources":["../src/ChatbotEnhanced.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgE/B,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,MAAM,C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