autohand-cli 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -79
- package/dist/AgentRegistry-BBQRODQC.cjs +18 -0
- package/dist/AgentRegistry-JBXZUPML.js +18 -0
- package/dist/{CommunitySkillsCache-ZACDPD4J.js → CommunitySkillsCache-CI7UN2DX.js} +2 -2
- package/dist/CommunitySkillsCache-XTQ6RMTA.cjs +8 -0
- package/dist/{HookManager-2S6AHOC3.js → HookManager-BELBPQQI.js} +1 -1
- package/dist/{HookManager-TVEQI5ZU.cjs → HookManager-ZL2CLAJW.cjs} +2 -2
- package/dist/{ImportWizard-AF2XL6DS.cjs → ImportWizard-U6CIJREW.cjs} +12 -12
- package/dist/{ImportWizard-AEBMAKXE.js → ImportWizard-VJFSWSUQ.js} +3 -3
- package/dist/LearnAdvisor-LAURA3IB.cjs +9 -0
- package/dist/LearnAdvisor-RFOBXFG7.js +9 -0
- package/dist/MemoryManager-3A2VRPF2.js +9 -0
- package/dist/MemoryManager-UOEQZIDC.cjs +9 -0
- package/dist/{NVIDIAProvider-SJPY3ONR.js → NVIDIAProvider-AFNJNWJM.js} +1 -1
- package/dist/NVIDIAProvider-L5GTYRCQ.cjs +14 -0
- package/dist/{PermissionManager-MT7KBNNR.js → PermissionManager-N2LDSOYF.js} +3 -3
- package/dist/PermissionManager-ZNURIEYR.cjs +11 -0
- package/dist/ProviderFactory-3BFS65V7.cjs +13 -0
- package/dist/{ProviderFactory-RB4RVAF6.js → ProviderFactory-XUT6BSGB.js} +4 -3
- package/dist/SessionManager-LGPQIA57.cjs +10 -0
- package/dist/{SessionManager-554PHVPC.js → SessionManager-OR4KDDDS.js} +2 -2
- package/dist/{SkillsRegistry-NHHMIUYJ.js → SkillsRegistry-IL3GWROU.js} +2 -2
- package/dist/SkillsRegistry-PM34DQNA.cjs +9 -0
- package/dist/SubAgent-2WG4QQB5.cjs +13 -0
- package/dist/SubAgent-ICGN23TQ.js +13 -0
- package/dist/{about-3USFSGOH.js → about-OYVGQMJJ.js} +3 -3
- package/dist/{about-QR52U5DD.cjs → about-U2BH7HDR.cjs} +4 -4
- package/dist/{acp-5Y2W6OZP.js → acp-JWHGXZL5.js} +169 -103
- package/dist/{acp-GSYE75OB.cjs → acp-S37JOBCS.cjs} +184 -118
- package/dist/{actionExecutor-KHUU3Z3Q.cjs → actionExecutor-2QEPMELQ.cjs} +13 -13
- package/dist/{actionExecutor-PLQJZLZV.js → actionExecutor-6NCCORRB.js} +12 -12
- package/dist/add-dir-KFUHSIR2.cjs +11 -0
- package/dist/{add-dir-HCERJDBR.js → add-dir-MM2BM2Z2.js} +2 -2
- package/dist/agent-DUIYLIVN.js +132 -0
- package/dist/agent-YYEHGDAK.cjs +132 -0
- package/dist/agents-GBGG4CW7.cjs +19 -0
- package/dist/agents-ZH34C72F.js +19 -0
- package/dist/agents-new-ERXLS7SB.cjs +17 -0
- package/dist/{agents-new-7GAQ25EK.js → agents-new-EVTGPTA4.js} +6 -6
- package/dist/{autoSkill-66PKCYTW.js → autoSkill-HEWKJ5JV.js} +2 -2
- package/dist/autoSkill-YL6PN6AV.cjs +20 -0
- package/dist/automode-4BJ7FNPL.cjs +10 -0
- package/dist/{automode-BUF3VGXU.js → automode-S4U7A7Q2.js} +2 -2
- package/dist/chrome-45ZXHL5N.cjs +22 -0
- package/dist/{chrome-Y3T7EIHG.js → chrome-BBSRVG6S.js} +2 -2
- package/dist/chrome-IFVZRHAT.cjs +50 -0
- package/dist/chrome-MYE6DNA2.js +22 -0
- package/dist/{chunk-45CHNQM6.cjs → chunk-24CEJYEG.cjs} +93 -31
- package/dist/{chunk-6JWCGQJU.cjs → chunk-255GIVM2.cjs} +6 -6
- package/dist/{chunk-D546G7DA.cjs → chunk-2BDSR2OW.cjs} +98 -75
- package/dist/{chunk-PGFLPURU.js → chunk-2BPIR7LA.js} +121 -4
- package/dist/{chunk-AOKXYGBQ.cjs → chunk-2NY7OHBF.cjs} +41 -26
- package/dist/chunk-2WUNHTXL.js +303 -0
- package/dist/{chunk-PQBYFEBL.cjs → chunk-34B6ZO6W.cjs} +124 -7
- package/dist/{chunk-5JTTM5SC.js → chunk-3BJN7GAH.js} +1 -1
- package/dist/{chunk-3UC6DMFI.cjs → chunk-3CAXECWJ.cjs} +15 -15
- package/dist/{chunk-YWH55BWK.cjs → chunk-3CBYUBZC.cjs} +6 -9
- package/dist/chunk-3DF3GZQ7.js +277 -0
- package/dist/{chunk-KASXKDF2.cjs → chunk-3JURXAL6.cjs} +58 -7
- package/dist/{chunk-JV5HVCHU.cjs → chunk-3KWAP2Y3.cjs} +88 -9
- package/dist/{chunk-WPE2XHVX.js → chunk-3MCK6UBL.js} +1 -1
- package/dist/{chunk-U2QUMKCB.js → chunk-3TH7IK4M.js} +62 -9
- package/dist/{chunk-YXM6SA7P.js → chunk-3V77OB3W.js} +3 -3
- package/dist/{chunk-MZN6JBRZ.cjs → chunk-3Y5UEK7K.cjs} +4 -4
- package/dist/{chunk-BP37FVBM.js → chunk-4GPPSBEZ.js} +3 -3
- package/dist/{chunk-4XVLNOFA.js → chunk-5CMBAJ6K.js} +20 -3
- package/dist/{chunk-PNIAIOMZ.cjs → chunk-5YRXFBYZ.cjs} +35 -6
- package/dist/chunk-6AC2TT26.js +156 -0
- package/dist/{chunk-PSAH4ZQB.cjs → chunk-6EIQ6A6U.cjs} +2 -2
- package/dist/{chunk-YQDI753V.js → chunk-6HSEDXVF.js} +4 -4
- package/dist/{chunk-O5GI6SR3.js → chunk-6NUXK62F.js} +1 -1
- package/dist/{chunk-HVCIB4SW.cjs → chunk-6TGCAPYH.cjs} +62 -9
- package/dist/{chunk-HZWU6IO3.js → chunk-6W3SZCSP.js} +2 -5
- package/dist/{chunk-Q3BS6FPM.js → chunk-73LV3DDZ.js} +4 -4
- package/dist/{chunk-ZNGRLCFQ.js → chunk-7BGGLIQF.js} +83 -1
- package/dist/{chunk-ZNYZB7XY.cjs → chunk-7EEK7CRR.cjs} +83 -1
- package/dist/{chunk-HK5A54AV.cjs → chunk-7TO3PDMV.cjs} +48 -4
- package/dist/chunk-7UU22RSH.cjs +277 -0
- package/dist/{chunk-XNIMSVS6.cjs → chunk-A3GAM6FM.cjs} +11 -11
- package/dist/{chunk-W5QLA6WP.cjs → chunk-A7DJU75T.cjs} +8 -8
- package/dist/{chunk-7XTUL7ZD.cjs → chunk-AAAO4ERQ.cjs} +9 -9
- package/dist/{chunk-M5DK524Z.js → chunk-AAJLMP57.js} +2 -2
- package/dist/chunk-ABR756QN.js +529 -0
- package/dist/{chunk-OIGYWOL6.js → chunk-APFGDIPD.js} +3 -1
- package/dist/{chunk-PTTZI4QZ.js → chunk-APQYRMYL.js} +4 -4
- package/dist/{chunk-CO2AADYU.cjs → chunk-AZKOIF2G.cjs} +55 -17
- package/dist/{chunk-P6SLT2F4.cjs → chunk-AZLHUPNC.cjs} +2 -2
- package/dist/chunk-B55VCYSQ.cjs +30 -0
- package/dist/{chunk-JMJRFSNJ.js → chunk-BLQUMSM3.js} +1 -1
- package/dist/{chunk-MGNXABSU.cjs → chunk-BXKPX6K4.cjs} +9 -9
- package/dist/{chunk-MQQH4XQH.cjs → chunk-C66FN2LP.cjs} +4 -4
- package/dist/{chunk-CECH6QQP.js → chunk-CH7KUFAS.js} +10 -10
- package/dist/{chunk-PIXQ2AVM.cjs → chunk-CILSXOPI.cjs} +17 -17
- package/dist/{chunk-IEPLQ47J.js → chunk-CM24K6ZT.js} +89 -12
- package/dist/chunk-CMEZ42F2.cjs +303 -0
- package/dist/{chunk-X5P6QQOB.cjs → chunk-CNQKIWIS.cjs} +100 -23
- package/dist/{chunk-AQ5PVHOC.cjs → chunk-CSUGNNJY.cjs} +4 -3
- package/dist/{chunk-QRQF3556.js → chunk-D6HB3H3L.js} +25 -10
- package/dist/{chunk-XZVDYC5U.js → chunk-D7AYKVKW.js} +2 -2
- package/dist/{chunk-3UHRCHKB.cjs → chunk-DLCXWOWT.cjs} +23 -23
- package/dist/{chunk-CK4HAHVY.cjs → chunk-DMM2BKSV.cjs} +118 -25
- package/dist/{chunk-SPQ7QIQ6.js → chunk-DW3DPV77.js} +1 -1
- package/dist/chunk-ECQD2QC3.cjs +33 -0
- package/dist/{chunk-SNDDZG5H.js → chunk-EEYOS3UC.js} +90 -70
- package/dist/{chunk-DGBPWODD.js → chunk-EF2EN5CR.js} +2 -2
- package/dist/{chunk-M7B7RRBK.cjs → chunk-EFXFURDY.cjs} +138 -51
- package/dist/chunk-EK34UZPB.cjs +40 -0
- package/dist/{chunk-CRTCZ4WL.cjs → chunk-FJR6EZLO.cjs} +3834 -2337
- package/dist/{chunk-TYBPTKFT.js → chunk-FPO7YNPQ.js} +1 -1
- package/dist/{chunk-X3TI5TJJ.js → chunk-FS4I6BNR.js} +1 -1
- package/dist/{chunk-WNJXIACY.js → chunk-FSJ2MNOC.js} +3 -3
- package/dist/{chunk-44ZWOBTI.js → chunk-GEHZMC4G.js} +12 -9
- package/dist/{chunk-Y5BDE24P.cjs → chunk-GO6C2RAR.cjs} +3 -0
- package/dist/{chunk-XW3XCK4E.cjs → chunk-GSMR6V36.cjs} +4 -4
- package/dist/{chunk-H426KOGY.js → chunk-GSZWATME.js} +1 -1
- package/dist/{chunk-S5JNQIGL.cjs → chunk-GYLGCR6F.cjs} +5 -5
- package/dist/{chunk-ONVYXTUT.cjs → chunk-H3OOWNYQ.cjs} +3 -3
- package/dist/{chunk-V5ELP2XE.js → chunk-H65446XW.js} +110 -15
- package/dist/{chunk-LANGD5CO.js → chunk-H7HXRRHK.js} +45 -1
- package/dist/{chunk-RBXBH6EB.cjs → chunk-HN2JTDN5.cjs} +17 -17
- package/dist/{chunk-SOVR7S3T.cjs → chunk-HNXUZ5OY.cjs} +2 -2
- package/dist/{chunk-AZ47LKD5.cjs → chunk-HOYT3E65.cjs} +3 -3
- package/dist/{chunk-P4FUTSVK.js → chunk-HTPY5ESD.js} +3 -3
- package/dist/{chunk-5SFV2NCY.cjs → chunk-HVLWH2AF.cjs} +10 -10
- package/dist/{chunk-VQHSYAPZ.cjs → chunk-HZTEU4W5.cjs} +62 -93
- package/dist/{chunk-4XFHP2SN.cjs → chunk-I5T7LPFP.cjs} +7 -7
- package/dist/{chunk-ZPLCAXJW.js → chunk-IB5CJXE7.js} +7 -7
- package/dist/{chunk-KM7R5YPS.cjs → chunk-INNXFLDR.cjs} +9 -6
- package/dist/{chunk-2ESQR35E.cjs → chunk-JFLEP3T7.cjs} +10 -10
- package/dist/chunk-JJGDOBFL.js +40 -0
- package/dist/{chunk-5A7ZL64N.js → chunk-JSU46T6K.js} +1 -1
- package/dist/{chunk-NB6M6ESM.js → chunk-K6WN6BT4.js} +1 -1
- package/dist/{chunk-QQ64HEHP.cjs → chunk-KIQH3SMT.cjs} +34 -31
- package/dist/{chunk-MANJ67D3.js → chunk-KPRXHIE2.js} +52 -83
- package/dist/{chunk-6HF6XSCC.js → chunk-LIO3RX2Z.js} +2 -2
- package/dist/{chunk-NZ3ZWLUW.js → chunk-LOSXLH7P.js} +109 -16
- package/dist/{chunk-NZ7GCK7Y.cjs → chunk-LSOR72PB.cjs} +23 -23
- package/dist/{chunk-6AYJCDTA.js → chunk-MA3AVDCC.js} +47 -9
- package/dist/{chunk-PZZMIYII.js → chunk-ME3S2WIR.js} +3 -3
- package/dist/{chunk-2IW5YFJ4.js → chunk-NC2I2M4P.js} +4 -4
- package/dist/{chunk-AE2ILW25.cjs → chunk-NC4A4LVC.cjs} +13 -13
- package/dist/{chunk-EEHWALXA.js → chunk-NGEK5FCJ.js} +85 -3
- package/dist/{chunk-MMKZSJUN.js → chunk-NKW6CHXQ.js} +1 -1
- package/dist/{chunk-JB3JCYBJ.js → chunk-NOWCRKP2.js} +4 -3
- package/dist/{chunk-3ZOOH44N.js → chunk-NUB2LMB6.js} +2 -2
- package/dist/chunk-O246MKIW.cjs +267 -0
- package/dist/{chunk-SRMGWMQO.js → chunk-OGFWL2PS.js} +1 -1
- package/dist/{chunk-YISPVAXO.cjs → chunk-ONNGAR6W.cjs} +340 -597
- package/dist/{chunk-7WAUCLLQ.js → chunk-OOFR6A62.js} +33 -4
- package/dist/{chunk-4E7SHPNQ.js → chunk-OZ7FHO7J.js} +2 -2
- package/dist/{chunk-NV6LCD2I.cjs → chunk-P5EWGUI2.cjs} +109 -27
- package/dist/{chunk-YC5OBZQU.js → chunk-P6BQJPAI.js} +41 -18
- package/dist/{chunk-SHRLFX6F.js → chunk-PG2JIU5M.js} +57 -6
- package/dist/{chunk-6OECOAK5.cjs → chunk-PI27G2ED.cjs} +25 -8
- package/dist/{chunk-TR6NECEZ.js → chunk-PI7LRPL6.js} +1 -1
- package/dist/{chunk-GAOPJ5S3.cjs → chunk-PMPEC5HN.cjs} +18 -15
- package/dist/{chunk-5GCQ5UMV.cjs → chunk-PYUP7AKY.cjs} +14 -14
- package/dist/{chunk-S5QKRA2V.js → chunk-QC5Z3ZT5.js} +2 -2
- package/dist/chunk-QDO4L2A7.cjs +156 -0
- package/dist/{chunk-LFDPTJYF.cjs → chunk-QDXRI5AM.cjs} +1 -1
- package/dist/{chunk-26G7YGOW.js → chunk-QVXMSQOG.js} +84 -21
- package/dist/{chunk-SVVP4UUZ.cjs → chunk-R4UKBKDY.cjs} +11 -11
- package/dist/{chunk-HG3ZASBH.cjs → chunk-R75AWII3.cjs} +112 -17
- package/dist/{chunk-TE4SYTWR.cjs → chunk-RD5PLUIX.cjs} +8 -8
- package/dist/{chunk-FFHSCM5M.js → chunk-RGB34CV5.js} +3 -3
- package/dist/{chunk-SY2P3Z5W.cjs → chunk-RJCZLFHE.cjs} +96 -32
- package/dist/{chunk-22SCR3EV.cjs → chunk-RKWNM2BJ.cjs} +2 -2
- package/dist/{chunk-FBQJZKFX.js → chunk-RMVONICR.js} +3 -3
- package/dist/{chunk-PY73W5MQ.cjs → chunk-RPSYRJL7.cjs} +10 -4
- package/dist/{chunk-HXHE2KAO.js → chunk-RWKU2X7O.js} +7 -4
- package/dist/{chunk-NQZH5CR2.cjs → chunk-RZLEGVMH.cjs} +102 -5
- package/dist/{chunk-KMP6Y3LJ.js → chunk-S2L3Y677.js} +1 -1
- package/dist/{chunk-GSDV75A5.js → chunk-S7KVUIOS.js} +1 -1
- package/dist/{chunk-7PT646AL.cjs → chunk-SACJJ6NO.cjs} +5 -3
- package/dist/{chunk-LEZEWKPA.js → chunk-SJQU2ZFR.js} +96 -32
- package/dist/{chunk-65LRPW5W.js → chunk-SKAQKQFF.js} +12 -2
- package/dist/chunk-T4DXP5OP.js +30 -0
- package/dist/{chunk-EYHKL4QC.js → chunk-T6FTB6K2.js} +1 -1
- package/dist/{chunk-DNSD7DVJ.js → chunk-T6N6GRFT.js} +13 -10
- package/dist/{chunk-575PXZX7.js → chunk-TJFKA6A7.js} +82 -3
- package/dist/{chunk-HSWWM6AM.js → chunk-TJZUPS4Z.js} +34 -291
- package/dist/{chunk-DHUQZ53B.cjs → chunk-TLKHZ425.cjs} +2 -2
- package/dist/{chunk-VLGGMQUN.cjs → chunk-TQ24NLXO.cjs} +6 -6
- package/dist/{chunk-LUMV3DB2.js → chunk-TWBAU46X.js} +1 -1
- package/dist/{chunk-EA2MS25U.cjs → chunk-TZB5XADL.cjs} +4 -4
- package/dist/{chunk-U6PLSPMD.cjs → chunk-UAYXZXWU.cjs} +4 -4
- package/dist/{chunk-OV3T5MUH.cjs → chunk-UKBFNBDO.cjs} +11 -11
- package/dist/{chunk-SZD45IDG.js → chunk-UMJYX5KD.js} +101 -4
- package/dist/{chunk-B76FJKEJ.cjs → chunk-USKYTHDL.cjs} +69 -18
- package/dist/{chunk-NZQFKXM3.cjs → chunk-VAJUSZMC.cjs} +15 -15
- package/dist/{chunk-SDLY4X3G.js → chunk-VGQG4NBJ.js} +2 -2
- package/dist/{chunk-KWXGDSYT.js → chunk-VLUIVJ3J.js} +58 -7
- package/dist/{chunk-KJ26T7GM.cjs → chunk-VOBINVMV.cjs} +105 -42
- package/dist/{chunk-C5QIQQ37.js → chunk-VSHKKCSH.js} +16 -5
- package/dist/{chunk-L46OUKW5.cjs → chunk-VSZU3MGA.cjs} +28 -17
- package/dist/{chunk-YFXTE422.cjs → chunk-VWHAUB77.cjs} +8 -3
- package/dist/{chunk-UWZ4G3SQ.js → chunk-VXGYFX45.js} +4 -4
- package/dist/{chunk-C46B72VK.js → chunk-WH6YUQDB.js} +141 -54
- package/dist/{chunk-SFFEKZGC.js → chunk-WQ6TD55V.js} +2 -2
- package/dist/{chunk-7PJKTSRN.js → chunk-WQWECXTY.js} +3 -3
- package/dist/{chunk-DSSCERHI.cjs → chunk-WVDJUJH6.cjs} +2 -2
- package/dist/{chunk-JPFRI4L4.js → chunk-X24VIVDZ.js} +210 -26
- package/dist/{chunk-7IRQ7JEH.js → chunk-X4NRTLXD.js} +7 -1
- package/dist/{chunk-7MY4JHER.js → chunk-X53SHYCG.js} +2 -2
- package/dist/{chunk-RFUKZIJF.cjs → chunk-XB2Z4ZAK.cjs} +5 -5
- package/dist/{chunk-WJYFLQ7G.cjs → chunk-Y47OJGLB.cjs} +3 -3
- package/dist/{chunk-HC2Q6A3E.cjs → chunk-Y4MN27V3.cjs} +361 -177
- package/dist/{chunk-ZK6HOR62.js → chunk-YEHFYZFU.js} +7 -2
- package/dist/{chunk-FFBDRUO5.cjs → chunk-YICIUY23.cjs} +1 -1
- package/dist/{chunk-63ANVAOJ.cjs → chunk-YMXYC777.cjs} +3 -3
- package/dist/{chunk-X7XMITIL.cjs → chunk-Z3GRWK6O.cjs} +8 -8
- package/dist/{chunk-3ICORF7M.cjs → chunk-Z5GG2KSL.cjs} +4 -4
- package/dist/{chunk-I2ZK3AOD.js → chunk-ZER7DYQK.js} +2 -2
- package/dist/{chunk-V3SZLWEQ.cjs → chunk-ZFDXZEZJ.cjs} +11 -11
- package/dist/{chunk-QBYGMMDD.js → chunk-ZFV4HJA6.js} +66 -4
- package/dist/chunk-ZHMYTI5D.cjs +529 -0
- package/dist/{chunk-4567QNRB.js → chunk-ZLR2TFBC.js} +3 -0
- package/dist/{chunk-OCATAKXV.cjs → chunk-ZTWNU5QZ.cjs} +20 -20
- package/dist/{chunk-CCIDL4SA.js → chunk-ZVLVLDYN.js} +2915 -1418
- package/dist/clear-AJGXD2BB.cjs +12 -0
- package/dist/{clear-Y5TO3RZA.js → clear-HAHDSWKW.js} +3 -3
- package/dist/communityInstaller-IRR6M3N6.cjs +22 -0
- package/dist/{communityInstaller-RVL4STPS.js → communityInstaller-OLKEUGMX.js} +5 -5
- package/dist/completion-G7Z436TF.cjs +17 -0
- package/dist/{completion-SE3XYG74.js → completion-ZS3AXJ6A.js} +4 -4
- package/dist/{config-7KPHKFTP.js → config-OWYAQPCX.js} +5 -4
- package/dist/config-W2BHT2QE.cjs +22 -0
- package/dist/{constants-EJFAWJQI.js → constants-AS6K67AA.js} +5 -3
- package/dist/constants-B4W5BT7F.cjs +23 -0
- package/dist/{export-BJVIDZC4.js → export-5HIU3KMD.js} +4 -4
- package/dist/export-GFD32UY2.cjs +15 -0
- package/dist/{extractSessionMemories-A2JX5WJ2.js → extractSessionMemories-K6ZVAW2F.js} +1 -1
- package/dist/{extractSessionMemories-XL3MS37F.cjs → extractSessionMemories-LLOIJR5U.cjs} +2 -2
- package/dist/feature-KP74CZ3F.cjs +14 -0
- package/dist/{feature-V4JF5TNJ.js → feature-OPNVMB2E.js} +2 -2
- package/dist/features-LT55MURX.cjs +24 -0
- package/dist/features-ZDIU26WX.js +24 -0
- package/dist/feedback-7WTJFQ6S.js +18 -0
- package/dist/feedback-CEOJ3453.cjs +18 -0
- package/dist/go-2CY5SZNR.js +16 -0
- package/dist/go-O2CSQON4.cjs +16 -0
- package/dist/goal-DL2N2AWT.cjs +16 -0
- package/dist/goal-IJS7VZSG.js +16 -0
- package/dist/help-RNOGDEBA.cjs +12 -0
- package/dist/{help-MLIROWKM.js → help-TCWD2IRH.js} +2 -2
- package/dist/{history-GQJ6RZD6.js → history-ATOR5OQV.js} +2 -2
- package/dist/history-UUSGX2AL.cjs +14 -0
- package/dist/{hooks-PPFHCF7T.js → hooks-R3Z5QKUP.js} +5 -5
- package/dist/hooks-RWM5UY67.cjs +18 -0
- package/dist/{i18n-Q7UZJRPL.js → i18n-4QI4TD4I.js} +1 -1
- package/dist/i18n-MFAEU5RV.cjs +33 -0
- package/dist/{ide-BUSVE54P.js → ide-6PBTCCUQ.js} +4 -4
- package/dist/ide-UE3G7NMQ.cjs +15 -0
- package/dist/{import-C7S6UJMW.cjs → import-2IG76KAN.cjs} +6 -4
- package/dist/{import-U47DXCA7.js → import-E47QL4DW.js} +2 -2
- package/dist/import-NQDNBFUL.cjs +10 -0
- package/dist/{import-3VBKI6BN.js → import-VQIHGJWS.js} +6 -4
- package/dist/index.cjs +444 -334
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +324 -214
- package/dist/init-DX3RDGDT.cjs +10 -0
- package/dist/{init-Q2O4R42R.js → init-Q54OAAFZ.js} +2 -2
- package/dist/{inputPrompt-3CFZDUBH.js → inputPrompt-V2VBDRM7.js} +2 -2
- package/dist/inputPrompt-WVGVWAHS.cjs +90 -0
- package/dist/language-I6KXAOXD.js +23 -0
- package/dist/language-XMIVOH5E.cjs +23 -0
- package/dist/learn-JPVVGTKU.js +23 -0
- package/dist/learn-NLSHI2MZ.cjs +23 -0
- package/dist/login-NABQYLYC.cjs +28 -0
- package/dist/login-XPOVFSWN.js +28 -0
- package/dist/logout-HNHCGB4Q.js +25 -0
- package/dist/logout-SKGDXJSW.cjs +25 -0
- package/dist/{mcp-AH3MMUBU.js → mcp-EN73YFGZ.js} +8 -7
- package/dist/mcp-TADZCPJQ.cjs +22 -0
- package/dist/{mcp-install-IA4ZS2SV.cjs → mcp-install-2GKWWBAS.cjs} +14 -13
- package/dist/{mcp-install-222PCKSW.js → mcp-install-3TBTVSHW.js} +9 -8
- package/dist/memory-GRXFTDIN.cjs +10 -0
- package/dist/{memory-VB46T5H3.js → memory-K2P3CDCH.js} +2 -2
- package/dist/{model-SJJG64AM.js → model-DEG22OWA.js} +2 -2
- package/dist/model-OSD74T7Z.cjs +10 -0
- package/dist/new-4NWBOATU.cjs +12 -0
- package/dist/{new-ERZ5C6CN.js → new-KJAP2MB6.js} +3 -3
- package/dist/{onboarding-ZQXMPSMJ.js → onboarding-2U5WE2OA.js} +17 -14
- package/dist/onboarding-5DZFCO5Q.cjs +39 -0
- package/dist/permissions-KY5I6YQ3.cjs +10 -0
- package/dist/{permissions-7ACNFK7A.js → permissions-TKYON7PP.js} +2 -2
- package/dist/{plan-YYUAXPTL.js → plan-DYHHLZSS.js} +1 -1
- package/dist/plan-PYKP652W.cjs +13 -0
- package/dist/quit-GSKJL42O.js +14 -0
- package/dist/quit-TQSRTBUT.cjs +14 -0
- package/dist/{registry-4DXUDKJN.js → registry-EZ4V4TUQ.js} +1339 -1
- package/dist/{registry-UEO3ETZ7.cjs → registry-LCWYI4IB.cjs} +1378 -40
- package/dist/resume-4VWJXARX.cjs +17 -0
- package/dist/{resume-XSXZMDMD.js → resume-TLHWWWFN.js} +5 -5
- package/dist/{review-QHP2KP4Q.js → review-CSK4IYTO.js} +1 -1
- package/dist/review-XLJEUH5K.cjs +9 -0
- package/dist/{rpc-XH7QLN4H.js → rpc-3DLQBDWU.js} +151 -124
- package/dist/{rpc-YF54T7JU.cjs → rpc-O36WUU3L.cjs} +169 -142
- package/dist/search-DSX2CY4A.cjs +22 -0
- package/dist/search-I3QUDUQL.js +22 -0
- package/dist/sessionBranching-DVNOUWJT.cjs +19 -0
- package/dist/sessionBranching-FKV4CR36.js +19 -0
- package/dist/sessions-3JUOT3ED.cjs +10 -0
- package/dist/{sessions-NJYHJOEL.js → sessions-VWMDIPOS.js} +2 -2
- package/dist/{settings-ZXUQH3DO.js → settings-FT2LZZUV.js} +11 -8
- package/dist/settings-RL4KNWHB.cjs +45 -0
- package/dist/setup-HQEJVOYT.js +32 -0
- package/dist/setup-MN54LKOL.cjs +32 -0
- package/dist/share-BUAFZNBX.cjs +17 -0
- package/dist/{share-WFAGZ5PY.js → share-CGB6MAVJ.js} +6 -6
- package/dist/skills/builtin/code-reviewer/SKILL.md +64 -0
- package/dist/skills/builtin/goal-writer/SKILL.md +124 -0
- package/dist/{skills-NBTNDVAY.js → skills-7DKR3HRZ.js} +7 -7
- package/dist/{skills-OB6RDW7D.js → skills-BBBENOEY.js} +9 -9
- package/dist/skills-OQM7IHAF.cjs +29 -0
- package/dist/{skills-ZROBG3RZ.cjs → skills-RA2PKL63.cjs} +9 -9
- package/dist/{skills-install-ILX6QVEF.cjs → skills-install-D7K476SL.cjs} +15 -15
- package/dist/{skills-install-BHTIEMKH.js → skills-install-T4SOKJSL.js} +8 -8
- package/dist/{skills-new-YMRP2HNO.js → skills-new-S33NGEU3.js} +6 -6
- package/dist/skills-new-UVYH53MD.cjs +18 -0
- package/dist/slashCommands-MWOUDSQP.js +111 -0
- package/dist/slashCommands-XASURUTV.cjs +111 -0
- package/dist/squad-PIIYDFVH.cjs +15 -0
- package/dist/squad-VHYOVEJP.js +15 -0
- package/dist/status-GHFTXQBL.js +25 -0
- package/dist/status-WXMIJIU3.cjs +25 -0
- package/dist/statusline-2K7AC6ZQ.js +21 -0
- package/dist/statusline-GROI4HOC.cjs +21 -0
- package/dist/sync-254WF6JI.cjs +42 -0
- package/dist/sync-2DIZN4EH.cjs +24 -0
- package/dist/{sync-OCJN4ZSO.js → sync-J6I2ZUKQ.js} +5 -3
- package/dist/{sync-7C25MOT2.js → sync-Z3LVSEEV.js} +8 -6
- package/dist/{teammate-D77B6QRT.cjs → teammate-EXR76PEQ.cjs} +5 -5
- package/dist/{teammate-EZCMHOIL.js → teammate-K4DAOFEQ.js} +5 -5
- package/dist/theme-MVQDSU47.js +23 -0
- package/dist/theme-QAKEYWJG.cjs +23 -0
- package/dist/ui/questionModal.cjs +5 -5
- package/dist/ui/questionModal.js +4 -4
- package/dist/{undo-GNUTFXCW.js → undo-5AU47JHF.js} +2 -2
- package/dist/undo-ME6WKUXZ.cjs +10 -0
- package/dist/{usage-QSTNSDAO.js → usage-QTKO2YMD.js} +6 -5
- package/dist/usage-TYNJKVER.cjs +25 -0
- package/package.json +4 -3
- package/dist/AgentRegistry-GOV7FN2O.js +0 -10
- package/dist/AgentRegistry-J2C6JBZ3.cjs +0 -10
- package/dist/CommunitySkillsCache-22BB3J6H.cjs +0 -8
- package/dist/LearnAdvisor-KKEQ5QCV.js +0 -9
- package/dist/LearnAdvisor-Q7RAYLPF.cjs +0 -9
- package/dist/MemoryManager-PMNAEZMB.cjs +0 -8
- package/dist/MemoryManager-QZRLTUB5.js +0 -8
- package/dist/NVIDIAProvider-C3FWQOBZ.cjs +0 -14
- package/dist/PermissionManager-URCNP5EC.cjs +0 -11
- package/dist/ProviderFactory-56N3ECE4.cjs +0 -12
- package/dist/SessionManager-2IZGWASQ.cjs +0 -10
- package/dist/SkillsRegistry-GMRVONOQ.cjs +0 -9
- package/dist/SubAgent-4GOR2FIJ.js +0 -13
- package/dist/SubAgent-ZJMDH4FI.cjs +0 -13
- package/dist/add-dir-BTAD5OZS.cjs +0 -11
- package/dist/agent-B3EVT7NN.cjs +0 -126
- package/dist/agent-SATQ3WZ3.js +0 -126
- package/dist/agents-44CRJGM7.cjs +0 -18
- package/dist/agents-NN4ZAJ7R.js +0 -18
- package/dist/agents-new-6D6G4QS6.cjs +0 -17
- package/dist/autoSkill-VQLGBELN.cjs +0 -20
- package/dist/automode-45DWV4TN.cjs +0 -10
- package/dist/chrome-Q2U73HZB.cjs +0 -50
- package/dist/chrome-Q54OALOK.cjs +0 -21
- package/dist/chrome-ZNJ46OYW.js +0 -21
- package/dist/chunk-JCUHCH37.cjs +0 -247
- package/dist/chunk-VKOXFT4L.cjs +0 -23
- package/dist/clear-QJXU25IF.cjs +0 -12
- package/dist/communityInstaller-LXMVKVAV.cjs +0 -22
- package/dist/completion-JX4T2ONW.cjs +0 -17
- package/dist/config-3224PRW4.cjs +0 -21
- package/dist/constants-MCCGUU5F.cjs +0 -21
- package/dist/export-KU4557HK.cjs +0 -15
- package/dist/feature-K3LG5IJP.cjs +0 -14
- package/dist/features-5OJTLKS7.js +0 -23
- package/dist/features-VCBJQXCX.cjs +0 -23
- package/dist/feedback-D4437VE4.js +0 -18
- package/dist/feedback-VZPEHGFY.cjs +0 -18
- package/dist/go-X4E6BCD6.js +0 -12
- package/dist/go-XREVFS5I.cjs +0 -12
- package/dist/goal-4M3J6JS2.cjs +0 -16
- package/dist/goal-EI66BV7W.js +0 -16
- package/dist/help-GGFS7WHY.cjs +0 -12
- package/dist/history-J4LUIOSI.cjs +0 -14
- package/dist/hooks-FSRIUS6A.cjs +0 -18
- package/dist/i18n-CI6VFXL5.cjs +0 -33
- package/dist/ide-YR27BPGM.cjs +0 -15
- package/dist/import-DBK4OCDF.cjs +0 -10
- package/dist/init-OXTYS72D.cjs +0 -10
- package/dist/inputPrompt-JMACL4EB.cjs +0 -90
- package/dist/language-EK3M6UBV.cjs +0 -22
- package/dist/language-Q3RUGGOW.js +0 -22
- package/dist/learn-3DSX7DYG.cjs +0 -23
- package/dist/learn-OPOH5L43.js +0 -23
- package/dist/login-GST7MWXJ.cjs +0 -27
- package/dist/login-Q7DZKAX4.js +0 -27
- package/dist/logout-2G7OUK7I.cjs +0 -24
- package/dist/logout-FNBBL2UI.js +0 -24
- package/dist/mcp-DW7R63IB.cjs +0 -21
- package/dist/memory-6NX3DAIY.cjs +0 -10
- package/dist/model-64NAELFS.cjs +0 -10
- package/dist/new-DU5SOOOY.cjs +0 -12
- package/dist/onboarding-2U2BV2KE.cjs +0 -36
- package/dist/permissions-GSNNV7RJ.cjs +0 -10
- package/dist/plan-XEJMOT55.cjs +0 -13
- package/dist/quit-WY6T267G.js +0 -10
- package/dist/quit-XIRE2KRE.cjs +0 -10
- package/dist/resume-RQZ3WXBP.cjs +0 -17
- package/dist/review-UWHWQHCB.cjs +0 -9
- package/dist/search-VXXFGZWU.cjs +0 -21
- package/dist/search-YAWGX7P7.js +0 -21
- package/dist/sessions-OSG3UJEZ.cjs +0 -10
- package/dist/settings-SO2UIGWV.cjs +0 -42
- package/dist/setup-KG7EGKF5.js +0 -30
- package/dist/setup-RSOPCQ57.cjs +0 -30
- package/dist/share-ZU3SGACF.cjs +0 -17
- package/dist/skills-KBVAQAD2.cjs +0 -29
- package/dist/skills-new-B45VQ2PP.cjs +0 -18
- package/dist/slashCommands-53VYIBJU.js +0 -105
- package/dist/slashCommands-BG2RGGZ6.cjs +0 -105
- package/dist/status-CQ2IUOVK.cjs +0 -24
- package/dist/status-E7IGNVPC.js +0 -24
- package/dist/sync-XRP46IVG.cjs +0 -40
- package/dist/sync-ZMFVE7T4.cjs +0 -22
- package/dist/theme-KKRDE6P7.cjs +0 -22
- package/dist/theme-XF7XIWBQ.js +0 -22
- package/dist/undo-U4KN7QQM.cjs +0 -10
- package/dist/usage-YDEMQBNQ.cjs +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRJCZLFHEcjs = require('./chunk-RJCZLFHE.cjs');
|
|
4
4
|
|
|
5
5
|
// src/commands/init.ts
|
|
6
6
|
async function init(ctx) {
|
|
@@ -9,7 +9,7 @@ async function init(ctx) {
|
|
|
9
9
|
}
|
|
10
10
|
var metadata = {
|
|
11
11
|
command: "/init",
|
|
12
|
-
description:
|
|
12
|
+
description: _chunkRJCZLFHEcjs.t.call(void 0, "commands.init.description"),
|
|
13
13
|
implemented: true
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRJCZLFHEcjs = require('./chunk-RJCZLFHE.cjs');
|
|
4
4
|
|
|
5
5
|
// src/commands/import.ts
|
|
6
6
|
var metadata = {
|
|
7
7
|
command: "/import",
|
|
8
|
-
description:
|
|
8
|
+
description: _chunkRJCZLFHEcjs.t.call(void 0, "commands.import.description") || "Import data from other coding agents",
|
|
9
9
|
implemented: true
|
|
10
10
|
};
|
|
11
11
|
async function execute(args) {
|
|
12
|
-
const { runImport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./import-
|
|
12
|
+
const { runImport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./import-2IG76KAN.cjs")));
|
|
13
13
|
const source = args[0];
|
|
14
14
|
const flags = args.slice(1);
|
|
15
15
|
const all = flags.includes("--all");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
showConfirm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LOSXLH7P.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTOHAND_PATHS,
|
|
6
6
|
PROJECT_DIR_NAME
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PG2JIU5M.js";
|
|
8
8
|
import {
|
|
9
9
|
t
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SJQU2ZFR.js";
|
|
11
11
|
|
|
12
12
|
// src/skills/communityInstaller.ts
|
|
13
13
|
import crypto from "crypto";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAZKOIF2Gcjs = require('./chunk-AZKOIF2G.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDMM2BKSVcjs = require('./chunk-DMM2BKSV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCNQKIWIScjs = require('./chunk-CNQKIWIS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRJCZLFHEcjs = require('./chunk-RJCZLFHE.cjs');
|
|
13
13
|
|
|
14
14
|
// src/commands/logout.ts
|
|
15
15
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
16
16
|
var metadata = {
|
|
17
17
|
command: "/logout",
|
|
18
|
-
description:
|
|
18
|
+
description: _chunkRJCZLFHEcjs.t.call(void 0, "commands.logout.description"),
|
|
19
19
|
implemented: true
|
|
20
20
|
};
|
|
21
21
|
async function logout(ctx) {
|
|
@@ -26,7 +26,7 @@ async function logout(ctx) {
|
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
const userName = _optionalChain([config, 'access', _3 => _3.auth, 'access', _4 => _4.user, 'optionalAccess', _5 => _5.name]) || _optionalChain([config, 'access', _6 => _6.auth, 'access', _7 => _7.user, 'optionalAccess', _8 => _8.email]) || "user";
|
|
29
|
-
const selected = await
|
|
29
|
+
const selected = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
30
30
|
title: `Log out from ${_chalk2.default.cyan(userName)}?`,
|
|
31
31
|
options: [
|
|
32
32
|
{ label: "Yes", value: "yes" },
|
|
@@ -34,10 +34,10 @@ async function logout(ctx) {
|
|
|
34
34
|
]
|
|
35
35
|
});
|
|
36
36
|
if (!selected || selected.value === "no") {
|
|
37
|
-
console.log(_chalk2.default.gray(
|
|
37
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "commands.logout.cancelled")));
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
-
const authClient =
|
|
40
|
+
const authClient = _chunkAZKOIF2Gcjs.getAuthClient.call(void 0, );
|
|
41
41
|
try {
|
|
42
42
|
await authClient.logout(config.auth.token);
|
|
43
43
|
} catch (e) {
|
|
@@ -49,9 +49,9 @@ async function logout(ctx) {
|
|
|
49
49
|
...config,
|
|
50
50
|
auth: void 0
|
|
51
51
|
};
|
|
52
|
-
await
|
|
52
|
+
await _chunkCNQKIWIScjs.saveConfig.call(void 0, updatedConfig);
|
|
53
53
|
console.log();
|
|
54
|
-
console.log(_chalk2.default.green(
|
|
54
|
+
console.log(_chalk2.default.green(_chunkRJCZLFHEcjs.t.call(void 0, "commands.logout.success")));
|
|
55
55
|
console.log(_chalk2.default.gray("Your local session has been cleared."));
|
|
56
56
|
console.log();
|
|
57
57
|
process.exit(0);
|
|
@@ -8,7 +8,7 @@ var _chunkWBU4Q4GScjs = require('./chunk-WBU4Q4GS.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQDXRI5AMcjs = require('./chunk-QDXRI5AM.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkMUNUUFU7cjs = require('./chunk-MUNUUFU7.cjs');
|
|
@@ -907,9 +907,7 @@ function parseBase64DataUrl(dataUrl) {
|
|
|
907
907
|
var DEFAULT_BORDER_COLOR = "#8a8a8a";
|
|
908
908
|
var PLAN_BORDER_COLOR = "#ff9d3f";
|
|
909
909
|
var SHELL_BORDER_COLOR = "#000000";
|
|
910
|
-
var SHELL_BOX_BG = "#ffffff";
|
|
911
910
|
var SHELL_BOX_FG = "#000000";
|
|
912
|
-
var FALLBACK_BOX_BG = "#2b2b2b";
|
|
913
911
|
var FALLBACK_BOX_FG = "#a0a0a0";
|
|
914
912
|
var cachedBoxBg = null;
|
|
915
913
|
var cachedBoxFg = null;
|
|
@@ -959,32 +957,6 @@ function hexToAnsiRgb(hex, type) {
|
|
|
959
957
|
const base = type === "fg" ? 38 : 48;
|
|
960
958
|
return `\x1B[${base};2;${rgb.r};${rgb.g};${rgb.b}m`;
|
|
961
959
|
}
|
|
962
|
-
function resolveBoxBg(style = "default") {
|
|
963
|
-
if (style === "shell") {
|
|
964
|
-
if (cachedShellBoxBg !== null) return cachedShellBoxBg;
|
|
965
|
-
const result2 = hexToAnsiRgb(SHELL_BOX_BG, "bg");
|
|
966
|
-
cachedShellBoxBg = result2;
|
|
967
|
-
return result2;
|
|
968
|
-
}
|
|
969
|
-
ensureCacheValid();
|
|
970
|
-
if (cachedBoxBg !== null) return cachedBoxBg;
|
|
971
|
-
if (_chunk2VHB43IXcjs.isThemeInitialized.call(void 0, )) {
|
|
972
|
-
try {
|
|
973
|
-
const hex = _chunk2VHB43IXcjs.getTheme.call(void 0, ).getColor("userMessageBg");
|
|
974
|
-
if (hex) {
|
|
975
|
-
const code = hexToAnsiRgb(hex, "bg");
|
|
976
|
-
if (code) {
|
|
977
|
-
cachedBoxBg = code;
|
|
978
|
-
return code;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
} catch (e3) {
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
const result = hexToAnsiRgb(FALLBACK_BOX_BG, "bg");
|
|
985
|
-
cachedBoxBg = result;
|
|
986
|
-
return result;
|
|
987
|
-
}
|
|
988
960
|
function resolveBoxFg(style = "default") {
|
|
989
961
|
if (style === "shell") {
|
|
990
962
|
if (cachedShellBoxFg !== null) return cachedShellBoxFg;
|
|
@@ -1004,7 +976,7 @@ function resolveBoxFg(style = "default") {
|
|
|
1004
976
|
return code;
|
|
1005
977
|
}
|
|
1006
978
|
}
|
|
1007
|
-
} catch (
|
|
979
|
+
} catch (e3) {
|
|
1008
980
|
}
|
|
1009
981
|
}
|
|
1010
982
|
const result = hexToAnsiRgb(FALLBACK_BOX_FG, "fg");
|
|
@@ -1032,23 +1004,13 @@ function resolveBorderFg(style) {
|
|
|
1032
1004
|
return code;
|
|
1033
1005
|
}
|
|
1034
1006
|
}
|
|
1035
|
-
} catch (
|
|
1007
|
+
} catch (e4) {
|
|
1036
1008
|
}
|
|
1037
1009
|
}
|
|
1038
1010
|
const result = hexToAnsiRgb(resolveBorderFallback(style), "fg");
|
|
1039
1011
|
cachedBorderFg.set(style, result);
|
|
1040
1012
|
return result;
|
|
1041
1013
|
}
|
|
1042
|
-
function drawInputTopBorder(width, style = "default") {
|
|
1043
|
-
const innerWidth = Math.max(0, width - 2);
|
|
1044
|
-
const border = `\u250C${"\u2500".repeat(innerWidth)}\u2510`;
|
|
1045
|
-
return resolveBoxBg(style) + resolveBorderFg(style) + border + RESET_ALL + CLEAR_TO_EOL;
|
|
1046
|
-
}
|
|
1047
|
-
function drawInputBottomBorder(width, style = "default") {
|
|
1048
|
-
const innerWidth = Math.max(0, width - 2);
|
|
1049
|
-
const border = `\u2514${"\u2500".repeat(innerWidth)}\u2518`;
|
|
1050
|
-
return resolveBoxBg(style) + resolveBorderFg(style) + border + RESET_ALL + CLEAR_TO_EOL;
|
|
1051
|
-
}
|
|
1052
1014
|
var ANSI_OR_CHAR_PATTERN = /(?:\u001b\[[0-9;]*m)|[\s\S]/g;
|
|
1053
1015
|
function getVisibleLength(value) {
|
|
1054
1016
|
return _chunkNHWHEW7Mcjs.stripAnsiCodes.call(void 0, value).length;
|
|
@@ -1075,38 +1037,37 @@ function truncateVisible2(value, maxVisible) {
|
|
|
1075
1037
|
}
|
|
1076
1038
|
var RESET_ALL = "\x1B[0m";
|
|
1077
1039
|
var CLEAR_TO_EOL = "\x1B[K";
|
|
1078
|
-
function
|
|
1079
|
-
|
|
1080
|
-
return text.replace(/\x1b\[0m/g, RESET_ALL + base).replace(/\x1b\[49m/g, bg).replace(/\x1b\[39m/g, fg);
|
|
1040
|
+
function stabilizeOpenLineAnsi(text, fg) {
|
|
1041
|
+
return text.replace(/\x1b\[0m/g, RESET_ALL + fg).replace(/\x1b\[39m/g, fg);
|
|
1081
1042
|
}
|
|
1082
|
-
function
|
|
1043
|
+
function drawOpenInputRule(width, style = "default") {
|
|
1044
|
+
const border = "\u2500".repeat(Math.max(0, width));
|
|
1045
|
+
return resolveBorderFg(style) + border + RESET_ALL + CLEAR_TO_EOL;
|
|
1046
|
+
}
|
|
1047
|
+
function drawOpenInputLine(left, width, right, style = "default") {
|
|
1083
1048
|
const normalizedLeft = style === "shell" ? _chunkNHWHEW7Mcjs.stripAnsiCodes.call(void 0, left) : left;
|
|
1084
1049
|
const normalizedRight = style === "shell" && right ? _chunkNHWHEW7Mcjs.stripAnsiCodes.call(void 0, right) : right;
|
|
1085
|
-
const bg = resolveBoxBg(style);
|
|
1086
1050
|
const fg = resolveBoxFg(style);
|
|
1087
|
-
const
|
|
1088
|
-
const
|
|
1089
|
-
const
|
|
1090
|
-
const visLeft = getVisibleLength(
|
|
1091
|
-
const lBorder = borderFg + "\u2502" + fg;
|
|
1092
|
-
const rBorder = borderFg + "\u2502";
|
|
1051
|
+
const base = fg;
|
|
1052
|
+
const lineWidth = Math.max(0, width);
|
|
1053
|
+
const clippedLeft = truncateVisible2(normalizedLeft, lineWidth);
|
|
1054
|
+
const visLeft = getVisibleLength(clippedLeft);
|
|
1093
1055
|
const END = RESET_ALL + CLEAR_TO_EOL;
|
|
1094
1056
|
if (!normalizedRight) {
|
|
1095
|
-
const pad = Math.max(0,
|
|
1096
|
-
return base +
|
|
1057
|
+
const pad = Math.max(0, lineWidth - visLeft);
|
|
1058
|
+
return base + stabilizeOpenLineAnsi(clippedLeft, fg) + " ".repeat(pad) + END;
|
|
1097
1059
|
}
|
|
1098
|
-
const
|
|
1060
|
+
const clippedRight = truncateVisible2(normalizedRight, lineWidth);
|
|
1061
|
+
const visRight = getVisibleLength(clippedRight);
|
|
1099
1062
|
const minGap = 2;
|
|
1100
|
-
const available =
|
|
1063
|
+
const available = lineWidth - visRight - minGap;
|
|
1101
1064
|
if (available <= 0) {
|
|
1102
|
-
|
|
1103
|
-
return base + lBorder + stabilizeBoxAnsi(normalizedLeft, bg, fg) + " ".repeat(pad) + rBorder + END;
|
|
1065
|
+
return base + stabilizeOpenLineAnsi(truncateVisible2(clippedLeft, lineWidth), fg) + END;
|
|
1104
1066
|
}
|
|
1105
|
-
const
|
|
1106
|
-
const
|
|
1107
|
-
const gap = Math.max(
|
|
1108
|
-
|
|
1109
|
-
return base + lBorder + line + rBorder + END;
|
|
1067
|
+
const finalLeft = truncateVisible2(clippedLeft, available);
|
|
1068
|
+
const finalLeftWidth = getVisibleLength(finalLeft);
|
|
1069
|
+
const gap = Math.max(minGap, lineWidth - finalLeftWidth - visRight);
|
|
1070
|
+
return base + stabilizeOpenLineAnsi(finalLeft, fg) + " ".repeat(gap) + stabilizeOpenLineAnsi(clippedRight, fg) + END;
|
|
1110
1071
|
}
|
|
1111
1072
|
|
|
1112
1073
|
// src/ui/textBufferLayout.ts
|
|
@@ -1882,7 +1843,7 @@ var CONTEXTUAL_HELP_ROWS = [
|
|
|
1882
1843
|
{ left: "? toggles this shortcuts panel", right: "shift + tab toggles plan mode" },
|
|
1883
1844
|
{ left: "shift + enter inserts newline", right: "alt + enter inserts newline" },
|
|
1884
1845
|
{ left: "enter submits prompt", right: "ctrl + c clears input / exits" },
|
|
1885
|
-
{ left: "esc interrupts active turn", right: "type /, @, or ! to switch mode" }
|
|
1846
|
+
{ left: "esc interrupts active turn", right: "type /, @, $, or ! to switch mode" }
|
|
1886
1847
|
];
|
|
1887
1848
|
function truncatePlainText(value, width) {
|
|
1888
1849
|
if (width <= 0) {
|
|
@@ -1957,7 +1918,7 @@ function buildPromptHotTips(currentLine, files, slashCommands, workspaceRoot, sk
|
|
|
1957
1918
|
{ label: "Tab -> ! git status" },
|
|
1958
1919
|
defaultFileTip,
|
|
1959
1920
|
{ label: "Type $ for skills" },
|
|
1960
|
-
{ label: "Type /, @, or ! to switch suggestion mode" },
|
|
1921
|
+
{ label: "Type /, @, $, or ! to switch suggestion mode" },
|
|
1961
1922
|
{ label: "Shift+Tab toggles plan mode" }
|
|
1962
1923
|
];
|
|
1963
1924
|
}
|
|
@@ -2077,7 +2038,7 @@ function buildContextualHelpPanelLines(currentLine, width, files, slashCommands,
|
|
|
2077
2038
|
const rightWidth = Math.max(12, panelWidth - leftWidth - gap);
|
|
2078
2039
|
const tips = buildPromptHotTips(currentLine, files, slashCommands, void 0, skillsProvider);
|
|
2079
2040
|
const primaryTip = _nullishCoalesce(_optionalChain([tips, 'access', _29 => _29[0], 'optionalAccess', _30 => _30.label]), () => ( "Tab -> /help"));
|
|
2080
|
-
const secondaryTip = _nullishCoalesce(_optionalChain([tips, 'access', _31 => _31[1], 'optionalAccess', _32 => _32.label]), () => ( "Type /, @, or ! to switch suggestion mode"));
|
|
2041
|
+
const secondaryTip = _nullishCoalesce(_optionalChain([tips, 'access', _31 => _31[1], 'optionalAccess', _32 => _32.label]), () => ( "Type /, @, $, or ! to switch suggestion mode"));
|
|
2081
2042
|
const formatCell = (value, cellWidth) => {
|
|
2082
2043
|
const plain = sanitizeRenderLine(value);
|
|
2083
2044
|
return truncatePlainText(plain, cellWidth).padEnd(cellWidth, " ");
|
|
@@ -2264,7 +2225,7 @@ function renderSegment(rawSegment, cursorPos, width, prefix, showPlaceholder, re
|
|
|
2264
2225
|
} = normalizePromptRenderOptions(renderOptions, legacyInlineGhostSuffix);
|
|
2265
2226
|
const sanitizedLine = sanitizeRenderLine(rawSegment);
|
|
2266
2227
|
const normalizedLine = sanitizedLine.trim().length === 0 ? "" : sanitizedLine;
|
|
2267
|
-
const innerWidth = Math.max(1, width
|
|
2228
|
+
const innerWidth = Math.max(1, width);
|
|
2268
2229
|
const effectiveCursor = Math.max(0, Math.min(normalizedLine.length, cursorPos));
|
|
2269
2230
|
const fullInput = `${prefix}${normalizedLine}`;
|
|
2270
2231
|
const safeGhostSuffix = sanitizeRenderLine(_nullishCoalesce(inlineGhostSuffix, () => ( "")));
|
|
@@ -2349,16 +2310,15 @@ function buildPromptRenderState(currentLine, cursorPos, width, options, inlineGh
|
|
|
2349
2310
|
options,
|
|
2350
2311
|
inlineGhostSuffix
|
|
2351
2312
|
);
|
|
2352
|
-
const lineText =
|
|
2353
|
-
const clampedCursor = Math.max(0, Math.min(width - 1, segment.cursorColumn
|
|
2313
|
+
const lineText = drawOpenInputLine(segment.styledText, width);
|
|
2314
|
+
const clampedCursor = Math.max(0, Math.min(width - 1, segment.cursorColumn));
|
|
2354
2315
|
return { lineText, cursorColumn: clampedCursor };
|
|
2355
2316
|
}
|
|
2356
2317
|
function buildMultiLineRenderState(currentLine, cursorPos, width, borderStyle = "default", options, inlineGhostSuffix) {
|
|
2357
2318
|
const renderOptions = normalizePromptRenderOptions(options, inlineGhostSuffix);
|
|
2358
2319
|
const { segments, separatorLengths } = splitMultilineSegments(currentLine);
|
|
2359
|
-
const innerWidth = Math.max(1, width - 2);
|
|
2360
2320
|
const continuationPrefix = " ";
|
|
2361
|
-
const contentWidth = Math.max(1,
|
|
2321
|
+
const contentWidth = Math.max(1, width - continuationPrefix.length);
|
|
2362
2322
|
if (segments.length <= 1) {
|
|
2363
2323
|
const singleSegment = sanitizeRenderLine(_nullishCoalesce(segments[0], () => ( "")));
|
|
2364
2324
|
const singleLayout = calculateLayout([singleSegment], contentWidth);
|
|
@@ -2371,8 +2331,8 @@ function buildMultiLineRenderState(currentLine, cursorPos, width, borderStyle =
|
|
|
2371
2331
|
true,
|
|
2372
2332
|
renderOptions
|
|
2373
2333
|
);
|
|
2374
|
-
const lineText =
|
|
2375
|
-
const clampedCursor = Math.max(0, Math.min(width - 1, seg.cursorColumn
|
|
2334
|
+
const lineText = drawOpenInputLine(seg.styledText, width, void 0, borderStyle);
|
|
2335
|
+
const clampedCursor = Math.max(0, Math.min(width - 1, seg.cursorColumn));
|
|
2376
2336
|
return { lines: [lineText], cursorRow: 0, cursorColumn: clampedCursor, lineCount: 1 };
|
|
2377
2337
|
}
|
|
2378
2338
|
}
|
|
@@ -2385,8 +2345,8 @@ function buildMultiLineRenderState(currentLine, cursorPos, width, borderStyle =
|
|
|
2385
2345
|
true,
|
|
2386
2346
|
renderOptions
|
|
2387
2347
|
);
|
|
2388
|
-
const lineText =
|
|
2389
|
-
const clampedCursor = Math.max(0, Math.min(width - 1, seg.cursorColumn
|
|
2348
|
+
const lineText = drawOpenInputLine(seg.styledText, width, void 0, borderStyle);
|
|
2349
|
+
const clampedCursor = Math.max(0, Math.min(width - 1, seg.cursorColumn));
|
|
2390
2350
|
return { lines: [lineText], cursorRow: 0, cursorColumn: clampedCursor, lineCount: 1 };
|
|
2391
2351
|
}
|
|
2392
2352
|
let cursorRow = 0;
|
|
@@ -2419,14 +2379,14 @@ function buildMultiLineRenderState(currentLine, cursorPos, width, borderStyle =
|
|
|
2419
2379
|
cursorRow = visualRowOffset + wrappedCursorRow;
|
|
2420
2380
|
finalCursorColumn = Math.max(
|
|
2421
2381
|
0,
|
|
2422
|
-
Math.min(width - 1, continuationPrefix.length + wrappedCursorCol
|
|
2382
|
+
Math.min(width - 1, continuationPrefix.length + wrappedCursorCol)
|
|
2423
2383
|
);
|
|
2424
2384
|
}
|
|
2425
2385
|
for (let j = 0; j < wrappedLines.length; j++) {
|
|
2426
2386
|
const prefix = !hasPromptPrefix ? PROMPT_INPUT_PREFIX : continuationPrefix;
|
|
2427
2387
|
const prefixStyled = _chunk2VHB43IXcjs.themedFg.call(void 0, "accent", prefix, (value) => _chalk2.default.gray(value));
|
|
2428
2388
|
const styledText = `${prefixStyled}${_nullishCoalesce(wrappedLines[j], () => ( ""))}`;
|
|
2429
|
-
lines.push(
|
|
2389
|
+
lines.push(drawOpenInputLine(styledText, width, void 0, borderStyle));
|
|
2430
2390
|
hasPromptPrefix = true;
|
|
2431
2391
|
overallVisualRow += 1;
|
|
2432
2392
|
}
|
|
@@ -2605,7 +2565,7 @@ function processImagesInText(text, onImageDetected, options = {}) {
|
|
|
2605
2565
|
result = result.replace(rawMatch, `[Image #${id}]`);
|
|
2606
2566
|
writeImageNotice(output, `\u{1F4F7} Loaded image: ${candidatePath} -> [Image #${id}]`, announce);
|
|
2607
2567
|
return true;
|
|
2608
|
-
} catch (
|
|
2568
|
+
} catch (e5) {
|
|
2609
2569
|
}
|
|
2610
2570
|
}
|
|
2611
2571
|
return false;
|
|
@@ -2726,12 +2686,12 @@ function createReadline(stdInput, stdOutput) {
|
|
|
2726
2686
|
try {
|
|
2727
2687
|
stdInput.resume();
|
|
2728
2688
|
drainStdin(stdInput);
|
|
2729
|
-
} catch (
|
|
2689
|
+
} catch (e6) {
|
|
2730
2690
|
}
|
|
2731
2691
|
_chunkNHWHEW7Mcjs.enableBracketedPaste.call(void 0, stdOutput);
|
|
2732
2692
|
try {
|
|
2733
2693
|
stdInput.resume();
|
|
2734
|
-
} catch (
|
|
2694
|
+
} catch (e7) {
|
|
2735
2695
|
}
|
|
2736
2696
|
let rl;
|
|
2737
2697
|
try {
|
|
@@ -2744,7 +2704,7 @@ function createReadline(stdInput, stdOutput) {
|
|
|
2744
2704
|
historySize: 100,
|
|
2745
2705
|
tabSize: 2
|
|
2746
2706
|
});
|
|
2747
|
-
} catch (
|
|
2707
|
+
} catch (e8) {
|
|
2748
2708
|
rl = _readline2.default.createInterface({
|
|
2749
2709
|
input: stdInput,
|
|
2750
2710
|
output: stdOutput,
|
|
@@ -2858,7 +2818,7 @@ async function promptOnce(options) {
|
|
|
2858
2818
|
let chordState = "none";
|
|
2859
2819
|
let chordTimeout = null;
|
|
2860
2820
|
const applyPlanModePrefix = (line) => {
|
|
2861
|
-
const planPrefix =
|
|
2821
|
+
const planPrefix = _chunkQDXRI5AMcjs.getPlanModeManager.call(void 0, ).isEnabled() ? "plan:on" : "plan:off";
|
|
2862
2822
|
if (!line) {
|
|
2863
2823
|
return planPrefix;
|
|
2864
2824
|
}
|
|
@@ -2875,12 +2835,22 @@ async function promptOnce(options) {
|
|
|
2875
2835
|
return applyPlanModePrefix(_nullishCoalesce(statusLine, () => ( "")));
|
|
2876
2836
|
};
|
|
2877
2837
|
const getCurrentText = () => textBuffer.getText();
|
|
2838
|
+
const getReadlineCursorOffset = () => {
|
|
2839
|
+
const lines = textBuffer.getLines();
|
|
2840
|
+
const cursorRow = textBuffer.getCursorRow();
|
|
2841
|
+
const cursorCol = textBuffer.getCursorCol();
|
|
2842
|
+
let offset = 0;
|
|
2843
|
+
for (let i = 0; i < cursorRow; i++) {
|
|
2844
|
+
offset += (_nullishCoalesce(lines[i], () => ( ""))).length + NEWLINE_MARKER.length;
|
|
2845
|
+
}
|
|
2846
|
+
return offset + cursorCol;
|
|
2847
|
+
};
|
|
2878
2848
|
const syncReadlineFromBuffer = () => {
|
|
2879
2849
|
const rlAny = rl;
|
|
2880
2850
|
const text = textBuffer.getText();
|
|
2881
2851
|
const flat = text.replace(/\n/g, NEWLINE_MARKER);
|
|
2882
2852
|
rlAny.line = flat;
|
|
2883
|
-
rlAny.cursor =
|
|
2853
|
+
rlAny.cursor = getReadlineCursorOffset();
|
|
2884
2854
|
};
|
|
2885
2855
|
const getInlineGhostSuffix = () => {
|
|
2886
2856
|
if (contextualHelpVisible) {
|
|
@@ -3033,7 +3003,7 @@ async function promptOnce(options) {
|
|
|
3033
3003
|
inlineShellSuggestionTimeout = void 0;
|
|
3034
3004
|
}
|
|
3035
3005
|
_chunkNHWHEW7Mcjs.disableBracketedPaste.call(void 0, stdOutput);
|
|
3036
|
-
stdOutput.write("\x1B[?25h");
|
|
3006
|
+
stdOutput.write("\x1B[0 q\x1B[?25h");
|
|
3037
3007
|
if (contextualHelpVisible) {
|
|
3038
3008
|
contextualHelpVisible = false;
|
|
3039
3009
|
}
|
|
@@ -3380,10 +3350,10 @@ async function promptOnce(options) {
|
|
|
3380
3350
|
return;
|
|
3381
3351
|
}
|
|
3382
3352
|
if (isShiftTabShortcut(_str, key)) {
|
|
3383
|
-
const planModeManager =
|
|
3353
|
+
const planModeManager = _chunkQDXRI5AMcjs.getPlanModeManager.call(void 0, );
|
|
3384
3354
|
const wasEnabled = planModeManager.isEnabled();
|
|
3385
3355
|
planModeManager.handleShiftTab();
|
|
3386
|
-
showPromptMessage(
|
|
3356
|
+
showPromptMessage(_chunkQDXRI5AMcjs.formatPlanModeToggleMessage.call(void 0, !wasEnabled));
|
|
3387
3357
|
return;
|
|
3388
3358
|
}
|
|
3389
3359
|
if (isPlainTabShortcut(_str, key)) {
|
|
@@ -3546,7 +3516,7 @@ async function promptOnce(options) {
|
|
|
3546
3516
|
const content = _fs.readFileSync.call(void 0, tmpFile, "utf-8");
|
|
3547
3517
|
textBuffer.setText(content.trimEnd());
|
|
3548
3518
|
unlinkSync(tmpFile);
|
|
3549
|
-
} catch (
|
|
3519
|
+
} catch (e9) {
|
|
3550
3520
|
}
|
|
3551
3521
|
syncReadlineFromBuffer();
|
|
3552
3522
|
renderActivePrompt();
|
|
@@ -3684,7 +3654,7 @@ function getComposerBorderStyle(line) {
|
|
|
3684
3654
|
if (/^[\s\u200B-\u200D\uFEFF]*!/u.test(line)) {
|
|
3685
3655
|
return "shell";
|
|
3686
3656
|
}
|
|
3687
|
-
if (
|
|
3657
|
+
if (_chunkQDXRI5AMcjs.getPlanModeManager.call(void 0, ).isEnabled()) {
|
|
3688
3658
|
return "plan";
|
|
3689
3659
|
}
|
|
3690
3660
|
return "default";
|
|
@@ -3744,8 +3714,8 @@ function renderPromptLine(rl, statusLine, output, isResize = false, hasExistingP
|
|
|
3744
3714
|
inlineGhostSuffix
|
|
3745
3715
|
}
|
|
3746
3716
|
);
|
|
3747
|
-
const topBorder =
|
|
3748
|
-
const bottomBorder =
|
|
3717
|
+
const topBorder = drawOpenInputRule(width, borderStyle);
|
|
3718
|
+
const bottomBorder = drawOpenInputRule(width, borderStyle);
|
|
3749
3719
|
const statusRow = formatPromptStatusRow(statusLine, width);
|
|
3750
3720
|
const widthChanged = lastRenderedPromptWidth > 0 && width !== lastRenderedPromptWidth;
|
|
3751
3721
|
const effectiveResize = isResize || widthChanged;
|
|
@@ -3824,7 +3794,7 @@ ${sl}`;
|
|
|
3824
3794
|
const moveUp = PROMPT_LINES_BELOW_INPUT + helpLines.length + STATUS_LINE_COUNT + slashLines.length + (state.lineCount - 1 - state.cursorRow);
|
|
3825
3795
|
_readline2.default.moveCursor(output, 0, -moveUp);
|
|
3826
3796
|
_readline2.default.cursorTo(output, state.cursorColumn);
|
|
3827
|
-
output.write("\x1B[?25h");
|
|
3797
|
+
output.write("\x1B[2 q\x1B[?25h");
|
|
3828
3798
|
lastRenderedContentLines = state.lineCount;
|
|
3829
3799
|
lastRenderedCursorRow = state.cursorRow;
|
|
3830
3800
|
lastRenderedPromptWidth = width;
|
|
@@ -3879,8 +3849,7 @@ ${sl}`;
|
|
|
3879
3849
|
|
|
3880
3850
|
|
|
3881
3851
|
|
|
3882
|
-
|
|
3883
|
-
exports.buildFileMentionSuggestions = buildFileMentionSuggestions; exports.buildSkillMentionSuggestions = buildSkillMentionSuggestions; exports.ImageManager = ImageManager; exports.drawInputTopBorder = drawInputTopBorder; exports.drawInputBottomBorder = drawInputBottomBorder; exports.drawInputBox = drawInputBox; exports.TextBuffer = TextBuffer; exports.handleTextBufferKey = handleTextBufferKey; exports.promptNotify = promptNotify; exports.promptInterrupt = promptInterrupt; exports.STATUS_LINE_COUNT = STATUS_LINE_COUNT; exports.PROMPT_LINES_ABOVE_INPUT = PROMPT_LINES_ABOVE_INPUT; exports.PROMPT_LINES_BELOW_INPUT = PROMPT_LINES_BELOW_INPUT; exports.PROMPT_PLACEHOLDER = PROMPT_PLACEHOLDER; exports.PROMPT_INPUT_PREFIX = PROMPT_INPUT_PREFIX; exports.getHelpOrderedSlashCommands = getHelpOrderedSlashCommands; exports.getRankedSlashCommandMatches = getRankedSlashCommandMatches; exports.resetCachedSkillMentions = resetCachedSkillMentions; exports.buildPromptHotTips = buildPromptHotTips; exports.getPrimaryHotTipSuggestion = getPrimaryHotTipSuggestion; exports.getInlineGhostCompletionSuffix = getInlineGhostCompletionSuffix; exports.buildContextualHelpPanelLines = buildContextualHelpPanelLines; exports.buildContextualPromptStatusLine = buildContextualPromptStatusLine; exports.buildSlashSuggestionLines = buildSlashSuggestionLines; exports.removePastedReferenceFromLine = removePastedReferenceFromLine; exports.isShiftTabShortcut = isShiftTabShortcut; exports.isPlainTabShortcut = isPlainTabShortcut; exports.isShiftEnterSequence = isShiftEnterSequence; exports.isShiftEnterResidualSequence = isShiftEnterResidualSequence; exports.countResidualModifiedEnterSequences = countResidualModifiedEnterSequences; exports.countRawModifiedEnterSequences = countRawModifiedEnterSequences; exports.shouldAutoHideShortcutHelp = shouldAutoHideShortcutHelp; exports.getPromptBlockWidth = getPromptBlockWidth; exports.buildPromptRenderState = buildPromptRenderState; exports.buildMultiLineRenderState = buildMultiLineRenderState; exports.formatPromptStatusRow = formatPromptStatusRow; exports.installReadlineOutputGuard = installReadlineOutputGuard; exports.processImagesInText = processImagesInText; exports.NEWLINE_MARKER = NEWLINE_MARKER; exports.safeEmitKeypressEvents = safeEmitKeypressEvents; exports.convertNewlineMarkersToNewlines = convertNewlineMarkersToNewlines; exports.readInstruction = readInstruction; exports.leavePromptSurface = leavePromptSurface; exports.getActiveTextBuffer = getActiveTextBuffer; exports.getLastRenderedContentLines = getLastRenderedContentLines; exports.getLastRenderedCursorRow = getLastRenderedCursorRow; exports.resetPromptRenderState = resetPromptRenderState;
|
|
3852
|
+
exports.buildFileMentionSuggestions = buildFileMentionSuggestions; exports.buildSkillMentionSuggestions = buildSkillMentionSuggestions; exports.ImageManager = ImageManager; exports.drawOpenInputRule = drawOpenInputRule; exports.drawOpenInputLine = drawOpenInputLine; exports.TextBuffer = TextBuffer; exports.handleTextBufferKey = handleTextBufferKey; exports.promptNotify = promptNotify; exports.promptInterrupt = promptInterrupt; exports.STATUS_LINE_COUNT = STATUS_LINE_COUNT; exports.PROMPT_LINES_ABOVE_INPUT = PROMPT_LINES_ABOVE_INPUT; exports.PROMPT_LINES_BELOW_INPUT = PROMPT_LINES_BELOW_INPUT; exports.PROMPT_PLACEHOLDER = PROMPT_PLACEHOLDER; exports.PROMPT_INPUT_PREFIX = PROMPT_INPUT_PREFIX; exports.getHelpOrderedSlashCommands = getHelpOrderedSlashCommands; exports.getRankedSlashCommandMatches = getRankedSlashCommandMatches; exports.resetCachedSkillMentions = resetCachedSkillMentions; exports.buildPromptHotTips = buildPromptHotTips; exports.getPrimaryHotTipSuggestion = getPrimaryHotTipSuggestion; exports.getInlineGhostCompletionSuffix = getInlineGhostCompletionSuffix; exports.buildContextualHelpPanelLines = buildContextualHelpPanelLines; exports.buildContextualPromptStatusLine = buildContextualPromptStatusLine; exports.buildSlashSuggestionLines = buildSlashSuggestionLines; exports.removePastedReferenceFromLine = removePastedReferenceFromLine; exports.isShiftTabShortcut = isShiftTabShortcut; exports.isPlainTabShortcut = isPlainTabShortcut; exports.isShiftEnterSequence = isShiftEnterSequence; exports.isShiftEnterResidualSequence = isShiftEnterResidualSequence; exports.countResidualModifiedEnterSequences = countResidualModifiedEnterSequences; exports.countRawModifiedEnterSequences = countRawModifiedEnterSequences; exports.shouldAutoHideShortcutHelp = shouldAutoHideShortcutHelp; exports.getPromptBlockWidth = getPromptBlockWidth; exports.buildPromptRenderState = buildPromptRenderState; exports.buildMultiLineRenderState = buildMultiLineRenderState; exports.formatPromptStatusRow = formatPromptStatusRow; exports.installReadlineOutputGuard = installReadlineOutputGuard; exports.processImagesInText = processImagesInText; exports.NEWLINE_MARKER = NEWLINE_MARKER; exports.safeEmitKeypressEvents = safeEmitKeypressEvents; exports.convertNewlineMarkersToNewlines = convertNewlineMarkersToNewlines; exports.readInstruction = readInstruction; exports.leavePromptSurface = leavePromptSurface; exports.getActiveTextBuffer = getActiveTextBuffer; exports.getLastRenderedContentLines = getLastRenderedContentLines; exports.getLastRenderedCursorRow = getLastRenderedCursorRow; exports.resetPromptRenderState = resetPromptRenderState;
|
|
3884
3853
|
/**
|
|
3885
3854
|
* @license
|
|
3886
3855
|
* Copyright 2025 Autohand AI LLC
|
|
@@ -5,10 +5,10 @@ var _chunkWKRDBCP2cjs = require('./chunk-WKRDBCP2.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDMM2BKSVcjs = require('./chunk-DMM2BKSV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCNQKIWIScjs = require('./chunk-CNQKIWIS.cjs');
|
|
12
12
|
|
|
13
13
|
// src/commands/search.ts
|
|
14
14
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
@@ -51,7 +51,7 @@ async function search(ctx) {
|
|
|
51
51
|
}
|
|
52
52
|
];
|
|
53
53
|
try {
|
|
54
|
-
const result = await
|
|
54
|
+
const result = await _chunkDMM2BKSVcjs.showModal.call(void 0, {
|
|
55
55
|
title: "Select search provider:",
|
|
56
56
|
options: providerOptions,
|
|
57
57
|
initialIndex: providerOptions.findIndex((c) => c.value === currentConfig.provider)
|
|
@@ -66,7 +66,7 @@ async function search(ctx) {
|
|
|
66
66
|
let exaApiKey = currentConfig.exaApiKey;
|
|
67
67
|
if (provider === "exa" && !exaKeySet) {
|
|
68
68
|
console.log(_chalk2.default.gray("\nGet your Exa.ai API key at: https://exa.ai\n"));
|
|
69
|
-
const apiKey = await
|
|
69
|
+
const apiKey = await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
70
70
|
title: "Enter Exa.ai API key:"
|
|
71
71
|
});
|
|
72
72
|
if (_optionalChain([apiKey, 'optionalAccess', _ => _.trim, 'call', _2 => _2()])) {
|
|
@@ -78,7 +78,7 @@ async function search(ctx) {
|
|
|
78
78
|
}
|
|
79
79
|
if (provider === "brave" && !braveKeySet) {
|
|
80
80
|
console.log(_chalk2.default.gray("\nGet your free Brave Search API key at: https://brave.com/search/api/\n"));
|
|
81
|
-
const apiKey = await
|
|
81
|
+
const apiKey = await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
82
82
|
title: "Enter Brave Search API key:"
|
|
83
83
|
});
|
|
84
84
|
if (_optionalChain([apiKey, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()])) {
|
|
@@ -90,7 +90,7 @@ async function search(ctx) {
|
|
|
90
90
|
}
|
|
91
91
|
if (provider === "parallel" && !parallelKeySet) {
|
|
92
92
|
console.log(_chalk2.default.gray("\nGet your Parallel.ai API key at: https://platform.parallel.ai\n"));
|
|
93
|
-
const apiKey = await
|
|
93
|
+
const apiKey = await _chunkDMM2BKSVcjs.showPassword.call(void 0, {
|
|
94
94
|
title: "Enter Parallel.ai API key:"
|
|
95
95
|
});
|
|
96
96
|
if (_optionalChain([apiKey, 'optionalAccess', _5 => _5.trim, 'call', _6 => _6()])) {
|
|
@@ -113,7 +113,7 @@ async function search(ctx) {
|
|
|
113
113
|
parallelApiKey,
|
|
114
114
|
exaApiKey
|
|
115
115
|
};
|
|
116
|
-
await
|
|
116
|
+
await _chunkCNQKIWIScjs.saveConfig.call(void 0, config);
|
|
117
117
|
console.log(_chalk2.default.green(`
|
|
118
118
|
\u2713 Search provider set to ${provider} and saved to config`));
|
|
119
119
|
} else {
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-HQUSEWT4.js";
|
|
4
4
|
import {
|
|
5
5
|
getPlanModeManager
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
AgentRegistry
|
|
9
|
-
} from "./chunk-575PXZX7.js";
|
|
6
|
+
} from "./chunk-TWBAU46X.js";
|
|
10
7
|
import {
|
|
11
8
|
isGoalFeatureEnabled
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X53SHYCG.js";
|
|
10
|
+
import {
|
|
11
|
+
AgentRegistry
|
|
12
|
+
} from "./chunk-TJFKA6A7.js";
|
|
13
13
|
|
|
14
14
|
// src/core/agents/SubAgent.ts
|
|
15
15
|
import chalk2 from "chalk";
|
|
@@ -678,7 +678,7 @@ var GOAL_TOOL_DEFINITIONS = [
|
|
|
678
678
|
},
|
|
679
679
|
{
|
|
680
680
|
name: "create_goal",
|
|
681
|
-
description: "Create a persistent goal only when the user explicitly asks for durable goal tracking or long-running goal pursuit. Do not infer goals from ordinary tasks.",
|
|
681
|
+
description: "Create a persistent goal only when the user explicitly asks for durable goal tracking or long-running goal pursuit. If a non-terminal goal is already active, the new goal is queued. Do not infer goals from ordinary tasks.",
|
|
682
682
|
parameters: {
|
|
683
683
|
type: "object",
|
|
684
684
|
properties: {
|
|
@@ -693,7 +693,7 @@ var GOAL_TOOL_DEFINITIONS = [
|
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
name: "create_goal_from_template",
|
|
696
|
-
description: "Resolve a reusable .pi-goals template and create the resulting persistent goal when the user explicitly requests a template/workflow goal.",
|
|
696
|
+
description: "Resolve a reusable .pi-goals template and create the resulting persistent goal when the user explicitly requests a template/workflow goal. If a non-terminal goal is already active, the new goal is queued.",
|
|
697
697
|
parameters: {
|
|
698
698
|
type: "object",
|
|
699
699
|
properties: {
|
|
@@ -6,10 +6,10 @@ var _chunkNVATU4V6cjs = require('./chunk-NVATU4V6.cjs');
|
|
|
6
6
|
var _chunkLJD7KR3Lcjs = require('./chunk-LJD7KR3L.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCNQKIWIScjs = require('./chunk-CNQKIWIS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7TO3PDMVcjs = require('./chunk-7TO3PDMV.cjs');
|
|
13
13
|
|
|
14
14
|
// src/commands/usage.ts
|
|
15
15
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -54,7 +54,7 @@ function parseContextWindowOverride(value) {
|
|
|
54
54
|
return Math.floor(value);
|
|
55
55
|
}
|
|
56
56
|
function normalizeModelId(model) {
|
|
57
|
-
return model.trim().toLowerCase().replace(/^openai\//, "").replace(/^google\//, "").replace(/^deepseek\//, "");
|
|
57
|
+
return model.trim().toLowerCase().replace(/^openai\//, "").replace(/^google\//, "").replace(/^deepseek\//, "").replace(/^zai\//, "").replace(/^sakana\//, "");
|
|
58
58
|
}
|
|
59
59
|
function inferContextWindow(model) {
|
|
60
60
|
const normalized = normalizeModelId(model);
|
|
@@ -70,6 +70,9 @@ function inferContextWindow(model) {
|
|
|
70
70
|
return 1e6;
|
|
71
71
|
}
|
|
72
72
|
if (normalized.startsWith("deepseek-v4")) return 1e6;
|
|
73
|
+
if (normalized.startsWith("glm-5.2")) return 1e6;
|
|
74
|
+
if (normalized.startsWith("glm-5.1")) return 2e5;
|
|
75
|
+
if (normalized === "fugu" || normalized === "fugu-ultra") return 1e6;
|
|
73
76
|
return void 0;
|
|
74
77
|
}
|
|
75
78
|
function getContextWindow(model, configuredContextWindow) {
|
|
@@ -226,7 +229,7 @@ function resolveProviderSettings(config, provider) {
|
|
|
226
229
|
if (!config || !provider) {
|
|
227
230
|
return void 0;
|
|
228
231
|
}
|
|
229
|
-
return _nullishCoalesce(
|
|
232
|
+
return _nullishCoalesce(_chunkCNQKIWIScjs.getProviderConfig.call(void 0, config, provider), () => ( void 0));
|
|
230
233
|
}
|
|
231
234
|
function resolveActiveProvider(ctx) {
|
|
232
235
|
return _nullishCoalesce(_nullishCoalesce(_optionalChain([ctx, 'access', _4 => _4.config, 'optionalAccess', _5 => _5.provider]), () => ( ctx.provider)), () => ( "openrouter"));
|
|
@@ -263,7 +266,7 @@ function resolveAccount(config) {
|
|
|
263
266
|
return "not signed in";
|
|
264
267
|
}
|
|
265
268
|
function isUsageV2Enabled(ctx) {
|
|
266
|
-
const localDefault = ctx.config ? _nullishCoalesce(_optionalChain([
|
|
269
|
+
const localDefault = ctx.config ? _nullishCoalesce(_optionalChain([_chunk7TO3PDMVcjs.getFeatureState.call(void 0, ctx.config, USAGE_V2_FLAG), 'optionalAccess', _20 => _20.enabled]), () => ( false)) : false;
|
|
267
270
|
return _nullishCoalesce(_optionalChain([ctx, 'access', _21 => _21.isFeatureEnabled, 'optionalCall', _22 => _22(USAGE_V2_FLAG, localDefault)]), () => ( localDefault));
|
|
268
271
|
}
|
|
269
272
|
function gatherUsageDashboardData(ctx) {
|
|
@@ -341,7 +344,7 @@ function formatUsageDashboard(data) {
|
|
|
341
344
|
}
|
|
342
345
|
async function usage(ctx) {
|
|
343
346
|
if (!isUsageV2Enabled(ctx)) {
|
|
344
|
-
return "The /usage dashboard is behind usage_v2. Run /
|
|
347
|
+
return "The /usage dashboard is behind usage_v2. Run /experiments enable usage_v2, then /usage again. No restart required.";
|
|
345
348
|
}
|
|
346
349
|
await _optionalChain([ctx, 'access', _34 => _34.trackFeatureActivation, 'optionalCall', _35 => _35(USAGE_V2_FLAG, {
|
|
347
350
|
provider: ctx.provider,
|