@locusgraph/loop 0.2.0 → 0.2.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 (68) hide show
  1. package/dist/agent/pulse/gradient-label.js +12 -62
  2. package/dist/agent/pulse/marks/bars-mark.js +15 -37
  3. package/dist/agent/pulse/marks/glyph-mark.js +15 -54
  4. package/dist/agent/pulse/marks/locus-mark.js +12 -36
  5. package/dist/agent/pulse/marks/orb-mark.js +9 -19
  6. package/dist/agent/pulse/marks/spinner-mark.js +20 -29
  7. package/dist/agent/pulse/pulse.js +36 -123
  8. package/dist/agent/pulse/use-loop-animation.js +12 -33
  9. package/dist/agent/steps/step-icon.js +26 -96
  10. package/dist/agent/steps/steps.js +47 -210
  11. package/dist/agent/tool/json-block.js +11 -31
  12. package/dist/agent/tool/tool-status.js +12 -35
  13. package/dist/approval/inbox/inbox-row.js +76 -301
  14. package/dist/approval/inbox/inbox.js +39 -190
  15. package/dist/approval/inbox/virtual-inbox-list.js +26 -102
  16. package/dist/approval/memory/memory-review.js +36 -170
  17. package/dist/approval/memory/memory-row.js +50 -185
  18. package/dist/approval/plan/plan-review.js +73 -223
  19. package/dist/approval/plan/plan-step-row.js +76 -180
  20. package/dist/approval/plan/question-choices.js +44 -130
  21. package/dist/approval/plan/question.js +38 -154
  22. package/dist/approval/run/run-bar.js +39 -123
  23. package/dist/approval/shared/risk-badge.js +9 -24
  24. package/dist/approval/shared/use-focus-on-mount.js +5 -21
  25. package/dist/approval/spend/raise-cap-form.js +48 -221
  26. package/dist/approval/spend/spend-gate.js +40 -155
  27. package/dist/approval/spend/spend-meter.js +85 -312
  28. package/dist/approval/tool/approval.js +35 -194
  29. package/dist/approval/tool/args/args-editor.js +46 -204
  30. package/dist/approval/tool/args/args-field.js +55 -238
  31. package/dist/approval/tool/deny-form.js +36 -123
  32. package/dist/approval/tool/tool-inputs.js +23 -88
  33. package/dist/chat/chat/use-stick-to-bottom.js +60 -113
  34. package/dist/chat/chat/virtual-chat-items.js +34 -127
  35. package/dist/chat/composer/composer-actions.js +46 -129
  36. package/dist/chat/composer/use-auto-grow.js +8 -23
  37. package/dist/chat/files/files.js +66 -291
  38. package/dist/chat/reply/fenced-code.js +10 -32
  39. package/dist/chat/reply/reply.js +24 -99
  40. package/dist/chat/turn/turn.js +46 -197
  41. package/dist/cost/context.js +65 -282
  42. package/dist/cost/cost-steps.js +42 -195
  43. package/dist/cost/cost.js +108 -497
  44. package/dist/cost/model-picker.js +42 -172
  45. package/dist/cost/shared/context-breakdown.js +64 -280
  46. package/dist/cost/shared/meter-marks.js +34 -92
  47. package/dist/cost/shared/model-option-row.js +35 -158
  48. package/dist/cost/shared/step-cost-row.js +37 -222
  49. package/dist/memory/cite.js +58 -179
  50. package/dist/memory/memorized.js +42 -194
  51. package/dist/memory/recall.js +68 -263
  52. package/dist/memory/shared/source-mark.js +10 -38
  53. package/dist/memory/sources.js +52 -230
  54. package/dist/shared/decision-summary.js +35 -117
  55. package/dist/shared/panel-empty.js +15 -73
  56. package/dist/shared/panel.js +65 -239
  57. package/dist/shared/status-dot.js +10 -32
  58. package/dist/thread/actions/action-button.js +10 -53
  59. package/dist/thread/actions/branch-switcher.js +21 -95
  60. package/dist/thread/canvas/version-switcher.js +31 -126
  61. package/dist/thread/code/copy-code-button.js +24 -56
  62. package/dist/thread/history/row/history-row.js +18 -97
  63. package/dist/thread/history/row/thread-item-menu.js +19 -72
  64. package/dist/thread/history/row/thread-title-editor.js +29 -72
  65. package/dist/thread/history/virtual-history-list.js +46 -82
  66. package/dist/thread/starters/starters.js +27 -87
  67. package/dist/thread/use-copied.js +10 -38
  68. package/package.json +3 -3
