bazilion 0.27.0 → 0.50.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 (203) hide show
  1. package/dist/cli.js +405 -243
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +1077 -623
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/ConfigPage-_FY--9PB.js +1 -0
  6. package/dist/web/client/assets/ConfirmDialog-BblXqMVb.js +1 -0
  7. package/dist/web/client/assets/ConnectionsView-BZHJysCa.js +1 -0
  8. package/dist/web/client/assets/FieldRow-k05wfDy9.js +1 -0
  9. package/dist/web/client/assets/SectionTabs-DlfXtepS.js +1 -0
  10. package/dist/web/client/assets/{SkillFindings-8LX6bYf_.js → SkillFindings-CHf5ZGY0.js} +1 -1
  11. package/dist/web/client/assets/SpawnDialog-C-Ujb4bC.js +1 -0
  12. package/dist/web/client/assets/TeamForm-D6EAAF7m.js +1 -0
  13. package/dist/web/client/assets/TeamThread-DpUOwMoi.js +1 -0
  14. package/dist/web/client/assets/UnsavedChangesGuard-DTUP7hwu.js +1 -0
  15. package/dist/web/client/assets/_id-C94dgBDe.js +1 -0
  16. package/dist/web/client/assets/_id-CxmEfoEp.js +1 -0
  17. package/dist/web/client/assets/agents-C-bJ5R_0.js +1 -0
  18. package/dist/web/client/assets/agents-odqBNx-A.js +1 -0
  19. package/dist/web/client/assets/api-CPzQ_z9m.js +1 -0
  20. package/dist/web/client/assets/arrow-right-Dyta3p06.js +1 -0
  21. package/dist/web/client/assets/attention-D0e7o7fh.js +1 -0
  22. package/dist/web/client/assets/chevron-right-B2YEg9rw.js +1 -0
  23. package/dist/web/client/assets/config-B7Y5MtpM.js +3 -0
  24. package/dist/web/client/assets/createLucideIcon-Cgab8gqu.js +1 -0
  25. package/dist/web/client/assets/index-CNVw44IE.js +54 -0
  26. package/dist/web/client/assets/link-ClwtaO_E.js +1 -0
  27. package/dist/web/client/assets/login-Br1F4rQx.js +1 -0
  28. package/dist/web/client/assets/mcp-B8bIAY6k.js +1 -0
  29. package/dist/web/client/assets/routes-BZdlkRdC.js +76 -0
  30. package/dist/web/client/assets/save-ZqeB_I-c.js +1 -0
  31. package/dist/web/client/assets/{services-B2f7e5jV.js → services-CPJxDrVG.js} +1 -1
  32. package/dist/web/client/assets/skills-DE_kQQGj.js +1 -0
  33. package/dist/web/client/assets/style-BWShXY3e.js +7 -0
  34. package/dist/web/client/assets/styles-Tney8jZq.css +2 -0
  35. package/dist/web/client/assets/teams-AcuSLc3I.js +1 -0
  36. package/dist/web/client/assets/teams-tRamPg7O.js +1 -0
  37. package/dist/web/client/assets/telegram-Ku69-GAv.js +1 -0
  38. package/dist/web/client/assets/tokens-DuLNZMgi.js +1 -0
  39. package/dist/web/client/assets/welcome-CrQk6n6I.js +1 -0
  40. package/dist/web/server/assets/{ConfigPage-CGld_wCK.js → ConfigPage-DSLM5CLw.js} +2 -2
  41. package/dist/web/server/assets/{ConfirmDialog-LdVlEanK.js → ConfirmDialog-CvLZgbfY.js} +1 -1
  42. package/dist/web/server/assets/ConnectionsView-DVLNH81Y.js +708 -0
  43. package/dist/web/server/assets/{FieldRow-Dah2KKqo.js → FieldRow-DQBzMtcR.js} +4 -4
  44. package/dist/web/server/assets/{Page-CMSYKXWJ.js → Page-KIL1CsME.js} +1 -1
  45. package/dist/web/server/assets/Rail-D8LhjS38.js +756 -0
  46. package/dist/web/server/assets/{SectionTabs-CqFg9Vwx.js → SectionTabs-CNcvxbR8.js} +1 -16
  47. package/dist/web/server/assets/{SkillFindings-Bd6e81Wu.js → SkillFindings-DX8lCMG7.js} +1 -1
  48. package/dist/web/server/assets/{SpawnDialog-BGNaMfFb.js → SpawnDialog-Brmkl_ll.js} +24 -6
  49. package/dist/web/server/assets/{TeamForm-C93tpn9r.js → TeamForm-CvQAs2FA.js} +1 -1
  50. package/dist/web/server/assets/TeamThread-BNJi6gPM.js +205 -0
  51. package/dist/web/server/assets/{UnsavedChangesGuard-Dm4a27_5.js → UnsavedChangesGuard-B3Lpl08z.js} +8 -4
  52. package/dist/web/server/assets/{TeamPolicyEditor-BHS3J0R9.js → _id-BH1631a8.js} +114 -263
  53. package/dist/web/server/assets/{_id-sW6zXrTP.js → _id-CA3QO7J5.js} +1 -1
  54. package/dist/web/server/assets/{_id-lOVnT5sS.js → _id-CO1PgvyG.js} +5 -5
  55. package/dist/web/server/assets/{_id-B0x1ffz3.js → _id-DIXUiIaB.js} +1 -1
  56. package/dist/web/server/assets/{_id-ByiXeIPS.js → _id-E2N4gZ4O.js} +2 -2
  57. package/dist/web/server/assets/{_id-Bdf_Rg62.js → _id-TVruGcOd.js} +1 -1
  58. package/dist/web/server/assets/_tanstack-start-manifest_v-BVfrV7LQ.js +191 -0
  59. package/dist/web/server/assets/{agents-BNPkidbH.js → agents-BnWgFo6o.js} +1 -1
  60. package/dist/web/server/assets/{agents-BK8OmB8g.js → agents-C63VycUw.js} +2 -2
  61. package/dist/web/server/assets/{agents-D4tqK1kH.js → agents-CalSKogx.js} +14 -15
  62. package/dist/web/server/assets/{agents-Cn9GkXFX.js → agents-CdZvooeQ.js} +1 -1
  63. package/dist/web/server/assets/{agents-lOqc6VGd.js → agents-DPZVni4Q.js} +1 -1
  64. package/dist/web/server/assets/{agents-DycxHDt8.js → agents-DrkEwIpR.js} +8 -8
  65. package/dist/web/server/assets/{attention-DULVjdmF.js → attention-BbE4yc-V.js} +1 -1
  66. package/dist/web/server/assets/{attention-YWnLKA2E.js → attention-Cr7puThv.js} +1 -1
  67. package/dist/web/server/assets/{attention-BIm455bC.js → attention-DIyX3VMB.js} +6 -6
  68. package/dist/web/server/assets/{auth-DiN92ydD.js → auth-dJnrFW6y.js} +1 -1
  69. package/dist/web/server/assets/{config-C1VB28se.js → config-3tPtOmPE.js} +1 -1
  70. package/dist/web/server/assets/{config-BNEgu7WG.js → config-DJGZiPBJ.js} +13 -13
  71. package/dist/web/server/assets/{config-TdVqnqNL.js → config-rUqhMjIs.js} +1 -1
  72. package/dist/web/server/assets/{daemon-client-DL2ik2Em.js → daemon-client-B_ZRIIrT.js} +2 -1
  73. package/dist/web/server/assets/{mcp-BwmpNQPN.js → mcp-C97uAZe1.js} +1 -1
  74. package/dist/web/server/assets/{mcp-B09_O05r.js → mcp-Cf7KzOJ9.js} +9 -9
  75. package/dist/web/server/assets/{mcp-CqdTfXcn.js → mcp-DE14q5c0.js} +1 -1
  76. package/dist/web/server/assets/{router-BI9gmY3S.js → router-w2yPgmC1.js} +412 -259
  77. package/dist/web/server/assets/routes-1FEodTRm.js +16 -0
  78. package/dist/web/server/assets/routes-B6AO0LjK.js +57 -0
  79. package/dist/web/server/assets/routes-D1NHwz6f.js +7644 -0
  80. package/dist/web/server/assets/{services-tCfB1B83.js → services-BjroGXgC.js} +4 -4
  81. package/dist/web/server/assets/{services-Q9HYQXXB.js → services-Cdk40QHq.js} +1 -1
  82. package/dist/web/server/assets/{services-BLvAvb8g.js → services-DsHRLL8q.js} +1 -1
  83. package/dist/web/server/assets/{skills-BZg_txbf.js → skills-CA17GjuZ.js} +1 -1
  84. package/dist/web/server/assets/{skills-C7fqRPna.js → skills-DC1OTc8n.js} +11 -11
  85. package/dist/web/server/assets/{skills-C_g8IKag.js → skills-h5aHa7Q8.js} +1 -1
  86. package/dist/web/server/assets/style-GYDODk2F.js +178 -0
  87. package/dist/web/server/assets/{teams-D4CaU76n.js → teams-Bm63mbTt.js} +1 -1
  88. package/dist/web/server/assets/{teams-DX2HmKqi.js → teams-BxnvFTyn.js} +1 -1
  89. package/dist/web/server/assets/{teams-BS-oweRl.js → teams-Cg-QQWpH.js} +23 -15
  90. package/dist/web/server/assets/{teams-BHkhnt6b.js → teams-D6Tx-Jyn.js} +1 -1
  91. package/dist/web/server/assets/{teams-BSflKBP8.js → teams-OzHTyVi9.js} +6 -6
  92. package/dist/web/server/assets/{teams-CNyB5nM9.js → teams-YrmyutM4.js} +1 -1
  93. package/dist/web/server/assets/{telegram-CrJiygCX.js → telegram-BJ4l_TA_.js} +6 -6
  94. package/dist/web/server/assets/{telegram-C4v1HhyJ.js → telegram-Gy7_9yih.js} +1 -1
  95. package/dist/web/server/assets/{telegram-BUdnc8oF.js → telegram-xU-vXgef.js} +1 -1
  96. package/dist/web/server/assets/{tokens-DqldzPUq.js → tokens-ByPTGFBQ.js} +1 -1
  97. package/dist/web/server/assets/{tokens-B1twAJdd.js → tokens-CEdl8puR.js} +1 -1
  98. package/dist/web/server/assets/{tokens-DdjEyALj.js → tokens-CsqoRt5T.js} +10 -10
  99. package/dist/web/server/assets/{welcome-D0d38Pzx.js → welcome-O6Rjd7yO.js} +1 -1
  100. package/dist/web/server/assets/workspace-DeEYMPDX.js +658 -0
  101. package/dist/web/server/server.js +20 -72
  102. package/dist/worker.js +1 -1
  103. package/dist/worker.js.map +1 -1
  104. package/package.json +1 -1
  105. package/dist/web/client/assets/AgentAvatar-DWx-bM6n.js +0 -1
  106. package/dist/web/client/assets/ChatPane-DOV_HJg-.js +0 -72
  107. package/dist/web/client/assets/ConfigPage-Dfu9DzFX.js +0 -1
  108. package/dist/web/client/assets/ConfirmDialog-536ziJ5P.js +0 -1
  109. package/dist/web/client/assets/FieldRow-z1JqCdqn.js +0 -1
  110. package/dist/web/client/assets/ResultCard-X4nTbjYY.js +0 -1
  111. package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +0 -1
  112. package/dist/web/client/assets/SpawnDialog-DoZl-yes.js +0 -1
  113. package/dist/web/client/assets/SpawnTeamModal-C638hEoN.js +0 -1
  114. package/dist/web/client/assets/TeamForm-C-WzvOl4.js +0 -1
  115. package/dist/web/client/assets/TeamPolicyEditor-CSKBx0oK.js +0 -7
  116. package/dist/web/client/assets/UnsavedChangesGuard-GC-vzw7h.js +0 -1
  117. package/dist/web/client/assets/_id-BKLynswT.js +0 -1
  118. package/dist/web/client/assets/_id-BYM_NORr.js +0 -1
  119. package/dist/web/client/assets/_id-Cxa98a9m.js +0 -1
  120. package/dist/web/client/assets/_id-D4hV1U1t.js +0 -1
  121. package/dist/web/client/assets/agent-actions-CXQCoxKO.js +0 -1
  122. package/dist/web/client/assets/agents-BxPS1_Bp.js +0 -1
  123. package/dist/web/client/assets/agents-GozAWW-l.js +0 -1
  124. package/dist/web/client/assets/attention-Cz9rZcrr.js +0 -1
  125. package/dist/web/client/assets/chevron-right-CPAb1zac.js +0 -1
  126. package/dist/web/client/assets/config-9vv9Lipb.js +0 -3
  127. package/dist/web/client/assets/inbox-DHLArXxl.js +0 -1
  128. package/dist/web/client/assets/index-1YXquAq8.js +0 -52
  129. package/dist/web/client/assets/learning-PvtXm8Ne.js +0 -1
  130. package/dist/web/client/assets/login-DIJpNQFo.js +0 -1
  131. package/dist/web/client/assets/mcp-pKBL0xIf.js +0 -1
  132. package/dist/web/client/assets/members-DHWsgsEs.js +0 -1
  133. package/dist/web/client/assets/memory-CEVppPyU.js +0 -1
  134. package/dist/web/client/assets/plus-BaIRdB10.js +0 -1
  135. package/dist/web/client/assets/policy-DEh4BLSw.js +0 -1
  136. package/dist/web/client/assets/preload-helper-eUUcpe2S.js +0 -1
  137. package/dist/web/client/assets/results-DgJPjEZF.js +0 -1
  138. package/dist/web/client/assets/review-BbshafTQ.js +0 -1
  139. package/dist/web/client/assets/route-Ccb8v41z.js +0 -1
  140. package/dist/web/client/assets/route-D1d6kCEV.js +0 -1
  141. package/dist/web/client/assets/routes-g7V4ru7T.js +0 -1
  142. package/dist/web/client/assets/settings-B6elpcYm.js +0 -1
  143. package/dist/web/client/assets/skills-CngE7TF8.js +0 -1
  144. package/dist/web/client/assets/styles-xUnZ-ep_.css +0 -2
  145. package/dist/web/client/assets/teams-BdJZXOan.js +0 -1
  146. package/dist/web/client/assets/teams-c496ISsT.js +0 -1
  147. package/dist/web/client/assets/telegram-B_-hK6EC.js +0 -1
  148. package/dist/web/client/assets/tokens-CKz8gx4-.js +0 -1
  149. package/dist/web/client/assets/triggers-DCEPciGW.js +0 -1
  150. package/dist/web/client/assets/welcome-D-zVOLGA.js +0 -1
  151. package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +0 -37
  152. package/dist/web/server/assets/ChatPane-De_FPEoD.js +0 -1887
  153. package/dist/web/server/assets/ResultCard-CZn1w4KA.js +0 -97
  154. package/dist/web/server/assets/Sidebar-puq47KyR.js +0 -430
  155. package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +0 -97
  156. package/dist/web/server/assets/_id-BR6tnR6I.js +0 -23
  157. package/dist/web/server/assets/_id-Bm611NQz.js +0 -13
  158. package/dist/web/server/assets/_id-D5UCoyES.js +0 -359
  159. package/dist/web/server/assets/_id-DHx5UmmL.js +0 -12
  160. package/dist/web/server/assets/_id-DLpGmOVm.js +0 -19
  161. package/dist/web/server/assets/_id-Y5ctILG2.js +0 -13
  162. package/dist/web/server/assets/_id-dDA0pdVo.js +0 -54
  163. package/dist/web/server/assets/_tanstack-start-manifest_v-B8u80HjK.js +0 -292
  164. package/dist/web/server/assets/agent-actions-BBdFVdoa.js +0 -20
  165. package/dist/web/server/assets/api-WWxPqx67.js +0 -85
  166. package/dist/web/server/assets/inbox-4Vj5jTT8.js +0 -245
  167. package/dist/web/server/assets/inbox-D4IqUv3l.js +0 -38
  168. package/dist/web/server/assets/inbox-Dle24AfV.js +0 -23
  169. package/dist/web/server/assets/learning-BScq7VbO.js +0 -12
  170. package/dist/web/server/assets/learning-CBWFEnhg.js +0 -263
  171. package/dist/web/server/assets/learning-DWAKevhF.js +0 -25
  172. package/dist/web/server/assets/members-B8QBF6TF.js +0 -12
  173. package/dist/web/server/assets/members-DsF02Wp7.js +0 -12
  174. package/dist/web/server/assets/members-tWZA9b15.js +0 -36
  175. package/dist/web/server/assets/memory-BNN0b-0x.js +0 -12
  176. package/dist/web/server/assets/memory-CTl1E1Rm.js +0 -267
  177. package/dist/web/server/assets/memory-CV5uCBb2.js +0 -12
  178. package/dist/web/server/assets/policy-C9M6zV6w.js +0 -79
  179. package/dist/web/server/assets/policy-h-6NpU3m.js +0 -19
  180. package/dist/web/server/assets/policy-xEw9X0DK.js +0 -12
  181. package/dist/web/server/assets/results-D3A3UA4d.js +0 -182
  182. package/dist/web/server/assets/results-D6Ui5S8D.js +0 -12
  183. package/dist/web/server/assets/results-DWmxvfyn.js +0 -15
  184. package/dist/web/server/assets/review-CyQky-WQ.js +0 -40
  185. package/dist/web/server/assets/review-Sq0GGcPV.js +0 -322
  186. package/dist/web/server/assets/review-XWbSF8cF.js +0 -12
  187. package/dist/web/server/assets/route-BErtkz6t.js +0 -19
  188. package/dist/web/server/assets/route-CLoV-An_.js +0 -48
  189. package/dist/web/server/assets/route-WQ19JkBa.js +0 -19
  190. package/dist/web/server/assets/route-dEK_2GLj.js +0 -203
  191. package/dist/web/server/assets/route-iHTkhO81.js +0 -16
  192. package/dist/web/server/assets/route-zs8uUQtB.js +0 -16
  193. package/dist/web/server/assets/routes-081s4n24.js +0 -45
  194. package/dist/web/server/assets/routes-CWo5WPsr.js +0 -15
  195. package/dist/web/server/assets/routes-Cqp1ufHm.js +0 -56
  196. package/dist/web/server/assets/settings-CVaGv-xF.js +0 -12
  197. package/dist/web/server/assets/settings-D9viV-86.js +0 -561
  198. package/dist/web/server/assets/settings-DaZNZ_CC.js +0 -27
  199. package/dist/web/server/assets/triggers-B7LW784F.js +0 -214
  200. package/dist/web/server/assets/triggers-C5sMCZXv2.js +0 -12
  201. package/dist/web/server/assets/triggers-DMfVdImD.js +0 -12
  202. package/dist/web/client/assets/{TeamPolicyEditor-DLioOiRN.css → style-DLioOiRN.css} +0 -0
  203. package/dist/web/server/assets/{start-DTX6aKCi.js → start-DhW7sy23.js} +1 -1
