bazilion 0.51.0 → 0.53.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 (205) hide show
  1. package/dist/cli.js +74 -28
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +547 -187
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
  6. package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
  7. package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
  8. package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
  9. package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
  10. package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
  11. package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
  12. package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
  13. package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
  14. package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
  15. package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
  16. package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
  17. package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
  18. package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
  19. package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
  20. package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
  21. package/dist/web/client/assets/access-34_ShgHU.js +1 -0
  22. package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
  23. package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
  24. package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
  25. package/dist/web/client/assets/api-CoLs57oO.js +1 -0
  26. package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
  27. package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
  28. package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
  29. package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
  30. package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
  31. package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
  32. package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
  33. package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
  34. package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
  35. package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
  36. package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
  37. package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
  38. package/dist/web/client/assets/login-076Bc601.js +1 -0
  39. package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
  40. package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
  41. package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
  42. package/dist/web/client/assets/model-facts-DoB6QD5y.js +1 -0
  43. package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
  44. package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
  45. package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
  46. package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
  47. package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
  48. package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
  49. package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
  50. package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
  51. package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
  52. package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
  53. package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
  54. package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
  55. package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
  56. package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
  57. package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
  58. package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
  59. package/dist/web/server/assets/{AddProviderDialog-CR6TRYdZ.js → AddProviderDialog-Di5crZUB.js} +9 -205
  60. package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
  61. package/dist/web/server/assets/{ConfigPage-CIh3ohea.js → ConfigPage-oXM3wyOU.js} +2 -2
  62. package/dist/web/server/assets/{ConfirmDialog-B79K2KEW.js → ConfirmDialog-DfaJ--A6.js} +2 -2
  63. package/dist/web/server/assets/{ConnectionsView-BIMYdp9C.js → ConnectionsView-DZrLoNoW.js} +7 -7
  64. package/dist/web/server/assets/{Dialog-CVqpXxuN.js → Dialog-aup_yJv5.js} +1 -1
  65. package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
  66. package/dist/web/server/assets/ModelMenu-BAZeARx6.js +138 -0
  67. package/dist/web/server/assets/{Rail-Cg-efcpA.js → Rail-7JU6ly2O.js} +17 -107
  68. package/dist/web/server/assets/{SectionTabs-DrcgVeZd.js → SectionTabs-CWQ5orUW.js} +12 -5
  69. package/dist/web/server/assets/SpawnDialog-CYkwzETs.js +124 -0
  70. package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
  71. package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
  72. package/dist/web/server/assets/{TeamThread-5CjVPcDr.js → TeamThread-SyQpUvz5.js} +3 -3
  73. package/dist/web/server/assets/{UnsavedChangesGuard-CyF2Z9p1.js → UnsavedChangesGuard-DrOvPV14.js} +1 -1
  74. package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
  75. package/dist/web/server/assets/{_id-8bsYEcGg.js → _id-BGTgqsWm.js} +8 -4
  76. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  77. package/dist/web/server/assets/{_id-0fEWiVZX.js → _id-DPGzfmjG.js} +258 -206
  78. package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
  79. package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
  80. package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
  81. package/dist/web/server/assets/{tokens-C-oDTqnp.js → access-BJe-NduL.js} +5 -5
  82. package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
  83. package/dist/web/server/assets/{tokens-CEdl8puR.js → access-WWspT0v4.js} +5 -4
  84. package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
  85. package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
  86. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
  87. package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
  88. package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
  89. package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
  90. package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
  91. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
  92. package/dist/web/server/assets/{attention-CHQEQiZl.js → attention-DefKwvgm.js} +2 -2
  93. package/dist/web/server/assets/attention-johfkM0_.js +203 -0
  94. package/dist/web/server/assets/{config-DOp28gcy.js → config-Clz57LuN.js} +186 -87
  95. package/dist/web/server/assets/{config-DzgkbBoD.js → config-DYAaaE9Z.js} +2 -2
  96. package/dist/web/server/assets/{createSsrRpc-CcLbajrF.js → createSsrRpc-BijMHgqE.js} +2 -46
  97. package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
  98. package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
  99. package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
  100. package/dist/web/server/assets/{mcp-D3OCoHtO.js → mcp-DB38leWS.js} +2 -2
  101. package/dist/web/server/assets/model-facts-mrfrWQne.js +136 -0
  102. package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
  103. package/dist/web/server/assets/{router-Cs2Ak4II.js → router-C97bwlXi.js} +55 -50
  104. package/dist/web/server/assets/{routes-BSNOKE-C.js → routes-C4aGqXfr.js} +65 -17
  105. package/dist/web/server/assets/{routes-CO4l-GJ0.js → routes-DuOShl4q.js} +2 -2
  106. package/dist/web/server/assets/{routes-BVwqgZGI.js → routes-IHMVKpDK.js} +3 -3
  107. package/dist/web/server/assets/{skills-CggQJk6a.js → skills-B7sg0QKS.js} +2 -2
  108. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  109. package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
  110. package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
  111. package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
  112. package/dist/web/server/assets/{system-DtswhLW62.js → system-D3th6n2E.js} +4 -2
  113. package/dist/web/server/assets/{system-DsJfpBPl.js → system-DaP0ol67.js} +2 -2
  114. package/dist/web/server/assets/{teams-B6lBhvdL.js → teams-4cEZ4_rw.js} +4 -2
  115. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  116. package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
  117. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  118. package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
  119. package/dist/web/server/assets/{teams-Bp2tERZe.js → teams-CuKE5iAK.js} +2 -2
  120. package/dist/web/server/assets/{telegram-D2RZriz_.js → telegram-BnQADwnj.js} +5 -5
  121. package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
  122. package/dist/web/server/assets/{telegram-Gy7_9yih.js → telegram-CGol0CKX.js} +3 -3
  123. package/dist/web/server/assets/tools-BQeWn7Tj.js +12 -0
  124. package/dist/web/server/assets/tools-C-wwWjLI.js +12 -0
  125. package/dist/web/server/assets/tools-CURTfG2q.js +341 -0
  126. package/dist/web/server/assets/{use-resource-ChQozXVI.js → use-resource-DVzK0toP.js} +1 -1
  127. package/dist/web/server/assets/utils-C_uf36nf.js +8 -0
  128. package/dist/web/server/assets/{welcome-BLw1G6SS.js → welcome-OiZCAIHZ.js} +5 -5
  129. package/dist/web/server/assets/{welcome-ByAkvHSP.js → welcome-SNsE49JO.js} +2 -2
  130. package/dist/web/server/assets/{workspace-DeEYMPDX.js → workspace-DaitCM0t.js} +1 -8
  131. package/dist/web/server/server.js +30 -30
  132. package/dist/worker.js +202 -120
  133. package/dist/worker.js.map +1 -1
  134. package/package.json +1 -1
  135. package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +0 -1
  136. package/dist/web/client/assets/ConfigPage-pupvtSCX.js +0 -1
  137. package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +0 -1
  138. package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +0 -1
  139. package/dist/web/client/assets/Dialog-bg86_x4v.js +0 -1
  140. package/dist/web/client/assets/FieldRow-B8eIni5r.js +0 -1
  141. package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +0 -1
  142. package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +0 -1
  143. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  144. package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +0 -1
  145. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  146. package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +0 -1
  147. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  148. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  149. package/dist/web/client/assets/TeamThread-DFvbakHo.js +0 -1
  150. package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +0 -1
  151. package/dist/web/client/assets/_id-BjNtLwak.js +0 -1
  152. package/dist/web/client/assets/_id-BklaQf3z.js +0 -1
  153. package/dist/web/client/assets/agents-D9cUF2d9.js +0 -1
  154. package/dist/web/client/assets/agents-wuBlzx4e.js +0 -1
  155. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  156. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  157. package/dist/web/client/assets/attention-8ZkSLl2e.js +0 -1
  158. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  159. package/dist/web/client/assets/config-Con_BbSh.js +0 -1
  160. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  161. package/dist/web/client/assets/index-Br9qkGM-.js +0 -54
  162. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  163. package/dist/web/client/assets/login-llnOKSJc.js +0 -1
  164. package/dist/web/client/assets/mcp-zIUguMSI.js +0 -1
  165. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  166. package/dist/web/client/assets/routes-BY5uqJ2n.js +0 -76
  167. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  168. package/dist/web/client/assets/services-esLrcTwe.js +0 -1
  169. package/dist/web/client/assets/skills-DzYXksM0.js +0 -1
  170. package/dist/web/client/assets/style-Cdzqt_TJ.js +0 -7
  171. package/dist/web/client/assets/styles-BRSS6yrm.css +0 -2
  172. package/dist/web/client/assets/system-CsI66nyZ.js +0 -1
  173. package/dist/web/client/assets/teams-CHE_zpxS.js +0 -1
  174. package/dist/web/client/assets/teams-dxG9OESG.js +0 -1
  175. package/dist/web/client/assets/telegram-C3dGndJV.js +0 -1
  176. package/dist/web/client/assets/tokens-CNNH-Wr9.js +0 -1
  177. package/dist/web/client/assets/use-resource-BjnxgGvh.js +0 -1
  178. package/dist/web/client/assets/welcome-C8EOtc8P.js +0 -1
  179. package/dist/web/server/assets/FieldRow-CHVhX2rS.js +0 -173
  180. package/dist/web/server/assets/ModelSelect-DrZrdndo.js +0 -43
  181. package/dist/web/server/assets/SkillFindings-DSDiL6hn.js +0 -46
  182. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  183. package/dist/web/server/assets/SpawnDialog-BUUlLxE9.js +0 -129
  184. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  185. package/dist/web/server/assets/TeamForm-CvQAs2FA.js +0 -96
  186. package/dist/web/server/assets/_id-BvAaRSUW.js +0 -18
  187. package/dist/web/server/assets/_id-Dg6M_qfr.js +0 -383
  188. package/dist/web/server/assets/_id-Dji7xr9C.js +0 -28
  189. package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +0 -214
  190. package/dist/web/server/assets/agents-BDA5yYZ2.js +0 -130
  191. package/dist/web/server/assets/agents-BTDxmp-F.js +0 -12
  192. package/dist/web/server/assets/agents-DM7guWF2.js +0 -14
  193. package/dist/web/server/assets/agents-DktqUffG.js +0 -327
  194. package/dist/web/server/assets/agents-xgZ9rsac.js +0 -27
  195. package/dist/web/server/assets/attention-De3-ehuf.js +0 -216
  196. package/dist/web/server/assets/mcp-CO_tycXU.js +0 -250
  197. package/dist/web/server/assets/services-DZLxUSG8.js +0 -13
  198. package/dist/web/server/assets/services-DsHRLL8q.js +0 -12
  199. package/dist/web/server/assets/services-DsvpaF3L.js +0 -74
  200. package/dist/web/server/assets/skills-DKYV7PTk.js +0 -275
  201. package/dist/web/server/assets/system-CZ2qzBz3.js +0 -138
  202. package/dist/web/server/assets/teams-B6PzNcoy.js +0 -88
  203. package/dist/web/server/assets/teams-C-8iz-uV.js +0 -108
  204. package/dist/web/server/assets/telegram-CXrP3hMp.js +0 -984
  205. package/dist/web/server/assets/tokens-DSLwQ1Pw.js +0 -232
