@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.
Files changed (186) hide show
  1. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  2. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  3. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
  4. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  5. package/dist/subscriberbot/SubscriberBotRoot.js +10 -7
  6. package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
  7. package/dist/subscriberbot/SubscriberBotRoutes.js +1 -2
  8. package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
  9. package/dist/subscriberbot/admin/AdminDashboardPage.js +9 -10
  10. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  11. package/dist/subscriberbot/admin/AdminRoot.js +2 -3
  12. package/dist/subscriberbot/admin/AdminRoot.js.map +1 -1
  13. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +56 -57
  14. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  15. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +107 -108
  16. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  17. package/dist/subscriberbot/admin/index.js +1 -1
  18. package/dist/subscriberbot/components/EmptyState.js +1 -2
  19. package/dist/subscriberbot/components/EmptyState.js.map +1 -1
  20. package/dist/subscriberbot/components/MetricsCard.js +1 -2
  21. package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
  22. package/dist/subscriberbot/components/Modal.js +2 -3
  23. package/dist/subscriberbot/components/Modal.js.map +1 -1
  24. package/dist/subscriberbot/components/PageLayout.js +1 -2
  25. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  26. package/dist/subscriberbot/components/PostureOptions.js +7 -8
  27. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  28. package/dist/subscriberbot/components/StateViews.js +1 -2
  29. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  30. package/dist/subscriberbot/components/StatusBadge.js +2 -3
  31. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  32. package/dist/subscriberbot/components/decisions/DecisionBanners.js +7 -8
  33. package/dist/subscriberbot/components/decisions/DecisionBanners.js.map +1 -1
  34. package/dist/subscriberbot/components/decisions/DecisionCard.js +65 -66
  35. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  36. package/dist/subscriberbot/components/decisions/decisionModel.js +2 -3
  37. package/dist/subscriberbot/components/decisions/decisionModel.js.map +1 -1
  38. package/dist/subscriberbot/components/decisions/index.js +4 -3
  39. package/dist/subscriberbot/components/index.js +8 -7
  40. package/dist/subscriberbot/components/mobile/MobileDashboard.js +23 -24
  41. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  42. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +40 -49
  43. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  44. package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -2
  45. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  46. package/dist/subscriberbot/components/mobile/RelationshipGlyph.js +1 -2
  47. package/dist/subscriberbot/components/mobile/RelationshipGlyph.js.map +1 -1
  48. package/dist/subscriberbot/components/mobile/index.js +4 -3
  49. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +1 -2
  50. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -1
  51. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +4 -5
  52. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  53. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +4 -5
  54. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  55. package/dist/subscriberbot/components/negotiations/index.js +5 -4
  56. package/dist/subscriberbot/components/negotiations/labels.js +1 -2
  57. package/dist/subscriberbot/components/negotiations/labels.js.map +1 -1
  58. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +4 -5
  59. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  60. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +1 -2
  61. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -1
  62. package/dist/subscriberbot/components/procurement/ProcurementThread.js +4 -5
  63. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  64. package/dist/subscriberbot/components/procurement/index.js +5 -4
  65. package/dist/subscriberbot/components/procurement/labels.js +1 -2
  66. package/dist/subscriberbot/components/procurement/labels.js.map +1 -1
  67. package/dist/subscriberbot/components/savings/SavingsCards.js +90 -91
  68. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  69. package/dist/subscriberbot/components/savings/index.js +3 -2
  70. package/dist/subscriberbot/components/savings/savingsModel.js +2 -3
  71. package/dist/subscriberbot/components/savings/savingsModel.js.map +1 -1
  72. package/dist/subscriberbot/components/viz.js +2 -3
  73. package/dist/subscriberbot/components/viz.js.map +1 -1
  74. package/dist/subscriberbot/context/SubscriberBotContext.js +3 -3
  75. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  76. package/dist/subscriberbot/context/index.js +1 -1
  77. package/dist/subscriberbot/hooks/index.js +2 -2
  78. package/dist/subscriberbot/hooks/useAutonomousAgentMode.js +2 -3
  79. package/dist/subscriberbot/hooks/useAutonomousAgentMode.js.map +1 -1
  80. package/dist/subscriberbot/hooks/useBankingApi.js +2 -3
  81. package/dist/subscriberbot/hooks/useBankingApi.js.map +1 -1
  82. package/dist/subscriberbot/hooks/useCompactViewport.js +1 -2
  83. package/dist/subscriberbot/hooks/useCompactViewport.js.map +1 -1
  84. package/dist/subscriberbot/hooks/useFormError.js +1 -2
  85. package/dist/subscriberbot/hooks/useFormError.js.map +1 -1
  86. package/dist/subscriberbot/hooks/useFormatters.js +1 -2
  87. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -1
  88. package/dist/subscriberbot/hooks/useNegotiationApi.js +2 -3
  89. package/dist/subscriberbot/hooks/useNegotiationApi.js.map +1 -1
  90. package/dist/subscriberbot/hooks/useProcurementApi.js +2 -3
  91. package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -1
  92. package/dist/subscriberbot/hooks/useRouteSelection.js +3 -3
  93. package/dist/subscriberbot/hooks/useRouteSelection.js.map +1 -1
  94. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -2
  95. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  96. package/dist/subscriberbot/hooks/useTr.js +1 -2
  97. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  98. package/dist/subscriberbot/index.js +9 -8
  99. package/dist/subscriberbot/pages/AssetVaultPage.js +34 -35
  100. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  101. package/dist/subscriberbot/pages/DashboardPage.js +86 -87
  102. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  103. package/dist/subscriberbot/pages/InboxPage.js +194 -199
  104. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  105. package/dist/subscriberbot/pages/InsightsPage.js +28 -29
  106. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  107. package/dist/subscriberbot/pages/InvoicesPage.js +179 -188
  108. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  109. package/dist/subscriberbot/pages/RenewalsPage.js +293 -298
  110. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  111. package/dist/subscriberbot/pages/SavingsPage.js +25 -26
  112. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  113. package/dist/subscriberbot/pages/WorkflowsPage.js +67 -68
  114. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  115. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +126 -127
  116. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  117. package/dist/subscriberbot/pages/agents/AgentNewPage.js +10 -11
  118. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  119. package/dist/subscriberbot/pages/agents/AgentsListPage.js +23 -24
  120. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  121. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +337 -359
  122. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  123. package/dist/subscriberbot/pages/banking/ConnectBankModal.js +22 -27
  124. package/dist/subscriberbot/pages/banking/ConnectBankModal.js.map +1 -1
  125. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +25 -26
  126. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  127. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +34 -35
  128. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  129. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +125 -130
  130. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  131. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +94 -95
  132. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  133. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +15 -16
  134. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  135. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +20 -21
  136. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  137. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +86 -87
  138. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  139. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +164 -165
  140. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  141. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +20 -21
  142. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  143. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +350 -351
  144. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  145. package/dist/subscriberbot/pages/providers/ProviderInsights.js +95 -96
  146. package/dist/subscriberbot/pages/providers/ProviderInsights.js.map +1 -1
  147. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +11 -12
  148. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  149. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +62 -63
  150. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  151. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +166 -172
  152. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  153. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +12 -13
  154. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  155. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +21 -22
  156. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  157. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +242 -255
  158. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  159. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +2 -3
  160. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  161. package/dist/subscriberbot/services/createSandboxAssistantTransport.js +1 -2
  162. package/dist/subscriberbot/services/createSandboxAssistantTransport.js.map +1 -1
  163. package/dist/subscriberbot/store/index.js +1 -1
  164. package/dist/subscriberbot/store/subscriberbotStore.js +1 -2
  165. package/dist/subscriberbot/store/subscriberbotStore.js.map +1 -1
  166. package/dist/subscriberbot/utils/bankRedirectLink.js +18 -19
  167. package/dist/subscriberbot/utils/bankRedirectLink.js.map +1 -1
  168. package/dist/subscriberbot/utils/chartScale.js +1 -2
  169. package/dist/subscriberbot/utils/chartScale.js.map +1 -1
  170. package/dist/subscriberbot/utils/cn.js +2 -3
  171. package/dist/subscriberbot/utils/cn.js.map +1 -1
  172. package/dist/subscriberbot/utils/formatters.js +4 -5
  173. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  174. package/dist/subscriberbot/utils/navigation.js +1 -2
  175. package/dist/subscriberbot/utils/navigation.js.map +1 -1
  176. package/dist/subscriberbot/utils/pageContext.js +3 -4
  177. package/dist/subscriberbot/utils/pageContext.js.map +1 -1
  178. package/dist/subscriberbot/utils/plaidLink.js +21 -22
  179. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  180. package/dist/subscriberbot/utils/portfolio.d.ts +4 -3
  181. package/dist/subscriberbot/utils/portfolio.d.ts.map +1 -1
  182. package/dist/subscriberbot/utils/portfolio.js +10 -11
  183. package/dist/subscriberbot/utils/portfolio.js.map +1 -1
  184. package/dist/subscriberbot/utils/renewals.js +1 -2
  185. package/dist/subscriberbot/utils/renewals.js.map +1 -1
  186. package/package.json +2 -2
