@aiderdesk/aiderdesk 0.79.0 → 0.80.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.
Files changed (109) hide show
  1. package/out/renderer/assets/{AgentSettings-CszvCubk.js → AgentSettings-RjfqLZQG.js} +399 -358
  2. package/out/renderer/assets/{InfoIcon-CitcCe35.js → InfoIcon-CFgcz5mB.js} +1 -1
  3. package/out/renderer/assets/{Onboarding-C76MB4m2.js → Onboarding-C4nwN-kW.js} +4 -4
  4. package/out/renderer/assets/{ProviderHeader-D8Qbh28U.js → ProviderHeader-BOSi9xBn.js} +427 -64
  5. package/out/renderer/assets/{SettingsPage-BlzoIUMQ.js → SettingsPage-BRdecSVb.js} +436 -281
  6. package/out/renderer/assets/{UsageDashboard-CbhoXiPL.js → UsageDashboard-BgZL-dQY.js} +3 -3
  7. package/out/renderer/assets/{abnfDiagram-N423BO3Z-CZPdeX6B.js → abnfDiagram-N423BO3Z-hgpuOTGf.js} +4 -4
  8. package/out/renderer/assets/{arc-Bkalrz-a.js → arc-DQ5Ln5Ec.js} +1 -1
  9. package/out/renderer/assets/{architectureDiagram-T3A2C74G-DRz1QqO-.js → architectureDiagram-T3A2C74G-BA40sSAy.js} +3 -3
  10. package/out/renderer/assets/{blockDiagram-VBNYF7ZC-ChyfuGgN.js → blockDiagram-VBNYF7ZC-DUxxZcAH.js} +4 -4
  11. package/out/renderer/assets/{c4Diagram-5PPSVZJV-cVQQcFY5.js → c4Diagram-5PPSVZJV-Q_66gIRD.js} +2 -2
  12. package/out/renderer/assets/{channel-JT6nJyaa.js → channel-_htilMz7.js} +1 -1
  13. package/out/renderer/assets/{chunk-2GRJ4B5K-J57iiDk9.js → chunk-2GRJ4B5K-BInTwfcl.js} +1 -1
  14. package/out/renderer/assets/{chunk-2Q5K7J3B-B1gn3lFx.js → chunk-2Q5K7J3B-Dmzf8-EI.js} +1 -1
  15. package/out/renderer/assets/{chunk-5RXB4S5H-D9R8uVKF.js → chunk-5RXB4S5H-DJM3NSZZ.js} +4 -4
  16. package/out/renderer/assets/{chunk-5VM5RSS4-BgMI8UGI.js → chunk-5VM5RSS4-CbTpT-mF.js} +1 -1
  17. package/out/renderer/assets/{chunk-6Q2QTUOP-Cf4SRUsg.js → chunk-6Q2QTUOP-m3hSoymD.js} +1 -1
  18. package/out/renderer/assets/{chunk-GF5L2VYU-BrPkeiRK.js → chunk-GF5L2VYU-Bb4ovOLO.js} +5 -5
  19. package/out/renderer/assets/{chunk-JWPE2WC7-BF4fubDx.js → chunk-JWPE2WC7-BnvIn2Wx.js} +1 -1
  20. package/out/renderer/assets/{chunk-KBJHAD2P-BrT2h0P-.js → chunk-KBJHAD2P-CDfqaLOK.js} +1 -1
  21. package/out/renderer/assets/{chunk-RYQCIY6F-nKwtNsyW.js → chunk-RYQCIY6F-CL9GnfZn.js} +3 -3
  22. package/out/renderer/assets/{chunk-XXDRQBXY-DOR8tcZA.js → chunk-XXDRQBXY-W8IA58aV.js} +1 -1
  23. package/out/renderer/assets/{classDiagram-JCYQIIEL-Ds-LjZkS.js → classDiagram-JCYQIIEL-CJOMvWBr.js} +6 -6
  24. package/out/renderer/assets/{classDiagram-v2-OCEON4UE-Ds-LjZkS.js → classDiagram-v2-OCEON4UE-CJOMvWBr.js} +6 -6
  25. package/out/renderer/assets/{cose-bilkent-JH36ORCC-D8MD1ldA.js → cose-bilkent-JH36ORCC-DZx8zB-p.js} +1 -1
  26. package/out/renderer/assets/{cynefin-VYW2F7L2-BWrc0sIz.js → cynefin-VYW2F7L2-B2g7If-Z.js} +1 -1
  27. package/out/renderer/assets/{cynefinDiagram-MW4NZA55-ajJaFM05.js → cynefinDiagram-MW4NZA55-C58XMelO.js} +3 -3
  28. package/out/renderer/assets/{dagre-VZM6K2ZE-B7P2-yI-.js → dagre-VZM6K2ZE-BQ2aOE4I.js} +5 -5
  29. package/out/renderer/assets/{diagram-7IWD3JNH-C9b2ycWt.js → diagram-7IWD3JNH-Fcr4bcbO.js} +4 -4
  30. package/out/renderer/assets/{diagram-B4RE2ZJO-BzexvLYA.js → diagram-B4RE2ZJO-D3yvQRyf.js} +3 -3
  31. package/out/renderer/assets/{diagram-LBJQPF4R-BW3cIhvw.js → diagram-LBJQPF4R-CwZ6wYZu.js} +3 -3
  32. package/out/renderer/assets/{diagram-Q27KOJAE-CrI04NBR.js → diagram-Q27KOJAE-BWQ6cHxk.js} +4 -4
  33. package/out/renderer/assets/{diagram-UB23O5K3-Cix1_1dv.js → diagram-UB23O5K3-DYvLjKje.js} +3 -3
  34. package/out/renderer/assets/{ebnfDiagram-BXEA7PRR-yn5BxQJj.js → ebnfDiagram-BXEA7PRR-DXgsYfPv.js} +4 -4
  35. package/out/renderer/assets/{erDiagram-JOGREHBK-CkQ8CtS_.js → erDiagram-JOGREHBK-p1b6UAmn.js} +4 -4
  36. package/out/renderer/assets/{flowDiagram-UKHOOZJN-08k0gH-d.js → flowDiagram-UKHOOZJN-CPc3hU6X.js} +6 -6
  37. package/out/renderer/assets/{ganttDiagram-PKOTCBZU-D5qJmakg.js → ganttDiagram-PKOTCBZU-AnoSI0H5.js} +3 -3
  38. package/out/renderer/assets/{gitGraphDiagram-DS77QQ5N-CPw_BIbi.js → gitGraphDiagram-DS77QQ5N-DUrmxtgn.js} +4 -4
  39. package/out/renderer/assets/{graph-vAJQKSey.js → graph-vYK0uWuK.js} +1 -1
  40. package/out/renderer/assets/{index-DeBIVVLg.js → index-2-UGHPQa.js} +1 -1
  41. package/out/renderer/assets/{index-DFijfgHK.js → index-5BVN9RK6.js} +1 -1
  42. package/out/renderer/assets/{index-Cb4iDr8_.js → index-7rQhuL56.js} +5 -5
  43. package/out/renderer/assets/{index-CmpSne4j.js → index-B1SEEb-0.js} +2 -2
  44. package/out/renderer/assets/{index-D8Zme_wD.js → index-B24wrWKi.js} +5 -5
  45. package/out/renderer/assets/{index-CNKnTVof.js → index-BGA5JZSf.js} +2 -2
  46. package/out/renderer/assets/{index-B9qhGo1c.js → index-BIgrNG0o.js} +4 -4
  47. package/out/renderer/assets/{index-BvQIBR-c.js → index-BVKpsNAU.js} +2 -2
  48. package/out/renderer/assets/{index-DH7BFHAa.css → index-BYUeztXU.css} +34 -7
  49. package/out/renderer/assets/{index-DA3SfNyd.js → index-BifPseZk.js} +5 -5
  50. package/out/renderer/assets/{index-ebosJEhW.js → index-BpkJELWc.js} +1 -1
  51. package/out/renderer/assets/{index-CJzzo9GN.js → index-BqRnRmje.js} +2 -2
  52. package/out/renderer/assets/{index-BGegEms-.js → index-C1NKfASK.js} +1 -1
  53. package/out/renderer/assets/{index-B0EFV-gL.js → index-C2-wYt7Y.js} +3 -3
  54. package/out/renderer/assets/{index-BAx8fHYJ.js → index-C_Fb5x1i.js} +2 -2
  55. package/out/renderer/assets/{index-05PndMzj.js → index-CdT3pUnY.js} +1587 -1079
  56. package/out/renderer/assets/{index-BR-RxTVt.js → index-Cf1CrkZj.js} +1 -1
  57. package/out/renderer/assets/{index-CmlXgnPK.js → index-CoNqogfR.js} +2 -2
  58. package/out/renderer/assets/{index-ZB0-IQ7z.js → index-Cqa6STOy.js} +96 -3
  59. package/out/renderer/assets/{index-BgaEN2Xk.js → index-CvO-4NeV.js} +5 -5
  60. package/out/renderer/assets/{index-BsVCwy_5.js → index-Czcs8fbp.js} +5 -5
  61. package/out/renderer/assets/{index-DSemwSW1.js → index-D44yGQ14.js} +2 -2
  62. package/out/renderer/assets/{index-BNYmBzYl.js → index-DMloO_bp.js} +1 -1
  63. package/out/renderer/assets/{index-D7uIEHLm.js → index-DSu0qPyw.js} +2 -2
  64. package/out/renderer/assets/{index-DSFW0jId.js → index-DVcmtW9G.js} +2 -2
  65. package/out/renderer/assets/{index-BYK8Oe9C.js → index-DaN69KHN.js} +1 -1
  66. package/out/renderer/assets/{index-BvlgP_C9.js → index-DfCyq42Y.js} +2 -2
  67. package/out/renderer/assets/{index-D3TXtQ08.js → index-Dr6JmYfP.js} +2 -2
  68. package/out/renderer/assets/{index-BGkJy1La.js → index-Dv3o3ivg.js} +2 -2
  69. package/out/renderer/assets/{index-CPxIrW_k.js → index-DvwUI0SE.js} +3 -3
  70. package/out/renderer/assets/{index-DKfAiLyn.js → index-Eyz2tQvi.js} +1 -1
  71. package/out/renderer/assets/{index-BLbSc28m.js → index-XMEQr7jT.js} +5 -5
  72. package/out/renderer/assets/{index-BzofAPMG.js → index-ZQnYDsOy.js} +1 -1
  73. package/out/renderer/assets/{infoDiagram-6WML65LV-C-C_195p.js → infoDiagram-6WML65LV-DNH3Ekcy.js} +2 -2
  74. package/out/renderer/assets/{ishikawaDiagram-WSZJBQD7-DdULOU9y.js → ishikawaDiagram-WSZJBQD7-K6TT3dje.js} +1 -1
  75. package/out/renderer/assets/{journeyDiagram-NVQOT4AX-uqf_qJgk.js → journeyDiagram-NVQOT4AX-BYzsiNS3.js} +4 -4
  76. package/out/renderer/assets/{jsx-dev-runtime-BpVxbL7b.js → jsx-dev-runtime-1UHusS46.js} +1 -1
  77. package/out/renderer/assets/{kanban-definition-27J2QSJJ-Dky8Fg_n.js → kanban-definition-27J2QSJJ-IPlTS6oS.js} +2 -2
  78. package/out/renderer/assets/{layout-CmE2gzKL.js → layout-BHT9iWoc.js} +3 -3
  79. package/out/renderer/assets/{linear-KjDRVqMG.js → linear-2jv-chKc.js} +1 -1
  80. package/out/renderer/assets/{map-DYyl5K0n.js → map-D6nZDKFn.js} +2 -2
  81. package/out/renderer/assets/{mindmap-definition-FAOFIHXS-8dWcuWHV.js → mindmap-definition-FAOFIHXS-BHi7Irsm.js} +3 -3
  82. package/out/renderer/assets/{pegDiagram-VL7TDLO6-76hvriT-.js → pegDiagram-VL7TDLO6-C6Y77RxO.js} +4 -4
  83. package/out/renderer/assets/{pieDiagram-7S7Q4E2Y-CJ41-CdM.js → pieDiagram-7S7Q4E2Y-D-e8_L26.js} +4 -4
  84. package/out/renderer/assets/{quadrantDiagram-CIZ2JOQS-BahlXgAq.js → quadrantDiagram-CIZ2JOQS-CXhTLAqI.js} +2 -2
  85. package/out/renderer/assets/{railroadDiagram-AXF67PYL-PiU_czi3.js → railroadDiagram-AXF67PYL-reHXCR9j.js} +4 -4
  86. package/out/renderer/assets/{requirementDiagram-LRYGKXZP-C87pqMna.js → requirementDiagram-LRYGKXZP-tH6hF_PA.js} +3 -3
  87. package/out/renderer/assets/{sankeyDiagram-W5VNT64P-CdkZmeU5.js → sankeyDiagram-W5VNT64P-CGB88G5d.js} +1 -1
  88. package/out/renderer/assets/{sequenceDiagram-SI44F4Z6-CMXFNERX.js → sequenceDiagram-SI44F4Z6-fEt9jAut.js} +3 -3
  89. package/out/renderer/assets/{sizeCapture-X5ZJPWSS-BwMqCMc8.js → sizeCapture-X5ZJPWSS-B7-Ph8fH.js} +1 -1
  90. package/out/renderer/assets/{stateDiagram-OKZ733FA-DiSC7IgF.js → stateDiagram-OKZ733FA-DrhieY01.js} +8 -8
  91. package/out/renderer/assets/{stateDiagram-v2-UEYNNEHI-BQw7DwIi.js → stateDiagram-v2-UEYNNEHI-GzoBE3UI.js} +5 -5
  92. package/out/renderer/assets/{swimlanes-SLNWSIFB-Bhy-gBe5.js → swimlanes-SLNWSIFB-D4LJ6r4D.js} +6 -6
  93. package/out/renderer/assets/{swimlanesDiagram-ULZ7WXOC-DOMzSJ4k.js → swimlanesDiagram-ULZ7WXOC-CMk853Ts.js} +7 -7
  94. package/out/renderer/assets/{time-CTAUr2Xp.js → time-CANVWGKV.js} +1 -1
  95. package/out/renderer/assets/{timeline-definition-Z64GVDOM-vx5MLWSt.js → timeline-definition-Z64GVDOM-qmgoeW5e.js} +2 -2
  96. package/out/renderer/assets/{vennDiagram-T6HMQDX7-WFytj3Mr.js → vennDiagram-T6HMQDX7-DQ2_VNNg.js} +1 -1
  97. package/out/renderer/assets/{wardleyDiagram-T6FBY63Y-DyYJ0Jvz.js → wardleyDiagram-T6FBY63Y-B31yGaJC.js} +3 -3
  98. package/out/renderer/assets/{xychartDiagram-ELKLHX3M-Ddq7vrtC.js → xychartDiagram-ELKLHX3M-A0RHYdAg.js} +2 -2
  99. package/out/renderer/index.html +2 -2
  100. package/out/resources/connector/connector.py +49 -0
  101. package/out/resources/skills/extension-creator/SKILL.md +46 -0
  102. package/out/resources/skills/extension-creator/assets/scripts/validate-extension-ui.mjs +479 -0
  103. package/out/resources/skills/extension-creator/references/extension-interface.md +8 -0
  104. package/out/resources/skills/extension-creator/references/in-repo-flow.md +1 -0
  105. package/out/resources/skills/extension-creator/references/project-global-flow.md +2 -1
  106. package/out/resources/skills/extension-creator/references/ui-components.md +21 -0
  107. package/out/runner.js +792 -175
  108. package/package.json +54 -49
  109. package/scripts/generate-package.mjs +3 -1
