bazilion 0.52.0 → 0.53.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 (191) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
  4. package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
  5. package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
  6. package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
  7. package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
  8. package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
  9. package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
  10. package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
  11. package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
  12. package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
  13. package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
  14. package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
  15. package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
  16. package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
  17. package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
  18. package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
  19. package/dist/web/client/assets/access-34_ShgHU.js +1 -0
  20. package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
  21. package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
  22. package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
  23. package/dist/web/client/assets/api-CoLs57oO.js +1 -0
  24. package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
  25. package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
  26. package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
  27. package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
  28. package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
  29. package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
  30. package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
  31. package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
  32. package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
  33. package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
  34. package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
  35. package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
  36. package/dist/web/client/assets/login-076Bc601.js +1 -0
  37. package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
  38. package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
  39. package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
  40. package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
  41. package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
  42. package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
  43. package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
  44. package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
  45. package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
  46. package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
  47. package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
  48. package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
  49. package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
  50. package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
  51. package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
  52. package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
  53. package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
  54. package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
  55. package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
  56. package/dist/web/server/assets/{AddProviderDialog-Tn4AskPm.js → AddProviderDialog-Di5crZUB.js} +105 -4
  57. package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
  58. package/dist/web/server/assets/{ConfigPage-DqDUujmt.js → ConfigPage-oXM3wyOU.js} +2 -2
  59. package/dist/web/server/assets/{ConnectionsView-DAG-zNBz.js → ConnectionsView-DZrLoNoW.js} +3 -3
  60. package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
  61. package/dist/web/server/assets/{ModelMenu-DUY9aHkE.js → ModelMenu-BAZeARx6.js} +3 -3
  62. package/dist/web/server/assets/{Rail-BIC_4ptO.js → Rail-7JU6ly2O.js} +14 -104
  63. package/dist/web/server/assets/{SectionTabs-BGsrf-UQ.js → SectionTabs-CWQ5orUW.js} +9 -2
  64. package/dist/web/server/assets/{SpawnDialog-D_SMPCG_.js → SpawnDialog-CYkwzETs.js} +49 -57
  65. package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
  66. package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
  67. package/dist/web/server/assets/{TeamThread-DuLlGDcw.js → TeamThread-SyQpUvz5.js} +1 -1
  68. package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
  69. package/dist/web/server/assets/{_id-DJnYgisy.js → _id-BGTgqsWm.js} +8 -4
  70. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  71. package/dist/web/server/assets/{_id-yN0z7VqE.js → _id-DPGzfmjG.js} +255 -203
  72. package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
  73. package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
  74. package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
  75. package/dist/web/server/assets/{access-GMGed5O8.js → access-BJe-NduL.js} +2 -2
  76. package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
  77. package/dist/web/server/assets/{access-C_pupPks.js → access-WWspT0v4.js} +2 -1
  78. package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
  79. package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
  80. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
  81. package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
  82. package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
  83. package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
  84. package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
  85. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
  86. package/dist/web/server/assets/{attention-DS3O9UmJ.js → attention-DefKwvgm.js} +2 -2
  87. package/dist/web/server/assets/attention-johfkM0_.js +203 -0
  88. package/dist/web/server/assets/{config-Q7livfa3.js → config-Clz57LuN.js} +33 -82
  89. package/dist/web/server/assets/{config-DjTGA4iZ.js → config-DYAaaE9Z.js} +2 -2
  90. package/dist/web/server/assets/{createSsrRpc-GCCF14VW.js → createSsrRpc-BijMHgqE.js} +1 -45
  91. package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
  92. package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
  93. package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
  94. package/dist/web/server/assets/{mcp-ZARSOxZW.js → mcp-DB38leWS.js} +2 -2
  95. package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
  96. package/dist/web/server/assets/{router-Dh2-IvLL.js → router-C97bwlXi.js} +35 -30
  97. package/dist/web/server/assets/{routes-C9NawqcV.js → routes-C4aGqXfr.js} +52 -8
  98. package/dist/web/server/assets/{routes-CDskMy5C.js → routes-DuOShl4q.js} +1 -1
  99. package/dist/web/server/assets/{routes-BJIJWCIE.js → routes-IHMVKpDK.js} +2 -2
  100. package/dist/web/server/assets/{skills-StN15QhC.js → skills-B7sg0QKS.js} +2 -2
  101. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  102. package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
  103. package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
  104. package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
  105. package/dist/web/server/assets/{system-DtswhLW6.js → system-D3th6n2E.js} +4 -2
  106. package/dist/web/server/assets/{system-Dl-1RhoP.js → system-DaP0ol67.js} +2 -2
  107. package/dist/web/server/assets/{teams-CbIPKf99.js → teams-4cEZ4_rw.js} +4 -2
  108. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  109. package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
  110. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  111. package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
  112. package/dist/web/server/assets/{teams-5PMGvHuM.js → teams-CuKE5iAK.js} +2 -2
  113. package/dist/web/server/assets/{telegram-Cv0D4gyz.js → telegram-BnQADwnj.js} +2 -2
  114. package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
  115. package/dist/web/server/assets/{tools-ioJcPzMW.js → tools-BQeWn7Tj.js} +2 -2
  116. package/dist/web/server/assets/{tools-OfD22R-C.js → tools-CURTfG2q.js} +56 -217
  117. package/dist/web/server/assets/{welcome-FFEbrNT1.js → welcome-OiZCAIHZ.js} +3 -4
  118. package/dist/web/server/assets/{welcome-jxmpE_Jb.js → welcome-SNsE49JO.js} +2 -2
  119. package/dist/web/server/server.js +20 -20
  120. package/package.json +1 -1
  121. package/dist/web/client/assets/AddProviderDialog-BiGLKnu2.js +0 -1
  122. package/dist/web/client/assets/ConfigPage-DvBzy2MN.js +0 -1
  123. package/dist/web/client/assets/ConfirmDialog-CiZ5tk9R.js +0 -1
  124. package/dist/web/client/assets/ConnectionsView-Czkpm2JY.js +0 -1
  125. package/dist/web/client/assets/Dialog-s_kPtI-W.js +0 -1
  126. package/dist/web/client/assets/ModelMenu-BfUPoRjV.js +0 -1
  127. package/dist/web/client/assets/SectionTabs-DENNb6Nw.js +0 -1
  128. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  129. package/dist/web/client/assets/SkillFindings-Xng11qqx.js +0 -1
  130. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  131. package/dist/web/client/assets/SpawnDialog-CKWFQ6jk.js +0 -1
  132. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  133. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  134. package/dist/web/client/assets/TeamThread-2rm1JGSk.js +0 -1
  135. package/dist/web/client/assets/UnsavedChangesGuard-nx6dv2Yw.js +0 -1
  136. package/dist/web/client/assets/_id-B72mIpcE.js +0 -1
  137. package/dist/web/client/assets/_id-Bzavnza1.js +0 -1
  138. package/dist/web/client/assets/access-Yw9jODuk.js +0 -1
  139. package/dist/web/client/assets/agents-C9xoyL7o.js +0 -1
  140. package/dist/web/client/assets/agents-TviG16wx.js +0 -1
  141. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  142. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  143. package/dist/web/client/assets/attention-DmURtlJm.js +0 -1
  144. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  145. package/dist/web/client/assets/chevron-right-CUZiA2aG.js +0 -1
  146. package/dist/web/client/assets/config-UZz_mjO5.js +0 -1
  147. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  148. package/dist/web/client/assets/dist-BWppw70N.js +0 -41
  149. package/dist/web/client/assets/dist-D2dwY7MR.js +0 -1
  150. package/dist/web/client/assets/index-Df1oUtAP.js +0 -14
  151. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  152. package/dist/web/client/assets/login-CPfdaqsV.js +0 -1
  153. package/dist/web/client/assets/mcp-FlYnNon0.js +0 -1
  154. package/dist/web/client/assets/parts-tIDBNsYA.js +0 -1
  155. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  156. package/dist/web/client/assets/routes-BZaWCoQj.js +0 -76
  157. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  158. package/dist/web/client/assets/skills-C7yDPC8s.js +0 -1
  159. package/dist/web/client/assets/style-DDuTFJUu.js +0 -7
  160. package/dist/web/client/assets/styles-BviXU81u.css +0 -2
  161. package/dist/web/client/assets/system-CL3Kz36L.js +0 -1
  162. package/dist/web/client/assets/teams-CQTEF5gV.js +0 -1
  163. package/dist/web/client/assets/teams-DQ7SqVyF.js +0 -1
  164. package/dist/web/client/assets/telegram-BLgxtGhZ.js +0 -1
  165. package/dist/web/client/assets/tools-pOQyGVYo.js +0 -1
  166. package/dist/web/client/assets/use-resource-C3MBZJop.js +0 -1
  167. package/dist/web/client/assets/welcome-Hr6JpMef.js +0 -1
  168. package/dist/web/client/assets/wrench-6BEIqKDn.js +0 -1
  169. package/dist/web/server/assets/SkillFindings-BdATze1A.js +0 -46
  170. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  171. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  172. package/dist/web/server/assets/TeamForm-ilBaeLI4.js +0 -96
  173. package/dist/web/server/assets/_id-BsZcsabI.js +0 -383
  174. package/dist/web/server/assets/_id-D8Kj0F30.js +0 -18
  175. package/dist/web/server/assets/_id-QYifTM9w.js +0 -28
  176. package/dist/web/server/assets/_tanstack-start-manifest_v-D6zrzUC7.js +0 -223
  177. package/dist/web/server/assets/access-DKOpcHIJ.js +0 -232
  178. package/dist/web/server/assets/agents-B6OR3x99.js +0 -327
  179. package/dist/web/server/assets/agents-B7642eRO.js +0 -130
  180. package/dist/web/server/assets/agents-BJ-_oC2e.js +0 -14
  181. package/dist/web/server/assets/agents-CjV0w-Zy.js +0 -12
  182. package/dist/web/server/assets/agents-Dy_Q-9lG.js +0 -27
  183. package/dist/web/server/assets/attention-CLP4HYBz.js +0 -216
  184. package/dist/web/server/assets/mcp-BI-FD-JI.js +0 -250
  185. package/dist/web/server/assets/parts-B31PJkhi.js +0 -190
  186. package/dist/web/server/assets/skills-BqLq3ZXq.js +0 -275
  187. package/dist/web/server/assets/system-BtRA2HUs.js +0 -138
  188. package/dist/web/server/assets/teams-COaU0wN9.js +0 -108
  189. package/dist/web/server/assets/teams-Ca8W4mvl.js +0 -88
  190. package/dist/web/server/assets/telegram-Yx8nm6Ei.js +0 -984
  191. /package/dist/web/server/assets/{telegram-CGol0CKX2.js → telegram-CGol0CKX.js} +0 -0