@@ -1,43 +1,30 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as DAEMON_BASE_URL } from "./daemon-client-DL2ik2Em.js";
2
+ import { r as readCookie } from "./cookies-HnTYjKRp.js";
3
+ import { E as errorMessage, c as parseWorkspaceSearch, d as Button, f as AgentAvatar, m as agentState, w as api } from "./workspace-DeEYMPDX.js";
3
4
  import { n as publicOriginConfig } from "./public-origin-BpDkdS5Q.js";
4
- import { i as errorMessage, n as api, o as Button } from "./api-WWxPqx67.js";
5
- import { a as PageShell } from "./Page-CMSYKXWJ.js";
5
+ import { t as DAEMON_BASE_URL } from "./daemon-client-B_ZRIIrT.js";
6
+ import { a as PageShell } from "./Page-KIL1CsME.js";
6
7
  import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route$4 } from "./login-JoIjlcmu.js";
7
- import { r as readCookie } from "./cookies-HnTYjKRp.js";
8
8
  import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
9
- import { t as Route$5 } from "./routes-CWo5WPsr.js";
10
- import { t as Route$6 } from "./teams-BHkhnt6b.js";
11
- import { t as Route$7 } from "./skills-BZg_txbf.js";
12
- import { t as Route$8 } from "./config-C1VB28se.js";
13
- import { t as Route$9 } from "./attention-DULVjdmF.js";
14
- import { t as Route$10 } from "./agents-lOqc6VGd.js";
15
- import { t as Route$11 } from "./tokens-DqldzPUq.js";
16
- import { t as Route$12 } from "./services-Q9HYQXXB.js";
17
- import { t as Route$13 } from "./mcp-CqdTfXcn.js";
18
- import { t as Route$14 } from "./route-zs8uUQtB.js";
19
- import { t as Route$15 } from "./route-iHTkhO81.js";
20
- import { t as Route$16 } from "./teams-D4CaU76n.js";
21
- import { t as Route$17 } from "./agents-Cn9GkXFX.js";
22
- import { t as Route$18 } from "./_id-Bm611NQz.js";
23
- import { t as Route$19 } from "./_id-Y5ctILG2.js";
24
- import { t as Route$20 } from "./review-XWbSF8cF.js";
25
- import { t as Route$21 } from "./results-D6Ui5S8D.js";
26
- import { t as Route$22 } from "./policy-xEw9X0DK.js";
27
- import { t as Route$23 } from "./memory-BNN0b-0x.js";
28
- import { t as Route$24 } from "./members-B8QBF6TF.js";
29
- import { t as Route$25 } from "./telegram-BUdnc8oF.js";
30
- import { t as Route$26 } from "./triggers-DMfVdImD.js";
31
- import { t as Route$27 } from "./settings-CVaGv-xF.js";
32
- import { t as Route$28 } from "./learning-BScq7VbO.js";
33
- import { t as Route$29 } from "./inbox-Dle24AfV.js";
34
- import { t as Route$30 } from "./_id-B0x1ffz3.js";
35
- import { t as Route$31 } from "./_id-sW6zXrTP.js";
36
- import { useEffect, useState } from "react";
37
- import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, lazyRouteComponent, redirect, useRouter, useRouterState } from "@tanstack/react-router";
38
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
39
- import { BellRing, Bot, ChevronDown, LayoutTemplate, LogOut, MessageCircle, Settings2, Sparkles, UsersRound } from "lucide-react";
40
- import { DropdownMenu } from "radix-ui";
9
+ import { t as Route$5 } from "./routes-1FEodTRm.js";
10
+ import { t as Route$6 } from "./teams-D6Tx-Jyn.js";
11
+ import { t as Route$7 } from "./skills-CA17GjuZ.js";
12
+ import { t as Route$8 } from "./config-3tPtOmPE.js";
13
+ import { t as Route$9 } from "./attention-BbE4yc-V.js";
14
+ import { t as Route$10 } from "./agents-DPZVni4Q.js";
15
+ import { t as Route$11 } from "./tokens-ByPTGFBQ.js";
16
+ import { t as Route$12 } from "./services-Cdk40QHq.js";
17
+ import { t as Route$13 } from "./mcp-DE14q5c0.js";
18
+ import { t as Route$14 } from "./teams-Bm63mbTt.js";
19
+ import { t as Route$15 } from "./agents-CdZvooeQ.js";
20
+ import { t as Route$16 } from "./telegram-xU-vXgef.js";
21
+ import { t as Route$17 } from "./_id-DIXUiIaB.js";
22
+ import { t as Route$18 } from "./_id-CA3QO7J5.js";
23
+ import { useEffect, useMemo, useState } from "react";
24
+ import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, lazyRouteComponent, redirect, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
25
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
26
+ import { BellRing, Bot, ChevronDown, LayoutTemplate, LogOut, Search, Settings2, SlidersHorizontal, Sparkles, UsersRound } from "lucide-react";
27
+ import { Dialog, DropdownMenu } from "radix-ui";
41
28
  //#region src/components/RouteStates.tsx
