bazilion 0.53.0 → 0.55.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 (178) hide show
  1. package/dist/cli.js +12 -7
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +705 -354
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-DfFOaCjC.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-IMJmAQjN.js +1 -0
  7. package/dist/web/client/assets/Button-bTJUy9Qf.js +1 -0
  8. package/dist/web/client/assets/{ConfigPage-DiQiJXP6.js → ConfigPage-CzLHZa5o.js} +1 -1
  9. package/dist/web/client/assets/ConfirmDialog-Cu_evkgc.js +1 -0
  10. package/dist/web/client/assets/ConnectionsView-D7Fmutl2.js +1 -0
  11. package/dist/web/client/assets/{ManagePage-xlePXXx5.js → ManagePage-BfvlCrmz.js} +1 -1
  12. package/dist/web/client/assets/{SectionTabs-BMiRKFfb.js → SectionTabs-D7kPQGoh.js} +1 -1
  13. package/dist/web/client/assets/{Segmented-Co4n2C5X.js → Segmented-oPkAHPO1.js} +1 -1
  14. package/dist/web/client/assets/SkillsParts-BuTxcCam.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-B1UnOvtp.js +1 -0
  16. package/dist/web/client/assets/TeamForm-DbzxtRjj.js +1 -0
  17. package/dist/web/client/assets/TeamThread-jpsWq6vI.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-BfyU9v9i.js +1 -0
  19. package/dist/web/client/assets/_id-BCNBLF-2.js +1 -0
  20. package/dist/web/client/assets/{_id-DSRgpxEc.js → _id-D8_H79U2.js} +1 -1
  21. package/dist/web/client/assets/access-CDWe1Kwy.js +1 -0
  22. package/dist/web/client/assets/agent-actions-CUee6aJq.js +1 -0
  23. package/dist/web/client/assets/agents-sE686DTf.js +1 -0
  24. package/dist/web/client/assets/agents-yrur1NDa.js +1 -0
  25. package/dist/web/client/assets/arrow-right-U66krZnr.js +1 -0
  26. package/dist/web/client/assets/attention-DYEHDfmx.js +1 -0
  27. package/dist/web/client/assets/bot-BCone8es.js +1 -0
  28. package/dist/web/client/assets/chevron-right-CuqJFXTe.js +1 -0
  29. package/dist/web/client/assets/config-BHv886pr.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-jxSFpY0Q.js +1 -0
  31. package/dist/web/client/assets/{download-Dj-1ltZb.js → download-Dy88XavQ.js} +1 -1
  32. package/dist/web/client/assets/{file-text-DiP-LaEg.js → file-text-DPsZ8-h9.js} +1 -1
  33. package/dist/web/client/assets/{images-BKjyhYUc.js → images-QBh_rL8b.js} +1 -1
  34. package/dist/web/client/assets/index-GOthyyE-.js +14 -0
  35. package/dist/web/client/assets/{key-round-QpqZklz6.js → key-round-C-I8fAG0.js} +1 -1
  36. package/dist/web/client/assets/{list-checks-BeyG5SVQ.js → list-checks-C9Q-bjEi.js} +1 -1
  37. package/dist/web/client/assets/login-Dhe15Uuc.js +1 -0
  38. package/dist/web/client/assets/manage-BaIU5zKy.js +1 -0
  39. package/dist/web/client/assets/mcp-A_Eo7x3q.js +1 -0
  40. package/dist/web/client/assets/{message-square-DnpSOYv4.js → message-square-Bwf9cHOx.js} +1 -1
  41. package/dist/web/client/assets/{network-BC7rNaOC.js → network-B3FA93gC.js} +1 -1
  42. package/dist/web/client/assets/parts-CpIfn_BH.js +41 -0
  43. package/dist/web/client/assets/plus-CQPjc8uR.js +1 -0
  44. package/dist/web/client/assets/routes-CTg_yjbY.js +85 -0
  45. package/dist/web/client/assets/skills-CLjtYtkA.js +1 -0
  46. package/dist/web/client/assets/{square-terminal-hQZ6pexU.js → square-terminal-DaNLwvEs.js} +1 -1
  47. package/dist/web/client/assets/{style-BtcFIkOS.js → style-mjEbxhf5.js} +1 -1
  48. package/dist/web/client/assets/styles-DzcEC3Rd.css +2 -0
  49. package/dist/web/client/assets/system-CrTSr5_t.js +1 -0
  50. package/dist/web/client/assets/teams-Bhje5n2h.js +1 -0
  51. package/dist/web/client/assets/teams-Cbgw0Qhv.js +1 -0
  52. package/dist/web/client/assets/telegram-HtUczmaA.js +1 -0
  53. package/dist/web/client/assets/tools-BpjFvmoX.js +1 -0
  54. package/dist/web/client/assets/use-resource-BnvgCpBi.js +1 -0
  55. package/dist/web/client/assets/users-round-BElBVSnw.js +1 -0
  56. package/dist/web/client/assets/welcome-D47LKWYO.js +1 -0
  57. package/dist/web/client/assets/wrench-DotqSqSm.js +1 -0
  58. package/dist/web/server/assets/{AddProviderDialog-Di5crZUB.js → AddProviderDialog-BbpuvC2a.js} +7 -10
  59. package/dist/web/server/assets/{AgentTemplateParts-Cqy7kSzx.js → AgentTemplateParts-Ce7snK3m.js} +3 -6
  60. package/dist/web/server/assets/{ConfigPage-oXM3wyOU.js → ConfigPage-qP9ejjuw.js} +1 -1
  61. package/dist/web/server/assets/{ConfirmDialog-DfaJ--A6.js → ConfirmDialog-Z-uYbE9B.js} +1 -2
  62. package/dist/web/server/assets/{ConnectionsView-DZrLoNoW.js → ConnectionsView-CLIV7V5D.js} +9 -9
  63. package/dist/web/server/assets/{ManagePage-0LKHEcT_.js → ManagePage-BR9FwVZM.js} +1 -1
  64. package/dist/web/server/assets/ModelMenu-D-hTgYOO.js +278 -0
  65. package/dist/web/server/assets/{Rail-7JU6ly2O.js → Rail-b6EbjBB-.js} +9 -12
  66. package/dist/web/server/assets/SkillsParts-DWpdydCJ.js +199 -0
  67. package/dist/web/server/assets/SpawnDialog-3wNx0W1R.js +1851 -0
  68. package/dist/web/server/assets/{SpawnTeamModal-CCe6P82H.js → SpawnTeamModal-C-YMvoaB.js} +3 -6
  69. package/dist/web/server/assets/{TeamForm-BzQmdhVi.js → TeamForm-CL45gBdt.js} +2 -5
  70. package/dist/web/server/assets/{TeamThread-SyQpUvz5.js → TeamThread-CVVH6kKj.js} +9 -9
  71. package/dist/web/server/assets/{UnsavedChangesGuard-DrOvPV14.js → UnsavedChangesGuard-CXK75QQp.js} +1 -1
  72. package/dist/web/server/assets/{_id-AcyGvFrE.js → _id-2I4CSMQj.js} +10 -14
  73. package/dist/web/server/assets/{_id-DPGzfmjG.js → _id-8zsImuGa.js} +9 -11
  74. package/dist/web/server/assets/{_id-DXm9W55C.js → _id-BpfoPuTv.js} +2 -2
  75. package/dist/web/server/assets/{_id-DojvxRZn.js → _id-De3Bm0SG.js} +1 -1
  76. package/dist/web/server/assets/{_id-BGTgqsWm.js → _id-d2OwovYV.js} +2 -2
  77. package/dist/web/server/assets/_tanstack-start-manifest_v-kkY_s_uR.js +256 -0
  78. package/dist/web/server/assets/{access-CKSW7MFH.js → access-CwZ27Wsl.js} +4 -6
  79. package/dist/web/server/assets/{access-BJe-NduL.js → access-CyUoElTP.js} +2 -2
  80. package/dist/web/server/assets/{agent-actions-CUDMCG0F.js → agent-actions-C07Cp5Ue.js} +1 -1
  81. package/dist/web/server/assets/{agents-6d9WxbYF.js → agents-CRtMfKqX.js} +1 -1
  82. package/dist/web/server/assets/{agents-DtLDoZ_u.js → agents-CwzhpDPm.js} +6 -8
  83. package/dist/web/server/assets/{agents-1sjSvp5p.js → agents-DCWEoaxY.js} +2 -2
  84. package/dist/web/server/assets/{agents-DKVGUwD1.js → agents-DQowl6Ly.js} +1 -1
  85. package/dist/web/server/assets/{agents-DUI4Yjtg.js → agents-DTub-rJk.js} +2 -2
  86. package/dist/web/server/assets/{agents-DsHeRaLq.js → agents-vuXrAv1j.js} +6 -10
  87. package/dist/web/server/assets/{attention-DefKwvgm.js → attention-BqCnJ1hg.js} +5 -2
  88. package/dist/web/server/assets/{attention-B6sSDR_4.js → attention-Dki8rmGZ.js} +3 -0
  89. package/dist/web/server/assets/{attention-johfkM0_.js → attention-DwGaur_w.js} +53 -11
  90. package/dist/web/server/assets/{config-DYAaaE9Z.js → config-B9dJiji_.js} +2 -2
  91. package/dist/web/server/assets/{config-Clz57LuN.js → config-D3MR2VjE.js} +24 -26
  92. package/dist/web/server/assets/{createSsrRpc-BijMHgqE.js → createSsrRpc-qesavJv-.js} +4 -57
  93. package/dist/web/server/assets/{login-JoIjlcmu.js → login-CRd1yTH5.js} +34 -45
  94. package/dist/web/server/assets/{login-VV10kZBl.js → login-ZN6KV8n-.js} +36 -2
  95. package/dist/web/server/assets/{manage-Ppyi3Y5y.js → manage-Ce6cI4eW.js} +14 -4
  96. package/dist/web/server/assets/{mcp-Ce6O8Qs2.js → mcp-BQ15a9dG.js} +4 -6
  97. package/dist/web/server/assets/{mcp-DB38leWS.js → mcp-CYQuYWGX.js} +2 -2
  98. package/dist/web/server/assets/page-title-CVY-c2Pd.js +98 -0
  99. package/dist/web/server/assets/{router-C97bwlXi.js → router-CPdWGKQ5.js} +500 -210
  100. package/dist/web/server/assets/routes-BPloBDc8.js +92 -0
  101. package/dist/web/server/assets/{routes-C4aGqXfr.js → routes-Dw1K3TQw.js} +2815 -1744
  102. package/dist/web/server/assets/{routes-DuOShl4q.js → routes-xDPesCQu.js} +2 -2
  103. package/dist/web/server/assets/{skills-B7sg0QKS.js → skills-6VSpEORe.js} +2 -2
  104. package/dist/web/server/assets/skills-D0xrNc2_.js +157 -0
  105. package/dist/web/server/assets/{style-BR7ufS6Z.js → style-aMybyKzc.js} +1 -1
  106. package/dist/web/server/assets/{system-DaP0ol67.js → system-B5sPgdQW.js} +2 -2
  107. package/dist/web/server/assets/{system-CNQpt3JB.js → system-CXmiWyDG.js} +4 -4
  108. package/dist/web/server/assets/{teams-CuKE5iAK.js → teams-ClRBVSYU.js} +2 -2
  109. package/dist/web/server/assets/{teams-4cEZ4_rw.js → teams-Dq4RCxis.js} +2 -2
  110. package/dist/web/server/assets/{teams-C3xwTz8-.js → teams-iXiCnN2i.js} +6 -9
  111. package/dist/web/server/assets/{teams-BKHe67f3.js → teams-yF3I_Zjq.js} +7 -9
  112. package/dist/web/server/assets/{telegram-BnQADwnj.js → telegram-D9U9c1MN.js} +2 -2
  113. package/dist/web/server/assets/{telegram-BpmK-HHV.js → telegram-DwEgyR1x.js} +7 -9
  114. package/dist/web/server/assets/{tools-BQeWn7Tj.js → tools-DflVIdDd.js} +2 -2
  115. package/dist/web/server/assets/{tools-CURTfG2q.js → tools-VPIKjr3y.js} +4 -6
  116. package/dist/web/server/assets/{use-resource-DVzK0toP.js → use-resource-CbHGYti0.js} +1 -1
  117. package/dist/web/server/assets/{welcome-SNsE49JO.js → welcome-7DrYZVs6.js} +2 -2
  118. package/dist/web/server/assets/{welcome-OiZCAIHZ.js → welcome-966nOyyK.js} +10 -9
  119. package/dist/web/server/server.js +8 -8
  120. package/dist/web-server.js +4 -0
  121. package/dist/web-server.js.map +1 -1
  122. package/dist/worker.js +34 -13
  123. package/dist/worker.js.map +1 -1
  124. package/package.json +4 -4
  125. package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +0 -1
  126. package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +0 -1
  127. package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +0 -1
  128. package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +0 -1
  129. package/dist/web/client/assets/Dialog-BTDzv3J5.js +0 -1
  130. package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +0 -1
  131. package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +0 -1
  132. package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +0 -1
  133. package/dist/web/client/assets/TeamThread-D8xqE_gb.js +0 -1
  134. package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +0 -1
  135. package/dist/web/client/assets/_id-DEQxwq2v.js +0 -1
  136. package/dist/web/client/assets/access-34_ShgHU.js +0 -1
  137. package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +0 -1
  138. package/dist/web/client/assets/agents-C87yBHaR.js +0 -1
  139. package/dist/web/client/assets/agents-DvCSl1Ro.js +0 -1
  140. package/dist/web/client/assets/api-CoLs57oO.js +0 -1
  141. package/dist/web/client/assets/arrow-right-BhTWtC9z.js +0 -1
  142. package/dist/web/client/assets/attention-CteEeRvX.js +0 -1
  143. package/dist/web/client/assets/chevron-right-BqOIX9UM.js +0 -1
  144. package/dist/web/client/assets/config-XJuQeEP4.js +0 -1
  145. package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +0 -1
  146. package/dist/web/client/assets/entities-xVoB-p2j.js +0 -1
  147. package/dist/web/client/assets/form-Bvr_f9lR.js +0 -1
  148. package/dist/web/client/assets/index-J_Uqj4md.js +0 -54
  149. package/dist/web/client/assets/login-076Bc601.js +0 -1
  150. package/dist/web/client/assets/manage-CsrV2hhK.js +0 -1
  151. package/dist/web/client/assets/mcp-8N0BqZ0G.js +0 -1
  152. package/dist/web/client/assets/model-facts-DoB6QD5y.js +0 -1
  153. package/dist/web/client/assets/parts-B0JBolvG.js +0 -1
  154. package/dist/web/client/assets/plus-DZ3KVo7E.js +0 -1
  155. package/dist/web/client/assets/routes-3HkZZOOe.js +0 -76
  156. package/dist/web/client/assets/skills-DiaqZRXT.js +0 -1
  157. package/dist/web/client/assets/styles-C7Ztw15K.css +0 -2
  158. package/dist/web/client/assets/system-YWlJ8ogO.js +0 -1
  159. package/dist/web/client/assets/teams-DQwceMvk.js +0 -1
  160. package/dist/web/client/assets/teams-DTC3plIH.js +0 -1
  161. package/dist/web/client/assets/telegram-D4wINntt.js +0 -1
  162. package/dist/web/client/assets/tools-CZeQ9pDx.js +0 -1
  163. package/dist/web/client/assets/use-resource-BaTkTGvG.js +0 -1
  164. package/dist/web/client/assets/welcome-CnxP_RCk.js +0 -1
  165. package/dist/web/client/assets/wrench-BrwBswfo.js +0 -1
  166. package/dist/web/server/assets/Dialog-aup_yJv5.js +0 -85
  167. package/dist/web/server/assets/ModelMenu-BAZeARx6.js +0 -138
  168. package/dist/web/server/assets/SpawnDialog-CYkwzETs.js +0 -124
  169. package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +0 -285
  170. package/dist/web/server/assets/entities-Dn2xzKIw.js +0 -16
  171. package/dist/web/server/assets/form-BRQAsKKq.js +0 -319
  172. package/dist/web/server/assets/model-facts-mrfrWQne.js +0 -136
  173. package/dist/web/server/assets/parts-mabERIJZ.js +0 -380
  174. package/dist/web/server/assets/routes-IHMVKpDK.js +0 -16
  175. package/dist/web/server/assets/skills-hfTSwqsG.js +0 -353
  176. package/dist/web/server/assets/utils-C_uf36nf.js +0 -8
  177. package/dist/web/server/assets/workspace-DaitCM0t.js +0 -651
  178. /package/dist/web/server/assets/{telegram-CGol0CKX.js → telegram-CGol0CKX2.js} +0 -0
