@artooi/ag-ui-web-component 0.23.0 → 0.23.1
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 +73 -36
- package/README.md +7 -7
- package/dist/ag-ui-web-component.bundle.js +98 -117
- package/dist/ag-ui-web-component.bundle.js.map +3 -3
- package/dist/constants.d.ts +56 -85
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts +90 -127
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/core/agui_client.d.ts +24 -30
- package/dist/core/agui_client.d.ts.map +1 -1
- package/dist/core/attachment.d.ts +9 -14
- package/dist/core/attachment.d.ts.map +1 -1
- package/dist/core/conversation_store.d.ts +20 -27
- package/dist/core/conversation_store.d.ts.map +1 -1
- package/dist/core/create_http_agent.d.ts +13 -15
- package/dist/core/create_http_agent.d.ts.map +1 -1
- package/dist/core/remote_conversation_store.d.ts +8 -9
- package/dist/core/remote_conversation_store.d.ts.map +1 -1
- package/dist/core/run_index.d.ts +11 -20
- package/dist/core/run_index.d.ts.map +1 -1
- package/dist/core/transcribe_audio.d.ts +8 -8
- package/dist/core/transcribe_audio.d.ts.map +1 -1
- package/dist/core/upload_attachment.d.ts +15 -18
- package/dist/core/upload_attachment.d.ts.map +1 -1
- package/dist/core/utils.d.ts +4 -6
- package/dist/core/utils.d.ts.map +1 -1
- package/dist/dom/animations.d.ts +22 -30
- package/dist/dom/animations.d.ts.map +1 -1
- package/dist/dom/dom_driver.d.ts +7 -7
- package/dist/dom/native_setter.d.ts +2 -2
- package/dist/dom/native_setter.d.ts.map +1 -1
- package/dist/index.js +290 -378
- package/dist/index.js.map +2 -2
- package/dist/skills/fill_template.d.ts +4 -5
- package/dist/skills/fill_template.d.ts.map +1 -1
- package/dist/skills/parse_skills.d.ts.map +1 -1
- package/dist/skills/skill.d.ts +7 -8
- package/dist/skills/skill.d.ts.map +1 -1
- package/dist/tools/client_tool_registry.d.ts +2 -2
- package/dist/tools/page_action_tools.d.ts +7 -10
- package/dist/tools/page_action_tools.d.ts.map +1 -1
- package/dist/tools/page_state.d.ts +5 -8
- package/dist/tools/page_state.d.ts.map +1 -1
- package/dist/tools/route_map.d.ts +7 -10
- package/dist/tools/route_map.d.ts.map +1 -1
- package/dist/ui/approval_card.d.ts +15 -20
- package/dist/ui/approval_card.d.ts.map +1 -1
- package/dist/ui/attach_copy_buttons.d.ts +4 -10
- package/dist/ui/attach_copy_buttons.d.ts.map +1 -1
- package/dist/ui/attachment_chips.d.ts +7 -10
- package/dist/ui/attachment_chips.d.ts.map +1 -1
- package/dist/ui/attachment_tray.d.ts +6 -6
- package/dist/ui/checkpoint_menu.d.ts +7 -8
- package/dist/ui/checkpoint_menu.d.ts.map +1 -1
- package/dist/ui/confirmation_card.d.ts +10 -15
- package/dist/ui/confirmation_card.d.ts.map +1 -1
- package/dist/ui/question_card.d.ts +12 -15
- package/dist/ui/question_card.d.ts.map +1 -1
- package/dist/ui/relative_time.d.ts +5 -7
- package/dist/ui/relative_time.d.ts.map +1 -1
- package/dist/ui/render_markdown.d.ts +8 -8
- package/dist/ui/render_markdown.d.ts.map +1 -1
- package/dist/ui/resize_handle.d.ts +21 -34
- package/dist/ui/resize_handle.d.ts.map +1 -1
- package/dist/ui/run_notice.d.ts +5 -7
- package/dist/ui/run_notice.d.ts.map +1 -1
- package/dist/ui/skills_menu.d.ts +4 -5
- package/dist/ui/skills_menu.d.ts.map +1 -1
- package/dist/ui/styles.d.ts +1 -1
- package/dist/ui/styles.d.ts.map +1 -1
- package/dist/ui/thoughts_block.d.ts +9 -11
- package/dist/ui/thoughts_block.d.ts.map +1 -1
- package/dist/ui/thread_drawer.d.ts +6 -5
- package/dist/ui/thread_drawer.d.ts.map +1 -1
- package/dist/ui/tool_call_card.d.ts +17 -25
- package/dist/ui/tool_call_card.d.ts.map +1 -1
- package/dist/ui/ui_strings.d.ts +6 -12
- package/dist/ui/ui_strings.d.ts.map +1 -1
- package/dist/ui/voice_input.d.ts +10 -11
- package/dist/ui/voice_input.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +58 -87
- package/src/core/ag_ui_chat.ts +239 -267
- package/src/core/agui_client.ts +60 -71
- package/src/core/attachment.ts +9 -14
- package/src/core/conversation_store.ts +25 -33
- package/src/core/create_http_agent.ts +18 -22
- package/src/core/remote_conversation_store.ts +14 -15
- package/src/core/run_index.ts +14 -23
- package/src/core/transcribe_audio.ts +9 -10
- package/src/core/upload_attachment.ts +18 -21
- package/src/core/utils.ts +4 -6
- package/src/dom/animations.ts +33 -43
- package/src/dom/dom_driver.ts +7 -7
- package/src/dom/native_setter.ts +11 -12
- package/src/skills/fill_template.ts +4 -5
- package/src/skills/parse_skills.ts +3 -4
- package/src/skills/skill.ts +7 -8
- package/src/tools/client_tool_registry.ts +2 -2
- package/src/tools/page_action_tools.ts +12 -15
- package/src/tools/page_state.ts +5 -8
- package/src/tools/route_map.ts +15 -19
- package/src/ui/approval_card.ts +15 -20
- package/src/ui/attach_copy_buttons.ts +9 -18
- package/src/ui/attachment_chips.ts +7 -10
- package/src/ui/attachment_tray.ts +6 -6
- package/src/ui/checkpoint_menu.ts +7 -8
- package/src/ui/confirmation_card.ts +10 -15
- package/src/ui/question_card.ts +12 -15
- package/src/ui/relative_time.ts +5 -7
- package/src/ui/render_markdown.ts +25 -51
- package/src/ui/resize_handle.ts +25 -38
- package/src/ui/run_notice.ts +9 -12
- package/src/ui/skills_menu.ts +4 -5
- package/src/ui/styles.ts +79 -98
- package/src/ui/thoughts_block.ts +11 -13
- package/src/ui/thread_drawer.ts +6 -5
- package/src/ui/tool_call_card.ts +22 -32
- package/src/ui/ui_strings.ts +6 -12
- package/src/ui/voice_input.ts +10 -11
- package/src/version.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -1,47 +1,32 @@
|
|
|
1
1
|
/** The Custom Element tag name registered by {@link defineAgUiChat}. */
|
|
2
2
|
export declare const ELEMENT_TAG = "ag-ui-chat";
|
|
3
|
-
/**
|
|
4
|
-
* Event dispatched by `<ag-ui-chat>` when the user submits a message.
|
|
5
|
-
* `detail` carries `{ content: string }`. Later phases wire this to the
|
|
6
|
-
* AG-UI client; for now it is the public seam for host integration.
|
|
7
|
-
*/
|
|
3
|
+
/** User submitted a message. `detail` is {@link SubmitDetail}. */
|
|
8
4
|
export declare const SUBMIT_EVENT = "ag-ui-submit";
|
|
9
5
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `{ collapsed: boolean }`. A host can listen to drive its own chrome, or hide
|
|
13
|
-
* the built-in toggle and drive the `collapsed` attribute itself.
|
|
6
|
+
* Collapsed state changed, via the built-in toggle or `setCollapsed`.
|
|
7
|
+
* `detail` is {@link ToggleDetail}.
|
|
14
8
|
*/
|
|
15
9
|
export declare const TOGGLE_EVENT = "ag-ui-toggle";
|
|
16
10
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* The built-in badge on the launcher renders exactly this. A host driving its
|
|
22
|
-
* own chrome can turn the badge off with `data-unread-badge="false"` and listen
|
|
23
|
-
* here instead.
|
|
11
|
+
* The count of answers that arrived while collapsed changed. `detail` is
|
|
12
|
+
* {@link UnreadDetail}. The built-in launcher badge renders exactly this; a
|
|
13
|
+
* host driving its own chrome sets `data-unread-badge="false"` and listens.
|
|
24
14
|
*/
|
|
25
15
|
export declare const UNREAD_EVENT = "ag-ui-unread";
|
|
26
16
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* {@link AgUiChat.sharedState}. `detail` carries `{ state }`.
|
|
17
|
+
* AG-UI shared state changed — a streamed `STATE_SNAPSHOT` / `STATE_DELTA`, or
|
|
18
|
+
* a host assignment to `sharedState`. `detail` is {@link StateDetail}.
|
|
30
19
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
20
|
+
* The protocol's own state channel, distinct from `registerPageState`, which
|
|
21
|
+
* exposes host state to the agent as ordinary tools.
|
|
33
22
|
*/
|
|
34
23
|
export declare const STATE_EVENT = "ag-ui-state";
|
|
35
24
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* This is the seam for a host that drives its own composer: without it the tray
|
|
43
|
-
* only ever spoke to the built-in Send button, so a custom send had no way to
|
|
44
|
-
* know whether a file was ready or still uploading.
|
|
25
|
+
* The attachment tray changed — a file queued, an upload finishing or failing,
|
|
26
|
+
* a chip removed, the tray cleared after a send. `detail` is
|
|
27
|
+
* {@link AttachmentsDetail}, carrying the refs that finished uploading and how
|
|
28
|
+
* many are still in flight. A host driving its own composer uses this to know
|
|
29
|
+
* whether a send would leave files behind.
|
|
45
30
|
*/
|
|
46
31
|
export declare const ATTACHMENT_EVENT = "ag-ui-attachments";
|
|
47
32
|
/** Roles a chat message can take. */
|
|
@@ -50,39 +35,31 @@ export declare const MESSAGE_ROLE: {
|
|
|
50
35
|
readonly ASSISTANT: "assistant";
|
|
51
36
|
};
|
|
52
37
|
/**
|
|
53
|
-
*
|
|
54
|
-
* `
|
|
55
|
-
*
|
|
56
|
-
* confirmation modal (unless `autoConfirm` is set).
|
|
38
|
+
* Schema-root key marking a tool destructive: the element gates its execution
|
|
39
|
+
* behind the confirmation card unless `autoConfirm` is set. All four `x-*` keys
|
|
40
|
+
* below mirror the `django-ag-ui` server side.
|
|
57
41
|
*/
|
|
58
42
|
export declare const X_DESTRUCTIVE_KEY = "x-destructive";
|
|
59
43
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* server side. When present, the inline confirmation card shows this instead of
|
|
63
|
-
* the generic `Run "<tool>"?`.
|
|
44
|
+
* Schema-root key holding a confirmation prompt (e.g. `"Activate this
|
|
45
|
+
* project?"`), shown instead of the generic `Run "<tool>"?`.
|
|
64
46
|
*/
|
|
65
47
|
export declare const X_CONFIRM_KEY = "x-confirm";
|
|
66
48
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* side; the tool-call card shows it instead of the raw tool name when present.
|
|
49
|
+
* Schema-root key holding a short label for a tool (e.g. `"Query orders"` for
|
|
50
|
+
* `query_model`), shown on the card instead of the raw tool name.
|
|
70
51
|
*/
|
|
71
52
|
export declare const X_SUMMARY_KEY = "x-summary";
|
|
72
53
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* and resumes the run loop once the next page mounts. Mirrors `x-destructive`.
|
|
54
|
+
* Schema-root key marking a tool as navigating — its handler triggers a full
|
|
55
|
+
* page reload. The element checkpoints the call before the reload and resumes
|
|
56
|
+
* the run loop once the next page mounts.
|
|
77
57
|
*/
|
|
78
58
|
export declare const X_NAVIGATES_KEY = "x-navigates";
|
|
79
59
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* also the documented recovery from a stale page, so the stale-page guard has
|
|
84
|
-
* to exempt it — refusing the very call that would refresh the agent's view
|
|
85
|
-
* would be a deadlock.
|
|
60
|
+
* The built-in tool that re-reads the current page, registered only when a
|
|
61
|
+
* page-map provider is set. Named here because the stale-page guard must exempt
|
|
62
|
+
* it: refusing the one call that would refresh the agent's view deadlocks.
|
|
86
63
|
*/
|
|
87
64
|
export declare const READ_PAGE_TOOL = "read_page";
|
|
88
65
|
/** Upper bound on frontend tool-call → re-run rounds within one send. */
|
|
@@ -109,22 +86,19 @@ export declare const ATTACHMENT_STATUS: {
|
|
|
109
86
|
};
|
|
110
87
|
/**
|
|
111
88
|
* Default client-side upload size cap (10 MiB), matching django-ag-ui's
|
|
112
|
-
* `ATTACHMENT_MAX_BYTES
|
|
113
|
-
*
|
|
89
|
+
* `ATTACHMENT_MAX_BYTES`. Overridable via `data-attachment-max-bytes`; the
|
|
90
|
+
* server stays authoritative.
|
|
114
91
|
*/
|
|
115
92
|
export declare const DEFAULT_ATTACHMENT_MAX_BYTES: number;
|
|
116
93
|
/**
|
|
117
|
-
* How much detail a tool-call card shows. Set via
|
|
118
|
-
*
|
|
94
|
+
* How much detail a tool-call card shows. Set via `data-tool-display`; the
|
|
95
|
+
* default is `full`.
|
|
119
96
|
*
|
|
120
|
-
* - `inline` —
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* - `
|
|
125
|
-
* - `compact` — name + status, with args *and* result tucked behind a single
|
|
126
|
-
* collapsed "Details" toggle. The light default for dense UIs.
|
|
127
|
-
* - `full` — args shown inline, result behind its own toggle (the original).
|
|
97
|
+
* - `inline` — one status row (icon + summary), no card chrome, result behind
|
|
98
|
+
* its own toggle. Reads as a line of the answer rather than a boxed card.
|
|
99
|
+
* - `minimal` — tool name + status pill only. No args, no result body.
|
|
100
|
+
* - `compact` — name + status, args and result behind one "Details" toggle.
|
|
101
|
+
* - `full` — args inline, result behind its own toggle.
|
|
128
102
|
*/
|
|
129
103
|
export declare const TOOL_DISPLAY: {
|
|
130
104
|
readonly INLINE: "inline";
|
|
@@ -133,30 +107,30 @@ export declare const TOOL_DISPLAY: {
|
|
|
133
107
|
readonly FULL: "full";
|
|
134
108
|
};
|
|
135
109
|
/**
|
|
136
|
-
* `activityType` of the
|
|
137
|
-
*
|
|
138
|
-
*
|
|
110
|
+
* `activityType` of the `ACTIVITY_SNAPSHOT` event django-ag-ui emits when a
|
|
111
|
+
* compaction capability trimmed the history. `content` carries
|
|
112
|
+
* `{ removed, before, after }`.
|
|
139
113
|
*/
|
|
140
114
|
export declare const COMPACTION_ACTIVITY_TYPE = "compaction";
|
|
141
115
|
/**
|
|
142
|
-
* Pydantic-AI's built-in tool
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* reaches the client — there is no separate event for it.
|
|
116
|
+
* Pydantic-AI's built-in tool for loading a deferred capability, with `{ id }`
|
|
117
|
+
* naming it. Agent skills are deferred capabilities keyed by skill name, so a
|
|
118
|
+
* call to this tool is the only signal that the agent picked a skill.
|
|
146
119
|
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
120
|
+
* Distinct from the host-provided {@link Skill} catalog, which is a human
|
|
121
|
+
* affordance launched from the slash palette.
|
|
149
122
|
*/
|
|
150
123
|
export declare const LOAD_CAPABILITY_TOOL = "load_capability";
|
|
151
124
|
/**
|
|
152
125
|
* The chrome's glyphs, as inline SVG markup.
|
|
153
126
|
*
|
|
154
|
-
* Static
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* of stroking. A host
|
|
159
|
-
* `slot="icon-…"` child
|
|
127
|
+
* Static author-written markup assigned as a `<slot>`'s fallback content, so it
|
|
128
|
+
* never passes through the sanitiser — nothing here is user or server data, and
|
|
129
|
+
* nothing user-supplied may be interpolated into it. Each icon is a 24x24
|
|
130
|
+
* viewBox carrying the shared `glyph` class, which `STYLES` sizes and paints
|
|
131
|
+
* from `currentColor`; `glyph--solid` fills instead of stroking. A host wanting
|
|
132
|
+
* its own mark projects a matching `slot="icon-…"` child instead of editing
|
|
133
|
+
* these.
|
|
160
134
|
*/
|
|
161
135
|
export declare const ICON_SEND = "<svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 19.5V5m-6.5 6.5L12 5l6.5 6.5\"/></svg>";
|
|
162
136
|
/** The Stop glyph the composer button wears while a run is in flight. */
|
|
@@ -168,13 +142,10 @@ export declare const ICON_VOICE = "<svg class=\"glyph\" viewBox=\"0 0 24 24\" ar
|
|
|
168
142
|
/** The default launcher mark (a speech bubble), shown when the host slots none. */
|
|
169
143
|
export declare const ICON_LAUNCHER = "<svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H9l-5 4z\"/></svg>";
|
|
170
144
|
/**
|
|
171
|
-
* The attachment-chip
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
* one, so nothing user- or server-supplied reaches the markup.
|
|
176
|
-
*
|
|
177
|
-
* The generic mark, for a family with nothing more specific to say.
|
|
145
|
+
* The generic attachment-chip mark, for a file family with nothing more
|
|
146
|
+
* specific to say. The chip marks share the contract of the chrome glyphs
|
|
147
|
+
* above; `iconFor` selects one by MIME family, never interpolating the MIME
|
|
148
|
+
* string into the markup.
|
|
178
149
|
*/
|
|
179
150
|
export declare const ICON_FILE = "<svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z\"/><path d=\"M14 3v5h5\"/></svg>";
|
|
180
151
|
/** An image attachment: a framed picture with a horizon and a sun. */
|
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
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,wEAAwE;AACxE,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,kEAAkE;AAClE,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,qCAAqC;AACrC,eAAO,MAAM,YAAY;aACvB,IAAI,EAAE,MAAM;aACZ,SAAS,EAAE,WAAW;CACd,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD;;;GAGG;AACH,eAAO,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tE,eAAO,MAAM,aAAa,iQAA2O,CAAC;AAEtQ,gDAAgD;AAChD,eAAO,MAAM,cAAc,8MAAkM,CAAC"}
|
|
@@ -46,42 +46,35 @@ export interface UnreadDetail {
|
|
|
46
46
|
* `<ag-ui-chat>` — a framework-free chat sidebar Web Component over AG-UI.
|
|
47
47
|
*
|
|
48
48
|
* Owns the Shadow DOM shell (header, scrolling message list, input row),
|
|
49
|
-
* builds an {@link AgUiClient} on first send
|
|
50
|
-
* {@link agentFactory}
|
|
49
|
+
* builds an {@link AgUiClient} on first send via the overridable
|
|
50
|
+
* {@link agentFactory}, and renders streaming assistant text plus tool-call
|
|
51
51
|
* activity. Emits a {@link SUBMIT_EVENT} for host visibility.
|
|
52
52
|
*
|
|
53
|
-
* The per-run frontend tool catalog and context
|
|
54
|
-
* {@link
|
|
55
|
-
* registry, DOM driver) populate.
|
|
53
|
+
* The per-run frontend tool catalog and context come from {@link getTools} and
|
|
54
|
+
* {@link getContext}.
|
|
56
55
|
*/
|
|
57
56
|
export declare class AgUiChat extends HTMLElement {
|
|
58
57
|
#private;
|
|
59
58
|
/** Agent factory; override to inject a custom or fake agent (tests). */
|
|
60
59
|
agentFactory: AgentFactory;
|
|
61
60
|
/**
|
|
62
|
-
* Static extra HTTP headers, sent with
|
|
63
|
-
*
|
|
64
|
-
*
|
|
61
|
+
* Static extra HTTP headers, sent with every request this element makes: the
|
|
62
|
+
* agent run, the thread index and its messages, the tool and skill catalogs,
|
|
63
|
+
* the run index, uploads and transcription.
|
|
65
64
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* re-assignment updates it, so a token captured here is pinned until the host
|
|
70
|
-
* remembers to assign again.
|
|
65
|
+
* For values fixed for the element's lifetime. A rotating credential belongs
|
|
66
|
+
* in {@link getHeaders} instead — only a re-assignment updates this, so a
|
|
67
|
+
* token captured here is pinned until the host assigns again.
|
|
71
68
|
*/
|
|
72
69
|
headers: Record<string, string>;
|
|
73
70
|
/**
|
|
74
|
-
* Live header source,
|
|
75
|
-
* supply rotating credentials
|
|
71
|
+
* Live header source, called afresh immediately before every request — the
|
|
72
|
+
* way to supply rotating credentials, with nothing to re-assign or keep in
|
|
73
|
+
* sync.
|
|
76
74
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* Composes with {@link headers} rather than replacing it: the two are merged
|
|
82
|
-
* per key with `getHeaders()` winning, so a static `X-Client` and a rotating
|
|
83
|
-
* `Authorization` can be configured independently and neither silently drops
|
|
84
|
-
* the other.
|
|
75
|
+
* Composes with {@link headers} rather than replacing it: merged per key with
|
|
76
|
+
* `getHeaders()` winning, so a static `X-Client` and a rotating
|
|
77
|
+
* `Authorization` are configured independently and neither drops the other.
|
|
85
78
|
*/
|
|
86
79
|
getHeaders: (() => Record<string, string>) | null;
|
|
87
80
|
/**
|
|
@@ -95,37 +88,31 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
95
88
|
autoConfirm: boolean;
|
|
96
89
|
/**
|
|
97
90
|
* When true, the built-in `ask_user` frontend tool is offered to the agent:
|
|
98
|
-
* calling it renders an inline question card
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* change the advertised catalog until a host asks for it.
|
|
91
|
+
* calling it renders an inline question card and returns the user's answer.
|
|
92
|
+
* Off by default, like the other built-in tool groups, so the advertised
|
|
93
|
+
* catalog does not change until a host asks for it.
|
|
102
94
|
*/
|
|
103
95
|
askUser: boolean;
|
|
104
96
|
/**
|
|
105
|
-
* Optional full replacement for the `ask_user` question UI
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* resolves with the answer. Unset (default) uses the built-in
|
|
109
|
-
* {@link requestQuestion} card — style that via the `strings` override and the
|
|
110
|
-
* `question*` CSS `::part()`s. Requires {@link askUser} to be enabled.
|
|
97
|
+
* Optional full replacement for the `ask_user` question UI, resolving with
|
|
98
|
+
* the answer; the same seam as {@link approvalRenderer}, styled via `strings`
|
|
99
|
+
* and the `question*` `::part()`s when left unset. Requires {@link askUser}.
|
|
111
100
|
*/
|
|
112
101
|
askUserRenderer: QuestionRenderer | null;
|
|
113
102
|
/**
|
|
114
|
-
* Optional full replacement for the server-side-tool approval UI
|
|
115
|
-
*
|
|
116
|
-
* card
|
|
117
|
-
* `
|
|
118
|
-
*
|
|
119
|
-
* `::part()`s. The gate itself is enabled server-side; this only changes how
|
|
120
|
-
* the decision is collected.
|
|
103
|
+
* Optional full replacement for the server-side-tool approval UI: an approval
|
|
104
|
+
* interrupt invokes this instead of the built-in {@link requestApproval}
|
|
105
|
+
* card, resolving `true` to approve or `false` to deny. Style the built-in
|
|
106
|
+
* card via `strings` and the `approval*` `::part()`s instead. The gate itself
|
|
107
|
+
* is enabled server-side; this only changes how the decision is collected.
|
|
121
108
|
*/
|
|
122
109
|
approvalRenderer: ApprovalRenderer | null;
|
|
123
110
|
/**
|
|
124
|
-
* Optional per-call confirmation predicate. When set
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* static `x-destructive` flag
|
|
128
|
-
*
|
|
111
|
+
* Optional per-call confirmation predicate. When set it is authoritative,
|
|
112
|
+
* deciding from the tool name and args whether this particular call needs
|
|
113
|
+
* confirmation — so one tool can be instant for some args and confirmed for
|
|
114
|
+
* others, which a static `x-destructive` flag cannot express. When unset the
|
|
115
|
+
* `x-destructive` flag decides. `autoConfirm` short-circuits both.
|
|
129
116
|
*/
|
|
130
117
|
confirmPredicate: ((toolName: string, args: Record<string, unknown>) => boolean | Promise<boolean>) | null;
|
|
131
118
|
/**
|
|
@@ -139,11 +126,8 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
139
126
|
* Per-run context provider. Defaults to the compact page map, when a
|
|
140
127
|
* {@link getPageMap} provider is set and {@link autoInjectPageMap} is on.
|
|
141
128
|
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* the client's copy only duplicated it, on exactly the turn a file was
|
|
145
|
-
* attached. Attachments still reach the agent; they reach it through the
|
|
146
|
-
* message, which is where they were already.
|
|
129
|
+
* Attachments are deliberately not restated here: the server derives its own
|
|
130
|
+
* manifest from the refs riding the messages.
|
|
147
131
|
*/
|
|
148
132
|
getContext: () => Context[];
|
|
149
133
|
/**
|
|
@@ -169,21 +153,17 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
169
153
|
conversationStore: ClientConversationStore;
|
|
170
154
|
/**
|
|
171
155
|
* How attached files are uploaded. `null` (default) uses the built-in
|
|
172
|
-
* multipart `POST` to `data-attachments-url
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* wire (refs are transport-agnostic). When set, the 📎 affordance appears even
|
|
177
|
-
* with no `data-attachments-url`; the handler owns its own endpoint + headers.
|
|
156
|
+
* multipart `POST` to `data-attachments-url`; a custom {@link UploadHandler}
|
|
157
|
+
* swaps the transport without changing the tray, the chips, or the AG-UI
|
|
158
|
+
* wire. When set, the 📎 affordance appears even with no
|
|
159
|
+
* `data-attachments-url`, and the handler owns its own endpoint and headers.
|
|
178
160
|
*/
|
|
179
161
|
uploadHandler: UploadHandler | null;
|
|
180
162
|
/**
|
|
181
163
|
* How recorded voice clips are transcribed. `null` (default) POSTs the clip
|
|
182
|
-
* to `data-transcribe-url
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* touching the mic button. When set, the 🎤 affordance appears even with no
|
|
186
|
-
* `data-transcribe-url`.
|
|
164
|
+
* to `data-transcribe-url`; a custom {@link TranscribeHandler} swaps the
|
|
165
|
+
* transport without touching the mic button. When set, the 🎤 affordance
|
|
166
|
+
* appears even with no `data-transcribe-url`.
|
|
187
167
|
*/
|
|
188
168
|
transcribeHandler: TranscribeHandler | null;
|
|
189
169
|
/**
|
|
@@ -199,12 +179,10 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
199
179
|
*/
|
|
200
180
|
skillContext: () => Record<string, unknown>;
|
|
201
181
|
/**
|
|
202
|
-
* Friendly display labels for tool-call cards, keyed by tool name
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* only the tool-call name). Client tools should prefer `x-summary` on their
|
|
207
|
-
* schema; this map is the seam for everything else.
|
|
182
|
+
* Friendly display labels for tool-call cards, keyed by tool name. The
|
|
183
|
+
* fallback when a tool has no `x-summary` in its own schema, which chiefly
|
|
184
|
+
* means server-side tools: AG-UI streams only the tool-call name, so their
|
|
185
|
+
* schema never reaches the browser. Client tools should prefer `x-summary`.
|
|
208
186
|
*/
|
|
209
187
|
toolSummaries: Record<string, string>;
|
|
210
188
|
/**
|
|
@@ -233,21 +211,17 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
233
211
|
* when the server streams `STATE_SNAPSHOT` / `STATE_DELTA`. Assigning seeds
|
|
234
212
|
* the next run; reading returns whatever the agent last applied.
|
|
235
213
|
*
|
|
236
|
-
* Listen for {@link STATE_EVENT} to react to server-driven changes.
|
|
237
|
-
*
|
|
238
|
-
* Not to be confused with {@link registerPageState}, which exposes host
|
|
239
|
-
* state to the agent as ordinary *tools*.
|
|
214
|
+
* Listen for {@link STATE_EVENT} to react to server-driven changes. Distinct
|
|
215
|
+
* from {@link registerPageState}, which exposes host state as ordinary tools.
|
|
240
216
|
*/
|
|
241
217
|
get sharedState(): Readonly<Record<string, unknown>>;
|
|
242
218
|
set sharedState(state: Readonly<Record<string, unknown>>);
|
|
243
219
|
/** Bind a piece of host page state to `read_<name>` / `set_<name>` tools. */
|
|
244
220
|
registerPageState(binding: PageState): void;
|
|
245
221
|
/**
|
|
246
|
-
* @deprecated Renamed to {@link registerPageState}
|
|
247
|
-
* AG-UI shared-state sync
|
|
248
|
-
*
|
|
249
|
-
* page state. Behaviour is unchanged; this alias will be removed in a future
|
|
250
|
-
* major.
|
|
222
|
+
* @deprecated Renamed to {@link registerPageState} — the old name read as
|
|
223
|
+
* AG-UI shared-state sync. Behaviour is unchanged; the alias will be removed
|
|
224
|
+
* in a future major.
|
|
251
225
|
*/
|
|
252
226
|
registerStateHook(binding: PageState): void;
|
|
253
227
|
/** The AG-UI endpoint URL, read from the `endpoint` attribute. */
|
|
@@ -258,19 +232,18 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
258
232
|
* `credentials` mode (`"omit"` / `"same-origin"` / `"include"`). Mirrored to
|
|
259
233
|
* the `credentials` attribute, so markup embeds can set it without script.
|
|
260
234
|
*
|
|
261
|
-
* `null` (the default) leaves the browser's
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
* `
|
|
268
|
-
* (non-wildcard) `Access-Control-Allow-Origin` on the server.
|
|
235
|
+
* `null` (the default) leaves the browser's `same-origin` default in place,
|
|
236
|
+
* which sends no cookies at all to an endpoint on a different origin — and
|
|
237
|
+
* the request goes out anonymously rather than failing, so the symptom is a
|
|
238
|
+
* 401 from a server that looks correctly configured. A cookie-authenticated
|
|
239
|
+
* cross-origin deployment wants `"include"`, plus
|
|
240
|
+
* `Access-Control-Allow-Credentials: true` and a concrete, non-wildcard
|
|
241
|
+
* `Access-Control-Allow-Origin` on the server.
|
|
269
242
|
*
|
|
270
243
|
* Read per request, so a late assignment applies to everything after it.
|
|
271
|
-
* `"omit"` cannot be honoured by the built-in
|
|
272
|
-
*
|
|
273
|
-
*
|
|
244
|
+
* `"omit"` cannot be honoured by the built-in upload transport, an
|
|
245
|
+
* `XMLHttpRequest` with only a two-state cookie switch; every other endpoint
|
|
246
|
+
* honours all three modes.
|
|
274
247
|
*/
|
|
275
248
|
get credentials(): RequestCredentials | null;
|
|
276
249
|
set credentials(value: RequestCredentials | null);
|
|
@@ -290,24 +263,20 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
290
263
|
* the backend skill catalog and the thread's history — with the transport
|
|
291
264
|
* configuration as it stands now.
|
|
292
265
|
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
* startup requests
|
|
296
|
-
* "try again, properly authenticated" without removing and re-inserting the
|
|
297
|
-
* node.
|
|
266
|
+
* For a host that can only configure the element after the fact (a token
|
|
267
|
+
* fetched in a passive effect, an async auth handshake), this re-issues the
|
|
268
|
+
* startup requests authenticated, without removing and re-inserting the node.
|
|
298
269
|
*
|
|
299
|
-
* A reload, not a merge
|
|
300
|
-
*
|
|
301
|
-
*
|
|
270
|
+
* A reload, not a merge: the in-flight run is cancelled and the transcript is
|
|
271
|
+
* rebuilt from persisted history, so anything streamed since is dropped. Call
|
|
272
|
+
* it once, when configuration lands, not between turns.
|
|
302
273
|
*/
|
|
303
274
|
reload(): Promise<void>;
|
|
304
275
|
/**
|
|
305
|
-
* Tear down live resources when the element leaves the DOM
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
* removed `<ag-ui-chat>` leaks a streaming request, uploads, and a live
|
|
310
|
-
* `MediaRecorder`.
|
|
276
|
+
* Tear down live resources when the element leaves the DOM: cancel the
|
|
277
|
+
* in-flight run so its stream closes, abort in-flight uploads so they do not
|
|
278
|
+
* orphan server-side files, and release the mic so the browser's recording
|
|
279
|
+
* indicator clears. Without this a removed element leaks all three.
|
|
311
280
|
*/
|
|
312
281
|
disconnectedCallback(): void;
|
|
313
282
|
/**
|
|
@@ -344,12 +313,10 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
344
313
|
* Open the thread-history drawer: the imperative route to the control that
|
|
345
314
|
* renders as `::part(history-button)`.
|
|
346
315
|
*
|
|
347
|
-
* A host that hides `::part(header)`
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* {@link openCheckpoints}, {@link newChat}, {@link toggleCollapsed} and
|
|
352
|
-
* {@link toggleTheme}.
|
|
316
|
+
* A host that hides `::part(header)` for its own title bar hides the history,
|
|
317
|
+
* new-chat and collapse buttons with it. Each has a method so that chrome can
|
|
318
|
+
* be rebuilt: this one, {@link openCheckpoints}, {@link newChat},
|
|
319
|
+
* {@link toggleCollapsed} and {@link toggleTheme}.
|
|
353
320
|
*/
|
|
354
321
|
openThreads(): void;
|
|
355
322
|
/**
|
|
@@ -368,32 +335,28 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
368
335
|
/**
|
|
369
336
|
* Append a message bubble and return it.
|
|
370
337
|
*
|
|
371
|
-
* Assistant content
|
|
372
|
-
*
|
|
373
|
-
* rendering user-authored markup).
|
|
338
|
+
* Assistant content renders as sanitised markdown/HTML; user content stays
|
|
339
|
+
* literal text, which also avoids rendering user-authored markup.
|
|
374
340
|
*
|
|
375
|
-
* Assistant bubbles land in the current answer group, opening one if
|
|
376
|
-
*
|
|
377
|
-
*
|
|
341
|
+
* Assistant bubbles land in the current answer group, opening one if needed;
|
|
342
|
+
* a user bubble closes the prior group and sits directly in the list, the
|
|
343
|
+
* well wrapping only the assistant turn.
|
|
378
344
|
*/
|
|
379
345
|
appendMessage(role: MessageRole, content: string): HTMLDivElement;
|
|
380
346
|
/**
|
|
381
347
|
* Send a message as if the user had typed it — renders the user bubble,
|
|
382
348
|
* dispatches {@link SUBMIT_EVENT}, and starts the run.
|
|
383
349
|
*
|
|
384
|
-
* The programmatic half of the composer, for a host driving its own input
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
* here; Send itself now reads the composer, clears it, and calls this.
|
|
350
|
+
* The programmatic half of the composer, for a host driving its own input.
|
|
351
|
+
* Everything the built-in Send does happens here; Send reads the composer,
|
|
352
|
+
* clears it, and calls this.
|
|
388
353
|
*
|
|
389
|
-
* `attachments` are durable {@link AttachmentRef}s —
|
|
390
|
-
*
|
|
391
|
-
* {@link ATTACHMENT_EVENT} reports. Pass them to attach files to the message.
|
|
354
|
+
* `attachments` are durable {@link AttachmentRef}s — what {@link attachFile}
|
|
355
|
+
* resolves to and what {@link ATTACHMENT_EVENT} reports.
|
|
392
356
|
*
|
|
393
|
-
* No-ops while a run is in flight
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
* composer stays in charge of its own state.
|
|
357
|
+
* No-ops on an empty message, and while a run is in flight, since a second
|
|
358
|
+
* concurrent run would orphan the first. Unlike the built-in Send it does not
|
|
359
|
+
* consult the tray: what you pass is what is sent.
|
|
397
360
|
*/
|
|
398
361
|
sendMessage(content: string, attachments?: readonly AttachmentRef[]): Promise<void>;
|
|
399
362
|
/**
|
|
@@ -401,11 +364,11 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
401
364
|
* picker and drag-and-drop do — validation, progress chip, and all.
|
|
402
365
|
*
|
|
403
366
|
* Returns `false` when uploads are not configured (no `data-attachments-url`
|
|
404
|
-
* and no {@link uploadHandler})
|
|
405
|
-
*
|
|
367
|
+
* and no {@link uploadHandler}) — the only signal a host gets, since the tray
|
|
368
|
+
* does not exist to report anything then.
|
|
406
369
|
*
|
|
407
370
|
* Uploading is asynchronous: watch {@link ATTACHMENT_EVENT} for the resulting
|
|
408
|
-
* {@link AttachmentRef}
|
|
371
|
+
* {@link AttachmentRef} and pass it to {@link sendMessage} once `pending`
|
|
409
372
|
* reaches zero.
|
|
410
373
|
*/
|
|
411
374
|
attachFile(file: File): boolean;
|
|
@@ -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,EAAsB,IAAI,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EASL,YAAY,EAUb,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,kCAAkC,CAAC;AAGvF,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAA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