bazilion 0.52.0 → 0.54.0

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 (210) hide show
  1. package/dist/cli.js +3 -3
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +296 -232
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-CkwSq3C7.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-CEn_4qVs.js +1 -0
  7. package/dist/web/client/assets/Button-UiegBKOK.js +1 -0
  8. package/dist/web/client/assets/ConfigPage-CUbHBhzx.js +1 -0
  9. package/dist/web/client/assets/ConfirmDialog-VqBOFZEp.js +1 -0
  10. package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +1 -0
  11. package/dist/web/client/assets/ManagePage-BJWZd1ts.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-ViZKm3-B.js +1 -0
  13. package/dist/web/client/assets/Segmented-MYKKTuZO.js +1 -0
  14. package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-DG5UbJNK.js +1 -0
  16. package/dist/web/client/assets/TeamForm-DGlxWv4e.js +1 -0
  17. package/dist/web/client/assets/TeamThread-mkwODO0S.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-BmdwLH99.js +1 -0
  19. package/dist/web/client/assets/_id-CvcxNmBH.js +1 -0
  20. package/dist/web/client/assets/_id-UyBk7gRl.js +1 -0
  21. package/dist/web/client/assets/access-C8d8vaQ6.js +1 -0
  22. package/dist/web/client/assets/agent-actions-BgE9fKHH.js +1 -0
  23. package/dist/web/client/assets/agents-CgtzqBpD.js +1 -0
  24. package/dist/web/client/assets/agents-D7W4BT8r.js +1 -0
  25. package/dist/web/client/assets/arrow-right-D0HKRb7U.js +1 -0
  26. package/dist/web/client/assets/attention-D9mQWoKt.js +1 -0
  27. package/dist/web/client/assets/bot-Bb--PFVU.js +1 -0
  28. package/dist/web/client/assets/chevron-right-bs0TUSl2.js +1 -0
  29. package/dist/web/client/assets/config-Dw6GWf38.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-DkniuEtD.js +1 -0
  31. package/dist/web/client/assets/download-C4t9l5wR.js +1 -0
  32. package/dist/web/client/assets/file-text-DzbjpYrV.js +1 -0
  33. package/dist/web/client/assets/images-DSYgPKM7.js +1 -0
  34. package/dist/web/client/assets/index-YW0gXPfk.js +14 -0
  35. package/dist/web/client/assets/key-round-BpK4-E3T.js +1 -0
  36. package/dist/web/client/assets/list-checks-JNXcmws9.js +1 -0
  37. package/dist/web/client/assets/login-DcQJk5-U.js +1 -0
  38. package/dist/web/client/assets/manage-SRGSx8n2.js +1 -0
  39. package/dist/web/client/assets/mcp-BUWu4TvS.js +1 -0
  40. package/dist/web/client/assets/message-square-DM2MP9vF.js +1 -0
  41. package/dist/web/client/assets/network-BJ4iPjQO.js +1 -0
  42. package/dist/web/client/assets/parts-LZxl9Gvc.js +41 -0
  43. package/dist/web/client/assets/plus-CLGNN5QX.js +1 -0
  44. package/dist/web/client/assets/routes-BxIIyGho.js +85 -0
  45. package/dist/web/client/assets/skills-C7DzIwFJ.js +1 -0
  46. package/dist/web/client/assets/square-terminal-Dmm6cV-G.js +1 -0
  47. package/dist/web/client/assets/style-CA2GAk9b.js +7 -0
  48. package/dist/web/client/assets/styles-C3CDSGAr.css +2 -0
  49. package/dist/web/client/assets/system-zQ0NnQML.js +1 -0
  50. package/dist/web/client/assets/teams-BEIJHObN.js +1 -0
  51. package/dist/web/client/assets/teams-DlOc7Ods.js +1 -0
  52. package/dist/web/client/assets/telegram-DKHq5DpE.js +1 -0
  53. package/dist/web/client/assets/tools-BKIpLaiC.js +1 -0
  54. package/dist/web/client/assets/use-resource-CQaIZbpy.js +1 -0
  55. package/dist/web/client/assets/users-round-BJrym3FG.js +1 -0
  56. package/dist/web/client/assets/welcome-CyS4Hrd-.js +1 -0
  57. package/dist/web/client/assets/wrench-GbE1M1RJ.js +1 -0
  58. package/dist/web/server/assets/{AddProviderDialog-Tn4AskPm.js → AddProviderDialog-Nc5mc_P6.js} +106 -8
  59. package/dist/web/server/assets/AgentTemplateParts-DZK_r3nQ.js +266 -0
  60. package/dist/web/server/assets/{ConfigPage-DqDUujmt.js → ConfigPage-CxzL-gTm.js} +2 -2
  61. package/dist/web/server/assets/{ConfirmDialog-DfaJ--A6.js → ConfirmDialog-4xeCXKHe.js} +1 -2
  62. package/dist/web/server/assets/{ConnectionsView-DAG-zNBz.js → ConnectionsView-B02FjNsM.js} +9 -9
  63. package/dist/web/server/assets/ManagePage-BfCWE8Lj.js +29 -0
  64. package/dist/web/server/assets/ModelMenu-D-hTgYOO.js +278 -0
  65. package/dist/web/server/assets/{Rail-BIC_4ptO.js → Rail-3gbidhyv.js} +17 -110
  66. package/dist/web/server/assets/{SectionTabs-BGsrf-UQ.js → SectionTabs-CWQ5orUW.js} +9 -2
  67. package/dist/web/server/assets/SkillsParts-D58l8voo.js +199 -0
  68. package/dist/web/server/assets/SpawnDialog-MJWwppgC.js +1648 -0
  69. package/dist/web/server/assets/SpawnTeamModal-RjzAeX_Q.js +124 -0
  70. package/dist/web/server/assets/TeamForm-DdOgIMiV.js +138 -0
  71. package/dist/web/server/assets/{TeamThread-DuLlGDcw.js → TeamThread-D-PvO3fu.js} +9 -9
  72. package/dist/web/server/assets/{UnsavedChangesGuard-DrOvPV14.js → UnsavedChangesGuard-Bb5frygQ.js} +1 -1
  73. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  74. package/dist/web/server/assets/_id-BPjVkcNb.js +396 -0
  75. package/dist/web/server/assets/_id-BUfy-GwH.js +16 -0
  76. package/dist/web/server/assets/{_id-yN0z7VqE.js → _id-C1_l6oSR.js} +257 -207
  77. package/dist/web/server/assets/{_id-DJnYgisy.js → _id-CHvYQhWt.js} +8 -4
  78. package/dist/web/server/assets/_id-De3Bm0SG.js +39 -0
  79. package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +256 -0
  80. package/dist/web/server/assets/access-CNfvQ3NB.js +295 -0
  81. package/dist/web/server/assets/{access-GMGed5O8.js → access-Cm_izIIC.js} +2 -2
  82. package/dist/web/server/assets/{access-C_pupPks.js → access-WWspT0v4.js} +2 -1
  83. package/dist/web/server/assets/agent-actions-COnfW5AU.js +20 -0
  84. package/dist/web/server/assets/agents-C7UmTjfO.js +13 -0
  85. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-CRtMfKqX.js} +9 -6
  86. package/dist/web/server/assets/agents-D0hfGIMK.js +134 -0
  87. package/dist/web/server/assets/agents-DQowl6Ly.js +31 -0
  88. package/dist/web/server/assets/agents-DzpqlIuJ.js +12 -0
  89. package/dist/web/server/assets/agents-NOkh61dV.js +323 -0
  90. package/dist/web/server/assets/attention-CRvxt22X.js +232 -0
  91. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-CgWhXjX7.js} +4 -1
  92. package/dist/web/server/assets/{attention-DS3O9UmJ.js → attention-Cx9ZWPOO.js} +4 -2
  93. package/dist/web/server/assets/{config-DjTGA4iZ.js → config-B5CS8juO.js} +2 -2
  94. package/dist/web/server/assets/{config-Q7livfa3.js → config-D117117T.js} +51 -102
  95. package/dist/web/server/assets/createSsrRpc-CwTd0zrB.js +72 -0
  96. package/dist/web/server/assets/{login-VV10kZBl.js → login-IF0Gbsuq.js} +36 -2
  97. package/dist/web/server/assets/{login-JoIjlcmu.js → login-va4EtvA8.js} +34 -45
  98. package/dist/web/server/assets/manage-Ce6cI4eW.js +240 -0
  99. package/dist/web/server/assets/{mcp-ZARSOxZW.js → mcp-Bm9U6x7N.js} +2 -2
  100. package/dist/web/server/assets/mcp-C96PBxpb.js +376 -0
  101. package/dist/web/server/assets/page-title-CwcbXMhx.js +95 -0
  102. package/dist/web/server/assets/{router-Dh2-IvLL.js → router-8Iq19GOz.js} +366 -203
  103. package/dist/web/server/assets/{routes-C9NawqcV.js → routes-BLo-fWbQ.js} +2681 -1667
  104. package/dist/web/server/assets/{routes-CDskMy5C.js → routes-BXvYYFrN.js} +2 -2
  105. package/dist/web/server/assets/routes-Kwam6JmS.js +89 -0
  106. package/dist/web/server/assets/{skills-StN15QhC.js → skills-BqCnA-74.js} +2 -2
  107. package/dist/web/server/assets/skills-DSezIdDc.js +157 -0
  108. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  109. package/dist/web/server/assets/{style-GYDODk2F.js → style-C2hIPY_Y.js} +2 -2
  110. package/dist/web/server/assets/{system-Dl-1RhoP.js → system-CcLCmkIC.js} +2 -2
  111. package/dist/web/server/assets/{system-DtswhLW6.js → system-D3th6n2E.js} +4 -2
  112. package/dist/web/server/assets/system-E0VePdzO.js +145 -0
  113. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  114. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  115. package/dist/web/server/assets/teams-CQVV18D3.js +216 -0
  116. package/dist/web/server/assets/teams-CdCmBJIj.js +174 -0
  117. package/dist/web/server/assets/{teams-5PMGvHuM.js → teams-DScFp8mK.js} +2 -2
  118. package/dist/web/server/assets/{teams-CbIPKf99.js → teams-DxA-vnzY.js} +4 -2
  119. package/dist/web/server/assets/telegram-DJ8s_91Y.js +1057 -0
  120. package/dist/web/server/assets/{telegram-Cv0D4gyz.js → telegram-DR7xijeS.js} +2 -2
  121. package/dist/web/server/assets/{tools-ioJcPzMW.js → tools-CsH9DI-4.js} +2 -2
  122. package/dist/web/server/assets/{tools-OfD22R-C.js → tools-V6kezUpL.js} +55 -218
  123. package/dist/web/server/assets/{use-resource-DVzK0toP.js → use-resource-CjcJwn7F.js} +1 -1
  124. package/dist/web/server/assets/{welcome-jxmpE_Jb.js → welcome-BpmcD-ia.js} +2 -2
  125. package/dist/web/server/assets/{welcome-FFEbrNT1.js → welcome-Ya8TkL4v.js} +10 -10
  126. package/dist/web/server/server.js +19 -19
  127. package/dist/worker.js +17 -0
  128. package/dist/worker.js.map +1 -1
  129. package/package.json +1 -1
  130. package/dist/web/client/assets/AddProviderDialog-BiGLKnu2.js +0 -1
  131. package/dist/web/client/assets/ConfigPage-DvBzy2MN.js +0 -1
  132. package/dist/web/client/assets/ConfirmDialog-CiZ5tk9R.js +0 -1
  133. package/dist/web/client/assets/ConnectionsView-Czkpm2JY.js +0 -1
  134. package/dist/web/client/assets/Dialog-s_kPtI-W.js +0 -1
  135. package/dist/web/client/assets/ModelMenu-BfUPoRjV.js +0 -1
  136. package/dist/web/client/assets/SectionTabs-DENNb6Nw.js +0 -1
  137. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  138. package/dist/web/client/assets/SkillFindings-Xng11qqx.js +0 -1
  139. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  140. package/dist/web/client/assets/SpawnDialog-CKWFQ6jk.js +0 -1
  141. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  142. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  143. package/dist/web/client/assets/TeamThread-2rm1JGSk.js +0 -1
  144. package/dist/web/client/assets/UnsavedChangesGuard-nx6dv2Yw.js +0 -1
  145. package/dist/web/client/assets/_id-B72mIpcE.js +0 -1
  146. package/dist/web/client/assets/_id-Bzavnza1.js +0 -1
  147. package/dist/web/client/assets/access-Yw9jODuk.js +0 -1
  148. package/dist/web/client/assets/agents-C9xoyL7o.js +0 -1
  149. package/dist/web/client/assets/agents-TviG16wx.js +0 -1
  150. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  151. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  152. package/dist/web/client/assets/attention-DmURtlJm.js +0 -1
  153. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  154. package/dist/web/client/assets/chevron-right-CUZiA2aG.js +0 -1
  155. package/dist/web/client/assets/config-UZz_mjO5.js +0 -1
  156. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  157. package/dist/web/client/assets/dist-BWppw70N.js +0 -41
  158. package/dist/web/client/assets/dist-D2dwY7MR.js +0 -1
  159. package/dist/web/client/assets/entities-xVoB-p2j.js +0 -1
  160. package/dist/web/client/assets/index-Df1oUtAP.js +0 -14
  161. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  162. package/dist/web/client/assets/login-CPfdaqsV.js +0 -1
  163. package/dist/web/client/assets/mcp-FlYnNon0.js +0 -1
  164. package/dist/web/client/assets/model-facts-DoB6QD5y.js +0 -1
  165. package/dist/web/client/assets/parts-tIDBNsYA.js +0 -1
  166. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  167. package/dist/web/client/assets/routes-BZaWCoQj.js +0 -76
  168. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  169. package/dist/web/client/assets/skills-C7yDPC8s.js +0 -1
  170. package/dist/web/client/assets/style-DDuTFJUu.js +0 -7
  171. package/dist/web/client/assets/styles-BviXU81u.css +0 -2
  172. package/dist/web/client/assets/system-CL3Kz36L.js +0 -1
  173. package/dist/web/client/assets/teams-CQTEF5gV.js +0 -1
  174. package/dist/web/client/assets/teams-DQ7SqVyF.js +0 -1
  175. package/dist/web/client/assets/telegram-BLgxtGhZ.js +0 -1
  176. package/dist/web/client/assets/tools-pOQyGVYo.js +0 -1
  177. package/dist/web/client/assets/use-resource-C3MBZJop.js +0 -1
  178. package/dist/web/client/assets/welcome-Hr6JpMef.js +0 -1
  179. package/dist/web/client/assets/wrench-6BEIqKDn.js +0 -1
  180. package/dist/web/server/assets/Dialog-aup_yJv5.js +0 -85
  181. package/dist/web/server/assets/ModelMenu-DUY9aHkE.js +0 -138
  182. package/dist/web/server/assets/SkillFindings-BdATze1A.js +0 -46
  183. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  184. package/dist/web/server/assets/SpawnDialog-D_SMPCG_.js +0 -132
  185. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  186. package/dist/web/server/assets/TeamForm-ilBaeLI4.js +0 -96
  187. package/dist/web/server/assets/_id-BsZcsabI.js +0 -383
  188. package/dist/web/server/assets/_id-D8Kj0F30.js +0 -18
  189. package/dist/web/server/assets/_id-QYifTM9w.js +0 -28
  190. package/dist/web/server/assets/_tanstack-start-manifest_v-D6zrzUC7.js +0 -223
  191. package/dist/web/server/assets/access-DKOpcHIJ.js +0 -232
  192. package/dist/web/server/assets/agents-B6OR3x99.js +0 -327
  193. package/dist/web/server/assets/agents-B7642eRO.js +0 -130
  194. package/dist/web/server/assets/agents-BJ-_oC2e.js +0 -14
  195. package/dist/web/server/assets/agents-CjV0w-Zy.js +0 -12
  196. package/dist/web/server/assets/agents-Dy_Q-9lG.js +0 -27
  197. package/dist/web/server/assets/attention-CLP4HYBz.js +0 -216
  198. package/dist/web/server/assets/createSsrRpc-GCCF14VW.js +0 -169
  199. package/dist/web/server/assets/entities-Dn2xzKIw.js +0 -16
  200. package/dist/web/server/assets/mcp-BI-FD-JI.js +0 -250
  201. package/dist/web/server/assets/model-facts-mrfrWQne.js +0 -136
  202. package/dist/web/server/assets/parts-B31PJkhi.js +0 -190
  203. package/dist/web/server/assets/routes-BJIJWCIE.js +0 -16
  204. package/dist/web/server/assets/skills-BqLq3ZXq.js +0 -275
  205. package/dist/web/server/assets/system-BtRA2HUs.js +0 -138
  206. package/dist/web/server/assets/teams-COaU0wN9.js +0 -108
  207. package/dist/web/server/assets/teams-Ca8W4mvl.js +0 -88
  208. package/dist/web/server/assets/telegram-Yx8nm6Ei.js +0 -984
  209. package/dist/web/server/assets/utils-C_uf36nf.js +0 -8
  210. package/dist/web/server/assets/workspace-DaitCM0t.js +0 -651
