bazilion 0.52.0 → 0.54.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 (210) hide show
  1. package/dist/cli.js +3 -3
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +296 -232
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-CkwSq3C7.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-CEn_4qVs.js +1 -0
  7. package/dist/web/client/assets/Button-UiegBKOK.js +1 -0
  8. package/dist/web/client/assets/ConfigPage-CUbHBhzx.js +1 -0
  9. package/dist/web/client/assets/ConfirmDialog-VqBOFZEp.js +1 -0
  10. package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +1 -0
  11. package/dist/web/client/assets/ManagePage-BJWZd1ts.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-ViZKm3-B.js +1 -0
  13. package/dist/web/client/assets/Segmented-MYKKTuZO.js +1 -0
  14. package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-DG5UbJNK.js +1 -0
  16. package/dist/web/client/assets/TeamForm-DGlxWv4e.js +1 -0
  17. package/dist/web/client/assets/TeamThread-mkwODO0S.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-BmdwLH99.js +1 -0
  19. package/dist/web/client/assets/_id-CvcxNmBH.js +1 -0
  20. package/dist/web/client/assets/_id-UyBk7gRl.js +1 -0
  21. package/dist/web/client/assets/access-C8d8vaQ6.js +1 -0
  22. package/dist/web/client/assets/agent-actions-BgE9fKHH.js +1 -0
  23. package/dist/web/client/assets/agents-CgtzqBpD.js +1 -0
  24. package/dist/web/client/assets/agents-D7W4BT8r.js +1 -0
  25. package/dist/web/client/assets/arrow-right-D0HKRb7U.js +1 -0
  26. package/dist/web/client/assets/attention-D9mQWoKt.js +1 -0
  27. package/dist/web/client/assets/bot-Bb--PFVU.js +1 -0
  28. package/dist/web/client/assets/chevron-right-bs0TUSl2.js +1 -0
  29. package/dist/web/client/assets/config-Dw6GWf38.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-DkniuEtD.js +1 -0
  31. package/dist/web/client/assets/download-C4t9l5wR.js +1 -0
  32. package/dist/web/client/assets/file-text-DzbjpYrV.js +1 -0
  33. package/dist/web/client/assets/images-DSYgPKM7.js +1 -0
  34. package/dist/web/client/assets/index-YW0gXPfk.js +14 -0
  35. package/dist/web/client/assets/key-round-BpK4-E3T.js +1 -0
  36. package/dist/web/client/assets/list-checks-JNXcmws9.js +1 -0
  37. package/dist/web/client/assets/login-DcQJk5-U.js +1 -0
  38. package/dist/web/client/assets/manage-SRGSx8n2.js +1 -0
  39. package/dist/web/client/assets/mcp-BUWu4TvS.js +1 -0
  40. package/dist/web/client/assets/message-square-DM2MP9vF.js +1 -0
  41. package/dist/web/client/assets/network-BJ4iPjQO.js +1 -0
  42. package/dist/web/client/assets/parts-LZxl9Gvc.js +41 -0
  43. package/dist/web/client/assets/plus-CLGNN5QX.js +1 -0
  44. package/dist/web/client/assets/routes-BxIIyGho.js +85 -0
  45. package/dist/web/client/assets/skills-C7DzIwFJ.js +1 -0
  46. package/dist/web/client/assets/square-terminal-Dmm6cV-G.js +1 -0
  47. package/dist/web/client/assets/style-CA2GAk9b.js +7 -0
  48. package/dist/web/client/assets/styles-C3CDSGAr.css +2 -0
  49. package/dist/web/client/assets/system-zQ0NnQML.js +1 -0
  50. package/dist/web/client/assets/teams-BEIJHObN.js +1 -0
  51. package/dist/web/client/assets/teams-DlOc7Ods.js +1 -0
  52. package/dist/web/client/assets/telegram-DKHq5DpE.js +1 -0
  53. package/dist/web/client/assets/tools-BKIpLaiC.js +1 -0
  54. package/dist/web/client/assets/use-resource-CQaIZbpy.js +1 -0
  55. package/dist/web/client/assets/users-round-BJrym3FG.js +1 -0
  56. package/dist/web/client/assets/welcome-CyS4Hrd-.js +1 -0
  57. package/dist/web/client/assets/wrench-GbE1M1RJ.js +1 -0
  58. package/dist/web/server/assets/{AddProviderDialog-Tn4AskPm.js → AddProviderDialog-Nc5mc_P6.js} +106 -8
  59. package/dist/web/server/assets/AgentTemplateParts-DZK_r3nQ.js +266 -0
  60. package/dist/web/server/assets/{ConfigPage-DqDUujmt.js → ConfigPage-CxzL-gTm.js} +2 -2
  61. package/dist/web/server/assets/{ConfirmDialog-DfaJ--A6.js → ConfirmDialog-4xeCXKHe.js} +1 -2
  62. package/dist/web/server/assets/{ConnectionsView-DAG-zNBz.js → ConnectionsView-B02FjNsM.js} +9 -9
  63. package/dist/web/server/assets/ManagePage-BfCWE8Lj.js +29 -0
  64. package/dist/web/server/assets/ModelMenu-D-hTgYOO.js +278 -0
  65. package/dist/web/server/assets/{Rail-BIC_4ptO.js → Rail-3gbidhyv.js} +17 -110
  66. package/dist/web/server/assets/{SectionTabs-BGsrf-UQ.js → SectionTabs-CWQ5orUW.js} +9 -2
  67. package/dist/web/server/assets/SkillsParts-D58l8voo.js +199 -0
  68. package/dist/web/server/assets/SpawnDialog-MJWwppgC.js +1648 -0
  69. package/dist/web/server/assets/SpawnTeamModal-RjzAeX_Q.js +124 -0
  70. package/dist/web/server/assets/TeamForm-DdOgIMiV.js +138 -0
  71. package/dist/web/server/assets/{TeamThread-DuLlGDcw.js → TeamThread-D-PvO3fu.js} +9 -9
  72. package/dist/web/server/assets/{UnsavedChangesGuard-DrOvPV14.js → UnsavedChangesGuard-Bb5frygQ.js} +1 -1
  73. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  74. package/dist/web/server/assets/_id-BPjVkcNb.js +396 -0
  75. package/dist/web/server/assets/_id-BUfy-GwH.js +16 -0
  76. package/dist/web/server/assets/{_id-yN0z7VqE.js → _id-C1_l6oSR.js} +257 -207
  77. package/dist/web/server/assets/{_id-DJnYgisy.js → _id-CHvYQhWt.js} +8 -4
  78. package/dist/web/server/assets/_id-De3Bm0SG.js +39 -0
  79. package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +256 -0
  80. package/dist/web/server/assets/access-CNfvQ3NB.js +295 -0
  81. package/dist/web/server/assets/{access-GMGed5O8.js → access-Cm_izIIC.js} +2 -2
  82. package/dist/web/server/assets/{access-C_pupPks.js → access-WWspT0v4.js} +2 -1
  83. package/dist/web/server/assets/agent-actions-COnfW5AU.js +20 -0
  84. package/dist/web/server/assets/agents-C7UmTjfO.js +13 -0
  85. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-CRtMfKqX.js} +9 -6
  86. package/dist/web/server/assets/agents-D0hfGIMK.js +134 -0
  87. package/dist/web/server/assets/agents-DQowl6Ly.js +31 -0
  88. package/dist/web/server/assets/agents-DzpqlIuJ.js +12 -0
  89. package/dist/web/server/assets/agents-NOkh61dV.js +323 -0
  90. package/dist/web/server/assets/attention-CRvxt22X.js +232 -0
  91. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-CgWhXjX7.js} +4 -1
  92. package/dist/web/server/assets/{attention-DS3O9UmJ.js → attention-Cx9ZWPOO.js} +4 -2
  93. package/dist/web/server/assets/{config-DjTGA4iZ.js → config-B5CS8juO.js} +2 -2
  94. package/dist/web/server/assets/{config-Q7livfa3.js → config-D117117T.js} +51 -102
  95. package/dist/web/server/assets/createSsrRpc-CwTd0zrB.js +72 -0
  96. package/dist/web/server/assets/{login-VV10kZBl.js → login-IF0Gbsuq.js} +36 -2
  97. package/dist/web/server/assets/{login-JoIjlcmu.js → login-va4EtvA8.js} +34 -45
  98. package/dist/web/server/assets/manage-Ce6cI4eW.js +240 -0
  99. package/dist/web/server/assets/{mcp-ZARSOxZW.js → mcp-Bm9U6x7N.js} +2 -2
  100. package/dist/web/server/assets/mcp-C96PBxpb.js +376 -0
  101. package/dist/web/server/assets/page-title-CwcbXMhx.js +95 -0
  102. package/dist/web/server/assets/{router-Dh2-IvLL.js → router-8Iq19GOz.js} +366 -203
  103. package/dist/web/server/assets/{routes-C9NawqcV.js → routes-BLo-fWbQ.js} +2681 -1667
  104. package/dist/web/server/assets/{routes-CDskMy5C.js → routes-BXvYYFrN.js} +2 -2
  105. package/dist/web/server/assets/routes-Kwam6JmS.js +89 -0
  106. package/dist/web/server/assets/{skills-StN15QhC.js → skills-BqCnA-74.js} +2 -2
  107. package/dist/web/server/assets/skills-DSezIdDc.js +157 -0
  108. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  109. package/dist/web/server/assets/{style-GYDODk2F.js → style-C2hIPY_Y.js} +2 -2
  110. package/dist/web/server/assets/{system-Dl-1RhoP.js → system-CcLCmkIC.js} +2 -2
  111. package/dist/web/server/assets/{system-DtswhLW6.js → system-D3th6n2E.js} +4 -2
  112. package/dist/web/server/assets/system-E0VePdzO.js +145 -0
  113. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  114. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  115. package/dist/web/server/assets/teams-CQVV18D3.js +216 -0
  116. package/dist/web/server/assets/teams-CdCmBJIj.js +174 -0
  117. package/dist/web/server/assets/{teams-5PMGvHuM.js → teams-DScFp8mK.js} +2 -2
  118. package/dist/web/server/assets/{teams-CbIPKf99.js → teams-DxA-vnzY.js} +4 -2
  119. package/dist/web/server/assets/telegram-DJ8s_91Y.js +1057 -0
  120. package/dist/web/server/assets/{telegram-Cv0D4gyz.js → telegram-DR7xijeS.js} +2 -2
  121. package/dist/web/server/assets/{tools-ioJcPzMW.js → tools-CsH9DI-4.js} +2 -2
  122. package/dist/web/server/assets/{tools-OfD22R-C.js → tools-V6kezUpL.js} +55 -218
  123. package/dist/web/server/assets/{use-resource-DVzK0toP.js → use-resource-CjcJwn7F.js} +1 -1
  124. package/dist/web/server/assets/{welcome-jxmpE_Jb.js → welcome-BpmcD-ia.js} +2 -2
  125. package/dist/web/server/assets/{welcome-FFEbrNT1.js → welcome-Ya8TkL4v.js} +10 -10
  126. package/dist/web/server/server.js +19 -19
  127. package/dist/worker.js +17 -0
  128. package/dist/worker.js.map +1 -1
  129. package/package.json +1 -1
  130. package/dist/web/client/assets/AddProviderDialog-BiGLKnu2.js +0 -1
  131. package/dist/web/client/assets/ConfigPage-DvBzy2MN.js +0 -1
  132. package/dist/web/client/assets/ConfirmDialog-CiZ5tk9R.js +0 -1
  133. package/dist/web/client/assets/ConnectionsView-Czkpm2JY.js +0 -1
  134. package/dist/web/client/assets/Dialog-s_kPtI-W.js +0 -1
  135. package/dist/web/client/assets/ModelMenu-BfUPoRjV.js +0 -1
  136. package/dist/web/client/assets/SectionTabs-DENNb6Nw.js +0 -1
  137. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  138. package/dist/web/client/assets/SkillFindings-Xng11qqx.js +0 -1
  139. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  140. package/dist/web/client/assets/SpawnDialog-CKWFQ6jk.js +0 -1
  141. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  142. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  143. package/dist/web/client/assets/TeamThread-2rm1JGSk.js +0 -1
  144. package/dist/web/client/assets/UnsavedChangesGuard-nx6dv2Yw.js +0 -1
  145. package/dist/web/client/assets/_id-B72mIpcE.js +0 -1
  146. package/dist/web/client/assets/_id-Bzavnza1.js +0 -1
  147. package/dist/web/client/assets/access-Yw9jODuk.js +0 -1
  148. package/dist/web/client/assets/agents-C9xoyL7o.js +0 -1
  149. package/dist/web/client/assets/agents-TviG16wx.js +0 -1
  150. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  151. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  152. package/dist/web/client/assets/attention-DmURtlJm.js +0 -1
  153. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  154. package/dist/web/client/assets/chevron-right-CUZiA2aG.js +0 -1
  155. package/dist/web/client/assets/config-UZz_mjO5.js +0 -1
  156. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  157. package/dist/web/client/assets/dist-BWppw70N.js +0 -41
  158. package/dist/web/client/assets/dist-D2dwY7MR.js +0 -1
  159. package/dist/web/client/assets/entities-xVoB-p2j.js +0 -1
  160. package/dist/web/client/assets/index-Df1oUtAP.js +0 -14
  161. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  162. package/dist/web/client/assets/login-CPfdaqsV.js +0 -1
  163. package/dist/web/client/assets/mcp-FlYnNon0.js +0 -1
  164. package/dist/web/client/assets/model-facts-DoB6QD5y.js +0 -1
  165. package/dist/web/client/assets/parts-tIDBNsYA.js +0 -1
  166. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  167. package/dist/web/client/assets/routes-BZaWCoQj.js +0 -76
  168. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  169. package/dist/web/client/assets/skills-C7yDPC8s.js +0 -1
  170. package/dist/web/client/assets/style-DDuTFJUu.js +0 -7
  171. package/dist/web/client/assets/styles-BviXU81u.css +0 -2
  172. package/dist/web/client/assets/system-CL3Kz36L.js +0 -1
  173. package/dist/web/client/assets/teams-CQTEF5gV.js +0 -1
  174. package/dist/web/client/assets/teams-DQ7SqVyF.js +0 -1
  175. package/dist/web/client/assets/telegram-BLgxtGhZ.js +0 -1
  176. package/dist/web/client/assets/tools-pOQyGVYo.js +0 -1
  177. package/dist/web/client/assets/use-resource-C3MBZJop.js +0 -1
  178. package/dist/web/client/assets/welcome-Hr6JpMef.js +0 -1
  179. package/dist/web/client/assets/wrench-6BEIqKDn.js +0 -1
  180. package/dist/web/server/assets/Dialog-aup_yJv5.js +0 -85
  181. package/dist/web/server/assets/ModelMenu-DUY9aHkE.js +0 -138
  182. package/dist/web/server/assets/SkillFindings-BdATze1A.js +0 -46
  183. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  184. package/dist/web/server/assets/SpawnDialog-D_SMPCG_.js +0 -132
  185. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  186. package/dist/web/server/assets/TeamForm-ilBaeLI4.js +0 -96
  187. package/dist/web/server/assets/_id-BsZcsabI.js +0 -383
  188. package/dist/web/server/assets/_id-D8Kj0F30.js +0 -18
  189. package/dist/web/server/assets/_id-QYifTM9w.js +0 -28
  190. package/dist/web/server/assets/_tanstack-start-manifest_v-D6zrzUC7.js +0 -223
  191. package/dist/web/server/assets/access-DKOpcHIJ.js +0 -232
  192. package/dist/web/server/assets/agents-B6OR3x99.js +0 -327
  193. package/dist/web/server/assets/agents-B7642eRO.js +0 -130
  194. package/dist/web/server/assets/agents-BJ-_oC2e.js +0 -14
  195. package/dist/web/server/assets/agents-CjV0w-Zy.js +0 -12
  196. package/dist/web/server/assets/agents-Dy_Q-9lG.js +0 -27
  197. package/dist/web/server/assets/attention-CLP4HYBz.js +0 -216
  198. package/dist/web/server/assets/createSsrRpc-GCCF14VW.js +0 -169
  199. package/dist/web/server/assets/entities-Dn2xzKIw.js +0 -16
  200. package/dist/web/server/assets/mcp-BI-FD-JI.js +0 -250
  201. package/dist/web/server/assets/model-facts-mrfrWQne.js +0 -136
  202. package/dist/web/server/assets/parts-B31PJkhi.js +0 -190
  203. package/dist/web/server/assets/routes-BJIJWCIE.js +0 -16
  204. package/dist/web/server/assets/skills-BqLq3ZXq.js +0 -275
  205. package/dist/web/server/assets/system-BtRA2HUs.js +0 -138
  206. package/dist/web/server/assets/teams-COaU0wN9.js +0 -108
  207. package/dist/web/server/assets/teams-Ca8W4mvl.js +0 -88
  208. package/dist/web/server/assets/telegram-Yx8nm6Ei.js +0 -984
  209. package/dist/web/server/assets/utils-C_uf36nf.js +0 -8
  210. package/dist/web/server/assets/workspace-DaitCM0t.js +0 -651
