@aiderdesk/aiderdesk 0.88.0 → 0.89.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 (163) hide show
  1. package/out/renderer/assets/2DXBBFLN-DhlZjS3f.js +666 -0
  2. package/out/renderer/assets/46IJ22JX-C1e8pvI2.js +853 -0
  3. package/out/renderer/assets/4TTDE5I4-Bea_IXhu.js +501 -0
  4. package/out/renderer/assets/4UF3HTLV-CVqcE2iq.js +29 -0
  5. package/out/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
  6. package/out/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
  7. package/out/renderer/assets/AAXQQPKT-BVbjBycX.js +1130 -0
  8. package/out/renderer/assets/AKE5O7KZ-Dr4O6i9X.js +184 -0
  9. package/out/renderer/assets/{AgentSettings-DffQ3g7i.js → AgentSettings-ByYnHHTv.js} +710 -255
  10. package/out/renderer/assets/BNMLP6AG-CHDGj3j_.js +804 -0
  11. package/out/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
  12. package/out/renderer/assets/DR6PKOQU-C6a3Tq7K.js +301 -0
  13. package/out/renderer/assets/E4RJ7UJB-BQWgl9gv.js +441 -0
  14. package/out/renderer/assets/ELSXBIJH-CVPK3kX4.js +39 -0
  15. package/out/renderer/assets/ERTIBQVS-71_Ru0iJ.js +182 -0
  16. package/out/renderer/assets/F653G4FO-Dj2Ang6n.js +1497 -0
  17. package/out/renderer/assets/FKCDD66M-DCrQTwBi.js +205 -0
  18. package/out/renderer/assets/FP7KDXVC-DKVnH-En.js +221 -0
  19. package/out/renderer/assets/FT5I3RHX-hlTJy7Nw.js +243 -0
  20. package/out/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
  21. package/out/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
  22. package/out/renderer/assets/GY35JXOZ-cSi0MdIc.js +168 -0
  23. package/out/renderer/assets/H5EEJPP2-bpYW0xE8.js +353 -0
  24. package/out/renderer/assets/HWDLEDTA-uLGgs5fE.js +982 -0
  25. package/out/renderer/assets/{InfoIcon-CMLVIQF3.js → InfoIcon-DI4teJbi.js} +1 -1
  26. package/out/renderer/assets/JZWSX6AR-B0pkfB2b.js +67 -0
  27. package/out/renderer/assets/KQOEJWJY-EQFQbIDt.js +84 -0
  28. package/out/renderer/assets/KS3BB3KE-DclWHpbY.js +138 -0
  29. package/out/renderer/assets/KXJRRZHI-CHoCRoQ4.js +502 -0
  30. package/out/renderer/assets/MFVI5XKI-TmPyVySZ.js +10 -0
  31. package/out/renderer/assets/MWY2J62P-BlVjis68.js +1102 -0
  32. package/out/renderer/assets/MXGNCBL2-HvKcixVr.js +216 -0
  33. package/out/renderer/assets/N6DAJLIZ-B0JHSPS3.js +120 -0
  34. package/out/renderer/assets/NU5M23IW-CWgVJ5o_.js +116 -0
  35. package/out/renderer/assets/NV4XNBIS-uOSoaYKk.js +1221 -0
  36. package/out/renderer/assets/OGLU4SIR-CiNpshB1.js +289 -0
  37. package/out/renderer/assets/OUNS5N76-C6p0zhvm.js +1064 -0
  38. package/out/renderer/assets/{Onboarding-699qRMTN.js → Onboarding-Ct6-CF4Z.js} +4 -4
  39. package/out/renderer/assets/PU4ISKXV-BQc-2oYa.js +515 -0
  40. package/out/renderer/assets/PUZGS23X-Bf89SCAj.js +21 -0
  41. package/out/renderer/assets/{ProviderHeader-BnuGEmze.js → ProviderHeader-Buje398H.js} +2 -2
  42. package/out/renderer/assets/Q3IYVLG5-DbP4qs2C.js +500 -0
  43. package/out/renderer/assets/QYHQDLKZ-dANs6SeT.js +983 -0
  44. package/out/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
  45. package/out/renderer/assets/RZSVICHU-CeuX_9H4.js +263 -0
  46. package/out/renderer/assets/{SettingsPage-CLTNRnQI.js → SettingsPage-CLpPKXG1.js} +975 -845
  47. package/out/renderer/assets/UEXXS2NB-Bmbum3yG.js +25 -0
  48. package/out/renderer/assets/UHTQJXKL-C2OuiQBx.js +134 -0
  49. package/out/renderer/assets/URA2L2QI-DJ2BF8fn.js +201 -0
  50. package/out/renderer/assets/UXCHDUKG-B6wMZRAn.js +173 -0
  51. package/out/renderer/assets/{UsageDashboard-DRihVOqx.js → UsageDashboard-ORnsHGxF.js} +9130 -6449
  52. package/out/renderer/assets/VKNV3BUX-BMK4lviM.js +277 -0
  53. package/out/renderer/assets/VMV7XPHP-CzHnUaWh.js +127 -0
  54. package/out/renderer/assets/WEVWDWVA-BYWYeLxq.js +57 -0
  55. package/out/renderer/assets/XRRJ35LF-DaeQ2kbN.js +119 -0
  56. package/out/renderer/assets/YFKBLVVN-DsXlM7HO.js +990 -0
  57. package/out/renderer/assets/YHRE5QGZ-nB9z3NP1.js +697 -0
  58. package/out/renderer/assets/ZF3OVT4B-Ctn5OOBd.js +420 -0
  59. package/out/renderer/assets/{index-CC_7dh5L.js → index-BCaQe4ny.js} +2 -2
  60. package/out/renderer/assets/{index-HjbPyDJm.js → index-BD-JYQGT.js} +5 -5
  61. package/out/renderer/assets/{index-CBVmxCYX.js → index-BGR4ZXWZ.js} +2 -2
  62. package/out/renderer/assets/{index-D1Him45L.js → index-BZBhErKV.js} +2 -2
  63. package/out/renderer/assets/{index-DUOs3uZb.js → index-BcWszklu.js} +1 -1
  64. package/out/renderer/assets/{index-D1jY29Az.js → index-BpNNugm2.js} +4 -4
  65. package/out/renderer/assets/{index-3hl2j-_p.js → index-BrgyIQaN.js} +2 -2
  66. package/out/renderer/assets/{index-BJ-vdpjD.js → index-Bt1dN7k_.js} +1 -1
  67. package/out/renderer/assets/{index-B41U46QG.js → index-Bxu6rqm3.js} +1 -1
  68. package/out/renderer/assets/{index-TTgmBk0H.js → index-C6mXHxX3.js} +1 -1
  69. package/out/renderer/assets/{index-CNGDTtBW.js → index-CCbq90uE.js} +1 -1
  70. package/out/renderer/assets/{index-4IKrE3Ch.js → index-CCm3UXZP.js} +2 -2
  71. package/out/renderer/assets/{index-CY4zeK5l.js → index-CNkiGtsK.js} +3 -3
  72. package/out/renderer/assets/{index-ly0cB32v.css → index-CWfnJXNI.css} +116 -0
  73. package/out/renderer/assets/{index-DZ8Tuuit.js → index-Cc-He418.js} +29267 -54630
  74. package/out/renderer/assets/{index-Otcl72On.js → index-Crdzxx6k.js} +19 -15
  75. package/out/renderer/assets/{index-Z7VaFhjR.js → index-D30k3y98.js} +1 -1
  76. package/out/renderer/assets/{index-Bv8Yvnki.js → index-DAWoHfjM.js} +2 -2
  77. package/out/renderer/assets/{index-tkTKXqGX.js → index-DG5AIC6J.js} +3 -3
  78. package/out/renderer/assets/{index-DHZvdQmh.js → index-DSBgCNMv.js} +2 -2
  79. package/out/renderer/assets/{index-D2Y9BB9n.js → index-DeRKeskE.js} +5 -5
  80. package/out/renderer/assets/{index-Dq8m0XiD.js → index-DgQEgdew.js} +2 -2
  81. package/out/renderer/assets/{index-BeF6VrSe.js → index-Dgdp4i2K.js} +1 -1
  82. package/out/renderer/assets/{index--DpoC2Fa.js → index-DnNK6R2g.js} +2 -2
  83. package/out/renderer/assets/{index-vBiBurKH.js → index-DrNutodm.js} +2 -2
  84. package/out/renderer/assets/{index-DTwId9nn.js → index-FS3mY8Ct.js} +1 -1
  85. package/out/renderer/assets/{index-DBHj35Nq.js → index-KId2jLzt.js} +2 -2
  86. package/out/renderer/assets/{index-BFLm6WFt.js → index-PyRCX6hq.js} +5 -5
  87. package/out/renderer/assets/{index-8-JzmzqC.js → index-U8nE80jx.js} +2 -2
  88. package/out/renderer/assets/{index-BhXi7Le_.js → index-Vw8jKJU_.js} +5 -5
  89. package/out/renderer/assets/{index-CnxPOcjf.js → index-_a6zbU-0.js} +1 -1
  90. package/out/renderer/assets/{index-BSh2X31_.js → index-dsqlqRSG.js} +5 -5
  91. package/out/renderer/assets/{index-C-WEDvyw.js → index-rQL1hwaP.js} +5 -5
  92. package/out/renderer/assets/{jsx-dev-runtime-DshTpFeb.js → jsx-dev-runtime-Bwt8d4vP.js} +1 -1
  93. package/out/renderer/index.html +2 -2
  94. package/out/resources/prompts/system-prompt.hbs +11 -0
  95. package/out/resources/skills/extension-creator/SKILL.md +20 -1
  96. package/out/resources/skills/extension-creator/references/event-types.md +3 -3
  97. package/out/resources/skills/extension-creator/references/extension-interface.md +52 -0
  98. package/out/resources/skills/extension-creator/references/external-agent-providers.md +90 -0
  99. package/out/runner.js +1456 -182
  100. package/package.json +2 -2
  101. package/out/renderer/assets/abnfDiagram-N423BO3Z-D0STbTTF.js +0 -118
  102. package/out/renderer/assets/arc-DeFSKBzy.js +0 -131
  103. package/out/renderer/assets/architectureDiagram-T3A2C74G-BDrfxwK6.js +0 -8829
  104. package/out/renderer/assets/band-zXq5o_Ib.js +0 -77
  105. package/out/renderer/assets/blockDiagram-VBNYF7ZC-x_YF9Yme.js +0 -3824
  106. package/out/renderer/assets/c4Diagram-5PPSVZJV-C7kuvNRf.js +0 -2482
  107. package/out/renderer/assets/channel-T97-CMvj.js +0 -7
  108. package/out/renderer/assets/chunk-2GRJ4B5K-C7nbnxgH.js +0 -116
  109. package/out/renderer/assets/chunk-2Q5K7J3B-D5IUyzX4.js +0 -19
  110. package/out/renderer/assets/chunk-5RXB4S5H-DkL2I1-Q.js +0 -1988
  111. package/out/renderer/assets/chunk-5VM5RSS4-qszW8EYL.js +0 -19
  112. package/out/renderer/assets/chunk-6Q2QTUOP-CbtMo4y_.js +0 -860
  113. package/out/renderer/assets/chunk-GF5L2VYU-C6qdgHXJ.js +0 -2026
  114. package/out/renderer/assets/chunk-JWPE2WC7-DxAg7bLn.js +0 -16
  115. package/out/renderer/assets/chunk-KBJHAD2P-Cqd2HDdS.js +0 -24
  116. package/out/renderer/assets/chunk-RYQCIY6F-DVzbqgRf.js +0 -474
  117. package/out/renderer/assets/chunk-XXDRQBXY-DF_8pbWI.js +0 -13
  118. package/out/renderer/assets/classDiagram-JCYQIIEL-MfTsDS5w.js +0 -23
  119. package/out/renderer/assets/classDiagram-v2-OCEON4UE-MfTsDS5w.js +0 -23
  120. package/out/renderer/assets/cose-bilkent-JH36ORCC-BvzyW9fn.js +0 -4942
  121. package/out/renderer/assets/cynefin-VYW2F7L2-BmRenSSB.js +0 -32093
  122. package/out/renderer/assets/cynefinDiagram-MW4NZA55-DmybMaTR.js +0 -453
  123. package/out/renderer/assets/cytoscape.esm-Bx_1tVW-.js +0 -30332
  124. package/out/renderer/assets/dagre-VZM6K2ZE-b6plu1_t.js +0 -522
  125. package/out/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
  126. package/out/renderer/assets/diagram-7IWD3JNH-B0LyLNK-.js +0 -488
  127. package/out/renderer/assets/diagram-B4RE2ZJO-BtJGLH72.js +0 -632
  128. package/out/renderer/assets/diagram-LBJQPF4R-BpSykW90.js +0 -212
  129. package/out/renderer/assets/diagram-Q27KOJAE-_vw0jdNl.js +0 -857
  130. package/out/renderer/assets/diagram-UB23O5K3-rE12zYQ8.js +0 -311
  131. package/out/renderer/assets/ebnfDiagram-BXEA7PRR-BXR1_d_o.js +0 -138
  132. package/out/renderer/assets/erDiagram-JOGREHBK-B1QCAGl4.js +0 -1238
  133. package/out/renderer/assets/flowDiagram-UKHOOZJN-wRfN63to.js +0 -2348
  134. package/out/renderer/assets/ganttDiagram-PKOTCBZU-DsXpzatp.js +0 -2782
  135. package/out/renderer/assets/gitGraphDiagram-DS77QQ5N-CsYsZ42q.js +0 -1373
  136. package/out/renderer/assets/graph-CfUL5tFv.js +0 -1308
  137. package/out/renderer/assets/infoDiagram-6WML65LV-BXT6TYnf.js +0 -31
  138. package/out/renderer/assets/init-CTO7spbL.js +0 -35
  139. package/out/renderer/assets/ishikawaDiagram-WSZJBQD7-6BJ687Ec.js +0 -967
  140. package/out/renderer/assets/journeyDiagram-NVQOT4AX-HgkRlCT0.js +0 -1255
  141. package/out/renderer/assets/kanban-definition-27J2QSJJ-COYri25f.js +0 -1052
  142. package/out/renderer/assets/layout-BBVpFPy1.js +0 -2326
  143. package/out/renderer/assets/linear-DuNIFrPi.js +0 -361
  144. package/out/renderer/assets/map-toxJVbdU.js +0 -299
  145. package/out/renderer/assets/mindmap-definition-FAOFIHXS-DhCEcxPL.js +0 -1153
  146. package/out/renderer/assets/ordinal-BD3Y6v77.js +0 -77
  147. package/out/renderer/assets/pegDiagram-VL7TDLO6-DZ8w3ViJ.js +0 -126
  148. package/out/renderer/assets/pieDiagram-7S7Q4E2Y-JcEYE_Dn.js +0 -316
  149. package/out/renderer/assets/quadrantDiagram-CIZ2JOQS-De59Sk4l.js +0 -1343
  150. package/out/renderer/assets/railroadDiagram-AXF67PYL-D7nWbE5S.js +0 -92
  151. package/out/renderer/assets/requirementDiagram-LRYGKXZP-DKWcKu7I.js +0 -1204
  152. package/out/renderer/assets/sankeyDiagram-W5VNT64P-Bj8jLitx.js +0 -1274
  153. package/out/renderer/assets/sequenceDiagram-SI44F4Z6-D9Jp65xC.js +0 -4514
  154. package/out/renderer/assets/sizeCapture-X5ZJPWSS-mY9H2lE6.js +0 -62
  155. package/out/renderer/assets/stateDiagram-OKZ733FA-BEn9ud4k.js +0 -452
  156. package/out/renderer/assets/stateDiagram-v2-UEYNNEHI-D_psrMs3.js +0 -22
  157. package/out/renderer/assets/swimlanes-SLNWSIFB-BMcpfWEi.js +0 -8557
  158. package/out/renderer/assets/swimlanesDiagram-ULZ7WXOC-OwdbT2xV.js +0 -20
  159. package/out/renderer/assets/time-DMe8nTku.js +0 -985
  160. package/out/renderer/assets/timeline-definition-Z64GVDOM-BTi-OvtJ.js +0 -1596
  161. package/out/renderer/assets/vennDiagram-T6HMQDX7-CoxSnB7W.js +0 -2515
  162. package/out/renderer/assets/wardleyDiagram-T6FBY63Y-Dj0FNpwr.js +0 -975
  163. package/out/renderer/assets/xychartDiagram-ELKLHX3M-jVSDR4Ov.js +0 -1943
