bazilion 0.51.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 (205) hide show
  1. package/dist/cli.js +74 -28
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +547 -187
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
  7. package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
  8. package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
  9. package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
  10. package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
  11. package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
  13. package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
  14. package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
  16. package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
  17. package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
  19. package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
  20. package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
  21. package/dist/web/client/assets/access-34_ShgHU.js +1 -0
  22. package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
  23. package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
  24. package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
  25. package/dist/web/client/assets/api-CoLs57oO.js +1 -0
  26. package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
  27. package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
  28. package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
  29. package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
  31. package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
  32. package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
  33. package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
  34. package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
  35. package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
  36. package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
  37. package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
  38. package/dist/web/client/assets/login-076Bc601.js +1 -0
  39. package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
  40. package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
  41. package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
  42. package/dist/web/client/assets/model-facts-DoB6QD5y.js +1 -0
  43. package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
  44. package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
  45. package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
  46. package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
  47. package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
  48. package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
  49. package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
  50. package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
  51. package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
  52. package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
  53. package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
  54. package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
  55. package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
  56. package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
  57. package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
  58. package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
  59. package/dist/web/server/assets/{AddProviderDialog-CR6TRYdZ.js → AddProviderDialog-Di5crZUB.js} +9 -205
  60. package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
  61. package/dist/web/server/assets/{ConfigPage-CIh3ohea.js → ConfigPage-oXM3wyOU.js} +2 -2
  62. package/dist/web/server/assets/{ConfirmDialog-B79K2KEW.js → ConfirmDialog-DfaJ--A6.js} +2 -2
  63. package/dist/web/server/assets/{ConnectionsView-BIMYdp9C.js → ConnectionsView-DZrLoNoW.js} +7 -7
  64. package/dist/web/server/assets/{Dialog-CVqpXxuN.js → Dialog-aup_yJv5.js} +1 -1
  65. package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
  66. package/dist/web/server/assets/ModelMenu-BAZeARx6.js +138 -0
  67. package/dist/web/server/assets/{Rail-Cg-efcpA.js → Rail-7JU6ly2O.js} +17 -107
  68. package/dist/web/server/assets/{SectionTabs-DrcgVeZd.js → SectionTabs-CWQ5orUW.js} +12 -5
  69. package/dist/web/server/assets/SpawnDialog-CYkwzETs.js +124 -0
  70. package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
  71. package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
  72. package/dist/web/server/assets/{TeamThread-5CjVPcDr.js → TeamThread-SyQpUvz5.js} +3 -3
  73. package/dist/web/server/assets/{UnsavedChangesGuard-CyF2Z9p1.js → UnsavedChangesGuard-DrOvPV14.js} +1 -1
  74. package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
  75. package/dist/web/server/assets/{_id-8bsYEcGg.js → _id-BGTgqsWm.js} +8 -4
  76. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  77. package/dist/web/server/assets/{_id-0fEWiVZX.js → _id-DPGzfmjG.js} +258 -206
  78. package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
  79. package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
  80. package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
  81. package/dist/web/server/assets/{tokens-C-oDTqnp.js → access-BJe-NduL.js} +5 -5
  82. package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
  83. package/dist/web/server/assets/{tokens-CEdl8puR.js → access-WWspT0v4.js} +5 -4
  84. package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
  85. package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
  86. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
  87. package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
  88. package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
  89. package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
  90. package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
  91. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
  92. package/dist/web/server/assets/{attention-CHQEQiZl.js → attention-DefKwvgm.js} +2 -2
  93. package/dist/web/server/assets/attention-johfkM0_.js +203 -0
  94. package/dist/web/server/assets/{config-DOp28gcy.js → config-Clz57LuN.js} +186 -87
  95. package/dist/web/server/assets/{config-DzgkbBoD.js → config-DYAaaE9Z.js} +2 -2
  96. package/dist/web/server/assets/{createSsrRpc-CcLbajrF.js → createSsrRpc-BijMHgqE.js} +2 -46
  97. package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
  98. package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
  99. package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
  100. package/dist/web/server/assets/{mcp-D3OCoHtO.js → mcp-DB38leWS.js} +2 -2
  101. package/dist/web/server/assets/model-facts-mrfrWQne.js +136 -0
  102. package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
  103. package/dist/web/server/assets/{router-Cs2Ak4II.js → router-C97bwlXi.js} +55 -50
  104. package/dist/web/server/assets/{routes-BSNOKE-C.js → routes-C4aGqXfr.js} +65 -17
  105. package/dist/web/server/assets/{routes-CO4l-GJ0.js → routes-DuOShl4q.js} +2 -2
  106. package/dist/web/server/assets/{routes-BVwqgZGI.js → routes-IHMVKpDK.js} +3 -3
  107. package/dist/web/server/assets/{skills-CggQJk6a.js → skills-B7sg0QKS.js} +2 -2
  108. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  109. package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
  110. package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
  111. package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
  112. package/dist/web/server/assets/{system-DtswhLW62.js → system-D3th6n2E.js} +4 -2
  113. package/dist/web/server/assets/{system-DsJfpBPl.js → system-DaP0ol67.js} +2 -2
  114. package/dist/web/server/assets/{teams-B6lBhvdL.js → teams-4cEZ4_rw.js} +4 -2
  115. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  116. package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
  117. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  118. package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
  119. package/dist/web/server/assets/{teams-Bp2tERZe.js → teams-CuKE5iAK.js} +2 -2
  120. package/dist/web/server/assets/{telegram-D2RZriz_.js → telegram-BnQADwnj.js} +5 -5
  121. package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
  122. package/dist/web/server/assets/{telegram-Gy7_9yih.js → telegram-CGol0CKX.js} +3 -3
  123. package/dist/web/server/assets/tools-BQeWn7Tj.js +12 -0
  124. package/dist/web/server/assets/tools-C-wwWjLI.js +12 -0
  125. package/dist/web/server/assets/tools-CURTfG2q.js +341 -0
  126. package/dist/web/server/assets/{use-resource-ChQozXVI.js → use-resource-DVzK0toP.js} +1 -1
  127. package/dist/web/server/assets/utils-C_uf36nf.js +8 -0
  128. package/dist/web/server/assets/{welcome-BLw1G6SS.js → welcome-OiZCAIHZ.js} +5 -5
  129. package/dist/web/server/assets/{welcome-ByAkvHSP.js → welcome-SNsE49JO.js} +2 -2
  130. package/dist/web/server/assets/{workspace-DeEYMPDX.js → workspace-DaitCM0t.js} +1 -8
  131. package/dist/web/server/server.js +30 -30
  132. package/dist/worker.js +202 -120
  133. package/dist/worker.js.map +1 -1
  134. package/package.json +1 -1
  135. package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +0 -1
  136. package/dist/web/client/assets/ConfigPage-pupvtSCX.js +0 -1
  137. package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +0 -1
  138. package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +0 -1
  139. package/dist/web/client/assets/Dialog-bg86_x4v.js +0 -1
  140. package/dist/web/client/assets/FieldRow-B8eIni5r.js +0 -1
  141. package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +0 -1
  142. package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +0 -1
  143. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  144. package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +0 -1
  145. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  146. package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +0 -1
  147. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  148. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  149. package/dist/web/client/assets/TeamThread-DFvbakHo.js +0 -1
  150. package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +0 -1
  151. package/dist/web/client/assets/_id-BjNtLwak.js +0 -1
  152. package/dist/web/client/assets/_id-BklaQf3z.js +0 -1
  153. package/dist/web/client/assets/agents-D9cUF2d9.js +0 -1
  154. package/dist/web/client/assets/agents-wuBlzx4e.js +0 -1
  155. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  156. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  157. package/dist/web/client/assets/attention-8ZkSLl2e.js +0 -1
  158. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  159. package/dist/web/client/assets/config-Con_BbSh.js +0 -1
  160. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  161. package/dist/web/client/assets/index-Br9qkGM-.js +0 -54
  162. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  163. package/dist/web/client/assets/login-llnOKSJc.js +0 -1
  164. package/dist/web/client/assets/mcp-zIUguMSI.js +0 -1
  165. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  166. package/dist/web/client/assets/routes-BY5uqJ2n.js +0 -76
  167. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  168. package/dist/web/client/assets/services-esLrcTwe.js +0 -1
  169. package/dist/web/client/assets/skills-DzYXksM0.js +0 -1
  170. package/dist/web/client/assets/style-Cdzqt_TJ.js +0 -7
  171. package/dist/web/client/assets/styles-BRSS6yrm.css +0 -2
  172. package/dist/web/client/assets/system-CsI66nyZ.js +0 -1
  173. package/dist/web/client/assets/teams-CHE_zpxS.js +0 -1
  174. package/dist/web/client/assets/teams-dxG9OESG.js +0 -1
  175. package/dist/web/client/assets/telegram-C3dGndJV.js +0 -1
  176. package/dist/web/client/assets/tokens-CNNH-Wr9.js +0 -1
  177. package/dist/web/client/assets/use-resource-BjnxgGvh.js +0 -1
  178. package/dist/web/client/assets/welcome-C8EOtc8P.js +0 -1
  179. package/dist/web/server/assets/FieldRow-CHVhX2rS.js +0 -173
  180. package/dist/web/server/assets/ModelSelect-DrZrdndo.js +0 -43
  181. package/dist/web/server/assets/SkillFindings-DSDiL6hn.js +0 -46
  182. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  183. package/dist/web/server/assets/SpawnDialog-BUUlLxE9.js +0 -129
  184. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  185. package/dist/web/server/assets/TeamForm-CvQAs2FA.js +0 -96
  186. package/dist/web/server/assets/_id-BvAaRSUW.js +0 -18
  187. package/dist/web/server/assets/_id-Dg6M_qfr.js +0 -383
  188. package/dist/web/server/assets/_id-Dji7xr9C.js +0 -28
  189. package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +0 -214
  190. package/dist/web/server/assets/agents-BDA5yYZ2.js +0 -130
  191. package/dist/web/server/assets/agents-BTDxmp-F.js +0 -12
  192. package/dist/web/server/assets/agents-DM7guWF2.js +0 -14
  193. package/dist/web/server/assets/agents-DktqUffG.js +0 -327
  194. package/dist/web/server/assets/agents-xgZ9rsac.js +0 -27
  195. package/dist/web/server/assets/attention-De3-ehuf.js +0 -216
  196. package/dist/web/server/assets/mcp-CO_tycXU.js +0 -250
  197. package/dist/web/server/assets/services-DZLxUSG8.js +0 -13
  198. package/dist/web/server/assets/services-DsHRLL8q.js +0 -12
  199. package/dist/web/server/assets/services-DsvpaF3L.js +0 -74
  200. package/dist/web/server/assets/skills-DKYV7PTk.js +0 -275
  201. package/dist/web/server/assets/system-CZ2qzBz3.js +0 -138
  202. package/dist/web/server/assets/teams-B6PzNcoy.js +0 -88
  203. package/dist/web/server/assets/teams-C-8iz-uV.js +0 -108
  204. package/dist/web/server/assets/telegram-CXrP3hMp.js +0 -984
  205. package/dist/web/server/assets/tokens-DSLwQ1Pw.js +0 -232
