@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.
Files changed (107) hide show
  1. package/out/renderer/assets/{AgentSettings-DlLAuLnM.js → AgentSettings-B_H7Zpgy.js} +403 -360
  2. package/out/renderer/assets/{InfoIcon-C1TeBp5L.js → InfoIcon-D7q9WWkf.js} +1 -1
  3. package/out/renderer/assets/{Onboarding-Dh8FRGur.js → Onboarding-BKjX09cc.js} +4 -4
  4. package/out/renderer/assets/{ProviderHeader-VLzB9p23.js → ProviderHeader-Cs728L-d.js} +888 -524
  5. package/out/renderer/assets/{SettingsPage-B3CLZ8tc.js → SettingsPage-JucARU7D.js} +731 -541
  6. package/out/renderer/assets/{UsageDashboard-D83T3HwC.js → UsageDashboard-DILP_J6x.js} +9 -13
  7. package/out/renderer/assets/{abnfDiagram-N423BO3Z-BRDZM1mW.js → abnfDiagram-N423BO3Z-FwzcDSg0.js} +4 -4
  8. package/out/renderer/assets/{arc-CbzEqNM1.js → arc-BUCbLDDN.js} +1 -1
  9. package/out/renderer/assets/{architectureDiagram-T3A2C74G-Bvd5Je3R.js → architectureDiagram-T3A2C74G-DwIgf-vu.js} +3 -3
  10. package/out/renderer/assets/{blockDiagram-VBNYF7ZC-C_NaWxTi.js → blockDiagram-VBNYF7ZC-mi-N7mTd.js} +4 -4
  11. package/out/renderer/assets/{c4Diagram-5PPSVZJV-DguNzZCo.js → c4Diagram-5PPSVZJV-DwdgAnsC.js} +2 -2
  12. package/out/renderer/assets/{channel-Cnrvb6bA.js → channel-FZb5X6MG.js} +1 -1
  13. package/out/renderer/assets/{chunk-2GRJ4B5K-r99iLppH.js → chunk-2GRJ4B5K-94IZD4IQ.js} +1 -1
  14. package/out/renderer/assets/{chunk-2Q5K7J3B-C3uutlD6.js → chunk-2Q5K7J3B-KWOSRYgu.js} +1 -1
  15. package/out/renderer/assets/{chunk-5RXB4S5H-CR6Mx5Iz.js → chunk-5RXB4S5H-B1lEzoZd.js} +4 -4
  16. package/out/renderer/assets/{chunk-5VM5RSS4-X7PVl-ef.js → chunk-5VM5RSS4-DU4fVgUS.js} +1 -1
  17. package/out/renderer/assets/{chunk-6Q2QTUOP-JehvOsAC.js → chunk-6Q2QTUOP-CfXk4iDZ.js} +1 -1
  18. package/out/renderer/assets/{chunk-GF5L2VYU-B3ppa4PP.js → chunk-GF5L2VYU-CQNT5-FI.js} +5 -5
  19. package/out/renderer/assets/{chunk-JWPE2WC7-CFZRPI77.js → chunk-JWPE2WC7-BD4AfUn4.js} +1 -1
  20. package/out/renderer/assets/{chunk-KBJHAD2P-BBjc6zok.js → chunk-KBJHAD2P-DHAVKPli.js} +1 -1
  21. package/out/renderer/assets/{chunk-RYQCIY6F-BZvHC_mQ.js → chunk-RYQCIY6F-CVVFEloA.js} +3 -3
  22. package/out/renderer/assets/{chunk-XXDRQBXY-Ck-RRkxC.js → chunk-XXDRQBXY-D2JNzJXq.js} +1 -1
  23. package/out/renderer/assets/{classDiagram-JCYQIIEL-NNfXWT4B.js → classDiagram-JCYQIIEL-7W7lot8b.js} +6 -6
  24. package/out/renderer/assets/{classDiagram-v2-OCEON4UE-NNfXWT4B.js → classDiagram-v2-OCEON4UE-7W7lot8b.js} +6 -6
  25. package/out/renderer/assets/{cose-bilkent-JH36ORCC-CViVoXgl.js → cose-bilkent-JH36ORCC-CZMhh5W9.js} +1 -1
  26. package/out/renderer/assets/{cynefin-VYW2F7L2-DX5D0uIU.js → cynefin-VYW2F7L2-x-xDxroP.js} +1 -1
  27. package/out/renderer/assets/{cynefinDiagram-MW4NZA55-Cp2wCsOt.js → cynefinDiagram-MW4NZA55-B41JtjtO.js} +3 -3
  28. package/out/renderer/assets/{dagre-VZM6K2ZE-eNIYYO0O.js → dagre-VZM6K2ZE-Dj-zvUXp.js} +5 -5
  29. package/out/renderer/assets/{diagram-7IWD3JNH-Bg1vGWhI.js → diagram-7IWD3JNH-CFaAve_t.js} +4 -4
  30. package/out/renderer/assets/{diagram-B4RE2ZJO-D_JxirT4.js → diagram-B4RE2ZJO-Dlv48H7Y.js} +3 -3
  31. package/out/renderer/assets/{diagram-LBJQPF4R-LQpr0xek.js → diagram-LBJQPF4R-BucHVRed.js} +3 -3
  32. package/out/renderer/assets/{diagram-Q27KOJAE-BL-MLj4m.js → diagram-Q27KOJAE-B611lqWJ.js} +4 -4
  33. package/out/renderer/assets/{diagram-UB23O5K3-BlUt9ZmL.js → diagram-UB23O5K3-CLoEDYB7.js} +3 -3
  34. package/out/renderer/assets/{ebnfDiagram-BXEA7PRR-BGckdM6s.js → ebnfDiagram-BXEA7PRR-jrXkTnrz.js} +4 -4
  35. package/out/renderer/assets/{erDiagram-JOGREHBK-DmWOmMZk.js → erDiagram-JOGREHBK-03zjLqsa.js} +4 -4
  36. package/out/renderer/assets/{flowDiagram-UKHOOZJN-lOEUIjdB.js → flowDiagram-UKHOOZJN-Bp2wNUMb.js} +6 -6
  37. package/out/renderer/assets/{ganttDiagram-PKOTCBZU-CZtmjxYB.js → ganttDiagram-PKOTCBZU-D43jD8yv.js} +3 -3
  38. package/out/renderer/assets/{gitGraphDiagram-DS77QQ5N-DE5y9iux.js → gitGraphDiagram-DS77QQ5N-BnRYgTHV.js} +4 -4
  39. package/out/renderer/assets/{graph-DSMw-VBh.js → graph-Cc2_HGX0.js} +1 -1
  40. package/out/renderer/assets/{index-ebiHDnXl.js → index-6f-oeIlk.js} +2 -2
  41. package/out/renderer/assets/{index-Buw1KWG-.js → index-B1FCOdrT.js} +1 -1
  42. package/out/renderer/assets/{index-DDiIQL3b.js → index-B1zpIvcm.js} +3 -3
  43. package/out/renderer/assets/{index-mytNi5ms.js → index-B7u0PpZD.js} +1 -1
  44. package/out/renderer/assets/{index-B-wIGFrM.js → index-BAmWP-pk.js} +1 -1
  45. package/out/renderer/assets/{index-OJ1PmhTm.js → index-BD3e_Ot8.js} +2 -2
  46. package/out/renderer/assets/{index-DZze20ab.js → index-BDNv0FnP.js} +2 -2
  47. package/out/renderer/assets/{index-ChixxdQV.js → index-BlIAKIdk.js} +2 -2
  48. package/out/renderer/assets/{index-BfqM1vG3.js → index-BsROeHY9.js} +1 -1
  49. package/out/renderer/assets/{index-UQ28Qgl7.js → index-BshLKdRe.js} +5 -5
  50. package/out/renderer/assets/{index--__lgq6v.js → index-C1CZtLbF.js} +1 -1
  51. package/out/renderer/assets/{index-Bjy__dpB.js → index-C5ukVhTq.js} +2 -2
  52. package/out/renderer/assets/{index-vAx0mdd8.js → index-C9gITpjJ.js} +4 -4
  53. package/out/renderer/assets/{index-MDUSPmtz.js → index-CDQDyOcK.js} +5 -5
  54. package/out/renderer/assets/{index-Dgmvrciv.js → index-CIU9ZkBS.js} +3 -3
  55. package/out/renderer/assets/{index-qfaXmy0Y.js → index-CKmzZHZf.js} +1 -1
  56. package/out/renderer/assets/{index-Brdnttud.js → index-CLpvp3hq.js} +2 -2
  57. package/out/renderer/assets/{index-CgczHs0-.js → index-CRXUdV-u.js} +96 -3
  58. package/out/renderer/assets/{index-DMzzmyZE.js → index-CqrtPgJE.js} +2233 -1739
  59. package/out/renderer/assets/{index-BZaWk11Q.js → index-D3uMH-q1.js} +1 -1
  60. package/out/renderer/assets/{index-CZCIyO4U.js → index-D8TTB4-r.js} +5 -5
  61. package/out/renderer/assets/{index-DH7BFHAa.css → index-D98qpStd.css} +41 -14
  62. package/out/renderer/assets/{index-DD6bNfA0.js → index-DJFjmSQJ.js} +5 -5
  63. package/out/renderer/assets/{index-BDYZfF3J.js → index-DTGsvPds.js} +2 -2
  64. package/out/renderer/assets/{index-BbLpDvA3.js → index-DVc8XWTX.js} +5 -5
  65. package/out/renderer/assets/{index-Dz4P0Q9P.js → index-DvZhzJfh.js} +2 -2
  66. package/out/renderer/assets/{index-BRDlnXGV.js → index-Kj4O6jrs.js} +2 -2
  67. package/out/renderer/assets/{index-D4xEcHbg.js → index-KleIXLpB.js} +2 -2
  68. package/out/renderer/assets/{index-1JC2_Wd3.js → index-LF-blgre.js} +2 -2
  69. package/out/renderer/assets/{index-u_V0DpfA.js → index-RmenzFuK.js} +5 -5
  70. package/out/renderer/assets/{index-Cwqf0NbI.js → index-StlvWzAQ.js} +2 -2
  71. package/out/renderer/assets/{index-DMAjk3_P.js → index-aEJRypjl.js} +1 -1
  72. package/out/renderer/assets/{index-tUvIVnIS.js → index-cIujfEiH.js} +1 -1
  73. package/out/renderer/assets/{infoDiagram-6WML65LV-DM7_nqt3.js → infoDiagram-6WML65LV-BZrdglKf.js} +2 -2
  74. package/out/renderer/assets/{ishikawaDiagram-WSZJBQD7-DrWSKswv.js → ishikawaDiagram-WSZJBQD7-M3-Bx05k.js} +1 -1
  75. package/out/renderer/assets/{journeyDiagram-NVQOT4AX-Csn7KuKV.js → journeyDiagram-NVQOT4AX-OUrdoMWw.js} +4 -4
  76. package/out/renderer/assets/{jsx-dev-runtime-CTchQKOk.js → jsx-dev-runtime-BmYtwnS5.js} +1 -1
  77. package/out/renderer/assets/{kanban-definition-27J2QSJJ-BRXIW-y6.js → kanban-definition-27J2QSJJ-Bp1bLsvM.js} +2 -2
  78. package/out/renderer/assets/{layout-CjgVHH-8.js → layout-DHkE0LRs.js} +3 -3
  79. package/out/renderer/assets/{linear-7N8jztD_.js → linear-CbGhnOuY.js} +1 -1
  80. package/out/renderer/assets/{map-fXOUEC9w.js → map-cIUn-qth.js} +2 -2
  81. package/out/renderer/assets/{mindmap-definition-FAOFIHXS-eH5ANg_6.js → mindmap-definition-FAOFIHXS-Cn4b5kOp.js} +3 -3
  82. package/out/renderer/assets/{pegDiagram-VL7TDLO6-_S1HcQ4v.js → pegDiagram-VL7TDLO6-CVKr1c2L.js} +4 -4
  83. package/out/renderer/assets/{pieDiagram-7S7Q4E2Y-BbkejzGW.js → pieDiagram-7S7Q4E2Y-CWcOq9Qb.js} +4 -4
  84. package/out/renderer/assets/{quadrantDiagram-CIZ2JOQS-C9-OKkJL.js → quadrantDiagram-CIZ2JOQS-P3JVAK0b.js} +2 -2
  85. package/out/renderer/assets/{railroadDiagram-AXF67PYL-9VliFuUM.js → railroadDiagram-AXF67PYL-0ofS2KCh.js} +4 -4
  86. package/out/renderer/assets/{requirementDiagram-LRYGKXZP-Dr0S14Mj.js → requirementDiagram-LRYGKXZP-BKJvTfyp.js} +3 -3
  87. package/out/renderer/assets/{sankeyDiagram-W5VNT64P--k6pZLfZ.js → sankeyDiagram-W5VNT64P-rhaheiUH.js} +1 -1
  88. package/out/renderer/assets/{sequenceDiagram-SI44F4Z6-Bx4rTgvS.js → sequenceDiagram-SI44F4Z6-OYjmpEqz.js} +3 -3
  89. package/out/renderer/assets/{sizeCapture-X5ZJPWSS-BkRX3y1x.js → sizeCapture-X5ZJPWSS-CL0ajR5N.js} +1 -1
  90. package/out/renderer/assets/{stateDiagram-OKZ733FA-VF2TYKH_.js → stateDiagram-OKZ733FA-oiMfVXQn.js} +8 -8
  91. package/out/renderer/assets/{stateDiagram-v2-UEYNNEHI-BodH9nuP.js → stateDiagram-v2-UEYNNEHI-CcFKN2iZ.js} +5 -5
  92. package/out/renderer/assets/{swimlanes-SLNWSIFB-TnShw-0l.js → swimlanes-SLNWSIFB-DVH6NvWT.js} +6 -6
  93. package/out/renderer/assets/{swimlanesDiagram-ULZ7WXOC-CemoGOe8.js → swimlanesDiagram-ULZ7WXOC-CsUQN2E5.js} +7 -7
  94. package/out/renderer/assets/{time-CTB9_khZ.js → time-rV3KZfw-.js} +1 -1
  95. package/out/renderer/assets/{timeline-definition-Z64GVDOM-PQXf9HIJ.js → timeline-definition-Z64GVDOM-E-YDHKWt.js} +2 -2
  96. package/out/renderer/assets/{vennDiagram-T6HMQDX7-Db5aCF6z.js → vennDiagram-T6HMQDX7-2y9Eqtpd.js} +1 -1
  97. package/out/renderer/assets/{wardleyDiagram-T6FBY63Y-DI3Rr8Jy.js → wardleyDiagram-T6FBY63Y-D_iD5USe.js} +3 -3
  98. package/out/renderer/assets/{xychartDiagram-ELKLHX3M-CYptZ7pE.js → xychartDiagram-ELKLHX3M-NFI2AtZ8.js} +2 -2
  99. package/out/renderer/index.html +2 -2
  100. package/out/resources/skills/extension-creator/SKILL.md +46 -0
  101. package/out/resources/skills/extension-creator/assets/scripts/validate-extension-ui.mjs +479 -0
  102. package/out/resources/skills/extension-creator/references/extension-interface.md +8 -0
  103. package/out/resources/skills/extension-creator/references/in-repo-flow.md +1 -0
  104. package/out/resources/skills/extension-creator/references/project-global-flow.md +2 -1
  105. package/out/resources/skills/extension-creator/references/ui-components.md +21 -0
  106. package/out/runner.js +1077 -365
  107. package/package.json +53 -53
