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
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { p as cn } from "./ModelMenu-D-hTgYOO.js";
|
|
2
|
+
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { X } from "lucide-react";
|
|
5
|
+
import { Dialog } from "radix-ui";
|
|
6
|
+
//#region src/components/Dialog.tsx
|
|
7
|
+
var useBrowserLayoutEffect = typeof document === "undefined" ? useEffect : useLayoutEffect;
|
|
8
|
+
/** The element to refocus when a dialog closes: whatever had focus when it opened. */
|
|
9
|
+
function getDialogFocusRestoreTarget(doc) {
|
|
10
|
+
const target = doc.activeElement;
|
|
11
|
+
if (!target || target === doc.body || target === doc.documentElement || !("focus" in target) || typeof target.focus !== "function") return null;
|
|
12
|
+
return target;
|
|
13
|
+
}
|
|
14
|
+
function restoreDialogFocus(target, doc) {
|
|
15
|
+
if (!target?.isConnected || target.ownerDocument !== doc) return;
|
|
16
|
+
target.focus({ preventScroll: true });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The app's one modal. While `busy`, it cannot be dismissed. Radix refocuses a DialogTrigger on
|
|
20
|
+
* close; these dialogs open from state, so the element focused at opening is restored instead.
|
|
21
|
+
*/
|
|
22
|
+
function Dialog$1({ open = true, onClose, busy = false, title, description, className, children }) {
|
|
23
|
+
const opener = useRef(null);
|
|
24
|
+
const wasOpen = useRef(false);
|
|
25
|
+
useBrowserLayoutEffect(() => {
|
|
26
|
+
if (open && !wasOpen.current) opener.current = getDialogFocusRestoreTarget(document);
|
|
27
|
+
wasOpen.current = open;
|
|
28
|
+
}, [open]);
|
|
29
|
+
return /* @__PURE__ */ jsx(Dialog.Root, {
|
|
30
|
+
open,
|
|
31
|
+
onOpenChange: (next) => {
|
|
32
|
+
if (!next && !busy) onClose();
|
|
33
|
+
},
|
|
34
|
+
children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Overlay, { className: "fixed inset-0 z-50 bg-chocolate/35 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=open]:fade-in-0" }), /* @__PURE__ */ jsxs(Dialog.Content, {
|
|
35
|
+
className: cn("fixed left-1/2 top-1/2 z-50 grid max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-[16px] border border-frost bg-snow p-5 text-chocolate shadow-baziu-lg outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:p-6", className),
|
|
36
|
+
onCloseAutoFocus: (event) => {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
restoreDialogFocus(opener.current, document);
|
|
39
|
+
opener.current = null;
|
|
40
|
+
},
|
|
41
|
+
onEscapeKeyDown: (event) => {
|
|
42
|
+
if (busy) event.preventDefault();
|
|
43
|
+
},
|
|
44
|
+
onPointerDownOutside: (event) => {
|
|
45
|
+
if (busy) event.preventDefault();
|
|
46
|
+
},
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", {
|
|
49
|
+
className: "flex flex-col gap-2 pr-6",
|
|
50
|
+
children: [/* @__PURE__ */ jsx(Dialog.Title, {
|
|
51
|
+
className: "font-serif text-xl text-chocolate",
|
|
52
|
+
children: title
|
|
53
|
+
}), description ? /* @__PURE__ */ jsx(Dialog.Description, {
|
|
54
|
+
asChild: true,
|
|
55
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
56
|
+
className: "text-sm leading-6 text-mocha",
|
|
57
|
+
children: description
|
|
58
|
+
})
|
|
59
|
+
}) : /* @__PURE__ */ jsx(Dialog.Description, {
|
|
60
|
+
className: "sr-only",
|
|
61
|
+
children: title
|
|
62
|
+
})]
|
|
63
|
+
}),
|
|
64
|
+
children,
|
|
65
|
+
!busy && /* @__PURE__ */ jsx(Dialog.Close, {
|
|
66
|
+
"aria-label": "Close",
|
|
67
|
+
className: "absolute right-3 top-3 inline-flex size-8 items-center justify-center rounded-lg text-mocha hover:bg-ivory hover:text-sapphire",
|
|
68
|
+
children: /* @__PURE__ */ jsx(X, {
|
|
69
|
+
className: "size-4",
|
|
70
|
+
"aria-hidden": "true"
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
})] })
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/** The button row at the bottom of a dialog. */
|
|
78
|
+
function DialogActions({ children }) {
|
|
79
|
+
return /* @__PURE__ */ jsx("div", {
|
|
80
|
+
className: "flex flex-col-reverse gap-2 border-t border-frost pt-4 sm:flex-row sm:justify-end",
|
|
81
|
+
children
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { DialogActions as n, Dialog$1 as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as MANAGE_TABS, r as SectionTabs } from "./SectionTabs-
|
|
1
|
+
import { C as PageShell, S as PageHeader } from "./parts-k9M-atPa.js";
|
|
2
|
+
import { n as MANAGE_TABS, r as SectionTabs } from "./SectionTabs-BVrMn76H.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ManagePage.tsx
|
|
5
5
|
/** A page of Manage: Agents, Teams, their templates and the skills, under one tab bar. */
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as api, o as errorMessage, r as ApiError } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
2
3
|
import { p as cn } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
-
import {
|
|
4
|
+
import { n as DialogActions, t as Dialog } from "./Dialog-DTeF-nOZ.js";
|
|
5
|
+
import { g as Notice } from "./parts-k9M-atPa.js";
|
|
6
|
+
import { d as TextField, n as ChoiceCards, t as CheckboxRow } from "./form-BEjeiSy3.js";
|
|
7
|
+
import { s as count } from "./manage-C6ucNYZW.js";
|
|
4
8
|
import { useState } from "react";
|
|
5
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
10
|
//#region src/components/manage/SkillsParts.tsx
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
|
|
2
|
+
import "./src-vrZVrV9u.js";
|
|
3
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
4
|
+
import { n as ModelMenu, t as MODELS_PATH } from "./ModelMenu-D-hTgYOO.js";
|
|
5
|
+
import { n as DialogActions, t as Dialog } from "./Dialog-DTeF-nOZ.js";
|
|
6
|
+
import { g as Notice } from "./parts-k9M-atPa.js";
|
|
7
|
+
import { d as TextField, s as SelectField } from "./form-BEjeiSy3.js";
|
|
8
|
+
import { useEffect, useState } from "react";
|
|
9
|
+
import { useNavigate } from "@tanstack/react-router";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/SpawnDialog.tsx
|
|
12
|
+
/** The one way to spawn an Agent; opens its chat afterwards. */
|
|
13
|
+
function SpawnDialog({ profiles, teams, profileId: initialProfileId, teamId: initialTeamId, onClose }) {
|
|
14
|
+
const navigate = useNavigate();
|
|
15
|
+
const [profileId, setProfileId] = useState(initialProfileId ?? profiles.find((profile) => profile.id === "default")?.id ?? profiles[0]?.id ?? "");
|
|
16
|
+
const [name, setName] = useState("");
|
|
17
|
+
const [model, setModel] = useState("");
|
|
18
|
+
const [chatModels, setChatModels] = useState([]);
|
|
19
|
+
const [teamId, setTeamId] = useState(teams.find((team) => team.id === initialTeamId)?.id ?? teams.find((team) => team.id === "default")?.id ?? teams[0]?.id ?? "");
|
|
20
|
+
const [busy, setBusy] = useState(false);
|
|
21
|
+
const [error, setError] = useState(null);
|
|
22
|
+
const restricted = teams.find((team) => team.id === teamId)?.policyMode === "restricted";
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
const controller = new AbortController();
|
|
25
|
+
api(MODELS_PATH, { signal: controller.signal }).then((response) => setChatModels(response.chat)).catch(() => {});
|
|
26
|
+
return () => controller.abort();
|
|
27
|
+
}, []);
|
|
28
|
+
async function submit(event) {
|
|
29
|
+
event.preventDefault();
|
|
30
|
+
setError(null);
|
|
31
|
+
setBusy(true);
|
|
32
|
+
try {
|
|
33
|
+
const request = {
|
|
34
|
+
profileId,
|
|
35
|
+
teamId
|
|
36
|
+
};
|
|
37
|
+
if (name.trim()) request.name = name.trim();
|
|
38
|
+
if (model) request.model = model;
|
|
39
|
+
const { agent } = await api("/api/agents", { body: request });
|
|
40
|
+
onClose();
|
|
41
|
+
await navigate({
|
|
42
|
+
to: "/",
|
|
43
|
+
search: { agent: agent.id }
|
|
44
|
+
});
|
|
45
|
+
} catch (cause) {
|
|
46
|
+
setError(errorMessage(cause));
|
|
47
|
+
setBusy(false);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const template = profiles.find((profile) => profile.id === profileId);
|
|
51
|
+
return /* @__PURE__ */ jsx(Dialog, {
|
|
52
|
+
title: "Spawn an agent",
|
|
53
|
+
description: "It starts with its template's files, model and skills, in the Team you choose.",
|
|
54
|
+
busy,
|
|
55
|
+
onClose,
|
|
56
|
+
children: /* @__PURE__ */ jsxs("form", {
|
|
57
|
+
onSubmit: (event) => void submit(event),
|
|
58
|
+
className: "grid gap-4",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(SelectField, {
|
|
61
|
+
label: "Agent template",
|
|
62
|
+
value: profileId,
|
|
63
|
+
options: profiles.map((profile) => ({
|
|
64
|
+
value: profile.id,
|
|
65
|
+
label: profile.name || profile.id
|
|
66
|
+
})),
|
|
67
|
+
disabled: busy,
|
|
68
|
+
className: "max-w-none",
|
|
69
|
+
onChange: setProfileId
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ jsx(TextField, {
|
|
72
|
+
label: "Name",
|
|
73
|
+
value: name,
|
|
74
|
+
disabled: busy,
|
|
75
|
+
placeholder: template?.name || template?.id || "The template’s name",
|
|
76
|
+
hint: "Leave it empty to use the template’s name.",
|
|
77
|
+
className: "max-w-none",
|
|
78
|
+
onChange: setName
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ jsx(ModelMenu, {
|
|
81
|
+
kit: true,
|
|
82
|
+
label: "Model",
|
|
83
|
+
value: model,
|
|
84
|
+
onChange: setModel,
|
|
85
|
+
models: chatModels,
|
|
86
|
+
inherited: {
|
|
87
|
+
label: "The template’s model",
|
|
88
|
+
model: template?.defaultModel
|
|
89
|
+
}
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx(SelectField, {
|
|
92
|
+
label: "Team",
|
|
93
|
+
value: teamId,
|
|
94
|
+
options: teams.map((team) => ({
|
|
95
|
+
value: team.id,
|
|
96
|
+
label: team.id === "default" ? `${team.name} (default)` : team.name
|
|
97
|
+
})),
|
|
98
|
+
disabled: busy,
|
|
99
|
+
className: "max-w-none",
|
|
100
|
+
hint: restricted ? "This Team is restricted: the new Agent starts with no connections. Add them under Connections." : void 0,
|
|
101
|
+
onChange: setTeamId
|
|
102
|
+
}),
|
|
103
|
+
error && /* @__PURE__ */ jsx(Notice, {
|
|
104
|
+
tone: "warning",
|
|
105
|
+
role: "alert",
|
|
106
|
+
title: "It was not spawned.",
|
|
107
|
+
children: error
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
|
|
110
|
+
variant: "ghost",
|
|
111
|
+
disabled: busy,
|
|
112
|
+
onClick: onClose,
|
|
113
|
+
children: "Cancel"
|
|
114
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
115
|
+
variant: "primary",
|
|
116
|
+
type: "submit",
|
|
117
|
+
disabled: busy || !profileId || !teamId,
|
|
118
|
+
children: busy ? "Spawning…" : "Spawn agent"
|
|
119
|
+
})] })
|
|
120
|
+
]
|
|
121
|
+
})
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { SpawnDialog as t };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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 { g as Notice } from "./parts-k9M-atPa.js";
|
|
5
|
+
import { d as TextField, n as ChoiceCards, s as SelectField } from "./form-BEjeiSy3.js";
|
|
6
|
+
import { S as slugify, s as count, x as slugProblem } from "./manage-C6ucNYZW.js";
|
|
3
7
|
import { useState } from "react";
|
|
4
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
9
|
//#region src/components/SpawnTeamModal.tsx
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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 } from "./Dialog-DTeF-nOZ.js";
|
|
4
|
+
import { g as Notice } from "./parts-k9M-atPa.js";
|
|
5
|
+
import { d as TextField, n as ChoiceCards } from "./form-BEjeiSy3.js";
|
|
6
|
+
import { S as slugify, x as slugProblem } from "./manage-C6ucNYZW.js";
|
|
3
7
|
import { useState } from "react";
|
|
4
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
9
|
//#region src/components/TeamForm.tsx
|
|
@@ -1,9 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as api } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { a as useActivity, r as shortTime } from "./activity-Czfq-5_F.js";
|
|
3
|
+
import { r as useResource, t as useHydrated } from "./use-resource-BUA9qGGY.js";
|
|
4
|
+
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
5
|
+
import { t as FOCUS_VIEWS } from "./workspace-0XPILV1W.js";
|
|
6
|
+
import { createContext, useContext, useMemo } from "react";
|
|
4
7
|
import { Link } from "@tanstack/react-router";
|
|
5
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
9
|
import { ArrowLeft, ArrowRight, Code2, Images, Network } from "lucide-react";
|
|
10
|
+
//#region src/components/workspace/context.tsx
|
|
11
|
+
var WorkspaceContext = createContext(null);
|
|
12
|
+
function WorkspaceProvider({ value, children }) {
|
|
13
|
+
const full = useMemo(() => {
|
|
14
|
+
const byId = new Map(value.agents.map((agent) => [agent.id, agent]));
|
|
15
|
+
return {
|
|
16
|
+
...value,
|
|
17
|
+
agentById: (id) => byId.get(id),
|
|
18
|
+
to: (patch) => ({
|
|
19
|
+
...value.search,
|
|
20
|
+
...patch
|
|
21
|
+
})
|
|
22
|
+
};
|
|
23
|
+
}, [value]);
|
|
24
|
+
return /* @__PURE__ */ jsx(WorkspaceContext.Provider, {
|
|
25
|
+
value: full,
|
|
26
|
+
children
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function useWorkspace() {
|
|
30
|
+
const value = useContext(WorkspaceContext);
|
|
31
|
+
if (!value) throw new Error("useWorkspace needs a WorkspaceProvider");
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
/** The workspace when there is one: a conversation can also render on its own. */
|
|
35
|
+
function useWorkspaceOptional() {
|
|
36
|
+
return useContext(WorkspaceContext);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
7
39
|
//#region src/components/workspace/FocusFrame.tsx
|
|
8
40
|
var VIEW = {
|
|
9
41
|
connections: {
|
|
@@ -77,6 +109,22 @@ function FocusFrame({ view, actions, children }) {
|
|
|
77
109
|
});
|
|
78
110
|
}
|
|
79
111
|
//#endregion
|
|
112
|
+
//#region src/components/workspace/state-style.ts
|
|
113
|
+
var STATE_TEXT = {
|
|
114
|
+
needs: "text-warning",
|
|
115
|
+
working: "text-success",
|
|
116
|
+
paused: "text-warning",
|
|
117
|
+
fresh: "text-accent-foreground",
|
|
118
|
+
idle: "text-muted-foreground"
|
|
119
|
+
};
|
|
120
|
+
var STATE_DOT = {
|
|
121
|
+
needs: "bg-warning",
|
|
122
|
+
working: "bg-success animate-pulse",
|
|
123
|
+
paused: "bg-fawn",
|
|
124
|
+
fresh: "bg-primary",
|
|
125
|
+
idle: "bg-fawn"
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
80
128
|
//#region src/lib/messages.ts
|
|
81
129
|
/** The text of a message between Agents: its payload is JSON `{ text }`, or plain text. */
|
|
82
130
|
function messageText(payload) {
|
|
@@ -187,4 +235,4 @@ function TeamThread({ messages, limit = 20, empty = "No messages between Agents
|
|
|
187
235
|
});
|
|
188
236
|
}
|
|
189
237
|
//#endregion
|
|
190
|
-
export { trafficByPair as a, pairKey as i, useTeamMessages as n,
|
|
238
|
+
export { trafficByPair as a, FocusFrame as c, useWorkspaceOptional as d, pairKey as i, WorkspaceProvider as l, useTeamMessages as n, STATE_DOT as o, messageText as r, STATE_TEXT as s, TeamThread as t, useWorkspace as u };
|
package/dist/web/server/assets/{UnsavedChangesGuard-Bb5frygQ.js → UnsavedChangesGuard-CJQGu45L.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
1
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
|
|
2
2
|
import { useCallback, useRef } from "react";
|
|
3
3
|
import { useBlocker } from "@tanstack/react-router";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as endpointLabel, d as templateDocument, f as templateInput, i as edgeKey, l as sameDocument, n as OUTSIDE, o as hasEdge, r as defaultPosition, t as TeamPolicyMatrix, u as setEdge } from "./style-
|
|
3
|
-
import { t as
|
|
1
|
+
import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { a as endpointLabel, d as templateDocument, f as templateInput, i as edgeKey, l as sameDocument, n as OUTSIDE, o as hasEdge, r as defaultPosition, t as TeamPolicyMatrix, u as setEdge } from "./style-BQ3H9I7Y.js";
|
|
3
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
|
|
4
5
|
import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
|
|
5
|
-
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as Route } from "./_id-
|
|
9
|
-
import { t as ManagePage } from "./ManagePage-
|
|
6
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CJQGu45L.js";
|
|
7
|
+
import { _ as RowMenu, g as Notice } from "./parts-k9M-atPa.js";
|
|
8
|
+
import { d as TextField, l as SwitchRow, s as SelectField } from "./form-BEjeiSy3.js";
|
|
9
|
+
import { t as Route } from "./_id-BNvm89oJ.js";
|
|
10
|
+
import { t as ManagePage } from "./ManagePage-Dy1EdovO.js";
|
|
11
|
+
import { s as count } from "./manage-C6ucNYZW.js";
|
|
12
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-CgBY0HuN.js";
|
|
10
13
|
import { useEffect, useMemo, useState } from "react";
|
|
11
14
|
import { useNavigate, useRouter } from "@tanstack/react-router";
|
|
12
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -280,7 +283,9 @@ function TeamPolicyEditor({ template, profiles, onSaved, onDirtyChange }) {
|
|
|
280
283
|
label: "Name",
|
|
281
284
|
value: draft.name,
|
|
282
285
|
disabled: saving,
|
|
286
|
+
required: true,
|
|
283
287
|
className: "max-w-none",
|
|
288
|
+
problem: draft.name.trim() ? void 0 : "A template needs a name.",
|
|
284
289
|
onChange: (name) => setDraft((current) => ({
|
|
285
290
|
...current,
|
|
286
291
|
name
|
|
@@ -375,7 +380,7 @@ function TeamPolicyEditor({ template, profiles, onSaved, onDirtyChange }) {
|
|
|
375
380
|
children: [
|
|
376
381
|
/* @__PURE__ */ jsx(Button, {
|
|
377
382
|
variant: "primary",
|
|
378
|
-
disabled: !dirty || saving,
|
|
383
|
+
disabled: !dirty || saving || !draft.name.trim(),
|
|
379
384
|
onClick: () => void save(),
|
|
380
385
|
children: saving ? "Saving…" : "Save"
|
|
381
386
|
}),
|
|
@@ -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, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/templates/teams/$id/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./_id-
|
|
5
|
+
var $$splitComponentImporter = () => import("./_id-BE_RSvuN.js");
|
|
6
6
|
var fetchTemplate = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("c13d90cf82cd448c86427091165d0361b92843852a3f73a5bf4412dd2adc6bae"));
|
|
7
7
|
var Route = createFileRoute("/templates/teams/$id/")({
|
|
8
8
|
loader: async ({ params }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as MODELS_PATH } from "./ModelMenu-D-hTgYOO.js";
|
|
3
3
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
4
|
-
import { n as daemonClient, r as ApiClientError } from "./daemon-client-
|
|
4
|
+
import { n as daemonClient, r as ApiClientError } from "./daemon-client-RxAllljf.js";
|
|
5
5
|
//#region src/routes/templates/agents/$id/index.tsx?tss-serverfn-split
|
|
6
6
|
var fetchTemplate_createServerFn_handler = createServerRpc({
|
|
7
7
|
id: "a3ce4c3b27c4c69828cf8a81d1f5312a9f8e2c82de6c7e6e2846eb5c2fc322ea",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
|
|
2
|
+
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
2
3
|
import { n as ModelMenu, p as cn } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
4
|
-
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DAcSBHkT.js";
|
|
5
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-CJQGu45L.js";
|
|
6
|
+
import { _ as RowMenu, a as CardForm, c as CardToolbar, t as Banner, y as SetupCard } from "./parts-k9M-atPa.js";
|
|
7
|
+
import { a as SaveBar, d as TextField, f as saveStatus } from "./form-BEjeiSy3.js";
|
|
8
|
+
import { t as SpawnDialog } from "./SpawnDialog-BAE8W91z.js";
|
|
9
|
+
import { t as Route } from "./_id-C54t_nX6.js";
|
|
10
|
+
import { t as ManagePage } from "./ManagePage-Dy1EdovO.js";
|
|
11
|
+
import { E as templateUseLine, T as templateName, d as modelLine, w as templateDeleteBlocker } from "./manage-C6ucNYZW.js";
|
|
12
|
+
import { n as SkillsChoice, r as TEMPLATE_FILES } from "./AgentTemplateParts-CxWyovvM.js";
|
|
9
13
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
10
14
|
import { useNavigate, useRouter } from "@tanstack/react-router";
|
|
11
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -39,7 +43,7 @@ function TemplateSettingsCard({ loaded, chat, skills, onDirtyChange, onSaved })
|
|
|
39
43
|
};
|
|
40
44
|
async function save(event) {
|
|
41
45
|
event.preventDefault();
|
|
42
|
-
if (!dirty || busy || !model) return;
|
|
46
|
+
if (!dirty || busy || !model || !name.trim()) return;
|
|
43
47
|
setBusy(true);
|
|
44
48
|
setError(null);
|
|
45
49
|
try {
|
|
@@ -86,8 +90,10 @@ function TemplateSettingsCard({ loaded, chat, skills, onDirtyChange, onSaved })
|
|
|
86
90
|
label: "Name",
|
|
87
91
|
value: name,
|
|
88
92
|
disabled: busy,
|
|
93
|
+
required: true,
|
|
89
94
|
placeholder: profile.id,
|
|
90
95
|
className: "max-w-none",
|
|
96
|
+
problem: name.trim() ? void 0 : "A template needs a name.",
|
|
91
97
|
onChange: (value) => {
|
|
92
98
|
touched();
|
|
93
99
|
setName(value);
|
|
@@ -120,7 +126,7 @@ function TemplateSettingsCard({ loaded, chat, skills, onDirtyChange, onSaved })
|
|
|
120
126
|
}),
|
|
121
127
|
/* @__PURE__ */ jsx(SaveBar, {
|
|
122
128
|
busy,
|
|
123
|
-
disabled: !dirty || !model,
|
|
129
|
+
disabled: !dirty || !model || !name.trim(),
|
|
124
130
|
status: saveStatus({
|
|
125
131
|
error,
|
|
126
132
|
dirty,
|
|
@@ -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, r as ApiClientError } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient, r as ApiClientError } from "./daemon-client-RxAllljf.js";
|
|
4
4
|
//#region src/routes/templates/teams/$id/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTemplate_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "c13d90cf82cd448c86427091165d0361b92843852a3f73a5bf4412dd2adc6bae",
|
|
@@ -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, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/templates/agents/$id/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./_id-
|
|
5
|
+
var $$splitComponentImporter = () => import("./_id-BfjTS4JO.js");
|
|
6
6
|
var fetchTemplate = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("a3ce4c3b27c4c69828cf8a81d1f5312a9f8e2c82de6c7e6e2846eb5c2fc322ea"));
|
|
7
7
|
var Route = createFileRoute("/templates/agents/$id/")({
|
|
8
8
|
loader: async ({ params }) => {
|