@@ -1,26 +1,10 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { useEffect, useRef } from "react";
3
2
  export function useFocusOnMount(enabled) {
4
- const $ = _c(3);
5
3
  const ref = useRef(null);
6
- let t0;
7
- let t1;
8
- if ($[0] !== enabled) {
9
- t0 = () => {
10
- if (enabled) {
11
- ref.current?.focus({
12
- preventScroll: true
13
- });
14
- }
15
- };
16
- t1 = [enabled];
17
- $[0] = enabled;
18
- $[1] = t0;
19
- $[2] = t1;
20
- } else {
21
- t0 = $[1];
22
- t1 = $[2];
23
- }
24
- useEffect(t0, t1);
4
+ useEffect(() => {
5
+ if (enabled) ref.current?.focus({
6
+ preventScroll: true
7
+ });
8
+ }, [enabled]);
25
9
  return ref;
26
10
  }
@@ -1,4 +1,3 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { Button, Input, Label } from "@locusgraph/components";
3
2
  import { formatMicroUsd } from "@locusgraph/utils";
4
3
  import { useId, useState } from "react";
@@ -9,236 +8,64 @@ function capError(next, capMicroUsd) {
9
8
  if (next <= capMicroUsd) return `The new cap must be above ${formatMicroUsd(capMicroUsd)}.`;
10
9
  return undefined;
11
10
  }
