@aiderdesk/aiderdesk 0.88.0 → 0.90.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 (166) hide show
  1. package/bin/aiderdesk.js +23 -4
  2. package/out/renderer/assets/2DXBBFLN-CN7PCbP4.js +666 -0
  3. package/out/renderer/assets/46IJ22JX-C0JBV-DN.js +853 -0
  4. package/out/renderer/assets/4TTDE5I4-9dfnF-mJ.js +501 -0
  5. package/out/renderer/assets/4UF3HTLV-BOGNNOtG.js +29 -0
  6. package/out/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
  7. package/out/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
  8. package/out/renderer/assets/AAXQQPKT-CUxujcLx.js +1130 -0
  9. package/out/renderer/assets/AKE5O7KZ-BacZZCk1.js +184 -0
  10. package/out/renderer/assets/{AgentSettings-DffQ3g7i.js → AgentSettings-d970JEBg.js} +711 -265
  11. package/out/renderer/assets/BNMLP6AG-CPZZ4Yk4.js +804 -0
  12. package/out/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
  13. package/out/renderer/assets/DR6PKOQU-B1RVO4q1.js +301 -0
  14. package/out/renderer/assets/E4RJ7UJB-DblNDQqr.js +441 -0
  15. package/out/renderer/assets/ELSXBIJH-Cv7twqii.js +39 -0
  16. package/out/renderer/assets/ERTIBQVS-BOWB3hEk.js +182 -0
  17. package/out/renderer/assets/F653G4FO-W-KqfQ-Y.js +1497 -0
  18. package/out/renderer/assets/FKCDD66M-B14TkcR1.js +205 -0
  19. package/out/renderer/assets/FP7KDXVC-CfbGNJSU.js +221 -0
  20. package/out/renderer/assets/FT5I3RHX-CN4zS9Hs.js +243 -0
  21. package/out/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
  22. package/out/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
  23. package/out/renderer/assets/GY35JXOZ-JZ4iNyhl.js +168 -0
  24. package/out/renderer/assets/H5EEJPP2-uIwpGj04.js +353 -0
  25. package/out/renderer/assets/HWDLEDTA-B-21e-nW.js +982 -0
  26. package/out/renderer/assets/{InfoIcon-CMLVIQF3.js → InfoIcon-BdHyLaWR.js} +1 -1
  27. package/out/renderer/assets/JZWSX6AR-CGOPcITT.js +67 -0
  28. package/out/renderer/assets/KQOEJWJY-CVXfAIs2.js +84 -0
  29. package/out/renderer/assets/KS3BB3KE-CtBv4FqR.js +138 -0
  30. package/out/renderer/assets/KXJRRZHI-BM99Fieb.js +502 -0
  31. package/out/renderer/assets/MFVI5XKI-CnIb_NK6.js +10 -0
  32. package/out/renderer/assets/MWY2J62P-_tQcE8Un.js +1102 -0
  33. package/out/renderer/assets/MXGNCBL2-BNrmRaJD.js +216 -0
  34. package/out/renderer/assets/N6DAJLIZ-BAz5hAGi.js +120 -0
  35. package/out/renderer/assets/NU5M23IW-CffAjbNM.js +116 -0
  36. package/out/renderer/assets/NV4XNBIS-CVgN6zoj.js +1221 -0
  37. package/out/renderer/assets/OGLU4SIR-BWc9bhhe.js +289 -0
  38. package/out/renderer/assets/OUNS5N76-Da3c60xf.js +1064 -0
  39. package/out/renderer/assets/{Onboarding-699qRMTN.js → Onboarding-C_40udgn.js} +4 -4
  40. package/out/renderer/assets/PU4ISKXV-caynfvUT.js +515 -0
  41. package/out/renderer/assets/PUZGS23X-BBtie16s.js +21 -0
  42. package/out/renderer/assets/{ProviderHeader-BnuGEmze.js → ProviderHeader-DTr3RouJ.js} +226 -68
  43. package/out/renderer/assets/Q3IYVLG5-BtsgTutD.js +500 -0
  44. package/out/renderer/assets/QYHQDLKZ-B_qsOSul.js +983 -0
  45. package/out/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
  46. package/out/renderer/assets/RZSVICHU-Bmzdqx47.js +263 -0
  47. package/out/renderer/assets/{SettingsPage-CLTNRnQI.js → SettingsPage-BfCnceVZ.js} +1952 -1744
  48. package/out/renderer/assets/UEXXS2NB-BzcZ5Jtl.js +25 -0
  49. package/out/renderer/assets/UHTQJXKL-C3dTKgrU.js +134 -0
  50. package/out/renderer/assets/URA2L2QI-B0LuLlBK.js +201 -0
  51. package/out/renderer/assets/UXCHDUKG-BCkRaN06.js +173 -0
  52. package/out/renderer/assets/{UsageDashboard-DRihVOqx.js → UsageDashboard-C8R2mFRK.js} +11329 -8646
  53. package/out/renderer/assets/VKNV3BUX-DIigERiR.js +277 -0
  54. package/out/renderer/assets/VMV7XPHP-ZutksyU0.js +127 -0
  55. package/out/renderer/assets/WEVWDWVA-RbwADIlH.js +57 -0
  56. package/out/renderer/assets/XRRJ35LF-C0MrgsVR.js +119 -0
  57. package/out/renderer/assets/YFKBLVVN-DWeGL1O-.js +990 -0
  58. package/out/renderer/assets/YHRE5QGZ-QRdA6Sjw.js +697 -0
  59. package/out/renderer/assets/ZF3OVT4B-Br3NszUk.js +420 -0
  60. package/out/renderer/assets/{index-DTwId9nn.js → index--wHnLMDb.js} +1 -1
  61. package/out/renderer/assets/{index-D1Him45L.js → index-8j5_0Xmy.js} +2 -2
  62. package/out/renderer/assets/{index-BeF6VrSe.js → index-B5RSRSoJ.js} +1 -1
  63. package/out/renderer/assets/{index-8-JzmzqC.js → index-B7B7XIvK.js} +2 -2
  64. package/out/renderer/assets/{index-4IKrE3Ch.js → index-B8KC4V_E.js} +2 -2
  65. package/out/renderer/assets/{index-CNGDTtBW.js → index-BE3TwVrI.js} +1 -1
  66. package/out/renderer/assets/{index-BSh2X31_.js → index-BI_bWG8f.js} +5 -5
  67. package/out/renderer/assets/{index-DBHj35Nq.js → index-BSVdNEPT.js} +2 -2
  68. package/out/renderer/assets/{index-CY4zeK5l.js → index-Bfv_tHDl.js} +3 -3
  69. package/out/renderer/assets/{index-tkTKXqGX.js → index-BgwAdiY-.js} +3 -3
  70. package/out/renderer/assets/{index-TTgmBk0H.js → index-CCXOgMyH.js} +1 -1
  71. package/out/renderer/assets/{index-DZ8Tuuit.js → index-CPsc5AXE.js} +33253 -56520
  72. package/out/renderer/assets/{index-Z7VaFhjR.js → index-CbIhyJsA.js} +1 -1
  73. package/out/renderer/assets/{index-ly0cB32v.css → index-CmC58I3A.css} +147 -0
  74. package/out/renderer/assets/{index-C-WEDvyw.js → index-CmZ1Jh7h.js} +5 -5
  75. package/out/renderer/assets/{index-Dq8m0XiD.js → index-Cpbtrl5u.js} +2 -2
  76. package/out/renderer/assets/{index-D2Y9BB9n.js → index-Ctxv0x2L.js} +5 -5
  77. package/out/renderer/assets/{index-BFLm6WFt.js → index-CuPAggjp.js} +5 -5
  78. package/out/renderer/assets/{index-BhXi7Le_.js → index-D3XbzIRk.js} +5 -5
  79. package/out/renderer/assets/{index-3hl2j-_p.js → index-D5x1sIX6.js} +2 -2
  80. package/out/renderer/assets/{index-vBiBurKH.js → index-D6Wnf7gd.js} +2 -2
  81. package/out/renderer/assets/{index-Otcl72On.js → index-DLjRa0WD.js} +1403 -1403
  82. package/out/renderer/assets/{index-D1jY29Az.js → index-DjulCRn0.js} +4 -4
  83. package/out/renderer/assets/{index-CnxPOcjf.js → index-Dmxn6jrh.js} +1 -1
  84. package/out/renderer/assets/{index-HjbPyDJm.js → index-Dq6Gglw0.js} +5 -5
  85. package/out/renderer/assets/{index-DUOs3uZb.js → index-DvBIPTnQ.js} +1 -1
  86. package/out/renderer/assets/{index--DpoC2Fa.js → index-XefJXdnR.js} +2 -2
  87. package/out/renderer/assets/{index-CC_7dh5L.js → index-ZECsEmSY.js} +2 -2
  88. package/out/renderer/assets/{index-B41U46QG.js → index-cOR6WxqF.js} +1 -1
  89. package/out/renderer/assets/{index-Bv8Yvnki.js → index-dFdSx4rr.js} +2 -2
  90. package/out/renderer/assets/{index-BJ-vdpjD.js → index-j2Lce0uE.js} +1 -1
  91. package/out/renderer/assets/{index-DHZvdQmh.js → index-rCofdqK1.js} +2 -2
  92. package/out/renderer/assets/{index-CBVmxCYX.js → index-sKm26BNt.js} +2 -2
  93. package/out/renderer/assets/{jsx-dev-runtime-DshTpFeb.js → jsx-dev-runtime-Cc6Jhn6s.js} +1 -1
  94. package/out/renderer/index.html +2 -2
  95. package/out/resources/prompts/system-prompt.hbs +11 -0
  96. package/out/resources/skills/extension-creator/SKILL.md +32 -1
  97. package/out/resources/skills/extension-creator/references/event-types.md +3 -3
  98. package/out/resources/skills/extension-creator/references/extension-interface.md +67 -0
  99. package/out/resources/skills/extension-creator/references/external-agent-providers.md +90 -0
  100. package/out/resources/skills/extension-creator/references/ui-components.md +29 -4
  101. package/out/runner.js +2235 -393
  102. package/package.json +22 -22
  103. package/out/renderer/assets/abnfDiagram-N423BO3Z-D0STbTTF.js +0 -118
  104. package/out/renderer/assets/arc-DeFSKBzy.js +0 -131
  105. package/out/renderer/assets/architectureDiagram-T3A2C74G-BDrfxwK6.js +0 -8829
  106. package/out/renderer/assets/band-zXq5o_Ib.js +0 -77
  107. package/out/renderer/assets/blockDiagram-VBNYF7ZC-x_YF9Yme.js +0 -3824
  108. package/out/renderer/assets/c4Diagram-5PPSVZJV-C7kuvNRf.js +0 -2482
  109. package/out/renderer/assets/channel-T97-CMvj.js +0 -7
  110. package/out/renderer/assets/chunk-2GRJ4B5K-C7nbnxgH.js +0 -116
  111. package/out/renderer/assets/chunk-2Q5K7J3B-D5IUyzX4.js +0 -19
  112. package/out/renderer/assets/chunk-5RXB4S5H-DkL2I1-Q.js +0 -1988
  113. package/out/renderer/assets/chunk-5VM5RSS4-qszW8EYL.js +0 -19
  114. package/out/renderer/assets/chunk-6Q2QTUOP-CbtMo4y_.js +0 -860
  115. package/out/renderer/assets/chunk-GF5L2VYU-C6qdgHXJ.js +0 -2026
  116. package/out/renderer/assets/chunk-JWPE2WC7-DxAg7bLn.js +0 -16
  117. package/out/renderer/assets/chunk-KBJHAD2P-Cqd2HDdS.js +0 -24
  118. package/out/renderer/assets/chunk-RYQCIY6F-DVzbqgRf.js +0 -474
  119. package/out/renderer/assets/chunk-XXDRQBXY-DF_8pbWI.js +0 -13
  120. package/out/renderer/assets/classDiagram-JCYQIIEL-MfTsDS5w.js +0 -23
  121. package/out/renderer/assets/classDiagram-v2-OCEON4UE-MfTsDS5w.js +0 -23
  122. package/out/renderer/assets/cose-bilkent-JH36ORCC-BvzyW9fn.js +0 -4942
  123. package/out/renderer/assets/cynefin-VYW2F7L2-BmRenSSB.js +0 -32093
  124. package/out/renderer/assets/cynefinDiagram-MW4NZA55-DmybMaTR.js +0 -453
  125. package/out/renderer/assets/cytoscape.esm-Bx_1tVW-.js +0 -30332
  126. package/out/renderer/assets/dagre-VZM6K2ZE-b6plu1_t.js +0 -522
  127. package/out/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
  128. package/out/renderer/assets/diagram-7IWD3JNH-B0LyLNK-.js +0 -488
  129. package/out/renderer/assets/diagram-B4RE2ZJO-BtJGLH72.js +0 -632
  130. package/out/renderer/assets/diagram-LBJQPF4R-BpSykW90.js +0 -212
  131. package/out/renderer/assets/diagram-Q27KOJAE-_vw0jdNl.js +0 -857
  132. package/out/renderer/assets/diagram-UB23O5K3-rE12zYQ8.js +0 -311
  133. package/out/renderer/assets/ebnfDiagram-BXEA7PRR-BXR1_d_o.js +0 -138
  134. package/out/renderer/assets/erDiagram-JOGREHBK-B1QCAGl4.js +0 -1238
  135. package/out/renderer/assets/flowDiagram-UKHOOZJN-wRfN63to.js +0 -2348
  136. package/out/renderer/assets/ganttDiagram-PKOTCBZU-DsXpzatp.js +0 -2782
  137. package/out/renderer/assets/gitGraphDiagram-DS77QQ5N-CsYsZ42q.js +0 -1373
  138. package/out/renderer/assets/graph-CfUL5tFv.js +0 -1308
  139. package/out/renderer/assets/infoDiagram-6WML65LV-BXT6TYnf.js +0 -31
  140. package/out/renderer/assets/init-CTO7spbL.js +0 -35
  141. package/out/renderer/assets/ishikawaDiagram-WSZJBQD7-6BJ687Ec.js +0 -967
  142. package/out/renderer/assets/journeyDiagram-NVQOT4AX-HgkRlCT0.js +0 -1255
  143. package/out/renderer/assets/kanban-definition-27J2QSJJ-COYri25f.js +0 -1052
  144. package/out/renderer/assets/layout-BBVpFPy1.js +0 -2326
  145. package/out/renderer/assets/linear-DuNIFrPi.js +0 -361
  146. package/out/renderer/assets/map-toxJVbdU.js +0 -299
  147. package/out/renderer/assets/mindmap-definition-FAOFIHXS-DhCEcxPL.js +0 -1153
  148. package/out/renderer/assets/ordinal-BD3Y6v77.js +0 -77
  149. package/out/renderer/assets/pegDiagram-VL7TDLO6-DZ8w3ViJ.js +0 -126
  150. package/out/renderer/assets/pieDiagram-7S7Q4E2Y-JcEYE_Dn.js +0 -316
  151. package/out/renderer/assets/quadrantDiagram-CIZ2JOQS-De59Sk4l.js +0 -1343
  152. package/out/renderer/assets/railroadDiagram-AXF67PYL-D7nWbE5S.js +0 -92
  153. package/out/renderer/assets/requirementDiagram-LRYGKXZP-DKWcKu7I.js +0 -1204
  154. package/out/renderer/assets/sankeyDiagram-W5VNT64P-Bj8jLitx.js +0 -1274
  155. package/out/renderer/assets/sequenceDiagram-SI44F4Z6-D9Jp65xC.js +0 -4514
  156. package/out/renderer/assets/sizeCapture-X5ZJPWSS-mY9H2lE6.js +0 -62
  157. package/out/renderer/assets/stateDiagram-OKZ733FA-BEn9ud4k.js +0 -452
  158. package/out/renderer/assets/stateDiagram-v2-UEYNNEHI-D_psrMs3.js +0 -22
  159. package/out/renderer/assets/swimlanes-SLNWSIFB-BMcpfWEi.js +0 -8557
  160. package/out/renderer/assets/swimlanesDiagram-ULZ7WXOC-OwdbT2xV.js +0 -20
  161. package/out/renderer/assets/time-DMe8nTku.js +0 -985
  162. package/out/renderer/assets/timeline-definition-Z64GVDOM-BTi-OvtJ.js +0 -1596
  163. package/out/renderer/assets/vennDiagram-T6HMQDX7-CoxSnB7W.js +0 -2515
  164. package/out/renderer/assets/wardleyDiagram-T6FBY63Y-Dj0FNpwr.js +0 -975
  165. package/out/renderer/assets/xychartDiagram-ELKLHX3M-jVSDR4Ov.js +0 -1943
  166. package/patches/ai+7.0.127.patch +0 -29
