bazilion 0.55.0 → 0.56.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 +192 -37
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +1164 -412
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-DZ9mXFdq.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-BfG3a-ri.js +1 -0
  7. package/dist/web/client/assets/{Button-bTJUy9Qf.js → Button-CoKQRO-s.js} +1 -1
  8. package/dist/web/client/assets/ConfigPage-Ch-DSJUO.js +1 -0
  9. package/dist/web/client/assets/ConfirmDialog-B_jXAPmh.js +1 -0
  10. package/dist/web/client/assets/ConnectionsView-D1Liebtf.js +1 -0
  11. package/dist/web/client/assets/ManagePage-kd7iWYEL.js +1 -0
  12. package/dist/web/client/assets/{SectionTabs-D7kPQGoh.js → SectionTabs-Dc0bNn-J.js} +1 -1
  13. package/dist/web/client/assets/{Segmented-oPkAHPO1.js → Segmented-iylzLwE6.js} +1 -1
  14. package/dist/web/client/assets/SkillsParts-C5T7sYDA.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-DatFF4f_.js +1 -0
  16. package/dist/web/client/assets/TeamForm-l-N_PYeE.js +1 -0
  17. package/dist/web/client/assets/TeamThread-BWmIQiAh.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-vQBdMl8h.js +1 -0
  19. package/dist/web/client/assets/_id-C6SADaiD.js +1 -0
  20. package/dist/web/client/assets/_id-CC9r0qsr.js +1 -0
  21. package/dist/web/client/assets/access-BbQFbTPh.js +1 -0
  22. package/dist/web/client/assets/{agent-actions-CUee6aJq.js → agent-actions-B-9KIwn6.js} +1 -1
  23. package/dist/web/client/assets/agents-BXwzmHu8.js +1 -0
  24. package/dist/web/client/assets/agents-BtETzVIY.js +1 -0
  25. package/dist/web/client/assets/arrow-right-BqqfPqVi.js +1 -0
  26. package/dist/web/client/assets/attention-BMrZJ9ui.js +1 -0
  27. package/dist/web/client/assets/{bot-BCone8es.js → bot-BHky7KAX.js} +1 -1
  28. package/dist/web/client/assets/chart-column-DTsDbzL0.js +1 -0
  29. package/dist/web/client/assets/chevron-right-D1shxvdo.js +1 -0
  30. package/dist/web/client/assets/config-B2ZDYo52.js +1 -0
  31. package/dist/web/client/assets/{createLucideIcon-jxSFpY0Q.js → createLucideIcon-CZHSSDYA.js} +1 -1
  32. package/dist/web/client/assets/{download-Dy88XavQ.js → download-Dr0PgyMr.js} +1 -1
  33. package/dist/web/client/assets/es2015-D1pnOGPG.js +41 -0
  34. package/dist/web/client/assets/{file-text-DPsZ8-h9.js → file-text-D6OTHixJ.js} +1 -1
  35. package/dist/web/client/assets/{images-QBh_rL8b.js → images-BULrW-FC.js} +1 -1
  36. package/dist/web/client/assets/index-B-N6NIX4.js +14 -0
  37. package/dist/web/client/assets/{key-round-C-I8fAG0.js → key-round-DmSZN0Kq.js} +1 -1
  38. package/dist/web/client/assets/{list-checks-C9Q-bjEi.js → list-checks-DdTdAQXS.js} +1 -1
  39. package/dist/web/client/assets/login-DM3q-V4R.js +1 -0
  40. package/dist/web/client/assets/{manage-BaIU5zKy.js → manage-R57MUzsY.js} +1 -1
  41. package/dist/web/client/assets/mcp-CSHrVH1t.js +1 -0
  42. package/dist/web/client/assets/{message-square-Bwf9cHOx.js → message-square-B_pULba_.js} +1 -1
  43. package/dist/web/client/assets/{network-B3FA93gC.js → network-BqmVqC4_.js} +1 -1
  44. package/dist/web/client/assets/parts-68zf8Fgw.js +1 -0
  45. package/dist/web/client/assets/plus-CEKaHPBw.js +1 -0
  46. package/dist/web/client/assets/preload-helper-CZOd_z6l.js +1 -0
  47. package/dist/web/client/assets/routes-DOoeKVwr.js +85 -0
  48. package/dist/web/client/assets/skills-CPZftp9O.js +1 -0
  49. package/dist/web/client/assets/{square-terminal-DaNLwvEs.js → square-terminal-CYfGBHPC.js} +1 -1
  50. package/dist/web/client/assets/style-Bm9QsFpy.js +7 -0
  51. package/dist/web/client/assets/styles-B-kTTvCo.css +2 -0
  52. package/dist/web/client/assets/{system-CrTSr5_t.js → system-Dd2P9eqE.js} +1 -1
  53. package/dist/web/client/assets/teams-7FEpSZg1.js +1 -0
  54. package/dist/web/client/assets/teams-ClirFbDV.js +1 -0
  55. package/dist/web/client/assets/telegram-BJnT5THs.js +1 -0
  56. package/dist/web/client/assets/tools-DqNXLMpc.js +1 -0
  57. package/dist/web/client/assets/usage-BC_TStVj.js +1 -0
  58. package/dist/web/client/assets/use-resource-Bn0Sx7r6.js +1 -0
  59. package/dist/web/client/assets/{users-round-BElBVSnw.js → users-round-cxQ5HF-C.js} +1 -1
  60. package/dist/web/client/assets/welcome-g8wtn_or.js +1 -0
  61. package/dist/web/client/assets/{wrench-DotqSqSm.js → wrench-BLEJjETg.js} +1 -1
  62. package/dist/web/server/assets/{AddProviderDialog-BbpuvC2a.js → AddProviderDialog-DtkjBMv4.js} +5 -2
  63. package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +37 -0
  64. package/dist/web/server/assets/{AgentTemplateParts-Ce7snK3m.js → AgentTemplateParts-CxWyovvM.js} +6 -2
  65. package/dist/web/server/assets/Button-Dsnw22OF.js +17 -0
  66. package/dist/web/server/assets/{ConfigPage-qP9ejjuw.js → ConfigPage-usZi48Zr.js} +2 -2
  67. package/dist/web/server/assets/{ConfirmDialog-Z-uYbE9B.js → ConfirmDialog-DAcSBHkT.js} +3 -1
  68. package/dist/web/server/assets/{ConnectionsView-CLIV7V5D.js → ConnectionsView-Dy6uYSRI.js} +9 -7
  69. package/dist/web/server/assets/Dialog-DTeF-nOZ.js +85 -0
  70. package/dist/web/server/assets/{ManagePage-BR9FwVZM.js → ManagePage-Dy1EdovO.js} +2 -2
  71. package/dist/web/server/assets/{SectionTabs-CWQ5orUW.js → SectionTabs-BVrMn76H.js} +2 -1
  72. package/dist/web/server/assets/{SkillsParts-DWpdydCJ.js → SkillsParts-Cw05b3al.js} +6 -2
  73. package/dist/web/server/assets/SpawnDialog-BAE8W91z.js +125 -0
  74. package/dist/web/server/assets/{SpawnTeamModal-C-YMvoaB.js → SpawnTeamModal-CgBY0HuN.js} +6 -2
  75. package/dist/web/server/assets/{TeamForm-CL45gBdt.js → TeamForm-JyO5xJXX.js} +6 -2
  76. package/dist/web/server/assets/{TeamThread-CVVH6kKj.js → TeamThread-5o48EbXL.js} +52 -4
  77. package/dist/web/server/assets/{UnsavedChangesGuard-CXK75QQp.js → UnsavedChangesGuard-CJQGu45L.js} +1 -1
  78. package/dist/web/server/assets/{_id-8zsImuGa.js → _id-BE_RSvuN.js} +14 -9
  79. package/dist/web/server/assets/{_id-d2OwovYV.js → _id-BNvm89oJ.js} +2 -2
  80. package/dist/web/server/assets/{_id-De3Bm0SG.js → _id-BW6sVrvw.js} +1 -1
  81. package/dist/web/server/assets/{_id-2I4CSMQj.js → _id-BfjTS4JO.js} +15 -9
  82. package/dist/web/server/assets/{_id-BKzOw78O.js → _id-BpumuCYL.js} +1 -1
  83. package/dist/web/server/assets/{_id-BpfoPuTv.js → _id-C54t_nX6.js} +2 -2
  84. package/dist/web/server/assets/_tanstack-start-manifest_v-BPwQX_5b.js +275 -0
  85. package/dist/web/server/assets/{access-CwZ27Wsl.js → access-6FWih7nC.js} +7 -4
  86. package/dist/web/server/assets/{access-WWspT0v4.js → access-BhAMfi7U.js} +1 -1
  87. package/dist/web/server/assets/{access-CyUoElTP.js → access-DEyq3uP_.js} +2 -2
  88. package/dist/web/server/assets/activity-Czfq-5_F.js +471 -0
  89. package/dist/web/server/assets/{agent-actions-C07Cp5Ue.js → agent-actions-ChH7Mne4.js} +1 -1
  90. package/dist/web/server/assets/{agents-CRtMfKqX.js → agents-3hBjrd8B.js} +1 -1
  91. package/dist/web/server/assets/{agents-vuXrAv1j.js → agents-BXuglv4G.js} +12 -6
  92. package/dist/web/server/assets/{agents-DTub-rJk.js → agents-DhenbitX.js} +2 -2
  93. package/dist/web/server/assets/{agents-CwzhpDPm.js → agents-KJcDMj0Y.js} +9 -6
  94. package/dist/web/server/assets/{agents-DCWEoaxY.js → agents-ncyhVx-T.js} +2 -2
  95. package/dist/web/server/assets/{agents-DQowl6Ly.js → agents-rTDlRZa5.js} +1 -1
  96. package/dist/web/server/assets/{attention-BqCnJ1hg.js → attention-CDdOCOio.js} +2 -2
  97. package/dist/web/server/assets/{attention-DwGaur_w.js → attention-DM__BzWY.js} +8 -6
  98. package/dist/web/server/assets/{attention-Dki8rmGZ.js → attention-X0U6ZmiA.js} +1 -1
  99. package/dist/web/server/assets/{auth-dJnrFW6y.js → auth-BexhV8Yq.js} +1 -1
  100. package/dist/web/server/assets/{config-B9dJiji_.js → config-Cld8Q8N7.js} +2 -2
  101. package/dist/web/server/assets/{config-X7qWbbpH.js → config-Cx5ri2DL2.js} +1 -1
  102. package/dist/web/server/assets/{config-D3MR2VjE.js → config-DpgYAXQ3.js} +9 -6
  103. package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +16 -0
  104. package/dist/web/server/assets/{daemon-client-B_ZRIIrT.js → daemon-client-RxAllljf.js} +1 -1
  105. package/dist/web/server/assets/form-BEjeiSy3.js +416 -0
  106. package/dist/web/server/assets/live-DbJeq6KP.js +263 -0
  107. package/dist/web/server/assets/{login-CRd1yTH5.js → login-BJdJ219n.js} +1 -1
  108. package/dist/web/server/assets/{login-ZN6KV8n-.js → login-C4lL4AxI.js} +2 -2
  109. package/dist/web/server/assets/{manage-Ce6cI4eW.js → manage-C6ucNYZW.js} +2 -1
  110. package/dist/web/server/assets/{mcp-BQ15a9dG.js → mcp-BXnWQOwM.js} +7 -4
  111. package/dist/web/server/assets/{mcp-C97uAZe1.js → mcp-C8VLspco.js} +1 -1
  112. package/dist/web/server/assets/{mcp-CYQuYWGX.js → mcp-DwCzj7eO.js} +2 -2
  113. package/dist/web/server/assets/open-groups-BMGYUTtY.js +12 -0
  114. package/dist/web/server/assets/{page-title-CVY-c2Pd.js → page-title-PTpFHXWo.js} +1 -1
  115. package/dist/web/server/assets/parts-k9M-atPa.js +436 -0
  116. package/dist/web/server/assets/{router-CPdWGKQ5.js → router-BttfLktO.js} +185 -77
  117. package/dist/web/server/assets/{routes-BPloBDc8.js → routes-A7UcreVX.js} +3 -3
  118. package/dist/web/server/assets/{routes-Dw1K3TQw.js → routes-B9jw-MJ8.js} +1175 -321
  119. package/dist/web/server/assets/{routes-xDPesCQu.js → routes-BX2FV8rS.js} +3 -3
  120. package/dist/web/server/assets/{skills-D0xrNc2_.js → skills-BVAH93cd.js} +8 -6
  121. package/dist/web/server/assets/{skills-DWzlT_hC.js → skills-Cd5Cfdaz.js} +1 -1
  122. package/dist/web/server/assets/{skills-6VSpEORe.js → skills-y3GsyKce.js} +2 -2
  123. package/dist/web/server/assets/src-vrZVrV9u.js +103 -0
  124. package/dist/web/server/assets/{start-DhW7sy23.js → start-Dl8gQ-95.js} +1 -1
  125. package/dist/web/server/assets/{style-aMybyKzc.js → style-BQ3H9I7Y.js} +1 -1
  126. package/dist/web/server/assets/{system-B5sPgdQW.js → system-BJPKqM6b.js} +2 -2
  127. package/dist/web/server/assets/{system-CXmiWyDG.js → system-C7mejQSc.js} +3 -3
  128. package/dist/web/server/assets/{system-D3th6n2E.js → system-LsLcuVzY.js} +1 -1
  129. package/dist/web/server/assets/{teams-yF3I_Zjq.js → teams-B6gbflsZ.js} +10 -6
  130. package/dist/web/server/assets/{teams-iXiCnN2i.js → teams-C7kXMNgc.js} +10 -6
  131. package/dist/web/server/assets/{teams-BopOP4x7.js → teams-CPXoTggb.js} +1 -1
  132. package/dist/web/server/assets/{teams-70u1XQTr.js → teams-CeLLd2Mf.js} +1 -1
  133. package/dist/web/server/assets/{teams-ClRBVSYU.js → teams-CiX8LUQo.js} +2 -2
  134. package/dist/web/server/assets/{teams-Dq4RCxis.js → teams-D-XdIkCr.js} +2 -2
  135. package/dist/web/server/assets/{telegram-CGol0CKX2.js → telegram-D7TW3LNZ.js} +1 -1
  136. package/dist/web/server/assets/{telegram-DwEgyR1x.js → telegram-D8_V7_sW.js} +286 -272
  137. package/dist/web/server/assets/{telegram-D9U9c1MN.js → telegram-DA2dwLID.js} +2 -2
  138. package/dist/web/server/assets/{tools-VPIKjr3y.js → tools-CckcG9Jl.js} +5 -3
  139. package/dist/web/server/assets/{tools-DflVIdDd.js → tools-CluiJywK.js} +2 -2
  140. package/dist/web/server/assets/{tools-C-wwWjLI.js → tools-D1BBVkRh.js} +1 -1
  141. package/dist/web/server/assets/usage-CrYyvPgf.js +46 -0
  142. package/dist/web/server/assets/usage-PNNb3pPj.js +465 -0
  143. package/dist/web/server/assets/{use-resource-CbHGYti0.js → use-resource-BUA9qGGY.js} +1 -1
  144. package/dist/web/server/assets/{welcome-CxXMI4HI.js → welcome-CUTYf8UG.js} +1 -1
  145. package/dist/web/server/assets/{welcome-966nOyyK.js → welcome-CYhh3iUU.js} +8 -6
  146. package/dist/web/server/assets/{welcome-7DrYZVs6.js → welcome-CwzLt6Rp.js} +2 -2
  147. package/dist/web/server/assets/workspace-0XPILV1W.js +82 -0
  148. package/dist/web/server/server.js +20 -20
  149. package/dist/worker.js +27 -6
  150. package/dist/worker.js.map +1 -1
  151. package/package.json +1 -1
  152. package/dist/web/client/assets/AddProviderDialog-DfFOaCjC.js +0 -1
  153. package/dist/web/client/assets/AgentTemplateParts-IMJmAQjN.js +0 -1
  154. package/dist/web/client/assets/ConfigPage-CzLHZa5o.js +0 -1
  155. package/dist/web/client/assets/ConfirmDialog-Cu_evkgc.js +0 -1
  156. package/dist/web/client/assets/ConnectionsView-D7Fmutl2.js +0 -1
  157. package/dist/web/client/assets/ManagePage-BfvlCrmz.js +0 -1
  158. package/dist/web/client/assets/SkillsParts-BuTxcCam.js +0 -1
  159. package/dist/web/client/assets/SpawnTeamModal-B1UnOvtp.js +0 -1
  160. package/dist/web/client/assets/TeamForm-DbzxtRjj.js +0 -1
  161. package/dist/web/client/assets/TeamThread-jpsWq6vI.js +0 -1
  162. package/dist/web/client/assets/UnsavedChangesGuard-BfyU9v9i.js +0 -1
  163. package/dist/web/client/assets/_id-BCNBLF-2.js +0 -1
  164. package/dist/web/client/assets/_id-D8_H79U2.js +0 -1
  165. package/dist/web/client/assets/access-CDWe1Kwy.js +0 -1
  166. package/dist/web/client/assets/agents-sE686DTf.js +0 -1
  167. package/dist/web/client/assets/agents-yrur1NDa.js +0 -1
  168. package/dist/web/client/assets/arrow-right-U66krZnr.js +0 -1
  169. package/dist/web/client/assets/attention-DYEHDfmx.js +0 -1
  170. package/dist/web/client/assets/chevron-right-CuqJFXTe.js +0 -1
  171. package/dist/web/client/assets/config-BHv886pr.js +0 -1
  172. package/dist/web/client/assets/index-GOthyyE-.js +0 -14
  173. package/dist/web/client/assets/login-Dhe15Uuc.js +0 -1
  174. package/dist/web/client/assets/mcp-A_Eo7x3q.js +0 -1
  175. package/dist/web/client/assets/parts-CpIfn_BH.js +0 -41
  176. package/dist/web/client/assets/plus-CQPjc8uR.js +0 -1
  177. package/dist/web/client/assets/routes-CTg_yjbY.js +0 -85
  178. package/dist/web/client/assets/skills-CLjtYtkA.js +0 -1
  179. package/dist/web/client/assets/style-mjEbxhf5.js +0 -7
  180. package/dist/web/client/assets/styles-DzcEC3Rd.css +0 -2
  181. package/dist/web/client/assets/teams-Bhje5n2h.js +0 -1
  182. package/dist/web/client/assets/teams-Cbgw0Qhv.js +0 -1
  183. package/dist/web/client/assets/telegram-HtUczmaA.js +0 -1
  184. package/dist/web/client/assets/tools-BpjFvmoX.js +0 -1
  185. package/dist/web/client/assets/use-resource-BnvgCpBi.js +0 -1
  186. package/dist/web/client/assets/welcome-D47LKWYO.js +0 -1
  187. package/dist/web/server/assets/Rail-b6EbjBB-.js +0 -605
  188. package/dist/web/server/assets/SpawnDialog-3wNx0W1R.js +0 -1851
  189. package/dist/web/server/assets/_tanstack-start-manifest_v-kkY_s_uR.js +0 -256
  190. package/dist/web/server/assets/createSsrRpc-qesavJv-.js +0 -72
  191. package/dist/web/server/assets/public-origin-BpDkdS5Q.js +0 -34
