autohand-cli 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -76
- package/dist/AgentRegistry-BBQRODQC.cjs +18 -0
- package/dist/AgentRegistry-JBXZUPML.js +18 -0
- package/dist/{CommunitySkillsCache-ZEQWP6YM.js → CommunitySkillsCache-CI7UN2DX.js} +2 -2
- package/dist/CommunitySkillsCache-XTQ6RMTA.cjs +8 -0
- package/dist/{HookManager-CWLTFKWO.js → HookManager-BELBPQQI.js} +1 -1
- package/dist/{HookManager-TMAJQU4S.cjs → HookManager-ZL2CLAJW.cjs} +2 -2
- package/dist/{ImportWizard-MQXEED2U.cjs → ImportWizard-U6CIJREW.cjs} +13 -13
- package/dist/{ImportWizard-QBKQEXDW.js → ImportWizard-VJFSWSUQ.js} +4 -4
- package/dist/LearnAdvisor-LAURA3IB.cjs +9 -0
- package/dist/LearnAdvisor-RFOBXFG7.js +9 -0
- package/dist/MemoryManager-3A2VRPF2.js +9 -0
- package/dist/MemoryManager-UOEQZIDC.cjs +9 -0
- package/dist/{NVIDIAProvider-2HR737UE.js → NVIDIAProvider-AFNJNWJM.js} +1 -1
- package/dist/NVIDIAProvider-L5GTYRCQ.cjs +14 -0
- package/dist/{PermissionManager-KMYILJ4Z.js → PermissionManager-N2LDSOYF.js} +3 -3
- package/dist/PermissionManager-ZNURIEYR.cjs +11 -0
- package/dist/ProviderFactory-3BFS65V7.cjs +13 -0
- package/dist/{ProviderFactory-HFPRVQ25.js → ProviderFactory-XUT6BSGB.js} +4 -2
- package/dist/SessionManager-LGPQIA57.cjs +10 -0
- package/dist/{SessionManager-PNBTJJTQ.js → SessionManager-OR4KDDDS.js} +2 -2
- package/dist/{SkillsRegistry-4RRD5GMX.js → SkillsRegistry-IL3GWROU.js} +2 -2
- package/dist/SkillsRegistry-PM34DQNA.cjs +9 -0
- package/dist/SubAgent-2WG4QQB5.cjs +13 -0
- package/dist/SubAgent-ICGN23TQ.js +13 -0
- package/dist/{SyncApiClient-LRPFNCKJ.js → SyncApiClient-G3FM65IV.js} +1 -1
- package/dist/SyncApiClient-ODBDECOG.cjs +11 -0
- package/dist/{about-BW3PDZUU.js → about-OYVGQMJJ.js} +5 -4
- package/dist/about-U2BH7HDR.cjs +15 -0
- package/dist/{acp-VHEL7BOW.js → acp-JWHGXZL5.js} +207 -102
- package/dist/{acp-EOETGAHC.cjs → acp-S37JOBCS.cjs} +226 -121
- package/dist/actionExecutor-2QEPMELQ.cjs +28 -0
- package/dist/actionExecutor-6NCCORRB.js +28 -0
- package/dist/add-dir-KFUHSIR2.cjs +11 -0
- package/dist/{add-dir-VFX7QT4E.js → add-dir-MM2BM2Z2.js} +2 -2
- package/dist/agent-DUIYLIVN.js +132 -0
- package/dist/agent-YYEHGDAK.cjs +132 -0
- package/dist/agents-GBGG4CW7.cjs +19 -0
- package/dist/agents-ZH34C72F.js +19 -0
- package/dist/agents-new-ERXLS7SB.cjs +17 -0
- package/dist/agents-new-EVTGPTA4.js +17 -0
- package/dist/{autoSkill-EFMK6WU6.js → autoSkill-HEWKJ5JV.js} +2 -2
- package/dist/autoSkill-YL6PN6AV.cjs +20 -0
- package/dist/automode-4BJ7FNPL.cjs +10 -0
- package/dist/{automode-BMYSRM34.js → automode-S4U7A7Q2.js} +2 -2
- package/dist/chrome-45ZXHL5N.cjs +22 -0
- package/dist/{chrome-NHJ44WUN.js → chrome-BBSRVG6S.js} +2 -2
- package/dist/chrome-IFVZRHAT.cjs +50 -0
- package/dist/chrome-MYE6DNA2.js +22 -0
- package/dist/chunk-24CEJYEG.cjs +579 -0
- package/dist/{chunk-47PHDKNW.cjs → chunk-255GIVM2.cjs} +6 -6
- package/dist/{chunk-DIZTWFVR.cjs → chunk-2BDSR2OW.cjs} +238 -61
- package/dist/{chunk-BL2UC7HC.js → chunk-2BPIR7LA.js} +121 -4
- package/dist/{chunk-BQ22N3TX.cjs → chunk-2NY7OHBF.cjs} +47 -27
- package/dist/chunk-2WUNHTXL.js +303 -0
- package/dist/{chunk-HQWQZML5.cjs → chunk-34B6ZO6W.cjs} +124 -7
- package/dist/{chunk-5JTTM5SC.js → chunk-3BJN7GAH.js} +1 -1
- package/dist/{chunk-4256YRCO.cjs → chunk-3CAXECWJ.cjs} +30 -17
- package/dist/{chunk-KNTUI4TZ.cjs → chunk-3CBYUBZC.cjs} +5 -5
- package/dist/chunk-3DF3GZQ7.js +277 -0
- package/dist/{chunk-E26KKI46.cjs → chunk-3JURXAL6.cjs} +61 -8
- package/dist/{chunk-MOJ7ADW4.cjs → chunk-3KWAP2Y3.cjs} +88 -9
- package/dist/{chunk-OHWMWKJQ.js → chunk-3MCK6UBL.js} +1 -1
- package/dist/{chunk-5VHP6HDQ.js → chunk-3TH7IK4M.js} +62 -9
- package/dist/{chunk-ACDQGA4Z.js → chunk-3V77OB3W.js} +7 -72
- package/dist/{chunk-HS4USDND.cjs → chunk-3Y5UEK7K.cjs} +4 -4
- package/dist/{chunk-XV2HXRHX.js → chunk-4GPPSBEZ.js} +3 -3
- package/dist/chunk-5CMBAJ6K.js +377 -0
- package/dist/{chunk-MO4KP6XS.cjs → chunk-5YRXFBYZ.cjs} +35 -6
- package/dist/chunk-5ZNYX4VH.cjs +71 -0
- package/dist/chunk-6AC2TT26.js +156 -0
- package/dist/{chunk-UGFVM77J.cjs → chunk-6EIQ6A6U.cjs} +2 -2
- package/dist/{chunk-SWCQM52V.js → chunk-6HSEDXVF.js} +4 -4
- package/dist/{chunk-QQ7PANOP.js → chunk-6NUXK62F.js} +1 -1
- package/dist/{chunk-5CMYEM3R.cjs → chunk-6TGCAPYH.cjs} +62 -9
- package/dist/{chunk-NMQ47RCG.js → chunk-6W3SZCSP.js} +1 -1
- package/dist/{chunk-VRMZO6TB.js → chunk-73LV3DDZ.js} +7 -6
- package/dist/{chunk-3GUEUCZK.js → chunk-7BGGLIQF.js} +85 -1
- package/dist/{chunk-RBHANOYY.js → chunk-7DJJGKM6.js} +47 -3
- package/dist/{chunk-LQBONA55.cjs → chunk-7EEK7CRR.cjs} +85 -1
- package/dist/chunk-7TO3PDMV.cjs +324 -0
- package/dist/chunk-7UU22RSH.cjs +277 -0
- package/dist/{chunk-E6GFD7VR.cjs → chunk-A3GAM6FM.cjs} +11 -11
- package/dist/{chunk-DEQVRSV5.cjs → chunk-A7DJU75T.cjs} +8 -8
- package/dist/{chunk-DPSIGY6L.cjs → chunk-AAAO4ERQ.cjs} +9 -9
- package/dist/{chunk-FQAVGSPW.js → chunk-AAJLMP57.js} +2 -2
- package/dist/chunk-ABR756QN.js +529 -0
- package/dist/{chunk-JYKPWK5O.js → chunk-APFGDIPD.js} +3 -1
- package/dist/{chunk-Y3M2DABP.js → chunk-APQYRMYL.js} +4 -4
- package/dist/{chunk-Q2IL4DDI.cjs → chunk-AZKOIF2G.cjs} +62 -19
- package/dist/{chunk-MXVIDIC6.cjs → chunk-AZLHUPNC.cjs} +2 -2
- package/dist/chunk-B55VCYSQ.cjs +30 -0
- package/dist/{chunk-WZV6UVPY.js → chunk-BLQUMSM3.js} +1 -1
- package/dist/{chunk-PHJO5YAL.cjs → chunk-BXKPX6K4.cjs} +9 -9
- package/dist/{chunk-3KLSNNRW.cjs → chunk-C66FN2LP.cjs} +4 -4
- package/dist/{chunk-OV3PVUYN.js → chunk-CH7KUFAS.js} +9 -9
- package/dist/{chunk-CWINVFRI.cjs → chunk-CILSXOPI.cjs} +17 -17
- package/dist/{chunk-3UT7R3XV.js → chunk-CM24K6ZT.js} +145 -12
- package/dist/chunk-CMEZ42F2.cjs +303 -0
- package/dist/{chunk-46C73ZKK.cjs → chunk-CNQKIWIS.cjs} +152 -19
- package/dist/{chunk-5JFTY3VU.js → chunk-CSTUTDTH.js} +2 -1
- package/dist/{chunk-REMGR23V.cjs → chunk-CSUGNNJY.cjs} +10 -4
- package/dist/{chunk-TBOLJDUG.js → chunk-D6HB3H3L.js} +31 -11
- package/dist/{chunk-OM24WXEE.js → chunk-D7AYKVKW.js} +2 -2
- package/dist/{chunk-6GUODJKM.cjs → chunk-DLCXWOWT.cjs} +23 -23
- package/dist/{chunk-CH2J4PVE.cjs → chunk-DMM2BKSV.cjs} +121 -28
- package/dist/{chunk-M4KNC5BQ.js → chunk-DW3DPV77.js} +1 -1
- package/dist/chunk-ECQD2QC3.cjs +33 -0
- package/dist/{chunk-UEIXJG45.js → chunk-EEYOS3UC.js} +116 -80
- package/dist/{chunk-7HPWMALN.js → chunk-EF2EN5CR.js} +2 -2
- package/dist/{chunk-7LWQCE4Y.cjs → chunk-EFXFURDY.cjs} +192 -58
- package/dist/chunk-EK34UZPB.cjs +40 -0
- package/dist/{chunk-7JLT2VNW.cjs → chunk-FJR6EZLO.cjs} +9666 -7201
- package/dist/{chunk-GZ6DV2UG.js → chunk-FPO7YNPQ.js} +1 -1
- package/dist/{chunk-O64I2GYI.js → chunk-FS4I6BNR.js} +1 -1
- package/dist/{chunk-MX75JYIY.js → chunk-FSJ2MNOC.js} +3 -3
- package/dist/{chunk-7RFJB75Y.js → chunk-GEHZMC4G.js} +11 -8
- package/dist/{chunk-UWFG2R2I.cjs → chunk-GO6C2RAR.cjs} +36 -9
- package/dist/{chunk-WGLBC5AY.cjs → chunk-GSMR6V36.cjs} +4 -4
- package/dist/{chunk-Z3XSSF7B.js → chunk-GSZWATME.js} +1 -1
- package/dist/{chunk-7MU7LWF3.cjs → chunk-GYLGCR6F.cjs} +5 -5
- package/dist/{chunk-O6TQP7U7.cjs → chunk-H3OOWNYQ.cjs} +3 -3
- package/dist/{chunk-2QL6MNXG.js → chunk-H65446XW.js} +115 -20
- package/dist/chunk-H7HXRRHK.js +324 -0
- package/dist/{chunk-ZZ63NW7A.cjs → chunk-HN2JTDN5.cjs} +17 -17
- package/dist/{chunk-AOKCI722.cjs → chunk-HNXUZ5OY.cjs} +2 -2
- package/dist/{chunk-AUYSIEVV.cjs → chunk-HOYT3E65.cjs} +3 -3
- package/dist/{chunk-DMRXF5DU.js → chunk-HTPY5ESD.js} +3 -3
- package/dist/chunk-HTU4W3GB.js +183 -0
- package/dist/{chunk-3DDL2E55.cjs → chunk-HVLWH2AF.cjs} +10 -10
- package/dist/{chunk-HSCUPEA4.cjs → chunk-HZTEU4W5.cjs} +74 -105
- package/dist/{chunk-XGMI6IYB.cjs → chunk-I5T7LPFP.cjs} +7 -7
- package/dist/{chunk-XIVFAD2L.js → chunk-IB5CJXE7.js} +173 -12
- package/dist/chunk-INNXFLDR.cjs +388 -0
- package/dist/{chunk-75EDROHL.cjs → chunk-JFLEP3T7.cjs} +10 -10
- package/dist/chunk-JJGDOBFL.js +40 -0
- package/dist/{chunk-VBOFPU5M.cjs → chunk-JM3ZTQUK.cjs} +13 -9
- package/dist/{chunk-HJIXWGQZ.js → chunk-JSU46T6K.js} +1 -1
- package/dist/{chunk-AT7OWLY5.js → chunk-K6WN6BT4.js} +1 -1
- package/dist/{chunk-LN7D3EJZ.js → chunk-KA2U6MY2.js} +4 -3
- package/dist/{chunk-3S563FNF.cjs → chunk-KIQH3SMT.cjs} +34 -31
- package/dist/{chunk-BWF4VDYE.js → chunk-KPRXHIE2.js} +54 -85
- package/dist/{chunk-Z4LIPMPM.js → chunk-L6OH44HL.js} +13 -9
- package/dist/{chunk-A7HHCIDQ.js → chunk-LIO3RX2Z.js} +2 -2
- package/dist/{chunk-DLP436GI.js → chunk-LOSXLH7P.js} +110 -17
- package/dist/{chunk-IEXKKKOF.cjs → chunk-LSOR72PB.cjs} +23 -23
- package/dist/{chunk-IAGCRVJ3.js → chunk-MA3AVDCC.js} +55 -12
- package/dist/{chunk-B5CGDNMR.js → chunk-ME3S2WIR.js} +3 -3
- package/dist/{chunk-HKYZSUQ5.js → chunk-NC2I2M4P.js} +4 -4
- package/dist/{chunk-GBMDFWJX.cjs → chunk-NC4A4LVC.cjs} +13 -13
- package/dist/{chunk-E46DJH5S.js → chunk-NGEK5FCJ.js} +176 -3
- package/dist/{chunk-TQ33WBY5.cjs → chunk-NHWHEW7M.cjs} +2 -1
- package/dist/{chunk-62RTC3XX.js → chunk-NKW6CHXQ.js} +1 -1
- package/dist/{chunk-3PXKRVCW.js → chunk-NOWCRKP2.js} +10 -4
- package/dist/{chunk-HXJEGMGB.js → chunk-NUB2LMB6.js} +2 -2
- package/dist/chunk-NVATU4V6.cjs +44 -0
- package/dist/chunk-O246MKIW.cjs +267 -0
- package/dist/{chunk-QCHIDZBA.js → chunk-OGFWL2PS.js} +1 -1
- package/dist/{chunk-JJ4KA7HK.cjs → chunk-ONNGAR6W.cjs} +415 -551
- package/dist/{chunk-TKKN34TV.js → chunk-OOFR6A62.js} +33 -4
- package/dist/{chunk-6NVAK6CK.js → chunk-OZ7FHO7J.js} +2 -2
- package/dist/{chunk-2CGE7ZV3.cjs → chunk-P5EWGUI2.cjs} +201 -28
- package/dist/{chunk-GGLKUENP.js → chunk-P6BQJPAI.js} +191 -14
- package/dist/{chunk-TWQDAUZU.js → chunk-PG2JIU5M.js} +60 -7
- package/dist/chunk-PI27G2ED.cjs +377 -0
- package/dist/{chunk-YV63VW4K.js → chunk-PI7LRPL6.js} +1 -1
- package/dist/{chunk-TXPSTCG7.cjs → chunk-PMPEC5HN.cjs} +18 -15
- package/dist/{chunk-ROLA6EFO.cjs → chunk-PYUP7AKY.cjs} +14 -14
- package/dist/{chunk-BFQDQRDE.js → chunk-QC5Z3ZT5.js} +2 -2
- package/dist/chunk-QDO4L2A7.cjs +156 -0
- package/dist/{chunk-LFDPTJYF.cjs → chunk-QDXRI5AM.cjs} +1 -1
- package/dist/{chunk-3LJJG5YY.cjs → chunk-QLZOMZO5.cjs} +4 -3
- package/dist/chunk-QVXMSQOG.js +430 -0
- package/dist/{chunk-ZHJ7JGME.cjs → chunk-R4UKBKDY.cjs} +11 -11
- package/dist/{chunk-IGMPWJ2I.cjs → chunk-R75AWII3.cjs} +118 -23
- package/dist/{chunk-VGEV44V2.cjs → chunk-RD5PLUIX.cjs} +191 -30
- package/dist/{chunk-I24CWKKK.js → chunk-RGB34CV5.js} +3 -3
- package/dist/{chunk-CHI52KFR.cjs → chunk-RJCZLFHE.cjs} +246 -39
- package/dist/{chunk-D2OSPLYC.cjs → chunk-RKWNM2BJ.cjs} +2 -2
- package/dist/{chunk-FGT6KK6T.js → chunk-RMVONICR.js} +3 -3
- package/dist/{chunk-Q6AC3PHY.cjs → chunk-RPSYRJL7.cjs} +10 -4
- package/dist/chunk-RS2E32YB.js +71 -0
- package/dist/chunk-RWKU2X7O.js +388 -0
- package/dist/chunk-RZLEGVMH.cjs +565 -0
- package/dist/{chunk-5F6ZKSHO.js → chunk-S2L3Y677.js} +1 -1
- package/dist/{chunk-ARBEHFCG.js → chunk-S7KVUIOS.js} +1 -1
- package/dist/{chunk-AC7DZ6SK.cjs → chunk-SACJJ6NO.cjs} +5 -3
- package/dist/{chunk-IKUMVBCW.cjs → chunk-SD3NTC7D.cjs} +48 -4
- package/dist/{chunk-CBFH2J3O.js → chunk-SJQU2ZFR.js} +246 -39
- package/dist/{chunk-GWO66KBI.js → chunk-SKAQKQFF.js} +12 -2
- package/dist/chunk-T4DXP5OP.js +30 -0
- package/dist/{chunk-CFFE4VA3.js → chunk-T6FTB6K2.js} +1 -1
- package/dist/{chunk-U4C3HW6P.js → chunk-T6N6GRFT.js} +13 -10
- package/dist/{chunk-D6GZBSOX.js → chunk-TJFKA6A7.js} +82 -3
- package/dist/{chunk-2HOLOHVK.js → chunk-TJZUPS4Z.js} +163 -299
- package/dist/{chunk-RBZ7AFX7.cjs → chunk-TLKHZ425.cjs} +2 -2
- package/dist/{chunk-J2K57QM7.cjs → chunk-TQ24NLXO.cjs} +6 -6
- package/dist/{chunk-LUMV3DB2.js → chunk-TWBAU46X.js} +1 -1
- package/dist/{chunk-OPNI6O7F.cjs → chunk-TZB5XADL.cjs} +4 -4
- package/dist/{chunk-6HH236FV.cjs → chunk-UAYXZXWU.cjs} +4 -4
- package/dist/{chunk-MPULXVC4.cjs → chunk-UKBFNBDO.cjs} +11 -11
- package/dist/chunk-UMJYX5KD.js +565 -0
- package/dist/chunk-USKYTHDL.cjs +235 -0
- package/dist/chunk-V4HGZSKQ.cjs +183 -0
- package/dist/{chunk-MQESBFBZ.cjs → chunk-VAJUSZMC.cjs} +21 -20
- package/dist/{chunk-PQLKJCIE.js → chunk-VGQG4NBJ.js} +2 -2
- package/dist/chunk-VLUIVJ3J.js +235 -0
- package/dist/chunk-VOBINVMV.cjs +430 -0
- package/dist/{chunk-L4F7SUYL.js → chunk-VSHKKCSH.js} +16 -5
- package/dist/{chunk-LDJQ5QHG.cjs → chunk-VSZU3MGA.cjs} +28 -17
- package/dist/{chunk-YFXTE422.cjs → chunk-VWHAUB77.cjs} +8 -3
- package/dist/{chunk-EZJHLOWP.js → chunk-VXGYFX45.js} +20 -7
- package/dist/{chunk-JIMSII7R.js → chunk-WH6YUQDB.js} +193 -59
- package/dist/{chunk-VKBIE6I6.js → chunk-WQ6TD55V.js} +2 -2
- package/dist/{chunk-ZR46OJNZ.js → chunk-WQWECXTY.js} +3 -3
- package/dist/{chunk-SOLBYSLY.cjs → chunk-WVDJUJH6.cjs} +2 -2
- package/dist/{chunk-QKP772OZ.js → chunk-X24VIVDZ.js} +963 -103
- package/dist/{chunk-37M5UM6I.js → chunk-X4NRTLXD.js} +7 -1
- package/dist/chunk-X53SHYCG.js +27 -0
- package/dist/{chunk-PUD76XQT.cjs → chunk-XB2Z4ZAK.cjs} +5 -5
- package/dist/chunk-Y47OJGLB.cjs +27 -0
- package/dist/{chunk-WRTXCQ3V.cjs → chunk-Y4MN27V3.cjs} +1080 -220
- package/dist/{chunk-ZK6HOR62.js → chunk-YEHFYZFU.js} +7 -2
- package/dist/{chunk-FFBDRUO5.cjs → chunk-YICIUY23.cjs} +1 -1
- package/dist/{chunk-PDHT7LQS.cjs → chunk-YMXYC777.cjs} +3 -3
- package/dist/{chunk-TJNBASFD.cjs → chunk-Z3GRWK6O.cjs} +8 -8
- package/dist/{chunk-JP3YHTQ2.cjs → chunk-Z5GG2KSL.cjs} +4 -4
- package/dist/{chunk-ZPD2AO3U.js → chunk-ZER7DYQK.js} +2 -2
- package/dist/{chunk-UXLW45ZE.cjs → chunk-ZFDXZEZJ.cjs} +25 -90
- package/dist/chunk-ZFV4HJA6.js +579 -0
- package/dist/chunk-ZHMYTI5D.cjs +529 -0
- package/dist/{chunk-CCVMREXI.js → chunk-ZLR2TFBC.js} +35 -8
- package/dist/{chunk-J5ADZN6V.cjs → chunk-ZTWNU5QZ.cjs} +20 -20
- package/dist/chunk-ZUYYHKQA.js +44 -0
- package/dist/{chunk-AUFNACED.js → chunk-ZVLVLDYN.js} +9086 -6621
- package/dist/clear-AJGXD2BB.cjs +12 -0
- package/dist/{clear-OFLFQ3MR.js → clear-HAHDSWKW.js} +3 -3
- package/dist/communityInstaller-IRR6M3N6.cjs +22 -0
- package/dist/{communityInstaller-COB2KTOW.js → communityInstaller-OLKEUGMX.js} +6 -6
- package/dist/completion-G7Z436TF.cjs +17 -0
- package/dist/{completion-PT4VM2H2.js → completion-ZS3AXJ6A.js} +5 -5
- package/dist/{config-R4O7GBTY.js → config-OWYAQPCX.js} +5 -3
- package/dist/config-W2BHT2QE.cjs +22 -0
- package/dist/{constants-HVCHVQAF.js → constants-AS6K67AA.js} +5 -3
- package/dist/constants-B4W5BT7F.cjs +23 -0
- package/dist/{export-3PK3VFCE.js → export-5HIU3KMD.js} +5 -5
- package/dist/export-GFD32UY2.cjs +15 -0
- package/dist/{extractSessionMemories-A2JX5WJ2.js → extractSessionMemories-K6ZVAW2F.js} +1 -1
- package/dist/{extractSessionMemories-XL3MS37F.cjs → extractSessionMemories-LLOIJR5U.cjs} +2 -2
- package/dist/feature-KP74CZ3F.cjs +14 -0
- package/dist/feature-OPNVMB2E.js +14 -0
- package/dist/features-LT55MURX.cjs +24 -0
- package/dist/features-ZDIU26WX.js +24 -0
- package/dist/feedback-7WTJFQ6S.js +18 -0
- package/dist/feedback-CEOJ3453.cjs +18 -0
- package/dist/go-2CY5SZNR.js +16 -0
- package/dist/go-O2CSQON4.cjs +16 -0
- package/dist/goal-DL2N2AWT.cjs +16 -0
- package/dist/goal-IJS7VZSG.js +16 -0
- package/dist/help-RNOGDEBA.cjs +12 -0
- package/dist/{help-X3OAZ3CY.js → help-TCWD2IRH.js} +2 -2
- package/dist/{history-YKFPHBJN.js → history-ATOR5OQV.js} +2 -2
- package/dist/history-UUSGX2AL.cjs +14 -0
- package/dist/{hooks-7TA4PIIB.js → hooks-R3Z5QKUP.js} +6 -6
- package/dist/hooks-RWM5UY67.cjs +18 -0
- package/dist/{i18n-2KBUU7XL.js → i18n-4QI4TD4I.js} +1 -1
- package/dist/i18n-MFAEU5RV.cjs +33 -0
- package/dist/ide-6PBTCCUQ.js +15 -0
- package/dist/ide-UE3G7NMQ.cjs +15 -0
- package/dist/{import-I7T4ZHYL.cjs → import-2IG76KAN.cjs} +6 -4
- package/dist/{import-JWPYKXCZ.js → import-E47QL4DW.js} +2 -2
- package/dist/import-NQDNBFUL.cjs +10 -0
- package/dist/{import-4CHYLS4K.js → import-VQIHGJWS.js} +6 -4
- package/dist/index.cjs +512 -305
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +402 -195
- package/dist/init-DX3RDGDT.cjs +10 -0
- package/dist/{init-262MWZV4.js → init-Q54OAAFZ.js} +2 -2
- package/dist/{inputPrompt-YGBHDUEP.js → inputPrompt-V2VBDRM7.js} +3 -3
- package/dist/inputPrompt-WVGVWAHS.cjs +90 -0
- package/dist/language-I6KXAOXD.js +23 -0
- package/dist/language-XMIVOH5E.cjs +23 -0
- package/dist/learn-JPVVGTKU.js +23 -0
- package/dist/learn-NLSHI2MZ.cjs +23 -0
- package/dist/login-NABQYLYC.cjs +28 -0
- package/dist/login-XPOVFSWN.js +28 -0
- package/dist/logout-HNHCGB4Q.js +25 -0
- package/dist/logout-SKGDXJSW.cjs +25 -0
- package/dist/{mcp-5O6PUL4G.js → mcp-EN73YFGZ.js} +8 -6
- package/dist/mcp-TADZCPJQ.cjs +22 -0
- package/dist/{mcp-install-P6DHES7V.cjs → mcp-install-2GKWWBAS.cjs} +15 -13
- package/dist/{mcp-install-6XWXLFVY.js → mcp-install-3TBTVSHW.js} +10 -8
- package/dist/memory-GRXFTDIN.cjs +10 -0
- package/dist/{memory-Q54CESNM.js → memory-K2P3CDCH.js} +2 -2
- package/dist/{model-6AJ77PJG.js → model-DEG22OWA.js} +2 -2
- package/dist/model-OSD74T7Z.cjs +10 -0
- package/dist/new-4NWBOATU.cjs +12 -0
- package/dist/{new-ZXHEWC2S.js → new-KJAP2MB6.js} +3 -3
- package/dist/onboarding-2U5WE2OA.js +39 -0
- package/dist/onboarding-5DZFCO5Q.cjs +39 -0
- package/dist/permissions-KY5I6YQ3.cjs +10 -0
- package/dist/{permissions-YHJMVA6L.js → permissions-TKYON7PP.js} +2 -2
- package/dist/{plan-YYUAXPTL.js → plan-DYHHLZSS.js} +1 -1
- package/dist/plan-PYKP652W.cjs +13 -0
- package/dist/quit-GSKJL42O.js +14 -0
- package/dist/quit-TQSRTBUT.cjs +14 -0
- package/dist/{registry-34GL6BNJ.js → registry-EZ4V4TUQ.js} +1339 -1
- package/dist/{registry-V24W7YK6.cjs → registry-LCWYI4IB.cjs} +1378 -40
- package/dist/resume-4VWJXARX.cjs +17 -0
- package/dist/resume-TLHWWWFN.js +17 -0
- package/dist/{review-QHP2KP4Q.js → review-CSK4IYTO.js} +1 -1
- package/dist/review-XLJEUH5K.cjs +9 -0
- package/dist/{rpc-S3DGW6KV.js → rpc-3DLQBDWU.js} +301 -130
- package/dist/{rpc-NPS3PU4O.cjs → rpc-O36WUU3L.cjs} +399 -228
- package/dist/search-DSX2CY4A.cjs +22 -0
- package/dist/search-I3QUDUQL.js +22 -0
- package/dist/sessionBranching-DVNOUWJT.cjs +19 -0
- package/dist/sessionBranching-FKV4CR36.js +19 -0
- package/dist/sessions-3JUOT3ED.cjs +10 -0
- package/dist/{sessions-IYAXMK23.js → sessions-VWMDIPOS.js} +2 -2
- package/dist/settings-FT2LZZUV.js +45 -0
- package/dist/settings-RL4KNWHB.cjs +45 -0
- package/dist/setup-HQEJVOYT.js +32 -0
- package/dist/setup-MN54LKOL.cjs +32 -0
- package/dist/share-BUAFZNBX.cjs +17 -0
- package/dist/share-CGB6MAVJ.js +17 -0
- package/dist/skills/builtin/code-reviewer/SKILL.md +64 -0
- package/dist/skills/builtin/goal-writer/SKILL.md +124 -0
- package/dist/{skills-VWOMV3CR.js → skills-7DKR3HRZ.js} +8 -8
- package/dist/{skills-MVIZNHT4.js → skills-BBBENOEY.js} +9 -9
- package/dist/skills-OQM7IHAF.cjs +29 -0
- package/dist/{skills-GGMZOVIE.cjs → skills-RA2PKL63.cjs} +10 -10
- package/dist/{skills-install-VTAMCNNY.cjs → skills-install-D7K476SL.cjs} +16 -16
- package/dist/{skills-install-QBA5RCV6.js → skills-install-T4SOKJSL.js} +9 -9
- package/dist/skills-new-S33NGEU3.js +18 -0
- package/dist/skills-new-UVYH53MD.cjs +18 -0
- package/dist/slashCommands-MWOUDSQP.js +111 -0
- package/dist/slashCommands-XASURUTV.cjs +111 -0
- package/dist/squad-PIIYDFVH.cjs +15 -0
- package/dist/squad-VHYOVEJP.js +15 -0
- package/dist/status-GHFTXQBL.js +25 -0
- package/dist/status-WXMIJIU3.cjs +25 -0
- package/dist/statusline-2K7AC6ZQ.js +21 -0
- package/dist/statusline-GROI4HOC.cjs +21 -0
- package/dist/sync-254WF6JI.cjs +42 -0
- package/dist/sync-2DIZN4EH.cjs +24 -0
- package/dist/{sync-7BILIQHP.js → sync-J6I2ZUKQ.js} +6 -4
- package/dist/{sync-7OKF6636.js → sync-Z3LVSEEV.js} +8 -5
- package/dist/{teammate-J6PHGL23.cjs → teammate-EXR76PEQ.cjs} +9 -8
- package/dist/{teammate-GZQSCIMS.js → teammate-K4DAOFEQ.js} +8 -7
- package/dist/templates-ARG2VRWW.cjs +11 -0
- package/dist/templates-UGVZV3KJ.js +11 -0
- package/dist/theme-MVQDSU47.js +23 -0
- package/dist/theme-QAKEYWJG.cjs +23 -0
- package/dist/ui/questionModal.cjs +6 -6
- package/dist/ui/questionModal.js +5 -5
- package/dist/{undo-SZEHLX7X.js → undo-5AU47JHF.js} +2 -2
- package/dist/undo-ME6WKUXZ.cjs +10 -0
- package/dist/usage-QTKO2YMD.js +25 -0
- package/dist/usage-TYNJKVER.cjs +25 -0
- package/package.json +10 -4
- package/dist/AgentRegistry-EGBDIUAK.cjs +0 -10
- package/dist/AgentRegistry-XPWSVO3Q.js +0 -10
- package/dist/CommunitySkillsCache-2OIUV227.cjs +0 -8
- package/dist/LearnAdvisor-46FG2XIP.js +0 -9
- package/dist/LearnAdvisor-XBRDNAGH.cjs +0 -9
- package/dist/MemoryManager-34L4YOKA.cjs +0 -8
- package/dist/MemoryManager-WJMLPWGU.js +0 -8
- package/dist/NVIDIAProvider-MVTL62PR.cjs +0 -14
- package/dist/PermissionManager-5OOJ7FAT.cjs +0 -11
- package/dist/ProviderFactory-C3YPXTDD.cjs +0 -11
- package/dist/SessionManager-WAPTFMDO.cjs +0 -10
- package/dist/SkillsRegistry-7AJP74GJ.cjs +0 -9
- package/dist/SubAgent-FDIH3DXB.js +0 -11
- package/dist/SubAgent-HVL2ICVZ.cjs +0 -11
- package/dist/SyncApiClient-VMBOLQ6H.cjs +0 -11
- package/dist/about-FCAX37YC.cjs +0 -14
- package/dist/actionExecutor-33I47NZS.js +0 -24
- package/dist/actionExecutor-4YBMR3YH.cjs +0 -24
- package/dist/add-dir-7SS6KSH5.cjs +0 -11
- package/dist/agent-DMRUFU4M.cjs +0 -116
- package/dist/agent-WCJEYQJT.js +0 -116
- package/dist/agents-CHROO3VU.cjs +0 -17
- package/dist/agents-UVDUL65K.js +0 -17
- package/dist/agents-new-AUBWSOXP.js +0 -17
- package/dist/agents-new-Y562WC47.cjs +0 -17
- package/dist/autoSkill-YOLLFTP2.cjs +0 -20
- package/dist/automode-DBLKTTKD.cjs +0 -10
- package/dist/chrome-ATC4OO5I.cjs +0 -20
- package/dist/chrome-O62WXV7F.js +0 -20
- package/dist/chrome-XHJLCO4M.cjs +0 -50
- package/dist/chunk-6XVVIY54.cjs +0 -256
- package/dist/chunk-AU6JAGZJ.cjs +0 -231
- package/dist/chunk-N6O3XUZ2.cjs +0 -23
- package/dist/chunk-VDWJMWDF.js +0 -256
- package/dist/clear-33TWQ2ES.cjs +0 -12
- package/dist/communityInstaller-TWMGPSYM.cjs +0 -22
- package/dist/completion-IIZMHXYP.cjs +0 -17
- package/dist/config-KL6WU7R2.cjs +0 -20
- package/dist/constants-RLMJ5D5P.cjs +0 -21
- package/dist/export-WLGNWEMJ.cjs +0 -15
- package/dist/feedback-G635NCLJ.js +0 -18
- package/dist/feedback-LLMK3TZH.cjs +0 -18
- package/dist/help-BAXLP2M2.cjs +0 -12
- package/dist/history-6HOJSEMT.cjs +0 -14
- package/dist/hooks-XVFU67T2.cjs +0 -18
- package/dist/i18n-MUJMKTFM.cjs +0 -33
- package/dist/ide-CCQ33PGC.cjs +0 -15
- package/dist/ide-VLVFBZ5F.js +0 -15
- package/dist/import-J46F54JY.cjs +0 -10
- package/dist/init-EE5Y7RBL.cjs +0 -10
- package/dist/inputPrompt-IIFKCX5Q.cjs +0 -90
- package/dist/language-CVLPB7OV.js +0 -21
- package/dist/language-ZTWFHUSV.cjs +0 -21
- package/dist/learn-PON7I5QS.js +0 -23
- package/dist/learn-XLRSVNA3.cjs +0 -23
- package/dist/login-223QTGBG.cjs +0 -26
- package/dist/login-6IKTBUBY.js +0 -26
- package/dist/logout-RN2AG6SI.js +0 -23
- package/dist/logout-U3M4FFX7.cjs +0 -23
- package/dist/mcp-NUQ76QQB.cjs +0 -20
- package/dist/memory-CYMDQ2YC.cjs +0 -10
- package/dist/model-IDRCKDML.cjs +0 -10
- package/dist/new-7LEWOUF2.cjs +0 -12
- package/dist/onboarding-FXX7YHSJ.cjs +0 -35
- package/dist/onboarding-JYNMK6NI.js +0 -35
- package/dist/permissions-YBNSANIA.cjs +0 -10
- package/dist/plan-XEJMOT55.cjs +0 -13
- package/dist/quit-B43SJ6E4.cjs +0 -10
- package/dist/quit-GWTNHQSP.js +0 -10
- package/dist/resume-DYVOQN5L.cjs +0 -16
- package/dist/resume-M25UQKOX.js +0 -16
- package/dist/review-UWHWQHCB.cjs +0 -9
- package/dist/search-CPX4PWHP.js +0 -20
- package/dist/search-VUF3M4N3.cjs +0 -20
- package/dist/sessions-JODKER5D.cjs +0 -10
- package/dist/settings-55BNW6BF.js +0 -33
- package/dist/settings-BKTS7OMC.cjs +0 -33
- package/dist/setup-IRC5HQG2.js +0 -29
- package/dist/setup-MMQ7TWOP.cjs +0 -29
- package/dist/share-6JRQECAH.cjs +0 -17
- package/dist/share-YM5MJKMO.js +0 -17
- package/dist/skills-LWSOKOSH.cjs +0 -29
- package/dist/skills-new-GPL46YV2.js +0 -18
- package/dist/skills-new-L5BEZN5V.cjs +0 -18
- package/dist/slashCommands-FBPCIWM5.cjs +0 -95
- package/dist/slashCommands-FCWY5DXW.js +0 -95
- package/dist/status-3B5SDZPL.js +0 -17
- package/dist/status-TTGRF6NC.cjs +0 -17
- package/dist/sync-77CXVVTK.cjs +0 -21
- package/dist/sync-EH4K5U3N.cjs +0 -40
- package/dist/theme-64BYGJ57.cjs +0 -21
- package/dist/theme-YJE6HEON.js +0 -21
- package/dist/undo-PRTEGL2J.cjs +0 -10
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkINNXFLDRcjs = require('./chunk-INNXFLDR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkNVATU4V6cjs = require('./chunk-NVATU4V6.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkLJD7KR3Lcjs = require('./chunk-LJD7KR3L.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkCSUGNNJYcjs = require('./chunk-CSUGNNJY.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkDMM2BKSVcjs = require('./chunk-DMM2BKSV.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunk7TO3PDMVcjs = require('./chunk-7TO3PDMV.cjs');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkRJCZLFHEcjs = require('./chunk-RJCZLFHE.cjs');
|
|
24
|
+
|
|
25
|
+
// src/commands/status.ts
|
|
26
|
+
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
27
|
+
|
|
28
|
+
// src/core/agent/AgentFormatter.ts
|
|
29
|
+
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
30
|
+
|
|
31
|
+
// src/ui/toolOutput.ts
|
|
32
|
+
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
33
|
+
var FILE_SUMMARY_TOOLS = /* @__PURE__ */ new Set([
|
|
34
|
+
"read_file"
|
|
35
|
+
]);
|
|
36
|
+
var TRUNCATED_TOOLS = /* @__PURE__ */ new Set([
|
|
37
|
+
"find",
|
|
38
|
+
"glob"
|
|
39
|
+
]);
|
|
40
|
+
var SUMMARY_TOOLS = /* @__PURE__ */ new Set([
|
|
41
|
+
"tools_registry"
|
|
42
|
+
]);
|
|
43
|
+
function formatAskFollowupAnswer(content) {
|
|
44
|
+
const trimmed = content.trim();
|
|
45
|
+
const answerMatch = trimmed.match(/^<answer>([\s\S]*)<\/answer>$/);
|
|
46
|
+
const answer = (_nullishCoalesce(_optionalChain([answerMatch, 'optionalAccess', _ => _[1]]), () => ( trimmed))).trim() || "No answer provided";
|
|
47
|
+
return `Answer: ${answer}`;
|
|
48
|
+
}
|
|
49
|
+
function formatFileSize(bytes) {
|
|
50
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
51
|
+
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(2)} KB`;
|
|
52
|
+
return `${(bytes / (1024 * 1024)).toFixed(2)} MB`;
|
|
53
|
+
}
|
|
54
|
+
function countLines(content) {
|
|
55
|
+
if (!content) return 0;
|
|
56
|
+
return content.split("\n").length;
|
|
57
|
+
}
|
|
58
|
+
function formatToolOutputForDisplay(options) {
|
|
59
|
+
const { tool, content, charLimit, filePath, command, commandArgs } = options;
|
|
60
|
+
const totalChars = content.length;
|
|
61
|
+
if (tool === "ask_followup_question") {
|
|
62
|
+
return {
|
|
63
|
+
output: formatAskFollowupAnswer(content),
|
|
64
|
+
truncated: false,
|
|
65
|
+
totalChars
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if ((tool === "run_command" || tool === "shell") && command) {
|
|
69
|
+
const fullCommand = _optionalChain([commandArgs, 'optionalAccess', _2 => _2.length]) ? `${command} ${commandArgs.join(" ")}` : command;
|
|
70
|
+
const outputLines = content ? content.split("\n").length : 0;
|
|
71
|
+
const truncatedContent = charLimit > 0 && totalChars > charLimit ? `${content.slice(0, charLimit)}
|
|
72
|
+
... (${totalChars} chars)` : content;
|
|
73
|
+
return {
|
|
74
|
+
output: `$ ${fullCommand}${truncatedContent ? `
|
|
75
|
+
${truncatedContent}` : outputLines > 0 ? `
|
|
76
|
+
(${outputLines} lines)` : ""}`,
|
|
77
|
+
truncated: totalChars > charLimit,
|
|
78
|
+
totalChars
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
if (FILE_SUMMARY_TOOLS.has(tool) && filePath) {
|
|
82
|
+
const fileName = path.basename(filePath);
|
|
83
|
+
const dirName = path.dirname(filePath);
|
|
84
|
+
const displayPath = dirName === "." ? fileName : `${path.basename(dirName)}/${fileName}`;
|
|
85
|
+
const lines = countLines(content);
|
|
86
|
+
const size = formatFileSize(Buffer.byteLength(content, "utf8"));
|
|
87
|
+
return {
|
|
88
|
+
output: `${displayPath}
|
|
89
|
+
${lines} lines - ${size}`,
|
|
90
|
+
truncated: false,
|
|
91
|
+
totalChars
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
if (SUMMARY_TOOLS.has(tool)) {
|
|
95
|
+
try {
|
|
96
|
+
const parsed = JSON.parse(content);
|
|
97
|
+
const total = parsed.length;
|
|
98
|
+
const builtin = parsed.filter((t2) => t2.source === "builtin").length;
|
|
99
|
+
const meta = total - builtin;
|
|
100
|
+
const parts = [`${total} tools`];
|
|
101
|
+
if (builtin > 0) parts.push(`${builtin} builtin`);
|
|
102
|
+
if (meta > 0) parts.push(`${meta} meta`);
|
|
103
|
+
return { output: parts.join(", "), truncated: false, totalChars };
|
|
104
|
+
} catch (e) {
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (TRUNCATED_TOOLS.has(tool) && charLimit > 0 && totalChars > charLimit) {
|
|
108
|
+
return {
|
|
109
|
+
output: `${content.slice(0, charLimit)}
|
|
110
|
+
... (truncated, ${totalChars} total characters)`,
|
|
111
|
+
truncated: true,
|
|
112
|
+
totalChars
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
return { output: content, truncated: false, totalChars };
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// src/core/agent/AgentFormatter.ts
|
|
119
|
+
function formatExplorationLabel(kind) {
|
|
120
|
+
switch (kind) {
|
|
121
|
+
case "read":
|
|
122
|
+
return "Read";
|
|
123
|
+
case "search":
|
|
124
|
+
return "Search";
|
|
125
|
+
default:
|
|
126
|
+
return "List";
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
var MAX_VISIBLE_PER_GROUP = 4;
|
|
130
|
+
function getToolCallLabel(call) {
|
|
131
|
+
if (!call) return "";
|
|
132
|
+
const args = _nullishCoalesce(call.args, () => ( {}));
|
|
133
|
+
if (args.path) return String(args.path);
|
|
134
|
+
if (args.file_path) return String(args.file_path);
|
|
135
|
+
if (args.command) {
|
|
136
|
+
const cmd = String(args.command);
|
|
137
|
+
const cmdArgs = Array.isArray(args.args) ? args.args.join(" ") : "";
|
|
138
|
+
return cmdArgs ? `${cmd} ${cmdArgs}` : cmd;
|
|
139
|
+
}
|
|
140
|
+
if (args.query) return String(args.query);
|
|
141
|
+
if (args.pattern) return String(args.pattern);
|
|
142
|
+
if (args.task) return String(args.task).slice(0, 60);
|
|
143
|
+
for (const val of Object.values(args)) {
|
|
144
|
+
if (typeof val === "string" && val.length > 0) return val.slice(0, 80);
|
|
145
|
+
}
|
|
146
|
+
return call.tool;
|
|
147
|
+
}
|
|
148
|
+
function formatToolResultsBatch(results, charLimit, toolCalls, thought) {
|
|
149
|
+
const lines = [];
|
|
150
|
+
if (thought) {
|
|
151
|
+
lines.push(_chalk2.default.white(thought));
|
|
152
|
+
lines.push("");
|
|
153
|
+
}
|
|
154
|
+
if (results.length <= 1) {
|
|
155
|
+
for (let i = 0; i < results.length; i++) {
|
|
156
|
+
const result = results[i];
|
|
157
|
+
const content = result.success ? _nullishCoalesce(result.output, () => ( "(no output)")) : _nullishCoalesce(_nullishCoalesce(result.error, () => ( result.output)), () => ( "Tool failed without error message"));
|
|
158
|
+
const call = _optionalChain([toolCalls, 'optionalAccess', _3 => _3[i]]);
|
|
159
|
+
const filePath = _optionalChain([call, 'optionalAccess', _4 => _4.args, 'optionalAccess', _5 => _5.path]);
|
|
160
|
+
const command = _optionalChain([call, 'optionalAccess', _6 => _6.args, 'optionalAccess', _7 => _7.command]);
|
|
161
|
+
const commandArgs = _optionalChain([call, 'optionalAccess', _8 => _8.args, 'optionalAccess', _9 => _9.args]);
|
|
162
|
+
const display = result.success ? formatToolOutputForDisplay({ tool: result.tool, content, charLimit, filePath, command, commandArgs }) : { output: content, truncated: false, totalChars: content.length };
|
|
163
|
+
const icon = result.success ? _chalk2.default.green("\u2714") : _chalk2.default.red("\u2716");
|
|
164
|
+
lines.push(`${icon} ${_chalk2.default.bold(result.tool)}`);
|
|
165
|
+
if (content) {
|
|
166
|
+
if (result.success) {
|
|
167
|
+
lines.push(_chalk2.default.gray(display.output));
|
|
168
|
+
} else {
|
|
169
|
+
lines.push(_chalk2.default.red("\u250C\u2500 Error \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
170
|
+
lines.push(_chalk2.default.red("\u2502 ") + _chalk2.default.white(content));
|
|
171
|
+
lines.push(_chalk2.default.red("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
lines.push("");
|
|
175
|
+
}
|
|
176
|
+
return lines.join("\n");
|
|
177
|
+
}
|
|
178
|
+
const groups = /* @__PURE__ */ new Map();
|
|
179
|
+
const groupOrder = [];
|
|
180
|
+
for (let i = 0; i < results.length; i++) {
|
|
181
|
+
const result = results[i];
|
|
182
|
+
const call = _optionalChain([toolCalls, 'optionalAccess', _10 => _10[i]]);
|
|
183
|
+
const content = result.success ? _nullishCoalesce(result.output, () => ( "(no output)")) : _nullishCoalesce(_nullishCoalesce(result.error, () => ( result.output)), () => ( "Tool failed without error message"));
|
|
184
|
+
const filePath = _optionalChain([call, 'optionalAccess', _11 => _11.args, 'optionalAccess', _12 => _12.path]);
|
|
185
|
+
const command = _optionalChain([call, 'optionalAccess', _13 => _13.args, 'optionalAccess', _14 => _14.command]);
|
|
186
|
+
const commandArgs = _optionalChain([call, 'optionalAccess', _15 => _15.args, 'optionalAccess', _16 => _16.args]);
|
|
187
|
+
const display = result.success ? formatToolOutputForDisplay({ tool: result.tool, content, charLimit, filePath, command, commandArgs }) : { output: content, truncated: false, totalChars: content.length };
|
|
188
|
+
const item = {
|
|
189
|
+
label: getToolCallLabel(call),
|
|
190
|
+
detail: display.output,
|
|
191
|
+
success: result.success,
|
|
192
|
+
error: result.success ? void 0 : content
|
|
193
|
+
};
|
|
194
|
+
if (!groups.has(result.tool)) {
|
|
195
|
+
groups.set(result.tool, []);
|
|
196
|
+
groupOrder.push(result.tool);
|
|
197
|
+
}
|
|
198
|
+
groups.get(result.tool).push(item);
|
|
199
|
+
}
|
|
200
|
+
for (let gi = 0; gi < groupOrder.length; gi++) {
|
|
201
|
+
const toolName = groupOrder[gi];
|
|
202
|
+
const items = groups.get(toolName);
|
|
203
|
+
const isLastGroup = gi === groupOrder.length - 1;
|
|
204
|
+
const allSuccess = items.every((it) => it.success);
|
|
205
|
+
const icon = allSuccess ? _chalk2.default.green("\u2714") : _chalk2.default.red("\u2716");
|
|
206
|
+
const count = items.length > 1 ? _chalk2.default.dim(` (${items.length})`) : "";
|
|
207
|
+
lines.push(`${icon} ${_chalk2.default.bold(toolName)}${count}`);
|
|
208
|
+
const visible = items.slice(0, MAX_VISIBLE_PER_GROUP);
|
|
209
|
+
const hidden = items.length - visible.length;
|
|
210
|
+
for (let ii = 0; ii < visible.length; ii++) {
|
|
211
|
+
const item = visible[ii];
|
|
212
|
+
const isLast = ii === visible.length - 1 && hidden === 0;
|
|
213
|
+
const connector = isLast && isLastGroup ? " \u2514 " : " \u251C ";
|
|
214
|
+
if (!item.success) {
|
|
215
|
+
lines.push(_chalk2.default.dim(connector) + _chalk2.default.red(item.label));
|
|
216
|
+
lines.push(_chalk2.default.red(" \u2502 ") + item.error);
|
|
217
|
+
} else {
|
|
218
|
+
lines.push(_chalk2.default.dim(connector) + _chalk2.default.gray(item.label));
|
|
219
|
+
const firstLine = item.detail.split("\n")[0];
|
|
220
|
+
if (firstLine && firstLine !== item.label) {
|
|
221
|
+
lines.push(_chalk2.default.dim(" ") + _chalk2.default.gray(firstLine));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (hidden > 0) {
|
|
226
|
+
const connector = isLastGroup ? " \u2514 " : " \u251C ";
|
|
227
|
+
lines.push(_chalk2.default.dim(connector) + _chalk2.default.dim(`+${hidden} more`));
|
|
228
|
+
}
|
|
229
|
+
lines.push("");
|
|
230
|
+
}
|
|
231
|
+
return lines.join("\n");
|
|
232
|
+
}
|
|
233
|
+
function describeInstruction(instruction) {
|
|
234
|
+
const normalized = instruction.trim().replace(/\s+/g, " ");
|
|
235
|
+
if (!normalized) {
|
|
236
|
+
return "work";
|
|
237
|
+
}
|
|
238
|
+
return normalized.length > 60 ? `${normalized.slice(0, 57)}\u2026` : normalized;
|
|
239
|
+
}
|
|
240
|
+
function formatElapsedTime(startedAt) {
|
|
241
|
+
const diff = Date.now() - startedAt;
|
|
242
|
+
const totalSeconds = Math.floor(diff / 1e3);
|
|
243
|
+
const hours = Math.floor(totalSeconds / 3600);
|
|
244
|
+
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
|
245
|
+
const seconds = totalSeconds % 60;
|
|
246
|
+
if (hours > 0) {
|
|
247
|
+
return `${hours}h ${minutes.toString().padStart(2, "0")}m ${seconds.toString().padStart(2, "0")}s`;
|
|
248
|
+
}
|
|
249
|
+
return `${minutes}m ${seconds.toString().padStart(2, "0")}s`;
|
|
250
|
+
}
|
|
251
|
+
function formatTokens(tokens) {
|
|
252
|
+
if (tokens >= 1e3) {
|
|
253
|
+
return `${(tokens / 1e3).toFixed(1)}k tokens`;
|
|
254
|
+
}
|
|
255
|
+
return `${tokens} tokens`;
|
|
256
|
+
}
|
|
257
|
+
function formatTurnUsage(usage) {
|
|
258
|
+
if (_optionalChain([usage, 'optionalAccess', _17 => _17.kind]) === "actual") {
|
|
259
|
+
return formatTokens(usage.totalTokens);
|
|
260
|
+
}
|
|
261
|
+
return "tokens unavailable";
|
|
262
|
+
}
|
|
263
|
+
function formatSessionActualTokens(tokens, status2) {
|
|
264
|
+
if (status2 === "unavailable") {
|
|
265
|
+
return "unavailable";
|
|
266
|
+
}
|
|
267
|
+
return formatTokens(tokens);
|
|
268
|
+
}
|
|
269
|
+
function formatCompactTokens(tokens) {
|
|
270
|
+
if (!Number.isFinite(tokens) || tokens <= 0) {
|
|
271
|
+
return "0";
|
|
272
|
+
}
|
|
273
|
+
if (tokens >= 1e6) {
|
|
274
|
+
return `${(tokens / 1e6).toFixed(1)}M`;
|
|
275
|
+
}
|
|
276
|
+
if (tokens >= 1e3) {
|
|
277
|
+
return `${(tokens / 1e3).toFixed(1)}k`;
|
|
278
|
+
}
|
|
279
|
+
return String(Math.round(tokens));
|
|
280
|
+
}
|
|
281
|
+
function buildHostTokenUsageStatus(host, unavailable) {
|
|
282
|
+
if (!_chunk7TO3PDMVcjs.isTokenUsageStatusEnabled.call(void 0, _optionalChain([host, 'access', _18 => _18.runtime, 'optionalAccess', _19 => _19.config]))) {
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
return formatTokenUsageStatus({
|
|
286
|
+
promptTokens: _nullishCoalesce(host.sessionPromptTokens, () => ( 0)),
|
|
287
|
+
completionTokens: _nullishCoalesce(host.sessionCompletionTokens, () => ( 0)),
|
|
288
|
+
contextTokens: _nullishCoalesce(host.lastContextTokens, () => ( 0)),
|
|
289
|
+
contextWindow: _nullishCoalesce(host.contextWindow, () => ( 0)),
|
|
290
|
+
unavailable
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
function buildHostTokenUsageContextStatus(host, unavailable) {
|
|
294
|
+
if (!_chunk7TO3PDMVcjs.isTokenUsageStatusEnabled.call(void 0, _optionalChain([host, 'access', _20 => _20.runtime, 'optionalAccess', _21 => _21.config]))) {
|
|
295
|
+
return null;
|
|
296
|
+
}
|
|
297
|
+
return formatTokenUsageContextStatus({
|
|
298
|
+
promptTokens: _nullishCoalesce(host.sessionPromptTokens, () => ( 0)),
|
|
299
|
+
completionTokens: _nullishCoalesce(host.sessionCompletionTokens, () => ( 0)),
|
|
300
|
+
contextTokens: _nullishCoalesce(host.lastContextTokens, () => ( 0)),
|
|
301
|
+
contextWindow: _nullishCoalesce(host.contextWindow, () => ( 0)),
|
|
302
|
+
unavailable
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
function formatTokenUsageStatus(input) {
|
|
306
|
+
if (input.unavailable) {
|
|
307
|
+
return "unavailable";
|
|
308
|
+
}
|
|
309
|
+
const up = `\u2191${formatCompactTokens(input.promptTokens)}`;
|
|
310
|
+
const down = `\u2193${formatCompactTokens(input.completionTokens)}`;
|
|
311
|
+
const base = `${up} ${down}`;
|
|
312
|
+
const context = formatTokenUsageContextStatus(input);
|
|
313
|
+
return context ? `${base} \xB7 ${context}` : base;
|
|
314
|
+
}
|
|
315
|
+
function formatTokenUsageContextStatus(input) {
|
|
316
|
+
if (input.unavailable || !Number.isFinite(input.contextWindow) || input.contextWindow <= 0) {
|
|
317
|
+
return null;
|
|
318
|
+
}
|
|
319
|
+
const ratio = Math.max(0, Math.min(input.contextTokens / input.contextWindow, 1));
|
|
320
|
+
const percent = (ratio * 100).toFixed(1);
|
|
321
|
+
const used = formatCompactTokens(input.contextTokens);
|
|
322
|
+
const total = formatCompactTokens(input.contextWindow);
|
|
323
|
+
return `context: ${percent}% (${used}/${total})`;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// src/commands/status.ts
|
|
327
|
+
var metadata = {
|
|
328
|
+
command: "/status",
|
|
329
|
+
description: "Show Autohand status including version, model, API connectivity, and usage",
|
|
330
|
+
implemented: true
|
|
331
|
+
};
|
|
332
|
+
async function status(ctx) {
|
|
333
|
+
const data = await gatherStatusData(ctx);
|
|
334
|
+
await renderStatusUI(data);
|
|
335
|
+
return null;
|
|
336
|
+
}
|
|
337
|
+
async function gatherStatusData(ctx) {
|
|
338
|
+
const currentSession = ctx.sessionManager.getCurrentSession();
|
|
339
|
+
const allSessions = await ctx.sessionManager.listSessions();
|
|
340
|
+
let apiConnected = false;
|
|
341
|
+
try {
|
|
342
|
+
apiConnected = await ctx.llm.isAvailable();
|
|
343
|
+
} catch (e2) {
|
|
344
|
+
apiConnected = false;
|
|
345
|
+
}
|
|
346
|
+
return {
|
|
347
|
+
version: _chunkCSUGNNJYcjs.package_default.version,
|
|
348
|
+
sessionId: _nullishCoalesce(_optionalChain([currentSession, 'optionalAccess', _22 => _22.metadata, 'access', _23 => _23.sessionId]), () => ( null)),
|
|
349
|
+
cwd: ctx.workspaceRoot,
|
|
350
|
+
provider: _nullishCoalesce(ctx.provider, () => ( "openrouter")),
|
|
351
|
+
model: ctx.model,
|
|
352
|
+
account: _chunkNVATU4V6cjs.formatAccount.call(void 0, ctx.config),
|
|
353
|
+
apiConnected,
|
|
354
|
+
sessionsCount: allSessions.length,
|
|
355
|
+
contextPercentLeft: _nullishCoalesce(_optionalChain([ctx, 'access', _24 => _24.getContextPercentLeft, 'optionalCall', _25 => _25()]), () => ( 100)),
|
|
356
|
+
totalTokensUsed: _nullishCoalesce(_optionalChain([ctx, 'access', _26 => _26.getTotalTokensUsed, 'optionalCall', _27 => _27()]), () => ( 0)),
|
|
357
|
+
tokenUsageStatus: _nullishCoalesce(_optionalChain([ctx, 'access', _28 => _28.getTokenUsageStatus, 'optionalCall', _29 => _29()]), () => ( "actual")),
|
|
358
|
+
usageV2Dashboard: _optionalChain([ctx, 'access', _30 => _30.isFeatureEnabled, 'optionalCall', _31 => _31("usage_v2", _optionalChain([ctx, 'access', _32 => _32.config, 'optionalAccess', _33 => _33.features, 'optionalAccess', _34 => _34.usageV2]) === true)]) ? _chunkINNXFLDRcjs.formatUsageDashboard.call(void 0, _chunkINNXFLDRcjs.gatherUsageDashboardData.call(void 0, ctx)) : null,
|
|
359
|
+
config: ctx.config,
|
|
360
|
+
contextCompactionEnabled: _nullishCoalesce(_optionalChain([ctx, 'access', _35 => _35.isContextCompactionEnabled, 'optionalCall', _36 => _36()]), () => ( true))
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
function renderStatusUI(data) {
|
|
364
|
+
return new Promise((resolve) => {
|
|
365
|
+
const tabs = ["Status", "Config", "Usage"];
|
|
366
|
+
let currentTab = 0;
|
|
367
|
+
let completed = false;
|
|
368
|
+
const input = process.stdin;
|
|
369
|
+
const isTTY = input.isTTY;
|
|
370
|
+
const useAlternateScreen = process.stdout.isTTY;
|
|
371
|
+
const wasRaw = input.isRaw;
|
|
372
|
+
const wasPaused = typeof input.isPaused === "function" ? input.isPaused() : false;
|
|
373
|
+
if (useAlternateScreen) {
|
|
374
|
+
_chunkDMM2BKSVcjs.prepareModalRender.call(void 0, process.stdout);
|
|
375
|
+
}
|
|
376
|
+
if (wasPaused && typeof input.resume === "function") {
|
|
377
|
+
input.resume();
|
|
378
|
+
}
|
|
379
|
+
if (isTTY) {
|
|
380
|
+
_readline2.default.emitKeypressEvents(input);
|
|
381
|
+
if (!wasRaw && typeof input.setRawMode === "function") {
|
|
382
|
+
try {
|
|
383
|
+
input.setRawMode(true);
|
|
384
|
+
} catch (e3) {
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (typeof input.setEncoding === "function") {
|
|
388
|
+
input.setEncoding("utf8");
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
const render = () => {
|
|
392
|
+
const theme = _chunkLJD7KR3Lcjs.createCommandTheme.call(void 0, );
|
|
393
|
+
process.stdout.write("\x1B[2J\x1B[H");
|
|
394
|
+
renderTabHeader(tabs, currentTab);
|
|
395
|
+
renderTabContent(tabs[currentTab], data);
|
|
396
|
+
console.log(theme.muted("\nEsc to exit"));
|
|
397
|
+
};
|
|
398
|
+
let buffer = "";
|
|
399
|
+
const handler = (chunk) => {
|
|
400
|
+
buffer += typeof chunk === "string" ? chunk : chunk.toString("utf8");
|
|
401
|
+
const processNext = () => {
|
|
402
|
+
if (!buffer.length) {
|
|
403
|
+
return false;
|
|
404
|
+
}
|
|
405
|
+
const first = buffer[0];
|
|
406
|
+
if (first === "\x1B") {
|
|
407
|
+
if (buffer.length === 1) {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
if (buffer[1] === "[") {
|
|
411
|
+
if (buffer.length < 3) {
|
|
412
|
+
return false;
|
|
413
|
+
}
|
|
414
|
+
const seq = buffer.slice(0, 3);
|
|
415
|
+
buffer = buffer.slice(3);
|
|
416
|
+
handleSequence(seq);
|
|
417
|
+
return true;
|
|
418
|
+
}
|
|
419
|
+
buffer = buffer.slice(1);
|
|
420
|
+
handleSequence("\x1B");
|
|
421
|
+
return true;
|
|
422
|
+
}
|
|
423
|
+
buffer = buffer.slice(1);
|
|
424
|
+
handleSequence(first);
|
|
425
|
+
return true;
|
|
426
|
+
};
|
|
427
|
+
while (processNext()) {
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
const handleSequence = (sequence) => {
|
|
431
|
+
switch (sequence) {
|
|
432
|
+
case "\x1B":
|
|
433
|
+
// ESC
|
|
434
|
+
case "":
|
|
435
|
+
cleanup();
|
|
436
|
+
resolve();
|
|
437
|
+
return;
|
|
438
|
+
case " ":
|
|
439
|
+
// Tab
|
|
440
|
+
case "\x1B[C":
|
|
441
|
+
currentTab = (currentTab + 1) % tabs.length;
|
|
442
|
+
render();
|
|
443
|
+
return;
|
|
444
|
+
case "\x1B[Z":
|
|
445
|
+
// Shift+Tab
|
|
446
|
+
case "\x1B[D":
|
|
447
|
+
currentTab = (currentTab - 1 + tabs.length) % tabs.length;
|
|
448
|
+
render();
|
|
449
|
+
return;
|
|
450
|
+
default:
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
const cleanup = () => {
|
|
455
|
+
if (completed) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
completed = true;
|
|
459
|
+
input.off("data", handler);
|
|
460
|
+
if (isTTY && !wasRaw && typeof input.setRawMode === "function") {
|
|
461
|
+
try {
|
|
462
|
+
input.setRawMode(false);
|
|
463
|
+
} catch (e4) {
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
if (wasPaused && typeof input.pause === "function") {
|
|
467
|
+
input.pause();
|
|
468
|
+
}
|
|
469
|
+
process.stdout.write("\x1B[2J\x1B[H");
|
|
470
|
+
if (useAlternateScreen) {
|
|
471
|
+
_chunkDMM2BKSVcjs.cleanupModalRender.call(void 0, process.stdout);
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
input.on("data", handler);
|
|
475
|
+
render();
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
function renderTabHeader(tabs, currentIndex) {
|
|
479
|
+
const theme = _chunkLJD7KR3Lcjs.createCommandTheme.call(void 0, );
|
|
480
|
+
const header = tabs.map((tab, i) => {
|
|
481
|
+
return i === currentIndex ? theme.selectedTab(tab) : theme.tab(tab);
|
|
482
|
+
}).join(" ");
|
|
483
|
+
console.log(`Settings: ${header} ${theme.muted("(tab to cycle)")}
|
|
484
|
+
`);
|
|
485
|
+
}
|
|
486
|
+
function renderTabContent(tab, data) {
|
|
487
|
+
switch (tab) {
|
|
488
|
+
case "Status":
|
|
489
|
+
renderStatusTab(data);
|
|
490
|
+
break;
|
|
491
|
+
case "Config":
|
|
492
|
+
renderConfigTab(data);
|
|
493
|
+
break;
|
|
494
|
+
case "Usage":
|
|
495
|
+
renderUsageTab(data);
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
function renderStatusTab(data) {
|
|
500
|
+
const theme = _chunkLJD7KR3Lcjs.createCommandTheme.call(void 0, );
|
|
501
|
+
console.log(theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.version")}:`), data.version);
|
|
502
|
+
console.log(theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.sessionId")}:`), _nullishCoalesce(data.sessionId, () => ( theme.muted("none"))));
|
|
503
|
+
console.log(theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.cwd")}:`), data.cwd);
|
|
504
|
+
console.log(theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.provider")}:`), data.provider);
|
|
505
|
+
console.log(theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.model")}:`), data.model);
|
|
506
|
+
console.log(theme.bold("Account:"), data.account);
|
|
507
|
+
console.log(
|
|
508
|
+
theme.bold("Context Compaction:"),
|
|
509
|
+
data.contextCompactionEnabled ? theme.success("ON") : theme.warning("OFF")
|
|
510
|
+
);
|
|
511
|
+
console.log();
|
|
512
|
+
console.log(
|
|
513
|
+
theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.apiStatus")}:`),
|
|
514
|
+
data.apiConnected ? theme.success(_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.connected")) : theme.error(_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.disconnected"))
|
|
515
|
+
);
|
|
516
|
+
console.log(theme.bold(`${_chunkRJCZLFHEcjs.t.call(void 0, "commands.status.sessions")}:`), _chunkRJCZLFHEcjs.t.call(void 0, "commands.status.total", { count: String(data.sessionsCount) }));
|
|
517
|
+
console.log(theme.bold("Memory:"), "user (~/.autohand/memory/), project (.autohand/memory/)");
|
|
518
|
+
}
|
|
519
|
+
function renderConfigTab(data) {
|
|
520
|
+
const theme = _chunkLJD7KR3Lcjs.createCommandTheme.call(void 0, );
|
|
521
|
+
const config = data.config;
|
|
522
|
+
console.log(theme.bold("Autohand preferences\n"));
|
|
523
|
+
const settings = [
|
|
524
|
+
["Theme", _nullishCoalesce(_optionalChain([config, 'optionalAccess', _37 => _37.ui, 'optionalAccess', _38 => _38.theme]), () => ( "dark"))],
|
|
525
|
+
["Auto-confirm", _optionalChain([config, 'optionalAccess', _39 => _39.ui, 'optionalAccess', _40 => _40.autoConfirm]) ? "true" : "false"],
|
|
526
|
+
["Silent tool output", _optionalChain([config, 'optionalAccess', _41 => _41.ui, 'optionalAccess', _42 => _42.silentToolOutput]) === true ? "true" : "false"],
|
|
527
|
+
["Show thinking", _optionalChain([config, 'optionalAccess', _43 => _43.ui, 'optionalAccess', _44 => _44.showThinking]) !== false ? "true" : "false"],
|
|
528
|
+
["Show completion notification", _optionalChain([config, 'optionalAccess', _45 => _45.ui, 'optionalAccess', _46 => _46.showCompletionNotification]) !== false ? "true" : "false"],
|
|
529
|
+
["Permission mode", _nullishCoalesce(_optionalChain([config, 'optionalAccess', _47 => _47.permissions, 'optionalAccess', _48 => _48.mode]), () => ( "interactive"))],
|
|
530
|
+
["Telemetry", _optionalChain([config, 'optionalAccess', _49 => _49.telemetry, 'optionalAccess', _50 => _50.enabled]) === true ? "true" : "false"],
|
|
531
|
+
["Network retries", String(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _51 => _51.network, 'optionalAccess', _52 => _52.maxRetries]), () => ( 3)))],
|
|
532
|
+
["Network timeout", `${_nullishCoalesce(_optionalChain([config, 'optionalAccess', _53 => _53.network, 'optionalAccess', _54 => _54.timeout]), () => ( 3e4))}ms`]
|
|
533
|
+
];
|
|
534
|
+
for (const [name, value] of settings) {
|
|
535
|
+
console.log(` ${theme.accent(name.padEnd(30))} ${value}`);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function renderUsageTab(data) {
|
|
539
|
+
const theme = _chunkLJD7KR3Lcjs.createCommandTheme.call(void 0, );
|
|
540
|
+
if (data.usageV2Dashboard) {
|
|
541
|
+
console.log(data.usageV2Dashboard);
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
const contextUsed = 100 - data.contextPercentLeft;
|
|
545
|
+
console.log(theme.bold("Current session\n"));
|
|
546
|
+
renderProgressBar("Context used (estimated)", contextUsed, 100);
|
|
547
|
+
console.log();
|
|
548
|
+
console.log(theme.bold("Actual tokens used:"), formatSessionActualTokens(data.totalTokensUsed, data.tokenUsageStatus));
|
|
549
|
+
}
|
|
550
|
+
function renderProgressBar(label, value, max) {
|
|
551
|
+
const theme = _chunkLJD7KR3Lcjs.createCommandTheme.call(void 0, );
|
|
552
|
+
const width = 30;
|
|
553
|
+
const filled = Math.round(value / max * width);
|
|
554
|
+
const empty = width - filled;
|
|
555
|
+
const bar = theme.progressFilled("\u2588".repeat(filled)) + theme.progressEmpty("\u2591".repeat(empty));
|
|
556
|
+
const percent = Math.round(value / max * 100);
|
|
557
|
+
console.log(label);
|
|
558
|
+
console.log(`${bar} ${percent}% used`);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
exports.formatToolOutputForDisplay = formatToolOutputForDisplay; exports.formatExplorationLabel = formatExplorationLabel; exports.formatToolResultsBatch = formatToolResultsBatch; exports.describeInstruction = describeInstruction; exports.formatElapsedTime = formatElapsedTime; exports.formatTurnUsage = formatTurnUsage; exports.formatSessionActualTokens = formatSessionActualTokens; exports.formatCompactTokens = formatCompactTokens; exports.buildHostTokenUsageStatus = buildHostTokenUsageStatus; exports.buildHostTokenUsageContextStatus = buildHostTokenUsageContextStatus; exports.metadata = metadata; exports.status = status;
|
|
575
|
+
/**
|
|
576
|
+
* @license
|
|
577
|
+
* Copyright 2025 Autohand AI LLC
|
|
578
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
579
|
+
*/
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkRJCZLFHEcjs = require('./chunk-RJCZLFHE.cjs');
|
|
4
4
|
|
|
5
5
|
// src/commands/memory.ts
|
|
6
6
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
7
7
|
async function memory(ctx) {
|
|
8
8
|
const { project, user } = await ctx.memoryManager.listAll();
|
|
9
9
|
console.log();
|
|
10
|
-
console.log(_chalk2.default.bold.cyan(
|
|
10
|
+
console.log(_chalk2.default.bold.cyan(_chunkRJCZLFHEcjs.t.call(void 0, "commands.memory.title")));
|
|
11
11
|
console.log(_chalk2.default.gray("\u2500".repeat(50)));
|
|
12
12
|
if (project.length === 0 && user.length === 0) {
|
|
13
|
-
console.log(_chalk2.default.gray(
|
|
13
|
+
console.log(_chalk2.default.gray(_chunkRJCZLFHEcjs.t.call(void 0, "commands.memory.noMemory")));
|
|
14
14
|
console.log();
|
|
15
15
|
console.log(_chalk2.default.gray("Tip: Type # followed by text to store a memory."));
|
|
16
16
|
console.log(_chalk2.default.gray("Example: # Always use TypeScript strict mode"));
|
|
@@ -18,7 +18,7 @@ async function memory(ctx) {
|
|
|
18
18
|
}
|
|
19
19
|
if (project.length > 0) {
|
|
20
20
|
console.log();
|
|
21
|
-
console.log(_chalk2.default.bold.yellow(
|
|
21
|
+
console.log(_chalk2.default.bold.yellow(_chunkRJCZLFHEcjs.t.call(void 0, "commands.memory.projectMemory")) + _chalk2.default.gray(" (.autohand/memory/)"));
|
|
22
22
|
console.log();
|
|
23
23
|
for (const entry of project) {
|
|
24
24
|
const date = new Date(entry.updatedAt).toLocaleDateString();
|
|
@@ -30,7 +30,7 @@ async function memory(ctx) {
|
|
|
30
30
|
}
|
|
31
31
|
if (user.length > 0) {
|
|
32
32
|
console.log();
|
|
33
|
-
console.log(_chalk2.default.bold.magenta(
|
|
33
|
+
console.log(_chalk2.default.bold.magenta(_chunkRJCZLFHEcjs.t.call(void 0, "commands.memory.userMemory")) + _chalk2.default.gray(" (~/.autohand/memory/)"));
|
|
34
34
|
console.log();
|
|
35
35
|
for (const entry of user) {
|
|
36
36
|
const date = new Date(entry.updatedAt).toLocaleDateString();
|
|
@@ -46,7 +46,7 @@ async function memory(ctx) {
|
|
|
46
46
|
}
|
|
47
47
|
var metadata = {
|
|
48
48
|
command: "/memory",
|
|
49
|
-
description:
|
|
49
|
+
description: _chunkRJCZLFHEcjs.t.call(void 0, "commands.memory.description"),
|
|
50
50
|
implemented: true
|
|
51
51
|
};
|
|
52
52
|
|