@burdenoff/microfe-botmanor 2026.1120.28 → 2026.1123.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.
@@ -1,115 +1,120 @@
1
1
  import { useTr as e } from "../../shared/hooks/useTr.js";
2
2
  import { PageLayout as t } from "../components/PageLayout.js";
3
- import { AiOperationsPanel as n } from "../components/AiOperationsPanel.js";
4
- import { Badge as r } from "../components/Badge.js";
5
- import { Button as i } from "../components/Button.js";
6
- import { Card as a, CardContent as o, CardHeader as s, CardTitle as c } from "../components/Card.js";
7
- import { ErrorState as l } from "../components/ErrorState.js";
8
- import { Input as u, Label as d } from "../components/Input.js";
9
- import { useConfigureSupervisor as f, useRunSupervisorNow as p, useSupervisorConfig as m, useSupervisorRuns as h } from "../hooks/useAiOperations.js";
3
+ import { BOTMANOR_PERMISSIONS as n } from "../permissions/botmanorPermissions.js";
4
+ import { useBotmanorPermission as r } from "../permissions/useBotmanorPermissions.js";
5
+ import { AiOperationsPanel as i } from "../components/AiOperationsPanel.js";
6
+ import { Badge as a } from "../components/Badge.js";
7
+ import { Button as o } from "../components/Button.js";
8
+ import { Card as s, CardContent as c, CardHeader as l, CardTitle as u } from "../components/Card.js";
9
+ import { ErrorState as d } from "../components/ErrorState.js";
10
+ import { Input as f, Label as p } from "../components/Input.js";
10
11
  import "../hooks/index.js";
11
- import { formatRelativeTime as g } from "../utils/formatters.js";
12
- import { useState as _ } from "react";
13
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
14
- import { Play as b, ShieldCheck as x } from "lucide-react";
12
+ import { useConfigureSupervisor as m, useRunSupervisorNow as h, useSupervisorConfig as g, useSupervisorRuns as _ } from "../hooks/useAiOperations.js";
13
+ import { formatRelativeTime as v } from "../utils/formatters.js";
14
+ import "../permissions/index.js";
15
+ import { useState as y } from "react";
16
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
17
+ import { Play as S, ShieldCheck as C } from "lucide-react";
15
18
  // src/botlit/pages/AiOperationsPage.tsx