@@ -1,5 +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";
1
+ import { c as compilerRuntimeExports, a as clsx, j as jsxRuntimeExports, aA as useTranslation, az as reactExports, aV as Checkbox, aK as Button, cy as HiEye, aX as Input, bn as TextArea, cz as Trans, bQ as CodeInline, cA as SUPPORTED_LANGUAGES, aU as Select, cB as useClickOutside, cC as FaEllipsisVertical, cD as BiCut, bq as BiTrash, bM as BiCopy, cE as useSortable, cF as CSS, aY as Slider, I as IconButton, b_ as FaTimes, c3 as ContextCompactionType, b4 as Tooltip, cG as useDropdownState, cH as reactDomExports, cI as HiCheck, cJ as KeyboardKeys, cK as HiChevronUpDown, cL as ToolRecoveryMode, cM as RiAlertLine, cN as RiRefreshLine, cO as RiProhibitedLine, cP as TOOL_GROUP_NAME_SEPARATOR, cQ as ToolApprovalState, bv as useApi, br as McpOAuthStatus, bD as extractIpcErrorMessage, aW as Accordion, bs as FaPencilAlt, bt as FaTrash, cR as DEFAULT_TOOL_RECOVERY_MODES, cS as POWER_TOOL_GROUP_NAME, cT as POWER_TOOL_BASH, cU as AIDER_TOOL_GROUP_NAME, cV as TODO_TOOL_GROUP_NAME, cW as TASKS_TOOL_GROUP_NAME, cX as MEMORY_TOOL_GROUP_NAME, cY as SKILLS_TOOL_GROUP_NAME, cZ as SUBAGENTS_TOOL_GROUP_NAME, c_ as MEMORY_TOOL_DESCRIPTIONS, c$ as MEMORY_TOOL_STORE, d0 as MEMORY_TOOL_RETRIEVE, d1 as MEMORY_TOOL_LIST, d2 as MEMORY_TOOL_UPDATE, d3 as MEMORY_TOOL_DELETE, d4 as TASKS_TOOL_DESCRIPTIONS, d5 as TASKS_TOOL_LIST_TASKS, d6 as TASKS_TOOL_GET_TASK, d7 as TASKS_TOOL_GET_TASK_MESSAGE, d8 as TASKS_TOOL_CREATE_TASK, d9 as TASKS_TOOL_DELETE_TASK, da as TASKS_TOOL_SEARCH_TASK, db as TODO_TOOL_DESCRIPTIONS, dc as TODO_TOOL_SET_ITEMS, dd as TODO_TOOL_GET_ITEMS, de as TODO_TOOL_UPDATE_ITEM_COMPLETION, df as TODO_TOOL_CLEAR_ITEMS, dg as POWER_TOOL_DESCRIPTIONS, dh as POWER_TOOL_FILE_EDIT, di as POWER_TOOL_FILE_READ, dj as POWER_TOOL_FILE_WRITE, dk as POWER_TOOL_GLOB, dl as POWER_TOOL_GREP, dm as POWER_TOOL_SEMANTIC_SEARCH, dn as POWER_TOOL_FETCH, dp as AIDER_TOOL_DESCRIPTIONS, dq as AIDER_TOOL_GET_CONTEXT_FILES, dr as AIDER_TOOL_ADD_CONTEXT_FILES, ds as AIDER_TOOL_DROP_CONTEXT_FILES, dt as AIDER_TOOL_RUN_PROMPT, du as SUBAGENTS_TOOL_RUN_TASK, cp as FaPlug, dv as _extends$1, dw as React, dx as _objectWithoutPropertiesLoose$1, dy as InvocationMode, dz as ContextMemoryMode, bx as useResponsive, by as useBooleanState, aI as DEFAULT_AGENT_PROFILE, bw as useMcpServers, ay as useModelProviders, dA as useExtensionTools, dB as DEFAULT_AGENT_PROFILES, dC as useSensors, dD as useSensor, dE as KeyboardSensor, dF as PointerSensor, c4 as getProviderModelId, dG as DndContext, dH as closestCenter, dI as SortableContext, dJ as verticalListSortingStrategy, bG as FaPlus, dK as FaPaste, bz as AnimatePresence, bA as motion, bB as HiXMark, bC as RiMenuUnfold4Line, dL as BiReset, dM as ModelSelector, dN as Tabs, dO as sortableKeyboardCoordinates, dP as arrayMove, dQ as v4, aN as showErrorNotification, bE as FaChevronLeft, bF as FaChevronRight } from "./index-Cc-He418.js";
2
+ import { I as InfoIcon } from "./InfoIcon-DI4teJbi.js";
3
3
  const getPathBasename = (inputPath) => {
4
4
  if (!inputPath) {
5
5
  return inputPath;
@@ -1965,13 +1965,369 @@ const ProfilePromptsSection = (t0) => {
1965
1965
  }
1966
1966
  return t15;
1967
1967
  };
1968
+ const RichSelect = (t0) => {
1969
+ const $ = compilerRuntimeExports.c(48);
1970
+ const {
1971
+ options,
1972
+ value,
1973
+ onChange,
1974
+ renderTrigger,
1975
+ triggerClassName,
1976
+ menuWidth: t1,
1977
+ align: t2,
1978
+ placement: t3,
1979
+ disabled: t4,
1980
+ ariaLabel
1981
+ } = t0;
1982
+ const menuWidth = t1 === void 0 ? 260 : t1;
1983
+ const align = t2 === void 0 ? "left" : t2;
1984
+ const placement = t3 === void 0 ? "bottom" : t3;
1985
+ const disabled = t4 === void 0 ? false : t4;
1986
+ const [position, setPosition] = reactExports.useState(null);
1987
+ const containerRef = reactExports.useRef(null);
1988
+ const menuRef = reactExports.useRef(null);
1989
+ let t5;
1990
+ if ($[0] !== value) {
1991
+ t5 = (opt) => opt.value === value;
1992
+ $[0] = value;
1993
+ $[1] = t5;
1994
+ } else {
1995
+ t5 = $[1];
1996
+ }
1997
+ const selectedOption = options.find(t5);
1998
+ let t6;
1999
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2000
+ t6 = {
2001
+ initialState: {
2002
+ highlightedIndex: -1
2003
+ },
2004
+ onCloseReset: {
2005
+ highlightedIndex: -1
2006
+ }
2007
+ };
2008
+ $[2] = t6;
2009
+ } else {
2010
+ t6 = $[2];
2011
+ }
2012
+ const {
2013
+ isOpen,
2014
+ state,
2015
+ open,
2016
+ close,
2017
+ toggle,
2018
+ updateState
2019
+ } = useDropdownState(t6);
2020
+ let t7;
2021
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2022
+ t7 = [containerRef, menuRef];
2023
+ $[3] = t7;
2024
+ } else {
2025
+ t7 = $[3];
2026
+ }
2027
+ useClickOutside(t7, close, isOpen);
2028
+ let t8;
2029
+ if ($[4] !== align || $[5] !== disabled || $[6] !== isOpen || $[7] !== menuWidth || $[8] !== open || $[9] !== options || $[10] !== placement || $[11] !== toggle || $[12] !== value) {
2030
+ t8 = () => {
2031
+ if (disabled) {
2032
+ return;
2033
+ }
2034
+ if (!isOpen && containerRef.current) {
2035
+ const rect = containerRef.current.getBoundingClientRect();
2036
+ const left = align === "right" ? rect.right + window.scrollX - menuWidth : rect.left + window.scrollX;
2037
+ setPosition({
2038
+ top: placement === "top" ? rect.top + window.scrollY : rect.bottom + window.scrollY,
2039
+ left
2040
+ });
2041
+ open({
2042
+ highlightedIndex: options.findIndex((opt_0) => opt_0.value === value)
2043
+ });
2044
+ } else {
2045
+ toggle();
2046
+ }
2047
+ };
2048
+ $[4] = align;
2049
+ $[5] = disabled;
2050
+ $[6] = isOpen;
2051
+ $[7] = menuWidth;
2052
+ $[8] = open;
2053
+ $[9] = options;
2054
+ $[10] = placement;
2055
+ $[11] = toggle;
2056
+ $[12] = value;
2057
+ $[13] = t8;
2058
+ } else {
2059
+ t8 = $[13];
2060
+ }
2061
+ const handleToggle = t8;
2062
+ let t9;
2063
+ if ($[14] !== close || $[15] !== onChange) {
2064
+ t9 = (option) => {
2065
+ close();
2066
+ onChange?.(option.value);
2067
+ };
2068
+ $[14] = close;
2069
+ $[15] = onChange;
2070
+ $[16] = t9;
2071
+ } else {
2072
+ t9 = $[16];
2073
+ }
2074
+ const handleSelect = t9;
2075
+ let t10;
2076
+ if ($[17] !== close || $[18] !== handleSelect || $[19] !== handleToggle || $[20] !== isOpen || $[21] !== options || $[22] !== state || $[23] !== updateState) {
2077
+ t10 = (e) => {
2078
+ if (!isOpen) {
2079
+ if (e.key === KeyboardKeys.Enter || e.key === KeyboardKeys.Space) {
2080
+ e.preventDefault();
2081
+ handleToggle();
2082
+ }
2083
+ return;
2084
+ }
2085
+ bb55: switch (e.key) {
2086
+ case KeyboardKeys.Escape: {
2087
+ e.preventDefault();
2088
+ close();
2089
+ break bb55;
2090
+ }
2091
+ case KeyboardKeys.ArrowDown: {
2092
+ e.preventDefault();
2093
+ updateState((prev_0) => ({
2094
+ highlightedIndex: prev_0.highlightedIndex >= options.length - 1 ? 0 : prev_0.highlightedIndex + 1
2095
+ }));
2096
+ break bb55;
2097
+ }
2098
+ case KeyboardKeys.ArrowUp: {
2099
+ e.preventDefault();
2100
+ updateState((prev) => ({
2101
+ highlightedIndex: prev.highlightedIndex <= 0 ? options.length - 1 : prev.highlightedIndex - 1
2102
+ }));
2103
+ break bb55;
2104
+ }
2105
+ case KeyboardKeys.Enter: {
2106
+ e.preventDefault();
2107
+ if (state.highlightedIndex >= 0 && state.highlightedIndex < options.length) {
2108
+ handleSelect(options[state.highlightedIndex]);
2109
+ }
2110
+ break bb55;
2111
+ }
2112
+ case KeyboardKeys.Tab: {
2113
+ close();
2114
+ }
2115
+ }
2116
+ };
2117
+ $[17] = close;
2118
+ $[18] = handleSelect;
2119
+ $[19] = handleToggle;
2120
+ $[20] = isOpen;
2121
+ $[21] = options;
2122
+ $[22] = state;
2123
+ $[23] = updateState;
2124
+ $[24] = t10;
2125
+ } else {
2126
+ t10 = $[24];
2127
+ }
2128
+ const handleKeyDown = t10;
2129
+ const t11 = isOpen && "border-border-light";
2130
+ let t12;
2131
+ if ($[25] !== t11 || $[26] !== triggerClassName) {
2132
+ 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);
2133
+ $[25] = t11;
2134
+ $[26] = triggerClassName;
2135
+ $[27] = t12;
2136
+ } else {
2137
+ t12 = $[27];
2138
+ }
2139
+ let t13;
2140
+ if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2141
+ t13 = /* @__PURE__ */ jsxRuntimeExports.jsx(HiChevronUpDown, { className: "size-4 text-text-muted flex-shrink-0" });
2142
+ $[28] = t13;
2143
+ } else {
2144
+ t13 = $[28];
2145
+ }
2146
+ const defaultTrigger = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: t12, children: [
2147
+ selectedOption?.icon,
2148
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 truncate", children: selectedOption?.label }),
2149
+ t13
2150
+ ] });
2151
+ const t14 = "relative";
2152
+ const t15 = "button";
2153
+ const t16 = "listbox";
2154
+ const t17 = "flex items-center focus:outline-none disabled:opacity-50";
2155
+ const t18 = renderTrigger ? renderTrigger(selectedOption, isOpen) : defaultTrigger;
2156
+ let t19;
2157
+ if ($[29] !== ariaLabel || $[30] !== disabled || $[31] !== handleKeyDown || $[32] !== handleToggle || $[33] !== isOpen || $[34] !== t18) {
2158
+ 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 });
2159
+ $[29] = ariaLabel;
2160
+ $[30] = disabled;
2161
+ $[31] = handleKeyDown;
2162
+ $[32] = handleToggle;
2163
+ $[33] = isOpen;
2164
+ $[34] = t18;
2165
+ $[35] = t19;
2166
+ } else {
2167
+ t19 = $[35];
2168
+ }
2169
+ let t20;
2170
+ if ($[36] !== handleSelect || $[37] !== isOpen || $[38] !== menuWidth || $[39] !== options || $[40] !== placement || $[41] !== position || $[42] !== selectedOption?.value || $[43] !== state) {
2171
+ 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: {
2172
+ top: placement === "top" ? void 0 : `${position.top}px`,
2173
+ bottom: placement === "top" ? `${window.innerHeight - position.top + 4}px` : void 0,
2174
+ left: `${position.left}px`,
2175
+ width: `${menuWidth}px`
2176
+ }, 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: [
2177
+ opt_1.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mt-0.5 flex-shrink-0", children: opt_1.icon }),
2178
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1", children: [
2179
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2 text-xs font-medium text-text-primary", children: opt_1.label }),
2180
+ opt_1.description && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-0.5 text-2xs leading-snug text-text-muted-light", children: opt_1.description })
2181
+ ] }),
2182
+ selectedOption?.value === opt_1.value && /* @__PURE__ */ jsxRuntimeExports.jsx(HiCheck, { className: "mt-0.5 size-4 flex-shrink-0 text-text-tertiary" })
2183
+ ] }, opt_1.value)) }), document.body);
2184
+ $[36] = handleSelect;
2185
+ $[37] = isOpen;
2186
+ $[38] = menuWidth;
2187
+ $[39] = options;
2188
+ $[40] = placement;
2189
+ $[41] = position;
2190
+ $[42] = selectedOption?.value;
2191
+ $[43] = state;
2192
+ $[44] = t20;
2193
+ } else {
2194
+ t20 = $[44];
2195
+ }
2196
+ let t21;
2197
+ if ($[45] !== t19 || $[46] !== t20) {
2198
+ t21 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: containerRef, className: t14, children: [
2199
+ t19,
2200
+ t20
2201
+ ] });
2202
+ $[45] = t19;
2203
+ $[46] = t20;
2204
+ $[47] = t21;
2205
+ } else {
2206
+ t21 = $[47];
2207
+ }
2208
+ return t21;
2209
+ };
2210
+ const MODE_CONFIG = {
2211
+ [ToolRecoveryMode.Forget]: {
2212
+ icon: RiProhibitedLine,
2213
+ color: "text-text-muted"
2214
+ },
2215
+ [ToolRecoveryMode.Safe]: {
2216
+ icon: RiRefreshLine,
2217
+ color: "text-success"
2218
+ },
2219
+ [ToolRecoveryMode.Notify]: {
2220
+ icon: RiAlertLine,
2221
+ color: "text-warning"
2222
+ }
2223
+ };
2224
+ const ToolRecoverySelect = (t0) => {
2225
+ const $ = compilerRuntimeExports.c(16);
2226
+ const {
2227
+ value,
2228
+ onChange
2229
+ } = t0;
2230
+ const {
2231
+ t
2232
+ } = useTranslation();
2233
+ let t1;
2234
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2235
+ t1 = Object.values(ToolRecoveryMode);
2236
+ $[0] = t1;
2237
+ } else {
2238
+ t1 = $[0];
2239
+ }
2240
+ let t2;
2241
+ if ($[1] !== t) {
2242
+ t2 = t1.map((mode) => {
2243
+ const {
2244
+ icon: Icon,
2245
+ color: color2
2246
+ } = MODE_CONFIG[mode];
2247
+ return {
2248
+ value: mode,
2249
+ label: t("tool.recovery." + mode),
2250
+ description: t("tool.recovery.descriptions." + mode),
2251
+ icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: clsx("h-3.5 w-3.5", color2) })
2252
+ };
2253
+ });
2254
+ $[1] = t;
2255
+ $[2] = t2;
2256
+ } else {
2257
+ t2 = $[2];
2258
+ }
2259
+ const options = t2;
2260
+ let t3;
2261
+ if ($[3] !== onChange) {
2262
+ t3 = (next) => {
2263
+ onChange(next);
2264
+ };
2265
+ $[3] = onChange;
2266
+ $[4] = t3;
2267
+ } else {
2268
+ t3 = $[4];
2269
+ }
2270
+ const handleChange = t3;
2271
+ let t4;
2272
+ if ($[5] !== t) {
2273
+ t4 = (selected, isOpen) => {
2274
+ const mode_0 = selected?.value ?? ToolRecoveryMode.Forget;
2275
+ const {
2276
+ icon: Icon_0,
2277
+ color: color_0
2278
+ } = MODE_CONFIG[mode_0];
2279
+ const tooltip = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1 text-left", children: [
2280
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "font-semibold text-text-primary", children: t("tool.recovery.label") }),
2281
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-text-secondary", children: t("tool.recovery.description") }),
2282
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-1 border-t border-border-default pt-1", children: [
2283
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium text-text-primary", children: t("tool.recovery." + mode_0) }),
2284
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-text-muted-light", children: [
2285
+ " — ",
2286
+ t("tool.recovery.descriptions." + mode_0)
2287
+ ] })
2288
+ ] })
2289
+ ] });
2290
+ 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) }) }) });
2291
+ };
2292
+ $[5] = t;
2293
+ $[6] = t4;
2294
+ } else {
2295
+ t4 = $[6];
2296
+ }
2297
+ const renderTrigger = t4;
2298
+ const t5 = "tool.recovery." + value;
2299
+ let t6;
2300
+ if ($[7] !== t || $[8] !== t5) {
2301
+ t6 = t(t5);
2302
+ $[7] = t;
2303
+ $[8] = t5;
2304
+ $[9] = t6;
2305
+ } else {
2306
+ t6 = $[9];
2307
+ }
2308
+ let t7;
2309
+ if ($[10] !== handleChange || $[11] !== options || $[12] !== renderTrigger || $[13] !== t6 || $[14] !== value) {
2310
+ t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(RichSelect, { options, value, onChange: handleChange, renderTrigger, menuWidth: 260, align: "right", ariaLabel: t6 });
2311
+ $[10] = handleChange;
2312
+ $[11] = options;
2313
+ $[12] = renderTrigger;
2314
+ $[13] = t6;
2315
+ $[14] = value;
2316
+ $[15] = t7;
2317
+ } else {
2318
+ t7 = $[15];
2319
+ }
2320
+ return t7;
2321
+ };
1968
2322
  const McpToolItem = (t0) => {
1969
- const $ = compilerRuntimeExports.c(36);
2323
+ const $ = compilerRuntimeExports.c(45);
1970
2324
  const {
1971
2325
  tool,
1972
2326
  serverName,
1973
2327
  toolApprovals,
1974
- onApprovalChange
2328
+ onApprovalChange,
2329
+ toolRecoveryModes,
2330
+ onRecoveryModeChange
1975
2331
  } = t0;
1976
2332
  const {
1977
2333
  t
@@ -2061,57 +2417,82 @@ const McpToolItem = (t0) => {
2061
2417
  }
2062
2418
  const handleApprovalChange = t8;
2063
2419
  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;
2420
+ if ($[19] !== fullToolId || $[20] !== onRecoveryModeChange) {
2421
+ t9 = (value_0) => {
2422
+ onRecoveryModeChange?.(fullToolId, value_0);
2423
+ };
2424
+ $[19] = fullToolId;
2425
+ $[20] = onRecoveryModeChange;
2426
+ $[21] = t9;
2068
2427
  } else {
2069
- t9 = $[20];
2428
+ t9 = $[21];
2070
2429
  }
2430
+ const handleRecoveryModeChange = t9;
2071
2431
  let t10;
2072
- if ($[21] !== t || $[22] !== tool.description) {
2073
- t10 = tool.description?.trim() || t("tool.noDescription");
2074
- $[21] = t;
2075
- $[22] = tool.description;
2432
+ if ($[22] !== tool.name) {
2433
+ t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 text-xs ml-2 mr-2", children: tool.name });
2434
+ $[22] = tool.name;
2076
2435
  $[23] = t10;
2077
2436
  } else {
2078
2437
  t10 = $[23];
2079
2438
  }
2080
2439
  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;
2440
+ if ($[24] !== t || $[25] !== tool.description) {
2441
+ t11 = tool.description?.trim() || t("tool.noDescription");
2442
+ $[24] = t;
2443
+ $[25] = tool.description;
2444
+ $[26] = t11;
2085
2445
  } else {
2086
- t11 = $[25];
2446
+ t11 = $[26];
2087
2447
  }
2088
2448
  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;
2449
+ if ($[27] !== t11) {
2450
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t11, tooltipMaxWidth: 600 });
2451
+ $[27] = t11;
2452
+ $[28] = t12;
2097
2453
  } else {
2098
- t12 = $[31];
2454
+ t12 = $[28];
2099
2455
  }
2100
2456
  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
2457
+ if ($[29] !== fullToolId || $[30] !== handleRecoveryModeChange || $[31] !== onRecoveryModeChange || $[32] !== toolRecoveryModes) {
2458
+ t13 = onRecoveryModeChange && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mr-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolRecoverySelect, { value: toolRecoveryModes?.[fullToolId] ?? ToolRecoveryMode.Forget, onChange: handleRecoveryModeChange }) });
2459
+ $[29] = fullToolId;
2460
+ $[30] = handleRecoveryModeChange;
2461
+ $[31] = onRecoveryModeChange;
2462
+ $[32] = toolRecoveryModes;
2463
+ $[33] = t13;
2464
+ } else {
2465
+ t13 = $[33];
2466
+ }
2467
+ let t14;
2468
+ if ($[34] !== approvalOptions || $[35] !== currentApproval || $[36] !== handleApprovalChange || $[37] !== onApprovalChange || $[38] !== toolApprovals) {
2469
+ t14 = onApprovalChange && toolApprovals && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: currentApproval, onChange: handleApprovalChange }) });
2470
+ $[34] = approvalOptions;
2471
+ $[35] = currentApproval;
2472
+ $[36] = handleApprovalChange;
2473
+ $[37] = onApprovalChange;
2474
+ $[38] = toolApprovals;
2475
+ $[39] = t14;
2476
+ } else {
2477
+ t14 = $[39];
2478
+ }
2479
+ let t15;
2480
+ if ($[40] !== t10 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14) {
2481
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
2482
+ t10,
2483
+ t12,
2484
+ t13,
2485
+ t14
2106
2486
  ] });
