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

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 (151) 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 +4570 -1641
  5. package/dist/api.tokens.json +34 -2
  6. package/dist/api.tokens.yaml +26 -2
  7. package/dist/chunks/{agent-C72JZNe6.js → agent-BF_R_HJk.js} +65 -61
  8. package/dist/chunks/{agent-C72JZNe6.js.map → agent-BF_R_HJk.js.map} +1 -1
  9. package/dist/chunks/{empty-state-5M3uR5CM.js → meter-Dju8ik6C.js} +1169 -934
  10. package/dist/chunks/meter-Dju8ik6C.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/code/code.d.ts +0 -0
  18. package/dist/components/color-area/color-area.d.ts +2 -1
  19. package/dist/components/color-picker/color-picker.d.ts +1 -0
  20. package/dist/components/color-picker/oklch-utils.d.ts +18 -0
  21. package/dist/components/color-slider/color-slider.d.ts +1 -1
  22. package/dist/components/color-swatch/color-swatch.d.ts +0 -0
  23. package/dist/components/content/content.d.ts +0 -0
  24. package/dist/components/description-list/description-list.d.ts +0 -0
  25. package/dist/components/divider/divider.d.ts +0 -0
  26. package/dist/components/editor.js +1 -1
  27. package/dist/components/fieldset/fieldset.d.ts +0 -0
  28. package/dist/components/footer/footer.d.ts +0 -0
  29. package/dist/components/graph.js +1 -1
  30. package/dist/components/grid/grid.d.ts +0 -0
  31. package/dist/components/header/header.d.ts +0 -0
  32. package/dist/components/heading/heading.d.ts +0 -0
  33. package/dist/components/input-group/input-group.d.ts +0 -0
  34. package/dist/components/inset/inset.d.ts +0 -0
  35. package/dist/components/kbd/kbd.d.ts +0 -0
  36. package/dist/components/stack/stack.d.ts +0 -0
  37. package/dist/components/stat/stat.d.ts +4 -0
  38. package/dist/components/text/text.d.ts +0 -0
  39. package/dist/components/time-field/time-field.d.ts +1 -0
  40. package/dist/components/wrap/wrap.d.ts +0 -0
  41. package/dist/components.js +114 -127
  42. package/dist/components.js.map +1 -1
  43. package/dist/docs/blocks/login-two-column.yaml +6 -6
  44. package/dist/docs/blocks/profile-card.yaml +5 -5
  45. package/dist/docs/components/accordion-item.yaml +13 -21
  46. package/dist/docs/components/accordion.yaml +23 -29
  47. package/dist/docs/components/agent-activity.yaml +27 -39
  48. package/dist/docs/components/agent-feed.yaml +15 -22
  49. package/dist/docs/components/agent-input.yaml +238 -0
  50. package/dist/docs/components/agent-message.yaml +29 -48
  51. package/dist/docs/components/agent-panel.yaml +21 -24
  52. package/dist/docs/components/agent-prompt.yaml +28 -46
  53. package/dist/docs/components/agent-seeds.yaml +15 -23
  54. package/dist/docs/components/agent-text.yaml +14 -24
  55. package/dist/docs/components/agent-thread.yaml +15 -24
  56. package/dist/docs/components/alert.yaml +41 -39
  57. package/dist/docs/components/avatar-group.yaml +72 -45
  58. package/dist/docs/components/avatar.yaml +99 -0
  59. package/dist/docs/components/badge.yaml +110 -0
  60. package/dist/docs/components/bar.yaml +84 -0
  61. package/dist/docs/components/breadcrumb-item.yaml +8 -17
  62. package/dist/docs/components/breadcrumb.yaml +60 -25
  63. package/dist/docs/components/button-group.yaml +93 -0
  64. package/dist/docs/components/button.yaml +177 -261
  65. package/dist/docs/components/calendar-picker.yaml +14 -34
  66. package/dist/docs/components/calendar-range-picker.yaml +11 -29
  67. package/dist/docs/components/calendar.yaml +11 -29
  68. package/dist/docs/components/canvas.yaml +44 -61
  69. package/dist/docs/components/checkbox.yaml +37 -49
  70. package/dist/docs/components/chip.yaml +88 -54
  71. package/dist/docs/components/code-block.yaml +54 -53
  72. package/dist/docs/components/code.yaml +37 -0
  73. package/dist/docs/components/color-area.yaml +119 -0
  74. package/dist/docs/components/color-field.yaml +121 -0
  75. package/dist/docs/components/color-picker.yaml +64 -38
  76. package/dist/docs/components/color-slider.yaml +153 -0
  77. package/dist/docs/components/color-swatch.yaml +98 -0
  78. package/dist/docs/components/command.yaml +13 -18
  79. package/dist/docs/components/container.yaml +83 -73
  80. package/dist/docs/components/content.yaml +100 -0
  81. package/dist/docs/components/context-menu.yaml +11 -20
  82. package/dist/docs/components/date-field.yaml +81 -33
  83. package/dist/docs/components/description-list.yaml +81 -0
  84. package/dist/docs/components/disclosure-group.yaml +61 -42
  85. package/dist/docs/components/disclosure.yaml +60 -46
  86. package/dist/docs/components/divider.yaml +63 -0
  87. package/dist/docs/components/dropdown-menu.yaml +16 -25
  88. package/dist/docs/components/feed.yaml +15 -24
  89. package/dist/docs/components/field.yaml +50 -71
  90. package/dist/docs/components/fieldset.yaml +92 -0
  91. package/dist/docs/components/footer.yaml +147 -0
  92. package/dist/docs/components/grid.yaml +87 -0
  93. package/dist/docs/components/gripper.yaml +11 -23
  94. package/dist/docs/components/header.yaml +168 -0
  95. package/dist/docs/components/heading.yaml +54 -0
  96. package/dist/docs/components/hover-card.yaml +17 -25
  97. package/dist/docs/components/icon.yaml +32 -65
  98. package/dist/docs/components/input-group.yaml +102 -0
  99. package/dist/docs/components/input-otp.yaml +20 -19
  100. package/dist/docs/components/input.yaml +92 -132
  101. package/dist/docs/components/inset.yaml +59 -0
  102. package/dist/docs/components/kbd.yaml +57 -0
  103. package/dist/docs/components/link.yaml +36 -45
  104. package/dist/docs/components/meter.yaml +27 -38
  105. package/dist/docs/components/nav-item.yaml +51 -40
  106. package/dist/docs/components/noodles.yaml +72 -104
  107. package/dist/docs/components/option.yaml +12 -23
  108. package/dist/docs/components/pagination.yaml +21 -18
  109. package/dist/docs/components/pane.yaml +18 -32
  110. package/dist/docs/components/panes.yaml +19 -27
  111. package/dist/docs/components/progress-circle.yaml +64 -55
  112. package/dist/docs/components/progress.yaml +35 -51
  113. package/dist/docs/components/radio-group.yaml +99 -40
  114. package/dist/docs/components/radio.yaml +40 -41
  115. package/dist/docs/components/range.yaml +24 -27
  116. package/dist/docs/components/segmented-control.yaml +58 -17
  117. package/dist/docs/components/select.yaml +80 -100
  118. package/dist/docs/components/skeleton.yaml +39 -39
  119. package/dist/docs/components/sparkline.yaml +28 -45
  120. package/dist/docs/components/spinner.yaml +32 -33
  121. package/dist/docs/components/stack.yaml +126 -0
  122. package/dist/docs/components/stepper.yaml +31 -38
  123. package/dist/docs/components/switch.yaml +36 -47
  124. package/dist/docs/components/tab-panel.yaml +27 -18
  125. package/dist/docs/components/tab.yaml +25 -22
  126. package/dist/docs/components/table-header.yaml +22 -12
  127. package/dist/docs/components/tabs.yaml +103 -20
  128. package/dist/docs/components/tag-group.yaml +63 -47
  129. package/dist/docs/components/text.yaml +67 -0
  130. package/dist/docs/components/textarea.yaml +43 -60
  131. package/dist/docs/components/time-field.yaml +74 -33
  132. package/dist/docs/components/toast.yaml +13 -30
  133. package/dist/docs/components/tooltip.yaml +56 -49
  134. package/dist/docs/components/tree-item.yaml +9 -10
  135. package/dist/docs/components/tree.yaml +127 -10
  136. package/dist/docs/components/wrap.yaml +60 -0
  137. package/dist/docs/traits/toggle-theme.yaml +34 -0
  138. package/dist/element.js +1 -1
  139. package/dist/icons.js +79 -59
  140. package/dist/icons.js.map +1 -1
  141. package/dist/reactivity.js +2 -2
  142. package/dist/register.d.ts +0 -1
  143. package/dist/register.js +258 -244
  144. package/dist/register.js.map +1 -1
  145. package/dist/store.js +1 -1
  146. package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
  147. package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
  148. package/dist/traits.js +528 -485
  149. package/dist/traits.js.map +1 -1
  150. package/package.json +1 -1
  151. 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.15",
