@burdenoff/microfe-stewards 2026.1202.1 → 2026.1202.3
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/stewards/components/LiveDeskPanel.js +97 -71
- package/dist/stewards/components/LiveDeskPanel.js.map +1 -1
- package/dist/stewards/components/run/RunHeader.d.ts +36 -0
- package/dist/stewards/components/run/RunHeader.js +163 -0
- package/dist/stewards/components/run/RunHeader.js.map +1 -0
- package/dist/stewards/components/run/RunStepsSection.d.ts +13 -0
- package/dist/stewards/components/run/RunStepsSection.js +151 -0
- package/dist/stewards/components/run/RunStepsSection.js.map +1 -0
- package/dist/stewards/components/run/RunSummaryCards.d.ts +8 -0
- package/dist/stewards/components/run/RunSummaryCards.js +92 -0
- package/dist/stewards/components/run/RunSummaryCards.js.map +1 -0
- package/dist/stewards/components/run/StepDetail.d.ts +6 -0
- package/dist/stewards/components/run/StepDetail.js +126 -0
- package/dist/stewards/components/run/StepDetail.js.map +1 -0
- package/dist/stewards/i18n/en.d.ts +1 -0
- package/dist/stewards/i18n/en.js +1 -0
- package/dist/stewards/i18n/en.js.map +1 -1
- package/dist/stewards/live/useDeskStream.d.ts +6 -1
- package/dist/stewards/live/useDeskStream.js +14 -12
- package/dist/stewards/live/useDeskStream.js.map +1 -1
- package/dist/stewards/pages/StewardNewPage.js +51 -44
- package/dist/stewards/pages/StewardNewPage.js.map +1 -1
- package/dist/stewards/pages/StewardRunPage.js +86 -478
- package/dist/stewards/pages/StewardRunPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,505 +1,113 @@
|
|
|
1
|
-
import { useBotmanorStewardRunUpdatedSubscription as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { useBotmanorStewardRunUpdatedSubscription as e, useGetBotmanorStewardQuery as t, useGetBotmanorStewardRunQuery as n } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { isRunFinished as r } from "../components/stewardLabels.js";
|
|
3
|
+
import { LiveDeskPanel as i } from "../components/LiveDeskPanel.js";
|
|
4
|
+
import { RunActionNotices as a, RunHeader as o, useRunActions as s } from "../components/run/RunHeader.js";
|
|
5
|
+
import { RunApprovalsCard as c, RunStepsSection as l } from "../components/run/RunStepsSection.js";
|
|
6
|
+
import { RunSummaryCards as u } from "../components/run/RunSummaryCards.js";
|
|
7
|
+
import { Button as d, StateMessage as f } from "../components/ui.js";
|
|
8
|
+
import { useStewardsT as p } from "../i18n/useStewardsT.js";
|
|
9
|
+
import { useStewardAbilities as m } from "../permissions/useStewardPermissions.js";
|
|
10
|
+
import { useStewardsContext as h } from "../providers/StewardsProvider.js";
|
|
11
|
+
import { isForbiddenError as g } from "../utils/errors.js";
|
|
12
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect as y } from "react";
|
|
14
|
+
import { useParams as b } from "react-router";
|
|
14
15
|
// src/stewards/pages/StewardRunPage.tsx
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
var x = 3e3;
|
|
17
|
+
function S(i) {
|
|
18
|
+
let a = n({
|
|
19
|
+
variables: { id: i },
|
|
20
|
+
skip: !i,
|
|
21
|
+
fetchPolicy: "cache-and-network"
|
|
22
|
+
}), o = a.data?.getBotmanorStewardRun ?? void 0, s = o?.stewardId, c = t({
|
|
23
|
+
variables: { id: s ?? "" },
|
|
24
|
+
skip: !s
|
|
25
|
+
}).data?.getBotmanorSteward ?? void 0, l = o ? r(o.status) : !1, u = e({
|
|
26
|
+
variables: { stewardId: s ?? "" },
|
|
27
|
+
skip: !s || l
|
|
28
|
+
}), { startPolling: d, stopPolling: f } = a, p = !!o && !l && !!u.error;
|
|
29
|
+
return y(() => (p ? d(x) : f(), () => f()), [
|
|
30
|
+
p,
|
|
31
|
+
d,
|
|
32
|
+
f
|
|
33
|
+
]), {
|
|
34
|
+
runQuery: a,
|
|
35
|
+
run: o,
|
|
36
|
+
steward: c,
|
|
37
|
+
polling: p
|
|
21
38
|
};
|
|
22
39
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var T = 900;
|
|
27
|
-
function E({ fileId: e }) {
|
|
28
|
-
let t = y(), [n, r] = w(!1), { data: a, loading: o, error: s } = i({
|
|
29
|
-
variables: {
|
|
30
|
-
id: e,
|
|
31
|
-
expiresIn: T
|
|
32
|
-
},
|
|
33
|
-
fetchPolicy: "network-only"
|
|
34
|
-
}), c = a?.getFileDownloadUrl;
|
|
35
|
-
return o ? /* @__PURE__ */ S("p", {
|
|
36
|
-
className: "text-xs text-(color:--color-text-secondary)",
|
|
37
|
-
children: t("stewards.common.loading")
|
|
38
|
-
}) : s || !c || n ? /* @__PURE__ */ C(p, { children: [
|
|
39
|
-
t("stewards.run.screenshotError"),
|
|
40
|
-
" ",
|
|
41
|
-
t("stewards.run.screenshotRef", { id: e })
|
|
42
|
-
] }) : /* @__PURE__ */ S("img", {
|
|
43
|
-
src: c,
|
|
44
|
-
alt: t("stewards.run.screenshotAlt"),
|
|
45
|
-
loading: "lazy",
|
|
46
|
-
className: "max-h-96 w-full rounded-md border border-(color:--color-border-seam) object-contain",
|
|
47
|
-
onError: () => r(!0)
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function ue({ step: e, timeZone: t }) {
|
|
51
|
-
let n = y(), r = e.argumentsRedacted, i = typeof r == "object" && !!r && Object.keys(r).length > 0;
|
|
52
|
-
return /* @__PURE__ */ C("div", {
|
|
53
|
-
className: "grid grid-cols-1 gap-4 xl:grid-cols-2",
|
|
54
|
-
children: [/* @__PURE__ */ C("div", {
|
|
55
|
-
className: "flex flex-col gap-3",
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
|
|
58
|
-
className: "mb-1 text-xs font-medium text-(color:--color-text-secondary)",
|
|
59
|
-
children: n("stewards.run.arguments")
|
|
60
|
-
}), /* @__PURE__ */ S("pre", {
|
|
61
|
-
className: "max-h-64 overflow-auto rounded-md bg-(--color-bg-sunken) p-3 text-xs text-(color:--color-text-primary)",
|
|
62
|
-
children: i ? JSON.stringify(r, null, 2) : n("stewards.run.noArguments")
|
|
63
|
-
})] }),
|
|
64
|
-
e.resultSummary && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
|
|
65
|
-
className: "mb-1 text-xs font-medium text-(color:--color-text-secondary)",
|
|
66
|
-
children: n("stewards.run.result")
|
|
67
|
-
}), /* @__PURE__ */ S("p", {
|
|
68
|
-
className: "whitespace-pre-wrap rounded-md bg-(--color-bg-sunken) p-3 text-sm text-(color:--color-text-primary)",
|
|
69
|
-
children: e.resultSummary
|
|
70
|
-
})] }),
|
|
71
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
|
|
72
|
-
className: "mb-1 text-xs font-medium text-(color:--color-text-secondary)",
|
|
73
|
-
children: n("stewards.run.screenshot")
|
|
74
|
-
}), e.screenshotFileId ? /* @__PURE__ */ S(E, { fileId: e.screenshotFileId }, e.screenshotFileId) : /* @__PURE__ */ S("div", {
|
|
75
|
-
className: "rounded-md border border-dashed border-(color:--color-border-seam) p-4 text-center text-xs text-(color:--color-text-secondary)",
|
|
76
|
-
children: n("stewards.run.screenshotNone")
|
|
77
|
-
})] })
|
|
78
|
-
]
|
|
79
|
-
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
|
|
80
|
-
className: "mb-1 text-xs font-medium text-(color:--color-text-secondary)",
|
|
81
|
-
children: n("stewards.run.trail")
|
|
82
|
-
}), /* @__PURE__ */ C("ol", {
|
|
83
|
-
className: "flex flex-col gap-2 text-sm text-(color:--color-text-primary)",
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ C("li", { children: [
|
|
86
|
-
n("stewards.run.trailVerdict"),
|
|
87
|
-
":",
|
|
88
|
-
" ",
|
|
89
|
-
/* @__PURE__ */ S(m, {
|
|
90
|
-
tone: l[e.verdict],
|
|
91
|
-
children: d(n, "verdict", e.verdict)
|
|
92
|
-
})
|
|
93
|
-
] }),
|
|
94
|
-
e.classification && /* @__PURE__ */ C("li", { children: [
|
|
95
|
-
n("stewards.run.trailClassification"),
|
|
96
|
-
": ",
|
|
97
|
-
e.classification
|
|
98
|
-
] }),
|
|
99
|
-
/* @__PURE__ */ C("li", { children: [
|
|
100
|
-
n("stewards.run.trailTrust"),
|
|
101
|
-
": ",
|
|
102
|
-
d(n, "trust", e.trustLevelBefore),
|
|
103
|
-
" →",
|
|
104
|
-
" ",
|
|
105
|
-
d(n, "trust", e.trustLevelAfter)
|
|
106
|
-
] }),
|
|
107
|
-
e.verdictReasons.length > 0 && /* @__PURE__ */ C("li", { children: [
|
|
108
|
-
n("stewards.run.trailReasons"),
|
|
109
|
-
":",
|
|
110
|
-
/* @__PURE__ */ S("ul", {
|
|
111
|
-
className: "ml-4 list-disc text-(color:--color-text-secondary)",
|
|
112
|
-
children: e.verdictReasons.map((e) => /* @__PURE__ */ S("li", { children: e }, e))
|
|
113
|
-
})
|
|
114
|
-
] }),
|
|
115
|
-
e.approvalRequestId && /* @__PURE__ */ S("li", { children: n("stewards.run.trailApproval", { id: e.approvalRequestId }) }),
|
|
116
|
-
e.approvalRuleId && /* @__PURE__ */ S("li", { children: n("stewards.run.trailRule", { id: e.approvalRuleId }) }),
|
|
117
|
-
e.dryRun && /* @__PURE__ */ S("li", {
|
|
118
|
-
className: "text-(color:--color-text-secondary)",
|
|
119
|
-
children: n("stewards.run.trailDryRun")
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ C("li", {
|
|
122
|
-
className: "text-(color:--color-text-secondary)",
|
|
123
|
-
children: [
|
|
124
|
-
n("stewards.run.cost"),
|
|
125
|
-
": ",
|
|
126
|
-
e.creditsUsed.toFixed(2),
|
|
127
|
-
" ·",
|
|
128
|
-
" ",
|
|
129
|
-
n("stewards.run.deskSeconds"),
|
|
130
|
-
": ",
|
|
131
|
-
e.deskSeconds,
|
|
132
|
-
"s ·",
|
|
133
|
-
" ",
|
|
134
|
-
b(e.startedAt, t)
|
|
135
|
-
]
|
|
136
|
-
})
|
|
137
|
-
]
|
|
138
|
-
})] })]
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function D() {
|
|
142
|
-
let i = y(), { runId: s = "" } = oe(), { navigate: T, pathTo: E } = re(), { canExecute: D } = ne(), [O, k] = w(null), A = r({
|
|
143
|
-
variables: { id: s },
|
|
144
|
-
skip: !s,
|
|
145
|
-
fetchPolicy: "cache-and-network"
|
|
146
|
-
}), j = A.data?.getBotmanorStewardRun ?? void 0, M = j?.stewardId, N = n({
|
|
147
|
-
variables: { id: M ?? "" },
|
|
148
|
-
skip: !M
|
|
149
|
-
}).data?.getBotmanorSteward ?? void 0, P = j ? f(j.status) : !1, de = e({
|
|
150
|
-
variables: { stewardId: M ?? "" },
|
|
151
|
-
skip: !M || P
|
|
152
|
-
}), { startPolling: F, stopPolling: I } = A, L = !!j && !P && !!de.error;
|
|
153
|
-
ae(() => (L ? F(se) : I(), () => I()), [
|
|
154
|
-
L,
|
|
155
|
-
F,
|
|
156
|
-
I
|
|
157
|
-
]);
|
|
158
|
-
let [fe, R] = t(), [pe, z] = o(), [me, B] = w(!1), V = a({
|
|
159
|
-
variables: {
|
|
160
|
-
filter: { stewardId: M ?? "" },
|
|
161
|
-
pagination: { limit: 20 }
|
|
162
|
-
},
|
|
163
|
-
skip: !M || !P,
|
|
164
|
-
fetchPolicy: "cache-and-network"
|
|
165
|
-
});
|
|
166
|
-
if (A.error && !j) return /* @__PURE__ */ S("div", {
|
|
40
|
+
function C() {
|
|
41
|
+
let e = p(), { runId: t = "" } = b(), { navigate: n, pathTo: r } = h(), { runQuery: i, run: a, steward: o, polling: s } = S(t);
|
|
42
|
+
return i.error && !a ? /* @__PURE__ */ _("div", {
|
|
167
43
|
className: "p-6",
|
|
168
|
-
children: /* @__PURE__ */
|
|
169
|
-
kind:
|
|
170
|
-
title:
|
|
171
|
-
body:
|
|
172
|
-
action: /* @__PURE__ */
|
|
173
|
-
onClick: () => void
|
|
174
|
-
children:
|
|
44
|
+
children: /* @__PURE__ */ _(f, {
|
|
45
|
+
kind: g(i.error) ? "forbidden" : "error",
|
|
46
|
+
title: e("stewards.run.loadError"),
|
|
47
|
+
body: i.error.message,
|
|
48
|
+
action: /* @__PURE__ */ _(d, {
|
|
49
|
+
onClick: () => void i.refetch(),
|
|
50
|
+
children: e("stewards.common.retry")
|
|
175
51
|
})
|
|
176
52
|
})
|
|
177
|
-
})
|
|
178
|
-
|
|
53
|
+
}) : a ? /* @__PURE__ */ _(w, {
|
|
54
|
+
run: a,
|
|
55
|
+
steward: o,
|
|
56
|
+
polling: s
|
|
57
|
+
}) : /* @__PURE__ */ _("div", {
|
|
179
58
|
className: "p-6",
|
|
180
|
-
children:
|
|
59
|
+
children: i.loading ? /* @__PURE__ */ _(f, {
|
|
181
60
|
kind: "loading",
|
|
182
|
-
title:
|
|
183
|
-
}) : /* @__PURE__ */
|
|
61
|
+
title: e("stewards.common.loading")
|
|
62
|
+
}) : /* @__PURE__ */ _(f, {
|
|
184
63
|
kind: "empty",
|
|
185
|
-
title:
|
|
186
|
-
body:
|
|
187
|
-
action: /* @__PURE__ */
|
|
188
|
-
onClick: () =>
|
|
189
|
-
children:
|
|
64
|
+
title: e("stewards.common.notFoundTitle"),
|
|
65
|
+
body: e("stewards.common.notFoundBody"),
|
|
66
|
+
action: /* @__PURE__ */ _(d, {
|
|
67
|
+
onClick: () => n(r()),
|
|
68
|
+
children: e("stewards.common.back")
|
|
190
69
|
})
|
|
191
70
|
})
|
|
192
71
|
});
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
dryRun: e
|
|
198
|
-
} } }).then(({ data: e }) => {
|
|
199
|
-
e?.runBotmanorSteward.id && T(E("runs", e.runBotmanorSteward.id));
|
|
200
|
-
}).catch(() => void 0);
|
|
201
|
-
};
|
|
202
|
-
return /* @__PURE__ */ C("section", {
|
|
72
|
+
}
|
|
73
|
+
function w({ run: e, steward: t, polling: n }) {
|
|
74
|
+
let r = p(), { canExecute: d } = m(), f = s(e, t), h = t?.charter.timezone ?? "UTC", { finished: g } = f;
|
|
75
|
+
return /* @__PURE__ */ v("section", {
|
|
203
76
|
className: "flex flex-col gap-4 p-6",
|
|
204
77
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
/* @__PURE__ */ C("h1", {
|
|
212
|
-
className: "text-xl font-semibold text-(color:--color-text-primary)",
|
|
213
|
-
children: [
|
|
214
|
-
i("stewards.run.title"),
|
|
215
|
-
" ",
|
|
216
|
-
/* @__PURE__ */ S("code", {
|
|
217
|
-
className: "text-base",
|
|
218
|
-
children: j.id
|
|
219
|
-
})
|
|
220
|
-
]
|
|
221
|
-
}),
|
|
222
|
-
/* @__PURE__ */ S(m, {
|
|
223
|
-
tone: ee[j.status],
|
|
224
|
-
children: d(i, "runStatus", j.status)
|
|
225
|
-
}),
|
|
226
|
-
j.dryRun && /* @__PURE__ */ S(m, {
|
|
227
|
-
tone: "info",
|
|
228
|
-
children: i("stewards.run.dryBadge")
|
|
229
|
-
})
|
|
230
|
-
]
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ C("p", {
|
|
233
|
-
className: "text-sm text-(color:--color-text-secondary)",
|
|
234
|
-
children: [
|
|
235
|
-
i("stewards.run.steward"),
|
|
236
|
-
":",
|
|
237
|
-
" ",
|
|
238
|
-
/* @__PURE__ */ S("button", {
|
|
239
|
-
type: "button",
|
|
240
|
-
className: "text-(color:--color-text-primary) hover:underline",
|
|
241
|
-
onClick: () => T(E(j.stewardId)),
|
|
242
|
-
children: N?.agent?.name ?? j.stewardId
|
|
243
|
-
}),
|
|
244
|
-
" ",
|
|
245
|
-
"· ",
|
|
246
|
-
i("stewards.run.trigger"),
|
|
247
|
-
": ",
|
|
248
|
-
d(i, "trigger", j.trigger),
|
|
249
|
-
N && ` · ${i("stewards.run.autonomy")}: ${d(i, "autonomy", N.charter.autonomyLevel)}`,
|
|
250
|
-
j.startedAt && ` · ${i("stewards.run.started")} ${b(j.startedAt, H)}`
|
|
251
|
-
]
|
|
252
|
-
}),
|
|
253
|
-
j.stopReason && /* @__PURE__ */ S("p", {
|
|
254
|
-
className: "text-sm text-(color:--color-text-secondary)",
|
|
255
|
-
children: i("stewards.run.stopReason", { reason: j.stopReason })
|
|
256
|
-
})
|
|
257
|
-
] }), D && /* @__PURE__ */ C("div", {
|
|
258
|
-
className: "flex flex-wrap gap-2",
|
|
259
|
-
children: [!P && /* @__PURE__ */ S(h, {
|
|
260
|
-
variant: "danger",
|
|
261
|
-
disabled: R.loading,
|
|
262
|
-
onClick: () => void fe({ variables: { id: j.id } }).catch(() => void 0),
|
|
263
|
-
children: R.loading ? i("stewards.run.stopping") : i("stewards.run.stopRun")
|
|
264
|
-
}), P && X !== "" && /* @__PURE__ */ C(x, { children: [!j.dryRun && /* @__PURE__ */ S(h, {
|
|
265
|
-
variant: "primary",
|
|
266
|
-
disabled: z.loading || Q,
|
|
267
|
-
onClick: () => $(!0),
|
|
268
|
-
children: i("stewards.run.retryDry")
|
|
269
|
-
}), /* @__PURE__ */ S(h, {
|
|
270
|
-
disabled: z.loading || Q,
|
|
271
|
-
onClick: () => j.dryRun ? $(!0) : B(!0),
|
|
272
|
-
children: z.loading ? i("stewards.run.retrying") : j.dryRun ? i("stewards.run.retry") : i("stewards.run.retryLive")
|
|
273
|
-
})] })]
|
|
274
|
-
})]
|
|
78
|
+
/* @__PURE__ */ _(o, {
|
|
79
|
+
run: e,
|
|
80
|
+
steward: t,
|
|
81
|
+
zone: h,
|
|
82
|
+
canExecute: d,
|
|
83
|
+
actions: f
|
|
275
84
|
}),
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
R.error.message
|
|
280
|
-
] }),
|
|
281
|
-
P && X !== "" && D && Q && !V.loading && /* @__PURE__ */ S("p", {
|
|
282
|
-
className: "text-xs text-(color:--color-text-secondary)",
|
|
283
|
-
role: "status",
|
|
284
|
-
children: i(Z ? "stewards.run.retryBlockedActive" : "stewards.run.retryBlockedStatus")
|
|
85
|
+
/* @__PURE__ */ _(a, {
|
|
86
|
+
canExecute: d,
|
|
87
|
+
actions: f
|
|
285
88
|
}),
|
|
286
|
-
|
|
287
|
-
className: "mb-2",
|
|
288
|
-
children: i("stewards.run.retryLiveConfirm")
|
|
289
|
-
}), /* @__PURE__ */ C("div", {
|
|
290
|
-
className: "flex gap-2",
|
|
291
|
-
children: [/* @__PURE__ */ S(h, {
|
|
292
|
-
variant: "danger",
|
|
293
|
-
onClick: () => $(!1),
|
|
294
|
-
children: i("stewards.run.retryLiveConfirmAction")
|
|
295
|
-
}), /* @__PURE__ */ S(h, {
|
|
296
|
-
onClick: () => B(!1),
|
|
297
|
-
children: i("stewards.common.cancel")
|
|
298
|
-
})]
|
|
299
|
-
})] }),
|
|
300
|
-
z.error && /* @__PURE__ */ C(p, { children: [
|
|
301
|
-
i("stewards.run.retryError"),
|
|
302
|
-
" ",
|
|
303
|
-
z.error.message
|
|
304
|
-
] }),
|
|
305
|
-
!P && /* @__PURE__ */ S("p", {
|
|
89
|
+
!g && /* @__PURE__ */ _("p", {
|
|
306
90
|
className: "text-xs text-(color:--color-text-secondary)",
|
|
307
91
|
role: "status",
|
|
308
|
-
children:
|
|
92
|
+
children: r(n ? "stewards.run.polling" : "stewards.run.live")
|
|
309
93
|
}),
|
|
310
|
-
!
|
|
311
|
-
runId:
|
|
312
|
-
status:
|
|
313
|
-
canExecute:
|
|
94
|
+
!g && /* @__PURE__ */ _(i, {
|
|
95
|
+
runId: e.id,
|
|
96
|
+
status: e.status,
|
|
97
|
+
canExecute: d
|
|
314
98
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
/* @__PURE__ */ C(g, {
|
|
319
|
-
title: i("stewards.run.trustTitle"),
|
|
320
|
-
children: [/* @__PURE__ */ C("p", {
|
|
321
|
-
className: "flex flex-wrap items-center gap-2 text-sm",
|
|
322
|
-
children: [/* @__PURE__ */ S(m, {
|
|
323
|
-
tone: "success",
|
|
324
|
-
children: d(i, "trust", j.initialTrustLevel)
|
|
325
|
-
}), j.trustLevel !== j.initialTrustLevel && /* @__PURE__ */ C(x, { children: ["→", /* @__PURE__ */ S(m, {
|
|
326
|
-
tone: "warning",
|
|
327
|
-
children: d(i, "trust", j.trustLevel)
|
|
328
|
-
})] })]
|
|
329
|
-
}), /* @__PURE__ */ S("p", {
|
|
330
|
-
className: "mt-1 text-xs text-(color:--color-text-secondary)",
|
|
331
|
-
children: K ? `${i("stewards.run.trustDegraded")} · #${K.seq}` : i("stewards.run.trustSame")
|
|
332
|
-
})]
|
|
333
|
-
}),
|
|
334
|
-
/* @__PURE__ */ C(g, {
|
|
335
|
-
title: i("stewards.run.budgetTitle"),
|
|
336
|
-
children: [/* @__PURE__ */ C("p", {
|
|
337
|
-
className: "text-2xl font-semibold text-(color:--color-text-primary) tabular-nums",
|
|
338
|
-
children: [Y.toFixed(2), /* @__PURE__ */ C("span", {
|
|
339
|
-
className: "text-sm font-normal text-(color:--color-text-secondary)",
|
|
340
|
-
children: [
|
|
341
|
-
" ",
|
|
342
|
-
"/ ",
|
|
343
|
-
q ?? "—"
|
|
344
|
-
]
|
|
345
|
-
})]
|
|
346
|
-
}), /* @__PURE__ */ S(_, {
|
|
347
|
-
ratio: u(Y, q),
|
|
348
|
-
label: i("stewards.run.budgetTitle")
|
|
349
|
-
})]
|
|
350
|
-
}),
|
|
351
|
-
/* @__PURE__ */ C(g, {
|
|
352
|
-
title: i("stewards.run.stepsTitle"),
|
|
353
|
-
children: [/* @__PURE__ */ C("p", {
|
|
354
|
-
className: "text-2xl font-semibold text-(color:--color-text-primary) tabular-nums",
|
|
355
|
-
children: [j.stepCount, /* @__PURE__ */ C("span", {
|
|
356
|
-
className: "text-sm font-normal text-(color:--color-text-secondary)",
|
|
357
|
-
children: [
|
|
358
|
-
" ",
|
|
359
|
-
"/ ",
|
|
360
|
-
J ?? "—"
|
|
361
|
-
]
|
|
362
|
-
})]
|
|
363
|
-
}), /* @__PURE__ */ S(_, {
|
|
364
|
-
ratio: u(j.stepCount, J),
|
|
365
|
-
label: i("stewards.run.stepsTitle")
|
|
366
|
-
})]
|
|
367
|
-
}),
|
|
368
|
-
/* @__PURE__ */ C(g, {
|
|
369
|
-
title: i("stewards.run.verdictsTitle"),
|
|
370
|
-
children: [/* @__PURE__ */ C("p", {
|
|
371
|
-
className: "text-2xl font-semibold text-(color:--color-text-primary) tabular-nums",
|
|
372
|
-
children: [
|
|
373
|
-
G.allowed,
|
|
374
|
-
" · ",
|
|
375
|
-
G.asked,
|
|
376
|
-
" · ",
|
|
377
|
-
G.denied
|
|
378
|
-
]
|
|
379
|
-
}), /* @__PURE__ */ S("p", {
|
|
380
|
-
className: "text-xs text-(color:--color-text-secondary)",
|
|
381
|
-
children: i("stewards.run.verdictsLegend")
|
|
382
|
-
})]
|
|
383
|
-
})
|
|
384
|
-
]
|
|
99
|
+
/* @__PURE__ */ _(u, {
|
|
100
|
+
run: e,
|
|
101
|
+
steward: t
|
|
385
102
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
title: i("stewards.run.stepsHeading"),
|
|
390
|
-
hint: i("stewards.run.stepsOrdered"),
|
|
391
|
-
className: "xl:col-span-2",
|
|
392
|
-
children: U.length === 0 ? /* @__PURE__ */ S(v, {
|
|
393
|
-
kind: "empty",
|
|
394
|
-
title: i("stewards.run.noSteps")
|
|
395
|
-
}) : /* @__PURE__ */ S("div", {
|
|
396
|
-
className: "overflow-x-auto",
|
|
397
|
-
children: /* @__PURE__ */ C("table", {
|
|
398
|
-
className: "w-full text-sm",
|
|
399
|
-
"aria-label": i("stewards.run.stepsHeading"),
|
|
400
|
-
children: [/* @__PURE__ */ S("thead", { children: /* @__PURE__ */ C("tr", {
|
|
401
|
-
className: "border-b border-(color:--color-border-seam) text-left text-xs text-(color:--color-text-secondary)",
|
|
402
|
-
children: [
|
|
403
|
-
/* @__PURE__ */ S("th", {
|
|
404
|
-
scope: "col",
|
|
405
|
-
className: "px-2 py-1 font-medium",
|
|
406
|
-
children: i("stewards.run.colNumber")
|
|
407
|
-
}),
|
|
408
|
-
/* @__PURE__ */ S("th", {
|
|
409
|
-
scope: "col",
|
|
410
|
-
className: "px-2 py-1 font-medium",
|
|
411
|
-
children: i("stewards.run.colStep")
|
|
412
|
-
}),
|
|
413
|
-
/* @__PURE__ */ S("th", {
|
|
414
|
-
scope: "col",
|
|
415
|
-
className: "px-2 py-1 font-medium",
|
|
416
|
-
children: i("stewards.run.colVerdict")
|
|
417
|
-
}),
|
|
418
|
-
/* @__PURE__ */ S("th", {
|
|
419
|
-
scope: "col",
|
|
420
|
-
className: "px-2 py-1 font-medium",
|
|
421
|
-
children: i("stewards.run.colCredits")
|
|
422
|
-
})
|
|
423
|
-
]
|
|
424
|
-
}) }), /* @__PURE__ */ S("tbody", { children: U.map((e) => /* @__PURE__ */ C("tr", {
|
|
425
|
-
"aria-selected": W?.id === e.id,
|
|
426
|
-
className: `border-b border-(color:--color-border-seam) last:border-b-0 ${W?.id === e.id ? "bg-(--color-accent-soft)" : ""}`,
|
|
427
|
-
children: [
|
|
428
|
-
/* @__PURE__ */ S("td", {
|
|
429
|
-
className: "px-2 py-2 text-(color:--color-text-secondary) tabular-nums",
|
|
430
|
-
children: e.seq
|
|
431
|
-
}),
|
|
432
|
-
/* @__PURE__ */ S("td", {
|
|
433
|
-
className: "px-2 py-2",
|
|
434
|
-
children: /* @__PURE__ */ C("button", {
|
|
435
|
-
type: "button",
|
|
436
|
-
className: "text-left focus-visible:outline-2 focus-visible:outline-(color:--color-focus-ring)",
|
|
437
|
-
onClick: () => k(e.id),
|
|
438
|
-
children: [/* @__PURE__ */ S("span", {
|
|
439
|
-
className: "block font-medium text-(color:--color-text-primary)",
|
|
440
|
-
children: d(i, "stepKind", e.kind)
|
|
441
|
-
}), /* @__PURE__ */ S("span", {
|
|
442
|
-
className: "block break-all font-mono text-xs text-(color:--color-text-secondary)",
|
|
443
|
-
children: [e.toolKey, e.targetSummary].filter(Boolean).join(" · ")
|
|
444
|
-
})]
|
|
445
|
-
})
|
|
446
|
-
}),
|
|
447
|
-
/* @__PURE__ */ S("td", {
|
|
448
|
-
className: "px-2 py-2",
|
|
449
|
-
children: /* @__PURE__ */ S(m, {
|
|
450
|
-
tone: l[e.verdict],
|
|
451
|
-
children: d(i, "verdict", e.verdict)
|
|
452
|
-
})
|
|
453
|
-
}),
|
|
454
|
-
/* @__PURE__ */ S("td", {
|
|
455
|
-
className: "px-2 py-2 text-(color:--color-text-primary) tabular-nums",
|
|
456
|
-
children: e.creditsUsed.toFixed(2)
|
|
457
|
-
})
|
|
458
|
-
]
|
|
459
|
-
}, e.id)) })]
|
|
460
|
-
})
|
|
461
|
-
})
|
|
462
|
-
}), /* @__PURE__ */ S(g, {
|
|
463
|
-
title: W ? i("stewards.run.stepDetail", {
|
|
464
|
-
seq: W.seq,
|
|
465
|
-
tool: W.toolKey ?? d(i, "stepKind", W.kind)
|
|
466
|
-
}) : i("stewards.run.stepsHeading"),
|
|
467
|
-
className: "xl:col-span-3",
|
|
468
|
-
children: W ? /* @__PURE__ */ S(ue, {
|
|
469
|
-
step: W,
|
|
470
|
-
timeZone: H
|
|
471
|
-
}) : /* @__PURE__ */ S("p", {
|
|
472
|
-
className: "text-sm text-(color:--color-text-secondary)",
|
|
473
|
-
children: i("stewards.run.pickStep")
|
|
474
|
-
})
|
|
475
|
-
})]
|
|
103
|
+
/* @__PURE__ */ _(l, {
|
|
104
|
+
steps: e.steps,
|
|
105
|
+
timeZone: h
|
|
476
106
|
}),
|
|
477
|
-
|
|
478
|
-
title: i("stewards.run.approvalsTitle"),
|
|
479
|
-
children: /* @__PURE__ */ S("ul", {
|
|
480
|
-
className: "flex flex-col gap-1 text-sm",
|
|
481
|
-
children: j.approvals.map((e) => /* @__PURE__ */ C("li", {
|
|
482
|
-
className: "flex flex-wrap items-center gap-2 text-(color:--color-text-primary)",
|
|
483
|
-
children: [
|
|
484
|
-
/* @__PURE__ */ S("code", {
|
|
485
|
-
className: "text-xs",
|
|
486
|
-
children: e.toolName
|
|
487
|
-
}),
|
|
488
|
-
/* @__PURE__ */ S(m, {
|
|
489
|
-
tone: e.status === "PENDING" ? "warning" : e.status === "APPROVED" ? "success" : "neutral",
|
|
490
|
-
children: d(i, "approvalStatus", e.status)
|
|
491
|
-
}),
|
|
492
|
-
e.requestedScope && /* @__PURE__ */ S("span", {
|
|
493
|
-
className: "text-xs text-(color:--color-text-secondary)",
|
|
494
|
-
children: d(i, "scope", e.requestedScope)
|
|
495
|
-
})
|
|
496
|
-
]
|
|
497
|
-
}, e.id))
|
|
498
|
-
})
|
|
499
|
-
})
|
|
107
|
+
/* @__PURE__ */ _(c, { approvals: e.approvals })
|
|
500
108
|
]
|
|
501
109
|
});
|
|
502
110
|
}
|
|
503
|
-
export {
|
|
111
|
+
export { C as StewardRunPage };
|
|
504
112
|
|
|
505
113
|
//# sourceMappingURL=StewardRunPage.js.map
|