@artooi/ag-ui-web-component 0.44.0 → 0.46.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 (187) hide show
  1. package/CHANGELOG.md +182 -1
  2. package/README.md +245 -32
  3. package/dist/ag-ui-web-component.bundle.js +3696 -2798
  4. package/dist/ag-ui-web-component.bundle.js.map +4 -4
  5. package/dist/constants.d.ts +4 -1
  6. package/dist/constants.d.ts.map +1 -1
  7. package/dist/core/ag_ui_chat.d.ts +28 -8
  8. package/dist/core/ag_ui_chat.d.ts.map +1 -1
  9. package/dist/core/read_flag.d.ts +11 -0
  10. package/dist/core/read_flag.d.ts.map +1 -0
  11. package/dist/core/read_json_attribute.d.ts +15 -0
  12. package/dist/core/read_json_attribute.d.ts.map +1 -0
  13. package/dist/index.js +5084 -3481
  14. package/dist/index.js.map +4 -4
  15. package/dist/tools/tool_catalog.d.ts +5 -0
  16. package/dist/tools/tool_catalog.d.ts.map +1 -1
  17. package/dist/tools/tool_dispatch.d.ts.map +1 -1
  18. package/dist/ui/charts/chart_styles.d.ts +2 -0
  19. package/dist/ui/charts/chart_styles.d.ts.map +1 -0
  20. package/dist/ui/composer/attachment_styles.d.ts +2 -0
  21. package/dist/ui/composer/attachment_styles.d.ts.map +1 -0
  22. package/dist/ui/composer/build_composer.d.ts +30 -0
  23. package/dist/ui/composer/build_composer.d.ts.map +1 -0
  24. package/dist/ui/composer/composer_styles.d.ts +2 -0
  25. package/dist/ui/composer/composer_styles.d.ts.map +1 -0
  26. package/dist/ui/composer/skill_styles.d.ts +2 -0
  27. package/dist/ui/composer/skill_styles.d.ts.map +1 -0
  28. package/dist/ui/history/history_styles.d.ts +2 -0
  29. package/dist/ui/history/history_styles.d.ts.map +1 -0
  30. package/dist/ui/interrupts/approval_styles.d.ts +2 -0
  31. package/dist/ui/interrupts/approval_styles.d.ts.map +1 -0
  32. package/dist/ui/interrupts/confirmation_styles.d.ts +2 -0
  33. package/dist/ui/interrupts/confirmation_styles.d.ts.map +1 -0
  34. package/dist/ui/interrupts/question_styles.d.ts +2 -0
  35. package/dist/ui/interrupts/question_styles.d.ts.map +1 -0
  36. package/dist/ui/placement/collapse_styles.d.ts +2 -0
  37. package/dist/ui/placement/collapse_styles.d.ts.map +1 -0
  38. package/dist/ui/placement/embedded_styles.d.ts +2 -0
  39. package/dist/ui/placement/embedded_styles.d.ts.map +1 -0
  40. package/dist/ui/placement/launcher_styles.d.ts +2 -0
  41. package/dist/ui/placement/launcher_styles.d.ts.map +1 -0
  42. package/dist/ui/placement/page_styles.d.ts +2 -0
  43. package/dist/ui/placement/page_styles.d.ts.map +1 -0
  44. package/dist/ui/placement/panel_placement.d.ts.map +1 -1
  45. package/dist/ui/placement/preset_styles.d.ts +2 -0
  46. package/dist/ui/placement/preset_styles.d.ts.map +1 -0
  47. package/dist/ui/placement/resize_styles.d.ts +2 -0
  48. package/dist/ui/placement/resize_styles.d.ts.map +1 -0
  49. package/dist/ui/placement/sidebar_styles.d.ts +2 -0
  50. package/dist/ui/placement/sidebar_styles.d.ts.map +1 -0
  51. package/dist/ui/placement/small_viewport_styles.d.ts +2 -0
  52. package/dist/ui/placement/small_viewport_styles.d.ts.map +1 -0
  53. package/dist/ui/placement/surface_for.d.ts +74 -0
  54. package/dist/ui/placement/surface_for.d.ts.map +1 -0
  55. package/dist/ui/progress/run_notice_styles.d.ts +2 -0
  56. package/dist/ui/progress/run_notice_styles.d.ts.map +1 -0
  57. package/dist/ui/progress/thoughts_styles.d.ts +2 -0
  58. package/dist/ui/progress/thoughts_styles.d.ts.map +1 -0
  59. package/dist/ui/progress/tool_call_card.d.ts +8 -0
  60. package/dist/ui/progress/tool_call_card.d.ts.map +1 -1
  61. package/dist/ui/progress/tool_group_styles.d.ts +2 -0
  62. package/dist/ui/progress/tool_group_styles.d.ts.map +1 -0
  63. package/dist/ui/progress/tool_step_group.d.ts +47 -0
  64. package/dist/ui/progress/tool_step_group.d.ts.map +1 -0
  65. package/dist/ui/progress/tool_step_styles.d.ts +2 -0
  66. package/dist/ui/progress/tool_step_styles.d.ts.map +1 -0
  67. package/dist/ui/shell/adopt_styles.d.ts +9 -4
  68. package/dist/ui/shell/adopt_styles.d.ts.map +1 -1
  69. package/dist/ui/shell/build_header.d.ts +40 -0
  70. package/dist/ui/shell/build_header.d.ts.map +1 -0
  71. package/dist/ui/shell/build_launcher.d.ts +20 -0
  72. package/dist/ui/shell/build_launcher.d.ts.map +1 -0
  73. package/dist/ui/shell/frame_styles.d.ts +2 -0
  74. package/dist/ui/shell/frame_styles.d.ts.map +1 -0
  75. package/dist/ui/shell/theme_styles.d.ts +2 -0
  76. package/dist/ui/shell/theme_styles.d.ts.map +1 -0
  77. package/dist/ui/shell/token_styles.d.ts +2 -0
  78. package/dist/ui/shell/token_styles.d.ts.map +1 -0
  79. package/dist/ui/styles.d.ts +1 -1
  80. package/dist/ui/styles.d.ts.map +1 -1
  81. package/dist/ui/themes/classic_styles.d.ts +2 -0
  82. package/dist/ui/themes/classic_styles.d.ts.map +1 -0
  83. package/dist/ui/themes/classic_tokens.d.ts +2 -0
  84. package/dist/ui/themes/classic_tokens.d.ts.map +1 -0
  85. package/dist/ui/themes/code_tokens.d.ts +2 -0
  86. package/dist/ui/themes/code_tokens.d.ts.map +1 -0
  87. package/dist/ui/themes/ledger_styles.d.ts +2 -0
  88. package/dist/ui/themes/ledger_styles.d.ts.map +1 -0
  89. package/dist/ui/themes/ledger_tokens.d.ts +2 -0
  90. package/dist/ui/themes/ledger_tokens.d.ts.map +1 -0
  91. package/dist/ui/themes/modern_styles.d.ts +2 -0
  92. package/dist/ui/themes/modern_styles.d.ts.map +1 -0
  93. package/dist/ui/themes/quiet_styles.d.ts +2 -0
  94. package/dist/ui/themes/quiet_styles.d.ts.map +1 -0
  95. package/dist/ui/themes/scheme_styles.d.ts +2 -0
  96. package/dist/ui/themes/scheme_styles.d.ts.map +1 -0
  97. package/dist/ui/themes/soft_styles.d.ts +2 -0
  98. package/dist/ui/themes/soft_styles.d.ts.map +1 -0
  99. package/dist/ui/themes/soft_tokens.d.ts +2 -0
  100. package/dist/ui/themes/soft_tokens.d.ts.map +1 -0
  101. package/dist/ui/themes/theme_hosts.d.ts +15 -0
  102. package/dist/ui/themes/theme_hosts.d.ts.map +1 -0
  103. package/dist/ui/transcript/attachment_chip_styles.d.ts +2 -0
  104. package/dist/ui/transcript/attachment_chip_styles.d.ts.map +1 -0
  105. package/dist/ui/transcript/build_transcript.d.ts +21 -0
  106. package/dist/ui/transcript/build_transcript.d.ts.map +1 -0
  107. package/dist/ui/transcript/greeting_styles.d.ts +2 -0
  108. package/dist/ui/transcript/greeting_styles.d.ts.map +1 -0
  109. package/dist/ui/transcript/groups_tool_steps.d.ts +13 -0
  110. package/dist/ui/transcript/groups_tool_steps.d.ts.map +1 -0
  111. package/dist/ui/transcript/message_action_styles.d.ts +2 -0
  112. package/dist/ui/transcript/message_action_styles.d.ts.map +1 -0
  113. package/dist/ui/transcript/message_styles.d.ts +2 -0
  114. package/dist/ui/transcript/message_styles.d.ts.map +1 -0
  115. package/dist/ui/transcript/transcript.d.ts +16 -1
  116. package/dist/ui/transcript/transcript.d.ts.map +1 -1
  117. package/dist/ui/transcript/transcript_styles.d.ts +2 -0
  118. package/dist/ui/transcript/transcript_styles.d.ts.map +1 -0
  119. package/dist/ui/ui_strings.d.ts +18 -0
  120. package/dist/ui/ui_strings.d.ts.map +1 -1
  121. package/package.json +2 -2
  122. package/src/constants.ts +4 -1
  123. package/src/core/ag_ui_chat.ts +164 -299
  124. package/src/core/read_flag.ts +13 -0
  125. package/src/core/read_json_attribute.ts +30 -0
  126. package/src/tools/tool_catalog.ts +23 -10
  127. package/src/tools/tool_dispatch.ts +26 -11
  128. package/src/ui/charts/chart_block.ts +9 -9
  129. package/src/ui/charts/chart_styles.ts +63 -0
  130. package/src/ui/composer/attachment_styles.ts +71 -0
  131. package/src/ui/composer/build_composer.ts +112 -0
  132. package/src/ui/composer/composer_styles.ts +174 -0
  133. package/src/ui/composer/skill_styles.ts +120 -0
  134. package/src/ui/history/history_styles.ts +484 -0
  135. package/src/ui/interrupts/approval_styles.ts +52 -0
  136. package/src/ui/interrupts/confirmation_styles.ts +114 -0
  137. package/src/ui/interrupts/question_styles.ts +73 -0
  138. package/src/ui/placement/collapse_styles.ts +137 -0
  139. package/src/ui/placement/embedded_styles.ts +14 -0
  140. package/src/ui/placement/launcher_styles.ts +189 -0
  141. package/src/ui/placement/page_styles.ts +47 -0
  142. package/src/ui/placement/panel_placement.ts +3 -12
  143. package/src/ui/placement/preset_styles.ts +33 -0
  144. package/src/ui/placement/resize_styles.ts +186 -0
  145. package/src/ui/placement/sidebar_styles.ts +88 -0
  146. package/src/ui/placement/small_viewport_styles.ts +56 -0
  147. package/src/ui/placement/surface_for.ts +135 -0
  148. package/src/ui/progress/run_notice_styles.ts +52 -0
  149. package/src/ui/progress/thoughts_styles.ts +65 -0
  150. package/src/ui/progress/tool_call_card.ts +11 -0
  151. package/src/ui/progress/tool_group_styles.ts +232 -0
  152. package/src/ui/progress/tool_step_group.ts +269 -0
  153. package/src/ui/progress/tool_step_styles.ts +472 -0
  154. package/src/ui/shell/adopt_styles.ts +11 -5
  155. package/src/ui/shell/build_header.ts +108 -0
  156. package/src/ui/shell/build_launcher.ts +50 -0
  157. package/src/ui/shell/frame_styles.ts +119 -0
  158. package/src/ui/shell/theme_styles.ts +11 -0
  159. package/src/ui/shell/token_styles.ts +406 -0
  160. package/src/ui/styles.ts +104 -3774
  161. package/src/ui/themes/classic_styles.ts +32 -0
  162. package/src/ui/themes/classic_tokens.ts +50 -0
  163. package/src/ui/themes/code_tokens.ts +21 -0
  164. package/src/ui/themes/ledger_styles.ts +168 -0
  165. package/src/ui/themes/ledger_tokens.ts +32 -0
  166. package/src/ui/themes/modern_styles.ts +80 -0
  167. package/src/ui/themes/quiet_styles.ts +115 -0
  168. package/src/ui/themes/scheme_styles.ts +17 -0
  169. package/src/ui/themes/soft_styles.ts +148 -0
  170. package/src/ui/themes/soft_tokens.ts +28 -0
  171. package/src/ui/themes/theme_hosts.ts +14 -0
  172. package/src/ui/transcript/attachment_chip_styles.ts +116 -0
  173. package/src/ui/transcript/build_transcript.ts +67 -0
  174. package/src/ui/transcript/greeting_styles.ts +171 -0
  175. package/src/ui/transcript/groups_tool_steps.ts +16 -0
  176. package/src/ui/transcript/message_action_styles.ts +155 -0
  177. package/src/ui/transcript/message_styles.ts +262 -0
  178. package/src/ui/transcript/transcript.ts +109 -3
  179. package/src/ui/transcript/transcript_styles.ts +140 -0
  180. package/src/ui/ui_strings.ts +31 -0
  181. package/src/version.ts +1 -1
  182. package/dist/ui/placement/is_collapsible_placement.d.ts +0 -18
  183. package/dist/ui/placement/is_collapsible_placement.d.ts.map +0 -1
  184. package/dist/ui/placement/is_draggable_placement.d.ts +0 -9
  185. package/dist/ui/placement/is_draggable_placement.d.ts.map +0 -1
  186. package/src/ui/placement/is_collapsible_placement.ts +0 -19
  187. package/src/ui/placement/is_draggable_placement.ts +0 -23