2107
- $[32] = t11;
2108
- $[33] = t12;
2109
- $[34] = t9;
2110
- $[35] = t13;
2487
+ $[40] = t10;
2488
+ $[41] = t12;
2489
+ $[42] = t13;
2490
+ $[43] = t14;
2491
+ $[44] = t15;
2111
2492
  } else {
2112
- t13 = $[35];
2493
+ t15 = $[44];
2113
2494
  }
2114
- return t13;
2495
+ return t15;
2115
2496
  };
2116
2497
  const McpOAuthControls = ({
2117
2498
  serverName,
@@ -2211,6 +2592,8 @@ const McpServerItem = ({
2211
2592
  onRemove,
2212
2593
  onEdit,
2213
2594
  toolApprovals,
2595
+ toolRecoveryModes,
2596
+ onRecoveryModeChange,
2214
2597
  onApprovalChange,
2215
2598
  reloadTrigger = 0,
2216
2599
  enabled,
@@ -2318,16 +2701,17 @@ const McpServerItem = ({
2318
2701
  /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: commonApproval ?? MIXED_VALUE, notFoundLabel: MIXED_VALUE, onChange: handleBulkApprovalChange })
2319
2702
  ] })
2320
2703
  ] }),
2321
- tools2.map((tool_3) => /* @__PURE__ */ jsxRuntimeExports.jsx(McpToolItem, { tool: tool_3, toolApprovals, onApprovalChange, serverName }, tool_3.name))
2704
+ tools2.map((tool_3) => /* @__PURE__ */ jsxRuntimeExports.jsx(McpToolItem, { toolRecoveryModes, onRecoveryModeChange, tool: tool_3, toolApprovals, onApprovalChange, serverName }, tool_3.name))
2322
2705
  ] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted p-4", children: t("mcp.noToolsFound") })