@@ -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-DMzzmyZE.js";
2
- import { I as InfoIcon } from "./InfoIcon-C1TeBp5L.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-CqrtPgJE.js";
2
+ import { I as InfoIcon } from "./InfoIcon-D7q9WWkf.js";
3
3
  const getPathBasename = (inputPath) => {
4
4
  if (!inputPath) {
5
5
  return inputPath;
@@ -48,6 +48,8 @@ const Section = (t0) => {
48
48
  }
49
49
  return t3;
50
50
  };
51
+ const OPTIONS_DOC_URL = "https://aider.chat/docs/config/options.html";
52
+ const DOTENV_DOC_URL = "https://aider.chat/docs/config/dotenv.html";
51
53
  const AiderSettings = (t0) => {
52
54
  const $ = compilerRuntimeExports.c(106);
53
55
  const {
@@ -246,7 +248,7 @@ const AiderSettings = (t0) => {
246
248
  }
247
249
  let t20;
248
250
  if ($[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
249
- t20 = /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://aider.chat/docs/config/options.html", target: "_blank", rel: "noopener noreferrer", className: "text-info-lighter hover:text-info-lightest", children: "https://aider.chat/docs/config/options.html" });
251
+ t20 = /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: OPTIONS_DOC_URL, target: "_blank", rel: "noopener noreferrer", className: "text-info-lighter hover:text-info-lightest", children: OPTIONS_DOC_URL });
250
252
  $[49] = t20;
251
253
  } else {
252
254
  t20 = $[49];
@@ -369,7 +371,7 @@ const AiderSettings = (t0) => {
369
371
  }
370
372
  let t32;
371
373
  if ($[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
372
- t32 = /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://aider.chat/docs/config/dotenv.html", target: "_blank", rel: "noopener noreferrer", className: "text-info-lighter hover:text-info-lightest", children: "https://aider.chat/docs/config/dotenv.html" });
374
+ t32 = /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: DOTENV_DOC_URL, target: "_blank", rel: "noopener noreferrer", className: "text-info-lighter hover:text-info-lightest", children: DOTENV_DOC_URL });
373
375
  $[81] = t32;
374
376
  } else {
375
377
  t32 = $[81];
@@ -4483,59 +4485,8 @@ function _temp2$1(subagent_0) {
4483
4485
  function _temp3$1(e_0) {
4484
4486
  e_0.stopPropagation();
4485
4487
  }
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
4488
  const AgentSettings = (t0) => {
4538
- const $ = compilerRuntimeExports.c(226);
4489
+ const $ = compilerRuntimeExports.c(251);
4539
4490
  const {
4540
4491
  settings,
4541
4492
  setSettings,
@@ -4559,6 +4510,10 @@ const AgentSettings = (t0) => {
4559
4510
  const {
4560
4511
  t
4561
4512
  } = useTranslation();
4513
+ const {
4514
+ isMobile
4515
+ } = useResponsive();
4516
+ const [isListSidebarOpen, , hideListSidebar, toggleListSidebar] = useBooleanState();
4562
4517
  const [selectedProfileId, setSelectedProfileId] = reactExports.useState(initialProfileId || DEFAULT_AGENT_PROFILE.id);
4563
4518
  const [activeTab, setActiveTab] = reactExports.useState(
4564
4519
  "general"
@@ -4937,7 +4892,7 @@ const AgentSettings = (t0) => {
4937
4892
  }
4938
4893
  const agentProfileIds = t25;
4939
4894
  let t26;
4940
- if ($[67] !== agentProfiles || $[68] !== defaultProfile.model || $[69] !== defaultProfile.provider || $[70] !== profileContext || $[71] !== setAgentProfiles || $[72] !== t) {
4895
+ if ($[67] !== agentProfiles || $[68] !== defaultProfile.model || $[69] !== defaultProfile.provider || $[70] !== hideListSidebar || $[71] !== isMobile || $[72] !== profileContext || $[73] !== setAgentProfiles || $[74] !== t) {
4941
4896
  t26 = () => {
4942
4897
  const newProfileId = v4();
4943
4898
  const newProfile = {
@@ -4950,6 +4905,9 @@ const AgentSettings = (t0) => {
4950
4905
  };
4951
4906
  setAgentProfiles([...agentProfiles, newProfile]);
4952
4907
  setSelectedProfileId(newProfileId);
4908
+ if (isMobile) {
4909
+ hideListSidebar();
4910
+ }
4953
4911
  setTimeout(() => {
4954
4912
  const profileNameInput = profileNameInputRef.current;
4955
4913
  if (profileNameInput) {
@@ -4961,31 +4919,33 @@ const AgentSettings = (t0) => {
4961
4919
  $[67] = agentProfiles;
4962
4920
  $[68] = defaultProfile.model;
4963
4921
  $[69] = defaultProfile.provider;
4964
- $[70] = profileContext;
4965
- $[71] = setAgentProfiles;
4966
- $[72] = t;
4967
- $[73] = t26;
4922
+ $[70] = hideListSidebar;
4923
+ $[71] = isMobile;
4924
+ $[72] = profileContext;
4925
+ $[73] = setAgentProfiles;
4926
+ $[74] = t;
4927
+ $[75] = t26;
4968
4928
  } else {
4969
- t26 = $[73];
4929
+ t26 = $[75];
4970
4930
  }
4971
4931
  const handleCreateNewProfile = t26;
4972
4932
  let t27;
4973
- if ($[74] !== agentProfiles || $[75] !== setAgentProfiles) {
4933
+ if ($[76] !== agentProfiles || $[77] !== setAgentProfiles) {
4974
4934
  t27 = (agentProfileId) => {
4975
4935
  if (agentProfileId && agentProfileId !== DEFAULT_AGENT_PROFILE.id) {
4976
4936
  setAgentProfiles(agentProfiles.filter((p_12) => p_12.id !== agentProfileId));
4977
4937
  }
4978
4938
  };
4979
- $[74] = agentProfiles;
4980
- $[75] = setAgentProfiles;
4981
- $[76] = t27;
4939
+ $[76] = agentProfiles;
4940
+ $[77] = setAgentProfiles;
4941
+ $[78] = t27;
4982
4942
  } else {
4983
- t27 = $[76];
4943
+ t27 = $[78];
4984
4944
  }
4985
4945
  const handleDeleteProfile = t27;
4986
4946
  const isDefaultProfile = _temp6;
4987
4947
  let t28;
4988
- if ($[77] !== agentProfiles || $[78] !== selectedProfileId || $[79] !== setAgentProfiles) {
4948
+ if ($[79] !== agentProfiles || $[80] !== selectedProfileId || $[81] !== setAgentProfiles) {
4989
4949
  t28 = () => {
4990
4950
  if (selectedProfileId) {
4991
4951
  const defaultProfile_1 = DEFAULT_AGENT_PROFILES.find((profile_2) => profile_2.id === selectedProfileId);
@@ -4998,16 +4958,16 @@ const AgentSettings = (t0) => {
4998
4958
  }
4999
4959
  }
5000
4960
  };
5001
- $[77] = agentProfiles;
5002
- $[78] = selectedProfileId;
5003
- $[79] = setAgentProfiles;
5004
- $[80] = t28;
4961
+ $[79] = agentProfiles;
4962
+ $[80] = selectedProfileId;
4963
+ $[81] = setAgentProfiles;
4964
+ $[82] = t28;
5005
4965
  } else {
5006
- t28 = $[80];
4966
+ t28 = $[82];
5007
4967
  }
5008
4968
  const handleResetProfile = t28;
5009
4969
  let t29;
5010
- if ($[81] !== agentProfiles || $[82] !== setAgentProfiles) {
4970
+ if ($[83] !== agentProfiles || $[84] !== setAgentProfiles) {
5011
4971
  t29 = (profileId_0) => {
5012
4972
  const defaultProfile_2 = DEFAULT_AGENT_PROFILES.find((profile_3) => profile_3.id === profileId_0);
5013
4973
  if (defaultProfile_2) {
@@ -5015,15 +4975,15 @@ const AgentSettings = (t0) => {
5015
4975
  setSelectedProfileId(profileId_0);
5016
4976
  }
5017
4977
  };
5018
- $[81] = agentProfiles;
5019
- $[82] = setAgentProfiles;
5020
- $[83] = t29;
4978
+ $[83] = agentProfiles;
4979
+ $[84] = setAgentProfiles;
4980
+ $[85] = t29;
5021
4981
  } else {
5022
- t29 = $[83];
4982
+ t29 = $[85];
5023
4983
  }
5024
4984
  const handleRestoreProfile = t29;
5025
4985
  let t30;
5026
- if ($[84] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4986
+ if ($[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5027
4987
  t30 = (profile_4) => {
5028
4988
  setClipboardProfile({
5029
4989
  profile: {
@@ -5032,13 +4992,13 @@ const AgentSettings = (t0) => {
5032
4992
  action: "copy"
5033
4993
  });
5034
4994
  };
5035
- $[84] = t30;
4995
+ $[86] = t30;
5036
4996
  } else {
5037
- t30 = $[84];
4997
+ t30 = $[86];
5038
4998
  }
5039
4999
  const handleCopyProfile = t30;
5040
5000
  let t31;
5041
- if ($[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5001
+ if ($[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5042
5002
  t31 = (profile_5) => {
5043
5003
  if (profile_5.id !== DEFAULT_AGENT_PROFILE.id) {
5044
5004
  setClipboardProfile({
@@ -5049,13 +5009,13 @@ const AgentSettings = (t0) => {
5049
5009
  });
5050
5010
  }
5051
5011
  };
5052
- $[85] = t31;
5012
+ $[87] = t31;
5053
5013
  } else {
5054
- t31 = $[85];
5014
+ t31 = $[87];
5055
5015
  }
5056
5016
  const handleCutProfile = t31;
5057
5017
  let t32;
5058
- if ($[86] !== agentProfiles || $[87] !== clipboardProfile || $[88] !== profileContext || $[89] !== setAgentProfiles) {
5018
+ if ($[88] !== agentProfiles || $[89] !== clipboardProfile || $[90] !== profileContext || $[91] !== setAgentProfiles) {
5059
5019
  t32 = () => {
5060
5020
  if (clipboardProfile) {
5061
5021
  const newProfileId_0 = v4();
@@ -5081,17 +5041,17 @@ const AgentSettings = (t0) => {
5081
5041
  }, 0);
5082
5042
  }
5083
5043
  };
5084
- $[86] = agentProfiles;
5085
- $[87] = clipboardProfile;
5086
- $[88] = profileContext;
5087
- $[89] = setAgentProfiles;
5088
- $[90] = t32;
5044
+ $[88] = agentProfiles;
5045
+ $[89] = clipboardProfile;
5046
+ $[90] = profileContext;
5047
+ $[91] = setAgentProfiles;
5048
+ $[92] = t32;
5089
5049
  } else {
5090
- t32 = $[90];
5050
+ t32 = $[92];
5091
5051
  }
5092
5052
  const handlePasteProfile = t32;
5093
5053
  let t33;
5094
- if ($[91] !== agentProfiles || $[92] !== selectedProfile || $[93] !== setAgentProfiles) {
5054
+ if ($[93] !== agentProfiles || $[94] !== selectedProfile || $[95] !== setAgentProfiles) {
5095
5055
  t33 = (field, value) => {
5096
5056
  if (selectedProfile) {
5097
5057
  const updatedProfile = {
@@ -5101,28 +5061,28 @@ const AgentSettings = (t0) => {
5101
5061
  setAgentProfiles(agentProfiles.map((p_15) => p_15.id === selectedProfile.id ? updatedProfile : p_15));
5102
5062
  }
5103
5063
  };
5104
- $[91] = agentProfiles;
5105
- $[92] = selectedProfile;
5106
- $[93] = setAgentProfiles;
5107
- $[94] = t33;
5064
+ $[93] = agentProfiles;
5065
+ $[94] = selectedProfile;
5066
+ $[95] = setAgentProfiles;
5067
+ $[96] = t33;
5108
5068
  } else {
5109
- t33 = $[94];
5069
+ t33 = $[96];
5110
5070
  }
5111
5071
  const handleProfileSettingChange = t33;
5112
5072
  let t34;
5113
- if ($[95] !== agentProfiles || $[96] !== setAgentProfiles) {
5073
+ if ($[97] !== agentProfiles || $[98] !== setAgentProfiles) {
5114
5074
  t34 = (profile_6) => {
5115
5075
  setAgentProfiles(agentProfiles.map((p_16) => p_16.id === profile_6.id ? profile_6 : p_16));
5116
5076
  };
5117
- $[95] = agentProfiles;
5118
- $[96] = setAgentProfiles;
5119
- $[97] = t34;
5077
+ $[97] = agentProfiles;
5078
+ $[98] = setAgentProfiles;
5079
+ $[99] = t34;
5120
5080
  } else {
5121
- t34 = $[97];
5081
+ t34 = $[99];
5122
5082
  }
5123
5083
  const handleProfileChange = t34;
5124
5084
  let t35;
5125
- if ($[98] !== setSettings || $[99] !== settings) {
5085
+ if ($[100] !== setSettings || $[101] !== settings) {
5126
5086
  t35 = (modelId) => {
5127
5087
  const updatedSettings = {
5128
5088
  ...settings,
@@ -5130,15 +5090,15 @@ const AgentSettings = (t0) => {
5130
5090
  };
5131
5091
  setSettings(updatedSettings);
5132
5092
  };
5133
- $[98] = setSettings;
5134
- $[99] = settings;
5135
- $[100] = t35;
5093
+ $[100] = setSettings;
5094
+ $[101] = settings;
5095
+ $[102] = t35;
5136
5096
  } else {
5137
- t35 = $[100];
5097
+ t35 = $[102];
5138
5098
  }
5139
5099
  const handleRemovePreferredModel = t35;
5140
5100
  let t36;
5141
- if ($[101] !== setSettings || $[102] !== settings) {
5101
+ if ($[103] !== setSettings || $[104] !== settings) {
5142
5102
  t36 = (modelId_0) => {
5143
5103
  const updatedSettings_0 = {
5144
5104
  ...settings,
@@ -5146,15 +5106,15 @@ const AgentSettings = (t0) => {
5146
5106
  };
5147
5107
  setSettings(updatedSettings_0);
5148
5108
  };
5149
- $[101] = setSettings;
5150
- $[102] = settings;
5151
- $[103] = t36;
5109
+ $[103] = setSettings;
5110
+ $[104] = settings;
5111
+ $[105] = t36;
5152
5112
  } else {
5153
- t36 = $[103];
5113
+ t36 = $[105];
5154
5114
  }
5155
5115
  const handleAddPreferredModel = t36;
5156
5116
  let t37;
5157
- if ($[104] !== handleAddPreferredModel || $[105] !== handleProfileChange || $[106] !== providers || $[107] !== selectedProfile || $[108] !== t) {
5117
+ if ($[106] !== handleAddPreferredModel || $[107] !== handleProfileChange || $[108] !== providers || $[109] !== selectedProfile || $[110] !== t) {
5158
5118
  t37 = (model) => {
5159
5119
  if (!model || !selectedProfile) {
5160
5120
  return;
@@ -5178,19 +5138,19 @@ const AgentSettings = (t0) => {
5178
5138
  handleProfileChange(updatedProfile_0);
5179
5139
  handleAddPreferredModel(selectedModelId);
5180
5140
  };
5181
- $[104] = handleAddPreferredModel;
5182
- $[105] = handleProfileChange;
5183
- $[106] = providers;
5184
- $[107] = selectedProfile;
5185
- $[108] = t;
5186
- $[109] = t37;
5141
+ $[106] = handleAddPreferredModel;
5142
+ $[107] = handleProfileChange;
5143
+ $[108] = providers;
5144
+ $[109] = selectedProfile;
5145
+ $[110] = t;
5146
+ $[111] = t37;
5187
5147
  } else {
5188
- t37 = $[109];
5148
+ t37 = $[111];
5189
5149
  }
5190
5150
  const handleModelChange = t37;
5191
5151
  const currentModelId = selectedProfile ? `${selectedProfile.provider}/${selectedProfile.model}` : void 0;
5192
5152
  let agentModelsList;
5193
- if ($[110] !== currentModelId || $[111] !== models) {
5153
+ if ($[112] !== currentModelId || $[113] !== models) {
5194
5154
  agentModelsList = [...models];
5195
5155
  if (currentModelId) {
5196
5156
  const existingModel = agentModelsList.find((model_0) => getProviderModelId(model_0) === currentModelId);
@@ -5206,15 +5166,15 @@ const AgentSettings = (t0) => {
5206
5166
  }
5207
5167
  }
5208
5168
  }
5209
- $[110] = currentModelId;
5210
- $[111] = models;
5211
- $[112] = agentModelsList;
5169
+ $[112] = currentModelId;
5170
+ $[113] = models;
5171
+ $[114] = agentModelsList;
5212
5172
  } else {
5213
- agentModelsList = $[112];
5173
+ agentModelsList = $[114];
5214
5174
  }
5215
5175
  const agentModels = agentModelsList;
5216
5176
  let t38;
5217
- if ($[113] !== handleProfileSettingChange || $[114] !== selectedProfile) {
5177
+ if ($[115] !== handleProfileSettingChange || $[116] !== selectedProfile) {
5218
5178
  t38 = (serverKey, checked) => {
5219
5179
  if (selectedProfile) {
5220
5180
  const currentEnabledServers = selectedProfile.enabledServers || [];
@@ -5236,15 +5196,15 @@ const AgentSettings = (t0) => {
5236
5196
  handleProfileSettingChange("enabledServers", newEnabledServers);
5237
5197
  }
5238
5198
  };
5239
- $[113] = handleProfileSettingChange;
5240
- $[114] = selectedProfile;
5241
- $[115] = t38;
5199
+ $[115] = handleProfileSettingChange;
5200
+ $[116] = selectedProfile;
5201
+ $[117] = t38;
5242
5202
  } else {
5243
- t38 = $[115];
5203
+ t38 = $[117];
5244
5204
  }
5245
5205
  const handleToggleServerEnabled = t38;
5246
5206
  let t39;
5247
- if ($[116] !== handleProfileSettingChange || $[117] !== selectedProfile) {
5207
+ if ($[118] !== handleProfileSettingChange || $[119] !== selectedProfile) {
5248
5208
  t39 = (toolId_0, approval) => {
5249
5209
  if (selectedProfile) {
5250
5210
  const newToolApprovals_0 = {
@@ -5254,232 +5214,246 @@ const AgentSettings = (t0) => {
5254
5214
  handleProfileSettingChange("toolApprovals", newToolApprovals_0);
5255
5215
  }
5256
5216
  };
5257
- $[116] = handleProfileSettingChange;
5258
- $[117] = selectedProfile;
5259
- $[118] = t39;
5217
+ $[118] = handleProfileSettingChange;
5218
+ $[119] = selectedProfile;
5219
+ $[120] = t39;
5260
5220
  } else {
5261
- t39 = $[118];
5221
+ t39 = $[120];
5262
5222
  }
5263
5223
  const handleToolApprovalChange = t39;
5264
5224
  let t40;
5265
- if ($[119] !== t) {
5225
+ if ($[121] !== t) {
5266
5226
  t40 = t("settings.agent.tabs.general");
5267
- $[119] = t;
5268
- $[120] = t40;
5227
+ $[121] = t;
5228
+ $[122] = t40;
5269
5229
  } else {
5270
- t40 = $[120];
5230
+ t40 = $[122];
5271
5231
  }
5272
5232
  let t41;
5273
- if ($[121] !== t40) {
5233
+ if ($[123] !== t40) {
5274
5234
  t41 = {
5275
5235
  id: "general",
5276
5236
  label: t40
5277
5237
  };
5278
- $[121] = t40;
5279
- $[122] = t41;
5238
+ $[123] = t40;
5239
+ $[124] = t41;
5280
5240
  } else {
5281
- t41 = $[122];
5241
+ t41 = $[124];
5282
5242
  }
5283
5243
  let t42;
5284
- if ($[123] !== t) {
5244
+ if ($[125] !== t) {
5285
5245
  t42 = t("settings.agent.tabs.prompts");
5286
- $[123] = t;
5287
- $[124] = t42;
5246
+ $[125] = t;
5247
+ $[126] = t42;
5288
5248
  } else {
5289
- t42 = $[124];
5249
+ t42 = $[126];
5290
5250
  }
5291
5251
  let t43;
5292
- if ($[125] !== t42) {
5252
+ if ($[127] !== t42) {
5293
5253
  t43 = {
5294
5254
  id: "prompts",
5295
5255
  label: t42
5296
5256
  };
5297
- $[125] = t42;
5298
- $[126] = t43;
5257
+ $[127] = t42;
5258
+ $[128] = t43;
5299
5259
  } else {
5300
- t43 = $[126];
5260
+ t43 = $[128];
5301
5261
  }
5302
5262
  let t44;
5303
- if ($[127] !== t) {
5263
+ if ($[129] !== t) {
5304
5264
  t44 = t("settings.agent.tabs.tools");
5305
- $[127] = t;
5306
- $[128] = t44;
5265
+ $[129] = t;
5266
+ $[130] = t44;
5307
5267
  } else {
5308
- t44 = $[128];
5268
+ t44 = $[130];
5309
5269
  }
5310
5270
  let t45;
5311
- if ($[129] !== t44) {
5271
+ if ($[131] !== t44) {
5312
5272
  t45 = {
5313
5273
  id: "tools",
5314
5274
  label: t44
5315
5275
  };
5316
- $[129] = t44;
5317
- $[130] = t45;
5276
+ $[131] = t44;
5277
+ $[132] = t45;
5318
5278
  } else {
5319
- t45 = $[130];
5279
+ t45 = $[132];
5320
5280
  }
5321
5281
  let t46;
5322
- if ($[131] !== t) {
5282
+ if ($[133] !== t) {
5323
5283
  t46 = t("settings.agent.tabs.subagents");
5324
- $[131] = t;
5325
- $[132] = t46;
5284
+ $[133] = t;
5285
+ $[134] = t46;
5326
5286
  } else {
5327
- t46 = $[132];
5287
+ t46 = $[134];
5328
5288
  }
5329
5289
  let t47;
5330
- if ($[133] !== t46) {
5290
+ if ($[135] !== t46) {
5331
5291
  t47 = {
5332
5292
  id: "subagents",
5333
5293
  label: t46
5334
5294
  };
5335
- $[133] = t46;
5336
- $[134] = t47;
5295
+ $[135] = t46;
5296
+ $[136] = t47;
5337
5297
  } else {
5338
- t47 = $[134];
5298
+ t47 = $[136];
5339
5299
  }
5340
5300
  let t48;
5341
- if ($[135] !== t41 || $[136] !== t43 || $[137] !== t45 || $[138] !== t47) {
5301
+ if ($[137] !== t41 || $[138] !== t43 || $[139] !== t45 || $[140] !== t47) {
5342
5302
  t48 = [t41, t43, t45, t47];
5343
- $[135] = t41;
5344
- $[136] = t43;
5345
- $[137] = t45;
5346
- $[138] = t47;
5347
- $[139] = t48;
5303
+ $[137] = t41;
5304
+ $[138] = t43;
5305
+ $[139] = t45;
5306
+ $[140] = t47;
5307
+ $[141] = t48;
5348
5308
  } else {
5349
- t48 = $[139];
5309
+ t48 = $[141];
5350
5310
  }
5351
5311
  const profileTabs = t48;
5352
5312
  let t49;
5353
- if ($[140] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5313
+ if ($[142] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5354
5314
  t49 = (tabId) => {
5355
5315
  setActiveTab(tabId);
5356
5316
  };
5357
- $[140] = t49;
5317
+ $[142] = t49;
5358
5318
  } else {
5359
- t49 = $[140];
5319
+ t49 = $[142];
5360
5320
  }
5361
5321
  const handleTabChange = t49;
5362
5322
  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;
5323
+ if ($[143] !== dragging || $[144] !== hideListSidebar || $[145] !== isMobile) {
5324
+ t50 = (id) => {
5325
+ if (!dragging) {
5326
+ setSelectedProfileId(id);
5327
+ if (isMobile) {
5328
+ hideListSidebar();
5329
+ }
5330
+ }
5331
+ };
5332
+ $[143] = dragging;
5333
+ $[144] = hideListSidebar;
5334
+ $[145] = isMobile;
5335
+ $[146] = t50;
5366
5336
  } else {
5367
- t50 = $[141];
5337
+ t50 = $[146];
5368
5338
  }
5339
+ const handleSelectProfile = t50;
5369
5340
  let t51;
5370
- if ($[142] !== navigateContext) {
5371
- t51 = () => navigateContext("prev");
5372
- $[142] = navigateContext;
5373
- $[143] = t51;
5341
+ if ($[147] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5342
+ t51 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronLeft, { className: "w-3 h-3" });
5343
+ $[147] = t51;
5374
5344
  } else {
5375
- t51 = $[143];
5345
+ t51 = $[147];
5376
5346
  }
5377
5347
  let t52;
5378
- if ($[144] !== t) {
5379
- t52 = t("settings.agent.previousContext");
5380
- $[144] = t;
5381
- $[145] = t52;
5348
+ if ($[148] !== navigateContext) {
5349
+ t52 = () => navigateContext("prev");
5350
+ $[148] = navigateContext;
5351
+ $[149] = t52;
5382
5352
  } else {
5383
- t52 = $[145];
5353
+ t52 = $[149];
5384
5354
  }
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;
5355
+ let t53;
5356
+ if ($[150] !== t) {
5357
+ t53 = t("settings.agent.previousContext");
5358
+ $[150] = t;
5359
+ $[151] = t53;
5393
5360
  } else {
5394
- t54 = $[149];
5361
+ t53 = $[151];
5395
5362
  }
5363
+ const t54 = contexts.length <= 1;
5396
5364
  let t55;
5397
- if ($[150] !== getContextDisplayName) {
5398
- t55 = getContextDisplayName();
5399
- $[150] = getContextDisplayName;
5400
- $[151] = t55;
5365
+ if ($[152] !== t52 || $[153] !== t53 || $[154] !== t54) {
5366
+ t55 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t51, onClick: t52, tooltip: t53, disabled: t54, className: "p-1" });
5367
+ $[152] = t52;
5368
+ $[153] = t53;
5369
+ $[154] = t54;
5370
+ $[155] = t55;
5401
5371
  } else {
5402
- t55 = $[151];
5372
+ t55 = $[155];
5403
5373
  }
5404
5374
  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;
5375
+ if ($[156] !== getContextDisplayName) {
5376
+ t56 = getContextDisplayName();
5377
+ $[156] = getContextDisplayName;
5378
+ $[157] = t56;
5409
5379
  } else {
5410
- t56 = $[153];
5380
+ t56 = $[157];
5411
5381
  }
5412
5382
  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;
5383
+ if ($[158] !== t56) {
5384
+ t57 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-secondary truncate flex-1 text-center", children: t56 });
5385
+ $[158] = t56;
5386
+ $[159] = t57;
5416
5387
  } else {
5417
- t57 = $[154];
5388
+ t57 = $[159];
5418
5389
  }
5419
5390
  let t58;
5420
- if ($[155] !== navigateContext) {
5421
- t58 = () => navigateContext("next");
5422
- $[155] = navigateContext;
5423
- $[156] = t58;
5391
+ if ($[160] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5392
+ t58 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaChevronRight, { className: "w-3 h-3" });
5393
+ $[160] = t58;
5424
5394
  } else {
5425
- t58 = $[156];
5395
+ t58 = $[160];
5426
5396
  }
5427
5397
  let t59;
5428
- if ($[157] !== t) {
5429
- t59 = t("settings.agent.nextContext");
5430
- $[157] = t;
5431
- $[158] = t59;
5398
+ if ($[161] !== navigateContext) {
5399
+ t59 = () => navigateContext("next");
5400
+ $[161] = navigateContext;
5401
+ $[162] = t59;
5432
5402
  } else {
5433
- t59 = $[158];
5403
+ t59 = $[162];
5434
5404
  }
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;
5405
+ let t60;
5406
+ if ($[163] !== t) {
5407
+ t60 = t("settings.agent.nextContext");
5408
+ $[163] = t;
5409
+ $[164] = t60;
5443
5410
  } else {
5444
- t61 = $[162];
5411
+ t60 = $[164];
5445
5412
  }
5413
+ const t61 = contexts.length <= 1;
5446
5414
  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;
5415
+ if ($[165] !== t59 || $[166] !== t60 || $[167] !== t61) {
5416
+ t62 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { icon: t58, onClick: t59, tooltip: t60, disabled: t61, className: "p-1" });
5417
+ $[165] = t59;
5418
+ $[166] = t60;
5419
+ $[167] = t61;
5420
+ $[168] = t62;
5457
5421
  } else {
5458
- t62 = $[166];
5422
+ t62 = $[168];
5459
5423
  }
5460
5424
  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];
5425
+ if ($[169] !== t55 || $[170] !== t57 || $[171] !== t62) {
5426
+ 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: [
5427
+ t55,
5428
+ t57,
5429
+ t62
5430
+ ] }) });
5431
+ $[169] = t55;
5432
+ $[170] = t57;
5433
+ $[171] = t62;
5434
+ $[172] = t63;
5435
+ } else {
5436
+ t63 = $[172];
5479
5437
  }
5480
5438
  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: [
5439
+ if ($[173] !== agentProfileIds || $[174] !== clipboardProfile || $[175] !== filteredProfiles || $[176] !== handleDeleteProfile || $[177] !== handleDragEnd || $[178] !== handleSelectProfile || $[179] !== selectedProfileId || $[180] !== sensors || $[181] !== t) {
5440
+ 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)) }) }) });
5441
+ $[173] = agentProfileIds;
5442
+ $[174] = clipboardProfile;
5443
+ $[175] = filteredProfiles;
5444
+ $[176] = handleDeleteProfile;
5445
+ $[177] = handleDragEnd;
5446
+ $[178] = handleSelectProfile;
5447
+ $[179] = selectedProfileId;
5448
+ $[180] = sensors;
5449
+ $[181] = t;
5450
+ $[182] = t64;
5451
+ } else {
5452
+ t64 = $[182];
5453
+ }
5454
+ let t65;
5455
+ if ($[183] !== handleRestoreProfile || $[184] !== missingDefaultProfiles || $[185] !== profileContext || $[186] !== t) {
5456
+ 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
5457
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
5484
5458
  profile_9.subagent.enabled && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-3 h-3 rounded-full mr-2 border border-border-muted", style: {
5485
5459
  backgroundColor: profile_9.subagent.color
@@ -5488,84 +5462,138 @@ const AgentSettings = (t0) => {
5488
5462
  ] }),
5489
5463
  /* @__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
5464
  ] }, profile_9.id)) });
5491
- $[177] = handleRestoreProfile;
5492
- $[178] = missingDefaultProfiles;
5493
- $[179] = profileContext;
5494
- $[180] = t;
5495
- $[181] = t64;
5465
+ $[183] = handleRestoreProfile;
5466
+ $[184] = missingDefaultProfiles;
5467
+ $[185] = profileContext;
5468
+ $[186] = t;
5469
+ $[187] = t65;
5496
5470
  } 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];
5471
+ t65 = $[187];
5505
5472
  }
5506
5473
  let t66;
5507
- if ($[183] !== t) {
5508
- t66 = t("settings.agent.createNewProfileInContext");
5509
- $[183] = t;
5510
- $[184] = t66;
5474
+ if ($[188] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5475
+ t66 = /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlus, { className: "mr-2 w-3 h-3" });
5476
+ $[188] = t66;
5511
5477
  } else {
5512
- t66 = $[184];
5478
+ t66 = $[188];
5513
5479
  }
5514
5480
  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;
5481
+ if ($[189] !== t) {
5482
+ t67 = t("settings.agent.createNewProfileInContext");
5483
+ $[189] = t;
5484
+ $[190] = t67;
5524
5485
  } else {
5525
- t67 = $[187];
5486
+ t67 = $[190];
5526
5487
  }
5527
5488
  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
5489
+ if ($[191] !== handleCreateNewProfile || $[192] !== t67) {
5490
+ t68 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { onClick: handleCreateNewProfile, className: "", variant: "text", size: "sm", color: "primary", children: [
5491
+ t66,
5492
+ " ",
5493
+ t67
5542
5494
  ] });
5495
+ $[191] = handleCreateNewProfile;
5543
5496
  $[192] = t67;
5544
5497
  $[193] = t68;
5545
- $[194] = t69;
5546
5498
  } else {
5547
- t69 = $[194];
5499
+ t68 = $[193];
5500
+ }
5501
+ let t69;
5502
+ if ($[194] !== clipboardProfile || $[195] !== handlePasteProfile || $[196] !== t) {
5503
+ 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" });
5504
+ $[194] = clipboardProfile;
5505
+ $[195] = handlePasteProfile;
5506
+ $[196] = t;
5507
+ $[197] = t69;
5508
+ } else {
5509
+ t69 = $[197];
5548
5510
  }
5549
5511
  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,
5512
+ if ($[198] !== t68 || $[199] !== t69) {
5513
+ t70 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-2 border-t border-border-default flex items-center justify-center gap-2", children: [
5514
+ t68,
5555
5515
  t69
5556
5516
  ] });
5557
- $[195] = t62;
5558
- $[196] = t63;
5559
- $[197] = t64;
5560
- $[198] = t69;
5561
- $[199] = t70;
5517
+ $[198] = t68;
5518
+ $[199] = t69;
5519
+ $[200] = t70;
5562
5520
  } else {
5563
- t70 = $[199];
5521
+ t70 = $[200];
5564
5522
  }
5565
5523
  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: [
5524
+ if ($[201] !== t63 || $[202] !== t64 || $[203] !== t65 || $[204] !== t70) {
5525
+ t71 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5526
+ t63,
5527
+ t64,
5528
+ t65,
5529
+ t70
5530
+ ] });
5531
+ $[201] = t63;
5532
+ $[202] = t64;
5533
+ $[203] = t65;
5534
+ $[204] = t70;
5535
+ $[205] = t71;
5536
+ } else {
5537
+ t71 = $[205];
5538
+ }
5539
+ const listPane = t71;
5540
+ let t72;
5541
+ if ($[206] !== isMobile || $[207] !== listPane) {
5542
+ t72 = !isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-[260px] flex-shrink-0 border-r border-border-default flex flex-col", children: listPane });
5543
+ $[206] = isMobile;
5544
+ $[207] = listPane;
5545
+ $[208] = t72;
5546
+ } else {
5547
+ t72 = $[208];
5548
+ }
5549
+ let t73;
5550
+ if ($[209] !== hideListSidebar || $[210] !== isListSidebarOpen || $[211] !== isMobile || $[212] !== listPane || $[213] !== t) {
5551
+ t73 = isMobile && /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { children: isListSidebarOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(motion.div, { initial: {
5552
+ x: "-100%",
5553
+ opacity: 0
5554
+ }, animate: {
5555
+ x: 0,
5556
+ opacity: 1
5557
+ }, exit: {
5558
+ x: "-100%",
5559
+ opacity: 0
5560
+ }, transition: {
5561
+ duration: 0.3,
5562
+ ease: "easeInOut"
5563
+ }, className: "fixed inset-y-0 left-0 w-full h-full bg-bg-primary z-[1000] shadow-xl flex flex-col", children: [
5564
+ /* @__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: [
5565
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-semibold uppercase", children: t("settings.tabs.agents") }),
5566
+ /* @__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" }) })
5567
+ ] }),
5568
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 flex flex-col", children: listPane })
5569
+ ] }) });
5570
+ $[209] = hideListSidebar;
5571
+ $[210] = isListSidebarOpen;
5572
+ $[211] = isMobile;
5573
+ $[212] = listPane;
5574
+ $[213] = t;
5575
+ $[214] = t73;
5576
+ } else {
5577
+ t73 = $[214];
5578
+ }
5579
+ let t74;
5580
+ if ($[215] !== isMobile || $[216] !== selectedProfile?.name || $[217] !== t || $[218] !== toggleListSidebar) {
5581
+ 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: [
5582
+ /* @__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" }) }),
5583
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm font-medium uppercase truncate", children: selectedProfile?.name || t("settings.agent.selectOrCreateProfile") })
5584
+ ] });
5585
+ $[215] = isMobile;
5586
+ $[216] = selectedProfile?.name;
5587
+ $[217] = t;
5588
+ $[218] = toggleListSidebar;
5589
+ $[219] = t74;
5590
+ } else {
5591
+ t74 = $[219];
5592
+ }
5593
+ let t75;
5594
+ 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) {
5595
+ t75 = selectedProfile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5596
+ /* @__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
5597
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-end gap-2", children: [
5570
5598
  /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { ref: profileNameInputRef, label: t("agentProfiles.profileName"), value: selectedProfile.name, onChange: (e) => handleProfileSettingChange("name", e.target.value), wrapperClassName: "flex-1" }),
5571
5599
  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 +5605,67 @@ const AgentSettings = (t0) => {
5577
5605
  ] }),
5578
5606
  /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs, { tabs: profileTabs, activeTabId: activeTab, onTabChange: handleTabChange })
5579
5607
  ] }) }),
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: [
5608
+ /* @__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
5609
  activeTab === "general" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfileGeneralSection, { profile: selectedProfile, settings, onSettingChange: handleProfileSettingChange }),
5582
5610
  activeTab === "prompts" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfilePromptsSection, { profile: selectedProfile, onSettingChange: handleProfileSettingChange }),
5583
5611
  activeTab === "tools" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfileToolsSection, { profile: selectedProfile, mcpServers, extensionToolsInfo, onSettingChange: handleProfileSettingChange, onApprovalChange: handleToolApprovalChange, onToggleServerEnabled: handleToggleServerEnabled, onOpenMcpServers: () => onOpenMcpServers?.(profileContext) }),
5584
5612
  activeTab === "subagents" && /* @__PURE__ */ jsxRuntimeExports.jsx(ProfileSubagentsSection, { profile: selectedProfile, availableSubagents, onSettingChange: handleProfileSettingChange })
5585
5613
  ] }) })
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
5614
+ ] }) : /* @__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") }) });
5615
+ $[220] = activeTab;
5616
+ $[221] = agentModels;
5617
+ $[222] = agentProfiles.length;
5618
+ $[223] = availableSubagents;
5619
+ $[224] = currentModelId;
5620
+ $[225] = extensionToolsInfo;
5621
+ $[226] = handleDeleteProfile;
5622
+ $[227] = handleModelChange;
5623
+ $[228] = handleProfileSettingChange;
5624
+ $[229] = handleRemovePreferredModel;
5625
+ $[230] = handleResetProfile;
5626
+ $[231] = handleToggleServerEnabled;
5627
+ $[232] = handleToolApprovalChange;
5628
+ $[233] = isMobile;
5629
+ $[234] = mcpServers;
5630
+ $[235] = onOpenMcpServers;
5631
+ $[236] = profileContext;
5632
+ $[237] = profileTabs;
5633
+ $[238] = providers;
5634
+ $[239] = selectedProfile;
5635
+ $[240] = selectedProfileId;
5636
+ $[241] = settings;
5637
+ $[242] = t;
5638
+ $[243] = t75;
5639
+ } else {
5640
+ t75 = $[243];
5641
+ }
5642
+ let t76;
5643
+ if ($[244] !== t74 || $[245] !== t75) {
5644
+ t76 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col h-full min-w-0", children: [
5645
+ t74,
5646
+ t75
5647
+ ] });
5648
+ $[244] = t74;
5649
+ $[245] = t75;
5650
+ $[246] = t76;
5651
+ } else {
5652
+ t76 = $[246];
5653
+ }
5654
+ let t77;
5655
+ if ($[247] !== t72 || $[248] !== t73 || $[249] !== t76) {
5656
+ t77 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full overflow-hidden", children: [
5657
+ t72,
5658
+ t73,
5659
+ t76
5618
5660
  ] });
5619
- $[223] = t70;
5620
- $[224] = t71;
5621
- $[225] = t72;
5661
+ $[247] = t72;
5662
+ $[248] = t73;
5663
+ $[249] = t76;
5664
+ $[250] = t77;
5622
5665
  } else {
5623
- t72 = $[225];
5666
+ t77 = $[250];
5624
5667
  }
5625
- return t72;
5668
+ return t77;
5626
5669
  };
5627
5670
  function _temp(p) {
5628
5671
  return p.baseDir;