16
- var S = "0 9 * * *", C = "UTC", w = () => {
17
- let t = e(), { data: n, loading: r, error: i, refetch: p } = m(), [h, b] = f(), [w, T] = _(null), [E, D] = _(null), [O, k] = _(null), A = n?.enabled ?? !1, j = w ?? n?.cron ?? S, M = E ?? n?.timezone ?? C, N = b.loading || r, P = async (e) => {
18
- k(null);
19
- try {
20
- await h(e), await p();
21
- } catch (e) {
22
- k(e instanceof Error ? e.message : String(e));
19
+ var w = "0 9 * * *", T = "UTC", E = ({ canUpdate: t }) => {
20
+ let n = e(), { data: r, loading: i, error: a, refetch: o } = g(), [h, _] = m(), [S, E] = y(null), [D, O] = y(null), [k, A] = y(null), j = r?.enabled ?? !1, M = S ?? r?.cron ?? w, N = D ?? r?.timezone ?? T, P = _.loading || i || !t, F = async (e) => {
21
+ if (t) {
22
+ A(null);
23
+ try {
24
+ await h(e), await o();
25
+ } catch (e) {
26
+ A(e instanceof Error ? e.message : String(e));
27
+ }
23
28
  }
24
29
  };
25
- return i ? /* @__PURE__ */ v(l, {
26
- resource: t("botlit.aiOperations.configErrorTitle", "Supervisor configuration"),
27
- error: i,
28
- onRetry: () => void p()
29
- }) : /* @__PURE__ */ y(a, { children: [/* @__PURE__ */ v(s, { children: /* @__PURE__ */ y(c, {
30
+ return a ? /* @__PURE__ */ b(d, {
31
+ resource: n("botlit.aiOperations.configErrorTitle", "Supervisor configuration"),
32
+ error: a,
33
+ onRetry: () => void o()
34
+ }) : /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ x(u, {
30
35
  className: "flex items-center gap-2 text-base",
31
- children: [/* @__PURE__ */ v(x, { className: "h-4 w-4" }), t("botlit.aiOperations.configTitle", "Scheduled fleet review")]
32
- }) }), /* @__PURE__ */ y(o, {
36
+ children: [/* @__PURE__ */ b(C, { className: "h-4 w-4" }), n("botlit.aiOperations.configTitle", "Scheduled fleet review")]
37
+ }) }), /* @__PURE__ */ x(c, {
33
38
  className: "space-y-4",
34
39
  children: [
35
- /* @__PURE__ */ y("label", {
40
+ /* @__PURE__ */ x("label", {
36
41
  className: "flex items-center gap-2 text-sm text-text-primary",
37
- children: [/* @__PURE__ */ v("input", {
42
+ children: [/* @__PURE__ */ b("input", {
38
43
  type: "checkbox",
39
44
  className: "h-4 w-4",
40
- checked: A,
41
- disabled: N,
42
- onChange: (e) => void P({
45
+ checked: j,
46
+ disabled: P,
47
+ onChange: (e) => void F({
43
48
  enabled: e.target.checked,
44
- cron: j,
45
- timezone: M
49
+ cron: M,
50
+ timezone: N
46
51
  })
47
- }), t("botlit.aiOperations.configEnable", "Run the supervisor automatically every day")]
52
+ }), n("botlit.aiOperations.configEnable", "Run the supervisor automatically every day")]
48
53
  }),
49
- /* @__PURE__ */ y("div", {
54
+ /* @__PURE__ */ x("div", {
50
55
  className: "grid gap-4 sm:grid-cols-2",
51
- children: [/* @__PURE__ */ y("div", {
56
+ children: [/* @__PURE__ */ x("div", {
52
57
  className: "space-y-1.5",
53
- children: [/* @__PURE__ */ v(d, {
58
+ children: [/* @__PURE__ */ b(p, {
54
59
  htmlFor: "supervisor-cron",
55
- children: t("botlit.aiOperations.cronLabel", "Cron (FluidGrids schedule)")
56
- }), /* @__PURE__ */ v(u, {
60
+ children: n("botlit.aiOperations.cronLabel", "Cron (FluidGrids schedule)")
61
+ }), /* @__PURE__ */ b(f, {
57
62
  id: "supervisor-cron",
58
- value: j,
59
- disabled: N,
60
- onChange: (e) => T(e.target.value),
61
- onBlur: () => void P({
62
- enabled: A,
63
- cron: j,
64
- timezone: M
63
+ value: M,
64
+ disabled: P,
65
+ onChange: (e) => E(e.target.value),
66
+ onBlur: () => void F({
67
+ enabled: j,
68
+ cron: M,
69
+ timezone: N
65
70
  }),
66
- placeholder: S
71
+ placeholder: w
67
72
  })]
68
- }), /* @__PURE__ */ y("div", {
73
+ }), /* @__PURE__ */ x("div", {
69
74
  className: "space-y-1.5",
70
- children: [/* @__PURE__ */ v(d, {
75
+ children: [/* @__PURE__ */ b(p, {
71
76
  htmlFor: "supervisor-timezone",
72
- children: t("botlit.aiOperations.timezoneLabel", "Timezone")
73
- }), /* @__PURE__ */ v(u, {
77
+ children: n("botlit.aiOperations.timezoneLabel", "Timezone")
78
+ }), /* @__PURE__ */ b(f, {
74
79
  id: "supervisor-timezone",
75
- value: M,
76
- disabled: N,
77
- onChange: (e) => D(e.target.value),
78
- onBlur: () => void P({
79
- enabled: A,
80
- cron: j,
81
- timezone: M
80
+ value: N,
81
+ disabled: P,
82
+ onChange: (e) => O(e.target.value),
83
+ onBlur: () => void F({
84
+ enabled: j,
85
+ cron: M,
86
+ timezone: N
82
87
  }),
83
- placeholder: C
88
+ placeholder: T
84
89
  })]
85
90
  })]
86
91
  }),
87
- n?.lastRunAt && /* @__PURE__ */ v("p", {
92
+ r?.lastRunAt && /* @__PURE__ */ b("p", {
88
93
  className: "text-xs text-text-tertiary",
89
- children: t("botlit.aiOperations.lastRun", "Last review: {{time}}", { time: g(n.lastRunAt) })
94
+ children: n("botlit.aiOperations.lastRun", "Last review: {{time}}", { time: v(r.lastRunAt) })
90
95
  }),
91
- O && /* @__PURE__ */ v("p", {
96
+ k && /* @__PURE__ */ b("p", {
92
97
  className: "text-sm text-status-error-text",
93
98
  role: "alert",
94
- children: O
99
+ children: k
95
100
  })
96
101
  ]
97
102
  })] });
98
- }, T = () => {
99
- let t = e(), { data: n, loading: i, error: l } = h();
100
- return l || !i && n.length === 0 ? null : /* @__PURE__ */ y(a, { children: [/* @__PURE__ */ v(s, { children: /* @__PURE__ */ v(c, {
103
+ }, D = () => {
104
+ let t = e(), { data: n, loading: r, error: i } = _();
105
+ return i || !r && n.length === 0 ? null : /* @__PURE__ */ x(s, { children: [/* @__PURE__ */ b(l, { children: /* @__PURE__ */ b(u, {
101
106
  className: "text-base",
102
107
  children: t("botlit.aiOperations.runHistoryTitle", "Review history")
103
- }) }), /* @__PURE__ */ v(o, { children: /* @__PURE__ */ v("ul", {
108
+ }) }), /* @__PURE__ */ b(c, { children: /* @__PURE__ */ b("ul", {
104
109
  className: "divide-y divide-border-subtle",
105
- children: n.map((e) => /* @__PURE__ */ y("li", {
110
+ children: n.map((e) => /* @__PURE__ */ x("li", {
106
111
  className: "flex items-center justify-between gap-3 py-2 text-sm",
107
- children: [/* @__PURE__ */ y("div", {
112
+ children: [/* @__PURE__ */ x("div", {
108
113
  className: "flex items-center gap-2",
109
- children: [/* @__PURE__ */ v(r, {
114
+ children: [/* @__PURE__ */ b(a, {
110
115
  variant: e.status === "COMPLETED" ? "success" : e.status === "FAILED" ? "destructive" : "secondary",
111
116
  children: e.status
112
- }), /* @__PURE__ */ v("span", {
117
+ }), /* @__PURE__ */ b("span", {
113
118
  className: "text-text-secondary",
114
119
  children: t("botlit.aiOperations.runMeta", "{{trigger}} · {{findings}} findings · {{notified}} notified", {
115
120
  trigger: e.trigger,
@@ -117,49 +122,49 @@ var S = "0 9 * * *", C = "UTC", w = () => {
117
122
  notified: e.notified
118
123
  })
119
124
  })]
120
- }), /* @__PURE__ */ v("span", {
125
+ }), /* @__PURE__ */ b("span", {
121
126
  className: "text-xs text-text-tertiary whitespace-nowrap",
122
- children: g(e.startedAt)
127
+ children: v(e.startedAt)
123
128
  })]
124
129
  }, e.id))
125
130
  }) })] });
126
- }, E = () => {
127
- let r = e(), [a, o] = p(), [s, c] = _(null), [l, u] = _(null), d = o.loading, f = async () => {
128
- c(null), u(null);
131
+ }, O = () => {
132
+ let a = e(), s = r(n.AI_PREDICTION_UPDATE), [c, l] = h(), [u, d] = y(null), [f, p] = y(null), m = l.loading, g = async () => {
133
+ d(null), p(null);
129
134
  try {
130
- let e = await a();
131
- u(e.run ? r("botlit.aiOperations.runNowSummary", "Review finished: {{status}}, {{findings}} new findings.", {
135
+ let e = await c();
136
+ p(e.run ? a("botlit.aiOperations.runNowSummary", "Review finished: {{status}}, {{findings}} new findings.", {
132
137
  status: e.run.status,
133
138
  findings: e.findings
134
- }) : r("botlit.aiOperations.runNowSkipped", "Nothing to run — enable the scheduled review first."));
139
+ }) : a("botlit.aiOperations.runNowSkipped", "Nothing to run — enable the scheduled review first."));
135
140
  } catch (e) {
136
- c(e instanceof Error ? e.message : String(e));
141
+ d(e instanceof Error ? e.message : String(e));
137
142
  }
138
143
  };
139
- return /* @__PURE__ */ v(t, {
140
- title: r("botlit.aiOperations.title", "AI Operations"),
141
- description: r("botlit.aiOperations.description", "Supervisor findings across your agent fleet — what drifted, the evidence, and the recommended action."),
142
- actions: /* @__PURE__ */ y(i, {
144
+ return /* @__PURE__ */ b(t, {
145
+ title: a("botlit.aiOperations.title", "AI Operations"),
146
+ description: a("botlit.aiOperations.description", "Supervisor findings across your agent fleet — what drifted, the evidence, and the recommended action."),
147
+ actions: s ? /* @__PURE__ */ x(o, {
143
148
  variant: "outline",
144
- onClick: () => void f(),
145
- disabled: d,
146
- children: [/* @__PURE__ */ v(b, { className: "h-4 w-4" }), r("botlit.aiOperations.runNow", "Run review now")]
147
- }),
148
- children: /* @__PURE__ */ y("div", {
149
+ onClick: () => void g(),
150
+ disabled: m,
151
+ children: [/* @__PURE__ */ b(S, { className: "h-4 w-4" }), a("botlit.aiOperations.runNow", "Run review now")]
152
+ }) : null,
153
+ children: /* @__PURE__ */ x("div", {
149
154
  className: "space-y-6",
150
155
  children: [
151
- (s || l) && /* @__PURE__ */ v("p", {
152
- className: s ? "text-sm text-status-error-text" : "text-sm text-status-success-text",
156
+ (u || f) && /* @__PURE__ */ b("p", {
157
+ className: u ? "text-sm text-status-error-text" : "text-sm text-status-success-text",
153
158
  role: "status",
154
- children: s ?? l
159
+ children: u ?? f
155
160
  }),
156
- /* @__PURE__ */ v(n, {}),
157
- /* @__PURE__ */ v(w, {}),
158
- /* @__PURE__ */ v(T, {})
161
+ /* @__PURE__ */ b(i, {}),
162
+ /* @__PURE__ */ b(E, { canUpdate: s }),
163
+ /* @__PURE__ */ b(D, {})
159
164
  ]
160
165
  })
161
166
  });
162
167
  };
163
- export { E as AiOperationsPage };
168
+ export { O as AiOperationsPage };
164
169
 
165
170
  //# sourceMappingURL=AiOperationsPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AiOperationsPage.js","names":["DEFAULT_CRON","DEFAULT_TIMEZONE","SupervisorConfigSection","useTr","config","useSupervisorConfig","configure","configureState","useConfigureSupervisor","cron","setCron","useState","timezone","setTimezone","saveError","setSaveError","enabled","effectiveCron","effectiveTimezone","busy","loading","save","next","refetch","configureError","error","ErrorState","Card","CardHeader","CardTitle","ShieldCheck","CardContent","event","Label","Input","formatRelativeTime","RunHistorySection","runs","useSupervisorRuns","Badge","run","AiOperationsPage","t","runNow","runNowState","useRunSupervisorNow","runError","setRunError","runSummary","setRunSummary","onRunNow","result","PageLayout","Button","Play","AiOperationsPanel"],"sources":["../../../src/botlit/pages/AiOperationsPage.tsx"],"sourcesContent":["/**\n * AI Operations Page (BOFF-3839)\n * @module botlit/pages\n *\n * The workspace-wide supervisor feed at /botmanor/ai: decision cards, the\n * supervisor schedule configuration (FluidGrids owns the cron — enabling\n * provisions it, disabling removes it), a run-now action and the run\n * history. The same decision-card panel renders narrowed on the agent and\n * bot detail pages.\n */\n\nimport type { FC } from 'react';\nimport { useState } from 'react';\nimport { Play, ShieldCheck } from 'lucide-react';\nimport { useTr } from '../../shared/hooks/useTr';\nimport { PageLayout } from '../components/PageLayout';\nimport { AiOperationsPanel } from '../components/AiOperationsPanel';\nimport { Badge } from '../components/Badge';\nimport { Button } from '../components/Button';\nimport { Card, CardContent, CardHeader, CardTitle } from '../components/Card';\nimport { ErrorState } from '../components/ErrorState';\nimport { Input, Label } from '../components/Input';\nimport {\n useConfigureSupervisor,\n useRunSupervisorNow,\n useSupervisorConfig,\n useSupervisorRuns,\n} from '../hooks';\nimport { formatRelativeTime } from '../utils/formatters';\n\nconst DEFAULT_CRON = '0 9 * * *';\nconst DEFAULT_TIMEZONE = 'UTC';\n\n/** Schedule configuration: enable switch + cadence, provisioned in FluidGrids. */\nconst SupervisorConfigSection: FC = () => {\n const t = useTr();\n const { data: config, loading, error, refetch } = useSupervisorConfig();\n const [configure, configureState] = useConfigureSupervisor();\n const [cron, setCron] = useState<string | null>(null);\n const [timezone, setTimezone] = useState<string | null>(null);\n const [saveError, setSaveError] = useState<string | null>(null);\n\n const enabled = config?.enabled ?? false;\n const effectiveCron = cron ?? config?.cron ?? DEFAULT_CRON;\n const effectiveTimezone = timezone ?? config?.timezone ?? DEFAULT_TIMEZONE;\n const busy = configureState.loading || loading;\n\n const save = async (next: { enabled: boolean; cron: string; timezone: string }) => {\n setSaveError(null);\n try {\n await configure(next);\n await refetch();\n } catch (configureError) {\n setSaveError(\n configureError instanceof Error ? configureError.message : String(configureError)\n );\n }\n };\n\n if (error) {\n return (\n <ErrorState\n resource={t('botlit.aiOperations.configErrorTitle', 'Supervisor configuration')}\n error={error}\n onRetry={() => void refetch()}\n />\n );\n }\n\n return (\n <Card>\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <ShieldCheck className=\"h-4 w-4\" />\n {t('botlit.aiOperations.configTitle', 'Scheduled fleet review')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <label className=\"flex items-center gap-2 text-sm text-text-primary\">\n <input\n type=\"checkbox\"\n className=\"h-4 w-4\"\n checked={enabled}\n disabled={busy}\n onChange={(event) =>\n void save({\n enabled: event.target.checked,\n cron: effectiveCron,\n timezone: effectiveTimezone,\n })\n }\n />\n {t('botlit.aiOperations.configEnable', 'Run the supervisor automatically every day')}\n </label>\n <div className=\"grid gap-4 sm:grid-cols-2\">\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"supervisor-cron\">\n {t('botlit.aiOperations.cronLabel', 'Cron (FluidGrids schedule)')}\n </Label>\n <Input\n id=\"supervisor-cron\"\n value={effectiveCron}\n disabled={busy}\n onChange={(event) => setCron(event.target.value)}\n onBlur={() =>\n void save({ enabled, cron: effectiveCron, timezone: effectiveTimezone })\n }\n placeholder={DEFAULT_CRON}\n />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"supervisor-timezone\">\n {t('botlit.aiOperations.timezoneLabel', 'Timezone')}\n </Label>\n <Input\n id=\"supervisor-timezone\"\n value={effectiveTimezone}\n disabled={busy}\n onChange={(event) => setTimezone(event.target.value)}\n onBlur={() =>\n void save({ enabled, cron: effectiveCron, timezone: effectiveTimezone })\n }\n placeholder={DEFAULT_TIMEZONE}\n />\n </div>\n </div>\n {config?.lastRunAt && (\n <p className=\"text-xs text-text-tertiary\">\n {t('botlit.aiOperations.lastRun', 'Last review: {{time}}', {\n time: formatRelativeTime(config.lastRunAt),\n })}\n </p>\n )}\n {saveError && (\n <p className=\"text-sm text-status-error-text\" role=\"alert\">\n {saveError}\n </p>\n )}\n </CardContent>\n </Card>\n );\n};\n\n/** Recent supervisor runs (both triggers), newest first. */\nconst RunHistorySection: FC = () => {\n const t = useTr();\n const { data: runs, loading, error } = useSupervisorRuns();\n\n if (error || (!loading && runs.length === 0)) return null;\n\n return (\n <Card>\n <CardHeader>\n <CardTitle className=\"text-base\">\n {t('botlit.aiOperations.runHistoryTitle', 'Review history')}\n </CardTitle>\n </CardHeader>\n <CardContent>\n <ul className=\"divide-y divide-border-subtle\">\n {runs.map((run) => (\n <li key={run.id} className=\"flex items-center justify-between gap-3 py-2 text-sm\">\n <div className=\"flex items-center gap-2\">\n <Badge\n variant={\n run.status === 'COMPLETED'\n ? 'success'\n : run.status === 'FAILED'\n ? 'destructive'\n : 'secondary'\n }\n >\n {run.status}\n </Badge>\n <span className=\"text-text-secondary\">\n {t(\n 'botlit.aiOperations.runMeta',\n '{{trigger}} · {{findings}} findings · {{notified}} notified',\n {\n trigger: run.trigger,\n findings: run.findings,\n notified: run.notified,\n }\n )}\n </span>\n </div>\n <span className=\"text-xs text-text-tertiary whitespace-nowrap\">\n {formatRelativeTime(run.startedAt)}\n </span>\n </li>\n ))}\n </ul>\n </CardContent>\n </Card>\n );\n};\n\nexport const AiOperationsPage: FC = () => {\n const t = useTr();\n const [runNow, runNowState] = useRunSupervisorNow();\n const [runError, setRunError] = useState<string | null>(null);\n const [runSummary, setRunSummary] = useState<string | null>(null);\n const busy = runNowState.loading;\n\n const onRunNow = async () => {\n setRunError(null);\n setRunSummary(null);\n try {\n const result = await runNow();\n setRunSummary(\n result.run\n ? t(\n 'botlit.aiOperations.runNowSummary',\n 'Review finished: {{status}}, {{findings}} new findings.',\n {\n status: result.run.status,\n findings: result.findings,\n }\n )\n : t(\n 'botlit.aiOperations.runNowSkipped',\n 'Nothing to run — enable the scheduled review first.'\n )\n );\n } catch (error) {\n setRunError(error instanceof Error ? error.message : String(error));\n }\n };\n\n return (\n <PageLayout\n title={t('botlit.aiOperations.title', 'AI Operations')}\n description={t(\n 'botlit.aiOperations.description',\n 'Supervisor findings across your agent fleet — what drifted, the evidence, and the recommended action.'\n )}\n actions={\n <Button variant=\"outline\" onClick={() => void onRunNow()} disabled={busy}>\n <Play className=\"h-4 w-4\" />\n {t('botlit.aiOperations.runNow', 'Run review now')}\n </Button>\n }\n >\n <div className=\"space-y-6\">\n {(runError || runSummary) && (\n <p\n className={\n runError ? 'text-sm text-status-error-text' : 'text-sm text-status-success-text'\n }\n role=\"status\"\n >\n {runError ?? runSummary}\n </p>\n )}\n <AiOperationsPanel />\n <SupervisorConfigSection />\n <RunHistorySection />\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AA8BA,IAAMA,IAAe,aACfC,IAAmB,OAGnBC,UAAoC;CACxC,IAAM,IAAIC,EAAM,GACV,EAAE,MAAMC,GAAQ,YAAS,UAAO,eAAYC,EAAoB,GAChE,CAACC,GAAWC,KAAkBC,EAAuB,GACrD,CAACC,GAAMC,KAAWC,EAAwB,IAAI,GAC9C,CAACC,GAAUC,KAAeF,EAAwB,IAAI,GACtD,CAACG,GAAWC,KAAgBJ,EAAwB,IAAI,GAExDK,IAAUZ,GAAQ,WAAW,IAC7Ba,IAAgBR,KAAQL,GAAQ,QAAQJ,GACxCkB,IAAoBN,KAAYR,GAAQ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AAA;AAEhB"}
1
+ {"version":3,"file":"AiOperationsPage.js","names":["DEFAULT_CRON","DEFAULT_TIMEZONE","SupervisorConfigSection","t","useTr","config","useSupervisorConfig","configure","configureState","useConfigureSupervisor","cron","setCron","useState","timezone","setTimezone","saveError","setSaveError","enabled","effectiveCron","effectiveTimezone","busy","loading","canUpdate","save","next","refetch","configureError","error","ErrorState","Card","CardHeader","CardTitle","ShieldCheck","CardContent","event","Label","Input","formatRelativeTime","RunHistorySection","runs","useSupervisorRuns","Badge","run","AiOperationsPage","useBotmanorPermission","BOTMANOR_PERMISSIONS","runNow","runNowState","useRunSupervisorNow","runError","setRunError","runSummary","setRunSummary","onRunNow","result","PageLayout","Button","Play","AiOperationsPanel"],"sources":["../../../src/botlit/pages/AiOperationsPage.tsx"],"sourcesContent":["/**\n * AI Operations Page (BOFF-3839)\n * @module botlit/pages\n *\n * The workspace-wide supervisor feed at /botmanor/ai: decision cards, the\n * supervisor schedule configuration (FluidGrids owns the cron — enabling\n * provisions it, disabling removes it), a run-now action and the run\n * history. The same decision-card panel renders narrowed on the agent and\n * bot detail pages.\n */\n\nimport type { FC } from 'react';\nimport { useState } from 'react';\nimport { Play, ShieldCheck } from 'lucide-react';\nimport { useTr } from '../../shared/hooks/useTr';\nimport { PageLayout } from '../components/PageLayout';\nimport { AiOperationsPanel } from '../components/AiOperationsPanel';\nimport { Badge } from '../components/Badge';\nimport { Button } from '../components/Button';\nimport { Card, CardContent, CardHeader, CardTitle } from '../components/Card';\nimport { ErrorState } from '../components/ErrorState';\nimport { Input, Label } from '../components/Input';\nimport {\n useConfigureSupervisor,\n useRunSupervisorNow,\n useSupervisorConfig,\n useSupervisorRuns,\n} from '../hooks';\nimport { formatRelativeTime } from '../utils/formatters';\nimport { BOTMANOR_PERMISSIONS, useBotmanorPermission } from '../permissions';\n\nconst DEFAULT_CRON = '0 9 * * *';\nconst DEFAULT_TIMEZONE = 'UTC';\n\n/** Schedule configuration: enable switch + cadence, provisioned in FluidGrids. */\nconst SupervisorConfigSection: FC<{ canUpdate: boolean }> = ({ canUpdate }) => {\n const t = useTr();\n const { data: config, loading, error, refetch } = useSupervisorConfig();\n const [configure, configureState] = useConfigureSupervisor();\n const [cron, setCron] = useState<string | null>(null);\n const [timezone, setTimezone] = useState<string | null>(null);\n const [saveError, setSaveError] = useState<string | null>(null);\n\n const enabled = config?.enabled ?? false;\n const effectiveCron = cron ?? config?.cron ?? DEFAULT_CRON;\n const effectiveTimezone = timezone ?? config?.timezone ?? DEFAULT_TIMEZONE;\n const busy = configureState.loading || loading || !canUpdate;\n\n const save = async (next: { enabled: boolean; cron: string; timezone: string }) => {\n if (!canUpdate) return;\n setSaveError(null);\n try {\n await configure(next);\n await refetch();\n } catch (configureError) {\n setSaveError(\n configureError instanceof Error ? configureError.message : String(configureError)\n );\n }\n };\n\n if (error) {\n return (\n <ErrorState\n resource={t('botlit.aiOperations.configErrorTitle', 'Supervisor configuration')}\n error={error}\n onRetry={() => void refetch()}\n />\n );\n }\n\n return (\n <Card>\n <CardHeader>\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <ShieldCheck className=\"h-4 w-4\" />\n {t('botlit.aiOperations.configTitle', 'Scheduled fleet review')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <label className=\"flex items-center gap-2 text-sm text-text-primary\">\n <input\n type=\"checkbox\"\n className=\"h-4 w-4\"\n checked={enabled}\n disabled={busy}\n onChange={(event) =>\n void save({\n enabled: event.target.checked,\n cron: effectiveCron,\n timezone: effectiveTimezone,\n })\n }\n />\n {t('botlit.aiOperations.configEnable', 'Run the supervisor automatically every day')}\n </label>\n <div className=\"grid gap-4 sm:grid-cols-2\">\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"supervisor-cron\">\n {t('botlit.aiOperations.cronLabel', 'Cron (FluidGrids schedule)')}\n </Label>\n <Input\n id=\"supervisor-cron\"\n value={effectiveCron}\n disabled={busy}\n onChange={(event) => setCron(event.target.value)}\n onBlur={() =>\n void save({ enabled, cron: effectiveCron, timezone: effectiveTimezone })\n }\n placeholder={DEFAULT_CRON}\n />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"supervisor-timezone\">\n {t('botlit.aiOperations.timezoneLabel', 'Timezone')}\n </Label>\n <Input\n id=\"supervisor-timezone\"\n value={effectiveTimezone}\n disabled={busy}\n onChange={(event) => setTimezone(event.target.value)}\n onBlur={() =>\n void save({ enabled, cron: effectiveCron, timezone: effectiveTimezone })\n }\n placeholder={DEFAULT_TIMEZONE}\n />\n </div>\n </div>\n {config?.lastRunAt && (\n <p className=\"text-xs text-text-tertiary\">\n {t('botlit.aiOperations.lastRun', 'Last review: {{time}}', {\n time: formatRelativeTime(config.lastRunAt),\n })}\n </p>\n )}\n {saveError && (\n <p className=\"text-sm text-status-error-text\" role=\"alert\">\n {saveError}\n </p>\n )}\n </CardContent>\n </Card>\n );\n};\n\n/** Recent supervisor runs (both triggers), newest first. */\nconst RunHistorySection: FC = () => {\n const t = useTr();\n const { data: runs, loading, error } = useSupervisorRuns();\n\n if (error || (!loading && runs.length === 0)) return null;\n\n return (\n <Card>\n <CardHeader>\n <CardTitle className=\"text-base\">\n {t('botlit.aiOperations.runHistoryTitle', 'Review history')}\n </CardTitle>\n </CardHeader>\n <CardContent>\n <ul className=\"divide-y divide-border-subtle\">\n {runs.map((run) => (\n <li key={run.id} className=\"flex items-center justify-between gap-3 py-2 text-sm\">\n <div className=\"flex items-center gap-2\">\n <Badge\n variant={\n run.status === 'COMPLETED'\n ? 'success'\n : run.status === 'FAILED'\n ? 'destructive'\n : 'secondary'\n }\n >\n {run.status}\n </Badge>\n <span className=\"text-text-secondary\">\n {t(\n 'botlit.aiOperations.runMeta',\n '{{trigger}} · {{findings}} findings · {{notified}} notified',\n {\n trigger: run.trigger,\n findings: run.findings,\n notified: run.notified,\n }\n )}\n </span>\n </div>\n <span className=\"text-xs text-text-tertiary whitespace-nowrap\">\n {formatRelativeTime(run.startedAt)}\n </span>\n </li>\n ))}\n </ul>\n </CardContent>\n </Card>\n );\n};\n\nexport const AiOperationsPage: FC = () => {\n const t = useTr();\n const canUpdate = useBotmanorPermission(BOTMANOR_PERMISSIONS.AI_PREDICTION_UPDATE);\n const [runNow, runNowState] = useRunSupervisorNow();\n const [runError, setRunError] = useState<string | null>(null);\n const [runSummary, setRunSummary] = useState<string | null>(null);\n const busy = runNowState.loading;\n\n const onRunNow = async () => {\n setRunError(null);\n setRunSummary(null);\n try {\n const result = await runNow();\n setRunSummary(\n result.run\n ? t(\n 'botlit.aiOperations.runNowSummary',\n 'Review finished: {{status}}, {{findings}} new findings.',\n {\n status: result.run.status,\n findings: result.findings,\n }\n )\n : t(\n 'botlit.aiOperations.runNowSkipped',\n 'Nothing to run — enable the scheduled review first.'\n )\n );\n } catch (error) {\n setRunError(error instanceof Error ? error.message : String(error));\n }\n };\n\n return (\n <PageLayout\n title={t('botlit.aiOperations.title', 'AI Operations')}\n description={t(\n 'botlit.aiOperations.description',\n 'Supervisor findings across your agent fleet — what drifted, the evidence, and the recommended action.'\n )}\n actions={\n canUpdate ? (\n <Button variant=\"outline\" onClick={() => void onRunNow()} disabled={busy}>\n <Play className=\"h-4 w-4\" />\n {t('botlit.aiOperations.runNow', 'Run review now')}\n </Button>\n ) : null\n }\n >\n <div className=\"space-y-6\">\n {(runError || runSummary) && (\n <p\n className={\n runError ? 'text-sm text-status-error-text' : 'text-sm text-status-success-text'\n }\n role=\"status\"\n >\n {runError ?? runSummary}\n </p>\n )}\n <AiOperationsPanel />\n <SupervisorConfigSection canUpdate={canUpdate} />\n <RunHistorySection />\n </div>\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA+BA,IAAMA,IAAe,aACfC,IAAmB,OAGnBC,KAAuD,EAAE,mBAAgB;CAC7E,IAAMC,IAAIC,EAAM,GACV,EAAE,MAAMC,GAAQ,YAAS,UAAO,eAAYC,EAAoB,GAChE,CAACC,GAAWC,KAAkBC,EAAuB,GACrD,CAACC,GAAMC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