bazilion 0.54.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 (188) hide show
  1. package/dist/cli.js +201 -41
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +1561 -522
  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-UiegBKOK.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-Dc0bNn-J.js +1 -0
  13. package/dist/web/client/assets/{Segmented-MYKKTuZO.js → Segmented-iylzLwE6.js} +1 -1
  14. package/dist/web/client/assets/SkillsParts-C5T7sYDA.js +1 -0
  15. package/dist/web/client/assets/{SpawnTeamModal-DG5UbJNK.js → SpawnTeamModal-DatFF4f_.js} +1 -1
  16. package/dist/web/client/assets/{TeamForm-DGlxWv4e.js → TeamForm-l-N_PYeE.js} +1 -1
  17. package/dist/web/client/assets/TeamThread-BWmIQiAh.js +1 -0
  18. package/dist/web/client/assets/{UnsavedChangesGuard-BmdwLH99.js → UnsavedChangesGuard-vQBdMl8h.js} +1 -1
  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-C8d8vaQ6.js → access-BbQFbTPh.js} +1 -1
  22. package/dist/web/client/assets/{agent-actions-BgE9fKHH.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-Bb--PFVU.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-CZHSSDYA.js +1 -0
  32. package/dist/web/client/assets/{download-C4t9l5wR.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-DzbjpYrV.js → file-text-D6OTHixJ.js} +1 -1
  35. package/dist/web/client/assets/{images-DSYgPKM7.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-BpK4-E3T.js → key-round-DmSZN0Kq.js} +1 -1
  38. package/dist/web/client/assets/{list-checks-JNXcmws9.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-SRGSx8n2.js → manage-R57MUzsY.js} +1 -1
  41. package/dist/web/client/assets/{mcp-BUWu4TvS.js → mcp-CSHrVH1t.js} +1 -1
  42. package/dist/web/client/assets/{message-square-DM2MP9vF.js → message-square-B_pULba_.js} +1 -1
  43. package/dist/web/client/assets/{network-BJ4iPjQO.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-Dmm6cV-G.js → square-terminal-CYfGBHPC.js} +1 -1
  50. package/dist/web/client/assets/{style-CA2GAk9b.js → style-Bm9QsFpy.js} +1 -1
  51. package/dist/web/client/assets/styles-B-kTTvCo.css +2 -0
  52. package/dist/web/client/assets/{system-zQ0NnQML.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-CQaIZbpy.js → use-resource-Bn0Sx7r6.js} +1 -1
  59. package/dist/web/client/assets/{users-round-BJrym3FG.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-GbE1M1RJ.js → wrench-BLEJjETg.js} +1 -1
  62. package/dist/web/server/assets/{AddProviderDialog-Nc5mc_P6.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-DZK_r3nQ.js → AgentTemplateParts-CxWyovvM.js} +6 -2
  65. package/dist/web/server/assets/Button-Dsnw22OF.js +17 -0
  66. package/dist/web/server/assets/{ConfigPage-CxzL-gTm.js → ConfigPage-usZi48Zr.js} +2 -2
  67. package/dist/web/server/assets/{ConfirmDialog-4xeCXKHe.js → ConfirmDialog-DAcSBHkT.js} +3 -1
  68. package/dist/web/server/assets/{ConnectionsView-B02FjNsM.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-BfCWE8Lj.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-D58l8voo.js → SkillsParts-Cw05b3al.js} +6 -2
  73. package/dist/web/server/assets/SpawnDialog-BAE8W91z.js +125 -0
  74. package/dist/web/server/assets/{SpawnTeamModal-RjzAeX_Q.js → SpawnTeamModal-CgBY0HuN.js} +6 -2
  75. package/dist/web/server/assets/{TeamForm-DdOgIMiV.js → TeamForm-JyO5xJXX.js} +6 -2
  76. package/dist/web/server/assets/{TeamThread-D-PvO3fu.js → TeamThread-5o48EbXL.js} +52 -4
  77. package/dist/web/server/assets/{UnsavedChangesGuard-Bb5frygQ.js → UnsavedChangesGuard-CJQGu45L.js} +1 -1
  78. package/dist/web/server/assets/{_id-C1_l6oSR.js → _id-BE_RSvuN.js} +14 -9
  79. package/dist/web/server/assets/{_id-CHvYQhWt.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-BPjVkcNb.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-BUfy-GwH.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-CNfvQ3NB.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-Cm_izIIC.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-COnfW5AU.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-NOkh61dV.js → agents-BXuglv4G.js} +12 -6
  92. package/dist/web/server/assets/{agents-C7UmTjfO.js → agents-DhenbitX.js} +2 -2
  93. package/dist/web/server/assets/{agents-D0hfGIMK.js → agents-KJcDMj0Y.js} +9 -6
  94. package/dist/web/server/assets/{agents-DzpqlIuJ.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-Cx9ZWPOO.js → attention-CDdOCOio.js} +3 -2
  97. package/dist/web/server/assets/{attention-CRvxt22X.js → attention-DM__BzWY.js} +24 -9
  98. package/dist/web/server/assets/{attention-CgWhXjX7.js → attention-X0U6ZmiA.js} +2 -1
  99. package/dist/web/server/assets/{auth-dJnrFW6y.js → auth-BexhV8Yq.js} +1 -1
  100. package/dist/web/server/assets/{config-B5CS8juO.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-D117117T.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-va4EtvA8.js → login-BJdJ219n.js} +1 -1
  108. package/dist/web/server/assets/{login-IF0Gbsuq.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-C96PBxpb.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-Bm9U6x7N.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-CwcbXMhx.js → page-title-PTpFHXWo.js} +6 -3
  115. package/dist/web/server/assets/parts-k9M-atPa.js +436 -0
  116. package/dist/web/server/assets/{router-8Iq19GOz.js → router-BttfLktO.js} +354 -114
  117. package/dist/web/server/assets/{routes-Kwam6JmS.js → routes-A7UcreVX.js} +9 -6
  118. package/dist/web/server/assets/{routes-BLo-fWbQ.js → routes-B9jw-MJ8.js} +1286 -331
  119. package/dist/web/server/assets/{routes-BXvYYFrN.js → routes-BX2FV8rS.js} +3 -3
  120. package/dist/web/server/assets/{skills-DSezIdDc.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-BqCnA-74.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-C2hIPY_Y.js → style-BQ3H9I7Y.js} +1 -1
  126. package/dist/web/server/assets/{system-CcLCmkIC.js → system-BJPKqM6b.js} +2 -2
  127. package/dist/web/server/assets/{system-E0VePdzO.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-CdCmBJIj.js → teams-B6gbflsZ.js} +10 -6
  130. package/dist/web/server/assets/{teams-CQVV18D3.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-DScFp8mK.js → teams-CiX8LUQo.js} +2 -2
  134. package/dist/web/server/assets/{teams-DxA-vnzY.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-DJ8s_91Y.js → telegram-D8_V7_sW.js} +286 -272
  137. package/dist/web/server/assets/{telegram-DR7xijeS.js → telegram-DA2dwLID.js} +2 -2
  138. package/dist/web/server/assets/{tools-V6kezUpL.js → tools-CckcG9Jl.js} +5 -3
  139. package/dist/web/server/assets/{tools-CsH9DI-4.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-CjcJwn7F.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-Ya8TkL4v.js → welcome-CYhh3iUU.js} +8 -6
  146. package/dist/web/server/assets/{welcome-BpmcD-ia.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/web-server.js +4 -0
  150. package/dist/web-server.js.map +1 -1
  151. package/dist/worker.js +40 -15
  152. package/dist/worker.js.map +1 -1
  153. package/package.json +4 -4
  154. package/dist/web/client/assets/AddProviderDialog-CkwSq3C7.js +0 -1
  155. package/dist/web/client/assets/AgentTemplateParts-CEn_4qVs.js +0 -1
  156. package/dist/web/client/assets/ConfigPage-CUbHBhzx.js +0 -1
  157. package/dist/web/client/assets/ConfirmDialog-VqBOFZEp.js +0 -1
  158. package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +0 -1
  159. package/dist/web/client/assets/ManagePage-BJWZd1ts.js +0 -1
  160. package/dist/web/client/assets/SectionTabs-ViZKm3-B.js +0 -1
  161. package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +0 -1
  162. package/dist/web/client/assets/TeamThread-mkwODO0S.js +0 -1
  163. package/dist/web/client/assets/_id-CvcxNmBH.js +0 -1
  164. package/dist/web/client/assets/_id-UyBk7gRl.js +0 -1
  165. package/dist/web/client/assets/agents-CgtzqBpD.js +0 -1
  166. package/dist/web/client/assets/agents-D7W4BT8r.js +0 -1
  167. package/dist/web/client/assets/arrow-right-D0HKRb7U.js +0 -1
  168. package/dist/web/client/assets/attention-D9mQWoKt.js +0 -1
  169. package/dist/web/client/assets/chevron-right-bs0TUSl2.js +0 -1
  170. package/dist/web/client/assets/config-Dw6GWf38.js +0 -1
  171. package/dist/web/client/assets/createLucideIcon-DkniuEtD.js +0 -1
  172. package/dist/web/client/assets/index-YW0gXPfk.js +0 -14
  173. package/dist/web/client/assets/login-DcQJk5-U.js +0 -1
  174. package/dist/web/client/assets/parts-LZxl9Gvc.js +0 -41
  175. package/dist/web/client/assets/plus-CLGNN5QX.js +0 -1
  176. package/dist/web/client/assets/routes-BxIIyGho.js +0 -85
  177. package/dist/web/client/assets/skills-C7DzIwFJ.js +0 -1
  178. package/dist/web/client/assets/styles-C3CDSGAr.css +0 -2
  179. package/dist/web/client/assets/teams-BEIJHObN.js +0 -1
  180. package/dist/web/client/assets/teams-DlOc7Ods.js +0 -1
  181. package/dist/web/client/assets/telegram-DKHq5DpE.js +0 -1
  182. package/dist/web/client/assets/tools-BKIpLaiC.js +0 -1
  183. package/dist/web/client/assets/welcome-CyS4Hrd-.js +0 -1
  184. package/dist/web/server/assets/Rail-3gbidhyv.js +0 -605
  185. package/dist/web/server/assets/SpawnDialog-MJWwppgC.js +0 -1648
  186. package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +0 -256
  187. package/dist/web/server/assets/createSsrRpc-CwTd0zrB.js +0 -72
  188. package/dist/web/server/assets/public-origin-BpDkdS5Q.js +0 -34
@@ -1,30 +1,37 @@
1
1
  import { r as readCookie } from "./cookies-HnTYjKRp.js";
2
- import { $ as agentState, H as parseWorkspaceSearch, K as Button, W as Dialog$1, dt as errorMessage, et as shortTime, lt as api, q as AgentAvatar, t as SpawnDialog } from "./SpawnDialog-MJWwppgC.js";
3
- import { n as publicOriginConfig } from "./public-origin-BpDkdS5Q.js";
4
- import { t as DAEMON_BASE_URL } from "./daemon-client-B_ZRIIrT.js";
5
- import { i as useAttentionCount, r as AttentionCountProvider, t as PageTitleProvider } from "./page-title-CwcbXMhx.js";
6
- import { r as PageShell } from "./createSsrRpc-CwTd0zrB.js";
7
- import { a as PawIcon, i as useThemeMode, n as THEME_MODES, o as BaziuLogo, r as setThemeMode, t as Route$3 } from "./login-va4EtvA8.js";
8
- import { i as isTyping, n as NEW_CONVERSATION_EVENT, r as SHORTCUTS, t as Route$4 } from "./routes-Kwam6JmS.js";
9
- import { i as isSetupOpen, n as PUBLIC_PATHS, r as fetchAuthState, t as Route$5 } from "./welcome-BpmcD-ia.js";
10
- import { t as Route$6 } from "./teams-DScFp8mK.js";
11
- import { t as Route$7 } from "./skills-BqCnA-74.js";
12
- import { t as Route$8 } from "./config-B5CS8juO.js";
13
- import { t as Route$9 } from "./attention-Cx9ZWPOO.js";
14
- import { t as Route$10 } from "./agents-DzpqlIuJ.js";
15
- import { t as Route$11 } from "./tools-CsH9DI-4.js";
16
- import { t as Route$12 } from "./telegram-DR7xijeS.js";
17
- import { t as Route$13 } from "./system-CcLCmkIC.js";
18
- import { t as Route$14 } from "./mcp-Bm9U6x7N.js";
19
- import { t as Route$15 } from "./access-Cm_izIIC.js";
20
- import { t as Route$16 } from "./teams-DxA-vnzY.js";
21
- import { t as Route$17 } from "./agents-C7UmTjfO.js";
22
- import { t as Route$18 } from "./_id-CHvYQhWt.js";
23
- import { t as Route$19 } from "./_id-BUfy-GwH.js";
24
- import { useEffect, useMemo, useState } from "react";
2
+ import { i as api, n as useLive, o as errorMessage, t as LiveProvider } from "./live-DbJeq6KP.js";
3
+ import { n as agentState, r as shortTime } from "./activity-Czfq-5_F.js";
4
+ import { o as publicOriginConfig } from "./src-vrZVrV9u.js";
5
+ import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
6
+ import { t as Button } from "./Button-Dsnw22OF.js";
7
+ import { t as Dialog$1 } from "./Dialog-DTeF-nOZ.js";
8
+ import { c as parseWorkspaceSearch } from "./workspace-0XPILV1W.js";
9
+ import { t as DAEMON_BASE_URL } from "./daemon-client-RxAllljf.js";
10
+ import { i as useAttentionCount, r as AttentionCountProvider, t as PageTitleProvider } from "./page-title-PTpFHXWo.js";
11
+ import { C as PageShell } from "./parts-k9M-atPa.js";
12
+ import { a as PawIcon, i as useThemeMode, n as THEME_MODES, o as BaziuLogo, r as setThemeMode, t as Route$3 } from "./login-BJdJ219n.js";
13
+ import { i as isTyping, n as NEW_CONVERSATION_EVENT, r as SHORTCUTS, t as Route$4 } from "./routes-A7UcreVX.js";
14
+ import { t as SpawnDialog } from "./SpawnDialog-BAE8W91z.js";
15
+ import { i as isSetupOpen, n as PUBLIC_PATHS, r as fetchAuthState, t as Route$5 } from "./welcome-CwzLt6Rp.js";
16
+ import { t as Route$6 } from "./usage-CrYyvPgf.js";
17
+ import { t as Route$7 } from "./teams-CiX8LUQo.js";
18
+ import { t as Route$8 } from "./skills-y3GsyKce.js";
19
+ import { t as Route$9 } from "./config-Cld8Q8N7.js";
20
+ import { t as Route$10 } from "./attention-CDdOCOio.js";
21
+ import { t as Route$11 } from "./agents-ncyhVx-T.js";
22
+ import { t as Route$12 } from "./tools-CluiJywK.js";
23
+ import { t as Route$13 } from "./telegram-DA2dwLID.js";
24
+ import { t as Route$14 } from "./system-BJPKqM6b.js";
25
+ import { t as Route$15 } from "./mcp-DwCzj7eO.js";
26
+ import { t as Route$16 } from "./access-DEyq3uP_.js";
27
+ import { t as Route$17 } from "./teams-D-XdIkCr.js";
28
+ import { t as Route$18 } from "./agents-DhenbitX.js";
29
+ import { t as Route$19 } from "./_id-BNvm89oJ.js";
30
+ import { t as Route$20 } from "./_id-C54t_nX6.js";
31
+ import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
25
32
  import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, redirect, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
26
33
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
27
- import { BellRing, Check, Keyboard, LayoutGrid, LogOut, MessageSquarePlus, Monitor, Moon, Search, Settings2, Sun, UserPlus, UserRound } from "lucide-react";
34
+ import { Bell, BellOff, BellRing, Check, Keyboard, LayoutGrid, LogOut, MessageSquarePlus, Monitor, Moon, Search, Settings2, Sun, UserPlus, UserRound } from "lucide-react";
28
35
  import { Dialog, DropdownMenu } from "radix-ui";
29
36
  //#region src/components/RouteStates.tsx
30
37
  /** The router's error view for every route: a loader failed. The top nav stays usable. */
@@ -93,7 +100,100 @@ function Footer() {
93
100
  });
94
101
  }
