@object-ui/plugin-chatbot 17.6.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/CHANGELOG.md +2814 -0
- package/README.md +84 -28
- package/dist/AiPendingActionsInbox.d.ts +8 -2
- package/dist/AiPendingActionsInbox.d.ts.map +1 -1
- package/dist/ChatbotEnhanced.d.ts +235 -101
- package/dist/ChatbotEnhanced.d.ts.map +1 -1
- package/dist/FloatingChatbot.d.ts +1 -1
- package/dist/FloatingChatbot.d.ts.map +1 -1
- package/dist/chatMessageAdapter.d.ts +18 -6
- package/dist/chatMessageAdapter.d.ts.map +1 -1
- package/dist/elements/conversation.d.ts +1 -1
- package/dist/elements/conversation.d.ts.map +1 -1
- package/dist/elements/index.d.ts +10 -10
- package/dist/elements/message.d.ts +1 -1
- package/dist/elements/message.d.ts.map +1 -1
- package/dist/elements/prompt-input.d.ts +10 -2
- package/dist/elements/prompt-input.d.ts.map +1 -1
- package/dist/elements/tool.d.ts +13 -1
- package/dist/elements/tool.d.ts.map +1 -1
- package/dist/index.d.ts +48 -59
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3217 -1945
- package/dist/index.umd.cjs +3 -3
- package/dist/mapMessages.d.ts +309 -6
- package/dist/mapMessages.d.ts.map +1 -1
- package/dist/recordLink.d.ts +34 -0
- package/dist/recordLink.d.ts.map +1 -0
- package/dist/tool-display.d.ts +97 -26
- package/dist/tool-display.d.ts.map +1 -1
- package/dist/useAgents.d.ts +5 -0
- package/dist/useAgents.d.ts.map +1 -1
- package/dist/useAiApprovalsTranslation.d.ts +76 -0
- package/dist/useAiApprovalsTranslation.d.ts.map +1 -0
- package/dist/useAiModels.d.ts +3 -1
- package/dist/useAiModels.d.ts.map +1 -1
- package/dist/useHitlInChat.d.ts +2 -2
- package/dist/useHitlInChat.d.ts.map +1 -1
- package/dist/useObjectChat.d.ts +94 -27
- package/dist/useObjectChat.d.ts.map +1 -1
- package/dist/usePendingActions.d.ts +5 -0
- package/dist/usePendingActions.d.ts.map +1 -1
- package/package.json +11 -15
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DraftReview, ProposedChanges, ProposedPlan, ReplayOutcome } from './mapMessages.js';
|
|
1
2
|
/**
|
|
2
3
|
* ObjectUI
|
|
3
4
|
* Copyright (c) 2024-present ObjectStack Inc.
|
|
@@ -18,7 +19,14 @@
|
|
|
18
19
|
* - streaming markdown via streamdown (used by Message internals)
|
|
19
20
|
*/
|
|
20
21
|
import * as React from 'react';
|
|
21
|
-
|
|
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 {
|
|
22
30
|
id: string;
|
|
23
31
|
role: 'user' | 'assistant' | 'system';
|
|
24
32
|
content: string;
|
|
@@ -32,7 +40,7 @@ export interface ChatMessage {
|
|
|
32
40
|
* `ToolUIPart` shape (see `vercel/ai` v3) so we can render them with the
|
|
33
41
|
* vendored `<Tool>` element without any extra mapping.
|
|
34
42
|
*/
|
|
35
|
-
toolInvocations?:
|
|
43
|
+
toolInvocations?: ChatbotEnhancedToolInvocation[];
|
|
36
44
|
/** Chain-of-thought / reasoning text emitted alongside the answer. */
|
|
37
45
|
reasoning?: string;
|
|
38
46
|
/** Optional citation / RAG sources for this assistant message. */
|
|
@@ -83,10 +91,19 @@ export interface ChatChart {
|
|
|
83
91
|
label?: string;
|
|
84
92
|
}>;
|
|
85
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';
|
|
86
103
|
/** A reconciled snapshot of an in-flight app build (apply_blueprint). */
|
|
87
104
|
export interface ChatBuildProgress {
|
|
88
105
|
/** Coarse phase: drafting structure, generating sample data, or finished. */
|
|
89
|
-
phase:
|
|
106
|
+
phase: ChatBuildPhase;
|
|
90
107
|
/** Human label for the app being built (for the panel header). */
|
|
91
108
|
appLabel?: string;
|
|
92
109
|
/** Artifacts drafted so far, cumulative. */
|
|
@@ -105,6 +122,16 @@ export interface ChatBuildProgress {
|
|
|
105
122
|
* heartbeat). Absent from older runtimes.
|
|
106
123
|
*/
|
|
107
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
|
+
};
|
|
108
135
|
}
|
|
109
136
|
/**
|
|
110
137
|
* A reconciled snapshot of an in-flight blueprint DESIGN (`propose_blueprint`).
|
|
@@ -150,7 +177,15 @@ export interface ChatBlueprintProgress {
|
|
|
150
177
|
*/
|
|
151
178
|
seq?: number;
|
|
152
179
|
}
|
|
153
|
-
|
|
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 {
|
|
154
189
|
toolCallId: string;
|
|
155
190
|
toolName: string;
|
|
156
191
|
args?: unknown;
|
|
@@ -162,6 +197,24 @@ export interface ChatToolInvocation {
|
|
|
162
197
|
* when only `args` is present.
|
|
163
198
|
*/
|
|
164
199
|
state?: 'input-streaming' | 'input-available' | 'approval-requested' | 'approval-responded' | 'output-available' | 'output-error' | 'output-denied';
|
|
200
|
+
/**
|
|
201
|
+
* AI SDK v6 approval envelope, mirrored from `@object-ui/types`'
|
|
202
|
+
* `ChatToolInvocation` (objectui#8442). The SDK requires it alongside the
|
|
203
|
+
* three approval states; it is what carries a rehydrated pending approval's
|
|
204
|
+
* identity and, once decided, the decision itself.
|
|
205
|
+
*
|
|
206
|
+
* ⚠️ Distinct from `pendingActionId` below and NOT a replacement for it:
|
|
207
|
+
* this is the SDK's own request id, while `pendingActionId` is the
|
|
208
|
+
* ObjectStack `pending_actions` row the REST approve/reject endpoints take.
|
|
209
|
+
* The approval affordance is wired on the latter.
|
|
210
|
+
*/
|
|
211
|
+
approval?: {
|
|
212
|
+
id: string;
|
|
213
|
+
approved?: boolean;
|
|
214
|
+
reason?: string;
|
|
215
|
+
isAutomatic?: boolean;
|
|
216
|
+
signature?: string;
|
|
217
|
+
};
|
|
165
218
|
/**
|
|
166
219
|
* ObjectStack HITL extension. When the framework's `action-tools.ts`
|
|
167
220
|
* proposes a destructive action that requires human approval, the tool
|
|
@@ -178,54 +231,13 @@ export interface ChatToolInvocation {
|
|
|
178
231
|
* lifts the reviewable targets here so chat UIs can render a "Review N
|
|
179
232
|
* change(s)" affordance that opens the designer's review/diff. Nothing is
|
|
180
233
|
* live until the human publishes — this is the review entry point.
|
|
234
|
+
*
|
|
235
|
+
* The shape is `mapMessages.ts`'s `DraftReview`, the type `detectDraftResult`
|
|
236
|
+
* returns, referenced rather than repeated: an inline copy of its fields
|
|
237
|
+
* drifted the moment `DraftReview` gained the producer's `kind`
|
|
238
|
+
* (objectui#10109).
|
|
181
239
|
*/
|
|
182
|
-
draftReview?:
|
|
183
|
-
items: Array<{
|
|
184
|
-
type: string;
|
|
185
|
-
name: string;
|
|
186
|
-
}>;
|
|
187
|
-
summary?: string;
|
|
188
|
-
packageId?: string;
|
|
189
|
-
/**
|
|
190
|
-
* Backend lifecycle intent (from the tool result). `true` for whole-app
|
|
191
|
-
* builds (apply_blueprint) — eligible for the auto-publish "magic moment".
|
|
192
|
-
* Omitted for incremental edits, which stay drafts for explicit review.
|
|
193
|
-
*/
|
|
194
|
-
autoPublishable?: boolean;
|
|
195
|
-
/** Count of artifacts that failed in a partial build, surfaced not hidden. */
|
|
196
|
-
failedCount?: number;
|
|
197
|
-
/**
|
|
198
|
-
* ADR-0045: the build was MATERIALIZED in-turn — real tables and seed
|
|
199
|
-
* rows exist; the app is live but `hidden` (unlisted). Preview should
|
|
200
|
-
* open the REAL app URL, not the draft overlay.
|
|
201
|
-
*/
|
|
202
|
-
materialized?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* ADR-0038 L1 graph-lint verdict for the staged build. Rendered as a
|
|
205
|
-
* verified/issues chip so "drafted" and "verified" read as the two
|
|
206
|
-
* separate statements they are. Absent on older tool output.
|
|
207
|
-
*/
|
|
208
|
-
verification?: {
|
|
209
|
-
errors: number;
|
|
210
|
-
warnings: number;
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* ADR-0038 L1 — the individual findings behind the `verification` counts,
|
|
214
|
-
* surfaced under the chip so "N issues" expands into WHAT is wrong instead
|
|
215
|
-
* of being a dead-end badge.
|
|
216
|
-
*/
|
|
217
|
-
issues?: Array<{
|
|
218
|
-
severity: 'error' | 'warning';
|
|
219
|
-
code: string;
|
|
220
|
-
message: string;
|
|
221
|
-
fix?: string;
|
|
222
|
-
}>;
|
|
223
|
-
/**
|
|
224
|
-
* Post-build "what's next" steps (apply_blueprint `nextSteps`). Rendered as
|
|
225
|
-
* a short getting-started checklist under the build summary.
|
|
226
|
-
*/
|
|
227
|
-
nextSteps?: string[];
|
|
228
|
-
};
|
|
240
|
+
draftReview?: DraftReview;
|
|
229
241
|
/**
|
|
230
242
|
* ObjectStack extension. `propose_blueprint` returns a PLAN before anything
|
|
231
243
|
* is staged (`status: 'blueprint_proposed'`). `mapMessages.ts` lifts the
|
|
@@ -233,42 +245,21 @@ export interface ChatToolInvocation {
|
|
|
233
245
|
* objects the build will create, the agent's assumptions, and any
|
|
234
246
|
* structure-deciding questions — and the user can approve or adjust before
|
|
235
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).
|
|
236
252
|
*/
|
|
237
|
-
proposedPlan?:
|
|
238
|
-
summary?: string;
|
|
239
|
-
objects: Array<{
|
|
240
|
-
name: string;
|
|
241
|
-
label?: string;
|
|
242
|
-
fieldCount: number;
|
|
243
|
-
}>;
|
|
244
|
-
counts: {
|
|
245
|
-
objects: number;
|
|
246
|
-
views: number;
|
|
247
|
-
dashboards: number;
|
|
248
|
-
seedData: number;
|
|
249
|
-
};
|
|
250
|
-
questions: string[];
|
|
251
|
-
questionChoices?: Array<{
|
|
252
|
-
text: string;
|
|
253
|
-
options: string[];
|
|
254
|
-
}>;
|
|
255
|
-
assumptions: string[];
|
|
256
|
-
targetApp?: string;
|
|
257
|
-
};
|
|
253
|
+
proposedPlan?: ProposedPlan;
|
|
258
254
|
/** Granular metadata-change preview (confirm-before-change). Set only
|
|
259
255
|
* when a mutating tool returned status:'changes_proposed' — i.e. it was
|
|
260
|
-
* NOT yet approved this turn, so nothing changed. Rendered as a 确认修改 card.
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
type?: string;
|
|
268
|
-
name?: string;
|
|
269
|
-
details?: string;
|
|
270
|
-
}>;
|
|
271
|
-
};
|
|
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;
|
|
272
263
|
/**
|
|
273
264
|
* ADR-0057 P4 — the `ask` agent's structured decline-and-redirect. Set when
|
|
274
265
|
* the ask agent called `suggest_builder` (`{ handoff:'build', prompt,
|
|
@@ -281,20 +272,29 @@ export interface ChatToolInvocation {
|
|
|
281
272
|
prompt: string;
|
|
282
273
|
packageId?: string;
|
|
283
274
|
};
|
|
275
|
+
/**
|
|
276
|
+
* cloud#1658 — the ask agent's `open_record` structured hand-off (the record
|
|
277
|
+
* sibling of `builderHandoff`). Rendered as a "打开这条记录 →" action landing
|
|
278
|
+
* on the record the agent already resolved.
|
|
279
|
+
*/
|
|
280
|
+
recordHandoff?: {
|
|
281
|
+
objectName: string;
|
|
282
|
+
recordId: string;
|
|
283
|
+
label?: string;
|
|
284
|
+
reason?: string;
|
|
285
|
+
};
|
|
284
286
|
/**
|
|
285
287
|
* objectui#5695 — the terminal verdict of a confirm-replay (`replay_<id>`
|
|
286
288
|
* tool results; cloud `runApprovedProposalReplay`). Rendered as a terminal
|
|
287
289
|
* state on the ORIGINAL 确认修改 card — 已生效 / 已暂存为草稿 / 未生效 — so a
|
|
288
290
|
* rolled-back publish exists somewhere a USER can see it, independent of
|
|
289
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).
|
|
290
296
|
*/
|
|
291
|
-
replayOutcome?:
|
|
292
|
-
kind: 'published' | 'drafted' | 'failed';
|
|
293
|
-
outcome?: string;
|
|
294
|
-
error?: string;
|
|
295
|
-
packageId?: string;
|
|
296
|
-
dispatchError?: boolean;
|
|
297
|
-
};
|
|
297
|
+
replayOutcome?: ReplayOutcome;
|
|
298
298
|
}
|
|
299
299
|
export interface ChatSource {
|
|
300
300
|
id?: string;
|
|
@@ -314,6 +314,11 @@ export interface ChatbotLabels {
|
|
|
314
314
|
clear?: string;
|
|
315
315
|
/** Trailing hint next to the send button (e.g. "to send"). */
|
|
316
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;
|
|
317
322
|
/** Compact agent activity heading shown in summary mode. */
|
|
318
323
|
agentActivity?: string;
|
|
319
324
|
/** Status label for completed tool work. */
|
|
@@ -391,7 +396,7 @@ export interface ChatbotLabels {
|
|
|
391
396
|
export type ChatbotProcessVisibility = 'hidden' | 'summary' | 'debug';
|
|
392
397
|
export type ChatbotSurface = 'card' | 'plain';
|
|
393
398
|
export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
394
|
-
messages?:
|
|
399
|
+
messages?: ChatbotEnhancedMessage[];
|
|
395
400
|
placeholder?: string;
|
|
396
401
|
/**
|
|
397
402
|
* Send handler. Signature kept backwards compatible — `files` is the list
|
|
@@ -419,7 +424,12 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
419
424
|
* callbacks, so the cards degrade to their read-only/summary form.
|
|
420
425
|
*/
|
|
421
426
|
readOnly?: boolean;
|
|
422
|
-
/**
|
|
427
|
+
/**
|
|
428
|
+
* Whether the assistant is currently generating a response. While it is
|
|
429
|
+
* true the proposed-plan card's actions are disabled as well
|
|
430
|
+
* (objectui#10925), so a click cannot send the next turn while this one is
|
|
431
|
+
* still streaming.
|
|
432
|
+
*/
|
|
423
433
|
isLoading?: boolean;
|
|
424
434
|
/** Current streaming/API error */
|
|
425
435
|
error?: Error;
|
|
@@ -479,6 +489,16 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
479
489
|
* Intended for slash-command palettes / inline suggestion popups.
|
|
480
490
|
*/
|
|
481
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;
|
|
482
502
|
/**
|
|
483
503
|
* Fired on every keystroke in the prompt textarea (forwarded from the
|
|
484
504
|
* AI Elements `PromptInputTextarea`). Lets callers drive a slash-command
|
|
@@ -509,7 +529,7 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
509
529
|
* When provided, tool parts whose result drafted metadata (ADR-0033) render a
|
|
510
530
|
* "Review N change(s)" button inside their body. The callback receives the
|
|
511
531
|
* reviewable `{ type, name }` targets; the host typically navigates to the
|
|
512
|
-
* designer's review/diff. See `
|
|
532
|
+
* designer's review/diff. See `ChatbotEnhancedToolInvocation.draftReview`.
|
|
513
533
|
*/
|
|
514
534
|
onReviewDraft?: (items: Array<{
|
|
515
535
|
type: string;
|
|
@@ -532,6 +552,30 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
532
552
|
* two separately-verified statements.
|
|
533
553
|
*/
|
|
534
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
|
+
}>;
|
|
535
579
|
/**
|
|
536
580
|
* When provided, a finished build tree (`buildProgress.phase === 'done'`) that
|
|
537
581
|
* created an `app` renders an "Open app" action so the user can jump straight
|
|
@@ -542,10 +586,11 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
542
586
|
/** Label for the open-built-app action (default "Open app"). */
|
|
543
587
|
openBuiltAppLabel?: string;
|
|
544
588
|
/**
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
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')`).
|
|
549
594
|
*/
|
|
550
595
|
onDesignBuiltApp?: (appName: string, appSegment?: string) => void;
|
|
551
596
|
/** Label for the design-built-app action (default "Design in Studio"). */
|
|
@@ -577,6 +622,26 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
577
622
|
}) => void;
|
|
578
623
|
/** Label for the preview-draft action (default "Preview"). */
|
|
579
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;
|
|
580
645
|
/**
|
|
581
646
|
* ADR-0037 Live Canvas: notifies the host whenever AI-authored draft
|
|
582
647
|
* artifacts land in the conversation (build-progress items + drafted
|
|
@@ -593,6 +658,17 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
593
658
|
* but unlisted. Hosts switch the canvas to the real app URL.
|
|
594
659
|
*/
|
|
595
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;
|
|
596
672
|
/**
|
|
597
673
|
* ADR-0057 P4 — invoked when the user clicks "Open in Builder →" on an `ask`
|
|
598
674
|
* agent's `suggest_builder` decline. The host opens the build surface seeded
|
|
@@ -603,12 +679,23 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
603
679
|
prompt: string;
|
|
604
680
|
packageId?: string;
|
|
605
681
|
}) => void;
|
|
682
|
+
/** cloud#1658 — open the record an `open_record` hand-off points at. */
|
|
683
|
+
onOpenRecord?: (handoff: {
|
|
684
|
+
objectName: string;
|
|
685
|
+
recordId: string;
|
|
686
|
+
label?: string;
|
|
687
|
+
reason?: string;
|
|
688
|
+
}) => void;
|
|
606
689
|
/** Heading for the ADR-0057 P4 "Open in Builder" handoff card (default "Build this in the Builder"). */
|
|
607
690
|
builderHandoffTitleLabel?: string;
|
|
608
691
|
/** Label for the handoff card's primary action button (default "Open in Builder →"). */
|
|
609
692
|
builderHandoffOpenLabel?: string;
|
|
610
693
|
/** Tooltip on a superseded (older) handoff card's disabled button (default "A newer request is available"). */
|
|
611
694
|
builderHandoffSupersededTitle?: string;
|
|
695
|
+
/** cloud#1658 — the record hand-off card's title. */
|
|
696
|
+
recordHandoffTitleLabel?: string;
|
|
697
|
+
/** cloud#1658 — the record hand-off card's action label. */
|
|
698
|
+
recordHandoffOpenLabel?: string;
|
|
612
699
|
/** Label for the publish-drafts button (default "Publish"). */
|
|
613
700
|
publishDraftsLabel?: string;
|
|
614
701
|
/** Label for the published-state badge that replaces the button (default "Published"). */
|
|
@@ -619,9 +706,16 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
619
706
|
nextStepsLabel?: string;
|
|
620
707
|
/** Heading for the pre-build proposed-plan card (default "Proposed plan"). */
|
|
621
708
|
planTitleLabel?: string;
|
|
622
|
-
/** Extend mode:
|
|
623
|
-
*
|
|
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). */
|
|
624
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;
|
|
625
719
|
/** Heading above the structure-deciding questions in the plan card (default "Confirm before building"). */
|
|
626
720
|
planQuestionsLabel?: string;
|
|
627
721
|
/** Heading above the agent's assumptions in the plan card (default "Assumptions"). */
|
|
@@ -708,6 +802,14 @@ export interface ChatbotEnhancedProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
708
802
|
* grounding. Display-only; absent = no chip.
|
|
709
803
|
*/
|
|
710
804
|
surfaceContextLabel?: string;
|
|
805
|
+
/**
|
|
806
|
+
* objectui#8219 — the tooltip (`title`) of the {@link surfaceContextLabel}
|
|
807
|
+
* chip. Per objectui#7254, what the chip READS is the display label, and the
|
|
808
|
+
* internal identity (e.g. `dashboard · customer_dashboard`) stays REACHABLE
|
|
809
|
+
* here instead of being printed at the reader. Display-only; ignored when
|
|
810
|
+
* there is no `surfaceContextLabel`; absent = no `title`, as before.
|
|
811
|
+
*/
|
|
812
|
+
surfaceContextTitle?: string;
|
|
711
813
|
/**
|
|
712
814
|
* Live draft-status resolver: how many drafts are still PENDING in a
|
|
713
815
|
* package (e.g. `GET /metadata/_drafts?packageId=` count). When provided,
|
|
@@ -816,7 +918,39 @@ type ToolSummaryState = 'running' | 'awaiting' | 'completed' | 'failed';
|
|
|
816
918
|
* (#787 finding B / #2362).
|
|
817
919
|
*/
|
|
818
920
|
export declare function isProposalResult(result: unknown): boolean;
|
|
819
|
-
export declare function getToolState(tool:
|
|
921
|
+
export declare function getToolState(tool: ChatbotEnhancedToolInvocation): ToolSummaryState;
|
|
922
|
+
/**
|
|
923
|
+
* How far a confirm-gate proposal card has actually got — the SINGLE producer
|
|
924
|
+
* of that fact (objectui#7254).
|
|
925
|
+
*
|
|
926
|
+
* The card BODY already renders a terminal badge from four separate memos:
|
|
927
|
+
* `builtPlanIds` (已搭建), `approvedPlanIds` (building), `confirmedChangeIds`
|
|
928
|
+
* (已确认) and `replayOutcomeByProposalId` (已生效 / 已暂存为草稿 / 未生效).
|
|
929
|
+
* The HEADER badge read none of them: it derived from `isProposalResult(result)`
|
|
930
|
+
* alone, which is a fact about the tool's *own* output and never changes once
|
|
931
|
+
* the tool has returned. So a card whose body said 已搭建 / 已生效 kept a header
|
|
932
|
+
* reading "Awaiting Approval" forever — the same class of divergence recorded on
|
|
933
|
+
* cloud#787, mirrored. Fixing it in the header's own branch would have made a
|
|
934
|
+
* FIFTH producer of the same fact; this function is the one both sides read.
|
|
935
|
+
*
|
|
936
|
+
* Precedence is "what actually happened" over "what was asked for": a replay
|
|
937
|
+
* verdict is the server's own answer and outranks the positional heuristics,
|
|
938
|
+
* and `built`/`confirmed` (a later commit was observed in the stream) outrank
|
|
939
|
+
* `approved` (the user clicked, nothing has landed yet).
|
|
940
|
+
*/
|
|
941
|
+
export type ProposalCardState = 'pending' | 'in-progress' | 'settled' | 'failed';
|
|
942
|
+
export declare function resolveProposalCardState(input: {
|
|
943
|
+
/** A replay verdict for this proposal, when one has arrived. */
|
|
944
|
+
replayOutcome?: {
|
|
945
|
+
kind: 'published' | 'drafted' | 'failed' | 'applying';
|
|
946
|
+
};
|
|
947
|
+
/** An `apply_blueprint` ran after this plan card (`builtPlanIds`). */
|
|
948
|
+
built?: boolean;
|
|
949
|
+
/** A later same-tool commit followed this proposal (`confirmedChangeIds`). */
|
|
950
|
+
confirmed?: boolean;
|
|
951
|
+
/** The user approved, but no result has come back yet (`approvedPlanIds`). */
|
|
952
|
+
approved?: boolean;
|
|
953
|
+
}): ProposalCardState;
|
|
820
954
|
/**
|
|
821
955
|
* Splits a plan's `assumptions` into ordinary design notes vs. business rules the
|
|
822
956
|
* build is explicitly deferring ("待补 / Not yet built"). Pure + side-effect-free
|
|
@@ -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,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAA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;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingChatbot.d.ts","sourceRoot":"","sources":["../src/FloatingChatbot.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FloatingChatbot.d.ts","sourceRoot":"","sources":["../src/FloatingChatbot.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAI7D,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE9E,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,6BAA6B;IAC7B,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,2EAA2E;IAC3E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,4FAA4F;IAC5F,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,EACd,WAAW,EACX,aAAa,EACb,GAAG,YAAY,EAChB,EAAE,oBAAoB,qBA6EtB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ChatMessage as AuthoredChatMessage, ChatToolInvocation as AuthoredToolInvocation } from '@object-ui/types';
|
|
2
|
-
import {
|
|
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 `
|
|
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'>;
|
|
@@ -19,10 +19,22 @@ type RuntimeOnlyToolInvocationKeys = Pick<RuntimeToolInvocation, 'pendingActionI
|
|
|
19
19
|
* plus the render-only extensions it may ALREADY be carrying when it arrives
|
|
20
20
|
* from API mode.
|
|
21
21
|
*
|
|
22
|
-
* `
|
|
23
|
-
*
|
|
22
|
+
* `state` is the union of both vocabularies, DERIVED from the two contracts
|
|
23
|
+
* rather than listed (objectui#10018). The authoring union sheds the AI SDK's
|
|
24
|
+
* three approval states — an author may not claim one — but an API-mode value
|
|
25
|
+
* crossing this seam is a RUNTIME value and does carry them: `mapMessages`
|
|
26
|
+
* promotes `approval-requested` from a pending-action result, and app-shell's
|
|
27
|
+
* hydrated history hands the persisted approval states back in. Typing this
|
|
28
|
+
* input as the authoring state alone would make the runtime's own values
|
|
29
|
+
* unassignable to the seam that exists to carry them.
|
|
30
|
+
*
|
|
31
|
+
* `AuthoredToolInvocation` stays assignable to this (its state vocabulary is a
|
|
32
|
+
* subset, and every added key is optional), so a host holding plain authored
|
|
33
|
+
* invocations is unaffected.
|
|
24
34
|
*/
|
|
25
|
-
export type SeamToolInvocation = AuthoredToolInvocation &
|
|
35
|
+
export type SeamToolInvocation = Omit<AuthoredToolInvocation, 'state'> & {
|
|
36
|
+
state?: AuthoredToolInvocation['state'] | RuntimeToolInvocation['state'];
|
|
37
|
+
} & Partial<RuntimeOnlyToolInvocationKeys>;
|
|
26
38
|
/**
|
|
27
39
|
* One message as it actually crosses this seam — the seam's INPUT contract.
|
|
28
40
|
*
|
|
@@ -96,7 +108,7 @@ export declare function toRuntimeRole(role: AuthoredChatMessage['role']): Runtim
|
|
|
96
108
|
* already), so this is the one place where the seam's honesty changes a
|
|
97
109
|
* rendered result — from a blank badge to the state the author declared.
|
|
98
110
|
*/
|
|
99
|
-
export declare function toRuntimeToolState(state:
|
|
111
|
+
export declare function toRuntimeToolState(state: SeamToolInvocation['state']): RuntimeToolInvocation['state'];
|
|
100
112
|
/**
|
|
101
113
|
* One authored tool invocation -> one runtime tool invocation.
|
|
102
114
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatMessageAdapter.d.ts","sourceRoot":"","sources":["../src/chatMessageAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"chatMessageAdapter.d.ts","sourceRoot":"","sources":["../src/chatMessageAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAEH,OAAO,KAAK,EACV,WAAW,IAAI,mBAAmB,EAClC,kBAAkB,IAAI,sBAAsB,EAC7C,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,sBAAsB,IAAI,kBAAkB,EAC5C,6BAA6B,IAAI,qBAAqB,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;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,eAAe,GACvB,kBAAkB,CAQpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,GAC/C,kBAAkB,EAAE,CAEtB"}
|
|
@@ -4,7 +4,7 @@ import { StickToBottom } from 'use-stick-to-bottom';
|
|
|
4
4
|
export type ConversationProps = ComponentProps<typeof StickToBottom>;
|
|
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;
|