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
|
@@ -16,28 +16,38 @@ var _chunkWTB7AFL6cjs = require('./chunk-WTB7AFL6.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var _chunkWRTXCQ3Vcjs = require('./chunk-WRTXCQ3V.cjs');
|
|
20
19
|
|
|
21
20
|
|
|
22
|
-
var _chunkQ2IL4DDIcjs = require('./chunk-Q2IL4DDI.cjs');
|
|
23
21
|
|
|
24
22
|
|
|
25
|
-
var _chunkIKUMVBCWcjs = require('./chunk-IKUMVBCW.cjs');
|
|
26
23
|
|
|
27
24
|
|
|
28
25
|
|
|
26
|
+
var _chunkY4MN27V3cjs = require('./chunk-Y4MN27V3.cjs');
|
|
29
27
|
|
|
30
28
|
|
|
31
|
-
var
|
|
29
|
+
var _chunkCMEZ42F2cjs = require('./chunk-CMEZ42F2.cjs');
|
|
32
30
|
|
|
33
31
|
|
|
34
|
-
var
|
|
32
|
+
var _chunkAZKOIF2Gcjs = require('./chunk-AZKOIF2G.cjs');
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _chunkSD3NTC7Dcjs = require('./chunk-SD3NTC7D.cjs');
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var _chunkDMM2BKSVcjs = require('./chunk-DMM2BKSV.cjs');
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
var _chunkCNQKIWIScjs = require('./chunk-CNQKIWIS.cjs');
|
|
35
45
|
|
|
36
46
|
|
|
37
47
|
var _chunkYWTIXHU6cjs = require('./chunk-YWTIXHU6.cjs');
|
|
38
48
|
|
|
39
49
|
|
|
40
|
-
var
|
|
50
|
+
var _chunk3JURXAL6cjs = require('./chunk-3JURXAL6.cjs');
|
|
41
51
|
|
|
42
52
|
|
|
43
53
|
|
|
@@ -48,7 +58,7 @@ var _chunkWGNMOVMTcjs = require('./chunk-WGNMOVMT.cjs');
|
|
|
48
58
|
|
|
49
59
|
|
|
50
60
|
|
|
51
|
-
var
|
|
61
|
+
var _chunkRJCZLFHEcjs = require('./chunk-RJCZLFHE.cjs');
|
|
52
62
|
|
|
53
63
|
// src/onboarding/projectAnalyzer.ts
|
|
54
64
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
@@ -292,287 +302,6 @@ var ProjectAnalyzer = class {
|
|
|
292
302
|
}
|
|
293
303
|
};
|
|
294
304
|
|
|
295
|
-
// src/onboarding/agentsGenerator.ts
|
|
296
|
-
var AgentsGenerator = class {
|
|
297
|
-
/**
|
|
298
|
-
* Generate AGENTS.md content
|
|
299
|
-
*/
|
|
300
|
-
generateContent(info, options) {
|
|
301
|
-
const sections = [];
|
|
302
|
-
sections.push("# AGENTS.md");
|
|
303
|
-
sections.push("");
|
|
304
|
-
sections.push("This file helps Autohand understand how to work with this project.");
|
|
305
|
-
sections.push("");
|
|
306
|
-
sections.push(this.generateProjectOverview(info));
|
|
307
|
-
if (info.packageManager) {
|
|
308
|
-
sections.push(this.generateCommandsSection(info));
|
|
309
|
-
}
|
|
310
|
-
if (info.testFramework) {
|
|
311
|
-
sections.push(this.generateTestingSection(info));
|
|
312
|
-
}
|
|
313
|
-
if (info.framework) {
|
|
314
|
-
const frameworkSection = this.generateFrameworkSection(info);
|
|
315
|
-
if (frameworkSection) {
|
|
316
|
-
sections.push(frameworkSection);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
sections.push(this.generateCodeStyleSection(info));
|
|
320
|
-
sections.push(this.generateConstraintsSection());
|
|
321
|
-
if (_optionalChain([options, 'optionalAccess', _3 => _3.customSections])) {
|
|
322
|
-
for (const section of options.customSections) {
|
|
323
|
-
sections.push(`## ${section.title}`);
|
|
324
|
-
sections.push("");
|
|
325
|
-
sections.push(section.content);
|
|
326
|
-
sections.push("");
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
return sections.join("\n");
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Generate project overview section
|
|
333
|
-
*/
|
|
334
|
-
generateProjectOverview(info) {
|
|
335
|
-
const lines = [];
|
|
336
|
-
lines.push("## Project Overview");
|
|
337
|
-
lines.push("");
|
|
338
|
-
if (info.language) {
|
|
339
|
-
lines.push(`- **Language**: ${info.language}`);
|
|
340
|
-
}
|
|
341
|
-
if (info.framework) {
|
|
342
|
-
lines.push(`- **Framework**: ${info.framework}`);
|
|
343
|
-
}
|
|
344
|
-
if (info.packageManager) {
|
|
345
|
-
lines.push(`- **Package Manager**: ${info.packageManager}`);
|
|
346
|
-
}
|
|
347
|
-
if (info.testFramework) {
|
|
348
|
-
lines.push(`- **Test Framework**: ${info.testFramework}`);
|
|
349
|
-
}
|
|
350
|
-
if (info.buildTool) {
|
|
351
|
-
lines.push(`- **Build Tool**: ${info.buildTool}`);
|
|
352
|
-
}
|
|
353
|
-
lines.push("");
|
|
354
|
-
return lines.join("\n");
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Generate commands section based on package manager
|
|
358
|
-
*/
|
|
359
|
-
generateCommandsSection(info) {
|
|
360
|
-
const lines = [];
|
|
361
|
-
lines.push("## Commands");
|
|
362
|
-
lines.push("");
|
|
363
|
-
const pm = info.packageManager;
|
|
364
|
-
if (info.language === "Rust") {
|
|
365
|
-
lines.push("- **Build**: `cargo build`");
|
|
366
|
-
lines.push("- **Build (release)**: `cargo build --release`");
|
|
367
|
-
lines.push("- **Run**: `cargo run`");
|
|
368
|
-
lines.push("- **Test**: `cargo test`");
|
|
369
|
-
lines.push("- **Check**: `cargo check`");
|
|
370
|
-
lines.push("- **Format**: `cargo fmt`");
|
|
371
|
-
lines.push("- **Lint**: `cargo clippy`");
|
|
372
|
-
} else if (info.language === "Go") {
|
|
373
|
-
lines.push("- **Build**: `go build`");
|
|
374
|
-
lines.push("- **Run**: `go run .`");
|
|
375
|
-
lines.push("- **Test**: `go test ./...`");
|
|
376
|
-
lines.push("- **Format**: `go fmt ./...`");
|
|
377
|
-
lines.push("- **Vet**: `go vet ./...`");
|
|
378
|
-
} else if (info.language === "Python") {
|
|
379
|
-
if (pm === "poetry") {
|
|
380
|
-
lines.push("- **Install**: `poetry install`");
|
|
381
|
-
lines.push("- **Run**: `poetry run python main.py`");
|
|
382
|
-
lines.push("- **Add dependency**: `poetry add <package>`");
|
|
383
|
-
if (info.testFramework) {
|
|
384
|
-
lines.push(`- **Test**: \`poetry run pytest\``);
|
|
385
|
-
}
|
|
386
|
-
} else if (pm === "pipenv") {
|
|
387
|
-
lines.push("- **Install**: `pipenv install`");
|
|
388
|
-
lines.push("- **Run**: `pipenv run python main.py`");
|
|
389
|
-
if (info.testFramework) {
|
|
390
|
-
lines.push(`- **Test**: \`pipenv run pytest\``);
|
|
391
|
-
}
|
|
392
|
-
} else {
|
|
393
|
-
lines.push("- **Install**: `pip install -r requirements.txt`");
|
|
394
|
-
lines.push("- **Run**: `python main.py`");
|
|
395
|
-
if (info.testFramework) {
|
|
396
|
-
lines.push(`- **Test**: \`pytest\``);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
} else {
|
|
400
|
-
const run = pm === "npm" ? "npm run" : pm;
|
|
401
|
-
const install = pm === "npm" ? "npm install" : `${pm} install`;
|
|
402
|
-
lines.push(`- **Install**: \`${install}\``);
|
|
403
|
-
lines.push(`- **Dev**: \`${run} dev\``);
|
|
404
|
-
lines.push(`- **Build**: \`${run} build\``);
|
|
405
|
-
if (info.testFramework) {
|
|
406
|
-
lines.push(`- **Test**: \`${run} test\``);
|
|
407
|
-
}
|
|
408
|
-
if (info.linter) {
|
|
409
|
-
lines.push(`- **Lint**: \`${run} lint\``);
|
|
410
|
-
}
|
|
411
|
-
if (info.formatter) {
|
|
412
|
-
lines.push(`- **Format**: \`${run} format\``);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
lines.push("");
|
|
416
|
-
return lines.join("\n");
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Generate testing section
|
|
420
|
-
*/
|
|
421
|
-
generateTestingSection(info) {
|
|
422
|
-
const lines = [];
|
|
423
|
-
lines.push("## Testing");
|
|
424
|
-
lines.push("");
|
|
425
|
-
lines.push(`This project uses **${info.testFramework}** for testing.`);
|
|
426
|
-
lines.push("");
|
|
427
|
-
lines.push("- Write tests for new features before implementation");
|
|
428
|
-
lines.push("- Run tests before committing changes");
|
|
429
|
-
lines.push("- Aim for good test coverage on critical paths");
|
|
430
|
-
if (info.testFramework === "Vitest" || info.testFramework === "Jest") {
|
|
431
|
-
lines.push("- Use `describe` and `it` blocks to organize tests");
|
|
432
|
-
lines.push("- Mock external dependencies when appropriate");
|
|
433
|
-
} else if (info.testFramework === "pytest") {
|
|
434
|
-
lines.push("- Use fixtures for shared test setup");
|
|
435
|
-
lines.push("- Use `pytest.mark` for test categorization");
|
|
436
|
-
} else if (info.testFramework === "Playwright" || info.testFramework === "Cypress") {
|
|
437
|
-
lines.push("- Write E2E tests for critical user flows");
|
|
438
|
-
lines.push("- Keep selectors stable and meaningful");
|
|
439
|
-
}
|
|
440
|
-
lines.push("");
|
|
441
|
-
return lines.join("\n");
|
|
442
|
-
}
|
|
443
|
-
/**
|
|
444
|
-
* Generate framework-specific section
|
|
445
|
-
*/
|
|
446
|
-
generateFrameworkSection(info) {
|
|
447
|
-
const lines = [];
|
|
448
|
-
switch (info.framework) {
|
|
449
|
-
case "Next.js":
|
|
450
|
-
lines.push("## Next.js Guidelines");
|
|
451
|
-
lines.push("");
|
|
452
|
-
lines.push("- Use the App Router for new pages (`app/` directory)");
|
|
453
|
-
lines.push("- Prefer Server Components by default");
|
|
454
|
-
lines.push('- Use `"use client"` only when needed for interactivity');
|
|
455
|
-
lines.push("- Keep API routes in `app/api/`");
|
|
456
|
-
lines.push("- Use `next/image` for optimized images");
|
|
457
|
-
lines.push("- Use `next/link` for client-side navigation");
|
|
458
|
-
break;
|
|
459
|
-
case "React":
|
|
460
|
-
lines.push("## React Guidelines");
|
|
461
|
-
lines.push("");
|
|
462
|
-
lines.push("- Use functional components with hooks");
|
|
463
|
-
lines.push("- Keep components small and focused");
|
|
464
|
-
lines.push("- Use custom hooks to share logic");
|
|
465
|
-
lines.push("- Prefer composition over inheritance");
|
|
466
|
-
lines.push("- Use TypeScript interfaces for props");
|
|
467
|
-
break;
|
|
468
|
-
case "Vue":
|
|
469
|
-
lines.push("## Vue Guidelines");
|
|
470
|
-
lines.push("");
|
|
471
|
-
lines.push("- Use Composition API for new components");
|
|
472
|
-
lines.push("- Keep components in single-file format (.vue)");
|
|
473
|
-
lines.push("- Use composables to share logic");
|
|
474
|
-
break;
|
|
475
|
-
case "Express":
|
|
476
|
-
lines.push("## Express Guidelines");
|
|
477
|
-
lines.push("");
|
|
478
|
-
lines.push("- Use middleware for cross-cutting concerns");
|
|
479
|
-
lines.push("- Keep route handlers thin, delegate to services");
|
|
480
|
-
lines.push("- Use async/await with proper error handling");
|
|
481
|
-
lines.push("- Validate request input before processing");
|
|
482
|
-
break;
|
|
483
|
-
case "FastAPI":
|
|
484
|
-
lines.push("## FastAPI Guidelines");
|
|
485
|
-
lines.push("");
|
|
486
|
-
lines.push("- Use Pydantic models for request/response validation");
|
|
487
|
-
lines.push("- Use dependency injection for shared resources");
|
|
488
|
-
lines.push("- Keep endpoints in organized routers");
|
|
489
|
-
lines.push("- Use async functions for I/O operations");
|
|
490
|
-
break;
|
|
491
|
-
case "Django":
|
|
492
|
-
lines.push("## Django Guidelines");
|
|
493
|
-
lines.push("");
|
|
494
|
-
lines.push("- Follow Django project structure conventions");
|
|
495
|
-
lines.push("- Use class-based views where appropriate");
|
|
496
|
-
lines.push("- Keep business logic in models or services");
|
|
497
|
-
lines.push("- Use Django ORM for database operations");
|
|
498
|
-
break;
|
|
499
|
-
case "Flask":
|
|
500
|
-
lines.push("## Flask Guidelines");
|
|
501
|
-
lines.push("");
|
|
502
|
-
lines.push("- Use blueprints to organize routes");
|
|
503
|
-
lines.push("- Keep route handlers focused");
|
|
504
|
-
lines.push("- Use Flask extensions for common functionality");
|
|
505
|
-
break;
|
|
506
|
-
case "NestJS":
|
|
507
|
-
lines.push("## NestJS Guidelines");
|
|
508
|
-
lines.push("");
|
|
509
|
-
lines.push("- Follow module-based architecture");
|
|
510
|
-
lines.push("- Use dependency injection");
|
|
511
|
-
lines.push("- Use decorators for metadata");
|
|
512
|
-
lines.push("- Keep controllers thin, services fat");
|
|
513
|
-
break;
|
|
514
|
-
default:
|
|
515
|
-
return null;
|
|
516
|
-
}
|
|
517
|
-
lines.push("");
|
|
518
|
-
return lines.join("\n");
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* Generate code style section
|
|
522
|
-
*/
|
|
523
|
-
generateCodeStyleSection(info) {
|
|
524
|
-
const lines = [];
|
|
525
|
-
lines.push("## Code Style");
|
|
526
|
-
lines.push("");
|
|
527
|
-
if (info.language === "TypeScript") {
|
|
528
|
-
lines.push("- Use strict TypeScript settings");
|
|
529
|
-
lines.push("- Define types/interfaces for data structures");
|
|
530
|
-
lines.push("- Avoid `any` type - use `unknown` if type is truly unknown");
|
|
531
|
-
lines.push("- Use type inference where obvious");
|
|
532
|
-
} else if (info.language === "Python") {
|
|
533
|
-
lines.push("- Follow PEP 8 style guidelines");
|
|
534
|
-
lines.push("- Use type hints for function signatures");
|
|
535
|
-
lines.push("- Use docstrings for public functions");
|
|
536
|
-
} else if (info.language === "Rust") {
|
|
537
|
-
lines.push("- Follow Rust naming conventions (snake_case for functions)");
|
|
538
|
-
lines.push("- Use descriptive error types");
|
|
539
|
-
lines.push("- Prefer `Result` over panicking");
|
|
540
|
-
} else if (info.language === "Go") {
|
|
541
|
-
lines.push("- Follow Go idioms and conventions");
|
|
542
|
-
lines.push("- Use short variable names in small scopes");
|
|
543
|
-
lines.push("- Handle errors explicitly");
|
|
544
|
-
}
|
|
545
|
-
lines.push("- Follow existing patterns in the codebase");
|
|
546
|
-
lines.push("- Use meaningful variable and function names");
|
|
547
|
-
lines.push("- Add comments for complex logic");
|
|
548
|
-
lines.push("- Keep functions focused and small");
|
|
549
|
-
if (info.linter) {
|
|
550
|
-
lines.push(`- Run **${info.linter}** before committing`);
|
|
551
|
-
}
|
|
552
|
-
if (info.formatter) {
|
|
553
|
-
lines.push(`- Format code with **${info.formatter}**`);
|
|
554
|
-
}
|
|
555
|
-
lines.push("");
|
|
556
|
-
return lines.join("\n");
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* Generate constraints section
|
|
560
|
-
*/
|
|
561
|
-
generateConstraintsSection() {
|
|
562
|
-
const lines = [];
|
|
563
|
-
lines.push("## Constraints");
|
|
564
|
-
lines.push("");
|
|
565
|
-
lines.push("- Do not modify files outside the project directory");
|
|
566
|
-
lines.push("- Ask before making breaking changes");
|
|
567
|
-
lines.push("- Prefer editing existing files over creating new ones");
|
|
568
|
-
lines.push("- Do not delete files without confirmation");
|
|
569
|
-
lines.push("- Keep dependencies minimal - avoid adding new ones without good reason");
|
|
570
|
-
lines.push("- Do not commit sensitive data (API keys, secrets, credentials)");
|
|
571
|
-
lines.push("");
|
|
572
|
-
return lines.join("\n");
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
|
|
576
305
|
// src/onboarding/setupWizard.ts
|
|
577
306
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
578
307
|
|
|
@@ -606,7 +335,7 @@ async function commandExists(command, cwd) {
|
|
|
606
335
|
function parseUnixProcesses(stdout) {
|
|
607
336
|
return stdout.split("\n").map((line) => line.trim()).filter(Boolean).map((line) => {
|
|
608
337
|
const match = line.match(/^\d+\s+(.*)$/);
|
|
609
|
-
const commandLine = _nullishCoalesce(_optionalChain([match, 'optionalAccess',
|
|
338
|
+
const commandLine = _nullishCoalesce(_optionalChain([match, 'optionalAccess', _3 => _3[1]]), () => ( line));
|
|
610
339
|
const name = _nullishCoalesce(commandLine.split(/\s+/)[0], () => ( ""));
|
|
611
340
|
return { name, commandLine };
|
|
612
341
|
});
|
|
@@ -730,7 +459,7 @@ var SetupWizard = class {
|
|
|
730
459
|
* Run the full onboarding wizard
|
|
731
460
|
*/
|
|
732
461
|
async run(options) {
|
|
733
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
462
|
+
if (!_optionalChain([options, 'optionalAccess', _4 => _4.force]) && this.isAlreadyConfigured()) {
|
|
734
463
|
return {
|
|
735
464
|
success: true,
|
|
736
465
|
config: {},
|
|
@@ -739,7 +468,7 @@ var SetupWizard = class {
|
|
|
739
468
|
};
|
|
740
469
|
}
|
|
741
470
|
try {
|
|
742
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
471
|
+
if (!_optionalChain([options, 'optionalAccess', _5 => _5.skipWelcome])) {
|
|
743
472
|
await this.showWelcome();
|
|
744
473
|
}
|
|
745
474
|
await this.promptLanguage();
|
|
@@ -753,6 +482,9 @@ var SetupWizard = class {
|
|
|
753
482
|
} else if (provider === "vertexai") {
|
|
754
483
|
const vertexaiResult = await this.promptVertexAIConfig();
|
|
755
484
|
if (!vertexaiResult) return this.cancelled();
|
|
485
|
+
} else if (provider === "bedrock") {
|
|
486
|
+
const bedrockResult = await this.promptBedrockConfig();
|
|
487
|
+
if (!bedrockResult) return this.cancelled();
|
|
756
488
|
} else {
|
|
757
489
|
if (provider === "llamacpp") {
|
|
758
490
|
const ready = await this.prepareLlamaCpp();
|
|
@@ -789,14 +521,14 @@ var SetupWizard = class {
|
|
|
789
521
|
await this.promptPermissions();
|
|
790
522
|
await this.promptTelemetry();
|
|
791
523
|
await this.promptAutoReport();
|
|
792
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
524
|
+
if (!_optionalChain([options, 'optionalAccess', _6 => _6.quickSetup])) {
|
|
793
525
|
await this.promptPreferences();
|
|
794
526
|
} else {
|
|
795
527
|
this.state.skipped.push("preferences");
|
|
796
528
|
}
|
|
797
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
798
|
-
const wantsAdvanced = await
|
|
799
|
-
title:
|
|
529
|
+
if (!_optionalChain([options, 'optionalAccess', _7 => _7.quickSetup])) {
|
|
530
|
+
const wantsAdvanced = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
531
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.advanced.prompt"),
|
|
800
532
|
defaultValue: false
|
|
801
533
|
});
|
|
802
534
|
if (wantsAdvanced) {
|
|
@@ -813,12 +545,12 @@ var SetupWizard = class {
|
|
|
813
545
|
this.state.skipped.push("advanced", "notifications", "network", "search", "mcp", "agentBehavior", "communitySkills");
|
|
814
546
|
}
|
|
815
547
|
await this.promptAgentsFile();
|
|
816
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
548
|
+
if (!_optionalChain([options, 'optionalAccess', _8 => _8.quickSetup])) {
|
|
817
549
|
await this.promptRegistration();
|
|
818
550
|
} else {
|
|
819
551
|
this.state.skipped.push("registration");
|
|
820
552
|
}
|
|
821
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
553
|
+
if (!_optionalChain([options, 'optionalAccess', _9 => _9.quickSetup])) {
|
|
822
554
|
const confirmed = await this.promptReviewConfirm();
|
|
823
555
|
if (!confirmed) {
|
|
824
556
|
this.state = { currentStep: "welcome", skipped: [], completed: false };
|
|
@@ -841,7 +573,7 @@ var SetupWizard = class {
|
|
|
841
573
|
if (!this.existingConfig) return false;
|
|
842
574
|
const provider = this.existingConfig.provider;
|
|
843
575
|
if (!provider) return false;
|
|
844
|
-
const providerConfig =
|
|
576
|
+
const providerConfig = _chunkCNQKIWIScjs.getProviderConfig.call(void 0, this.existingConfig, provider);
|
|
845
577
|
if (!providerConfig) return false;
|
|
846
578
|
if (provider === "openai") {
|
|
847
579
|
return this.isOpenAIConfigured(providerConfig);
|
|
@@ -850,6 +582,9 @@ var SetupWizard = class {
|
|
|
850
582
|
const vertexaiConfig = providerConfig;
|
|
851
583
|
return !!(vertexaiConfig.authToken && vertexaiConfig.authToken.length >= 10);
|
|
852
584
|
}
|
|
585
|
+
if (provider === "bedrock") {
|
|
586
|
+
return _chunkCNQKIWIScjs.getProviderConfig.call(void 0, this.existingConfig, "bedrock") !== null;
|
|
587
|
+
}
|
|
853
588
|
if (this.requiresApiKey(provider)) {
|
|
854
589
|
const apiKey = providerConfig.apiKey;
|
|
855
590
|
if (!apiKey || apiKey === "replace-me" || apiKey.length < 10) {
|
|
@@ -863,7 +598,7 @@ var SetupWizard = class {
|
|
|
863
598
|
*/
|
|
864
599
|
async showWelcome() {
|
|
865
600
|
console.clear();
|
|
866
|
-
console.log(_chalk2.default.gray(
|
|
601
|
+
console.log(_chalk2.default.gray(_chunkSD3NTC7Dcjs.ASCII_FRIEND));
|
|
867
602
|
console.log();
|
|
868
603
|
console.log(_chalk2.default.cyan.bold(" Welcome to Autohand!"));
|
|
869
604
|
console.log(_chalk2.default.gray(" Your super fast self evolving coding agent"));
|
|
@@ -877,34 +612,38 @@ var SetupWizard = class {
|
|
|
877
612
|
*/
|
|
878
613
|
async promptProvider() {
|
|
879
614
|
this.state.currentStep = "provider";
|
|
880
|
-
const providers =
|
|
615
|
+
const providers = _chunkY4MN27V3cjs.ProviderFactory.getProviderNames(this.existingConfig);
|
|
881
616
|
const options = providers.map((p) => ({
|
|
882
617
|
label: this.getProviderDisplayName(p),
|
|
883
618
|
value: p,
|
|
884
619
|
description: this.getProviderHint(p)
|
|
885
620
|
}));
|
|
886
|
-
const hasValidExistingProvider = _optionalChain([this, 'access',
|
|
621
|
+
const hasValidExistingProvider = _optionalChain([this, 'access', _10 => _10.existingConfig, 'optionalAccess', _11 => _11.provider]) && this.isProviderConfigured(this.existingConfig.provider);
|
|
887
622
|
let initialIndex = 0;
|
|
888
623
|
if (hasValidExistingProvider) {
|
|
889
624
|
initialIndex = providers.indexOf(this.existingConfig.provider);
|
|
890
625
|
}
|
|
891
|
-
const result = await
|
|
892
|
-
title:
|
|
626
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
627
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.chooseProvider"),
|
|
893
628
|
options,
|
|
894
629
|
initialIndex: initialIndex >= 0 ? initialIndex : 0
|
|
895
630
|
});
|
|
896
631
|
if (!result) {
|
|
897
632
|
return null;
|
|
898
633
|
}
|
|
899
|
-
|
|
900
|
-
|
|
634
|
+
const selectedProvider = result.value;
|
|
635
|
+
if (!_chunkY4MN27V3cjs.ProviderFactory.isValidProvider(selectedProvider, this.existingConfig)) {
|
|
636
|
+
return null;
|
|
637
|
+
}
|
|
638
|
+
this.state.provider = selectedProvider;
|
|
639
|
+
return selectedProvider;
|
|
901
640
|
}
|
|
902
641
|
/**
|
|
903
642
|
* Check if a specific provider is fully configured (has API key if required)
|
|
904
643
|
*/
|
|
905
644
|
isProviderConfigured(provider) {
|
|
906
645
|
if (!this.existingConfig) return false;
|
|
907
|
-
const providerConfig =
|
|
646
|
+
const providerConfig = _chunkCNQKIWIScjs.getProviderConfig.call(void 0, this.existingConfig, provider);
|
|
908
647
|
if (!providerConfig) return false;
|
|
909
648
|
if (provider === "openai") {
|
|
910
649
|
return this.isOpenAIConfigured(providerConfig);
|
|
@@ -926,7 +665,7 @@ var SetupWizard = class {
|
|
|
926
665
|
this.state.currentStep = "apiKey";
|
|
927
666
|
const existingKey = this.getExistingApiKey(provider);
|
|
928
667
|
if (existingKey && existingKey !== "replace-me") {
|
|
929
|
-
const useExisting = await
|
|
668
|
+
const useExisting = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
930
669
|
title: `Use existing ${this.getProviderDisplayName(provider)} API key? (ends with ...${existingKey.slice(-4)})`,
|
|
931
670
|
defaultValue: true
|
|
932
671
|
});
|
|
@@ -935,13 +674,13 @@ var SetupWizard = class {
|
|
|
935
674
|
return existingKey;
|
|
936
675
|
}
|
|
937
676
|
}
|
|
938
|
-
console.log(_chalk2.default.gray("\n " +
|
|
939
|
-
const apiKey = await
|
|
940
|
-
title:
|
|
941
|
-
placeholder:
|
|
677
|
+
console.log(_chalk2.default.gray("\n " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.apiKeyUrl", { url: this.getApiKeyUrl(provider) }) + "\n"));
|
|
678
|
+
const apiKey = await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
679
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.enterApiKey", { provider: this.getProviderDisplayName(provider) }),
|
|
680
|
+
placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder"),
|
|
942
681
|
validate: (val) => {
|
|
943
|
-
if (!_optionalChain([val, 'optionalAccess',
|
|
944
|
-
if (val.length < 10) return
|
|
682
|
+
if (!_optionalChain([val, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()])) return _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.apiKeyRequired");
|
|
683
|
+
if (val.length < 10) return _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.apiKeyTooShort");
|
|
945
684
|
return true;
|
|
946
685
|
}
|
|
947
686
|
});
|
|
@@ -952,40 +691,40 @@ var SetupWizard = class {
|
|
|
952
691
|
return this.state.apiKey;
|
|
953
692
|
}
|
|
954
693
|
async promptOpenAIAuthMode() {
|
|
955
|
-
const result = await
|
|
956
|
-
title:
|
|
694
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
695
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.chooseTitle"),
|
|
957
696
|
options: [
|
|
958
697
|
{
|
|
959
|
-
label:
|
|
698
|
+
label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.apiKeyLabel"),
|
|
960
699
|
value: "api-key",
|
|
961
|
-
description:
|
|
700
|
+
description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.apiKeyDescription")
|
|
962
701
|
},
|
|
963
702
|
{
|
|
964
|
-
label:
|
|
703
|
+
label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.chatgptLabel"),
|
|
965
704
|
value: "chatgpt",
|
|
966
|
-
description:
|
|
705
|
+
description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.chatgptDescription")
|
|
967
706
|
}
|
|
968
707
|
],
|
|
969
708
|
initialIndex: this.getExistingOpenAIAuthMode() === "chatgpt" ? 1 : 0
|
|
970
709
|
});
|
|
971
|
-
return _nullishCoalesce(_optionalChain([result, 'optionalAccess',
|
|
710
|
+
return _nullishCoalesce(_optionalChain([result, 'optionalAccess', _14 => _14.value]), () => ( null));
|
|
972
711
|
}
|
|
973
712
|
async promptOpenAIChatGPTAuth() {
|
|
974
713
|
const existing = this.getExistingOpenAIChatGPTAuth();
|
|
975
|
-
if (existing && !
|
|
714
|
+
if (existing && !_chunkY4MN27V3cjs.isChatGPTAuthExpired.call(void 0, existing)) {
|
|
976
715
|
this.state.openAIChatGPTAuth = existing;
|
|
977
716
|
return existing;
|
|
978
717
|
}
|
|
979
718
|
try {
|
|
980
719
|
console.log(_chalk2.default.gray(`
|
|
981
|
-
${
|
|
982
|
-
const auth = await
|
|
720
|
+
${_chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.starting")}`));
|
|
721
|
+
const auth = await _chunkY4MN27V3cjs.authenticateOpenAIChatGPT.call(void 0, {
|
|
983
722
|
onPrompt: ({ authorizationUrl, browserOpened }) => {
|
|
984
723
|
console.log(_chalk2.default.gray(`
|
|
985
|
-
${
|
|
724
|
+
${_chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.browserPrompt")}`));
|
|
986
725
|
console.log(_chalk2.default.white(` ${authorizationUrl}`));
|
|
987
|
-
console.log(_chalk2.default.gray(` ${browserOpened ?
|
|
988
|
-
console.log(_chalk2.default.gray(` ${
|
|
726
|
+
console.log(_chalk2.default.gray(` ${browserOpened ? _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.browserOpened") : _chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.openManually")}`));
|
|
727
|
+
console.log(_chalk2.default.gray(` ${_chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.waiting")}
|
|
989
728
|
`));
|
|
990
729
|
}
|
|
991
730
|
});
|
|
@@ -994,7 +733,7 @@ var SetupWizard = class {
|
|
|
994
733
|
} catch (error) {
|
|
995
734
|
const message = error instanceof Error ? error.message : String(error);
|
|
996
735
|
console.log(_chalk2.default.red(`
|
|
997
|
-
${
|
|
736
|
+
${_chunkRJCZLFHEcjs.t.call(void 0, "providers.openaiAuth.failed", { message })}`));
|
|
998
737
|
throw error;
|
|
999
738
|
}
|
|
1000
739
|
}
|
|
@@ -1009,13 +748,30 @@ var SetupWizard = class {
|
|
|
1009
748
|
return this.state.model;
|
|
1010
749
|
}
|
|
1011
750
|
if (provider === "zai") {
|
|
1012
|
-
const options =
|
|
751
|
+
const options = _chunkY4MN27V3cjs.ZAI_MODELS.map((modelName) => ({
|
|
1013
752
|
label: modelName,
|
|
1014
753
|
value: modelName
|
|
1015
754
|
}));
|
|
1016
|
-
const defaultIndex = Math.max(0,
|
|
1017
|
-
const result = await
|
|
1018
|
-
title:
|
|
755
|
+
const defaultIndex = Math.max(0, _chunkY4MN27V3cjs.ZAI_MODELS.indexOf(defaultModel));
|
|
756
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
757
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
758
|
+
options,
|
|
759
|
+
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
760
|
+
});
|
|
761
|
+
if (!result) {
|
|
762
|
+
return null;
|
|
763
|
+
}
|
|
764
|
+
this.state.model = result.value;
|
|
765
|
+
return this.state.model;
|
|
766
|
+
}
|
|
767
|
+
if (provider === "sakana") {
|
|
768
|
+
const options = _chunkY4MN27V3cjs.SAKANA_MODELS.map((modelName) => ({
|
|
769
|
+
label: modelName,
|
|
770
|
+
value: modelName
|
|
771
|
+
}));
|
|
772
|
+
const defaultIndex = Math.max(0, _chunkY4MN27V3cjs.SAKANA_MODELS.indexOf(defaultModel));
|
|
773
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
774
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1019
775
|
options,
|
|
1020
776
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1021
777
|
});
|
|
@@ -1026,13 +782,13 @@ var SetupWizard = class {
|
|
|
1026
782
|
return this.state.model;
|
|
1027
783
|
}
|
|
1028
784
|
if (provider === "cerebras") {
|
|
1029
|
-
const options =
|
|
785
|
+
const options = _chunkY4MN27V3cjs.CEREBRAS_MODELS.map((modelName) => ({
|
|
1030
786
|
label: modelName,
|
|
1031
787
|
value: modelName
|
|
1032
788
|
}));
|
|
1033
|
-
const defaultIndex = Math.max(0,
|
|
1034
|
-
const result = await
|
|
1035
|
-
title:
|
|
789
|
+
const defaultIndex = Math.max(0, _chunkY4MN27V3cjs.CEREBRAS_MODELS.indexOf(defaultModel));
|
|
790
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
791
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1036
792
|
options,
|
|
1037
793
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1038
794
|
});
|
|
@@ -1043,13 +799,13 @@ var SetupWizard = class {
|
|
|
1043
799
|
return this.state.model;
|
|
1044
800
|
}
|
|
1045
801
|
if (provider === "deepseek") {
|
|
1046
|
-
const options =
|
|
802
|
+
const options = _chunkY4MN27V3cjs.DEEPSEEK_MODELS.map((modelName) => ({
|
|
1047
803
|
label: modelName,
|
|
1048
804
|
value: modelName
|
|
1049
805
|
}));
|
|
1050
|
-
const defaultIndex = Math.max(0,
|
|
1051
|
-
const result = await
|
|
1052
|
-
title:
|
|
806
|
+
const defaultIndex = Math.max(0, _chunkY4MN27V3cjs.DEEPSEEK_MODELS.indexOf(defaultModel));
|
|
807
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
808
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1053
809
|
options,
|
|
1054
810
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1055
811
|
});
|
|
@@ -1059,15 +815,30 @@ var SetupWizard = class {
|
|
|
1059
815
|
this.state.model = result.value;
|
|
1060
816
|
return this.state.model;
|
|
1061
817
|
}
|
|
818
|
+
if (provider === "bedrock") {
|
|
819
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
820
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
821
|
+
options: _chunkY4MN27V3cjs.BEDROCK_MODELS.map((modelName) => ({
|
|
822
|
+
label: modelName,
|
|
823
|
+
value: modelName
|
|
824
|
+
})),
|
|
825
|
+
allowCustomInput: true
|
|
826
|
+
});
|
|
827
|
+
if (!result) {
|
|
828
|
+
return null;
|
|
829
|
+
}
|
|
830
|
+
this.state.model = result.value;
|
|
831
|
+
return this.state.model;
|
|
832
|
+
}
|
|
1062
833
|
if (provider === "nvidia") {
|
|
1063
|
-
const { NVIDIA_MODELS } = await Promise.resolve().then(() => _interopRequireWildcard(require("./NVIDIAProvider-
|
|
834
|
+
const { NVIDIA_MODELS } = await Promise.resolve().then(() => _interopRequireWildcard(require("./NVIDIAProvider-L5GTYRCQ.cjs")));
|
|
1064
835
|
const options = [...NVIDIA_MODELS].map((modelName) => ({
|
|
1065
836
|
label: modelName,
|
|
1066
837
|
value: modelName
|
|
1067
838
|
}));
|
|
1068
839
|
const defaultIndex = Math.max(0, [...NVIDIA_MODELS].indexOf(defaultModel));
|
|
1069
|
-
const result = await
|
|
1070
|
-
title:
|
|
840
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
841
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1071
842
|
options,
|
|
1072
843
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1073
844
|
});
|
|
@@ -1077,11 +848,11 @@ var SetupWizard = class {
|
|
|
1077
848
|
this.state.model = result.value;
|
|
1078
849
|
return this.state.model;
|
|
1079
850
|
}
|
|
1080
|
-
const model = await
|
|
1081
|
-
title:
|
|
851
|
+
const model = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
852
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.enterModelId"),
|
|
1082
853
|
defaultValue: defaultModel,
|
|
1083
854
|
validate: (val) => {
|
|
1084
|
-
return _optionalChain([val, 'optionalAccess',
|
|
855
|
+
return _optionalChain([val, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) ? true : "Model is required";
|
|
1085
856
|
}
|
|
1086
857
|
});
|
|
1087
858
|
if (!model) {
|
|
@@ -1101,8 +872,8 @@ var SetupWizard = class {
|
|
|
1101
872
|
{ label: "high", value: "high", description: "Thorough reasoning (recommended)" },
|
|
1102
873
|
{ label: "xhigh", value: "xhigh", description: "Maximum reasoning depth" }
|
|
1103
874
|
];
|
|
1104
|
-
const result = await
|
|
1105
|
-
title:
|
|
875
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
876
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectReasoningEffort"),
|
|
1106
877
|
options,
|
|
1107
878
|
initialIndex: 3
|
|
1108
879
|
// default to 'high'
|
|
@@ -1134,7 +905,7 @@ var SetupWizard = class {
|
|
|
1134
905
|
console.log(_chalk2.default.gray(" - API keys or credentials"));
|
|
1135
906
|
console.log(_chalk2.default.gray(" - Personal information"));
|
|
1136
907
|
console.log();
|
|
1137
|
-
const telemetryEnabled = await
|
|
908
|
+
const telemetryEnabled = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1138
909
|
title: "Share anonymous usage data to help improve Autohand?",
|
|
1139
910
|
defaultValue: true
|
|
1140
911
|
});
|
|
@@ -1167,7 +938,7 @@ var SetupWizard = class {
|
|
|
1167
938
|
console.log(_chalk2.default.gray(" - API keys or credentials"));
|
|
1168
939
|
console.log(_chalk2.default.gray(" - Personal information"));
|
|
1169
940
|
console.log();
|
|
1170
|
-
const autoReportEnabled = await
|
|
941
|
+
const autoReportEnabled = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1171
942
|
title: "Automatically report errors to help us fix bugs faster?",
|
|
1172
943
|
defaultValue: true
|
|
1173
944
|
});
|
|
@@ -1183,7 +954,7 @@ var SetupWizard = class {
|
|
|
1183
954
|
*/
|
|
1184
955
|
async promptPreferences() {
|
|
1185
956
|
this.state.currentStep = "preferences";
|
|
1186
|
-
const configurePrefs = await
|
|
957
|
+
const configurePrefs = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1187
958
|
title: "Would you like to configure additional preferences? (theme, auto-confirm)",
|
|
1188
959
|
defaultValue: false
|
|
1189
960
|
});
|
|
@@ -1208,16 +979,16 @@ var SetupWizard = class {
|
|
|
1208
979
|
value: themeName,
|
|
1209
980
|
description: themeDescriptions[themeName]
|
|
1210
981
|
}));
|
|
1211
|
-
const themeResult = await
|
|
982
|
+
const themeResult = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1212
983
|
title: "Select a theme",
|
|
1213
984
|
options: themeOptions
|
|
1214
985
|
});
|
|
1215
|
-
const theme = _optionalChain([themeResult, 'optionalAccess',
|
|
1216
|
-
const autoConfirm = await
|
|
986
|
+
const theme = _optionalChain([themeResult, 'optionalAccess', _17 => _17.value]) || "dark";
|
|
987
|
+
const autoConfirm = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1217
988
|
title: "Auto-confirm non-destructive actions?",
|
|
1218
989
|
defaultValue: false
|
|
1219
990
|
});
|
|
1220
|
-
const checkForUpdates = await
|
|
991
|
+
const checkForUpdates = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1221
992
|
title: "Check for updates on startup?",
|
|
1222
993
|
defaultValue: true
|
|
1223
994
|
});
|
|
@@ -1231,7 +1002,7 @@ var SetupWizard = class {
|
|
|
1231
1002
|
const agentsPath = _path.join.call(void 0, this.workspaceRoot, "AGENTS.md");
|
|
1232
1003
|
const exists = await _fsextra2.default.pathExists(agentsPath);
|
|
1233
1004
|
if (exists) {
|
|
1234
|
-
const overwrite = await
|
|
1005
|
+
const overwrite = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1235
1006
|
title: "AGENTS.md already exists. Would you like to regenerate it?",
|
|
1236
1007
|
defaultValue: false
|
|
1237
1008
|
});
|
|
@@ -1249,7 +1020,7 @@ var SetupWizard = class {
|
|
|
1249
1020
|
console.log(_chalk2.default.gray(" AGENTS.md helps Autohand understand your project better."));
|
|
1250
1021
|
console.log(_chalk2.default.gray(" It contains instructions specific to your codebase."));
|
|
1251
1022
|
console.log();
|
|
1252
|
-
const createAgents = await
|
|
1023
|
+
const createAgents = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1253
1024
|
title: "Generate AGENTS.md based on your project?",
|
|
1254
1025
|
defaultValue: true
|
|
1255
1026
|
});
|
|
@@ -1279,7 +1050,7 @@ var SetupWizard = class {
|
|
|
1279
1050
|
console.log(_chalk2.default.white(` - Test framework: ${projectInfo.testFramework}`));
|
|
1280
1051
|
}
|
|
1281
1052
|
}
|
|
1282
|
-
const generator = new AgentsGenerator();
|
|
1053
|
+
const generator = new (0, _chunkCMEZ42F2cjs.AgentsGenerator)();
|
|
1283
1054
|
const content = generator.generateContent(projectInfo);
|
|
1284
1055
|
await _fsextra2.default.writeFile(agentsPath, content);
|
|
1285
1056
|
this.state.agentsFileCreated = true;
|
|
@@ -1296,51 +1067,51 @@ var SetupWizard = class {
|
|
|
1296
1067
|
this.state.currentStep = "registration";
|
|
1297
1068
|
console.log();
|
|
1298
1069
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
1299
|
-
console.log(_chalk2.default.white.bold(" " +
|
|
1070
|
+
console.log(_chalk2.default.white.bold(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.title")));
|
|
1300
1071
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
1301
1072
|
console.log();
|
|
1302
|
-
console.log(_chalk2.default.gray(" " +
|
|
1073
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.descriptionMandatory")));
|
|
1303
1074
|
console.log();
|
|
1304
|
-
const authClient =
|
|
1305
|
-
console.log(_chalk2.default.gray(" " +
|
|
1075
|
+
const authClient = _chunkAZKOIF2Gcjs.getAuthClient.call(void 0, );
|
|
1076
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.initiating")));
|
|
1306
1077
|
const initResult = await authClient.initiateDeviceAuth();
|
|
1307
1078
|
if (!initResult.success || !initResult.deviceCode || !initResult.userCode) {
|
|
1308
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1309
|
-
const retry2 = await
|
|
1310
|
-
title:
|
|
1079
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.failed", { error: initResult.error || "Unknown error" })));
|
|
1080
|
+
const retry2 = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1081
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.retryPrompt"),
|
|
1311
1082
|
defaultValue: true
|
|
1312
1083
|
});
|
|
1313
1084
|
if (retry2) {
|
|
1314
1085
|
return this.promptRegistration();
|
|
1315
1086
|
}
|
|
1316
1087
|
this.state.skipped.push("registration");
|
|
1317
|
-
console.log(_chalk2.default.gray(" " +
|
|
1088
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.tryLater")));
|
|
1318
1089
|
return;
|
|
1319
1090
|
}
|
|
1320
|
-
const authUrl = initResult.verificationUriComplete || `${
|
|
1091
|
+
const authUrl = initResult.verificationUriComplete || `${_chunk3JURXAL6cjs.AUTH_CONFIG.authorizationUrl}?code=${initResult.userCode}`;
|
|
1321
1092
|
console.log();
|
|
1322
|
-
console.log(_chalk2.default.white(" " +
|
|
1093
|
+
console.log(_chalk2.default.white(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.visit")));
|
|
1323
1094
|
console.log(_chalk2.default.cyan(" " + authUrl));
|
|
1324
1095
|
console.log();
|
|
1325
|
-
console.log(_chalk2.default.gray(" " +
|
|
1096
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.code")));
|
|
1326
1097
|
console.log(_chalk2.default.bold.yellow(` ${initResult.userCode}`));
|
|
1327
1098
|
console.log();
|
|
1328
1099
|
try {
|
|
1329
1100
|
const open = await Promise.resolve().then(() => _interopRequireWildcard(require("open"))).then((m) => m.default).catch(() => null);
|
|
1330
1101
|
if (open) {
|
|
1331
1102
|
await open(authUrl);
|
|
1332
|
-
console.log(_chalk2.default.gray(" " +
|
|
1103
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.browserOpened")));
|
|
1333
1104
|
} else {
|
|
1334
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1105
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.openManually")));
|
|
1335
1106
|
}
|
|
1336
1107
|
} catch (e12) {
|
|
1337
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1108
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.openManually")));
|
|
1338
1109
|
}
|
|
1339
1110
|
console.log();
|
|
1340
|
-
console.log(_chalk2.default.gray(" " +
|
|
1111
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.waiting")));
|
|
1341
1112
|
const startTime = Date.now();
|
|
1342
1113
|
const timeout = 3 * 60 * 1e3;
|
|
1343
|
-
const pollInterval = initResult.interval ? initResult.interval * 1e3 :
|
|
1114
|
+
const pollInterval = initResult.interval ? initResult.interval * 1e3 : _chunk3JURXAL6cjs.AUTH_CONFIG.pollInterval;
|
|
1344
1115
|
let dots = 0;
|
|
1345
1116
|
const maxDots = 3;
|
|
1346
1117
|
while (Date.now() - startTime < timeout) {
|
|
@@ -1353,35 +1124,35 @@ var SetupWizard = class {
|
|
|
1353
1124
|
this.state.authToken = pollResult.token;
|
|
1354
1125
|
this.state.authUser = pollResult.user;
|
|
1355
1126
|
console.log();
|
|
1356
|
-
console.log(_chalk2.default.green(" " +
|
|
1127
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.success", { name: pollResult.user.name || pollResult.user.email })));
|
|
1357
1128
|
return;
|
|
1358
1129
|
}
|
|
1359
1130
|
if (pollResult.status === "expired") {
|
|
1360
1131
|
process.stdout.write("\r" + " ".repeat(20) + "\r");
|
|
1361
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1362
|
-
const retry2 = await
|
|
1363
|
-
title:
|
|
1132
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.expired")));
|
|
1133
|
+
const retry2 = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1134
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.retryPrompt"),
|
|
1364
1135
|
defaultValue: true
|
|
1365
1136
|
});
|
|
1366
1137
|
if (retry2) {
|
|
1367
1138
|
return this.promptRegistration();
|
|
1368
1139
|
}
|
|
1369
1140
|
this.state.skipped.push("registration");
|
|
1370
|
-
console.log(_chalk2.default.gray(" " +
|
|
1141
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.tryLater")));
|
|
1371
1142
|
return;
|
|
1372
1143
|
}
|
|
1373
1144
|
}
|
|
1374
1145
|
process.stdout.write("\r" + " ".repeat(20) + "\r");
|
|
1375
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1376
|
-
const retry = await
|
|
1377
|
-
title:
|
|
1146
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.timeout")));
|
|
1147
|
+
const retry = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1148
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.retryPrompt"),
|
|
1378
1149
|
defaultValue: true
|
|
1379
1150
|
});
|
|
1380
1151
|
if (retry) {
|
|
1381
1152
|
return this.promptRegistration();
|
|
1382
1153
|
}
|
|
1383
1154
|
this.state.skipped.push("registration");
|
|
1384
|
-
console.log(_chalk2.default.gray(" " +
|
|
1155
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.registration.tryLater")));
|
|
1385
1156
|
}
|
|
1386
1157
|
sleep(ms) {
|
|
1387
1158
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -1416,6 +1187,8 @@ var SetupWizard = class {
|
|
|
1416
1187
|
};
|
|
1417
1188
|
} else if (this.state.provider === "vertexai" && this.state.vertexaiConfig) {
|
|
1418
1189
|
config.vertexai = this.state.vertexaiConfig;
|
|
1190
|
+
} else if (this.state.provider === "bedrock" && this.state.bedrockConfig) {
|
|
1191
|
+
config.bedrock = this.state.bedrockConfig;
|
|
1419
1192
|
} else if (this.requiresApiKey(this.state.provider)) {
|
|
1420
1193
|
config[this.state.provider] = {
|
|
1421
1194
|
apiKey: this.state.apiKey,
|
|
@@ -1525,21 +1298,21 @@ var SetupWizard = class {
|
|
|
1525
1298
|
*/
|
|
1526
1299
|
async promptAzureConfig() {
|
|
1527
1300
|
this.state.currentStep = "apiKey";
|
|
1528
|
-
console.log(_chalk2.default.cyan("\n" +
|
|
1529
|
-
console.log(_chalk2.default.gray(
|
|
1530
|
-
console.log(_chalk2.default.yellow(
|
|
1531
|
-
console.log(_chalk2.default.gray(" " +
|
|
1532
|
-
console.log(_chalk2.default.gray(" " +
|
|
1533
|
-
console.log(_chalk2.default.gray(" " +
|
|
1534
|
-
console.log(_chalk2.default.gray(" " +
|
|
1301
|
+
console.log(_chalk2.default.cyan("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.title")));
|
|
1302
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.getStarted") + "\n"));
|
|
1303
|
+
console.log(_chalk2.default.yellow(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.setupSteps.title")));
|
|
1304
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step1")));
|
|
1305
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step2")));
|
|
1306
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step3")));
|
|
1307
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step4")));
|
|
1535
1308
|
console.log();
|
|
1536
1309
|
const authChoices = [
|
|
1537
|
-
{ label:
|
|
1538
|
-
{ label:
|
|
1539
|
-
{ label:
|
|
1310
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.authApiKey"), value: "api-key" },
|
|
1311
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.authEntraId"), value: "entra-id" },
|
|
1312
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.authManagedIdentity"), value: "managed-identity" }
|
|
1540
1313
|
];
|
|
1541
|
-
const authResult = await
|
|
1542
|
-
title:
|
|
1314
|
+
const authResult = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1315
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.selectAuthMethod"),
|
|
1543
1316
|
options: authChoices
|
|
1544
1317
|
});
|
|
1545
1318
|
if (!authResult) return false;
|
|
@@ -1549,27 +1322,27 @@ var SetupWizard = class {
|
|
|
1549
1322
|
let clientId;
|
|
1550
1323
|
let clientSecret;
|
|
1551
1324
|
if (authMethod === "api-key") {
|
|
1552
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1553
|
-
apiKey = await _asyncNullishCoalesce(await
|
|
1325
|
+
console.log(_chalk2.default.gray("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.apiKeyLocation") + "\n"));
|
|
1326
|
+
apiKey = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showPassword.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterAzureApiKey"), placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder") }), async () => ( void 0));
|
|
1554
1327
|
if (!apiKey) return false;
|
|
1555
1328
|
} else if (authMethod === "entra-id") {
|
|
1556
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1557
|
-
console.log(_chalk2.default.gray(
|
|
1558
|
-
tenantId = await _asyncNullishCoalesce(await
|
|
1329
|
+
console.log(_chalk2.default.gray("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.entraIdDescription")));
|
|
1330
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.entraIdDocs") + "\n"));
|
|
1331
|
+
tenantId = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showInput.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterTenantId") }), async () => ( void 0));
|
|
1559
1332
|
if (!tenantId) return false;
|
|
1560
|
-
clientId = await _asyncNullishCoalesce(await
|
|
1333
|
+
clientId = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showInput.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterClientId") }), async () => ( void 0));
|
|
1561
1334
|
if (!clientId) return false;
|
|
1562
|
-
clientSecret = await _asyncNullishCoalesce(await
|
|
1335
|
+
clientSecret = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showPassword.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterClientSecret") }), async () => ( void 0));
|
|
1563
1336
|
if (!clientSecret) return false;
|
|
1564
1337
|
} else {
|
|
1565
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1566
|
-
console.log(_chalk2.default.gray(
|
|
1338
|
+
console.log(_chalk2.default.gray("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.managedIdentityDescription")));
|
|
1339
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.managedIdentityDocs") + "\n"));
|
|
1567
1340
|
}
|
|
1568
|
-
const endpointChoice = await
|
|
1569
|
-
title:
|
|
1341
|
+
const endpointChoice = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1342
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.endpointChoice"),
|
|
1570
1343
|
options: [
|
|
1571
|
-
{ label:
|
|
1572
|
-
{ label:
|
|
1344
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.endpointStructured"), value: "structured" },
|
|
1345
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.endpointUrl"), value: "url" }
|
|
1573
1346
|
]
|
|
1574
1347
|
});
|
|
1575
1348
|
if (!endpointChoice) return false;
|
|
@@ -1577,28 +1350,28 @@ var SetupWizard = class {
|
|
|
1577
1350
|
let deploymentName;
|
|
1578
1351
|
let baseUrl;
|
|
1579
1352
|
if (endpointChoice.value === "structured") {
|
|
1580
|
-
console.log(_chalk2.default.gray(
|
|
1581
|
-
console.log(_chalk2.default.gray(
|
|
1582
|
-
resourceName = await _asyncNullishCoalesce(await
|
|
1353
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.endpointUrlHint")));
|
|
1354
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.endpointUrlExample") + "\n"));
|
|
1355
|
+
resourceName = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showInput.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterEndpointOrResource") }), async () => ( void 0));
|
|
1583
1356
|
if (!resourceName) return false;
|
|
1584
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1585
|
-
console.log(_chalk2.default.gray(
|
|
1586
|
-
deploymentName = await _asyncNullishCoalesce(await
|
|
1357
|
+
console.log(_chalk2.default.gray("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.deploymentHint")));
|
|
1358
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.deploymentNotUrl") + "\n"));
|
|
1359
|
+
deploymentName = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showInput.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterDeploymentName"), defaultValue: "gpt-5.3-codex" }), async () => ( void 0));
|
|
1587
1360
|
if (!deploymentName) return false;
|
|
1588
1361
|
if (deploymentName.startsWith("http://") || deploymentName.startsWith("https://")) {
|
|
1589
|
-
console.log(_chalk2.default.red("\n\u2717 " +
|
|
1590
|
-
console.log(_chalk2.default.gray(" " +
|
|
1591
|
-
console.log(_chalk2.default.gray(" " +
|
|
1362
|
+
console.log(_chalk2.default.red("\n\u2717 " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.deploymentUrlError")));
|
|
1363
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.deploymentUrlErrorHint")));
|
|
1364
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.deploymentUrlErrorLocation") + "\n"));
|
|
1592
1365
|
return false;
|
|
1593
1366
|
}
|
|
1594
1367
|
} else {
|
|
1595
|
-
baseUrl = await _asyncNullishCoalesce(await
|
|
1596
|
-
title:
|
|
1368
|
+
baseUrl = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1369
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.enterFullEndpointUrl"),
|
|
1597
1370
|
defaultValue: "https://your-resource.openai.azure.com/openai/deployments/gpt-5.3-codex"
|
|
1598
1371
|
}), async () => ( void 0));
|
|
1599
1372
|
if (!baseUrl) return false;
|
|
1600
1373
|
}
|
|
1601
|
-
const apiVersion = await _asyncNullishCoalesce(await
|
|
1374
|
+
const apiVersion = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showInput.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.apiVersion"), defaultValue: "2024-10-21" }), async () => ( void 0));
|
|
1602
1375
|
if (!apiVersion) return false;
|
|
1603
1376
|
const model = _nullishCoalesce(deploymentName, () => ( "gpt-5.3-codex"));
|
|
1604
1377
|
const azureConfig = {
|
|
@@ -1615,9 +1388,9 @@ var SetupWizard = class {
|
|
|
1615
1388
|
};
|
|
1616
1389
|
this.state.azureConfig = azureConfig;
|
|
1617
1390
|
this.state.model = model;
|
|
1618
|
-
console.log(_chalk2.default.green("\n\u2713 " +
|
|
1619
|
-
console.log(_chalk2.default.gray(" " +
|
|
1620
|
-
console.log(_chalk2.default.gray(" " +
|
|
1391
|
+
console.log(_chalk2.default.green("\n\u2713 " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.configuredSuccessfully", { provider: _chunkRJCZLFHEcjs.t.call(void 0, "providers.azure") })));
|
|
1392
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.azure.authLabel", { method: authMethod })));
|
|
1393
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.modelLabel", { model })));
|
|
1621
1394
|
console.log();
|
|
1622
1395
|
return true;
|
|
1623
1396
|
}
|
|
@@ -1628,15 +1401,15 @@ var SetupWizard = class {
|
|
|
1628
1401
|
*/
|
|
1629
1402
|
async promptVertexAIConfig() {
|
|
1630
1403
|
this.state.currentStep = "apiKey";
|
|
1631
|
-
console.log(_chalk2.default.cyan("\n" +
|
|
1632
|
-
console.log(_chalk2.default.gray(
|
|
1633
|
-
const gcloudInstalled = await
|
|
1634
|
-
const gcloudAccount = gcloudInstalled ? await
|
|
1635
|
-
const gcloudProject = gcloudInstalled ? await
|
|
1636
|
-
const existingConfig = _optionalChain([this, 'access',
|
|
1637
|
-
const existingProjectId = _optionalChain([existingConfig, 'optionalAccess',
|
|
1638
|
-
const existingEndpoint = _optionalChain([existingConfig, 'optionalAccess',
|
|
1639
|
-
const existingRegion = _optionalChain([existingConfig, 'optionalAccess',
|
|
1404
|
+
console.log(_chalk2.default.cyan("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.title")));
|
|
1405
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.getStarted") + "\n"));
|
|
1406
|
+
const gcloudInstalled = await _chunkY4MN27V3cjs.isGcloudInstalled.call(void 0, );
|
|
1407
|
+
const gcloudAccount = gcloudInstalled ? await _chunkY4MN27V3cjs.getGcloudAccount.call(void 0, ) : null;
|
|
1408
|
+
const gcloudProject = gcloudInstalled ? await _chunkY4MN27V3cjs.getGcloudProject.call(void 0, ) : null;
|
|
1409
|
+
const existingConfig = _optionalChain([this, 'access', _18 => _18.existingConfig, 'optionalAccess', _19 => _19.vertexai]);
|
|
1410
|
+
const existingProjectId = _optionalChain([existingConfig, 'optionalAccess', _20 => _20.projectId]);
|
|
1411
|
+
const existingEndpoint = _optionalChain([existingConfig, 'optionalAccess', _21 => _21.endpoint]);
|
|
1412
|
+
const existingRegion = _optionalChain([existingConfig, 'optionalAccess', _22 => _22.region]);
|
|
1640
1413
|
if (gcloudInstalled) {
|
|
1641
1414
|
console.log(_chalk2.default.green(" \u2713 gcloud CLI detected"));
|
|
1642
1415
|
if (gcloudAccount) {
|
|
@@ -1652,19 +1425,19 @@ var SetupWizard = class {
|
|
|
1652
1425
|
console.log(_chalk2.default.gray(" https://cloud.google.com/sdk/docs/install"));
|
|
1653
1426
|
console.log();
|
|
1654
1427
|
}
|
|
1655
|
-
const endpoint = await
|
|
1656
|
-
title:
|
|
1428
|
+
const endpoint = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1429
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.enterEndpoint"),
|
|
1657
1430
|
defaultValue: existingEndpoint || "aiplatform.googleapis.com"
|
|
1658
1431
|
});
|
|
1659
1432
|
if (!endpoint) return false;
|
|
1660
|
-
const region = await
|
|
1661
|
-
title:
|
|
1433
|
+
const region = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1434
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.enterRegion"),
|
|
1662
1435
|
defaultValue: existingRegion || "global"
|
|
1663
1436
|
});
|
|
1664
1437
|
if (!region) return false;
|
|
1665
1438
|
const defaultProjectId = existingProjectId || gcloudProject || "";
|
|
1666
|
-
const projectId = await
|
|
1667
|
-
title:
|
|
1439
|
+
const projectId = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1440
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.enterProjectId"),
|
|
1668
1441
|
defaultValue: defaultProjectId,
|
|
1669
1442
|
placeholder: "YOUR_PROJECT_ID"
|
|
1670
1443
|
});
|
|
@@ -1672,7 +1445,7 @@ var SetupWizard = class {
|
|
|
1672
1445
|
let authToken;
|
|
1673
1446
|
if (gcloudInstalled) {
|
|
1674
1447
|
console.log(_chalk2.default.gray("\n Fetching access token from gcloud..."));
|
|
1675
|
-
const tokenResult = await
|
|
1448
|
+
const tokenResult = await _chunkY4MN27V3cjs.getGcloudAccessToken.call(void 0, );
|
|
1676
1449
|
if (tokenResult.token) {
|
|
1677
1450
|
console.log(_chalk2.default.green(" \u2713 Access token obtained (valid for ~25 minutes)"));
|
|
1678
1451
|
console.log(_chalk2.default.gray(" Tokens are automatically refreshed when using gcloud."));
|
|
@@ -1681,30 +1454,30 @@ var SetupWizard = class {
|
|
|
1681
1454
|
console.log(_chalk2.default.yellow(` \u26A0 ${tokenResult.error}`));
|
|
1682
1455
|
console.log(_chalk2.default.gray(" Please enter token manually or run: gcloud auth login"));
|
|
1683
1456
|
console.log();
|
|
1684
|
-
const manualToken = await
|
|
1685
|
-
title:
|
|
1686
|
-
placeholder:
|
|
1457
|
+
const manualToken = await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
1458
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.enterAuthToken"),
|
|
1459
|
+
placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder")
|
|
1687
1460
|
});
|
|
1688
1461
|
if (!manualToken) return false;
|
|
1689
1462
|
authToken = manualToken;
|
|
1690
1463
|
}
|
|
1691
1464
|
} else {
|
|
1692
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1693
|
-
console.log(_chalk2.default.gray(" " +
|
|
1465
|
+
console.log(_chalk2.default.gray("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.authTokenHint")));
|
|
1466
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.authTokenCommand")));
|
|
1694
1467
|
console.log();
|
|
1695
|
-
const manualToken = await
|
|
1696
|
-
title:
|
|
1697
|
-
placeholder:
|
|
1468
|
+
const manualToken = await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
1469
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.vertexai.enterAuthToken"),
|
|
1470
|
+
placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder")
|
|
1698
1471
|
});
|
|
1699
1472
|
if (!manualToken) return false;
|
|
1700
1473
|
authToken = manualToken;
|
|
1701
1474
|
}
|
|
1702
|
-
const modelOptions =
|
|
1475
|
+
const modelOptions = _chunkY4MN27V3cjs.VERTEX_AI_CODING_MODELS.map((name) => ({
|
|
1703
1476
|
label: name,
|
|
1704
1477
|
value: name
|
|
1705
1478
|
}));
|
|
1706
|
-
const modelResult = await
|
|
1707
|
-
title:
|
|
1479
|
+
const modelResult = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1480
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1708
1481
|
options: modelOptions,
|
|
1709
1482
|
allowCustomInput: true
|
|
1710
1483
|
});
|
|
@@ -1721,28 +1494,114 @@ var SetupWizard = class {
|
|
|
1721
1494
|
projectId,
|
|
1722
1495
|
model
|
|
1723
1496
|
};
|
|
1724
|
-
console.log(_chalk2.default.green("\n\u2713 " +
|
|
1725
|
-
console.log(_chalk2.default.gray(" " +
|
|
1497
|
+
console.log(_chalk2.default.green("\n\u2713 " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.configuredSuccessfully", { provider: _chunkRJCZLFHEcjs.t.call(void 0, "providers.vertexai") })));
|
|
1498
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.modelLabel", { model })));
|
|
1726
1499
|
if (gcloudInstalled) {
|
|
1727
1500
|
console.log(_chalk2.default.gray(" Token auto-refresh enabled via gcloud CLI"));
|
|
1728
1501
|
}
|
|
1729
1502
|
console.log();
|
|
1730
1503
|
return true;
|
|
1731
1504
|
}
|
|
1505
|
+
async promptBedrockConfig() {
|
|
1506
|
+
this.state.currentStep = "apiKey";
|
|
1507
|
+
console.log(_chalk2.default.cyan("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.title")));
|
|
1508
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.getStarted") + "\n"));
|
|
1509
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.awsCredentialsHint")));
|
|
1510
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modelAccessHint") + "\n"));
|
|
1511
|
+
const existing = _optionalChain([this, 'access', _23 => _23.existingConfig, 'optionalAccess', _24 => _24.bedrock]);
|
|
1512
|
+
const apiMode = await this.promptBedrockApiMode(_optionalChain([existing, 'optionalAccess', _25 => _25.apiMode]));
|
|
1513
|
+
if (!apiMode) return false;
|
|
1514
|
+
const authMode = await this.promptBedrockAuthMode(apiMode, _optionalChain([existing, 'optionalAccess', _26 => _26.authMode]));
|
|
1515
|
+
if (!authMode) return false;
|
|
1516
|
+
let apiKey = _optionalChain([existing, 'optionalAccess', _27 => _27.apiKey]);
|
|
1517
|
+
if (authMode === "bedrock-api-key") {
|
|
1518
|
+
console.log(_chalk2.default.gray("\n" + _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.apiKeyHint") + "\n"));
|
|
1519
|
+
apiKey = await _asyncNullishCoalesce(await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
1520
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.enterApiKey", { provider: this.getProviderDisplayName("bedrock") }),
|
|
1521
|
+
placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder"),
|
|
1522
|
+
validate: (val) => {
|
|
1523
|
+
if (!_optionalChain([val, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) return _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.apiKeyRequired");
|
|
1524
|
+
if (val.length < 10) return _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.apiKeyTooShort");
|
|
1525
|
+
return true;
|
|
1526
|
+
}
|
|
1527
|
+
}), async () => ( void 0));
|
|
1528
|
+
if (!apiKey) return false;
|
|
1529
|
+
}
|
|
1530
|
+
const region = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1531
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.enterRegion"),
|
|
1532
|
+
defaultValue: _optionalChain([existing, 'optionalAccess', _30 => _30.region]) || process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION || _chunkY4MN27V3cjs.BEDROCK_DEFAULT_REGION
|
|
1533
|
+
});
|
|
1534
|
+
if (!region) return false;
|
|
1535
|
+
const profile = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1536
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.enterProfile"),
|
|
1537
|
+
defaultValue: _optionalChain([existing, 'optionalAccess', _31 => _31.profile]) || "",
|
|
1538
|
+
placeholder: "enterprise-prod"
|
|
1539
|
+
});
|
|
1540
|
+
const endpoint = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1541
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.enterEndpoint"),
|
|
1542
|
+
defaultValue: _optionalChain([existing, 'optionalAccess', _32 => _32.endpoint]) || "",
|
|
1543
|
+
placeholder: _chunkY4MN27V3cjs.resolveBedrockEndpoint.call(void 0, apiMode, region)
|
|
1544
|
+
});
|
|
1545
|
+
const modelResult = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1546
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1547
|
+
options: _chunkY4MN27V3cjs.BEDROCK_MODELS.map((name) => ({ label: name, value: name })),
|
|
1548
|
+
allowCustomInput: true,
|
|
1549
|
+
initialIndex: Math.max(0, [..._chunkY4MN27V3cjs.BEDROCK_MODELS].indexOf(_optionalChain([existing, 'optionalAccess', _33 => _33.model]) || _chunkY4MN27V3cjs.BEDROCK_DEFAULT_MODEL))
|
|
1550
|
+
});
|
|
1551
|
+
if (!modelResult) return false;
|
|
1552
|
+
const model = String(modelResult.value).trim();
|
|
1553
|
+
this.state.provider = "bedrock";
|
|
1554
|
+
this.state.model = model;
|
|
1555
|
+
this.state.bedrockConfig = {
|
|
1556
|
+
model,
|
|
1557
|
+
region: region.trim(),
|
|
1558
|
+
apiMode,
|
|
1559
|
+
authMode,
|
|
1560
|
+
..._optionalChain([profile, 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]) && { profile: profile.trim() },
|
|
1561
|
+
..._optionalChain([endpoint, 'optionalAccess', _36 => _36.trim, 'call', _37 => _37()]) && { endpoint: endpoint.trim() },
|
|
1562
|
+
...authMode === "bedrock-api-key" && apiKey ? { apiKey } : {}
|
|
1563
|
+
};
|
|
1564
|
+
console.log(_chalk2.default.green("\n\u2713 " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.configuredSuccessfully", { provider: _chunkRJCZLFHEcjs.t.call(void 0, "providers.bedrock") })));
|
|
1565
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.modelLabel", { model })));
|
|
1566
|
+
return true;
|
|
1567
|
+
}
|
|
1568
|
+
async promptBedrockApiMode(current) {
|
|
1569
|
+
const options = [
|
|
1570
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modeConverse"), value: "converse", description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modeConverseHint") },
|
|
1571
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIChat"), value: "openai-chat", description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIChatHint") },
|
|
1572
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIResponses"), value: "openai-responses", description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIResponsesHint") }
|
|
1573
|
+
];
|
|
1574
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1575
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.chooseApiMode"),
|
|
1576
|
+
options,
|
|
1577
|
+
initialIndex: Math.max(0, options.findIndex((option) => option.value === (current || "converse")))
|
|
1578
|
+
});
|
|
1579
|
+
return _nullishCoalesce(_optionalChain([result, 'optionalAccess', _38 => _38.value]), () => ( null));
|
|
1580
|
+
}
|
|
1581
|
+
async promptBedrockAuthMode(apiMode, current) {
|
|
1582
|
+
const authMode = _chunkY4MN27V3cjs.resolveBedrockAuthMode.call(void 0, apiMode, current);
|
|
1583
|
+
const options = apiMode === "converse" ? [{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.authAwsCredentials"), value: "aws-credentials", description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.authAwsCredentialsHint") }] : [{ label: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.authBedrockApiKey"), value: "bedrock-api-key", description: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.authBedrockApiKeyHint") }];
|
|
1584
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1585
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.chooseAuthMode"),
|
|
1586
|
+
options,
|
|
1587
|
+
initialIndex: Math.max(0, options.findIndex((option) => option.value === authMode))
|
|
1588
|
+
});
|
|
1589
|
+
return _nullishCoalesce(_optionalChain([result, 'optionalAccess', _39 => _39.value]), () => ( null));
|
|
1590
|
+
}
|
|
1732
1591
|
/**
|
|
1733
1592
|
* Prompt for language selection
|
|
1734
1593
|
*/
|
|
1735
1594
|
async promptLanguage() {
|
|
1736
1595
|
this.state.currentStep = "language";
|
|
1737
|
-
const detected =
|
|
1738
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1739
|
-
const options =
|
|
1740
|
-
label:
|
|
1596
|
+
const detected = _chunkRJCZLFHEcjs.detectLocale.call(void 0, );
|
|
1597
|
+
console.log(_chalk2.default.gray("\n " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.language.detected", { language: _chunkRJCZLFHEcjs.LANGUAGE_DISPLAY_NAMES[detected.locale] })));
|
|
1598
|
+
const options = _chunkRJCZLFHEcjs.SUPPORTED_LOCALES.map((locale) => ({
|
|
1599
|
+
label: _chunkRJCZLFHEcjs.LANGUAGE_DISPLAY_NAMES[locale],
|
|
1741
1600
|
value: locale
|
|
1742
1601
|
}));
|
|
1743
|
-
const initialIndex =
|
|
1744
|
-
const result = await
|
|
1745
|
-
title:
|
|
1602
|
+
const initialIndex = _chunkRJCZLFHEcjs.SUPPORTED_LOCALES.indexOf(detected.locale);
|
|
1603
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1604
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.language.prompt"),
|
|
1746
1605
|
options,
|
|
1747
1606
|
initialIndex: initialIndex >= 0 ? initialIndex : 0
|
|
1748
1607
|
});
|
|
@@ -1753,8 +1612,8 @@ var SetupWizard = class {
|
|
|
1753
1612
|
const selectedLocale = result.value;
|
|
1754
1613
|
this.state.locale = selectedLocale;
|
|
1755
1614
|
if (selectedLocale !== detected.locale) {
|
|
1756
|
-
await
|
|
1757
|
-
console.log(_chalk2.default.green(" " +
|
|
1615
|
+
await _chunkRJCZLFHEcjs.changeLanguage.call(void 0, selectedLocale);
|
|
1616
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.language.changed", { language: _chunkRJCZLFHEcjs.LANGUAGE_DISPLAY_NAMES[selectedLocale] })));
|
|
1758
1617
|
}
|
|
1759
1618
|
}
|
|
1760
1619
|
/**
|
|
@@ -1764,20 +1623,20 @@ var SetupWizard = class {
|
|
|
1764
1623
|
if (!this.state.provider || !this.state.apiKey) return;
|
|
1765
1624
|
if (!this.requiresApiKey(this.state.provider)) return;
|
|
1766
1625
|
const baseUrl = this.getDefaultBaseUrl(this.state.provider);
|
|
1767
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1626
|
+
console.log(_chalk2.default.gray("\n " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.apiKeyValidation.validating")));
|
|
1768
1627
|
try {
|
|
1769
1628
|
const response = await fetch(`${baseUrl}/models`, {
|
|
1770
1629
|
headers: { Authorization: `Bearer ${this.state.apiKey}` },
|
|
1771
1630
|
signal: AbortSignal.timeout(1e4)
|
|
1772
1631
|
});
|
|
1773
1632
|
if (response.ok) {
|
|
1774
|
-
console.log(_chalk2.default.green(" " +
|
|
1633
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.apiKeyValidation.success")));
|
|
1775
1634
|
} else {
|
|
1776
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1777
|
-
console.log(_chalk2.default.gray(" " +
|
|
1635
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.apiKeyValidation.failed", { error: `HTTP ${response.status}` })));
|
|
1636
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.apiKeyValidation.hint")));
|
|
1778
1637
|
}
|
|
1779
1638
|
} catch (e13) {
|
|
1780
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1639
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.apiKeyValidation.skipped")));
|
|
1781
1640
|
}
|
|
1782
1641
|
}
|
|
1783
1642
|
/**
|
|
@@ -1795,24 +1654,24 @@ var SetupWizard = class {
|
|
|
1795
1654
|
};
|
|
1796
1655
|
const endpoint = endpoints[provider];
|
|
1797
1656
|
if (!endpoint) return true;
|
|
1798
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1657
|
+
console.log(_chalk2.default.gray("\n " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.connectionTest.testing", { provider: this.getProviderDisplayName(provider) })));
|
|
1799
1658
|
try {
|
|
1800
1659
|
const response = await fetch(endpoint, { signal: AbortSignal.timeout(5e3) });
|
|
1801
1660
|
if (response.ok) {
|
|
1802
|
-
console.log(_chalk2.default.green(" " +
|
|
1661
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.connectionTest.success", { provider: this.getProviderDisplayName(provider) })));
|
|
1803
1662
|
return true;
|
|
1804
1663
|
}
|
|
1805
1664
|
throw new Error(`HTTP ${response.status}`);
|
|
1806
1665
|
} catch (error) {
|
|
1807
1666
|
const errorMsg = error instanceof Error ? error.message : "Unknown error";
|
|
1808
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1667
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.connectionTest.failed", { provider: this.getProviderDisplayName(provider), error: errorMsg })));
|
|
1809
1668
|
const hintKey = `setup.connectionTest.hint${provider.charAt(0).toUpperCase() + provider.slice(1)}`;
|
|
1810
|
-
const hint =
|
|
1669
|
+
const hint = _chunkRJCZLFHEcjs.t.call(void 0, hintKey);
|
|
1811
1670
|
if (hint !== hintKey) {
|
|
1812
1671
|
console.log(_chalk2.default.gray(" " + hint));
|
|
1813
1672
|
}
|
|
1814
|
-
const continueAnyway = await
|
|
1815
|
-
title:
|
|
1673
|
+
const continueAnyway = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1674
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.connectionTest.continueAnyway"),
|
|
1816
1675
|
defaultValue: true
|
|
1817
1676
|
});
|
|
1818
1677
|
return continueAnyway;
|
|
@@ -1830,7 +1689,7 @@ var SetupWizard = class {
|
|
|
1830
1689
|
console.log(_chalk2.default.yellow(" llama.cpp is not installed and no supported package manager was detected."));
|
|
1831
1690
|
} else {
|
|
1832
1691
|
console.log(_chalk2.default.yellow(` llama.cpp is not installed. Autohand can install it with: ${probe.installPlan.label}`));
|
|
1833
|
-
const shouldInstall = await
|
|
1692
|
+
const shouldInstall = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1834
1693
|
title: "Install llama.cpp now?",
|
|
1835
1694
|
defaultValue: true
|
|
1836
1695
|
});
|
|
@@ -1855,8 +1714,8 @@ var SetupWizard = class {
|
|
|
1855
1714
|
}
|
|
1856
1715
|
}
|
|
1857
1716
|
}
|
|
1858
|
-
const port = await
|
|
1859
|
-
title:
|
|
1717
|
+
const port = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1718
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.llamacpp.serverPort"),
|
|
1860
1719
|
defaultValue: String(_nullishCoalesce(detectedPort, () => ( 80)))
|
|
1861
1720
|
});
|
|
1862
1721
|
if (!port) {
|
|
@@ -1872,28 +1731,28 @@ var SetupWizard = class {
|
|
|
1872
1731
|
this.state.currentStep = "permissions";
|
|
1873
1732
|
console.log();
|
|
1874
1733
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
1875
|
-
console.log(_chalk2.default.white.bold(" " +
|
|
1734
|
+
console.log(_chalk2.default.white.bold(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.title")));
|
|
1876
1735
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
1877
1736
|
console.log();
|
|
1878
|
-
console.log(_chalk2.default.gray(" " +
|
|
1737
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.description")));
|
|
1879
1738
|
console.log();
|
|
1880
1739
|
const options = [
|
|
1881
|
-
{ label:
|
|
1882
|
-
{ label:
|
|
1883
|
-
{ label:
|
|
1740
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.interactive"), value: "interactive" },
|
|
1741
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.unrestricted"), value: "unrestricted" },
|
|
1742
|
+
{ label: _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.restricted"), value: "restricted" }
|
|
1884
1743
|
];
|
|
1885
|
-
const result = await
|
|
1886
|
-
title:
|
|
1744
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1745
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.title"),
|
|
1887
1746
|
options
|
|
1888
1747
|
});
|
|
1889
|
-
const mode = _nullishCoalesce(_optionalChain([result, 'optionalAccess',
|
|
1748
|
+
const mode = _nullishCoalesce(_optionalChain([result, 'optionalAccess', _40 => _40.value]), () => ( "interactive"));
|
|
1890
1749
|
this.state.permissionMode = mode;
|
|
1891
1750
|
if (mode === "unrestricted") {
|
|
1892
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1751
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.warning")));
|
|
1893
1752
|
}
|
|
1894
|
-
console.log(_chalk2.default.green(" " +
|
|
1895
|
-
const rememberSession = await
|
|
1896
|
-
title:
|
|
1753
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.set", { mode })));
|
|
1754
|
+
const rememberSession = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1755
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.permissions.rememberPrompt"),
|
|
1897
1756
|
defaultValue: true
|
|
1898
1757
|
});
|
|
1899
1758
|
this.state.rememberSession = rememberSession;
|
|
@@ -1903,16 +1762,16 @@ var SetupWizard = class {
|
|
|
1903
1762
|
*/
|
|
1904
1763
|
async checkWorkspaceStep() {
|
|
1905
1764
|
this.state.currentStep = "workspaceSafety";
|
|
1906
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1765
|
+
console.log(_chalk2.default.gray("\n " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.workspaceSafety.checking")));
|
|
1907
1766
|
const result = _chunkWGNMOVMTcjs.checkWorkspaceSafety.call(void 0, this.workspaceRoot);
|
|
1908
1767
|
if (result.safe) {
|
|
1909
|
-
console.log(_chalk2.default.green(" " +
|
|
1768
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.workspaceSafety.safe")));
|
|
1910
1769
|
return true;
|
|
1911
1770
|
}
|
|
1912
1771
|
_chunkWGNMOVMTcjs.printDangerousWorkspaceWarning.call(void 0, this.workspaceRoot, result);
|
|
1913
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1914
|
-
const continueUnsafe = await
|
|
1915
|
-
title:
|
|
1772
|
+
console.log(_chalk2.default.yellow(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.workspaceSafety.unsafe", { reason: result.reason || "" })));
|
|
1773
|
+
const continueUnsafe = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1774
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.workspaceSafety.continueUnsafe"),
|
|
1916
1775
|
defaultValue: false
|
|
1917
1776
|
});
|
|
1918
1777
|
return continueUnsafe;
|
|
@@ -1924,19 +1783,19 @@ var SetupWizard = class {
|
|
|
1924
1783
|
this.state.currentStep = "notifications";
|
|
1925
1784
|
console.log();
|
|
1926
1785
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
1927
|
-
console.log(_chalk2.default.white.bold(" " +
|
|
1786
|
+
console.log(_chalk2.default.white.bold(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.notifications.title")));
|
|
1928
1787
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
1929
1788
|
console.log();
|
|
1930
|
-
console.log(_chalk2.default.gray(" " +
|
|
1789
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.notifications.description")));
|
|
1931
1790
|
console.log();
|
|
1932
|
-
const enabled = await
|
|
1933
|
-
title:
|
|
1791
|
+
const enabled = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1792
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.notifications.enablePrompt"),
|
|
1934
1793
|
defaultValue: true
|
|
1935
1794
|
});
|
|
1936
1795
|
let sound = true;
|
|
1937
1796
|
if (enabled) {
|
|
1938
|
-
sound = await
|
|
1939
|
-
title:
|
|
1797
|
+
sound = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1798
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.notifications.soundPrompt"),
|
|
1940
1799
|
defaultValue: true
|
|
1941
1800
|
});
|
|
1942
1801
|
}
|
|
@@ -1947,16 +1806,16 @@ var SetupWizard = class {
|
|
|
1947
1806
|
*/
|
|
1948
1807
|
async promptNetwork() {
|
|
1949
1808
|
this.state.currentStep = "network";
|
|
1950
|
-
const needCustom = await
|
|
1951
|
-
title:
|
|
1809
|
+
const needCustom = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1810
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.network.needCustom"),
|
|
1952
1811
|
defaultValue: false
|
|
1953
1812
|
});
|
|
1954
1813
|
if (!needCustom) {
|
|
1955
1814
|
this.state.skipped.push("network");
|
|
1956
1815
|
return;
|
|
1957
1816
|
}
|
|
1958
|
-
const maxRetriesStr = await
|
|
1959
|
-
title:
|
|
1817
|
+
const maxRetriesStr = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1818
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.network.maxRetries"),
|
|
1960
1819
|
defaultValue: "3",
|
|
1961
1820
|
validate: (val) => {
|
|
1962
1821
|
const n = parseInt(val, 10);
|
|
@@ -1964,8 +1823,8 @@ var SetupWizard = class {
|
|
|
1964
1823
|
return true;
|
|
1965
1824
|
}
|
|
1966
1825
|
});
|
|
1967
|
-
const timeoutStr = await
|
|
1968
|
-
title:
|
|
1826
|
+
const timeoutStr = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1827
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.network.timeout"),
|
|
1969
1828
|
defaultValue: "30000",
|
|
1970
1829
|
validate: (val) => {
|
|
1971
1830
|
const n = parseInt(val, 10);
|
|
@@ -1989,17 +1848,17 @@ var SetupWizard = class {
|
|
|
1989
1848
|
{ label: "DuckDuckGo", value: "duckduckgo", description: "Privacy-focused, no API key needed" },
|
|
1990
1849
|
{ label: "Parallel.ai", value: "parallel", description: "AI-optimized search (requires API key)" }
|
|
1991
1850
|
];
|
|
1992
|
-
const result = await
|
|
1993
|
-
title:
|
|
1851
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
1852
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.search.prompt"),
|
|
1994
1853
|
options
|
|
1995
1854
|
});
|
|
1996
|
-
const provider = _nullishCoalesce(_optionalChain([result, 'optionalAccess',
|
|
1855
|
+
const provider = _nullishCoalesce(_optionalChain([result, 'optionalAccess', _41 => _41.value]), () => ( "google"));
|
|
1997
1856
|
const searchState = { provider };
|
|
1998
1857
|
if (provider === "brave") {
|
|
1999
|
-
const key = await
|
|
1858
|
+
const key = await _chunkDMM2BKSVcjs.showPassword.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.search.braveKeyPrompt"), placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder") });
|
|
2000
1859
|
if (key) searchState.braveApiKey = key;
|
|
2001
1860
|
} else if (provider === "parallel") {
|
|
2002
|
-
const key = await
|
|
1861
|
+
const key = await _chunkDMM2BKSVcjs.showPassword.call(void 0, { title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.search.parallelKeyPrompt"), placeholder: _chunkRJCZLFHEcjs.t.call(void 0, "ui.apiKeyPlaceholder") });
|
|
2003
1862
|
if (key) searchState.parallelApiKey = key;
|
|
2004
1863
|
}
|
|
2005
1864
|
this.state.search = searchState;
|
|
@@ -2010,15 +1869,15 @@ var SetupWizard = class {
|
|
|
2010
1869
|
async promptMcp() {
|
|
2011
1870
|
this.state.currentStep = "mcp";
|
|
2012
1871
|
console.log();
|
|
2013
|
-
console.log(_chalk2.default.gray(" " +
|
|
1872
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.mcp.description")));
|
|
2014
1873
|
console.log();
|
|
2015
|
-
const enabled = await
|
|
2016
|
-
title:
|
|
1874
|
+
const enabled = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1875
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.mcp.enablePrompt"),
|
|
2017
1876
|
defaultValue: true
|
|
2018
1877
|
});
|
|
2019
1878
|
this.state.mcpEnabled = enabled;
|
|
2020
1879
|
if (enabled) {
|
|
2021
|
-
console.log(_chalk2.default.green(" " +
|
|
1880
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.mcp.enabled")));
|
|
2022
1881
|
}
|
|
2023
1882
|
}
|
|
2024
1883
|
/**
|
|
@@ -2026,8 +1885,8 @@ var SetupWizard = class {
|
|
|
2026
1885
|
*/
|
|
2027
1886
|
async promptAgentBehavior() {
|
|
2028
1887
|
this.state.currentStep = "agentBehavior";
|
|
2029
|
-
const maxIterStr = await
|
|
2030
|
-
title:
|
|
1888
|
+
const maxIterStr = await _chunkDMM2BKSVcjs.showInput.call(void 0, {
|
|
1889
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.agent.maxIterationsPrompt"),
|
|
2031
1890
|
defaultValue: "100",
|
|
2032
1891
|
validate: (val) => {
|
|
2033
1892
|
const n = parseInt(val, 10);
|
|
@@ -2035,15 +1894,15 @@ var SetupWizard = class {
|
|
|
2035
1894
|
return true;
|
|
2036
1895
|
}
|
|
2037
1896
|
});
|
|
2038
|
-
const debug = await
|
|
2039
|
-
title:
|
|
1897
|
+
const debug = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1898
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.agent.debugPrompt"),
|
|
2040
1899
|
defaultValue: false
|
|
2041
1900
|
});
|
|
2042
1901
|
this.state.agentSettings = {
|
|
2043
1902
|
maxIterations: parseInt(maxIterStr || "100", 10),
|
|
2044
1903
|
debug
|
|
2045
1904
|
};
|
|
2046
|
-
console.log(_chalk2.default.green(" " +
|
|
1905
|
+
console.log(_chalk2.default.green(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.agent.set")));
|
|
2047
1906
|
}
|
|
2048
1907
|
/**
|
|
2049
1908
|
* Prompt for community skills
|
|
@@ -2051,10 +1910,10 @@ var SetupWizard = class {
|
|
|
2051
1910
|
async promptCommunitySkills() {
|
|
2052
1911
|
this.state.currentStep = "communitySkills";
|
|
2053
1912
|
console.log();
|
|
2054
|
-
console.log(_chalk2.default.gray(" " +
|
|
1913
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.communitySkills.description")));
|
|
2055
1914
|
console.log();
|
|
2056
|
-
const enabled = await
|
|
2057
|
-
title:
|
|
1915
|
+
const enabled = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1916
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.communitySkills.enablePrompt"),
|
|
2058
1917
|
defaultValue: true
|
|
2059
1918
|
});
|
|
2060
1919
|
this.state.communitySkillsEnabled = enabled;
|
|
@@ -2066,20 +1925,20 @@ var SetupWizard = class {
|
|
|
2066
1925
|
this.state.currentStep = "reviewSummary";
|
|
2067
1926
|
console.log();
|
|
2068
1927
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
2069
|
-
console.log(_chalk2.default.white.bold(" " +
|
|
1928
|
+
console.log(_chalk2.default.white.bold(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.review.title")));
|
|
2070
1929
|
console.log(_chalk2.default.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
2071
1930
|
console.log();
|
|
2072
1931
|
if (this.state.locale) {
|
|
2073
|
-
console.log(_chalk2.default.white(` Language: ${
|
|
1932
|
+
console.log(_chalk2.default.white(` Language: ${_chunkRJCZLFHEcjs.LANGUAGE_DISPLAY_NAMES[this.state.locale]}`));
|
|
2074
1933
|
}
|
|
2075
1934
|
if (this.state.provider) {
|
|
2076
|
-
console.log(_chalk2.default.white(" " +
|
|
1935
|
+
console.log(_chalk2.default.white(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.review.provider", { provider: this.getProviderDisplayName(this.state.provider) })));
|
|
2077
1936
|
}
|
|
2078
1937
|
if (this.state.model) {
|
|
2079
|
-
console.log(_chalk2.default.white(" " +
|
|
1938
|
+
console.log(_chalk2.default.white(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.review.model", { model: this.state.model })));
|
|
2080
1939
|
}
|
|
2081
1940
|
if (this.state.reasoningEffort) {
|
|
2082
|
-
console.log(_chalk2.default.white(" " +
|
|
1941
|
+
console.log(_chalk2.default.white(" " + _chunkRJCZLFHEcjs.t.call(void 0, "providers.config.reasoningEffortLabel", { level: this.state.reasoningEffort })));
|
|
2083
1942
|
}
|
|
2084
1943
|
if (this.state.permissionMode) {
|
|
2085
1944
|
console.log(_chalk2.default.white(` Permissions: ${this.state.permissionMode}`));
|
|
@@ -2089,7 +1948,7 @@ var SetupWizard = class {
|
|
|
2089
1948
|
if (this.state.notifications) {
|
|
2090
1949
|
console.log(_chalk2.default.white(` Notifications: ${this.state.notifications.enabled ? "enabled" : "disabled"}`));
|
|
2091
1950
|
}
|
|
2092
|
-
if (_optionalChain([this, 'access',
|
|
1951
|
+
if (_optionalChain([this, 'access', _42 => _42.state, 'access', _43 => _43.search, 'optionalAccess', _44 => _44.provider])) {
|
|
2093
1952
|
console.log(_chalk2.default.white(` Search: ${this.state.search.provider}`));
|
|
2094
1953
|
}
|
|
2095
1954
|
if (this.state.mcpEnabled !== void 0) {
|
|
@@ -2099,12 +1958,12 @@ var SetupWizard = class {
|
|
|
2099
1958
|
console.log(_chalk2.default.white(` Account: ${this.state.authUser.email}`));
|
|
2100
1959
|
}
|
|
2101
1960
|
console.log();
|
|
2102
|
-
const confirmed = await
|
|
2103
|
-
title:
|
|
1961
|
+
const confirmed = await _chunkDMM2BKSVcjs.showConfirm.call(void 0, {
|
|
1962
|
+
title: _chunkRJCZLFHEcjs.t.call(void 0, "setup.review.confirm"),
|
|
2104
1963
|
defaultValue: true
|
|
2105
1964
|
});
|
|
2106
1965
|
if (!confirmed) {
|
|
2107
|
-
console.log(_chalk2.default.gray(" " +
|
|
1966
|
+
console.log(_chalk2.default.gray(" " + _chunkRJCZLFHEcjs.t.call(void 0, "setup.review.goBack")));
|
|
2108
1967
|
}
|
|
2109
1968
|
return confirmed;
|
|
2110
1969
|
}
|
|
@@ -2116,22 +1975,24 @@ var SetupWizard = class {
|
|
|
2116
1975
|
}
|
|
2117
1976
|
// Helper methods
|
|
2118
1977
|
requiresApiKey(provider) {
|
|
2119
|
-
return provider === "openrouter" || provider === "llmgateway" || provider === "zai" || provider === "vertexai" || provider === "xai" || provider === "cerebras" || provider === "nvidia" || provider === "deepseek";
|
|
1978
|
+
return provider === "openrouter" || provider === "llmgateway" || provider === "zai" || provider === "sakana" || provider === "vertexai" || provider === "xai" || provider === "cerebras" || provider === "nvidia" || provider === "deepseek";
|
|
2120
1979
|
}
|
|
2121
1980
|
getProviderDisplayName(provider) {
|
|
2122
|
-
return
|
|
1981
|
+
return _chunkRJCZLFHEcjs.t.call(void 0, `providers.${provider}`);
|
|
2123
1982
|
}
|
|
2124
1983
|
getProviderHint(provider) {
|
|
2125
|
-
return
|
|
1984
|
+
return _chunkRJCZLFHEcjs.t.call(void 0, `providers.hints.${provider}`);
|
|
2126
1985
|
}
|
|
2127
1986
|
getApiKeyUrl(provider) {
|
|
2128
1987
|
const urls = {
|
|
2129
|
-
openrouter:
|
|
2130
|
-
openai:
|
|
2131
|
-
llmgateway:
|
|
2132
|
-
zai:
|
|
2133
|
-
|
|
2134
|
-
|
|
1988
|
+
openrouter: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.openrouter.apiKeyUrl"),
|
|
1989
|
+
openai: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.openai.apiKeyUrl"),
|
|
1990
|
+
llmgateway: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.llmgateway.apiKeyUrl"),
|
|
1991
|
+
zai: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.zai.apiKeyUrl"),
|
|
1992
|
+
sakana: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.sakana.apiKeyUrl"),
|
|
1993
|
+
nvidia: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.nvidia.apiKeyUrl"),
|
|
1994
|
+
deepseek: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.deepseek.apiKeyUrl"),
|
|
1995
|
+
bedrock: _chunkRJCZLFHEcjs.t.call(void 0, "providers.wizard.bedrock.apiKeyUrl")
|
|
2135
1996
|
};
|
|
2136
1997
|
return urls[provider] || "";
|
|
2137
1998
|
}
|
|
@@ -2144,12 +2005,14 @@ var SetupWizard = class {
|
|
|
2144
2005
|
mlx: "mlx-community/Llama-3.2-3B-Instruct-4bit",
|
|
2145
2006
|
llmgateway: "gpt-4o",
|
|
2146
2007
|
azure: "gpt-5.3-codex",
|
|
2147
|
-
zai: "glm-
|
|
2008
|
+
zai: "glm-5.2",
|
|
2009
|
+
sakana: "fugu",
|
|
2148
2010
|
vertexai: "zai-org/glm-5-maas",
|
|
2149
2011
|
xai: "grok-4.20-reasoning",
|
|
2150
2012
|
cerebras: "zai-glm-4.7",
|
|
2151
2013
|
nvidia: "mistralai/mixtral-8x7b-instruct-v0.1",
|
|
2152
|
-
deepseek: "deepseek-v4-flash"
|
|
2014
|
+
deepseek: "deepseek-v4-flash",
|
|
2015
|
+
bedrock: _chunkY4MN27V3cjs.BEDROCK_DEFAULT_MODEL
|
|
2153
2016
|
};
|
|
2154
2017
|
return defaults[provider] || "";
|
|
2155
2018
|
}
|
|
@@ -2162,38 +2025,40 @@ var SetupWizard = class {
|
|
|
2162
2025
|
mlx: "http://localhost:8080",
|
|
2163
2026
|
llmgateway: "https://api.llmgateway.io/v1",
|
|
2164
2027
|
azure: "https://{resourceName}.openai.azure.com",
|
|
2165
|
-
zai:
|
|
2028
|
+
zai: _chunkY4MN27V3cjs.ZAI_DEFAULT_BASE_URL,
|
|
2029
|
+
sakana: _chunkY4MN27V3cjs.SAKANA_DEFAULT_BASE_URL,
|
|
2166
2030
|
vertexai: "https://aiplatform.googleapis.com",
|
|
2167
2031
|
xai: "https://api.x.ai/v1",
|
|
2168
|
-
cerebras:
|
|
2032
|
+
cerebras: _chunkY4MN27V3cjs.CEREBRAS_DEFAULT_BASE_URL,
|
|
2169
2033
|
nvidia: "https://integrate.api.nvidia.com/v1",
|
|
2170
|
-
deepseek:
|
|
2034
|
+
deepseek: _chunkY4MN27V3cjs.DEEPSEEK_DEFAULT_BASE_URL,
|
|
2035
|
+
bedrock: `https://bedrock-runtime.${_chunkY4MN27V3cjs.BEDROCK_DEFAULT_REGION}.amazonaws.com`
|
|
2171
2036
|
};
|
|
2172
2037
|
return urls[provider] || "";
|
|
2173
2038
|
}
|
|
2174
2039
|
getExistingApiKey(provider) {
|
|
2175
2040
|
if (!this.existingConfig) return null;
|
|
2176
2041
|
const config = this.existingConfig[provider];
|
|
2177
|
-
return _optionalChain([config, 'optionalAccess',
|
|
2042
|
+
return _optionalChain([config, 'optionalAccess', _45 => _45.apiKey]) || null;
|
|
2178
2043
|
}
|
|
2179
2044
|
getExistingOpenAIAuthMode() {
|
|
2180
|
-
const config = _optionalChain([this, 'access',
|
|
2181
|
-
return _optionalChain([config, 'optionalAccess',
|
|
2045
|
+
const config = _optionalChain([this, 'access', _46 => _46.existingConfig, 'optionalAccess', _47 => _47.openai]);
|
|
2046
|
+
return _optionalChain([config, 'optionalAccess', _48 => _48.authMode]) === "chatgpt" ? "chatgpt" : "api-key";
|
|
2182
2047
|
}
|
|
2183
2048
|
getExistingOpenAIChatGPTAuth() {
|
|
2184
|
-
const auth = _optionalChain([this, 'access',
|
|
2049
|
+
const auth = _optionalChain([this, 'access', _49 => _49.existingConfig, 'optionalAccess', _50 => _50.openai, 'optionalAccess', _51 => _51.chatgptAuth]);
|
|
2185
2050
|
return auth && auth.accessToken && auth.accountId ? auth : null;
|
|
2186
2051
|
}
|
|
2187
2052
|
isOpenAIConfigured(config) {
|
|
2188
2053
|
if (config.authMode === "chatgpt") {
|
|
2189
|
-
return !!_optionalChain([config, 'access',
|
|
2054
|
+
return !!_optionalChain([config, 'access', _52 => _52.chatgptAuth, 'optionalAccess', _53 => _53.accessToken]) && !!_optionalChain([config, 'access', _54 => _54.chatgptAuth, 'optionalAccess', _55 => _55.accountId]);
|
|
2190
2055
|
}
|
|
2191
2056
|
return !!config.apiKey && config.apiKey !== "replace-me" && config.apiKey.length >= 10;
|
|
2192
2057
|
}
|
|
2193
2058
|
isCancellation(error) {
|
|
2194
2059
|
if (error && typeof error === "object") {
|
|
2195
2060
|
const e = error;
|
|
2196
|
-
return e.code === "ERR_USE_AFTER_CLOSE" || _optionalChain([e, 'access',
|
|
2061
|
+
return e.code === "ERR_USE_AFTER_CLOSE" || _optionalChain([e, 'access', _56 => _56.message, 'optionalAccess', _57 => _57.includes, 'call', _58 => _58("cancelled")]) || _optionalChain([e, 'access', _59 => _59.message, 'optionalAccess', _60 => _60.includes, 'call', _61 => _61("canceled")]);
|
|
2197
2062
|
}
|
|
2198
2063
|
return false;
|
|
2199
2064
|
}
|
|
@@ -2210,8 +2075,7 @@ var SetupWizard = class {
|
|
|
2210
2075
|
|
|
2211
2076
|
|
|
2212
2077
|
|
|
2213
|
-
|
|
2214
|
-
exports.ProjectAnalyzer = ProjectAnalyzer; exports.AgentsGenerator = AgentsGenerator; exports.probeLlamaCppEnvironment = probeLlamaCppEnvironment; exports.installLlamaCpp = installLlamaCpp; exports.SetupWizard = SetupWizard;
|
|
2078
|
+
exports.ProjectAnalyzer = ProjectAnalyzer; exports.probeLlamaCppEnvironment = probeLlamaCppEnvironment; exports.installLlamaCpp = installLlamaCpp; exports.SetupWizard = SetupWizard;
|
|
2215
2079
|
/**
|
|
2216
2080
|
* @license
|
|
2217
2081
|
* Copyright 2025 Autohand AI LLC
|