@artooi/ag-ui-web-component 0.1.0 → 0.2.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.
Files changed (109) hide show
  1. package/CHANGELOG.md +102 -2
  2. package/README.md +235 -47
  3. package/dist/ag-ui-web-component.bundle.js +451 -46
  4. package/dist/ag-ui-web-component.bundle.js.map +4 -4
  5. package/dist/constants.d.ts +34 -0
  6. package/dist/constants.d.ts.map +1 -1
  7. package/dist/{ag_ui_chat.d.ts → core/ag_ui_chat.d.ts} +63 -6
  8. package/dist/core/ag_ui_chat.d.ts.map +1 -0
  9. package/dist/core/agui_client.d.ts.map +1 -0
  10. package/dist/core/conversation_store.d.ts.map +1 -0
  11. package/dist/core/create_http_agent.d.ts.map +1 -0
  12. package/dist/core/define_ag_ui_chat.d.ts.map +1 -0
  13. package/dist/dom/animations.d.ts +71 -0
  14. package/dist/dom/animations.d.ts.map +1 -0
  15. package/dist/{dom_driver.d.ts → dom/dom_driver.d.ts} +7 -1
  16. package/dist/dom/dom_driver.d.ts.map +1 -0
  17. package/dist/dom/native_setter.d.ts +5 -0
  18. package/dist/dom/native_setter.d.ts.map +1 -0
  19. package/dist/index.d.ts +19 -16
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +3886 -388
  22. package/dist/index.js.map +4 -4
  23. package/dist/skills/fill_template.d.ts +17 -0
  24. package/dist/skills/fill_template.d.ts.map +1 -0
  25. package/dist/skills/parse_skills.d.ts +8 -0
  26. package/dist/skills/parse_skills.d.ts.map +1 -0
  27. package/dist/skills/skill.d.ts +24 -0
  28. package/dist/skills/skill.d.ts.map +1 -0
  29. package/dist/{client_tool_registry.d.ts → tools/client_tool_registry.d.ts} +6 -1
  30. package/dist/tools/client_tool_registry.d.ts.map +1 -0
  31. package/dist/tools/is_destructive.d.ts.map +1 -0
  32. package/dist/tools/is_navigates.d.ts.map +1 -0
  33. package/dist/tools/page_map.d.ts.map +1 -0
  34. package/dist/tools/route_map.d.ts +40 -0
  35. package/dist/tools/route_map.d.ts.map +1 -0
  36. package/dist/tools/state_hook.d.ts.map +1 -0
  37. package/dist/ui/confirmation_card.d.ts +22 -0
  38. package/dist/ui/confirmation_card.d.ts.map +1 -0
  39. package/dist/ui/render_markdown.d.ts +13 -0
  40. package/dist/ui/render_markdown.d.ts.map +1 -0
  41. package/dist/ui/reveal_words.d.ts +8 -0
  42. package/dist/ui/reveal_words.d.ts.map +1 -0
  43. package/dist/ui/skills_menu.d.ts +35 -0
  44. package/dist/ui/skills_menu.d.ts.map +1 -0
  45. package/dist/ui/styles.d.ts +2 -0
  46. package/dist/ui/styles.d.ts.map +1 -0
  47. package/dist/ui/tool_call_card.d.ts +35 -0
  48. package/dist/ui/tool_call_card.d.ts.map +1 -0
  49. package/package.json +5 -3
  50. package/src/constants.ts +38 -0
  51. package/src/core/ag_ui_chat.ts +786 -0
  52. package/src/{agui_client.ts → core/agui_client.ts} +1 -1
  53. package/src/{define_ag_ui_chat.ts → core/define_ag_ui_chat.ts} +1 -1
  54. package/src/dom/animations.ts +201 -0
  55. package/src/{dom_driver.ts → dom/dom_driver.ts} +35 -2
  56. package/src/dom/native_setter.ts +42 -0
  57. package/src/index.ts +61 -32
  58. package/src/skills/fill_template.ts +32 -0
  59. package/src/skills/parse_skills.ts +26 -0
  60. package/src/skills/skill.ts +23 -0
  61. package/src/{client_tool_registry.ts → tools/client_tool_registry.ts} +6 -4
  62. package/src/{is_destructive.ts → tools/is_destructive.ts} +1 -1
  63. package/src/{is_navigates.ts → tools/is_navigates.ts} +1 -1
  64. package/src/tools/route_map.ts +140 -0
  65. package/src/{state_hook.ts → tools/state_hook.ts} +1 -1
  66. package/src/ui/confirmation_card.ts +71 -0
  67. package/src/ui/render_markdown.ts +68 -0
  68. package/src/ui/reveal_words.ts +41 -0
  69. package/src/ui/skills_menu.ts +171 -0
  70. package/src/ui/styles.ts +631 -0
  71. package/src/{tool_call_card.ts → ui/tool_call_card.ts} +50 -19
  72. package/src/version.ts +1 -1
  73. package/dist/ag_ui_chat.d.ts.map +0 -1
  74. package/dist/agui_client.d.ts.map +0 -1
  75. package/dist/animations.d.ts +0 -33
  76. package/dist/animations.d.ts.map +0 -1
  77. package/dist/client_tool_registry.d.ts.map +0 -1
  78. package/dist/confirmation_modal.d.ts +0 -14
  79. package/dist/confirmation_modal.d.ts.map +0 -1
  80. package/dist/conversation_store.d.ts.map +0 -1
  81. package/dist/create_http_agent.d.ts.map +0 -1
  82. package/dist/define_ag_ui_chat.d.ts.map +0 -1
  83. package/dist/dom_driver.d.ts.map +0 -1
  84. package/dist/is_destructive.d.ts.map +0 -1
  85. package/dist/is_navigates.d.ts.map +0 -1
  86. package/dist/page_map.d.ts.map +0 -1
  87. package/dist/route_map.d.ts +0 -27
  88. package/dist/route_map.d.ts.map +0 -1
  89. package/dist/state_hook.d.ts.map +0 -1
  90. package/dist/styles.d.ts +0 -2
  91. package/dist/styles.d.ts.map +0 -1
  92. package/dist/tool_call_card.d.ts +0 -29
  93. package/dist/tool_call_card.d.ts.map +0 -1
  94. package/src/ag_ui_chat.ts +0 -411
  95. package/src/animations.ts +0 -86
  96. package/src/confirmation_modal.ts +0 -69
  97. package/src/route_map.ts +0 -83
  98. package/src/styles.ts +0 -296
  99. /package/dist/{agui_client.d.ts → core/agui_client.d.ts} +0 -0
  100. /package/dist/{conversation_store.d.ts → core/conversation_store.d.ts} +0 -0
  101. /package/dist/{create_http_agent.d.ts → core/create_http_agent.d.ts} +0 -0
  102. /package/dist/{define_ag_ui_chat.d.ts → core/define_ag_ui_chat.d.ts} +0 -0
  103. /package/dist/{is_destructive.d.ts → tools/is_destructive.d.ts} +0 -0
  104. /package/dist/{is_navigates.d.ts → tools/is_navigates.d.ts} +0 -0
  105. /package/dist/{page_map.d.ts → tools/page_map.d.ts} +0 -0
  106. /package/dist/{state_hook.d.ts → tools/state_hook.d.ts} +0 -0
  107. /package/src/{conversation_store.ts → core/conversation_store.ts} +0 -0
  108. /package/src/{create_http_agent.ts → core/create_http_agent.ts} +0 -0
  109. /package/src/{page_map.ts → tools/page_map.ts} +0 -0
