bazilion 0.27.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 +651 -309
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +2105 -997
- 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-CGld_wCK.js → ConfigPage-CIh3ohea.js} +4 -4
- package/dist/web/server/assets/ConfirmDialog-B79K2KEW.js +52 -0
- package/dist/web/server/assets/ConnectionsView-BIMYdp9C.js +710 -0
- package/dist/web/server/assets/{ConfirmDialog-LdVlEanK.js → Dialog-CVqpXxuN.js} +3 -50
- package/dist/web/server/assets/{FieldRow-Dah2KKqo.js → FieldRow-CHVhX2rS.js} +4 -4
- package/dist/web/server/assets/{ModelSelect-Vwro6OkL.js → ModelSelect-DrZrdndo.js} +7 -7
- package/dist/web/server/assets/Rail-Cg-efcpA.js +698 -0
- package/dist/web/server/assets/{SectionTabs-CqFg9Vwx.js → SectionTabs-DrcgVeZd.js} +4 -18
- package/dist/web/server/assets/Segmented-3ZLdqa5U.js +18 -0
- package/dist/web/server/assets/{SkillFindings-Bd6e81Wu.js → SkillFindings-DSDiL6hn.js} +1 -1
- package/dist/web/server/assets/{SpawnDialog-BGNaMfFb.js → SpawnDialog-BUUlLxE9.js} +25 -7
- package/dist/web/server/assets/{TeamForm-C93tpn9r.js → TeamForm-CvQAs2FA.js} +1 -1
- package/dist/web/server/assets/TeamThread-5CjVPcDr.js +190 -0
- package/dist/web/server/assets/{UnsavedChangesGuard-Dm4a27_5.js → UnsavedChangesGuard-CyF2Z9p1.js} +8 -4
- package/dist/web/server/assets/{TeamPolicyEditor-BHS3J0R9.js → _id-0fEWiVZX.js} +114 -263
- package/dist/web/server/assets/{_id-B0x1ffz3.js → _id-8bsYEcGg.js} +2 -2
- package/dist/web/server/assets/{_id-sW6zXrTP.js → _id-BvAaRSUW.js} +2 -2
- package/dist/web/server/assets/{_id-lOVnT5sS.js → _id-Dg6M_qfr.js} +6 -6
- package/dist/web/server/assets/{_id-ByiXeIPS.js → _id-Dji7xr9C.js} +2 -2
- package/dist/web/server/assets/{_id-Bdf_Rg62.js → _id-TVruGcOd.js} +1 -1
- package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +214 -0
- package/dist/web/server/assets/{agents-D4tqK1kH.js → agents-BDA5yYZ2.js} +14 -15
- package/dist/web/server/assets/{agents-Cn9GkXFX.js → agents-BTDxmp-F.js} +2 -2
- package/dist/web/server/assets/{agents-BNPkidbH.js → agents-BnWgFo6o.js} +1 -1
- package/dist/web/server/assets/{agents-lOqc6VGd.js → agents-DM7guWF2.js} +2 -2
- package/dist/web/server/assets/{agents-DycxHDt8.js → agents-DktqUffG.js} +10 -10
- package/dist/web/server/assets/{agents-BK8OmB8g.js → agents-xgZ9rsac.js} +2 -2
- package/dist/web/server/assets/{attention-DULVjdmF.js → attention-CHQEQiZl.js} +2 -2
- package/dist/web/server/assets/{attention-YWnLKA2E.js → attention-Cr7puThv.js} +1 -1
- package/dist/web/server/assets/{attention-BIm455bC.js → attention-De3-ehuf.js} +6 -6
- package/dist/web/server/assets/{auth-DiN92ydD.js → auth-dJnrFW6y.js} +1 -1
- 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-CMSYKXWJ.js → createSsrRpc-CcLbajrF.js} +17 -2
- package/dist/web/server/assets/{daemon-client-DL2ik2Em.js → daemon-client-B_ZRIIrT.js} +2 -1
- package/dist/web/server/assets/{mcp-BwmpNQPN.js → mcp-C97uAZe1.js} +1 -1
- package/dist/web/server/assets/{mcp-B09_O05r.js → mcp-CO_tycXU.js} +9 -9
- package/dist/web/server/assets/{mcp-CqdTfXcn.js → mcp-D3OCoHtO.js} +2 -2
- package/dist/web/server/assets/router-Cs2Ak4II.js +892 -0
- package/dist/web/server/assets/routes-BSNOKE-C.js +7647 -0
- package/dist/web/server/assets/routes-BVwqgZGI.js +16 -0
- package/dist/web/server/assets/routes-CO4l-GJ0.js +57 -0
- package/dist/web/server/assets/{services-Q9HYQXXB.js → services-DZLxUSG8.js} +2 -2
- package/dist/web/server/assets/{services-BLvAvb8g.js → services-DsHRLL8q.js} +1 -1
- package/dist/web/server/assets/{services-tCfB1B83.js → services-DsvpaF3L.js} +4 -4
- package/dist/web/server/assets/{skills-BZg_txbf.js → skills-CggQJk6a.js} +2 -2
- package/dist/web/server/assets/{skills-C7fqRPna.js → skills-DKYV7PTk.js} +11 -11
- package/dist/web/server/assets/{skills-C_g8IKag.js → skills-h5aHa7Q8.js} +1 -1
- package/dist/web/server/assets/style-GYDODk2F.js +178 -0
- 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-BS-oweRl.js → teams-B6PzNcoy.js} +23 -15
- package/dist/web/server/assets/{teams-D4CaU76n.js → teams-B6lBhvdL.js} +2 -2
- package/dist/web/server/assets/{teams-BHkhnt6b.js → teams-Bp2tERZe.js} +2 -2
- package/dist/web/server/assets/{teams-DX2HmKqi.js → teams-BxnvFTyn.js} +1 -1
- package/dist/web/server/assets/{teams-BSflKBP8.js → teams-C-8iz-uV.js} +6 -6
- package/dist/web/server/assets/{teams-CNyB5nM9.js → teams-YrmyutM4.js} +1 -1
- package/dist/web/server/assets/{telegram-CrJiygCX.js → telegram-CXrP3hMp.js} +6 -6
- package/dist/web/server/assets/{telegram-BUdnc8oF.js → telegram-D2RZriz_.js} +2 -2
- package/dist/web/server/assets/{telegram-C4v1HhyJ.js → telegram-Gy7_9yih.js} +1 -1
- package/dist/web/server/assets/{tokens-DqldzPUq.js → tokens-C-oDTqnp.js} +2 -2
- package/dist/web/server/assets/{tokens-B1twAJdd.js → tokens-CEdl8puR.js} +1 -1
- package/dist/web/server/assets/{tokens-DdjEyALj.js → tokens-DSLwQ1Pw.js} +10 -10
- 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/assets/workspace-DeEYMPDX.js +658 -0
- package/dist/web/server/server.js +30 -74
- package/dist/worker.js +78 -36
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AgentAvatar-DWx-bM6n.js +0 -1
- package/dist/web/client/assets/ChatPane-DOV_HJg-.js +0 -72
- package/dist/web/client/assets/ConfigPage-Dfu9DzFX.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-536ziJ5P.js +0 -1
- package/dist/web/client/assets/FieldRow-z1JqCdqn.js +0 -1
- package/dist/web/client/assets/ModelSelect-CvOHjUyB.js +0 -1
- package/dist/web/client/assets/ResultCard-X4nTbjYY.js +0 -1
- package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +0 -1
- package/dist/web/client/assets/SkillFindings-8LX6bYf_.js +0 -1
- package/dist/web/client/assets/SkillsPicker-Cr87y_W-.js +0 -1
- package/dist/web/client/assets/SpawnDialog-DoZl-yes.js +0 -1
- package/dist/web/client/assets/SpawnTeamModal-C638hEoN.js +0 -1
- package/dist/web/client/assets/Tabs-D0LgBNIk.js +0 -1
- package/dist/web/client/assets/TeamForm-C-WzvOl4.js +0 -1
- package/dist/web/client/assets/TeamPolicyEditor-CSKBx0oK.js +0 -7
- package/dist/web/client/assets/UnsavedChangesGuard-GC-vzw7h.js +0 -1
- package/dist/web/client/assets/_id-BKLynswT.js +0 -1
- package/dist/web/client/assets/_id-BYM_NORr.js +0 -1
- package/dist/web/client/assets/_id-Cxa98a9m.js +0 -1
- package/dist/web/client/assets/_id-D4hV1U1t.js +0 -1
- package/dist/web/client/assets/agent-actions-CXQCoxKO.js +0 -1
- package/dist/web/client/assets/agents-BxPS1_Bp.js +0 -1
- package/dist/web/client/assets/agents-GozAWW-l.js +0 -1
- package/dist/web/client/assets/attention-Cz9rZcrr.js +0 -1
- package/dist/web/client/assets/chevron-right-CPAb1zac.js +0 -1
- package/dist/web/client/assets/config-9vv9Lipb.js +0 -3
- package/dist/web/client/assets/inbox-DHLArXxl.js +0 -1
- package/dist/web/client/assets/index-1YXquAq8.js +0 -52
- package/dist/web/client/assets/jsx-runtime-bzQ4Vb5N.js +0 -1
- package/dist/web/client/assets/learning-PvtXm8Ne.js +0 -1
- package/dist/web/client/assets/login-DIJpNQFo.js +0 -1
- package/dist/web/client/assets/mcp-pKBL0xIf.js +0 -1
- package/dist/web/client/assets/members-DHWsgsEs.js +0 -1
- package/dist/web/client/assets/memory-CEVppPyU.js +0 -1
- package/dist/web/client/assets/plus-BaIRdB10.js +0 -1
- package/dist/web/client/assets/policy-DEh4BLSw.js +0 -1
- package/dist/web/client/assets/preload-helper-eUUcpe2S.js +0 -1
- package/dist/web/client/assets/results-DgJPjEZF.js +0 -1
- package/dist/web/client/assets/review-BbshafTQ.js +0 -1
- package/dist/web/client/assets/route-Ccb8v41z.js +0 -1
- package/dist/web/client/assets/route-D1d6kCEV.js +0 -1
- package/dist/web/client/assets/routes-g7V4ru7T.js +0 -1
- package/dist/web/client/assets/services-B2f7e5jV.js +0 -1
- package/dist/web/client/assets/settings-B6elpcYm.js +0 -1
- package/dist/web/client/assets/skills-CngE7TF8.js +0 -1
- package/dist/web/client/assets/styles-xUnZ-ep_.css +0 -2
- package/dist/web/client/assets/teams-BdJZXOan.js +0 -1
- package/dist/web/client/assets/teams-c496ISsT.js +0 -1
- package/dist/web/client/assets/telegram-B_-hK6EC.js +0 -1
- package/dist/web/client/assets/tokens-CKz8gx4-.js +0 -1
- package/dist/web/client/assets/triggers-DCEPciGW.js +0 -1
- package/dist/web/client/assets/welcome-D-zVOLGA.js +0 -1
- package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +0 -37
- package/dist/web/server/assets/ChatPane-De_FPEoD.js +0 -1887
- package/dist/web/server/assets/ResultCard-CZn1w4KA.js +0 -97
- package/dist/web/server/assets/Sidebar-puq47KyR.js +0 -430
- package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +0 -97
- package/dist/web/server/assets/_id-BR6tnR6I.js +0 -23
- package/dist/web/server/assets/_id-Bm611NQz.js +0 -13
- package/dist/web/server/assets/_id-D5UCoyES.js +0 -359
- package/dist/web/server/assets/_id-DHx5UmmL.js +0 -12
- package/dist/web/server/assets/_id-DLpGmOVm.js +0 -19
- package/dist/web/server/assets/_id-Y5ctILG2.js +0 -13
- package/dist/web/server/assets/_id-dDA0pdVo.js +0 -54
- package/dist/web/server/assets/_tanstack-start-manifest_v-B8u80HjK.js +0 -292
- package/dist/web/server/assets/agent-actions-BBdFVdoa.js +0 -20
- package/dist/web/server/assets/api-WWxPqx67.js +0 -85
- package/dist/web/server/assets/config-BNEgu7WG.js +0 -798
- package/dist/web/server/assets/config-C1VB28se.js +0 -12
- package/dist/web/server/assets/config-TdVqnqNL.js +0 -25
- package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +0 -16
- package/dist/web/server/assets/inbox-4Vj5jTT8.js +0 -245
- package/dist/web/server/assets/inbox-D4IqUv3l.js +0 -38
- package/dist/web/server/assets/inbox-Dle24AfV.js +0 -23
- package/dist/web/server/assets/learning-BScq7VbO.js +0 -12
- package/dist/web/server/assets/learning-CBWFEnhg.js +0 -263
- package/dist/web/server/assets/learning-DWAKevhF.js +0 -25
- package/dist/web/server/assets/members-B8QBF6TF.js +0 -12
- package/dist/web/server/assets/members-DsF02Wp7.js +0 -12
- package/dist/web/server/assets/members-tWZA9b15.js +0 -36
- package/dist/web/server/assets/memory-BNN0b-0x.js +0 -12
- package/dist/web/server/assets/memory-CTl1E1Rm.js +0 -267
- package/dist/web/server/assets/memory-CV5uCBb2.js +0 -12
- package/dist/web/server/assets/policy-C9M6zV6w.js +0 -79
- package/dist/web/server/assets/policy-h-6NpU3m.js +0 -19
- package/dist/web/server/assets/policy-xEw9X0DK.js +0 -12
- package/dist/web/server/assets/results-D3A3UA4d.js +0 -182
- package/dist/web/server/assets/results-D6Ui5S8D.js +0 -12
- package/dist/web/server/assets/results-DWmxvfyn.js +0 -15
- package/dist/web/server/assets/review-CyQky-WQ.js +0 -40
- package/dist/web/server/assets/review-Sq0GGcPV.js +0 -322
- package/dist/web/server/assets/review-XWbSF8cF.js +0 -12
- package/dist/web/server/assets/route-BErtkz6t.js +0 -19
- package/dist/web/server/assets/route-CLoV-An_.js +0 -48
- package/dist/web/server/assets/route-WQ19JkBa.js +0 -19
- package/dist/web/server/assets/route-dEK_2GLj.js +0 -203
- package/dist/web/server/assets/route-iHTkhO81.js +0 -16
- package/dist/web/server/assets/route-zs8uUQtB.js +0 -16
- package/dist/web/server/assets/router-BI9gmY3S.js +0 -751
- package/dist/web/server/assets/routes-081s4n24.js +0 -45
- package/dist/web/server/assets/routes-CWo5WPsr.js +0 -15
- package/dist/web/server/assets/routes-Cqp1ufHm.js +0 -56
- package/dist/web/server/assets/settings-CVaGv-xF.js +0 -12
- package/dist/web/server/assets/settings-D9viV-86.js +0 -561
- package/dist/web/server/assets/settings-DaZNZ_CC.js +0 -27
- package/dist/web/server/assets/triggers-B7LW784F.js +0 -214
- package/dist/web/server/assets/triggers-C5sMCZXv2.js +0 -12
- package/dist/web/server/assets/triggers-DMfVdImD.js +0 -12
- package/dist/web/server/assets/welcome-D0d38Pzx.js +0 -93
- package/dist/web/client/assets/{TeamPolicyEditor-DLioOiRN.css → style-DLioOiRN.css} +0 -0
- package/dist/web/server/assets/{start-DTX6aKCi.js → start-DhW7sy23.js} +1 -1
|
@@ -0,0 +1,892 @@
|
|
|
1
|
+
import { r as readCookie } from "./cookies-HnTYjKRp.js";
|
|
2
|
+
import { E as errorMessage, c as parseWorkspaceSearch, d as Button, f as AgentAvatar, m as agentState, w as api } from "./workspace-DeEYMPDX.js";
|
|
3
|
+
import { n as publicOriginConfig } from "./public-origin-BpDkdS5Q.js";
|
|
4
|
+
import { t as DAEMON_BASE_URL } from "./daemon-client-B_ZRIIrT.js";
|
|
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
|
+
import { useEffect, useMemo, useState } from "react";
|
|
24
|
+
import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, redirect, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
|
|
25
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { BellRing, Bot, ChevronDown, LayoutTemplate, LogOut, Search, Settings2, SlidersHorizontal, Sparkles, UsersRound } from "lucide-react";
|
|
27
|
+
import { Dialog, DropdownMenu } from "radix-ui";
|
|
28
|
+
//#region src/components/RouteStates.tsx
|
|
29
|
+
/** The router's error view for every route: a loader failed. The top nav stays usable. */
|
|
30
|
+
function RouteErrorState({ error }) {
|
|
31
|
+
const router = useRouter();
|
|
32
|
+
return /* @__PURE__ */ jsx(PageShell, { children: /* @__PURE__ */ jsxs("section", {
|
|
33
|
+
role: "alert",
|
|
34
|
+
className: "mx-auto my-10 w-full max-w-2xl rounded-md border border-rose-baziu bg-snow p-6",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsx("h1", {
|
|
37
|
+
className: "text-2xl",
|
|
38
|
+
children: "Could not load this page"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx("pre", {
|
|
41
|
+
className: "mt-4 overflow-auto whitespace-pre-wrap rounded-md bg-ivory p-3 text-xs",
|
|
42
|
+
children: error.message
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: "mt-4 flex flex-wrap gap-2",
|
|
46
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
47
|
+
variant: "primary",
|
|
48
|
+
onClick: () => void router.invalidate(),
|
|
49
|
+
children: "Retry"
|
|
50
|
+
}), /* @__PURE__ */ jsx("a", {
|
|
51
|
+
className: "ghost-btn",
|
|
52
|
+
href: "/",
|
|
53
|
+
children: "Home"
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}) });
|
|
58
|
+
}
|
|
59
|
+
/** The router's pending view while a loader runs. */
|
|
60
|
+
function RoutePendingState() {
|
|
61
|
+
return /* @__PURE__ */ jsx(PageShell, { children: /* @__PURE__ */ jsxs("div", {
|
|
62
|
+
"aria-busy": "true",
|
|
63
|
+
className: "my-10 flex items-center justify-center gap-3",
|
|
64
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
className: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-fawn border-t-transparent"
|
|
67
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: "text-sm text-mocha",
|
|
69
|
+
children: "Loading…"
|
|
70
|
+
})]
|
|
71
|
+
}) });
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/Footer.tsx
|
|
75
|
+
function Footer() {
|
|
76
|
+
return /* @__PURE__ */ jsxs("footer", {
|
|
77
|
+
className: "mx-auto mt-14 flex w-full max-w-[1500px] shrink-0 flex-col items-center justify-between gap-3 border-t border-frost py-5 text-xs text-mocha-light sm:flex-row",
|
|
78
|
+
children: [/* @__PURE__ */ jsxs(Link, {
|
|
79
|
+
to: "/",
|
|
80
|
+
className: "group inline-flex items-center gap-2 rounded-lg text-charcoal transition-opacity hover:text-charcoal hover:opacity-80",
|
|
81
|
+
children: [/* @__PURE__ */ jsx(BaziuLogo, { className: "h-6 w-6 transition-transform duration-300 group-hover:rotate-[-8deg]" }), /* @__PURE__ */ jsx("span", {
|
|
82
|
+
className: "font-display text-sm tracking-[-0.01em]",
|
|
83
|
+
children: "bazilion"
|
|
84
|
+
})]
|
|
85
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
86
|
+
className: "inline-flex items-center gap-1.5",
|
|
87
|
+
children: ["dedicated to Baziu", /* @__PURE__ */ jsx(PawIcon, {
|
|
88
|
+
className: "h-3 w-3 text-rose-baziu opacity-60",
|
|
89
|
+
"aria-hidden": "true"
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/JumpPalette.tsx
|
|
96
|
+
var PAGES = [
|
|
97
|
+
[
|
|
98
|
+
"Attention",
|
|
99
|
+
"Decisions and failures waiting for you",
|
|
100
|
+
"/attention"
|
|
101
|
+
],
|
|
102
|
+
[
|
|
103
|
+
"Agents",
|
|
104
|
+
"Every Agent, archived ones too",
|
|
105
|
+
"/agents"
|
|
106
|
+
],
|
|
107
|
+
[
|
|
108
|
+
"Teams",
|
|
109
|
+
"Register and remove Teams",
|
|
110
|
+
"/teams"
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
"Templates",
|
|
114
|
+
"Agent and Team templates",
|
|
115
|
+
"/templates"
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"Skills",
|
|
119
|
+
"Prompt skills",
|
|
120
|
+
"/skills"
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
"Setup",
|
|
124
|
+
"Models, providers, services, access",
|
|
125
|
+
"/config"
|
|
126
|
+
]
|
|
127
|
+
];
|
|
128
|
+
/** Destinations whose label or hint holds every word of the query. */
|
|
129
|
+
function filterDestinations(all, query) {
|
|
130
|
+
const words = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
131
|
+
if (words.length === 0) return [...all];
|
|
132
|
+
return all.filter((item) => {
|
|
133
|
+
const text = `${item.label} ${item.hint}`.toLowerCase();
|
|
134
|
+
return words.every((word) => text.includes(word));
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function JumpPalette({ open, onClose }) {
|
|
138
|
+
const navigate = useNavigate();
|
|
139
|
+
const location = useRouterState({ select: (state) => state.location });
|
|
140
|
+
const [query, setQuery] = useState("");
|
|
141
|
+
const [active, setActive] = useState(0);
|
|
142
|
+
const [agents, setAgents] = useState([]);
|
|
143
|
+
const [teams, setTeams] = useState([]);
|
|
144
|
+
const [activity, setActivity] = useState([]);
|
|
145
|
+
useEffect(() => {
|
|
146
|
+
if (!open) return;
|
|
147
|
+
setQuery("");
|
|
148
|
+
setActive(0);
|
|
149
|
+
const controller = new AbortController();
|
|
150
|
+
const signal = controller.signal;
|
|
151
|
+
Promise.all([
|
|
152
|
+
api("/api/agents", { signal }),
|
|
153
|
+
api("/api/teams", { signal }),
|
|
154
|
+
api("/api/activity", { signal })
|
|
155
|
+
]).then(([nextAgents, nextTeams, nextActivity]) => {
|
|
156
|
+
setAgents(nextAgents);
|
|
157
|
+
setTeams(nextTeams);
|
|
158
|
+
setActivity(nextActivity.agents);
|
|
159
|
+
}).catch(() => {});
|
|
160
|
+
return () => controller.abort();
|
|
161
|
+
}, [open]);
|
|
162
|
+
const shown = filterDestinations(useMemo(() => {
|
|
163
|
+
const teamName = new Map(teams.map((team) => [team.id, team.name]));
|
|
164
|
+
const states = new Map(activity.map((entry) => [entry.agentId, entry]));
|
|
165
|
+
const here = location.pathname === "/" ? parseWorkspaceSearch(location.search) : void 0;
|
|
166
|
+
const hereTeam = here?.team ?? agents.find((agent) => agent.id === here?.agent)?.teamId ?? void 0;
|
|
167
|
+
const list = agents.map((agent) => ({
|
|
168
|
+
key: `agent:${agent.id}`,
|
|
169
|
+
group: "Agents",
|
|
170
|
+
label: agent.name,
|
|
171
|
+
hint: `${teamName.get(agent.teamId) ?? agent.teamId} · ${agentState(states.get(agent.id), void 0).text}`,
|
|
172
|
+
agent,
|
|
173
|
+
search: { agent: agent.id }
|
|
174
|
+
}));
|
|
175
|
+
for (const team of teams) list.push({
|
|
176
|
+
key: `team:${team.id}`,
|
|
177
|
+
group: "Teams",
|
|
178
|
+
label: team.name,
|
|
179
|
+
hint: "Members, USER.md, memory",
|
|
180
|
+
search: {
|
|
181
|
+
team: team.id,
|
|
182
|
+
panel: "team"
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
if (hereTeam) {
|
|
186
|
+
const name = teamName.get(hereTeam) ?? hereTeam;
|
|
187
|
+
const keep = here?.agent ? { agent: here.agent } : { team: hereTeam };
|
|
188
|
+
list.push({
|
|
189
|
+
key: "view:connections",
|
|
190
|
+
group: "Go to",
|
|
191
|
+
label: "Connections",
|
|
192
|
+
hint: `${name} · who may message whom`,
|
|
193
|
+
search: {
|
|
194
|
+
...keep,
|
|
195
|
+
team: hereTeam,
|
|
196
|
+
view: "connections"
|
|
197
|
+
}
|
|
198
|
+
}, {
|
|
199
|
+
key: "view:changes",
|
|
200
|
+
group: "Go to",
|
|
201
|
+
label: "Changes",
|
|
202
|
+
hint: `${name} · what changed in the workspace`,
|
|
203
|
+
search: {
|
|
204
|
+
...keep,
|
|
205
|
+
team: hereTeam,
|
|
206
|
+
view: "changes"
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
key: "view:files",
|
|
210
|
+
group: "Go to",
|
|
211
|
+
label: "Files",
|
|
212
|
+
hint: `${name} · delivered files`,
|
|
213
|
+
search: {
|
|
214
|
+
...keep,
|
|
215
|
+
team: hereTeam,
|
|
216
|
+
view: "files"
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
for (const [label, hint, path] of PAGES) list.push({
|
|
221
|
+
key: `page:${path}`,
|
|
222
|
+
group: "Manage",
|
|
223
|
+
label,
|
|
224
|
+
hint,
|
|
225
|
+
path
|
|
226
|
+
});
|
|
227
|
+
return list;
|
|
228
|
+
}, [
|
|
229
|
+
agents,
|
|
230
|
+
teams,
|
|
231
|
+
activity,
|
|
232
|
+
location
|
|
233
|
+
]), query);
|
|
234
|
+
const current = Math.min(active, Math.max(shown.length - 1, 0));
|
|
235
|
+
function go(destination) {
|
|
236
|
+
if (!destination) return;
|
|
237
|
+
onClose();
|
|
238
|
+
if (destination.path) navigate({ to: destination.path });
|
|
239
|
+
else navigate({
|
|
240
|
+
to: "/",
|
|
241
|
+
search: destination.search ?? {}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
return /* @__PURE__ */ jsx(Dialog.Root, {
|
|
245
|
+
open,
|
|
246
|
+
onOpenChange: (next) => !next && onClose(),
|
|
247
|
+
children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Overlay, { className: "fixed inset-0 z-50 bg-chocolate/30 data-[state=open]:animate-in data-[state=open]:fade-in-0" }), /* @__PURE__ */ jsxs(Dialog.Content, {
|
|
248
|
+
"aria-describedby": void 0,
|
|
249
|
+
className: "fixed left-1/2 top-[12vh] z-50 flex max-h-[70vh] w-[calc(100%-2rem)] max-w-xl -translate-x-1/2 flex-col overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-baziu-lg outline-none",
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ jsx(Dialog.Title, {
|
|
252
|
+
className: "sr-only",
|
|
253
|
+
children: "Jump to"
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ jsxs("div", {
|
|
256
|
+
className: "flex items-center gap-2.5 border-b border-border px-4 py-3",
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ jsx(Search, {
|
|
259
|
+
className: "size-4 shrink-0 text-muted-foreground",
|
|
260
|
+
"aria-hidden": "true"
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ jsx("input", {
|
|
263
|
+
autoFocus: true,
|
|
264
|
+
"aria-label": "Jump to",
|
|
265
|
+
role: "combobox",
|
|
266
|
+
"aria-expanded": "true",
|
|
267
|
+
"aria-controls": "jump-results",
|
|
268
|
+
"aria-activedescendant": shown[current] ? `jump-${shown[current].key}` : void 0,
|
|
269
|
+
value: query,
|
|
270
|
+
placeholder: "Jump to an agent, team or page",
|
|
271
|
+
onChange: (event) => {
|
|
272
|
+
setQuery(event.target.value);
|
|
273
|
+
setActive(0);
|
|
274
|
+
},
|
|
275
|
+
onKeyDown: (event) => {
|
|
276
|
+
if (event.key === "ArrowDown") {
|
|
277
|
+
event.preventDefault();
|
|
278
|
+
setActive(Math.min(current + 1, shown.length - 1));
|
|
279
|
+
} else if (event.key === "ArrowUp") {
|
|
280
|
+
event.preventDefault();
|
|
281
|
+
setActive(Math.max(current - 1, 0));
|
|
282
|
+
} else if (event.key === "Enter") {
|
|
283
|
+
event.preventDefault();
|
|
284
|
+
go(shown[current]);
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
className: "min-h-0 min-w-0 flex-1 border-0 bg-transparent p-0 text-[0.95rem] shadow-none outline-none focus:bg-transparent focus:shadow-none"
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ jsx("kbd", {
|
|
290
|
+
className: "rounded-md border border-border bg-muted px-1.5 py-0.5 font-mono text-[0.7rem] text-muted-foreground",
|
|
291
|
+
children: "Esc"
|
|
292
|
+
})
|
|
293
|
+
]
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ jsxs("div", {
|
|
296
|
+
id: "jump-results",
|
|
297
|
+
role: "listbox",
|
|
298
|
+
"aria-label": "Destinations",
|
|
299
|
+
className: "overflow-y-auto p-1.5",
|
|
300
|
+
children: [shown.length === 0 && /* @__PURE__ */ jsxs("p", {
|
|
301
|
+
className: "px-3 py-6 text-center text-sm text-muted-foreground",
|
|
302
|
+
children: [
|
|
303
|
+
"Nothing matches “",
|
|
304
|
+
query,
|
|
305
|
+
"”."
|
|
306
|
+
]
|
|
307
|
+
}), shown.map((destination, index) => /* @__PURE__ */ jsxs("div", { children: [destination.group !== shown[index - 1]?.group && /* @__PURE__ */ jsx("div", {
|
|
308
|
+
className: "px-2.5 pb-1 pt-2 text-[0.7rem] font-bold uppercase tracking-[0.08em] text-muted-foreground",
|
|
309
|
+
children: destination.group
|
|
310
|
+
}), /* @__PURE__ */ jsxs("button", {
|
|
311
|
+
type: "button",
|
|
312
|
+
id: `jump-${destination.key}`,
|
|
313
|
+
role: "option",
|
|
314
|
+
"aria-selected": index === current,
|
|
315
|
+
onMouseMove: () => setActive(index),
|
|
316
|
+
onClick: () => go(destination),
|
|
317
|
+
className: `unstyled flex min-h-10 w-full items-center gap-2.5 rounded-lg px-2.5 py-1.5 text-left text-sm ${index === current ? "bg-accent text-accent-foreground" : "text-foreground"}`,
|
|
318
|
+
children: [
|
|
319
|
+
destination.agent && /* @__PURE__ */ jsx(AgentAvatar, {
|
|
320
|
+
identity: destination.agent.identity,
|
|
321
|
+
size: 24
|
|
322
|
+
}),
|
|
323
|
+
/* @__PURE__ */ jsx("span", {
|
|
324
|
+
className: "font-semibold",
|
|
325
|
+
children: destination.label
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ jsx("span", {
|
|
328
|
+
className: "ml-auto min-w-0 truncate text-xs text-muted-foreground",
|
|
329
|
+
children: destination.hint
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
})] }, destination.key))]
|
|
333
|
+
})
|
|
334
|
+
]
|
|
335
|
+
})] })
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/components/TopBar.tsx
|
|
340
|
+
var MANAGE_LINKS = [
|
|
341
|
+
{
|
|
342
|
+
href: "/agents",
|
|
343
|
+
label: "Agents",
|
|
344
|
+
description: "Every Agent: archive, restore, delete.",
|
|
345
|
+
icon: Bot
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
href: "/teams",
|
|
349
|
+
label: "Teams",
|
|
350
|
+
description: "Register a Team or remove an empty one.",
|
|
351
|
+
icon: UsersRound
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
href: "/templates",
|
|
355
|
+
label: "Templates",
|
|
356
|
+
description: "Reusable Agent behavior and Team rosters.",
|
|
357
|
+
icon: LayoutTemplate
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
href: "/skills",
|
|
361
|
+
label: "Skills",
|
|
362
|
+
description: "Prompt skills available to your agents.",
|
|
363
|
+
icon: Sparkles
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
href: "/config",
|
|
367
|
+
label: "Setup",
|
|
368
|
+
description: "Models and providers, services, integrations, access.",
|
|
369
|
+
icon: Settings2
|
|
370
|
+
}
|
|
371
|
+
];
|
|
372
|
+
function TopBar() {
|
|
373
|
+
const pathname = useRouterState({ select: (state) => state.location.pathname });
|
|
374
|
+
const [attention, setAttention] = useState(null);
|
|
375
|
+
const [logoutError, setLogoutError] = useState(null);
|
|
376
|
+
const [paletteOpen, setPaletteOpen] = useState(false);
|
|
377
|
+
const [mac, setMac] = useState(false);
|
|
378
|
+
useEffect(() => setMac(/Mac|iPhone|iPad/.test(navigator.userAgent)), []);
|
|
379
|
+
const setupOnly = pathname === "/welcome";
|
|
380
|
+
useEffect(() => {
|
|
381
|
+
if (pathname === "/login" || pathname === "/welcome") return;
|
|
382
|
+
const controller = new AbortController();
|
|
383
|
+
api("/api/attention/summary", { signal: controller.signal }).then(setAttention).catch(() => {});
|
|
384
|
+
return () => controller.abort();
|
|
385
|
+
}, [pathname]);
|
|
386
|
+
useEffect(() => {
|
|
387
|
+
if (setupOnly) return;
|
|
388
|
+
const onKey = (event) => {
|
|
389
|
+
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "k") {
|
|
390
|
+
event.preventDefault();
|
|
391
|
+
setPaletteOpen((open) => !open);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
window.addEventListener("keydown", onKey);
|
|
395
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
396
|
+
}, [setupOnly]);
|
|
397
|
+
const attentionActive = pathname === "/attention" || pathname.startsWith("/attention/");
|
|
398
|
+
const openAttention = attention?.openTotal ?? 0;
|
|
399
|
+
const manageActive = MANAGE_LINKS.some((link) => pathname === link.href || pathname.startsWith(`${link.href}/`));
|
|
400
|
+
async function logout() {
|
|
401
|
+
setLogoutError(null);
|
|
402
|
+
try {
|
|
403
|
+
await api("/api/logout", { method: "POST" });
|
|
404
|
+
window.location.assign("/login");
|
|
405
|
+
} catch (error) {
|
|
406
|
+
setLogoutError(errorMessage(error));
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return /* @__PURE__ */ jsxs("nav", {
|
|
410
|
+
"aria-label": "Primary navigation",
|
|
411
|
+
className: "relative mx-auto flex w-full max-w-[1800px] shrink-0 flex-wrap items-center gap-x-3 gap-y-2 border-b border-frost py-2.5",
|
|
412
|
+
children: [
|
|
413
|
+
/* @__PURE__ */ jsxs(Link, {
|
|
414
|
+
to: "/",
|
|
415
|
+
"aria-label": "Bazilion home",
|
|
416
|
+
className: "group flex min-w-0 items-center gap-2 rounded-lg text-charcoal transition-opacity hover:text-charcoal hover:opacity-80",
|
|
417
|
+
children: [/* @__PURE__ */ jsx(BaziuLogo, { className: "h-8 w-8 shrink-0 transition-transform duration-300 group-hover:rotate-[-8deg] group-hover:scale-[1.08]" }), /* @__PURE__ */ jsx("span", {
|
|
418
|
+
className: "truncate font-display text-[1.35rem] tracking-[-0.02em]",
|
|
419
|
+
children: "bazilion"
|
|
420
|
+
})]
|
|
421
|
+
}),
|
|
422
|
+
!setupOnly && /* @__PURE__ */ jsxs("button", {
|
|
423
|
+
type: "button",
|
|
424
|
+
onClick: () => setPaletteOpen(true),
|
|
425
|
+
"aria-label": "Jump to an agent, team or page",
|
|
426
|
+
className: "unstyled order-last flex h-9 min-w-0 basis-full items-center gap-2 rounded-[10px] border border-border bg-muted px-2.5 text-left text-sm text-mocha transition-colors hover:border-sapphire-light sm:order-none sm:ml-3 sm:max-w-sm sm:flex-1 sm:basis-60",
|
|
427
|
+
children: [
|
|
428
|
+
/* @__PURE__ */ jsx(Search, {
|
|
429
|
+
className: "size-4 shrink-0",
|
|
430
|
+
"aria-hidden": "true"
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ jsx("span", {
|
|
433
|
+
className: "min-w-0 flex-1 truncate",
|
|
434
|
+
children: "Jump to an agent, team or page"
|
|
435
|
+
}),
|
|
436
|
+
/* @__PURE__ */ jsx("kbd", {
|
|
437
|
+
className: "hidden rounded-md border border-border bg-card px-1.5 py-px font-mono text-[0.7rem] sm:inline",
|
|
438
|
+
children: mac ? "⌘K" : "Ctrl K"
|
|
439
|
+
})
|
|
440
|
+
]
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ jsxs("div", {
|
|
443
|
+
className: "ml-auto flex items-center gap-1",
|
|
444
|
+
children: [
|
|
445
|
+
/* @__PURE__ */ jsxs(Link, {
|
|
446
|
+
to: "/attention",
|
|
447
|
+
"aria-current": attentionActive ? "page" : void 0,
|
|
448
|
+
className: navButtonClass(attentionActive),
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ jsx(BellRing, {
|
|
451
|
+
className: "size-4 shrink-0",
|
|
452
|
+
"aria-hidden": "true"
|
|
453
|
+
}),
|
|
454
|
+
/* @__PURE__ */ jsx("span", {
|
|
455
|
+
className: "hidden sm:inline",
|
|
456
|
+
children: "Attention"
|
|
457
|
+
}),
|
|
458
|
+
openAttention > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
459
|
+
className: "inline-flex min-w-5 items-center justify-center rounded-full bg-danger px-1.5 py-0.5 text-xs font-semibold leading-4 text-primary-foreground",
|
|
460
|
+
"aria-hidden": "true",
|
|
461
|
+
children: openAttention > 99 ? "99+" : openAttention
|
|
462
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
463
|
+
className: "sr-only",
|
|
464
|
+
children: [
|
|
465
|
+
", ",
|
|
466
|
+
openAttention,
|
|
467
|
+
" open items"
|
|
468
|
+
]
|
|
469
|
+
})] })
|
|
470
|
+
]
|
|
471
|
+
}),
|
|
472
|
+
/* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [/* @__PURE__ */ jsx(DropdownMenu.Trigger, {
|
|
473
|
+
asChild: true,
|
|
474
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
475
|
+
type: "button",
|
|
476
|
+
className: navButtonClass(manageActive),
|
|
477
|
+
"aria-label": "Manage menu",
|
|
478
|
+
children: [
|
|
479
|
+
/* @__PURE__ */ jsx(SlidersHorizontal, {
|
|
480
|
+
className: "size-4 shrink-0",
|
|
481
|
+
"aria-hidden": "true"
|
|
482
|
+
}),
|
|
483
|
+
/* @__PURE__ */ jsx("span", {
|
|
484
|
+
className: "hidden sm:inline",
|
|
485
|
+
children: "Manage"
|
|
486
|
+
}),
|
|
487
|
+
/* @__PURE__ */ jsx(ChevronDown, {
|
|
488
|
+
className: "size-3 shrink-0 text-muted-foreground",
|
|
489
|
+
"aria-hidden": "true"
|
|
490
|
+
})
|
|
491
|
+
]
|
|
492
|
+
})
|
|
493
|
+
}), /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu.Content, {
|
|
494
|
+
align: "end",
|
|
495
|
+
sideOffset: 8,
|
|
496
|
+
collisionPadding: 12,
|
|
497
|
+
className: "z-50 w-[min(21rem,calc(100vw-1.5rem))] rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-baziu-lg outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
498
|
+
children: MANAGE_LINKS.map((link) => {
|
|
499
|
+
const ItemIcon = link.icon;
|
|
500
|
+
const itemActive = pathname === link.href || pathname.startsWith(`${link.href}/`);
|
|
501
|
+
return /* @__PURE__ */ jsx(DropdownMenu.Item, {
|
|
502
|
+
asChild: true,
|
|
503
|
+
children: /* @__PURE__ */ jsxs("a", {
|
|
504
|
+
href: link.href,
|
|
505
|
+
"aria-current": itemActive ? "page" : void 0,
|
|
506
|
+
className: `flex cursor-pointer items-start gap-3 rounded-lg px-2.5 py-2.5 outline-none transition-colors focus:bg-accent focus:text-accent-foreground ${itemActive ? "bg-accent/70 text-accent-foreground" : "text-foreground"}`,
|
|
507
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
508
|
+
className: "mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
509
|
+
children: /* @__PURE__ */ jsx(ItemIcon, {
|
|
510
|
+
className: "size-3.5",
|
|
511
|
+
"aria-hidden": "true"
|
|
512
|
+
})
|
|
513
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
514
|
+
className: "min-w-0 flex-1",
|
|
515
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
516
|
+
className: "block text-sm font-semibold",
|
|
517
|
+
children: link.label
|
|
518
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
519
|
+
className: "mt-0.5 block text-xs leading-5 text-muted-foreground",
|
|
520
|
+
children: link.description
|
|
521
|
+
})]
|
|
522
|
+
})]
|
|
523
|
+
})
|
|
524
|
+
}, link.href);
|
|
525
|
+
})
|
|
526
|
+
}) })] }),
|
|
527
|
+
/* @__PURE__ */ jsx(ThemeToggle, {}),
|
|
528
|
+
/* @__PURE__ */ jsx("button", {
|
|
529
|
+
type: "button",
|
|
530
|
+
onClick: () => void logout(),
|
|
531
|
+
"aria-label": "Log out",
|
|
532
|
+
title: "Log out",
|
|
533
|
+
className: "unstyled inline-flex h-9 w-9 items-center justify-center rounded-lg text-mocha hover:bg-ivory hover:text-sapphire",
|
|
534
|
+
children: /* @__PURE__ */ jsx(LogOut, {
|
|
535
|
+
className: "h-4 w-4",
|
|
536
|
+
"aria-hidden": "true"
|
|
537
|
+
})
|
|
538
|
+
})
|
|
539
|
+
]
|
|
540
|
+
}),
|
|
541
|
+
logoutError && /* @__PURE__ */ jsx("p", {
|
|
542
|
+
role: "alert",
|
|
543
|
+
className: "m-0 basis-full rounded-lg bg-danger/10 px-3 py-2 text-sm text-danger",
|
|
544
|
+
children: logoutError
|
|
545
|
+
}),
|
|
546
|
+
/* @__PURE__ */ jsx(JumpPalette, {
|
|
547
|
+
open: paletteOpen,
|
|
548
|
+
onClose: () => setPaletteOpen(false)
|
|
549
|
+
})
|
|
550
|
+
]
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
function navButtonClass(active) {
|
|
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
|
+
}
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/styles.css?url
|
|
558
|
+
var styles_default = "/assets/styles-BRSS6yrm.css";
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region src/routes/__root.tsx
|
|
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){}})();`;
|
|
562
|
+
var Route$2 = createRootRoute({
|
|
563
|
+
beforeLoad: async ({ location }) => {
|
|
564
|
+
const path = location.pathname;
|
|
565
|
+
if (PUBLIC_PATHS.has(path)) return;
|
|
566
|
+
if (path.startsWith("/api/")) return;
|
|
567
|
+
const auth = await fetchAuthState();
|
|
568
|
+
if (!auth.authed) throw redirect({ to: "/login" });
|
|
569
|
+
if (!isSetupOpen(path) && !auth.setupComplete) throw redirect({ to: "/welcome" });
|
|
570
|
+
},
|
|
571
|
+
head: () => ({
|
|
572
|
+
meta: [
|
|
573
|
+
{ charSet: "utf-8" },
|
|
574
|
+
{
|
|
575
|
+
name: "viewport",
|
|
576
|
+
content: "width=device-width, initial-scale=1"
|
|
577
|
+
},
|
|
578
|
+
{ title: "bazilion" }
|
|
579
|
+
],
|
|
580
|
+
links: [{
|
|
581
|
+
rel: "icon",
|
|
582
|
+
type: "image/svg+xml",
|
|
583
|
+
href: "/baziu.svg"
|
|
584
|
+
}, {
|
|
585
|
+
rel: "stylesheet",
|
|
586
|
+
href: styles_default
|
|
587
|
+
}]
|
|
588
|
+
}),
|
|
589
|
+
component: RootComponent,
|
|
590
|
+
notFoundComponent: NotFound
|
|
591
|
+
});
|
|
592
|
+
function NotFound() {
|
|
593
|
+
const pathname = useRouterState({ select: (s) => s.location.pathname });
|
|
594
|
+
return /* @__PURE__ */ jsx("div", {
|
|
595
|
+
className: "mx-auto max-w-2xl",
|
|
596
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
597
|
+
className: "card",
|
|
598
|
+
children: [
|
|
599
|
+
/* @__PURE__ */ jsx("h1", { children: "Not found" }),
|
|
600
|
+
/* @__PURE__ */ jsxs("p", {
|
|
601
|
+
className: "muted my-3",
|
|
602
|
+
children: [
|
|
603
|
+
"Nothing lives at ",
|
|
604
|
+
/* @__PURE__ */ jsx("code", { children: pathname }),
|
|
605
|
+
"."
|
|
606
|
+
]
|
|
607
|
+
}),
|
|
608
|
+
/* @__PURE__ */ jsx(Link, {
|
|
609
|
+
to: "/",
|
|
610
|
+
children: "Back to home"
|
|
611
|
+
})
|
|
612
|
+
]
|
|
613
|
+
})
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
function RootComponent() {
|
|
617
|
+
const pathname = useRouterState({ select: (s) => s.location.pathname });
|
|
618
|
+
const isLogin = pathname === "/login";
|
|
619
|
+
const isWorkspace = pathname === "/";
|
|
620
|
+
return /* @__PURE__ */ jsxs("html", {
|
|
621
|
+
lang: "en",
|
|
622
|
+
"data-layout": isWorkspace ? "workspace" : "page",
|
|
623
|
+
suppressHydrationWarning: true,
|
|
624
|
+
children: [/* @__PURE__ */ jsxs("head", { children: [/* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: THEME_INIT_SCRIPT } }), /* @__PURE__ */ jsx(HeadContent, {})] }), /* @__PURE__ */ jsxs("body", {
|
|
625
|
+
"data-layout": isWorkspace ? "workspace" : "page",
|
|
626
|
+
children: [
|
|
627
|
+
!isLogin && /* @__PURE__ */ jsx("a", {
|
|
628
|
+
href: "#main-content",
|
|
629
|
+
className: "sr-only z-[100] rounded-lg bg-primary px-4 py-2 font-semibold text-primary-foreground focus:not-sr-only focus:fixed focus:left-3 focus:top-3",
|
|
630
|
+
children: "Skip to main content"
|
|
631
|
+
}),
|
|
632
|
+
isLogin ? /* @__PURE__ */ jsx(Outlet, {}) : isWorkspace ? /* @__PURE__ */ jsxs("div", {
|
|
633
|
+
className: "flex h-dvh flex-col",
|
|
634
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
635
|
+
className: "px-3 sm:px-5",
|
|
636
|
+
children: /* @__PURE__ */ jsx(TopBar, {})
|
|
637
|
+
}), /* @__PURE__ */ jsx("main", {
|
|
638
|
+
id: "main-content",
|
|
639
|
+
tabIndex: -1,
|
|
640
|
+
className: "mx-auto min-h-0 w-full max-w-[1600px] flex-1 overflow-clip px-3 pb-3 sm:px-5 sm:pb-5",
|
|
641
|
+
children: /* @__PURE__ */ jsx(Outlet, {})
|
|
642
|
+
})]
|
|
643
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
644
|
+
className: "flex min-h-dvh flex-col",
|
|
645
|
+
children: [
|
|
646
|
+
/* @__PURE__ */ jsx("div", {
|
|
647
|
+
className: "px-3 sm:px-5",
|
|
648
|
+
children: /* @__PURE__ */ jsx(TopBar, {})
|
|
649
|
+
}),
|
|
650
|
+
/* @__PURE__ */ jsx("main", {
|
|
651
|
+
id: "main-content",
|
|
652
|
+
tabIndex: -1,
|
|
653
|
+
className: "mx-auto w-full max-w-[1500px] flex-1 px-4 py-9 sm:px-6 sm:py-12",
|
|
654
|
+
children: /* @__PURE__ */ jsx(Outlet, {})
|
|
655
|
+
}),
|
|
656
|
+
/* @__PURE__ */ jsx("div", {
|
|
657
|
+
className: "px-4 sm:px-6",
|
|
658
|
+
children: /* @__PURE__ */ jsx(Footer, {})
|
|
659
|
+
})
|
|
660
|
+
]
|
|
661
|
+
}),
|
|
662
|
+
/* @__PURE__ */ jsx(Scripts, {})
|
|
663
|
+
]
|
|
664
|
+
})]
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region src/routes/templates/index.tsx
|
|
669
|
+
var Route$1 = createFileRoute("/templates/")({ beforeLoad: () => {
|
|
670
|
+
throw redirect({ to: "/templates/agents" });
|
|
671
|
+
} });
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region src/routes/api/$.ts
|
|
674
|
+
var HOP_BY_HOP = [
|
|
675
|
+
"connection",
|
|
676
|
+
"keep-alive",
|
|
677
|
+
"proxy-authenticate",
|
|
678
|
+
"proxy-authorization",
|
|
679
|
+
"te",
|
|
680
|
+
"trailer",
|
|
681
|
+
"transfer-encoding",
|
|
682
|
+
"upgrade"
|
|
683
|
+
];
|
|
684
|
+
var STRIP_REQUEST = new Set([
|
|
685
|
+
...HOP_BY_HOP,
|
|
686
|
+
"host",
|
|
687
|
+
"cookie",
|
|
688
|
+
"content-length",
|
|
689
|
+
"forwarded",
|
|
690
|
+
"x-forwarded-for",
|
|
691
|
+
"x-forwarded-host",
|
|
692
|
+
"x-forwarded-proto",
|
|
693
|
+
"x-real-ip"
|
|
694
|
+
]);
|
|
695
|
+
var STRIP_RESPONSE = new Set([...HOP_BY_HOP, "set-cookie"]);
|
|
696
|
+
/**
|
|
697
|
+
* Fits a 25 MB chat attachment sent as base64 JSON and a 50 MB skill ZIP; the daemon applies its
|
|
698
|
+
* own per-route limits. Only a request carrying a credential (the session cookie or a bearer) gets
|
|
699
|
+
* it: the gateway buffers bodies before the daemon authenticates, and an anonymous request can
|
|
700
|
+
* only log in.
|
|
701
|
+
*/
|
|
702
|
+
var MAX_BODY = 64 * 1024 * 1024;
|
|
703
|
+
var MAX_ANONYMOUS_BODY = 64 * 1024;
|
|
704
|
+
/**
|
|
705
|
+
* The request body, buffered (an upstream 401 on a one-shot stream body surfaced as a gateway
|
|
706
|
+
* 500), or null when it is larger than `limit`.
|
|
707
|
+
*/
|
|
708
|
+
async function readBody(request, limit) {
|
|
709
|
+
if (Number(request.headers.get("content-length") ?? 0) > limit) return null;
|
|
710
|
+
const chunks = [];
|
|
711
|
+
if (!request.body) return new Blob(chunks);
|
|
712
|
+
const reader = request.body.getReader();
|
|
713
|
+
let size = 0;
|
|
714
|
+
for (;;) {
|
|
715
|
+
const { done, value } = await reader.read();
|
|
716
|
+
if (done) return new Blob(chunks);
|
|
717
|
+
size += value.byteLength;
|
|
718
|
+
if (size > limit) {
|
|
719
|
+
await reader.cancel("request body exceeds the gateway limit");
|
|
720
|
+
return null;
|
|
721
|
+
}
|
|
722
|
+
chunks.push(value);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
async function forward(request) {
|
|
726
|
+
const url = new URL(request.url);
|
|
727
|
+
const headers = new Headers();
|
|
728
|
+
for (const [name, value] of request.headers) if (!STRIP_REQUEST.has(name)) headers.set(name, value);
|
|
729
|
+
const origin = publicOriginConfig(process.env.BAZILION_PUBLIC_ORIGIN);
|
|
730
|
+
const cookies = request.headers.get("cookie");
|
|
731
|
+
const session = readCookie(cookies, origin.sessionCookie);
|
|
732
|
+
const forwarded = [origin.sessionCookie, origin.csrfCookie].map((name) => [name, readCookie(cookies, name)]).filter(([, value]) => value).map(([name, value]) => `${name}=${value}`);
|
|
733
|
+
if (forwarded.length > 0) headers.set("cookie", forwarded.join("; "));
|
|
734
|
+
const init = {
|
|
735
|
+
method: request.method,
|
|
736
|
+
headers,
|
|
737
|
+
redirect: "manual",
|
|
738
|
+
signal: request.signal
|
|
739
|
+
};
|
|
740
|
+
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
741
|
+
const body = await readBody(request, Boolean(session) || request.headers.has("authorization") ? MAX_BODY : MAX_ANONYMOUS_BODY);
|
|
742
|
+
if (!body) return new Response("request body too large", { status: 413 });
|
|
743
|
+
init.body = body;
|
|
744
|
+
}
|
|
745
|
+
const upstream = await fetch(`${DAEMON_BASE_URL}${url.pathname}${url.search}`, init);
|
|
746
|
+
const responseHeaders = new Headers();
|
|
747
|
+
for (const [name, value] of upstream.headers) if (!STRIP_RESPONSE.has(name)) responseHeaders.set(name, value);
|
|
748
|
+
for (const value of upstream.headers.getSetCookie()) responseHeaders.append("set-cookie", value);
|
|
749
|
+
return new Response(upstream.body, {
|
|
750
|
+
status: upstream.status,
|
|
751
|
+
statusText: upstream.statusText,
|
|
752
|
+
headers: responseHeaders
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
var Route = createFileRoute("/api/$")({ server: { handlers: {
|
|
756
|
+
GET: ({ request }) => forward(request),
|
|
757
|
+
POST: ({ request }) => forward(request),
|
|
758
|
+
PUT: ({ request }) => forward(request),
|
|
759
|
+
PATCH: ({ request }) => forward(request),
|
|
760
|
+
DELETE: ({ request }) => forward(request)
|
|
761
|
+
} } });
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region src/routeTree.gen.ts
|
|
764
|
+
var WelcomeRoute = Route$4.update({
|
|
765
|
+
id: "/welcome",
|
|
766
|
+
path: "/welcome",
|
|
767
|
+
getParentRoute: () => Route$2
|
|
768
|
+
});
|
|
769
|
+
var LoginRoute = Route$3.update({
|
|
770
|
+
id: "/login",
|
|
771
|
+
path: "/login",
|
|
772
|
+
getParentRoute: () => Route$2
|
|
773
|
+
});
|
|
774
|
+
var IndexRoute = Route$5.update({
|
|
775
|
+
id: "/",
|
|
776
|
+
path: "/",
|
|
777
|
+
getParentRoute: () => Route$2
|
|
778
|
+
});
|
|
779
|
+
var TemplatesIndexRoute = Route$1.update({
|
|
780
|
+
id: "/templates/",
|
|
781
|
+
path: "/templates/",
|
|
782
|
+
getParentRoute: () => Route$2
|
|
783
|
+
});
|
|
784
|
+
var TeamsIndexRoute = Route$6.update({
|
|
785
|
+
id: "/teams/",
|
|
786
|
+
path: "/teams/",
|
|
787
|
+
getParentRoute: () => Route$2
|
|
788
|
+
});
|
|
789
|
+
var SkillsIndexRoute = Route$7.update({
|
|
790
|
+
id: "/skills/",
|
|
791
|
+
path: "/skills/",
|
|
792
|
+
getParentRoute: () => Route$2
|
|
793
|
+
});
|
|
794
|
+
var ConfigIndexRoute = Route$8.update({
|
|
795
|
+
id: "/config/",
|
|
796
|
+
path: "/config/",
|
|
797
|
+
getParentRoute: () => Route$2
|
|
798
|
+
});
|
|
799
|
+
var AttentionIndexRoute = Route$9.update({
|
|
800
|
+
id: "/attention/",
|
|
801
|
+
path: "/attention/",
|
|
802
|
+
getParentRoute: () => Route$2
|
|
803
|
+
});
|
|
804
|
+
var AgentsIndexRoute = Route$10.update({
|
|
805
|
+
id: "/agents/",
|
|
806
|
+
path: "/agents/",
|
|
807
|
+
getParentRoute: () => Route$2
|
|
808
|
+
});
|
|
809
|
+
var ConfigTokensRoute = Route$11.update({
|
|
810
|
+
id: "/config/tokens",
|
|
811
|
+
path: "/config/tokens",
|
|
812
|
+
getParentRoute: () => Route$2
|
|
813
|
+
});
|
|
814
|
+
var ConfigSystemRoute = Route$12.update({
|
|
815
|
+
id: "/config/system",
|
|
816
|
+
path: "/config/system",
|
|
817
|
+
getParentRoute: () => Route$2
|
|
818
|
+
});
|
|
819
|
+
var ConfigServicesRoute = Route$13.update({
|
|
820
|
+
id: "/config/services",
|
|
821
|
+
path: "/config/services",
|
|
822
|
+
getParentRoute: () => Route$2
|
|
823
|
+
});
|
|
824
|
+
var ConfigMcpRoute = Route$14.update({
|
|
825
|
+
id: "/config/mcp",
|
|
826
|
+
path: "/config/mcp",
|
|
827
|
+
getParentRoute: () => Route$2
|
|
828
|
+
});
|
|
829
|
+
var ApiSplatRoute = Route.update({
|
|
830
|
+
id: "/api/$",
|
|
831
|
+
path: "/api/$",
|
|
832
|
+
getParentRoute: () => Route$2
|
|
833
|
+
});
|
|
834
|
+
var TemplatesTeamsIndexRoute = Route$15.update({
|
|
835
|
+
id: "/templates/teams/",
|
|
836
|
+
path: "/templates/teams/",
|
|
837
|
+
getParentRoute: () => Route$2
|
|
838
|
+
});
|
|
839
|
+
var TemplatesAgentsIndexRoute = Route$16.update({
|
|
840
|
+
id: "/templates/agents/",
|
|
841
|
+
path: "/templates/agents/",
|
|
842
|
+
getParentRoute: () => Route$2
|
|
843
|
+
});
|
|
844
|
+
var ConfigIntegrationsTelegramRoute = Route$17.update({
|
|
845
|
+
id: "/config/integrations/telegram",
|
|
846
|
+
path: "/config/integrations/telegram",
|
|
847
|
+
getParentRoute: () => Route$2
|
|
848
|
+
});
|
|
849
|
+
var TemplatesTeamsIdIndexRoute = Route$18.update({
|
|
850
|
+
id: "/templates/teams/$id/",
|
|
851
|
+
path: "/templates/teams/$id/",
|
|
852
|
+
getParentRoute: () => Route$2
|
|
853
|
+
});
|
|
854
|
+
var rootRouteChildren = {
|
|
855
|
+
IndexRoute,
|
|
856
|
+
LoginRoute,
|
|
857
|
+
WelcomeRoute,
|
|
858
|
+
ApiSplatRoute,
|
|
859
|
+
ConfigMcpRoute,
|
|
860
|
+
ConfigServicesRoute,
|
|
861
|
+
ConfigSystemRoute,
|
|
862
|
+
ConfigTokensRoute,
|
|
863
|
+
AgentsIndexRoute,
|
|
864
|
+
AttentionIndexRoute,
|
|
865
|
+
ConfigIndexRoute,
|
|
866
|
+
SkillsIndexRoute,
|
|
867
|
+
TeamsIndexRoute,
|
|
868
|
+
TemplatesIndexRoute,
|
|
869
|
+
ConfigIntegrationsTelegramRoute,
|
|
870
|
+
TemplatesAgentsIndexRoute,
|
|
871
|
+
TemplatesTeamsIndexRoute,
|
|
872
|
+
TemplatesAgentsIdIndexRoute: Route$19.update({
|
|
873
|
+
id: "/templates/agents/$id/",
|
|
874
|
+
path: "/templates/agents/$id/",
|
|
875
|
+
getParentRoute: () => Route$2
|
|
876
|
+
}),
|
|
877
|
+
TemplatesTeamsIdIndexRoute
|
|
878
|
+
};
|
|
879
|
+
var routeTree = Route$2._addFileChildren(rootRouteChildren)._addFileTypes();
|
|
880
|
+
//#endregion
|
|
881
|
+
//#region src/router.tsx
|
|
882
|
+
function getRouter() {
|
|
883
|
+
return createRouter({
|
|
884
|
+
routeTree,
|
|
885
|
+
scrollRestoration: true,
|
|
886
|
+
defaultPreload: "intent",
|
|
887
|
+
defaultErrorComponent: RouteErrorState,
|
|
888
|
+
defaultPendingComponent: RoutePendingState
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
//#endregion
|
|
892
|
+
export { getRouter };
|