2323
2706
  ] }) });
2324
2707
  };
2325
2708
  const GenericToolItem = (t0) => {
2326
- const $ = compilerRuntimeExports.c(41);
2709
+ const $ = compilerRuntimeExports.c(52);
2327
2710
  const {
2328
2711
  tool,
2329
2712
  profile,
2330
2713
  onApprovalChange,
2714
+ onRecoveryModeChange,
2331
2715
  renderToolSettings
2332
2716
  } = t0;
2333
2717
  const {
@@ -2418,84 +2802,112 @@ const GenericToolItem = (t0) => {
2418
2802
  }
2419
2803
  const handleApprovalChange = t8;
2420
2804
  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;
2805
+ if ($[19] !== fullToolId || $[20] !== onRecoveryModeChange) {
2806
+ t9 = (value_0) => {
2807
+ onRecoveryModeChange?.(fullToolId, value_0);
2808
+ };
2809
+ $[19] = fullToolId;
2810
+ $[20] = onRecoveryModeChange;
2811
+ $[21] = t9;
2425
2812
  } else {
2426
- t9 = $[20];
2813
+ t9 = $[21];
2427
2814
  }
2815
+ const handleRecoveryModeChange = t9;
2428
2816
  let t10;
2429
- if ($[21] !== t || $[22] !== tool.description) {
2430
- t10 = tool.description?.trim() || t("tool.noDescription");
2431
- $[21] = t;
2432
- $[22] = tool.description;
2817
+ if ($[22] !== tool.name) {
2818
+ t10 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 text-xs ml-2 mr-2", children: tool.name });
2819
+ $[22] = tool.name;
2433
2820
  $[23] = t10;
2434
2821
  } else {
2435
2822
  t10 = $[23];
2436
2823
  }
2437
2824
  let t11;
2438
- if ($[24] !== t10) {
2439
- t11 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t10 });
2440
- $[24] = t10;
2441
- $[25] = t11;
2825
+ if ($[24] !== t || $[25] !== tool.description) {
2826
+ t11 = tool.description?.trim() || t("tool.noDescription");
2827
+ $[24] = t;
2828
+ $[25] = tool.description;
2829
+ $[26] = t11;
2442
2830
  } else {
2443
- t11 = $[25];
2831
+ t11 = $[26];
2444
2832
  }
2445
2833
  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;
2834
+ if ($[27] !== t11) {
2835
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsx(InfoIcon, { className: "mr-4", tooltip: t11 });
2836
+ $[27] = t11;
2837
+ $[28] = t12;
2454
2838
  } else {
2455
- t12 = $[31];
2839
+ t12 = $[28];
2456
2840
  }
2457
2841
  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;
2842
+ if ($[29] !== fullToolId || $[30] !== handleRecoveryModeChange || $[31] !== onRecoveryModeChange || $[32] !== profile.toolRecoveryModes || $[33] !== tool.name || $[34] !== tool.recoveryMode) {
2843
+ 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 }) });
2844
+ $[29] = fullToolId;
2845
+ $[30] = handleRecoveryModeChange;
2846
+ $[31] = onRecoveryModeChange;
2847
+ $[32] = profile.toolRecoveryModes;
2848
+ $[33] = tool.name;
2849
+ $[34] = tool.recoveryMode;
2467
2850
  $[35] = t13;
