@locusgraph/loop 0.3.0 → 0.3.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 (52) hide show
  1. package/dist/agent/pulse/gradient-label.js +64 -12
  2. package/dist/agent/pulse/marks/bars-mark.js +39 -15
  3. package/dist/agent/pulse/marks/glyph-mark.js +56 -15
  4. package/dist/agent/pulse/marks/locus-mark.js +38 -12
  5. package/dist/agent/pulse/marks/orb-mark.js +21 -9
  6. package/dist/agent/pulse/use-loop-animation.js +35 -12
  7. package/dist/approval/inbox/inbox-row.js +303 -76
  8. package/dist/approval/inbox/inbox.js +192 -39
  9. package/dist/approval/inbox/virtual-inbox-list.js +104 -26
  10. package/dist/approval/memory/memory-review.js +172 -36
  11. package/dist/approval/memory/memory-row.js +187 -50
  12. package/dist/approval/plan/plan-review.js +225 -73
  13. package/dist/approval/plan/plan-step-row.js +182 -76
  14. package/dist/approval/plan/question-choices.js +132 -44
  15. package/dist/approval/plan/question.js +156 -38
  16. package/dist/approval/run/run-bar.js +125 -39
  17. package/dist/approval/shared/use-focus-on-mount.js +23 -5
  18. package/dist/approval/spend/raise-cap-form.js +223 -48
  19. package/dist/approval/spend/spend-gate.js +157 -40
  20. package/dist/approval/tool/approval.js +196 -35
  21. package/dist/approval/tool/args/args-editor.js +206 -46
  22. package/dist/approval/tool/args/args-field.js +240 -55
  23. package/dist/approval/tool/deny-form.js +125 -36
  24. package/dist/approval/tool/tool-inputs.js +90 -23
  25. package/dist/chat/chat/use-stick-to-bottom.js +115 -60
  26. package/dist/chat/chat/virtual-chat-items.js +129 -34
  27. package/dist/chat/composer/composer-actions.d.ts +1 -2
  28. package/dist/chat/composer/composer-actions.js +132 -49
  29. package/dist/chat/composer/composer-status.d.ts +2 -0
  30. package/dist/chat/composer/composer-status.js +3 -0
  31. package/dist/chat/composer/composer.d.ts +1 -1
  32. package/dist/chat/composer/composer.js +2 -1
  33. package/dist/chat/composer/use-auto-grow.js +25 -8
  34. package/dist/chat/files/files.js +293 -66
  35. package/dist/chat/index.d.ts +1 -1
  36. package/dist/chat/index.js +1 -1
  37. package/dist/cost/model-picker.js +174 -42
  38. package/dist/memory/cite.js +181 -58
  39. package/dist/memory/memorized.js +196 -42
  40. package/dist/memory/recall.js +265 -68
  41. package/dist/memory/sources.js +232 -52
  42. package/dist/shared/virtual/use-list-virtualizer.js +2 -0
  43. package/dist/thread/actions/branch-switcher.js +97 -21
  44. package/dist/thread/canvas/version-switcher.js +128 -31
  45. package/dist/thread/code/copy-code-button.js +58 -24
  46. package/dist/thread/history/row/history-row.js +99 -18
  47. package/dist/thread/history/row/thread-item-menu.js +74 -19
  48. package/dist/thread/history/row/thread-title-editor.js +74 -29
  49. package/dist/thread/history/virtual-history-list.js +84 -46
  50. package/dist/thread/starters/starters.js +89 -27
  51. package/dist/thread/use-copied.js +40 -10
  52. package/package.json +1 -1
@@ -1,3 +1,6 @@
1
+ "use client";
2
+
3
+ import { c as _c } from "react/compiler-runtime";
1
4
  import { ShieldAlert as ShieldAlertIcon, Tools as WrenchIcon } from "@carbon/icons-react";
2
5
  import { Button, cn } from "@locusgraph/components";
