bazilion 0.50.0 → 0.51.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 +245 -65
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +863 -209
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +1 -0
- package/dist/web/client/assets/ConfigPage-pupvtSCX.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +1 -0
- package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +1 -0
- package/dist/web/client/assets/Dialog-bg86_x4v.js +1 -0
- package/dist/web/client/assets/FieldRow-B8eIni5r.js +1 -0
- package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +1 -0
- package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +1 -0
- package/dist/web/client/assets/Segmented-Dh77vmpp.js +1 -0
- package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +1 -0
- package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +1 -0
- package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +1 -0
- package/dist/web/client/assets/Tabs-f6bHvCGn.js +1 -0
- package/dist/web/client/assets/TeamForm-kda1HYZG.js +1 -0
- package/dist/web/client/assets/TeamThread-DFvbakHo.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +1 -0
- package/dist/web/client/assets/_id-BjNtLwak.js +1 -0
- package/dist/web/client/assets/_id-BklaQf3z.js +1 -0
- package/dist/web/client/assets/agents-D9cUF2d9.js +1 -0
- package/dist/web/client/assets/agents-wuBlzx4e.js +1 -0
- package/dist/web/client/assets/api-HC_YzjBy.js +1 -0
- package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +1 -0
- package/dist/web/client/assets/attention-8ZkSLl2e.js +1 -0
- package/dist/web/client/assets/check-BjgKoGvU.js +1 -0
- package/dist/web/client/assets/config-Con_BbSh.js +1 -0
- package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +1 -0
- package/dist/web/client/assets/index-Br9qkGM-.js +54 -0
- package/dist/web/client/assets/link-Cbztlp_R.js +1 -0
- package/dist/web/client/assets/login-llnOKSJc.js +1 -0
- package/dist/web/client/assets/mcp-zIUguMSI.js +1 -0
- package/dist/web/client/assets/plus-CWrKMtvA.js +1 -0
- package/dist/web/client/assets/routes-BY5uqJ2n.js +76 -0
- package/dist/web/client/assets/save-f9O-CQia.js +1 -0
- package/dist/web/client/assets/services-esLrcTwe.js +1 -0
- package/dist/web/client/assets/skills-DzYXksM0.js +1 -0
- package/dist/web/client/assets/style-Cdzqt_TJ.js +7 -0
- package/dist/web/client/assets/styles-BRSS6yrm.css +2 -0
- package/dist/web/client/assets/system-CsI66nyZ.js +1 -0
- package/dist/web/client/assets/teams-CHE_zpxS.js +1 -0
- package/dist/web/client/assets/teams-dxG9OESG.js +1 -0
- package/dist/web/client/assets/telegram-C3dGndJV.js +1 -0
- package/dist/web/client/assets/tokens-CNNH-Wr9.js +1 -0
- package/dist/web/client/assets/use-resource-BjnxgGvh.js +1 -0
- package/dist/web/client/assets/welcome-C8EOtc8P.js +1 -0
- package/dist/web/server/assets/AddProviderDialog-CR6TRYdZ.js +910 -0
- package/dist/web/server/assets/{ConfigPage-DSLM5CLw.js → ConfigPage-CIh3ohea.js} +4 -4
- package/dist/web/server/assets/ConfirmDialog-B79K2KEW.js +52 -0
- package/dist/web/server/assets/{ConnectionsView-DVLNH81Y.js → ConnectionsView-BIMYdp9C.js} +6 -4
- package/dist/web/server/assets/{ConfirmDialog-CvLZgbfY.js → Dialog-CVqpXxuN.js} +3 -50
- package/dist/web/server/assets/{FieldRow-DQBzMtcR.js → FieldRow-CHVhX2rS.js} +1 -1
- package/dist/web/server/assets/{ModelSelect-Vwro6OkL.js → ModelSelect-DrZrdndo.js} +7 -7
- package/dist/web/server/assets/{Rail-D8LhjS38.js → Rail-Cg-efcpA.js} +6 -64
- package/dist/web/server/assets/{SectionTabs-CNcvxbR8.js → SectionTabs-DrcgVeZd.js} +3 -2
- package/dist/web/server/assets/Segmented-3ZLdqa5U.js +18 -0
- package/dist/web/server/assets/{SkillFindings-DX8lCMG7.js → SkillFindings-DSDiL6hn.js} +1 -1
- package/dist/web/server/assets/{SpawnDialog-Brmkl_ll.js → SpawnDialog-BUUlLxE9.js} +2 -2
- package/dist/web/server/assets/{TeamThread-BNJi6gPM.js → TeamThread-5CjVPcDr.js} +3 -18
- package/dist/web/server/assets/{UnsavedChangesGuard-B3Lpl08z.js → UnsavedChangesGuard-CyF2Z9p1.js} +1 -1
- package/dist/web/server/assets/{_id-BH1631a8.js → _id-0fEWiVZX.js} +5 -5
- package/dist/web/server/assets/{_id-DIXUiIaB.js → _id-8bsYEcGg.js} +2 -2
- package/dist/web/server/assets/{_id-CA3QO7J5.js → _id-BvAaRSUW.js} +2 -2
- package/dist/web/server/assets/{_id-CO1PgvyG.js → _id-Dg6M_qfr.js} +5 -5
- package/dist/web/server/assets/{_id-E2N4gZ4O.js → _id-Dji7xr9C.js} +1 -1
- package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +214 -0
- package/dist/web/server/assets/{agents-CalSKogx.js → agents-BDA5yYZ2.js} +4 -4
- package/dist/web/server/assets/{agents-CdZvooeQ.js → agents-BTDxmp-F.js} +2 -2
- package/dist/web/server/assets/{agents-DPZVni4Q.js → agents-DM7guWF2.js} +2 -2
- package/dist/web/server/assets/{agents-DrkEwIpR.js → agents-DktqUffG.js} +7 -7
- package/dist/web/server/assets/{agents-C63VycUw.js → agents-xgZ9rsac.js} +1 -1
- package/dist/web/server/assets/{attention-BbE4yc-V.js → attention-CHQEQiZl.js} +2 -2
- package/dist/web/server/assets/{attention-DIyX3VMB.js → attention-De3-ehuf.js} +2 -2
- package/dist/web/server/assets/config-DOp28gcy.js +1067 -0
- package/dist/web/server/assets/config-DzgkbBoD.js +17 -0
- package/dist/web/server/assets/config-X7qWbbpH.js +20 -0
- package/dist/web/server/assets/{Page-KIL1CsME.js → createSsrRpc-CcLbajrF.js} +16 -1
- package/dist/web/server/assets/{mcp-Cf7KzOJ9.js → mcp-CO_tycXU.js} +4 -4
- package/dist/web/server/assets/{mcp-DE14q5c0.js → mcp-D3OCoHtO.js} +2 -2
- package/dist/web/server/assets/{router-w2yPgmC1.js → router-Cs2Ak4II.js} +57 -69
- package/dist/web/server/assets/{routes-D1NHwz6f.js → routes-BSNOKE-C.js} +13 -10
- package/dist/web/server/assets/{routes-1FEodTRm.js → routes-BVwqgZGI.js} +2 -2
- package/dist/web/server/assets/{routes-B6AO0LjK.js → routes-CO4l-GJ0.js} +1 -1
- package/dist/web/server/assets/{services-Cdk40QHq.js → services-DZLxUSG8.js} +2 -2
- package/dist/web/server/assets/{services-BjroGXgC.js → services-DsvpaF3L.js} +4 -4
- package/dist/web/server/assets/{skills-CA17GjuZ.js → skills-CggQJk6a.js} +2 -2
- package/dist/web/server/assets/{skills-DC1OTc8n.js → skills-DKYV7PTk.js} +4 -4
- package/dist/web/server/assets/system-CZ2qzBz3.js +138 -0
- package/dist/web/server/assets/system-DsJfpBPl.js +12 -0
- package/dist/web/server/assets/system-DtswhLW62.js +18 -0
- package/dist/web/server/assets/{teams-Cg-QQWpH.js → teams-B6PzNcoy.js} +3 -3
- package/dist/web/server/assets/{teams-Bm63mbTt.js → teams-B6lBhvdL.js} +2 -2
- package/dist/web/server/assets/{teams-D6Tx-Jyn.js → teams-Bp2tERZe.js} +2 -2
- package/dist/web/server/assets/{teams-OzHTyVi9.js → teams-C-8iz-uV.js} +3 -3
- package/dist/web/server/assets/{telegram-BJ4l_TA_.js → telegram-CXrP3hMp.js} +3 -3
- package/dist/web/server/assets/{telegram-xU-vXgef.js → telegram-D2RZriz_.js} +2 -2
- package/dist/web/server/assets/{tokens-ByPTGFBQ.js → tokens-C-oDTqnp.js} +2 -2
- package/dist/web/server/assets/{tokens-CsqoRt5T.js → tokens-DSLwQ1Pw.js} +4 -4
- package/dist/web/server/assets/use-resource-ChQozXVI.js +63 -0
- package/dist/web/server/assets/welcome-BLw1G6SS.js +318 -0
- package/dist/web/server/assets/welcome-ByAkvHSP.js +26 -0
- package/dist/web/server/assets/welcome-CxXMI4HI.js +15 -0
- package/dist/web/server/server.js +17 -9
- package/dist/worker.js +77 -35
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/ConfigPage-_FY--9PB.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-BblXqMVb.js +0 -1
- package/dist/web/client/assets/ConnectionsView-BZHJysCa.js +0 -1
- package/dist/web/client/assets/FieldRow-k05wfDy9.js +0 -1
- package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +0 -1
- package/dist/web/client/assets/SectionTabs-DlfXtepS.js +0 -1
- package/dist/web/client/assets/SkillFindings-CHf5ZGY0.js +0 -1
- package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +0 -1
- package/dist/web/client/assets/SpawnDialog-C-Ujb4bC.js +0 -1
- package/dist/web/client/assets/Tabs-D0LgBNIk.js +0 -1
- package/dist/web/client/assets/TeamForm-D6EAAF7m.js +0 -1
- package/dist/web/client/assets/TeamThread-DpUOwMoi.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-DTUP7hwu.js +0 -1
- package/dist/web/client/assets/_id-C94dgBDe.js +0 -1
- package/dist/web/client/assets/_id-CxmEfoEp.js +0 -1
- package/dist/web/client/assets/agents-C-bJ5R_0.js +0 -1
- package/dist/web/client/assets/agents-odqBNx-A.js +0 -1
- package/dist/web/client/assets/api-CPzQ_z9m.js +0 -1
- package/dist/web/client/assets/arrow-right-Dyta3p06.js +0 -1
- package/dist/web/client/assets/attention-D0e7o7fh.js +0 -1
- package/dist/web/client/assets/chevron-right-B2YEg9rw.js +0 -1
- package/dist/web/client/assets/config-B7Y5MtpM.js +0 -3
- package/dist/web/client/assets/createLucideIcon-Cgab8gqu.js +0 -1
- package/dist/web/client/assets/index-CNVw44IE.js +0 -54
- package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +0 -1
- package/dist/web/client/assets/link-ClwtaO_E.js +0 -1
- package/dist/web/client/assets/login-Br1F4rQx.js +0 -1
- package/dist/web/client/assets/mcp-B8bIAY6k.js +0 -1
- package/dist/web/client/assets/routes-BZdlkRdC.js +0 -76
- package/dist/web/client/assets/save-ZqeB_I-c.js +0 -1
- package/dist/web/client/assets/services-CPJxDrVG.js +0 -1
- package/dist/web/client/assets/skills-DE_kQQGj.js +0 -1
- package/dist/web/client/assets/style-BWShXY3e.js +0 -7
- package/dist/web/client/assets/styles-Tney8jZq.css +0 -2
- package/dist/web/client/assets/teams-AcuSLc3I.js +0 -1
- package/dist/web/client/assets/teams-tRamPg7O.js +0 -1
- package/dist/web/client/assets/telegram-Ku69-GAv.js +0 -1
- package/dist/web/client/assets/tokens-DuLNZMgi.js +0 -1
- package/dist/web/client/assets/welcome-CrQk6n6I.js +0 -1
- package/dist/web/server/assets/_tanstack-start-manifest_v-BVfrV7LQ.js +0 -191
- package/dist/web/server/assets/config-3tPtOmPE.js +0 -12
- package/dist/web/server/assets/config-DJGZiPBJ.js +0 -798
- package/dist/web/server/assets/config-rUqhMjIs.js +0 -25
- package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +0 -16
- package/dist/web/server/assets/welcome-O6Rjd7yO.js +0 -93
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
|
|
3
|
+
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
|
+
//#region src/routes/config/index.tsx
|
|
5
|
+
var $$splitComponentImporter = () => import("./config-DOp28gcy.js");
|
|
6
|
+
var fetchModelsPage = createServerFn({ method: "GET" }).handler(createSsrRpc("71b6b12251ac92cf4ee888c1d2b6eba3beaac079f9c39eaed95fafcd15908731"));
|
|
7
|
+
var Route = createFileRoute("/config/")({
|
|
8
|
+
validateSearch: (search) => ({
|
|
9
|
+
...typeof search.provider === "string" && search.provider ? { provider: search.provider } : {},
|
|
10
|
+
...typeof search.add === "string" && search.add ? { add: search.add } : {},
|
|
11
|
+
...search.pick === true || search.pick === "true" ? { pick: true } : {}
|
|
12
|
+
}),
|
|
13
|
+
loader: () => fetchModelsPage(),
|
|
14
|
+
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Route as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
|
|
4
|
+
//#region src/routes/config/index.tsx?tss-serverfn-split
|
|
5
|
+
var fetchModelsPage_createServerFn_handler = createServerRpc({
|
|
6
|
+
id: "71b6b12251ac92cf4ee888c1d2b6eba3beaac079f9c39eaed95fafcd15908731",
|
|
7
|
+
name: "fetchModelsPage",
|
|
8
|
+
filename: "src/routes/config/index.tsx"
|
|
9
|
+
}, (opts) => fetchModelsPage.__executeServer(opts));
|
|
10
|
+
var fetchModelsPage = createServerFn({ method: "GET" }).handler(fetchModelsPage_createServerFn_handler, async () => {
|
|
11
|
+
const daemon = daemonClient();
|
|
12
|
+
const [{ providers }, models] = await Promise.all([daemon.get("/api/config/providers"), daemon.get("/api/config/models")]);
|
|
13
|
+
return {
|
|
14
|
+
providers,
|
|
15
|
+
models,
|
|
16
|
+
now: Date.now()
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { fetchModelsPage_createServerFn_handler };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as getServerFnById, r as TSS_SERVER_FUNCTION } from "../server.js";
|
|
1
2
|
import { u as cn } from "./workspace-DeEYMPDX.js";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/Page.tsx
|
|
@@ -151,4 +152,18 @@ function Stat({ label, value, detail }) {
|
|
|
151
152
|
});
|
|
152
153
|
}
|
|
153
154
|
//#endregion
|
|
154
|
-
|
|
155
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.17/node_modules/@tanstack/start-server-core/dist/esm/createSsrRpc.js
|
|
156
|
+
var createSsrRpc = (functionId) => {
|
|
157
|
+
const url = "/_serverFn/" + functionId;
|
|
158
|
+
const serverFnMeta = { id: functionId };
|
|
159
|
+
const fn = async (...args) => {
|
|
160
|
+
return (await getServerFnById(functionId, { origin: "server" }))(...args);
|
|
161
|
+
};
|
|
162
|
+
return Object.assign(fn, {
|
|
163
|
+
url,
|
|
164
|
+
serverFnMeta,
|
|
165
|
+
[TSS_SERVER_FUNCTION]: true
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
//#endregion
|
|
169
|
+
export { PageHeader as a, Stat as c, ItemRow as i, StatusBadge as l, EmptyState as n, PageShell as o, ItemList as r, SectionCard as s, createSsrRpc as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
3
|
-
import {
|
|
4
|
-
import { t as Route } from "./mcp-
|
|
5
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
|
|
3
|
+
import { i as ItemRow, l as StatusBadge, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
|
|
4
|
+
import { t as Route } from "./mcp-D3OCoHtO.js";
|
|
5
|
+
import { t as ConfigPage } from "./ConfigPage-CIh3ohea.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { useRouter } from "@tanstack/react-router";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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-CcLbajrF.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/mcp.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./mcp-
|
|
5
|
+
var $$splitComponentImporter = () => import("./mcp-CO_tycXU.js");
|
|
6
6
|
var fetchServers = createServerFn({ method: "GET" }).handler(createSsrRpc("278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7"));
|
|
7
7
|
var Route = createFileRoute("/config/mcp")({
|
|
8
8
|
loader: () => fetchServers(),
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { n as createServerFn } from "../server.js";
|
|
2
1
|
import { r as readCookie } from "./cookies-HnTYjKRp.js";
|
|
3
2
|
import { E as errorMessage, c as parseWorkspaceSearch, d as Button, f as AgentAvatar, m as agentState, w as api } from "./workspace-DeEYMPDX.js";
|
|
4
3
|
import { n as publicOriginConfig } from "./public-origin-BpDkdS5Q.js";
|
|
5
4
|
import { t as DAEMON_BASE_URL } from "./daemon-client-B_ZRIIrT.js";
|
|
6
|
-
import {
|
|
7
|
-
import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route$
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as Route$5 } from "./routes-
|
|
10
|
-
import { t as Route$6 } from "./teams-
|
|
11
|
-
import { t as Route$7 } from "./skills-
|
|
12
|
-
import { t as Route$8 } from "./config-
|
|
13
|
-
import { t as Route$9 } from "./attention-
|
|
14
|
-
import { t as Route$10 } from "./agents-
|
|
15
|
-
import { t as Route$11 } from "./tokens-
|
|
16
|
-
import { t as Route$12 } from "./
|
|
17
|
-
import { t as Route$13 } from "./
|
|
18
|
-
import { t as Route$14 } from "./
|
|
19
|
-
import { t as Route$15 } from "./
|
|
20
|
-
import { t as Route$16 } from "./
|
|
21
|
-
import { t as Route$17 } from "./
|
|
22
|
-
import { t as Route$18 } from "./_id-
|
|
5
|
+
import { o as PageShell } from "./createSsrRpc-CcLbajrF.js";
|
|
6
|
+
import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route$3 } from "./login-JoIjlcmu.js";
|
|
7
|
+
import { i as isSetupOpen, n as PUBLIC_PATHS, r as fetchAuthState, t as Route$4 } from "./welcome-ByAkvHSP.js";
|
|
8
|
+
import { t as Route$5 } from "./routes-BVwqgZGI.js";
|
|
9
|
+
import { t as Route$6 } from "./teams-Bp2tERZe.js";
|
|
10
|
+
import { t as Route$7 } from "./skills-CggQJk6a.js";
|
|
11
|
+
import { t as Route$8 } from "./config-DzgkbBoD.js";
|
|
12
|
+
import { t as Route$9 } from "./attention-CHQEQiZl.js";
|
|
13
|
+
import { t as Route$10 } from "./agents-DM7guWF2.js";
|
|
14
|
+
import { t as Route$11 } from "./tokens-C-oDTqnp.js";
|
|
15
|
+
import { t as Route$12 } from "./system-DsJfpBPl.js";
|
|
16
|
+
import { t as Route$13 } from "./services-DZLxUSG8.js";
|
|
17
|
+
import { t as Route$14 } from "./mcp-D3OCoHtO.js";
|
|
18
|
+
import { t as Route$15 } from "./teams-B6lBhvdL.js";
|
|
19
|
+
import { t as Route$16 } from "./agents-BTDxmp-F.js";
|
|
20
|
+
import { t as Route$17 } from "./telegram-D2RZriz_.js";
|
|
21
|
+
import { t as Route$18 } from "./_id-8bsYEcGg.js";
|
|
22
|
+
import { t as Route$19 } from "./_id-BvAaRSUW.js";
|
|
23
23
|
import { useEffect, useMemo, useState } from "react";
|
|
24
|
-
import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter,
|
|
24
|
+
import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, redirect, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
|
|
25
25
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
26
26
|
import { BellRing, Bot, ChevronDown, LayoutTemplate, LogOut, Search, Settings2, SlidersHorizontal, Sparkles, UsersRound } from "lucide-react";
|
|
27
27
|
import { Dialog, DropdownMenu } from "radix-ui";
|
|
@@ -121,7 +121,7 @@ var PAGES = [
|
|
|
121
121
|
],
|
|
122
122
|
[
|
|
123
123
|
"Setup",
|
|
124
|
-
"
|
|
124
|
+
"Models, providers, services, access",
|
|
125
125
|
"/config"
|
|
126
126
|
]
|
|
127
127
|
];
|
|
@@ -365,7 +365,7 @@ var MANAGE_LINKS = [
|
|
|
365
365
|
{
|
|
366
366
|
href: "/config",
|
|
367
367
|
label: "Setup",
|
|
368
|
-
description: "
|
|
368
|
+
description: "Models and providers, services, integrations, access.",
|
|
369
369
|
icon: Settings2
|
|
370
370
|
}
|
|
371
371
|
];
|
|
@@ -554,21 +554,12 @@ function navButtonClass(active) {
|
|
|
554
554
|
return `unstyled inline-flex h-9 shrink-0 items-center justify-center gap-1.5 rounded-lg border px-2 text-sm font-semibold transition-colors sm:px-2.5 ${active ? "border-sapphire-light bg-sapphire-glow text-sapphire shadow-baziu-sm" : "border-transparent text-mocha hover:border-frost hover:bg-ivory hover:text-sapphire"}`;
|
|
555
555
|
}
|
|
556
556
|
//#endregion
|
|
557
|
-
//#region src/lib/auth.ts
|
|
558
|
-
var fetchAuthState = createServerFn({ method: "GET" }).handler(createSsrRpc("a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2"));
|
|
559
|
-
/** Pages reachable without a session. */
|
|
560
|
-
var PUBLIC_PATHS = new Set(["/login"]);
|
|
561
|
-
var SETUP_OPEN_PREFIXES = ["/welcome", "/config"];
|
|
562
|
-
function isSetupOpen(path) {
|
|
563
|
-
return SETUP_OPEN_PREFIXES.some((prefix) => path === prefix || path.startsWith(`${prefix}/`));
|
|
564
|
-
}
|
|
565
|
-
//#endregion
|
|
566
557
|
//#region src/styles.css?url
|
|
567
|
-
var styles_default = "/assets/styles-
|
|
558
|
+
var styles_default = "/assets/styles-BRSS6yrm.css";
|
|
568
559
|
//#endregion
|
|
569
560
|
//#region src/routes/__root.tsx
|
|
570
561
|
var THEME_INIT_SCRIPT = `(function(){try{var t=localStorage.getItem('baziu-theme');var sd=window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var d=t==='dark'||((t===null||t==='system')&&sd);document.documentElement.classList.toggle('dark',d);}catch(e){}})();`;
|
|
571
|
-
var Route$
|
|
562
|
+
var Route$2 = createRootRoute({
|
|
572
563
|
beforeLoad: async ({ location }) => {
|
|
573
564
|
const path = location.pathname;
|
|
574
565
|
if (PUBLIC_PATHS.has(path)) return;
|
|
@@ -674,15 +665,6 @@ function RootComponent() {
|
|
|
674
665
|
});
|
|
675
666
|
}
|
|
676
667
|
//#endregion
|
|
677
|
-
//#region src/routes/welcome.tsx
|
|
678
|
-
var $$splitComponentImporter = () => import("./welcome-O6Rjd7yO.js");
|
|
679
|
-
var Route$2 = createFileRoute("/welcome")({
|
|
680
|
-
beforeLoad: async () => {
|
|
681
|
-
if ((await fetchAuthState()).setupComplete) throw redirect({ to: "/" });
|
|
682
|
-
},
|
|
683
|
-
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
684
|
-
});
|
|
685
|
-
//#endregion
|
|
686
668
|
//#region src/routes/templates/index.tsx
|
|
687
669
|
var Route$1 = createFileRoute("/templates/")({ beforeLoad: () => {
|
|
688
670
|
throw redirect({ to: "/templates/agents" });
|
|
@@ -779,90 +761,95 @@ var Route = createFileRoute("/api/$")({ server: { handlers: {
|
|
|
779
761
|
} } });
|
|
780
762
|
//#endregion
|
|
781
763
|
//#region src/routeTree.gen.ts
|
|
782
|
-
var WelcomeRoute = Route$
|
|
764
|
+
var WelcomeRoute = Route$4.update({
|
|
783
765
|
id: "/welcome",
|
|
784
766
|
path: "/welcome",
|
|
785
|
-
getParentRoute: () => Route$
|
|
767
|
+
getParentRoute: () => Route$2
|
|
786
768
|
});
|
|
787
|
-
var LoginRoute = Route$
|
|
769
|
+
var LoginRoute = Route$3.update({
|
|
788
770
|
id: "/login",
|
|
789
771
|
path: "/login",
|
|
790
|
-
getParentRoute: () => Route$
|
|
772
|
+
getParentRoute: () => Route$2
|
|
791
773
|
});
|
|
792
774
|
var IndexRoute = Route$5.update({
|
|
793
775
|
id: "/",
|
|
794
776
|
path: "/",
|
|
795
|
-
getParentRoute: () => Route$
|
|
777
|
+
getParentRoute: () => Route$2
|
|
796
778
|
});
|
|
797
779
|
var TemplatesIndexRoute = Route$1.update({
|
|
798
780
|
id: "/templates/",
|
|
799
781
|
path: "/templates/",
|
|
800
|
-
getParentRoute: () => Route$
|
|
782
|
+
getParentRoute: () => Route$2
|
|
801
783
|
});
|
|
802
784
|
var TeamsIndexRoute = Route$6.update({
|
|
803
785
|
id: "/teams/",
|
|
804
786
|
path: "/teams/",
|
|
805
|
-
getParentRoute: () => Route$
|
|
787
|
+
getParentRoute: () => Route$2
|
|
806
788
|
});
|
|
807
789
|
var SkillsIndexRoute = Route$7.update({
|
|
808
790
|
id: "/skills/",
|
|
809
791
|
path: "/skills/",
|
|
810
|
-
getParentRoute: () => Route$
|
|
792
|
+
getParentRoute: () => Route$2
|
|
811
793
|
});
|
|
812
794
|
var ConfigIndexRoute = Route$8.update({
|
|
813
795
|
id: "/config/",
|
|
814
796
|
path: "/config/",
|
|
815
|
-
getParentRoute: () => Route$
|
|
797
|
+
getParentRoute: () => Route$2
|
|
816
798
|
});
|
|
817
799
|
var AttentionIndexRoute = Route$9.update({
|
|
818
800
|
id: "/attention/",
|
|
819
801
|
path: "/attention/",
|
|
820
|
-
getParentRoute: () => Route$
|
|
802
|
+
getParentRoute: () => Route$2
|
|
821
803
|
});
|
|
822
804
|
var AgentsIndexRoute = Route$10.update({
|
|
823
805
|
id: "/agents/",
|
|
824
806
|
path: "/agents/",
|
|
825
|
-
getParentRoute: () => Route$
|
|
807
|
+
getParentRoute: () => Route$2
|
|
826
808
|
});
|
|
827
809
|
var ConfigTokensRoute = Route$11.update({
|
|
828
810
|
id: "/config/tokens",
|
|
829
811
|
path: "/config/tokens",
|
|
830
|
-
getParentRoute: () => Route$
|
|
812
|
+
getParentRoute: () => Route$2
|
|
813
|
+
});
|
|
814
|
+
var ConfigSystemRoute = Route$12.update({
|
|
815
|
+
id: "/config/system",
|
|
816
|
+
path: "/config/system",
|
|
817
|
+
getParentRoute: () => Route$2
|
|
831
818
|
});
|
|
832
|
-
var ConfigServicesRoute = Route$
|
|
819
|
+
var ConfigServicesRoute = Route$13.update({
|
|
833
820
|
id: "/config/services",
|
|
834
821
|
path: "/config/services",
|
|
835
|
-
getParentRoute: () => Route$
|
|
822
|
+
getParentRoute: () => Route$2
|
|
836
823
|
});
|
|
837
|
-
var ConfigMcpRoute = Route$
|
|
824
|
+
var ConfigMcpRoute = Route$14.update({
|
|
838
825
|
id: "/config/mcp",
|
|
839
826
|
path: "/config/mcp",
|
|
840
|
-
getParentRoute: () => Route$
|
|
827
|
+
getParentRoute: () => Route$2
|
|
841
828
|
});
|
|
842
829
|
var ApiSplatRoute = Route.update({
|
|
843
830
|
id: "/api/$",
|
|
844
831
|
path: "/api/$",
|
|
845
|
-
getParentRoute: () => Route$
|
|
832
|
+
getParentRoute: () => Route$2
|
|
846
833
|
});
|
|
847
|
-
var TemplatesTeamsIndexRoute = Route$
|
|
834
|
+
var TemplatesTeamsIndexRoute = Route$15.update({
|
|
848
835
|
id: "/templates/teams/",
|
|
849
836
|
path: "/templates/teams/",
|
|
850
|
-
getParentRoute: () => Route$
|
|
837
|
+
getParentRoute: () => Route$2
|
|
851
838
|
});
|
|
852
|
-
var TemplatesAgentsIndexRoute = Route$
|
|
839
|
+
var TemplatesAgentsIndexRoute = Route$16.update({
|
|
853
840
|
id: "/templates/agents/",
|
|
854
841
|
path: "/templates/agents/",
|
|
855
|
-
getParentRoute: () => Route$
|
|
842
|
+
getParentRoute: () => Route$2
|
|
856
843
|
});
|
|
857
|
-
var ConfigIntegrationsTelegramRoute = Route$
|
|
844
|
+
var ConfigIntegrationsTelegramRoute = Route$17.update({
|
|
858
845
|
id: "/config/integrations/telegram",
|
|
859
846
|
path: "/config/integrations/telegram",
|
|
860
|
-
getParentRoute: () => Route$
|
|
847
|
+
getParentRoute: () => Route$2
|
|
861
848
|
});
|
|
862
|
-
var TemplatesTeamsIdIndexRoute = Route$
|
|
849
|
+
var TemplatesTeamsIdIndexRoute = Route$18.update({
|
|
863
850
|
id: "/templates/teams/$id/",
|
|
864
851
|
path: "/templates/teams/$id/",
|
|
865
|
-
getParentRoute: () => Route$
|
|
852
|
+
getParentRoute: () => Route$2
|
|
866
853
|
});
|
|
867
854
|
var rootRouteChildren = {
|
|
868
855
|
IndexRoute,
|
|
@@ -871,6 +858,7 @@ var rootRouteChildren = {
|
|
|
871
858
|
ApiSplatRoute,
|
|
872
859
|
ConfigMcpRoute,
|
|
873
860
|
ConfigServicesRoute,
|
|
861
|
+
ConfigSystemRoute,
|
|
874
862
|
ConfigTokensRoute,
|
|
875
863
|
AgentsIndexRoute,
|
|
876
864
|
AttentionIndexRoute,
|
|
@@ -881,14 +869,14 @@ var rootRouteChildren = {
|
|
|
881
869
|
ConfigIntegrationsTelegramRoute,
|
|
882
870
|
TemplatesAgentsIndexRoute,
|
|
883
871
|
TemplatesTeamsIndexRoute,
|
|
884
|
-
TemplatesAgentsIdIndexRoute: Route$
|
|
872
|
+
TemplatesAgentsIdIndexRoute: Route$19.update({
|
|
885
873
|
id: "/templates/agents/$id/",
|
|
886
874
|
path: "/templates/agents/$id/",
|
|
887
|
-
getParentRoute: () => Route$
|
|
875
|
+
getParentRoute: () => Route$2
|
|
888
876
|
}),
|
|
889
877
|
TemplatesTeamsIdIndexRoute
|
|
890
878
|
};
|
|
891
|
-
var routeTree = Route$
|
|
879
|
+
var routeTree = Route$2._addFileChildren(rootRouteChildren)._addFileTypes();
|
|
892
880
|
//#endregion
|
|
893
881
|
//#region src/router.tsx
|
|
894
882
|
function getRouter() {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { C as ApiError, E as errorMessage, S as summarizeSteps, T as apiFetch, _ as useActivity, a as isAgentSection, b as lineChange, d as Button, f as AgentAvatar, g as teamSummary, h as shortTime, i as PANEL_TABS, l as writePanelCookie, o as isTeamSection, p as ActivityProvider, r as PANEL_LABELS, u as cn, v as useActivityOptional, w as api, x as parseArgs, y as describeStep } from "./workspace-DeEYMPDX.js";
|
|
2
2
|
import { i as REASONING_LEVELS } from "./entities-Dn2xzKIw.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
3
|
+
import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-ChQozXVI.js";
|
|
4
|
+
import { n as DialogActions, t as Dialog$1 } from "./Dialog-CVqpXxuN.js";
|
|
5
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
|
|
6
|
+
import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
|
|
7
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CyF2Z9p1.js";
|
|
8
|
+
import { a as SlimRail, c as useWorkspace, i as STATE_DOT, l as useWorkspaceOptional, n as RenameAgentDialog, o as SpawnTeamModal, s as WorkspaceProvider, t as Rail } from "./Rail-Cg-efcpA.js";
|
|
9
|
+
import { a as trafficByPair, i as pairKey, n as useTeamMessages, o as FocusFrame, r as messageText, t as TeamThread } from "./TeamThread-5CjVPcDr.js";
|
|
10
|
+
import { a as unarchiveAgent, n as archiveAgent, r as deleteAgent, t as SpawnDialog } from "./SpawnDialog-BUUlLxE9.js";
|
|
11
|
+
import { n as ModelSelect, t as AVAILABLE_MODELS_PATH } from "./ModelSelect-DrZrdndo.js";
|
|
12
|
+
import { i as ItemRow, l as StatusBadge, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
|
|
13
|
+
import { t as Route } from "./routes-BVwqgZGI.js";
|
|
14
|
+
import { n as FindingSummary, t as FindingList } from "./SkillFindings-DSDiL6hn.js";
|
|
12
15
|
import { Fragment, Suspense, createContext, lazy, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
13
16
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
14
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7475,7 +7478,7 @@ function TeamHome({ team }) {
|
|
|
7475
7478
|
//#endregion
|
|
7476
7479
|
//#region src/routes/index.tsx?tsr-split=component
|
|
7477
7480
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
7478
|
-
var ConnectionsView = lazy(() => import("./ConnectionsView-
|
|
7481
|
+
var ConnectionsView = lazy(() => import("./ConnectionsView-BIMYdp9C.js").then((module) => ({ default: module.ConnectionsView })));
|
|
7479
7482
|
function WorkspacePage() {
|
|
7480
7483
|
const data = Route.useLoaderData();
|
|
7481
7484
|
const search = Route.useSearch();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { c as parseWorkspaceSearch } from "./workspace-DeEYMPDX.js";
|
|
3
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
3
|
+
import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
|
|
4
4
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
5
5
|
//#region src/routes/index.tsx
|
|
6
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
6
|
+
var $$splitComponentImporter = () => import("./routes-BSNOKE-C.js");
|
|
7
7
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
8
8
|
var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
|
|
9
9
|
var Route = createFileRoute("/")({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
2
|
import { n as PANEL_COOKIE, s as parsePanelCookie } from "./workspace-DeEYMPDX.js";
|
|
3
|
-
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-
|
|
3
|
+
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-Cg-efcpA.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
|
|
@@ -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-CcLbajrF.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/services.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./services-
|
|
5
|
+
var $$splitComponentImporter = () => import("./services-DsvpaF3L.js");
|
|
6
6
|
var fetchServices = createServerFn({ method: "GET" }).handler(createSsrRpc("6afd81bef0ee381d6e3641cd8e269968429c874e2f9d56c8f818cc9d180ee477"));
|
|
7
7
|
var Route = createFileRoute("/config/services")({
|
|
8
8
|
loader: () => fetchServices(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Route } from "./services-
|
|
3
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
4
|
-
import { t as FieldRow } from "./FieldRow-
|
|
1
|
+
import { l as StatusBadge, n as EmptyState } from "./createSsrRpc-CcLbajrF.js";
|
|
2
|
+
import { t as Route } from "./services-DZLxUSG8.js";
|
|
3
|
+
import { t as ConfigPage } from "./ConfigPage-CIh3ohea.js";
|
|
4
|
+
import { t as FieldRow } from "./FieldRow-CHVhX2rS.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/routes/config/services.tsx?tsr-split=component
|
|
7
7
|
var OTHER = "Other";
|
|
@@ -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-CcLbajrF.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-DKYV7PTk.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as ApiError, E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
3
|
-
import { a as
|
|
4
|
-
import { t as Route } from "./skills-
|
|
5
|
-
import { n as FindingSummary, t as FindingList } from "./SkillFindings-
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
|
|
3
|
+
import { a as PageHeader, i as ItemRow, l as StatusBadge, n as EmptyState, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
|
|
4
|
+
import { t as Route } from "./skills-CggQJk6a.js";
|
|
5
|
+
import { n as FindingSummary, t as FindingList } from "./SkillFindings-DSDiL6hn.js";
|
|
6
6
|
import { t as Tabs } from "./Tabs-BhF41MfQ.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useRouter } from "@tanstack/react-router";
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { t as Route } from "./system-DsJfpBPl.js";
|
|
2
|
+
import { t as ConfigPage } from "./ConfigPage-CIh3ohea.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/BackupCard.tsx
|
|
5
|
+
/** The same archive as `bazilion backup create`, saved by the browser straight from the daemon. */
|
|
6
|
+
function BackupCard() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
8
|
+
"aria-label": "Backup",
|
|
9
|
+
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
10
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
11
|
+
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
12
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
13
|
+
className: "text-base font-semibold",
|
|
14
|
+
children: "Backup"
|
|
15
|
+
})
|
|
16
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
17
|
+
className: "flex flex-wrap items-center justify-between gap-3 p-4 text-sm sm:px-5",
|
|
18
|
+
children: [/* @__PURE__ */ jsxs("p", {
|
|
19
|
+
className: "m-0 max-w-prose text-muted-foreground",
|
|
20
|
+
children: [
|
|
21
|
+
"A tar.gz of the Bazilion home. It is not encrypted and holds every stored credential; for an encrypted copy run ",
|
|
22
|
+
/* @__PURE__ */ jsx("code", { children: "bazilion backup create --recipient <age1…>" }),
|
|
23
|
+
". Restore with ",
|
|
24
|
+
/* @__PURE__ */ jsx("code", { children: "bazilion backup restore" }),
|
|
25
|
+
" while the daemon is stopped."
|
|
26
|
+
]
|
|
27
|
+
}), /* @__PURE__ */ jsx("a", {
|
|
28
|
+
href: "/api/backup",
|
|
29
|
+
download: true,
|
|
30
|
+
className: "btn-primary no-underline",
|
|
31
|
+
children: "Download backup"
|
|
32
|
+
})]
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/InstallationReadinessCard.tsx
|
|
38
|
+
function InstallationReadinessCard({ report }) {
|
|
39
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
40
|
+
"aria-label": "Installation health",
|
|
41
|
+
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
42
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
43
|
+
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
44
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
45
|
+
className: "text-base font-semibold",
|
|
46
|
+
children: "Installation health"
|
|
47
|
+
})
|
|
48
|
+
}), /* @__PURE__ */ jsxs("dl", {
|
|
49
|
+
className: "p-4 sm:px-5",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsx("dt", {
|
|
52
|
+
className: "text-xs text-muted-foreground",
|
|
53
|
+
children: "Installation health"
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsx("dd", {
|
|
56
|
+
className: `mt-1 font-semibold ${report.ok ? "text-success" : "text-warning"}`,
|
|
57
|
+
children: report.ok ? "Healthy" : "Issues found"
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx("dd", {
|
|
60
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
61
|
+
children: "Run bazilion doctor for the details."
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/RuntimeCard.tsx
|
|
69
|
+
/** Sandbox and approval apply the same way to every turn: chat, Telegram, schedules and inbox. */
|
|
70
|
+
function RuntimeCard({ shell }) {
|
|
71
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
72
|
+
"aria-label": "Agent runtime",
|
|
73
|
+
className: "overflow-hidden rounded-2xl border border-border bg-card shadow-baziu-sm",
|
|
74
|
+
children: [/* @__PURE__ */ jsxs("header", {
|
|
75
|
+
className: "border-b border-border px-4 py-3 sm:px-5",
|
|
76
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
77
|
+
className: "text-base font-semibold",
|
|
78
|
+
children: "Agent runtime"
|
|
79
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
80
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
81
|
+
children: "Applies to every turn: chat, Telegram, schedules and inbox. Unattended turns auto-deny dangerous commands."
|
|
82
|
+
})]
|
|
83
|
+
}), shell.ok ? /* @__PURE__ */ jsxs("dl", {
|
|
84
|
+
className: "divide-y divide-border px-4 text-sm sm:px-5",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ jsx(Row, {
|
|
87
|
+
label: "Sandbox",
|
|
88
|
+
value: shell.sandboxMode === "docker" ? `Docker (${shell.sandboxImage}) — bash in a network-disabled container` : "Off — bash and file tools run on the host, unisolated"
|
|
89
|
+
}),
|
|
90
|
+
shell.docker && /* @__PURE__ */ jsx(Row, {
|
|
91
|
+
label: "Docker",
|
|
92
|
+
value: shell.docker.ready ? "Ready" : `Unavailable — ${shell.docker.reason}`,
|
|
93
|
+
ok: shell.docker.ready
|
|
94
|
+
}),
|
|
95
|
+
shell.docker?.remediation && /* @__PURE__ */ jsx(Row, {
|
|
96
|
+
label: "Remediation",
|
|
97
|
+
value: shell.docker.remediation
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ jsx(Row, {
|
|
100
|
+
label: "Dangerous-command approval",
|
|
101
|
+
value: shell.approvalMode === "dangerous" ? "On — chat can allow once; unattended turns auto-deny" : "Off"
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
}) : /* @__PURE__ */ jsxs("p", {
|
|
105
|
+
role: "alert",
|
|
106
|
+
className: "px-4 py-3 text-sm text-warning sm:px-5",
|
|
107
|
+
children: ["Invalid shell-security configuration: ", shell.error]
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function Row({ label, value, ok }) {
|
|
112
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
113
|
+
className: "grid gap-1 py-3 sm:grid-cols-[14rem_1fr] sm:gap-4",
|
|
114
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
115
|
+
className: "text-muted-foreground",
|
|
116
|
+
children: label
|
|
117
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
118
|
+
className: ok === void 0 ? "font-medium" : ok ? "text-success" : "text-warning",
|
|
119
|
+
children: value
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/routes/config/system.tsx?tsr-split=component
|
|
125
|
+
function SystemPage() {
|
|
126
|
+
const { ok, runtime } = Route.useLoaderData();
|
|
127
|
+
return /* @__PURE__ */ jsxs(ConfigPage, {
|
|
128
|
+
title: "System",
|
|
129
|
+
description: "The installation itself: its health, how Agents run commands, and a backup of everything.",
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ jsx(InstallationReadinessCard, { report: { ok } }),
|
|
132
|
+
/* @__PURE__ */ jsx(RuntimeCard, { shell: runtime }),
|
|
133
|
+
/* @__PURE__ */ jsx(BackupCard, {})
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
export { SystemPage as component };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-CcLbajrF.js";
|
|
3
|
+
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
|
+
//#region src/routes/config/system.tsx
|
|
5
|
+
var $$splitComponentImporter = () => import("./system-CZ2qzBz3.js");
|
|
6
|
+
var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
|
|
7
|
+
var Route = createFileRoute("/config/system")({
|
|
8
|
+
loader: () => fetchSystem(),
|
|
9
|
+
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Route as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-B_ZRIIrT.js";
|
|
4
|
+
//#region src/routes/config/system.tsx?tss-serverfn-split
|
|
5
|
+
var fetchSystem_createServerFn_handler = createServerRpc({
|
|
6
|
+
id: "58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7",
|
|
7
|
+
name: "fetchSystem",
|
|
8
|
+
filename: "src/routes/config/system.tsx"
|
|
9
|
+
}, (opts) => fetchSystem.__executeServer(opts));
|
|
10
|
+
var fetchSystem = createServerFn({ method: "GET" }).handler(fetchSystem_createServerFn_handler, async () => {
|
|
11
|
+
const health = await daemonClient().get("/api/health/details");
|
|
12
|
+
return {
|
|
13
|
+
ok: health.ok,
|
|
14
|
+
runtime: health.shellSecurity
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { fetchSystem_createServerFn_handler };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-B79K2KEW.js";
|
|
3
3
|
import { t as TeamForm } from "./TeamForm-CvQAs2FA.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as Route } from "./teams-
|
|
4
|
+
import { a as PageHeader, i as ItemRow, l as StatusBadge, n as EmptyState, o as PageShell, r as ItemList, s as SectionCard } from "./createSsrRpc-CcLbajrF.js";
|
|
5
|
+
import { t as Route } from "./teams-Bp2tERZe.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|