bazilion 0.27.0 → 0.51.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 (234) hide show
  1. package/dist/cli.js +651 -309
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +2105 -997
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +1 -0
  6. package/dist/web/client/assets/ConfigPage-pupvtSCX.js +1 -0
  7. package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +1 -0
  8. package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +1 -0
  9. package/dist/web/client/assets/Dialog-bg86_x4v.js +1 -0
  10. package/dist/web/client/assets/FieldRow-B8eIni5r.js +1 -0
  11. package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +1 -0
  13. package/dist/web/client/assets/Segmented-Dh77vmpp.js +1 -0
  14. package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +1 -0
  15. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +1 -0
  16. package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +1 -0
  17. package/dist/web/client/assets/Tabs-f6bHvCGn.js +1 -0
  18. package/dist/web/client/assets/TeamForm-kda1HYZG.js +1 -0
  19. package/dist/web/client/assets/TeamThread-DFvbakHo.js +1 -0
  20. package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +1 -0
  21. package/dist/web/client/assets/_id-BjNtLwak.js +1 -0
  22. package/dist/web/client/assets/_id-BklaQf3z.js +1 -0
  23. package/dist/web/client/assets/agents-D9cUF2d9.js +1 -0
  24. package/dist/web/client/assets/agents-wuBlzx4e.js +1 -0
  25. package/dist/web/client/assets/api-HC_YzjBy.js +1 -0
  26. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +1 -0
  27. package/dist/web/client/assets/attention-8ZkSLl2e.js +1 -0
  28. package/dist/web/client/assets/check-BjgKoGvU.js +1 -0
  29. package/dist/web/client/assets/config-Con_BbSh.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +1 -0
  31. package/dist/web/client/assets/index-Br9qkGM-.js +54 -0
  32. package/dist/web/client/assets/link-Cbztlp_R.js +1 -0
  33. package/dist/web/client/assets/login-llnOKSJc.js +1 -0
  34. package/dist/web/client/assets/mcp-zIUguMSI.js +1 -0
  35. package/dist/web/client/assets/plus-CWrKMtvA.js +1 -0
  36. package/dist/web/client/assets/routes-BY5uqJ2n.js +76 -0
  37. package/dist/web/client/assets/save-f9O-CQia.js +1 -0
  38. package/dist/web/client/assets/services-esLrcTwe.js +1 -0
  39. package/dist/web/client/assets/skills-DzYXksM0.js +1 -0
  40. package/dist/web/client/assets/style-Cdzqt_TJ.js +7 -0
  41. package/dist/web/client/assets/styles-BRSS6yrm.css +2 -0
  42. package/dist/web/client/assets/system-CsI66nyZ.js +1 -0
  43. package/dist/web/client/assets/teams-CHE_zpxS.js +1 -0
  44. package/dist/web/client/assets/teams-dxG9OESG.js +1 -0
  45. package/dist/web/client/assets/telegram-C3dGndJV.js +1 -0
  46. package/dist/web/client/assets/tokens-CNNH-Wr9.js +1 -0
  47. package/dist/web/client/assets/use-resource-BjnxgGvh.js +1 -0
  48. package/dist/web/client/assets/welcome-C8EOtc8P.js +1 -0
  49. package/dist/web/server/assets/AddProviderDialog-CR6TRYdZ.js +910 -0
  50. package/dist/web/server/assets/{ConfigPage-CGld_wCK.js → ConfigPage-CIh3ohea.js} +4 -4
  51. package/dist/web/server/assets/ConfirmDialog-B79K2KEW.js +52 -0
  52. package/dist/web/server/assets/ConnectionsView-BIMYdp9C.js +710 -0
  53. package/dist/web/server/assets/{ConfirmDialog-LdVlEanK.js → Dialog-CVqpXxuN.js} +3 -50
  54. package/dist/web/server/assets/{FieldRow-Dah2KKqo.js → FieldRow-CHVhX2rS.js} +4 -4
  55. package/dist/web/server/assets/{ModelSelect-Vwro6OkL.js → ModelSelect-DrZrdndo.js} +7 -7
  56. package/dist/web/server/assets/Rail-Cg-efcpA.js +698 -0
  57. package/dist/web/server/assets/{SectionTabs-CqFg9Vwx.js → SectionTabs-DrcgVeZd.js} +4 -18
  58. package/dist/web/server/assets/Segmented-3ZLdqa5U.js +18 -0
  59. package/dist/web/server/assets/{SkillFindings-Bd6e81Wu.js → SkillFindings-DSDiL6hn.js} +1 -1
  60. package/dist/web/server/assets/{SpawnDialog-BGNaMfFb.js → SpawnDialog-BUUlLxE9.js} +25 -7
  61. package/dist/web/server/assets/{TeamForm-C93tpn9r.js → TeamForm-CvQAs2FA.js} +1 -1
  62. package/dist/web/server/assets/TeamThread-5CjVPcDr.js +190 -0
  63. package/dist/web/server/assets/{UnsavedChangesGuard-Dm4a27_5.js → UnsavedChangesGuard-CyF2Z9p1.js} +8 -4
  64. package/dist/web/server/assets/{TeamPolicyEditor-BHS3J0R9.js → _id-0fEWiVZX.js} +114 -263
  65. package/dist/web/server/assets/{_id-B0x1ffz3.js → _id-8bsYEcGg.js} +2 -2
  66. package/dist/web/server/assets/{_id-sW6zXrTP.js → _id-BvAaRSUW.js} +2 -2
  67. package/dist/web/server/assets/{_id-lOVnT5sS.js → _id-Dg6M_qfr.js} +6 -6
  68. package/dist/web/server/assets/{_id-ByiXeIPS.js → _id-Dji7xr9C.js} +2 -2
  69. package/dist/web/server/assets/{_id-Bdf_Rg62.js → _id-TVruGcOd.js} +1 -1
  70. package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +214 -0
  71. package/dist/web/server/assets/{agents-D4tqK1kH.js → agents-BDA5yYZ2.js} +14 -15
  72. package/dist/web/server/assets/{agents-Cn9GkXFX.js → agents-BTDxmp-F.js} +2 -2
  73. package/dist/web/server/assets/{agents-BNPkidbH.js → agents-BnWgFo6o.js} +1 -1
  74. package/dist/web/server/assets/{agents-lOqc6VGd.js → agents-DM7guWF2.js} +2 -2
  75. package/dist/web/server/assets/{agents-DycxHDt8.js → agents-DktqUffG.js} +10 -10
  76. package/dist/web/server/assets/{agents-BK8OmB8g.js → agents-xgZ9rsac.js} +2 -2
  77. package/dist/web/server/assets/{attention-DULVjdmF.js → attention-CHQEQiZl.js} +2 -2
  78. package/dist/web/server/assets/{attention-YWnLKA2E.js → attention-Cr7puThv.js} +1 -1
  79. package/dist/web/server/assets/{attention-BIm455bC.js → attention-De3-ehuf.js} +6 -6
  80. package/dist/web/server/assets/{auth-DiN92ydD.js → auth-dJnrFW6y.js} +1 -1
  81. package/dist/web/server/assets/config-DOp28gcy.js +1067 -0
  82. package/dist/web/server/assets/config-DzgkbBoD.js +17 -0
  83. package/dist/web/server/assets/config-X7qWbbpH.js +20 -0
  84. package/dist/web/server/assets/{Page-CMSYKXWJ.js → createSsrRpc-CcLbajrF.js} +17 -2
  85. package/dist/web/server/assets/{daemon-client-DL2ik2Em.js → daemon-client-B_ZRIIrT.js} +2 -1
  86. package/dist/web/server/assets/{mcp-BwmpNQPN.js → mcp-C97uAZe1.js} +1 -1
  87. package/dist/web/server/assets/{mcp-B09_O05r.js → mcp-CO_tycXU.js} +9 -9
  88. package/dist/web/server/assets/{mcp-CqdTfXcn.js → mcp-D3OCoHtO.js} +2 -2
  89. package/dist/web/server/assets/router-Cs2Ak4II.js +892 -0
  90. package/dist/web/server/assets/routes-BSNOKE-C.js +7647 -0
  91. package/dist/web/server/assets/routes-BVwqgZGI.js +16 -0
  92. package/dist/web/server/assets/routes-CO4l-GJ0.js +57 -0
  93. package/dist/web/server/assets/{services-Q9HYQXXB.js → services-DZLxUSG8.js} +2 -2
  94. package/dist/web/server/assets/{services-BLvAvb8g.js → services-DsHRLL8q.js} +1 -1
  95. package/dist/web/server/assets/{services-tCfB1B83.js → services-DsvpaF3L.js} +4 -4
  96. package/dist/web/server/assets/{skills-BZg_txbf.js → skills-CggQJk6a.js} +2 -2
  97. package/dist/web/server/assets/{skills-C7fqRPna.js → skills-DKYV7PTk.js} +11 -11
  98. package/dist/web/server/assets/{skills-C_g8IKag.js → skills-h5aHa7Q8.js} +1 -1
  99. package/dist/web/server/assets/style-GYDODk2F.js +178 -0
  100. package/dist/web/server/assets/system-CZ2qzBz3.js +138 -0
  101. package/dist/web/server/assets/system-DsJfpBPl.js +12 -0
  102. package/dist/web/server/assets/system-DtswhLW62.js +18 -0
  103. package/dist/web/server/assets/{teams-BS-oweRl.js → teams-B6PzNcoy.js} +23 -15
  104. package/dist/web/server/assets/{teams-D4CaU76n.js → teams-B6lBhvdL.js} +2 -2
  105. package/dist/web/server/assets/{teams-BHkhnt6b.js → teams-Bp2tERZe.js} +2 -2
  106. package/dist/web/server/assets/{teams-DX2HmKqi.js → teams-BxnvFTyn.js} +1 -1
  107. package/dist/web/server/assets/{teams-BSflKBP8.js → teams-C-8iz-uV.js} +6 -6
  108. package/dist/web/server/assets/{teams-CNyB5nM9.js → teams-YrmyutM4.js} +1 -1
  109. package/dist/web/server/assets/{telegram-CrJiygCX.js → telegram-CXrP3hMp.js} +6 -6
  110. package/dist/web/server/assets/{telegram-BUdnc8oF.js → telegram-D2RZriz_.js} +2 -2
  111. package/dist/web/server/assets/{telegram-C4v1HhyJ.js → telegram-Gy7_9yih.js} +1 -1
  112. package/dist/web/server/assets/{tokens-DqldzPUq.js → tokens-C-oDTqnp.js} +2 -2
  113. package/dist/web/server/assets/{tokens-B1twAJdd.js → tokens-CEdl8puR.js} +1 -1
  114. package/dist/web/server/assets/{tokens-DdjEyALj.js → tokens-DSLwQ1Pw.js} +10 -10
  115. package/dist/web/server/assets/use-resource-ChQozXVI.js +63 -0
  116. package/dist/web/server/assets/welcome-BLw1G6SS.js +318 -0
  117. package/dist/web/server/assets/welcome-ByAkvHSP.js +26 -0
  118. package/dist/web/server/assets/welcome-CxXMI4HI.js +15 -0
  119. package/dist/web/server/assets/workspace-DeEYMPDX.js +658 -0
  120. package/dist/web/server/server.js +30 -74
  121. package/dist/worker.js +78 -36
  122. package/dist/worker.js.map +1 -1
  123. package/package.json +1 -1
  124. package/dist/web/client/assets/AgentAvatar-DWx-bM6n.js +0 -1
  125. package/dist/web/client/assets/ChatPane-DOV_HJg-.js +0 -72
  126. package/dist/web/client/assets/ConfigPage-Dfu9DzFX.js +0 -1
  127. package/dist/web/client/assets/ConfirmDialog-536ziJ5P.js +0 -1
  128. package/dist/web/client/assets/FieldRow-z1JqCdqn.js +0 -1
  129. package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +0 -1
  130. package/dist/web/client/assets/ResultCard-X4nTbjYY.js +0 -1
  131. package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +0 -1
  132. package/dist/web/client/assets/SkillFindings-8LX6bYf_.js +0 -1
  133. package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +0 -1
  134. package/dist/web/client/assets/SpawnDialog-DoZl-yes.js +0 -1
  135. package/dist/web/client/assets/SpawnTeamModal-C638hEoN.js +0 -1
  136. package/dist/web/client/assets/Tabs-D0LgBNIk.js +0 -1
  137. package/dist/web/client/assets/TeamForm-C-WzvOl4.js +0 -1
  138. package/dist/web/client/assets/TeamPolicyEditor-CSKBx0oK.js +0 -7
  139. package/dist/web/client/assets/UnsavedChangesGuard-GC-vzw7h.js +0 -1
  140. package/dist/web/client/assets/_id-BKLynswT.js +0 -1
  141. package/dist/web/client/assets/_id-BYM_NORr.js +0 -1
  142. package/dist/web/client/assets/_id-Cxa98a9m.js +0 -1
  143. package/dist/web/client/assets/_id-D4hV1U1t.js +0 -1
  144. package/dist/web/client/assets/agent-actions-CXQCoxKO.js +0 -1
  145. package/dist/web/client/assets/agents-BxPS1_Bp.js +0 -1
  146. package/dist/web/client/assets/agents-GozAWW-l.js +0 -1
  147. package/dist/web/client/assets/attention-Cz9rZcrr.js +0 -1
  148. package/dist/web/client/assets/chevron-right-CPAb1zac.js +0 -1
  149. package/dist/web/client/assets/config-9vv9Lipb.js +0 -3
  150. package/dist/web/client/assets/inbox-DHLArXxl.js +0 -1
  151. package/dist/web/client/assets/index-1YXquAq8.js +0 -52
  152. package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +0 -1
  153. package/dist/web/client/assets/learning-PvtXm8Ne.js +0 -1
  154. package/dist/web/client/assets/login-DIJpNQFo.js +0 -1
  155. package/dist/web/client/assets/mcp-pKBL0xIf.js +0 -1
  156. package/dist/web/client/assets/members-DHWsgsEs.js +0 -1
  157. package/dist/web/client/assets/memory-CEVppPyU.js +0 -1
  158. package/dist/web/client/assets/plus-BaIRdB10.js +0 -1
  159. package/dist/web/client/assets/policy-DEh4BLSw.js +0 -1
  160. package/dist/web/client/assets/preload-helper-eUUcpe2S.js +0 -1
  161. package/dist/web/client/assets/results-DgJPjEZF.js +0 -1
  162. package/dist/web/client/assets/review-BbshafTQ.js +0 -1
  163. package/dist/web/client/assets/route-Ccb8v41z.js +0 -1
  164. package/dist/web/client/assets/route-D1d6kCEV.js +0 -1
  165. package/dist/web/client/assets/routes-g7V4ru7T.js +0 -1
  166. package/dist/web/client/assets/services-B2f7e5jV.js +0 -1
  167. package/dist/web/client/assets/settings-B6elpcYm.js +0 -1
  168. package/dist/web/client/assets/skills-CngE7TF8.js +0 -1
  169. package/dist/web/client/assets/styles-xUnZ-ep_.css +0 -2
  170. package/dist/web/client/assets/teams-BdJZXOan.js +0 -1
  171. package/dist/web/client/assets/teams-c496ISsT.js +0 -1
  172. package/dist/web/client/assets/telegram-B_-hK6EC.js +0 -1
  173. package/dist/web/client/assets/tokens-CKz8gx4-.js +0 -1
  174. package/dist/web/client/assets/triggers-DCEPciGW.js +0 -1
  175. package/dist/web/client/assets/welcome-D-zVOLGA.js +0 -1
  176. package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +0 -37
  177. package/dist/web/server/assets/ChatPane-De_FPEoD.js +0 -1887
  178. package/dist/web/server/assets/ResultCard-CZn1w4KA.js +0 -97
  179. package/dist/web/server/assets/Sidebar-puq47KyR.js +0 -430
  180. package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +0 -97
  181. package/dist/web/server/assets/_id-BR6tnR6I.js +0 -23
  182. package/dist/web/server/assets/_id-Bm611NQz.js +0 -13
  183. package/dist/web/server/assets/_id-D5UCoyES.js +0 -359
  184. package/dist/web/server/assets/_id-DHx5UmmL.js +0 -12
  185. package/dist/web/server/assets/_id-DLpGmOVm.js +0 -19
  186. package/dist/web/server/assets/_id-Y5ctILG2.js +0 -13
  187. package/dist/web/server/assets/_id-dDA0pdVo.js +0 -54
  188. package/dist/web/server/assets/_tanstack-start-manifest_v-B8u80HjK.js +0 -292
  189. package/dist/web/server/assets/agent-actions-BBdFVdoa.js +0 -20
  190. package/dist/web/server/assets/api-WWxPqx67.js +0 -85
  191. package/dist/web/server/assets/config-BNEgu7WG.js +0 -798
  192. package/dist/web/server/assets/config-C1VB28se.js +0 -12
  193. package/dist/web/server/assets/config-TdVqnqNL.js +0 -25
  194. package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +0 -16
  195. package/dist/web/server/assets/inbox-4Vj5jTT8.js +0 -245
  196. package/dist/web/server/assets/inbox-D4IqUv3l.js +0 -38
  197. package/dist/web/server/assets/inbox-Dle24AfV.js +0 -23
  198. package/dist/web/server/assets/learning-BScq7VbO.js +0 -12
  199. package/dist/web/server/assets/learning-CBWFEnhg.js +0 -263
  200. package/dist/web/server/assets/learning-DWAKevhF.js +0 -25
  201. package/dist/web/server/assets/members-B8QBF6TF.js +0 -12
  202. package/dist/web/server/assets/members-DsF02Wp7.js +0 -12
  203. package/dist/web/server/assets/members-tWZA9b15.js +0 -36
  204. package/dist/web/server/assets/memory-BNN0b-0x.js +0 -12
  205. package/dist/web/server/assets/memory-CTl1E1Rm.js +0 -267
  206. package/dist/web/server/assets/memory-CV5uCBb2.js +0 -12
  207. package/dist/web/server/assets/policy-C9M6zV6w.js +0 -79
  208. package/dist/web/server/assets/policy-h-6NpU3m.js +0 -19
  209. package/dist/web/server/assets/policy-xEw9X0DK.js +0 -12
  210. package/dist/web/server/assets/results-D3A3UA4d.js +0 -182
  211. package/dist/web/server/assets/results-D6Ui5S8D.js +0 -12
  212. package/dist/web/server/assets/results-DWmxvfyn.js +0 -15
  213. package/dist/web/server/assets/review-CyQky-WQ.js +0 -40
  214. package/dist/web/server/assets/review-Sq0GGcPV.js +0 -322
  215. package/dist/web/server/assets/review-XWbSF8cF.js +0 -12
  216. package/dist/web/server/assets/route-BErtkz6t.js +0 -19
  217. package/dist/web/server/assets/route-CLoV-An_.js +0 -48
  218. package/dist/web/server/assets/route-WQ19JkBa.js +0 -19
  219. package/dist/web/server/assets/route-dEK_2GLj.js +0 -203
  220. package/dist/web/server/assets/route-iHTkhO81.js +0 -16
  221. package/dist/web/server/assets/route-zs8uUQtB.js +0 -16
  222. package/dist/web/server/assets/router-BI9gmY3S.js +0 -751
  223. package/dist/web/server/assets/routes-081s4n24.js +0 -45
  224. package/dist/web/server/assets/routes-CWo5WPsr.js +0 -15
  225. package/dist/web/server/assets/routes-Cqp1ufHm.js +0 -56
  226. package/dist/web/server/assets/settings-CVaGv-xF.js +0 -12
  227. package/dist/web/server/assets/settings-D9viV-86.js +0 -561
  228. package/dist/web/server/assets/settings-DaZNZ_CC.js +0 -27
  229. package/dist/web/server/assets/triggers-B7LW784F.js +0 -214
  230. package/dist/web/server/assets/triggers-C5sMCZXv2.js +0 -12
  231. package/dist/web/server/assets/triggers-DMfVdImD.js +0 -12
  232. package/dist/web/server/assets/welcome-D0d38Pzx.js +0 -93
  233. package/dist/web/client/assets/{TeamPolicyEditor-DLioOiRN.css → style-DLioOiRN.css} +0 -0
  234. package/dist/web/server/assets/{start-DTX6aKCi.js → start-DhW7sy23.js} +1 -1