@@ -0,0 +1,203 @@
1
+ import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
+ import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
3
+ import { t as ago } from "./model-facts-mrfrWQne.js";
4
+ import { c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, y as SetupCard } from "./parts-mabERIJZ.js";
5
+ import { r as FilterSelect } from "./form-BRQAsKKq.js";
6
+ import { a as attentionSource, m as severityLabel, o as attentionSummary, t as ATTENTION_KINDS } from "./manage-Ppyi3Y5y.js";
7
+ import { a as PageShell, i as PageHeader } from "./createSsrRpc-BijMHgqE.js";
8
+ import { t as Route } from "./attention-DefKwvgm.js";
9
+ import { 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
+ function AttentionCenter() {
17
+ const initial = Route.useLoaderData();
18
+ const [list, setList] = useState(initial.list);
19
+ const [summary, setSummary] = useState(initial.summary);
20
+ const [now, setNow] = useState(initial.now);
21
+ const [state, setState] = useState("open");
22
+ const [kind, setKind] = useState("all");
23
+ const [severity, setSeverity] = useState("all");
24
+ const [busy, setBusy] = useState(null);
25
+ const [notice, setNotice] = useState(null);
26
+ 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));
27
+ const openCount = list.items.filter((item) => item.acknowledgedAt === null).length;
28
+ const acknowledgeable = list.items.filter((item) => item.acknowledgeable && item.acknowledgedAt === null).length;
29
+ const degraded = [...new Set([...list.degraded, ...summary.degraded].map((entry) => entry.kind))];
30
+ const line = attentionSummary(summary);
31
+ async function refresh() {
32
+ const [nextList, nextSummary] = await Promise.all([api(LIST_PATH), api(SUMMARY_PATH)]);
33
+ setList(nextList);
34
+ setSummary(nextSummary);
35
+ setNow(Date.now());
36
+ }
37
+ async function run(key, request) {
38
+ setBusy(key);
39
+ setNotice(null);
40
+ try {
41
+ const text = await request();
42
+ if (text) setNotice({
43
+ text,
44
+ failed: false
45
+ });
46
+ } catch (cause) {
47
+ setNotice({
48
+ text: errorMessage(cause),
49
+ failed: true
50
+ });
51
+ } finally {
52
+ await refresh().catch(() => {});
53
+ setBusy(null);
54
+ }
55
+ }
56
+ const acknowledge = (item, value) => run(item.key, async () => {
57
+ const path = `/api/attention/${encodeURIComponent(item.key)}`;
58
+ await api(value ? `${path}/acknowledge` : `${path}/acknowledgement`, { method: value ? "POST" : "DELETE" });
59
+ return null;
60
+ });
61
+ const acknowledgeAll = () => run("all", async () => {
62
+ const { acknowledged } = await api("/api/attention/acknowledge-all", { method: "POST" });
63
+ return `Acknowledged ${acknowledged === 1 ? "1 item" : `${acknowledged} items`}. Lesson proposals and paused queues stay open until they are dealt with.`;
64
+ });
65
+ return /* @__PURE__ */ jsxs(PageShell, { children: [
66
+ /* @__PURE__ */ jsx(PageHeader, {
67
+ title: "Attention",
68
+ 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."
69
+ }),
70
+ /* @__PURE__ */ jsx(Banner, {
71
+ tone: line.tone,
72
+ lead: line.lead,
73
+ children: line.rest
74
+ }),
75
+ degraded.length > 0 && /* @__PURE__ */ jsxs(Banner, {
76
+ tone: "warning",
77
+ role: "alert",
78
+ lead: "Some items could not be loaded.",
79
+ children: [degraded.map((entry) => ATTENTION_KINDS[entry]).join(", "), " are missing from the list."]
80
+ }),
81
+ /* @__PURE__ */ jsxs(SetupCard, {
82
+ labelledBy: "attention-items",
83
+ icon: /* @__PURE__ */ jsx(BellRing, { className: "size-5" }),
84
+ title: "Items",
85
+ description: "Open items need you; history keeps the ones you acknowledged.",
86
+ action: acknowledgeable > 0 && /* @__PURE__ */ jsxs(Button, {
87
+ variant: "ghost",
88
+ disabled: busy !== null,
89
+ onClick: () => void acknowledgeAll(),
90
+ children: ["Acknowledge ", acknowledgeable === 1 ? "the informational one" : "informational ones"]
91
+ }),
92
+ children: [
93
+ /* @__PURE__ */ jsxs(CardToolbar, { children: [
94
+ /* @__PURE__ */ jsx(Segmented, {
95
+ label: "Which items",
96
+ value: state,
97
+ onChange: setState,
98
+ options: [
99
+ {
100
+ id: "open",
101
+ label: `Open ${openCount}`
102
+ },
103
+ {
104
+ id: "acknowledged",
105
+ label: "History"
106
+ },
107
+ {
108
+ id: "all",
109
+ label: "All"
110
+ }
111
+ ]
112
+ }),
113
+ /* @__PURE__ */ jsx(FilterSelect, {
114
+ label: "Kind",
115
+ value: kind,
116
+ onChange: setKind,
117
+ options: [{
118
+ value: "all",
119
+ label: "All kinds"
120
+ }, ...Object.entries(ATTENTION_KINDS).map(([value, label]) => ({
121
+ value,
122
+ label
123
+ }))]
124
+ }),
125
+ /* @__PURE__ */ jsx(FilterSelect, {
126
+ label: "Severity",
127
+ value: severity,
128
+ onChange: setSeverity,
129
+ options: [
130
+ {
131
+ value: "all",
132
+ label: "Any severity"
133
+ },
134
+ {
135
+ value: "action_required",
136
+ label: "Needs you"
137
+ },
138
+ {
139
+ value: "error",
140
+ label: "Errors"
141
+ },
142
+ {
143
+ value: "warning",
144
+ label: "Warnings"
145
+ }
146
+ ]
147
+ })
148
+ ] }),
149
+ notice && /* @__PURE__ */ jsx(CardBody, {
150
+ className: "py-3",
151
+ children: /* @__PURE__ */ jsx(Notice, {
152
+ tone: notice.failed ? "warning" : "success",
153
+ role: notice.failed ? "alert" : "status",
154
+ children: notice.text
155
+ })
156
+ }),
157
+ visible.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
158
+ icon: /* @__PURE__ */ jsx(BellRing, { className: "size-5" }),
159
+ title: state === "open" && kind === "all" && severity === "all" ? "Nothing needs you" : "No item matches",
160
+ children: "Items come from learning reviews, schedules, follow-up queues and message loops."
161
+ }) : /* @__PURE__ */ jsx(CardList, { children: visible.map((item) => {
162
+ const label = severityLabel(item.severity);
163
+ const acknowledged = item.acknowledgedAt !== null;
164
+ return /* @__PURE__ */ jsx(ListRow, {
165
+ title: item.title,
166
+ chip: acknowledged ? /* @__PURE__ */ jsx(Chip, {
167
+ tone: "neutral",
168
+ children: "Acknowledged"
169
+ }) : /* @__PURE__ */ jsx(Chip, {
170
+ tone: label.tone,
171
+ children: label.label
172
+ }),
173
+ meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
174
+ /* @__PURE__ */ jsx("span", { children: ATTENTION_KINDS[item.kind] }),
175
+ /* @__PURE__ */ jsx("span", { children: attentionSource(item) }),
176
+ /* @__PURE__ */ jsx("time", {
177
+ dateTime: new Date(item.occurredAt).toISOString(),
178
+ title: new Date(item.occurredAt).toISOString().slice(0, 16).replace("T", " "),
179
+ children: ago(item.occurredAt, now)
180
+ })
181
+ ] }),
182
+ actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Link, {
183
+ to: item.href,
184
+ className: "ghost-btn no-underline",
185
+ children: item.kind === "lesson_proposal" ? "Review lesson" : "Open"
186
+ }), item.acknowledgeable && /* @__PURE__ */ jsx(Button, {
187
+ variant: "ghost",
188
+ disabled: busy !== null,
189
+ onClick: () => void acknowledge(item, !acknowledged),
190
+ children: acknowledged ? "Back to open" : "Acknowledge"
191
+ })] }),
192
+ children: /* @__PURE__ */ jsx("p", {
193
+ className: "m-0 text-sm text-muted-foreground",
194
+ children: item.diagnostic
195
+ })
196
+ }, item.key);
197
+ }) })
198
+ ]
199
+ })
200
+ ] });
201
+ }
202
+ //#endregion
203
+ export { AttentionCenter as component };
@@ -4,14 +4,14 @@ import { t as Dialog } from "./Dialog-aup_yJv5.js";
4
4
  import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