42
29
  /** The router's error view for every route: a loader failed. The top nav stays usable. */
43
30
  function RouteErrorState({ error }) {
@@ -105,25 +92,264 @@ function Footer() {
105
92
  });
106
93
  }
107
94
  //#endregion
108
- //#region src/components/TopNav.tsx
109
- var PRIMARY_LINKS = [
110
- {
111
- to: "/",
112
- label: "Chat",
113
- icon: MessageCircle
114
- },
95
+ //#region src/components/JumpPalette.tsx
96
+ var PAGES = [
97
+ [
98
+ "Attention",
99
+ "Decisions and failures waiting for you",
100
+ "/attention"
101
+ ],
102
+ [
103
+ "Agents",
104
+ "Every Agent, archived ones too",
105
+ "/agents"
106
+ ],
107
+ [
108
+ "Teams",
109
+ "Register and remove Teams",
110
+ "/teams"
111
+ ],
112
+ [
113
+ "Templates",
114
+ "Agent and Team templates",
115
+ "/templates"
116
+ ],
117
+ [
118
+ "Skills",
119
+ "Prompt skills",
120
+ "/skills"
121
+ ],
122
+ [
123
+ "Setup",
124
+ "Providers, services, access",
125
+ "/config"
126
+ ]
127
+ ];
128
+ /** Destinations whose label or hint holds every word of the query. */
129
+ function filterDestinations(all, query) {
130
+ const words = query.toLowerCase().split(/\s+/).filter(Boolean);
131
+ if (words.length === 0) return [...all];
132
+ return all.filter((item) => {
133
+ const text = `${item.label} ${item.hint}`.toLowerCase();
134
+ return words.every((word) => text.includes(word));
135
+ });
136
+ }
137
+ function JumpPalette({ open, onClose }) {
138
+ const navigate = useNavigate();
139
+ const location = useRouterState({ select: (state) => state.location });
140
+ const [query, setQuery] = useState("");
141
+ const [active, setActive] = useState(0);
142
+ const [agents, setAgents] = useState([]);
143
+ const [teams, setTeams] = useState([]);
144
+ const [activity, setActivity] = useState([]);
145
+ useEffect(() => {
146
+ if (!open) return;
147
+ setQuery("");
148
+ setActive(0);
149
+ const controller = new AbortController();
150
+ const signal = controller.signal;
151
+ Promise.all([
152
+ api("/api/agents", { signal }),
153
+ api("/api/teams", { signal }),
154
+ api("/api/activity", { signal })
155
+ ]).then(([nextAgents, nextTeams, nextActivity]) => {
156
+ setAgents(nextAgents);
157
+ setTeams(nextTeams);
158
+ setActivity(nextActivity.agents);
159
+ }).catch(() => {});
160
+ return () => controller.abort();
161
+ }, [open]);
162
+ const shown = filterDestinations(useMemo(() => {
163
+ const teamName = new Map(teams.map((team) => [team.id, team.name]));
164
+ const states = new Map(activity.map((entry) => [entry.agentId, entry]));
165
+ const here = location.pathname === "/" ? parseWorkspaceSearch(location.search) : void 0;
166
+ const hereTeam = here?.team ?? agents.find((agent) => agent.id === here?.agent)?.teamId ?? void 0;
167
+ const list = agents.map((agent) => ({
168
+ key: `agent:${agent.id}`,
169
+ group: "Agents",
170
+ label: agent.name,
171
+ hint: `${teamName.get(agent.teamId) ?? agent.teamId} · ${agentState(states.get(agent.id), void 0).text}`,
172
+ agent,
173
+ search: { agent: agent.id }
174
+ }));
175
+ for (const team of teams) list.push({
176
+ key: `team:${team.id}`,
177
+ group: "Teams",
178
+ label: team.name,
179
+ hint: "Members, USER.md, memory",
180
+ search: {
181
+ team: team.id,
182
+ panel: "team"
183
+ }
184
+ });
185
+ if (hereTeam) {
186
+ const name = teamName.get(hereTeam) ?? hereTeam;
187
+ const keep = here?.agent ? { agent: here.agent } : { team: hereTeam };
188
+ list.push({
189
+ key: "view:connections",
190
+ group: "Go to",
191
+ label: "Connections",
192
+ hint: `${name} · who may message whom`,
193
+ search: {
194
+ ...keep,
195
+ team: hereTeam,
196
+ view: "connections"
197
+ }
198
+ }, {
199
+ key: "view:changes",
200
+ group: "Go to",
201
+ label: "Changes",
202
+ hint: `${name} · what changed in the workspace`,
203
+ search: {
204
+ ...keep,
205
+ team: hereTeam,
206
+ view: "changes"
207
+ }
208
+ }, {
209
+ key: "view:files",
210
+ group: "Go to",
211
+ label: "Files",
212
+ hint: `${name} · delivered files`,
213
+ search: {
214
+ ...keep,
215
+ team: hereTeam,
216
+ view: "files"
217
+ }
218
+ });
219
+ }
220
+ for (const [label, hint, path] of PAGES) list.push({
221
+ key: `page:${path}`,
222
+ group: "Manage",
223
+ label,
224
+ hint,
225
+ path
226
+ });
227
+ return list;
228
+ }, [
229
+ agents,
230
+ teams,
231
+ activity,
232
+ location
233
+ ]), query);
234
+ const current = Math.min(active, Math.max(shown.length - 1, 0));
235
+ function go(destination) {
236
+ if (!destination) return;
237
+ onClose();
238
+ if (destination.path) navigate({ to: destination.path });
239
+ else navigate({
240
+ to: "/",
241
+ search: destination.search ?? {}
242
+ });
243
+ }
244
+ return /* @__PURE__ */ jsx(Dialog.Root, {
245
+ open,
246
+ onOpenChange: (next) => !next && onClose(),
247
+ children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Overlay, { className: "fixed inset-0 z-50 bg-chocolate/30 data-[state=open]:animate-in data-[state=open]:fade-in-0" }), /* @__PURE__ */ jsxs(Dialog.Content, {
248
+ "aria-describedby": void 0,
249
+ className: "fixed left-1/2 top-[12vh] z-50 flex max-h-[70vh] w-[calc(100%-2rem)] max-w-xl -translate-x-1/2 flex-col overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-baziu-lg outline-none",
250
+ children: [
251
+ /* @__PURE__ */ jsx(Dialog.Title, {
252
+ className: "sr-only",
253
+ children: "Jump to"
254
+ }),
255
+ /* @__PURE__ */ jsxs("div", {
256
+ className: "flex items-center gap-2.5 border-b border-border px-4 py-3",
257
+ children: [
258
+ /* @__PURE__ */ jsx(Search, {
259
+ className: "size-4 shrink-0 text-muted-foreground",
260
+ "aria-hidden": "true"
261
+ }),
262
+ /* @__PURE__ */ jsx("input", {
263
+ autoFocus: true,
264
+ "aria-label": "Jump to",
265
+ role: "combobox",
266
+ "aria-expanded": "true",
267
+ "aria-controls": "jump-results",
268
+ "aria-activedescendant": shown[current] ? `jump-${shown[current].key}` : void 0,
269
+ value: query,
270
+ placeholder: "Jump to an agent, team or page",
271
+ onChange: (event) => {
272
+ setQuery(event.target.value);
273
+ setActive(0);
274
+ },
275
+ onKeyDown: (event) => {
276
+ if (event.key === "ArrowDown") {
277
+ event.preventDefault();
278
+ setActive(Math.min(current + 1, shown.length - 1));
279
+ } else if (event.key === "ArrowUp") {
280
+ event.preventDefault();
281
+ setActive(Math.max(current - 1, 0));
282
+ } else if (event.key === "Enter") {
283
+ event.preventDefault();
284
+ go(shown[current]);
285
+ }
286
+ },
287
+ className: "min-h-0 min-w-0 flex-1 border-0 bg-transparent p-0 text-[0.95rem] shadow-none outline-none focus:bg-transparent focus:shadow-none"
288
+ }),
289
+ /* @__PURE__ */ jsx("kbd", {
290
+ className: "rounded-md border border-border bg-muted px-1.5 py-0.5 font-mono text-[0.7rem] text-muted-foreground",
291
+ children: "Esc"
292
+ })
293
+ ]
294
+ }),
295
+ /* @__PURE__ */ jsxs("div", {
296
+ id: "jump-results",
297
+ role: "listbox",
298
+ "aria-label": "Destinations",
299
+ className: "overflow-y-auto p-1.5",
300
+ children: [shown.length === 0 && /* @__PURE__ */ jsxs("p", {
301
+ className: "px-3 py-6 text-center text-sm text-muted-foreground",
302
+ children: [
303
+ "Nothing matches “",
304
+ query,
305
+ "”."
306
+ ]
307
+ }), shown.map((destination, index) => /* @__PURE__ */ jsxs("div", { children: [destination.group !== shown[index - 1]?.group && /* @__PURE__ */ jsx("div", {
308
+ className: "px-2.5 pb-1 pt-2 text-[0.7rem] font-bold uppercase tracking-[0.08em] text-muted-foreground",
309
+ children: destination.group
310
+ }), /* @__PURE__ */ jsxs("button", {
311
+ type: "button",
312
+ id: `jump-${destination.key}`,
313
+ role: "option",
314
+ "aria-selected": index === current,
315
+ onMouseMove: () => setActive(index),
316
+ onClick: () => go(destination),
317
+ className: `unstyled flex min-h-10 w-full items-center gap-2.5 rounded-lg px-2.5 py-1.5 text-left text-sm ${index === current ? "bg-accent text-accent-foreground" : "text-foreground"}`,
318
+ children: [
319
+ destination.agent && /* @__PURE__ */ jsx(AgentAvatar, {
320
+ identity: destination.agent.identity,
321
+ size: 24
322
+ }),
323
+ /* @__PURE__ */ jsx("span", {
324
+ className: "font-semibold",
325
+ children: destination.label
326
+ }),
327
+ /* @__PURE__ */ jsx("span", {
328
+ className: "ml-auto min-w-0 truncate text-xs text-muted-foreground",
329
+ children: destination.hint
330
+ })
331
+ ]
332
+ })] }, destination.key))]
333
+ })
334
+ ]
335
+ })] })
336
+ });
337
+ }
338
+ //#endregion
339
+ //#region src/components/TopBar.tsx
340
+ var MANAGE_LINKS = [
115
341
  {
116
- to: "/agents",
342
+ href: "/agents",
117
343
  label: "Agents",
344
+ description: "Every Agent: archive, restore, delete.",
118
345
  icon: Bot
119
346
  },
120
347
  {
121
- to: "/teams",
348
+ href: "/teams",
122
349
  label: "Teams",
350
+ description: "Register a Team or remove an empty one.",
123
351
  icon: UsersRound
124
- }
125
- ];
126
- var MANAGE_LINKS = [
352
+ },
127
353
  {
128
354
  href: "/templates",
129
355
  label: "Templates",
@@ -143,18 +369,34 @@ var MANAGE_LINKS = [
143
369
  icon: Settings2
144
370
  }
145
371
  ];
