@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,7 +1,7 @@
1
- import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-BeF6VrSe.js";
2
- import { p as parseMixed, s as styleTags, e as tags, E as EditorView, k as syntaxTree, o as EditorSelection, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, f as foldNodeProp, bA as bracketMatchingHandle } from "./index-DZ8Tuuit.js";
3
- import { cssLanguage, css } from "./index-DBHj35Nq.js";
4
- import { typescriptLanguage, jsxLanguage, tsxLanguage, javascriptLanguage, javascript } from "./index-8-JzmzqC.js";
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-B5RSRSoJ.js";
2
+ import { p as parseMixed, s as styleTags, e as tags, E as EditorView, k as syntaxTree, o as EditorSelection, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, f as foldNodeProp, al as bracketMatchingHandle } from "./index-CPsc5AXE.js";
3
+ import { cssLanguage, css } from "./index-BSVdNEPT.js";
4
+ import { typescriptLanguage, jsxLanguage, tsxLanguage, javascriptLanguage, javascript } from "./index-B7B7XIvK.js";
5
5
  const scriptText = 55, StartCloseScriptTag = 1, styleText = 56, StartCloseStyleTag = 2, textareaText = 57, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 58, IncompleteTag = 14, IncompleteCloseTag = 15, commentContent$1 = 59, Element = 21, TagName = 23, Attribute = 24, AttributeName = 25, AttributeValue = 27, UnquotedAttributeValue = 28, ScriptText = 29, StyleText = 32, TextareaText = 35, OpenTag = 37, CloseTag = 38, Dialect_noMatch = 0, Dialect_selfClosing = 1;
6
6
  const selfClosers$1 = {
7
7
  area: true,
@@ -1,4 +1,4 @@
1
- import { G as GenIcon } from "./index-DZ8Tuuit.js";
1
+ import { G as GenIcon } from "./index-CPsc5AXE.js";
2
2
  function GiZipper(props) {
3
3
  return GenIcon({ "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M107.023 17.25L92.71 45.738l16.086 8.08 14.312-28.486zm328.497 4.557l-16.688 6.748 11.95 29.556 16.687-6.746zm-289.79 12.6l-15.335 27.948 15.779 8.66 15.338-27.949zm255.032 1.67l-16.084 8.081 14.312 28.487 16.084-8.08zm-34.914 17.9l-15.032 9.9 17.534 26.625 15.033-9.9zM178.754 55.77l-18.275 26.122 14.748 10.318 18.275-26.121zm155.29 18.243L319.86 85.092l19.623 25.127 14.186-11.08zm-124.47 5.42l-21.847 23.216 13.107 12.336 21.85-23.215zm96.342 18.888l-12.066 13.356 23.656 21.373 12.066-13.356zm-68.059 10.137l-25.48 19.158 10.816 14.387 25.483-19.158zm41.184 21.424l-8.129 16.06 28.445 14.397 8.13-16.059zM256 165c-16.4 0-34.344 10.07-57.637 33.363-2.94 2.94-3.524 4.645-3.629 6.416-.104 1.772.528 4.498 2.983 8.59 4.516 7.526 15.2 18.68 29.283 32.826V199h58v47.195c14.083-14.146 24.767-25.3 29.283-32.826 2.455-4.092 3.087-6.818 2.983-8.59-.105-1.771-.69-3.476-3.63-6.416C290.345 175.07 272.4 165 256 165zm-11 52v86.275c1.705 12.707 7.374 15.725 11 15.725 3.626 0 9.295-3.018 11-15.725V217zm-18 75.738l-25.924 155.547c.089 1.188 1.12 4.786 3.912 8.973 2.915 4.372 7.378 9.332 12.774 13.828C228.552 480.078 243 487 256 487s27.447-6.922 38.238-15.914c5.396-4.496 9.859-9.456 12.774-13.828 2.791-4.187 3.823-7.785 3.912-8.973L285 292.748c1.957 20.065-12.043 43.674-29 44.252-18.338-.45-29-22.772-29-44.262zM256 412c17.673 0 32 10.745 32 24s-14.327 24-32 24c-17.673 0-32-10.745-32-24s14.327-24 32-24z" }, "child": [] }] })(props);
4
4
  }
@@ -1,8 +1,8 @@
1
- import { L as LRLanguage, b as LanguageSupport, p as parseMixed, s as styleTags, e as tags } from "./index-DZ8Tuuit.js";
2
- import { html } from "./index-D1jY29Az.js";
3
- import { javascriptLanguage } from "./index-8-JzmzqC.js";
4
- import { L as LRParser, E as ExternalTokenizer } from "./index-BeF6VrSe.js";
5
- import "./index-DBHj35Nq.js";
1
+ import { L as LRLanguage, b as LanguageSupport, p as parseMixed, s as styleTags, e as tags } from "./index-CPsc5AXE.js";
2
+ import { html } from "./index-DjulCRn0.js";
3
+ import { javascriptLanguage } from "./index-B7B7XIvK.js";
4
+ import { L as LRParser, E as ExternalTokenizer } from "./index-B5RSRSoJ.js";
5
+ import "./index-BSVdNEPT.js";
6
6
  const Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36;
