@constructive-io/ui 0.13.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{ai-B7XNnqYL.js → ai-4JrVVL3q.js} +311 -213
  2. package/dist/ai-4JrVVL3q.js.map +1 -0
  3. package/dist/{ai-DJ-YPj8c.cjs → ai-B08ufcbD.cjs} +309 -211
  4. package/dist/ai-B08ufcbD.cjs.map +1 -0
  5. package/dist/components/ai/index.cjs +1 -1
  6. package/dist/components/ai/index.d.cts +1 -1
  7. package/dist/components/ai/index.d.ts +1 -1
  8. package/dist/components/ai/index.js +1 -1
  9. package/dist/components/autocomplete.cjs +1 -1
  10. package/dist/components/autocomplete.js +1 -1
  11. package/dist/components/button.cjs +3 -3
  12. package/dist/components/button.cjs.map +1 -1
  13. package/dist/components/button.d.cts +1 -1
  14. package/dist/components/button.d.ts +1 -1
  15. package/dist/components/button.js +3 -3
  16. package/dist/components/button.js.map +1 -1
  17. package/dist/components/collapsible.cjs +1 -1
  18. package/dist/components/collapsible.cjs.map +1 -1
  19. package/dist/components/collapsible.js +1 -1
  20. package/dist/components/collapsible.js.map +1 -1
  21. package/dist/components/combobox.cjs +1 -1
  22. package/dist/components/combobox.js +1 -1
  23. package/dist/components/command.cjs +8 -3
  24. package/dist/components/command.cjs.map +1 -1
  25. package/dist/components/command.d.cts +4 -1
  26. package/dist/components/command.d.ts +4 -1
  27. package/dist/components/command.js +8 -3
  28. package/dist/components/command.js.map +1 -1
  29. package/dist/components/dropdown-menu.cjs +2 -2
  30. package/dist/components/dropdown-menu.cjs.map +1 -1
  31. package/dist/components/dropdown-menu.js +2 -2
  32. package/dist/components/dropdown-menu.js.map +1 -1
  33. package/dist/components/input-otp.cjs +1 -1
  34. package/dist/components/input-otp.js +1 -1
  35. package/dist/components/item.d.cts +1 -1
  36. package/dist/components/item.d.ts +1 -1
  37. package/dist/components/multi-select.cjs +1 -1
  38. package/dist/components/multi-select.js +1 -1
  39. package/dist/components/popover.cjs +7 -0
  40. package/dist/components/popover.cjs.map +1 -1
  41. package/dist/components/popover.d.cts +7 -1
  42. package/dist/components/popover.d.ts +7 -1
  43. package/dist/components/popover.js +7 -1
  44. package/dist/components/popover.js.map +1 -1
  45. package/dist/components/select.cjs +1 -1
  46. package/dist/components/select.js +1 -1
  47. package/dist/components/tabs.cjs +5 -2
  48. package/dist/components/tabs.cjs.map +1 -1
  49. package/dist/components/tabs.js +5 -2
  50. package/dist/components/tabs.js.map +1 -1
  51. package/dist/components/toggle-group.cjs +1 -1
  52. package/dist/components/toggle-group.js +1 -1
  53. package/dist/components/workspace-kit/index.cjs +51 -21
  54. package/dist/components/workspace-kit/index.cjs.map +1 -1
  55. package/dist/components/workspace-kit/index.d.cts +18 -6
  56. package/dist/components/workspace-kit/index.d.ts +18 -6
  57. package/dist/components/workspace-kit/index.js +51 -21
  58. package/dist/components/workspace-kit/index.js.map +1 -1
  59. package/dist/{fluid-highlight-DxWeZ7iu.js → fluid-highlight-CNELHV8o.js} +26 -11
  60. package/dist/fluid-highlight-CNELHV8o.js.map +1 -0
  61. package/dist/{fluid-highlight-AW-OITqJ.cjs → fluid-highlight-YWFRZXsw.cjs} +30 -9
  62. package/dist/fluid-highlight-YWFRZXsw.cjs.map +1 -0
  63. package/dist/{index-z3LqQ5L5.d.ts → index-Cluc_xc5.d.ts} +23 -14
  64. package/dist/{index-CiO-3M_X.d.cts → index-DXoG0ghv.d.cts} +23 -14
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.cts +3 -3
  67. package/dist/index.d.ts +3 -3
  68. package/dist/index.js +1 -1
  69. package/dist/{theme-DTTTlylA.d.ts → theme-CKpIa4Fj.d.cts} +42 -26
  70. package/dist/{theme-DTTTlylA.d.cts → theme-CKpIa4Fj.d.ts} +42 -26
  71. package/dist/theme-dials-config.d.cts +1 -1
  72. package/dist/theme-dials-config.d.ts +1 -1
  73. package/dist/theme-presets.d.cts +1 -1
  74. package/dist/theme-presets.d.ts +1 -1
  75. package/dist/{theme-tuning-TJ76tnxZ.d.cts → theme-tuning-CTOHSrsh.d.cts} +2 -2
  76. package/dist/{theme-tuning-DjgDvV8V.d.ts → theme-tuning-DOko6Pmy.d.ts} +2 -2
  77. package/dist/theme-tuning.d.cts +1 -1
  78. package/dist/theme-tuning.d.ts +1 -1
  79. package/dist/theme.cjs +28 -22
  80. package/dist/theme.cjs.map +1 -1
  81. package/dist/theme.d.cts +1 -1
  82. package/dist/theme.d.ts +1 -1
  83. package/dist/theme.js +28 -22
  84. package/dist/theme.js.map +1 -1
  85. package/package.json +5 -2
  86. package/src/styles/globals.css +43 -25
  87. package/dist/ai-B7XNnqYL.js.map +0 -1
  88. package/dist/ai-DJ-YPj8c.cjs.map +0 -1
  89. package/dist/fluid-highlight-AW-OITqJ.cjs.map +0 -1
  90. package/dist/fluid-highlight-DxWeZ7iu.js.map +0 -1
@@ -19,6 +19,23 @@ const OBSERVED_ATTRIBUTES = [
19
19
  "data-pressed"
20
20
  ];
