@locusgraph/loop 0.3.0 → 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 +70 -17
- package/dist/agent/pulse/marks/bars-mark.js +39 -15
- package/dist/agent/pulse/marks/glyph-mark.js +57 -16
- package/dist/agent/pulse/marks/locus-mark.js +39 -13
- package/dist/agent/pulse/marks/orb-mark.js +21 -9
- 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 +36 -15
- 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 +248 -86
- package/dist/approval/inbox/inbox.d.ts +3 -3
- package/dist/approval/inbox/inbox.js +251 -57
- package/dist/approval/inbox/virtual-inbox-list.d.ts +3 -3
- package/dist/approval/inbox/virtual-inbox-list.js +107 -30
- package/dist/approval/memory/memory-review.js +228 -91
- package/dist/approval/memory/memory-row.js +192 -56
- package/dist/approval/plan/plan-review.js +241 -108
- package/dist/approval/plan/plan-step-row.js +184 -77
- 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 +139 -48
- package/dist/approval/plan/question.js +189 -67
- package/dist/approval/run/run-bar.js +138 -49
- 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-on-mount.js +23 -5
- 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 +235 -52
- package/dist/approval/spend/spend-gate.js +200 -106
- 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 +157 -96
- package/dist/approval/tool/args/args-editor.js +232 -81
- package/dist/approval/tool/args/args-field.js +333 -60
- package/dist/approval/tool/deny-form.js +114 -32
- package/dist/approval/tool/tool-inputs.js +93 -33
- package/dist/chat/chat/chat.js +5 -4
- package/dist/chat/chat/use-stick-to-bottom.js +116 -63
- package/dist/chat/chat/virtual-chat-items.js +129 -34
- package/dist/chat/composer/composer-actions.d.ts +1 -2
- package/dist/chat/composer/composer-actions.js +136 -50
- package/dist/chat/composer/composer-status.d.ts +2 -0
- package/dist/chat/composer/composer-status.js +3 -0
- package/dist/chat/composer/composer.d.ts +1 -1
- package/dist/chat/composer/composer.js +6 -4
- package/dist/chat/composer/use-auto-grow.js +29 -8
- package/dist/chat/files/files.js +296 -67
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- 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 +176 -43
- 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 +190 -59
- package/dist/memory/memorized.js +231 -62
- package/dist/memory/recall.js +272 -85
- 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 +277 -62
- 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/shared/virtual/use-list-virtualizer.js +2 -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 +129 -23
- 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 +161 -45
- 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 +91 -26
- 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 +106 -22
- package/dist/thread/history/row/thread-item-menu.js +84 -20
- package/dist/thread/history/row/thread-title-editor.js +74 -29
- package/dist/thread/history/virtual-history-list.js +83 -46
- package/dist/thread/index.d.ts +1 -0
- package/dist/thread/index.js +1 -0
- package/dist/thread/starters/starters.js +91 -28
- package/dist/thread/use-copied.js +40 -10
- 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,86 +1,301 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
4
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger, cn } from "@locusgraph/components";
|
|
3
5
|
import { pluralize } from "@locusgraph/utils";
|
|
4
|
-
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";
|
|
5
8
|
import { hostLabel, sourceKey, toCitation } from "./shared/host-label.js";
|
|
6
|
-
import { SourceMark } from "./shared/source-mark.js";
|
|
7
9
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
-
const
|
|
9
|
-
export function Sources({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
const sourceRowClass = cn(lineDetailRowClass, "items-baseline gap-3");
|
|
11
|
+
export function Sources(t0) {
|
|
12
|
+
const $ = _c(42);
|
|
13
|
+
const {
|
|
14
|
+
sources,
|
|
15
|
+
onOpen,
|
|
16
|
+
defaultOpen: t1,
|
|
17
|
+
firstIndex: t2,
|
|
18
|
+
className
|
|
19
|
+
} = t0;
|
|
20
|
+
const defaultOpen = t1 === undefined ? false : t1;
|
|
21
|
+
const firstIndex = t2 === undefined ? 1 : t2;
|
|
22
|
+
if (sources.length === 0) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
let T0;
|
|
26
|
+
let T1;
|
|
27
|
+
let t3;
|
|
28
|
+
let t4;
|
|
29
|
+
let t5;
|
|
30
|
+
let t6;
|
|
31
|
+
let t7;
|
|
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);
|
|
43
|
+
T1 = Collapsible;
|
|
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;
|
|
50
|
+
} else {
|
|
51
|
+
t7 = $[16];
|
|
52
|
+
}
|
|
53
|
+
let t10;
|
|
54
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
55
|
+
t10 = /*#__PURE__*/_jsx("span", {
|
|
24
56
|
"aria-hidden": true,
|
|
25
|
-
className:
|
|
26
|
-
children:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
})
|
|
57
|
+
className: lineIconClass,
|
|
58
|
+
children: /*#__PURE__*/_jsx(DocumentIcon, {
|
|
59
|
+
weight: "bold",
|
|
60
|
+
"aria-hidden": true
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
$[17] = t10;
|
|
64
|
+
} else {
|
|
65
|
+
t10 = $[17];
|
|
66
|
+
}
|
|
67
|
+
let t11;
|
|
68
|
+
if ($[18] !== sources.length) {
|
|
69
|
+
t11 = pluralize(sources.length, "source");
|
|
70
|
+
$[18] = sources.length;
|
|
71
|
+
$[19] = t11;
|
|
72
|
+
} else {
|
|
73
|
+
t11 = $[19];
|
|
74
|
+
}
|
|
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
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
$[20] = t11;
|
|
85
|
+
$[21] = t12;
|
|
86
|
+
} else {
|
|
87
|
+
t12 = $[21];
|
|
88
|
+
}
|
|
89
|
+
let t13;
|
|
90
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
91
|
+
t13 = /*#__PURE__*/_jsx(ChevronRightIcon, {
|
|
92
|
+
weight: "bold",
|
|
31
93
|
"aria-hidden": true,
|
|
32
|
-
className:
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
+
}
|
|
110
|
+
T0 = CollapsibleContent;
|
|
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,
|
|
121
|
+
onOpen: onOpen
|
|
122
|
+
}, sourceKey(sources[position_0], position_0));
|
|
123
|
+
$[26] = onOpen;
|
|
124
|
+
$[27] = sources;
|
|
125
|
+
$[28] = t14;
|
|
126
|
+
} else {
|
|
127
|
+
t14 = $[28];
|
|
128
|
+
}
|
|
129
|
+
t4 = citations.map(t14);
|
|
130
|
+
$[0] = className;
|
|
131
|
+
$[1] = defaultOpen;
|
|
132
|
+
$[2] = firstIndex;
|
|
133
|
+
$[3] = onOpen;
|
|
134
|
+
$[4] = sources;
|
|
135
|
+
$[5] = T0;
|
|
136
|
+
$[6] = T1;
|
|
137
|
+
$[7] = t3;
|
|
138
|
+
$[8] = t4;
|
|
139
|
+
$[9] = t5;
|
|
140
|
+
$[10] = t6;
|
|
141
|
+
$[11] = t7;
|
|
142
|
+
$[12] = t8;
|
|
143
|
+
} else {
|
|
144
|
+
T0 = $[5];
|
|
145
|
+
T1 = $[6];
|
|
146
|
+
t3 = $[7];
|
|
147
|
+
t4 = $[8];
|
|
148
|
+
t5 = $[9];
|
|
149
|
+
t6 = $[10];
|
|
150
|
+
t7 = $[11];
|
|
151
|
+
t8 = $[12];
|
|
152
|
+
}
|
|
153
|
+
let t9;
|
|
154
|
+
if ($[29] !== t3 || $[30] !== t4) {
|
|
155
|
+
t9 = /*#__PURE__*/_jsx("ol", {
|
|
156
|
+
className: t3,
|
|
157
|
+
children: t4
|
|
158
|
+
});
|
|
159
|
+
$[29] = t3;
|
|
160
|
+
$[30] = t4;
|
|
161
|
+
$[31] = t9;
|
|
162
|
+
} else {
|
|
163
|
+
t9 = $[31];
|
|
164
|
+
}
|
|
165
|
+
let t10;
|
|
166
|
+
if ($[32] !== T0 || $[33] !== t9) {
|
|
167
|
+
t10 = /*#__PURE__*/_jsx(T0, {
|
|
168
|
+
children: t9
|
|
169
|
+
});
|
|
170
|
+
$[32] = T0;
|
|
171
|
+
$[33] = t9;
|
|
172
|
+
$[34] = t10;
|
|
173
|
+
} else {
|
|
174
|
+
t10 = $[34];
|
|
175
|
+
}
|
|
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;
|
|
44
195
|
}
|
|
45
|
-
function SourceRow({
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
196
|
+
function SourceRow(t0) {
|
|
197
|
+
const $ = _c(21);
|
|
198
|
+
const {
|
|
199
|
+
citation,
|
|
200
|
+
onOpen
|
|
201
|
+
} = t0;
|
|
202
|
+
let t1;
|
|
203
|
+
if ($[0] !== citation.url) {
|
|
204
|
+
t1 = hostLabel(citation.url);
|
|
205
|
+
$[0] = citation.url;
|
|
206
|
+
$[1] = t1;
|
|
207
|
+
} else {
|
|
208
|
+
t1 = $[1];
|
|
209
|
+
}
|
|
210
|
+
const host = t1;
|
|
50
211
|
const showHost = host !== undefined && host !== citation.title;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
212
|
+
let t2;
|
|
213
|
+
if ($[2] !== citation.index) {
|
|
214
|
+
t2 = /*#__PURE__*/_jsx("span", {
|
|
215
|
+
className: "w-3 shrink-0 text-xs text-faint tabular-nums",
|
|
54
216
|
children: citation.index
|
|
55
|
-
})
|
|
56
|
-
|
|
217
|
+
});
|
|
218
|
+
$[2] = citation.index;
|
|
219
|
+
$[3] = t2;
|
|
220
|
+
} else {
|
|
221
|
+
t2 = $[3];
|
|
222
|
+
}
|
|
223
|
+
let t3;
|
|
224
|
+
if ($[4] !== citation.title) {
|
|
225
|
+
t3 = /*#__PURE__*/_jsx("span", {
|
|
226
|
+
className: "min-w-0 truncate",
|
|
57
227
|
children: citation.title
|
|
58
|
-
})
|
|
59
|
-
|
|
228
|
+
});
|
|
229
|
+
$[4] = citation.title;
|
|
230
|
+
$[5] = t3;
|
|
231
|
+
} else {
|
|
232
|
+
t3 = $[5];
|
|
233
|
+
}
|
|
234
|
+
let t4;
|
|
235
|
+
if ($[6] !== host || $[7] !== showHost) {
|
|
236
|
+
t4 = showHost && /*#__PURE__*/_jsx("span", {
|
|
237
|
+
className: "max-w-[40%] shrink-0 truncate text-xs text-faint",
|
|
60
238
|
children: host
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
239
|
+
});
|
|
240
|
+
$[6] = host;
|
|
241
|
+
$[7] = showHost;
|
|
242
|
+
$[8] = t4;
|
|
243
|
+
} else {
|
|
244
|
+
t4 = $[8];
|
|
245
|
+
}
|
|
246
|
+
let t5;
|
|
247
|
+
if ($[9] !== t2 || $[10] !== t3 || $[11] !== t4) {
|
|
248
|
+
t5 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
249
|
+
children: [t2, t3, t4]
|
|
250
|
+
});
|
|
251
|
+
$[9] = t2;
|
|
252
|
+
$[10] = t3;
|
|
253
|
+
$[11] = t4;
|
|
254
|
+
$[12] = t5;
|
|
255
|
+
} else {
|
|
256
|
+
t5 = $[12];
|
|
257
|
+
}
|
|
258
|
+
const content = t5;
|
|
64
259
|
const label = `Open source ${citation.index}: ${citation.title}`;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
children: onOpen ? /*#__PURE__*/_jsx("button", {
|
|
260
|
+
let t6;
|
|
261
|
+
if ($[13] !== citation || $[14] !== content || $[15] !== label || $[16] !== onOpen) {
|
|
262
|
+
t6 = onOpen ? /*#__PURE__*/_jsx("button", {
|
|
69
263
|
type: "button",
|
|
70
264
|
"aria-label": label,
|
|
71
265
|
onClick: () => onOpen(citation),
|
|
72
|
-
className: cn(
|
|
266
|
+
className: cn(sourceRowClass, lineDetailLinkClass),
|
|
73
267
|
children: content
|
|
74
268
|
}) : citation.url ? /*#__PURE__*/_jsx("a", {
|
|
75
269
|
href: citation.url,
|
|
76
270
|
target: "_blank",
|
|
77
271
|
rel: "noreferrer",
|
|
78
|
-
"aria-label": label,
|
|
79
|
-
className: cn(
|
|
272
|
+
"aria-label": `${label}, opens in a new tab`,
|
|
273
|
+
className: cn(sourceRowClass, lineDetailLinkClass),
|
|
80
274
|
children: content
|
|
81
275
|
}) : /*#__PURE__*/_jsx("div", {
|
|
82
|
-
className:
|
|
276
|
+
className: sourceRowClass,
|
|
83
277
|
children: content
|
|
84
|
-
})
|
|
85
|
-
|
|
278
|
+
});
|
|
279
|
+
$[13] = citation;
|
|
280
|
+
$[14] = content;
|
|
281
|
+
$[15] = label;
|
|
282
|
+
$[16] = onOpen;
|
|
283
|
+
$[17] = t6;
|
|
284
|
+
} else {
|
|
285
|
+
t6 = $[17];
|
|
286
|
+
}
|
|
287
|
+
let t7;
|
|
288
|
+
if ($[18] !== citation.index || $[19] !== t6) {
|
|
289
|
+
t7 = /*#__PURE__*/_jsx("li", {
|
|
290
|
+
"data-slot": "sources-item",
|
|
291
|
+
"data-index": citation.index,
|
|
292
|
+
children: t6
|
|
293
|
+
});
|
|
294
|
+
$[18] = citation.index;
|
|
295
|
+
$[19] = t6;
|
|
296
|
+
$[20] = t7;
|
|
297
|
+
} else {
|
|
298
|
+
t7 = $[20];
|
|
299
|
+
}
|
|
300
|
+
return t7;
|
|
86
301
|
}
|
|
@@ -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 {};
|