@@ -0,0 +1,232 @@
1
+ import { K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, dt as errorMessage, g as CardBody, i as FilterSelect, k as Notice, lt as api, m as Banner, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-MJWwppgC.js";
2
+ import { t as useHydrated } from "./use-resource-CjcJwn7F.js";
3
+ import { r as ago } from "./ModelMenu-D-hTgYOO.js";
4
+ import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
5
+ import { a as attentionSource, m as severityLabel, o as attentionSummary, t as ATTENTION_KINDS } from "./manage-Ce6cI4eW.js";
6
+ import { i as useAttentionCount } from "./page-title-CwcbXMhx.js";
7
+ import { n as PageHeader, r as PageShell } from "./createSsrRpc-CwTd0zrB.js";
8
+ import { t as Route } from "./attention-Cx9ZWPOO.js";
9
+ import { useEffect, useState } from "react";
10
+ import { Link } from "@tanstack/react-router";
11
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
+ import { BellRing } from "lucide-react";
13
+ //#region src/routes/attention/index.tsx?tsr-split=component
14
+ var LIST_PATH = "/api/attention?state=all&limit=200";
15
+ var SUMMARY_PATH = "/api/attention/summary";
16
+ /** Questions expire in minutes and commands in two: the page keeps itself current. */
17
+ var POLL_MS = 5e3;
18
+ /** What the item's button says: where it takes you and what you do there. */
19
+ function actionLabel(item) {
20
+ switch (item.kind) {
21
+ case "agent_question": return "Answer";
22
+ case "command_approval": return "Decide";
23
+ case "lesson_proposal": return "Review lesson";
24
+ default: return "Open";
25
+ }
26
+ }
27
+ var clock = (at) => new Date(at).toLocaleTimeString([], {
28
+ hour: "2-digit",
29
+ minute: "2-digit"
30
+ });
31
+ function AttentionCenter() {
32
+ const initial = Route.useLoaderData();
33
+ const [list, setList] = useState(initial.list);
34
+ const [summary, setSummary] = useState(initial.summary);
35
+ const [now, setNow] = useState(initial.now);
36
+ const [state, setState] = useState("open");
37
+ const [kind, setKind] = useState("all");
38
+ const [severity, setSeverity] = useState("all");
39
+ const [busy, setBusy] = useState(null);
40
+ const [notice, setNotice] = useState(null);
41
+ const counts = useAttentionCount();
42
+ const hydrated = useHydrated();
43
+ const visible = list.items.filter((item) => (state === "all" || (state === "open" ? item.acknowledgedAt === null : item.acknowledgedAt !== null)) && (kind === "all" || item.kind === kind) && (severity === "all" || item.severity === severity));
44
+ const openCount = list.items.filter((item) => item.acknowledgedAt === null).length;
45
+ const acknowledgeable = list.items.filter((item) => item.acknowledgeable && item.acknowledgedAt === null).length;
46
+ const degraded = [...new Set([...list.degraded, ...summary.degraded].map((entry) => entry.kind))];
47
+ const line = attentionSummary(summary);
48
+ async function refresh() {
49
+ const [nextList, nextSummary] = await Promise.all([api(LIST_PATH), api(SUMMARY_PATH)]);
50
+ setList(nextList);
51
+ setSummary(nextSummary);
52
+ setNow(Date.now());
53
+ }
54
+ useEffect(() => {
55
+ if (busy !== null) return;
56
+ const timer = setInterval(() => {
57
+ if (document.visibilityState === "visible") refresh().catch(() => {});
58
+ }, POLL_MS);
59
+ return () => clearInterval(timer);
60
+ }, [busy]);
61
+ async function run(key, request) {
62
+ setBusy(key);
63
+ setNotice(null);
64
+ try {
65
+ const text = await request();
66
+ if (text) setNotice({
67
+ text,
68
+ failed: false
69
+ });
70
+ } catch (cause) {
71
+ setNotice({
72
+ text: errorMessage(cause),
73
+ failed: true
74
+ });
75
+ } finally {
76
+ await refresh().catch(() => {});
77
+ counts.refresh();
78
+ setBusy(null);
79
+ }
80
+ }
81
+ const acknowledge = (item, value) => run(item.key, async () => {
82
+ const path = `/api/attention/${encodeURIComponent(item.key)}`;
83
+ await api(value ? `${path}/acknowledge` : `${path}/acknowledgement`, { method: value ? "POST" : "DELETE" });
84
+ return null;
85
+ });
86
+ const acknowledgeAll = () => run("all", async () => {
87
+ const { acknowledged } = await api("/api/attention/acknowledge-all", { method: "POST" });
88
+ return `Acknowledged ${acknowledged === 1 ? "1 item" : `${acknowledged} items`}. Lesson proposals and paused queues stay open until they are dealt with.`;
89
+ });
90
+ return /* @__PURE__ */ jsxs(PageShell, { children: [
91
+ /* @__PURE__ */ jsx(PageHeader, {
92
+ title: "Attention",
93
+ description: "Decisions waiting for you and failures worth a look, from every Agent. Act on an item where it comes from; acknowledge the ones that only inform."
94
+ }),
95
+ /* @__PURE__ */ jsx(Banner, {
96
+ tone: line.tone,
97
+ lead: line.lead,
98
+ children: line.rest
99
+ }),
100
+ degraded.length > 0 && /* @__PURE__ */ jsxs(Banner, {
101
+ tone: "warning",
102
+ role: "alert",
103
+ lead: "Some items could not be loaded.",
104
+ children: [degraded.map((entry) => ATTENTION_KINDS[entry]).join(", "), " are missing from the list."]
105
+ }),
106
+ /* @__PURE__ */ jsxs(SetupCard, {
107
+ labelledBy: "attention-items",
108
+ icon: /* @__PURE__ */ jsx(BellRing, { className: "size-5" }),
109
+ title: "Items",
110
+ description: "Open items need you; history keeps the ones you acknowledged.",
111
+ action: acknowledgeable > 0 && /* @__PURE__ */ jsxs(Button, {
112
+ variant: "ghost",
113
+ disabled: busy !== null,
114
+ onClick: () => void acknowledgeAll(),
115
+ children: ["Acknowledge ", acknowledgeable === 1 ? "the informational one" : "informational ones"]
116
+ }),
117
+ children: [
118
+ /* @__PURE__ */ jsxs(CardToolbar, { children: [
119
+ /* @__PURE__ */ jsx(Segmented, {
120
+ label: "Which items",
121
+ value: state,
122
+ onChange: setState,
123
+ options: [
124
+ {
125
+ id: "open",
126
+ label: `Open ${openCount}`
127
+ },
128
+ {
129
+ id: "acknowledged",
130
+ label: "History"
131
+ },
132
+ {
133
+ id: "all",
134
+ label: "All"
135
+ }
136
+ ]
137
+ }),
138
+ /* @__PURE__ */ jsx(FilterSelect, {
139
+ label: "Kind",
140
+ value: kind,
141
+ onChange: setKind,
142
+ options: [{
143
+ value: "all",
144
+ label: "All kinds"
145
+ }, ...Object.entries(ATTENTION_KINDS).map(([value, label]) => ({
146
+ value,
147
+ label
148
+ }))]
149
+ }),
150
+ /* @__PURE__ */ jsx(FilterSelect, {
151
+ label: "Severity",
152
+ value: severity,
153
+ onChange: setSeverity,
154
+ options: [
155
+ {
156
+ value: "all",
157
+ label: "Any severity"
158
+ },
159
+ {
160
+ value: "action_required",
161
+ label: "Waiting for you"
162
+ },
163
+ {
164
+ value: "error",
165
+ label: "Errors"
166
+ },
167
+ {
168
+ value: "warning",
169
+ label: "Warnings"
170
+ }
171
+ ]
172
+ })
173
+ ] }),
174
+ notice && /* @__PURE__ */ jsx(CardBody, {
175
+ className: "py-3",
176
+ children: /* @__PURE__ */ jsx(Notice, {
177
+ tone: notice.failed ? "warning" : "success",
178
+ role: notice.failed ? "alert" : "status",
179
+ children: notice.text
180
+ })
181
+ }),
182
+ visible.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
183
+ icon: /* @__PURE__ */ jsx(BellRing, { className: "size-5" }),
184
+ title: state === "open" && kind === "all" && severity === "all" ? "Nothing needs you" : "No item matches",
185
+ children: "Items come from Agents' questions and commands to approve, learning reviews, schedules, follow-up queues and message loops."
186
+ }) : /* @__PURE__ */ jsx(CardList, { children: visible.map((item) => {
187
+ const label = severityLabel(item.severity);
188
+ const acknowledged = item.acknowledgedAt !== null;
189
+ return /* @__PURE__ */ jsx(ListRow, {
190
+ title: item.title,
191
+ chip: acknowledged ? /* @__PURE__ */ jsx(Chip, {
192
+ tone: "neutral",
193
+ children: "Acknowledged"
194
+ }) : /* @__PURE__ */ jsx(Chip, {
195
+ tone: label.tone,
196
+ children: label.label
197
+ }),
198
+ meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
199
+ /* @__PURE__ */ jsx("span", { children: ATTENTION_KINDS[item.kind] }),
200
+ /* @__PURE__ */ jsx("span", { children: attentionSource(item) }),
201
+ item.expiresAt !== void 0 && hydrated && /* @__PURE__ */ jsxs("span", {
202
+ className: "text-warning",
203
+ children: ["Waits until ", clock(item.expiresAt)]
204
+ }),
205
+ /* @__PURE__ */ jsx("time", {
206
+ dateTime: new Date(item.occurredAt).toISOString(),
207
+ title: new Date(item.occurredAt).toISOString().slice(0, 16).replace("T", " "),
208
+ children: ago(item.occurredAt, now)
209
+ })
210
+ ] }),
211
+ actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Link, {
212
+ to: item.href,
213
+ className: "ghost-btn no-underline",
214
+ children: actionLabel(item)
215
+ }), item.acknowledgeable && /* @__PURE__ */ jsx(Button, {
216
+ variant: "ghost",
217
+ disabled: busy !== null,
218
+ onClick: () => void acknowledge(item, !acknowledged),
219
+ children: acknowledged ? "Back to open" : "Acknowledge"
220
+ })] }),
221
+ children: /* @__PURE__ */ jsx("p", {
222
+ className: "m-0 text-sm text-muted-foreground",
223
+ children: item.diagnostic
224
+ })
225
+ }, item.key);
226
+ }) })
227
+ ]
228
+ })
229
+ ] });
230
+ }
231
+ //#endregion
232
+ export { AttentionCenter as component };
@@ -4,6 +4,8 @@ import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
4
  //#region src/routes/attention/index.tsx?tss-serverfn-split
