autohand-cli 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -2
- package/dist/{AgentRegistry-XPWSVO3Q.js → AgentRegistry-GOV7FN2O.js} +2 -2
- package/dist/AgentRegistry-J2C6JBZ3.cjs +10 -0
- package/dist/CommunitySkillsCache-22BB3J6H.cjs +8 -0
- package/dist/{CommunitySkillsCache-ZEQWP6YM.js → CommunitySkillsCache-ZACDPD4J.js} +2 -2
- package/dist/{HookManager-CWLTFKWO.js → HookManager-2S6AHOC3.js} +1 -1
- package/dist/{HookManager-TMAJQU4S.cjs → HookManager-TVEQI5ZU.cjs} +2 -2
- package/dist/{ImportWizard-QBKQEXDW.js → ImportWizard-AEBMAKXE.js} +4 -4
- package/dist/{ImportWizard-MQXEED2U.cjs → ImportWizard-AF2XL6DS.cjs} +13 -13
- package/dist/LearnAdvisor-KKEQ5QCV.js +9 -0
- package/dist/LearnAdvisor-Q7RAYLPF.cjs +9 -0
- package/dist/MemoryManager-PMNAEZMB.cjs +8 -0
- package/dist/{MemoryManager-WJMLPWGU.js → MemoryManager-QZRLTUB5.js} +2 -2
- package/dist/NVIDIAProvider-C3FWQOBZ.cjs +14 -0
- package/dist/{NVIDIAProvider-2HR737UE.js → NVIDIAProvider-SJPY3ONR.js} +1 -1
- package/dist/{PermissionManager-KMYILJ4Z.js → PermissionManager-MT7KBNNR.js} +3 -3
- package/dist/PermissionManager-URCNP5EC.cjs +11 -0
- package/dist/ProviderFactory-56N3ECE4.cjs +12 -0
- package/dist/{ProviderFactory-HFPRVQ25.js → ProviderFactory-RB4RVAF6.js} +3 -2
- package/dist/SessionManager-2IZGWASQ.cjs +10 -0
- package/dist/{SessionManager-PNBTJJTQ.js → SessionManager-554PHVPC.js} +2 -2
- package/dist/SkillsRegistry-GMRVONOQ.cjs +9 -0
- package/dist/{SkillsRegistry-4RRD5GMX.js → SkillsRegistry-NHHMIUYJ.js} +2 -2
- package/dist/SubAgent-4GOR2FIJ.js +13 -0
- package/dist/SubAgent-ZJMDH4FI.cjs +13 -0
- package/dist/{SyncApiClient-LRPFNCKJ.js → SyncApiClient-G3FM65IV.js} +1 -1
- package/dist/SyncApiClient-ODBDECOG.cjs +11 -0
- package/dist/{about-BW3PDZUU.js → about-3USFSGOH.js} +5 -4
- package/dist/about-QR52U5DD.cjs +15 -0
- package/dist/{acp-VHEL7BOW.js → acp-5Y2W6OZP.js} +129 -90
- package/dist/{acp-EOETGAHC.cjs → acp-GSYE75OB.cjs} +135 -96
- package/dist/actionExecutor-KHUU3Z3Q.cjs +28 -0
- package/dist/{actionExecutor-33I47NZS.js → actionExecutor-PLQJZLZV.js} +12 -8
- package/dist/add-dir-BTAD5OZS.cjs +11 -0
- package/dist/{add-dir-VFX7QT4E.js → add-dir-HCERJDBR.js} +2 -2
- package/dist/agent-B3EVT7NN.cjs +126 -0
- package/dist/agent-SATQ3WZ3.js +126 -0
- package/dist/agents-44CRJGM7.cjs +18 -0
- package/dist/agents-NN4ZAJ7R.js +18 -0
- package/dist/agents-new-6D6G4QS6.cjs +17 -0
- package/dist/agents-new-7GAQ25EK.js +17 -0
- package/dist/{autoSkill-EFMK6WU6.js → autoSkill-66PKCYTW.js} +2 -2
- package/dist/autoSkill-VQLGBELN.cjs +20 -0
- package/dist/automode-45DWV4TN.cjs +10 -0
- package/dist/{automode-BMYSRM34.js → automode-BUF3VGXU.js} +2 -2
- package/dist/chrome-Q2U73HZB.cjs +50 -0
- package/dist/chrome-Q54OALOK.cjs +21 -0
- package/dist/{chrome-NHJ44WUN.js → chrome-Y3T7EIHG.js} +2 -2
- package/dist/chrome-ZNJ46OYW.js +21 -0
- package/dist/{chunk-D2OSPLYC.cjs → chunk-22SCR3EV.cjs} +2 -2
- package/dist/chunk-26G7YGOW.js +367 -0
- package/dist/{chunk-75EDROHL.cjs → chunk-2ESQR35E.cjs} +10 -10
- package/dist/{chunk-HKYZSUQ5.js → chunk-2IW5YFJ4.js} +4 -4
- package/dist/{chunk-JP3YHTQ2.cjs → chunk-3ICORF7M.cjs} +4 -4
- package/dist/{chunk-4256YRCO.cjs → chunk-3UC6DMFI.cjs} +30 -17
- package/dist/{chunk-6GUODJKM.cjs → chunk-3UHRCHKB.cjs} +23 -23
- package/dist/{chunk-HXJEGMGB.js → chunk-3ZOOH44N.js} +2 -2
- package/dist/{chunk-7RFJB75Y.js → chunk-44ZWOBTI.js} +9 -9
- package/dist/{chunk-CCVMREXI.js → chunk-4567QNRB.js} +32 -8
- package/dist/chunk-45CHNQM6.cjs +517 -0
- package/dist/{chunk-6NVAK6CK.js → chunk-4E7SHPNQ.js} +2 -2
- package/dist/{chunk-XGMI6IYB.cjs → chunk-4XFHP2SN.cjs} +7 -7
- package/dist/chunk-4XVLNOFA.js +360 -0
- package/dist/{chunk-D6GZBSOX.js → chunk-575PXZX7.js} +1 -1
- package/dist/{chunk-HJIXWGQZ.js → chunk-5A7ZL64N.js} +1 -1
- package/dist/{chunk-ROLA6EFO.cjs → chunk-5GCQ5UMV.cjs} +14 -14
- package/dist/{chunk-3DDL2E55.cjs → chunk-5SFV2NCY.cjs} +10 -10
- package/dist/chunk-5ZNYX4VH.cjs +71 -0
- package/dist/{chunk-PDHT7LQS.cjs → chunk-63ANVAOJ.cjs} +3 -3
- package/dist/{chunk-GWO66KBI.js → chunk-65LRPW5W.js} +1 -1
- package/dist/{chunk-IAGCRVJ3.js → chunk-6AYJCDTA.js} +14 -9
- package/dist/{chunk-A7HHCIDQ.js → chunk-6HF6XSCC.js} +2 -2
- package/dist/{chunk-47PHDKNW.cjs → chunk-6JWCGQJU.cjs} +6 -6
- package/dist/chunk-6OECOAK5.cjs +360 -0
- package/dist/{chunk-RBHANOYY.js → chunk-7DJJGKM6.js} +47 -3
- package/dist/{chunk-37M5UM6I.js → chunk-7IRQ7JEH.js} +1 -1
- package/dist/chunk-7MY4JHER.js +27 -0
- package/dist/{chunk-ZR46OJNZ.js → chunk-7PJKTSRN.js} +3 -3
- package/dist/{chunk-AC7DZ6SK.cjs → chunk-7PT646AL.cjs} +3 -3
- package/dist/{chunk-TKKN34TV.js → chunk-7WAUCLLQ.js} +3 -3
- package/dist/{chunk-DPSIGY6L.cjs → chunk-7XTUL7ZD.cjs} +9 -9
- package/dist/{chunk-GBMDFWJX.cjs → chunk-AE2ILW25.cjs} +13 -13
- package/dist/{chunk-BQ22N3TX.cjs → chunk-AOKXYGBQ.cjs} +27 -22
- package/dist/{chunk-REMGR23V.cjs → chunk-AQ5PVHOC.cjs} +7 -2
- package/dist/{chunk-AUYSIEVV.cjs → chunk-AZ47LKD5.cjs} +3 -3
- package/dist/chunk-B76FJKEJ.cjs +184 -0
- package/dist/{chunk-XV2HXRHX.js → chunk-BP37FVBM.js} +3 -3
- package/dist/{chunk-JIMSII7R.js → chunk-C46B72VK.js} +57 -10
- package/dist/{chunk-L4F7SUYL.js → chunk-C5QIQQ37.js} +3 -3
- package/dist/{chunk-AUFNACED.js → chunk-CCIDL4SA.js} +7094 -6126
- package/dist/{chunk-OV3PVUYN.js → chunk-CECH6QQP.js} +11 -11
- package/dist/{chunk-CH2J4PVE.cjs → chunk-CK4HAHVY.cjs} +13 -13
- package/dist/{chunk-Q2IL4DDI.cjs → chunk-CO2AADYU.cjs} +19 -14
- package/dist/{chunk-7JLT2VNW.cjs → chunk-CRTCZ4WL.cjs} +7533 -6565
- package/dist/{chunk-5JFTY3VU.js → chunk-CSTUTDTH.js} +2 -1
- package/dist/{chunk-DIZTWFVR.cjs → chunk-D546G7DA.cjs} +209 -55
- package/dist/{chunk-7HPWMALN.js → chunk-DGBPWODD.js} +1 -1
- package/dist/{chunk-RBZ7AFX7.cjs → chunk-DHUQZ53B.cjs} +2 -2
- package/dist/{chunk-U4C3HW6P.js → chunk-DNSD7DVJ.js} +2 -2
- package/dist/{chunk-SOLBYSLY.cjs → chunk-DSSCERHI.cjs} +2 -2
- package/dist/{chunk-OPNI6O7F.cjs → chunk-EA2MS25U.cjs} +4 -4
- package/dist/{chunk-E46DJH5S.js → chunk-EEHWALXA.js} +94 -3
- package/dist/{chunk-CFFE4VA3.js → chunk-EYHKL4QC.js} +1 -1
- package/dist/{chunk-FGT6KK6T.js → chunk-FBQJZKFX.js} +3 -3
- package/dist/{chunk-I24CWKKK.js → chunk-FFHSCM5M.js} +3 -3
- package/dist/{chunk-TXPSTCG7.cjs → chunk-GAOPJ5S3.cjs} +8 -8
- package/dist/{chunk-ARBEHFCG.js → chunk-GSDV75A5.js} +1 -1
- package/dist/{chunk-Z3XSSF7B.js → chunk-H426KOGY.js} +1 -1
- package/dist/{chunk-WRTXCQ3V.cjs → chunk-HC2Q6A3E.cjs} +858 -182
- package/dist/{chunk-IGMPWJ2I.cjs → chunk-HG3ZASBH.cjs} +8 -8
- package/dist/chunk-HK5A54AV.cjs +280 -0
- package/dist/{chunk-2HOLOHVK.js → chunk-HSWWM6AM.js} +136 -15
- package/dist/chunk-HTU4W3GB.js +183 -0
- package/dist/{chunk-5CMYEM3R.cjs → chunk-HVCIB4SW.cjs} +3 -3
- package/dist/chunk-HXHE2KAO.js +385 -0
- package/dist/{chunk-NMQ47RCG.js → chunk-HZWU6IO3.js} +5 -2
- package/dist/{chunk-ZPD2AO3U.js → chunk-I2ZK3AOD.js} +2 -2
- package/dist/{chunk-3UT7R3XV.js → chunk-IEPLQ47J.js} +61 -5
- package/dist/{chunk-3PXKRVCW.js → chunk-JB3JCYBJ.js} +7 -2
- package/dist/chunk-JCUHCH37.cjs +247 -0
- package/dist/{chunk-VBOFPU5M.cjs → chunk-JM3ZTQUK.cjs} +13 -9
- package/dist/{chunk-WZV6UVPY.js → chunk-JMJRFSNJ.js} +1 -1
- package/dist/{chunk-QKP772OZ.js → chunk-JPFRI4L4.js} +756 -80
- package/dist/{chunk-MOJ7ADW4.cjs → chunk-JV5HVCHU.cjs} +2 -2
- package/dist/{chunk-LN7D3EJZ.js → chunk-KA2U6MY2.js} +4 -3
- package/dist/{chunk-E26KKI46.cjs → chunk-KASXKDF2.cjs} +3 -1
- package/dist/chunk-KJ26T7GM.cjs +367 -0
- package/dist/chunk-KM7R5YPS.cjs +385 -0
- package/dist/{chunk-5F6ZKSHO.js → chunk-KMP6Y3LJ.js} +1 -1
- package/dist/chunk-KWXGDSYT.js +184 -0
- package/dist/{chunk-LDJQ5QHG.cjs → chunk-L46OUKW5.cjs} +15 -15
- package/dist/{chunk-Z4LIPMPM.js → chunk-L6OH44HL.js} +13 -9
- package/dist/chunk-LANGD5CO.js +280 -0
- package/dist/{chunk-CBFH2J3O.js → chunk-LEZEWKPA.js} +150 -7
- package/dist/{chunk-FQAVGSPW.js → chunk-M5DK524Z.js} +2 -2
- package/dist/{chunk-7LWQCE4Y.cjs → chunk-M7B7RRBK.cjs} +72 -25
- package/dist/{chunk-BWF4VDYE.js → chunk-MANJ67D3.js} +2 -2
- package/dist/{chunk-PHJO5YAL.cjs → chunk-MGNXABSU.cjs} +9 -9
- package/dist/{chunk-62RTC3XX.js → chunk-MMKZSJUN.js} +1 -1
- package/dist/{chunk-3KLSNNRW.cjs → chunk-MQQH4XQH.cjs} +4 -4
- package/dist/{chunk-HS4USDND.cjs → chunk-MZN6JBRZ.cjs} +2 -2
- package/dist/{chunk-AT7OWLY5.js → chunk-NB6M6ESM.js} +1 -1
- package/dist/{chunk-TQ33WBY5.cjs → chunk-NHWHEW7M.cjs} +2 -1
- package/dist/chunk-NQZH5CR2.cjs +468 -0
- package/dist/{chunk-2CGE7ZV3.cjs → chunk-NV6LCD2I.cjs} +119 -28
- package/dist/chunk-NVATU4V6.cjs +44 -0
- package/dist/{chunk-DLP436GI.js → chunk-NZ3ZWLUW.js} +2 -2
- package/dist/{chunk-IEXKKKOF.cjs → chunk-NZ7GCK7Y.cjs} +23 -23
- package/dist/{chunk-MQESBFBZ.cjs → chunk-NZQFKXM3.cjs} +21 -20
- package/dist/{chunk-QQ7PANOP.js → chunk-O5GI6SR3.js} +1 -1
- package/dist/{chunk-J5ADZN6V.cjs → chunk-OCATAKXV.cjs} +20 -20
- package/dist/{chunk-JYKPWK5O.js → chunk-OIGYWOL6.js} +1 -1
- package/dist/{chunk-O6TQP7U7.cjs → chunk-ONVYXTUT.cjs} +3 -3
- package/dist/{chunk-MPULXVC4.cjs → chunk-OV3T5MUH.cjs} +11 -11
- package/dist/{chunk-DMRXF5DU.js → chunk-P4FUTSVK.js} +3 -3
- package/dist/{chunk-MXVIDIC6.cjs → chunk-P6SLT2F4.cjs} +2 -2
- package/dist/{chunk-BL2UC7HC.js → chunk-PGFLPURU.js} +1 -1
- package/dist/{chunk-CWINVFRI.cjs → chunk-PIXQ2AVM.cjs} +17 -17
- package/dist/{chunk-MO4KP6XS.cjs → chunk-PNIAIOMZ.cjs} +5 -5
- package/dist/{chunk-HQWQZML5.cjs → chunk-PQBYFEBL.cjs} +2 -2
- package/dist/{chunk-UGFVM77J.cjs → chunk-PSAH4ZQB.cjs} +2 -2
- package/dist/{chunk-Y3M2DABP.js → chunk-PTTZI4QZ.js} +4 -4
- package/dist/{chunk-Q6AC3PHY.cjs → chunk-PY73W5MQ.cjs} +4 -4
- package/dist/{chunk-B5CGDNMR.js → chunk-PZZMIYII.js} +3 -3
- package/dist/{chunk-VRMZO6TB.js → chunk-Q3BS6FPM.js} +7 -6
- package/dist/chunk-QBYGMMDD.js +517 -0
- package/dist/{chunk-3LJJG5YY.cjs → chunk-QLZOMZO5.cjs} +4 -3
- package/dist/{chunk-3S563FNF.cjs → chunk-QQ64HEHP.cjs} +31 -31
- package/dist/{chunk-TBOLJDUG.js → chunk-QRQF3556.js} +12 -7
- package/dist/{chunk-ZZ63NW7A.cjs → chunk-RBXBH6EB.cjs} +17 -17
- package/dist/{chunk-PUD76XQT.cjs → chunk-RFUKZIJF.cjs} +5 -5
- package/dist/chunk-RS2E32YB.js +71 -0
- package/dist/{chunk-7MU7LWF3.cjs → chunk-S5JNQIGL.cjs} +5 -5
- package/dist/{chunk-BFQDQRDE.js → chunk-S5QKRA2V.js} +2 -2
- package/dist/{chunk-IKUMVBCW.cjs → chunk-SD3NTC7D.cjs} +48 -4
- package/dist/{chunk-PQLKJCIE.js → chunk-SDLY4X3G.js} +2 -2
- package/dist/{chunk-VKBIE6I6.js → chunk-SFFEKZGC.js} +2 -2
- package/dist/{chunk-TWQDAUZU.js → chunk-SHRLFX6F.js} +3 -1
- package/dist/{chunk-UEIXJG45.js → chunk-SNDDZG5H.js} +88 -72
- package/dist/{chunk-AOKCI722.cjs → chunk-SOVR7S3T.cjs} +2 -2
- package/dist/{chunk-M4KNC5BQ.js → chunk-SPQ7QIQ6.js} +1 -1
- package/dist/{chunk-QCHIDZBA.js → chunk-SRMGWMQO.js} +1 -1
- package/dist/{chunk-ZHJ7JGME.cjs → chunk-SVVP4UUZ.cjs} +11 -11
- package/dist/{chunk-CHI52KFR.cjs → chunk-SY2P3Z5W.cjs} +150 -7
- package/dist/chunk-SZD45IDG.js +468 -0
- package/dist/{chunk-VGEV44V2.cjs → chunk-TE4SYTWR.cjs} +189 -28
- package/dist/{chunk-YV63VW4K.js → chunk-TR6NECEZ.js} +1 -1
- package/dist/{chunk-GZ6DV2UG.js → chunk-TYBPTKFT.js} +1 -1
- package/dist/{chunk-5VHP6HDQ.js → chunk-U2QUMKCB.js} +1 -1
- package/dist/{chunk-6HH236FV.cjs → chunk-U6PLSPMD.cjs} +2 -2
- package/dist/{chunk-EZJHLOWP.js → chunk-UWZ4G3SQ.js} +20 -7
- package/dist/{chunk-UXLW45ZE.cjs → chunk-V3SZLWEQ.cjs} +25 -90
- package/dist/chunk-V4HGZSKQ.cjs +183 -0
- package/dist/{chunk-2QL6MNXG.js → chunk-V5ELP2XE.js} +6 -6
- package/dist/{chunk-N6O3XUZ2.cjs → chunk-VKOXFT4L.cjs} +2 -2
- package/dist/{chunk-J2K57QM7.cjs → chunk-VLGGMQUN.cjs} +6 -6
- package/dist/{chunk-HSCUPEA4.cjs → chunk-VQHSYAPZ.cjs} +11 -11
- package/dist/{chunk-DEQVRSV5.cjs → chunk-W5QLA6WP.cjs} +8 -8
- package/dist/chunk-WJYFLQ7G.cjs +27 -0
- package/dist/{chunk-MX75JYIY.js → chunk-WNJXIACY.js} +3 -3
- package/dist/{chunk-OHWMWKJQ.js → chunk-WPE2XHVX.js} +1 -1
- package/dist/{chunk-O64I2GYI.js → chunk-X3TI5TJJ.js} +1 -1
- package/dist/{chunk-46C73ZKK.cjs → chunk-X5P6QQOB.cjs} +66 -10
- package/dist/{chunk-TJNBASFD.cjs → chunk-X7XMITIL.cjs} +8 -8
- package/dist/{chunk-E6GFD7VR.cjs → chunk-XNIMSVS6.cjs} +11 -11
- package/dist/{chunk-WGLBC5AY.cjs → chunk-XW3XCK4E.cjs} +4 -4
- package/dist/{chunk-OM24WXEE.js → chunk-XZVDYC5U.js} +1 -1
- package/dist/{chunk-UWFG2R2I.cjs → chunk-Y5BDE24P.cjs} +33 -9
- package/dist/{chunk-GGLKUENP.js → chunk-YC5OBZQU.js} +161 -7
- package/dist/{chunk-JJ4KA7HK.cjs → chunk-YISPVAXO.cjs} +371 -250
- package/dist/{chunk-SWCQM52V.js → chunk-YQDI753V.js} +4 -4
- package/dist/{chunk-KNTUI4TZ.cjs → chunk-YWH55BWK.cjs} +9 -6
- package/dist/{chunk-ACDQGA4Z.js → chunk-YXM6SA7P.js} +7 -72
- package/dist/{chunk-3GUEUCZK.js → chunk-ZNGRLCFQ.js} +2 -0
- package/dist/{chunk-LQBONA55.cjs → chunk-ZNYZB7XY.cjs} +2 -0
- package/dist/{chunk-XIVFAD2L.js → chunk-ZPLCAXJW.js} +172 -11
- package/dist/chunk-ZUYYHKQA.js +44 -0
- package/dist/clear-QJXU25IF.cjs +12 -0
- package/dist/{clear-OFLFQ3MR.js → clear-Y5TO3RZA.js} +2 -2
- package/dist/communityInstaller-LXMVKVAV.cjs +22 -0
- package/dist/{communityInstaller-COB2KTOW.js → communityInstaller-RVL4STPS.js} +6 -6
- package/dist/completion-JX4T2ONW.cjs +17 -0
- package/dist/{completion-PT4VM2H2.js → completion-SE3XYG74.js} +5 -5
- package/dist/config-3224PRW4.cjs +21 -0
- package/dist/{config-R4O7GBTY.js → config-7KPHKFTP.js} +4 -3
- package/dist/{constants-HVCHVQAF.js → constants-EJFAWJQI.js} +1 -1
- package/dist/constants-MCCGUU5F.cjs +21 -0
- package/dist/{export-3PK3VFCE.js → export-BJVIDZC4.js} +5 -5
- package/dist/export-KU4557HK.cjs +15 -0
- package/dist/feature-K3LG5IJP.cjs +14 -0
- package/dist/feature-V4JF5TNJ.js +14 -0
- package/dist/features-5OJTLKS7.js +23 -0
- package/dist/features-VCBJQXCX.cjs +23 -0
- package/dist/feedback-D4437VE4.js +18 -0
- package/dist/feedback-VZPEHGFY.cjs +18 -0
- package/dist/go-X4E6BCD6.js +12 -0
- package/dist/go-XREVFS5I.cjs +12 -0
- package/dist/goal-4M3J6JS2.cjs +16 -0
- package/dist/goal-EI66BV7W.js +16 -0
- package/dist/help-GGFS7WHY.cjs +12 -0
- package/dist/{help-X3OAZ3CY.js → help-MLIROWKM.js} +2 -2
- package/dist/{history-YKFPHBJN.js → history-GQJ6RZD6.js} +2 -2
- package/dist/history-J4LUIOSI.cjs +14 -0
- package/dist/hooks-FSRIUS6A.cjs +18 -0
- package/dist/{hooks-7TA4PIIB.js → hooks-PPFHCF7T.js} +6 -6
- package/dist/i18n-CI6VFXL5.cjs +33 -0
- package/dist/{i18n-2KBUU7XL.js → i18n-Q7UZJRPL.js} +1 -1
- package/dist/ide-BUSVE54P.js +15 -0
- package/dist/ide-YR27BPGM.cjs +15 -0
- package/dist/{import-4CHYLS4K.js → import-3VBKI6BN.js} +3 -3
- package/dist/{import-I7T4ZHYL.cjs → import-C7S6UJMW.cjs} +3 -3
- package/dist/import-DBK4OCDF.cjs +10 -0
- package/dist/{import-JWPYKXCZ.js → import-U47DXCA7.js} +2 -2
- package/dist/index.cjs +267 -170
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +165 -68
- package/dist/init-OXTYS72D.cjs +10 -0
- package/dist/{init-262MWZV4.js → init-Q2O4R42R.js} +2 -2
- package/dist/{inputPrompt-YGBHDUEP.js → inputPrompt-3CFZDUBH.js} +2 -2
- package/dist/inputPrompt-JMACL4EB.cjs +90 -0
- package/dist/language-EK3M6UBV.cjs +22 -0
- package/dist/language-Q3RUGGOW.js +22 -0
- package/dist/learn-3DSX7DYG.cjs +23 -0
- package/dist/learn-OPOH5L43.js +23 -0
- package/dist/login-GST7MWXJ.cjs +27 -0
- package/dist/login-Q7DZKAX4.js +27 -0
- package/dist/logout-2G7OUK7I.cjs +24 -0
- package/dist/logout-FNBBL2UI.js +24 -0
- package/dist/{mcp-5O6PUL4G.js → mcp-AH3MMUBU.js} +7 -6
- package/dist/mcp-DW7R63IB.cjs +21 -0
- package/dist/{mcp-install-6XWXLFVY.js → mcp-install-222PCKSW.js} +9 -8
- package/dist/{mcp-install-P6DHES7V.cjs → mcp-install-IA4ZS2SV.cjs} +14 -13
- package/dist/memory-6NX3DAIY.cjs +10 -0
- package/dist/{memory-Q54CESNM.js → memory-VB46T5H3.js} +2 -2
- package/dist/model-64NAELFS.cjs +10 -0
- package/dist/{model-6AJ77PJG.js → model-SJJG64AM.js} +2 -2
- package/dist/new-DU5SOOOY.cjs +12 -0
- package/dist/{new-ZXHEWC2S.js → new-ERZ5C6CN.js} +2 -2
- package/dist/onboarding-2U2BV2KE.cjs +36 -0
- package/dist/{onboarding-JYNMK6NI.js → onboarding-ZQXMPSMJ.js} +14 -13
- package/dist/{permissions-YHJMVA6L.js → permissions-7ACNFK7A.js} +2 -2
- package/dist/permissions-GSNNV7RJ.cjs +10 -0
- package/dist/{quit-GWTNHQSP.js → quit-WY6T267G.js} +2 -2
- package/dist/quit-XIRE2KRE.cjs +10 -0
- package/dist/{registry-34GL6BNJ.js → registry-4DXUDKJN.js} +1 -1
- package/dist/{registry-V24W7YK6.cjs → registry-UEO3ETZ7.cjs} +21 -21
- package/dist/resume-RQZ3WXBP.cjs +17 -0
- package/dist/resume-XSXZMDMD.js +17 -0
- package/dist/{rpc-S3DGW6KV.js → rpc-XH7QLN4H.js} +251 -107
- package/dist/{rpc-NPS3PU4O.cjs → rpc-YF54T7JU.cjs} +347 -203
- package/dist/search-VXXFGZWU.cjs +21 -0
- package/dist/search-YAWGX7P7.js +21 -0
- package/dist/{sessions-IYAXMK23.js → sessions-NJYHJOEL.js} +2 -2
- package/dist/sessions-OSG3UJEZ.cjs +10 -0
- package/dist/settings-SO2UIGWV.cjs +42 -0
- package/dist/{settings-55BNW6BF.js → settings-ZXUQH3DO.js} +17 -8
- package/dist/setup-KG7EGKF5.js +30 -0
- package/dist/setup-RSOPCQ57.cjs +30 -0
- package/dist/share-WFAGZ5PY.js +17 -0
- package/dist/share-ZU3SGACF.cjs +17 -0
- package/dist/skills-KBVAQAD2.cjs +29 -0
- package/dist/{skills-VWOMV3CR.js → skills-NBTNDVAY.js} +8 -8
- package/dist/{skills-MVIZNHT4.js → skills-OB6RDW7D.js} +9 -9
- package/dist/{skills-GGMZOVIE.cjs → skills-ZROBG3RZ.cjs} +10 -10
- package/dist/{skills-install-QBA5RCV6.js → skills-install-BHTIEMKH.js} +7 -7
- package/dist/{skills-install-VTAMCNNY.cjs → skills-install-ILX6QVEF.cjs} +15 -15
- package/dist/skills-new-B45VQ2PP.cjs +18 -0
- package/dist/skills-new-YMRP2HNO.js +18 -0
- package/dist/slashCommands-53VYIBJU.js +105 -0
- package/dist/slashCommands-BG2RGGZ6.cjs +105 -0
- package/dist/status-CQ2IUOVK.cjs +24 -0
- package/dist/status-E7IGNVPC.js +24 -0
- package/dist/{sync-7OKF6636.js → sync-7C25MOT2.js} +6 -5
- package/dist/{sync-7BILIQHP.js → sync-OCJN4ZSO.js} +3 -3
- package/dist/sync-XRP46IVG.cjs +40 -0
- package/dist/sync-ZMFVE7T4.cjs +22 -0
- package/dist/{teammate-J6PHGL23.cjs → teammate-D77B6QRT.cjs} +9 -8
- package/dist/{teammate-GZQSCIMS.js → teammate-EZCMHOIL.js} +8 -7
- package/dist/templates-ARG2VRWW.cjs +11 -0
- package/dist/templates-UGVZV3KJ.js +11 -0
- package/dist/theme-KKRDE6P7.cjs +22 -0
- package/dist/theme-XF7XIWBQ.js +22 -0
- package/dist/ui/questionModal.cjs +6 -6
- package/dist/ui/questionModal.js +5 -5
- package/dist/{undo-SZEHLX7X.js → undo-GNUTFXCW.js} +2 -2
- package/dist/undo-U4KN7QQM.cjs +10 -0
- package/dist/usage-QSTNSDAO.js +24 -0
- package/dist/usage-YDEMQBNQ.cjs +24 -0
- package/package.json +7 -2
- package/dist/AgentRegistry-EGBDIUAK.cjs +0 -10
- package/dist/CommunitySkillsCache-2OIUV227.cjs +0 -8
- package/dist/LearnAdvisor-46FG2XIP.js +0 -9
- package/dist/LearnAdvisor-XBRDNAGH.cjs +0 -9
- package/dist/MemoryManager-34L4YOKA.cjs +0 -8
- package/dist/NVIDIAProvider-MVTL62PR.cjs +0 -14
- package/dist/PermissionManager-5OOJ7FAT.cjs +0 -11
- package/dist/ProviderFactory-C3YPXTDD.cjs +0 -11
- package/dist/SessionManager-WAPTFMDO.cjs +0 -10
- package/dist/SkillsRegistry-7AJP74GJ.cjs +0 -9
- package/dist/SubAgent-FDIH3DXB.js +0 -11
- package/dist/SubAgent-HVL2ICVZ.cjs +0 -11
- package/dist/SyncApiClient-VMBOLQ6H.cjs +0 -11
- package/dist/about-FCAX37YC.cjs +0 -14
- package/dist/actionExecutor-4YBMR3YH.cjs +0 -24
- package/dist/add-dir-7SS6KSH5.cjs +0 -11
- package/dist/agent-DMRUFU4M.cjs +0 -116
- package/dist/agent-WCJEYQJT.js +0 -116
- package/dist/agents-CHROO3VU.cjs +0 -17
- package/dist/agents-UVDUL65K.js +0 -17
- package/dist/agents-new-AUBWSOXP.js +0 -17
- package/dist/agents-new-Y562WC47.cjs +0 -17
- package/dist/autoSkill-YOLLFTP2.cjs +0 -20
- package/dist/automode-DBLKTTKD.cjs +0 -10
- package/dist/chrome-ATC4OO5I.cjs +0 -20
- package/dist/chrome-O62WXV7F.js +0 -20
- package/dist/chrome-XHJLCO4M.cjs +0 -50
- package/dist/chunk-6XVVIY54.cjs +0 -256
- package/dist/chunk-AU6JAGZJ.cjs +0 -231
- package/dist/chunk-VDWJMWDF.js +0 -256
- package/dist/clear-33TWQ2ES.cjs +0 -12
- package/dist/communityInstaller-TWMGPSYM.cjs +0 -22
- package/dist/completion-IIZMHXYP.cjs +0 -17
- package/dist/config-KL6WU7R2.cjs +0 -20
- package/dist/constants-RLMJ5D5P.cjs +0 -21
- package/dist/export-WLGNWEMJ.cjs +0 -15
- package/dist/feedback-G635NCLJ.js +0 -18
- package/dist/feedback-LLMK3TZH.cjs +0 -18
- package/dist/help-BAXLP2M2.cjs +0 -12
- package/dist/history-6HOJSEMT.cjs +0 -14
- package/dist/hooks-XVFU67T2.cjs +0 -18
- package/dist/i18n-MUJMKTFM.cjs +0 -33
- package/dist/ide-CCQ33PGC.cjs +0 -15
- package/dist/ide-VLVFBZ5F.js +0 -15
- package/dist/import-J46F54JY.cjs +0 -10
- package/dist/init-EE5Y7RBL.cjs +0 -10
- package/dist/inputPrompt-IIFKCX5Q.cjs +0 -90
- package/dist/language-CVLPB7OV.js +0 -21
- package/dist/language-ZTWFHUSV.cjs +0 -21
- package/dist/learn-PON7I5QS.js +0 -23
- package/dist/learn-XLRSVNA3.cjs +0 -23
- package/dist/login-223QTGBG.cjs +0 -26
- package/dist/login-6IKTBUBY.js +0 -26
- package/dist/logout-RN2AG6SI.js +0 -23
- package/dist/logout-U3M4FFX7.cjs +0 -23
- package/dist/mcp-NUQ76QQB.cjs +0 -20
- package/dist/memory-CYMDQ2YC.cjs +0 -10
- package/dist/model-IDRCKDML.cjs +0 -10
- package/dist/new-7LEWOUF2.cjs +0 -12
- package/dist/onboarding-FXX7YHSJ.cjs +0 -35
- package/dist/permissions-YBNSANIA.cjs +0 -10
- package/dist/quit-B43SJ6E4.cjs +0 -10
- package/dist/resume-DYVOQN5L.cjs +0 -16
- package/dist/resume-M25UQKOX.js +0 -16
- package/dist/search-CPX4PWHP.js +0 -20
- package/dist/search-VUF3M4N3.cjs +0 -20
- package/dist/sessions-JODKER5D.cjs +0 -10
- package/dist/settings-BKTS7OMC.cjs +0 -33
- package/dist/setup-IRC5HQG2.js +0 -29
- package/dist/setup-MMQ7TWOP.cjs +0 -29
- package/dist/share-6JRQECAH.cjs +0 -17
- package/dist/share-YM5MJKMO.js +0 -17
- package/dist/skills-LWSOKOSH.cjs +0 -29
- package/dist/skills-new-GPL46YV2.js +0 -18
- package/dist/skills-new-L5BEZN5V.cjs +0 -18
- package/dist/slashCommands-FBPCIWM5.cjs +0 -95
- package/dist/slashCommands-FCWY5DXW.js +0 -95
- package/dist/status-3B5SDZPL.js +0 -17
- package/dist/status-TTGRF6NC.cjs +0 -17
- package/dist/sync-77CXVVTK.cjs +0 -21
- package/dist/sync-EH4K5U3N.cjs +0 -40
- package/dist/theme-64BYGJ57.cjs +0 -21
- package/dist/theme-YJE6HEON.js +0 -21
- package/dist/undo-PRTEGL2J.cjs +0 -10
|
@@ -16,28 +16,33 @@ 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
|
|
|
24
|
+
var _chunkHC2Q6A3Ecjs = require('./chunk-HC2Q6A3E.cjs');
|
|
27
25
|
|
|
28
26
|
|
|
27
|
+
var _chunkCO2AADYUcjs = require('./chunk-CO2AADYU.cjs');
|
|
29
28
|
|
|
30
29
|
|
|
31
|
-
var
|
|
30
|
+
var _chunkSD3NTC7Dcjs = require('./chunk-SD3NTC7D.cjs');
|
|
32
31
|
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
var _chunkCK4HAHVYcjs = require('./chunk-CK4HAHVY.cjs');
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
var _chunkX5P6QQOBcjs = require('./chunk-X5P6QQOB.cjs');
|
|
35
40
|
|
|
36
41
|
|
|
37
42
|
var _chunkYWTIXHU6cjs = require('./chunk-YWTIXHU6.cjs');
|
|
38
43
|
|
|
39
44
|
|
|
40
|
-
var
|
|
45
|
+
var _chunkKASXKDF2cjs = require('./chunk-KASXKDF2.cjs');
|
|
41
46
|
|
|
42
47
|
|
|
43
48
|
|
|
@@ -48,7 +53,7 @@ var _chunkWGNMOVMTcjs = require('./chunk-WGNMOVMT.cjs');
|
|
|
48
53
|
|
|
49
54
|
|
|
50
55
|
|
|
51
|
-
var
|
|
56
|
+
var _chunkSY2P3Z5Wcjs = require('./chunk-SY2P3Z5W.cjs');
|
|
52
57
|
|
|
53
58
|
// src/onboarding/projectAnalyzer.ts
|
|
54
59
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
@@ -753,6 +758,9 @@ var SetupWizard = class {
|
|
|
753
758
|
} else if (provider === "vertexai") {
|
|
754
759
|
const vertexaiResult = await this.promptVertexAIConfig();
|
|
755
760
|
if (!vertexaiResult) return this.cancelled();
|
|
761
|
+
} else if (provider === "bedrock") {
|
|
762
|
+
const bedrockResult = await this.promptBedrockConfig();
|
|
763
|
+
if (!bedrockResult) return this.cancelled();
|
|
756
764
|
} else {
|
|
757
765
|
if (provider === "llamacpp") {
|
|
758
766
|
const ready = await this.prepareLlamaCpp();
|
|
@@ -795,8 +803,8 @@ var SetupWizard = class {
|
|
|
795
803
|
this.state.skipped.push("preferences");
|
|
796
804
|
}
|
|
797
805
|
if (!_optionalChain([options, 'optionalAccess', _8 => _8.quickSetup])) {
|
|
798
|
-
const wantsAdvanced = await
|
|
799
|
-
title:
|
|
806
|
+
const wantsAdvanced = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
807
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.advanced.prompt"),
|
|
800
808
|
defaultValue: false
|
|
801
809
|
});
|
|
802
810
|
if (wantsAdvanced) {
|
|
@@ -841,7 +849,7 @@ var SetupWizard = class {
|
|
|
841
849
|
if (!this.existingConfig) return false;
|
|
842
850
|
const provider = this.existingConfig.provider;
|
|
843
851
|
if (!provider) return false;
|
|
844
|
-
const providerConfig =
|
|
852
|
+
const providerConfig = _chunkX5P6QQOBcjs.getProviderConfig.call(void 0, this.existingConfig, provider);
|
|
845
853
|
if (!providerConfig) return false;
|
|
846
854
|
if (provider === "openai") {
|
|
847
855
|
return this.isOpenAIConfigured(providerConfig);
|
|
@@ -850,6 +858,9 @@ var SetupWizard = class {
|
|
|
850
858
|
const vertexaiConfig = providerConfig;
|
|
851
859
|
return !!(vertexaiConfig.authToken && vertexaiConfig.authToken.length >= 10);
|
|
852
860
|
}
|
|
861
|
+
if (provider === "bedrock") {
|
|
862
|
+
return _chunkX5P6QQOBcjs.getProviderConfig.call(void 0, this.existingConfig, "bedrock") !== null;
|
|
863
|
+
}
|
|
853
864
|
if (this.requiresApiKey(provider)) {
|
|
854
865
|
const apiKey = providerConfig.apiKey;
|
|
855
866
|
if (!apiKey || apiKey === "replace-me" || apiKey.length < 10) {
|
|
@@ -863,7 +874,7 @@ var SetupWizard = class {
|
|
|
863
874
|
*/
|
|
864
875
|
async showWelcome() {
|
|
865
876
|
console.clear();
|
|
866
|
-
console.log(_chalk2.default.gray(
|
|
877
|
+
console.log(_chalk2.default.gray(_chunkSD3NTC7Dcjs.ASCII_FRIEND));
|
|
867
878
|
console.log();
|
|
868
879
|
console.log(_chalk2.default.cyan.bold(" Welcome to Autohand!"));
|
|
869
880
|
console.log(_chalk2.default.gray(" Your super fast self evolving coding agent"));
|
|
@@ -877,7 +888,7 @@ var SetupWizard = class {
|
|
|
877
888
|
*/
|
|
878
889
|
async promptProvider() {
|
|
879
890
|
this.state.currentStep = "provider";
|
|
880
|
-
const providers =
|
|
891
|
+
const providers = _chunkHC2Q6A3Ecjs.ProviderFactory.getProviderNames(this.existingConfig);
|
|
881
892
|
const options = providers.map((p) => ({
|
|
882
893
|
label: this.getProviderDisplayName(p),
|
|
883
894
|
value: p,
|
|
@@ -888,23 +899,27 @@ var SetupWizard = class {
|
|
|
888
899
|
if (hasValidExistingProvider) {
|
|
889
900
|
initialIndex = providers.indexOf(this.existingConfig.provider);
|
|
890
901
|
}
|
|
891
|
-
const result = await
|
|
892
|
-
title:
|
|
902
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
903
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.chooseProvider"),
|
|
893
904
|
options,
|
|
894
905
|
initialIndex: initialIndex >= 0 ? initialIndex : 0
|
|
895
906
|
});
|
|
896
907
|
if (!result) {
|
|
897
908
|
return null;
|
|
898
909
|
}
|
|
899
|
-
|
|
900
|
-
|
|
910
|
+
const selectedProvider = result.value;
|
|
911
|
+
if (!_chunkHC2Q6A3Ecjs.ProviderFactory.isValidProvider(selectedProvider, this.existingConfig)) {
|
|
912
|
+
return null;
|
|
913
|
+
}
|
|
914
|
+
this.state.provider = selectedProvider;
|
|
915
|
+
return selectedProvider;
|
|
901
916
|
}
|
|
902
917
|
/**
|
|
903
918
|
* Check if a specific provider is fully configured (has API key if required)
|
|
904
919
|
*/
|
|
905
920
|
isProviderConfigured(provider) {
|
|
906
921
|
if (!this.existingConfig) return false;
|
|
907
|
-
const providerConfig =
|
|
922
|
+
const providerConfig = _chunkX5P6QQOBcjs.getProviderConfig.call(void 0, this.existingConfig, provider);
|
|
908
923
|
if (!providerConfig) return false;
|
|
909
924
|
if (provider === "openai") {
|
|
910
925
|
return this.isOpenAIConfigured(providerConfig);
|
|
@@ -926,7 +941,7 @@ var SetupWizard = class {
|
|
|
926
941
|
this.state.currentStep = "apiKey";
|
|
927
942
|
const existingKey = this.getExistingApiKey(provider);
|
|
928
943
|
if (existingKey && existingKey !== "replace-me") {
|
|
929
|
-
const useExisting = await
|
|
944
|
+
const useExisting = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
930
945
|
title: `Use existing ${this.getProviderDisplayName(provider)} API key? (ends with ...${existingKey.slice(-4)})`,
|
|
931
946
|
defaultValue: true
|
|
932
947
|
});
|
|
@@ -935,13 +950,13 @@ var SetupWizard = class {
|
|
|
935
950
|
return existingKey;
|
|
936
951
|
}
|
|
937
952
|
}
|
|
938
|
-
console.log(_chalk2.default.gray("\n " +
|
|
939
|
-
const apiKey = await
|
|
940
|
-
title:
|
|
941
|
-
placeholder:
|
|
953
|
+
console.log(_chalk2.default.gray("\n " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.apiKeyUrl", { url: this.getApiKeyUrl(provider) }) + "\n"));
|
|
954
|
+
const apiKey = await _chunkCK4HAHVYcjs.showPassword.call(void 0, {
|
|
955
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.enterApiKey", { provider: this.getProviderDisplayName(provider) }),
|
|
956
|
+
placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder"),
|
|
942
957
|
validate: (val) => {
|
|
943
|
-
if (!_optionalChain([val, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()])) return
|
|
944
|
-
if (val.length < 10) return
|
|
958
|
+
if (!_optionalChain([val, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()])) return _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.apiKeyRequired");
|
|
959
|
+
if (val.length < 10) return _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.apiKeyTooShort");
|
|
945
960
|
return true;
|
|
946
961
|
}
|
|
947
962
|
});
|
|
@@ -952,18 +967,18 @@ var SetupWizard = class {
|
|
|
952
967
|
return this.state.apiKey;
|
|
953
968
|
}
|
|
954
969
|
async promptOpenAIAuthMode() {
|
|
955
|
-
const result = await
|
|
956
|
-
title:
|
|
970
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
971
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.chooseTitle"),
|
|
957
972
|
options: [
|
|
958
973
|
{
|
|
959
|
-
label:
|
|
974
|
+
label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.apiKeyLabel"),
|
|
960
975
|
value: "api-key",
|
|
961
|
-
description:
|
|
976
|
+
description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.apiKeyDescription")
|
|
962
977
|
},
|
|
963
978
|
{
|
|
964
|
-
label:
|
|
979
|
+
label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.chatgptLabel"),
|
|
965
980
|
value: "chatgpt",
|
|
966
|
-
description:
|
|
981
|
+
description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.chatgptDescription")
|
|
967
982
|
}
|
|
968
983
|
],
|
|
969
984
|
initialIndex: this.getExistingOpenAIAuthMode() === "chatgpt" ? 1 : 0
|
|
@@ -972,20 +987,20 @@ var SetupWizard = class {
|
|
|
972
987
|
}
|
|
973
988
|
async promptOpenAIChatGPTAuth() {
|
|
974
989
|
const existing = this.getExistingOpenAIChatGPTAuth();
|
|
975
|
-
if (existing && !
|
|
990
|
+
if (existing && !_chunkHC2Q6A3Ecjs.isChatGPTAuthExpired.call(void 0, existing)) {
|
|
976
991
|
this.state.openAIChatGPTAuth = existing;
|
|
977
992
|
return existing;
|
|
978
993
|
}
|
|
979
994
|
try {
|
|
980
995
|
console.log(_chalk2.default.gray(`
|
|
981
|
-
${
|
|
982
|
-
const auth = await
|
|
996
|
+
${_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.starting")}`));
|
|
997
|
+
const auth = await _chunkHC2Q6A3Ecjs.authenticateOpenAIChatGPT.call(void 0, {
|
|
983
998
|
onPrompt: ({ authorizationUrl, browserOpened }) => {
|
|
984
999
|
console.log(_chalk2.default.gray(`
|
|
985
|
-
${
|
|
1000
|
+
${_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.browserPrompt")}`));
|
|
986
1001
|
console.log(_chalk2.default.white(` ${authorizationUrl}`));
|
|
987
|
-
console.log(_chalk2.default.gray(` ${browserOpened ?
|
|
988
|
-
console.log(_chalk2.default.gray(` ${
|
|
1002
|
+
console.log(_chalk2.default.gray(` ${browserOpened ? _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.browserOpened") : _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.openManually")}`));
|
|
1003
|
+
console.log(_chalk2.default.gray(` ${_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.waiting")}
|
|
989
1004
|
`));
|
|
990
1005
|
}
|
|
991
1006
|
});
|
|
@@ -994,7 +1009,7 @@ var SetupWizard = class {
|
|
|
994
1009
|
} catch (error) {
|
|
995
1010
|
const message = error instanceof Error ? error.message : String(error);
|
|
996
1011
|
console.log(_chalk2.default.red(`
|
|
997
|
-
${
|
|
1012
|
+
${_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.openaiAuth.failed", { message })}`));
|
|
998
1013
|
throw error;
|
|
999
1014
|
}
|
|
1000
1015
|
}
|
|
@@ -1009,13 +1024,13 @@ var SetupWizard = class {
|
|
|
1009
1024
|
return this.state.model;
|
|
1010
1025
|
}
|
|
1011
1026
|
if (provider === "zai") {
|
|
1012
|
-
const options =
|
|
1027
|
+
const options = _chunkHC2Q6A3Ecjs.ZAI_MODELS.map((modelName) => ({
|
|
1013
1028
|
label: modelName,
|
|
1014
1029
|
value: modelName
|
|
1015
1030
|
}));
|
|
1016
|
-
const defaultIndex = Math.max(0,
|
|
1017
|
-
const result = await
|
|
1018
|
-
title:
|
|
1031
|
+
const defaultIndex = Math.max(0, _chunkHC2Q6A3Ecjs.ZAI_MODELS.indexOf(defaultModel));
|
|
1032
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1033
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1019
1034
|
options,
|
|
1020
1035
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1021
1036
|
});
|
|
@@ -1026,13 +1041,13 @@ var SetupWizard = class {
|
|
|
1026
1041
|
return this.state.model;
|
|
1027
1042
|
}
|
|
1028
1043
|
if (provider === "cerebras") {
|
|
1029
|
-
const options =
|
|
1044
|
+
const options = _chunkHC2Q6A3Ecjs.CEREBRAS_MODELS.map((modelName) => ({
|
|
1030
1045
|
label: modelName,
|
|
1031
1046
|
value: modelName
|
|
1032
1047
|
}));
|
|
1033
|
-
const defaultIndex = Math.max(0,
|
|
1034
|
-
const result = await
|
|
1035
|
-
title:
|
|
1048
|
+
const defaultIndex = Math.max(0, _chunkHC2Q6A3Ecjs.CEREBRAS_MODELS.indexOf(defaultModel));
|
|
1049
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1050
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1036
1051
|
options,
|
|
1037
1052
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1038
1053
|
});
|
|
@@ -1043,13 +1058,13 @@ var SetupWizard = class {
|
|
|
1043
1058
|
return this.state.model;
|
|
1044
1059
|
}
|
|
1045
1060
|
if (provider === "deepseek") {
|
|
1046
|
-
const options =
|
|
1061
|
+
const options = _chunkHC2Q6A3Ecjs.DEEPSEEK_MODELS.map((modelName) => ({
|
|
1047
1062
|
label: modelName,
|
|
1048
1063
|
value: modelName
|
|
1049
1064
|
}));
|
|
1050
|
-
const defaultIndex = Math.max(0,
|
|
1051
|
-
const result = await
|
|
1052
|
-
title:
|
|
1065
|
+
const defaultIndex = Math.max(0, _chunkHC2Q6A3Ecjs.DEEPSEEK_MODELS.indexOf(defaultModel));
|
|
1066
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1067
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1053
1068
|
options,
|
|
1054
1069
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1055
1070
|
});
|
|
@@ -1059,15 +1074,30 @@ var SetupWizard = class {
|
|
|
1059
1074
|
this.state.model = result.value;
|
|
1060
1075
|
return this.state.model;
|
|
1061
1076
|
}
|
|
1077
|
+
if (provider === "bedrock") {
|
|
1078
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1079
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1080
|
+
options: _chunkHC2Q6A3Ecjs.BEDROCK_MODELS.map((modelName) => ({
|
|
1081
|
+
label: modelName,
|
|
1082
|
+
value: modelName
|
|
1083
|
+
})),
|
|
1084
|
+
allowCustomInput: true
|
|
1085
|
+
});
|
|
1086
|
+
if (!result) {
|
|
1087
|
+
return null;
|
|
1088
|
+
}
|
|
1089
|
+
this.state.model = result.value;
|
|
1090
|
+
return this.state.model;
|
|
1091
|
+
}
|
|
1062
1092
|
if (provider === "nvidia") {
|
|
1063
|
-
const { NVIDIA_MODELS } = await Promise.resolve().then(() => _interopRequireWildcard(require("./NVIDIAProvider-
|
|
1093
|
+
const { NVIDIA_MODELS } = await Promise.resolve().then(() => _interopRequireWildcard(require("./NVIDIAProvider-C3FWQOBZ.cjs")));
|
|
1064
1094
|
const options = [...NVIDIA_MODELS].map((modelName) => ({
|
|
1065
1095
|
label: modelName,
|
|
1066
1096
|
value: modelName
|
|
1067
1097
|
}));
|
|
1068
1098
|
const defaultIndex = Math.max(0, [...NVIDIA_MODELS].indexOf(defaultModel));
|
|
1069
|
-
const result = await
|
|
1070
|
-
title:
|
|
1099
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1100
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1071
1101
|
options,
|
|
1072
1102
|
initialIndex: defaultIndex >= 0 ? defaultIndex : 0
|
|
1073
1103
|
});
|
|
@@ -1077,8 +1107,8 @@ var SetupWizard = class {
|
|
|
1077
1107
|
this.state.model = result.value;
|
|
1078
1108
|
return this.state.model;
|
|
1079
1109
|
}
|
|
1080
|
-
const model = await
|
|
1081
|
-
title:
|
|
1110
|
+
const model = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1111
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.enterModelId"),
|
|
1082
1112
|
defaultValue: defaultModel,
|
|
1083
1113
|
validate: (val) => {
|
|
1084
1114
|
return _optionalChain([val, 'optionalAccess', _16 => _16.trim, 'call', _17 => _17()]) ? true : "Model is required";
|
|
@@ -1101,8 +1131,8 @@ var SetupWizard = class {
|
|
|
1101
1131
|
{ label: "high", value: "high", description: "Thorough reasoning (recommended)" },
|
|
1102
1132
|
{ label: "xhigh", value: "xhigh", description: "Maximum reasoning depth" }
|
|
1103
1133
|
];
|
|
1104
|
-
const result = await
|
|
1105
|
-
title:
|
|
1134
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1135
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectReasoningEffort"),
|
|
1106
1136
|
options,
|
|
1107
1137
|
initialIndex: 3
|
|
1108
1138
|
// default to 'high'
|
|
@@ -1134,7 +1164,7 @@ var SetupWizard = class {
|
|
|
1134
1164
|
console.log(_chalk2.default.gray(" - API keys or credentials"));
|
|
1135
1165
|
console.log(_chalk2.default.gray(" - Personal information"));
|
|
1136
1166
|
console.log();
|
|
1137
|
-
const telemetryEnabled = await
|
|
1167
|
+
const telemetryEnabled = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1138
1168
|
title: "Share anonymous usage data to help improve Autohand?",
|
|
1139
1169
|
defaultValue: true
|
|
1140
1170
|
});
|
|
@@ -1167,7 +1197,7 @@ var SetupWizard = class {
|
|
|
1167
1197
|
console.log(_chalk2.default.gray(" - API keys or credentials"));
|
|
1168
1198
|
console.log(_chalk2.default.gray(" - Personal information"));
|
|
1169
1199
|
console.log();
|
|
1170
|
-
const autoReportEnabled = await
|
|
1200
|
+
const autoReportEnabled = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1171
1201
|
title: "Automatically report errors to help us fix bugs faster?",
|
|
1172
1202
|
defaultValue: true
|
|
1173
1203
|
});
|
|
@@ -1183,7 +1213,7 @@ var SetupWizard = class {
|
|
|
1183
1213
|
*/
|
|
1184
1214
|
async promptPreferences() {
|
|
1185
1215
|
this.state.currentStep = "preferences";
|
|
1186
|
-
const configurePrefs = await
|
|
1216
|
+
const configurePrefs = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1187
1217
|
title: "Would you like to configure additional preferences? (theme, auto-confirm)",
|
|
1188
1218
|
defaultValue: false
|
|
1189
1219
|
});
|
|
@@ -1208,16 +1238,16 @@ var SetupWizard = class {
|
|
|
1208
1238
|
value: themeName,
|
|
1209
1239
|
description: themeDescriptions[themeName]
|
|
1210
1240
|
}));
|
|
1211
|
-
const themeResult = await
|
|
1241
|
+
const themeResult = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1212
1242
|
title: "Select a theme",
|
|
1213
1243
|
options: themeOptions
|
|
1214
1244
|
});
|
|
1215
1245
|
const theme = _optionalChain([themeResult, 'optionalAccess', _18 => _18.value]) || "dark";
|
|
1216
|
-
const autoConfirm = await
|
|
1246
|
+
const autoConfirm = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1217
1247
|
title: "Auto-confirm non-destructive actions?",
|
|
1218
1248
|
defaultValue: false
|
|
1219
1249
|
});
|
|
1220
|
-
const checkForUpdates = await
|
|
1250
|
+
const checkForUpdates = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1221
1251
|
title: "Check for updates on startup?",
|
|
1222
1252
|
defaultValue: true
|
|
1223
1253
|
});
|
|
@@ -1231,7 +1261,7 @@ var SetupWizard = class {
|
|
|
1231
1261
|
const agentsPath = _path.join.call(void 0, this.workspaceRoot, "AGENTS.md");
|
|
1232
1262
|
const exists = await _fsextra2.default.pathExists(agentsPath);
|
|
1233
1263
|
if (exists) {
|
|
1234
|
-
const overwrite = await
|
|
1264
|
+
const overwrite = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1235
1265
|
title: "AGENTS.md already exists. Would you like to regenerate it?",
|
|
1236
1266
|
defaultValue: false
|
|
1237
1267
|
});
|
|
@@ -1249,7 +1279,7 @@ var SetupWizard = class {
|
|
|
1249
1279
|
console.log(_chalk2.default.gray(" AGENTS.md helps Autohand understand your project better."));
|
|
1250
1280
|
console.log(_chalk2.default.gray(" It contains instructions specific to your codebase."));
|
|
1251
1281
|
console.log();
|
|
1252
|
-
const createAgents = await
|
|
1282
|
+
const createAgents = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1253
1283
|
title: "Generate AGENTS.md based on your project?",
|
|
1254
1284
|
defaultValue: true
|
|
1255
1285
|
});
|
|
@@ -1296,51 +1326,51 @@ var SetupWizard = class {
|
|
|
1296
1326
|
this.state.currentStep = "registration";
|
|
1297
1327
|
console.log();
|
|
1298
1328
|
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(" " +
|
|
1329
|
+
console.log(_chalk2.default.white.bold(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.title")));
|
|
1300
1330
|
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
1331
|
console.log();
|
|
1302
|
-
console.log(_chalk2.default.gray(" " +
|
|
1332
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.descriptionMandatory")));
|
|
1303
1333
|
console.log();
|
|
1304
|
-
const authClient =
|
|
1305
|
-
console.log(_chalk2.default.gray(" " +
|
|
1334
|
+
const authClient = _chunkCO2AADYUcjs.getAuthClient.call(void 0, );
|
|
1335
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.initiating")));
|
|
1306
1336
|
const initResult = await authClient.initiateDeviceAuth();
|
|
1307
1337
|
if (!initResult.success || !initResult.deviceCode || !initResult.userCode) {
|
|
1308
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1309
|
-
const retry2 = await
|
|
1310
|
-
title:
|
|
1338
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.failed", { error: initResult.error || "Unknown error" })));
|
|
1339
|
+
const retry2 = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1340
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.retryPrompt"),
|
|
1311
1341
|
defaultValue: true
|
|
1312
1342
|
});
|
|
1313
1343
|
if (retry2) {
|
|
1314
1344
|
return this.promptRegistration();
|
|
1315
1345
|
}
|
|
1316
1346
|
this.state.skipped.push("registration");
|
|
1317
|
-
console.log(_chalk2.default.gray(" " +
|
|
1347
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.tryLater")));
|
|
1318
1348
|
return;
|
|
1319
1349
|
}
|
|
1320
|
-
const authUrl = initResult.verificationUriComplete || `${
|
|
1350
|
+
const authUrl = initResult.verificationUriComplete || `${_chunkKASXKDF2cjs.AUTH_CONFIG.authorizationUrl}?code=${initResult.userCode}`;
|
|
1321
1351
|
console.log();
|
|
1322
|
-
console.log(_chalk2.default.white(" " +
|
|
1352
|
+
console.log(_chalk2.default.white(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.visit")));
|
|
1323
1353
|
console.log(_chalk2.default.cyan(" " + authUrl));
|
|
1324
1354
|
console.log();
|
|
1325
|
-
console.log(_chalk2.default.gray(" " +
|
|
1355
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.code")));
|
|
1326
1356
|
console.log(_chalk2.default.bold.yellow(` ${initResult.userCode}`));
|
|
1327
1357
|
console.log();
|
|
1328
1358
|
try {
|
|
1329
1359
|
const open = await Promise.resolve().then(() => _interopRequireWildcard(require("open"))).then((m) => m.default).catch(() => null);
|
|
1330
1360
|
if (open) {
|
|
1331
1361
|
await open(authUrl);
|
|
1332
|
-
console.log(_chalk2.default.gray(" " +
|
|
1362
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.browserOpened")));
|
|
1333
1363
|
} else {
|
|
1334
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1364
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.openManually")));
|
|
1335
1365
|
}
|
|
1336
1366
|
} catch (e12) {
|
|
1337
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1367
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.openManually")));
|
|
1338
1368
|
}
|
|
1339
1369
|
console.log();
|
|
1340
|
-
console.log(_chalk2.default.gray(" " +
|
|
1370
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.waiting")));
|
|
1341
1371
|
const startTime = Date.now();
|
|
1342
1372
|
const timeout = 3 * 60 * 1e3;
|
|
1343
|
-
const pollInterval = initResult.interval ? initResult.interval * 1e3 :
|
|
1373
|
+
const pollInterval = initResult.interval ? initResult.interval * 1e3 : _chunkKASXKDF2cjs.AUTH_CONFIG.pollInterval;
|
|
1344
1374
|
let dots = 0;
|
|
1345
1375
|
const maxDots = 3;
|
|
1346
1376
|
while (Date.now() - startTime < timeout) {
|
|
@@ -1353,35 +1383,35 @@ var SetupWizard = class {
|
|
|
1353
1383
|
this.state.authToken = pollResult.token;
|
|
1354
1384
|
this.state.authUser = pollResult.user;
|
|
1355
1385
|
console.log();
|
|
1356
|
-
console.log(_chalk2.default.green(" " +
|
|
1386
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.success", { name: pollResult.user.name || pollResult.user.email })));
|
|
1357
1387
|
return;
|
|
1358
1388
|
}
|
|
1359
1389
|
if (pollResult.status === "expired") {
|
|
1360
1390
|
process.stdout.write("\r" + " ".repeat(20) + "\r");
|
|
1361
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1362
|
-
const retry2 = await
|
|
1363
|
-
title:
|
|
1391
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.expired")));
|
|
1392
|
+
const retry2 = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1393
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.retryPrompt"),
|
|
1364
1394
|
defaultValue: true
|
|
1365
1395
|
});
|
|
1366
1396
|
if (retry2) {
|
|
1367
1397
|
return this.promptRegistration();
|
|
1368
1398
|
}
|
|
1369
1399
|
this.state.skipped.push("registration");
|
|
1370
|
-
console.log(_chalk2.default.gray(" " +
|
|
1400
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.tryLater")));
|
|
1371
1401
|
return;
|
|
1372
1402
|
}
|
|
1373
1403
|
}
|
|
1374
1404
|
process.stdout.write("\r" + " ".repeat(20) + "\r");
|
|
1375
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1376
|
-
const retry = await
|
|
1377
|
-
title:
|
|
1405
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.timeout")));
|
|
1406
|
+
const retry = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1407
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.retryPrompt"),
|
|
1378
1408
|
defaultValue: true
|
|
1379
1409
|
});
|
|
1380
1410
|
if (retry) {
|
|
1381
1411
|
return this.promptRegistration();
|
|
1382
1412
|
}
|
|
1383
1413
|
this.state.skipped.push("registration");
|
|
1384
|
-
console.log(_chalk2.default.gray(" " +
|
|
1414
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.registration.tryLater")));
|
|
1385
1415
|
}
|
|
1386
1416
|
sleep(ms) {
|
|
1387
1417
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -1416,6 +1446,8 @@ var SetupWizard = class {
|
|
|
1416
1446
|
};
|
|
1417
1447
|
} else if (this.state.provider === "vertexai" && this.state.vertexaiConfig) {
|
|
1418
1448
|
config.vertexai = this.state.vertexaiConfig;
|
|
1449
|
+
} else if (this.state.provider === "bedrock" && this.state.bedrockConfig) {
|
|
1450
|
+
config.bedrock = this.state.bedrockConfig;
|
|
1419
1451
|
} else if (this.requiresApiKey(this.state.provider)) {
|
|
1420
1452
|
config[this.state.provider] = {
|
|
1421
1453
|
apiKey: this.state.apiKey,
|
|
@@ -1525,21 +1557,21 @@ var SetupWizard = class {
|
|
|
1525
1557
|
*/
|
|
1526
1558
|
async promptAzureConfig() {
|
|
1527
1559
|
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(" " +
|
|
1560
|
+
console.log(_chalk2.default.cyan("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.title")));
|
|
1561
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.getStarted") + "\n"));
|
|
1562
|
+
console.log(_chalk2.default.yellow(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.setupSteps.title")));
|
|
1563
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step1")));
|
|
1564
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step2")));
|
|
1565
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step3")));
|
|
1566
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.setupSteps.step4")));
|
|
1535
1567
|
console.log();
|
|
1536
1568
|
const authChoices = [
|
|
1537
|
-
{ label:
|
|
1538
|
-
{ label:
|
|
1539
|
-
{ label:
|
|
1569
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.authApiKey"), value: "api-key" },
|
|
1570
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.authEntraId"), value: "entra-id" },
|
|
1571
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.authManagedIdentity"), value: "managed-identity" }
|
|
1540
1572
|
];
|
|
1541
|
-
const authResult = await
|
|
1542
|
-
title:
|
|
1573
|
+
const authResult = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1574
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.selectAuthMethod"),
|
|
1543
1575
|
options: authChoices
|
|
1544
1576
|
});
|
|
1545
1577
|
if (!authResult) return false;
|
|
@@ -1549,27 +1581,27 @@ var SetupWizard = class {
|
|
|
1549
1581
|
let clientId;
|
|
1550
1582
|
let clientSecret;
|
|
1551
1583
|
if (authMethod === "api-key") {
|
|
1552
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1553
|
-
apiKey = await _asyncNullishCoalesce(await
|
|
1584
|
+
console.log(_chalk2.default.gray("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.apiKeyLocation") + "\n"));
|
|
1585
|
+
apiKey = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showPassword.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterAzureApiKey"), placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder") }), async () => ( void 0));
|
|
1554
1586
|
if (!apiKey) return false;
|
|
1555
1587
|
} else if (authMethod === "entra-id") {
|
|
1556
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1557
|
-
console.log(_chalk2.default.gray(
|
|
1558
|
-
tenantId = await _asyncNullishCoalesce(await
|
|
1588
|
+
console.log(_chalk2.default.gray("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.entraIdDescription")));
|
|
1589
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.entraIdDocs") + "\n"));
|
|
1590
|
+
tenantId = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showInput.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterTenantId") }), async () => ( void 0));
|
|
1559
1591
|
if (!tenantId) return false;
|
|
1560
|
-
clientId = await _asyncNullishCoalesce(await
|
|
1592
|
+
clientId = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showInput.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterClientId") }), async () => ( void 0));
|
|
1561
1593
|
if (!clientId) return false;
|
|
1562
|
-
clientSecret = await _asyncNullishCoalesce(await
|
|
1594
|
+
clientSecret = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showPassword.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterClientSecret") }), async () => ( void 0));
|
|
1563
1595
|
if (!clientSecret) return false;
|
|
1564
1596
|
} else {
|
|
1565
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1566
|
-
console.log(_chalk2.default.gray(
|
|
1597
|
+
console.log(_chalk2.default.gray("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.managedIdentityDescription")));
|
|
1598
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.managedIdentityDocs") + "\n"));
|
|
1567
1599
|
}
|
|
1568
|
-
const endpointChoice = await
|
|
1569
|
-
title:
|
|
1600
|
+
const endpointChoice = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1601
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.endpointChoice"),
|
|
1570
1602
|
options: [
|
|
1571
|
-
{ label:
|
|
1572
|
-
{ label:
|
|
1603
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.endpointStructured"), value: "structured" },
|
|
1604
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.endpointUrl"), value: "url" }
|
|
1573
1605
|
]
|
|
1574
1606
|
});
|
|
1575
1607
|
if (!endpointChoice) return false;
|
|
@@ -1577,28 +1609,28 @@ var SetupWizard = class {
|
|
|
1577
1609
|
let deploymentName;
|
|
1578
1610
|
let baseUrl;
|
|
1579
1611
|
if (endpointChoice.value === "structured") {
|
|
1580
|
-
console.log(_chalk2.default.gray(
|
|
1581
|
-
console.log(_chalk2.default.gray(
|
|
1582
|
-
resourceName = await _asyncNullishCoalesce(await
|
|
1612
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.endpointUrlHint")));
|
|
1613
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.endpointUrlExample") + "\n"));
|
|
1614
|
+
resourceName = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showInput.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterEndpointOrResource") }), async () => ( void 0));
|
|
1583
1615
|
if (!resourceName) return false;
|
|
1584
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1585
|
-
console.log(_chalk2.default.gray(
|
|
1586
|
-
deploymentName = await _asyncNullishCoalesce(await
|
|
1616
|
+
console.log(_chalk2.default.gray("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.deploymentHint")));
|
|
1617
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.deploymentNotUrl") + "\n"));
|
|
1618
|
+
deploymentName = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showInput.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterDeploymentName"), defaultValue: "gpt-5.3-codex" }), async () => ( void 0));
|
|
1587
1619
|
if (!deploymentName) return false;
|
|
1588
1620
|
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(" " +
|
|
1621
|
+
console.log(_chalk2.default.red("\n\u2717 " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.deploymentUrlError")));
|
|
1622
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.deploymentUrlErrorHint")));
|
|
1623
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.deploymentUrlErrorLocation") + "\n"));
|
|
1592
1624
|
return false;
|
|
1593
1625
|
}
|
|
1594
1626
|
} else {
|
|
1595
|
-
baseUrl = await _asyncNullishCoalesce(await
|
|
1596
|
-
title:
|
|
1627
|
+
baseUrl = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1628
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.enterFullEndpointUrl"),
|
|
1597
1629
|
defaultValue: "https://your-resource.openai.azure.com/openai/deployments/gpt-5.3-codex"
|
|
1598
1630
|
}), async () => ( void 0));
|
|
1599
1631
|
if (!baseUrl) return false;
|
|
1600
1632
|
}
|
|
1601
|
-
const apiVersion = await _asyncNullishCoalesce(await
|
|
1633
|
+
const apiVersion = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showInput.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.apiVersion"), defaultValue: "2024-10-21" }), async () => ( void 0));
|
|
1602
1634
|
if (!apiVersion) return false;
|
|
1603
1635
|
const model = _nullishCoalesce(deploymentName, () => ( "gpt-5.3-codex"));
|
|
1604
1636
|
const azureConfig = {
|
|
@@ -1615,9 +1647,9 @@ var SetupWizard = class {
|
|
|
1615
1647
|
};
|
|
1616
1648
|
this.state.azureConfig = azureConfig;
|
|
1617
1649
|
this.state.model = model;
|
|
1618
|
-
console.log(_chalk2.default.green("\n\u2713 " +
|
|
1619
|
-
console.log(_chalk2.default.gray(" " +
|
|
1620
|
-
console.log(_chalk2.default.gray(" " +
|
|
1650
|
+
console.log(_chalk2.default.green("\n\u2713 " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.configuredSuccessfully", { provider: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.azure") })));
|
|
1651
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.azure.authLabel", { method: authMethod })));
|
|
1652
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.modelLabel", { model })));
|
|
1621
1653
|
console.log();
|
|
1622
1654
|
return true;
|
|
1623
1655
|
}
|
|
@@ -1628,11 +1660,11 @@ var SetupWizard = class {
|
|
|
1628
1660
|
*/
|
|
1629
1661
|
async promptVertexAIConfig() {
|
|
1630
1662
|
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
|
|
1663
|
+
console.log(_chalk2.default.cyan("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.title")));
|
|
1664
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.getStarted") + "\n"));
|
|
1665
|
+
const gcloudInstalled = await _chunkHC2Q6A3Ecjs.isGcloudInstalled.call(void 0, );
|
|
1666
|
+
const gcloudAccount = gcloudInstalled ? await _chunkHC2Q6A3Ecjs.getGcloudAccount.call(void 0, ) : null;
|
|
1667
|
+
const gcloudProject = gcloudInstalled ? await _chunkHC2Q6A3Ecjs.getGcloudProject.call(void 0, ) : null;
|
|
1636
1668
|
const existingConfig = _optionalChain([this, 'access', _19 => _19.existingConfig, 'optionalAccess', _20 => _20.vertexai]);
|
|
1637
1669
|
const existingProjectId = _optionalChain([existingConfig, 'optionalAccess', _21 => _21.projectId]);
|
|
1638
1670
|
const existingEndpoint = _optionalChain([existingConfig, 'optionalAccess', _22 => _22.endpoint]);
|
|
@@ -1652,19 +1684,19 @@ var SetupWizard = class {
|
|
|
1652
1684
|
console.log(_chalk2.default.gray(" https://cloud.google.com/sdk/docs/install"));
|
|
1653
1685
|
console.log();
|
|
1654
1686
|
}
|
|
1655
|
-
const endpoint = await
|
|
1656
|
-
title:
|
|
1687
|
+
const endpoint = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1688
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.enterEndpoint"),
|
|
1657
1689
|
defaultValue: existingEndpoint || "aiplatform.googleapis.com"
|
|
1658
1690
|
});
|
|
1659
1691
|
if (!endpoint) return false;
|
|
1660
|
-
const region = await
|
|
1661
|
-
title:
|
|
1692
|
+
const region = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1693
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.enterRegion"),
|
|
1662
1694
|
defaultValue: existingRegion || "global"
|
|
1663
1695
|
});
|
|
1664
1696
|
if (!region) return false;
|
|
1665
1697
|
const defaultProjectId = existingProjectId || gcloudProject || "";
|
|
1666
|
-
const projectId = await
|
|
1667
|
-
title:
|
|
1698
|
+
const projectId = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1699
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.enterProjectId"),
|
|
1668
1700
|
defaultValue: defaultProjectId,
|
|
1669
1701
|
placeholder: "YOUR_PROJECT_ID"
|
|
1670
1702
|
});
|
|
@@ -1672,7 +1704,7 @@ var SetupWizard = class {
|
|
|
1672
1704
|
let authToken;
|
|
1673
1705
|
if (gcloudInstalled) {
|
|
1674
1706
|
console.log(_chalk2.default.gray("\n Fetching access token from gcloud..."));
|
|
1675
|
-
const tokenResult = await
|
|
1707
|
+
const tokenResult = await _chunkHC2Q6A3Ecjs.getGcloudAccessToken.call(void 0, );
|
|
1676
1708
|
if (tokenResult.token) {
|
|
1677
1709
|
console.log(_chalk2.default.green(" \u2713 Access token obtained (valid for ~25 minutes)"));
|
|
1678
1710
|
console.log(_chalk2.default.gray(" Tokens are automatically refreshed when using gcloud."));
|
|
@@ -1681,30 +1713,30 @@ var SetupWizard = class {
|
|
|
1681
1713
|
console.log(_chalk2.default.yellow(` \u26A0 ${tokenResult.error}`));
|
|
1682
1714
|
console.log(_chalk2.default.gray(" Please enter token manually or run: gcloud auth login"));
|
|
1683
1715
|
console.log();
|
|
1684
|
-
const manualToken = await
|
|
1685
|
-
title:
|
|
1686
|
-
placeholder:
|
|
1716
|
+
const manualToken = await _chunkCK4HAHVYcjs.showPassword.call(void 0, {
|
|
1717
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.enterAuthToken"),
|
|
1718
|
+
placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder")
|
|
1687
1719
|
});
|
|
1688
1720
|
if (!manualToken) return false;
|
|
1689
1721
|
authToken = manualToken;
|
|
1690
1722
|
}
|
|
1691
1723
|
} else {
|
|
1692
|
-
console.log(_chalk2.default.gray("\n" +
|
|
1693
|
-
console.log(_chalk2.default.gray(" " +
|
|
1724
|
+
console.log(_chalk2.default.gray("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.authTokenHint")));
|
|
1725
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.authTokenCommand")));
|
|
1694
1726
|
console.log();
|
|
1695
|
-
const manualToken = await
|
|
1696
|
-
title:
|
|
1697
|
-
placeholder:
|
|
1727
|
+
const manualToken = await _chunkCK4HAHVYcjs.showPassword.call(void 0, {
|
|
1728
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.vertexai.enterAuthToken"),
|
|
1729
|
+
placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder")
|
|
1698
1730
|
});
|
|
1699
1731
|
if (!manualToken) return false;
|
|
1700
1732
|
authToken = manualToken;
|
|
1701
1733
|
}
|
|
1702
|
-
const modelOptions =
|
|
1734
|
+
const modelOptions = _chunkHC2Q6A3Ecjs.VERTEX_AI_CODING_MODELS.map((name) => ({
|
|
1703
1735
|
label: name,
|
|
1704
1736
|
value: name
|
|
1705
1737
|
}));
|
|
1706
|
-
const modelResult = await
|
|
1707
|
-
title:
|
|
1738
|
+
const modelResult = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1739
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1708
1740
|
options: modelOptions,
|
|
1709
1741
|
allowCustomInput: true
|
|
1710
1742
|
});
|
|
@@ -1721,28 +1753,114 @@ var SetupWizard = class {
|
|
|
1721
1753
|
projectId,
|
|
1722
1754
|
model
|
|
1723
1755
|
};
|
|
1724
|
-
console.log(_chalk2.default.green("\n\u2713 " +
|
|
1725
|
-
console.log(_chalk2.default.gray(" " +
|
|
1756
|
+
console.log(_chalk2.default.green("\n\u2713 " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.configuredSuccessfully", { provider: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.vertexai") })));
|
|
1757
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.modelLabel", { model })));
|
|
1726
1758
|
if (gcloudInstalled) {
|
|
1727
1759
|
console.log(_chalk2.default.gray(" Token auto-refresh enabled via gcloud CLI"));
|
|
1728
1760
|
}
|
|
1729
1761
|
console.log();
|
|
1730
1762
|
return true;
|
|
1731
1763
|
}
|
|
1764
|
+
async promptBedrockConfig() {
|
|
1765
|
+
this.state.currentStep = "apiKey";
|
|
1766
|
+
console.log(_chalk2.default.cyan("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.title")));
|
|
1767
|
+
console.log(_chalk2.default.gray(_chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.getStarted") + "\n"));
|
|
1768
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.awsCredentialsHint")));
|
|
1769
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modelAccessHint") + "\n"));
|
|
1770
|
+
const existing = _optionalChain([this, 'access', _24 => _24.existingConfig, 'optionalAccess', _25 => _25.bedrock]);
|
|
1771
|
+
const apiMode = await this.promptBedrockApiMode(_optionalChain([existing, 'optionalAccess', _26 => _26.apiMode]));
|
|
1772
|
+
if (!apiMode) return false;
|
|
1773
|
+
const authMode = await this.promptBedrockAuthMode(apiMode, _optionalChain([existing, 'optionalAccess', _27 => _27.authMode]));
|
|
1774
|
+
if (!authMode) return false;
|
|
1775
|
+
let apiKey = _optionalChain([existing, 'optionalAccess', _28 => _28.apiKey]);
|
|
1776
|
+
if (authMode === "bedrock-api-key") {
|
|
1777
|
+
console.log(_chalk2.default.gray("\n" + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.apiKeyHint") + "\n"));
|
|
1778
|
+
apiKey = await _asyncNullishCoalesce(await _chunkCK4HAHVYcjs.showPassword.call(void 0, {
|
|
1779
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.enterApiKey", { provider: this.getProviderDisplayName("bedrock") }),
|
|
1780
|
+
placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder"),
|
|
1781
|
+
validate: (val) => {
|
|
1782
|
+
if (!_optionalChain([val, 'optionalAccess', _29 => _29.trim, 'call', _30 => _30()])) return _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.apiKeyRequired");
|
|
1783
|
+
if (val.length < 10) return _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.apiKeyTooShort");
|
|
1784
|
+
return true;
|
|
1785
|
+
}
|
|
1786
|
+
}), async () => ( void 0));
|
|
1787
|
+
if (!apiKey) return false;
|
|
1788
|
+
}
|
|
1789
|
+
const region = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1790
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.enterRegion"),
|
|
1791
|
+
defaultValue: _optionalChain([existing, 'optionalAccess', _31 => _31.region]) || process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION || _chunkHC2Q6A3Ecjs.BEDROCK_DEFAULT_REGION
|
|
1792
|
+
});
|
|
1793
|
+
if (!region) return false;
|
|
1794
|
+
const profile = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1795
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.enterProfile"),
|
|
1796
|
+
defaultValue: _optionalChain([existing, 'optionalAccess', _32 => _32.profile]) || "",
|
|
1797
|
+
placeholder: "enterprise-prod"
|
|
1798
|
+
});
|
|
1799
|
+
const endpoint = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1800
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.enterEndpoint"),
|
|
1801
|
+
defaultValue: _optionalChain([existing, 'optionalAccess', _33 => _33.endpoint]) || "",
|
|
1802
|
+
placeholder: _chunkHC2Q6A3Ecjs.resolveBedrockEndpoint.call(void 0, apiMode, region)
|
|
1803
|
+
});
|
|
1804
|
+
const modelResult = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1805
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.selectModel"),
|
|
1806
|
+
options: _chunkHC2Q6A3Ecjs.BEDROCK_MODELS.map((name) => ({ label: name, value: name })),
|
|
1807
|
+
allowCustomInput: true,
|
|
1808
|
+
initialIndex: Math.max(0, [..._chunkHC2Q6A3Ecjs.BEDROCK_MODELS].indexOf(_optionalChain([existing, 'optionalAccess', _34 => _34.model]) || _chunkHC2Q6A3Ecjs.BEDROCK_DEFAULT_MODEL))
|
|
1809
|
+
});
|
|
1810
|
+
if (!modelResult) return false;
|
|
1811
|
+
const model = String(modelResult.value).trim();
|
|
1812
|
+
this.state.provider = "bedrock";
|
|
1813
|
+
this.state.model = model;
|
|
1814
|
+
this.state.bedrockConfig = {
|
|
1815
|
+
model,
|
|
1816
|
+
region: region.trim(),
|
|
1817
|
+
apiMode,
|
|
1818
|
+
authMode,
|
|
1819
|
+
..._optionalChain([profile, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()]) && { profile: profile.trim() },
|
|
1820
|
+
..._optionalChain([endpoint, 'optionalAccess', _37 => _37.trim, 'call', _38 => _38()]) && { endpoint: endpoint.trim() },
|
|
1821
|
+
...authMode === "bedrock-api-key" && apiKey ? { apiKey } : {}
|
|
1822
|
+
};
|
|
1823
|
+
console.log(_chalk2.default.green("\n\u2713 " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.configuredSuccessfully", { provider: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.bedrock") })));
|
|
1824
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.modelLabel", { model })));
|
|
1825
|
+
return true;
|
|
1826
|
+
}
|
|
1827
|
+
async promptBedrockApiMode(current) {
|
|
1828
|
+
const options = [
|
|
1829
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modeConverse"), value: "converse", description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modeConverseHint") },
|
|
1830
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIChat"), value: "openai-chat", description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIChatHint") },
|
|
1831
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIResponses"), value: "openai-responses", description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.modeOpenAIResponsesHint") }
|
|
1832
|
+
];
|
|
1833
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1834
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.chooseApiMode"),
|
|
1835
|
+
options,
|
|
1836
|
+
initialIndex: Math.max(0, options.findIndex((option) => option.value === (current || "converse")))
|
|
1837
|
+
});
|
|
1838
|
+
return _nullishCoalesce(_optionalChain([result, 'optionalAccess', _39 => _39.value]), () => ( null));
|
|
1839
|
+
}
|
|
1840
|
+
async promptBedrockAuthMode(apiMode, current) {
|
|
1841
|
+
const authMode = _chunkHC2Q6A3Ecjs.resolveBedrockAuthMode.call(void 0, apiMode, current);
|
|
1842
|
+
const options = apiMode === "converse" ? [{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.authAwsCredentials"), value: "aws-credentials", description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.authAwsCredentialsHint") }] : [{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.authBedrockApiKey"), value: "bedrock-api-key", description: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.authBedrockApiKeyHint") }];
|
|
1843
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1844
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.chooseAuthMode"),
|
|
1845
|
+
options,
|
|
1846
|
+
initialIndex: Math.max(0, options.findIndex((option) => option.value === authMode))
|
|
1847
|
+
});
|
|
1848
|
+
return _nullishCoalesce(_optionalChain([result, 'optionalAccess', _40 => _40.value]), () => ( null));
|
|
1849
|
+
}
|
|
1732
1850
|
/**
|
|
1733
1851
|
* Prompt for language selection
|
|
1734
1852
|
*/
|
|
1735
1853
|
async promptLanguage() {
|
|
1736
1854
|
this.state.currentStep = "language";
|
|
1737
|
-
const detected =
|
|
1738
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1739
|
-
const options =
|
|
1740
|
-
label:
|
|
1855
|
+
const detected = _chunkSY2P3Z5Wcjs.detectLocale.call(void 0, );
|
|
1856
|
+
console.log(_chalk2.default.gray("\n " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.language.detected", { language: _chunkSY2P3Z5Wcjs.LANGUAGE_DISPLAY_NAMES[detected.locale] })));
|
|
1857
|
+
const options = _chunkSY2P3Z5Wcjs.SUPPORTED_LOCALES.map((locale) => ({
|
|
1858
|
+
label: _chunkSY2P3Z5Wcjs.LANGUAGE_DISPLAY_NAMES[locale],
|
|
1741
1859
|
value: locale
|
|
1742
1860
|
}));
|
|
1743
|
-
const initialIndex =
|
|
1744
|
-
const result = await
|
|
1745
|
-
title:
|
|
1861
|
+
const initialIndex = _chunkSY2P3Z5Wcjs.SUPPORTED_LOCALES.indexOf(detected.locale);
|
|
1862
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
1863
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.language.prompt"),
|
|
1746
1864
|
options,
|
|
1747
1865
|
initialIndex: initialIndex >= 0 ? initialIndex : 0
|
|
1748
1866
|
});
|
|
@@ -1753,8 +1871,8 @@ var SetupWizard = class {
|
|
|
1753
1871
|
const selectedLocale = result.value;
|
|
1754
1872
|
this.state.locale = selectedLocale;
|
|
1755
1873
|
if (selectedLocale !== detected.locale) {
|
|
1756
|
-
await
|
|
1757
|
-
console.log(_chalk2.default.green(" " +
|
|
1874
|
+
await _chunkSY2P3Z5Wcjs.changeLanguage.call(void 0, selectedLocale);
|
|
1875
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.language.changed", { language: _chunkSY2P3Z5Wcjs.LANGUAGE_DISPLAY_NAMES[selectedLocale] })));
|
|
1758
1876
|
}
|
|
1759
1877
|
}
|
|
1760
1878
|
/**
|
|
@@ -1764,20 +1882,20 @@ var SetupWizard = class {
|
|
|
1764
1882
|
if (!this.state.provider || !this.state.apiKey) return;
|
|
1765
1883
|
if (!this.requiresApiKey(this.state.provider)) return;
|
|
1766
1884
|
const baseUrl = this.getDefaultBaseUrl(this.state.provider);
|
|
1767
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1885
|
+
console.log(_chalk2.default.gray("\n " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.apiKeyValidation.validating")));
|
|
1768
1886
|
try {
|
|
1769
1887
|
const response = await fetch(`${baseUrl}/models`, {
|
|
1770
1888
|
headers: { Authorization: `Bearer ${this.state.apiKey}` },
|
|
1771
1889
|
signal: AbortSignal.timeout(1e4)
|
|
1772
1890
|
});
|
|
1773
1891
|
if (response.ok) {
|
|
1774
|
-
console.log(_chalk2.default.green(" " +
|
|
1892
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.apiKeyValidation.success")));
|
|
1775
1893
|
} else {
|
|
1776
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1777
|
-
console.log(_chalk2.default.gray(" " +
|
|
1894
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.apiKeyValidation.failed", { error: `HTTP ${response.status}` })));
|
|
1895
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.apiKeyValidation.hint")));
|
|
1778
1896
|
}
|
|
1779
1897
|
} catch (e13) {
|
|
1780
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1898
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.apiKeyValidation.skipped")));
|
|
1781
1899
|
}
|
|
1782
1900
|
}
|
|
1783
1901
|
/**
|
|
@@ -1795,24 +1913,24 @@ var SetupWizard = class {
|
|
|
1795
1913
|
};
|
|
1796
1914
|
const endpoint = endpoints[provider];
|
|
1797
1915
|
if (!endpoint) return true;
|
|
1798
|
-
console.log(_chalk2.default.gray("\n " +
|
|
1916
|
+
console.log(_chalk2.default.gray("\n " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.connectionTest.testing", { provider: this.getProviderDisplayName(provider) })));
|
|
1799
1917
|
try {
|
|
1800
1918
|
const response = await fetch(endpoint, { signal: AbortSignal.timeout(5e3) });
|
|
1801
1919
|
if (response.ok) {
|
|
1802
|
-
console.log(_chalk2.default.green(" " +
|
|
1920
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.connectionTest.success", { provider: this.getProviderDisplayName(provider) })));
|
|
1803
1921
|
return true;
|
|
1804
1922
|
}
|
|
1805
1923
|
throw new Error(`HTTP ${response.status}`);
|
|
1806
1924
|
} catch (error) {
|
|
1807
1925
|
const errorMsg = error instanceof Error ? error.message : "Unknown error";
|
|
1808
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1926
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.connectionTest.failed", { provider: this.getProviderDisplayName(provider), error: errorMsg })));
|
|
1809
1927
|
const hintKey = `setup.connectionTest.hint${provider.charAt(0).toUpperCase() + provider.slice(1)}`;
|
|
1810
|
-
const hint =
|
|
1928
|
+
const hint = _chunkSY2P3Z5Wcjs.t.call(void 0, hintKey);
|
|
1811
1929
|
if (hint !== hintKey) {
|
|
1812
1930
|
console.log(_chalk2.default.gray(" " + hint));
|
|
1813
1931
|
}
|
|
1814
|
-
const continueAnyway = await
|
|
1815
|
-
title:
|
|
1932
|
+
const continueAnyway = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1933
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.connectionTest.continueAnyway"),
|
|
1816
1934
|
defaultValue: true
|
|
1817
1935
|
});
|
|
1818
1936
|
return continueAnyway;
|
|
@@ -1830,7 +1948,7 @@ var SetupWizard = class {
|
|
|
1830
1948
|
console.log(_chalk2.default.yellow(" llama.cpp is not installed and no supported package manager was detected."));
|
|
1831
1949
|
} else {
|
|
1832
1950
|
console.log(_chalk2.default.yellow(` llama.cpp is not installed. Autohand can install it with: ${probe.installPlan.label}`));
|
|
1833
|
-
const shouldInstall = await
|
|
1951
|
+
const shouldInstall = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
1834
1952
|
title: "Install llama.cpp now?",
|
|
1835
1953
|
defaultValue: true
|
|
1836
1954
|
});
|
|
@@ -1855,8 +1973,8 @@ var SetupWizard = class {
|
|
|
1855
1973
|
}
|
|
1856
1974
|
}
|
|
1857
1975
|
}
|
|
1858
|
-
const port = await
|
|
1859
|
-
title:
|
|
1976
|
+
const port = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
1977
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.llamacpp.serverPort"),
|
|
1860
1978
|
defaultValue: String(_nullishCoalesce(detectedPort, () => ( 80)))
|
|
1861
1979
|
});
|
|
1862
1980
|
if (!port) {
|
|
@@ -1872,28 +1990,28 @@ var SetupWizard = class {
|
|
|
1872
1990
|
this.state.currentStep = "permissions";
|
|
1873
1991
|
console.log();
|
|
1874
1992
|
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(" " +
|
|
1993
|
+
console.log(_chalk2.default.white.bold(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.title")));
|
|
1876
1994
|
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
1995
|
console.log();
|
|
1878
|
-
console.log(_chalk2.default.gray(" " +
|
|
1996
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.description")));
|
|
1879
1997
|
console.log();
|
|
1880
1998
|
const options = [
|
|
1881
|
-
{ label:
|
|
1882
|
-
{ label:
|
|
1883
|
-
{ label:
|
|
1999
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.interactive"), value: "interactive" },
|
|
2000
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.unrestricted"), value: "unrestricted" },
|
|
2001
|
+
{ label: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.restricted"), value: "restricted" }
|
|
1884
2002
|
];
|
|
1885
|
-
const result = await
|
|
1886
|
-
title:
|
|
2003
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
2004
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.title"),
|
|
1887
2005
|
options
|
|
1888
2006
|
});
|
|
1889
|
-
const mode = _nullishCoalesce(_optionalChain([result, 'optionalAccess',
|
|
2007
|
+
const mode = _nullishCoalesce(_optionalChain([result, 'optionalAccess', _41 => _41.value]), () => ( "interactive"));
|
|
1890
2008
|
this.state.permissionMode = mode;
|
|
1891
2009
|
if (mode === "unrestricted") {
|
|
1892
|
-
console.log(_chalk2.default.yellow(" " +
|
|
2010
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.warning")));
|
|
1893
2011
|
}
|
|
1894
|
-
console.log(_chalk2.default.green(" " +
|
|
1895
|
-
const rememberSession = await
|
|
1896
|
-
title:
|
|
2012
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.set", { mode })));
|
|
2013
|
+
const rememberSession = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2014
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.permissions.rememberPrompt"),
|
|
1897
2015
|
defaultValue: true
|
|
1898
2016
|
});
|
|
1899
2017
|
this.state.rememberSession = rememberSession;
|
|
@@ -1903,16 +2021,16 @@ var SetupWizard = class {
|
|
|
1903
2021
|
*/
|
|
1904
2022
|
async checkWorkspaceStep() {
|
|
1905
2023
|
this.state.currentStep = "workspaceSafety";
|
|
1906
|
-
console.log(_chalk2.default.gray("\n " +
|
|
2024
|
+
console.log(_chalk2.default.gray("\n " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.workspaceSafety.checking")));
|
|
1907
2025
|
const result = _chunkWGNMOVMTcjs.checkWorkspaceSafety.call(void 0, this.workspaceRoot);
|
|
1908
2026
|
if (result.safe) {
|
|
1909
|
-
console.log(_chalk2.default.green(" " +
|
|
2027
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.workspaceSafety.safe")));
|
|
1910
2028
|
return true;
|
|
1911
2029
|
}
|
|
1912
2030
|
_chunkWGNMOVMTcjs.printDangerousWorkspaceWarning.call(void 0, this.workspaceRoot, result);
|
|
1913
|
-
console.log(_chalk2.default.yellow(" " +
|
|
1914
|
-
const continueUnsafe = await
|
|
1915
|
-
title:
|
|
2031
|
+
console.log(_chalk2.default.yellow(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.workspaceSafety.unsafe", { reason: result.reason || "" })));
|
|
2032
|
+
const continueUnsafe = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2033
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.workspaceSafety.continueUnsafe"),
|
|
1916
2034
|
defaultValue: false
|
|
1917
2035
|
});
|
|
1918
2036
|
return continueUnsafe;
|
|
@@ -1924,19 +2042,19 @@ var SetupWizard = class {
|
|
|
1924
2042
|
this.state.currentStep = "notifications";
|
|
1925
2043
|
console.log();
|
|
1926
2044
|
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(" " +
|
|
2045
|
+
console.log(_chalk2.default.white.bold(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.notifications.title")));
|
|
1928
2046
|
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
2047
|
console.log();
|
|
1930
|
-
console.log(_chalk2.default.gray(" " +
|
|
2048
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.notifications.description")));
|
|
1931
2049
|
console.log();
|
|
1932
|
-
const enabled = await
|
|
1933
|
-
title:
|
|
2050
|
+
const enabled = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2051
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.notifications.enablePrompt"),
|
|
1934
2052
|
defaultValue: true
|
|
1935
2053
|
});
|
|
1936
2054
|
let sound = true;
|
|
1937
2055
|
if (enabled) {
|
|
1938
|
-
sound = await
|
|
1939
|
-
title:
|
|
2056
|
+
sound = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2057
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.notifications.soundPrompt"),
|
|
1940
2058
|
defaultValue: true
|
|
1941
2059
|
});
|
|
1942
2060
|
}
|
|
@@ -1947,16 +2065,16 @@ var SetupWizard = class {
|
|
|
1947
2065
|
*/
|
|
1948
2066
|
async promptNetwork() {
|
|
1949
2067
|
this.state.currentStep = "network";
|
|
1950
|
-
const needCustom = await
|
|
1951
|
-
title:
|
|
2068
|
+
const needCustom = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2069
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.network.needCustom"),
|
|
1952
2070
|
defaultValue: false
|
|
1953
2071
|
});
|
|
1954
2072
|
if (!needCustom) {
|
|
1955
2073
|
this.state.skipped.push("network");
|
|
1956
2074
|
return;
|
|
1957
2075
|
}
|
|
1958
|
-
const maxRetriesStr = await
|
|
1959
|
-
title:
|
|
2076
|
+
const maxRetriesStr = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
2077
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.network.maxRetries"),
|
|
1960
2078
|
defaultValue: "3",
|
|
1961
2079
|
validate: (val) => {
|
|
1962
2080
|
const n = parseInt(val, 10);
|
|
@@ -1964,8 +2082,8 @@ var SetupWizard = class {
|
|
|
1964
2082
|
return true;
|
|
1965
2083
|
}
|
|
1966
2084
|
});
|
|
1967
|
-
const timeoutStr = await
|
|
1968
|
-
title:
|
|
2085
|
+
const timeoutStr = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
2086
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.network.timeout"),
|
|
1969
2087
|
defaultValue: "30000",
|
|
1970
2088
|
validate: (val) => {
|
|
1971
2089
|
const n = parseInt(val, 10);
|
|
@@ -1989,17 +2107,17 @@ var SetupWizard = class {
|
|
|
1989
2107
|
{ label: "DuckDuckGo", value: "duckduckgo", description: "Privacy-focused, no API key needed" },
|
|
1990
2108
|
{ label: "Parallel.ai", value: "parallel", description: "AI-optimized search (requires API key)" }
|
|
1991
2109
|
];
|
|
1992
|
-
const result = await
|
|
1993
|
-
title:
|
|
2110
|
+
const result = await _chunkCK4HAHVYcjs.showModal.call(void 0, {
|
|
2111
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.search.prompt"),
|
|
1994
2112
|
options
|
|
1995
2113
|
});
|
|
1996
|
-
const provider = _nullishCoalesce(_optionalChain([result, 'optionalAccess',
|
|
2114
|
+
const provider = _nullishCoalesce(_optionalChain([result, 'optionalAccess', _42 => _42.value]), () => ( "google"));
|
|
1997
2115
|
const searchState = { provider };
|
|
1998
2116
|
if (provider === "brave") {
|
|
1999
|
-
const key = await
|
|
2117
|
+
const key = await _chunkCK4HAHVYcjs.showPassword.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.search.braveKeyPrompt"), placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder") });
|
|
2000
2118
|
if (key) searchState.braveApiKey = key;
|
|
2001
2119
|
} else if (provider === "parallel") {
|
|
2002
|
-
const key = await
|
|
2120
|
+
const key = await _chunkCK4HAHVYcjs.showPassword.call(void 0, { title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.search.parallelKeyPrompt"), placeholder: _chunkSY2P3Z5Wcjs.t.call(void 0, "ui.apiKeyPlaceholder") });
|
|
2003
2121
|
if (key) searchState.parallelApiKey = key;
|
|
2004
2122
|
}
|
|
2005
2123
|
this.state.search = searchState;
|
|
@@ -2010,15 +2128,15 @@ var SetupWizard = class {
|
|
|
2010
2128
|
async promptMcp() {
|
|
2011
2129
|
this.state.currentStep = "mcp";
|
|
2012
2130
|
console.log();
|
|
2013
|
-
console.log(_chalk2.default.gray(" " +
|
|
2131
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.mcp.description")));
|
|
2014
2132
|
console.log();
|
|
2015
|
-
const enabled = await
|
|
2016
|
-
title:
|
|
2133
|
+
const enabled = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2134
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.mcp.enablePrompt"),
|
|
2017
2135
|
defaultValue: true
|
|
2018
2136
|
});
|
|
2019
2137
|
this.state.mcpEnabled = enabled;
|
|
2020
2138
|
if (enabled) {
|
|
2021
|
-
console.log(_chalk2.default.green(" " +
|
|
2139
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.mcp.enabled")));
|
|
2022
2140
|
}
|
|
2023
2141
|
}
|
|
2024
2142
|
/**
|
|
@@ -2026,8 +2144,8 @@ var SetupWizard = class {
|
|
|
2026
2144
|
*/
|
|
2027
2145
|
async promptAgentBehavior() {
|
|
2028
2146
|
this.state.currentStep = "agentBehavior";
|
|
2029
|
-
const maxIterStr = await
|
|
2030
|
-
title:
|
|
2147
|
+
const maxIterStr = await _chunkCK4HAHVYcjs.showInput.call(void 0, {
|
|
2148
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.agent.maxIterationsPrompt"),
|
|
2031
2149
|
defaultValue: "100",
|
|
2032
2150
|
validate: (val) => {
|
|
2033
2151
|
const n = parseInt(val, 10);
|
|
@@ -2035,15 +2153,15 @@ var SetupWizard = class {
|
|
|
2035
2153
|
return true;
|
|
2036
2154
|
}
|
|
2037
2155
|
});
|
|
2038
|
-
const debug = await
|
|
2039
|
-
title:
|
|
2156
|
+
const debug = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2157
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.agent.debugPrompt"),
|
|
2040
2158
|
defaultValue: false
|
|
2041
2159
|
});
|
|
2042
2160
|
this.state.agentSettings = {
|
|
2043
2161
|
maxIterations: parseInt(maxIterStr || "100", 10),
|
|
2044
2162
|
debug
|
|
2045
2163
|
};
|
|
2046
|
-
console.log(_chalk2.default.green(" " +
|
|
2164
|
+
console.log(_chalk2.default.green(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.agent.set")));
|
|
2047
2165
|
}
|
|
2048
2166
|
/**
|
|
2049
2167
|
* Prompt for community skills
|
|
@@ -2051,10 +2169,10 @@ var SetupWizard = class {
|
|
|
2051
2169
|
async promptCommunitySkills() {
|
|
2052
2170
|
this.state.currentStep = "communitySkills";
|
|
2053
2171
|
console.log();
|
|
2054
|
-
console.log(_chalk2.default.gray(" " +
|
|
2172
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.communitySkills.description")));
|
|
2055
2173
|
console.log();
|
|
2056
|
-
const enabled = await
|
|
2057
|
-
title:
|
|
2174
|
+
const enabled = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2175
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.communitySkills.enablePrompt"),
|
|
2058
2176
|
defaultValue: true
|
|
2059
2177
|
});
|
|
2060
2178
|
this.state.communitySkillsEnabled = enabled;
|
|
@@ -2066,20 +2184,20 @@ var SetupWizard = class {
|
|
|
2066
2184
|
this.state.currentStep = "reviewSummary";
|
|
2067
2185
|
console.log();
|
|
2068
2186
|
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(" " +
|
|
2187
|
+
console.log(_chalk2.default.white.bold(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.review.title")));
|
|
2070
2188
|
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
2189
|
console.log();
|
|
2072
2190
|
if (this.state.locale) {
|
|
2073
|
-
console.log(_chalk2.default.white(` Language: ${
|
|
2191
|
+
console.log(_chalk2.default.white(` Language: ${_chunkSY2P3Z5Wcjs.LANGUAGE_DISPLAY_NAMES[this.state.locale]}`));
|
|
2074
2192
|
}
|
|
2075
2193
|
if (this.state.provider) {
|
|
2076
|
-
console.log(_chalk2.default.white(" " +
|
|
2194
|
+
console.log(_chalk2.default.white(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.review.provider", { provider: this.getProviderDisplayName(this.state.provider) })));
|
|
2077
2195
|
}
|
|
2078
2196
|
if (this.state.model) {
|
|
2079
|
-
console.log(_chalk2.default.white(" " +
|
|
2197
|
+
console.log(_chalk2.default.white(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.review.model", { model: this.state.model })));
|
|
2080
2198
|
}
|
|
2081
2199
|
if (this.state.reasoningEffort) {
|
|
2082
|
-
console.log(_chalk2.default.white(" " +
|
|
2200
|
+
console.log(_chalk2.default.white(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.config.reasoningEffortLabel", { level: this.state.reasoningEffort })));
|
|
2083
2201
|
}
|
|
2084
2202
|
if (this.state.permissionMode) {
|
|
2085
2203
|
console.log(_chalk2.default.white(` Permissions: ${this.state.permissionMode}`));
|
|
@@ -2089,7 +2207,7 @@ var SetupWizard = class {
|
|
|
2089
2207
|
if (this.state.notifications) {
|
|
2090
2208
|
console.log(_chalk2.default.white(` Notifications: ${this.state.notifications.enabled ? "enabled" : "disabled"}`));
|
|
2091
2209
|
}
|
|
2092
|
-
if (_optionalChain([this, 'access',
|
|
2210
|
+
if (_optionalChain([this, 'access', _43 => _43.state, 'access', _44 => _44.search, 'optionalAccess', _45 => _45.provider])) {
|
|
2093
2211
|
console.log(_chalk2.default.white(` Search: ${this.state.search.provider}`));
|
|
2094
2212
|
}
|
|
2095
2213
|
if (this.state.mcpEnabled !== void 0) {
|
|
@@ -2099,12 +2217,12 @@ var SetupWizard = class {
|
|
|
2099
2217
|
console.log(_chalk2.default.white(` Account: ${this.state.authUser.email}`));
|
|
2100
2218
|
}
|
|
2101
2219
|
console.log();
|
|
2102
|
-
const confirmed = await
|
|
2103
|
-
title:
|
|
2220
|
+
const confirmed = await _chunkCK4HAHVYcjs.showConfirm.call(void 0, {
|
|
2221
|
+
title: _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.review.confirm"),
|
|
2104
2222
|
defaultValue: true
|
|
2105
2223
|
});
|
|
2106
2224
|
if (!confirmed) {
|
|
2107
|
-
console.log(_chalk2.default.gray(" " +
|
|
2225
|
+
console.log(_chalk2.default.gray(" " + _chunkSY2P3Z5Wcjs.t.call(void 0, "setup.review.goBack")));
|
|
2108
2226
|
}
|
|
2109
2227
|
return confirmed;
|
|
2110
2228
|
}
|
|
@@ -2119,19 +2237,20 @@ var SetupWizard = class {
|
|
|
2119
2237
|
return provider === "openrouter" || provider === "llmgateway" || provider === "zai" || provider === "vertexai" || provider === "xai" || provider === "cerebras" || provider === "nvidia" || provider === "deepseek";
|
|
2120
2238
|
}
|
|
2121
2239
|
getProviderDisplayName(provider) {
|
|
2122
|
-
return
|
|
2240
|
+
return _chunkSY2P3Z5Wcjs.t.call(void 0, `providers.${provider}`);
|
|
2123
2241
|
}
|
|
2124
2242
|
getProviderHint(provider) {
|
|
2125
|
-
return
|
|
2243
|
+
return _chunkSY2P3Z5Wcjs.t.call(void 0, `providers.hints.${provider}`);
|
|
2126
2244
|
}
|
|
2127
2245
|
getApiKeyUrl(provider) {
|
|
2128
2246
|
const urls = {
|
|
2129
|
-
openrouter:
|
|
2130
|
-
openai:
|
|
2131
|
-
llmgateway:
|
|
2132
|
-
zai:
|
|
2133
|
-
nvidia:
|
|
2134
|
-
deepseek:
|
|
2247
|
+
openrouter: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.openrouter.apiKeyUrl"),
|
|
2248
|
+
openai: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.openai.apiKeyUrl"),
|
|
2249
|
+
llmgateway: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.llmgateway.apiKeyUrl"),
|
|
2250
|
+
zai: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.zai.apiKeyUrl"),
|
|
2251
|
+
nvidia: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.nvidia.apiKeyUrl"),
|
|
2252
|
+
deepseek: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.deepseek.apiKeyUrl"),
|
|
2253
|
+
bedrock: _chunkSY2P3Z5Wcjs.t.call(void 0, "providers.wizard.bedrock.apiKeyUrl")
|
|
2135
2254
|
};
|
|
2136
2255
|
return urls[provider] || "";
|
|
2137
2256
|
}
|
|
@@ -2149,7 +2268,8 @@ var SetupWizard = class {
|
|
|
2149
2268
|
xai: "grok-4.20-reasoning",
|
|
2150
2269
|
cerebras: "zai-glm-4.7",
|
|
2151
2270
|
nvidia: "mistralai/mixtral-8x7b-instruct-v0.1",
|
|
2152
|
-
deepseek: "deepseek-v4-flash"
|
|
2271
|
+
deepseek: "deepseek-v4-flash",
|
|
2272
|
+
bedrock: _chunkHC2Q6A3Ecjs.BEDROCK_DEFAULT_MODEL
|
|
2153
2273
|
};
|
|
2154
2274
|
return defaults[provider] || "";
|
|
2155
2275
|
}
|
|
@@ -2162,38 +2282,39 @@ var SetupWizard = class {
|
|
|
2162
2282
|
mlx: "http://localhost:8080",
|
|
2163
2283
|
llmgateway: "https://api.llmgateway.io/v1",
|
|
2164
2284
|
azure: "https://{resourceName}.openai.azure.com",
|
|
2165
|
-
zai:
|
|
2285
|
+
zai: _chunkHC2Q6A3Ecjs.ZAI_DEFAULT_BASE_URL,
|
|
2166
2286
|
vertexai: "https://aiplatform.googleapis.com",
|
|
2167
2287
|
xai: "https://api.x.ai/v1",
|
|
2168
|
-
cerebras:
|
|
2288
|
+
cerebras: _chunkHC2Q6A3Ecjs.CEREBRAS_DEFAULT_BASE_URL,
|
|
2169
2289
|
nvidia: "https://integrate.api.nvidia.com/v1",
|
|
2170
|
-
deepseek:
|
|
2290
|
+
deepseek: _chunkHC2Q6A3Ecjs.DEEPSEEK_DEFAULT_BASE_URL,
|
|
2291
|
+
bedrock: `https://bedrock-runtime.${_chunkHC2Q6A3Ecjs.BEDROCK_DEFAULT_REGION}.amazonaws.com`
|
|
2171
2292
|
};
|
|
2172
2293
|
return urls[provider] || "";
|
|
2173
2294
|
}
|
|
2174
2295
|
getExistingApiKey(provider) {
|
|
2175
2296
|
if (!this.existingConfig) return null;
|
|
2176
2297
|
const config = this.existingConfig[provider];
|
|
2177
|
-
return _optionalChain([config, 'optionalAccess',
|
|
2298
|
+
return _optionalChain([config, 'optionalAccess', _46 => _46.apiKey]) || null;
|
|
2178
2299
|
}
|
|
2179
2300
|
getExistingOpenAIAuthMode() {
|
|
2180
|
-
const config = _optionalChain([this, 'access',
|
|
2181
|
-
return _optionalChain([config, 'optionalAccess',
|
|
2301
|
+
const config = _optionalChain([this, 'access', _47 => _47.existingConfig, 'optionalAccess', _48 => _48.openai]);
|
|
2302
|
+
return _optionalChain([config, 'optionalAccess', _49 => _49.authMode]) === "chatgpt" ? "chatgpt" : "api-key";
|
|
2182
2303
|
}
|
|
2183
2304
|
getExistingOpenAIChatGPTAuth() {
|
|
2184
|
-
const auth = _optionalChain([this, 'access',
|
|
2305
|
+
const auth = _optionalChain([this, 'access', _50 => _50.existingConfig, 'optionalAccess', _51 => _51.openai, 'optionalAccess', _52 => _52.chatgptAuth]);
|
|
2185
2306
|
return auth && auth.accessToken && auth.accountId ? auth : null;
|
|
2186
2307
|
}
|
|
2187
2308
|
isOpenAIConfigured(config) {
|
|
2188
2309
|
if (config.authMode === "chatgpt") {
|
|
2189
|
-
return !!_optionalChain([config, 'access',
|
|
2310
|
+
return !!_optionalChain([config, 'access', _53 => _53.chatgptAuth, 'optionalAccess', _54 => _54.accessToken]) && !!_optionalChain([config, 'access', _55 => _55.chatgptAuth, 'optionalAccess', _56 => _56.accountId]);
|
|
2190
2311
|
}
|
|
2191
2312
|
return !!config.apiKey && config.apiKey !== "replace-me" && config.apiKey.length >= 10;
|
|
2192
2313
|
}
|
|
2193
2314
|
isCancellation(error) {
|
|
2194
2315
|
if (error && typeof error === "object") {
|
|
2195
2316
|
const e = error;
|
|
2196
|
-
return e.code === "ERR_USE_AFTER_CLOSE" || _optionalChain([e, 'access',
|
|
2317
|
+
return e.code === "ERR_USE_AFTER_CLOSE" || _optionalChain([e, 'access', _57 => _57.message, 'optionalAccess', _58 => _58.includes, 'call', _59 => _59("cancelled")]) || _optionalChain([e, 'access', _60 => _60.message, 'optionalAccess', _61 => _61.includes, 'call', _62 => _62("canceled")]);
|
|
2197
2318
|
}
|
|
2198
2319
|
return false;
|
|
2199
2320
|
}
|