2468
2851
  } else {
2469
2852
  t13 = $[35];
2470
2853
  }
2471
2854
  let t14;
2472
- if ($[36] !== renderToolSettings) {
2473
- t14 = renderToolSettings && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "pb-4", children: renderToolSettings() });
2474
- $[36] = renderToolSettings;
2475
- $[37] = t14;
2855
+ if ($[36] !== approvalOptions || $[37] !== currentApproval || $[38] !== handleApprovalChange || $[39] !== onApprovalChange || $[40] !== profile.toolApprovals) {
2856
+ t14 = onApprovalChange && profile.toolApprovals && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { options: approvalOptions, size: "sm", value: currentApproval, onChange: handleApprovalChange }) });
2857
+ $[36] = approvalOptions;
2858
+ $[37] = currentApproval;
2859
+ $[38] = handleApprovalChange;
2860
+ $[39] = onApprovalChange;
2861
+ $[40] = profile.toolApprovals;
2862
+ $[41] = t14;
2476
2863
  } else {
2477
- t14 = $[37];
2864
+ t14 = $[41];
2478
2865
  }
2479
2866
  let t15;
2480
- if ($[38] !== t13 || $[39] !== t14) {
2481
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2867
+ if ($[42] !== t10 || $[43] !== t12 || $[44] !== t13 || $[45] !== t14) {
2868
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
2869
+ t10,
2870
+ t12,
2482
2871
  t13,
2483
2872
  t14
2484
2873
  ] });
