bazilion 0.55.0 → 0.56.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 +192 -37
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +1164 -412
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-DZ9mXFdq.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-BfG3a-ri.js +1 -0
- package/dist/web/client/assets/{Button-bTJUy9Qf.js → Button-CoKQRO-s.js} +1 -1
- package/dist/web/client/assets/ConfigPage-Ch-DSJUO.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-B_jXAPmh.js +1 -0
- package/dist/web/client/assets/ConnectionsView-D1Liebtf.js +1 -0
- package/dist/web/client/assets/ManagePage-kd7iWYEL.js +1 -0
- package/dist/web/client/assets/{SectionTabs-D7kPQGoh.js → SectionTabs-Dc0bNn-J.js} +1 -1
- package/dist/web/client/assets/{Segmented-oPkAHPO1.js → Segmented-iylzLwE6.js} +1 -1
- package/dist/web/client/assets/SkillsParts-C5T7sYDA.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-DatFF4f_.js +1 -0
- package/dist/web/client/assets/TeamForm-l-N_PYeE.js +1 -0
- package/dist/web/client/assets/TeamThread-BWmIQiAh.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-vQBdMl8h.js +1 -0
- package/dist/web/client/assets/_id-C6SADaiD.js +1 -0
- package/dist/web/client/assets/_id-CC9r0qsr.js +1 -0
- package/dist/web/client/assets/access-BbQFbTPh.js +1 -0
- package/dist/web/client/assets/{agent-actions-CUee6aJq.js → agent-actions-B-9KIwn6.js} +1 -1
- package/dist/web/client/assets/agents-BXwzmHu8.js +1 -0
- package/dist/web/client/assets/agents-BtETzVIY.js +1 -0
- package/dist/web/client/assets/arrow-right-BqqfPqVi.js +1 -0
- package/dist/web/client/assets/attention-BMrZJ9ui.js +1 -0
- package/dist/web/client/assets/{bot-BCone8es.js → bot-BHky7KAX.js} +1 -1
- package/dist/web/client/assets/chart-column-DTsDbzL0.js +1 -0
- package/dist/web/client/assets/chevron-right-D1shxvdo.js +1 -0
- package/dist/web/client/assets/config-B2ZDYo52.js +1 -0
- package/dist/web/client/assets/{createLucideIcon-jxSFpY0Q.js → createLucideIcon-CZHSSDYA.js} +1 -1
- package/dist/web/client/assets/{download-Dy88XavQ.js → download-Dr0PgyMr.js} +1 -1
- package/dist/web/client/assets/es2015-D1pnOGPG.js +41 -0
- package/dist/web/client/assets/{file-text-DPsZ8-h9.js → file-text-D6OTHixJ.js} +1 -1
- package/dist/web/client/assets/{images-QBh_rL8b.js → images-BULrW-FC.js} +1 -1
- package/dist/web/client/assets/index-B-N6NIX4.js +14 -0
- package/dist/web/client/assets/{key-round-C-I8fAG0.js → key-round-DmSZN0Kq.js} +1 -1
- package/dist/web/client/assets/{list-checks-C9Q-bjEi.js → list-checks-DdTdAQXS.js} +1 -1
- package/dist/web/client/assets/login-DM3q-V4R.js +1 -0
- package/dist/web/client/assets/{manage-BaIU5zKy.js → manage-R57MUzsY.js} +1 -1
- package/dist/web/client/assets/mcp-CSHrVH1t.js +1 -0
- package/dist/web/client/assets/{message-square-Bwf9cHOx.js → message-square-B_pULba_.js} +1 -1
- package/dist/web/client/assets/{network-B3FA93gC.js → network-BqmVqC4_.js} +1 -1
- package/dist/web/client/assets/parts-68zf8Fgw.js +1 -0
- package/dist/web/client/assets/plus-CEKaHPBw.js +1 -0
- package/dist/web/client/assets/preload-helper-CZOd_z6l.js +1 -0
- package/dist/web/client/assets/routes-DOoeKVwr.js +85 -0
- package/dist/web/client/assets/skills-CPZftp9O.js +1 -0
- package/dist/web/client/assets/{square-terminal-DaNLwvEs.js → square-terminal-CYfGBHPC.js} +1 -1
- package/dist/web/client/assets/style-Bm9QsFpy.js +7 -0
- package/dist/web/client/assets/styles-B-kTTvCo.css +2 -0
- package/dist/web/client/assets/{system-CrTSr5_t.js → system-Dd2P9eqE.js} +1 -1
- package/dist/web/client/assets/teams-7FEpSZg1.js +1 -0
- package/dist/web/client/assets/teams-ClirFbDV.js +1 -0
- package/dist/web/client/assets/telegram-BJnT5THs.js +1 -0
- package/dist/web/client/assets/tools-DqNXLMpc.js +1 -0
- package/dist/web/client/assets/usage-BC_TStVj.js +1 -0
- package/dist/web/client/assets/use-resource-Bn0Sx7r6.js +1 -0
- package/dist/web/client/assets/{users-round-BElBVSnw.js → users-round-cxQ5HF-C.js} +1 -1
- package/dist/web/client/assets/welcome-g8wtn_or.js +1 -0
- package/dist/web/client/assets/{wrench-DotqSqSm.js → wrench-BLEJjETg.js} +1 -1
- package/dist/web/server/assets/{AddProviderDialog-BbpuvC2a.js → AddProviderDialog-DtkjBMv4.js} +5 -2
- package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +37 -0
- package/dist/web/server/assets/{AgentTemplateParts-Ce7snK3m.js → AgentTemplateParts-CxWyovvM.js} +6 -2
- package/dist/web/server/assets/Button-Dsnw22OF.js +17 -0
- package/dist/web/server/assets/{ConfigPage-qP9ejjuw.js → ConfigPage-usZi48Zr.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-Z-uYbE9B.js → ConfirmDialog-DAcSBHkT.js} +3 -1
- package/dist/web/server/assets/{ConnectionsView-CLIV7V5D.js → ConnectionsView-Dy6uYSRI.js} +9 -7
- package/dist/web/server/assets/Dialog-DTeF-nOZ.js +85 -0
- package/dist/web/server/assets/{ManagePage-BR9FwVZM.js → ManagePage-Dy1EdovO.js} +2 -2
- package/dist/web/server/assets/{SectionTabs-CWQ5orUW.js → SectionTabs-BVrMn76H.js} +2 -1
- package/dist/web/server/assets/{SkillsParts-DWpdydCJ.js → SkillsParts-Cw05b3al.js} +6 -2
- package/dist/web/server/assets/SpawnDialog-BAE8W91z.js +125 -0
- package/dist/web/server/assets/{SpawnTeamModal-C-YMvoaB.js → SpawnTeamModal-CgBY0HuN.js} +6 -2
- package/dist/web/server/assets/{TeamForm-CL45gBdt.js → TeamForm-JyO5xJXX.js} +6 -2
- package/dist/web/server/assets/{TeamThread-CVVH6kKj.js → TeamThread-5o48EbXL.js} +52 -4
- package/dist/web/server/assets/{UnsavedChangesGuard-CXK75QQp.js → UnsavedChangesGuard-CJQGu45L.js} +1 -1
- package/dist/web/server/assets/{_id-8zsImuGa.js → _id-BE_RSvuN.js} +14 -9
- package/dist/web/server/assets/{_id-d2OwovYV.js → _id-BNvm89oJ.js} +2 -2
- package/dist/web/server/assets/{_id-De3Bm0SG.js → _id-BW6sVrvw.js} +1 -1
- package/dist/web/server/assets/{_id-2I4CSMQj.js → _id-BfjTS4JO.js} +15 -9
- package/dist/web/server/assets/{_id-BKzOw78O.js → _id-BpumuCYL.js} +1 -1
- package/dist/web/server/assets/{_id-BpfoPuTv.js → _id-C54t_nX6.js} +2 -2
- package/dist/web/server/assets/_tanstack-start-manifest_v-BPwQX_5b.js +275 -0
- package/dist/web/server/assets/{access-CwZ27Wsl.js → access-6FWih7nC.js} +7 -4
- package/dist/web/server/assets/{access-WWspT0v4.js → access-BhAMfi7U.js} +1 -1
- package/dist/web/server/assets/{access-CyUoElTP.js → access-DEyq3uP_.js} +2 -2
- package/dist/web/server/assets/activity-Czfq-5_F.js +471 -0
- package/dist/web/server/assets/{agent-actions-C07Cp5Ue.js → agent-actions-ChH7Mne4.js} +1 -1
- package/dist/web/server/assets/{agents-CRtMfKqX.js → agents-3hBjrd8B.js} +1 -1
- package/dist/web/server/assets/{agents-vuXrAv1j.js → agents-BXuglv4G.js} +12 -6
- package/dist/web/server/assets/{agents-DTub-rJk.js → agents-DhenbitX.js} +2 -2
- package/dist/web/server/assets/{agents-CwzhpDPm.js → agents-KJcDMj0Y.js} +9 -6
- package/dist/web/server/assets/{agents-DCWEoaxY.js → agents-ncyhVx-T.js} +2 -2
- package/dist/web/server/assets/{agents-DQowl6Ly.js → agents-rTDlRZa5.js} +1 -1
- package/dist/web/server/assets/{attention-BqCnJ1hg.js → attention-CDdOCOio.js} +2 -2
- package/dist/web/server/assets/{attention-DwGaur_w.js → attention-DM__BzWY.js} +8 -6
- package/dist/web/server/assets/{attention-Dki8rmGZ.js → attention-X0U6ZmiA.js} +1 -1
- package/dist/web/server/assets/{auth-dJnrFW6y.js → auth-BexhV8Yq.js} +1 -1
- package/dist/web/server/assets/{config-B9dJiji_.js → config-Cld8Q8N7.js} +2 -2
- package/dist/web/server/assets/{config-X7qWbbpH.js → config-Cx5ri2DL2.js} +1 -1
- package/dist/web/server/assets/{config-D3MR2VjE.js → config-DpgYAXQ3.js} +9 -6
- package/dist/web/server/assets/createSsrRpc-6LHNEsSK.js +16 -0
- package/dist/web/server/assets/{daemon-client-B_ZRIIrT.js → daemon-client-RxAllljf.js} +1 -1
- package/dist/web/server/assets/form-BEjeiSy3.js +416 -0
- package/dist/web/server/assets/live-DbJeq6KP.js +263 -0
- package/dist/web/server/assets/{login-CRd1yTH5.js → login-BJdJ219n.js} +1 -1
- package/dist/web/server/assets/{login-ZN6KV8n-.js → login-C4lL4AxI.js} +2 -2
- package/dist/web/server/assets/{manage-Ce6cI4eW.js → manage-C6ucNYZW.js} +2 -1
- package/dist/web/server/assets/{mcp-BQ15a9dG.js → mcp-BXnWQOwM.js} +7 -4
- package/dist/web/server/assets/{mcp-C97uAZe1.js → mcp-C8VLspco.js} +1 -1
- package/dist/web/server/assets/{mcp-CYQuYWGX.js → mcp-DwCzj7eO.js} +2 -2
- package/dist/web/server/assets/open-groups-BMGYUTtY.js +12 -0
- package/dist/web/server/assets/{page-title-CVY-c2Pd.js → page-title-PTpFHXWo.js} +1 -1
- package/dist/web/server/assets/parts-k9M-atPa.js +436 -0
- package/dist/web/server/assets/{router-CPdWGKQ5.js → router-BttfLktO.js} +185 -77
- package/dist/web/server/assets/{routes-BPloBDc8.js → routes-A7UcreVX.js} +3 -3
- package/dist/web/server/assets/{routes-Dw1K3TQw.js → routes-B9jw-MJ8.js} +1175 -321
- package/dist/web/server/assets/{routes-xDPesCQu.js → routes-BX2FV8rS.js} +3 -3
- package/dist/web/server/assets/{skills-D0xrNc2_.js → skills-BVAH93cd.js} +8 -6
- package/dist/web/server/assets/{skills-DWzlT_hC.js → skills-Cd5Cfdaz.js} +1 -1
- package/dist/web/server/assets/{skills-6VSpEORe.js → skills-y3GsyKce.js} +2 -2
- package/dist/web/server/assets/src-vrZVrV9u.js +103 -0
- package/dist/web/server/assets/{start-DhW7sy23.js → start-Dl8gQ-95.js} +1 -1
- package/dist/web/server/assets/{style-aMybyKzc.js → style-BQ3H9I7Y.js} +1 -1
- package/dist/web/server/assets/{system-B5sPgdQW.js → system-BJPKqM6b.js} +2 -2
- package/dist/web/server/assets/{system-CXmiWyDG.js → system-C7mejQSc.js} +3 -3
- package/dist/web/server/assets/{system-D3th6n2E.js → system-LsLcuVzY.js} +1 -1
- package/dist/web/server/assets/{teams-yF3I_Zjq.js → teams-B6gbflsZ.js} +10 -6
- package/dist/web/server/assets/{teams-iXiCnN2i.js → teams-C7kXMNgc.js} +10 -6
- package/dist/web/server/assets/{teams-BopOP4x7.js → teams-CPXoTggb.js} +1 -1
- package/dist/web/server/assets/{teams-70u1XQTr.js → teams-CeLLd2Mf.js} +1 -1
- package/dist/web/server/assets/{teams-ClRBVSYU.js → teams-CiX8LUQo.js} +2 -2
- package/dist/web/server/assets/{teams-Dq4RCxis.js → teams-D-XdIkCr.js} +2 -2
- package/dist/web/server/assets/{telegram-CGol0CKX2.js → telegram-D7TW3LNZ.js} +1 -1
- package/dist/web/server/assets/{telegram-DwEgyR1x.js → telegram-D8_V7_sW.js} +286 -272
- package/dist/web/server/assets/{telegram-D9U9c1MN.js → telegram-DA2dwLID.js} +2 -2
- package/dist/web/server/assets/{tools-VPIKjr3y.js → tools-CckcG9Jl.js} +5 -3
- package/dist/web/server/assets/{tools-DflVIdDd.js → tools-CluiJywK.js} +2 -2
- package/dist/web/server/assets/{tools-C-wwWjLI.js → tools-D1BBVkRh.js} +1 -1
- package/dist/web/server/assets/usage-CrYyvPgf.js +46 -0
- package/dist/web/server/assets/usage-PNNb3pPj.js +465 -0
- package/dist/web/server/assets/{use-resource-CbHGYti0.js → use-resource-BUA9qGGY.js} +1 -1
- package/dist/web/server/assets/{welcome-CxXMI4HI.js → welcome-CUTYf8UG.js} +1 -1
- package/dist/web/server/assets/{welcome-966nOyyK.js → welcome-CYhh3iUU.js} +8 -6
- package/dist/web/server/assets/{welcome-7DrYZVs6.js → welcome-CwzLt6Rp.js} +2 -2
- package/dist/web/server/assets/workspace-0XPILV1W.js +82 -0
- package/dist/web/server/server.js +20 -20
- package/dist/worker.js +27 -6
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AddProviderDialog-DfFOaCjC.js +0 -1
- package/dist/web/client/assets/AgentTemplateParts-IMJmAQjN.js +0 -1
- package/dist/web/client/assets/ConfigPage-CzLHZa5o.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-Cu_evkgc.js +0 -1
- package/dist/web/client/assets/ConnectionsView-D7Fmutl2.js +0 -1
- package/dist/web/client/assets/ManagePage-BfvlCrmz.js +0 -1
- package/dist/web/client/assets/SkillsParts-BuTxcCam.js +0 -1
- package/dist/web/client/assets/SpawnTeamModal-B1UnOvtp.js +0 -1
- package/dist/web/client/assets/TeamForm-DbzxtRjj.js +0 -1
- package/dist/web/client/assets/TeamThread-jpsWq6vI.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-BfyU9v9i.js +0 -1
- package/dist/web/client/assets/_id-BCNBLF-2.js +0 -1
- package/dist/web/client/assets/_id-D8_H79U2.js +0 -1
- package/dist/web/client/assets/access-CDWe1Kwy.js +0 -1
- package/dist/web/client/assets/agents-sE686DTf.js +0 -1
- package/dist/web/client/assets/agents-yrur1NDa.js +0 -1
- package/dist/web/client/assets/arrow-right-U66krZnr.js +0 -1
- package/dist/web/client/assets/attention-DYEHDfmx.js +0 -1
- package/dist/web/client/assets/chevron-right-CuqJFXTe.js +0 -1
- package/dist/web/client/assets/config-BHv886pr.js +0 -1
- package/dist/web/client/assets/index-GOthyyE-.js +0 -14
- package/dist/web/client/assets/login-Dhe15Uuc.js +0 -1
- package/dist/web/client/assets/mcp-A_Eo7x3q.js +0 -1
- package/dist/web/client/assets/parts-CpIfn_BH.js +0 -41
- package/dist/web/client/assets/plus-CQPjc8uR.js +0 -1
- package/dist/web/client/assets/routes-CTg_yjbY.js +0 -85
- package/dist/web/client/assets/skills-CLjtYtkA.js +0 -1
- package/dist/web/client/assets/style-mjEbxhf5.js +0 -7
- package/dist/web/client/assets/styles-DzcEC3Rd.css +0 -2
- package/dist/web/client/assets/teams-Bhje5n2h.js +0 -1
- package/dist/web/client/assets/teams-Cbgw0Qhv.js +0 -1
- package/dist/web/client/assets/telegram-HtUczmaA.js +0 -1
- package/dist/web/client/assets/tools-BpjFvmoX.js +0 -1
- package/dist/web/client/assets/use-resource-BnvgCpBi.js +0 -1
- package/dist/web/client/assets/welcome-D47LKWYO.js +0 -1
- package/dist/web/server/assets/Rail-b6EbjBB-.js +0 -605
- package/dist/web/server/assets/SpawnDialog-3wNx0W1R.js +0 -1851
- package/dist/web/server/assets/_tanstack-start-manifest_v-kkY_s_uR.js +0 -256
- package/dist/web/server/assets/createSsrRpc-qesavJv-.js +0 -72
- package/dist/web/server/assets/public-origin-BpDkdS5Q.js +0 -34
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import { r as readCookie } from "./cookies-HnTYjKRp.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { t as Route$
|
|
13
|
-
import { t as Route$
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as Route$
|
|
16
|
-
import { t as Route$
|
|
17
|
-
import { t as Route$
|
|
18
|
-
import { t as Route$
|
|
19
|
-
import { t as Route$
|
|
20
|
-
import { t as Route$
|
|
21
|
-
import { t as Route$
|
|
22
|
-
import { t as Route$
|
|
23
|
-
import { t as Route$
|
|
2
|
+
import { i as api, n as useLive, o as errorMessage, t as LiveProvider } from "./live-DbJeq6KP.js";
|
|
3
|
+
import { n as agentState, r as shortTime } from "./activity-Czfq-5_F.js";
|
|
4
|
+
import { o as publicOriginConfig } from "./src-vrZVrV9u.js";
|
|
5
|
+
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
6
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
7
|
+
import { t as Dialog$1 } from "./Dialog-DTeF-nOZ.js";
|
|
8
|
+
import { c as parseWorkspaceSearch } from "./workspace-0XPILV1W.js";
|
|
9
|
+
import { t as DAEMON_BASE_URL } from "./daemon-client-RxAllljf.js";
|
|
10
|
+
import { i as useAttentionCount, r as AttentionCountProvider, t as PageTitleProvider } from "./page-title-PTpFHXWo.js";
|
|
11
|
+
import { C as PageShell } from "./parts-k9M-atPa.js";
|
|
12
|
+
import { a as PawIcon, i as useThemeMode, n as THEME_MODES, o as BaziuLogo, r as setThemeMode, t as Route$3 } from "./login-BJdJ219n.js";
|
|
13
|
+
import { i as isTyping, n as NEW_CONVERSATION_EVENT, r as SHORTCUTS, t as Route$4 } from "./routes-A7UcreVX.js";
|
|
14
|
+
import { t as SpawnDialog } from "./SpawnDialog-BAE8W91z.js";
|
|
15
|
+
import { i as isSetupOpen, n as PUBLIC_PATHS, r as fetchAuthState, t as Route$5 } from "./welcome-CwzLt6Rp.js";
|
|
16
|
+
import { t as Route$6 } from "./usage-CrYyvPgf.js";
|
|
17
|
+
import { t as Route$7 } from "./teams-CiX8LUQo.js";
|
|
18
|
+
import { t as Route$8 } from "./skills-y3GsyKce.js";
|
|
19
|
+
import { t as Route$9 } from "./config-Cld8Q8N7.js";
|
|
20
|
+
import { t as Route$10 } from "./attention-CDdOCOio.js";
|
|
21
|
+
import { t as Route$11 } from "./agents-ncyhVx-T.js";
|
|
22
|
+
import { t as Route$12 } from "./tools-CluiJywK.js";
|
|
23
|
+
import { t as Route$13 } from "./telegram-DA2dwLID.js";
|
|
24
|
+
import { t as Route$14 } from "./system-BJPKqM6b.js";
|
|
25
|
+
import { t as Route$15 } from "./mcp-DwCzj7eO.js";
|
|
26
|
+
import { t as Route$16 } from "./access-DEyq3uP_.js";
|
|
27
|
+
import { t as Route$17 } from "./teams-D-XdIkCr.js";
|
|
28
|
+
import { t as Route$18 } from "./agents-DhenbitX.js";
|
|
29
|
+
import { t as Route$19 } from "./_id-BNvm89oJ.js";
|
|
30
|
+
import { t as Route$20 } from "./_id-C54t_nX6.js";
|
|
24
31
|
import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
25
32
|
import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, redirect, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
|
|
26
33
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -177,6 +184,16 @@ function DesktopNotifier() {
|
|
|
177
184
|
}
|
|
178
185
|
//#endregion
|
|
179
186
|
//#region src/components/JumpPalette.tsx
|
|
187
|
+
/** The label with the words a search found in it set apart. */
|
|
188
|
+
function markWords(label, words) {
|
|
189
|
+
const wanted = words.map((word) => word.toLowerCase()).filter(Boolean);
|
|
190
|
+
if (wanted.length === 0) return [label];
|
|
191
|
+
const escaped = wanted.map((word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
|
192
|
+
return label.split(new RegExp(`(${escaped.join("|")})`, "gi")).map((part, index) => index % 2 === 1 ? /* @__PURE__ */ jsx("strong", {
|
|
193
|
+
className: "font-semibold text-foreground",
|
|
194
|
+
children: part
|
|
195
|
+
}, index) : part);
|
|
196
|
+
}
|
|
180
197
|
var PAGES = [
|
|
181
198
|
[
|
|
182
199
|
"Attention",
|
|
@@ -208,6 +225,11 @@ var PAGES = [
|
|
|
208
225
|
"Import, review and remove prompt skills",
|
|
209
226
|
"/skills"
|
|
210
227
|
],
|
|
228
|
+
[
|
|
229
|
+
"Usage",
|
|
230
|
+
"Tokens and money spent, per Team, Agent, model and day",
|
|
231
|
+
"/usage"
|
|
232
|
+
],
|
|
211
233
|
[
|
|
212
234
|
"Setup",
|
|
213
235
|
"Models, tools, MCP, Telegram, access, system",
|
|
@@ -217,6 +239,10 @@ var PAGES = [
|
|
|
217
239
|
/** How many Agents' conversations are looked at for "Recent conversations", and how many shown. */
|
|
218
240
|
var RECENT_AGENTS = 3;
|
|
219
241
|
var RECENT_CONVERSATIONS = 5;
|
|
242
|
+
/** Messages are searched once this much is typed, after a pause; this many are listed. */
|
|
243
|
+
var SEARCH_MIN_CHARACTERS = 3;
|
|
244
|
+
var SEARCH_PAUSE_MS = 250;
|
|
245
|
+
var SEARCH_HITS = 8;
|
|
220
246
|
/** Destinations whose label or hint holds every word of the query. */
|
|
221
247
|
function filterDestinations(all, query) {
|
|
222
248
|
const words = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
@@ -253,6 +279,38 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
|
|
|
253
279
|
const [spawning, setSpawning] = useState(false);
|
|
254
280
|
const [loaded, setLoaded] = useState(false);
|
|
255
281
|
const [enterPending, setEnterPending] = useState(false);
|
|
282
|
+
const [hits, setHits] = useState(null);
|
|
283
|
+
const [searching, setSearching] = useState(false);
|
|
284
|
+
const trimmed = query.trim();
|
|
285
|
+
useEffect(() => {
|
|
286
|
+
if (!open || trimmed.replace(/\s+/g, "").length < SEARCH_MIN_CHARACTERS) {
|
|
287
|
+
setHits(null);
|
|
288
|
+
setSearching(false);
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
const controller = new AbortController();
|
|
292
|
+
setSearching(true);
|
|
293
|
+
const timer = window.setTimeout(() => {
|
|
294
|
+
api(`/api/conversations/search?${new URLSearchParams({
|
|
295
|
+
q: trimmed,
|
|
296
|
+
limit: String(SEARCH_HITS)
|
|
297
|
+
})}`, { signal: controller.signal }).then((found) => setHits({
|
|
298
|
+
query: trimmed,
|
|
299
|
+
hits: found.hits
|
|
300
|
+
})).catch(() => {
|
|
301
|
+
if (!controller.signal.aborted) setHits({
|
|
302
|
+
query: trimmed,
|
|
303
|
+
hits: []
|
|
304
|
+
});
|
|
305
|
+
}).finally(() => {
|
|
306
|
+
if (!controller.signal.aborted) setSearching(false);
|
|
307
|
+
});
|
|
308
|
+
}, SEARCH_PAUSE_MS);
|
|
309
|
+
return () => {
|
|
310
|
+
controller.abort();
|
|
311
|
+
window.clearTimeout(timer);
|
|
312
|
+
};
|
|
313
|
+
}, [open, trimmed]);
|
|
256
314
|
useEffect(() => {
|
|
257
315
|
if (!open) return;
|
|
258
316
|
setQuery("");
|
|
@@ -285,7 +343,7 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
|
|
|
285
343
|
});
|
|
286
344
|
return () => controller.abort();
|
|
287
345
|
}, [open]);
|
|
288
|
-
const
|
|
346
|
+
const destinations = useMemo(() => {
|
|
289
347
|
const teamName = new Map(teams.map((team) => [team.id, team.name]));
|
|
290
348
|
const byAgent = new Map(activity.map((entry) => [entry.agentId, entry]));
|
|
291
349
|
const agentById = new Map(agents.map((agent) => [agent.id, agent]));
|
|
@@ -424,7 +482,30 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
|
|
|
424
482
|
location,
|
|
425
483
|
dark,
|
|
426
484
|
onShowShortcuts
|
|
427
|
-
])
|
|
485
|
+
]);
|
|
486
|
+
const found = useMemo(() => {
|
|
487
|
+
if (!hits || hits.query !== trimmed) return [];
|
|
488
|
+
const agentById = new Map(agents.map((agent) => [agent.id, agent]));
|
|
489
|
+
return hits.hits.map((hit, index) => ({
|
|
490
|
+
key: `found:${hit.conversationId}:${index}`,
|
|
491
|
+
group: "In conversations",
|
|
492
|
+
label: hit.snippet,
|
|
493
|
+
hint: `${hit.agentName} · ${hit.conversationTitle}`,
|
|
494
|
+
found: hits.query.split(/\s+/),
|
|
495
|
+
agent: agentById.get(hit.agentId),
|
|
496
|
+
search: {
|
|
497
|
+
agent: hit.agentId,
|
|
498
|
+
...hit.active ? {} : { conversation: hit.conversationId },
|
|
499
|
+
find: hits.query,
|
|
500
|
+
match: hit.nth
|
|
501
|
+
}
|
|
502
|
+
}));
|
|
503
|
+
}, [
|
|
504
|
+
hits,
|
|
505
|
+
trimmed,
|
|
506
|
+
agents
|
|
507
|
+
]);
|
|
508
|
+
const shown = [...filterDestinations(destinations, query), ...found];
|
|
428
509
|
const current = Math.min(active, Math.max(shown.length - 1, 0));
|
|
429
510
|
const hereTeam = location.pathname === "/" ? parseWorkspaceSearch(location.search).team ?? agents.find((agent) => agent.id === parseWorkspaceSearch(location.search).agent)?.teamId : void 0;
|
|
430
511
|
useEffect(() => {
|
|
@@ -472,7 +553,7 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
|
|
|
472
553
|
"aria-controls": "jump-results",
|
|
473
554
|
"aria-activedescendant": shown[current] ? `jump-${shown[current].key}` : void 0,
|
|
474
555
|
value: query,
|
|
475
|
-
placeholder: "An Agent, a Team, a page, or something to do",
|
|
556
|
+
placeholder: "An Agent, a Team, a page, words from a conversation, or something to do",
|
|
476
557
|
onChange: (event) => {
|
|
477
558
|
setQuery(event.target.value);
|
|
478
559
|
setActive(0);
|
|
@@ -504,38 +585,49 @@ function JumpPalette({ open, onClose, onShowShortcuts }) {
|
|
|
504
585
|
role: "listbox",
|
|
505
586
|
"aria-label": "Destinations and actions",
|
|
506
587
|
className: "overflow-y-auto p-1.5",
|
|
507
|
-
children: [
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
"
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
destination.
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
588
|
+
children: [
|
|
589
|
+
shown.length === 0 && /* @__PURE__ */ jsx("p", {
|
|
590
|
+
className: "px-3 py-6 text-center text-sm text-muted-foreground",
|
|
591
|
+
children: !loaded ? "Loading…" : searching ? "Searching the conversations…" : `Nothing matches “${query}”.`
|
|
592
|
+
}),
|
|
593
|
+
shown.length > 0 && searching && /* @__PURE__ */ jsx("p", {
|
|
594
|
+
role: "status",
|
|
595
|
+
className: "m-0 px-2.5 pb-1 pt-2 text-xs text-muted-foreground",
|
|
596
|
+
children: "Searching the conversations…"
|
|
597
|
+
}),
|
|
598
|
+
shown.map((destination, index) => /* @__PURE__ */ jsxs("div", { children: [destination.group !== shown[index - 1]?.group && /* @__PURE__ */ jsx("div", {
|
|
599
|
+
className: `px-2.5 pb-1 pt-2 text-xs font-bold uppercase tracking-[0.08em] ${destination.group === "Waiting for you" ? "text-warning" : "text-muted-foreground"}`,
|
|
600
|
+
children: destination.group
|
|
601
|
+
}), /* @__PURE__ */ jsxs("button", {
|
|
602
|
+
type: "button",
|
|
603
|
+
id: `jump-${destination.key}`,
|
|
604
|
+
role: "option",
|
|
605
|
+
"aria-selected": index === current,
|
|
606
|
+
onMouseMove: () => setActive(index),
|
|
607
|
+
onClick: () => go(destination),
|
|
608
|
+
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"}`,
|
|
609
|
+
children: [
|
|
610
|
+
destination.agent ? /* @__PURE__ */ jsx(AgentAvatar, {
|
|
611
|
+
identity: destination.agent.identity,
|
|
612
|
+
size: 24
|
|
613
|
+
}) : destination.icon ? /* @__PURE__ */ jsx("span", {
|
|
614
|
+
className: "flex size-6 shrink-0 items-center justify-center text-mocha",
|
|
615
|
+
children: destination.icon
|
|
616
|
+
}) : null,
|
|
617
|
+
destination.found ? /* @__PURE__ */ jsx("span", {
|
|
618
|
+
className: "min-w-0 truncate text-muted-foreground",
|
|
619
|
+
children: markWords(destination.label, destination.found)
|
|
620
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
621
|
+
className: "min-w-0 truncate font-semibold",
|
|
622
|
+
children: destination.label
|
|
623
|
+
}),
|
|
624
|
+
/* @__PURE__ */ jsx("span", {
|
|
625
|
+
className: "ml-auto min-w-0 shrink truncate pl-3 text-xs text-muted-foreground",
|
|
626
|
+
children: destination.hint
|
|
627
|
+
})
|
|
628
|
+
]
|
|
629
|
+
})] }, destination.key))
|
|
630
|
+
]
|
|
539
631
|
})
|
|
540
632
|
]
|
|
541
633
|
})] })
|
|
@@ -582,7 +674,8 @@ var MANAGE_PATHS = [
|
|
|
582
674
|
"/agents",
|
|
583
675
|
"/teams",
|
|
584
676
|
"/templates",
|
|
585
|
-
"/skills"
|
|
677
|
+
"/skills",
|
|
678
|
+
"/usage"
|
|
586
679
|
];
|
|
587
680
|
var SETUP_PATHS = ["/config"];
|
|
588
681
|
var under = (pathname, roots) => roots.some((root) => pathname === root || pathname.startsWith(`${root}/`));
|
|
@@ -639,7 +732,7 @@ function TopBar() {
|
|
|
639
732
|
!setupOnly && /* @__PURE__ */ jsxs("button", {
|
|
640
733
|
type: "button",
|
|
641
734
|
onClick: () => setPaletteOpen(true),
|
|
642
|
-
"aria-
|
|
735
|
+
"aria-describedby": "jump-to-description",
|
|
643
736
|
"aria-keyshortcuts": mac ? "Meta+K" : "Control+K",
|
|
644
737
|
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",
|
|
645
738
|
children: [
|
|
@@ -651,9 +744,18 @@ function TopBar() {
|
|
|
651
744
|
className: "min-w-0 flex-1 truncate",
|
|
652
745
|
children: "Jump to or do anything"
|
|
653
746
|
}),
|
|
654
|
-
/* @__PURE__ */ jsx("
|
|
655
|
-
|
|
656
|
-
|
|
747
|
+
/* @__PURE__ */ jsx("span", {
|
|
748
|
+
id: "jump-to-description",
|
|
749
|
+
className: "sr-only",
|
|
750
|
+
children: "An Agent, a Team, a page, words from a conversation, or an action"
|
|
751
|
+
}),
|
|
752
|
+
/* @__PURE__ */ jsx("span", {
|
|
753
|
+
"aria-hidden": "true",
|
|
754
|
+
className: "hidden sm:inline",
|
|
755
|
+
children: /* @__PURE__ */ jsx("kbd", {
|
|
756
|
+
className: "rounded-md border border-border bg-card px-1.5 py-px font-mono text-xs",
|
|
757
|
+
children: mac ? "⌘K" : "Ctrl K"
|
|
758
|
+
})
|
|
657
759
|
})
|
|
658
760
|
]
|
|
659
761
|
}),
|
|
@@ -844,7 +946,7 @@ function navButtonClass(active) {
|
|
|
844
946
|
}
|
|
845
947
|
//#endregion
|
|
846
948
|
//#region src/styles.css?url
|
|
847
|
-
var styles_default = "/assets/styles-
|
|
949
|
+
var styles_default = "/assets/styles-B-kTTvCo.css";
|
|
848
950
|
//#endregion
|
|
849
951
|
//#region src/routes/__root.tsx
|
|
850
952
|
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){}})();`;
|
|
@@ -1071,57 +1173,62 @@ var IndexRoute = Route$4.update({
|
|
|
1071
1173
|
path: "/",
|
|
1072
1174
|
getParentRoute: () => Route$2
|
|
1073
1175
|
});
|
|
1176
|
+
var UsageIndexRoute = Route$6.update({
|
|
1177
|
+
id: "/usage/",
|
|
1178
|
+
path: "/usage/",
|
|
1179
|
+
getParentRoute: () => Route$2
|
|
1180
|
+
});
|
|
1074
1181
|
var TemplatesIndexRoute = Route$1.update({
|
|
1075
1182
|
id: "/templates/",
|
|
1076
1183
|
path: "/templates/",
|
|
1077
1184
|
getParentRoute: () => Route$2
|
|
1078
1185
|
});
|
|
1079
|
-
var TeamsIndexRoute = Route$
|
|
1186
|
+
var TeamsIndexRoute = Route$7.update({
|
|
1080
1187
|
id: "/teams/",
|
|
1081
1188
|
path: "/teams/",
|
|
1082
1189
|
getParentRoute: () => Route$2
|
|
1083
1190
|
});
|
|
1084
|
-
var SkillsIndexRoute = Route$
|
|
1191
|
+
var SkillsIndexRoute = Route$8.update({
|
|
1085
1192
|
id: "/skills/",
|
|
1086
1193
|
path: "/skills/",
|
|
1087
1194
|
getParentRoute: () => Route$2
|
|
1088
1195
|
});
|
|
1089
|
-
var ConfigIndexRoute = Route$
|
|
1196
|
+
var ConfigIndexRoute = Route$9.update({
|
|
1090
1197
|
id: "/config/",
|
|
1091
1198
|
path: "/config/",
|
|
1092
1199
|
getParentRoute: () => Route$2
|
|
1093
1200
|
});
|
|
1094
|
-
var AttentionIndexRoute = Route$
|
|
1201
|
+
var AttentionIndexRoute = Route$10.update({
|
|
1095
1202
|
id: "/attention/",
|
|
1096
1203
|
path: "/attention/",
|
|
1097
1204
|
getParentRoute: () => Route$2
|
|
1098
1205
|
});
|
|
1099
|
-
var AgentsIndexRoute = Route$
|
|
1206
|
+
var AgentsIndexRoute = Route$11.update({
|
|
1100
1207
|
id: "/agents/",
|
|
1101
1208
|
path: "/agents/",
|
|
1102
1209
|
getParentRoute: () => Route$2
|
|
1103
1210
|
});
|
|
1104
|
-
var ConfigToolsRoute = Route$
|
|
1211
|
+
var ConfigToolsRoute = Route$12.update({
|
|
1105
1212
|
id: "/config/tools",
|
|
1106
1213
|
path: "/config/tools",
|
|
1107
1214
|
getParentRoute: () => Route$2
|
|
1108
1215
|
});
|
|
1109
|
-
var ConfigTelegramRoute = Route$
|
|
1216
|
+
var ConfigTelegramRoute = Route$13.update({
|
|
1110
1217
|
id: "/config/telegram",
|
|
1111
1218
|
path: "/config/telegram",
|
|
1112
1219
|
getParentRoute: () => Route$2
|
|
1113
1220
|
});
|
|
1114
|
-
var ConfigSystemRoute = Route$
|
|
1221
|
+
var ConfigSystemRoute = Route$14.update({
|
|
1115
1222
|
id: "/config/system",
|
|
1116
1223
|
path: "/config/system",
|
|
1117
1224
|
getParentRoute: () => Route$2
|
|
1118
1225
|
});
|
|
1119
|
-
var ConfigMcpRoute = Route$
|
|
1226
|
+
var ConfigMcpRoute = Route$15.update({
|
|
1120
1227
|
id: "/config/mcp",
|
|
1121
1228
|
path: "/config/mcp",
|
|
1122
1229
|
getParentRoute: () => Route$2
|
|
1123
1230
|
});
|
|
1124
|
-
var ConfigAccessRoute = Route$
|
|
1231
|
+
var ConfigAccessRoute = Route$16.update({
|
|
1125
1232
|
id: "/config/access",
|
|
1126
1233
|
path: "/config/access",
|
|
1127
1234
|
getParentRoute: () => Route$2
|
|
@@ -1131,17 +1238,17 @@ var ApiSplatRoute = Route.update({
|
|
|
1131
1238
|
path: "/api/$",
|
|
1132
1239
|
getParentRoute: () => Route$2
|
|
1133
1240
|
});
|
|
1134
|
-
var TemplatesTeamsIndexRoute = Route$
|
|
1241
|
+
var TemplatesTeamsIndexRoute = Route$17.update({
|
|
1135
1242
|
id: "/templates/teams/",
|
|
1136
1243
|
path: "/templates/teams/",
|
|
1137
1244
|
getParentRoute: () => Route$2
|
|
1138
1245
|
});
|
|
1139
|
-
var TemplatesAgentsIndexRoute = Route$
|
|
1246
|
+
var TemplatesAgentsIndexRoute = Route$18.update({
|
|
1140
1247
|
id: "/templates/agents/",
|
|
1141
1248
|
path: "/templates/agents/",
|
|
1142
1249
|
getParentRoute: () => Route$2
|
|
1143
1250
|
});
|
|
1144
|
-
var TemplatesTeamsIdIndexRoute = Route$
|
|
1251
|
+
var TemplatesTeamsIdIndexRoute = Route$19.update({
|
|
1145
1252
|
id: "/templates/teams/$id/",
|
|
1146
1253
|
path: "/templates/teams/$id/",
|
|
1147
1254
|
getParentRoute: () => Route$2
|
|
@@ -1162,9 +1269,10 @@ var rootRouteChildren = {
|
|
|
1162
1269
|
SkillsIndexRoute,
|
|
1163
1270
|
TeamsIndexRoute,
|
|
1164
1271
|
TemplatesIndexRoute,
|
|
1272
|
+
UsageIndexRoute,
|
|
1165
1273
|
TemplatesAgentsIndexRoute,
|
|
1166
1274
|
TemplatesTeamsIndexRoute,
|
|
1167
|
-
TemplatesAgentsIdIndexRoute: Route$
|
|
1275
|
+
TemplatesAgentsIdIndexRoute: Route$20.update({
|
|
1168
1276
|
id: "/templates/agents/$id/",
|
|
1169
1277
|
path: "/templates/agents/$id/",
|
|
1170
1278
|
getParentRoute: () => Route$2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { c as parseWorkspaceSearch } from "./workspace-0XPILV1W.js";
|
|
3
|
+
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
4
4
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
5
5
|
//#region src/lib/shortcuts.ts
|
|
6
6
|
/** Asks the open conversation's menu to start a new conversation, as its own item does. */
|
|
@@ -79,7 +79,7 @@ function neighbour(ordered, current, step) {
|
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/routes/index.tsx
|
|
82
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
82
|
+
var $$splitComponentImporter = () => import("./routes-B9jw-MJ8.js");
|
|
83
83
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
84
84
|
var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
|
|
85
85
|
var Route = createFileRoute("/")({
|