@@ -1,13 +1,5 @@
1
- import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, ck as useTranslation, cj as reactExports, cV as Checkbox, cu as Button, eX as HiEye, cX as Input, dp as TextArea, eY as Trans, dS as CodeInline, eZ as SUPPORTED_LANGUAGES, cU as Select, e_ as useClickOutside, e$ as FaEllipsisVertical, f0 as BiCut, ds as BiTrash, dO as BiCopy, f1 as useSortable, f2 as CSS, cY as Slider, I as IconButton, e0 as FaTimes, e5 as ContextCompactionType, d4 as Tooltip, f3 as TOOL_GROUP_NAME_SEPARATOR, f4 as ToolApprovalState, dx as useApi, dt as McpOAuthStatus, dF as extractIpcErrorMessage, cW as Accordion, du as FaPencilAlt, dv as FaTrash, f5 as POWER_TOOL_GROUP_NAME, f6 as POWER_TOOL_BASH, f7 as AIDER_TOOL_GROUP_NAME, f8 as TODO_TOOL_GROUP_NAME, f9 as TASKS_TOOL_GROUP_NAME, fa as MEMORY_TOOL_GROUP_NAME, fb as SKILLS_TOOL_GROUP_NAME, fc as MEMORY_TOOL_DESCRIPTIONS, fd as MEMORY_TOOL_STORE, fe as MEMORY_TOOL_RETRIEVE, ff as MEMORY_TOOL_LIST, fg as MEMORY_TOOL_UPDATE, fh as MEMORY_TOOL_DELETE, fi as TASKS_TOOL_DESCRIPTIONS, fj as TASKS_TOOL_LIST_TASKS, fk as TASKS_TOOL_GET_TASK, fl as TASKS_TOOL_GET_TASK_MESSAGE, fm as TASKS_TOOL_CREATE_TASK, fn as TASKS_TOOL_DELETE_TASK, fo as TASKS_TOOL_SEARCH_TASK, fp as TODO_TOOL_DESCRIPTIONS, fq as TODO_TOOL_SET_ITEMS, fr as TODO_TOOL_GET_ITEMS, fs as TODO_TOOL_UPDATE_ITEM_COMPLETION, ft as TODO_TOOL_CLEAR_ITEMS, fu as POWER_TOOL_DESCRIPTIONS, fv as POWER_TOOL_FILE_EDIT, fw as POWER_TOOL_FILE_READ, fx as POWER_TOOL_FILE_WRITE, fy as POWER_TOOL_GLOB, fz as POWER_TOOL_GREP, fA as POWER_TOOL_SEMANTIC_SEARCH, fB as POWER_TOOL_FETCH, fC as AIDER_TOOL_DESCRIPTIONS, fD as AIDER_TOOL_GET_CONTEXT_FILES, fE as AIDER_TOOL_ADD_CONTEXT_FILES, fF as AIDER_TOOL_DROP_CONTEXT_FILES, fG as AIDER_TOOL_RUN_PROMPT, es as FaPlug, fH as _extends$1, fI as React, fJ as _objectWithoutPropertiesLoose$1, fK as InvocationMode, fL as ContextMemoryMode, dz as useResponsive, dA as useBooleanState, cs as DEFAULT_AGENT_PROFILE, dy as useMcpServers, ci as useModelProviders, fM as useExtensionTools, fN as DEFAULT_AGENT_PROFILES, fO as useSensors, fP as useSensor, fQ as KeyboardSensor, fR as PointerSensor, e6 as getProviderModelId, fS as DndContext, fT as closestCenter, fU as SortableContext, fV as verticalListSortingStrategy, dI as FaPlus, fW as FaPaste, dB as AnimatePresence, dC as motion, dD as HiXMark, dE as RiMenuUnfold4Line, fX as BiReset, fY as ModelSelector, fZ as Tabs, f_ as sortableKeyboardCoordinates, f$ as arrayMove, aK as v4, cx as showErrorNotification, dG as FaChevronLeft, dH as FaChevronRight } from "./index-DZ8Tuuit.js";
2
- import { I as InfoIcon } from "./InfoIcon-CMLVIQF3.js";
3
- const getPathBasename = (inputPath) => {
4
- if (!inputPath) {
5
- return inputPath;
6
- }
7
- const normalized = inputPath.replace(/\\/g, "/");
8
- const segments = normalized.split("/").filter(Boolean);
9
- return segments[segments.length - 1] || inputPath;
10
- };
1
+ import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, aA as useTranslation, az as reactExports, b0 as Checkbox, aK as Button, cH as HiEye, b2 as Input, bv as TextArea, cI as Trans, bZ as CodeInline, cJ as SUPPORTED_LANGUAGES, a$ as Select, cK as useClickOutside, cL as FaEllipsisVertical, cM as BiCut, by as BiTrash, bV as BiCopy, cN as useSortable, cO as CSS, b3 as Slider, I as IconButton, c7 as FaTimes, cc as ContextCompactionType, aY as Tooltip, cP as useDropdownState, cQ as reactDomExports, cR as HiCheck, cS as KeyboardKeys, cT as HiChevronUpDown, cU as ToolRecoveryMode, cV as RiAlertLine, cW as RiRefreshLine, cX as RiProhibitedLine, cY as TOOL_GROUP_NAME_SEPARATOR, cZ as ToolApprovalState, bD as useApi, bz as McpOAuthStatus, bM as extractIpcErrorMessage, b1 as Accordion, bA as FaPencilAlt, bB as FaTrash, c_ as DEFAULT_TOOL_RECOVERY_MODES, c$ as POWER_TOOL_GROUP_NAME, d0 as POWER_TOOL_BASH, d1 as AIDER_TOOL_GROUP_NAME, d2 as TODO_TOOL_GROUP_NAME, d3 as TASKS_TOOL_GROUP_NAME, d4 as MEMORY_TOOL_GROUP_NAME, d5 as SKILLS_TOOL_GROUP_NAME, d6 as SUBAGENTS_TOOL_GROUP_NAME, d7 as MEMORY_TOOL_DESCRIPTIONS, d8 as MEMORY_TOOL_STORE, d9 as MEMORY_TOOL_RETRIEVE, da as MEMORY_TOOL_LIST, db as MEMORY_TOOL_UPDATE, dc as MEMORY_TOOL_DELETE, dd as TASKS_TOOL_DESCRIPTIONS, de as TASKS_TOOL_LIST_TASKS, df as TASKS_TOOL_GET_TASK, dg as TASKS_TOOL_GET_TASK_MESSAGE, dh as TASKS_TOOL_CREATE_TASK, di as TASKS_TOOL_DELETE_TASK, dj as TASKS_TOOL_SEARCH_TASK, dk as TODO_TOOL_DESCRIPTIONS, dl as TODO_TOOL_SET_ITEMS, dm as TODO_TOOL_GET_ITEMS, dn as TODO_TOOL_UPDATE_ITEM_COMPLETION, dp as TODO_TOOL_CLEAR_ITEMS, dq as POWER_TOOL_DESCRIPTIONS, dr as POWER_TOOL_FILE_EDIT, ds as POWER_TOOL_FILE_READ, dt as POWER_TOOL_FILE_WRITE, du as POWER_TOOL_GLOB, dv as POWER_TOOL_GREP, dw as POWER_TOOL_SEMANTIC_SEARCH, dx as POWER_TOOL_FETCH, dy as AIDER_TOOL_DESCRIPTIONS, dz as AIDER_TOOL_GET_CONTEXT_FILES, dA as AIDER_TOOL_ADD_CONTEXT_FILES, dB as AIDER_TOOL_DROP_CONTEXT_FILES, dC as AIDER_TOOL_RUN_PROMPT, dD as SUBAGENTS_TOOL_RUN_TASK, cy as FaPlug, dE as _extends$1, dF as React, dG as _objectWithoutPropertiesLoose$1, dH as InvocationMode, dI as ContextMemoryMode, bF as useResponsive, bG as useBooleanState, aI as DEFAULT_AGENT_PROFILE, bE as useMcpServers, ay as useModelProviders, dJ as useExtensionTools, dK as DEFAULT_AGENT_PROFILES, dL as useSensors, dM as useSensor, dN as KeyboardSensor, dO as PointerSensor, cd as getProviderModelId, dP as DndContext, dQ as closestCenter, dR as SortableContext, dS as verticalListSortingStrategy, bP as FaPlus, dT as FaPaste, bH as AnimatePresence, bI as motion, bJ as HiXMark, bK as RiMenuUnfold4Line, dU as BiReset, dV as ModelSelector, dW as Tabs, bL as getPathBasename, dX as sortableKeyboardCoordinates, dY as arrayMove, dZ as v4, aN as showErrorNotification, bN as FaChevronLeft, bO as FaChevronRight } from "./index-CPsc5AXE.js";
2
+ import { I as InfoIcon } from "./InfoIcon-BdHyLaWR.js";
11
3
  const Section = (t0) => {
12
4
  const $ = compilerRuntimeExports.c(9);
13
5
  const {
@@ -1965,13 +1957,369 @@ const ProfilePromptsSection = (t0) => {
1965
1957
  }
1966
1958
  return t15;
1967
1959
  };
1960
+ const RichSelect = (t0) => {
1961
+ const $ = compilerRuntimeExports.c(48);
1962
+ const {
1963
+ options,
1964
+ value,
1965
+ onChange,
1966
+ renderTrigger,
1967
+ triggerClassName,
1968
+ menuWidth: t1,
1969
+ align: t2,
1970
+ placement: t3,
1971
+ disabled: t4,
1972
+ ariaLabel
1973
+ } = t0;
1974
+ const menuWidth = t1 === void 0 ? 260 : t1;
1975
+ const align = t2 === void 0 ? "left" : t2;
1976
+ const placement = t3 === void 0 ? "bottom" : t3;
1977
+ const disabled = t4 === void 0 ? false : t4;
1978
+ const [position, setPosition] = reactExports.useState(null);
1979
+ const containerRef = reactExports.useRef(null);
1980
+ const menuRef = reactExports.useRef(null);
1981
+ let t5;
1982
+ if ($[0] !== value) {
1983
+ t5 = (opt) => opt.value === value;
1984
+ $[0] = value;
1985
+ $[1] = t5;
1986
+ } else {
1987
+ t5 = $[1];
1988
+ }
1989
+ const selectedOption = options.find(t5);
1990
+ let t6;
1991
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1992
+ t6 = {
1993
+ initialState: {
1994
+ highlightedIndex: -1
1995
+ },
1996
+ onCloseReset: {
1997
+ highlightedIndex: -1
1998
+ }
1999
+ };
2000
+ $[2] = t6;
2001
+ } else {
2002
+ t6 = $[2];
2003
+ }
2004
+ const {
2005
+ isOpen,
2006
+ state,
2007
+ open,
2008
+ close,
2009
+ toggle,
2010
+ updateState
2011
+ } = useDropdownState(t6);
2012
+ let t7;
2013
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2014
+ t7 = [containerRef, menuRef];
2015
+ $[3] = t7;
2016
+ } else {
2017
+ t7 = $[3];
2018
+ }
2019
+ useClickOutside(t7, close, isOpen);
2020
+ let t8;
2021
+ if ($[4] !== align || $[5] !== disabled || $[6] !== isOpen || $[7] !== menuWidth || $[8] !== open || $[9] !== options || $[10] !== placement || $[11] !== toggle || $[12] !== value) {
2022
+ t8 = () => {
2023
+ if (disabled) {
2024
+ return;
2025
+ }
2026
+ if (!isOpen && containerRef.current) {
2027
+ const rect = containerRef.current.getBoundingClientRect();
2028
+ const left = align === "right" ? rect.right + window.scrollX - menuWidth : rect.left + window.scrollX;
2029
+ setPosition({
2030
+ top: placement === "top" ? rect.top + window.scrollY : rect.bottom + window.scrollY,
2031
+ left
2032
+ });
2033
+ open({
2034
+ highlightedIndex: options.findIndex((opt_0) => opt_0.value === value)
2035
+ });
2036
+ } else {
2037
+ toggle();
2038
+ }
2039
+ };
2040
+ $[4] = align;
2041
+ $[5] = disabled;
2042
+ $[6] = isOpen;
2043
+ $[7] = menuWidth;
2044
+ $[8] = open;
2045
+ $[9] = options;
2046
+ $[10] = placement;
2047
+ $[11] = toggle;
2048
+ $[12] = value;
2049
+ $[13] = t8;
2050
+ } else {
2051
+ t8 = $[13];
2052
+ }
2053
+ const handleToggle = t8;
2054
+ let t9;
2055
+ if ($[14] !== close || $[15] !== onChange) {
2056
+ t9 = (option) => {
2057
+ close();
2058
+ onChange?.(option.value);
2059
+ };
2060
+ $[14] = close;
2061
+ $[15] = onChange;
2062
+ $[16] = t9;
2063
+ } else {
2064
+ t9 = $[16];
2065
+ }
2066
+ const handleSelect = t9;
2067
+ let t10;
2068
+ if ($[17] !== close || $[18] !== handleSelect || $[19] !== handleToggle || $[20] !== isOpen || $[21] !== options || $[22] !== state || $[23] !== updateState) {
2069
+ t10 = (e) => {
2070
+ if (!isOpen) {
2071
+ if (e.key === KeyboardKeys.Enter || e.key === KeyboardKeys.Space) {
2072
+ e.preventDefault();
2073
+ handleToggle();
2074
+ }
2075
+ return;
2076
+ }
2077
+ bb55: switch (e.key) {
2078
+ case KeyboardKeys.Escape: {
2079
+ e.preventDefault();
2080
+ close();
2081
+ break bb55;
2082
+ }
2083
+ case KeyboardKeys.ArrowDown: {
2084
+ e.preventDefault();
2085
+ updateState((prev_0) => ({
2086
+ highlightedIndex: prev_0.highlightedIndex >= options.length - 1 ? 0 : prev_0.highlightedIndex + 1
2087
+ }));
2088
+ break bb55;
2089
+ }
2090
+ case KeyboardKeys.ArrowUp: {
2091
+ e.preventDefault();
2092
+ updateState((prev) => ({
2093
+ highlightedIndex: prev.highlightedIndex <= 0 ? options.length - 1 : prev.highlightedIndex - 1
2094
+ }));
2095
+ break bb55;
2096
+ }
2097
+ case KeyboardKeys.Enter: {
2098
+ e.preventDefault();
2099
+ if (state.highlightedIndex >= 0 && state.highlightedIndex < options.length) {
2100
+ handleSelect(options[state.highlightedIndex]);
2101
+ }
2102
+ break bb55;
2103
+ }
2104
+ case KeyboardKeys.Tab: {
2105
+ close();
2106
+ }
2107
+ }
2108
+ };
2109
+ $[17] = close;
2110
+ $[18] = handleSelect;
2111
+ $[19] = handleToggle;
2112
+ $[20] = isOpen;
2113
+ $[21] = options;
2114
+ $[22] = state;
2115
+ $[23] = updateState;
2116
+ $[24] = t10;
2117
+ } else {
2118
+ t10 = $[24];
2119
+ }
2120
+ const handleKeyDown = t10;
2121
+ const t11 = isOpen && "border-border-light";
2122
+ let t12;
2123
+ if ($[25] !== t11 || $[26] !== triggerClassName) {
2124
+ t12 = clsx("flex items-center gap-2 bg-bg-secondary-light border-2 border-border-default rounded px-2 py-1 text-xs text-text-primary", t11, triggerClassName);
2125
+ $[25] = t11;
2126
+ $[26] = triggerClassName;
2127
+ $[27] = t12;
2128
+ } else {
2129
+ t12 = $[27];
2130
+ }
2131
+ let t13;
2132
+ if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2133
+ t13 = /* @__PURE__ */ jsxRuntimeExports.jsx(HiChevronUpDown, { className: "size-4 text-text-muted flex-shrink-0" });
2134
+ $[28] = t13;
2135
+ } else {
2136
+ t13 = $[28];
2137
+ }
2138
+ const defaultTrigger = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t12, children: [
2139
+ selectedOption?.icon,
2140
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 truncate", children: selectedOption?.label }),
2141
+ t13
2142
+ ] });
2143
+ const t14 = "relative";
2144
+ const t15 = "button";
2145
+ const t16 = "listbox";
2146
+ const t17 = "flex items-center focus:outline-none disabled:opacity-50";
2147
+ const t18 = renderTrigger ? renderTrigger(selectedOption, isOpen) : defaultTrigger;
2148
+ let t19;
2149
+ if ($[29] !== ariaLabel || $[30] !== disabled || $[31] !== handleKeyDown || $[32] !== handleToggle || $[33] !== isOpen || $[34] !== t18) {
2150
+ t19 = /* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: t15, onClick: handleToggle, onKeyDown: handleKeyDown, "aria-haspopup": t16, "aria-expanded": isOpen, "aria-label": ariaLabel, disabled, className: t17, children: t18 });
2151
+ $[29] = ariaLabel;
2152
+ $[30] = disabled;
2153
+ $[31] = handleKeyDown;
2154
+ $[32] = handleToggle;
2155
+ $[33] = isOpen;
2156
+ $[34] = t18;
2157
+ $[35] = t19;
2158
+ } else {
2159
+ t19 = $[35];
2160
+ }
2161
+ let t20;
2162
+ if ($[36] !== handleSelect || $[37] !== isOpen || $[38] !== menuWidth || $[39] !== options || $[40] !== placement || $[41] !== position || $[42] !== selectedOption?.value || $[43] !== state) {
2163
+ t20 = isOpen && position && reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { ref: menuRef, className: "absolute z-50 mt-1 max-h-72 overflow-auto rounded-md bg-bg-secondary-light py-1 ring-1 shadow-lg ring-black/5 focus:outline-none scrollbar-thin scrollbar-track-bg-secondary-light scrollbar-thumb-bg-fourth", style: {
2164
+ top: placement === "top" ? void 0 : `${position.top}px`,
2165
+ bottom: placement === "top" ? `${window.innerHeight - position.top + 4}px` : void 0,
2166
+ left: `${position.left}px`,
2167
+ width: `${menuWidth}px`
2168
+ }, role: "listbox", children: options.map((opt_1, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { onClick: () => handleSelect(opt_1), className: clsx("relative flex cursor-pointer select-none items-start gap-2.5 px-3 py-2", selectedOption?.value === opt_1.value || state.highlightedIndex === index ? "bg-bg-tertiary" : "hover:bg-bg-tertiary"), role: "option", "aria-selected": selectedOption?.value === opt_1.value, children: [
2169
+ opt_1.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mt-0.5 flex-shrink-0", children: opt_1.icon }),
2170
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1", children: [
2171
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2 text-xs font-medium text-text-primary", children: opt_1.label }),
2172
+ opt_1.description && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-0.5 text-2xs leading-snug text-text-muted-light", children: opt_1.description })
2173
+ ] }),
2174
+ selectedOption?.value === opt_1.value && /* @__PURE__ */ jsxRuntimeExports.jsx(HiCheck, { className: "mt-0.5 size-4 flex-shrink-0 text-text-tertiary" })
2175
+ ] }, opt_1.value)) }), document.body);
2176
+ $[36] = handleSelect;
2177
+ $[37] = isOpen;
2178
+ $[38] = menuWidth;
2179
+ $[39] = options;
2180
+ $[40] = placement;
2181
+ $[41] = position;
2182
+ $[42] = selectedOption?.value;
2183
+ $[43] = state;
2184
+ $[44] = t20;
2185
+ } else {
2186
+ t20 = $[44];
2187
+ }
2188
+ let t21;
2189
+ if ($[45] !== t19 || $[46] !== t20) {
2190
+ t21 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: containerRef, className: t14, children: [
2191
+ t19,
2192
+ t20
2193
+ ] });
2194
+ $[45] = t19;
2195
+ $[46] = t20;
2196
+ $[47] = t21;
2197
+ } else {
2198
+ t21 = $[47];
2199
+ }
2200
+ return t21;
2201
+ };
2202
+ const MODE_CONFIG = {
2203
+ [ToolRecoveryMode.Forget]: {
2204
+ icon: RiProhibitedLine,
2205
+ color: "text-text-muted"
2206
+ },
2207
+ [ToolRecoveryMode.Safe]: {
2208
+ icon: RiRefreshLine,
2209
+ color: "text-success"
2210
+ },
2211
+ [ToolRecoveryMode.Notify]: {
2212
+ icon: RiAlertLine,
2213
+ color: "text-warning"
2214
+ }
2215
+ };
2216
+ const ToolRecoverySelect = (t0) => {
2217
+ const $ = compilerRuntimeExports.c(16);
2218
+ const {
2219
+ value,
2220
+ onChange
2221
+ } = t0;
2222
+ const {
2223
+ t
2224
+ } = useTranslation();
2225
+ let t1;
2226
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2227
+ t1 = Object.values(ToolRecoveryMode);
2228
+ $[0] = t1;
2229
+ } else {
2230
+ t1 = $[0];
2231
+ }
2232
+ let t2;
2233
+ if ($[1] !== t) {
2234
+ t2 = t1.map((mode) => {
2235
+ const {
2236
+ icon: Icon,
2237
+ color: color2
2238
+ } = MODE_CONFIG[mode];
2239
+ return {
2240
+ value: mode,
2241
+ label: t("tool.recovery." + mode),
2242
+ description: t("tool.recovery.descriptions." + mode),
2243
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: clsx("h-3.5 w-3.5", color2) })
2244
+ };
2245
+ });
2246
+ $[1] = t;
2247
+ $[2] = t2;
2248
+ } else {
2249
+ t2 = $[2];
2250
+ }
2251
+ const options = t2;
2252
+ let t3;
2253
+ if ($[3] !== onChange) {
2254
+ t3 = (next) => {
2255
+ onChange(next);
2256
+ };
2257
+ $[3] = onChange;
2258
+ $[4] = t3;
2259
+ } else {
2260
+ t3 = $[4];
2261
+ }
2262
+ const handleChange = t3;
2263
+ let t4;
2264
+ if ($[5] !== t) {
2265
+ t4 = (selected, isOpen) => {
2266
+ const mode_0 = selected?.value ?? ToolRecoveryMode.Forget;
2267
+ const {
2268
+ icon: Icon_0,
2269
+ color: color_0
2270
+ } = MODE_CONFIG[mode_0];
2271
+ const tooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1 text-left", children: [
2272
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "font-semibold text-text-primary", children: t("tool.recovery.label") }),
2273
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-text-secondary", children: t("tool.recovery.description") }),
2274
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-1 border-t border-border-default pt-1", children: [
2275
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium text-text-primary", children: t("tool.recovery." + mode_0) }),
2276
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-text-muted-light", children: [
2277
+ " — ",
2278
+ t("tool.recovery.descriptions." + mode_0)
2279
+ ] })
2280
+ ] })
2281
+ ] });
2282
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { content: tooltip, maxWidth: 320, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("flex h-8 w-8 items-center justify-center rounded border-2 transition-colors", isOpen ? "border-border-light bg-bg-tertiary" : "border-border-default bg-bg-secondary-light hover:bg-bg-tertiary"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon_0, { className: clsx("h-3.5 w-3.5", color_0) }) }) });
2283
+ };
2284
+ $[5] = t;
2285
+ $[6] = t4;
2286
+ } else {
2287
+ t4 = $[6];
2288
+ }
2289
+ const renderTrigger = t4;
2290
+ const t5 = "tool.recovery." + value;
2291
+ let t6;
2292
+ if ($[7] !== t || $[8] !== t5) {
2293
+ t6 = t(t5);
2294
+ $[7] = t;
2295
+ $[8] = t5;
2296
+ $[9] = t6;
2297
+ } else {
2298
+ t6 = $[9];
2299
+ }
2300
+ let t7;
2301
+ if ($[10] !== handleChange || $[11] !== options || $[12] !== renderTrigger || $[13] !== t6 || $[14] !== value) {
2302
+ t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(RichSelect, { options, value, onChange: handleChange, renderTrigger, menuWidth: 260, align: "right", ariaLabel: t6 });
2303
+ $[10] = handleChange;
2304
+ $[11] = options;
2305
+ $[12] = renderTrigger;
2306
+ $[13] = t6;
2307
+ $[14] = value;
2308
+ $[15] = t7;
2309
+ } else {
2310
+ t7 = $[15];
2311
+ }
2312
+ return t7;
2313
+ };
1968
2314
  const McpToolItem = (t0) => {
1969
- const $ = compilerRuntimeExports.c(36);
2315
+ const $ = compilerRuntimeExports.c(45);
1970
2316
  const {
1971
2317
  tool,
1972
2318
  serverName,
1973
2319
  toolApprovals,
1974
- onApprovalChange
2320
+ onApprovalChange,
2321
+ toolRecoveryModes,
2322
+ onRecoveryModeChange
1975
2323
  } = t0;
1976
2324
  const {
1977
2325
  t
@@ -2061,57 +2409,82 @@ const McpToolItem = (t0) => {
2061
2409
  }
2062
2410
  const handleApprovalChange = t8;
2063
2411
  let t9;
2064
- if ($[19] !== tool.name) {
2065
- t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 text-xs ml-2 mr-2", children: tool.name });
2066
- $[19] = tool.name;
2067
- $[20] = t9;
2412
+ if ($[19] !== fullToolId || $[20] !== onRecoveryModeChange) {
2413
+ t9 = (value_0) => {
2414
+ onRecoveryModeChange?.(fullToolId, value_0);
2415
+ };
2416
+ $[19] = fullToolId;
2417
+ $[20] = onRecoveryModeChange;
2418
+ $[21] = t9;
2068
2419
  } else {
2069
- t9 = $[20];
2420
+ t9 = $[21];
2070
2421
  }
2422
+ const handleRecoveryModeChange = t9;
2071
2423
  let t10;
2072
- if ($[21] !== t || $[22] !== tool.description) {
2073
- t10 = tool.description?.trim() || t("tool.noDescription");
2074
- $[21] = t;
2075
- $[22] = tool.description;
2424
+ if ($[22] !== tool.name) {
2425
+ t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 text-xs ml-2 mr-2", children: tool.name });
2426
+ $[22] = tool.name;
2076
2427
  $[23] = t10;
2077
2428
  } else {
2078
2429
  t10 = $[23];
2079
2430
  }
2080
2431
  let t11;
2081
- if ($[24] !== t10) {
2082
- t11 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t10, tooltipMaxWidth: 600 });
2083
- $[24] = t10;
2084
- $[25] = t11;
2432
+ if ($[24] !== t || $[25] !== tool.description) {
2433
+ t11 = tool.description?.trim() || t("tool.noDescription");
2434
+ $[24] = t;
2435
+ $[25] = tool.description;
2436
+ $[26] = t11;
2085
2437
  } else {
2086
- t11 = $[25];
2438
+ t11 = $[26];
2087
2439
  }
2088
2440
  let t12;
2089
- if ($[26] !== approvalOptions || $[27] !== currentApproval || $[28] !== handleApprovalChange || $[29] !== onApprovalChange || $[30] !== toolApprovals) {
2090
- t12 = onApprovalChange && toolApprovals && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: currentApproval, onChange: handleApprovalChange }) });
2091
- $[26] = approvalOptions;
2092
- $[27] = currentApproval;
2093
- $[28] = handleApprovalChange;
2094
- $[29] = onApprovalChange;
2095
- $[30] = toolApprovals;
2096
- $[31] = t12;
2441
+ if ($[27] !== t11) {
2442
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t11, tooltipMaxWidth: 600 });
2443
+ $[27] = t11;
2444
+ $[28] = t12;
2097
2445
  } else {
2098
- t12 = $[31];
2446
+ t12 = $[28];
2099
2447
  }