@@ -1,13 +1,12 @@
1
- import { C as api, T as errorMessage, d as AgentAvatar, g as useActivity, h as teamSummary, m as shortTime, u as Button } from "./workspace-DaitCM0t.js";
2
- import { n as DEFAULT_TEAM_ID, t as DEFAULT_PROFILE_ID } from "./entities-Dn2xzKIw.js";
3
- import { t as useHydrated } from "./use-resource-DVzK0toP.js";
4
- import { n as DialogActions, t as Dialog$1 } from "./Dialog-aup_yJv5.js";
5
- import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
6
- import { i as renameAgent, n as archiveAgent, t as SpawnDialog } from "./SpawnDialog-D_SMPCG_.js";
7
- import { t as TeamForm } from "./TeamForm-ilBaeLI4.js";
1
+ import { G as DialogActions, J as DEFAULT_PROFILE_ID, K as Button, W as Dialog$1, Y as DEFAULT_TEAM_ID, dt as errorMessage, et as shortTime, nt as useActivity, q as AgentAvatar, t as SpawnDialog, tt as teamSummary } from "./SpawnDialog-MJWwppgC.js";
2
+ import { t as useHydrated } from "./use-resource-CjcJwn7F.js";
3
+ import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
4
+ import { r as renameAgent, t as archiveAgent } from "./agent-actions-COnfW5AU.js";
5
+ import { t as SpawnTeamModal } from "./SpawnTeamModal-RjzAeX_Q.js";
6
+ import { t as TeamForm } from "./TeamForm-DdOgIMiV.js";
8
7
  import { createContext, useContext, useMemo, useRef, useState } from "react";