7
7
  const text = /* @__PURE__ */ new ExternalTokenizer((input) => {
8
8
  let start = input.pos;
@@ -1,4 +1,4 @@
1
- import { G as GenIcon } from "./index-DZ8Tuuit.js";
1
+ import { G as GenIcon } from "./index-CPsc5AXE.js";
2
2
  function DiZend(props) {
3
3
  return GenIcon({ "attr": { "version": "1.1", "viewBox": "0 0 32 32" }, "child": [{ "tag": "path", "attr": { "d": "M15.334 14.023c0 0 0-2.972 2.972-2.972h8.917c0 0 0 2.972-2.972 2.972h-8.917zM15.334 17.821c0 0 0-2.972 2.972-2.972h4.459c0 0 0 2.972-2.972 2.972h-4.459zM15.334 21.619c0 0 0-2.972 2.972-2.972h1.486c0 0 0 2.972-2.972 2.972h-1.486zM14.336 19.3v2.371h-9.559l6.158-8.399h-5.286v-2.371h9.972l-6.129 8.4z" }, "child": [] }] })(props);
4
4
  }
@@ -1,5 +1,5 @@
1
- import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-BeF6VrSe.js";
2
- import { s as styleTags, e as tags, g as ifNotIn, k as syntaxTree, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp, r as foldInside, by as NodeWeakMap, n as IterMode, h as completeFromList, bz as snippetCompletion } from "./index-DZ8Tuuit.js";
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-B5RSRSoJ.js";
2
+ import { s as styleTags, e as tags, g as ifNotIn, k as syntaxTree, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp, r as foldInside, aj as NodeWeakMap, n as IterMode, h as completeFromList, ak as snippetCompletion } from "./index-CPsc5AXE.js";
3
3
  const printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155;
4
4
  const newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85;
5
5
  const bracketed = /* @__PURE__ */ new Set([
@@ -1,5 +1,5 @@
1
- import { b as LanguageSupport, L as LRLanguage, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp, r as foldInside, s as styleTags, e as tags } from "./index-DZ8Tuuit.js";
2
- import { L as LRParser } from "./index-BeF6VrSe.js";
1
+ import { b as LanguageSupport, L as LRLanguage, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp, r as foldInside, s as styleTags, e as tags } from "./index-CPsc5AXE.js";
2
+ import { L as LRParser } from "./index-B5RSRSoJ.js";
3
3
  const spec_Keyword = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 };
4
4
  const parser = /* @__PURE__ */ LRParser.deserialize({
5
5
  version: 14,
@@ -1,4 +1,4 @@
1
- import { G as GenIcon } from "./index-DZ8Tuuit.js";
1
+ import { G as GenIcon } from "./index-CPsc5AXE.js";
2
2
  function WiWindy(props) {
3
3
  return GenIcon({ "attr": { "version": "1.1", "id": "Layer_1", "x": "0px", "y": "0px", "viewBox": "0 0 30 30", "style": "enable-background:new 0 0 30 30;" }, "child": [{ "tag": "path", "attr": { "d": "M4.65,15.5c0-0.22,0.08-0.41,0.23-0.56c0.16-0.15,0.35-0.22,0.57-0.22h12.08c0.22,0,0.4,0.07,0.54,0.22\n c0.14,0.15,0.22,0.34,0.22,0.57c0,0.22-0.07,0.4-0.22,0.54c-0.14,0.14-0.32,0.22-0.54,0.22H5.45c-0.22,0-0.42-0.07-0.57-0.22\n C4.72,15.9,4.65,15.72,4.65,15.5z M7.06,12.6c0-0.22,0.08-0.4,0.23-0.55c0.15-0.15,0.34-0.23,0.56-0.23h12.09\n c0.21,0,0.39,0.08,0.54,0.23c0.15,0.15,0.22,0.33,0.22,0.55c0,0.22-0.07,0.4-0.22,0.56c-0.15,0.15-0.33,0.23-0.54,0.23H7.86\n c-0.22,0-0.41-0.08-0.56-0.23S7.06,12.82,7.06,12.6z M8.68,18.34c0-0.21,0.08-0.39,0.24-0.54c0.14-0.14,0.32-0.22,0.54-0.22h12.1\n c0.22,0,0.41,0.07,0.56,0.22c0.15,0.14,0.22,0.32,0.22,0.54s-0.08,0.41-0.23,0.56s-0.34,0.23-0.56,0.23H9.46\n c-0.22,0-0.4-0.08-0.56-0.23S8.68,18.56,8.68,18.34z M19.26,15.5c0-0.23,0.07-0.42,0.22-0.57c0.15-0.15,0.34-0.22,0.57-0.22h4.52\n c0.23,0,0.42,0.07,0.57,0.22c0.15,0.15,0.22,0.34,0.22,0.56c0,0.22-0.07,0.4-0.22,0.54c-0.15,0.14-0.34,0.22-0.56,0.22h-4.52\n c-0.23,0-0.42-0.07-0.57-0.22C19.33,15.9,19.26,15.72,19.26,15.5z" }, "child": [] }] })(props);
4
4
  }
@@ -1,5 +1,5 @@
1
- import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from "./index-BeF6VrSe.js";
2
- import { s as styleTags, e as tags, b as LanguageSupport, g as ifNotIn, h as completeFromList, L as LRLanguage, i as indentNodeProp, bx as flatIndent, d as continuedIndent, q as delimitedIndent, f as foldNodeProp, r as foldInside, k as syntaxTree, bz as snippetCompletion, by as NodeWeakMap, n as IterMode } from "./index-DZ8Tuuit.js";
1
+ import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup, C as ContextTracker } from "./index-B5RSRSoJ.js";
2
+ import { s as styleTags, e as tags, b as LanguageSupport, g as ifNotIn, h as completeFromList, L as LRLanguage, i as indentNodeProp, ai as flatIndent, d as continuedIndent, q as delimitedIndent, f as foldNodeProp, r as foldInside, k as syntaxTree, ak as snippetCompletion, aj as NodeWeakMap, n as IterMode } from "./index-CPsc5AXE.js";
3
3
  const insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148;
4
4
  const newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125;
5
5
  const semicolon = new ExternalTokenizer((input, stack) => {
@@ -1,4 +1,4 @@
1
- import { o as EditorSelection, aS as foldCode, aT as MapMode, aU as matchBrackets, aV as indentMore, aW as indentLess, aX as cursorLineBoundaryBackward, aY as cursorLineBoundaryForward, aZ as cursorCharBackward, a_ as SearchQuery, a$ as setSearchQuery, E as EditorView, b0 as indentUnit, b1 as ensureSyntaxTree, b2 as showPanel, b3 as ViewPlugin, b4 as Decoration, b5 as RangeSetBuilder, b6 as Prec, b7 as StateField, b8 as RegExpCursor, b9 as StateEffect, ba as getDrawSelectionConfig$1, bb as Direction, bc as StringStream, bd as indentSelection, be as insertNewlineAndIndent, bf as cursorCharLeft, bg as undo, bh as redo, bi as runScopeHandlers } from "./index-DZ8Tuuit.js";
1
+ import { o as EditorSelection, M as foldCode, O as MapMode, Q as matchBrackets, R as indentMore, S as indentLess, U as cursorLineBoundaryBackward, V as cursorLineBoundaryForward, X as cursorCharBackward, Y as SearchQuery, Z as setSearchQuery, E as EditorView, _ as indentUnit, a0 as ensureSyntaxTree, a1 as showPanel, a2 as ViewPlugin, a3 as Decoration, a4 as RangeSetBuilder, a5 as Prec, a6 as StateField, a7 as RegExpCursor, a8 as StateEffect, a9 as getDrawSelectionConfig$1, aa as Direction, ab as StringStream, ac as indentSelection, ad as insertNewlineAndIndent, ae as cursorCharLeft, af as undo, ag as redo, ah as runScopeHandlers } from "./index-CPsc5AXE.js";
2
2
  function initVim(CM) {
3
3
  var Pos2 = CM.Pos;
4
4
  function updateSelectionForSurrogateCharacters(cm, curStart, curEnd) {
@@ -1,5 +1,5 @@
1
- import { L as LRParser } from "./index-BeF6VrSe.js";
2
- import { s as styleTags, e as tags, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, r as foldInside } from "./index-DZ8Tuuit.js";
1
+ import { L as LRParser } from "./index-B5RSRSoJ.js";
2
+ import { s as styleTags, e as tags, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, r as foldInside } from "./index-CPsc5AXE.js";
3
3
  const jsonHighlighting = styleTags({
4
4
  String: tags.string,
5
5
  Number: tags.number,
@@ -1,5 +1,5 @@
1
- import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-BeF6VrSe.js";
2
- import { s as styleTags, e as tags, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, bx as flatIndent, d as continuedIndent, q as delimitedIndent, f as foldNodeProp, r as foldInside } from "./index-DZ8Tuuit.js";
1
+ import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-B5RSRSoJ.js";
2
+ import { s as styleTags, e as tags, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, ai as flatIndent, d as continuedIndent, q as delimitedIndent, f as foldNodeProp, r as foldInside } from "./index-CPsc5AXE.js";
3
3
  const RawString = 1, templateArgsEndFallback = 2, MacroName = 3;
4
4
  const R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62;
5
5
  const rawString = new ExternalTokenizer((input) => {
@@ -1,4 +1,4 @@
1
- import { cC as getDefaultExportFromCjs } from "./index-DZ8Tuuit.js";
1
+ import { aR as getDefaultExportFromCjs } from "./index-CPsc5AXE.js";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -20,8 +20,8 @@
20
20
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
21
21
  <meta name="apple-mobile-web-app-title" content="AiderDesk">
22
22
  <link rel="apple-touch-icon" href="/icon-192.png">
23
- <script type="module" crossorigin src="./assets/index-DZ8Tuuit.js"></script>
24
- <link rel="stylesheet" crossorigin href="./assets/index-ly0cB32v.css">
23
+ <script type="module" crossorigin src="./assets/index-CPsc5AXE.js"></script>
24
+ <link rel="stylesheet" crossorigin href="./assets/index-CmC58I3A.css">
25
25
  </head>
26
26
 
27
27
  <body>
@@ -133,6 +133,17 @@
133
133
  {{#if projectGitRootDirectory}}<ProjectGitRootDirectory>{{projectGitRootDirectory}}</ProjectGitRootDirectory>{{/if}}
134
134
  </SystemInformation>
135
135
 
136
+ {{#if preCompactionHistoryFiles}}
137
+ <ContextHistory>
138
+ <Description>Before each conversation compaction, the complete pre-compaction context (including messages that are no longer part of the current context) is saved in the task directory. Read these files if you need earlier conversation history that was removed during compaction.</Description>
139
+ <Files ordered="oldest-to-newest">
140
+ {{#each preCompactionHistoryFiles}} <File path="{{this}}" />
141
+ {{/each}}
142
+ </Files>
143
+ <Guideline>The files are listed oldest to newest; the highest number is the most recent snapshot and contains the newest pre-compaction history. Read them with the file read tool using the absolute paths shown above.</Guideline>
144
+ </ContextHistory>
145
+ {{/if}}
146
+
136
147
  <Knowledge>
137
148
  <Rules>
138
149
  {{{rulesFiles}}}
@@ -98,6 +98,20 @@ Do not use when:
98
98
 
99
99
  **Never:** Use `@/` imports in extension files
100
100
 
101
+ ### Rule: Integrate custom providers with the host contract
102
+
103
+ **When:** Registering an LLM provider, especially one wrapping an external coding-agent SDK/server
104
+
105
+ **Then:** Read [external-agent-providers.md](references/external-agent-providers.md) and the current `ExtensionProviderStrategy` in `packages/common/src/extensions.ts` before implementation
106
+
107
+ **Must:** Keep the complete positional `createLlm` contract: `profile, model, settings, projectDir, toolSet?, systemPrompt?, providerMetadata?, tlsRegistrar?, sessionId?, approveTool?`. Providers can omit unused trailing arguments.
108
+
109
+ **Must:** Use the optional `ProviderToolApprovalHandler` for native-tool decisions, mapping tool names/inputs to Power schemas. Reject native execution if the callback is absent; do not replace the shared autonomy, approval settings, bash patterns and veto hooks with unconditional questions.
110
+
111
+ **Must:** Keep one execution owner, preserve original UI tool-result shapes, and deduplicate continuation replays. Separate persistent native sessions from transient processes/bridges, and scope parent/subagent conversations independently.
112
+
113
+ **Must:** Tell the user when the extension requires core changes, document native execution limitations, and verify against the matching core build. Extension reload or renderer refresh cannot update an older main process.
114
+
101
115
  ### Rule: Add UI components when needed
102
116
 
103
117
  **When:** Extension needs to display UI elements in task page placements
@@ -112,6 +126,18 @@ Do not use when:
112
126
 
113
127
  **If:** Component triggers actions, implement `executeUIExtensionAction()`
114
128
 
129
+ ### Rule: Keep extension model catalogs and favorites independent
130
+
131
+ **When:** Extension UI uses `ui.ModelSelector` with a custom catalog or extension-owned favorites
132
+
133
+ **Then:** Read [ModelSelector props and preference semantics](references/ui-components.md#modelselector) and use the public `ModelSelectorProps` contract
134
+
135
+ **Must:** Pass `models` to restrict the catalog (including displayed favorites); pass `providers` only when overriding core provider labels and disabled-state lookup
136
+
137
+ **Must:** For extension-owned favorites, supply `preferredModels` and handle `onPreferredModelsChange(next)` by updating extension state and persisting independently through an extension action. Initialize `preferredModels` to `[]` while loading so selection cannot accidentally update core favorites.
138
+
139
+ **Note:** Supplied preferences without a callback are read-only. Out-of-catalog IDs are hidden, not deleted from saved preferences. Omitting `preferredModels` retains core favorite persistence; a callback alone does not enable controlled mode. `skipPreferredModelsUpdate` suppresses selection-driven updates, not explicit removal.
140
+
115
141
  ### Rule: Use external libraries when UI components need npm packages
116
142
 
117
143
  **When:** Extension UI components need third-party npm packages (charts, calendars, kanban boards, etc.)
@@ -194,7 +220,9 @@ Do not use when:
194
220
 
195
221
  **Then:** Store config files in extension directory
196
222
 
197
- **Never:** Store config outside extension directory
223
+ **Never:** Store user-editable config outside the extension directory
224
+
225
+ **Note:** Native session databases and runtime state are not user-editable config. They may use a separate documented, access-restricted extension-owned location; see [external-agent-providers.md](references/external-agent-providers.md). Temporary process cleanup must not erase sessions intended for reuse.
198
226
 
199
227
  ## Process Overview
200
228
 
@@ -276,6 +304,8 @@ After completing this skill, verify:
276
304
  - Extension loads without errors
277
305
  - Extension appears in extensions list
278
306
  - Extension capabilities work as expected
307
+ - **If provider:** Current signatures and host compatibility checked; native approvals, streaming/result shapes, session continuity, subagent isolation and cleanup verified as applicable
308
+ - **If core changes are required:** README and user handoff explicitly require the matching core build and main-process restart
279
309
 
280
310
  **Success metrics:**
281
311
 
@@ -492,6 +522,7 @@ After completing this skill, verify:
492
522
  ### Technical Reference (all targets)
493
523
 
494
524
  - [packages/common/src/extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts) - Extension types and interfaces
525
+ - [external-agent-providers.md](references/external-agent-providers.md) - Custom provider signatures, native approvals, MCP execution ownership, streaming, persistent sessions and host compatibility
495
526
  - [extension-interface.md](references/extension-interface.md) - Full Extension interface, ExtensionContext, TaskContext, ProjectContext, MemoryContext, and all supporting types
496
527
  - [extension-types.md](references/extension-types.md) - Single-file vs folder extensions, examples, extensions.json format
497
528
  - [event-types.md](references/event-types.md) - All event types, payloads, and extension method mappings
@@ -250,7 +250,7 @@ interface AgentStepStartedEvent {
250
250
 
251
251
  ### AgentStepFinishedEvent
252
252
 
253
- Dispatched at the end of each agent step/iteration.
253
+ Dispatched at the end of each agent step/iteration. With streaming AI SDK providers, finalization follows the consumer reaching `finish-step`, after earlier chunks have been handled; do not treat this as the raw SDK callback timing.
254
254
 
255
255
  ```typescript
256
256
  interface AgentStepFinishedEvent {
@@ -310,7 +310,7 @@ interface InterruptedEvent {
310
310
 
311
311
  ### ToolApprovalEvent (Can Block)
312
312
 
313
- Dispatched when a tool requires approval. Set `blocked` to a boolean or string message to block; set `allowed: true` to auto-approve.
313
+ Dispatched when checking a tool execution decision, including native calls routed through `ProviderToolApprovalHandler`, even if autonomy or pre-approval would otherwise skip the question. Set `blocked` to a boolean or string message to block; set `allowed: true` to auto-approve. Provider-native disabled-tool and denied bash-pattern checks reject before this event. Approval does not dispatch native execution hooks; see [external-agent-providers.md](external-agent-providers.md).
314
314
 
315
315
  ```typescript
316
316
  interface ToolApprovalEvent {
@@ -439,7 +439,7 @@ interface ResponseCompletedEvent {
439
439
 
440
440
  ### HandleApprovalEvent (Can Block)
441
441
 
442
- Dispatched when an approval dialog is about to be shown. Set `blocked: true` to prevent the dialog, or `allowed: true` to auto-approve.
442
+ Dispatched while handling an approval decision, before default auto/pre-approval or a Manual prompt. It also applies to provider-native requests routed through `ProviderToolApprovalHandler` unless an earlier check or `onToolApproval` decision resolved them. This event does not guarantee a dialog will be shown. Set `blocked: true` to deny handling, or `allowed: true` to auto-approve.
443
443
 
444
444
  ```typescript
445
445
  interface HandleApprovalEvent {
@@ -14,6 +14,8 @@ Full TypeScript interface reference for AiderDesk extensions. All methods are op
14
14
  - [ProjectContext](#projectcontext)
15
15
  - [MemoryContext](#memorycontext)
16
16
  - [Supporting Types](#supporting-types)
17
+ - [ExtensionProviderStrategy](#extensionproviderstrategy)
18
+ - [ProviderToolApprovalHandler](#providertoolapprovalhandler)
17
19
 
18
20
  ---
19
21
 
@@ -114,6 +116,21 @@ interface Extension {
114
116
  }
115
117
  ```
116
118
 
119
+ ### Worktree Events
120
+
121
+ ```typescript
122
+ interface Extension {
123
+ onWorktreeCreated?(event: WorktreeCreatedEvent, context: ExtensionContext): Promise<void>;
124
+ onWorktreeMerged?(event: WorktreeMergedEvent, context: ExtensionContext): Promise<void>;
125
+ }
126
+ ```
127
+
128
+ `WorktreeCreatedEvent` contains `task` and `worktree`. It runs after new worktree creation, symlinks, and the legacy post-create command, not when reusing a worktree. The task may not yet be fully initialized; use `event.worktree.path` as the command working directory.
129
+
130
+ `WorktreeMergedEvent` contains `task`, source `worktree`, `targetPath`, optional `targetBranch`, `squash`, and `includeUncommitted`. It runs after successful merges to a project branch (including merge-before-switch-to-local) or another worktree, before source cleanup. `targetBranch` is omitted for worktree-to-worktree merges. Checkoutless merges update a branch without checking it out at `targetPath`.
131
+
132
+ Both are awaited notifications, not cancellable operations. Handler errors are logged without undoing the Git operation. Project-local extensions are suitable for project-specific setup commands.
133
+
117
134
  ### Project Events
118
135
 
119
136
  ```typescript
@@ -1213,6 +1230,56 @@ interface ProviderDefinition {
1213
1230
  }
1214
1231
  ```
1215
1232
 
1233
+ ### ExtensionProviderStrategy
1234
+
1235
+ Only `createLlm` and `loadModels` are required; omitted optional methods use built-in defaults. `toolSet` contains the active run's executable tools. `providerMetadata` can carry previous provider state; `sessionId` currently identifies the AiderDesk task, **not** a native session or unique subagent run. All trailing `createLlm` arguments are optional.
1236
+
1237
+ ```typescript
1238
+ interface ExtensionProviderStrategy {
1239
+ createLlm: (
1240
+ profile: ProviderProfile,
1241
+ model: Model,
1242
+ settings: SettingsData,
1243
+ projectDir: string,
1244
+ toolSet?: unknown,
1245
+ systemPrompt?: string,
1246
+ providerMetadata?: unknown,
1247
+ tlsRegistrar?: TlsPolicyRegistrar,
1248
+ sessionId?: string,
1249
+ approveTool?: ProviderToolApprovalHandler,
1250
+ ) => unknown | Promise<unknown>;
1251
+ loadModels: (profile: ProviderProfile, settings: SettingsData, tlsRegistrar?: TlsPolicyRegistrar) => Promise<LoadModelsResponse>;
1252
+
1253
+ getAiderMapping?: (provider: ProviderProfile, modelId: string, settings: SettingsData, projectDir: string) => AiderModelMapping;
1254
+ getUsageReport?: (task: unknown, provider: ProviderProfile, model: Model, usage: unknown, providerMetadata?: unknown) => UsageReportData;
1255
+ getProviderOptions?: (model: Model, reasoning?: Reasoning) => Record<string, Record<string, JSONValue | undefined>> | undefined;
1256
+ getCacheControl?: (model: Model) => CacheControl | undefined;
1257
+ getProviderTools?: (model: Model) => Record<string, Tool> | Promise<Record<string, Tool>>;
1258
+ getProviderParameters?: (model: Model, reasoning?: Reasoning) => Record<string, unknown>;
1259
+ createVoiceSession?: (profile: ProviderProfile, settings: SettingsData) => Promise<VoiceSession>;
1260
+ isRetryable?: (error: unknown) => boolean;
1261
+ }
1262
+ ```
1263
+
1264
+ ### ProviderToolApprovalHandler
1265
+
1266
+ The optional tenth `createLlm` argument checks an externally executed tool against the active run's approval manager without executing the tool:
1267
+
1268
+ ```typescript
1269
+ type ProviderToolApprovalHandler = (
1270
+ toolName: string,
1271
+ input: Record<string, unknown>,
1272
+ text: string,
1273
+ subject?: string,
1274
+ ) => Promise<[approved: boolean, reason?: string]>;
1275
+ ```
1276
+
1277
+ Map native tools to enabled AiderDesk names and input shapes before calling it. For example, native file reading maps to `power---file_read` with `{ filePath }`; native shell execution maps to `power---bash` with `{ command, cwd }`. Await the callback before granting native permission and forward its rejection reason when denied.
1278
+
1279
+ Missing/disabled tools and **Never** are denied in every autonomy mode. Power bash denied patterns are enforced. In **Manual**, **Always** or an allowed bash pattern skips the prompt, while **Ask** uses the normal question and shared always-for-this-run keys. **Guided/Autonomous** do not prompt for enabled tools. Approval hooks (`onToolApproval`, `onHandleApproval`) can still veto requests before auto/pre-approval, except that disabled tools and denied bash patterns are rejected before those hooks.
1280
+
1281
+ This does not invoke Power executors, execution hooks, sandboxing, or output processing. Do not call an executor just to obtain approval: it may execute the operation twice. If the callback is absent (older host or a non-agent call), reject native execution with an update/restart explanation. For the full native/MCP, streaming, session and lifecycle checklist, read [External-agent providers](external-agent-providers.md).
1282
+
1216
1283
  ### Event Payload Types
1217
1284
 
1218
1285
  <details>
@@ -0,0 +1,90 @@
1
+ # External-Agent Provider Extensions
2
+
3
+ Use this guide when `getProviders()` wraps a coding-agent SDK or server rather than a plain model endpoint.
4
+
5
+ Authoritative contracts: [extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts). The complete local signatures are in [extension-interface.md](extension-interface.md#extensionproviderstrategy); website documentation is in [the provider API reference](https://aiderdesk.hotovo.com/docs/extensions/api-reference#extensionproviderstrategy).
6
+
7
+ ## Provider construction and host compatibility
8
+
9
+ `createLlm` receives these positional arguments:
10
+
11
+ 1. `profile`
12
+ 2. `model`
13
+ 3. `settings`
14
+ 4. `projectDir`
15
+ 5. `toolSet?`
16
+ 6. `systemPrompt?`
17
+ 7. `providerMetadata?`
18
+ 8. `tlsRegistrar?`
19
+ 9. `sessionId?`
20
+ 10. `approveTool?: ProviderToolApprovalHandler`
21
+
22
+ `loadModels` also accepts an optional third `tlsRegistrar` argument. Use the exact types in the authoritative source instead of guessing SDK or host signatures.
23
+
24
+ The trailing arguments are optional: ordinary model providers can ignore them. Native-tool integrations must reject native execution if their required approval callback is absent. Updating an extension cannot add a callback to an older host. Test against the matching core build and restart the Electron/main process after core changes; renderer refresh or extension hot reload alone is insufficient.
25
+
26
+ ## Approval is not execution
27
+
28
+ ```typescript
29
+ import type { ProviderToolApprovalHandler } from '@aiderdesk/extensions';
30
+
31
+ const approveNativeRead = async (
32
+ approveTool: ProviderToolApprovalHandler | undefined,
33
+ filePath: string,
34
+ ): Promise<[boolean, string?]> => {
35
+ if (!approveTool) {
36
+ return [false, 'Update and restart AiderDesk to enable provider tool approvals.'];
37
+ }
38
+ return approveTool('power---file_read', { filePath }, 'Approve native file read?', filePath);
39
+ };
40
+ ```
41
+
42
+ Map native inputs into the corresponding AiderDesk schema first. Native read uses `power---file_read` and `filePath`; native shell uses `power---bash` and `command`/`cwd`. Await the result before granting permission to the native agent. Forward the rejection reason so the model can distinguish a policy rejection from a missing tool.
43
+
44
+ The callback uses the active run's shared approval manager:
45
+
46
+ - Missing/disabled tools and **Never** are denied in every mode.
47
+ - Power bash denied-command patterns are enforced. Allowed patterns skip the Manual prompt, without bypassing approval-hook vetoes.
48
+ - **Manual** follows **Always/Ask** and shares existing keys and always-for-this-run state with ordinary Power tools.
49
+ - **Guided/Autonomous** do not prompt for enabled tools. Approval hooks (`onToolApproval`, `onHandleApproval`) still run before auto/pre-approval; disabled-tool and denied-pattern checks reject before hooks.
50
+
51
+ Do not implement this policy with unconditional `TaskContext.askQuestion` calls, silently approve when the callback is missing, or invoke a Power executor merely to check approval. The callback does not apply Power execution hooks (`onToolCalled`/`onToolFinished`), executor guards, sandboxing, or output processing. Document those native-tool limitations explicitly.
52
+
53
+ ## Exactly one execution owner
54
+
55
+ - Native tools execute inside the external agent after an approved permission request.
56
+ - Bridged tools execute through the supplied, already-wrapped AiderDesk `toolSet` executors. Wait for MCP discovery/readiness before starting a turn.
57
+ - When reporting externally executed calls through AI SDK, set `providerExecuted: true` on the observed tool calls so the host does not execute them again.
58
+ - Deduplicate replayed calls/results by call ID across approval continuations. Preserve original arguments; a resumed event may repeat a call with empty input.
59
+ - Correlate MCP execution with its observed call ID and arguments, including parallel calls to the same tool.
60
+ - Retain original wrapped-tool return values for AiderDesk UI/history. MCP content arrays or `toModelOutput` conversions can differ from the schema expected by specialized renderers. Preserve conversion, images and error status for the model without replacing the UI result with a different representation.
61
+
62
+ ## Streaming and message ownership
63
+
64
+ For standard AI SDK providers, AiderDesk owns chat-message grouping and completion: tool/non-assistant boundaries close assistant groups rather than every `text-end`, and step finalization follows the consumer reaching `finish-step`. Forward coherent reasoning/text block IDs and tool boundaries; suppress replayed blocks or replayed prefixes rather than giving old content a fresh ID. Do not also insert a second copy of the response through `TaskContext.addResponseMessage`.
65
+
66
+ For extension-owned orchestration/rendering (such as Cursor SDK), use stable message IDs and mark messages complete before opening the next group. Streamed and finalized content must agree. SDK completion callbacks can run ahead of an async stream consumer: do not finalize a message while queued deltas can still append to it.
67
+
68
+ ## Persistent conversations and transient resources
69
+
70
+ A native session ID is not enough if its database is deleted at the end of each run. Separate persistent conversation data from temporary runtime configuration, authentication, server processes and MCP bridges.
71
+
72
+ - Store scoped session identifiers in task/provider metadata and retain the native session's backing data in a documented extension-owned location.
73
+ - Keep user-editable configuration in the extension directory as usual. Native runtime/session storage is a different category; give it explicit scoping, access restrictions and retention/cleanup documentation.
74
+ - Import the complete prepared AiderDesk history into a fresh conversation. Some SDKs treat a supplied session ID as proof that the history already exists; pre-creating an empty session can therefore discard history.
75
+ - Resume only after validating workspace, model, conversation scope and a successfully completed history checkpoint. Rebuild from full AiderDesk history after edits, clearing, compaction, or a missing session.
76
+ - Invalidate the resumable checkpoint before dispatch, and checkpoint only completed, non-aborted turns. Do not retry a dispatched generation automatically when tools might already have run.
77
+ - The `createLlm` `sessionId` currently identifies the AiderDesk task. Parent and subagent runs may share it. Give each conversation its own native session and resource ownership; finishing a subagent must not stop its parent.
78
+ - Stop owned processes and bridges on completion, cancellation, task closure and unload, without deleting session data needed for the next turn. Reconnect the new MCP endpoint when resuming after a server restart.
79
+
80
+ ## Verification checklist
81
+
82
+ - Exercise reasoning → tool calls → reasoning/text and multiple approval continuations; verify message order, completion and no replay duplicates.
83
+ - Test native and MCP calls independently, including approval/rejection and exactly-once execution.
84
+ - Test all autonomy modes against Always/Ask/Never, bash patterns and approval-extension vetoes.
85
+ - Test absent callbacks on an older host: native execution must be rejected, not silently approved.
86
+ - Verify first-turn history import, continuation after a complete runtime restart, changed/cleared/compacted history, missing sessions and parent/subagent isolation.
87
+ - Confirm the UI receives original tool-result shapes, not MCP text-block arrays where strings or structured Power results are expected.
88
+ - Verify cleanup of owned resources and document any dependency on core changes in both the README and the handoff to the user.
89
+
90
+ Examples: [OpenCode Free](https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/opencode-free/) for native/MCP integration and [Cursor SDK](https://github.com/hotovo/aider-desk/tree/main/packages/extensions/extensions/cursor-sdk/) for extension-owned orchestration.
@@ -378,15 +378,40 @@ The `ui` prop provides pre-built AiderDesk components:
378
378
 
379
379
  ### ModelSelector
380
380
  ```jsx
381
- <ui.ModelSelector
382
- models={models}
383
- providers={providers}
381
+ <ui.ModelSelector
382
+ models={imageModels}
383
+ providers={imageProviders}
384
384
  selectedModelId={modelId}
385
385
  onChange={handleModelChange}
386
- popupPlacement="top" // or "bottom"
386
+ preferredModels={preferredModels}
387
+ onPreferredModelsChange={handlePreferredModelsChange}
388
+ popupPlacement="top"
387
389
  />
388
390
  ```
389
391
 
392
+ The public props type is `ModelSelectorProps`. `models?: Model[]` and
393
+ `providers?: ProviderProfile[]` override core catalogs independently. With `models`
394
+ supplied, favorites are strictly limited to that list (`[]` allows no models).
395
+ Without a custom catalog, unknown favorites keep their normal core behavior.
396
+
397
+ `selectedModelId` is a provider-qualified string (`providerId/modelId`), `null`
398
+ for no selection, or `undefined` to disable the selector. `onChange` receives a
399
+ `Model | null`, not an ID.
400
+
401
+ `preferredModels?: string[]` controls favorites independently from core settings,
402
+ including when it is `[]`. `onPreferredModelsChange(next: string[])` receives the
403
+ complete next list; update extension state and persist via an extension action.
404
+ Selection prepends/deduplicates the ID; removal removes it; clearing selection
405
+ does not change favorites. IDs outside the custom catalog are hidden, not erased
406
+ from saved preferences or callback updates. Without a callback, controlled
407
+ favorites are read-only and have no removal controls. No controlled operation
408
+ writes core favorites. Initialize to `[]` while loading extension preferences.
409
+
410
+ Omit `preferredModels` for the default core favorites/persistence behavior; the
411
+ callback alone does not change that behavior. `skipPreferredModelsUpdate` skips
412
+ selection-driven updates but still allows removal. Also supported: `className`,
413
+ `labelOnNull` (clearing option), `usePortal`, `popupPlacement` (`top`/`bottom`).
414
+
390
415
  ### Slider
391
416
  ```jsx
392
417
  <ui.Slider