2100
2448
  let t13;
2101
- if ($[32] !== t11 || $[33] !== t12 || $[34] !== t9) {
2102
- t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
2103
- t9,
2104
- t11,
2105
- t12
2449
+ if ($[29] !== fullToolId || $[30] !== handleRecoveryModeChange || $[31] !== onRecoveryModeChange || $[32] !== toolRecoveryModes) {
2450
+ t13 = onRecoveryModeChange && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mr-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolRecoverySelect, { value: toolRecoveryModes?.[fullToolId] ?? ToolRecoveryMode.Forget, onChange: handleRecoveryModeChange }) });
2451
+ $[29] = fullToolId;
2452
+ $[30] = handleRecoveryModeChange;
2453
+ $[31] = onRecoveryModeChange;
2454
+ $[32] = toolRecoveryModes;
2455
+ $[33] = t13;
2456
+ } else {
2457
+ t13 = $[33];
2458
+ }
2459
+ let t14;
2460
+ if ($[34] !== approvalOptions || $[35] !== currentApproval || $[36] !== handleApprovalChange || $[37] !== onApprovalChange || $[38] !== toolApprovals) {
2461
+ t14 = onApprovalChange && toolApprovals && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: currentApproval, onChange: handleApprovalChange }) });
2462
+ $[34] = approvalOptions;
2463
+ $[35] = currentApproval;
2464
+ $[36] = handleApprovalChange;
2465
+ $[37] = onApprovalChange;
2466
+ $[38] = toolApprovals;
2467
+ $[39] = t14;
2468
+ } else {
2469
+ t14 = $[39];
2470
+ }
2471
+ let t15;
2472
+ if ($[40] !== t10 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14) {
2473
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
2474
+ t10,
2475
+ t12,
2476
+ t13,
2477
+ t14
2106
2478
  ] });
