bazilion 0.53.0 → 0.54.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 +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +296 -232
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-CkwSq3C7.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-CEn_4qVs.js +1 -0
- package/dist/web/client/assets/Button-UiegBKOK.js +1 -0
- package/dist/web/client/assets/{ConfigPage-DiQiJXP6.js → ConfigPage-CUbHBhzx.js} +1 -1
- package/dist/web/client/assets/ConfirmDialog-VqBOFZEp.js +1 -0
- package/dist/web/client/assets/ConnectionsView-ByARMcWP.js +1 -0
- package/dist/web/client/assets/{ManagePage-xlePXXx5.js → ManagePage-BJWZd1ts.js} +1 -1
- package/dist/web/client/assets/{SectionTabs-BMiRKFfb.js → SectionTabs-ViZKm3-B.js} +1 -1
- package/dist/web/client/assets/{Segmented-Co4n2C5X.js → Segmented-MYKKTuZO.js} +1 -1
- package/dist/web/client/assets/SkillsParts-UvNK5SYP.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-DG5UbJNK.js +1 -0
- package/dist/web/client/assets/TeamForm-DGlxWv4e.js +1 -0
- package/dist/web/client/assets/TeamThread-mkwODO0S.js +1 -0
- package/dist/web/client/assets/{UnsavedChangesGuard-DmT4nBQU.js → UnsavedChangesGuard-BmdwLH99.js} +1 -1
- package/dist/web/client/assets/_id-CvcxNmBH.js +1 -0
- package/dist/web/client/assets/_id-UyBk7gRl.js +1 -0
- package/dist/web/client/assets/access-C8d8vaQ6.js +1 -0
- package/dist/web/client/assets/agent-actions-BgE9fKHH.js +1 -0
- package/dist/web/client/assets/agents-CgtzqBpD.js +1 -0
- package/dist/web/client/assets/agents-D7W4BT8r.js +1 -0
- package/dist/web/client/assets/arrow-right-D0HKRb7U.js +1 -0
- package/dist/web/client/assets/attention-D9mQWoKt.js +1 -0
- package/dist/web/client/assets/bot-Bb--PFVU.js +1 -0
- package/dist/web/client/assets/chevron-right-bs0TUSl2.js +1 -0
- package/dist/web/client/assets/config-Dw6GWf38.js +1 -0
- package/dist/web/client/assets/createLucideIcon-DkniuEtD.js +1 -0
- package/dist/web/client/assets/{download-Dj-1ltZb.js → download-C4t9l5wR.js} +1 -1
- package/dist/web/client/assets/{file-text-DiP-LaEg.js → file-text-DzbjpYrV.js} +1 -1
- package/dist/web/client/assets/{images-BKjyhYUc.js → images-DSYgPKM7.js} +1 -1
- package/dist/web/client/assets/index-YW0gXPfk.js +14 -0
- package/dist/web/client/assets/{key-round-QpqZklz6.js → key-round-BpK4-E3T.js} +1 -1
- package/dist/web/client/assets/{list-checks-BeyG5SVQ.js → list-checks-JNXcmws9.js} +1 -1
- package/dist/web/client/assets/login-DcQJk5-U.js +1 -0
- package/dist/web/client/assets/manage-SRGSx8n2.js +1 -0
- package/dist/web/client/assets/mcp-BUWu4TvS.js +1 -0
- package/dist/web/client/assets/{message-square-DnpSOYv4.js → message-square-DM2MP9vF.js} +1 -1
- package/dist/web/client/assets/{network-BC7rNaOC.js → network-BJ4iPjQO.js} +1 -1
- package/dist/web/client/assets/parts-LZxl9Gvc.js +41 -0
- package/dist/web/client/assets/plus-CLGNN5QX.js +1 -0
- package/dist/web/client/assets/routes-BxIIyGho.js +85 -0
- package/dist/web/client/assets/skills-C7DzIwFJ.js +1 -0
- package/dist/web/client/assets/{square-terminal-hQZ6pexU.js → square-terminal-Dmm6cV-G.js} +1 -1
- package/dist/web/client/assets/style-CA2GAk9b.js +7 -0
- package/dist/web/client/assets/styles-C3CDSGAr.css +2 -0
- package/dist/web/client/assets/system-zQ0NnQML.js +1 -0
- package/dist/web/client/assets/teams-BEIJHObN.js +1 -0
- package/dist/web/client/assets/teams-DlOc7Ods.js +1 -0
- package/dist/web/client/assets/telegram-DKHq5DpE.js +1 -0
- package/dist/web/client/assets/tools-BKIpLaiC.js +1 -0
- package/dist/web/client/assets/use-resource-CQaIZbpy.js +1 -0
- package/dist/web/client/assets/users-round-BJrym3FG.js +1 -0
- package/dist/web/client/assets/welcome-CyS4Hrd-.js +1 -0
- package/dist/web/client/assets/wrench-GbE1M1RJ.js +1 -0
- package/dist/web/server/assets/{AddProviderDialog-Di5crZUB.js → AddProviderDialog-Nc5mc_P6.js} +7 -10
- package/dist/web/server/assets/{AgentTemplateParts-Cqy7kSzx.js → AgentTemplateParts-DZK_r3nQ.js} +3 -6
- package/dist/web/server/assets/{ConfigPage-oXM3wyOU.js → ConfigPage-CxzL-gTm.js} +1 -1
- package/dist/web/server/assets/{ConfirmDialog-DfaJ--A6.js → ConfirmDialog-4xeCXKHe.js} +1 -2
- package/dist/web/server/assets/{ConnectionsView-DZrLoNoW.js → ConnectionsView-B02FjNsM.js} +9 -9
- package/dist/web/server/assets/{ManagePage-0LKHEcT_.js → ManagePage-BfCWE8Lj.js} +1 -1
- package/dist/web/server/assets/ModelMenu-D-hTgYOO.js +278 -0
- package/dist/web/server/assets/{Rail-7JU6ly2O.js → Rail-3gbidhyv.js} +9 -12
- package/dist/web/server/assets/SkillsParts-D58l8voo.js +199 -0
- package/dist/web/server/assets/SpawnDialog-MJWwppgC.js +1648 -0
- package/dist/web/server/assets/{SpawnTeamModal-CCe6P82H.js → SpawnTeamModal-RjzAeX_Q.js} +3 -6
- package/dist/web/server/assets/{TeamForm-BzQmdhVi.js → TeamForm-DdOgIMiV.js} +2 -5
- package/dist/web/server/assets/{TeamThread-SyQpUvz5.js → TeamThread-D-PvO3fu.js} +9 -9
- package/dist/web/server/assets/{UnsavedChangesGuard-DrOvPV14.js → UnsavedChangesGuard-Bb5frygQ.js} +1 -1
- package/dist/web/server/assets/{_id-AcyGvFrE.js → _id-BPjVkcNb.js} +10 -14
- package/dist/web/server/assets/{_id-DXm9W55C.js → _id-BUfy-GwH.js} +2 -2
- package/dist/web/server/assets/{_id-DPGzfmjG.js → _id-C1_l6oSR.js} +9 -11
- package/dist/web/server/assets/{_id-BGTgqsWm.js → _id-CHvYQhWt.js} +2 -2
- package/dist/web/server/assets/{_id-DojvxRZn.js → _id-De3Bm0SG.js} +1 -1
- package/dist/web/server/assets/_tanstack-start-manifest_v-CR3jm1nY.js +256 -0
- package/dist/web/server/assets/{access-CKSW7MFH.js → access-CNfvQ3NB.js} +4 -6
- package/dist/web/server/assets/{access-BJe-NduL.js → access-Cm_izIIC.js} +2 -2
- package/dist/web/server/assets/{agent-actions-CUDMCG0F.js → agent-actions-COnfW5AU.js} +1 -1
- package/dist/web/server/assets/{agents-DUI4Yjtg.js → agents-C7UmTjfO.js} +2 -2
- package/dist/web/server/assets/{agents-6d9WxbYF.js → agents-CRtMfKqX.js} +1 -1
- package/dist/web/server/assets/{agents-DtLDoZ_u.js → agents-D0hfGIMK.js} +6 -8
- package/dist/web/server/assets/{agents-DKVGUwD1.js → agents-DQowl6Ly.js} +1 -1
- package/dist/web/server/assets/{agents-1sjSvp5p.js → agents-DzpqlIuJ.js} +2 -2
- package/dist/web/server/assets/{agents-DsHeRaLq.js → agents-NOkh61dV.js} +6 -10
- package/dist/web/server/assets/{attention-johfkM0_.js → attention-CRvxt22X.js} +40 -11
- package/dist/web/server/assets/{attention-B6sSDR_4.js → attention-CgWhXjX7.js} +2 -0
- package/dist/web/server/assets/{attention-DefKwvgm.js → attention-Cx9ZWPOO.js} +4 -2
- package/dist/web/server/assets/{config-DYAaaE9Z.js → config-B5CS8juO.js} +2 -2
- package/dist/web/server/assets/{config-Clz57LuN.js → config-D117117T.js} +24 -26
- package/dist/web/server/assets/{createSsrRpc-BijMHgqE.js → createSsrRpc-CwTd0zrB.js} +4 -57
- package/dist/web/server/assets/{login-VV10kZBl.js → login-IF0Gbsuq.js} +36 -2
- package/dist/web/server/assets/{login-JoIjlcmu.js → login-va4EtvA8.js} +34 -45
- package/dist/web/server/assets/{manage-Ppyi3Y5y.js → manage-Ce6cI4eW.js} +14 -4
- package/dist/web/server/assets/{mcp-DB38leWS.js → mcp-Bm9U6x7N.js} +2 -2
- package/dist/web/server/assets/{mcp-Ce6O8Qs2.js → mcp-C96PBxpb.js} +4 -6
- package/dist/web/server/assets/page-title-CwcbXMhx.js +95 -0
- package/dist/web/server/assets/{router-C97bwlXi.js → router-8Iq19GOz.js} +354 -196
- package/dist/web/server/assets/{routes-C4aGqXfr.js → routes-BLo-fWbQ.js} +2680 -1710
- package/dist/web/server/assets/{routes-DuOShl4q.js → routes-BXvYYFrN.js} +2 -2
- package/dist/web/server/assets/routes-Kwam6JmS.js +89 -0
- package/dist/web/server/assets/{skills-B7sg0QKS.js → skills-BqCnA-74.js} +2 -2
- package/dist/web/server/assets/skills-DSezIdDc.js +157 -0
- package/dist/web/server/assets/{style-BR7ufS6Z.js → style-C2hIPY_Y.js} +1 -1
- package/dist/web/server/assets/{system-DaP0ol67.js → system-CcLCmkIC.js} +2 -2
- package/dist/web/server/assets/{system-CNQpt3JB.js → system-E0VePdzO.js} +4 -4
- package/dist/web/server/assets/{teams-C3xwTz8-.js → teams-CQVV18D3.js} +6 -9
- package/dist/web/server/assets/{teams-BKHe67f3.js → teams-CdCmBJIj.js} +7 -9
- package/dist/web/server/assets/{teams-CuKE5iAK.js → teams-DScFp8mK.js} +2 -2
- package/dist/web/server/assets/{teams-4cEZ4_rw.js → teams-DxA-vnzY.js} +2 -2
- package/dist/web/server/assets/{telegram-BpmK-HHV.js → telegram-DJ8s_91Y.js} +7 -9
- package/dist/web/server/assets/{telegram-BnQADwnj.js → telegram-DR7xijeS.js} +2 -2
- package/dist/web/server/assets/{tools-BQeWn7Tj.js → tools-CsH9DI-4.js} +2 -2
- package/dist/web/server/assets/{tools-CURTfG2q.js → tools-V6kezUpL.js} +4 -6
- package/dist/web/server/assets/{use-resource-DVzK0toP.js → use-resource-CjcJwn7F.js} +1 -1
- package/dist/web/server/assets/{welcome-SNsE49JO.js → welcome-BpmcD-ia.js} +2 -2
- package/dist/web/server/assets/{welcome-OiZCAIHZ.js → welcome-Ya8TkL4v.js} +10 -9
- package/dist/web/server/server.js +8 -8
- package/dist/worker.js +17 -0
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +0 -1
- package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +0 -1
- package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +0 -1
- package/dist/web/client/assets/Dialog-BTDzv3J5.js +0 -1
- package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +0 -1
- package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +0 -1
- package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +0 -1
- package/dist/web/client/assets/TeamThread-D8xqE_gb.js +0 -1
- package/dist/web/client/assets/_id-DEQxwq2v.js +0 -1
- package/dist/web/client/assets/_id-DSRgpxEc.js +0 -1
- package/dist/web/client/assets/access-34_ShgHU.js +0 -1
- package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +0 -1
- package/dist/web/client/assets/agents-C87yBHaR.js +0 -1
- package/dist/web/client/assets/agents-DvCSl1Ro.js +0 -1
- package/dist/web/client/assets/api-CoLs57oO.js +0 -1
- package/dist/web/client/assets/arrow-right-BhTWtC9z.js +0 -1
- package/dist/web/client/assets/attention-CteEeRvX.js +0 -1
- package/dist/web/client/assets/chevron-right-BqOIX9UM.js +0 -1
- package/dist/web/client/assets/config-XJuQeEP4.js +0 -1
- package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +0 -1
- package/dist/web/client/assets/entities-xVoB-p2j.js +0 -1
- package/dist/web/client/assets/form-Bvr_f9lR.js +0 -1
- package/dist/web/client/assets/index-J_Uqj4md.js +0 -54
- package/dist/web/client/assets/login-076Bc601.js +0 -1
- package/dist/web/client/assets/manage-CsrV2hhK.js +0 -1
- package/dist/web/client/assets/mcp-8N0BqZ0G.js +0 -1
- package/dist/web/client/assets/model-facts-DoB6QD5y.js +0 -1
- package/dist/web/client/assets/parts-B0JBolvG.js +0 -1
- package/dist/web/client/assets/plus-DZ3KVo7E.js +0 -1
- package/dist/web/client/assets/routes-3HkZZOOe.js +0 -76
- package/dist/web/client/assets/skills-DiaqZRXT.js +0 -1
- package/dist/web/client/assets/style-BtcFIkOS.js +0 -7
- package/dist/web/client/assets/styles-C7Ztw15K.css +0 -2
- package/dist/web/client/assets/system-YWlJ8ogO.js +0 -1
- package/dist/web/client/assets/teams-DQwceMvk.js +0 -1
- package/dist/web/client/assets/teams-DTC3plIH.js +0 -1
- package/dist/web/client/assets/telegram-D4wINntt.js +0 -1
- package/dist/web/client/assets/tools-CZeQ9pDx.js +0 -1
- package/dist/web/client/assets/use-resource-BaTkTGvG.js +0 -1
- package/dist/web/client/assets/welcome-CnxP_RCk.js +0 -1
- package/dist/web/client/assets/wrench-BrwBswfo.js +0 -1
- package/dist/web/server/assets/Dialog-aup_yJv5.js +0 -85
- package/dist/web/server/assets/ModelMenu-BAZeARx6.js +0 -138
- package/dist/web/server/assets/SpawnDialog-CYkwzETs.js +0 -124
- package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +0 -285
- package/dist/web/server/assets/entities-Dn2xzKIw.js +0 -16
- package/dist/web/server/assets/form-BRQAsKKq.js +0 -319
- package/dist/web/server/assets/model-facts-mrfrWQne.js +0 -136
- package/dist/web/server/assets/parts-mabERIJZ.js +0 -380
- package/dist/web/server/assets/routes-IHMVKpDK.js +0 -16
- package/dist/web/server/assets/skills-hfTSwqsG.js +0 -353
- package/dist/web/server/assets/utils-C_uf36nf.js +0 -8
- package/dist/web/server/assets/workspace-DaitCM0t.js +0 -651
- /package/dist/web/server/assets/{telegram-CGol0CKX.js → telegram-CGol0CKX2.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-
|
|
2
|
+
import { I as PANEL_COOKIE, V as parsePanelCookie } from "./SpawnDialog-MJWwppgC.js";
|
|
3
|
+
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-3gbidhyv.js";
|
|
4
4
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
5
5
|
import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
|
|
6
6
|
//#region src/routes/index.tsx?tss-serverfn-split
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { H as parseWorkspaceSearch } from "./SpawnDialog-MJWwppgC.js";
|
|
3
|
+
import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
|
|
4
|
+
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
5
|
+
//#region src/lib/shortcuts.ts
|
|
6
|
+
/** Asks the open conversation's menu to start a new conversation, as its own item does. */
|
|
7
|
+
var NEW_CONVERSATION_EVENT = "bazilion:new-conversation";
|
|
8
|
+
var mod = (mac) => mac ? "⌘" : "Ctrl";
|
|
9
|
+
var alt = (mac) => mac ? "⌥" : "Alt";
|
|
10
|
+
var SHORTCUTS = [
|
|
11
|
+
{
|
|
12
|
+
keys: (mac) => [mod(mac), "K"],
|
|
13
|
+
does: "Jump to an Agent, a Team or a page, or run an action",
|
|
14
|
+
where: "everywhere"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
keys: () => ["?"],
|
|
18
|
+
does: "Show these shortcuts",
|
|
19
|
+
where: "everywhere"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
keys: () => ["/"],
|
|
23
|
+
does: "Write to the open Agent",
|
|
24
|
+
where: "workspace"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
keys: (mac) => [alt(mac), "↓"],
|
|
28
|
+
does: "Open the next Agent in the list",
|
|
29
|
+
where: "workspace"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
keys: (mac) => [alt(mac), "↑"],
|
|
33
|
+
does: "Open the previous Agent in the list",
|
|
34
|
+
where: "workspace"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
keys: (mac) => [mod(mac), "."],
|
|
38
|
+
does: "Show or hide the side panel",
|
|
39
|
+
where: "workspace"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
keys: () => ["Esc"],
|
|
43
|
+
does: "Close a dialog, a menu or a sheet",
|
|
44
|
+
where: "everywhere"
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
/**
|
|
48
|
+
* Whether keys typed now belong to a field or a control that reads the keyboard itself (a
|
|
49
|
+
* dropdown, a menu, a list), where a plain-key shortcut must not fire.
|
|
50
|
+
*/
|
|
51
|
+
function isTyping(target) {
|
|
52
|
+
if (typeof HTMLElement === "undefined" || !(target instanceof HTMLElement)) return false;
|
|
53
|
+
if (target.isContentEditable) return true;
|
|
54
|
+
if (target.closest("[role=\"combobox\"],[role=\"listbox\"],[role=\"menu\"],[role=\"option\"],[role=\"menuitem\"],[role=\"slider\"]")) return true;
|
|
55
|
+
const tag = target.tagName;
|
|
56
|
+
if (tag === "TEXTAREA" || tag === "SELECT") return true;
|
|
57
|
+
if (tag !== "INPUT") return false;
|
|
58
|
+
const type = target.type;
|
|
59
|
+
return ![
|
|
60
|
+
"checkbox",
|
|
61
|
+
"radio",
|
|
62
|
+
"button",
|
|
63
|
+
"submit",
|
|
64
|
+
"reset",
|
|
65
|
+
"range",
|
|
66
|
+
"color",
|
|
67
|
+
"file"
|
|
68
|
+
].includes(type);
|
|
69
|
+
}
|
|
70
|
+
/** The Agent next to `current` in the list's order, wrapping round; undefined when there is none. */
|
|
71
|
+
function neighbour(ordered, current, step) {
|
|
72
|
+
if (ordered.length === 0) return void 0;
|
|
73
|
+
const at = ordered.findIndex((item) => item.id === current);
|
|
74
|
+
if (at === -1) return step === 1 ? ordered[0] : ordered[ordered.length - 1];
|
|
75
|
+
return ordered[(at + step + ordered.length) % ordered.length];
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/routes/index.tsx
|
|
79
|
+
var $$splitComponentImporter = () => import("./routes-BLo-fWbQ.js");
|
|
80
|
+
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
81
|
+
var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
|
|
82
|
+
var Route = createFileRoute("/")({
|
|
83
|
+
validateSearch: parseWorkspaceSearch,
|
|
84
|
+
loaderDeps: ({ search }) => ({ agentId: search.agent }),
|
|
85
|
+
loader: ({ deps }) => fetchWorkspace({ data: { agentId: deps.agentId } }),
|
|
86
|
+
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { neighbour as a, isTyping as i, NEW_CONVERSATION_EVENT as n, SHORTCUTS as r, Route as t };
|
|
@@ -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-CwTd0zrB.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-DSezIdDc.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, _ as CardEmpty, g as CardBody, j as SearchField, k as Notice, lt as api, m as Banner, w as Chip, x as CardToolbar, y as CardList } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { r as ago } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
|
|
4
|
+
import { _ as skillState, b as skillsNeedingALook, g as skillSourceLabel, h as skillChosenBy, i as allSkillsLine, l as listed, s as count, u as matchesSkill, v as skillUseSentence } from "./manage-Ce6cI4eW.js";
|
|
5
|
+
import { t as Route } from "./skills-BqCnA-74.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BfCWE8Lj.js";
|
|
7
|
+
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-D58l8voo.js";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { useRouter } from "@tanstack/react-router";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Sparkles } from "lucide-react";
|
|
12
|
+
//#region src/routes/skills/index.tsx?tsr-split=component
|
|
13
|
+
function SkillsPage() {
|
|
14
|
+
const { skills, templates, now } = Route.useLoaderData();
|
|
15
|
+
const router = useRouter();
|
|
16
|
+
const [importing, setImporting] = useState(false);
|
|
17
|
+
const [imported, setImported] = useState(null);
|
|
18
|
+
const [removing, setRemoving] = useState(null);
|
|
19
|
+
const [query, setQuery] = useState("");
|
|
20
|
+
const shown = skills.filter((skill) => matchesSkill(skill, query));
|
|
21
|
+
const look = skillsNeedingALook(skills);
|
|
22
|
+
const importedFindings = imported ? Object.entries(imported.findings ?? {}).flatMap(([name, items]) => items.map((item) => ({
|
|
23
|
+
...item,
|
|
24
|
+
message: `${name}: ${item.message}`
|
|
25
|
+
}))) : [];
|
|
26
|
+
return /* @__PURE__ */ jsxs(ManagePage, {
|
|
27
|
+
title: "Skills",
|
|
28
|
+
description: "Prompt-only skills: a skill's SKILL.md is added to the system prompt of every Agent it is attached to. Templates attach skills at spawn; each Agent can change its own.",
|
|
29
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
30
|
+
variant: "primary",
|
|
31
|
+
onClick: () => setImporting(true),
|
|
32
|
+
children: "Import skills"
|
|
33
|
+
}),
|
|
34
|
+
children: [
|
|
35
|
+
look.length > 0 && /* @__PURE__ */ jsxs(Banner, {
|
|
36
|
+
tone: "warning",
|
|
37
|
+
lead: `${count(look.length, "skill")} ${look.length === 1 ? "needs" : "need"} a look.`,
|
|
38
|
+
children: [look.map((skill) => skill.parseError ? `${skill.name} cannot be read` : `${skill.name} has a risky finding`).join("; "), "."]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsxs(SetupCard, {
|
|
41
|
+
labelledBy: "manage-skills",
|
|
42
|
+
icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
|
|
43
|
+
title: "Installed skills",
|
|
44
|
+
description: `Each was scanned when it was imported. ${allSkillsLine(templates) ?? ""}`,
|
|
45
|
+
action: /* @__PURE__ */ jsx(Chip, {
|
|
46
|
+
tone: "neutral",
|
|
47
|
+
children: count(skills.length, "skill")
|
|
48
|
+
}),
|
|
49
|
+
children: [
|
|
50
|
+
imported && /* @__PURE__ */ jsxs(CardBody, {
|
|
51
|
+
className: "py-3",
|
|
52
|
+
children: [/* @__PURE__ */ jsx(Notice, {
|
|
53
|
+
tone: "success",
|
|
54
|
+
title: imported.imported.length > 0 ? `Imported ${count(imported.imported.length, "skill")}: ${imported.imported.join(", ")}.` : "Nothing new was imported.",
|
|
55
|
+
children: imported.skipped.length > 0 && `Already installed, so left as they were: ${listed(imported.skipped.map((entry) => entry.name))}. To replace them, import again with the box ticked.`
|
|
56
|
+
}), importedFindings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
|
|
57
|
+
findings: importedFindings,
|
|
58
|
+
title: "Imported despite these findings:"
|
|
59
|
+
})]
|
|
60
|
+
}),
|
|
61
|
+
skills.length > 0 && /* @__PURE__ */ jsx(CardToolbar, { children: /* @__PURE__ */ jsx(SearchField, {
|
|
62
|
+
label: "Find a skill",
|
|
63
|
+
placeholder: "Find by name or description",
|
|
64
|
+
value: query,
|
|
65
|
+
onChange: setQuery,
|
|
66
|
+
className: "min-w-0 flex-1 basis-60"
|
|
67
|
+
}) }),
|
|
68
|
+
skills.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
|
|
69
|
+
icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
|
|
70
|
+
title: "No skills installed",
|
|
71
|
+
action: /* @__PURE__ */ jsx(Button, {
|
|
72
|
+
variant: "primary",
|
|
73
|
+
onClick: () => setImporting(true),
|
|
74
|
+
children: "Import skills"
|
|
75
|
+
}),
|
|
76
|
+
children: "Import them from OpenClaw, a folder or a ZIP file."
|
|
77
|
+
}) : shown.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
|
|
78
|
+
title: `No skill matches “${query.trim()}”`,
|
|
79
|
+
children: "Try another word from its name or description."
|
|
80
|
+
}) : /* @__PURE__ */ jsx(CardList, { children: shown.map((skill) => {
|
|
81
|
+
const state = skillState(skill);
|
|
82
|
+
const findings = skill.scanFindings ?? [];
|
|
83
|
+
return /* @__PURE__ */ jsx(ListRow, {
|
|
84
|
+
inline: true,
|
|
85
|
+
title: /* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: "font-mono text-[0.92em]",
|
|
87
|
+
children: skill.name
|
|
88
|
+
}),
|
|
89
|
+
chip: state && /* @__PURE__ */ jsx(Chip, {
|
|
90
|
+
tone: state.tone,
|
|
91
|
+
children: state.label
|
|
92
|
+
}),
|
|
93
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
94
|
+
skill.description && /* @__PURE__ */ jsx("span", {
|
|
95
|
+
className: "basis-full text-foreground",
|
|
96
|
+
children: skill.description
|
|
97
|
+
}),
|
|
98
|
+
skillChosenBy(skill.name, templates) && /* @__PURE__ */ jsx("span", { children: skillChosenBy(skill.name, templates) }),
|
|
99
|
+
/* @__PURE__ */ jsxs("span", {
|
|
100
|
+
title: skill.source ?? void 0,
|
|
101
|
+
children: [skillSourceLabel(skill.source), skill.importedAt !== null && `, ${ago(skill.importedAt, now)}`]
|
|
102
|
+
})
|
|
103
|
+
] }),
|
|
104
|
+
actions: /* @__PURE__ */ jsx(RowMenu, {
|
|
105
|
+
label: `More for ${skill.name}`,
|
|
106
|
+
items: [{
|
|
107
|
+
label: "Remove…",
|
|
108
|
+
danger: true,
|
|
109
|
+
onSelect: () => setRemoving(skill)
|
|
110
|
+
}]
|
|
111
|
+
}),
|
|
112
|
+
children: skill.parseError ? /* @__PURE__ */ jsx(Notice, {
|
|
113
|
+
tone: "warning",
|
|
114
|
+
title: "Its SKILL.md cannot be read, so no Agent gets it.",
|
|
115
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
116
|
+
className: "break-words font-mono text-xs",
|
|
117
|
+
children: skill.parseError
|
|
118
|
+
})
|
|
119
|
+
}) : findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, { findings })
|
|
120
|
+
}, skill.name);
|
|
121
|
+
}) })
|
|
122
|
+
]
|
|
123
|
+
}),
|
|
124
|
+
importing && /* @__PURE__ */ jsx(ImportSkillsDialog, {
|
|
125
|
+
onClose: () => setImporting(false),
|
|
126
|
+
onImported: async (result) => {
|
|
127
|
+
setImporting(false);
|
|
128
|
+
setImported(result);
|
|
129
|
+
await router.invalidate({ sync: true });
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ jsx(ConfirmDialog, {
|
|
133
|
+
open: removing !== null,
|
|
134
|
+
onOpenChange: (open) => {
|
|
135
|
+
if (!open) setRemoving(null);
|
|
136
|
+
},
|
|
137
|
+
title: `Remove the ${removing?.name ?? ""} skill?`,
|
|
138
|
+
description: /* @__PURE__ */ jsxs("p", {
|
|
139
|
+
className: "m-0",
|
|
140
|
+
children: [
|
|
141
|
+
"This deletes its SKILL.md and every script and file in its folder. No Agent or template can use it until it is imported again.",
|
|
142
|
+
" ",
|
|
143
|
+
removing && skillUseSentence(removing.name, templates)
|
|
144
|
+
]
|
|
145
|
+
}),
|
|
146
|
+
confirmLabel: "Remove skill",
|
|
147
|
+
onConfirm: async () => {
|
|
148
|
+
if (!removing) return;
|
|
149
|
+
await api(`/api/skills/${encodeURIComponent(removing.name)}`, { method: "DELETE" });
|
|
150
|
+
await router.invalidate({ sync: true });
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { SkillsPage as component };
|
|
@@ -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-CwTd0zrB.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/system.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./system-
|
|
5
|
+
var $$splitComponentImporter = () => import("./system-E0VePdzO.js");
|
|
6
6
|
var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
|
|
7
7
|
var Route = createFileRoute("/config/system")({
|
|
8
8
|
loader: () => fetchSystem(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Route } from "./system-
|
|
3
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
1
|
+
import { E as Facts, M as SetupCard, T as Fact, b as CardRow, g as CardBody, k as Notice, w as Chip } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { t as Route } from "./system-CcLCmkIC.js";
|
|
3
|
+
import { t as ConfigPage } from "./ConfigPage-CxzL-gTm.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Archive, Download, HeartPulse, SquareTerminal } from "lucide-react";
|
|
6
6
|
//#region src/components/setup/SystemCards.tsx
|
|
@@ -76,7 +76,7 @@ function RuntimeCard({ shell, state }) {
|
|
|
76
76
|
title: "The command settings cannot be used.",
|
|
77
77
|
children: shell.error
|
|
78
78
|
}) }), /* @__PURE__ */ jsx(CardRow, {
|
|
79
|
-
className: "bg-muted/50 py-3 text-
|
|
79
|
+
className: "bg-muted/50 py-3 text-sm text-muted-foreground",
|
|
80
80
|
children: /* @__PURE__ */ jsxs("span", { children: [
|
|
81
81
|
"These are set on the Commands card under",
|
|
82
82
|
" ",
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as SpawnTeamModal } from "./SpawnTeamModal-CCe6P82H.js";
|
|
8
|
-
import { t as Route } from "./teams-4cEZ4_rw.js";
|
|
9
|
-
import { t as ManagePage } from "./ManagePage-0LKHEcT_.js";
|
|
1
|
+
import { A as RowMenu, G as DialogActions, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty, dt as errorMessage, f as TextField, k as Notice, lt as api, w as Chip, y as CardList } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
|
|
3
|
+
import { S as slugify, f as rosterCounts, p as rosterLine, s as count, x as slugProblem } from "./manage-Ce6cI4eW.js";
|
|
4
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-RjzAeX_Q.js";
|
|
5
|
+
import { t as Route } from "./teams-DxA-vnzY.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BfCWE8Lj.js";
|
|
10
7
|
import { useState } from "react";
|
|
11
8
|
import { useNavigate, useRouter } from "@tanstack/react-router";
|
|
12
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as Route } from "./teams-CuKE5iAK.js";
|
|
8
|
-
import { t as ManagePage } from "./ManagePage-0LKHEcT_.js";
|
|
1
|
+
import { A as RowMenu, K as Button, M as SetupCard, O as ListRow, W as Dialog, _ as CardEmpty, lt as api, q as AgentAvatar, w as Chip, y as CardList } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
|
|
3
|
+
import { C as teamRemoveBlocker, s as count } from "./manage-Ce6cI4eW.js";
|
|
4
|
+
import { t as TeamForm } from "./TeamForm-DdOgIMiV.js";
|
|
5
|
+
import { t as Route } from "./teams-DScFp8mK.js";
|
|
6
|
+
import { t as ManagePage } from "./ManagePage-BfCWE8Lj.js";
|
|
9
7
|
import { useState } from "react";
|
|
10
8
|
import { Link, useNavigate, useRouter } from "@tanstack/react-router";
|
|
11
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -25,7 +23,7 @@ function AvatarStack({ agents, max = 4 }) {
|
|
|
25
23
|
size: 28
|
|
26
24
|
})
|
|
27
25
|
}, agent.id)), more > 0 && /* @__PURE__ */ jsxs("span", {
|
|
28
|
-
className: "-ml-2 flex size-7 items-center justify-center rounded-full bg-muted text-
|
|
26
|
+
className: "-ml-2 flex size-7 items-center justify-center rounded-full bg-muted text-xs font-bold text-muted-foreground ring-2 ring-card",
|
|
29
27
|
children: ["+", more]
|
|
30
28
|
})]
|
|
31
29
|
});
|
|
@@ -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-CwTd0zrB.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-CdCmBJIj.js");
|
|
6
6
|
var fetchTeams = createServerFn({ method: "GET" }).handler(createSsrRpc("fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82"));
|
|
7
7
|
var Route = createFileRoute("/teams/")({
|
|
8
8
|
loader: () => fetchTeams(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.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-CQVV18D3.js");
|
|
6
6
|
var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad"));
|
|
7
7
|
var Route = createFileRoute("/templates/teams/")({
|
|
8
8
|
validateSearch: (search) => ({ new: search.new === 1 || search.new === "1" ? 1 : void 0 }),
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { r as useResource } from "./use-resource-
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as Route } from "./telegram-BnQADwnj.js";
|
|
8
|
-
import { t as ConfigPage } from "./ConfigPage-oXM3wyOU.js";
|
|
1
|
+
import { C as CheckList, E as Facts, K as Button, M as SetupCard, O as ListRow, P as Waiting, S as CheckItem, T as Fact, a as Problem, b as CardRow, dt as errorMessage, f as TextField, g as CardBody, k as Notice, lt as api, m as Banner, n as CheckboxRow, o as SaveBar, p as saveStatus, s as SecretField, u as SwitchRow, v as CardForm, w as Chip, y as CardList } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { r as useResource } from "./use-resource-CjcJwn7F.js";
|
|
3
|
+
import { r as ago } from "./ModelMenu-D-hTgYOO.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-4xeCXKHe.js";
|
|
5
|
+
import { t as Route } from "./telegram-DR7xijeS.js";
|
|
6
|
+
import { t as ConfigPage } from "./ConfigPage-CxzL-gTm.js";
|
|
9
7
|
import { useEffect, useState } from "react";
|
|
10
8
|
import { useRouter } from "@tanstack/react-router";
|
|
11
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -649,7 +647,7 @@ function PollingFacts({ polling, now }) {
|
|
|
649
647
|
children: ago(at, now)
|
|
650
648
|
});
|
|
651
649
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CardRow, {
|
|
652
|
-
className: "bg-muted/50 py-2 text-
|
|
650
|
+
className: "bg-muted/50 py-2 text-xs font-bold uppercase tracking-[0.08em] text-muted-foreground",
|
|
653
651
|
children: "The running bot"
|
|
654
652
|
}), /* @__PURE__ */ jsxs(Facts, {
|
|
655
653
|
className: "border-t-0",
|
|
@@ -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-CwTd0zrB.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/telegram.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./telegram-
|
|
5
|
+
var $$splitComponentImporter = () => import("./telegram-DJ8s_91Y.js");
|
|
6
6
|
var fetchTelegramConfig = createServerFn({ method: "GET" }).handler(createSsrRpc("9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92"));
|
|
7
7
|
var Route = createFileRoute("/config/telegram")({
|
|
8
8
|
loader: () => fetchTelegramConfig(),
|
|
@@ -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-CwTd0zrB.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/config/tools.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./tools-
|
|
5
|
+
var $$splitComponentImporter = () => import("./tools-V6kezUpL.js");
|
|
6
6
|
var fetchTools = createServerFn({ method: "GET" }).handler(createSsrRpc("946c6cbff3f55931c3fb28c971d20b18b4b8a9f25417a5d1afc0550d7afa393b"));
|
|
7
7
|
var Route = createFileRoute("/config/tools")({
|
|
8
8
|
loader: () => fetchTools(),
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as Route } from "./tools-BQeWn7Tj.js";
|
|
6
|
-
import { t as ConfigPage } from "./ConfigPage-oXM3wyOU.js";
|
|
1
|
+
import { M as SetupCard, a as Problem, ct as ApiError, dt as errorMessage, f as TextField, k as Notice, lt as api, o as SaveBar, p as saveStatus, r as ChoiceCards, s as SecretField, u as SwitchRow, v as CardForm, w as Chip } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { p as cn } from "./ModelMenu-D-hTgYOO.js";
|
|
3
|
+
import { t as Route } from "./tools-CsH9DI-4.js";
|
|
4
|
+
import { t as ConfigPage } from "./ConfigPage-CxzL-gTm.js";
|
|
7
5
|
import { useId, useState } from "react";
|
|
8
6
|
import { useRouter } from "@tanstack/react-router";
|
|
9
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { t as createSsrRpc } from "./createSsrRpc-CwTd0zrB.js";
|
|
3
3
|
import { createFileRoute, lazyRouteComponent, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/lib/auth.ts
|
|
5
5
|
var fetchAuthState = createServerFn({ method: "GET" }).handler(createSsrRpc("a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2"));
|
|
@@ -11,7 +11,7 @@ function isSetupOpen(path) {
|
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/routes/welcome.tsx
|
|
14
|
-
var $$splitComponentImporter = () => import("./welcome-
|
|
14
|
+
var $$splitComponentImporter = () => import("./welcome-Ya8TkL4v.js");
|
|
15
15
|
var fetchProviders = createServerFn({ method: "GET" }).handler(createSsrRpc("818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58"));
|
|
16
16
|
var Route = createFileRoute("/welcome")({
|
|
17
17
|
beforeLoad: async () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as Route } from "./welcome-
|
|
6
|
-
import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-
|
|
1
|
+
import { J as DEFAULT_PROFILE_ID, K as Button, lt as api } from "./SpawnDialog-MJWwppgC.js";
|
|
2
|
+
import { r as useResource } from "./use-resource-CjcJwn7F.js";
|
|
3
|
+
import { n as usePageTitle } from "./page-title-CwcbXMhx.js";
|
|
4
|
+
import { r as PageShell } from "./createSsrRpc-CwTd0zrB.js";
|
|
5
|
+
import { t as Route } from "./welcome-BpmcD-ia.js";
|
|
6
|
+
import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-Nc5mc_P6.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useNavigate } from "@tanstack/react-router";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -13,6 +13,7 @@ var CARD = "rounded-2xl border border-border bg-card shadow-baziu-sm";
|
|
|
13
13
|
/** First run: choose a provider, connect it, start chatting. One screen, no other page needed. */
|
|
14
14
|
function WelcomePage() {
|
|
15
15
|
const providers = Route.useLoaderData();
|
|
16
|
+
usePageTitle("Welcome");
|
|
16
17
|
const navigate = useNavigate();
|
|
17
18
|
const [step, setStep] = useState({ at: "choose" });
|
|
18
19
|
const [starting, setStarting] = useState(false);
|
|
@@ -45,7 +46,7 @@ function WelcomePage() {
|
|
|
45
46
|
children: "Connect a model to start"
|
|
46
47
|
}),
|
|
47
48
|
/* @__PURE__ */ jsx("p", {
|
|
48
|
-
className: "mt-3 max-w-2xl text-
|
|
49
|
+
className: "mt-3 max-w-2xl text-base leading-6 text-muted-foreground",
|
|
49
50
|
children: "Bazilion needs one provider to think with. More providers, web search, the browser and Telegram can wait until you want them."
|
|
50
51
|
})
|
|
51
52
|
] }),
|
|
@@ -65,7 +66,7 @@ function WelcomePage() {
|
|
|
65
66
|
className: "flex items-center gap-2.5",
|
|
66
67
|
children: [
|
|
67
68
|
/* @__PURE__ */ jsx("span", {
|
|
68
|
-
className: `flex size-7 items-center justify-center rounded-full border-[1.5px] text-
|
|
69
|
+
className: `flex size-7 items-center justify-center rounded-full border-[1.5px] text-sm font-bold ${done ? "border-success bg-success text-white" : now ? "border-primary bg-primary text-primary-foreground" : "border-fawn text-muted-foreground"}`,
|
|
69
70
|
children: done ? /* @__PURE__ */ jsx(Check, {
|
|
70
71
|
className: "size-3.5",
|
|
71
72
|
"aria-label": "Done"
|
|
@@ -284,7 +285,7 @@ function LocalServers({ providers, onBack, onUse }) {
|
|
|
284
285
|
/* @__PURE__ */ jsxs("div", {
|
|
285
286
|
className: "min-w-0 flex-1 basis-56",
|
|
286
287
|
children: [/* @__PURE__ */ jsx("div", {
|
|
287
|
-
className: "text-
|
|
288
|
+
className: "text-base font-semibold text-foreground",
|
|
288
289
|
children: provider.displayName
|
|
289
290
|
}), /* @__PURE__ */ jsx("div", {
|
|
290
291
|
className: `text-sm ${server?.found ? "text-success" : "text-muted-foreground"}`,
|
|
@@ -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-CR3jm1nY.js");
|
|
3562
3562
|
const startManifest = tsrStartManifest();
|
|
3563
3563
|
let routes = startManifest.routes;
|
|
3564
3564
|
routes[rootRouteId];
|
|
@@ -3586,7 +3586,7 @@ var manifest = {
|
|
|
3586
3586
|
},
|
|
3587
3587
|
"22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe": {
|
|
3588
3588
|
functionName: "fetchWorkspace_createServerFn_handler",
|
|
3589
|
-
importer: () => import("./assets/routes-
|
|
3589
|
+
importer: () => import("./assets/routes-BXvYYFrN.js")
|
|
3590
3590
|
},
|
|
3591
3591
|
"278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7": {
|
|
3592
3592
|
functionName: "fetchServers_createServerFn_handler",
|
|
@@ -3602,7 +3602,7 @@ var manifest = {
|
|
|
3602
3602
|
},
|
|
3603
3603
|
"7bc7f3b145d10e7a733fbe068ce367dda04ec2f1cdb53f0d6dcba3838eb2deeb": {
|
|
3604
3604
|
functionName: "fetchTemplates_createServerFn_handler",
|
|
3605
|
-
importer: () => import("./assets/agents-
|
|
3605
|
+
importer: () => import("./assets/agents-DQowl6Ly.js")
|
|
3606
3606
|
},
|
|
3607
3607
|
"818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58": {
|
|
3608
3608
|
functionName: "fetchProviders_createServerFn_handler",
|
|
@@ -3610,11 +3610,11 @@ var manifest = {
|
|
|
3610
3610
|
},
|
|
3611
3611
|
"883b401299422096ee31ee824f9a24b49d06bdcedce398789778c4c549a92f3a": {
|
|
3612
3612
|
functionName: "loadAttention_createServerFn_handler",
|
|
3613
|
-
importer: () => import("./assets/attention-
|
|
3613
|
+
importer: () => import("./assets/attention-CgWhXjX7.js")
|
|
3614
3614
|
},
|
|
3615
3615
|
"9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92": {
|
|
3616
3616
|
functionName: "fetchTelegramConfig_createServerFn_handler",
|
|
3617
|
-
importer: () => import("./assets/telegram-
|
|
3617
|
+
importer: () => import("./assets/telegram-CGol0CKX2.js")
|
|
3618
3618
|
},
|
|
3619
3619
|
"946c6cbff3f55931c3fb28c971d20b18b4b8a9f25417a5d1afc0550d7afa393b": {
|
|
3620
3620
|
functionName: "fetchTools_createServerFn_handler",
|
|
@@ -3622,7 +3622,7 @@ var manifest = {
|
|
|
3622
3622
|
},
|
|
3623
3623
|
"a3ce4c3b27c4c69828cf8a81d1f5312a9f8e2c82de6c7e6e2846eb5c2fc322ea": {
|
|
3624
3624
|
functionName: "fetchTemplate_createServerFn_handler",
|
|
3625
|
-
importer: () => import("./assets/_id-
|
|
3625
|
+
importer: () => import("./assets/_id-De3Bm0SG.js")
|
|
3626
3626
|
},
|
|
3627
3627
|
"a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2": {
|
|
3628
3628
|
functionName: "fetchAuthState_createServerFn_handler",
|
|
@@ -3642,7 +3642,7 @@ var manifest = {
|
|
|
3642
3642
|
},
|
|
3643
3643
|
"f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e": {
|
|
3644
3644
|
functionName: "fetchAgents_createServerFn_handler",
|
|
3645
|
-
importer: () => import("./assets/agents-
|
|
3645
|
+
importer: () => import("./assets/agents-CRtMfKqX.js")
|
|
3646
3646
|
},
|
|
3647
3647
|
"fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82": {
|
|
3648
3648
|
functionName: "fetchTeams_createServerFn_handler",
|
|
@@ -5524,7 +5524,7 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
5524
5524
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
5525
5525
|
async function loadEntries() {
|
|
5526
5526
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
5527
|
-
import("./assets/router-
|
|
5527
|
+
import("./assets/router-8Iq19GOz.js"),
|
|
5528
5528
|
import("./assets/start-DhW7sy23.js"),
|
|
5529
5529
|
import("./assets/empty-plugin-adapters-Cq4--YW-.js")
|
|
5530
5530
|
]);
|
package/dist/worker.js
CHANGED
|
@@ -35,6 +35,23 @@ var QUEUE_LIMITS = Object.freeze({
|
|
|
35
35
|
keepMs: 7 * 24 * 60 * 6e4
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
+
// ../daemon/src/core/attention.ts
|
|
39
|
+
var RECORDED_ATTENTION_KINDS = [
|
|
40
|
+
"lesson_proposal",
|
|
41
|
+
"review_failure",
|
|
42
|
+
"trigger_failure",
|
|
43
|
+
"agent_loop_break",
|
|
44
|
+
"queue_interrupted"
|
|
45
|
+
];
|
|
46
|
+
var WAITING_ATTENTION_KINDS = [
|
|
47
|
+
"agent_question",
|
|
48
|
+
"command_approval"
|
|
49
|
+
];
|
|
50
|
+
var ATTENTION_KINDS = [
|
|
51
|
+
...WAITING_ATTENTION_KINDS,
|
|
52
|
+
...RECORDED_ATTENTION_KINDS
|
|
53
|
+
];
|
|
54
|
+
|
|
38
55
|
// ../daemon/src/core/db/client.ts
|
|
39
56
|
import { backup, DatabaseSync } from "node:sqlite";
|
|
40
57
|
|