bazilion 0.52.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 (191) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
  4. package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
  5. package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
  6. package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
  7. package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
  8. package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
  9. package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
  10. package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
  11. package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
  12. package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
  13. package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
  14. package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
  15. package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
  16. package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
  17. package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
  18. package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
  19. package/dist/web/client/assets/access-34_ShgHU.js +1 -0
  20. package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
  21. package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
  22. package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
  23. package/dist/web/client/assets/api-CoLs57oO.js +1 -0
  24. package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
  25. package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
  26. package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
  27. package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
  28. package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
  29. package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
  30. package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
  31. package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
  32. package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
  33. package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
  34. package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
  35. package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
  36. package/dist/web/client/assets/login-076Bc601.js +1 -0
  37. package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
  38. package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
  39. package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
  40. package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
  41. package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
  42. package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
  43. package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
  44. package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
  45. package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
  46. package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
  47. package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
  48. package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
  49. package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
  50. package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
  51. package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
  52. package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
  53. package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
  54. package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
  55. package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
  56. package/dist/web/server/assets/{AddProviderDialog-Tn4AskPm.js → AddProviderDialog-Di5crZUB.js} +105 -4
  57. package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
  58. package/dist/web/server/assets/{ConfigPage-DqDUujmt.js → ConfigPage-oXM3wyOU.js} +2 -2
  59. package/dist/web/server/assets/{ConnectionsView-DAG-zNBz.js → ConnectionsView-DZrLoNoW.js} +3 -3
  60. package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
  61. package/dist/web/server/assets/{ModelMenu-DUY9aHkE.js → ModelMenu-BAZeARx6.js} +3 -3
  62. package/dist/web/server/assets/{Rail-BIC_4ptO.js → Rail-7JU6ly2O.js} +14 -104
  63. package/dist/web/server/assets/{SectionTabs-BGsrf-UQ.js → SectionTabs-CWQ5orUW.js} +9 -2
  64. package/dist/web/server/assets/{SpawnDialog-D_SMPCG_.js → SpawnDialog-CYkwzETs.js} +49 -57
  65. package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
  66. package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
  67. package/dist/web/server/assets/{TeamThread-DuLlGDcw.js → TeamThread-SyQpUvz5.js} +1 -1
  68. package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
  69. package/dist/web/server/assets/{_id-DJnYgisy.js → _id-BGTgqsWm.js} +8 -4
  70. package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
  71. package/dist/web/server/assets/{_id-yN0z7VqE.js → _id-DPGzfmjG.js} +255 -203
  72. package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
  73. package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
  74. package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
  75. package/dist/web/server/assets/{access-GMGed5O8.js → access-BJe-NduL.js} +2 -2
  76. package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
  77. package/dist/web/server/assets/{access-C_pupPks.js → access-WWspT0v4.js} +2 -1
  78. package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
  79. package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
  80. package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
  81. package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
  82. package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
  83. package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
  84. package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
  85. package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
  86. package/dist/web/server/assets/{attention-DS3O9UmJ.js → attention-DefKwvgm.js} +2 -2
  87. package/dist/web/server/assets/attention-johfkM0_.js +203 -0
  88. package/dist/web/server/assets/{config-Q7livfa3.js → config-Clz57LuN.js} +33 -82
  89. package/dist/web/server/assets/{config-DjTGA4iZ.js → config-DYAaaE9Z.js} +2 -2
  90. package/dist/web/server/assets/{createSsrRpc-GCCF14VW.js → createSsrRpc-BijMHgqE.js} +1 -45
  91. package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
  92. package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
  93. package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
  94. package/dist/web/server/assets/{mcp-ZARSOxZW.js → mcp-DB38leWS.js} +2 -2
  95. package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
  96. package/dist/web/server/assets/{router-Dh2-IvLL.js → router-C97bwlXi.js} +35 -30
  97. package/dist/web/server/assets/{routes-C9NawqcV.js → routes-C4aGqXfr.js} +52 -8
  98. package/dist/web/server/assets/{routes-CDskMy5C.js → routes-DuOShl4q.js} +1 -1
  99. package/dist/web/server/assets/{routes-BJIJWCIE.js → routes-IHMVKpDK.js} +2 -2
  100. package/dist/web/server/assets/{skills-StN15QhC.js → skills-B7sg0QKS.js} +2 -2
  101. package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
  102. package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
  103. package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
  104. package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
  105. package/dist/web/server/assets/{system-DtswhLW6.js → system-D3th6n2E.js} +4 -2
  106. package/dist/web/server/assets/{system-Dl-1RhoP.js → system-DaP0ol67.js} +2 -2
  107. package/dist/web/server/assets/{teams-CbIPKf99.js → teams-4cEZ4_rw.js} +4 -2
  108. package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
  109. package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
  110. package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
  111. package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
  112. package/dist/web/server/assets/{teams-5PMGvHuM.js → teams-CuKE5iAK.js} +2 -2
  113. package/dist/web/server/assets/{telegram-Cv0D4gyz.js → telegram-BnQADwnj.js} +2 -2
  114. package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
  115. package/dist/web/server/assets/{tools-ioJcPzMW.js → tools-BQeWn7Tj.js} +2 -2
  116. package/dist/web/server/assets/{tools-OfD22R-C.js → tools-CURTfG2q.js} +56 -217
  117. package/dist/web/server/assets/{welcome-FFEbrNT1.js → welcome-OiZCAIHZ.js} +3 -4
  118. package/dist/web/server/assets/{welcome-jxmpE_Jb.js → welcome-SNsE49JO.js} +2 -2
  119. package/dist/web/server/server.js +20 -20
  120. package/package.json +1 -1
  121. package/dist/web/client/assets/AddProviderDialog-BiGLKnu2.js +0 -1
  122. package/dist/web/client/assets/ConfigPage-DvBzy2MN.js +0 -1
  123. package/dist/web/client/assets/ConfirmDialog-CiZ5tk9R.js +0 -1
  124. package/dist/web/client/assets/ConnectionsView-Czkpm2JY.js +0 -1
  125. package/dist/web/client/assets/Dialog-s_kPtI-W.js +0 -1
  126. package/dist/web/client/assets/ModelMenu-BfUPoRjV.js +0 -1
  127. package/dist/web/client/assets/SectionTabs-DENNb6Nw.js +0 -1
  128. package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
  129. package/dist/web/client/assets/SkillFindings-Xng11qqx.js +0 -1
  130. package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
  131. package/dist/web/client/assets/SpawnDialog-CKWFQ6jk.js +0 -1
  132. package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
  133. package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
  134. package/dist/web/client/assets/TeamThread-2rm1JGSk.js +0 -1
  135. package/dist/web/client/assets/UnsavedChangesGuard-nx6dv2Yw.js +0 -1
  136. package/dist/web/client/assets/_id-B72mIpcE.js +0 -1
  137. package/dist/web/client/assets/_id-Bzavnza1.js +0 -1
  138. package/dist/web/client/assets/access-Yw9jODuk.js +0 -1
  139. package/dist/web/client/assets/agents-C9xoyL7o.js +0 -1
  140. package/dist/web/client/assets/agents-TviG16wx.js +0 -1
  141. package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
  142. package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
  143. package/dist/web/client/assets/attention-DmURtlJm.js +0 -1
  144. package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
  145. package/dist/web/client/assets/chevron-right-CUZiA2aG.js +0 -1
  146. package/dist/web/client/assets/config-UZz_mjO5.js +0 -1
  147. package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
  148. package/dist/web/client/assets/dist-BWppw70N.js +0 -41
  149. package/dist/web/client/assets/dist-D2dwY7MR.js +0 -1
  150. package/dist/web/client/assets/index-Df1oUtAP.js +0 -14
  151. package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
  152. package/dist/web/client/assets/login-CPfdaqsV.js +0 -1
  153. package/dist/web/client/assets/mcp-FlYnNon0.js +0 -1
  154. package/dist/web/client/assets/parts-tIDBNsYA.js +0 -1
  155. package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
  156. package/dist/web/client/assets/routes-BZaWCoQj.js +0 -76
  157. package/dist/web/client/assets/save-f9O-CQia.js +0 -1
  158. package/dist/web/client/assets/skills-C7yDPC8s.js +0 -1
  159. package/dist/web/client/assets/style-DDuTFJUu.js +0 -7
  160. package/dist/web/client/assets/styles-BviXU81u.css +0 -2
  161. package/dist/web/client/assets/system-CL3Kz36L.js +0 -1
  162. package/dist/web/client/assets/teams-CQTEF5gV.js +0 -1
  163. package/dist/web/client/assets/teams-DQ7SqVyF.js +0 -1
  164. package/dist/web/client/assets/telegram-BLgxtGhZ.js +0 -1
  165. package/dist/web/client/assets/tools-pOQyGVYo.js +0 -1
  166. package/dist/web/client/assets/use-resource-C3MBZJop.js +0 -1
  167. package/dist/web/client/assets/welcome-Hr6JpMef.js +0 -1
  168. package/dist/web/client/assets/wrench-6BEIqKDn.js +0 -1
  169. package/dist/web/server/assets/SkillFindings-BdATze1A.js +0 -46
  170. package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
  171. package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
  172. package/dist/web/server/assets/TeamForm-ilBaeLI4.js +0 -96
  173. package/dist/web/server/assets/_id-BsZcsabI.js +0 -383
  174. package/dist/web/server/assets/_id-D8Kj0F30.js +0 -18
  175. package/dist/web/server/assets/_id-QYifTM9w.js +0 -28
  176. package/dist/web/server/assets/_tanstack-start-manifest_v-D6zrzUC7.js +0 -223
  177. package/dist/web/server/assets/access-DKOpcHIJ.js +0 -232
  178. package/dist/web/server/assets/agents-B6OR3x99.js +0 -327
  179. package/dist/web/server/assets/agents-B7642eRO.js +0 -130
  180. package/dist/web/server/assets/agents-BJ-_oC2e.js +0 -14
  181. package/dist/web/server/assets/agents-CjV0w-Zy.js +0 -12
  182. package/dist/web/server/assets/agents-Dy_Q-9lG.js +0 -27
  183. package/dist/web/server/assets/attention-CLP4HYBz.js +0 -216
  184. package/dist/web/server/assets/mcp-BI-FD-JI.js +0 -250
  185. package/dist/web/server/assets/parts-B31PJkhi.js +0 -190
  186. package/dist/web/server/assets/skills-BqLq3ZXq.js +0 -275
  187. package/dist/web/server/assets/system-BtRA2HUs.js +0 -138
  188. package/dist/web/server/assets/teams-COaU0wN9.js +0 -108
  189. package/dist/web/server/assets/teams-Ca8W4mvl.js +0 -88
  190. package/dist/web/server/assets/telegram-Yx8nm6Ei.js +0 -984
  191. /package/dist/web/server/assets/{telegram-CGol0CKX2.js → telegram-CGol0CKX.js} +0 -0