5
5
  import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
6
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";
7
+ import { b as Switch, d as Chip, n as CARD_ROW, t as Banner, v as SearchField, x as Waiting, y as SetupCard } from "./parts-mabERIJZ.js";
8
+ import { t as Route } from "./config-DYAaaE9Z.js";
9
+ import { t as ConfigPage } from "./ConfigPage-oXM3wyOU.js";
10
+ import { c as ProviderAvatar, l as StateChip, o as FailureBox, s as ModelRow, t as AddProviderDialog } from "./AddProviderDialog-Di5crZUB.js";
11
11
  import { useId, useMemo, useState } from "react";
12
12
  import { useRouter } from "@tanstack/react-router";
13
13
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
- import { AlertTriangle, Check, ChevronRight, Images, MessageSquare, Plug, Plus, X } from "lucide-react";
14
+ import { Check, ChevronRight, Images, MessageSquare, Plug, Plus, X } from "lucide-react";
15
15
  //#region src/components/setup/ModelPicker.tsx
16
16
  var FILTERS = [
17
17
  {
@@ -237,7 +237,6 @@ function ModelPicker({ providers, chat, onClose, onSaved, onAddProvider }) {
237
237
  }
238
238
  //#endregion
239
239
  //#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
240
  /** The line above the cards: whether everything Agents rely on answers, and what does not. */
242
241
  function StatusLine({ providers, chat, now, onOpen, onTestAll, testing }) {
243
242
  const on = providers.filter((provider) => provider.enabled);
@@ -249,89 +248,41 @@ function StatusLine({ providers, chat, now, onOpen, onTestAll, testing }) {
249
248
  children: broken.map((provider) => {
250
249
  const models = chat.filter((model) => model.provider === provider.id);
251
250
  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, {
251
+ return /* @__PURE__ */ jsx(Banner, {
252
+ tone: "warning",
253
+ lead: /* @__PURE__ */ jsxs(Fragment$1, { children: [provider.check?.failure?.title ?? `${provider.displayName}: ${providerStatus(provider, now).label.toLowerCase()}`, "."] }),
254
+ action: /* @__PURE__ */ jsxs(Button, {
275
255
  variant: "ghost",
276
256
  onClick: () => onOpen(provider.id),
277
257
  children: ["Open ", provider.displayName]
278
- })]
258
+ }),
259
+ 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
260
  }, provider.id);
280
261
  })
281
262
  });
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, {
263
+ if (untested.length > 0) return /* @__PURE__ */ jsx(Banner, {
264
+ tone: "neutral",
265
+ lead: untested.length === 1 ? `${untested[0]?.displayName} has not been tested.` : `${untested.length} providers have not been tested.`,
266
+ action: /* @__PURE__ */ jsx(Button, {
299
267
  variant: "ghost",
300
268
  disabled: testing,
301
269
  onClick: onTestAll,
302
270
  children: testing ? "Testing…" : untested.length === 1 ? "Test it" : "Test them"
303
- })]
271
+ }),
272
+ children: "A test sends one short message to the cheapest model of each."
304
273
  });
