@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,6 +1,6 @@
1
- import { c as compilerRuntimeExports, cS as getDefaultProviderParams, j as jsxRuntimeExports, ck as useTranslation, cT as ReasoningEffort, cU as Select, cV as Checkbox, cu as Button, cW as Accordion, cj as reactExports, cX as Input, cY as Slider, cZ as ConfirmDialog, c_ as useVirtualizer, c$ as MdArrowUpward, d0 as MdArrowDownward, t as twMerge, d1 as useDebounce, d2 as FiChevronDown, d3 as MdThermostat, d4 as Tooltip, I as IconButton, d5 as FiEdit2, d6 as FiEye, d7 as FiSliders, d8 as FiTrash2, d9 as FiRefreshCw, da as FiPlus, ci as useModelProviders, db as useHotkeys, dc as ModalOverlayLayout } from "./index-DZ8Tuuit.js";
2
- import { O as OpenRouterAdvancedSettings, D as DisableStreaming, c as DisableToolCallStreaming, G as GeminiAdvancedSettings, V as VertexAiAdvancedSettings, d as OpenAiAdvancedSettings, R as RequestyAdvancedSettings, e as OpenAiCompatibleAdvancedSettings, Z as ZaiPlanThinkingSetting, A as AlibabaPlanThinkingSettings, N as NeuralwattAdvancedSettings, P as ProviderProfileForm, a as ProviderSelection, b as ProviderHeader } from "./ProviderHeader-BnuGEmze.js";
3
- import { I as InfoIcon } from "./InfoIcon-CMLVIQF3.js";
1
+ import { c as compilerRuntimeExports, aS as getDefaultProviderParams, j as jsxRuntimeExports, aA as useTranslation, aT as ReasoningEffort, aU as Select, aV as Checkbox, aK as Button, aW as Accordion, az as reactExports, aX as Input, aY as Slider, aZ as ConfirmDialog, a_ as useVirtualizer, a$ as MdArrowUpward, b0 as MdArrowDownward, t as twMerge, b1 as useDebounce, b2 as FiChevronDown, b3 as MdThermostat, b4 as Tooltip, I as IconButton, b5 as FiEdit2, b6 as FiEye, b7 as FiSliders, b8 as FiTrash2, b9 as FiRefreshCw, ba as FiPlus, ay as useModelProviders, bb as useHotkeys, bc as ModalOverlayLayout } from "./index-Cc-He418.js";
2
+ import { O as OpenRouterAdvancedSettings, D as DisableStreaming, c as DisableToolCallStreaming, G as GeminiAdvancedSettings, V as VertexAiAdvancedSettings, d as OpenAiAdvancedSettings, R as RequestyAdvancedSettings, e as OpenAiCompatibleAdvancedSettings, Z as ZaiPlanThinkingSetting, A as AlibabaPlanThinkingSettings, N as NeuralwattAdvancedSettings, P as ProviderProfileForm, a as ProviderSelection, b as ProviderHeader } from "./ProviderHeader-Buje398H.js";
3
+ import { I as InfoIcon } from "./InfoIcon-DI4teJbi.js";
4
4
  const OpenRouterModelOverrides = (t0) => {
5
5
  const $ = compilerRuntimeExports.c(25);
6
6
  const {
@@ -3096,7 +3096,8 @@ const VirtualTable = ({
3096
3096
  rowHeight = 40,
3097
3097
  overscanCount = 10,
3098
3098
  disableHeader = false,
3099
- getRowClassName
3099
+ getRowClassName,
3100
+ minTableWidth
3100
3101
  }) => {
3101
3102
  const [sortState, setSortState] = reactExports.useState({
3102
3103
  columnKey: "",
@@ -3144,8 +3145,11 @@ const VirtualTable = ({
3144
3145
  estimateSize: () => typeof rowHeight === "number" ? rowHeight : 40,
3145
3146
  overscan: overscanCount
3146
3147
  });
3147
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-grow flex flex-col border border-border-dark-light", children: [
3148
- !disableHeader && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-primary uppercase bg-bg-secondary-light border-b border-border-dark-light pr-[8px]", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-nowrap items-stretch sticky top-0", children: columns.map((column_1, index_0) => {
3148
+ const minWidthStyle = minTableWidth ? {
3149
+ minWidth: minTableWidth
3150
+ } : void 0;
3151
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `flex-grow flex flex-col border border-border-dark-light ${minTableWidth ? "overflow-x-auto" : ""}`, children: [
3152
+ !disableHeader && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-text-primary uppercase bg-bg-secondary-light border-b border-border-dark-light pr-[8px]", style: minWidthStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex w-full flex-nowrap items-stretch sticky top-0", children: columns.map((column_1, index_0) => {
3149
3153
  const isSortable = !!column_1.sort && !!column_1.accessor;
3150
3154
  const isSorted = sortState.columnKey === column_1.accessor;
3151
3155
  const sortDirection = isSorted ? sortState.direction : null;
@@ -3159,7 +3163,7 @@ const VirtualTable = ({
3159
3163
  sortDirection === "desc" && /* @__PURE__ */ jsxRuntimeExports.jsx(MdArrowDownward, { className: "w-3 h-3 -mt-1 text-text-primary" })
3160
3164
  ] }, sortDirection || null) }, index_0);
3161
3165
  }) }) }) }, `${sortState.columnKey}-${sortState.direction}`),