@@ -0,0 +1,380 @@
1
+ import { t as cn } from "./utils-C_uf36nf.js";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { AlertTriangle, Check, Info, MoreHorizontal, Search, X } from "lucide-react";
4
+ import { DropdownMenu } from "radix-ui";
5
+ //#region src/components/ui/parts.tsx
6
+ var CHIP = {
7
+ success: "bg-success/10 text-success",
8
+ warning: "bg-warning/10 text-warning",
9
+ neutral: "bg-muted text-muted-foreground"
10
+ };
11
+ function Chip({ tone, children }) {
12
+ return /* @__PURE__ */ jsxs("span", {
13
+ className: cn("inline-flex min-h-7 items-center gap-1.5 rounded-full px-3 text-xs font-semibold", CHIP[tone]),
14
+ children: [/* @__PURE__ */ jsx("span", {
15
+ "aria-hidden": "true",
16
+ className: "size-1.5 shrink-0 rounded-full bg-current"
17
+ }), children]
18
+ });
19
+ }
20
+ /** A search box: the magnifier and the input are one field, with one focus ring. */
21
+ function SearchField({ label, placeholder, value, onChange, className }) {
22
+ return /* @__PURE__ */ jsxs("label", {
23
+ className: cn("m-0 flex min-w-0 items-center gap-2 rounded-xl border border-border bg-muted/40 px-3 transition-shadow focus-within:border-primary focus-within:bg-card focus-within:shadow-[0_0_0_3px_var(--color-sapphire-glow)]", className),
24
+ children: [/* @__PURE__ */ jsx(Search, {
25
+ className: "size-4 shrink-0 text-muted-foreground",
26
+ "aria-hidden": "true"
27
+ }), /* @__PURE__ */ jsx("input", {
28
+ type: "search",
29
+ "aria-label": label,
30
+ placeholder,
31
+ value,
32
+ onChange: (event) => onChange(event.target.value),
33
+ className: "min-h-10 border-0 bg-transparent px-0 shadow-none focus:bg-transparent focus:shadow-none",
34
+ style: { outline: "none" }
35
+ })]
36
+ });
37
+ }
38
+ /** A yes/no setting. */
39
+ function Switch({ checked, label, disabled = false, onChange }) {
40
+ return /* @__PURE__ */ jsx("button", {
41
+ type: "button",
42
+ role: "switch",
43
+ "aria-checked": checked,
44
+ "aria-label": label,
45
+ disabled,
46
+ onClick: () => onChange(!checked),
47
+ className: cn("relative h-7 w-[46px] shrink-0 rounded-full transition-colors disabled:opacity-50", checked ? "bg-primary" : "bg-fawn"),
48
+ children: /* @__PURE__ */ jsx("span", { className: cn("absolute top-[3px] size-[22px] rounded-full bg-white shadow transition-[left]", checked ? "left-[21px]" : "left-[3px]") })
49
+ });
50
+ }
51
+ /** Something is being waited for. */
52
+ function Waiting({ children }) {
53
+ return /* @__PURE__ */ jsxs("div", {
54
+ role: "status",
55
+ className: "flex items-center gap-3 text-sm font-semibold text-foreground",
56
+ children: [/* @__PURE__ */ jsx("span", {
57
+ "aria-hidden": "true",
58
+ className: "flex size-5 shrink-0 items-center justify-center",
59
+ children: /* @__PURE__ */ jsx("span", { className: "size-2.5 animate-pulse rounded-full bg-primary" })
60
+ }), /* @__PURE__ */ jsx("span", { children })]
61
+ });
62
+ }
63
+ /**
64
+ * A card of a Setup page: an icon, what the card holds, its state or its main action, then its
65
+ * rows (`CardRow`), its text and controls (`CardBody`, `CardForm`) or its facts (`Facts`).
66
+ */
67
+ function SetupCard({ icon, title, description, action, labelledBy, children }) {
68
+ return /* @__PURE__ */ jsxs("section", {
69
+ "aria-labelledby": labelledBy,
70
+ className: "min-w-0 overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
71
+ children: [/* @__PURE__ */ jsxs("div", {
72
+ className: "flex flex-wrap items-center gap-x-4 gap-y-3 px-4 py-4 sm:px-5",
73
+ children: [/* @__PURE__ */ jsxs("div", {
74
+ className: "flex min-w-0 flex-1 basis-64 items-center gap-4",
75
+ children: [/* @__PURE__ */ jsx("span", {
76
+ "aria-hidden": "true",
77
+ className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent text-accent-foreground",
78
+ children: icon
79
+ }), /* @__PURE__ */ jsxs("div", {
80
+ className: "min-w-0",
81
+ children: [/* @__PURE__ */ jsx("h2", {
82
+ id: labelledBy,
83
+ className: "m-0 font-body text-[1.05rem] font-semibold text-foreground",
84
+ children: title
85
+ }), /* @__PURE__ */ jsx("div", {
86
+ className: "text-sm text-muted-foreground",
87
+ children: description
88
+ })]
89
+ })]
90
+ }), action]
91
+ }), children]
92
+ });
93
+ }
94
+ /** A row that spans a card under its heading: the unit of every list. */
95
+ var CARD_ROW = "flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5";
96
+ function CardRow({ className, ...props }) {
97
+ return /* @__PURE__ */ jsx("div", {
98
+ className: cn(CARD_ROW, className),
99
+ ...props
100
+ });
101
+ }
102
+ /** A card's list of things, each a `ListRow`. */
103
+ function CardList({ className, ...props }) {
104
+ return /* @__PURE__ */ jsx("ul", {
105
+ className: cn("m-0 list-none p-0", className),
106
+ ...props
107
+ });
108
+ }
109
+ /**
110
+ * One thing in a card's list: its name with its state, a line of what there is to know about it,
111
+ * what can be done with it, and under all that whatever it last reported.
112
+ */
113
+ function ListRow({ leading, title, chip, meta, actions, children, inline = false }) {
114
+ return /* @__PURE__ */ jsxs("li", {
115
+ className: cn(CARD_ROW, "min-h-14 py-2.5", inline && "flex-nowrap"),
116
+ children: [
117
+ leading && /* @__PURE__ */ jsx("span", {
118
+ className: "flex shrink-0 self-start pt-0.5",
119
+ children: leading
120
+ }),
121
+ /* @__PURE__ */ jsxs("div", {
122
+ className: cn("min-w-0 flex-1", inline ? "basis-0" : "basis-64"),
123
+ children: [/* @__PURE__ */ jsxs("div", {
124
+ className: "flex min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1",
125
+ children: [/* @__PURE__ */ jsx("span", {
126
+ className: "min-w-0 break-words text-[0.95rem] font-semibold text-foreground",
127
+ children: title
128
+ }), chip]
129
+ }), meta && /* @__PURE__ */ jsx("div", {
130
+ className: "mt-0.5 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-0.5 text-[0.82rem] text-muted-foreground",
131
+ children: meta
132
+ })]
133
+ }),
134
+ actions && /* @__PURE__ */ jsx("div", {
135
+ className: "flex shrink-0 flex-wrap items-center gap-2",
136
+ children: actions
137
+ }),
138
+ children && /* @__PURE__ */ jsx("div", {
139
+ className: "min-w-0 basis-full pb-1",
140
+ children
141
+ })
142
+ ]
143
+ });
144
+ }
145
+ var CARD_BODY = "grid gap-4 border-t border-border px-4 py-4 sm:px-5";
146
+ /** The part of a card that holds text and controls, with the card's own margins. */
147
+ function CardBody({ className, ...props }) {
148
+ return /* @__PURE__ */ jsx("div", {
149
+ className: cn(CARD_BODY, className),
150
+ ...props
151
+ });
152
+ }
153
+ /** A card's form: the same space as `CardBody`. */
154
+ function CardForm({ className, ...props }) {
155
+ return /* @__PURE__ */ jsx("form", {
156
+ className: cn(CARD_BODY, className),
157
+ ...props
158
+ });
159
+ }
160
+ var NOTICE = {
161
+ success: {
162
+ box: "border-success/30 bg-success/10",
163
+ mark: "text-success",
164
+ icon: Check
165
+ },
166
+ warning: {
167
+ box: "border-warning/35 bg-warning/10",
168
+ mark: "text-warning",
169
+ icon: AlertTriangle
170
+ },
171
+ danger: {
172
+ box: "border-danger/30 bg-danger/10",
173
+ mark: "text-danger",
174
+ icon: AlertTriangle
175
+ },
176
+ neutral: {
177
+ box: "border-border bg-muted/40",
178
+ mark: "text-muted-foreground",
179
+ icon: Info
180
+ }
181
+ };
182
+ /** Something to know inside a card: a warning, a result, a thing to do next. */
183
+ function Notice({ tone = "warning", title, children, actions, role = "status", className }) {
184
+ const { box, mark, icon: Icon } = NOTICE[tone];
185
+ return /* @__PURE__ */ jsxs("div", {
186
+ role,
187
+ className: cn("flex items-start gap-2.5 rounded-xl border px-3.5 py-3 text-sm text-foreground", box, className),
188
+ children: [/* @__PURE__ */ jsx(Icon, {
189
+ className: cn("mt-0.5 size-4 shrink-0", mark),
190
+ "aria-hidden": "true"
191
+ }), /* @__PURE__ */ jsxs("div", {
192
+ className: "min-w-0 flex-1 break-words",
193
+ children: [
194
+ title && /* @__PURE__ */ jsx("div", {
195
+ className: "font-semibold",
196
+ children: title
197
+ }),
198
+ children,
199
+ actions && /* @__PURE__ */ jsx("div", {
200
+ className: "mt-2.5 flex flex-wrap gap-2",
201
+ children: actions
202
+ })
203
+ ]
204
+ })]
205
+ });
206
+ }
207
+ var BANNER = {
208
+ success: "border-success/30 bg-success/10",
209
+ warning: "border-warning/35 bg-warning/10",
210
+ danger: "border-danger/30 bg-danger/10",
211
+ neutral: "border-border bg-card shadow-baziu-sm"
212
+ };
213
+ /** The line above a page's cards: how things stand as a whole, with the one thing to do. */
214
+ function Banner({ tone, lead, children, action, role = "status" }) {
215
+ const Icon = tone === "neutral" ? null : NOTICE[tone].icon;
216
+ return /* @__PURE__ */ jsxs("div", {
217
+ role,
218
+ className: cn("flex flex-wrap items-center gap-3 rounded-2xl border px-4 py-3 text-sm", BANNER[tone]),
219
+ children: [/* @__PURE__ */ jsxs("div", {
220
+ className: cn("flex min-w-0 flex-1 items-start gap-3", Icon ? "basis-64" : "basis-72"),
221
+ children: [Icon && /* @__PURE__ */ jsx(Icon, {
222
+ className: cn("mt-0.5 size-5 shrink-0", NOTICE[tone].mark),
223
+ "aria-hidden": "true"
224
+ }), /* @__PURE__ */ jsxs("div", {
225
+ className: "min-w-0",
226
+ children: [/* @__PURE__ */ jsx("span", {
227
+ className: "font-semibold text-foreground",
228
+ children: lead
229
+ }), children && /* @__PURE__ */ jsxs(Fragment, { children: [" ", /* @__PURE__ */ jsx("span", {
230
+ className: "text-muted-foreground",
231
+ children
232
+ })] })]
233
+ })]
234
+ }), action]
235
+ });
236
+ }
237
+ /** Facts about something: a name and what it is now, one to a row. */
238
+ function Facts({ children, className }) {
239
+ return /* @__PURE__ */ jsx("dl", {
240
+ className: cn("m-0 divide-y divide-border border-t border-border px-4 text-sm sm:px-5", className),
241
+ children
242
+ });
243
+ }
244
+ function Fact({ label, tone, children }) {
245
+ return /* @__PURE__ */ jsxs("div", {
246
+ className: "grid gap-x-4 gap-y-0.5 py-3 sm:grid-cols-[14rem_minmax(0,1fr)]",
247
+ children: [/* @__PURE__ */ jsx("dt", {
248
+ className: "text-muted-foreground",
249
+ children: label
250
+ }), /* @__PURE__ */ jsx("dd", {
251
+ className: cn("m-0 min-w-0 break-words font-medium", tone === "success" && "text-success", tone === "warning" && "text-warning", (tone === void 0 || tone === "neutral") && "text-foreground"),
252
+ children
253
+ })]
254
+ });
255
+ }
256
+ /** The outcome of some checks, one to a line. */
257
+ function CheckList({ children, ...props }) {
258
+ return /* @__PURE__ */ jsx("ul", {
259
+ className: "m-0 grid list-none gap-2.5 p-0",
260
+ ...props,
261
+ children
262
+ });
263
+ }
264
+ function CheckItem({ ok, label, children }) {
265
+ return /* @__PURE__ */ jsxs("li", {
266
+ className: "flex items-start gap-2.5 text-sm",
267
+ children: [/* @__PURE__ */ jsx("span", {
268
+ "aria-hidden": "true",
269
+ className: cn("mt-px flex size-5 shrink-0 items-center justify-center rounded-full", ok ? "bg-success/10 text-success" : "bg-warning/10 text-warning"),
270
+ children: ok ? /* @__PURE__ */ jsx(Check, { className: "size-3.5" }) : /* @__PURE__ */ jsx(X, { className: "size-3.5" })
271
+ }), /* @__PURE__ */ jsxs("span", {
272
+ className: "min-w-0 break-words",
273
+ children: [
274
+ /* @__PURE__ */ jsx("span", {
275
+ className: "sr-only",
276
+ children: ok ? "Passed: " : "Failed: "
277
+ }),
278
+ /* @__PURE__ */ jsx("span", {
279
+ className: "font-semibold text-foreground",
280
+ children: label
281
+ }),
282
+ children && /* @__PURE__ */ jsx("span", {
283
+ className: cn("ml-2", ok ? "text-muted-foreground" : "font-medium text-warning"),
284
+ children
285
+ })
286
+ ]
287
+ })]
288
+ });
289
+ }
290
+ /** A card's line of controls above its list: a search box, a filter, an action. */
291
+ function CardToolbar({ className, ...props }) {
292
+ return /* @__PURE__ */ jsx("div", {
293
+ className: cn(CARD_ROW, "gap-y-2 py-3", className),
294
+ ...props
295
+ });
296
+ }
297
+ /** The heading of a group of rows inside a card's list. */
298
+ function GroupHeader({ title, meta, action }) {
299
+ return /* @__PURE__ */ jsxs("div", {
300
+ className: cn(CARD_ROW, "min-h-10 bg-muted/50 py-2"),
301
+ children: [
302
+ /* @__PURE__ */ jsx("h3", {
303
+ className: "m-0 min-w-0 font-body text-[0.72rem] font-bold uppercase tracking-[0.08em] text-muted-foreground",
304
+ children: title
305
+ }),
306
+ meta && /* @__PURE__ */ jsx("span", {
307
+ className: "text-xs text-muted-foreground",
308
+ children: meta
309
+ }),
310
+ action && /* @__PURE__ */ jsx("span", {
311
+ className: "ml-auto text-xs font-semibold",
312
+ children: action
313
+ })
314
+ ]
315
+ });
316
+ }
317
+ /** What a card shows when it has nothing to list: what would be here, and how to get it. */
318
+ function CardEmpty({ icon, title, children, action }) {
319
+ return /* @__PURE__ */ jsxs("div", {
320
+ className: "flex flex-col items-center gap-2 border-t border-border px-4 py-9 text-center sm:px-5",
321
+ children: [
322
+ icon && /* @__PURE__ */ jsx("span", {
323
+ "aria-hidden": "true",
324
+ className: "mb-1 flex size-10 items-center justify-center rounded-full bg-muted text-muted-foreground",
325
+ children: icon
326
+ }),
327
+ /* @__PURE__ */ jsx("p", {
328
+ className: "m-0 text-[0.95rem] font-semibold text-foreground",
329
+ children: title
330
+ }),
331
+ children && /* @__PURE__ */ jsx("p", {
332
+ className: "m-0 max-w-md text-sm text-muted-foreground",
333
+ children
334
+ }),
335
+ action && /* @__PURE__ */ jsx("div", {
336
+ className: "mt-2 flex flex-wrap justify-center gap-2",
337
+ children: action
338
+ })
339
+ ]
340
+ });
341
+ }
342
+ var MENU_ITEM = "flex w-full cursor-pointer flex-col items-start gap-0.5 rounded-lg px-2.5 py-2 text-left text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:cursor-not-allowed";
343
+ /**
344
+ * The rarer and the destructive actions on one row, behind a "More" button: the row itself keeps
345
+ * only what is done most.
346
+ */
347
+ function RowMenu({ label, items, disabled = false }) {
348
+ const shown = items.filter((item) => Boolean(item));
349
+ return /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
350
+ "aria-label": label,
351
+ disabled,
352
+ className: "inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-transparent text-muted-foreground transition-colors hover:border-border hover:bg-card hover:text-foreground disabled:opacity-50 data-[state=open]:border-border data-[state=open]:bg-card data-[state=open]:text-foreground",
353
+ children: /* @__PURE__ */ jsx(MoreHorizontal, {
354
+ className: "size-[18px]",
355
+ "aria-hidden": "true"
356
+ })
357
+ }), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu.Content, {
358
+ align: "end",
359
+ sideOffset: 6,
360
+ className: "z-50 min-w-[13rem] max-w-[calc(100vw-1.5rem)] rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-baziu-lg",
361
+ children: shown.map((item) => /* @__PURE__ */ jsxs(DropdownMenu.Item, {
362
+ "aria-disabled": item.disabledReason ? true : void 0,
363
+ onSelect: (event) => {
364
+ if (item.disabledReason) event.preventDefault();
365
+ else item.onSelect();
366
+ },
367
+ className: cn(MENU_ITEM, item.disabledReason && "cursor-not-allowed"),
368
+ style: { outline: "none" },
369
+ children: [/* @__PURE__ */ jsx("span", {
370
+ className: cn("font-semibold", item.disabledReason ? "text-muted-foreground" : item.danger ? "text-danger" : "text-foreground"),
371
+ children: item.label
372
+ }), item.disabledReason && /* @__PURE__ */ jsx("span", {
373
+ className: "text-xs text-muted-foreground",
374
+ children: item.disabledReason
375
+ })]
376
+ }, item.label))
377
+ }) })] });
378
+ }
379
+ //#endregion
380
+ export { RowMenu as _, CardForm as a, Switch as b, CardToolbar as c, Chip as d, Fact as f, Notice as g, ListRow as h, CardEmpty as i, CheckItem as l, GroupHeader as m, CARD_ROW as n, CardList as o, Facts as p, CardBody as r, CardRow as s, Banner as t, CheckList as u, SearchField as v, Waiting as x, SetupCard as y };
@@ -1,25 +1,25 @@
1
1
  import { r as readCookie } from "./cookies-HnTYjKRp.js";