2107
- $[32] = t11;
2108
- $[33] = t12;
2109
- $[34] = t9;
2110
- $[35] = t13;
2479
+ $[40] = t10;
2480
+ $[41] = t12;
2481
+ $[42] = t13;
2482
+ $[43] = t14;
2483
+ $[44] = t15;
2111
2484
  } else {
2112
- t13 = $[35];
2485
+ t15 = $[44];
2113
2486
  }
2114
- return t13;
2487
+ return t15;
2115
2488
  };
2116
2489
  const McpOAuthControls = ({
2117
2490
  serverName,
@@ -2211,6 +2584,8 @@ const McpServerItem = ({
2211
2584
  onRemove,
2212
2585
  onEdit,
2213
2586
  toolApprovals,
2587
+ toolRecoveryModes,
2588
+ onRecoveryModeChange,
2214
2589
  onApprovalChange,
2215
2590
  reloadTrigger = 0,
2216
2591
  enabled,
@@ -2318,16 +2693,17 @@ const McpServerItem = ({
2318
2693
  /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: commonApproval ?? MIXED_VALUE, notFoundLabel: MIXED_VALUE, onChange: handleBulkApprovalChange })
2319
2694
  ] })
2320
2695
  ] }),
2321
- tools2.map((tool_3) => /* @__PURE__ */ jsxRuntimeExports.jsx(McpToolItem, { tool: tool_3, toolApprovals, onApprovalChange, serverName }, tool_3.name))
2696
+ tools2.map((tool_3) => /* @__PURE__ */ jsxRuntimeExports.jsx(McpToolItem, { toolRecoveryModes, onRecoveryModeChange, tool: tool_3, toolApprovals, onApprovalChange, serverName }, tool_3.name))
2322
2697
  ] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted p-4", children: t("mcp.noToolsFound") })
