autohand-cli 0.9.0 → 0.9.2
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 +118 -76
- package/dist/AgentRegistry-BBQRODQC.cjs +18 -0
- package/dist/AgentRegistry-JBXZUPML.js +18 -0
- package/dist/{CommunitySkillsCache-ZEQWP6YM.js → CommunitySkillsCache-CI7UN2DX.js} +2 -2
- package/dist/CommunitySkillsCache-XTQ6RMTA.cjs +8 -0
- package/dist/{HookManager-CWLTFKWO.js → HookManager-BELBPQQI.js} +1 -1
- package/dist/{HookManager-TMAJQU4S.cjs → HookManager-ZL2CLAJW.cjs} +2 -2
- package/dist/{ImportWizard-MQXEED2U.cjs → ImportWizard-U6CIJREW.cjs} +13 -13
- package/dist/{ImportWizard-QBKQEXDW.js → ImportWizard-VJFSWSUQ.js} +4 -4
- package/dist/LearnAdvisor-LAURA3IB.cjs +9 -0
- package/dist/LearnAdvisor-RFOBXFG7.js +9 -0
- package/dist/MemoryManager-3A2VRPF2.js +9 -0
- package/dist/MemoryManager-UOEQZIDC.cjs +9 -0
- package/dist/{NVIDIAProvider-2HR737UE.js → NVIDIAProvider-AFNJNWJM.js} +1 -1
- package/dist/NVIDIAProvider-L5GTYRCQ.cjs +14 -0
- package/dist/{PermissionManager-KMYILJ4Z.js → PermissionManager-N2LDSOYF.js} +3 -3
- package/dist/PermissionManager-ZNURIEYR.cjs +11 -0
- package/dist/ProviderFactory-3BFS65V7.cjs +13 -0
- package/dist/{ProviderFactory-HFPRVQ25.js → ProviderFactory-XUT6BSGB.js} +4 -2
- package/dist/SessionManager-LGPQIA57.cjs +10 -0
- package/dist/{SessionManager-PNBTJJTQ.js → SessionManager-OR4KDDDS.js} +2 -2
- package/dist/{SkillsRegistry-4RRD5GMX.js → SkillsRegistry-IL3GWROU.js} +2 -2
- package/dist/SkillsRegistry-PM34DQNA.cjs +9 -0
- package/dist/SubAgent-2WG4QQB5.cjs +13 -0
- package/dist/SubAgent-ICGN23TQ.js +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-OYVGQMJJ.js} +5 -4
- package/dist/about-U2BH7HDR.cjs +15 -0
- package/dist/{acp-VHEL7BOW.js → acp-JWHGXZL5.js} +207 -102
- package/dist/{acp-EOETGAHC.cjs → acp-S37JOBCS.cjs} +226 -121
- package/dist/actionExecutor-2QEPMELQ.cjs +28 -0
- package/dist/actionExecutor-6NCCORRB.js +28 -0
- package/dist/add-dir-KFUHSIR2.cjs +11 -0
- package/dist/{add-dir-VFX7QT4E.js → add-dir-MM2BM2Z2.js} +2 -2
- package/dist/agent-DUIYLIVN.js +132 -0
- package/dist/agent-YYEHGDAK.cjs +132 -0
- package/dist/agents-GBGG4CW7.cjs +19 -0
- package/dist/agents-ZH34C72F.js +19 -0
- package/dist/agents-new-ERXLS7SB.cjs +17 -0
- package/dist/agents-new-EVTGPTA4.js +17 -0
- package/dist/{autoSkill-EFMK6WU6.js → autoSkill-HEWKJ5JV.js} +2 -2
- package/dist/autoSkill-YL6PN6AV.cjs +20 -0
- package/dist/automode-4BJ7FNPL.cjs +10 -0
- package/dist/{automode-BMYSRM34.js → automode-S4U7A7Q2.js} +2 -2
- package/dist/chrome-45ZXHL5N.cjs +22 -0
- package/dist/{chrome-NHJ44WUN.js → chrome-BBSRVG6S.js} +2 -2
- package/dist/chrome-IFVZRHAT.cjs +50 -0
- package/dist/chrome-MYE6DNA2.js +22 -0
- package/dist/chunk-24CEJYEG.cjs +579 -0
- package/dist/{chunk-47PHDKNW.cjs → chunk-255GIVM2.cjs} +6 -6
- package/dist/{chunk-DIZTWFVR.cjs → chunk-2BDSR2OW.cjs} +238 -61
- package/dist/{chunk-BL2UC7HC.js → chunk-2BPIR7LA.js} +121 -4
- package/dist/{chunk-BQ22N3TX.cjs → chunk-2NY7OHBF.cjs} +47 -27
- package/dist/chunk-2WUNHTXL.js +303 -0
- package/dist/{chunk-HQWQZML5.cjs → chunk-34B6ZO6W.cjs} +124 -7
- package/dist/{chunk-5JTTM5SC.js → chunk-3BJN7GAH.js} +1 -1
- package/dist/{chunk-4256YRCO.cjs → chunk-3CAXECWJ.cjs} +30 -17
- package/dist/{chunk-KNTUI4TZ.cjs → chunk-3CBYUBZC.cjs} +5 -5
- package/dist/chunk-3DF3GZQ7.js +277 -0
- package/dist/{chunk-E26KKI46.cjs → chunk-3JURXAL6.cjs} +61 -8
- package/dist/{chunk-MOJ7ADW4.cjs → chunk-3KWAP2Y3.cjs} +88 -9
- package/dist/{chunk-OHWMWKJQ.js → chunk-3MCK6UBL.js} +1 -1
- package/dist/{chunk-5VHP6HDQ.js → chunk-3TH7IK4M.js} +62 -9
- package/dist/{chunk-ACDQGA4Z.js → chunk-3V77OB3W.js} +7 -72
- package/dist/{chunk-HS4USDND.cjs → chunk-3Y5UEK7K.cjs} +4 -4
- package/dist/{chunk-XV2HXRHX.js → chunk-4GPPSBEZ.js} +3 -3
- package/dist/chunk-5CMBAJ6K.js +377 -0
- package/dist/{chunk-MO4KP6XS.cjs → chunk-5YRXFBYZ.cjs} +35 -6
- package/dist/chunk-5ZNYX4VH.cjs +71 -0
- package/dist/chunk-6AC2TT26.js +156 -0
- package/dist/{chunk-UGFVM77J.cjs → chunk-6EIQ6A6U.cjs} +2 -2
- package/dist/{chunk-SWCQM52V.js → chunk-6HSEDXVF.js} +4 -4
- package/dist/{chunk-QQ7PANOP.js → chunk-6NUXK62F.js} +1 -1
- package/dist/{chunk-5CMYEM3R.cjs → chunk-6TGCAPYH.cjs} +62 -9
- package/dist/{chunk-NMQ47RCG.js → chunk-6W3SZCSP.js} +1 -1
- package/dist/{chunk-VRMZO6TB.js → chunk-73LV3DDZ.js} +7 -6
- package/dist/{chunk-3GUEUCZK.js → chunk-7BGGLIQF.js} +85 -1
- package/dist/{chunk-RBHANOYY.js → chunk-7DJJGKM6.js} +47 -3
- package/dist/{chunk-LQBONA55.cjs → chunk-7EEK7CRR.cjs} +85 -1
- package/dist/chunk-7TO3PDMV.cjs +324 -0
- package/dist/chunk-7UU22RSH.cjs +277 -0
- package/dist/{chunk-E6GFD7VR.cjs → chunk-A3GAM6FM.cjs} +11 -11
- package/dist/{chunk-DEQVRSV5.cjs → chunk-A7DJU75T.cjs} +8 -8
- package/dist/{chunk-DPSIGY6L.cjs → chunk-AAAO4ERQ.cjs} +9 -9
- package/dist/{chunk-FQAVGSPW.js → chunk-AAJLMP57.js} +2 -2
- package/dist/chunk-ABR756QN.js +529 -0
- package/dist/{chunk-JYKPWK5O.js → chunk-APFGDIPD.js} +3 -1
- package/dist/{chunk-Y3M2DABP.js → chunk-APQYRMYL.js} +4 -4
- package/dist/{chunk-Q2IL4DDI.cjs → chunk-AZKOIF2G.cjs} +62 -19
- package/dist/{chunk-MXVIDIC6.cjs → chunk-AZLHUPNC.cjs} +2 -2
- package/dist/chunk-B55VCYSQ.cjs +30 -0
- package/dist/{chunk-WZV6UVPY.js → chunk-BLQUMSM3.js} +1 -1
- package/dist/{chunk-PHJO5YAL.cjs → chunk-BXKPX6K4.cjs} +9 -9
- package/dist/{chunk-3KLSNNRW.cjs → chunk-C66FN2LP.cjs} +4 -4
- package/dist/{chunk-OV3PVUYN.js → chunk-CH7KUFAS.js} +9 -9
- package/dist/{chunk-CWINVFRI.cjs → chunk-CILSXOPI.cjs} +17 -17
- package/dist/{chunk-3UT7R3XV.js → chunk-CM24K6ZT.js} +145 -12
- package/dist/chunk-CMEZ42F2.cjs +303 -0
- package/dist/{chunk-46C73ZKK.cjs → chunk-CNQKIWIS.cjs} +152 -19
- package/dist/{chunk-5JFTY3VU.js → chunk-CSTUTDTH.js} +2 -1
- package/dist/{chunk-REMGR23V.cjs → chunk-CSUGNNJY.cjs} +10 -4
- package/dist/{chunk-TBOLJDUG.js → chunk-D6HB3H3L.js} +31 -11
- package/dist/{chunk-OM24WXEE.js → chunk-D7AYKVKW.js} +2 -2
- package/dist/{chunk-6GUODJKM.cjs → chunk-DLCXWOWT.cjs} +23 -23
- package/dist/{chunk-CH2J4PVE.cjs → chunk-DMM2BKSV.cjs} +121 -28
- package/dist/{chunk-M4KNC5BQ.js → chunk-DW3DPV77.js} +1 -1
- package/dist/chunk-ECQD2QC3.cjs +33 -0
- package/dist/{chunk-UEIXJG45.js → chunk-EEYOS3UC.js} +116 -80
- package/dist/{chunk-7HPWMALN.js → chunk-EF2EN5CR.js} +2 -2
- package/dist/{chunk-7LWQCE4Y.cjs → chunk-EFXFURDY.cjs} +192 -58
- package/dist/chunk-EK34UZPB.cjs +40 -0
- package/dist/{chunk-7JLT2VNW.cjs → chunk-FJR6EZLO.cjs} +9666 -7201
- package/dist/{chunk-GZ6DV2UG.js → chunk-FPO7YNPQ.js} +1 -1
- package/dist/{chunk-O64I2GYI.js → chunk-FS4I6BNR.js} +1 -1
- package/dist/{chunk-MX75JYIY.js → chunk-FSJ2MNOC.js} +3 -3
- package/dist/{chunk-7RFJB75Y.js → chunk-GEHZMC4G.js} +11 -8
- package/dist/{chunk-UWFG2R2I.cjs → chunk-GO6C2RAR.cjs} +36 -9
- package/dist/{chunk-WGLBC5AY.cjs → chunk-GSMR6V36.cjs} +4 -4
- package/dist/{chunk-Z3XSSF7B.js → chunk-GSZWATME.js} +1 -1
- package/dist/{chunk-7MU7LWF3.cjs → chunk-GYLGCR6F.cjs} +5 -5
- package/dist/{chunk-O6TQP7U7.cjs → chunk-H3OOWNYQ.cjs} +3 -3
- package/dist/{chunk-2QL6MNXG.js → chunk-H65446XW.js} +115 -20
- package/dist/chunk-H7HXRRHK.js +324 -0
- package/dist/{chunk-ZZ63NW7A.cjs → chunk-HN2JTDN5.cjs} +17 -17
- package/dist/{chunk-AOKCI722.cjs → chunk-HNXUZ5OY.cjs} +2 -2
- package/dist/{chunk-AUYSIEVV.cjs → chunk-HOYT3E65.cjs} +3 -3
- package/dist/{chunk-DMRXF5DU.js → chunk-HTPY5ESD.js} +3 -3
- package/dist/chunk-HTU4W3GB.js +183 -0
- package/dist/{chunk-3DDL2E55.cjs → chunk-HVLWH2AF.cjs} +10 -10
- package/dist/{chunk-HSCUPEA4.cjs → chunk-HZTEU4W5.cjs} +74 -105
- package/dist/{chunk-XGMI6IYB.cjs → chunk-I5T7LPFP.cjs} +7 -7
- package/dist/{chunk-XIVFAD2L.js → chunk-IB5CJXE7.js} +173 -12
- package/dist/chunk-INNXFLDR.cjs +388 -0
- package/dist/{chunk-75EDROHL.cjs → chunk-JFLEP3T7.cjs} +10 -10
- package/dist/chunk-JJGDOBFL.js +40 -0
- package/dist/{chunk-VBOFPU5M.cjs → chunk-JM3ZTQUK.cjs} +13 -9
- package/dist/{chunk-HJIXWGQZ.js → chunk-JSU46T6K.js} +1 -1
- package/dist/{chunk-AT7OWLY5.js → chunk-K6WN6BT4.js} +1 -1
- package/dist/{chunk-LN7D3EJZ.js → chunk-KA2U6MY2.js} +4 -3
- package/dist/{chunk-3S563FNF.cjs → chunk-KIQH3SMT.cjs} +34 -31
- package/dist/{chunk-BWF4VDYE.js → chunk-KPRXHIE2.js} +54 -85
- package/dist/{chunk-Z4LIPMPM.js → chunk-L6OH44HL.js} +13 -9
- package/dist/{chunk-A7HHCIDQ.js → chunk-LIO3RX2Z.js} +2 -2
- package/dist/{chunk-DLP436GI.js → chunk-LOSXLH7P.js} +110 -17
- package/dist/{chunk-IEXKKKOF.cjs → chunk-LSOR72PB.cjs} +23 -23
- package/dist/{chunk-IAGCRVJ3.js → chunk-MA3AVDCC.js} +55 -12
- package/dist/{chunk-B5CGDNMR.js → chunk-ME3S2WIR.js} +3 -3
- package/dist/{chunk-HKYZSUQ5.js → chunk-NC2I2M4P.js} +4 -4
- package/dist/{chunk-GBMDFWJX.cjs → chunk-NC4A4LVC.cjs} +13 -13
- package/dist/{chunk-E46DJH5S.js → chunk-NGEK5FCJ.js} +176 -3
- package/dist/{chunk-TQ33WBY5.cjs → chunk-NHWHEW7M.cjs} +2 -1
- package/dist/{chunk-62RTC3XX.js → chunk-NKW6CHXQ.js} +1 -1
- package/dist/{chunk-3PXKRVCW.js → chunk-NOWCRKP2.js} +10 -4
- package/dist/{chunk-HXJEGMGB.js → chunk-NUB2LMB6.js} +2 -2
- package/dist/chunk-NVATU4V6.cjs +44 -0
- package/dist/chunk-O246MKIW.cjs +267 -0
- package/dist/{chunk-QCHIDZBA.js → chunk-OGFWL2PS.js} +1 -1
- package/dist/{chunk-JJ4KA7HK.cjs → chunk-ONNGAR6W.cjs} +415 -551
- package/dist/{chunk-TKKN34TV.js → chunk-OOFR6A62.js} +33 -4
- package/dist/{chunk-6NVAK6CK.js → chunk-OZ7FHO7J.js} +2 -2
- package/dist/{chunk-2CGE7ZV3.cjs → chunk-P5EWGUI2.cjs} +201 -28
- package/dist/{chunk-GGLKUENP.js → chunk-P6BQJPAI.js} +191 -14
- package/dist/{chunk-TWQDAUZU.js → chunk-PG2JIU5M.js} +60 -7
- package/dist/chunk-PI27G2ED.cjs +377 -0
- package/dist/{chunk-YV63VW4K.js → chunk-PI7LRPL6.js} +1 -1
- package/dist/{chunk-TXPSTCG7.cjs → chunk-PMPEC5HN.cjs} +18 -15
- package/dist/{chunk-ROLA6EFO.cjs → chunk-PYUP7AKY.cjs} +14 -14
- package/dist/{chunk-BFQDQRDE.js → chunk-QC5Z3ZT5.js} +2 -2
- package/dist/chunk-QDO4L2A7.cjs +156 -0
- package/dist/{chunk-LFDPTJYF.cjs → chunk-QDXRI5AM.cjs} +1 -1
- package/dist/{chunk-3LJJG5YY.cjs → chunk-QLZOMZO5.cjs} +4 -3
- package/dist/chunk-QVXMSQOG.js +430 -0
- package/dist/{chunk-ZHJ7JGME.cjs → chunk-R4UKBKDY.cjs} +11 -11
- package/dist/{chunk-IGMPWJ2I.cjs → chunk-R75AWII3.cjs} +118 -23
- package/dist/{chunk-VGEV44V2.cjs → chunk-RD5PLUIX.cjs} +191 -30
- package/dist/{chunk-I24CWKKK.js → chunk-RGB34CV5.js} +3 -3
- package/dist/{chunk-CHI52KFR.cjs → chunk-RJCZLFHE.cjs} +246 -39
- package/dist/{chunk-D2OSPLYC.cjs → chunk-RKWNM2BJ.cjs} +2 -2
- package/dist/{chunk-FGT6KK6T.js → chunk-RMVONICR.js} +3 -3
- package/dist/{chunk-Q6AC3PHY.cjs → chunk-RPSYRJL7.cjs} +10 -4
- package/dist/chunk-RS2E32YB.js +71 -0
- package/dist/chunk-RWKU2X7O.js +388 -0
- package/dist/chunk-RZLEGVMH.cjs +565 -0
- package/dist/{chunk-5F6ZKSHO.js → chunk-S2L3Y677.js} +1 -1
- package/dist/{chunk-ARBEHFCG.js → chunk-S7KVUIOS.js} +1 -1
- package/dist/{chunk-AC7DZ6SK.cjs → chunk-SACJJ6NO.cjs} +5 -3
- package/dist/{chunk-IKUMVBCW.cjs → chunk-SD3NTC7D.cjs} +48 -4
- package/dist/{chunk-CBFH2J3O.js → chunk-SJQU2ZFR.js} +246 -39
- package/dist/{chunk-GWO66KBI.js → chunk-SKAQKQFF.js} +12 -2
- package/dist/chunk-T4DXP5OP.js +30 -0
- package/dist/{chunk-CFFE4VA3.js → chunk-T6FTB6K2.js} +1 -1
- package/dist/{chunk-U4C3HW6P.js → chunk-T6N6GRFT.js} +13 -10
- package/dist/{chunk-D6GZBSOX.js → chunk-TJFKA6A7.js} +82 -3
- package/dist/{chunk-2HOLOHVK.js → chunk-TJZUPS4Z.js} +163 -299
- package/dist/{chunk-RBZ7AFX7.cjs → chunk-TLKHZ425.cjs} +2 -2
- package/dist/{chunk-J2K57QM7.cjs → chunk-TQ24NLXO.cjs} +6 -6
- package/dist/{chunk-LUMV3DB2.js → chunk-TWBAU46X.js} +1 -1
- package/dist/{chunk-OPNI6O7F.cjs → chunk-TZB5XADL.cjs} +4 -4
- package/dist/{chunk-6HH236FV.cjs → chunk-UAYXZXWU.cjs} +4 -4
- package/dist/{chunk-MPULXVC4.cjs → chunk-UKBFNBDO.cjs} +11 -11
- package/dist/chunk-UMJYX5KD.js +565 -0
- package/dist/chunk-USKYTHDL.cjs +235 -0
- package/dist/chunk-V4HGZSKQ.cjs +183 -0
- package/dist/{chunk-MQESBFBZ.cjs → chunk-VAJUSZMC.cjs} +21 -20
- package/dist/{chunk-PQLKJCIE.js → chunk-VGQG4NBJ.js} +2 -2
- package/dist/chunk-VLUIVJ3J.js +235 -0
- package/dist/chunk-VOBINVMV.cjs +430 -0
- package/dist/{chunk-L4F7SUYL.js → chunk-VSHKKCSH.js} +16 -5
- package/dist/{chunk-LDJQ5QHG.cjs → chunk-VSZU3MGA.cjs} +28 -17
- package/dist/{chunk-YFXTE422.cjs → chunk-VWHAUB77.cjs} +8 -3
- package/dist/{chunk-EZJHLOWP.js → chunk-VXGYFX45.js} +20 -7
- package/dist/{chunk-JIMSII7R.js → chunk-WH6YUQDB.js} +193 -59
- package/dist/{chunk-VKBIE6I6.js → chunk-WQ6TD55V.js} +2 -2
- package/dist/{chunk-ZR46OJNZ.js → chunk-WQWECXTY.js} +3 -3
- package/dist/{chunk-SOLBYSLY.cjs → chunk-WVDJUJH6.cjs} +2 -2
- package/dist/{chunk-QKP772OZ.js → chunk-X24VIVDZ.js} +963 -103
- package/dist/{chunk-37M5UM6I.js → chunk-X4NRTLXD.js} +7 -1
- package/dist/chunk-X53SHYCG.js +27 -0
- package/dist/{chunk-PUD76XQT.cjs → chunk-XB2Z4ZAK.cjs} +5 -5
- package/dist/chunk-Y47OJGLB.cjs +27 -0
- package/dist/{chunk-WRTXCQ3V.cjs → chunk-Y4MN27V3.cjs} +1080 -220
- package/dist/{chunk-ZK6HOR62.js → chunk-YEHFYZFU.js} +7 -2
- package/dist/{chunk-FFBDRUO5.cjs → chunk-YICIUY23.cjs} +1 -1
- package/dist/{chunk-PDHT7LQS.cjs → chunk-YMXYC777.cjs} +3 -3
- package/dist/{chunk-TJNBASFD.cjs → chunk-Z3GRWK6O.cjs} +8 -8
- package/dist/{chunk-JP3YHTQ2.cjs → chunk-Z5GG2KSL.cjs} +4 -4
- package/dist/{chunk-ZPD2AO3U.js → chunk-ZER7DYQK.js} +2 -2
- package/dist/{chunk-UXLW45ZE.cjs → chunk-ZFDXZEZJ.cjs} +25 -90
- package/dist/chunk-ZFV4HJA6.js +579 -0
- package/dist/chunk-ZHMYTI5D.cjs +529 -0
- package/dist/{chunk-CCVMREXI.js → chunk-ZLR2TFBC.js} +35 -8
- package/dist/{chunk-J5ADZN6V.cjs → chunk-ZTWNU5QZ.cjs} +20 -20
- package/dist/chunk-ZUYYHKQA.js +44 -0
- package/dist/{chunk-AUFNACED.js → chunk-ZVLVLDYN.js} +9086 -6621
- package/dist/clear-AJGXD2BB.cjs +12 -0
- package/dist/{clear-OFLFQ3MR.js → clear-HAHDSWKW.js} +3 -3
- package/dist/communityInstaller-IRR6M3N6.cjs +22 -0
- package/dist/{communityInstaller-COB2KTOW.js → communityInstaller-OLKEUGMX.js} +6 -6
- package/dist/completion-G7Z436TF.cjs +17 -0
- package/dist/{completion-PT4VM2H2.js → completion-ZS3AXJ6A.js} +5 -5
- package/dist/{config-R4O7GBTY.js → config-OWYAQPCX.js} +5 -3
- package/dist/config-W2BHT2QE.cjs +22 -0
- package/dist/{constants-HVCHVQAF.js → constants-AS6K67AA.js} +5 -3
- package/dist/constants-B4W5BT7F.cjs +23 -0
- package/dist/{export-3PK3VFCE.js → export-5HIU3KMD.js} +5 -5
- package/dist/export-GFD32UY2.cjs +15 -0
- package/dist/{extractSessionMemories-A2JX5WJ2.js → extractSessionMemories-K6ZVAW2F.js} +1 -1
- package/dist/{extractSessionMemories-XL3MS37F.cjs → extractSessionMemories-LLOIJR5U.cjs} +2 -2
- package/dist/feature-KP74CZ3F.cjs +14 -0
- package/dist/feature-OPNVMB2E.js +14 -0
- package/dist/features-LT55MURX.cjs +24 -0
- package/dist/features-ZDIU26WX.js +24 -0
- package/dist/feedback-7WTJFQ6S.js +18 -0
- package/dist/feedback-CEOJ3453.cjs +18 -0
- package/dist/go-2CY5SZNR.js +16 -0
- package/dist/go-O2CSQON4.cjs +16 -0
- package/dist/goal-DL2N2AWT.cjs +16 -0
- package/dist/goal-IJS7VZSG.js +16 -0
- package/dist/help-RNOGDEBA.cjs +12 -0
- package/dist/{help-X3OAZ3CY.js → help-TCWD2IRH.js} +2 -2
- package/dist/{history-YKFPHBJN.js → history-ATOR5OQV.js} +2 -2
- package/dist/history-UUSGX2AL.cjs +14 -0
- package/dist/{hooks-7TA4PIIB.js → hooks-R3Z5QKUP.js} +6 -6
- package/dist/hooks-RWM5UY67.cjs +18 -0
- package/dist/{i18n-2KBUU7XL.js → i18n-4QI4TD4I.js} +1 -1
- package/dist/i18n-MFAEU5RV.cjs +33 -0
- package/dist/ide-6PBTCCUQ.js +15 -0
- package/dist/ide-UE3G7NMQ.cjs +15 -0
- package/dist/{import-I7T4ZHYL.cjs → import-2IG76KAN.cjs} +6 -4
- package/dist/{import-JWPYKXCZ.js → import-E47QL4DW.js} +2 -2
- package/dist/import-NQDNBFUL.cjs +10 -0
- package/dist/{import-4CHYLS4K.js → import-VQIHGJWS.js} +6 -4
- package/dist/index.cjs +512 -305
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +402 -195
- package/dist/init-DX3RDGDT.cjs +10 -0
- package/dist/{init-262MWZV4.js → init-Q54OAAFZ.js} +2 -2
- package/dist/{inputPrompt-YGBHDUEP.js → inputPrompt-V2VBDRM7.js} +3 -3
- package/dist/inputPrompt-WVGVWAHS.cjs +90 -0
- package/dist/language-I6KXAOXD.js +23 -0
- package/dist/language-XMIVOH5E.cjs +23 -0
- package/dist/learn-JPVVGTKU.js +23 -0
- package/dist/learn-NLSHI2MZ.cjs +23 -0
- package/dist/login-NABQYLYC.cjs +28 -0
- package/dist/login-XPOVFSWN.js +28 -0
- package/dist/logout-HNHCGB4Q.js +25 -0
- package/dist/logout-SKGDXJSW.cjs +25 -0
- package/dist/{mcp-5O6PUL4G.js → mcp-EN73YFGZ.js} +8 -6
- package/dist/mcp-TADZCPJQ.cjs +22 -0
- package/dist/{mcp-install-P6DHES7V.cjs → mcp-install-2GKWWBAS.cjs} +15 -13
- package/dist/{mcp-install-6XWXLFVY.js → mcp-install-3TBTVSHW.js} +10 -8
- package/dist/memory-GRXFTDIN.cjs +10 -0
- package/dist/{memory-Q54CESNM.js → memory-K2P3CDCH.js} +2 -2
- package/dist/{model-6AJ77PJG.js → model-DEG22OWA.js} +2 -2
- package/dist/model-OSD74T7Z.cjs +10 -0
- package/dist/new-4NWBOATU.cjs +12 -0
- package/dist/{new-ZXHEWC2S.js → new-KJAP2MB6.js} +3 -3
- package/dist/onboarding-2U5WE2OA.js +39 -0
- package/dist/onboarding-5DZFCO5Q.cjs +39 -0
- package/dist/permissions-KY5I6YQ3.cjs +10 -0
- package/dist/{permissions-YHJMVA6L.js → permissions-TKYON7PP.js} +2 -2
- package/dist/{plan-YYUAXPTL.js → plan-DYHHLZSS.js} +1 -1
- package/dist/plan-PYKP652W.cjs +13 -0
- package/dist/quit-GSKJL42O.js +14 -0
- package/dist/quit-TQSRTBUT.cjs +14 -0
- package/dist/{registry-34GL6BNJ.js → registry-EZ4V4TUQ.js} +1339 -1
- package/dist/{registry-V24W7YK6.cjs → registry-LCWYI4IB.cjs} +1378 -40
- package/dist/resume-4VWJXARX.cjs +17 -0
- package/dist/resume-TLHWWWFN.js +17 -0
- package/dist/{review-QHP2KP4Q.js → review-CSK4IYTO.js} +1 -1
- package/dist/review-XLJEUH5K.cjs +9 -0
- package/dist/{rpc-S3DGW6KV.js → rpc-3DLQBDWU.js} +301 -130
- package/dist/{rpc-NPS3PU4O.cjs → rpc-O36WUU3L.cjs} +399 -228
- package/dist/search-DSX2CY4A.cjs +22 -0
- package/dist/search-I3QUDUQL.js +22 -0
- package/dist/sessionBranching-DVNOUWJT.cjs +19 -0
- package/dist/sessionBranching-FKV4CR36.js +19 -0
- package/dist/sessions-3JUOT3ED.cjs +10 -0
- package/dist/{sessions-IYAXMK23.js → sessions-VWMDIPOS.js} +2 -2
- package/dist/settings-FT2LZZUV.js +45 -0
- package/dist/settings-RL4KNWHB.cjs +45 -0
- package/dist/setup-HQEJVOYT.js +32 -0
- package/dist/setup-MN54LKOL.cjs +32 -0
- package/dist/share-BUAFZNBX.cjs +17 -0
- package/dist/share-CGB6MAVJ.js +17 -0
- package/dist/skills/builtin/code-reviewer/SKILL.md +64 -0
- package/dist/skills/builtin/goal-writer/SKILL.md +124 -0
- package/dist/{skills-VWOMV3CR.js → skills-7DKR3HRZ.js} +8 -8
- package/dist/{skills-MVIZNHT4.js → skills-BBBENOEY.js} +9 -9
- package/dist/skills-OQM7IHAF.cjs +29 -0
- package/dist/{skills-GGMZOVIE.cjs → skills-RA2PKL63.cjs} +10 -10
- package/dist/{skills-install-VTAMCNNY.cjs → skills-install-D7K476SL.cjs} +16 -16
- package/dist/{skills-install-QBA5RCV6.js → skills-install-T4SOKJSL.js} +9 -9
- package/dist/skills-new-S33NGEU3.js +18 -0
- package/dist/skills-new-UVYH53MD.cjs +18 -0
- package/dist/slashCommands-MWOUDSQP.js +111 -0
- package/dist/slashCommands-XASURUTV.cjs +111 -0
- package/dist/squad-PIIYDFVH.cjs +15 -0
- package/dist/squad-VHYOVEJP.js +15 -0
- package/dist/status-GHFTXQBL.js +25 -0
- package/dist/status-WXMIJIU3.cjs +25 -0
- package/dist/statusline-2K7AC6ZQ.js +21 -0
- package/dist/statusline-GROI4HOC.cjs +21 -0
- package/dist/sync-254WF6JI.cjs +42 -0
- package/dist/sync-2DIZN4EH.cjs +24 -0
- package/dist/{sync-7BILIQHP.js → sync-J6I2ZUKQ.js} +6 -4
- package/dist/{sync-7OKF6636.js → sync-Z3LVSEEV.js} +8 -5
- package/dist/{teammate-J6PHGL23.cjs → teammate-EXR76PEQ.cjs} +9 -8
- package/dist/{teammate-GZQSCIMS.js → teammate-K4DAOFEQ.js} +8 -7
- package/dist/templates-ARG2VRWW.cjs +11 -0
- package/dist/templates-UGVZV3KJ.js +11 -0
- package/dist/theme-MVQDSU47.js +23 -0
- package/dist/theme-QAKEYWJG.cjs +23 -0
- package/dist/ui/questionModal.cjs +6 -6
- package/dist/ui/questionModal.js +5 -5
- package/dist/{undo-SZEHLX7X.js → undo-5AU47JHF.js} +2 -2
- package/dist/undo-ME6WKUXZ.cjs +10 -0
- package/dist/usage-QTKO2YMD.js +25 -0
- package/dist/usage-TYNJKVER.cjs +25 -0
- package/package.json +10 -4
- package/dist/AgentRegistry-EGBDIUAK.cjs +0 -10
- package/dist/AgentRegistry-XPWSVO3Q.js +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/MemoryManager-WJMLPWGU.js +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-33I47NZS.js +0 -24
- 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-N6O3XUZ2.cjs +0 -23
- 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/onboarding-JYNMK6NI.js +0 -35
- package/dist/permissions-YBNSANIA.cjs +0 -10
- package/dist/plan-XEJMOT55.cjs +0 -13
- package/dist/quit-B43SJ6E4.cjs +0 -10
- package/dist/quit-GWTNHQSP.js +0 -10
- package/dist/resume-DYVOQN5L.cjs +0 -16
- package/dist/resume-M25UQKOX.js +0 -16
- package/dist/review-UWHWQHCB.cjs +0 -9
- package/dist/search-CPX4PWHP.js +0 -20
- package/dist/search-VUF3M4N3.cjs +0 -20
- package/dist/sessions-JODKER5D.cjs +0 -10
- package/dist/settings-55BNW6BF.js +0 -33
- 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,176 @@
|
|
|
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;
|
|
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(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunkFJR6EZLOcjs = require('./chunk-FJR6EZLO.cjs');
|
|
4
|
+
require('./chunk-7EEK7CRR.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
var _chunk5K3CDSWZcjs = require('./chunk-5K3CDSWZ.cjs');
|
|
7
8
|
require('./chunk-QMAKTSZB.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-34B6ZO6W.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkRD5PLUIXcjs = require('./chunk-RD5PLUIX.cjs');
|
|
13
|
+
require('./chunk-RPSYRJL7.cjs');
|
|
14
|
+
require('./chunk-6TGCAPYH.cjs');
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
var _chunkDI57A4BXcjs = require('./chunk-DI57A4BX.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-FFBDRUO5.cjs');
|
|
21
|
-
require('./chunk-GWY26SUD.cjs');
|
|
22
|
-
require('./chunk-ROLA6EFO.cjs');
|
|
18
|
+
require('./chunk-O246MKIW.cjs');
|
|
19
|
+
require('./chunk-BXKPX6K4.cjs');
|
|
20
|
+
require('./chunk-PYUP7AKY.cjs');
|
|
23
21
|
require('./chunk-PCM3N3CL.cjs');
|
|
24
22
|
require('./chunk-BYE7RQFZ.cjs');
|
|
25
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-VOBINVMV.cjs');
|
|
24
|
+
require('./chunk-USKYTHDL.cjs');
|
|
25
|
+
require('./chunk-ZHMYTI5D.cjs');
|
|
26
|
+
require('./chunk-QDO4L2A7.cjs');
|
|
27
|
+
require('./chunk-DRWDEHE5.cjs');
|
|
28
|
+
require('./chunk-HOYT3E65.cjs');
|
|
29
|
+
require('./chunk-HDK2EHVH.cjs');
|
|
30
|
+
require('./chunk-NC4A4LVC.cjs');
|
|
31
|
+
require('./chunk-YICIUY23.cjs');
|
|
32
|
+
require('./chunk-GWY26SUD.cjs');
|
|
33
|
+
require('./chunk-XB2Z4ZAK.cjs');
|
|
34
|
+
require('./chunk-LSOR72PB.cjs');
|
|
35
|
+
require('./chunk-CILSXOPI.cjs');
|
|
36
|
+
require('./chunk-TQ24NLXO.cjs');
|
|
37
|
+
require('./chunk-ZTWNU5QZ.cjs');
|
|
26
38
|
require('./chunk-Z36XBUMX.cjs');
|
|
27
39
|
require('./chunk-U3WDY42C.cjs');
|
|
28
40
|
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
41
|
require('./chunk-ZASDSY7P.cjs');
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
42
|
+
require('./chunk-DLCXWOWT.cjs');
|
|
43
|
+
require('./chunk-WVDJUJH6.cjs');
|
|
44
|
+
require('./chunk-A3GAM6FM.cjs');
|
|
45
|
+
require('./chunk-YMXYC777.cjs');
|
|
46
|
+
require('./chunk-VAJUSZMC.cjs');
|
|
47
|
+
require('./chunk-PI27G2ED.cjs');
|
|
48
|
+
require('./chunk-PMPEC5HN.cjs');
|
|
49
|
+
require('./chunk-B55VCYSQ.cjs');
|
|
50
|
+
require('./chunk-24CEJYEG.cjs');
|
|
51
|
+
require('./chunk-INNXFLDR.cjs');
|
|
52
|
+
require('./chunk-GSMR6V36.cjs');
|
|
53
|
+
require('./chunk-VSZU3MGA.cjs');
|
|
54
|
+
require('./chunk-KIQH3SMT.cjs');
|
|
55
|
+
require('./chunk-AAAO4ERQ.cjs');
|
|
56
|
+
require('./chunk-JHGIWNHL.cjs');
|
|
57
|
+
require('./chunk-TZB5XADL.cjs');
|
|
58
|
+
require('./chunk-UAYXZXWU.cjs');
|
|
59
|
+
require('./chunk-3Y5UEK7K.cjs');
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var _chunkDA7NBAJKcjs = require('./chunk-DA7NBAJK.cjs');
|
|
63
|
+
require('./chunk-7UU22RSH.cjs');
|
|
64
|
+
require('./chunk-255GIVM2.cjs');
|
|
49
65
|
require('./chunk-QCLYBIMM.cjs');
|
|
50
66
|
require('./chunk-M7RVTUWE.cjs');
|
|
51
|
-
require('./chunk-
|
|
52
|
-
require('./chunk-
|
|
53
|
-
require('./chunk-
|
|
54
|
-
require('./chunk-
|
|
55
|
-
require('./chunk-
|
|
56
|
-
require('./chunk-
|
|
67
|
+
require('./chunk-SACJJ6NO.cjs');
|
|
68
|
+
require('./chunk-JFLEP3T7.cjs');
|
|
69
|
+
require('./chunk-HNXUZ5OY.cjs');
|
|
70
|
+
require('./chunk-ECQD2QC3.cjs');
|
|
71
|
+
require('./chunk-ZFDXZEZJ.cjs');
|
|
72
|
+
require('./chunk-5ZNYX4VH.cjs');
|
|
73
|
+
require('./chunk-H3OOWNYQ.cjs');
|
|
57
74
|
require('./chunk-MFK6HE47.cjs');
|
|
58
|
-
require('./chunk-
|
|
59
|
-
require('./chunk-
|
|
60
|
-
require('./chunk-
|
|
61
|
-
require('./chunk-
|
|
62
|
-
require('./chunk-
|
|
75
|
+
require('./chunk-Z3GRWK6O.cjs');
|
|
76
|
+
require('./chunk-Z5GG2KSL.cjs');
|
|
77
|
+
require('./chunk-C66FN2LP.cjs');
|
|
78
|
+
require('./chunk-QW2RW2GY.cjs');
|
|
79
|
+
require('./chunk-R4UKBKDY.cjs');
|
|
80
|
+
require('./chunk-2BDSR2OW.cjs');
|
|
81
|
+
require('./chunk-HXQREVTA.cjs');
|
|
63
82
|
|
|
64
83
|
|
|
65
|
-
var
|
|
66
|
-
require('./chunk-YFXTE422.cjs');
|
|
67
|
-
require('./chunk-DIZTWFVR.cjs');
|
|
68
|
-
require('./chunk-HXQREVTA.cjs');
|
|
84
|
+
var _chunkRZLEGVMHcjs = require('./chunk-RZLEGVMH.cjs');
|
|
69
85
|
require('./chunk-4JNNTOGF.cjs');
|
|
70
|
-
require('./chunk-
|
|
86
|
+
require('./chunk-TLKHZ425.cjs');
|
|
71
87
|
require('./chunk-VXCMGBXY.cjs');
|
|
72
|
-
require('./chunk-
|
|
73
|
-
require('./chunk-
|
|
74
|
-
require('./chunk-
|
|
75
|
-
require('./chunk-UXLW45ZE.cjs');
|
|
88
|
+
require('./chunk-I5T7LPFP.cjs');
|
|
89
|
+
require('./chunk-WKRDBCP2.cjs');
|
|
90
|
+
require('./chunk-B4HSNOIH.cjs');
|
|
76
91
|
require('./chunk-OR67YXQK.cjs');
|
|
77
|
-
require('./chunk-
|
|
92
|
+
require('./chunk-A7DJU75T.cjs');
|
|
78
93
|
|
|
79
94
|
|
|
80
95
|
|
|
81
96
|
|
|
82
97
|
var _chunkJ5HE6CUMcjs = require('./chunk-J5HE6CUM.cjs');
|
|
83
|
-
require('./chunk-
|
|
84
|
-
require('./chunk-
|
|
85
|
-
require('./chunk-
|
|
86
|
-
require('./chunk-JJ4KA7HK.cjs');
|
|
98
|
+
require('./chunk-V4HGZSKQ.cjs');
|
|
99
|
+
require('./chunk-6EIQ6A6U.cjs');
|
|
100
|
+
require('./chunk-ONNGAR6W.cjs');
|
|
87
101
|
require('./chunk-WTB7AFL6.cjs');
|
|
88
102
|
|
|
89
103
|
|
|
90
104
|
|
|
91
|
-
var
|
|
105
|
+
var _chunkY4MN27V3cjs = require('./chunk-Y4MN27V3.cjs');
|
|
106
|
+
require('./chunk-GO6C2RAR.cjs');
|
|
92
107
|
|
|
93
108
|
|
|
94
|
-
var
|
|
109
|
+
var _chunkHZTEU4W5cjs = require('./chunk-HZTEU4W5.cjs');
|
|
95
110
|
require('./chunk-WBU4Q4GS.cjs');
|
|
96
111
|
|
|
97
112
|
|
|
98
|
-
var
|
|
113
|
+
var _chunkQDXRI5AMcjs = require('./chunk-QDXRI5AM.cjs');
|
|
99
114
|
require('./chunk-MUNUUFU7.cjs');
|
|
100
|
-
require('./chunk-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
require('./chunk-
|
|
105
|
-
require('./chunk-
|
|
106
|
-
require('./chunk-
|
|
107
|
-
require('./chunk-
|
|
115
|
+
require('./chunk-VWHAUB77.cjs');
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
var _chunkY47OJGLBcjs = require('./chunk-Y47OJGLB.cjs');
|
|
120
|
+
require('./chunk-2NY7OHBF.cjs');
|
|
121
|
+
require('./chunk-R75AWII3.cjs');
|
|
122
|
+
require('./chunk-P5EWGUI2.cjs');
|
|
123
|
+
require('./chunk-HVLWH2AF.cjs');
|
|
124
|
+
require('./chunk-3CAXECWJ.cjs');
|
|
125
|
+
require('./chunk-NVATU4V6.cjs');
|
|
108
126
|
require('./chunk-LJD7KR3L.cjs');
|
|
109
|
-
require('./chunk-
|
|
110
|
-
require('./chunk-
|
|
111
|
-
|
|
127
|
+
require('./chunk-HN2JTDN5.cjs');
|
|
128
|
+
require('./chunk-GYLGCR6F.cjs');
|
|
129
|
+
|
|
112
130
|
|
|
113
131
|
|
|
114
132
|
|
|
115
|
-
var
|
|
133
|
+
var _chunkEFXFURDYcjs = require('./chunk-EFXFURDY.cjs');
|
|
116
134
|
|
|
117
135
|
|
|
118
|
-
var
|
|
136
|
+
var _chunkQLZOMZO5cjs = require('./chunk-QLZOMZO5.cjs');
|
|
119
137
|
require('./chunk-XDLH4EDL.cjs');
|
|
138
|
+
require('./chunk-CMEZ42F2.cjs');
|
|
120
139
|
|
|
121
140
|
|
|
141
|
+
var _chunk3OF56EMAcjs = require('./chunk-3OF56EMA.cjs');
|
|
122
142
|
|
|
123
143
|
|
|
124
|
-
var _chunkMPULXVC4cjs = require('./chunk-MPULXVC4.cjs');
|
|
125
144
|
|
|
126
145
|
|
|
127
|
-
var
|
|
128
|
-
require('./chunk-
|
|
129
|
-
require('./chunk-IKUMVBCW.cjs');
|
|
130
|
-
require('./chunk-REMGR23V.cjs');
|
|
146
|
+
var _chunkUKBFNBDOcjs = require('./chunk-UKBFNBDO.cjs');
|
|
147
|
+
require('./chunk-3KWAP2Y3.cjs');
|
|
131
148
|
|
|
132
149
|
|
|
133
|
-
var
|
|
134
|
-
require('./chunk-
|
|
135
|
-
require('./chunk-
|
|
136
|
-
require('./chunk-
|
|
137
|
-
require('./chunk-
|
|
150
|
+
var _chunkAZKOIF2Gcjs = require('./chunk-AZKOIF2G.cjs');
|
|
151
|
+
require('./chunk-FMB3TSWP.cjs');
|
|
152
|
+
require('./chunk-SD3NTC7D.cjs');
|
|
153
|
+
require('./chunk-CSUGNNJY.cjs');
|
|
154
|
+
require('./chunk-RKWNM2BJ.cjs');
|
|
155
|
+
require('./chunk-DMM2BKSV.cjs');
|
|
156
|
+
require('./chunk-3CBYUBZC.cjs');
|
|
157
|
+
require('./chunk-NHWHEW7M.cjs');
|
|
138
158
|
|
|
139
159
|
|
|
140
|
-
var
|
|
141
|
-
require('./chunk-
|
|
160
|
+
var _chunkCNQKIWIScjs = require('./chunk-CNQKIWIS.cjs');
|
|
161
|
+
require('./chunk-AZLHUPNC.cjs');
|
|
162
|
+
require('./chunk-EK34UZPB.cjs');
|
|
142
163
|
require('./chunk-3EDDDZS2.cjs');
|
|
164
|
+
require('./chunk-7TO3PDMV.cjs');
|
|
143
165
|
require('./chunk-YWTIXHU6.cjs');
|
|
144
166
|
require('./chunk-2VHB43IX.cjs');
|
|
145
|
-
require('./chunk-
|
|
167
|
+
require('./chunk-3JURXAL6.cjs');
|
|
146
168
|
require('./chunk-XF2WIKHR.cjs');
|
|
147
169
|
|
|
148
170
|
|
|
149
171
|
var _chunkWGNMOVMTcjs = require('./chunk-WGNMOVMT.cjs');
|
|
150
|
-
require('./chunk-
|
|
151
|
-
require('./chunk-
|
|
172
|
+
require('./chunk-RJCZLFHE.cjs');
|
|
173
|
+
require('./chunk-JM3ZTQUK.cjs');
|
|
152
174
|
require('./chunk-3HT76LNN.cjs');
|
|
153
175
|
|
|
154
176
|
// src/modes/rpc/index.ts
|
|
@@ -233,7 +255,14 @@ var RPC_METHODS = {
|
|
|
233
255
|
// Context compaction control
|
|
234
256
|
SET_CONTEXT_COMPACT: "autohand.setContextCompact",
|
|
235
257
|
// Setup wizard
|
|
236
|
-
SETUP: "autohand.setup"
|
|
258
|
+
SETUP: "autohand.setup",
|
|
259
|
+
GOAL_GET: "autohand.goal.get",
|
|
260
|
+
GOAL_CREATE: "autohand.goal.create",
|
|
261
|
+
GOAL_UPDATE: "autohand.goal.update",
|
|
262
|
+
GOAL_CLEAR: "autohand.goal.clear",
|
|
263
|
+
GOAL_QUEUE: "autohand.goal.queue",
|
|
264
|
+
GOAL_START_QUEUED: "autohand.goal.startQueued",
|
|
265
|
+
GOAL_LIST_TEMPLATES: "autohand.goal.listTemplates"
|
|
237
266
|
};
|
|
238
267
|
var RPC_NOTIFICATIONS = {
|
|
239
268
|
AGENT_START: "autohand.agentStart",
|
|
@@ -655,7 +684,7 @@ var RPC_ERROR_ICON_MAP = {
|
|
|
655
684
|
unknown: "\u26A0\uFE0F"
|
|
656
685
|
// ⚠️
|
|
657
686
|
};
|
|
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); }
|
|
687
|
+
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
688
|
__init5() {this.agent = null}
|
|
660
689
|
__init6() {this.conversation = null}
|
|
661
690
|
__init7() {this.imageManager = null}
|
|
@@ -686,8 +715,10 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
686
715
|
// during long turns with no traffic.
|
|
687
716
|
__init26() {this.keepaliveInterval = null}
|
|
688
717
|
__init27() {this.KEEPALIVE_MS = 15e3}
|
|
718
|
+
__init28() {this.yoloRevertTimer = null}
|
|
719
|
+
__init29() {this.yoloRevertGeneration = 0}
|
|
689
720
|
// Config reference for runtime settings changes
|
|
690
|
-
|
|
721
|
+
__init30() {this.config = {}}
|
|
691
722
|
/**
|
|
692
723
|
* Check if the current model supports vision/image inputs.
|
|
693
724
|
* Uses async OpenRouter API with pattern-matching fallback, cached for the session.
|
|
@@ -696,20 +727,21 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
696
727
|
if (this.visionSupported !== null) {
|
|
697
728
|
return this.visionSupported;
|
|
698
729
|
}
|
|
699
|
-
this.visionSupported = await
|
|
730
|
+
this.visionSupported = await _chunkY4MN27V3cjs.modelSupportsImages.call(void 0, this.model);
|
|
700
731
|
return this.visionSupported;
|
|
701
732
|
}
|
|
702
733
|
/**
|
|
703
734
|
* Initialize the adapter with an agent instance
|
|
704
735
|
*/
|
|
705
|
-
initialize(agent, conversation, model, workspace, mcpServerConfigs) {
|
|
736
|
+
initialize(agent, conversation, model, workspace, config, mcpServerConfigs) {
|
|
706
737
|
this.agent = agent;
|
|
707
738
|
this.conversation = conversation;
|
|
708
739
|
this.model = model;
|
|
709
740
|
this.workspace = workspace;
|
|
741
|
+
this.config = config ? { ...config } : {};
|
|
710
742
|
this.sessionId = generateId("session");
|
|
711
743
|
this.mcpServerConfigs = _nullishCoalesce(mcpServerConfigs, () => ( []));
|
|
712
|
-
this.imageManager = _nullishCoalesce(_optionalChain([agent, 'access', _ => _.getImageManager, 'optionalCall', _2 => _2()]), () => ( new (0,
|
|
744
|
+
this.imageManager = _nullishCoalesce(_optionalChain([agent, 'access', _ => _.getImageManager, 'optionalCall', _2 => _2()]), () => ( new (0, _chunkHZTEU4W5cjs.ImageManager)()));
|
|
713
745
|
agent.setStatusListener((snapshot) => {
|
|
714
746
|
this.contextPercent = snapshot.contextPercent;
|
|
715
747
|
this.model = snapshot.model;
|
|
@@ -738,6 +770,62 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
738
770
|
messageCount: _nullishCoalesce(_optionalChain([this, 'access', _3 => _3.conversation, 'optionalAccess', _4 => _4.history, 'call', _5 => _5(), 'access', _6 => _6.length]), () => ( 0))
|
|
739
771
|
};
|
|
740
772
|
}
|
|
773
|
+
async handleGoalGet() {
|
|
774
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
775
|
+
return new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace).getSnapshot();
|
|
776
|
+
}
|
|
777
|
+
async handleGoalCreate(params) {
|
|
778
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
779
|
+
return new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace).createOrQueueGoal({
|
|
780
|
+
objective: params.objective,
|
|
781
|
+
source: "rpc",
|
|
782
|
+
tokenBudget: params.token_budget,
|
|
783
|
+
timeBudgetSeconds: params.time_budget_seconds,
|
|
784
|
+
minTokensBeforeWrapUp: params.min_tokens_before_wrap_up,
|
|
785
|
+
minTimeSecondsBeforeWrapUp: params.min_time_seconds_before_wrap_up
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
async handleGoalUpdate(params) {
|
|
789
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
790
|
+
return new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace).updateGoal({
|
|
791
|
+
objective: params.objective,
|
|
792
|
+
status: parseRpcGoalStatus(params.status),
|
|
793
|
+
tokenBudget: params.token_budget,
|
|
794
|
+
timeBudgetSeconds: params.time_budget_seconds,
|
|
795
|
+
minTokensBeforeWrapUp: params.min_tokens_before_wrap_up,
|
|
796
|
+
minTimeSecondsBeforeWrapUp: params.min_time_seconds_before_wrap_up
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
async handleGoalClear() {
|
|
800
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
801
|
+
return new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace).clearGoal();
|
|
802
|
+
}
|
|
803
|
+
async handleGoalQueue(params) {
|
|
804
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
805
|
+
const manager = new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace);
|
|
806
|
+
return manager.enqueueGoal({
|
|
807
|
+
objective: params.objective,
|
|
808
|
+
source: "rpc",
|
|
809
|
+
tokenBudget: params.token_budget,
|
|
810
|
+
timeBudgetSeconds: params.time_budget_seconds,
|
|
811
|
+
minTokensBeforeWrapUp: params.min_tokens_before_wrap_up,
|
|
812
|
+
minTimeSecondsBeforeWrapUp: params.min_time_seconds_before_wrap_up
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
async handleGoalStartQueued() {
|
|
816
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
817
|
+
return new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace).startQueuedGoal();
|
|
818
|
+
}
|
|
819
|
+
async handleGoalListTemplates() {
|
|
820
|
+
if (!this.isGoalFeatureEnabled()) return this.goalFeatureDisabledResult();
|
|
821
|
+
return new (0, _chunkRZLEGVMHcjs.GoalManager)(this.workspace).listTemplates();
|
|
822
|
+
}
|
|
823
|
+
isGoalFeatureEnabled() {
|
|
824
|
+
return _chunkY47OJGLBcjs.isGoalFeatureEnabled.call(void 0, this.config);
|
|
825
|
+
}
|
|
826
|
+
goalFeatureDisabledResult() {
|
|
827
|
+
return { ok: false, message: _chunkY47OJGLBcjs.GOAL_FEATURE_DISABLED_MESSAGE };
|
|
828
|
+
}
|
|
741
829
|
/**
|
|
742
830
|
* Get message history
|
|
743
831
|
*/
|
|
@@ -752,10 +840,25 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
752
840
|
return messages.map((msg, index) => this.convertMessage(msg, index));
|
|
753
841
|
}
|
|
754
842
|
/**
|
|
755
|
-
*
|
|
756
|
-
*
|
|
843
|
+
* Accept a prompt request and run the turn in the background.
|
|
844
|
+
* Streaming clients get turn/message notifications and should not wait for
|
|
845
|
+
* the full agent run before the JSON-RPC request is acknowledged.
|
|
757
846
|
*/
|
|
758
|
-
|
|
847
|
+
startPrompt(requestId, params) {
|
|
848
|
+
const abortController = this.beginPrompt();
|
|
849
|
+
setImmediate(() => {
|
|
850
|
+
if (abortController.signal.aborted) {
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
853
|
+
void this.runAcceptedPrompt(requestId, params).catch((error) => {
|
|
854
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
855
|
+
process.stderr.write(`[RPC] Prompt failed after acceptance: ${message}
|
|
856
|
+
`);
|
|
857
|
+
});
|
|
858
|
+
});
|
|
859
|
+
return { success: true };
|
|
860
|
+
}
|
|
861
|
+
beginPrompt() {
|
|
759
862
|
if (!this.agent) {
|
|
760
863
|
throw new Error("Agent not initialized");
|
|
761
864
|
}
|
|
@@ -764,6 +867,20 @@ var RPCAdapter = (_class2 = class {constructor() { _class2.prototype.__init5.cal
|
|
|
764
867
|
}
|
|
765
868
|
this.status = "processing";
|
|
766
869
|
this.abortController = new AbortController();
|
|
870
|
+
return this.abortController;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Handle a prompt request
|
|
874
|
+
* Returns result for JSON-RPC response
|
|
875
|
+
*/
|
|
876
|
+
async handlePrompt(requestId, params) {
|
|
877
|
+
this.beginPrompt();
|
|
878
|
+
return this.runAcceptedPrompt(requestId, params);
|
|
879
|
+
}
|
|
880
|
+
async runAcceptedPrompt(requestId, params) {
|
|
881
|
+
if (!this.agent) {
|
|
882
|
+
throw new Error("Agent not initialized");
|
|
883
|
+
}
|
|
767
884
|
this.startKeepalive();
|
|
768
885
|
this.currentTurnId = generateId("turn");
|
|
769
886
|
this.turnStartTime = Date.now();
|
|
@@ -949,15 +1066,17 @@ ${sel.text}
|
|
|
949
1066
|
await hookManager.executeHooks("stop", {
|
|
950
1067
|
sessionId: this.sessionId || void 0,
|
|
951
1068
|
turnDuration,
|
|
952
|
-
tokensUsed: _nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess', _19 => _19.tokensUsed]), () => ( 0))
|
|
1069
|
+
tokensUsed: _nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess', _19 => _19.tokensUsed]), () => ( 0)),
|
|
1070
|
+
tokensUsageStatus: _optionalChain([snapshot2, 'optionalAccess', _20 => _20.tokensUsageStatus])
|
|
953
1071
|
});
|
|
954
1072
|
process.stderr.write(`[RPC DEBUG] Stop hooks completed
|
|
955
1073
|
`);
|
|
956
1074
|
this.emitHookStop(
|
|
957
|
-
_nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess',
|
|
1075
|
+
_nullishCoalesce(_optionalChain([snapshot2, 'optionalAccess', _21 => _21.tokensUsed]), () => ( 0)),
|
|
958
1076
|
0,
|
|
959
1077
|
// toolCallsCount - not tracked per turn currently
|
|
960
|
-
turnDuration
|
|
1078
|
+
turnDuration,
|
|
1079
|
+
_optionalChain([snapshot2, 'optionalAccess', _22 => _22.tokensUsageStatus])
|
|
961
1080
|
);
|
|
962
1081
|
process.stderr.write(`[RPC DEBUG] HOOK_STOP emitted
|
|
963
1082
|
`);
|
|
@@ -992,14 +1111,15 @@ ${sel.text}
|
|
|
992
1111
|
process.stderr.write(`[RPC DEBUG] MESSAGE_END emitted successfully
|
|
993
1112
|
`);
|
|
994
1113
|
const durationMs = this.turnStartTime ? Date.now() - this.turnStartTime : void 0;
|
|
995
|
-
const snapshot = _optionalChain([this, 'access',
|
|
1114
|
+
const snapshot = _optionalChain([this, 'access', _23 => _23.agent, 'optionalAccess', _24 => _24.getStatusSnapshot, 'call', _25 => _25()]);
|
|
996
1115
|
process.stderr.write(`[RPC DEBUG] Emitting TURN_END, turnId=${this.currentTurnId}
|
|
997
1116
|
`);
|
|
998
1117
|
writeNotification(RPC_NOTIFICATIONS.TURN_END, {
|
|
999
1118
|
turnId: this.currentTurnId,
|
|
1000
1119
|
timestamp: createTimestamp(),
|
|
1001
1120
|
contextPercent: this.contextPercent,
|
|
1002
|
-
tokensUsed: _optionalChain([snapshot, 'optionalAccess',
|
|
1121
|
+
tokensUsed: _optionalChain([snapshot, 'optionalAccess', _26 => _26.tokensUsed]),
|
|
1122
|
+
tokensUsageStatus: _optionalChain([snapshot, 'optionalAccess', _27 => _27.tokensUsageStatus]),
|
|
1003
1123
|
durationMs
|
|
1004
1124
|
});
|
|
1005
1125
|
process.stderr.write(`[RPC DEBUG] TURN_END emitted successfully
|
|
@@ -1025,14 +1145,15 @@ ${sel.text}
|
|
|
1025
1145
|
});
|
|
1026
1146
|
}
|
|
1027
1147
|
const durationMs = this.turnStartTime ? Date.now() - this.turnStartTime : void 0;
|
|
1028
|
-
const snapshot = _optionalChain([this, 'access',
|
|
1148
|
+
const snapshot = _optionalChain([this, 'access', _28 => _28.agent, 'optionalAccess', _29 => _29.getStatusSnapshot, 'call', _30 => _30()]);
|
|
1029
1149
|
process.stderr.write(`[RPC DEBUG] Emitting TURN_END from outer catch, turnId=${this.currentTurnId}
|
|
1030
1150
|
`);
|
|
1031
1151
|
writeNotification(RPC_NOTIFICATIONS.TURN_END, {
|
|
1032
1152
|
turnId: this.currentTurnId,
|
|
1033
1153
|
timestamp: createTimestamp(),
|
|
1034
1154
|
contextPercent: this.contextPercent,
|
|
1035
|
-
tokensUsed: _optionalChain([snapshot, 'optionalAccess',
|
|
1155
|
+
tokensUsed: _optionalChain([snapshot, 'optionalAccess', _31 => _31.tokensUsed]),
|
|
1156
|
+
tokensUsageStatus: _optionalChain([snapshot, 'optionalAccess', _32 => _32.tokensUsageStatus]),
|
|
1036
1157
|
durationMs
|
|
1037
1158
|
});
|
|
1038
1159
|
this.stopKeepalive();
|
|
@@ -1073,12 +1194,13 @@ ${sel.text}
|
|
|
1073
1194
|
}
|
|
1074
1195
|
if (this.currentTurnId) {
|
|
1075
1196
|
const durationMs = this.turnStartTime ? Date.now() - this.turnStartTime : void 0;
|
|
1076
|
-
const snapshot = _optionalChain([this, 'access',
|
|
1197
|
+
const snapshot = _optionalChain([this, 'access', _33 => _33.agent, 'optionalAccess', _34 => _34.getStatusSnapshot, 'call', _35 => _35()]);
|
|
1077
1198
|
writeNotification(RPC_NOTIFICATIONS.TURN_END, {
|
|
1078
1199
|
turnId: this.currentTurnId,
|
|
1079
1200
|
timestamp: createTimestamp(),
|
|
1080
1201
|
contextPercent: this.contextPercent,
|
|
1081
|
-
tokensUsed: _optionalChain([snapshot, 'optionalAccess',
|
|
1202
|
+
tokensUsed: _optionalChain([snapshot, 'optionalAccess', _36 => _36.tokensUsed]),
|
|
1203
|
+
tokensUsageStatus: _optionalChain([snapshot, 'optionalAccess', _37 => _37.tokensUsageStatus]),
|
|
1082
1204
|
durationMs
|
|
1083
1205
|
});
|
|
1084
1206
|
}
|
|
@@ -1097,7 +1219,7 @@ ${sel.text}
|
|
|
1097
1219
|
async handleReset(_requestId) {
|
|
1098
1220
|
if (this.agent && this.conversation) {
|
|
1099
1221
|
try {
|
|
1100
|
-
const { extractAndSaveSessionMemories } = await Promise.resolve().then(() => _interopRequireWildcard(require("./extractSessionMemories-
|
|
1222
|
+
const { extractAndSaveSessionMemories } = await Promise.resolve().then(() => _interopRequireWildcard(require("./extractSessionMemories-LLOIJR5U.cjs")));
|
|
1101
1223
|
await extractAndSaveSessionMemories({
|
|
1102
1224
|
llm: this.agent.getLlmProvider(),
|
|
1103
1225
|
memoryManager: this.agent.getMemoryManager(),
|
|
@@ -1109,10 +1231,10 @@ ${sel.text}
|
|
|
1109
1231
|
}
|
|
1110
1232
|
if (this.conversation) {
|
|
1111
1233
|
const history = this.conversation.history();
|
|
1112
|
-
const systemPrompt = _nullishCoalesce(_optionalChain([history, 'access',
|
|
1234
|
+
const systemPrompt = _nullishCoalesce(_optionalChain([history, 'access', _38 => _38.find, 'call', _39 => _39((m) => m.role === "system"), 'optionalAccess', _40 => _40.content]), () => ( ""));
|
|
1113
1235
|
this.conversation.reset(systemPrompt);
|
|
1114
1236
|
}
|
|
1115
|
-
_optionalChain([this, 'access',
|
|
1237
|
+
_optionalChain([this, 'access', _41 => _41.imageManager, 'optionalAccess', _42 => _42.clear, 'call', _43 => _43()]);
|
|
1116
1238
|
this.stopKeepalive();
|
|
1117
1239
|
this.sessionId = generateId("session");
|
|
1118
1240
|
this.status = "idle";
|
|
@@ -1141,19 +1263,19 @@ ${sel.text}
|
|
|
1141
1263
|
return { messages };
|
|
1142
1264
|
}
|
|
1143
1265
|
async handleBrowserHandoffCreate(_requestId, params) {
|
|
1144
|
-
const session = _optionalChain([this, 'access',
|
|
1266
|
+
const session = _optionalChain([this, 'access', _44 => _44.agent, 'optionalAccess', _45 => _45.getSessionManager, 'optionalCall', _46 => _46(), 'access', _47 => _47.getCurrentSession, 'optionalCall', _48 => _48()]);
|
|
1145
1267
|
if (!session) {
|
|
1146
1268
|
throw new Error("No active session available for browser handoff.");
|
|
1147
1269
|
}
|
|
1148
|
-
return
|
|
1270
|
+
return _chunkUKBFNBDOcjs.createBrowserHandoff.call(void 0, {
|
|
1149
1271
|
sessionId: session.metadata.sessionId,
|
|
1150
1272
|
workspaceRoot: session.metadata.projectPath,
|
|
1151
|
-
extensionId: _optionalChain([params, 'optionalAccess',
|
|
1152
|
-
installUrl: _optionalChain([params, 'optionalAccess',
|
|
1273
|
+
extensionId: _optionalChain([params, 'optionalAccess', _49 => _49.extensionId]),
|
|
1274
|
+
installUrl: _optionalChain([params, 'optionalAccess', _50 => _50.installUrl])
|
|
1153
1275
|
});
|
|
1154
1276
|
}
|
|
1155
1277
|
async handleBrowserHandoffAttach(_requestId, params) {
|
|
1156
|
-
const handoff = await
|
|
1278
|
+
const handoff = await _chunkUKBFNBDOcjs.attachBrowserHandoff.call(void 0, params.token);
|
|
1157
1279
|
if (!handoff) {
|
|
1158
1280
|
return { success: false };
|
|
1159
1281
|
}
|
|
@@ -1175,7 +1297,7 @@ ${sel.text}
|
|
|
1175
1297
|
};
|
|
1176
1298
|
}
|
|
1177
1299
|
async handleBrowserHandoffAttachLatest(_requestId, _params) {
|
|
1178
|
-
const handoff = await
|
|
1300
|
+
const handoff = await _chunkUKBFNBDOcjs.attachLatestBrowserHandoff.call(void 0, );
|
|
1179
1301
|
if (!handoff) {
|
|
1180
1302
|
return { success: false };
|
|
1181
1303
|
}
|
|
@@ -1203,7 +1325,7 @@ ${sel.text}
|
|
|
1203
1325
|
`);
|
|
1204
1326
|
const pending = this.pendingPermissions.get(permRequestId);
|
|
1205
1327
|
if (pending) {
|
|
1206
|
-
const normalized =
|
|
1328
|
+
const normalized = _chunkRD5PLUIXcjs.normalizePermissionPromptResponse.call(void 0, decision);
|
|
1207
1329
|
process.stderr.write(`[RPC] Found pending permission, resolving with allowed=${normalized.decision}
|
|
1208
1330
|
`);
|
|
1209
1331
|
if (pending.ackTimeout) {
|
|
@@ -1534,9 +1656,10 @@ ${sel.text}
|
|
|
1534
1656
|
* Emit hook post-response notification
|
|
1535
1657
|
* Called after receiving a response from the LLM
|
|
1536
1658
|
*/
|
|
1537
|
-
emitHookPostResponse(tokensUsed, toolCallsCount, duration) {
|
|
1659
|
+
emitHookPostResponse(tokensUsed, toolCallsCount, duration, tokensUsageStatus = "actual") {
|
|
1538
1660
|
writeNotification(RPC_NOTIFICATIONS.HOOK_POST_RESPONSE, {
|
|
1539
1661
|
tokensUsed,
|
|
1662
|
+
tokensUsageStatus,
|
|
1540
1663
|
toolCallsCount,
|
|
1541
1664
|
duration,
|
|
1542
1665
|
timestamp: createTimestamp()
|
|
@@ -1558,9 +1681,10 @@ ${sel.text}
|
|
|
1558
1681
|
* Emit hook stop notification
|
|
1559
1682
|
* Called when agent finishes responding to a turn
|
|
1560
1683
|
*/
|
|
1561
|
-
emitHookStop(tokensUsed, toolCallsCount, duration) {
|
|
1684
|
+
emitHookStop(tokensUsed, toolCallsCount, duration, tokensUsageStatus = "actual") {
|
|
1562
1685
|
writeNotification(RPC_NOTIFICATIONS.HOOK_STOP, {
|
|
1563
1686
|
tokensUsed,
|
|
1687
|
+
tokensUsageStatus,
|
|
1564
1688
|
toolCallsCount,
|
|
1565
1689
|
duration,
|
|
1566
1690
|
timestamp: createTimestamp()
|
|
@@ -1630,7 +1754,7 @@ ${sel.text}
|
|
|
1630
1754
|
* Handle changes decision from client (accept/reject)
|
|
1631
1755
|
*/
|
|
1632
1756
|
async handleChangesDecision(requestId, params) {
|
|
1633
|
-
const fileManager = _optionalChain([this, 'access',
|
|
1757
|
+
const fileManager = _optionalChain([this, 'access', _51 => _51.agent, 'optionalAccess', _52 => _52.getFileManager, 'optionalCall', _53 => _53()]);
|
|
1634
1758
|
if (!fileManager) {
|
|
1635
1759
|
return {
|
|
1636
1760
|
success: false,
|
|
@@ -1677,12 +1801,12 @@ ${sel.text}
|
|
|
1677
1801
|
*/
|
|
1678
1802
|
async handleGetSkillsRegistry(requestId, params) {
|
|
1679
1803
|
try {
|
|
1680
|
-
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-
|
|
1804
|
+
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-XTQ6RMTA.cjs")));
|
|
1681
1805
|
const { GitHubRegistryFetcher } = await Promise.resolve().then(() => _interopRequireWildcard(require("./GitHubRegistryFetcher-CYJLF2XL.cjs")));
|
|
1682
1806
|
const cache = new CommunitySkillsCache();
|
|
1683
1807
|
const fetcher = new GitHubRegistryFetcher();
|
|
1684
1808
|
let registry;
|
|
1685
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
1809
|
+
if (_optionalChain([params, 'optionalAccess', _54 => _54.forceRefresh])) {
|
|
1686
1810
|
process.stderr.write("[RPC] Force refreshing skills registry from GitHub\n");
|
|
1687
1811
|
registry = await fetcher.fetchRegistry();
|
|
1688
1812
|
await cache.setRegistry(registry);
|
|
@@ -1729,7 +1853,7 @@ ${sel.text}
|
|
|
1729
1853
|
*/
|
|
1730
1854
|
async handleInstallSkill(requestId, params) {
|
|
1731
1855
|
try {
|
|
1732
|
-
const skillsRegistry = _optionalChain([this, 'access',
|
|
1856
|
+
const skillsRegistry = _optionalChain([this, 'access', _55 => _55.agent, 'optionalAccess', _56 => _56.getSkillsRegistry, 'optionalCall', _57 => _57()]);
|
|
1733
1857
|
if (!skillsRegistry) {
|
|
1734
1858
|
return {
|
|
1735
1859
|
success: false,
|
|
@@ -1737,9 +1861,9 @@ ${sel.text}
|
|
|
1737
1861
|
};
|
|
1738
1862
|
}
|
|
1739
1863
|
const workspaceRoot = this.workspace;
|
|
1740
|
-
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-
|
|
1864
|
+
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-XTQ6RMTA.cjs")));
|
|
1741
1865
|
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-
|
|
1866
|
+
const { AUTOHAND_PATHS, PROJECT_DIR_NAME } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-B4W5BT7F.cjs")));
|
|
1743
1867
|
const path2 = await Promise.resolve().then(() => _interopRequireWildcard(require("path")));
|
|
1744
1868
|
const cache = new CommunitySkillsCache();
|
|
1745
1869
|
const fetcher = new GitHubRegistryFetcher();
|
|
@@ -1814,13 +1938,13 @@ ${sel.text}
|
|
|
1814
1938
|
*/
|
|
1815
1939
|
async handleLearnRecommend(requestId, params) {
|
|
1816
1940
|
try {
|
|
1817
|
-
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-
|
|
1818
|
-
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-
|
|
1941
|
+
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-YL6PN6AV.cjs")));
|
|
1942
|
+
const { CommunitySkillsCache } = await Promise.resolve().then(() => _interopRequireWildcard(require("./CommunitySkillsCache-XTQ6RMTA.cjs")));
|
|
1819
1943
|
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-
|
|
1944
|
+
const { fetchRegistryWithFallback } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-IRR6M3N6.cjs")));
|
|
1945
|
+
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-LAURA3IB.cjs")));
|
|
1822
1946
|
const workspace = this.workspace || process.cwd();
|
|
1823
|
-
const deep = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
1947
|
+
const deep = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _58 => _58.deep]), () => ( false));
|
|
1824
1948
|
writeNotification(RPC_NOTIFICATIONS.LEARN_PROGRESS, {
|
|
1825
1949
|
status: "analyzing",
|
|
1826
1950
|
timestamp: createTimestamp()
|
|
@@ -1840,14 +1964,14 @@ ${sel.text}
|
|
|
1840
1964
|
registry = await fetchRegistryWithFallback(cache, fetcher);
|
|
1841
1965
|
} catch (e4) {
|
|
1842
1966
|
}
|
|
1843
|
-
const skillsRegistry = _optionalChain([this, 'access',
|
|
1844
|
-
const installedSkills = _nullishCoalesce(_optionalChain([skillsRegistry, 'optionalAccess',
|
|
1845
|
-
const registrySkills = _nullishCoalesce(_optionalChain([registry, 'optionalAccess',
|
|
1967
|
+
const skillsRegistry = _optionalChain([this, 'access', _59 => _59.agent, 'optionalAccess', _60 => _60.getSkillsRegistry, 'optionalCall', _61 => _61()]);
|
|
1968
|
+
const installedSkills = _nullishCoalesce(_optionalChain([skillsRegistry, 'optionalAccess', _62 => _62.listSkills, 'call', _63 => _63()]), () => ( []));
|
|
1969
|
+
const registrySkills = _nullishCoalesce(_optionalChain([registry, 'optionalAccess', _64 => _64.skills]), () => ( []));
|
|
1846
1970
|
writeNotification(RPC_NOTIFICATIONS.LEARN_PROGRESS, {
|
|
1847
1971
|
status: "evaluating",
|
|
1848
1972
|
timestamp: createTimestamp()
|
|
1849
1973
|
});
|
|
1850
|
-
const llm = _optionalChain([this, 'access',
|
|
1974
|
+
const llm = _optionalChain([this, 'access', _65 => _65.agent, 'optionalAccess', _66 => _66.getLlmProvider, 'optionalCall', _67 => _67()]);
|
|
1851
1975
|
if (!llm) {
|
|
1852
1976
|
return {
|
|
1853
1977
|
success: false,
|
|
@@ -1886,9 +2010,9 @@ ${sel.text}
|
|
|
1886
2010
|
*/
|
|
1887
2011
|
async handleLearnUpdate(_requestId, _params) {
|
|
1888
2012
|
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-
|
|
2013
|
+
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-YL6PN6AV.cjs")));
|
|
2014
|
+
const { computeProjectHash, injectGeneratedMetadata } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-IRR6M3N6.cjs")));
|
|
2015
|
+
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-LAURA3IB.cjs")));
|
|
1892
2016
|
const fse = await Promise.resolve().then(() => _interopRequireWildcard(require("fs-extra")));
|
|
1893
2017
|
const workspace = this.workspace || process.cwd();
|
|
1894
2018
|
writeNotification(RPC_NOTIFICATIONS.LEARN_PROGRESS, {
|
|
@@ -1899,18 +2023,18 @@ ${sel.text}
|
|
|
1899
2023
|
const analyzer = new ProjectAnalyzer(workspace);
|
|
1900
2024
|
const analysis = await analyzer.analyze();
|
|
1901
2025
|
const currentHash = computeProjectHash(analysis);
|
|
1902
|
-
const skillsRegistry = _optionalChain([this, 'access',
|
|
2026
|
+
const skillsRegistry = _optionalChain([this, 'access', _68 => _68.agent, 'optionalAccess', _69 => _69.getSkillsRegistry, 'optionalCall', _70 => _70()]);
|
|
1903
2027
|
if (!skillsRegistry) {
|
|
1904
2028
|
return { success: false, updated: 0, unchanged: 0, results: [], error: "Skills registry not available" };
|
|
1905
2029
|
}
|
|
1906
2030
|
const allSkills = skillsRegistry.listSkills();
|
|
1907
2031
|
const generatedSkills = allSkills.filter(
|
|
1908
|
-
(s) => _optionalChain([s, 'access',
|
|
2032
|
+
(s) => _optionalChain([s, 'access', _71 => _71.metadata, 'optionalAccess', _72 => _72["agentskill-source"]]) === "llm-generated"
|
|
1909
2033
|
);
|
|
1910
2034
|
if (generatedSkills.length === 0) {
|
|
1911
2035
|
return { success: true, updated: 0, unchanged: 0, results: [] };
|
|
1912
2036
|
}
|
|
1913
|
-
const llm = _optionalChain([this, 'access',
|
|
2037
|
+
const llm = _optionalChain([this, 'access', _73 => _73.agent, 'optionalAccess', _74 => _74.getLlmProvider, 'optionalCall', _75 => _75()]);
|
|
1914
2038
|
if (!llm) {
|
|
1915
2039
|
return { success: false, updated: 0, unchanged: 0, results: [], error: "LLM provider not available" };
|
|
1916
2040
|
}
|
|
@@ -1919,7 +2043,7 @@ ${sel.text}
|
|
|
1919
2043
|
let unchanged = 0;
|
|
1920
2044
|
const results = [];
|
|
1921
2045
|
for (const skill of generatedSkills) {
|
|
1922
|
-
const storedHash = _optionalChain([skill, 'access',
|
|
2046
|
+
const storedHash = _optionalChain([skill, 'access', _76 => _76.metadata, 'optionalAccess', _77 => _77["agentskill-project-hash"]]);
|
|
1923
2047
|
if (storedHash === currentHash) {
|
|
1924
2048
|
unchanged++;
|
|
1925
2049
|
results.push({ name: skill.name, status: "unchanged" });
|
|
@@ -1964,10 +2088,10 @@ description: ${generated.description}
|
|
|
1964
2088
|
*/
|
|
1965
2089
|
async handleLearnGenerate(requestId, params) {
|
|
1966
2090
|
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-
|
|
2091
|
+
const { ProjectAnalyzer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./autoSkill-YL6PN6AV.cjs")));
|
|
2092
|
+
const { computeProjectHash, injectGeneratedMetadata } = await Promise.resolve().then(() => _interopRequireWildcard(require("./communityInstaller-IRR6M3N6.cjs")));
|
|
2093
|
+
const { LearnAdvisor } = await Promise.resolve().then(() => _interopRequireWildcard(require("./LearnAdvisor-LAURA3IB.cjs")));
|
|
2094
|
+
const { AUTOHAND_PATHS, PROJECT_DIR_NAME } = await Promise.resolve().then(() => _interopRequireWildcard(require("./constants-B4W5BT7F.cjs")));
|
|
1971
2095
|
const fse = await Promise.resolve().then(() => _interopRequireWildcard(require("fs-extra")));
|
|
1972
2096
|
const path2 = await Promise.resolve().then(() => _interopRequireWildcard(require("path")));
|
|
1973
2097
|
const workspace = this.workspace || process.cwd();
|
|
@@ -1978,7 +2102,7 @@ description: ${generated.description}
|
|
|
1978
2102
|
});
|
|
1979
2103
|
process.stderr.write(`[RPC] Learn generate: scope=${scope}
|
|
1980
2104
|
`);
|
|
1981
|
-
const llm = _optionalChain([this, 'access',
|
|
2105
|
+
const llm = _optionalChain([this, 'access', _78 => _78.agent, 'optionalAccess', _79 => _79.getLlmProvider, 'optionalCall', _80 => _80()]);
|
|
1982
2106
|
if (!llm) {
|
|
1983
2107
|
return { success: false, error: "LLM provider not available" };
|
|
1984
2108
|
}
|
|
@@ -2023,14 +2147,14 @@ description: ${generated.description}
|
|
|
2023
2147
|
* Get paginated session history
|
|
2024
2148
|
*/
|
|
2025
2149
|
async handleGetHistory(_requestId, params) {
|
|
2026
|
-
const sessionManager = _optionalChain([this, 'access',
|
|
2150
|
+
const sessionManager = _optionalChain([this, 'access', _81 => _81.agent, 'optionalAccess', _82 => _82.getSessionManager, 'optionalCall', _83 => _83()]);
|
|
2027
2151
|
if (!sessionManager) {
|
|
2028
2152
|
return { sessions: [], currentPage: 1, totalPages: 0, totalItems: 0 };
|
|
2029
2153
|
}
|
|
2030
2154
|
try {
|
|
2031
2155
|
const allSessions = await sessionManager.listSessions();
|
|
2032
|
-
const page = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
2033
|
-
const pageSize = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
2156
|
+
const page = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _84 => _84.page]), () => ( 1));
|
|
2157
|
+
const pageSize = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _85 => _85.pageSize]), () => ( 20));
|
|
2034
2158
|
const totalItems = allSessions.length;
|
|
2035
2159
|
const totalPages = Math.max(1, Math.ceil(totalItems / pageSize));
|
|
2036
2160
|
const startIndex = (page - 1) * pageSize;
|
|
@@ -2060,7 +2184,7 @@ description: ${generated.description}
|
|
|
2060
2184
|
* Get a specific session's metadata and messages
|
|
2061
2185
|
*/
|
|
2062
2186
|
async handleGetSession(_requestId, params) {
|
|
2063
|
-
const sessionManager = _optionalChain([this, 'access',
|
|
2187
|
+
const sessionManager = _optionalChain([this, 'access', _86 => _86.agent, 'optionalAccess', _87 => _87.getSessionManager, 'optionalCall', _88 => _88()]);
|
|
2064
2188
|
if (!sessionManager) {
|
|
2065
2189
|
return { success: false, error: "Session manager not available" };
|
|
2066
2190
|
}
|
|
@@ -2114,22 +2238,32 @@ description: ${generated.description}
|
|
|
2114
2238
|
* Set YOLO (unrestricted) mode with pattern and optional timeout
|
|
2115
2239
|
*/
|
|
2116
2240
|
handleYoloSet(_requestId, params) {
|
|
2117
|
-
const permissionManager = _optionalChain([this, 'access',
|
|
2241
|
+
const permissionManager = _optionalChain([this, 'access', _89 => _89.agent, 'optionalAccess', _90 => _90.getPermissionManager, 'optionalCall', _91 => _91()]);
|
|
2118
2242
|
if (!permissionManager) {
|
|
2119
2243
|
return { success: false };
|
|
2120
2244
|
}
|
|
2121
2245
|
try {
|
|
2246
|
+
const revertGeneration = ++this.yoloRevertGeneration;
|
|
2247
|
+
if (this.yoloRevertTimer) {
|
|
2248
|
+
clearTimeout(this.yoloRevertTimer);
|
|
2249
|
+
this.yoloRevertTimer = null;
|
|
2250
|
+
}
|
|
2122
2251
|
permissionManager.setMode("unrestricted");
|
|
2123
2252
|
process.stderr.write(`[RPC] YOLO mode enabled with pattern: ${params.pattern}
|
|
2124
2253
|
`);
|
|
2125
2254
|
let expiresIn;
|
|
2126
2255
|
if (params.timeoutSeconds && params.timeoutSeconds > 0) {
|
|
2127
2256
|
expiresIn = params.timeoutSeconds;
|
|
2128
|
-
setTimeout(() => {
|
|
2257
|
+
this.yoloRevertTimer = setTimeout(() => {
|
|
2258
|
+
if (this.yoloRevertGeneration !== revertGeneration) {
|
|
2259
|
+
return;
|
|
2260
|
+
}
|
|
2261
|
+
this.yoloRevertTimer = null;
|
|
2129
2262
|
permissionManager.setMode("interactive");
|
|
2130
2263
|
process.stderr.write(`[RPC] YOLO mode expired, reverted to interactive
|
|
2131
2264
|
`);
|
|
2132
2265
|
}, params.timeoutSeconds * 1e3);
|
|
2266
|
+
_optionalChain([this, 'access', _92 => _92.yoloRevertTimer, 'access', _93 => _93.unref, 'optionalCall', _94 => _94()]);
|
|
2133
2267
|
}
|
|
2134
2268
|
return { success: true, expiresIn };
|
|
2135
2269
|
} catch (error) {
|
|
@@ -2143,7 +2277,7 @@ description: ${generated.description}
|
|
|
2143
2277
|
* List all MCP servers and their connection status
|
|
2144
2278
|
*/
|
|
2145
2279
|
handleMcpListServers(_requestId) {
|
|
2146
|
-
const mcpManager = _optionalChain([this, 'access',
|
|
2280
|
+
const mcpManager = _optionalChain([this, 'access', _95 => _95.agent, 'optionalAccess', _96 => _96.getMcpManager, 'optionalCall', _97 => _97()]);
|
|
2147
2281
|
if (!mcpManager) {
|
|
2148
2282
|
return { servers: [] };
|
|
2149
2283
|
}
|
|
@@ -2153,18 +2287,18 @@ description: ${generated.description}
|
|
|
2153
2287
|
* List all MCP tools, optionally filtered by server name
|
|
2154
2288
|
*/
|
|
2155
2289
|
handleMcpListTools(_requestId, params) {
|
|
2156
|
-
const mcpManager = _optionalChain([this, 'access',
|
|
2290
|
+
const mcpManager = _optionalChain([this, 'access', _98 => _98.agent, 'optionalAccess', _99 => _99.getMcpManager, 'optionalCall', _100 => _100()]);
|
|
2157
2291
|
if (!mcpManager) {
|
|
2158
2292
|
return { tools: [] };
|
|
2159
2293
|
}
|
|
2160
|
-
const allTools = _optionalChain([params, 'optionalAccess',
|
|
2294
|
+
const allTools = _optionalChain([params, 'optionalAccess', _101 => _101.serverName]) ? mcpManager.getToolsForServer(params.serverName) : mcpManager.getAllTools();
|
|
2161
2295
|
return {
|
|
2162
2296
|
tools: allTools.map((t) => {
|
|
2163
2297
|
const parsed = _chunkDI57A4BXcjs.McpClientManager.parseMcpToolName(t.name);
|
|
2164
2298
|
return {
|
|
2165
2299
|
name: t.name,
|
|
2166
2300
|
description: t.description,
|
|
2167
|
-
serverName: _nullishCoalesce(_optionalChain([parsed, 'optionalAccess',
|
|
2301
|
+
serverName: _nullishCoalesce(_optionalChain([parsed, 'optionalAccess', _102 => _102.serverName]), () => ( "unknown"))
|
|
2168
2302
|
};
|
|
2169
2303
|
})
|
|
2170
2304
|
};
|
|
@@ -2173,7 +2307,7 @@ description: ${generated.description}
|
|
|
2173
2307
|
* List persisted meta-tools and registry diagnostics for non-interactive clients.
|
|
2174
2308
|
*/
|
|
2175
2309
|
handleGetToolsRegistry() {
|
|
2176
|
-
const registry = _optionalChain([this, 'access',
|
|
2310
|
+
const registry = _optionalChain([this, 'access', _103 => _103.agent, 'optionalAccess', _104 => _104.getToolsRegistry, 'optionalCall', _105 => _105()]);
|
|
2177
2311
|
if (!registry) {
|
|
2178
2312
|
return { tools: [], diagnostics: [] };
|
|
2179
2313
|
}
|
|
@@ -2393,7 +2527,7 @@ description: ${generated.description}
|
|
|
2393
2527
|
* Handle output events from the agent
|
|
2394
2528
|
*/
|
|
2395
2529
|
handleAgentOutput(event) {
|
|
2396
|
-
process.stderr.write(`[RPC DEBUG] handleAgentOutput: type=${event.type}, content length=${_nullishCoalesce(_optionalChain([event, 'access',
|
|
2530
|
+
process.stderr.write(`[RPC DEBUG] handleAgentOutput: type=${event.type}, content length=${_nullishCoalesce(_optionalChain([event, 'access', _106 => _106.content, 'optionalAccess', _107 => _107.length]), () => ( 0))}
|
|
2397
2531
|
`);
|
|
2398
2532
|
switch (event.type) {
|
|
2399
2533
|
case "thinking":
|
|
@@ -2504,14 +2638,14 @@ description: ${generated.description}
|
|
|
2504
2638
|
toolCalls = msg.tool_calls.map((tc) => {
|
|
2505
2639
|
let args = {};
|
|
2506
2640
|
try {
|
|
2507
|
-
if (_optionalChain([tc, 'access',
|
|
2641
|
+
if (_optionalChain([tc, 'access', _108 => _108.function, 'optionalAccess', _109 => _109.arguments])) {
|
|
2508
2642
|
args = JSON.parse(tc.function.arguments);
|
|
2509
2643
|
}
|
|
2510
2644
|
} catch (e6) {
|
|
2511
2645
|
}
|
|
2512
2646
|
return {
|
|
2513
2647
|
id: tc.id,
|
|
2514
|
-
name: _nullishCoalesce(_optionalChain([tc, 'access',
|
|
2648
|
+
name: _nullishCoalesce(_optionalChain([tc, 'access', _110 => _110.function, 'optionalAccess', _111 => _111.name]), () => ( "unknown")),
|
|
2515
2649
|
args
|
|
2516
2650
|
};
|
|
2517
2651
|
});
|
|
@@ -2532,7 +2666,7 @@ description: ${generated.description}
|
|
|
2532
2666
|
*/
|
|
2533
2667
|
async handleAutomodeStart(requestId, params) {
|
|
2534
2668
|
try {
|
|
2535
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2669
|
+
const automodeManager = _optionalChain([this, 'access', _112 => _112.agent, 'optionalAccess', _113 => _113.getAutomodeManager, 'optionalCall', _114 => _114()]);
|
|
2536
2670
|
if (!automodeManager) {
|
|
2537
2671
|
return {
|
|
2538
2672
|
success: false,
|
|
@@ -2563,7 +2697,7 @@ description: ${generated.description}
|
|
|
2563
2697
|
* Get auto-mode status
|
|
2564
2698
|
*/
|
|
2565
2699
|
handleAutomodeStatus(_requestId) {
|
|
2566
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2700
|
+
const automodeManager = _optionalChain([this, 'access', _115 => _115.agent, 'optionalAccess', _116 => _116.getAutomodeManager, 'optionalCall', _117 => _117()]);
|
|
2567
2701
|
if (!automodeManager) {
|
|
2568
2702
|
return {
|
|
2569
2703
|
active: false,
|
|
@@ -2591,7 +2725,7 @@ description: ${generated.description}
|
|
|
2591
2725
|
*/
|
|
2592
2726
|
async handleAutomodePause(_requestId) {
|
|
2593
2727
|
try {
|
|
2594
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2728
|
+
const automodeManager = _optionalChain([this, 'access', _118 => _118.agent, 'optionalAccess', _119 => _119.getAutomodeManager, 'optionalCall', _120 => _120()]);
|
|
2595
2729
|
if (!automodeManager) {
|
|
2596
2730
|
return {
|
|
2597
2731
|
success: false,
|
|
@@ -2625,7 +2759,7 @@ description: ${generated.description}
|
|
|
2625
2759
|
*/
|
|
2626
2760
|
async handleAutomodeResume(_requestId) {
|
|
2627
2761
|
try {
|
|
2628
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2762
|
+
const automodeManager = _optionalChain([this, 'access', _121 => _121.agent, 'optionalAccess', _122 => _122.getAutomodeManager, 'optionalCall', _123 => _123()]);
|
|
2629
2763
|
if (!automodeManager) {
|
|
2630
2764
|
return {
|
|
2631
2765
|
success: false,
|
|
@@ -2659,7 +2793,7 @@ description: ${generated.description}
|
|
|
2659
2793
|
*/
|
|
2660
2794
|
async handleAutomodeCancel(requestId, reason) {
|
|
2661
2795
|
try {
|
|
2662
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2796
|
+
const automodeManager = _optionalChain([this, 'access', _124 => _124.agent, 'optionalAccess', _125 => _125.getAutomodeManager, 'optionalCall', _126 => _126()]);
|
|
2663
2797
|
if (!automodeManager) {
|
|
2664
2798
|
return {
|
|
2665
2799
|
success: false,
|
|
@@ -2687,7 +2821,7 @@ description: ${generated.description}
|
|
|
2687
2821
|
*/
|
|
2688
2822
|
handleAutomodeGetLog(requestId, limit) {
|
|
2689
2823
|
try {
|
|
2690
|
-
const automodeManager = _optionalChain([this, 'access',
|
|
2824
|
+
const automodeManager = _optionalChain([this, 'access', _127 => _127.agent, 'optionalAccess', _128 => _128.getAutomodeManager, 'optionalCall', _129 => _129()]);
|
|
2691
2825
|
if (!automodeManager) {
|
|
2692
2826
|
return {
|
|
2693
2827
|
success: false,
|
|
@@ -2724,7 +2858,7 @@ description: ${generated.description}
|
|
|
2724
2858
|
*/
|
|
2725
2859
|
async handleSetPermissionMode(params) {
|
|
2726
2860
|
try {
|
|
2727
|
-
const previousMode = _optionalChain([this, 'access',
|
|
2861
|
+
const previousMode = _optionalChain([this, 'access', _130 => _130.config, 'optionalAccess', _131 => _131.permissionMode]) || "default";
|
|
2728
2862
|
this.config.permissionMode = params.mode;
|
|
2729
2863
|
return {
|
|
2730
2864
|
success: true,
|
|
@@ -2734,8 +2868,8 @@ description: ${generated.description}
|
|
|
2734
2868
|
} catch (e7) {
|
|
2735
2869
|
return {
|
|
2736
2870
|
success: false,
|
|
2737
|
-
currentMode: _optionalChain([this, 'access',
|
|
2738
|
-
previousMode: _optionalChain([this, 'access',
|
|
2871
|
+
currentMode: _optionalChain([this, 'access', _132 => _132.config, 'optionalAccess', _133 => _133.permissionMode]) || "default",
|
|
2872
|
+
previousMode: _optionalChain([this, 'access', _134 => _134.config, 'optionalAccess', _135 => _135.permissionMode]) || "default"
|
|
2739
2873
|
};
|
|
2740
2874
|
}
|
|
2741
2875
|
}
|
|
@@ -2752,7 +2886,7 @@ description: ${generated.description}
|
|
|
2752
2886
|
} catch (e8) {
|
|
2753
2887
|
return {
|
|
2754
2888
|
success: false,
|
|
2755
|
-
currentModel: _optionalChain([this, 'access',
|
|
2889
|
+
currentModel: _optionalChain([this, 'access', _136 => _136.config, 'optionalAccess', _137 => _137.model])
|
|
2756
2890
|
};
|
|
2757
2891
|
}
|
|
2758
2892
|
}
|
|
@@ -2769,7 +2903,7 @@ description: ${generated.description}
|
|
|
2769
2903
|
} catch (e9) {
|
|
2770
2904
|
return {
|
|
2771
2905
|
success: false,
|
|
2772
|
-
currentMaxThinkingTokens: _optionalChain([this, 'access',
|
|
2906
|
+
currentMaxThinkingTokens: _optionalChain([this, 'access', _138 => _138.config, 'optionalAccess', _139 => _139.maxThinkingTokens]) || null
|
|
2773
2907
|
};
|
|
2774
2908
|
}
|
|
2775
2909
|
}
|
|
@@ -2784,7 +2918,7 @@ description: ${generated.description}
|
|
|
2784
2918
|
this.config[key] = value;
|
|
2785
2919
|
appliedSettings.push(key);
|
|
2786
2920
|
if (key === "contextCompact" && typeof value === "boolean") {
|
|
2787
|
-
_optionalChain([this, 'access',
|
|
2921
|
+
_optionalChain([this, 'access', _140 => _140.agent, 'optionalAccess', _141 => _141.setContextCompaction, 'call', _142 => _142(value)]);
|
|
2788
2922
|
}
|
|
2789
2923
|
}
|
|
2790
2924
|
}
|
|
@@ -2848,9 +2982,9 @@ description: ${generated.description}
|
|
|
2848
2982
|
*/
|
|
2849
2983
|
async handleGetContextUsage() {
|
|
2850
2984
|
try {
|
|
2851
|
-
if (_optionalChain([this, 'access',
|
|
2985
|
+
if (_optionalChain([this, 'access', _143 => _143.agent, 'optionalAccess', _144 => _144.getContextOrchestrator])) {
|
|
2852
2986
|
const orchestrator = this.agent.getContextOrchestrator();
|
|
2853
|
-
const tools = _nullishCoalesce(_optionalChain([this, 'access',
|
|
2987
|
+
const tools = _nullishCoalesce(_optionalChain([this, 'access', _145 => _145.agent, 'access', _146 => _146.getToolDefinitions, 'optionalCall', _147 => _147()]), () => ( []));
|
|
2854
2988
|
const usage = orchestrator.getExtendedUsage(tools);
|
|
2855
2989
|
return {
|
|
2856
2990
|
systemPrompt: usage.systemPrompt,
|
|
@@ -2889,10 +3023,10 @@ description: ${generated.description}
|
|
|
2889
3023
|
*/
|
|
2890
3024
|
async handleSetContextCompact(params) {
|
|
2891
3025
|
try {
|
|
2892
|
-
_optionalChain([this, 'access',
|
|
3026
|
+
_optionalChain([this, 'access', _148 => _148.agent, 'optionalAccess', _149 => _149.setContextCompaction, 'call', _150 => _150(params.enabled)]);
|
|
2893
3027
|
return { enabled: params.enabled };
|
|
2894
3028
|
} catch (e14) {
|
|
2895
|
-
return { enabled: _nullishCoalesce(_optionalChain([this, 'access',
|
|
3029
|
+
return { enabled: _nullishCoalesce(_optionalChain([this, 'access', _151 => _151.agent, 'optionalAccess', _152 => _152.isContextCompactionEnabled, 'optionalCall', _153 => _153()]), () => ( false)) };
|
|
2896
3030
|
}
|
|
2897
3031
|
}
|
|
2898
3032
|
/**
|
|
@@ -2980,6 +3114,12 @@ description: ${generated.description}
|
|
|
2980
3114
|
}
|
|
2981
3115
|
}
|
|
2982
3116
|
}, _class2);
|
|
3117
|
+
function parseRpcGoalStatus(value) {
|
|
3118
|
+
if (value === "active" || value === "paused" || value === "complete" || value === "budgetLimited") {
|
|
3119
|
+
return value;
|
|
3120
|
+
}
|
|
3121
|
+
return void 0;
|
|
3122
|
+
}
|
|
2983
3123
|
|
|
2984
3124
|
// src/modes/rpc/index.ts
|
|
2985
3125
|
var originalConsole = {
|
|
@@ -3026,7 +3166,10 @@ async function runRpcMode(options) {
|
|
|
3026
3166
|
let adapter = null;
|
|
3027
3167
|
let agent = null;
|
|
3028
3168
|
try {
|
|
3029
|
-
const config = await
|
|
3169
|
+
const config = await _chunkEFXFURDYcjs.prepareBareModeConfig.call(void 0,
|
|
3170
|
+
await _asyncNullishCoalesce(options._authConfig, async () => ( await _chunkCNQKIWIScjs.loadConfig.call(void 0, options.config, process.cwd()))),
|
|
3171
|
+
options
|
|
3172
|
+
);
|
|
3030
3173
|
const normalizedYolo = _chunkJ5HE6CUMcjs.normalizeYoloInput.call(void 0, options.yolo);
|
|
3031
3174
|
if (normalizedYolo) {
|
|
3032
3175
|
try {
|
|
@@ -3044,7 +3187,7 @@ async function runRpcMode(options) {
|
|
|
3044
3187
|
}
|
|
3045
3188
|
const originalWorkspaceRoot = _nullishCoalesce(options.path, () => ( process.cwd()));
|
|
3046
3189
|
let workspaceRoot = originalWorkspaceRoot;
|
|
3047
|
-
const workspacePathValidation = await
|
|
3190
|
+
const workspacePathValidation = await _chunkQLZOMZO5cjs.validateWorkspacePath.call(void 0, originalWorkspaceRoot);
|
|
3048
3191
|
if (!workspacePathValidation.valid) {
|
|
3049
3192
|
writeErrorResponse(
|
|
3050
3193
|
null,
|
|
@@ -3062,7 +3205,7 @@ async function runRpcMode(options) {
|
|
|
3062
3205
|
);
|
|
3063
3206
|
process.exit(1);
|
|
3064
3207
|
}
|
|
3065
|
-
const isAuthed = await
|
|
3208
|
+
const isAuthed = await _chunkAZKOIF2Gcjs.checkAuthenticated.call(void 0, config);
|
|
3066
3209
|
if (!isAuthed) {
|
|
3067
3210
|
writeErrorResponse(
|
|
3068
3211
|
null,
|
|
@@ -3075,8 +3218,8 @@ async function runRpcMode(options) {
|
|
|
3075
3218
|
config.ui = {};
|
|
3076
3219
|
}
|
|
3077
3220
|
config.ui.useInkRenderer = false;
|
|
3078
|
-
if (
|
|
3079
|
-
const sessionWorktree =
|
|
3221
|
+
if (_chunkEFXFURDYcjs.isSessionWorktreeEnabled.call(void 0, options.worktree)) {
|
|
3222
|
+
const sessionWorktree = _chunkEFXFURDYcjs.prepareSessionWorktree.call(void 0, {
|
|
3080
3223
|
cwd: originalWorkspaceRoot,
|
|
3081
3224
|
worktree: options.worktree,
|
|
3082
3225
|
mode: "rpc"
|
|
@@ -3114,12 +3257,12 @@ async function runRpcMode(options) {
|
|
|
3114
3257
|
additionalDirs: additionalDirs.length > 0 ? additionalDirs : void 0,
|
|
3115
3258
|
isRpcMode: true
|
|
3116
3259
|
};
|
|
3117
|
-
const provider =
|
|
3260
|
+
const provider = _chunkY4MN27V3cjs.ProviderFactory.create(config);
|
|
3118
3261
|
if (options.model) {
|
|
3119
3262
|
provider.setModel(options.model);
|
|
3120
3263
|
}
|
|
3121
3264
|
const files = new (0, _chunk5K3CDSWZcjs.FileActionManager)(workspaceRoot, additionalDirs);
|
|
3122
|
-
agent = new (0,
|
|
3265
|
+
agent = new (0, _chunkFJR6EZLOcjs.AutohandAgent)(provider, files, runtime);
|
|
3123
3266
|
await agent.initializeForRPC();
|
|
3124
3267
|
const conversation = _chunkDA7NBAJKcjs.ConversationManager.getInstance();
|
|
3125
3268
|
try {
|
|
@@ -3131,19 +3274,20 @@ async function runRpcMode(options) {
|
|
|
3131
3274
|
adapter.initialize(
|
|
3132
3275
|
agent,
|
|
3133
3276
|
conversation,
|
|
3134
|
-
_nullishCoalesce(_nullishCoalesce(options.model, () => ( _optionalChain([config, 'access',
|
|
3277
|
+
_nullishCoalesce(_nullishCoalesce(options.model, () => ( _optionalChain([config, 'access', _154 => _154.openrouter, 'optionalAccess', _155 => _155.model]))), () => ( "unknown")),
|
|
3135
3278
|
workspaceRoot,
|
|
3136
|
-
|
|
3279
|
+
config,
|
|
3280
|
+
_optionalChain([config, 'access', _156 => _156.mcp, 'optionalAccess', _157 => _157.servers])
|
|
3137
3281
|
);
|
|
3138
3282
|
agent.setConfirmationCallback(async (message, context) => {
|
|
3139
3283
|
if (!adapter) {
|
|
3140
3284
|
throw new Error("RPC adapter not initialized");
|
|
3141
3285
|
}
|
|
3142
|
-
const tool = _nullishCoalesce(_optionalChain([context, 'optionalAccess',
|
|
3286
|
+
const tool = _nullishCoalesce(_optionalChain([context, 'optionalAccess', _158 => _158.tool]), () => ( "action"));
|
|
3143
3287
|
const description = message;
|
|
3144
3288
|
const permContext = {};
|
|
3145
|
-
if (_optionalChain([context, 'optionalAccess',
|
|
3146
|
-
if (_optionalChain([context, 'optionalAccess',
|
|
3289
|
+
if (_optionalChain([context, 'optionalAccess', _159 => _159.command])) permContext.command = context.command;
|
|
3290
|
+
if (_optionalChain([context, 'optionalAccess', _160 => _160.path])) permContext.path = context.path;
|
|
3147
3291
|
return adapter.requestPermission(tool, description, permContext);
|
|
3148
3292
|
});
|
|
3149
3293
|
agent.setDirectoryAccessCallback(async (path2, reason) => {
|
|
@@ -3170,12 +3314,12 @@ async function runRpcMode(options) {
|
|
|
3170
3314
|
writeInternalError(null, message);
|
|
3171
3315
|
}
|
|
3172
3316
|
}
|
|
3173
|
-
_optionalChain([adapter, 'optionalAccess',
|
|
3317
|
+
_optionalChain([adapter, 'optionalAccess', _161 => _161.shutdown, 'call', _162 => _162("disconnected")]);
|
|
3174
3318
|
process.exit(0);
|
|
3175
3319
|
} catch (error) {
|
|
3176
3320
|
const message = error instanceof Error ? error.message : String(error);
|
|
3177
3321
|
writeErrorResponse(null, JSON_RPC_ERROR_CODES.INTERNAL_ERROR, `Initialization error: ${message}`);
|
|
3178
|
-
_optionalChain([adapter, 'optionalAccess',
|
|
3322
|
+
_optionalChain([adapter, 'optionalAccess', _163 => _163.shutdown, 'call', _164 => _164("error")]);
|
|
3179
3323
|
process.exit(1);
|
|
3180
3324
|
}
|
|
3181
3325
|
}
|
|
@@ -3208,7 +3352,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3208
3352
|
switch (method) {
|
|
3209
3353
|
case RPC_METHODS.PROMPT: {
|
|
3210
3354
|
const promptParams = params;
|
|
3211
|
-
if (!_optionalChain([promptParams, 'optionalAccess',
|
|
3355
|
+
if (!_optionalChain([promptParams, 'optionalAccess', _165 => _165.message])) {
|
|
3212
3356
|
if (shouldRespond) {
|
|
3213
3357
|
return createErrorResponse(
|
|
3214
3358
|
id,
|
|
@@ -3218,21 +3362,8 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3218
3362
|
}
|
|
3219
3363
|
return null;
|
|
3220
3364
|
}
|
|
3221
|
-
adapter.
|
|
3222
|
-
|
|
3223
|
-
process.stdout.write(JSON.stringify(createResponse(id, promptResult)) + "\n");
|
|
3224
|
-
}
|
|
3225
|
-
}).catch((error) => {
|
|
3226
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
3227
|
-
if (shouldRespond) {
|
|
3228
|
-
process.stdout.write(JSON.stringify(createErrorResponse(
|
|
3229
|
-
id,
|
|
3230
|
-
JSON_RPC_ERROR_CODES.INTERNAL_ERROR,
|
|
3231
|
-
message
|
|
3232
|
-
)) + "\n");
|
|
3233
|
-
}
|
|
3234
|
-
});
|
|
3235
|
-
return null;
|
|
3365
|
+
result = adapter.startPrompt(_nullishCoalesce(id, () => ( null)), promptParams);
|
|
3366
|
+
break;
|
|
3236
3367
|
}
|
|
3237
3368
|
case RPC_METHODS.ABORT: {
|
|
3238
3369
|
process.stderr.write(`[RPC DEBUG] ABORT received! id=${id}, isNotification=${!shouldRespond}
|
|
@@ -3250,7 +3381,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3250
3381
|
}
|
|
3251
3382
|
case RPC_METHODS.GET_MESSAGES: {
|
|
3252
3383
|
const messagesParams = params;
|
|
3253
|
-
result = adapter.handleGetMessages(id, _optionalChain([messagesParams, 'optionalAccess',
|
|
3384
|
+
result = adapter.handleGetMessages(id, _optionalChain([messagesParams, 'optionalAccess', _166 => _166.limit]));
|
|
3254
3385
|
break;
|
|
3255
3386
|
}
|
|
3256
3387
|
case RPC_METHODS.BROWSER_HANDOFF_CREATE: {
|
|
@@ -3260,7 +3391,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3260
3391
|
}
|
|
3261
3392
|
case RPC_METHODS.BROWSER_HANDOFF_ATTACH: {
|
|
3262
3393
|
const handoffAttachParams = params;
|
|
3263
|
-
if (!_optionalChain([handoffAttachParams, 'optionalAccess',
|
|
3394
|
+
if (!_optionalChain([handoffAttachParams, 'optionalAccess', _167 => _167.token])) {
|
|
3264
3395
|
if (shouldRespond) {
|
|
3265
3396
|
return createErrorResponse(
|
|
3266
3397
|
id,
|
|
@@ -3280,7 +3411,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3280
3411
|
}
|
|
3281
3412
|
case RPC_METHODS.PERMISSION_RESPONSE: {
|
|
3282
3413
|
const permParams = params;
|
|
3283
|
-
if (!_optionalChain([permParams, 'optionalAccess',
|
|
3414
|
+
if (!_optionalChain([permParams, 'optionalAccess', _168 => _168.requestId]) || _optionalChain([permParams, 'optionalAccess', _169 => _169.decision]) === void 0 && _optionalChain([permParams, 'optionalAccess', _170 => _170.allowed]) === void 0) {
|
|
3284
3415
|
if (shouldRespond) {
|
|
3285
3416
|
return createErrorResponse(
|
|
3286
3417
|
id,
|
|
@@ -3299,7 +3430,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3299
3430
|
}
|
|
3300
3431
|
case RPC_METHODS.PERMISSION_ACKNOWLEDGED: {
|
|
3301
3432
|
const ackParams = params;
|
|
3302
|
-
if (!_optionalChain([ackParams, 'optionalAccess',
|
|
3433
|
+
if (!_optionalChain([ackParams, 'optionalAccess', _171 => _171.requestId])) {
|
|
3303
3434
|
if (shouldRespond) {
|
|
3304
3435
|
return createErrorResponse(
|
|
3305
3436
|
id,
|
|
@@ -3314,7 +3445,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3314
3445
|
}
|
|
3315
3446
|
case RPC_METHODS.DIRECTORY_ACCESS_RESPONSE: {
|
|
3316
3447
|
const dirParams = params;
|
|
3317
|
-
if (!_optionalChain([dirParams, 'optionalAccess',
|
|
3448
|
+
if (!_optionalChain([dirParams, 'optionalAccess', _172 => _172.requestId]) || typeof dirParams.granted !== "boolean") {
|
|
3318
3449
|
if (shouldRespond) {
|
|
3319
3450
|
return createErrorResponse(
|
|
3320
3451
|
id,
|
|
@@ -3329,7 +3460,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3329
3460
|
}
|
|
3330
3461
|
case RPC_METHODS.DIRECTORY_ACCESS_ACKNOWLEDGED: {
|
|
3331
3462
|
const dirAckParams = params;
|
|
3332
|
-
if (!_optionalChain([dirAckParams, 'optionalAccess',
|
|
3463
|
+
if (!_optionalChain([dirAckParams, 'optionalAccess', _173 => _173.requestId])) {
|
|
3333
3464
|
if (shouldRespond) {
|
|
3334
3465
|
return createErrorResponse(
|
|
3335
3466
|
id,
|
|
@@ -3344,7 +3475,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3344
3475
|
}
|
|
3345
3476
|
case RPC_METHODS.CHANGES_DECISION: {
|
|
3346
3477
|
const decisionParams = params;
|
|
3347
|
-
if (!_optionalChain([decisionParams, 'optionalAccess',
|
|
3478
|
+
if (!_optionalChain([decisionParams, 'optionalAccess', _174 => _174.batchId]) || !_optionalChain([decisionParams, 'optionalAccess', _175 => _175.action])) {
|
|
3348
3479
|
if (shouldRespond) {
|
|
3349
3480
|
return createErrorResponse(
|
|
3350
3481
|
id,
|
|
@@ -3364,7 +3495,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3364
3495
|
}
|
|
3365
3496
|
case RPC_METHODS.INSTALL_SKILL: {
|
|
3366
3497
|
const installParams = params;
|
|
3367
|
-
if (!_optionalChain([installParams, 'optionalAccess',
|
|
3498
|
+
if (!_optionalChain([installParams, 'optionalAccess', _176 => _176.skillName]) || !_optionalChain([installParams, 'optionalAccess', _177 => _177.scope])) {
|
|
3368
3499
|
if (shouldRespond) {
|
|
3369
3500
|
return createErrorResponse(
|
|
3370
3501
|
id,
|
|
@@ -3380,7 +3511,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3380
3511
|
// Auto-mode RPC methods
|
|
3381
3512
|
case RPC_METHODS.AUTOMODE_START: {
|
|
3382
3513
|
const startParams = params;
|
|
3383
|
-
if (!_optionalChain([startParams, 'optionalAccess',
|
|
3514
|
+
if (!_optionalChain([startParams, 'optionalAccess', _178 => _178.prompt])) {
|
|
3384
3515
|
if (shouldRespond) {
|
|
3385
3516
|
return createErrorResponse(
|
|
3386
3517
|
id,
|
|
@@ -3407,17 +3538,17 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3407
3538
|
}
|
|
3408
3539
|
case RPC_METHODS.AUTOMODE_CANCEL: {
|
|
3409
3540
|
const cancelParams = params;
|
|
3410
|
-
result = await adapter.handleAutomodeCancel(id, _optionalChain([cancelParams, 'optionalAccess',
|
|
3541
|
+
result = await adapter.handleAutomodeCancel(id, _optionalChain([cancelParams, 'optionalAccess', _179 => _179.reason]));
|
|
3411
3542
|
break;
|
|
3412
3543
|
}
|
|
3413
3544
|
case RPC_METHODS.AUTOMODE_GET_LOG: {
|
|
3414
3545
|
const logParams = params;
|
|
3415
|
-
result = adapter.handleAutomodeGetLog(id, _optionalChain([logParams, 'optionalAccess',
|
|
3546
|
+
result = adapter.handleAutomodeGetLog(id, _optionalChain([logParams, 'optionalAccess', _180 => _180.limit]));
|
|
3416
3547
|
break;
|
|
3417
3548
|
}
|
|
3418
3549
|
case RPC_METHODS.PLAN_MODE_SET: {
|
|
3419
3550
|
const planParams = params;
|
|
3420
|
-
if (_optionalChain([planParams, 'optionalAccess',
|
|
3551
|
+
if (_optionalChain([planParams, 'optionalAccess', _181 => _181.enabled]) === void 0) {
|
|
3421
3552
|
if (shouldRespond) {
|
|
3422
3553
|
return createErrorResponse(
|
|
3423
3554
|
id,
|
|
@@ -3427,7 +3558,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3427
3558
|
}
|
|
3428
3559
|
return null;
|
|
3429
3560
|
}
|
|
3430
|
-
const planModeManager =
|
|
3561
|
+
const planModeManager = _chunkQDXRI5AMcjs.getPlanModeManager.call(void 0, );
|
|
3431
3562
|
if (planParams.enabled) {
|
|
3432
3563
|
planModeManager.enable();
|
|
3433
3564
|
} else {
|
|
@@ -3449,7 +3580,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3449
3580
|
}
|
|
3450
3581
|
case RPC_METHODS.YOLO_SET: {
|
|
3451
3582
|
const yoloParams = params;
|
|
3452
|
-
if (!_optionalChain([yoloParams, 'optionalAccess',
|
|
3583
|
+
if (!_optionalChain([yoloParams, 'optionalAccess', _182 => _182.pattern])) {
|
|
3453
3584
|
if (shouldRespond) {
|
|
3454
3585
|
return createErrorResponse(
|
|
3455
3586
|
id,
|
|
@@ -3473,7 +3604,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3473
3604
|
}
|
|
3474
3605
|
case RPC_METHODS.MCP_SET_VSCODE_TOOLS: {
|
|
3475
3606
|
const setToolsParams = params;
|
|
3476
|
-
if (!_optionalChain([setToolsParams, 'optionalAccess',
|
|
3607
|
+
if (!_optionalChain([setToolsParams, 'optionalAccess', _183 => _183.tools])) {
|
|
3477
3608
|
if (shouldRespond) {
|
|
3478
3609
|
return createErrorResponse(
|
|
3479
3610
|
id,
|
|
@@ -3488,7 +3619,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3488
3619
|
}
|
|
3489
3620
|
case RPC_METHODS.MCP_INVOKE_RESPONSE: {
|
|
3490
3621
|
const invokeParams = params;
|
|
3491
|
-
if (!_optionalChain([invokeParams, 'optionalAccess',
|
|
3622
|
+
if (!_optionalChain([invokeParams, 'optionalAccess', _184 => _184.requestId]) || _optionalChain([invokeParams, 'optionalAccess', _185 => _185.success]) === void 0) {
|
|
3492
3623
|
if (shouldRespond) {
|
|
3493
3624
|
return createErrorResponse(
|
|
3494
3625
|
id,
|
|
@@ -3530,7 +3661,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3530
3661
|
}
|
|
3531
3662
|
case RPC_METHODS.LEARN_GENERATE: {
|
|
3532
3663
|
const generateParams = params;
|
|
3533
|
-
if (!_optionalChain([generateParams, 'optionalAccess',
|
|
3664
|
+
if (!_optionalChain([generateParams, 'optionalAccess', _186 => _186.scope])) {
|
|
3534
3665
|
if (shouldRespond) {
|
|
3535
3666
|
return createErrorResponse(
|
|
3536
3667
|
id,
|
|
@@ -3546,7 +3677,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3546
3677
|
// SDK control methods
|
|
3547
3678
|
case RPC_METHODS.SET_PERMISSION_MODE: {
|
|
3548
3679
|
const setPermParams = params;
|
|
3549
|
-
if (!_optionalChain([setPermParams, 'optionalAccess',
|
|
3680
|
+
if (!_optionalChain([setPermParams, 'optionalAccess', _187 => _187.mode])) {
|
|
3550
3681
|
if (shouldRespond) {
|
|
3551
3682
|
return createErrorResponse(
|
|
3552
3683
|
id,
|
|
@@ -3571,7 +3702,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3571
3702
|
}
|
|
3572
3703
|
case RPC_METHODS.APPLY_FLAG_SETTINGS: {
|
|
3573
3704
|
const applyFlagsParams = params;
|
|
3574
|
-
if (!_optionalChain([applyFlagsParams, 'optionalAccess',
|
|
3705
|
+
if (!_optionalChain([applyFlagsParams, 'optionalAccess', _188 => _188.settings])) {
|
|
3575
3706
|
if (shouldRespond) {
|
|
3576
3707
|
return createErrorResponse(
|
|
3577
3708
|
id,
|
|
@@ -3600,9 +3731,49 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3600
3731
|
result = await adapter.handleGetContextUsage();
|
|
3601
3732
|
break;
|
|
3602
3733
|
}
|
|
3734
|
+
case RPC_METHODS.GOAL_GET: {
|
|
3735
|
+
result = await adapter.handleGoalGet();
|
|
3736
|
+
break;
|
|
3737
|
+
}
|
|
3738
|
+
case RPC_METHODS.GOAL_CREATE: {
|
|
3739
|
+
const goalParams = params;
|
|
3740
|
+
if (!_optionalChain([goalParams, 'optionalAccess', _189 => _189.objective])) {
|
|
3741
|
+
if (shouldRespond) {
|
|
3742
|
+
return createErrorResponse(id, JSON_RPC_ERROR_CODES.INVALID_PARAMS, "Missing required parameter: objective");
|
|
3743
|
+
}
|
|
3744
|
+
return null;
|
|
3745
|
+
}
|
|
3746
|
+
result = await adapter.handleGoalCreate(goalParams);
|
|
3747
|
+
break;
|
|
3748
|
+
}
|
|
3749
|
+
case RPC_METHODS.GOAL_UPDATE: {
|
|
3750
|
+
result = await adapter.handleGoalUpdate(_nullishCoalesce(params, () => ( {})));
|
|
3751
|
+
break;
|
|
3752
|
+
}
|
|
3753
|
+
case RPC_METHODS.GOAL_CLEAR: {
|
|
3754
|
+
result = await adapter.handleGoalClear();
|
|
3755
|
+
break;
|
|
3756
|
+
}
|
|
3757
|
+
case RPC_METHODS.GOAL_QUEUE: {
|
|
3758
|
+
const queueParams = params;
|
|
3759
|
+
if (!_optionalChain([queueParams, 'optionalAccess', _190 => _190.objective])) {
|
|
3760
|
+
result = await adapter.handleGoalGet();
|
|
3761
|
+
} else {
|
|
3762
|
+
result = await adapter.handleGoalQueue(queueParams);
|
|
3763
|
+
}
|
|
3764
|
+
break;
|
|
3765
|
+
}
|
|
3766
|
+
case RPC_METHODS.GOAL_START_QUEUED: {
|
|
3767
|
+
result = await adapter.handleGoalStartQueued();
|
|
3768
|
+
break;
|
|
3769
|
+
}
|
|
3770
|
+
case RPC_METHODS.GOAL_LIST_TEMPLATES: {
|
|
3771
|
+
result = await adapter.handleGoalListTemplates();
|
|
3772
|
+
break;
|
|
3773
|
+
}
|
|
3603
3774
|
case RPC_METHODS.SET_CONTEXT_COMPACT: {
|
|
3604
3775
|
const compactParams = params;
|
|
3605
|
-
if (_optionalChain([compactParams, 'optionalAccess',
|
|
3776
|
+
if (_optionalChain([compactParams, 'optionalAccess', _191 => _191.enabled]) === void 0) {
|
|
3606
3777
|
if (shouldRespond) {
|
|
3607
3778
|
return {
|
|
3608
3779
|
jsonrpc: "2.0",
|
|
@@ -3625,7 +3796,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3625
3796
|
}
|
|
3626
3797
|
case RPC_METHODS.MCP_TOGGLE_SERVER: {
|
|
3627
3798
|
const toggleParams = params;
|
|
3628
|
-
if (!_optionalChain([toggleParams, 'optionalAccess',
|
|
3799
|
+
if (!_optionalChain([toggleParams, 'optionalAccess', _192 => _192.serverName]) || _optionalChain([toggleParams, 'optionalAccess', _193 => _193.enabled]) === void 0) {
|
|
3629
3800
|
if (shouldRespond) {
|
|
3630
3801
|
return createErrorResponse(
|
|
3631
3802
|
id,
|
|
@@ -3640,7 +3811,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3640
3811
|
}
|
|
3641
3812
|
case RPC_METHODS.MCP_RECONNECT_SERVER: {
|
|
3642
3813
|
const reconnectParams = params;
|
|
3643
|
-
if (!_optionalChain([reconnectParams, 'optionalAccess',
|
|
3814
|
+
if (!_optionalChain([reconnectParams, 'optionalAccess', _194 => _194.serverName])) {
|
|
3644
3815
|
if (shouldRespond) {
|
|
3645
3816
|
return createErrorResponse(
|
|
3646
3817
|
id,
|
|
@@ -3655,7 +3826,7 @@ async function handleSingleRequest(request, adapter) {
|
|
|
3655
3826
|
}
|
|
3656
3827
|
case RPC_METHODS.MCP_SET_SERVERS: {
|
|
3657
3828
|
const setServersParams = params;
|
|
3658
|
-
if (!_optionalChain([setServersParams, 'optionalAccess',
|
|
3829
|
+
if (!_optionalChain([setServersParams, 'optionalAccess', _195 => _195.servers])) {
|
|
3659
3830
|
if (shouldRespond) {
|
|
3660
3831
|
return createErrorResponse(
|
|
3661
3832
|
id,
|