3162
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: parentRef, className: "flex-grow scrollbar-thin scrollbar-track-bg-primary-light scrollbar-thumb-bg-secondary-light hover:scrollbar-thumb-bg-tertiary overflow-y-scroll relative", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
3166
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: parentRef, className: "flex-grow scrollbar-thin scrollbar-track-bg-primary-light scrollbar-thumb-bg-secondary-light hover:scrollbar-thumb-bg-tertiary overflow-y-scroll relative", style: minWidthStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
3163
3167
  height: `${virtualizer.getTotalSize()}px`,
3164
3168
  width: "100%"
3165
3169
  }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: virtualizer.getVirtualItems().map((virtualRow, index_1) => {
@@ -3178,7 +3182,7 @@ const VirtualTable = ({
3178
3182
  }, children: column_2.cell ? column_2.cell(value, row.original) : value }, colIndex);
3179
3183
  }) }, row.id);
3180
3184
  }) }) }) }),
3181
- footerColumns && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sticky bottom-0 bg-bg-secondary-light text-xs uppercase text-text-primary border-t border-border-dark-light", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex", children: footerColumns.map((col_0, index_2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `px-4 py-2 font-medium flex items-center flex-shrink-0 whitespace-break-spaces text-ellipsis ${col_0.className || ""}`, style: {
3185
+ footerColumns && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sticky bottom-0 bg-bg-secondary-light text-xs uppercase text-text-primary border-t border-border-dark-light", style: minWidthStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex", children: footerColumns.map((col_0, index_2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `px-4 py-2 font-medium flex items-center flex-shrink-0 whitespace-break-spaces text-ellipsis ${col_0.className || ""}`, style: {
3182
3186
  maxWidth: columns[index_2]?.maxWidth,
3183
3187
  flex: "2",
3184
3188
  width: 1
@@ -3761,7 +3765,7 @@ const ModelTableSection = (t0) => {
3761
3765
  }
3762
3766
  let t46;
3763
3767
  if ($[117] !== search || $[118] !== t45) {
3764
- t46 = /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { value: search, onChange: t44, wrapperClassName: "min-w-[250px] flex-1 max-w-md", placeholder: t45 });
3768
+ t46 = /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { value: search, onChange: t44, wrapperClassName: "min-w-[180px] flex-1 max-w-md", placeholder: t45 });
3765
3769
  $[117] = search;
3766
3770
  $[118] = t45;
3767
3771
  $[119] = t46;
@@ -3802,7 +3806,7 @@ const ModelTableSection = (t0) => {
3802
3806
  }
3803
3807
  let t50;
3804
3808
  if ($[129] !== t49) {
3805
- t50 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-2xs text-text-secondary pr-2 pl-4", children: t49 });
3809
+ t50 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-2xs text-text-secondary whitespace-nowrap", children: t49 });
3806
3810
  $[129] = t49;
3807
3811
  $[130] = t50;
3808
3812
  } else {
@@ -3810,7 +3814,7 @@ const ModelTableSection = (t0) => {
3810
3814
  }
3811
3815
  let t51;
3812
3816
  if ($[131] !== t46 || $[132] !== t48 || $[133] !== t50) {
3813
- t51 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-4 flex-1", children: [
3817
+ t51 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2 flex-1 min-w-[180px]", children: [
3814
3818
  t46,
3815
3819
  t48,
3816
3820
  t50
@@ -3910,7 +3914,7 @@ const ModelTableSection = (t0) => {
3910
3914
  }
3911
3915
  let t60;
3912
3916
  if ($[155] !== t52 || $[156] !== t56 || $[157] !== t59) {
3913
- t60 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2", children: [
3917
+ t60 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-center gap-2 ml-auto", children: [
3914
3918
  t52,
3915
3919
  t56,
3916
3920
  t59
@@ -3924,7 +3928,7 @@ const ModelTableSection = (t0) => {
3924
3928
  }
3925
3929
  let t61;
3926
3930
  if ($[159] !== t51 || $[160] !== t60) {
3927
- t61 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-2 pt-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between space-x-4 pr-4", children: [
3931
+ t61 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-2 pt-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2 pr-4", children: [
3928
3932
  t51,
3929
3933
  t60
3930
3934
  ] }) });
@@ -3936,7 +3940,7 @@ const ModelTableSection = (t0) => {
3936
3940
  }
3937
3941
  let t62;
3938
3942
  if ($[162] !== columns || $[163] !== filteredModels || $[164] !== search || $[165] !== selectedProviderIds.length || $[166] !== t || $[167] !== tableKey || $[168] !== visibleModelIds) {
3939
- t62 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-1 overflow-hidden mt-2", children: filteredModels.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-text-secondary text-sm", children: search ? t("modelLibrary.noModelsMatchSearch") : selectedProviderIds.length === 0 ? t("modelLibrary.selectProvidersToViewModels") : t("modelLibrary.noModelsFromSelectedProviders") }) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualTable, { data: filteredModels, columns, getRowClassName }, `${visibleModelIds.length}-${tableKey}`) });
3943
+ t62 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-1 overflow-hidden mt-2", children: filteredModels.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-center h-full w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-text-secondary text-sm", children: search ? t("modelLibrary.noModelsMatchSearch") : selectedProviderIds.length === 0 ? t("modelLibrary.selectProvidersToViewModels") : t("modelLibrary.noModelsFromSelectedProviders") }) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(VirtualTable, { data: filteredModels, columns, getRowClassName, minTableWidth: 1100 }, `${visibleModelIds.length}-${tableKey}`) });
3940
3944
  $[162] = columns;