2323
2698
  ] }) });
2324
2699
  };
2325
2700
  const GenericToolItem = (t0) => {
2326
- const $ = compilerRuntimeExports.c(41);
2701
+ const $ = compilerRuntimeExports.c(52);
2327
2702
  const {
2328
2703
  tool,
2329
2704
  profile,
2330
2705
  onApprovalChange,
2706
+ onRecoveryModeChange,
2331
2707
  renderToolSettings
2332
2708
  } = t0;
2333
2709
  const {
@@ -2418,84 +2794,112 @@ const GenericToolItem = (t0) => {
2418
2794
  }
2419
2795
  const handleApprovalChange = t8;
2420
2796
  let t9;
2421
- if ($[19] !== tool.name) {
2422
- t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 text-xs ml-2 mr-2", children: tool.name });
2423
- $[19] = tool.name;
2424
- $[20] = t9;
2797
+ if ($[19] !== fullToolId || $[20] !== onRecoveryModeChange) {
2798
+ t9 = (value_0) => {
2799
+ onRecoveryModeChange?.(fullToolId, value_0);
2800
+ };
2801
+ $[19] = fullToolId;
2802
+ $[20] = onRecoveryModeChange;
2803
+ $[21] = t9;
2425
2804
  } else {
2426
- t9 = $[20];
2805
+ t9 = $[21];
2427
2806
  }
2807
+ const handleRecoveryModeChange = t9;
2428
2808
  let t10;
2429
- if ($[21] !== t || $[22] !== tool.description) {
2430
- t10 = tool.description?.trim() || t("tool.noDescription");
2431
- $[21] = t;
2432
- $[22] = tool.description;
2809
+ if ($[22] !== tool.name) {
2810
+ t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 text-xs ml-2 mr-2", children: tool.name });
2811
+ $[22] = tool.name;
2433
2812
  $[23] = t10;
2434
2813
  } else {
2435
2814
  t10 = $[23];
2436
2815
  }
2437
2816
  let t11;
2438
- if ($[24] !== t10) {
2439
- t11 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t10 });
2440
- $[24] = t10;
2441
- $[25] = t11;
2817
+ if ($[24] !== t || $[25] !== tool.description) {
2818
+ t11 = tool.description?.trim() || t("tool.noDescription");
2819
+ $[24] = t;
2820
+ $[25] = tool.description;
2821
+ $[26] = t11;
2442
2822
  } else {
2443
- t11 = $[25];
2823
+ t11 = $[26];
2444
2824
  }
2445
2825
  let t12;
2446
- if ($[26] !== approvalOptions || $[27] !== currentApproval || $[28] !== handleApprovalChange || $[29] !== onApprovalChange || $[30] !== profile.toolApprovals) {
2447
- t12 = onApprovalChange && profile.toolApprovals && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: currentApproval, onChange: handleApprovalChange }) });
2448
- $[26] = approvalOptions;
2449
- $[27] = currentApproval;
2450
- $[28] = handleApprovalChange;
2451
- $[29] = onApprovalChange;
2452
- $[30] = profile.toolApprovals;
2453
- $[31] = t12;
2826
+ if ($[27] !== t11) {
2827
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t11 });
2828
+ $[27] = t11;
2829
+ $[28] = t12;
2454
2830
  } else {
2455
- t12 = $[31];
2831
+ t12 = $[28];
2456
2832
  }