2485
- $[38] = t13;
2486
- $[39] = t14;
2487
- $[40] = t15;
2874
+ $[42] = t10;
2875
+ $[43] = t12;
2876
+ $[44] = t13;
2877
+ $[45] = t14;
2878
+ $[46] = t15;
2488
2879
  } else {
2489
- t15 = $[40];
2880
+ t15 = $[46];
2490
2881
  }
2491
- return t15;
2882
+ let t16;
2883
+ if ($[47] !== renderToolSettings) {
2884
+ t16 = renderToolSettings && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "pb-4", children: renderToolSettings() });
2885
+ $[47] = renderToolSettings;
2886
+ $[48] = t16;
2887
+ } else {
2888
+ t16 = $[48];
2889
+ }
2890
+ let t17;
2891
+ if ($[49] !== t15 || $[50] !== t16) {
2892
+ t17 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2893
+ t15,
2894
+ t16
2895
+ ] });
2896
+ $[49] = t15;
2897
+ $[50] = t16;
2898
+ $[51] = t17;
2899
+ } else {
2900
+ t17 = $[51];
2901
+ }
2902
+ return t17;
2492
2903
  };
2493
2904
  const BashToolItem = (t0) => {
2494
- const $ = compilerRuntimeExports.c(12);
2905
+ const $ = compilerRuntimeExports.c(13);
2495
2906
  const {
2496
2907
  tool,
2497
2908
  profile,
2498
2909
  onApprovalChange,
2910
+ onRecoveryModeChange,
2499
2911
  onProfileChange
2500
2912
  } = t0;
2501
2913
  const {
@@ -2550,20 +2962,21 @@ const BashToolItem = (t0) => {
2550
2962
  }
2551
2963
  const renderToolSettings = t1;
2552
2964
  let t2;
2553
- if ($[7] !== onApprovalChange || $[8] !== profile || $[9] !== renderToolSettings || $[10] !== tool) {
2554
- t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool, profile, onApprovalChange, renderToolSettings });
2965
+ if ($[7] !== onApprovalChange || $[8] !== onRecoveryModeChange || $[9] !== profile || $[10] !== renderToolSettings || $[11] !== tool) {
2966
+ t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool, profile, onApprovalChange, onRecoveryModeChange, renderToolSettings });
2555
2967
  $[7] = onApprovalChange;
2556
- $[8] = profile;
2557
- $[9] = renderToolSettings;
2558
- $[10] = tool;
2559
- $[11] = t2;
2968
+ $[8] = onRecoveryModeChange;
2969
+ $[9] = profile;
2970
+ $[10] = renderToolSettings;
2971
+ $[11] = tool;
2972
+ $[12] = t2;
2560
2973
  } else {
2561
- t2 = $[11];
2974
+ t2 = $[12];
2562
2975
  }
2563
2976
  return t2;
2564
2977
  };
