@burdenoff/microfe-subscriberbot 2026.1107.7 → 2026.1110.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.
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoot.js +10 -7
- package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.js +1 -2
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.js +9 -10
- package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
- package/dist/subscriberbot/admin/AdminRoot.js +2 -3
- package/dist/subscriberbot/admin/AdminRoot.js.map +1 -1
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js +56 -57
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js +107 -108
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
- package/dist/subscriberbot/admin/index.js +1 -1
- package/dist/subscriberbot/components/EmptyState.js +1 -2
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +1 -2
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/Modal.js +2 -3
- package/dist/subscriberbot/components/Modal.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +1 -2
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/PostureOptions.js +7 -8
- package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
- package/dist/subscriberbot/components/StateViews.js +1 -2
- package/dist/subscriberbot/components/StateViews.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +2 -3
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/components/decisions/DecisionBanners.js +7 -8
- package/dist/subscriberbot/components/decisions/DecisionBanners.js.map +1 -1
- package/dist/subscriberbot/components/decisions/DecisionCard.js +65 -66
- package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
- package/dist/subscriberbot/components/decisions/decisionModel.js +2 -3
- package/dist/subscriberbot/components/decisions/decisionModel.js.map +1 -1
- package/dist/subscriberbot/components/decisions/index.js +4 -3
- package/dist/subscriberbot/components/index.js +8 -7
- package/dist/subscriberbot/components/mobile/MobileDashboard.js +23 -24
- package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +40 -49
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -2
- package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.js +1 -2
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.js.map +1 -1
- package/dist/subscriberbot/components/mobile/index.js +4 -3
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +1 -2
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +4 -5
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js +4 -5
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/index.js +5 -4
- package/dist/subscriberbot/components/negotiations/labels.js +1 -2
- package/dist/subscriberbot/components/negotiations/labels.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +4 -5
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +1 -2
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementThread.js +4 -5
- package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
- package/dist/subscriberbot/components/procurement/index.js +5 -4
- package/dist/subscriberbot/components/procurement/labels.js +1 -2
- package/dist/subscriberbot/components/procurement/labels.js.map +1 -1
- package/dist/subscriberbot/components/savings/SavingsCards.js +90 -91
- package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
- package/dist/subscriberbot/components/savings/index.js +3 -2
- package/dist/subscriberbot/components/savings/savingsModel.js +2 -3
- package/dist/subscriberbot/components/savings/savingsModel.js.map +1 -1
- package/dist/subscriberbot/components/viz.js +2 -3
- package/dist/subscriberbot/components/viz.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js +3 -3
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/context/index.js +1 -1
- package/dist/subscriberbot/hooks/index.js +2 -2
- package/dist/subscriberbot/hooks/useAutonomousAgentMode.js +2 -3
- package/dist/subscriberbot/hooks/useAutonomousAgentMode.js.map +1 -1
- package/dist/subscriberbot/hooks/useBankingApi.js +2 -3
- package/dist/subscriberbot/hooks/useBankingApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useCompactViewport.js +1 -2
- package/dist/subscriberbot/hooks/useCompactViewport.js.map +1 -1
- package/dist/subscriberbot/hooks/useFormError.js +1 -2
- package/dist/subscriberbot/hooks/useFormError.js.map +1 -1
- package/dist/subscriberbot/hooks/useFormatters.js +1 -2
- package/dist/subscriberbot/hooks/useFormatters.js.map +1 -1
- package/dist/subscriberbot/hooks/useNegotiationApi.js +2 -3
- package/dist/subscriberbot/hooks/useNegotiationApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useProcurementApi.js +2 -3
- package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useRouteSelection.js +3 -3
- package/dist/subscriberbot/hooks/useRouteSelection.js.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -2
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useTr.js +1 -2
- package/dist/subscriberbot/hooks/useTr.js.map +1 -1
- package/dist/subscriberbot/index.js +9 -8
- package/dist/subscriberbot/pages/AssetVaultPage.js +34 -35
- package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.js +86 -87
- package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
- package/dist/subscriberbot/pages/InboxPage.js +194 -199
- package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
- package/dist/subscriberbot/pages/InsightsPage.js +28 -29
- package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
- package/dist/subscriberbot/pages/InvoicesPage.js +179 -188
- package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
- package/dist/subscriberbot/pages/RenewalsPage.js +293 -298
- package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
- package/dist/subscriberbot/pages/SavingsPage.js +25 -26
- package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.js +67 -68
- package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js +126 -127
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentNewPage.js +10 -11
- package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentsListPage.js +23 -24
- package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +337 -359
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
- package/dist/subscriberbot/pages/banking/ConnectBankModal.js +22 -27
- package/dist/subscriberbot/pages/banking/ConnectBankModal.js.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +25 -26
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionsPage.js +34 -35
- package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +125 -130
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +94 -95
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +15 -16
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +20 -21
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +86 -87
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +164 -165
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js +20 -21
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +350 -351
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderInsights.js +95 -96
- package/dist/subscriberbot/pages/providers/ProviderInsights.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js +11 -12
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js +62 -63
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +166 -172
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +12 -13
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +21 -22
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +242 -255
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +2 -3
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
- package/dist/subscriberbot/services/createSandboxAssistantTransport.js +1 -2
- package/dist/subscriberbot/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/subscriberbot/store/index.js +1 -1
- package/dist/subscriberbot/store/subscriberbotStore.js +1 -2
- package/dist/subscriberbot/store/subscriberbotStore.js.map +1 -1
- package/dist/subscriberbot/utils/bankRedirectLink.js +18 -19
- package/dist/subscriberbot/utils/bankRedirectLink.js.map +1 -1
- package/dist/subscriberbot/utils/chartScale.js +1 -2
- package/dist/subscriberbot/utils/chartScale.js.map +1 -1
- package/dist/subscriberbot/utils/cn.js +2 -3
- package/dist/subscriberbot/utils/cn.js.map +1 -1
- package/dist/subscriberbot/utils/formatters.js +4 -5
- package/dist/subscriberbot/utils/formatters.js.map +1 -1
- package/dist/subscriberbot/utils/navigation.js +1 -2
- package/dist/subscriberbot/utils/navigation.js.map +1 -1
- package/dist/subscriberbot/utils/pageContext.js +3 -4
- package/dist/subscriberbot/utils/pageContext.js.map +1 -1
- package/dist/subscriberbot/utils/plaidLink.js +21 -22
- package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
- package/dist/subscriberbot/utils/portfolio.d.ts +4 -3
- package/dist/subscriberbot/utils/portfolio.d.ts.map +1 -1
- package/dist/subscriberbot/utils/portfolio.js +10 -11
- package/dist/subscriberbot/utils/portfolio.js.map +1 -1
- package/dist/subscriberbot/utils/renewals.js +1 -2
- package/dist/subscriberbot/utils/renewals.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useFormatters as n } from "../../hooks/useFormatters.js";
|
|
4
|
-
import { PageLayout as r } from "../../components/PageLayout.js";
|
|
5
|
-
import { MetricsCard as i } from "../../components/MetricsCard.js";
|
|
6
|
-
import { StatusBadge as a } from "../../components/StatusBadge.js";
|
|
7
|
-
import { EmptyState as o } from "../../components/EmptyState.js";
|
|
8
|
-
import { Modal as s } from "../../components/Modal.js";
|
|
9
|
-
import { useAutonomousAgentMode as c } from "../../hooks/useAutonomousAgentMode.js";
|
|
10
|
-
import { PostureOptions as l } from "../../components/PostureOptions.js";
|
|
11
|
-
import { ErrorView as u, LoadingView as d, Section as f } from "../../components/StateViews.js";
|
|
12
|
-
import { Timeline as p } from "../../components/viz.js";
|
|
1
|
+
import { useFormatters as e } from "../../hooks/useFormatters.js";
|
|
2
|
+
import { useFormError as t } from "../../hooks/useFormError.js";
|
|
13
3
|
import "../../components/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
4
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
5
|
+
import { MetricsCard as r } from "../../components/MetricsCard.js";
|
|
6
|
+
import { StatusBadge as i } from "../../components/StatusBadge.js";
|
|
7
|
+
import { EmptyState as a } from "../../components/EmptyState.js";
|
|
8
|
+
import { Modal as o } from "../../components/Modal.js";
|
|
9
|
+
import { useSubscriberBot as s } from "../../context/SubscriberBotContext.js";
|
|
10
|
+
import { useAgent as c, useCreatePolicy as l, useDecisions as u, useRunAgent as d, useSetAgentStatus as f } from "../../hooks/useSubscriberBotApi.js";
|
|
11
|
+
import { ErrorView as p, LoadingView as m, Section as h } from "../../components/StateViews.js";
|
|
12
|
+
import { Timeline as g } from "../../components/viz.js";
|
|
19
13
|
import "../../components/decisions/index.js";
|
|
14
|
+
import { useTr as _ } from "../../hooks/useTr.js";
|
|
15
|
+
import { RUNNABLE_AGENT_KINDS as v } from "../../components/decisions/decisionModel.js";
|
|
16
|
+
import { useAutonomousAgentMode as y } from "../../hooks/useAutonomousAgentMode.js";
|
|
17
|
+
import { DecisionCard as b } from "../../components/decisions/DecisionCard.js";
|
|
18
|
+
import { AiDisclaimer as x, DecisionsUnavailableBanner as S } from "../../components/decisions/DecisionBanners.js";
|
|
19
|
+
import { PostureOptions as C } from "../../components/PostureOptions.js";
|
|
20
20
|
import { useState as w } from "react";
|
|
21
21
|
import { ArrowLeft as ee, ArrowLeftRight as T, ArrowRight as te, Bot as ne, Building2 as E, Clock as D, ConciergeBell as O, DollarSign as k, Handshake as A, History as re, ListChecks as ie, Mail as j, Play as ae, Plus as oe, RefreshCw as M, Search as N, ShieldCheck as P, SlidersHorizontal as F, Zap as se } from "lucide-react";
|
|
22
22
|
import { useParams as ce } from "react-router";
|
|
23
23
|
import { jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
24
24
|
import { GlassCard as R } from "@burdenoff/fe-libs/ui";
|
|
25
|
-
|
|
25
|
+
// src/subscriberbot/pages/agents/AgentDetailPage.tsx
|
|
26
26
|
function le(e) {
|
|
27
27
|
let t = /* @__PURE__ */ new Map();
|
|
28
28
|
for (let n of e) {
|
|
@@ -96,42 +96,42 @@ function W(e, t, n) {
|
|
|
96
96
|
}));
|
|
97
97
|
}
|
|
98
98
|
function G({ enabled: e }) {
|
|
99
|
-
let
|
|
99
|
+
let t = _();
|
|
100
100
|
return /* @__PURE__ */ L("span", {
|
|
101
101
|
className: e ? "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-2.5 py-0.5 text-xs font-medium text-status-success-text" : "inline-flex items-center gap-1.5 rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
102
102
|
children: [/* @__PURE__ */ I("span", {
|
|
103
103
|
"aria-hidden": !0,
|
|
104
104
|
className: "size-1.5 rounded-full bg-current",
|
|
105
105
|
style: { opacity: e ? 1 : .6 }
|
|
106
|
-
}), e ?
|
|
106
|
+
}), e ? t("agents.detail.enabled", "Enabled") : t("agents.detail.disabled", "Disabled")]
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function me({ agentId:
|
|
110
|
-
let { formatEnumLabel: i } =
|
|
111
|
-
return /* @__PURE__ */ I(
|
|
109
|
+
function me({ agentId: n, onClose: r }) {
|
|
110
|
+
let { formatEnumLabel: i } = e(), a = _(), s = l(), [c, u] = w(""), [d, f] = w("ALERT"), [p, m] = w(""), [h, g] = w(""), [v, y] = w(!0), [b, x, S, C] = t();
|
|
111
|
+
return /* @__PURE__ */ I(o, {
|
|
112
112
|
title: a("agents.policyModal.title", "Add policy"),
|
|
113
113
|
onClose: r,
|
|
114
114
|
maxWidthClassName: "max-w-xl",
|
|
115
115
|
children: /* @__PURE__ */ L("form", {
|
|
116
|
-
onSubmit: (
|
|
117
|
-
if (
|
|
116
|
+
onSubmit: (e) => {
|
|
117
|
+
if (e.preventDefault(), x(null), !c.trim()) {
|
|
118
118
|
x(a("agents.policyModal.nameRequired", "A policy name is required."), "policy-name");
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
if (
|
|
123
|
-
|
|
121
|
+
let t;
|
|
122
|
+
if (h.trim()) try {
|
|
123
|
+
t = JSON.parse(h);
|
|
124
124
|
} catch {
|
|
125
125
|
x(a("agents.policyModal.conditionInvalid", "Condition must be valid JSON (e.g. {\"amountOver\": 100})."), "policy-condition");
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
agentId:
|
|
128
|
+
s.mutate({
|
|
129
|
+
agentId: n,
|
|
130
130
|
name: c.trim(),
|
|
131
|
-
action:
|
|
132
|
-
isEnabled:
|
|
133
|
-
...
|
|
134
|
-
...
|
|
131
|
+
action: d,
|
|
132
|
+
isEnabled: v,
|
|
133
|
+
...p.trim() ? { description: p.trim() } : {},
|
|
134
|
+
...t ? { condition: t } : {}
|
|
135
135
|
}, {
|
|
136
136
|
onSuccess: () => r(),
|
|
137
137
|
onError: (e) => x(e instanceof Error ? e.message : a("agents.policyModal.error", "Could not add policy."))
|
|
@@ -139,12 +139,12 @@ function me({ agentId: e, onClose: r }) {
|
|
|
139
139
|
},
|
|
140
140
|
className: "space-y-4",
|
|
141
141
|
children: [
|
|
142
|
-
|
|
142
|
+
b && /* @__PURE__ */ I("div", {
|
|
143
143
|
id: C,
|
|
144
144
|
tabIndex: -1,
|
|
145
145
|
role: "alert",
|
|
146
146
|
className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
|
|
147
|
-
children:
|
|
147
|
+
children: b
|
|
148
148
|
}),
|
|
149
149
|
/* @__PURE__ */ L("div", { children: [/* @__PURE__ */ L("label", {
|
|
150
150
|
htmlFor: "policy-name",
|
|
@@ -162,7 +162,7 @@ function me({ agentId: e, onClose: r }) {
|
|
|
162
162
|
id: "policy-name",
|
|
163
163
|
type: "text",
|
|
164
164
|
value: c,
|
|
165
|
-
onChange: (e) =>
|
|
165
|
+
onChange: (e) => u(e.target.value),
|
|
166
166
|
placeholder: a("agents.policyModal.namePlaceholder", "e.g. Alert on price hike over 20%"),
|
|
167
167
|
className: B,
|
|
168
168
|
required: !0
|
|
@@ -174,8 +174,8 @@ function me({ agentId: e, onClose: r }) {
|
|
|
174
174
|
}), /* @__PURE__ */ I("select", {
|
|
175
175
|
...S("policy-action"),
|
|
176
176
|
id: "policy-action",
|
|
177
|
-
value:
|
|
178
|
-
onChange: (e) =>
|
|
177
|
+
value: d,
|
|
178
|
+
onChange: (e) => f(e.target.value),
|
|
179
179
|
className: B,
|
|
180
180
|
children: z.map((e) => /* @__PURE__ */ I("option", {
|
|
181
181
|
value: e,
|
|
@@ -200,7 +200,7 @@ function me({ agentId: e, onClose: r }) {
|
|
|
200
200
|
}), /* @__PURE__ */ I("textarea", {
|
|
201
201
|
...S("policy-condition"),
|
|
202
202
|
id: "policy-condition",
|
|
203
|
-
value:
|
|
203
|
+
value: h,
|
|
204
204
|
onChange: (e) => g(e.target.value),
|
|
205
205
|
rows: 3,
|
|
206
206
|
placeholder: a("agents.policyModal.conditionPlaceholder", "{ \"priceIncreasePct\": 20 }"),
|
|
@@ -213,8 +213,8 @@ function me({ agentId: e, onClose: r }) {
|
|
|
213
213
|
}), /* @__PURE__ */ I("textarea", {
|
|
214
214
|
...S("policy-desc"),
|
|
215
215
|
id: "policy-desc",
|
|
216
|
-
value:
|
|
217
|
-
onChange: (e) =>
|
|
216
|
+
value: p,
|
|
217
|
+
onChange: (e) => m(e.target.value),
|
|
218
218
|
rows: 2,
|
|
219
219
|
className: B
|
|
220
220
|
})] }),
|
|
@@ -222,8 +222,8 @@ function me({ agentId: e, onClose: r }) {
|
|
|
222
222
|
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
223
223
|
children: [/* @__PURE__ */ I("input", {
|
|
224
224
|
type: "checkbox",
|
|
225
|
-
checked:
|
|
226
|
-
onChange: (e) =>
|
|
225
|
+
checked: v,
|
|
226
|
+
onChange: (e) => y(e.target.checked),
|
|
227
227
|
className: "size-4 rounded border-border-subtle"
|
|
228
228
|
}), a("agents.policyModal.enabled", "Enabled")]
|
|
229
229
|
}),
|
|
@@ -236,17 +236,17 @@ function me({ agentId: e, onClose: r }) {
|
|
|
236
236
|
children: a("agents.policyModal.cancel", "Cancel")
|
|
237
237
|
}), /* @__PURE__ */ I("button", {
|
|
238
238
|
type: "submit",
|
|
239
|
-
disabled:
|
|
239
|
+
disabled: s.isPending,
|
|
240
240
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-50",
|
|
241
|
-
children:
|
|
241
|
+
children: s.isPending ? a("agents.policyModal.adding", "Adding…") : a("agents.policyModal.submit", "Add policy")
|
|
242
242
|
})]
|
|
243
243
|
})
|
|
244
244
|
]
|
|
245
245
|
})
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
function he({ policy:
|
|
249
|
-
let { formatEnumLabel:
|
|
248
|
+
function he({ policy: t }) {
|
|
249
|
+
let { formatEnumLabel: n, formatNumber: r } = e(), i = _(), a = W(t.condition, r, i);
|
|
250
250
|
return /* @__PURE__ */ L(R, {
|
|
251
251
|
treatment: "metric",
|
|
252
252
|
className: "flex flex-col p-4",
|
|
@@ -255,8 +255,8 @@ function he({ policy: e }) {
|
|
|
255
255
|
className: "flex items-start justify-between gap-2",
|
|
256
256
|
children: [/* @__PURE__ */ I("p", {
|
|
257
257
|
className: "text-sm font-semibold text-text-primary",
|
|
258
|
-
children:
|
|
259
|
-
}), /* @__PURE__ */ I(G, { enabled:
|
|
258
|
+
children: t.name
|
|
259
|
+
}), /* @__PURE__ */ I(G, { enabled: t.isEnabled })]
|
|
260
260
|
}),
|
|
261
261
|
/* @__PURE__ */ L("div", {
|
|
262
262
|
className: "mt-2 flex flex-wrap items-center gap-2",
|
|
@@ -268,18 +268,18 @@ function he({ policy: e }) {
|
|
|
268
268
|
"aria-hidden": !0
|
|
269
269
|
}),
|
|
270
270
|
" ",
|
|
271
|
-
|
|
271
|
+
n(t.action)
|
|
272
272
|
]
|
|
273
273
|
}), /* @__PURE__ */ I("span", {
|
|
274
274
|
className: "inline-flex items-center gap-1 rounded-md bg-bg-sunken px-2 py-0.5 text-[11px] font-medium text-text-secondary tabular-nums",
|
|
275
|
-
children:
|
|
275
|
+
children: i("agents.detail.triggered", "Triggered {{count}}×", { count: t.triggerCount })
|
|
276
276
|
})]
|
|
277
277
|
}),
|
|
278
|
-
|
|
278
|
+
t.description && /* @__PURE__ */ I("p", {
|
|
279
279
|
className: "mt-2 line-clamp-2 text-xs text-text-secondary",
|
|
280
|
-
children:
|
|
280
|
+
children: t.description
|
|
281
281
|
}),
|
|
282
|
-
|
|
282
|
+
a.length > 0 && /* @__PURE__ */ L("div", {
|
|
283
283
|
className: "mt-3 border-t border-border-subtle pt-2.5",
|
|
284
284
|
children: [/* @__PURE__ */ L("p", {
|
|
285
285
|
className: "flex items-center gap-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary",
|
|
@@ -289,11 +289,11 @@ function he({ policy: e }) {
|
|
|
289
289
|
"aria-hidden": !0
|
|
290
290
|
}),
|
|
291
291
|
" ",
|
|
292
|
-
|
|
292
|
+
i("agents.detail.firesWhen", "Fires when")
|
|
293
293
|
]
|
|
294
294
|
}), /* @__PURE__ */ I("div", {
|
|
295
295
|
className: "mt-1.5 flex flex-wrap gap-1.5",
|
|
296
|
-
children:
|
|
296
|
+
children: a.map((e) => /* @__PURE__ */ L("span", {
|
|
297
297
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle bg-bg-sunken px-2 py-0.5 text-[11px] text-text-secondary",
|
|
298
298
|
children: [/* @__PURE__ */ I("span", {
|
|
299
299
|
className: "font-medium text-text-primary",
|
|
@@ -310,35 +310,35 @@ function he({ policy: e }) {
|
|
|
310
310
|
children: [/* @__PURE__ */ I(D, {
|
|
311
311
|
className: "h-3.5 w-3.5",
|
|
312
312
|
"aria-hidden": !0
|
|
313
|
-
}),
|
|
313
|
+
}), t.lastTriggeredAt ? i("agents.detail.triggered", "Triggered {{count}}×", { count: t.triggerCount }) : i("agents.detail.notYetTriggered", "Not yet triggered")]
|
|
314
314
|
})
|
|
315
315
|
]
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
function K() {
|
|
319
|
-
let { formatEnumLabel:
|
|
320
|
-
if (k) return /* @__PURE__ */ I(
|
|
321
|
-
title:
|
|
322
|
-
children: /* @__PURE__ */ I(
|
|
319
|
+
let { formatEnumLabel: t, formatRelativeTime: o } = e(), l = _(), { id: T } = ce(), { navigateTo: E } = s(), { data: O, isLoading: k, isError: A, refetch: j } = c(T), M = f(), N = y(), [F, z] = w(null), [B, V] = w(!1), H = d(), [U, W] = w(null), [G, K] = w(null), q = u({ agentId: T }, { enabled: !!T });
|
|
320
|
+
if (k) return /* @__PURE__ */ I(n, {
|
|
321
|
+
title: l("agents.detail.loading", "Loading agent…"),
|
|
322
|
+
children: /* @__PURE__ */ I(m, { label: l("agents.detail.loading", "Loading agent…") })
|
|
323
323
|
});
|
|
324
|
-
if (A) return /* @__PURE__ */ I(
|
|
325
|
-
title:
|
|
326
|
-
children: /* @__PURE__ */ I(
|
|
327
|
-
message:
|
|
324
|
+
if (A) return /* @__PURE__ */ I(n, {
|
|
325
|
+
title: l("agents.title", "AI Agents"),
|
|
326
|
+
children: /* @__PURE__ */ I(p, {
|
|
327
|
+
message: l("agents.detail.error", "Could not load this agent."),
|
|
328
328
|
onRetry: () => void j()
|
|
329
329
|
})
|
|
330
330
|
});
|
|
331
|
-
if (!O) return /* @__PURE__ */ I(
|
|
332
|
-
title:
|
|
333
|
-
children: /* @__PURE__ */ I(
|
|
331
|
+
if (!O) return /* @__PURE__ */ I(n, {
|
|
332
|
+
title: l("agents.title", "AI Agents"),
|
|
333
|
+
children: /* @__PURE__ */ I(a, {
|
|
334
334
|
illustration: "empty-data",
|
|
335
|
-
title:
|
|
336
|
-
description:
|
|
335
|
+
title: l("agents.detail.notFoundTitle", "Agent not found"),
|
|
336
|
+
description: l("agents.detail.notFoundDescription", "It may have been removed, or you may not have access to it."),
|
|
337
337
|
action: /* @__PURE__ */ I("button", {
|
|
338
338
|
type: "button",
|
|
339
339
|
onClick: () => E("/agents"),
|
|
340
340
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
|
|
341
|
-
children:
|
|
341
|
+
children: l("agents.detail.backToAgents", "Back to agents")
|
|
342
342
|
})
|
|
343
343
|
})
|
|
344
344
|
});
|
|
@@ -346,9 +346,9 @@ function K() {
|
|
|
346
346
|
J.lastRunAt && X.push({
|
|
347
347
|
ts: new Date(J.lastRunAt).getTime(),
|
|
348
348
|
item: {
|
|
349
|
-
title:
|
|
350
|
-
sub:
|
|
351
|
-
meta:
|
|
349
|
+
title: l("agents.detail.agentRun", "Agent run"),
|
|
350
|
+
sub: l("agents.detail.agentRunSub", "Latest agent run"),
|
|
351
|
+
meta: o(J.lastRunAt),
|
|
352
352
|
tone: "positive"
|
|
353
353
|
}
|
|
354
354
|
});
|
|
@@ -356,8 +356,8 @@ function K() {
|
|
|
356
356
|
ts: new Date(e.lastTriggeredAt).getTime(),
|
|
357
357
|
item: {
|
|
358
358
|
title: e.name,
|
|
359
|
-
sub: `${
|
|
360
|
-
meta:
|
|
359
|
+
sub: `${t(e.action)} · ${l("agents.detail.triggered", "Triggered {{count}}×", { count: e.triggerCount })}`,
|
|
360
|
+
meta: o(e.lastTriggeredAt),
|
|
361
361
|
tone: pe(e.action)
|
|
362
362
|
}
|
|
363
363
|
});
|
|
@@ -365,26 +365,26 @@ function K() {
|
|
|
365
365
|
for (let e of le(Z)) X.push({
|
|
366
366
|
ts: new Date(e.ranAt).getTime(),
|
|
367
367
|
item: {
|
|
368
|
-
title:
|
|
369
|
-
sub:
|
|
368
|
+
title: l("agents.detail.decisionRun", "Decision run"),
|
|
369
|
+
sub: l("agents.detail.decisionRunSub", "{{total}} recommendations · {{proposed}} open · {{flagged}} flagged", {
|
|
370
370
|
total: e.total,
|
|
371
371
|
proposed: e.proposed,
|
|
372
372
|
flagged: e.flagged
|
|
373
373
|
}),
|
|
374
|
-
meta:
|
|
374
|
+
meta: o(e.ranAt),
|
|
375
375
|
tone: e.flagged > 0 ? "warning" : "positive"
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
X.sort((e, t) => t.ts - e.ts);
|
|
379
|
-
let Q =
|
|
379
|
+
let Q = v.has(J.kind) ? J.status === "DISABLED" ? l("agents.detail.runDisabled", "Set the posture to Suggest-only to run this agent.") : null : l("agents.detail.runUnsupported", "This agent kind does not make decisions yet. Cost, renewal, vendor and discovery agents do."), ye = () => {
|
|
380
380
|
K(null), W(null), H.mutate(J.id, {
|
|
381
381
|
onSuccess: (e) => W(e),
|
|
382
|
-
onError: (e) => K(e instanceof Error && e.message ? e.message :
|
|
382
|
+
onError: (e) => K(e instanceof Error && e.message ? e.message : l("agents.detail.runError", "The agent run failed."))
|
|
383
383
|
});
|
|
384
384
|
}, $ = X.map((e) => e.item);
|
|
385
|
-
return /* @__PURE__ */ L(
|
|
385
|
+
return /* @__PURE__ */ L(n, {
|
|
386
386
|
title: J.name,
|
|
387
|
-
description: `${
|
|
387
|
+
description: `${l(de[J.kind] ?? "", t(J.kind))} ${l("agents.card.kindSuffix", "agent")}`,
|
|
388
388
|
actions: /* @__PURE__ */ L("div", {
|
|
389
389
|
className: "flex flex-wrap gap-2",
|
|
390
390
|
children: [/* @__PURE__ */ L("button", {
|
|
@@ -394,7 +394,7 @@ function K() {
|
|
|
394
394
|
children: [
|
|
395
395
|
/* @__PURE__ */ I(ee, { className: "rtl:rotate-180 h-4 w-4" }),
|
|
396
396
|
" ",
|
|
397
|
-
|
|
397
|
+
l("agents.new.back", "Back")
|
|
398
398
|
]
|
|
399
399
|
}), /* @__PURE__ */ L("button", {
|
|
400
400
|
type: "button",
|
|
@@ -406,7 +406,7 @@ function K() {
|
|
|
406
406
|
children: [/* @__PURE__ */ I(ae, {
|
|
407
407
|
className: "h-4 w-4",
|
|
408
408
|
"aria-hidden": !0
|
|
409
|
-
}), H.isPending ?
|
|
409
|
+
}), H.isPending ? l("agents.detail.running", "Running…") : l("agents.detail.run", "Run agent")]
|
|
410
410
|
})]
|
|
411
411
|
}),
|
|
412
412
|
children: [
|
|
@@ -429,14 +429,14 @@ function K() {
|
|
|
429
429
|
children: [/* @__PURE__ */ I("p", {
|
|
430
430
|
className: "text-lg font-semibold text-text-primary",
|
|
431
431
|
children: J.name
|
|
432
|
-
}), /* @__PURE__ */ I(
|
|
432
|
+
}), /* @__PURE__ */ I(i, { status: J.status })]
|
|
433
433
|
}),
|
|
434
434
|
/* @__PURE__ */ L("p", {
|
|
435
435
|
className: "mt-1 flex items-center gap-1.5 text-xs text-text-secondary",
|
|
436
436
|
children: [/* @__PURE__ */ I(D, {
|
|
437
437
|
className: "h-3.5 w-3.5",
|
|
438
438
|
"aria-hidden": !0
|
|
439
|
-
}), J.lastRunAt ?
|
|
439
|
+
}), J.lastRunAt ? l("agents.card.lastRun", "Last run {{when}}", { when: o(J.lastRunAt) }) : l("agents.card.neverRun", "Never run")]
|
|
440
440
|
}),
|
|
441
441
|
J.description && /* @__PURE__ */ I("p", {
|
|
442
442
|
className: "mt-2 max-w-2xl text-sm text-text-secondary",
|
|
@@ -450,7 +450,7 @@ function K() {
|
|
|
450
450
|
/* @__PURE__ */ I("label", {
|
|
451
451
|
htmlFor: "agent-posture",
|
|
452
452
|
className: "mb-1 block text-xs font-medium text-text-secondary",
|
|
453
|
-
children:
|
|
453
|
+
children: l("agents.detail.operatingPosture", "Operating posture")
|
|
454
454
|
}),
|
|
455
455
|
/* @__PURE__ */ I("select", {
|
|
456
456
|
id: "agent-posture",
|
|
@@ -460,17 +460,17 @@ function K() {
|
|
|
460
460
|
z(null), M.mutate({
|
|
461
461
|
id: J.id,
|
|
462
462
|
status: e.target.value
|
|
463
|
-
}, { onError: (e) => z(e instanceof Error ? e.message :
|
|
463
|
+
}, { onError: (e) => z(e instanceof Error ? e.message : l("agents.detail.error", "Could not load this agent.")) });
|
|
464
464
|
},
|
|
465
465
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] disabled:opacity-50",
|
|
466
|
-
children: /* @__PURE__ */ I(
|
|
466
|
+
children: /* @__PURE__ */ I(C, {
|
|
467
467
|
options: ue,
|
|
468
468
|
currentStatus: J.status
|
|
469
469
|
})
|
|
470
470
|
}),
|
|
471
471
|
/* @__PURE__ */ I("p", {
|
|
472
472
|
className: "mt-1.5 text-[11px] leading-snug text-text-secondary",
|
|
473
|
-
children: N ?
|
|
473
|
+
children: N ? l("agents.detail.postureHint", "Disabled never acts · Suggest-only proposes. You review proposed actions before applying them. Policy-driven autonomous execution is not available yet.") : l("agents.detail.postureHintGated", "Disabled never acts · Suggest-only proposes. Autonomous mode is not available yet — agents only suggest, they never act on their own.")
|
|
474
474
|
})
|
|
475
475
|
]
|
|
476
476
|
})]
|
|
@@ -483,17 +483,17 @@ function K() {
|
|
|
483
483
|
H.isPending && /* @__PURE__ */ I("div", {
|
|
484
484
|
role: "status",
|
|
485
485
|
className: "mt-4 rounded-lg border border-border-subtle bg-bg-sunken px-4 py-2 text-sm text-text-secondary",
|
|
486
|
-
children:
|
|
486
|
+
children: l("agents.detail.runProgress", "Evaluating your active and trial subscriptions. Nothing is changed by this run.")
|
|
487
487
|
}),
|
|
488
488
|
U && /* @__PURE__ */ L("div", {
|
|
489
489
|
role: "status",
|
|
490
490
|
"data-testid": "run-result",
|
|
491
491
|
className: "mt-4 rounded-lg border border-status-success-text/30 bg-status-success-bg-subtle px-4 py-2 text-sm text-status-success-text",
|
|
492
|
-
children: [
|
|
492
|
+
children: [l("agents.detail.runResult", "Run finished: {{evaluated}} subscriptions evaluated, {{proposed}} recommendations to review, {{flagged}} held back by validation.", {
|
|
493
493
|
evaluated: U.evaluated,
|
|
494
494
|
proposed: U.proposed,
|
|
495
495
|
flagged: U.flagged
|
|
496
|
-
}), U.truncated && ` ${
|
|
496
|
+
}), U.truncated && ` ${l("agents.detail.runTruncated", "Only part of the portfolio was evaluated in this run.")}`]
|
|
497
497
|
}),
|
|
498
498
|
G && /* @__PURE__ */ I("div", {
|
|
499
499
|
className: "mt-4 rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
|
|
@@ -506,20 +506,20 @@ function K() {
|
|
|
506
506
|
/* @__PURE__ */ L("div", {
|
|
507
507
|
className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
508
508
|
children: [
|
|
509
|
-
/* @__PURE__ */ I(
|
|
509
|
+
/* @__PURE__ */ I(r, {
|
|
510
510
|
icon: /* @__PURE__ */ I(ie, { className: "h-5 w-5" }),
|
|
511
511
|
value: Y.length,
|
|
512
|
-
label:
|
|
512
|
+
label: l("agents.detail.policies", "Policies")
|
|
513
513
|
}),
|
|
514
|
-
/* @__PURE__ */ I(
|
|
514
|
+
/* @__PURE__ */ I(r, {
|
|
515
515
|
icon: /* @__PURE__ */ I(P, { className: "h-5 w-5" }),
|
|
516
516
|
value: _e,
|
|
517
|
-
label:
|
|
517
|
+
label: l("agents.detail.enabled", "Enabled")
|
|
518
518
|
}),
|
|
519
|
-
/* @__PURE__ */ I(
|
|
519
|
+
/* @__PURE__ */ I(r, {
|
|
520
520
|
icon: /* @__PURE__ */ I(se, { className: "h-5 w-5" }),
|
|
521
521
|
value: ve,
|
|
522
|
-
label:
|
|
522
|
+
label: l("agents.detail.totalTriggers", "Total triggers")
|
|
523
523
|
})
|
|
524
524
|
]
|
|
525
525
|
}),
|
|
@@ -527,9 +527,9 @@ function K() {
|
|
|
527
527
|
className: "mt-8 grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
528
528
|
children: [/* @__PURE__ */ I("div", {
|
|
529
529
|
className: "lg:col-span-2",
|
|
530
|
-
children: /* @__PURE__ */ I(
|
|
531
|
-
title:
|
|
532
|
-
description:
|
|
530
|
+
children: /* @__PURE__ */ I(h, {
|
|
531
|
+
title: l("agents.detail.policies", "Policies"),
|
|
532
|
+
description: l("agents.detail.policiesDescription", "Saved policy settings for this agent; autonomous execution is not available yet"),
|
|
533
533
|
action: /* @__PURE__ */ L("button", {
|
|
534
534
|
type: "button",
|
|
535
535
|
onClick: () => V(!0),
|
|
@@ -537,18 +537,18 @@ function K() {
|
|
|
537
537
|
children: [
|
|
538
538
|
/* @__PURE__ */ I(oe, { className: "h-3.5 w-3.5" }),
|
|
539
539
|
" ",
|
|
540
|
-
|
|
540
|
+
l("agents.detail.addPolicy", "Add policy")
|
|
541
541
|
]
|
|
542
542
|
}),
|
|
543
|
-
children: Y.length === 0 ? /* @__PURE__ */ I(
|
|
543
|
+
children: Y.length === 0 ? /* @__PURE__ */ I(a, {
|
|
544
544
|
illustration: "empty-data",
|
|
545
|
-
title:
|
|
546
|
-
description:
|
|
545
|
+
title: l("agents.detail.noPoliciesTitle", "No policies"),
|
|
546
|
+
description: l("agents.detail.noPoliciesDescription", "You can save policy settings here. Policy-driven autonomous execution is not available yet; proposed actions still need your review."),
|
|
547
547
|
action: /* @__PURE__ */ I("button", {
|
|
548
548
|
type: "button",
|
|
549
549
|
onClick: () => V(!0),
|
|
550
550
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
|
|
551
|
-
children:
|
|
551
|
+
children: l("agents.detail.addPolicy", "Add policy")
|
|
552
552
|
})
|
|
553
553
|
}) : /* @__PURE__ */ I("div", {
|
|
554
554
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
@@ -557,9 +557,9 @@ function K() {
|
|
|
557
557
|
})
|
|
558
558
|
}), /* @__PURE__ */ I("div", {
|
|
559
559
|
className: "lg:col-span-1",
|
|
560
|
-
children: /* @__PURE__ */ I(
|
|
561
|
-
title:
|
|
562
|
-
description:
|
|
560
|
+
children: /* @__PURE__ */ I(h, {
|
|
561
|
+
title: l("agents.detail.runHistory", "Run history"),
|
|
562
|
+
description: l("agents.detail.runHistoryDescription", "Recent agent activity"),
|
|
563
563
|
children: /* @__PURE__ */ I(R, {
|
|
564
564
|
treatment: "metric",
|
|
565
565
|
className: "p-5",
|
|
@@ -572,44 +572,44 @@ function K() {
|
|
|
572
572
|
}),
|
|
573
573
|
/* @__PURE__ */ I("p", {
|
|
574
574
|
className: "text-sm font-medium text-text-primary",
|
|
575
|
-
children:
|
|
575
|
+
children: l("agents.detail.noRunsTitle", "No runs yet")
|
|
576
576
|
}),
|
|
577
577
|
/* @__PURE__ */ I("p", {
|
|
578
578
|
className: "text-xs text-text-secondary",
|
|
579
|
-
children:
|
|
579
|
+
children: l("agents.detail.noRunsDescription", "Activity appears here once the agent runs.")
|
|
580
580
|
})
|
|
581
581
|
]
|
|
582
|
-
}) : /* @__PURE__ */ I(
|
|
582
|
+
}) : /* @__PURE__ */ I(g, { items: $ })
|
|
583
583
|
})
|
|
584
584
|
})
|
|
585
585
|
})]
|
|
586
586
|
}),
|
|
587
|
-
/* @__PURE__ */ L(
|
|
588
|
-
title:
|
|
589
|
-
description:
|
|
587
|
+
/* @__PURE__ */ L(h, {
|
|
588
|
+
title: l("agents.detail.decisions", "Decisions"),
|
|
589
|
+
description: l("agents.detail.decisionsDescription", "Recommendations from this agent. Review, apply or dismiss each one."),
|
|
590
590
|
action: /* @__PURE__ */ L("button", {
|
|
591
591
|
type: "button",
|
|
592
592
|
onClick: () => E("/decisions"),
|
|
593
593
|
className: "inline-flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
594
|
-
children: [
|
|
594
|
+
children: [l("agents.detail.allDecisions", "All decisions"), /* @__PURE__ */ I(te, {
|
|
595
595
|
className: "rtl:rotate-180 h-3.5 w-3.5",
|
|
596
596
|
"aria-hidden": !0
|
|
597
597
|
})]
|
|
598
598
|
}),
|
|
599
|
-
children: [/* @__PURE__ */ I(
|
|
599
|
+
children: [/* @__PURE__ */ I(x, { className: "mb-3" }), q.isLoading ? /* @__PURE__ */ I(m, {
|
|
600
600
|
className: "min-h-[120px]",
|
|
601
|
-
label:
|
|
602
|
-
}) : q.isError ? /* @__PURE__ */ I(
|
|
601
|
+
label: l("decisions.loading", "Loading decisions…")
|
|
602
|
+
}) : q.isError ? /* @__PURE__ */ I(S, {
|
|
603
603
|
message: q.error instanceof Error ? q.error.message : void 0,
|
|
604
604
|
onRetry: () => void q.refetch()
|
|
605
|
-
}) : Z.length === 0 ? /* @__PURE__ */ I(
|
|
605
|
+
}) : Z.length === 0 ? /* @__PURE__ */ I(a, {
|
|
606
606
|
illustration: "empty-data",
|
|
607
|
-
title:
|
|
608
|
-
description: Q ??
|
|
607
|
+
title: l("agents.detail.noDecisionsTitle", "No decisions yet"),
|
|
608
|
+
description: Q ?? l("agents.detail.noDecisionsDescription", "Run the agent to get recommendations. A run only proposes; nothing changes until you apply.")
|
|
609
609
|
}) : /* @__PURE__ */ I("div", {
|
|
610
610
|
className: "grid grid-cols-1 gap-3 lg:grid-cols-2",
|
|
611
611
|
"data-testid": "agent-decisions",
|
|
612
|
-
children: Z.slice(0, 6).map((e) => /* @__PURE__ */ I(
|
|
612
|
+
children: Z.slice(0, 6).map((e) => /* @__PURE__ */ I(b, {
|
|
613
613
|
decision: e,
|
|
614
614
|
hideAgent: !0
|
|
615
615
|
}, e.id))
|
|
@@ -622,7 +622,6 @@ function K() {
|
|
|
622
622
|
]
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
//#endregion
|
|
626
625
|
export { K as AgentDetailPage };
|
|
627
626
|
|
|
628
627
|
//# sourceMappingURL=AgentDetailPage.js.map
|