bazilion 0.27.0 → 0.50.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 +405 -243
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +1077 -623
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/ConfigPage-_FY--9PB.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-BblXqMVb.js +1 -0
- package/dist/web/client/assets/ConnectionsView-BZHJysCa.js +1 -0
- package/dist/web/client/assets/FieldRow-k05wfDy9.js +1 -0
- package/dist/web/client/assets/SectionTabs-DlfXtepS.js +1 -0
- package/dist/web/client/assets/{SkillFindings-8LX6bYf_.js → SkillFindings-CHf5ZGY0.js} +1 -1
- package/dist/web/client/assets/SpawnDialog-C-Ujb4bC.js +1 -0
- package/dist/web/client/assets/TeamForm-D6EAAF7m.js +1 -0
- package/dist/web/client/assets/TeamThread-DpUOwMoi.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-DTUP7hwu.js +1 -0
- package/dist/web/client/assets/_id-C94dgBDe.js +1 -0
- package/dist/web/client/assets/_id-CxmEfoEp.js +1 -0
- package/dist/web/client/assets/agents-C-bJ5R_0.js +1 -0
- package/dist/web/client/assets/agents-odqBNx-A.js +1 -0
- package/dist/web/client/assets/api-CPzQ_z9m.js +1 -0
- package/dist/web/client/assets/arrow-right-Dyta3p06.js +1 -0
- package/dist/web/client/assets/attention-D0e7o7fh.js +1 -0
- package/dist/web/client/assets/chevron-right-B2YEg9rw.js +1 -0
- package/dist/web/client/assets/config-B7Y5MtpM.js +3 -0
- package/dist/web/client/assets/createLucideIcon-Cgab8gqu.js +1 -0
- package/dist/web/client/assets/index-CNVw44IE.js +54 -0
- package/dist/web/client/assets/link-ClwtaO_E.js +1 -0
- package/dist/web/client/assets/login-Br1F4rQx.js +1 -0
- package/dist/web/client/assets/mcp-B8bIAY6k.js +1 -0
- package/dist/web/client/assets/routes-BZdlkRdC.js +76 -0
- package/dist/web/client/assets/save-ZqeB_I-c.js +1 -0
- package/dist/web/client/assets/{services-B2f7e5jV.js → services-CPJxDrVG.js} +1 -1
- package/dist/web/client/assets/skills-DE_kQQGj.js +1 -0
- package/dist/web/client/assets/style-BWShXY3e.js +7 -0
- package/dist/web/client/assets/styles-Tney8jZq.css +2 -0
- package/dist/web/client/assets/teams-AcuSLc3I.js +1 -0
- package/dist/web/client/assets/teams-tRamPg7O.js +1 -0
- package/dist/web/client/assets/telegram-Ku69-GAv.js +1 -0
- package/dist/web/client/assets/tokens-DuLNZMgi.js +1 -0
- package/dist/web/client/assets/welcome-CrQk6n6I.js +1 -0
- package/dist/web/server/assets/{ConfigPage-CGld_wCK.js → ConfigPage-DSLM5CLw.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-LdVlEanK.js → ConfirmDialog-CvLZgbfY.js} +1 -1
- package/dist/web/server/assets/ConnectionsView-DVLNH81Y.js +708 -0
- package/dist/web/server/assets/{FieldRow-Dah2KKqo.js → FieldRow-DQBzMtcR.js} +4 -4
- package/dist/web/server/assets/{Page-CMSYKXWJ.js → Page-KIL1CsME.js} +1 -1
- package/dist/web/server/assets/Rail-D8LhjS38.js +756 -0
- package/dist/web/server/assets/{SectionTabs-CqFg9Vwx.js → SectionTabs-CNcvxbR8.js} +1 -16
- package/dist/web/server/assets/{SkillFindings-Bd6e81Wu.js → SkillFindings-DX8lCMG7.js} +1 -1
- package/dist/web/server/assets/{SpawnDialog-BGNaMfFb.js → SpawnDialog-Brmkl_ll.js} +24 -6
- package/dist/web/server/assets/{TeamForm-C93tpn9r.js → TeamForm-CvQAs2FA.js} +1 -1
- package/dist/web/server/assets/TeamThread-BNJi6gPM.js +205 -0
- package/dist/web/server/assets/{UnsavedChangesGuard-Dm4a27_5.js → UnsavedChangesGuard-B3Lpl08z.js} +8 -4
- package/dist/web/server/assets/{TeamPolicyEditor-BHS3J0R9.js → _id-BH1631a8.js} +114 -263
- package/dist/web/server/assets/{_id-sW6zXrTP.js → _id-CA3QO7J5.js} +1 -1
- package/dist/web/server/assets/{_id-lOVnT5sS.js → _id-CO1PgvyG.js} +5 -5
- package/dist/web/server/assets/{_id-B0x1ffz3.js → _id-DIXUiIaB.js} +1 -1
- package/dist/web/server/assets/{_id-ByiXeIPS.js → _id-E2N4gZ4O.js} +2 -2
- package/dist/web/server/assets/{_id-Bdf_Rg62.js → _id-TVruGcOd.js} +1 -1
- package/dist/web/server/assets/_tanstack-start-manifest_v-BVfrV7LQ.js +191 -0
- package/dist/web/server/assets/{agents-BNPkidbH.js → agents-BnWgFo6o.js} +1 -1
- package/dist/web/server/assets/{agents-BK8OmB8g.js → agents-C63VycUw.js} +2 -2
- package/dist/web/server/assets/{agents-D4tqK1kH.js → agents-CalSKogx.js} +14 -15
- package/dist/web/server/assets/{agents-Cn9GkXFX.js → agents-CdZvooeQ.js} +1 -1
- package/dist/web/server/assets/{agents-lOqc6VGd.js → agents-DPZVni4Q.js} +1 -1
- package/dist/web/server/assets/{agents-DycxHDt8.js → agents-DrkEwIpR.js} +8 -8
- package/dist/web/server/assets/{attention-DULVjdmF.js → attention-BbE4yc-V.js} +1 -1
- package/dist/web/server/assets/{attention-YWnLKA2E.js → attention-Cr7puThv.js} +1 -1
- package/dist/web/server/assets/{attention-BIm455bC.js → attention-DIyX3VMB.js} +6 -6
- package/dist/web/server/assets/{auth-DiN92ydD.js → auth-dJnrFW6y.js} +1 -1
- package/dist/web/server/assets/{config-C1VB28se.js → config-3tPtOmPE.js} +1 -1
- package/dist/web/server/assets/{config-BNEgu7WG.js → config-DJGZiPBJ.js} +13 -13
- package/dist/web/server/assets/{config-TdVqnqNL.js → config-rUqhMjIs.js} +1 -1
- package/dist/web/server/assets/{daemon-client-DL2ik2Em.js → daemon-client-B_ZRIIrT.js} +2 -1
- package/dist/web/server/assets/{mcp-BwmpNQPN.js → mcp-C97uAZe1.js} +1 -1
- package/dist/web/server/assets/{mcp-B09_O05r.js → mcp-Cf7KzOJ9.js} +9 -9
- package/dist/web/server/assets/{mcp-CqdTfXcn.js → mcp-DE14q5c0.js} +1 -1
- package/dist/web/server/assets/{router-BI9gmY3S.js → router-w2yPgmC1.js} +412 -259
- package/dist/web/server/assets/routes-1FEodTRm.js +16 -0
- package/dist/web/server/assets/routes-B6AO0LjK.js +57 -0
- package/dist/web/server/assets/routes-D1NHwz6f.js +7644 -0
- package/dist/web/server/assets/{services-tCfB1B83.js → services-BjroGXgC.js} +4 -4
- package/dist/web/server/assets/{services-Q9HYQXXB.js → services-Cdk40QHq.js} +1 -1
- package/dist/web/server/assets/{services-BLvAvb8g.js → services-DsHRLL8q.js} +1 -1
- package/dist/web/server/assets/{skills-BZg_txbf.js → skills-CA17GjuZ.js} +1 -1
- package/dist/web/server/assets/{skills-C7fqRPna.js → skills-DC1OTc8n.js} +11 -11
- package/dist/web/server/assets/{skills-C_g8IKag.js → skills-h5aHa7Q8.js} +1 -1
- package/dist/web/server/assets/style-GYDODk2F.js +178 -0
- package/dist/web/server/assets/{teams-D4CaU76n.js → teams-Bm63mbTt.js} +1 -1
- package/dist/web/server/assets/{teams-DX2HmKqi.js → teams-BxnvFTyn.js} +1 -1
- package/dist/web/server/assets/{teams-BS-oweRl.js → teams-Cg-QQWpH.js} +23 -15
- package/dist/web/server/assets/{teams-BHkhnt6b.js → teams-D6Tx-Jyn.js} +1 -1
- package/dist/web/server/assets/{teams-BSflKBP8.js → teams-OzHTyVi9.js} +6 -6
- package/dist/web/server/assets/{teams-CNyB5nM9.js → teams-YrmyutM4.js} +1 -1
- package/dist/web/server/assets/{telegram-CrJiygCX.js → telegram-BJ4l_TA_.js} +6 -6
- package/dist/web/server/assets/{telegram-C4v1HhyJ.js → telegram-Gy7_9yih.js} +1 -1
- package/dist/web/server/assets/{telegram-BUdnc8oF.js → telegram-xU-vXgef.js} +1 -1
- package/dist/web/server/assets/{tokens-DqldzPUq.js → tokens-ByPTGFBQ.js} +1 -1
- package/dist/web/server/assets/{tokens-B1twAJdd.js → tokens-CEdl8puR.js} +1 -1
- package/dist/web/server/assets/{tokens-DdjEyALj.js → tokens-CsqoRt5T.js} +10 -10
- package/dist/web/server/assets/{welcome-D0d38Pzx.js → welcome-O6Rjd7yO.js} +1 -1
- package/dist/web/server/assets/workspace-DeEYMPDX.js +658 -0
- package/dist/web/server/server.js +20 -72
- package/dist/worker.js +1 -1
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AgentAvatar-DWx-bM6n.js +0 -1
- package/dist/web/client/assets/ChatPane-DOV_HJg-.js +0 -72
- package/dist/web/client/assets/ConfigPage-Dfu9DzFX.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-536ziJ5P.js +0 -1
- package/dist/web/client/assets/FieldRow-z1JqCdqn.js +0 -1
- package/dist/web/client/assets/ResultCard-X4nTbjYY.js +0 -1
- package/dist/web/client/assets/SectionTabs-DXHzXmmb.js +0 -1
- package/dist/web/client/assets/SpawnDialog-DoZl-yes.js +0 -1
- package/dist/web/client/assets/SpawnTeamModal-C638hEoN.js +0 -1
- package/dist/web/client/assets/TeamForm-C-WzvOl4.js +0 -1
- package/dist/web/client/assets/TeamPolicyEditor-CSKBx0oK.js +0 -7
- package/dist/web/client/assets/UnsavedChangesGuard-GC-vzw7h.js +0 -1
- package/dist/web/client/assets/_id-BKLynswT.js +0 -1
- package/dist/web/client/assets/_id-BYM_NORr.js +0 -1
- package/dist/web/client/assets/_id-Cxa98a9m.js +0 -1
- package/dist/web/client/assets/_id-D4hV1U1t.js +0 -1
- package/dist/web/client/assets/agent-actions-CXQCoxKO.js +0 -1
- package/dist/web/client/assets/agents-BxPS1_Bp.js +0 -1
- package/dist/web/client/assets/agents-GozAWW-l.js +0 -1
- package/dist/web/client/assets/attention-Cz9rZcrr.js +0 -1
- package/dist/web/client/assets/chevron-right-CPAb1zac.js +0 -1
- package/dist/web/client/assets/config-9vv9Lipb.js +0 -3
- package/dist/web/client/assets/inbox-DHLArXxl.js +0 -1
- package/dist/web/client/assets/index-1YXquAq8.js +0 -52
- package/dist/web/client/assets/learning-PvtXm8Ne.js +0 -1
- package/dist/web/client/assets/login-DIJpNQFo.js +0 -1
- package/dist/web/client/assets/mcp-pKBL0xIf.js +0 -1
- package/dist/web/client/assets/members-DHWsgsEs.js +0 -1
- package/dist/web/client/assets/memory-CEVppPyU.js +0 -1
- package/dist/web/client/assets/plus-BaIRdB10.js +0 -1
- package/dist/web/client/assets/policy-DEh4BLSw.js +0 -1
- package/dist/web/client/assets/preload-helper-eUUcpe2S.js +0 -1
- package/dist/web/client/assets/results-DgJPjEZF.js +0 -1
- package/dist/web/client/assets/review-BbshafTQ.js +0 -1
- package/dist/web/client/assets/route-Ccb8v41z.js +0 -1
- package/dist/web/client/assets/route-D1d6kCEV.js +0 -1
- package/dist/web/client/assets/routes-g7V4ru7T.js +0 -1
- package/dist/web/client/assets/settings-B6elpcYm.js +0 -1
- package/dist/web/client/assets/skills-CngE7TF8.js +0 -1
- package/dist/web/client/assets/styles-xUnZ-ep_.css +0 -2
- package/dist/web/client/assets/teams-BdJZXOan.js +0 -1
- package/dist/web/client/assets/teams-c496ISsT.js +0 -1
- package/dist/web/client/assets/telegram-B_-hK6EC.js +0 -1
- package/dist/web/client/assets/tokens-CKz8gx4-.js +0 -1
- package/dist/web/client/assets/triggers-DCEPciGW.js +0 -1
- package/dist/web/client/assets/welcome-D-zVOLGA.js +0 -1
- package/dist/web/server/assets/AgentAvatar-8gTAy_tP.js +0 -37
- package/dist/web/server/assets/ChatPane-De_FPEoD.js +0 -1887
- package/dist/web/server/assets/ResultCard-CZn1w4KA.js +0 -97
- package/dist/web/server/assets/Sidebar-puq47KyR.js +0 -430
- package/dist/web/server/assets/SpawnTeamModal-C6GbfScI.js +0 -97
- package/dist/web/server/assets/_id-BR6tnR6I.js +0 -23
- package/dist/web/server/assets/_id-Bm611NQz.js +0 -13
- package/dist/web/server/assets/_id-D5UCoyES.js +0 -359
- package/dist/web/server/assets/_id-DHx5UmmL.js +0 -12
- package/dist/web/server/assets/_id-DLpGmOVm.js +0 -19
- package/dist/web/server/assets/_id-Y5ctILG2.js +0 -13
- package/dist/web/server/assets/_id-dDA0pdVo.js +0 -54
- package/dist/web/server/assets/_tanstack-start-manifest_v-B8u80HjK.js +0 -292
- package/dist/web/server/assets/agent-actions-BBdFVdoa.js +0 -20
- package/dist/web/server/assets/api-WWxPqx67.js +0 -85
- package/dist/web/server/assets/inbox-4Vj5jTT8.js +0 -245
- package/dist/web/server/assets/inbox-D4IqUv3l.js +0 -38
- package/dist/web/server/assets/inbox-Dle24AfV.js +0 -23
- package/dist/web/server/assets/learning-BScq7VbO.js +0 -12
- package/dist/web/server/assets/learning-CBWFEnhg.js +0 -263
- package/dist/web/server/assets/learning-DWAKevhF.js +0 -25
- package/dist/web/server/assets/members-B8QBF6TF.js +0 -12
- package/dist/web/server/assets/members-DsF02Wp7.js +0 -12
- package/dist/web/server/assets/members-tWZA9b15.js +0 -36
- package/dist/web/server/assets/memory-BNN0b-0x.js +0 -12
- package/dist/web/server/assets/memory-CTl1E1Rm.js +0 -267
- package/dist/web/server/assets/memory-CV5uCBb2.js +0 -12
- package/dist/web/server/assets/policy-C9M6zV6w.js +0 -79
- package/dist/web/server/assets/policy-h-6NpU3m.js +0 -19
- package/dist/web/server/assets/policy-xEw9X0DK.js +0 -12
- package/dist/web/server/assets/results-D3A3UA4d.js +0 -182
- package/dist/web/server/assets/results-D6Ui5S8D.js +0 -12
- package/dist/web/server/assets/results-DWmxvfyn.js +0 -15
- package/dist/web/server/assets/review-CyQky-WQ.js +0 -40
- package/dist/web/server/assets/review-Sq0GGcPV.js +0 -322
- package/dist/web/server/assets/review-XWbSF8cF.js +0 -12
- package/dist/web/server/assets/route-BErtkz6t.js +0 -19
- package/dist/web/server/assets/route-CLoV-An_.js +0 -48
- package/dist/web/server/assets/route-WQ19JkBa.js +0 -19
- package/dist/web/server/assets/route-dEK_2GLj.js +0 -203
- package/dist/web/server/assets/route-iHTkhO81.js +0 -16
- package/dist/web/server/assets/route-zs8uUQtB.js +0 -16
- package/dist/web/server/assets/routes-081s4n24.js +0 -45
- package/dist/web/server/assets/routes-CWo5WPsr.js +0 -15
- package/dist/web/server/assets/routes-Cqp1ufHm.js +0 -56
- package/dist/web/server/assets/settings-CVaGv-xF.js +0 -12
- package/dist/web/server/assets/settings-D9viV-86.js +0 -561
- package/dist/web/server/assets/settings-DaZNZ_CC.js +0 -27
- package/dist/web/server/assets/triggers-B7LW784F.js +0 -214
- package/dist/web/server/assets/triggers-C5sMCZXv2.js +0 -12
- package/dist/web/server/assets/triggers-DMfVdImD.js +0 -12
- package/dist/web/client/assets/{TeamPolicyEditor-DLioOiRN.css → style-DLioOiRN.css} +0 -0
- package/dist/web/server/assets/{start-DTX6aKCi.js → start-DhW7sy23.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as StatusBadge, t as EmptyState } from "./Page-
|
|
2
|
-
import { t as Route } from "./services-
|
|
3
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
4
|
-
import { t as FieldRow } from "./FieldRow-
|
|
1
|
+
import { c as StatusBadge, t as EmptyState } from "./Page-KIL1CsME.js";
|
|
2
|
+
import { t as Route } from "./services-Cdk40QHq.js";
|
|
3
|
+
import { t as ConfigPage } from "./ConfigPage-DSLM5CLw.js";
|
|
4
|
+
import { t as FieldRow } from "./FieldRow-DQBzMtcR.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/routes/config/services.tsx?tsr-split=component
|
|
7
7
|
var OTHER = "Other";
|
|
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/services.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./services-
|
|
5
|
+
var $$splitComponentImporter = () => import("./services-BjroGXgC.js");
|
|
6
6
|
var fetchServices = createServerFn({ method: "GET" }).handler(createSsrRpc("6afd81bef0ee381d6e3641cd8e269968429c874e2f9d56c8f818cc9d180ee477"));
|
|
7
7
|
var Route = createFileRoute("/config/services")({
|
|
8
8
|
loader: () => fetchServices(),
|
|
@@ -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-B_ZRIIrT.js";
|
|
4
4
|
//#region src/routes/config/services.tsx?tss-serverfn-split
|
|
5
5
|
var fetchServices_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "6afd81bef0ee381d6e3641cd8e269968429c874e2f9d56c8f818cc9d180ee477",
|
|
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
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-DC1OTc8n.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as FindingSummary, t as FindingList } from "./SkillFindings-
|
|
1
|
+
import { C as ApiError, E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
|
|
3
|
+
import { a as PageShell, c as StatusBadge, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow, t as EmptyState } from "./Page-KIL1CsME.js";
|
|
4
|
+
import { t as Route } from "./skills-CA17GjuZ.js";
|
|
5
|
+
import { n as FindingSummary, t as FindingList } from "./SkillFindings-DX8lCMG7.js";
|
|
6
6
|
import { t as Tabs } from "./Tabs-BhF41MfQ.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useRouter } from "@tanstack/react-router";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/routes/skills/index.tsx?tsr-split=component
|
|
11
11
|
function SkillsPage() {
|
|
12
12
|
const skills = Route.useLoaderData();
|
|
@@ -28,7 +28,7 @@ function SkillsPage() {
|
|
|
28
28
|
description: "Import from OpenClaw, a server directory, or a ZIP archive to get started."
|
|
29
29
|
}) : /* @__PURE__ */ jsx(ItemList, { children: skills.map((skill) => /* @__PURE__ */ jsx(ItemRow, {
|
|
30
30
|
title: /* @__PURE__ */ jsx("code", { children: skill.name }),
|
|
31
|
-
meta: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
32
32
|
/* @__PURE__ */ jsx(FindingSummary, { findings: skill.scanFindings ?? [] }),
|
|
33
33
|
/* @__PURE__ */ jsx("span", {
|
|
34
34
|
className: "font-mono",
|
|
@@ -140,7 +140,7 @@ function ImportCard({ onImported }) {
|
|
|
140
140
|
}
|
|
141
141
|
return /* @__PURE__ */ jsxs(SectionCard, {
|
|
142
142
|
title: "Import skills",
|
|
143
|
-
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
143
|
+
description: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
144
144
|
"Each skill's ",
|
|
145
145
|
/* @__PURE__ */ jsx("code", { children: "SKILL.md" }),
|
|
146
146
|
" body is added to the system prompt of every agent it is attached to."
|
|
@@ -192,7 +192,7 @@ function ImportCard({ onImported }) {
|
|
|
192
192
|
" on the server."
|
|
193
193
|
]
|
|
194
194
|
}),
|
|
195
|
-
source === "path" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
|
|
195
|
+
source === "path" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", {
|
|
196
196
|
className: "text-sm leading-6 text-muted-foreground",
|
|
197
197
|
children: [
|
|
198
198
|
"An absolute path on the server: one skill folder (with a ",
|
|
@@ -208,7 +208,7 @@ function ImportCard({ onImported }) {
|
|
|
208
208
|
required: true
|
|
209
209
|
})]
|
|
210
210
|
})] }),
|
|
211
|
-
source === "zip" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
|
|
211
|
+
source === "zip" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", {
|
|
212
212
|
className: "text-sm leading-6 text-muted-foreground",
|
|
213
213
|
children: [
|
|
214
214
|
"A ",
|
|
@@ -235,7 +235,7 @@ function ImportCard({ onImported }) {
|
|
|
235
235
|
}), zipFile ? /* @__PURE__ */ jsx("span", {
|
|
236
236
|
className: "block break-all font-mono text-sm text-accent-foreground",
|
|
237
237
|
children: zipFile.name
|
|
238
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
238
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
239
239
|
className: "block text-sm font-medium text-foreground",
|
|
240
240
|
children: "Click to choose a ZIP file"
|
|
241
241
|
}), /* @__PURE__ */ jsx("span", {
|
|
@@ -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-B_ZRIIrT.js";
|
|
4
4
|
//#region src/routes/skills/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchSkills_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5",
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { r as OUTSIDE_TEAM } from "./entities-Dn2xzKIw.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Check, Minus, X } from "lucide-react";
|
|
4
|
+
//#region src/lib/team-policy.ts
|
|
5
|
+
var OUTSIDE = OUTSIDE_TEAM;
|
|
6
|
+
function edgeKey(from, to) {
|
|
7
|
+
return `${from}>${to}`;
|
|
8
|
+
}
|
|
9
|
+
function hasEdge(document, from, to) {
|
|
10
|
+
return document.edges.some((edge) => edge.from === from && edge.to === to);
|
|
11
|
+
}
|
|
12
|
+
/** Add or remove one allow edge; an endpoint never connects to itself. */
|
|
13
|
+
function setEdge(document, from, to, allowed) {
|
|
14
|
+
if (from === to || hasEdge(document, from, to) === allowed) return document;
|
|
15
|
+
const edges = allowed ? [...document.edges, {
|
|
16
|
+
from,
|
|
17
|
+
to
|
|
18
|
+
}] : document.edges.filter((edge) => edge.from !== from || edge.to !== to);
|
|
19
|
+
return {
|
|
20
|
+
...document,
|
|
21
|
+
edges
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function endpointLabel(document, key) {
|
|
25
|
+
if (key === OUTSIDE) return "Other teams";
|
|
26
|
+
return document.members.find((member) => member.key === key)?.name || key;
|
|
27
|
+
}
|
|
28
|
+
function defaultPosition(index) {
|
|
29
|
+
return {
|
|
30
|
+
x: 40 + index % 3 * 250,
|
|
31
|
+
y: 40 + Math.floor(index / 3) * 130
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function liveDocument(policy) {
|
|
35
|
+
return {
|
|
36
|
+
kind: "live",
|
|
37
|
+
name: policy.teamId,
|
|
38
|
+
userMd: null,
|
|
39
|
+
mode: policy.mode,
|
|
40
|
+
members: policy.members.map((agent, index) => ({
|
|
41
|
+
key: agent.id,
|
|
42
|
+
name: agent.name,
|
|
43
|
+
profileId: agent.profileId,
|
|
44
|
+
status: agent.status,
|
|
45
|
+
position: defaultPosition(index)
|
|
46
|
+
})),
|
|
47
|
+
edges: policy.edges.map((edge) => ({
|
|
48
|
+
from: edge.from,
|
|
49
|
+
to: edge.to
|
|
50
|
+
}))
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function liveEdges(document) {
|
|
54
|
+
return document.edges.map((edge) => ({
|
|
55
|
+
from: edge.from,
|
|
56
|
+
to: edge.to
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
function templateDocument(template) {
|
|
60
|
+
const key = (end) => end === OUTSIDE ? OUTSIDE : `slot:${end}`;
|
|
61
|
+
return {
|
|
62
|
+
kind: "template",
|
|
63
|
+
name: template.name,
|
|
64
|
+
userMd: template.userMd,
|
|
65
|
+
mode: template.policyMode,
|
|
66
|
+
members: template.slots.map((slot, index) => ({
|
|
67
|
+
key: `slot:${index}`,
|
|
68
|
+
name: slot.agentName,
|
|
69
|
+
profileId: slot.profileId,
|
|
70
|
+
modelOverride: slot.modelOverride,
|
|
71
|
+
reasoningLevel: slot.reasoningLevel,
|
|
72
|
+
position: slot.layoutPosition ?? defaultPosition(index)
|
|
73
|
+
})),
|
|
74
|
+
edges: template.edges.map((edge) => ({
|
|
75
|
+
from: key(edge.from),
|
|
76
|
+
to: key(edge.to)
|
|
77
|
+
}))
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/** The PUT body for a template draft; slots are numbered by their order in the draft. */
|
|
81
|
+
function templateInput(document, profiles) {
|
|
82
|
+
const profileIds = new Set(profiles.map((profile) => profile.id));
|
|
83
|
+
const position = new Map(document.members.map((member, index) => [member.key, index]));
|
|
84
|
+
const endpoint = (key) => {
|
|
85
|
+
if (key === OUTSIDE) return OUTSIDE;
|
|
86
|
+
const index = position.get(key);
|
|
87
|
+
if (index === void 0) throw new Error(`Edge names a removed slot: ${key}`);
|
|
88
|
+
return index;
|
|
89
|
+
};
|
|
90
|
+
return {
|
|
91
|
+
name: document.name,
|
|
92
|
+
userMd: document.userMd,
|
|
93
|
+
policyMode: document.mode,
|
|
94
|
+
slots: document.members.map((member) => {
|
|
95
|
+
if (!profileIds.has(member.profileId)) throw new Error(`Missing Agent template: ${member.profileId || "(none)"}`);
|
|
96
|
+
return {
|
|
97
|
+
profileId: member.profileId,
|
|
98
|
+
agentName: member.name,
|
|
99
|
+
modelOverride: member.modelOverride ?? null,
|
|
100
|
+
reasoningLevel: member.reasoningLevel ?? null,
|
|
101
|
+
layoutPosition: member.position
|
|
102
|
+
};
|
|
103
|
+
}),
|
|
104
|
+
edges: document.edges.map((edge) => ({
|
|
105
|
+
from: endpoint(edge.from),
|
|
106
|
+
to: endpoint(edge.to)
|
|
107
|
+
}))
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/** A live Team stores no layout, so dragging its nodes never makes the draft dirty. */
|
|
111
|
+
function sameDocument(left, right) {
|
|
112
|
+
const edges = (document) => document.edges.map((edge) => edgeKey(edge.from, edge.to)).sort().join("|");
|
|
113
|
+
if (left.mode !== right.mode || edges(left) !== edges(right)) return false;
|
|
114
|
+
if (left.kind === "live") return true;
|
|
115
|
+
return left.name === right.name && left.userMd === right.userMd && JSON.stringify(left.members) === JSON.stringify(right.members);
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/team-policy/TeamPolicyMatrix.tsx
|
|
119
|
+
function TeamPolicyMatrix({ document, selectedId, onSelect, onToggle }) {
|
|
120
|
+
const actors = [...document.members.map((member) => member.key), OUTSIDE];
|
|
121
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
122
|
+
className: "h-full min-h-[420px] overflow-auto bg-ivory p-4 sm:p-6",
|
|
123
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
124
|
+
className: "mb-4",
|
|
125
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
126
|
+
className: "m-0 font-body text-base font-semibold text-chocolate",
|
|
127
|
+
children: "Communication matrix"
|
|
128
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
129
|
+
className: "mt-1 text-xs text-mocha-light",
|
|
130
|
+
children: "Rows send; columns receive. Every cell edits the same allow edges as Flow."
|
|
131
|
+
})]
|
|
132
|
+
}), /* @__PURE__ */ jsxs("table", {
|
|
133
|
+
className: "m-0 min-w-[620px] table-fixed overflow-visible rounded-md text-xs",
|
|
134
|
+
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
|
|
135
|
+
className: "sticky left-0 z-20 w-40 bg-ivory",
|
|
136
|
+
children: "from / to"
|
|
137
|
+
}), actors.map((target) => /* @__PURE__ */ jsx("th", {
|
|
138
|
+
className: "w-24 max-w-24 text-center normal-case tracking-normal",
|
|
139
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
140
|
+
type: "button",
|
|
141
|
+
onClick: () => onSelect(target),
|
|
142
|
+
className: `w-full truncate rounded-sm px-1 py-1 hover:bg-sapphire-glow ${selectedId === target ? "text-sapphire" : "text-mocha"}`,
|
|
143
|
+
title: endpointLabel(document, target),
|
|
144
|
+
children: endpointLabel(document, target)
|
|
145
|
+
})
|
|
146
|
+
}, target))] }) }), /* @__PURE__ */ jsx("tbody", { children: actors.map((source) => /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
|
|
147
|
+
className: "sticky left-0 z-10 max-w-40 bg-snow normal-case tracking-normal",
|
|
148
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
149
|
+
type: "button",
|
|
150
|
+
onClick: () => onSelect(source),
|
|
151
|
+
className: `w-full truncate rounded-sm px-1 py-1 text-left hover:bg-sapphire-glow ${selectedId === source ? "text-sapphire" : "text-mocha"}`,
|
|
152
|
+
title: endpointLabel(document, source),
|
|
153
|
+
children: endpointLabel(document, source)
|
|
154
|
+
})
|
|
155
|
+
}), actors.map((target) => {
|
|
156
|
+
const allowed = hasEdge(document, source, target);
|
|
157
|
+
const label = `${endpointLabel(document, source)} to ${endpointLabel(document, target)}`;
|
|
158
|
+
return /* @__PURE__ */ jsx("td", {
|
|
159
|
+
className: "h-14 p-1 text-center",
|
|
160
|
+
children: source !== target ? /* @__PURE__ */ jsx("button", {
|
|
161
|
+
type: "button",
|
|
162
|
+
onClick: () => onToggle(source, target, !allowed),
|
|
163
|
+
"aria-pressed": allowed,
|
|
164
|
+
"aria-label": `${allowed ? "Deny" : "Allow"} ${label}`,
|
|
165
|
+
title: `${allowed ? "Allowed" : "Not allowed"}: ${label}`,
|
|
166
|
+
className: `mx-auto flex h-9 w-9 items-center justify-center rounded-md border transition-colors ${allowed ? "border-sapphire bg-sapphire text-snow hover:bg-sapphire-deep" : "border-frost bg-ivory text-mocha-light hover:border-rose-baziu hover:text-rose-baziu"}`,
|
|
167
|
+
children: allowed ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
168
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
169
|
+
className: "mx-auto flex h-9 w-9 items-center justify-center text-mocha-light",
|
|
170
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" })
|
|
171
|
+
})
|
|
172
|
+
}, target);
|
|
173
|
+
})] }, source)) })]
|
|
174
|
+
})]
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
export { endpointLabel as a, liveEdges as c, templateDocument as d, templateInput as f, edgeKey as i, sameDocument as l, OUTSIDE as n, hasEdge as o, defaultPosition as r, liveDocument as s, TeamPolicyMatrix as t, setEdge as u };
|
|
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
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-OzHTyVi9.js");
|
|
6
6
|
var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad"));
|
|
7
7
|
var Route = createFileRoute("/templates/teams/")({
|
|
8
8
|
loader: () => fetchTemplates(),
|
|
@@ -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-B_ZRIIrT.js";
|
|
4
4
|
//#region src/routes/teams/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTeams_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
1
|
+
import { d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
|
|
3
|
+
import { t as TeamForm } from "./TeamForm-CvQAs2FA.js";
|
|
4
|
+
import { a as PageShell, c as StatusBadge, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow, t as EmptyState } from "./Page-KIL1CsME.js";
|
|
5
|
+
import { t as Route } from "./teams-D6Tx-Jyn.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
-
import { useRouter } from "@tanstack/react-router";
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Link, useRouter } from "@tanstack/react-router";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/routes/teams/index.tsx?tsr-split=component
|
|
10
10
|
function TeamsPage() {
|
|
11
11
|
const { teams, memberCounts } = Route.useLoaderData();
|
|
@@ -17,7 +17,7 @@ function TeamsPage() {
|
|
|
17
17
|
/* @__PURE__ */ jsx(PageHeader, {
|
|
18
18
|
eyebrow: "Workspace",
|
|
19
19
|
title: "Teams",
|
|
20
|
-
description: "Each Team owns one workspace, its members and who may message whom. Every
|
|
20
|
+
description: "Each Team owns one workspace, its members and who may message whom. Every Agent belongs to exactly one Team. Register a Team here, or remove an empty one."
|
|
21
21
|
}),
|
|
22
22
|
/* @__PURE__ */ jsx(SectionCard, {
|
|
23
23
|
title: "Register a team",
|
|
@@ -25,18 +25,22 @@ function TeamsPage() {
|
|
|
25
25
|
}),
|
|
26
26
|
/* @__PURE__ */ jsx(SectionCard, {
|
|
27
27
|
title: "Registered teams",
|
|
28
|
-
description: "Open a Team
|
|
28
|
+
description: "Open a Team for its members, USER.md, shared memory and connections.",
|
|
29
29
|
children: teams.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
30
30
|
title: "No teams registered",
|
|
31
31
|
description: "Register a Team above to create a workspace for your agents."
|
|
32
32
|
}) : /* @__PURE__ */ jsx(ItemList, { children: teams.map((team) => {
|
|
33
33
|
const count = memberCounts[team.id] ?? 0;
|
|
34
34
|
return /* @__PURE__ */ jsx(ItemRow, {
|
|
35
|
-
title: /* @__PURE__ */ jsx(
|
|
36
|
-
|
|
35
|
+
title: /* @__PURE__ */ jsx(Link, {
|
|
36
|
+
to: "/",
|
|
37
|
+
search: {
|
|
38
|
+
team: team.id,
|
|
39
|
+
panel: "team"
|
|
40
|
+
},
|
|
37
41
|
children: team.name
|
|
38
42
|
}),
|
|
39
|
-
meta: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
43
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
40
44
|
/* @__PURE__ */ jsx("code", { children: team.id }),
|
|
41
45
|
/* @__PURE__ */ jsxs(StatusBadge, {
|
|
42
46
|
variant: count > 0 ? "success" : "neutral",
|
|
@@ -46,9 +50,13 @@ function TeamsPage() {
|
|
|
46
50
|
count === 1 ? "" : "s"
|
|
47
51
|
]
|
|
48
52
|
}),
|
|
49
|
-
/* @__PURE__ */ jsxs(
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
/* @__PURE__ */ jsxs(Link, {
|
|
54
|
+
to: "/",
|
|
55
|
+
search: {
|
|
56
|
+
team: team.id,
|
|
57
|
+
view: "connections"
|
|
58
|
+
},
|
|
59
|
+
children: [team.policyMode === "open" ? "Open" : "Restricted", ": see connections"]
|
|
52
60
|
})
|
|
53
61
|
] }),
|
|
54
62
|
actions: count === 0 && /* @__PURE__ */ jsx(Button, {
|
|
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
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-Cg-QQWpH.js");
|
|
6
6
|
var fetchTeams = createServerFn({ method: "GET" }).handler(createSsrRpc("fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82"));
|
|
7
7
|
var Route = createFileRoute("/teams/")({
|
|
8
8
|
loader: () => fetchTeams(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as PageShell, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow } from "./Page-
|
|
3
|
-
import { t as Route } from "./teams-
|
|
4
|
-
import {
|
|
1
|
+
import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
+
import { a as PageShell, i as PageHeader, n as ItemList, o as SectionCard, r as ItemRow } from "./Page-KIL1CsME.js";
|
|
3
|
+
import { t as Route } from "./teams-Bm63mbTt.js";
|
|
4
|
+
import { n as SectionTabs, r as TEMPLATE_TABS } from "./SectionTabs-CNcvxbR8.js";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { useRouter } from "@tanstack/react-router";
|
|
7
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/routes/templates/teams/index.tsx?tsr-split=component
|
|
9
9
|
function TeamTemplatesPage() {
|
|
10
10
|
const templates = Route.useLoaderData();
|
|
@@ -33,7 +33,7 @@ function TeamTemplatesPage() {
|
|
|
33
33
|
href: `/templates/teams/${encodeURIComponent(template.id)}`,
|
|
34
34
|
children: template.name
|
|
35
35
|
}),
|
|
36
|
-
meta: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
37
37
|
/* @__PURE__ */ jsx("code", { children: template.id }),
|
|
38
38
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
39
39
|
template.slots.length,
|
|
@@ -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-B_ZRIIrT.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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
1
|
+
import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
|
|
3
|
+
import { t as Route } from "./telegram-xU-vXgef.js";
|
|
4
|
+
import { t as ConfigPage } from "./ConfigPage-DSLM5CLw.js";
|
|
5
5
|
import { useEffect, useState } from "react";
|
|
6
6
|
import { useRouter } from "@tanstack/react-router";
|
|
7
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/NotificationSettings.tsx
|
|
9
9
|
var kinds = {
|
|
10
10
|
lesson_proposal: "Lesson proposals",
|
|
@@ -331,7 +331,7 @@ function TelegramIntegrationPage() {
|
|
|
331
331
|
children: initial.botTokenPreview
|
|
332
332
|
}),
|
|
333
333
|
" ",
|
|
334
|
-
initial.chatId && /* @__PURE__ */ jsxs(Fragment, { children: ["· chat ", /* @__PURE__ */ jsx("code", {
|
|
334
|
+
initial.chatId && /* @__PURE__ */ jsxs(Fragment$1, { children: ["· chat ", /* @__PURE__ */ jsx("code", {
|
|
335
335
|
className: "font-mono",
|
|
336
336
|
children: initial.chatId
|
|
337
337
|
})] })
|
|
@@ -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-B_ZRIIrT.js";
|
|
4
4
|
//#region src/routes/config/integrations/telegram.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTelegramConfig_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "00a157dd07824e1f126f06646effd1d876f280f6fc64c144d2f6429414a4e58a",
|
|
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/integrations/telegram.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./telegram-
|
|
5
|
+
var $$splitComponentImporter = () => import("./telegram-BJ4l_TA_.js");
|
|
6
6
|
var fetchTelegramConfig = createServerFn({ method: "GET" }).handler(createSsrRpc("00a157dd07824e1f126f06646effd1d876f280f6fc64c144d2f6429414a4e58a"));
|
|
7
7
|
var Route = createFileRoute("/config/integrations/telegram")({
|
|
8
8
|
loader: () => fetchTelegramConfig(),
|
|
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/tokens.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./tokens-
|
|
5
|
+
var $$splitComponentImporter = () => import("./tokens-CsqoRt5T.js");
|
|
6
6
|
var fetchTokens = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("46e35c9f1afc79423cb49703b454ef684344db08ec19775efd70a8768c7837f1"));
|
|
7
7
|
var Route = createFileRoute("/config/tokens")({
|
|
8
8
|
validateSearch: (search) => ({ all: search.all === 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-B_ZRIIrT.js";
|
|
4
4
|
//#region src/routes/config/tokens.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTokens_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "46e35c9f1afc79423cb49703b454ef684344db08ec19775efd70a8768c7837f1",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
1
|
+
import { E as errorMessage, d as Button, w as api } from "./workspace-DeEYMPDX.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CvLZgbfY.js";
|
|
3
|
+
import { c as StatusBadge, n as ItemList, o as SectionCard, r as ItemRow } from "./Page-KIL1CsME.js";
|
|
4
|
+
import { t as Route } from "./tokens-ByPTGFBQ.js";
|
|
5
|
+
import { t as ConfigPage } from "./ConfigPage-DSLM5CLw.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { useRouter } from "@tanstack/react-router";
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/routes/config/tokens.tsx?tsr-split=component
|
|
10
10
|
function when(timestamp) {
|
|
11
11
|
return new Date(timestamp).toISOString().slice(0, 16).replace("T", " ");
|
|
@@ -24,7 +24,7 @@ function TokensPage() {
|
|
|
24
24
|
}
|
|
25
25
|
return /* @__PURE__ */ jsxs(ConfigPage, {
|
|
26
26
|
title: "API tokens",
|
|
27
|
-
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
description: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
28
28
|
"Every token has full access to the HTTP API, the CLI and browser login. The",
|
|
29
29
|
" ",
|
|
30
30
|
/* @__PURE__ */ jsx("code", {
|
|
@@ -56,7 +56,7 @@ function TokensPage() {
|
|
|
56
56
|
const expired = token.expiresAt !== null && token.expiresAt <= Date.now();
|
|
57
57
|
return /* @__PURE__ */ jsx(ItemRow, {
|
|
58
58
|
title: token.label,
|
|
59
|
-
meta: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60
60
|
/* @__PURE__ */ jsx(StatusBadge, {
|
|
61
61
|
variant: token.revokedAt || expired ? "neutral" : "success",
|
|
62
62
|
children: token.revokedAt ? "revoked" : expired ? "expired" : "active"
|
|
@@ -82,7 +82,7 @@ function TokensPage() {
|
|
|
82
82
|
className: "muted",
|
|
83
83
|
children: "No active browser sessions."
|
|
84
84
|
}) : /* @__PURE__ */ jsx(ItemList, { children: sessions.map((session) => /* @__PURE__ */ jsx(ItemRow, {
|
|
85
|
-
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
85
|
+
title: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
86
86
|
session.tokenLabel,
|
|
87
87
|
" ",
|
|
88
88
|
session.current && /* @__PURE__ */ jsx(StatusBadge, {
|
|
@@ -90,7 +90,7 @@ function TokensPage() {
|
|
|
90
90
|
children: "current"
|
|
91
91
|
})
|
|
92
92
|
] }),
|
|
93
|
-
meta: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
93
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
94
94
|
/* @__PURE__ */ jsxs("span", { children: ["last seen ", when(session.lastSeenAt)] }),
|
|
95
95
|
/* @__PURE__ */ jsxs("span", { children: ["expires ", when(session.expiresAt)] }),
|
|
96
96
|
/* @__PURE__ */ jsx("code", { children: session.id })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PageShell, i as PageHeader, o as SectionCard } from "./Page-
|
|
1
|
+
import { a as PageShell, i as PageHeader, o as SectionCard } from "./Page-KIL1CsME.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ArrowRight } from "lucide-react";
|
|
4
4
|
//#region src/routes/welcome.tsx?tsr-split=component
|