autohand-cli 0.9.0 → 0.9.1
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/README.md +20 -2
- package/dist/{AgentRegistry-XPWSVO3Q.js → AgentRegistry-GOV7FN2O.js} +2 -2
- package/dist/AgentRegistry-J2C6JBZ3.cjs +10 -0
- package/dist/CommunitySkillsCache-22BB3J6H.cjs +8 -0
- package/dist/{CommunitySkillsCache-ZEQWP6YM.js → CommunitySkillsCache-ZACDPD4J.js} +2 -2
- package/dist/{HookManager-CWLTFKWO.js → HookManager-2S6AHOC3.js} +1 -1
- package/dist/{HookManager-TMAJQU4S.cjs → HookManager-TVEQI5ZU.cjs} +2 -2
- package/dist/{ImportWizard-QBKQEXDW.js → ImportWizard-AEBMAKXE.js} +4 -4
- package/dist/{ImportWizard-MQXEED2U.cjs → ImportWizard-AF2XL6DS.cjs} +13 -13
- package/dist/LearnAdvisor-KKEQ5QCV.js +9 -0
- package/dist/LearnAdvisor-Q7RAYLPF.cjs +9 -0
- package/dist/MemoryManager-PMNAEZMB.cjs +8 -0
- package/dist/{MemoryManager-WJMLPWGU.js → MemoryManager-QZRLTUB5.js} +2 -2
- package/dist/NVIDIAProvider-C3FWQOBZ.cjs +14 -0
- package/dist/{NVIDIAProvider-2HR737UE.js → NVIDIAProvider-SJPY3ONR.js} +1 -1
- package/dist/{PermissionManager-KMYILJ4Z.js → PermissionManager-MT7KBNNR.js} +3 -3
- package/dist/PermissionManager-URCNP5EC.cjs +11 -0
- package/dist/ProviderFactory-56N3ECE4.cjs +12 -0
- package/dist/{ProviderFactory-HFPRVQ25.js → ProviderFactory-RB4RVAF6.js} +3 -2
- package/dist/SessionManager-2IZGWASQ.cjs +10 -0
- package/dist/{SessionManager-PNBTJJTQ.js → SessionManager-554PHVPC.js} +2 -2
- package/dist/SkillsRegistry-GMRVONOQ.cjs +9 -0
- package/dist/{SkillsRegistry-4RRD5GMX.js → SkillsRegistry-NHHMIUYJ.js} +2 -2
- package/dist/SubAgent-4GOR2FIJ.js +13 -0
- package/dist/SubAgent-ZJMDH4FI.cjs +13 -0
- package/dist/{SyncApiClient-LRPFNCKJ.js → SyncApiClient-G3FM65IV.js} +1 -1
- package/dist/SyncApiClient-ODBDECOG.cjs +11 -0
- package/dist/{about-BW3PDZUU.js → about-3USFSGOH.js} +5 -4
- package/dist/about-QR52U5DD.cjs +15 -0
- package/dist/{acp-VHEL7BOW.js → acp-5Y2W6OZP.js} +129 -90
- package/dist/{acp-EOETGAHC.cjs → acp-GSYE75OB.cjs} +135 -96
- package/dist/actionExecutor-KHUU3Z3Q.cjs +28 -0
- package/dist/{actionExecutor-33I47NZS.js → actionExecutor-PLQJZLZV.js} +12 -8
- package/dist/add-dir-BTAD5OZS.cjs +11 -0
- package/dist/{add-dir-VFX7QT4E.js → add-dir-HCERJDBR.js} +2 -2
- package/dist/agent-B3EVT7NN.cjs +126 -0
- package/dist/agent-SATQ3WZ3.js +126 -0
- package/dist/agents-44CRJGM7.cjs +18 -0
- package/dist/agents-NN4ZAJ7R.js +18 -0
- package/dist/agents-new-6D6G4QS6.cjs +17 -0
- package/dist/agents-new-7GAQ25EK.js +17 -0
- package/dist/{autoSkill-EFMK6WU6.js → autoSkill-66PKCYTW.js} +2 -2
- package/dist/autoSkill-VQLGBELN.cjs +20 -0
- package/dist/automode-45DWV4TN.cjs +10 -0
- package/dist/{automode-BMYSRM34.js → automode-BUF3VGXU.js} +2 -2
- package/dist/chrome-Q2U73HZB.cjs +50 -0
- package/dist/chrome-Q54OALOK.cjs +21 -0
- package/dist/{chrome-NHJ44WUN.js → chrome-Y3T7EIHG.js} +2 -2
- package/dist/chrome-ZNJ46OYW.js +21 -0
- package/dist/{chunk-D2OSPLYC.cjs → chunk-22SCR3EV.cjs} +2 -2
- package/dist/chunk-26G7YGOW.js +367 -0
- package/dist/{chunk-75EDROHL.cjs → chunk-2ESQR35E.cjs} +10 -10
- package/dist/{chunk-HKYZSUQ5.js → chunk-2IW5YFJ4.js} +4 -4
- package/dist/{chunk-JP3YHTQ2.cjs → chunk-3ICORF7M.cjs} +4 -4
- package/dist/{chunk-4256YRCO.cjs → chunk-3UC6DMFI.cjs} +30 -17
- package/dist/{chunk-6GUODJKM.cjs → chunk-3UHRCHKB.cjs} +23 -23
- package/dist/{chunk-HXJEGMGB.js → chunk-3ZOOH44N.js} +2 -2
- package/dist/{chunk-7RFJB75Y.js → chunk-44ZWOBTI.js} +9 -9
- package/dist/{chunk-CCVMREXI.js → chunk-4567QNRB.js} +32 -8
- package/dist/chunk-45CHNQM6.cjs +517 -0
- package/dist/{chunk-6NVAK6CK.js → chunk-4E7SHPNQ.js} +2 -2
- package/dist/{chunk-XGMI6IYB.cjs → chunk-4XFHP2SN.cjs} +7 -7
- package/dist/chunk-4XVLNOFA.js +360 -0
- package/dist/{chunk-D6GZBSOX.js → chunk-575PXZX7.js} +1 -1
- package/dist/{chunk-HJIXWGQZ.js → chunk-5A7ZL64N.js} +1 -1
- package/dist/{chunk-ROLA6EFO.cjs → chunk-5GCQ5UMV.cjs} +14 -14
- package/dist/{chunk-3DDL2E55.cjs → chunk-5SFV2NCY.cjs} +10 -10
- package/dist/chunk-5ZNYX4VH.cjs +71 -0
- package/dist/{chunk-PDHT7LQS.cjs → chunk-63ANVAOJ.cjs} +3 -3
- package/dist/{chunk-GWO66KBI.js → chunk-65LRPW5W.js} +1 -1
- package/dist/{chunk-IAGCRVJ3.js → chunk-6AYJCDTA.js} +14 -9
- package/dist/{chunk-A7HHCIDQ.js → chunk-6HF6XSCC.js} +2 -2
- package/dist/{chunk-47PHDKNW.cjs → chunk-6JWCGQJU.cjs} +6 -6
- package/dist/chunk-6OECOAK5.cjs +360 -0
- package/dist/{chunk-RBHANOYY.js → chunk-7DJJGKM6.js} +47 -3
- package/dist/{chunk-37M5UM6I.js → chunk-7IRQ7JEH.js} +1 -1
- package/dist/chunk-7MY4JHER.js +27 -0
- package/dist/{chunk-ZR46OJNZ.js → chunk-7PJKTSRN.js} +3 -3
- package/dist/{chunk-AC7DZ6SK.cjs → chunk-7PT646AL.cjs} +3 -3
- package/dist/{chunk-TKKN34TV.js → chunk-7WAUCLLQ.js} +3 -3
- package/dist/{chunk-DPSIGY6L.cjs → chunk-7XTUL7ZD.cjs} +9 -9
- package/dist/{chunk-GBMDFWJX.cjs → chunk-AE2ILW25.cjs} +13 -13
- package/dist/{chunk-BQ22N3TX.cjs → chunk-AOKXYGBQ.cjs} +27 -22
- package/dist/{chunk-REMGR23V.cjs → chunk-AQ5PVHOC.cjs} +7 -2
- package/dist/{chunk-AUYSIEVV.cjs → chunk-AZ47LKD5.cjs} +3 -3
- package/dist/chunk-B76FJKEJ.cjs +184 -0
- package/dist/{chunk-XV2HXRHX.js → chunk-BP37FVBM.js} +3 -3
- package/dist/{chunk-JIMSII7R.js → chunk-C46B72VK.js} +57 -10
- package/dist/{chunk-L4F7SUYL.js → chunk-C5QIQQ37.js} +3 -3
- package/dist/{chunk-AUFNACED.js → chunk-CCIDL4SA.js} +7094 -6126
- package/dist/{chunk-OV3PVUYN.js → chunk-CECH6QQP.js} +11 -11
- package/dist/{chunk-CH2J4PVE.cjs → chunk-CK4HAHVY.cjs} +13 -13
- package/dist/{chunk-Q2IL4DDI.cjs → chunk-CO2AADYU.cjs} +19 -14
- package/dist/{chunk-7JLT2VNW.cjs → chunk-CRTCZ4WL.cjs} +7533 -6565
- package/dist/{chunk-5JFTY3VU.js → chunk-CSTUTDTH.js} +2 -1
- package/dist/{chunk-DIZTWFVR.cjs → chunk-D546G7DA.cjs} +209 -55
- package/dist/{chunk-7HPWMALN.js → chunk-DGBPWODD.js} +1 -1
- package/dist/{chunk-RBZ7AFX7.cjs → chunk-DHUQZ53B.cjs} +2 -2
- package/dist/{chunk-U4C3HW6P.js → chunk-DNSD7DVJ.js} +2 -2
- package/dist/{chunk-SOLBYSLY.cjs → chunk-DSSCERHI.cjs} +2 -2
- package/dist/{chunk-OPNI6O7F.cjs → chunk-EA2MS25U.cjs} +4 -4
- package/dist/{chunk-E46DJH5S.js → chunk-EEHWALXA.js} +94 -3
- package/dist/{chunk-CFFE4VA3.js → chunk-EYHKL4QC.js} +1 -1
- package/dist/{chunk-FGT6KK6T.js → chunk-FBQJZKFX.js} +3 -3
- package/dist/{chunk-I24CWKKK.js → chunk-FFHSCM5M.js} +3 -3
- package/dist/{chunk-TXPSTCG7.cjs → chunk-GAOPJ5S3.cjs} +8 -8
- package/dist/{chunk-ARBEHFCG.js → chunk-GSDV75A5.js} +1 -1
- package/dist/{chunk-Z3XSSF7B.js → chunk-H426KOGY.js} +1 -1
- package/dist/{chunk-WRTXCQ3V.cjs → chunk-HC2Q6A3E.cjs} +858 -182
- package/dist/{chunk-IGMPWJ2I.cjs → chunk-HG3ZASBH.cjs} +8 -8
- package/dist/chunk-HK5A54AV.cjs +280 -0
- package/dist/{chunk-2HOLOHVK.js → chunk-HSWWM6AM.js} +136 -15
- package/dist/chunk-HTU4W3GB.js +183 -0
- package/dist/{chunk-5CMYEM3R.cjs → chunk-HVCIB4SW.cjs} +3 -3
- package/dist/chunk-HXHE2KAO.js +385 -0
- package/dist/{chunk-NMQ47RCG.js → chunk-HZWU6IO3.js} +5 -2
- package/dist/{chunk-ZPD2AO3U.js → chunk-I2ZK3AOD.js} +2 -2
- package/dist/{chunk-3UT7R3XV.js → chunk-IEPLQ47J.js} +61 -5
- package/dist/{chunk-3PXKRVCW.js → chunk-JB3JCYBJ.js} +7 -2
- package/dist/chunk-JCUHCH37.cjs +247 -0
- package/dist/{chunk-VBOFPU5M.cjs → chunk-JM3ZTQUK.cjs} +13 -9
- package/dist/{chunk-WZV6UVPY.js → chunk-JMJRFSNJ.js} +1 -1
- package/dist/{chunk-QKP772OZ.js → chunk-JPFRI4L4.js} +756 -80
- package/dist/{chunk-MOJ7ADW4.cjs → chunk-JV5HVCHU.cjs} +2 -2
- package/dist/{chunk-LN7D3EJZ.js → chunk-KA2U6MY2.js} +4 -3
- package/dist/{chunk-E26KKI46.cjs → chunk-KASXKDF2.cjs} +3 -1
- package/dist/chunk-KJ26T7GM.cjs +367 -0
- package/dist/chunk-KM7R5YPS.cjs +385 -0
- package/dist/{chunk-5F6ZKSHO.js → chunk-KMP6Y3LJ.js} +1 -1
- package/dist/chunk-KWXGDSYT.js +184 -0
- package/dist/{chunk-LDJQ5QHG.cjs → chunk-L46OUKW5.cjs} +15 -15
- package/dist/{chunk-Z4LIPMPM.js → chunk-L6OH44HL.js} +13 -9
- package/dist/chunk-LANGD5CO.js +280 -0
- package/dist/{chunk-CBFH2J3O.js → chunk-LEZEWKPA.js} +150 -7
- package/dist/{chunk-FQAVGSPW.js → chunk-M5DK524Z.js} +2 -2
- package/dist/{chunk-7LWQCE4Y.cjs → chunk-M7B7RRBK.cjs} +72 -25
- package/dist/{chunk-BWF4VDYE.js → chunk-MANJ67D3.js} +2 -2
- package/dist/{chunk-PHJO5YAL.cjs → chunk-MGNXABSU.cjs} +9 -9
- package/dist/{chunk-62RTC3XX.js → chunk-MMKZSJUN.js} +1 -1
- package/dist/{chunk-3KLSNNRW.cjs → chunk-MQQH4XQH.cjs} +4 -4
- package/dist/{chunk-HS4USDND.cjs → chunk-MZN6JBRZ.cjs} +2 -2
- package/dist/{chunk-AT7OWLY5.js → chunk-NB6M6ESM.js} +1 -1
- package/dist/{chunk-TQ33WBY5.cjs → chunk-NHWHEW7M.cjs} +2 -1
- package/dist/chunk-NQZH5CR2.cjs +468 -0
- package/dist/{chunk-2CGE7ZV3.cjs → chunk-NV6LCD2I.cjs} +119 -28
- package/dist/chunk-NVATU4V6.cjs +44 -0
- package/dist/{chunk-DLP436GI.js → chunk-NZ3ZWLUW.js} +2 -2
- package/dist/{chunk-IEXKKKOF.cjs → chunk-NZ7GCK7Y.cjs} +23 -23
- package/dist/{chunk-MQESBFBZ.cjs → chunk-NZQFKXM3.cjs} +21 -20
- package/dist/{chunk-QQ7PANOP.js → chunk-O5GI6SR3.js} +1 -1
- package/dist/{chunk-J5ADZN6V.cjs → chunk-OCATAKXV.cjs} +20 -20
- package/dist/{chunk-JYKPWK5O.js → chunk-OIGYWOL6.js} +1 -1
- package/dist/{chunk-O6TQP7U7.cjs → chunk-ONVYXTUT.cjs} +3 -3
- package/dist/{chunk-MPULXVC4.cjs → chunk-OV3T5MUH.cjs} +11 -11
- package/dist/{chunk-DMRXF5DU.js → chunk-P4FUTSVK.js} +3 -3
- package/dist/{chunk-MXVIDIC6.cjs → chunk-P6SLT2F4.cjs} +2 -2
- package/dist/{chunk-BL2UC7HC.js → chunk-PGFLPURU.js} +1 -1
- package/dist/{chunk-CWINVFRI.cjs → chunk-PIXQ2AVM.cjs} +17 -17
- package/dist/{chunk-MO4KP6XS.cjs → chunk-PNIAIOMZ.cjs} +5 -5
- package/dist/{chunk-HQWQZML5.cjs → chunk-PQBYFEBL.cjs} +2 -2
- package/dist/{chunk-UGFVM77J.cjs → chunk-PSAH4ZQB.cjs} +2 -2
- package/dist/{chunk-Y3M2DABP.js → chunk-PTTZI4QZ.js} +4 -4
- package/dist/{chunk-Q6AC3PHY.cjs → chunk-PY73W5MQ.cjs} +4 -4
- package/dist/{chunk-B5CGDNMR.js → chunk-PZZMIYII.js} +3 -3
- package/dist/{chunk-VRMZO6TB.js → chunk-Q3BS6FPM.js} +7 -6
- package/dist/chunk-QBYGMMDD.js +517 -0
- package/dist/{chunk-3LJJG5YY.cjs → chunk-QLZOMZO5.cjs} +4 -3
- package/dist/{chunk-3S563FNF.cjs → chunk-QQ64HEHP.cjs} +31 -31
- package/dist/{chunk-TBOLJDUG.js → chunk-QRQF3556.js} +12 -7
- package/dist/{chunk-ZZ63NW7A.cjs → chunk-RBXBH6EB.cjs} +17 -17
- package/dist/{chunk-PUD76XQT.cjs → chunk-RFUKZIJF.cjs} +5 -5
- package/dist/chunk-RS2E32YB.js +71 -0
- package/dist/{chunk-7MU7LWF3.cjs → chunk-S5JNQIGL.cjs} +5 -5
- package/dist/{chunk-BFQDQRDE.js → chunk-S5QKRA2V.js} +2 -2
- package/dist/{chunk-IKUMVBCW.cjs → chunk-SD3NTC7D.cjs} +48 -4
- package/dist/{chunk-PQLKJCIE.js → chunk-SDLY4X3G.js} +2 -2
- package/dist/{chunk-VKBIE6I6.js → chunk-SFFEKZGC.js} +2 -2
- package/dist/{chunk-TWQDAUZU.js → chunk-SHRLFX6F.js} +3 -1
- package/dist/{chunk-UEIXJG45.js → chunk-SNDDZG5H.js} +88 -72
- package/dist/{chunk-AOKCI722.cjs → chunk-SOVR7S3T.cjs} +2 -2
- package/dist/{chunk-M4KNC5BQ.js → chunk-SPQ7QIQ6.js} +1 -1
- package/dist/{chunk-QCHIDZBA.js → chunk-SRMGWMQO.js} +1 -1
- package/dist/{chunk-ZHJ7JGME.cjs → chunk-SVVP4UUZ.cjs} +11 -11
- package/dist/{chunk-CHI52KFR.cjs → chunk-SY2P3Z5W.cjs} +150 -7
- package/dist/chunk-SZD45IDG.js +468 -0
- package/dist/{chunk-VGEV44V2.cjs → chunk-TE4SYTWR.cjs} +189 -28
- package/dist/{chunk-YV63VW4K.js → chunk-TR6NECEZ.js} +1 -1
- package/dist/{chunk-GZ6DV2UG.js → chunk-TYBPTKFT.js} +1 -1
- package/dist/{chunk-5VHP6HDQ.js → chunk-U2QUMKCB.js} +1 -1
- package/dist/{chunk-6HH236FV.cjs → chunk-U6PLSPMD.cjs} +2 -2
- package/dist/{chunk-EZJHLOWP.js → chunk-UWZ4G3SQ.js} +20 -7
- package/dist/{chunk-UXLW45ZE.cjs → chunk-V3SZLWEQ.cjs} +25 -90
- package/dist/chunk-V4HGZSKQ.cjs +183 -0
- package/dist/{chunk-2QL6MNXG.js → chunk-V5ELP2XE.js} +6 -6
- package/dist/{chunk-N6O3XUZ2.cjs → chunk-VKOXFT4L.cjs} +2 -2
- package/dist/{chunk-J2K57QM7.cjs → chunk-VLGGMQUN.cjs} +6 -6
- package/dist/{chunk-HSCUPEA4.cjs → chunk-VQHSYAPZ.cjs} +11 -11
- package/dist/{chunk-DEQVRSV5.cjs → chunk-W5QLA6WP.cjs} +8 -8
- package/dist/chunk-WJYFLQ7G.cjs +27 -0
- package/dist/{chunk-MX75JYIY.js → chunk-WNJXIACY.js} +3 -3
- package/dist/{chunk-OHWMWKJQ.js → chunk-WPE2XHVX.js} +1 -1
- package/dist/{chunk-O64I2GYI.js → chunk-X3TI5TJJ.js} +1 -1
- package/dist/{chunk-46C73ZKK.cjs → chunk-X5P6QQOB.cjs} +66 -10
- package/dist/{chunk-TJNBASFD.cjs → chunk-X7XMITIL.cjs} +8 -8
- package/dist/{chunk-E6GFD7VR.cjs → chunk-XNIMSVS6.cjs} +11 -11
- package/dist/{chunk-WGLBC5AY.cjs → chunk-XW3XCK4E.cjs} +4 -4
- package/dist/{chunk-OM24WXEE.js → chunk-XZVDYC5U.js} +1 -1
- package/dist/{chunk-UWFG2R2I.cjs → chunk-Y5BDE24P.cjs} +33 -9
- package/dist/{chunk-GGLKUENP.js → chunk-YC5OBZQU.js} +161 -7
- package/dist/{chunk-JJ4KA7HK.cjs → chunk-YISPVAXO.cjs} +371 -250
- package/dist/{chunk-SWCQM52V.js → chunk-YQDI753V.js} +4 -4
- package/dist/{chunk-KNTUI4TZ.cjs → chunk-YWH55BWK.cjs} +9 -6
- package/dist/{chunk-ACDQGA4Z.js → chunk-YXM6SA7P.js} +7 -72
- package/dist/{chunk-3GUEUCZK.js → chunk-ZNGRLCFQ.js} +2 -0
- package/dist/{chunk-LQBONA55.cjs → chunk-ZNYZB7XY.cjs} +2 -0
- package/dist/{chunk-XIVFAD2L.js → chunk-ZPLCAXJW.js} +172 -11
- package/dist/chunk-ZUYYHKQA.js +44 -0
- package/dist/clear-QJXU25IF.cjs +12 -0
- package/dist/{clear-OFLFQ3MR.js → clear-Y5TO3RZA.js} +2 -2
- package/dist/communityInstaller-LXMVKVAV.cjs +22 -0
- package/dist/{communityInstaller-COB2KTOW.js → communityInstaller-RVL4STPS.js} +6 -6
- package/dist/completion-JX4T2ONW.cjs +17 -0
- package/dist/{completion-PT4VM2H2.js → completion-SE3XYG74.js} +5 -5
- package/dist/config-3224PRW4.cjs +21 -0
- package/dist/{config-R4O7GBTY.js → config-7KPHKFTP.js} +4 -3
- package/dist/{constants-HVCHVQAF.js → constants-EJFAWJQI.js} +1 -1
- package/dist/constants-MCCGUU5F.cjs +21 -0
- package/dist/{export-3PK3VFCE.js → export-BJVIDZC4.js} +5 -5
- package/dist/export-KU4557HK.cjs +15 -0
- package/dist/feature-K3LG5IJP.cjs +14 -0
- package/dist/feature-V4JF5TNJ.js +14 -0
- package/dist/features-5OJTLKS7.js +23 -0
- package/dist/features-VCBJQXCX.cjs +23 -0
- package/dist/feedback-D4437VE4.js +18 -0
- package/dist/feedback-VZPEHGFY.cjs +18 -0
- package/dist/go-X4E6BCD6.js +12 -0
- package/dist/go-XREVFS5I.cjs +12 -0
- package/dist/goal-4M3J6JS2.cjs +16 -0
- package/dist/goal-EI66BV7W.js +16 -0
- package/dist/help-GGFS7WHY.cjs +12 -0
- package/dist/{help-X3OAZ3CY.js → help-MLIROWKM.js} +2 -2
- package/dist/{history-YKFPHBJN.js → history-GQJ6RZD6.js} +2 -2
- package/dist/history-J4LUIOSI.cjs +14 -0
- package/dist/hooks-FSRIUS6A.cjs +18 -0
- package/dist/{hooks-7TA4PIIB.js → hooks-PPFHCF7T.js} +6 -6
- package/dist/i18n-CI6VFXL5.cjs +33 -0
- package/dist/{i18n-2KBUU7XL.js → i18n-Q7UZJRPL.js} +1 -1
- package/dist/ide-BUSVE54P.js +15 -0
- package/dist/ide-YR27BPGM.cjs +15 -0
- package/dist/{import-4CHYLS4K.js → import-3VBKI6BN.js} +3 -3
- package/dist/{import-I7T4ZHYL.cjs → import-C7S6UJMW.cjs} +3 -3
- package/dist/import-DBK4OCDF.cjs +10 -0
- package/dist/{import-JWPYKXCZ.js → import-U47DXCA7.js} +2 -2
- package/dist/index.cjs +267 -170
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +165 -68
- package/dist/init-OXTYS72D.cjs +10 -0
- package/dist/{init-262MWZV4.js → init-Q2O4R42R.js} +2 -2
- package/dist/{inputPrompt-YGBHDUEP.js → inputPrompt-3CFZDUBH.js} +2 -2
- package/dist/inputPrompt-JMACL4EB.cjs +90 -0
- package/dist/language-EK3M6UBV.cjs +22 -0
- package/dist/language-Q3RUGGOW.js +22 -0
- package/dist/learn-3DSX7DYG.cjs +23 -0
- package/dist/learn-OPOH5L43.js +23 -0
- package/dist/login-GST7MWXJ.cjs +27 -0
- package/dist/login-Q7DZKAX4.js +27 -0
- package/dist/logout-2G7OUK7I.cjs +24 -0
- package/dist/logout-FNBBL2UI.js +24 -0
- package/dist/{mcp-5O6PUL4G.js → mcp-AH3MMUBU.js} +7 -6
- package/dist/mcp-DW7R63IB.cjs +21 -0
- package/dist/{mcp-install-6XWXLFVY.js → mcp-install-222PCKSW.js} +9 -8
- package/dist/{mcp-install-P6DHES7V.cjs → mcp-install-IA4ZS2SV.cjs} +14 -13
- package/dist/memory-6NX3DAIY.cjs +10 -0
- package/dist/{memory-Q54CESNM.js → memory-VB46T5H3.js} +2 -2
- package/dist/model-64NAELFS.cjs +10 -0
- package/dist/{model-6AJ77PJG.js → model-SJJG64AM.js} +2 -2
- package/dist/new-DU5SOOOY.cjs +12 -0
- package/dist/{new-ZXHEWC2S.js → new-ERZ5C6CN.js} +2 -2
- package/dist/onboarding-2U2BV2KE.cjs +36 -0
- package/dist/{onboarding-JYNMK6NI.js → onboarding-ZQXMPSMJ.js} +14 -13
- package/dist/{permissions-YHJMVA6L.js → permissions-7ACNFK7A.js} +2 -2
- package/dist/permissions-GSNNV7RJ.cjs +10 -0
- package/dist/{quit-GWTNHQSP.js → quit-WY6T267G.js} +2 -2
- package/dist/quit-XIRE2KRE.cjs +10 -0
- package/dist/{registry-34GL6BNJ.js → registry-4DXUDKJN.js} +1 -1
- package/dist/{registry-V24W7YK6.cjs → registry-UEO3ETZ7.cjs} +21 -21
- package/dist/resume-RQZ3WXBP.cjs +17 -0
- package/dist/resume-XSXZMDMD.js +17 -0
- package/dist/{rpc-S3DGW6KV.js → rpc-XH7QLN4H.js} +251 -107
- package/dist/{rpc-NPS3PU4O.cjs → rpc-YF54T7JU.cjs} +347 -203
- package/dist/search-VXXFGZWU.cjs +21 -0
- package/dist/search-YAWGX7P7.js +21 -0
- package/dist/{sessions-IYAXMK23.js → sessions-NJYHJOEL.js} +2 -2
- package/dist/sessions-OSG3UJEZ.cjs +10 -0
- package/dist/settings-SO2UIGWV.cjs +42 -0
- package/dist/{settings-55BNW6BF.js → settings-ZXUQH3DO.js} +17 -8
- package/dist/setup-KG7EGKF5.js +30 -0
- package/dist/setup-RSOPCQ57.cjs +30 -0
- package/dist/share-WFAGZ5PY.js +17 -0
- package/dist/share-ZU3SGACF.cjs +17 -0
- package/dist/skills-KBVAQAD2.cjs +29 -0
- package/dist/{skills-VWOMV3CR.js → skills-NBTNDVAY.js} +8 -8
- package/dist/{skills-MVIZNHT4.js → skills-OB6RDW7D.js} +9 -9
- package/dist/{skills-GGMZOVIE.cjs → skills-ZROBG3RZ.cjs} +10 -10
- package/dist/{skills-install-QBA5RCV6.js → skills-install-BHTIEMKH.js} +7 -7
- package/dist/{skills-install-VTAMCNNY.cjs → skills-install-ILX6QVEF.cjs} +15 -15
- package/dist/skills-new-B45VQ2PP.cjs +18 -0
- package/dist/skills-new-YMRP2HNO.js +18 -0
- package/dist/slashCommands-53VYIBJU.js +105 -0
- package/dist/slashCommands-BG2RGGZ6.cjs +105 -0
- package/dist/status-CQ2IUOVK.cjs +24 -0
- package/dist/status-E7IGNVPC.js +24 -0
- package/dist/{sync-7OKF6636.js → sync-7C25MOT2.js} +6 -5
- package/dist/{sync-7BILIQHP.js → sync-OCJN4ZSO.js} +3 -3
- package/dist/sync-XRP46IVG.cjs +40 -0
- package/dist/sync-ZMFVE7T4.cjs +22 -0
- package/dist/{teammate-J6PHGL23.cjs → teammate-D77B6QRT.cjs} +9 -8
- package/dist/{teammate-GZQSCIMS.js → teammate-EZCMHOIL.js} +8 -7
- package/dist/templates-ARG2VRWW.cjs +11 -0
- package/dist/templates-UGVZV3KJ.js +11 -0
- package/dist/theme-KKRDE6P7.cjs +22 -0
- package/dist/theme-XF7XIWBQ.js +22 -0
- package/dist/ui/questionModal.cjs +6 -6
- package/dist/ui/questionModal.js +5 -5
- package/dist/{undo-SZEHLX7X.js → undo-GNUTFXCW.js} +2 -2
- package/dist/undo-U4KN7QQM.cjs +10 -0
- package/dist/usage-QSTNSDAO.js +24 -0
- package/dist/usage-YDEMQBNQ.cjs +24 -0
- package/package.json +7 -2
- package/dist/AgentRegistry-EGBDIUAK.cjs +0 -10
- package/dist/CommunitySkillsCache-2OIUV227.cjs +0 -8
- package/dist/LearnAdvisor-46FG2XIP.js +0 -9
- package/dist/LearnAdvisor-XBRDNAGH.cjs +0 -9
- package/dist/MemoryManager-34L4YOKA.cjs +0 -8
- package/dist/NVIDIAProvider-MVTL62PR.cjs +0 -14
- package/dist/PermissionManager-5OOJ7FAT.cjs +0 -11
- package/dist/ProviderFactory-C3YPXTDD.cjs +0 -11
- package/dist/SessionManager-WAPTFMDO.cjs +0 -10
- package/dist/SkillsRegistry-7AJP74GJ.cjs +0 -9
- package/dist/SubAgent-FDIH3DXB.js +0 -11
- package/dist/SubAgent-HVL2ICVZ.cjs +0 -11
- package/dist/SyncApiClient-VMBOLQ6H.cjs +0 -11
- package/dist/about-FCAX37YC.cjs +0 -14
- package/dist/actionExecutor-4YBMR3YH.cjs +0 -24
- package/dist/add-dir-7SS6KSH5.cjs +0 -11
- package/dist/agent-DMRUFU4M.cjs +0 -116
- package/dist/agent-WCJEYQJT.js +0 -116
- package/dist/agents-CHROO3VU.cjs +0 -17
- package/dist/agents-UVDUL65K.js +0 -17
- package/dist/agents-new-AUBWSOXP.js +0 -17
- package/dist/agents-new-Y562WC47.cjs +0 -17
- package/dist/autoSkill-YOLLFTP2.cjs +0 -20
- package/dist/automode-DBLKTTKD.cjs +0 -10
- package/dist/chrome-ATC4OO5I.cjs +0 -20
- package/dist/chrome-O62WXV7F.js +0 -20
- package/dist/chrome-XHJLCO4M.cjs +0 -50
- package/dist/chunk-6XVVIY54.cjs +0 -256
- package/dist/chunk-AU6JAGZJ.cjs +0 -231
- package/dist/chunk-VDWJMWDF.js +0 -256
- package/dist/clear-33TWQ2ES.cjs +0 -12
- package/dist/communityInstaller-TWMGPSYM.cjs +0 -22
- package/dist/completion-IIZMHXYP.cjs +0 -17
- package/dist/config-KL6WU7R2.cjs +0 -20
- package/dist/constants-RLMJ5D5P.cjs +0 -21
- package/dist/export-WLGNWEMJ.cjs +0 -15
- package/dist/feedback-G635NCLJ.js +0 -18
- package/dist/feedback-LLMK3TZH.cjs +0 -18
- package/dist/help-BAXLP2M2.cjs +0 -12
- package/dist/history-6HOJSEMT.cjs +0 -14
- package/dist/hooks-XVFU67T2.cjs +0 -18
- package/dist/i18n-MUJMKTFM.cjs +0 -33
- package/dist/ide-CCQ33PGC.cjs +0 -15
- package/dist/ide-VLVFBZ5F.js +0 -15
- package/dist/import-J46F54JY.cjs +0 -10
- package/dist/init-EE5Y7RBL.cjs +0 -10
- package/dist/inputPrompt-IIFKCX5Q.cjs +0 -90
- package/dist/language-CVLPB7OV.js +0 -21
- package/dist/language-ZTWFHUSV.cjs +0 -21
- package/dist/learn-PON7I5QS.js +0 -23
- package/dist/learn-XLRSVNA3.cjs +0 -23
- package/dist/login-223QTGBG.cjs +0 -26
- package/dist/login-6IKTBUBY.js +0 -26
- package/dist/logout-RN2AG6SI.js +0 -23
- package/dist/logout-U3M4FFX7.cjs +0 -23
- package/dist/mcp-NUQ76QQB.cjs +0 -20
- package/dist/memory-CYMDQ2YC.cjs +0 -10
- package/dist/model-IDRCKDML.cjs +0 -10
- package/dist/new-7LEWOUF2.cjs +0 -12
- package/dist/onboarding-FXX7YHSJ.cjs +0 -35
- package/dist/permissions-YBNSANIA.cjs +0 -10
- package/dist/quit-B43SJ6E4.cjs +0 -10
- package/dist/resume-DYVOQN5L.cjs +0 -16
- package/dist/resume-M25UQKOX.js +0 -16
- package/dist/search-CPX4PWHP.js +0 -20
- package/dist/search-VUF3M4N3.cjs +0 -20
- package/dist/sessions-JODKER5D.cjs +0 -10
- package/dist/settings-BKTS7OMC.cjs +0 -33
- package/dist/setup-IRC5HQG2.js +0 -29
- package/dist/setup-MMQ7TWOP.cjs +0 -29
- package/dist/share-6JRQECAH.cjs +0 -17
- package/dist/share-YM5MJKMO.js +0 -17
- package/dist/skills-LWSOKOSH.cjs +0 -29
- package/dist/skills-new-GPL46YV2.js +0 -18
- package/dist/skills-new-L5BEZN5V.cjs +0 -18
- package/dist/slashCommands-FBPCIWM5.cjs +0 -95
- package/dist/slashCommands-FCWY5DXW.js +0 -95
- package/dist/status-3B5SDZPL.js +0 -17
- package/dist/status-TTGRF6NC.cjs +0 -17
- package/dist/sync-77CXVVTK.cjs +0 -21
- package/dist/sync-EH4K5U3N.cjs +0 -40
- package/dist/theme-64BYGJ57.cjs +0 -21
- package/dist/theme-YJE6HEON.js +0 -21
- package/dist/undo-PRTEGL2J.cjs +0 -10
|
@@ -1,154 +1,169 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5K3CDSWZcjs = require('./chunk-5K3CDSWZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCRTCZ4WLcjs = require('./chunk-CRTCZ4WL.cjs');
|
|
7
7
|
require('./chunk-QMAKTSZB.cjs');
|
|
8
|
-
require('./chunk-HQWQZML5.cjs');
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var _chunkTE4SYTWRcjs = require('./chunk-TE4SYTWR.cjs');
|
|
11
|
+
require('./chunk-PY73W5MQ.cjs');
|
|
12
|
+
require('./chunk-HVCIB4SW.cjs');
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
var _chunkDI57A4BXcjs = require('./chunk-DI57A4BX.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-GBMDFWJX.cjs');
|
|
20
|
-
require('./chunk-FFBDRUO5.cjs');
|
|
21
|
-
require('./chunk-GWY26SUD.cjs');
|
|
22
|
-
require('./chunk-ROLA6EFO.cjs');
|
|
16
|
+
require('./chunk-ZNYZB7XY.cjs');
|
|
17
|
+
require('./chunk-JCUHCH37.cjs');
|
|
23
18
|
require('./chunk-PCM3N3CL.cjs');
|
|
24
19
|
require('./chunk-BYE7RQFZ.cjs');
|
|
25
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-KJ26T7GM.cjs');
|
|
21
|
+
require('./chunk-B76FJKEJ.cjs');
|
|
22
|
+
require('./chunk-MGNXABSU.cjs');
|
|
23
|
+
require('./chunk-PQBYFEBL.cjs');
|
|
24
|
+
require('./chunk-DRWDEHE5.cjs');
|
|
25
|
+
require('./chunk-AZ47LKD5.cjs');
|
|
26
|
+
require('./chunk-HDK2EHVH.cjs');
|
|
27
|
+
require('./chunk-AE2ILW25.cjs');
|
|
28
|
+
require('./chunk-FFBDRUO5.cjs');
|
|
29
|
+
require('./chunk-GWY26SUD.cjs');
|
|
30
|
+
require('./chunk-5GCQ5UMV.cjs');
|
|
31
|
+
require('./chunk-NZ7GCK7Y.cjs');
|
|
32
|
+
require('./chunk-PIXQ2AVM.cjs');
|
|
33
|
+
require('./chunk-VLGGMQUN.cjs');
|
|
34
|
+
require('./chunk-OCATAKXV.cjs');
|
|
26
35
|
require('./chunk-Z36XBUMX.cjs');
|
|
27
36
|
require('./chunk-U3WDY42C.cjs');
|
|
28
37
|
require('./chunk-FHK7UDOJ.cjs');
|
|
29
|
-
require('./chunk-DRWDEHE5.cjs');
|
|
30
|
-
require('./chunk-AUYSIEVV.cjs');
|
|
31
|
-
require('./chunk-HDK2EHVH.cjs');
|
|
32
|
-
require('./chunk-PDHT7LQS.cjs');
|
|
33
|
-
require('./chunk-MQESBFBZ.cjs');
|
|
34
|
-
require('./chunk-TXPSTCG7.cjs');
|
|
35
|
-
require('./chunk-PUD76XQT.cjs');
|
|
36
|
-
require('./chunk-IEXKKKOF.cjs');
|
|
37
|
-
require('./chunk-CWINVFRI.cjs');
|
|
38
|
-
require('./chunk-J2K57QM7.cjs');
|
|
39
|
-
require('./chunk-J5ADZN6V.cjs');
|
|
40
|
-
require('./chunk-3S563FNF.cjs');
|
|
41
|
-
require('./chunk-DPSIGY6L.cjs');
|
|
42
|
-
require('./chunk-JHGIWNHL.cjs');
|
|
43
38
|
require('./chunk-ZASDSY7P.cjs');
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
50
|
-
require('./chunk-
|
|
51
|
-
require('./chunk-
|
|
52
|
-
require('./chunk-
|
|
53
|
-
require('./chunk-
|
|
54
|
-
require('./chunk-
|
|
55
|
-
require('./chunk-
|
|
56
|
-
require('./chunk-
|
|
57
|
-
require('./chunk-
|
|
58
|
-
require('./chunk-
|
|
59
|
-
require('./chunk-
|
|
60
|
-
require('./chunk-
|
|
61
|
-
require('./chunk-6HH236FV.cjs');
|
|
62
|
-
require('./chunk-HS4USDND.cjs');
|
|
39
|
+
require('./chunk-3UHRCHKB.cjs');
|
|
40
|
+
require('./chunk-XNIMSVS6.cjs');
|
|
41
|
+
require('./chunk-63ANVAOJ.cjs');
|
|
42
|
+
require('./chunk-NZQFKXM3.cjs');
|
|
43
|
+
require('./chunk-6OECOAK5.cjs');
|
|
44
|
+
require('./chunk-GAOPJ5S3.cjs');
|
|
45
|
+
require('./chunk-RFUKZIJF.cjs');
|
|
46
|
+
require('./chunk-45CHNQM6.cjs');
|
|
47
|
+
require('./chunk-XW3XCK4E.cjs');
|
|
48
|
+
require('./chunk-L46OUKW5.cjs');
|
|
49
|
+
require('./chunk-QQ64HEHP.cjs');
|
|
50
|
+
require('./chunk-7XTUL7ZD.cjs');
|
|
51
|
+
require('./chunk-JHGIWNHL.cjs');
|
|
52
|
+
require('./chunk-DSSCERHI.cjs');
|
|
53
|
+
require('./chunk-EA2MS25U.cjs');
|
|
54
|
+
require('./chunk-U6PLSPMD.cjs');
|
|
55
|
+
require('./chunk-MZN6JBRZ.cjs');
|
|
63
56
|
|
|
64
57
|
|
|
65
58
|
var _chunkDA7NBAJKcjs = require('./chunk-DA7NBAJK.cjs');
|
|
59
|
+
require('./chunk-6JWCGQJU.cjs');
|
|
60
|
+
require('./chunk-QCLYBIMM.cjs');
|
|
61
|
+
require('./chunk-M7RVTUWE.cjs');
|
|
62
|
+
require('./chunk-7PT646AL.cjs');
|
|
63
|
+
require('./chunk-2ESQR35E.cjs');
|
|
64
|
+
require('./chunk-KM7R5YPS.cjs');
|
|
65
|
+
require('./chunk-VKOXFT4L.cjs');
|
|
66
|
+
require('./chunk-V3SZLWEQ.cjs');
|
|
67
|
+
require('./chunk-5ZNYX4VH.cjs');
|
|
68
|
+
require('./chunk-ONVYXTUT.cjs');
|
|
69
|
+
require('./chunk-MFK6HE47.cjs');
|
|
70
|
+
require('./chunk-X7XMITIL.cjs');
|
|
71
|
+
require('./chunk-3ICORF7M.cjs');
|
|
72
|
+
require('./chunk-MQQH4XQH.cjs');
|
|
66
73
|
require('./chunk-YFXTE422.cjs');
|
|
67
|
-
require('./chunk-
|
|
74
|
+
require('./chunk-SVVP4UUZ.cjs');
|
|
75
|
+
require('./chunk-D546G7DA.cjs');
|
|
68
76
|
require('./chunk-HXQREVTA.cjs');
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
var _chunkNQZH5CR2cjs = require('./chunk-NQZH5CR2.cjs');
|
|
69
80
|
require('./chunk-4JNNTOGF.cjs');
|
|
70
|
-
require('./chunk-
|
|
81
|
+
require('./chunk-DHUQZ53B.cjs');
|
|
71
82
|
require('./chunk-VXCMGBXY.cjs');
|
|
72
|
-
require('./chunk-
|
|
73
|
-
require('./chunk-
|
|
74
|
-
require('./chunk-
|
|
75
|
-
require('./chunk-UXLW45ZE.cjs');
|
|
83
|
+
require('./chunk-4XFHP2SN.cjs');
|
|
84
|
+
require('./chunk-SOVR7S3T.cjs');
|
|
85
|
+
require('./chunk-B4HSNOIH.cjs');
|
|
76
86
|
require('./chunk-OR67YXQK.cjs');
|
|
77
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-W5QLA6WP.cjs');
|
|
78
88
|
|
|
79
89
|
|
|
80
90
|
|
|
81
91
|
|
|
82
92
|
var _chunkJ5HE6CUMcjs = require('./chunk-J5HE6CUM.cjs');
|
|
83
|
-
require('./chunk-
|
|
93
|
+
require('./chunk-V4HGZSKQ.cjs');
|
|
94
|
+
require('./chunk-PSAH4ZQB.cjs');
|
|
84
95
|
require('./chunk-QW2RW2GY.cjs');
|
|
85
|
-
require('./chunk-
|
|
86
|
-
require('./chunk-JJ4KA7HK.cjs');
|
|
96
|
+
require('./chunk-YISPVAXO.cjs');
|
|
87
97
|
require('./chunk-WTB7AFL6.cjs');
|
|
88
98
|
|
|
89
99
|
|
|
90
100
|
|
|
91
|
-
var
|
|
101
|
+
var _chunkHC2Q6A3Ecjs = require('./chunk-HC2Q6A3E.cjs');
|
|
92
102
|
|
|
93
103
|
|
|
94
|
-
var
|
|
104
|
+
var _chunkVQHSYAPZcjs = require('./chunk-VQHSYAPZ.cjs');
|
|
95
105
|
require('./chunk-WBU4Q4GS.cjs');
|
|
96
106
|
|
|
97
107
|
|
|
98
108
|
var _chunkLFDPTJYFcjs = require('./chunk-LFDPTJYF.cjs');
|
|
99
109
|
require('./chunk-MUNUUFU7.cjs');
|
|
100
|
-
require('./chunk-
|
|
110
|
+
require('./chunk-JV5HVCHU.cjs');
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
var _chunkWJYFLQ7Gcjs = require('./chunk-WJYFLQ7G.cjs');
|
|
101
115
|
require('./chunk-WKRDBCP2.cjs');
|
|
102
|
-
require('./chunk-
|
|
103
|
-
require('./chunk-
|
|
104
|
-
require('./chunk-
|
|
105
|
-
require('./chunk-
|
|
106
|
-
require('./chunk-
|
|
107
|
-
require('./chunk-
|
|
116
|
+
require('./chunk-AOKXYGBQ.cjs');
|
|
117
|
+
require('./chunk-HG3ZASBH.cjs');
|
|
118
|
+
require('./chunk-NV6LCD2I.cjs');
|
|
119
|
+
require('./chunk-5SFV2NCY.cjs');
|
|
120
|
+
require('./chunk-3UC6DMFI.cjs');
|
|
121
|
+
require('./chunk-NVATU4V6.cjs');
|
|
108
122
|
require('./chunk-LJD7KR3L.cjs');
|
|
109
|
-
require('./chunk-
|
|
110
|
-
require('./chunk-
|
|
111
|
-
require('./chunk-
|
|
123
|
+
require('./chunk-RBXBH6EB.cjs');
|
|
124
|
+
require('./chunk-S5JNQIGL.cjs');
|
|
125
|
+
require('./chunk-Y5BDE24P.cjs');
|
|
112
126
|
|
|
113
127
|
|
|
128
|
+
var _chunkQLZOMZO5cjs = require('./chunk-QLZOMZO5.cjs');
|
|
114
129
|
|
|
115
|
-
var _chunk7LWQCE4Ycjs = require('./chunk-7LWQCE4Y.cjs');
|
|
116
130
|
|
|
117
131
|
|
|
118
|
-
var
|
|
132
|
+
var _chunkM7B7RRBKcjs = require('./chunk-M7B7RRBK.cjs');
|
|
119
133
|
require('./chunk-XDLH4EDL.cjs');
|
|
120
134
|
|
|
121
135
|
|
|
122
136
|
|
|
123
137
|
|
|
124
|
-
var
|
|
138
|
+
var _chunkOV3T5MUHcjs = require('./chunk-OV3T5MUH.cjs');
|
|
125
139
|
|
|
126
140
|
|
|
127
|
-
var
|
|
141
|
+
var _chunkCO2AADYUcjs = require('./chunk-CO2AADYU.cjs');
|
|
128
142
|
require('./chunk-FMB3TSWP.cjs');
|
|
129
|
-
require('./chunk-
|
|
130
|
-
require('./chunk-
|
|
143
|
+
require('./chunk-SD3NTC7D.cjs');
|
|
144
|
+
require('./chunk-AQ5PVHOC.cjs');
|
|
131
145
|
|
|
132
146
|
|
|
133
147
|
var _chunk3OF56EMAcjs = require('./chunk-3OF56EMA.cjs');
|
|
134
|
-
require('./chunk-
|
|
135
|
-
require('./chunk-
|
|
136
|
-
require('./chunk-
|
|
137
|
-
require('./chunk-
|
|
148
|
+
require('./chunk-22SCR3EV.cjs');
|
|
149
|
+
require('./chunk-CK4HAHVY.cjs');
|
|
150
|
+
require('./chunk-YWH55BWK.cjs');
|
|
151
|
+
require('./chunk-NHWHEW7M.cjs');
|
|
138
152
|
|
|
139
153
|
|
|
140
|
-
var
|
|
141
|
-
require('./chunk-
|
|
154
|
+
var _chunkX5P6QQOBcjs = require('./chunk-X5P6QQOB.cjs');
|
|
155
|
+
require('./chunk-P6SLT2F4.cjs');
|
|
142
156
|
require('./chunk-3EDDDZS2.cjs');
|
|
157
|
+
require('./chunk-HK5A54AV.cjs');
|
|
143
158
|
require('./chunk-YWTIXHU6.cjs');
|
|
144
159
|
require('./chunk-2VHB43IX.cjs');
|
|
145
|
-
require('./chunk-
|
|
160
|
+
require('./chunk-KASXKDF2.cjs');
|
|
146
161
|
require('./chunk-XF2WIKHR.cjs');
|
|
147
162
|
|
|
148
163
|
|
|
149
164
|
var _chunkWGNMOVMTcjs = require('./chunk-WGNMOVMT.cjs');
|
|
150
|
-
require('./chunk-
|
|
151
|
-
require('./chunk-
|
|
165
|
+
require('./chunk-SY2P3Z5W.cjs');
|
|
166
|
+
require('./chunk-JM3ZTQUK.cjs');
|
|
152
167
|
require('./chunk-3HT76LNN.cjs');
|
|
153
168
|
|
|
154
169
|
// src/modes/rpc/index.ts
|
|
@@ -233,7 +248,14 @@ var RPC_METHODS = {
|
|
|
233
248
|
// Context compaction control
|
|
234
249
|
SET_CONTEXT_COMPACT: "autohand.setContextCompact",
|
|
235
250
|
// Setup wizard
|
|
236
|
-
SETUP: "autohand.setup"
|
|
251
|
+
SETUP: "autohand.setup",
|
|
252
|
+
GOAL_GET: "autohand.goal.get",
|
|
253
|
+
GOAL_CREATE: "autohand.goal.create",
|
|
254
|
+
GOAL_UPDATE: "autohand.goal.update",
|
|
255
|
+
GOAL_CLEAR: "autohand.goal.clear",
|
|
256
|
+
GOAL_QUEUE: "autohand.goal.queue",
|
|
257
|
+
GOAL_START_QUEUED: "autohand.goal.startQueued",
|
|
258
|
+
GOAL_LIST_TEMPLATES: "autohand.goal.listTemplates"
|
|
237
259
|
};
|
|
238
260
|
var RPC_NOTIFICATIONS = {
|
|
239
261
|
AGENT_START: "autohand.agentStart",
|
|
@@ -655,7 +677,7 @@ var RPC_ERROR_ICON_MAP = {
|
|
|
655
677
|
unknown: "\u26A0\uFE0F"
|
|
656
678
|
// ⚠️
|
|
657
679
|
};
|
|
658
|
-
var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);_class2.prototype.__init7.call(this);_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);_class2.prototype.__init16.call(this);_class2.prototype.__init17.call(this);_class2.prototype.__init18.call(this);_class2.prototype.__init19.call(this);_class2.prototype.__init20.call(this);_class2.prototype.__init21.call(this);_class2.prototype.__init22.call(this);_class2.prototype.__init23.call(this);_class2.prototype.__init24.call(this);_class2.prototype.__init25.call(this);_class2.prototype.__init26.call(this);_class2.prototype.__init27.call(this);_class2.prototype.__init28.call(this); }
|
|
680
|
+
var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);_class2.prototype.__init7.call(this);_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);_class2.prototype.__init16.call(this);_class2.prototype.__init17.call(this);_class2.prototype.__init18.call(this);_class2.prototype.__init19.call(this);_class2.prototype.__init20.call(this);_class2.prototype.__init21.call(this);_class2.prototype.__init22.call(this);_class2.prototype.__init23.call(this);_class2.prototype.__init24.call(this);_class2.prototype.__init25.call(this);_class2.prototype.__init26.call(this);_class2.prototype.__init27.call(this);_class2.prototype.__init28.call(this);_class2.prototype.__init29.call(this);_class2.prototype.__init30.call(this); }
|
|
659
681
|
__init5() {this.agent = null}
|
|
660
682
|
__init6() {this.conversation = null}
|
|
661
683
|
__init7() {this.imageManager = null}
|
|
@@ -686,8 +708,10 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
686
708
|
// during long turns with no traffic.
|
|
687
709
|
__init26() {this.keepaliveInterval = null}
|
|
688
710
|
__init27() {this.KEEPALIVE_MS = 15e3}
|
|
711
|
+
__init28() {this.yoloRevertTimer = null}
|
|
712
|
+
__init29() {this.yoloRevertGeneration = 0}
|
|
689
713
|
// Config reference for runtime settings changes
|
|
690
|
-
|
|
714
|
+
__init30() {this.config = {}}
|
|
691
715
|
/**
|
|
692
716
|
* Check if the current model supports vision/image inputs.
|
|
693
717
|
* Uses async OpenRouter API with pattern-matching fallback, cached for the session.
|
|
@@ -696,20 +720,21 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
696
720
|
if (this.visionSupported !== null) {
|
|
697
721
|
return this.visionSupported;
|
|
698
722
|
}
|
|
699
|
-
this.visionSupported = await
|
|
723
|
+
this.visionSupported = await _chunkHC2Q6A3Ecjs.modelSupportsImages.call(void 0, this.model);
|
|
700
724
|
return this.visionSupported;
|
|
701
725
|
}
|
|
702
726
|
/**
|
|
703
727
|
* Initialize the adapter with an agent instance
|
|
704
728
|
*/
|
|
705
|
-
initialize(agent, conversation, model, workspace, mcpServerConfigs) {
|
|
729
|
+
initialize(agent, conversation, model, workspace, config, mcpServerConfigs) {
|
|
706
730
|
this.agent = agent;
|
|
707
731
|
this.conversation = conversation;
|
|
708
732
|
this.model = model;
|
|
709
733
|
this.workspace = workspace;
|
|
734
|
+
this.config = config ? { ...config } : {};
|
|
710
735
|
this.sessionId = generateId("session");
|
|
711
736
|
this.mcpServerConfigs = _nullishCoalesce(mcpServerConfigs, () => ( []));
|
|
712
|
-
this.imageManager = _nullishCoalesce(_optionalChain([agent, 'access', _ => _.getImageManager, 'optionalCall', _2 => _2()]), () => ( new (0,
|
|
737
|
+
this.imageManager = _nullishCoalesce(_optionalChain([agent, 'access', _ => _.getImageManager, 'optionalCall', _2 => _2()]), () => ( new (0, _chunkVQHSYAPZcjs.ImageManager)()));
|
|
713
738
|
agent.setStatusListener((snapshot) => {
|
|
714
739
|
this.contextPercent = snapshot.contextPercent;
|
|
715
740
|
this.model = snapshot.model;
|
|
@@ -738,6 +763,61 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
738
763
|
messageCount: _nullishCoalesce(_optionalChain([this, 'access', _3 => _3.conversation, 'optionalAccess', _4 => _4.history, 'call', _5 => _5(), 'access', _6 => _6.length]), () => ( 0))
|
|
739
764
|
};
|
|
740
765
|
}
|
|
766
|
+
async handleGoalGet() {
|
|
767
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
768
|
+
return new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace).getSnapshot();
|
|
769
|
+
}
|
|
770
|
+
async handleGoalCreate(params) {
|
|
771
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
772
|
+
return new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace).createGoal({
|
|
773
|
+
objective: params.objective,
|
|
774
|
+
tokenBudget: params.token_budget,
|
|
775
|
+
timeBudgetSeconds: params.time_budget_seconds,
|
|
776
|
+
minTokensBeforeWrapUp: params.min_tokens_before_wrap_up,
|
|
777
|
+
minTimeSecondsBeforeWrapUp: params.min_time_seconds_before_wrap_up
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
async handleGoalUpdate(params) {
|
|
781
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
782
|
+
return new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace).updateGoal({
|
|
783
|
+
objective: params.objective,
|
|
784
|
+
status: parseRpcGoalStatus(params.status),
|
|
785
|
+
tokenBudget: params.token_budget,
|
|
786
|
+
timeBudgetSeconds: params.time_budget_seconds,
|
|
787
|
+
minTokensBeforeWrapUp: params.min_tokens_before_wrap_up,
|
|
788
|
+
minTimeSecondsBeforeWrapUp: params.min_time_seconds_before_wrap_up
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
async handleGoalClear() {
|
|
792
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
793
|
+
return new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace).clearGoal();
|
|
794
|
+
}
|
|
795
|
+
async handleGoalQueue(params) {
|
|
796
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
797
|
+
const manager = new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace);
|
|
798
|
+
return manager.enqueueGoal({
|
|
799
|
+
objective: params.objective,
|
|
800
|
+
source: "rpc",
|
|
801
|
+
tokenBudget: params.token_budget,
|
|
802
|
+
timeBudgetSeconds: params.time_budget_seconds,
|
|
803
|
+
minTokensBeforeWrapUp: params.min_tokens_before_wrap_up,
|
|
804
|
+
minTimeSecondsBeforeWrapUp: params.min_time_seconds_before_wrap_up
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
async handleGoalStartQueued() {
|
|
808
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
809
|
+
return new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace).startQueuedGoal();
|
|
810
|
+
}
|
|
811
|
+
async handleGoalListTemplates() {
|
|
812
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
813
|
+
return new (0, _chunkNQZH5CR2cjs.GoalManager)(this.workspace).listTemplates();
|
|
814
|
+
}
|
|
815
|
+
isGoalFeatureEnabled() {
|
|
816
|
+
return _chunkWJYFLQ7Gcjs.isGoalFeatureEnabled.call(void 0, this.config);
|
|
817
|
+
}
|
|
818
|
+
goalFeatureDisabledResult() {
|
|
819
|
+
return { ok: false, message: _chunkWJYFLQ7Gcjs.GOAL_FEATURE_DISABLED_MESSAGE };
|
|
820
|
+
}
|
|
741
821
|
/**
|
|
742
822
|
* Get message history
|
|
743
823
|
*/
|
|
@@ -949,15 +1029,17 @@ ${sel.text}
|
|
|
949
1029
|
await hookManager.executeHooks("stop", {
|
|
950
1030
|
sessionId: this.sessionId || void 0,
|
|
951
1031
|
turnDuration,
|
|
952
|
-
tokensUsed: _nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess', _19 => _19.tokensUsed]), () => ( 0))
|
|
1032
|
+
tokensUsed: _nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess', _19 => _19.tokensUsed]), () => ( 0)),
|
|
1033
|
+
tokensUsageStatus: _optionalChain([snapshot2, 'optionalAccess', _20 => _20.tokensUsageStatus])
|
|
953
1034
|
});
|
|
954
1035
|
process.stderr.write(`[RPC DEBUG] Stop hooks completed
|
|
955
1036
|
`);
|
|
956
1037
|
this.emitHookStop(
|
|
957
|
-
_nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess',
|
|
1038
|
+
_nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess', _21 => _21.tokensUsed]), () => ( 0)),
|
|
958
1039
|
0,
|
|
959
1040
|
// toolCallsCount - not tracked per turn currently
|
|
960
|
-
turnDuration
|
|
1041
|
+
turnDuration,
|
|
1042
|
+
_optionalChain([snapshot2, 'optionalAccess', _22 => _22.tokensUsageStatus])
|
|
961
1043
|
);
|
|
962
1044
|
process.stderr.write(`[RPC DEBUG] HOOK_STOP emitted
|
|
963
1045
|
`);
|
|
@@ -992,14 +1074,15 @@ ${sel.text}
|
|
|
992
1074
|
process.stderr.write(`[RPC DEBUG] MESSAGE_END emitted successfully
|
|
993
1075
|
`);
|
|
994
1076
|
const durationMs = this.turnStartTime ? Date.now() - this.turnStartTime : void 0;
|
|
995
|
-
const snapshot = _optionalChain([this, 'access',
|
|
1077
|
+
const snapshot = _optionalChain([this, 'access', _23 => _23.agent, 'optionalAccess', _24 => _24.getStatusSnapshot, 'call', _25 => _25()]);
|
|
996
1078
|
process.stderr.write(`[RPC DEBUG] Emitting TURN_END, turnId=${this.currentTurnId}
|
|
997
1079
|
`);
|
|
998
1080
|
writeNotification(RPC_NOTIFICATIONS.TURN_END, {
|
|
999
1081
|
turnId: this.currentTurnId,
|
|
1000
1082
|
timestamp: createTimestamp(),
|
|
1001
1083
|
contextPercent: this.contextPercent,
|
|
1002
|
-
tokensUsed: _optionalChain([snapshot, 'optionalAccess',
|
|
1084
|
+
tokensUsed: _optionalChain([snapshot, 'optionalAccess', _26 => _26.tokensUsed]),
|
|
1085
|
+
tokensUsageStatus: _optionalChain([snapshot, 'optionalAccess', _27 => _27.tokensUsageStatus]),
|
|
1003
1086
|
durationMs
|
|
1004
1087
|
});
|
|
1005
1088
|
process.stderr.write(`[RPC DEBUG] TURN_END emitted successfully
|
|
@@ -1025,14 +1108,15 @@ ${sel.text}
|
|
|
1025
1108
|
});
|
|
1026
1109
|
}
|
|
1027
1110
|
const durationMs = this.turnStartTime ? Date.now() - this.turnStartTime : void 0;
|
|
1028
|
-
const snapshot = _optionalChain([this, 'access',
|
|
1111
|
+
const snapshot = _optionalChain([this, 'access', _28 => _28.agent, 'optionalAccess', _29 => _29.getStatusSnapshot, 'call', _30 => _30()]);
|
|
1029
1112
|
process.stderr.write(`[RPC DEBUG] Emitting TURN_END from outer catch, turnId=${this.currentTurnId}
|
|
1030
1113
|
`);
|
|
1031
1114
|
writeNotification(RPC_NOTIFICATIONS.TURN_END, {
|
|
1032
1115
|
turnId: this.currentTurnId,
|
|
1033
1116
|
timestamp: createTimestamp(),
|
|
1034
1117
|
contextPercent: this.contextPercent,
|
|
1035
|
-
tokensUsed: _optionalChain([snapshot, 'optionalAccess',
|
|
1118
|
+
tokensUsed: _optionalChain([snapshot, 'optionalAccess', _31 => _31.tokensUsed]),
|
|
1119
|
+
tokensUsageStatus: _optionalChain([snapshot, 'optionalAccess', _32 => _32.tokensUsageStatus]),
|
|
1036
1120
|
durationMs
|
|
1037
1121
|
});
|
|
1038
1122
|
this.stopKeepalive();
|
|
@@ -1073,12 +1157,13 @@ ${sel.text}
|
|
|
1073
1157
|
}
|
|
1074
1158
|
if (this.currentTurnId) {
|
|
1075
1159
|
const durationMs = this.turnStartTime ? Date.now() - this.turnStartTime : void 0;
|
|
1076
|
-
const snapshot = _optionalChain([this, 'access',
|
|
1160
|
+
const snapshot = _optionalChain([this, 'access', _33 => _33.agent, 'optionalAccess', _34 => _34.getStatusSnapshot, 'call', _35 => _35()]);
|
|
1077
1161
|
writeNotification(RPC_NOTIFICATIONS.TURN_END, {
|
|
1078
1162
|
turnId: this.currentTurnId,
|
|
1079
1163
|
timestamp: createTimestamp(),
|
|
1080
1164
|
contextPercent: this.contextPercent,
|
|
1081
|
-
tokensUsed: _optionalChain([snapshot, 'optionalAccess',
|
|
1165
|
+
tokensUsed: _optionalChain([snapshot, 'optionalAccess', _36 => _36.tokensUsed]),
|
|
1166
|
+
tokensUsageStatus: _optionalChain([snapshot, 'optionalAccess', _37 => _37.tokensUsageStatus]),
|
|
1082
1167
|
durationMs
|
|
1083
1168
|
});
|
|
1084
1169
|
}
|
|
@@ -1109,10 +1194,10 @@ ${sel.text}
|
|
|
1109
1194
|
}
|
|
1110
1195
|
if (this.conversation) {
|
|
1111
1196
|
const history = this.conversation.history();
|
|
1112
|
-
const systemPrompt = _nullishCoalesce(_optionalChain([history, 'access',
|
|
1197
|
+
const systemPrompt = _nullishCoalesce(_optionalChain([history, 'access', _38 => _38.find, 'call', _39 => _39((m) => m.role === "system"), 'optionalAccess', _40 => _40.content]), () => ( ""));
|
|
1113
1198
|
this.conversation.reset(systemPrompt);
|
|
1114
1199
|
}
|
|
1115
|
-
_optionalChain([this, 'access',
|
|
1200
|
+
_optionalChain([this, 'access', _41 => _41.imageManager, 'optionalAccess', _42 => _42.clear, 'call', _43 => _43()]);
|
|
1116
1201
|
this.stopKeepalive();
|
|
1117
1202
|
this.sessionId = generateId("session");
|
|
1118
1203
|
this.status = "idle";
|
|
@@ -1141,19 +1226,19 @@ ${sel.text}
|
|
|
1141
1226
|
return { messages };
|
|
1142
1227
|
}
|
|
1143
1228
|
async handleBrowserHandoffCreate(_requestId, params) {
|
|
1144
|
-
const session = _optionalChain([this, 'access',
|
|
1229
|
+
const session = _optionalChain([this, 'access', _44 => _44.agent, 'optionalAccess', _45 => _45.getSessionManager, 'optionalCall', _46 => _46(), 'access', _47 => _47.getCurrentSession, 'optionalCall', _48 => _48()]);
|
|
1145
1230
|
if (!session) {
|
|
1146
1231
|
throw new Error("No active session available for browser handoff.");
|
|
1147
1232
|
}
|
|
1148
|
-
return
|
|
1233
|
+
return _chunkOV3T5MUHcjs.createBrowserHandoff.call(void 0, {
|
|
1149
1234
|
sessionId: session.metadata.sessionId,
|
|
1150
1235
|
workspaceRoot: session.metadata.projectPath,
|
|
1151
|
-
extensionId: _optionalChain([params, 'optionalAccess',
|
|
1152
|
-
installUrl: _optionalChain([params, 'optionalAccess',
|
|
1236
|
+
extensionId: _optionalChain([params, 'optionalAccess', _49 => _49.extensionId]),
|
|
1237
|
+
installUrl: _optionalChain([params, 'optionalAccess', _50 => _50.installUrl])
|
|
1153
1238
|
});
|
|
1154
1239
|
}
|
|
1155
1240
|
async handleBrowserHandoffAttach(_requestId, params) {
|
|
1156
|
-
const handoff = await
|
|
1241
|
+
const handoff = await _chunkOV3T5MUHcjs.attachBrowserHandoff.call(void 0, params.token);
|
|
1157
1242
|
if (!handoff) {
|
|
1158
1243
|
return { success: false };
|
|
1159
1244
|
}
|
|
@@ -1175,7 +1260,7 @@ ${sel.text}
|
|
|
1175
1260
|
};
|
|
1176
1261
|
}
|
|
1177
1262
|
async handleBrowserHandoffAttachLatest(_requestId, _params) {
|
|
1178
|
-
const handoff = await
|
|
1263
|
+
const handoff = await _chunkOV3T5MUHcjs.attachLatestBrowserHandoff.call(void 0, );
|
|
1179
1264
|
if (!handoff) {
|
|
1180
1265
|
return { success: false };
|
|
1181
1266
|
}
|
|
@@ -1203,7 +1288,7 @@ ${sel.text}
|
|
|
1203
1288
|
`);
|
|
1204
1289
|
const pending = this.pendingPermissions.get(permRequestId);
|
|
1205
1290
|
if (pending) {
|
|
1206
|
-
const normalized =
|
|
1291
|
+
const normalized = _chunkTE4SYTWRcjs.normalizePermissionPromptResponse.call(void 0, decision);
|
|
1207
1292
|
process.stderr.write(`[RPC] Found pending permission, resolving with allowed=${normalized.decision}
|
|
1208
1293
|
`);
|
|
1209
1294
|
if (pending.ackTimeout) {
|
|
@@ -1534,9 +1619,10 @@ ${sel.text}
|
|
|
1534
1619
|
* Emit hook post-response notification
|
|
1535
1620
|
* Called after receiving a response from the LLM
|
|
1536
1621
|
*/
|
|
1537
|
-
emitHookPostResponse(tokensUsed, toolCallsCount, duration) {
|
|
1622
|
+
emitHookPostResponse(tokensUsed, toolCallsCount, duration, tokensUsageStatus = "actual") {
|
|
1538
1623
|
writeNotification(RPC_NOTIFICATIONS.HOOK_POST_RESPONSE, {
|
|
1539
1624
|
tokensUsed,
|
|
1625
|
+
tokensUsageStatus,
|
|
1540
1626
|
toolCallsCount,
|
|
1541
1627
|
duration,
|
|
1542
1628
|
timestamp: createTimestamp()
|
|
@@ -1558,9 +1644,10 @@ ${sel.text}
|
|
|
1558
1644
|
* Emit hook stop notification
|
|
1559
1645
|
* Called when agent finishes responding to a turn
|
|
1560
1646
|
*/
|
|
1561
|
-
emitHookStop(tokensUsed, toolCallsCount, duration) {
|
|
1647
|
+
emitHookStop(tokensUsed, toolCallsCount, duration, tokensUsageStatus = "actual") {
|
|
1562
1648
|
writeNotification(RPC_NOTIFICATIONS.HOOK_STOP, {
|
|
1563
1649
|
tokensUsed,
|
|
1650
|
+
tokensUsageStatus,
|
|
1564
1651
|
toolCallsCount,
|
|
1565
1652
|
duration,
|
|
1566
1653
|
timestamp: createTimestamp()
|
|
@@ -1630,7 +1717,7 @@ ${sel.text}
|
|
|
1630
1717
|
* Handle changes decision from client (accept/reject)
|
|
1631
1718
|
*/
|
|
1632
1719
|
async handleChangesDecision(requestId, params) {
|
|
1633
|
-
const fileManager = _optionalChain([this, 'access',
|
|
1720
|
+
const fileManager = _optionalChain([this, 'access', _51 => _51.agent, 'optionalAccess', _52 => _52.getFileManager, 'optionalCall', _53 => _53()]);
|
|
1634
1721
|
if (!fileManager) {
|
|
1635
1722
|
return {
|
|
1636
1723
|
success: false,
|
|
@@ -1677,12 +1764,12 @@ ${sel.text}
|
|
|
1677
1764
|
*/
|
|
1678
1765
|
async handleGetSkillsRegistry(requestId, params) {
|
|
1679
1766
|
try {
|
|
1680
|
-
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-
|
|
1767
|
+
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-22BB3J6H.cjs")));
|
|
1681
1768
|
const { GitHubRegistryFetcher } = await Promise.resolve().then(() => _interopRequireWildcard(require("./GitHubRegistryFetcher-CYJLF2XL.cjs")));
|
|
1682
1769
|
const cache = new CommunitySkillsCache();
|
|
1683
1770
|
const fetcher = new GitHubRegistryFetcher();
|
|
1684
1771
|
let registry;
|
|
1685
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
1772
|
+
if (_optionalChain([params, 'optionalAccess', _54 => _54.forceRefresh])) {
|
|
1686
1773
|
process.stderr.write("[RPC] Force refreshing skills registry from GitHub\n");
|
|
1687
1774
|
registry = await fetcher.fetchRegistry();
|
|
1688
1775
|
await cache.setRegistry(registry);
|
|
@@ -1729,7 +1816,7 @@ ${sel.text}
|
|
|
1729
1816
|
*/
|
|
1730
1817
|
async handleInstallSkill(requestId, params) {
|
|
1731
1818
|
try {
|
|
1732
|
-
const skillsRegistry = _optionalChain([this, 'access',
|
|
1819
|
+
const skillsRegistry = _optionalChain([this, 'access', _55 => _55.agent, 'optionalAccess', _56 => _56.getSkillsRegistry, 'optionalCall', _57 => _57()]);
|
|
1733
1820
|
if (!skillsRegistry) {
|
|
1734
1821
|
return {
|
|
1735
1822
|
success: false,
|
|
@@ -1737,9 +1824,9 @@ ${sel.text}
|
|
|
1737
1824
|
};
|
|
1738
1825
|
}
|
|
1739
1826
|
const workspaceRoot = this.workspace;
|
|
1740
|
-
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-
|
|
1827
|
+
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-22BB3J6H.cjs")));
|
|
1741
1828
|
const { GitHubRegistryFetcher } = await Promise.resolve().then(() => _interopRequireWildcard(require("./GitHubRegistryFetcher-CYJLF2XL.cjs")));
|
|
1742
|
-
const { AUTOHAND_PATHS, PROJECT_DIR_NAME } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-
|
|
1829
|
+
const { AUTOHAND_PATHS, PROJECT_DIR_NAME } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-MCCGUU5F.cjs")));
|
|
1743
1830
|
const path2 = await Promise.resolve().then(() => _interopRequireWildcard(require("path")));
|
|
1744
1831
|
const cache = new CommunitySkillsCache();
|
|
1745
1832
|
const fetcher = new GitHubRegistryFetcher();
|
|
@@ -1814,13 +1901,13 @@ ${sel.text}
|
|
|
1814
1901
|
*/
|
|
1815
1902
|
async handleLearnRecommend(requestId, params) {
|
|
1816
1903
|
try {
|
|
1817
|
-
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-
|
|
1818
|
-
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-
|
|
1904
|
+
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-VQLGBELN.cjs")));
|
|
1905
|
+
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-22BB3J6H.cjs")));
|
|
1819
1906
|
const { GitHubRegistryFetcher } = await Promise.resolve().then(() => _interopRequireWildcard(require("./GitHubRegistryFetcher-CYJLF2XL.cjs")));
|
|
1820
|
-
const { fetchRegistryWithFallback } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-
|
|
1821
|
-
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-
|
|
1907
|
+
const { fetchRegistryWithFallback } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-LXMVKVAV.cjs")));
|
|
1908
|
+
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-Q7RAYLPF.cjs")));
|
|
1822
1909
|
const workspace = this.workspace || process.cwd();
|
|
1823
|
-
const deep = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
1910
|
+
const deep = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _58 => _58.deep]), () => ( false));
|
|
1824
1911
|
writeNotification(RPC_NOTIFICATIONS.LEARN_PROGRESS, {
|
|
1825
1912
|
status: "analyzing",
|
|
1826
1913
|
timestamp: createTimestamp()
|
|
@@ -1840,14 +1927,14 @@ ${sel.text}
|
|
|
1840
1927
|
registry = await fetchRegistryWithFallback(cache, fetcher);
|
|
1841
1928
|
} catch (e4) {
|
|
1842
1929
|
}
|
|
1843
|
-
const skillsRegistry = _optionalChain([this, 'access',
|
|
1844
|
-
const installedSkills = _nullishCoalesce(_optionalChain([skillsRegistry, 'optionalAccess',
|
|
1845
|
-
const registrySkills = _nullishCoalesce(_optionalChain([registry, 'optionalAccess',
|
|
1930
|
+
const skillsRegistry = _optionalChain([this, 'access', _59 => _59.agent, 'optionalAccess', _60 => _60.getSkillsRegistry, 'optionalCall', _61 => _61()]);
|
|
1931
|
+
const installedSkills = _nullishCoalesce(_optionalChain([skillsRegistry, 'optionalAccess', _62 => _62.listSkills, 'call', _63 => _63()]), () => ( []));
|
|
1932
|
+
const registrySkills = _nullishCoalesce(_optionalChain([registry, 'optionalAccess', _64 => _64.skills]), () => ( []));
|
|
1846
1933
|
writeNotification(RPC_NOTIFICATIONS.LEARN_PROGRESS, {
|
|
1847
1934
|
status: "evaluating",
|
|
1848
1935
|
timestamp: createTimestamp()
|
|
1849
1936
|
});
|
|
1850
|
-
const llm = _optionalChain([this, 'access',
|
|
1937
|
+
const llm = _optionalChain([this, 'access', _65 => _65.agent, 'optionalAccess', _66 => _66.getLlmProvider, 'optionalCall', _67 => _67()]);
|
|
1851
1938
|
if (!llm) {
|
|
1852
1939
|
return {
|
|
1853
1940
|
success: false,
|
|
@@ -1886,9 +1973,9 @@ ${sel.text}
|
|
|
1886
1973
|
*/
|
|
1887
1974
|
async handleLearnUpdate(_requestId, _params) {
|
|
1888
1975
|
try {
|
|
1889
|
-
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-
|
|
1890
|
-
const { computeProjectHash, injectGeneratedMetadata } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-
|
|
1891
|
-
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-
|
|
1976
|
+
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-VQLGBELN.cjs")));
|
|
1977
|
+
const { computeProjectHash, injectGeneratedMetadata } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-LXMVKVAV.cjs")));
|
|
1978
|
+
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-Q7RAYLPF.cjs")));
|
|
1892
1979
|
const fse = await Promise.resolve().then(() => _interopRequireWildcard(require("fs-extra")));
|
|
1893
1980
|
const workspace = this.workspace || process.cwd();
|
|
1894
1981
|
writeNotification(RPC_NOTIFICATIONS.LEARN_PROGRESS, {
|
|
@@ -1899,18 +1986,18 @@ ${sel.text}
|
|
|
1899
1986
|
const analyzer = new ProjectAnalyzer(workspace);
|
|
1900
1987
|
const analysis = await analyzer.analyze();
|
|
1901
1988
|
const currentHash = computeProjectHash(analysis);
|
|
1902
|
-
const skillsRegistry = _optionalChain([this, 'access',
|
|
1989
|
+
const skillsRegistry = _optionalChain([this, 'access', _68 => _68.agent, 'optionalAccess', _69 => _69.getSkillsRegistry, 'optionalCall', _70 => _70()]);
|
|
1903
1990
|
if (!skillsRegistry) {
|
|
1904
1991
|
return { success: false, updated: 0, unchanged: 0, results: [], error: "Skills registry not available" };
|
|
1905
1992
|
}
|
|
1906
1993
|
const allSkills = skillsRegistry.listSkills();
|
|
1907
1994
|
const generatedSkills = allSkills.filter(
|
|
1908
|
-
(s) => _optionalChain([s, 'access',
|
|
1995
|
+
(s) => _optionalChain([s, 'access', _71 => _71.metadata, 'optionalAccess', _72 => _72["agentskill-source"]]) === "llm-generated"
|
|
1909
1996
|
);
|
|
1910
1997
|
if (generatedSkills.length === 0) {
|
|
1911
1998
|
return { success: true, updated: 0, unchanged: 0, results: [] };
|
|
1912
1999
|
}
|
|
1913
|
-
const llm = _optionalChain([this, 'access',
|
|
2000
|
+
const llm = _optionalChain([this, 'access', _73 => _73.agent, 'optionalAccess', _74 => _74.getLlmProvider, 'optionalCall', _75 => _75()]);
|
|
1914
2001
|
if (!llm) {
|
|
1915
2002
|
return { success: false, updated: 0, unchanged: 0, results: [], error: "LLM provider not available" };
|
|
1916
2003
|
}
|
|
@@ -1919,7 +2006,7 @@ ${sel.text}
|
|
|
1919
2006
|
let unchanged = 0;
|
|
1920
2007
|
const results = [];
|
|
1921
2008
|
for (const skill of generatedSkills) {
|
|
1922
|
-
const storedHash = _optionalChain([skill, 'access',
|
|
2009
|
+
const storedHash = _optionalChain([skill, 'access', _76 => _76.metadata, 'optionalAccess', _77 => _77["agentskill-project-hash"]]);
|
|
1923
2010
|
if (storedHash === currentHash) {
|
|
1924
2011
|
unchanged++;
|
|
1925
2012
|
results.push({ name: skill.name, status: "unchanged" });
|
|
@@ -1964,10 +2051,10 @@ description: ${generated.description}
|
|
|
1964
2051
|
*/
|
|
1965
2052
|
async handleLearnGenerate(requestId, params) {
|
|
1966
2053
|
try {
|
|
1967
|
-
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-
|
|
1968
|
-
const { computeProjectHash, injectGeneratedMetadata } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-
|
|
1969
|
-
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-
|
|
1970
|
-
const { AUTOHAND_PATHS, PROJECT_DIR_NAME } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-
|
|
2054
|
+
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-VQLGBELN.cjs")));
|
|
2055
|
+
const { computeProjectHash, injectGeneratedMetadata } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-LXMVKVAV.cjs")));
|
|
2056
|
+
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-Q7RAYLPF.cjs")));
|
|
2057
|
+
const { AUTOHAND_PATHS, PROJECT_DIR_NAME } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-MCCGUU5F.cjs")));
|
|
1971
2058
|
const fse = await Promise.resolve().then(() => _interopRequireWildcard(require("fs-extra")));
|
|
1972
2059
|
const path2 = await Promise.resolve().then(() => _interopRequireWildcard(require("path")));
|
|
1973
2060
|
const workspace = this.workspace || process.cwd();
|
|
@@ -1978,7 +2065,7 @@ description: ${generated.description}
|
|
|
1978
2065
|
});
|
|
1979
2066
|
process.stderr.write(`[RPC] Learn generate: scope=${scope}
|
|
1980
2067
|
`);
|
|
1981
|
-
const llm = _optionalChain([this, 'access',
|
|
2068
|
+
const llm = _optionalChain([this, 'access', _78 => _78.agent, 'optionalAccess', _79 => _79.getLlmProvider, 'optionalCall', _80 => _80()]);
|
|
1982
2069
|
if (!llm) {
|
|
1983
2070
|
return { success: false, error: "LLM provider not available" };
|
|
1984
2071
|
}
|
|
@@ -2023,14 +2110,14 @@ description: ${generated.description}
|
|
|
2023
2110
|
* Get paginated session history
|
|
2024
2111
|
*/
|
|
2025
2112
|
async handleGetHistory(_requestId, params) {
|
|
2026
|
-
const sessionManager = _optionalChain([this, 'access',
|
|
2113
|
+
const sessionManager = _optionalChain([this, 'access', _81 => _81.agent, 'optionalAccess', _82 => _82.getSessionManager, 'optionalCall', _83 => _83()]);
|
|
2027
2114
|
if (!sessionManager) {
|
|
2028
2115
|
return { sessions: [], currentPage: 1, totalPages: 0, totalItems: 0 };
|
|
2029
2116
|
}
|
|
2030
2117
|
try {
|
|
2031
2118
|
const allSessions = await sessionManager.listSessions();
|
|
2032
|
-
const page = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
2033
|
-
const pageSize = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
2119
|
+
const page = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _84 => _84.page]), () => ( 1));
|
|
2120
|
+
const pageSize = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _85 => _85.pageSize]), () => ( 20));
|
|
2034
2121
|
const totalItems = allSessions.length;
|
|
2035
2122
|
const totalPages = Math.max(1, Math.ceil(totalItems / pageSize));
|
|
2036
2123
|
const startIndex = (page - 1) * pageSize;
|
|
@@ -2060,7 +2147,7 @@ description: ${generated.description}
|
|
|
2060
2147
|
* Get a specific session's metadata and messages
|
|
2061
2148
|
*/
|
|
2062
2149
|
async handleGetSession(_requestId, params) {
|
|
2063
|
-
const sessionManager = _optionalChain([this, 'access',
|
|
2150
|
+
const sessionManager = _optionalChain([this, 'access', _86 => _86.agent, 'optionalAccess', _87 => _87.getSessionManager, 'optionalCall', _88 => _88()]);
|
|
2064
2151
|
if (!sessionManager) {
|
|
2065
2152
|
return { success: false, error: "Session manager not available" };
|
|
2066
2153
|
}
|
|
@@ -2114,22 +2201,32 @@ description: ${generated.description}
|
|
|
2114
2201
|
* Set YOLO (unrestricted) mode with pattern and optional timeout
|
|
2115
2202
|
*/
|
|
2116
2203
|
handleYoloSet(_requestId, params) {
|
|
2117
|
-
const permissionManager = _optionalChain([this, 'access',
|
|
2204
|
+
const permissionManager = _optionalChain([this, 'access', _89 => _89.agent, 'optionalAccess', _90 => _90.getPermissionManager, 'optionalCall', _91 => _91()]);
|
|
2118
2205
|
if (!permissionManager) {
|
|
2119
2206
|
return { success: false };
|
|
2120
2207
|
}
|
|
2121
2208
|
try {
|
|
2209
|
+
const revertGeneration = ++this.yoloRevertGeneration;
|
|
2210
|
+
if (this.yoloRevertTimer) {
|
|
2211
|
+
clearTimeout(this.yoloRevertTimer);
|
|
2212
|
+
this.yoloRevertTimer = null;
|
|
2213
|
+
}
|
|
2122
2214
|
permissionManager.setMode("unrestricted");
|
|
2123
2215
|
process.stderr.write(`[RPC] YOLO mode enabled with pattern: ${params.pattern}
|
|
2124
2216
|
`);
|
|
2125
2217
|
let expiresIn;
|
|
2126
2218
|
if (params.timeoutSeconds && params.timeoutSeconds > 0) {
|
|
2127
2219
|
expiresIn = params.timeoutSeconds;
|
|
2128
|
-
setTimeout(() => {
|
|
2220
|
+
this.yoloRevertTimer = setTimeout(() => {
|
|
2221
|
+
if (this.yoloRevertGeneration !== revertGeneration) {
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2224
|
+
this.yoloRevertTimer = null;
|
|
2129
2225
|
permissionManager.setMode("interactive");
|
|
2130
2226
|
process.stderr.write(`[RPC] YOLO mode expired, reverted to interactive
|
|
2131
2227
|
`);
|
|
2132
2228
|
}, params.timeoutSeconds * 1e3);
|
|
2229
|
+
_optionalChain([this, 'access', _92 => _92.yoloRevertTimer, 'access', _93 => _93.unref, 'optionalCall', _94 => _94()]);
|
|
2133
2230
|
}
|
|
2134
2231
|
return { success: true, expiresIn };
|
|
2135
2232
|
} catch (error) {
|
|
@@ -2143,7 +2240,7 @@ description: ${generated.description}
|
|
|
2143
2240
|
* List all MCP servers and their connection status
|
|
2144
2241
|
*/
|
|
2145
2242
|
handleMcpListServers(_requestId) {
|
|
2146
|
-
const mcpManager = _optionalChain([this, 'access',
|
|
2243
|
+
const mcpManager = _optionalChain([this, 'access', _95 => _95.agent, 'optionalAccess', _96 => _96.getMcpManager, 'optionalCall', _97 => _97()]);
|
|
2147
2244
|
if (!mcpManager) {
|
|
2148
2245
|
return { servers: [] };
|
|
2149
2246
|
}
|
|
@@ -2153,18 +2250,18 @@ description: ${generated.description}
|
|
|
2153
2250
|
* List all MCP tools, optionally filtered by server name
|
|
2154
2251
|
*/
|
|
2155
2252
|
handleMcpListTools(_requestId, params) {
|
|
2156
|
-
const mcpManager = _optionalChain([this, 'access',
|
|
2253
|
+
const mcpManager = _optionalChain([this, 'access', _98 => _98.agent, 'optionalAccess', _99 => _99.getMcpManager, 'optionalCall', _100 => _100()]);
|
|
2157
2254
|
if (!mcpManager) {
|
|
2158
2255
|
return { tools: [] };
|
|
2159
2256
|
}
|
|
2160
|
-
const allTools = _optionalChain([params, 'optionalAccess',
|
|
2257
|
+
const allTools = _optionalChain([params, 'optionalAccess', _101 => _101.serverName]) ? mcpManager.getToolsForServer(params.serverName) : mcpManager.getAllTools();
|
|
2161
2258
|
return {
|
|
2162
2259
|
tools: allTools.map((t) => {
|
|
2163
2260
|
const parsed = _chunkDI57A4BXcjs.McpClientManager.parseMcpToolName(t.name);
|
|
2164
2261
|
return {
|
|
2165
2262
|
name: t.name,
|
|
2166
2263
|
description: t.description,
|
|
2167
|
-
serverName: _nullishCoalesce(_optionalChain([parsed, 'optionalAccess',
|
|
2264
|
+
serverName: _nullishCoalesce(_optionalChain([parsed, 'optionalAccess', _102 => _102.serverName]), () => ( "unknown"))
|
|
2168
2265
|
};
|
|
2169
2266
|
})
|
|
2170
2267
|
};
|
|
@@ -2173,7 +2270,7 @@ description: ${generated.description}
|
|
|
2173
2270
|
* List persisted meta-tools and registry diagnostics for non-interactive clients.
|
|
2174
2271
|
*/
|
|
2175
2272
|
handleGetToolsRegistry() {
|
|
2176
|
-
const registry = _optionalChain([this, 'access',
|
|
2273
|
+
const registry = _optionalChain([this, 'access', _103 => _103.agent, 'optionalAccess', _104 => _104.getToolsRegistry, 'optionalCall', _105 => _105()]);
|
|
2177
2274
|
if (!registry) {
|
|
2178
2275
|
return { tools: [], diagnostics: [] };
|
|
2179
2276
|
}
|
|
@@ -2393,7 +2490,7 @@ description: ${generated.description}
|
|
|
2393
2490
|
* Handle output events from the agent
|
|
2394
2491
|
*/
|
|
2395
2492
|
handleAgentOutput(event) {
|
|
2396
|
-
process.stderr.write(`[RPC DEBUG] handleAgentOutput: type=${event.type}, content length=${_nullishCoalesce(_optionalChain([event, 'access',
|
|
2493
|
+
process.stderr.write(`[RPC DEBUG] handleAgentOutput: type=${event.type}, content length=${_nullishCoalesce(_optionalChain([event, 'access', _106 => _106.content, 'optionalAccess', _107 => _107.length]), () => ( 0))}
|
|
2397
2494
|
`);
|
|
2398
2495
|
switch (event.type) {
|
|
2399
2496
|
case "thinking":
|
|
@@ -2504,14 +2601,14 @@ description: ${generated.description}
|
|
|
2504
2601
|
toolCalls = msg.tool_calls.map((tc) => {
|
|
2505
2602
|
let args = {};
|
|
2506
2603
|
try {
|
|
2507
|
-
if (_optionalChain([tc, 'access',
|
|
2604
|
+
if (_optionalChain([tc, 'access', _108 => _108.function, 'optionalAccess', _109 => _109.arguments])) {
|
|
2508
2605
|
args = JSON.parse(tc.function.arguments);
|
|
2509
2606
|
}
|
|
2510
2607
|
} catch (e6) {
|
|
2511
2608
|
}
|
|
2512
2609
|
return {
|
|
2513
2610
|
id: tc.id,
|
|
2514
|
-
name: _nullishCoalesce(_optionalChain([tc, 'access',
|
|
2611
|
+
name: _nullishCoalesce(_optionalChain([tc, 'access', _110 => _110.function, 'optionalAccess', _111 => _111.name]), () => ( "unknown")),
|
|
2515
2612
|
args
|
|
2516
2613
|
};
|
|
2517
2614
|
});
|
|
@@ -2532,7 +2629,7 @@ description: ${generated.description}
|
|
|
2532
2629
|
*/
|
|
2533
2630
|
async handleAutomodeStart(requestId, params) {
|
|
2534
2631
|
try {
|
|
2535
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2632
|
+
const automodeManager = _optionalChain([this, 'access', _112 => _112.agent, 'optionalAccess', _113 => _113.getAutomodeManager, 'optionalCall', _114 => _114()]);
|
|
2536
2633
|
if (!automodeManager) {
|
|
2537
2634
|
return {
|
|
2538
2635
|
success: false,
|
|
@@ -2563,7 +2660,7 @@ description: ${generated.description}
|
|
|
2563
2660
|
* Get auto-mode status
|
|
2564
2661
|
*/
|
|
2565
2662
|
handleAutomodeStatus(_requestId) {
|
|
2566
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2663
|
+
const automodeManager = _optionalChain([this, 'access', _115 => _115.agent, 'optionalAccess', _116 => _116.getAutomodeManager, 'optionalCall', _117 => _117()]);
|
|
2567
2664
|
if (!automodeManager) {
|
|
2568
2665
|
return {
|
|
2569
2666
|
active: false,
|
|
@@ -2591,7 +2688,7 @@ description: ${generated.description}
|
|
|
2591
2688
|
*/
|
|
2592
2689
|
async handleAutomodePause(_requestId) {
|
|
2593
2690
|
try {
|
|
2594
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2691
|
+
const automodeManager = _optionalChain([this, 'access', _118 => _118.agent, 'optionalAccess', _119 => _119.getAutomodeManager, 'optionalCall', _120 => _120()]);
|
|
2595
2692
|
if (!automodeManager) {
|
|
2596
2693
|
return {
|
|
2597
2694
|
success: false,
|
|
@@ -2625,7 +2722,7 @@ description: ${generated.description}
|
|
|
2625
2722
|
*/
|
|
2626
2723
|
async handleAutomodeResume(_requestId) {
|
|
2627
2724
|
try {
|
|
2628
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2725
|
+
const automodeManager = _optionalChain([this, 'access', _121 => _121.agent, 'optionalAccess', _122 => _122.getAutomodeManager, 'optionalCall', _123 => _123()]);
|
|
2629
2726
|
if (!automodeManager) {
|
|
2630
2727
|
return {
|
|
2631
2728
|
success: false,
|
|
@@ -2659,7 +2756,7 @@ description: ${generated.description}
|
|
|
2659
2756
|
*/
|
|
2660
2757
|
async handleAutomodeCancel(requestId, reason) {
|
|
2661
2758
|
try {
|
|
2662
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2759
|
+
const automodeManager = _optionalChain([this, 'access', _124 => _124.agent, 'optionalAccess', _125 => _125.getAutomodeManager, 'optionalCall', _126 => _126()]);
|
|
2663
2760
|
if (!automodeManager) {
|
|
2664
2761
|
return {
|
|
2665
2762
|
success: false,
|
|
@@ -2687,7 +2784,7 @@ description: ${generated.description}
|
|
|
2687
2784
|
*/
|
|
2688
2785
|
handleAutomodeGetLog(requestId, limit) {
|
|
2689
2786
|
try {
|
|
2690
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2787
|
+
const automodeManager = _optionalChain([this, 'access', _127 => _127.agent, 'optionalAccess', _128 => _128.getAutomodeManager, 'optionalCall', _129 => _129()]);
|
|
2691
2788
|
if (!automodeManager) {
|
|
2692
2789
|
return {
|
|
2693
2790
|
success: false,
|
|
@@ -2724,7 +2821,7 @@ description: ${generated.description}
|
|
|
2724
2821
|
*/
|
|
2725
2822
|
async handleSetPermissionMode(params) {
|
|
2726
2823
|
try {
|
|
2727
|
-
const previousMode = _optionalChain([this, 'access',
|
|
2824
|
+
const previousMode = _optionalChain([this, 'access', _130 => _130.config, 'optionalAccess', _131 => _131.permissionMode]) || "default";
|
|
2728
2825
|
this.config.permissionMode = params.mode;
|
|
2729
2826
|
return {
|
|
2730
2827
|
success: true,
|
|
@@ -2734,8 +2831,8 @@ description: ${generated.description}
|
|
|
2734
2831
|
} catch (e7) {
|
|
2735
2832
|
return {
|
|
2736
2833
|
success: false,
|
|
2737
|
-
currentMode: _optionalChain([this, 'access',
|
|
2738
|
-
previousMode: _optionalChain([this, 'access',
|
|
2834
|
+
currentMode: _optionalChain([this, 'access', _132 => _132.config, 'optionalAccess', _133 => _133.permissionMode]) || "default",
|
|
2835
|
+
previousMode: _optionalChain([this, 'access', _134 => _134.config, 'optionalAccess', _135 => _135.permissionMode]) || "default"
|
|
2739
2836
|
};
|
|
2740
2837
|
}
|
|
2741
2838
|
}
|
|
@@ -2752,7 +2849,7 @@ description: ${generated.description}
|
|
|
2752
2849
|
} catch (e8) {
|
|
2753
2850
|
return {
|
|
2754
2851
|
success: false,
|
|
2755
|
-
currentModel: _optionalChain([this, 'access',
|
|
2852
|
+
currentModel: _optionalChain([this, 'access', _136 => _136.config, 'optionalAccess', _137 => _137.model])
|
|
2756
2853
|
};
|
|
2757
2854
|
}
|
|
2758
2855
|
}
|
|
@@ -2769,7 +2866,7 @@ description: ${generated.description}
|
|
|
2769
2866
|
} catch (e9) {
|
|
2770
2867
|
return {
|
|
2771
2868
|
success: false,
|
|
2772
|
-
currentMaxThinkingTokens: _optionalChain([this, 'access',
|
|
2869
|
+
currentMaxThinkingTokens: _optionalChain([this, 'access', _138 => _138.config, 'optionalAccess', _139 => _139.maxThinkingTokens]) || null
|
|
2773
2870
|
};
|
|
2774
2871
|
}
|
|
2775
2872
|
}
|
|
@@ -2784,7 +2881,7 @@ description: ${generated.description}
|
|
|
2784
2881
|
this.config[key] = value;
|
|
2785
2882
|
appliedSettings.push(key);
|
|
2786
2883
|
if (key === "contextCompact" && typeof value === "boolean") {
|
|
2787
|
-
_optionalChain([this, 'access',
|
|
2884
|
+
_optionalChain([this, 'access', _140 => _140.agent, 'optionalAccess', _141 => _141.setContextCompaction, 'call', _142 => _142(value)]);
|
|
2788
2885
|
}
|
|
2789
2886
|
}
|
|
2790
2887
|
}
|
|
@@ -2848,9 +2945,9 @@ description: ${generated.description}
|
|
|
2848
2945
|
*/
|
|
2849
2946
|
async handleGetContextUsage() {
|
|
2850
2947
|
try {
|
|
2851
|
-
if (_optionalChain([this, 'access',
|
|
2948
|
+
if (_optionalChain([this, 'access', _143 => _143.agent, 'optionalAccess', _144 => _144.getContextOrchestrator])) {
|
|
2852
2949
|
const orchestrator = this.agent.getContextOrchestrator();
|
|
2853
|
-
const tools = _nullishCoalesce(_optionalChain([this, 'access',
|
|
2950
|
+
const tools = _nullishCoalesce(_optionalChain([this, 'access', _145 => _145.agent, 'access', _146 => _146.getToolDefinitions, 'optionalCall', _147 => _147()]), () => ( []));
|
|
2854
2951
|
const usage = orchestrator.getExtendedUsage(tools);
|
|
2855
2952
|
return {
|
|
2856
2953
|
systemPrompt: usage.systemPrompt,
|
|
@@ -2889,10 +2986,10 @@ description: ${generated.description}
|
|
|
2889
2986
|
*/
|
|
2890
2987
|
async handleSetContextCompact(params) {
|
|
2891
2988
|
try {
|
|
2892
|
-
_optionalChain([this, 'access',
|
|
2989
|
+
_optionalChain([this, 'access', _148 => _148.agent, 'optionalAccess', _149 => _149.setContextCompaction, 'call', _150 => _150(params.enabled)]);
|
|
2893
2990
|
return { enabled: params.enabled };
|
|
2894
2991
|
} catch (e14) {
|
|
2895
|
-
return { enabled: _nullishCoalesce(_optionalChain([this, 'access',
|
|
2992
|
+
return { enabled: _nullishCoalesce(_optionalChain([this, 'access', _151 => _151.agent, 'optionalAccess', _152 => _152.isContextCompactionEnabled, 'optionalCall', _153 => _153()]), () => ( false)) };
|
|
2896
2993
|
}
|
|
2897
2994
|
}
|
|
2898
2995
|
/**
|
|
@@ -2980,6 +3077,12 @@ description: ${generated.description}
|
|
|
2980
3077
|
}
|
|
2981
3078
|
}
|
|
2982
3079
|
}, _class2);
|
|
3080
|
+
function parseRpcGoalStatus(value) {
|
|
3081
|
+
if (value === "active" || value === "paused" || value === "complete" || value === "budgetLimited") {
|
|
3082
|
+
return value;
|
|
3083
|
+
}
|
|
3084
|
+
return void 0;
|
|
3085
|
+
}
|
|
2983
3086
|
|
|
2984
3087
|
// src/modes/rpc/index.ts
|
|
2985
3088
|
var originalConsole = {
|
|
@@ -3026,7 +3129,7 @@ async function runRpcMode(options) {
|
|
|
3026
3129
|
let adapter = null;
|
|
3027
3130
|
let agent = null;
|
|
3028
3131
|
try {
|
|
3029
|
-
const config = await
|
|
3132
|
+
const config = await _chunkX5P6QQOBcjs.loadConfig.call(void 0, options.config, process.cwd());
|
|
3030
3133
|
const normalizedYolo = _chunkJ5HE6CUMcjs.normalizeYoloInput.call(void 0, options.yolo);
|
|
3031
3134
|
if (normalizedYolo) {
|
|
3032
3135
|
try {
|
|
@@ -3044,7 +3147,7 @@ async function runRpcMode(options) {
|
|
|
3044
3147
|
}
|
|
3045
3148
|
const originalWorkspaceRoot = _nullishCoalesce(options.path, () => ( process.cwd()));
|
|
3046
3149
|
let workspaceRoot = originalWorkspaceRoot;
|
|
3047
|
-
const workspacePathValidation = await
|
|
3150
|
+
const workspacePathValidation = await _chunkQLZOMZO5cjs.validateWorkspacePath.call(void 0, originalWorkspaceRoot);
|
|
3048
3151
|
if (!workspacePathValidation.valid) {
|
|
3049
3152
|
writeErrorResponse(
|
|
3050
3153
|
null,
|
|
@@ -3062,7 +3165,7 @@ async function runRpcMode(options) {
|
|
|
3062
3165
|
);
|
|
3063
3166
|
process.exit(1);
|
|
3064
3167
|
}
|
|
3065
|
-
const isAuthed = await
|
|
3168
|
+
const isAuthed = await _chunkCO2AADYUcjs.checkAuthenticated.call(void 0, config);
|
|
3066
3169
|
if (!isAuthed) {
|
|
3067
3170
|
writeErrorResponse(
|
|
3068
3171
|
null,
|
|
@@ -3075,8 +3178,8 @@ async function runRpcMode(options) {
|
|
|
3075
3178
|
config.ui = {};
|
|
3076
3179
|
}
|
|
3077
3180
|
config.ui.useInkRenderer = false;
|
|
3078
|
-
if (
|
|
3079
|
-
const sessionWorktree =
|
|
3181
|
+
if (_chunkM7B7RRBKcjs.isSessionWorktreeEnabled.call(void 0, options.worktree)) {
|
|
3182
|
+
const sessionWorktree = _chunkM7B7RRBKcjs.prepareSessionWorktree.call(void 0, {
|
|
3080
3183
|
cwd: originalWorkspaceRoot,
|
|
3081
3184
|
worktree: options.worktree,
|
|
3082
3185
|
mode: "rpc"
|
|
@@ -3114,12 +3217,12 @@ async function runRpcMode(options) {
|
|
|
3114
3217
|
additionalDirs: additionalDirs.length > 0 ? additionalDirs : void 0,
|
|
3115
3218
|
isRpcMode: true
|
|
3116
3219
|
};
|
|
3117
|
-
const provider =
|
|
3220
|
+
const provider = _chunkHC2Q6A3Ecjs.ProviderFactory.create(config);
|
|
3118
3221
|
if (options.model) {
|
|
3119
3222
|
provider.setModel(options.model);
|
|
3120
3223
|
}
|
|
3121
3224
|
const files = new (0, _chunk5K3CDSWZcjs.FileActionManager)(workspaceRoot, additionalDirs);
|
|
3122
|
-
agent = new (0,
|
|
3225
|
+
agent = new (0, _chunkCRTCZ4WLcjs.AutohandAgent)(provider, files, runtime);
|
|
3123
3226
|
await agent.initializeForRPC();
|
|
3124
3227
|
const conversation = _chunkDA7NBAJKcjs.ConversationManager.getInstance();
|
|
3125
3228
|
try {
|
|
@@ -3131,19 +3234,20 @@ async function runRpcMode(options) {
|
|
|
3131
3234
|
adapter.initialize(
|
|
3132
3235
|
agent,
|
|
3133
3236
|
conversation,
|
|
3134
|
-
_nullishCoalesce(_nullishCoalesce(options.model, () => ( _optionalChain([config, 'access',
|
|
3237
|
+
_nullishCoalesce(_nullishCoalesce(options.model, () => ( _optionalChain([config, 'access', _154 => _154.openrouter, 'optionalAccess', _155 => _155.model]))), () => ( "unknown")),
|
|
3135
3238
|
workspaceRoot,
|
|
3136
|
-
|
|
3239
|
+
config,
|
|
3240
|
+
_optionalChain([config, 'access', _156 => _156.mcp, 'optionalAccess', _157 => _157.servers])
|
|
3137
3241
|
);
|
|
3138
3242
|
agent.setConfirmationCallback(async (message, context) => {
|
|
3139
3243
|
if (!adapter) {
|
|
3140
3244
|
throw new Error("RPC adapter not initialized");
|
|
3141
3245
|
}
|
|
3142
|
-
const tool = _nullishCoalesce(_optionalChain([context, 'optionalAccess',
|
|
3246
|
+
const tool = _nullishCoalesce(_optionalChain([context, 'optionalAccess', _158 => _158.tool]), () => ( "action"));
|
|
3143
3247
|
const description = message;
|
|
3144
3248
|
const permContext = {};
|
|
3145
|
-
if (_optionalChain([context, 'optionalAccess',
|
|
3146
|
-
if (_optionalChain([context, 'optionalAccess',
|
|
3249
|
+
if (_optionalChain([context, 'optionalAccess', _159 => _159.command])) permContext.command = context.command;
|
|
3250
|
+
if (_optionalChain([context, 'optionalAccess', _160 => _160.path])) permContext.path = context.path;
|
|
3147
3251
|
return adapter.requestPermission(tool, description, permContext);
|
|
3148
3252
|
});
|
|
3149
3253
|
agent.setDirectoryAccessCallback(async (path2, reason) => {
|
|
@@ -3170,12 +3274,12 @@ async function runRpcMode(options) {
|
|
|
3170
3274
|
writeInternalError(null, message);
|
|
3171
3275
|
}
|
|
3172
3276
|
}
|
|
3173
|
-
_optionalChain([adapter, 'optionalAccess',
|
|
3277
|
+
_optionalChain([adapter, 'optionalAccess', _161 => _161.shutdown, 'call', _162 => _162("disconnected")]);
|
|
3174
3278
|
process.exit(0);
|
|
3175
3279
|
} catch (error) {
|
|
3176
3280
|
const message = error instanceof Error ? error.message : String(error);
|
|
3177
3281
|
writeErrorResponse(null, JSON_RPC_ERROR_CODES.INTERNAL_ERROR, `Initialization error: ${message}`);
|
|
3178
|
-
_optionalChain([adapter, 'optionalAccess',
|
|
3282
|
+
_optionalChain([adapter, 'optionalAccess', _163 => _163.shutdown, 'call', _164 => _164("error")]);
|
|
3179
3283
|
process.exit(1);
|
|
3180
3284
|
}
|
|
3181
3285
|
}
|
|
@@ -3208,7 +3312,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3208
3312
|
switch (method) {
|
|
3209
3313
|
case RPC_METHODS.PROMPT: {
|
|
3210
3314
|
const promptParams = params;
|
|
3211
|
-
if (!_optionalChain([promptParams, 'optionalAccess',
|
|
3315
|
+
if (!_optionalChain([promptParams, 'optionalAccess', _165 => _165.message])) {
|
|
3212
3316
|
if (shouldRespond) {
|
|
3213
3317
|
return createErrorResponse(
|
|
3214
3318
|
id,
|
|
@@ -3250,7 +3354,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3250
3354
|
}
|
|
3251
3355
|
case RPC_METHODS.GET_MESSAGES: {
|
|
3252
3356
|
const messagesParams = params;
|
|
3253
|
-
result = adapter.handleGetMessages(id, _optionalChain([messagesParams, 'optionalAccess',
|
|
3357
|
+
result = adapter.handleGetMessages(id, _optionalChain([messagesParams, 'optionalAccess', _166 => _166.limit]));
|
|
3254
3358
|
break;
|
|
3255
3359
|
}
|
|
3256
3360
|
case RPC_METHODS.BROWSER_HANDOFF_CREATE: {
|
|
@@ -3260,7 +3364,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3260
3364
|
}
|
|
3261
3365
|
case RPC_METHODS.BROWSER_HANDOFF_ATTACH: {
|
|
3262
3366
|
const handoffAttachParams = params;
|
|
3263
|
-
if (!_optionalChain([handoffAttachParams, 'optionalAccess',
|
|
3367
|
+
if (!_optionalChain([handoffAttachParams, 'optionalAccess', _167 => _167.token])) {
|
|
3264
3368
|
if (shouldRespond) {
|
|
3265
3369
|
return createErrorResponse(
|
|
3266
3370
|
id,
|
|
@@ -3280,7 +3384,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3280
3384
|
}
|
|
3281
3385
|
case RPC_METHODS.PERMISSION_RESPONSE: {
|
|
3282
3386
|
const permParams = params;
|
|
3283
|
-
if (!_optionalChain([permParams, 'optionalAccess',
|
|
3387
|
+
if (!_optionalChain([permParams, 'optionalAccess', _168 => _168.requestId]) || _optionalChain([permParams, 'optionalAccess', _169 => _169.decision]) === void 0 && _optionalChain([permParams, 'optionalAccess', _170 => _170.allowed]) === void 0) {
|
|
3284
3388
|
if (shouldRespond) {
|
|
3285
3389
|
return createErrorResponse(
|
|
3286
3390
|
id,
|
|
@@ -3299,7 +3403,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3299
3403
|
}
|
|
3300
3404
|
case RPC_METHODS.PERMISSION_ACKNOWLEDGED: {
|
|
3301
3405
|
const ackParams = params;
|
|
3302
|
-
if (!_optionalChain([ackParams, 'optionalAccess',
|
|
3406
|
+
if (!_optionalChain([ackParams, 'optionalAccess', _171 => _171.requestId])) {
|
|
3303
3407
|
if (shouldRespond) {
|
|
3304
3408
|
return createErrorResponse(
|
|
3305
3409
|
id,
|
|
@@ -3314,7 +3418,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3314
3418
|
}
|
|
3315
3419
|
case RPC_METHODS.DIRECTORY_ACCESS_RESPONSE: {
|
|
3316
3420
|
const dirParams = params;
|
|
3317
|
-
if (!_optionalChain([dirParams, 'optionalAccess',
|
|
3421
|
+
if (!_optionalChain([dirParams, 'optionalAccess', _172 => _172.requestId]) || typeof dirParams.granted !== "boolean") {
|
|
3318
3422
|
if (shouldRespond) {
|
|
3319
3423
|
return createErrorResponse(
|
|
3320
3424
|
id,
|
|
@@ -3329,7 +3433,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3329
3433
|
}
|
|
3330
3434
|
case RPC_METHODS.DIRECTORY_ACCESS_ACKNOWLEDGED: {
|
|
3331
3435
|
const dirAckParams = params;
|
|
3332
|
-
if (!_optionalChain([dirAckParams, 'optionalAccess',
|
|
3436
|
+
if (!_optionalChain([dirAckParams, 'optionalAccess', _173 => _173.requestId])) {
|
|
3333
3437
|
if (shouldRespond) {
|
|
3334
3438
|
return createErrorResponse(
|
|
3335
3439
|
id,
|
|
@@ -3344,7 +3448,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3344
3448
|
}
|
|
3345
3449
|
case RPC_METHODS.CHANGES_DECISION: {
|
|
3346
3450
|
const decisionParams = params;
|
|
3347
|
-
if (!_optionalChain([decisionParams, 'optionalAccess',
|
|
3451
|
+
if (!_optionalChain([decisionParams, 'optionalAccess', _174 => _174.batchId]) || !_optionalChain([decisionParams, 'optionalAccess', _175 => _175.action])) {
|
|
3348
3452
|
if (shouldRespond) {
|
|
3349
3453
|
return createErrorResponse(
|
|
3350
3454
|
id,
|
|
@@ -3364,7 +3468,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3364
3468
|
}
|
|
3365
3469
|
case RPC_METHODS.INSTALL_SKILL: {
|
|
3366
3470
|
const installParams = params;
|
|
3367
|
-
if (!_optionalChain([installParams, 'optionalAccess',
|
|
3471
|
+
if (!_optionalChain([installParams, 'optionalAccess', _176 => _176.skillName]) || !_optionalChain([installParams, 'optionalAccess', _177 => _177.scope])) {
|
|
3368
3472
|
if (shouldRespond) {
|
|
3369
3473
|
return createErrorResponse(
|
|
3370
3474
|
id,
|
|
@@ -3380,7 +3484,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3380
3484
|
// Auto-mode RPC methods
|
|
3381
3485
|
case RPC_METHODS.AUTOMODE_START: {
|
|
3382
3486
|
const startParams = params;
|
|
3383
|
-
if (!_optionalChain([startParams, 'optionalAccess',
|
|
3487
|
+
if (!_optionalChain([startParams, 'optionalAccess', _178 => _178.prompt])) {
|
|
3384
3488
|
if (shouldRespond) {
|
|
3385
3489
|
return createErrorResponse(
|
|
3386
3490
|
id,
|
|
@@ -3407,17 +3511,17 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3407
3511
|
}
|
|
3408
3512
|
case RPC_METHODS.AUTOMODE_CANCEL: {
|
|
3409
3513
|
const cancelParams = params;
|
|
3410
|
-
result = await adapter.handleAutomodeCancel(id, _optionalChain([cancelParams, 'optionalAccess',
|
|
3514
|
+
result = await adapter.handleAutomodeCancel(id, _optionalChain([cancelParams, 'optionalAccess', _179 => _179.reason]));
|
|
3411
3515
|
break;
|
|
3412
3516
|
}
|
|
3413
3517
|
case RPC_METHODS.AUTOMODE_GET_LOG: {
|
|
3414
3518
|
const logParams = params;
|
|
3415
|
-
result = adapter.handleAutomodeGetLog(id, _optionalChain([logParams, 'optionalAccess',
|
|
3519
|
+
result = adapter.handleAutomodeGetLog(id, _optionalChain([logParams, 'optionalAccess', _180 => _180.limit]));
|
|
3416
3520
|
break;
|
|
3417
3521
|
}
|
|
3418
3522
|
case RPC_METHODS.PLAN_MODE_SET: {
|
|
3419
3523
|
const planParams = params;
|
|
3420
|
-
if (_optionalChain([planParams, 'optionalAccess',
|
|
3524
|
+
if (_optionalChain([planParams, 'optionalAccess', _181 => _181.enabled]) === void 0) {
|
|
3421
3525
|
if (shouldRespond) {
|
|
3422
3526
|
return createErrorResponse(
|
|
3423
3527
|
id,
|
|
@@ -3449,7 +3553,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3449
3553
|
}
|
|
3450
3554
|
case RPC_METHODS.YOLO_SET: {
|
|
3451
3555
|
const yoloParams = params;
|
|
3452
|
-
if (!_optionalChain([yoloParams, 'optionalAccess',
|
|
3556
|
+
if (!_optionalChain([yoloParams, 'optionalAccess', _182 => _182.pattern])) {
|
|
3453
3557
|
if (shouldRespond) {
|
|
3454
3558
|
return createErrorResponse(
|
|
3455
3559
|
id,
|
|
@@ -3473,7 +3577,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3473
3577
|
}
|
|
3474
3578
|
case RPC_METHODS.MCP_SET_VSCODE_TOOLS: {
|
|
3475
3579
|
const setToolsParams = params;
|
|
3476
|
-
if (!_optionalChain([setToolsParams, 'optionalAccess',
|
|
3580
|
+
if (!_optionalChain([setToolsParams, 'optionalAccess', _183 => _183.tools])) {
|
|
3477
3581
|
if (shouldRespond) {
|
|
3478
3582
|
return createErrorResponse(
|
|
3479
3583
|
id,
|
|
@@ -3488,7 +3592,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3488
3592
|
}
|
|
3489
3593
|
case RPC_METHODS.MCP_INVOKE_RESPONSE: {
|
|
3490
3594
|
const invokeParams = params;
|
|
3491
|
-
if (!_optionalChain([invokeParams, 'optionalAccess',
|
|
3595
|
+
if (!_optionalChain([invokeParams, 'optionalAccess', _184 => _184.requestId]) || _optionalChain([invokeParams, 'optionalAccess', _185 => _185.success]) === void 0) {
|
|
3492
3596
|
if (shouldRespond) {
|
|
3493
3597
|
return createErrorResponse(
|
|
3494
3598
|
id,
|
|
@@ -3530,7 +3634,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3530
3634
|
}
|
|
3531
3635
|
case RPC_METHODS.LEARN_GENERATE: {
|
|
3532
3636
|
const generateParams = params;
|
|
3533
|
-
if (!_optionalChain([generateParams, 'optionalAccess',
|
|
3637
|
+
if (!_optionalChain([generateParams, 'optionalAccess', _186 => _186.scope])) {
|
|
3534
3638
|
if (shouldRespond) {
|
|
3535
3639
|
return createErrorResponse(
|
|
3536
3640
|
id,
|
|
@@ -3546,7 +3650,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3546
3650
|
// SDK control methods
|
|
3547
3651
|
case RPC_METHODS.SET_PERMISSION_MODE: {
|
|
3548
3652
|
const setPermParams = params;
|
|
3549
|
-
if (!_optionalChain([setPermParams, 'optionalAccess',
|
|
3653
|
+
if (!_optionalChain([setPermParams, 'optionalAccess', _187 => _187.mode])) {
|
|
3550
3654
|
if (shouldRespond) {
|
|
3551
3655
|
return createErrorResponse(
|
|
3552
3656
|
id,
|
|
@@ -3571,7 +3675,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3571
3675
|
}
|
|
3572
3676
|
case RPC_METHODS.APPLY_FLAG_SETTINGS: {
|
|
3573
3677
|
const applyFlagsParams = params;
|
|
3574
|
-
if (!_optionalChain([applyFlagsParams, 'optionalAccess',
|
|
3678
|
+
if (!_optionalChain([applyFlagsParams, 'optionalAccess', _188 => _188.settings])) {
|
|
3575
3679
|
if (shouldRespond) {
|
|
3576
3680
|
return createErrorResponse(
|
|
3577
3681
|
id,
|
|
@@ -3600,9 +3704,49 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3600
3704
|
result = await adapter.handleGetContextUsage();
|
|
3601
3705
|
break;
|
|
3602
3706
|
}
|
|
3707
|
+
case RPC_METHODS.GOAL_GET: {
|
|
3708
|
+
result = await adapter.handleGoalGet();
|
|
3709
|
+
break;
|
|
3710
|
+
}
|
|
3711
|
+
case RPC_METHODS.GOAL_CREATE: {
|
|
3712
|
+
const goalParams = params;
|
|
3713
|
+
if (!_optionalChain([goalParams, 'optionalAccess', _189 => _189.objective])) {
|
|
3714
|
+
if (shouldRespond) {
|
|
3715
|
+
return createErrorResponse(id, JSON_RPC_ERROR_CODES.INVALID_PARAMS, "Missing required parameter: objective");
|
|
3716
|
+
}
|
|
3717
|
+
return null;
|
|
3718
|
+
}
|
|
3719
|
+
result = await adapter.handleGoalCreate(goalParams);
|
|
3720
|
+
break;
|
|
3721
|
+
}
|
|
3722
|
+
case RPC_METHODS.GOAL_UPDATE: {
|
|
3723
|
+
result = await adapter.handleGoalUpdate(_nullishCoalesce(params, () => ( {})));
|
|
3724
|
+
break;
|
|
3725
|
+
}
|
|
3726
|
+
case RPC_METHODS.GOAL_CLEAR: {
|
|
3727
|
+
result = await adapter.handleGoalClear();
|
|
3728
|
+
break;
|
|
3729
|
+
}
|
|
3730
|
+
case RPC_METHODS.GOAL_QUEUE: {
|
|
3731
|
+
const queueParams = params;
|
|
3732
|
+
if (!_optionalChain([queueParams, 'optionalAccess', _190 => _190.objective])) {
|
|
3733
|
+
result = await adapter.handleGoalGet();
|
|
3734
|
+
} else {
|
|
3735
|
+
result = await adapter.handleGoalQueue(queueParams);
|
|
3736
|
+
}
|
|
3737
|
+
break;
|
|
3738
|
+
}
|
|
3739
|
+
case RPC_METHODS.GOAL_START_QUEUED: {
|
|
3740
|
+
result = await adapter.handleGoalStartQueued();
|
|
3741
|
+
break;
|
|
3742
|
+
}
|
|
3743
|
+
case RPC_METHODS.GOAL_LIST_TEMPLATES: {
|
|
3744
|
+
result = await adapter.handleGoalListTemplates();
|
|
3745
|
+
break;
|
|
3746
|
+
}
|
|
3603
3747
|
case RPC_METHODS.SET_CONTEXT_COMPACT: {
|
|
3604
3748
|
const compactParams = params;
|
|
3605
|
-
if (_optionalChain([compactParams, 'optionalAccess',
|
|
3749
|
+
if (_optionalChain([compactParams, 'optionalAccess', _191 => _191.enabled]) === void 0) {
|
|
3606
3750
|
if (shouldRespond) {
|
|
3607
3751
|
return {
|
|
3608
3752
|
jsonrpc: "2.0",
|
|
@@ -3625,7 +3769,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3625
3769
|
}
|
|
3626
3770
|
case RPC_METHODS.MCP_TOGGLE_SERVER: {
|
|
3627
3771
|
const toggleParams = params;
|
|
3628
|
-
if (!_optionalChain([toggleParams, 'optionalAccess',
|
|
3772
|
+
if (!_optionalChain([toggleParams, 'optionalAccess', _192 => _192.serverName]) || _optionalChain([toggleParams, 'optionalAccess', _193 => _193.enabled]) === void 0) {
|
|
3629
3773
|
if (shouldRespond) {
|
|
3630
3774
|
return createErrorResponse(
|
|
3631
3775
|
id,
|
|
@@ -3640,7 +3784,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3640
3784
|
}
|
|
3641
3785
|
case RPC_METHODS.MCP_RECONNECT_SERVER: {
|
|
3642
3786
|
const reconnectParams = params;
|
|
3643
|
-
if (!_optionalChain([reconnectParams, 'optionalAccess',
|
|
3787
|
+
if (!_optionalChain([reconnectParams, 'optionalAccess', _194 => _194.serverName])) {
|
|
3644
3788
|
if (shouldRespond) {
|
|
3645
3789
|
return createErrorResponse(
|
|
3646
3790
|
id,
|
|
@@ -3655,7 +3799,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3655
3799
|
}
|
|
3656
3800
|
case RPC_METHODS.MCP_SET_SERVERS: {
|
|
3657
3801
|
const setServersParams = params;
|
|
3658
|
-
if (!_optionalChain([setServersParams, 'optionalAccess',
|
|
3802
|
+
if (!_optionalChain([setServersParams, 'optionalAccess', _195 => _195.servers])) {
|
|
3659
3803
|
if (shouldRespond) {
|
|
3660
3804
|
return createErrorResponse(
|
|
3661
3805
|
id,
|