4
+ "generated": "2026-03-21T23:16:48.938Z",
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"
@@ -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.15
3
+ generated: 2026-03-21T23:16:48.938Z
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
@@ -1,5 +1,5 @@
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
  }
@@ -100,7 +100,7 @@ class R {
100
100
  }
101
101
  function k(i) {
102
102
  const t = new j(i), e = new R(t);
103
- return S.set(e, t), e;
103
+ return $.set(e, t), e;
104
104
  }
105
105
  class H {
106
106
  [Symbol.toStringTag] = "Computed";
@@ -130,7 +130,7 @@ class H {
130
130
  }
131
131
  function ot(i) {
132
132
  const t = new E(i), e = new H(t);
133
- return S.set(e, t), e;
133
+ return $.set(e, t), e;
134
134
  }
135
135
  function _(i) {
136
136
  const t = new I(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);
@@ -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(), S = /* @__PURE__ */ new WeakSet();
274
274
  function Z(i) {
275
- if ($.has(i)) return;
276
- $.add(i);
275
+ if (S.has(i)) return;
276
+ S.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 */
@@ -344,7 +344,7 @@ class u extends HTMLElement {
344
344
  const e = _(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();
@@ -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,11 @@ 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 && this.textContent?.trim()) {
1035
+ const t = this.style.whiteSpace;
1036
+ this.style.whiteSpace = "pre-wrap", this.#t = (this.innerText || "").trim(), this.style.whiteSpace = t;
1037
+ }
1038
+ this.#e = document.createElement("div"), this.#e.setAttribute("data-agent-prose", ""), this.textContent = "", this.appendChild(this.#e), this.addEffect(() => {
1035
1039
  this.format, this.#i();
1036
1040
  }), this.#n();
1037
1041
  }
@@ -1090,8 +1094,8 @@ function O(i) {
1090
1094
  for (s += 1; s < t.length && !t[s].startsWith("```"); )
1091
1095
  l.push(t[s]), s += 1;
1092
1096
  s += 1;
1093
- const h = a ? ` data-lang="${x(a)}"` : "";
1094
- e.push(`<pre${h}><code>${x(l.join(`
1097
+ const u = a ? ` data-lang="${x(a)}"` : "";
1098
+ e.push(`<pre${u}><code>${x(l.join(`
1095
1099
  `))}</code></pre>`);
1096
1100
  continue;
1097
1101
  }
@@ -1155,7 +1159,7 @@ function at(i) {
1155
1159
  return rt.has(s) ? t : "";
1156
1160
  });
1157
1161
  }