2457
2833
  let t13;
2458
- if ($[32] !== t11 || $[33] !== t12 || $[34] !== t9) {
2459
- t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
2460
- t9,
2461
- t11,
2462
- t12
2463
- ] });
2464
- $[32] = t11;
2465
- $[33] = t12;
2466
- $[34] = t9;
2834
+ if ($[29] !== fullToolId || $[30] !== handleRecoveryModeChange || $[31] !== onRecoveryModeChange || $[32] !== profile.toolRecoveryModes || $[33] !== tool.name || $[34] !== tool.recoveryMode) {
2835
+ t13 = onRecoveryModeChange && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mr-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolRecoverySelect, { value: profile.toolRecoveryModes?.[fullToolId] ?? tool.recoveryMode ?? DEFAULT_TOOL_RECOVERY_MODES[fullToolId] ?? DEFAULT_TOOL_RECOVERY_MODES[tool.name] ?? ToolRecoveryMode.Forget, onChange: handleRecoveryModeChange }) });
2836
+ $[29] = fullToolId;
2837
+ $[30] = handleRecoveryModeChange;
2838
+ $[31] = onRecoveryModeChange;
2839
+ $[32] = profile.toolRecoveryModes;
2840
+ $[33] = tool.name;
2841
+ $[34] = tool.recoveryMode;
2467
2842
  $[35] = t13;
2468
2843
  } else {
2469
2844
  t13 = $[35];
2470
2845
  }
2471
2846
  let t14;
2472
- if ($[36] !== renderToolSettings) {
2473
- t14 = renderToolSettings && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "pb-4", children: renderToolSettings() });
2474
- $[36] = renderToolSettings;
2475
- $[37] = t14;
2847
+ if ($[36] !== approvalOptions || $[37] !== currentApproval || $[38] !== handleApprovalChange || $[39] !== onApprovalChange || $[40] !== profile.toolApprovals) {
2848
+ t14 = onApprovalChange && profile.toolApprovals && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: currentApproval, onChange: handleApprovalChange }) });
2849
+ $[36] = approvalOptions;
2850
+ $[37] = currentApproval;
2851
+ $[38] = handleApprovalChange;
2852
+ $[39] = onApprovalChange;
2853
+ $[40] = profile.toolApprovals;
2854
+ $[41] = t14;
2476
2855
  } else {
2477
- t14 = $[37];
2856
+ t14 = $[41];
2478
2857
  }
2479
2858
  let t15;
2480
- if ($[38] !== t13 || $[39] !== t14) {
2481
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2859
+ if ($[42] !== t10 || $[43] !== t12 || $[44] !== t13 || $[45] !== t14) {
2860
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
2861
+ t10,
2862
+ t12,
2482
2863
  t13,
2483
2864
  t14
2484
2865
  ] });
2485
- $[38] = t13;
2486
- $[39] = t14;
2487
- $[40] = t15;
2866
+ $[42] = t10;
2867
+ $[43] = t12;
2868
+ $[44] = t13;
2869
+ $[45] = t14;
2870
+ $[46] = t15;
2488
2871
  } else {
2489
- t15 = $[40];
2872
+ t15 = $[46];
2490
2873
  }
2491
- return t15;
2874
+ let t16;
2875
+ if ($[47] !== renderToolSettings) {
2876
+ t16 = renderToolSettings && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "pb-4", children: renderToolSettings() });
2877
+ $[47] = renderToolSettings;
2878
+ $[48] = t16;
2879
+ } else {
2880
+ t16 = $[48];
2881
+ }
2882
+ let t17;
2883
+ if ($[49] !== t15 || $[50] !== t16) {
2884
+ t17 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2885
+ t15,
2886
+ t16
2887
+ ] });
2888
+ $[49] = t15;
2889
+ $[50] = t16;
2890
+ $[51] = t17;
2891
+ } else {
2892
+ t17 = $[51];
2893
+ }
2894
+ return t17;
2492
2895
  };
2493
2896
  const BashToolItem = (t0) => {
2494
- const $ = compilerRuntimeExports.c(12);
2897
+ const $ = compilerRuntimeExports.c(13);
2495
2898
  const {
2496
2899
  tool,
2497
2900
  profile,
2498
2901
  onApprovalChange,
2902
+ onRecoveryModeChange,
2499
2903
  onProfileChange
2500
2904
  } = t0;
2501
2905
  const {
@@ -2550,20 +2954,21 @@ const BashToolItem = (t0) => {
2550
2954
  }
2551
2955
  const renderToolSettings = t1;
2552
2956
  let t2;
2553
- if ($[7] !== onApprovalChange || $[8] !== profile || $[9] !== renderToolSettings || $[10] !== tool) {
2554
- t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool, profile, onApprovalChange, renderToolSettings });
2957
+ if ($[7] !== onApprovalChange || $[8] !== onRecoveryModeChange || $[9] !== profile || $[10] !== renderToolSettings || $[11] !== tool) {
2958
+ t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool, profile, onApprovalChange, onRecoveryModeChange, renderToolSettings });
2555
2959
  $[7] = onApprovalChange;
2556
- $[8] = profile;
2557
- $[9] = renderToolSettings;
2558
- $[10] = tool;
2559
- $[11] = t2;
2960
+ $[8] = onRecoveryModeChange;
2961
+ $[9] = profile;
2962
+ $[10] = renderToolSettings;
2963
+ $[11] = tool;
2964
+ $[12] = t2;
2560
2965
  } else {
2561
- t2 = $[11];
2966
+ t2 = $[12];
2562
2967
  }
2563
2968
  return t2;
2564
2969
  };
2565
2970
  const GenericToolGroupItem = (t0) => {
2566
- const $ = compilerRuntimeExports.c(19);
2971
+ const $ = compilerRuntimeExports.c(23);
2567
2972
  const {
2568
2973
  name,
2569
2974
  displayName,
@@ -2578,8 +2983,23 @@ const GenericToolGroupItem = (t0) => {
2578
2983
  t
2579
2984
  } = useTranslation();
2580
2985
  let t1;
2581
- if ($[0] !== displayName || $[1] !== enabled || $[2] !== name || $[3] !== onEnabledChange || $[4] !== profile || $[5] !== t || $[6] !== tools2) {
2582
- t1 = () => {
2986
+ if ($[0] !== onProfileChange || $[1] !== profile) {
2987
+ t1 = (toolId, mode) => {
2988
+ onProfileChange("toolRecoveryModes", {
2989
+ ...profile.toolRecoveryModes,
2990
+ [toolId]: mode
2991
+ });
2992
+ };
2993
+ $[0] = onProfileChange;
2994
+ $[1] = profile;
2995
+ $[2] = t1;
2996
+ } else {
2997
+ t1 = $[2];
2998
+ }
2999
+ const handleRecoveryModeChange = t1;
3000
+ let t2;
3001
+ if ($[3] !== displayName || $[4] !== enabled || $[5] !== name || $[6] !== onEnabledChange || $[7] !== profile || $[8] !== t || $[9] !== tools2) {
3002
+ t2 = () => {
2583
3003
  const enabledCount = tools2.length - tools2.filter((tool) => profile.toolApprovals[`${name}${TOOL_GROUP_NAME_SEPARATOR}${tool.name}`] === ToolApprovalState.Never).length;
2584
3004
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between w-full", children: [
2585
3005
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
@@ -2592,58 +3012,64 @@ const GenericToolGroupItem = (t0) => {
2592
3012
  }) }) })
2593
3013
  ] });
2594
3014
  };
2595
- $[0] = displayName;
2596
- $[1] = enabled;
2597
- $[2] = name;
2598
- $[3] = onEnabledChange;
2599
- $[4] = profile;
2600
- $[5] = t;
2601
- $[6] = tools2;
2602
- $[7] = t1;
3015
+ $[3] = displayName;
3016
+ $[4] = enabled;
3017
+ $[5] = name;
3018
+ $[6] = onEnabledChange;
3019
+ $[7] = profile;
3020
+ $[8] = t;
3021
+ $[9] = tools2;
3022
+ $[10] = t2;
2603
3023
  } else {
2604
- t1 = $[7];
3024
+ t2 = $[10];
2605
3025
  }
2606
- const renderTitle = t1;
2607
- let t2;
2608
- if ($[8] !== renderTitle) {
2609
- t2 = renderTitle();
2610
- $[8] = renderTitle;
2611
- $[9] = t2;
3026
+ const renderTitle = t2;
3027
+ let t3;
3028
+ if ($[11] !== renderTitle) {
3029
+ t3 = renderTitle();
3030
+ $[11] = renderTitle;
3031
+ $[12] = t3;
2612
3032
  } else {
2613
- t2 = $[9];
3033
+ t3 = $[12];
2614
3034
  }
2615
- let t3;
2616
- if ($[10] !== onApprovalChange || $[11] !== onProfileChange || $[12] !== profile || $[13] !== t || $[14] !== tools2) {
2617
- t3 = tools2.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-xs p-2 pt-1 rounded mt-1 space-y-2", children: [
3035
+ let t4;
3036
+ if ($[13] !== handleRecoveryModeChange || $[14] !== onApprovalChange || $[15] !== onProfileChange || $[16] !== profile || $[17] !== t || $[18] !== tools2) {
3037
+ t4 = tools2.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-xs p-2 pt-1 rounded mt-1 space-y-2", children: [
2618
3038
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light ml-1", children: t("mcp.tools") }),
2619
3039
  tools2.map((tool_0) => {
2620
3040
  if (tool_0.name === POWER_TOOL_BASH) {
2621
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BashToolItem, { tool: tool_0, profile, onApprovalChange, onProfileChange }, tool_0.name);
3041
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BashToolItem, { tool: tool_0, profile, onApprovalChange, onRecoveryModeChange: handleRecoveryModeChange, onProfileChange }, tool_0.name);
2622
3042
  }
2623
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool: tool_0, profile, onApprovalChange }, tool_0.name);
3043
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool: tool_0, profile, onApprovalChange, onRecoveryModeChange: handleRecoveryModeChange }, tool_0.name);
2624
3044
  })
