@locusgraph/loop 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/pulse/gradient-label.js +6 -5
- package/dist/agent/pulse/marks/bars-mark.js +1 -1
- package/dist/agent/pulse/marks/glyph-mark.js +2 -2
- package/dist/agent/pulse/marks/locus-mark.js +1 -1
- package/dist/agent/pulse/pulse.js +1 -1
- package/dist/agent/pulse/use-loop-animation.d.ts +0 -1
- package/dist/agent/pulse/use-loop-animation.js +1 -3
- package/dist/agent/steps/step-icon.js +20 -13
- package/dist/agent/steps/steps.js +39 -37
- package/dist/agent/thinking/thinking.js +65 -62
- package/dist/agent/tool/json-block.js +10 -7
- package/dist/agent/tool/tool-status.d.ts +2 -0
- package/dist/agent/tool/tool-status.js +16 -13
- package/dist/agent/tool/tool.d.ts +8 -1
- package/dist/agent/tool/tool.js +238 -119
- package/dist/approval/inbox/inbox-row.d.ts +3 -3
- package/dist/approval/inbox/inbox-row.js +135 -200
- package/dist/approval/inbox/inbox.d.ts +3 -3
- package/dist/approval/inbox/inbox.js +180 -139
- package/dist/approval/inbox/virtual-inbox-list.d.ts +3 -3
- package/dist/approval/inbox/virtual-inbox-list.js +20 -21
- package/dist/approval/memory/memory-review.js +155 -154
- package/dist/approval/memory/memory-row.js +86 -87
- package/dist/approval/plan/plan-review.js +110 -129
- package/dist/approval/plan/plan-step-row.js +7 -6
- package/dist/approval/plan/plan-steps.d.ts +1 -1
- package/dist/approval/plan/plan-steps.js +2 -2
- package/dist/approval/plan/question-choices.js +10 -7
- package/dist/approval/plan/question.js +116 -112
- package/dist/approval/run/run-bar.js +43 -40
- package/dist/approval/shared/approval-line.d.ts +27 -0
- package/dist/approval/shared/approval-line.js +85 -0
- package/dist/approval/shared/risk-badge.d.ts +3 -5
- package/dist/approval/shared/risk-badge.js +11 -19
- package/dist/approval/shared/time.d.ts +0 -1
- package/dist/approval/shared/time.js +0 -1
- package/dist/approval/shared/use-focus-when-settled.d.ts +2 -0
- package/dist/approval/shared/use-focus-when-settled.js +18 -0
- package/dist/approval/spend/raise-cap-form.d.ts +2 -2
- package/dist/approval/spend/raise-cap-form.js +134 -126
- package/dist/approval/spend/spend-gate.js +133 -156
- package/dist/approval/spend/spend-math.d.ts +1 -0
- package/dist/approval/spend/spend-math.js +5 -2
- package/dist/approval/spend/spend-meter.js +5 -5
- package/dist/approval/tool/approval.js +114 -214
- package/dist/approval/tool/args/args-editor.js +147 -156
- package/dist/approval/tool/args/args-field.js +197 -109
- package/dist/approval/tool/deny-form.js +59 -66
- package/dist/approval/tool/tool-inputs.js +38 -45
- package/dist/chat/chat/chat.js +5 -4
- package/dist/chat/chat/use-stick-to-bottom.js +1 -3
- package/dist/chat/composer/composer-actions.js +4 -1
- package/dist/chat/composer/composer.js +4 -3
- package/dist/chat/composer/use-auto-grow.js +14 -10
- package/dist/chat/files/files.js +12 -10
- package/dist/chat/reply/fenced-code.js +1 -1
- package/dist/chat/reply/markdown-components.js +9 -116
- package/dist/chat/reply/reply.js +2 -2
- package/dist/chat/turn/group-parts.d.ts +1 -0
- package/dist/chat/turn/group-parts.js +6 -3
- package/dist/chat/turn/turn.js +13 -4
- package/dist/cost/context.js +3 -3
- package/dist/cost/cost-steps.js +31 -30
- package/dist/cost/cost.js +39 -39
- package/dist/cost/model-picker.js +5 -4
- package/dist/cost/shared/context-breakdown.js +10 -11
- package/dist/cost/shared/model-option-row.js +4 -3
- package/dist/cost/shared/step-cost-row.js +11 -12
- package/dist/cost/shared/usage-totals.d.ts +1 -0
- package/dist/cost/shared/usage-totals.js +19 -1
- package/dist/memory/cite.js +55 -47
- package/dist/memory/memorized.js +123 -108
- package/dist/memory/recall.js +136 -146
- package/dist/memory/shared/host-label.d.ts +1 -1
- package/dist/memory/shared/host-label.js +2 -2
- package/dist/memory/shared/source-mark.js +1 -1
- package/dist/memory/sources.d.ts +2 -1
- package/dist/memory/sources.js +135 -100
- package/dist/shared/decision-summary.js +2 -1
- package/dist/shared/line.d.ts +10 -0
- package/dist/shared/line.js +11 -0
- package/dist/shared/live-status.d.ts +3 -0
- package/dist/shared/live-status.js +11 -0
- package/dist/shared/reduced-motion.d.ts +1 -0
- package/dist/shared/reduced-motion.js +3 -0
- package/dist/thread/actions/action-button.js +1 -1
- package/dist/thread/actions/actions.d.ts +3 -1
- package/dist/thread/actions/actions.js +100 -81
- package/dist/thread/actions/branch-switcher.js +67 -37
- package/dist/thread/canvas/canvas-meta.d.ts +9 -0
- package/dist/thread/canvas/canvas-meta.js +35 -0
- package/dist/thread/canvas/canvas.d.ts +1 -1
- package/dist/thread/canvas/canvas.js +64 -74
- package/dist/thread/canvas/version-switcher.d.ts +1 -0
- package/dist/thread/canvas/version-switcher.js +106 -87
- package/dist/thread/code/code.js +4 -6
- package/dist/thread/code/copy-code-button.d.ts +2 -1
- package/dist/thread/code/copy-code-button.js +56 -25
- package/dist/thread/history/history.d.ts +1 -1
- package/dist/thread/history/history.js +104 -104
- package/dist/thread/history/row/history-row.js +8 -5
- package/dist/thread/history/row/thread-item-menu.js +13 -4
- package/dist/thread/history/row/thread-title-editor.js +1 -1
- package/dist/thread/history/virtual-history-list.js +1 -2
- package/dist/thread/index.d.ts +1 -0
- package/dist/thread/index.js +1 -0
- package/dist/thread/starters/starters.js +5 -4
- package/package.json +6 -6
- package/dist/agent/shared/status-dot.d.ts +0 -1
- package/dist/agent/shared/status-dot.js +0 -1
- package/dist/approval/shared/decision-line.d.ts +0 -1
- package/dist/approval/shared/decision-line.js +0 -1
- package/dist/memory/shared/disclosure.d.ts +0 -6
- package/dist/memory/shared/disclosure.js +0 -6
- package/dist/shared/panel.d.ts +0 -19
- package/dist/shared/panel.js +0 -77
- package/dist/shared/status-dot.d.ts +0 -6
- package/dist/shared/status-dot.js +0 -20
package/dist/memory/sources.js
CHANGED
|
@@ -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 {
|
|
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
|
|
10
|
+
const sourceRowClass = cn(lineDetailRowClass, "items-baseline gap-3");
|
|
12
11
|
export function Sources(t0) {
|
|
13
|
-
const $ = _c(
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
if ($[
|
|
38
|
-
|
|
39
|
-
$[
|
|
40
|
-
$[
|
|
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
|
-
|
|
51
|
+
t7 = $[16];
|
|
43
52
|
}
|
|
44
|
-
let
|
|
45
|
-
if ($[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
className:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
65
|
+
t10 = $[17];
|
|
54
66
|
}
|
|
55
|
-
let
|
|
56
|
-
if ($[
|
|
57
|
-
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
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
|
-
|
|
73
|
+
t11 = $[19];
|
|
62
74
|
}
|
|
63
|
-
let
|
|
64
|
-
if ($[
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
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
|
-
$[
|
|
84
|
+
$[20] = t11;
|
|
85
|
+
$[21] = t12;
|
|
70
86
|
} else {
|
|
71
|
-
|
|
87
|
+
t12 = $[21];
|
|
72
88
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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:
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
123
|
+
$[26] = onOpen;
|
|
124
|
+
$[27] = sources;
|
|
125
|
+
$[28] = t14;
|
|
92
126
|
} else {
|
|
93
|
-
|
|
127
|
+
t14 = $[28];
|
|
94
128
|
}
|
|
95
|
-
|
|
129
|
+
t4 = citations.map(t14);
|
|
96
130
|
$[0] = className;
|
|
97
131
|
$[1] = defaultOpen;
|
|
98
|
-
$[2] =
|
|
99
|
-
$[3] =
|
|
100
|
-
$[4] =
|
|
101
|
-
$[5] =
|
|
102
|
-
$[6] =
|
|
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 = $[
|
|
110
|
-
T1 = $[
|
|
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 ($[
|
|
132
|
-
t9 = /*#__PURE__*/_jsx(
|
|
133
|
-
|
|
154
|
+
if ($[29] !== t3 || $[30] !== t4) {
|
|
155
|
+
t9 = /*#__PURE__*/_jsx("ol", {
|
|
156
|
+
className: t3,
|
|
157
|
+
children: t4
|
|
134
158
|
});
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
159
|
+
$[29] = t3;
|
|
160
|
+
$[30] = t4;
|
|
161
|
+
$[31] = t9;
|
|
138
162
|
} else {
|
|
139
|
-
t9 = $[
|
|
163
|
+
t9 = $[31];
|
|
140
164
|
}
|
|
141
165
|
let t10;
|
|
142
|
-
if ($[
|
|
143
|
-
t10 = /*#__PURE__*/
|
|
144
|
-
|
|
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
|
-
$[
|
|
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
|
-
|
|
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-
|
|
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
|
|
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-
|
|
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(
|
|
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(
|
|
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:
|
|
276
|
+
className: sourceRowClass,
|
|
242
277
|
children: content
|
|
243
278
|
});
|
|
244
279
|
$[13] = citation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 @@
|
|
|
1
|
+
export declare function prefersReducedMotion(): boolean;
|
|
@@ -13,7 +13,7 @@ export function ActionButton({
|
|
|
13
13
|
variant: "ghost",
|
|
14
14
|
size: "icon-sm",
|
|
15
15
|
"aria-label": label,
|
|
16
|
-
className: "text-
|
|
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 {};
|