bazilion 0.54.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 +201 -41
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +1561 -522
- 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-UiegBKOK.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-Dc0bNn-J.js +1 -0
- package/dist/web/client/assets/{Segmented-MYKKTuZO.js → Segmented-iylzLwE6.js} +1 -1
- package/dist/web/client/assets/SkillsParts-C5T7sYDA.js +1 -0
- package/dist/web/client/assets/{SpawnTeamModal-DG5UbJNK.js → SpawnTeamModal-DatFF4f_.js} +1 -1
- package/dist/web/client/assets/{TeamForm-DGlxWv4e.js → TeamForm-l-N_PYeE.js} +1 -1
- package/dist/web/client/assets/TeamThread-BWmIQiAh.js +1 -0
- package/dist/web/client/assets/{UnsavedChangesGuard-BmdwLH99.js → UnsavedChangesGuard-vQBdMl8h.js} +1 -1
- 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-C8d8vaQ6.js → access-BbQFbTPh.js} +1 -1
- package/dist/web/client/assets/{agent-actions-BgE9fKHH.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-Bb--PFVU.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-CZHSSDYA.js +1 -0
- package/dist/web/client/assets/{download-C4t9l5wR.js → download-Dr0PgyMr.js} +1 -1
- package/dist/web/client/assets/es2015-D1pnOGPG.js +41 -0
- package/dist/web/client/assets/{file-text-DzbjpYrV.js → file-text-D6OTHixJ.js} +1 -1
- package/dist/web/client/assets/{images-DSYgPKM7.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-BpK4-E3T.js → key-round-DmSZN0Kq.js} +1 -1
- package/dist/web/client/assets/{list-checks-JNXcmws9.js → list-checks-DdTdAQXS.js} +1 -1
- package/dist/web/client/assets/login-DM3q-V4R.js +1 -0
- package/dist/web/client/assets/{manage-SRGSx8n2.js → manage-R57MUzsY.js} +1 -1
- package/dist/web/client/assets/{mcp-BUWu4TvS.js → mcp-CSHrVH1t.js} +1 -1
- package/dist/web/client/assets/{message-square-DM2MP9vF.js → message-square-B_pULba_.js} +1 -1
- package/dist/web/client/assets/{network-BJ4iPjQO.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-Dmm6cV-G.js → square-terminal-CYfGBHPC.js} +1 -1
- package/dist/web/client/assets/{style-CA2GAk9b.js → style-Bm9QsFpy.js} +1 -1
- package/dist/web/client/assets/styles-B-kTTvCo.css +2 -0
- package/dist/web/client/assets/{system-zQ0NnQML.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-CQaIZbpy.js → use-resource-Bn0Sx7r6.js} +1 -1
- package/dist/web/client/assets/{users-round-BJrym3FG.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-GbE1M1RJ.js → wrench-BLEJjETg.js} +1 -1
- package/dist/web/server/assets/{AddProviderDialog-Nc5mc_P6.js → AddProviderDialog-DtkjBMv4.js} +5 -2
- package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +37 -0
- package/dist/web/server/assets/{AgentTemplateParts-DZK_r3nQ.js → AgentTemplateParts-CxWyovvM.js} +6 -2
- package/dist/web/server/assets/Button-Dsnw22OF.js +17 -0
- package/dist/web/server/assets/{ConfigPage-CxzL-gTm.js → ConfigPage-usZi48Zr.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-4xeCXKHe.js → ConfirmDialog-DAcSBHkT.js} +3 -1
- package/dist/web/server/assets/{ConnectionsView-B02FjNsM.js → ConnectionsView-Dy6uYSRI.js} +9 -7
- package/dist/web/server/assets/Dialog-DTeF-nOZ.js +85 -0
- package/dist/web/server/assets/{ManagePage-BfCWE8Lj.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-D58l8voo.js → SkillsParts-Cw05b3al.js} +6 -2
- package/dist/web/server/assets/SpawnDialog-BAE8W91z.js +125 -0
- package/dist/web/server/assets/{SpawnTeamModal-RjzAeX_Q.js → SpawnTeamModal-CgBY0HuN.js} +6 -2
- package/dist/web/server/assets/{TeamForm-DdOgIMiV.js → TeamForm-JyO5xJXX.js} +6 -2
- package/dist/web/server/assets/{TeamThread-D-PvO3fu.js → TeamThread-5o48EbXL.js} +52 -4
- package/dist/web/server/assets/{UnsavedChangesGuard-Bb5frygQ.js → UnsavedChangesGuard-CJQGu45L.js} +1 -1
- package/dist/web/server/assets/{_id-C1_l6oSR.js → _id-BE_RSvuN.js} +14 -9
- package/dist/web/server/assets/{_id-CHvYQhWt.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-BPjVkcNb.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-BUfy-GwH.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-CNfvQ3NB.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-Cm_izIIC.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-COnfW5AU.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-NOkh61dV.js → agents-BXuglv4G.js} +12 -6
- package/dist/web/server/assets/{agents-C7UmTjfO.js → agents-DhenbitX.js} +2 -2
- package/dist/web/server/assets/{agents-D0hfGIMK.js → agents-KJcDMj0Y.js} +9 -6
- package/dist/web/server/assets/{agents-DzpqlIuJ.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-Cx9ZWPOO.js → attention-CDdOCOio.js} +3 -2
- package/dist/web/server/assets/{attention-CRvxt22X.js → attention-DM__BzWY.js} +24 -9
- package/dist/web/server/assets/{attention-CgWhXjX7.js → attention-X0U6ZmiA.js} +2 -1
- package/dist/web/server/assets/{auth-dJnrFW6y.js → auth-BexhV8Yq.js} +1 -1
- package/dist/web/server/assets/{config-B5CS8juO.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-D117117T.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-va4EtvA8.js → login-BJdJ219n.js} +1 -1
- package/dist/web/server/assets/{login-IF0Gbsuq.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-C96PBxpb.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-Bm9U6x7N.js → mcp-DwCzj7eO.js} +2 -2
- package/dist/web/server/assets/open-groups-BMGYUTtY.js +12 -0
- package/dist/web/server/assets/{page-title-CwcbXMhx.js → page-title-PTpFHXWo.js} +6 -3
- package/dist/web/server/assets/parts-k9M-atPa.js +436 -0
- package/dist/web/server/assets/{router-8Iq19GOz.js → router-BttfLktO.js} +354 -114
- package/dist/web/server/assets/{routes-Kwam6JmS.js → routes-A7UcreVX.js} +9 -6
- package/dist/web/server/assets/{routes-BLo-fWbQ.js → routes-B9jw-MJ8.js} +1286 -331
- package/dist/web/server/assets/{routes-BXvYYFrN.js → routes-BX2FV8rS.js} +3 -3
- package/dist/web/server/assets/{skills-DSezIdDc.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-BqCnA-74.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-C2hIPY_Y.js → style-BQ3H9I7Y.js} +1 -1
- package/dist/web/server/assets/{system-CcLCmkIC.js → system-BJPKqM6b.js} +2 -2
- package/dist/web/server/assets/{system-E0VePdzO.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-CdCmBJIj.js → teams-B6gbflsZ.js} +10 -6
- package/dist/web/server/assets/{teams-CQVV18D3.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-DScFp8mK.js → teams-CiX8LUQo.js} +2 -2
- package/dist/web/server/assets/{teams-DxA-vnzY.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-DJ8s_91Y.js → telegram-D8_V7_sW.js} +286 -272
- package/dist/web/server/assets/{telegram-DR7xijeS.js → telegram-DA2dwLID.js} +2 -2
- package/dist/web/server/assets/{tools-V6kezUpL.js → tools-CckcG9Jl.js} +5 -3
- package/dist/web/server/assets/{tools-CsH9DI-4.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-CjcJwn7F.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-Ya8TkL4v.js → welcome-CYhh3iUU.js} +8 -6
- package/dist/web/server/assets/{welcome-BpmcD-ia.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/web-server.js +4 -0
- package/dist/web-server.js.map +1 -1
- package/dist/worker.js +40 -15
- package/dist/worker.js.map +1 -1
- package/package.json +4 -4
- package/dist/web/client/assets/AddProviderDialog-CkwSq3C7.js +0 -1
- package/dist/web/client/assets/AgentTemplateParts-CEn_4qVs.js +0 -1
- package/dist/web/client/assets/ConfigPage-CUbHBhzx.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-VqBOFZEp.js +0 -1
- package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +0 -1
- package/dist/web/client/assets/ManagePage-BJWZd1ts.js +0 -1
- package/dist/web/client/assets/SectionTabs-ViZKm3-B.js +0 -1
- package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +0 -1
- package/dist/web/client/assets/TeamThread-mkwODO0S.js +0 -1
- package/dist/web/client/assets/_id-CvcxNmBH.js +0 -1
- package/dist/web/client/assets/_id-UyBk7gRl.js +0 -1
- package/dist/web/client/assets/agents-CgtzqBpD.js +0 -1
- package/dist/web/client/assets/agents-D7W4BT8r.js +0 -1
- package/dist/web/client/assets/arrow-right-D0HKRb7U.js +0 -1
- package/dist/web/client/assets/attention-D9mQWoKt.js +0 -1
- package/dist/web/client/assets/chevron-right-bs0TUSl2.js +0 -1
- package/dist/web/client/assets/config-Dw6GWf38.js +0 -1
- package/dist/web/client/assets/createLucideIcon-DkniuEtD.js +0 -1
- package/dist/web/client/assets/index-YW0gXPfk.js +0 -14
- package/dist/web/client/assets/login-DcQJk5-U.js +0 -1
- package/dist/web/client/assets/parts-LZxl9Gvc.js +0 -41
- package/dist/web/client/assets/plus-CLGNN5QX.js +0 -1
- package/dist/web/client/assets/routes-BxIIyGho.js +0 -85
- package/dist/web/client/assets/skills-C7DzIwFJ.js +0 -1
- package/dist/web/client/assets/styles-C3CDSGAr.css +0 -2
- package/dist/web/client/assets/teams-BEIJHObN.js +0 -1
- package/dist/web/client/assets/teams-DlOc7Ods.js +0 -1
- package/dist/web/client/assets/telegram-DKHq5DpE.js +0 -1
- package/dist/web/client/assets/tools-BKIpLaiC.js +0 -1
- package/dist/web/client/assets/welcome-CyS4Hrd-.js +0 -1
- package/dist/web/server/assets/Rail-3gbidhyv.js +0 -605
- package/dist/web/server/assets/SpawnDialog-MJWwppgC.js +0 -1648
- package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +0 -256
- package/dist/web/server/assets/createSsrRpc-CwTd0zrB.js +0 -72
- package/dist/web/server/assets/public-origin-BpDkdS5Q.js +0 -34
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-3gbidhyv.js";
|
|
2
|
+
import { n as PANEL_COOKIE, s as parsePanelCookie } from "./workspace-0XPILV1W.js";
|
|
4
3
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
5
|
-
import { n as daemonClient, r as ApiClientError } from "./daemon-client-
|
|
4
|
+
import { n as daemonClient, r as ApiClientError } from "./daemon-client-RxAllljf.js";
|
|
5
|
+
import { t as SIDEBAR_OPEN_GROUPS_COOKIE } from "./open-groups-BMGYUTtY.js";
|
|
6
6
|
//#region src/routes/index.tsx?tss-serverfn-split
|
|
7
7
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
8
8
|
function parseOpenGroupsCookie(raw) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as api } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
2
3
|
import { r as ago } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { t as Route } from "./skills-
|
|
6
|
-
import { t as ManagePage } from "./ManagePage-
|
|
7
|
-
import {
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
|
|
5
|
+
import { _ as RowMenu, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, v as SearchField, y as SetupCard } from "./parts-k9M-atPa.js";
|
|
6
|
+
import { t as Route } from "./skills-y3GsyKce.js";
|
|
7
|
+
import { t as ManagePage } from "./ManagePage-Dy1EdovO.js";
|
|
8
|
+
import { _ as skillState, b as skillsNeedingALook, g as skillSourceLabel, h as skillChosenBy, i as allSkillsLine, l as listed, s as count, u as matchesSkill, v as skillUseSentence } from "./manage-C6ucNYZW.js";
|
|
9
|
+
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-Cw05b3al.js";
|
|
8
10
|
import { useState } from "react";
|
|
9
11
|
import { useRouter } from "@tanstack/react-router";
|
|
10
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-RxAllljf.js";
|
|
4
4
|
//#region src/routes/skills/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchSkills_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5",
|
|
@@ -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-6LHNEsSK.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-BVAH93cd.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
//#region ../../packages/api-types/src/entities.ts
|
|
2
|
+
/** The Team and the Profile first-run setup creates. */
|
|
3
|
+
var DEFAULT_TEAM_ID = "default";
|
|
4
|
+
var DEFAULT_PROFILE_ID = "default";
|
|
5
|
+
/** Edge endpoint standing for every Agent in other Teams. */
|
|
6
|
+
var OUTSIDE_TEAM = "outside";
|
|
7
|
+
var REASONING_LEVELS = [
|
|
8
|
+
"off",
|
|
9
|
+
"minimal",
|
|
10
|
+
"low",
|
|
11
|
+
"medium",
|
|
12
|
+
"high",
|
|
13
|
+
"xhigh"
|
|
14
|
+
];
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../packages/api-types/src/public-origin.ts
|
|
17
|
+
/** The configuration for a BAZILION_PUBLIC_ORIGIN value; anything but an exact HTTPS origin throws. */
|
|
18
|
+
function publicOriginConfig(raw) {
|
|
19
|
+
const value = raw?.trim();
|
|
20
|
+
if (!value) return {
|
|
21
|
+
origin: null,
|
|
22
|
+
production: false,
|
|
23
|
+
sessionCookie: "bz_session_dev",
|
|
24
|
+
csrfCookie: "bz_csrf_dev"
|
|
25
|
+
};
|
|
26
|
+
let url;
|
|
27
|
+
try {
|
|
28
|
+
url = new URL(value);
|
|
29
|
+
} catch {
|
|
30
|
+
throw new Error("BAZILION_PUBLIC_ORIGIN must be an exact HTTPS origin");
|
|
31
|
+
}
|
|
32
|
+
if (url.protocol !== "https:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash || url.origin !== value.replace(/\/$/, "")) throw new Error("BAZILION_PUBLIC_ORIGIN must be an exact HTTPS origin");
|
|
33
|
+
return {
|
|
34
|
+
origin: url.origin,
|
|
35
|
+
production: true,
|
|
36
|
+
sessionCookie: "__Host-bz_session",
|
|
37
|
+
csrfCookie: "__Host-bz_csrf"
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function isLoopbackHost(hostname) {
|
|
41
|
+
return [
|
|
42
|
+
"127.0.0.1",
|
|
43
|
+
"localhost",
|
|
44
|
+
"[::1]",
|
|
45
|
+
"::1"
|
|
46
|
+
].includes(hostname);
|
|
47
|
+
}
|
|
48
|
+
var TEXT_TYPES = new Set([
|
|
49
|
+
"application/json",
|
|
50
|
+
"application/ld+json",
|
|
51
|
+
"application/xml",
|
|
52
|
+
"application/yaml",
|
|
53
|
+
"application/x-yaml",
|
|
54
|
+
"application/toml",
|
|
55
|
+
"application/javascript",
|
|
56
|
+
"application/x-sh",
|
|
57
|
+
"application/sql",
|
|
58
|
+
"application/x-ndjson"
|
|
59
|
+
]);
|
|
60
|
+
/** Files sent without a text type (`application/octet-stream`) that are text by their name. */
|
|
61
|
+
var TEXT_EXTENSIONS = new Set("txt md markdown csv tsv json jsonl ndjson yaml yml toml ini cfg conf log xml css scss js mjs cjs jsx ts tsx py rb go rs java kt swift c h cc cpp hpp cs php sh bash zsh fish ps1 sql r lua pl tex diff patch vue svelte graphql proto dockerfile makefile".split(" "));
|
|
62
|
+
/** Pages a browser would run are only ever downloaded, never shown, not even as text. */
|
|
63
|
+
var ACTIVE_TYPES = new Set([
|
|
64
|
+
"text/html",
|
|
65
|
+
"application/xhtml+xml",
|
|
66
|
+
"image/svg+xml"
|
|
67
|
+
]);
|
|
68
|
+
/** Whether Files can show a saved file as text: its type or its name says text, and it is small. */
|
|
69
|
+
function isTextPreview(result) {
|
|
70
|
+
if (result.byteLength > 262144) return false;
|
|
71
|
+
const type = result.mimeType.toLowerCase();
|
|
72
|
+
if (ACTIVE_TYPES.has(type)) return false;
|
|
73
|
+
if (type.startsWith("text/") || TEXT_TYPES.has(type) || /\+(json|xml)$/.test(type)) return true;
|
|
74
|
+
if (type !== "application/octet-stream") return false;
|
|
75
|
+
const name = result.name.toLowerCase();
|
|
76
|
+
const extension = name.includes(".") ? name.slice(name.lastIndexOf(".") + 1) : name;
|
|
77
|
+
return TEXT_EXTENSIONS.has(extension);
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region ../../packages/api-types/src/usage.ts
|
|
81
|
+
/** US dollars as Usage shows them: `$0.42`, `<$0.01`, `$1,234`. */
|
|
82
|
+
function formatCost(usd) {
|
|
83
|
+
if (usd <= 0) return "$0.00";
|
|
84
|
+
if (usd < .01) return "<$0.01";
|
|
85
|
+
if (usd < 1e3) return `$${usd.toFixed(2)}`;
|
|
86
|
+
return `$${Math.round(usd).toLocaleString("en-US")}`;
|
|
87
|
+
}
|
|
88
|
+
/** A use in a few words: `$0.42 · 12k tokens`, `15k tokens, on a plan`, `3.1k tokens, local`. */
|
|
89
|
+
function usageSummary(usage) {
|
|
90
|
+
const tokens = `${formatTokens(usage.totalTokens)} tokens`;
|
|
91
|
+
if (usage.cost > 0) return `${formatCost(usage.cost)} · ${tokens}`;
|
|
92
|
+
if (usage.totalTokens > 0 && usage.planTokens === usage.totalTokens) return `${tokens}, on a plan`;
|
|
93
|
+
if (usage.totalTokens > 0 && usage.localTokens === usage.totalTokens) return `${tokens}, local`;
|
|
94
|
+
return tokens;
|
|
95
|
+
}
|
|
96
|
+
/** A token count in a few characters: `950`, `12.5k`, `3.4M`. */
|
|
97
|
+
function formatTokens(tokens) {
|
|
98
|
+
if (tokens < 1e3) return String(Math.round(tokens));
|
|
99
|
+
if (tokens < 1e6) return `${(tokens / 1e3).toFixed(tokens < 1e4 ? 1 : 0)}k`;
|
|
100
|
+
return `${(tokens / 1e6).toFixed(tokens < 1e7 ? 1 : 0)}M`;
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { isLoopbackHost as a, DEFAULT_TEAM_ID as c, isTextPreview as i, OUTSIDE_TEAM as l, formatTokens as n, publicOriginConfig as o, usageSummary as r, DEFAULT_PROFILE_ID as s, formatCost as t, REASONING_LEVELS as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createMiddleware } from "../server.js";
|
|
2
2
|
import { n as cookieValues } from "./cookies-HnTYjKRp.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as isLoopbackHost, o as publicOriginConfig } from "./src-vrZVrV9u.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.14/node_modules/@tanstack/start-client-core/dist/esm/createStart.js
|
|
5
5
|
function dedupeSerializationAdapters(deduped, serializationAdapters) {
|
|
6
6
|
for (let i = 0, len = serializationAdapters.length; i < len; i++) {
|
|
@@ -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-6LHNEsSK.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/system.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./system-
|
|
5
|
+
var $$splitComponentImporter = () => import("./system-C7mejQSc.js");
|
|
6
6
|
var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
|
|
7
7
|
var Route = createFileRoute("/config/system")({
|
|
8
8
|
loader: () => fetchSystem(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Route } from "./system-
|
|
3
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
1
|
+
import { d as Chip, f as Fact, g as Notice, p as Facts, r as CardBody, s as CardRow, y as SetupCard } from "./parts-k9M-atPa.js";
|
|
2
|
+
import { t as Route } from "./system-BJPKqM6b.js";
|
|
3
|
+
import { t as ConfigPage } from "./ConfigPage-usZi48Zr.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Archive, Download, HeartPulse, SquareTerminal } from "lucide-react";
|
|
6
6
|
//#region src/components/setup/SystemCards.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-RxAllljf.js";
|
|
4
4
|
//#region src/routes/config/system.tsx?tss-serverfn-split
|
|
5
5
|
var fetchSystem_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7",
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
1
|
+
import { i as api } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
3
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
4
|
+
import { t as Dialog } from "./Dialog-DTeF-nOZ.js";
|
|
5
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
|
|
6
|
+
import { _ as RowMenu, d as Chip, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-k9M-atPa.js";
|
|
7
|
+
import { t as Route } from "./teams-CiX8LUQo.js";
|
|
8
|
+
import { t as ManagePage } from "./ManagePage-Dy1EdovO.js";
|
|
9
|
+
import { C as teamRemoveBlocker, s as count } from "./manage-C6ucNYZW.js";
|
|
10
|
+
import { t as TeamForm } from "./TeamForm-JyO5xJXX.js";
|
|
7
11
|
import { useState } from "react";
|
|
8
12
|
import { Link, useNavigate, useRouter } from "@tanstack/react-router";
|
|
9
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
3
|
+
import { n as DialogActions, t as Dialog } from "./Dialog-DTeF-nOZ.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
|
|
5
|
+
import { _ as RowMenu, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-k9M-atPa.js";
|
|
6
|
+
import { d as TextField } from "./form-BEjeiSy3.js";
|
|
7
|
+
import { t as Route } from "./teams-D-XdIkCr.js";
|
|
8
|
+
import { t as ManagePage } from "./ManagePage-Dy1EdovO.js";
|
|
9
|
+
import { S as slugify, f as rosterCounts, p as rosterLine, s as count, x as slugProblem } from "./manage-C6ucNYZW.js";
|
|
10
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-CgBY0HuN.js";
|
|
7
11
|
import { useState } from "react";
|
|
8
12
|
import { useNavigate, useRouter } from "@tanstack/react-router";
|
|
9
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-RxAllljf.js";
|
|
4
4
|
//#region src/routes/templates/teams/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTemplates_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-RxAllljf.js";
|
|
4
4
|
//#region src/routes/teams/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTeams_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82",
|
|
@@ -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-6LHNEsSK.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/teams/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./teams-
|
|
5
|
+
var $$splitComponentImporter = () => import("./teams-B6gbflsZ.js");
|
|
6
6
|
var fetchTeams = createServerFn({ method: "GET" }).handler(createSsrRpc("fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82"));
|
|
7
7
|
var Route = createFileRoute("/teams/")({
|
|
8
8
|
loader: () => fetchTeams(),
|
|
@@ -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-6LHNEsSK.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/templates/teams/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./teams-
|
|
5
|
+
var $$splitComponentImporter = () => import("./teams-C7kXMNgc.js");
|
|
6
6
|
var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad"));
|
|
7
7
|
var Route = createFileRoute("/templates/teams/")({
|
|
8
8
|
validateSearch: (search) => ({ new: search.new === 1 || search.new === "1" ? 1 : void 0 }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-RxAllljf.js";
|
|
4
4
|
//#region src/routes/config/telegram.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTelegramConfig_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92",
|