@locusgraph/loop 0.3.1 → 0.4.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 (119) hide show
  1. package/dist/agent/index.d.ts +1 -1
  2. package/dist/agent/pulse/gradient-label.js +6 -5
  3. package/dist/agent/pulse/marks/bars-mark.js +1 -1
  4. package/dist/agent/pulse/marks/glyph-mark.js +2 -2
  5. package/dist/agent/pulse/marks/locus-mark.js +1 -1
  6. package/dist/agent/pulse/pulse.js +1 -1
  7. package/dist/agent/pulse/use-loop-animation.d.ts +0 -1
  8. package/dist/agent/pulse/use-loop-animation.js +1 -3
  9. package/dist/agent/steps/step-icon.js +20 -13
  10. package/dist/agent/steps/steps.js +39 -37
  11. package/dist/agent/thinking/thinking.js +65 -62
  12. package/dist/agent/tool/json-block.js +10 -7
  13. package/dist/agent/tool/tool-status.d.ts +2 -0
  14. package/dist/agent/tool/tool-status.js +16 -13
  15. package/dist/agent/tool/tool.d.ts +8 -1
  16. package/dist/agent/tool/tool.js +238 -119
  17. package/dist/approval/inbox/inbox-row.d.ts +3 -3
  18. package/dist/approval/inbox/inbox-row.js +135 -200
  19. package/dist/approval/inbox/inbox.d.ts +3 -3
  20. package/dist/approval/inbox/inbox.js +180 -139
  21. package/dist/approval/inbox/virtual-inbox-list.d.ts +3 -3
  22. package/dist/approval/inbox/virtual-inbox-list.js +20 -21
  23. package/dist/approval/memory/memory-review.js +155 -154
  24. package/dist/approval/memory/memory-row.js +86 -87
  25. package/dist/approval/plan/plan-review.js +110 -129
  26. package/dist/approval/plan/plan-step-row.js +7 -6
  27. package/dist/approval/plan/plan-steps.d.ts +1 -1
  28. package/dist/approval/plan/plan-steps.js +2 -2
  29. package/dist/approval/plan/question-choices.js +10 -7
  30. package/dist/approval/plan/question.js +116 -112
  31. package/dist/approval/run/run-bar.js +43 -40
  32. package/dist/approval/shared/approval-line.d.ts +27 -0
  33. package/dist/approval/shared/approval-line.js +85 -0
  34. package/dist/approval/shared/risk-badge.d.ts +3 -5
  35. package/dist/approval/shared/risk-badge.js +11 -19
  36. package/dist/approval/shared/time.d.ts +0 -1
  37. package/dist/approval/shared/time.js +0 -1
  38. package/dist/approval/shared/use-focus-when-settled.d.ts +2 -0
  39. package/dist/approval/shared/use-focus-when-settled.js +18 -0
  40. package/dist/approval/spend/raise-cap-form.d.ts +2 -2
  41. package/dist/approval/spend/raise-cap-form.js +134 -126
  42. package/dist/approval/spend/spend-gate.js +133 -156
  43. package/dist/approval/spend/spend-math.d.ts +1 -0
  44. package/dist/approval/spend/spend-math.js +5 -2
  45. package/dist/approval/spend/spend-meter.js +5 -5
  46. package/dist/approval/tool/approval.js +114 -214
  47. package/dist/approval/tool/args/args-editor.js +147 -156
  48. package/dist/approval/tool/args/args-field.js +197 -109
  49. package/dist/approval/tool/deny-form.js +59 -66
  50. package/dist/approval/tool/tool-inputs.js +38 -45
  51. package/dist/chat/chat/chat.js +5 -4
  52. package/dist/chat/chat/use-stick-to-bottom.js +1 -3
  53. package/dist/chat/composer/composer-actions.js +4 -1
  54. package/dist/chat/composer/composer.js +4 -3
  55. package/dist/chat/composer/use-auto-grow.js +14 -10
  56. package/dist/chat/files/files.js +12 -10
  57. package/dist/chat/reply/fenced-code.js +1 -1
  58. package/dist/chat/reply/markdown-components.js +9 -116
  59. package/dist/chat/reply/reply.js +2 -2
  60. package/dist/chat/turn/group-parts.d.ts +1 -0
  61. package/dist/chat/turn/group-parts.js +6 -3
  62. package/dist/chat/turn/turn.js +13 -4
  63. package/dist/cost/context.js +3 -3
  64. package/dist/cost/cost-steps.js +31 -30
  65. package/dist/cost/cost.js +39 -39
  66. package/dist/cost/model-picker.js +5 -4
  67. package/dist/cost/shared/context-breakdown.js +10 -11
  68. package/dist/cost/shared/model-option-row.js +4 -3
  69. package/dist/cost/shared/step-cost-row.js +11 -12
  70. package/dist/cost/shared/usage-totals.d.ts +1 -0
  71. package/dist/cost/shared/usage-totals.js +19 -1
  72. package/dist/memory/cite.js +55 -47
  73. package/dist/memory/memorized.js +123 -108
  74. package/dist/memory/recall.js +136 -146
  75. package/dist/memory/shared/host-label.d.ts +1 -1
  76. package/dist/memory/shared/host-label.js +2 -2
  77. package/dist/memory/shared/source-mark.js +1 -1
  78. package/dist/memory/sources.d.ts +2 -1
  79. package/dist/memory/sources.js +135 -100
  80. package/dist/shared/decision-summary.js +2 -1
  81. package/dist/shared/line.d.ts +10 -0
  82. package/dist/shared/line.js +11 -0
  83. package/dist/shared/live-status.d.ts +3 -0
  84. package/dist/shared/live-status.js +11 -0
  85. package/dist/shared/reduced-motion.d.ts +1 -0
  86. package/dist/shared/reduced-motion.js +3 -0
  87. package/dist/thread/actions/action-button.js +1 -1
  88. package/dist/thread/actions/actions.d.ts +3 -1
  89. package/dist/thread/actions/actions.js +100 -81
  90. package/dist/thread/actions/branch-switcher.js +67 -37
  91. package/dist/thread/canvas/canvas-meta.d.ts +9 -0
  92. package/dist/thread/canvas/canvas-meta.js +35 -0
  93. package/dist/thread/canvas/canvas.d.ts +1 -1
  94. package/dist/thread/canvas/canvas.js +64 -74
  95. package/dist/thread/canvas/version-switcher.d.ts +1 -0
  96. package/dist/thread/canvas/version-switcher.js +106 -87
  97. package/dist/thread/code/code.js +4 -6
  98. package/dist/thread/code/copy-code-button.d.ts +2 -1
  99. package/dist/thread/code/copy-code-button.js +56 -25
  100. package/dist/thread/history/history.d.ts +1 -1
  101. package/dist/thread/history/history.js +104 -104
  102. package/dist/thread/history/row/history-row.js +8 -5
  103. package/dist/thread/history/row/thread-item-menu.js +13 -4
  104. package/dist/thread/history/row/thread-title-editor.js +1 -1
  105. package/dist/thread/history/virtual-history-list.js +1 -2
  106. package/dist/thread/index.d.ts +1 -0
  107. package/dist/thread/index.js +1 -0
  108. package/dist/thread/starters/starters.js +5 -4
  109. package/package.json +6 -6
  110. package/dist/agent/shared/status-dot.d.ts +0 -1
  111. package/dist/agent/shared/status-dot.js +0 -1
  112. package/dist/approval/shared/decision-line.d.ts +0 -1
  113. package/dist/approval/shared/decision-line.js +0 -1
  114. package/dist/memory/shared/disclosure.d.ts +0 -6
  115. package/dist/memory/shared/disclosure.js +0 -6
  116. package/dist/shared/panel.d.ts +0 -19
  117. package/dist/shared/panel.js +0 -77
  118. package/dist/shared/status-dot.d.ts +0 -6
  119. package/dist/shared/status-dot.js +0 -20
