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,6 +1,6 @@
|
|
|
1
1
|
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-
|
|
2
|
+
import { I as PANEL_COOKIE, V as parsePanelCookie } from "./SpawnDialog-MJWwppgC.js";
|
|
3
|
+
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-3gbidhyv.js";
|
|
4
4
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
5
5
|
import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
|
|
6
6
|
//#region src/routes/index.tsx?tss-serverfn-split
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { H as parseWorkspaceSearch } from "./SpawnDialog-MJWwppgC.js";
|
|
3
|
+
import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
|
|
4
|
+
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
5
|
+
//#region src/lib/shortcuts.ts
|
|
6
|
+
/** Asks the open conversation's menu to start a new conversation, as its own item does. */
|
|
7
|
+
var NEW_CONVERSATION_EVENT = "bazilion:new-conversation";
|
|
8
|
+
var mod = (mac) => mac ? "⌘" : "Ctrl";
|
|
9
|
+
var alt = (mac) => mac ? "⌥" : "Alt";
|
|
10
|
+
var SHORTCUTS = [
|
|
11
|
+
{
|
|
12
|
+
keys: (mac) => [mod(mac), "K"],
|
|
13
|
+
does: "Jump to an Agent, a Team or a page, or run an action",
|
|
14
|
+
where: "everywhere"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
keys: () => ["?"],
|
|
18
|
+
does: "Show these shortcuts",
|
|
19
|
+
where: "everywhere"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
keys: () => ["/"],
|
|
23
|
+
does: "Write to the open Agent",
|
|
24
|
+
where: "workspace"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
keys: (mac) => [alt(mac), "↓"],
|
|
28
|
+
does: "Open the next Agent in the list",
|
|
29
|
+
where: "workspace"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
keys: (mac) => [alt(mac), "↑"],
|
|
33
|
+
does: "Open the previous Agent in the list",
|
|
34
|
+
where: "workspace"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
keys: (mac) => [mod(mac), "."],
|
|
38
|
+
does: "Show or hide the side panel",
|
|
39
|
+
where: "workspace"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
keys: () => ["Esc"],
|
|
43
|
+
does: "Close a dialog, a menu or a sheet",
|
|
44
|
+
where: "everywhere"
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
/**
|
|
48
|
+
* Whether keys typed now belong to a field or a control that reads the keyboard itself (a
|
|
49
|
+
* dropdown, a menu, a list), where a plain-key shortcut must not fire.
|
|
50
|
+
*/
|
|
51
|
+
function isTyping(target) {
|
|
52
|
+
if (typeof HTMLElement === "undefined" || !(target instanceof HTMLElement)) return false;
|
|
53
|
+
if (target.isContentEditable) return true;
|
|
54
|
+
if (target.closest("[role=\"combobox\"],[role=\"listbox\"],[role=\"menu\"],[role=\"option\"],[role=\"menuitem\"],[role=\"slider\"]")) return true;
|
|
55
|
+
const tag = target.tagName;
|
|
56
|
+
if (tag === "TEXTAREA" || tag === "SELECT") return true;
|
|
57
|
+
if (tag !== "INPUT") return false;
|
|
58
|
+
const type = target.type;
|
|
59
|
+
return ![
|
|
60
|
+
"checkbox",
|
|
61
|
+
"radio",
|
|
62
|
+
"button",
|
|
63
|
+
"submit",
|
|
64
|
+
"reset",
|
|
65
|
+
"range",
|
|
66
|
+
"color",
|
|
67
|
+
"file"
|
|
68
|
+
].includes(type);
|
|
69
|
+
}
|
|
70
|
+
/** The Agent next to `current` in the list's order, wrapping round; undefined when there is none. */
|
|
71
|
+
function neighbour(ordered, current, step) {
|
|
72
|
+
if (ordered.length === 0) return void 0;
|
|
73
|
+
const at = ordered.findIndex((item) => item.id === current);
|
|
74
|
+
if (at === -1) return step === 1 ? ordered[0] : ordered[ordered.length - 1];
|
|
75
|
+
return ordered[(at + step + ordered.length) % ordered.length];
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/routes/index.tsx
|
|
79
|
+
var $$splitComponentImporter = () => import("./routes-BLo-fWbQ.js");
|
|
80
|
+
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
81
|
+
var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
|
|
82
|
+
var Route = createFileRoute("/")({
|
|
83
|
+
validateSearch: parseWorkspaceSearch,
|
|
84
|
+
loaderDeps: ({ search }) => ({ agentId: search.agent }),
|
|
85
|
+
loader: ({ deps }) => fetchWorkspace({ data: { agentId: deps.agentId } }),
|
|
86
|
+
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { neighbour as a, isTyping as i, NEW_CONVERSATION_EVENT as n, SHORTCUTS as r, Route as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/skills/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./skills-
|
|
5
|
+
var $$splitComponentImporter = () => import("./skills-DSezIdDc.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, g as CardBody, j as SearchField, k as Notice, lt as api, m as Banner, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { r as ago } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
|
|
4
|
+
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-Ce6cI4eW.js";
|
|
5
|
+
import { t as Route } from "./skills-BqCnA-74.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BfCWE8Lj.js";
|
|
7
|
+
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-D58l8voo.js";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { useRouter } from "@tanstack/react-router";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Sparkles } from "lucide-react";
|
|
12
|
+
//#region src/routes/skills/index.tsx?tsr-split=component
|
|
13
|
+
function SkillsPage() {
|
|
14
|
+
const { skills, templates, now } = Route.useLoaderData();
|
|
15
|
+
const router = useRouter();
|
|
16
|
+
const [importing, setImporting] = useState(false);
|
|
17
|
+
const [imported, setImported] = useState(null);
|
|
18
|
+
const [removing, setRemoving] = useState(null);
|
|
19
|
+
const [query, setQuery] = useState("");
|
|
20
|
+
const shown = skills.filter((skill) => matchesSkill(skill, query));
|
|
21
|
+
const look = skillsNeedingALook(skills);
|
|
22
|
+
const importedFindings = imported ? Object.entries(imported.findings ?? {}).flatMap(([name, items]) => items.map((item) => ({
|
|
23
|
+
...item,
|
|
24
|
+
message: `${name}: ${item.message}`
|
|
25
|
+
}))) : [];
|
|
26
|
+
return /* @__PURE__ */ jsxs(ManagePage, {
|
|
27
|
+
title: "Skills",
|
|
28
|
+
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.",
|
|
29
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
30
|
+
variant: "primary",
|
|
31
|
+
onClick: () => setImporting(true),
|
|
32
|
+
children: "Import skills"
|
|
33
|
+
}),
|
|
34
|
+
children: [
|
|
35
|
+
look.length > 0 && /* @__PURE__ */ jsxs(Banner, {
|
|
36
|
+
tone: "warning",
|
|
37
|
+
lead: `${count(look.length, "skill")} ${look.length === 1 ? "needs" : "need"} a look.`,
|
|
38
|
+
children: [look.map((skill) => skill.parseError ? `${skill.name} cannot be read` : `${skill.name} has a risky finding`).join("; "), "."]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsxs(SetupCard, {
|
|
41
|
+
labelledBy: "manage-skills",
|
|
42
|
+
icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
|
|
43
|
+
title: "Installed skills",
|
|
44
|
+
description: `Each was scanned when it was imported. ${allSkillsLine(templates) ?? ""}`,
|
|
45
|
+
action: /* @__PURE__ */ jsx(Chip, {
|
|
46
|
+
tone: "neutral",
|
|
47
|
+
children: count(skills.length, "skill")
|
|
48
|
+
}),
|
|
49
|
+
children: [
|
|
50
|
+
imported && /* @__PURE__ */ jsxs(CardBody, {
|
|
51
|
+
className: "py-3",
|
|
52
|
+
children: [/* @__PURE__ */ jsx(Notice, {
|
|
53
|
+
tone: "success",
|
|
54
|
+
title: imported.imported.length > 0 ? `Imported ${count(imported.imported.length, "skill")}: ${imported.imported.join(", ")}.` : "Nothing new was imported.",
|
|
55
|
+
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.`
|
|
56
|
+
}), importedFindings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
|
|
57
|
+
findings: importedFindings,
|
|
58
|
+
title: "Imported despite these findings:"
|
|
59
|
+
})]
|
|
60
|
+
}),
|
|
61
|
+
skills.length > 0 && /* @__PURE__ */ jsx(CardToolbar, { children: /* @__PURE__ */ jsx(SearchField, {
|
|
62
|
+
label: "Find a skill",
|
|
63
|
+
placeholder: "Find by name or description",
|
|
64
|
+
value: query,
|
|
65
|
+
onChange: setQuery,
|
|
66
|
+
className: "min-w-0 flex-1 basis-60"
|
|
67
|
+
}) }),
|
|
68
|
+
skills.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
|
|
69
|
+
icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
|
|
70
|
+
title: "No skills installed",
|
|
71
|
+
action: /* @__PURE__ */ jsx(Button, {
|
|
72
|
+
variant: "primary",
|
|
73
|
+
onClick: () => setImporting(true),
|
|
74
|
+
children: "Import skills"
|
|
75
|
+
}),
|
|
76
|
+
children: "Import them from OpenClaw, a folder or a ZIP file."
|
|
77
|
+
}) : shown.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
|
|
78
|
+
title: `No skill matches “${query.trim()}”`,
|
|
79
|
+
children: "Try another word from its name or description."
|
|
80
|
+
}) : /* @__PURE__ */ jsx(CardList, { children: shown.map((skill) => {
|
|
81
|
+
const state = skillState(skill);
|
|
82
|
+
const findings = skill.scanFindings ?? [];
|
|
83
|
+
return /* @__PURE__ */ jsx(ListRow, {
|
|
84
|
+
inline: true,
|
|
85
|
+
title: /* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: "font-mono text-[0.92em]",
|
|
87
|
+
children: skill.name
|
|
88
|
+
}),
|
|
89
|
+
chip: state && /* @__PURE__ */ jsx(Chip, {
|
|
90
|
+
tone: state.tone,
|
|
91
|
+
children: state.label
|
|
92
|
+
}),
|
|
93
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
94
|
+
skill.description && /* @__PURE__ */ jsx("span", {
|
|
95
|
+
className: "basis-full text-foreground",
|
|
96
|
+
children: skill.description
|
|
97
|
+
}),
|
|
98
|
+
skillChosenBy(skill.name, templates) && /* @__PURE__ */ jsx("span", { children: skillChosenBy(skill.name, templates) }),
|
|
99
|
+
/* @__PURE__ */ jsxs("span", {
|
|
100
|
+
title: skill.source ?? void 0,
|
|
101
|
+
children: [skillSourceLabel(skill.source), skill.importedAt !== null && `, ${ago(skill.importedAt, now)}`]
|
|
102
|
+
})
|
|
103
|
+
] }),
|
|
104
|
+
actions: /* @__PURE__ */ jsx(RowMenu, {
|
|
105
|
+
label: `More for ${skill.name}`,
|
|
106
|
+
items: [{
|
|
107
|
+
label: "Remove…",
|
|
108
|
+
danger: true,
|
|
109
|
+
onSelect: () => setRemoving(skill)
|
|
110
|
+
}]
|
|
111
|
+
}),
|
|
112
|
+
children: skill.parseError ? /* @__PURE__ */ jsx(Notice, {
|
|
113
|
+
tone: "warning",
|
|
114
|
+
title: "Its SKILL.md cannot be read, so no Agent gets it.",
|
|
115
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
116
|
+
className: "break-words font-mono text-xs",
|
|
117
|
+
children: skill.parseError
|
|
118
|
+
})
|
|
119
|
+
}) : findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, { findings })
|
|
120
|
+
}, skill.name);
|
|
121
|
+
}) })
|
|
122
|
+
]
|
|
123
|
+
}),
|
|
124
|
+
importing && /* @__PURE__ */ jsx(ImportSkillsDialog, {
|
|
125
|
+
onClose: () => setImporting(false),
|
|
126
|
+
onImported: async (result) => {
|
|
127
|
+
setImporting(false);
|
|
128
|
+
setImported(result);
|
|
129
|
+
await router.invalidate({ sync: true });
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ jsx(ConfirmDialog, {
|
|
133
|
+
open: removing !== null,
|
|
134
|
+
onOpenChange: (open) => {
|
|
135
|
+
if (!open) setRemoving(null);
|
|
136
|
+
},
|
|
137
|
+
title: `Remove the ${removing?.name ?? ""} skill?`,
|
|
138
|
+
description: /* @__PURE__ */ jsxs("p", {
|
|
139
|
+
className: "m-0",
|
|
140
|
+
children: [
|
|
141
|
+
"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.",
|
|
142
|
+
" ",
|
|
143
|
+
removing && skillUseSentence(removing.name, templates)
|
|
144
|
+
]
|
|
145
|
+
}),
|
|
146
|
+
confirmLabel: "Remove skill",
|
|
147
|
+
onConfirm: async () => {
|
|
148
|
+
if (!removing) return;
|
|
149
|
+
await api(`/api/skills/${encodeURIComponent(removing.name)}`, { method: "DELETE" });
|
|
150
|
+
await router.invalidate({ sync: true });
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { SkillsPage as component };
|
|
@@ -7,6 +7,14 @@ var fetchSkills_createServerFn_handler = createServerRpc({
|
|
|
7
7
|
name: "fetchSkills",
|
|
8
8
|
filename: "src/routes/skills/index.tsx"
|
|
9
9
|
}, (opts) => fetchSkills.__executeServer(opts));
|
|
10
|
-
var fetchSkills = createServerFn({ method: "GET" }).handler(fetchSkills_createServerFn_handler, () =>
|
|
10
|
+
var fetchSkills = createServerFn({ method: "GET" }).handler(fetchSkills_createServerFn_handler, async () => {
|
|
11
|
+
const client = daemonClient();
|
|
12
|
+
const [skills, templates] = await Promise.all([client.get("/api/skills"), client.get("/api/profiles")]);
|
|
13
|
+
return {
|
|
14
|
+
skills,
|
|
15
|
+
templates,
|
|
16
|
+
now: Date.now()
|
|
17
|
+
};
|
|
18
|
+
});
|
|
11
19
|
//#endregion
|
|
12
20
|
export { fetchSkills_createServerFn_handler };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as OUTSIDE_TEAM } from "./SpawnDialog-MJWwppgC.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Check, Minus, X } from "lucide-react";
|
|
4
4
|
//#region src/lib/team-policy.ts
|
|
@@ -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
|
|
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",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/system.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./system-
|
|
5
|
+
var $$splitComponentImporter = () => import("./system-E0VePdzO.js");
|
|
6
6
|
var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
|
|
7
7
|
var Route = createFileRoute("/config/system")({
|
|
8
8
|
loader: () => fetchSystem(),
|
|
@@ -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
|
|
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
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { E as Facts, M as SetupCard, T as Fact, b as CardRow, g as CardBody, k as Notice, w as Chip } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { t as Route } from "./system-CcLCmkIC.js";
|
|
3
|
+
import { t as ConfigPage } from "./ConfigPage-CxzL-gTm.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-sm 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 };
|
|
@@ -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
|
-
|
|
15
|
+
agents
|
|
18
16
|
};
|
|
19
17
|
});
|
|
20
18
|
//#endregion
|
|
@@ -7,6 +7,13 @@ var fetchTemplates_createServerFn_handler = createServerRpc({
|
|
|
7
7
|
name: "fetchTemplates",
|
|
8
8
|
filename: "src/routes/templates/teams/index.tsx"
|
|
9
9
|
}, (opts) => fetchTemplates.__executeServer(opts));
|
|
10
|
-
var fetchTemplates = createServerFn({ method: "GET" }).handler(fetchTemplates_createServerFn_handler, () =>
|
|
10
|
+
var fetchTemplates = createServerFn({ method: "GET" }).handler(fetchTemplates_createServerFn_handler, async () => {
|
|
11
|
+
const client = daemonClient();
|
|
12
|
+
const [templates, teams] = await Promise.all([client.get("/api/team-templates"), client.get("/api/teams")]);
|
|
13
|
+
return {
|
|
14
|
+
templates,
|
|
15
|
+
teams
|
|
16
|
+
};
|
|
17
|
+
});
|
|
11
18
|
//#endregion
|
|
12
19
|
export { fetchTemplates_createServerFn_handler };
|