bazilion 0.51.0 → 0.53.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 +74 -28
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +547 -187
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-CO_uijWF.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-Dl35c-Ux.js +1 -0
- package/dist/web/client/assets/ConfigPage-DiQiJXP6.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-BVytx3kN.js +1 -0
- package/dist/web/client/assets/ConnectionsView-DDrBaiLg.js +1 -0
- package/dist/web/client/assets/Dialog-BTDzv3J5.js +1 -0
- package/dist/web/client/assets/ManagePage-xlePXXx5.js +1 -0
- package/dist/web/client/assets/SectionTabs-BMiRKFfb.js +1 -0
- package/dist/web/client/assets/Segmented-Co4n2C5X.js +1 -0
- package/dist/web/client/assets/SpawnDialog-ejwXnyxy.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-Cp-nAvIC.js +1 -0
- package/dist/web/client/assets/TeamForm-Cz9uDVvb.js +1 -0
- package/dist/web/client/assets/TeamThread-D8xqE_gb.js +1 -0
- package/dist/web/client/assets/UnsavedChangesGuard-DmT4nBQU.js +1 -0
- package/dist/web/client/assets/_id-DEQxwq2v.js +1 -0
- package/dist/web/client/assets/_id-DSRgpxEc.js +1 -0
- package/dist/web/client/assets/access-34_ShgHU.js +1 -0
- package/dist/web/client/assets/agent-actions--EO4yJ4Q.js +1 -0
- package/dist/web/client/assets/agents-C87yBHaR.js +1 -0
- package/dist/web/client/assets/agents-DvCSl1Ro.js +1 -0
- package/dist/web/client/assets/api-CoLs57oO.js +1 -0
- package/dist/web/client/assets/arrow-right-BhTWtC9z.js +1 -0
- package/dist/web/client/assets/attention-CteEeRvX.js +1 -0
- package/dist/web/client/assets/chevron-right-BqOIX9UM.js +1 -0
- package/dist/web/client/assets/config-XJuQeEP4.js +1 -0
- package/dist/web/client/assets/createLucideIcon-dN8ooBD1.js +1 -0
- package/dist/web/client/assets/download-Dj-1ltZb.js +1 -0
- package/dist/web/client/assets/file-text-DiP-LaEg.js +1 -0
- package/dist/web/client/assets/form-Bvr_f9lR.js +1 -0
- package/dist/web/client/assets/images-BKjyhYUc.js +1 -0
- package/dist/web/client/assets/index-J_Uqj4md.js +54 -0
- package/dist/web/client/assets/key-round-QpqZklz6.js +1 -0
- package/dist/web/client/assets/list-checks-BeyG5SVQ.js +1 -0
- package/dist/web/client/assets/login-076Bc601.js +1 -0
- package/dist/web/client/assets/manage-CsrV2hhK.js +1 -0
- package/dist/web/client/assets/mcp-8N0BqZ0G.js +1 -0
- package/dist/web/client/assets/message-square-DnpSOYv4.js +1 -0
- package/dist/web/client/assets/model-facts-DoB6QD5y.js +1 -0
- package/dist/web/client/assets/network-BC7rNaOC.js +1 -0
- package/dist/web/client/assets/parts-B0JBolvG.js +1 -0
- package/dist/web/client/assets/plus-DZ3KVo7E.js +1 -0
- package/dist/web/client/assets/routes-3HkZZOOe.js +76 -0
- package/dist/web/client/assets/skills-DiaqZRXT.js +1 -0
- package/dist/web/client/assets/square-terminal-hQZ6pexU.js +1 -0
- package/dist/web/client/assets/style-BtcFIkOS.js +7 -0
- package/dist/web/client/assets/styles-C7Ztw15K.css +2 -0
- package/dist/web/client/assets/system-YWlJ8ogO.js +1 -0
- package/dist/web/client/assets/teams-DQwceMvk.js +1 -0
- package/dist/web/client/assets/teams-DTC3plIH.js +1 -0
- package/dist/web/client/assets/telegram-D4wINntt.js +1 -0
- package/dist/web/client/assets/tools-CZeQ9pDx.js +1 -0
- package/dist/web/client/assets/use-resource-BaTkTGvG.js +1 -0
- package/dist/web/client/assets/welcome-CnxP_RCk.js +1 -0
- package/dist/web/client/assets/wrench-BrwBswfo.js +1 -0
- package/dist/web/server/assets/{AddProviderDialog-CR6TRYdZ.js → AddProviderDialog-Di5crZUB.js} +9 -205
- package/dist/web/server/assets/AgentTemplateParts-Cqy7kSzx.js +269 -0
- package/dist/web/server/assets/{ConfigPage-CIh3ohea.js → ConfigPage-oXM3wyOU.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-B79K2KEW.js → ConfirmDialog-DfaJ--A6.js} +2 -2
- package/dist/web/server/assets/{ConnectionsView-BIMYdp9C.js → ConnectionsView-DZrLoNoW.js} +7 -7
- package/dist/web/server/assets/{Dialog-CVqpXxuN.js → Dialog-aup_yJv5.js} +1 -1
- package/dist/web/server/assets/ManagePage-0LKHEcT_.js +29 -0
- package/dist/web/server/assets/ModelMenu-BAZeARx6.js +138 -0
- package/dist/web/server/assets/{Rail-Cg-efcpA.js → Rail-7JU6ly2O.js} +17 -107
- package/dist/web/server/assets/{SectionTabs-DrcgVeZd.js → SectionTabs-CWQ5orUW.js} +12 -5
- package/dist/web/server/assets/SpawnDialog-CYkwzETs.js +124 -0
- package/dist/web/server/assets/SpawnTeamModal-CCe6P82H.js +127 -0
- package/dist/web/server/assets/TeamForm-BzQmdhVi.js +141 -0
- package/dist/web/server/assets/{TeamThread-5CjVPcDr.js → TeamThread-SyQpUvz5.js} +3 -3
- package/dist/web/server/assets/{UnsavedChangesGuard-CyF2Z9p1.js → UnsavedChangesGuard-DrOvPV14.js} +1 -1
- package/dist/web/server/assets/_id-AcyGvFrE.js +400 -0
- package/dist/web/server/assets/{_id-8bsYEcGg.js → _id-BGTgqsWm.js} +8 -4
- package/dist/web/server/assets/{_id-TVruGcOd.js → _id-BKzOw78O.js} +11 -3
- package/dist/web/server/assets/{_id-0fEWiVZX.js → _id-DPGzfmjG.js} +258 -206
- package/dist/web/server/assets/_id-DXm9W55C.js +16 -0
- package/dist/web/server/assets/_id-DojvxRZn.js +39 -0
- package/dist/web/server/assets/_tanstack-start-manifest_v-D7RvKGRH.js +285 -0
- package/dist/web/server/assets/{tokens-C-oDTqnp.js → access-BJe-NduL.js} +5 -5
- package/dist/web/server/assets/access-CKSW7MFH.js +297 -0
- package/dist/web/server/assets/{tokens-CEdl8puR.js → access-WWspT0v4.js} +5 -4
- package/dist/web/server/assets/agent-actions-CUDMCG0F.js +20 -0
- package/dist/web/server/assets/agents-1sjSvp5p.js +12 -0
- package/dist/web/server/assets/{agents-BnWgFo6o.js → agents-6d9WxbYF.js} +9 -6
- package/dist/web/server/assets/agents-DKVGUwD1.js +31 -0
- package/dist/web/server/assets/agents-DUI4Yjtg.js +13 -0
- package/dist/web/server/assets/agents-DsHeRaLq.js +327 -0
- package/dist/web/server/assets/agents-DtLDoZ_u.js +136 -0
- package/dist/web/server/assets/{attention-Cr7puThv.js → attention-B6sSDR_4.js} +2 -1
- package/dist/web/server/assets/{attention-CHQEQiZl.js → attention-DefKwvgm.js} +2 -2
- package/dist/web/server/assets/attention-johfkM0_.js +203 -0
- package/dist/web/server/assets/{config-DOp28gcy.js → config-Clz57LuN.js} +186 -87
- package/dist/web/server/assets/{config-DzgkbBoD.js → config-DYAaaE9Z.js} +2 -2
- package/dist/web/server/assets/{createSsrRpc-CcLbajrF.js → createSsrRpc-BijMHgqE.js} +2 -46
- package/dist/web/server/assets/form-BRQAsKKq.js +319 -0
- package/dist/web/server/assets/manage-Ppyi3Y5y.js +230 -0
- package/dist/web/server/assets/mcp-Ce6O8Qs2.js +378 -0
- package/dist/web/server/assets/{mcp-D3OCoHtO.js → mcp-DB38leWS.js} +2 -2
- package/dist/web/server/assets/model-facts-mrfrWQne.js +136 -0
- package/dist/web/server/assets/parts-mabERIJZ.js +380 -0
- package/dist/web/server/assets/{router-Cs2Ak4II.js → router-C97bwlXi.js} +55 -50
- package/dist/web/server/assets/{routes-BSNOKE-C.js → routes-C4aGqXfr.js} +65 -17
- package/dist/web/server/assets/{routes-CO4l-GJ0.js → routes-DuOShl4q.js} +2 -2
- package/dist/web/server/assets/{routes-BVwqgZGI.js → routes-IHMVKpDK.js} +3 -3
- package/dist/web/server/assets/{skills-CggQJk6a.js → skills-B7sg0QKS.js} +2 -2
- package/dist/web/server/assets/{skills-h5aHa7Q8.js → skills-DWzlT_hC.js} +9 -1
- package/dist/web/server/assets/skills-hfTSwqsG.js +353 -0
- package/dist/web/server/assets/{style-GYDODk2F.js → style-BR7ufS6Z.js} +1 -1
- package/dist/web/server/assets/system-CNQpt3JB.js +145 -0
- package/dist/web/server/assets/{system-DtswhLW62.js → system-D3th6n2E.js} +4 -2
- package/dist/web/server/assets/{system-DsJfpBPl.js → system-DaP0ol67.js} +2 -2
- package/dist/web/server/assets/{teams-B6lBhvdL.js → teams-4cEZ4_rw.js} +4 -2
- package/dist/web/server/assets/{teams-BxnvFTyn.js → teams-70u1XQTr.js} +1 -3
- package/dist/web/server/assets/teams-BKHe67f3.js +176 -0
- package/dist/web/server/assets/{teams-YrmyutM4.js → teams-BopOP4x7.js} +8 -1
- package/dist/web/server/assets/teams-C3xwTz8-.js +219 -0
- package/dist/web/server/assets/{teams-Bp2tERZe.js → teams-CuKE5iAK.js} +2 -2
- package/dist/web/server/assets/{telegram-D2RZriz_.js → telegram-BnQADwnj.js} +5 -5
- package/dist/web/server/assets/telegram-BpmK-HHV.js +1059 -0
- package/dist/web/server/assets/{telegram-Gy7_9yih.js → telegram-CGol0CKX.js} +3 -3
- package/dist/web/server/assets/tools-BQeWn7Tj.js +12 -0
- package/dist/web/server/assets/tools-C-wwWjLI.js +12 -0
- package/dist/web/server/assets/tools-CURTfG2q.js +341 -0
- package/dist/web/server/assets/{use-resource-ChQozXVI.js → use-resource-DVzK0toP.js} +1 -1
- package/dist/web/server/assets/utils-C_uf36nf.js +8 -0
- package/dist/web/server/assets/{welcome-BLw1G6SS.js → welcome-OiZCAIHZ.js} +5 -5
- package/dist/web/server/assets/{welcome-ByAkvHSP.js → welcome-SNsE49JO.js} +2 -2
- package/dist/web/server/assets/{workspace-DeEYMPDX.js → workspace-DaitCM0t.js} +1 -8
- package/dist/web/server/server.js +30 -30
- package/dist/worker.js +202 -120
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AddProviderDialog-Diic36c_.js +0 -1
- package/dist/web/client/assets/ConfigPage-pupvtSCX.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-GFDcHI1L.js +0 -1
- package/dist/web/client/assets/ConnectionsView-y1CeY-6U.js +0 -1
- package/dist/web/client/assets/Dialog-bg86_x4v.js +0 -1
- package/dist/web/client/assets/FieldRow-B8eIni5r.js +0 -1
- package/dist/web/client/assets/ModelSelect-DvCLUmkW.js +0 -1
- package/dist/web/client/assets/SectionTabs-D4ezA6U4.js +0 -1
- package/dist/web/client/assets/Segmented-Dh77vmpp.js +0 -1
- package/dist/web/client/assets/SkillFindings-BzLO1lNA.js +0 -1
- package/dist/web/client/assets/SkillsPicker-hI3YXvib.js +0 -1
- package/dist/web/client/assets/SpawnDialog-YJX6UMBC.js +0 -1
- package/dist/web/client/assets/Tabs-f6bHvCGn.js +0 -1
- package/dist/web/client/assets/TeamForm-kda1HYZG.js +0 -1
- package/dist/web/client/assets/TeamThread-DFvbakHo.js +0 -1
- package/dist/web/client/assets/UnsavedChangesGuard-DBJikVgc.js +0 -1
- package/dist/web/client/assets/_id-BjNtLwak.js +0 -1
- package/dist/web/client/assets/_id-BklaQf3z.js +0 -1
- package/dist/web/client/assets/agents-D9cUF2d9.js +0 -1
- package/dist/web/client/assets/agents-wuBlzx4e.js +0 -1
- package/dist/web/client/assets/api-HC_YzjBy.js +0 -1
- package/dist/web/client/assets/arrow-right-Gm_FDWJ_.js +0 -1
- package/dist/web/client/assets/attention-8ZkSLl2e.js +0 -1
- package/dist/web/client/assets/check-BjgKoGvU.js +0 -1
- package/dist/web/client/assets/config-Con_BbSh.js +0 -1
- package/dist/web/client/assets/createLucideIcon-C6gOo8sD.js +0 -1
- package/dist/web/client/assets/index-Br9qkGM-.js +0 -54
- package/dist/web/client/assets/link-Cbztlp_R.js +0 -1
- package/dist/web/client/assets/login-llnOKSJc.js +0 -1
- package/dist/web/client/assets/mcp-zIUguMSI.js +0 -1
- package/dist/web/client/assets/plus-CWrKMtvA.js +0 -1
- package/dist/web/client/assets/routes-BY5uqJ2n.js +0 -76
- package/dist/web/client/assets/save-f9O-CQia.js +0 -1
- package/dist/web/client/assets/services-esLrcTwe.js +0 -1
- package/dist/web/client/assets/skills-DzYXksM0.js +0 -1
- package/dist/web/client/assets/style-Cdzqt_TJ.js +0 -7
- package/dist/web/client/assets/styles-BRSS6yrm.css +0 -2
- package/dist/web/client/assets/system-CsI66nyZ.js +0 -1
- package/dist/web/client/assets/teams-CHE_zpxS.js +0 -1
- package/dist/web/client/assets/teams-dxG9OESG.js +0 -1
- package/dist/web/client/assets/telegram-C3dGndJV.js +0 -1
- package/dist/web/client/assets/tokens-CNNH-Wr9.js +0 -1
- package/dist/web/client/assets/use-resource-BjnxgGvh.js +0 -1
- package/dist/web/client/assets/welcome-C8EOtc8P.js +0 -1
- package/dist/web/server/assets/FieldRow-CHVhX2rS.js +0 -173
- package/dist/web/server/assets/ModelSelect-DrZrdndo.js +0 -43
- package/dist/web/server/assets/SkillFindings-DSDiL6hn.js +0 -46
- package/dist/web/server/assets/SkillsPicker-DlqEfRWh.js +0 -67
- package/dist/web/server/assets/SpawnDialog-BUUlLxE9.js +0 -129
- package/dist/web/server/assets/Tabs-BhF41MfQ.js +0 -20
- package/dist/web/server/assets/TeamForm-CvQAs2FA.js +0 -96
- package/dist/web/server/assets/_id-BvAaRSUW.js +0 -18
- package/dist/web/server/assets/_id-Dg6M_qfr.js +0 -383
- package/dist/web/server/assets/_id-Dji7xr9C.js +0 -28
- package/dist/web/server/assets/_tanstack-start-manifest_v-sxiIH4M7.js +0 -214
- package/dist/web/server/assets/agents-BDA5yYZ2.js +0 -130
- package/dist/web/server/assets/agents-BTDxmp-F.js +0 -12
- package/dist/web/server/assets/agents-DM7guWF2.js +0 -14
- package/dist/web/server/assets/agents-DktqUffG.js +0 -327
- package/dist/web/server/assets/agents-xgZ9rsac.js +0 -27
- package/dist/web/server/assets/attention-De3-ehuf.js +0 -216
- package/dist/web/server/assets/mcp-CO_tycXU.js +0 -250
- package/dist/web/server/assets/services-DZLxUSG8.js +0 -13
- package/dist/web/server/assets/services-DsHRLL8q.js +0 -12
- package/dist/web/server/assets/services-DsvpaF3L.js +0 -74
- package/dist/web/server/assets/skills-DKYV7PTk.js +0 -275
- package/dist/web/server/assets/system-CZ2qzBz3.js +0 -138
- package/dist/web/server/assets/teams-B6PzNcoy.js +0 -88
- package/dist/web/server/assets/teams-C-8iz-uV.js +0 -108
- package/dist/web/server/assets/telegram-CXrP3hMp.js +0 -984
- package/dist/web/server/assets/tokens-DSLwQ1Pw.js +0 -232
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as api, S as ApiError, T as errorMessage, _ as useActivityOptional, a as isAgentSection, b as parseArgs, d as AgentAvatar, f as ActivityProvider, g as useActivity, h as teamSummary, i as PANEL_TABS, l as writePanelCookie, m as shortTime, o as isTeamSection, r as PANEL_LABELS, u as Button, v as describeStep, w as apiFetch, x as summarizeSteps, y as lineChange } from "./workspace-DaitCM0t.js";
|
|
2
2
|
import { i as REASONING_LEVELS } from "./entities-Dn2xzKIw.js";
|
|
3
|
-
import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
3
|
+
import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-DVzK0toP.js";
|
|
4
|
+
import { t as cn } from "./utils-C_uf36nf.js";
|
|
5
|
+
import { n as DialogActions, t as Dialog$1 } from "./Dialog-aup_yJv5.js";
|
|
6
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
|
|
6
7
|
import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
|
|
7
|
-
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-
|
|
8
|
-
import { a as SlimRail, c as
|
|
9
|
-
import { a as trafficByPair, i as pairKey, n as useTeamMessages, o as FocusFrame, r as messageText, t as TeamThread } from "./TeamThread-
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
8
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-DrOvPV14.js";
|
|
9
|
+
import { a as SlimRail, c as useWorkspaceOptional, i as STATE_DOT, n as RenameAgentDialog, o as WorkspaceProvider, s as useWorkspace, t as Rail } from "./Rail-7JU6ly2O.js";
|
|
10
|
+
import { a as trafficByPair, i as pairKey, n as useTeamMessages, o as FocusFrame, r as messageText, t as TeamThread } from "./TeamThread-SyQpUvz5.js";
|
|
11
|
+
import { i as unarchiveAgent, n as deleteAgent, t as archiveAgent } from "./agent-actions-CUDMCG0F.js";
|
|
12
|
+
import { n as ModelMenu, t as MODELS_PATH } from "./ModelMenu-BAZeARx6.js";
|
|
13
|
+
import { t as SpawnDialog } from "./SpawnDialog-CYkwzETs.js";
|
|
14
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-CCe6P82H.js";
|
|
15
|
+
import { n as ItemList, o as SectionCard, r as ItemRow, s as StatusBadge } from "./createSsrRpc-BijMHgqE.js";
|
|
16
|
+
import { t as Route } from "./routes-IHMVKpDK.js";
|
|
15
17
|
import { Fragment, Suspense, createContext, lazy, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
16
18
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
17
19
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -963,7 +965,7 @@ function useTeamCounts(teamId) {
|
|
|
963
965
|
/** The model and reasoning level of one Agent, over its template's defaults. */
|
|
964
966
|
function AgentModel({ agent }) {
|
|
965
967
|
const router = useRouter();
|
|
966
|
-
const models = useResource((signal) => api(
|
|
968
|
+
const models = useResource((signal) => api(MODELS_PATH, { signal }), []);
|
|
967
969
|
const savedModel = agent.agent.modelOverride ?? "";
|
|
968
970
|
const [model, setModel] = useState(savedModel);
|
|
969
971
|
const [reasoning, setReasoning] = useState(agent.reasoningLevel);
|
|
@@ -996,15 +998,18 @@ function AgentModel({ agent }) {
|
|
|
996
998
|
onSubmit: (event) => void save(event),
|
|
997
999
|
className: "[&_label]:mt-0",
|
|
998
1000
|
children: [
|
|
999
|
-
/* @__PURE__ */ jsx(
|
|
1001
|
+
/* @__PURE__ */ jsx(ModelMenu, {
|
|
1000
1002
|
label: "Model",
|
|
1001
1003
|
value: model,
|
|
1002
1004
|
onChange: (value) => {
|
|
1003
1005
|
setModel(value);
|
|
1004
1006
|
setSaved(false);
|
|
1005
1007
|
},
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
+
models: models.data?.chat ?? [],
|
|
1009
|
+
inherited: {
|
|
1010
|
+
label: "The template’s model",
|
|
1011
|
+
model: agent.profile.defaultModel
|
|
1012
|
+
}
|
|
1008
1013
|
}),
|
|
1009
1014
|
/* @__PURE__ */ jsxs("label", { children: ["Reasoning", /* @__PURE__ */ jsx("select", {
|
|
1010
1015
|
value: reasoning,
|
|
@@ -5567,6 +5572,49 @@ function AgentBrowserCard({ agentId }) {
|
|
|
5567
5572
|
});
|
|
5568
5573
|
}
|
|
5569
5574
|
//#endregion
|
|
5575
|
+
//#region src/components/SkillFindings.tsx
|
|
5576
|
+
/** A skill's static-scan result: a "Clean" badge, or a finding count that expands to the list. */
|
|
5577
|
+
function FindingSummary({ findings }) {
|
|
5578
|
+
if (findings.length === 0) return /* @__PURE__ */ jsx(StatusBadge, {
|
|
5579
|
+
variant: "success",
|
|
5580
|
+
children: "Clean"
|
|
5581
|
+
});
|
|
5582
|
+
return /* @__PURE__ */ jsxs("details", {
|
|
5583
|
+
className: "text-xs",
|
|
5584
|
+
children: [/* @__PURE__ */ jsx("summary", {
|
|
5585
|
+
className: "cursor-pointer list-none",
|
|
5586
|
+
children: /* @__PURE__ */ jsxs(StatusBadge, {
|
|
5587
|
+
variant: findings.some((finding) => finding.severity === "danger") ? "danger" : "warning",
|
|
5588
|
+
children: [
|
|
5589
|
+
findings.length,
|
|
5590
|
+
" finding",
|
|
5591
|
+
findings.length === 1 ? "" : "s"
|
|
5592
|
+
]
|
|
5593
|
+
})
|
|
5594
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
5595
|
+
className: "mt-2 min-w-64",
|
|
5596
|
+
children: /* @__PURE__ */ jsx(FindingList, { findings })
|
|
5597
|
+
})]
|
|
5598
|
+
});
|
|
5599
|
+
}
|
|
5600
|
+
function FindingList({ findings }) {
|
|
5601
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
5602
|
+
className: "m-0 space-y-1.5 pl-0",
|
|
5603
|
+
children: findings.map((finding, index) => /* @__PURE__ */ jsxs("li", {
|
|
5604
|
+
className: "flex items-start gap-2",
|
|
5605
|
+
children: [/* @__PURE__ */ jsx(StatusBadge, {
|
|
5606
|
+
variant: finding.severity === "danger" ? "danger" : "warning",
|
|
5607
|
+
children: finding.severity === "danger" ? "Danger" : "Warning"
|
|
5608
|
+
}), /* @__PURE__ */ jsxs("span", { children: [
|
|
5609
|
+
/* @__PURE__ */ jsx("code", { children: finding.code }),
|
|
5610
|
+
finding.line ? `, line ${finding.line}` : "",
|
|
5611
|
+
" — ",
|
|
5612
|
+
finding.message
|
|
5613
|
+
] })]
|
|
5614
|
+
}, index))
|
|
5615
|
+
});
|
|
5616
|
+
}
|
|
5617
|
+
//#endregion
|
|
5570
5618
|
//#region src/components/AgentSkills.tsx
|
|
5571
5619
|
/** Attach and detach installed skills for one Agent; scan findings need confirmation. */
|
|
5572
5620
|
function AgentSkills({ agentId, attached, all }) {
|
|
@@ -7478,7 +7526,7 @@ function TeamHome({ team }) {
|
|
|
7478
7526
|
//#endregion
|
|
7479
7527
|
//#region src/routes/index.tsx?tsr-split=component
|
|
7480
7528
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
7481
|
-
var ConnectionsView = lazy(() => import("./ConnectionsView-
|
|
7529
|
+
var ConnectionsView = lazy(() => import("./ConnectionsView-DZrLoNoW.js").then((module) => ({ default: module.ConnectionsView })));
|
|
7482
7530
|
function WorkspacePage() {
|
|
7483
7531
|
const data = Route.useLoaderData();
|
|
7484
7532
|
const search = Route.useSearch();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as getCookie, n as createServerFn } from "../server.js";
|
|
2
|
-
import { n as PANEL_COOKIE, s as parsePanelCookie } from "./workspace-
|
|
3
|
-
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-
|
|
2
|
+
import { n as PANEL_COOKIE, s as parsePanelCookie } from "./workspace-DaitCM0t.js";
|
|
3
|
+
import { r as SIDEBAR_OPEN_GROUPS_COOKIE } from "./Rail-7JU6ly2O.js";
|
|
4
4
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
5
5
|
import { n as daemonClient, r as ApiClientError } from "./daemon-client-B_ZRIIrT.js";
|
|
6
6
|
//#region src/routes/index.tsx?tss-serverfn-split
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
|
-
import { c as parseWorkspaceSearch } from "./workspace-
|
|
3
|
-
import { t as createSsrRpc } from "./createSsrRpc-
|
|
2
|
+
import { c as parseWorkspaceSearch } from "./workspace-DaitCM0t.js";
|
|
3
|
+
import { t as createSsrRpc } from "./createSsrRpc-BijMHgqE.js";
|
|
4
4
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
5
5
|
//#region src/routes/index.tsx
|
|
6
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
6
|
+
var $$splitComponentImporter = () => import("./routes-C4aGqXfr.js");
|
|
7
7
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
8
8
|
var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
|
|
9
9
|
var Route = createFileRoute("/")({
|
|
@@ -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-BijMHgqE.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-hfTSwqsG.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|
|
@@ -7,6 +7,14 @@ var fetchSkills_createServerFn_handler = createServerRpc({
|
|
|
7
7
|
name: "fetchSkills",
|
|
8
8
|
filename: "src/routes/skills/index.tsx"
|
|
9
9
|
}, (opts) => fetchSkills.__executeServer(opts));
|
|
10
|
-
var fetchSkills = createServerFn({ method: "GET" }).handler(fetchSkills_createServerFn_handler, () =>
|
|
10
|
+
var fetchSkills = createServerFn({ method: "GET" }).handler(fetchSkills_createServerFn_handler, async () => {
|
|
11
|
+
const client = daemonClient();
|
|
12
|
+
const [skills, templates] = await Promise.all([client.get("/api/skills"), client.get("/api/profiles")]);
|
|
13
|
+
return {
|
|
14
|
+
skills,
|
|
15
|
+
templates,
|
|
16
|
+
now: Date.now()
|
|
17
|
+
};
|
|
18
|
+
});
|
|
11
19
|
//#endregion
|
|
12
20
|
export { fetchSkills_createServerFn_handler };
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { C as api, S as ApiError, T as errorMessage, u as Button } from "./workspace-DaitCM0t.js";
|
|
2
|
+
import { t as cn } from "./utils-C_uf36nf.js";
|
|
3
|
+
import { n as DialogActions, t as Dialog } from "./Dialog-aup_yJv5.js";
|
|
4
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-DfaJ--A6.js";
|
|
5
|
+
import { t as ago } from "./model-facts-mrfrWQne.js";
|
|
6
|
+
import { _ as RowMenu, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, v as SearchField, y as SetupCard } from "./parts-mabERIJZ.js";
|
|
7
|
+
import { l as TextField, n as ChoiceCards, t as CheckboxRow } from "./form-BRQAsKKq.js";
|
|
8
|
+
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-Ppyi3Y5y.js";
|
|
9
|
+
import { t as Route } from "./skills-B7sg0QKS.js";
|
|
10
|
+
import { t as ManagePage } from "./ManagePage-0LKHEcT_.js";
|
|
11
|
+
import { useState } from "react";
|
|
12
|
+
import { useRouter } from "@tanstack/react-router";
|
|
13
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { Sparkles } from "lucide-react";
|
|
15
|
+
//#region src/components/manage/SkillsParts.tsx
|
|
16
|
+
/** A scan's findings, one to a line: what it found, and where. */
|
|
17
|
+
function FindingLines({ findings }) {
|
|
18
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
19
|
+
className: "m-0 mt-1 grid list-none gap-1 p-0",
|
|
20
|
+
children: findings.map((finding, index) => /* @__PURE__ */ jsxs("li", {
|
|
21
|
+
className: "min-w-0",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("span", {
|
|
24
|
+
className: finding.severity === "danger" ? "font-semibold" : "",
|
|
25
|
+
children: [finding.severity === "danger" ? "Risky" : "Check", ":"]
|
|
26
|
+
}),
|
|
27
|
+
" ",
|
|
28
|
+
finding.message,
|
|
29
|
+
" ",
|
|
30
|
+
/* @__PURE__ */ jsxs("span", {
|
|
31
|
+
className: "text-muted-foreground",
|
|
32
|
+
children: [
|
|
33
|
+
"(",
|
|
34
|
+
finding.code,
|
|
35
|
+
finding.line ? `, line ${finding.line}` : "",
|
|
36
|
+
")"
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
}, index))
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/** What the scan found in one skill, or in what was imported. */
|
|
44
|
+
function FindingsNotice({ findings, title }) {
|
|
45
|
+
const danger = findings.some((finding) => finding.severity === "danger");
|
|
46
|
+
return /* @__PURE__ */ jsx(Notice, {
|
|
47
|
+
tone: danger ? "warning" : "neutral",
|
|
48
|
+
title: title ?? (danger ? "Read it before an Agent uses it: its text goes into the system prompt." : "Worth a look."),
|
|
49
|
+
children: /* @__PURE__ */ jsx(FindingLines, { findings })
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
var SOURCES = [
|
|
53
|
+
{
|
|
54
|
+
value: "openclaw",
|
|
55
|
+
label: "OpenClaw",
|
|
56
|
+
hint: "Every skill in ~/.openclaw/skills on the computer Bazilion runs on."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: "path",
|
|
60
|
+
label: "A folder",
|
|
61
|
+
hint: "One skill folder with a SKILL.md, or a folder of them, on that computer."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
value: "zip",
|
|
65
|
+
label: "A ZIP file",
|
|
66
|
+
hint: "Uploaded from here: one folder per skill at its top level."
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
/** Import skills from OpenClaw, a folder or a ZIP file; the scan's findings are shown here. */
|
|
70
|
+
function ImportSkillsDialog({ onClose, onImported }) {
|
|
71
|
+
const [source, setSource] = useState("openclaw");
|
|
72
|
+
const [path, setPath] = useState("");
|
|
73
|
+
const [zip, setZip] = useState(null);
|
|
74
|
+
const [dragOver, setDragOver] = useState(false);
|
|
75
|
+
const [force, setForce] = useState(false);
|
|
76
|
+
const [busy, setBusy] = useState(false);
|
|
77
|
+
const [error, setError] = useState(null);
|
|
78
|
+
const [findings, setFindings] = useState([]);
|
|
79
|
+
const pathProblem = source === "path" && path.trim() && !path.trim().startsWith("/") ? "The full path of the folder, starting with /." : void 0;
|
|
80
|
+
const ready = source === "openclaw" || source === "path" && path.trim() !== "" && !pathProblem || source === "zip" && zip !== null;
|
|
81
|
+
function chooseZip(file) {
|
|
82
|
+
if (!file) return;
|
|
83
|
+
setError(null);
|
|
84
|
+
if (!/\.zip$/i.test(file.name)) {
|
|
85
|
+
setError("Only ZIP archives can be imported.");
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
setZip(file);
|
|
89
|
+
}
|
|
90
|
+
async function submit(event) {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
if (!ready || busy) return;
|
|
93
|
+
setBusy(true);
|
|
94
|
+
setError(null);
|
|
95
|
+
setFindings([]);
|
|
96
|
+
let body;
|
|
97
|
+
if (source === "zip" && zip) {
|
|
98
|
+
const form = new FormData();
|
|
99
|
+
form.set("file", zip);
|
|
100
|
+
if (force) form.set("force", "true");
|
|
101
|
+
body = form;
|
|
102
|
+
} else body = {
|
|
103
|
+
source: source === "openclaw" ? "openclaw" : path.trim(),
|
|
104
|
+
force
|
|
105
|
+
};
|
|
106
|
+
try {
|
|
107
|
+
await onImported(await api("/api/skills/import", { body }));
|
|
108
|
+
} catch (cause) {
|
|
109
|
+
if (cause instanceof ApiError) setFindings(cause.body?.findings ?? []);
|
|
110
|
+
setError(errorMessage(cause));
|
|
111
|
+
setBusy(false);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return /* @__PURE__ */ jsx(Dialog, {
|
|
115
|
+
title: "Import skills",
|
|
116
|
+
description: "A skill's SKILL.md is added to the system prompt of every Agent it is attached to. Each one is scanned before it is installed.",
|
|
117
|
+
busy,
|
|
118
|
+
onClose,
|
|
119
|
+
className: "max-w-2xl",
|
|
120
|
+
children: /* @__PURE__ */ jsxs("form", {
|
|
121
|
+
onSubmit: (event) => void submit(event),
|
|
122
|
+
className: "grid gap-4",
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsx(ChoiceCards, {
|
|
125
|
+
legend: "From",
|
|
126
|
+
name: "skills-source",
|
|
127
|
+
value: source,
|
|
128
|
+
options: SOURCES,
|
|
129
|
+
columns: 3,
|
|
130
|
+
disabled: busy,
|
|
131
|
+
onChange: (next) => {
|
|
132
|
+
setSource(next);
|
|
133
|
+
setError(null);
|
|
134
|
+
setFindings([]);
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
source === "path" && /* @__PURE__ */ jsx(TextField, {
|
|
138
|
+
label: "Folder",
|
|
139
|
+
value: path,
|
|
140
|
+
disabled: busy,
|
|
141
|
+
placeholder: "/home/you/my-skills",
|
|
142
|
+
mono: true,
|
|
143
|
+
className: "max-w-none",
|
|
144
|
+
problem: pathProblem,
|
|
145
|
+
onChange: setPath
|
|
146
|
+
}),
|
|
147
|
+
source === "zip" && /* @__PURE__ */ jsxs("label", {
|
|
148
|
+
onDragOver: (event) => {
|
|
149
|
+
event.preventDefault();
|
|
150
|
+
setDragOver(true);
|
|
151
|
+
},
|
|
152
|
+
onDragLeave: () => setDragOver(false),
|
|
153
|
+
onDrop: (event) => {
|
|
154
|
+
event.preventDefault();
|
|
155
|
+
setDragOver(false);
|
|
156
|
+
chooseZip(event.dataTransfer.files[0]);
|
|
157
|
+
},
|
|
158
|
+
className: cn("relative m-0 block cursor-pointer rounded-xl border-2 border-dashed px-6 py-7 text-center text-sm transition-colors", dragOver ? "border-primary bg-accent text-accent-foreground" : zip ? "border-solid border-primary/40 bg-card text-foreground" : "border-border bg-muted/30 text-muted-foreground hover:border-primary hover:bg-accent/60"),
|
|
159
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
160
|
+
type: "file",
|
|
161
|
+
accept: ".zip,application/zip",
|
|
162
|
+
disabled: busy,
|
|
163
|
+
onChange: (event) => chooseZip(event.target.files?.[0]),
|
|
164
|
+
className: "absolute h-px w-px overflow-hidden opacity-0"
|
|
165
|
+
}), zip ? /* @__PURE__ */ jsx("span", {
|
|
166
|
+
className: "block break-all font-mono text-foreground",
|
|
167
|
+
children: zip.name
|
|
168
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
169
|
+
className: "block font-semibold text-foreground",
|
|
170
|
+
children: "Choose a ZIP file"
|
|
171
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
172
|
+
className: "text-xs",
|
|
173
|
+
children: "or drop it here"
|
|
174
|
+
})] })]
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ jsx(CheckboxRow, {
|
|
177
|
+
checked: force,
|
|
178
|
+
disabled: busy,
|
|
179
|
+
label: "Replace skills that are already installed, and import despite scan findings",
|
|
180
|
+
onChange: setForce
|
|
181
|
+
}),
|
|
182
|
+
findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
|
|
183
|
+
findings,
|
|
184
|
+
title: `The scan found ${count(findings.length, "thing")} to check. Read them; to import anyway, tick the box above.`
|
|
185
|
+
}),
|
|
186
|
+
error && findings.length === 0 && /* @__PURE__ */ jsx(Notice, {
|
|
187
|
+
tone: "warning",
|
|
188
|
+
role: "alert",
|
|
189
|
+
title: "Nothing was imported.",
|
|
190
|
+
children: error
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ jsxs(DialogActions, { children: [/* @__PURE__ */ jsx(Button, {
|
|
193
|
+
variant: "ghost",
|
|
194
|
+
disabled: busy,
|
|
195
|
+
onClick: onClose,
|
|
196
|
+
children: "Cancel"
|
|
197
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
198
|
+
variant: "primary",
|
|
199
|
+
type: "submit",
|
|
200
|
+
disabled: busy || !ready,
|
|
201
|
+
children: busy ? "Importing…" : source === "openclaw" ? "Import from OpenClaw" : source === "zip" ? "Upload and import" : "Import"
|
|
202
|
+
})] })
|
|
203
|
+
]
|
|
204
|
+
})
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/routes/skills/index.tsx?tsr-split=component
|
|
209
|
+
function SkillsPage() {
|
|
210
|
+
const { skills, templates, now } = Route.useLoaderData();
|
|
211
|
+
const router = useRouter();
|
|
212
|
+
const [importing, setImporting] = useState(false);
|
|
213
|
+
const [imported, setImported] = useState(null);
|
|
214
|
+
const [removing, setRemoving] = useState(null);
|
|
215
|
+
const [query, setQuery] = useState("");
|
|
216
|
+
const shown = skills.filter((skill) => matchesSkill(skill, query));
|
|
217
|
+
const look = skillsNeedingALook(skills);
|
|
218
|
+
const importedFindings = imported ? Object.entries(imported.findings ?? {}).flatMap(([name, items]) => items.map((item) => ({
|
|
219
|
+
...item,
|
|
220
|
+
message: `${name}: ${item.message}`
|
|
221
|
+
}))) : [];
|
|
222
|
+
return /* @__PURE__ */ jsxs(ManagePage, {
|
|
223
|
+
title: "Skills",
|
|
224
|
+
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.",
|
|
225
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
226
|
+
variant: "primary",
|
|
227
|
+
onClick: () => setImporting(true),
|
|
228
|
+
children: "Import skills"
|
|
229
|
+
}),
|
|
230
|
+
children: [
|
|
231
|
+
look.length > 0 && /* @__PURE__ */ jsxs(Banner, {
|
|
232
|
+
tone: "warning",
|
|
233
|
+
lead: `${count(look.length, "skill")} ${look.length === 1 ? "needs" : "need"} a look.`,
|
|
234
|
+
children: [look.map((skill) => skill.parseError ? `${skill.name} cannot be read` : `${skill.name} has a risky finding`).join("; "), "."]
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ jsxs(SetupCard, {
|
|
237
|
+
labelledBy: "manage-skills",
|
|
238
|
+
icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
|
|
239
|
+
title: "Installed skills",
|
|
240
|
+
description: `Each was scanned when it was imported. ${allSkillsLine(templates) ?? ""}`,
|
|
241
|
+
action: /* @__PURE__ */ jsx(Chip, {
|
|
242
|
+
tone: "neutral",
|
|
243
|
+
children: count(skills.length, "skill")
|
|
244
|
+
}),
|
|
245
|
+
children: [
|
|
246
|
+
imported && /* @__PURE__ */ jsxs(CardBody, {
|
|
247
|
+
className: "py-3",
|
|
248
|
+
children: [/* @__PURE__ */ jsx(Notice, {
|
|
249
|
+
tone: "success",
|
|
250
|
+
title: imported.imported.length > 0 ? `Imported ${count(imported.imported.length, "skill")}: ${imported.imported.join(", ")}.` : "Nothing new was imported.",
|
|
251
|
+
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.`
|
|
252
|
+
}), importedFindings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, {
|
|
253
|
+
findings: importedFindings,
|
|
254
|
+
title: "Imported despite these findings:"
|
|
255
|
+
})]
|
|
256
|
+
}),
|
|
257
|
+
skills.length > 0 && /* @__PURE__ */ jsx(CardToolbar, { children: /* @__PURE__ */ jsx(SearchField, {
|
|
258
|
+
label: "Find a skill",
|
|
259
|
+
placeholder: "Find by name or description",
|
|
260
|
+
value: query,
|
|
261
|
+
onChange: setQuery,
|
|
262
|
+
className: "min-w-0 flex-1 basis-60"
|
|
263
|
+
}) }),
|
|
264
|
+
skills.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
|
|
265
|
+
icon: /* @__PURE__ */ jsx(Sparkles, { className: "size-5" }),
|
|
266
|
+
title: "No skills installed",
|
|
267
|
+
action: /* @__PURE__ */ jsx(Button, {
|
|
268
|
+
variant: "primary",
|
|
269
|
+
onClick: () => setImporting(true),
|
|
270
|
+
children: "Import skills"
|
|
271
|
+
}),
|
|
272
|
+
children: "Import them from OpenClaw, a folder or a ZIP file."
|
|
273
|
+
}) : shown.length === 0 ? /* @__PURE__ */ jsx(CardEmpty, {
|
|
274
|
+
title: `No skill matches “${query.trim()}”`,
|
|
275
|
+
children: "Try another word from its name or description."
|
|
276
|
+
}) : /* @__PURE__ */ jsx(CardList, { children: shown.map((skill) => {
|
|
277
|
+
const state = skillState(skill);
|
|
278
|
+
const findings = skill.scanFindings ?? [];
|
|
279
|
+
return /* @__PURE__ */ jsx(ListRow, {
|
|
280
|
+
inline: true,
|
|
281
|
+
title: /* @__PURE__ */ jsx("span", {
|
|
282
|
+
className: "font-mono text-[0.92em]",
|
|
283
|
+
children: skill.name
|
|
284
|
+
}),
|
|
285
|
+
chip: state && /* @__PURE__ */ jsx(Chip, {
|
|
286
|
+
tone: state.tone,
|
|
287
|
+
children: state.label
|
|
288
|
+
}),
|
|
289
|
+
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
290
|
+
skill.description && /* @__PURE__ */ jsx("span", {
|
|
291
|
+
className: "basis-full text-foreground",
|
|
292
|
+
children: skill.description
|
|
293
|
+
}),
|
|
294
|
+
skillChosenBy(skill.name, templates) && /* @__PURE__ */ jsx("span", { children: skillChosenBy(skill.name, templates) }),
|
|
295
|
+
/* @__PURE__ */ jsxs("span", {
|
|
296
|
+
title: skill.source ?? void 0,
|
|
297
|
+
children: [skillSourceLabel(skill.source), skill.importedAt !== null && `, ${ago(skill.importedAt, now)}`]
|
|
298
|
+
})
|
|
299
|
+
] }),
|
|
300
|
+
actions: /* @__PURE__ */ jsx(RowMenu, {
|
|
301
|
+
label: `More for ${skill.name}`,
|
|
302
|
+
items: [{
|
|
303
|
+
label: "Remove…",
|
|
304
|
+
danger: true,
|
|
305
|
+
onSelect: () => setRemoving(skill)
|
|
306
|
+
}]
|
|
307
|
+
}),
|
|
308
|
+
children: skill.parseError ? /* @__PURE__ */ jsx(Notice, {
|
|
309
|
+
tone: "warning",
|
|
310
|
+
title: "Its SKILL.md cannot be read, so no Agent gets it.",
|
|
311
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
312
|
+
className: "break-words font-mono text-xs",
|
|
313
|
+
children: skill.parseError
|
|
314
|
+
})
|
|
315
|
+
}) : findings.length > 0 && /* @__PURE__ */ jsx(FindingsNotice, { findings })
|
|
316
|
+
}, skill.name);
|
|
317
|
+
}) })
|
|
318
|
+
]
|
|
319
|
+
}),
|
|
320
|
+
importing && /* @__PURE__ */ jsx(ImportSkillsDialog, {
|
|
321
|
+
onClose: () => setImporting(false),
|
|
322
|
+
onImported: async (result) => {
|
|
323
|
+
setImporting(false);
|
|
324
|
+
setImported(result);
|
|
325
|
+
await router.invalidate({ sync: true });
|
|
326
|
+
}
|
|
327
|
+
}),
|
|
328
|
+
/* @__PURE__ */ jsx(ConfirmDialog, {
|
|
329
|
+
open: removing !== null,
|
|
330
|
+
onOpenChange: (open) => {
|
|
331
|
+
if (!open) setRemoving(null);
|
|
332
|
+
},
|
|
333
|
+
title: `Remove the ${removing?.name ?? ""} skill?`,
|
|
334
|
+
description: /* @__PURE__ */ jsxs("p", {
|
|
335
|
+
className: "m-0",
|
|
336
|
+
children: [
|
|
337
|
+
"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.",
|
|
338
|
+
" ",
|
|
339
|
+
removing && skillUseSentence(removing.name, templates)
|
|
340
|
+
]
|
|
341
|
+
}),
|
|
342
|
+
confirmLabel: "Remove skill",
|
|
343
|
+
onConfirm: async () => {
|
|
344
|
+
if (!removing) return;
|
|
345
|
+
await api(`/api/skills/${encodeURIComponent(removing.name)}`, { method: "DELETE" });
|
|
346
|
+
await router.invalidate({ sync: true });
|
|
347
|
+
}
|
|
348
|
+
})
|
|
349
|
+
]
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
//#endregion
|
|
353
|
+
export { SkillsPage as component };
|
|
@@ -127,7 +127,7 @@ function TeamPolicyMatrix({ document, selectedId, onSelect, onToggle }) {
|
|
|
127
127
|
children: "Communication matrix"
|
|
128
128
|
}), /* @__PURE__ */ jsx("p", {
|
|
129
129
|
className: "mt-1 text-xs text-mocha-light",
|
|
130
|
-
children: "Rows send; columns receive. Every cell edits the same
|
|
130
|
+
children: "Rows send; columns receive. Every cell edits the same connections as Flow."
|
|
131
131
|
})]
|
|
132
132
|
}), /* @__PURE__ */ jsxs("table", {
|
|
133
133
|
className: "m-0 min-w-[620px] table-fixed overflow-visible rounded-md text-xs",
|