9
8
  import { Link, useRouter } from "@tanstack/react-router";
10
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { Archive, Bot, ChevronDown, ChevronRight, Ellipsis, PanelLeft, PanelRight, Pencil, Plus, Send, Settings2, UsersRound } from "lucide-react";
12
11
  import { DropdownMenu } from "radix-ui";
13
12
  //#region src/components/workspace/context.tsx
@@ -39,98 +38,6 @@ function useWorkspaceOptional() {
39
38
  return useContext(WorkspaceContext);
40
39
  }
41
40
  //#endregion
42
- //#region src/components/SpawnTeamModal.tsx
43
- /** Spawn a Team template's Agents and allow edges into a new or existing Team. */
44
- function SpawnTeamModal({ template, teams, initialTeamId = "", onClose, onSpawned }) {
45
- const [teamId, setTeamId] = useState(initialTeamId);
46
- const [userMd, setUserMd] = useState("");
47
- const [error, setError] = useState(null);
48
- const [busy, setBusy] = useState(false);
49
- const target = teamId.trim();
50
- const existing = teams.some((team) => team.id === target);
51
- async function spawn(event) {
52
- event.preventDefault();
53
- setBusy(true);
54
- setError(null);
55
- try {
56
- await api(`/api/team-templates/${encodeURIComponent(template.id)}/spawn`, { body: {
57
- teamId: target,
58
- ...userMd && !existing ? { userMd } : {}
59
- } });
60
- onSpawned(target);
61
- } catch (cause) {
62
- setError(errorMessage(cause));
63
- } finally {
64
- setBusy(false);
65
- }
66
- }
67
- return /* @__PURE__ */ jsx(Dialog$1, {
68
- title: `Spawn team: ${template.name}`,
69
- description: /* @__PURE__ */ jsxs(Fragment$1, { children: [
70
- "Creates ",
71
- template.slots.length,
72
- " Agent",
73
- template.slots.length === 1 ? "" : "s",
74
- " and",
75
- " ",
76
- template.edges.length,
77
- " allow edge",
78
- template.edges.length === 1 ? "" : "s",
79
- ". An unknown slug creates a new ",
80
- template.policyMode,
81
- " Team; an existing Team keeps its mode."
82
- ] }),
83
- busy,
84
- onClose,
85
- children: /* @__PURE__ */ jsxs("form", {
86
- onSubmit: (event) => void spawn(event),
87
- children: [
88
- /* @__PURE__ */ jsxs("label", { children: [
89
- "Target Team slug",
90
- /* @__PURE__ */ jsx("input", {
91
- value: teamId,
92
- onChange: (event) => setTeamId(event.target.value),
93
- list: "spawn-team-targets",
94
- required: true
95
- }),
96
- /* @__PURE__ */ jsx("datalist", {
97
- id: "spawn-team-targets",
98
- children: teams.map((team) => /* @__PURE__ */ jsx("option", {
99
- value: team.id,
100
- children: team.name
101
- }, team.id))
102
- })
103
- ] }),
104
- !existing && /* @__PURE__ */ jsxs("label", { children: ["Starter USER.md (new Team only; defaults to the template's)", /* @__PURE__ */ jsx("textarea", {
105
- rows: 3,
106
- value: userMd,
107
- onChange: (event) => setUserMd(event.target.value),
108
- className: "font-mono text-[0.88em] leading-[1.55]"
109
- })] }),
110
- error && /* @__PURE__ */ jsx("p", {
111
- role: "alert",
112
- className: "err mt-2",
113
- children: error
114
- }),
115
- /* @__PURE__ */ jsx("div", {
116
- className: "mt-4",
117
- children: /* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
118
- variant: "ghost",
119
- disabled: busy,
120
- onClick: onClose,
121
- children: "Cancel"
122
- }), /* @__PURE__ */ jsx(Button, {
123
- variant: "primary",
124
- type: "submit",
125
- disabled: busy || !target || template.slots.length === 0,
126
- children: busy ? "Spawning…" : "Spawn team"
127
- })] })
128
- })
129
- ]
130
- })
131
- });
132
- }
133
- //#endregion
134
41
  //#region src/components/workspace/Rail.tsx