305
274
  const working = on.filter((provider) => provider.state === "working");
306
275
  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, {
276
+ return /* @__PURE__ */ jsxs(Banner, {
277
+ tone: "success",
278
+ lead: working.length === 1 ? "Your provider answers." : "Every provider answers.",
279
+ action: /* @__PURE__ */ jsx(Button, {
330
280
  variant: "ghost",
331
281
  disabled: testing,
332
282
  onClick: onTestAll,
333
283
  children: testing ? "Testing…" : "Test again"
334
- })]
284
+ }),
285
+ children: [chat.length === 1 ? "1 chat model" : `${chat.length} chat models`, " for your Agents."]
335
286
  });
336
287
  }
337
288
  /** Chat: the models Agents think with, each with what it can do, its price and who uses it. */
@@ -368,7 +319,7 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
368
319
  children: [
369
320
  chat.length > 0 && /* @__PURE__ */ jsxs("div", {
370
321
  "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`,
322
+ 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-[0.7rem] font-bold uppercase tracking-[0.08em] text-muted-foreground lg:flex`,
372
323
  children: [
373
324
  /* @__PURE__ */ jsx("span", {
374
325
  className: "min-w-0 flex-[2.2] basis-52",
@@ -396,7 +347,7 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
396
347
  chat.map((model) => {
397
348
  const down = model.providerState === "failing" || model.providerState === "incomplete";
398
349
  return /* @__PURE__ */ jsxs("div", {
399
- className: `${ROW} min-h-16 py-2.5`,
350
+ className: `${CARD_ROW} min-h-16 py-2.5`,
400
351
  children: [
401
352
  /* @__PURE__ */ jsxs("div", {
402
353
  className: "min-w-0 flex-[2.2] basis-52",
@@ -438,12 +389,12 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
438
389
  }, model.value);
439
390
  }),
440
391
  chat.length === 0 && /* @__PURE__ */ jsx("div", {
441
- className: `${ROW} py-5 text-sm text-muted-foreground`,
392
+ 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
393
  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
394
  }),
444
395
  error && /* @__PURE__ */ jsx("div", {
445
396
  role: "alert",
446
- className: `${ROW} py-3 text-sm text-danger`,
397
+ 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
398
  children: error
448
399
  }),
449
400
  /* @__PURE__ */ jsx(ConfirmDialog, {
@@ -494,7 +445,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
494
445
  }
495
446
  }
496
447
  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" : ""}`,
448
+ className: `${CARD_ROW} m-0 min-h-[3.25rem] py-2 ${ready ? "cursor-pointer" : ""} ${shown === id ? "bg-accent/40" : ""}`,
498
449
  children: [
499
450
  /* @__PURE__ */ jsx("input", {
500
451
  type: "radio",
@@ -554,7 +505,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
554
505
  })] }), true, null),
