bazilion 0.10.0 → 0.12.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 +1666 -266
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +4303 -522
- package/dist/daemon.js.map +1 -1
- package/dist/migrations/0001_init.sql +101 -0
- package/dist/web/client/assets/AgentTabs-R6gSjIj3.js +1 -0
- package/dist/web/client/assets/{ProductionTeamPolicyEditor-CiQ-VVDo.js → ProductionTeamPolicyEditor-CSL3W7XM.js} +2 -2
- package/dist/web/client/assets/{ProfileCommunicationEditor-D84F5yfr.js → ProfileCommunicationEditor-CwU0QkmE.js} +1 -1
- package/dist/web/client/assets/{TeamTabs-Btoe_FAE.js → TeamTabs-C1Hakkff.js} +1 -1
- package/dist/web/client/assets/{TemplatesTabs-CAYY03F5.js → TemplatesTabs-klEydJ8-.js} +1 -1
- package/dist/web/client/assets/{_id-BqU2BodK.js → _id-BOC7ioJu.js} +1 -1
- package/dist/web/client/assets/{_id-CKtoio3t.js → _id-CnVq-rED.js} +1 -1
- package/dist/web/client/assets/{_id-BeauECmk.js → _id-e4u7dmBb.js} +1 -1
- package/dist/web/client/assets/{_id-Q98Of6k9.js → _id-wkjjWLz0.js} +1 -1
- package/dist/web/client/assets/{activity-DXN_N85w.js → activity-uqhwzmiy.js} +1 -1
- package/dist/web/client/assets/{agents-C5Xsdge1.js → agents-B2usE-L_.js} +1 -1
- package/dist/web/client/assets/{agents-Cgxo4H5G.js → agents-FaQtkAWs.js} +1 -1
- package/dist/web/client/assets/{approvals-BnG7fbw-.js → approvals-DqLE6ttw.js} +1 -1
- package/dist/web/client/assets/attention-CkGozYnJ.js +1 -0
- package/dist/web/client/assets/attention-Gavt2yEp.js +1 -0
- package/dist/web/client/assets/chevron-down-CJk0zGNT.js +1 -0
- package/dist/web/client/assets/{config-xw4NyrXF.js → config-xrXoDEWM.js} +1 -1
- package/dist/web/client/assets/{context-D2V1Oi4z.js → context-ZWqx3uiC.js} +1 -1
- package/dist/web/client/assets/inbox-BoIvl9ZF.js +1 -0
- package/dist/web/client/assets/{index-VdURSoM4.js → index-nb2MV8X1.js} +3 -3
- package/dist/web/client/assets/learning-6_oYn1l7.js +1 -0
- package/dist/web/client/assets/{login-CvptUoMR.js → login-DM1ytxQL.js} +1 -1
- package/dist/web/client/assets/{mcp-BDFM_sW-.js → mcp-CetZbyUh.js} +1 -1
- package/dist/web/client/assets/{members-BJvph_TR.js → members-DdqWtwZd.js} +1 -1
- package/dist/web/client/assets/{memory-DRytqZCD.js → memory-FNrxFHmC.js} +1 -1
- package/dist/web/client/assets/plus-C3GroITC.js +1 -0
- package/dist/web/client/assets/{policy-CGP50OtQ.js → policy-BKPejYRI.js} +1 -1
- package/dist/web/client/assets/{routes-DJnWYvC9.js → routes-CH1ZTTo-.js} +1 -1
- package/dist/web/client/assets/{services-DHheiv7L.js → services-zk9SqN06.js} +1 -1
- package/dist/web/client/assets/{skills-DmsitluU.js → skills-tXDpomHW.js} +1 -1
- package/dist/web/client/assets/styles-DMltY3su.css +2 -0
- package/dist/web/client/assets/{teams-BdC4gthq.js → teams-BZYjekBN.js} +1 -1
- package/dist/web/client/assets/{teams-CbxSaorm.js → teams-D1c8zlxs.js} +1 -1
- package/dist/web/client/assets/telegram-DCe1CWMt.js +1 -0
- package/dist/web/client/assets/{tokens-CjRplDrJ.js → tokens-DAPjRS0N.js} +1 -1
- package/dist/web/client/assets/triggers-D8R-5guA.js +1 -0
- package/dist/web/client/assets/{welcome-wBfX9dAd.js → welcome-CuK0shDJ.js} +1 -1
- package/dist/web/client/assets/wire-constants-BhVKOCQa.js +74 -0
- package/dist/web/server/assets/{AgentTabs-DoMDJBXH.js → AgentTabs-aXdsiiMp.js} +5 -0
- package/dist/web/server/assets/{ChatPane-eUY_dga3.js → ChatPane-Ba5wTsVk.js} +325 -36
- package/dist/web/server/assets/{_id-ClN9hY2x.js → _id-BHYLL8M-.js} +3 -3
- package/dist/web/server/assets/{_id-DkYodSkG.js → _id-FcHdSocl.js} +1 -1
- package/dist/web/server/assets/{_tanstack-start-manifest_v-D09Xu_6u.js → _tanstack-start-manifest_v-fLsYERQ-.js} +77 -54
- package/dist/web/server/assets/attention-BW_6ddkj.js +11 -0
- package/dist/web/server/assets/attention-BxkTf337.js +14 -0
- package/dist/web/server/assets/attention-CM-Ks1N9.js +19 -0
- package/dist/web/server/assets/attention-w21GQIGH.js +264 -0
- package/dist/web/server/assets/{inbox-CUIyf9MT.js → inbox-BLUzA5sQ.js} +40 -3
- package/dist/web/server/assets/{inbox-B3-TRsNI.js → inbox-CzlKT9Wg.js} +5 -3
- package/dist/web/server/assets/{inbox-BardsGyy.js → inbox-ZvDNAjaM.js} +1 -1
- package/dist/web/server/assets/learning-8zav4pIT.js +33 -0
- package/dist/web/server/assets/learning-B7PBkvER.js +16 -0
- package/dist/web/server/assets/learning-Cq7K2heb.js +312 -0
- package/dist/web/server/assets/{router-DIdp8ZNt.js → router-CQuj7553.js} +81 -48
- package/dist/web/server/assets/{routes-Jb0zjKav.js → routes-B6cMLIPk.js} +3 -3
- package/dist/web/server/assets/{routes-CXz4hTAr.js → routes-BrA-U_Hm.js} +1 -1
- package/dist/web/server/assets/{routes-lIclH9Br.js → routes-C19CMLZt.js} +1 -1
- package/dist/web/server/assets/{telegram-7ub--6xz.js → telegram-CBF8SJzB.js} +1 -24
- package/dist/web/server/assets/{telegram-Bazhmpr4.js → telegram-XwyKSEtj.js} +1 -1
- package/dist/web/server/assets/{triggers-Ca57_qym.js → triggers-BZPl5CHs.js} +1 -1
- package/dist/web/server/assets/{triggers-BMpHsGIr.js → triggers-CSNNzRIi.js} +28 -4
- package/dist/web/server/assets/{triggers-C_0y6QV9.js → triggers-D79NoSXk.js} +3 -2
- package/dist/web/server/server.js +13 -5
- package/dist/worker.js +1752 -148
- package/dist/worker.js.map +1 -1
- package/package.json +4 -3
- package/dist/web/client/assets/AgentTabs-B3hq5a3e.js +0 -1
- package/dist/web/client/assets/chevron-down-BhcBspw3.js +0 -1
- package/dist/web/client/assets/inbox-DK6hWCMp.js +0 -1
- package/dist/web/client/assets/plus-C9ee3SIO.js +0 -1
- package/dist/web/client/assets/styles-B5eQAwLP.css +0 -2
- package/dist/web/client/assets/telegram-D61G_alO.js +0 -1
- package/dist/web/client/assets/triggers-MLzTm_DM.js +0 -1
- package/dist/web/client/assets/wire-constants-BxfyUMXB.js +0 -74
- package/dist/web/server/assets/{Sidebar-O_CH1-JD.js → Sidebar-DsRVCszF.js} +1 -1
|
@@ -2,32 +2,35 @@ import { i as getCookie, t as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as DAEMON_BASE_URL } from "./daemon-client-2NRMzlTr.js";
|
|
3
3
|
import { i as BaziuLogo, n as ThemeToggle, r as PawIcon, t as Route$4 } from "./login-Bx5LEyGP.js";
|
|
4
4
|
import { t as createSsrRpc } from "./createSsrRpc-DFsIAfFd.js";
|
|
5
|
-
import { t as Route$5 } from "./routes-
|
|
5
|
+
import { t as Route$5 } from "./routes-C19CMLZt.js";
|
|
6
6
|
import { t as Route$6 } from "./teams-DEpQR2QA.js";
|
|
7
7
|
import { t as Route$7 } from "./skills-C-UgkuCW.js";
|
|
8
8
|
import { t as Route$8 } from "./config-TeIoyYYc.js";
|
|
9
|
-
import { t as Route$9 } from "./
|
|
10
|
-
import { t as Route$10 } from "./
|
|
11
|
-
import { t as Route$11 } from "./
|
|
12
|
-
import { t as Route$12 } from "./
|
|
13
|
-
import { t as Route$13 } from "./
|
|
14
|
-
import { t as Route$14 } from "./
|
|
15
|
-
import { t as Route$15 } from "./
|
|
16
|
-
import { t as Route$16 } from "./
|
|
17
|
-
import { t as Route$17 } from "./_id-
|
|
18
|
-
import { t as Route$18 } from "./
|
|
19
|
-
import { t as Route$19 } from "./
|
|
20
|
-
import { t as Route$20 } from "./
|
|
21
|
-
import { t as Route$21 } from "./
|
|
22
|
-
import { t as Route$22 } from "./
|
|
23
|
-
import { t as Route$23 } from "./
|
|
24
|
-
import { t as Route$24 } from "./
|
|
25
|
-
import { t as Route$25 } from "./
|
|
26
|
-
import { t as Route$26 } from "./
|
|
27
|
-
import { t as Route$27 } from "./
|
|
9
|
+
import { t as Route$9 } from "./attention-BxkTf337.js";
|
|
10
|
+
import { t as Route$10 } from "./approvals-CWcFHlor.js";
|
|
11
|
+
import { t as Route$11 } from "./agents-C9xlWK0Z.js";
|
|
12
|
+
import { t as Route$12 } from "./tokens-BnwFbV7T.js";
|
|
13
|
+
import { t as Route$13 } from "./services-C4szdhPx.js";
|
|
14
|
+
import { t as Route$14 } from "./mcp-DIWTogHM.js";
|
|
15
|
+
import { t as Route$15 } from "./teams-OIkHuxy1.js";
|
|
16
|
+
import { t as Route$16 } from "./agents-BvttypqB.js";
|
|
17
|
+
import { t as Route$17 } from "./_id-Dj1yZ3zJ.js";
|
|
18
|
+
import { t as Route$18 } from "./_id-FcHdSocl.js";
|
|
19
|
+
import { t as Route$19 } from "./policy-C30AeFIb.js";
|
|
20
|
+
import { t as Route$20 } from "./memory-pZ4pZT7p.js";
|
|
21
|
+
import { t as Route$21 } from "./members-VdPwD6CE.js";
|
|
22
|
+
import { t as Route$22 } from "./context-BXGo5Vfi.js";
|
|
23
|
+
import { t as Route$23 } from "./activity-D9SMqBhy.js";
|
|
24
|
+
import { t as Route$24 } from "./telegram-XwyKSEtj.js";
|
|
25
|
+
import { t as Route$25 } from "./triggers-BZPl5CHs.js";
|
|
26
|
+
import { t as Route$26 } from "./learning-B7PBkvER.js";
|
|
27
|
+
import { t as Route$27 } from "./inbox-ZvDNAjaM.js";
|
|
28
|
+
import { t as Route$28 } from "./_id-DinTp_7X.js";
|
|
29
|
+
import { t as Route$29 } from "./_id-CwyGjJeP.js";
|
|
30
|
+
import { useEffect, useState } from "react";
|
|
28
31
|
import { HeadContent, Link, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, lazyRouteComponent, redirect, useRouterState } from "@tanstack/react-router";
|
|
29
32
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
-
import { Bot, LayoutTemplate, Settings2, ShieldCheck, Sparkles, UsersRound } from "lucide-react";
|
|
33
|
+
import { BellRing, Bot, LayoutTemplate, Settings2, ShieldCheck, Sparkles, UsersRound } from "lucide-react";
|
|
31
34
|
//#region src/components/Footer.tsx
|
|
32
35
|
function Footer() {
|
|
33
36
|
return /* @__PURE__ */ jsxs("footer", {
|
|
@@ -71,6 +74,11 @@ var NAV_LINKS = [
|
|
|
71
74
|
label: "approvals",
|
|
72
75
|
icon: ShieldCheck
|
|
73
76
|
},
|
|
77
|
+
{
|
|
78
|
+
to: "/attention",
|
|
79
|
+
label: "attention",
|
|
80
|
+
icon: BellRing
|
|
81
|
+
},
|
|
74
82
|
{
|
|
75
83
|
to: "/skills",
|
|
76
84
|
label: "skills",
|
|
@@ -84,6 +92,11 @@ var NAV_LINKS = [
|
|
|
84
92
|
];
|
|
85
93
|
function TopNav() {
|
|
86
94
|
const pathname = useRouterState({ select: (state) => state.location.pathname });
|
|
95
|
+
const [attentionCount, setAttentionCount] = useState(0);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (pathname === "/login" || pathname === "/welcome") return;
|
|
98
|
+
fetch("/api/attention/summary").then((response) => response.ok ? response.json() : null).then((body) => setAttentionCount(body?.openTotal ?? 0)).catch(() => {});
|
|
99
|
+
}, [pathname]);
|
|
87
100
|
return /* @__PURE__ */ jsxs("nav", {
|
|
88
101
|
"aria-label": "Primary navigation",
|
|
89
102
|
className: "mx-auto grid w-full max-w-[1500px] shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 border-b border-frost py-3 md:flex md:gap-2 md:py-4",
|
|
@@ -108,13 +121,21 @@ function TopNav() {
|
|
|
108
121
|
"aria-label": link.label,
|
|
109
122
|
title: link.label,
|
|
110
123
|
className: `inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-lg border px-2.5 text-sm font-medium transition-all md:min-w-10 lg:px-3 ${active ? "border-sapphire-light bg-sapphire-glow text-sapphire shadow-baziu-sm" : "border-transparent text-mocha hover:border-frost hover:bg-ivory hover:text-sapphire"}`,
|
|
111
|
-
children: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
126
|
+
className: "h-[1.05rem] w-[1.05rem] shrink-0",
|
|
127
|
+
"aria-hidden": "true"
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx("span", {
|
|
130
|
+
className: "hidden lg:inline",
|
|
131
|
+
children: link.label
|
|
132
|
+
}),
|
|
133
|
+
link.to === "/attention" && attentionCount > 0 && /* @__PURE__ */ jsx("span", {
|
|
134
|
+
className: "min-w-5 rounded-full bg-coral px-1.5 text-center text-xs text-white",
|
|
135
|
+
"aria-label": `${attentionCount} open attention items`,
|
|
136
|
+
children: attentionCount > 99 ? "99+" : attentionCount
|
|
137
|
+
})
|
|
138
|
+
]
|
|
118
139
|
}, link.to);
|
|
119
140
|
})
|
|
120
141
|
}),
|
|
@@ -136,7 +157,7 @@ function isSetupOpen(path) {
|
|
|
136
157
|
}
|
|
137
158
|
//#endregion
|
|
138
159
|
//#region src/styles.css?url
|
|
139
|
-
var styles_default = "/assets/styles-
|
|
160
|
+
var styles_default = "/assets/styles-DMltY3su.css";
|
|
140
161
|
//#endregion
|
|
141
162
|
//#region src/routes/__root.tsx
|
|
142
163
|
var THEME_INIT_SCRIPT = `(function(){try{var t=localStorage.getItem('baziu-theme');var sd=window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var d=t==='dark'||((t===null||t==='system')&&sd);document.documentElement.classList.toggle('dark',d);}catch(e){}})();`;
|
|
@@ -362,27 +383,32 @@ var ConfigIndexRoute = Route$8.update({
|
|
|
362
383
|
path: "/config/",
|
|
363
384
|
getParentRoute: () => Route$3
|
|
364
385
|
});
|
|
365
|
-
var
|
|
386
|
+
var AttentionIndexRoute = Route$9.update({
|
|
387
|
+
id: "/attention/",
|
|
388
|
+
path: "/attention/",
|
|
389
|
+
getParentRoute: () => Route$3
|
|
390
|
+
});
|
|
391
|
+
var ApprovalsIndexRoute = Route$10.update({
|
|
366
392
|
id: "/approvals/",
|
|
367
393
|
path: "/approvals/",
|
|
368
394
|
getParentRoute: () => Route$3
|
|
369
395
|
});
|
|
370
|
-
var AgentsIndexRoute = Route$
|
|
396
|
+
var AgentsIndexRoute = Route$11.update({
|
|
371
397
|
id: "/agents/",
|
|
372
398
|
path: "/agents/",
|
|
373
399
|
getParentRoute: () => Route$3
|
|
374
400
|
});
|
|
375
|
-
var ConfigTokensRoute = Route$
|
|
401
|
+
var ConfigTokensRoute = Route$12.update({
|
|
376
402
|
id: "/config/tokens",
|
|
377
403
|
path: "/config/tokens",
|
|
378
404
|
getParentRoute: () => Route$3
|
|
379
405
|
});
|
|
380
|
-
var ConfigServicesRoute = Route$
|
|
406
|
+
var ConfigServicesRoute = Route$13.update({
|
|
381
407
|
id: "/config/services",
|
|
382
408
|
path: "/config/services",
|
|
383
409
|
getParentRoute: () => Route$3
|
|
384
410
|
});
|
|
385
|
-
var ConfigMcpRoute = Route$
|
|
411
|
+
var ConfigMcpRoute = Route$14.update({
|
|
386
412
|
id: "/config/mcp",
|
|
387
413
|
path: "/config/mcp",
|
|
388
414
|
getParentRoute: () => Route$3
|
|
@@ -392,67 +418,72 @@ var ApiSplatRoute = Route.update({
|
|
|
392
418
|
path: "/api/$",
|
|
393
419
|
getParentRoute: () => Route$3
|
|
394
420
|
});
|
|
395
|
-
var TemplatesTeamsIndexRoute = Route$
|
|
421
|
+
var TemplatesTeamsIndexRoute = Route$15.update({
|
|
396
422
|
id: "/templates/teams/",
|
|
397
423
|
path: "/templates/teams/",
|
|
398
424
|
getParentRoute: () => Route$3
|
|
399
425
|
});
|
|
400
|
-
var TemplatesAgentsIndexRoute = Route$
|
|
426
|
+
var TemplatesAgentsIndexRoute = Route$16.update({
|
|
401
427
|
id: "/templates/agents/",
|
|
402
428
|
path: "/templates/agents/",
|
|
403
429
|
getParentRoute: () => Route$3
|
|
404
430
|
});
|
|
405
|
-
var TeamsIdIndexRoute = Route$
|
|
431
|
+
var TeamsIdIndexRoute = Route$17.update({
|
|
406
432
|
id: "/teams/$id/",
|
|
407
433
|
path: "/teams/$id/",
|
|
408
434
|
getParentRoute: () => Route$3
|
|
409
435
|
});
|
|
410
|
-
var AgentsIdIndexRoute = Route$
|
|
436
|
+
var AgentsIdIndexRoute = Route$18.update({
|
|
411
437
|
id: "/agents/$id/",
|
|
412
438
|
path: "/agents/$id/",
|
|
413
439
|
getParentRoute: () => Route$3
|
|
414
440
|
});
|
|
415
|
-
var TeamsIdPolicyRoute = Route$
|
|
441
|
+
var TeamsIdPolicyRoute = Route$19.update({
|
|
416
442
|
id: "/teams/$id/policy",
|
|
417
443
|
path: "/teams/$id/policy",
|
|
418
444
|
getParentRoute: () => Route$3
|
|
419
445
|
});
|
|
420
|
-
var TeamsIdMemoryRoute = Route$
|
|
446
|
+
var TeamsIdMemoryRoute = Route$20.update({
|
|
421
447
|
id: "/teams/$id/memory",
|
|
422
448
|
path: "/teams/$id/memory",
|
|
423
449
|
getParentRoute: () => Route$3
|
|
424
450
|
});
|
|
425
|
-
var TeamsIdMembersRoute = Route$
|
|
451
|
+
var TeamsIdMembersRoute = Route$21.update({
|
|
426
452
|
id: "/teams/$id/members",
|
|
427
453
|
path: "/teams/$id/members",
|
|
428
454
|
getParentRoute: () => Route$3
|
|
429
455
|
});
|
|
430
|
-
var TeamsIdContextRoute = Route$
|
|
456
|
+
var TeamsIdContextRoute = Route$22.update({
|
|
431
457
|
id: "/teams/$id/context",
|
|
432
458
|
path: "/teams/$id/context",
|
|
433
459
|
getParentRoute: () => Route$3
|
|
434
460
|
});
|
|
435
|
-
var TeamsIdActivityRoute = Route$
|
|
461
|
+
var TeamsIdActivityRoute = Route$23.update({
|
|
436
462
|
id: "/teams/$id/activity",
|
|
437
463
|
path: "/teams/$id/activity",
|
|
438
464
|
getParentRoute: () => Route$3
|
|
439
465
|
});
|
|
440
|
-
var ConfigIntegrationsTelegramRoute = Route$
|
|
466
|
+
var ConfigIntegrationsTelegramRoute = Route$24.update({
|
|
441
467
|
id: "/config/integrations/telegram",
|
|
442
468
|
path: "/config/integrations/telegram",
|
|
443
469
|
getParentRoute: () => Route$3
|
|
444
470
|
});
|
|
445
|
-
var AgentsIdTriggersRoute = Route$
|
|
471
|
+
var AgentsIdTriggersRoute = Route$25.update({
|
|
446
472
|
id: "/agents/$id/triggers",
|
|
447
473
|
path: "/agents/$id/triggers",
|
|
448
474
|
getParentRoute: () => Route$3
|
|
449
475
|
});
|
|
450
|
-
var
|
|
476
|
+
var AgentsIdLearningRoute = Route$26.update({
|
|
477
|
+
id: "/agents/$id/learning",
|
|
478
|
+
path: "/agents/$id/learning",
|
|
479
|
+
getParentRoute: () => Route$3
|
|
480
|
+
});
|
|
481
|
+
var AgentsIdInboxRoute = Route$27.update({
|
|
451
482
|
id: "/agents/$id/inbox",
|
|
452
483
|
path: "/agents/$id/inbox",
|
|
453
484
|
getParentRoute: () => Route$3
|
|
454
485
|
});
|
|
455
|
-
var TemplatesTeamsIdIndexRoute = Route$
|
|
486
|
+
var TemplatesTeamsIdIndexRoute = Route$28.update({
|
|
456
487
|
id: "/templates/teams/$id/",
|
|
457
488
|
path: "/templates/teams/$id/",
|
|
458
489
|
getParentRoute: () => Route$3
|
|
@@ -467,11 +498,13 @@ var rootRouteChildren = {
|
|
|
467
498
|
ConfigTokensRoute,
|
|
468
499
|
AgentsIndexRoute,
|
|
469
500
|
ApprovalsIndexRoute,
|
|
501
|
+
AttentionIndexRoute,
|
|
470
502
|
ConfigIndexRoute,
|
|
471
503
|
SkillsIndexRoute,
|
|
472
504
|
TeamsIndexRoute,
|
|
473
505
|
TemplatesIndexRoute,
|
|
474
506
|
AgentsIdInboxRoute,
|
|
507
|
+
AgentsIdLearningRoute,
|
|
475
508
|
AgentsIdTriggersRoute,
|
|
476
509
|
ConfigIntegrationsTelegramRoute,
|
|
477
510
|
TeamsIdActivityRoute,
|
|
@@ -483,7 +516,7 @@ var rootRouteChildren = {
|
|
|
483
516
|
TeamsIdIndexRoute,
|
|
484
517
|
TemplatesAgentsIndexRoute,
|
|
485
518
|
TemplatesTeamsIndexRoute,
|
|
486
|
-
TemplatesAgentsIdIndexRoute: Route$
|
|
519
|
+
TemplatesAgentsIdIndexRoute: Route$29.update({
|
|
487
520
|
id: "/templates/agents/$id/",
|
|
488
521
|
path: "/templates/agents/$id/",
|
|
489
522
|
getParentRoute: () => Route$3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Route } from "./routes-
|
|
2
|
-
import { t as ChatPane } from "./ChatPane-
|
|
3
|
-
import { n as Sidebar } from "./Sidebar-
|
|
1
|
+
import { t as Route } from "./routes-C19CMLZt.js";
|
|
2
|
+
import { t as ChatPane } from "./ChatPane-Ba5wTsVk.js";
|
|
3
|
+
import { n as Sidebar } from "./Sidebar-DsRVCszF.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/routes/index.tsx?tsr-split=component
|
|
6
6
|
function HomePage() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as getCookie, t as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-pU-IQV2Y.js";
|
|
3
3
|
import { n as daemonClient, r as ApiClientError } from "./daemon-client-2NRMzlTr.js";
|
|
4
|
-
import { t as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Sidebar-
|
|
4
|
+
import { t as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Sidebar-DsRVCszF.js";
|
|
5
5
|
//#region src/routes/index.tsx?tss-serverfn-split
|
|
6
6
|
function parseOpenGroupsCookie(raw) {
|
|
7
7
|
if (!raw) return {};
|
|
@@ -2,7 +2,7 @@ import { t as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as createSsrRpc } from "./createSsrRpc-DFsIAfFd.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
5
|
+
var $$splitComponentImporter = () => import("./routes-B6cMLIPk.js");
|
|
6
6
|
var fetchHomeData = createServerFn({ method: "POST" }).inputValidator((d) => d).handler(createSsrRpc("26dbbcbe40063e8aedfd343cf1dfd4dfe5589f24591c0ba35e80c611d7c57c7c"));
|
|
7
7
|
var Route = createFileRoute("/")({
|
|
8
8
|
validateSearch: (s) => ({ agent: typeof s.agent === "string" ? s.agent : void 0 }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Route } from "./telegram-
|
|
1
|
+
import { t as Route } from "./telegram-XwyKSEtj.js";
|
|
2
2
|
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
3
3
|
import { t as ConfigPage } from "./ConfigPage-BKlh5vOU.js";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
@@ -81,7 +81,6 @@ function TelegramIntegrationPage() {
|
|
|
81
81
|
description: "Connect one forum-supergroup bot with one topic per agent, so conversations stay reachable from your phone.",
|
|
82
82
|
size: "narrow",
|
|
83
83
|
children: [
|
|
84
|
-
/* @__PURE__ */ jsx(Step2Banner, {}),
|
|
85
84
|
initial.migratedChatId && /* @__PURE__ */ jsx(MigrationBanner, { toChatId: initial.migratedChatId }),
|
|
86
85
|
/* @__PURE__ */ jsxs("section", {
|
|
87
86
|
className: "rounded-lg border bg-card p-5",
|
|
@@ -426,28 +425,6 @@ function MigrationBanner({ toChatId }) {
|
|
|
426
425
|
]
|
|
427
426
|
});
|
|
428
427
|
}
|
|
429
|
-
function Step2Banner() {
|
|
430
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
431
|
-
className: "rounded-md border-2 border-warning/25 bg-warning/10 px-4 py-3 text-sm",
|
|
432
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
433
|
-
className: "font-semibold text-warning mb-1",
|
|
434
|
-
children: "Step 2 of the rollout"
|
|
435
|
-
}), /* @__PURE__ */ jsxs("p", {
|
|
436
|
-
className: "text-warning",
|
|
437
|
-
children: [
|
|
438
|
-
"The bot polls Telegram and creates the ",
|
|
439
|
-
/* @__PURE__ */ jsx("code", {
|
|
440
|
-
className: "font-mono",
|
|
441
|
-
children: "⚙ bazilion"
|
|
442
|
-
}),
|
|
443
|
-
" ",
|
|
444
|
-
"service chat on first start. Inbound messages are logged but not yet routed to agents —",
|
|
445
|
-
" ",
|
|
446
|
-
"slash commands and per-agent topics ship in the next release. Outbound from agents ships after that."
|
|
447
|
-
]
|
|
448
|
-
})]
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
428
|
function PollingState({ polling }) {
|
|
452
429
|
const startedAt = polling.startedAt ? new Date(polling.startedAt).toISOString() : null;
|
|
453
430
|
const lastPoll = polling.lastSuccessfulPollAt ? new Date(polling.lastSuccessfulPollAt).toISOString() : null;
|
|
@@ -2,7 +2,7 @@ import { t as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as createSsrRpc } from "./createSsrRpc-DFsIAfFd.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-CBF8SJzB.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 { t as createServerFn } from "../server.js";
|
|
|
2
2
|
import { t as createSsrRpc } from "./createSsrRpc-DFsIAfFd.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/agents/$id/triggers.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./triggers-
|
|
5
|
+
var $$splitComponentImporter = () => import("./triggers-CSNNzRIi.js");
|
|
6
6
|
var fetchTriggers = createServerFn({ method: "POST" }).inputValidator((d) => d).handler(createSsrRpc("57ebf437fdb3fcfc63b176e796a55f04bdfec0b230059673196e98d413d15c4d"));
|
|
7
7
|
var Route = createFileRoute("/agents/$id/triggers")({
|
|
8
8
|
loader: async ({ params }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as Route } from "./triggers-
|
|
1
|
+
import { t as Route } from "./triggers-BZPl5CHs.js";
|
|
2
2
|
import { r as PageShell } from "./Page-LENulSXY.js";
|
|
3
|
-
import { t as AgentTabs } from "./AgentTabs-
|
|
3
|
+
import { t as AgentTabs } from "./AgentTabs-aXdsiiMp.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { useRouter } from "@tanstack/react-router";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/routes/agents/$id/triggers.tsx?tsr-split=component
|
|
8
8
|
function TriggersPage() {
|
|
9
|
-
const { resolved, triggers } = Route.useLoaderData();
|
|
9
|
+
const { resolved, triggers, dispatches } = Route.useLoaderData();
|
|
10
10
|
const router = useRouter();
|
|
11
11
|
async function toggle(t) {
|
|
12
12
|
await fetch(`/api/triggers/${t.id}`, {
|
|
@@ -82,7 +82,31 @@ function TriggersPage() {
|
|
|
82
82
|
}) })
|
|
83
83
|
]
|
|
84
84
|
}, t.id);
|
|
85
|
-
}) })] })
|
|
85
|
+
}) })] }),
|
|
86
|
+
/* @__PURE__ */ jsx("h3", {
|
|
87
|
+
className: "mb-3 mt-8 font-body text-[0.85em] font-semibold uppercase tracking-wider text-mocha-light",
|
|
88
|
+
children: "Recent dispatches"
|
|
89
|
+
}),
|
|
90
|
+
dispatches.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
91
|
+
className: "muted",
|
|
92
|
+
children: "no scheduled occurrences yet."
|
|
93
|
+
}) : /* @__PURE__ */ jsxs("table", { children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
94
|
+
/* @__PURE__ */ jsx("th", { children: "scheduled" }),
|
|
95
|
+
/* @__PURE__ */ jsx("th", { children: "status" }),
|
|
96
|
+
/* @__PURE__ */ jsx("th", { children: "attempts" }),
|
|
97
|
+
/* @__PURE__ */ jsx("th", { children: "error" })
|
|
98
|
+
] }) }), /* @__PURE__ */ jsx("tbody", { children: dispatches.map((dispatch) => /* @__PURE__ */ jsxs("tr", { children: [
|
|
99
|
+
/* @__PURE__ */ jsx("td", {
|
|
100
|
+
className: "text-[0.82em]",
|
|
101
|
+
children: new Date(dispatch.scheduledAt).toLocaleString()
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx("code", { children: dispatch.status }) }),
|
|
104
|
+
/* @__PURE__ */ jsx("td", { children: dispatch.attemptCount }),
|
|
105
|
+
/* @__PURE__ */ jsx("td", {
|
|
106
|
+
className: "text-[0.82em] text-mocha-light",
|
|
107
|
+
children: dispatch.lastError ?? "—"
|
|
108
|
+
})
|
|
109
|
+
] }, dispatch.id)) })] })
|
|
86
110
|
] });
|
|
87
111
|
}
|
|
88
112
|
function AddTriggerForm({ agentId, onAdded }) {
|
|
@@ -16,10 +16,11 @@ var fetchTriggers = createServerFn({ method: "POST" }).inputValidator((d) => d).
|
|
|
16
16
|
if (err instanceof ApiClientError && err.status === 404) return null;
|
|
17
17
|
throw err;
|
|
18
18
|
}
|
|
19
|
-
const { triggers } = await c.get(`/api/agents/${encodeURIComponent(resolved.agent.id)}/triggers`);
|
|
19
|
+
const { triggers, dispatches } = await c.get(`/api/agents/${encodeURIComponent(resolved.agent.id)}/triggers`);
|
|
20
20
|
return {
|
|
21
21
|
resolved,
|
|
22
|
-
triggers
|
|
22
|
+
triggers,
|
|
23
|
+
dispatches
|
|
23
24
|
};
|
|
24
25
|
});
|
|
25
26
|
//#endregion
|
|
@@ -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-fLsYERQ-.js");
|
|
3562
3562
|
const startManifest = tsrStartManifest();
|
|
3563
3563
|
let routes = startManifest.routes;
|
|
3564
3564
|
routes[rootRouteId];
|
|
@@ -3602,7 +3602,7 @@ var manifest = {
|
|
|
3602
3602
|
},
|
|
3603
3603
|
"26dbbcbe40063e8aedfd343cf1dfd4dfe5589f24591c0ba35e80c611d7c57c7c": {
|
|
3604
3604
|
functionName: "fetchHomeData_createServerFn_handler",
|
|
3605
|
-
importer: () => import("./assets/routes-
|
|
3605
|
+
importer: () => import("./assets/routes-BrA-U_Hm.js")
|
|
3606
3606
|
},
|
|
3607
3607
|
"278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7": {
|
|
3608
3608
|
functionName: "fetchServers_createServerFn_handler",
|
|
@@ -3610,7 +3610,7 @@ var manifest = {
|
|
|
3610
3610
|
},
|
|
3611
3611
|
"2cd8c6ec40e2e2d9518b5f127a518ecd83a2222d85665cc61d5144bcf59ed4fb": {
|
|
3612
3612
|
functionName: "fetchInbox_createServerFn_handler",
|
|
3613
|
-
importer: () => import("./assets/inbox-
|
|
3613
|
+
importer: () => import("./assets/inbox-CzlKT9Wg.js")
|
|
3614
3614
|
},
|
|
3615
3615
|
"46e35c9f1afc79423cb49703b454ef684344db08ec19775efd70a8768c7837f1": {
|
|
3616
3616
|
functionName: "fetchTokens_createServerFn_handler",
|
|
@@ -3622,7 +3622,7 @@ var manifest = {
|
|
|
3622
3622
|
},
|
|
3623
3623
|
"57ebf437fdb3fcfc63b176e796a55f04bdfec0b230059673196e98d413d15c4d": {
|
|
3624
3624
|
functionName: "fetchTriggers_createServerFn_handler",
|
|
3625
|
-
importer: () => import("./assets/triggers-
|
|
3625
|
+
importer: () => import("./assets/triggers-D79NoSXk.js")
|
|
3626
3626
|
},
|
|
3627
3627
|
"5cdb81f2b930818ee9ab1d626ac99828ea652ff447fcbfc21b24dea415f8b39e": {
|
|
3628
3628
|
functionName: "fetchActivity_createServerFn_handler",
|
|
@@ -3640,6 +3640,10 @@ var manifest = {
|
|
|
3640
3640
|
functionName: "fetchAgent_createServerFn_handler",
|
|
3641
3641
|
importer: () => import("./assets/_id-BhOB8Umi.js")
|
|
3642
3642
|
},
|
|
3643
|
+
"883b401299422096ee31ee824f9a24b49d06bdcedce398789778c4c549a92f3a": {
|
|
3644
|
+
functionName: "loadAttention_createServerFn_handler",
|
|
3645
|
+
importer: () => import("./assets/attention-CM-Ks1N9.js")
|
|
3646
|
+
},
|
|
3643
3647
|
"a0bbbee5d0c1240a05e35c04d56a0e95ec78f05265e4e937eec48c8ac2041e58": {
|
|
3644
3648
|
functionName: "fetchTeam_createServerFn_handler",
|
|
3645
3649
|
importer: () => import("./assets/_id-tB47Vsfp.js")
|
|
@@ -3675,6 +3679,10 @@ var manifest = {
|
|
|
3675
3679
|
"fc940d6dec5305aa64bdb9b9f5f7d4f925b2ba0608cb6d39af854a94872fc867": {
|
|
3676
3680
|
functionName: "fetchPolicy_createServerFn_handler",
|
|
3677
3681
|
importer: () => import("./assets/policy-Bb-vEgqg.js")
|
|
3682
|
+
},
|
|
3683
|
+
"fcdd0f08b635c7c501caa840d01d1376ace6683e26cc5ac7dead28d7870f98b9": {
|
|
3684
|
+
functionName: "fetchLearning_createServerFn_handler",
|
|
3685
|
+
importer: () => import("./assets/learning-8zav4pIT.js")
|
|
3678
3686
|
}
|
|
3679
3687
|
};
|
|
3680
3688
|
async function getServerFnById(id, access) {
|
|
@@ -5552,7 +5560,7 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
5552
5560
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
5553
5561
|
async function loadEntries() {
|
|
5554
5562
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
5555
|
-
import("./assets/router-
|
|
5563
|
+
import("./assets/router-CQuj7553.js"),
|
|
5556
5564
|
import("./assets/start-WH8WzTL_.js"),
|
|
5557
5565
|
import("./assets/empty-plugin-adapters-Cq4--YW-.js")
|
|
5558
5566
|
]);
|