@@ -1,275 +0,0 @@
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
- import { t as Tabs } from "./Tabs-BhF41MfQ.js";
7
- import { useState } from "react";
8
- import { useRouter } from "@tanstack/react-router";
9
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
- //#region src/routes/skills/index.tsx?tsr-split=component
11
- function SkillsPage() {
12
- const skills = Route.useLoaderData();
13
- const router = useRouter();
14
- const [removeTarget, setRemoveTarget] = useState(null);
15
- return /* @__PURE__ */ jsxs(PageShell, {
16
- size: "wide",
17
- children: [
18
- /* @__PURE__ */ jsx(PageHeader, {
19
- title: "Skills",
20
- description: "Install and review the prompt-only skills available to your agents."
21
- }),
22
- /* @__PURE__ */ jsx(ImportCard, { onImported: () => router.invalidate() }),
23
- /* @__PURE__ */ jsx(SectionCard, {
24
- title: "Installed skills",
25
- description: `${skills.length} skill${skills.length === 1 ? "" : "s"} available`,
26
- children: skills.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
27
- title: "No skills installed",
28
- description: "Import from OpenClaw, a server directory, or a ZIP archive to get started."
29
- }) : /* @__PURE__ */ jsx(ItemList, { children: skills.map((skill) => /* @__PURE__ */ jsx(ItemRow, {
30
- title: /* @__PURE__ */ jsx("code", { children: skill.name }),
31
- meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
32
- /* @__PURE__ */ jsx(FindingSummary, { findings: skill.scanFindings ?? [] }),
33
- /* @__PURE__ */ jsx("span", {
34
- className: "font-mono",
35
- children: skill.source ?? "unknown source"
36
- }),
37
- skill.importedAt && /* @__PURE__ */ jsxs("span", { children: ["imported ", new Date(skill.importedAt).toLocaleDateString()] })
38
- ] }),
39
- actions: /* @__PURE__ */ jsx(Button, {
40
- variant: "danger",
41
- onClick: () => setRemoveTarget(skill),
42
- children: "Remove"
43
- }),
44
- children: skill.parseError ? /* @__PURE__ */ jsxs("p", {
45
- className: "mb-0 mt-1 flex items-start gap-2 text-sm",
46
- children: [/* @__PURE__ */ jsx(StatusBadge, {
47
- variant: "danger",
48
- children: "Parse error"
49
- }), /* @__PURE__ */ jsx("span", {
50
- className: "text-destructive",
51
- children: skill.parseError
52
- })]
53
- }) : skill.description && /* @__PURE__ */ jsx("p", {
54
- className: "mb-0 mt-1 text-sm",
55
- children: skill.description
56
- })
57
- }, skill.name)) })
58
- }),
59
- /* @__PURE__ */ jsx(ConfirmDialog, {
60
- open: removeTarget !== null,
61
- title: `Remove skill ${removeTarget?.name ?? ""}?`,
62
- description: /* @__PURE__ */ jsxs("p", { children: [
63
- "This permanently deletes the installed ",
64
- /* @__PURE__ */ jsx("code", {
65
- className: "font-mono",
66
- children: "SKILL.md"
67
- }),
68
- " and every script and asset in the ",
69
- /* @__PURE__ */ jsx("code", {
70
- className: "font-mono",
71
- children: removeTarget?.name
72
- }),
73
- " ",
74
- "directory. No Agent or Agent template can use the skill until it is imported again."
75
- ] }),
76
- confirmLabel: "Delete installed skill",
77
- onConfirm: async () => {
78
- if (!removeTarget) return;
79
- await api(`/api/skills/${encodeURIComponent(removeTarget.name)}`, { method: "DELETE" });
80
- await router.invalidate();
81
- },
82
- onOpenChange: (open) => {
83
- if (!open) setRemoveTarget(null);
84
- }
85
- })
86
- ]
87
- });
88
- }
89
- function ImportCard({ onImported }) {
90
- const [source, setSource] = useState("openclaw");
91
- const [path, setPath] = useState("");
92
- const [force, setForce] = useState(false);
93
- const [zipFile, setZipFile] = useState(null);
94
- const [dragOver, setDragOver] = useState(false);
95
- const [error, setError] = useState(null);
96
- const [findings, setFindings] = useState([]);
97
- const [submitting, setSubmitting] = useState(false);
98
- async function submit(event) {
99
- event.preventDefault();
100
- setError(null);
101
- setFindings([]);
102
- let body;
103
- if (source === "zip") {
104
- if (!zipFile) {
105
- setError("Choose a ZIP file first.");
106
- return;
107
- }
108
- const form = new FormData();
109
- form.set("file", zipFile);
110
- if (force) form.set("force", "true");
111
- body = form;
112
- } else body = {
113
- source: source === "openclaw" ? "openclaw" : path.trim(),
114
- force
115
- };
116
- setSubmitting(true);
117
- try {
118
- const imported = await api("/api/skills/import", { body });
119
- setFindings(Object.entries(imported.findings ?? {}).flatMap(([name, items]) => items.map((item) => ({
120
- ...item,
121
- message: `${name}: ${item.message}`
122
- }))));
123
- setPath("");
124
- setZipFile(null);
125
- onImported();
126
- } catch (cause) {
127
- if (cause instanceof ApiError) setFindings(cause.body.findings ?? []);
128
- setError(errorMessage(cause));
129
- } finally {
130
- setSubmitting(false);
131
- }
132
- }
133
- function chooseZip(file) {
134
- if (!file) return;
135
- if (!/\.zip$/i.test(file.name)) {
136
- setError("Only ZIP archives are supported.");
137
- return;
138
- }
139
- setZipFile(file);
140
- }
141
- return /* @__PURE__ */ jsxs(SectionCard, {
142
- title: "Import skills",
143
- description: /* @__PURE__ */ jsxs(Fragment$1, { children: [
144
- "Each skill's ",
145
- /* @__PURE__ */ jsx("code", { children: "SKILL.md" }),
146
- " body is added to the system prompt of every agent it is attached to."
147
- ] }),
148
- children: [
149
- /* @__PURE__ */ jsx(Tabs, {
150
- items: [
151
- {
152
- id: "openclaw",
153
- label: "OpenClaw"
154
- },
155
- {
156
- id: "path",
157
- label: "Server directory"
158
- },
159
- {
160
- id: "zip",
161
- label: "Upload ZIP"
162
- }
163
- ],
164
- active: source,
165
- onChange: (next) => {
166
- setSource(next);
167
- setError(null);
168
- }
169
- }),
170
- error && /* @__PURE__ */ jsx("p", {
171
- role: "alert",
172
- className: "mb-4 rounded-lg border border-destructive/20 bg-destructive/10 px-4 py-3 text-sm text-destructive",
173
- children: error
174
- }),
175
- findings.length > 0 && /* @__PURE__ */ jsxs("div", {
176
- className: "mb-4 rounded-lg border border-border bg-muted/30 p-4 text-sm",
177
- children: [/* @__PURE__ */ jsx(StatusBadge, {
178
- variant: findings.some((finding) => finding.severity === "danger") ? "danger" : "warning",
179
- className: "mb-2",
180
- children: "Scan findings"
181
- }), /* @__PURE__ */ jsx(FindingList, { findings })]
182
- }),
183
- /* @__PURE__ */ jsxs("form", {
184
- className: "space-y-4",
185
- onSubmit: (event) => void submit(event),
186
- children: [
187
- source === "openclaw" && /* @__PURE__ */ jsxs("p", {
188
- className: "text-sm leading-6 text-muted-foreground",
189
- children: [
190
- "Imports every skill in ",
191
- /* @__PURE__ */ jsx("code", { children: "~/.openclaw/skills" }),
192
- " on the server."
193
- ]
194
- }),
195
- source === "path" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", {
196
- className: "text-sm leading-6 text-muted-foreground",
197
- children: [
198
- "An absolute path on the server: one skill folder (with a ",
199
- /* @__PURE__ */ jsx("code", { children: "SKILL.md" }),
200
- ") or a folder of skill folders."
201
- ]
202
- }), /* @__PURE__ */ jsxs("label", {
203
- className: "max-w-2xl",
204
- children: ["Server path", /* @__PURE__ */ jsx("input", {
205
- value: path,
206
- onChange: (event) => setPath(event.target.value),
207
- placeholder: "/home/you/my-skills",
208
- required: true
209
- })]
210
- })] }),
211
- source === "zip" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", {
212
- className: "text-sm leading-6 text-muted-foreground",
213
- children: [
214
- "A ",
215
- /* @__PURE__ */ jsx("code", { children: ".zip" }),
216
- " archive with one folder per skill at its top level; the folder name becomes the skill name."
217
- ]
218
- }), /* @__PURE__ */ jsxs("label", {
219
- onDragOver: (event) => {
220
- event.preventDefault();
221
- setDragOver(true);
222
- },
223
- onDragLeave: () => setDragOver(false),
224
- onDrop: (event) => {
225
- event.preventDefault();
226
- setDragOver(false);
227
- chooseZip(event.dataTransfer.files[0]);
228
- },
229
- className: `relative block cursor-pointer rounded-xl border-2 border-dashed p-8 text-center transition-colors ${dragOver ? "border-primary bg-accent text-accent-foreground" : zipFile ? "border-solid border-primary/40 bg-card text-foreground" : "border-border bg-muted/30 text-muted-foreground hover:border-primary hover:bg-accent hover:text-accent-foreground"}`,
230
- children: [/* @__PURE__ */ jsx("input", {
231
- type: "file",
232
- accept: ".zip,application/zip",
233
- onChange: (event) => chooseZip(event.target.files?.[0]),
234
- className: "absolute h-px w-px overflow-hidden opacity-0"
235
- }), zipFile ? /* @__PURE__ */ jsx("span", {
236
- className: "block break-all font-mono text-sm text-accent-foreground",
237
- children: zipFile.name
238
- }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
239
- className: "block text-sm font-medium text-foreground",
240
- children: "Click to choose a ZIP file"
241
- }), /* @__PURE__ */ jsx("span", {
242
- className: "text-xs",
243
- children: "or drag and drop it here"
244
- })] })]
245
- })] }),
246
- /* @__PURE__ */ jsxs("div", {
247
- className: "flex flex-wrap items-center gap-3",
248
- children: [/* @__PURE__ */ jsx(Button, {
249
- variant: "primary",
250
- type: "submit",
251
- disabled: submitting,
252
- children: submitting ? "Importing…" : source === "zip" ? "Upload and import" : source === "openclaw" ? "Import from OpenClaw" : "Import"
253
- }), /* @__PURE__ */ jsxs("label", {
254
- className: "m-0 inline-flex cursor-pointer items-center gap-1 text-sm text-foreground",
255
- children: [
256
- /* @__PURE__ */ jsx("input", {
257
- type: "checkbox",
258
- checked: force,
259
- onChange: (event) => setForce(event.target.checked)
260
- }),
261
- /* @__PURE__ */ jsx("span", { children: "Overwrite existing" }),
262
- /* @__PURE__ */ jsx("span", {
263
- className: "text-muted-foreground",
264
- children: "and accept scan findings"
265
- })
266
- ]
267
- })]
268
- })
269
- ]
270
- })
271
- ]
272
- });
273
- }
274
- //#endregion
275
- export { SkillsPage as component };
@@ -1,138 +0,0 @@
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 };
@@ -1,88 +0,0 @@
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
- import { useState } from "react";
7
- import { Link, useRouter } from "@tanstack/react-router";
8
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
- //#region src/routes/teams/index.tsx?tsr-split=component
10
- function TeamsPage() {
11
- const { teams, memberCounts } = Route.useLoaderData();
12
- const router = useRouter();
13
- const [removeTarget, setRemoveTarget] = useState(null);
14
- return /* @__PURE__ */ jsxs(PageShell, {
15
- size: "wide",
16
- children: [
17
- /* @__PURE__ */ jsx(PageHeader, {
18
- eyebrow: "Workspace",
19
- title: "Teams",
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
- }),
22
- /* @__PURE__ */ jsx(SectionCard, {
23
- title: "Register a team",
24
- children: /* @__PURE__ */ jsx(TeamForm, { onCreated: () => router.invalidate() })
25
- }),
26
- /* @__PURE__ */ jsx(SectionCard, {
27
- title: "Registered teams",
28
- description: "Open a Team for its members, USER.md, shared memory and connections.",
29
- children: teams.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
30
- title: "No teams registered",
31
- description: "Register a Team above to create a workspace for your agents."
32
- }) : /* @__PURE__ */ jsx(ItemList, { children: teams.map((team) => {
33
- const count = memberCounts[team.id] ?? 0;
34
- return /* @__PURE__ */ jsx(ItemRow, {
35
- title: /* @__PURE__ */ jsx(Link, {
36
- to: "/",
37
- search: {
38
- team: team.id,
39
- panel: "team"
40
- },
41
- children: team.name
42
- }),
43
- meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
44
- /* @__PURE__ */ jsx("code", { children: team.id }),
45
- /* @__PURE__ */ jsxs(StatusBadge, {
46
- variant: count > 0 ? "success" : "neutral",
47
- children: [
48
- count,
49
- " member",
50
- count === 1 ? "" : "s"
51
- ]
52
- }),
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"]
60
- })
61
- ] }),
62
- actions: count === 0 && /* @__PURE__ */ jsx(Button, {
63
- variant: "danger",
64
- onClick: () => setRemoveTarget(team),
65
- children: "Remove"
66
- })
67
- }, team.id);
68
- }) })
69
- }),
70
- /* @__PURE__ */ jsx(ConfirmDialog, {
71
- open: removeTarget !== null,
72
- onOpenChange: (open) => {
73
- if (!open) setRemoveTarget(null);
74
- },
75
- title: `Remove ${removeTarget?.name ?? "Team"}?`,
76
- description: /* @__PURE__ */ jsx("p", { children: "This removes the empty Team and its workspace slot under ~/.bazilion/teams/. When the slot links to a project directory, only the link is removed, never the directory." }),
77
- confirmLabel: "Remove Team",
78
- onConfirm: async () => {
79
- if (!removeTarget) return;
80
- await api(`/api/teams/${encodeURIComponent(removeTarget.id)}`, { method: "DELETE" });
81
- await router.invalidate();
82
- }
83
- })
84
- ]
85
- });
86
- }
87
- //#endregion
88
- export { TeamsPage as component };
@@ -1,108 +0,0 @@
1
- import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
2
- import { a as PageHeader, i as ItemRow, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
3
- import { t as Route } from "./teams-B6lBhvdL.js";
4
- import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-DrcgVeZd.js";
5
- import { useState } from "react";
6
- import { useRouter } from "@tanstack/react-router";
7
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/routes/templates/teams/index.tsx?tsr-split=component
9
- function TeamTemplatesPage() {
10
- const templates = Route.useLoaderData();
11
- const router = useRouter();
12
- return /* @__PURE__ */ jsxs(PageShell, {
13
- size: "wide",
14
- children: [
15
- /* @__PURE__ */ jsx(PageHeader, {
16
- eyebrow: "Templates",
17
- title: "Team templates",
18
- description: "Reusable rosters: one Agent per slot, plus who may message whom."
19
- }),
20
- /* @__PURE__ */ jsx(SectionTabs, {
21
- label: "Template kinds",
22
- base: "/templates",
23
- tabs: TEMPLATE_TABS
24
- }),
25
- /* @__PURE__ */ jsx(CreateTemplateForm, { onCreated: () => router.invalidate() }),
26
- /* @__PURE__ */ jsx(SectionCard, {
27
- title: "Templates",
28
- children: templates.length === 0 ? /* @__PURE__ */ jsx("p", {
29
- className: "muted",
30
- children: "No Team templates yet."
31
- }) : /* @__PURE__ */ jsx(ItemList, { children: templates.map((template) => /* @__PURE__ */ jsx(ItemRow, {
32
- title: /* @__PURE__ */ jsx("a", {
33
- href: `/templates/teams/${encodeURIComponent(template.id)}`,
34
- children: template.name
35
- }),
36
- meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
37
- /* @__PURE__ */ jsx("code", { children: template.id }),
38
- /* @__PURE__ */ jsxs("span", { children: [
39
- template.slots.length,
40
- " slot",
41
- template.slots.length === 1 ? "" : "s"
42
- ] }),
43
- /* @__PURE__ */ jsx("span", { children: template.policyMode })
44
- ] })
45
- }, template.id)) })
46
- })
47
- ]
48
- });
49
- }
50
- function CreateTemplateForm({ onCreated }) {
51
- const [id, setId] = useState("");
52
- const [name, setName] = useState("");
53
- const [error, setError] = useState(null);
54
- const [busy, setBusy] = useState(false);
55
- async function submit(event) {
56
- event.preventDefault();
57
- setBusy(true);
58
- setError(null);
59
- try {
60
- await api("/api/team-templates", { body: {
61
- id: id.trim(),
62
- name: name.trim()
63
- } });
64
- setId("");
65
- setName("");
66
- await onCreated();
67
- } catch (cause) {
68
- setError(errorMessage(cause));
69
- } finally {
70
- setBusy(false);
71
- }
72
- }
73
- return /* @__PURE__ */ jsx(SectionCard, {
74
- title: "New Team template",
75
- children: /* @__PURE__ */ jsxs("form", {
76
- onSubmit: (event) => void submit(event),
77
- children: [
78
- error && /* @__PURE__ */ jsx("p", {
79
- role: "alert",
80
- className: "err",
81
- children: error
82
- }),
83
- /* @__PURE__ */ jsxs("div", {
84
- className: "grid gap-x-3 sm:grid-cols-2",
85
- children: [/* @__PURE__ */ jsxs("label", { children: ["ID", /* @__PURE__ */ jsx("input", {
86
- required: true,
87
- value: id,
88
- onChange: (event) => setId(event.target.value),
89
- placeholder: "review-team"
90
- })] }), /* @__PURE__ */ jsxs("label", { children: ["Name", /* @__PURE__ */ jsx("input", {
91
- required: true,
92
- value: name,
93
- onChange: (event) => setName(event.target.value),
94
- placeholder: "Review team"
95
- })] })]
96
- }),
97
- /* @__PURE__ */ jsx(Button, {
98
- variant: "primary",
99
- type: "submit",
100
- disabled: busy,
101
- children: busy ? "Creating…" : "Create Team template"
102
- })
103
- ]
104
- })
105
- });
106
- }
107
- //#endregion
108
- export { TeamTemplatesPage as component };