2
- import { E as errorMessage, c as parseWorkspaceSearch, d as Button, f as AgentAvatar, m as agentState, w as api } from "./workspace-DeEYMPDX.js";
2
+ import { C as api, T as errorMessage, c as parseWorkspaceSearch, d as AgentAvatar, p as agentState, u as Button } from "./workspace-DaitCM0t.js";
3
3
  import { n as publicOriginConfig } from "./public-origin-BpDkdS5Q.js";
4
4
  import { t as DAEMON_BASE_URL } from "./daemon-client-B_ZRIIrT.js";
5
- import { o as PageShell } from "./createSsrRpc-CcLbajrF.js";
5
+ import { a as PageShell } from "./createSsrRpc-BijMHgqE.js";
6
6
  import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route$3 } from "./login-JoIjlcmu.js";
7
- import { i as isSetupOpen, n as PUBLIC_PATHS, r as fetchAuthState, t as Route$4 } from "./welcome-ByAkvHSP.js";
8
- import { t as Route$5 } from "./routes-BVwqgZGI.js";
9
- import { t as Route$6 } from "./teams-Bp2tERZe.js";
10
- import { t as Route$7 } from "./skills-CggQJk6a.js";
11
- import { t as Route$8 } from "./config-DzgkbBoD.js";
12
- import { t as Route$9 } from "./attention-CHQEQiZl.js";
13
- import { t as Route$10 } from "./agents-DM7guWF2.js";
14
- import { t as Route$11 } from "./tokens-C-oDTqnp.js";
15
- import { t as Route$12 } from "./system-DsJfpBPl.js";
16
- import { t as Route$13 } from "./services-DZLxUSG8.js";
17
- import { t as Route$14 } from "./mcp-D3OCoHtO.js";
18
- import { t as Route$15 } from "./teams-B6lBhvdL.js";
19
- import { t as Route$16 } from "./agents-BTDxmp-F.js";
20
- import { t as Route$17 } from "./telegram-D2RZriz_.js";
21
- import { t as Route$18 } from "./_id-8bsYEcGg.js";
22
- import { t as Route$19 } from "./_id-BvAaRSUW.js";
7
+ import { i as isSetupOpen, n as PUBLIC_PATHS, r as fetchAuthState, t as Route$4 } from "./welcome-SNsE49JO.js";
8
+ import { t as Route$5 } from "./routes-IHMVKpDK.js";
9
+ import { t as Route$6 } from "./teams-CuKE5iAK.js";
10
+ import { t as Route$7 } from "./skills-B7sg0QKS.js";
11
+ import { t as Route$8 } from "./config-DYAaaE9Z.js";
12
+ import { t as Route$9 } from "./attention-DefKwvgm.js";
13
+ import { t as Route$10 } from "./agents-1sjSvp5p.js";
14
+ import { t as Route$11 } from "./tools-BQeWn7Tj.js";
15
+ import { t as Route$12 } from "./telegram-BnQADwnj.js";
16
+ import { t as Route$13 } from "./system-DaP0ol67.js";
17
+ import { t as Route$14 } from "./mcp-DB38leWS.js";
18
+ import { t as Route$15 } from "./access-BJe-NduL.js";
19
+ import { t as Route$16 } from "./teams-4cEZ4_rw.js";
20
+ import { t as Route$17 } from "./agents-DUI4Yjtg.js";
21
+ import { t as Route$18 } from "./_id-BGTgqsWm.js";
22
+ import { t as Route$19 } from "./_id-DXm9W55C.js";
23
23
  import { useEffect, useMemo, useState } from "react";
