@aiderdesk/aiderdesk 0.79.1 → 0.81.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/out/renderer/assets/{AgentSettings-DlLAuLnM.js → AgentSettings-B_H7Zpgy.js} +403 -360
- package/out/renderer/assets/{InfoIcon-C1TeBp5L.js → InfoIcon-D7q9WWkf.js} +1 -1
- package/out/renderer/assets/{Onboarding-Dh8FRGur.js → Onboarding-BKjX09cc.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-VLzB9p23.js → ProviderHeader-Cs728L-d.js} +888 -524
- package/out/renderer/assets/{SettingsPage-B3CLZ8tc.js → SettingsPage-JucARU7D.js} +731 -541
- package/out/renderer/assets/{UsageDashboard-D83T3HwC.js → UsageDashboard-DILP_J6x.js} +9 -13
- package/out/renderer/assets/{abnfDiagram-N423BO3Z-BRDZM1mW.js → abnfDiagram-N423BO3Z-FwzcDSg0.js} +4 -4
- package/out/renderer/assets/{arc-CbzEqNM1.js → arc-BUCbLDDN.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-T3A2C74G-Bvd5Je3R.js → architectureDiagram-T3A2C74G-DwIgf-vu.js} +3 -3
- package/out/renderer/assets/{blockDiagram-VBNYF7ZC-C_NaWxTi.js → blockDiagram-VBNYF7ZC-mi-N7mTd.js} +4 -4
- package/out/renderer/assets/{c4Diagram-5PPSVZJV-DguNzZCo.js → c4Diagram-5PPSVZJV-DwdgAnsC.js} +2 -2
- package/out/renderer/assets/{channel-Cnrvb6bA.js → channel-FZb5X6MG.js} +1 -1
- package/out/renderer/assets/{chunk-2GRJ4B5K-r99iLppH.js → chunk-2GRJ4B5K-94IZD4IQ.js} +1 -1
- package/out/renderer/assets/{chunk-2Q5K7J3B-C3uutlD6.js → chunk-2Q5K7J3B-KWOSRYgu.js} +1 -1
- package/out/renderer/assets/{chunk-5RXB4S5H-CR6Mx5Iz.js → chunk-5RXB4S5H-B1lEzoZd.js} +4 -4
- package/out/renderer/assets/{chunk-5VM5RSS4-X7PVl-ef.js → chunk-5VM5RSS4-DU4fVgUS.js} +1 -1
- package/out/renderer/assets/{chunk-6Q2QTUOP-JehvOsAC.js → chunk-6Q2QTUOP-CfXk4iDZ.js} +1 -1
- package/out/renderer/assets/{chunk-GF5L2VYU-B3ppa4PP.js → chunk-GF5L2VYU-CQNT5-FI.js} +5 -5
- package/out/renderer/assets/{chunk-JWPE2WC7-CFZRPI77.js → chunk-JWPE2WC7-BD4AfUn4.js} +1 -1
- package/out/renderer/assets/{chunk-KBJHAD2P-BBjc6zok.js → chunk-KBJHAD2P-DHAVKPli.js} +1 -1
- package/out/renderer/assets/{chunk-RYQCIY6F-BZvHC_mQ.js → chunk-RYQCIY6F-CVVFEloA.js} +3 -3
- package/out/renderer/assets/{chunk-XXDRQBXY-Ck-RRkxC.js → chunk-XXDRQBXY-D2JNzJXq.js} +1 -1
- package/out/renderer/assets/{classDiagram-JCYQIIEL-NNfXWT4B.js → classDiagram-JCYQIIEL-7W7lot8b.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-OCEON4UE-NNfXWT4B.js → classDiagram-v2-OCEON4UE-7W7lot8b.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-CViVoXgl.js → cose-bilkent-JH36ORCC-CZMhh5W9.js} +1 -1
- package/out/renderer/assets/{cynefin-VYW2F7L2-DX5D0uIU.js → cynefin-VYW2F7L2-x-xDxroP.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-MW4NZA55-Cp2wCsOt.js → cynefinDiagram-MW4NZA55-B41JtjtO.js} +3 -3
- package/out/renderer/assets/{dagre-VZM6K2ZE-eNIYYO0O.js → dagre-VZM6K2ZE-Dj-zvUXp.js} +5 -5
- package/out/renderer/assets/{diagram-7IWD3JNH-Bg1vGWhI.js → diagram-7IWD3JNH-CFaAve_t.js} +4 -4
- package/out/renderer/assets/{diagram-B4RE2ZJO-D_JxirT4.js → diagram-B4RE2ZJO-Dlv48H7Y.js} +3 -3
- package/out/renderer/assets/{diagram-LBJQPF4R-LQpr0xek.js → diagram-LBJQPF4R-BucHVRed.js} +3 -3
- package/out/renderer/assets/{diagram-Q27KOJAE-BL-MLj4m.js → diagram-Q27KOJAE-B611lqWJ.js} +4 -4
- package/out/renderer/assets/{diagram-UB23O5K3-BlUt9ZmL.js → diagram-UB23O5K3-CLoEDYB7.js} +3 -3
- package/out/renderer/assets/{ebnfDiagram-BXEA7PRR-BGckdM6s.js → ebnfDiagram-BXEA7PRR-jrXkTnrz.js} +4 -4
- package/out/renderer/assets/{erDiagram-JOGREHBK-DmWOmMZk.js → erDiagram-JOGREHBK-03zjLqsa.js} +4 -4
- package/out/renderer/assets/{flowDiagram-UKHOOZJN-lOEUIjdB.js → flowDiagram-UKHOOZJN-Bp2wNUMb.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-PKOTCBZU-CZtmjxYB.js → ganttDiagram-PKOTCBZU-D43jD8yv.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-DS77QQ5N-DE5y9iux.js → gitGraphDiagram-DS77QQ5N-BnRYgTHV.js} +4 -4
- package/out/renderer/assets/{graph-DSMw-VBh.js → graph-Cc2_HGX0.js} +1 -1
- package/out/renderer/assets/{index-ebiHDnXl.js → index-6f-oeIlk.js} +2 -2
- package/out/renderer/assets/{index-Buw1KWG-.js → index-B1FCOdrT.js} +1 -1
- package/out/renderer/assets/{index-DDiIQL3b.js → index-B1zpIvcm.js} +3 -3
- package/out/renderer/assets/{index-mytNi5ms.js → index-B7u0PpZD.js} +1 -1
- package/out/renderer/assets/{index-B-wIGFrM.js → index-BAmWP-pk.js} +1 -1
- package/out/renderer/assets/{index-OJ1PmhTm.js → index-BD3e_Ot8.js} +2 -2
- package/out/renderer/assets/{index-DZze20ab.js → index-BDNv0FnP.js} +2 -2
- package/out/renderer/assets/{index-ChixxdQV.js → index-BlIAKIdk.js} +2 -2
- package/out/renderer/assets/{index-BfqM1vG3.js → index-BsROeHY9.js} +1 -1
- package/out/renderer/assets/{index-UQ28Qgl7.js → index-BshLKdRe.js} +5 -5
- package/out/renderer/assets/{index--__lgq6v.js → index-C1CZtLbF.js} +1 -1
- package/out/renderer/assets/{index-Bjy__dpB.js → index-C5ukVhTq.js} +2 -2
- package/out/renderer/assets/{index-vAx0mdd8.js → index-C9gITpjJ.js} +4 -4
- package/out/renderer/assets/{index-MDUSPmtz.js → index-CDQDyOcK.js} +5 -5
- package/out/renderer/assets/{index-Dgmvrciv.js → index-CIU9ZkBS.js} +3 -3
- package/out/renderer/assets/{index-qfaXmy0Y.js → index-CKmzZHZf.js} +1 -1
- package/out/renderer/assets/{index-Brdnttud.js → index-CLpvp3hq.js} +2 -2
- package/out/renderer/assets/{index-CgczHs0-.js → index-CRXUdV-u.js} +96 -3
- package/out/renderer/assets/{index-DMzzmyZE.js → index-CqrtPgJE.js} +2233 -1739
- package/out/renderer/assets/{index-BZaWk11Q.js → index-D3uMH-q1.js} +1 -1
- package/out/renderer/assets/{index-CZCIyO4U.js → index-D8TTB4-r.js} +5 -5
- package/out/renderer/assets/{index-DH7BFHAa.css → index-D98qpStd.css} +41 -14
- package/out/renderer/assets/{index-DD6bNfA0.js → index-DJFjmSQJ.js} +5 -5
- package/out/renderer/assets/{index-BDYZfF3J.js → index-DTGsvPds.js} +2 -2
- package/out/renderer/assets/{index-BbLpDvA3.js → index-DVc8XWTX.js} +5 -5
- package/out/renderer/assets/{index-Dz4P0Q9P.js → index-DvZhzJfh.js} +2 -2
- package/out/renderer/assets/{index-BRDlnXGV.js → index-Kj4O6jrs.js} +2 -2
- package/out/renderer/assets/{index-D4xEcHbg.js → index-KleIXLpB.js} +2 -2
- package/out/renderer/assets/{index-1JC2_Wd3.js → index-LF-blgre.js} +2 -2
- package/out/renderer/assets/{index-u_V0DpfA.js → index-RmenzFuK.js} +5 -5
- package/out/renderer/assets/{index-Cwqf0NbI.js → index-StlvWzAQ.js} +2 -2
- package/out/renderer/assets/{index-DMAjk3_P.js → index-aEJRypjl.js} +1 -1
- package/out/renderer/assets/{index-tUvIVnIS.js → index-cIujfEiH.js} +1 -1
- package/out/renderer/assets/{infoDiagram-6WML65LV-DM7_nqt3.js → infoDiagram-6WML65LV-BZrdglKf.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-WSZJBQD7-DrWSKswv.js → ishikawaDiagram-WSZJBQD7-M3-Bx05k.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-NVQOT4AX-Csn7KuKV.js → journeyDiagram-NVQOT4AX-OUrdoMWw.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-CTchQKOk.js → jsx-dev-runtime-BmYtwnS5.js} +1 -1
- package/out/renderer/assets/{kanban-definition-27J2QSJJ-BRXIW-y6.js → kanban-definition-27J2QSJJ-Bp1bLsvM.js} +2 -2
- package/out/renderer/assets/{layout-CjgVHH-8.js → layout-DHkE0LRs.js} +3 -3
- package/out/renderer/assets/{linear-7N8jztD_.js → linear-CbGhnOuY.js} +1 -1
- package/out/renderer/assets/{map-fXOUEC9w.js → map-cIUn-qth.js} +2 -2
- package/out/renderer/assets/{mindmap-definition-FAOFIHXS-eH5ANg_6.js → mindmap-definition-FAOFIHXS-Cn4b5kOp.js} +3 -3
- package/out/renderer/assets/{pegDiagram-VL7TDLO6-_S1HcQ4v.js → pegDiagram-VL7TDLO6-CVKr1c2L.js} +4 -4
- package/out/renderer/assets/{pieDiagram-7S7Q4E2Y-BbkejzGW.js → pieDiagram-7S7Q4E2Y-CWcOq9Qb.js} +4 -4
- package/out/renderer/assets/{quadrantDiagram-CIZ2JOQS-C9-OKkJL.js → quadrantDiagram-CIZ2JOQS-P3JVAK0b.js} +2 -2
- package/out/renderer/assets/{railroadDiagram-AXF67PYL-9VliFuUM.js → railroadDiagram-AXF67PYL-0ofS2KCh.js} +4 -4
- package/out/renderer/assets/{requirementDiagram-LRYGKXZP-Dr0S14Mj.js → requirementDiagram-LRYGKXZP-BKJvTfyp.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-W5VNT64P--k6pZLfZ.js → sankeyDiagram-W5VNT64P-rhaheiUH.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-SI44F4Z6-Bx4rTgvS.js → sequenceDiagram-SI44F4Z6-OYjmpEqz.js} +3 -3
- package/out/renderer/assets/{sizeCapture-X5ZJPWSS-BkRX3y1x.js → sizeCapture-X5ZJPWSS-CL0ajR5N.js} +1 -1
- package/out/renderer/assets/{stateDiagram-OKZ733FA-VF2TYKH_.js → stateDiagram-OKZ733FA-oiMfVXQn.js} +8 -8
- package/out/renderer/assets/{stateDiagram-v2-UEYNNEHI-BodH9nuP.js → stateDiagram-v2-UEYNNEHI-CcFKN2iZ.js} +5 -5
- package/out/renderer/assets/{swimlanes-SLNWSIFB-TnShw-0l.js → swimlanes-SLNWSIFB-DVH6NvWT.js} +6 -6
- package/out/renderer/assets/{swimlanesDiagram-ULZ7WXOC-CemoGOe8.js → swimlanesDiagram-ULZ7WXOC-CsUQN2E5.js} +7 -7
- package/out/renderer/assets/{time-CTB9_khZ.js → time-rV3KZfw-.js} +1 -1
- package/out/renderer/assets/{timeline-definition-Z64GVDOM-PQXf9HIJ.js → timeline-definition-Z64GVDOM-E-YDHKWt.js} +2 -2
- package/out/renderer/assets/{vennDiagram-T6HMQDX7-Db5aCF6z.js → vennDiagram-T6HMQDX7-2y9Eqtpd.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-T6FBY63Y-DI3Rr8Jy.js → wardleyDiagram-T6FBY63Y-D_iD5USe.js} +3 -3
- package/out/renderer/assets/{xychartDiagram-ELKLHX3M-CYptZ7pE.js → xychartDiagram-ELKLHX3M-NFI2AtZ8.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/resources/skills/extension-creator/SKILL.md +46 -0
- package/out/resources/skills/extension-creator/assets/scripts/validate-extension-ui.mjs +479 -0
- package/out/resources/skills/extension-creator/references/extension-interface.md +8 -0
- package/out/resources/skills/extension-creator/references/in-repo-flow.md +1 -0
- package/out/resources/skills/extension-creator/references/project-global-flow.md +2 -1
- package/out/resources/skills/extension-creator/references/ui-components.md +21 -0
- package/out/runner.js +1077 -365
- package/package.json +53 -53
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports, bQ as useTranslation, db as FONTS, dc as THEMES, dd as DiffViewMode, de as MessageViewMode, df as FileWatchMode, j as jsxRuntimeExports, dg as ProjectStartMode, dh as RadioButton, di as SuggestionMode,
|
|
2
|
-
import { L as LanguageSelector, S as Section, V as VerticalDotsMenu, M as McpOAuthControls, g as getPathBasename, A as AgentSettings, a as AiderSettings } from "./AgentSettings-
|
|
3
|
-
import { I as InfoIcon } from "./InfoIcon-
|
|
1
|
+
import { c as compilerRuntimeExports, bQ as useTranslation, db as FONTS, dc as THEMES, dd as DiffViewMode, de as MessageViewMode, df as FileWatchMode, j as jsxRuntimeExports, dg as ProjectStartMode, dh as RadioButton, di as SuggestionMode, cU as Slider, cR as Checkbox, cQ as Select, cT as Input, bO as reactExports, d0 as Tooltip, dj as MdInfoOutline, dk as TextArea, bV as Button, a as clsx, dl as BiRefresh, dm as BiPencil, dn as BiTrash, dp as McpOAuthStatus, dq as FaPencilAlt, I as IconButton, dr as FaTrash, ds as FaSyncAlt, dt as useApi, du as useMcpServers, dv as useResponsive, dw as useBooleanState, dx as AnimatePresence, dy as motion, dz as HiXMark, dA as RiMenuUnfold4Line, dB as extractIpcErrorMessage, dC as FaChevronLeft, dD as FaChevronRight, dE as FaPlus, dF as useVersions, dG as FaFolderOpen, dH as B, dI as TbLogs, dJ as Chip, dK as BiCopy, dL as useMount, dM as MemoryEmbeddingProgressPhase, dN as CodeInline, cV as ConfirmDialog, bN as useModelProviders, dO as useLocalStorage, dP as DEFAULT_VOICE_SYSTEM_INSTRUCTIONS, dQ as OpenAiVoiceModel, dR as GeminiVoiceModel, dS as isOpenAiProvider, dT as isGeminiProvider, dU as FaEdit, dV as FaTimes, dW as useRecordHotkeys, dX as DEFAULT_HOTKEY_CONFIG, dY as ModelSelectorWrapper, dZ as ContextCompactionType, d_ as getProviderModelId, d$ as ItemSelector, e0 as AiFillFolderOpen, e1 as IoGitBranch, e2 as useExtensions, e3 as useReactIcons, e4 as showSuccessNotification, bY as showErrorNotification, e5 as LoadingOverlay, e6 as StringToReactComponent, e7 as useOS, e8 as FaDownload, e9 as FaCog, ea as FaSync, eb as Toggle, ec as FaChevronDown, ed as Markdown, ee as MARKDOWN_COMPONENTS, ef as REMARK_PLUGINS, eg as FaSearch, eh as FaServer, ei as MdTerminal, ej as FaRobot, ek as FaPlug, el as LuClipboardList, em as FaBrain, en as FaMicrophone, eo as FaKeyboard, ep as FaPuzzlePiece, F as FaInfoCircle, bS as useSettingsStore, bT as useSaveSettings, bU as useAgents, bZ as lodashExports, eq as setTheme, er as setFont, es as setFontSize, d7 as useHotkeys, d8 as ModalOverlayLayout } from "./index-CqrtPgJE.js";
|
|
2
|
+
import { L as LanguageSelector, S as Section, V as VerticalDotsMenu, M as McpOAuthControls, g as getPathBasename, A as AgentSettings, a as AiderSettings } from "./AgentSettings-B_H7Zpgy.js";
|
|
3
|
+
import { I as InfoIcon } from "./InfoIcon-D7q9WWkf.js";
|
|
4
4
|
const ZOOM_OPTIONS = [{
|
|
5
5
|
label: "80%",
|
|
6
6
|
value: "0.8"
|
|
@@ -5994,7 +5994,7 @@ function _temp3$5(tool) {
|
|
|
5994
5994
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(McpToolCard, { tool }, tool.name);
|
|
5995
5995
|
}
|
|
5996
5996
|
const McpSettings = (t0) => {
|
|
5997
|
-
const $ = compilerRuntimeExports.c(
|
|
5997
|
+
const $ = compilerRuntimeExports.c(169);
|
|
5998
5998
|
const {
|
|
5999
5999
|
mcpServers,
|
|
6000
6000
|
setMcpServers,
|
|
@@ -6021,6 +6021,10 @@ const McpSettings = (t0) => {
|
|
|
6021
6021
|
removeServer,
|
|
6022
6022
|
replaceServers
|
|
6023
6023
|
} = useMcpServers();
|
|
6024
|
+
const {
|
|
6025
|
+
isMobile
|
|
6026
|
+
} = useResponsive();
|
|
6027
|
+
const [isListSidebarOpen, , hideListSidebar, toggleListSidebar] = useBooleanState();
|
|
6024
6028
|
const [isAddingServer, setIsAddingServer] = reactExports.useState(false);
|
|
6025
6029
|
const [editingServer, setEditingServer] = reactExports.useState(null);
|
|
6026
6030
|
const [isEditingServersConfig, setIsEditingServersConfig] = reactExports.useState(false);
|
|
@@ -6497,178 +6501,184 @@ const McpSettings = (t0) => {
|
|
|
6497
6501
|
}
|
|
6498
6502
|
const selectedServerData = selectedServer ? serversTools[selectedServer.name] : void 0;
|
|
6499
6503
|
let t23;
|
|
6500
|
-
if ($[79]
|
|
6501
|
-
t23 =
|
|
6502
|
-
|
|
6504
|
+
if ($[79] !== hideListSidebar || $[80] !== isMobile) {
|
|
6505
|
+
t23 = (name_9) => {
|
|
6506
|
+
setSelectedServerName(name_9);
|
|
6507
|
+
if (isMobile) {
|
|
6508
|
+
hideListSidebar();
|
|
6509
|
+
}
|
|
6510
|
+
};
|
|
6511
|
+
$[79] = hideListSidebar;
|
|
6512
|
+
$[80] = isMobile;
|
|
6513
|
+
$[81] = t23;
|
|
6503
6514
|
} else {
|
|
6504
|
-
t23 = $[
|
|
6515
|
+
t23 = $[81];
|
|
6505
6516
|
}
|
|
6517
|
+
const handleSelectServer = t23;
|
|
6506
6518
|
let t24;
|
|
6507
|
-
if ($[
|
|
6508
|
-
t24 = (
|
|
6509
|
-
$[
|
|
6510
|
-
$[81] = t24;
|
|
6519
|
+
if ($[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6520
|
+
t24 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronLeft, { className: "w-3 h-3" });
|
|
6521
|
+
$[82] = t24;
|
|
6511
6522
|
} else {
|
|
6512
|
-
t24 = $[
|
|
6523
|
+
t24 = $[82];
|
|
6513
6524
|
}
|
|
6514
6525
|
let t25;
|
|
6515
|
-
if ($[
|
|
6516
|
-
t25 =
|
|
6517
|
-
$[
|
|
6518
|
-
$[
|
|
6526
|
+
if ($[83] !== navigateContext) {
|
|
6527
|
+
t25 = () => navigateContext("prev");
|
|
6528
|
+
$[83] = navigateContext;
|
|
6529
|
+
$[84] = t25;
|
|
6519
6530
|
} else {
|
|
6520
|
-
t25 = $[
|
|
6531
|
+
t25 = $[84];
|
|
6521
6532
|
}
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
$[84] = t24;
|
|
6527
|
-
$[85] = t25;
|
|
6533
|
+
let t26;
|
|
6534
|
+
if ($[85] !== t) {
|
|
6535
|
+
t26 = t("settings.agent.previousContext");
|
|
6536
|
+
$[85] = t;
|
|
6528
6537
|
$[86] = t26;
|
|
6529
|
-
$[87] = t27;
|
|
6530
6538
|
} else {
|
|
6531
|
-
|
|
6539
|
+
t26 = $[86];
|
|
6532
6540
|
}
|
|
6541
|
+
const t27 = contexts.length <= 1;
|
|
6533
6542
|
let t28;
|
|
6534
|
-
if ($[88] !==
|
|
6535
|
-
t28 =
|
|
6536
|
-
$[
|
|
6537
|
-
$[
|
|
6543
|
+
if ($[87] !== t25 || $[88] !== t26 || $[89] !== t27) {
|
|
6544
|
+
t28 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t24, onClick: t25, tooltip: t26, disabled: t27, className: "p-1" });
|
|
6545
|
+
$[87] = t25;
|
|
6546
|
+
$[88] = t26;
|
|
6547
|
+
$[89] = t27;
|
|
6548
|
+
$[90] = t28;
|
|
6538
6549
|
} else {
|
|
6539
|
-
t28 = $[
|
|
6550
|
+
t28 = $[90];
|
|
6540
6551
|
}
|
|
6541
6552
|
let t29;
|
|
6542
|
-
if ($[
|
|
6543
|
-
t29 =
|
|
6544
|
-
$[
|
|
6545
|
-
$[
|
|
6553
|
+
if ($[91] !== getContextDisplayName) {
|
|
6554
|
+
t29 = getContextDisplayName();
|
|
6555
|
+
$[91] = getContextDisplayName;
|
|
6556
|
+
$[92] = t29;
|
|
6546
6557
|
} else {
|
|
6547
|
-
t29 = $[
|
|
6558
|
+
t29 = $[92];
|
|
6548
6559
|
}
|
|
6549
6560
|
let t30;
|
|
6550
|
-
if ($[
|
|
6551
|
-
t30 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6552
|
-
$[
|
|
6561
|
+
if ($[93] !== t29) {
|
|
6562
|
+
t30 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-secondary truncate flex-1 text-center", children: t29 });
|
|
6563
|
+
$[93] = t29;
|
|
6564
|
+
$[94] = t30;
|
|
6553
6565
|
} else {
|
|
6554
|
-
t30 = $[
|
|
6566
|
+
t30 = $[94];
|
|
6555
6567
|
}
|
|
6556
6568
|
let t31;
|
|
6557
|
-
if ($[
|
|
6558
|
-
t31 = (
|
|
6559
|
-
$[
|
|
6560
|
-
$[94] = t31;
|
|
6569
|
+
if ($[95] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6570
|
+
t31 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" });
|
|
6571
|
+
$[95] = t31;
|
|
6561
6572
|
} else {
|
|
6562
|
-
t31 = $[
|
|
6573
|
+
t31 = $[95];
|
|
6563
6574
|
}
|
|
6564
6575
|
let t32;
|
|
6565
|
-
if ($[
|
|
6566
|
-
t32 =
|
|
6567
|
-
$[
|
|
6568
|
-
$[
|
|
6576
|
+
if ($[96] !== navigateContext) {
|
|
6577
|
+
t32 = () => navigateContext("next");
|
|
6578
|
+
$[96] = navigateContext;
|
|
6579
|
+
$[97] = t32;
|
|
6569
6580
|
} else {
|
|
6570
|
-
t32 = $[
|
|
6581
|
+
t32 = $[97];
|
|
6571
6582
|
}
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
$[97] = t31;
|
|
6577
|
-
$[98] = t32;
|
|
6583
|
+
let t33;
|
|
6584
|
+
if ($[98] !== t) {
|
|
6585
|
+
t33 = t("settings.agent.nextContext");
|
|
6586
|
+
$[98] = t;
|
|
6578
6587
|
$[99] = t33;
|
|
6579
|
-
$[100] = t34;
|
|
6580
6588
|
} else {
|
|
6581
|
-
|
|
6589
|
+
t33 = $[99];
|
|
6582
6590
|
}
|
|
6591
|
+
const t34 = contexts.length <= 1;
|
|
6583
6592
|
let t35;
|
|
6584
|
-
if ($[
|
|
6585
|
-
t35 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
]
|
|
6590
|
-
$[101] = t27;
|
|
6591
|
-
$[102] = t29;
|
|
6592
|
-
$[103] = t34;
|
|
6593
|
-
$[104] = t35;
|
|
6593
|
+
if ($[100] !== t32 || $[101] !== t33 || $[102] !== t34) {
|
|
6594
|
+
t35 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t31, onClick: t32, tooltip: t33, disabled: t34, className: "p-1" });
|
|
6595
|
+
$[100] = t32;
|
|
6596
|
+
$[101] = t33;
|
|
6597
|
+
$[102] = t34;
|
|
6598
|
+
$[103] = t35;
|
|
6594
6599
|
} else {
|
|
6595
|
-
t35 = $[
|
|
6600
|
+
t35 = $[103];
|
|
6596
6601
|
}
|
|
6597
6602
|
let t36;
|
|
6598
|
-
if ($[
|
|
6599
|
-
t36 =
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
$[
|
|
6607
|
-
$[
|
|
6608
|
-
$[107] = handleRemove;
|
|
6609
|
-
$[108] = serverEntries;
|
|
6610
|
-
$[109] = servers;
|
|
6611
|
-
$[110] = serversTools;
|
|
6612
|
-
$[111] = t;
|
|
6613
|
-
$[112] = t36;
|
|
6603
|
+
if ($[104] !== t28 || $[105] !== t30 || $[106] !== t35) {
|
|
6604
|
+
t36 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-3 border-b border-border-default", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
6605
|
+
t28,
|
|
6606
|
+
t30,
|
|
6607
|
+
t35
|
|
6608
|
+
] }) });
|
|
6609
|
+
$[104] = t28;
|
|
6610
|
+
$[105] = t30;
|
|
6611
|
+
$[106] = t35;
|
|
6612
|
+
$[107] = t36;
|
|
6614
6613
|
} else {
|
|
6615
|
-
t36 = $[
|
|
6614
|
+
t36 = $[107];
|
|
6616
6615
|
}
|
|
6617
6616
|
let t37;
|
|
6618
|
-
if ($[113] !==
|
|
6619
|
-
t37 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6617
|
+
if ($[108] !== activeServerName || $[109] !== handleReloadServer || $[110] !== handleRemove || $[111] !== handleSelectServer || $[112] !== serverEntries || $[113] !== servers || $[114] !== serversTools || $[115] !== t) {
|
|
6618
|
+
t37 = serverEntries.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full px-8 text-center flex items-center justify-center py-8 text-text-muted-light text-xs", children: t("settings.agent.noServersConfigured") }) : serverEntries.map((t382) => {
|
|
6619
|
+
const [serverName] = t382;
|
|
6620
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(McpServerSidebarItem, { serverName, isSelected: activeServerName === serverName, error: serversTools[serverName]?.error ?? null, onClick: handleSelectServer, onRefresh: handleReloadServer, onEdit: (name_10) => setEditingServer({
|
|
6621
|
+
name: name_10,
|
|
6622
|
+
config: servers[name_10]
|
|
6623
|
+
}), onRemove: handleRemove }, serverName);
|
|
6624
|
+
});
|
|
6625
|
+
$[108] = activeServerName;
|
|
6626
|
+
$[109] = handleReloadServer;
|
|
6627
|
+
$[110] = handleRemove;
|
|
6628
|
+
$[111] = handleSelectServer;
|
|
6629
|
+
$[112] = serverEntries;
|
|
6630
|
+
$[113] = servers;
|
|
6631
|
+
$[114] = serversTools;
|
|
6632
|
+
$[115] = t;
|
|
6633
|
+
$[116] = t37;
|
|
6634
|
+
} else {
|
|
6635
|
+
t37 = $[116];
|
|
6624
6636
|
}
|
|
6625
6637
|
let t38;
|
|
6626
|
-
if ($[
|
|
6627
|
-
t38 = (
|
|
6628
|
-
$[
|
|
6638
|
+
if ($[117] !== t37) {
|
|
6639
|
+
t38 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: t37 });
|
|
6640
|
+
$[117] = t37;
|
|
6641
|
+
$[118] = t38;
|
|
6629
6642
|
} else {
|
|
6630
|
-
t38 = $[
|
|
6643
|
+
t38 = $[118];
|
|
6631
6644
|
}
|
|
6632
6645
|
let t39;
|
|
6633
|
-
if ($[
|
|
6634
|
-
t39 =
|
|
6635
|
-
$[
|
|
6646
|
+
if ($[119] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6647
|
+
t39 = () => setIsAddingServer(true);
|
|
6648
|
+
$[119] = t39;
|
|
6636
6649
|
} else {
|
|
6637
|
-
t39 = $[
|
|
6650
|
+
t39 = $[119];
|
|
6638
6651
|
}
|
|
6639
6652
|
let t40;
|
|
6640
|
-
if ($[
|
|
6641
|
-
t40 =
|
|
6642
|
-
$[
|
|
6643
|
-
$[118] = t40;
|
|
6653
|
+
if ($[120] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6654
|
+
t40 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "mr-1.5 w-3 h-3" });
|
|
6655
|
+
$[120] = t40;
|
|
6644
6656
|
} else {
|
|
6645
|
-
t40 = $[
|
|
6657
|
+
t40 = $[120];
|
|
6646
6658
|
}
|
|
6647
6659
|
let t41;
|
|
6648
|
-
if ($[
|
|
6649
|
-
t41 =
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
t40
|
|
6653
|
-
] });
|
|
6654
|
-
$[119] = t40;
|
|
6655
|
-
$[120] = t41;
|
|
6660
|
+
if ($[121] !== t) {
|
|
6661
|
+
t41 = t("settings.agent.addMcpServer");
|
|
6662
|
+
$[121] = t;
|
|
6663
|
+
$[122] = t41;
|
|
6656
6664
|
} else {
|
|
6657
|
-
t41 = $[
|
|
6665
|
+
t41 = $[122];
|
|
6658
6666
|
}
|
|
6659
6667
|
let t42;
|
|
6660
|
-
if ($[
|
|
6661
|
-
t42 =
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6668
|
+
if ($[123] !== t41) {
|
|
6669
|
+
t42 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: t39, variant: "text", size: "sm", color: "primary", className: "text-xs", children: [
|
|
6670
|
+
t40,
|
|
6671
|
+
" ",
|
|
6672
|
+
t41
|
|
6673
|
+
] });
|
|
6674
|
+
$[123] = t41;
|
|
6675
|
+
$[124] = t42;
|
|
6665
6676
|
} else {
|
|
6666
|
-
t42 = $[
|
|
6677
|
+
t42 = $[124];
|
|
6667
6678
|
}
|
|
6668
6679
|
let t43;
|
|
6669
|
-
if ($[
|
|
6670
|
-
t43 = serverEntries.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6671
|
-
$[124] = handleReload;
|
|
6680
|
+
if ($[125] !== serverEntries.length || $[126] !== t) {
|
|
6681
|
+
t43 = serverEntries.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaPencilAlt, { className: "w-3.5 h-3.5 text-button-primary" }), onClick: () => setIsEditingServersConfig(true), tooltip: t("settings.agent.editConfig"), className: "p-2 rounded hover:bg-button-primary-subtle" });
|
|
6672
6682
|
$[125] = serverEntries.length;
|
|
6673
6683
|
$[126] = t;
|
|
6674
6684
|
$[127] = t43;
|
|
@@ -6676,63 +6686,141 @@ const McpSettings = (t0) => {
|
|
|
6676
6686
|
t43 = $[127];
|
|
6677
6687
|
}
|
|
6678
6688
|
let t44;
|
|
6679
|
-
if ($[128] !==
|
|
6680
|
-
t44 = /* @__PURE__ */ jsxRuntimeExports.
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
] });
|
|
6685
|
-
$[128] = t41;
|
|
6686
|
-
$[129] = t42;
|
|
6687
|
-
$[130] = t43;
|
|
6689
|
+
if ($[128] !== handleReload || $[129] !== serverEntries.length || $[130] !== t) {
|
|
6690
|
+
t44 = serverEntries.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaSyncAlt, { className: "w-3.5 h-3.5" }), onClick: handleReload, tooltip: t("settings.agent.reloadServers"), className: "p-2 rounded hover:bg-bg-tertiary" });
|
|
6691
|
+
$[128] = handleReload;
|
|
6692
|
+
$[129] = serverEntries.length;
|
|
6693
|
+
$[130] = t;
|
|
6688
6694
|
$[131] = t44;
|
|
6689
6695
|
} else {
|
|
6690
6696
|
t44 = $[131];
|
|
6691
6697
|
}
|
|
6692
6698
|
let t45;
|
|
6693
|
-
if ($[132] !==
|
|
6694
|
-
t45 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "
|
|
6695
|
-
|
|
6696
|
-
|
|
6699
|
+
if ($[132] !== t42 || $[133] !== t43 || $[134] !== t44) {
|
|
6700
|
+
t45 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-2 border-t border-border-default flex items-center justify-center gap-1", children: [
|
|
6701
|
+
t42,
|
|
6702
|
+
t43,
|
|
6697
6703
|
t44
|
|
6698
6704
|
] });
|
|
6699
|
-
$[132] =
|
|
6700
|
-
$[133] =
|
|
6705
|
+
$[132] = t42;
|
|
6706
|
+
$[133] = t43;
|
|
6701
6707
|
$[134] = t44;
|
|
6702
6708
|
$[135] = t45;
|
|
6703
6709
|
} else {
|
|
6704
6710
|
t45 = $[135];
|
|
6705
6711
|
}
|
|
6706
6712
|
let t46;
|
|
6707
|
-
if ($[136] !==
|
|
6708
|
-
t46 = /* @__PURE__ */ jsxRuntimeExports.
|
|
6713
|
+
if ($[136] !== t36 || $[137] !== t38 || $[138] !== t45) {
|
|
6714
|
+
t46 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
6715
|
+
t36,
|
|
6716
|
+
t38,
|
|
6717
|
+
t45
|
|
6718
|
+
] });
|
|
6719
|
+
$[136] = t36;
|
|
6720
|
+
$[137] = t38;
|
|
6721
|
+
$[138] = t45;
|
|
6722
|
+
$[139] = t46;
|
|
6723
|
+
} else {
|
|
6724
|
+
t46 = $[139];
|
|
6725
|
+
}
|
|
6726
|
+
const listPane = t46;
|
|
6727
|
+
let t47;
|
|
6728
|
+
if ($[140] !== isMobile || $[141] !== listPane) {
|
|
6729
|
+
t47 = !isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-[260px] flex-shrink-0 border-r border-border-default flex flex-col", children: listPane });
|
|
6730
|
+
$[140] = isMobile;
|
|
6731
|
+
$[141] = listPane;
|
|
6732
|
+
$[142] = t47;
|
|
6733
|
+
} else {
|
|
6734
|
+
t47 = $[142];
|
|
6735
|
+
}
|
|
6736
|
+
let t48;
|
|
6737
|
+
if ($[143] !== hideListSidebar || $[144] !== isListSidebarOpen || $[145] !== isMobile || $[146] !== listPane || $[147] !== t) {
|
|
6738
|
+
t48 = isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { children: isListSidebarOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(motion.div, { initial: {
|
|
6739
|
+
x: "-100%",
|
|
6740
|
+
opacity: 0
|
|
6741
|
+
}, animate: {
|
|
6742
|
+
x: 0,
|
|
6743
|
+
opacity: 1
|
|
6744
|
+
}, exit: {
|
|
6745
|
+
x: "-100%",
|
|
6746
|
+
opacity: 0
|
|
6747
|
+
}, transition: {
|
|
6748
|
+
duration: 0.3,
|
|
6749
|
+
ease: "easeInOut"
|
|
6750
|
+
}, className: "fixed inset-y-0 left-0 w-full h-full bg-bg-primary z-[1000] shadow-xl flex flex-col", children: [
|
|
6751
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between p-2 h-10 bg-bg-primary-light border-b border-border-dark-light flex-shrink-0", children: [
|
|
6752
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-semibold uppercase", children: t("settings.tabs.mcpServers") }),
|
|
6753
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "p-1 rounded-md hover:bg-bg-tertiary transition-colors", onClick: hideListSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HiXMark, { className: "w-5 h-5 text-text-primary" }) })
|
|
6754
|
+
] }),
|
|
6755
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 flex flex-col", children: listPane })
|
|
6756
|
+
] }) });
|
|
6757
|
+
$[143] = hideListSidebar;
|
|
6758
|
+
$[144] = isListSidebarOpen;
|
|
6759
|
+
$[145] = isMobile;
|
|
6760
|
+
$[146] = listPane;
|
|
6761
|
+
$[147] = t;
|
|
6762
|
+
$[148] = t48;
|
|
6763
|
+
} else {
|
|
6764
|
+
t48 = $[148];
|
|
6765
|
+
}
|
|
6766
|
+
let t49;
|
|
6767
|
+
if ($[149] !== isMobile || $[150] !== selectedServer?.name || $[151] !== t || $[152] !== toggleListSidebar) {
|
|
6768
|
+
t49 = isMobile && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center px-2 py-1.5 border-b border-border-default-dark bg-bg-primary-light flex-shrink-0", children: [
|
|
6769
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "p-1 rounded-md hover:bg-bg-tertiary transition-colors mr-3", onClick: toggleListSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RiMenuUnfold4Line, { className: "w-5 h-5 text-text-primary" }) }),
|
|
6770
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium uppercase truncate", children: selectedServer?.name || t("mcp.selectServer") })
|
|
6771
|
+
] });
|
|
6772
|
+
$[149] = isMobile;
|
|
6773
|
+
$[150] = selectedServer?.name;
|
|
6774
|
+
$[151] = t;
|
|
6775
|
+
$[152] = toggleListSidebar;
|
|
6776
|
+
$[153] = t49;
|
|
6777
|
+
} else {
|
|
6778
|
+
t49 = $[153];
|
|
6779
|
+
}
|
|
6780
|
+
let t50;
|
|
6781
|
+
if ($[154] !== handleReloadServer || $[155] !== handleRemove || $[156] !== selectedServer || $[157] !== selectedServerData?.error || $[158] !== selectedServerData?.loading || $[159] !== selectedServerData?.tools || $[160] !== t) {
|
|
6782
|
+
t50 = selectedServer ? /* @__PURE__ */ jsxRuntimeExports.jsx(McpServerToolsPanel, { serverName: selectedServer.name, config: selectedServer.config, tools: selectedServerData?.tools ?? null, loading: selectedServerData?.loading ?? true, error: selectedServerData?.error ?? null, onReload: () => handleReloadServer(selectedServer.name), onEdit: () => setEditingServer({
|
|
6709
6783
|
name: selectedServer.name,
|
|
6710
6784
|
config: selectedServer.config
|
|
6711
|
-
}), onRemove: () => handleRemove(selectedServer.name) }, selectedServer.name) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full text-xs", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-text-muted", children: t("mcp.selectServer") }) })
|
|
6712
|
-
$[
|
|
6713
|
-
$[
|
|
6714
|
-
$[
|
|
6715
|
-
$[
|
|
6716
|
-
$[
|
|
6717
|
-
$[
|
|
6718
|
-
$[
|
|
6719
|
-
$[
|
|
6720
|
-
} else {
|
|
6721
|
-
|
|
6785
|
+
}), onRemove: () => handleRemove(selectedServer.name) }, selectedServer.name) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full text-xs", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-text-muted", children: t("mcp.selectServer") }) });
|
|
6786
|
+
$[154] = handleReloadServer;
|
|
6787
|
+
$[155] = handleRemove;
|
|
6788
|
+
$[156] = selectedServer;
|
|
6789
|
+
$[157] = selectedServerData?.error;
|
|
6790
|
+
$[158] = selectedServerData?.loading;
|
|
6791
|
+
$[159] = selectedServerData?.tools;
|
|
6792
|
+
$[160] = t;
|
|
6793
|
+
$[161] = t50;
|
|
6794
|
+
} else {
|
|
6795
|
+
t50 = $[161];
|
|
6722
6796
|
}
|
|
6723
|
-
let
|
|
6724
|
-
if ($[
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6797
|
+
let t51;
|
|
6798
|
+
if ($[162] !== t49 || $[163] !== t50) {
|
|
6799
|
+
t51 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col h-full min-w-0", children: [
|
|
6800
|
+
t49,
|
|
6801
|
+
t50
|
|
6802
|
+
] });
|
|
6803
|
+
$[162] = t49;
|
|
6804
|
+
$[163] = t50;
|
|
6805
|
+
$[164] = t51;
|
|
6806
|
+
} else {
|
|
6807
|
+
t51 = $[164];
|
|
6808
|
+
}
|
|
6809
|
+
let t52;
|
|
6810
|
+
if ($[165] !== t47 || $[166] !== t48 || $[167] !== t51) {
|
|
6811
|
+
t52 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
6812
|
+
t47,
|
|
6813
|
+
t48,
|
|
6814
|
+
t51
|
|
6728
6815
|
] });
|
|
6729
|
-
$[
|
|
6730
|
-
$[
|
|
6731
|
-
$[
|
|
6816
|
+
$[165] = t47;
|
|
6817
|
+
$[166] = t48;
|
|
6818
|
+
$[167] = t51;
|
|
6819
|
+
$[168] = t52;
|
|
6732
6820
|
} else {
|
|
6733
|
-
|
|
6821
|
+
t52 = $[168];
|
|
6734
6822
|
}
|
|
6735
|
-
return
|
|
6823
|
+
return t52;
|
|
6736
6824
|
};
|
|
6737
6825
|
function _temp$4(p) {
|
|
6738
6826
|
return p.baseDir;
|
|
@@ -8363,7 +8451,7 @@ const OPENAI_LANGUAGE_OPTIONS = [{
|
|
|
8363
8451
|
value: "cy"
|
|
8364
8452
|
}];
|
|
8365
8453
|
const VoiceSettings = (t0) => {
|
|
8366
|
-
const $ = compilerRuntimeExports.c(
|
|
8454
|
+
const $ = compilerRuntimeExports.c(104);
|
|
8367
8455
|
const {
|
|
8368
8456
|
providers: localProviders,
|
|
8369
8457
|
setProviders: setLocalProviders,
|
|
@@ -8736,6 +8824,9 @@ const VoiceSettings = (t0) => {
|
|
|
8736
8824
|
let t19;
|
|
8737
8825
|
if ($[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
8738
8826
|
t19 = [{
|
|
8827
|
+
label: GeminiVoiceModel.Gemini35TranscribeLive,
|
|
8828
|
+
value: GeminiVoiceModel.Gemini35TranscribeLive
|
|
8829
|
+
}, {
|
|
8739
8830
|
label: GeminiVoiceModel.Gemini31FlashLivePreview,
|
|
8740
8831
|
value: GeminiVoiceModel.Gemini31FlashLivePreview
|
|
8741
8832
|
}, {
|
|
@@ -8855,7 +8946,8 @@ const VoiceSettings = (t0) => {
|
|
|
8855
8946
|
const openAiModel = openAiProvider?.voice?.model ?? OpenAiVoiceModel.GptLiveTranscribe;
|
|
8856
8947
|
const openAiLanguage = openAiProvider?.voice?.language ?? "en";
|
|
8857
8948
|
const geminiProvider = selectedProfile?.provider.name === "gemini" ? selectedProfile.provider : void 0;
|
|
8858
|
-
const geminiModel = geminiProvider?.voice?.model ?? GeminiVoiceModel.
|
|
8949
|
+
const geminiModel = geminiProvider?.voice?.model ?? GeminiVoiceModel.Gemini35TranscribeLive;
|
|
8950
|
+
const isGeminiTranscriptionModel = providerName === "gemini" && geminiModel === GeminiVoiceModel.Gemini35TranscribeLive;
|
|
8859
8951
|
const geminiTemperature = geminiProvider?.voice?.temperature ?? 0.7;
|
|
8860
8952
|
const [geminiTemperatureDraft, setGeminiTemperatureDraft] = reactExports.useState(geminiTemperature);
|
|
8861
8953
|
let t24;
|
|
@@ -8948,7 +9040,7 @@ const VoiceSettings = (t0) => {
|
|
|
8948
9040
|
t30 = $[78];
|
|
8949
9041
|
}
|
|
8950
9042
|
let t31;
|
|
8951
|
-
if ($[79] !== geminiTemperatureDraft || $[80] !== handleIdleTimeoutChange || $[81] !== handleInputDeviceChange || $[82] !== handleModelChange || $[83] !== handleOpenAiLanguageChange || $[84] !== handleSelectProvider || $[85] !== handleSystemInstructionsChange || $[86] !== handleTemperatureChange || $[87] !== hasSupportedProviders || $[88] !== idleTimeoutDraftSeconds || $[89] !== inputDeviceId || $[90] !==
|
|
9043
|
+
if ($[79] !== geminiTemperatureDraft || $[80] !== handleIdleTimeoutChange || $[81] !== handleInputDeviceChange || $[82] !== handleModelChange || $[83] !== handleOpenAiLanguageChange || $[84] !== handleSelectProvider || $[85] !== handleSystemInstructionsChange || $[86] !== handleTemperatureChange || $[87] !== hasSupportedProviders || $[88] !== idleTimeoutDraftSeconds || $[89] !== inputDeviceId || $[90] !== isGeminiTranscriptionModel || $[91] !== microphoneOptions || $[92] !== openAiLanguage || $[93] !== providerName || $[94] !== providerOptions || $[95] !== selectedModelOptions || $[96] !== selectedModelValue || $[97] !== selectedProviderId || $[98] !== systemInstructions || $[99] !== t) {
|
|
8952
9044
|
t31 = !hasSupportedProviders ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 py-5 pb-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-text-secondary", children: t("settings.voice.noSupportedProviders") }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-4 py-5 pb-3 space-y-4", children: [
|
|
8953
9045
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
8954
9046
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Select, { label: t("settings.voice.providerProfile"), options: providerOptions, value: selectedProviderId, onChange: handleSelectProvider }),
|
|
@@ -8961,9 +9053,9 @@ const VoiceSettings = (t0) => {
|
|
|
8961
9053
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { tooltip: t("settings.voice.idleTimeoutHelp"), className: "ml-1" })
|
|
8962
9054
|
] }), type: "number", min: 0, step: 1, value: idleTimeoutDraftSeconds.toString(), onChange: (e) => handleIdleTimeoutChange(e.target.value) }),
|
|
8963
9055
|
providerName === "openai" && /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { label: t("settings.voice.openai.language"), options: OPENAI_LANGUAGE_OPTIONS.map(_temp6), value: openAiLanguage, onChange: handleOpenAiLanguageChange }),
|
|
8964
|
-
providerName === "gemini" && /* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center text-sm", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.voice.gemini.temperature") }) }), min: 0, max: 1, step: 0.05, value: geminiTemperatureDraft, onChange: handleTemperatureChange })
|
|
9056
|
+
providerName === "gemini" && !isGeminiTranscriptionModel && /* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { label: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center text-sm", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("settings.voice.gemini.temperature") }) }), min: 0, max: 1, step: 0.05, value: geminiTemperatureDraft, onChange: handleTemperatureChange })
|
|
8965
9057
|
] }),
|
|
8966
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { label: t("settings.voice.systemInstructions"), value: systemInstructions, onChange: (e_0) => handleSystemInstructionsChange(e_0.target.value), rows: 4 })
|
|
9058
|
+
!isGeminiTranscriptionModel && /* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { label: t("settings.voice.systemInstructions"), value: systemInstructions, onChange: (e_0) => handleSystemInstructionsChange(e_0.target.value), rows: 4 })
|
|
8967
9059
|
] });
|
|
8968
9060
|
$[79] = geminiTemperatureDraft;
|
|
8969
9061
|
$[80] = handleIdleTimeoutChange;
|
|
@@ -8976,27 +9068,28 @@ const VoiceSettings = (t0) => {
|
|
|
8976
9068
|
$[87] = hasSupportedProviders;
|
|
8977
9069
|
$[88] = idleTimeoutDraftSeconds;
|
|
8978
9070
|
$[89] = inputDeviceId;
|
|
8979
|
-
$[90] =
|
|
8980
|
-
$[91] =
|
|
8981
|
-
$[92] =
|
|
8982
|
-
$[93] =
|
|
8983
|
-
$[94] =
|
|
8984
|
-
$[95] =
|
|
8985
|
-
$[96] =
|
|
8986
|
-
$[97] =
|
|
8987
|
-
$[98] =
|
|
8988
|
-
$[99] =
|
|
9071
|
+
$[90] = isGeminiTranscriptionModel;
|
|
9072
|
+
$[91] = microphoneOptions;
|
|
9073
|
+
$[92] = openAiLanguage;
|
|
9074
|
+
$[93] = providerName;
|
|
9075
|
+
$[94] = providerOptions;
|
|
9076
|
+
$[95] = selectedModelOptions;
|
|
9077
|
+
$[96] = selectedModelValue;
|
|
9078
|
+
$[97] = selectedProviderId;
|
|
9079
|
+
$[98] = systemInstructions;
|
|
9080
|
+
$[99] = t;
|
|
9081
|
+
$[100] = t31;
|
|
8989
9082
|
} else {
|
|
8990
|
-
t31 = $[
|
|
9083
|
+
t31 = $[100];
|
|
8991
9084
|
}
|
|
8992
9085
|
let t32;
|
|
8993
|
-
if ($[
|
|
9086
|
+
if ($[101] !== t30 || $[102] !== t31) {
|
|
8994
9087
|
t32 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Section, { id: "voice", title: t30, children: t31 }) });
|
|
8995
|
-
$[
|
|
8996
|
-
$[
|
|
8997
|
-
$[
|
|
9088
|
+
$[101] = t30;
|
|
9089
|
+
$[102] = t31;
|
|
9090
|
+
$[103] = t32;
|
|
8998
9091
|
} else {
|
|
8999
|
-
t32 = $[
|
|
9092
|
+
t32 = $[103];
|
|
9000
9093
|
}
|
|
9001
9094
|
return t32;
|
|
9002
9095
|
};
|
|
@@ -11411,11 +11504,12 @@ const getExtensionData = (extension) => {
|
|
|
11411
11504
|
projectDir: isLoadedExtension ? extension.projectDir : void 0,
|
|
11412
11505
|
readmeContent: extension.readmeContent,
|
|
11413
11506
|
iconUrl: isLoadedExtension ? extension.metadata.iconUrl : extension.iconUrl,
|
|
11414
|
-
supportedOS: isLoadedExtension ? extension.metadata.supportedOS : extension.supportedOS
|
|
11507
|
+
supportedOS: isLoadedExtension ? extension.metadata.supportedOS : extension.supportedOS,
|
|
11508
|
+
installCount: isLoadedExtension ? void 0 : extension.installCount
|
|
11415
11509
|
};
|
|
11416
11510
|
};
|
|
11417
11511
|
const ExtensionCard = (t0) => {
|
|
11418
|
-
const $ = compilerRuntimeExports.c(
|
|
11512
|
+
const $ = compilerRuntimeExports.c(131);
|
|
11419
11513
|
const {
|
|
11420
11514
|
extension,
|
|
11421
11515
|
isInstalled: t1,
|
|
@@ -11462,26 +11556,29 @@ const ExtensionCard = (t0) => {
|
|
|
11462
11556
|
let t11;
|
|
11463
11557
|
let t12;
|
|
11464
11558
|
let t13;
|
|
11559
|
+
let t14;
|
|
11560
|
+
let t15;
|
|
11561
|
+
let t16;
|
|
11465
11562
|
let t8;
|
|
11466
11563
|
let t9;
|
|
11467
|
-
if ($[0] !== currentOS || $[1] !== extension || $[2] !== installedFilePath || $[3] !== isDisabled || $[4] !== isExpanded || $[5] !== isInstalledProp || $[6] !== onInstall || $[7] !== onReload || $[8] !== onToggle || $[9] !== onUninstall || $[10] !== onUpdate) {
|
|
11564
|
+
if ($[0] !== currentOS || $[1] !== extension || $[2] !== installedFilePath || $[3] !== isDisabled || $[4] !== isExpanded || $[5] !== isInstalledProp || $[6] !== onInstall || $[7] !== onReload || $[8] !== onToggle || $[9] !== onUninstall || $[10] !== onUpdate || $[11] !== t) {
|
|
11468
11565
|
data = getExtensionData(extension);
|
|
11469
11566
|
hasReadme = data.readmeContent && data.readmeContent.trim().length > 0;
|
|
11470
11567
|
isInstalled = isInstalledProp || "metadata" in extension;
|
|
11471
11568
|
hasConfig = isInstalled && "metadata" in extension ? extension.metadata.hasConfig ?? false : false;
|
|
11472
11569
|
const filePath = installedFilePath ?? data.filePath;
|
|
11473
11570
|
isOSNotSupported = data.supportedOS && currentOS ? !data.supportedOS.includes(currentOS) : false;
|
|
11474
|
-
let
|
|
11475
|
-
if ($[
|
|
11476
|
-
|
|
11571
|
+
let t172;
|
|
11572
|
+
if ($[34] !== isExpanded) {
|
|
11573
|
+
t172 = () => {
|
|
11477
11574
|
setIsExpanded(!isExpanded);
|
|
11478
11575
|
};
|
|
11479
|
-
$[
|
|
11480
|
-
$[
|
|
11576
|
+
$[34] = isExpanded;
|
|
11577
|
+
$[35] = t172;
|
|
11481
11578
|
} else {
|
|
11482
|
-
|
|
11579
|
+
t172 = $[35];
|
|
11483
11580
|
}
|
|
11484
|
-
handleToggleExpand =
|
|
11581
|
+
handleToggleExpand = t172;
|
|
11485
11582
|
handleToggleDisabled = () => {
|
|
11486
11583
|
if (onToggle && filePath) {
|
|
11487
11584
|
onToggle(filePath, isDisabled);
|
|
@@ -11492,76 +11589,93 @@ const ExtensionCard = (t0) => {
|
|
|
11492
11589
|
onUninstall(filePath);
|
|
11493
11590
|
}
|
|
11494
11591
|
};
|
|
11495
|
-
let
|
|
11496
|
-
if ($[
|
|
11497
|
-
|
|
11592
|
+
let t182;
|
|
11593
|
+
if ($[36] !== extension || $[37] !== onInstall) {
|
|
11594
|
+
t182 = () => {
|
|
11498
11595
|
if (onInstall && !("metadata" in extension)) {
|
|
11499
11596
|
onInstall(extension);
|
|
11500
11597
|
}
|
|
11501
11598
|
};
|
|
11502
|
-
$[
|
|
11503
|
-
$[
|
|
11504
|
-
$[
|
|
11599
|
+
$[36] = extension;
|
|
11600
|
+
$[37] = onInstall;
|
|
11601
|
+
$[38] = t182;
|
|
11505
11602
|
} else {
|
|
11506
|
-
|
|
11603
|
+
t182 = $[38];
|
|
11507
11604
|
}
|
|
11508
|
-
handleInstall =
|
|
11509
|
-
let
|
|
11510
|
-
if ($[
|
|
11511
|
-
|
|
11605
|
+
handleInstall = t182;
|
|
11606
|
+
let t192;
|
|
11607
|
+
if ($[39] !== onUpdate) {
|
|
11608
|
+
t192 = () => {
|
|
11512
11609
|
onUpdate?.();
|
|
11513
11610
|
};
|
|
11514
|
-
$[
|
|
11515
|
-
$[
|
|
11611
|
+
$[39] = onUpdate;
|
|
11612
|
+
$[40] = t192;
|
|
11516
11613
|
} else {
|
|
11517
|
-
|
|
11614
|
+
t192 = $[40];
|
|
11518
11615
|
}
|
|
11519
|
-
handleUpdate =
|
|
11616
|
+
handleUpdate = t192;
|
|
11520
11617
|
handleReload = () => {
|
|
11521
11618
|
if (onReload && filePath) {
|
|
11522
11619
|
onReload(filePath);
|
|
11523
11620
|
}
|
|
11524
11621
|
};
|
|
11525
|
-
let
|
|
11526
|
-
if ($[
|
|
11527
|
-
|
|
11622
|
+
let t202;
|
|
11623
|
+
if ($[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
11624
|
+
t202 = () => {
|
|
11528
11625
|
setIsSettingsOpen(true);
|
|
11529
11626
|
};
|
|
11530
|
-
$[
|
|
11627
|
+
$[41] = t202;
|
|
11531
11628
|
} else {
|
|
11532
|
-
|
|
11629
|
+
t202 = $[41];
|
|
11533
11630
|
}
|
|
11534
|
-
handleOpenSettings =
|
|
11535
|
-
let
|
|
11536
|
-
if ($[
|
|
11537
|
-
|
|
11631
|
+
handleOpenSettings = t202;
|
|
11632
|
+
let t212;
|
|
11633
|
+
if ($[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
11634
|
+
t212 = () => {
|
|
11538
11635
|
setIsSettingsOpen(false);
|
|
11539
11636
|
};
|
|
11540
|
-
$[
|
|
11637
|
+
$[42] = t212;
|
|
11541
11638
|
} else {
|
|
11542
|
-
|
|
11639
|
+
t212 = $[42];
|
|
11640
|
+
}
|
|
11641
|
+
handleCloseSettings = t212;
|
|
11642
|
+
if ($[43] !== isDisabled || $[44] !== isInstalled) {
|
|
11643
|
+
t16 = clsx("group relative rounded-xl transition-all duration-200", isInstalled ? clsx("bg-bg-secondary border-2 shadow-subtle border-border-default", isDisabled && "opacity-60") : "bg-bg-secondary border-2 border-border-default");
|
|
11644
|
+
$[43] = isDisabled;
|
|
11645
|
+
$[44] = isInstalled;
|
|
11646
|
+
$[45] = t16;
|
|
11647
|
+
} else {
|
|
11648
|
+
t16 = $[45];
|
|
11543
11649
|
}
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11650
|
+
t15 = "p-4";
|
|
11651
|
+
t14 = "flex items-start justify-between gap-4";
|
|
11652
|
+
t12 = "flex gap-3 flex-1 min-w-0";
|
|
11653
|
+
const t222 = isDisabled && "opacity-50";
|
|
11654
|
+
let t232;
|
|
11655
|
+
if ($[46] !== t222) {
|
|
11656
|
+
t232 = clsx("w-12 h-12 rounded-xl flex items-center justify-center text-text-primary font-bold text-lg flex-shrink-0 bg-bg-primary-light-strong overflow-hidden", t222);
|
|
11657
|
+
$[46] = t222;
|
|
11658
|
+
$[47] = t232;
|
|
11550
11659
|
} else {
|
|
11551
|
-
|
|
11552
|
-
}
|
|
11553
|
-
|
|
11554
|
-
t11 = "flex
|
|
11555
|
-
|
|
11556
|
-
const
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
$[
|
|
11660
|
+
t232 = $[47];
|
|
11661
|
+
}
|
|
11662
|
+
t13 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t232, children: data.iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: data.iconUrl, alt: data.name, className: "w-full h-full object-cover" }) : data.name.charAt(0).toUpperCase() });
|
|
11663
|
+
t11 = "flex-1 min-w-0";
|
|
11664
|
+
t8 = "flex items-center gap-2 flex-wrap mb-1";
|
|
11665
|
+
const t242 = isDisabled ? "text-text-muted" : "text-text-primary";
|
|
11666
|
+
let t252;
|
|
11667
|
+
if ($[48] !== t242) {
|
|
11668
|
+
t252 = clsx("text-sm font-semibold truncate mr-2", t242);
|
|
11669
|
+
$[48] = t242;
|
|
11670
|
+
$[49] = t252;
|
|
11561
11671
|
} else {
|
|
11562
|
-
|
|
11672
|
+
t252 = $[49];
|
|
11563
11673
|
}
|
|
11564
|
-
t9 =
|
|
11674
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: t252, children: data.name });
|
|
11675
|
+
t10 = data.installCount !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { content: t("settings.extensions.totalInstalls"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-3xs px-2 py-0.5 rounded bg-bg-tertiary text-text-tertiary font-medium flex items-center gap-1", children: [
|
|
11676
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FaDownload, { className: "w-2 h-2" }),
|
|
11677
|
+
data.installCount.toLocaleString()
|
|
11678
|
+
] }) });
|
|
11565
11679
|
$[0] = currentOS;
|
|
11566
11680
|
$[1] = extension;
|
|
11567
11681
|
$[2] = installedFilePath;
|
|
@@ -11573,141 +11687,119 @@ const ExtensionCard = (t0) => {
|
|
|
11573
11687
|
$[8] = onToggle;
|
|
11574
11688
|
$[9] = onUninstall;
|
|
11575
11689
|
$[10] = onUpdate;
|
|
11576
|
-
$[11] =
|
|
11577
|
-
$[12] =
|
|
11578
|
-
$[13] =
|
|
11579
|
-
$[14] =
|
|
11580
|
-
$[15] =
|
|
11581
|
-
$[16] =
|
|
11582
|
-
$[17] =
|
|
11583
|
-
$[18] =
|
|
11584
|
-
$[19] =
|
|
11585
|
-
$[20] =
|
|
11586
|
-
$[21] =
|
|
11587
|
-
$[22] =
|
|
11588
|
-
$[23] =
|
|
11589
|
-
$[24] =
|
|
11590
|
-
$[25] =
|
|
11591
|
-
$[26] =
|
|
11592
|
-
$[27] =
|
|
11593
|
-
$[28] =
|
|
11594
|
-
$[29] =
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
$[
|
|
11620
|
-
$[
|
|
11621
|
-
$[
|
|
11622
|
-
} else {
|
|
11623
|
-
t14 = $[46];
|
|
11624
|
-
}
|
|
11625
|
-
const t15 = isDisabled ? "text-text-muted" : "text-text-primary";
|
|
11626
|
-
let t16;
|
|
11627
|
-
if ($[47] !== t15) {
|
|
11628
|
-
t16 = clsx("text-sm font-semibold truncate", t15);
|
|
11629
|
-
$[47] = t15;
|
|
11630
|
-
$[48] = t16;
|
|
11631
|
-
} else {
|
|
11632
|
-
t16 = $[48];
|
|
11633
|
-
}
|
|
11634
|
-
let t17;
|
|
11635
|
-
if ($[49] !== data.name || $[50] !== t16) {
|
|
11636
|
-
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: t16, children: data.name });
|
|
11637
|
-
$[49] = data.name;
|
|
11638
|
-
$[50] = t16;
|
|
11639
|
-
$[51] = t17;
|
|
11640
|
-
} else {
|
|
11641
|
-
t17 = $[51];
|
|
11690
|
+
$[11] = t;
|
|
11691
|
+
$[12] = data;
|
|
11692
|
+
$[13] = handleCloseSettings;
|
|
11693
|
+
$[14] = handleInstall;
|
|
11694
|
+
$[15] = handleOpenSettings;
|
|
11695
|
+
$[16] = handleReload;
|
|
11696
|
+
$[17] = handleToggleDisabled;
|
|
11697
|
+
$[18] = handleToggleExpand;
|
|
11698
|
+
$[19] = handleUninstall;
|
|
11699
|
+
$[20] = handleUpdate;
|
|
11700
|
+
$[21] = hasConfig;
|
|
11701
|
+
$[22] = hasReadme;
|
|
11702
|
+
$[23] = isInstalled;
|
|
11703
|
+
$[24] = isOSNotSupported;
|
|
11704
|
+
$[25] = t10;
|
|
11705
|
+
$[26] = t11;
|
|
11706
|
+
$[27] = t12;
|
|
11707
|
+
$[28] = t13;
|
|
11708
|
+
$[29] = t14;
|
|
11709
|
+
$[30] = t15;
|
|
11710
|
+
$[31] = t16;
|
|
11711
|
+
$[32] = t8;
|
|
11712
|
+
$[33] = t9;
|
|
11713
|
+
} else {
|
|
11714
|
+
data = $[12];
|
|
11715
|
+
handleCloseSettings = $[13];
|
|
11716
|
+
handleInstall = $[14];
|
|
11717
|
+
handleOpenSettings = $[15];
|
|
11718
|
+
handleReload = $[16];
|
|
11719
|
+
handleToggleDisabled = $[17];
|
|
11720
|
+
handleToggleExpand = $[18];
|
|
11721
|
+
handleUninstall = $[19];
|
|
11722
|
+
handleUpdate = $[20];
|
|
11723
|
+
hasConfig = $[21];
|
|
11724
|
+
hasReadme = $[22];
|
|
11725
|
+
isInstalled = $[23];
|
|
11726
|
+
isOSNotSupported = $[24];
|
|
11727
|
+
t10 = $[25];
|
|
11728
|
+
t11 = $[26];
|
|
11729
|
+
t12 = $[27];
|
|
11730
|
+
t13 = $[28];
|
|
11731
|
+
t14 = $[29];
|
|
11732
|
+
t15 = $[30];
|
|
11733
|
+
t16 = $[31];
|
|
11734
|
+
t8 = $[32];
|
|
11735
|
+
t9 = $[33];
|
|
11642
11736
|
}
|
|
11737
|
+
const t17 = `v${data.version}`;
|
|
11643
11738
|
let t18;
|
|
11644
|
-
if ($[
|
|
11645
|
-
t18 = /* @__PURE__ */ jsxRuntimeExports.
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
] });
|
|
11649
|
-
$[52] = data.version;
|
|
11650
|
-
$[53] = t18;
|
|
11739
|
+
if ($[50] !== t17) {
|
|
11740
|
+
t18 = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-3xs px-2 py-0.5 rounded bg-bg-tertiary text-text-tertiary font-medium", children: t17 });
|
|
11741
|
+
$[50] = t17;
|
|
11742
|
+
$[51] = t18;
|
|
11651
11743
|
} else {
|
|
11652
|
-
t18 = $[
|
|
11744
|
+
t18 = $[51];
|
|
11653
11745
|
}
|
|
11654
11746
|
let t19;
|
|
11655
|
-
if ($[
|
|
11656
|
-
t19 = isInstalled && !isDisabled && /* @__PURE__ */ jsxRuntimeExports.
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
]
|
|
11660
|
-
$[
|
|
11661
|
-
$[55] = isInstalled;
|
|
11662
|
-
$[56] = t;
|
|
11663
|
-
$[57] = t19;
|
|
11747
|
+
if ($[52] !== isDisabled || $[53] !== isInstalled || $[54] !== t) {
|
|
11748
|
+
t19 = isInstalled && !isDisabled && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-3xs px-2 py-0.5 rounded bg-success-subtle text-success font-semibold flex items-center gap-1", children: `✓ ${t("settings.extensions.active")}` });
|
|
11749
|
+
$[52] = isDisabled;
|
|
11750
|
+
$[53] = isInstalled;
|
|
11751
|
+
$[54] = t;
|
|
11752
|
+
$[55] = t19;
|
|
11664
11753
|
} else {
|
|
11665
|
-
t19 = $[
|
|
11754
|
+
t19 = $[55];
|
|
11666
11755
|
}
|
|
11667
11756
|
let t20;
|
|
11668
|
-
if ($[
|
|
11757
|
+
if ($[56] !== isDisabled || $[57] !== isInstalled || $[58] !== t) {
|
|
11669
11758
|
t20 = isInstalled && isDisabled && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-3xs px-2 py-0.5 rounded bg-bg-tertiary text-text-muted font-semibold", children: t("settings.extensions.disabled") });
|
|
11670
|
-
$[
|
|
11671
|
-
$[
|
|
11672
|
-
$[
|
|
11673
|
-
$[
|
|
11759
|
+
$[56] = isDisabled;
|
|
11760
|
+
$[57] = isInstalled;
|
|
11761
|
+
$[58] = t;
|
|
11762
|
+
$[59] = t20;
|
|
11674
11763
|
} else {
|
|
11675
|
-
t20 = $[
|
|
11764
|
+
t20 = $[59];
|
|
11676
11765
|
}
|
|
11677
11766
|
let t21;
|
|
11678
|
-
if ($[
|
|
11767
|
+
if ($[60] !== data.projectDir || $[61] !== t) {
|
|
11679
11768
|
t21 = data.projectDir && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-3xs px-2 py-0.5 rounded bg-info-subtle text-info font-semibold", children: t("settings.extensions.projectSpecific") });
|
|
11680
|
-
$[
|
|
11681
|
-
$[
|
|
11682
|
-
$[
|
|
11769
|
+
$[60] = data.projectDir;
|
|
11770
|
+
$[61] = t;
|
|
11771
|
+
$[62] = t21;
|
|
11683
11772
|
} else {
|
|
11684
|
-
t21 = $[
|
|
11773
|
+
t21 = $[62];
|
|
11685
11774
|
}
|
|
11686
11775
|
let t22;
|
|
11687
|
-
if ($[
|
|
11688
|
-
t22 = isOSNotSupported && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { content: t("settings.extensions.osNotSupportedTooltip"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-3xs px-2 py-0.5 rounded bg-warning-subtle text-warning font-semibold
|
|
11689
|
-
$[
|
|
11690
|
-
$[
|
|
11691
|
-
$[
|
|
11776
|
+
if ($[63] !== isOSNotSupported || $[64] !== t) {
|
|
11777
|
+
t22 = isOSNotSupported && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { content: t("settings.extensions.osNotSupportedTooltip"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-3xs px-2 py-0.5 rounded bg-warning-subtle text-warning font-semibold", children: t("settings.extensions.osNotSupported") }) });
|
|
11778
|
+
$[63] = isOSNotSupported;
|
|
11779
|
+
$[64] = t;
|
|
11780
|
+
$[65] = t22;
|
|
11692
11781
|
} else {
|
|
11693
|
-
t22 = $[
|
|
11782
|
+
t22 = $[65];
|
|
11694
11783
|
}
|
|
11695
11784
|
let t23;
|
|
11696
|
-
if ($[68] !==
|
|
11697
|
-
t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
11698
|
-
|
|
11785
|
+
if ($[66] !== t10 || $[67] !== t18 || $[68] !== t19 || $[69] !== t20 || $[70] !== t21 || $[71] !== t22 || $[72] !== t8 || $[73] !== t9) {
|
|
11786
|
+
t23 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t8, children: [
|
|
11787
|
+
t9,
|
|
11788
|
+
t10,
|
|
11699
11789
|
t18,
|
|
11700
11790
|
t19,
|
|
11701
11791
|
t20,
|
|
11702
11792
|
t21,
|
|
11703
11793
|
t22
|
|
11704
11794
|
] });
|
|
11705
|
-
$[
|
|
11706
|
-
$[
|
|
11707
|
-
$[
|
|
11708
|
-
$[
|
|
11709
|
-
$[
|
|
11710
|
-
$[
|
|
11795
|
+
$[66] = t10;
|
|
11796
|
+
$[67] = t18;
|
|
11797
|
+
$[68] = t19;
|
|
11798
|
+
$[69] = t20;
|
|
11799
|
+
$[70] = t21;
|
|
11800
|
+
$[71] = t22;
|
|
11801
|
+
$[72] = t8;
|
|
11802
|
+
$[73] = t9;
|
|
11711
11803
|
$[74] = t23;
|
|
11712
11804
|
} else {
|
|
11713
11805
|
t23 = $[74];
|
|
@@ -11735,34 +11827,35 @@ const ExtensionCard = (t0) => {
|
|
|
11735
11827
|
t25 = $[80];
|
|
11736
11828
|
}
|
|
11737
11829
|
let t26;
|
|
11738
|
-
if ($[81] !==
|
|
11739
|
-
t26 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
11830
|
+
if ($[81] !== t11 || $[82] !== t23 || $[83] !== t24 || $[84] !== t25) {
|
|
11831
|
+
t26 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t11, children: [
|
|
11740
11832
|
t23,
|
|
11741
11833
|
t24,
|
|
11742
11834
|
t25
|
|
11743
11835
|
] });
|
|
11744
|
-
$[81] =
|
|
11745
|
-
$[82] =
|
|
11746
|
-
$[83] =
|
|
11747
|
-
$[84] =
|
|
11836
|
+
$[81] = t11;
|
|
11837
|
+
$[82] = t23;
|
|
11838
|
+
$[83] = t24;
|
|
11839
|
+
$[84] = t25;
|
|
11840
|
+
$[85] = t26;
|
|
11748
11841
|
} else {
|
|
11749
|
-
t26 = $[
|
|
11842
|
+
t26 = $[85];
|
|
11750
11843
|
}
|
|
11751
11844
|
let t27;
|
|
11752
|
-
if ($[
|
|
11753
|
-
t27 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
11754
|
-
|
|
11845
|
+
if ($[86] !== t12 || $[87] !== t13 || $[88] !== t26) {
|
|
11846
|
+
t27 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t12, children: [
|
|
11847
|
+
t13,
|
|
11755
11848
|
t26
|
|
11756
11849
|
] });
|
|
11757
|
-
$[
|
|
11758
|
-
$[
|
|
11759
|
-
$[
|
|
11760
|
-
$[
|
|
11850
|
+
$[86] = t12;
|
|
11851
|
+
$[87] = t13;
|
|
11852
|
+
$[88] = t26;
|
|
11853
|
+
$[89] = t27;
|
|
11761
11854
|
} else {
|
|
11762
|
-
t27 = $[
|
|
11855
|
+
t27 = $[89];
|
|
11763
11856
|
}
|
|
11764
11857
|
let t28;
|
|
11765
|
-
if ($[
|
|
11858
|
+
if ($[90] !== handleInstall || $[91] !== handleOpenSettings || $[92] !== handleReload || $[93] !== handleToggleDisabled || $[94] !== handleUninstall || $[95] !== handleUpdate || $[96] !== hasConfig || $[97] !== hasUpdate || $[98] !== isDisabled || $[99] !== isInstalled || $[100] !== isInstalling || $[101] !== isReloading || $[102] !== isUninstalling || $[103] !== isUpdating || $[104] !== t) {
|
|
11766
11859
|
t28 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-3 flex-shrink-0", children: isInstalled ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
11767
11860
|
hasConfig && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaCog, { className: "w-3.5 h-3.5" }), onClick: handleOpenSettings, tooltip: t("settings.extensions.openSettings"), className: "p-1" }),
|
|
11768
11861
|
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaSync, { className: clsx("w-3.5 h-3.5", isReloading && "animate-spin") }), onClick: handleReload, disabled: isReloading, tooltip: isReloading ? t("settings.extensions.reloading") : t("settings.extensions.reload"), className: "p-1" }),
|
|
@@ -11776,89 +11869,89 @@ const ExtensionCard = (t0) => {
|
|
|
11776
11869
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FaDownload, { className: "mr-1.5 w-3 h-3" }),
|
|
11777
11870
|
isInstalling ? t("settings.extensions.installing") : t("settings.extensions.install")
|
|
11778
11871
|
] }) });
|
|
11779
|
-
$[
|
|
11780
|
-
$[
|
|
11781
|
-
$[
|
|
11782
|
-
$[
|
|
11783
|
-
$[
|
|
11784
|
-
$[
|
|
11785
|
-
$[
|
|
11786
|
-
$[
|
|
11787
|
-
$[
|
|
11788
|
-
$[
|
|
11789
|
-
$[
|
|
11790
|
-
$[
|
|
11791
|
-
$[
|
|
11792
|
-
$[
|
|
11793
|
-
$[
|
|
11794
|
-
$[
|
|
11872
|
+
$[90] = handleInstall;
|
|
11873
|
+
$[91] = handleOpenSettings;
|
|
11874
|
+
$[92] = handleReload;
|
|
11875
|
+
$[93] = handleToggleDisabled;
|
|
11876
|
+
$[94] = handleUninstall;
|
|
11877
|
+
$[95] = handleUpdate;
|
|
11878
|
+
$[96] = hasConfig;
|
|
11879
|
+
$[97] = hasUpdate;
|
|
11880
|
+
$[98] = isDisabled;
|
|
11881
|
+
$[99] = isInstalled;
|
|
11882
|
+
$[100] = isInstalling;
|
|
11883
|
+
$[101] = isReloading;
|
|
11884
|
+
$[102] = isUninstalling;
|
|
11885
|
+
$[103] = isUpdating;
|
|
11886
|
+
$[104] = t;
|
|
11887
|
+
$[105] = t28;
|
|
11795
11888
|
} else {
|
|
11796
|
-
t28 = $[
|
|
11889
|
+
t28 = $[105];
|
|
11797
11890
|
}
|
|
11798
11891
|
let t29;
|
|
11799
|
-
if ($[
|
|
11800
|
-
t29 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
11892
|
+
if ($[106] !== t14 || $[107] !== t27 || $[108] !== t28) {
|
|
11893
|
+
t29 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t14, children: [
|
|
11801
11894
|
t27,
|
|
11802
11895
|
t28
|
|
11803
11896
|
] });
|
|
11804
|
-
$[
|
|
11805
|
-
$[
|
|
11806
|
-
$[
|
|
11807
|
-
$[
|
|
11897
|
+
$[106] = t14;
|
|
11898
|
+
$[107] = t27;
|
|
11899
|
+
$[108] = t28;
|
|
11900
|
+
$[109] = t29;
|
|
11808
11901
|
} else {
|
|
11809
|
-
t29 = $[
|
|
11902
|
+
t29 = $[109];
|
|
11810
11903
|
}
|
|
11811
11904
|
let t30;
|
|
11812
|
-
if ($[
|
|
11813
|
-
t30 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className:
|
|
11814
|
-
$[
|
|
11815
|
-
$[
|
|
11816
|
-
$[
|
|
11905
|
+
if ($[110] !== t15 || $[111] !== t29) {
|
|
11906
|
+
t30 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t15, children: t29 });
|
|
11907
|
+
$[110] = t15;
|
|
11908
|
+
$[111] = t29;
|
|
11909
|
+
$[112] = t30;
|
|
11817
11910
|
} else {
|
|
11818
|
-
t30 = $[
|
|
11911
|
+
t30 = $[112];
|
|
11819
11912
|
}
|
|
11820
11913
|
let t31;
|
|
11821
|
-
if ($[
|
|
11914
|
+
if ($[113] !== data.readmeContent || $[114] !== handleToggleExpand || $[115] !== hasReadme || $[116] !== isExpanded || $[117] !== t) {
|
|
11822
11915
|
t31 = hasReadme && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
11823
11916
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center pb-2 -mt-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: handleToggleExpand, className: "flex items-center justify-center w-8 h-6 rounded hover:bg-bg-tertiary transition-colors", "aria-label": isExpanded ? t("settings.extensions.collapseReadme") : t("settings.extensions.expandReadme"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronDown, { className: clsx("w-3 h-3 text-text-muted transition-transform duration-200", isExpanded && "rotate-180") }) }) }),
|
|
11824
11917
|
isExpanded && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border-t border-border-default p-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-4xs text-text-primary max-w-none max-h-96 overflow-y-auto bg-bg-primary-light rounded-md p-4 scrollbar-thin scrollbar-track-bg-secondary scrollbar-thumb-bg-tertiary hover:scrollbar-thumb-bg-fourth", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Markdown, { remarkPlugins: REMARK_PLUGINS, components: MARKDOWN_COMPONENTS, children: data.readmeContent }) }) })
|
|
11825
11918
|
] });
|
|
11826
|
-
$[
|
|
11827
|
-
$[
|
|
11828
|
-
$[
|
|
11829
|
-
$[
|
|
11830
|
-
$[
|
|
11831
|
-
$[
|
|
11919
|
+
$[113] = data.readmeContent;
|
|
11920
|
+
$[114] = handleToggleExpand;
|
|
11921
|
+
$[115] = hasReadme;
|
|
11922
|
+
$[116] = isExpanded;
|
|
11923
|
+
$[117] = t;
|
|
11924
|
+
$[118] = t31;
|
|
11832
11925
|
} else {
|
|
11833
|
-
t31 = $[
|
|
11926
|
+
t31 = $[118];
|
|
11834
11927
|
}
|
|
11835
11928
|
let t32;
|
|
11836
|
-
if ($[
|
|
11929
|
+
if ($[119] !== data.name || $[120] !== data.projectDir || $[121] !== extension || $[122] !== handleCloseSettings || $[123] !== isInstalled || $[124] !== isSettingsOpen) {
|
|
11837
11930
|
t32 = isSettingsOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(ExtensionSettingsDialog, { extensionId: isInstalled ? extension.id : "", extensionName: data.name, projectDir: data.projectDir, onClose: handleCloseSettings });
|
|
11838
|
-
$[
|
|
11839
|
-
$[
|
|
11840
|
-
$[
|
|
11841
|
-
$[
|
|
11842
|
-
$[
|
|
11843
|
-
$[
|
|
11844
|
-
$[
|
|
11931
|
+
$[119] = data.name;
|
|
11932
|
+
$[120] = data.projectDir;
|
|
11933
|
+
$[121] = extension;
|
|
11934
|
+
$[122] = handleCloseSettings;
|
|
11935
|
+
$[123] = isInstalled;
|
|
11936
|
+
$[124] = isSettingsOpen;
|
|
11937
|
+
$[125] = t32;
|
|
11845
11938
|
} else {
|
|
11846
|
-
t32 = $[
|
|
11939
|
+
t32 = $[125];
|
|
11847
11940
|
}
|
|
11848
11941
|
let t33;
|
|
11849
|
-
if ($[
|
|
11850
|
-
t33 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
11942
|
+
if ($[126] !== t16 || $[127] !== t30 || $[128] !== t31 || $[129] !== t32) {
|
|
11943
|
+
t33 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t16, children: [
|
|
11851
11944
|
t30,
|
|
11852
11945
|
t31,
|
|
11853
11946
|
t32
|
|
11854
11947
|
] });
|
|
11855
|
-
$[
|
|
11856
|
-
$[
|
|
11857
|
-
$[
|
|
11858
|
-
$[
|
|
11859
|
-
$[
|
|
11948
|
+
$[126] = t16;
|
|
11949
|
+
$[127] = t30;
|
|
11950
|
+
$[128] = t31;
|
|
11951
|
+
$[129] = t32;
|
|
11952
|
+
$[130] = t33;
|
|
11860
11953
|
} else {
|
|
11861
|
-
t33 = $[
|
|
11954
|
+
t33 = $[130];
|
|
11862
11955
|
}
|
|
11863
11956
|
return t33;
|
|
11864
11957
|
};
|
|
@@ -11905,6 +11998,13 @@ const ExtensionsSettings = ({
|
|
|
11905
11998
|
const [expandedRepositories, setExpandedRepositories] = reactExports.useState(/* @__PURE__ */ new Set());
|
|
11906
11999
|
const [searchQuery, setSearchQuery] = reactExports.useState("");
|
|
11907
12000
|
const [selectedCapabilities, setSelectedCapabilities] = reactExports.useState(/* @__PURE__ */ new Set());
|
|
12001
|
+
const [availableSort, setAvailableSort] = reactExports.useState(
|
|
12002
|
+
"most-installed"
|
|
12003
|
+
/* MostInstalled */
|
|
12004
|
+
);
|
|
12005
|
+
const handleAvailableSortChange = (value) => {
|
|
12006
|
+
setAvailableSort(value);
|
|
12007
|
+
};
|
|
11908
12008
|
const [loadingRepositories, setLoadingRepositories] = reactExports.useState(/* @__PURE__ */ new Set());
|
|
11909
12009
|
const contexts = reactExports.useMemo(() => ["global", ...openProjects.map((p) => p.baseDir)], [openProjects]);
|
|
11910
12010
|
const [contextIndex, setContextIndex] = reactExports.useState(0);
|
|
@@ -12200,9 +12300,18 @@ const ExtensionsSettings = ({
|
|
|
12200
12300
|
}
|
|
12201
12301
|
return true;
|
|
12202
12302
|
});
|
|
12303
|
+
const sortedAvailableExtensions = [...filteredAvailableExtensions].sort((a_0, b_0) => {
|
|
12304
|
+
if (availableSort === "most-installed") {
|
|
12305
|
+
const diff = (b_0.installCount ?? 0) - (a_0.installCount ?? 0);
|
|
12306
|
+
if (diff !== 0) {
|
|
12307
|
+
return diff;
|
|
12308
|
+
}
|
|
12309
|
+
}
|
|
12310
|
+
return a_0.name.localeCompare(b_0.name);
|
|
12311
|
+
});
|
|
12203
12312
|
const renderAvailableTab = () => {
|
|
12204
12313
|
const extensionsByRepository = /* @__PURE__ */ new Map();
|
|
12205
|
-
|
|
12314
|
+
sortedAvailableExtensions.forEach((extension_2) => {
|
|
12206
12315
|
const repo = extension_2.repositoryUrl;
|
|
12207
12316
|
if (!extensionsByRepository.has(repo)) {
|
|
12208
12317
|
extensionsByRepository.set(repo, []);
|
|
@@ -12285,8 +12394,8 @@ const ExtensionsSettings = ({
|
|
|
12285
12394
|
const isLoading = loadingInstalled || loadingAvailable;
|
|
12286
12395
|
const allCapabilities = Array.from(/* @__PURE__ */ new Set([...installedExtensions.flatMap((ext_3) => ext_3.metadata.capabilities || []), ...availableExtensions.flatMap((ext_4) => ext_4.capabilities || [])])).sort();
|
|
12287
12396
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-4", children: [
|
|
12288
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center
|
|
12289
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-1 p-1 bg-bg-primary rounded-lg border border-border-default", children: [
|
|
12397
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [
|
|
12398
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-1 p-1 bg-bg-primary rounded-lg border border-border-default flex-shrink-0", children: [
|
|
12290
12399
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { onClick: () => setActiveTab(
|
|
12291
12400
|
"installed"
|
|
12292
12401
|
/* Installed */
|
|
@@ -12302,20 +12411,36 @@ const ExtensionsSettings = ({
|
|
|
12302
12411
|
availableExtensions.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ml-2 text-2xs px-1.5 py-0.5 rounded-full bg-bg-tertiary", children: availableExtensions.length })
|
|
12303
12412
|
] })
|
|
12304
12413
|
] }),
|
|
12305
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center
|
|
12306
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
12312
|
-
|
|
12414
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2 ml-auto", children: [
|
|
12415
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between flex-1 min-w-[180px] max-w-[200px]", children: [
|
|
12416
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronLeft, { className: "w-3 h-3" }), onClick: () => navigateContext("prev"), tooltip: t("settings.extensions.previousContext"), disabled: contexts.length <= 1, className: "p-1" }),
|
|
12417
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-secondary truncate flex-1 text-center", children: getContextDisplayName() }),
|
|
12418
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" }), onClick: () => navigateContext("next"), tooltip: t("settings.extensions.nextContext"), disabled: contexts.length <= 1, className: "p-1" })
|
|
12419
|
+
] }),
|
|
12420
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleRefresh, disabled: isLoading, variant: "outline", size: "sm", children: [
|
|
12421
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FaSync, { className: clsx("mr-1.5 w-3 h-3", isLoading && "animate-spin") }),
|
|
12422
|
+
t("common.refresh")
|
|
12423
|
+
] })
|
|
12313
12424
|
] })
|
|
12314
12425
|
] }),
|
|
12315
12426
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
|
|
12316
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "
|
|
12317
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
12318
|
-
|
|
12427
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12428
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex-1", children: [
|
|
12429
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FaSearch, { className: "absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted pointer-events-none" }),
|
|
12430
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Input, { value: searchQuery, onChange: (e_1) => setSearchQuery(e_1.target.value), placeholder: t("settings.extensions.search.placeholder"), className: "pl-10 bg-bg-primary border w-full", wrapperClassName: "w-full" })
|
|
12431
|
+
] }),
|
|
12432
|
+
activeTab === "available" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 flex-shrink-0", children: [
|
|
12433
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-text-muted whitespace-nowrap", children: t("settings.extensions.sort.label") }),
|
|
12434
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select, { value: availableSort, onChange: handleAvailableSortChange, options: [{
|
|
12435
|
+
label: t("settings.extensions.sort.mostInstalled"),
|
|
12436
|
+
value: "most-installed"
|
|
12437
|
+
/* MostInstalled */
|
|
12438
|
+
}, {
|
|
12439
|
+
label: t("settings.extensions.sort.name"),
|
|
12440
|
+
value: "name"
|
|
12441
|
+
/* Name */
|
|
12442
|
+
}], size: "sm", className: "min-w-[11rem]" })
|
|
12443
|
+
] })
|
|
12319
12444
|
] }),
|
|
12320
12445
|
allCapabilities.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-1", children: allCapabilities.map((capability) => {
|
|
12321
12446
|
const isSelected = selectedCapabilities.has(capability);
|
|
@@ -12337,7 +12462,7 @@ const ExtensionsSettings = ({
|
|
|
12337
12462
|
] });
|
|
12338
12463
|
};
|
|
12339
12464
|
const Settings = (t0) => {
|
|
12340
|
-
const $ = compilerRuntimeExports.c(
|
|
12465
|
+
const $ = compilerRuntimeExports.c(196);
|
|
12341
12466
|
const {
|
|
12342
12467
|
settings,
|
|
12343
12468
|
updateSettings,
|
|
@@ -12361,6 +12486,10 @@ const Settings = (t0) => {
|
|
|
12361
12486
|
t
|
|
12362
12487
|
} = useTranslation();
|
|
12363
12488
|
const api = useApi();
|
|
12489
|
+
const {
|
|
12490
|
+
isMobile
|
|
12491
|
+
} = useResponsive();
|
|
12492
|
+
const [isNavSidebarOpen, , hideNavSidebar, toggleNavSidebar] = useBooleanState();
|
|
12364
12493
|
const [activePage, setActivePage] = reactExports.useState(initialPageId || "general");
|
|
12365
12494
|
const [selectedProfileContext, setSelectedProfileContext] = reactExports.useState("global");
|
|
12366
12495
|
const contentRef = reactExports.useRef(null);
|
|
@@ -12897,12 +13026,11 @@ const Settings = (t0) => {
|
|
|
12897
13026
|
t53 = $[117];
|
|
12898
13027
|
}
|
|
12899
13028
|
const sidebarItems = t53;
|
|
13029
|
+
let activeItemLabel;
|
|
12900
13030
|
let renderContent;
|
|
12901
13031
|
let t54;
|
|
12902
13032
|
let t55;
|
|
12903
|
-
|
|
12904
|
-
let t57;
|
|
12905
|
-
if ($[118] !== activePage || $[119] !== agentProfiles || $[120] !== initialOptions?.agentProfileId || $[121] !== initialOptions?.providerId || $[122] !== mcpServers || $[123] !== onFontChange || $[124] !== onFontSizeChange || $[125] !== onLanguageChange || $[126] !== onShowLogs || $[127] !== onThemeChange || $[128] !== onZoomChange || $[129] !== openProjects || $[130] !== providers || $[131] !== selectedProfileContext || $[132] !== setAgentProfiles || $[133] !== setMcpServers || $[134] !== setProviders || $[135] !== settings || $[136] !== sidebarItems || $[137] !== updateSettings) {
|
|
13033
|
+
if ($[118] !== activePage || $[119] !== agentProfiles || $[120] !== hideNavSidebar || $[121] !== initialOptions?.agentProfileId || $[122] !== initialOptions?.providerId || $[123] !== isMobile || $[124] !== mcpServers || $[125] !== onFontChange || $[126] !== onFontSizeChange || $[127] !== onLanguageChange || $[128] !== onShowLogs || $[129] !== onThemeChange || $[130] !== onZoomChange || $[131] !== openProjects || $[132] !== providers || $[133] !== selectedProfileContext || $[134] !== setAgentProfiles || $[135] !== setMcpServers || $[136] !== setProviders || $[137] !== settings || $[138] !== sidebarItems || $[139] !== updateSettings) {
|
|
12906
13034
|
const scrollToSection = (sectionId) => {
|
|
12907
13035
|
setTimeout(() => {
|
|
12908
13036
|
const element = document.getElementById(sectionId);
|
|
@@ -12917,20 +13045,26 @@ const Settings = (t0) => {
|
|
|
12917
13045
|
const handleItemClick = (item) => {
|
|
12918
13046
|
setSelectedProfileContext("global");
|
|
12919
13047
|
setActivePage(item.pageId);
|
|
13048
|
+
if (isMobile) {
|
|
13049
|
+
hideNavSidebar();
|
|
13050
|
+
}
|
|
12920
13051
|
};
|
|
12921
|
-
let
|
|
12922
|
-
if ($[
|
|
12923
|
-
|
|
13052
|
+
let t562;
|
|
13053
|
+
if ($[144] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
13054
|
+
t562 = (context) => {
|
|
12924
13055
|
setSelectedProfileContext(context || "global");
|
|
12925
13056
|
setActivePage("mcpServers");
|
|
12926
13057
|
};
|
|
12927
|
-
$[
|
|
13058
|
+
$[144] = t562;
|
|
12928
13059
|
} else {
|
|
12929
|
-
|
|
13060
|
+
t562 = $[144];
|
|
12930
13061
|
}
|
|
12931
|
-
const handleOpenMcpServers =
|
|
13062
|
+
const handleOpenMcpServers = t562;
|
|
12932
13063
|
const handleChildClick = (pageId, sectionId_0) => {
|
|
12933
13064
|
setActivePage(pageId);
|
|
13065
|
+
if (isMobile) {
|
|
13066
|
+
hideNavSidebar();
|
|
13067
|
+
}
|
|
12934
13068
|
if (pageId === "agents" && sectionId_0.startsWith("agent-")) {
|
|
12935
13069
|
const projectBaseDir = sectionId_0.replace("agent-", "");
|
|
12936
13070
|
setSelectedProfileContext(projectBaseDir);
|
|
@@ -12948,9 +13082,9 @@ const Settings = (t0) => {
|
|
|
12948
13082
|
}
|
|
12949
13083
|
}
|
|
12950
13084
|
};
|
|
12951
|
-
let
|
|
12952
|
-
if ($[
|
|
12953
|
-
|
|
13085
|
+
let t572;
|
|
13086
|
+
if ($[145] !== activePage || $[146] !== agentProfiles || $[147] !== initialOptions?.agentProfileId || $[148] !== initialOptions?.providerId || $[149] !== mcpServers || $[150] !== onFontChange || $[151] !== onFontSizeChange || $[152] !== onLanguageChange || $[153] !== onShowLogs || $[154] !== onThemeChange || $[155] !== onZoomChange || $[156] !== openProjects || $[157] !== providers || $[158] !== selectedProfileContext || $[159] !== setAgentProfiles || $[160] !== setMcpServers || $[161] !== setProviders || $[162] !== settings || $[163] !== updateSettings) {
|
|
13087
|
+
t572 = () => {
|
|
12954
13088
|
switch (activePage) {
|
|
12955
13089
|
case "general": {
|
|
12956
13090
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(GeneralSettings, { settings, setSettings: updateSettings, onLanguageChange, onZoomChange, onThemeChange, onFontChange, onFontSizeChange });
|
|
@@ -12990,131 +13124,187 @@ const Settings = (t0) => {
|
|
|
12990
13124
|
}
|
|
12991
13125
|
}
|
|
12992
13126
|
};
|
|
12993
|
-
$[
|
|
12994
|
-
$[
|
|
12995
|
-
$[
|
|
12996
|
-
$[
|
|
12997
|
-
$[
|
|
12998
|
-
$[
|
|
12999
|
-
$[
|
|
13000
|
-
$[
|
|
13001
|
-
$[
|
|
13002
|
-
$[
|
|
13003
|
-
$[
|
|
13004
|
-
$[
|
|
13005
|
-
$[
|
|
13006
|
-
$[
|
|
13007
|
-
$[
|
|
13008
|
-
$[
|
|
13009
|
-
$[
|
|
13010
|
-
$[
|
|
13011
|
-
$[
|
|
13012
|
-
$[
|
|
13127
|
+
$[145] = activePage;
|
|
13128
|
+
$[146] = agentProfiles;
|
|
13129
|
+
$[147] = initialOptions?.agentProfileId;
|
|
13130
|
+
$[148] = initialOptions?.providerId;
|
|
13131
|
+
$[149] = mcpServers;
|
|
13132
|
+
$[150] = onFontChange;
|
|
13133
|
+
$[151] = onFontSizeChange;
|
|
13134
|
+
$[152] = onLanguageChange;
|
|
13135
|
+
$[153] = onShowLogs;
|
|
13136
|
+
$[154] = onThemeChange;
|
|
13137
|
+
$[155] = onZoomChange;
|
|
13138
|
+
$[156] = openProjects;
|
|
13139
|
+
$[157] = providers;
|
|
13140
|
+
$[158] = selectedProfileContext;
|
|
13141
|
+
$[159] = setAgentProfiles;
|
|
13142
|
+
$[160] = setMcpServers;
|
|
13143
|
+
$[161] = setProviders;
|
|
13144
|
+
$[162] = settings;
|
|
13145
|
+
$[163] = updateSettings;
|
|
13146
|
+
$[164] = t572;
|
|
13013
13147
|
} else {
|
|
13014
|
-
|
|
13148
|
+
t572 = $[164];
|
|
13015
13149
|
}
|
|
13016
|
-
renderContent =
|
|
13017
|
-
|
|
13018
|
-
t56 = "w-64 flex-shrink-0 overflow-y-auto pt-0 bg-bg-primary border-r border-border-default-dark scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary";
|
|
13150
|
+
renderContent = t572;
|
|
13151
|
+
activeItemLabel = sidebarItems.find((item_0) => item_0.pageId === activePage)?.label || "";
|
|
13019
13152
|
t54 = "p-2 space-y-0.5";
|
|
13020
|
-
t55 = sidebarItems.map((
|
|
13021
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("flex items-center px-3 py-1.5 text-sm font-medium rounded-md cursor-pointer transition-colors duration-150 select-none", activePage ===
|
|
13022
|
-
!!
|
|
13023
|
-
!
|
|
13153
|
+
t55 = sidebarItems.map((item_1) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
13154
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("flex items-center px-3 py-1.5 text-sm font-medium rounded-md cursor-pointer transition-colors duration-150 select-none", activePage === item_1.pageId ? "bg-bg-active text-text-primary bg-bg-secondary" : "text-text-secondary hover:bg-bg-tertiary hover:text-text-primary"), onClick: () => handleItemClick(item_1), children: [
|
|
13155
|
+
!!item_1.children?.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mr-2 p-0.5 rounded hover:bg-bg-tertiary-strong transition-colors", onClick: _temp5, children: activePage === item_1.id ? /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronDown, { className: "w-3 h-3" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" }) }),
|
|
13156
|
+
!item_1.children?.length && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "w-6" }),
|
|
13024
13157
|
" ",
|
|
13025
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mr-3", children:
|
|
13026
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 truncate uppercase", children:
|
|
13158
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mr-3", children: item_1.icon }),
|
|
13159
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 truncate uppercase", children: item_1.label })
|
|
13027
13160
|
] }),
|
|
13028
|
-
|
|
13029
|
-
] },
|
|
13161
|
+
item_1.children && activePage === item_1.id && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ml-9 space-y-0.5 mt-0.5 border-l border-border-default pl-2", children: item_1.children.map((child) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("px-3 py-1.5 text-xs rounded-md cursor-pointer transition-colors duration-150 select-none truncate", "text-text-muted hover:text-text-primary hover:bg-bg-tertiary"), onClick: () => handleChildClick(item_1.pageId, child.id), children: child.label }, child.id)) })
|
|
13162
|
+
] }, item_1.id));
|
|
13030
13163
|
$[118] = activePage;
|
|
13031
13164
|
$[119] = agentProfiles;
|
|
13032
|
-
$[120] =
|
|
13033
|
-
$[121] = initialOptions?.
|
|
13034
|
-
$[122] =
|
|
13035
|
-
$[123] =
|
|
13036
|
-
$[124] =
|
|
13037
|
-
$[125] =
|
|
13038
|
-
$[126] =
|
|
13039
|
-
$[127] =
|
|
13040
|
-
$[128] =
|
|
13041
|
-
$[129] =
|
|
13042
|
-
$[130] =
|
|
13043
|
-
$[131] =
|
|
13044
|
-
$[132] =
|
|
13045
|
-
$[133] =
|
|
13046
|
-
$[134] =
|
|
13047
|
-
$[135] =
|
|
13048
|
-
$[136] =
|
|
13049
|
-
$[137] =
|
|
13050
|
-
$[138] =
|
|
13051
|
-
$[139] =
|
|
13052
|
-
$[140] =
|
|
13053
|
-
$[141] =
|
|
13054
|
-
$[142] =
|
|
13165
|
+
$[120] = hideNavSidebar;
|
|
13166
|
+
$[121] = initialOptions?.agentProfileId;
|
|
13167
|
+
$[122] = initialOptions?.providerId;
|
|
13168
|
+
$[123] = isMobile;
|
|
13169
|
+
$[124] = mcpServers;
|
|
13170
|
+
$[125] = onFontChange;
|
|
13171
|
+
$[126] = onFontSizeChange;
|
|
13172
|
+
$[127] = onLanguageChange;
|
|
13173
|
+
$[128] = onShowLogs;
|
|
13174
|
+
$[129] = onThemeChange;
|
|
13175
|
+
$[130] = onZoomChange;
|
|
13176
|
+
$[131] = openProjects;
|
|
13177
|
+
$[132] = providers;
|
|
13178
|
+
$[133] = selectedProfileContext;
|
|
13179
|
+
$[134] = setAgentProfiles;
|
|
13180
|
+
$[135] = setMcpServers;
|
|
13181
|
+
$[136] = setProviders;
|
|
13182
|
+
$[137] = settings;
|
|
13183
|
+
$[138] = sidebarItems;
|
|
13184
|
+
$[139] = updateSettings;
|
|
13185
|
+
$[140] = activeItemLabel;
|
|
13186
|
+
$[141] = renderContent;
|
|
13187
|
+
$[142] = t54;
|
|
13188
|
+
$[143] = t55;
|
|
13189
|
+
} else {
|
|
13190
|
+
activeItemLabel = $[140];
|
|
13191
|
+
renderContent = $[141];
|
|
13192
|
+
t54 = $[142];
|
|
13193
|
+
t55 = $[143];
|
|
13194
|
+
}
|
|
13195
|
+
let t56;
|
|
13196
|
+
if ($[165] !== t54 || $[166] !== t55) {
|
|
13197
|
+
t56 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t54, children: t55 });
|
|
13198
|
+
$[165] = t54;
|
|
13199
|
+
$[166] = t55;
|
|
13200
|
+
$[167] = t56;
|
|
13055
13201
|
} else {
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13202
|
+
t56 = $[167];
|
|
13203
|
+
}
|
|
13204
|
+
const settingsNav = t56;
|
|
13205
|
+
let t57;
|
|
13206
|
+
if ($[168] !== isMobile || $[169] !== settingsNav) {
|
|
13207
|
+
t57 = !isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-64 flex-shrink-0 overflow-y-auto pt-0 bg-bg-primary border-r border-border-default-dark scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: settingsNav });
|
|
13208
|
+
$[168] = isMobile;
|
|
13209
|
+
$[169] = settingsNav;
|
|
13210
|
+
$[170] = t57;
|
|
13211
|
+
} else {
|
|
13212
|
+
t57 = $[170];
|
|
13061
13213
|
}
|
|
13062
13214
|
let t58;
|
|
13063
|
-
if ($[
|
|
13064
|
-
t58 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13215
|
+
if ($[171] !== hideNavSidebar || $[172] !== isMobile || $[173] !== isNavSidebarOpen || $[174] !== settingsNav || $[175] !== t) {
|
|
13216
|
+
t58 = isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { children: isNavSidebarOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(motion.div, { initial: {
|
|
13217
|
+
x: "-100%",
|
|
13218
|
+
opacity: 0
|
|
13219
|
+
}, animate: {
|
|
13220
|
+
x: 0,
|
|
13221
|
+
opacity: 1
|
|
13222
|
+
}, exit: {
|
|
13223
|
+
x: "-100%",
|
|
13224
|
+
opacity: 0
|
|
13225
|
+
}, transition: {
|
|
13226
|
+
duration: 0.3,
|
|
13227
|
+
ease: "easeInOut"
|
|
13228
|
+
}, className: "fixed inset-y-0 left-0 w-full h-full bg-bg-primary z-[1000] shadow-xl flex flex-col", children: [
|
|
13229
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between p-2 h-10 bg-bg-primary-light border-b border-border-dark-light flex-shrink-0", children: [
|
|
13230
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-semibold uppercase", children: t("settings.navigation") }),
|
|
13231
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "p-1 rounded-md hover:bg-bg-tertiary transition-colors", onClick: hideNavSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HiXMark, { className: "w-5 h-5 text-text-primary" }) })
|
|
13232
|
+
] }),
|
|
13233
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: settingsNav })
|
|
13234
|
+
] }) });
|
|
13235
|
+
$[171] = hideNavSidebar;
|
|
13236
|
+
$[172] = isMobile;
|
|
13237
|
+
$[173] = isNavSidebarOpen;
|
|
13238
|
+
$[174] = settingsNav;
|
|
13239
|
+
$[175] = t;
|
|
13240
|
+
$[176] = t58;
|
|
13068
13241
|
} else {
|
|
13069
|
-
t58 = $[
|
|
13242
|
+
t58 = $[176];
|
|
13070
13243
|
}
|
|
13071
13244
|
let t59;
|
|
13072
|
-
if ($[
|
|
13073
|
-
t59 = /* @__PURE__ */ jsxRuntimeExports.
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13245
|
+
if ($[177] !== activeItemLabel || $[178] !== isMobile || $[179] !== toggleNavSidebar) {
|
|
13246
|
+
t59 = isMobile && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center px-2 py-1.5 border-b border-border-default-dark bg-bg-primary-light flex-shrink-0", children: [
|
|
13247
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "p-1 rounded-md hover:bg-bg-tertiary transition-colors mr-3", onClick: toggleNavSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RiMenuUnfold4Line, { className: "w-5 h-5 text-text-primary" }) }),
|
|
13248
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium uppercase truncate", children: activeItemLabel })
|
|
13249
|
+
] });
|
|
13250
|
+
$[177] = activeItemLabel;
|
|
13251
|
+
$[178] = isMobile;
|
|
13252
|
+
$[179] = toggleNavSidebar;
|
|
13253
|
+
$[180] = t59;
|
|
13254
|
+
} else {
|
|
13255
|
+
t59 = $[180];
|
|
13256
|
+
}
|
|
13257
|
+
let t60;
|
|
13258
|
+
if ($[181] !== activePage || $[182] !== isMobile) {
|
|
13259
|
+
t60 = clsx("flex-1 w-full mx-auto", activePage === "agents" || activePage === "mcpServers" ? "overflow-hidden p-0 h-full" : clsx("overflow-y-auto max-w-[1024px] scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary hover:scrollbar-thumb-bg-tertiary-strong", isMobile ? "p-4" : "p-8"));
|
|
13260
|
+
$[181] = activePage;
|
|
13261
|
+
$[182] = isMobile;
|
|
13262
|
+
$[183] = t60;
|
|
13077
13263
|
} else {
|
|
13078
|
-
|
|
13264
|
+
t60 = $[183];
|
|
13079
13265
|
}
|
|
13080
|
-
const t60 = activePage === "agents" || activePage === "mcpServers" ? "overflow-hidden p-0 h-full" : "overflow-y-auto p-8 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary hover:scrollbar-thumb-bg-tertiary-strong max-w-[1024px]";
|
|
13081
13266
|
let t61;
|
|
13082
|
-
if ($[
|
|
13083
|
-
t61 =
|
|
13084
|
-
$[
|
|
13085
|
-
$[
|
|
13267
|
+
if ($[184] !== renderContent) {
|
|
13268
|
+
t61 = renderContent();
|
|
13269
|
+
$[184] = renderContent;
|
|
13270
|
+
$[185] = t61;
|
|
13086
13271
|
} else {
|
|
13087
|
-
t61 = $[
|
|
13272
|
+
t61 = $[185];
|
|
13088
13273
|
}
|
|
13089
13274
|
let t62;
|
|
13090
|
-
if ($[
|
|
13091
|
-
t62 =
|
|
13092
|
-
$[
|
|
13093
|
-
$[
|
|
13275
|
+
if ($[186] !== t60 || $[187] !== t61) {
|
|
13276
|
+
t62 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: contentRef, className: t60, children: t61 });
|
|
13277
|
+
$[186] = t60;
|
|
13278
|
+
$[187] = t61;
|
|
13279
|
+
$[188] = t62;
|
|
13094
13280
|
} else {
|
|
13095
|
-
t62 = $[
|
|
13281
|
+
t62 = $[188];
|
|
13096
13282
|
}
|
|
13097
13283
|
let t63;
|
|
13098
|
-
if ($[
|
|
13099
|
-
t63 = /* @__PURE__ */ jsxRuntimeExports.
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13284
|
+
if ($[189] !== t59 || $[190] !== t62) {
|
|
13285
|
+
t63 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col min-w-0", children: [
|
|
13286
|
+
t59,
|
|
13287
|
+
t62
|
|
13288
|
+
] });
|
|
13289
|
+
$[189] = t59;
|
|
13290
|
+
$[190] = t62;
|
|
13291
|
+
$[191] = t63;
|
|
13103
13292
|
} else {
|
|
13104
|
-
t63 = $[
|
|
13293
|
+
t63 = $[191];
|
|
13105
13294
|
}
|
|
13106
13295
|
let t64;
|
|
13107
|
-
if ($[
|
|
13108
|
-
t64 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className:
|
|
13109
|
-
|
|
13296
|
+
if ($[192] !== t57 || $[193] !== t58 || $[194] !== t63) {
|
|
13297
|
+
t64 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-1 h-full min-h-0 overflow-hidden", children: [
|
|
13298
|
+
t57,
|
|
13299
|
+
t58,
|
|
13110
13300
|
t63
|
|
13111
13301
|
] });
|
|
13112
|
-
$[
|
|
13113
|
-
$[
|
|
13114
|
-
$[
|
|
13115
|
-
$[
|
|
13302
|
+
$[192] = t57;
|
|
13303
|
+
$[193] = t58;
|
|
13304
|
+
$[194] = t63;
|
|
13305
|
+
$[195] = t64;
|
|
13116
13306
|
} else {
|
|
13117
|
-
t64 = $[
|
|
13307
|
+
t64 = $[195];
|
|
13118
13308
|
}
|
|
13119
13309
|
return t64;
|
|
13120
13310
|
};
|