555
506
  images.selected !== "off" && !selected && /* @__PURE__ */ jsxs("div", {
556
507
  role: "alert",
557
- className: `${ROW} py-3 text-sm text-warning`,
508
+ 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
509
  children: [
559
510
  "BAZILION_IMAGE_MODEL is set to “",
560
511
  images.selected,
@@ -563,7 +514,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
563
514
  }),
564
515
  error && /* @__PURE__ */ jsx("div", {
565
516
  role: "alert",
566
- className: `${ROW} py-3 text-sm text-danger`,
517
+ 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
518
  children: error
568
519
  })
569
520
  ]
@@ -593,7 +544,7 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
593
544
  return /* @__PURE__ */ jsxs("button", {
594
545
  type: "button",
595
546
  onClick: () => onOpen(provider.id),
596
- className: `${ROW} min-h-[4.25rem] w-full py-3 text-left transition-colors hover:bg-accent/30`,
547
+ className: `${CARD_ROW} min-h-[4.25rem] w-full py-3 text-left transition-colors hover:bg-accent/30`,
597
548
  children: [
598
549
  /* @__PURE__ */ jsx(ProviderAvatar, {
599
550
  name: provider.displayName,
@@ -625,11 +576,11 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
625
576
  }, provider.id);
626
577
  }),
627
578
  providers.length === 0 && /* @__PURE__ */ jsx("div", {
628
- className: `${ROW} py-5 text-sm text-muted-foreground`,
579
+ 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
580
  children: "No provider yet. Add one to give your Agents a model."
630
581
  }),
631
582
  /* @__PURE__ */ jsxs("div", {
632
- className: `${ROW} bg-muted/50 py-3 text-[0.82rem] text-muted-foreground`,
583
+ className: `${CARD_ROW} bg-muted/50 py-3 text-[0.82rem] text-muted-foreground`,
633
584
  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
585
  })
635
586
  ]
