@object-ui/plugin-chatbot 17.7.0 → 18.0.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/README.md CHANGED
@@ -21,17 +21,17 @@ npm install @object-ui/plugin-chatbot
21
21
 
22
22
  ### Basic (Local/Demo Mode)
23
23
 
24
- `ChatMessage` is this package's runtime message contract, and `role` on it is
24
+ `ChatbotEnhancedMessage` is this package's runtime message contract, and `role` on it is
25
25
  the closed union `'user' | 'assistant' | 'system'`. Annotate the state with it:
26
26
  an unannotated array literal widens `role` to `string`, which `<Chatbot>` then
27
27
  refuses.
28
28
 
29
29
  ```tsx
30
30
  import { useState } from 'react';
31
- import { Chatbot, type ChatMessage } from '@object-ui/plugin-chatbot';
31
+ import { Chatbot, type ChatbotEnhancedMessage } from '@object-ui/plugin-chatbot';
32
32
 
33
33
  function App() {
34
- const [messages, setMessages] = useState<ChatMessage[]>([
34
+ const [messages, setMessages] = useState<ChatbotEnhancedMessage[]>([
35
35
  {
36
36
  id: '1',
37
37
  role: 'assistant',
@@ -40,7 +40,7 @@ function App() {
40
40
  ]);
41
41
 
42
42
  const handleSend = (content: string) => {
43
- const newMessage: ChatMessage = {
43
+ const newMessage: ChatbotEnhancedMessage = {
44
44
  id: Date.now().toString(),
45
45
  role: 'user',
46
46
  content
@@ -120,7 +120,7 @@ function MyChat() {
120
120
 
121
121
  `messages` — and the `onSend(content, messages)` callback fed from it — is
122
122
  typed `ObjectChatMessage[]`, exported from this package. It is deliberately
123
- neither of the two `ChatMessage` types nearby, because neither is true of both
123
+ neither of the two message contracts nearby, because neither is true of both
124
124
  modes (objectui#4424):
125
125
 
126
126
  - **Not `@object-ui/types`' authoring `ChatMessage`.** In API mode the values
@@ -133,7 +133,7 @@ modes (objectui#4424):
133
133
  API mode also produces the AI SDK's three approval states
134
134
  (`'approval-requested'` / `'approval-responded'` / `'output-denied'`), which
135
135
  the authoring contract refuses — they are runtime-only (objectui#10018).
136
- - **Not this package's runtime `ChatMessage` either.** In local mode an authored
136
+ - **Not this package's runtime `ChatbotEnhancedMessage` either.** In local mode an authored
137
137
  `'tool'` role and the legacy `'partial-call'` / `'call'` / `'result'` tool
138
138
  states pass through untouched; they are folded only at the render seam
139
139
  (`toRuntimeMessages`, `chatMessageAdapter.ts`).
@@ -202,6 +202,14 @@ safe side gutters, stays above the mobile bottom navigation area, and hides the
202
202
  FAB while open so the close button in the panel header is the only active
203
203
  dismiss control.
204
204
 
205
+ A host that wants to signal a waiting approval outside the chat can pass
206
+ `ChatbotEnhanced` the optional `onPlanApprovalPendingChange` callback. It is
207
+ called with `true` while the thread's newest proposed plan still offers
208
+ "Build it", and with `false` otherwise: no plan, the user approved it, or its
209
+ build ran. It fires once on mount and again on every change. The console uses
210
+ it to put a marker on its chat launchers while the chat is closed
211
+ (objectui#11666).
212
+
205
213
  During a conversation, the chat surface renders an inline assistant responding
206
214
  indicator while the backend is streaming, keeps message actions quiet until
207
215
  hover/focus, and summarizes backend failures into a compact retryable notice
@@ -291,9 +299,9 @@ import { AIElements } from '@object-ui/plugin-chatbot';
291
299
  </AIElements.Conversation>;
292
300
  ```
293
301
 
294
- ### The `ChatMessage` type
302
+ ### The `ChatbotEnhancedMessage` type
295
303
 