@@ -0,0 +1,16 @@
1
+ import { n as createServerFn } from "../server.js";
2
+ import { c as parseWorkspaceSearch } from "./workspace-DeEYMPDX.js";
3
+ import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
4
+ import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
5
+ //#region src/routes/index.tsx
6
+ var $$splitComponentImporter = () => import("./routes-BSNOKE-C.js");
7
+ /** The rail's open/closed Teams; a bad cookie is ignored. */
8
+ var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
9
+ var Route = createFileRoute("/")({
10
+ validateSearch: parseWorkspaceSearch,
11
+ loaderDeps: ({ search }) => ({ agentId: search.agent }),
12
+ loader: ({ deps }) => fetchWorkspace({ data: { agentId: deps.agentId } }),
13
+ component: lazyRouteComponent($$splitComponentImporter, "component")
14
+ });
15
+ //#endregion
16
+ export { Route as t };
@@ -0,0 +1,57 @@
1
+ import { a as getCookie, n as createServerFn } from "../server.js";
2
+ import { n as PANEL_COOKIE, s as parsePanelCookie } from "./workspace-DeEYMPDX.js";
3
+ import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-Cg-efcpA.js";
4
+ import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
5
+ import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
6
+ //#region src/routes/index.tsx?tss-serverfn-split
7
+ /** The rail's open/closed Teams; a bad cookie is ignored. */
8
+ function parseOpenGroupsCookie(raw) {
9
+ try {
10
+ const parsed = JSON.parse(decodeURIComponent(raw ?? "{}"));
11
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {};
12
+ return Object.fromEntries(Object.entries(parsed).filter((entry) => {
13
+ return typeof entry[1] === "boolean";
14
+ }));
15
+ } catch {
16
+ return {};
17
+ }
18
+ }
19
+ var fetchWorkspace_createServerFn_handler = createServerRpc({
20
+ id: "22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe",
21
+ name: "fetchWorkspace",
22
+ filename: "src/routes/index.tsx"
23
+ }, (opts) => fetchWorkspace.__executeServer(opts));
24
+ var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(fetchWorkspace_createServerFn_handler, async ({ data }) => {
25
+ const client = daemonClient();
26
+ const [agents, profiles, teamTemplates, teams, activity] = await Promise.all([
27
+ client.get("/api/agents?includeArchived=false"),
28
+ client.get("/api/profiles"),
29
+ client.get("/api/team-templates"),
30
+ client.get("/api/teams"),
31
+ client.get("/api/activity")
32
+ ]);
33
+ let selected = null;
34
+ if (data.agentId) try {
35
+ const resolved = await client.get(`/api/agents/${encodeURIComponent(data.agentId)}`);
36
+ const history = await client.get(`/api/agents/${encodeURIComponent(resolved.agent.id)}/sessions/messages`);
37
+ selected = {
38
+ resolved,
39
+ messages: history.messages,
40
+ head: history.head
41
+ };
42
+ } catch (err) {
43
+ if (!(err instanceof ApiClientError) || err.status !== 404) throw err;
44
+ }
45
+ return {
46
+ agents,
47
+ profiles,
48
+ teamTemplates,
49
+ teams,
50
+ selected,
51
+ activity: activity.agents,
52
+ openGroups: parseOpenGroupsCookie(getCookie(SIDEBAR_OPEN_GROUPS_COOKIE)),
53
+ panel: parsePanelCookie(getCookie(PANEL_COOKIE))
54
+ };
55
+ });
56
+ //#endregion
57
+ export { fetchWorkspace_createServerFn_handler };
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/services.tsx
5
- var $$splitComponentImporter = () => import("./services-tCfB1B83.js");
5
+ var $$splitComponentImporter = () => import("./services-DsvpaF3L.js");
6
6
  var fetchServices = createServerFn({ method: "GET" }).handler(createSsrRpc("6afd81bef0ee381d6e3641cd8e269968429c874e2f9d56c8f818cc9d180ee477"));
