@agent-ui-kit/web-components 0.0.14 → 0.0.16

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 (211) hide show
  1. package/dist/agent-ui.css +1 -1
  2. package/dist/api.colors.json +2 -2
  3. package/dist/api.colors.yaml +2 -2
  4. package/dist/api.components.json +3878 -636
  5. package/dist/api.tokens.json +35 -3
  6. package/dist/api.tokens.yaml +27 -3
  7. package/dist/chunks/{agent-C72JZNe6.js → agent-XMhz_6OA.js} +85 -76
  8. package/dist/chunks/{agent-C72JZNe6.js.map → agent-XMhz_6OA.js.map} +1 -1
  9. package/dist/chunks/{empty-state-5M3uR5CM.js → form-oekEhwja.js} +1409 -960
  10. package/dist/chunks/form-oekEhwja.js.map +1 -0
  11. package/dist/components/agent.js +6 -6
  12. package/dist/components/avatar/avatar.d.ts +0 -0
  13. package/dist/components/badge/badge.d.ts +0 -0
  14. package/dist/components/bar/bar.d.ts +0 -0
  15. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
  16. package/dist/components/button-group/button-group.d.ts +0 -0
  17. package/dist/components/checkbox-group/checkbox-group.d.ts +14 -0
  18. package/dist/components/checkbox-group/index.d.ts +1 -0
  19. package/dist/components/code/code.d.ts +0 -0
  20. package/dist/components/color-area/color-area.d.ts +2 -1
  21. package/dist/components/color-picker/color-picker.d.ts +1 -0
  22. package/dist/components/color-picker/oklch-utils.d.ts +18 -0
  23. package/dist/components/color-slider/color-slider.d.ts +1 -1
  24. package/dist/components/color-swatch/color-swatch.d.ts +0 -0
  25. package/dist/components/content/content.d.ts +0 -0
  26. package/dist/components/description-list/description-list.d.ts +0 -0
  27. package/dist/components/divider/divider.d.ts +0 -0
  28. package/dist/components/editor.js +1 -1
  29. package/dist/components/fieldset/fieldset.d.ts +0 -0
  30. package/dist/components/footer/footer.d.ts +0 -0
  31. package/dist/components/form/form.d.ts +12 -0
  32. package/dist/components/form/index.d.ts +1 -0
  33. package/dist/components/graph.js +1 -1
  34. package/dist/components/grid/grid.d.ts +0 -0
  35. package/dist/components/header/header.d.ts +0 -0
  36. package/dist/components/heading/heading.d.ts +0 -0
  37. package/dist/components/index.d.ts +2 -0
  38. package/dist/components/input-group/input-group.d.ts +0 -0
  39. package/dist/components/inset/inset.d.ts +0 -0
  40. package/dist/components/kbd/kbd.d.ts +0 -0
  41. package/dist/components/noodles/noodle-controller.d.ts +1 -1
  42. package/dist/components/stack/stack.d.ts +0 -0
  43. package/dist/components/stat/stat.d.ts +4 -0
  44. package/dist/components/text/text.d.ts +0 -0
  45. package/dist/components/time-field/time-field.d.ts +1 -0
  46. package/dist/components/wrap/wrap.d.ts +0 -0
  47. package/dist/components.js +115 -126
  48. package/dist/components.js.map +1 -1
  49. package/dist/docs/blocks/agent-chat.yaml +33 -25
  50. package/dist/docs/blocks/announcement-card.yaml +14 -10
  51. package/dist/docs/blocks/bpm-process.yaml +216 -4
  52. package/dist/docs/blocks/chart-activity.yaml +12 -10
  53. package/dist/docs/blocks/chart-card.yaml +14 -11
  54. package/dist/docs/blocks/chart-donut.yaml +27 -23
  55. package/dist/docs/blocks/chart-grouped.yaml +14 -11
  56. package/dist/docs/blocks/chart-horizontal.yaml +13 -10
  57. package/dist/docs/blocks/chart-interactive.yaml +20 -17
  58. package/dist/docs/blocks/chart-labeled.yaml +14 -11
  59. package/dist/docs/blocks/checkout-form.yaml +26 -16
  60. package/dist/docs/blocks/clinical-trial.yaml +180 -4
  61. package/dist/docs/blocks/contributors.yaml +17 -11
  62. package/dist/docs/blocks/cyber-threat.yaml +158 -4
  63. package/dist/docs/blocks/dashboard-layout.yaml +25 -18
  64. package/dist/docs/blocks/data-eng-dag.yaml +222 -6
  65. package/dist/docs/blocks/date-picker.yaml +11 -10
  66. package/dist/docs/blocks/ddx-workflow.yaml +202 -6
  67. package/dist/docs/blocks/empty-state.yaml +8 -11
  68. package/dist/docs/blocks/env-variables.yaml +29 -20
  69. package/dist/docs/blocks/feature-upgrade.yaml +25 -18
  70. package/dist/docs/blocks/financial-risk.yaml +161 -4
  71. package/dist/docs/blocks/flow-editor.yaml +27 -18
  72. package/dist/docs/blocks/gen-ai-pipeline.yaml +232 -5
  73. package/dist/docs/blocks/issue-assign.yaml +25 -14
  74. package/dist/docs/blocks/keyboard-shortcuts.yaml +14 -9
  75. package/dist/docs/blocks/login-branded.yaml +62 -23
  76. package/dist/docs/blocks/login-email-only.yaml +14 -13
  77. package/dist/docs/blocks/login-form.yaml +17 -11
  78. package/dist/docs/blocks/login-simple.yaml +18 -12
  79. package/dist/docs/blocks/login-social.yaml +21 -14
  80. package/dist/docs/blocks/login-two-column.yaml +42 -22
  81. package/dist/docs/blocks/marketing-automation.yaml +209 -4
  82. package/dist/docs/blocks/member-list.yaml +23 -18
  83. package/dist/docs/blocks/ml-pipeline.yaml +163 -4
  84. package/dist/docs/blocks/nav-card.yaml +13 -11
  85. package/dist/docs/blocks/notification-list.yaml +18 -13
  86. package/dist/docs/blocks/oncology-pathway.yaml +227 -4
  87. package/dist/docs/blocks/pricing-card.yaml +20 -13
  88. package/dist/docs/blocks/processing-state.yaml +14 -11
  89. package/dist/docs/blocks/profile-card.yaml +22 -16
  90. package/dist/docs/blocks/saas-onboarding.yaml +222 -4
  91. package/dist/docs/blocks/settings-form.yaml +20 -11
  92. package/dist/docs/blocks/settings-panel.yaml +23 -22
  93. package/dist/docs/blocks/sidebar-nav.yaml +23 -15
  94. package/dist/docs/blocks/signup-form.yaml +17 -11
  95. package/dist/docs/blocks/stat-cards.yaml +12 -13
  96. package/dist/docs/blocks/status-card.yaml +20 -17
  97. package/dist/docs/blocks/suggested-labs.yaml +20 -13
  98. package/dist/docs/blocks/supply-chain.yaml +160 -4
  99. package/dist/docs/blocks/survey-card.yaml +21 -13
  100. package/dist/docs/blocks/tabbed-panel.yaml +21 -15
  101. package/dist/docs/blocks/team-empty.yaml +8 -9
  102. package/dist/docs/blocks/usage-billing.yaml +20 -16
  103. package/dist/docs/components/accordion-item.yaml +13 -21
  104. package/dist/docs/components/accordion.yaml +23 -29
  105. package/dist/docs/components/agent-activity.yaml +49 -41
  106. package/dist/docs/components/agent-feed.yaml +15 -22
  107. package/dist/docs/components/agent-input.yaml +238 -0
  108. package/dist/docs/components/agent-message.yaml +29 -48
  109. package/dist/docs/components/agent-panel.yaml +21 -24
  110. package/dist/docs/components/agent-prompt.yaml +29 -47
  111. package/dist/docs/components/agent-seeds.yaml +16 -24
  112. package/dist/docs/components/agent-text.yaml +14 -24
  113. package/dist/docs/components/agent-thread.yaml +15 -24
  114. package/dist/docs/components/alert.yaml +41 -39
  115. package/dist/docs/components/avatar-group.yaml +72 -45
  116. package/dist/docs/components/avatar.yaml +99 -0
  117. package/dist/docs/components/badge.yaml +110 -0
  118. package/dist/docs/components/bar.yaml +84 -0
  119. package/dist/docs/components/breadcrumb-item.yaml +8 -17
  120. package/dist/docs/components/breadcrumb.yaml +91 -29
  121. package/dist/docs/components/button-group.yaml +93 -0
  122. package/dist/docs/components/button.yaml +188 -261
  123. package/dist/docs/components/calendar-picker.yaml +16 -35
  124. package/dist/docs/components/calendar-range-picker.yaml +11 -29
  125. package/dist/docs/components/calendar.yaml +11 -29
  126. package/dist/docs/components/canvas.yaml +44 -61
  127. package/dist/docs/components/checkbox.yaml +37 -49
  128. package/dist/docs/components/chip.yaml +89 -55
  129. package/dist/docs/components/code-block.yaml +54 -53
  130. package/dist/docs/components/code.yaml +37 -0
  131. package/dist/docs/components/color-area.yaml +119 -0
  132. package/dist/docs/components/color-field.yaml +121 -0
  133. package/dist/docs/components/color-picker.yaml +87 -35
  134. package/dist/docs/components/color-slider.yaml +153 -0
  135. package/dist/docs/components/color-swatch.yaml +98 -0
  136. package/dist/docs/components/command.yaml +13 -18
  137. package/dist/docs/components/container.yaml +84 -73
  138. package/dist/docs/components/content.yaml +100 -0
  139. package/dist/docs/components/context-menu.yaml +11 -20
  140. package/dist/docs/components/date-field.yaml +81 -33
  141. package/dist/docs/components/description-list.yaml +81 -0
  142. package/dist/docs/components/disclosure-group.yaml +61 -42
  143. package/dist/docs/components/disclosure.yaml +60 -46
  144. package/dist/docs/components/divider.yaml +63 -0
  145. package/dist/docs/components/dropdown-menu.yaml +16 -25
  146. package/dist/docs/components/feed.yaml +15 -24
  147. package/dist/docs/components/field.yaml +50 -71
  148. package/dist/docs/components/fieldset.yaml +92 -0
  149. package/dist/docs/components/footer.yaml +147 -0
  150. package/dist/docs/components/grid.yaml +87 -0
  151. package/dist/docs/components/gripper.yaml +11 -23
  152. package/dist/docs/components/header.yaml +168 -0
  153. package/dist/docs/components/heading.yaml +58 -0
  154. package/dist/docs/components/hover-card.yaml +17 -25
  155. package/dist/docs/components/icon.yaml +32 -65
  156. package/dist/docs/components/index.yaml +11 -1
  157. package/dist/docs/components/input-group.yaml +102 -0
  158. package/dist/docs/components/input-otp.yaml +20 -19
  159. package/dist/docs/components/input.yaml +100 -139
  160. package/dist/docs/components/inset.yaml +59 -0
  161. package/dist/docs/components/kbd.yaml +57 -0
  162. package/dist/docs/components/link.yaml +36 -45
  163. package/dist/docs/components/meter.yaml +54 -42
  164. package/dist/docs/components/nav-item.yaml +54 -43
  165. package/dist/docs/components/noodles.yaml +72 -104
  166. package/dist/docs/components/option.yaml +12 -23
  167. package/dist/docs/components/pagination.yaml +21 -18
  168. package/dist/docs/components/pane.yaml +18 -32
  169. package/dist/docs/components/panes.yaml +19 -27
  170. package/dist/docs/components/progress-circle.yaml +64 -55
  171. package/dist/docs/components/progress.yaml +35 -51
  172. package/dist/docs/components/radio-group.yaml +99 -40
  173. package/dist/docs/components/radio.yaml +40 -41
  174. package/dist/docs/components/range.yaml +24 -27
  175. package/dist/docs/components/segmented-control.yaml +58 -17
  176. package/dist/docs/components/select.yaml +80 -100
  177. package/dist/docs/components/skeleton.yaml +39 -39
  178. package/dist/docs/components/sparkline.yaml +28 -45
  179. package/dist/docs/components/spinner.yaml +32 -33
  180. package/dist/docs/components/stack.yaml +126 -0
  181. package/dist/docs/components/stat.yaml +164 -0
  182. package/dist/docs/components/stepper.yaml +46 -53
  183. package/dist/docs/components/switch.yaml +36 -47
  184. package/dist/docs/components/tab-panel.yaml +27 -18
  185. package/dist/docs/components/tab.yaml +25 -22
  186. package/dist/docs/components/table-header.yaml +22 -12
  187. package/dist/docs/components/tabs.yaml +103 -20
  188. package/dist/docs/components/tag-group.yaml +63 -47
  189. package/dist/docs/components/text.yaml +67 -0
  190. package/dist/docs/components/textarea.yaml +43 -60
  191. package/dist/docs/components/time-field.yaml +108 -34
  192. package/dist/docs/components/toast.yaml +13 -30
  193. package/dist/docs/components/tooltip.yaml +56 -49
  194. package/dist/docs/components/tree-item.yaml +9 -10
  195. package/dist/docs/components/tree.yaml +127 -10
  196. package/dist/docs/components/wrap.yaml +60 -0
  197. package/dist/docs/traits/toggle-theme.yaml +34 -0
  198. package/dist/element.js +1 -1
  199. package/dist/icons.js +79 -59
  200. package/dist/icons.js.map +1 -1
  201. package/dist/reactivity.js +2 -2
  202. package/dist/register.d.ts +0 -1
  203. package/dist/register.js +368 -352
  204. package/dist/register.js.map +1 -1
  205. package/dist/store.js +1 -1
  206. package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
  207. package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
  208. package/dist/traits.js +528 -485
  209. package/dist/traits.js.map +1 -1
  210. package/package.json +1 -1
  211. package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "package": "@agent-ui-kit/web-components",