135
42
  var SIDEBAR_OPEN_GROUPS_COOKIE = "bz_sidebar_open_groups";
136
43
  function writeOpenGroupsCookie(map) {
@@ -242,7 +149,7 @@ function Rail({ initialOpenGroups }) {
242
149
  asChild: true,
243
150
  className: MENU_ITEM,
244
151
  children: /* @__PURE__ */ jsx("a", {
245
- href: "/templates/agents",
152
+ href: "/templates/agents?new=1",
246
153
  children: "Create an Agent template"
247
154
  })
248
155
  }) : sortedProfiles.map((profile) => /* @__PURE__ */ jsxs(DropdownMenu.Item, {
@@ -271,7 +178,7 @@ function Rail({ initialOpenGroups }) {
271
178
  asChild: true,
272
179
  className: MENU_ITEM,
273
180
  children: /* @__PURE__ */ jsx("a", {
274
- href: "/templates/teams",
181
+ href: "/templates/teams?new=1",
275
182
  children: "Create a Team template"
276
183
  })
277
184
  }) : teamTemplates.map((entry) => /* @__PURE__ */ jsxs(DropdownMenu.Item, {
@@ -294,7 +201,7 @@ function Rail({ initialOpenGroups }) {
294
201
  children: [/* @__PURE__ */ jsx(Plus, {
295
202
  className: "size-3.5",
296
203
  "aria-hidden": "true"
297
- }), "Create a team"]
204
+ }), "Create a Team"]
298
205
  })
299
206
  ]