7
7
  var Route = createFileRoute("/config/services")({
8
8
  loader: () => fetchServices(),
@@ -1,6 +1,6 @@
1
1
  import { n as createServerFn } from "../server.js";
2
2
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
- import { n as daemonClient } from "./daemon-client-DL2ik2Em.js";
3
+ import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
4
  //#region src/routes/config/services.tsx?tss-serverfn-split
5
5
  var fetchServices_createServerFn_handler = createServerRpc({
6
6
  id: "6afd81bef0ee381d6e3641cd8e269968429c874e2f9d56c8f818cc9d180ee477",
@@ -1,7 +1,7 @@
1
- import { c as StatusBadge, t as EmptyState } from "./Page-CMSYKXWJ.js";
2
- import { t as Route } from "./services-Q9HYQXXB.js";
3
- import { t as ConfigPage } from "./ConfigPage-CGld_wCK.js";
4
- import { t as FieldRow } from "./FieldRow-Dah2KKqo.js";
1
+ import { l as StatusBadge, n as EmptyState } from "./createSsrRpc-CcLbajrF.js";
2
+ import { t as Route } from "./services-DZLxUSG8.js";
3
+ import { t as ConfigPage } from "./ConfigPage-CIh3ohea.js";
4
+ import { t as FieldRow } from "./FieldRow-CHVhX2rS.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/routes/config/services.tsx?tsr-split=component
7
7
  var OTHER = "Other";
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/skills/index.tsx
5
- var $$splitComponentImporter = () => import("./skills-C7fqRPna.js");
5
+ var $$splitComponentImporter = () => import("./skills-DKYV7PTk.js");
6
6
  var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
7
7
  var Route = createFileRoute("/skills/")({
8
8
  loader: () => fetchSkills(),
@@ -1,12 +1,12 @@
1
- import { i as errorMessage, n as api, o as Button, t as ApiError } from "./api-WWxPqx67.js";
2
- import { a as PageShell, c as StatusBadge, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow, t as EmptyState } from "./Page-CMSYKXWJ.js";
3
- import { t as Route } from "./skills-BZg_txbf.js";
4
- import { t as ConfirmDialog } from "./ConfirmDialog-LdVlEanK.js";
5
- import { n as FindingSummary, t as FindingList } from "./SkillFindings-Bd6e81Wu.js";
1
+ import { C as ApiError, E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
2
+ import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
3
+ import { a as PageHeader, i as ItemRow, l as StatusBadge, n as EmptyState, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
4
+ import { t as Route } from "./skills-CggQJk6a.js";
5
+ import { n as FindingSummary, t as FindingList } from "./SkillFindings-DSDiL6hn.js";
6
6
  import { t as Tabs } from "./Tabs-BhF41MfQ.js";
7
7
  import { useState } from "react";
8
8
  import { useRouter } from "@tanstack/react-router";
9
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region src/routes/skills/index.tsx?tsr-split=component
11
11
  function SkillsPage() {
12
12
  const skills = Route.useLoaderData();
@@ -28,7 +28,7 @@ function SkillsPage() {
28
28
  description: "Import from OpenClaw, a server directory, or a ZIP archive to get started."
29
29
  }) : /* @__PURE__ */ jsx(ItemList, { children: skills.map((skill) => /* @__PURE__ */ jsx(ItemRow, {
30
30
  title: /* @__PURE__ */ jsx("code", { children: skill.name }),
31
- meta: /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
32
32
  /* @__PURE__ */ jsx(FindingSummary, { findings: skill.scanFindings ?? [] }),
33
33
  /* @__PURE__ */ jsx("span", {
34
34
  className: "font-mono",
@@ -140,7 +140,7 @@ function ImportCard({ onImported }) {
140
140
  }
141
141
  return /* @__PURE__ */ jsxs(SectionCard, {
142
142
  title: "Import skills",
143
- description: /* @__PURE__ */ jsxs(Fragment, { children: [
143
+ description: /* @__PURE__ */ jsxs(Fragment$1, { children: [
144
144
  "Each skill's ",
145
145
  /* @__PURE__ */ jsx("code", { children: "SKILL.md" }),
146
146
  " body is added to the system prompt of every agent it is attached to."
@@ -192,7 +192,7 @@ function ImportCard({ onImported }) {
192
192
  " on the server."
193
193
  ]
194
194
  }),
195
- source === "path" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
195
+ source === "path" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", {
196
196
  className: "text-sm leading-6 text-muted-foreground",
197
197
  children: [
198
198
  "An absolute path on the server: one skill folder (with a ",
@@ -208,7 +208,7 @@ function ImportCard({ onImported }) {
208
208
  required: true
209
209
  })]
210
210
  })] }),
211
- source === "zip" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
211
+ source === "zip" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", {
212
212
  className: "text-sm leading-6 text-muted-foreground",
213
213
  children: [
214
214
  "A ",
@@ -235,7 +235,7 @@ function ImportCard({ onImported }) {
235
235
  }), zipFile ? /* @__PURE__ */ jsx("span", {
236
236
  className: "block break-all font-mono text-sm text-accent-foreground",
237
237
  children: zipFile.name
238
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
238
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
239
239
  className: "block text-sm font-medium text-foreground",
240
240
  children: "Click to choose a ZIP file"
241
241
  }), /* @__PURE__ */ jsx("span", {
@@ -1,6 +1,6 @@
1
1
  import { n as createServerFn } from "../server.js";
2
2
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
- import { n as daemonClient } from "./daemon-client-DL2ik2Em.js";
3
+ import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
4
  //#region src/routes/skills/index.tsx?tss-serverfn-split
5
5
  var fetchSkills_createServerFn_handler = createServerRpc({
6
6
  id: "ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5",
@@ -0,0 +1,178 @@
1
+ import { r as OUTSIDE_TEAM } from "./entities-Dn2xzKIw.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Check, Minus, X } from "lucide-react";
4
+ //#region src/lib/team-policy.ts
5
+ var OUTSIDE = OUTSIDE_TEAM;
6
+ function edgeKey(from, to) {
7
+ return `${from}>${to}`;
8
+ }
9
+ function hasEdge(document, from, to) {
10
+ return document.edges.some((edge) => edge.from === from && edge.to === to);
11
+ }
12
+ /** Add or remove one allow edge; an endpoint never connects to itself. */
13
+ function setEdge(document, from, to, allowed) {
14
+ if (from === to || hasEdge(document, from, to) === allowed) return document;
15
+ const edges = allowed ? [...document.edges, {
16
+ from,
17
+ to
18
+ }] : document.edges.filter((edge) => edge.from !== from || edge.to !== to);
19
+ return {
20
+ ...document,
21
+ edges
22
+ };
23
+ }
24
+ function endpointLabel(document, key) {
25
+ if (key === OUTSIDE) return "Other teams";
26
+ return document.members.find((member) => member.key === key)?.name || key;
27
+ }
28
+ function defaultPosition(index) {
29
+ return {
30
+ x: 40 + index % 3 * 250,
31
+ y: 40 + Math.floor(index / 3) * 130
32
+ };
33
+ }
34
+ function liveDocument(policy) {
35
+ return {
36
+ kind: "live",
37
+ name: policy.teamId,
38
+ userMd: null,
39
+ mode: policy.mode,
40
+ members: policy.members.map((agent, index) => ({
41
+ key: agent.id,
42
+ name: agent.name,
43
+ profileId: agent.profileId,
44
+ status: agent.status,
45
+ position: defaultPosition(index)
46
+ })),
47
+ edges: policy.edges.map((edge) => ({
48
+ from: edge.from,
49
+ to: edge.to
50
+ }))
51
+ };
52
+ }
53
+ function liveEdges(document) {
54
+ return document.edges.map((edge) => ({
55
+ from: edge.from,
56
+ to: edge.to
57
+ }));
58
+ }
59
+ function templateDocument(template) {
60
+ const key = (end) => end === OUTSIDE ? OUTSIDE : `slot:${end}`;
61
+ return {
62
+ kind: "template",
63
+ name: template.name,
64
+ userMd: template.userMd,
65
+ mode: template.policyMode,
66
+ members: template.slots.map((slot, index) => ({
67
+ key: `slot:${index}`,
68
+ name: slot.agentName,
69
+ profileId: slot.profileId,
70
+ modelOverride: slot.modelOverride,
71
+ reasoningLevel: slot.reasoningLevel,
72
+ position: slot.layoutPosition ?? defaultPosition(index)
73
+ })),
74
+ edges: template.edges.map((edge) => ({
75
+ from: key(edge.from),
76
+ to: key(edge.to)
77
+ }))
78
+ };
79
+ }
80
+ /** The PUT body for a template draft; slots are numbered by their order in the draft. */
81
+ function templateInput(document, profiles) {
82
+ const profileIds = new Set(profiles.map((profile) => profile.id));
83
+ const position = new Map(document.members.map((member, index) => [member.key, index]));
84
+ const endpoint = (key) => {
85
+ if (key === OUTSIDE) return OUTSIDE;
86
+ const index = position.get(key);
87
+ if (index === void 0) throw new Error(`Edge names a removed slot: ${key}`);
88
+ return index;
89
+ };
90
+ return {
91
+ name: document.name,
92
+ userMd: document.userMd,
93
+ policyMode: document.mode,
94
+ slots: document.members.map((member) => {
95
+ if (!profileIds.has(member.profileId)) throw new Error(`Missing Agent template: ${member.profileId || "(none)"}`);
96
+ return {
97
+ profileId: member.profileId,
98
+ agentName: member.name,
99
+ modelOverride: member.modelOverride ?? null,
100
+ reasoningLevel: member.reasoningLevel ?? null,
101
+ layoutPosition: member.position
102
+ };
103
+ }),
104
+ edges: document.edges.map((edge) => ({
105
+ from: endpoint(edge.from),
106
+ to: endpoint(edge.to)
107
+ }))
108
+ };
109
+ }
110
+ /** A live Team stores no layout, so dragging its nodes never makes the draft dirty. */
111
+ function sameDocument(left, right) {
112
+ const edges = (document) => document.edges.map((edge) => edgeKey(edge.from, edge.to)).sort().join("|");
113
+ if (left.mode !== right.mode || edges(left) !== edges(right)) return false;
114
+ if (left.kind === "live") return true;
115
+ return left.name === right.name && left.userMd === right.userMd && JSON.stringify(left.members) === JSON.stringify(right.members);
116
+ }
117
+ //#endregion
118
+ //#region src/components/team-policy/TeamPolicyMatrix.tsx
119
+ function TeamPolicyMatrix({ document, selectedId, onSelect, onToggle }) {
120
+ const actors = [...document.members.map((member) => member.key), OUTSIDE];
121
+ return /* @__PURE__ */ jsxs("div", {
122
+ className: "h-full min-h-[420px] overflow-auto bg-ivory p-4 sm:p-6",
123
+ children: [/* @__PURE__ */ jsxs("div", {
124
+ className: "mb-4",
125
+ children: [/* @__PURE__ */ jsx("h2", {
126
+ className: "m-0 font-body text-base font-semibold text-chocolate",
127
+ children: "Communication matrix"
128
+ }), /* @__PURE__ */ jsx("p", {
129
+ className: "mt-1 text-xs text-mocha-light",
130
+ children: "Rows send; columns receive. Every cell edits the same allow edges as Flow."
131
+ })]
132
+ }), /* @__PURE__ */ jsxs("table", {
133
+ className: "m-0 min-w-[620px] table-fixed overflow-visible rounded-md text-xs",
134
+ children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
135
+ className: "sticky left-0 z-20 w-40 bg-ivory",
136
+ children: "from / to"
137
+ }), actors.map((target) => /* @__PURE__ */ jsx("th", {
138
+ className: "w-24 max-w-24 text-center normal-case tracking-normal",
139
+ children: /* @__PURE__ */ jsx("button", {
140
+ type: "button",
141
+ onClick: () => onSelect(target),
142
+ className: `w-full truncate rounded-sm px-1 py-1 hover:bg-sapphire-glow ${selectedId === target ? "text-sapphire" : "text-mocha"}`,
143
+ title: endpointLabel(document, target),
144
+ children: endpointLabel(document, target)
145
+ })
146
+ }, target))] }) }), /* @__PURE__ */ jsx("tbody", { children: actors.map((source) => /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
147
+ className: "sticky left-0 z-10 max-w-40 bg-snow normal-case tracking-normal",
148
+ children: /* @__PURE__ */ jsx("button", {
149
+ type: "button",
150
+ onClick: () => onSelect(source),
151
+ className: `w-full truncate rounded-sm px-1 py-1 text-left hover:bg-sapphire-glow ${selectedId === source ? "text-sapphire" : "text-mocha"}`,
152
+ title: endpointLabel(document, source),
153
+ children: endpointLabel(document, source)
154
+ })
155
+ }), actors.map((target) => {
156
+ const allowed = hasEdge(document, source, target);
157
+ const label = `${endpointLabel(document, source)} to ${endpointLabel(document, target)}`;
158
+ return /* @__PURE__ */ jsx("td", {
159
+ className: "h-14 p-1 text-center",
160
+ children: source !== target ? /* @__PURE__ */ jsx("button", {
161
+ type: "button",
162
+ onClick: () => onToggle(source, target, !allowed),
163
+ "aria-pressed": allowed,
164
+ "aria-label": `${allowed ? "Deny" : "Allow"} ${label}`,
165
+ title: `${allowed ? "Allowed" : "Not allowed"}: ${label}`,
166
+ className: `mx-auto flex h-9 w-9 items-center justify-center rounded-md border transition-colors ${allowed ? "border-sapphire bg-sapphire text-snow hover:bg-sapphire-deep" : "border-frost bg-ivory text-mocha-light hover:border-rose-baziu hover:text-rose-baziu"}`,
167
+ children: allowed ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
168
+ }) : /* @__PURE__ */ jsx("span", {
169
+ className: "mx-auto flex h-9 w-9 items-center justify-center text-mocha-light",
170
+ children: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" })
171
+ })
172
+ }, target);
173
+ })] }, source)) })]
174
+ })]
175
+ });
176
+ }
177
+ //#endregion
178
+ export { endpointLabel as a, liveEdges as c, templateDocument as d, templateInput as f, edgeKey as i, sameDocument as l, OUTSIDE as n, hasEdge as o, defaultPosition as r, liveDocument as s, TeamPolicyMatrix as t, setEdge as u };
@@ -0,0 +1,138 @@
1
+ import { t as Route } from "./system-DsJfpBPl.js";
2
+ import { t as ConfigPage } from "./ConfigPage-CIh3ohea.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/components/BackupCard.tsx
5
+ /** The same archive as `bazilion backup create`, saved by the browser straight from the daemon. */
6
+ function BackupCard() {
7
+ return /* @__PURE__ */ jsxs("section", {
8
+ "aria-label": "Backup",
9
+ className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
10
+ children: [/* @__PURE__ */ jsx("header", {
11
+ className: "border-b border-border px-4 py-3 sm:px-5",
12
+ children: /* @__PURE__ */ jsx("h2", {
13
+ className: "text-base font-semibold",
14
+ children: "Backup"
15
+ })
16
+ }), /* @__PURE__ */ jsxs("div", {
17
+ className: "flex flex-wrap items-center justify-between gap-3 p-4 text-sm sm:px-5",
18
+ children: [/* @__PURE__ */ jsxs("p", {
19
+ className: "m-0 max-w-prose text-muted-foreground",
20
+ children: [
21
+ "A tar.gz of the Bazilion home. It is not encrypted and holds every stored credential; for an encrypted copy run ",
22
+ /* @__PURE__ */ jsx("code", { children: "bazilion backup create --recipient <age1…>" }),
23
+ ". Restore with ",
24
+ /* @__PURE__ */ jsx("code", { children: "bazilion backup restore" }),
25
+ " while the daemon is stopped."
26
+ ]
27
+ }), /* @__PURE__ */ jsx("a", {
28
+ href: "/api/backup",
29
+ download: true,
30
+ className: "btn-primary no-underline",
31
+ children: "Download backup"
32
+ })]
33
+ })]
34
+ });
35
+ }
36
+ //#endregion
37
+ //#region src/components/InstallationReadinessCard.tsx
38
+ function InstallationReadinessCard({ report }) {
39
+ return /* @__PURE__ */ jsxs("section", {
40
+ "aria-label": "Installation health",
41
+ className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
42
+ children: [/* @__PURE__ */ jsx("header", {
43
+ className: "border-b border-border px-4 py-3 sm:px-5",
44
+ children: /* @__PURE__ */ jsx("h2", {
45
+ className: "text-base font-semibold",
46
+ children: "Installation health"
47
+ })
48
+ }), /* @__PURE__ */ jsxs("dl", {
49
+ className: "p-4 sm:px-5",
50
+ children: [
51
+ /* @__PURE__ */ jsx("dt", {
52
+ className: "text-xs text-muted-foreground",
53
+ children: "Installation health"
54
+ }),
55
+ /* @__PURE__ */ jsx("dd", {
56
+ className: `mt-1 font-semibold ${report.ok ? "text-success" : "text-warning"}`,
57
+ children: report.ok ? "Healthy" : "Issues found"
58
+ }),
59
+ /* @__PURE__ */ jsx("dd", {
60
+ className: "mt-1 text-xs text-muted-foreground",
61
+ children: "Run bazilion doctor for the details."
62
+ })
63
+ ]
64
+ })]
65
+ });
66
+ }
67
+ //#endregion
68
+ //#region src/components/RuntimeCard.tsx
69
+ /** Sandbox and approval apply the same way to every turn: chat, Telegram, schedules and inbox. */
70
+ function RuntimeCard({ shell }) {
71
+ return /* @__PURE__ */ jsxs("section", {
72
+ "aria-label": "Agent runtime",
73
+ className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
74
+ children: [/* @__PURE__ */ jsxs("header", {
75
+ className: "border-b border-border px-4 py-3 sm:px-5",
76
+ children: [/* @__PURE__ */ jsx("h2", {
77
+ className: "text-base font-semibold",
78
+ children: "Agent runtime"
79
+ }), /* @__PURE__ */ jsx("p", {
80
+ className: "mt-1 text-xs text-muted-foreground",
81
+ children: "Applies to every turn: chat, Telegram, schedules and inbox. Unattended turns auto-deny dangerous commands."
82
+ })]
83
+ }), shell.ok ? /* @__PURE__ */ jsxs("dl", {
84
+ className: "divide-y divide-border px-4 text-sm sm:px-5",
85
+ children: [
86
+ /* @__PURE__ */ jsx(Row, {
87
+ label: "Sandbox",
88
+ value: shell.sandboxMode === "docker" ? `Docker (${shell.sandboxImage}) — bash in a network-disabled container` : "Off — bash and file tools run on the host, unisolated"
89
+ }),
90
+ shell.docker && /* @__PURE__ */ jsx(Row, {
91
+ label: "Docker",
92
+ value: shell.docker.ready ? "Ready" : `Unavailable — ${shell.docker.reason}`,
93
+ ok: shell.docker.ready
94
+ }),
95
+ shell.docker?.remediation && /* @__PURE__ */ jsx(Row, {
96
+ label: "Remediation",
97
+ value: shell.docker.remediation
98
+ }),
99
+ /* @__PURE__ */ jsx(Row, {
100
+ label: "Dangerous-command approval",
101
+ value: shell.approvalMode === "dangerous" ? "On — chat can allow once; unattended turns auto-deny" : "Off"
102
+ })
103
+ ]
104
+ }) : /* @__PURE__ */ jsxs("p", {
105
+ role: "alert",
106
+ className: "px-4 py-3 text-sm text-warning sm:px-5",
107
+ children: ["Invalid shell-security configuration: ", shell.error]
108
+ })]
109
+ });
110
+ }
111
+ function Row({ label, value, ok }) {
112
+ return /* @__PURE__ */ jsxs("div", {
113
+ className: "grid gap-1 py-3 sm:grid-cols-[14rem_1fr] sm:gap-4",
114
+ children: [/* @__PURE__ */ jsx("dt", {
115
+ className: "text-muted-foreground",
116
+ children: label
117
+ }), /* @__PURE__ */ jsx("dd", {
118
+ className: ok === void 0 ? "font-medium" : ok ? "text-success" : "text-warning",
119
+ children: value
120
+ })]
121
+ });
122
+ }
123
+ //#endregion
124
+ //#region src/routes/config/system.tsx?tsr-split=component
125
+ function SystemPage() {
126
+ const { ok, runtime } = Route.useLoaderData();
127
+ return /* @__PURE__ */ jsxs(ConfigPage, {
128
+ title: "System",
129
+ description: "The installation itself: its health, how Agents run commands, and a backup of everything.",
130
+ children: [
131
+ /* @__PURE__ */ jsx(InstallationReadinessCard, { report: { ok } }),
132
+ /* @__PURE__ */ jsx(RuntimeCard, { shell: runtime }),
133
+ /* @__PURE__ */ jsx(BackupCard, {})
134
+ ]
135
+ });
136
+ }
137
+ //#endregion
138
+ export { SystemPage as component };
@@ -0,0 +1,12 @@
1
+ import { n as createServerFn } from "../server.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
+ import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
+ //#region src/routes/config/system.tsx
5
+ var $$splitComponentImporter = () => import("./system-CZ2qzBz3.js");
6
+ var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
7
+ var Route = createFileRoute("/config/system")({
8
+ loader: () => fetchSystem(),
9
+ component: lazyRouteComponent($$splitComponentImporter, "component")
10
+ });
11
+ //#endregion
12
+ export { Route as t };
@@ -0,0 +1,18 @@
1
+ import { n as createServerFn } from "../server.js";
2
+ import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
+ import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
+ //#region src/routes/config/system.tsx?tss-serverfn-split
5
+ var fetchSystem_createServerFn_handler = createServerRpc({
6
+ id: "58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7",
7
+ name: "fetchSystem",
8
+ filename: "src/routes/config/system.tsx"
9
+ }, (opts) => fetchSystem.__executeServer(opts));
10
+ var fetchSystem = createServerFn({ method: "GET" }).handler(fetchSystem_createServerFn_handler, async () => {
11
+ const health = await daemonClient().get("/api/health/details");
12
+ return {
13
+ ok: health.ok,
14
+ runtime: health.shellSecurity
15
+ };
16
+ });
17
+ //#endregion
18
+ export { fetchSystem_createServerFn_handler };
@@ -1,11 +1,11 @@
1
- import { n as api, o as Button } from "./api-WWxPqx67.js";
2
- import { a as PageShell, c as StatusBadge, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow, t as EmptyState } from "./Page-CMSYKXWJ.js";
3
- import { t as Route } from "./teams-BHkhnt6b.js";
4
- import { t as ConfirmDialog } from "./ConfirmDialog-LdVlEanK.js";
5
- import { t as TeamForm } from "./TeamForm-C93tpn9r.js";
1
+ import { d as Button, w as api } from "./workspace-DeEYMPDX.js";
2
+ import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
3
+ import { t as TeamForm } from "./TeamForm-CvQAs2FA.js";
4
+ import { a as PageHeader, i as ItemRow, l as StatusBadge, n as EmptyState, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
5
+ import { t as Route } from "./teams-Bp2tERZe.js";
6
6
  import { useState } from "react";
7
- import { useRouter } from "@tanstack/react-router";
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ import { Link, useRouter } from "@tanstack/react-router";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/routes/teams/index.tsx?tsr-split=component
10
10
  function TeamsPage() {
11
11
  const { teams, memberCounts } = Route.useLoaderData();
@@ -17,7 +17,7 @@ function TeamsPage() {
17
17
  /* @__PURE__ */ jsx(PageHeader, {
18
18
  eyebrow: "Workspace",
19
19
  title: "Teams",
20
- description: "Each Team owns one workspace, its members and who may message whom. Every agent belongs to exactly one Team."
20
+ description: "Each Team owns one workspace, its members and who may message whom. Every Agent belongs to exactly one Team. Register a Team here, or remove an empty one."
21
21
  }),
22
22
  /* @__PURE__ */ jsx(SectionCard, {
23
23
  title: "Register a team",
@@ -25,18 +25,22 @@ function TeamsPage() {
25
25
  }),
26
26
  /* @__PURE__ */ jsx(SectionCard, {
27
27
  title: "Registered teams",
28
- description: "Open a Team to manage its context, members, shared memory and policy.",
28
+ description: "Open a Team for its members, USER.md, shared memory and connections.",
29
29
  children: teams.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
30
30
  title: "No teams registered",
31
31
  description: "Register a Team above to create a workspace for your agents."
32
32
  }) : /* @__PURE__ */ jsx(ItemList, { children: teams.map((team) => {
33
33
  const count = memberCounts[team.id] ?? 0;
34
34
  return /* @__PURE__ */ jsx(ItemRow, {
35
- title: /* @__PURE__ */ jsx("a", {
36
- href: `/teams/${encodeURIComponent(team.id)}`,
35
+ title: /* @__PURE__ */ jsx(Link, {
36
+ to: "/",
37
+ search: {
38
+ team: team.id,
39
+ panel: "team"
40
+ },
37
41
  children: team.name
38
42
  }),
39
- meta: /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
40
44
  /* @__PURE__ */ jsx("code", { children: team.id }),
41
45
  /* @__PURE__ */ jsxs(StatusBadge, {
42
46
  variant: count > 0 ? "success" : "neutral",
@@ -46,9 +50,13 @@ function TeamsPage() {
46
50
  count === 1 ? "" : "s"
47
51
  ]
48
52
  }),
49
- /* @__PURE__ */ jsxs("a", {
50
- href: `/teams/${encodeURIComponent(team.id)}/policy`,
51
- children: [team.policyMode, " policy"]
53
+ /* @__PURE__ */ jsxs(Link, {
54
+ to: "/",
55
+ search: {
56
+ team: team.id,
57
+ view: "connections"
58
+ },
59
+ children: [team.policyMode === "open" ? "Open" : "Restricted", ": see connections"]
52
60
  })
53
61
  ] }),
54
62
  actions: count === 0 && /* @__PURE__ */ jsx(Button, {
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/templates/teams/index.tsx
5
- var $$splitComponentImporter = () => import("./teams-BSflKBP8.js");
5
+ var $$splitComponentImporter = () => import("./teams-C-8iz-uV.js");
6
6
  var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad"));
7
7
  var Route = createFileRoute("/templates/teams/")({
8
8
  loader: () => fetchTemplates(),
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/teams/index.tsx
5
- var $$splitComponentImporter = () => import("./teams-BS-oweRl.js");
5
+ var $$splitComponentImporter = () => import("./teams-B6PzNcoy.js");
6
6
  var fetchTeams = createServerFn({ method: "GET" }).handler(createSsrRpc("fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82"));
7
7
  var Route = createFileRoute("/teams/")({
8
8
  loader: () => fetchTeams(),
@@ -1,6 +1,6 @@
1
1
  import { n as createServerFn } from "../server.js";
2
2
  import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
3
- import { n as daemonClient } from "./daemon-client-DL2ik2Em.js";
3
+ import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
4
4
  //#region src/routes/teams/index.tsx?tss-serverfn-split
5
5
  var fetchTeams_createServerFn_handler = createServerRpc({
6
6
  id: "fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82",