@@ -6,6 +6,13 @@ export declare const ELEMENT_TAG = "ag-ui-chat";
6
6
  * AG-UI client; for now it is the public seam for host integration.
7
7
  */
8
8
  export declare const SUBMIT_EVENT = "ag-ui-submit";
9
+ /**
10
+ * Event dispatched by `<ag-ui-chat>` when its collapsed state changes (via the
11
+ * built-in toggle or {@link setCollapsed}). `detail` carries
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.
14
+ */
15
+ export declare const TOGGLE_EVENT = "ag-ui-toggle";
9
16
  /** Roles a chat message can take. */
10
17
  export declare const MESSAGE_ROLE: {
11
18
  readonly USER: "user";
@@ -18,6 +25,19 @@ export declare const MESSAGE_ROLE: {
18
25
  * confirmation modal (unless `autoConfirm` is set).
19
26
  */
20
27
  export declare const X_DESTRUCTIVE_KEY = "x-destructive";
28
+ /**
29
+ * JSON-Schema extension key carrying a human-readable confirmation prompt for a
30
+ * destructive tool (e.g. `"Activate this project?"`). Mirrors the `django-ag-ui`
31
+ * server side. When present, the inline confirmation card shows this instead of
32
+ * the generic `Run "<tool>"?`.
33
+ */
34
+ export declare const X_CONFIRM_KEY = "x-confirm";
35
+ /**
36
+ * JSON-Schema extension key carrying a short human-readable label for a tool
37
+ * (e.g. `"Query orders"` for `query_model`). Mirrors the `django-ag-ui` server
38
+ * side; the tool-call card shows it instead of the raw tool name when present.
39
+ */
40
+ export declare const X_SUMMARY_KEY = "x-summary";
21
41
  /**
22
42
  * JSON-Schema extension key marking a tool as navigating — its handler triggers
23
43
  * a full page reload (an MPA navigation). When a tool's `parameters` carries
@@ -37,4 +57,18 @@ export declare const TOOL_CALL_STATUS: {
37
57
  readonly ERROR: "error";
38
58
  readonly DECLINED: "declined";
39
59
  };
60
+ /**
61
+ * How much detail a tool-call card shows. Set via the `data-tool-display`
62
+ * attribute on `<ag-ui-chat>`; defaults to `full` (back-compatible).
63
+ *
64
+ * - `minimal` — just the tool name + status pill. No args, no result body.
65
+ * - `compact` — name + status, with args *and* result tucked behind a single
66
+ * collapsed "Details" toggle. The light default for dense UIs.
67
+ * - `full` — args shown inline, result behind its own toggle (the original).
68
+ */
69
+ export declare const TOOL_DISPLAY: {
70
+ readonly MINIMAL: "minimal";
71
+ readonly COMPACT: "compact";
72
+ readonly FULL: "full";
73
+ };
40
74
  //# sourceMappingURL=constants.d.ts.map
@@ -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;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C,qCAAqC;AACrC,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,yEAAyE;AACzE,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,wEAAwE;AACxE,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C,qCAAqC;AACrC,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,yEAAyE;AACzE,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC"}
@@ -1,17 +1,23 @@
1
1
  import type { Context, Tool } from "@ag-ui/core";
2
- import { type ClientTool } from "./client_tool_registry.js";
3
- import { MESSAGE_ROLE } from "./constants.js";
2
+ import { MESSAGE_ROLE } from "../constants.js";
3
+ import type { Skill } from "../skills/skill.js";
4
+ import { type ClientTool } from "../tools/client_tool_registry.js";
5
+ import { type PageMap } from "../tools/page_map.js";
6
+ import { type RouteMap } from "../tools/route_map.js";
7
+ import { type StateHook } from "../tools/state_hook.js";
8
+ import { type ToolDisplayMode } from "../ui/tool_call_card.js";
4
9
  import { type ClientConversationStore, type NavigationCheckpoint } from "./conversation_store.js";
5
10
  import { type AgentFactory } from "./create_http_agent.js";
6
- import { type PageMap } from "./page_map.js";
7
- import { type RouteMap } from "./route_map.js";
8
- import { type StateHook } from "./state_hook.js";
9
11
  /** The role a rendered chat message takes. */
10
12
  export type MessageRole = (typeof MESSAGE_ROLE)[keyof typeof MESSAGE_ROLE];
11
13
  /** `detail` shape of the {@link SUBMIT_EVENT} CustomEvent. */
12
14
  export interface SubmitDetail {
13
15
  readonly content: string;
14
16
  }
17
+ /** `detail` shape of the {@link TOGGLE_EVENT} CustomEvent. */
18
+ export interface ToggleDetail {
19
+ readonly collapsed: boolean;
20
+ }
15
21
  /**
16
22
  * `<ag-ui-chat>` — a framework-free chat sidebar Web Component over AG-UI.
17
23
  *
@@ -32,6 +38,14 @@ export declare class AgUiChat extends HTMLElement {
32
38
  headers: Record<string, string>;
33
39
  /** When true, destructive tools execute without a confirmation modal. */
34
40
  autoConfirm: boolean;
41
+ /**
42
+ * Optional per-call confirmation predicate. When set, it is authoritative:
43
+ * given a tool name + args it decides whether *this* call needs confirmation
44
+ * (so one tool can be instant for some args and confirmed for others — what a
45
+ * static `x-destructive` flag can't express). When unset, the `x-destructive`
46
+ * schema flag is used. `autoConfirm` short-circuits both.
47
+ */
48
+ confirmPredicate: ((toolName: string, args: Record<string, unknown>) => boolean | Promise<boolean>) | null;
35
49
  /**
36
50
  * Per-run frontend tool catalog provider. Defaults to the built-in
37
51
  * `route.*` tools (when a {@link routeMap} is set) plus the tools registered
@@ -71,15 +85,58 @@ export declare class AgUiChat extends HTMLElement {
71
85
  * override to include a page snapshot or post-reload validation errors.
72
86
  */
73
87
  navigationResult: (checkpoint: NavigationCheckpoint) => unknown;
88
+ /**
89
+ * Named values used to fill a skill prompt's `{placeholder}`s before send
90
+ * (e.g. `{ model: "Order", selected_ids: "1,2" }`). A host (the admin) sets
91
+ * this from the current page; a missing placeholder blocks the send.
92
+ */
93
+ skillContext: () => Record<string, unknown>;
74
94
  constructor();
95
+ /** Attributes whose late changes must reflect in already-rendered chrome. */
96
+ static get observedAttributes(): string[];
97
+ attributeChangedCallback(_name: string, _previous: string | null, value: string | null): void;
75
98
  /** Declare a frontend tool the agent may call. */
76
99
  registerTool(tool: ClientTool): void;
77
100
  /** Bind a piece of host state to `read_<name>` / `set_<name>` tools. */
78
101
  registerStateHook(hook: StateHook): void;
79
102
  /** The AG-UI endpoint URL, read from the `endpoint` attribute. */
80
103
  get endpoint(): string;
104
+ set endpoint(value: string);
105
+ /**
106
+ * How much detail tool-call cards show, from the `data-tool-display`
107
+ * attribute (`minimal` / `compact` / `full`). Defaults to `full`.
108
+ */
109
+ get toolDisplay(): ToolDisplayMode;
110
+ set toolDisplay(value: ToolDisplayMode);
81
111
  connectedCallback(): void;
82
- /** Append a message bubble and return it. */
112
+ /**
113
+ * Replace the host-supplied (client) skill catalog. Merged after the embedded
114
+ * and fetched skills (so a client skill overrides a same-named server one).
115
+ */
116
+ setSkills(skills: readonly Skill[]): void;
117
+ /** Whether the widget is collapsed (reflected as the `collapsed` attribute). */
118
+ get collapsed(): boolean;
119
+ set collapsed(value: boolean);
120
+ /**
121
+ * Set the collapsed state: reflect the `collapsed` attribute, persist it
122
+ * per-tab, and emit a {@link TOGGLE_EVENT} so a host can mirror the state in
123
+ * its own chrome.
124
+ */
125
+ setCollapsed(collapsed: boolean): void;
126
+ /** Flip the collapsed state. Bound to the built-in header toggle. */
127
+ toggleCollapsed(): void;
128
+ /**
129
+ * Start a fresh conversation: forget the persisted history, drop the
130
+ * in-memory run state, clear the transcript, and mint a new thread id.
131
+ */
132
+ newChat(): void;
133
+ /**
134
+ * Append a message bubble and return it.
135
+ *
136
+ * Assistant content is rendered as sanitised markdown/HTML; user content
137
+ * stays literal text (no need to parse what the user typed, and it avoids
138
+ * rendering user-authored markup).
139
+ */
83
140
  appendMessage(role: MessageRole, content: string): HTMLDivElement;
84
141
  }
85
142
  //# sourceMappingURL=ag_ui_chat.d.ts.map
@@ -0,0 +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,EAAW,IAAI,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EACL,YAAY,EAOb,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,kCAAkC,CAAC;AAGvF,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAM9E,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAO7E,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAE1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,YAAY,EAAmB,M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K,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define_ag_ui_chat.d.ts","sourceRoot":"","sources":["../../src/core/define_ag_ui_chat.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAIrC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Visible-action animation primitives.
3
+ *
4
+ * These run against the **host page** DOM (not the element's shadow root) so a
5
+ * user watches the agent type, highlight, and click at human-readable speed.
6
+ * Each is configurable; pass small/zero durations in tests (or use fake timers).
7
+ */
8
+ /** An element whose `value` can be typed into. */
9
+ export type TextLikeElement = HTMLInputElement | HTMLTextAreaElement;
10
+ export interface TypeOptions {
11
+ /** Milliseconds between characters. Default 35. */
12
+ charDelayMs?: number;
13
+ }
14
+ /**
15
+ * Clear ``el`` and type ``value`` one character at a time, firing ``input``
16
+ * events as a real user would, then a final ``change`` event.
17
+ */
18
+ export declare function typeInto(el: TextLikeElement, value: string, options?: TypeOptions): Promise<void>;
19
+ export interface HighlightClickOptions {
20
+ /** Milliseconds to hold the highlight before clicking. Default 280. */
21
+ highlightMs?: number;
22
+ }
23
+ /** Outline ``el``, pause so the user sees it, then click and restore. */
24
+ export declare function highlightThenClick(el: HTMLElement, options?: HighlightClickOptions): Promise<void>;
25
+ /** Scroll ``el`` to the vertical centre of the viewport. */
26
+ export declare function scrollIntoCenterView(el: HTMLElement): void;
27
+ export interface FlashOptions {
28
+ /** Milliseconds to hold the focus flash. Default 200. */
29
+ flashMs?: number;
30
+ }
31
+ /** Focus ``el`` and briefly flash a ring around it. */
32
+ export declare function focusWithFlash(el: HTMLElement, options?: FlashOptions): Promise<void>;
33
+ /**
34
+ * Whether the user has asked the OS/browser to minimise motion.
35
+ *
36
+ * The richer action animations below check this and skip their hold delays so
37
+ * the agent's edits still happen (events fire, values set) but without the
38
+ * visible pause. The character-typing / highlight primitives above predate this
39
+ * and keep their explicit-duration contract.
40
+ */
41
+ export declare function prefersReducedMotion(): boolean;
42
+ export interface PressOptions {
43
+ /** Milliseconds to hold the pressed state before clicking. Default 140. */
44
+ pressMs?: number;
45
+ }
46
+ /**
47
+ * Show a brief "pressed" affordance on a button/control — a slight scale-down
48
+ * plus accent ring — then click it and restore. Reads as an actual press, not
49
+ * just an outline (cf. {@link highlightThenClick}).
50
+ */
51
+ export declare function pressThenClick(el: HTMLElement, options?: PressOptions): Promise<void>;
52
+ export interface SelectOptions {
53
+ /** Milliseconds to hold the highlight before committing. Default 220. */
54
+ highlightMs?: number;
55
+ }
56
+ /**
57
+ * Outline a `<select>`, pause so the user sees the pick, then set it to the
58
+ * option matching ``value`` (by value or visible text) and fire `input` +
59
+ * `change`. Throws when no option matches.
60
+ */
61
+ export declare function selectOption(el: HTMLSelectElement, value: string, options?: SelectOptions): Promise<void>;
62
+ export interface ToggleOptions {
63
+ /** Milliseconds to hold the flash. Default 200. */
64
+ flashMs?: number;
65
+ }
66
+ /**
67
+ * Flash a ring around a checkbox/radio, set its ``checked`` state, and fire
68
+ * `input` + `change` so frameworks observe the flip.
69
+ */
70
+ export declare function toggleControl(el: HTMLInputElement, checked: boolean, options?: ToggleOptions): Promise<void>;
71
+ //# sourceMappingURL=animations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../src/dom/animations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yEAAyE;AACzE,wBAAsB,kBAAkB,CACtC,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,4DAA4D;AAC5D,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAE1D;AAED,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,uDAAuD;AACvD,wBAAsB,cAAc,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAO/F;AAID;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAUD,MAAM,WAAW,YAAY;IAC3B,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,aAAa;IAC5B,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,aAAa;IAC5B,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"}
@@ -1,4 +1,4 @@
1
- import { type HighlightClickOptions, type TextLikeElement, type TypeOptions } from "./animations.js";
1
+ import { type HighlightClickOptions, type PressOptions, type SelectOptions, type TextLikeElement, type ToggleOptions, type TypeOptions } from "./animations.js";
2
2
  /**
3
3
  * Generic, framework-free DOM-driving primitives.
4
4
  *
@@ -15,6 +15,12 @@ interface FlashOptionsLike {
15
15
  export declare function fillField(el: TextLikeElement, value: string, options?: FillFieldOptions): Promise<void>;
16
16
  /** Scroll to, highlight, and click an element. */
17
17
  export declare function clickElement(el: HTMLElement, options?: HighlightClickOptions): Promise<void>;
18
+ /** Scroll to a button/control and click it with a visible "press" animation. */
19
+ export declare function pressButton(el: HTMLElement, options?: PressOptions): Promise<void>;
20
+ /** Scroll to a `<select>`, highlight it, and pick the matching option (animated). */
21
+ export declare function selectControl(el: HTMLSelectElement, value: string, options?: SelectOptions): Promise<void>;
22
+ /** Scroll to a checkbox/radio, flash it, and set its checked state (animated). */
23
+ export declare function toggleCheckbox(el: HTMLInputElement, checked: boolean, options?: ToggleOptions): Promise<void>;
18
24
  /**
19
25
  * Set a `<select>` or checkbox value without typing animation, dispatching the
20
26
  * ``input`` and ``change`` events frameworks listen for.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom_driver.d.ts","sourceRoot":"","sources":["../../src/dom/dom_driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAE1B,KAAK,YAAY,EAEjB,KAAK,aAAa,EAGlB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAGzB;;;;;;GAMG;AAEH,MAAM,WAAW,gBAAiB,SAAQ,WAAW,EAAE,gBAAgB;CAAG;AAE1E,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,6EAA6E;AAC7E,wBAAsB,SAAS,CAC7B,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAIf;AAED,kDAAkD;AAClD,wBAAsB,YAAY,CAChC,EAAE,EAAE,WAAW,EACf,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,gFAAgF;AAChF,wBAAsB,WAAW,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5F;AAED,qFAAqF;AACrF,wBAAsB,aAAa,CACjC,EAAE,EAAE,iBAAiB,EACrB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,kFAAkF;AAClF,wBAAsB,cAAc,CAClC,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,EAAE,EAAE,gBAAgB,GAAG,iBAAiB,EACxC,KAAK,EAAE,MAAM,GAAG,OAAO,GACtB,IAAI,CAQN"}
@@ -0,0 +1,5 @@
1
+ /** Set ``el.value`` via the element's native prototype setter. */
2
+ export declare function setNativeValue(el: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, value: string): void;
3
+ /** Set ``el.checked`` via the native prototype setter. */
4
+ export declare function setNativeChecked(el: HTMLInputElement, checked: boolean): void;
5
+ //# sourceMappingURL=native_setter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native_setter.d.ts","sourceRoot":"","sources":["../../src/dom/native_setter.ts"],"names":[],"mappings":"AAwBA,kEAAkE;AAClE,wBAAgB,cAAc,CAC5B,EAAE,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,EAC9D,KAAK,EAAE,MAAM,GACZ,IAAI,CAQN;AAED,0DAA0D;AAC1D,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAE7E"}
package/dist/index.d.ts CHANGED
@@ -1,18 +1,21 @@
1
- export { AgUiChat, type MessageRole, type SubmitDetail } from "./ag_ui_chat.js";
2
- export { AgUiClient, type AgUiClientConfig, type AgUiClientHandlers, type AgUiRunInputs, type AgUiToolCall, type ExecuteTool, type ToolExecution, } from "./agui_client.js";
3
- export { type FlashOptions, focusWithFlash, type HighlightClickOptions, highlightThenClick, scrollIntoCenterView, type TextLikeElement, type TypeOptions, typeInto, } from "./animations.js";
4
- export { type ClientTool, ClientToolRegistry } from "./client_tool_registry.js";
5
- export { type ConfirmationRequest, requestConfirmation } from "./confirmation_modal.js";
6
- export { ELEMENT_TAG, MAX_TOOL_ROUNDS, MESSAGE_ROLE, SUBMIT_EVENT, TOOL_CALL_STATUS, X_DESTRUCTIVE_KEY, X_NAVIGATES_KEY, } from "./constants.js";
7
- export { type ClientConversationStore, type NavigationCheckpoint, SessionStorageStore, } from "./conversation_store.js";
8
- export { type AgentFactory, createHttpAgent, type HttpAgentOptions, } from "./create_http_agent.js";
9
- export { defineAgUiChat } from "./define_ag_ui_chat.js";
10
- export { clickElement, type FillFieldOptions, fillField, setControlValue, } from "./dom_driver.js";
11
- export { isDestructive } from "./is_destructive.js";
12
- export { isNavigates } from "./is_navigates.js";
13
- export { createPageMapContext, type PageMap } from "./page_map.js";
14
- export { createRouteTools, type Route, type RouteMap } from "./route_map.js";
15
- export { createStateHookTools, type StateHook } from "./state_hook.js";
16
- export { type SettledStatus, ToolCallCard, type ToolCallStatus, } from "./tool_call_card.js";
1
+ export { ELEMENT_TAG, MAX_TOOL_ROUNDS, MESSAGE_ROLE, SUBMIT_EVENT, TOGGLE_EVENT, TOOL_CALL_STATUS, TOOL_DISPLAY, X_CONFIRM_KEY, X_DESTRUCTIVE_KEY, X_NAVIGATES_KEY, X_SUMMARY_KEY, } from "./constants.js";
2
+ export { AgUiChat, type MessageRole, type SubmitDetail, type ToggleDetail, } from "./core/ag_ui_chat.js";
3
+ export { AgUiClient, type AgUiClientConfig, type AgUiClientHandlers, type AgUiRunInputs, type AgUiToolCall, type ExecuteTool, type ToolExecution, } from "./core/agui_client.js";
4
+ export { type ClientConversationStore, type NavigationCheckpoint, SessionStorageStore, } from "./core/conversation_store.js";
5
+ export { type AgentFactory, createHttpAgent, type HttpAgentOptions, } from "./core/create_http_agent.js";
6
+ export { defineAgUiChat } from "./core/define_ag_ui_chat.js";
7
+ export { type FlashOptions, focusWithFlash, type HighlightClickOptions, highlightThenClick, type PressOptions, prefersReducedMotion, pressThenClick, type SelectOptions, scrollIntoCenterView, selectOption, type TextLikeElement, type ToggleOptions, type TypeOptions, toggleControl, typeInto, } from "./dom/animations.js";
8
+ export { clickElement, type FillFieldOptions, fillField, pressButton, selectControl, setControlValue, toggleCheckbox, } from "./dom/dom_driver.js";
9
+ export { setNativeChecked, setNativeValue } from "./dom/native_setter.js";
10
+ export type { Skill } from "./skills/skill.js";
11
+ export { type ClientTool, ClientToolRegistry } from "./tools/client_tool_registry.js";
12
+ export { isDestructive } from "./tools/is_destructive.js";
13
+ export { isNavigates } from "./tools/is_navigates.js";
14
+ export { createPageMapContext, type PageMap } from "./tools/page_map.js";
15
+ export { createRouteTools, type Route, type RouteMap, type RouteWithParams, } from "./tools/route_map.js";
16
+ export { createStateHookTools, type StateHook } from "./tools/state_hook.js";
17
+ export { type ConfirmationRequest, requestConfirmation } from "./ui/confirmation_card.js";
18
+ export { renderMarkdown } from "./ui/render_markdown.js";
19
+ export { type SettledStatus, ToolCallCard, type ToolCallStatus, type ToolDisplayMode, } from "./ui/tool_call_card.js";
17
20
  export { VERSION } from "./version.js";
18
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EACL,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB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