bazilion 0.54.0 → 0.55.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 +10 -5
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +356 -69
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-DfFOaCjC.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-IMJmAQjN.js +1 -0
- package/dist/web/client/assets/{Button-UiegBKOK.js → Button-bTJUy9Qf.js} +1 -1
- package/dist/web/client/assets/{ConfigPage-CUbHBhzx.js → ConfigPage-CzLHZa5o.js} +1 -1
- package/dist/web/client/assets/ConfirmDialog-Cu_evkgc.js +1 -0
- package/dist/web/client/assets/ConnectionsView-D7Fmutl2.js +1 -0
- package/dist/web/client/assets/{ManagePage-BJWZd1ts.js → ManagePage-BfvlCrmz.js} +1 -1
- package/dist/web/client/assets/{SectionTabs-ViZKm3-B.js → SectionTabs-D7kPQGoh.js} +1 -1
- package/dist/web/client/assets/{Segmented-MYKKTuZO.js → Segmented-oPkAHPO1.js} +1 -1
- package/dist/web/client/assets/SkillsParts-BuTxcCam.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-B1UnOvtp.js +1 -0
- package/dist/web/client/assets/TeamForm-DbzxtRjj.js +1 -0
- package/dist/web/client/assets/TeamThread-jpsWq6vI.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-BfyU9v9i.js +1 -0
- package/dist/web/client/assets/_id-BCNBLF-2.js +1 -0
- package/dist/web/client/assets/_id-D8_H79U2.js +1 -0
- package/dist/web/client/assets/access-CDWe1Kwy.js +1 -0
- package/dist/web/client/assets/{agent-actions-BgE9fKHH.js → agent-actions-CUee6aJq.js} +1 -1
- package/dist/web/client/assets/agents-sE686DTf.js +1 -0
- package/dist/web/client/assets/agents-yrur1NDa.js +1 -0
- package/dist/web/client/assets/arrow-right-U66krZnr.js +1 -0
- package/dist/web/client/assets/attention-DYEHDfmx.js +1 -0
- package/dist/web/client/assets/{bot-Bb--PFVU.js → bot-BCone8es.js} +1 -1
- package/dist/web/client/assets/chevron-right-CuqJFXTe.js +1 -0
- package/dist/web/client/assets/config-BHv886pr.js +1 -0
- package/dist/web/client/assets/createLucideIcon-jxSFpY0Q.js +1 -0
- package/dist/web/client/assets/{download-C4t9l5wR.js → download-Dy88XavQ.js} +1 -1
- package/dist/web/client/assets/{file-text-DzbjpYrV.js → file-text-DPsZ8-h9.js} +1 -1
- package/dist/web/client/assets/{images-DSYgPKM7.js → images-QBh_rL8b.js} +1 -1
- package/dist/web/client/assets/index-GOthyyE-.js +14 -0
- package/dist/web/client/assets/{key-round-BpK4-E3T.js → key-round-C-I8fAG0.js} +1 -1
- package/dist/web/client/assets/{list-checks-JNXcmws9.js → list-checks-C9Q-bjEi.js} +1 -1
- package/dist/web/client/assets/{login-DcQJk5-U.js → login-Dhe15Uuc.js} +1 -1
- package/dist/web/client/assets/{manage-SRGSx8n2.js → manage-BaIU5zKy.js} +1 -1
- package/dist/web/client/assets/mcp-A_Eo7x3q.js +1 -0
- package/dist/web/client/assets/{message-square-DM2MP9vF.js → message-square-Bwf9cHOx.js} +1 -1
- package/dist/web/client/assets/{network-BJ4iPjQO.js → network-B3FA93gC.js} +1 -1
- package/dist/web/client/assets/{parts-LZxl9Gvc.js → parts-CpIfn_BH.js} +1 -1
- package/dist/web/client/assets/plus-CQPjc8uR.js +1 -0
- package/dist/web/client/assets/routes-CTg_yjbY.js +85 -0
- package/dist/web/client/assets/skills-CLjtYtkA.js +1 -0
- package/dist/web/client/assets/{square-terminal-Dmm6cV-G.js → square-terminal-DaNLwvEs.js} +1 -1
- package/dist/web/client/assets/style-mjEbxhf5.js +7 -0
- package/dist/web/client/assets/styles-DzcEC3Rd.css +2 -0
- package/dist/web/client/assets/{system-zQ0NnQML.js → system-CrTSr5_t.js} +1 -1
- package/dist/web/client/assets/teams-Bhje5n2h.js +1 -0
- package/dist/web/client/assets/teams-Cbgw0Qhv.js +1 -0
- package/dist/web/client/assets/telegram-HtUczmaA.js +1 -0
- package/dist/web/client/assets/tools-BpjFvmoX.js +1 -0
- package/dist/web/client/assets/use-resource-BnvgCpBi.js +1 -0
- package/dist/web/client/assets/{users-round-BJrym3FG.js → users-round-BElBVSnw.js} +1 -1
- package/dist/web/client/assets/welcome-D47LKWYO.js +1 -0
- package/dist/web/client/assets/{wrench-GbE1M1RJ.js → wrench-DotqSqSm.js} +1 -1
- package/dist/web/server/assets/{AddProviderDialog-Nc5mc_P6.js → AddProviderDialog-BbpuvC2a.js} +2 -2
- package/dist/web/server/assets/{AgentTemplateParts-DZK_r3nQ.js → AgentTemplateParts-Ce7snK3m.js} +1 -1
- package/dist/web/server/assets/{ConfigPage-CxzL-gTm.js → ConfigPage-qP9ejjuw.js} +1 -1
- package/dist/web/server/assets/{ConfirmDialog-4xeCXKHe.js → ConfirmDialog-Z-uYbE9B.js} +1 -1
- package/dist/web/server/assets/{ConnectionsView-B02FjNsM.js → ConnectionsView-CLIV7V5D.js} +7 -7
- package/dist/web/server/assets/{ManagePage-BfCWE8Lj.js → ManagePage-BR9FwVZM.js} +1 -1
- package/dist/web/server/assets/{Rail-3gbidhyv.js → Rail-b6EbjBB-.js} +6 -6
- package/dist/web/server/assets/{SkillsParts-D58l8voo.js → SkillsParts-DWpdydCJ.js} +1 -1
- package/dist/web/server/assets/{SpawnDialog-MJWwppgC.js → SpawnDialog-3wNx0W1R.js} +212 -9
- package/dist/web/server/assets/{SpawnTeamModal-RjzAeX_Q.js → SpawnTeamModal-C-YMvoaB.js} +1 -1
- package/dist/web/server/assets/{TeamForm-DdOgIMiV.js → TeamForm-CL45gBdt.js} +1 -1
- package/dist/web/server/assets/{TeamThread-D-PvO3fu.js → TeamThread-CVVH6kKj.js} +3 -3
- package/dist/web/server/assets/{UnsavedChangesGuard-Bb5frygQ.js → UnsavedChangesGuard-CXK75QQp.js} +1 -1
- package/dist/web/server/assets/{_id-BPjVkcNb.js → _id-2I4CSMQj.js} +6 -6
- package/dist/web/server/assets/{_id-C1_l6oSR.js → _id-8zsImuGa.js} +7 -7
- package/dist/web/server/assets/{_id-BUfy-GwH.js → _id-BpfoPuTv.js} +2 -2
- package/dist/web/server/assets/{_id-CHvYQhWt.js → _id-d2OwovYV.js} +2 -2
- package/dist/web/server/assets/_tanstack-start-manifest_v-kkY_s_uR.js +256 -0
- package/dist/web/server/assets/{access-CNfvQ3NB.js → access-CwZ27Wsl.js} +4 -4
- package/dist/web/server/assets/{access-Cm_izIIC.js → access-CyUoElTP.js} +2 -2
- package/dist/web/server/assets/{agent-actions-COnfW5AU.js → agent-actions-C07Cp5Ue.js} +1 -1
- package/dist/web/server/assets/{agents-D0hfGIMK.js → agents-CwzhpDPm.js} +5 -5
- package/dist/web/server/assets/{agents-DzpqlIuJ.js → agents-DCWEoaxY.js} +2 -2
- package/dist/web/server/assets/{agents-C7UmTjfO.js → agents-DTub-rJk.js} +2 -2
- package/dist/web/server/assets/{agents-NOkh61dV.js → agents-vuXrAv1j.js} +5 -5
- package/dist/web/server/assets/{attention-Cx9ZWPOO.js → attention-BqCnJ1hg.js} +3 -2
- package/dist/web/server/assets/{attention-CgWhXjX7.js → attention-Dki8rmGZ.js} +1 -0
- package/dist/web/server/assets/{attention-CRvxt22X.js → attention-DwGaur_w.js} +21 -8
- package/dist/web/server/assets/{config-B5CS8juO.js → config-B9dJiji_.js} +2 -2
- package/dist/web/server/assets/{config-D117117T.js → config-D3MR2VjE.js} +6 -6
- package/dist/web/server/assets/{createSsrRpc-CwTd0zrB.js → createSsrRpc-qesavJv-.js} +1 -1
- package/dist/web/server/assets/{login-va4EtvA8.js → login-CRd1yTH5.js} +1 -1
- package/dist/web/server/assets/{login-IF0Gbsuq.js → login-ZN6KV8n-.js} +2 -2
- package/dist/web/server/assets/{mcp-C96PBxpb.js → mcp-BQ15a9dG.js} +4 -4
- package/dist/web/server/assets/{mcp-Bm9U6x7N.js → mcp-CYQuYWGX.js} +2 -2
- package/dist/web/server/assets/{page-title-CwcbXMhx.js → page-title-CVY-c2Pd.js} +6 -3
- package/dist/web/server/assets/{router-8Iq19GOz.js → router-CPdWGKQ5.js} +192 -60
- package/dist/web/server/assets/{routes-Kwam6JmS.js → routes-BPloBDc8.js} +9 -6
- package/dist/web/server/assets/{routes-BLo-fWbQ.js → routes-Dw1K3TQw.js} +132 -31
- package/dist/web/server/assets/{routes-BXvYYFrN.js → routes-xDPesCQu.js} +2 -2
- package/dist/web/server/assets/{skills-BqCnA-74.js → skills-6VSpEORe.js} +2 -2
- package/dist/web/server/assets/{skills-DSezIdDc.js → skills-D0xrNc2_.js} +5 -5
- package/dist/web/server/assets/{style-C2hIPY_Y.js → style-aMybyKzc.js} +1 -1
- package/dist/web/server/assets/{system-CcLCmkIC.js → system-B5sPgdQW.js} +2 -2
- package/dist/web/server/assets/{system-E0VePdzO.js → system-CXmiWyDG.js} +3 -3
- package/dist/web/server/assets/{teams-DScFp8mK.js → teams-ClRBVSYU.js} +2 -2
- package/dist/web/server/assets/{teams-DxA-vnzY.js → teams-Dq4RCxis.js} +2 -2
- package/dist/web/server/assets/{teams-CQVV18D3.js → teams-iXiCnN2i.js} +5 -5
- package/dist/web/server/assets/{teams-CdCmBJIj.js → teams-yF3I_Zjq.js} +5 -5
- package/dist/web/server/assets/{telegram-DR7xijeS.js → telegram-D9U9c1MN.js} +2 -2
- package/dist/web/server/assets/{telegram-DJ8s_91Y.js → telegram-DwEgyR1x.js} +5 -5
- package/dist/web/server/assets/{tools-CsH9DI-4.js → tools-DflVIdDd.js} +2 -2
- package/dist/web/server/assets/{tools-V6kezUpL.js → tools-VPIKjr3y.js} +3 -3
- package/dist/web/server/assets/{use-resource-CjcJwn7F.js → use-resource-CbHGYti0.js} +1 -1
- package/dist/web/server/assets/{welcome-BpmcD-ia.js → welcome-7DrYZVs6.js} +2 -2
- package/dist/web/server/assets/{welcome-Ya8TkL4v.js → welcome-966nOyyK.js} +6 -6
- package/dist/web/server/server.js +4 -4
- package/dist/web-server.js +4 -0
- package/dist/web-server.js.map +1 -1
- package/dist/worker.js +17 -13
- 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/ConfirmDialog-VqBOFZEp.js +0 -1
- package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +0 -1
- package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +0 -1
- package/dist/web/client/assets/SpawnTeamModal-DG5UbJNK.js +0 -1
- package/dist/web/client/assets/TeamForm-DGlxWv4e.js +0 -1
- package/dist/web/client/assets/TeamThread-mkwODO0S.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-BmdwLH99.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/access-C8d8vaQ6.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/mcp-BUWu4TvS.js +0 -1
- 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/style-CA2GAk9b.js +0 -7
- 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/use-resource-CQaIZbpy.js +0 -1
- package/dist/web/client/assets/welcome-CyS4Hrd-.js +0 -1
- package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +0 -256
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { H as parseWorkspaceSearch } from "./SpawnDialog-
|
|
3
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { H as parseWorkspaceSearch } from "./SpawnDialog-3wNx0W1R.js";
|
|
3
|
+
import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.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. */
|
|
@@ -45,13 +45,16 @@ var SHORTCUTS = [
|
|
|
45
45
|
}
|
|
46
46
|
];
|
|
47
47
|
/**
|
|
48
|
-
* Whether keys typed now belong to a field or a control that reads the keyboard itself (
|
|
49
|
-
* dropdown, a menu, a list), where a plain-key shortcut must not fire.
|
|
48
|
+
* Whether keys typed now belong to a field or a control that reads the keyboard itself (an open
|
|
49
|
+
* dropdown, a menu, a list), where a plain-key shortcut must not fire. A closed dropdown, which
|
|
50
|
+
* keeps the focus after a pick, lets them through.
|
|
50
51
|
*/
|
|
51
52
|
function isTyping(target) {
|
|
52
53
|
if (typeof HTMLElement === "undefined" || !(target instanceof HTMLElement)) return false;
|
|
53
54
|
if (target.isContentEditable) return true;
|
|
54
|
-
|
|
55
|
+
const combobox = target.closest("[role=\"combobox\"]");
|
|
56
|
+
if (combobox && (combobox.tagName === "INPUT" || combobox.getAttribute("aria-expanded") === "true")) return true;
|
|
57
|
+
if (target.closest("[role=\"listbox\"],[role=\"menu\"],[role=\"option\"],[role=\"menuitem\"],[role=\"slider\"]")) return true;
|
|
55
58
|
const tag = target.tagName;
|
|
56
59
|
if (tag === "TEXTAREA" || tag === "SELECT") return true;
|
|
57
60
|
if (tag !== "INPUT") return false;
|
|
@@ -76,7 +79,7 @@ function neighbour(ordered, current, step) {
|
|
|
76
79
|
}
|
|
77
80
|
//#endregion
|
|
78
81
|
//#region src/routes/index.tsx
|
|
79
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
82
|
+
var $$splitComponentImporter = () => import("./routes-Dw1K3TQw.js");
|
|
80
83
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
81
84
|
var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
|
|
82
85
|
var Route = createFileRoute("/")({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as RowMenu, B as isTeamSection, E as Facts, G as DialogActions, K as Button, L as PANEL_LABELS, M as SetupCard, N as Switch, O as ListRow, Q as ActivityProvider, R as PANEL_TABS, T as Fact, U as writePanelCookie, W as Dialog$1, Z as REASONING_LEVELS, _ as CardEmpty, at as lineChange, c as SelectField,
|
|
2
|
-
import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-
|
|
1
|
+
import { A as RowMenu, B as isTeamSection, E as Facts, G as DialogActions, K as Button, L as PANEL_LABELS, M as SetupCard, N as Switch, O as ListRow, Q as ActivityProvider, R as PANEL_TABS, T as Fact, U as writePanelCookie, W as Dialog$1, Z as REASONING_LEVELS, _ as CardEmpty, at as lineChange, c as SelectField, d as TextAreaField, dt as api, et as shortTime, f as TextField, ft as apiFetch, g as CardBody, h as CARD_ROW, i as FilterSelect, it as describeStep, j as SearchField, k as Notice, l as SelectMenu, lt as useLive, nt as useActivity, o as SaveBar, ot as parseArgs, p as saveStatus, pt as errorMessage, q as AgentAvatar, r as ChoiceCards, rt as useActivityOptional, st as summarizeSteps, t as SpawnDialog, tt as teamSummary, u as SwitchRow, ut as ApiError, v as CardForm, w as Chip, x as CardToolbar, y as CardList, z as isAgentSection } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
|
+
import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-CbHGYti0.js";
|
|
3
3
|
import { l as modelName, n as ModelMenu, p as cn, t as MODELS_PATH } from "./ModelMenu-D-hTgYOO.js";
|
|
4
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
|
|
5
5
|
import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
|
|
6
|
-
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-
|
|
7
|
-
import { a as STATE_TEXT, c as useWorkspace, i as STATE_DOT, l as useWorkspaceOptional, n as RenameAgentDialog, o as SlimRail, s as WorkspaceProvider, t as Rail } from "./Rail-
|
|
8
|
-
import { a as trafficByPair, i as pairKey, n as useTeamMessages, o as FocusFrame, r as messageText, t as TeamThread } from "./TeamThread-
|
|
9
|
-
import { i as unarchiveAgent, n as deleteAgent, t as archiveAgent } from "./agent-actions-
|
|
6
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CXK75QQp.js";
|
|
7
|
+
import { a as STATE_TEXT, c as useWorkspace, i as STATE_DOT, l as useWorkspaceOptional, n as RenameAgentDialog, o as SlimRail, s as WorkspaceProvider, t as Rail } from "./Rail-b6EbjBB-.js";
|
|
8
|
+
import { a as trafficByPair, i as pairKey, n as useTeamMessages, o as FocusFrame, r as messageText, t as TeamThread } from "./TeamThread-CVVH6kKj.js";
|
|
9
|
+
import { i as unarchiveAgent, n as deleteAgent, t as archiveAgent } from "./agent-actions-C07Cp5Ue.js";
|
|
10
10
|
import { S as slugify, _ as skillState, x as slugProblem } from "./manage-Ce6cI4eW.js";
|
|
11
|
-
import { t as SpawnTeamModal } from "./SpawnTeamModal-
|
|
12
|
-
import { i as useAttentionCount, n as usePageTitle } from "./page-title-
|
|
13
|
-
import { i as StatusBadge } from "./createSsrRpc-
|
|
14
|
-
import { a as neighbour, i as isTyping, n as NEW_CONVERSATION_EVENT, t as Route } from "./routes-
|
|
15
|
-
import { n as FindingsNotice, t as FindingLines } from "./SkillsParts-
|
|
11
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-C-YMvoaB.js";
|
|
12
|
+
import { i as useAttentionCount, n as usePageTitle } from "./page-title-CVY-c2Pd.js";
|
|
13
|
+
import { i as StatusBadge } from "./createSsrRpc-qesavJv-.js";
|
|
14
|
+
import { a as neighbour, i as isTyping, n as NEW_CONVERSATION_EVENT, t as Route } from "./routes-BPloBDc8.js";
|
|
15
|
+
import { n as FindingsNotice, t as FindingLines } from "./SkillsParts-DWpdydCJ.js";
|
|
16
16
|
import { Fragment, Suspense, createContext, lazy, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
17
17
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
18
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4292,6 +4292,10 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
|
|
|
4292
4292
|
const entryCountRef = useRef(0);
|
|
4293
4293
|
const streamingRef = useRef(false);
|
|
4294
4294
|
streamingRef.current = streaming;
|
|
4295
|
+
const staleRef = useRef(stale);
|
|
4296
|
+
staleRef.current = stale;
|
|
4297
|
+
const activityRef = useRef(null);
|
|
4298
|
+
const feed = useLive();
|
|
4295
4299
|
const turnBusy = streaming || recoveredTurn;
|
|
4296
4300
|
const agentBusy = turnBusy || Boolean(queue?.turnActive);
|
|
4297
4301
|
const queueWorking = queue?.turnActive || queue?.items.some((item) => item.status === "running" || item.status === "pending" && !queue.paused);
|
|
@@ -4333,43 +4337,66 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
|
|
|
4333
4337
|
know(head);
|
|
4334
4338
|
} catch {}
|
|
4335
4339
|
}
|
|
4340
|
+
/** True when a follow-up had finished and the history was loaded again. */
|
|
4336
4341
|
async function refreshQueue() {
|
|
4337
4342
|
try {
|
|
4338
4343
|
const next = await api(`${base}/queue`);
|
|
4339
|
-
|
|
4344
|
+
const finished = openFollowUps(next) < openFollowUps(queueRef.current) && !streamingRef.current;
|
|
4345
|
+
if (finished) refreshHistory();
|
|
4340
4346
|
queueRef.current = next;
|
|
4341
4347
|
setQueue(next);
|
|
4348
|
+
return finished;
|
|
4349
|
+
} catch {
|
|
4350
|
+
return false;
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
/** Activity from another source (Telegram, a schedule, another tab) shows a reload banner. */
|
|
4354
|
+
async function checkHead() {
|
|
4355
|
+
if (!initialSessionHead || staleRef.current || streamingRef.current) return;
|
|
4356
|
+
try {
|
|
4357
|
+
const head = await api(`${base}/sessions/head`);
|
|
4358
|
+
const known = knownHeadRef.current;
|
|
4359
|
+
if (Boolean(head.unavailable) !== Boolean(known.unavailable) || head.file !== known.file || head.size !== known.size) {
|
|
4360
|
+
setStale(true);
|
|
4361
|
+
refreshQueue();
|
|
4362
|
+
}
|
|
4342
4363
|
} catch {}
|
|
4343
4364
|
}
|
|
4344
4365
|
useEffect(() => () => abortRef.current?.abort(), []);
|
|
4345
4366
|
useEffect(() => {
|
|
4346
4367
|
refreshQueue();
|
|
4347
4368
|
}, []);
|
|
4369
|
+
useEffect(() => feed.subscribe("activity", (event) => {
|
|
4370
|
+
const now = event.agents.find((entry) => entry.agentId === agentId) ?? null;
|
|
4371
|
+
const was = activityRef.current;
|
|
4372
|
+
activityRef.current = now;
|
|
4373
|
+
if (!now || streamingRef.current) return;
|
|
4374
|
+
if (!was) return void checkHead();
|
|
4375
|
+
if (now.working !== was.working || now.queuePaused !== was.queuePaused || now.followUps !== was.followUps) {
|
|
4376
|
+
const ended = was.working && !now.working;
|
|
4377
|
+
refreshQueue().then((reloaded) => {
|
|
4378
|
+
if (ended && !reloaded) checkHead();
|
|
4379
|
+
});
|
|
4380
|
+
} else if (!now.working && now.lastActivityAt !== was.lastActivityAt) checkHead();
|
|
4381
|
+
}), [feed.subscribe, agentId]);
|
|
4348
4382
|
useEffect(() => {
|
|
4349
|
-
if (!queueWorking) return;
|
|
4383
|
+
if (!queueWorking || feed.connected) return;
|
|
4350
4384
|
const timer = setInterval(() => {
|
|
4351
4385
|
if (!document.hidden) refreshQueue();
|
|
4352
4386
|
}, QUEUE_POLL_MS);
|
|
4353
4387
|
return () => clearInterval(timer);
|
|
4354
|
-
}, [queueWorking]);
|
|
4388
|
+
}, [queueWorking, feed.connected]);
|
|
4355
4389
|
useEffect(() => {
|
|
4356
|
-
if (!initialSessionHead || stale) return;
|
|
4357
|
-
const timer = setInterval(
|
|
4358
|
-
if (document.hidden
|
|
4359
|
-
try {
|
|
4360
|
-
const head = await api(`${base}/sessions/head`);
|
|
4361
|
-
const known = knownHeadRef.current;
|
|
4362
|
-
if (Boolean(head.unavailable) !== Boolean(known.unavailable) || head.file !== known.file || head.size !== known.size) {
|
|
4363
|
-
setStale(true);
|
|
4364
|
-
refreshQueue();
|
|
4365
|
-
}
|
|
4366
|
-
} catch {}
|
|
4390
|
+
if (!initialSessionHead || stale || feed.connected) return;
|
|
4391
|
+
const timer = setInterval(() => {
|
|
4392
|
+
if (!document.hidden) checkHead();
|
|
4367
4393
|
}, SESSION_POLL_MS);
|
|
4368
4394
|
return () => clearInterval(timer);
|
|
4369
4395
|
}, [
|
|
4370
4396
|
base,
|
|
4371
4397
|
initialSessionHead,
|
|
4372
|
-
stale
|
|
4398
|
+
stale,
|
|
4399
|
+
feed.connected
|
|
4373
4400
|
]);
|
|
4374
4401
|
useEffect(() => {
|
|
4375
4402
|
const controller = new AbortController();
|
|
@@ -8464,9 +8491,80 @@ function TeamHome({ team }) {
|
|
|
8464
8491
|
});
|
|
8465
8492
|
}
|
|
8466
8493
|
//#endregion
|
|
8494
|
+
//#region src/components/workspace/WaitingStrip.tsx
|
|
8495
|
+
/** How many Agents the strip names before it points to Attention. */
|
|
8496
|
+
var SHOWN = 3;
|
|
8497
|
+
function WaitingStrip({ className = "" }) {
|
|
8498
|
+
const { agents, teams } = useWorkspace();
|
|
8499
|
+
const activity = useActivity();
|
|
8500
|
+
const waiting = agents.map((agent) => ({
|
|
8501
|
+
agent,
|
|
8502
|
+
state: activity.stateOf(agent.id)
|
|
8503
|
+
})).filter((entry) => entry.state.kind === "needs");
|
|
8504
|
+
if (waiting.length === 0) return null;
|
|
8505
|
+
const teamName = new Map(teams.map((team) => [team.id, team.name]));
|
|
8506
|
+
const more = waiting.length - SHOWN;
|
|
8507
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
8508
|
+
"aria-label": "Waiting for you",
|
|
8509
|
+
className: `rounded-2xl border border-warning/40 bg-warning/10 px-3 py-2.5 shadow-baziu-sm ${className}`,
|
|
8510
|
+
children: [
|
|
8511
|
+
/* @__PURE__ */ jsxs("h2", {
|
|
8512
|
+
className: "m-0 mb-1.5 flex items-center gap-1.5 font-body text-xs font-bold uppercase tracking-[0.08em] text-warning",
|
|
8513
|
+
children: [/* @__PURE__ */ jsx(BellRing, {
|
|
8514
|
+
className: "size-3.5",
|
|
8515
|
+
"aria-hidden": "true"
|
|
8516
|
+
}), "Waiting for you"]
|
|
8517
|
+
}),
|
|
8518
|
+
/* @__PURE__ */ jsx("ul", {
|
|
8519
|
+
className: "m-0 flex list-none flex-col gap-1 p-0",
|
|
8520
|
+
children: waiting.slice(0, SHOWN).map(({ agent, state }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(WaitingRow, {
|
|
8521
|
+
agent,
|
|
8522
|
+
team: teamName.get(agent.teamId),
|
|
8523
|
+
text: state.text
|
|
8524
|
+
}) }, agent.id))
|
|
8525
|
+
}),
|
|
8526
|
+
more > 0 && /* @__PURE__ */ jsxs(Link, {
|
|
8527
|
+
to: "/attention",
|
|
8528
|
+
className: "mt-1.5 inline-block text-sm font-semibold",
|
|
8529
|
+
children: [more, " more in Attention"]
|
|
8530
|
+
})
|
|
8531
|
+
]
|
|
8532
|
+
});
|
|
8533
|
+
}
|
|
8534
|
+
function WaitingRow({ agent, team, text }) {
|
|
8535
|
+
return /* @__PURE__ */ jsxs(Link, {
|
|
8536
|
+
to: "/",
|
|
8537
|
+
search: { agent: agent.id },
|
|
8538
|
+
className: "flex min-h-11 items-center gap-2.5 rounded-xl px-1.5 py-1 text-foreground hover:bg-card/70",
|
|
8539
|
+
children: [
|
|
8540
|
+
/* @__PURE__ */ jsx(AgentAvatar, {
|
|
8541
|
+
identity: agent.identity,
|
|
8542
|
+
size: 28
|
|
8543
|
+
}),
|
|
8544
|
+
/* @__PURE__ */ jsxs("span", {
|
|
8545
|
+
className: "min-w-0 flex-1",
|
|
8546
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
8547
|
+
className: "block truncate text-sm font-semibold",
|
|
8548
|
+
children: [agent.name, team && /* @__PURE__ */ jsxs("span", {
|
|
8549
|
+
className: "font-normal text-mocha",
|
|
8550
|
+
children: [" · ", team]
|
|
8551
|
+
})]
|
|
8552
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
8553
|
+
className: "block truncate text-xs text-warning",
|
|
8554
|
+
children: text
|
|
8555
|
+
})]
|
|
8556
|
+
}),
|
|
8557
|
+
/* @__PURE__ */ jsx("span", {
|
|
8558
|
+
className: "shrink-0 text-xs font-semibold text-accent-foreground",
|
|
8559
|
+
children: "Open"
|
|
8560
|
+
})
|
|
8561
|
+
]
|
|
8562
|
+
});
|
|
8563
|
+
}
|
|
8564
|
+
//#endregion
|
|
8467
8565
|
//#region src/routes/index.tsx?tsr-split=component
|
|
8468
8566
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
8469
|
-
var ConnectionsView = lazy(() => import("./ConnectionsView-
|
|
8567
|
+
var ConnectionsView = lazy(() => import("./ConnectionsView-CLIV7V5D.js").then((module) => ({ default: module.ConnectionsView })));
|
|
8470
8568
|
function WorkspacePage() {
|
|
8471
8569
|
const data = Route.useLoaderData();
|
|
8472
8570
|
const search = Route.useSearch();
|
|
@@ -8612,9 +8710,12 @@ function WorkspacePage() {
|
|
|
8612
8710
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
8613
8711
|
className: `grid h-full min-h-0 grid-cols-1 gap-3 py-3 lg:grid-cols-[18rem_minmax(0,1fr)] ${panel === "none" ? "" : "xl:grid-cols-[18rem_minmax(0,1fr)_minmax(22rem,27rem)]"}`,
|
|
8614
8712
|
children: [
|
|
8615
|
-
/* @__PURE__ */
|
|
8616
|
-
className: `min-h-0 ${open || team ? "hidden lg:
|
|
8617
|
-
children: /* @__PURE__ */ jsx(
|
|
8713
|
+
/* @__PURE__ */ jsxs("div", {
|
|
8714
|
+
className: `flex min-h-0 flex-col gap-3 ${open || team ? "hidden lg:flex" : ""}`,
|
|
8715
|
+
children: [/* @__PURE__ */ jsx(WaitingStrip, { className: "lg:hidden" }), /* @__PURE__ */ jsx("div", {
|
|
8716
|
+
className: "min-h-0 flex-1",
|
|
8717
|
+
children: /* @__PURE__ */ jsx(Rail, { initialOpenGroups: data.openGroups })
|
|
8718
|
+
})]
|
|
8618
8719
|
}),
|
|
8619
8720
|
/* @__PURE__ */ jsx("div", {
|
|
8620
8721
|
className: `min-h-0 min-w-0 ${open || team ? "" : "hidden lg:block"}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
|
-
import { I as PANEL_COOKIE, V as parsePanelCookie } from "./SpawnDialog-
|
|
3
|
-
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-
|
|
2
|
+
import { I as PANEL_COOKIE, V as parsePanelCookie } from "./SpawnDialog-3wNx0W1R.js";
|
|
3
|
+
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-b6EbjBB-.js";
|
|
4
4
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
5
5
|
import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
|
|
6
6
|
//#region src/routes/index.tsx?tss-serverfn-split
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.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-D0xrNc2_.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, g as CardBody, j as SearchField, k as Notice,
|
|
1
|
+
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, dt as api, g as CardBody, j as SearchField, k as Notice, m as Banner, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
2
|
import { r as ago } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
3
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
|
|
4
4
|
import { _ as skillState, b as skillsNeedingALook, g as skillSourceLabel, h as skillChosenBy, i as allSkillsLine, l as listed, s as count, u as matchesSkill, v as skillUseSentence } from "./manage-Ce6cI4eW.js";
|
|
5
|
-
import { t as Route } from "./skills-
|
|
6
|
-
import { t as ManagePage } from "./ManagePage-
|
|
7
|
-
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-
|
|
5
|
+
import { t as Route } from "./skills-6VSpEORe.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BR9FwVZM.js";
|
|
7
|
+
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-DWpdydCJ.js";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { useRouter } from "@tanstack/react-router";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.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-CXmiWyDG.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 { E as Facts, M as SetupCard, T as Fact, b as CardRow, g as CardBody, k as Notice, w as Chip } from "./SpawnDialog-
|
|
2
|
-
import { t as Route } from "./system-
|
|
3
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
1
|
+
import { E as Facts, M as SetupCard, T as Fact, b as CardRow, g as CardBody, k as Notice, w as Chip } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
|
+
import { t as Route } from "./system-B5sPgdQW.js";
|
|
3
|
+
import { t as ConfigPage } from "./ConfigPage-qP9ejjuw.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,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-qesavJv-.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-yF3I_Zjq.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-qesavJv-.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-iXiCnN2i.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,9 +1,9 @@
|
|
|
1
|
-
import { A as RowMenu, G as DialogActions, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty, dt as
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
1
|
+
import { A as RowMenu, G as DialogActions, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty, dt as api, f as TextField, k as Notice, pt as errorMessage, w as Chip, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
|
|
3
3
|
import { S as slugify, f as rosterCounts, p as rosterLine, s as count, x as slugProblem } from "./manage-Ce6cI4eW.js";
|
|
4
|
-
import { t as SpawnTeamModal } from "./SpawnTeamModal-
|
|
5
|
-
import { t as Route } from "./teams-
|
|
6
|
-
import { t as ManagePage } from "./ManagePage-
|
|
4
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-C-YMvoaB.js";
|
|
5
|
+
import { t as Route } from "./teams-Dq4RCxis.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BR9FwVZM.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useNavigate, useRouter } from "@tanstack/react-router";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty,
|
|
2
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
1
|
+
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty, dt as api, q as AgentAvatar, w as Chip, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
|
|
3
3
|
import { C as teamRemoveBlocker, s as count } from "./manage-Ce6cI4eW.js";
|
|
4
|
-
import { t as TeamForm } from "./TeamForm-
|
|
5
|
-
import { t as Route } from "./teams-
|
|
6
|
-
import { t as ManagePage } from "./ManagePage-
|
|
4
|
+
import { t as TeamForm } from "./TeamForm-CL45gBdt.js";
|
|
5
|
+
import { t as Route } from "./teams-ClRBVSYU.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BR9FwVZM.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { Link, useNavigate, useRouter } from "@tanstack/react-router";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/telegram.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./telegram-
|
|
5
|
+
var $$splitComponentImporter = () => import("./telegram-DwEgyR1x.js");
|
|
6
6
|
var fetchTelegramConfig = createServerFn({ method: "GET" }).handler(createSsrRpc("9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92"));
|
|
7
7
|
var Route = createFileRoute("/config/telegram")({
|
|
8
8
|
loader: () => fetchTelegramConfig(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as CheckList, E as Facts, K as Button, M as SetupCard, O as ListRow, P as Waiting, S as CheckItem, T as Fact, a as Problem, b as CardRow, dt as
|
|
2
|
-
import { r as useResource } from "./use-resource-
|
|
1
|
+
import { C as CheckList, E as Facts, K as Button, M as SetupCard, O as ListRow, P as Waiting, S as CheckItem, T as Fact, a as Problem, b as CardRow, dt as api, f as TextField, g as CardBody, k as Notice, m as Banner, n as CheckboxRow, o as SaveBar, p as saveStatus, pt as errorMessage, s as SecretField, u as SwitchRow, v as CardForm, w as Chip, y as CardList } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
|
+
import { r as useResource } from "./use-resource-CbHGYti0.js";
|
|
3
3
|
import { r as ago } from "./ModelMenu-D-hTgYOO.js";
|
|
4
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
5
|
-
import { t as Route } from "./telegram-
|
|
6
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-Z-uYbE9B.js";
|
|
5
|
+
import { t as Route } from "./telegram-D9U9c1MN.js";
|
|
6
|
+
import { t as ConfigPage } from "./ConfigPage-qP9ejjuw.js";
|
|
7
7
|
import { useEffect, useState } from "react";
|
|
8
8
|
import { useRouter } from "@tanstack/react-router";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/tools.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./tools-
|
|
5
|
+
var $$splitComponentImporter = () => import("./tools-VPIKjr3y.js");
|
|
6
6
|
var fetchTools = createServerFn({ method: "GET" }).handler(createSsrRpc("946c6cbff3f55931c3fb28c971d20b18b4b8a9f25417a5d1afc0550d7afa393b"));
|
|
7
7
|
var Route = createFileRoute("/config/tools")({
|
|
8
8
|
loader: () => fetchTools(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as SetupCard, a as Problem,
|
|
1
|
+
import { M as SetupCard, a as Problem, dt as api, f as TextField, k as Notice, o as SaveBar, p as saveStatus, pt as errorMessage, r as ChoiceCards, s as SecretField, u as SwitchRow, ut as ApiError, v as CardForm, w as Chip } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
2
|
import { p as cn } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
-
import { t as Route } from "./tools-
|
|
4
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
3
|
+
import { t as Route } from "./tools-DflVIdDd.js";
|
|
4
|
+
import { t as ConfigPage } from "./ConfigPage-qP9ejjuw.js";
|
|
5
5
|
import { useId, useState } from "react";
|
|
6
6
|
import { useRouter } from "@tanstack/react-router";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-qesavJv-.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/lib/auth.ts
|
|
5
5
|
var fetchAuthState = createServerFn({ method: "GET" }).handler(createSsrRpc("a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2"));
|
|
@@ -11,7 +11,7 @@ function isSetupOpen(path) {
|
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/routes/welcome.tsx
|
|
14
|
-
var $$splitComponentImporter = () => import("./welcome-
|
|
14
|
+
var $$splitComponentImporter = () => import("./welcome-966nOyyK.js");
|
|
15
15
|
var fetchProviders = createServerFn({ method: "GET" }).handler(createSsrRpc("818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58"));
|
|
16
16
|
var Route = createFileRoute("/welcome")({
|
|
17
17
|
beforeLoad: async () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { J as DEFAULT_PROFILE_ID, K as Button,
|
|
2
|
-
import { r as useResource } from "./use-resource-
|
|
3
|
-
import { n as usePageTitle } from "./page-title-
|
|
4
|
-
import { r as PageShell } from "./createSsrRpc-
|
|
5
|
-
import { t as Route } from "./welcome-
|
|
6
|
-
import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-
|
|
1
|
+
import { J as DEFAULT_PROFILE_ID, K as Button, dt as api } from "./SpawnDialog-3wNx0W1R.js";
|
|
2
|
+
import { r as useResource } from "./use-resource-CbHGYti0.js";
|
|
3
|
+
import { n as usePageTitle } from "./page-title-CVY-c2Pd.js";
|
|
4
|
+
import { r as PageShell } from "./createSsrRpc-qesavJv-.js";
|
|
5
|
+
import { t as Route } from "./welcome-7DrYZVs6.js";
|
|
6
|
+
import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-BbpuvC2a.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useNavigate } from "@tanstack/react-router";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3558,7 +3558,7 @@ var defaultSerovalPlugins = [
|
|
|
3558
3558
|
* the dev styles URL for route-scoped CSS collection.
|
|
3559
3559
|
*/
|
|
3560
3560
|
async function getStartManifest(matchedRoutes) {
|
|
3561
|
-
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-
|
|
3561
|
+
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-kkY_s_uR.js");
|
|
3562
3562
|
const startManifest = tsrStartManifest();
|
|
3563
3563
|
let routes = startManifest.routes;
|
|
3564
3564
|
routes[rootRouteId];
|
|
@@ -3586,7 +3586,7 @@ var manifest = {
|
|
|
3586
3586
|
},
|
|
3587
3587
|
"22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe": {
|
|
3588
3588
|
functionName: "fetchWorkspace_createServerFn_handler",
|
|
3589
|
-
importer: () => import("./assets/routes-
|
|
3589
|
+
importer: () => import("./assets/routes-xDPesCQu.js")
|
|
3590
3590
|
},
|
|
3591
3591
|
"278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7": {
|
|
3592
3592
|
functionName: "fetchServers_createServerFn_handler",
|
|
@@ -3610,7 +3610,7 @@ var manifest = {
|
|
|
3610
3610
|
},
|
|
3611
3611
|
"883b401299422096ee31ee824f9a24b49d06bdcedce398789778c4c549a92f3a": {
|
|
3612
3612
|
functionName: "loadAttention_createServerFn_handler",
|
|
3613
|
-
importer: () => import("./assets/attention-
|
|
3613
|
+
importer: () => import("./assets/attention-Dki8rmGZ.js")
|
|
3614
3614
|
},
|
|
3615
3615
|
"9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92": {
|
|
3616
3616
|
functionName: "fetchTelegramConfig_createServerFn_handler",
|
|
@@ -5524,7 +5524,7 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
5524
5524
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
5525
5525
|
async function loadEntries() {
|
|
5526
5526
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
5527
|
-
import("./assets/router-
|
|
5527
|
+
import("./assets/router-CPdWGKQ5.js"),
|
|
5528
5528
|
import("./assets/start-DhW7sy23.js"),
|
|
5529
5529
|
import("./assets/empty-plugin-adapters-Cq4--YW-.js")
|
|
5530
5530
|
]);
|
package/dist/web-server.js
CHANGED
|
@@ -30,7 +30,10 @@ app.all("*", (c) => serverModule.default.fetch(c.req.raw));
|
|
|
30
30
|
var server = serve({ fetch: app.fetch, hostname: host, port }, (info) => {
|
|
31
31
|
console.log(`bazilion web UI listening at http://${info.address}:${info.port}`);
|
|
32
32
|
});
|
|
33
|
+
var stopping = false;
|
|
33
34
|
var shutdown = (signal) => {
|
|
35
|
+
if (stopping) return;
|
|
36
|
+
stopping = true;
|
|
34
37
|
console.log(`
|
|
35
38
|
bazilion web UI caught ${signal}, shutting down...`);
|
|
36
39
|
server.close((err) => {
|
|
@@ -40,6 +43,7 @@ bazilion web UI caught ${signal}, shutting down...`);
|
|
|
40
43
|
}
|
|
41
44
|
process.exit(0);
|
|
42
45
|
});
|
|
46
|
+
if ("closeAllConnections" in server) server.closeAllConnections();
|
|
43
47
|
};
|
|
44
48
|
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
45
49
|
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
package/dist/web-server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/web-server.ts"],"sourcesContent":["import { existsSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { pathToFileURL } from 'node:url'\nimport { serve } from '@hono/node-server'\nimport { serveStatic } from '@hono/node-server/serve-static'\nimport { Hono } from 'hono'\n\nconst host = process.env.WEB_HOST ?? '127.0.0.1'\nconst port = Number.parseInt(process.env.WEB_PORT ?? '4322', 10)\nconst webDist = process.env.BAZILION_WEB_DIST ?? join(import.meta.dirname, 'web')\nconst clientDir = join(webDist, 'client')\nconst serverEntry = join(webDist, 'server', 'server.js')\n\nif (process.env.BAZILION_PUBLIC_ORIGIN && !['127.0.0.1', 'localhost', '::1'].includes(host)) {\n console.error('BAZILION_PUBLIC_ORIGIN requires the web server to bind loopback only')\n process.exit(1)\n}\n\nif (!existsSync(clientDir) || !existsSync(serverEntry)) {\n console.error('error: bundled bazilion web UI not found')\n console.error(` expected client assets at ${clientDir}`)\n console.error(` expected server entry at ${serverEntry}`)\n process.exit(1)\n}\n\nconst serverModule = (await import(pathToFileURL(serverEntry).href)) as {\n default: { fetch: (request: Request) => Promise<Response> }\n}\n\nconst app = new Hono()\n\n// TanStack Start emits browser assets under dist/client. Serve those directly,\n// then hand every app/API route to the bundled Start fetch handler.\napp.use('/assets/*', serveStatic({ root: clientDir }))\napp.use('/baziu.svg', serveStatic({ root: clientDir }))\napp.all('*', (c) => serverModule.default.fetch(c.req.raw))\n\nconst server = serve({ fetch: app.fetch, hostname: host, port }, (info) => {\n console.log(`bazilion web UI listening at http://${info.address}:${info.port}`)\n})\n\nconst shutdown = (signal: NodeJS.Signals): void => {\n console.log(`\\nbazilion web UI caught ${signal}, shutting down...`)\n server.close((err) => {\n if (err) {\n console.error('web UI shutdown error:', err)\n process.exit(1)\n }\n process.exit(0)\n })\n}\n\nprocess.on('SIGINT', () => shutdown('SIGINT'))\nprocess.on('SIGTERM', () => shutdown('SIGTERM'))\n"],"mappings":";;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAErB,IAAM,OAAO,QAAQ,IAAI,YAAY;AACrC,IAAM,OAAO,OAAO,SAAS,QAAQ,IAAI,YAAY,QAAQ,EAAE;AAC/D,IAAM,UAAU,QAAQ,IAAI,qBAAqB,KAAK,YAAY,SAAS,KAAK;AAChF,IAAM,YAAY,KAAK,SAAS,QAAQ;AACxC,IAAM,cAAc,KAAK,SAAS,UAAU,WAAW;AAEvD,IAAI,QAAQ,IAAI,0BAA0B,CAAC,CAAC,aAAa,aAAa,KAAK,EAAE,SAAS,IAAI,GAAG;AAC3F,UAAQ,MAAM,sEAAsE;AACpF,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAI,CAAC,WAAW,SAAS,KAAK,CAAC,WAAW,WAAW,GAAG;AACtD,UAAQ,MAAM,0CAA0C;AACxD,UAAQ,MAAM,+BAA+B,SAAS,EAAE;AACxD,UAAQ,MAAM,8BAA8B,WAAW,EAAE;AACzD,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAM,eAAgB,MAAM,OAAO,cAAc,WAAW,EAAE;AAI9D,IAAM,MAAM,IAAI,KAAK;AAIrB,IAAI,IAAI,aAAa,YAAY,EAAE,MAAM,UAAU,CAAC,CAAC;AACrD,IAAI,IAAI,cAAc,YAAY,EAAE,MAAM,UAAU,CAAC,CAAC;AACtD,IAAI,IAAI,KAAK,CAAC,MAAM,aAAa,QAAQ,MAAM,EAAE,IAAI,GAAG,CAAC;AAEzD,IAAM,SAAS,MAAM,EAAE,OAAO,IAAI,OAAO,UAAU,MAAM,KAAK,GAAG,CAAC,SAAS;AACzE,UAAQ,IAAI,uCAAuC,KAAK,OAAO,IAAI,KAAK,IAAI,EAAE;AAChF,CAAC;AAED,IAAM,WAAW,CAAC,WAAiC;AACjD,UAAQ,IAAI;AAAA,yBAA4B,MAAM,oBAAoB;AAClE,SAAO,MAAM,CAAC,QAAQ;AACpB,QAAI,KAAK;AACP,cAAQ,MAAM,0BAA0B,GAAG;AAC3C,cAAQ,KAAK,CAAC;AAAA,IAChB;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;
|
|
1
|
+
{"version":3,"sources":["../src/web-server.ts"],"sourcesContent":["import { existsSync } from 'node:fs'\nimport { join } from 'node:path'\nimport { pathToFileURL } from 'node:url'\nimport { serve } from '@hono/node-server'\nimport { serveStatic } from '@hono/node-server/serve-static'\nimport { Hono } from 'hono'\n\nconst host = process.env.WEB_HOST ?? '127.0.0.1'\nconst port = Number.parseInt(process.env.WEB_PORT ?? '4322', 10)\nconst webDist = process.env.BAZILION_WEB_DIST ?? join(import.meta.dirname, 'web')\nconst clientDir = join(webDist, 'client')\nconst serverEntry = join(webDist, 'server', 'server.js')\n\nif (process.env.BAZILION_PUBLIC_ORIGIN && !['127.0.0.1', 'localhost', '::1'].includes(host)) {\n console.error('BAZILION_PUBLIC_ORIGIN requires the web server to bind loopback only')\n process.exit(1)\n}\n\nif (!existsSync(clientDir) || !existsSync(serverEntry)) {\n console.error('error: bundled bazilion web UI not found')\n console.error(` expected client assets at ${clientDir}`)\n console.error(` expected server entry at ${serverEntry}`)\n process.exit(1)\n}\n\nconst serverModule = (await import(pathToFileURL(serverEntry).href)) as {\n default: { fetch: (request: Request) => Promise<Response> }\n}\n\nconst app = new Hono()\n\n// TanStack Start emits browser assets under dist/client. Serve those directly,\n// then hand every app/API route to the bundled Start fetch handler.\napp.use('/assets/*', serveStatic({ root: clientDir }))\napp.use('/baziu.svg', serveStatic({ root: clientDir }))\napp.all('*', (c) => serverModule.default.fetch(c.req.raw))\n\nconst server = serve({ fetch: app.fetch, hostname: host, port }, (info) => {\n console.log(`bazilion web UI listening at http://${info.address}:${info.port}`)\n})\n\nlet stopping = false\nconst shutdown = (signal: NodeJS.Signals): void => {\n if (stopping) return\n stopping = true\n console.log(`\\nbazilion web UI caught ${signal}, shutting down...`)\n server.close((err) => {\n if (err) {\n console.error('web UI shutdown error:', err)\n process.exit(1)\n }\n process.exit(0)\n })\n // An open tab holds the live event stream, which never ends by itself: close it, and any other\n // open request, so the server can stop.\n if ('closeAllConnections' in server) server.closeAllConnections()\n}\n\nprocess.on('SIGINT', () => shutdown('SIGINT'))\nprocess.on('SIGTERM', () => shutdown('SIGTERM'))\n"],"mappings":";;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAErB,IAAM,OAAO,QAAQ,IAAI,YAAY;AACrC,IAAM,OAAO,OAAO,SAAS,QAAQ,IAAI,YAAY,QAAQ,EAAE;AAC/D,IAAM,UAAU,QAAQ,IAAI,qBAAqB,KAAK,YAAY,SAAS,KAAK;AAChF,IAAM,YAAY,KAAK,SAAS,QAAQ;AACxC,IAAM,cAAc,KAAK,SAAS,UAAU,WAAW;AAEvD,IAAI,QAAQ,IAAI,0BAA0B,CAAC,CAAC,aAAa,aAAa,KAAK,EAAE,SAAS,IAAI,GAAG;AAC3F,UAAQ,MAAM,sEAAsE;AACpF,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAI,CAAC,WAAW,SAAS,KAAK,CAAC,WAAW,WAAW,GAAG;AACtD,UAAQ,MAAM,0CAA0C;AACxD,UAAQ,MAAM,+BAA+B,SAAS,EAAE;AACxD,UAAQ,MAAM,8BAA8B,WAAW,EAAE;AACzD,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAM,eAAgB,MAAM,OAAO,cAAc,WAAW,EAAE;AAI9D,IAAM,MAAM,IAAI,KAAK;AAIrB,IAAI,IAAI,aAAa,YAAY,EAAE,MAAM,UAAU,CAAC,CAAC;AACrD,IAAI,IAAI,cAAc,YAAY,EAAE,MAAM,UAAU,CAAC,CAAC;AACtD,IAAI,IAAI,KAAK,CAAC,MAAM,aAAa,QAAQ,MAAM,EAAE,IAAI,GAAG,CAAC;AAEzD,IAAM,SAAS,MAAM,EAAE,OAAO,IAAI,OAAO,UAAU,MAAM,KAAK,GAAG,CAAC,SAAS;AACzE,UAAQ,IAAI,uCAAuC,KAAK,OAAO,IAAI,KAAK,IAAI,EAAE;AAChF,CAAC;AAED,IAAI,WAAW;AACf,IAAM,WAAW,CAAC,WAAiC;AACjD,MAAI,SAAU;AACd,aAAW;AACX,UAAQ,IAAI;AAAA,yBAA4B,MAAM,oBAAoB;AAClE,SAAO,MAAM,CAAC,QAAQ;AACpB,QAAI,KAAK;AACP,cAAQ,MAAM,0BAA0B,GAAG;AAC3C,cAAQ,KAAK,CAAC;AAAA,IAChB;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;AAGD,MAAI,yBAAyB,OAAQ,QAAO,oBAAoB;AAClE;AAEA,QAAQ,GAAG,UAAU,MAAM,SAAS,QAAQ,CAAC;AAC7C,QAAQ,GAAG,WAAW,MAAM,SAAS,SAAS,CAAC;","names":[]}
|