@@ -98,7 +98,7 @@ function useThemeMode() {
98
98
  }
99
99
  //#endregion
100
100
  //#region src/routes/login.tsx
101
- var $$splitComponentImporter = () => import("./login-ZN6KV8n-.js");
101
+ var $$splitComponentImporter = () => import("./login-C4lL4AxI.js");
102
102
  var Route = createFileRoute("/login")({
103
103
  validateSearch: (search) => ({ error: search.error === "token" || search.error === "origin" ? search.error : void 0 }),
104
104
  component: lazyRouteComponent($$splitComponentImporter, "component")
@@ -1,5 +1,5 @@
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";
1
+ import { n as usePageTitle } from "./page-title-PTpFHXWo.js";
2
+ import { a as PawIcon, i as useThemeMode, o as BaziuLogo, r as setThemeMode, t as Route } from "./login-BJdJ219n.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { KeyRound, MessageSquareText, Monitor, Moon, Sun, UsersRound } from "lucide-react";
5
5
  //#region src/components/ThemeToggle.tsx
@@ -189,7 +189,8 @@ var ATTENTION_KINDS = {
189
189
  review_failure: "Review failures",
190
190
  trigger_failure: "Schedule failures",
191
191
  agent_loop_break: "Loop breaks",
192
- queue_interrupted: "Paused queues"
192
+ queue_interrupted: "Paused queues",
193
+ turn_failure: "Failed turns"
193
194
  };
194
195
  function severityLabel(severity) {
195
196
  switch (severity) {
@@ -1,7 +1,10 @@
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";
1
+ import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
2
+ import { t as Button } from "./Button-Dsnw22OF.js";
3
+ import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
4
+ 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-k9M-atPa.js";
5
+ import { d as TextField, o as SecretField, s as SelectField } from "./form-BEjeiSy3.js";
6
+ import { t as Route } from "./mcp-DwCzj7eO.js";
7
+ import { t as ConfigPage } from "./ConfigPage-usZi48Zr.js";
5
8
  import { useState } from "react";
6
9
  import { useRouter } from "@tanstack/react-router";
7
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { n as createServerFn } from "../server.js";
2
2
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
- import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
3
+ import { n as daemonClient } from "./daemon-client-RxAllljf.js";
4
4
  //#region src/routes/config/mcp.tsx?tss-serverfn-split
5
5
  var fetchServers_createServerFn_handler = createServerRpc({
6
6
  id: "278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7",
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/mcp.tsx
5
- var $$splitComponentImporter = () => import("./mcp-BQ15a9dG.js");
5
+ var $$splitComponentImporter = () => import("./mcp-BXnWQOwM.js");
6
6
  var fetchServers = createServerFn({ method: "GET" }).handler(createSsrRpc("278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7"));
7
7
  var Route = createFileRoute("/config/mcp")({
8
8
  loader: () => fetchServers(),
@@ -0,0 +1,12 @@
1
+ import "./src-vrZVrV9u.js";
2
+ //#region src/components/workspace/rail/open-groups.ts
3
+ var SIDEBAR_OPEN_GROUPS_COOKIE = "bz_sidebar_open_groups";
4
+ function writeOpenGroupsCookie(map) {
5
+ document.cookie = `${SIDEBAR_OPEN_GROUPS_COOKIE}=${encodeURIComponent(JSON.stringify(map))}; Path=/; Max-Age=31536000; SameSite=Lax`;
6
+ }
7
+ /** An explicit choice wins; otherwise the Team in view and the default Team start open. */
8
+ function isGroupOpen(openGroups, teamId, current) {
9
+ return openGroups[teamId] ?? (current || teamId === "default");
10
+ }
11
+ //#endregion
12
+ export { isGroupOpen as n, writeOpenGroupsCookie as r, SIDEBAR_OPEN_GROUPS_COOKIE as t };
@@ -1,4 +1,4 @@
1
- import { dt as api, lt as useLive } from "./SpawnDialog-3wNx0W1R.js";
1
+ import { i as api, n as useLive } from "./live-DbJeq6KP.js";
2
2
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
3
3
  import { useRouterState } from "@tanstack/react-router";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -0,0 +1,436 @@
1
+ import { p as cn } from "./ModelMenu-D-hTgYOO.js";
2
+ import { n as usePageTitle } from "./page-title-PTpFHXWo.js";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ import { AlertTriangle, Check, Info, MoreHorizontal, Search, X } from "lucide-react";
5
+ import { DropdownMenu } from "radix-ui";
6
+ //#region src/components/Page.tsx
7
+ var PAGE_SIZE_CLASS = {
8
+ narrow: "max-w-3xl",
9
+ default: "max-w-5xl",
10
+ wide: "max-w-[1500px]"
11
+ };
12
+ function PageShell({ size = "default", className, ...props }) {
13
+ return /* @__PURE__ */ jsx("div", {
14
+ className: cn("mx-auto min-w-0 w-full space-y-6", PAGE_SIZE_CLASS[size], className),
15
+ ...props
16
+ });
17
+ }
18
+ function PageHeader({ eyebrow, title, description, actions, className, ...props }) {
19
+ usePageTitle(typeof title === "string" ? [title, typeof eyebrow === "string" ? eyebrow : null].filter(Boolean).join(" · ") : null);
20
+ return /* @__PURE__ */ jsxs("header", {
21
+ className: cn("flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between", className),
22
+ ...props,
23
+ children: [/* @__PURE__ */ jsxs("div", {
24
+ className: "min-w-0",
25
+ children: [
26
+ eyebrow && /* @__PURE__ */ jsx("div", {
27
+ className: "mb-1 text-xs font-semibold uppercase tracking-[0.12em] text-primary",
28
+ children: eyebrow
29
+ }),
30
+ title && /* @__PURE__ */ jsx("h1", {
31
+ className: "m-0 font-display text-3xl leading-tight text-foreground sm:text-[2.1rem]",
32
+ children: title
33
+ }),
34
+ description && /* @__PURE__ */ jsx("div", {
35
+ className: "mt-2 max-w-3xl text-sm leading-6 text-muted-foreground",
36
+ children: description
37
+ })
38
+ ]
39
+ }), actions && /* @__PURE__ */ jsx("div", {
40
+ className: "flex shrink-0 flex-wrap items-center gap-2",
41
+ children: actions
42
+ })]
43
+ });
44
+ }
45
+ var STATUS_BADGE_CLASS = {
46
+ neutral: "border-border bg-muted text-muted-foreground",
47
+ info: "border-primary/20 bg-accent text-accent-foreground",
48
+ success: "border-success/25 bg-success/10 text-success",
49
+ warning: "border-warning/25 bg-warning/10 text-warning",
50
+ danger: "border-danger/25 bg-danger/10 text-danger"
51
+ };
52
+ function StatusBadge({ variant = "neutral", className, ...props }) {
53
+ return /* @__PURE__ */ jsx("span", {
54
+ className: cn("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-semibold leading-5", STATUS_BADGE_CLASS[variant], className),
55
+ ...props
56
+ });
57
+ }
58
+ //#endregion
59
+ //#region src/components/ui/parts.tsx
60
+ var CHIP = {
61
+ success: "bg-success/10 text-success",
62
+ warning: "bg-warning/10 text-warning",
63
+ neutral: "bg-muted text-muted-foreground"
64
+ };
65
+ function Chip({ tone, children }) {
66
+ return /* @__PURE__ */ jsxs("span", {
67
+ className: cn("inline-flex min-h-7 items-center gap-1.5 rounded-full px-3 text-xs font-semibold", CHIP[tone]),
68
+ children: [/* @__PURE__ */ jsx("span", {
69
+ "aria-hidden": "true",
70
+ className: "size-1.5 shrink-0 rounded-full bg-current"
71
+ }), children]
72
+ });
73
+ }
74
+ /** A search box: the magnifier and the input are one field, with one focus ring. */
75
+ function SearchField({ label, placeholder, value, onChange, className }) {
76
+ return /* @__PURE__ */ jsxs("label", {
77
+ 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),
78
+ children: [/* @__PURE__ */ jsx(Search, {
79
+ className: "size-4 shrink-0 text-muted-foreground",
80
+ "aria-hidden": "true"
81
+ }), /* @__PURE__ */ jsx("input", {
82
+ type: "search",
83
+ "aria-label": label,
84
+ placeholder,
85
+ value,
86
+ onChange: (event) => onChange(event.target.value),
87
+ className: "min-h-10 border-0 bg-transparent px-0 shadow-none focus:bg-transparent focus:shadow-none",
88
+ style: { outline: "none" }
89
+ })]
90
+ });
91
+ }
92
+ /** A yes/no setting. */
93
+ function Switch({ checked, label, disabled = false, onChange }) {
94
+ return /* @__PURE__ */ jsx("button", {
95
+ type: "button",
96
+ role: "switch",
97
+ "aria-checked": checked,
98
+ "aria-label": label,
99
+ disabled,
100
+ onClick: () => onChange(!checked),
101
+ className: cn("relative h-7 w-[46px] shrink-0 rounded-full transition-colors disabled:opacity-50", checked ? "bg-primary" : "bg-fawn"),
102
+ children: /* @__PURE__ */ jsx("span", { className: cn("absolute top-[3px] size-[22px] rounded-full bg-white shadow transition-[left]", checked ? "left-[21px]" : "left-[3px]") })
103
+ });
104
+ }
105
+ /** Something is being waited for. */
106
+ function Waiting({ children }) {
107
+ return /* @__PURE__ */ jsxs("div", {
108
+ role: "status",
109
+ className: "flex items-center gap-3 text-sm font-semibold text-foreground",
110
+ children: [/* @__PURE__ */ jsx("span", {
111
+ "aria-hidden": "true",
112
+ className: "flex size-5 shrink-0 items-center justify-center",
113
+ children: /* @__PURE__ */ jsx("span", { className: "size-2.5 animate-pulse rounded-full bg-primary" })
114
+ }), /* @__PURE__ */ jsx("span", { children })]
115
+ });
116
+ }
117
+ /**
118
+ * A card of a Setup page: an icon, what the card holds, its state or its main action, then its
119
+ * rows (`CardRow`), its text and controls (`CardBody`, `CardForm`) or its facts (`Facts`).
120
+ */
121
+ function SetupCard({ icon, title, description, action, labelledBy, children }) {
122
+ return /* @__PURE__ */ jsxs("section", {
123
+ "aria-labelledby": labelledBy,
124
+ className: "min-w-0 overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
125
+ children: [/* @__PURE__ */ jsxs("div", {
126
+ className: "flex flex-wrap items-center gap-x-4 gap-y-3 px-4 py-4 sm:px-5",
127
+ children: [/* @__PURE__ */ jsxs("div", {
128
+ className: "flex min-w-0 flex-1 basis-64 items-center gap-4",
129
+ children: [/* @__PURE__ */ jsx("span", {
130
+ "aria-hidden": "true",
131
+ className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent text-accent-foreground",
132
+ children: icon
133
+ }), /* @__PURE__ */ jsxs("div", {
134
+ className: "min-w-0",
135
+ children: [/* @__PURE__ */ jsx("h2", {
136
+ id: labelledBy,
137
+ className: "m-0 font-body text-lg font-semibold text-foreground",
138
+ children: title
139
+ }), /* @__PURE__ */ jsx("div", {
140
+ className: "text-sm text-muted-foreground",
141
+ children: description
142
+ })]
143
+ })]
144
+ }), action]
145
+ }), children]
146
+ });
147
+ }
148
+ /** A row that spans a card under its heading: the unit of every list. */
149
+ var CARD_ROW = "flex flex-wrap items-center gap-x-4 gap-y-1 border-t border-border px-4 sm:px-5";
150
+ function CardRow({ className, ...props }) {
151
+ return /* @__PURE__ */ jsx("div", {
152
+ className: cn(CARD_ROW, className),
153
+ ...props
154
+ });
155
+ }
156
+ /** A card's list of things, each a `ListRow`. */
157
+ function CardList({ className, ...props }) {
158
+ return /* @__PURE__ */ jsx("ul", {
159
+ className: cn("m-0 list-none p-0", className),
160
+ ...props
161
+ });
162
+ }
163
+ /**
164
+ * One thing in a card's list: its name with its state, a line of what there is to know about it,
165
+ * what can be done with it, and under all that whatever it last reported.
166
+ */
167
+ function ListRow({ leading, title, chip, meta, actions, children, inline = false }) {
168
+ return /* @__PURE__ */ jsxs("li", {
169
+ className: cn(CARD_ROW, "min-h-14 py-2.5"),
170
+ children: [/* @__PURE__ */ jsxs("div", {
171
+ className: cn("flex min-w-0 flex-1 basis-full items-center gap-x-4 gap-y-1", inline ? "flex-nowrap" : "flex-wrap"),
172
+ children: [
173
+ leading && /* @__PURE__ */ jsx("span", {
174
+ className: "flex shrink-0 self-start pt-0.5",
175
+ children: leading
176
+ }),
177
+ /* @__PURE__ */ jsxs("div", {
178
+ className: cn("min-w-0 flex-1", inline ? "basis-0" : "basis-64"),
179
+ children: [/* @__PURE__ */ jsxs("div", {
180
+ className: "flex min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1",
181
+ children: [/* @__PURE__ */ jsx("span", {
182
+ className: "min-w-0 break-words text-base font-semibold text-foreground",
183
+ children: title
184
+ }), chip]
185
+ }), meta && /* @__PURE__ */ jsx("div", {
186
+ className: "mt-0.5 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-0.5 text-sm text-muted-foreground [&_a]:underline [&_a]:underline-offset-2",
187
+ children: meta
188
+ })]
189
+ }),
190
+ actions && /* @__PURE__ */ jsx("div", {
191
+ className: "flex shrink-0 flex-wrap items-center gap-2",
192
+ children: actions
193
+ })
194
+ ]
195
+ }), children && /* @__PURE__ */ jsx("div", {
196
+ className: "min-w-0 basis-full pb-1",
197
+ children
198
+ })]
199
+ });
200
+ }
201
+ var CARD_BODY = "grid gap-4 border-t border-border px-4 py-4 sm:px-5";
202
+ /** The part of a card that holds text and controls, with the card's own margins. */
203
+ function CardBody({ className, ...props }) {
204
+ return /* @__PURE__ */ jsx("div", {
205
+ className: cn(CARD_BODY, className),
206
+ ...props
207
+ });
208
+ }
209
+ /** A card's form: the same space as `CardBody`. */
210
+ function CardForm({ className, ...props }) {
211
+ return /* @__PURE__ */ jsx("form", {
212
+ className: cn(CARD_BODY, className),
213
+ ...props
214
+ });
215
+ }
216
+ var NOTICE = {
217
+ success: {
218
+ box: "border-success/30 bg-success/10",
219
+ mark: "text-success",
220
+ icon: Check
221
+ },
222
+ warning: {
223
+ box: "border-warning/35 bg-warning/10",
224
+ mark: "text-warning",
225
+ icon: AlertTriangle
226
+ },
227
+ danger: {
228
+ box: "border-danger/30 bg-danger/10",
229
+ mark: "text-danger",
230
+ icon: AlertTriangle
231
+ },
232
+ neutral: {
233
+ box: "border-border bg-muted/40",
234
+ mark: "text-muted-foreground",
235
+ icon: Info
236
+ }
237
+ };
238
+ /** Something to know inside a card: a warning, a result, a thing to do next. */
239
+ function Notice({ tone = "warning", title, children, actions, role = "status", className }) {
240
+ const { box, mark, icon: Icon } = NOTICE[tone];
241
+ return /* @__PURE__ */ jsxs("div", {
242
+ role,
243
+ className: cn("flex items-start gap-2.5 rounded-xl border px-3.5 py-3 text-sm text-foreground", box, className),
244
+ children: [/* @__PURE__ */ jsx(Icon, {
245
+ className: cn("mt-0.5 size-4 shrink-0", mark),
246
+ "aria-hidden": "true"
247
+ }), /* @__PURE__ */ jsxs("div", {
248
+ className: "min-w-0 flex-1 break-words",
249
+ children: [
250
+ title && /* @__PURE__ */ jsx("div", {
251
+ className: "font-semibold",
252
+ children: title
253
+ }),
254
+ children,
255
+ actions && /* @__PURE__ */ jsx("div", {
256
+ className: "mt-2.5 flex flex-wrap gap-2",
257
+ children: actions
258
+ })
259
+ ]
260
+ })]
261
+ });
262
+ }
263
+ var BANNER = {
264
+ success: "border-success/30 bg-success/10",
265
+ warning: "border-warning/35 bg-warning/10",
266
+ danger: "border-danger/30 bg-danger/10",
267
+ neutral: "border-border bg-card shadow-baziu-sm"
268
+ };
269
+ /** The line above a page's cards: how things stand as a whole, with the one thing to do. */
270
+ function Banner({ tone, lead, children, action, role = "status" }) {
271
+ const Icon = tone === "neutral" ? null : NOTICE[tone].icon;
272
+ return /* @__PURE__ */ jsxs("div", {
273
+ role,
274
+ className: cn("flex flex-wrap items-center gap-3 rounded-2xl border px-4 py-3 text-sm", BANNER[tone]),
275
+ children: [/* @__PURE__ */ jsxs("div", {
276
+ className: cn("flex min-w-0 flex-1 items-start gap-3", Icon ? "basis-64" : "basis-72"),
277
+ children: [Icon && /* @__PURE__ */ jsx(Icon, {
278
+ className: cn("mt-0.5 size-5 shrink-0", NOTICE[tone].mark),
279
+ "aria-hidden": "true"
280
+ }), /* @__PURE__ */ jsxs("div", {
281
+ className: "min-w-0",
282
+ children: [/* @__PURE__ */ jsx("span", {
283
+ className: "font-semibold text-foreground",
284
+ children: lead
285
+ }), children && /* @__PURE__ */ jsxs(Fragment, { children: [" ", /* @__PURE__ */ jsx("span", {
286
+ className: "text-muted-foreground",
287
+ children
288
+ })] })]
289
+ })]
290
+ }), action]
291
+ });
292
+ }
293
+ /** Facts about something: a name and what it is now, one to a row. */
294
+ function Facts({ children, className }) {
295
+ return /* @__PURE__ */ jsx("dl", {
296
+ className: cn("m-0 divide-y divide-border border-t border-border px-4 text-sm sm:px-5", className),
297
+ children
298
+ });
299
+ }
300
+ function Fact({ label, tone, children }) {
301
+ return /* @__PURE__ */ jsxs("div", {
302
+ className: "grid gap-x-4 gap-y-0.5 py-3 sm:grid-cols-[14rem_minmax(0,1fr)]",
303
+ children: [/* @__PURE__ */ jsx("dt", {
304
+ className: "text-muted-foreground",
305
+ children: label
306
+ }), /* @__PURE__ */ jsx("dd", {
307
+ 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"),
308
+ children
309
+ })]
310
+ });
311
+ }
312
+ /** The outcome of some checks, one to a line. */
313
+ function CheckList({ children, ...props }) {
314
+ return /* @__PURE__ */ jsx("ul", {
315
+ className: "m-0 grid list-none gap-2.5 p-0",
316
+ ...props,
317
+ children
318
+ });
319
+ }
320
+ function CheckItem({ ok, label, children }) {
321
+ return /* @__PURE__ */ jsxs("li", {
322
+ className: "flex items-start gap-2.5 text-sm",
323
+ children: [/* @__PURE__ */ jsx("span", {
324
+ "aria-hidden": "true",
325
+ 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"),
326
+ children: ok ? /* @__PURE__ */ jsx(Check, { className: "size-3.5" }) : /* @__PURE__ */ jsx(X, { className: "size-3.5" })
327
+ }), /* @__PURE__ */ jsxs("span", {
328
+ className: "min-w-0 break-words",
329
+ children: [
330
+ /* @__PURE__ */ jsx("span", {
331
+ className: "sr-only",
332
+ children: ok ? "Passed: " : "Failed: "
333
+ }),
334
+ /* @__PURE__ */ jsx("span", {
335
+ className: "font-semibold text-foreground",
336
+ children: label
337
+ }),
338
+ children && /* @__PURE__ */ jsx("span", {
339
+ className: cn("ml-2", ok ? "text-muted-foreground" : "font-medium text-warning"),
340
+ children
341
+ })
342
+ ]
343
+ })]
344
+ });
345
+ }
346
+ /** A card's line of controls above its list: a search box, a filter, an action. */
347
+ function CardToolbar({ className, ...props }) {
348
+ return /* @__PURE__ */ jsx("div", {
349
+ className: cn(CARD_ROW, "gap-y-2 py-3", className),
350
+ ...props
351
+ });
352
+ }
353
+ /** The heading of a group of rows inside a card's list. */
354
+ function GroupHeader({ title, meta, action }) {
355
+ return /* @__PURE__ */ jsxs("div", {
356
+ className: cn(CARD_ROW, "min-h-10 bg-muted/50 py-2"),
357
+ children: [
358
+ /* @__PURE__ */ jsx("h3", {
359
+ className: "m-0 min-w-0 font-body text-xs font-bold uppercase tracking-[0.08em] text-muted-foreground",
360
+ children: title
361
+ }),
362
+ meta && /* @__PURE__ */ jsx("span", {
363
+ className: "text-xs text-muted-foreground",
364
+ children: meta
365
+ }),
366
+ action && /* @__PURE__ */ jsx("span", {
367
+ className: "ml-auto text-xs font-semibold",
368
+ children: action
369
+ })
370
+ ]
371
+ });
372
+ }
373
+ /** What a card shows when it has nothing to list: what would be here, and how to get it. */
374
+ function CardEmpty({ icon, title, children, action }) {
375
+ return /* @__PURE__ */ jsxs("div", {
376
+ className: "flex flex-col items-center gap-2 border-t border-border px-4 py-9 text-center sm:px-5",
377
+ children: [
378
+ icon && /* @__PURE__ */ jsx("span", {
379
+ "aria-hidden": "true",
380
+ className: "mb-1 flex size-10 items-center justify-center rounded-full bg-muted text-muted-foreground",
381
+ children: icon
382
+ }),
383
+ /* @__PURE__ */ jsx("p", {
384
+ className: "m-0 text-base font-semibold text-foreground",
385
+ children: title
386
+ }),
387
+ children && /* @__PURE__ */ jsx("p", {
388
+ className: "m-0 max-w-md text-sm text-muted-foreground",
389
+ children
390
+ }),
391
+ action && /* @__PURE__ */ jsx("div", {
392
+ className: "mt-2 flex flex-wrap justify-center gap-2",
393
+ children: action
394
+ })
395
+ ]
396
+ });
397
+ }
398
+ 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";
399
+ /**
400
+ * The rarer and the destructive actions on one row, behind a "More" button: the row itself keeps
401
+ * only what is done most.
402
+ */
403
+ function RowMenu({ label, items, disabled = false }) {
404
+ const shown = items.filter((item) => Boolean(item));
405
+ return /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
406
+ "aria-label": label,
407
+ disabled,
408
+ 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",
409
+ children: /* @__PURE__ */ jsx(MoreHorizontal, {
410
+ className: "size-[18px]",
411
+ "aria-hidden": "true"
412
+ })
413
+ }), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu.Content, {
414
+ align: "end",
415
+ sideOffset: 6,
416
+ 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",
417
+ children: shown.map((item) => /* @__PURE__ */ jsxs(DropdownMenu.Item, {
418
+ "aria-disabled": item.disabledReason ? true : void 0,
419
+ onSelect: (event) => {
420
+ if (item.disabledReason) event.preventDefault();
421
+ else item.onSelect();
422
+ },
423
+ className: cn(MENU_ITEM, item.disabledReason && "cursor-not-allowed"),
424
+ style: { outline: "none" },
425
+ children: [/* @__PURE__ */ jsx("span", {
426
+ className: cn("font-semibold", item.disabledReason ? "text-muted-foreground" : item.danger ? "text-danger" : "text-foreground"),
427
+ children: item.label
428
+ }), item.disabledReason && /* @__PURE__ */ jsx("span", {
429
+ className: "text-xs text-muted-foreground",
430
+ children: item.disabledReason
431
+ })]
432
+ }, item.label))
433
+ }) })] });
434
+ }
435
+ //#endregion
436
+ export { PageShell as C, PageHeader as S, 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, StatusBadge as w, Waiting as x, SetupCard as y };