146
- function TopNav() {
372
+ function TopBar() {
147
373
  const pathname = useRouterState({ select: (state) => state.location.pathname });
148
374
  const [attention, setAttention] = useState(null);
149
375
  const [logoutError, setLogoutError] = useState(null);
376
+ const [paletteOpen, setPaletteOpen] = useState(false);
377
+ const [mac, setMac] = useState(false);
378
+ useEffect(() => setMac(/Mac|iPhone|iPad/.test(navigator.userAgent)), []);
379
+ const setupOnly = pathname === "/welcome";
150
380
  useEffect(() => {
151
381
  if (pathname === "/login" || pathname === "/welcome") return;
152
382
  const controller = new AbortController();
153
383
  api("/api/attention/summary", { signal: controller.signal }).then(setAttention).catch(() => {});
154
384
  return () => controller.abort();
155
385
  }, [pathname]);
386
+ useEffect(() => {
387
+ if (setupOnly) return;
388
+ const onKey = (event) => {
389
+ if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
390
+ event.preventDefault();
391
+ setPaletteOpen((open) => !open);
392
+ }
393
+ };
394
+ window.addEventListener("keydown", onKey);
395
+ return () => window.removeEventListener("keydown", onKey);
396
+ }, [setupOnly]);
156
397
  const attentionActive = pathname === "/attention" || pathname.startsWith("/attention/");
157
398
  const openAttention = attention?.openTotal ?? 0;
399
+ const manageActive = MANAGE_LINKS.some((link) => pathname === link.href || pathname.startsWith(`${link.href}/`));
158
400
  async function logout() {
159
401
  setLogoutError(null);
160
402
  try {
@@ -166,7 +408,7 @@ function TopNav() {
166
408
  }
167
409
  return /* @__PURE__ */ jsxs("nav", {
168
410
  "aria-label": "Primary navigation",
169
- className: "relative mx-auto grid w-full max-w-[1500px] shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 border-b border-frost py-3 md:flex md:gap-2 md:py-4",
411
+ className: "relative mx-auto flex w-full max-w-[1800px] shrink-0 flex-wrap items-center gap-x-3 gap-y-2 border-b border-frost py-2.5",
170
412
  children: [
171
413
  /* @__PURE__ */ jsxs(Link, {
172
414
  to: "/",
@@ -177,142 +419,137 @@ function TopNav() {
177
419
  children: "bazilion"
178
420
  })]
179
421
  }),
180
- /* @__PURE__ */ jsxs("div", {
181
- className: "col-span-2 row-start-2 flex min-w-0 items-center gap-1 overflow-x-auto pb-0.5 md:col-auto md:row-auto md:ml-4 md:flex-1 md:overflow-visible md:pb-0",
422
+ !setupOnly && /* @__PURE__ */ jsxs("button", {
423
+ type: "button",
424
+ onClick: () => setPaletteOpen(true),
425
+ "aria-label": "Jump to an agent, team or page",
426
+ className: "unstyled order-last flex h-9 min-w-0 basis-full items-center gap-2 rounded-[10px] border border-border bg-muted px-2.5 text-left text-sm text-mocha transition-colors hover:border-sapphire-light sm:order-none sm:ml-3 sm:max-w-sm sm:flex-1 sm:basis-60",
182
427
  children: [
183
- PRIMARY_LINKS.map((link) => {
184
- const active = link.to === "/" ? pathname === "/" : pathname === link.to || pathname.startsWith(`${link.to}/`);
185
- const Icon = link.icon;
186
- return /* @__PURE__ */ jsxs(Link, {
187
- to: link.to,
188
- "aria-current": active ? "page" : void 0,
189
- className: navButtonClass(active),
190
- children: [/* @__PURE__ */ jsx(Icon, {
191
- className: "hidden size-4 shrink-0 sm:block",
192
- "aria-hidden": "true"
193
- }), /* @__PURE__ */ jsx("span", { children: link.label })]
194
- }, link.to);
428
+ /* @__PURE__ */ jsx(Search, {
429
+ className: "size-4 shrink-0",
430
+ "aria-hidden": "true"
195
431
  }),
432
+ /* @__PURE__ */ jsx("span", {
433
+ className: "min-w-0 flex-1 truncate",
434
+ children: "Jump to an agent, team or page"
435
+ }),
436
+ /* @__PURE__ */ jsx("kbd", {
437
+ className: "hidden rounded-md border border-border bg-card px-1.5 py-px font-mono text-[0.7rem] sm:inline",
438
+ children: mac ? "⌘K" : "Ctrl K"
439
+ })
440
+ ]
441
+ }),
442
+ /* @__PURE__ */ jsxs("div", {
443
+ className: "ml-auto flex items-center gap-1",
444
+ children: [
196
445
  /* @__PURE__ */ jsxs(Link, {
197
446
  to: "/attention",
198
447
  "aria-current": attentionActive ? "page" : void 0,
199
448
  className: navButtonClass(attentionActive),
200
449
  children: [
201
450
  /* @__PURE__ */ jsx(BellRing, {
202
- className: "hidden size-4 shrink-0 sm:block",
451
+ className: "size-4 shrink-0",
203
452
  "aria-hidden": "true"
204
453
  }),
205
- /* @__PURE__ */ jsx("span", { children: "Attention" }),
206
- openAttention > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
207
- /* @__PURE__ */ jsx("span", {
208
- className: "size-2 shrink-0 rounded-full bg-danger sm:hidden",
454
+ /* @__PURE__ */ jsx("span", {
455
+ className: "hidden sm:inline",
456
+ children: "Attention"
457
+ }),
458
+ openAttention > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
459
+ className: "inline-flex min-w-5 items-center justify-center rounded-full bg-danger px-1.5 py-0.5 text-xs font-semibold leading-4 text-primary-foreground",
460
+ "aria-hidden": "true",
461
+ children: openAttention > 99 ? "99+" : openAttention
462
+ }), /* @__PURE__ */ jsxs("span", {
463
+ className: "sr-only",
464
+ children: [
465
+ ", ",
466
+ openAttention,
467
+ " open items"
468
+ ]
469
+ })] })
470
+ ]
471
+ }),
472
+ /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
473
+ asChild: true,
474
+ children: /* @__PURE__ */ jsxs("button", {
475
+ type: "button",
476
+ className: navButtonClass(manageActive),
477
+ "aria-label": "Manage menu",
478
+ children: [
479
+ /* @__PURE__ */ jsx(SlidersHorizontal, {
480
+ className: "size-4 shrink-0",
209
481
  "aria-hidden": "true"
210
482
  }),
211
483
  /* @__PURE__ */ jsx("span", {
212
- className: "hidden min-w-5 items-center justify-center rounded-full bg-danger px-1.5 py-0.5 text-xs font-semibold leading-4 text-primary-foreground sm:inline-flex",
213
- "aria-hidden": "true",
214
- children: openAttention > 99 ? "99+" : openAttention
484
+ className: "hidden sm:inline",
485
+ children: "Manage"
215
486
  }),
216
- /* @__PURE__ */ jsxs("span", {
217
- className: "sr-only",
218
- children: [
219
- ", ",
220
- openAttention,
221
- " open items"
222
- ]
487
+ /* @__PURE__ */ jsx(ChevronDown, {
488
+ className: "size-3 shrink-0 text-muted-foreground",
489
+ "aria-hidden": "true"
223
490
  })
224
- ] })
225
- ]
226
- }),
227
- /* @__PURE__ */ jsx(NavMenu, {
228
- label: "Manage",
229
- icon: Settings2,
230
- links: MANAGE_LINKS,
231
- pathname,
232
- align: "end"
491
+ ]
492
+ })
493
+ }), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu.Content, {
494
+ align: "end",
495
+ sideOffset: 8,
496
+ collisionPadding: 12,
497
+ className: "z-50 w-[min(21rem,calc(100vw-1.5rem))] rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-baziu-lg outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
498
+ children: MANAGE_LINKS.map((link) => {
499
+ const ItemIcon = link.icon;
500
+ const itemActive = pathname === link.href || pathname.startsWith(`${link.href}/`);
501
+ return /* @__PURE__ */ jsx(DropdownMenu.Item, {
502
+ asChild: true,
503
+ children: /* @__PURE__ */ jsxs("a", {
504
+ href: link.href,
505
+ "aria-current": itemActive ? "page" : void 0,
506
+ className: `flex cursor-pointer items-start gap-3 rounded-lg px-2.5 py-2.5 outline-none transition-colors focus:bg-accent focus:text-accent-foreground ${itemActive ? "bg-accent/70 text-accent-foreground" : "text-foreground"}`,
507
+ children: [/* @__PURE__ */ jsx("span", {
508
+ className: "mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
509
+ children: /* @__PURE__ */ jsx(ItemIcon, {
510
+ className: "size-3.5",
511
+ "aria-hidden": "true"
512
+ })
513
+ }), /* @__PURE__ */ jsxs("span", {
514
+ className: "min-w-0 flex-1",
515
+ children: [/* @__PURE__ */ jsx("span", {
516
+ className: "block text-sm font-semibold",
517
+ children: link.label
518
+ }), /* @__PURE__ */ jsx("span", {
519
+ className: "mt-0.5 block text-xs leading-5 text-muted-foreground",
520
+ children: link.description
521
+ })]
522
+ })]
523
+ })
524
+ }, link.href);
525
+ })
526
+ }) })] }),
527
+ /* @__PURE__ */ jsx(ThemeToggle, {}),
528
+ /* @__PURE__ */ jsx("button", {
529
+ type: "button",
530
+ onClick: () => void logout(),
531
+ "aria-label": "Log out",
532
+ title: "Log out",
533
+ className: "unstyled inline-flex h-9 w-9 items-center justify-center rounded-lg text-mocha hover:bg-ivory hover:text-sapphire",
534
+ children: /* @__PURE__ */ jsx(LogOut, {
535
+ className: "h-4 w-4",
536
+ "aria-hidden": "true"
537
+ })
233
538
  })