@@ -0,0 +1,353 @@
1
+ import { C as api, S as ApiError, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
2
+ import { t as cn } from "./utils-C_uf36nf.js";
3
+ import { n as DialogActions, t as Dialog } from "./Dialog-aup_yJv5.js";
4
+ import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
5
+ import { t as ago } from "./model-facts-mrfrWQne.js";
6
+ import { _ as RowMenu, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, v as SearchField, y as SetupCard } from "./parts-mabERIJZ.js";
7
+ import { l as TextField, n as ChoiceCards, t as CheckboxRow } from "./form-BRQAsKKq.js";
8
+ import { _ as skillState, b as skillsNeedingALook, g as skillSourceLabel, h as skillChosenBy, i as allSkillsLine, l as listed, s as count, u as matchesSkill, v as skillUseSentence } from "./manage-Ppyi3Y5y.js";
9
+ import { t as Route } from "./skills-B7sg0QKS.js";
10
+ import { t as ManagePage } from "./ManagePage-0LKHEcT_.js";
11
+ import { useState } from "react";
12
+ import { useRouter } from "@tanstack/react-router";
13
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
+ import { Sparkles } from "lucide-react";
15
+ //#region src/components/manage/SkillsParts.tsx
16
+ /** A scan's findings, one to a line: what it found, and where. */
17
+ function FindingLines({ findings }) {
18
+ return /* @__PURE__ */ jsx("ul", {
19
+ className: "m-0 mt-1 grid list-none gap-1 p-0",
20
+ children: findings.map((finding, index) => /* @__PURE__ */ jsxs("li", {
21
+ className: "min-w-0",
22
+ children: [
23
+ /* @__PURE__ */ jsxs("span", {
24
+ className: finding.severity === "danger" ? "font-semibold" : "",
25
+ children: [finding.severity === "danger" ? "Risky" : "Check", ":"]
26
+ }),
27
+ " ",
28
+ finding.message,
29
+ " ",
30
+ /* @__PURE__ */ jsxs("span", {
31
+ className: "text-muted-foreground",
32
+ children: [
33
+ "(",
34
+ finding.code,
35
+ finding.line ? `, line ${finding.line}` : "",
36
+ ")"
37
+ ]
38
+ })
39
+ ]
40
+ }, index))
41
+ });
42
+ }
43
+ /** What the scan found in one skill, or in what was imported. */
44
+ function FindingsNotice({ findings, title }) {
45
+ const danger = findings.some((finding) => finding.severity === "danger");
46
+ return /* @__PURE__ */ jsx(Notice, {
47
+ tone: danger ? "warning" : "neutral",
48
+ title: title ?? (danger ? "Read it before an Agent uses it: its text goes into the system prompt." : "Worth a look."),
49
+ children: /* @__PURE__ */ jsx(FindingLines, { findings })
50
+ });
51
+ }
52
+ var SOURCES = [
53
+ {
54
+ value: "openclaw",
55
+ label: "OpenClaw",
56
+ hint: "Every skill in ~/.openclaw/skills on the computer Bazilion runs on."
57
+ },
58
+ {
59
+ value: "path",
60
+ label: "A folder",
61
+ hint: "One skill folder with a SKILL.md, or a folder of them, on that computer."
62
+ },
63
+ {
64
+ value: "zip",
65
+ label: "A ZIP file",
66
+ hint: "Uploaded from here: one folder per skill at its top level."
67
+ }
68
+ ];
69
+ /** Import skills from OpenClaw, a folder or a ZIP file; the scan's findings are shown here. */
70
+ function ImportSkillsDialog({ onClose, onImported }) {
71
+ const [source, setSource] = useState("openclaw");
72
+ const [path, setPath] = useState("");
73
+ const [zip, setZip] = useState(null);
74
+ const [dragOver, setDragOver] = useState(false);
75
+ const [force, setForce] = useState(false);
76
+ const [busy, setBusy] = useState(false);
77
+ const [error, setError] = useState(null);
78
+ const [findings, setFindings] = useState([]);
79
+ const pathProblem = source === "path" && path.trim() && !path.trim().startsWith("/") ? "The full path of the folder, starting with /." : void 0;
80
+ const ready = source === "openclaw" || source === "path" && path.trim() !== "" && !pathProblem || source === "zip" && zip !== null;
81
+ function chooseZip(file) {
82
+ if (!file) return;
83
+ setError(null);
84
+ if (!/\.zip$/i.test(file.name)) {
85
+ setError("Only ZIP archives can be imported.");
86
+ return;
87
+ }
88
+ setZip(file);
89
+ }
90
+ async function submit(event) {
91
+ event.preventDefault();
92
+ if (!ready || busy) return;
93
+ setBusy(true);
94
+ setError(null);
95
+ setFindings([]);
96
+ let body;
97
+ if (source === "zip" && zip) {
98
+ const form = new FormData();
99
+ form.set("file", zip);
100
+ if (force) form.set("force", "true");
101
+ body = form;
102
+ } else body = {
103
+ source: source === "openclaw" ? "openclaw" : path.trim(),
104
+ force
105
+ };
106
+ try {
107
+ await onImported(await api("/api/skills/import", { body }));
108
+ } catch (cause) {
109
+ if (cause instanceof ApiError) setFindings(cause.body?.findings ?? []);
110
+ setError(errorMessage(cause));
111
+ setBusy(false);
112
+ }
113
+ }
114
+ return /* @__PURE__ */ jsx(Dialog, {
115
+ title: "Import skills",
116
+ 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.",
117
+ busy,
118
+ onClose,
119
+ className: "max-w-2xl",
120
+ children: /* @__PURE__ */ jsxs("form", {
121
+ onSubmit: (event) => void submit(event),
122
+ className: "grid gap-4",
123
+ children: [
124
+ /* @__PURE__ */ jsx(ChoiceCards, {
125
+ legend: "From",
126
+ name: "skills-source",
127
+ value: source,
128
+ options: SOURCES,
129
+ columns: 3,
130
+ disabled: busy,
131
+ onChange: (next) => {
132
+ setSource(next);
133
+ setError(null);
134
+ setFindings([]);
135
+ }
136
+ }),
137
+ source === "path" && /* @__PURE__ */ jsx(TextField, {
138
+ label: "Folder",
139
+ value: path,
140
+ disabled: busy,
141
+ placeholder: "/home/you/my-skills",
142
+ mono: true,
143
+ className: "max-w-none",
144
+ problem: pathProblem,
145
+ onChange: setPath
146
+ }),
147
+ source === "zip" && /* @__PURE__ */ jsxs("label", {
148
+ onDragOver: (event) => {
149
+ event.preventDefault();
150
+ setDragOver(true);
151
+ },
152
+ onDragLeave: () => setDragOver(false),
153
+ onDrop: (event) => {
154
+ event.preventDefault();
155
+ setDragOver(false);
156
+ chooseZip(event.dataTransfer.files[0]);
157
+ },
158
+ 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"),
159
+ children: [/* @__PURE__ */ jsx("input", {
160
+ type: "file",
161
+ accept: ".zip,application/zip",
162
+ disabled: busy,
163
+ onChange: (event) => chooseZip(event.target.files?.[0]),
164
+ className: "absolute h-px w-px overflow-hidden opacity-0"
165
+ }), zip ? /* @__PURE__ */ jsx("span", {
166
+ className: "block break-all font-mono text-foreground",
167
+ children: zip.name
168
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
169
+ className: "block font-semibold text-foreground",
170
+ children: "Choose a ZIP file"
171
+ }), /* @__PURE__ */ jsx("span", {
172
+ className: "text-xs",
173
+ children: "or drop it here"
174
+ })] })]
175
+ }),
176
+ /* @__PURE__ */ jsx(CheckboxRow, {
177
+ checked: force,
178
+ disabled: busy,
179
+ label: "Replace skills that are already installed, and import despite scan findings",
180
+ onChange: setForce
181
+ }),
182
+ findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
183
+ findings,
184
+ title: `The scan found ${count(findings.length, "thing")} to check. Read them; to import anyway, tick the box above.`
185
+ }),
186
+ error && findings.length === 0 && /* @__PURE__ */ jsx(Notice, {
187
+ tone: "warning",
188
+ role: "alert",
189
+ title: "Nothing was imported.",
190
+ children: error
191
+ }),
192
+ /* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
193
+ variant: "ghost",
194
+ disabled: busy,
195
+ onClick: onClose,
196
+ children: "Cancel"
197
+ }), /* @__PURE__ */ jsx(Button, {
198
+ variant: "primary",
199
+ type: "submit",
200
+ disabled: busy || !ready,
201
+ children: busy ? "Importing…" : source === "openclaw" ? "Import from OpenClaw" : source === "zip" ? "Upload and import" : "Import"
202
+ })] })
203
+ ]
204
+ })
205
+ });
206
+ }
207
+ //#endregion
208
+ //#region src/routes/skills/index.tsx?tsr-split=component
209
+ function SkillsPage() {
210
+ const { skills, templates, now } = Route.useLoaderData();
211
+ const router = useRouter();
212
+ const [importing, setImporting] = useState(false);
213
+ const [imported, setImported] = useState(null);
214
+ const [removing, setRemoving] = useState(null);
215
+ const [query, setQuery] = useState("");
216
+ const shown = skills.filter((skill) => matchesSkill(skill, query));
217
+ const look = skillsNeedingALook(skills);
218
+ const importedFindings = imported ? Object.entries(imported.findings ?? {}).flatMap(([name, items]) => items.map((item) => ({
219
+ ...item,
220
+ message: `${name}: ${item.message}`
221
+ }))) : [];
222
+ return /* @__PURE__ */ jsxs(ManagePage, {
223
+ title: "Skills",
224
+ description: "Prompt-only skills: a skill's SKILL.md is added to the system prompt of every Agent it is attached to. Templates attach skills at spawn; each Agent can change its own.",
225
+ actions: /* @__PURE__ */ jsx(Button, {
226
+ variant: "primary",
227
+ onClick: () => setImporting(true),
228
+ children: "Import skills"
229
+ }),
230
+ children: [
231
+ look.length > 0 && /* @__PURE__ */ jsxs(Banner, {
232
+ tone: "warning",
233
+ lead: `${count(look.length, "skill")} ${look.length === 1 ? "needs" : "need"} a look.`,
234
+ children: [look.map((skill) => skill.parseError ? `${skill.name} cannot be read` : `${skill.name} has a risky finding`).join("; "), "."]
235
+ }),
236
+ /* @__PURE__ */ jsxs(SetupCard, {
237
+ labelledBy: "manage-skills",
238
+ icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
239
+ title: "Installed skills",
240
+ description: `Each was scanned when it was imported. ${allSkillsLine(templates) ?? ""}`,
241
+ action: /* @__PURE__ */ jsx(Chip, {
242
+ tone: "neutral",
243
+ children: count(skills.length, "skill")
244
+ }),
245
+ children: [
246
+ imported && /* @__PURE__ */ jsxs(CardBody, {
247
+ className: "py-3",
248
+ children: [/* @__PURE__ */ jsx(Notice, {
249
+ tone: "success",
250
+ title: imported.imported.length > 0 ? `Imported ${count(imported.imported.length, "skill")}: ${imported.imported.join(", ")}.` : "Nothing new was imported.",
251
+ children: imported.skipped.length > 0 && `Already installed, so left as they were: ${listed(imported.skipped.map((entry) => entry.name))}. To replace them, import again with the box ticked.`
252
+ }), importedFindings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
253
+ findings: importedFindings,
254
+ title: "Imported despite these findings:"
255
+ })]
256
+ }),
257
+ skills.length > 0 && /* @__PURE__ */ jsx(CardToolbar, { children: /* @__PURE__ */ jsx(SearchField, {
258
+ label: "Find a skill",
259
+ placeholder: "Find by name or description",
260
+ value: query,
261
+ onChange: setQuery,
262
+ className: "min-w-0 flex-1 basis-60"
263
+ }) }),
264
+ skills.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
265
+ icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
266
+ title: "No skills installed",
267
+ action: /* @__PURE__ */ jsx(Button, {
268
+ variant: "primary",
269
+ onClick: () => setImporting(true),
270
+ children: "Import skills"
271
+ }),
272
+ children: "Import them from OpenClaw, a folder or a ZIP file."
273
+ }) : shown.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
274
+ title: `No skill matches “${query.trim()}”`,
275
+ children: "Try another word from its name or description."
276
+ }) : /* @__PURE__ */ jsx(CardList, { children: shown.map((skill) => {
277
+ const state = skillState(skill);
278
+ const findings = skill.scanFindings ?? [];
279
+ return /* @__PURE__ */ jsx(ListRow, {
280
+ inline: true,
281
+ title: /* @__PURE__ */ jsx("span", {
282
+ className: "font-mono text-[0.92em]",
283
+ children: skill.name
284
+ }),
285
+ chip: state && /* @__PURE__ */ jsx(Chip, {
286
+ tone: state.tone,
287
+ children: state.label
288
+ }),
289
+ meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
290
+ skill.description && /* @__PURE__ */ jsx("span", {
291
+ className: "basis-full text-foreground",
292
+ children: skill.description
293
+ }),
294
+ skillChosenBy(skill.name, templates) && /* @__PURE__ */ jsx("span", { children: skillChosenBy(skill.name, templates) }),
295
+ /* @__PURE__ */ jsxs("span", {
296
+ title: skill.source ?? void 0,
297
+ children: [skillSourceLabel(skill.source), skill.importedAt !== null && `, ${ago(skill.importedAt, now)}`]
298
+ })
299
+ ] }),
300
+ actions: /* @__PURE__ */ jsx(RowMenu, {
301
+ label: `More for ${skill.name}`,
302
+ items: [{
303
+ label: "Remove…",
304
+ danger: true,
305
+ onSelect: () => setRemoving(skill)
306
+ }]
307
+ }),
308
+ children: skill.parseError ? /* @__PURE__ */ jsx(Notice, {
309
+ tone: "warning",
310
+ title: "Its SKILL.md cannot be read, so no Agent gets it.",
311
+ children: /* @__PURE__ */ jsx("span", {
312
+ className: "break-words font-mono text-xs",
313
+ children: skill.parseError
314
+ })
315
+ }) : findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, { findings })
316
+ }, skill.name);
317
+ }) })
318
+ ]
319
+ }),
320
+ importing && /* @__PURE__ */ jsx(ImportSkillsDialog, {
321
+ onClose: () => setImporting(false),
322
+ onImported: async (result) => {
323
+ setImporting(false);
324
+ setImported(result);
325
+ await router.invalidate({ sync: true });
326
+ }
327
+ }),
328
+ /* @__PURE__ */ jsx(ConfirmDialog, {
329
+ open: removing !== null,
330
+ onOpenChange: (open) => {
331
+ if (!open) setRemoving(null);
332
+ },
333
+ title: `Remove the ${removing?.name ?? ""} skill?`,
334
+ description: /* @__PURE__ */ jsxs("p", {
335
+ className: "m-0",
336
+ children: [
337
+ "This deletes its SKILL.md and every script and file in its folder. No Agent or template can use it until it is imported again.",
338
+ " ",
339
+ removing && skillUseSentence(removing.name, templates)
340
+ ]
341
+ }),
342
+ confirmLabel: "Remove skill",
343
+ onConfirm: async () => {
344
+ if (!removing) return;
345
+ await api(`/api/skills/${encodeURIComponent(removing.name)}`, { method: "DELETE" });
346
+ await router.invalidate({ sync: true });
347
+ }
348
+ })
349
+ ]
350
+ });
351
+ }
352
+ //#endregion
353
+ export { SkillsPage as component };
@@ -127,7 +127,7 @@ function TeamPolicyMatrix({ document, selectedId, onSelect, onToggle }) {
127
127
  children: "Communication matrix"
128
128
  }), /* @__PURE__ */ jsx("p", {
129
129
  className: "mt-1 text-xs text-mocha-light",
130
- children: "Rows send; columns receive. Every cell edits the same allow edges as Flow."
130
+ children: "Rows send; columns receive. Every cell edits the same connections as Flow."
131
131
  })]