95
102
  //#endregion
103
+ //#region src/lib/desktop-notifications.tsx
104
+ var KEY = "bz_notify";
105
+ var CHANGED = "bz-notify-change";
106
+ /** A burst (several Agents at once) shows at most this many notifications. */
107
+ var MAX_AT_ONCE = 3;
108
+ function read() {
109
+ if (typeof window === "undefined" || !("Notification" in window) || !window.isSecureContext) return "unsupported";
110
+ if (Notification.permission === "denied") return "blocked";
111
+ let chosen = false;
112
+ try {
113
+ chosen = window.localStorage.getItem(KEY) === "on";
114
+ } catch {
115
+ chosen = false;
116
+ }
117
+ return chosen && Notification.permission === "granted" ? "on" : "off";
118
+ }
119
+ function subscribe(onChange) {
120
+ window.addEventListener(CHANGED, onChange);
121
+ window.addEventListener("storage", onChange);
122
+ return () => {
123
+ window.removeEventListener(CHANGED, onChange);
124
+ window.removeEventListener("storage", onChange);
125
+ };
126
+ }
127
+ function store(value) {
128
+ try {
129
+ window.localStorage.setItem(KEY, value);
130
+ } catch {}
131
+ window.dispatchEvent(new Event(CHANGED));
132
+ }
133
+ /** Whether desktop notifications are on in this browser; the server renders "off". */
134
+ function useNotificationsState() {
135
+ return useSyncExternalStore(subscribe, read, () => "off");
136
+ }
137
+ /** Ask the browser's permission (it must follow a click) and turn notifications on if granted. */
138
+ async function turnNotificationsOn() {
139
+ if (read() === "unsupported") return "unsupported";
140
+ store((Notification.permission === "granted" ? "granted" : await Notification.requestPermission()) === "granted" ? "on" : "off");
141
+ return read();
142
+ }
143
+ function turnNotificationsOff() {
144
+ store("off");
145
+ }
146
+ /** The items that started waiting since `known`, oldest first, at most a few. */
147
+ function newlyWaiting(known, waiting) {
148
+ return waiting.filter((item) => !known.has(item.key)).toSorted((a, b) => a.occurredAt - b.occurredAt).slice(0, MAX_AT_ONCE);
149
+ }
150
+ /** Shows the notifications; rendered once, inside the live feed's provider. */
151
+ function DesktopNotifier() {
152
+ const live = useLive();
153
+ const router = useRouter();
154
+ const known = useRef(null);
155
+ useEffect(() => live.subscribe("attention", (event) => {
156
+ const fresh = known.current === null ? [] : newlyWaiting(known.current ?? /* @__PURE__ */ new Set(), event.waiting);
157
+ known.current = new Set(event.waiting.map((item) => item.key));
158
+ if (fresh.length === 0 || read() !== "on") return;
159
+ if (!live.isLeader() || live.anyTabFocused()) return;
160
+ for (const item of fresh) {
161
+ let notification;
162
+ try {
163
+ notification = new Notification(item.title, {
164
+ body: item.diagnostic,
165
+ tag: item.key,
166
+ icon: "/baziu.svg"
167
+ });
168
+ } catch {
169
+ return;
170
+ }
171
+ notification.onclick = () => {
172
+ window.focus();
173
+ notification.close();
174
+ router.navigate({ href: item.href });
175
+ };
176
+ }
177
+ }), [
178
+ live.subscribe,
179
+ live.isLeader,
180
+ live.anyTabFocused,
181
+ router
182
+ ]);
183
+ return null;
184
+ }
185
+ //#endregion
96
186
  //#region src/components/JumpPalette.tsx