24
24
  import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, redirect, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
25
25
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -101,27 +101,32 @@ var PAGES = [
101
101
  ],
102
102
  [
103
103
  "Agents",
104
- "Every Agent, archived ones too",
104
+ "Every Agent by Team: archive, move, delete",
105
105
  "/agents"
106
106
  ],
107
107
  [
108
108
  "Teams",
109
- "Register and remove Teams",
109
+ "Create and remove Teams",
110
110
  "/teams"
111
111
  ],
112
112
  [
113
- "Templates",
114
- "Agent and Team templates",
115
- "/templates"
113
+ "Agent templates",
114
+ "What a new Agent starts with",
115
+ "/templates/agents"
116
+ ],
117
+ [
118
+ "Team templates",
119
+ "Rosters that spawn a whole Team",
120
+ "/templates/teams"
116
121
  ],
117
122
  [
118
123
  "Skills",
119
- "Prompt skills",
124
+ "Import, review and remove prompt skills",
120
125
  "/skills"
121
126
  ],
122
127
  [
123
128
  "Setup",
124
- "Models, providers, services, access",
129
+ "Models, tools, MCP, Telegram, access, system",
125
130
  "/config"
126
131
  ]
127
132
  ];
@@ -341,31 +346,31 @@ var MANAGE_LINKS = [
341
346
  {
342
347
  href: "/agents",
343
348
  label: "Agents",
344
- description: "Every Agent: archive, restore, delete.",
349
+ description: "Every Agent by Team: archive, move, delete.",
345
350
  icon: Bot
346
351
  },
347
352
  {
348
353
  href: "/teams",
349
354
  label: "Teams",
350
- description: "Register a Team or remove an empty one.",
355
+ description: "Create a Team, or remove an empty one.",
351
356
  icon: UsersRound
352
357
  },
353
358
  {
354
359
  href: "/templates",
355
360
  label: "Templates",
356
- description: "Reusable Agent behavior and Team rosters.",
361
+ description: "What new Agents start with, and Team rosters.",
357
362
  icon: LayoutTemplate
358
363
  },
359
364
  {
360
365
  href: "/skills",
361
366
  label: "Skills",
362
- description: "Prompt skills available to your agents.",
367
+ description: "Import, review and remove prompt skills.",
363
368
  icon: Sparkles
364
369
  },
365
370
  {
366
371
  href: "/config",
367
372
  label: "Setup",
368
- description: "Models and providers, services, integrations, access.",
373
+ description: "Models, tools, MCP, Telegram, access, system.",
369
374
  icon: Settings2
370
375
  }
371
376
  ];