3941
3945
  $[163] = filteredModels;
3942
3946
  $[164] = search;
@@ -4294,7 +4298,7 @@ const ModelLibrary = (t0) => {
4294
4298
  }
4295
4299
  let t202;
4296
4300
  if ($[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4297
- t202 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 overflow-y-auto scrollbar-thin scrollbar-track-bg-primary-light scrollbar-thumb-bg-tertiary", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-10", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProviderSelection, { onSelectProvider: handleSelectProvider, onCancel: handleCancelConfigure }) }) });
4301
+ t202 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 overflow-y-auto scrollbar-thin scrollbar-track-bg-primary-light scrollbar-thumb-bg-tertiary", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 sm:p-10", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProviderSelection, { onSelectProvider: handleSelectProvider, onCancel: handleCancelConfigure }) }) });
4298
4302
  $[32] = t202;
4299
4303
  } else {
4300
4304
  t202 = $[32];
@@ -1,4 +1,4 @@
1
- import { G as GenIcon } from "./index-DZ8Tuuit.js";
1
+ import { G as GenIcon } from "./index-Cc-He418.js";
2
2
  function FcWorkflow(props) {
3
3
  return GenIcon({ "attr": { "version": "1", "viewBox": "0 0 48 48", "enableBackground": "new 0 0 48 48" }, "child": [{ "tag": "rect", "attr": { "x": "7", "y": "31", "fill": "#00BCD4", "width": "10", "height": "10" }, "child": [] }, { "tag": "path", "attr": { "fill": "#00BCD4", "d": "M35.3,19.3l-5.6-5.6c-0.4-0.4-0.4-1,0-1.4l5.6-5.6c0.4-0.4,1-0.4,1.4,0l5.6,5.6c0.4,0.4,0.4,1,0,1.4 l-5.6,5.6C36.3,19.7,35.7,19.7,35.3,19.3z" }, "child": [] }, { "tag": "circle", "attr": { "fill": "#3F51B5", "cx": "12", "cy": "13", "r": "6" }, "child": [] }, { "tag": "circle", "attr": { "fill": "#448AFF", "cx": "36", "cy": "36", "r": "6" }, "child": [] }, { "tag": "g", "attr": { "fill": "#90A4AE" }, "child": [{ "tag": "rect", "attr": { "x": "11", "y": "24", "width": "2", "height": "5" }, "child": [] }, { "tag": "polygon", "attr": { "points": "12,21 9,25 15,25" }, "child": [] }] }, { "tag": "g", "attr": { "fill": "#90A4AE" }, "child": [{ "tag": "rect", "attr": { "x": "20", "y": "12", "width": "5", "height": "2" }, "child": [] }, { "tag": "polygon", "attr": { "points": "28,13 24,10 24,16" }, "child": [] }] }, { "tag": "g", "attr": { "fill": "#90A4AE" }, "child": [{ "tag": "rect", "attr": { "x": "35", "y": "21", "width": "2", "height": "5" }, "child": [] }, { "tag": "polygon", "attr": { "points": "36,29 39,25 33,25" }, "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-Dgdp4i2K.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-Cc-He418.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,6 +1,6 @@
1
- import { b as LanguageSupport, L as LRLanguage, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, r as foldInside, s as styleTags, e as tags } from "./index-DZ8Tuuit.js";
2
- import { defineCSSCompletionSource } from "./index-DBHj35Nq.js";
3
- import { L as LRParser, E as ExternalTokenizer } from "./index-BeF6VrSe.js";
1
+ import { b as LanguageSupport, L as LRLanguage, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, r as foldInside, s as styleTags, e as tags } from "./index-Cc-He418.js";
2
+ import { defineCSSCompletionSource } from "./index-KId2jLzt.js";
3
+ import { L as LRParser, E as ExternalTokenizer } from "./index-Dgdp4i2K.js";
4
4
  const descendantOp = 110, Unit = 1, openArgList = 2;
5
5
  const space = [
6
6
  9,
@@ -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-Dgdp4i2K.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-Cc-He418.js";
3
3
  const jsonHighlighting = styleTags({
4
4
  String: tags.string,
5
5
  Number: tags.number,
@@ -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, a as LocalTokenGroup } 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-Cc-He418.js";
2
+ import { html } from "./index-BpNNugm2.js";
3
+ import { javascriptLanguage } from "./index-U8nE80jx.js";
4
+ import { L as LRParser, a as LocalTokenGroup } from "./index-Dgdp4i2K.js";
5
+ import "./index-KId2jLzt.js";
6
6
  const parser = /* @__PURE__ */ LRParser.deserialize({
7
7
  version: 14,
8
8
  states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
@@ -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, 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";
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-Dgdp4i2K.js";
2
+ import { 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-Cc-He418.js";
3
3
  const StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
4
4
  function nameChar(ch) {
5
5
  return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
@@ -1,4 +1,4 @@
1
- import { P as Parser, N as NodeSet, l as NodeType, D as DefaultBufferLength, m as NodeProp, T as Tree, n as IterMode } from "./index-DZ8Tuuit.js";
1
+ import { P as Parser, N as NodeSet, l as NodeType, D as DefaultBufferLength, m as NodeProp, T as Tree, n as IterMode } from "./index-Cc-He418.js";
2
2
  var define_process_env_default = {};
3
3
  class Stack {
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-Dgdp4i2K.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-Cc-He418.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 { L as LRLanguage, b as LanguageSupport, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, s as styleTags, e as tags, g as ifNotIn, h as completeFromList, k as syntaxTree } from "./index-DZ8Tuuit.js";
2
- import { E as ExternalTokenizer, L as LRParser } from "./index-BeF6VrSe.js";
1
+ import { L as LRLanguage, b as LanguageSupport, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, s as styleTags, e as tags, g as ifNotIn, h as completeFromList, k as syntaxTree } from "./index-Cc-He418.js";
2
+ import { E as ExternalTokenizer, L as LRParser } from "./index-Dgdp4i2K.js";
3
3
  const whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
4
4
  function isAlpha(ch) {
5
5
  return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57;
@@ -1,4 +1,4 @@
1
- import { G as GenIcon } from "./index-DZ8Tuuit.js";
1
+ import { G as GenIcon } from "./index-Cc-He418.js";
2
2
  function GrZoom(props) {
3
3
  return GenIcon({ "attr": { "viewBox": "0 0 24 24", "fill": "none" }, "child": [{ "tag": "path", "attr": { "d": "M0 8C0 3.58172 3.58172 0 8 0H16C20.4183 0 24 3.58172 24 8V16C24 20.4183 20.4183 24 16 24H8C3.58172 24 0 20.4183 0 16V8Z" }, "child": [] }, { "tag": "path", "attr": { "d": "M5 9C5 8.44772 5.44772 8 6 8H12C13.6569 8 15 9.34315 15 11V15C15 15.5523 14.5523 16 14 16H8C6.34315 16 5 14.6569 5 13V9Z" }, "child": [] }, { "tag": "path", "attr": { "d": "M15.5 11.7515C15.5 11.2671 15.6758 10.7991 15.9948 10.4345L17.6856 8.50226C18.1416 7.98108 19 8.30361 19 8.99613V15.004C19 15.6965 18.1416 16.019 17.6856 15.4978L15.9948 13.5656C15.6758 13.201 15.5 12.733 15.5 12.2486V11.7515Z" }, "child": [] }] })(props);
4
4
  }
@@ -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$1, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, r as foldInside, k as syntaxTree, by as NodeWeakMap, n as IterMode } from "./index-DZ8Tuuit.js";
1
+ import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-Dgdp4i2K.js";
2
+ import { s as styleTags, e as tags$1, b as LanguageSupport, L as LRLanguage, i as indentNodeProp, d as continuedIndent, f as foldNodeProp, r as foldInside, k as syntaxTree, aj as NodeWeakMap, n as IterMode } from "./index-Cc-He418.js";
3
3
  const descendantOp = 148, Unit = 1, identifier$1 = 149, callee = 150, VariableName = 2, queryIdentifier = 151, queryVariableName = 3, QueryCallee = 4;
4
4
  const space = [
5
5
  9,
@@ -1,8 +1,8 @@
1
- import { P as Parser, l as NodeType, m as NodeProp, bD as Tag, N as NodeSet, s as styleTags, T as Tree, p as parseMixed, e as tags, k as syntaxTree, o as EditorSelection, bE as countColumn, b as LanguageSupport, b6 as Prec, bF as keymap, E as EditorView, bG as Language, b0 as indentUnit, bH as foldService, bC as defineLanguageFacet, bI as CompletionContext, bJ as EditorState, f as foldNodeProp, i as indentNodeProp, bK as languageDataProp, bL as LanguageDescription, bM as ParseContext } from "./index-DZ8Tuuit.js";
2
- import { html, htmlCompletionSource } from "./index-D1jY29Az.js";
3
- import "./index-BeF6VrSe.js";
4
- import "./index-DBHj35Nq.js";
5
- import "./index-8-JzmzqC.js";
1
+ import { P as Parser, l as NodeType, m as NodeProp, ao as Tag, N as NodeSet, s as styleTags, T as Tree, p as parseMixed, e as tags, k as syntaxTree, o as EditorSelection, ap as countColumn, b as LanguageSupport, a5 as Prec, aq as keymap, E as EditorView, ar as Language, _ as indentUnit, as as foldService, an as defineLanguageFacet, at as CompletionContext, au as EditorState, f as foldNodeProp, i as indentNodeProp, av as languageDataProp, aw as LanguageDescription, ax as ParseContext } from "./index-Cc-He418.js";
2
+ import { html, htmlCompletionSource } from "./index-BpNNugm2.js";
3
+ import "./index-Dgdp4i2K.js";
4
+ import "./index-KId2jLzt.js";
5
+ import "./index-U8nE80jx.js";
6
6
  class CompositeBlock {
7
7
  static create(type, value, from, parentHash, end) {
8
8
  let hash = parentHash + (parentHash << 8) + type + (value << 4) | 0;
@@ -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, E as EditorView, k as syntaxTree, o as EditorSelection, 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, bB as sublanguageProp, bz as snippetCompletion, bC as defineLanguageFacet, 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-Dgdp4i2K.js";
2
+ import { s as styleTags, e as tags, E as EditorView, k as syntaxTree, o as EditorSelection, 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, am as sublanguageProp, ak as snippetCompletion, an as defineLanguageFacet, aj as NodeWeakMap, n as IterMode } from "./index-Cc-He418.js";
3
3
  const noSemi = 316, noSemiType = 317, incdec = 1, incdecPrefix = 2, questionDot = 3, JSXStartTag = 4, insertSemi = 318, spaces = 320, newline = 321, LineComment = 5, BlockComment = 6, Dialect_jsx = 0;
4
4
  const space = [
5
5
  9,
@@ -1,8 +1,8 @@
1
- import { E as EditorView, o as EditorSelection, b as LanguageSupport, p as parseMixed, k as syntaxTree, L as LRLanguage, s as styleTags, e as tags, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp } from "./index-DZ8Tuuit.js";
2
- import { html } from "./index-D1jY29Az.js";
3
- import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-BeF6VrSe.js";
4
- import "./index-DBHj35Nq.js";
5
- import "./index-8-JzmzqC.js";
1
+ import { E as EditorView, o as EditorSelection, b as LanguageSupport, p as parseMixed, k as syntaxTree, L as LRLanguage, s as styleTags, e as tags, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp } from "./index-Cc-He418.js";
2
+ import { html } from "./index-BpNNugm2.js";
3
+ import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-Dgdp4i2K.js";
4
+ import "./index-KId2jLzt.js";
5
+ import "./index-U8nE80jx.js";
6
6
  const interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
7
7
  function wordChar(code) {
8
8
  return code >= 65 && code <= 90 || code >= 97 && code <= 122;
@@ -1,4 +1,4 @@
1
- import { G as GenIcon } from "./index-DZ8Tuuit.js";
1
+ import { G as GenIcon } from "./index-Cc-He418.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 LRParser, E as ExternalTokenizer } from "./index-BeF6VrSe.js";
2
- import { s as styleTags, e as tags, b as LanguageSupport, p as parseMixed, L as LRLanguage, i as indentNodeProp, d as continuedIndent, q as delimitedIndent, f as foldNodeProp, r as foldInside } from "./index-DZ8Tuuit.js";
3
- import { html } from "./index-D1jY29Az.js";
4
- import "./index-DBHj35Nq.js";
5
- import "./index-8-JzmzqC.js";
1
+ import { L as LRParser, E as ExternalTokenizer } from "./index-Dgdp4i2K.js";
2
+ import { s as styleTags, e as tags, b as LanguageSupport, p as parseMixed, L as LRLanguage, i as indentNodeProp, d as continuedIndent, q as delimitedIndent, f as foldNodeProp, r as foldInside } from "./index-Cc-He418.js";
3
+ import { html } from "./index-BpNNugm2.js";
4
+ import "./index-KId2jLzt.js";
5
+ import "./index-U8nE80jx.js";
6
6
  const castOpen = 1, HeredocString = 2, interpolatedStringContent = 275, EscapeSequence = 3, afterInterpolation = 276, automaticSemicolon = 277, eof = 278, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, readonly = 52, _require = 53, require_once = 54, _return = 55, _switch = 56, _throw = 57, trait = 58, _try = 59, unset = 60, use = 61, _var = 62, Visibility = 63, _while = 64, xor = 65, _yield = 66;
7
7
  const keywordMap = {
8
8
  abstract,
@@ -1,8 +1,8 @@
1
- import { E as EditorView, o as EditorSelection, b as LanguageSupport, p as parseMixed, k as syntaxTree, L as LRLanguage, s as styleTags, e as tags, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp } from "./index-DZ8Tuuit.js";
2
- import { html } from "./index-D1jY29Az.js";
3
- import { L as LRParser, E as ExternalTokenizer } from "./index-BeF6VrSe.js";
4
- import "./index-DBHj35Nq.js";
5
- import "./index-8-JzmzqC.js";
1
+ import { E as EditorView, o as EditorSelection, b as LanguageSupport, p as parseMixed, k as syntaxTree, L as LRLanguage, s as styleTags, e as tags, i as indentNodeProp, q as delimitedIndent, f as foldNodeProp } from "./index-Cc-He418.js";
2
+ import { html } from "./index-BpNNugm2.js";
3
+ import { L as LRParser, E as ExternalTokenizer } from "./index-Dgdp4i2K.js";
4
+ import "./index-KId2jLzt.js";
5
+ import "./index-U8nE80jx.js";
6
6
  const interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 180, endrawTagStart = 4, rawText = 181, endcommentTagStart = 5, commentText = 182, InlineComment = 6;
7
7
  function wordChar(code) {
8
8
  return code >= 65 && code <= 90 || code >= 97 && code <= 122;
@@ -1,4 +1,4 @@
1
- import { cC as getDefaultExportFromCjs } from "./index-DZ8Tuuit.js";
1
+ import { aR as getDefaultExportFromCjs } from "./index-Cc-He418.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-Cc-He418.js"></script>
24
+ <link rel="stylesheet" crossorigin href="./assets/index-CWfnJXNI.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
@@ -194,7 +208,9 @@ Do not use when:
194
208
 
195
209
  **Then:** Store config files in extension directory
196
210
 
197
- **Never:** Store config outside extension directory
211
+ **Never:** Store user-editable config outside the extension directory
212
+
213
+ **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
214
 
199
215
  ## Process Overview
200
216
 
@@ -276,6 +292,8 @@ After completing this skill, verify:
276
292
  - Extension loads without errors
277
293
  - Extension appears in extensions list
278
294
  - Extension capabilities work as expected
295
+ - **If provider:** Current signatures and host compatibility checked; native approvals, streaming/result shapes, session continuity, subagent isolation and cleanup verified as applicable
296
+ - **If core changes are required:** README and user handoff explicitly require the matching core build and main-process restart
279
297
 
280
298
  **Success metrics:**
281
299
 
@@ -492,6 +510,7 @@ After completing this skill, verify:
492
510
  ### Technical Reference (all targets)
493
511
 
494
512
  - [packages/common/src/extensions.ts](https://raw.githubusercontent.com/hotovo/aider-desk/refs/heads/main/packages/common/src/extensions.ts) - Extension types and interfaces
513
+ - [external-agent-providers.md](references/external-agent-providers.md) - Custom provider signatures, native approvals, MCP execution ownership, streaming, persistent sessions and host compatibility
495
514
  - [extension-interface.md](references/extension-interface.md) - Full Extension interface, ExtensionContext, TaskContext, ProjectContext, MemoryContext, and all supporting types
496
515
  - [extension-types.md](references/extension-types.md) - Single-file vs folder extensions, examples, extensions.json format
497
516
  - [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
 
@@ -1213,6 +1215,56 @@ interface ProviderDefinition {
1213
1215
  }
1214
1216
  ```
1215
1217
 
1218
+ ### ExtensionProviderStrategy
1219
+
1220
+ 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.
1221
+
1222
+ ```typescript
1223
+ interface ExtensionProviderStrategy {
1224
+ createLlm: (
1225
+ profile: ProviderProfile,
1226
+ model: Model,
1227
+ settings: SettingsData,
1228
+ projectDir: string,
1229
+ toolSet?: unknown,
1230
+ systemPrompt?: string,
1231
+ providerMetadata?: unknown,
1232
+ tlsRegistrar?: TlsPolicyRegistrar,
1233
+ sessionId?: string,
1234
+ approveTool?: ProviderToolApprovalHandler,
1235
+ ) => unknown | Promise<unknown>;
1236
+ loadModels: (profile: ProviderProfile, settings: SettingsData, tlsRegistrar?: TlsPolicyRegistrar) => Promise<LoadModelsResponse>;
1237
+
1238
+ getAiderMapping?: (provider: ProviderProfile, modelId: string, settings: SettingsData, projectDir: string) => AiderModelMapping;
1239
+ getUsageReport?: (task: unknown, provider: ProviderProfile, model: Model, usage: unknown, providerMetadata?: unknown) => UsageReportData;
1240
+ getProviderOptions?: (model: Model, reasoning?: Reasoning) => Record<string, Record<string, JSONValue | undefined>> | undefined;
1241
+ getCacheControl?: (model: Model) => CacheControl | undefined;
1242
+ getProviderTools?: (model: Model) => Record<string, Tool> | Promise<Record<string, Tool>>;
1243
+ getProviderParameters?: (model: Model, reasoning?: Reasoning) => Record<string, unknown>;
1244
+ createVoiceSession?: (profile: ProviderProfile, settings: SettingsData) => Promise<VoiceSession>;
1245
+ isRetryable?: (error: unknown) => boolean;
1246
+ }
1247
+ ```
1248
+
1249
+ ### ProviderToolApprovalHandler
1250
+
1251
+ The optional tenth `createLlm` argument checks an externally executed tool against the active run's approval manager without executing the tool:
1252
+
1253
+ ```typescript
1254
+ type ProviderToolApprovalHandler = (
1255
+ toolName: string,
1256
+ input: Record<string, unknown>,
1257
+ text: string,
1258
+ subject?: string,
1259
+ ) => Promise<[approved: boolean, reason?: string]>;
1260
+ ```
1261
+
1262
+ 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.
1263
+
1264
+ 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.
1265
+
1266
+ 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).
1267
+
1216
1268
  ### Event Payload Types
1217
1269
 
1218
1270
  <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.