@@ -1,28 +1,28 @@
1
- import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
2
- import { useTr as t } from "../../hooks/useTr.js";
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 { useAgent as m, useCreatePolicy as h, useDecisions as g, useRunAgent as _, useSetAgentStatus as v } from "../../hooks/useSubscriberBotApi.js";
15
- import { RUNNABLE_AGENT_KINDS as y } from "../../components/decisions/decisionModel.js";
16
- import { useFormError as b } from "../../hooks/useFormError.js";
17
- import { DecisionCard as x } from "../../components/decisions/DecisionCard.js";
18
- import { AiDisclaimer as S, DecisionsUnavailableBanner as C } from "../../components/decisions/DecisionBanners.js";
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
- //#region src/subscriberbot/pages/agents/AgentDetailPage.tsx
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 n = t();
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 ? n("agents.detail.enabled", "Enabled") : n("agents.detail.disabled", "Disabled")]
106
+ }), e ? t("agents.detail.enabled", "Enabled") : t("agents.detail.disabled", "Disabled")]
107
107
  });
108
108
  }
109
- function me({ agentId: e, onClose: r }) {
110
- let { formatEnumLabel: i } = n(), a = t(), o = h(), [c, l] = w(""), [u, d] = w("ALERT"), [f, p] = w(""), [m, g] = w(""), [_, v] = w(!0), [y, x, S, C] = b();
111
- return /* @__PURE__ */ I(s, {
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: (t) => {
117
- if (t.preventDefault(), x(null), !c.trim()) {
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 n;
122
- if (m.trim()) try {
123
- n = JSON.parse(m);
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
- o.mutate({
129
- agentId: e,
128
+ s.mutate({
129
+ agentId: n,
130
130
  name: c.trim(),
131
- action: u,
132
- isEnabled: _,
133
- ...f.trim() ? { description: f.trim() } : {},
134
- ...n ? { condition: n } : {}
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
- y && /* @__PURE__ */ I("div", {
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: y
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) => l(e.target.value),
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: u,
178
- onChange: (e) => d(e.target.value),
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: m,
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: f,
217
- onChange: (e) => p(e.target.value),
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) => v(e.target.checked),
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: o.isPending,
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: o.isPending ? a("agents.policyModal.adding", "Adding…") : a("agents.policyModal.submit", "Add policy")
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: e }) {
249
- let { formatEnumLabel: r, formatNumber: i } = n(), a = t(), o = W(e.condition, i, a);
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: e.name
259
- }), /* @__PURE__ */ I(G, { enabled: e.isEnabled })]
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
- r(e.action)
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: a("agents.detail.triggered", "Triggered {{count}}×", { count: e.triggerCount })
275
+ children: i("agents.detail.triggered", "Triggered {{count}}×", { count: t.triggerCount })
276
276
  })]
277
277
  }),
278
- e.description && /* @__PURE__ */ I("p", {
278
+ t.description && /* @__PURE__ */ I("p", {
279
279
  className: "mt-2 line-clamp-2 text-xs text-text-secondary",
280
- children: e.description
280
+ children: t.description
281
281
  }),
282
- o.length > 0 && /* @__PURE__ */ L("div", {
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
- a("agents.detail.firesWhen", "Fires when")
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: o.map((e) => /* @__PURE__ */ L("span", {
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
- }), e.lastTriggeredAt ? a("agents.detail.triggered", "Triggered {{count}}×", { count: e.triggerCount }) : a("agents.detail.notYetTriggered", "Not yet triggered")]
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: s, formatRelativeTime: h } = n(), b = t(), { id: T } = ce(), { navigateTo: E } = e(), { data: O, isLoading: k, isError: A, refetch: j } = m(T), M = v(), N = c(), [F, z] = w(null), [B, V] = w(!1), H = _(), [U, W] = w(null), [G, K] = w(null), q = g({ agentId: T }, { enabled: !!T });
320
- if (k) return /* @__PURE__ */ I(r, {
321
- title: b("agents.detail.loading", "Loading agent…"),
322
- children: /* @__PURE__ */ I(d, { label: b("agents.detail.loading", "Loading agent…") })
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(r, {
325
- title: b("agents.title", "AI Agents"),
326
- children: /* @__PURE__ */ I(u, {
327
- message: b("agents.detail.error", "Could not load this agent."),
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(r, {
332
- title: b("agents.title", "AI Agents"),
333
- children: /* @__PURE__ */ I(o, {
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: b("agents.detail.notFoundTitle", "Agent not found"),
336
- description: b("agents.detail.notFoundDescription", "It may have been removed, or you may not have access to it."),
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: b("agents.detail.backToAgents", "Back to agents")
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: b("agents.detail.agentRun", "Agent run"),
350
- sub: b("agents.detail.agentRunSub", "Latest agent run"),
351
- meta: h(J.lastRunAt),
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: `${s(e.action)} · ${b("agents.detail.triggered", "Triggered {{count}}×", { count: e.triggerCount })}`,
360
- meta: h(e.lastTriggeredAt),
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: b("agents.detail.decisionRun", "Decision run"),
369
- sub: b("agents.detail.decisionRunSub", "{{total}} recommendations · {{proposed}} open · {{flagged}} flagged", {
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: h(e.ranAt),
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 = y.has(J.kind) ? J.status === "DISABLED" ? b("agents.detail.runDisabled", "Set the posture to Suggest-only to run this agent.") : null : b("agents.detail.runUnsupported", "This agent kind does not make decisions yet. Cost, renewal, vendor and discovery agents do."), ye = () => {
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 : b("agents.detail.runError", "The agent run failed."))
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(r, {
385
+ return /* @__PURE__ */ L(n, {
386
386
  title: J.name,
387
- description: `${b(de[J.kind] ?? "", s(J.kind))} ${b("agents.card.kindSuffix", "agent")}`,
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
- b("agents.new.back", "Back")
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 ? b("agents.detail.running", "Running…") : b("agents.detail.run", "Run agent")]
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(a, { status: J.status })]
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 ? b("agents.card.lastRun", "Last run {{when}}", { when: h(J.lastRunAt) }) : b("agents.card.neverRun", "Never run")]
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: b("agents.detail.operatingPosture", "Operating posture")
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 : b("agents.detail.error", "Could not load this agent.")) });
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(l, {
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 ? b("agents.detail.postureHint", "Disabled never acts · Suggest-only proposes. You review proposed actions before applying them. Policy-driven autonomous execution is not available yet.") : b("agents.detail.postureHintGated", "Disabled never acts · Suggest-only proposes. Autonomous mode is not available yet — agents only suggest, they never act on their own.")
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: b("agents.detail.runProgress", "Evaluating your active and trial subscriptions. Nothing is changed by this run.")
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: [b("agents.detail.runResult", "Run finished: {{evaluated}} subscriptions evaluated, {{proposed}} recommendations to review, {{flagged}} held back by validation.", {
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 && ` ${b("agents.detail.runTruncated", "Only part of the portfolio was evaluated in this run.")}`]
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(i, {
509
+ /* @__PURE__ */ I(r, {
510
510
  icon: /* @__PURE__ */ I(ie, { className: "h-5 w-5" }),
511
511
  value: Y.length,
512
- label: b("agents.detail.policies", "Policies")
512
+ label: l("agents.detail.policies", "Policies")
513
513
  }),
514
- /* @__PURE__ */ I(i, {
514
+ /* @__PURE__ */ I(r, {
515
515
  icon: /* @__PURE__ */ I(P, { className: "h-5 w-5" }),
516
516
  value: _e,
517
- label: b("agents.detail.enabled", "Enabled")
517
+ label: l("agents.detail.enabled", "Enabled")
518
518
  }),
519
- /* @__PURE__ */ I(i, {
519
+ /* @__PURE__ */ I(r, {
520
520
  icon: /* @__PURE__ */ I(se, { className: "h-5 w-5" }),
521
521
  value: ve,
522
- label: b("agents.detail.totalTriggers", "Total triggers")
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(f, {
531
- title: b("agents.detail.policies", "Policies"),
532
- description: b("agents.detail.policiesDescription", "Saved policy settings for this agent; autonomous execution is not available yet"),
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
- b("agents.detail.addPolicy", "Add policy")
540
+ l("agents.detail.addPolicy", "Add policy")
541
541
  ]
542
542
  }),
543
- children: Y.length === 0 ? /* @__PURE__ */ I(o, {
543
+ children: Y.length === 0 ? /* @__PURE__ */ I(a, {
544
544
  illustration: "empty-data",
545
- title: b("agents.detail.noPoliciesTitle", "No policies"),
546
- description: b("agents.detail.noPoliciesDescription", "You can save policy settings here. Policy-driven autonomous execution is not available yet; proposed actions still need your review."),
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: b("agents.detail.addPolicy", "Add policy")
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(f, {
561
- title: b("agents.detail.runHistory", "Run history"),
562
- description: b("agents.detail.runHistoryDescription", "Recent agent activity"),
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: b("agents.detail.noRunsTitle", "No runs yet")
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: b("agents.detail.noRunsDescription", "Activity appears here once the agent runs.")
579
+ children: l("agents.detail.noRunsDescription", "Activity appears here once the agent runs.")
580
580
  })
581
581
  ]
582
- }) : /* @__PURE__ */ I(p, { items: $ })
582
+ }) : /* @__PURE__ */ I(g, { items: $ })
583
583
  })
584
584
  })
585
585
  })]
586
586
  }),
587
- /* @__PURE__ */ L(f, {
588
- title: b("agents.detail.decisions", "Decisions"),
589
- description: b("agents.detail.decisionsDescription", "Recommendations from this agent. Review, apply or dismiss each one."),
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: [b("agents.detail.allDecisions", "All decisions"), /* @__PURE__ */ I(te, {
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(S, { className: "mb-3" }), q.isLoading ? /* @__PURE__ */ I(d, {
599
+ children: [/* @__PURE__ */ I(x, { className: "mb-3" }), q.isLoading ? /* @__PURE__ */ I(m, {
600
600
  className: "min-h-[120px]",
601
- label: b("decisions.loading", "Loading decisions…")
602
- }) : q.isError ? /* @__PURE__ */ I(C, {
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(o, {
605
+ }) : Z.length === 0 ? /* @__PURE__ */ I(a, {
606
606
  illustration: "empty-data",
607
- title: b("agents.detail.noDecisionsTitle", "No decisions yet"),
608
- description: Q ?? b("agents.detail.noDecisionsDescription", "Run the agent to get recommendations. A run only proposes; nothing changes until you apply.")
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(x, {
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