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.
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
- package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
- package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
- package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
- package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
- package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
- package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
- package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
- package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
- package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
- package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
- package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
- package/dist/web/client/assets/access-34_ShgHU.js +1 -0
- package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
- package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
- package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
- package/dist/web/client/assets/api-CoLs57oO.js +1 -0
- package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
- package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
- package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
- package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
- package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
- package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
- package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
- package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
- package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
- package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
- package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
- package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
- package/dist/web/client/assets/login-076Bc601.js +1 -0
- package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
- package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
- package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
- package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
- package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
- package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
- package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
- package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
- package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
- package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
- package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
- package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
- package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
- package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
- package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
- package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
- package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
- package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
- package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
- package/dist/web/server/assets/{AddProviderDialog-Tn4AskPm.js → AddProviderDialog-Di5crZUB.js} +105 -4
- package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
- package/dist/web/server/assets/{ConfigPage-DqDUujmt.js → ConfigPage-oXM3wyOU.js} +2 -2
- package/dist/web/server/assets/{ConnectionsView-DAG-zNBz.js → ConnectionsView-DZrLoNoW.js} +3 -3
- package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
- package/dist/web/server/assets/{ModelMenu-DUY9aHkE.js → ModelMenu-BAZeARx6.js} +3 -3
- package/dist/web/server/assets/{Rail-BIC_4ptO.js → Rail-7JU6ly2O.js} +14 -104
- package/dist/web/server/assets/{SectionTabs-BGsrf-UQ.js → SectionTabs-CWQ5orUW.js} +9 -2
- package/dist/web/server/assets/{SpawnDialog-D_SMPCG_.js → SpawnDialog-CYkwzETs.js} +49 -57
- package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
- package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
- package/dist/web/server/assets/{TeamThread-DuLlGDcw.js → TeamThread-SyQpUvz5.js} +1 -1
- package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
- package/dist/web/server/assets/{_id-DJnYgisy.js → _id-BGTgqsWm.js} +8 -4
- package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
- package/dist/web/server/assets/{_id-yN0z7VqE.js → _id-DPGzfmjG.js} +255 -203
- package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
- package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
- package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
- package/dist/web/server/assets/{access-GMGed5O8.js → access-BJe-NduL.js} +2 -2
- package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
- package/dist/web/server/assets/{access-C_pupPks.js → access-WWspT0v4.js} +2 -1
- package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
- package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
- package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
- package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
- package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
- package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
- package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
- package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
- package/dist/web/server/assets/{attention-DS3O9UmJ.js → attention-DefKwvgm.js} +2 -2
- package/dist/web/server/assets/attention-johfkM0_.js +203 -0
- package/dist/web/server/assets/{config-Q7livfa3.js → config-Clz57LuN.js} +33 -82
- package/dist/web/server/assets/{config-DjTGA4iZ.js → config-DYAaaE9Z.js} +2 -2
- package/dist/web/server/assets/{createSsrRpc-GCCF14VW.js → createSsrRpc-BijMHgqE.js} +1 -45
- package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
- package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
- package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
- package/dist/web/server/assets/{mcp-ZARSOxZW.js → mcp-DB38leWS.js} +2 -2
- package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
- package/dist/web/server/assets/{router-Dh2-IvLL.js → router-C97bwlXi.js} +35 -30
- package/dist/web/server/assets/{routes-C9NawqcV.js → routes-C4aGqXfr.js} +52 -8
- package/dist/web/server/assets/{routes-CDskMy5C.js → routes-DuOShl4q.js} +1 -1
- package/dist/web/server/assets/{routes-BJIJWCIE.js → routes-IHMVKpDK.js} +2 -2
- package/dist/web/server/assets/{skills-StN15QhC.js → skills-B7sg0QKS.js} +2 -2
- package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
- package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
- package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
- package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
- package/dist/web/server/assets/{system-DtswhLW6.js → system-D3th6n2E.js} +4 -2
- package/dist/web/server/assets/{system-Dl-1RhoP.js → system-DaP0ol67.js} +2 -2
- package/dist/web/server/assets/{teams-CbIPKf99.js → teams-4cEZ4_rw.js} +4 -2
- package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
- package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
- package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
- package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
- package/dist/web/server/assets/{teams-5PMGvHuM.js → teams-CuKE5iAK.js} +2 -2
- package/dist/web/server/assets/{telegram-Cv0D4gyz.js → telegram-BnQADwnj.js} +2 -2
- package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
- package/dist/web/server/assets/{tools-ioJcPzMW.js → tools-BQeWn7Tj.js} +2 -2
- package/dist/web/server/assets/{tools-OfD22R-C.js → tools-CURTfG2q.js} +56 -217
- package/dist/web/server/assets/{welcome-FFEbrNT1.js → welcome-OiZCAIHZ.js} +3 -4
- package/dist/web/server/assets/{welcome-jxmpE_Jb.js → welcome-SNsE49JO.js} +2 -2
- package/dist/web/server/server.js +20 -20
- package/package.json +1 -1
- package/dist/web/client/assets/AddProviderDialog-BiGLKnu2.js +0 -1
- package/dist/web/client/assets/ConfigPage-DvBzy2MN.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-CiZ5tk9R.js +0 -1
- package/dist/web/client/assets/ConnectionsView-Czkpm2JY.js +0 -1
- package/dist/web/client/assets/Dialog-s_kPtI-W.js +0 -1
- package/dist/web/client/assets/ModelMenu-BfUPoRjV.js +0 -1
- package/dist/web/client/assets/SectionTabs-DENNb6Nw.js +0 -1
- package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
- package/dist/web/client/assets/SkillFindings-Xng11qqx.js +0 -1
- package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
- package/dist/web/client/assets/SpawnDialog-CKWFQ6jk.js +0 -1
- package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
- package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
- package/dist/web/client/assets/TeamThread-2rm1JGSk.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-nx6dv2Yw.js +0 -1
- package/dist/web/client/assets/_id-B72mIpcE.js +0 -1
- package/dist/web/client/assets/_id-Bzavnza1.js +0 -1
- package/dist/web/client/assets/access-Yw9jODuk.js +0 -1
- package/dist/web/client/assets/agents-C9xoyL7o.js +0 -1
- package/dist/web/client/assets/agents-TviG16wx.js +0 -1
- package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
- package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
- package/dist/web/client/assets/attention-DmURtlJm.js +0 -1
- package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
- package/dist/web/client/assets/chevron-right-CUZiA2aG.js +0 -1
- package/dist/web/client/assets/config-UZz_mjO5.js +0 -1
- package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
- package/dist/web/client/assets/dist-BWppw70N.js +0 -41
- package/dist/web/client/assets/dist-D2dwY7MR.js +0 -1
- package/dist/web/client/assets/index-Df1oUtAP.js +0 -14
- package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
- package/dist/web/client/assets/login-CPfdaqsV.js +0 -1
- package/dist/web/client/assets/mcp-FlYnNon0.js +0 -1
- package/dist/web/client/assets/parts-tIDBNsYA.js +0 -1
- package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
- package/dist/web/client/assets/routes-BZaWCoQj.js +0 -76
- package/dist/web/client/assets/save-f9O-CQia.js +0 -1
- package/dist/web/client/assets/skills-C7yDPC8s.js +0 -1
- package/dist/web/client/assets/style-DDuTFJUu.js +0 -7
- package/dist/web/client/assets/styles-BviXU81u.css +0 -2
- package/dist/web/client/assets/system-CL3Kz36L.js +0 -1
- package/dist/web/client/assets/teams-CQTEF5gV.js +0 -1
- package/dist/web/client/assets/teams-DQ7SqVyF.js +0 -1
- package/dist/web/client/assets/telegram-BLgxtGhZ.js +0 -1
- package/dist/web/client/assets/tools-pOQyGVYo.js +0 -1
- package/dist/web/client/assets/use-resource-C3MBZJop.js +0 -1
- package/dist/web/client/assets/welcome-Hr6JpMef.js +0 -1
- package/dist/web/client/assets/wrench-6BEIqKDn.js +0 -1
- package/dist/web/server/assets/SkillFindings-BdATze1A.js +0 -46
- package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
- package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
- package/dist/web/server/assets/TeamForm-ilBaeLI4.js +0 -96
- package/dist/web/server/assets/_id-BsZcsabI.js +0 -383
- package/dist/web/server/assets/_id-D8Kj0F30.js +0 -18
- package/dist/web/server/assets/_id-QYifTM9w.js +0 -28
- package/dist/web/server/assets/_tanstack-start-manifest_v-D6zrzUC7.js +0 -223
- package/dist/web/server/assets/access-DKOpcHIJ.js +0 -232
- package/dist/web/server/assets/agents-B6OR3x99.js +0 -327
- package/dist/web/server/assets/agents-B7642eRO.js +0 -130
- package/dist/web/server/assets/agents-BJ-_oC2e.js +0 -14
- package/dist/web/server/assets/agents-CjV0w-Zy.js +0 -12
- package/dist/web/server/assets/agents-Dy_Q-9lG.js +0 -27
- package/dist/web/server/assets/attention-CLP4HYBz.js +0 -216
- package/dist/web/server/assets/mcp-BI-FD-JI.js +0 -250
- package/dist/web/server/assets/parts-B31PJkhi.js +0 -190
- package/dist/web/server/assets/skills-BqLq3ZXq.js +0 -275
- package/dist/web/server/assets/system-BtRA2HUs.js +0 -138
- package/dist/web/server/assets/teams-COaU0wN9.js +0 -108
- package/dist/web/server/assets/teams-Ca8W4mvl.js +0 -88
- package/dist/web/server/assets/telegram-Yx8nm6Ei.js +0 -984
- /package/dist/web/server/assets/{telegram-CGol0CKX2.js → telegram-CGol0CKX.js} +0 -0
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-C_uf36nf.js";
|
|
2
|
-
import { d as providerStatus, i as factsLine, l as modelName, u as priceLine } from "./model-facts-mrfrWQne.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { AlertTriangle, Search } from "lucide-react";
|
|
5
|
-
//#region src/components/setup/parts.tsx
|
|
6
|
-
/** A provider's initial on a tile: no logos, they are other companies' marks. */
|
|
7
|
-
function ProviderAvatar({ name, tone = "neutral", className }) {
|
|
8
|
-
return /* @__PURE__ */ jsx("span", {
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
className: cn("flex size-9 shrink-0 items-center justify-center rounded-xl text-[0.95rem] font-bold", tone === "success" && "bg-success/10 text-success", tone === "warning" && "bg-warning/10 text-warning", tone === "accent" && "bg-accent text-accent-foreground", tone === "neutral" && "bg-muted text-muted-foreground", className),
|
|
11
|
-
children: name.replace(/[^\p{L}\p{N}]/gu, "").slice(0, 1) || "?"
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
var CHIP = {
|
|
15
|
-
success: "bg-success/10 text-success",
|
|
16
|
-
warning: "bg-warning/10 text-warning",
|
|
17
|
-
neutral: "bg-muted text-muted-foreground"
|
|
18
|
-
};
|
|
19
|
-
function Chip({ tone, children }) {
|
|
20
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
21
|
-
className: cn("inline-flex min-h-7 items-center gap-1.5 rounded-full px-3 text-xs font-semibold", CHIP[tone]),
|
|
22
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
23
|
-
"aria-hidden": "true",
|
|
24
|
-
className: "size-1.5 shrink-0 rounded-full bg-current"
|
|
25
|
-
}), children]
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/** What a provider is doing for Agents, as a chip. */
|
|
29
|
-
function StateChip({ provider, now }) {
|
|
30
|
-
const status = providerStatus(provider, now);
|
|
31
|
-
return /* @__PURE__ */ jsx(Chip, {
|
|
32
|
-
tone: status.tone,
|
|
33
|
-
children: status.label
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/** A failed test: what happened, what to do, and the provider's own words one click away. */
|
|
37
|
-
function FailureBox({ failure, children }) {
|
|
38
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
39
|
-
role: "alert",
|
|
40
|
-
className: "rounded-2xl border border-warning/35 bg-warning/10 p-4 text-sm",
|
|
41
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
42
|
-
className: "flex items-start gap-3",
|
|
43
|
-
children: [/* @__PURE__ */ jsx(AlertTriangle, {
|
|
44
|
-
className: "mt-0.5 size-5 shrink-0 text-warning",
|
|
45
|
-
"aria-hidden": "true"
|
|
46
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
47
|
-
className: "min-w-0 flex-1",
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ jsx("div", {
|
|
50
|
-
className: "font-semibold text-foreground",
|
|
51
|
-
children: failure.title
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ jsx("div", {
|
|
54
|
-
className: "mt-0.5 text-muted-foreground",
|
|
55
|
-
children: failure.hint
|
|
56
|
-
}),
|
|
57
|
-
failure.detail && /* @__PURE__ */ jsxs("details", {
|
|
58
|
-
className: "mt-2 text-xs text-muted-foreground",
|
|
59
|
-
children: [/* @__PURE__ */ jsx("summary", {
|
|
60
|
-
className: "cursor-pointer font-semibold",
|
|
61
|
-
children: "Details"
|
|
62
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
63
|
-
className: "mt-1 break-words font-mono",
|
|
64
|
-
children: failure.detail
|
|
65
|
-
})]
|
|
66
|
-
})
|
|
67
|
-
]
|
|
68
|
-
})]
|
|
69
|
-
}), children && /* @__PURE__ */ jsx("div", {
|
|
70
|
-
className: "mt-3 flex flex-wrap justify-end gap-2",
|
|
71
|
-
children
|
|
72
|
-
})]
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
/** A search box: the magnifier and the input are one field, with one focus ring. */
|
|
76
|
-
function SearchField({ label, placeholder, value, onChange, className }) {
|
|
77
|
-
return /* @__PURE__ */ jsxs("label", {
|
|
78
|
-
className: cn("m-0 flex min-w-0 items-center gap-2 rounded-xl border border-border bg-muted/40 px-3 transition-shadow focus-within:border-primary focus-within:bg-card focus-within:shadow-[0_0_0_3px_var(--color-sapphire-glow)]", className),
|
|
79
|
-
children: [/* @__PURE__ */ jsx(Search, {
|
|
80
|
-
className: "size-4 shrink-0 text-muted-foreground",
|
|
81
|
-
"aria-hidden": "true"
|
|
82
|
-
}), /* @__PURE__ */ jsx("input", {
|
|
83
|
-
type: "search",
|
|
84
|
-
"aria-label": label,
|
|
85
|
-
placeholder,
|
|
86
|
-
value,
|
|
87
|
-
onChange: (event) => onChange(event.target.value),
|
|
88
|
-
className: "min-h-10 border-0 bg-transparent px-0 shadow-none focus:bg-transparent focus:shadow-none",
|
|
89
|
-
style: { outline: "none" }
|
|
90
|
-
})]
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* One model in a list to tick: its name and id, what it can do, what it costs. On a narrow screen
|
|
95
|
-
* the facts sit under the name instead of beside it.
|
|
96
|
-
*/
|
|
97
|
-
function ModelRow({ model, connect, checked, disabled, onToggle, className }) {
|
|
98
|
-
return /* @__PURE__ */ jsxs("label", {
|
|
99
|
-
className: cn("m-0 grid cursor-pointer grid-cols-[auto_minmax(0,1fr)] items-center gap-x-3 gap-y-0.5 border-b border-border py-2.5 sm:grid-cols-[auto_minmax(0,1.5fr)_minmax(0,1.2fr)_9.5rem]", className),
|
|
100
|
-
children: [
|
|
101
|
-
/* @__PURE__ */ jsx("input", {
|
|
102
|
-
type: "checkbox",
|
|
103
|
-
checked,
|
|
104
|
-
disabled,
|
|
105
|
-
onChange: onToggle,
|
|
106
|
-
className: "m-0 size-[18px]"
|
|
107
|
-
}),
|
|
108
|
-
/* @__PURE__ */ jsxs("span", {
|
|
109
|
-
className: "min-w-0",
|
|
110
|
-
children: [
|
|
111
|
-
/* @__PURE__ */ jsx("span", {
|
|
112
|
-
className: "text-sm font-semibold text-foreground",
|
|
113
|
-
children: modelName(model)
|
|
114
|
-
}),
|
|
115
|
-
model.suggested && /* @__PURE__ */ jsx("span", {
|
|
116
|
-
className: "ml-2 rounded-full bg-accent px-2 py-0.5 text-[0.7rem] font-semibold text-accent-foreground",
|
|
117
|
-
children: "Suggested"
|
|
118
|
-
}),
|
|
119
|
-
model.name && /* @__PURE__ */ jsx("span", {
|
|
120
|
-
className: "block break-all font-mono text-[0.72rem] text-muted-foreground",
|
|
121
|
-
children: model.id
|
|
122
|
-
})
|
|
123
|
-
]
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ jsx("span", {
|
|
126
|
-
className: "col-start-2 text-xs text-muted-foreground sm:col-start-auto",
|
|
127
|
-
children: factsLine(model, connect)
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ jsx("span", {
|
|
130
|
-
className: "col-start-2 text-xs text-foreground sm:col-start-auto sm:text-right",
|
|
131
|
-
children: priceLine(model, connect)
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
/** A yes/no setting. */
|
|
137
|
-
function Switch({ checked, label, disabled = false, onChange }) {
|
|
138
|
-
return /* @__PURE__ */ jsx("button", {
|
|
139
|
-
type: "button",
|
|
140
|
-
role: "switch",
|
|
141
|
-
"aria-checked": checked,
|
|
142
|
-
"aria-label": label,
|
|
143
|
-
disabled,
|
|
144
|
-
onClick: () => onChange(!checked),
|
|
145
|
-
className: cn("relative h-7 w-[46px] shrink-0 rounded-full transition-colors disabled:opacity-50", checked ? "bg-primary" : "bg-fawn"),
|
|
146
|
-
children: /* @__PURE__ */ jsx("span", { className: cn("absolute top-[3px] size-[22px] rounded-full bg-white shadow transition-[left]", checked ? "left-[21px]" : "left-[3px]") })
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
/** Something is being waited for. */
|
|
150
|
-
function Waiting({ children }) {
|
|
151
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
152
|
-
role: "status",
|
|
153
|
-
className: "flex items-center gap-3 text-sm font-semibold text-foreground",
|
|
154
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
155
|
-
"aria-hidden": "true",
|
|
156
|
-
className: "flex size-5 shrink-0 items-center justify-center",
|
|
157
|
-
children: /* @__PURE__ */ jsx("span", { className: "size-2.5 animate-pulse rounded-full bg-primary" })
|
|
158
|
-
}), /* @__PURE__ */ jsx("span", { children })]
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
/** A card of the Models page: an icon, what it holds, an action, then its rows. */
|
|
162
|
-
function SetupCard({ icon, title, description, action, labelledBy, children }) {
|
|
163
|
-
return /* @__PURE__ */ jsxs("section", {
|
|
164
|
-
"aria-labelledby": labelledBy,
|
|
165
|
-
className: "min-w-0 overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
166
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
167
|
-
className: "flex flex-wrap items-center gap-x-4 gap-y-3 px-4 py-4 sm:px-5",
|
|
168
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
169
|
-
className: "flex min-w-0 flex-1 basis-64 items-center gap-4",
|
|
170
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
171
|
-
"aria-hidden": "true",
|
|
172
|
-
className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent text-accent-foreground",
|
|
173
|
-
children: icon
|
|
174
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
175
|
-
className: "min-w-0",
|
|
176
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
177
|
-
id: labelledBy,
|
|
178
|
-
className: "m-0 font-body text-[1.05rem] font-semibold text-foreground",
|
|
179
|
-
children: title
|
|
180
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
181
|
-
className: "text-sm text-muted-foreground",
|
|
182
|
-
children: description
|
|
183
|
-
})]
|
|
184
|
-
})]
|
|
185
|
-
}), action]
|
|
186
|
-
}), children]
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
//#endregion
|
|
190
|
-
export { SearchField as a, Switch as c, ProviderAvatar as i, Waiting as l, FailureBox as n, SetupCard as o, ModelRow as r, StateChip as s, Chip as t };
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { C as api, S as ApiError, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.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-GCCF14VW.js";
|
|
4
|
-
import { t as Route } from "./skills-StN15QhC.js";
|
|
5
|
-
import { n as FindingSummary, t as FindingList } from "./SkillFindings-BdATze1A.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-Dl-1RhoP.js";
|
|
2
|
-
import { t as ConfigPage } from "./ConfigPage-DqDUujmt.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 };
|