@@ -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-BijMHgqE.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-Clz57LuN.js");
6
6
  var fetchModelsPage = createServerFn({ method: "GET" }).handler(createSsrRpc("71b6b12251ac92cf4ee888c1d2b6eba3beaac079f9c39eaed95fafcd15908731"));
7
7
  var Route = createFileRoute("/config/")({
8
8
  validateSearch: (search) => ({
@@ -65,30 +65,6 @@ function SectionCard({ title, description, actions, children, className, ...prop
65
65
  })]
66
66
  });
67
67
  }
68
- function EmptyState({ title, description, icon, actions, className, ...props }) {
69
- return /* @__PURE__ */ jsxs("div", {
70
- className: cn("flex min-h-40 flex-col items-center justify-center rounded-2xl border border-dashed border-border bg-muted/30 px-6 py-10 text-center", className),
71
- ...props,
72
- children: [
73
- icon && /* @__PURE__ */ jsx("div", {
74
- className: "mb-3 flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground",
75
- children: icon
76
- }),
77
- /* @__PURE__ */ jsx("h2", {
78
- className: "m-0 font-body text-base font-semibold text-foreground",
79
- children: title
80
- }),
81
- description && /* @__PURE__ */ jsx("div", {
82
- className: "mt-1 max-w-lg text-sm leading-6 text-muted-foreground",
83
- children: description
84
- }),
85
- actions && /* @__PURE__ */ jsx("div", {
86
- className: "mt-4 flex flex-wrap items-center justify-center gap-2",
87
- children: actions
88
- })
89
- ]
90
- });
91
- }
92
68
  var STATUS_BADGE_CLASS = {
93
69
  neutral: "border-border bg-muted text-muted-foreground",
94
70
  info: "border-primary/20 bg-accent text-accent-foreground",
@@ -131,26 +107,6 @@ function ItemRow({ title, meta, actions, children, className }) {
131
107
  })]