187
+ /** The label with the words a search found in it set apart. */
188
+ function markWords(label, words) {
189
+ const wanted = words.map((word) => word.toLowerCase()).filter(Boolean);
190
+ if (wanted.length === 0) return [label];
191
+ const escaped = wanted.map((word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
192
+ return label.split(new RegExp(`(${escaped.join("|")})`, "gi")).map((part, index) => index % 2 === 1 ? /* @__PURE__ */ jsx("strong", {
193
+ className: "font-semibold text-foreground",
194
+ children: part
195
+ }, index) : part);
196
+ }
97
197
  var PAGES = [
98
198
  [
99
199
  "Attention",
@@ -125,6 +225,11 @@ var PAGES = [
125
225
  "Import, review and remove prompt skills",
126
226
  "/skills"
127
227
  ],
228
+ [
229
+ "Usage",
230
+ "Tokens and money spent, per Team, Agent, model and day",
231
+ "/usage"
232
+ ],
128
233
  [
129
234
  "Setup",
130
235
  "Models, tools, MCP, Telegram, access, system",
@@ -134,6 +239,10 @@ var PAGES = [
134
239
  /** How many Agents' conversations are looked at for "Recent conversations", and how many shown. */
135
240
  var RECENT_AGENTS = 3;
136
241
  var RECENT_CONVERSATIONS = 5;
242
+ /** Messages are searched once this much is typed, after a pause; this many are listed. */
243
+ var SEARCH_MIN_CHARACTERS = 3;
244
+ var SEARCH_PAUSE_MS = 250;
245
+ var SEARCH_HITS = 8;
137
246
  /** Destinations whose label or hint holds every word of the query. */
138
247
  function filterDestinations(all, query) {
139
248
  const words = query.toLowerCase().split(/\s+/).filter(Boolean);
@@ -168,10 +277,45 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
168
277
  const [recent, setRecent] = useState([]);
169
278
  const [dark, setDark] = useState(false);
170
279
  const [spawning, setSpawning] = useState(false);
280
+ const [loaded, setLoaded] = useState(false);
281
+ const [enterPending, setEnterPending] = useState(false);
282
+ const [hits, setHits] = useState(null);
283
+ const [searching, setSearching] = useState(false);
284
+ const trimmed = query.trim();
285
+ useEffect(() => {
286
+ if (!open || trimmed.replace(/\s+/g, "").length < SEARCH_MIN_CHARACTERS) {
287
+ setHits(null);
288
+ setSearching(false);
289
+ return;
290
+ }
291
+ const controller = new AbortController();
292
+ setSearching(true);
293
+ const timer = window.setTimeout(() => {
294
+ api(`/api/conversations/search?${new URLSearchParams({
295
+ q: trimmed,
296
+ limit: String(SEARCH_HITS)
297
+ })}`, { signal: controller.signal }).then((found) => setHits({
298
+ query: trimmed,
299
+ hits: found.hits
300
+ })).catch(() => {
301
+ if (!controller.signal.aborted) setHits({
302
+ query: trimmed,
303
+ hits: []
304
+ });
305
+ }).finally(() => {
306
+ if (!controller.signal.aborted) setSearching(false);
307
+ });
308
+ }, SEARCH_PAUSE_MS);
309
+ return () => {
310
+ controller.abort();
311
+ window.clearTimeout(timer);
312
+ };
313
+ }, [open, trimmed]);
171
314
  useEffect(() => {
172
315
  if (!open) return;
173
316
  setQuery("");
174
317
  setActive(0);
318
+ setEnterPending(false);
175
319
  setDark(document.documentElement.classList.contains("dark"));
176
320
  const controller = new AbortController();
177
321
  const signal = controller.signal;
@@ -185,6 +329,7 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
185
329
  setTeams(nextTeams);
186
330
  setActivity(nextActivity.agents);
187
331
  setProfiles(nextProfiles);
332
+ setLoaded(true);
188
333
  const latest = nextActivity.agents.filter((entry) => entry.lastActivityAt !== null).toSorted((a, b) => (b.lastActivityAt ?? 0) - (a.lastActivityAt ?? 0)).slice(0, RECENT_AGENTS);
189
334
  setRecent((await Promise.all(latest.map((entry) => api(`/api/agents/${encodeURIComponent(entry.agentId)}/conversations?limit=3`, { signal }).then((list) => list.conversations.map((conversation) => ({
190
335
  id: conversation.id,
@@ -193,10 +338,12 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
193
338
  updatedAt: conversation.updatedAt,
194
339
  selected: conversation.id === list.selectedId
195
340
  })))))).flat().toSorted((a, b) => b.updatedAt - a.updatedAt).slice(0, RECENT_CONVERSATIONS));
196
- }).catch(() => {});
341
+ }).catch(() => {
342
+ if (!signal.aborted) setLoaded(true);
343
+ });
197
344
  return () => controller.abort();
198
345
  }, [open]);
199
- const shown = filterDestinations(useMemo(() => {
346
+ const destinations = useMemo(() => {
200
347
  const teamName = new Map(teams.map((team) => [team.id, team.name]));
201
348
  const byAgent = new Map(activity.map((entry) => [entry.agentId, entry]));
202
349
  const agentById = new Map(agents.map((agent) => [agent.id, agent]));
@@ -335,9 +482,41 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
335
482
  location,
336
483
  dark,
337
484
  onShowShortcuts
338
- ]), query);
485
+ ]);
486
+ const found = useMemo(() => {
487
+ if (!hits || hits.query !== trimmed) return [];
488
+ const agentById = new Map(agents.map((agent) => [agent.id, agent]));
489
+ return hits.hits.map((hit, index) => ({
490
+ key: `found:${hit.conversationId}:${index}`,
491
+ group: "In conversations",
492
+ label: hit.snippet,
493
+ hint: `${hit.agentName} · ${hit.conversationTitle}`,
494
+ found: hits.query.split(/\s+/),
495
+ agent: agentById.get(hit.agentId),
496
+ search: {
497
+ agent: hit.agentId,
498
+ ...hit.active ? {} : { conversation: hit.conversationId },
499
+ find: hits.query,
500
+ match: hit.nth
501
+ }
502
+ }));
503
+ }, [
504
+ hits,
505
+ trimmed,
506
+ agents
507
+ ]);
508
+ const shown = [...filterDestinations(destinations, query), ...found];
339
509
  const current = Math.min(active, Math.max(shown.length - 1, 0));
340
510
  const hereTeam = location.pathname === "/" ? parseWorkspaceSearch(location.search).team ?? agents.find((agent) => agent.id === parseWorkspaceSearch(location.search).agent)?.teamId : void 0;
511
+ useEffect(() => {
512
+ if (!open || !enterPending || !loaded) return;
513
+ setEnterPending(false);
514
+ go(shown[current]);
515
+ }, [
516
+ open,
517
+ enterPending,
518
+ loaded
519
+ ]);
341
520
  function go(destination) {
342
521
  if (!destination) return;
343
522
  onClose();
@@ -374,7 +553,7 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
374
553
  "aria-controls": "jump-results",
375
554
  "aria-activedescendant": shown[current] ? `jump-${shown[current].key}` : void 0,
376
555
  value: query,
377
- placeholder: "An Agent, a Team, a page, or something to do",
556
+ placeholder: "An Agent, a Team, a page, words from a conversation, or something to do",
378
557
  onChange: (event) => {
379
558
  setQuery(event.target.value);
380
559
  setActive(0);
@@ -388,7 +567,8 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
388
567
  setActive(Math.max(current - 1, 0));
389
568
  } else if (event.key === "Enter") {
390
569
  event.preventDefault();
391
- go(shown[current]);
570
+ if (loaded) go(shown[current]);
571
+ else setEnterPending(true);
392
572
  }
393
573
  },
394
574
  style: { outline: "none" },
@@ -405,42 +585,49 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
405
585
  role: "listbox",
406
586
  "aria-label": "Destinations and actions",
407
587
  className: "overflow-y-auto p-1.5",
408
- children: [shown.length === 0 && /* @__PURE__ */ jsxs("p", {
409
- className: "px-3 py-6 text-center text-sm text-muted-foreground",
410
- children: [
411
- "Nothing matches “",
412
- query,
413
- "”."
414
- ]
415
- }), shown.map((destination, index) => /* @__PURE__ */ jsxs("div", { children: [destination.group !== shown[index - 1]?.group && /* @__PURE__ */ jsx("div", {
416
- className: `px-2.5 pb-1 pt-2 text-xs font-bold uppercase tracking-[0.08em] ${destination.group === "Waiting for you" ? "text-warning" : "text-muted-foreground"}`,
417
- children: destination.group
418
- }), /* @__PURE__ */ jsxs("button", {
419
- type: "button",
420
- id: `jump-${destination.key}`,
421
- role: "option",
422
- "aria-selected": index === current,
423
- onMouseMove: () => setActive(index),
424
- onClick: () => go(destination),
425
- 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"}`,
426
- children: [
427
- destination.agent ? /* @__PURE__ */ jsx(AgentAvatar, {
428
- identity: destination.agent.identity,
429
- size: 24
430
- }) : destination.icon ? /* @__PURE__ */ jsx("span", {
431
- className: "flex size-6 shrink-0 items-center justify-center text-mocha",
432
- children: destination.icon
433
- }) : null,
434
- /* @__PURE__ */ jsx("span", {
435
- className: "min-w-0 truncate font-semibold",
436
- children: destination.label
437
- }),
438
- /* @__PURE__ */ jsx("span", {
439
- className: "ml-auto min-w-0 shrink truncate pl-3 text-xs text-muted-foreground",
440
- children: destination.hint
441
- })
442
- ]
443
- })] }, destination.key))]
588
+ children: [
589
+ shown.length === 0 && /* @__PURE__ */ jsx("p", {
590
+ className: "px-3 py-6 text-center text-sm text-muted-foreground",
591
+ children: !loaded ? "Loading…" : searching ? "Searching the conversations…" : `Nothing matches “${query}”.`
592
+ }),
593
+ shown.length > 0 && searching && /* @__PURE__ */ jsx("p", {
594
+ role: "status",
595
+ className: "m-0 px-2.5 pb-1 pt-2 text-xs text-muted-foreground",
596
+ children: "Searching the conversations…"
597
+ }),
598
+ shown.map((destination, index) => /* @__PURE__ */ jsxs("div", { children: [destination.group !== shown[index - 1]?.group && /* @__PURE__ */ jsx("div", {
599
+ className: `px-2.5 pb-1 pt-2 text-xs font-bold uppercase tracking-[0.08em] ${destination.group === "Waiting for you" ? "text-warning" : "text-muted-foreground"}`,
600
+ children: destination.group
601
+ }), /* @__PURE__ */ jsxs("button", {
602
+ type: "button",
603
+ id: `jump-${destination.key}`,
604
+ role: "option",
605
+ "aria-selected": index === current,
606
+ onMouseMove: () => setActive(index),
607
+ onClick: () => go(destination),
608
+ 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"}`,
609
+ children: [
610
+ destination.agent ? /* @__PURE__ */ jsx(AgentAvatar, {
611
+ identity: destination.agent.identity,
612
+ size: 24
613
+ }) : destination.icon ? /* @__PURE__ */ jsx("span", {
614
+ className: "flex size-6 shrink-0 items-center justify-center text-mocha",
615
+ children: destination.icon
616
+ }) : null,
617
+ destination.found ? /* @__PURE__ */ jsx("span", {
618
+ className: "min-w-0 truncate text-muted-foreground",
619
+ children: markWords(destination.label, destination.found)
620
+ }) : /* @__PURE__ */ jsx("span", {
621
+ className: "min-w-0 truncate font-semibold",
622
+ children: destination.label
623
+ }),
624
+ /* @__PURE__ */ jsx("span", {
625
+ className: "ml-auto min-w-0 shrink truncate pl-3 text-xs text-muted-foreground",
626
+ children: destination.hint
627
+ })
628
+ ]
629
+ })] }, destination.key))
630
+ ]
444
631
  })
445
632
  ]