234
539
  ]
235
540
  }),
236
- /* @__PURE__ */ jsxs("div", {
237
- className: "col-start-2 row-start-1 flex items-center gap-1 md:col-auto md:row-auto md:ml-auto",
238
- children: [/* @__PURE__ */ jsx(ThemeToggle, {}), /* @__PURE__ */ jsx("button", {
239
- type: "button",
240
- onClick: () => void logout(),
241
- "aria-label": "Log out",
242
- title: "Log out",
243
- className: "unstyled inline-flex h-9 w-9 items-center justify-center rounded-lg text-mocha hover:bg-ivory hover:text-sapphire",
244
- children: /* @__PURE__ */ jsx(LogOut, {
245
- className: "h-4 w-4",
246
- "aria-hidden": "true"
247
- })
248
- })]
249
- }),
250
541
  logoutError && /* @__PURE__ */ jsx("p", {
251
542
  role: "alert",
252
- className: "col-span-2 m-0 rounded-lg bg-danger/10 px-3 py-2 text-sm text-danger md:absolute md:right-0 md:top-[calc(100%+0.35rem)] md:z-50 md:shadow-baziu-md",
543
+ className: "m-0 basis-full rounded-lg bg-danger/10 px-3 py-2 text-sm text-danger",
253
544
  children: logoutError
545
+ }),
546
+ /* @__PURE__ */ jsx(JumpPalette, {
547
+ open: paletteOpen,
548
+ onClose: () => setPaletteOpen(false)
254
549
  })