296
- `ChatMessage` is this package's one message contract — the shape
304
+ `ChatbotEnhancedMessage` is this package's one message contract — the shape
297
305
  `<ChatbotEnhanced>` renders and the mappers below produce. On top of the core
298
306
  `id` / `role` / `content` / `timestamp` / `avatar` / `avatarFallback` fields it
299
307
  carries the streaming and agent-process keys (`streaming`, `toolInvocations`,
@@ -301,21 +309,24 @@ carries the streaming and agent-process keys (`streaming`, `toolInvocations`,
301
309
  `charts`), all optional.
302
310
 
303
311
  ```tsx
304
- import type { ChatMessage } from '@object-ui/plugin-chatbot';
312
+ import type { ChatbotEnhancedMessage } from '@object-ui/plugin-chatbot';
305
313
  ```
306
314
 
307
- > This barrel used to export **two** different `ChatMessage` types: a minimal
308
- > one declared here, plus the enhanced shape aliased as
309
- > `ChatbotEnhancedMessage`. Reaching for the natural name got you the narrow
310
- > contract with no compiler complaint (objectui#4383). The minimal shape is
311
- > retired; `ChatbotEnhancedMessage` is now a **deprecated alias of the same
312
- > type**, kept only so existing importers keep compiling.
315
+ Its tool invocations are `ChatbotEnhancedToolInvocation`, also exported here.
316
+
317
+ `ChatMessage` is **not** exported from this package. That name belongs to
318
+ `@object-ui/types`, where it is the **JSON/SDUI schema** type
319
+ (`ChatbotSchema['messages']`, `role` includes `'tool'`, `timestamp` may be a
320
+ `Date`) — the authoring contract, not the React runtime one. Import the schema
321
+ type from `@object-ui/types` and the runtime type from this package.
313
322
 
314
- Note that `@object-ui/types` also exports a `ChatMessage`. That one is the
315
- **JSON/SDUI schema** type (`ChatbotSchema['messages']`, `role` includes
316
- `'tool'`, `timestamp` may be a `Date`) — the authoring contract, not the React
317
- runtime one. Import the schema type from `@object-ui/types` and the runtime
318
- type from this package.
323
+ > Migrating: this package used to publish the runtime shape as `ChatMessage`
324
+ > too, with `ChatbotEnhancedMessage` a deprecated alias of it (objectui#4383).
325
+ > One name for two contracts across the two packages let an auto-import pick
326
+ > the wrong one, so the runtime name is now `ChatbotEnhancedMessage` alone
327
+ > (objectui#6349). Replace `import { type ChatMessage } from
328
+ > '@object-ui/plugin-chatbot'` with `ChatbotEnhancedMessage` — the shape is
329
+ > unchanged.
319
330
 
320
331
  ### Authoring → runtime: `toRuntimeMessages`
321
332
 
@@ -392,9 +403,9 @@ chat routes can use `surface="plain"` to remove the outer panel border and let
392
403
  messages, controls, and the prompt input sit in a continuous workspace:
393
404
 
394
405
  ```tsx
395
- import { ChatbotEnhanced, type ChatMessage } from '@object-ui/plugin-chatbot';
406
+ import { ChatbotEnhanced, type ChatbotEnhancedMessage } from '@object-ui/plugin-chatbot';
396
407
 
397
- declare const messages: ChatMessage[];
408
+ declare const messages: ChatbotEnhancedMessage[];
398
409
 
399
410
  <ChatbotEnhanced
400
411
  messages={messages}
@@ -403,6 +414,26 @@ declare const messages: ChatMessage[];
403
414
  />;
404
415
  ```
405
416
 
417
+ A host can add its own row to the prompt area with `promptHeaderSlot`. The row
418
+ is laid out in flow directly above the prompt input (and outside its form), so
419
+ the conversation gives up the room and the row never covers the input or the
420
+ last message. Content that renders nothing takes no space. Use it for standing
421
+ affordances such as an "unpublished changes" bar; `promptOverlaySlot` stays the
422
+ absolute-positioned overlay for slash-command palettes.
423
+
424
+ ```tsx
425
+ import { ChatbotEnhanced, type ChatbotEnhancedMessage } from '@object-ui/plugin-chatbot';
426
+
427
+ declare const messages: ChatbotEnhancedMessage[];
428
+ declare const pendingChanges: number;
429
+
430
+ <ChatbotEnhanced
431
+ messages={messages}
432
+ surface="plain"
433
+ promptHeaderSlot={pendingChanges > 0 ? <div>{pendingChanges} changes are not published yet</div> : null}
434
+ />;
435
+ ```
436
+
406
437
  ### Agent process visibility
407
438
 
408
439
  `ChatbotEnhanced` defaults to an end-user friendly agent process view. Tool
@@ -415,9 +446,9 @@ Use `processVisibility="debug"` for developer or admin trace surfaces that need
415
446
  the full reasoning panel, raw tool names, tool parameters, and tool results:
416
447
 
417
448
  ```tsx
418
- import { ChatbotEnhanced, type ChatMessage } from '@object-ui/plugin-chatbot';
449
+ import { ChatbotEnhanced, type ChatbotEnhancedMessage } from '@object-ui/plugin-chatbot';
419
450
 
420
- declare const messages: ChatMessage[];
451
+ declare const messages: ChatbotEnhancedMessage[];
421
452
 
422
453
  <ChatbotEnhanced
423
454
  messages={messages}
@@ -1 +1 @@
1
- {"version":3,"file":"AiPendingActionsInbox.d.ts","sourceRoot":"","sources":["../src/AiPendingActionsInbox.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0D/B,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC,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O,EACP,OAAO,EACP,YAAmB,EACnB,cAAc,EACd,OAAgB,EAChB,KAAK,EACL,WAAW,EACX,SAAS,GACV,EAAE,0BAA0B,qBA2Y5B"}
@@ -1,4 +1,4 @@
1
- import { DraftReview } from './mapMessages.js';
1
+ import { DraftReview, ProposedChanges, ProposedPlan, ReplayOutcome } from './mapMessages.js';
2
2
  /**
3
3
  * ObjectUI
4
4
  * Copyright (c) 2024-present ObjectStack Inc.
@@ -19,7 +19,14 @@ import { DraftReview } from './mapMessages.js';
19
19
  * - streaming markdown via streamdown (used by Message internals)
20
20
  */
21
21
  import * as React from 'react';
22
- export interface ChatMessage {
22
+ /**
23
+ * One chat message as `<ChatbotEnhanced>` RENDERS it — the runtime contract of
24
+ * this package. Not `@object-ui/types`' `ChatMessage`, which is the JSON/SDUI
25
+ * AUTHORING contract (`ChatbotSchema['messages']`); `toRuntimeMessages`
26
+ * converts one into the other. Two meanings, two names (objectui#6349,
27
+ * batch 5): this declaration used to be called `ChatMessage` too.
28
+ */
29
+ export interface ChatbotEnhancedMessage {
23
30
  id: string;
24
31
  role: 'user' | 'assistant' | 'system';
25
32
  content: string;
@@ -33,7 +40,7 @@ export interface ChatMessage {
33
40
  * `ToolUIPart` shape (see `vercel/ai` v3) so we can render them with the
34
41
  * vendored `<Tool>` element without any extra mapping.
35
42
  */
36
- toolInvocations?: ChatToolInvocation[];
43
+ toolInvocations?: ChatbotEnhancedToolInvocation[];
37
44
  /** Chain-of-thought / reasoning text emitted alongside the answer. */
38
45
  reasoning?: string;
39
46
  /** Optional citation / RAG sources for this assistant message. */
@@ -84,10 +91,19 @@ export interface ChatChart {
84
91
  label?: string;
85
92
  }>;
86
93
  }
94
+ /**
95
+ * A build-progress frame's phase: `@objectstack/spec/ai`'s closed
96
+ * `BuildProgressPhase` vocabulary, plus `unknown` for a value outside it, which
97
+ * is surfaced as a warning — never as "Building" (objectui#11988). Spelled out
98
+ * rather than imported so the published typings need no newer spec floor;
99
+ * `buildVerify-11988.test.tsx` asserts at compile time that it equals the
100
+ * spec's union, both ways.
101
+ */
102
+ type ChatBuildPhase = 'structure' | 'data' | 'verify' | 'done' | 'unknown';
87
103
  /** A reconciled snapshot of an in-flight app build (apply_blueprint). */
88
104
  export interface ChatBuildProgress {
89
105
  /** Coarse phase: drafting structure, generating sample data, or finished. */
90
- phase: 'structure' | 'data' | 'done';
106
+ phase: ChatBuildPhase;
91
107
  /** Human label for the app being built (for the panel header). */
92
108
  appLabel?: string;
93
109
  /** Artifacts drafted so far, cumulative. */
@@ -106,6 +122,16 @@ export interface ChatBuildProgress {
106
122
  * heartbeat). Absent from older runtimes.
107
123
  */
108
124
  seq?: number;
125
+ /**
126
+ * The post-apply verification loop, read from its own `build-verify` part
127
+ * beside the tree (objectui#11988): `verify` while a hop runs, `done` once
128
+ * the loop exits. `hop` and `tool` are the spec frame's own fields.
129
+ */
130
+ verify?: {
131
+ phase: ChatBuildPhase;
132
+ hop?: number;
133
+ tool?: string;
134
+ };
109
135
  }
110
136
  /**
111
137
  * A reconciled snapshot of an in-flight blueprint DESIGN (`propose_blueprint`).
@@ -151,7 +177,15 @@ export interface ChatBlueprintProgress {
151
177
  */
152
178
  seq?: number;
153
179
  }
154
- export interface ChatToolInvocation {
180
+ /**
181
+ * One tool invocation as `<ChatbotEnhanced>` RENDERS it: the AI SDK v6 states
182
+ * (the three approval states included) plus the render-only keys
183
+ * `mapMessages.ts` lifts out of tool results. Not `@object-ui/types`'
184
+ * `ChatToolInvocation`, the AUTHORING face that refuses those states
185
+ * (objectui#10018). Two meanings, two names (objectui#6349, batch 5): this
186
+ * declaration used to be called `ChatToolInvocation` too.
187
+ */
188
+ export interface ChatbotEnhancedToolInvocation {
155
189
  toolCallId: string;
156
190
  toolName: string;
157
191
  args?: unknown;
@@ -211,42 +245,21 @@ export interface ChatToolInvocation {
211
245
  * objects the build will create, the agent's assumptions, and any
212
246
  * structure-deciding questions — and the user can approve or adjust before
213
247
  * `apply_blueprint` runs. Nothing is created yet; this is the confirm gate.
248
+ *
249
+ * The shape is `mapMessages.ts`'s `ProposedPlan`, referenced rather than
250
+ * repeated, for the reason `draftReview` above gives (objectui#12724 added
251
+ * the field, view and app-label rows to it).
214
252
  */
215
- proposedPlan?: {
216
- summary?: string;
217
- objects: Array<{
218
- name: string;
219
- label?: string;
220
- fieldCount: number;
221
- }>;
222
- counts: {
223
- objects: number;
224
- views: number;
225
- dashboards: number;
226
- seedData: number;
227
- };
228
- questions: string[];
229
- questionChoices?: Array<{
230
- text: string;
231
- options: string[];
232
- }>;
233
- assumptions: string[];
234
- targetApp?: string;
235
- };
253
+ proposedPlan?: ProposedPlan;
236
254
  /** Granular metadata-change preview (confirm-before-change). Set only
237
255
  * when a mutating tool returned status:'changes_proposed' — i.e. it was
238
- * NOT yet approved this turn, so nothing changed. Rendered as a 确认修改 card. */
239
- proposedChanges?: {
240
- summary?: string;
241
- changes: Array<{
242
- verb: string;
243
- object?: string;
244
- field?: string;
245
- type?: string;
246
- name?: string;
247
- details?: string;
248
- }>;
249
- };
256
+ * NOT yet approved this turn, so nothing changed. Rendered as a 确认修改 card.
257
+ *
258
+ * The shape is `mapMessages.ts`'s `ProposedChanges`, the type
259
+ * `detectProposedChanges` returns, referenced rather than repeated for the
260
+ * reason `draftReview` above gives (objectui#12894 added the posture and
261
+ * the primary action to it). */
262
+ proposedChanges?: ProposedChanges;
250
263
  /**
251
264
  * ADR-0057 P4 — the `ask` agent's structured decline-and-redirect. Set when
252
265
  * the ask agent called `suggest_builder` (`{ handoff:'build', prompt,
@@ -276,14 +289,12 @@ export interface ChatToolInvocation {
276
289
  * state on the ORIGINAL 确认修改 card — 已生效 / 已暂存为草稿 / 未生效 — so a
277
290
  * rolled-back publish exists somewhere a USER can see it, independent of
278
291
  * whether the model narrates it honestly.
292
+ *
293
+ * The shape is `mapMessages.ts`'s `ReplayOutcome`, referenced rather than
294
+ * repeated (objectui#12894 added the applied card of a change saved as a
295
+ * draft to it).
279
296
  */
280
- replayOutcome?: {
281
- kind: 'published' | 'drafted' | 'failed';
282
- outcome?: string;
283
- error?: string;
284
- packageId?: string;
285
- dispatchError?: boolean;
286
- };
297
+ replayOutcome?: ReplayOutcome;
287
298
  }
288
299
  export interface ChatSource {
289
300
  id?: string;
@@ -303,6 +314,11 @@ export interface ChatbotLabels {
303
314
  clear?: string;
304
315
  /** Trailing hint next to the send button (e.g. "to send"). */
305
316
  sendHint?: string;
317
+ /**
318
+ * objectui#12724 — the newline half of the composer's key hint, after
319
+ * "Shift+↵" («↵ 发送 · Shift+↵ 换行»). Omitted, the hint names sending only.
320
+ */
321
+ newlineHint?: string;
306
322
  /** Compact agent activity heading shown in summary mode. */
307
323
  agentActivity?: string;
308
324
  /** Status label for completed tool work. */
@@ -380,7 +396,7 @@ export interface ChatbotLabels {
380
396
  export type ChatbotProcessVisibility = 'hidden' | 'summary' | 'debug';
381
397
  export type ChatbotSurface = 'card' | 'plain';
382
398
  export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElement> {
383
- messages?: ChatMessage[];
399
+ messages?: ChatbotEnhancedMessage[];
384
400
  placeholder?: string;
385
401
  /**
386
402
  * Send handler. Signature kept backwards compatible — `files` is the list
@@ -473,6 +489,16 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
473
489
  * Intended for slash-command palettes / inline suggestion popups.
474
490
  */
475
491
  promptOverlaySlot?: React.ReactNode;
492
+ /**
493
+ * Optional row rendered IN FLOW at the top of the prompt area, directly
494
+ * above the prompt input and inside the prompt's column. Unlike
495
+ * {@link promptOverlaySlot} it takes layout space: the conversation above
496
+ * shrinks to make room, so the row covers neither the input nor the last
497
+ * message (objectui#12978 — the host's standing pending-drafts bar, which
498
+ * used to float over the input's first line). Content that renders nothing
499
+ * takes no space: the row is hidden while it is empty.
500
+ */
501
+ promptHeaderSlot?: React.ReactNode;
476
502
  /**
477
503
  * Fired on every keystroke in the prompt textarea (forwarded from the
478
504
  * AI Elements `PromptInputTextarea`). Lets callers drive a slash-command
@@ -503,7 +529,7 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
503
529
  * When provided, tool parts whose result drafted metadata (ADR-0033) render a
504
530
  * "Review N change(s)" button inside their body. The callback receives the
505
531
  * reviewable `{ type, name }` targets; the host typically navigates to the
506
- * designer's review/diff. See `ChatToolInvocation.draftReview`.
532
+ * designer's review/diff. See `ChatbotEnhancedToolInvocation.draftReview`.
507
533
  */
508
534
  onReviewDraft?: (items: Array<{
509
535
  type: string;
@@ -526,6 +552,30 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
526
552
  * two separately-verified statements.
527
553
  */
528
554
  onPublishDrafts?: (packageId: string) => void | boolean | PublishOutcome | Promise<void | boolean | PublishOutcome>;
555
+ /**
556
+ * objectui#12894 — 查看变更并发布 on the applied card of a change the copilot
557
+ * saved as a draft (cloud#2924): open the host's review of the package's
558
+ * pending drafts (Studio's 变更), where the user checks them and publishes.
559
+ * Absent, the applied card keeps the inline Publish button `onPublishDrafts`
560
+ * draws, as before.
561
+ */
562
+ onReviewDrafts?: (packageId: string) => void;
563
+ /**
564
+ * objectui#12894 — 撤销 on the same applied card. The host wires it to
565
+ * `POST /api/v1/packages/:packageId/discard-drafts`, which discards EVERY
566
+ * pending draft of the package, not only this change's; the card says so,
567
+ * and asks first, whenever other drafts are pending (`draftState.others`, or
568
+ * the live count from `fetchPendingDraftCount` when the host gives one).
569
+ * Return `false` / `{ ok: false, error? }` on failure; any other outcome
570
+ * (incl. void) counts as done. Absent, no 撤销 is drawn.
571
+ */
572
+ onDiscardDrafts?: (packageId: string) => void | boolean | {
573
+ ok: boolean;
574
+ error?: string;
575
+ } | Promise<void | boolean | {
576
+ ok: boolean;
577
+ error?: string;
578
+ }>;
529
579
  /**
530
580
  * When provided, a finished build tree (`buildProgress.phase === 'done'`) that
531
581
  * created an `app` renders an "Open app" action so the user can jump straight
@@ -536,10 +586,11 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
536
586
  /** Label for the open-built-app action (default "Open app"). */
537
587
  openBuiltAppLabel?: string;
538
588
  /**
539
- * ADR-0080 D5 cold-start handoff — when provided, a finished build renders
540
- * "Design in Studio" as the PRIMARY action (Studio is the built app's
541
- * iteration home), demoting "Open app" to a secondary action. The host
542
- * wires this to its Studio route (e.g. `navigate('/studio/<pkg>/interfaces')`).
589
+ * When provided, a finished build that created an `app` renders a "Design in
590
+ * Studio" action (the console's 在 Studio 中查看). Beside `onOpenBuiltApp` it is
591
+ * the SECONDARY action — "Open app" (打开应用) is primary (objectui#12724);
592
+ * without `onOpenBuiltApp` it takes the primary slot. The host wires this to
593
+ * its Studio route (e.g. `navigate('/studio/<pkg>/interfaces')`).
543
594
  */
544
595
  onDesignBuiltApp?: (appName: string, appSegment?: string) => void;
545
596
  /** Label for the design-built-app action (default "Design in Studio"). */
@@ -571,6 +622,26 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
571
622
  }) => void;
572
623
  /** Label for the preview-draft action (default "Preview"). */
573
624
  previewDraftLabel?: string;
625
+ /**
626
+ * objectui#12968 (objectstack#24324 ruling A, preview-first) — preview ANY
627
+ * drafted result, not only a drafted app. When provided, a drafted tool
628
+ * result whose items include no `app` and whose owning `packageId` is known
629
+ * renders a Preview button beside Publish and Review; the click hands the
630
+ * host the drafted `{ type, name }` items and the package id as the app's
631
+ * route segment (ADR-0048). The host resolves the affected surface (a page,
632
+ * the object's list on a view, the object's default list) and opens it in
633
+ * draft preview (`?preview=draft`). A draft set that includes an app keeps
634
+ * {@link ChatbotEnhancedProps.onPreviewDraftApp}, unchanged. The applied
635
+ * card of a confirmed change saved as a draft (a `drafted` replay outcome)
636
+ * draws the same Preview over the items that change drafted. Preview never
637
+ * publishes: publish stays the human gate (ADR-0033).
638
+ */
639
+ onPreviewDraft?: (items: Array<{
640
+ type: string;
641
+ name: string;
642
+ }>, opts: {
643
+ appSegment: string;
644
+ }) => void;
574
645
  /**
575
646
  * ADR-0037 Live Canvas: notifies the host whenever AI-authored draft
576
647
  * artifacts land in the conversation (build-progress items + drafted
@@ -587,6 +658,17 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
587
658
  * but unlisted. Hosts switch the canvas to the real app URL.
588
659
  */
589
660
  onBuildMaterialized?: (appName: string) => void;
661
+ /**
662
+ * objectui#11666 — reports whether this thread's NEWEST proposed plan is
663
+ * still waiting for the user's approval: its card offers "Build it", i.e.
664
+ * {@link resolveProposalCardState} reads `pending` for it. Fires once on
665
+ * mount and again on every change of that boolean. An earlier plan does not
666
+ * count once a newer one exists (the newer card is the one awaiting); an
667
+ * approval (the optimistic "Building…" flip) or a build that ran ends it.
668
+ * Hosts mirror it outside the chat — the console's launchers show a marker
669
+ * while the chat is closed.
670
+ */
671
+ onPlanApprovalPendingChange?: (pending: boolean) => void;
590
672
  /**
591
673
  * ADR-0057 P4 — invoked when the user clicks "Open in Builder →" on an `ask`
592
674
  * agent's `suggest_builder` decline. The host opens the build surface seeded
@@ -624,9 +706,16 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
624
706
  nextStepsLabel?: string;
625
707
  /** Heading for the pre-build proposed-plan card (default "Proposed plan"). */
626
708
  planTitleLabel?: string;
627
- /** Extend mode: prefix shown when proposedPlan.targetApp is set, framing
628
- * the build as additive (e.g. "Adding to existing app"). */
709
+ /** Extend mode: host override for the scope chip's prefix, shown before the
710
+ * target app as `PREFIX "APP"` when proposedPlan.targetApp is set. Omitted,
711
+ * the chip reads the localized `chatbot.plan.extendTarget` sentence — the
712
+ * component carries no English default of its own (objectui#11658). */
629
713
  planExtendLabel?: string;
714
+ /** objectui#11658 — the display label of an existing app, by its machine
715
+ * name. The extend-mode scope chip names the target app with it; the
716
+ * internal name stays on the chip's tooltip. `undefined` (or a resolver that
717
+ * does not know the app) shows the name as given. */
718
+ resolveAppLabel?: (appName: string) => string | undefined;
630
719
  /** Heading above the structure-deciding questions in the plan card (default "Confirm before building"). */
631
720
  planQuestionsLabel?: string;
632
721
  /** Heading above the agent's assumptions in the plan card (default "Assumptions"). */
@@ -829,7 +918,7 @@ type ToolSummaryState = 'running' | 'awaiting' | 'completed' | 'failed';
829
918
  * (#787 finding B / #2362).
830
919
  */
831
920
  export declare function isProposalResult(result: unknown): boolean;
832
- export declare function getToolState(tool: ChatToolInvocation): ToolSummaryState;
921
+ export declare function getToolState(tool: ChatbotEnhancedToolInvocation): ToolSummaryState;
833
922
  /**
834
923
  * How far a confirm-gate proposal card has actually got — the SINGLE producer
835
924
  * of that fact (objectui#7254).
@@ -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;AAiE/B,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAE9F,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACvC,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAC1C;;;;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8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,iBAAiB,CAQpB;AAugBD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG;IACnE,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAeA;AA0ND,QAAA,MAAM,eAAe,6FAkgFpB,CAAC;AAgHF,MAAM,WAAW,YAAY;IAC3B,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,IAAI,EAAE,OAAO,CAAC;CACf;AA0MD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,MAAiC,GACxC,MAAM,CAOR;AAqsCD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { ChatMessage as AuthoredChatMessage, ChatToolInvocation as AuthoredToolInvocation } from '@object-ui/types';
2
- import { ChatMessage as RuntimeChatMessage, ChatToolInvocation as RuntimeToolInvocation } from './ChatbotEnhanced.js';
2
+ import { ChatbotEnhancedMessage as RuntimeChatMessage, ChatbotEnhancedToolInvocation as RuntimeToolInvocation } from './ChatbotEnhanced.js';
3
3
  /**
4
4
  * The render-only MESSAGE keys — declared by the runtime contract, never by the
5
5
  * authoring one. Named here (rather than spelled out at each use) so that
6
- * adding a render-only key to `ChatbotEnhanced.ChatMessage` and forgetting this
6
+ * adding a render-only key to `ChatbotEnhancedMessage` and forgetting this
7
7
  * list is a one-line fix in one place. objectui#4424.
8
8
  */
9
9
  type RuntimeOnlyMessageKeys = Pick<RuntimeChatMessage, 'buildProgress' | 'blueprintProgress' | 'charts'>;
@@ -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ToBottom>;
5
5
  export declare const Conversation: ({ className, ...props }: ConversationProps) => import("react").JSX.Element;
6
6
  export type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
7
- export declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => import("react").JSX.Element;
7
+ export declare const ConversationContent: ({ className, scrollClassName, ...props }: ConversationContentProps) => import("react").JSX.Element;
8
8
  export type ConversationEmptyStateProps = ComponentProps<"div"> & {
9
9
  title?: string;
10
10
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/elements/conversation.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY,GAAI,yBAAyB,iBAAiB,gCAQtE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,aAAa,CAAC,OAAO,CAC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,gCAK1B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6DAOpC,2BAA2B,gCAoB7B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,6BAA6B,wCAwB/B,CAAC"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/elements/conversation.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAMrE,eAAO,MAAM,YAAY,GAAI,yBAAyB,iBAAiB,gCAQtE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,aAAa,CAAC,OAAO,CAC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,0CAIjC,wBAAwB,gCAM1B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6DAOpC,2BAA2B,gCAoB7B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,6BAA6B,wCA0B/B,CAAC"}
@@ -33,7 +33,7 @@ export declare const MessageBranchNext: ({ children, className, ...props }: Mess
33
33
  export type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
34
34
  export declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => import("react").JSX.Element;
35
35
  export type MessageResponseProps = ComponentProps<typeof Streamdown>;
36
- export declare const MessageResponse: import('react').MemoExoticComponent<({ className, ...props }: MessageResponseProps) => import("react").JSX.Element>;
36
+ export declare const MessageResponse: import('react').MemoExoticComponent<({ className, components, translations, isAnimating, linkSafety, ...props }: MessageResponseProps) => import("react").JSX.Element>;
37
37
  export type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
38
38
  data: FileUIPart;
39
39
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/elements/message.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAY/C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAOhD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAgB,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC1D,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,+BAA+B,YAAY,gCASlE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjE,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAYrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAIrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,uDAO3B,kBAAkB,gCAsBpB,CAAC;AA2BF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI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CACvB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,+BAuExB;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE5D,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,sCAgBzB;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAUrB,CAAC"}
@@ -47,8 +47,16 @@ export declare const usePromptInputAttachments: () => AttachmentsContext;
47
47
  export type PromptInputAttachmentProps = HTMLAttributes<HTMLDivElement> & {
48
48
  data: PromptInputFileItem;
49
49
  className?: string;
50
+ /**
51
+ * The remove button's accessible name. ObjectUI addition to the vendored
52
+ * element (objectui#12145), in the same spirit as `ToolHeader`'s
53
+ * `statusLabels` (objectui#7254): `props` reach the chip, not the button
54
+ * inside it, so a caller had no way to name the button in its own language.
55
+ * Additive and optional: omitted, the upstream English name stays.
56
+ */
57
+ removeLabel?: string;
50
58
  };
51
- export declare function PromptInputAttachment({ data, className, ...props }: PromptInputAttachmentProps): import("react").JSX.Element;
59
+ export declare function PromptInputAttachment({ data, className, removeLabel, ...props }: PromptInputAttachmentProps): import("react").JSX.Element;
52
60
  export type PromptInputAttachmentsProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
53
61
  children: (attachment: PromptInputFileItem) => ReactNode;
54
62
  };