2565
2978
  const GenericToolGroupItem = (t0) => {
2566
- const $ = compilerRuntimeExports.c(19);
2979
+ const $ = compilerRuntimeExports.c(23);
2567
2980
  const {
2568
2981
  name,
2569
2982
  displayName,
@@ -2578,8 +2991,23 @@ const GenericToolGroupItem = (t0) => {
2578
2991
  t
2579
2992
  } = useTranslation();
2580
2993
  let t1;
2581
- if ($[0] !== displayName || $[1] !== enabled || $[2] !== name || $[3] !== onEnabledChange || $[4] !== profile || $[5] !== t || $[6] !== tools2) {
2582
- t1 = () => {
2994
+ if ($[0] !== onProfileChange || $[1] !== profile) {
2995
+ t1 = (toolId, mode) => {
2996
+ onProfileChange("toolRecoveryModes", {
2997
+ ...profile.toolRecoveryModes,
2998
+ [toolId]: mode
2999
+ });
3000
+ };
3001
+ $[0] = onProfileChange;
3002
+ $[1] = profile;
3003
+ $[2] = t1;
3004
+ } else {
3005
+ t1 = $[2];
3006
+ }
3007
+ const handleRecoveryModeChange = t1;
3008
+ let t2;
3009
+ if ($[3] !== displayName || $[4] !== enabled || $[5] !== name || $[6] !== onEnabledChange || $[7] !== profile || $[8] !== t || $[9] !== tools2) {
3010
+ t2 = () => {
2583
3011
  const enabledCount = tools2.length - tools2.filter((tool) => profile.toolApprovals[`${name}${TOOL_GROUP_NAME_SEPARATOR}${tool.name}`] === ToolApprovalState.Never).length;
2584
3012
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between w-full", children: [
2585
3013
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
@@ -2592,58 +3020,64 @@ const GenericToolGroupItem = (t0) => {
2592
3020
  }) }) })
2593
3021
  ] });
2594
3022
  };
2595
- $[0] = displayName;
2596
- $[1] = enabled;
2597
- $[2] = name;
2598
- $[3] = onEnabledChange;
2599
- $[4] = profile;
2600
- $[5] = t;
2601
- $[6] = tools2;
2602
- $[7] = t1;
3023
+ $[3] = displayName;
3024
+ $[4] = enabled;
3025
+ $[5] = name;
3026
+ $[6] = onEnabledChange;
3027
+ $[7] = profile;
3028
+ $[8] = t;
3029
+ $[9] = tools2;
3030
+ $[10] = t2;
2603
3031
  } else {
2604
- t1 = $[7];
3032
+ t2 = $[10];
2605
3033
  }
2606
- const renderTitle = t1;
2607
- let t2;
2608
- if ($[8] !== renderTitle) {
2609
- t2 = renderTitle();
2610
- $[8] = renderTitle;
2611
- $[9] = t2;
3034
+ const renderTitle = t2;
3035
+ let t3;
3036
+ if ($[11] !== renderTitle) {
3037
+ t3 = renderTitle();
3038
+ $[11] = renderTitle;
3039
+ $[12] = t3;
2612
3040
  } else {
2613
- t2 = $[9];
3041
+ t3 = $[12];
2614
3042
  }
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: [
3043
+ let t4;
3044
+ if ($[13] !== handleRecoveryModeChange || $[14] !== onApprovalChange || $[15] !== onProfileChange || $[16] !== profile || $[17] !== t || $[18] !== tools2) {
3045
+ 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
3046
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-muted-light ml-1", children: t("mcp.tools") }),
2619
3047
  tools2.map((tool_0) => {
2620
3048
  if (tool_0.name === POWER_TOOL_BASH) {
2621
- return /* @__PURE__ */ jsxRuntimeExports.jsx(BashToolItem, { tool: tool_0, profile, onApprovalChange, onProfileChange }, tool_0.name);
3049
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(BashToolItem, { tool: tool_0, profile, onApprovalChange, onRecoveryModeChange: handleRecoveryModeChange, onProfileChange }, tool_0.name);
2622
3050
  }
2623
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool: tool_0, profile, onApprovalChange }, tool_0.name);
3051
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolItem, { tool: tool_0, profile, onApprovalChange, onRecoveryModeChange: handleRecoveryModeChange }, tool_0.name);
2624
3052
  })