1158
- class kt extends u {
1162
+ class kt extends h {
1159
1163
  static attributes = {
1160
1164
  role: { type: "string", default: "" },
1161
1165
  sender: { type: "string", default: "" },
@@ -1206,36 +1210,36 @@ class kt extends u {
1206
1210
  }
1207
1211
  }
1208
1212
  export {
1209
- u as A,
1213
+ h as A,
1210
1214
  mt as B,
1211
1215
  pt as C,
1212
1216
  Y as D,
1213
1217
  st as R,
1214
- ot as a,
1215
- W as b,
1218
+ et as a,
1219
+ bt as b,
1216
1220
  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,
1221
+ gt as d,
1222
+ vt as e,
1223
+ yt as f,
1224
+ Et as g,
1225
+ At as h,
1226
+ wt as i,
1227
+ Ct as j,
1228
+ kt as k,
1229
+ k as l,
1230
+ ot as m,
1231
+ W as n,
1232
+ V as o,
1233
+ dt as p,
1234
+ J as q,
1231
1235
  O as r,
1232
- k as s,
1236
+ at as s,
1233
1237
  ct as t,
1234
1238
  lt as u,
1235
1239
  G as v,
1236
1240
  K as w,
1237
- ut as x,
1238
- ht as y,
1241
+ ht as x,
1242
+ ut as y,
1239
1243
  _ as z
1240
1244
  };
1241
- //# sourceMappingURL=agent-C72JZNe6.js.map
1245
+ //# sourceMappingURL=agent-BF_R_HJk.js.map