@artooi/ag-ui-web-component 0.45.0 → 0.47.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 +146 -1
- package/README.md +191 -25
- package/dist/ag-ui-web-component.bundle.js +399 -157
- package/dist/ag-ui-web-component.bundle.js.map +4 -4
- package/dist/constants.d.ts +14 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts +47 -4
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/core/chat_registry.d.ts +23 -0
- package/dist/core/chat_registry.d.ts.map +1 -0
- package/dist/core/events/run_finished_detail.d.ts +6 -0
- package/dist/core/events/run_finished_detail.d.ts.map +1 -1
- package/dist/core/events/thread_detail.d.ts +27 -0
- package/dist/core/events/thread_detail.d.ts.map +1 -0
- package/dist/core/run_handlers.d.ts +6 -1
- package/dist/core/run_handlers.d.ts.map +1 -1
- package/dist/dom/animations.d.ts +21 -6
- package/dist/dom/animations.d.ts.map +1 -1
- package/dist/dom/highlight_overlay.d.ts +7 -1
- package/dist/dom/highlight_overlay.d.ts.map +1 -1
- package/dist/dom/ring_color.d.ts +14 -0
- package/dist/dom/ring_color.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +857 -86
- package/dist/index.js.map +4 -4
- package/dist/tools/tool_catalog.d.ts +5 -0
- package/dist/tools/tool_catalog.d.ts.map +1 -1
- package/dist/tools/tool_dispatch.d.ts.map +1 -1
- package/dist/ui/history/conversation_history.d.ts +10 -1
- package/dist/ui/history/conversation_history.d.ts.map +1 -1
- package/dist/ui/interrupts/confirmation_styles.d.ts.map +1 -1
- package/dist/ui/placement/panel_placement.d.ts +6 -0
- package/dist/ui/placement/panel_placement.d.ts.map +1 -1
- package/dist/ui/placement/small_viewport_styles.d.ts.map +1 -1
- package/dist/ui/placement/surface_for.d.ts +12 -1
- package/dist/ui/placement/surface_for.d.ts.map +1 -1
- package/dist/ui/progress/thoughts_styles.d.ts.map +1 -1
- package/dist/ui/progress/tool_call_card.d.ts +8 -0
- package/dist/ui/progress/tool_call_card.d.ts.map +1 -1
- package/dist/ui/progress/tool_group_styles.d.ts +2 -0
- package/dist/ui/progress/tool_group_styles.d.ts.map +1 -0
- package/dist/ui/progress/tool_step_group.d.ts +47 -0
- package/dist/ui/progress/tool_step_group.d.ts.map +1 -0
- package/dist/ui/progress/tool_step_styles.d.ts.map +1 -1
- package/dist/ui/shell/token_styles.d.ts.map +1 -1
- package/dist/ui/styles.d.ts.map +1 -1
- package/dist/ui/themes/ledger_styles.d.ts.map +1 -1
- package/dist/ui/themes/soft_styles.d.ts.map +1 -1
- package/dist/ui/transcript/groups_tool_steps.d.ts +13 -0
- package/dist/ui/transcript/groups_tool_steps.d.ts.map +1 -0
- package/dist/ui/transcript/message_styles.d.ts.map +1 -1
- package/dist/ui/transcript/transcript.d.ts +16 -1
- package/dist/ui/transcript/transcript.d.ts.map +1 -1
- package/dist/ui/ui_strings.d.ts +18 -0
- package/dist/ui/ui_strings.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +15 -1
- package/src/core/ag_ui_chat.ts +122 -11
- package/src/core/chat_registry.ts +53 -0
- package/src/core/events/run_finished_detail.ts +6 -0
- package/src/core/events/thread_detail.ts +26 -0
- package/src/core/run_handlers.ts +9 -4
- package/src/dom/animations.ts +30 -31
- package/src/dom/highlight_overlay.ts +9 -5
- package/src/dom/ring_color.ts +85 -0
- package/src/index.ts +3 -0
- package/src/tools/tool_catalog.ts +23 -10
- package/src/tools/tool_dispatch.ts +26 -11
- package/src/ui/history/conversation_history.ts +28 -4
- package/src/ui/interrupts/confirmation_styles.ts +0 -2
- package/src/ui/placement/embedded_styles.ts +2 -2
- package/src/ui/placement/panel_placement.ts +34 -9
- package/src/ui/placement/preset_styles.ts +1 -1
- package/src/ui/placement/sidebar_styles.ts +1 -1
- package/src/ui/placement/small_viewport_styles.ts +5 -0
- package/src/ui/placement/surface_for.ts +12 -1
- package/src/ui/progress/thoughts_styles.ts +0 -2
- package/src/ui/progress/tool_call_card.ts +29 -8
- package/src/ui/progress/tool_group_styles.ts +232 -0
- package/src/ui/progress/tool_step_group.ts +272 -0
- package/src/ui/progress/tool_step_styles.ts +0 -2
- package/src/ui/shell/token_styles.ts +4 -2
- package/src/ui/styles.ts +5 -0
- package/src/ui/themes/ledger_styles.ts +15 -0
- package/src/ui/themes/soft_styles.ts +20 -0
- package/src/ui/transcript/groups_tool_steps.ts +16 -0
- package/src/ui/transcript/message_styles.ts +0 -2
- package/src/ui/transcript/transcript.ts +109 -3
- package/src/ui/ui_strings.ts +31 -0
- package/src/version.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -51,6 +51,16 @@ export declare const ATTACHMENT_EVENT = "ag-ui-attachments";
|
|
|
51
51
|
* error and cancellation alike, since a partial write is still a write.
|
|
52
52
|
*/
|
|
53
53
|
export declare const RUN_FINISHED_EVENT = "ag-ui-run-finished";
|
|
54
|
+
/**
|
|
55
|
+
* The conversation on screen changed: a new chat, a thread switched to, the
|
|
56
|
+
* active thread deleted, the stored thread restored, or a `user-key` change
|
|
57
|
+
* handing the element to another principal. `detail` is {@link ThreadDetail}.
|
|
58
|
+
*
|
|
59
|
+
* Fires once per change, after the transcript has been replaced, so a listener
|
|
60
|
+
* reads the conversation it is told about. A host listing conversations in its
|
|
61
|
+
* own chrome marks the active one from here rather than watching attributes.
|
|
62
|
+
*/
|
|
63
|
+
export declare const THREAD_EVENT = "ag-ui-thread";
|
|
54
64
|
/**
|
|
55
65
|
* The agent sent an AG-UI `CUSTOM` event. `detail` is {@link CustomAgentDetail}.
|
|
56
66
|
*
|
|
@@ -308,8 +318,10 @@ export declare const ATTACHMENT_STATUS: {
|
|
|
308
318
|
export declare const DEFAULT_ATTACHMENT_MAX_BYTES: number;
|
|
309
319
|
/**
|
|
310
320
|
* How much detail a tool-call card shows. Set via `data-tool-display`; the
|
|
311
|
-
* default is `
|
|
321
|
+
* default is `grouped`.
|
|
312
322
|
*
|
|
323
|
+
* - `grouped` — a run's consecutive calls fold into one quiet row ("Worked
|
|
324
|
+
* through 5 steps"), with the calls one click down as `full` cards.
|
|
313
325
|
* - `inline` — one status row (icon + summary), no card chrome, result behind
|
|
314
326
|
* its own toggle. Reads as a line of the answer rather than a boxed card.
|
|
315
327
|
* - `minimal` — tool name + status pill only. No args, no result body.
|
|
@@ -317,6 +329,7 @@ export declare const DEFAULT_ATTACHMENT_MAX_BYTES: number;
|
|
|
317
329
|
* - `full` — args inline, result behind its own toggle.
|
|
318
330
|
*/
|
|
319
331
|
export declare const TOOL_DISPLAY: {
|
|
332
|
+
readonly GROUPED: "grouped";
|
|
320
333
|
readonly INLINE: "inline";
|
|
321
334
|
readonly MINIMAL: "minimal";
|
|
322
335
|
readonly COMPACT: "compact";
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,wEAAwE;AACxE,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;;;;;;;;;;;;GAeG;AACH,e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,8MAAkM,CAAC;AAE9N;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC"}
|
|
@@ -348,11 +348,16 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
348
348
|
set credentials(value: RequestCredentials | null);
|
|
349
349
|
/**
|
|
350
350
|
* How much detail tool-call cards show, from the `data-tool-display`
|
|
351
|
-
* attribute (`minimal` / `inline` / `compact` / `full`).
|
|
351
|
+
* attribute (`grouped` / `minimal` / `inline` / `compact` / `full`).
|
|
352
|
+
* Defaults to `grouped`, for an absent attribute and for a value the
|
|
353
|
+
* element does not know; `full` is the per-call card default before
|
|
354
|
+
* `grouped` existed.
|
|
352
355
|
*
|
|
353
|
-
*
|
|
354
|
-
* restyles every card already in the
|
|
355
|
-
*
|
|
356
|
+
* The four card modes are applied by the shadow CSS from the attribute
|
|
357
|
+
* itself, so changing between them restyles every card already in the
|
|
358
|
+
* transcript. Whether calls fold into a step group is decided as each card
|
|
359
|
+
* is built: switching to `grouped` folds only the calls drawn afterwards,
|
|
360
|
+
* and switching away flattens the existing groups, again by CSS.
|
|
356
361
|
*/
|
|
357
362
|
get toolDisplay(): ToolDisplayMode;
|
|
358
363
|
set toolDisplay(value: ToolDisplayMode);
|
|
@@ -451,6 +456,21 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
451
456
|
* chrome can render its own instead.
|
|
452
457
|
*/
|
|
453
458
|
get unread(): number;
|
|
459
|
+
/**
|
|
460
|
+
* The thread on screen; `null` before the element first connects.
|
|
461
|
+
*
|
|
462
|
+
* Only reads. `conversationStore.threadId()` mints and stores a thread when
|
|
463
|
+
* the store points at none, so a host asking which conversation is showing
|
|
464
|
+
* could start one; this never does. {@link THREAD_EVENT} says when it changes.
|
|
465
|
+
*/
|
|
466
|
+
get threadId(): string | null;
|
|
467
|
+
/**
|
|
468
|
+
* Whether an interaction is in flight: the composer's own state, the one that
|
|
469
|
+
* shows Stop. It spans every tool round, a retry and a checkpoint
|
|
470
|
+
* continuation as well as a send, which {@link SUBMIT_EVENT} alone does not.
|
|
471
|
+
* Reflected as `data-running` on the element, for a host's CSS.
|
|
472
|
+
*/
|
|
473
|
+
get running(): boolean;
|
|
454
474
|
/**
|
|
455
475
|
* Describe the panel to whoever is asking -- in practice the agent, through
|
|
456
476
|
* the opt-in chat-surface tools.
|
|
@@ -475,6 +495,11 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
475
495
|
moveTo(corner: ChatCorner, options?: {
|
|
476
496
|
readonly announce?: boolean;
|
|
477
497
|
}): boolean;
|
|
498
|
+
/**
|
|
499
|
+
* Drop a size the user dragged, and its stored copy, so the placement's
|
|
500
|
+
* default and the host's `--ag-ui-width` / `--ag-ui-height` apply again.
|
|
501
|
+
*/
|
|
502
|
+
resetSize(): void;
|
|
478
503
|
/** Flip the collapsed state. Bound to the built-in header toggle. */
|
|
479
504
|
toggleCollapsed(): void;
|
|
480
505
|
/**
|
|
@@ -507,6 +532,24 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
507
532
|
closeThreads(): void;
|
|
508
533
|
/** Close the checkpoints panel, if it is open. */
|
|
509
534
|
closeCheckpoints(): void;
|
|
535
|
+
/**
|
|
536
|
+
* Put a stored thread on screen, as picking it in the conversation list does,
|
|
537
|
+
* for a host that lists conversations in its own chrome.
|
|
538
|
+
*
|
|
539
|
+
* Resolves once the thread has been replayed, when {@link THREAD_EVENT} has
|
|
540
|
+
* fired. **A run in flight is cancelled**, as the list and {@link newChat} do;
|
|
541
|
+
* a host that would rather wait reads {@link running} first. The thread
|
|
542
|
+
* already on screen is left alone, and so is everything before the element
|
|
543
|
+
* connects, since until then it has no store to read the thread from.
|
|
544
|
+
*/
|
|
545
|
+
switchThread(threadId: string): Promise<void>;
|
|
546
|
+
/**
|
|
547
|
+
* Delete a stored thread, as the conversation list's delete does. Deleting the
|
|
548
|
+
* thread on screen cancels its run and puts a fresh thread in its place, and
|
|
549
|
+
* {@link THREAD_EVENT} reports it; deleting another leaves the screen alone.
|
|
550
|
+
* Does nothing before the element connects.
|
|
551
|
+
*/
|
|
552
|
+
deleteThread(threadId: string): void;
|
|
510
553
|
/**
|
|
511
554
|
* Open the checkpoints panel, or close it if it is already open — what the
|
|
512
555
|
* built-in ⭯ button does, because a control that opens a panel is read as the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ag_ui_chat.d.ts","sourceRoot":"","sources":["../../src/core/ag_ui_chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ag_ui_chat.d.ts","sourceRoot":"","sources":["../../src/core/ag_ui_chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAiBjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE1E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB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C,MAAM,GAAG,UAAU,CAAC,EAAyB,GAAG,IAAI,CA0BlF;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,wBAAwB,CAAC,YAAY,EAAE,oBAAoB,GAAG,IAAI,CAEjE;IAED;;;;;;;;OAQG;IACH,IAAI,sBAAsB,IAAI,SAAS,MAAM,EAAE,CAE9C;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One chat's place in the document's list of connected chats.
|
|
3
|
+
*
|
|
4
|
+
* Owned one-to-one by an `<ag-ui-chat>`, which joins on connect and leaves on
|
|
5
|
+
* disconnect, so the list holds exactly the elements that are in a document
|
|
6
|
+
* now. Typed as `HTMLElement` rather than the element's class, because the DOM
|
|
7
|
+
* driver reads it and must not import the element.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatRegistration {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(chat: HTMLElement);
|
|
12
|
+
/**
|
|
13
|
+
* Join, as the most recently connected chat. An element moved in the DOM
|
|
14
|
+
* left on disconnect before it reconnected, so it rejoins at the end and no
|
|
15
|
+
* entry needs removing first.
|
|
16
|
+
*/
|
|
17
|
+
join(): void;
|
|
18
|
+
/** Leave. The previous chat, if one is still connected, becomes the latest. */
|
|
19
|
+
leave(): void;
|
|
20
|
+
/** The most recently connected chat still in the document, or `null`. */
|
|
21
|
+
static latest(): HTMLElement | null;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=chat_registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat_registry.d.ts","sourceRoot":"","sources":["../../src/core/chat_registry.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,qBAAa,gBAAgB;;IAG3B,YAAY,IAAI,EAAE,WAAW,EAE5B;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,CAEX;IAED,+EAA+E;IAC/E,KAAK,IAAI,IAAI,CAEZ;IAED,yEAAyE;IACzE,MAAM,CAAC,MAAM,IAAI,WAAW,GAAG,IAAI,CAMlC;CACF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ToolRun } from "./tool_run.js";
|
|
2
2
|
/** `detail` shape of the {@link RUN_FINISHED_EVENT} CustomEvent. */
|
|
3
3
|
export interface RunFinishedDetail {
|
|
4
|
+
/**
|
|
5
|
+
* The thread the run belonged to, fixed when its client was built. Not always
|
|
6
|
+
* the thread on screen: a run stopped by a new chat or a thread switch still
|
|
7
|
+
* reports once its request closes, and by then another thread is.
|
|
8
|
+
*/
|
|
9
|
+
readonly threadId: string;
|
|
4
10
|
/** In settle order. Empty when the interaction called no tools. */
|
|
5
11
|
readonly tools: readonly ToolRun[];
|
|
6
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_finished_detail.d.ts","sourceRoot":"","sources":["../../../src/core/events/run_finished_detail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;IACnC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC"}
|
|
1
|
+
{"version":3,"file":"run_finished_detail.d.ts","sourceRoot":"","sources":["../../../src/core/events/run_finished_detail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;IACnC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** `detail` shape of the {@link THREAD_EVENT} CustomEvent. */
|
|
2
|
+
export interface ThreadDetail {
|
|
3
|
+
/** The thread now on screen. */
|
|
4
|
+
readonly threadId: string;
|
|
5
|
+
/**
|
|
6
|
+
* The thread on screen before the change: the one the previous event
|
|
7
|
+
* reported, and `null` before the first, as at the restore when the element
|
|
8
|
+
* first connects. Equal to `threadId` when the same thread was restored
|
|
9
|
+
* again (`reload()`, the element connecting again).
|
|
10
|
+
*/
|
|
11
|
+
readonly previousThreadId: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* What changed it:
|
|
14
|
+
*
|
|
15
|
+
* - `new`: `newChat()` or the built-in New chat button.
|
|
16
|
+
* - `switch`: `switchThread()` or a row picked in the conversation list.
|
|
17
|
+
* - `delete`: the active thread was deleted, and a fresh one took its place.
|
|
18
|
+
* - `restore`: the stored thread was replayed, on connect or by `reload()`.
|
|
19
|
+
* - `rescope`: a `user-key` change handed the element to another principal,
|
|
20
|
+
* live or while it was out of the document.
|
|
21
|
+
*
|
|
22
|
+
* A closed set today; a host should ignore a reason it does not know, so a
|
|
23
|
+
* later one can be added without breaking it.
|
|
24
|
+
*/
|
|
25
|
+
readonly reason: "new" | "switch" | "delete" | "restore" | "rescope";
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=thread_detail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread_detail.d.ts","sourceRoot":"","sources":["../../../src/core/events/thread_detail.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACtE"}
|
|
@@ -74,7 +74,12 @@ export declare class RunHandlers {
|
|
|
74
74
|
* A handler table for one AG-UI client. Every table built for the current
|
|
75
75
|
* conversation draws into the same transcript and shares its bookkeeping, so
|
|
76
76
|
* a continuation run reports into the interaction the user is looking at.
|
|
77
|
+
*
|
|
78
|
+
* `threadId` is the thread the client was built for, named on the
|
|
79
|
+
* run-finished detail. Taken here rather than read when the run settles,
|
|
80
|
+
* because a stopped run settles after the reset that stopped it, when the
|
|
81
|
+
* thread on screen is already the next one.
|
|
77
82
|
*/
|
|
78
|
-
forClient(): AgUiClientHandlers;
|
|
83
|
+
forClient(threadId: string): AgUiClientHandlers;
|
|
79
84
|
}
|
|
80
85
|
//# sourceMappingURL=run_handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_handlers.d.ts","sourceRoot":"","sources":["../../src/core/run_handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,WAAW,C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;;;;;;;;;;;;;OAeG;IACH,MAAM,IAAI,IAAI,CAEb;IAED;;;;;;;;;OASG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAgB9C;CAiTF"}
|
package/dist/dom/animations.d.ts
CHANGED
|
@@ -15,6 +15,17 @@
|
|
|
15
15
|
* their explicit-duration contract instead.
|
|
16
16
|
*/
|
|
17
17
|
export declare function prefersReducedMotion(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Which `<ag-ui-chat>` a ring speaks for, so it is drawn in that chat's colour.
|
|
20
|
+
*
|
|
21
|
+
* The ring is drawn in the host's page, which a token set on the chat never
|
|
22
|
+
* reaches, so the chat is read directly. Unset, it is the most recently
|
|
23
|
+
* connected chat; a page with two widgets names the one acting.
|
|
24
|
+
*/
|
|
25
|
+
export interface RingOwnerOptions {
|
|
26
|
+
/** The chat whose ring colour and accent to use. Default: the latest connected. */
|
|
27
|
+
chat?: HTMLElement;
|
|
28
|
+
}
|
|
18
29
|
/** An element whose `value` can be typed into. */
|
|
19
30
|
export type TextLikeElement = HTMLInputElement | HTMLTextAreaElement;
|
|
20
31
|
export interface TypeOptions {
|
|
@@ -26,7 +37,7 @@ export interface TypeOptions {
|
|
|
26
37
|
* per character as a real user would, then a final `change`.
|
|
27
38
|
*/
|
|
28
39
|
export declare function typeInto(el: TextLikeElement, value: string, options?: TypeOptions): Promise<void>;
|
|
29
|
-
export interface HighlightClickOptions {
|
|
40
|
+
export interface HighlightClickOptions extends RingOwnerOptions {
|
|
30
41
|
/** Milliseconds to hold the highlight before clicking. Default 280. */
|
|
31
42
|
highlightMs?: number;
|
|
32
43
|
}
|
|
@@ -47,10 +58,14 @@ export interface ScrollOptions {
|
|
|
47
58
|
* looking yet. Awaiting is optional; the scroll is requested synchronously.
|
|
48
59
|
*/
|
|
49
60
|
export declare function scrollIntoCenterView(el: HTMLElement, options?: ScrollOptions): Promise<void>;
|
|
50
|
-
export interface FlashOptions {
|
|
61
|
+
export interface FlashOptions extends RingOwnerOptions {
|
|
51
62
|
/** Total milliseconds the ring is on screen, hold plus fade. Default 1200. */
|
|
52
63
|
flashMs?: number;
|
|
53
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Ring colour. Defaults to `--ag-ui-highlight-ring-color` (on the target,
|
|
66
|
+
* then on the chat), then the target's `--ag-ui-accent`, then the chat's
|
|
67
|
+
* accent.
|
|
68
|
+
*/
|
|
54
69
|
color?: string;
|
|
55
70
|
/**
|
|
56
71
|
* Dim everything except the target.
|
|
@@ -85,7 +100,7 @@ export declare function flash(el: HTMLElement, options?: FlashOptions): Promise<
|
|
|
85
100
|
* says otherwise; use {@link flash} to leave focus where the user put it.
|
|
86
101
|
*/
|
|
87
102
|
export declare function focusWithFlash(el: HTMLElement, options?: FlashOptions): Promise<void>;
|
|
88
|
-
export interface PressOptions {
|
|
103
|
+
export interface PressOptions extends RingOwnerOptions {
|
|
89
104
|
/** Milliseconds to hold the pressed state before clicking. Default 140. */
|
|
90
105
|
pressMs?: number;
|
|
91
106
|
}
|
|
@@ -95,7 +110,7 @@ export interface PressOptions {
|
|
|
95
110
|
* plain outline {@link highlightThenClick} draws.
|
|
96
111
|
*/
|
|
97
112
|
export declare function pressThenClick(el: HTMLElement, options?: PressOptions): Promise<void>;
|
|
98
|
-
export interface SelectOptions {
|
|
113
|
+
export interface SelectOptions extends RingOwnerOptions {
|
|
99
114
|
/** Milliseconds to hold the highlight before committing. Default 220. */
|
|
100
115
|
highlightMs?: number;
|
|
101
116
|
}
|
|
@@ -105,7 +120,7 @@ export interface SelectOptions {
|
|
|
105
120
|
* `change`. Throws when no option matches.
|
|
106
121
|
*/
|
|
107
122
|
export declare function selectOption(el: HTMLSelectElement, value: string, options?: SelectOptions): Promise<void>;
|
|
108
|
-
export interface ToggleOptions {
|
|
123
|
+
export interface ToggleOptions extends RingOwnerOptions {
|
|
109
124
|
/** Milliseconds to hold the flash. Default 200. */
|
|
110
125
|
flashMs?: number;
|
|
111
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../src/dom/animations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../src/dom/animations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAUD;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mFAAmF;IACnF,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAUD,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uEAAuE;AACvE,wBAAsB,kBAAkB,CACtC,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAOD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkChG;AAQD,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,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rim?: boolean;
|
|
5
5
|
/** Draw the ring as a moving gradient rather than a flat colour. Default false. */
|
|
6
6
|
readonly gradient?: boolean;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Ring colour, and the flat fallback for the gradient. Default:
|
|
9
|
+
* `--ag-ui-highlight-ring-color` on the target, then on the chat, then the
|
|
10
|
+
* target's `--ag-ui-accent`, then the chat's accent.
|
|
11
|
+
*/
|
|
8
12
|
readonly color?: string;
|
|
13
|
+
/** The chat whose ring colour and accent to use. Default: the latest connected. */
|
|
14
|
+
readonly chat?: HTMLElement;
|
|
9
15
|
/** Gap between the target's box and the ring. Default 4. */
|
|
10
16
|
readonly padding?: number;
|
|
11
17
|
/** Corner radius of the cut-out and the ring. Default: the target's own. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight_overlay.d.ts","sourceRoot":"","sources":["../../src/dom/highlight_overlay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"highlight_overlay.d.ts","sourceRoot":"","sources":["../../src/dom/highlight_overlay.ts"],"names":[],"mappings":"AAGA,oEAAoE;AACpE,MAAM,WAAW,uBAAuB;IACtC,uDAAuD;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,kFAAkF;IAClF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,uBAA4B,GACpC,MAAM,IAAI,CA4GZ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The colour a highlight ring is drawn in when the caller passed none.
|
|
3
|
+
*
|
|
4
|
+
* In order: `--ag-ui-highlight-ring-color` on the target, the same token on
|
|
5
|
+
* the chat, the target's `--ag-ui-accent`, the chat's resolved accent, the
|
|
6
|
+
* package indigo. The target's accent stays above the chat's own default so a
|
|
7
|
+
* host that themes `--ag-ui-accent` on its page keeps the rings it has; the
|
|
8
|
+
* ring token sits above both so a host can keep the ring apart from the accent.
|
|
9
|
+
*
|
|
10
|
+
* `chat` defaults to the most recently connected `<ag-ui-chat>`, the common
|
|
11
|
+
* page with one widget. A page with two passes the one the ring speaks for.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ringColor(target: HTMLElement, chat?: HTMLElement): string;
|
|
14
|
+
//# sourceMappingURL=ring_color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ring_color.d.ts","sourceRoot":"","sources":["../../src/dom/ring_color.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAgBzE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ATTACHMENT_EVENT, CHART_ACTIVITY_TYPE, COMPACTION_ACTIVITY_TYPE, CUSTOM_AGENT_EVENT, ELEMENT_TAG, FEEDBACK_EVENT, INVALIDATE_CUSTOM_NAME, INVALIDATE_EVENT, LOAD_CAPABILITY_TOOL, MAX_TOOL_ROUNDS, MESSAGE_ACTIONS, MESSAGE_ROLE, RUN_FINISHED_EVENT, STATE_EVENT, SUBMIT_EVENT, SUGGESTIONS_ACTIVITY_TYPE, TOGGLE_EVENT, TOOL_CALL_STATUS, TOOL_DISPLAY, TOOL_OUTCOME, UNREAD_EVENT, X_CONFIRM_KEY, X_DESTRUCTIVE_KEY, X_NAVIGATES_KEY, X_SUMMARY_KEY, } from "./constants.js";
|
|
1
|
+
export { ATTACHMENT_EVENT, CHART_ACTIVITY_TYPE, COMPACTION_ACTIVITY_TYPE, CUSTOM_AGENT_EVENT, ELEMENT_TAG, FEEDBACK_EVENT, INVALIDATE_CUSTOM_NAME, INVALIDATE_EVENT, LOAD_CAPABILITY_TOOL, MAX_TOOL_ROUNDS, MESSAGE_ACTIONS, MESSAGE_ROLE, RUN_FINISHED_EVENT, STATE_EVENT, SUBMIT_EVENT, SUGGESTIONS_ACTIVITY_TYPE, THREAD_EVENT, TOGGLE_EVENT, TOOL_CALL_STATUS, TOOL_DISPLAY, TOOL_OUTCOME, UNREAD_EVENT, X_CONFIRM_KEY, X_DESTRUCTIVE_KEY, X_NAVIGATES_KEY, X_SUMMARY_KEY, } from "./constants.js";
|
|
2
2
|
export type { ActivityRegistration } from "./core/activity_registration.js";
|
|
3
3
|
export type { ActivityRenderer } from "./core/activity_renderer.js";
|
|
4
4
|
export { AgUiChat } from "./core/ag_ui_chat.js";
|
|
@@ -14,6 +14,7 @@ export type { InvalidateDetail } from "./core/events/invalidate_detail.js";
|
|
|
14
14
|
export type { RunFinishedDetail } from "./core/events/run_finished_detail.js";
|
|
15
15
|
export type { StateDetail } from "./core/events/state_detail.js";
|
|
16
16
|
export type { SubmitDetail } from "./core/events/submit_detail.js";
|
|
17
|
+
export type { ThreadDetail } from "./core/events/thread_detail.js";
|
|
17
18
|
export type { ToggleDetail } from "./core/events/toggle_detail.js";
|
|
18
19
|
export type { ToolRun } from "./core/events/tool_run.js";
|
|
19
20
|
export type { UnreadDetail } from "./core/events/unread_detail.js";
|
|
@@ -23,7 +24,7 @@ export { RunIndex, type RunRow } from "./core/run_index.js";
|
|
|
23
24
|
export { type ToolOutcome, toolStatusFromOutcome } from "./core/tool_outcome.js";
|
|
24
25
|
export { type TranscribeHandler, type TranscribeOptions, transcribeAudio, } from "./core/transcribe_audio.js";
|
|
25
26
|
export { type UploadHandler, type UploadOptions, uploadAttachment, } from "./core/upload_attachment.js";
|
|
26
|
-
export { type FlashOptions, flash, focusWithFlash, type HighlightClickOptions, highlightThenClick, type PressOptions, prefersReducedMotion, pressThenClick, type ScrollOptions, type SelectOptions, scrollIntoCenterView, selectOption, type TextLikeElement, type ToggleOptions, type TypeOptions, toggleControl, typeInto, } from "./dom/animations.js";
|
|
27
|
+
export { type FlashOptions, flash, focusWithFlash, type HighlightClickOptions, highlightThenClick, type PressOptions, prefersReducedMotion, pressThenClick, type RingOwnerOptions, type ScrollOptions, type SelectOptions, scrollIntoCenterView, selectOption, type TextLikeElement, type ToggleOptions, type TypeOptions, toggleControl, typeInto, } from "./dom/animations.js";
|
|
27
28
|
export { clickElement, type FillFieldOptions, fillField, pressButton, selectControl, setControlValue, toggleCheckbox, } from "./dom/dom_driver.js";
|
|
28
29
|
export { type HighlightOverlayOptions, showHighlightOverlay, } from "./dom/highlight_overlay.js";
|
|
29
30
|
export { setNativeChecked, setNativeValue } from "./dom/native_setter.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,aAAa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