@artooi/ag-ui-web-component 0.46.0 → 0.48.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 +221 -1
- package/README.md +298 -31
- package/dist/ag-ui-web-component.bundle.js +597 -177
- package/dist/ag-ui-web-component.bundle.js.map +4 -4
- package/dist/constants.d.ts +37 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts +73 -2
- 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/bar_height_detail.d.ts +6 -0
- package/dist/core/events/bar_height_detail.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 +8 -1
- package/dist/dom/highlight_overlay.d.ts.map +1 -1
- package/dist/dom/ring_color.d.ts +22 -0
- package/dist/dom/ring_color.d.ts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1164 -95
- package/dist/index.js.map +4 -4
- package/dist/tools/chat_surface_tools.d.ts +8 -1
- package/dist/tools/chat_surface_tools.d.ts.map +1 -1
- package/dist/ui/history/conversation_history.d.ts +24 -2
- package/dist/ui/history/conversation_history.d.ts.map +1 -1
- package/dist/ui/placement/collapse_styles.d.ts.map +1 -1
- package/dist/ui/placement/dock_styles.d.ts +2 -0
- package/dist/ui/placement/dock_styles.d.ts.map +1 -0
- package/dist/ui/placement/panel_placement.d.ts +17 -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 +21 -17
- package/dist/ui/placement/surface_for.d.ts.map +1 -1
- package/dist/ui/progress/tool_call_card.d.ts.map +1 -1
- package/dist/ui/progress/tool_group_styles.d.ts.map +1 -1
- package/dist/ui/progress/tool_step_group.d.ts.map +1 -1
- package/dist/ui/progress/tool_step_styles.d.ts.map +1 -1
- package/dist/ui/shell/build_launcher.d.ts +15 -4
- package/dist/ui/shell/build_launcher.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/scheme_styles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +41 -2
- package/src/core/ag_ui_chat.ts +430 -27
- package/src/core/chat_registry.ts +53 -0
- package/src/core/events/bar_height_detail.ts +5 -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 +10 -5
- package/src/dom/ring_color.ts +222 -0
- package/src/index.ts +7 -0
- package/src/tools/chat_surface_tools.ts +18 -8
- package/src/ui/history/conversation_history.ts +75 -7
- package/src/ui/placement/collapse_styles.ts +248 -2
- package/src/ui/placement/dock_styles.ts +91 -0
- package/src/ui/placement/embedded_styles.ts +2 -2
- package/src/ui/placement/panel_placement.ts +105 -12
- 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 +14 -0
- package/src/ui/placement/surface_for.ts +29 -18
- package/src/ui/progress/tool_call_card.ts +18 -8
- package/src/ui/progress/tool_group_styles.ts +49 -0
- package/src/ui/progress/tool_step_group.ts +3 -0
- package/src/ui/progress/tool_step_styles.ts +5 -3
- package/src/ui/shell/build_launcher.ts +32 -5
- package/src/ui/shell/token_styles.ts +30 -3
- package/src/ui/styles.ts +4 -0
- package/src/ui/themes/scheme_styles.ts +10 -1
- package/src/version.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -10,10 +10,16 @@ export declare const ELEMENT_TAG = "ag-ui-chat";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const SUBMIT_EVENT = "ag-ui-submit";
|
|
12
12
|
/**
|
|
13
|
-
* Collapsed state changed, via the built-in toggle or `setCollapsed
|
|
13
|
+
* Collapsed state changed, via the built-in toggle or `setCollapsed`; and,
|
|
14
|
+
* under `collapse-to="none"`, once at connect with the state it mounted in.
|
|
14
15
|
* `detail` is {@link ToggleDetail}.
|
|
15
16
|
*/
|
|
16
17
|
export declare const TOGGLE_EVENT = "ag-ui-toggle";
|
|
18
|
+
/**
|
|
19
|
+
* The bottom bar's height changed (`collapse-to="bar"`): the host pads its
|
|
20
|
+
* page by it. `detail` is {@link BarHeightDetail}; 0 when no bar is drawn.
|
|
21
|
+
*/
|
|
22
|
+
export declare const BAR_HEIGHT_EVENT = "ag-ui-bar-height";
|
|
17
23
|
/**
|
|
18
24
|
* The count of answers that arrived while collapsed changed. `detail` is
|
|
19
25
|
* {@link UnreadDetail}. The built-in launcher badge renders exactly this; a
|
|
@@ -51,6 +57,16 @@ export declare const ATTACHMENT_EVENT = "ag-ui-attachments";
|
|
|
51
57
|
* error and cancellation alike, since a partial write is still a write.
|
|
52
58
|
*/
|
|
53
59
|
export declare const RUN_FINISHED_EVENT = "ag-ui-run-finished";
|
|
60
|
+
/**
|
|
61
|
+
* The conversation on screen changed: a new chat, a thread switched to, the
|
|
62
|
+
* active thread deleted, the stored thread restored, or a `user-key` change
|
|
63
|
+
* handing the element to another principal. `detail` is {@link ThreadDetail}.
|
|
64
|
+
*
|
|
65
|
+
* Fires once per change, after the transcript has been replaced, so a listener
|
|
66
|
+
* reads the conversation it is told about. A host listing conversations in its
|
|
67
|
+
* own chrome marks the active one from here rather than watching attributes.
|
|
68
|
+
*/
|
|
69
|
+
export declare const THREAD_EVENT = "ag-ui-thread";
|
|
54
70
|
/**
|
|
55
71
|
* The agent sent an AG-UI `CUSTOM` event. `detail` is {@link CustomAgentDetail}.
|
|
56
72
|
*
|
|
@@ -311,7 +327,8 @@ export declare const DEFAULT_ATTACHMENT_MAX_BYTES: number;
|
|
|
311
327
|
* default is `grouped`.
|
|
312
328
|
*
|
|
313
329
|
* - `grouped` — a run's consecutive calls fold into one quiet row ("Worked
|
|
314
|
-
* through 5 steps"), with the calls one click down as `full` cards
|
|
330
|
+
* through 5 steps"), with the calls one click down as `full` cards, or as
|
|
331
|
+
* {@link TOOL_GROUP_DISPLAY} names.
|
|
315
332
|
* - `inline` — one status row (icon + summary), no card chrome, result behind
|
|
316
333
|
* its own toggle. Reads as a line of the answer rather than a boxed card.
|
|
317
334
|
* - `minimal` — tool name + status pill only. No args, no result body.
|
|
@@ -325,6 +342,24 @@ export declare const TOOL_DISPLAY: {
|
|
|
325
342
|
readonly COMPACT: "compact";
|
|
326
343
|
readonly FULL: "full";
|
|
327
344
|
};
|
|
345
|
+
/**
|
|
346
|
+
* How an opened step group draws its calls. Set via `data-tool-group-display`
|
|
347
|
+
* and read only while `data-tool-display` is `grouped`; an outer card mode
|
|
348
|
+
* flattens the groups into its own cards and this value is ignored there.
|
|
349
|
+
*
|
|
350
|
+
* The same four card modes as {@link TOOL_DISPLAY}, applied to the calls inside
|
|
351
|
+
* the group: `full` (the default, and what an absent or unknown value reads
|
|
352
|
+
* as), `compact`, `minimal` and `inline`. A call waiting on an approval shows
|
|
353
|
+
* its arguments in every one of them.
|
|
354
|
+
*/
|
|
355
|
+
export declare const TOOL_GROUP_DISPLAY: {
|
|
356
|
+
readonly INLINE: "inline";
|
|
357
|
+
readonly MINIMAL: "minimal";
|
|
358
|
+
readonly COMPACT: "compact";
|
|
359
|
+
readonly FULL: "full";
|
|
360
|
+
};
|
|
361
|
+
/** One of the {@link TOOL_GROUP_DISPLAY} values. */
|
|
362
|
+
export type ToolGroupDisplayMode = (typeof TOOL_GROUP_DISPLAY)[keyof typeof TOOL_GROUP_DISPLAY];
|
|
328
363
|
/**
|
|
329
364
|
* `activityType` of the `ACTIVITY_SNAPSHOT` event django-ag-ui emits when a
|
|
330
365
|
* compaction capability trimmed the history. `content` carries
|
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
|
|
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;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;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;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,yBAA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ACzE,eAAO,MAAM,SAAS,EAAE,MAA+J,CAAC;AAExL,+BAA+B;AAC/B,eAAO,MAAM,UAAU,EAAE,MAAqI,CAAC;AAE/J,eAAe;AACf,eAAO,MAAM,aAAa,EAAE,MAAmM,CAAC;AAEhO,4EAA4E;AAC5E,eAAO,MAAM,eAAe,EAAE,MAAiM,CAAC;AAEhO,eAAO,MAAM,SAAS,0KAAgK,CAAC;AAEvL,sEAAsE;AACtE,eAAO,MAAM,eAAe,kOAA0M,CAAC;AAEvO,sEAAsE;AACtE,eAAO,MAAM,aAAa,iQAA2O,CAAC;AAEtQ,gDAAgD;AAChD,eAAO,MAAM,cAAc,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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Context, Tool } from "@ag-ui/core";
|
|
2
|
+
import { type ToolGroupDisplayMode } from "../constants.js";
|
|
2
3
|
import type { Skill } from "../skills/skill.js";
|
|
3
4
|
import { type ChatCorner, type ChatSurfaceReport } from "../tools/chat_surface_tools.js";
|
|
4
5
|
import { type ClientTool } from "../tools/client_tool_registry.js";
|
|
@@ -361,6 +362,18 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
361
362
|
*/
|
|
362
363
|
get toolDisplay(): ToolDisplayMode;
|
|
363
364
|
set toolDisplay(value: ToolDisplayMode);
|
|
365
|
+
/**
|
|
366
|
+
* How an opened step group draws its calls, from the
|
|
367
|
+
* `data-tool-group-display` attribute (`full` / `compact` / `minimal` /
|
|
368
|
+
* `inline`). Defaults to `full`, for an absent attribute and for a value the
|
|
369
|
+
* element does not know, which is what a group drew before the attribute.
|
|
370
|
+
*
|
|
371
|
+
* Read only while `toolDisplay` is `grouped`: under a card mode the groups
|
|
372
|
+
* are flattened into that mode's cards. Applied by the shadow CSS from the
|
|
373
|
+
* attribute itself, so changing it restyles groups already on screen.
|
|
374
|
+
*/
|
|
375
|
+
get toolGroupDisplay(): ToolGroupDisplayMode;
|
|
376
|
+
set toolGroupDisplay(value: ToolGroupDisplayMode);
|
|
364
377
|
/**
|
|
365
378
|
* The host's own constructed stylesheets, adopted after the built-in one.
|
|
366
379
|
*
|
|
@@ -456,6 +469,37 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
456
469
|
* chrome can render its own instead.
|
|
457
470
|
*/
|
|
458
471
|
get unread(): number;
|
|
472
|
+
/**
|
|
473
|
+
* The thread on screen; `null` before the element first connects.
|
|
474
|
+
*
|
|
475
|
+
* Only reads. `conversationStore.threadId()` mints and stores a thread when
|
|
476
|
+
* the store points at none, so a host asking which conversation is showing
|
|
477
|
+
* could start one; this never does. {@link THREAD_EVENT} says when it changes.
|
|
478
|
+
*/
|
|
479
|
+
get threadId(): string | null;
|
|
480
|
+
/**
|
|
481
|
+
* Whether an interaction is in flight: the composer's own state, the one that
|
|
482
|
+
* shows Stop. It spans every tool round, a retry and a checkpoint
|
|
483
|
+
* continuation as well as a send, which {@link SUBMIT_EVENT} alone does not.
|
|
484
|
+
* Reflected as `data-running` on the element, for a host's CSS.
|
|
485
|
+
*/
|
|
486
|
+
get running(): boolean;
|
|
487
|
+
/**
|
|
488
|
+
* The height of the bottom bar in CSS px, and 0 when none is drawn: under
|
|
489
|
+
* any collapse-to but "bar", and on a phone while the panel is open, where
|
|
490
|
+
* the panel is the screen. The bar is fixed over the page, so a host pads
|
|
491
|
+
* its own page by this much; {@link BAR_HEIGHT_EVENT} says when it changes.
|
|
492
|
+
*/
|
|
493
|
+
get barHeight(): number;
|
|
494
|
+
/**
|
|
495
|
+
* The element the panel rises from under collapse-to="none", right-aligned
|
|
496
|
+
* to it: typically the host's own button in its own bar. Takes precedence
|
|
497
|
+
* over the anchor attribute, which names one by selector. One that resolves
|
|
498
|
+
* to nothing leaves the panel in its placement's own corner, with a console
|
|
499
|
+
* warning.
|
|
500
|
+
*/
|
|
501
|
+
get anchor(): Element | null;
|
|
502
|
+
set anchor(value: Element | null);
|
|
459
503
|
/**
|
|
460
504
|
* Describe the panel to whoever is asking -- in practice the agent, through
|
|
461
505
|
* the opt-in chat-surface tools.
|
|
@@ -480,14 +524,20 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
480
524
|
moveTo(corner: ChatCorner, options?: {
|
|
481
525
|
readonly announce?: boolean;
|
|
482
526
|
}): boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Drop a size the user dragged, and its stored copy, so the placement's
|
|
529
|
+
* default and the host's `--ag-ui-width` / `--ag-ui-height` apply again.
|
|
530
|
+
*/
|
|
531
|
+
resetSize(): void;
|
|
483
532
|
/** Flip the collapsed state. Bound to the built-in header toggle. */
|
|
484
533
|
toggleCollapsed(): void;
|
|
485
534
|
/**
|
|
486
535
|
* Flip the scheme word of the `theme` attribute between `light` and `dark`
|
|
487
536
|
* and persist the choice per tab. Bound to the optional built-in header theme
|
|
488
537
|
* toggle (`data-theme-toggle`). The theme name and any host words are kept:
|
|
489
|
-
* `soft` becomes `soft dark`, and `soft dark` becomes `soft light`.
|
|
490
|
-
* scheme
|
|
538
|
+
* `soft` becomes `soft dark`, and `soft dark` becomes `soft light`. With no
|
|
539
|
+
* scheme word (`auto`, or a host rule setting `color-scheme` on the element),
|
|
540
|
+
* it flips away from the scheme the panel is drawn in.
|
|
491
541
|
*/
|
|
492
542
|
toggleTheme(): void;
|
|
493
543
|
/**
|
|
@@ -512,6 +562,27 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
512
562
|
closeThreads(): void;
|
|
513
563
|
/** Close the checkpoints panel, if it is open. */
|
|
514
564
|
closeCheckpoints(): void;
|
|
565
|
+
/**
|
|
566
|
+
* Put a stored thread on screen, as picking it in the conversation list does,
|
|
567
|
+
* for a host that lists conversations in its own chrome.
|
|
568
|
+
*
|
|
569
|
+
* Resolves once the thread has been replayed, when {@link THREAD_EVENT} has
|
|
570
|
+
* fired; a second call for the thread already loading settles with that load.
|
|
571
|
+
* If the store rejects the load, the element stays on the thread it was on,
|
|
572
|
+
* fires nothing, and the promise rejects with the store's error.
|
|
573
|
+
* **A run in flight is cancelled**, as the list and {@link newChat} do;
|
|
574
|
+
* a host that would rather wait reads {@link running} first. The thread
|
|
575
|
+
* already on screen is left alone, and so is everything before the element
|
|
576
|
+
* connects, since until then it has no store to read the thread from.
|
|
577
|
+
*/
|
|
578
|
+
switchThread(threadId: string): Promise<void>;
|
|
579
|
+
/**
|
|
580
|
+
* Delete a stored thread, as the conversation list's delete does. Deleting the
|
|
581
|
+
* thread on screen cancels its run and puts a fresh thread in its place, and
|
|
582
|
+
* {@link THREAD_EVENT} reports it; deleting another leaves the screen alone.
|
|
583
|
+
* Does nothing before the element connects.
|
|
584
|
+
*/
|
|
585
|
+
deleteThread(threadId: string): void;
|
|
515
586
|
/**
|
|
516
587
|
* Open the checkpoints panel, or close it if it is already open — what the
|
|
517
588
|
* 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;AACjD,OAAO,EAgBL,KAAK,oBAAoB,EA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,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK5C;IAED;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAKnC;IAED;;;;;OAKG;IACH,iBAAiB,IAAI,IAAI,CAMxB;IAED;;;;;;;;;;;OAWG;IACH,OAAO,IAAI,IAAI,CA8Bd;IAiED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CA0DtC;IAED;;;;;;;;;OASG;IACH,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAEhE;IAgkBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,GAAE,SAAS,aAAa,EAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAoE/F;IA6BD;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAE9B;IA2JD;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,MAAM,GAAE,SAAS,CAAC,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bar_height_detail.d.ts","sourceRoot":"","sources":["../../../src/core/events/bar_height_detail.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -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,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,iDAAiD;IACjD,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,wDAAwD;IACxD,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,oEAAoE;IACpE,Q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(): 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,O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AAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzF;AAED,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAa/F;AAED,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAYD;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,EAAE,EAAE,iBAAiB,EACrB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -4,8 +4,15 @@ export interface HighlightOverlayOptions {
|
|
|
4
4
|
readonly scrim?: 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, held to 3:1 against the
|
|
11
|
+
* surface behind the target.
|
|
12
|
+
*/
|
|
8
13
|
readonly color?: string;
|
|
14
|
+
/** The chat whose ring colour and accent to use. Default: the latest connected. */
|
|
15
|
+
readonly chat?: HTMLElement;
|
|
9
16
|
/** Gap between the target's box and the ring. Default 4. */
|
|
10
17
|
readonly padding?: number;
|
|
11
18
|
/** 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;;;;;OAKG;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,22 @@
|
|
|
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
|
+
* Only the chat's own accent is adjusted, because it follows the widget's
|
|
11
|
+
* scheme rather than the page's: a dark widget's near-white accent on a light
|
|
12
|
+
* page all but disappears. It is held to 3:1 against the surface behind the
|
|
13
|
+
* target (see {@link surfaceBehind}): the accent as resolved if it holds, else
|
|
14
|
+
* the other half of the chat's light-dark pair, else the accent stepped toward
|
|
15
|
+
* black or white. Every value above it is a choice someone made, and is drawn
|
|
16
|
+
* as given.
|
|
17
|
+
*
|
|
18
|
+
* `chat` defaults to the most recently connected `<ag-ui-chat>`, the common
|
|
19
|
+
* page with one widget. A page with two passes the one the ring speaks for.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ringColor(target: HTMLElement, chat?: HTMLElement): string;
|
|
22
|
+
//# 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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAmBzE"}
|
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, BAR_HEIGHT_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_GROUP_DISPLAY, TOOL_OUTCOME, type ToolGroupDisplayMode, 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";
|
|
@@ -8,12 +8,14 @@ export { type ClientConversationStore, type NavigationCheckpoint, SessionStorage
|
|
|
8
8
|
export { type AgentFactory, createHttpAgent, type HttpAgentOptions, } from "./core/create_http_agent.js";
|
|
9
9
|
export { defineAgUiChat } from "./core/define_ag_ui_chat.js";
|
|
10
10
|
export type { AttachmentsDetail } from "./core/events/attachments_detail.js";
|
|
11
|
+
export type { BarHeightDetail } from "./core/events/bar_height_detail.js";
|
|
11
12
|
export type { CustomAgentDetail } from "./core/events/custom_agent_detail.js";
|
|
12
13
|
export type { FeedbackDetail } from "./core/events/feedback_detail.js";
|
|
13
14
|
export type { InvalidateDetail } from "./core/events/invalidate_detail.js";
|
|
14
15
|
export type { RunFinishedDetail } from "./core/events/run_finished_detail.js";
|
|
15
16
|
export type { StateDetail } from "./core/events/state_detail.js";
|
|
16
17
|
export type { SubmitDetail } from "./core/events/submit_detail.js";
|
|
18
|
+
export type { ThreadDetail } from "./core/events/thread_detail.js";
|
|
17
19
|
export type { ToggleDetail } from "./core/events/toggle_detail.js";
|
|
18
20
|
export type { ToolRun } from "./core/events/tool_run.js";
|
|
19
21
|
export type { UnreadDetail } from "./core/events/unread_detail.js";
|
|
@@ -23,7 +25,7 @@ export { RunIndex, type RunRow } from "./core/run_index.js";
|
|
|
23
25
|
export { type ToolOutcome, toolStatusFromOutcome } from "./core/tool_outcome.js";
|
|
24
26
|
export { type TranscribeHandler, type TranscribeOptions, transcribeAudio, } from "./core/transcribe_audio.js";
|
|
25
27
|
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";
|
|
28
|
+
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
29
|
export { clickElement, type FillFieldOptions, fillField, pressButton, selectControl, setControlValue, toggleCheckbox, } from "./dom/dom_driver.js";
|
|
28
30
|
export { type HighlightOverlayOptions, showHighlightOverlay, } from "./dom/highlight_overlay.js";
|
|
29
31
|
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,GACd,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,KAAK,UAAU,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,YAAY,EACjB,eAAe,EACf,KAAK,gBAAgB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;A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