255
550
  ]
256
551
  });
257
552
  }
258
- function NavMenu({ label, icon: Icon, links, pathname, align = "start" }) {
259
- const active = links.some((link) => pathname === link.href || pathname.startsWith(`${link.href}/`));
260
- return /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
261
- asChild: true,
262
- children: /* @__PURE__ */ jsxs("button", {
263
- type: "button",
264
- className: navButtonClass(active),
265
- "aria-label": `${label} menu`,
266
- children: [
267
- /* @__PURE__ */ jsx(Icon, {
268
- className: "hidden size-4 shrink-0 sm:block",
269
- "aria-hidden": "true"
270
- }),
271
- /* @__PURE__ */ jsx("span", { children: label }),
272
- /* @__PURE__ */ jsx(ChevronDown, {
273
- className: "size-3 shrink-0 text-muted-foreground",
274
- "aria-hidden": "true"
275
- })
276
- ]
277
- })
278
- }), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsxs(DropdownMenu.Content, {
279
- align,
280
- sideOffset: 8,
281
- collisionPadding: 12,
282
- className: "z-50 w-[min(21rem,calc(100vw-1.5rem))] rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-baziu-lg outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
283
- children: [/* @__PURE__ */ jsx(DropdownMenu.Label, {
284
- className: "px-2.5 pb-1 pt-1 text-xs font-semibold uppercase tracking-[0.1em] text-muted-foreground",
285
- children: label
286
- }), links.map((link) => {
287
- const ItemIcon = link.icon;
288
- const itemActive = pathname === link.href || pathname.startsWith(`${link.href}/`);
289
- return /* @__PURE__ */ jsx(DropdownMenu.Item, {
290
- asChild: true,
291
- children: /* @__PURE__ */ jsxs("a", {
292
- href: link.href,
293
- "aria-current": itemActive ? "page" : void 0,
294
- className: `flex cursor-pointer items-start gap-3 rounded-lg px-2.5 py-2.5 outline-none transition-colors focus:bg-accent focus:text-accent-foreground ${itemActive ? "bg-accent/70 text-accent-foreground" : "text-foreground"}`,
295
- children: [/* @__PURE__ */ jsx("span", {
296
- className: "mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
297
- children: /* @__PURE__ */ jsx(ItemIcon, {
298
- className: "size-3.5",
299
- "aria-hidden": "true"
300
- })
301
- }), /* @__PURE__ */ jsxs("span", {
302
- className: "min-w-0 flex-1",
303
- children: [/* @__PURE__ */ jsx("span", {
304
- className: "block text-sm font-semibold",
305
- children: link.label
306
- }), /* @__PURE__ */ jsx("span", {
307
- className: "mt-0.5 block text-xs leading-5 text-muted-foreground",
308
- children: link.description
309
- })]
310
- })]
311
- })
312
- }, link.href);
313
- })]
314
- }) })] });
315
- }
316
553
  function navButtonClass(active) {
317
554
  return `unstyled inline-flex h-9 shrink-0 items-center justify-center gap-1.5 rounded-lg border px-2 text-sm font-semibold transition-colors sm:px-2.5 ${active ? "border-sapphire-light bg-sapphire-glow text-sapphire shadow-baziu-sm" : "border-transparent text-mocha hover:border-frost hover:bg-ivory hover:text-sapphire"}`;
318
555
  }