2625
3053
  ] }) }) : /* @__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;
3054
+ $[13] = handleRecoveryModeChange;
3055
+ $[14] = onApprovalChange;
3056
+ $[15] = onProfileChange;
3057
+ $[16] = profile;
3058
+ $[17] = t;
3059
+ $[18] = tools2;
3060
+ $[19] = t4;
2632
3061
  } else {
2633
- t3 = $[15];
3062
+ t4 = $[19];
2634
3063
  }
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;
3064
+ let t5;
3065
+ if ($[20] !== t3 || $[21] !== t4) {
3066
+ 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 }) });
3067
+ $[20] = t3;
3068
+ $[21] = t4;
3069
+ $[22] = t5;
2641
3070
  } else {
2642
- t4 = $[18];
3071
+ t5 = $[22];
2643
3072
  }
2644
- return t4;
3073
+ return t5;
2645
3074
  };
2646
3075
  const tools = {
3076
+ [SUBAGENTS_TOOL_GROUP_NAME]: [{
3077
+ groupName: SUBAGENTS_TOOL_GROUP_NAME,
3078
+ name: SUBAGENTS_TOOL_RUN_TASK,
3079
+ description: POWER_TOOL_DESCRIPTIONS[SUBAGENTS_TOOL_RUN_TASK]
3080
+ }],
2647
3081
  [AIDER_TOOL_GROUP_NAME]: [{
2648
3082
  groupName: AIDER_TOOL_GROUP_NAME,
2649
3083
  name: AIDER_TOOL_GET_CONTEXT_FILES,
@@ -2764,7 +3198,7 @@ const tools = {
2764
3198
  }]
2765
3199
  };
2766
3200
  const ProfileToolsSection = (t0) => {
2767
- const $ = compilerRuntimeExports.c(51);
3201
+ const $ = compilerRuntimeExports.c(55);
2768
3202
  const {
2769
3203
  profile,
2770
3204
  mcpServers,
@@ -2778,33 +3212,48 @@ const ProfileToolsSection = (t0) => {
2778
3212
  t
2779
3213
  } = useTranslation();
2780
3214
  let t1;
2781
- if ($[0] !== t) {
2782
- t1 = t("settings.agent.genericTools");
2783
- $[0] = t;
2784
- $[1] = t1;
3215
+ if ($[0] !== onSettingChange || $[1] !== profile) {
3216
+ t1 = (toolId, recoveryMode) => {
3217
+ onSettingChange("toolRecoveryModes", {
3218
+ ...profile.toolRecoveryModes,
3219
+ [toolId]: recoveryMode
3220
+ });
3221
+ };
3222
+ $[0] = onSettingChange;
3223
+ $[1] = profile;
3224
+ $[2] = t1;
2785
3225
  } else {
2786
- t1 = $[1];
3226
+ t1 = $[2];
2787
3227
  }
3228
+ const handleRecoveryModeChange = t1;
2788
3229
  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;
3230
+ if ($[3] !== t) {
3231
+ t2 = t("settings.agent.genericTools");
3232
+ $[3] = t;
3233
+ $[4] = t2;
2793
3234
  } else {
2794
- t2 = $[3];
3235
+ t2 = $[4];
2795
3236
  }
2796
3237
  let t3;
2797
- if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2798
- t3 = Object.entries(tools);
2799
- $[4] = t3;
3238
+ if ($[5] !== t2) {
3239
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-text-primary mb-3", children: t2 });
3240
+ $[5] = t2;
3241
+ $[6] = t3;
2800
3242
  } else {
2801
- t3 = $[4];
3243
+ t3 = $[6];
2802
3244
  }
2803
3245
  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;
3246
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3247
+ t4 = Object.entries(tools);
3248
+ $[7] = t4;
3249
+ } else {
3250
+ t4 = $[7];
3251
+ }
3252
+ let t5;
3253
+ if ($[8] !== onApprovalChange || $[9] !== onSettingChange || $[10] !== profile) {
3254
+ t5 = t4.map((t62) => {
3255
+ const [groupName, groupTools] = t62;
3256
+ 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
3257
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(GenericToolGroupItem, { name: groupName, tools: groupTools, profile, onApprovalChange, onProfileChange: onSettingChange, enabled: isGroupEnabled, onEnabledChange: (enabled) => {
2809
3258
  if (groupName === POWER_TOOL_GROUP_NAME) {
2810
3259
  onSettingChange("usePowerTools", enabled);
@@ -2823,6 +3272,10 @@ const ProfileToolsSection = (t0) => {
2823
3272
  } else {
2824
3273
  if (groupName === SKILLS_TOOL_GROUP_NAME) {
2825
3274
  onSettingChange("useSkillsTools", enabled);
3275
+ } else {
3276
+ if (groupName === SUBAGENTS_TOOL_GROUP_NAME) {
3277
+ onSettingChange("useSubagents", enabled);
3278
+ }
2826
3279
  }
2827
3280
  }
2828
3281
  }
@@ -2831,22 +3284,23 @@ const ProfileToolsSection = (t0) => {
2831
3284
  }
2832
3285
  } }) }, groupName);
2833
3286
  });
2834
- $[5] = onApprovalChange;
2835
- $[6] = onSettingChange;
2836
- $[7] = profile;
2837
- $[8] = t4;
3287
+ $[8] = onApprovalChange;
3288
+ $[9] = onSettingChange;
3289
+ $[10] = profile;
3290
+ $[11] = t5;
2838
3291
  } else {
2839
- t4 = $[8];
3292
+ t5 = $[11];
2840
3293
  }
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) => {
3294
+ let t6;
3295
+ if ($[12] !== extensionToolsInfo || $[13] !== onApprovalChange || $[14] !== onSettingChange || $[15] !== profile) {
3296
+ let t72;
3297
+ if ($[17] !== onApprovalChange || $[18] !== onSettingChange || $[19] !== profile) {
3298
+ t72 = (extInfo) => {
2846
3299
  const extTools = extInfo.tools.map((tool) => ({
2847
3300
  groupName: extInfo.extensionId,
2848
3301
  name: tool.name,
2849
- description: tool.description
3302
+ description: tool.description,
3303
+ recoveryMode: tool.recoveryMode
2850
3304
  }));
2851
3305
  const isExtEnabled = !(profile.disabledExtensionTools ?? []).includes(extInfo.extensionId);
2852
3306
  const handleExtEnabledChange = (enabled_0) => {
@@ -2856,139 +3310,140 @@ const ProfileToolsSection = (t0) => {
2856
3310
  };
2857
3311
  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
3312
  };
2859
- $[14] = onApprovalChange;
2860
- $[15] = onSettingChange;
2861
- $[16] = profile;
2862
- $[17] = t62;
3313
+ $[17] = onApprovalChange;
3314
+ $[18] = onSettingChange;
3315
+ $[19] = profile;
3316
+ $[20] = t72;
2863
3317
  } else {
2864
- t62 = $[17];
3318
+ t72 = $[20];
2865
3319
  }
2866
- t5 = extensionToolsInfo.map(t62);
2867
- $[9] = extensionToolsInfo;
2868
- $[10] = onApprovalChange;
2869
- $[11] = onSettingChange;
2870
- $[12] = profile;
2871
- $[13] = t5;
3320
+ t6 = extensionToolsInfo.map(t72);
3321
+ $[12] = extensionToolsInfo;
3322
+ $[13] = onApprovalChange;
3323
+ $[14] = onSettingChange;
3324
+ $[15] = profile;
3325
+ $[16] = t6;
2872
3326
  } 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];
3327
+ t6 = $[16];
2886
3328
  }
2887
3329
  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;
3330
+ if ($[21] !== t5 || $[22] !== t6) {
3331
+ t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
3332
+ t5,
3333
+ t6
3334
+ ] });
3335
+ $[21] = t5;
3336
+ $[22] = t6;
2892
3337
  $[23] = t7;
2893
3338
  } else {
2894
3339
  t7 = $[23];
2895
3340
  }
2896
3341
  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;
3342
+ if ($[24] !== extensionToolsInfo.length || $[25] !== t) {
3343
+ 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") });
3344
+ $[24] = extensionToolsInfo.length;
3345
+ $[25] = t;
3346
+ $[26] = t8;
2907
3347
  } else {
2908
- t8 = $[27];
3348
+ t8 = $[26];
2909
3349
  }
2910
3350
  let t9;
2911
- if ($[28] !== t) {
2912
- t9 = t("settings.agent.mcpServers");
2913
- $[28] = t;
2914
- $[29] = t9;
3351
+ if ($[27] !== t3 || $[28] !== t7 || $[29] !== t8) {
3352
+ t9 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
3353
+ t3,
3354
+ t7,
3355
+ t8
3356
+ ] });
3357
+ $[27] = t3;
3358
+ $[28] = t7;
3359
+ $[29] = t8;
3360
+ $[30] = t9;
2915
3361
  } else {
2916
- t9 = $[29];
3362
+ t9 = $[30];
2917
3363
  }
2918
3364
  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;
3365
+ if ($[31] !== t) {
3366
+ t10 = t("settings.agent.mcpServers");
3367
+ $[31] = t;
3368
+ $[32] = t10;
2923
3369
  } else {
2924
- t10 = $[31];
3370
+ t10 = $[32];
2925
3371
  }
2926
3372
  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;
3373
+ if ($[33] !== t10) {
3374
+ t11 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-medium text-text-primary mb-3", children: t10 });
3375
+ $[33] = t10;
3376
+ $[34] = t11;
2938
3377
  } else {
2939
- t11 = $[36];
3378
+ t11 = $[34];
2940
3379
  }
2941
3380
  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;
3381
+ if ($[35] !== handleRecoveryModeChange || $[36] !== mcpServers || $[37] !== onApprovalChange || $[38] !== onToggleServerEnabled || $[39] !== profile) {
3382
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-1", children: Object.entries(mcpServers).map((t132) => {
3383
+ const [serverName, serverConfig] = t132;
3384
+ const isServerEnabled = (profile.enabledServers || []).includes(serverName);
3385
+ 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);
3386
+ }) });
3387
+ $[35] = handleRecoveryModeChange;
3388
+ $[36] = mcpServers;
3389
+ $[37] = onApprovalChange;
3390
+ $[38] = onToggleServerEnabled;
3391
+ $[39] = profile;
3392
+ $[40] = t12;
2947
3393
  } else {
2948
- t12 = $[39];
3394
+ t12 = $[40];
2949
3395
  }
2950
3396
  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: [
3397
+ if ($[41] !== mcpServers || $[42] !== t) {
3398
+ 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") });
3399
+ $[41] = mcpServers;
3400
+ $[42] = t;
3401
+ $[43] = t13;
3402
+ } else {
3403
+ t13 = $[43];
3404
+ }
3405
+ let t14;
3406
+ if ($[44] !== onOpenMcpServers || $[45] !== t) {
3407
+ 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
3408
  /* @__PURE__ */ jsxRuntimeExports.jsx(FaPlug, { className: "w-3.5 h-3.5 mr-2" }),
2954
3409
  " ",
2955
3410
  t("settings.agent.configureMcpServers")
2956
3411
  ] }) });
2957
- $[40] = onOpenMcpServers;
2958
- $[41] = t;
2959
- $[42] = t13;
3412
+ $[44] = onOpenMcpServers;
3413
+ $[45] = t;
3414
+ $[46] = t14;
2960
3415
  } else {
2961
- t13 = $[42];
3416
+ t14 = $[46];
2962
3417
  }
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,
3418
+ let t15;
3419
+ if ($[47] !== t11 || $[48] !== t12 || $[49] !== t13 || $[50] !== t14) {
3420
+ t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "border-t border-border-default-dark pt-4", children: [
2967
3421
  t11,
2968
3422
  t12,
2969
- t13
3423
+ t13,
3424
+ t14
2970
3425
  ] });
2971
- $[43] = t10;
2972
- $[44] = t11;
2973
- $[45] = t12;
2974
- $[46] = t13;
2975
- $[47] = t14;
3426
+ $[47] = t11;
3427
+ $[48] = t12;
3428
+ $[49] = t13;
3429
+ $[50] = t14;
3430
+ $[51] = t15;
2976
3431
  } else {
2977
- t14 = $[47];
3432
+ t15 = $[51];
2978
3433
  }
2979
- let t15;
2980
- if ($[48] !== t14 || $[49] !== t8) {
2981
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-6", children: [
2982
- t8,
2983
- t14
3434
+ let t16;
3435
+ if ($[52] !== t15 || $[53] !== t9) {
3436
+ t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-6", children: [
3437
+ t9,
3438
+ t15
2984
3439
  ] });
2985
- $[48] = t14;
2986
- $[49] = t8;
2987
- $[50] = t15;
3440
+ $[52] = t15;
3441
+ $[53] = t9;
3442
+ $[54] = t16;
2988
3443
  } else {
2989
- t15 = $[50];
3444
+ t16 = $[54];
2990
3445
  }
2991
- return t15;
3446
+ return t16;
2992
3447
  };
2993
3448
  var RGB_MAX = 255;
2994
3449
  var SV_MAX = 100;