2625
3045
  ] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted p-4", children: t("mcp.noToolsFound") });
2626
- $[10] = onApprovalChange;
2627
- $[11] = onProfileChange;
2628
- $[12] = profile;
2629
- $[13] = t;
2630
- $[14] = tools2;
2631
- $[15] = t3;
3046
+ $[13] = handleRecoveryModeChange;
3047
+ $[14] = onApprovalChange;
3048
+ $[15] = onProfileChange;
3049
+ $[16] = profile;
3050
+ $[17] = t;
3051
+ $[18] = tools2;
3052
+ $[19] = t4;
2632
3053
  } else {
2633
- t3 = $[15];
3054
+ t4 = $[19];
2634
3055
  }
2635
- let t4;
2636
- if ($[16] !== t2 || $[17] !== t3) {
2637
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border border-border-default-dark rounded mb-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Accordion, { title: t2, buttonClassName: "px-2", chevronPosition: "right", children: t3 }) });
2638
- $[16] = t2;
2639
- $[17] = t3;
2640
- $[18] = t4;
3056
+ let t5;
3057
+ if ($[20] !== t3 || $[21] !== t4) {
3058
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border border-border-default-dark rounded mb-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Accordion, { title: t3, buttonClassName: "px-2", chevronPosition: "right", children: t4 }) });
3059
+ $[20] = t3;
3060
+ $[21] = t4;
3061
+ $[22] = t5;
2641
3062
  } else {
2642
- t4 = $[18];
3063
+ t5 = $[22];
2643
3064
  }
2644
- return t4;
3065
+ return t5;
2645
3066
  };
2646
3067
  const tools = {
3068
+ [SUBAGENTS_TOOL_GROUP_NAME]: [{
3069
+ groupName: SUBAGENTS_TOOL_GROUP_NAME,
3070
+ name: SUBAGENTS_TOOL_RUN_TASK,
3071
+ description: POWER_TOOL_DESCRIPTIONS[SUBAGENTS_TOOL_RUN_TASK]
3072
+ }],
2647
3073
  [AIDER_TOOL_GROUP_NAME]: [{
2648
3074
  groupName: AIDER_TOOL_GROUP_NAME,
2649
3075
  name: AIDER_TOOL_GET_CONTEXT_FILES,
@@ -2764,7 +3190,7 @@ const tools = {
2764
3190
  }]
2765
3191
  };
2766
3192
  const ProfileToolsSection = (t0) => {
2767
- const $ = compilerRuntimeExports.c(51);
3193
+ const $ = compilerRuntimeExports.c(55);
2768
3194
  const {
2769
3195
  profile,
2770
3196
  mcpServers,
@@ -2778,33 +3204,48 @@ const ProfileToolsSection = (t0) => {
2778
3204
  t
2779
3205
  } = useTranslation();
2780
3206
  let t1;
2781
- if ($[0] !== t) {
2782
- t1 = t("settings.agent.genericTools");
2783
- $[0] = t;
2784
- $[1] = t1;
3207
+ if ($[0] !== onSettingChange || $[1] !== profile) {
3208
+ t1 = (toolId, recoveryMode) => {
3209
+ onSettingChange("toolRecoveryModes", {
3210
+ ...profile.toolRecoveryModes,
3211
+ [toolId]: recoveryMode
3212
+ });
3213
+ };
3214
+ $[0] = onSettingChange;
3215
+ $[1] = profile;
3216
+ $[2] = t1;
2785
3217
  } else {
2786
- t1 = $[1];
3218
+ t1 = $[2];
2787
3219
  }
3220
+ const handleRecoveryModeChange = t1;
2788
3221
  let t2;
2789
- if ($[2] !== t1) {
2790
- t2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-text-primary mb-3", children: t1 });
2791
- $[2] = t1;
2792
- $[3] = t2;
3222
+ if ($[3] !== t) {
3223
+ t2 = t("settings.agent.genericTools");
3224
+ $[3] = t;
3225
+ $[4] = t2;
2793
3226
  } else {
2794
- t2 = $[3];
3227
+ t2 = $[4];
2795
3228
  }
2796
3229
  let t3;
2797
- if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2798
- t3 = Object.entries(tools);
2799
- $[4] = t3;
3230
+ if ($[5] !== t2) {
3231
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-text-primary mb-3", children: t2 });
3232
+ $[5] = t2;
3233
+ $[6] = t3;
2800
3234
  } else {
2801
- t3 = $[4];
3235
+ t3 = $[6];
2802
3236
  }
2803
3237
  let t4;
2804
- if ($[5] !== onApprovalChange || $[6] !== onSettingChange || $[7] !== profile) {
2805
- t4 = t3.map((t52) => {
2806
- const [groupName, groupTools] = t52;
2807
- const isGroupEnabled = profile.usePowerTools && groupName === POWER_TOOL_GROUP_NAME || profile.useAiderTools && groupName === AIDER_TOOL_GROUP_NAME || profile.useTodoTools && groupName === TODO_TOOL_GROUP_NAME || profile.useTaskTools && groupName === TASKS_TOOL_GROUP_NAME || profile.useMemoryTools && groupName === MEMORY_TOOL_GROUP_NAME || profile.useSkillsTools && groupName === SKILLS_TOOL_GROUP_NAME;
3238
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3239
+ t4 = Object.entries(tools);
3240
+ $[7] = t4;
3241
+ } else {
3242
+ t4 = $[7];
3243
+ }
3244
+ let t5;
3245
+ if ($[8] !== onApprovalChange || $[9] !== onSettingChange || $[10] !== profile) {
3246
+ t5 = t4.map((t62) => {
3247
+ const [groupName, groupTools] = t62;
3248
+ const isGroupEnabled = profile.usePowerTools && groupName === POWER_TOOL_GROUP_NAME || profile.useAiderTools && groupName === AIDER_TOOL_GROUP_NAME || profile.useTodoTools && groupName === TODO_TOOL_GROUP_NAME || profile.useTaskTools && groupName === TASKS_TOOL_GROUP_NAME || profile.useMemoryTools && groupName === MEMORY_TOOL_GROUP_NAME || profile.useSkillsTools && groupName === SKILLS_TOOL_GROUP_NAME || profile.useSubagents && groupName === SUBAGENTS_TOOL_GROUP_NAME;
2808
3249
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolGroupItem, { name: groupName, tools: groupTools, profile, onApprovalChange, onProfileChange: onSettingChange, enabled: isGroupEnabled, onEnabledChange: (enabled) => {
2809
3250
  if (groupName === POWER_TOOL_GROUP_NAME) {
2810
3251
  onSettingChange("usePowerTools", enabled);
@@ -2823,6 +3264,10 @@ const ProfileToolsSection = (t0) => {
2823
3264
  } else {
2824
3265
  if (groupName === SKILLS_TOOL_GROUP_NAME) {
2825
3266
  onSettingChange("useSkillsTools", enabled);
3267
+ } else {
3268
+ if (groupName === SUBAGENTS_TOOL_GROUP_NAME) {
3269
+ onSettingChange("useSubagents", enabled);
3270
+ }
2826
3271
  }
2827
3272
  }
2828
3273
  }
@@ -2831,22 +3276,23 @@ const ProfileToolsSection = (t0) => {
2831
3276
  }
2832
3277
  } }) }, groupName);
2833
3278
  });
2834
- $[5] = onApprovalChange;
2835
- $[6] = onSettingChange;
2836
- $[7] = profile;
2837
- $[8] = t4;
3279
+ $[8] = onApprovalChange;
3280
+ $[9] = onSettingChange;
3281
+ $[10] = profile;
3282
+ $[11] = t5;
2838
3283
  } else {
2839
- t4 = $[8];
3284
+ t5 = $[11];
2840
3285
  }
2841
- let t5;
2842
- if ($[9] !== extensionToolsInfo || $[10] !== onApprovalChange || $[11] !== onSettingChange || $[12] !== profile) {
2843
- let t62;
2844
- if ($[14] !== onApprovalChange || $[15] !== onSettingChange || $[16] !== profile) {
2845
- t62 = (extInfo) => {
3286
+ let t6;
3287
+ if ($[12] !== extensionToolsInfo || $[13] !== onApprovalChange || $[14] !== onSettingChange || $[15] !== profile) {
3288
+ let t72;
3289
+ if ($[17] !== onApprovalChange || $[18] !== onSettingChange || $[19] !== profile) {
3290
+ t72 = (extInfo) => {
2846
3291
  const extTools = extInfo.tools.map((tool) => ({
2847
3292
  groupName: extInfo.extensionId,
2848
3293
  name: tool.name,
2849
- description: tool.description
3294
+ description: tool.description,
3295
+ recoveryMode: tool.recoveryMode
2850
3296
  }));
2851
3297
  const isExtEnabled = !(profile.disabledExtensionTools ?? []).includes(extInfo.extensionId);
2852
3298
  const handleExtEnabledChange = (enabled_0) => {
@@ -2856,139 +3302,140 @@ const ProfileToolsSection = (t0) => {
2856
3302
  };
2857
3303
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolGroupItem, { name: extInfo.extensionId, displayName: extInfo.extensionName, tools: extTools, profile, onApprovalChange, onProfileChange: onSettingChange, enabled: isExtEnabled, onEnabledChange: handleExtEnabledChange }) }, extInfo.extensionId);
2858
3304
  };
2859
- $[14] = onApprovalChange;
2860
- $[15] = onSettingChange;
2861
- $[16] = profile;
2862
- $[17] = t62;
3305
+ $[17] = onApprovalChange;
3306
+ $[18] = onSettingChange;
3307
+ $[19] = profile;
3308
+ $[20] = t72;
2863
3309
  } else {
2864
- t62 = $[17];
3310
+ t72 = $[20];
2865
3311
  }
2866
- t5 = extensionToolsInfo.map(t62);
2867
- $[9] = extensionToolsInfo;
2868
- $[10] = onApprovalChange;
2869
- $[11] = onSettingChange;
2870
- $[12] = profile;
2871
- $[13] = t5;
3312
+ t6 = extensionToolsInfo.map(t72);
3313
+ $[12] = extensionToolsInfo;
3314
+ $[13] = onApprovalChange;
3315
+ $[14] = onSettingChange;
3316
+ $[15] = profile;
3317
+ $[16] = t6;
2872
3318
  } else {
2873
- t5 = $[13];
2874
- }
2875
- let t6;
2876
- if ($[18] !== t4 || $[19] !== t5) {
2877
- t6 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
2878
- t4,
2879
- t5
2880
- ] });
2881
- $[18] = t4;
2882
- $[19] = t5;
2883
- $[20] = t6;
2884
- } else {
2885
- t6 = $[20];
3319
+ t6 = $[16];
2886
3320
  }
2887
3321
  let t7;
2888
- if ($[21] !== extensionToolsInfo.length || $[22] !== t) {
2889
- t7 = Object.keys(tools).length === 0 && extensionToolsInfo.length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light my-4 text-center", children: t("settings.agent.noGenericToolsConfigured") });
2890
- $[21] = extensionToolsInfo.length;
2891
- $[22] = t;
3322
+ if ($[21] !== t5 || $[22] !== t6) {
3323
+ t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
3324
+ t5,
3325
+ t6
3326
+ ] });
3327
+ $[21] = t5;
3328
+ $[22] = t6;
2892
3329
  $[23] = t7;
2893
3330
  } else {
2894
3331
  t7 = $[23];
2895
3332
  }
