@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/agent/tool/tool.js
CHANGED
|
@@ -1,192 +1,311 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
|
-
import { ChevronRight as ChevronRightIcon, Tools as WrenchIcon } from "@carbon/icons-react";
|
|
5
4
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger, cn } from "@locusgraph/components";
|
|
5
|
+
import { CaretRight as ChevronRightIcon, Wrench as WrenchIcon } from "@phosphor-icons/react/ssr";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
+
import { lineChevronClass, lineDetailClass, lineIconClass, lineMemoryIconClass, lineMemoryObjectClass, lineObjectClass, lineTriggerClass } from "../../shared/line.js";
|
|
7
8
|
import { toolNameOf } from "../../types.js";
|
|
8
9
|
import { JsonBlock } from "./json-block.js";
|
|
9
|
-
import { ToolStatus } from "./tool-status.js";
|
|
10
|
+
import { humanToolName, isToolBusy, showsStateWord, ToolStatus } from "./tool-status.js";
|
|
10
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const toneClasses = {
|
|
13
|
+
default: {
|
|
14
|
+
icon: lineIconClass,
|
|
15
|
+
object: lineObjectClass
|
|
16
|
+
},
|
|
17
|
+
memory: {
|
|
18
|
+
icon: lineMemoryIconClass,
|
|
19
|
+
object: lineMemoryObjectClass
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function ToolLabel(t0) {
|
|
23
|
+
const $ = _c(17);
|
|
24
|
+
const {
|
|
25
|
+
part,
|
|
26
|
+
tone: t1,
|
|
27
|
+
verb,
|
|
28
|
+
activeVerb,
|
|
29
|
+
target
|
|
30
|
+
} = t0;
|
|
31
|
+
const tone = t1 === undefined ? "default" : t1;
|
|
32
|
+
let busy;
|
|
33
|
+
let object;
|
|
34
|
+
let t2;
|
|
35
|
+
let t3;
|
|
36
|
+
if ($[0] !== part || $[1] !== target || $[2] !== tone) {
|
|
37
|
+
t3 = Symbol.for("react.early_return_sentinel");
|
|
38
|
+
bb0: {
|
|
39
|
+
busy = isToolBusy(part.state);
|
|
40
|
+
const t4 = busy ? "font-medium" : toneClasses[tone].object;
|
|
41
|
+
let t5;
|
|
42
|
+
if ($[7] !== part || $[8] !== target) {
|
|
43
|
+
t5 = target ?? humanToolName(toolNameOf(part));
|
|
44
|
+
$[7] = part;
|
|
45
|
+
$[8] = target;
|
|
46
|
+
$[9] = t5;
|
|
47
|
+
} else {
|
|
48
|
+
t5 = $[9];
|
|
49
|
+
}
|
|
50
|
+
let t6;
|
|
51
|
+
if ($[10] !== t4 || $[11] !== t5) {
|
|
52
|
+
t6 = /*#__PURE__*/_jsx("span", {
|
|
53
|
+
className: t4,
|
|
54
|
+
children: t5
|
|
55
|
+
});
|
|
56
|
+
$[10] = t4;
|
|
57
|
+
$[11] = t5;
|
|
58
|
+
$[12] = t6;
|
|
59
|
+
} else {
|
|
60
|
+
t6 = $[12];
|
|
61
|
+
}
|
|
62
|
+
object = t6;
|
|
63
|
+
if (showsStateWord(part.state)) {
|
|
64
|
+
t3 = object;
|
|
65
|
+
break bb0;
|
|
66
|
+
}
|
|
67
|
+
t2 = cn(busy && "motion-safe:locus-shimmer");
|
|
68
|
+
}
|
|
69
|
+
$[0] = part;
|
|
70
|
+
$[1] = target;
|
|
71
|
+
$[2] = tone;
|
|
72
|
+
$[3] = busy;
|
|
73
|
+
$[4] = object;
|
|
74
|
+
$[5] = t2;
|
|
75
|
+
$[6] = t3;
|
|
76
|
+
} else {
|
|
77
|
+
busy = $[3];
|
|
78
|
+
object = $[4];
|
|
79
|
+
t2 = $[5];
|
|
80
|
+
t3 = $[6];
|
|
81
|
+
}
|
|
82
|
+
if (t3 !== Symbol.for("react.early_return_sentinel")) {
|
|
83
|
+
return t3;
|
|
84
|
+
}
|
|
85
|
+
const t4 = busy ? activeVerb ?? "Running" : verb ?? "Ran";
|
|
86
|
+
let t5;
|
|
87
|
+
if ($[13] !== object || $[14] !== t2 || $[15] !== t4) {
|
|
88
|
+
t5 = /*#__PURE__*/_jsxs("span", {
|
|
89
|
+
className: t2,
|
|
90
|
+
children: [t4, " ", object]
|
|
91
|
+
});
|
|
92
|
+
$[13] = object;
|
|
93
|
+
$[14] = t2;
|
|
94
|
+
$[15] = t4;
|
|
95
|
+
$[16] = t5;
|
|
96
|
+
} else {
|
|
97
|
+
t5 = $[16];
|
|
98
|
+
}
|
|
99
|
+
return t5;
|
|
100
|
+
}
|
|
11
101
|
export function Tool(t0) {
|
|
12
|
-
const $ = _c(
|
|
102
|
+
const $ = _c(47);
|
|
13
103
|
const {
|
|
14
104
|
part,
|
|
15
|
-
|
|
105
|
+
tone: t1,
|
|
106
|
+
verb,
|
|
107
|
+
activeVerb,
|
|
108
|
+
target,
|
|
109
|
+
icon,
|
|
110
|
+
defaultOpen: t2,
|
|
16
111
|
className
|
|
17
112
|
} = t0;
|
|
18
|
-
const
|
|
113
|
+
const tone = t1 === undefined ? "default" : t1;
|
|
114
|
+
const defaultOpen = t2 === undefined ? false : t2;
|
|
19
115
|
const [open, setOpen] = useState(defaultOpen);
|
|
20
116
|
const hasInput = part.input !== undefined;
|
|
21
117
|
const hasOutput = part.state === "output-available" && part.output !== undefined;
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
let
|
|
118
|
+
const t3 = part.state;
|
|
119
|
+
const t4 = part.toolCallId;
|
|
120
|
+
let t5;
|
|
25
121
|
if ($[0] !== className) {
|
|
26
|
-
|
|
122
|
+
t5 = cn("flex min-w-0 flex-col", className);
|
|
27
123
|
$[0] = className;
|
|
28
|
-
$[1] =
|
|
124
|
+
$[1] = t5;
|
|
29
125
|
} else {
|
|
30
|
-
|
|
126
|
+
t5 = $[1];
|
|
31
127
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
128
|
+
const t6 = toneClasses[tone];
|
|
129
|
+
let t7;
|
|
130
|
+
if ($[2] !== icon) {
|
|
131
|
+
t7 = icon ?? /*#__PURE__*/_jsx(WrenchIcon, {
|
|
132
|
+
weight: "bold",
|
|
133
|
+
"aria-hidden": true
|
|
37
134
|
});
|
|
38
|
-
$[2] =
|
|
135
|
+
$[2] = icon;
|
|
136
|
+
$[3] = t7;
|
|
39
137
|
} else {
|
|
40
|
-
|
|
138
|
+
t7 = $[3];
|
|
41
139
|
}
|
|
42
|
-
let
|
|
43
|
-
if ($[
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
t6 = $[4];
|
|
49
|
-
}
|
|
50
|
-
let t7;
|
|
51
|
-
if ($[5] !== t6) {
|
|
52
|
-
t7 = /*#__PURE__*/_jsx("span", {
|
|
53
|
-
className: "min-w-0 flex-1 truncate font-mono text-sm font-medium",
|
|
54
|
-
children: t6
|
|
140
|
+
let t8;
|
|
141
|
+
if ($[4] !== t6.icon || $[5] !== t7) {
|
|
142
|
+
t8 = /*#__PURE__*/_jsx("span", {
|
|
143
|
+
"aria-hidden": true,
|
|
144
|
+
className: t6.icon,
|
|
145
|
+
children: t7
|
|
55
146
|
});
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
147
|
+
$[4] = t6.icon;
|
|
148
|
+
$[5] = t7;
|
|
149
|
+
$[6] = t8;
|
|
58
150
|
} else {
|
|
59
|
-
|
|
151
|
+
t8 = $[6];
|
|
60
152
|
}
|
|
61
|
-
let
|
|
153
|
+
let t9;
|
|
62
154
|
if ($[7] !== part.state) {
|
|
63
|
-
|
|
155
|
+
t9 = /*#__PURE__*/_jsx(ToolStatus, {
|
|
64
156
|
state: part.state
|
|
65
157
|
});
|
|
66
158
|
$[7] = part.state;
|
|
67
|
-
$[8] =
|
|
159
|
+
$[8] = t9;
|
|
68
160
|
} else {
|
|
69
|
-
|
|
161
|
+
t9 = $[8];
|
|
70
162
|
}
|
|
71
|
-
const t9 = open && "rotate-90";
|
|
72
163
|
let t10;
|
|
73
|
-
if ($[9] !==
|
|
74
|
-
t10 =
|
|
75
|
-
|
|
76
|
-
|
|
164
|
+
if ($[9] !== activeVerb || $[10] !== part || $[11] !== target || $[12] !== tone || $[13] !== verb) {
|
|
165
|
+
t10 = /*#__PURE__*/_jsx(ToolLabel, {
|
|
166
|
+
part: part,
|
|
167
|
+
tone: tone,
|
|
168
|
+
verb: verb,
|
|
169
|
+
activeVerb: activeVerb,
|
|
170
|
+
target: target
|
|
171
|
+
});
|
|
172
|
+
$[9] = activeVerb;
|
|
173
|
+
$[10] = part;
|
|
174
|
+
$[11] = target;
|
|
175
|
+
$[12] = tone;
|
|
176
|
+
$[13] = verb;
|
|
177
|
+
$[14] = t10;
|
|
77
178
|
} else {
|
|
78
|
-
t10 = $[
|
|
179
|
+
t10 = $[14];
|
|
79
180
|
}
|
|
80
181
|
let t11;
|
|
81
|
-
if ($[
|
|
82
|
-
t11 = /*#__PURE__*/
|
|
83
|
-
"
|
|
84
|
-
|
|
182
|
+
if ($[15] !== t10 || $[16] !== t9) {
|
|
183
|
+
t11 = /*#__PURE__*/_jsxs("span", {
|
|
184
|
+
className: "flex min-w-0 items-baseline gap-1.5 truncate",
|
|
185
|
+
children: [t9, t10]
|
|
85
186
|
});
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
187
|
+
$[15] = t10;
|
|
188
|
+
$[16] = t9;
|
|
189
|
+
$[17] = t11;
|
|
88
190
|
} else {
|
|
89
|
-
t11 = $[
|
|
191
|
+
t11 = $[17];
|
|
90
192
|
}
|
|
91
193
|
let t12;
|
|
92
|
-
if ($[
|
|
93
|
-
t12 = /*#__PURE__*/
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
194
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
195
|
+
t12 = /*#__PURE__*/_jsx(ChevronRightIcon, {
|
|
196
|
+
weight: "bold",
|
|
197
|
+
"aria-hidden": true,
|
|
198
|
+
className: lineChevronClass
|
|
97
199
|
});
|
|
98
|
-
$[
|
|
99
|
-
$[14] = t11;
|
|
100
|
-
$[15] = t7;
|
|
101
|
-
$[16] = t8;
|
|
102
|
-
$[17] = t12;
|
|
200
|
+
$[18] = t12;
|
|
103
201
|
} else {
|
|
104
|
-
t12 = $[
|
|
202
|
+
t12 = $[18];
|
|
105
203
|
}
|
|
106
204
|
let t13;
|
|
107
|
-
if ($[
|
|
108
|
-
t13 =
|
|
205
|
+
if ($[19] !== t11 || $[20] !== t8) {
|
|
206
|
+
t13 = /*#__PURE__*/_jsxs(CollapsibleTrigger, {
|
|
207
|
+
className: lineTriggerClass,
|
|
208
|
+
children: [t8, t11, t12]
|
|
209
|
+
});
|
|
210
|
+
$[19] = t11;
|
|
211
|
+
$[20] = t8;
|
|
212
|
+
$[21] = t13;
|
|
213
|
+
} else {
|
|
214
|
+
t13 = $[21];
|
|
215
|
+
}
|
|
216
|
+
let t14;
|
|
217
|
+
if ($[22] !== part.errorText) {
|
|
218
|
+
t14 = part.errorText && /*#__PURE__*/_jsx("p", {
|
|
109
219
|
"data-slot": "tool-error",
|
|
110
220
|
role: "alert",
|
|
111
|
-
className: "
|
|
221
|
+
className: cn(lineDetailClass, "pb-1 text-destructive"),
|
|
112
222
|
children: part.errorText
|
|
113
223
|
});
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
224
|
+
$[22] = part.errorText;
|
|
225
|
+
$[23] = t14;
|
|
116
226
|
} else {
|
|
117
|
-
|
|
227
|
+
t14 = $[23];
|
|
118
228
|
}
|
|
119
|
-
let
|
|
120
|
-
if ($[
|
|
121
|
-
|
|
229
|
+
let t15;
|
|
230
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
231
|
+
t15 = cn(lineDetailClass, "flex flex-col gap-3 pt-1 pb-2");
|
|
232
|
+
$[24] = t15;
|
|
233
|
+
} else {
|
|
234
|
+
t15 = $[24];
|
|
235
|
+
}
|
|
236
|
+
let t16;
|
|
237
|
+
if ($[25] !== hasInput || $[26] !== part.input) {
|
|
238
|
+
t16 = hasInput && /*#__PURE__*/_jsx(JsonBlock, {
|
|
122
239
|
label: "Input",
|
|
123
240
|
value: part.input
|
|
124
241
|
});
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
242
|
+
$[25] = hasInput;
|
|
243
|
+
$[26] = part.input;
|
|
244
|
+
$[27] = t16;
|
|
128
245
|
} else {
|
|
129
|
-
|
|
246
|
+
t16 = $[27];
|
|
130
247
|
}
|
|
131
|
-
let
|
|
132
|
-
if ($[
|
|
133
|
-
|
|
248
|
+
let t17;
|
|
249
|
+
if ($[28] !== hasOutput || $[29] !== part.output) {
|
|
250
|
+
t17 = hasOutput && /*#__PURE__*/_jsx(JsonBlock, {
|
|
134
251
|
label: "Output",
|
|
135
252
|
value: part.output
|
|
136
253
|
});
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
254
|
+
$[28] = hasOutput;
|
|
255
|
+
$[29] = part.output;
|
|
256
|
+
$[30] = t17;
|
|
140
257
|
} else {
|
|
141
|
-
|
|
258
|
+
t17 = $[30];
|
|
142
259
|
}
|
|
143
|
-
let
|
|
144
|
-
if ($[
|
|
145
|
-
|
|
146
|
-
className: "text-
|
|
260
|
+
let t18;
|
|
261
|
+
if ($[31] !== hasInput || $[32] !== hasOutput) {
|
|
262
|
+
t18 = !hasInput && !hasOutput && /*#__PURE__*/_jsx("span", {
|
|
263
|
+
className: "text-faint",
|
|
147
264
|
children: "No input yet."
|
|
148
265
|
});
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
266
|
+
$[31] = hasInput;
|
|
267
|
+
$[32] = hasOutput;
|
|
268
|
+
$[33] = t18;
|
|
152
269
|
} else {
|
|
153
|
-
|
|
270
|
+
t18 = $[33];
|
|
154
271
|
}
|
|
155
|
-
let
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
272
|
+
let t19;
|
|
273
|
+
if ($[34] !== t16 || $[35] !== t17 || $[36] !== t18) {
|
|
274
|
+
t19 = /*#__PURE__*/_jsxs(CollapsibleContent, {
|
|
158
275
|
"data-slot": "tool-content",
|
|
159
|
-
className:
|
|
160
|
-
children: [
|
|
276
|
+
className: t15,
|
|
277
|
+
children: [t16, t17, t18]
|
|
161
278
|
});
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
279
|
+
$[34] = t16;
|
|
280
|
+
$[35] = t17;
|
|
281
|
+
$[36] = t18;
|
|
282
|
+
$[37] = t19;
|
|
166
283
|
} else {
|
|
167
|
-
|
|
284
|
+
t19 = $[37];
|
|
168
285
|
}
|
|
169
|
-
let
|
|
170
|
-
if ($[
|
|
171
|
-
|
|
286
|
+
let t20;
|
|
287
|
+
if ($[38] !== open || $[39] !== part.state || $[40] !== part.toolCallId || $[41] !== t13 || $[42] !== t14 || $[43] !== t19 || $[44] !== t5 || $[45] !== tone) {
|
|
288
|
+
t20 = /*#__PURE__*/_jsxs(Collapsible, {
|
|
172
289
|
"data-slot": "tool",
|
|
173
|
-
"data-state":
|
|
174
|
-
"data-tool-call-id":
|
|
290
|
+
"data-state": t3,
|
|
291
|
+
"data-tool-call-id": t4,
|
|
292
|
+
"data-tone": tone,
|
|
175
293
|
open: open,
|
|
176
294
|
onOpenChange: setOpen,
|
|
177
|
-
className:
|
|
178
|
-
children: [
|
|
295
|
+
className: t5,
|
|
296
|
+
children: [t13, t14, t19]
|
|
179
297
|
});
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
298
|
+
$[38] = open;
|
|
299
|
+
$[39] = part.state;
|
|
300
|
+
$[40] = part.toolCallId;
|
|
301
|
+
$[41] = t13;
|
|
302
|
+
$[42] = t14;
|
|
303
|
+
$[43] = t19;
|
|
304
|
+
$[44] = t5;
|
|
305
|
+
$[45] = tone;
|
|
306
|
+
$[46] = t20;
|
|
307
|
+
} else {
|
|
308
|
+
t20 = $[46];
|
|
309
|
+
}
|
|
310
|
+
return t20;
|
|
192
311
|
}
|
|
@@ -4,9 +4,9 @@ type InboxRowProps = Omit<ComponentProps<"li">, "onSelect"> & {
|
|
|
4
4
|
item: PendingApproval;
|
|
5
5
|
now: number;
|
|
6
6
|
selected: boolean;
|
|
7
|
+
open: boolean;
|
|
7
8
|
onSelect: (selected: boolean) => void;
|
|
8
|
-
|
|
9
|
-
onDeny: () => void;
|
|
9
|
+
onOpen: () => void;
|
|
10
10
|
};
|
|
11
|
-
export declare function InboxRow({ item, now, selected,
|
|
11
|
+
export declare function InboxRow({ item, now, selected, open, onSelect, onOpen, className, ...props }: InboxRowProps): import("react").JSX.Element;
|
|
12
12
|
export {};
|