300
207
  }) })]
@@ -320,7 +227,7 @@ function Rail({ initialOpenGroups }) {
320
227
  onClick: () => setSpawnProfile(sortedProfiles[0]?.id ?? "default"),
321
228
  children: "Spawn first agent"
322
229
  }) : /* @__PURE__ */ jsx("a", {
323
- href: "/templates/agents",
230
+ href: "/templates/agents?new=1",
324
231
  className: "mt-3 text-xs font-semibold",
325
232
  children: "Create an Agent template"
326
233
  })
@@ -421,8 +328,8 @@ function Rail({ initialOpenGroups }) {
421
328
  }
422
329
  }),
423
330
  createTeamOpen && /* @__PURE__ */ jsx(Dialog$1, {
424
- title: "Create a team",
425
- description: "A Team is one workspace with its own USER.md, members and shared memory.",
331
+ title: "Create a Team",
332
+ description: "A Team is one workspace: its folder, its Agents, its USER.md and shared memory, and who may message whom.",
426
333
  busy: createTeamBusy,
427
334
  onClose: () => {
428
335
  setCreateTeamOpen(false);
@@ -459,7 +366,7 @@ function Rail({ initialOpenGroups }) {
459
366
  if (!next) setArchiveTarget(null);
460
367
  },
461
368
  title: `Archive ${archiveTarget?.name ?? "agent"}?`,
462
- description: /* @__PURE__ */ jsx("p", { children: "The Agent leaves this list and receives no work. Restore it later under Manage, Agents, with “Show archived”." }),
369
+ description: /* @__PURE__ */ jsx("p", { children: "The Agent leaves this list and receives no work. Restore it later under Manage → Agents, in Archived." }),
463
370
  confirmLabel: "Archive agent",
464
371
  confirmVariant: "primary",
465
372
  onConfirm: async () => {
@@ -511,7 +418,7 @@ function AgentRow({ agent, selected, state, lastActivityAt, panel, onRename, onA
511
418
  }),
512
419
  hydrated && lastActivityAt !== null && /* @__PURE__ */ jsx("time", {
513
420
  dateTime: new Date(lastActivityAt).toISOString(),
514
- className: "ml-auto shrink-0 text-[0.7rem] font-normal text-muted-foreground",
421
+ className: "ml-auto shrink-0 text-xs font-normal text-muted-foreground",
515
422
  children: shortTime(lastActivityAt)
516
423
  })
517
424
  ]
@@ -609,7 +516,7 @@ function SlimRail() {
609
516
  children: [
610
517
  /* @__PURE__ */ jsx("div", { className: "h-px w-8 bg-border" }),
611
518
  /* @__PURE__ */ jsx("span", {
612
- className: `max-w-14 truncate text-[0.65rem] font-bold uppercase tracking-[0.06em] ${team.id === inView?.id ? "text-accent-foreground" : "text-muted-foreground"}`,
519
+ className: `max-w-14 truncate text-xs font-bold uppercase tracking-[0.06em] ${team.id === inView?.id ? "text-accent-foreground" : "text-muted-foreground"}`,
613
520
  title: team.name,
614
521
  children: team.name
615
522
  }),
@@ -695,4 +602,4 @@ function RenameAgentDialog({ agent, onClose, onRenamed }) {
695
602
  });
696
603
  }
697
604
  //#endregion
698
- export { SlimRail as a, useWorkspace as c, STATE_DOT as i, useWorkspaceOptional as l, RenameAgentDialog as n, SpawnTeamModal as o, SIDEBAR_OPEN_GROUPS_COOKIE as r, WorkspaceProvider as s, Rail as t };
605
+ export { STATE_TEXT as a, useWorkspace as c, STATE_DOT as i, useWorkspaceOptional as l, RenameAgentDialog as n, SlimRail as o, SIDEBAR_OPEN_GROUPS_COOKIE as r, WorkspaceProvider as s, Rail as t };
@@ -26,7 +26,14 @@ function SectionTabs({ label, base, tabs, children }) {
26
26
  }), children]
27
27
  });