@@ -327,7 +564,7 @@ function isSetupOpen(path) {
327
564
  }
328
565
  //#endregion
329
566
  //#region src/styles.css?url
330
- var styles_default = "/assets/styles-xUnZ-ep_.css";
567
+ var styles_default = "/assets/styles-Tney8jZq.css";
331
568
  //#endregion
332
569
  //#region src/routes/__root.tsx
333
570
  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){}})();`;
@@ -405,11 +642,11 @@ function RootComponent() {
405
642
  className: "flex h-dvh flex-col",
406
643
  children: [/* @__PURE__ */ jsx("div", {
407
644
  className: "px-3 sm:px-5",
408
- children: /* @__PURE__ */ jsx(TopNav, {})
645
+ children: /* @__PURE__ */ jsx(TopBar, {})
409
646
  }), /* @__PURE__ */ jsx("main", {
410
647
  id: "main-content",
411
648
  tabIndex: -1,
412
- className: "mx-auto min-h-0 w-full max-w-[1600px] flex-1 overflow-hidden px-3 pb-3 sm:px-5 sm:pb-5",
649
+ className: "mx-auto min-h-0 w-full max-w-[1600px] flex-1 overflow-clip px-3 pb-3 sm:px-5 sm:pb-5",
413
650
  children: /* @__PURE__ */ jsx(Outlet, {})
414
651
  })]
415
652
  }) : /* @__PURE__ */ jsxs("div", {
@@ -417,7 +654,7 @@ function RootComponent() {
417
654
  children: [
418
655
  /* @__PURE__ */ jsx("div", {
419
656
  className: "px-3 sm:px-5",
420
- children: /* @__PURE__ */ jsx(TopNav, {})
657
+ children: /* @__PURE__ */ jsx(TopBar, {})
421
658
  }),
422
659
  /* @__PURE__ */ jsx("main", {
423
660
  id: "main-content",
@@ -438,7 +675,7 @@ function RootComponent() {
438
675
  }
439
676
  //#endregion
440
677
  //#region src/routes/welcome.tsx
441
- var $$splitComponentImporter = () => import("./welcome-D0d38Pzx.js");
678
+ var $$splitComponentImporter = () => import("./welcome-O6Rjd7yO.js");
442
679
  var Route$2 = createFileRoute("/welcome")({
443
680
  beforeLoad: async () => {
444
681
  if ((await fetchAuthState()).setupComplete) throw redirect({ to: "/" });
@@ -607,118 +844,30 @@ var ApiSplatRoute = Route.update({
607
844
  path: "/api/$",
608
845
  getParentRoute: () => Route$3
609
846
  });
610
- var TeamsIdRouteRoute = Route$14.update({
611
- id: "/teams/$id",
612
- path: "/teams/$id",
613
- getParentRoute: () => Route$3
614
- });
615
- var AgentsIdRouteRoute = Route$15.update({
616
- id: "/agents/$id",
617
- path: "/agents/$id",
618
- getParentRoute: () => Route$3
619
- });
620
- var TemplatesTeamsIndexRoute = Route$16.update({
847
+ var TemplatesTeamsIndexRoute = Route$14.update({
621
848
  id: "/templates/teams/",
622
849
  path: "/templates/teams/",
623
850
  getParentRoute: () => Route$3
624
851
  });
625
- var TemplatesAgentsIndexRoute = Route$17.update({
852
+ var TemplatesAgentsIndexRoute = Route$15.update({
626
853
  id: "/templates/agents/",
627
854
  path: "/templates/agents/",
628
855
  getParentRoute: () => Route$3
629
856
  });
630
- var TeamsIdIndexRoute = Route$18.update({
631
- id: "/",
632
- path: "/",
633
- getParentRoute: () => TeamsIdRouteRoute
634
- });
635
- var AgentsIdIndexRoute = Route$19.update({
636
- id: "/",
637
- path: "/",
638
- getParentRoute: () => AgentsIdRouteRoute
639
- });
640
- var TeamsIdReviewRoute = Route$20.update({
641
- id: "/review",
642
- path: "/review",
643
- getParentRoute: () => TeamsIdRouteRoute
644
- });
645
- var TeamsIdResultsRoute = Route$21.update({
646
- id: "/results",
647
- path: "/results",
648
- getParentRoute: () => TeamsIdRouteRoute
649
- });
650
- var TeamsIdPolicyRoute = Route$22.update({
651
- id: "/policy",
652
- path: "/policy",
653
- getParentRoute: () => TeamsIdRouteRoute
654
- });
655
- var TeamsIdMemoryRoute = Route$23.update({
656
- id: "/memory",
657
- path: "/memory",
658
- getParentRoute: () => TeamsIdRouteRoute
659
- });
660
- var TeamsIdMembersRoute = Route$24.update({
661
- id: "/members",
662
- path: "/members",
663
- getParentRoute: () => TeamsIdRouteRoute
664
- });
665
- var ConfigIntegrationsTelegramRoute = Route$25.update({
857
+ var ConfigIntegrationsTelegramRoute = Route$16.update({
666
858
  id: "/config/integrations/telegram",
667
859
  path: "/config/integrations/telegram",
668
860
  getParentRoute: () => Route$3
669
861
  });
670
- var AgentsIdTriggersRoute = Route$26.update({
671
- id: "/triggers",
672
- path: "/triggers",
673
- getParentRoute: () => AgentsIdRouteRoute
674
- });
675
- var AgentsIdSettingsRoute = Route$27.update({
676
- id: "/settings",
677
- path: "/settings",
678
- getParentRoute: () => AgentsIdRouteRoute
679
- });
680
- var AgentsIdLearningRoute = Route$28.update({
681
- id: "/learning",
682
- path: "/learning",
683
- getParentRoute: () => AgentsIdRouteRoute
684
- });
685
- var AgentsIdInboxRoute = Route$29.update({
686
- id: "/inbox",
687
- path: "/inbox",
688
- getParentRoute: () => AgentsIdRouteRoute
689
- });
690
- var TemplatesTeamsIdIndexRoute = Route$30.update({
862
+ var TemplatesTeamsIdIndexRoute = Route$17.update({
691
863
  id: "/templates/teams/$id/",
692
864
  path: "/templates/teams/$id/",
693
865
  getParentRoute: () => Route$3
694
866
  });
695
- var TemplatesAgentsIdIndexRoute = Route$31.update({
696
- id: "/templates/agents/$id/",
697
- path: "/templates/agents/$id/",
698
- getParentRoute: () => Route$3
699
- });
700
- var AgentsIdRouteRouteChildren = {
701
- AgentsIdInboxRoute,
702
- AgentsIdLearningRoute,
703
- AgentsIdSettingsRoute,
704
- AgentsIdTriggersRoute,
705
- AgentsIdIndexRoute
706
- };
707
- var AgentsIdRouteRouteWithChildren = AgentsIdRouteRoute._addFileChildren(AgentsIdRouteRouteChildren);
708
- var TeamsIdRouteRouteChildren = {
709
- TeamsIdMembersRoute,
710
- TeamsIdMemoryRoute,
711
- TeamsIdPolicyRoute,
712
- TeamsIdResultsRoute,
713
- TeamsIdReviewRoute,
714
- TeamsIdIndexRoute
715
- };
716
867
  var rootRouteChildren = {
717
868
  IndexRoute,
718
869
  LoginRoute,
719
870
  WelcomeRoute,
720
- AgentsIdRouteRoute: AgentsIdRouteRouteWithChildren,
721
- TeamsIdRouteRoute: TeamsIdRouteRoute._addFileChildren(TeamsIdRouteRouteChildren),
722
871
  ApiSplatRoute,
723
872
  ConfigMcpRoute,
724
873
  ConfigServicesRoute,
@@ -732,7 +881,11 @@ var rootRouteChildren = {
732
881
  ConfigIntegrationsTelegramRoute,
733
882
  TemplatesAgentsIndexRoute,
734
883
  TemplatesTeamsIndexRoute,
735
- TemplatesAgentsIdIndexRoute,
884
+ TemplatesAgentsIdIndexRoute: Route$18.update({
885
+ id: "/templates/agents/$id/",
886
+ path: "/templates/agents/$id/",
887
+ getParentRoute: () => Route$3
888
+ }),
736
889
  TemplatesTeamsIdIndexRoute
737
890
  };
738
891
  var routeTree = Route$3._addFileChildren(rootRouteChildren)._addFileTypes();