@@ -555,7 +560,7 @@ function navButtonClass(active) {
555
560
  }
556
561
  //#endregion
557
562
  //#region src/styles.css?url
558
- var styles_default = "/assets/styles-BRSS6yrm.css";
563
+ var styles_default = "/assets/styles-C7Ztw15K.css";
559
564
  //#endregion
560
565
  //#region src/routes/__root.tsx
561
566
  var THEME_INIT_SCRIPT = `(function(){try{var t=localStorage.getItem('baziu-theme');var sd=window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var d=t==='dark'||((t===null||t==='system')&&sd);document.documentElement.classList.toggle('dark',d);}catch(e){}})();`;
@@ -806,19 +811,19 @@ var AgentsIndexRoute = Route$10.update({
806
811
  path: "/agents/",
807
812
  getParentRoute: () => Route$2
808
813
  });
809
- var ConfigTokensRoute = Route$11.update({
810
- id: "/config/tokens",
811
- path: "/config/tokens",
814
+ var ConfigToolsRoute = Route$11.update({
815
+ id: "/config/tools",
816
+ path: "/config/tools",
812
817
  getParentRoute: () => Route$2
813
818
  });
814
- var ConfigSystemRoute = Route$12.update({
815
- id: "/config/system",
816
- path: "/config/system",
819
+ var ConfigTelegramRoute = Route$12.update({
820
+ id: "/config/telegram",
821
+ path: "/config/telegram",
817
822
  getParentRoute: () => Route$2
818
823
  });
819
- var ConfigServicesRoute = Route$13.update({
820
- id: "/config/services",
821
- path: "/config/services",
824
+ var ConfigSystemRoute = Route$13.update({
825
+ id: "/config/system",
826
+ path: "/config/system",
822
827
  getParentRoute: () => Route$2
823
828
  });
824
829
  var ConfigMcpRoute = Route$14.update({
@@ -826,26 +831,26 @@ var ConfigMcpRoute = Route$14.update({
826
831
  path: "/config/mcp",
827
832
  getParentRoute: () => Route$2
828
833
  });
834
+ var ConfigAccessRoute = Route$15.update({
835
+ id: "/config/access",
836
+ path: "/config/access",
837
+ getParentRoute: () => Route$2
838
+ });
829
839
  var ApiSplatRoute = Route.update({
830
840
  id: "/api/$",
831
841
  path: "/api/$",
832
842
  getParentRoute: () => Route$2
833
843
  });
834
- var TemplatesTeamsIndexRoute = Route$15.update({
844
+ var TemplatesTeamsIndexRoute = Route$16.update({
835
845
  id: "/templates/teams/",
836
846
  path: "/templates/teams/",
837
847
  getParentRoute: () => Route$2
838
848
  });
839
- var TemplatesAgentsIndexRoute = Route$16.update({
849
+ var TemplatesAgentsIndexRoute = Route$17.update({
840
850
  id: "/templates/agents/",
841
851
  path: "/templates/agents/",
842
852
  getParentRoute: () => Route$2
843
853
  });
844
- var ConfigIntegrationsTelegramRoute = Route$17.update({
845
- id: "/config/integrations/telegram",
846
- path: "/config/integrations/telegram",
847
- getParentRoute: () => Route$2
848
- });
849
854
  var TemplatesTeamsIdIndexRoute = Route$18.update({
850
855
  id: "/templates/teams/$id/",
851
856
  path: "/templates/teams/$id/",
@@ -856,17 +861,17 @@ var rootRouteChildren = {
856
861
  LoginRoute,
857
862
  WelcomeRoute,
858
863
  ApiSplatRoute,
864
+ ConfigAccessRoute,
859
865
  ConfigMcpRoute,
860
- ConfigServicesRoute,
861
866
  ConfigSystemRoute,
862
- ConfigTokensRoute,
867
+ ConfigTelegramRoute,
868
+ ConfigToolsRoute,
863
869
  AgentsIndexRoute,
864
870
  AttentionIndexRoute,
865
871
  ConfigIndexRoute,
866
872
  SkillsIndexRoute,
867
873
  TeamsIndexRoute,
868
874
  TemplatesIndexRoute,
869
- ConfigIntegrationsTelegramRoute,
870
875
  TemplatesAgentsIndexRoute,
871
876
  TemplatesTeamsIndexRoute,
872
877
  TemplatesAgentsIdIndexRoute: Route$19.update({