@burdenoff/microfe-stewards 2026.1203.1 → 2026.1204.2
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/generated/wspace-operations.d.ts +3 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/node_modules/zustand/esm/vanilla.js.map +1 -1
- package/dist/stewards/StewardsRoot.js +15 -15
- package/dist/stewards/StewardsRoot.js.map +1 -1
- package/dist/stewards/StewardsRoutes.js +35 -35
- package/dist/stewards/StewardsRoutes.js.map +1 -1
- package/dist/stewards/components/CharterControls.js.map +1 -1
- package/dist/stewards/components/ControlBanner.js.map +1 -1
- package/dist/stewards/components/DutyEditor.js +44 -44
- package/dist/stewards/components/DutyEditor.js.map +1 -1
- package/dist/stewards/components/FormField.js.map +1 -1
- package/dist/stewards/components/LinesField.js +11 -11
- package/dist/stewards/components/LinesField.js.map +1 -1
- package/dist/stewards/components/LiveDeskPanel.js +57 -57
- package/dist/stewards/components/LiveDeskPanel.js.map +1 -1
- package/dist/stewards/components/MemoryDiffView.js.map +1 -1
- package/dist/stewards/components/ProposalsQueue.js.map +1 -1
- package/dist/stewards/components/RunsTable.js.map +1 -1
- package/dist/stewards/components/StewardsTable.js.map +1 -1
- package/dist/stewards/components/TeachRecorder.js +84 -84
- package/dist/stewards/components/TeachRecorder.js.map +1 -1
- package/dist/stewards/components/run/RunHeader.js +63 -63
- package/dist/stewards/components/run/RunHeader.js.map +1 -1
- package/dist/stewards/components/run/RunStepsSection.js +58 -58
- package/dist/stewards/components/run/RunStepsSection.js.map +1 -1
- package/dist/stewards/components/run/RunSummaryCards.js.map +1 -1
- package/dist/stewards/components/run/StepDetail.js +59 -59
- package/dist/stewards/components/run/StepDetail.js.map +1 -1
- package/dist/stewards/components/stewardLabels.js.map +1 -1
- package/dist/stewards/components/ui.js.map +1 -1
- package/dist/stewards/hooks/useStewards.js.map +1 -1
- package/dist/stewards/i18n/en.js.map +1 -1
- package/dist/stewards/i18n/useStewardsT.js +11 -11
- package/dist/stewards/i18n/useStewardsT.js.map +1 -1
- package/dist/stewards/live/DeskCanvas.js +35 -35
- package/dist/stewards/live/DeskCanvas.js.map +1 -1
- package/dist/stewards/live/DeskStreamConnection.js.map +1 -1
- package/dist/stewards/live/backoff.js.map +1 -1
- package/dist/stewards/live/browserConnection.js +6 -6
- package/dist/stewards/live/browserConnection.js.map +1 -1
- package/dist/stewards/live/describeStream.js.map +1 -1
- package/dist/stewards/live/mintPass.js +19 -19
- package/dist/stewards/live/mintPass.js.map +1 -1
- package/dist/stewards/live/protocol.js.map +1 -1
- package/dist/stewards/live/useDeskStream.js +11 -11
- package/dist/stewards/live/useDeskStream.js.map +1 -1
- package/dist/stewards/pages/StewardCharterPage.js +166 -166
- package/dist/stewards/pages/StewardCharterPage.js.map +1 -1
- package/dist/stewards/pages/StewardDaybookPage.js +101 -101
- package/dist/stewards/pages/StewardDaybookPage.js.map +1 -1
- package/dist/stewards/pages/StewardDutiesPage.js +89 -89
- package/dist/stewards/pages/StewardDutiesPage.js.map +1 -1
- package/dist/stewards/pages/StewardLayout.js +103 -103
- package/dist/stewards/pages/StewardLayout.js.map +1 -1
- package/dist/stewards/pages/StewardMemoryPage.js +135 -135
- package/dist/stewards/pages/StewardMemoryPage.js.map +1 -1
- package/dist/stewards/pages/StewardNewPage.js +172 -172
- package/dist/stewards/pages/StewardNewPage.js.map +1 -1
- package/dist/stewards/pages/StewardOverviewPage.js.map +1 -1
- package/dist/stewards/pages/StewardPlaybooksPage.js +151 -151
- package/dist/stewards/pages/StewardPlaybooksPage.js.map +1 -1
- package/dist/stewards/pages/StewardRunPage.js +65 -65
- package/dist/stewards/pages/StewardRunPage.js.map +1 -1
- package/dist/stewards/pages/StewardsListPage.js.map +1 -1
- package/dist/stewards/permissions/useStewardPermissions.js +7 -7
- package/dist/stewards/permissions/useStewardPermissions.js.map +1 -1
- package/dist/stewards/providers/StewardsProvider.js +18 -18
- package/dist/stewards/providers/StewardsProvider.js.map +1 -1
- package/dist/stewards/store/stewardsStore.js.map +1 -1
- package/dist/stewards/utils/charterForm.js.map +1 -1
- package/dist/stewards/utils/dates.js.map +1 -1
- package/dist/stewards/utils/daybook.js.map +1 -1
- package/dist/stewards/utils/dutyForm.js.map +1 -1
- package/dist/stewards/utils/errors.js.map +1 -1
- package/dist/stewards/utils/memory.js.map +1 -1
- package/dist/stewards/utils/playbookForm.js.map +1 -1
- package/dist/stewards/utils/recorder.js.map +1 -1
- package/dist/stewards/utils/wizard.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import {
|
|
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 { useMemo as e, useState as t } from "react";
|
|
2
|
+
import { useBotmanorStewardWorkspaceControlsQuery as n, useListBotmanorStewardApprovalRulesQuery as r, useRevokeBotmanorStewardApprovalRuleMutation as i, useUpdateBotmanorStewardCharterMutation as a } from "../../generated/wspace-operations.js";
|
|
3
|
+
import { BotmanorStewardDeskEgressMode as o, BotmanorStewardStatus as s } from "../../generated/wspace-types.js";
|
|
4
|
+
import { AutonomyPicker as c, BudgetTable as l, FixedDefaultsCard as u, ToolSwitches as d } from "../components/CharterControls.js";
|
|
5
|
+
import { LinesField as f } from "../components/LinesField.js";
|
|
6
|
+
import { budgetRatio as p, enumLabel as m } from "../components/stewardLabels.js";
|
|
7
|
+
import { Alert as h, Badge as g, Button as _, Card as v, ProgressBar as y, StateMessage as b, Switch as x } from "../components/ui.js";
|
|
8
|
+
import { FIELD_CLASS as S } from "../components/fieldClasses.js";
|
|
9
|
+
import { useStewardsT as C } from "../i18n/useStewardsT.js";
|
|
10
|
+
import { useStewardAbilities as w } from "../permissions/useStewardPermissions.js";
|
|
11
|
+
import { buildCharterUpdate as T, charterToForm as E, customToolKeys as D, mergeToolKeys as O } from "../utils/charterForm.js";
|
|
12
|
+
import { useStewardOutlet as k } from "./StewardLayout.js";
|
|
13
|
+
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
14
14
|
// src/stewards/pages/StewardCharterPage.tsx
|
|
15
|
-
function M({ stewardId: e, canUpdate:
|
|
16
|
-
let
|
|
15
|
+
function M({ stewardId: e, canUpdate: t }) {
|
|
16
|
+
let n = C(), { data: a, loading: o, error: s, refetch: c } = r({
|
|
17
17
|
variables: { stewardId: e },
|
|
18
18
|
fetchPolicy: "cache-and-network"
|
|
19
|
-
}), [l, { loading: u }] =
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
title:
|
|
22
|
-
hint:
|
|
23
|
-
children: s ? /* @__PURE__ */
|
|
19
|
+
}), [l, { loading: u }] = i(), d = a?.listBotmanorStewardApprovalRules ?? [];
|
|
20
|
+
return /* @__PURE__ */ A(v, {
|
|
21
|
+
title: n("stewards.charter.rulesSection"),
|
|
22
|
+
hint: n("stewards.charter.rulesSectionHint"),
|
|
23
|
+
children: s ? /* @__PURE__ */ A(b, {
|
|
24
24
|
kind: "error",
|
|
25
|
-
title:
|
|
25
|
+
title: n("stewards.common.errorTitle"),
|
|
26
26
|
body: s.message
|
|
27
|
-
}) : o && d.length === 0 ? /* @__PURE__ */
|
|
27
|
+
}) : o && d.length === 0 ? /* @__PURE__ */ A(b, {
|
|
28
28
|
kind: "loading",
|
|
29
|
-
title:
|
|
30
|
-
}) : d.length === 0 ? /* @__PURE__ */
|
|
29
|
+
title: n("stewards.common.loading")
|
|
30
|
+
}) : d.length === 0 ? /* @__PURE__ */ A("p", {
|
|
31
31
|
className: "text-sm text-(color:--color-text-secondary)",
|
|
32
|
-
children:
|
|
33
|
-
}) : /* @__PURE__ */
|
|
32
|
+
children: n("stewards.charter.rulesEmpty")
|
|
33
|
+
}) : /* @__PURE__ */ A("div", {
|
|
34
34
|
className: "overflow-x-auto",
|
|
35
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ j("table", {
|
|
36
36
|
className: "w-full text-sm",
|
|
37
|
-
"aria-label":
|
|
38
|
-
children: [/* @__PURE__ */
|
|
37
|
+
"aria-label": n("stewards.charter.rulesSection"),
|
|
38
|
+
children: [/* @__PURE__ */ A("thead", { children: /* @__PURE__ */ j("tr", {
|
|
39
39
|
className: "text-left text-xs text-(color:--color-text-secondary)",
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ A("th", {
|
|
42
42
|
scope: "col",
|
|
43
43
|
className: "px-2 py-1 font-medium",
|
|
44
|
-
children:
|
|
44
|
+
children: n("stewards.charter.colTool")
|
|
45
45
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ A("th", {
|
|
47
47
|
scope: "col",
|
|
48
48
|
className: "px-2 py-1 font-medium",
|
|
49
|
-
children:
|
|
49
|
+
children: n("stewards.charter.colDestination")
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ A("th", {
|
|
52
52
|
scope: "col",
|
|
53
53
|
className: "px-2 py-1 font-medium",
|
|
54
|
-
children:
|
|
54
|
+
children: n("stewards.charter.colPurpose")
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ A("th", {
|
|
57
57
|
scope: "col",
|
|
58
58
|
className: "px-2 py-1 font-medium",
|
|
59
|
-
children:
|
|
59
|
+
children: n("stewards.charter.colLimit")
|
|
60
60
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ A("th", {
|
|
62
62
|
scope: "col",
|
|
63
63
|
className: "px-2 py-1 font-medium",
|
|
64
|
-
children:
|
|
64
|
+
children: n("stewards.charter.colExpires")
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ A("th", {
|
|
67
67
|
scope: "col",
|
|
68
68
|
className: "px-2 py-1"
|
|
69
69
|
})
|
|
70
70
|
]
|
|
71
|
-
}) }), /* @__PURE__ */
|
|
71
|
+
}) }), /* @__PURE__ */ A("tbody", { children: d.map((e) => /* @__PURE__ */ j("tr", {
|
|
72
72
|
className: "border-t border-(color:--color-border-seam)",
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ A("td", {
|
|
75
75
|
className: "px-2 py-2 font-mono text-xs text-(color:--color-text-primary)",
|
|
76
76
|
children: e.toolKey
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ A("td", {
|
|
79
79
|
className: "px-2 py-2 text-(color:--color-text-primary)",
|
|
80
80
|
children: e.destination
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ A("td", {
|
|
83
83
|
className: "px-2 py-2 text-(color:--color-text-secondary)",
|
|
84
84
|
children: e.purpose
|
|
85
85
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ j("td", {
|
|
87
87
|
className: "px-2 py-2 text-(color:--color-text-secondary)",
|
|
88
88
|
children: [
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ A(g, { children: m(n, "scope", e.scope) }),
|
|
90
90
|
" ",
|
|
91
91
|
e.maxUses != null && `${e.usedCount} / ${e.maxUses}`
|
|
92
92
|
]
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ A("td", {
|
|
95
95
|
className: "px-2 py-2 text-(color:--color-text-secondary)",
|
|
96
96
|
children: new Date(e.expiresAt).toLocaleDateString()
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ A("td", {
|
|
99
99
|
className: "px-2 py-2 text-right",
|
|
100
|
-
children:
|
|
100
|
+
children: t && /* @__PURE__ */ A(_, {
|
|
101
101
|
disabled: u,
|
|
102
102
|
onClick: () => void l({ variables: { id: e.id } }).then(() => c()).catch(() => void 0),
|
|
103
|
-
children:
|
|
103
|
+
children: n("stewards.charter.revoke")
|
|
104
104
|
})
|
|
105
105
|
})
|
|
106
106
|
]
|
|
@@ -110,66 +110,66 @@ function M({ stewardId: e, canUpdate: r }) {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
function N() {
|
|
113
|
-
let
|
|
113
|
+
let r = C(), { steward: i } = k(), { canUpdate: g } = w(), b = n({ errorPolicy: "ignore" }), [N, { loading: P, error: F }] = a(), I = e(() => E(i.charter), [i.charter]), [L, R] = t(null), [z, B] = t(null), [V, H] = t(null), [U, W] = t([]), G = L ?? I, K = i.status === s.Archived, q = !g || K, J = T(I, G), Y = !J.ok || Object.keys(J.input).length > 0, X = e(() => D(G.allowedToolKeys), [G.allowedToolKeys]), Z = b.data?.botmanorStewardWorkspaceControls.allowedDeskEgressModes, Q = e(() => Z ? new Set(Z) : null, [Z]), $ = (e) => {
|
|
114
114
|
H(null), R({
|
|
115
115
|
...G,
|
|
116
116
|
...e
|
|
117
117
|
});
|
|
118
118
|
}, ee = async () => {
|
|
119
|
-
let e =
|
|
119
|
+
let e = T(I, G);
|
|
120
120
|
if (!e.ok) B(e.error);
|
|
121
121
|
else {
|
|
122
122
|
B(null);
|
|
123
123
|
try {
|
|
124
124
|
let { data: t } = await N({ variables: {
|
|
125
|
-
id:
|
|
125
|
+
id: i.id,
|
|
126
126
|
input: e.input
|
|
127
|
-
} }),
|
|
128
|
-
|
|
127
|
+
} }), n = t?.updateBotmanorStewardCharter.charter.charterVersion;
|
|
128
|
+
n !== void 0 && (H(n), W((e) => [n, ...e])), R(null);
|
|
129
129
|
} catch {}
|
|
130
130
|
}
|
|
131
|
-
}, te =
|
|
132
|
-
return /* @__PURE__ */
|
|
131
|
+
}, te = i.usageToday, ne = i.charter.budgetPerDay;
|
|
132
|
+
return /* @__PURE__ */ j("div", {
|
|
133
133
|
className: "flex flex-col gap-4",
|
|
134
134
|
children: [
|
|
135
|
-
K && /* @__PURE__ */
|
|
135
|
+
K && /* @__PURE__ */ A(h, {
|
|
136
136
|
tone: "info",
|
|
137
|
-
children:
|
|
137
|
+
children: r("stewards.charter.archivedLocked")
|
|
138
138
|
}),
|
|
139
|
-
!K && !
|
|
139
|
+
!K && !g && /* @__PURE__ */ A(h, {
|
|
140
140
|
tone: "info",
|
|
141
|
-
children:
|
|
141
|
+
children: r("stewards.charter.forbiddenSave")
|
|
142
142
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ j("div", {
|
|
144
144
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-3",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ j("div", {
|
|
146
146
|
className: "flex flex-col gap-4 lg:col-span-2",
|
|
147
147
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
title:
|
|
150
|
-
hint:
|
|
151
|
-
children: [/* @__PURE__ */
|
|
152
|
-
className: `${
|
|
153
|
-
"aria-label":
|
|
148
|
+
/* @__PURE__ */ j(v, {
|
|
149
|
+
title: r("stewards.charter.rulesTitle"),
|
|
150
|
+
hint: r("stewards.charter.rulesHint"),
|
|
151
|
+
children: [/* @__PURE__ */ A("textarea", {
|
|
152
|
+
className: `${S} min-h-40`,
|
|
153
|
+
"aria-label": r("stewards.charter.rulesLabel"),
|
|
154
154
|
"aria-invalid": z?.kind === "charterText",
|
|
155
155
|
readOnly: q,
|
|
156
156
|
value: G.charterText,
|
|
157
157
|
onChange: (e) => $({ charterText: e.target.value })
|
|
158
|
-
}), z?.kind === "charterText" && /* @__PURE__ */
|
|
158
|
+
}), z?.kind === "charterText" && /* @__PURE__ */ A(h, { children: r("stewards.wizard.charterRequired") })]
|
|
159
159
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
title:
|
|
162
|
-
hint:
|
|
163
|
-
children: /* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ A(v, {
|
|
161
|
+
title: r("stewards.wizard.autonomyTitle"),
|
|
162
|
+
hint: r("stewards.wizard.autonomyHint"),
|
|
163
|
+
children: /* @__PURE__ */ A(c, {
|
|
164
164
|
value: G.autonomyLevel,
|
|
165
165
|
disabled: q,
|
|
166
|
-
maxLevel:
|
|
166
|
+
maxLevel: b.data?.botmanorStewardWorkspaceControls.maxAutonomyLevel,
|
|
167
167
|
onChange: (e) => $({ autonomyLevel: e })
|
|
168
168
|
})
|
|
169
169
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
title:
|
|
172
|
-
children: [z?.kind === "budget" && /* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ j(v, {
|
|
171
|
+
title: r("stewards.budget.limit"),
|
|
172
|
+
children: [z?.kind === "budget" && /* @__PURE__ */ A(h, { children: r("stewards.budget.invalid", { name: r(`stewards.budget.${z.key}`) }) }), /* @__PURE__ */ A(l, {
|
|
173
173
|
budgets: G.budgets,
|
|
174
174
|
disabled: q,
|
|
175
175
|
errorAt: z?.kind === "budget" ? z : null,
|
|
@@ -182,224 +182,224 @@ function N() {
|
|
|
182
182
|
} })
|
|
183
183
|
})]
|
|
184
184
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
title:
|
|
187
|
-
hint:
|
|
185
|
+
/* @__PURE__ */ j(v, {
|
|
186
|
+
title: r("stewards.charter.toolsTitle"),
|
|
187
|
+
hint: r("stewards.charter.toolsHint"),
|
|
188
188
|
children: [
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ A(d, {
|
|
190
190
|
allowed: G.allowedToolKeys,
|
|
191
191
|
disabled: q,
|
|
192
|
-
onToggle: (e, t) => $({ allowedToolKeys: t ?
|
|
192
|
+
onToggle: (e, t) => $({ allowedToolKeys: t ? O([...G.allowedToolKeys], [e]) : G.allowedToolKeys.filter((t) => t !== e) })
|
|
193
193
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ j("div", {
|
|
195
195
|
className: "mt-3 flex flex-col gap-1 text-xs text-(color:--color-text-secondary)",
|
|
196
196
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ A("label", {
|
|
198
198
|
htmlFor: "charter-custom-tools",
|
|
199
|
-
children:
|
|
199
|
+
children: r("stewards.charter.customTitle")
|
|
200
200
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ A(f, {
|
|
202
202
|
id: "charter-custom-tools",
|
|
203
203
|
className: "min-h-16",
|
|
204
|
-
label:
|
|
204
|
+
label: r("stewards.charter.customTitle"),
|
|
205
205
|
readOnly: q,
|
|
206
206
|
invalid: z?.kind === "toolKey",
|
|
207
207
|
value: X,
|
|
208
208
|
onChange: (e) => {
|
|
209
|
-
let t = G.allowedToolKeys.filter((e) =>
|
|
210
|
-
$({ allowedToolKeys:
|
|
209
|
+
let t = G.allowedToolKeys.filter((e) => D([e]).length === 0);
|
|
210
|
+
$({ allowedToolKeys: O(t, e) });
|
|
211
211
|
}
|
|
212
212
|
}),
|
|
213
|
-
|
|
213
|
+
r("stewards.charter.customHint")
|
|
214
214
|
]
|
|
215
215
|
}),
|
|
216
|
-
z?.kind === "toolKey" && /* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
216
|
+
z?.kind === "toolKey" && /* @__PURE__ */ A(h, { children: r("stewards.charter.customInvalid", { key: z.key }) }),
|
|
217
|
+
/* @__PURE__ */ j("div", {
|
|
218
218
|
className: "mt-3 flex flex-col gap-1 text-xs text-(color:--color-text-secondary)",
|
|
219
219
|
children: [
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ A("label", {
|
|
221
221
|
htmlFor: "charter-connections",
|
|
222
|
-
children:
|
|
222
|
+
children: r("stewards.charter.connectionsLabel")
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ A(f, {
|
|
225
225
|
id: "charter-connections",
|
|
226
226
|
className: "min-h-12",
|
|
227
|
-
label:
|
|
227
|
+
label: r("stewards.charter.connectionsLabel"),
|
|
228
228
|
readOnly: q,
|
|
229
229
|
value: G.allowedConnectionIds,
|
|
230
230
|
onChange: (e) => $({ allowedConnectionIds: e })
|
|
231
231
|
}),
|
|
232
|
-
|
|
232
|
+
r("stewards.charter.connectionsHint")
|
|
233
233
|
]
|
|
234
234
|
})
|
|
235
235
|
]
|
|
236
236
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
title:
|
|
239
|
-
children: /* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ A(v, {
|
|
238
|
+
title: r("stewards.charter.deskTitle"),
|
|
239
|
+
children: /* @__PURE__ */ j("div", {
|
|
240
240
|
className: "flex flex-col gap-3",
|
|
241
241
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ j("label", {
|
|
243
243
|
className: "flex flex-col gap-1 text-sm text-(color:--color-text-secondary)",
|
|
244
|
-
children: [
|
|
245
|
-
className:
|
|
244
|
+
children: [r("stewards.wizard.egressTitle"), /* @__PURE__ */ A("select", {
|
|
245
|
+
className: S,
|
|
246
246
|
disabled: q,
|
|
247
247
|
value: G.deskEgressMode,
|
|
248
248
|
onChange: (e) => $({ deskEgressMode: e.target.value }),
|
|
249
|
-
children: Object.values(
|
|
249
|
+
children: Object.values(o).filter((e) => !Q || Q.has(e) || e === G.deskEgressMode).map((e) => /* @__PURE__ */ A("option", {
|
|
250
250
|
value: e,
|
|
251
|
-
children:
|
|
251
|
+
children: m(r, "egress", e)
|
|
252
252
|
}, e))
|
|
253
253
|
})]
|
|
254
254
|
}),
|
|
255
|
-
G.deskEgressMode ===
|
|
255
|
+
G.deskEgressMode === o.AllowList && /* @__PURE__ */ j("div", {
|
|
256
256
|
className: "flex flex-col gap-1 text-sm text-(color:--color-text-secondary)",
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ A("label", {
|
|
259
259
|
htmlFor: "charter-hosts",
|
|
260
|
-
children:
|
|
260
|
+
children: r("stewards.wizard.allowedHosts")
|
|
261
261
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ A(f, {
|
|
263
263
|
id: "charter-hosts",
|
|
264
264
|
className: "min-h-20",
|
|
265
|
-
label:
|
|
265
|
+
label: r("stewards.wizard.allowedHosts"),
|
|
266
266
|
readOnly: q,
|
|
267
267
|
value: G.deskAllowedHosts,
|
|
268
268
|
onChange: (e) => $({ deskAllowedHosts: e })
|
|
269
269
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ A("span", {
|
|
271
271
|
className: "text-xs",
|
|
272
|
-
children:
|
|
272
|
+
children: r("stewards.wizard.allowedHostsHelp")
|
|
273
273
|
})
|
|
274
274
|
]
|
|
275
275
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ j("label", {
|
|
277
277
|
className: "flex flex-col gap-1 text-sm text-(color:--color-text-secondary)",
|
|
278
278
|
children: [
|
|
279
|
-
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
className:
|
|
279
|
+
r("stewards.charter.timezone"),
|
|
280
|
+
/* @__PURE__ */ A("input", {
|
|
281
|
+
className: S,
|
|
282
282
|
readOnly: q,
|
|
283
283
|
value: G.timezone,
|
|
284
284
|
onChange: (e) => $({ timezone: e.target.value })
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ A("span", {
|
|
287
287
|
className: "text-xs",
|
|
288
|
-
children:
|
|
288
|
+
children: r("stewards.charter.timezoneHelp")
|
|
289
289
|
})
|
|
290
290
|
]
|
|
291
291
|
})
|
|
292
292
|
]
|
|
293
293
|
})
|
|
294
294
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
stewardId:
|
|
297
|
-
canUpdate:
|
|
295
|
+
/* @__PURE__ */ A(M, {
|
|
296
|
+
stewardId: i.id,
|
|
297
|
+
canUpdate: g && !K
|
|
298
298
|
})
|
|
299
299
|
]
|
|
300
|
-
}), /* @__PURE__ */
|
|
300
|
+
}), /* @__PURE__ */ j("div", {
|
|
301
301
|
className: "flex flex-col gap-4",
|
|
302
302
|
children: [
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
title:
|
|
305
|
-
children: [/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ j(v, {
|
|
304
|
+
title: r("stewards.charter.autonomyTitle"),
|
|
305
|
+
children: [/* @__PURE__ */ A("p", {
|
|
306
306
|
className: "mb-2 text-xs text-(color:--color-text-secondary)",
|
|
307
|
-
children:
|
|
307
|
+
children: r("stewards.charter.usage")
|
|
308
308
|
}), [
|
|
309
309
|
["credits", "credits"],
|
|
310
310
|
["steps", "steps"],
|
|
311
311
|
["deskMinutes", "deskMinutes"]
|
|
312
312
|
].map(([e]) => {
|
|
313
|
-
let
|
|
314
|
-
return /* @__PURE__ */
|
|
313
|
+
let t = te[e] ?? 0, n = ne[e] ?? null;
|
|
314
|
+
return /* @__PURE__ */ j("div", {
|
|
315
315
|
className: "mb-3",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ j("div", {
|
|
317
317
|
className: "mb-1 flex justify-between text-sm text-(color:--color-text-primary)",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ A("span", { children: r(`stewards.budget.${e}`) }), /* @__PURE__ */ j("span", {
|
|
319
319
|
className: "tabular-nums text-(color:--color-text-secondary)",
|
|
320
320
|
children: [
|
|
321
|
-
|
|
321
|
+
t,
|
|
322
322
|
" / ",
|
|
323
|
-
|
|
323
|
+
n ?? "—"
|
|
324
324
|
]
|
|
325
325
|
})]
|
|
326
|
-
}), /* @__PURE__ */
|
|
327
|
-
ratio:
|
|
328
|
-
label:
|
|
326
|
+
}), /* @__PURE__ */ A(y, {
|
|
327
|
+
ratio: p(t, n),
|
|
328
|
+
label: r(`stewards.budget.${e}`)
|
|
329
329
|
})]
|
|
330
330
|
}, e);
|
|
331
331
|
})]
|
|
332
332
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ A(v, { children: /* @__PURE__ */ j("div", {
|
|
334
334
|
className: "flex items-start justify-between gap-3",
|
|
335
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
|
|
336
336
|
className: "text-sm font-semibold text-(color:--color-text-primary)",
|
|
337
|
-
children:
|
|
338
|
-
}), /* @__PURE__ */
|
|
337
|
+
children: r("stewards.charter.dryRun")
|
|
338
|
+
}), /* @__PURE__ */ A("p", {
|
|
339
339
|
className: "text-xs text-(color:--color-text-secondary)",
|
|
340
|
-
children:
|
|
341
|
-
})] }), /* @__PURE__ */
|
|
340
|
+
children: r("stewards.charter.dryRunHelp")
|
|
341
|
+
})] }), /* @__PURE__ */ A(x, {
|
|
342
342
|
checked: G.dryRunDefault,
|
|
343
343
|
disabled: q,
|
|
344
|
-
label:
|
|
344
|
+
label: r("stewards.charter.dryRun"),
|
|
345
345
|
onChange: (e) => $({ dryRunDefault: e })
|
|
346
346
|
})]
|
|
347
347
|
}) }),
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
title:
|
|
351
|
-
children: [/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ A(u, {}),
|
|
349
|
+
/* @__PURE__ */ j(v, {
|
|
350
|
+
title: r("stewards.charter.historyTitle"),
|
|
351
|
+
children: [/* @__PURE__ */ j("ul", {
|
|
352
352
|
className: "flex flex-col gap-1 text-sm",
|
|
353
|
-
children: [/* @__PURE__ */
|
|
353
|
+
children: [/* @__PURE__ */ j("li", {
|
|
354
354
|
className: "text-(color:--color-text-primary)",
|
|
355
|
-
children: [
|
|
355
|
+
children: [r("stewards.charter.historyCurrent", { version: i.charter.charterVersion }), /* @__PURE__ */ A("span", {
|
|
356
356
|
className: "block text-xs text-(color:--color-text-secondary)",
|
|
357
|
-
children:
|
|
357
|
+
children: r("stewards.charter.historyEdited", { when: new Date(i.updatedAt).toLocaleString() })
|
|
358
358
|
})]
|
|
359
|
-
}), U.filter((e) => e !==
|
|
359
|
+
}), U.filter((e) => e !== i.charter.charterVersion).map((e) => /* @__PURE__ */ j("li", {
|
|
360
360
|
className: "text-(color:--color-text-secondary)",
|
|
361
361
|
children: [
|
|
362
362
|
"v",
|
|
363
363
|
e,
|
|
364
364
|
" · ",
|
|
365
|
-
|
|
365
|
+
r("stewards.charter.historySession")
|
|
366
366
|
]
|
|
367
367
|
}, e))]
|
|
368
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ A("p", {
|
|
369
369
|
className: "mt-2 text-xs text-(color:--color-text-secondary)",
|
|
370
|
-
children:
|
|
370
|
+
children: r("stewards.charter.historyNote")
|
|
371
371
|
})]
|
|
372
372
|
})
|
|
373
373
|
]
|
|
374
374
|
})]
|
|
375
375
|
}),
|
|
376
|
-
F && /* @__PURE__ */
|
|
377
|
-
|
|
376
|
+
F && /* @__PURE__ */ j(h, { children: [
|
|
377
|
+
r("stewards.charter.saveError"),
|
|
378
378
|
" ",
|
|
379
379
|
F.message
|
|
380
380
|
] }),
|
|
381
|
-
V !== null && /* @__PURE__ */
|
|
381
|
+
V !== null && /* @__PURE__ */ A(h, {
|
|
382
382
|
tone: "success",
|
|
383
|
-
children:
|
|
383
|
+
children: r("stewards.charter.saved", { version: V })
|
|
384
384
|
}),
|
|
385
|
-
!q && /* @__PURE__ */
|
|
385
|
+
!q && /* @__PURE__ */ j("div", {
|
|
386
386
|
className: "sticky bottom-0 flex flex-wrap items-center justify-between gap-2 border-t border-(color:--color-border-seam) bg-(--color-bg-canvas) py-3",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ A("span", {
|
|
388
388
|
className: "text-sm text-(color:--color-text-secondary)",
|
|
389
|
-
children: Y ?
|
|
390
|
-
}), /* @__PURE__ */
|
|
389
|
+
children: Y ? r("stewards.charter.unsaved") : ""
|
|
390
|
+
}), /* @__PURE__ */ j("div", {
|
|
391
391
|
className: "flex gap-2",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ A(_, {
|
|
393
393
|
disabled: !Y || P,
|
|
394
394
|
onClick: () => {
|
|
395
395
|
R(null), B(null);
|
|
396
396
|
},
|
|
397
|
-
children:
|
|
398
|
-
}), /* @__PURE__ */
|
|
397
|
+
children: r("stewards.charter.discard")
|
|
398
|
+
}), /* @__PURE__ */ A(_, {
|
|
399
399
|
variant: "primary",
|
|
400
400
|
disabled: !Y || P,
|
|
401
401
|
onClick: () => void ee(),
|
|
402
|
-
children:
|
|
402
|
+
children: r(P ? "stewards.charter.saving" : "stewards.charter.save")
|
|
403
403
|
})]
|
|
404
404
|
})]
|
|
405
405
|
})
|