446
633
  })] })
@@ -487,7 +674,8 @@ var MANAGE_PATHS = [
487
674
  "/agents",
488
675
  "/teams",
489
676
  "/templates",
490
- "/skills"
677
+ "/skills",
678
+ "/usage"
491
679
  ];
492
680
  var SETUP_PATHS = ["/config"];
493
681
  var under = (pathname, roots) => roots.some((root) => pathname === root || pathname.startsWith(`${root}/`));
@@ -544,7 +732,7 @@ function TopBar() {
544
732
  !setupOnly && /* @__PURE__ */ jsxs("button", {
545
733
  type: "button",
546
734
  onClick: () => setPaletteOpen(true),
547
- "aria-label": "Jump to an agent, team or page, or run an action",
735
+ "aria-describedby": "jump-to-description",
548
736
  "aria-keyshortcuts": mac ? "Meta+K" : "Control+K",
549
737
  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",
550
738
  children: [
@@ -556,9 +744,18 @@ function TopBar() {
556
744
  className: "min-w-0 flex-1 truncate",
557
745
  children: "Jump to or do anything"
558
746
  }),
559
- /* @__PURE__ */ jsx("kbd", {
560
- className: "hidden rounded-md border border-border bg-card px-1.5 py-px font-mono text-xs sm:inline",
561
- children: mac ? "⌘K" : "Ctrl K"
747
+ /* @__PURE__ */ jsx("span", {
748
+ id: "jump-to-description",
749
+ className: "sr-only",
750
+ children: "An Agent, a Team, a page, words from a conversation, or an action"
751
+ }),
752
+ /* @__PURE__ */ jsx("span", {
753
+ "aria-hidden": "true",
754
+ className: "hidden sm:inline",
755
+ children: /* @__PURE__ */ jsx("kbd", {
756
+ className: "rounded-md border border-border bg-card px-1.5 py-px font-mono text-xs",
757
+ children: mac ? "⌘K" : "Ctrl K"
758
+ })
562
759
  })
563
760
  ]
564
761
  }),
@@ -634,9 +831,10 @@ function PlaceLink({ to, label, icon: Icon, roots }) {
634
831
  })]