132
108
  });
133
109
  }
134
- /** A labelled number tile. */
135
- function Stat({ label, value, detail }) {
136
- return /* @__PURE__ */ jsxs("div", {
137
- className: "min-w-0 rounded-2xl border border-border bg-card p-4 shadow-baziu-sm",
138
- children: [
139
- /* @__PURE__ */ jsx("div", {
140
- className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground",
141
- children: label
142
- }),
143
- /* @__PURE__ */ jsx("div", {
144
- className: "mt-1 text-2xl font-semibold text-foreground",
145
- children: value
146
- }),
147
- detail && /* @__PURE__ */ jsx("div", {
148
- className: "mt-0.5 text-xs leading-5 text-muted-foreground",
149
- children: detail
150
- })
151
- ]
152
- });
153
- }
154
110
  //#endregion
155
111
  //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.17/node_modules/@tanstack/start-server-core/dist/esm/createSsrRpc.js
156
112
  var createSsrRpc = (functionId) => {
@@ -166,4 +122,4 @@ var createSsrRpc = (functionId) => {
166
122
  });
167
123
  };
168
124
  //#endregion
169
- export { PageHeader as a, Stat as c, ItemRow as i, StatusBadge as l, EmptyState as n, PageShell as o, ItemList as r, SectionCard as s, createSsrRpc as t };
125
+ export { PageShell as a, PageHeader as i, ItemList as n, SectionCard as o, ItemRow as r, StatusBadge as s, createSsrRpc as t };