3
6
  import { useState } from "react";
@@ -38,45 +41,125 @@ function headerStatus(awaiting, decision) {
38
41
  function decidedResult(toolName, state, decision) {
39
42
  return settledStateLabels[state] ?? `${toolName} ${decision.approved ? "approved" : "denied"}`;
40
43
  }
41
- export function Approval({
42
- part,
43
- risk = "write",
44
- actionLabel,
45
- description,
46
- decision,
47
- onApprove,
48
- onDeny,
49
- autoFocus = true,
50
- className
51
- }) {
44
+ export function Approval(t0) {
45
+ const $ = _c(64);
46
+ const {
47
+ part,
48
+ risk: t1,
49
+ actionLabel,
50
+ description,
51
+ decision,
52
+ onApprove,
53
+ onDeny,
54
+ autoFocus: t2,
55
+ className
56
+ } = t0;
57
+ const risk = t1 === undefined ? "write" : t1;
58
+ const autoFocus = t2 === undefined ? true : t2;
52
59
  const [denying, setDenying] = useState(false);
53
- const toolName = toolNameOf(part);
60
+ let t3;
61
+ if ($[0] !== part) {
62
+ t3 = toolNameOf(part);
63
+ $[0] = part;
64
+ $[1] = t3;
65
+ } else {
66
+ t3 = $[1];
67
+ }
68
+ const toolName = t3;
54
69
  const awaiting = !decision && part.state === "approval-requested";
55
70
  const approveRef = useFocusOnMount(autoFocus && awaiting);
56
71
  const destructive = risk === "destructive";
57
72
  const Icon = destructive ? ShieldAlertIcon : WrenchIcon;
58
- const header = headerStatus(awaiting, decision);
59
- return /*#__PURE__*/_jsxs(ApprovalPanel, {
60
- "data-slot": "approval",
61
- "data-risk": risk,
62
- "data-state": decision ? decision.approved ? "approved" : "denied" : part.state,
63
- "aria-label": `Approve ${toolName}`,
64
- className: cn(awaiting && riskRing[risk], className),
65
- children: [/*#__PURE__*/_jsx(PanelHeader, {
66
- icon: /*#__PURE__*/_jsx(Icon, {
67
- "aria-hidden": true
68
- }),
69
- eyebrow: awaiting ? "Approval needed" : "Tool call",
70
- aside: riskLabels[risk],
73
+ let t4;
74
+ if ($[2] !== awaiting || $[3] !== decision) {
75
+ t4 = headerStatus(awaiting, decision);
76
+ $[2] = awaiting;
77
+ $[3] = decision;
78
+ $[4] = t4;
79
+ } else {
80
+ t4 = $[4];
81
+ }
82
+ const header = t4;
83
+ const t5 = decision ? decision.approved ? "approved" : "denied" : part.state;
84
+ const t6 = `Approve ${toolName}`;
85
+ const t7 = awaiting && riskRing[risk];
86
+ let t8;
87
+ if ($[5] !== className || $[6] !== t7) {
88
+ t8 = cn(t7, className);
89
+ $[5] = className;
90
+ $[6] = t7;
91
+ $[7] = t8;
92
+ } else {
93
+ t8 = $[7];
94
+ }
95
+ let t9;
96
+ if ($[8] !== Icon) {
97
+ t9 = /*#__PURE__*/_jsx(Icon, {
98
+ "aria-hidden": true
99
+ });
100
+ $[8] = Icon;
101
+ $[9] = t9;
102
+ } else {
103
+ t9 = $[9];
104
+ }
105
+ const t10 = awaiting ? "Approval needed" : "Tool call";
106
+ const t11 = riskLabels[risk];
107
+ let t12;
108
+ if ($[10] !== header.status || $[11] !== header.tone || $[12] !== t10 || $[13] !== t11 || $[14] !== t9) {
109
+ t12 = /*#__PURE__*/_jsx(PanelHeader, {
110
+ icon: t9,
111
+ eyebrow: t10,
112
+ aside: t11,
71
113
  status: header.status,
72
114
  tone: header.tone
73
- }), /*#__PURE__*/_jsx(PanelTitle, {
74
- className: cn("truncate font-mono", !awaiting && "text-muted-foreground"),
115
+ });
116
+ $[10] = header.status;
117
+ $[11] = header.tone;
118
+ $[12] = t10;
119
+ $[13] = t11;
120
+ $[14] = t9;
121
+ $[15] = t12;
122
+ } else {
123
+ t12 = $[15];
124
+ }
125
+ const t13 = !awaiting && "text-muted-foreground";
126
+ let t14;
127
+ if ($[16] !== t13) {
128
+ t14 = cn("truncate font-mono", t13);
129
+ $[16] = t13;
130
+ $[17] = t14;
131
+ } else {
132
+ t14 = $[17];
133
+ }
134
+ let t15;
135
+ if ($[18] !== t14 || $[19] !== toolName) {
136
+ t15 = /*#__PURE__*/_jsx(PanelTitle, {
137
+ className: t14,
75
138
  children: toolName
76
- }), awaiting && /*#__PURE__*/_jsx("p", {
139
+ });
140
+ $[18] = t14;
141
+ $[19] = toolName;
142
+ $[20] = t15;
143
+ } else {
144
+ t15 = $[20];
145
+ }
146
+ let t16;
147
+ if ($[21] !== awaiting || $[22] !== description || $[23] !== risk || $[24] !== toolName) {
148
+ t16 = awaiting && /*#__PURE__*/_jsx("p", {
77
149
  className: "px-5 pt-1 text-sm text-muted-foreground",
78
150
  children: description ?? riskCopy[risk](toolName)
79
- }), awaiting && !denying && /*#__PURE__*/_jsxs(_Fragment, {
151
+ });
152
+ $[21] = awaiting;
153
+ $[22] = description;
154
+ $[23] = risk;
155
+ $[24] = toolName;
156
+ $[25] = t16;
157
+ } else {
158
+ t16 = $[25];
159
+ }
160
+ let t17;
161
+ if ($[26] !== actionLabel || $[27] !== approveRef || $[28] !== awaiting || $[29] !== denying || $[30] !== destructive || $[31] !== onApprove || $[32] !== part || $[33] !== toolName) {
162
+ t17 = awaiting && !denying && /*#__PURE__*/_jsxs(_Fragment, {
80
163
  children: [/*#__PURE__*/_jsx(PanelBody, {
81
164
  children: /*#__PURE__*/_jsx(ToolInputs, {
82
165
  input: part.input
@@ -104,7 +187,22 @@ export function Approval({
104
187
  })]
105
188
  })]
106
189
  })]
107
- }), awaiting && denying && /*#__PURE__*/_jsxs(_Fragment, {
190
+ });
191
+ $[26] = actionLabel;
192
+ $[27] = approveRef;
193
+ $[28] = awaiting;
194
+ $[29] = denying;
195
+ $[30] = destructive;
196
+ $[31] = onApprove;
197
+ $[32] = part;
198
+ $[33] = toolName;
199
+ $[34] = t17;
200
+ } else {
201
+ t17 = $[34];
202
+ }
203
+ let t18;
204
+ if ($[35] !== awaiting || $[36] !== denying || $[37] !== onDeny || $[38] !== part) {
205
+ t18 = awaiting && denying && /*#__PURE__*/_jsxs(_Fragment, {
108
206
  children: [/*#__PURE__*/_jsx(PanelBody, {
109
207
  className: "pb-4",
110
208
  children: /*#__PURE__*/_jsx(ToolInputs, {
@@ -115,7 +213,18 @@ export function Approval({
115
213
  onDeny: onDeny,
116
214
  onBack: () => setDenying(false)
117
215
  })]
118
- }), !awaiting && /*#__PURE__*/_jsx(PanelBody, {
216
+ });
217
+ $[35] = awaiting;
218
+ $[36] = denying;
219
+ $[37] = onDeny;
220
+ $[38] = part;
221
+ $[39] = t18;
222
+ } else {
223
+ t18 = $[39];
224
+ }
225
+ let t19;
226
+ if ($[40] !== awaiting || $[41] !== decision || $[42] !== part || $[43] !== toolName) {
227
+ t19 = !awaiting && /*#__PURE__*/_jsx(PanelBody, {
119
228
  className: "pt-3",
120
229
  children: decision ? /*#__PURE__*/_jsx(DecisionSummary, {
121
230
  decision: decision,
@@ -124,8 +233,60 @@ export function Approval({
124
233
  className: "text-sm text-muted-foreground",
125
234
  children: settledLabel(part.state)
126
235
  })
127
- }), /*#__PURE__*/_jsx(LiveStatus, {
128
- message: decision ? `${toolName} ${decision.approved ? "approved" : "denied"} by ${decision.by}` : awaiting ? `${toolName} is waiting for your approval` : settledLabel(part.state)
129
- })]
130
- });
236
+ });
237
+ $[40] = awaiting;
238
+ $[41] = decision;
239
+ $[42] = part;
240
+ $[43] = toolName;
241
+ $[44] = t19;
242
+ } else {
243
+ t19 = $[44];
244
+ }
245
+ let t20;
246
+ if ($[45] !== awaiting || $[46] !== decision || $[47] !== part || $[48] !== toolName) {
247
+ t20 = decision ? `${toolName} ${decision.approved ? "approved" : "denied"} by ${decision.by}` : awaiting ? `${toolName} is waiting for your approval` : settledLabel(part.state);
248
+ $[45] = awaiting;
249
+ $[46] = decision;
250
+ $[47] = part;
251
+ $[48] = toolName;
252
+ $[49] = t20;
253
+ } else {
254
+ t20 = $[49];
255
+ }
256
+ let t21;
257
+ if ($[50] !== t20) {
258
+ t21 = /*#__PURE__*/_jsx(LiveStatus, {
259
+ message: t20
260
+ });
261
+ $[50] = t20;
262
+ $[51] = t21;
263
+ } else {
264
+ t21 = $[51];
265
+ }
266
+ let t22;
267
+ if ($[52] !== risk || $[53] !== t12 || $[54] !== t15 || $[55] !== t16 || $[56] !== t17 || $[57] !== t18 || $[58] !== t19 || $[59] !== t21 || $[60] !== t5 || $[61] !== t6 || $[62] !== t8) {
268
+ t22 = /*#__PURE__*/_jsxs(ApprovalPanel, {
269
+ "data-slot": "approval",
270
+ "data-risk": risk,
271
+ "data-state": t5,
272
+ "aria-label": t6,
273
+ className: t8,
274
+ children: [t12, t15, t16, t17, t18, t19, t21]
275
+ });
276
+ $[52] = risk;
277
+ $[53] = t12;
278
+ $[54] = t15;
279
+ $[55] = t16;
280
+ $[56] = t17;
281
+ $[57] = t18;
282
+ $[58] = t19;
283
+ $[59] = t21;
284
+ $[60] = t5;
285
+ $[61] = t6;
286
+ $[62] = t8;
287
+ $[63] = t22;
288
+ } else {
289
+ t22 = $[63];
290
+ }
291
+ return t22;
131
292
  }
@@ -1,3 +1,6 @@
1
+ "use client";
2
+
3
+ import { c as _c } from "react/compiler-runtime";
1
4
  import { Edit as SquarePenIcon } from "@carbon/icons-react";
2
5
  import { Button, cn } from "@locusgraph/components";
3
6
  import { useId, useMemo, useState } from "react";
@@ -11,45 +14,141 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
11
14
  function errorSummary(count) {
12
15
  return count === 1 ? "1 field needs a fix." : `${count} fields need a fix.`;
13
16
  }
14
- export function ArgsEditor({
15
- toolName,
16
- fields,
17
- initialValues = {},
18
- risk = "write",
19
- actionLabel,
20
- description,
21
- decision,
22
- onApprove,
23
- onCancel,
24
- autoFocus = false,
25
- className
26
- }) {
17
+ export function ArgsEditor(t0) {
18
+ const $ = _c(58);
19
+ const {
20
+ toolName,
21
+ fields,
22
+ initialValues: t1,
23
+ risk: t2,
24
+ actionLabel,
25
+ description,
26
+ decision,
27
+ onApprove,
28
+ onCancel,
29
+ autoFocus: t3,
30
+ className
31
+ } = t0;
32
+ let t4;
33
+ if ($[0] !== t1) {
34
+ t4 = t1 === undefined ? {} : t1;
35
+ $[0] = t1;
36
+ $[1] = t4;
37
+ } else {
38
+ t4 = $[1];
39
+ }
40
+ const initialValues = t4;
41
+ const risk = t2 === undefined ? "write" : t2;
42
+ const autoFocus = t3 === undefined ? false : t3;
27
43
  const baseId = useId();
28
- const [drafts, setDrafts] = useState(() => draftsFrom(fields, initialValues));
44
+ let t5;
45
+ if ($[2] !== fields || $[3] !== initialValues) {
46
+ t5 = () => draftsFrom(fields, initialValues);
47
+ $[2] = fields;
48
+ $[3] = initialValues;
49
+ $[4] = t5;
50
+ } else {
51
+ t5 = $[4];
52
+ }
53
+ const [drafts, setDrafts] = useState(t5);
29
54
  const [showErrors, setShowErrors] = useState(false);
30
- const errors = useMemo(() => validateDrafts(fields, drafts), [fields, drafts]);
31
- const errorCount = Object.keys(errors).length;
32
- const visibleErrors = showErrors ? errors : {};
55
+ let t6;
56
+ if ($[5] !== drafts || $[6] !== fields) {
57
+ t6 = validateDrafts(fields, drafts);
58
+ $[5] = drafts;
59
+ $[6] = fields;
60
+ $[7] = t6;
61
+ } else {
62
+ t6 = $[7];
63
+ }
64
+ const errors = t6;
65
+ let t7;
66
+ if ($[8] !== errors) {
67
+ t7 = Object.keys(errors);
68
+ $[8] = errors;
69
+ $[9] = t7;
70
+ } else {
71
+ t7 = $[9];
72
+ }
73
+ const errorCount = t7.length;
74
+ let t8;
75
+ if ($[10] !== errors || $[11] !== showErrors) {
76
+ t8 = showErrors ? errors : {};
77
+ $[10] = errors;
78
+ $[11] = showErrors;
79
+ $[12] = t8;
80
+ } else {
81
+ t8 = $[12];
82
+ }
83
+ const visibleErrors = t8;
33
84
  const destructive = risk === "destructive";
34
85
  const submitRef = useFocusOnMount(autoFocus && !decision);
35
- return /*#__PURE__*/_jsxs(ApprovalPanel, {
36
- "data-slot": "args-editor",
37
- "data-risk": risk,
38
- "aria-label": `Edit ${toolName} inputs`,
39
- "data-state": decision ? decision.approved ? "approved" : "denied" : "editing",
40
- className: cn(!decision && riskRing[risk], className),
41
- children: [/*#__PURE__*/_jsx(PanelHeader, {
42
- icon: /*#__PURE__*/_jsx(SquarePenIcon, {
43
- "aria-hidden": true
44
- }),
45
- eyebrow: decision ? "Tool call" : "Edit before approving",
46
- aside: riskLabels[risk],
47
- status: decision ? decision.approved ? "Approved" : "Cancelled" : "Waiting for you",
48
- tone: decision ? decision.approved ? "done" : "danger" : "waiting"
49
- }), /*#__PURE__*/_jsx(PanelTitle, {
50
- className: cn("truncate font-mono", decision && "text-muted-foreground"),
86
+ const t9 = `Edit ${toolName} inputs`;
87
+ const t10 = decision ? decision.approved ? "approved" : "denied" : "editing";
88
+ const t11 = !decision && riskRing[risk];
89
+ let t12;
90
+ if ($[13] !== className || $[14] !== t11) {
91
+ t12 = cn(t11, className);
92
+ $[13] = className;
93
+ $[14] = t11;
94
+ $[15] = t12;
95
+ } else {
96
+ t12 = $[15];
97
+ }
98
+ let t13;
99
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
100
+ t13 = /*#__PURE__*/_jsx(SquarePenIcon, {
101
+ "aria-hidden": true
102
+ });
103
+ $[16] = t13;
104
+ } else {
105
+ t13 = $[16];
106
+ }
107
+ const t14 = decision ? "Tool call" : "Edit before approving";
108
+ const t15 = riskLabels[risk];
109
+ const t16 = decision ? decision.approved ? "Approved" : "Cancelled" : "Waiting for you";
110
+ const t17 = decision ? decision.approved ? "done" : "danger" : "waiting";
111
+ let t18;
112
+ if ($[17] !== t14 || $[18] !== t15 || $[19] !== t16 || $[20] !== t17) {
113
+ t18 = /*#__PURE__*/_jsx(PanelHeader, {
114
+ icon: t13,
115
+ eyebrow: t14,
116
+ aside: t15,
117
+ status: t16,
118
+ tone: t17
119
+ });
120
+ $[17] = t14;
121
+ $[18] = t15;
122
+ $[19] = t16;
123
+ $[20] = t17;
124
+ $[21] = t18;
125
+ } else {
126
+ t18 = $[21];
127
+ }
128
+ const t19 = decision && "text-muted-foreground";
129
+ let t20;
130
+ if ($[22] !== t19) {
131
+ t20 = cn("truncate font-mono", t19);
132
+ $[22] = t19;
133
+ $[23] = t20;
134
+ } else {
135
+ t20 = $[23];
136
+ }
137
+ let t21;
138
+ if ($[24] !== t20 || $[25] !== toolName) {
139
+ t21 = /*#__PURE__*/_jsx(PanelTitle, {
140
+ className: t20,
51
141
  children: toolName
52
- }), decision ? /*#__PURE__*/_jsx(PanelBody, {
142
+ });
143
+ $[24] = t20;
144
+ $[25] = toolName;
145
+ $[26] = t21;
146
+ } else {
147
+ t21 = $[26];
148
+ }
149
+ let t22;
150
+ if ($[27] !== actionLabel || $[28] !== baseId || $[29] !== decision || $[30] !== description || $[31] !== destructive || $[32] !== drafts || $[33] !== errorCount || $[34] !== errors || $[35] !== fields || $[36] !== onApprove || $[37] !== onCancel || $[38] !== risk || $[39] !== showErrors || $[40] !== submitRef || $[41] !== toolName || $[42] !== visibleErrors) {
151
+ t22 = decision ? /*#__PURE__*/_jsx(PanelBody, {
53
152
  className: "pt-3",
54
153
  children: /*#__PURE__*/_jsx(DecisionSummary, {
55
154
  decision: decision,
@@ -68,23 +167,25 @@ export function ArgsEditor({
68
167
  if (firstInvalid) {
69
168
  setShowErrors(true);
70
169
  const control = event.currentTarget.elements.namedItem(firstInvalid.name);
71
- if (control instanceof HTMLElement) control.focus();
170
+ if (control instanceof HTMLElement) {
171
+ control.focus();
172
+ }
72
173
  return;
73
174
  }
74
175
  onApprove(valuesFromDrafts(fields, drafts));
75
176
  },
76
177
  children: [/*#__PURE__*/_jsx(PanelBody, {
77
178
  className: "gap-5 pt-5",
78
- children: fields.map(field => /*#__PURE__*/_jsx(ArgsField, {
79
- id: `${baseId}-${field.name}`,
80
- field: field,
81
- draft: drafts[field.name],
82
- error: visibleErrors[field.name],
179
+ children: fields.map(field_0 => /*#__PURE__*/_jsx(ArgsField, {
180
+ id: `${baseId}-${field_0.name}`,
181
+ field: field_0,
182
+ draft: drafts[field_0.name],
183
+ error: visibleErrors[field_0.name],
83
184
  onChange: draft => setDrafts(current => ({
84
185
  ...current,
85
- [field.name]: draft
186
+ [field_0.name]: draft
86
187
  }))
87
- }, field.name))
188
+ }, field_0.name))
88
189
  }), /*#__PURE__*/_jsxs(PanelFooter, {
89
190
  className: "justify-between",
90
191
  children: [/*#__PURE__*/_jsx("span", {
@@ -108,8 +209,67 @@ export function ArgsEditor({
108
209
  })]
109
210
  })]
110
211
  })]
111
- }), /*#__PURE__*/_jsx(LiveStatus, {
112
- message: showErrors && errorCount > 0 ? errorSummary(errorCount) : ""
113
- })]
114
- });
212
+ });
213
+ $[27] = actionLabel;
214
+ $[28] = baseId;
215
+ $[29] = decision;
216
+ $[30] = description;
217
+ $[31] = destructive;
218
+ $[32] = drafts;
219
+ $[33] = errorCount;
220
+ $[34] = errors;
221
+ $[35] = fields;
222
+ $[36] = onApprove;
223
+ $[37] = onCancel;
224
+ $[38] = risk;
225
+ $[39] = showErrors;
226
+ $[40] = submitRef;
227
+ $[41] = toolName;
228
+ $[42] = visibleErrors;
229
+ $[43] = t22;
230
+ } else {
231
+ t22 = $[43];
232
+ }
233
+ let t23;
234
+ if ($[44] !== errorCount || $[45] !== showErrors) {
235
+ t23 = showErrors && errorCount > 0 ? errorSummary(errorCount) : "";
236
+ $[44] = errorCount;
237
+ $[45] = showErrors;
238
+ $[46] = t23;
239
+ } else {
240
+ t23 = $[46];
241
+ }
242
+ let t24;
243
+ if ($[47] !== t23) {
244
+ t24 = /*#__PURE__*/_jsx(LiveStatus, {
245
+ message: t23
246
+ });
247
+ $[47] = t23;
248
+ $[48] = t24;
249
+ } else {
250
+ t24 = $[48];
251
+ }
252
+ let t25;
253
+ if ($[49] !== risk || $[50] !== t10 || $[51] !== t12 || $[52] !== t18 || $[53] !== t21 || $[54] !== t22 || $[55] !== t24 || $[56] !== t9) {
254
+ t25 = /*#__PURE__*/_jsxs(ApprovalPanel, {
255
+ "data-slot": "args-editor",
256
+ "data-risk": risk,
257
+ "aria-label": t9,
258
+ "data-state": t10,
259
+ className: t12,
260
+ children: [t18, t21, t22, t24]
261
+ });
262
+ $[49] = risk;
263
+ $[50] = t10;
264
+ $[51] = t12;
265
+ $[52] = t18;
266
+ $[53] = t21;
267
+ $[54] = t22;
268
+ $[55] = t24;
269
+ $[56] = t9;
270
+ $[57] = t25;
271
+ } else {
272
+ t25 = $[57];
273
+ }
274
+ return t25;
115
275
  }