@@ -1,162 +1,197 @@
1
1
  "use client";
2
2
 
3
3
  import { c as _c } from "react/compiler-runtime";
4
- import { ChevronRight as ChevronRightIcon } from "@carbon/icons-react";
5
4
  import { Collapsible, CollapsibleContent, CollapsibleTrigger, cn } from "@locusgraph/components";
6
5
  import { pluralize } from "@locusgraph/utils";
7
- import { chevronClass, collapsibleTriggerClass, interactiveRowClass, ruledListClass, ruledRowClass } from "./shared/disclosure.js";
6
+ import { CaretRight as ChevronRightIcon, FileText as DocumentIcon } from "@phosphor-icons/react/ssr";
7
+ import { lineChevronClass, lineDetailClass, lineDetailLinkClass, lineDetailRowClass, lineIconClass, lineObjectClass, lineTriggerClass } from "../shared/line.js";
8
8
  import { hostLabel, sourceKey, toCitation } from "./shared/host-label.js";
9
- import { SourceMark } from "./shared/source-mark.js";
10
9
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
11
- const stackedMarkLimit = 3;
10
+ const sourceRowClass = cn(lineDetailRowClass, "items-baseline gap-3");
12
11
  export function Sources(t0) {
13
- const $ = _c(35);
12
+ const $ = _c(42);
14
13
  const {
15
14
  sources,
16
15
  onOpen,
17
16
  defaultOpen: t1,
17
+ firstIndex: t2,
18
18
  className
19
19
  } = t0;
20
20
  const defaultOpen = t1 === undefined ? false : t1;
21
+ const firstIndex = t2 === undefined ? 1 : t2;
21
22
  if (sources.length === 0) {
22
23
  return null;
23
24
  }
24
25
  let T0;
25
26
  let T1;
26
- let t2;
27
27
  let t3;
28
28
  let t4;
29
29
  let t5;
30
30
  let t6;
31
31
  let t7;
32
- if ($[0] !== className || $[1] !== defaultOpen || $[2] !== onOpen || $[3] !== sources) {
33
- const citations = sources.map(toCitation);
32
+ let t8;
33
+ if ($[0] !== className || $[1] !== defaultOpen || $[2] !== firstIndex || $[3] !== onOpen || $[4] !== sources) {
34
+ let t9;
35
+ if ($[13] !== firstIndex) {
36
+ t9 = (source, position) => toCitation(source, position, firstIndex);
37
+ $[13] = firstIndex;
38
+ $[14] = t9;
39
+ } else {
40
+ t9 = $[14];
41
+ }
42
+ const citations = sources.map(t9);
34
43
  T1 = Collapsible;
35
- t4 = "sources";
36
- t5 = defaultOpen;
37
- if ($[12] !== className) {
38
- t6 = cn("flex min-w-0 flex-col gap-2", className);
39
- $[12] = className;
40
- $[13] = t6;
44
+ t5 = "sources";
45
+ t6 = defaultOpen;
46
+ if ($[15] !== className) {
47
+ t7 = cn("flex min-w-0 flex-col", className);
48
+ $[15] = className;
49
+ $[16] = t7;
41
50
  } else {
42
- t6 = $[13];
51
+ t7 = $[16];
43
52
  }
44
- let t8;
45
- if ($[14] !== sources) {
46
- t8 = (citation, position) => /*#__PURE__*/_jsx(SourceMark, {
47
- citation: citation,
48
- className: "ring-card"
49
- }, sourceKey(sources[position], position));
50
- $[14] = sources;
51
- $[15] = t8;
53
+ let t10;
54
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
55
+ t10 = /*#__PURE__*/_jsx("span", {
56
+ "aria-hidden": true,
57
+ className: lineIconClass,
58
+ children: /*#__PURE__*/_jsx(DocumentIcon, {
59
+ weight: "bold",
60
+ "aria-hidden": true
61
+ })
62
+ });
63
+ $[17] = t10;
52
64
  } else {
53
- t8 = $[15];
65
+ t10 = $[17];
54
66
  }
55
- let t9;
56
- if ($[16] !== sources.length) {
57
- t9 = pluralize(sources.length, "source");
58
- $[16] = sources.length;
59
- $[17] = t9;
67
+ let t11;
68
+ if ($[18] !== sources.length) {
69
+ t11 = pluralize(sources.length, "source");
70
+ $[18] = sources.length;
71
+ $[19] = t11;
60
72
  } else {
61
- t9 = $[17];
73
+ t11 = $[19];
62
74
  }
63
- let t10;
64
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
65
- t10 = /*#__PURE__*/_jsx(ChevronRightIcon, {
66
- "aria-hidden": true,
67
- className: chevronClass
75
+ let t12;
76
+ if ($[20] !== t11) {
77
+ t12 = /*#__PURE__*/_jsxs("span", {
78
+ className: "truncate",
79
+ children: ["Used ", /*#__PURE__*/_jsx("span", {
80
+ className: lineObjectClass,
81
+ children: t11
82
+ })]
68
83
  });
69
- $[18] = t10;
84
+ $[20] = t11;
85
+ $[21] = t12;
70
86
  } else {
71
- t10 = $[18];
87
+ t12 = $[21];
72
88
  }
73
- t7 = /*#__PURE__*/_jsxs(CollapsibleTrigger, {
74
- className: collapsibleTriggerClass,
75
- children: [/*#__PURE__*/_jsx("span", {
89
+ let t13;
90
+ if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
91
+ t13 = /*#__PURE__*/_jsx(ChevronRightIcon, {
92
+ weight: "bold",
76
93
  "aria-hidden": true,
77
- className: "flex -space-x-1",
78
- children: citations.slice(0, stackedMarkLimit).map(t8)
79
- }), "Used ", t9, t10]
80
- });
94
+ className: lineChevronClass
95
+ });
96
+ $[22] = t13;
97
+ } else {
98
+ t13 = $[22];
99
+ }
100
+ if ($[23] !== t12) {
101
+ t8 = /*#__PURE__*/_jsxs(CollapsibleTrigger, {
102
+ className: lineTriggerClass,
103
+ children: [t10, t12, t13]
104
+ });
105
+ $[23] = t12;
106
+ $[24] = t8;
107
+ } else {
108
+ t8 = $[24];
109
+ }
81
110
  T0 = CollapsibleContent;
82
- t2 = ruledListClass;
83
- let t11;
84
- if ($[19] !== onOpen || $[20] !== sources) {
85
- t11 = (citation_0, position_0) => /*#__PURE__*/_jsx(SourceRow, {
86
- citation: citation_0,
111
+ if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
112
+ t3 = cn(lineDetailClass, "flex flex-col pb-2 text-muted-foreground");
113
+ $[25] = t3;
114
+ } else {
115
+ t3 = $[25];
116
+ }
117
+ let t14;
118
+ if ($[26] !== onOpen || $[27] !== sources) {
119
+ t14 = (citation, position_0) => /*#__PURE__*/_jsx(SourceRow, {
120
+ citation: citation,
87
121
  onOpen: onOpen
88
122
  }, sourceKey(sources[position_0], position_0));
89
- $[19] = onOpen;
90
- $[20] = sources;
91
- $[21] = t11;
123
+ $[26] = onOpen;
124
+ $[27] = sources;
125
+ $[28] = t14;
92
126
  } else {
93
- t11 = $[21];
127
+ t14 = $[28];
94
128
  }
95
- t3 = citations.map(t11);
129
+ t4 = citations.map(t14);
96
130
  $[0] = className;
97
131
  $[1] = defaultOpen;
98
- $[2] = onOpen;
99
- $[3] = sources;
100
- $[4] = T0;
101
- $[5] = T1;
102
- $[6] = t2;
132
+ $[2] = firstIndex;
133
+ $[3] = onOpen;
134
+ $[4] = sources;
135
+ $[5] = T0;
136
+ $[6] = T1;
103
137
  $[7] = t3;
104
138
  $[8] = t4;
105
139
  $[9] = t5;
106
140
  $[10] = t6;
107
141
  $[11] = t7;
142
+ $[12] = t8;
108
143
  } else {
109
- T0 = $[4];
110
- T1 = $[5];
111
- t2 = $[6];
144
+ T0 = $[5];
145
+ T1 = $[6];
112
146
  t3 = $[7];
113
147
  t4 = $[8];
114
148
  t5 = $[9];
115
149
  t6 = $[10];
116
150
  t7 = $[11];
117
- }
118
- let t8;
119
- if ($[22] !== t2 || $[23] !== t3) {
120
- t8 = /*#__PURE__*/_jsx("ol", {
121
- className: t2,
122
- children: t3
123
- });
124
- $[22] = t2;
125
- $[23] = t3;
126
- $[24] = t8;
127
- } else {
128
- t8 = $[24];
151
+ t8 = $[12];
129
152
  }
130
153
  let t9;
131
- if ($[25] !== T0 || $[26] !== t8) {
132
- t9 = /*#__PURE__*/_jsx(T0, {
133
- children: t8
154
+ if ($[29] !== t3 || $[30] !== t4) {
155
+ t9 = /*#__PURE__*/_jsx("ol", {
156
+ className: t3,
157
+ children: t4
134
158
  });
135
- $[25] = T0;
136
- $[26] = t8;
137
- $[27] = t9;
159
+ $[29] = t3;
160
+ $[30] = t4;
161
+ $[31] = t9;
138
162
  } else {
139
- t9 = $[27];
163
+ t9 = $[31];
140
164
  }
141
165
  let t10;
142
- if ($[28] !== T1 || $[29] !== t4 || $[30] !== t5 || $[31] !== t6 || $[32] !== t7 || $[33] !== t9) {
143
- t10 = /*#__PURE__*/_jsxs(T1, {
144
- "data-slot": t4,
145
- defaultOpen: t5,
146
- className: t6,
147
- children: [t7, t9]
166
+ if ($[32] !== T0 || $[33] !== t9) {
167
+ t10 = /*#__PURE__*/_jsx(T0, {
168
+ children: t9
148
169
  });
149
- $[28] = T1;
150
- $[29] = t4;
151
- $[30] = t5;
152
- $[31] = t6;
153
- $[32] = t7;
170
+ $[32] = T0;
154
171
  $[33] = t9;
155
172
  $[34] = t10;
156
173
  } else {
157
174
  t10 = $[34];
158
175
  }
159
- return t10;
176
+ let t11;
177
+ if ($[35] !== T1 || $[36] !== t10 || $[37] !== t5 || $[38] !== t6 || $[39] !== t7 || $[40] !== t8) {
178
+ t11 = /*#__PURE__*/_jsxs(T1, {
179
+ "data-slot": t5,
180
+ defaultOpen: t6,
181
+ className: t7,
182
+ children: [t8, t10]
183
+ });
184
+ $[35] = T1;
185
+ $[36] = t10;
186
+ $[37] = t5;
187
+ $[38] = t6;
188
+ $[39] = t7;
189
+ $[40] = t8;
190
+ $[41] = t11;
191
+ } else {
192
+ t11 = $[41];
193
+ }
194
+ return t11;
160
195
  }
161
196
  function SourceRow(t0) {
162
197
  const $ = _c(21);
@@ -177,7 +212,7 @@ function SourceRow(t0) {
177
212
  let t2;
178
213
  if ($[2] !== citation.index) {
179
214
  t2 = /*#__PURE__*/_jsx("span", {
180
- className: "w-4 shrink-0 font-mono text-xs text-muted-foreground tabular-nums",
215
+ className: "w-3 shrink-0 text-xs text-faint tabular-nums",
181
216
  children: citation.index
182
217
  });
183
218
  $[2] = citation.index;
@@ -188,7 +223,7 @@ function SourceRow(t0) {
188
223
  let t3;
189
224
  if ($[4] !== citation.title) {
190
225
  t3 = /*#__PURE__*/_jsx("span", {
191
- className: "min-w-0 flex-1 truncate",
226
+ className: "min-w-0 truncate",
192
227
  children: citation.title
193
228
  });
194
229
  $[4] = citation.title;
@@ -199,7 +234,7 @@ function SourceRow(t0) {
199
234
  let t4;
200
235
  if ($[6] !== host || $[7] !== showHost) {
201
236
  t4 = showHost && /*#__PURE__*/_jsx("span", {
202
- className: "max-w-[40%] shrink-0 truncate text-xs text-muted-foreground",
237
+ className: "max-w-[40%] shrink-0 truncate text-xs text-faint",
203
238
  children: host
204
239
  });
205
240
  $[6] = host;
@@ -228,17 +263,17 @@ function SourceRow(t0) {
228
263
  type: "button",
229
264
  "aria-label": label,
230
265
  onClick: () => onOpen(citation),
231
- className: cn(ruledRowClass, interactiveRowClass),
266
+ className: cn(sourceRowClass, lineDetailLinkClass),
232
267
  children: content
233
268
  }) : citation.url ? /*#__PURE__*/_jsx("a", {
234
269
  href: citation.url,
235
270
  target: "_blank",
236
271
  rel: "noreferrer",
237
- "aria-label": label,
238
- className: cn(ruledRowClass, interactiveRowClass),
272
+ "aria-label": `${label}, opens in a new tab`,
273
+ className: cn(sourceRowClass, lineDetailLinkClass),
239
274
  children: content
240
275
  }) : /*#__PURE__*/_jsx("div", {
241
- className: ruledRowClass,
276
+ className: sourceRowClass,
242
277
  children: content
243
278
  });
244
279
  $[13] = citation;
@@ -1,4 +1,4 @@
1
- import { Checkmark as CheckIcon, Close as XIcon } from "@carbon/icons-react";
1
+ import { Check as CheckIcon, X as XIcon } from "@phosphor-icons/react/ssr";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  const decisionTimeFormat = new Intl.DateTimeFormat("en-US", {
4
4
  dateStyle: "medium",
@@ -43,6 +43,7 @@ export function DecisionSummary({
43
43
  "data-approved": decision.approved,
44
44
  className: "flex items-start gap-2.5 text-sm",
45
45
  children: [/*#__PURE__*/_jsx(Icon, {
46
+ weight: "bold",
46
47
  "aria-hidden": true,
47
48
  className: `mt-0.5 size-4 shrink-0 ${decision.approved ? "text-good" : "text-destructive"}`
48
49
  }), /*#__PURE__*/_jsxs("div", {
@@ -0,0 +1,10 @@
1
+ export declare const lineRowClass = "flex min-h-control-sm w-fit max-w-full items-center gap-2 text-left text-sm text-muted-foreground";
2
+ export declare const lineTriggerClass = "group flex min-h-control-sm w-fit max-w-full items-center gap-2 text-left text-sm text-muted-foreground locus-focus-ring transition-colors duration-150 hover:text-foreground motion-reduce:transition-none";
3
+ export declare const lineIconClass = "flex size-4 shrink-0 items-center justify-center [&_svg]:size-3.5 text-faint";
4
+ export declare const lineMemoryIconClass = "flex size-4 shrink-0 items-center justify-center [&_svg]:size-3.5 text-memory";
5
+ export declare const lineObjectClass = "font-medium text-foreground";
6
+ export declare const lineMemoryObjectClass = "font-medium text-memory";
7
+ export declare const lineChevronClass = "size-3 shrink-0 text-faint opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[state=open]:rotate-90 group-data-[state=open]:opacity-100 [@media(hover:none)]:opacity-100 motion-reduce:transition-none";
8
+ export declare const lineDetailClass = "min-w-0 pl-6 text-sm";
9
+ export declare const lineDetailRowClass = "flex w-full min-w-0 py-1 text-left outline-none transition-colors duration-150 motion-reduce:transition-none";
10
+ export declare const lineDetailLinkClass = "hover:text-interactive locus-focus-ring";
@@ -0,0 +1,11 @@
1
+ export const lineRowClass = "flex min-h-control-sm w-fit max-w-full items-center gap-2 text-left text-sm text-muted-foreground";
2
+ export const lineTriggerClass = `group ${lineRowClass} locus-focus-ring transition-colors duration-150 hover:text-foreground motion-reduce:transition-none`;
3
+ const lineIconFrame = "flex size-4 shrink-0 items-center justify-center [&_svg]:size-3.5";
4
+ export const lineIconClass = `${lineIconFrame} text-faint`;
5
+ export const lineMemoryIconClass = `${lineIconFrame} text-memory`;
6
+ export const lineObjectClass = "font-medium text-foreground";
7
+ export const lineMemoryObjectClass = "font-medium text-memory";
8
+ export const lineChevronClass = "size-3 shrink-0 text-faint opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[state=open]:rotate-90 group-data-[state=open]:opacity-100 [@media(hover:none)]:opacity-100 motion-reduce:transition-none";
9
+ export const lineDetailClass = "min-w-0 pl-6 text-sm";
10
+ export const lineDetailRowClass = "flex w-full min-w-0 py-1 text-left outline-none transition-colors duration-150 motion-reduce:transition-none";
11
+ export const lineDetailLinkClass = "hover:text-interactive locus-focus-ring";
@@ -0,0 +1,3 @@
1
+ export declare function LiveStatus({ message }: {
2
+ message: string;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function LiveStatus({
3
+ message
4
+ }) {
5
+ return /*#__PURE__*/_jsx("span", {
6
+ role: "status",
7
+ "aria-live": "polite",
8
+ className: "sr-only",
9
+ children: message
10
+ });
11
+ }
@@ -0,0 +1 @@
1
+ export declare function prefersReducedMotion(): boolean;
@@ -0,0 +1,3 @@
1
+ export function prefersReducedMotion() {
2
+ return typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches === true;
3
+ }
@@ -13,7 +13,7 @@ export function ActionButton({
13
13
  variant: "ghost",
14
14
  size: "icon-sm",
15
15
  "aria-label": label,
16
- className: "text-muted-foreground hover:bg-accent hover:text-foreground [&_svg]:size-4",
16
+ className: "text-faint hover:bg-transparent hover:text-interactive disabled:opacity-40 aria-pressed:text-foreground dark:hover:bg-transparent [&_svg]:size-4",
17
17
  ...props,
18
18
  children: children
19
19
  })
@@ -8,6 +8,8 @@ type ActionsProps = ComponentProps<"div"> & {
8
8
  onFeedback?: (feedback: MessageFeedback) => void;
9
9
  branch?: MessageBranch;
10
10
  onBranchChange?: (index: number) => void;
11
+ align?: "start" | "end";
12
+ reveal?: "always" | "hover";
11
13
  };
12
- export declare function Actions({ onCopy, onRetry, feedback, onFeedback, branch, onBranchChange, className, ...props }: ActionsProps): import("react").JSX.Element | null;
14
+ export declare function Actions({ onCopy, onRetry, feedback, onFeedback, branch, onBranchChange, align, reveal, className, ...props }: ActionsProps): import("react").JSX.Element | null;
13
15
  export {};