132
132
  }), /* @__PURE__ */ jsxs("table", {
133
133
  className: "m-0 min-w-[620px] table-fixed overflow-visible rounded-md text-xs",
@@ -0,0 +1,145 @@
1
+ import { d as Chip, f as Fact, g as Notice, p as Facts, r as CardBody, s as CardRow, y as SetupCard } from "./parts-mabERIJZ.js";
2
+ import { t as Route } from "./system-DaP0ol67.js";
3
+ import { t as ConfigPage } from "./ConfigPage-oXM3wyOU.js";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { Archive, Download, HeartPulse, SquareTerminal } from "lucide-react";
6
+ //#region src/components/setup/SystemCards.tsx
7
+ var TONE = {
8
+ on: "success",
9
+ warning: "warning",
10
+ off: "neutral"
11
+ };
12
+ /** Whether the home, the database and what they hold are in order. */
13
+ function HealthCard({ ok }) {
14
+ return /* @__PURE__ */ jsx(SetupCard, {
15
+ labelledBy: "system-health",
16
+ icon: /* @__PURE__ */ jsx(HeartPulse, { className: "size-5" }),
17
+ title: "Health",
18
+ description: "The Bazilion home, its database and what they hold.",
19
+ action: /* @__PURE__ */ jsx(Chip, {
20
+ tone: ok ? "success" : "warning",
21
+ children: ok ? "Healthy" : "Issues found"
22
+ }),
23
+ children: /* @__PURE__ */ jsx(CardBody, { children: ok ? /* @__PURE__ */ jsxs("p", {
24
+ className: "m-0 text-sm text-muted-foreground",
25
+ children: [
26
+ "Run ",
27
+ /* @__PURE__ */ jsx("code", { children: "bazilion doctor" }),
28
+ " in a terminal for the full report."
29
+ ]
30
+ }) : /* @__PURE__ */ jsxs(Notice, {
31
+ tone: "warning",
32
+ title: "Something in the installation is not as it should be.",
33
+ children: [
34
+ "Run ",
35
+ /* @__PURE__ */ jsx("code", { children: "bazilion doctor" }),
36
+ " in a terminal: its report names what."
37
+ ]
38
+ }) })
39
+ });
40
+ }
41
+ /**
42
+ * How Agents run commands. The sandbox and the approval apply the same way to every turn: chat,
43
+ * Telegram, schedules and inbox.
44
+ */
45
+ function RuntimeCard({ shell, state }) {
46
+ return /* @__PURE__ */ jsxs(SetupCard, {
47
+ labelledBy: "system-runtime",
48
+ icon: /* @__PURE__ */ jsx(SquareTerminal, { className: "size-5" }),
49
+ title: "Agent runtime",
50
+ description: "How Agents run commands in every kind of turn: chat, Telegram, schedules and inbox. Unattended turns deny dangerous commands by themselves.",
51
+ action: state && /* @__PURE__ */ jsx(Chip, {
52
+ tone: TONE[state.tone],
53
+ children: state.label
54
+ }),
55
+ children: [shell.ok ? /* @__PURE__ */ jsxs(Facts, { children: [
56
+ /* @__PURE__ */ jsx(Fact, {
57
+ label: "Sandbox",
58
+ children: shell.sandboxMode === "docker" ? `Docker (${shell.sandboxImage}) — bash in a network-disabled container` : "Off — bash and file tools run on the host, unisolated"
59
+ }),
60
+ shell.docker && /* @__PURE__ */ jsx(Fact, {
61
+ label: "Docker",
62
+ tone: shell.docker.ready ? "success" : "warning",
63
+ children: shell.docker.ready ? "Ready" : `Unavailable — ${shell.docker.reason}`
64
+ }),
65
+ shell.docker?.remediation && /* @__PURE__ */ jsx(Fact, {
66
+ label: "Remediation",
67
+ children: shell.docker.remediation
68
+ }),
69
+ /* @__PURE__ */ jsx(Fact, {
70
+ label: "Dangerous-command approval",
71
+ children: shell.approvalMode === "dangerous" ? "On — chat can allow once; unattended turns auto-deny" : "Off"
72
+ })
73
+ ] }) : /* @__PURE__ */ jsx(CardBody, { children: /* @__PURE__ */ jsx(Notice, {
74
+ tone: "warning",
75
+ role: "alert",
76
+ title: "The command settings cannot be used.",
77
+ children: shell.error
78
+ }) }), /* @__PURE__ */ jsx(CardRow, {
79
+ className: "bg-muted/50 py-3 text-[0.82rem] text-muted-foreground",
80
+ children: /* @__PURE__ */ jsxs("span", { children: [
81
+ "These are set on the Commands card under",
82
+ " ",
83
+ /* @__PURE__ */ jsx("a", {
84
+ href: "/config/tools#tool-commands",
85
+ className: "font-semibold",
86
+ children: "Tools"
87
+ }),
88
+ "."
89
+ ] })
90
+ })]
91
+ });
92
+ }
93
+ /** The same archive as `bazilion backup create`, saved by the browser straight from the daemon. */
94
+ function BackupCard() {
95
+ return /* @__PURE__ */ jsx(SetupCard, {
96
+ labelledBy: "system-backup",
97
+ icon: /* @__PURE__ */ jsx(Archive, { className: "size-5" }),
98
+ title: "Backup",
99
+ description: "One archive of the Bazilion home: Agents, conversations, settings and credentials.",
100
+ action: /* @__PURE__ */ jsxs("a", {
101
+ href: "/api/backup",
102
+ download: true,
103
+ className: "btn-primary no-underline",
104
+ children: [/* @__PURE__ */ jsx(Download, {
105
+ className: "size-4",
106
+ "aria-hidden": "true"
107
+ }), "Download backup"]
108
+ }),
109
+ children: /* @__PURE__ */ jsxs(CardBody, { children: [/* @__PURE__ */ jsxs(Notice, {
110
+ tone: "warning",
111
+ children: [
112
+ "The archive is not encrypted and holds every stored credential. For an encrypted copy run",
113
+ " ",
114
+ /* @__PURE__ */ jsx("code", { children: "bazilion backup create --recipient <age1…>" }),
115
+ "."
116
+ ]
117
+ }), /* @__PURE__ */ jsxs("p", {
118
+ className: "m-0 text-sm text-muted-foreground",
119
+ children: [
120
+ "It is a tar.gz. Restore it with ",
121
+ /* @__PURE__ */ jsx("code", { children: "bazilion backup restore" }),
122
+ " while the daemon is stopped."
123
+ ]
124
+ })] })
125
+ });
126
+ }
127
+ //#endregion
128
+ //#region src/routes/config/system.tsx?tsr-split=component
129
+ function SystemPage() {
130
+ const { ok, runtime, commands } = Route.useLoaderData();
131
+ return /* @__PURE__ */ jsxs(ConfigPage, {
132
+ title: "System",
133
+ description: "The installation itself: its health, how Agents run commands, and a backup of everything.",
134
+ children: [
135
+ /* @__PURE__ */ jsx(HealthCard, { ok }),
136
+ /* @__PURE__ */ jsx(RuntimeCard, {
137
+ shell: runtime,
138
+ state: commands
139
+ }),
140
+ /* @__PURE__ */ jsx(BackupCard, {})
141
+ ]
142
+ });
143
+ }
144
+ //#endregion
145
+ export { SystemPage as component };
@@ -8,10 +8,12 @@ var fetchSystem_createServerFn_handler = createServerRpc({
8
8
  filename: "src/routes/config/system.tsx"
9
9
  }, (opts) => fetchSystem.__executeServer(opts));
10
10
  var fetchSystem = createServerFn({ method: "GET" }).handler(fetchSystem_createServerFn_handler, async () => {
11
- const health = await daemonClient().get("/api/health/details");
11
+ const daemon = daemonClient();
12
+ const [health, { tools }] = await Promise.all([daemon.get("/api/health/details"), daemon.get("/api/config/tools")]);
12
13
  return {
13
14
  ok: health.ok,
14
- runtime: health.shellSecurity
15
+ runtime: health.shellSecurity,
16
+ commands: tools.find((tool) => tool.id === "commands")?.state ?? null
15
17
  };
16
18
  });
17
19
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-GCCF14VW.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-BijMHgqE.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/system.tsx
5
- var $$splitComponentImporter = () => import("./system-BtRA2HUs.js");
5
+ var $$splitComponentImporter = () => import("./system-CNQpt3JB.js");
6
6
  var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
7
7
  var Route = createFileRoute("/config/system")({
8
8
  loader: () => fetchSystem(),
@@ -1,12 +1,14 @@
1
1
  import { n as createServerFn } from "../server.js";
2
- import { t as createSsrRpc } from "./createSsrRpc-GCCF14VW.js";
2
+ import { t as createSsrRpc } from "./createSsrRpc-BijMHgqE.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/templates/teams/index.tsx
5
- var $$splitComponentImporter = () => import("./teams-COaU0wN9.js");
5
+ var $$splitComponentImporter = () => import("./teams-C3xwTz8-.js");
6
6
  var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad"));
7
7
  var Route = createFileRoute("/templates/teams/")({
8
+ validateSearch: (search) => ({ new: search.new === 1 || search.new === "1" ? 1 : void 0 }),
8
9
  loader: () => fetchTemplates(),
9
10
  component: lazyRouteComponent($$splitComponentImporter, "component")
10
11
  });
12
+ /** Create an empty roster, then open it to add Agents. */
11
13
  //#endregion
12
14
  export { Route as t };
@@ -10,11 +10,9 @@ var fetchTeams_createServerFn_handler = createServerRpc({
10
10
  var fetchTeams = createServerFn({ method: "GET" }).handler(fetchTeams_createServerFn_handler, async () => {
11
11
  const client = daemonClient();
12
12
  const [teams, agents] = await Promise.all([client.get("/api/teams"), client.get("/api/agents?includeArchived=true")]);
13
- const memberCounts = {};
14
- for (const agent of agents) memberCounts[agent.teamId] = (memberCounts[agent.teamId] ?? 0) + 1;
15
13
  return {
16
14
  teams,
17
- memberCounts
15
+ agents
18
16
  };
19
17
  });
20
18
  //#endregion