bazilion 0.52.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +296 -232
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-CkwSq3C7.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-CEn_4qVs.js +1 -0
- package/dist/web/client/assets/Button-UiegBKOK.js +1 -0
- package/dist/web/client/assets/ConfigPage-CUbHBhzx.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-VqBOFZEp.js +1 -0
- package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +1 -0
- package/dist/web/client/assets/ManagePage-BJWZd1ts.js +1 -0
- package/dist/web/client/assets/SectionTabs-ViZKm3-B.js +1 -0
- package/dist/web/client/assets/Segmented-MYKKTuZO.js +1 -0
- package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-DG5UbJNK.js +1 -0
- package/dist/web/client/assets/TeamForm-DGlxWv4e.js +1 -0
- package/dist/web/client/assets/TeamThread-mkwODO0S.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-BmdwLH99.js +1 -0
- package/dist/web/client/assets/_id-CvcxNmBH.js +1 -0
- package/dist/web/client/assets/_id-UyBk7gRl.js +1 -0
- package/dist/web/client/assets/access-C8d8vaQ6.js +1 -0
- package/dist/web/client/assets/agent-actions-BgE9fKHH.js +1 -0
- package/dist/web/client/assets/agents-CgtzqBpD.js +1 -0
- package/dist/web/client/assets/agents-D7W4BT8r.js +1 -0
- package/dist/web/client/assets/arrow-right-D0HKRb7U.js +1 -0
- package/dist/web/client/assets/attention-D9mQWoKt.js +1 -0
- package/dist/web/client/assets/bot-Bb--PFVU.js +1 -0
- package/dist/web/client/assets/chevron-right-bs0TUSl2.js +1 -0
- package/dist/web/client/assets/config-Dw6GWf38.js +1 -0
- package/dist/web/client/assets/createLucideIcon-DkniuEtD.js +1 -0
- package/dist/web/client/assets/download-C4t9l5wR.js +1 -0
- package/dist/web/client/assets/file-text-DzbjpYrV.js +1 -0
- package/dist/web/client/assets/images-DSYgPKM7.js +1 -0
- package/dist/web/client/assets/index-YW0gXPfk.js +14 -0
- package/dist/web/client/assets/key-round-BpK4-E3T.js +1 -0
- package/dist/web/client/assets/list-checks-JNXcmws9.js +1 -0
- package/dist/web/client/assets/login-DcQJk5-U.js +1 -0
- package/dist/web/client/assets/manage-SRGSx8n2.js +1 -0
- package/dist/web/client/assets/mcp-BUWu4TvS.js +1 -0
- package/dist/web/client/assets/message-square-DM2MP9vF.js +1 -0
- package/dist/web/client/assets/network-BJ4iPjQO.js +1 -0
- package/dist/web/client/assets/parts-LZxl9Gvc.js +41 -0
- package/dist/web/client/assets/plus-CLGNN5QX.js +1 -0
- package/dist/web/client/assets/routes-BxIIyGho.js +85 -0
- package/dist/web/client/assets/skills-C7DzIwFJ.js +1 -0
- package/dist/web/client/assets/square-terminal-Dmm6cV-G.js +1 -0
- package/dist/web/client/assets/style-CA2GAk9b.js +7 -0
- package/dist/web/client/assets/styles-C3CDSGAr.css +2 -0
- package/dist/web/client/assets/system-zQ0NnQML.js +1 -0
- package/dist/web/client/assets/teams-BEIJHObN.js +1 -0
- package/dist/web/client/assets/teams-DlOc7Ods.js +1 -0
- package/dist/web/client/assets/telegram-DKHq5DpE.js +1 -0
- package/dist/web/client/assets/tools-BKIpLaiC.js +1 -0
- package/dist/web/client/assets/use-resource-CQaIZbpy.js +1 -0
- package/dist/web/client/assets/users-round-BJrym3FG.js +1 -0
- package/dist/web/client/assets/welcome-CyS4Hrd-.js +1 -0
- package/dist/web/client/assets/wrench-GbE1M1RJ.js +1 -0
- package/dist/web/server/assets/{AddProviderDialog-Tn4AskPm.js → AddProviderDialog-Nc5mc_P6.js} +106 -8
- package/dist/web/server/assets/AgentTemplateParts-DZK_r3nQ.js +266 -0
- package/dist/web/server/assets/{ConfigPage-DqDUujmt.js → ConfigPage-CxzL-gTm.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-DfaJ--A6.js → ConfirmDialog-4xeCXKHe.js} +1 -2
- package/dist/web/server/assets/{ConnectionsView-DAG-zNBz.js → ConnectionsView-B02FjNsM.js} +9 -9
- package/dist/web/server/assets/ManagePage-BfCWE8Lj.js +29 -0
- package/dist/web/server/assets/ModelMenu-D-hTgYOO.js +278 -0
- package/dist/web/server/assets/{Rail-BIC_4ptO.js → Rail-3gbidhyv.js} +17 -110
- package/dist/web/server/assets/{SectionTabs-BGsrf-UQ.js → SectionTabs-CWQ5orUW.js} +9 -2
- package/dist/web/server/assets/SkillsParts-D58l8voo.js +199 -0
- package/dist/web/server/assets/SpawnDialog-MJWwppgC.js +1648 -0
- package/dist/web/server/assets/SpawnTeamModal-RjzAeX_Q.js +124 -0
- package/dist/web/server/assets/TeamForm-DdOgIMiV.js +138 -0
- package/dist/web/server/assets/{TeamThread-DuLlGDcw.js → TeamThread-D-PvO3fu.js} +9 -9
- package/dist/web/server/assets/{UnsavedChangesGuard-DrOvPV14.js → UnsavedChangesGuard-Bb5frygQ.js} +1 -1
- package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
- package/dist/web/server/assets/_id-BPjVkcNb.js +396 -0
- package/dist/web/server/assets/_id-BUfy-GwH.js +16 -0
- package/dist/web/server/assets/{_id-yN0z7VqE.js → _id-C1_l6oSR.js} +257 -207
- package/dist/web/server/assets/{_id-DJnYgisy.js → _id-CHvYQhWt.js} +8 -4
- package/dist/web/server/assets/_id-De3Bm0SG.js +39 -0
- package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +256 -0
- package/dist/web/server/assets/access-CNfvQ3NB.js +295 -0
- package/dist/web/server/assets/{access-GMGed5O8.js → access-Cm_izIIC.js} +2 -2
- package/dist/web/server/assets/{access-C_pupPks.js → access-WWspT0v4.js} +2 -1
- package/dist/web/server/assets/agent-actions-COnfW5AU.js +20 -0
- package/dist/web/server/assets/agents-C7UmTjfO.js +13 -0
- package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-CRtMfKqX.js} +9 -6
- package/dist/web/server/assets/agents-D0hfGIMK.js +134 -0
- package/dist/web/server/assets/agents-DQowl6Ly.js +31 -0
- package/dist/web/server/assets/agents-DzpqlIuJ.js +12 -0
- package/dist/web/server/assets/agents-NOkh61dV.js +323 -0
- package/dist/web/server/assets/attention-CRvxt22X.js +232 -0
- package/dist/web/server/assets/{attention-Cr7puThv.js → attention-CgWhXjX7.js} +4 -1
- package/dist/web/server/assets/{attention-DS3O9UmJ.js → attention-Cx9ZWPOO.js} +4 -2
- package/dist/web/server/assets/{config-DjTGA4iZ.js → config-B5CS8juO.js} +2 -2
- package/dist/web/server/assets/{config-Q7livfa3.js → config-D117117T.js} +51 -102
- package/dist/web/server/assets/createSsrRpc-CwTd0zrB.js +72 -0
- package/dist/web/server/assets/{login-VV10kZBl.js → login-IF0Gbsuq.js} +36 -2
- package/dist/web/server/assets/{login-JoIjlcmu.js → login-va4EtvA8.js} +34 -45
- package/dist/web/server/assets/manage-Ce6cI4eW.js +240 -0
- package/dist/web/server/assets/{mcp-ZARSOxZW.js → mcp-Bm9U6x7N.js} +2 -2
- package/dist/web/server/assets/mcp-C96PBxpb.js +376 -0
- package/dist/web/server/assets/page-title-CwcbXMhx.js +95 -0
- package/dist/web/server/assets/{router-Dh2-IvLL.js → router-8Iq19GOz.js} +366 -203
- package/dist/web/server/assets/{routes-C9NawqcV.js → routes-BLo-fWbQ.js} +2681 -1667
- package/dist/web/server/assets/{routes-CDskMy5C.js → routes-BXvYYFrN.js} +2 -2
- package/dist/web/server/assets/routes-Kwam6JmS.js +89 -0
- package/dist/web/server/assets/{skills-StN15QhC.js → skills-BqCnA-74.js} +2 -2
- package/dist/web/server/assets/skills-DSezIdDc.js +157 -0
- package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
- package/dist/web/server/assets/{style-GYDODk2F.js → style-C2hIPY_Y.js} +2 -2
- package/dist/web/server/assets/{system-Dl-1RhoP.js → system-CcLCmkIC.js} +2 -2
- package/dist/web/server/assets/{system-DtswhLW6.js → system-D3th6n2E.js} +4 -2
- package/dist/web/server/assets/system-E0VePdzO.js +145 -0
- package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
- package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
- package/dist/web/server/assets/teams-CQVV18D3.js +216 -0
- package/dist/web/server/assets/teams-CdCmBJIj.js +174 -0
- package/dist/web/server/assets/{teams-5PMGvHuM.js → teams-DScFp8mK.js} +2 -2
- package/dist/web/server/assets/{teams-CbIPKf99.js → teams-DxA-vnzY.js} +4 -2
- package/dist/web/server/assets/telegram-DJ8s_91Y.js +1057 -0
- package/dist/web/server/assets/{telegram-Cv0D4gyz.js → telegram-DR7xijeS.js} +2 -2
- package/dist/web/server/assets/{tools-ioJcPzMW.js → tools-CsH9DI-4.js} +2 -2
- package/dist/web/server/assets/{tools-OfD22R-C.js → tools-V6kezUpL.js} +55 -218
- package/dist/web/server/assets/{use-resource-DVzK0toP.js → use-resource-CjcJwn7F.js} +1 -1
- package/dist/web/server/assets/{welcome-jxmpE_Jb.js → welcome-BpmcD-ia.js} +2 -2
- package/dist/web/server/assets/{welcome-FFEbrNT1.js → welcome-Ya8TkL4v.js} +10 -10
- package/dist/web/server/server.js +19 -19
- package/dist/worker.js +17 -0
- package/dist/worker.js.map +1 -1
- 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/entities-xVoB-p2j.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/model-facts-DoB6QD5y.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/Dialog-aup_yJv5.js +0 -85
- package/dist/web/server/assets/ModelMenu-DUY9aHkE.js +0 -138
- 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/SpawnDialog-D_SMPCG_.js +0 -132
- 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/createSsrRpc-GCCF14VW.js +0 -169
- package/dist/web/server/assets/entities-Dn2xzKIw.js +0 -16
- package/dist/web/server/assets/mcp-BI-FD-JI.js +0 -250
- package/dist/web/server/assets/model-facts-mrfrWQne.js +0 -136
- package/dist/web/server/assets/parts-B31PJkhi.js +0 -190
- package/dist/web/server/assets/routes-BJIJWCIE.js +0 -16
- 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/utils-C_uf36nf.js +0 -8
- package/dist/web/server/assets/workspace-DaitCM0t.js +0 -651
|
@@ -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 };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { C as api, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
|
|
2
|
-
import { a as PageHeader, i as ItemRow, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-GCCF14VW.js";
|
|
3
|
-
import { t as Route } from "./teams-CbIPKf99.js";
|
|
4
|
-
import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-BGsrf-UQ.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 };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { C as api, u as Button } from "./workspace-DaitCM0t.js";
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
|
|
3
|
-
import { t as TeamForm } from "./TeamForm-ilBaeLI4.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-GCCF14VW.js";
|
|
5
|
-
import { t as Route } from "./teams-5PMGvHuM.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 };
|