28
28
  }
29
- var TEMPLATE_TABS = [["/agents", "Agent templates"], ["/teams", "Team templates"]];
29
+ /** The Manage pages: suffixes of the root, each current on its own path and below. */
30
+ var MANAGE_TABS = [
31
+ ["/agents", "Agents"],
32
+ ["/teams", "Teams"],
33
+ ["/templates/agents", "Agent templates"],
34
+ ["/templates/teams", "Team templates"],
35
+ ["/skills", "Skills"]
36
+ ];
30
37
  var CONFIG_TABS = [
31
38
  ["", "Models"],
32
39
  ["/tools", "Tools"],
@@ -36,4 +43,4 @@ var CONFIG_TABS = [
36
43
  ["/system", "System"]
37
44
  ];
38
45
  //#endregion
39
- export { SectionTabs as n, TEMPLATE_TABS as r, CONFIG_TABS as t };
46
+ export { MANAGE_TABS as n, SectionTabs as r, CONFIG_TABS as t };
@@ -0,0 +1,199 @@
1
+ import { G as DialogActions, K as Button, W as Dialog, ct as ApiError, dt as errorMessage, f as TextField, k as Notice, lt as api, n as CheckboxRow, r as ChoiceCards } from "./SpawnDialog-MJWwppgC.js";
2
+ import { p as cn } from "./ModelMenu-D-hTgYOO.js";
3
+ import { s as count } from "./manage-Ce6cI4eW.js";
4
+ import { useState } from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/components/manage/SkillsParts.tsx
7
+ /** A scan's findings, one to a line: what it found, and where. */
8
+ function FindingLines({ findings }) {
9
+ return /* @__PURE__ */ jsx("ul", {
10
+ className: "m-0 mt-1 grid list-none gap-1 p-0",
11
+ children: findings.map((finding, index) => /* @__PURE__ */ jsxs("li", {
12
+ className: "min-w-0",
13
+ children: [
14
+ /* @__PURE__ */ jsxs("span", {
15
+ className: finding.severity === "danger" ? "font-semibold" : "",
16
+ children: [finding.severity === "danger" ? "Risky" : "Check", ":"]
17
+ }),
18
+ " ",
19
+ finding.message,
20
+ " ",
21
+ /* @__PURE__ */ jsxs("span", {
22
+ className: "text-muted-foreground",
23
+ children: [
24
+ "(",
25
+ finding.code,
26
+ finding.line ? `, line ${finding.line}` : "",
27
+ ")"
28
+ ]
29
+ })
30
+ ]
31
+ }, index))
32
+ });
33
+ }
34
+ /** What the scan found in one skill, or in what was imported. */
35
+ function FindingsNotice({ findings, title }) {
36
+ const danger = findings.some((finding) => finding.severity === "danger");
37
+ return /* @__PURE__ */ jsx(Notice, {
38
+ tone: danger ? "warning" : "neutral",
39
+ title: title ?? (danger ? "Read it before an Agent uses it: its text goes into the system prompt." : "Worth a look."),
40
+ children: /* @__PURE__ */ jsx(FindingLines, { findings })
41
+ });
42
+ }
43
+ var SOURCES = [
44
+ {
45
+ value: "openclaw",
46
+ label: "OpenClaw",
47
+ hint: "Every skill in ~/.openclaw/skills on the computer Bazilion runs on."
48
+ },
49
+ {
50
+ value: "path",
51
+ label: "A folder",
52
+ hint: "One skill folder with a SKILL.md, or a folder of them, on that computer."
53
+ },
54
+ {
55
+ value: "zip",
56
+ label: "A ZIP file",
57
+ hint: "Uploaded from here: one folder per skill at its top level."
58
+ }
59
+ ];
60
+ /** Import skills from OpenClaw, a folder or a ZIP file; the scan's findings are shown here. */
61
+ function ImportSkillsDialog({ onClose, onImported }) {
62
+ const [source, setSource] = useState("openclaw");
63
+ const [path, setPath] = useState("");
64
+ const [zip, setZip] = useState(null);
65
+ const [dragOver, setDragOver] = useState(false);
66
+ const [force, setForce] = useState(false);
67
+ const [busy, setBusy] = useState(false);
68
+ const [error, setError] = useState(null);
69
+ const [findings, setFindings] = useState([]);
70
+ const pathProblem = source === "path" && path.trim() && !path.trim().startsWith("/") ? "The full path of the folder, starting with /." : void 0;
71
+ const ready = source === "openclaw" || source === "path" && path.trim() !== "" && !pathProblem || source === "zip" && zip !== null;
72
+ function chooseZip(file) {
73
+ if (!file) return;
74
+ setError(null);
75
+ if (!/\.zip$/i.test(file.name)) {
76
+ setError("Only ZIP archives can be imported.");
77
+ return;
78
+ }
79
+ setZip(file);
80
+ }
81
+ async function submit(event) {
82
+ event.preventDefault();
83
+ if (!ready || busy) return;
84
+ setBusy(true);
85
+ setError(null);
86
+ setFindings([]);
87
+ let body;
88
+ if (source === "zip" && zip) {
89
+ const form = new FormData();
90
+ form.set("file", zip);
91
+ if (force) form.set("force", "true");
92
+ body = form;
93
+ } else body = {
94
+ source: source === "openclaw" ? "openclaw" : path.trim(),
95
+ force
96
+ };
97
+ try {
98
+ await onImported(await api("/api/skills/import", { body }));
99
+ } catch (cause) {
100
+ if (cause instanceof ApiError) setFindings(cause.body?.findings ?? []);
101
+ setError(errorMessage(cause));
102
+ setBusy(false);
103
+ }
104
+ }
105
+ return /* @__PURE__ */ jsx(Dialog, {
106
+ title: "Import skills",
107
+ description: "A skill's SKILL.md is added to the system prompt of every Agent it is attached to. Each one is scanned before it is installed.",
108
+ busy,
109
+ onClose,
110
+ className: "max-w-2xl",
111
+ children: /* @__PURE__ */ jsxs("form", {
112
+ onSubmit: (event) => void submit(event),
113
+ className: "grid gap-4",
114
+ children: [
115
+ /* @__PURE__ */ jsx(ChoiceCards, {
116
+ legend: "From",
117
+ name: "skills-source",
118
+ value: source,
119
+ options: SOURCES,
120
+ columns: 3,
121
+ disabled: busy,
122
+ onChange: (next) => {
123
+ setSource(next);
124
+ setError(null);
125
+ setFindings([]);
126
+ }
127
+ }),
128
+ source === "path" && /* @__PURE__ */ jsx(TextField, {
129
+ label: "Folder",
130
+ value: path,
131
+ disabled: busy,
132
+ placeholder: "/home/you/my-skills",
133
+ mono: true,
134
+ className: "max-w-none",
135
+ problem: pathProblem,
136
+ onChange: setPath
137
+ }),
138
+ source === "zip" && /* @__PURE__ */ jsxs("label", {
139
+ onDragOver: (event) => {
140
+ event.preventDefault();
141
+ setDragOver(true);
142
+ },
143
+ onDragLeave: () => setDragOver(false),
144
+ onDrop: (event) => {
145
+ event.preventDefault();
146
+ setDragOver(false);
147
+ chooseZip(event.dataTransfer.files[0]);
148
+ },
149
+ className: cn("relative m-0 block cursor-pointer rounded-xl border-2 border-dashed px-6 py-7 text-center text-sm transition-colors", dragOver ? "border-primary bg-accent text-accent-foreground" : zip ? "border-solid border-primary/40 bg-card text-foreground" : "border-border bg-muted/30 text-muted-foreground hover:border-primary hover:bg-accent/60"),
150
+ children: [/* @__PURE__ */ jsx("input", {
151
+ type: "file",
152
+ accept: ".zip,application/zip",
153
+ disabled: busy,
154
+ onChange: (event) => chooseZip(event.target.files?.[0]),
155
+ className: "absolute h-px w-px overflow-hidden opacity-0"
156
+ }), zip ? /* @__PURE__ */ jsx("span", {
157
+ className: "block break-all font-mono text-foreground",
158
+ children: zip.name
159
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
160
+ className: "block font-semibold text-foreground",
161
+ children: "Choose a ZIP file"
162
+ }), /* @__PURE__ */ jsx("span", {
163
+ className: "text-xs",
164
+ children: "or drop it here"
165
+ })] })]
166
+ }),
167
+ /* @__PURE__ */ jsx(CheckboxRow, {
168
+ checked: force,
169
+ disabled: busy,
170
+ label: "Replace skills that are already installed, and import despite scan findings",
171
+ onChange: setForce
172
+ }),
173
+ findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
174
+ findings,
175
+ title: `The scan found ${count(findings.length, "thing")} to check. Read them; to import anyway, tick the box above.`
176
+ }),
177
+ error && findings.length === 0 && /* @__PURE__ */ jsx(Notice, {
178
+ tone: "warning",
179
+ role: "alert",
180
+ title: "Nothing was imported.",
181
+ children: error
182
+ }),
183
+ /* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
184
+ variant: "ghost",
185
+ disabled: busy,
186
+ onClick: onClose,
187
+ children: "Cancel"
188
+ }), /* @__PURE__ */ jsx(Button, {
189
+ variant: "primary",
190
+ type: "submit",
191
+ disabled: busy || !ready,
192
+ children: busy ? "Importing…" : source === "openclaw" ? "Import from OpenClaw" : source === "zip" ? "Upload and import" : "Import"
193
+ })] })
194
+ ]
195
+ })
196
+ });
197
+ }
198
+ //#endregion
199
+ export { FindingsNotice as n, ImportSkillsDialog as r, FindingLines as t };