12
- export function RaiseCapForm(t0) {
13
- const $ = _c(59);
14
- const {
15
- capMicroUsd,
16
- suggestedMicroUsd,
17
- disabled: t1,
18
- onRaiseCap
19
- } = t0;
20
- const disabled = t1 === undefined ? false : t1;
11
+ export function RaiseCapForm({
12
+ capMicroUsd,
13
+ suggestedMicroUsd,
14
+ disabled = false,
15
+ onRaiseCap
16
+ }) {
21
17
  const inputId = useId();
22
- let t2;
23
- if ($[0] !== suggestedMicroUsd) {
24
- t2 = () => microUsdToDollarsInput(suggestedMicroUsd);
25
- $[0] = suggestedMicroUsd;
26
- $[1] = t2;
27
- } else {
28
- t2 = $[1];
29
- }
30
- const [dollars, setDollars] = useState(t2);
18
+ const [dollars, setDollars] = useState(() => microUsdToDollarsInput(suggestedMicroUsd));
31
19
  const [touched, setTouched] = useState(false);
32
- let T0;
33
- let t10;
34
- let t11;
35
- let t12;
36
- let t13;
37
- let t14;
38
- let t15;
39
- let t3;
40
- let t4;
41
- let t5;
42
- let t6;
43
- let t7;
44
- let t8;
45
- let t9;
46
- let visibleError;
47
- if ($[2] !== capMicroUsd || $[3] !== disabled || $[4] !== dollars || $[5] !== inputId || $[6] !== onRaiseCap || $[7] !== touched) {
48
- const next = dollarsToMicroUsd(dollars);
49
- const error = capError(next, capMicroUsd);
50
- visibleError = touched ? error : undefined;
51
- t12 = "raise-cap-form";
52
- t13 = true;
53
- t14 = "flex flex-col gap-1.5 border-t pt-4";
54
- t15 = event => {
20
+ const next = dollarsToMicroUsd(dollars);
21
+ const error = capError(next, capMicroUsd);
22
+ const visibleError = touched ? error : undefined;
23
+ return /*#__PURE__*/_jsxs("form", {
24
+ "data-slot": "raise-cap-form",
25
+ noValidate: true,
26
+ className: "flex flex-col gap-1.5 border-t pt-4",
27
+ onSubmit: event => {
55
28
  event.preventDefault();
56
29
  setTouched(true);
57
- if (next !== null && !error) {
58
- onRaiseCap(next);
59
- }
60
- };
61
- t10 = "flex flex-wrap items-center justify-between gap-x-4 gap-y-2";
62
- if ($[23] !== inputId) {
63
- t11 = /*#__PURE__*/_jsx(Label, {
30
+ if (next !== null && !error) onRaiseCap(next);
31
+ },
32
+ children: [/*#__PURE__*/_jsxs("div", {
33
+ className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-2",
34
+ children: [/*#__PURE__*/_jsx(Label, {
64
35
  htmlFor: inputId,
65
36
  className: "text-xs font-normal text-muted-foreground",
66
37
  children: "Or raise the cap for this run"
67
- });
68
- $[23] = inputId;
69
- $[24] = t11;
70
- } else {
71
- t11 = $[24];
72
- }
73
- t8 = "flex flex-wrap items-center gap-2";
74
- let t16;
75
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
76
- t16 = /*#__PURE__*/_jsx("span", {
77
- "aria-hidden": true,
78
- className: "pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-sm text-muted-foreground",
79
- children: "$"
80
- });
81
- $[25] = t16;
82
- } else {
83
- t16 = $[25];
84
- }
85
- const t17 = visibleError ? true : undefined;
86
- const t18 = visibleError ? `${inputId}-error` : undefined;
87
- let t19;
88
- let t20;
89
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
90
- t19 = event_0 => setDollars(event_0.target.value);
91
- t20 = () => setTouched(true);
92
- $[26] = t19;
93
- $[27] = t20;
94
- } else {
95
- t19 = $[26];
96
- t20 = $[27];
97
- }
98
- if ($[28] !== disabled || $[29] !== dollars || $[30] !== inputId || $[31] !== t17 || $[32] !== t18) {
99
- t9 = /*#__PURE__*/_jsxs("div", {
100
- className: "relative w-32",
101
- children: [t16, /*#__PURE__*/_jsx(Input, {
102
- id: inputId,
103
- inputMode: "decimal",
104
- className: "pl-6 tabular-nums",
105
- value: dollars,
38
+ }), /*#__PURE__*/_jsxs("div", {
39
+ className: "flex flex-wrap items-center gap-2",
40
+ children: [/*#__PURE__*/_jsxs("div", {
41
+ className: "relative w-32",
42
+ children: [/*#__PURE__*/_jsx("span", {
43
+ "aria-hidden": true,
44
+ className: "pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-sm text-muted-foreground",
45
+ children: "$"
46
+ }), /*#__PURE__*/_jsx(Input, {
47
+ id: inputId,
48
+ inputMode: "decimal",
49
+ className: "pl-6 tabular-nums",
50
+ value: dollars,
51
+ disabled: disabled,
52
+ "aria-invalid": visibleError ? true : undefined,
53
+ "aria-describedby": visibleError ? `${inputId}-error` : undefined,
54
+ onChange: event => setDollars(event.target.value),
55
+ onBlur: () => setTouched(true)
56
+ })]
57
+ }), /*#__PURE__*/_jsx(Button, {
58
+ type: "submit",
59
+ size: "sm",
60
+ variant: "outline",
106
61
  disabled: disabled,
107
- "aria-invalid": t17,
108
- "aria-describedby": t18,
109
- onChange: t19,
110
- onBlur: t20
62
+ children: next !== null && !error ? `Raise cap to ${formatMicroUsd(next)}` : "Raise cap"
111
63
  })]
112
- });
113
- $[28] = disabled;
114
- $[29] = dollars;
115
- $[30] = inputId;
116
- $[31] = t17;
117
- $[32] = t18;
118
- $[33] = t9;
119
- } else {
120
- t9 = $[33];
121
- }
122
- T0 = Button;
123
- t3 = "submit";
124
- t4 = "sm";
125
- t5 = "outline";
126
- t6 = disabled;
127
- t7 = next !== null && !error ? `Raise cap to ${formatMicroUsd(next)}` : "Raise cap";
128
- $[2] = capMicroUsd;
129
- $[3] = disabled;
130
- $[4] = dollars;
131
- $[5] = inputId;
132
- $[6] = onRaiseCap;
133
- $[7] = touched;
134
- $[8] = T0;
135
- $[9] = t10;
136
- $[10] = t11;
137
- $[11] = t12;
138
- $[12] = t13;
139
- $[13] = t14;
140
- $[14] = t15;
141
- $[15] = t3;
142
- $[16] = t4;
143
- $[17] = t5;
144
- $[18] = t6;
145
- $[19] = t7;
146
- $[20] = t8;
147
- $[21] = t9;
148
- $[22] = visibleError;
149
- } else {
150
- T0 = $[8];
151
- t10 = $[9];
152
- t11 = $[10];
153
- t12 = $[11];
154
- t13 = $[12];
155
- t14 = $[13];
156
- t15 = $[14];
157
- t3 = $[15];
158
- t4 = $[16];
159
- t5 = $[17];
160
- t6 = $[18];
161
- t7 = $[19];
162
- t8 = $[20];
163
- t9 = $[21];
164
- visibleError = $[22];
165
- }
166
- let t16;
167
- if ($[34] !== T0 || $[35] !== t3 || $[36] !== t4 || $[37] !== t5 || $[38] !== t6 || $[39] !== t7) {
168
- t16 = /*#__PURE__*/_jsx(T0, {
169
- type: t3,
170
- size: t4,
171
- variant: t5,
172
- disabled: t6,
173
- children: t7
174
- });
175
- $[34] = T0;
176
- $[35] = t3;
177
- $[36] = t4;
178
- $[37] = t5;
179
- $[38] = t6;
180
- $[39] = t7;
181
- $[40] = t16;
182
- } else {
183
- t16 = $[40];
184
- }
185
- let t17;
186
- if ($[41] !== t16 || $[42] !== t8 || $[43] !== t9) {
187
- t17 = /*#__PURE__*/_jsxs("div", {
188
- className: t8,
189
- children: [t9, t16]
190
- });
191
- $[41] = t16;
192
- $[42] = t8;
193
- $[43] = t9;
194
- $[44] = t17;
195
- } else {
196
- t17 = $[44];
197
- }
198
- let t18;
199
- if ($[45] !== t10 || $[46] !== t11 || $[47] !== t17) {
200
- t18 = /*#__PURE__*/_jsxs("div", {
201
- className: t10,
202
- children: [t11, t17]
203
- });
204
- $[45] = t10;
205
- $[46] = t11;
206
- $[47] = t17;
207
- $[48] = t18;
208
- } else {
209
- t18 = $[48];
210
- }
211
- let t19;
212
- if ($[49] !== inputId || $[50] !== visibleError) {
213
- t19 = visibleError && /*#__PURE__*/_jsx("p", {
64
+ })]
65
+ }), visibleError && /*#__PURE__*/_jsx("p", {
214
66
  id: `${inputId}-error`,
215
67
  className: "text-right text-xs text-destructive",
216
68
  children: visibleError
217
- });
218
- $[49] = inputId;
219
- $[50] = visibleError;
220
- $[51] = t19;
221
- } else {
222
- t19 = $[51];
223
- }
224
- let t20;
225
- if ($[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t18 || $[57] !== t19) {
226
- t20 = /*#__PURE__*/_jsxs("form", {
227
- "data-slot": t12,
228
- noValidate: t13,
229
- className: t14,
230
- onSubmit: t15,
231
- children: [t18, t19]
232
- });
233
- $[52] = t12;
234
- $[53] = t13;
235
- $[54] = t14;
236
- $[55] = t15;
237
- $[56] = t18;
238
- $[57] = t19;
239
- $[58] = t20;
240
- } else {
241
- t20 = $[58];
242
- }
243
- return t20;
69
+ })]
70
+ });
244
71
  }
@@ -1,4 +1,3 @@
1
- import { c as _c } from "react/compiler-runtime";
2
1
  import { CurrencyDollar as CircleDollarSignIcon } from "@carbon/icons-react";
3
2
  import { Button, cn } from "@locusgraph/components";
4
3
  import { formatMicroUsd } from "@locusgraph/utils";
@@ -23,116 +22,48 @@ const situationStatus = {
23
22
  "over-cap": "Over cap",
24
23
  "out-of-credits": "Out of credits"
25
24
  };
26
- export function SpendGate(t0) {
27
- const $ = _c(45);
28
- const {
29
- spentMicroUsd,
30
- estimateMicroUsd,
31
- capMicroUsd,
32
- balanceMicroUsd,
33
- runName,
34
- decision,
35
- onAllowOnce,
36
- onRaiseCap,
37
- onStop,
38
- onBuyCredits,
39
- autoFocus: t1,
40
- className
41
- } = t0;
42
- const autoFocus = t1 === undefined ? true : t1;
43
- let t2;
44
- if ($[0] !== balanceMicroUsd || $[1] !== estimateMicroUsd) {
45
- t2 = spendSituation(balanceMicroUsd, estimateMicroUsd);
46
- $[0] = balanceMicroUsd;
47
- $[1] = estimateMicroUsd;
48
- $[2] = t2;
49
- } else {
50
- t2 = $[2];
51
- }
52
- const situation = t2;
25
+ export function SpendGate({
26
+ spentMicroUsd,
27
+ estimateMicroUsd,
28
+ capMicroUsd,
29
+ balanceMicroUsd,
30
+ runName,
31
+ decision,
32
+ onAllowOnce,
33
+ onRaiseCap,
34
+ onStop,
35
+ onBuyCredits,
36
+ autoFocus = true,
37
+ className
38
+ }) {
39
+ const situation = spendSituation(balanceMicroUsd, estimateMicroUsd);
53
40
  const outOfCredits = situation === "out-of-credits";
54
41
  const projected = spentMicroUsd + estimateMicroUsd;
55
42
  const copy = situationCopy[situation];
56
43
  const primaryRef = useFocusOnMount(autoFocus && !decision);
57
- let t3;
58
- if ($[3] !== balanceMicroUsd || $[4] !== capMicroUsd || $[5] !== estimateMicroUsd || $[6] !== outOfCredits || $[7] !== spentMicroUsd) {
59
- t3 = {
60
- spentMicroUsd,
61
- estimateMicroUsd,
62
- capMicroUsd,
63
- balanceMicroUsd,
64
- outOfCredits
65
- };
66
- $[3] = balanceMicroUsd;
67
- $[4] = capMicroUsd;
68
- $[5] = estimateMicroUsd;
69
- $[6] = outOfCredits;
70
- $[7] = spentMicroUsd;
71
- $[8] = t3;
72
- } else {
73
- t3 = $[8];
74
- }
75
- const meter = t3;
76
- const t4 = copy.title;
77
- const t5 = !decision && outOfCredits && "ring-destructive/60";
78
- let t6;
79
- if ($[9] !== className || $[10] !== t5) {
80
- t6 = cn(t5, className);
81
- $[9] = className;
82
- $[10] = t5;
83
- $[11] = t6;
84
- } else {
85
- t6 = $[11];
86
- }
87
- let t7;
88
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
89
- t7 = /*#__PURE__*/_jsx(CircleDollarSignIcon, {
90
- "aria-hidden": true
91
- });
92
- $[12] = t7;
93
- } else {
94
- t7 = $[12];
95
- }
96
- const t8 = decision ? decision.approved ? "Allowed" : "Stopped" : situationStatus[situation];
97
- const t9 = decision ? decision.approved ? "done" : "danger" : outOfCredits ? "danger" : "waiting";
98
- let t10;
99
- if ($[13] !== t8 || $[14] !== t9) {
100
- t10 = /*#__PURE__*/_jsx(PanelHeader, {
101
- icon: t7,
44
+ const meter = {
45
+ spentMicroUsd,
46
+ estimateMicroUsd,
47
+ capMicroUsd,
48
+ balanceMicroUsd,
49
+ outOfCredits
50
+ };
51
+ return /*#__PURE__*/_jsxs(ApprovalPanel, {
52
+ "data-slot": "spend-gate",
53
+ "data-situation": situation,
54
+ "aria-label": copy.title,
55
+ className: cn(!decision && outOfCredits && "ring-destructive/60", className),
56
+ children: [/*#__PURE__*/_jsx(PanelHeader, {
57
+ icon: /*#__PURE__*/_jsx(CircleDollarSignIcon, {
58
+ "aria-hidden": true
59
+ }),
102
60
  eyebrow: "Spend approval",
103
- status: t8,
104
- tone: t9
105
- });
106
- $[13] = t8;
107
- $[14] = t9;
108
- $[15] = t10;
109
- } else {
110
- t10 = $[15];
111
- }
112
- const t11 = decision && "text-muted-foreground";
113
- let t12;
114
- if ($[16] !== t11) {
115
- t12 = cn(t11);
116
- $[16] = t11;
117
- $[17] = t12;
118
- } else {
119
- t12 = $[17];
120
- }
121
- let t13;
122
- if ($[18] !== copy.title || $[19] !== t12) {
123
- t13 = /*#__PURE__*/_jsx(PanelTitle, {
124
- className: t12,
61
+ status: decision ? decision.approved ? "Allowed" : "Stopped" : situationStatus[situation],
62
+ tone: decision ? decision.approved ? "done" : "danger" : outOfCredits ? "danger" : "waiting"
63
+ }), /*#__PURE__*/_jsx(PanelTitle, {
64
+ className: cn(decision && "text-muted-foreground"),
125
65
  children: copy.title
126
- });
127
- $[18] = copy.title;
128
- $[19] = t12;
129
- $[20] = t13;
130
- } else {
131
- t13 = $[20];
132
- }
133
- let t14;
134
- if ($[21] !== capMicroUsd || $[22] !== copy || $[23] !== decision || $[24] !== estimateMicroUsd || $[25] !== meter || $[26] !== onAllowOnce || $[27] !== onBuyCredits || $[28] !== onRaiseCap || $[29] !== onStop || $[30] !== outOfCredits || $[31] !== primaryRef || $[32] !== projected || $[33] !== runName) {
135
- t14 = decision ? /*#__PURE__*/_jsxs(PanelBody, {
66
+ }), decision ? /*#__PURE__*/_jsxs(PanelBody, {
136
67
  className: "pt-3",
137
68
  children: [/*#__PURE__*/_jsx(DecisionSummary, {
138
69
  decision: decision,
@@ -197,54 +128,8 @@ export function SpendGate(t0) {
197
128
  })]
198
129
  })]
199
130
  })]
200
- });
201
- $[21] = capMicroUsd;
202
- $[22] = copy;
203
- $[23] = decision;
204
- $[24] = estimateMicroUsd;
205
- $[25] = meter;
206
- $[26] = onAllowOnce;
207
- $[27] = onBuyCredits;
208
- $[28] = onRaiseCap;
209
- $[29] = onStop;
210
- $[30] = outOfCredits;
211
- $[31] = primaryRef;
212
- $[32] = projected;
213
- $[33] = runName;
214
- $[34] = t14;
215
- } else {
216
- t14 = $[34];
217
- }
218
- const t15 = decision ? decision.approved ? "Spend allowed" : "Run stopped" : copy.title;
219
- let t16;
220
- if ($[35] !== t15) {
221
- t16 = /*#__PURE__*/_jsx(LiveStatus, {
222
- message: t15
223
- });
224
- $[35] = t15;
225
- $[36] = t16;
226
- } else {
227
- t16 = $[36];
228
- }
229
- let t17;
230
- if ($[37] !== copy.title || $[38] !== situation || $[39] !== t10 || $[40] !== t13 || $[41] !== t14 || $[42] !== t16 || $[43] !== t6) {
231
- t17 = /*#__PURE__*/_jsxs(ApprovalPanel, {
232
- "data-slot": "spend-gate",
233
- "data-situation": situation,
234
- "aria-label": t4,
235
- className: t6,
236
- children: [t10, t13, t14, t16]
237
- });
238
- $[37] = copy.title;
239
- $[38] = situation;
240
- $[39] = t10;
241
- $[40] = t13;
242
- $[41] = t14;
243
- $[42] = t16;
244
- $[43] = t6;
245
- $[44] = t17;
246
- } else {
247
- t17 = $[44];
248
- }
249
- return t17;
131
+ }), /*#__PURE__*/_jsx(LiveStatus, {
132
+ message: decision ? decision.approved ? "Spend allowed" : "Run stopped" : copy.title
133
+ })]
134
+ });
250
135
  }