2896
3333
  let t8;
2897
- if ($[24] !== t2 || $[25] !== t6 || $[26] !== t7) {
2898
- t8 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
2899
- t2,
2900
- t6,
2901
- t7
2902
- ] });
2903
- $[24] = t2;
2904
- $[25] = t6;
2905
- $[26] = t7;
2906
- $[27] = t8;
3334
+ if ($[24] !== extensionToolsInfo.length || $[25] !== t) {
3335
+ t8 = Object.keys(tools).length === 0 && extensionToolsInfo.length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light my-4 text-center", children: t("settings.agent.noGenericToolsConfigured") });
3336
+ $[24] = extensionToolsInfo.length;
3337
+ $[25] = t;
3338
+ $[26] = t8;
2907
3339
  } else {
2908
- t8 = $[27];
3340
+ t8 = $[26];
2909
3341
  }
2910
3342
  let t9;
2911
- if ($[28] !== t) {
2912
- t9 = t("settings.agent.mcpServers");
2913
- $[28] = t;
2914
- $[29] = t9;
3343
+ if ($[27] !== t3 || $[28] !== t7 || $[29] !== t8) {
3344
+ t9 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
3345
+ t3,
3346
+ t7,
3347
+ t8
3348
+ ] });
3349
+ $[27] = t3;
3350
+ $[28] = t7;
3351
+ $[29] = t8;
3352
+ $[30] = t9;
2915
3353
  } else {
2916
- t9 = $[29];
3354
+ t9 = $[30];
2917
3355
  }
2918
3356
  let t10;
2919
- if ($[30] !== t9) {
2920
- t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-text-primary mb-3", children: t9 });
2921
- $[30] = t9;
2922
- $[31] = t10;
3357
+ if ($[31] !== t) {
3358
+ t10 = t("settings.agent.mcpServers");
3359
+ $[31] = t;
3360
+ $[32] = t10;
2923
3361
  } else {
2924
- t10 = $[31];
3362
+ t10 = $[32];
2925
3363
  }
2926
3364
  let t11;
2927
- if ($[32] !== mcpServers || $[33] !== onApprovalChange || $[34] !== onToggleServerEnabled || $[35] !== profile) {
2928
- t11 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-1", children: Object.entries(mcpServers).map((t122) => {
2929
- const [serverName, serverConfig] = t122;
2930
- const isServerEnabled = (profile.enabledServers || []).includes(serverName);
2931
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(McpServerItem, { serverName, config: serverConfig, projectDir: profile.projectDir, toolApprovals: profile.toolApprovals || {}, onApprovalChange, enabled: isServerEnabled, onEnabledChange: (checked) => onToggleServerEnabled(serverName, checked) }) }, serverName);
2932
- }) });
2933
- $[32] = mcpServers;
2934
- $[33] = onApprovalChange;
2935
- $[34] = onToggleServerEnabled;
2936
- $[35] = profile;
2937
- $[36] = t11;
3365
+ if ($[33] !== t10) {
3366
+ t11 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-text-primary mb-3", children: t10 });
3367
+ $[33] = t10;
3368
+ $[34] = t11;
2938
3369
  } else {
2939
- t11 = $[36];
3370
+ t11 = $[34];
2940
3371
  }
2941
3372
  let t12;
2942
- if ($[37] !== mcpServers || $[38] !== t) {
2943
- t12 = Object.keys(mcpServers).length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light my-4 text-center", children: t("settings.agent.noServersConfigured") });
2944
- $[37] = mcpServers;
2945
- $[38] = t;
2946
- $[39] = t12;
3373
+ if ($[35] !== handleRecoveryModeChange || $[36] !== mcpServers || $[37] !== onApprovalChange || $[38] !== onToggleServerEnabled || $[39] !== profile) {
3374
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-1", children: Object.entries(mcpServers).map((t132) => {
3375
+ const [serverName, serverConfig] = t132;
3376
+ const isServerEnabled = (profile.enabledServers || []).includes(serverName);
3377
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(McpServerItem, { serverName, config: serverConfig, projectDir: profile.projectDir, toolApprovals: profile.toolApprovals || {}, toolRecoveryModes: profile.toolRecoveryModes, onRecoveryModeChange: handleRecoveryModeChange, onApprovalChange, enabled: isServerEnabled, onEnabledChange: (checked) => onToggleServerEnabled(serverName, checked) }) }, serverName);
3378
+ }) });
3379
+ $[35] = handleRecoveryModeChange;
3380
+ $[36] = mcpServers;
3381
+ $[37] = onApprovalChange;
3382
+ $[38] = onToggleServerEnabled;
3383
+ $[39] = profile;
3384
+ $[40] = t12;
2947
3385
  } else {
2948
- t12 = $[39];
3386
+ t12 = $[40];
2949
3387
  }
2950
3388
  let t13;
2951
- if ($[40] !== onOpenMcpServers || $[41] !== t) {
2952
- t13 = onOpenMcpServers && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center mt-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "outline", size: "xs", onClick: onOpenMcpServers, children: [
3389
+ if ($[41] !== mcpServers || $[42] !== t) {
3390
+ t13 = Object.keys(mcpServers).length === 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light my-4 text-center", children: t("settings.agent.noServersConfigured") });
3391
+ $[41] = mcpServers;
3392
+ $[42] = t;
3393
+ $[43] = t13;
3394
+ } else {
3395
+ t13 = $[43];
3396
+ }
3397
+ let t14;
3398
+ if ($[44] !== onOpenMcpServers || $[45] !== t) {
3399
+ t14 = onOpenMcpServers && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center mt-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { variant: "outline", size: "xs", onClick: onOpenMcpServers, children: [
2953
3400
  /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlug, { className: "w-3.5 h-3.5 mr-2" }),
2954
3401
  " ",
2955
3402
  t("settings.agent.configureMcpServers")
2956
3403
  ] }) });
2957
- $[40] = onOpenMcpServers;
2958
- $[41] = t;
2959
- $[42] = t13;
3404
+ $[44] = onOpenMcpServers;
3405
+ $[45] = t;
3406
+ $[46] = t14;
2960
3407
  } else {
2961
- t13 = $[42];
3408
+ t14 = $[46];
2962
3409
  }
2963
- let t14;
2964
- if ($[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t13) {
2965
- t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "border-t border-border-default-dark pt-4", children: [
2966
- t10,
3410
+ let t15;
3411
+ if ($[47] !== t11 || $[48] !== t12 || $[49] !== t13 || $[50] !== t14) {
3412
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "border-t border-border-default-dark pt-4", children: [
2967
3413
  t11,
2968
3414
  t12,
2969
- t13
3415
+ t13,
3416
+ t14
2970
3417
  ] });
2971
- $[43] = t10;
2972
- $[44] = t11;
2973
- $[45] = t12;
2974
- $[46] = t13;
2975
- $[47] = t14;
3418
+ $[47] = t11;
3419
+ $[48] = t12;
3420
+ $[49] = t13;
3421
+ $[50] = t14;
3422
+ $[51] = t15;
2976
3423
  } else {
2977
- t14 = $[47];
3424
+ t15 = $[51];
2978
3425
  }
2979
- let t15;
2980
- if ($[48] !== t14 || $[49] !== t8) {
2981
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-6", children: [
2982
- t8,
2983
- t14
3426
+ let t16;
3427
+ if ($[52] !== t15 || $[53] !== t9) {
3428
+ t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-6", children: [
3429
+ t9,
3430
+ t15
2984
3431
  ] });
2985
- $[48] = t14;
2986
- $[49] = t8;
2987
- $[50] = t15;
3432
+ $[52] = t15;
3433
+ $[53] = t9;
3434
+ $[54] = t16;
2988
3435
  } else {
2989
- t15 = $[50];
3436
+ t16 = $[54];
2990
3437
  }
2991
- return t15;
3438
+ return t16;
2992
3439
  };
2993
3440
  var RGB_MAX = 255;
2994
3441
  var SV_MAX = 100;
@@ -5716,6 +6163,5 @@ export {
5716
6163
  McpOAuthControls as M,
5717
6164
  Section as S,
5718
6165
  VerticalDotsMenu as V,
5719
- AgentSettings as a,
5720
- getPathBasename as g
6166
+ AgentSettings as a
5721
6167
  };