@@ -1,18 +1,35 @@
1
- import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
1
+ import { K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, dt as api, g as CardBody, i as FilterSelect, k as Notice, lt as useLive, m as Banner, pt as errorMessage, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
2
+ import { t as useHydrated } from "./use-resource-CbHGYti0.js";
3
+ import { r as ago } from "./ModelMenu-D-hTgYOO.js";
2
4
  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";
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-CVY-c2Pd.js";
7
+ import { n as PageHeader, r as PageShell } from "./createSsrRpc-qesavJv-.js";
8
+ import { t as Route } from "./attention-BqCnJ1hg.js";
9
+ import { useEffect, useRef, useState } from "react";
10
10
  import { Link } from "@tanstack/react-router";
11
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
12
  import { BellRing } from "lucide-react";
13
13
  //#region src/routes/attention/index.tsx?tsr-split=component
14
14
  var LIST_PATH = "/api/attention?state=all&limit=200";
15
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
+ /** "2 minutes ago" moves on even when nothing in the list changes. */
19
+ var CLOCK_MS = 3e4;
20
+ /** What the item's button says: where it takes you and what you do there. */
21
+ function actionLabel(item) {
22
+ switch (item.kind) {
23
+ case "agent_question": return "Answer";
24
+ case "command_approval": return "Decide";
25
+ case "lesson_proposal": return "Review lesson";
26
+ default: return "Open";
27
+ }
28
+ }
29
+ var clock = (at) => new Date(at).toLocaleTimeString([], {
30
+ hour: "2-digit",
31
+ minute: "2-digit"
32
+ });
16
33
  function AttentionCenter() {
17
34
  const initial = Route.useLoaderData();
18
35
  const [list, setList] = useState(initial.list);
@@ -23,6 +40,10 @@ function AttentionCenter() {
23
40
  const [severity, setSeverity] = useState("all");
24
41
  const [busy, setBusy] = useState(null);
25
42
  const [notice, setNotice] = useState(null);
43
+ const counts = useAttentionCount();
44
+ const live = useLive();
45
+ const revision = useRef(null);
46
+ const hydrated = useHydrated();
26
47
  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
48
  const openCount = list.items.filter((item) => item.acknowledgedAt === null).length;
28
49
  const acknowledgeable = list.items.filter((item) => item.acknowledgeable && item.acknowledgedAt === null).length;
@@ -34,6 +55,22 @@ function AttentionCenter() {
34
55
  setSummary(nextSummary);
35
56
  setNow(Date.now());
36
57
  }
58
+ useEffect(() => live.subscribe("attention", (event) => {
59
+ const changed = revision.current !== event.revision;
60
+ revision.current = event.revision;
61
+ if (changed) refresh().catch(() => {});
62
+ }), [live.subscribe]);
63
+ useEffect(() => {
64
+ const timer = setInterval(() => setNow(Date.now()), CLOCK_MS);
65
+ return () => clearInterval(timer);
66
+ }, []);
67
+ useEffect(() => {
68
+ if (busy !== null || live.connected) return;
69
+ const timer = setInterval(() => {
70
+ if (document.visibilityState === "visible") refresh().catch(() => {});
71
+ }, POLL_MS);
72
+ return () => clearInterval(timer);
73
+ }, [busy, live.connected]);
37
74
  async function run(key, request) {
38
75
  setBusy(key);
39
76
  setNotice(null);
@@ -50,6 +87,7 @@ function AttentionCenter() {
50
87
  });
51
88
  } finally {
52
89
  await refresh().catch(() => {});
90
+ counts.refresh();
53
91
  setBusy(null);
54
92
  }
55
93
  }
@@ -133,7 +171,7 @@ function AttentionCenter() {
133
171
  },
134
172
  {
135
173
  value: "action_required",
136
- label: "Needs you"
174
+ label: "Waiting for you"
137
175
  },
138
176
  {
139
177
  value: "error",
@@ -157,7 +195,7 @@ function AttentionCenter() {
157
195
  visible.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
158
196
  icon: /* @__PURE__ */ jsx(BellRing, { className: "size-5" }),
159
197
  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."
198
+ children: "Items come from Agents' questions and commands to approve, learning reviews, schedules, follow-up queues and message loops."
161
199
  }) : /* @__PURE__ */ jsx(CardList, { children: visible.map((item) => {
162
200
  const label = severityLabel(item.severity);
163
201
  const acknowledged = item.acknowledgedAt !== null;
@@ -173,6 +211,10 @@ function AttentionCenter() {
173
211
  meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
174
212
  /* @__PURE__ */ jsx("span", { children: ATTENTION_KINDS[item.kind] }),
175
213
  /* @__PURE__ */ jsx("span", { children: attentionSource(item) }),
214
+ item.expiresAt !== void 0 && hydrated && /* @__PURE__ */ jsxs("span", {
215
+ className: "text-warning",
216
+ children: ["Waits until ", clock(item.expiresAt)]
217
+ }),
176
218
  /* @__PURE__ */ jsx("time", {
177
219
  dateTime: new Date(item.occurredAt).toISOString(),
178
220
  title: new Date(item.occurredAt).toISOString().slice(0, 16).replace("T", " "),
@@ -182,7 +224,7 @@ function AttentionCenter() {
182
224
  actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Link, {
183
225
  to: item.href,
184
226
  className: "ghost-btn no-underline",
185
- children: item.kind === "lesson_proposal" ? "Review lesson" : "Open"
227
+ children: actionLabel(item)
186
228
  }), item.acknowledgeable && /* @__PURE__ */ jsx(Button, {
187
229
  variant: "ghost",
188
230
  disabled: busy !== null,
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-BijMHgqE.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/index.tsx
5
- var $$splitComponentImporter = () => import("./config-Clz57LuN.js");
5
+ var $$splitComponentImporter = () => import("./config-D3MR2VjE.js");
6
6
  var fetchModelsPage = createServerFn({ method: "GET" }).handler(createSsrRpc("71b6b12251ac92cf4ee888c1d2b6eba3beaac079f9c39eaed95fafcd15908731"));
7
7
  var Route = createFileRoute("/config/")({
8
8
  validateSearch: (search) => ({
@@ -1,13 +1,11 @@
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 api, h as CARD_ROW, j as SearchField, m as Banner, pt as errorMessage, w as Chip } from "./SpawnDialog-3wNx0W1R.js";
2
+ import { r as useResource } from "./use-resource-CbHGYti0.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-Z-uYbE9B.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 { 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";
6
+ import { t as Route } from "./config-B9dJiji_.js";
7
+ import { t as ConfigPage } from "./ConfigPage-qP9ejjuw.js";
8
+ import { c as ProviderAvatar, l as StateChip, o as FailureBox, s as ModelRow, t as AddProviderDialog } from "./AddProviderDialog-BbpuvC2a.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";
@@ -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", {
@@ -319,7 +317,7 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
319
317
  children: [
320
318
  chat.length > 0 && /* @__PURE__ */ jsxs("div", {
321
319
  "aria-hidden": "true",
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`,
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`,
323
321
  children: [
324
322
  /* @__PURE__ */ jsx("span", {
325
323
  className: "min-w-0 flex-[2.2] basis-52",
@@ -352,10 +350,10 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
352
350
  /* @__PURE__ */ jsxs("div", {
353
351
  className: "min-w-0 flex-[2.2] basis-52",
354
352
  children: [/* @__PURE__ */ jsx("div", {
355
- className: "text-[0.95rem] font-semibold text-foreground",
353
+ className: "text-base font-semibold text-foreground",
356
354
  children: modelName(model)
357
355
  }), model.name && /* @__PURE__ */ jsx("div", {
358
- className: "break-all font-mono text-[0.72rem] text-muted-foreground",
356
+ className: "break-all font-mono text-xs text-muted-foreground",
359
357
  children: model.id
360
358
  })]
361
359
  }),
@@ -364,15 +362,15 @@ function ChatModelsCard({ chat, hasProviders, onPick, onChanged }) {
364
362
  children: model.providerName
365
363
  }),
366
364
  /* @__PURE__ */ jsx("div", {
367
- 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"}`,
368
366
  children: down ? `${model.providerName} is not working` : factsLine(model, model.providerConnect)
369
367
  }),
370
368
  /* @__PURE__ */ jsx("div", {
371
- className: "w-40 shrink-0 text-[0.82rem]",
369
+ className: "w-40 shrink-0 text-sm",
372
370
  children: priceLine(model, model.providerConnect)
373
371
  }),
374
372
  /* @__PURE__ */ jsx("div", {
375
- 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",
376
374
  children: usedByLine(model.usedBy)
377
375
  }),
378
376
  /* @__PURE__ */ jsx("button", {
@@ -473,7 +471,7 @@ function ImagesCard({ images, onConnect, onChanged }) {
473
471
  }),
474
472
  children: [
475
473
  images.routes.map((route) => row(route.id, /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
476
- className: "min-w-0 flex-[1.6] basis-60 text-[0.95rem]",
474
+ className: "min-w-0 flex-[1.6] basis-60 text-base",
477
475
  children: [
478
476
  /* @__PURE__ */ jsx("span", {
479
477
  className: `font-semibold ${route.ready ? "text-foreground" : "text-muted-foreground"}`,
@@ -486,10 +484,10 @@ function ImagesCard({ images, onConnect, onChanged }) {
486
484
  })
487
485
  ]
488
486
  }), /* @__PURE__ */ jsx("span", {
489
- 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",
490
488
  children: route.billing
491
489
  })] }), route.ready, route.ready ? /* @__PURE__ */ jsx("span", {
492
- className: "text-[0.82rem] font-semibold text-success",
490
+ className: "text-sm font-semibold text-success",
493
491
  children: "Ready"
494
492
  }) : /* @__PURE__ */ jsx(Button, {
495
493
  variant: "ghost",
@@ -497,10 +495,10 @@ function ImagesCard({ images, onConnect, onChanged }) {
497
495
  children: route.provider === "openai-codex" ? "Sign in" : `Connect ${route.providerName}`
498
496
  }))),
499
497
  row("off", /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
500
- 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",
501
499
  children: "Off"
502
500
  }), /* @__PURE__ */ jsx("span", {
503
- 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",
504
502
  children: "Agents have no image tool"
505
503
  })] }), true, null),
506
504
  images.selected !== "off" && !selected && /* @__PURE__ */ jsxs("div", {
@@ -553,15 +551,15 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
553
551
  /* @__PURE__ */ jsxs("span", {
554
552
  className: "min-w-0 flex-[1.6] basis-56",
555
553
  children: [/* @__PURE__ */ jsx("span", {
556
- className: "block text-[0.95rem] font-semibold text-foreground",
554
+ className: "block text-base font-semibold text-foreground",
557
555
  children: provider.displayName
558
556
  }), /* @__PURE__ */ jsx("span", {
559
- className: "block truncate text-[0.82rem] text-muted-foreground",
557
+ className: "block truncate text-sm text-muted-foreground",
560
558
  children: credentialLine(provider)
561
559
  })]
562
560
  }),
563
561
  /* @__PURE__ */ jsx("span", {
564
- 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",
565
563
  children: uses.length > 0 ? uses.join(" · ") : "Not used yet"
566
564
  }),
567
565
  /* @__PURE__ */ jsx(StateChip, {
@@ -580,7 +578,7 @@ function ProvidersCard({ providers, total, images, now, onOpen, onAdd }) {
580
578
  children: "No provider yet. Add one to give your Agents a model."
581
579
  }),
582
580
  /* @__PURE__ */ jsxs("div", {
583
- className: `${CARD_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`,
584
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."]
585
583
  })
586
584
  ]
@@ -735,7 +733,7 @@ function FieldRow({ field }) {
735
733
  }
736
734
  //#endregion
737
735
  //#region src/components/setup/ProviderSheet.tsx
738
- 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";
739
737
  /**
740
738
  * One provider: whether it answers, its credentials, its models in Chat, and the rarer settings.
741
739
  * Every change here reloads the page behind it.
@@ -1,5 +1,6 @@
1
1
  import { i as getServerFnById, r as TSS_SERVER_FUNCTION } from "../server.js";
2
- import { t as cn } from "./utils-C_uf36nf.js";
2
+ import { p as cn } from "./ModelMenu-D-hTgYOO.js";
3
+ import { n as usePageTitle } from "./page-title-CVY-c2Pd.js";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  //#region src/components/Page.tsx
5
6
  var PAGE_SIZE_CLASS = {
@@ -14,6 +15,7 @@ function PageShell({ size = "default", className, ...props }) {
14
15
  });
15
16
  }
16
17
  function PageHeader({ eyebrow, title, description, actions, className, ...props }) {
18
+ usePageTitle(typeof title === "string" ? [title, typeof eyebrow === "string" ? eyebrow : null].filter(Boolean).join(" · ") : null);
17
19
  return /* @__PURE__ */ jsxs("header", {
18
20
  className: cn("flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between", className),
19
21
  ...props,
@@ -39,32 +41,6 @@ function PageHeader({ eyebrow, title, description, actions, className, ...props
39
41
  })]
40
42
  });
41
43
  }
42
- function SectionCard({ title, description, actions, children, className, ...props }) {
43
- const hasHeader = title || description || actions;
44
- return /* @__PURE__ */ jsxs("section", {
45
- className: cn("min-w-0 rounded-2xl border border-border bg-card p-5 text-card-foreground shadow-baziu-sm sm:p-6", className),
46
- ...props,
47
- children: [hasHeader && /* @__PURE__ */ jsxs("div", {
48
- className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
49
- children: [/* @__PURE__ */ jsxs("div", {
50
- className: "min-w-0",
51
- children: [title && /* @__PURE__ */ jsx("h2", {
52
- className: "m-0 font-body text-base font-semibold text-foreground",
53
- children: title
54
- }), description && /* @__PURE__ */ jsx("div", {
55
- className: "mt-1 text-sm leading-6 text-muted-foreground",
56
- children: description
57
- })]
58
- }), actions && /* @__PURE__ */ jsx("div", {
59
- className: "flex shrink-0 flex-wrap items-center gap-2",
60
- children: actions
61
- })]
62
- }), children && /* @__PURE__ */ jsx("div", {
63
- className: cn(hasHeader && "mt-5"),
64
- children
65
- })]
66
- });
67
- }
68
44
  var STATUS_BADGE_CLASS = {
69
45
  neutral: "border-border bg-muted text-muted-foreground",
70
46
  info: "border-primary/20 bg-accent text-accent-foreground",
@@ -78,35 +54,6 @@ function StatusBadge({ variant = "neutral", className, ...props }) {
78
54
  ...props
79
55
  });
80
56
  }
81
- /** The one list layout: a row per item that stacks on narrow screens. */
82
- function ItemList({ children, className }) {
83
- return /* @__PURE__ */ jsx("ul", {
84
- className: cn("m-0 list-none divide-y divide-border overflow-hidden rounded-xl border border-border bg-card p-0", className),
85
- children
86
- });
87
- }
88
- function ItemRow({ title, meta, actions, children, className }) {
89
- return /* @__PURE__ */ jsxs("li", {
90
- className: cn("flex min-w-0 flex-col gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between", className),
91
- children: [/* @__PURE__ */ jsxs("div", {
92
- className: "min-w-0 flex-1",
93
- children: [
94
- /* @__PURE__ */ jsx("div", {
95
- className: "min-w-0 break-words font-medium text-foreground",
96
- children: title
97
- }),
98
- meta && /* @__PURE__ */ jsx("div", {
99
- className: "mt-1 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground",
100
- children: meta
101
- }),
102
- children
103
- ]
104
- }), actions && /* @__PURE__ */ jsx("div", {
105
- className: "flex shrink-0 flex-wrap items-center gap-2",
106
- children: actions
107
- })]
108
- });
109
- }
110
57
  //#endregion
111
58
  //#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.17/node_modules/@tanstack/start-server-core/dist/esm/createSsrRpc.js
112
59
  var createSsrRpc = (functionId) => {
@@ -122,4 +69,4 @@ var createSsrRpc = (functionId) => {
122
69
  });
123
70
  };
124
71
  //#endregion
125
- export { PageShell as a, PageHeader as i, ItemList as n, SectionCard as o, ItemRow as r, StatusBadge as s, createSsrRpc as t };
72
+ export { StatusBadge as i, PageHeader as n, PageShell as r, createSsrRpc as t };
@@ -1,7 +1,6 @@
1
1
  import { useEffect, useState } from "react";
2
2
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- import { Monitor, Moon, Sun } from "lucide-react";
5
4
  //#region src/components/BaziuLogo.tsx
6
5
  function BaziuLogo({ className }) {
7
6
  return /* @__PURE__ */ jsx("img", {
@@ -50,69 +49,59 @@ function PawIcon({ className }) {
50
49
  });
51
50
  }
52
51
  //#endregion
53
- //#region src/components/ThemeToggle.tsx
52
+ //#region src/lib/theme.ts
53
+ var THEME_MODES = [
54
+ "system",
55
+ "light",
56
+ "dark"
57
+ ];
54
58
  var STORAGE_KEY = "baziu-theme";
55
- var ICONS = {
56
- system: Monitor,
57
- light: Sun,
58
- dark: Moon
59
- };
60
- var NEXT = {
61
- system: "light",
62
- light: "dark",
63
- dark: "system"
64
- };
59
+ var CHANGED = "baziu-theme-change";
65
60
  function readMode() {
66
61
  if (typeof window === "undefined") return "system";
67
- const v = window.localStorage.getItem(STORAGE_KEY);
68
- return v === "light" || v === "dark" || v === "system" ? v : "system";
62
+ try {
63
+ const value = window.localStorage.getItem(STORAGE_KEY);
64
+ return value === "light" || value === "dark" || value === "system" ? value : "system";
65
+ } catch {
66
+ return "system";
67
+ }
69
68
  }
70
69
  function applyMode(mode) {
71
- const sysDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
72
- const dark = mode === "dark" || mode === "system" && sysDark;
73
- document.documentElement.classList.toggle("dark", dark);
70
+ const systemDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
71
+ document.documentElement.classList.toggle("dark", mode === "dark" || mode === "system" && systemDark);
74
72
  }
75
- function ThemeToggle() {
73
+ /** Choose a theme for this browser: it applies at once, in every place that shows it. */
74
+ function setThemeMode(mode) {
75
+ try {
76
+ window.localStorage.setItem(STORAGE_KEY, mode);
77
+ } catch {}
78
+ applyMode(mode);
79
+ window.dispatchEvent(new CustomEvent(CHANGED, { detail: mode }));
80
+ }
81
+ /** The theme in use, kept in step with every other place that changes it. */
82
+ function useThemeMode() {
76
83
  const [mode, setMode] = useState("system");
77
84
  useEffect(() => {
78
85
  setMode(readMode());
86
+ const onChange = (event) => setMode(event.detail);
87
+ window.addEventListener(CHANGED, onChange);
88
+ return () => window.removeEventListener(CHANGED, onChange);
79
89
  }, []);
80
90
  useEffect(() => {
81
91
  if (mode !== "system") return;
82
- const mq = window.matchMedia("(prefers-color-scheme: dark)");
92
+ const query = window.matchMedia("(prefers-color-scheme: dark)");
83
93
  const onChange = () => applyMode("system");
84
- mq.addEventListener("change", onChange);
85
- return () => mq.removeEventListener("change", onChange);
94
+ query.addEventListener("change", onChange);
95
+ return () => query.removeEventListener("change", onChange);
86
96
  }, [mode]);
87
- const cycle = () => {
88
- const next = NEXT[mode];
89
- setMode(next);
90
- window.localStorage.setItem(STORAGE_KEY, next);
91
- applyMode(next);
92
- };
93
- const Icon = ICONS[mode];
94
- const label = `Theme: ${mode}. Switch to ${NEXT[mode]}.`;
95
- return /* @__PURE__ */ jsxs("button", {
96
- type: "button",
97
- onClick: cycle,
98
- className: "unstyled inline-flex h-9 items-center justify-center gap-2 rounded-lg border border-frost bg-ivory px-2.5 text-mocha shadow-baziu-sm transition-all hover:border-sapphire-light hover:bg-sapphire-glow hover:text-sapphire active:translate-y-px",
99
- title: label,
100
- "aria-label": label,
101
- children: [/* @__PURE__ */ jsx(Icon, {
102
- className: "h-4 w-4 shrink-0",
103
- "aria-hidden": "true"
104
- }), /* @__PURE__ */ jsx("span", {
105
- className: "hidden text-xs font-medium capitalize xl:inline",
106
- children: mode
107
- })]
108
- });
97
+ return mode;
109
98
  }
110
99
  //#endregion
111
100
  //#region src/routes/login.tsx
112
- var $$splitComponentImporter = () => import("./login-VV10kZBl.js");
101
+ var $$splitComponentImporter = () => import("./login-ZN6KV8n-.js");
113
102
  var Route = createFileRoute("/login")({
114
103
  validateSearch: (search) => ({ error: search.error === "token" || search.error === "origin" ? search.error : void 0 }),
115
104
  component: lazyRouteComponent($$splitComponentImporter, "component")
116
105
  });
117
106
  //#endregion
118
- export { BaziuLogo as i, ThemeToggle as n, PawIcon as r, Route as t };
107
+ export { PawIcon as a, useThemeMode as i, THEME_MODES as n, BaziuLogo as o, setThemeMode as r, Route as t };
@@ -1,9 +1,43 @@
1
- import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route } from "./login-JoIjlcmu.js";
1
+ import { n as usePageTitle } from "./page-title-CVY-c2Pd.js";
2
+ import { a as PawIcon, i as useThemeMode, o as BaziuLogo, r as setThemeMode, t as Route } from "./login-CRd1yTH5.js";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { KeyRound, MessageSquareText, UsersRound } from "lucide-react";
4
+ import { KeyRound, MessageSquareText, Monitor, Moon, Sun, UsersRound } from "lucide-react";
5
+ //#region src/components/ThemeToggle.tsx
6
+ var ICONS = {
7
+ system: Monitor,
8
+ light: Sun,
9
+ dark: Moon
10
+ };
11
+ var NEXT = {
12
+ system: "light",
13
+ light: "dark",
14
+ dark: "system"
15
+ };
16
+ function ThemeToggle() {
17
+ const mode = useThemeMode();
18
+ const Icon = ICONS[mode];
19
+ const next = NEXT[mode];
20
+ const label = `Theme: ${mode}. Switch to ${next}.`;
21
+ return /* @__PURE__ */ jsxs("button", {
22
+ type: "button",
23
+ onClick: () => setThemeMode(next),
24
+ className: "unstyled inline-flex h-9 items-center justify-center gap-2 rounded-lg border border-frost bg-ivory px-2.5 text-mocha shadow-baziu-sm transition-all hover:border-sapphire-light hover:bg-sapphire-glow hover:text-sapphire active:translate-y-px",
25
+ title: label,
26
+ "aria-label": label,
27
+ children: [/* @__PURE__ */ jsx(Icon, {
28
+ className: "h-4 w-4 shrink-0",
29
+ "aria-hidden": "true"
30
+ }), /* @__PURE__ */ jsx("span", {
31
+ className: "hidden text-xs font-medium capitalize xl:inline",
32
+ children: mode
33
+ })]
34
+ });
35
+ }
36
+ //#endregion
4
37
  //#region src/routes/login.tsx?tsr-split=component
5
38
  function LoginPage() {
6
39
  const { error } = Route.useSearch();
40
+ usePageTitle("Log in");
7
41
  return /* @__PURE__ */ jsxs("main", {
8
42
  className: "relative flex min-h-dvh items-center overflow-hidden bg-cream px-5 py-16 sm:px-8",
9
43
  children: [
@@ -1,4 +1,4 @@
1
- import { l as modelName } from "./model-facts-mrfrWQne.js";
1
+ import { l as modelName } from "./ModelMenu-D-hTgYOO.js";
2
2
  //#region src/lib/manage.ts
3
3
  /** "A", "A and B", "A, B and C". */
4
4
  function listed(items) {
@@ -183,6 +183,8 @@ function matchesSkill(skill, query) {
183
183
  return words.every((word) => text.includes(word));
184
184
  }
185
185
  var ATTENTION_KINDS = {
186
+ agent_question: "Questions",
187
+ command_approval: "Commands to approve",
186
188
  lesson_proposal: "Lesson proposals",
187
189
  review_failure: "Review failures",
188
190
  trigger_failure: "Schedule failures",
@@ -192,7 +194,7 @@ var ATTENTION_KINDS = {
192
194
  function severityLabel(severity) {
193
195
  switch (severity) {
194
196
  case "action_required": return {
195
- label: "Needs you",
197
+ label: "Waiting for you",
196
198
  tone: "warning"
197
199
  };
198
200
  case "error": return {
@@ -214,12 +216,20 @@ function attentionSummary(summary) {
214
216
  rest: "New items appear here as they happen."
215
217
  };
216
218
  const decisions = bySeverity.action_required;
219
+ const questions = summary.byKind.agent_question ?? 0;
220
+ const commands = summary.byKind.command_approval ?? 0;
221
+ const others = decisions - questions - commands;
217
222
  const problems = bySeverity.error + bySeverity.warning;
218
- const parts = [decisions > 0 ? `${count(decisions, "decision")} waiting for you` : null, problems > 0 ? `${count(problems, "error or warning", "errors or warnings")} to look at` : null].filter(Boolean);
223
+ const parts = [
224
+ questions > 0 ? `${count(questions, "question")} waiting for your answer` : null,
225
+ commands > 0 ? `${count(commands, "command")} waiting for your approval` : null,
226
+ others > 0 ? `${count(others, "decision")} waiting for you` : null,
227
+ problems > 0 ? `${count(problems, "error or warning", "errors or warnings")} to look at` : null
228
+ ].filter(Boolean);
219
229
  return {
220
230
  tone: decisions > 0 ? "warning" : "neutral",
221
231
  lead: `${count(openTotal, "open item")}.`,
222
- rest: `${parts.join(", and ")}.`.replace(/^./, (first) => first.toUpperCase())
232
+ rest: `${new Intl.ListFormat("en", { type: "conjunction" }).format(parts)}.`.replace(/^./, (first) => first.toUpperCase())
223
233
  };
224
234
  }
225
235
  /** Where an item is from: its Agent and Team, or the system. */
@@ -1,9 +1,7 @@
1
- import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
- import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
3
- import { a as CardForm, d as Chip, g as Notice, h as ListRow, o as CardList, r as CardBody, s as CardRow, x as Waiting, y as SetupCard } from "./parts-mabERIJZ.js";
4
- import { l as TextField, o as SecretField, s as SelectField } from "./form-BRQAsKKq.js";
5
- import { t as Route } from "./mcp-DB38leWS.js";
6
- import { t as ConfigPage } from "./ConfigPage-oXM3wyOU.js";
1
+ import { K as Button, M as SetupCard, O as ListRow, P as Waiting, b as CardRow, c as SelectField, dt as api, f as TextField, g as CardBody, k as Notice, pt as errorMessage, s as SecretField, v as CardForm, w as Chip, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
2
+ import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
3
+ import { t as Route } from "./mcp-CYQuYWGX.js";
4
+ import { t as ConfigPage } from "./ConfigPage-qP9ejjuw.js";
7
5
  import { useState } from "react";
8
6
  import { useRouter } from "@tanstack/react-router";
9
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-BijMHgqE.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/mcp.tsx
5
- var $$splitComponentImporter = () => import("./mcp-Ce6O8Qs2.js");
5
+ var $$splitComponentImporter = () => import("./mcp-BQ15a9dG.js");
6
6
  var fetchServers = createServerFn({ method: "GET" }).handler(createSsrRpc("278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7"));
7
7
  var Route = createFileRoute("/config/mcp")({
8
8
  loader: () => fetchServers(),