5
5
  var LIST_PATH = "/api/attention?state=all&limit=200";
6
6
  var SUMMARY_PATH = "/api/attention/summary";
7
+ /** Questions expire in minutes and commands in two: the page keeps itself current. */
8
+ /** What the item's button says: where it takes you and what you do there. */
7
9
  var loadAttention_createServerFn_handler = createServerRpc({
8
10
  id: "883b401299422096ee31ee824f9a24b49d06bdcedce398789778c4c549a92f3a",
9
11
  name: "loadAttention",
@@ -14,7 +16,8 @@ var loadAttention = createServerFn({ method: "GET" }).handler(loadAttention_crea
14
16
  const [list, summary] = await Promise.all([client.get(LIST_PATH), client.get(SUMMARY_PATH)]);
15
17
  return {
16
18
  list,
17
- summary
19
+ summary,
20
+ now: Date.now()
18
21
  };
19
22
  });
20
23
  //#endregion
@@ -1,8 +1,10 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-GCCF14VW.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/attention/index.tsx
5
- var $$splitComponentImporter = () => import("./attention-CLP4HYBz.js");
5
+ var $$splitComponentImporter = () => import("./attention-CRvxt22X.js");
6
+ /** Questions expire in minutes and commands in two: the page keeps itself current. */
7
+ /** What the item's button says: where it takes you and what you do there. */
6
8
  var loadAttention = createServerFn({ method: "GET" }).handler(createSsrRpc("883b401299422096ee31ee824f9a24b49d06bdcedce398789778c4c549a92f3a"));
7
9
  var Route = createFileRoute("/attention/")({
8
10
  loader: () => loadAttention(),
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-GCCF14VW.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/index.tsx
5
- var $$splitComponentImporter = () => import("./config-Q7livfa3.js");
5
+ var $$splitComponentImporter = () => import("./config-D117117T.js");
6
6
  var fetchModelsPage = createServerFn({ method: "GET" }).handler(createSsrRpc("71b6b12251ac92cf4ee888c1d2b6eba3beaac079f9c39eaed95fafcd15908731"));
7
7
  var Route = createFileRoute("/config/")({
8
8
  validateSearch: (search) => ({
@@ -1,17 +1,15 @@
1
- import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
- import { r as useResource } from "./use-resource-DVzK0toP.js";
3
- import { t as Dialog } from "./Dialog-aup_yJv5.js";
4
- import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
1
+ import { K as Button, M as SetupCard, N as Switch, P as Waiting, W as Dialog, dt as errorMessage, h as CARD_ROW, j as SearchField, lt as api, m as Banner, w as Chip } from "./SpawnDialog-MJWwppgC.js";
2
+ import { r as useResource } from "./use-resource-CjcJwn7F.js";
3
+ import { a as credentialLine, c as matchesModel, d as providerStatus, f as usedByLine, l as modelName, o as factsLine, r as ago, u as priceLine } from "./ModelMenu-D-hTgYOO.js";
4
+ import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
5
5
  import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
6
- import { d as providerStatus, f as usedByLine, i as factsLine, l as modelName, o as matchesModel, r as credentialLine, t as ago, u as priceLine } from "./model-facts-mrfrWQne.js";
7
- import { t as Route } from "./config-DjTGA4iZ.js";
8
- import { t as ConfigPage } from "./ConfigPage-DqDUujmt.js";
9
- import { a as SearchField, c as Switch, i as ProviderAvatar, l as Waiting, n as FailureBox, o as SetupCard, r as ModelRow, s as StateChip, t as Chip } from "./parts-B31PJkhi.js";
10
- import { t as AddProviderDialog } from "./AddProviderDialog-Tn4AskPm.js";
6
+ import { t as Route } from "./config-B5CS8juO.js";
7
+ import { t as ConfigPage } from "./ConfigPage-CxzL-gTm.js";
8
+ import { c as ProviderAvatar, l as StateChip, o as FailureBox, s as ModelRow, t as AddProviderDialog } from "./AddProviderDialog-Nc5mc_P6.js";
11
9
  import { useId, useMemo, useState } from "react";
12
10
  import { useRouter } from "@tanstack/react-router";
13
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
- import { AlertTriangle, Check, ChevronRight, Images, MessageSquare, Plug, Plus, X } from "lucide-react";
12
+ import { Check, ChevronRight, Images, MessageSquare, Plug, Plus, X } from "lucide-react";
15
13
  //#region src/components/setup/ModelPicker.tsx
16
14
  var FILTERS = [
17
15
  {
@@ -139,7 +137,7 @@ function ModelPicker({ providers, chat, onClose, onSaved, onAddProvider }) {
139
137
  className: "flex flex-wrap items-baseline gap-x-2 border-b border-border bg-muted/50 px-4 py-2",
140
138
  children: [
141
139
  /* @__PURE__ */ jsx("h3", {
142
- className: "m-0 font-body text-[0.72rem] font-bold uppercase tracking-[0.08em] text-muted-foreground",
140
+ className: "m-0 font-body text-xs font-bold uppercase tracking-[0.08em] text-muted-foreground",
143
141
  children: provider.displayName
144
142
  }),
145
143
  /* @__PURE__ */ jsxs("span", {
@@ -237,7 +235,6 @@ function ModelPicker({ providers, chat, onClose, onSaved, onAddProvider }) {
237
235
  }
238
236
  //#endregion
239
237
  //#region src/components/setup/ModelsCards.tsx
240
- var ROW = "flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5";
241
238
  /** The line above the cards: whether everything Agents rely on answers, and what does not. */
242
239
  function StatusLine({ providers, chat, now, onOpen, onTestAll, testing }) {
243
240
  const on = providers.filter((provider) => provider.enabled);
@@ -249,89 +246,41 @@ function StatusLine({ providers, chat, now, onOpen, onTestAll, testing }) {
249
246
  children: broken.map((provider) => {
250
247
  const models = chat.filter((model) => model.provider === provider.id);
251
248
  const agents = models.reduce((sum, model) => sum + model.usedBy.agents, 0);
252
- return /* @__PURE__ */ jsxs("div", {
253
- role: "status",
254
- className: "flex flex-wrap items-center gap-3 rounded-2xl border border-warning/35 bg-warning/10 px-4 py-3 text-sm",
255
- children: [/* @__PURE__ */ jsxs("div", {
256
- className: "flex min-w-0 flex-1 basis-64 items-start gap-3",
257
- children: [/* @__PURE__ */ jsx(AlertTriangle, {
258
- className: "mt-0.5 size-5 shrink-0 text-warning",
259
- "aria-hidden": "true"
260
- }), /* @__PURE__ */ jsxs("div", {
261
- className: "min-w-0",
262
- children: [
263
- /* @__PURE__ */ jsxs("span", {
264
- className: "font-semibold text-foreground",
265
- children: [provider.check?.failure?.title ?? `${provider.displayName}: ${providerStatus(provider, now).label.toLowerCase()}`, "."]
266
- }),
267
- " ",
268
- /* @__PURE__ */ jsx("span", {
269
- className: "text-muted-foreground",
270
- children: models.length === 0 ? "No chat model runs on it." : `${models.length === 1 ? "1 chat model runs" : `${models.length} chat models run`} on it${agents === 0 ? "" : `, used by ${agents === 1 ? "1 Agent" : `${agents} Agents`}`}.`
271
- })
272
- ]
273
- })]
274
- }), /* @__PURE__ */ jsxs(Button, {
249
+ return /* @__PURE__ */ jsx(Banner, {
250
+ tone: "warning",
251
+ lead: /* @__PURE__ */ jsxs(Fragment$1, { children: [provider.check?.failure?.title ?? `${provider.displayName}: ${providerStatus(provider, now).label.toLowerCase()}`, "."] }),
252
+ action: /* @__PURE__ */ jsxs(Button, {
275
253
  variant: "ghost",
276
254
  onClick: () => onOpen(provider.id),
277
255
  children: ["Open ", provider.displayName]
278
- })]
256
+ }),
257
+ children: models.length === 0 ? "No chat model runs on it." : `${models.length === 1 ? "1 chat model runs" : `${models.length} chat models run`} on it${agents === 0 ? "" : `, used by ${agents === 1 ? "1 Agent" : `${agents} Agents`}`}.`
279
258
  }, provider.id);
280
259
  })
281
260
  });
282
- if (untested.length > 0) return /* @__PURE__ */ jsxs("div", {
283
- role: "status",
284
- className: "flex flex-wrap items-center gap-3 rounded-2xl border border-border bg-card px-4 py-3 text-sm shadow-baziu-sm",
285
- children: [/* @__PURE__ */ jsxs("div", {
286
- className: "min-w-0 flex-1 basis-72",
287
- children: [
288
- /* @__PURE__ */ jsx("span", {
289
- className: "font-semibold text-foreground",
290
- children: untested.length === 1 ? `${untested[0]?.displayName} has not been tested.` : `${untested.length} providers have not been tested.`
291
- }),
292
- " ",
293
- /* @__PURE__ */ jsx("span", {
294
- className: "text-muted-foreground",
295
- children: "A test sends one short message to the cheapest model of each."
296
- })
297
- ]
298
- }), /* @__PURE__ */ jsx(Button, {
261
+ if (untested.length > 0) return /* @__PURE__ */ jsx(Banner, {
262
+ tone: "neutral",
263
+ lead: untested.length === 1 ? `${untested[0]?.displayName} has not been tested.` : `${untested.length} providers have not been tested.`,
264
+ action: /* @__PURE__ */ jsx(Button, {
299
265
  variant: "ghost",
300
266
  disabled: testing,
301
267
  onClick: onTestAll,
302
268
  children: testing ? "Testing…" : untested.length === 1 ? "Test it" : "Test them"
303
- })]
269
+ }),
270
+ children: "A test sends one short message to the cheapest model of each."
304
271
  });
305
272
  const working = on.filter((provider) => provider.state === "working");
306
273
  if (working.length === 0) return null;
307
- return /* @__PURE__ */ jsxs("div", {
308
- role: "status",
309
- className: "flex flex-wrap items-center gap-3 rounded-2xl border border-success/30 bg-success/10 px-4 py-3 text-sm",
310
- children: [/* @__PURE__ */ jsxs("div", {
311
- className: "flex min-w-0 flex-1 basis-64 items-start gap-3",
312
- children: [/* @__PURE__ */ jsx(Check, {
313
- className: "mt-0.5 size-5 shrink-0 text-success",
314
- "aria-hidden": "true"
315
- }), /* @__PURE__ */ jsxs("div", {
316
- className: "min-w-0",
317
- children: [
318
- /* @__PURE__ */ jsx("span", {
319
- className: "font-semibold text-foreground",
320
- children: working.length === 1 ? "Your provider answers." : "Every provider answers."
321
- }),
322
- " ",
323
- /* @__PURE__ */ jsxs("span", {
324
- className: "text-muted-foreground",
325
- children: [chat.length === 1 ? "1 chat model" : `${chat.length} chat models`, " for your Agents."]
326
- })
327
- ]
328
- })]
329
- }), /* @__PURE__ */ jsx(Button, {
274
+ return /* @__PURE__ */ jsxs(Banner, {
275
+ tone: "success",
276
+ lead: working.length === 1 ? "Your provider answers." : "Every provider answers.",
277
+ action: /* @__PURE__ */ jsx(Button, {
330
278
  variant: "ghost",
331
279
  disabled: testing,
332
280
  onClick: onTestAll,
333
281
  children: testing ? "Testing…" : "Test again"
334
- })]
282
+ }),
283
+ children: [chat.length === 1 ? "1 chat model" : `${chat.length} chat models`, " for your Agents."]
335
284
  });
336
285
  }
337
286
  /** Chat: the models Agents think with, each with what it can do, its price and who uses it. */
@@ -368,7 +317,7 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
368
317
  children: [
369
318
  chat.length > 0 && /* @__PURE__ */ jsxs("div", {
370
319
  "aria-hidden": "true",
371
- className: `${ROW} hidden bg-muted/50 py-2 text-[0.7rem] font-bold uppercase tracking-[0.08em] text-muted-foreground lg:flex`,
320
+ className: `flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5 hidden bg-muted/50 py-2 text-xs font-bold uppercase tracking-[0.08em] text-muted-foreground lg:flex`,
372
321
  children: [
373
322
  /* @__PURE__ */ jsx("span", {
374
323
  className: "min-w-0 flex-[2.2] basis-52",
@@ -396,15 +345,15 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
396
345
  chat.map((model) => {
397
346
  const down = model.providerState === "failing" || model.providerState === "incomplete";
398
347
  return /* @__PURE__ */ jsxs("div", {
399
- className: `${ROW} min-h-16 py-2.5`,
348
+ className: `${CARD_ROW} min-h-16 py-2.5`,
400
349
  children: [
401
350
  /* @__PURE__ */ jsxs("div", {
402
351
  className: "min-w-0 flex-[2.2] basis-52",
403
352
  children: [/* @__PURE__ */ jsx("div", {
404
- className: "text-[0.95rem] font-semibold text-foreground",
353
+ className: "text-base font-semibold text-foreground",
405
354
  children: modelName(model)
406
355
  }), model.name && /* @__PURE__ */ jsx("div", {
407
- className: "break-all font-mono text-[0.72rem] text-muted-foreground",
356
+ className: "break-all font-mono text-xs text-muted-foreground",
408
357
  children: model.id
409
358
  })]
410
359
  }),
@@ -413,15 +362,15 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
413
362
  children: model.providerName
414
363
  }),
415
364
  /* @__PURE__ */ jsx("div", {
416
- className: `min-w-0 flex-[2] basis-48 text-[0.82rem] ${down ? "font-semibold text-warning" : "text-muted-foreground"}`,
365
+ className: `min-w-0 flex-[2] basis-48 text-sm ${down ? "font-semibold text-warning" : "text-muted-foreground"}`,
417
366
  children: down ? `${model.providerName} is not working` : factsLine(model, model.providerConnect)
418
367
  }),
419
368
  /* @__PURE__ */ jsx("div", {
420
- className: "w-40 shrink-0 text-[0.82rem]",
369
+ className: "w-40 shrink-0 text-sm",
421
370
  children: priceLine(model, model.providerConnect)
422
371
  }),
423
372
  /* @__PURE__ */ jsx("div", {
424
- className: "min-w-0 flex-[1.4] basis-36 text-[0.82rem] text-muted-foreground",
373
+ className: "min-w-0 flex-[1.4] basis-36 text-sm text-muted-foreground",
425
374
  children: usedByLine(model.usedBy)
426
375
  }),
427
376
  /* @__PURE__ */ jsx("button", {
@@ -438,12 +387,12 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
438
387
  }, model.value);
439
388
  }),
440
389
  chat.length === 0 && /* @__PURE__ */ jsx("div", {
441
- className: `${ROW} py-5 text-sm text-muted-foreground`,
390
+ className: `flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5 py-5 text-sm text-muted-foreground`,
442
391
  children: hasProviders ? "No chat model yet. Agents cannot answer until one is added." : "No chat model yet. Add a provider below, and its models appear here."
443
392
  }),
444
393
  error && /* @__PURE__ */ jsx("div", {
445
394
  role: "alert",
446
- className: `${ROW} py-3 text-sm text-danger`,
395
+ className: `flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5 py-3 text-sm text-danger`,
447
396
  children: error
448
397
  }),
449
398
  /* @__PURE__ */ jsx(ConfirmDialog, {
@@ -494,7 +443,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
494
443
  }
495
444
  }
496
445
  const row = (id, body, ready, tail) => /* @__PURE__ */ jsxs("label", {
497
- className: `${ROW} m-0 min-h-[3.25rem] py-2 ${ready ? "cursor-pointer" : ""} ${shown === id ? "bg-accent/40" : ""}`,
446
+ className: `${CARD_ROW} m-0 min-h-[3.25rem] py-2 ${ready ? "cursor-pointer" : ""} ${shown === id ? "bg-accent/40" : ""}`,
498
447
  children: [
499
448
  /* @__PURE__ */ jsx("input", {
500
449
  type: "radio",
@@ -522,7 +471,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
522
471
  }),
523
472
  children: [
524
473
  images.routes.map((route) => row(route.id, /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
525
- className: "min-w-0 flex-[1.6] basis-60 text-[0.95rem]",
474
+ className: "min-w-0 flex-[1.6] basis-60 text-base",
526
475
  children: [
527
476
  /* @__PURE__ */ jsx("span", {
528
477
  className: `font-semibold ${route.ready ? "text-foreground" : "text-muted-foreground"}`,
@@ -535,10 +484,10 @@ function ImagesCard({ images, onConnect, onChanged }) {
535
484
  })
536
485
  ]
537
486
  }), /* @__PURE__ */ jsx("span", {
538
- className: "min-w-0 flex-1 basis-44 text-[0.82rem] text-muted-foreground",
487
+ className: "min-w-0 flex-1 basis-44 text-sm text-muted-foreground",
539
488
  children: route.billing
540
489
  })] }), route.ready, route.ready ? /* @__PURE__ */ jsx("span", {
541
- className: "text-[0.82rem] font-semibold text-success",
490
+ className: "text-sm font-semibold text-success",
542
491
  children: "Ready"
543
492
  }) : /* @__PURE__ */ jsx(Button, {
544
493
  variant: "ghost",
@@ -546,15 +495,15 @@ function ImagesCard({ images, onConnect, onChanged }) {
546
495
  children: route.provider === "openai-codex" ? "Sign in" : `Connect ${route.providerName}`
547
496
  }))),
548
497
  row("off", /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
549
- className: "min-w-0 flex-[1.6] basis-60 text-[0.95rem] font-semibold text-foreground",
498
+ className: "min-w-0 flex-[1.6] basis-60 text-base font-semibold text-foreground",
550
499
  children: "Off"
551
500
  }), /* @__PURE__ */ jsx("span", {
552
- className: "min-w-0 flex-1 basis-44 text-[0.82rem] text-muted-foreground",
501
+ className: "min-w-0 flex-1 basis-44 text-sm text-muted-foreground",
553
502
  children: "Agents have no image tool"
554
503
  })] }), true, null),
555
504
  images.selected !== "off" && !selected && /* @__PURE__ */ jsxs("div", {
556
505
  role: "alert",
557
- className: `${ROW} py-3 text-sm text-warning`,
506
+ className: `flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5 py-3 text-sm text-warning`,
558
507
  children: [
559
508
  "BAZILION_IMAGE_MODEL is set to “",
560
509
  images.selected,
@@ -563,7 +512,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
563
512
  }),
564
513
  error && /* @__PURE__ */ jsx("div", {
565
514
  role: "alert",
566
- className: `${ROW} py-3 text-sm text-danger`,
515
+ className: `flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5 py-3 text-sm text-danger`,
567
516
  children: error
568
517
  })
569
518
  ]
@@ -593,7 +542,7 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
593
542
  return /* @__PURE__ */ jsxs("button", {
594
543
  type: "button",
595
544
  onClick: () => onOpen(provider.id),
596
- className: `${ROW} min-h-[4.25rem] w-full py-3 text-left transition-colors hover:bg-accent/30`,
545
+ className: `${CARD_ROW} min-h-[4.25rem] w-full py-3 text-left transition-colors hover:bg-accent/30`,
597
546
  children: [
598
547
  /* @__PURE__ */ jsx(ProviderAvatar, {
599
548
  name: provider.displayName,
@@ -602,15 +551,15 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
602
551
  /* @__PURE__ */ jsxs("span", {
603
552
  className: "min-w-0 flex-[1.6] basis-56",
604
553
  children: [/* @__PURE__ */ jsx("span", {
605
- className: "block text-[0.95rem] font-semibold text-foreground",
554
+ className: "block text-base font-semibold text-foreground",
606
555
  children: provider.displayName
607
556
  }), /* @__PURE__ */ jsx("span", {
608
- className: "block truncate text-[0.82rem] text-muted-foreground",
557
+ className: "block truncate text-sm text-muted-foreground",
609
558
  children: credentialLine(provider)
610
559
  })]
611
560
  }),
612
561
  /* @__PURE__ */ jsx("span", {
613
- className: "min-w-0 flex-1 basis-40 text-[0.82rem] text-muted-foreground",
562
+ className: "min-w-0 flex-1 basis-40 text-sm text-muted-foreground",
614
563
  children: uses.length > 0 ? uses.join(" · ") : "Not used yet"
615
564
  }),
616
565
  /* @__PURE__ */ jsx(StateChip, {
@@ -625,11 +574,11 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
625
574
  }, provider.id);
626
575
  }),
627
576
  providers.length === 0 && /* @__PURE__ */ jsx("div", {
628
- className: `${ROW} py-5 text-sm text-muted-foreground`,
577
+ className: `flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5 py-5 text-sm text-muted-foreground`,
629
578
  children: "No provider yet. Add one to give your Agents a model."
630
579
  }),
631
580
  /* @__PURE__ */ jsxs("div", {
632
- className: `${ROW} bg-muted/50 py-3 text-[0.82rem] text-muted-foreground`,
581
+ className: `${CARD_ROW} bg-muted/50 py-3 text-sm text-muted-foreground`,
633
582
  children: [total - providers.length, " more can be added: a ChatGPT plan, API keys from OpenAI, Anthropic, Google and many others, or a model server on this computer."]
634
583
  })
635
584
  ]
@@ -784,7 +733,7 @@ function FieldRow({ field }) {
784
733
  }
785
734
  //#endregion
786
735
  //#region src/components/setup/ProviderSheet.tsx
787
- var HEADING = "m-0 font-body text-[0.72rem] font-bold uppercase tracking-[0.08em] text-muted-foreground";
736
+ var HEADING = "m-0 font-body text-xs font-bold uppercase tracking-[0.08em] text-muted-foreground";
788
737
  /**
789
738
  * One provider: whether it answers, its credentials, its models in Chat, and the rarer settings.
790
739
  * Every change here reloads the page behind it.