@aiderdesk/aiderdesk 0.87.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.
- package/out/renderer/assets/2DXBBFLN-DhlZjS3f.js +666 -0
- package/out/renderer/assets/46IJ22JX-C1e8pvI2.js +853 -0
- package/out/renderer/assets/4TTDE5I4-Bea_IXhu.js +501 -0
- package/out/renderer/assets/4UF3HTLV-CVqcE2iq.js +29 -0
- package/out/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
- package/out/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
- package/out/renderer/assets/AAXQQPKT-BVbjBycX.js +1130 -0
- package/out/renderer/assets/AKE5O7KZ-Dr4O6i9X.js +184 -0
- package/out/renderer/assets/{AgentSettings-Cp7VI6CM.js → AgentSettings-ByYnHHTv.js} +710 -255
- package/out/renderer/assets/BNMLP6AG-CHDGj3j_.js +804 -0
- package/out/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
- package/out/renderer/assets/DR6PKOQU-C6a3Tq7K.js +301 -0
- package/out/renderer/assets/E4RJ7UJB-BQWgl9gv.js +441 -0
- package/out/renderer/assets/ELSXBIJH-CVPK3kX4.js +39 -0
- package/out/renderer/assets/ERTIBQVS-71_Ru0iJ.js +182 -0
- package/out/renderer/assets/F653G4FO-Dj2Ang6n.js +1497 -0
- package/out/renderer/assets/FKCDD66M-DCrQTwBi.js +205 -0
- package/out/renderer/assets/FP7KDXVC-DKVnH-En.js +221 -0
- package/out/renderer/assets/FT5I3RHX-hlTJy7Nw.js +243 -0
- package/out/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
- package/out/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
- package/out/renderer/assets/GY35JXOZ-cSi0MdIc.js +168 -0
- package/out/renderer/assets/H5EEJPP2-bpYW0xE8.js +353 -0
- package/out/renderer/assets/HWDLEDTA-uLGgs5fE.js +982 -0
- package/out/renderer/assets/{InfoIcon-DesJ60KC.js → InfoIcon-DI4teJbi.js} +1 -1
- package/out/renderer/assets/JZWSX6AR-B0pkfB2b.js +67 -0
- package/out/renderer/assets/KQOEJWJY-EQFQbIDt.js +84 -0
- package/out/renderer/assets/KS3BB3KE-DclWHpbY.js +138 -0
- package/out/renderer/assets/KXJRRZHI-CHoCRoQ4.js +502 -0
- package/out/renderer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/out/renderer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/out/renderer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/out/renderer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/out/renderer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/out/renderer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/out/renderer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/out/renderer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/out/renderer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/out/renderer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/out/renderer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/out/renderer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/out/renderer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/out/renderer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/out/renderer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/out/renderer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/out/renderer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/out/renderer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/out/renderer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/out/renderer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/out/renderer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/out/renderer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/out/renderer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/out/renderer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/out/renderer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/out/renderer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/out/renderer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/out/renderer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/out/renderer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/out/renderer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/out/renderer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/out/renderer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/out/renderer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/out/renderer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/out/renderer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/out/renderer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/out/renderer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/out/renderer/assets/MFVI5XKI-TmPyVySZ.js +10 -0
- package/out/renderer/assets/MWY2J62P-BlVjis68.js +1102 -0
- package/out/renderer/assets/MXGNCBL2-HvKcixVr.js +216 -0
- package/out/renderer/assets/N6DAJLIZ-B0JHSPS3.js +120 -0
- package/out/renderer/assets/NU5M23IW-CWgVJ5o_.js +116 -0
- package/out/renderer/assets/NV4XNBIS-uOSoaYKk.js +1221 -0
- package/out/renderer/assets/OGLU4SIR-CiNpshB1.js +289 -0
- package/out/renderer/assets/OUNS5N76-C6p0zhvm.js +1064 -0
- package/out/renderer/assets/{Onboarding-B2h7iatR.js → Onboarding-Ct6-CF4Z.js} +4 -4
- package/out/renderer/assets/PU4ISKXV-BQc-2oYa.js +515 -0
- package/out/renderer/assets/PUZGS23X-Bf89SCAj.js +21 -0
- package/out/renderer/assets/{ProviderHeader-BvigqAWX.js → ProviderHeader-Buje398H.js} +2 -2
- package/out/renderer/assets/Q3IYVLG5-DbP4qs2C.js +500 -0
- package/out/renderer/assets/QYHQDLKZ-dANs6SeT.js +983 -0
- package/out/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
- package/out/renderer/assets/RZSVICHU-CeuX_9H4.js +263 -0
- package/out/renderer/assets/{SettingsPage-CBonY1bv.js → SettingsPage-CLpPKXG1.js} +978 -848
- package/out/renderer/assets/UEXXS2NB-Bmbum3yG.js +25 -0
- package/out/renderer/assets/UHTQJXKL-C2OuiQBx.js +134 -0
- package/out/renderer/assets/URA2L2QI-DJ2BF8fn.js +201 -0
- package/out/renderer/assets/UXCHDUKG-B6wMZRAn.js +173 -0
- package/out/renderer/assets/{UsageDashboard-DFgckoeT.js → UsageDashboard-ORnsHGxF.js} +9130 -6449
- package/out/renderer/assets/VKNV3BUX-BMK4lviM.js +277 -0
- package/out/renderer/assets/VMV7XPHP-CzHnUaWh.js +127 -0
- package/out/renderer/assets/WEVWDWVA-BYWYeLxq.js +57 -0
- package/out/renderer/assets/XRRJ35LF-DaeQ2kbN.js +119 -0
- package/out/renderer/assets/YFKBLVVN-DsXlM7HO.js +990 -0
- package/out/renderer/assets/YHRE5QGZ-nB9z3NP1.js +697 -0
- package/out/renderer/assets/ZF3OVT4B-Ctn5OOBd.js +420 -0
- package/out/renderer/assets/{index-BFhJk8dv.js → index-BCaQe4ny.js} +2 -2
- package/out/renderer/assets/{index-Dk4pOCFt.js → index-BD-JYQGT.js} +5 -5
- package/out/renderer/assets/{index-bNFXvWqr.js → index-BGR4ZXWZ.js} +2 -2
- package/out/renderer/assets/{index-BP0q4HOE.js → index-BZBhErKV.js} +2 -2
- package/out/renderer/assets/{index-x_iC3w5N.js → index-BcWszklu.js} +1 -1
- package/out/renderer/assets/{index-C8TOzJWw.js → index-BpNNugm2.js} +4 -4
- package/out/renderer/assets/{index-uAJ0Zw9K.js → index-BrgyIQaN.js} +2 -2
- package/out/renderer/assets/{index-CuQvDzzr.js → index-Bt1dN7k_.js} +1 -1
- package/out/renderer/assets/{index-BZmjwrvJ.js → index-Bxu6rqm3.js} +1 -1
- package/out/renderer/assets/{index-tNlkrDYM.js → index-C6mXHxX3.js} +1 -1
- package/out/renderer/assets/{index-Z71oMk_m.js → index-CCbq90uE.js} +1 -1
- package/out/renderer/assets/{index-DE2koGci.js → index-CCm3UXZP.js} +2 -2
- package/out/renderer/assets/{index-DKNYbwcH.js → index-CNkiGtsK.js} +3 -3
- package/out/renderer/assets/{index-D_o1aMFn.css → index-CWfnJXNI.css} +130 -0
- package/out/renderer/assets/{index-47ZLfCU8.js → index-Cc-He418.js} +72999 -82151
- package/out/renderer/assets/{index-Dx6kKrXY.js → index-Crdzxx6k.js} +19 -15
- package/out/renderer/assets/{index-B_PkNLqT.js → index-D30k3y98.js} +1 -1
- package/out/renderer/assets/{index-CasrGDb0.js → index-DAWoHfjM.js} +2 -2
- package/out/renderer/assets/{index-D-rE7YVD.js → index-DG5AIC6J.js} +3 -3
- package/out/renderer/assets/{index-BzOM6AUj.js → index-DSBgCNMv.js} +2 -2
- package/out/renderer/assets/{index-C1I2Idqy.js → index-DeRKeskE.js} +5 -5
- package/out/renderer/assets/{index-Bh4xfAPL.js → index-DgQEgdew.js} +2 -2
- package/out/renderer/assets/{index-BKmr7UTW.js → index-Dgdp4i2K.js} +1 -1
- package/out/renderer/assets/{index-Bbv79qeB.js → index-DnNK6R2g.js} +2 -2
- package/out/renderer/assets/{index-CiIr--kg.js → index-DrNutodm.js} +2 -2
- package/out/renderer/assets/{index-B2jZTTYL.js → index-FS3mY8Ct.js} +1 -1
- package/out/renderer/assets/{index-DvSWnCZD.js → index-KId2jLzt.js} +2 -2
- package/out/renderer/assets/{index-DWZF-uSf.js → index-PyRCX6hq.js} +5 -5
- package/out/renderer/assets/{index-J-dLn6uq.js → index-U8nE80jx.js} +2 -2
- package/out/renderer/assets/{index-cO9XeYPQ.js → index-Vw8jKJU_.js} +5 -5
- package/out/renderer/assets/{index-B9bf5T9j.js → index-_a6zbU-0.js} +1 -1
- package/out/renderer/assets/{index-CenYyetH.js → index-dsqlqRSG.js} +5 -5
- package/out/renderer/assets/{index-D4dhIRp1.js → index-rQL1hwaP.js} +5 -5
- package/out/renderer/assets/{jsx-dev-runtime-CtvYhMha.js → jsx-dev-runtime-Bwt8d4vP.js} +1 -1
- package/out/renderer/index.html +2 -2
- package/out/resources/prompts/system-prompt.hbs +11 -0
- package/out/resources/skills/extension-creator/SKILL.md +20 -1
- package/out/resources/skills/extension-creator/references/event-types.md +5 -3
- package/out/resources/skills/extension-creator/references/extension-interface.md +62 -1
- package/out/resources/skills/extension-creator/references/external-agent-providers.md +90 -0
- package/out/runner.js +2016 -615
- package/package.json +3 -3
- package/out/renderer/assets/abnfDiagram-N423BO3Z-DV7pjob8.js +0 -118
- package/out/renderer/assets/arc-C2NyJjKR.js +0 -131
- package/out/renderer/assets/architectureDiagram-T3A2C74G-BmG8PHmc.js +0 -8829
- package/out/renderer/assets/band-zXq5o_Ib.js +0 -77
- package/out/renderer/assets/blockDiagram-VBNYF7ZC-CJndPtzf.js +0 -3824
- package/out/renderer/assets/c4Diagram-5PPSVZJV-B9DY2Hnr.js +0 -2482
- package/out/renderer/assets/channel-CCPkBLnh.js +0 -7
- package/out/renderer/assets/chunk-2GRJ4B5K-Bt46bDfT.js +0 -116
- package/out/renderer/assets/chunk-2Q5K7J3B-DkQwfKC2.js +0 -19
- package/out/renderer/assets/chunk-5RXB4S5H-CFNEWvlR.js +0 -1988
- package/out/renderer/assets/chunk-5VM5RSS4-BNeZg_6d.js +0 -19
- package/out/renderer/assets/chunk-6Q2QTUOP-BU5gT8Us.js +0 -860
- package/out/renderer/assets/chunk-GF5L2VYU-BNML5JwJ.js +0 -2026
- package/out/renderer/assets/chunk-JWPE2WC7-Dvih3ku3.js +0 -16
- package/out/renderer/assets/chunk-KBJHAD2P-CMgAbRkQ.js +0 -24
- package/out/renderer/assets/chunk-RYQCIY6F-CAJ6Qldz.js +0 -474
- package/out/renderer/assets/chunk-XXDRQBXY-BDZJ-WFV.js +0 -13
- package/out/renderer/assets/classDiagram-JCYQIIEL-BJCilkUQ.js +0 -23
- package/out/renderer/assets/classDiagram-v2-OCEON4UE-BJCilkUQ.js +0 -23
- package/out/renderer/assets/cose-bilkent-JH36ORCC-D6MsqBP5.js +0 -4942
- package/out/renderer/assets/cynefin-VYW2F7L2-3kPlVPG0.js +0 -32093
- package/out/renderer/assets/cynefinDiagram-MW4NZA55-6BlkJqWN.js +0 -453
- package/out/renderer/assets/cytoscape.esm-Bx_1tVW-.js +0 -30332
- package/out/renderer/assets/dagre-VZM6K2ZE-Chj1W0as.js +0 -522
- package/out/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
- package/out/renderer/assets/diagram-7IWD3JNH-CHFj7vIm.js +0 -488
- package/out/renderer/assets/diagram-B4RE2ZJO-BqOMO30m.js +0 -632
- package/out/renderer/assets/diagram-LBJQPF4R-CkiuQM5K.js +0 -212
- package/out/renderer/assets/diagram-Q27KOJAE-WVbpb4Iq.js +0 -857
- package/out/renderer/assets/diagram-UB23O5K3-B9Q0wQI3.js +0 -311
- package/out/renderer/assets/ebnfDiagram-BXEA7PRR-BUhf1ZxU.js +0 -138
- package/out/renderer/assets/erDiagram-JOGREHBK-DGxWkssI.js +0 -1238
- package/out/renderer/assets/flowDiagram-UKHOOZJN-D3ul5aGG.js +0 -2348
- package/out/renderer/assets/ganttDiagram-PKOTCBZU-BD3VbhAZ.js +0 -2782
- package/out/renderer/assets/gitGraphDiagram-DS77QQ5N-x-7NMw7v.js +0 -1373
- package/out/renderer/assets/graph-BDbmSegI.js +0 -1308
- package/out/renderer/assets/infoDiagram-6WML65LV-BMwbA6CU.js +0 -31
- package/out/renderer/assets/init-CTO7spbL.js +0 -35
- package/out/renderer/assets/ishikawaDiagram-WSZJBQD7-Bx90Gz0s.js +0 -967
- package/out/renderer/assets/journeyDiagram-NVQOT4AX-Dh4pUAU5.js +0 -1255
- package/out/renderer/assets/kanban-definition-27J2QSJJ-BZ_lX-ko.js +0 -1052
- package/out/renderer/assets/katex-oVG3DVWa.js +0 -14499
- package/out/renderer/assets/layout-oaOUFeBM.js +0 -2326
- package/out/renderer/assets/linear-B2eGZpM_.js +0 -361
- package/out/renderer/assets/map-BijQCI9U.js +0 -299
- package/out/renderer/assets/mindmap-definition-FAOFIHXS-BeWZh5qg.js +0 -1153
- package/out/renderer/assets/ordinal-BD3Y6v77.js +0 -77
- package/out/renderer/assets/pegDiagram-VL7TDLO6-BA6NzzN6.js +0 -126
- package/out/renderer/assets/pieDiagram-7S7Q4E2Y-KJmT5t-P.js +0 -316
- package/out/renderer/assets/quadrantDiagram-CIZ2JOQS-BdFz_bQU.js +0 -1343
- package/out/renderer/assets/railroadDiagram-AXF67PYL-CbH2ZZ1S.js +0 -92
- package/out/renderer/assets/requirementDiagram-LRYGKXZP-BZXG5Vgf.js +0 -1204
- package/out/renderer/assets/sankeyDiagram-W5VNT64P-CV1Upv22.js +0 -1274
- package/out/renderer/assets/sequenceDiagram-SI44F4Z6-Csbi3ivi.js +0 -4514
- package/out/renderer/assets/sizeCapture-X5ZJPWSS-CaN4k1d3.js +0 -62
- package/out/renderer/assets/stateDiagram-OKZ733FA-DSo1KeOQ.js +0 -452
- package/out/renderer/assets/stateDiagram-v2-UEYNNEHI-BhXw89HT.js +0 -22
- package/out/renderer/assets/swimlanes-SLNWSIFB-p3GZ-wkU.js +0 -8557
- package/out/renderer/assets/swimlanesDiagram-ULZ7WXOC-DGBdyiqy.js +0 -20
- package/out/renderer/assets/time-4LaKa9ym.js +0 -985
- package/out/renderer/assets/timeline-definition-Z64GVDOM-DfY8hG5p.js +0 -1596
- package/out/renderer/assets/vennDiagram-T6HMQDX7-wp87GaTi.js +0 -2515
- package/out/renderer/assets/wardleyDiagram-T6FBY63Y-DNrC2vOI.js +0 -975
- package/out/renderer/assets/xychartDiagram-ELKLHX3M-Bn8J2SKt.js +0 -1943
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as compilerRuntimeExports,
|
|
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-
|
|
3
|
-
import { I as InfoIcon } from "./InfoIcon-
|
|
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
|
-
|
|
3148
|
-
|
|
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-[
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
2
|
-
import { s as styleTags, e as tags, b as LanguageSupport, g as ifNotIn, h as completeFromList, L as LRLanguage, i as indentNodeProp,
|
|
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-
|
|
2
|
-
import { defineCSSCompletionSource } from "./index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { html } from "./index-
|
|
3
|
-
import { javascriptLanguage } from "./index-
|
|
4
|
-
import { L as LRParser, a as LocalTokenGroup } from "./index-
|
|
5
|
-
import "./index-
|
|
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-
|
|
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,
|
|
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-
|
|
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-
|
|
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,
|
|
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-
|
|
2
|
-
import { E as ExternalTokenizer, L as LRParser } from "./index-
|
|
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-
|
|
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-
|
|
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,
|
|
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,
|
|
2
|
-
import { html, htmlCompletionSource } from "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
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-
|
|
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,
|
|
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-
|
|
2
|
-
import { html } from "./index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer, a as LocalTokenGroup } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import { html } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
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-
|
|
2
|
-
import { html } from "./index-
|
|
3
|
-
import { L as LRParser, E as ExternalTokenizer } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
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;
|
package/out/renderer/index.html
CHANGED
|
@@ -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-
|
|
24
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
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
|
|
@@ -27,6 +27,8 @@ Every Extension interface method dispatches a specific event type. All handlers
|
|
|
27
27
|
| `onAgentFinished` | `AgentFinishedEvent` | — |
|
|
28
28
|
| `onAgentStepStarted` | `AgentStepStartedEvent` | — |
|
|
29
29
|
| `onAgentStepFinished` | `AgentStepFinishedEvent` | — |
|
|
30
|
+
| `onTransformMessages` | `TransformMessagesEvent` | — |
|
|
31
|
+
| `onApplyCacheControl` | `ApplyCacheControlEvent` | — |
|
|
30
32
|
| `onOptimizeMessages` | `OptimizeMessagesEvent` | — |
|
|
31
33
|
| `onImportantReminders` | `ImportantRemindersEvent` | — |
|
|
32
34
|
| `onInterrupted` | `InterruptedEvent` | ✅ Yes |
|
|
@@ -248,7 +250,7 @@ interface AgentStepStartedEvent {
|
|
|
248
250
|
|
|
249
251
|
### AgentStepFinishedEvent
|
|
250
252
|
|
|
251
|
-
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.
|
|
252
254
|
|
|
253
255
|
```typescript
|
|
254
256
|
interface AgentStepFinishedEvent {
|
|
@@ -308,7 +310,7 @@ interface InterruptedEvent {
|
|
|
308
310
|
|
|
309
311
|
### ToolApprovalEvent (Can Block)
|
|
310
312
|
|
|
311
|
-
Dispatched when a tool
|
|
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).
|
|
312
314
|
|
|
313
315
|
```typescript
|
|
314
316
|
interface ToolApprovalEvent {
|
|
@@ -437,7 +439,7 @@ interface ResponseCompletedEvent {
|
|
|
437
439
|
|
|
438
440
|
### HandleApprovalEvent (Can Block)
|
|
439
441
|
|
|
440
|
-
Dispatched
|
|
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.
|
|
441
443
|
|
|
442
444
|
```typescript
|
|
443
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
|
|
|
@@ -157,9 +159,15 @@ interface Extension {
|
|
|
157
159
|
/** Called after each agent step completes. */
|
|
158
160
|
onAgentStepFinished?(event: AgentStepFinishedEvent, context: ExtensionContext): Promise<void | Partial<AgentStepFinishedEvent>>;
|
|
159
161
|
|
|
160
|
-
/**
|
|
162
|
+
/** Override default Aider/subagent transformations. Receives originalMessages and transformedMessages; transformations are not reapplied. */
|
|
163
|
+
onTransformMessages?(event: TransformMessagesEvent, context: ExtensionContext): Promise<void | Partial<TransformMessagesEvent>>;
|
|
164
|
+
|
|
165
|
+
/** Override optional optimizations. originalMessages is the transformation output, not raw stored context. */
|
|
161
166
|
onOptimizeMessages?(event: OptimizeMessagesEvent, context: ExtensionContext): Promise<void | Partial<OptimizeMessagesEvent>>;
|
|
162
167
|
|
|
168
|
+
/** Override final cache annotation. Receives originalMessages, messages, and optional cacheControl, even without a default policy. */
|
|
169
|
+
onApplyCacheControl?(event: ApplyCacheControlEvent, context: ExtensionContext): Promise<void | Partial<ApplyCacheControlEvent>>;
|
|
170
|
+
|
|
163
171
|
/** Called when important reminders are added to the user message. Modify `event.remindersContent`. */
|
|
164
172
|
onImportantReminders?(event: ImportantRemindersEvent, context: ExtensionContext): Promise<void | Partial<ImportantRemindersEvent>>;
|
|
165
173
|
}
|
|
@@ -512,6 +520,9 @@ interface TaskContext {
|
|
|
512
520
|
/** Get files modified during the current task's execution (compares against main branch). */
|
|
513
521
|
getUpdatedFiles(): Promise<UpdatedFile[]>;
|
|
514
522
|
|
|
523
|
+
/** Get a unified diff. Pass the entry's previousPath for rename-aware diffs. */
|
|
524
|
+
getUpdatedFileDiff(filePath: string, commitHash?: string, previousPath?: string): Promise<string>;
|
|
525
|
+
|
|
515
526
|
/** Get the cached repository map string summarizing the codebase structure. */
|
|
516
527
|
getRepoMap(): string;
|
|
517
528
|
|
|
@@ -1204,6 +1215,56 @@ interface ProviderDefinition {
|
|
|
1204
1215
|
}
|
|
1205
1216
|
```
|
|
1206
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
|
+
|
|
1207
1268
|
### Event Payload Types
|
|
1208
1269
|
|
|
1209
1270
|
<details>
|