635
832
  });
636
833
  }
637
- /** Theme and Log out: things about this browser's session rather than places to go. */
834
+ /** Theme, notifications and Log out: things about this browser rather than places to go. */
638
835
  function SessionMenu() {
639
836
  const mode = useThemeMode();
837
+ const notifications = useNotificationsState();
640
838
  const [error, setError] = useState(null);
641
839
  async function logout() {
642
840
  setError(null);
@@ -651,8 +849,8 @@ function SessionMenu() {
651
849
  asChild: true,
652
850
  children: /* @__PURE__ */ jsx("button", {
653
851
  type: "button",
654
- "aria-label": "Theme and log out",
655
- title: "Theme and log out",
852
+ "aria-label": "Theme, notifications and log out",
853
+ title: "Theme, notifications and log out",
656
854
  className: "unstyled inline-flex h-9 w-9 items-center justify-center rounded-lg border border-transparent text-mocha transition-colors hover:border-frost hover:bg-ivory hover:text-sapphire data-[state=open]:border-sapphire-light data-[state=open]:bg-sapphire-glow data-[state=open]:text-sapphire",
657
855
  children: /* @__PURE__ */ jsx(UserRound, {
658
856
  className: "size-4",
@@ -695,6 +893,8 @@ function SessionMenu() {
695
893
  })
696
894
  }),
697
895
  /* @__PURE__ */ jsx(DropdownMenu.Separator, { className: "my-1.5 h-px bg-border" }),
896
+ /* @__PURE__ */ jsx(NotificationsItem, { state: notifications }),
897
+ /* @__PURE__ */ jsx(DropdownMenu.Separator, { className: "my-1.5 h-px bg-border" }),
698
898
  /* @__PURE__ */ jsxs(DropdownMenu.Item, {
699
899
  onSelect: () => void logout(),
700
900
  className: "flex cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground",
@@ -710,12 +910,43 @@ function SessionMenu() {
710
910
  children: ["Could not log out: ", error]
711
911
  })] });
712
912
  }
913
+ /**
914
+ * Desktop notifications for this browser. Turning them on asks the browser's permission; a browser
915
+ * that blocks them, or an address where it offers none, is said so instead.
916
+ */
917
+ function NotificationsItem({ state }) {
918
+ const itemClass = "flex cursor-pointer items-start gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-default data-[disabled]:opacity-70";
919
+ const Icon = state === "on" ? BellOff : Bell;
920
+ const label = state === "on" ? "Turn off desktop notifications" : state === "off" ? "Notify me on this computer" : "Desktop notifications unavailable";
921
+ const detail = state === "on" || state === "off" ? "When an Agent waits for you and Bazilion is in the background." : state === "blocked" ? "This browser blocks them for this site; allow them in its site settings." : "Browsers offer them on https:// addresses and on this computer only.";
922
+ return /* @__PURE__ */ jsxs(DropdownMenu.Item, {
923
+ disabled: state === "unsupported" || state === "blocked",
924
+ onSelect: (event) => {
925
+ if (state === "on") turnNotificationsOff();
926
+ else {
927
+ event.preventDefault();
928
+ turnNotificationsOn();
929
+ }
930
+ },
931
+ className: itemClass,
932
+ children: [/* @__PURE__ */ jsx(Icon, {
933
+ className: "mt-0.5 size-4 shrink-0 text-muted-foreground",
934
+ "aria-hidden": "true"
935
+ }), /* @__PURE__ */ jsxs("span", {
936
+ className: "flex min-w-0 flex-col gap-0.5",
937
+ children: [/* @__PURE__ */ jsx("span", { children: label }), /* @__PURE__ */ jsx("span", {
938
+ className: "text-xs text-muted-foreground",
939
+ children: detail
940
+ })]
941
+ })]
942
+ });
943
+ }
713
944
  function navButtonClass(active) {
714
945
  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"}`;
715
946
  }
716
947
  //#endregion
717
948
  //#region src/styles.css?url
718
- var styles_default = "/assets/styles-C3CDSGAr.css";
949
+ var styles_default = "/assets/styles-B-kTTvCo.css";
719
950
  //#endregion
720
951
  //#region src/routes/__root.tsx
721
952
  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){}})();`;
@@ -789,38 +1020,41 @@ function RootComponent() {
789
1020
  className: "sr-only z-[100] rounded-lg bg-primary px-4 py-2 font-semibold text-primary-foreground focus:not-sr-only focus:fixed focus:left-3 focus:top-3",
790
1021
  children: "Skip to main content"
791
1022
  }),
792
- /* @__PURE__ */ jsx(AttentionCountProvider, {
1023
+ /* @__PURE__ */ jsx(LiveProvider, {
793
1024
  enabled: !isLogin && pathname !== "/welcome",
794
- children: /* @__PURE__ */ jsx(PageTitleProvider, { children: isLogin ? /* @__PURE__ */ jsx(Outlet, {}) : isWorkspace ? /* @__PURE__ */ jsxs("div", {
795
- className: "flex h-dvh flex-col",
796
- children: [/* @__PURE__ */ jsx("div", {
797
- className: "px-3 sm:px-5",
798
- children: /* @__PURE__ */ jsx(TopBar, {})
799
- }), /* @__PURE__ */ jsx("main", {
800
- id: "main-content",
801
- tabIndex: -1,
802
- 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",
803
- children: /* @__PURE__ */ jsx(Outlet, {})
804
- })]
805
- }) : /* @__PURE__ */ jsxs("div", {
806
- className: "flex min-h-dvh flex-col",
807
- children: [
808
- /* @__PURE__ */ jsx("div", {
1025
+ children: /* @__PURE__ */ jsxs(AttentionCountProvider, {
1026
+ enabled: !isLogin && pathname !== "/welcome",
1027
+ children: [/* @__PURE__ */ jsx(DesktopNotifier, {}), /* @__PURE__ */ jsx(PageTitleProvider, { children: isLogin ? /* @__PURE__ */ jsx(Outlet, {}) : isWorkspace ? /* @__PURE__ */ jsxs("div", {
1028
+ className: "flex h-dvh flex-col",
1029
+ children: [/* @__PURE__ */ jsx("div", {
809
1030
  className: "px-3 sm:px-5",
810
1031
  children: /* @__PURE__ */ jsx(TopBar, {})
811
- }),
812
- /* @__PURE__ */ jsx("main", {
1032
+ }), /* @__PURE__ */ jsx("main", {
813
1033
  id: "main-content",
814
1034
  tabIndex: -1,
815
- className: "mx-auto w-full max-w-[1500px] flex-1 px-4 py-9 sm:px-6 sm:py-12",
1035
+ 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",
816
1036
  children: /* @__PURE__ */ jsx(Outlet, {})
817
- }),
818
- /* @__PURE__ */ jsx("div", {
819
- className: "px-4 sm:px-6",
820
- children: /* @__PURE__ */ jsx(Footer, {})
821
- })
822
- ]
823
- }) })
1037
+ })]
1038
+ }) : /* @__PURE__ */ jsxs("div", {
1039
+ className: "flex min-h-dvh flex-col",
1040
+ children: [
1041
+ /* @__PURE__ */ jsx("div", {
1042
+ className: "px-3 sm:px-5",
1043
+ children: /* @__PURE__ */ jsx(TopBar, {})
1044
+ }),
1045
+ /* @__PURE__ */ jsx("main", {
1046
+ id: "main-content",
1047
+ tabIndex: -1,
1048
+ className: "mx-auto w-full max-w-[1500px] flex-1 px-4 py-9 sm:px-6 sm:py-12",
1049
+ children: /* @__PURE__ */ jsx(Outlet, {})
1050
+ }),
1051
+ /* @__PURE__ */ jsx("div", {
1052
+ className: "px-4 sm:px-6",
1053
+ children: /* @__PURE__ */ jsx(Footer, {})
1054
+ })
1055
+ ]
1056
+ }) })]
1057
+ })
824
1058
  }),
825
1059
  /* @__PURE__ */ jsx(Scripts, {})
826
1060
  ]
@@ -939,57 +1173,62 @@ var IndexRoute = Route$4.update({
939
1173
  path: "/",
940
1174
  getParentRoute: () => Route$2
941
1175
  });
1176
+ var UsageIndexRoute = Route$6.update({
1177
+ id: "/usage/",
1178
+ path: "/usage/",
1179
+ getParentRoute: () => Route$2
1180
+ });
942
1181
  var TemplatesIndexRoute = Route$1.update({
943
1182
  id: "/templates/",
944
1183
  path: "/templates/",
945
1184
  getParentRoute: () => Route$2
946
1185
  });
947
- var TeamsIndexRoute = Route$6.update({
1186
+ var TeamsIndexRoute = Route$7.update({
948
1187
  id: "/teams/",
949
1188
  path: "/teams/",
950
1189
  getParentRoute: () => Route$2
951
1190
  });
952
- var SkillsIndexRoute = Route$7.update({
1191
+ var SkillsIndexRoute = Route$8.update({
953
1192
  id: "/skills/",
954
1193
  path: "/skills/",
955
1194
  getParentRoute: () => Route$2
956
1195
  });
957
- var ConfigIndexRoute = Route$8.update({
1196
+ var ConfigIndexRoute = Route$9.update({
958
1197
  id: "/config/",
959
1198
  path: "/config/",
960
1199
  getParentRoute: () => Route$2
961
1200
  });
962
- var AttentionIndexRoute = Route$9.update({
1201
+ var AttentionIndexRoute = Route$10.update({
963
1202
  id: "/attention/",
964
1203
  path: "/attention/",
965
1204
  getParentRoute: () => Route$2
966
1205
  });
967
- var AgentsIndexRoute = Route$10.update({
1206
+ var AgentsIndexRoute = Route$11.update({
968
1207
  id: "/agents/",
969
1208
  path: "/agents/",
970
1209
  getParentRoute: () => Route$2
971
1210
  });
972
- var ConfigToolsRoute = Route$11.update({
1211
+ var ConfigToolsRoute = Route$12.update({
973
1212
  id: "/config/tools",
974
1213
  path: "/config/tools",
975
1214
  getParentRoute: () => Route$2
976
1215
  });
977
- var ConfigTelegramRoute = Route$12.update({
1216
+ var ConfigTelegramRoute = Route$13.update({
978
1217
  id: "/config/telegram",
979
1218
  path: "/config/telegram",
980
1219
  getParentRoute: () => Route$2
981
1220
  });
982
- var ConfigSystemRoute = Route$13.update({
1221
+ var ConfigSystemRoute = Route$14.update({
983
1222
  id: "/config/system",
984
1223
  path: "/config/system",
985
1224
  getParentRoute: () => Route$2
986
1225
  });
987
- var ConfigMcpRoute = Route$14.update({
1226
+ var ConfigMcpRoute = Route$15.update({
988
1227
  id: "/config/mcp",
989
1228
  path: "/config/mcp",
990
1229
  getParentRoute: () => Route$2
991
1230
  });
992
- var ConfigAccessRoute = Route$15.update({
1231
+ var ConfigAccessRoute = Route$16.update({
993
1232
  id: "/config/access",
994
1233
  path: "/config/access",
995
1234
  getParentRoute: () => Route$2
@@ -999,17 +1238,17 @@ var ApiSplatRoute = Route.update({
999
1238
  path: "/api/$",
1000
1239
  getParentRoute: () => Route$2
1001
1240
  });
1002
- var TemplatesTeamsIndexRoute = Route$16.update({
1241
+ var TemplatesTeamsIndexRoute = Route$17.update({
1003
1242
  id: "/templates/teams/",
1004
1243
  path: "/templates/teams/",
1005
1244
  getParentRoute: () => Route$2
1006
1245
  });
1007
- var TemplatesAgentsIndexRoute = Route$17.update({
1246
+ var TemplatesAgentsIndexRoute = Route$18.update({
1008
1247
  id: "/templates/agents/",
1009
1248
  path: "/templates/agents/",
1010
1249
  getParentRoute: () => Route$2
1011
1250
  });
1012
- var TemplatesTeamsIdIndexRoute = Route$18.update({
1251
+ var TemplatesTeamsIdIndexRoute = Route$19.update({
1013
1252
  id: "/templates/teams/$id/",
1014
1253
  path: "/templates/teams/$id/",
1015
1254
  getParentRoute: () => Route$2
@@ -1030,9 +1269,10 @@ var rootRouteChildren = {
1030
1269
  SkillsIndexRoute,
1031
1270
  TeamsIndexRoute,
1032
1271
  TemplatesIndexRoute,
1272
+ UsageIndexRoute,
1033
1273
  TemplatesAgentsIndexRoute,
1034
1274
  TemplatesTeamsIndexRoute,
1035
- TemplatesAgentsIdIndexRoute: Route$19.update({
1275
+ TemplatesAgentsIdIndexRoute: Route$20.update({
1036
1276
  id: "/templates/agents/$id/",
1037
1277
  path: "/templates/agents/$id/",
1038
1278
  getParentRoute: () => Route$2