3
- "version": "0.0.14",
4
- "generated": "2026-03-21T19:03:54.190Z",
3
+ "version": "0.0.16",
4
+ "generated": "2026-03-22T04:11:44.191Z",
5
5
  "description": "Design tokens: sizing, typography, spacing, radius, shadow, animation.",
6
6
  "scales": {
7
7
  "size": [
@@ -165,6 +165,22 @@
165
165
  "value": "1.5rem",
166
166
  "category": "Font Size"
167
167
  },
168
+ "--aui-font-3xl": {
169
+ "value": "1.875rem",
170
+ "category": "Font Size"
171
+ },
172
+ "--aui-font-4xl": {
173
+ "value": "2.25rem",
174
+ "category": "Font Size"
175
+ },
176
+ "--aui-font-5xl": {
177
+ "value": "3rem",
178
+ "category": "Font Size"
179
+ },
180
+ "--aui-font-6xl": {
181
+ "value": "3.75rem",
182
+ "category": "Font Size"
183
+ },
168
184
  "--aui-font-size": {
169
185
  "value": "var(--aui-font-md)",
170
186
  "category": "Font Size"
@@ -193,6 +209,22 @@
193
209
  "value": "-0.025em",
194
210
  "category": "Letter Spacing"
195
211
  },
212
+ "--aui-tracking-3xl": {
213
+ "value": "-0.025em",
214
+ "category": "Letter Spacing"
215
+ },
216
+ "--aui-tracking-4xl": {
217
+ "value": "-0.03em",
218
+ "category": "Letter Spacing"
219
+ },
220
+ "--aui-tracking-5xl": {
221
+ "value": "-0.035em",
222
+ "category": "Letter Spacing"
223
+ },
224
+ "--aui-tracking-6xl": {
225
+ "value": "-0.04em",
226
+ "category": "Letter Spacing"
227
+ },
196
228
  "--aui-letter-spacing": {
197
229
  "value": "var(--aui-tracking-md)",
198
230
  "category": "Letter Spacing"
@@ -358,7 +390,7 @@
358
390
  "category": "Radius"
359
391
  },
360
392
  "--aui-radius-round": {
361
- "value": "1.25rem",
393
+ "value": "1.5rem",
362
394
  "category": "Radius"
363
395
  },
364
396
  "--aui-radius-rounded": {
@@ -1,6 +1,6 @@
1
1
  package: "@agent-ui-kit/web-components"
2
- version: 0.0.14
3
- generated: 2026-03-21T19:03:54.190Z
2
+ version: 0.0.16
3
+ generated: 2026-03-22T04:11:44.191Z
4
4
  description: "Design tokens: sizing, typography, spacing, radius, shadow, animation."
5
5
  scales:
6
6
  size:
@@ -129,6 +129,18 @@ tokens:
129
129
  --aui-font-2xl:
130
130
  value: 1.5rem
131
131
  category: Font Size
132
+ --aui-font-3xl:
133
+ value: 1.875rem
134
+ category: Font Size
135
+ --aui-font-4xl:
136
+ value: 2.25rem
137
+ category: Font Size
138
+ --aui-font-5xl:
139
+ value: 3rem
140
+ category: Font Size
141
+ --aui-font-6xl:
142
+ value: 3.75rem
143
+ category: Font Size
132
144
  --aui-font-size:
133
145
  value: var(--aui-font-md)
134
146
  category: Font Size
@@ -150,6 +162,18 @@ tokens:
150
162
  --aui-tracking-2xl:
151
163
  value: -0.025em
152
164
  category: Letter Spacing
165
+ --aui-tracking-3xl:
166
+ value: -0.025em
167
+ category: Letter Spacing
168
+ --aui-tracking-4xl:
169
+ value: -0.03em
170
+ category: Letter Spacing
171
+ --aui-tracking-5xl:
172
+ value: -0.035em
173
+ category: Letter Spacing
174
+ --aui-tracking-6xl:
175
+ value: -0.04em
176
+ category: Letter Spacing
153
177
  --aui-letter-spacing:
154
178
  value: var(--aui-tracking-md)
155
179
  category: Letter Spacing
@@ -274,7 +298,7 @@ tokens:
274
298
  value: 0.25rem
275
299
  category: Radius
276
300
  --aui-radius-round:
277
- value: 1.25rem
301
+ value: 1.5rem
278
302
  category: Radius
279
303
  --aui-radius-rounded:
280
304
  value: 0.75rem
@@ -1,12 +1,12 @@
1
1
  let d = null, b = 0;
2
- const m = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new Set();
2
+ const m = /* @__PURE__ */ new Set(), $ = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new Set();
3
3
  function T() {
4
4
  return d;
5
5
  }
6
6
  function v(i) {
7
7
  d = i;
8
8
  }
9
- function M() {
9
+ function O() {
10
10
  return b;
11
11
  }
12
12
  function P() {
@@ -82,7 +82,7 @@ function F() {
82
82
  A(e);
83
83
  }
84
84
  }
85
- class R {
85
+ class H {
86
86
  [Symbol.toStringTag] = "Signal";
87
87
  #t;
88
88
  constructor(t) {
@@ -99,10 +99,10 @@ class R {
99
99
  }
100
100
  }
101
101
  function k(i) {
102
- const t = new j(i), e = new R(t);
103
- return S.set(e, t), e;
102
+ const t = new j(i), e = new H(t);
103
+ return $.set(e, t), e;
104
104
  }
105
- class H {
105
+ class R {
106
106
  [Symbol.toStringTag] = "Computed";
107
107
  #t;
108
108
  constructor(t) {
@@ -129,10 +129,10 @@ class H {
129
129
  }
130
130
  }
131
131
  function ot(i) {
132
- const t = new E(i), e = new H(t);
133
- return S.set(e, t), e;
132
+ const t = new E(i), e = new R(t);
133
+ return $.set(e, t), e;
134
134
  }
135
- function _(i) {
135
+ function S(i) {
136
136
  const t = new I(i);
137
137
  return A(t), () => {
138
138
  t._disposed || (t._disposed = !0, L(t));
@@ -143,7 +143,7 @@ function W(i) {
143
143
  try {
144
144
  i();
145
145
  } finally {
146
- N(), M() === 0 && F();
146
+ N(), O() === 0 && F();
147
147
  }
148
148
  }
149
149
  function lt(i) {
@@ -184,8 +184,8 @@ const B = (i) => {
184
184
  const o = r.trait;
185
185
  if (!o) continue;
186
186
  const a = {};
187
- for (const [l, h] of Object.entries(r))
188
- l !== "trait" && (a[l] = String(h));
187
+ for (const [l, u] of Object.entries(r))
188
+ l !== "trait" && (a[l] = String(u));
189
189
  n.push({ name: o, config: a });
190
190
  }
191
191
  return n;
@@ -195,7 +195,7 @@ const B = (i) => {
195
195
  return t.split(/\s+/).map((e) => ({ name: e, config: {} }));
196
196
  }, f = /* @__PURE__ */ new Map(), ct = (i) => {
197
197
  f.has(i.name) && console.warn(`[agent-ui] Trait "${i.name}" already registered, overwriting.`), f.set(i.name, i);
198
- }, K = (i) => f.get(i), ut = () => [...f.keys()], ht = () => {
198
+ }, K = (i) => f.get(i), ht = () => [...f.keys()], ut = () => {
199
199
  const i = /* @__PURE__ */ new Map();
200
200
  for (const t of f.values()) {
201
201
  let e = i.get(t.category);
@@ -247,7 +247,7 @@ const V = (i, t, e) => {
247
247
  const l = {
248
248
  host: i,
249
249
  addEffect: (c) => {
250
- o.push(_(c));
250
+ o.push(S(c));
251
251
  },
252
252
  emit: (c, p) => {
253
253
  i.dispatchEvent(new CustomEvent(c, {
@@ -264,16 +264,16 @@ const V = (i, t, e) => {
264
264
  unexpose: (c) => {
265
265
  i.removeAttribute(`data-${s.name}-${c}`);
266
266
  }
267
- }, h = s.attach(l);
267
+ }, u = s.attach(l);
268
268
  return () => {
269
- h?.();
269
+ u?.();
270
270
  for (const c of o) c();
271
271
  o.length = 0, a && e?.anchorElement?.removeAttribute("data-aui-anchor");
272
272
  };
273
- }, y = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet();
273
+ }, y = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakSet();
274
274
  function Z(i) {
275
- if ($.has(i)) return;
276
- $.add(i);
275
+ if (_.has(i)) return;
276
+ _.add(i);
277
277
  const t = i.attributes;
278
278
  if (!t) return;
279
279
  const e = Object.keys(t);
@@ -304,7 +304,7 @@ function Z(i) {
304
304
  });
305
305
  }
306
306
  }
307
- class u extends HTMLElement {
307
+ class h extends HTMLElement {
308
308
  /** Override in subclass to declare component attributes */
309
309
  static attributes;
310
310
  /** Override in subclass to defer activate() until children are present */
@@ -341,10 +341,10 @@ class u extends HTMLElement {
341
341
  // ── Effect ownership ────────────────────────────────────
342
342
  #o = [];
343
343
  addEffect(t) {
344
- const e = _(t);
344
+ const e = S(t);
345
345
  return this.#o.push(e), e;
346
346
  }
347
- #u() {
347
+ #h() {
348
348
  for (const t of this.#o) t();
349
349
  this.#o.length = 0;
350
350
  }
@@ -432,16 +432,16 @@ class u extends HTMLElement {
432
432
  } catch {
433
433
  }
434
434
  if (this.#t.peek() !== "entering") return;
435
- this.#t.value = "connected", this.constructor.deferChildren && this.children.length === 0 ? this.#h() : (this.activate(), this.#r()), this.didEnter(), this.#s?.(), this.#s = null;
435
+ this.#t.value = "connected", this.constructor.deferChildren && this.children.length === 0 ? this.#u() : (this.activate(), this.#r()), this.didEnter(), this.#s?.(), this.#s = null;
436
436
  }
437
437
  async #c() {
438
438
  try {
439
439
  await this.willExit();
440
440
  } catch {
441
441
  }
442
- this.#t.peek() === "exiting" && (this.dispose(), this.#a(), this.#u(), this.didExit(), this.#t.value = "suspended");
442
+ this.#t.peek() === "exiting" && (this.dispose(), this.#a(), this.#h(), this.didExit(), this.#t.value = "suspended");
443
443
  }
444
- #h() {
444
+ #u() {
445
445
  let t = 0;
446
446
  const e = () => {
447
447
  this.activate(), this.#r();
@@ -479,7 +479,7 @@ class pt {
479
479
  this.#t = t, this.#e = e, this.#s = k(s), this.#r = (n) => {
480
480
  const r = n;
481
481
  r.key === this.#e && (n.stopPropagation(), r.callback(this.#s.peek()), r.subscribe && this.#i.add(r.callback));
482
- }, this.#t.addEventListener("context-request", this.#r), this.#n = _(() => {
482
+ }, this.#t.addEventListener("context-request", this.#r), this.#n = S(() => {
483
483
  const n = this.#s.value;
484
484
  for (const r of this.#i) r(n);
485
485
  });
@@ -507,7 +507,7 @@ class mt {
507
507
  dispose() {
508
508
  }
509
509
  }
510
- class bt extends u {
510
+ class bt extends h {
511
511
  static attributes = {
512
512
  type: { type: "enum", values: ["typing", "thinking", "tool-use"], default: "typing" },
513
513
  label: { type: "string", default: "" },
@@ -528,7 +528,7 @@ class bt extends u {
528
528
  // ── Lifecycle ─────────────────────────────────────────────
529
529
  activate() {
530
530
  this.setAttribute("role", "status"), this.setAttribute("aria-live", "polite"), this.#o(), this.addEffect(() => {
531
- this.active ? this.#u() : this.#l();
531
+ this.active ? this.#h() : this.#l();
532
532
  }), this.addEffect(() => {
533
533
  if (!this.#i) return;
534
534
  const t = this.label || Q(this.type);
@@ -539,10 +539,10 @@ class bt extends u {
539
539
  if (!this.#a) return;
540
540
  const t = this.expanded && this.expandable;
541
541
  this.#a.hidden = !t;
542
- }), this.addEventListener("click", this.#h);
542
+ }), this.addEventListener("click", this.#u);
543
543
  }
544
544
  dispose() {
545
- this.#l(), this.removeEventListener("click", this.#h), this.#i = null, this.#n = null, this.#r = null, this.#a = null;
545
+ this.#l(), this.removeEventListener("click", this.#u), this.#i = null, this.#n = null, this.#r = null, this.#a = null;
546
546
  }
547
547
  // ── DOM ───────────────────────────────────────────────────
548
548
  #o() {
@@ -554,7 +554,7 @@ class bt extends u {
554
554
  s.setAttribute("data-agent-activity-sep", ""), s.textContent = "|", s.setAttribute("aria-hidden", "true"), this.#i = document.createElement("span"), this.#i.setAttribute("data-agent-activity-label", ""), this.#r = document.createElement("span"), this.#r.setAttribute("data-agent-activity-dots", ""), this.#r.setAttribute("aria-hidden", "true"), this.#r.innerHTML = "<i></i><i></i><i></i>", e.append(this.#n, s, this.#i, this.#r), this.#a = document.createElement("div"), this.#a.setAttribute("data-agent-activity-content", ""), this.#a.hidden = !0, this.#a.appendChild(t), this.append(e, this.#a);
555
555
  }
556
556
  // ── Timer ─────────────────────────────────────────────────
557
- #u() {
557
+ #h() {
558
558
  this.#l(), this.#e = performance.now(), this.#c();
559
559
  }
560
560
  #l() {
@@ -566,7 +566,7 @@ class bt extends u {
566
566
  this.#n.textContent = X(t), this.#s = requestAnimationFrame(this.#c);
567
567
  };
568
568
  // ── Expand/collapse ───────────────────────────────────────
569
- #h = () => {
569
+ #u = () => {
570
570
  this.expandable && (this.expanded = !this.expanded, this.dispatchEvent(new CustomEvent("aui:activity-toggle", {
571
571
  bubbles: !0,
572
572
  composed: !0,
@@ -591,7 +591,7 @@ function X(i) {
591
591
  return `${e}m:${String(s).padStart(2, "0")}s`;
592
592
  }
593
593
  const tt = 40;
594
- class gt extends u {
594
+ class gt extends h {
595
595
  static attributes = {
596
596
  "auto-scroll": { type: "boolean", default: !0 },
597
597
  scrollable: { type: "boolean", default: !1 }
@@ -638,7 +638,7 @@ class gt extends u {
638
638
  }));
639
639
  };
640
640
  }
641
- class vt extends u {
641
+ class vt extends h {
642
642
  static deferChildren = !0;
643
643
  static attributes = {
644
644
  disabled: { type: "boolean", default: !1 },
@@ -673,10 +673,10 @@ class vt extends u {
673
673
  }), this.addEffect(() => {
674
674
  const e = this.busy;
675
675
  this.#e && (this.disabled || (e ? this.#e.setAttribute("disabled", "") : this.#n()));
676
- }), this.addEventListener("input", this.#r), this.addEventListener("click", this.#a), this.addEventListener("keydown", this.#l), this.addEventListener("focusin", this.#o), this.addEventListener("focusout", this.#u);
676
+ }), this.addEventListener("input", this.#r), this.addEventListener("click", this.#a), this.addEventListener("keydown", this.#l), this.addEventListener("focusin", this.#o), this.addEventListener("focusout", this.#h);
677
677
  }
678
678
  dispose() {
679
- this.removeEventListener("input", this.#r), this.removeEventListener("click", this.#a), this.removeEventListener("keydown", this.#l), this.removeEventListener("focusin", this.#o), this.removeEventListener("focusout", this.#u), this.#t = null, this.#e = null;
679
+ this.removeEventListener("input", this.#r), this.removeEventListener("click", this.#a), this.removeEventListener("keydown", this.#l), this.removeEventListener("focusin", this.#o), this.removeEventListener("focusout", this.#h), this.#t = null, this.#e = null;
680
680
  }
681
681
  // ── Child discovery ───────────────────────────────────────
682
682
  #s() {
@@ -711,7 +711,7 @@ class vt extends u {
711
711
  new CustomEvent("aui:composer-focus", { bubbles: !0, composed: !0 })
712
712
  );
713
713
  };
714
- #u = (t) => {
714
+ #h = (t) => {
715
715
  const e = t.target;
716
716
  !this.#t?.contains(e) && e !== this.#t || this.dispatchEvent(
717
717
  new CustomEvent("aui:composer-blur", { bubbles: !0, composed: !0 })
@@ -763,7 +763,7 @@ let it = 0;
763
763
  function nt(i) {
764
764
  return `${i}-${++it}-${Math.random().toString(36).slice(2, 6)}`;
765
765
  }
766
- class yt extends u {
766
+ class yt extends h {
767
767
  static attributes = {
768
768
  role: { type: "string", default: "assistant" },
769
769
  "message-id": { type: "string", default: "" },
@@ -789,7 +789,7 @@ class yt extends u {
789
789
  activate() {
790
790
  this.addEventListener("pointerenter", this.#r), this.addEventListener("pointerleave", this.#a), this.addEffect(() => {
791
791
  const t = this.role, e = this.actions, s = this["actions-style"], n = this["actions-position"], r = this.status;
792
- this.#u(t, e || null, s, n, r);
792
+ this.#h(t, e || null, s, n, r);
793
793
  }), this.#t.role = "article";
794
794
  }
795
795
  dispose() {
@@ -826,15 +826,15 @@ class yt extends u {
826
826
  this.#e.removeEventListener("click", this.#c), this.#e.remove();
827
827
  }
828
828
  }
829
- #u(t, e, s, n, r) {
829
+ #h(t, e, s, n, r) {
830
830
  if (this.#e && (this.#o(), this.#e = null), clearTimeout(this.#n), e === "none" || this.querySelector('[slot="actions"]')) return;
831
831
  let o;
832
832
  if (e ? o = e.split(",").map((l) => l.trim()).filter(Boolean) : o = st[t] ?? [], r === "partial" && !o.includes("continue") && (o = [...o, "continue"]), o.length === 0) return;
833
833
  const a = document.createElement("div");
834
834
  a.setAttribute("data-role", "actions"), a.setAttribute("role", "toolbar"), a.setAttribute("aria-label", "Message actions"), s !== "label" && a.setAttribute("data-style", s);
835
835
  for (const l of o) {
836
- const h = et[l];
837
- h && a.appendChild(this.#l(l, h, s));
836
+ const u = et[l];
837
+ u && a.appendChild(this.#l(l, u, s));
838
838
  }
839
839
  if (a.children.length !== 0) {
840
840
  if (a.addEventListener("click", this.#c), n === "below") {
@@ -880,7 +880,7 @@ class yt extends u {
880
880
  }
881
881
  };
882
882
  }
883
- class Et extends u {
883
+ class Et extends h {
884
884
  static attributes = {
885
885
  "panel-title": { type: "string", default: "" },
886
886
  "auto-focus": { type: "string", default: "ready" }
@@ -922,7 +922,7 @@ class Et extends u {
922
922
  this.#t = this.querySelector("aui-agent-feed"), this.#e = this.querySelector("aui-agent-input");
923
923
  }
924
924
  }
925
- class At extends u {
925
+ class At extends h {
926
926
  static attributes = {
927
927
  disabled: { type: "boolean", default: !1 }
928
928
  };
@@ -935,7 +935,7 @@ class At extends u {
935
935
  dispose() {
936
936
  }
937
937
  }
938
- class wt extends u {
938
+ class wt extends h {
939
939
  static attributes = {
940
940
  options: { type: "string", default: "" },
941
941
  disabled: { type: "boolean", default: !1 }
@@ -1014,7 +1014,7 @@ class wt extends u {
1014
1014
  this.appendChild(e), this.#e = e;
1015
1015
  }
1016
1016
  }
1017
- class Ct extends u {
1017
+ class Ct extends h {
1018
1018
  static deferChildren = !0;
1019
1019
  static attributes = {
1020
1020
  format: { type: "enum", values: ["markdown", "plain"], default: "markdown" }
@@ -1031,7 +1031,16 @@ class Ct extends u {
1031
1031
  }
1032
1032
  // ── Lifecycle ─────────────────────────────────────────────
1033
1033
  activate() {
1034
- !this.#t && this.textContent?.trim() && (this.#t = this.textContent.trim()), this.#e = document.createElement("div"), this.#e.setAttribute("data-agent-prose", ""), this.textContent = "", this.appendChild(this.#e), this.addEffect(() => {
1034
+ if (!this.#t) {
1035
+ const t = this.querySelector("template");
1036
+ if (t)
1037
+ this.#t = t.innerHTML.trim();
1038
+ else if (this.textContent?.trim()) {
1039
+ const e = this.style.whiteSpace;
1040
+ this.style.whiteSpace = "pre-wrap", this.#t = (this.innerText || "").trim(), this.style.whiteSpace = e;
1041
+ }
1042
+ }
1043
+ this.#e = document.createElement("div"), this.#e.setAttribute("data-agent-prose", ""), this.textContent = "", this.appendChild(this.#e), this.addEffect(() => {
1035
1044
  this.format, this.#i();
1036
1045
  }), this.#n();
1037
1046
  }
@@ -1045,7 +1054,7 @@ class Ct extends u {
1045
1054
  #n() {
1046
1055
  if (!this.#e) return;
1047
1056
  const t = this.#t;
1048
- this.format === "plain" ? this.#e.textContent = t : this.#e.innerHTML = at(O(t));
1057
+ this.format === "plain" ? this.#e.textContent = t : this.#e.innerHTML = at(M(t));
1049
1058
  }
1050
1059
  }
1051
1060
  const rt = /* @__PURE__ */ new Set([
@@ -1078,7 +1087,7 @@ function g(i) {
1078
1087
  '<a href="$2" rel="noopener noreferrer" target="_blank">$1</a>'
1079
1088
  ), t;
1080
1089
  }
1081
- function O(i) {
1090
+ function M(i) {
1082
1091
  if (!i) return "";
1083
1092
  const t = i.split(`
1084
1093
  `), e = [];
@@ -1090,8 +1099,8 @@ function O(i) {
1090
1099
  for (s += 1; s < t.length && !t[s].startsWith("```"); )
1091
1100
  l.push(t[s]), s += 1;
1092
1101
  s += 1;
1093
- const h = a ? ` data-lang="${x(a)}"` : "";
1094
- e.push(`<pre${h}><code>${x(l.join(`
1102
+ const u = a ? ` data-lang="${x(a)}"` : "";
1103
+ e.push(`<pre${u}><code>${x(l.join(`
1095
1104
  `))}</code></pre>`);
1096
1105
  continue;
1097
1106
  }
@@ -1109,7 +1118,7 @@ function O(i) {
1109
1118
  const a = [];
1110
1119
  for (; s < t.length && t[s].startsWith("> "); )
1111
1120
  a.push(t[s].slice(2)), s += 1;
1112
- e.push(`<blockquote>${O(a.join(`
1121
+ e.push(`<blockquote>${M(a.join(`
1113
1122
  `))}</blockquote>`);
1114
1123
  continue;
1115
1124
  }
@@ -1155,7 +1164,7 @@ function at(i) {
1155
1164
  return rt.has(s) ? t : "";
1156
1165
  });
1157
1166
  }
1158
- class kt extends u {
1167
+ class kt extends h {
1159
1168
  static attributes = {
1160
1169
  role: { type: "string", default: "" },
1161
1170
  sender: { type: "string", default: "" },
@@ -1206,36 +1215,36 @@ class kt extends u {
1206
1215
  }
1207
1216
  }
1208
1217
  export {
1209
- u as A,
1218
+ h as A,
1210
1219
  mt as B,
1211
1220
  pt as C,
1212
1221
  Y as D,
1213
1222
  st as R,
1214
- ot as a,
1215
- W as b,
1223
+ et as a,
1224
+ bt as b,
1216
1225
  ft as c,
1217
- V as d,
1218
- dt as e,
1219
- gt as f,
1220
- kt as g,
1221
- yt as h,
1222
- Ct as i,
1223
- bt as j,
1224
- wt as k,
1225
- Et as l,
1226
- vt as m,
1227
- At as n,
1228
- et as o,
1229
- J as p,
1230
- at as q,
1231
- O as r,
1232
- k as s,
1226
+ gt as d,
1227
+ vt as e,
1228
+ yt as f,
1229
+ Et as g,
1230
+ At as h,
1231
+ wt as i,
1232
+ Ct as j,
1233
+ kt as k,
1234
+ k as l,
1235
+ ot as m,
1236
+ W as n,
1237
+ V as o,
1238
+ dt as p,
1239
+ J as q,
1240
+ M as r,
1241
+ at as s,
1233
1242
  ct as t,
1234
1243
  lt as u,
1235
1244
  G as v,
1236
1245
  K as w,
1237
- ut as x,
1238
- ht as y,
1239
- _ as z
1246
+ ht as x,
1247
+ ut as y,
1248
+ S as z
1240
1249
  };
1241
- //# sourceMappingURL=agent-C72JZNe6.js.map
1250
+ //# sourceMappingURL=agent-XMhz_6OA.js.map