@@ -27,6 +27,11 @@ export interface ToolCatalogHost {
27
27
  readonly askUserRenderer: () => QuestionRenderer | null;
28
28
  /** The decision a run is suspended on, which a Stop abandons. */
29
29
  readonly decision: PendingDecision;
30
+ /**
31
+ * Mark the card of ``callId`` as asking the user, or no longer. The call id is
32
+ * absent for a handler run outside a tool call, which has no card to mark.
33
+ */
34
+ readonly setAsking: (callId: string | undefined, asking: boolean) => void;
30
35
  /** The current answer group, opening one if none is open. */
31
36
  readonly ensureGroup: () => HTMLDivElement;
32
37
  /** The resolved string table. */
@@ -1 +1 @@
1
- {"version":3,"file":"tool_catalog.d.ts","sourceRoot":"","sources":["../../src/tools/tool_catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,mCAAmC,CAAC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,iBAAiB,CAAC,CAAC,CAoG5C;CAqHF"}
@@ -0,0 +1,2 @@
1
+ export declare const CHART_STYLES: string;
2
+ //# sourceMappingURL=chart_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/chart_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,EAAE,MA6D1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const ATTACHMENT_STYLES: string;
2
+ //# sourceMappingURL=attachment_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/composer/attachment_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,EAAE,MAqE/B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { UiStrings } from "../ui_strings.js";
2
+ /** The composer's parts, owned by the element, and what they call back into. */
3
+ export interface ComposerOptions {
4
+ readonly input: HTMLTextAreaElement;
5
+ readonly send: HTMLButtonElement;
6
+ readonly attachButton: HTMLButtonElement;
7
+ readonly fileInput: HTMLInputElement;
8
+ readonly voiceSlot: HTMLElement;
9
+ /** The line saying what the composer still needs; sits above the input. */
10
+ readonly hint: HTMLElement;
11
+ /** The queued-message row; sits above the input beside the tray. */
12
+ readonly queuedRow: HTMLElement;
13
+ /** Where the attachment tray mounts; sits above the input. */
14
+ readonly attachSlot: HTMLElement;
15
+ readonly strings: UiStrings;
16
+ readonly signal: AbortSignal;
17
+ readonly onKeydown: (event: KeyboardEvent) => void;
18
+ readonly onInput: () => void;
19
+ /** Send while idle, Stop while a run is in flight: the element decides. */
20
+ readonly onSend: () => void;
21
+ readonly onFilesPicked: () => void;
22
+ }
23
+ /**
24
+ * Build the composer row -- the field, and the tool row under it with the
25
+ * attach, voice and send controls -- and ready the composer surfaces the
26
+ * element mounts above it: the hint, the queued row and the attachment slot.
27
+ * Returns the row; the element places it and the surfaces.
28
+ */
29
+ export declare function buildComposer(options: ComposerOptions): HTMLElement;
30
+ //# sourceMappingURL=build_composer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build_composer.d.ts","sourceRoot":"","sources":["../../../src/ui/composer/build_composer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,gFAAgF;AAChF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,8DAA8D;IAC9D,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,WAAW,CA+EnE"}
@@ -0,0 +1,2 @@
1
+ export declare const COMPOSER_STYLES: string;
2
+ //# sourceMappingURL=composer_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composer_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/composer/composer_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,EAAE,MA2K7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SKILL_STYLES: string;
2
+ //# sourceMappingURL=skill_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/composer/skill_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,EAAE,MAsH1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const HISTORY_STYLES: string;
2
+ //# sourceMappingURL=history_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/history/history_styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,EAAE,MAge5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const APPROVAL_STYLES: string;
2
+ //# sourceMappingURL=approval_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/interrupts/approval_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,EAAE,MAkD7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const CONFIRMATION_STYLES: string;
2
+ //# sourceMappingURL=confirmation_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirmation_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/interrupts/confirmation_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,EAAE,MA+GjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const QUESTION_STYLES: string;
2
+ //# sourceMappingURL=question_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/interrupts/question_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,EAAE,MAuE7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const COLLAPSE_STYLES: string;
2
+ //# sourceMappingURL=collapse_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapse_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/collapse_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,EAAE,MAsI7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const EMBEDDED_STYLES: string;
2
+ //# sourceMappingURL=embedded_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedded_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/embedded_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,EAAE,MAY7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const LAUNCHER_STYLES: string;
2
+ //# sourceMappingURL=launcher_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launcher_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/launcher_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,EAAE,MA0L7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const PAGE_STYLES: string;
2
+ //# sourceMappingURL=page_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/page_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,EAAE,MA6CzB,CAAC"}
@@ -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,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAmFlD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC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,CAU9B;CAwGF"}
@@ -0,0 +1,2 @@
1
+ export declare const PRESET_STYLES: string;
2
+ //# sourceMappingURL=preset_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/preset_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MA8B3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const RESIZE_STYLES: string;
2
+ //# sourceMappingURL=resize_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resize_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/resize_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,EAAE,MAwL3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SIDEBAR_STYLES: string;
2
+ //# sourceMappingURL=sidebar_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/placement/sidebar_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,EAAE,MAsF5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SMALL_VIEWPORT_STYLES: string;
2
+ //# sourceMappingURL=small_viewport_styles.d.ts.map
@@ -0,0 +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,MAsDnC,CAAC"}
@@ -0,0 +1,74 @@
1
+ import type { ResizeAxis } from "./resize_handle.js";
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.
11
+ *
12
+ * - `launcher` -- the round button in a corner.
13
+ * - `rail` -- the slim full-height edge the sidebar docks against; the same
14
+ * launcher element, shaped by the stylesheet.
15
+ * - `header` -- the in-flow collapse: the body hides and the header bar stays
16
+ * in the host's layout, so there is no launcher at all.
17
+ * - `null` -- no collapsed state. `page` is a dedicated route rather than a
18
+ * panel on someone else's page, so there is no "away" for it to go to:
19
+ * collapsing it left a strip of application chrome fixed over a route with
20
+ * no owner, and it hides the launcher, so the usual way back did not exist.
21
+ * The header drops its collapse control here, but a control removed from
22
+ * the UI is not a state removed from the model: the property, the attribute
23
+ * and a value restored from storage all still reach it, so every one of
24
+ * those paths asks this record; the stylesheet covers the one path that
25
+ * never does, an attribute written straight onto the element.
26
+ */
27
+ export type CollapseTarget = "launcher" | "rail" | "header" | null;
28
+ /**
29
+ * Everything the script needs to know about one display surface, in one
30
+ * record, so a placement's behaviour is read in one place rather than
31
+ * assembled from a table per question.
32
+ *
33
+ * The stylesheet still carries each surface's look (one module per placement
34
+ * under this directory); this is the part of a surface that code decides.
35
+ */
36
+ 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
+ */
42
+ readonly collapseTo: CollapseTarget;
43
+ /**
44
+ * 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, and a
46
+ * full-bleed panel covers the screen it would be opening into.
47
+ */
48
+ readonly launcherDraggable: boolean;
49
+ /**
50
+ * Which axes the resize grips may change. A full-bleed layout is the whole
51
+ * viewport by definition and cannot be resized; a docked panel owns its
52
+ * height, leaving only its inner edge.
53
+ */
54
+ readonly resizeAxis: ResizeAxis;
55
+ /**
56
+ * Whether a first mount with nothing stored starts collapsed. Only the
57
+ * corner placements do: a launcher is the resting state of every corner chat
58
+ * in the field, and mounting open put a 380x560 panel over the host page's
59
+ * corner on a visitor's first load, uninvited. The placements that place
60
+ * themselves start open -- a host that docks a sidebar has already decided
61
+ * the widget belongs on screen, and one that embeds it has given it a box.
62
+ *
63
+ * Separate from {@link launcherDraggable} although the two agree today:
64
+ * "has a launcher to rest on" and "the launcher can be moved" are different
65
+ * questions, and a surface with a fixed launcher would answer them apart.
66
+ */
67
+ readonly startsCollapsed: boolean;
68
+ }
69
+ /**
70
+ * The surface `placement` describes. Read per interaction by every caller,
71
+ * because `placement` is a live attribute.
72
+ */
73
+ export declare function surfaceFor(placement: string | null): Surface;
74
+ //# sourceMappingURL=surface_for.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC;AA2DD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAE5D"}
@@ -0,0 +1,2 @@
1
+ export declare const RUN_NOTICE_STYLES: string;
2
+ //# sourceMappingURL=run_notice_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run_notice_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/run_notice_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,EAAE,MAkD/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const THOUGHTS_STYLES: string;
2
+ //# sourceMappingURL=thoughts_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thoughts_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/thoughts_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,EAAE,MA+D7B,CAAC"}
@@ -137,6 +137,14 @@ export declare class ToolCallCard {
137
137
  * talked back into looking live by a late event.
138
138
  */
139
139
  mark(status: UnsettledStatus): void;
140
+ /**
141
+ * Say whether a prompt is open on this call, a question it asked or a
142
+ * confirmation it needs. A flag of its own beside the status, which stays
143
+ * `pending`: the call is still running as far as the status goes, and a card
144
+ * display mode that reads the status draws it exactly as before. The step
145
+ * group reads the flag to tell a call waiting on a person from one working.
146
+ */
147
+ setAsking(asking: boolean): void;
140
148
  /**
141
149
  * Record that a human approved or declined this call, as a line in the card.
142
150
  * The prompt disappears once answered, so this is the only lasting trace that
@@ -1 +1 @@
1
- {"version":3,"file":"tool_call_card.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_call_card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEtE,4CAA4C;AAC5C,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAEtF,sCAAsC;AACtC,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,iEAAiE;AACjE,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,OAAO,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAEjG,+EAA+E;AAC/E,MAAM,MA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aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAgBhD;CAkEF"}
@@ -0,0 +1,2 @@
1
+ export declare const TOOL_GROUP_STYLES: string;
2
+ //# sourceMappingURL=tool_group_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool_group_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_group_styles.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB,EAAE,MAgN/B,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { UiStrings } from "../ui_strings.js";
2
+ /**
3
+ * Consecutive tool calls folded into one quiet row, "Worked through 5 steps",
4
+ * with the per-call cards one click down. Built by the transcript for each run
5
+ * of calls when the element's `toolDisplay` is `grouped`.
6
+ *
7
+ * The group owns no state of its own beyond its nodes and two facts: each
8
+ * step's label, and whether it has already opened itself for the current wait.
9
+ * Everything else is read back off the cards each time one changes.
10
+ *
11
+ * It opens itself while a step waits on the user, because a deferred step
12
+ * carries its approval prompt inside its card and a folded group would hide
13
+ * the very question it is asking. Once per wait, so the user can fold it
14
+ * again. A running sub-agent does not open it: the row names the sub-agent
15
+ * instead, beside the running mark.
16
+ */
17
+ export declare class ToolStepGroup {
18
+ #private;
19
+ readonly element: HTMLDivElement;
20
+ constructor(strings: UiStrings);
21
+ /**
22
+ * Add a card's element as the group's next step, under the label the card
23
+ * was built with.
24
+ *
25
+ * A step whose label an earlier step already has gets a repeat ordinal,
26
+ * "Fill field (2)", in an element of its own beside the card's name. The
27
+ * name itself is never rewritten, so a group flattened back into per-call
28
+ * cards by a card display mode shows exactly the label the card was built
29
+ * with, and the CSS hides the ordinal there.
30
+ */
31
+ add(card: HTMLElement, name: string): void;
32
+ /** Show or hide the per-step cards. */
33
+ setOpen(open: boolean): void;
34
+ /**
35
+ * Open the group now, for the wait that is about to start.
36
+ *
37
+ * The group opens itself from its mutation observer, which runs a tick after
38
+ * the card is marked deferred. The approval prompt is drawn, and takes focus,
39
+ * in the same tick as the mark, while the list is still out of the layout: the
40
+ * focus is dropped and the scroll it would cause never happens. So the caller
41
+ * that is about to draw the prompt opens the group first, and this marks the
42
+ * wait as already answered for, so the observer's later refresh does not open
43
+ * it again over a user who folded it.
44
+ */
45
+ reveal(): void;
46
+ }
47
+ //# sourceMappingURL=tool_step_group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool_step_group.d.ts","sourceRoot":"","sources":["../../../src/ui/progress/tool_step_group.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AA6ClD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAa;;IACxB,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IAWjC,YAAY,OAAO,EAAE,SAAS,EAgD7B;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAczC;IAED,uCAAuC;IACvC,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAG3B;IAED;;;;;;;;;;OAUG;IACH,MAAM,IAAI,IAAI,CAGb;CAkGF"}
@@ -0,0 +1,2 @@
1
+ export declare const TOOL_STEP_STYLES: string;
2
+ //# sourceMappingURL=tool_step_styles.d.ts.map
@@ -0,0 +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,MAod9B,CAAC"}
@@ -14,10 +14,15 @@
14
14
  * Per instance is no worse than the `<style>` element it replaces, which also
15
15
  * parsed once per mount.
16
16
  *
17
+ * `extra` is the element's `extraStyles`, adopted after the built-in sheet so
18
+ * a host's rules win at equal specificity. They are constructed sheets too, so
19
+ * they inherit the same CSP immunity.
20
+ *
17
21
  * No fallback: constructible `CSSStyleSheet` is Chrome 73, Firefox 101 and
18
- * Safari 16.4, all below this package's declared Safari 17 runtime target. A
19
- * guard here would be code no supported browser can reach, and the only way
20
- * to keep it would be to exempt it from the coverage gate.
22
+ * Safari 16.4, all below this package's browser floor (Chrome 123, Firefox
23
+ * 120, Safari 17.5). A guard here would be code no supported browser can
24
+ * reach, and the only way to keep it would be to exempt it from the coverage
25
+ * gate.
21
26
  */
22
- export declare function adoptStyles(root: ShadowRoot): void;
27
+ export declare function adoptStyles(root: ShadowRoot, extra?: readonly CSSStyleSheet[]): CSSStyleSheet;
23
28
  //# sourceMappingURL=adopt_styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adopt_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/adopt_styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAIlD"}
1
+ {"version":3,"file":"adopt_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/adopt_styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,GAAE,SAAS,aAAa,EAAO,GAAG,aAAa,CAKjG"}
@@ -0,0 +1,40 @@
1
+ import type { UiStrings } from "../ui_strings.js";
2
+ /** What {@link buildHeader} needs from the element that owns the header. */
3
+ export interface HeaderOptions {
4
+ /** The element itself, asked whether a host slotted an icon. */
5
+ readonly host: HTMLElement;
6
+ /** The title node, kept by the element so a later `title-text` can update it. */
7
+ readonly title: HTMLElement;
8
+ readonly titleText: string;
9
+ readonly iconUrl: string | null;
10
+ readonly strings: UiStrings;
11
+ /** Whether the server indexes runs, so there is anything to continue. */
12
+ readonly withCheckpoints: boolean;
13
+ /** The opt-in theme toggle, or `null` when the host did not ask for one. */
14
+ readonly themeToggle: HTMLButtonElement | null;
15
+ readonly signal: AbortSignal;
16
+ readonly onHistory: () => void;
17
+ readonly onCheckpoints: () => void;
18
+ readonly onNewChat: () => void;
19
+ readonly onCollapse: () => void;
20
+ readonly onToggleTheme: () => void;
21
+ }
22
+ /** The header, and the one control the element still needs a handle on. */
23
+ export interface BuiltHeader {
24
+ readonly header: HTMLElement;
25
+ /**
26
+ * The checkpoints button, built whether or not it is shown: the click-away
27
+ * handler for the checkpoints popover has to exclude it either way.
28
+ */
29
+ readonly checkpoints: HTMLButtonElement;
30
+ }
31
+ /**
32
+ * Build the panel's title bar: the optional icon, the title, the host's
33
+ * header-actions slot, and the controls.
34
+ *
35
+ * Every control calls back into the element's public methods, so a host
36
+ * chrome driving them imperatively takes exactly the path the built-in button
37
+ * takes.
38
+ */
39
+ export declare function buildHeader(options: HeaderOptions): BuiltHeader;
40
+ //# sourceMappingURL=build_header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build_header.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/build_header.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,4EAA4E;AAC5E,MAAM,WAAW,aAAa;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,yEAAyE;IACzE,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,2EAA2E;AAC3E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;CACzC;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,WAAW,CAgE/D"}
@@ -0,0 +1,20 @@
1
+ import type { UiStrings } from "../ui_strings.js";
2
+ /** The launcher's parts, owned by the element, and what fills them. */
3
+ export interface LauncherOptions {
4
+ readonly launcher: HTMLButtonElement;
5
+ readonly badge: HTMLElement;
6
+ readonly railLabel: HTMLElement;
7
+ readonly titleText: string;
8
+ readonly iconUrl: string | null;
9
+ readonly strings: UiStrings;
10
+ readonly signal: AbortSignal;
11
+ readonly onOpen: () => void;
12
+ }
13
+ /**
14
+ * Build what a collapsed widget shrinks to: a round floating button, or the
15
+ * slim edge rail under `placement="sidebar"` -- one element, shaped by the
16
+ * stylesheet. The element mounts it as a sibling of the panel, so it survives
17
+ * the panel being hidden.
18
+ */
19
+ export declare function buildLauncher(options: LauncherOptions): void;
20
+ //# sourceMappingURL=build_launcher.d.ts.map
@@ -0,0 +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;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CA2B5D"}
@@ -0,0 +1,2 @@
1
+ export declare const FRAME_STYLES: string;
2
+ //# sourceMappingURL=frame_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/frame_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,EAAE,MAqH1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const THEME_STYLES: string;
2
+ //# sourceMappingURL=theme_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/theme_styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,EAAE,MAS1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const TOKEN_STYLES: string;
2
+ //# sourceMappingURL=token_styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token_styles.d.ts","sourceRoot":"","sources":["../../../src/ui/shell/token_styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE,MAmZ1B,CAAC"}