@artooi/ag-ui-web-component 0.47.0 → 0.49.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 +205 -1
- package/README.md +235 -16
- package/dist/ag-ui-web-component.bundle.js +647 -181
- package/dist/ag-ui-web-component.bundle.js.map +4 -4
- package/dist/constants.d.ts +27 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts +44 -5
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- 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/dom/highlight_overlay.d.ts +2 -1
- package/dist/dom/highlight_overlay.d.ts.map +1 -1
- package/dist/dom/ring_color.d.ts +8 -0
- package/dist/dom/ring_color.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1184 -69
- 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 +16 -3
- 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 +16 -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 +32 -19
- package/dist/ui/placement/surface_for.d.ts.map +1 -1
- package/dist/ui/progress/tool_group_styles.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/quiet_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 +30 -2
- package/src/core/ag_ui_chat.ts +335 -28
- package/src/core/events/bar_height_detail.ts +5 -0
- package/src/dom/highlight_overlay.ts +2 -1
- package/src/dom/ring_color.ts +141 -4
- package/src/index.ts +4 -0
- package/src/tools/chat_surface_tools.ts +13 -5
- package/src/ui/history/conversation_history.ts +51 -7
- package/src/ui/placement/collapse_styles.ts +248 -2
- package/src/ui/placement/dock_styles.ts +95 -0
- package/src/ui/placement/panel_placement.ts +300 -16
- package/src/ui/placement/small_viewport_styles.ts +9 -0
- package/src/ui/placement/surface_for.ts +58 -22
- package/src/ui/progress/tool_group_styles.ts +52 -2
- 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 +58 -1
- package/src/ui/styles.ts +4 -0
- package/src/ui/themes/quiet_styles.ts +19 -3
- package/src/ui/themes/scheme_styles.ts +10 -1
- package/src/version.ts +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CollapseTarget } from "../ui/placement/surface_for.js";
|
|
1
2
|
import type { ClientTool } from "./client_tool_registry.js";
|
|
2
3
|
/** Every corner the panel can be sent to, in the order the schema states them. */
|
|
3
4
|
export declare const CHAT_CORNERS: readonly ["top-left", "top-right", "bottom-left", "bottom-right"];
|
|
@@ -7,7 +8,13 @@ export type ChatCorner = (typeof CHAT_CORNERS)[number];
|
|
|
7
8
|
export interface ChatSurfaceReport {
|
|
8
9
|
/** The placement in force, or `null` when the host set none. */
|
|
9
10
|
readonly placement: string | null;
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* What the panel collapses to: `launcher`, `rail`, `header`, `bar` (the
|
|
13
|
+
* bottom bar it rises from), `none` (hidden, brought back by the host's own
|
|
14
|
+
* control), or `null` when it cannot collapse.
|
|
15
|
+
*/
|
|
16
|
+
readonly collapseTo: CollapseTarget;
|
|
17
|
+
/** Whether the panel is currently collapsed. */
|
|
11
18
|
readonly collapsed: boolean;
|
|
12
19
|
/** Whether this placement has a collapsed state at all. */
|
|
13
20
|
readonly collapsible: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_surface_tools.d.ts","sourceRoot":"","sources":["../../src/tools/chat_surface_tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,kFAAkF;AAClF,eAAO,MAAM,YAAY,YAAI,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAU,CAAC;AAE9F,yCAAyC;AACzC,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC,gEAAgE;IAChE,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,
|
|
1
|
+
{"version":3,"file":"chat_surface_tools.d.ts","sourceRoot":"","sources":["../../src/tools/chat_surface_tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,kFAAkF;AAClF,eAAO,MAAM,YAAY,YAAI,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAU,CAAC;AAE9F,yCAAyC;AACzC,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC,gEAAgE;IAChE,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,g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;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,EAAE,CA4GzE"}
|
|
@@ -180,7 +180,19 @@ export declare class ConversationHistory {
|
|
|
180
180
|
openThreads(): void;
|
|
181
181
|
/** Open the checkpoint panel, dismissing the conversation list. */
|
|
182
182
|
openCheckpoints(): void;
|
|
183
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Switch the active conversation to an existing thread and replay it.
|
|
185
|
+
*
|
|
186
|
+
* A call for the thread a switch is already loading is handed that switch's
|
|
187
|
+
* own promise, so it settles when the thread is drawn rather than at once,
|
|
188
|
+
* before the replay.
|
|
189
|
+
*
|
|
190
|
+
* A store that rejects the load leaves the element on the thread it was on:
|
|
191
|
+
* the switch has already cleared the transcript, so it points back at the
|
|
192
|
+
* old thread and draws it again, saying nothing, and then rejects with the
|
|
193
|
+
* store's error. Left as it was, the element named a thread it was not
|
|
194
|
+
* showing and never reported it.
|
|
195
|
+
*/
|
|
184
196
|
switchThread(threadId: string): Promise<void>;
|
|
185
197
|
/** Rename a thread, then reload the list that shows its title. */
|
|
186
198
|
renameThread(threadId: string, title: string): void;
|
|
@@ -285,9 +297,10 @@ export declare class ConversationHistory {
|
|
|
285
297
|
* instead; see `#forgetStopped`.
|
|
286
298
|
*
|
|
287
299
|
* `reason` is what the thread event this restore ends with reports as why
|
|
288
|
-
* the conversation changed. A restore that is stopped reports nothing
|
|
300
|
+
* the conversation changed. A restore that is stopped reports nothing, and
|
|
301
|
+
* neither does one given `null`, which draws the thread already reported.
|
|
289
302
|
*/
|
|
290
|
-
rehydrate(reason: ThreadDetail["reason"]): Promise<void>;
|
|
303
|
+
rehydrate(reason: ThreadDetail["reason"] | null): Promise<void>;
|
|
291
304
|
/**
|
|
292
305
|
* Replay a restored message: text bubbles *and* tool activity. An assistant
|
|
293
306
|
* turn may carry `toolCalls` (rendered as cards) and/or text; a `tool` turn
|
|
@@ -1 +1 @@
|
|
|
1
|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IAAI,CAOjB;IAED,yEAAyE;IACzE,IAAI,IAAI,QAAQ,GAAG,IAAI,CAatB;IAED,mEAAmE;IACnE,WAAW,IAAI,IAAI,CAQlB;IAED,mEAAmE;IACnE,eAAe,IAAI,IAAI,CAKtB;IAED;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAa5C;IA0BD,kEAAkE;IAClE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAGlD;IAED,4EAA4E;IAC5E,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAcnC;IAED,kEAAkE;IAC5D,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAMnC;IAWD;;;;;;;;;;;;;;;;;;OAkBG;IACG,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAiJpE;IAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IACG,SAAS,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA6IpE;IAsID;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsG7B;CA2DF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/collapse_styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collapse_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/collapse_styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,EAAE,MA2X7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dock_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/dock_styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,EAAE,MA0FzB,CAAC"}
|
|
@@ -62,6 +62,11 @@ export declare class PanelPlacement {
|
|
|
62
62
|
* Drop the dragged size and its stored copy, so the placement's own size and
|
|
63
63
|
* the host's tokens apply again. For a host entering a sized state of its
|
|
64
64
|
* own, which a user's drag would otherwise outrank.
|
|
65
|
+
*
|
|
66
|
+
* A docked panel the user dragged off its dock goes back to it as well, and
|
|
67
|
+
* the stored spot with it: there the position is part of the same resting
|
|
68
|
+
* state the host is asking for. A corner panel keeps a dragged position, as
|
|
69
|
+
* it always has.
|
|
65
70
|
*/
|
|
66
71
|
resetSize(): void;
|
|
67
72
|
/**
|
|
@@ -94,6 +99,17 @@ export declare class PanelPlacement {
|
|
|
94
99
|
* while docked, and reads as a component that cannot do full height.
|
|
95
100
|
*/
|
|
96
101
|
releaseOwnedAxes(): void;
|
|
102
|
+
/**
|
|
103
|
+
* Write where a docked panel stands, and return the bar's height.
|
|
104
|
+
*
|
|
105
|
+
* Under the bar it is the strip's border box, which is 0 whenever the strip
|
|
106
|
+
* is not drawn (a phone with the panel open, where the panel is the screen).
|
|
107
|
+
* Under a host anchor it is the anchor's top and right, measured against the
|
|
108
|
+
* layout viewport a fixed element is placed in; an anchor of null leaves the
|
|
109
|
+
* panel in its placement's own corner. Every other surface carries neither
|
|
110
|
+
* property, so nothing stale is left behind by a live switch.
|
|
111
|
+
*/
|
|
112
|
+
syncDock(bar: HTMLElement, anchor: Element | null): number;
|
|
97
113
|
/**
|
|
98
114
|
* Publish the measured viewport height so the stylesheet can size a
|
|
99
115
|
* full-bleed panel to what the user can see.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel_placement.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/panel_placement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAA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YAAY,IAAI,EAAE,aAAa,EAE9B;IAED;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAOzC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAS5C;IAED,mFAAmF;IACnF,gBAAgB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAqBxC;IAED,sDAAsD;IACtD,WAAW,IAAI,IAAI,CAElB;IAED;;;;;;;;;OASG;IACH,SAAS,IAAI,IAAI,CAchB;IAED;;;;OAIG;IACH,QAAQ,CAAC,KAAK,iBAAiC;IA2F/C;;;;;;OAMG;IACH,QAAQ,IAAI,OAAO,CAKlB;IAED,+EAA+E;IAC/E,eAAe,IAAI,iBAAiB,CA+BnC;IAED,oEAAoE;IACpE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE;QAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAmDjF;IAmID,sEAAsE;IACtE,gBAAgB,IAAI,IAAI,CAYvB;IA0CD;;;;;;OAMG;IACH,gBAAgB,IAAI,IAAI,CAQvB;IAiBD;;;;;;;;;OASG;IACH,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,MAAM,CA8BzD;IA4LD;;;;;;;;;;;;OAYG;IACH,qBAAqB,IAAI,IAAI,CAgD5B;IAyQD;;;;;OAKG;IACH,uBAAuB,IAAI,IAAI,CA0B9B;IAiCD;;;;OAIG;IACH,uBAAuB,IAAI,IAAI,CAiB9B;CAgIF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"small_viewport_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/small_viewport_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"small_viewport_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/small_viewport_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,EAAE,MAoEnC,CAAC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import type { ResizeAxis } from "./resize_handle.js";
|
|
2
2
|
/**
|
|
3
|
-
* What a collapsed panel shrinks to
|
|
4
|
-
*
|
|
5
|
-
* Only `null` versus not-`null` is read today: every caller asks whether the
|
|
6
|
-
* surface can collapse at all, never which target it collapses to. The three
|
|
7
|
-
* names below therefore describe the surface rather than drive it, and nothing
|
|
8
|
-
* relies on them (changing one fails only the test of this record). The
|
|
9
|
-
* bottom-bar collapse is expected to read or replace them, and a reader that
|
|
10
|
-
* does should come with a test outside this record's own.
|
|
3
|
+
* What a collapsed panel shrinks to, stamped on the element as
|
|
4
|
+
* data-collapsed-to so the stylesheet draws it.
|
|
11
5
|
*
|
|
12
6
|
* - `launcher` -- the round button in a corner.
|
|
13
7
|
* - `rail` -- the slim full-height edge the sidebar docks against; the same
|
|
14
8
|
* launcher element, shaped by the stylesheet.
|
|
15
9
|
* - `header` -- the in-flow collapse: the body hides and the header bar stays
|
|
16
10
|
* in the host's layout, so there is no launcher at all.
|
|
11
|
+
* - `bar` -- `collapse-to="bar"` over a placement that would otherwise
|
|
12
|
+
* collapse to `launcher`: a strip along the bottom edge, the panel rising
|
|
13
|
+
* from its right end.
|
|
14
|
+
* - `none` -- `collapse-to="none"` over any collapsible placement: collapsed
|
|
15
|
+
* is hidden, and the host's own control brings the panel back.
|
|
17
16
|
* - `null` -- no collapsed state. `page` is a dedicated route rather than a
|
|
18
17
|
* panel on someone else's page, so there is no "away" for it to go to:
|
|
19
18
|
* collapsing it left a strip of application chrome fixed over a route with
|
|
@@ -24,7 +23,7 @@ import type { ResizeAxis } from "./resize_handle.js";
|
|
|
24
23
|
* those paths asks this record; the stylesheet covers the one path that
|
|
25
24
|
* never does, an attribute written straight onto the element.
|
|
26
25
|
*/
|
|
27
|
-
export type CollapseTarget = "launcher" | "rail" | "header" | null;
|
|
26
|
+
export type CollapseTarget = "launcher" | "rail" | "header" | "bar" | "none" | null;
|
|
28
27
|
/**
|
|
29
28
|
* Everything the script needs to know about one display surface, in one
|
|
30
29
|
* record, so a placement's behaviour is read in one place rather than
|
|
@@ -34,18 +33,22 @@ export type CollapseTarget = "launcher" | "rail" | "header" | null;
|
|
|
34
33
|
* under this directory); this is the part of a surface that code decides.
|
|
35
34
|
*/
|
|
36
35
|
export interface Surface {
|
|
37
|
-
/**
|
|
38
|
-
* What collapsing shrinks the panel to; `null` when it cannot collapse. Only
|
|
39
|
-
* the `null` test is authoritative: the non-null names are descriptive (see
|
|
40
|
-
* {@link CollapseTarget}), and nothing branches on which one a surface has.
|
|
41
|
-
*/
|
|
36
|
+
/** What collapsing shrinks the panel to; `null` when it cannot collapse. */
|
|
42
37
|
readonly collapseTo: CollapseTarget;
|
|
43
38
|
/**
|
|
44
39
|
* Whether a gesture may move the launcher. The rest have nowhere to put it:
|
|
45
|
-
* the rail is a docked edge, `header` and `null` have no launcher,
|
|
46
|
-
* full-bleed panel covers the screen it would be opening into
|
|
40
|
+
* the rail is a docked edge, `header` and `null` have no launcher, a
|
|
41
|
+
* full-bleed panel covers the screen it would be opening into, and the bar
|
|
42
|
+
* and the host's own control are not a launcher at all.
|
|
47
43
|
*/
|
|
48
44
|
readonly launcherDraggable: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the header drag and `moveTo` may move the open panel. The same
|
|
47
|
+
* answer as {@link launcherDraggable} for every placement on its own; the two
|
|
48
|
+
* part under `collapse-to="bar"` and `"none"`, where a corner panel still
|
|
49
|
+
* moves like one but has no launcher left to drag.
|
|
50
|
+
*/
|
|
51
|
+
readonly panelMovable: boolean;
|
|
49
52
|
/**
|
|
50
53
|
* Which axes the resize grips may change. A full-bleed layout is the whole
|
|
51
54
|
* viewport by definition and cannot be resized; a docked panel owns its
|
|
@@ -67,8 +70,18 @@ export interface Surface {
|
|
|
67
70
|
readonly startsCollapsed: boolean;
|
|
68
71
|
}
|
|
69
72
|
/**
|
|
70
|
-
* The surface `placement`
|
|
71
|
-
* because
|
|
73
|
+
* The surface `placement` and `collapse-to` describe together. Read per
|
|
74
|
+
* interaction by every caller, because both are live attributes.
|
|
75
|
+
*
|
|
76
|
+
* `collapse-to` only ever replaces the round launcher or the whole collapsed
|
|
77
|
+
* state, never a placement's own shape: `bar` applies where the placement
|
|
78
|
+
* collapses to `launcher`, so the sidebar keeps its rail and an embedded chat
|
|
79
|
+
* its header bar, and `none` applies to every collapsible placement. Absent,
|
|
80
|
+
* `auto` and any other value leave the placement as it was. Both turn the
|
|
81
|
+
* launcher drag off, because there is no launcher left to drag, and keep the
|
|
82
|
+
* placement's own answer for moving the panel: a corner panel rises from the
|
|
83
|
+
* bar or the anchor until the user drags it somewhere else, and a placement
|
|
84
|
+
* that owns its position keeps owning it.
|
|
72
85
|
*/
|
|
73
|
-
export declare function surfaceFor(placement: string | null): Surface;
|
|
86
|
+
export declare function surfaceFor(placement: string | null, collapseTo?: string | null): Surface;
|
|
74
87
|
//# sourceMappingURL=surface_for.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface_for.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/surface_for.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"surface_for.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/surface_for.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpF;;;;;;;GAOG;AACH,MAAM,WAAW,OAAO;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC;AA2ED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,UAAU,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAS9F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool_group_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_group_styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool_group_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_group_styles.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,iBAAiB,EAAE,MAsP/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool_step_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_step_styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"tool_step_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_step_styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,MAsd9B,CAAC"}
|
|
@@ -4,17 +4,28 @@ export interface LauncherOptions {
|
|
|
4
4
|
readonly launcher: HTMLButtonElement;
|
|
5
5
|
readonly badge: HTMLElement;
|
|
6
6
|
readonly railLabel: HTMLElement;
|
|
7
|
+
/** The bottom bar's wrapper, which holds the launcher and the history button. */
|
|
8
|
+
readonly bar: HTMLElement;
|
|
9
|
+
/** The bottom bar's history button, a sibling of the launcher in the bar. */
|
|
10
|
+
readonly barHistory: HTMLButtonElement;
|
|
7
11
|
readonly titleText: string;
|
|
8
12
|
readonly iconUrl: string | null;
|
|
9
13
|
readonly strings: UiStrings;
|
|
10
14
|
readonly signal: AbortSignal;
|
|
11
15
|
readonly onOpen: () => void;
|
|
16
|
+
readonly onHistory: () => void;
|
|
12
17
|
}
|
|
13
18
|
/**
|
|
14
|
-
* Build what a collapsed widget shrinks to: a round floating button,
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* the panel
|
|
19
|
+
* Build what a collapsed widget shrinks to: a round floating button, the slim
|
|
20
|
+
* edge rail under `placement="sidebar"`, or the strip along the bottom edge
|
|
21
|
+
* under `collapse-to="bar"` -- one element, shaped by the stylesheet. The
|
|
22
|
+
* element mounts the bar wrapper as a sibling of the panel, so it survives the
|
|
23
|
+
* panel being hidden.
|
|
24
|
+
*
|
|
25
|
+
* The wrapper is there for the bar's history button: a button cannot nest in
|
|
26
|
+
* a button, so the strip is the launcher and the history button side by side.
|
|
27
|
+
* Outside the bar the wrapper draws no box and the history button is not
|
|
28
|
+
* drawn, so the launcher lays out against the host exactly as it did alone.
|
|
18
29
|
*/
|
|
19
30
|
export declare function buildLauncher(options: LauncherOptions): void;
|
|
20
31
|
//# sourceMappingURL=build_launcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_launcher.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/build_launcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"build_launcher.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/build_launcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,iFAAiF;IACjF,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;CAChC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CA2C5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/token_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"token_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/token_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE,MA4c1B,CAAC"}
|
package/dist/ui/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,MAAM,EAAE,MAmDX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quiet_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/themes/quiet_styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"quiet_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/themes/quiet_styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,EAAE,MA8H1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheme_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/themes/scheme_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"scheme_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/themes/scheme_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,EAAE,MAwB3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artooi/ag-ui-web-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "Framework-free <ag-ui-chat> Web Component over the AG-UI protocol. Drop-in chat sidebar with a pluggable client-side tool registry, DOM driver primitives, animations, and destructive-action confirmation modal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/constants.ts
CHANGED
|
@@ -15,11 +15,18 @@ export const ELEMENT_TAG = "ag-ui-chat";
|
|
|
15
15
|
export const SUBMIT_EVENT = "ag-ui-submit";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Collapsed state changed, via the built-in toggle or `setCollapsed
|
|
18
|
+
* Collapsed state changed, via the built-in toggle or `setCollapsed`; and,
|
|
19
|
+
* under `collapse-to="none"`, once at connect with the state it mounted in.
|
|
19
20
|
* `detail` is {@link ToggleDetail}.
|
|
20
21
|
*/
|
|
21
22
|
export const TOGGLE_EVENT = "ag-ui-toggle";
|
|
22
23
|
|
|
24
|
+
/**
|
|
25
|
+
* The bottom bar's height changed (`collapse-to="bar"`): the host pads its
|
|
26
|
+
* page by it. `detail` is {@link BarHeightDetail}; 0 when no bar is drawn.
|
|
27
|
+
*/
|
|
28
|
+
export const BAR_HEIGHT_EVENT = "ag-ui-bar-height";
|
|
29
|
+
|
|
23
30
|
/**
|
|
24
31
|
* The count of answers that arrived while collapsed changed. `detail` is
|
|
25
32
|
* {@link UnreadDetail}. The built-in launcher badge renders exactly this; a
|
|
@@ -351,7 +358,8 @@ export const DEFAULT_ATTACHMENT_MAX_BYTES = 10 * 1024 * 1024;
|
|
|
351
358
|
* default is `grouped`.
|
|
352
359
|
*
|
|
353
360
|
* - `grouped` — a run's consecutive calls fold into one quiet row ("Worked
|
|
354
|
-
* through 5 steps"), with the calls one click down as `full` cards
|
|
361
|
+
* through 5 steps"), with the calls one click down as `full` cards, or as
|
|
362
|
+
* {@link TOOL_GROUP_DISPLAY} names.
|
|
355
363
|
* - `inline` — one status row (icon + summary), no card chrome, result behind
|
|
356
364
|
* its own toggle. Reads as a line of the answer rather than a boxed card.
|
|
357
365
|
* - `minimal` — tool name + status pill only. No args, no result body.
|
|
@@ -366,6 +374,26 @@ export const TOOL_DISPLAY = {
|
|
|
366
374
|
FULL: "full",
|
|
367
375
|
} as const;
|
|
368
376
|
|
|
377
|
+
/**
|
|
378
|
+
* How an opened step group draws its calls. Set via `data-tool-group-display`
|
|
379
|
+
* and read only while `data-tool-display` is `grouped`; an outer card mode
|
|
380
|
+
* flattens the groups into its own cards and this value is ignored there.
|
|
381
|
+
*
|
|
382
|
+
* The same four card modes as {@link TOOL_DISPLAY}, applied to the calls inside
|
|
383
|
+
* the group: `full` (the default, and what an absent or unknown value reads
|
|
384
|
+
* as), `compact`, `minimal` and `inline`. A call waiting on an approval shows
|
|
385
|
+
* its arguments in every one of them.
|
|
386
|
+
*/
|
|
387
|
+
export const TOOL_GROUP_DISPLAY = {
|
|
388
|
+
INLINE: "inline",
|
|
389
|
+
MINIMAL: "minimal",
|
|
390
|
+
COMPACT: "compact",
|
|
391
|
+
FULL: "full",
|
|
392
|
+
} as const;
|
|
393
|
+
|
|
394
|
+
/** One of the {@link TOOL_GROUP_DISPLAY} values. */
|
|
395
|
+
export type ToolGroupDisplayMode = (typeof TOOL_GROUP_DISPLAY)[keyof typeof TOOL_GROUP_DISPLAY];
|
|
396
|
+
|
|
369
397
|
/**
|
|
370
398
|
* `activityType` of the `ACTIVITY_SNAPSHOT` event django-ag-ui emits when a
|
|
371
399
|
* compaction capability trimmed the history. `content` carries
|