21
21
  /**
22
+ * Where `target` sits inside `container`, in the container's own unscaled pixels. Popups scale in from 95%, and a
23
+ * transform changes no attribute or size to re-measure on, so a rect read on the first frame is shrunken; dividing
24
+ * by the container's current scale gives the size and offset it settles at. Pass `box` when the caller has already
25
+ * measured the container.
26
+ */
27
+ function unscaledRect(target, container, box = container.getBoundingClientRect()) {
28
+ const t = target.getBoundingClientRect();
29
+ const scaleX = box.width / container.offsetWidth || 1;
30
+ const scaleY = box.height / container.offsetHeight || 1;
31
+ return {
32
+ top: (t.top - box.top) / scaleY,
33
+ left: (t.left - box.left) / scaleX,
34
+ width: t.width / scaleX,
35
+ height: t.height / scaleY
36
+ };
37
+ }
38
+ /**
22
39
  * Track the highlighted descendant of `container` and return its rect in the
23
40
  * container's padding-box coordinates. Updates on highlight changes, DOM
24
41
  * mutations, and any nested scroll (scroll doesn't bubble, so capture).
@@ -36,14 +53,12 @@ function useFluidHighlight(container) {
36
53
  } : s);
37
54
  return;
38
55
  }
39
- const t = target.getBoundingClientRect();
40
- const c = container.getBoundingClientRect();
56
+ const offset = unscaledRect(target, container);
41
57
  setState({
42
58
  rect: {
43
- top: t.top - c.top - container.clientTop + container.scrollTop,
44
- left: t.left - c.left - container.clientLeft,
45
- width: t.width,
46
- height: t.height
59
+ ...offset,
60
+ top: offset.top - container.clientTop + container.scrollTop,
61
+ left: offset.left - container.clientLeft
47
62
  },
48
63
  visible: true
49
64
  });
@@ -85,9 +100,9 @@ function FluidHighlight({ className, inset = 0 }) {
85
100
  const state = useFluidHighlight(container);
86
101
  const reduce = (0, motion_react.useReducedMotion)();
87
102
  const tier = require_tuning.useSpringTiers().fast;
88
- const mountRef = (el) => {
103
+ const mountRef = (0, react.useCallback)((el) => {
89
104
  setContainer(el?.offsetParent ?? el?.parentElement ?? null);
90
- };
105
+ }, []);
91
106
  const rect = state ? {
92
107
  top: state.rect.top + inset,
93
108
  left: state.rect.left + inset,
@@ -121,4 +136,10 @@ Object.defineProperty(exports, 'FluidHighlight', {
121
136
  return FluidHighlight;
122
137
  }
123
138
  });
124
- //# sourceMappingURL=fluid-highlight-AW-OITqJ.cjs.map
139
+ Object.defineProperty(exports, 'unscaledRect', {
140
+ enumerable: true,
141
+ get: function () {
142
+ return unscaledRect;
143
+ }
144
+ });
145
+ //# sourceMappingURL=fluid-highlight-YWFRZXsw.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fluid-highlight-YWFRZXsw.cjs","names":["useSpringTiers","motion","cn"],"sources":["../src/lib/motion/fluid-highlight.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useState } from 'react';\nimport { motion, useReducedMotion } from 'motion/react';\n\nimport { cn } from '../utils';\nimport { useSpringTiers } from './tuning';\n\ninterface Rect {\n\ttop: number;\n\tleft: number;\n\twidth: number;\n\theight: number;\n}\n\n/**\n * Base UI toggles a bare `data-highlighted` attribute; cmdk uses\n * `data-selected=\"true\"`; Toggle/ToggleGroup mark the active item with\n * `data-pressed`. The `:not([...=\"false\"])` guards cover components\n * like multi-select that render the attribute explicitly as \"false\".\n */\nconst TARGET_SELECTOR =\n\t'[data-highlighted]:not([data-highlighted=\"false\"]), [data-selected=\"true\"], [data-pressed]:not([data-pressed=\"false\"])';\nconst OBSERVED_ATTRIBUTES = ['data-highlighted', 'data-selected', 'data-pressed'];\n\n/**\n * Where `target` sits inside `container`, in the container's own unscaled pixels. Popups scale in from 95%, and a\n * transform changes no attribute or size to re-measure on, so a rect read on the first frame is shrunken; dividing\n * by the container's current scale gives the size and offset it settles at. Pass `box` when the caller has already\n * measured the container.\n */\nexport function unscaledRect(target: Element, container: HTMLElement, box = container.getBoundingClientRect()): Rect {\n\tconst t = target.getBoundingClientRect();\n\tconst scaleX = box.width / container.offsetWidth || 1;\n\tconst scaleY = box.height / container.offsetHeight || 1;\n\treturn {\n\t\ttop: (t.top - box.top) / scaleY,\n\t\tleft: (t.left - box.left) / scaleX,\n\t\twidth: t.width / scaleX,\n\t\theight: t.height / scaleY,\n\t};\n}\n\n/**\n * Track the highlighted descendant of `container` and return its rect in the\n * container's padding-box coordinates. Updates on highlight changes, DOM\n * mutations, and any nested scroll (scroll doesn't bubble, so capture).\n */\nfunction useFluidHighlight(container: HTMLElement | null): { rect: Rect; visible: boolean } | null {\n\tconst [state, setState] = useState<{ rect: Rect; visible: boolean } | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!container) return;\n\n\t\tconst update = () => {\n\t\t\tconst target = container.querySelector<HTMLElement>(TARGET_SELECTOR);\n\t\t\tif (!target) {\n\t\t\t\tsetState((s) => (s ? { ...s, visible: false } : s));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Unscaled, or a popup still scaling in leaves the highlight at the shrunken size of its first frame.\n\t\t\tconst offset = unscaledRect(target, container);\n\t\t\tsetState({\n\t\t\t\trect: {\n\t\t\t\t\t...offset,\n\t\t\t\t\ttop: offset.top - container.clientTop + container.scrollTop,\n\t\t\t\t\tleft: offset.left - container.clientLeft,\n\t\t\t\t},\n\t\t\t\tvisible: true,\n\t\t\t});\n\t\t};\n\n\t\tupdate();\n\t\tconst observer = new MutationObserver(update);\n\t\tobserver.observe(container, {\n\t\t\tattributes: true,\n\t\t\tattributeFilter: OBSERVED_ATTRIBUTES,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t});\n\t\t// Re-measure on resize too — items can reflow without attribute changes.\n\t\t// ResizeObserver is absent in jsdom and some embedded webviews.\n\t\tconst resizeObserver =\n\t\t\ttypeof ResizeObserver === 'undefined' ? null : new ResizeObserver(update);\n\t\tresizeObserver?.observe(container);\n\t\tcontainer.addEventListener('scroll', update, { capture: true, passive: true });\n\t\treturn () => {\n\t\t\tobserver.disconnect();\n\t\t\tresizeObserver?.disconnect();\n\t\t\tcontainer.removeEventListener('scroll', update, { capture: true });\n\t\t};\n\t}, [container]);\n\n\treturn state;\n}\n\n/**\n * Traveling highlight for menu/list popups — slides under whichever item is\n * `[data-highlighted]` (Base UI) or `[data-selected=\"true\"]` (cmdk) instead of\n * flashing a per-item background. Render as the first child of a `relative`\n * container; positioned siblings paint on top. No props needed — it locates\n * its own parent as the tracking container.\n *\n * Appears/fades instantly at the target; travel uses the dial-tunable fast\n * spring tier. Reduced-motion renders an untransitioned fill.\n */\nexport function FluidHighlight({ className, inset = 0 }: { className?: string; inset?: number }) {\n\t// offsetParent is the containing block this span is positioned against —\n\t// measuring the target in the same coordinate space keeps rect math exact\n\t// whether the container itself scrolls or sits inside scrolled content.\n\tconst [container, setContainer] = useState<HTMLElement | null>(null);\n\tconst state = useFluidHighlight(container);\n\tconst reduce = useReducedMotion();\n\tconst tier = useSpringTiers().fast;\n\n\t// Stable, so React doesn't detach and reattach it (and set state again) on every render.\n\tconst mountRef = useCallback((el: HTMLElement | null) => {\n\t\tsetContainer((el?.offsetParent as HTMLElement | null) ?? el?.parentElement ?? null);\n\t}, []);\n\n\tconst rect = state\n\t\t? {\n\t\t\t\ttop: state.rect.top + inset,\n\t\t\t\tleft: state.rect.left + inset,\n\t\t\t\twidth: state.rect.width - inset * 2,\n\t\t\t\theight: state.rect.height - inset * 2,\n\t\t\t}\n\t\t: null;\n\n\treturn (\n\t\t// Remount on idle→tracking so the pill fades in at the target instead of\n\t\t// sliding from (0,0) — `initial` only applies on mount.\n\t\t<motion.span\n\t\t\tkey={state ? 'tracking' : 'idle'}\n\t\t\tref={mountRef}\n\t\t\taria-hidden\n\t\t\tclassName={cn('pointer-events-none absolute rounded-sm bg-accent', className)}\n\t\t\tinitial={rect ? { ...rect, opacity: 0 } : false}\n\t\t\tanimate={rect ? { ...rect, opacity: state?.visible ? 1 : 0 } : { opacity: 0 }}\n\t\t\ttransition={\n\t\t\t\treduce ? { duration: 0 } : { type: 'spring', visualDuration: tier.duration, bounce: tier.bounce }\n\t\t\t}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;;AAqBA,MAAM,kBACL;AACD,MAAM,sBAAsB;CAAC;CAAoB;CAAiB;AAAc;;;;;;;AAQhF,SAAgB,aAAa,QAAiB,WAAwB,MAAM,UAAU,sBAAsB,GAAS;CACpH,MAAM,IAAI,OAAO,sBAAsB;CACvC,MAAM,SAAS,IAAI,QAAQ,UAAU,eAAe;CACpD,MAAM,SAAS,IAAI,SAAS,UAAU,gBAAgB;CACtD,OAAO;EACN,MAAM,EAAE,MAAM,IAAI,OAAO;EACzB,OAAO,EAAE,OAAO,IAAI,QAAQ;EAC5B,OAAO,EAAE,QAAQ;EACjB,QAAQ,EAAE,SAAS;CACpB;AACD;;;;;;AAOA,SAAS,kBAAkB,WAAwE;CAClG,MAAM,CAAC,OAAO,gCAA8D,IAAI;CAEhF,2BAAgB;EACf,IAAI,CAAC,WAAW;EAEhB,MAAM,eAAe;GACpB,MAAM,SAAS,UAAU,cAA2B,eAAe;GACnE,IAAI,CAAC,QAAQ;IACZ,UAAU,MAAO,IAAI;KAAE,GAAG;KAAG,SAAS;IAAM,IAAI,CAAE;IAClD;GACD;GAEA,MAAM,SAAS,aAAa,QAAQ,SAAS;GAC7C,SAAS;IACR,MAAM;KACL,GAAG;KACH,KAAK,OAAO,MAAM,UAAU,YAAY,UAAU;KAClD,MAAM,OAAO,OAAO,UAAU;IAC/B;IACA,SAAS;GACV,CAAC;EACF;EAEA,OAAO;EACP,MAAM,WAAW,IAAI,iBAAiB,MAAM;EAC5C,SAAS,QAAQ,WAAW;GAC3B,YAAY;GACZ,iBAAiB;GACjB,WAAW;GACX,SAAS;EACV,CAAC;EAGD,MAAM,iBACL,OAAO,mBAAmB,cAAc,OAAO,IAAI,eAAe,MAAM;EACzE,gBAAgB,QAAQ,SAAS;EACjC,UAAU,iBAAiB,UAAU,QAAQ;GAAE,SAAS;GAAM,SAAS;EAAK,CAAC;EAC7E,aAAa;GACZ,SAAS,WAAW;GACpB,gBAAgB,WAAW;GAC3B,UAAU,oBAAoB,UAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;EAClE;CACD,GAAG,CAAC,SAAS,CAAC;CAEd,OAAO;AACR;;;;;;;;;;;AAYA,SAAgB,eAAe,EAAE,WAAW,QAAQ,KAA6C;CAIhG,MAAM,CAAC,WAAW,oCAA6C,IAAI;CACnE,MAAM,QAAQ,kBAAkB,SAAS;CACzC,MAAM,4CAA0B;CAChC,MAAM,OAAOA,8BAAe,CAAC,CAAC;CAG9B,MAAM,mCAAwB,OAA2B;EACxD,aAAc,IAAI,gBAAuC,IAAI,iBAAiB,IAAI;CACnF,GAAG,CAAC,CAAC;CAEL,MAAM,OAAO,QACV;EACA,KAAK,MAAM,KAAK,MAAM;EACtB,MAAM,MAAM,KAAK,OAAO;EACxB,OAAO,MAAM,KAAK,QAAQ,QAAQ;EAClC,QAAQ,MAAM,KAAK,SAAS,QAAQ;CACrC,IACC;CAEH,OAGC,2CAACC,oBAAO,MAAR;EAEC,KAAK;EACL;EACA,WAAWC,iBAAG,qDAAqD,SAAS;EAC5E,SAAS,OAAO;GAAE,GAAG;GAAM,SAAS;EAAE,IAAI;EAC1C,SAAS,OAAO;GAAE,GAAG;GAAM,SAAS,OAAO,UAAU,IAAI;EAAE,IAAI,EAAE,SAAS,EAAE;EAC5E,YACC,SAAS,EAAE,UAAU,EAAE,IAAI;GAAE,MAAM;GAAU,gBAAgB,KAAK;GAAU,QAAQ,KAAK;EAAO;CAEjG,GATK,QAAQ,aAAa,MAS1B;AAEH"}
@@ -204,7 +204,7 @@ type ChatContainerProps = React$1.ComponentProps<'div'> & {
204
204
  * Scroll region for chat transcripts with stick-to-bottom tracking.
205
205
  * Pair with ScrollButton for jump-to-latest.
206
206
  */
207
- declare function ChatContainer({ className, children, bottomThreshold, autoScroll, ...props }: ChatContainerProps): React$1.JSX.Element;
207
+ declare function ChatContainer({ className, children, bottomThreshold, autoScroll, ref, ...props }: ChatContainerProps): React$1.JSX.Element;
208
208
  type ChatContainerContentProps = React$1.ComponentProps<'div'>;
209
209
  declare function ChatContainerContent({ className, ...props }: ChatContainerContentProps): React$1.JSX.Element;
210
210
  //#endregion
@@ -439,6 +439,8 @@ type ApprovalCardProps = {
439
439
  destructive?: boolean;
440
440
  /** Preview node under the title (tables, diffs, etc.). */
441
441
  preview?: React$1.ReactNode;
442
+ /** A small line above the title in single-confirm mode, e.g. why the run paused. */
443
+ eyebrow?: React$1.ReactNode;
442
444
  onConfirm?: (payload: {
443
445
  answers?: Record<string, string[]>;
444
446
  }) => void;
@@ -451,7 +453,7 @@ type ApprovalCardProps = {
451
453
  /**
452
454
  * Human-in-the-loop approval: simple confirm/skip or multi-question flow.
453
455
  */
454
- declare function ApprovalCard({ title, description, questions, confirmLabel, skipLabel, destructive, preview, onConfirm, onSkip, onDismiss, className, defaultSent }: ApprovalCardProps): React$1.JSX.Element;
456
+ declare function ApprovalCard({ title, description, questions, confirmLabel, skipLabel, destructive, preview, eyebrow, onConfirm, onSkip, onDismiss, className, defaultSent }: ApprovalCardProps): React$1.JSX.Element;
455
457
  //#endregion
456
458
  //#region src/components/ai/source.d.ts
457
459
  type SourceProps = {
@@ -760,7 +762,7 @@ declare function MarkTile({ size, className, children, ...props }: MarkTileProps
760
762
  declare const iconEnterClass = "transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] starting:scale-25 starting:opacity-0 starting:blur-[4px] motion-reduce:transition-none";
761
763
  //#endregion
762
764
  //#region src/components/ai/tool-trace.d.ts
763
- type ToolTraceStatus = 'pending' | 'running' | 'done';
765
+ type ToolTraceStatus = 'pending' | 'running' | 'done' | 'error';
764
766
  type ToolTraceStep = {
765
767
  id: string;
766
768
  label: React$1.ReactNode;
@@ -776,8 +778,9 @@ type ToolTraceProps = React$1.ComponentProps<'ol'> & {
776
778
  steps: ToolTraceStep[];
777
779
  };
778
780
  /**
779
- * Quiet tool-call trace: a heading row followed by one row per call, joined by
780
- * short connectors. Each row morphs from spinner to check as the call settles.
781
+ * Quiet tool-call trace: a heading row, then one row per call hung from a
782
+ * single rail under the heading glyph. Each row morphs from spinner to check
783
+ * as the call settles, or to an alert when it fails.
781
784
  */
782
785
  declare function ToolTrace({ title, icon, steps, className, ...props }: ToolTraceProps): React$1.JSX.Element;
783
786
  //#endregion
@@ -911,14 +914,15 @@ type ModelSelectorProps = {
911
914
  align?: 'start' | 'center' | 'end';
912
915
  side?: 'top' | 'bottom';
913
916
  triggerClassName?: string;
917
+ /** Classes for the reasoning level beside the model name, e.g. to hide it when the trigger is narrow. */
918
+ levelClassName?: string;
914
919
  contentClassName?: string;
915
920
  /** Accessible label prefix for the trigger. Defaults to "Model". */
916
921
  label?: string;
917
922
  };
918
923
  /**
919
- * Relative cost as a row of building blocks: one to four filled in the accent
920
- * color, stepping up in height like a stack being built. Discrete tiers read
921
- * faster than a continuous bar and keep the list calm while scanning.
924
+ * Relative cost as a row of building blocks: one to four filled, stepping up in height like a stack being built.
925
+ * Discrete tiers read faster than a continuous bar, and the muted fill keeps the list calm while scanning.
922
926
  */
923
927
  declare function CostBlocks({ tier }: {
924
928
  tier: number;
@@ -930,7 +934,7 @@ declare function CostBlocks({ tier }: {
930
934
  * with its reasoning levels.
931
935
  * Controlled: the host owns the selection and persists recents.
932
936
  */
933
- declare function ModelSelector({ models, value, onValueChange, pinnedIds, recentIds, recommendedIds, priceDisplay: priceDisplayProp, allowPriceToggle, disabled, align, side, triggerClassName, contentClassName, label }: ModelSelectorProps): React$1.JSX.Element;
937
+ declare function ModelSelector({ models, value, onValueChange, pinnedIds, recentIds, recommendedIds, priceDisplay: priceDisplayProp, allowPriceToggle, disabled, align, side, triggerClassName, levelClassName, contentClassName, label }: ModelSelectorProps): React$1.JSX.Element;
934
938
  //#endregion
935
939
  //#region src/components/ai/prompt-input-attachment.d.ts
936
940
  type PromptInputAttachmentStatus = 'uploading' | 'ready' | 'error';
@@ -985,14 +989,19 @@ type AskCardProps = Omit<React$1.ComponentProps<'div'>, 'onSubmit'> & {
985
989
  skipLabel?: React$1.ReactNode;
986
990
  /** Name and placeholder of the free-text row. */
987
991
  otherLabel?: string;
992
+ /** A small line above the question, e.g. who is asking or why the run paused. */
993
+ eyebrow?: React$1.ReactNode;
994
+ /** Glyph beside each question. Defaults to a help circle; `null` leaves the question bare, e.g. under an eyebrow. */
995
+ icon?: React$1.ReactNode;
988
996
  disabled?: boolean;
989
997
  };
990
998
  /**
991
- * Inline clarifying questions from an agent. Each question offers lettered
992
- * options plus a free-text row; the card settles into a one-line summary per
993
- * question once answered or skipped.
999
+ * Inline clarifying questions from an agent, one at a time. Each question
1000
+ * offers its options as radio rows plus a free-text row; Continue moves to the
1001
+ * next question and submits after the last. The card settles into a one-line
1002
+ * summary per question once answered or skipped.
994
1003
  */
995
- declare function AskCard({ questions, answer, onSubmit, onSkip, continueLabel, skipLabel, otherLabel, disabled, className, ...props }: AskCardProps): React$1.JSX.Element;
1004
+ declare function AskCard({ questions, answer, onSubmit, onSkip, continueLabel, skipLabel, otherLabel, eyebrow, icon, disabled, className, ...props }: AskCardProps): React$1.JSX.Element;
996
1005
  //#endregion
997
1006
  //#region src/components/ai/connect-prompt.d.ts
998
1007
  type ConnectPromptStatus = 'idle' | 'connecting' | 'connected' | 'skipped';
@@ -1050,4 +1059,4 @@ declare function AgentDraftCard({ name, badge, schedule, tools, steps, actions,
1050
1059
  declare function formatDuration(ms: number): string;
1051
1060
  //#endregion
1052
1061
  export { PromptSuggestionsProps as $, PromptInputProps as $n, PlanStepStatus as $t, usageTone as A, ResponseStreamProps as An, InlineDiff as At, ToolTraceProps as B, MessageActionsProps as Bn, ApprovalQuestion as Bt, AiModelTag as C, ChatContainer as Cn, DiffTableColumn as Ct, ModelSelectorProps as D, useChatContainer as Dn, StreamingText as Dt, ModelSelector as E, ChatContainerProps as En, StreamToken as Et, PromptInputTrayTone as F, renderBasicMarkdown as Fn, Sources as Ft, iconEnterClass as G, MessageProps as Gn, ToolProps as Gt, ToolTraceStep as H, MessageAvatarProps as Hn, Tool as Ht, ThinkingStatus as I, Message as In, SourcesProps as It, FileUpload as J, PromptInputActionProps as Jn, DiffFileChip as Jt, AiImage as K, PromptInput as Kn, ToolVariant as Kt, ThinkingStatusProps as L, MessageAction as Ln, ApprovalCard as Lt, PromptInputTrayProps as M, CodeBlockProps as Mn, lineDiff as Mt, PromptInputTrayRow as N, Markdown as Nn, Source as Nt, UsageNotice as O, ResponseStream as On, StreamingTextProps as Ot, PromptInputTrayRowProps as P, MarkdownProps as Pn, SourceProps as Pt, PromptSuggestions as Q, PromptInputBodyProps as Qn, PlanStep as Qt, formatElapsed as R, MessageActionProps as Rn, ApprovalCardProps as Rt, AiModelPricing as S, ScrollButtonProps as Sn, DiffTableAddedRow as St, ModelSelection as T, ChatContainerContentProps as Tn, DiffTableRowBase as Tt, MarkTile as U, MessageContent as Un, ToolGroup as Ut, ToolTraceStatus as V, MessageAvatar as Vn, StatusIcon as Vt, MarkTileProps as W, MessageContentProps as Wn, ToolGroupProps as Wt, PromptSuggestion as X, PromptInputActionsProps as Xn, NormalizedToolStatus as Xt, FileUploadProps as Y, PromptInputActions as Yn, InlineDiffSource as Yt, PromptSuggestionProps as Z, PromptInputBody as Zn, Plan as Zt, PromptInputAttachmentStatus as _, STREAM_THROTTLE_MS as _n, ContextRingProps as _t, AgentDraftTool as a, StepProps as an, AgentLoaderVariant as ar, RecommendationOption as at, AiModel as b, SystemMessageProps as bn, PlanTrackerProps as bt, ConnectPromptStatus as c, StepsProps as cn, SimpleVariant as cr, ContextCards as ct, AskCardProps as d, ThinkingTraceProps as dn, TaskList as dt, ToolStatus as en, PromptInputTextarea as er, FeedbackBar as et, AskChoice as f, ThinkingTraceRow as fn, TaskListProps as ft, PromptInputAttachmentProps as g, ThinkingBarProps as gn, ContextRing as gt, PromptInputAttachment as h, ThinkingBar as hn, TaskStatus as ht, AgentDraftCardProps as i, Step as in, AgentLoaderProps as ir, RecommendationCardProps as it, PromptInputTray as j, CodeBlock as jn, InlineDiffProps as jt, UsageNoticeProps as k, ResponseStreamMode as kn, StreamingTextSource as kt, AskAnswer as l, ThinkingTrace as ln, TextShimmer as lr, ContextCardsProps as lt, AskQuestion as m, ReasoningProps as mn, TaskRowProps as mt, AgentDraftAction as n, ChainOfThought as nn, usePromptInput as nr, FeedbackValue as nt, ConnectPrompt as o, StepStatus as on, Loader as or, ContextCard as ot, AskOption as p, Reasoning as pn, TaskRow as pt, AiImageProps as q, PromptInputAction as qn, ContextUsage as qt, AgentDraftCard as r, ChainOfThoughtStep as rn, AgentLoader as rr, RecommendationCard as rt, ConnectPromptProps as s, Steps as sn, PixelVariant as sr, ContextCardProps as st, formatDuration as t, normalizeToolStatus as tn, PromptInputTextareaProps as tr, FeedbackBarProps as tt, AskCard as u, ThinkingTraceMode as un, TextShimmerProps as ur, TaskDetail as ut, PromptInputAttachments as v, useThrottledText as vn, formatCompact as vt, CostBlocks as w, ChatContainerContent as wn, DiffTableProps as wt, AiModelLevel as x, ScrollButton as xn, DiffTable as xt, PromptInputAttachmentsProps as y, SystemMessage as yn, PlanTracker as yt, ToolTrace as z, MessageActions as zn, ApprovalOption as zt };
1053
- //# sourceMappingURL=index-z3LqQ5L5.d.ts.map
1062
+ //# sourceMappingURL=index-Cluc_xc5.d.ts.map
@@ -204,7 +204,7 @@ type ChatContainerProps = React$1.ComponentProps<'div'> & {
204
204
  * Scroll region for chat transcripts with stick-to-bottom tracking.
205
205
  * Pair with ScrollButton for jump-to-latest.
206
206
  */
207
- declare function ChatContainer({ className, children, bottomThreshold, autoScroll, ...props }: ChatContainerProps): React$1.JSX.Element;
207
+ declare function ChatContainer({ className, children, bottomThreshold, autoScroll, ref, ...props }: ChatContainerProps): React$1.JSX.Element;
208
208
  type ChatContainerContentProps = React$1.ComponentProps<'div'>;
209
209
  declare function ChatContainerContent({ className, ...props }: ChatContainerContentProps): React$1.JSX.Element;
210
210
  //#endregion
@@ -439,6 +439,8 @@ type ApprovalCardProps = {
439
439
  destructive?: boolean;
440
440
  /** Preview node under the title (tables, diffs, etc.). */
441
441
  preview?: React$1.ReactNode;
442
+ /** A small line above the title in single-confirm mode, e.g. why the run paused. */
443
+ eyebrow?: React$1.ReactNode;
442
444
  onConfirm?: (payload: {
443
445
  answers?: Record<string, string[]>;
444
446
  }) => void;
@@ -451,7 +453,7 @@ type ApprovalCardProps = {
451
453
  /**
452
454
  * Human-in-the-loop approval: simple confirm/skip or multi-question flow.
453
455
  */
454
- declare function ApprovalCard({ title, description, questions, confirmLabel, skipLabel, destructive, preview, onConfirm, onSkip, onDismiss, className, defaultSent }: ApprovalCardProps): React$1.JSX.Element;
456
+ declare function ApprovalCard({ title, description, questions, confirmLabel, skipLabel, destructive, preview, eyebrow, onConfirm, onSkip, onDismiss, className, defaultSent }: ApprovalCardProps): React$1.JSX.Element;
455
457
  //#endregion
456
458
  //#region src/components/ai/source.d.ts
457
459
  type SourceProps = {
@@ -760,7 +762,7 @@ declare function MarkTile({ size, className, children, ...props }: MarkTileProps
760
762
  declare const iconEnterClass = "transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] starting:scale-25 starting:opacity-0 starting:blur-[4px] motion-reduce:transition-none";
761
763
  //#endregion
762
764
  //#region src/components/ai/tool-trace.d.ts
763
- type ToolTraceStatus = 'pending' | 'running' | 'done';
765
+ type ToolTraceStatus = 'pending' | 'running' | 'done' | 'error';
764
766
  type ToolTraceStep = {
765
767
  id: string;
766
768
  label: React$1.ReactNode;
@@ -776,8 +778,9 @@ type ToolTraceProps = React$1.ComponentProps<'ol'> & {
776
778
  steps: ToolTraceStep[];
777
779
  };
778
780
  /**
779
- * Quiet tool-call trace: a heading row followed by one row per call, joined by
780
- * short connectors. Each row morphs from spinner to check as the call settles.
781
+ * Quiet tool-call trace: a heading row, then one row per call hung from a
782
+ * single rail under the heading glyph. Each row morphs from spinner to check
783
+ * as the call settles, or to an alert when it fails.
781
784
  */
782
785
  declare function ToolTrace({ title, icon, steps, className, ...props }: ToolTraceProps): React$1.JSX.Element;
783
786
  //#endregion
@@ -911,14 +914,15 @@ type ModelSelectorProps = {
911
914
  align?: 'start' | 'center' | 'end';
912
915
  side?: 'top' | 'bottom';
913
916
  triggerClassName?: string;
917
+ /** Classes for the reasoning level beside the model name, e.g. to hide it when the trigger is narrow. */
918
+ levelClassName?: string;
914
919
  contentClassName?: string;
915
920
  /** Accessible label prefix for the trigger. Defaults to "Model". */
916
921
  label?: string;
917
922
  };
918
923
  /**
919
- * Relative cost as a row of building blocks: one to four filled in the accent
920
- * color, stepping up in height like a stack being built. Discrete tiers read
921
- * faster than a continuous bar and keep the list calm while scanning.
924
+ * Relative cost as a row of building blocks: one to four filled, stepping up in height like a stack being built.
925
+ * Discrete tiers read faster than a continuous bar, and the muted fill keeps the list calm while scanning.
922
926
  */
923
927
  declare function CostBlocks({ tier }: {
924
928
  tier: number;
@@ -930,7 +934,7 @@ declare function CostBlocks({ tier }: {
930
934
  * with its reasoning levels.
931
935
  * Controlled: the host owns the selection and persists recents.
932
936
  */
933
- declare function ModelSelector({ models, value, onValueChange, pinnedIds, recentIds, recommendedIds, priceDisplay: priceDisplayProp, allowPriceToggle, disabled, align, side, triggerClassName, contentClassName, label }: ModelSelectorProps): React$1.JSX.Element;
937
+ declare function ModelSelector({ models, value, onValueChange, pinnedIds, recentIds, recommendedIds, priceDisplay: priceDisplayProp, allowPriceToggle, disabled, align, side, triggerClassName, levelClassName, contentClassName, label }: ModelSelectorProps): React$1.JSX.Element;
934
938
  //#endregion
935
939
  //#region src/components/ai/prompt-input-attachment.d.ts
936
940
  type PromptInputAttachmentStatus = 'uploading' | 'ready' | 'error';
@@ -985,14 +989,19 @@ type AskCardProps = Omit<React$1.ComponentProps<'div'>, 'onSubmit'> & {
985
989
  skipLabel?: React$1.ReactNode;
986
990
  /** Name and placeholder of the free-text row. */
987
991
  otherLabel?: string;
992
+ /** A small line above the question, e.g. who is asking or why the run paused. */
993
+ eyebrow?: React$1.ReactNode;
994
+ /** Glyph beside each question. Defaults to a help circle; `null` leaves the question bare, e.g. under an eyebrow. */
995
+ icon?: React$1.ReactNode;
988
996
  disabled?: boolean;
989
997
  };
990
998
  /**
991
- * Inline clarifying questions from an agent. Each question offers lettered
992
- * options plus a free-text row; the card settles into a one-line summary per
993
- * question once answered or skipped.
999
+ * Inline clarifying questions from an agent, one at a time. Each question
1000
+ * offers its options as radio rows plus a free-text row; Continue moves to the
1001
+ * next question and submits after the last. The card settles into a one-line
1002
+ * summary per question once answered or skipped.
994
1003
  */
995
- declare function AskCard({ questions, answer, onSubmit, onSkip, continueLabel, skipLabel, otherLabel, disabled, className, ...props }: AskCardProps): React$1.JSX.Element;
1004
+ declare function AskCard({ questions, answer, onSubmit, onSkip, continueLabel, skipLabel, otherLabel, eyebrow, icon, disabled, className, ...props }: AskCardProps): React$1.JSX.Element;
996
1005
  //#endregion
997
1006
  //#region src/components/ai/connect-prompt.d.ts
998
1007
  type ConnectPromptStatus = 'idle' | 'connecting' | 'connected' | 'skipped';
@@ -1050,4 +1059,4 @@ declare function AgentDraftCard({ name, badge, schedule, tools, steps, actions,
1050
1059
  declare function formatDuration(ms: number): string;
1051
1060
  //#endregion
1052
1061
  export { PromptSuggestionsProps as $, PromptInputProps as $n, PlanStepStatus as $t, usageTone as A, ResponseStreamProps as An, InlineDiff as At, ToolTraceProps as B, MessageActionsProps as Bn, ApprovalQuestion as Bt, AiModelTag as C, ChatContainer as Cn, DiffTableColumn as Ct, ModelSelectorProps as D, useChatContainer as Dn, StreamingText as Dt, ModelSelector as E, ChatContainerProps as En, StreamToken as Et, PromptInputTrayTone as F, renderBasicMarkdown as Fn, Sources as Ft, iconEnterClass as G, MessageProps as Gn, ToolProps as Gt, ToolTraceStep as H, MessageAvatarProps as Hn, Tool as Ht, ThinkingStatus as I, Message as In, SourcesProps as It, FileUpload as J, PromptInputActionProps as Jn, DiffFileChip as Jt, AiImage as K, PromptInput as Kn, ToolVariant as Kt, ThinkingStatusProps as L, MessageAction as Ln, ApprovalCard as Lt, PromptInputTrayProps as M, CodeBlockProps as Mn, lineDiff as Mt, PromptInputTrayRow as N, Markdown as Nn, Source as Nt, UsageNotice as O, ResponseStream as On, StreamingTextProps as Ot, PromptInputTrayRowProps as P, MarkdownProps as Pn, SourceProps as Pt, PromptSuggestions as Q, PromptInputBodyProps as Qn, PlanStep as Qt, formatElapsed as R, MessageActionProps as Rn, ApprovalCardProps as Rt, AiModelPricing as S, ScrollButtonProps as Sn, DiffTableAddedRow as St, ModelSelection as T, ChatContainerContentProps as Tn, DiffTableRowBase as Tt, MarkTile as U, MessageContent as Un, ToolGroup as Ut, ToolTraceStatus as V, MessageAvatar as Vn, StatusIcon as Vt, MarkTileProps as W, MessageContentProps as Wn, ToolGroupProps as Wt, PromptSuggestion as X, PromptInputActionsProps as Xn, NormalizedToolStatus as Xt, FileUploadProps as Y, PromptInputActions as Yn, InlineDiffSource as Yt, PromptSuggestionProps as Z, PromptInputBody as Zn, Plan as Zt, PromptInputAttachmentStatus as _, STREAM_THROTTLE_MS as _n, ContextRingProps as _t, AgentDraftTool as a, StepProps as an, AgentLoaderVariant as ar, RecommendationOption as at, AiModel as b, SystemMessageProps as bn, PlanTrackerProps as bt, ConnectPromptStatus as c, StepsProps as cn, SimpleVariant as cr, ContextCards as ct, AskCardProps as d, ThinkingTraceProps as dn, TaskList as dt, ToolStatus as en, PromptInputTextarea as er, FeedbackBar as et, AskChoice as f, ThinkingTraceRow as fn, TaskListProps as ft, PromptInputAttachmentProps as g, ThinkingBarProps as gn, ContextRing as gt, PromptInputAttachment as h, ThinkingBar as hn, TaskStatus as ht, AgentDraftCardProps as i, Step as in, AgentLoaderProps as ir, RecommendationCardProps as it, PromptInputTray as j, CodeBlock as jn, InlineDiffProps as jt, UsageNoticeProps as k, ResponseStreamMode as kn, StreamingTextSource as kt, AskAnswer as l, ThinkingTrace as ln, TextShimmer as lr, ContextCardsProps as lt, AskQuestion as m, ReasoningProps as mn, TaskRowProps as mt, AgentDraftAction as n, ChainOfThought as nn, usePromptInput as nr, FeedbackValue as nt, ConnectPrompt as o, StepStatus as on, Loader as or, ContextCard as ot, AskOption as p, Reasoning as pn, TaskRow as pt, AiImageProps as q, PromptInputAction as qn, ContextUsage as qt, AgentDraftCard as r, ChainOfThoughtStep as rn, AgentLoader as rr, RecommendationCard as rt, ConnectPromptProps as s, Steps as sn, PixelVariant as sr, ContextCardProps as st, formatDuration as t, normalizeToolStatus as tn, PromptInputTextareaProps as tr, FeedbackBarProps as tt, AskCard as u, ThinkingTraceMode as un, TextShimmerProps as ur, TaskDetail as ut, PromptInputAttachments as v, useThrottledText as vn, formatCompact as vt, CostBlocks as w, ChatContainerContent as wn, DiffTableProps as wt, AiModelLevel as x, ScrollButton as xn, DiffTable as xt, PromptInputAttachmentsProps as y, SystemMessage as yn, PlanTracker as yt, ToolTrace as z, MessageActions as zn, ApprovalOption as zt };
1053
- //# sourceMappingURL=index-CiO-3M_X.d.cts.map
1062
+ //# sourceMappingURL=index-DXoG0ghv.d.cts.map
package/dist/index.cjs CHANGED
@@ -75,7 +75,7 @@ const require_components_responsive_diagram = require('./components/responsive-d
75
75
  const require_components_unlink_button = require('./components/unlink-button.cjs');
76
76
  const require_stack = require('./stack-CEvmUSwF.cjs');
77
77
  const require_toast = require('./toast-08jF1DBQ.cjs');
78
- const require_ai = require('./ai-DJ-YPj8c.cjs');
78
+ const require_ai = require('./ai-B08ufcbD.cjs');
79
79
  let _constructive_io_ui_portal = require("@constructive-io/ui/portal");
80
80
 
81
81
  exports.Accordion = require_components_accordion.Accordion;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps } from "./components/accordion.cjs";
2
- import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "./index-CiO-3M_X.cjs";
2
+ import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "./index-DXoG0ghv.cjs";
3
3
  import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-Fqb4JK-g.cjs";
4
4
  import { a as AlertTitle, n as AlertAction, o as alertVariants, r as AlertDescription, t as Alert } from "./alert-CJ4Qyk6W.cjs";
5
5
  import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.cjs";
@@ -65,8 +65,8 @@ import { a as showSuccessToast, c as ToastErrorProps, i as ToastSuccessProps, l
65
65
  import { Toggle, ToggleProps, toggleVariants } from "./components/toggle.cjs";
66
66
  import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "./components/toggle-group.cjs";
67
67
  import { UnlinkButton } from "./components/unlink-button.cjs";
68
- import { C as getSpringTiers, S as SpringTiers, T as useSpringTiers, _ as shadowBorderRecipe, a as ThemeTuning, b as DEFAULT_SPRING_TIERS, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, v as themeOverrideStyleSheet, w as setSpringTiers, x as SpringTier, y as toCssDeclarations } from "./theme-tuning-TJ76tnxZ.cjs";
69
- import { a as constructiveTheme, i as ThemeTokenMap, t as ConstructiveTheme } from "./theme-DTTTlylA.cjs";
68
+ import { C as getSpringTiers, S as SpringTiers, T as useSpringTiers, _ as shadowBorderRecipe, a as ThemeTuning, b as DEFAULT_SPRING_TIERS, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, v as themeOverrideStyleSheet, w as setSpringTiers, x as SpringTier, y as toCssDeclarations } from "./theme-tuning-CTOHSrsh.cjs";
69
+ import { a as constructiveTheme, i as ThemeTokenMap, t as ConstructiveTheme } from "./theme-CKpIa4Fj.cjs";
70
70
  import { GhosttyScheme, PIN_FAMILIES, PresetMode, THEME_PRESETS, THEME_PRESET_IDS, ThemePreset, ThemePresetId, ThemePresetSource, fitModeTuning, getThemePreset, isThemePresetId, themePresetRegistryName } from "./theme-presets.cjs";
71
71
  import { buildThemeDialConfig, dialValuesToTuning, tuningToDialValues } from "./theme-dials-config.cjs";
72
72
  import { Transition } from "motion/react";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps } from "./components/accordion.js";
2
- import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "./index-z3LqQ5L5.js";
2
+ import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "./index-Cluc_xc5.js";
3
3
  import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-Fqb4JK-g.js";
4
4
  import { a as AlertTitle, n as AlertAction, o as alertVariants, r as AlertDescription, t as Alert } from "./alert-CJ4Qyk6W.js";
5
5
  import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.js";
@@ -65,8 +65,8 @@ import { a as showSuccessToast, c as ToastErrorProps, i as ToastSuccessProps, l
65
65
  import { Toggle, ToggleProps, toggleVariants } from "./components/toggle.js";
66
66
  import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "./components/toggle-group.js";
67
67
  import { UnlinkButton } from "./components/unlink-button.js";
68
- import { C as getSpringTiers, S as SpringTiers, T as useSpringTiers, _ as shadowBorderRecipe, a as ThemeTuning, b as DEFAULT_SPRING_TIERS, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, v as themeOverrideStyleSheet, w as setSpringTiers, x as SpringTier, y as toCssDeclarations } from "./theme-tuning-DjgDvV8V.js";
69
- import { a as constructiveTheme, i as ThemeTokenMap, t as ConstructiveTheme } from "./theme-DTTTlylA.js";
68
+ import { C as getSpringTiers, S as SpringTiers, T as useSpringTiers, _ as shadowBorderRecipe, a as ThemeTuning, b as DEFAULT_SPRING_TIERS, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, v as themeOverrideStyleSheet, w as setSpringTiers, x as SpringTier, y as toCssDeclarations } from "./theme-tuning-DOko6Pmy.js";
69
+ import { a as constructiveTheme, i as ThemeTokenMap, t as ConstructiveTheme } from "./theme-CKpIa4Fj.js";
70
70
  import { GhosttyScheme, PIN_FAMILIES, PresetMode, THEME_PRESETS, THEME_PRESET_IDS, ThemePreset, ThemePresetId, ThemePresetSource, fitModeTuning, getThemePreset, isThemePresetId, themePresetRegistryName } from "./theme-presets.js";
71
71
  import { buildThemeDialConfig, dialValuesToTuning, tuningToDialValues } from "./theme-dials-config.js";
72
72
  import { ClassValue } from "clsx";
package/dist/index.js CHANGED
@@ -74,7 +74,7 @@ import { ResponsiveDiagram } from "./components/responsive-diagram.js";
74
74
  import { UnlinkButton } from "./components/unlink-button.js";
75
75
  import { A as peekSlideSpring, B as useStackCards, C as createCardVariants, D as createReducedMotionVariants, E as createOffsetTransition, F as useCardIndex, H as useStackLayoutMode, I as useCardInjectedProps, L as useCardReady, M as snapBackSpring, N as swipeDismissTransition, O as peekDragSpring, P as CardStackProvider, R as useCardStack, S as backdropVariants, T as createExitTransition, V as useStackContext, _ as parseWidthToPixels, a as useStackGestures, b as StackBackdrop, c as calculateResponsiveOffset, d as getCascadeOffset, f as getResponsiveCardOffset, g as normalizeWidth, h as isCardVisible, i as useStackResponsive, j as reducedMotionBackdropVariants, k as peekHoverSpring, l as getCardOffset, m as getVisibleCardIndices, n as CardStackViewport, o as StackCard, p as getSideBySideOffset, r as useIsMobile, s as usePeekGestures, t as DeferredCardContent, u as getCardZIndex, v as StackHeader, w as createEnterTransition, x as DEFAULT_ANIMATION_CONFIG, y as StackHeaderSlot, z as useIsTopCard } from "./stack-Kqu7YaR0.js";
76
76
  import { a as showErrorToast, i as showInfoToast, n as showWarningToast, r as showSuccessToast, t as toast } from "./toast-CVW5XY4u.js";
77
- import { $ as useChatContainer, A as PromptSuggestions, B as normalizeToolStatus, C as TaskRow, D as DiffTable, E as PlanTracker, F as Sources, G as ThinkingTrace, H as ChainOfThoughtStep, I as ApprovalCard, J as formatDuration, K as Reasoning, L as StatusIcon, M as InlineDiff, N as lineDiff, O as StreamingText, P as Source, Q as ChatContainerContent, R as Tool, S as TaskList, T as formatCompact, U as Step, V as ChainOfThought, W as Steps, X as ScrollButton, Y as SystemMessage, Z as ChatContainer, _ as AiImage, _t as AgentLoader, a as PromptInputAttachments, at as MessageAvatar, b as ContextCard, c as UsageNotice, ct as renderBasicMarkdown, d as PromptInputTrayRow, dt as PromptInput, et as ResponseStream, f as ThinkingStatus, ft as PromptInputAction, g as iconEnterClass, gt as usePromptInput, h as MarkTile, ht as PromptInputTextarea, i as PromptInputAttachment, it as MessageActions, j as FeedbackBar, k as PromptSuggestion, l as usageTone, lt as STREAM_THROTTLE_MS, m as ToolTrace, mt as PromptInputBody, n as ConnectPrompt, nt as Message, o as CostBlocks, ot as MessageContent, p as formatElapsed, pt as PromptInputActions, q as ThinkingBar, r as AskCard, rt as MessageAction, s as ModelSelector, st as Markdown, t as AgentDraftCard, tt as CodeBlock, u as PromptInputTray, ut as useThrottledText, v as FileUpload, vt as Loader, w as ContextRing, x as ContextCards, y as RecommendationCard, yt as TextShimmer, z as ToolGroup } from "./ai-B7XNnqYL.js";
77
+ import { $ as useChatContainer, A as PromptSuggestions, B as normalizeToolStatus, C as TaskRow, D as DiffTable, E as PlanTracker, F as Sources, G as ThinkingTrace, H as ChainOfThoughtStep, I as ApprovalCard, J as formatDuration, K as Reasoning, L as StatusIcon, M as InlineDiff, N as lineDiff, O as StreamingText, P as Source, Q as ChatContainerContent, R as Tool, S as TaskList, T as formatCompact, U as Step, V as ChainOfThought, W as Steps, X as ScrollButton, Y as SystemMessage, Z as ChatContainer, _ as AiImage, _t as AgentLoader, a as PromptInputAttachments, at as MessageAvatar, b as ContextCard, c as UsageNotice, ct as renderBasicMarkdown, d as PromptInputTrayRow, dt as PromptInput, et as ResponseStream, f as ThinkingStatus, ft as PromptInputAction, g as iconEnterClass, gt as usePromptInput, h as MarkTile, ht as PromptInputTextarea, i as PromptInputAttachment, it as MessageActions, j as FeedbackBar, k as PromptSuggestion, l as usageTone, lt as STREAM_THROTTLE_MS, m as ToolTrace, mt as PromptInputBody, n as ConnectPrompt, nt as Message, o as CostBlocks, ot as MessageContent, p as formatElapsed, pt as PromptInputActions, q as ThinkingBar, r as AskCard, rt as MessageAction, s as ModelSelector, st as Markdown, t as AgentDraftCard, tt as CodeBlock, u as PromptInputTray, ut as useThrottledText, v as FileUpload, vt as Loader, w as ContextRing, x as ContextCards, y as RecommendationCard, yt as TextShimmer, z as ToolGroup } from "./ai-4JrVVL3q.js";
78
78
  import { ModalPortalScope, PORTAL_ROOT_ID, PortalRoot, useFloatingOverlayPortalProps, useInModalOverlay, usePortalContainer, usePortalContext, useRootPortalContainer } from "@constructive-io/ui/portal";
79
79
 
80
80
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgentDraftCard, AgentLoader, AiImage, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, AskCard, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardStackProvider, CardStackViewport, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, Checkbox, CheckboxGroup, CodeBlock, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ConnectPrompt, ContextCard, ContextCards, ContextRing, CostBlocks, DEFAULT_ANIMATION_CONFIG, DEFAULT_SPRING_TIERS, DeferredCardContent, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, DiffTable, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldRow, FieldSeparator, FieldSet, FieldTitle, FileUpload, FlickeringGrid, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, FormDescription, FormField, FormItem, FormLabel, FormMessage, InlineDiff, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOtp, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JsonEditor, JsonInput, Kbd, KbdGroup, Label, Loader, MarkTile, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, ModalPortalScope, ModelSelector, MotionGrid, MultiSelect, NEUTRAL_CHROMA_WEIGHTS, NEUTRAL_REFERENCE_HUE, PIN_FAMILIES, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlanTracker, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, PromptInputActions, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputTextarea, PromptInputTray, PromptInputTrayRow, PromptSuggestion, PromptSuggestions, Radio, Radio as RadioGroupItem, RadioGroup, RangeCalendar, Reasoning, RecommendationCard, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, ResponsiveDiagram, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Slot, Slottable, Source, Sources, Spinner, StackBackdrop, StackCard, StackHeader, StackHeaderSlot, StatusIcon, Step, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, StreamingText, Switch, SystemMessage, THEME_PRESETS, THEME_PRESET_IDS, Table, TableBody, TableCaption, TableCell, TableFooter, TableGroupRow, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue, TaskList, TaskRow, TextShimmer, Textarea, ThinkingBar, ThinkingStatus, ThinkingTrace, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolGroup, ToolTrace, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, UsageNotice, alertVariants, backdropVariants, badgeVariants, buildThemeDialConfig, buttonGroupVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, constructiveTheme, contrastRatio, createCardVariants, createEnterTransition, createExitTransition, createOffsetTransition, createReducedMotionVariants, defaultThemeTuning, deriveModeTokens, dialValuesToTuning, dockVariants, durations, easings, fitModeTuning, formatCompact, formatDuration, formatElapsed, formatOklch, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getSpringTiers, getThemePreset, getVisibleCardIndices, iconEnterClass, initials, isCardVisible, isThemePresetId, itemMediaVariants, itemVariants, lineDiff, mergeProps, modeTuningDefaults, normalizeToolStatus, normalizeWidth, oklchToLinearSrgb, parseColor, parseOklch, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, relativeLuminance, renderBasicMarkdown, resolveThemeTuning, setSpringTiers, shadowBorderRecipe, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, themeOverrideStyleSheet, themePresetRegistryName, tierExit, tierSpring, toCssDeclarations, toast, toggleVariants, transitions, tuningToDialValues, usageTone, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useSpringTiers, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
@@ -241,6 +241,31 @@ declare const constructiveTheme: {
241
241
  readonly '#__next, [data-nextjs-root-layout]': {
242
242
  readonly isolation: "isolate";
243
243
  };
244
+ readonly '@media (pointer: fine)': {
245
+ readonly '*': {
246
+ readonly 'scrollbar-width': "thin";
247
+ readonly 'scrollbar-color': "color-mix(in oklch, var(--foreground) 14%, transparent) transparent";
248
+ };
249
+ readonly '::-webkit-scrollbar': {
250
+ readonly width: "10px";
251
+ readonly height: "10px";
252
+ };
253
+ readonly '::-webkit-scrollbar-track, ::-webkit-scrollbar-corner': {
254
+ readonly background: "transparent";
255
+ };
256
+ readonly '::-webkit-scrollbar-thumb': {
257
+ readonly 'background-color': "color-mix(in oklch, var(--foreground) 14%, transparent)";
258
+ readonly border: "3px solid transparent";
259
+ readonly 'background-clip': "content-box";
260
+ readonly 'border-radius': "9999px";
261
+ };
262
+ readonly '::-webkit-scrollbar-thumb:hover': {
263
+ readonly 'background-color': "color-mix(in oklch, var(--foreground) 20%, transparent)";
264
+ };
265
+ readonly '::-webkit-scrollbar-thumb:active': {
266
+ readonly 'background-color': "color-mix(in oklch, var(--foreground) 26%, transparent)";
267
+ };
268
+ };
244
269
  readonly '@media (prefers-reduced-motion: reduce)': {
245
270
  readonly '*, *::before, *::after': {
246
271
  readonly 'scroll-behavior': "auto !important";
@@ -423,6 +448,22 @@ declare const constructiveTheme: {
423
448
  readonly opacity: "0.95";
424
449
  };
425
450
  };
451
+ readonly 'agent-rail-travel': {
452
+ readonly from: {
453
+ readonly top: "-1rem";
454
+ };
455
+ readonly to: {
456
+ readonly top: "100%";
457
+ };
458
+ };
459
+ readonly 'agent-pill-breathe': {
460
+ readonly '0%, 100%': {
461
+ readonly transform: "scaleY(0.55)";
462
+ };
463
+ readonly '50%': {
464
+ readonly transform: "scaleY(1)";
465
+ };
466
+ };
426
467
  readonly 'ai-fade-up': {
427
468
  readonly from: {
428
469
  readonly opacity: "0";
@@ -487,34 +528,9 @@ declare const constructiveTheme: {
487
528
  readonly '[data-slot="portal-root"] > *': {
488
529
  readonly 'pointer-events': "auto";
489
530
  };
490
- readonly '@media (pointer: fine)': {
491
- readonly '*': {
492
- readonly 'scrollbar-width': "thin";
493
- readonly 'scrollbar-color': "color-mix(in oklch, var(--foreground) 14%, transparent) transparent";
494
- };
495
- readonly '::-webkit-scrollbar': {
496
- readonly width: "10px";
497
- readonly height: "10px";
498
- };
499
- readonly '::-webkit-scrollbar-track, ::-webkit-scrollbar-corner': {
500
- readonly background: "transparent";
501
- };
502
- readonly '::-webkit-scrollbar-thumb': {
503
- readonly 'background-color': "color-mix(in oklch, var(--foreground) 14%, transparent)";
504
- readonly border: "3px solid transparent";
505
- readonly 'background-clip': "content-box";
506
- readonly 'border-radius': "9999px";
507
- };
508
- readonly '::-webkit-scrollbar-thumb:hover': {
509
- readonly 'background-color': "color-mix(in oklch, var(--foreground) 20%, transparent)";
510
- };
511
- readonly '::-webkit-scrollbar-thumb:active': {
512
- readonly 'background-color': "color-mix(in oklch, var(--foreground) 26%, transparent)";
513
- };
514
- };
515
531
  };
516
532
  };
517
533
  type ConstructiveTheme = typeof constructiveTheme;
518
534
  //#endregion
519
535
  export { constructiveTheme as a, ThemeTokenMap as i, ConstructiveThemeDefinition as n, ThemeCssObject as r, ConstructiveTheme as t };
520
- //# sourceMappingURL=theme-DTTTlylA.d.ts.map
536
+ //# sourceMappingURL=theme-CKpIa4Fj.d.cts.map
@@ -241,6 +241,31 @@ declare const constructiveTheme: {
241
241
  readonly '#__next, [data-nextjs-root-layout]': {
242
242
  readonly isolation: "isolate";
243
243
  };
244
+ readonly '@media (pointer: fine)': {
245
+ readonly '*': {
246
+ readonly 'scrollbar-width': "thin";
247
+ readonly 'scrollbar-color': "color-mix(in oklch, var(--foreground) 14%, transparent) transparent";
248
+ };
249
+ readonly '::-webkit-scrollbar': {
250
+ readonly width: "10px";
251
+ readonly height: "10px";
252
+ };
253
+ readonly '::-webkit-scrollbar-track, ::-webkit-scrollbar-corner': {
254
+ readonly background: "transparent";
255
+ };
256
+ readonly '::-webkit-scrollbar-thumb': {
257
+ readonly 'background-color': "color-mix(in oklch, var(--foreground) 14%, transparent)";
258
+ readonly border: "3px solid transparent";
259
+ readonly 'background-clip': "content-box";
260
+ readonly 'border-radius': "9999px";
261
+ };
262
+ readonly '::-webkit-scrollbar-thumb:hover': {
263
+ readonly 'background-color': "color-mix(in oklch, var(--foreground) 20%, transparent)";
264
+ };
265
+ readonly '::-webkit-scrollbar-thumb:active': {
266
+ readonly 'background-color': "color-mix(in oklch, var(--foreground) 26%, transparent)";
267
+ };
268
+ };
244
269
  readonly '@media (prefers-reduced-motion: reduce)': {
245
270
  readonly '*, *::before, *::after': {
246
271
  readonly 'scroll-behavior': "auto !important";
@@ -423,6 +448,22 @@ declare const constructiveTheme: {
423
448
  readonly opacity: "0.95";
424
449
  };
425
450
  };
451
+ readonly 'agent-rail-travel': {
452
+ readonly from: {
453
+ readonly top: "-1rem";
454
+ };
455
+ readonly to: {
456
+ readonly top: "100%";
457
+ };
458
+ };
459
+ readonly 'agent-pill-breathe': {
460
+ readonly '0%, 100%': {
461
+ readonly transform: "scaleY(0.55)";
462
+ };
463
+ readonly '50%': {
464
+ readonly transform: "scaleY(1)";
465
+ };
466
+ };
426
467
  readonly 'ai-fade-up': {
427
468
  readonly from: {
428
469
  readonly opacity: "0";
@@ -487,34 +528,9 @@ declare const constructiveTheme: {
487
528
  readonly '[data-slot="portal-root"] > *': {
488
529
  readonly 'pointer-events': "auto";
489
530
  };
490
- readonly '@media (pointer: fine)': {
491
- readonly '*': {
492
- readonly 'scrollbar-width': "thin";
493
- readonly 'scrollbar-color': "color-mix(in oklch, var(--foreground) 14%, transparent) transparent";
494
- };
495
- readonly '::-webkit-scrollbar': {
496
- readonly width: "10px";
497
- readonly height: "10px";
498
- };
499
- readonly '::-webkit-scrollbar-track, ::-webkit-scrollbar-corner': {
500
- readonly background: "transparent";
501
- };
502
- readonly '::-webkit-scrollbar-thumb': {
503
- readonly 'background-color': "color-mix(in oklch, var(--foreground) 14%, transparent)";
504
- readonly border: "3px solid transparent";
505
- readonly 'background-clip': "content-box";
506
- readonly 'border-radius': "9999px";
507
- };
508
- readonly '::-webkit-scrollbar-thumb:hover': {
509
- readonly 'background-color': "color-mix(in oklch, var(--foreground) 20%, transparent)";
510
- };
511
- readonly '::-webkit-scrollbar-thumb:active': {
512
- readonly 'background-color': "color-mix(in oklch, var(--foreground) 26%, transparent)";
513
- };
514
- };
515
531
  };
516
532
  };
517
533
  type ConstructiveTheme = typeof constructiveTheme;
518
534
  //#endregion
519
535
  export { constructiveTheme as a, ThemeTokenMap as i, ConstructiveThemeDefinition as n, ThemeCssObject as r, ConstructiveTheme as t };
520
- //# sourceMappingURL=theme-DTTTlylA.d.cts.map
536
+ //# sourceMappingURL=theme-CKpIa4Fj.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as ThemeTuning } from "./theme-tuning-TJ76tnxZ.cjs";
1
+ import { a as ThemeTuning } from "./theme-tuning-CTOHSrsh.cjs";
2
2
  //#region src/theme-dials-config.d.ts
3
3
  /**
4
4
  * DialKit-shaped config for the whole-theme tuning model — plain data, no
@@ -1,4 +1,4 @@
1
- import { a as ThemeTuning } from "./theme-tuning-DjgDvV8V.js";
1
+ import { a as ThemeTuning } from "./theme-tuning-DOko6Pmy.js";
2
2
  //#region src/theme-dials-config.d.ts
3
3
  /**
4
4
  * DialKit-shaped config for the whole-theme tuning model — plain data, no