@@ -1,5 +1,5 @@
1
- import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, bQ as useTranslation, bO as reactExports, cM as Checkbox, bV as Button, eJ as HiEye, cO as Input, dk as TextArea, eK as Trans, dH as CodeInline, eL as SUPPORTED_LANGUAGES, cL as Select, eM as useClickOutside, eN as FaEllipsisVertical, eO as BiCut, dn as BiTrash, dE as BiCopy, eP as useSortable, eQ as CSS, cP as Slider, I as IconButton, dP as FaTimes, dT as ContextCompactionType, cX as Tooltip, eR as TOOL_GROUP_NAME_SEPARATOR, eS as ToolApprovalState, dt as useApi, dp as McpOAuthStatus, dv as extractIpcErrorMessage, cN as Accordion, dq as FaPencilAlt, dr as FaTrash, eT as POWER_TOOL_GROUP_NAME, eU as POWER_TOOL_BASH, eV as AIDER_TOOL_GROUP_NAME, eW as TODO_TOOL_GROUP_NAME, eX as TASKS_TOOL_GROUP_NAME, eY as MEMORY_TOOL_GROUP_NAME, eZ as SKILLS_TOOL_GROUP_NAME, e_ as MEMORY_TOOL_DESCRIPTIONS, e$ as MEMORY_TOOL_STORE, f0 as MEMORY_TOOL_RETRIEVE, f1 as MEMORY_TOOL_LIST, f2 as MEMORY_TOOL_UPDATE, f3 as MEMORY_TOOL_DELETE, f4 as TASKS_TOOL_DESCRIPTIONS, f5 as TASKS_TOOL_LIST_TASKS, f6 as TASKS_TOOL_GET_TASK, f7 as TASKS_TOOL_GET_TASK_MESSAGE, f8 as TASKS_TOOL_CREATE_TASK, f9 as TASKS_TOOL_DELETE_TASK, fa as TASKS_TOOL_SEARCH_TASK, fb as TODO_TOOL_DESCRIPTIONS, fc as TODO_TOOL_SET_ITEMS, fd as TODO_TOOL_GET_ITEMS, fe as TODO_TOOL_UPDATE_ITEM_COMPLETION, ff as TODO_TOOL_CLEAR_ITEMS, fg as POWER_TOOL_DESCRIPTIONS, fh as POWER_TOOL_FILE_EDIT, fi as POWER_TOOL_FILE_READ, fj as POWER_TOOL_FILE_WRITE, fk as POWER_TOOL_GLOB, fl as POWER_TOOL_GREP, fm as POWER_TOOL_SEMANTIC_SEARCH, fn as POWER_TOOL_FETCH, fo as AIDER_TOOL_DESCRIPTIONS, fp as AIDER_TOOL_GET_CONTEXT_FILES, fq as AIDER_TOOL_ADD_CONTEXT_FILES, fr as AIDER_TOOL_DROP_CONTEXT_FILES, fs as AIDER_TOOL_RUN_PROMPT, ee as FaPlug, ft as _extends$1, fu as React, fv as _objectWithoutPropertiesLoose$1, fw as InvocationMode, fx as ContextMemoryMode, fy as DEFAULT_AGENT_PROFILE, du as useMcpServers, bN as useModelProviders, fz as DEFAULT_AGENT_PROFILES, fA as useSensors, fB as useSensor, fC as KeyboardSensor, fD as PointerSensor, dU as getProviderModelId, fE as DndContext, fF as closestCenter, fG as SortableContext, fH as verticalListSortingStrategy, dy as FaPlus, fI as FaPaste, fJ as BiReset, fK as ModelSelector, fL as sortableKeyboardCoordinates, fM as arrayMove, bb as v4, bY as showErrorNotification, dw as FaChevronLeft, dx as FaChevronRight } from "./index-05PndMzj.js";
2
- import { I as InfoIcon } from "./InfoIcon-CitcCe35.js";
1
+ import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, bQ as useTranslation, bO as reactExports, cR as Checkbox, bV as Button, eP as HiEye, cT as Input, dk as TextArea, eQ as Trans, dN as CodeInline, eR as SUPPORTED_LANGUAGES, cQ as Select, eS as useClickOutside, eT as FaEllipsisVertical, eU as BiCut, dn as BiTrash, dK as BiCopy, eV as useSortable, eW as CSS, cU as Slider, I as IconButton, dV as FaTimes, dZ as ContextCompactionType, d0 as Tooltip, eX as TOOL_GROUP_NAME_SEPARATOR, eY as ToolApprovalState, dt as useApi, dp as McpOAuthStatus, dB as extractIpcErrorMessage, cS as Accordion, dq as FaPencilAlt, dr as FaTrash, eZ as POWER_TOOL_GROUP_NAME, e_ as POWER_TOOL_BASH, e$ as AIDER_TOOL_GROUP_NAME, f0 as TODO_TOOL_GROUP_NAME, f1 as TASKS_TOOL_GROUP_NAME, f2 as MEMORY_TOOL_GROUP_NAME, f3 as SKILLS_TOOL_GROUP_NAME, f4 as MEMORY_TOOL_DESCRIPTIONS, f5 as MEMORY_TOOL_STORE, f6 as MEMORY_TOOL_RETRIEVE, f7 as MEMORY_TOOL_LIST, f8 as MEMORY_TOOL_UPDATE, f9 as MEMORY_TOOL_DELETE, fa as TASKS_TOOL_DESCRIPTIONS, fb as TASKS_TOOL_LIST_TASKS, fc as TASKS_TOOL_GET_TASK, fd as TASKS_TOOL_GET_TASK_MESSAGE, fe as TASKS_TOOL_CREATE_TASK, ff as TASKS_TOOL_DELETE_TASK, fg as TASKS_TOOL_SEARCH_TASK, fh as TODO_TOOL_DESCRIPTIONS, fi as TODO_TOOL_SET_ITEMS, fj as TODO_TOOL_GET_ITEMS, fk as TODO_TOOL_UPDATE_ITEM_COMPLETION, fl as TODO_TOOL_CLEAR_ITEMS, fm as POWER_TOOL_DESCRIPTIONS, fn as POWER_TOOL_FILE_EDIT, fo as POWER_TOOL_FILE_READ, fp as POWER_TOOL_FILE_WRITE, fq as POWER_TOOL_GLOB, fr as POWER_TOOL_GREP, fs as POWER_TOOL_SEMANTIC_SEARCH, ft as POWER_TOOL_FETCH, fu as AIDER_TOOL_DESCRIPTIONS, fv as AIDER_TOOL_GET_CONTEXT_FILES, fw as AIDER_TOOL_ADD_CONTEXT_FILES, fx as AIDER_TOOL_DROP_CONTEXT_FILES, fy as AIDER_TOOL_RUN_PROMPT, ek as FaPlug, fz as _extends$1, fA as React, fB as _objectWithoutPropertiesLoose$1, fC as InvocationMode, fD as ContextMemoryMode, dv as useResponsive, dw as useBooleanState, fE as DEFAULT_AGENT_PROFILE, du as useMcpServers, bN as useModelProviders, fF as DEFAULT_AGENT_PROFILES, fG as useSensors, fH as useSensor, fI as KeyboardSensor, fJ as PointerSensor, d_ as getProviderModelId, fK as DndContext, fL as closestCenter, fM as SortableContext, fN as verticalListSortingStrategy, dE as FaPlus, fO as FaPaste, dx as AnimatePresence, dy as motion, dz as HiXMark, dA as RiMenuUnfold4Line, fP as BiReset, fQ as ModelSelector, fR as Tabs, fS as sortableKeyboardCoordinates, fT as arrayMove, bb as v4, bY as showErrorNotification, dC as FaChevronLeft, dD as FaChevronRight } from "./index-CdT3pUnY.js";
2
+ import { I as InfoIcon } from "./InfoIcon-CFgcz5mB.js";
3
3
  const getPathBasename = (inputPath) => {
4
4
  if (!inputPath) {
5
5
  return inputPath;
@@ -4483,59 +4483,8 @@ function _temp2$1(subagent_0) {
4483
4483
  function _temp3$1(e_0) {
4484
4484
  e_0.stopPropagation();
4485
4485
  }
4486
- const Tabs = (t0) => {
4487
- const $ = compilerRuntimeExports.c(12);
4488
- const {
4489
- tabs,
4490
- activeTabId,
4491
- onTabChange,
4492
- className
4493
- } = t0;
4494
- let t1;
4495
- if ($[0] !== className) {
4496
- t1 = clsx("flex items-center gap-1 p-1 bg-bg-secondary rounded-md", className);
4497
- $[0] = className;
4498
- $[1] = t1;
4499
- } else {
4500
- t1 = $[1];
4501
- }
4502
- let t2;
4503
- if ($[2] !== activeTabId || $[3] !== onTabChange || $[4] !== tabs) {
4504
- let t32;
4505
- if ($[6] !== activeTabId || $[7] !== onTabChange) {
4506
- t32 = (tab) => {
4507
- const handleClick = () => {
4508
- onTabChange(tab.id);
4509
- };
4510
- return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: handleClick, className: clsx("flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors", activeTabId === tab.id ? "bg-bg-fourth text-text-primary" : "text-text-muted-light hover:text-text-secondary hover:bg-bg-tertiary"), children: tab.label }, tab.id);
4511
- };
4512
- $[6] = activeTabId;
4513
- $[7] = onTabChange;
4514
- $[8] = t32;
4515
- } else {
4516
- t32 = $[8];
4517
- }
4518
- t2 = tabs.map(t32);
4519
- $[2] = activeTabId;
4520
- $[3] = onTabChange;
4521
- $[4] = tabs;
4522
- $[5] = t2;
4523
- } else {
4524
- t2 = $[5];
4525
- }
4526
- let t3;
4527
- if ($[9] !== t1 || $[10] !== t2) {
4528
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, children: t2 });
4529
- $[9] = t1;
4530
- $[10] = t2;
4531
- $[11] = t3;
4532
- } else {
4533
- t3 = $[11];
4534
- }
4535
- return t3;
4536
- };
4537
4486
  const AgentSettings = (t0) => {
4538
- const $ = compilerRuntimeExports.c(226);
4487
+ const $ = compilerRuntimeExports.c(251);
4539
4488
  const {
4540
4489
  settings,
4541
4490
  setSettings,
@@ -4559,6 +4508,10 @@ const AgentSettings = (t0) => {
4559
4508
  const {
4560
4509
  t
4561
4510
  } = useTranslation();
4511
+ const {
4512
+ isMobile
4513
+ } = useResponsive();
4514
+ const [isListSidebarOpen, , hideListSidebar, toggleListSidebar] = useBooleanState();
4562
4515
  const [selectedProfileId, setSelectedProfileId] = reactExports.useState(initialProfileId || DEFAULT_AGENT_PROFILE.id);
4563
4516
  const [activeTab, setActiveTab] = reactExports.useState(
4564
4517
  "general"
@@ -4937,7 +4890,7 @@ const AgentSettings = (t0) => {
4937
4890
  }
4938
4891
  const agentProfileIds = t25;
4939
4892
  let t26;
4940
- if ($[67] !== agentProfiles || $[68] !== defaultProfile.model || $[69] !== defaultProfile.provider || $[70] !== profileContext || $[71] !== setAgentProfiles || $[72] !== t) {
4893
+ if ($[67] !== agentProfiles || $[68] !== defaultProfile.model || $[69] !== defaultProfile.provider || $[70] !== hideListSidebar || $[71] !== isMobile || $[72] !== profileContext || $[73] !== setAgentProfiles || $[74] !== t) {
4941
4894
  t26 = () => {
4942
4895
  const newProfileId = v4();
4943
4896
  const newProfile = {
@@ -4950,6 +4903,9 @@ const AgentSettings = (t0) => {
4950
4903
  };
4951
4904
  setAgentProfiles([...agentProfiles, newProfile]);
4952
4905
  setSelectedProfileId(newProfileId);
4906
+ if (isMobile) {
4907
+ hideListSidebar();
4908
+ }
4953
4909
  setTimeout(() => {
4954
4910
  const profileNameInput = profileNameInputRef.current;
4955
4911
  if (profileNameInput) {
@@ -4961,31 +4917,33 @@ const AgentSettings = (t0) => {
4961
4917
  $[67] = agentProfiles;
4962
4918
  $[68] = defaultProfile.model;
4963
4919
  $[69] = defaultProfile.provider;
4964
- $[70] = profileContext;
4965
- $[71] = setAgentProfiles;
4966
- $[72] = t;
4967
- $[73] = t26;
4920
+ $[70] = hideListSidebar;
4921
+ $[71] = isMobile;
4922
+ $[72] = profileContext;
4923
+ $[73] = setAgentProfiles;
4924
+ $[74] = t;
4925
+ $[75] = t26;
4968
4926
  } else {
4969
- t26 = $[73];
4927
+ t26 = $[75];
4970
4928
  }
4971
4929
  const handleCreateNewProfile = t26;
4972
4930
  let t27;
4973
- if ($[74] !== agentProfiles || $[75] !== setAgentProfiles) {
4931
+ if ($[76] !== agentProfiles || $[77] !== setAgentProfiles) {
4974
4932
  t27 = (agentProfileId) => {
4975
4933
  if (agentProfileId && agentProfileId !== DEFAULT_AGENT_PROFILE.id) {
4976
4934
  setAgentProfiles(agentProfiles.filter((p_12) => p_12.id !== agentProfileId));
4977
4935
  }
4978
4936
  };
4979
- $[74] = agentProfiles;
4980
- $[75] = setAgentProfiles;
4981
- $[76] = t27;
4937
+ $[76] = agentProfiles;
4938
+ $[77] = setAgentProfiles;
4939
+ $[78] = t27;
4982
4940
  } else {
4983
- t27 = $[76];
4941
+ t27 = $[78];
4984
4942
  }
4985
4943
  const handleDeleteProfile = t27;
4986
4944
  const isDefaultProfile = _temp6;
4987
4945
  let t28;
4988
- if ($[77] !== agentProfiles || $[78] !== selectedProfileId || $[79] !== setAgentProfiles) {
4946
+ if ($[79] !== agentProfiles || $[80] !== selectedProfileId || $[81] !== setAgentProfiles) {
4989
4947
  t28 = () => {
4990
4948
  if (selectedProfileId) {
4991
4949
  const defaultProfile_1 = DEFAULT_AGENT_PROFILES.find((profile_2) => profile_2.id === selectedProfileId);
@@ -4998,16 +4956,16 @@ const AgentSettings = (t0) => {
4998
4956
  }
4999
4957
  }
5000
4958
  };
5001
- $[77] = agentProfiles;
5002
- $[78] = selectedProfileId;
5003
- $[79] = setAgentProfiles;
5004
- $[80] = t28;
4959
+ $[79] = agentProfiles;
4960
+ $[80] = selectedProfileId;
4961
+ $[81] = setAgentProfiles;
4962
+ $[82] = t28;
5005
4963
  } else {
5006
- t28 = $[80];
4964
+ t28 = $[82];
5007
4965
  }
5008
4966
  const handleResetProfile = t28;
5009
4967
  let t29;
5010
- if ($[81] !== agentProfiles || $[82] !== setAgentProfiles) {
4968
+ if ($[83] !== agentProfiles || $[84] !== setAgentProfiles) {
5011
4969
  t29 = (profileId_0) => {
5012
4970
  const defaultProfile_2 = DEFAULT_AGENT_PROFILES.find((profile_3) => profile_3.id === profileId_0);
5013
4971
  if (defaultProfile_2) {
@@ -5015,15 +4973,15 @@ const AgentSettings = (t0) => {
5015
4973
  setSelectedProfileId(profileId_0);
5016
4974
  }
5017
4975
  };
5018
- $[81] = agentProfiles;
5019
- $[82] = setAgentProfiles;
5020
- $[83] = t29;
4976
+ $[83] = agentProfiles;
4977
+ $[84] = setAgentProfiles;
4978
+ $[85] = t29;
5021
4979
  } else {
5022
- t29 = $[83];
4980
+ t29 = $[85];
5023
4981
  }
5024
4982
  const handleRestoreProfile = t29;
5025
4983
  let t30;
5026
- if ($[84] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4984
+ if ($[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5027
4985
  t30 = (profile_4) => {
5028
4986
  setClipboardProfile({
5029
4987
  profile: {
@@ -5032,13 +4990,13 @@ const AgentSettings = (t0) => {
5032
4990
  action: "copy"
5033
4991
  });
5034
4992
  };
5035
- $[84] = t30;
4993
+ $[86] = t30;
5036
4994
  } else {
5037
- t30 = $[84];
4995
+ t30 = $[86];
5038
4996
  }
5039
4997
  const handleCopyProfile = t30;
5040
4998
  let t31;
5041
- if ($[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4999
+ if ($[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5042
5000
  t31 = (profile_5) => {
5043
5001
  if (profile_5.id !== DEFAULT_AGENT_PROFILE.id) {
5044
5002
  setClipboardProfile({
@@ -5049,13 +5007,13 @@ const AgentSettings = (t0) => {
5049
5007
  });
5050
5008
  }
5051
5009
  };
5052
- $[85] = t31;
5010
+ $[87] = t31;
5053
5011
  } else {
5054
- t31 = $[85];
5012
+ t31 = $[87];
5055
5013
  }
5056
5014
  const handleCutProfile = t31;
5057
5015
  let t32;
5058
- if ($[86] !== agentProfiles || $[87] !== clipboardProfile || $[88] !== profileContext || $[89] !== setAgentProfiles) {
5016
+ if ($[88] !== agentProfiles || $[89] !== clipboardProfile || $[90] !== profileContext || $[91] !== setAgentProfiles) {
5059
5017
  t32 = () => {
5060
5018
  if (clipboardProfile) {
5061
5019
  const newProfileId_0 = v4();
@@ -5081,17 +5039,17 @@ const AgentSettings = (t0) => {
5081
5039
  }, 0);
5082
5040
  }
5083
5041
  };
5084
- $[86] = agentProfiles;
5085
- $[87] = clipboardProfile;
5086
- $[88] = profileContext;
5087
- $[89] = setAgentProfiles;
5088
- $[90] = t32;
5042
+ $[88] = agentProfiles;
5043
+ $[89] = clipboardProfile;
5044
+ $[90] = profileContext;
5045
+ $[91] = setAgentProfiles;
5046
+ $[92] = t32;
5089
5047
  } else {
5090
- t32 = $[90];
5048
+ t32 = $[92];
5091
5049
  }
5092
5050
  const handlePasteProfile = t32;
5093
5051
  let t33;
5094
- if ($[91] !== agentProfiles || $[92] !== selectedProfile || $[93] !== setAgentProfiles) {
5052
+ if ($[93] !== agentProfiles || $[94] !== selectedProfile || $[95] !== setAgentProfiles) {
5095
5053
  t33 = (field, value) => {
5096
5054
  if (selectedProfile) {
5097
5055
  const updatedProfile = {
@@ -5101,28 +5059,28 @@ const AgentSettings = (t0) => {
5101
5059
  setAgentProfiles(agentProfiles.map((p_15) => p_15.id === selectedProfile.id ? updatedProfile : p_15));
5102
5060
  }
5103
5061
  };
5104
- $[91] = agentProfiles;
5105
- $[92] = selectedProfile;
5106
- $[93] = setAgentProfiles;
5107
- $[94] = t33;
5062
+ $[93] = agentProfiles;
5063
+ $[94] = selectedProfile;
5064
+ $[95] = setAgentProfiles;
5065
+ $[96] = t33;
5108
5066
  } else {
5109
- t33 = $[94];
5067
+ t33 = $[96];
5110
5068
  }
5111
5069
  const handleProfileSettingChange = t33;
5112
5070
  let t34;
5113
- if ($[95] !== agentProfiles || $[96] !== setAgentProfiles) {
5071
+ if ($[97] !== agentProfiles || $[98] !== setAgentProfiles) {
5114
5072
  t34 = (profile_6) => {
5115
5073
  setAgentProfiles(agentProfiles.map((p_16) => p_16.id === profile_6.id ? profile_6 : p_16));
5116
5074
  };
5117
- $[95] = agentProfiles;
5118
- $[96] = setAgentProfiles;
5119
- $[97] = t34;
5075
+ $[97] = agentProfiles;
5076
+ $[98] = setAgentProfiles;
5077
+ $[99] = t34;
5120
5078
  } else {
5121
- t34 = $[97];
5079
+ t34 = $[99];
5122
5080
  }
5123
5081
  const handleProfileChange = t34;
5124
5082
  let t35;
5125
- if ($[98] !== setSettings || $[99] !== settings) {
5083
+ if ($[100] !== setSettings || $[101] !== settings) {
5126
5084
  t35 = (modelId) => {
5127
5085
  const updatedSettings = {
5128
5086
  ...settings,
@@ -5130,15 +5088,15 @@ const AgentSettings = (t0) => {
5130
5088
  };
5131
5089
  setSettings(updatedSettings);
5132
5090
  };
5133
- $[98] = setSettings;
5134
- $[99] = settings;
5135
- $[100] = t35;
5091
+ $[100] = setSettings;
5092
+ $[101] = settings;
5093
+ $[102] = t35;
5136
5094
  } else {
5137
- t35 = $[100];
5095
+ t35 = $[102];
5138
5096
  }
5139
5097
  const handleRemovePreferredModel = t35;
5140
5098
  let t36;
5141
- if ($[101] !== setSettings || $[102] !== settings) {
5099
+ if ($[103] !== setSettings || $[104] !== settings) {
5142
5100
  t36 = (modelId_0) => {
5143
5101
  const updatedSettings_0 = {
5144
5102
  ...settings,
@@ -5146,15 +5104,15 @@ const AgentSettings = (t0) => {
5146
5104
  };
5147
5105
  setSettings(updatedSettings_0);
5148
5106
  };
5149
- $[101] = setSettings;
5150
- $[102] = settings;
5151
- $[103] = t36;
5107
+ $[103] = setSettings;
5108
+ $[104] = settings;
5109
+ $[105] = t36;
5152
5110
  } else {
5153
- t36 = $[103];
5111
+ t36 = $[105];
5154
5112
  }
5155
5113
  const handleAddPreferredModel = t36;
5156
5114
  let t37;
5157
- if ($[104] !== handleAddPreferredModel || $[105] !== handleProfileChange || $[106] !== providers || $[107] !== selectedProfile || $[108] !== t) {
5115
+ if ($[106] !== handleAddPreferredModel || $[107] !== handleProfileChange || $[108] !== providers || $[109] !== selectedProfile || $[110] !== t) {
5158
5116
  t37 = (model) => {
5159
5117
  if (!model || !selectedProfile) {
5160
5118
  return;
@@ -5178,19 +5136,19 @@ const AgentSettings = (t0) => {
5178
5136
  handleProfileChange(updatedProfile_0);
5179
5137
  handleAddPreferredModel(selectedModelId);
5180
5138
  };
5181
- $[104] = handleAddPreferredModel;
5182
- $[105] = handleProfileChange;
5183
- $[106] = providers;
5184
- $[107] = selectedProfile;
5185
- $[108] = t;
5186
- $[109] = t37;
5139
+ $[106] = handleAddPreferredModel;
5140
+ $[107] = handleProfileChange;
5141
+ $[108] = providers;
5142
+ $[109] = selectedProfile;
5143
+ $[110] = t;
5144
+ $[111] = t37;
5187
5145
  } else {
5188
- t37 = $[109];
5146
+ t37 = $[111];
5189
5147
  }
5190
5148
  const handleModelChange = t37;
5191
5149
  const currentModelId = selectedProfile ? `${selectedProfile.provider}/${selectedProfile.model}` : void 0;
5192
5150
  let agentModelsList;
5193
- if ($[110] !== currentModelId || $[111] !== models) {
5151
+ if ($[112] !== currentModelId || $[113] !== models) {
5194
5152
  agentModelsList = [...models];
5195
5153
  if (currentModelId) {
5196
5154
  const existingModel = agentModelsList.find((model_0) => getProviderModelId(model_0) === currentModelId);
@@ -5206,15 +5164,15 @@ const AgentSettings = (t0) => {
5206
5164
  }
5207
5165
  }
5208
5166
  }
5209
- $[110] = currentModelId;
5210
- $[111] = models;
5211
- $[112] = agentModelsList;
5167
+ $[112] = currentModelId;
5168
+ $[113] = models;
5169
+ $[114] = agentModelsList;
5212
5170
  } else {
5213
- agentModelsList = $[112];
5171
+ agentModelsList = $[114];
5214
5172
  }
5215
5173
  const agentModels = agentModelsList;
5216
5174
  let t38;
5217
- if ($[113] !== handleProfileSettingChange || $[114] !== selectedProfile) {
5175
+ if ($[115] !== handleProfileSettingChange || $[116] !== selectedProfile) {
5218
5176
  t38 = (serverKey, checked) => {
5219
5177
  if (selectedProfile) {
5220
5178
  const currentEnabledServers = selectedProfile.enabledServers || [];
@@ -5236,15 +5194,15 @@ const AgentSettings = (t0) => {
5236
5194
  handleProfileSettingChange("enabledServers", newEnabledServers);
5237
5195
  }
5238
5196
  };
5239
- $[113] = handleProfileSettingChange;
5240
- $[114] = selectedProfile;
5241
- $[115] = t38;
5197
+ $[115] = handleProfileSettingChange;
5198
+ $[116] = selectedProfile;
5199
+ $[117] = t38;
5242
5200
  } else {
5243
- t38 = $[115];
5201
+ t38 = $[117];
5244
5202
  }
5245
5203
  const handleToggleServerEnabled = t38;
5246
5204
  let t39;
5247
- if ($[116] !== handleProfileSettingChange || $[117] !== selectedProfile) {
5205
+ if ($[118] !== handleProfileSettingChange || $[119] !== selectedProfile) {
5248
5206
  t39 = (toolId_0, approval) => {
5249
5207
  if (selectedProfile) {
5250
5208
  const newToolApprovals_0 = {
@@ -5254,232 +5212,246 @@ const AgentSettings = (t0) => {
5254
5212
  handleProfileSettingChange("toolApprovals", newToolApprovals_0);
5255
5213
  }
5256
5214
  };
5257
- $[116] = handleProfileSettingChange;
5258
- $[117] = selectedProfile;
5259
- $[118] = t39;
5215
+ $[118] = handleProfileSettingChange;
5216
+ $[119] = selectedProfile;
5217
+ $[120] = t39;
5260
5218
  } else {
5261
- t39 = $[118];
5219
+ t39 = $[120];
5262
5220
  }
5263
5221
  const handleToolApprovalChange = t39;
5264
5222
  let t40;
5265
- if ($[119] !== t) {
5223
+ if ($[121] !== t) {
5266
5224
  t40 = t("settings.agent.tabs.general");
5267
- $[119] = t;
5268
- $[120] = t40;
5225
+ $[121] = t;
5226
+ $[122] = t40;
5269
5227
  } else {
5270
- t40 = $[120];
5228
+ t40 = $[122];
5271
5229
  }
5272
5230
  let t41;
5273
- if ($[121] !== t40) {
5231
+ if ($[123] !== t40) {
5274
5232
  t41 = {
5275
5233
  id: "general",
5276
5234
  label: t40
5277
5235
  };
5278
- $[121] = t40;
5279
- $[122] = t41;
5236
+ $[123] = t40;
5237
+ $[124] = t41;
5280
5238
  } else {
5281
- t41 = $[122];
5239
+ t41 = $[124];
5282
5240
  }
5283
5241
  let t42;
5284
- if ($[123] !== t) {
5242
+ if ($[125] !== t) {
5285
5243
  t42 = t("settings.agent.tabs.prompts");
5286
- $[123] = t;
5287
- $[124] = t42;
5244
+ $[125] = t;
5245
+ $[126] = t42;
5288
5246
  } else {
5289
- t42 = $[124];
5247
+ t42 = $[126];
5290
5248
  }
5291
5249
  let t43;
5292
- if ($[125] !== t42) {
5250
+ if ($[127] !== t42) {
5293
5251
  t43 = {
5294
5252
  id: "prompts",
5295
5253
  label: t42
5296
5254
  };
5297
- $[125] = t42;
5298
- $[126] = t43;
5255
+ $[127] = t42;
5256
+ $[128] = t43;
5299
5257
  } else {
5300
- t43 = $[126];
5258
+ t43 = $[128];
5301
5259
  }
5302
5260
  let t44;
5303
- if ($[127] !== t) {
5261
+ if ($[129] !== t) {
5304
5262
  t44 = t("settings.agent.tabs.tools");
5305
- $[127] = t;
5306
- $[128] = t44;
5263
+ $[129] = t;
5264
+ $[130] = t44;
5307
5265
  } else {
5308
- t44 = $[128];
5266
+ t44 = $[130];
5309
5267
  }
5310
5268
  let t45;
5311
- if ($[129] !== t44) {
5269
+ if ($[131] !== t44) {
5312
5270
  t45 = {
5313
5271
  id: "tools",
5314
5272
  label: t44
5315
5273
  };
5316
- $[129] = t44;
5317
- $[130] = t45;
5274
+ $[131] = t44;
5275
+ $[132] = t45;
5318
5276
  } else {
5319
- t45 = $[130];
5277
+ t45 = $[132];
5320
5278
  }
5321
5279
  let t46;
5322
- if ($[131] !== t) {
5280
+ if ($[133] !== t) {
5323
5281
  t46 = t("settings.agent.tabs.subagents");
5324
- $[131] = t;
5325
- $[132] = t46;
5282
+ $[133] = t;
5283
+ $[134] = t46;
5326
5284
  } else {
5327
- t46 = $[132];
5285
+ t46 = $[134];
5328
5286
  }
5329
5287
  let t47;
5330
- if ($[133] !== t46) {
5288
+ if ($[135] !== t46) {
5331
5289
  t47 = {
5332
5290
  id: "subagents",
5333
5291
  label: t46
5334
5292
  };
5335
- $[133] = t46;
5336
- $[134] = t47;
5293
+ $[135] = t46;
5294
+ $[136] = t47;
5337
5295
  } else {
5338
- t47 = $[134];
5296
+ t47 = $[136];
5339
5297
  }
5340
5298
  let t48;
5341
- if ($[135] !== t41 || $[136] !== t43 || $[137] !== t45 || $[138] !== t47) {
5299
+ if ($[137] !== t41 || $[138] !== t43 || $[139] !== t45 || $[140] !== t47) {
5342
5300
  t48 = [t41, t43, t45, t47];
5343
- $[135] = t41;
5344
- $[136] = t43;
5345
- $[137] = t45;
5346
- $[138] = t47;
5347
- $[139] = t48;
5301
+ $[137] = t41;
5302
+ $[138] = t43;
5303
+ $[139] = t45;
5304
+ $[140] = t47;
5305
+ $[141] = t48;
5348
5306
  } else {
5349
- t48 = $[139];
5307
+ t48 = $[141];
5350
5308
  }
5351
5309
  const profileTabs = t48;
5352
5310
  let t49;
5353
- if ($[140] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5311
+ if ($[142] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5354
5312
  t49 = (tabId) => {
5355
5313
  setActiveTab(tabId);
5356
5314
  };
5357
- $[140] = t49;
5315
+ $[142] = t49;
5358
5316
  } else {
5359
- t49 = $[140];
5317
+ t49 = $[142];
5360
5318
  }
5361
5319
  const handleTabChange = t49;
5362
5320
  let t50;
5363
- if ($[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5364
- t50 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronLeft, { className: "w-3 h-3" });
5365
- $[141] = t50;
5321
+ if ($[143] !== dragging || $[144] !== hideListSidebar || $[145] !== isMobile) {
5322
+ t50 = (id) => {
5323
+ if (!dragging) {
5324
+ setSelectedProfileId(id);
5325
+ if (isMobile) {
5326
+ hideListSidebar();
5327
+ }
5328
+ }
5329
+ };
5330
+ $[143] = dragging;
5331
+ $[144] = hideListSidebar;
5332
+ $[145] = isMobile;
5333
+ $[146] = t50;
5366
5334
  } else {
5367
- t50 = $[141];
5335
+ t50 = $[146];
5368
5336
  }
5337
+ const handleSelectProfile = t50;
5369
5338
  let t51;
5370
- if ($[142] !== navigateContext) {
5371
- t51 = () => navigateContext("prev");
5372
- $[142] = navigateContext;
5373
- $[143] = t51;
5339
+ if ($[147] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5340
+ t51 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronLeft, { className: "w-3 h-3" });
5341
+ $[147] = t51;
5374
5342
  } else {
5375
- t51 = $[143];
5343
+ t51 = $[147];
5376
5344
  }
5377
5345
  let t52;
5378
- if ($[144] !== t) {
5379
- t52 = t("settings.agent.previousContext");
5380
- $[144] = t;
5381
- $[145] = t52;
5346
+ if ($[148] !== navigateContext) {
5347
+ t52 = () => navigateContext("prev");
5348
+ $[148] = navigateContext;
5349
+ $[149] = t52;
5382
5350
  } else {
5383
- t52 = $[145];
5351
+ t52 = $[149];
5384
5352
  }
5385
- const t53 = contexts.length <= 1;
5386
- let t54;
5387
- if ($[146] !== t51 || $[147] !== t52 || $[148] !== t53) {
5388
- t54 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t50, onClick: t51, tooltip: t52, disabled: t53, className: "p-1" });
5389
- $[146] = t51;
5390
- $[147] = t52;
5391
- $[148] = t53;
5392
- $[149] = t54;
5353
+ let t53;
5354
+ if ($[150] !== t) {
5355
+ t53 = t("settings.agent.previousContext");
5356
+ $[150] = t;
5357
+ $[151] = t53;
5393
5358
  } else {
5394
- t54 = $[149];
5359
+ t53 = $[151];
5395
5360
  }
5361
+ const t54 = contexts.length <= 1;
5396
5362
  let t55;
5397
- if ($[150] !== getContextDisplayName) {
5398
- t55 = getContextDisplayName();
5399
- $[150] = getContextDisplayName;
5400
- $[151] = t55;
5363
+ if ($[152] !== t52 || $[153] !== t53 || $[154] !== t54) {
5364
+ t55 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t51, onClick: t52, tooltip: t53, disabled: t54, className: "p-1" });
5365
+ $[152] = t52;
5366
+ $[153] = t53;
5367
+ $[154] = t54;
5368
+ $[155] = t55;
5401
5369
  } else {
5402
- t55 = $[151];
5370
+ t55 = $[155];
5403
5371
  }
5404
5372
  let t56;
5405
- if ($[152] !== t55) {
5406
- t56 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-secondary truncate flex-1 text-center", children: t55 });
5407
- $[152] = t55;
5408
- $[153] = t56;
5373
+ if ($[156] !== getContextDisplayName) {
5374
+ t56 = getContextDisplayName();
5375
+ $[156] = getContextDisplayName;
5376
+ $[157] = t56;
5409
5377
  } else {
5410
- t56 = $[153];
5378
+ t56 = $[157];
5411
5379
  }
5412
5380
  let t57;
5413
- if ($[154] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5414
- t57 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" });
5415
- $[154] = t57;
5381
+ if ($[158] !== t56) {
5382
+ t57 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-secondary truncate flex-1 text-center", children: t56 });
5383
+ $[158] = t56;
5384
+ $[159] = t57;
5416
5385
  } else {
5417
- t57 = $[154];
5386
+ t57 = $[159];
5418
5387
  }
5419
5388
  let t58;
5420
- if ($[155] !== navigateContext) {
5421
- t58 = () => navigateContext("next");
5422
- $[155] = navigateContext;
5423
- $[156] = t58;
5389
+ if ($[160] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5390
+ t58 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" });
5391
+ $[160] = t58;
5424
5392
  } else {
5425
- t58 = $[156];
5393
+ t58 = $[160];
5426
5394
  }
5427
5395
  let t59;
5428
- if ($[157] !== t) {
5429
- t59 = t("settings.agent.nextContext");
5430
- $[157] = t;
5431
- $[158] = t59;
5396
+ if ($[161] !== navigateContext) {
5397
+ t59 = () => navigateContext("next");
5398
+ $[161] = navigateContext;
5399
+ $[162] = t59;
5432
5400
  } else {
5433
- t59 = $[158];
5401
+ t59 = $[162];
5434
5402
  }
5435
- const t60 = contexts.length <= 1;
5436
- let t61;
5437
- if ($[159] !== t58 || $[160] !== t59 || $[161] !== t60) {
5438
- t61 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t57, onClick: t58, tooltip: t59, disabled: t60, className: "p-1" });
5439
- $[159] = t58;
5440
- $[160] = t59;
5441
- $[161] = t60;
5442
- $[162] = t61;
5403
+ let t60;
5404
+ if ($[163] !== t) {
5405
+ t60 = t("settings.agent.nextContext");
5406
+ $[163] = t;
5407
+ $[164] = t60;
5443
5408
  } else {
5444
- t61 = $[162];
5409
+ t60 = $[164];
5445
5410
  }
5411
+ const t61 = contexts.length <= 1;
5446
5412
  let t62;
5447
- if ($[163] !== t54 || $[164] !== t56 || $[165] !== t61) {
5448
- t62 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-3 border-b border-border-default", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
5449
- t54,
5450
- t56,
5451
- t61
5452
- ] }) });
5453
- $[163] = t54;
5454
- $[164] = t56;
5455
- $[165] = t61;
5456
- $[166] = t62;
5413
+ if ($[165] !== t59 || $[166] !== t60 || $[167] !== t61) {
5414
+ t62 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t58, onClick: t59, tooltip: t60, disabled: t61, className: "p-1" });
5415
+ $[165] = t59;
5416
+ $[166] = t60;
5417
+ $[167] = t61;
5418
+ $[168] = t62;
5457
5419
  } else {
5458
- t62 = $[166];
5420
+ t62 = $[168];
5459
5421
  }
5460
5422
  let t63;
5461
- if ($[167] !== agentProfileIds || $[168] !== clipboardProfile || $[169] !== dragging || $[170] !== filteredProfiles || $[171] !== handleDeleteProfile || $[172] !== handleDragEnd || $[173] !== selectedProfileId || $[174] !== sensors || $[175] !== t) {
5462
- t63 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: filteredProfiles.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.noProfilesInContext") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DndContext, { sensors, collisionDetection: closestCenter, onDragStart: () => setDragging(true), onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SortableContext, { items: agentProfileIds, strategy: verticalListSortingStrategy, children: filteredProfiles.map((profile_7) => /* @__PURE__ */ jsxRuntimeExports.jsx(SortableAgentProfileItem, { profile: profile_7, isSelected: selectedProfileId === profile_7.id, onClick: (id) => {
5463
- if (!dragging) {
5464
- setSelectedProfileId(id);
5465
- }
5466
- }, onCopy: handleCopyProfile, onCut: handleCutProfile, isCut: clipboardProfile?.action === "cut" && clipboardProfile.profile.id === profile_7.id, onDelete: (profile_8) => handleDeleteProfile(profile_8.id), isDefaultProfile: profile_7.id === DEFAULT_AGENT_PROFILE.id }, profile_7.id)) }) }) });
5467
- $[167] = agentProfileIds;
5468
- $[168] = clipboardProfile;
5469
- $[169] = dragging;
5470
- $[170] = filteredProfiles;
5471
- $[171] = handleDeleteProfile;
5472
- $[172] = handleDragEnd;
5473
- $[173] = selectedProfileId;
5474
- $[174] = sensors;
5475
- $[175] = t;
5476
- $[176] = t63;
5477
- } else {
5478
- t63 = $[176];
5423
+ if ($[169] !== t55 || $[170] !== t57 || $[171] !== t62) {
5424
+ t63 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-3 border-b border-border-default", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between", children: [
5425
+ t55,
5426
+ t57,
5427
+ t62
5428
+ ] }) });
5429
+ $[169] = t55;
5430
+ $[170] = t57;
5431
+ $[171] = t62;
5432
+ $[172] = t63;
5433
+ } else {
5434
+ t63 = $[172];
5479
5435
  }
5480
5436
  let t64;
5481
- if ($[177] !== handleRestoreProfile || $[178] !== missingDefaultProfiles || $[179] !== profileContext || $[180] !== t) {
5482
- t64 = profileContext === "global" && missingDefaultProfiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "py-2 border-t border-border-default-dark", children: missingDefaultProfiles.map((profile_9) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-2 py-1 rounded-sm text-sm transition-colors flex items-center justify-between text-text-muted-light", onClick: () => setSelectedProfileId(profile_9.id), children: [
5437
+ if ($[173] !== agentProfileIds || $[174] !== clipboardProfile || $[175] !== filteredProfiles || $[176] !== handleDeleteProfile || $[177] !== handleDragEnd || $[178] !== handleSelectProfile || $[179] !== selectedProfileId || $[180] !== sensors || $[181] !== t) {
5438
+ t64 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto p-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: filteredProfiles.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.noProfilesInContext") }) : /* @__PURE__ */ jsxRuntimeExports.jsx(DndContext, { sensors, collisionDetection: closestCenter, onDragStart: () => setDragging(true), onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SortableContext, { items: agentProfileIds, strategy: verticalListSortingStrategy, children: filteredProfiles.map((profile_7) => /* @__PURE__ */ jsxRuntimeExports.jsx(SortableAgentProfileItem, { profile: profile_7, isSelected: selectedProfileId === profile_7.id, onClick: handleSelectProfile, onCopy: handleCopyProfile, onCut: handleCutProfile, isCut: clipboardProfile?.action === "cut" && clipboardProfile.profile.id === profile_7.id, onDelete: (profile_8) => handleDeleteProfile(profile_8.id), isDefaultProfile: profile_7.id === DEFAULT_AGENT_PROFILE.id }, profile_7.id)) }) }) });
5439
+ $[173] = agentProfileIds;
5440
+ $[174] = clipboardProfile;
5441
+ $[175] = filteredProfiles;
5442
+ $[176] = handleDeleteProfile;
5443
+ $[177] = handleDragEnd;
5444
+ $[178] = handleSelectProfile;
5445
+ $[179] = selectedProfileId;
5446
+ $[180] = sensors;
5447
+ $[181] = t;
5448
+ $[182] = t64;
5449
+ } else {
5450
+ t64 = $[182];
5451
+ }
5452
+ let t65;
5453
+ if ($[183] !== handleRestoreProfile || $[184] !== missingDefaultProfiles || $[185] !== profileContext || $[186] !== t) {
5454
+ t65 = profileContext === "global" && missingDefaultProfiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "py-2 border-t border-border-default-dark", children: missingDefaultProfiles.map((profile_9) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "px-2 py-1 rounded-sm text-sm transition-colors flex items-center justify-between text-text-muted-light", onClick: () => setSelectedProfileId(profile_9.id), children: [
5483
5455
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
5484
5456
  profile_9.subagent.enabled && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-3 h-3 rounded-full mr-2 border border-border-muted", style: {
5485
5457
  backgroundColor: profile_9.subagent.color
@@ -5488,84 +5460,138 @@ const AgentSettings = (t0) => {
5488
5460
  ] }),
5489
5461
  /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "w-3 h-3" }), onClick: () => handleRestoreProfile(profile_9.id), tooltip: t("settings.agent.restoreProfileTooltip"), className: "p-1 hover:bg-bg-tertiary rounded text-text-muted-light hover:text-text-primary" })
5490
5462
  ] }, profile_9.id)) });
5491
- $[177] = handleRestoreProfile;
5492
- $[178] = missingDefaultProfiles;
5493
- $[179] = profileContext;
5494
- $[180] = t;
5495
- $[181] = t64;
5463
+ $[183] = handleRestoreProfile;
5464
+ $[184] = missingDefaultProfiles;
5465
+ $[185] = profileContext;
5466
+ $[186] = t;
5467
+ $[187] = t65;
5496
5468
  } else {
5497
- t64 = $[181];
5498
- }
5499
- let t65;
5500
- if ($[182] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5501
- t65 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "mr-2 w-3 h-3" });
5502
- $[182] = t65;
5503
- } else {
5504
- t65 = $[182];
5469
+ t65 = $[187];
5505
5470
  }
5506
5471
  let t66;
5507
- if ($[183] !== t) {
5508
- t66 = t("settings.agent.createNewProfileInContext");
5509
- $[183] = t;
5510
- $[184] = t66;
5472
+ if ($[188] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5473
+ t66 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "mr-2 w-3 h-3" });
5474
+ $[188] = t66;
5511
5475
  } else {
5512
- t66 = $[184];
5476
+ t66 = $[188];
5513
5477
  }
5514
5478
  let t67;
5515
- if ($[185] !== handleCreateNewProfile || $[186] !== t66) {
5516
- t67 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleCreateNewProfile, className: "", variant: "text", size: "sm", color: "primary", children: [
5517
- t65,
5518
- " ",
5519
- t66
5520
- ] });
5521
- $[185] = handleCreateNewProfile;
5522
- $[186] = t66;
5523
- $[187] = t67;
5479
+ if ($[189] !== t) {
5480
+ t67 = t("settings.agent.createNewProfileInContext");
5481
+ $[189] = t;
5482
+ $[190] = t67;
5524
5483
  } else {
5525
- t67 = $[187];
5484
+ t67 = $[190];
5526
5485
  }
5527
5486
  let t68;
5528
- if ($[188] !== clipboardProfile || $[189] !== handlePasteProfile || $[190] !== t) {
5529
- t68 = clipboardProfile && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { onClick: handlePasteProfile, icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaPaste, { className: "w-4 h-4 text-button-primary" }), tooltip: t("settings.agent.pasteProfile"), className: "p-2 rounded hover:bg-button-primary-subtle" });
5530
- $[188] = clipboardProfile;
5531
- $[189] = handlePasteProfile;
5532
- $[190] = t;
5533
- $[191] = t68;
5534
- } else {
5535
- t68 = $[191];
5536
- }
5537
- let t69;
5538
- if ($[192] !== t67 || $[193] !== t68) {
5539
- t69 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-2 border-t border-border-default flex items-center justify-center gap-2", children: [
5540
- t67,
5541
- t68
5487
+ if ($[191] !== handleCreateNewProfile || $[192] !== t67) {
5488
+ t68 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleCreateNewProfile, className: "", variant: "text", size: "sm", color: "primary", children: [
5489
+ t66,
5490
+ " ",
5491
+ t67
5542
5492
  ] });
5493
+ $[191] = handleCreateNewProfile;
5543
5494
  $[192] = t67;
5544
5495
  $[193] = t68;
5545
- $[194] = t69;
5546
5496
  } else {
5547
- t69 = $[194];
5497
+ t68 = $[193];
5498
+ }
5499
+ let t69;
5500
+ if ($[194] !== clipboardProfile || $[195] !== handlePasteProfile || $[196] !== t) {
5501
+ t69 = clipboardProfile && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { onClick: handlePasteProfile, icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FaPaste, { className: "w-4 h-4 text-button-primary" }), tooltip: t("settings.agent.pasteProfile"), className: "p-2 rounded hover:bg-button-primary-subtle" });
5502
+ $[194] = clipboardProfile;
5503
+ $[195] = handlePasteProfile;
5504
+ $[196] = t;
5505
+ $[197] = t69;
5506
+ } else {
5507
+ t69 = $[197];
5548
5508
  }
5549
5509
  let t70;
5550
- if ($[195] !== t62 || $[196] !== t63 || $[197] !== t64 || $[198] !== t69) {
5551
- t70 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[260px] flex-shrink-0 border-r border-border-default flex flex-col", children: [
5552
- t62,
5553
- t63,
5554
- t64,
5510
+ if ($[198] !== t68 || $[199] !== t69) {
5511
+ t70 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-2 border-t border-border-default flex items-center justify-center gap-2", children: [
5512
+ t68,
5555
5513
  t69
5556
5514
  ] });
5557
- $[195] = t62;
5558
- $[196] = t63;
5559
- $[197] = t64;
5560
- $[198] = t69;
5561
- $[199] = t70;
5515
+ $[198] = t68;
5516
+ $[199] = t69;
5517
+ $[200] = t70;
5562
5518
  } else {
5563
- t70 = $[199];
5519
+ t70 = $[200];
5564
5520
  }
5565
5521
  let t71;
5566
- if ($[200] !== activeTab || $[201] !== agentModels || $[202] !== agentProfiles.length || $[203] !== availableSubagents || $[204] !== currentModelId || $[205] !== extensionToolsInfo || $[206] !== handleDeleteProfile || $[207] !== handleModelChange || $[208] !== handleProfileSettingChange || $[209] !== handleRemovePreferredModel || $[210] !== handleResetProfile || $[211] !== handleToggleServerEnabled || $[212] !== handleToolApprovalChange || $[213] !== mcpServers || $[214] !== onOpenMcpServers || $[215] !== profileContext || $[216] !== profileTabs || $[217] !== providers || $[218] !== selectedProfile || $[219] !== selectedProfileId || $[220] !== settings || $[221] !== t) {
5567
- t71 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 flex flex-col h-full min-w-0", children: selectedProfile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5568
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-6 pt-5 pb-1", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-3xl mx-auto space-y-3", children: [
5522
+ if ($[201] !== t63 || $[202] !== t64 || $[203] !== t65 || $[204] !== t70) {
5523
+ t71 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5524
+ t63,
5525
+ t64,
5526
+ t65,
5527
+ t70
5528
+ ] });
5529
+ $[201] = t63;
5530
+ $[202] = t64;
5531
+ $[203] = t65;
5532
+ $[204] = t70;
5533
+ $[205] = t71;
5534
+ } else {
5535
+ t71 = $[205];
5536
+ }
5537
+ const listPane = t71;
5538
+ let t72;
5539
+ if ($[206] !== isMobile || $[207] !== listPane) {
5540
+ t72 = !isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-[260px] flex-shrink-0 border-r border-border-default flex flex-col", children: listPane });
5541
+ $[206] = isMobile;
5542
+ $[207] = listPane;
5543
+ $[208] = t72;
5544
+ } else {
5545
+ t72 = $[208];
5546
+ }
5547
+ let t73;
5548
+ if ($[209] !== hideListSidebar || $[210] !== isListSidebarOpen || $[211] !== isMobile || $[212] !== listPane || $[213] !== t) {
5549
+ t73 = isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { children: isListSidebarOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(motion.div, { initial: {
5550
+ x: "-100%",
5551
+ opacity: 0
5552
+ }, animate: {
5553
+ x: 0,
5554
+ opacity: 1
5555
+ }, exit: {
5556
+ x: "-100%",
5557
+ opacity: 0
5558
+ }, transition: {
5559
+ duration: 0.3,
5560
+ ease: "easeInOut"
5561
+ }, className: "fixed inset-y-0 left-0 w-full h-full bg-bg-primary z-[1000] shadow-xl flex flex-col", children: [
5562
+ /* @__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: [
5563
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-semibold uppercase", children: t("settings.tabs.agents") }),
5564
+ /* @__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" }) })
5565
+ ] }),
5566
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 flex flex-col", children: listPane })
5567
+ ] }) });
5568
+ $[209] = hideListSidebar;
5569
+ $[210] = isListSidebarOpen;
5570
+ $[211] = isMobile;
5571
+ $[212] = listPane;
5572
+ $[213] = t;
5573
+ $[214] = t73;
5574
+ } else {
5575
+ t73 = $[214];
5576
+ }
5577
+ let t74;
5578
+ if ($[215] !== isMobile || $[216] !== selectedProfile?.name || $[217] !== t || $[218] !== toggleListSidebar) {
5579
+ t74 = 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: [
5580
+ /* @__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" }) }),
5581
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium uppercase truncate", children: selectedProfile?.name || t("settings.agent.selectOrCreateProfile") })
5582
+ ] });
5583
+ $[215] = isMobile;
5584
+ $[216] = selectedProfile?.name;
5585
+ $[217] = t;
5586
+ $[218] = toggleListSidebar;
5587
+ $[219] = t74;
5588
+ } else {
5589
+ t74 = $[219];
5590
+ }
5591
+ let t75;
5592
+ if ($[220] !== activeTab || $[221] !== agentModels || $[222] !== agentProfiles.length || $[223] !== availableSubagents || $[224] !== currentModelId || $[225] !== extensionToolsInfo || $[226] !== handleDeleteProfile || $[227] !== handleModelChange || $[228] !== handleProfileSettingChange || $[229] !== handleRemovePreferredModel || $[230] !== handleResetProfile || $[231] !== handleToggleServerEnabled || $[232] !== handleToolApprovalChange || $[233] !== isMobile || $[234] !== mcpServers || $[235] !== onOpenMcpServers || $[236] !== profileContext || $[237] !== profileTabs || $[238] !== providers || $[239] !== selectedProfile || $[240] !== selectedProfileId || $[241] !== settings || $[242] !== t) {
5593
+ t75 = selectedProfile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5594
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("pt-5 pb-1", isMobile ? "px-4" : "px-6"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-3xl mx-auto space-y-3", children: [
5569
5595
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-end gap-2", children: [
5570
5596
  /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { ref: profileNameInputRef, label: t("agentProfiles.profileName"), value: selectedProfile.name, onChange: (e) => handleProfileSettingChange("name", e.target.value), wrapperClassName: "flex-1" }),
5571
5597
  isDefaultProfile(selectedProfileId) && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: /* @__PURE__ */ jsxRuntimeExports.jsx(BiReset, { className: "w-4 h-4" }), onClick: handleResetProfile, tooltip: t("settings.agent.resetProfileToDefaults"), className: "p-2 mb-0.5 hover:bg-bg-tertiary rounded text-text-muted-light hover:text-text-primary" }),
@@ -5577,52 +5603,67 @@ const AgentSettings = (t0) => {
5577
5603
  ] }),
5578
5604
  /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs, { tabs: profileTabs, activeTabId: activeTab, onTabChange: handleTabChange })
5579
5605
  ] }) }),
5580
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 overflow-hidden px-6 pb-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-3xl mx-auto p-3 border border-border-dark-light rounded max-h-full overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: [
5606
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("flex-1 min-h-0 overflow-hidden pb-4", isMobile ? "px-4" : "px-6"), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "max-w-3xl mx-auto p-3 border border-border-dark-light rounded max-h-full overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-bg-tertiary", children: [
5581
5607
  activeTab === "general" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfileGeneralSection, { profile: selectedProfile, settings, onSettingChange: handleProfileSettingChange }),
5582
5608
  activeTab === "prompts" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfilePromptsSection, { profile: selectedProfile, onSettingChange: handleProfileSettingChange }),
5583
5609
  activeTab === "tools" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfileToolsSection, { profile: selectedProfile, mcpServers, extensionToolsInfo, onSettingChange: handleProfileSettingChange, onApprovalChange: handleToolApprovalChange, onToggleServerEnabled: handleToggleServerEnabled, onOpenMcpServers: () => onOpenMcpServers?.(profileContext) }),
5584
5610
  activeTab === "subagents" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfileSubagentsSection, { profile: selectedProfile, availableSubagents, onSettingChange: handleProfileSettingChange })
5585
5611
  ] }) })
5586
- ] }) : /* @__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("settings.agent.selectOrCreateProfile") }) }) });
5587
- $[200] = activeTab;
5588
- $[201] = agentModels;
5589
- $[202] = agentProfiles.length;
5590
- $[203] = availableSubagents;
5591
- $[204] = currentModelId;
5592
- $[205] = extensionToolsInfo;
5593
- $[206] = handleDeleteProfile;
5594
- $[207] = handleModelChange;
5595
- $[208] = handleProfileSettingChange;
5596
- $[209] = handleRemovePreferredModel;
5597
- $[210] = handleResetProfile;
5598
- $[211] = handleToggleServerEnabled;
5599
- $[212] = handleToolApprovalChange;
5600
- $[213] = mcpServers;
5601
- $[214] = onOpenMcpServers;
5602
- $[215] = profileContext;
5603
- $[216] = profileTabs;
5604
- $[217] = providers;
5605
- $[218] = selectedProfile;
5606
- $[219] = selectedProfileId;
5607
- $[220] = settings;
5608
- $[221] = t;
5609
- $[222] = t71;
5610
- } else {
5611
- t71 = $[222];
5612
- }
5613
- let t72;
5614
- if ($[223] !== t70 || $[224] !== t71) {
5615
- t72 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full overflow-hidden", children: [
5616
- t70,
5617
- t71
5612
+ ] }) : /* @__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("settings.agent.selectOrCreateProfile") }) });
5613
+ $[220] = activeTab;
5614
+ $[221] = agentModels;
5615
+ $[222] = agentProfiles.length;
5616
+ $[223] = availableSubagents;
5617
+ $[224] = currentModelId;
5618
+ $[225] = extensionToolsInfo;
5619
+ $[226] = handleDeleteProfile;
5620
+ $[227] = handleModelChange;
5621
+ $[228] = handleProfileSettingChange;
5622
+ $[229] = handleRemovePreferredModel;
5623
+ $[230] = handleResetProfile;
5624
+ $[231] = handleToggleServerEnabled;
5625
+ $[232] = handleToolApprovalChange;
5626
+ $[233] = isMobile;
5627
+ $[234] = mcpServers;
5628
+ $[235] = onOpenMcpServers;
5629
+ $[236] = profileContext;
5630
+ $[237] = profileTabs;
5631
+ $[238] = providers;
5632
+ $[239] = selectedProfile;
5633
+ $[240] = selectedProfileId;
5634
+ $[241] = settings;
5635
+ $[242] = t;
5636
+ $[243] = t75;
5637
+ } else {
5638
+ t75 = $[243];
5639
+ }
5640
+ let t76;
5641
+ if ($[244] !== t74 || $[245] !== t75) {
5642
+ t76 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col h-full min-w-0", children: [
5643
+ t74,
5644
+ t75
5645
+ ] });
5646
+ $[244] = t74;
5647
+ $[245] = t75;
5648
+ $[246] = t76;
5649
+ } else {
5650
+ t76 = $[246];
5651
+ }
5652
+ let t77;
5653
+ if ($[247] !== t72 || $[248] !== t73 || $[249] !== t76) {
5654
+ t77 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full overflow-hidden", children: [
5655
+ t72,
5656
+ t73,
5657
+ t76
5618
5658
  ] });
5619
- $[223] = t70;
5620
- $[224] = t71;
5621
- $[225] = t72;
5659
+ $[247] = t72;
5660
+ $[248] = t73;
5661
+ $[249] = t76;
5662
+ $[250] = t77;
5622
5663
  } else {
5623
- t72 = $[225];
5664
+ t77 = $[250];
5624
5665
  }
5625
- return t72;
5666
+ return t77;
5626
5667
  };
5627
5668
  function _temp(p) {
5628
5669
  return p.baseDir;