gemit-cli 1.6.3 → 1.7.0

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.
@@ -1 +1 @@
1
- (function(_0x10bd00,_0x4bccf5){const _0x4d3831=_0x50f4,_0x12be1b=_0x10bd00();while(!![]){try{const _0x5c7bcc=parseInt(_0x4d3831(0xb2))/0x1+-parseInt(_0x4d3831(0xab))/0x2*(parseInt(_0x4d3831(0xa6))/0x3)+parseInt(_0x4d3831(0xac))/0x4+-parseInt(_0x4d3831(0xb1))/0x5+-parseInt(_0x4d3831(0xaa))/0x6+-parseInt(_0x4d3831(0xb3))/0x7+parseInt(_0x4d3831(0xa7))/0x8*(parseInt(_0x4d3831(0x97))/0x9);if(_0x5c7bcc===_0x4bccf5)break;else _0x12be1b['push'](_0x12be1b['shift']());}catch(_0x1ec17d){_0x12be1b['push'](_0x12be1b['shift']());}}}(_0x17dd,0xbc896));const _0xc315c7=(function(){let _0xe42fd6=!![];return function(_0x1f0fa9,_0x32a969){const _0x711c02=_0xe42fd6?function(){if(_0x32a969){const _0x265b1d=_0x32a969['apply'](_0x1f0fa9,arguments);return _0x32a969=null,_0x265b1d;}}:function(){};return _0xe42fd6=![],_0x711c02;};}()),_0x26fa70=_0xc315c7(this,function(){const _0x3c7809=_0x50f4,_0x4f32e8={'kKVdq':'(((.+)+)'+_0x3c7809(0x99)};return _0x26fa70[_0x3c7809(0x9d)]()[_0x3c7809(0xa8)](_0x4f32e8['kKVdq'])[_0x3c7809(0x9d)]()[_0x3c7809(0x9c)+'tor'](_0x26fa70)[_0x3c7809(0xa8)](_0x4f32e8['kKVdq']);});_0x26fa70();import{basename,dirname,join}from'path';function _0x50f4(_0x1a441b,_0x31359e){_0x1a441b=_0x1a441b-0x96;const _0x377c95=_0x17dd();let _0x26fa70=_0x377c95[_0x1a441b];return _0x26fa70;}function _0x17dd(){const _0x317947=['DiIcL','QwPft','hMYvJ','BTawH','Prdiz','UyJWK','FVulE','LGFhT','3yAqTgk','248NVbriV','search','parse','6298452dsYfKH','2525204AUmVJO','4084980rNhEMs','version','0.0.0','iDYWx','dist-sec','2360320pUigmy','1023067GGPqIA','968639TYlWLV','ure','json','479241hicsPo','package.','+)+$','TbuFA','dist','construc','toString'];_0x17dd=function(){return _0x317947;};return _0x17dd();}import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x24fac1=_0x50f4,_0x453ffc={'iDYWx':function(_0x55d1e6,_0x4ea0cb){return _0x55d1e6(_0x4ea0cb);},'QwPft':function(_0x9937bb,_0x3299a5){return _0x9937bb(_0x3299a5);},'UyJWK':_0x24fac1(0x9b),'hMYvJ':function(_0x4d2cd1,_0x2eb571){return _0x4d2cd1===_0x2eb571;},'lLmfh':function(_0x4e296b,_0x475cfd){return _0x4e296b(_0x475cfd);},'LGFhT':function(_0x44ecdf,_0x3f56dc,_0x258545,_0x11dff1){return _0x44ecdf(_0x3f56dc,_0x258545,_0x11dff1);},'DiIcL':_0x24fac1(0x98)+_0x24fac1(0x96),'TbuFA':function(_0x4c128c,_0x194d05,_0x104400){return _0x4c128c(_0x194d05,_0x104400);},'FVulE':function(_0x118192,_0xd16d1f,_0x427b81){return _0x118192(_0xd16d1f,_0x427b81);},'Prdiz':'utf8','BTawH':_0x24fac1(0xae)};try{const _0x58d2f0=fileURLToPath(import.meta.url),_0x44f32d=_0x453ffc[_0x24fac1(0xaf)](dirname,_0x58d2f0),_0xae3471=_0x453ffc[_0x24fac1(0x9f)](basename,_0x44f32d)===_0x453ffc[_0x24fac1(0xa3)]||_0x453ffc[_0x24fac1(0xa0)](_0x453ffc['lLmfh'](basename,_0x44f32d),_0x24fac1(0xb0)+_0x24fac1(0xb4))?_0x453ffc[_0x24fac1(0xa5)](join,_0x44f32d,'..',_0x453ffc['DiIcL']):_0x453ffc[_0x24fac1(0x9a)](join,_0x44f32d,_0x453ffc[_0x24fac1(0x9e)]),_0x13b87f=_0x453ffc[_0x24fac1(0xa4)](readFileSync,_0xae3471,_0x453ffc[_0x24fac1(0xa2)]),_0xdeb133=JSON[_0x24fac1(0xa9)](_0x13b87f);return _0xdeb133[_0x24fac1(0xad)]||_0x24fac1(0xae);}catch{return _0x453ffc[_0x24fac1(0xa1)];}}
1
+ function _0x2ecc(){const _0x8872ae=['NLcvV','1308648PSGNtE','search','2090RhqkIA','apply','utf8','IWTnD','package.','7275660AtcNJj','17748gRXvYi','0.0.0','(((.+)+)','mTqGY','347767fVgSQt','84PBFKoe','version','construc','4668CgeeTR','TKibI','RiPaA','tor','dOgMO','2384WKsZiT','480891FkQjlJ','656047sdHIUc','toString'];_0x2ecc=function(){return _0x8872ae;};return _0x2ecc();}(function(_0x5e6e12,_0x427b36){const _0x376e1d=_0x2093,_0x40bd81=_0x5e6e12();while(!![]){try{const _0x447833=parseInt(_0x376e1d(0xea))/0x1+parseInt(_0x376e1d(0xed))/0x2+parseInt(_0x376e1d(0xe9))/0x3+-parseInt(_0x376e1d(0xe3))/0x4*(parseInt(_0x376e1d(0xef))/0x5)+-parseInt(_0x376e1d(0xe0))/0x6*(-parseInt(_0x376e1d(0xdf))/0x7)+parseInt(_0x376e1d(0xe8))/0x8*(-parseInt(_0x376e1d(0xdb))/0x9)+-parseInt(_0x376e1d(0xda))/0xa;if(_0x447833===_0x427b36)break;else _0x40bd81['push'](_0x40bd81['shift']());}catch(_0x23be7c){_0x40bd81['push'](_0x40bd81['shift']());}}}(_0x2ecc,0x58aa6));function _0x2093(_0x436635,_0x30e61b){_0x436635=_0x436635-0xd9;const _0x16e086=_0x2ecc();let _0x52d444=_0x16e086[_0x436635];return _0x52d444;}const _0x1d3877=(function(){let _0xbeb7fd=!![];return function(_0x1de44a,_0x3a3b24){const _0x5b57c5=_0xbeb7fd?function(){const _0x44d887=_0x2093;if(_0x3a3b24){const _0x3d6410=_0x3a3b24[_0x44d887(0xf0)](_0x1de44a,arguments);return _0x3a3b24=null,_0x3d6410;}}:function(){};return _0xbeb7fd=![],_0x5b57c5;};}()),_0x52d444=_0x1d3877(this,function(){const _0x5a249d=_0x2093,_0xeee4d0={'TKibI':_0x5a249d(0xdd)+'+)+$'};return _0x52d444[_0x5a249d(0xeb)]()[_0x5a249d(0xee)](_0xeee4d0[_0x5a249d(0xe4)])['toString']()[_0x5a249d(0xe2)+_0x5a249d(0xe6)](_0x52d444)[_0x5a249d(0xee)](_0x5a249d(0xdd)+'+)+$');});_0x52d444();import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x4b41b1=_0x2093,_0x4ad7ca={'IWTnD':function(_0x40924c,_0x1dfd29){return _0x40924c(_0x1dfd29);},'AEHFa':function(_0x18b4ea,_0x421c45){return _0x18b4ea===_0x421c45;},'dOgMO':function(_0x1552aa,_0x43b9bc){return _0x1552aa(_0x43b9bc);},'mTqGY':function(_0x55de22,_0xc03747,_0x192c45,_0x2c4256){return _0x55de22(_0xc03747,_0x192c45,_0x2c4256);},'RiPaA':_0x4b41b1(0xd9)+'json','vfdHz':function(_0x1b46a7,_0x31501c,_0x22b741){return _0x1b46a7(_0x31501c,_0x22b741);},'NLcvV':function(_0x31e736,_0x388dbd,_0x4efe4d){return _0x31e736(_0x388dbd,_0x4efe4d);},'bKEmH':_0x4b41b1(0xf1),'wrqXW':_0x4b41b1(0xdc)};try{const _0x31b66d=fileURLToPath(import.meta.url),_0x492c60=_0x4ad7ca[_0x4b41b1(0xf2)](dirname,_0x31b66d),_0x501d78=_0x4ad7ca[_0x4b41b1(0xf2)](basename,_0x492c60)==='dist'||_0x4ad7ca['AEHFa'](_0x4ad7ca[_0x4b41b1(0xe7)](basename,_0x492c60),'dist-sec'+'ure')?_0x4ad7ca[_0x4b41b1(0xde)](join,_0x492c60,'..',_0x4ad7ca[_0x4b41b1(0xe5)]):_0x4ad7ca['vfdHz'](join,_0x492c60,_0x4ad7ca['RiPaA']),_0x3eff64=_0x4ad7ca[_0x4b41b1(0xec)](readFileSync,_0x501d78,_0x4ad7ca['bKEmH']),_0x2756c3=JSON['parse'](_0x3eff64);return _0x2756c3[_0x4b41b1(0xe1)]||'0.0.0';}catch{return _0x4ad7ca['wrqXW'];}}
@@ -1 +1 @@
1
- (function(_0x5ced3f,_0x495103){var _0x34fe6c=_0x1fbb,_0x45e407=_0x5ced3f();while(!![]){try{var _0x4e9d95=parseInt(_0x34fe6c(0x12a))/0x1+-parseInt(_0x34fe6c(0x12f))/0x2*(parseInt(_0x34fe6c(0x118))/0x3)+-parseInt(_0x34fe6c(0x11b))/0x4+parseInt(_0x34fe6c(0x135))/0x5*(parseInt(_0x34fe6c(0x124))/0x6)+-parseInt(_0x34fe6c(0x11a))/0x7*(-parseInt(_0x34fe6c(0x121))/0x8)+-parseInt(_0x34fe6c(0x133))/0x9*(-parseInt(_0x34fe6c(0x134))/0xa)+parseInt(_0x34fe6c(0x127))/0xb*(-parseInt(_0x34fe6c(0x120))/0xc);if(_0x4e9d95===_0x495103)break;else _0x45e407['push'](_0x45e407['shift']());}catch(_0x18699a){_0x45e407['push'](_0x45e407['shift']());}}}(_0x1652,0xafed7));function _0x1652(){var _0xcd545c=['Use\x20`gem','search','30592XTrXuM','all','stion\x20fl','tor','9yCqnMH','7273510GJTiSw','41425mBAvLh','222inrByl','he\x20sugge','7VFuumH','54760SeRMCo','ntinue\x20t','\x20stage\x20e','LEuEq','check','1692dHKMPe','4549744QJcSFT','construc','it\x20add\x20-','738pIVxMJ','-all`\x20to','verythin','128249oAKhIj','(((.+)+)','+)+$','1194988GENdJc','toString','ow.'];_0x1652=function(){return _0xcd545c;};return _0x1652();}var _0x6d9e05=(function(){var _0x3a0c79=!![];return function(_0xa04345,_0x3d5748){var _0x3fc7c1=_0x3a0c79?function(){if(_0x3d5748){var _0x1c9326=_0x3d5748['apply'](_0xa04345,arguments);return _0x3d5748=null,_0x1c9326;}}:function(){};return _0x3a0c79=![],_0x3fc7c1;};}()),_0x310a62=_0x6d9e05(this,function(){var _0x5c6b3a=_0x1fbb,_0x45605c={'LEuEq':_0x5c6b3a(0x128)+_0x5c6b3a(0x129)};return _0x310a62['toString']()[_0x5c6b3a(0x12e)]('(((.+)+)'+_0x5c6b3a(0x129))[_0x5c6b3a(0x12b)]()[_0x5c6b3a(0x122)+_0x5c6b3a(0x132)](_0x310a62)['search'](_0x45605c[_0x5c6b3a(0x11e)]);});function _0x1fbb(_0x11dc69,_0x26fdb8){_0x11dc69=_0x11dc69-0x118;var _0xfb2876=_0x1652();var _0x310a62=_0xfb2876[_0x11dc69];return _0x310a62;}_0x310a62();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';export async function addAndCommit(_0x4c5f21={}){var _0x486207=_0x1fbb,_0x44dfd7={'RunQp':_0x486207(0x12d)+_0x486207(0x123)+_0x486207(0x125)+_0x486207(0x11d)+_0x486207(0x126)+'g\x20and\x20co'+_0x486207(0x11c)+_0x486207(0x119)+_0x486207(0x131)+_0x486207(0x12c),'lJZJK':function(_0x1b575a,_0x322b08){return _0x1b575a(_0x322b08);},'asBdP':function(_0x4f2607,_0x31bda8){return _0x4f2607(_0x31bda8);}};!_0x4c5f21[_0x486207(0x130)]&&failAndExit(_0x44dfd7['RunQp']),await _0x44dfd7['lJZJK'](generateCommit,{'all':!![],'check':_0x44dfd7['asBdP'](Boolean,_0x4c5f21[_0x486207(0x11f)])});}
1
+ (function(_0x351436,_0x4dcb8f){var _0x2c050e=_0x1519,_0x3eaa90=_0x351436();while(!![]){try{var _0x394cba=parseInt(_0x2c050e(0xb4))/0x1*(parseInt(_0x2c050e(0xbe))/0x2)+parseInt(_0x2c050e(0xba))/0x3+-parseInt(_0x2c050e(0xc4))/0x4+-parseInt(_0x2c050e(0xae))/0x5+-parseInt(_0x2c050e(0xbc))/0x6+-parseInt(_0x2c050e(0xb2))/0x7+parseInt(_0x2c050e(0xc7))/0x8;if(_0x394cba===_0x4dcb8f)break;else _0x3eaa90['push'](_0x3eaa90['shift']());}catch(_0x360237){_0x3eaa90['push'](_0x3eaa90['shift']());}}}(_0x20fe,0xa9689));var _0x5a6743=(function(){var _0x47144f=!![];return function(_0x4b537b,_0xa0ffee){var _0x56464b=_0x47144f?function(){var _0x2c85b5=_0x1519;if(_0xa0ffee){var _0x1d2f7a=_0xa0ffee[_0x2c85b5(0xc0)](_0x4b537b,arguments);return _0xa0ffee=null,_0x1d2f7a;}}:function(){};return _0x47144f=![],_0x56464b;};}()),_0x7a7ce9=_0x5a6743(this,function(){var _0x23946e=_0x1519,_0x807a26={'QzTqA':_0x23946e(0xb5)+'+)+$'};return _0x7a7ce9['toString']()[_0x23946e(0xc5)](_0x807a26[_0x23946e(0xc9)])[_0x23946e(0xbd)]()[_0x23946e(0xb1)+_0x23946e(0xb7)](_0x7a7ce9)['search'](_0x807a26['QzTqA']);});function _0x20fe(){var _0x5be060=['stion\x20fl','all','3943677XrFylW','uhiUX','5758590YoLNRQ','toString','28618ZTIamD','\x20stage\x20e','apply','it\x20add\x20-','check','-all`\x20to','1295328OQQGTb','search','g\x20and\x20co','13506488htgGSb','Gvarl','QzTqA','3572215xgxNhv','ow.','vdotf','construc','3779139hFyykS','verythin','16BnQyOV','(((.+)+)','he\x20sugge','tor'];_0x20fe=function(){return _0x5be060;};return _0x20fe();}_0x7a7ce9();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';function _0x1519(_0x1bcadd,_0x476501){_0x1bcadd=_0x1bcadd-0xae;var _0x1e0320=_0x20fe();var _0x7a7ce9=_0x1e0320[_0x1bcadd];return _0x7a7ce9;}export async function addAndCommit(_0x5d9dea={}){var _0x58e2ab=_0x1519,_0x19eae0={'uhiUX':function(_0x381af7,_0x19b919){return _0x381af7(_0x19b919);},'Gvarl':'Use\x20`gem'+_0x58e2ab(0xc1)+_0x58e2ab(0xc3)+_0x58e2ab(0xbf)+_0x58e2ab(0xb3)+_0x58e2ab(0xc6)+'ntinue\x20t'+_0x58e2ab(0xb6)+_0x58e2ab(0xb8)+_0x58e2ab(0xaf),'vdotf':function(_0x26b2ef,_0x383784){return _0x26b2ef(_0x383784);}};!_0x5d9dea[_0x58e2ab(0xb9)]&&_0x19eae0[_0x58e2ab(0xbb)](failAndExit,_0x19eae0[_0x58e2ab(0xc8)]),await _0x19eae0[_0x58e2ab(0xb0)](generateCommit,{'all':!![],'check':_0x19eae0[_0x58e2ab(0xbb)](Boolean,_0x5d9dea[_0x58e2ab(0xc2)])});}
@@ -1 +1 @@
1
- (function(_0x21c36c,_0x4d04e1){const _0x509e75=_0xab1b,_0x36dd55=_0x21c36c();while(!![]){try{const _0x2ac2d7=parseInt(_0x509e75(0x125))/0x1+-parseInt(_0x509e75(0x150))/0x2*(-parseInt(_0x509e75(0x119))/0x3)+parseInt(_0x509e75(0x12c))/0x4+parseInt(_0x509e75(0x128))/0x5+-parseInt(_0x509e75(0x134))/0x6*(parseInt(_0x509e75(0x13e))/0x7)+-parseInt(_0x509e75(0x12a))/0x8+-parseInt(_0x509e75(0x13c))/0x9*(parseInt(_0x509e75(0x12b))/0xa);if(_0x2ac2d7===_0x4d04e1)break;else _0x36dd55['push'](_0x36dd55['shift']());}catch(_0x40e3f7){_0x36dd55['push'](_0x36dd55['shift']());}}}(_0x4526,0x44d76));const _0x2f784f=(function(){let _0x4be33d=!![];return function(_0x2a2922,_0x332444){const _0x3d94be=_0x4be33d?function(){const _0x46a164=_0xab1b;if(_0x332444){const _0x2fffc8=_0x332444[_0x46a164(0x168)](_0x2a2922,arguments);return _0x332444=null,_0x2fffc8;}}:function(){};return _0x4be33d=![],_0x3d94be;};}()),_0x80bba5=_0x2f784f(this,function(){const _0x5aab0b=_0xab1b,_0x268364={'Ribrp':_0x5aab0b(0x152)+_0x5aab0b(0x13b)};return _0x80bba5['toString']()[_0x5aab0b(0x149)](_0x268364[_0x5aab0b(0x158)])['toString']()[_0x5aab0b(0x166)+_0x5aab0b(0x133)](_0x80bba5)['search'](_0x268364[_0x5aab0b(0x158)]);});_0x80bba5();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function _0xab1b(_0x2d4a95,_0x4fec8c){_0x2d4a95=_0x2d4a95-0x111;const _0xa8cd12=_0x4526();let _0x80bba5=_0xa8cd12[_0x2d4a95];return _0x80bba5;}function _0x4526(){const _0x5ebbdb=['KtRwy','name?\x20(y','QrOYS','rJUnn','invoke','th\x20this\x20','lready\x20e','545060XpQbvU','Create\x20b','inking\x20a','1171040ljsqQx','git','2452968ILAxsw','2672710iCwjYr','1701576pezjaM','NFD','\x20branch.','bhAaC','h\x20name.','>\x0a\x20\x20\x20\x20-\x20','VkvaU','tor','114khoQub','\x0a\x20\x20\x20\x20','dyxtR','log','\x0a\x20\x20\x20\x20Gen','toLowerC','case-des','+)+$','18XnrEJu','\x20test\x0a\x20\x20','145439okRSgA','\x20\x20-\x20Maxi','content','AI\x20is\x20th','s\x0a\x20\x20\x20\x20-\x20','inherit','ZJtiX','Failed\x20t','created.','th:\x2050\x20c','te\x20branc','search','efactor,','slice','nd\x20reque','\x20\x20\x20\x20Desc','NLY\x20the\x20','was\x20not\x20','4jquOgZ','ch\x20name\x20','(((.+)+)','eat,\x20fix','yciWA','DBUWU','fsjQr','ame\x20in\x20E','Ribrp','SgRMO','message',',\x20chore,','es:\x0a\x20\x20\x20\x20','\x20Branch\x20','ription:','ate','AyOGN','RsKNf','LLVUY','checkout','REgcf','sting\x20re','construc','MHhFu','apply','d\x20below.','REQJm','ase','\x20docs,\x20r','xists:\x20','RiFKN','\x0a\x20\x20','wYtFI','types:\x20f','xrxFr','haracter','vXTOC','nTvIk','D\x20BRANCH','nglish\x0a\x0a','feat/','vjMLq','bERqt','RrZzN','469857xqfIZD','replace','includes','feature\x20','ranch\x20wi'];_0x4526=function(){return _0x5ebbdb;};return _0x4526();}function sanitizeBranchName(_0x5156aa){const _0xabcd72=_0xab1b,_0x5c1356={'LLVUY':_0xabcd72(0x12d),'RrZzN':function(_0x5631be,_0x23334b){return _0x5631be||_0x23334b;},'YnItp':'feat/upd'+_0xabcd72(0x15f)},_0x359a47=_0x5156aa['normaliz'+'e'](_0x5c1356[_0xabcd72(0x162)])[_0xabcd72(0x11a)](/[\u0300-\u036f]/g,'')[_0xabcd72(0x139)+_0xabcd72(0x16b)]()[_0xabcd72(0x11a)](/[^a-z0-9/-]+/g,'-')[_0xabcd72(0x11a)](/-{2,}/g,'-')[_0xabcd72(0x11a)](/\/{2,}/g,'/')['replace'](/^-+|-+$/g,'')[_0xabcd72(0x11a)](/^\/+|\/+$/g,''),_0x1d1021=_0x359a47[_0xabcd72(0x14b)](0x0,0x32)[_0xabcd72(0x11a)](/\/+$/g,'')['replace'](/-+$/g,''),_0x15f3f8=_0x5c1356[_0xabcd72(0x118)](_0x1d1021,_0x5c1356['YnItp']);if(!_0x15f3f8[_0xabcd72(0x11b)]('/'))return _0xabcd72(0x115)+_0x15f3f8;return _0x15f3f8;}function getLLM(){const _0x347cd0=_0xab1b,_0x3c7648={'KtRwy':function(_0x1b3ce1){return _0x1b3ce1();},'ZJtiX':function(_0x3b1c6e,_0x427ad4){return _0x3b1c6e instanceof _0x427ad4;},'yciWA':function(_0x3d8203,_0x4f7e8c){return _0x3d8203(_0x4f7e8c);},'AyOGN':function(_0x5ed134,_0x11298d){return _0x5ed134(_0x11298d);}};try{return _0x3c7648[_0x347cd0(0x11e)](createLLM);}catch(_0x5c8641){const _0x5e9502=_0x3c7648[_0x347cd0(0x144)](_0x5c8641,Error)?_0x5c8641[_0x347cd0(0x15a)]:_0x3c7648[_0x347cd0(0x154)](String,_0x5c8641);_0x3c7648[_0x347cd0(0x160)](failAndExit,_0x5e9502);}}export async function suggestBranch(_0x3894dd){const _0x52a172=_0xab1b,_0x33405d={'dyxtR':function(_0x1aeea7,_0x72b175){return _0x1aeea7(_0x72b175);},'REQJm':function(_0x8b695a){return _0x8b695a();},'QrOYS':function(_0x13b344,_0x5bdb96,_0x51dfd0){return _0x13b344(_0x5bdb96,_0x51dfd0);},'bhAaC':function(_0x50f046,_0x53bf11){return _0x50f046(_0x53bf11);},'RiFKN':_0x52a172(0x132),'bERqt':_0x52a172(0x145)+'o\x20genera'+_0x52a172(0x148)+_0x52a172(0x130),'DBUWU':function(_0x14ccff,_0x26f573){return _0x14ccff===_0x26f573;},'vjMLq':_0x52a172(0x164),'MpZid':_0x52a172(0x112),'wYtFI':function(_0x100f41,_0x594f0e){return _0x100f41(_0x594f0e);},'vXTOC':function(_0x3be231,_0x3f1318){return _0x3be231(_0x3f1318);},'MHhFu':'Name','MKWCo':_0x52a172(0x126)+_0x52a172(0x11d)+_0x52a172(0x123)+_0x52a172(0x11f)+'/n):\x20','fsjQr':function(_0x333b80,_0x3af9e1){return _0x333b80(_0x3af9e1);},'jHcYz':'CANCELED','XXOlL':function(_0x2a051b,_0x2f848e,_0x593157,_0x98ba8){return _0x2a051b(_0x2f848e,_0x593157,_0x98ba8);},'SgRMO':_0x52a172(0x129),'xrxFr':_0x52a172(0x163),'rJUnn':_0x52a172(0x143),'RsKNf':function(_0x5c3ea0,_0x567c5f){return _0x5c3ea0(_0x567c5f);}};_0x33405d[_0x52a172(0x16a)](getGitStatus);const _0x19e19a=_0x33405d[_0x52a172(0x16a)](getLLM),_0x16a746=_0x52a172(0x138)+'erate\x20a\x20'+'git\x20bran'+_0x52a172(0x151)+'for\x20the\x20'+_0x52a172(0x11c)+'describe'+_0x52a172(0x169)+'\x0a\x20\x20\x20\x20Rul'+_0x52a172(0x15c)+'-\x20Format'+':\x20<type>'+'/<kebab-'+_0x52a172(0x13a)+'cription'+_0x52a172(0x131)+'Allowed\x20'+_0x52a172(0x171)+_0x52a172(0x153)+_0x52a172(0x15b)+_0x52a172(0x16c)+_0x52a172(0x14a)+_0x52a172(0x13d)+_0x52a172(0x13f)+'mum\x20leng'+_0x52a172(0x147)+_0x52a172(0x173)+_0x52a172(0x142)+'Return\x20O'+_0x52a172(0x14e)+'branch\x20n'+_0x52a172(0x157)+_0x52a172(0x114)+_0x52a172(0x14d)+_0x52a172(0x15e)+_0x52a172(0x135)+_0x3894dd+_0x52a172(0x16f),_0x4eed6b=await _0x33405d[_0x52a172(0x120)](withProgress,_0x52a172(0x141)+_0x52a172(0x127)+_0x52a172(0x14c)+_0x52a172(0x165)+'sponse..'+'.',()=>_0x19e19a[_0x52a172(0x122)](_0x16a746)),_0x55d604=_0x33405d[_0x52a172(0x12f)](extractMessageText,_0x4eed6b[_0x52a172(0x140)]),_0x37d09d=_0x33405d['bhAaC'](sanitizeBranchName,_0x55d604);!_0x37d09d&&(_0x52a172(0x132)!==_0x33405d[_0x52a172(0x16e)]?_0x33405d[_0x52a172(0x136)](_0x5464fc,'Branch\x20a'+_0x52a172(0x124)+_0x52a172(0x16d)+_0x1fab55):failAndExit(_0x33405d[_0x52a172(0x117)]));if(_0x33405d[_0x52a172(0x12f)](branchExists,_0x37d09d)){if(_0x33405d[_0x52a172(0x155)](_0x33405d[_0x52a172(0x116)],_0x33405d['MpZid']))return _0x52a172(0x115)+_0x5bc705;else _0x33405d[_0x52a172(0x170)](failAndExit,'Branch\x20a'+'lready\x20e'+_0x52a172(0x16d)+_0x37d09d);}_0x33405d[_0x52a172(0x111)](section,'SUGGESTE'+_0x52a172(0x113)),printKeyValues([{'key':_0x33405d[_0x52a172(0x167)],'value':_0x37d09d}]);const _0x3d6804=await _0x33405d[_0x52a172(0x136)](askConfirmation,_0x33405d['MKWCo']);if(!_0x3d6804){console[_0x52a172(0x137)](_0x33405d[_0x52a172(0x156)](warn,_0x33405d['jHcYz'])+(_0x52a172(0x15d)+_0x52a172(0x14f)+_0x52a172(0x146)));return;}try{_0x33405d['XXOlL'](execFileSync,_0x33405d[_0x52a172(0x159)],[_0x33405d[_0x52a172(0x172)],'-b',_0x37d09d],{'stdio':_0x33405d[_0x52a172(0x121)]});}catch{_0x33405d[_0x52a172(0x161)](failAndExit,'Failed\x20t'+'o\x20create'+_0x52a172(0x12e));}}
1
+ (function(_0x4fdad4,_0x4dc116){const _0x2c607e=_0x1468,_0x3ca54b=_0x4fdad4();while(!![]){try{const _0x560838=parseInt(_0x2c607e(0x142))/0x1*(parseInt(_0x2c607e(0x11a))/0x2)+parseInt(_0x2c607e(0x129))/0x3+-parseInt(_0x2c607e(0x147))/0x4+-parseInt(_0x2c607e(0x101))/0x5*(parseInt(_0x2c607e(0x12c))/0x6)+-parseInt(_0x2c607e(0x126))/0x7*(-parseInt(_0x2c607e(0x14d))/0x8)+parseInt(_0x2c607e(0x117))/0x9*(-parseInt(_0x2c607e(0x123))/0xa)+parseInt(_0x2c607e(0x139))/0xb*(parseInt(_0x2c607e(0xfe))/0xc);if(_0x560838===_0x4dc116)break;else _0x3ca54b['push'](_0x3ca54b['shift']());}catch(_0x4f5bb2){_0x3ca54b['push'](_0x3ca54b['shift']());}}}(_0x1439,0x6f40e));const _0x257d08=(function(){let _0x36d105=!![];return function(_0x1f636a,_0x3334a3){const _0x4d5ae3=_0x36d105?function(){const _0x521a85=_0x1468;if(_0x3334a3){const _0x557e79=_0x3334a3[_0x521a85(0x138)](_0x1f636a,arguments);return _0x3334a3=null,_0x557e79;}}:function(){};return _0x36d105=![],_0x4d5ae3;};}()),_0xee5584=_0x257d08(this,function(){const _0x43bfbf=_0x1468;return _0xee5584[_0x43bfbf(0xf3)]()[_0x43bfbf(0xf5)](_0x43bfbf(0x151)+'+)+$')['toString']()[_0x43bfbf(0x119)+'tor'](_0xee5584)[_0x43bfbf(0xf5)]('(((.+)+)'+_0x43bfbf(0x133));});_0xee5584();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';function _0x1439(){const _0x92747f=['915192nGGdbF','GLJKl','nglish\x0a\x0a','Failed\x20t','feature\x20','DtVwf','120utrHKh','cTMiz','NFD','as\x20not\x20c','(((.+)+)','d\x20below.','types:\x20f','lready\x20e','inherit','aWcIn','TzWUn','AI\x20is\x20th','describe','/n):\x20','toString','ase','search','sting\x20re','case-des','IOmkm','feat/upd','replace','eat,\x20fix','\x20docs,\x20r','D\x20BRANCH','6218772iXJUTy','JCvkD','o\x20create','2564675AUOFTp','ame\x20in\x20E','content','o\x20genera','ate','RGWWz','\x20\x20-\x20Maxi','CANCELED','es:\x0a\x20\x20\x20\x20','Return\x20O','includes','>\x0a\x20\x20\x20\x20-\x20','\x20\x20\x20\x20Desc','KQQea','branch\x20n','checkout','s\x0a\x20\x20\x20\x20-\x20','message','ch\x20name\x20','ription:',':\x20<type>','git\x20bran','9OMSQiB','uSkol','construc','127760TTOWGg','Branch\x20a','inking\x20a','ranch\x20wi','xTnQn','ngxHM','Branch\x20w',',\x20chore,','toLowerC','9051570iIHseT','\x0a\x20\x20','Name','417865bEnSim','h\x20name.','NLY\x20the\x20','1108584kNpXjE','gooUt','erate\x20a\x20','6AjfMqY','yjvKE','DvmiV','nd\x20reque','DGrro','mum\x20leng','Svaxp','+)+$','Allowed\x20','PEerd','xists:\x20','th:\x2050\x20c','apply','11OoqQsZ','normaliz','gFMxW','sponse..','\x0a\x20\x20\x20\x20','Create\x20b','for\x20the\x20','name?\x20(y','invoke','5FndyEE','\x20branch.','/<kebab-','feat/','git'];_0x1439=function(){return _0x92747f;};return _0x1439();}import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0x414b48){const _0x73e3cc=_0x1468,_0x41b5ec={'aOIhV':_0x73e3cc(0x14f),'JCvkD':function(_0x3d7ccf,_0x60bd0f){return _0x3d7ccf||_0x60bd0f;}},_0x1d38c6=_0x414b48[_0x73e3cc(0x13a)+'e'](_0x41b5ec['aOIhV'])[_0x73e3cc(0xfa)](/[\u0300-\u036f]/g,'')[_0x73e3cc(0x122)+_0x73e3cc(0xf4)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x73e3cc(0xfa)](/-{2,}/g,'-')['replace'](/\/{2,}/g,'/')[_0x73e3cc(0xfa)](/^-+|-+$/g,'')[_0x73e3cc(0xfa)](/^\/+|\/+$/g,''),_0xb8d0e4=_0x1d38c6['slice'](0x0,0x32)[_0x73e3cc(0xfa)](/\/+$/g,'')[_0x73e3cc(0xfa)](/-+$/g,''),_0x2c9f83=_0x41b5ec[_0x73e3cc(0xff)](_0xb8d0e4,_0x73e3cc(0xf9)+_0x73e3cc(0x105));if(!_0x2c9f83[_0x73e3cc(0x10b)]('/'))return _0x73e3cc(0x145)+_0x2c9f83;return _0x2c9f83;}function _0x1468(_0x3d7f22,_0x52934a){_0x3d7f22=_0x3d7f22-0xf0;const _0x1a6229=_0x1439();let _0xee5584=_0x1a6229[_0x3d7f22];return _0xee5584;}function getLLM(){const _0x5c4d76=_0x1468,_0xacedb3={'cTMiz':function(_0x17d90b){return _0x17d90b();},'DtVwf':function(_0x5dab82,_0x44da8a){return _0x5dab82(_0x44da8a);},'KQQea':function(_0x45f226,_0x50345f){return _0x45f226!==_0x50345f;},'gooUt':_0x5c4d76(0x106),'yjvKE':'dGxId','GLJKl':function(_0x2e85e7){return _0x2e85e7();},'wwCid':function(_0x23626d,_0x3bca24){return _0x23626d instanceof _0x3bca24;}};try{if(_0xacedb3[_0x5c4d76(0x10e)](_0xacedb3[_0x5c4d76(0x12a)],_0xacedb3[_0x5c4d76(0x12d)]))return _0xacedb3[_0x5c4d76(0x148)](createLLM);else try{return _0xacedb3[_0x5c4d76(0x14e)](_0x564691);}catch(_0x216884){const _0x5472d6=_0x216884 instanceof _0x2a51ad?_0x216884[_0x5c4d76(0x112)]:_0xacedb3[_0x5c4d76(0x14c)](_0x315c7f,_0x216884);_0xacedb3['DtVwf'](_0x3aaa6b,_0x5472d6);}}catch(_0x102869){const _0x16d6b5=_0xacedb3['wwCid'](_0x102869,Error)?_0x102869[_0x5c4d76(0x112)]:_0xacedb3[_0x5c4d76(0x14c)](String,_0x102869);failAndExit(_0x16d6b5);}}export async function suggestBranch(_0x4e2c83){const _0x6efd6e=_0x1468,_0x39ee92={'gItXg':function(_0x179ac1){return _0x179ac1();},'gFMxW':function(_0x161a93){return _0x161a93();},'Svaxp':function(_0x4b7bae,_0x3c39c8,_0x5abcde){return _0x4b7bae(_0x3c39c8,_0x5abcde);},'uSkol':function(_0x6afe55,_0xb4bc17){return _0x6afe55(_0xb4bc17);},'TzWUn':function(_0x5ddb8f,_0x170b89){return _0x5ddb8f(_0x170b89);},'PEerd':_0x6efd6e(0x125),'DGrro':_0x6efd6e(0x13e)+_0x6efd6e(0x11d)+'th\x20this\x20'+_0x6efd6e(0x140)+_0x6efd6e(0xf2),'DvmiV':_0x6efd6e(0x120)+_0x6efd6e(0x150)+'reated.','aWcIn':function(_0x3f4351,_0x3152c2,_0x5cd5d3,_0x318eb9){return _0x3f4351(_0x3152c2,_0x5cd5d3,_0x318eb9);},'IOmkm':_0x6efd6e(0x146),'xTnQn':_0x6efd6e(0x110),'EpMYC':_0x6efd6e(0x155),'ngxHM':_0x6efd6e(0x14a)+_0x6efd6e(0x100)+_0x6efd6e(0x143)};_0x39ee92['gItXg'](getGitStatus);const _0x3c27cf=_0x39ee92[_0x6efd6e(0x13b)](getLLM),_0x9e6253='\x0a\x20\x20\x20\x20Gen'+_0x6efd6e(0x12b)+_0x6efd6e(0x116)+_0x6efd6e(0x113)+_0x6efd6e(0x13f)+_0x6efd6e(0x14b)+_0x6efd6e(0xf1)+_0x6efd6e(0x152)+'\x0a\x20\x20\x20\x20Rul'+_0x6efd6e(0x109)+'-\x20Format'+_0x6efd6e(0x115)+_0x6efd6e(0x144)+_0x6efd6e(0xf7)+'cription'+_0x6efd6e(0x10c)+_0x6efd6e(0x134)+_0x6efd6e(0x153)+_0x6efd6e(0xfb)+_0x6efd6e(0x121)+_0x6efd6e(0xfc)+'efactor,'+'\x20test\x0a\x20\x20'+_0x6efd6e(0x107)+_0x6efd6e(0x131)+_0x6efd6e(0x137)+'haracter'+_0x6efd6e(0x111)+_0x6efd6e(0x10a)+_0x6efd6e(0x128)+_0x6efd6e(0x10f)+_0x6efd6e(0x102)+_0x6efd6e(0x149)+_0x6efd6e(0x10d)+_0x6efd6e(0x114)+_0x6efd6e(0x13d)+_0x4e2c83+_0x6efd6e(0x124),_0x511a02=await _0x39ee92[_0x6efd6e(0x132)](withProgress,_0x6efd6e(0xf0)+_0x6efd6e(0x11c)+_0x6efd6e(0x12f)+_0x6efd6e(0xf6)+_0x6efd6e(0x13c)+'.',()=>_0x3c27cf[_0x6efd6e(0x141)](_0x9e6253)),_0x1e6b16=_0x39ee92[_0x6efd6e(0x118)](extractMessageText,_0x511a02[_0x6efd6e(0x103)]),_0x2c79d4=sanitizeBranchName(_0x1e6b16);!_0x2c79d4&&failAndExit('Failed\x20t'+_0x6efd6e(0x104)+'te\x20branc'+_0x6efd6e(0x127));_0x39ee92[_0x6efd6e(0x118)](branchExists,_0x2c79d4)&&failAndExit(_0x6efd6e(0x11b)+_0x6efd6e(0x154)+_0x6efd6e(0x136)+_0x2c79d4);_0x39ee92[_0x6efd6e(0x118)](section,'SUGGESTE'+_0x6efd6e(0xfd)),_0x39ee92[_0x6efd6e(0x157)](printKeyValues,[{'key':_0x39ee92[_0x6efd6e(0x135)],'value':_0x2c79d4}]);const _0x4c71b3=await _0x39ee92[_0x6efd6e(0x157)](askConfirmation,_0x39ee92[_0x6efd6e(0x130)]);if(!_0x4c71b3){console['log'](warn(_0x6efd6e(0x108),_0x39ee92[_0x6efd6e(0x12e)]));return;}try{_0x39ee92[_0x6efd6e(0x156)](execFileSync,_0x39ee92[_0x6efd6e(0xf8)],[_0x39ee92[_0x6efd6e(0x11e)],'-b',_0x2c79d4],{'stdio':_0x39ee92['EpMYC']});}catch{failAndExit(_0x39ee92[_0x6efd6e(0x11f)]);}}
@@ -1 +1 @@
1
- (function(_0x2d07bc,_0x191eee){const _0x1826a9=_0x48c9,_0x222bd6=_0x2d07bc();while(!![]){try{const _0x2bc381=parseInt(_0x1826a9(0x81))/0x1+parseInt(_0x1826a9(0x9f))/0x2*(parseInt(_0x1826a9(0xc5))/0x3)+parseInt(_0x1826a9(0xf6))/0x4+-parseInt(_0x1826a9(0xca))/0x5+parseInt(_0x1826a9(0xe6))/0x6*(parseInt(_0x1826a9(0xeb))/0x7)+parseInt(_0x1826a9(0x7d))/0x8*(parseInt(_0x1826a9(0xd4))/0x9)+-parseInt(_0x1826a9(0xa7))/0xa;if(_0x2bc381===_0x191eee)break;else _0x222bd6['push'](_0x222bd6['shift']());}catch(_0x59ea78){_0x222bd6['push'](_0x222bd6['shift']());}}}(_0x1ef7,0x99c9c));const _0x49877f=(function(){const _0x3d1943=_0x48c9,_0x2486be={'uDTGq':function(_0x2ac4df){return _0x2ac4df();},'YTOyZ':_0x3d1943(0x9b)};let _0x4892a3=!![];return function(_0xb4bd61,_0x4e7087){const _0x312123=_0x3d1943;if(_0x312123(0x9b)===_0x2486be[_0x312123(0xe3)]){const _0x13dc72=_0x4892a3?function(){const _0x18c042=_0x312123;if(_0x4e7087){const _0x3af96e=_0x4e7087[_0x18c042(0x7a)](_0xb4bd61,arguments);return _0x4e7087=null,_0x3af96e;}}:function(){};return _0x4892a3=![],_0x13dc72;}else return _0x2486be[_0x312123(0xf3)](_0x1263bb);};}()),_0x562b39=_0x49877f(this,function(){const _0x4e84cc=_0x48c9,_0x299493={'KJYyb':_0x4e84cc(0xf7)+_0x4e84cc(0xea)};return _0x562b39[_0x4e84cc(0xf2)]()[_0x4e84cc(0x82)](_0x4e84cc(0xf7)+_0x4e84cc(0xea))[_0x4e84cc(0xf2)]()[_0x4e84cc(0x9e)+'tor'](_0x562b39)[_0x4e84cc(0x82)](_0x299493[_0x4e84cc(0xe2)]);});function _0x1ef7(){const _0x5a3ff4=['de\x20hashe','e\x20commit','fIwys','\x20(Featur','trim','bINPh','.md','om\x20base\x20','replace','bCmWm','Failed\x20t','File','G\x20GENERA','subject','TED','esumo\x20cu','1434471VwHapP','cas\x0a\x0aHis','secao\x20\x22C','cwd','ositive\x20','4978740BcrTIH','PfhKK','abaixo.\x0a','map','YuzXN','es,\x20Fixe','tent.','bJRGz','rkdown\x20c','used','4757949ooNXXx','ommits\x22\x20','FwjMj','NFD','MootS','ZSDsN','Invalid\x20','no\x20histo','eUFav','body','CHANGELO','\x20|\x20body:','\x20mudanca','\x20CHANGEL','KJYyb','YTOyZ','Status','ase','86004oJdEyX','\x20commits','itulo,\x20r','unknown-','+)+$','406TyTnTd','hash','isNaN','utura:\x20t','OG\x20em\x20ma','s\x20(ultim','e)\x0a-\x20Inc','toString','uDTGq','do\x20Brasi','EHxNT','1503988dEFoCd','(((.+)+)','toLowerC','apply','date','dEnpn','16YUOCyN','mwZzX','utf8','sLdnu','370782oMdvXc','search','author','lua\x20uma\x20','s\x20value.','QHxci','ecente\x20d','rate\x20cha','ngelog.','og...','a\x20curta\x20','invoke','com\x20list','l\x0a-\x20Estr','No\x20commi','commits\x20','uVQXb','StRsB','normaliz','ntos\x0a-\x20N','SwmJt','content','torico\x20r','s\x20e\x20assu','\x20|\x20','coes\x20por','MBqYV','join','rico\x20de\x20','construc','2fSRUoB','\x20to\x20gene','PkclM','message','slice','changelo','parseInt','rtugues\x20','14879660bGvyfO','-\x20Respon','te\x20mudan','aOaYR','\x20tipo\x20de','da\x20em\x20po','commits','\x20Use\x20a\x20p','Snmrb','ts\x20found','o\x20genera','te\x20chang','ao\x20inven','length'];_0x1ef7=function(){return _0x5a3ff4;};return _0x1ef7();}_0x562b39();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';function _0x48c9(_0x1f9947,_0x2a6a0d){_0x1f9947=_0x1f9947-0x7a;const _0x1a4fa0=_0x1ef7();let _0x562b39=_0x1a4fa0[_0x1f9947];return _0x562b39;}import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x193627=_0x48c9,_0x15f3e3={'bQVCH':function(_0x2d49e4){return _0x2d49e4();},'QHxci':function(_0x149d06,_0x667a67){return _0x149d06===_0x667a67;},'mwZzX':_0x193627(0xd1),'YuzXN':_0x193627(0x95),'dEnpn':function(_0x2ca522,_0x4688e9){return _0x2ca522(_0x4688e9);}};try{return _0x15f3e3['bQVCH'](createLLM);}catch(_0x187148){if(_0x15f3e3[_0x193627(0x86)](_0x15f3e3[_0x193627(0x7e)],_0x15f3e3[_0x193627(0xce)]))return _0x44b302;else{const _0x18e1f2=_0x187148 instanceof Error?_0x187148[_0x193627(0xa2)]:_0x15f3e3[_0x193627(0x7c)](String,_0x187148);_0x15f3e3[_0x193627(0x7c)](failAndExit,_0x18e1f2);}}}function sanitizeName(_0x573c2e){const _0x648ef9=_0x48c9,_0x211efd={'sLdnu':function(_0x55c8b8,_0x164e58){return _0x55c8b8||_0x164e58;},'eUFav':_0x648ef9(0xa4)+'g'},_0x4141ad=_0x573c2e[_0x648ef9(0x93)+'e'](_0x648ef9(0xd7))['replace'](/[\u0300-\u036f]/g,'')[_0x648ef9(0xf8)+_0x648ef9(0xe5)]()['replace'](/[^a-z0-9-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x648ef9(0xbd)](/^-+|-+$/g,'');return _0x211efd[_0x648ef9(0x80)](_0x4141ad,_0x211efd[_0x648ef9(0xdc)]);}function formatDateForFile(_0x676e7b){const _0x50eae5=_0x48c9;return _0x676e7b['toISOStr'+'ing']()[_0x50eae5(0xa3)](0x0,0xa);}function resolveCommitLimit(_0x36c49c){const _0x178e0f=_0x48c9,_0x4d284a={'NepPi':function(_0x39ed47,_0x3bacaf){return _0x39ed47<=_0x3bacaf;},'JbUcG':function(_0x261341,_0x4c1d09){return _0x261341(_0x4c1d09);}},_0x202279=_0x36c49c?.[_0x178e0f(0xad)]?.[_0x178e0f(0xb9)]();if(!_0x202279)return DEFAULT_COMMIT_LIMIT;const _0x960586=Number[_0x178e0f(0xa5)](_0x202279,0xa);return(Number[_0x178e0f(0xed)](_0x960586)||_0x4d284a['NepPi'](_0x960586,0x0))&&_0x4d284a['JbUcG'](failAndExit,_0x178e0f(0xda)+'--commit'+_0x178e0f(0x85)+_0x178e0f(0xae)+_0x178e0f(0xc9)+'integer.'),Math['min'](_0x960586,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x3b535f){const _0x5be893=_0x48c9,_0x4c06bc={'bINPh':_0x5be893(0xe9)+_0x5be893(0x7b),'FwjMj':_0x5be893(0xe9)+_0x5be893(0x83),'StRsB':function(_0x26e4be,_0x360b06){return _0x26e4be(_0x360b06);},'PkclM':function(_0x1c5b47,_0x8a609b){return _0x1c5b47===_0x8a609b;},'Snmrb':_0x5be893(0x8f)+_0x5be893(0xb0)+_0x5be893(0xa0)+_0x5be893(0x88)+_0x5be893(0x89)},_0x38638c=_0x4c06bc['StRsB'](getCommitHistory,_0x3b535f);return _0x4c06bc[_0x5be893(0xa1)](_0x38638c[_0x5be893(0xb4)],0x0)&&_0x4c06bc[_0x5be893(0x92)](failAndExit,_0x4c06bc[_0x5be893(0xaf)]),_0x38638c[_0x5be893(0xcd)](_0x404ce0=>{const _0x36c32f=_0x5be893,_0xb10839=_0x404ce0[_0x36c32f(0xdd)]?_0x36c32f(0xdf)+'\x20'+_0x404ce0[_0x36c32f(0xdd)]['replace'](/\s+/g,'\x20')[_0x36c32f(0xb9)]():'',_0x21509e=_0x404ce0[_0x36c32f(0x7b)]||_0x4c06bc[_0x36c32f(0xba)],_0x5cd071=_0x404ce0['author']||_0x4c06bc[_0x36c32f(0xd6)];return'-\x20'+_0x21509e+'\x20|\x20'+_0x404ce0[_0x36c32f(0xec)][_0x36c32f(0xa3)](0x0,0x7)+'\x20|\x20'+_0x5cd071+_0x36c32f(0x99)+_0x404ce0[_0x36c32f(0xc2)]+_0xb10839;})[_0x5be893(0x9c)]('\x0a');}export async function generateChangelog(_0x25a1df,_0x391493){const _0x44312a=_0x48c9,_0x4e9f96={'GXCGa':function(_0x9a6b4c){return _0x9a6b4c();},'uVQXb':function(_0x141c8a,_0x26d462){return _0x141c8a(_0x26d462);},'fIwys':function(_0x1a09c1,_0x318cce){return _0x1a09c1||_0x318cce;},'EHxNT':function(_0xb84995,_0x258688,_0x563030){return _0xb84995(_0x258688,_0x563030);},'XMOwi':'AI\x20is\x20ge'+'nerating'+'\x20changel'+_0x44312a(0x8a),'MootS':function(_0x30c754,_0x36e34a){return _0x30c754(_0x36e34a);},'bCmWm':_0x44312a(0xa4)+'gs','PfhKK':function(_0x4af0e4,_0x6efd88,_0x5d8f6a){return _0x4af0e4(_0x6efd88,_0x5d8f6a);},'gRDGo':function(_0x3462da,_0x59f650,_0x38254b,_0x5eb735){return _0x3462da(_0x59f650,_0x38254b,_0x5eb735);},'ZSDsN':_0x44312a(0x7f),'sKzjM':function(_0x4218c7,_0xb1d328){return _0x4218c7(_0xb1d328);},'cNKCY':_0x44312a(0xe4),'aOaYR':function(_0x5a9e9d,_0x4d040a){return _0x5a9e9d(_0x4d040a);},'kimRt':function(_0x1ea91a,_0x4d91db){return _0x1ea91a(_0x4d91db);}};_0x4e9f96['GXCGa'](getGitStatus);const _0x48cb60=getLLM(),_0x165497=resolveCommitLimit(_0x391493),_0x26a8ab=getCurrentBranch(),_0x1003de=_0x4e9f96[_0x44312a(0x91)](sanitizeName,_0x4e9f96[_0x44312a(0xb7)](_0x25a1df,_0x26a8ab)[_0x44312a(0xb9)]()),_0x2a2c1c=_0x4e9f96[_0x44312a(0x91)](formatDateForFile,new Date()),_0x301e7e=_0x1003de+'-'+_0x2a2c1c+_0x44312a(0xbb),_0x54ad4a=_0x4e9f96['uVQXb'](buildCommitHistoryPrompt,_0x165497),_0x54a354=('\x0aCrie\x20um'+_0x44312a(0xe1)+_0x44312a(0xef)+_0x44312a(0xd2)+_0x44312a(0xbc)+_0x44312a(0xdb)+_0x44312a(0x9d)+_0x44312a(0x90)+_0x44312a(0xcc)+'Regras:\x0a'+_0x44312a(0xa8)+_0x44312a(0xac)+_0x44312a(0xa6)+_0x44312a(0xf4)+_0x44312a(0x8e)+_0x44312a(0xee)+_0x44312a(0xe8)+_0x44312a(0xc4)+'rto\x20e\x20se'+_0x44312a(0x9a)+_0x44312a(0xab)+_0x44312a(0xe0)+_0x44312a(0xb8)+_0x44312a(0xcf)+'s,\x20Refac'+'tors,\x20Do'+'cs,\x20Chor'+_0x44312a(0xf1)+_0x44312a(0x84)+_0x44312a(0xc7)+_0x44312a(0xd5)+_0x44312a(0x8d)+_0x44312a(0x8b)+_0x44312a(0xb5)+_0x44312a(0x98)+_0x44312a(0x94)+_0x44312a(0xb3)+_0x44312a(0xa9)+_0x44312a(0xc6)+_0x44312a(0x97)+_0x44312a(0x87)+_0x44312a(0xb6)+_0x44312a(0xf0)+'os\x20'+_0x165497+(_0x44312a(0xe7)+'):\x0a')+_0x54ad4a+'\x0a')['trim'](),_0x44e741=await _0x4e9f96['EHxNT'](withProgress,_0x4e9f96['XMOwi'],()=>_0x48cb60[_0x44312a(0x8c)](_0x54a354)),_0x52bf4e=_0x4e9f96[_0x44312a(0xd8)](extractMessageText,_0x44e741[_0x44312a(0x96)]);!_0x52bf4e&&failAndExit(_0x44312a(0xbf)+_0x44312a(0xb1)+_0x44312a(0xb2)+'elog\x20con'+_0x44312a(0xd0));const _0x2cee02=_0x4e9f96[_0x44312a(0xf5)](join,process[_0x44312a(0xc8)](),_0x4e9f96[_0x44312a(0xbe)]),_0x595224=join(_0x2cee02,_0x301e7e);_0x4e9f96[_0x44312a(0xcb)](mkdirSync,_0x2cee02,{'recursive':!![]}),_0x4e9f96['gRDGo'](writeFileSync,_0x595224,_0x52bf4e['trim']()+'\x0a',_0x4e9f96[_0x44312a(0xd9)]),_0x4e9f96[_0x44312a(0xd8)](section,_0x44312a(0xde)+_0x44312a(0xc1)+_0x44312a(0xc3)),_0x4e9f96['sKzjM'](printKeyValues,[{'key':_0x4e9f96['cNKCY'],'value':_0x4e9f96[_0x44312a(0xaa)](ok,'OK')},{'key':_0x44312a(0xc0),'value':_0x595224},{'key':'Commits\x20'+_0x44312a(0xd3),'value':_0x4e9f96['kimRt'](String,_0x165497)}]);}
1
+ (function(_0xd02950,_0x389dec){const _0x1d4e9b=_0x401f,_0xcc5388=_0xd02950();while(!![]){try{const _0x38720f=-parseInt(_0x1d4e9b(0x20a))/0x1+parseInt(_0x1d4e9b(0x1d9))/0x2*(-parseInt(_0x1d4e9b(0x1c3))/0x3)+parseInt(_0x1d4e9b(0x1e7))/0x4+parseInt(_0x1d4e9b(0x1fb))/0x5+-parseInt(_0x1d4e9b(0x1f6))/0x6*(-parseInt(_0x1d4e9b(0x1f4))/0x7)+parseInt(_0x1d4e9b(0x1c2))/0x8*(-parseInt(_0x1d4e9b(0x1fa))/0x9)+-parseInt(_0x1d4e9b(0x238))/0xa*(-parseInt(_0x1d4e9b(0x21d))/0xb);if(_0x38720f===_0x389dec)break;else _0xcc5388['push'](_0xcc5388['shift']());}catch(_0x180a3d){_0xcc5388['push'](_0xcc5388['shift']());}}}(_0x1d6e,0x69ea0));const _0x40e236=(function(){let _0x27d51e=!![];return function(_0x3bc959,_0x5bc537){const _0x281695=_0x27d51e?function(){const _0x544227=_0x401f;if(_0x5bc537){const _0x488ad5=_0x5bc537[_0x544227(0x239)](_0x3bc959,arguments);return _0x5bc537=null,_0x488ad5;}}:function(){};return _0x27d51e=![],_0x281695;};}()),_0x171238=_0x40e236(this,function(){const _0x203171=_0x401f,_0x42c653={'xIBMu':'(((.+)+)'+_0x203171(0x1d1)};return _0x171238['toString']()[_0x203171(0x1db)](_0x203171(0x202)+'+)+$')[_0x203171(0x21f)]()[_0x203171(0x1dc)+_0x203171(0x22c)](_0x171238)[_0x203171(0x1db)](_0x42c653[_0x203171(0x23a)]);});_0x171238();import{mkdirSync,writeFileSync}from'fs';function _0x401f(_0x3e8638,_0x357790){_0x3e8638=_0x3e8638-0x1bd;const _0x105335=_0x1d6e();let _0x171238=_0x105335[_0x3e8638];return _0x171238;}import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x45cc95=_0x401f,_0x2e2c8a={'fSDoE':function(_0x5e8e9e){return _0x5e8e9e();},'UrMHB':function(_0x438f82,_0x43d9cc){return _0x438f82 instanceof _0x43d9cc;},'mLmQt':function(_0xa2c6ed,_0x2d05d4){return _0xa2c6ed(_0x2d05d4);},'KgaZg':function(_0x3ec149,_0x266247){return _0x3ec149(_0x266247);}};try{return _0x2e2c8a[_0x45cc95(0x1df)](createLLM);}catch(_0x2ab0c8){const _0x3b34b2=_0x2e2c8a[_0x45cc95(0x205)](_0x2ab0c8,Error)?_0x2ab0c8[_0x45cc95(0x235)]:_0x2e2c8a[_0x45cc95(0x226)](String,_0x2ab0c8);_0x2e2c8a[_0x45cc95(0x23b)](failAndExit,_0x3b34b2);}}function sanitizeName(_0x258a0e){const _0x5a0aa9=_0x401f,_0x14d678={'kyGFM':_0x5a0aa9(0x234),'YZFUO':function(_0x49ddfe,_0x33333a){return _0x49ddfe||_0x33333a;},'vZQgL':_0x5a0aa9(0x1d5)+'g'},_0x9bb125=_0x258a0e['normaliz'+'e'](_0x14d678[_0x5a0aa9(0x21c)])[_0x5a0aa9(0x20b)](/[\u0300-\u036f]/g,'')[_0x5a0aa9(0x1e3)+_0x5a0aa9(0x232)]()[_0x5a0aa9(0x20b)](/[^a-z0-9-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x5a0aa9(0x20b)](/^-+|-+$/g,'');return _0x14d678['YZFUO'](_0x9bb125,_0x14d678['vZQgL']);}function formatDateForFile(_0x4e7418){const _0x3d801e=_0x401f;return _0x4e7418[_0x3d801e(0x211)+'ing']()['slice'](0x0,0xa);}function _0x1d6e(){const _0x14fd9b=['utura:\x20t','eDvco','te\x20mudan','unknown-','LXUmj','Regras:\x0a','s,\x20Refac','nerating','ao\x20inven','subject','body','19088lSLhFx','486KrMVoS','parseInt','\x20CHANGEL','CHANGELO','ntos\x0a-\x20N','\x20(Featur','xYHqt','wNMnQ','\x20|\x20','cas\x0a\x0aHis','commits','TED','GCIzS','lua\x20uma\x20','+)+$','torico\x20r','cs,\x20Chor','wxqlf','changelo','QIcUE','min','author','5974pMNxKN','VaqCd','search','construc','da\x20em\x20po','og...','fSDoE','s\x20e\x20assu','s\x20(ultim','rkdown\x20c','toLowerC','CawLC','secao\x20\x22C','uodeA','1113940RhzShL','elog\x20con','blqcI','content','Status','l\x0a-\x20Estr','\x20|\x20body:','de\x20hashe','Invalid\x20','ositive\x20','\x20mudanca','ommits\x22\x20','Failed\x20t','469UVMVPD','hash','19218mEPDoV','do\x20Brasi','e\x20commit','o\x20genera','2097yIzKxK','3429365RJmVAF','-\x20Respon','isNaN','hWHce','es,\x20Fixe','used','tors,\x20Do','(((.+)+)','ecente\x20d','slice','UrMHB','FVDes','length','YWmzC','rico\x20de\x20','852532XCGFfB','replace','om\x20base\x20','date','rtugues\x20','\x20Use\x20a\x20p','cYOAo','toISOStr','EmObi','join','ts\x20found','utf8','\x20commits','os\x20','cwd','OG\x20em\x20ma','GIPee','Commits\x20','kyGFM','12619519aEWqpA','OMeWj','toString','ngelog.','dgeqw','xoqHs','invoke','integer.','com\x20list','mLmQt','map','eQzml','raYyS','commits\x20','a\x20curta\x20','tor','G\x20GENERA','jxHIX','LvaUr','\x20changel','\x0aCrie\x20um','ase','itulo,\x20r','NFD','message','):\x0a','trim','10sZefIB','apply','xIBMu','KgaZg'];_0x1d6e=function(){return _0x14fd9b;};return _0x1d6e();}function resolveCommitLimit(_0x305c22){const _0x21a4b6=_0x401f,_0x537ea3={'GIPee':'unknown-'+_0x21a4b6(0x20d),'hWHce':'unknown-'+_0x21a4b6(0x1d8),'CFnUE':function(_0x706305,_0x5540ff){return _0x706305===_0x5540ff;},'LXUmj':'MHRzw','AsgfH':function(_0x2a9805,_0x376557){return _0x2a9805<=_0x376557;},'dgeqw':function(_0x5a09b9,_0x2dcc6f){return _0x5a09b9(_0x2dcc6f);},'dtyKO':_0x21a4b6(0x1ef)+'--commit'+'s\x20value.'+_0x21a4b6(0x20f)+_0x21a4b6(0x1f0)+_0x21a4b6(0x224)},_0x583026=_0x305c22?.[_0x21a4b6(0x1cd)]?.[_0x21a4b6(0x237)]();if(!_0x583026){if(_0x537ea3['CFnUE'](_0x537ea3['LXUmj'],_0x537ea3[_0x21a4b6(0x240)]))return DEFAULT_COMMIT_LIMIT;else{const _0x5187ae=_0x3e8f46[_0x21a4b6(0x1c1)]?_0x21a4b6(0x1ed)+'\x20'+_0x4b9bde['body'][_0x21a4b6(0x20b)](/\s+/g,'\x20')['trim']():'',_0x5b9223=_0x5075e0[_0x21a4b6(0x20d)]||_0x537ea3[_0x21a4b6(0x21a)],_0xae66f6=_0x31d9b8[_0x21a4b6(0x1d8)]||_0x537ea3[_0x21a4b6(0x1fe)];return'-\x20'+_0x5b9223+'\x20|\x20'+_0x25d1be[_0x21a4b6(0x1f5)][_0x21a4b6(0x204)](0x0,0x7)+_0x21a4b6(0x1cb)+_0xae66f6+'\x20|\x20'+_0x26cb59['subject']+_0x5187ae;}}const _0x2330bd=Number[_0x21a4b6(0x1c4)](_0x583026,0xa);return(Number[_0x21a4b6(0x1fd)](_0x2330bd)||_0x537ea3['AsgfH'](_0x2330bd,0x0))&&_0x537ea3[_0x21a4b6(0x221)](failAndExit,_0x537ea3['dtyKO']),Math[_0x21a4b6(0x1d7)](_0x2330bd,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x6cdad9){const _0x5501cd=_0x401f,_0x1b2630={'GCIzS':_0x5501cd(0x23f)+'date','uodeA':function(_0x330b23,_0x61e01){return _0x330b23(_0x61e01);},'eDvco':function(_0x22c6fc,_0x524639){return _0x22c6fc===_0x524639;},'angHG':function(_0x2bf473,_0x143533){return _0x2bf473(_0x143533);},'cfRvA':'No\x20commi'+_0x5501cd(0x214)+'\x20to\x20gene'+'rate\x20cha'+_0x5501cd(0x220)},_0x1893f1=_0x1b2630[_0x5501cd(0x1e6)](getCommitHistory,_0x6cdad9);return _0x1b2630[_0x5501cd(0x23d)](_0x1893f1[_0x5501cd(0x207)],0x0)&&_0x1b2630['angHG'](failAndExit,_0x1b2630['cfRvA']),_0x1893f1[_0x5501cd(0x227)](_0x57c870=>{const _0x372d4d=_0x5501cd,_0x293a8e=_0x57c870[_0x372d4d(0x1c1)]?'\x20|\x20body:'+'\x20'+_0x57c870[_0x372d4d(0x1c1)][_0x372d4d(0x20b)](/\s+/g,'\x20')[_0x372d4d(0x237)]():'',_0x22d2ce=_0x57c870[_0x372d4d(0x20d)]||_0x1b2630[_0x372d4d(0x1cf)],_0x3e4c64=_0x57c870[_0x372d4d(0x1d8)]||'unknown-'+_0x372d4d(0x1d8);return'-\x20'+_0x22d2ce+_0x372d4d(0x1cb)+_0x57c870[_0x372d4d(0x1f5)][_0x372d4d(0x204)](0x0,0x7)+_0x372d4d(0x1cb)+_0x3e4c64+_0x372d4d(0x1cb)+_0x57c870[_0x372d4d(0x1c0)]+_0x293a8e;})[_0x5501cd(0x213)]('\x0a');}export async function generateChangelog(_0x17bcc1,_0x4c72dc){const _0x490827=_0x401f,_0x343712={'bTLlK':function(_0x1e0bef,_0x18cefd){return _0x1e0bef instanceof _0x18cefd;},'jxHIX':function(_0x3ce81d,_0x17eccf){return _0x3ce81d(_0x17eccf);},'YWmzC':function(_0x4d3630){return _0x4d3630();},'xoqHs':function(_0xe0474f,_0x10d7cc){return _0xe0474f(_0x10d7cc);},'ekwng':function(_0x347b52,_0x1d253b){return _0x347b52||_0x1d253b;},'eQzml':function(_0xdc928a,_0x4bf5bc){return _0xdc928a(_0x4bf5bc);},'raYyS':function(_0x29c026,_0x12ff4b,_0x471041){return _0x29c026(_0x12ff4b,_0x471041);},'OMeWj':function(_0x1d2220,_0x3fdd73){return _0x1d2220!==_0x3fdd73;},'cYOAo':'QIcUE','EmObi':function(_0x4cd188,_0x13728b){return _0x4cd188(_0x13728b);},'wxqlf':_0x490827(0x1f3)+_0x490827(0x1f9)+'te\x20chang'+_0x490827(0x1e8)+'tent.','CawLC':_0x490827(0x1d5)+'gs','VaqCd':function(_0x3334d4,_0x501f20,_0x12901a){return _0x3334d4(_0x501f20,_0x12901a);},'blqcI':function(_0x4c47d6,_0x3ea7f0){return _0x4c47d6(_0x3ea7f0);},'jlUve':_0x490827(0x1c6)+_0x490827(0x22d)+_0x490827(0x1ce),'xYHqt':function(_0x5e4c05,_0x91da56){return _0x5e4c05(_0x91da56);},'FVDes':_0x490827(0x1eb),'wNMnQ':function(_0x18c3ce,_0x2b0f19){return _0x18c3ce(_0x2b0f19);},'LvaUr':'File','rIelG':_0x490827(0x21b)+_0x490827(0x200)};getGitStatus();const _0x35ba70=_0x343712['YWmzC'](getLLM),_0x5cbb1f=_0x343712[_0x490827(0x22e)](resolveCommitLimit,_0x4c72dc),_0xa8be25=_0x343712[_0x490827(0x208)](getCurrentBranch),_0x428a31=_0x343712[_0x490827(0x222)](sanitizeName,_0x343712['ekwng'](_0x17bcc1,_0xa8be25)[_0x490827(0x237)]()),_0x26c120=_0x343712[_0x490827(0x228)](formatDateForFile,new Date()),_0xe473c=_0x428a31+'-'+_0x26c120+'.md',_0x1ad8cf=_0x343712[_0x490827(0x228)](buildCommitHistoryPrompt,_0x5cbb1f),_0x1622f1=(_0x490827(0x231)+_0x490827(0x1c5)+_0x490827(0x219)+_0x490827(0x1e2)+_0x490827(0x20c)+'no\x20histo'+_0x490827(0x209)+_0x490827(0x22a)+'abaixo.\x0a'+_0x490827(0x241)+_0x490827(0x1fc)+_0x490827(0x1dd)+_0x490827(0x20e)+_0x490827(0x1f7)+_0x490827(0x1ec)+_0x490827(0x23c)+_0x490827(0x233)+'esumo\x20cu'+'rto\x20e\x20se'+'coes\x20por'+'\x20tipo\x20de'+_0x490827(0x1f1)+_0x490827(0x1c8)+_0x490827(0x1ff)+_0x490827(0x1bd)+_0x490827(0x201)+_0x490827(0x1d3)+'e)\x0a-\x20Inc'+_0x490827(0x1d0)+_0x490827(0x1e5)+_0x490827(0x1f2)+_0x490827(0x225)+_0x490827(0x22b)+_0x490827(0x1ee)+_0x490827(0x1e0)+_0x490827(0x1c7)+_0x490827(0x1bf)+_0x490827(0x23e)+_0x490827(0x1cc)+_0x490827(0x1d2)+_0x490827(0x203)+_0x490827(0x1f8)+_0x490827(0x1e1)+_0x490827(0x217)+_0x5cbb1f+(_0x490827(0x216)+_0x490827(0x236))+_0x1ad8cf+'\x0a')[_0x490827(0x237)](),_0x13e67d=await _0x343712[_0x490827(0x229)](withProgress,'AI\x20is\x20ge'+_0x490827(0x1be)+_0x490827(0x230)+_0x490827(0x1de),()=>_0x35ba70[_0x490827(0x223)](_0x1622f1)),_0x29cf70=extractMessageText(_0x13e67d[_0x490827(0x1ea)]);if(!_0x29cf70){if(_0x343712[_0x490827(0x21e)](_0x343712[_0x490827(0x210)],_0x490827(0x1d6)))try{return _0x3ff5e9();}catch(_0x89b1b1){const _0x2b417e=dZvfhd['bTLlK'](_0x89b1b1,_0x17d829)?_0x89b1b1[_0x490827(0x235)]:dZvfhd[_0x490827(0x22e)](_0x3edb2d,_0x89b1b1);_0x32ad9e(_0x2b417e);}else _0x343712[_0x490827(0x212)](failAndExit,_0x343712[_0x490827(0x1d4)]);}const _0x4acbac=_0x343712['raYyS'](join,process[_0x490827(0x218)](),_0x343712[_0x490827(0x1e4)]),_0x260078=_0x343712[_0x490827(0x1da)](join,_0x4acbac,_0xe473c);mkdirSync(_0x4acbac,{'recursive':!![]}),writeFileSync(_0x260078,_0x29cf70[_0x490827(0x237)]()+'\x0a',_0x490827(0x215)),_0x343712[_0x490827(0x1e9)](section,_0x343712['jlUve']),_0x343712[_0x490827(0x1c9)](printKeyValues,[{'key':_0x343712[_0x490827(0x206)],'value':_0x343712[_0x490827(0x1ca)](ok,'OK')},{'key':_0x343712[_0x490827(0x22f)],'value':_0x260078},{'key':_0x343712['rIelG'],'value':String(_0x5cbb1f)}]);}
@@ -1 +1 @@
1
- (function(_0x4d5906,_0x2ba1db){const _0x1785b2=_0xae90,_0x1ff8e6=_0x4d5906();while(!![]){try{const _0x4f6dd6=parseInt(_0x1785b2(0xe3))/0x1+-parseInt(_0x1785b2(0x19b))/0x2+parseInt(_0x1785b2(0x14f))/0x3+-parseInt(_0x1785b2(0x157))/0x4+parseInt(_0x1785b2(0x14b))/0x5*(parseInt(_0x1785b2(0x196))/0x6)+-parseInt(_0x1785b2(0x19e))/0x7+-parseInt(_0x1785b2(0x17e))/0x8*(parseInt(_0x1785b2(0x119))/0x9);if(_0x4f6dd6===_0x2ba1db)break;else _0x1ff8e6['push'](_0x1ff8e6['shift']());}catch(_0x58309e){_0x1ff8e6['push'](_0x1ff8e6['shift']());}}}(_0x4ac3,0x7fbdc));const _0x4d4583=(function(){const _0x54214e=_0xae90,_0x4e401a={'obGHu':_0x54214e(0x16c)+_0x54214e(0x11a)+_0x54214e(0xdb)+'t\x20messag'+'e.','pbwZt':function(_0x33b4c0,_0x5699e0){return _0x33b4c0!==_0x5699e0;}};let _0x16dea3=!![];return function(_0x1eb0d8,_0x3e77ed){const _0x1c0afc=_0x54214e,_0x564864={'jeKeP':function(_0x3932c3,_0x327c53){return _0x3932c3(_0x327c53);},'HPYnk':_0x4e401a[_0x1c0afc(0x130)],'cENOT':function(_0x506c93,_0x27420d){const _0x4d1ee5=_0x1c0afc;return _0x4e401a[_0x4d1ee5(0xca)](_0x506c93,_0x27420d);},'pUBuA':_0x1c0afc(0xe1)},_0x312dd9=_0x16dea3?function(){const _0x21f3f4=_0x1c0afc,_0x4e2b7d={'fmOJT':function(_0x1efeae,_0x5d08b6){const _0x10c86b=_0xae90;return _0x564864[_0x10c86b(0x11d)](_0x1efeae,_0x5d08b6);},'wviTZ':_0x564864[_0x21f3f4(0x107)]};if(_0x3e77ed){if(_0x564864[_0x21f3f4(0x1d0)](_0x21f3f4(0x154),_0x564864['pUBuA'])){const _0x344cac=_0x3e77ed[_0x21f3f4(0x136)](_0x1eb0d8,arguments);return _0x3e77ed=null,_0x344cac;}else _0x4e2b7d[_0x21f3f4(0x1c5)](_0x1a68a1,_0x4e2b7d['wviTZ']);}}:function(){};return _0x16dea3=![],_0x312dd9;};}()),_0x3e5a85=_0x4d4583(this,function(){const _0x2d0eb7=_0xae90,_0x301742={'GXtyD':_0x2d0eb7(0x111)+'+)+$'};return _0x3e5a85['toString']()[_0x2d0eb7(0xdd)](_0x301742['GXtyD'])[_0x2d0eb7(0x1dd)]()[_0x2d0eb7(0xf0)+_0x2d0eb7(0x129)](_0x3e5a85)['search'](_0x2d0eb7(0x111)+_0x2d0eb7(0x1ae));});_0x3e5a85();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation,askEditableInput}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,warn,withProgress}from'../ui.js';function _0x4ac3(){const _0x8b3f3e=['hZDdU','OPznn','Diff\x20sta','and\x20upst','184WRRUDq','wfIYw','refactor','3.\x20SUGGE','NLhhL','o\x20push\x20\x22','OMevM','OftqK','WARNING','uMrUC','ne\x20Conve','sent','MvqYp','d\x20files.','ithout\x20c','ges\x20(git','LJeLB','mit\x20mess','stream','log','jEGzk','ormat:\x20<','ion):\x20','Consider','6708jUnZnf','ng\x20into\x20','\x20staged\x20','g\x20commit','created.','430998uhtSql','...','Staged\x20f','1118943jOtmDN','\x20Prompt\x20','nch\x20\x22','all','every','Final\x20co','\x20more','YgyjU','No\x20file\x20','renamed','taged\x20ch','ype\x20unle','nPTRv','lint','map','XXXun','+)+$','\x20modifie','sponse..','files','Detected','run\x20`gem','commit','AI\x20is\x20th','am?\x20(y/N','docs','modified','oSlEh','Push\x20cur','\x0a\x0aPatch\x20','BZaot','gPoBi','Summary','ImoiS','length','--set-up','age\x20(pre','ns\x0a\x0aStag','n\x20Englis','fmOJT','\x20Abortin','ns.\x20','):\x20','ons,\x20','likely\x20t','iles','\x22\x20now?\x20(','YHjfO','\x20commits','tected.\x20','cENOT','e:\x20','tCQEG','\x20Staged\x20','\x0a\x0aDiff\x20s','Commit\x20m','all\x20chan','\x20renamed','ode\x20fenc','content','args','excerpt','OdSUR','toString','PaZVP','remote\x20c','Commit\x20u','qOTcn','inherit','dvEBL','ted)','paths\x20av','EOtcj','pbwZt','\x0a-\x20Keep\x20','subject>','aTzjb','not\x20avai','ed.','4.\x20CONFI','chore','irst\x20or\x20','fJOhV','UPNiQ','planatio','startsWi','feat','ase','WegRS','GKXkr','te\x20commi','patchCha','search','fkNTZ','other\x20on','and\x20spec','ClSor','d\x20commit','350985MrXluE','UFDyL','hpgAD','sting\x20re','LYjdQ','ltPGU','mmit','\x20Push\x20co','CANCELED','\x20Commit\x20','sing\x20thi','lude\x20a\x20t','tRbYJ','construc','mpleted\x20','\x20Running','fix','figured\x20','branch','other','\x20complet','label','gests\x20an','\x20inserti','TIP','essage\x20i','eturn\x20ON','pKELe','sxXoG','TsiCu','xcerpt.','ZepXu','quytJ','puVTB','1.\x20STAGE','slice','HPYnk','\x20added,\x20','\x0a-\x20Use\x20f','dIcWD','s\x20messag','insertio','pAfIV','\x20chars).','\x20splitti','was\x20not\x20','(((.+)+)','subject\x20','EwgMM','inking\x20a','Start\x20wi','ules:\x0a-\x20','metrics','MQbqe','226539CkOklf','o\x20genera','Edit\x20com','status','jeKeP','2.\x20SUMMA','--if-pre','Mncbi','CHECK','test','\x20failed.','AmiBy','run','eam\x20foun','y/N):\x20','tat:\x0a','tor','h\x20based\x20','\x20type','join','ZJjdL','YUXUr','t\x20messag','obGHu','WKChV','RIZE','fileCoun','remote','\x0a\x0aShort\x20','apply','\x20deletio','endsWith','NzMfY','\x20files\x20c','FyrrI','th\x20this\x20','WloKF','tYiKn','runcated','fullName','to\x20','\x20suggest','ntional\x20','PQbce','anges.\x0aR','vdgaL','deletion','\x20commit.','diffStat','d.\x20Push\x20','3505mERucx','bFbpL','tional-s','path','1376871NCswpt','\x20No\x20git\x20','SsfHc','ssage,\x20w','git','dguJG','files\x20de','WyKZM','464604ZQtUKU','Suggeste','type>(op','npm.cmd','concise\x20','taged\x20di','\x20add\x20.).','LY\x20the\x20c','zHMXh','d,\x20','\x20Check\x20i','SgwFb','ss\x20Enter','\x22\x20to\x20\x22','ZDJRz','summary:','truncate','added','\x0aWrite\x20o','SKIPPED','t\x20--all`','Failed\x20t','\x20(trunca','\x20to\x20keep','VemJy','onfigure','tGgcC','ff\x20(','(none)','ZjWPv','rvWOv','deleted','hanges\x20f','ailable.','jaBUU'];_0x4ac3=function(){return _0x8b3f3e;};return _0x4ac3();}const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x37e18d=_0xae90,_0x469640={'hZDdU':function(_0x14b359){return _0x14b359();},'ltPGU':function(_0x5b9d00,_0x5a459b){return _0x5b9d00 instanceof _0x5a459b;},'ZDJRz':function(_0x9e5779,_0x276536){return _0x9e5779(_0x276536);}};try{return _0x469640[_0x37e18d(0x17a)](createLLM);}catch(_0xd18601){const _0x2bbea8=_0x469640[_0x37e18d(0xe8)](_0xd18601,Error)?_0xd18601['message']:_0x469640[_0x37e18d(0x165)](String,_0xd18601);_0x469640['ZDJRz'](failAndExit,_0x2bbea8);}}function countByStatus(_0x135545){const _0x2f9ff0=_0xae90,_0x5b9522={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x3f7976 of _0x135545[_0x2f9ff0(0x1b1)]){if(_0x3f7976[_0x2f9ff0(0x11c)][_0x2f9ff0(0xd6)+'th']('A')){_0x5b9522[_0x2f9ff0(0x168)]+=0x1;continue;}if(_0x3f7976[_0x2f9ff0(0x11c)]['startsWi'+'th']('M')){_0x5b9522[_0x2f9ff0(0x1b8)]+=0x1;continue;}if(_0x3f7976[_0x2f9ff0(0x11c)][_0x2f9ff0(0xd6)+'th']('D')){_0x5b9522['deleted']+=0x1;continue;}if(_0x3f7976[_0x2f9ff0(0x11c)][_0x2f9ff0(0xd6)+'th']('R')){_0x5b9522[_0x2f9ff0(0x1a7)]+=0x1;continue;}_0x5b9522[_0x2f9ff0(0xf6)]+=0x1;}return _0x5b9522;}function detectCommitType(_0x5d6489){const _0x39f606=_0xae90,_0x3794ea={'EOtcj':_0x39f606(0x1e2),'PQbce':function(_0x158173,_0x50934b){return _0x158173(_0x50934b);},'WegRS':function(_0x23954b,_0x30c214){return _0x23954b>_0x30c214;},'VsPFP':_0x39f606(0x1b7),'OIaau':function(_0x1b11b0,_0x58d189){return _0x1b11b0>_0x58d189;},'KRbca':function(_0x43f761,_0x2f32ad){return _0x43f761>_0x2f32ad;},'WyKZM':function(_0x12667b,_0x2e1d69){return _0x12667b===_0x2e1d69;},'nPTRv':_0x39f606(0xd1),'SsfHc':function(_0x4e37ea,_0x4fbb98){return _0x4e37ea>=_0x4fbb98;},'dIcWD':function(_0x25320f,_0x4ce68f){return _0x25320f>_0x4ce68f;},'AcQgN':'dmmTa','aWefe':_0x39f606(0xd7),'AmiBy':_0x39f606(0xf3),'YUhtN':_0x39f606(0x180)},_0xb95af7=_0x5d6489[_0x39f606(0x1b1)][_0x39f606(0x1ac)](_0x4244c2=>_0x4244c2[_0x39f606(0x14e)]['toLowerC'+_0x39f606(0xd8)]()),_0x4338d7=_0x3794ea[_0x39f606(0x144)](countByStatus,_0x5d6489);if(_0x3794ea[_0x39f606(0xd9)](_0xb95af7[_0x39f606(0x1c0)],0x0)&&_0xb95af7[_0x39f606(0x1a2)](_0x5473b9=>/(^|\/)(readme|docs?|changelog)/['test'](_0x5473b9)||_0x5473b9[_0x39f606(0x138)]('.md')))return _0x3794ea['VsPFP'];if(_0x3794ea['OIaau'](_0xb95af7['length'],0x0)&&_0xb95af7[_0x39f606(0x1a2)](_0x244db1=>/(^|\/)(test|tests|__tests__|spec)/[_0x39f606(0x122)](_0x244db1)||/\.(spec|test)\./[_0x39f606(0x122)](_0x244db1)))return _0x39f606(0x122);if(_0x3794ea['KRbca'](_0x4338d7[_0x39f606(0x176)],0x0)&&_0x3794ea[_0x39f606(0x156)](_0x4338d7['added'],0x0)&&_0x3794ea[_0x39f606(0x156)](_0x4338d7['modified'],0x0))return _0x3794ea[_0x39f606(0x1aa)];if(_0x3794ea[_0x39f606(0x151)](_0x4338d7[_0x39f606(0x168)],_0x4338d7['modified'])&&_0x3794ea[_0x39f606(0x10a)](_0x4338d7[_0x39f606(0x168)],0x0)){if(_0x3794ea['WyKZM'](_0x3794ea['AcQgN'],_0x3794ea['AcQgN']))return _0x3794ea['aWefe'];else{_0x13c285['log'](_0x4f8efa('CHECK')+(_0x39f606(0xf2)+'\x20')+_0x5bf427[_0x39f606(0xf8)]+_0x39f606(0x19c));try{_0x134cd7(_0x524c55,_0x4743ed[_0x39f606(0x1da)],{'stdio':_0x3794ea[_0x39f606(0xc9)]}),_0x8795af[_0x39f606(0x191)](_0x3794ea['PQbce'](_0xeef6b4,'OK')+'\x20'+_0x3b61a2[_0x39f606(0xf8)]+(_0x39f606(0xf7)+_0x39f606(0xcf)));}catch{_0x16b95e(_0x433956['label']+(_0x39f606(0x123)+_0x39f606(0x1c6)+_0x39f606(0x199)+'.'));}}}if(_0x4338d7[_0x39f606(0x1b8)]>0x0&&_0x5d6489[_0x39f606(0x117)][_0x39f606(0x10c)+'ns']<=_0x5d6489['metrics'][_0x39f606(0x147)+'s'])return _0x3794ea[_0x39f606(0x124)];return _0x3794ea['YUhtN'];}function summarizeChanges(_0x262d00){const _0x29e18a=_0xae90,_0x26c089={'OdSUR':function(_0x4106f4,_0x336b6a){return _0x4106f4(_0x336b6a);},'SgwFb':function(_0x269f56,_0x446ce6){return _0x269f56>_0x446ce6;},'pKELe':function(_0x1193bd,_0x49a824){return _0x1193bd-_0x49a824;},'OMevM':function(_0x73273b,_0x1703bc){return _0x73273b||_0x1703bc;}},_0x2f1a10=_0x26c089[_0x29e18a(0x1dc)](countByStatus,_0x262d00),_0x5dc6d2=_0x262d00[_0x29e18a(0x1b1)][_0x29e18a(0x106)](0x0,0x3)[_0x29e18a(0x1ac)](_0x562b9d=>_0x562b9d[_0x29e18a(0x14e)]),_0x3fc7d1=_0x26c089[_0x29e18a(0x162)](_0x262d00['files'][_0x29e18a(0x1c0)],0x3)?_0x5dc6d2['join'](',\x20')+'\x20+'+_0x26c089[_0x29e18a(0xfe)](_0x262d00['files'][_0x29e18a(0x1c0)],0x3)+_0x29e18a(0x1a4):_0x5dc6d2[_0x29e18a(0x12c)](',\x20');return _0x262d00[_0x29e18a(0x117)][_0x29e18a(0x133)+'t']+(_0x29e18a(0x13a)+'hanged\x20(')+_0x2f1a10[_0x29e18a(0x168)]+_0x29e18a(0x108)+_0x2f1a10[_0x29e18a(0x1b8)]+(_0x29e18a(0x1af)+_0x29e18a(0x160))+_0x2f1a10[_0x29e18a(0x176)]+('\x20deleted'+',\x20')+_0x2f1a10[_0x29e18a(0x1a7)]+(_0x29e18a(0x1d7)+'),\x20')+_0x262d00['metrics'][_0x29e18a(0x10c)+'ns']+(_0x29e18a(0xfa)+_0x29e18a(0x1c9))+_0x262d00[_0x29e18a(0x117)][_0x29e18a(0x147)+'s']+(_0x29e18a(0x137)+_0x29e18a(0x1c7))+_0x26c089[_0x29e18a(0x184)](_0x3fc7d1,_0x29e18a(0x1a6)+_0x29e18a(0xc8)+_0x29e18a(0x178));}function formatStagedFiles(_0x2ba7f4){const _0x4ae001=_0xae90;return _0x2ba7f4[_0x4ae001(0x1b1)][_0x4ae001(0x1ac)](_0x268be3=>'-\x20'+_0x268be3[_0x4ae001(0x11c)]+'\x20'+_0x268be3[_0x4ae001(0x14e)])['join']('\x0a');}function runOptionalChecks(){const _0x15f7d5=_0xae90,_0xd9c292={'VemJy':function(_0x4253de,_0xcf5ba0){return _0x4253de(_0xcf5ba0);},'NzMfY':function(_0x18fa9c,_0x786c91){return _0x18fa9c===_0x786c91;},'mLetu':'win32','UFDyL':'npm','ZjWPv':_0x15f7d5(0x1ab),'MvqYp':_0x15f7d5(0x11f)+_0x15f7d5(0x189),'GncQD':_0x15f7d5(0x125),'qOTcn':_0x15f7d5(0x122),'OPznn':_0x15f7d5(0x121),'aTzjb':'fAcPb'},_0x5a5d13=_0xd9c292[_0x15f7d5(0x139)](process['platform'],_0xd9c292['mLetu'])?_0x15f7d5(0x15a):_0xd9c292[_0x15f7d5(0xe4)],_0x4e1bfd=[{'label':_0xd9c292[_0x15f7d5(0x174)],'args':[_0x15f7d5(0x125),'lint',_0xd9c292[_0x15f7d5(0x18a)]]},{'label':_0x15f7d5(0x122),'args':[_0xd9c292['GncQD'],_0xd9c292[_0x15f7d5(0x1e1)],_0xd9c292[_0x15f7d5(0x18a)]]}];for(const _0x3b12b1 of _0x4e1bfd){console[_0x15f7d5(0x191)](_0xd9c292[_0x15f7d5(0x16f)](info,_0xd9c292[_0x15f7d5(0x17b)])+(_0x15f7d5(0xf2)+'\x20')+_0x3b12b1[_0x15f7d5(0xf8)]+'...');try{execFileSync(_0x5a5d13,_0x3b12b1[_0x15f7d5(0x1da)],{'stdio':_0x15f7d5(0x1e2)}),console['log'](ok('OK')+'\x20'+_0x3b12b1[_0x15f7d5(0xf8)]+(_0x15f7d5(0xf7)+_0x15f7d5(0xcf)));}catch{_0xd9c292[_0x15f7d5(0xcd)]===_0xd9c292['aTzjb']?_0xd9c292[_0x15f7d5(0x16f)](failAndExit,_0x3b12b1[_0x15f7d5(0xf8)]+(_0x15f7d5(0x123)+_0x15f7d5(0x1c6)+_0x15f7d5(0x199)+'.')):_0xd9c292[_0x15f7d5(0x16f)](_0xbbd980,_0x15f7d5(0x16c)+_0x15f7d5(0x183)+_0x2a7ae7+'\x22\x20to\x20\x22'+_0x58b9a6+'\x22.');}}}function _0xae90(_0x3e7aeb,_0x297f6f){_0x3e7aeb=_0x3e7aeb-0xc8;const _0x23b2ea=_0x4ac3();let _0x3e5a85=_0x23b2ea[_0x3e7aeb];return _0x3e5a85;}async function maybePushCurrentBranch(){const _0x41e687=_0xae90,_0x47e475={'tDGoX':_0x41e687(0x1b7),'LYjdQ':function(_0x476519){return _0x476519();},'GKXkr':function(_0x59b6ff,_0x409d63){return _0x59b6ff(_0x409d63);},'rWDPZ':function(_0x2de302,_0x29be92){return _0x2de302===_0x29be92;},'jEGzk':_0x41e687(0x13e),'tGgcC':_0x41e687(0xde),'PaZVP':function(_0x49caef,_0x474b89,_0xe0c4e,_0x5eab69){return _0x49caef(_0x474b89,_0xe0c4e,_0x5eab69);},'UPNiQ':'push','zQyaR':_0x41e687(0x1e2),'vdgaL':function(_0x110eed,_0x2cadce){return _0x110eed(_0x2cadce);},'FyrrI':function(_0x47396a,_0x3126f1,_0x1ce8a6,_0x5d91cb){return _0x47396a(_0x3126f1,_0x1ce8a6,_0x5d91cb);},'WKChV':_0x41e687(0x153),'tRbYJ':_0x41e687(0x1c1)+_0x41e687(0x190),'NLhhL':function(_0x2c456e,_0x5e7657){return _0x2c456e(_0x5e7657);}},_0x3366d6=_0x47e475[_0x41e687(0xe7)](getCurrentBranch),_0x45a54a=getUpstreamInfo();if(_0x45a54a){const _0x3798e6=await _0x47e475['GKXkr'](askConfirmation,_0x41e687(0x1ba)+'rent\x20bra'+_0x41e687(0x1a0)+_0x3366d6+_0x41e687(0x164)+_0x45a54a[_0x41e687(0x140)]+(_0x41e687(0x1cc)+_0x41e687(0x127)));if(!_0x3798e6){if(_0x47e475['rWDPZ'](_0x47e475[_0x41e687(0x192)],_0x47e475[_0x41e687(0x171)]))return gXfzOi['tDGoX'];else return;}try{_0x47e475[_0x41e687(0x1de)](execFileSync,_0x41e687(0x153),[_0x47e475[_0x41e687(0xd4)],_0x45a54a[_0x41e687(0x134)],_0x3366d6+':'+_0x45a54a[_0x41e687(0xf5)]],{'stdio':_0x47e475['zQyaR']}),console[_0x41e687(0x191)](_0x47e475[_0x41e687(0xda)](ok,'OK')+(_0x41e687(0xea)+_0x41e687(0xf1)+_0x41e687(0x141))+_0x45a54a['fullName']+'.');}catch{_0x47e475[_0x41e687(0x146)](failAndExit,_0x41e687(0x16c)+'o\x20push\x20t'+'o\x20'+_0x45a54a[_0x41e687(0x140)]+'.');}return;}const _0x423284=_0x47e475[_0x41e687(0xe7)](getDefaultRemote);if(!_0x423284){console[_0x41e687(0x191)](_0x47e475[_0x41e687(0x146)](warn,_0x41e687(0x16a))+(_0x41e687(0x150)+_0x41e687(0x1df)+_0x41e687(0x170)+_0x41e687(0x14a)+_0x41e687(0xce)+'lable.'));return;}const _0x38736f=await askConfirmation('No\x20upstr'+_0x41e687(0x126)+_0x41e687(0x14a)+'\x22'+_0x3366d6+_0x41e687(0x164)+_0x423284+'/'+_0x3366d6+('\x22\x20and\x20se'+'t\x20upstre'+_0x41e687(0x1b6)+_0x41e687(0x1c8)));if(!_0x38736f)return;try{_0x47e475[_0x41e687(0x13b)](execFileSync,_0x47e475[_0x41e687(0x131)],[_0x47e475['UPNiQ'],_0x47e475[_0x41e687(0xef)],_0x423284,_0x3366d6],{'stdio':_0x41e687(0x1e2)}),console[_0x41e687(0x191)](_0x47e475[_0x41e687(0x182)](ok,'OK')+('\x20Push\x20co'+_0x41e687(0xf1)+_0x41e687(0x17d)+'ream\x20con'+_0x41e687(0xf4)+'(')+_0x423284+'/'+_0x3366d6+').');}catch{failAndExit(_0x41e687(0x16c)+'o\x20push\x20\x22'+_0x3366d6+_0x41e687(0x164)+_0x423284+'\x22.');}}export async function generateCommit(_0x35cea1={}){const _0xdcb6ec=_0xae90,_0x520750={'sxXoG':_0xdcb6ec(0xd1),'rvWOv':function(_0x2dc6a3){return _0x2dc6a3();},'bFbpL':function(_0x330109,_0x246b51){return _0x330109(_0x246b51);},'ImoiS':'cHJtn','YHjfO':function(_0xde0781,_0x28ab24){return _0xde0781(_0x28ab24);},'XXXun':'No\x20stage'+_0xdcb6ec(0x18b)+'\x20Stage\x20c'+_0xdcb6ec(0x177)+_0xdcb6ec(0xd2)+_0xdcb6ec(0x1b3)+'it\x20commi'+_0xdcb6ec(0x16b)+'.','oSlEh':function(_0x4593d2,_0x38af44){return _0x4593d2(_0x38af44);},'HlwMV':_0xdcb6ec(0xfb),'YgyjU':function(_0x2950f7,_0x249964,_0x58acbe){return _0x2950f7(_0x249964,_0x58acbe);},'hpgAD':_0xdcb6ec(0x19d)+_0xdcb6ec(0x1cb),'puVTB':_0xdcb6ec(0x1be),'pAfIV':_0xdcb6ec(0x1b2)+_0xdcb6ec(0x12b),'EwgMM':_0xdcb6ec(0x17c)+'t','uMrUC':_0xdcb6ec(0x173),'dvEBL':_0xdcb6ec(0x186),'zHMXh':function(_0x4252ff,_0x3b973f){return _0x4252ff(_0x3b973f);},'WloKF':_0xdcb6ec(0x16d)+_0xdcb6ec(0x1e4),'LJeLB':_0xdcb6ec(0x181)+'ST','Mncbi':function(_0x29066f,_0x12e030,_0x2f127a){return _0x29066f(_0x12e030,_0x2f127a);},'ZJjdL':_0xdcb6ec(0x1b5)+_0xdcb6ec(0x114)+'nd\x20reque'+_0xdcb6ec(0xe6)+_0xdcb6ec(0x1b0)+'.','fJOhV':function(_0x3f0a90,_0x332e68){return _0x3f0a90(_0x332e68);},'tCQEG':function(_0x230698,_0x24cc82){return _0x230698!==_0x24cc82;},'DbaxR':_0xdcb6ec(0x17f),'eeZpr':_0xdcb6ec(0x16c)+'o\x20genera'+_0xdcb6ec(0xdb)+_0xdcb6ec(0x12f)+'e.','ZepXu':function(_0x9fd0b6,_0x27c688){return _0x9fd0b6(_0x27c688);},'TsiCu':function(_0xd2b5bf,_0x106828){return _0xd2b5bf(_0x106828);},'BZaot':_0xdcb6ec(0x1e0)+_0xdcb6ec(0xed)+_0xdcb6ec(0x10b)+'e?\x20(Y/n)'+':\x20','gPoBi':function(_0x11caeb,_0x43e68f){return _0x11caeb(_0x43e68f);},'YUXUr':_0xdcb6ec(0xeb),'QLecR':function(_0x3f95cc,_0x2f5251,_0x395a5e,_0xf4e600){return _0x3f95cc(_0x2f5251,_0x395a5e,_0xf4e600);},'quytJ':_0xdcb6ec(0x153),'ROdHC':'inherit','MQbqe':_0xdcb6ec(0x16c)+'o\x20create'+_0xdcb6ec(0x148)+_0xdcb6ec(0x161)+'f\x20you\x20ha'+'ve\x20stage'+'d\x20files.'},_0x4a4b7d=_0x520750[_0xdcb6ec(0x175)](getLLM);getGitStatus(),_0x520750[_0xdcb6ec(0x14c)](section,_0xdcb6ec(0x105));if(_0x35cea1[_0xdcb6ec(0x1a1)]){if(_0xdcb6ec(0x179)!==_0x520750[_0xdcb6ec(0x1bf)])stageAll(),console[_0xdcb6ec(0x191)](_0x520750['bFbpL'](ok,'OK')+(_0xdcb6ec(0x1d3)+_0xdcb6ec(0x1d6)+_0xdcb6ec(0x18d)+_0xdcb6ec(0x15d)));else return WCBjqE[_0xdcb6ec(0xff)];}const _0x39922b=_0x520750[_0xdcb6ec(0x1cd)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x39922b[_0xdcb6ec(0x1b1)][_0xdcb6ec(0x1c0)]===0x0&&_0x520750['YHjfO'](failAndExit,_0x520750[_0xdcb6ec(0x1ad)]);_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0x133)+'t']>=WARN_SPLIT_FILE_COUNT&&console[_0xdcb6ec(0x191)](_0x520750[_0xdcb6ec(0x1b9)](warn,_0x520750['HlwMV'])+'\x20'+_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0x133)+'t']+(_0xdcb6ec(0x198)+_0xdcb6ec(0x155)+_0xdcb6ec(0x1cf)+_0xdcb6ec(0x195)+_0xdcb6ec(0x10f)+_0xdcb6ec(0x197)+'multiple'+_0xdcb6ec(0x1ce)+'.'));_0x520750['YgyjU'](printList,_0x520750[_0xdcb6ec(0xe5)],_0x39922b['files'][_0xdcb6ec(0x1ac)](_0x1e71b6=>_0x1e71b6[_0xdcb6ec(0x11c)]+'\x20'+_0x1e71b6[_0xdcb6ec(0x14e)]));_0x35cea1['check']&&(console[_0xdcb6ec(0x191)](),runOptionalChecks());_0x520750[_0xdcb6ec(0x1b9)](section,_0xdcb6ec(0x11e)+_0xdcb6ec(0x132));const _0x56550e=summarizeChanges(_0x39922b),_0x2e9cf5=detectCommitType(_0x39922b);printKeyValues([{'key':_0x520750[_0xdcb6ec(0x104)],'value':_0x56550e},{'key':_0x520750[_0xdcb6ec(0x10d)],'value':_0x2e9cf5},{'key':_0x520750[_0xdcb6ec(0x113)],'value':_0x39922b[_0xdcb6ec(0x149)]||_0x520750[_0xdcb6ec(0x187)]}]);_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0xdc)+'rs']>WARN_PROMPT_DIFF_CHARS&&console[_0xdcb6ec(0x191)](_0x520750[_0xdcb6ec(0x1b9)](warn,_0x520750[_0xdcb6ec(0x1e3)])+('\x20Large\x20s'+_0xdcb6ec(0x15c)+_0xdcb6ec(0x172))+_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0xdc)+'rs']+(_0xdcb6ec(0x10e)+_0xdcb6ec(0x19f)+'will\x20inc'+_0xdcb6ec(0xee)+_0xdcb6ec(0x13f)+'\x20patch\x20e'+_0xdcb6ec(0x101)));const _0x270cd2=_0xdcb6ec(0x169)+_0xdcb6ec(0x188)+_0xdcb6ec(0x143)+_0xdcb6ec(0x1d5)+_0xdcb6ec(0xfc)+_0xdcb6ec(0x1c4)+_0xdcb6ec(0x12a)+'on\x20the\x20s'+_0xdcb6ec(0x1a8)+_0xdcb6ec(0x145)+_0xdcb6ec(0x116)+_0xdcb6ec(0x115)+_0xdcb6ec(0x13c)+_0xdcb6ec(0x1ca)+_0xdcb6ec(0x1a9)+'ss\x20evide'+'nce\x20stro'+'ngly\x20sug'+_0xdcb6ec(0xf9)+_0xdcb6ec(0xdf)+_0xdcb6ec(0x1d1)+_0x2e9cf5+(_0xdcb6ec(0x109)+_0xdcb6ec(0x193)+_0xdcb6ec(0x159)+_0xdcb6ec(0x14d)+'cope):\x20<'+_0xdcb6ec(0xcc)+_0xdcb6ec(0xcb)+_0xdcb6ec(0x112)+_0xdcb6ec(0x15b)+_0xdcb6ec(0xe0)+'ific\x0a-\x20R'+_0xdcb6ec(0xfd)+_0xdcb6ec(0x15e)+'ommit\x20me'+_0xdcb6ec(0x152)+_0xdcb6ec(0x18c)+_0xdcb6ec(0x1d8)+'es\x20or\x20ex'+_0xdcb6ec(0xd5)+_0xdcb6ec(0x1c3)+'ed\x20files'+':\x0a')+_0x520750[_0xdcb6ec(0x15f)](formatStagedFiles,_0x39922b)+(_0xdcb6ec(0x135)+_0xdcb6ec(0x166)+'\x0a')+_0x56550e+(_0xdcb6ec(0x1d4)+_0xdcb6ec(0x128))+(_0x39922b[_0xdcb6ec(0x149)]||'(none)')+(_0xdcb6ec(0x1bb)+_0xdcb6ec(0x1db))+(_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0x167)+'d']?_0x520750[_0xdcb6ec(0x13d)]:'')+':\x0a'+(_0x39922b['patch']||_0x520750[_0xdcb6ec(0x187)])+'\x0a\x20\x20';_0x520750[_0xdcb6ec(0x1b9)](section,_0x520750[_0xdcb6ec(0x18e)]);const _0x2a4d2d=await _0x520750[_0xdcb6ec(0x120)](withProgress,_0x520750[_0xdcb6ec(0x12d)],()=>_0x4a4b7d['invoke'](_0x270cd2)),_0xfe88b2=_0x520750[_0xdcb6ec(0xd3)](extractMessageText,_0x2a4d2d[_0xdcb6ec(0x1d9)]);if(!_0xfe88b2){if(_0x520750[_0xdcb6ec(0x1d2)](_0xdcb6ec(0x185),_0x520750['DbaxR']))_0x520750[_0xdcb6ec(0x1b9)](failAndExit,_0x520750['eeZpr']);else return;}_0x520750[_0xdcb6ec(0x102)](printKeyValues,[{'key':_0xdcb6ec(0x158)+_0xdcb6ec(0xe2),'value':_0xfe88b2}]),_0x520750[_0xdcb6ec(0x100)](section,_0xdcb6ec(0xd0)+'RM');const _0x3a8e2e=await _0x520750[_0xdcb6ec(0x1a5)](askEditableInput,_0xdcb6ec(0x11b)+_0xdcb6ec(0x18f)+_0xdcb6ec(0x1c2)+_0xdcb6ec(0x163)+_0xdcb6ec(0x16e)+_0xdcb6ec(0x142)+_0xdcb6ec(0x194),_0xfe88b2);_0x520750[_0xdcb6ec(0x1b9)](printKeyValues,[{'key':_0xdcb6ec(0x1a3)+_0xdcb6ec(0xe9),'value':_0x3a8e2e}]);const _0x229093=await askConfirmation(_0x520750[_0xdcb6ec(0x1bc)],{'defaultYes':!![]});if(!_0x229093){console['log'](_0x520750[_0xdcb6ec(0x1bd)](warn,_0x520750[_0xdcb6ec(0x12e)])+(_0xdcb6ec(0xec)+_0xdcb6ec(0x110)+_0xdcb6ec(0x19a)));return;}try{_0x520750['QLecR'](execFileSync,_0x520750[_0xdcb6ec(0x103)],[_0xdcb6ec(0x1b4),'-m',_0x3a8e2e],{'stdio':_0x520750['ROdHC']});}catch{_0x520750[_0xdcb6ec(0x1bd)](failAndExit,_0x520750[_0xdcb6ec(0x118)]);}await maybePushCurrentBranch();}
1
+ (function(_0x1d373a,_0x1ae586){const _0x4e39f9=_0x5b8f,_0x19b2f3=_0x1d373a();while(!![]){try{const _0x2a41a7=parseInt(_0x4e39f9(0x256))/0x1+-parseInt(_0x4e39f9(0x1a9))/0x2*(-parseInt(_0x4e39f9(0x210))/0x3)+parseInt(_0x4e39f9(0x16b))/0x4*(parseInt(_0x4e39f9(0x164))/0x5)+parseInt(_0x4e39f9(0x163))/0x6+parseInt(_0x4e39f9(0x217))/0x7*(-parseInt(_0x4e39f9(0x270))/0x8)+-parseInt(_0x4e39f9(0x243))/0x9*(parseInt(_0x4e39f9(0x1c7))/0xa)+-parseInt(_0x4e39f9(0x214))/0xb*(-parseInt(_0x4e39f9(0x258))/0xc);if(_0x2a41a7===_0x1ae586)break;else _0x19b2f3['push'](_0x19b2f3['shift']());}catch(_0x5781e2){_0x19b2f3['push'](_0x19b2f3['shift']());}}}(_0x4b73,0x8b26d));const _0xcd5243=(function(){const _0x40c4bf=_0x5b8f,_0x3f30b4={'ffhQt':function(_0x1dde25,_0x411f44){return _0x1dde25===_0x411f44;},'lNWyi':_0x40c4bf(0x1b1),'eSuNo':_0x40c4bf(0x1d9)};let _0xfb02e5=!![];return function(_0x6e16d,_0x57f8e6){const _0x1e9eb6={'AkJYu':_0x3f30b4['eSuNo']},_0x216bf1=_0xfb02e5?function(){const _0x4e84bf=_0x5b8f;if(_0x3f30b4['ffhQt'](_0x4e84bf(0x1b1),_0x3f30b4[_0x4e84bf(0x1c4)])){if(_0x57f8e6){const _0x183d1c=_0x57f8e6[_0x4e84bf(0x1e6)](_0x6e16d,arguments);return _0x57f8e6=null,_0x183d1c;}}else return _0x1e9eb6['AkJYu'];}:function(){};return _0xfb02e5=![],_0x216bf1;};}()),_0x5d2539=_0xcd5243(this,function(){const _0x18271b=_0x5b8f,_0x1a3a22={'gmJjG':_0x18271b(0x238)+'+)+$'};return _0x5d2539['toString']()[_0x18271b(0x265)](_0x1a3a22['gmJjG'])[_0x18271b(0x184)]()['construc'+_0x18271b(0x246)](_0x5d2539)[_0x18271b(0x265)](_0x18271b(0x238)+'+)+$');});_0x5d2539();import{execFileSync}from'child_process';function _0x5b8f(_0x24798d,_0x5691c9){_0x24798d=_0x24798d-0x150;const _0x7641b=_0x4b73();let _0x5d2539=_0x7641b[_0x24798d];return _0x5d2539;}import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation,askEditableInput}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,warn,withProgress}from'../ui.js';const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x3c758b=_0x5b8f,_0x188559={'kupZL':function(_0x4ca041,_0x53f08f){return _0x4ca041 instanceof _0x53f08f;},'cVAvM':function(_0x3f3530,_0x53ad65){return _0x3f3530(_0x53ad65);}};try{return createLLM();}catch(_0x4a7c91){const _0x20c936=_0x188559[_0x3c758b(0x211)](_0x4a7c91,Error)?_0x4a7c91['message']:_0x188559[_0x3c758b(0x1af)](String,_0x4a7c91);failAndExit(_0x20c936);}}function countByStatus(_0x38439e){const _0x23b68e=_0x5b8f,_0x12695e={'ktAwn':function(_0x479199,_0xdb903e,_0x35897e){return _0x479199(_0xdb903e,_0x35897e);},'pZtVb':_0x23b68e(0x26f),'UKKPC':function(_0x5304bb,_0x2323e2){return _0x5304bb===_0x2323e2;},'xcFSH':_0x23b68e(0x1fa)},_0x30ba0e={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x3be7b8 of _0x38439e[_0x23b68e(0x272)]){if(_0x3be7b8[_0x23b68e(0x25c)][_0x23b68e(0x195)+'th']('A')){_0x30ba0e[_0x23b68e(0x15b)]+=0x1;continue;}if(_0x3be7b8[_0x23b68e(0x25c)]['startsWi'+'th']('M')){_0x30ba0e[_0x23b68e(0x1be)]+=0x1;continue;}if(_0x3be7b8[_0x23b68e(0x25c)]['startsWi'+'th']('D')){_0x30ba0e[_0x23b68e(0x1f1)]+=0x1;continue;}if(_0x3be7b8[_0x23b68e(0x25c)][_0x23b68e(0x195)+'th']('R')){if(_0x12695e[_0x23b68e(0x1b3)](_0x12695e['xcFSH'],_0x23b68e(0x1fa))){_0x30ba0e[_0x23b68e(0x1e2)]+=0x1;continue;}else{_0x2036d1[_0x23b68e(0x23a)](_0x12695e['ktAwn'](_0xe0301b,_0x12695e[_0x23b68e(0x266)],_0x23b68e(0x151)+_0x23b68e(0x1ea)+_0x23b68e(0x269)));return;}}_0x30ba0e[_0x23b68e(0x1e9)]+=0x1;}return _0x30ba0e;}function detectCommitType(_0x426b08){const _0x10e27b=_0x5b8f,_0x35989e={'hwRpg':_0x10e27b(0x1d9),'qYTWy':function(_0x515532,_0x39bfe7){return _0x515532>_0x39bfe7;},'tODYG':_0x10e27b(0x1fd),'EZGgC':function(_0x3ed771,_0x12d3db){return _0x3ed771===_0x12d3db;},'ikvkD':_0x10e27b(0x23d),'evSrJ':function(_0x3df40f,_0x25be00){return _0x3df40f>_0x25be00;},'aUQDu':function(_0xc876e9,_0x24f290){return _0xc876e9>_0x24f290;},'ZKmRf':function(_0x26f64a,_0x5590e){return _0x26f64a<=_0x5590e;},'jrWic':'fix','HWivH':_0x10e27b(0x16c)},_0xc4cd35=_0x426b08['files']['map'](_0x57bed1=>_0x57bed1[_0x10e27b(0x267)]['toLowerC'+_0x10e27b(0x249)]()),_0x7d59b=countByStatus(_0x426b08);if(_0xc4cd35[_0x10e27b(0x1bb)]>0x0&&_0xc4cd35[_0x10e27b(0x196)](_0x19a0cb=>/(^|\/)(readme|docs?|changelog)/[_0x10e27b(0x1fd)](_0x19a0cb)||_0x19a0cb[_0x10e27b(0x155)](_0x10e27b(0x172))))return _0x35989e[_0x10e27b(0x1e7)];if(_0x35989e[_0x10e27b(0x202)](_0xc4cd35[_0x10e27b(0x1bb)],0x0)&&_0xc4cd35[_0x10e27b(0x196)](_0x58925c=>/(^|\/)(test|tests|__tests__|spec)/[_0x10e27b(0x1fd)](_0x58925c)||/\.(spec|test)\./[_0x10e27b(0x1fd)](_0x58925c)))return _0x35989e[_0x10e27b(0x1f0)];if(_0x35989e['qYTWy'](_0x7d59b[_0x10e27b(0x1f1)],0x0)&&_0x7d59b['added']===0x0&&_0x35989e[_0x10e27b(0x241)](_0x7d59b[_0x10e27b(0x1be)],0x0))return _0x35989e[_0x10e27b(0x201)];if(_0x7d59b[_0x10e27b(0x15b)]>=_0x7d59b[_0x10e27b(0x1be)]&&_0x35989e[_0x10e27b(0x1de)](_0x7d59b['added'],0x0))return'feat';if(_0x35989e[_0x10e27b(0x18e)](_0x7d59b[_0x10e27b(0x1be)],0x0)&&_0x35989e[_0x10e27b(0x209)](_0x426b08[_0x10e27b(0x1ad)]['insertio'+'ns'],_0x426b08[_0x10e27b(0x1ad)][_0x10e27b(0x225)+'s']))return _0x35989e['jrWic'];return _0x35989e[_0x10e27b(0x22c)];}function summarizeChanges(_0x922ea3){const _0x56e224=_0x5b8f,_0x1eb3b0={'kTMUT':function(_0x40838f,_0x507cc7){return _0x40838f(_0x507cc7);},'AgNXE':function(_0x27daa8,_0x2c5a5a){return _0x27daa8>_0x2c5a5a;},'kgIpM':function(_0x2b9bc9,_0x497122){return _0x2b9bc9-_0x497122;},'vFhYf':function(_0x16f005,_0x423317){return _0x16f005||_0x423317;},'lKcJu':_0x56e224(0x170)+_0x56e224(0x22b)+'ailable.'},_0x48f7d5=_0x1eb3b0[_0x56e224(0x1bc)](countByStatus,_0x922ea3),_0x558e4f=_0x922ea3['files'][_0x56e224(0x1ff)](0x0,0x3)[_0x56e224(0x1c0)](_0x1a33f9=>_0x1a33f9['path']),_0x352c65=_0x1eb3b0['AgNXE'](_0x922ea3['files'][_0x56e224(0x1bb)],0x3)?_0x558e4f[_0x56e224(0x216)](',\x20')+'\x20+'+_0x1eb3b0['kgIpM'](_0x922ea3[_0x56e224(0x272)][_0x56e224(0x1bb)],0x3)+_0x56e224(0x1ef):_0x558e4f[_0x56e224(0x216)](',\x20');return _0x922ea3['metrics'][_0x56e224(0x24a)+'t']+('\x20files\x20c'+_0x56e224(0x19e))+_0x48f7d5['added']+_0x56e224(0x153)+_0x48f7d5[_0x56e224(0x1be)]+(_0x56e224(0x1ae)+_0x56e224(0x190))+_0x48f7d5[_0x56e224(0x1f1)]+(_0x56e224(0x174)+',\x20')+_0x48f7d5['renamed']+(_0x56e224(0x205)+_0x56e224(0x231))+_0x922ea3[_0x56e224(0x1ad)]['insertio'+'ns']+(_0x56e224(0x24f)+'ons,\x20')+_0x922ea3['metrics'][_0x56e224(0x225)+'s']+(_0x56e224(0x1d6)+'ns.\x20')+_0x1eb3b0[_0x56e224(0x227)](_0x352c65,_0x1eb3b0[_0x56e224(0x16f)]);}function formatStagedFiles(_0x21ed20){const _0x28a9f4=_0x5b8f;return _0x21ed20[_0x28a9f4(0x272)][_0x28a9f4(0x1c0)](_0x24def3=>'-\x20'+_0x24def3['status']+'\x20'+_0x24def3[_0x28a9f4(0x267)])['join']('\x0a');}function runOptionalChecks(){const _0x3055a6=_0x5b8f,_0x688da={'tNQAa':_0x3055a6(0x238)+_0x3055a6(0x261),'WZVxh':function(_0x6160df,_0x5354bf){return _0x6160df===_0x5354bf;},'HOpch':'win32','YOvzH':_0x3055a6(0x1f2),'JoJQP':_0x3055a6(0x159),'snEZR':_0x3055a6(0x186),'Uyruo':'run','dwRFE':_0x3055a6(0x1fd),'QvEew':_0x3055a6(0x156)+_0x3055a6(0x230),'GEQNV':'CHECK','VRxHz':function(_0x8422cf,_0x374205){return _0x8422cf===_0x374205;},'BJZFC':_0x3055a6(0x1c2),'MhvDi':function(_0x4faabf,_0x200023,_0x550599,_0x497290){return _0x4faabf(_0x200023,_0x550599,_0x497290);},'SMLaP':'inherit','eQBhI':function(_0x437241,_0x3cbebe,_0x4fe9ac){return _0x437241(_0x3cbebe,_0x4fe9ac);},'IoHgP':function(_0x2f6367,_0x52a981){return _0x2f6367(_0x52a981);}},_0x2f683c=_0x688da[_0x3055a6(0x191)](process[_0x3055a6(0x1e5)],_0x688da[_0x3055a6(0x263)])?_0x688da[_0x3055a6(0x23b)]:_0x688da[_0x3055a6(0x274)],_0x58502c=[{'label':_0x3055a6(0x186),'args':[_0x3055a6(0x1eb),_0x688da[_0x3055a6(0x1a6)],_0x3055a6(0x156)+'sent']},{'label':_0x3055a6(0x1fd),'args':[_0x688da[_0x3055a6(0x26a)],_0x688da[_0x3055a6(0x17d)],_0x688da[_0x3055a6(0x1d4)]]}];for(const _0x4a8c37 of _0x58502c){console['log'](info(_0x688da[_0x3055a6(0x22d)],_0x3055a6(0x247)+_0x4a8c37['label']+_0x3055a6(0x21a)));try{if(_0x688da['VRxHz'](_0x3055a6(0x21d),_0x688da[_0x3055a6(0x255)]))return _0x1fbdfc['toString']()[_0x3055a6(0x265)](rHwAFf['tNQAa'])[_0x3055a6(0x184)]()[_0x3055a6(0x218)+_0x3055a6(0x246)](_0x2814ab)['search'](rHwAFf['tNQAa']);else _0x688da[_0x3055a6(0x17a)](execFileSync,_0x2f683c,_0x4a8c37[_0x3055a6(0x204)],{'stdio':_0x688da[_0x3055a6(0x1a7)]}),console['log'](_0x688da[_0x3055a6(0x1f6)](ok,'OK',_0x4a8c37[_0x3055a6(0x158)]+(_0x3055a6(0x233)+_0x3055a6(0x23c))));}catch{_0x688da[_0x3055a6(0x1fb)](failAndExit,_0x4a8c37[_0x3055a6(0x158)]+(_0x3055a6(0x1b9)+'\x20Abortin'+_0x3055a6(0x208)+'.'));}}}async function maybePushCurrentBranch(){const _0x1a2a4a=_0x5b8f,_0x1c4a54={'qNXJq':function(_0x257886){return _0x257886();},'wUvVs':function(_0x58a5c1,_0x26a742){return _0x58a5c1(_0x26a742);},'JWbYg':function(_0x195dae,_0x1add6d,_0x176427,_0x520dd4){return _0x195dae(_0x1add6d,_0x176427,_0x520dd4);},'menHJ':_0x1a2a4a(0x21f),'oykVe':function(_0xa38675,_0x20b468,_0x471e13){return _0xa38675(_0x20b468,_0x471e13);},'EYeGd':function(_0x469a56,_0x1184cc,_0x456998){return _0x469a56(_0x1184cc,_0x456998);},'qMKRF':_0x1a2a4a(0x240)+'emote\x20co'+'nfigured'+_0x1a2a4a(0x19d)+'ot\x20avail'+_0x1a2a4a(0x25e),'rdPQO':'push','rYutH':_0x1a2a4a(0x1e3)+_0x1a2a4a(0x1fe),'xVFUU':_0x1a2a4a(0x26c)},_0x3261c2=_0x1c4a54['qNXJq'](getCurrentBranch),_0x4a26d8=_0x1c4a54['qNXJq'](getUpstreamInfo);if(_0x4a26d8){const _0x1bc5e1=await _0x1c4a54[_0x1a2a4a(0x1f5)](askConfirmation,_0x1a2a4a(0x262)+_0x1a2a4a(0x16d)+_0x1a2a4a(0x252)+_0x3261c2+_0x1a2a4a(0x20b)+_0x4a26d8[_0x1a2a4a(0x257)]+(_0x1a2a4a(0x260)+_0x1a2a4a(0x25a)));if(!_0x1bc5e1)return;try{_0x1c4a54[_0x1a2a4a(0x1b8)](execFileSync,_0x1c4a54[_0x1a2a4a(0x222)],[_0x1a2a4a(0x18a),_0x4a26d8['remote'],_0x3261c2+':'+_0x4a26d8[_0x1a2a4a(0x259)]],{'stdio':_0x1a2a4a(0x26c)}),console[_0x1a2a4a(0x23a)](_0x1c4a54[_0x1a2a4a(0x15e)](ok,'OK',_0x1a2a4a(0x1d5)+_0x1a2a4a(0x169)+'o\x20'+_0x4a26d8[_0x1a2a4a(0x257)]+'.'));}catch{_0x1c4a54['wUvVs'](failAndExit,_0x1a2a4a(0x1ca)+_0x1a2a4a(0x21e)+'o\x20'+_0x4a26d8[_0x1a2a4a(0x257)]+'.');}return;}const _0x33508b=_0x1c4a54['qNXJq'](getDefaultRemote);if(!_0x33508b){console[_0x1a2a4a(0x23a)](_0x1c4a54[_0x1a2a4a(0x1d7)](warn,_0x1a2a4a(0x1ce),_0x1c4a54[_0x1a2a4a(0x1d2)]));return;}const _0x258221=await _0x1c4a54[_0x1a2a4a(0x1f5)](askConfirmation,'No\x20upstr'+_0x1a2a4a(0x26e)+_0x1a2a4a(0x157)+'\x22'+_0x3261c2+_0x1a2a4a(0x20b)+_0x33508b+'/'+_0x3261c2+(_0x1a2a4a(0x1cf)+_0x1a2a4a(0x198)+_0x1a2a4a(0x1d0)+_0x1a2a4a(0x1d1)));if(!_0x258221)return;try{_0x1c4a54[_0x1a2a4a(0x1b8)](execFileSync,_0x1a2a4a(0x21f),[_0x1c4a54[_0x1a2a4a(0x17c)],_0x1c4a54[_0x1a2a4a(0x1a8)],_0x33508b,_0x3261c2],{'stdio':_0x1c4a54[_0x1a2a4a(0x1cc)]}),console[_0x1a2a4a(0x23a)](_0x1c4a54[_0x1a2a4a(0x15e)](ok,'OK',_0x1a2a4a(0x1d5)+_0x1a2a4a(0x228)+'nd\x20upstr'+_0x1a2a4a(0x19f)+'igured\x20('+_0x33508b+'/'+_0x3261c2+').'));}catch{_0x1c4a54[_0x1a2a4a(0x1f5)](failAndExit,'Failed\x20t'+_0x1a2a4a(0x19a)+_0x3261c2+_0x1a2a4a(0x20b)+_0x33508b+'\x22.');}}export async function generateCommit(_0x51c1ad={}){const _0x4e1d13=_0x5b8f,_0x3ec2a8={'XQimr':function(_0x4cb9d3){return _0x4cb9d3();},'Sstnq':function(_0x1dbb7f,_0x2fa19c){return _0x1dbb7f instanceof _0x2fa19c;},'intIn':function(_0x36a095,_0x43c58b){return _0x36a095===_0x43c58b;},'PIiHW':'win32','nFWTz':_0x4e1d13(0x1f2),'eViNb':_0x4e1d13(0x186),'GqsAg':'--if-pre'+_0x4e1d13(0x230),'AKiQD':_0x4e1d13(0x1fd),'sAFvN':_0x4e1d13(0x1eb),'fGlqZ':function(_0x19075c,_0x3cf6dc,_0x170ed6){return _0x19075c(_0x3cf6dc,_0x170ed6);},'acdwv':_0x4e1d13(0x177),'SLPSP':function(_0x3167a5,_0x4dcd35,_0x524064,_0x338d96){return _0x3167a5(_0x4dcd35,_0x524064,_0x338d96);},'ctvdT':function(_0x220e54,_0x1d7be9,_0x26b644){return _0x220e54(_0x1d7be9,_0x26b644);},'eBejU':_0x4e1d13(0x212),'JMgvH':_0x4e1d13(0x18b),'pprJO':function(_0x5e0622,_0x1f9687){return _0x5e0622(_0x1f9687);},'djJXN':_0x4e1d13(0x183)+_0x4e1d13(0x223)+_0x4e1d13(0x15c)+_0x4e1d13(0x200)+_0x4e1d13(0x206)+_0x4e1d13(0x152)+'it\x20commi'+_0x4e1d13(0x1b2)+'.','zUySb':function(_0x3382d4,_0x52b1a5){return _0x3382d4>=_0x52b1a5;},'chglD':_0x4e1d13(0x219),'LaOLd':function(_0x4d1b75,_0x310e24,_0xa4c836){return _0x4d1b75(_0x310e24,_0xa4c836);},'dghng':_0x4e1d13(0x1fc)+_0x4e1d13(0x1f3),'SPnBu':function(_0x151686){return _0x151686();},'LfOpP':_0x4e1d13(0x1d8)+'RIZE','YCvwI':_0x4e1d13(0x26d)+_0x4e1d13(0x23e),'mKOzX':_0x4e1d13(0x207)+'t','QYaKB':_0x4e1d13(0x24b),'IkOkg':function(_0x4456cb,_0x2b1eb3){return _0x4456cb>_0x2b1eb3;},'cCTWy':_0x4e1d13(0x22a),'snOmW':function(_0xa721a1,_0x292238){return _0xa721a1(_0x292238);},'XYrxf':'\x20(trunca'+_0x4e1d13(0x242),'qscLP':function(_0x58a527,_0x1a0d2a){return _0x58a527(_0x1a0d2a);},'ganhY':'3.\x20SUGGE'+'ST','XTHgj':function(_0x2a6674,_0x340525){return _0x2a6674(_0x340525);},'bhFud':_0x4e1d13(0x1ca)+_0x4e1d13(0x213)+'te\x20commi'+_0x4e1d13(0x160)+'e.','jiaxg':function(_0x299804,_0x59a163){return _0x299804(_0x59a163);},'wrKxc':_0x4e1d13(0x24d)+'d\x20commit','UlJTs':_0x4e1d13(0x22f)+'RM','HbofX':function(_0x1c1a56,_0x2db1de,_0x106289){return _0x1c1a56(_0x2db1de,_0x106289);},'wPuVz':_0x4e1d13(0x20a)+'mit\x20mess'+'age\x20(pre'+_0x4e1d13(0x1c3)+_0x4e1d13(0x179)+_0x4e1d13(0x165)+_0x4e1d13(0x1ab),'DQFeC':function(_0x551300,_0x21027f){return _0x551300(_0x21027f);},'qrCuc':function(_0x5b3b6e,_0x2e60ae,_0x407f26){return _0x5b3b6e(_0x2e60ae,_0x407f26);},'PvTRy':'Commit\x20u'+_0x4e1d13(0x17b)+_0x4e1d13(0x20e)+_0x4e1d13(0x239)+':\x20','cFTOo':function(_0x23a0d4,_0x50d892,_0x155f94){return _0x23a0d4(_0x50d892,_0x155f94);},'nyROn':_0x4e1d13(0x26f),'rgPHo':'Commit\x20w'+_0x4e1d13(0x1ea)+_0x4e1d13(0x269),'WOYxX':_0x4e1d13(0x21f),'srykU':'inherit'},_0x3d06ad=_0x3ec2a8['XQimr'](getLLM);_0x3ec2a8[_0x4e1d13(0x1d3)](getGitStatus),section(_0x3ec2a8[_0x4e1d13(0x1df)]);if(_0x51c1ad[_0x4e1d13(0x180)]){if(_0x3ec2a8[_0x4e1d13(0x221)]!==_0x4e1d13(0x182))_0x3ec2a8[_0x4e1d13(0x1d3)](stageAll),console[_0x4e1d13(0x23a)](ok('OK',_0x4e1d13(0x188)+_0x4e1d13(0x203)+_0x4e1d13(0x1a0)+_0x4e1d13(0x244)));else try{return dePIFi[_0x4e1d13(0x1d3)](_0x16cf3b);}catch(_0x55e53b){const _0x10b449=dePIFi[_0x4e1d13(0x254)](_0x55e53b,_0x3d38c7)?_0x55e53b[_0x4e1d13(0x185)]:_0xd0568d(_0x55e53b);_0x34f027(_0x10b449);}}const _0x8fdcb1=_0x3ec2a8[_0x4e1d13(0x171)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x3ec2a8[_0x4e1d13(0x166)](_0x8fdcb1[_0x4e1d13(0x272)]['length'],0x0)&&failAndExit(_0x3ec2a8['djJXN']);_0x3ec2a8[_0x4e1d13(0x199)](_0x8fdcb1[_0x4e1d13(0x1ad)][_0x4e1d13(0x24a)+'t'],WARN_SPLIT_FILE_COUNT)&&console[_0x4e1d13(0x23a)](_0x3ec2a8[_0x4e1d13(0x178)](warn,_0x3ec2a8[_0x4e1d13(0x1b7)],_0x8fdcb1['metrics'][_0x4e1d13(0x24a)+'t']+(_0x4e1d13(0x194)+'files\x20de'+'tected.\x20'+_0x4e1d13(0x224)+_0x4e1d13(0x1b0)+_0x4e1d13(0x250)+_0x4e1d13(0x1e8)+_0x4e1d13(0x1ed)+'.')));_0x3ec2a8['LaOLd'](printList,_0x3ec2a8[_0x4e1d13(0x18d)],_0x8fdcb1['files'][_0x4e1d13(0x1c0)](_0x36d0b9=>_0x36d0b9['status']+'\x20'+_0x36d0b9['path']));_0x51c1ad[_0x4e1d13(0x264)]&&(console[_0x4e1d13(0x23a)](),_0x3ec2a8[_0x4e1d13(0x1c9)](runOptionalChecks));_0x3ec2a8['pprJO'](section,_0x3ec2a8[_0x4e1d13(0x21c)]);const _0xda5de1=summarizeChanges(_0x8fdcb1),_0x1f9ff9=_0x3ec2a8[_0x4e1d13(0x171)](detectCommitType,_0x8fdcb1);printKeyValues([{'key':'Summary','value':_0xda5de1},{'key':_0x3ec2a8['YCvwI'],'value':_0x1f9ff9},{'key':_0x3ec2a8[_0x4e1d13(0x1f9)],'value':_0x8fdcb1[_0x4e1d13(0x1ee)]||_0x3ec2a8['QYaKB']}]);if(_0x3ec2a8[_0x4e1d13(0x1a4)](_0x8fdcb1[_0x4e1d13(0x1ad)]['patchCha'+'rs'],WARN_PROMPT_DIFF_CHARS)){if(_0x3ec2a8[_0x4e1d13(0x166)](_0x3ec2a8[_0x4e1d13(0x1f7)],_0x3ec2a8[_0x4e1d13(0x1f7)]))console['log'](warn(_0x4e1d13(0x268),'Large\x20st'+_0x4e1d13(0x192)+_0x4e1d13(0x1a1)+_0x8fdcb1['metrics'][_0x4e1d13(0x1f8)+'rs']+(_0x4e1d13(0x1c8)+_0x4e1d13(0x1a5)+_0x4e1d13(0x271)+_0x4e1d13(0x236)+_0x4e1d13(0x1cd)+_0x4e1d13(0x1b5)+_0x4e1d13(0x162))));else{const _0x4ea628=dePIFi[_0x4e1d13(0x166)](_0x1fd169[_0x4e1d13(0x1e5)],dePIFi[_0x4e1d13(0x16a)])?dePIFi['nFWTz']:_0x4e1d13(0x159),_0x10f10f=[{'label':_0x4e1d13(0x186),'args':['run',dePIFi[_0x4e1d13(0x1c6)],dePIFi[_0x4e1d13(0x181)]]},{'label':dePIFi['AKiQD'],'args':[dePIFi['sAFvN'],_0x4e1d13(0x1fd),dePIFi[_0x4e1d13(0x181)]]}];for(const _0x15d852 of _0x10f10f){_0xeaae74[_0x4e1d13(0x23a)](dePIFi[_0x4e1d13(0x232)](_0x31759f,dePIFi[_0x4e1d13(0x19b)],'Running\x20'+_0x15d852['label']+_0x4e1d13(0x21a)));try{dePIFi['SLPSP'](_0x149e43,_0x4ea628,_0x15d852['args'],{'stdio':'inherit'}),_0x253fa9['log'](dePIFi['ctvdT'](_0x573416,'OK',_0x15d852[_0x4e1d13(0x158)]+(_0x4e1d13(0x233)+_0x4e1d13(0x23c))));}catch{_0x32dbea(_0x15d852[_0x4e1d13(0x158)]+(_0x4e1d13(0x1b9)+'\x20Abortin'+'g\x20commit'+'.'));}}}}const _0x3c1865=_0x4e1d13(0x1bf)+_0x4e1d13(0x15d)+_0x4e1d13(0x18f)+_0x4e1d13(0x25d)+_0x4e1d13(0x1ec)+_0x4e1d13(0x1dc)+_0x4e1d13(0x1ba)+_0x4e1d13(0x168)+_0x4e1d13(0x161)+_0x4e1d13(0x1ac)+_0x4e1d13(0x173)+_0x4e1d13(0x251)+'th\x20this\x20'+_0x4e1d13(0x24c)+'ype\x20unle'+_0x4e1d13(0x226)+_0x4e1d13(0x1bd)+_0x4e1d13(0x19c)+_0x4e1d13(0x16e)+_0x4e1d13(0x23f)+_0x4e1d13(0x1b4)+_0x1f9ff9+('\x0a-\x20Use\x20f'+_0x4e1d13(0x1aa)+'type>(op'+_0x4e1d13(0x237)+'cope):\x20<'+'subject>'+_0x4e1d13(0x220)+_0x4e1d13(0x175)+'concise\x20'+'and\x20spec'+'ific\x0a-\x20R'+_0x4e1d13(0x1e1)+_0x4e1d13(0x1da)+_0x4e1d13(0x20d)+_0x4e1d13(0x1c1)+'ithout\x20c'+_0x4e1d13(0x234)+_0x4e1d13(0x273)+_0x4e1d13(0x17e)+_0x4e1d13(0x1cb)+'ed\x20files'+':\x0a')+_0x3ec2a8[_0x4e1d13(0x167)](formatStagedFiles,_0x8fdcb1)+(_0x4e1d13(0x1e4)+_0x4e1d13(0x17f)+'\x0a')+_0xda5de1+('\x0a\x0aDiff\x20s'+_0x4e1d13(0x18c))+(_0x8fdcb1[_0x4e1d13(0x1ee)]||_0x3ec2a8[_0x4e1d13(0x189)])+(_0x4e1d13(0x245)+'excerpt')+(_0x8fdcb1[_0x4e1d13(0x1ad)][_0x4e1d13(0x25f)+'d']?_0x3ec2a8[_0x4e1d13(0x24e)]:'')+':\x0a'+(_0x8fdcb1[_0x4e1d13(0x25b)]||_0x3ec2a8[_0x4e1d13(0x189)])+_0x4e1d13(0x154);_0x3ec2a8[_0x4e1d13(0x215)](section,_0x3ec2a8[_0x4e1d13(0x20c)]);const _0x12f30d=await _0x3ec2a8['fGlqZ'](withProgress,'AI\x20is\x20th'+_0x4e1d13(0x1e0)+_0x4e1d13(0x1a3)+_0x4e1d13(0x1dd)+'sponse..'+'.',()=>_0x3d06ad[_0x4e1d13(0x1a2)](_0x3c1865)),_0x567aab=_0x3ec2a8[_0x4e1d13(0x21b)](extractMessageText,_0x12f30d[_0x4e1d13(0x229)]);!_0x567aab&&failAndExit(_0x3ec2a8['bhFud']);_0x3ec2a8[_0x4e1d13(0x1c5)](printKeyValues,[{'key':_0x3ec2a8['wrKxc'],'value':_0x567aab}]),_0x3ec2a8[_0x4e1d13(0x167)](section,_0x3ec2a8[_0x4e1d13(0x248)]);const _0x22db38=await _0x3ec2a8[_0x4e1d13(0x150)](askEditableInput,_0x3ec2a8[_0x4e1d13(0x20f)],_0x567aab);_0x3ec2a8['DQFeC'](printKeyValues,[{'key':_0x4e1d13(0x253)+'mmit','value':_0x22db38}]);const _0x5fe8f2=await _0x3ec2a8[_0x4e1d13(0x193)](askConfirmation,_0x3ec2a8[_0x4e1d13(0x197)],{'defaultYes':!![]});if(!_0x5fe8f2){console[_0x4e1d13(0x23a)](_0x3ec2a8[_0x4e1d13(0x1db)](warn,_0x3ec2a8[_0x4e1d13(0x176)],_0x3ec2a8[_0x4e1d13(0x22e)]));return;}try{_0x3ec2a8[_0x4e1d13(0x187)](execFileSync,_0x3ec2a8[_0x4e1d13(0x15a)],['commit','-m',_0x22db38],{'stdio':_0x3ec2a8[_0x4e1d13(0x15f)]});}catch{failAndExit(_0x4e1d13(0x1ca)+_0x4e1d13(0x1f4)+'\x20commit.'+_0x4e1d13(0x1b6)+_0x4e1d13(0x235)+_0x4e1d13(0x26b)+_0x4e1d13(0x223));}await _0x3ec2a8[_0x4e1d13(0x1d3)](maybePushCurrentBranch);}function _0x4b73(){const _0x4b1134=['--set-up','\x0a\x0aShort\x20','platform','apply','hwRpg','multiple','other','as\x20not\x20c','run','essage\x20i','\x20commits','diffStat','\x20more','tODYG','deleted','npm.cmd','iles','o\x20create','wUvVs','eQBhI','cCTWy','patchCha','mKOzX','OarOa','IoHgP','Staged\x20f','test','stream','slice','hanges\x20f','ikvkD','qYTWy','ll\x20chang','args','\x20renamed','irst\x20or\x20','Diff\x20sta','g\x20commit','ZKmRf','Edit\x20com','\x22\x20to\x20\x22','ganhY','ommit\x20me','s\x20messag','wPuVz','105819LPPNUc','kupZL','1.\x20STAGE','o\x20genera','22PZwegt','qscLP','join','119749MGlkHz','construc','TIP','...','XTHgj','LfOpP','wHXIw','o\x20push\x20t','git','\x0a-\x20Keep\x20','JMgvH','menHJ','d\x20files.','Consider','deletion','ss\x20evide','vFhYf','pleted\x20a','content','EZSLg','paths\x20av','HWivH','GEQNV','rgPHo','4.\x20CONFI','sent','),\x20','fGlqZ','\x20complet','ode\x20fenc','f\x20you\x20ha','lude\x20a\x20t','tional-s','(((.+)+)','e?\x20(Y/n)','log','YOvzH','ed.','chore','\x20type','other\x20on','No\x20git\x20r','EZGgC','ted)','710802DSWcjc','add\x20.).','\x0a\x0aPatch\x20','tor','Running\x20','UlJTs','ase','fileCoun','(none)','likely\x20t','Suggeste','XYrxf','\x20inserti','ng\x20into\x20','Start\x20wi','nch\x20\x22','Final\x20co','Sstnq','BJZFC','169460bJGKPu','fullName','463956jYbxjC','branch','y/N):\x20','patch','status','Commit\x20m','able.','truncate','\x22\x20now?\x20(','+)+$','Push\x20cur','HOpch','check','search','pZtVb','path','WARNING','reated.','Uyruo','ve\x20stage','inherit','Detected','eam\x20foun','CANCELED','192gMcIQt','will\x20inc','files','es\x20or\x20ex','JoJQP','HbofX','Commit\x20w','run\x20`gem','\x20added,\x20','\x0a\x20\x20','endsWith','--if-pre','d.\x20Push\x20','label','npm','WOYxX','added','\x20Stage\x20c','ne\x20Conve','oykVe','srykU','t\x20messag','taged\x20ch','xcerpt.','476568iYFpWT','105YVGxKd','\x20suggest','intIn','snOmW','on\x20the\x20s','pleted\x20t','PIiHW','186412qccQdF','refactor','rent\x20bra','gests\x20an','lKcJu','No\x20file\x20','pprJO','.md','ules:\x0a-\x20','\x20deleted','subject\x20','nyROn','CHECK','ctvdT','\x20to\x20keep','MhvDi','sing\x20thi','rdPQO','dwRFE','planatio','summary:','all','GqsAg','ChNxT','No\x20stage','toString','message','lint','SLPSP','Staged\x20a','QYaKB','push','QsdRT','tat:\x0a','dghng','aUQDu','ntional\x20','d,\x20','WZVxh','aged\x20dif','qrCuc','\x20staged\x20','startsWi','every','PvTRy','t\x20upstre','zUySb','o\x20push\x20\x22','acdwv','ngly\x20sug','.\x20Push\x20n','hanged\x20(','eam\x20conf','es\x20(git\x20','f\x20(','invoke','nd\x20reque','IkOkg','\x20Prompt\x20','snEZR','SMLaP','rYutH','4HPWzxv','ormat:\x20<','ion):\x20','anges.\x0aR','metrics','\x20modifie','cVAvM','\x20splitti','VugBA','t\x20--all`','UKKPC','e:\x20','\x20patch\x20e','\x20Check\x20i','chglD','JWbYg','\x20failed.','h\x20based\x20','length','kTMUT','nce\x20stro','modified','\x0aWrite\x20o','map','ssage,\x20w','fPXBN','ss\x20Enter','lNWyi','jiaxg','eViNb','50cLtpZD','\x20chars).','SPnBu','Failed\x20t','ns\x0a\x0aStag','xVFUU','runcated','SKIPPED','\x22\x20and\x20se','am?\x20(y/N','):\x20','qMKRF','XQimr','QvEew','Push\x20com','\x20deletio','EYeGd','2.\x20SUMMA','docs','LY\x20the\x20c','cFTOo','n\x20Englis','sting\x20re','evSrJ','eBejU','inking\x20a','eturn\x20ON','renamed'];_0x4b73=function(){return _0x4b1134;};return _0x4b73();}
@@ -1 +1 @@
1
- (function(_0x593584,_0x49fb2d){const _0x34e92b=_0x5e69,_0x15857d=_0x593584();while(!![]){try{const _0x3527ab=-parseInt(_0x34e92b(0x20b))/0x1*(parseInt(_0x34e92b(0x1f4))/0x2)+-parseInt(_0x34e92b(0x263))/0x3+-parseInt(_0x34e92b(0x224))/0x4*(parseInt(_0x34e92b(0x213))/0x5)+parseInt(_0x34e92b(0x269))/0x6*(-parseInt(_0x34e92b(0x210))/0x7)+-parseInt(_0x34e92b(0x252))/0x8+-parseInt(_0x34e92b(0x209))/0x9*(-parseInt(_0x34e92b(0x237))/0xa)+parseInt(_0x34e92b(0x25f))/0xb*(parseInt(_0x34e92b(0x22f))/0xc);if(_0x3527ab===_0x49fb2d)break;else _0x15857d['push'](_0x15857d['shift']());}catch(_0x4ff976){_0x15857d['push'](_0x15857d['shift']());}}}(_0x4519,0x571c3));const _0x35908e=(function(){let _0x55b06f=!![];return function(_0x2a8c75,_0x42316b){const _0x3a0b9a=_0x55b06f?function(){if(_0x42316b){const _0x409e83=_0x42316b['apply'](_0x2a8c75,arguments);return _0x42316b=null,_0x409e83;}}:function(){};return _0x55b06f=![],_0x3a0b9a;};}()),_0x296115=_0x35908e(this,function(){const _0x201b0b=_0x5e69,_0x2b2562={'LOJDE':_0x201b0b(0x212)+'+)+$'};return _0x296115[_0x201b0b(0x258)]()[_0x201b0b(0x20c)](_0x201b0b(0x212)+_0x201b0b(0x222))[_0x201b0b(0x258)]()[_0x201b0b(0x1f9)+_0x201b0b(0x26d)](_0x296115)[_0x201b0b(0x20c)](_0x2b2562[_0x201b0b(0x1ff)]);});_0x296115();function _0x5e69(_0x326ed4,_0x5c3431){_0x326ed4=_0x326ed4-0x1f1;const _0x5b2961=_0x4519();let _0x296115=_0x5b2961[_0x326ed4];return _0x296115;}import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{bad,failAndExit,ok,printKeyValues,section,warn}from'../ui.js';function _0x4519(){const _0x89d24d=['jdEze','(((.+)+)','5MIwFde','Status','openai','c)\x20[goog','WCPJa','AposU','IATuK','xVxIb','ini','ksQWM','ATION\x20SA','PxaTU','ExNPs','LLM_MODE','IxmMr','+)+$','TYjEe','1260436Ltzehn','\x20Setup\x20c','):\x20','fXSNE','WDTxI','gpt-4o-m','API_KEY','SWqsD','tODSC','VPKqN','Aszjz','12mItOrC','enai,\x20or','log','WFfIE','LPZsl','dfcBw','\x20already','IDER=\x22','22090BNQtUk','\x20global)','set','XfxFn','KBQYp','.env','PI_KEY=\x22','Path','env',']:\x20','WfvPF','kPQYI','GOOGLE_A','ANTHROPI','OPENAI_A','invalid','Model\x20[','UKvkZ','NmIHW','UBdOz','toLowerC','TdFbj','ZMMjR','gIgKt','Global\x20.','provider','env\x20path','3696048SMWjvv','xMCHx','ase','WvNhK','alzCd','XGHhh','toString','elIcC','bqaCz','MaHMn','ic.','BbxLU','exitCode','18418818kiaaac','qPyPt','VED','LLM_PROV','2084352gjJtIS','DukGv','google','t-latest','.\x20Use\x20go','ZFTrk','6quBUFg','CANCELED','SPnQF','VJdWo','tor','ysVNt','Bczeq','dPjzY','106zuiTkr','not\x20foun','C_API_KE','Uoxqp','IDER','construc','le]:\x20','UKISK','claude-3','te?\x20(y/n','PI_KEY','LOJDE','Fraez','utf8','ZgUBE','NwPSY','anthropi','PHsHo','LMmok','FshWx','missing/','2313GOvCkQ','IQplT','5302peFGFE','search','xxLQK','.5-flash','VxWef','927101EESGUJ'];_0x4519=function(){return _0x89d24d;};return _0x4519();}function getProviderKeyName(_0x503223){const _0x15d94f=_0x5e69,_0x26b26c={'UBdOz':function(_0x290b76,_0x53bf64){return _0x290b76===_0x53bf64;},'alzCd':function(_0x4f8c7e,_0x54542b){return _0x4f8c7e!==_0x54542b;},'NwPSY':_0x15d94f(0x20d),'IATuK':_0x15d94f(0x24e),'TYjEe':_0x15d94f(0x243)+'PI_KEY','fppyR':function(_0x40cd15,_0x625d22){return _0x40cd15===_0x625d22;},'ExNPs':_0x15d94f(0x215),'LMmok':'ANTHROPI'+_0x15d94f(0x1f6)+'Y'};if(_0x26b26c[_0x15d94f(0x24a)](_0x503223,_0x15d94f(0x265))){if(_0x26b26c[_0x15d94f(0x256)](_0x26b26c[_0x15d94f(0x203)],_0x26b26c[_0x15d94f(0x219)]))return _0x26b26c[_0x15d94f(0x223)];else _0x4be2fa[_0x15d94f(0x25e)]=0x1;}if(_0x26b26c['fppyR'](_0x503223,_0x26b26c[_0x15d94f(0x21f)]))return _0x15d94f(0x245)+_0x15d94f(0x1fe);return _0x26b26c[_0x15d94f(0x206)];}export async function initConfig(){const _0x4b4245=_0x5e69,_0x5971e3={'bqaCz':function(_0x16fcf3){return _0x16fcf3();},'jdEze':function(_0x46cbbb,_0x169102){return _0x46cbbb(_0x169102);},'fXSNE':function(_0x5a619f,_0x206950){return _0x5a619f(_0x206950);},'Bczeq':_0x4b4245(0x26a),'ZgUBE':function(_0xfd7810,_0x176d2){return _0xfd7810(_0x176d2);},'KBQYp':'Provider'+'\x20(google'+'/openai/'+_0x4b4245(0x204)+_0x4b4245(0x216)+_0x4b4245(0x1fa),'BbxLU':function(_0x2d24e7,_0x595299){return _0x2d24e7||_0x595299;},'WDTxI':'google','MaHMn':function(_0x2f5c61,_0xf024f2){return _0x2f5c61!==_0xf024f2;},'WCPJa':_0x4b4245(0x215),'sxRSI':function(_0x4211fb,_0x3bd8b){return _0x4211fb!==_0x3bd8b;},'Uoxqp':'Invalid\x20'+_0x4b4245(0x250)+_0x4b4245(0x267)+'ogle,\x20op'+_0x4b4245(0x230)+'\x20anthrop'+_0x4b4245(0x25c),'PxaTU':function(_0x59ef0c,_0x2cfbe0){return _0x59ef0c===_0x2cfbe0;},'VJdWo':'gemini-2'+_0x4b4245(0x20e),'VPKqN':_0x4b4245(0x229)+_0x4b4245(0x21b),'elIcC':_0x4b4245(0x1fc)+'-5-sonne'+_0x4b4245(0x266),'VxWef':function(_0x419f72,_0x2550ea){return _0x419f72(_0x2550ea);},'ZFTrk':function(_0x33f97c,_0x3761c7){return _0x33f97c===_0x3761c7;},'DukGv':function(_0x3e5cea,_0x54f175){return _0x3e5cea===_0x54f175;},'dPjzY':_0x4b4245(0x204)+'c','WFfIE':function(_0x225e22,_0x2bb8c6){return _0x225e22(_0x2bb8c6);},'ysVNt':'CONFIGUR'+_0x4b4245(0x21d)+_0x4b4245(0x261),'TdFbj':_0x4b4245(0x214),'tODSC':function(_0x27db33,_0x3ebe56){return _0x27db33(_0x3ebe56);},'UKvkZ':_0x4b4245(0x23e)},_0x1414a2=_0x5971e3[_0x4b4245(0x25a)](getGlobalEnvPath);if(_0x5971e3[_0x4b4245(0x211)](existsSync,_0x1414a2)){const _0x59a794=await _0x5971e3[_0x4b4245(0x227)](askConfirmation,_0x1414a2+(_0x4b4245(0x235)+'\x20exists.'+'\x20Overwri'+_0x4b4245(0x1fd)+_0x4b4245(0x226)));if(!_0x59a794){console[_0x4b4245(0x231)](warn(_0x5971e3[_0x4b4245(0x1f2)])+(_0x4b4245(0x225)+'anceled.'));return;}}const _0x3cb480=await _0x5971e3[_0x4b4245(0x202)](askInput,_0x5971e3[_0x4b4245(0x23b)]),_0x54666a=_0x5971e3[_0x4b4245(0x25d)](_0x3cb480,_0x5971e3[_0x4b4245(0x228)])[_0x4b4245(0x24b)+_0x4b4245(0x254)]();_0x5971e3['MaHMn'](_0x54666a,_0x5971e3[_0x4b4245(0x228)])&&_0x5971e3[_0x4b4245(0x25b)](_0x54666a,_0x5971e3[_0x4b4245(0x217)])&&_0x5971e3['sxRSI'](_0x54666a,'anthropi'+'c')&&_0x5971e3[_0x4b4245(0x227)](failAndExit,_0x5971e3[_0x4b4245(0x1f7)]);const _0x56790c=_0x54666a,_0x2bdcf1=_0x5971e3[_0x4b4245(0x21e)](_0x56790c,_0x4b4245(0x265))?_0x5971e3[_0x4b4245(0x26c)]:_0x5971e3[_0x4b4245(0x21e)](_0x56790c,_0x5971e3[_0x4b4245(0x217)])?_0x5971e3[_0x4b4245(0x22d)]:_0x5971e3[_0x4b4245(0x259)],_0xb12ebe=await _0x5971e3[_0x4b4245(0x20f)](askInput,_0x4b4245(0x247)+_0x2bdcf1+_0x4b4245(0x240))||_0x2bdcf1,_0x43d561=getProviderKeyName(_0x56790c),_0x431c1f=await _0x5971e3['VxWef'](askInput,_0x43d561+':\x20'),_0x46ffea=[_0x4b4245(0x262)+_0x4b4245(0x236)+_0x56790c+'\x22',_0x4b4245(0x220)+'L=\x22'+_0xb12ebe+'\x22','',_0x4b4245(0x243)+_0x4b4245(0x23d)+(_0x56790c===_0x5971e3[_0x4b4245(0x228)]?_0x431c1f:'')+'\x22','GEMINI_A'+'PI_KEY=\x22'+'\x22',_0x4b4245(0x245)+_0x4b4245(0x23d)+(_0x5971e3[_0x4b4245(0x268)](_0x56790c,_0x5971e3['WCPJa'])?_0x431c1f:'')+'\x22',_0x4b4245(0x244)+_0x4b4245(0x1f6)+'Y=\x22'+(_0x5971e3[_0x4b4245(0x264)](_0x56790c,_0x5971e3[_0x4b4245(0x1f3)])?_0x431c1f:'')+'\x22','']['join']('\x0a');mkdirSync(_0x5971e3['WFfIE'](dirname,_0x1414a2),{'recursive':!![]}),writeFileSync(_0x1414a2,_0x46ffea,_0x4b4245(0x201)),_0x5971e3['jdEze'](section,_0x5971e3[_0x4b4245(0x1f1)]),_0x5971e3[_0x4b4245(0x232)](printKeyValues,[{'key':_0x5971e3[_0x4b4245(0x24c)],'value':_0x5971e3[_0x4b4245(0x22c)](ok,'OK')},{'key':_0x5971e3[_0x4b4245(0x248)],'value':_0x1414a2}]);}export function doctorConfig(){const _0x108e83=_0x5e69,_0x1f31f4={'kPQYI':function(_0x4825cd){return _0x4825cd();},'xVxIb':_0x108e83(0x23c),'SPnQF':function(_0x4ab0db,_0x1d6ec8){return _0x4ab0db(_0x1d6ec8);},'XfxFn':'google','IQplT':function(_0x4b68c8,_0x3bba79){return _0x4b68c8===_0x3bba79;},'qPyPt':'openai','WvNhK':_0x108e83(0x204)+'c','PHsHo':function(_0x33f0f3,_0x56f7e6){return _0x33f0f3(_0x56f7e6);},'UKISK':function(_0x40b80f,_0x3cf1d2){return _0x40b80f===_0x3cf1d2;},'sneww':function(_0xe10a30,_0x5c8ab4){return _0xe10a30===_0x5c8ab4;},'IxmMr':function(_0x4c021d,_0x4e970b){return _0x4c021d(_0x4e970b);},'WogvB':_0x108e83(0x22a),'qCJXk':_0x108e83(0x24f)+_0x108e83(0x23f),'SWqsD':'found','FshWx':'missing','dfcBw':'Local\x20.e'+'nv','ZMMjR':function(_0x36e65a,_0x3a99b8){return _0x36e65a(_0x3a99b8);},'EAjZw':'found\x20(o'+'verrides'+_0x108e83(0x238),'Aszjz':_0x108e83(0x262)+_0x108e83(0x1f8),'LPZsl':_0x108e83(0x208)+_0x108e83(0x246),'ksQWM':function(_0x1a8ea9,_0x4ea2cd){return _0x1a8ea9(_0x4ea2cd);},'NmIHW':function(_0x265602,_0x585434){return _0x265602(_0x585434);},'Fraez':_0x108e83(0x239),'AposU':function(_0xf7c6f,_0x22ac8c){return _0xf7c6f(_0x22ac8c);},'WfvPF':_0x108e83(0x245)+_0x108e83(0x1fe),'xMCHx':function(_0x36de24,_0x111268){return _0x36de24(_0x111268);},'KCNcP':_0x108e83(0x244)+_0x108e83(0x1f6)+'Y','JvLsu':function(_0x76c752,_0x30f510){return _0x76c752(_0x30f510);},'XGHhh':function(_0x4cb83a,_0xe86aa){return _0x4cb83a(_0xe86aa);}},_0x26ac36=_0x1f31f4[_0x108e83(0x242)](getGlobalEnvPath),_0xb580d8=_0x1f31f4[_0x108e83(0x21a)],_0x42ad4e=_0x1f31f4[_0x108e83(0x26b)](existsSync,_0xb580d8),_0x1df0cc=existsSync(_0x26ac36),_0x41ad5c=(process.env.LLM_PROVIDER||'')[_0x108e83(0x24b)+_0x108e83(0x254)](),_0x182230=process.env.LLM_MODEL||'',_0x935054=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x29a995=process.env.OPENAI_API_KEY||'',_0x3a7243=process.env.ANTHROPIC_API_KEY||'',_0x53988a=_0x41ad5c===_0x1f31f4[_0x108e83(0x23a)]||_0x1f31f4[_0x108e83(0x20a)](_0x41ad5c,_0x1f31f4[_0x108e83(0x260)])||_0x41ad5c===_0x1f31f4['WvNhK'],_0x401126=_0x1f31f4[_0x108e83(0x205)](Boolean,_0x182230),_0x5a939c=_0x1f31f4[_0x108e83(0x1fb)](_0x41ad5c,_0x1f31f4[_0x108e83(0x23a)])?_0x935054:_0x1f31f4['sneww'](_0x41ad5c,_0x1f31f4['qPyPt'])?_0x29a995:_0x41ad5c===_0x1f31f4[_0x108e83(0x255)]?_0x3a7243:'',_0x34f29d=_0x53988a?_0x1f31f4[_0x108e83(0x221)](getProviderKeyName,_0x41ad5c):_0x1f31f4['WogvB'],_0x52bab2=Boolean(_0x5a939c);_0x1f31f4[_0x108e83(0x221)](section,'DIAGNOST'+'ICS'),_0x1f31f4['SPnQF'](printKeyValues,[{'key':_0x108e83(0x24f)+_0x108e83(0x251),'value':_0x26ac36},{'key':_0x1f31f4['qCJXk'],'value':_0x1df0cc?ok(_0x1f31f4[_0x108e83(0x22b)]):_0x1f31f4[_0x108e83(0x221)](warn,_0x1f31f4['FshWx'])},{'key':_0x1f31f4[_0x108e83(0x234)],'value':_0x42ad4e?_0x1f31f4[_0x108e83(0x24d)](warn,_0x1f31f4['EAjZw']):_0x1f31f4[_0x108e83(0x205)](ok,_0x108e83(0x1f5)+'d')}]),console[_0x108e83(0x231)](),printKeyValues([{'key':_0x1f31f4[_0x108e83(0x22e)],'value':_0x53988a?ok('ok'):_0x1f31f4['ZMMjR'](bad,_0x1f31f4[_0x108e83(0x233)])},{'key':_0x108e83(0x220)+'L','value':_0x401126?ok('ok'):_0x1f31f4[_0x108e83(0x221)](bad,_0x1f31f4['FshWx'])},{'key':'Expected'+'\x20('+_0x34f29d+')','value':_0x52bab2?ok('ok'):_0x1f31f4[_0x108e83(0x21c)](bad,_0x1f31f4[_0x108e83(0x207)])},{'key':_0x108e83(0x243)+_0x108e83(0x1fe),'value':_0x935054?_0x1f31f4[_0x108e83(0x249)](ok,_0x1f31f4[_0x108e83(0x200)]):_0x1f31f4[_0x108e83(0x218)](warn,_0x1f31f4['FshWx'])},{'key':_0x1f31f4[_0x108e83(0x241)],'value':_0x29a995?_0x1f31f4[_0x108e83(0x253)](ok,_0x1f31f4[_0x108e83(0x200)]):_0x1f31f4[_0x108e83(0x253)](warn,_0x1f31f4[_0x108e83(0x207)])},{'key':_0x1f31f4['KCNcP'],'value':_0x3a7243?_0x1f31f4['JvLsu'](ok,_0x1f31f4[_0x108e83(0x200)]):_0x1f31f4[_0x108e83(0x257)](warn,_0x1f31f4[_0x108e83(0x207)])}]),(!_0x53988a||!_0x401126||!_0x52bab2)&&(process['exitCode']=0x1);}
1
+ function _0x4aae(_0x27a127,_0x3576d0){_0x27a127=_0x27a127-0x1e4;const _0x7e1b02=_0x2891();let _0x4130a7=_0x7e1b02[_0x27a127];return _0x4130a7;}(function(_0x1082a2,_0x1a7efb){const _0x2fd02b=_0x4aae,_0x23d9f6=_0x1082a2();while(!![]){try{const _0x1a83d8=-parseInt(_0x2fd02b(0x224))/0x1*(parseInt(_0x2fd02b(0x210))/0x2)+-parseInt(_0x2fd02b(0x21c))/0x3+-parseInt(_0x2fd02b(0x24e))/0x4*(parseInt(_0x2fd02b(0x22d))/0x5)+parseInt(_0x2fd02b(0x219))/0x6+-parseInt(_0x2fd02b(0x203))/0x7+parseInt(_0x2fd02b(0x1f6))/0x8+parseInt(_0x2fd02b(0x218))/0x9;if(_0x1a83d8===_0x1a7efb)break;else _0x23d9f6['push'](_0x23d9f6['shift']());}catch(_0x58eeb5){_0x23d9f6['push'](_0x23d9f6['shift']());}}}(_0x2891,0x476e4));const _0x12555f=(function(){const _0x2dd21e=_0x4aae,_0x134e6f={'mIOCe':_0x2dd21e(0x23d)+_0x2dd21e(0x20f),'OhFLU':function(_0x4735af,_0x39c94b){return _0x4735af!==_0x39c94b;}};let _0x30db9b=!![];return function(_0x14da29,_0x227a67){const _0x447029=_0x2dd21e,_0x4c6c17={'LyrMd':_0x134e6f[_0x447029(0x1ed)],'owzSo':function(_0x4eedb4,_0x4ce573){const _0x455649=_0x447029;return _0x134e6f[_0x455649(0x23c)](_0x4eedb4,_0x4ce573);}},_0x552614=_0x30db9b?function(){const _0x2b9389=_0x447029,_0x581342={'tpXgA':_0x4c6c17[_0x2b9389(0x20b)]};if(_0x4c6c17['owzSo']('aPTFi',_0x2b9389(0x230)))return _0x898092['toString']()[_0x2b9389(0x220)](_0x581342[_0x2b9389(0x1e4)])['toString']()['construc'+'tor'](_0x4ede83)[_0x2b9389(0x220)](_0x581342['tpXgA']);else{if(_0x227a67){const _0x176a1c=_0x227a67[_0x2b9389(0x222)](_0x14da29,arguments);return _0x227a67=null,_0x176a1c;}}}:function(){};return _0x30db9b=![],_0x552614;};}()),_0x4130a7=_0x12555f(this,function(){const _0x9f2ebf=_0x4aae,_0xd24cc1={'mfkOr':_0x9f2ebf(0x23d)+_0x9f2ebf(0x20f)};return _0x4130a7['toString']()['search'](_0xd24cc1[_0x9f2ebf(0x216)])[_0x9f2ebf(0x1f4)]()[_0x9f2ebf(0x1e9)+_0x9f2ebf(0x258)](_0x4130a7)[_0x9f2ebf(0x220)]('(((.+)+)'+_0x9f2ebf(0x20f));});_0x4130a7();import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{bad,failAndExit,ok,printKeyValues,section,warn}from'../ui.js';function _0x2891(){const _0x30832b=['1984288UmQFEK','ATION\x20SA','\x20(google','OPENAI_A','not\x20foun','MHOfP','MxWVy','SNWDE','Expected','le]:\x20','invalid','saayc','Xlyyr','2343012hnczap','YCEsw','GEMINI_A','L=\x22','nALYJ','lUkEL','mxGff','env','LyrMd','KemOm','rtkMB','nsert','+)+$','194DTPViq','ase','provider','wwOYh','lKklR','log','mfkOr','join','7897464EtmjVE','1411764gGiljJ','Global\x20.','cgnGO','628080UpTZLu','.\x20Use\x20go','epiWP','ANTHROPI','search','VED','apply','-5-sonne','2938QPvdsJ','WVxHf','missing/','vYZiP','):\x20','iJLeo','ZbMtM','DIAGNOST','GOOGLE_A','880iogodv','\x20already','rtkOe','aPTFi','LLM_PROV','TQXyL','EQgzu','Local\x20.e','Path','DseiB','IKnaK','exitCode','\x20exists.','AFrxx','ini','OhFLU','(((.+)+)','Setup\x20ca','Lugdn','LyGyB','BCMeJ','DTEvB','HHTwa','PI_KEY=\x22','set','PI_KEY','c)\x20[goog','CANCELED','Model\x20[','ogle,\x20op','enai,\x20or','etpzp','CONFIGUR','5436AhpvkT','Provider','found\x20(o','google','RbnIz','jBuDu','dwoTe','\x20Overwri','C_API_KE','\x20anthrop','tor','WRpsR','env\x20path','xKFVn','.5-flash','claude-3','VzPUx','utf8','ZyvQK','IDER=\x22','gpt-4o-m','Invalid\x20','BuMJz','/openai/','anthropi','tpXgA','missing','API_KEY','RxNKG','Status','construc','zFxhg','openai','vklpK','mIOCe','JxVdn','QhtUi','ic.','toLowerC','XrLaD','ICS','toString','nceled.'];_0x2891=function(){return _0x30832b;};return _0x2891();}function getProviderKeyName(_0x34da0b){const _0x4bafb5=_0x4aae,_0x454666={'LyGyB':function(_0xee2fd0,_0x13dea7){return _0xee2fd0===_0x13dea7;},'umRan':_0x4bafb5(0x251),'wguXv':_0x4bafb5(0x22c)+_0x4bafb5(0x246),'wtPXi':_0x4bafb5(0x1eb),'VTMDM':_0x4bafb5(0x1f9)+_0x4bafb5(0x246),'DTEvB':_0x4bafb5(0x21f)+_0x4bafb5(0x256)+'Y'};if(_0x454666[_0x4bafb5(0x240)](_0x34da0b,_0x454666['umRan']))return _0x454666['wguXv'];if(_0x34da0b===_0x454666['wtPXi'])return _0x454666['VTMDM'];return _0x454666[_0x4bafb5(0x242)];}export async function initConfig(){const _0x4cb34c=_0x4aae,_0x2451fe={'EQgzu':function(_0x61ec45,_0x20273f){return _0x61ec45(_0x20273f);},'VzPUx':function(_0x5484b6){return _0x5484b6();},'xKFVn':function(_0x881e6,_0x4dbe78){return _0x881e6!==_0x4dbe78;},'KemOm':_0x4cb34c(0x1fd),'TQXyL':function(_0x43cfae,_0x265910,_0x1f39d1){return _0x43cfae(_0x265910,_0x1f39d1);},'ZbMtM':_0x4cb34c(0x23e)+_0x4cb34c(0x1f5),'vYZiP':_0x4cb34c(0x24f)+_0x4cb34c(0x1f8)+_0x4cb34c(0x265)+'anthropi'+_0x4cb34c(0x247)+_0x4cb34c(0x1ff),'AFrxx':function(_0x115251,_0x5926aa){return _0x115251||_0x5926aa;},'wwOYh':_0x4cb34c(0x251),'saayc':'openai','IKnaK':_0x4cb34c(0x266)+'c','MHOfP':function(_0x1b82ce,_0x2d21a0){return _0x1b82ce(_0x2d21a0);},'YCEsw':function(_0x4829c5,_0x2c7b25){return _0x4829c5===_0x2c7b25;},'dwoTe':'gemini-2'+_0x4cb34c(0x25c),'lKklR':_0x4cb34c(0x262)+_0x4cb34c(0x23b),'MxWVy':_0x4cb34c(0x25d)+_0x4cb34c(0x223)+'t-latest','SNjhA':function(_0x425548,_0x4c6ac5){return _0x425548(_0x4c6ac5);},'Lugdn':function(_0x1b59c3,_0x4fecbe){return _0x1b59c3===_0x4fecbe;},'aEhDA':function(_0x3aa77d,_0x4dc2a5,_0x246364){return _0x3aa77d(_0x4dc2a5,_0x246364);},'epiWP':_0x4cb34c(0x25f),'Xlyyr':_0x4cb34c(0x24d)+_0x4cb34c(0x1f7)+_0x4cb34c(0x221),'cgnGO':_0x4cb34c(0x1e8),'ZyvQK':_0x4cb34c(0x235)},_0x58f3fa=_0x2451fe[_0x4cb34c(0x25e)](getGlobalEnvPath);if(_0x2451fe[_0x4cb34c(0x233)](existsSync,_0x58f3fa)){const _0x1ff714=await _0x2451fe[_0x4cb34c(0x233)](askConfirmation,_0x58f3fa+(_0x4cb34c(0x22e)+_0x4cb34c(0x239)+_0x4cb34c(0x255)+'te?\x20(y/n'+_0x4cb34c(0x228)));if(!_0x1ff714){if(_0x2451fe[_0x4cb34c(0x25b)](_0x2451fe['KemOm'],_0x2451fe[_0x4cb34c(0x20c)]))_0x2451fe['EQgzu'](_0x16564a,_0x4cb34c(0x263)+_0x4cb34c(0x212)+_0x4cb34c(0x21d)+_0x4cb34c(0x24a)+_0x4cb34c(0x24b)+_0x4cb34c(0x257)+_0x4cb34c(0x1f0));else{console[_0x4cb34c(0x215)](_0x2451fe[_0x4cb34c(0x232)](warn,_0x4cb34c(0x248),_0x2451fe[_0x4cb34c(0x22a)]));return;}}}const _0x1dde82=await askInput(_0x2451fe[_0x4cb34c(0x227)]),_0x149a2e=_0x2451fe[_0x4cb34c(0x23a)](_0x1dde82,_0x2451fe[_0x4cb34c(0x213)])[_0x4cb34c(0x1f1)+_0x4cb34c(0x211)]();_0x2451fe[_0x4cb34c(0x25b)](_0x149a2e,_0x2451fe['wwOYh'])&&_0x2451fe[_0x4cb34c(0x25b)](_0x149a2e,_0x2451fe[_0x4cb34c(0x201)])&&_0x149a2e!==_0x2451fe[_0x4cb34c(0x237)]&&_0x2451fe[_0x4cb34c(0x1fb)](failAndExit,_0x4cb34c(0x263)+_0x4cb34c(0x212)+'.\x20Use\x20go'+_0x4cb34c(0x24a)+_0x4cb34c(0x24b)+_0x4cb34c(0x257)+_0x4cb34c(0x1f0));const _0x29620f=_0x149a2e,_0x14451d=_0x2451fe[_0x4cb34c(0x204)](_0x29620f,_0x2451fe[_0x4cb34c(0x213)])?_0x2451fe[_0x4cb34c(0x254)]:_0x29620f===_0x2451fe[_0x4cb34c(0x201)]?_0x2451fe[_0x4cb34c(0x214)]:_0x2451fe[_0x4cb34c(0x1fc)],_0x227d09=await _0x2451fe[_0x4cb34c(0x233)](askInput,_0x4cb34c(0x249)+_0x14451d+']:\x20')||_0x14451d,_0x417959=getProviderKeyName(_0x29620f),_0x3f49cd=await _0x2451fe['SNjhA'](askInput,_0x417959+':\x20'),_0x28cb33=[_0x4cb34c(0x231)+_0x4cb34c(0x261)+_0x29620f+'\x22','LLM_MODE'+_0x4cb34c(0x206)+_0x227d09+'\x22','',_0x4cb34c(0x22c)+_0x4cb34c(0x244)+(_0x2451fe[_0x4cb34c(0x23f)](_0x29620f,_0x2451fe['wwOYh'])?_0x3f49cd:'')+'\x22',_0x4cb34c(0x205)+'PI_KEY=\x22'+'\x22',_0x4cb34c(0x1f9)+_0x4cb34c(0x244)+(_0x2451fe[_0x4cb34c(0x23f)](_0x29620f,_0x2451fe[_0x4cb34c(0x201)])?_0x3f49cd:'')+'\x22','ANTHROPI'+_0x4cb34c(0x256)+'Y=\x22'+(_0x29620f==='anthropi'+'c'?_0x3f49cd:'')+'\x22',''][_0x4cb34c(0x217)]('\x0a');_0x2451fe['aEhDA'](mkdirSync,_0x2451fe['SNjhA'](dirname,_0x58f3fa),{'recursive':!![]}),writeFileSync(_0x58f3fa,_0x28cb33,_0x2451fe[_0x4cb34c(0x21e)]),section(_0x2451fe[_0x4cb34c(0x202)]),_0x2451fe[_0x4cb34c(0x233)](printKeyValues,[{'key':_0x2451fe[_0x4cb34c(0x21b)],'value':ok('OK')},{'key':_0x2451fe[_0x4cb34c(0x260)],'value':_0x58f3fa}]);}export function doctorConfig(){const _0x541eb7=_0x4aae,_0x4df990={'HHTwa':'.env','jBuDu':function(_0x566165,_0x212963){return _0x566165(_0x212963);},'nALYJ':function(_0x24736e,_0x70ae5c){return _0x24736e===_0x70ae5c;},'BCMeJ':'google','zFxhg':_0x541eb7(0x266)+'c','RxNKG':function(_0x1b0569,_0x35d59f){return _0x1b0569===_0x35d59f;},'WRpsR':function(_0x1e2074,_0x2ac1c5){return _0x1e2074===_0x2ac1c5;},'XrLaD':_0x541eb7(0x1eb),'lUkEL':function(_0x42e90c,_0x5cb220){return _0x42e90c(_0x5cb220);},'aoKUv':_0x541eb7(0x1e6),'WVxHf':function(_0x537dd6,_0x296c00){return _0x537dd6(_0x296c00);},'etpzp':function(_0x5821fd,_0x509eef){return _0x5821fd(_0x509eef);},'JxVdn':_0x541eb7(0x22b)+_0x541eb7(0x1f3),'QhtUi':function(_0x2c9e98,_0x3179cb){return _0x2c9e98(_0x3179cb);},'mxGff':'found','rtkMB':_0x541eb7(0x1e5),'kPolh':_0x541eb7(0x234)+'nv','nsert':function(_0x37bcc3,_0x159f68){return _0x37bcc3(_0x159f68);},'iJLeo':_0x541eb7(0x1fa)+'d','DseiB':function(_0x58edfe,_0x169ecd){return _0x58edfe(_0x169ecd);},'nKSlZ':_0x541eb7(0x231)+'IDER','RbnIz':'LLM_MODE'+'L','BuMJz':'GOOGLE_A'+_0x541eb7(0x246),'vklpK':_0x541eb7(0x245),'liPBY':'OPENAI_A'+_0x541eb7(0x246),'zTvNV':function(_0x4b3a51,_0x51532a){return _0x4b3a51(_0x51532a);},'rtkOe':function(_0x409d3e,_0x469af4){return _0x409d3e||_0x469af4;}},_0x2dc78d=getGlobalEnvPath(),_0x38d196=_0x4df990[_0x541eb7(0x243)],_0x447ae5=existsSync(_0x38d196),_0x285d97=_0x4df990['jBuDu'](existsSync,_0x2dc78d),_0x4bf82d=(process.env.LLM_PROVIDER||'')['toLowerC'+_0x541eb7(0x211)](),_0x4bf783=process.env.LLM_MODEL||'',_0x4f9c91=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x133a9f=process.env.OPENAI_API_KEY||'',_0x4bf630=process.env.ANTHROPIC_API_KEY||'',_0x3f9b94=_0x4df990[_0x541eb7(0x207)](_0x4bf82d,_0x4df990[_0x541eb7(0x241)])||_0x4df990[_0x541eb7(0x207)](_0x4bf82d,_0x541eb7(0x1eb))||_0x4df990[_0x541eb7(0x207)](_0x4bf82d,_0x4df990[_0x541eb7(0x1ea)]),_0xb687ab=_0x4df990[_0x541eb7(0x253)](Boolean,_0x4bf783),_0x539bbc=_0x4df990['RxNKG'](_0x4bf82d,_0x541eb7(0x251))?_0x4f9c91:_0x4df990[_0x541eb7(0x259)](_0x4bf82d,_0x4df990[_0x541eb7(0x1f2)])?_0x133a9f:_0x4df990[_0x541eb7(0x1e7)](_0x4bf82d,_0x4df990[_0x541eb7(0x1ea)])?_0x4bf630:'',_0x4a6e20=_0x3f9b94?_0x4df990[_0x541eb7(0x208)](getProviderKeyName,_0x4bf82d):_0x4df990['aoKUv'],_0x3fb36b=_0x4df990['WVxHf'](Boolean,_0x539bbc);_0x4df990[_0x541eb7(0x24c)](section,_0x4df990[_0x541eb7(0x1ee)]),_0x4df990['QhtUi'](printKeyValues,[{'key':_0x541eb7(0x21a)+_0x541eb7(0x25a),'value':_0x2dc78d},{'key':_0x541eb7(0x21a)+_0x541eb7(0x20a),'value':_0x285d97?ok(_0x4df990[_0x541eb7(0x209)]):_0x4df990[_0x541eb7(0x225)](warn,_0x4df990[_0x541eb7(0x20d)])},{'key':_0x4df990['kPolh'],'value':_0x447ae5?_0x4df990[_0x541eb7(0x24c)](warn,_0x541eb7(0x250)+'verrides'+'\x20global)'):_0x4df990[_0x541eb7(0x20e)](ok,_0x4df990[_0x541eb7(0x229)])}]),console[_0x541eb7(0x215)](),_0x4df990[_0x541eb7(0x236)](printKeyValues,[{'key':_0x4df990['nKSlZ'],'value':_0x3f9b94?_0x4df990[_0x541eb7(0x20e)](ok,'ok'):bad(_0x541eb7(0x226)+_0x541eb7(0x200))},{'key':_0x4df990[_0x541eb7(0x252)],'value':_0xb687ab?ok('ok'):_0x4df990[_0x541eb7(0x208)](bad,_0x4df990['rtkMB'])},{'key':_0x541eb7(0x1fe)+'\x20('+_0x4a6e20+')','value':_0x3fb36b?_0x4df990[_0x541eb7(0x20e)](ok,'ok'):_0x4df990[_0x541eb7(0x236)](bad,_0x4df990['rtkMB'])},{'key':_0x4df990[_0x541eb7(0x264)],'value':_0x4f9c91?_0x4df990[_0x541eb7(0x24c)](ok,_0x4df990[_0x541eb7(0x1ec)]):_0x4df990[_0x541eb7(0x24c)](warn,_0x4df990[_0x541eb7(0x20d)])},{'key':_0x4df990['liPBY'],'value':_0x133a9f?_0x4df990['zTvNV'](ok,_0x4df990[_0x541eb7(0x1ec)]):_0x4df990[_0x541eb7(0x253)](warn,_0x4df990[_0x541eb7(0x20d)])},{'key':_0x541eb7(0x21f)+_0x541eb7(0x256)+'Y','value':_0x4bf630?_0x4df990[_0x541eb7(0x1ef)](ok,_0x4df990[_0x541eb7(0x1ec)]):_0x4df990[_0x541eb7(0x24c)](warn,_0x4df990[_0x541eb7(0x20d)])}]),(_0x4df990[_0x541eb7(0x22f)](!_0x3f9b94,!_0xb687ab)||!_0x3fb36b)&&(process[_0x541eb7(0x238)]=0x1);}
@@ -1 +1 @@
1
- (function(_0x57dfdb,_0x3d7b66){const _0x1d6893=_0x2dbc,_0x83578a=_0x57dfdb();while(!![]){try{const _0x2d51cb=parseInt(_0x1d6893(0x11a))/0x1*(-parseInt(_0x1d6893(0x119))/0x2)+-parseInt(_0x1d6893(0x127))/0x3*(-parseInt(_0x1d6893(0xd5))/0x4)+-parseInt(_0x1d6893(0xde))/0x5*(-parseInt(_0x1d6893(0xcb))/0x6)+-parseInt(_0x1d6893(0xfa))/0x7*(parseInt(_0x1d6893(0xe7))/0x8)+-parseInt(_0x1d6893(0xdf))/0x9+parseInt(_0x1d6893(0x108))/0xa*(-parseInt(_0x1d6893(0xdb))/0xb)+parseInt(_0x1d6893(0xee))/0xc;if(_0x2d51cb===_0x3d7b66)break;else _0x83578a['push'](_0x83578a['shift']());}catch(_0x34315b){_0x83578a['push'](_0x83578a['shift']());}}}(_0x4478,0xd8fea));const _0x3caa21=(function(){const _0x48ff82=_0x2dbc,_0x3a681d={'EoKKW':function(_0x316d9e,_0xea1a05){return _0x316d9e(_0xea1a05);},'LSllj':_0x48ff82(0x111)+_0x48ff82(0xe3)+_0x48ff82(0x121)+_0x48ff82(0xf8)+'y.','WyJMZ':function(_0x452af3,_0x482c9e){return _0x452af3===_0x482c9e;},'tuQXP':_0x48ff82(0xc3),'lDMYT':_0x48ff82(0xf1)};let _0x57bb7c=!![];return function(_0x23571f,_0x106b58){const _0x550dc2=_0x48ff82;if(_0x3a681d[_0x550dc2(0x10f)](_0x3a681d[_0x550dc2(0x114)],_0x3a681d[_0x550dc2(0x118)]))_0x3a681d[_0x550dc2(0xdd)](_0x20ce13,_0x3a681d['LSllj']);else{const _0x47e82f=_0x57bb7c?function(){const _0x4429ca=_0x550dc2;if(_0x106b58){const _0x1c19fc=_0x106b58[_0x4429ca(0xd2)](_0x23571f,arguments);return _0x106b58=null,_0x1c19fc;}}:function(){};return _0x57bb7c=![],_0x47e82f;}};}()),_0x107f49=_0x3caa21(this,function(){const _0x4a90b3=_0x2dbc,_0x51ffa8={'ubhrC':_0x4a90b3(0xf3)+_0x4a90b3(0x102)};return _0x107f49['toString']()[_0x4a90b3(0x115)](_0x51ffa8[_0x4a90b3(0xe6)])[_0x4a90b3(0xeb)]()['construc'+_0x4a90b3(0xce)](_0x107f49)['search'](_0x51ffa8[_0x4a90b3(0xe6)]);});_0x107f49();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';function _0x2dbc(_0x48634a,_0x501dd4){_0x48634a=_0x48634a-0xc0;const _0x5a714d=_0x4478();let _0x107f49=_0x5a714d[_0x48634a];return _0x107f49;}import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x16935c=_0x2dbc,_0x9d6e3f={'xDmrc':function(_0x4ae5b5){return _0x4ae5b5();},'Ggrlg':function(_0x42a74a,_0x352ada){return _0x42a74a(_0x352ada);},'TsIpm':function(_0x49a849,_0x1c05f2){return _0x49a849(_0x1c05f2);}};try{return _0x9d6e3f[_0x16935c(0xf2)](createLLM);}catch(_0x12a81f){const _0x3c0c42=_0x12a81f instanceof Error?_0x12a81f[_0x16935c(0x109)]:_0x9d6e3f[_0x16935c(0xd9)](String,_0x12a81f);_0x9d6e3f[_0x16935c(0xc5)](failAndExit,_0x3c0c42);}}function formatBranchContextForPrompt(){const _0x550ca8=_0x2dbc,_0x23d0cd={'uiZUB':function(_0x4aec82){return _0x4aec82();},'NkKzT':function(_0x33ff3e,_0x5cef51){return _0x33ff3e===_0x5cef51;},'PZebj':function(_0x69b03c,_0x343875){return _0x69b03c(_0x343875);},'IGMes':function(_0x2c0d0b){return _0x2c0d0b();},'YDKqO':_0x550ca8(0x125),'LxAqx':_0x550ca8(0xf5)+_0x550ca8(0xcc),'XUSHF':'(none)'},_0x2466b4=_0x23d0cd['uiZUB'](getBranchContext);_0x23d0cd[_0x550ca8(0xf7)](_0x2466b4[_0x550ca8(0x11c)][_0x550ca8(0xca)],0x0)&&_0x23d0cd[_0x550ca8(0xfc)](failAndExit,_0x550ca8(0xc9)+_0x550ca8(0xc4)+_0x550ca8(0xdc)+_0x550ca8(0x100)+_0x550ca8(0x104)+_0x550ca8(0xe5)+_0x2466b4['baseRef']+'.');const _0x293dc0=_0x2466b4[_0x550ca8(0x11c)][_0x550ca8(0xc8)](_0x21a18d=>{const _0x26ed9a=_0x550ca8,_0xcb9d1d=_0x21a18d[_0x26ed9a(0xed)]?_0x26ed9a(0xff)+'\x20'+_0x21a18d[_0x26ed9a(0xed)]['replace'](/\s+/g,'\x20')[_0x26ed9a(0xc0)]():'';return'-\x20'+_0x21a18d[_0x26ed9a(0xf6)]['slice'](0x0,0x7)+'\x20|\x20'+_0x21a18d['subject']+_0xcb9d1d;});return['Current\x20'+'branch:\x20'+_0x23d0cd[_0x550ca8(0xe4)](getCurrentBranch),_0x550ca8(0x10e)+_0x550ca8(0xfb)+_0x2466b4[_0x550ca8(0x122)],'',_0x23d0cd['YDKqO'],..._0x293dc0,'',_0x23d0cd[_0x550ca8(0xe8)],_0x2466b4[_0x550ca8(0xf0)+_0x550ca8(0xec)]||_0x550ca8(0x112),'','Diff\x20sta'+'t:',_0x2466b4[_0x550ca8(0xe0)]||_0x23d0cd['XUSHF']]['join']('\x0a');}function _0x4478(){const _0x4c7962=['TsIpm','cido\x0a\x0aCo','jFANp','map','No\x20commi','length','13824qjnKDa','files:','o\x20branch','tor','\x0aResuma\x20','ntexto\x20d','cipais\x20m','apply','udancas\x0a','Lwsje','24AobFOA','sta\x20com\x20','ecnico\x20q','AI\x20is\x20su','Ggrlg','RGZmB','1022087nURvjZ','\x20on\x20curr','EoKKW','1530Segqzf','4980636ajvNsm','diffStat','a\x20fora\x20d','o\x20contex','o\x20genera','IGMes','st\x20','ubhrC','37624vqnfuP','LxAqx','UMMARY','rto\x20+\x20li','toString','iles','body','23737680qJILOK','uando\x20po','changedF','eGVCR','xDmrc','(((.+)+)','ras:\x0a-\x20U','Changed\x20','hash','NkKzT','h\x20summar','to\x20forne','392MkjKIN','nch:\x20','PZebj','log','grafo\x20cu','\x20|\x20body:','ent\x20bran','\x20work...','+)+$','\x20feito\x20n','ch\x20again','yMBBN','zpLfF','-\x201\x20para','10SvyLVs','message','se\x20lingu','\x20que\x20foi','ural\x20e\x20o','bullets\x20','Base\x20bra','WyJMZ','agem\x20nat','Failed\x20t','(none)','este\x20bra','tuQXP','search','mpacto\x20t','BRANCH\x20S','lDMYT','2034722WDnoLl','1cAJrTW','g\x20branch','commits','gues\x20do\x20','bjetiva\x0a','em\x20portu','Branch','te\x20branc','baseRef','mmarizin','ssivel\x0a-','Commits:','invoke','66348ididKt','trim','Brasil\x20o','content','LOBPj','ts\x20found'];_0x4478=function(){return _0x4c7962;};return _0x4478();}export async function summarizeBranchLog(){const _0x44d758=_0x2dbc,_0x17b06a={'yMBBN':function(_0x710956){return _0x710956();},'jFANp':function(_0x12bac9){return _0x12bac9();},'DOCDG':_0x44d758(0xd8)+_0x44d758(0x123)+_0x44d758(0x11b)+_0x44d758(0x101),'RGZmB':function(_0x289d18,_0x1cdb60){return _0x289d18(_0x1cdb60);},'ZVIwE':function(_0x1f02dc,_0x48ce12){return _0x1f02dc(_0x48ce12);},'Lwsje':_0x44d758(0x117)+_0x44d758(0xe9),'zpLfF':_0x44d758(0x120)};_0x17b06a[_0x44d758(0x105)](getGitStatus);const _0x307e90=_0x17b06a[_0x44d758(0xc7)](getLLM),_0x14a2c4=formatBranchContextForPrompt(),_0xf05add=(_0x44d758(0xcf)+_0x44d758(0x11f)+_0x44d758(0x11d)+_0x44d758(0xc1)+_0x44d758(0x10b)+_0x44d758(0x103)+_0x44d758(0x113)+'nch.\x0aReg'+_0x44d758(0xf4)+_0x44d758(0x10a)+_0x44d758(0x110)+_0x44d758(0x10c)+_0x44d758(0x11e)+_0x44d758(0x107)+_0x44d758(0xfe)+_0x44d758(0xea)+_0x44d758(0xd6)+_0x44d758(0x10d)+'das\x20prin'+_0x44d758(0xd1)+_0x44d758(0xd3)+'-\x20Cite\x20i'+_0x44d758(0x116)+_0x44d758(0xd7)+_0x44d758(0xef)+_0x44d758(0x124)+'\x20Nao\x20inv'+'ente\x20nad'+_0x44d758(0xe1)+_0x44d758(0xe2)+_0x44d758(0xf9)+_0x44d758(0xc6)+_0x44d758(0xd0)+_0x44d758(0xcd)+':\x0a'+_0x14a2c4+'\x0a')['trim'](),_0x13f2ac=await withProgress(_0x17b06a['DOCDG'],()=>_0x307e90[_0x44d758(0x126)](_0xf05add)),_0x5c7ba8=_0x17b06a[_0x44d758(0xda)](extractMessageText,_0x13f2ac[_0x44d758(0xc2)]);!_0x5c7ba8&&failAndExit(_0x44d758(0x111)+_0x44d758(0xe3)+_0x44d758(0x121)+_0x44d758(0xf8)+'y.'),_0x17b06a['ZVIwE'](section,_0x17b06a[_0x44d758(0xd4)]),_0x17b06a[_0x44d758(0xda)](printKeyValues,[{'key':_0x17b06a[_0x44d758(0x106)],'value':_0x17b06a[_0x44d758(0xc7)](getCurrentBranch)}]),console[_0x44d758(0xfd)](_0x5c7ba8),console[_0x44d758(0xfd)]();}
1
+ function _0x108a(_0x2faafc,_0x3aa760){_0x2faafc=_0x2faafc-0x11b;const _0x55b9cd=_0x2af3();let _0x285124=_0x55b9cd[_0x2faafc];return _0x285124;}(function(_0x19457e,_0x13639d){const _0x457613=_0x108a,_0x54e40d=_0x19457e();while(!![]){try{const _0x5a14ba=-parseInt(_0x457613(0x153))/0x1*(-parseInt(_0x457613(0x198))/0x2)+parseInt(_0x457613(0x142))/0x3+parseInt(_0x457613(0x122))/0x4+-parseInt(_0x457613(0x150))/0x5+-parseInt(_0x457613(0x13d))/0x6+parseInt(_0x457613(0x151))/0x7+parseInt(_0x457613(0x190))/0x8*(-parseInt(_0x457613(0x152))/0x9);if(_0x5a14ba===_0x13639d)break;else _0x54e40d['push'](_0x54e40d['shift']());}catch(_0x32ad9d){_0x54e40d['push'](_0x54e40d['shift']());}}}(_0x2af3,0xed848));const _0x59421a=(function(){const _0x597821=_0x108a,_0x3f3b25={'OgTXm':function(_0x27d7b9){return _0x27d7b9();},'GeLxH':function(_0x15f4ff,_0x1f8309){return _0x15f4ff(_0x1f8309);},'QZztb':function(_0x225596,_0xdb0d89){return _0x225596!==_0xdb0d89;},'VkMrh':_0x597821(0x17d),'BPPVf':_0x597821(0x13f)};let _0x5d3ef0=!![];return function(_0x52fa05,_0x541ecb){const _0x351e2b=_0x597821,_0x2701ff={'mKtOj':function(_0x367511){const _0x309643=_0x108a;return _0x3f3b25[_0x309643(0x12e)](_0x367511);},'kIrcj':function(_0x301af7,_0x263a56){const _0x47ee42=_0x108a;return _0x3f3b25[_0x47ee42(0x145)](_0x301af7,_0x263a56);},'XTpLf':function(_0x183d8d,_0x2bb14e){const _0x4a3477=_0x108a;return _0x3f3b25[_0x4a3477(0x187)](_0x183d8d,_0x2bb14e);},'bEqAV':_0x3f3b25[_0x351e2b(0x18c)],'ylPIb':_0x3f3b25[_0x351e2b(0x141)],'Hbawr':'txlRx'},_0x2e5064=_0x5d3ef0?function(){const _0x248dad=_0x351e2b,_0x301141={'KwMdi':function(_0x611c3d,_0x2cc59e){return _0x611c3d(_0x2cc59e);},'fpVhy':function(_0xc12eb9,_0x483054){return _0xc12eb9(_0x483054);}};if(_0x2701ff[_0x248dad(0x12f)](_0x2701ff[_0x248dad(0x14d)],_0x2701ff['ylPIb'])){if(_0x541ecb){if(_0x2701ff[_0x248dad(0x12f)](_0x2701ff[_0x248dad(0x17b)],_0x2701ff[_0x248dad(0x17b)])){const _0x28e6a5=_0x5dea44 instanceof _0x545a92?_0xb98610[_0x248dad(0x137)]:_0x301141[_0x248dad(0x16e)](_0x1a46e5,_0x15880f);_0x301141[_0x248dad(0x169)](_0x27dfc4,_0x28e6a5);}else{const _0x215208=_0x541ecb[_0x248dad(0x139)](_0x52fa05,arguments);return _0x541ecb=null,_0x215208;}}}else try{return _0x2701ff[_0x248dad(0x15e)](_0x553235);}catch(_0x4f6d0e){const _0x1b4bb7=_0x4f6d0e instanceof _0x4f0ddb?_0x4f6d0e[_0x248dad(0x137)]:_0x2701ff[_0x248dad(0x11c)](_0x39dc6d,_0x4f6d0e);_0x1ba233(_0x1b4bb7);}}:function(){};return _0x5d3ef0=![],_0x2e5064;};}()),_0x285124=_0x59421a(this,function(){const _0x564907=_0x108a,_0x1942d3={'mtkRj':'(((.+)+)'+_0x564907(0x128)};return _0x285124[_0x564907(0x159)]()['search'](_0x1942d3[_0x564907(0x17f)])['toString']()[_0x564907(0x181)+_0x564907(0x138)](_0x285124)[_0x564907(0x177)](_0x1942d3[_0x564907(0x17f)]);});function _0x2af3(){const _0x3907e1=['apply','YPtrn','g\x20branch','KbfpK','5800200flOXrJ','otJYR','wigaQ','trim','BPPVf','20928PifsDK','DiwHU','changedF','GeLxH','h\x20summar','Branch','st\x20','nch:\x20','ntexto\x20d','\x20|\x20','grafo\x20cu','bEqAV','length','tJXbB','1192050FOwjNU','9984884jDAQSl','45BScvOu','1JmTRtj','mtgBo','XiDkX','subject','das\x20prin','uTPwR','toString','te\x20branc','agem\x20nat','slice','-\x20Cite\x20i','mKtOj','hash','baseRef','o\x20genera','\x20feito\x20n','UMMARY','jLJPx','BRANCH\x20S','vjUsR','\x20work...','sfcTo','fpVhy','(none)','Current\x20','\x20on\x20curr','branch:\x20','KwMdi','VneUd','o\x20contex','ts\x20found','AvOld','ent\x20bran','ural\x20e\x20o','AI\x20is\x20su','Failed\x20t','search','nDwMq','cido\x0a\x0aCo','to\x20forne','Hbawr','ras:\x0a-\x20U','aHSCI','ch\x20again','mtkRj','SgClz','construc','map','bjetiva\x0a','uando\x20po','JlQpa','\x20que\x20foi','QZztb','cipais\x20m','Changed\x20','TNOND','join','VkMrh','udancas\x0a','commits','KChfW','3469168HxyqIq','WysmY','\x20Nao\x20inv','lNUcU','invoke','lUnAQ','LriKF','iles','3414290jrrWAn','qBAyn','LcCSV','oMjre','Commits:','kIrcj','log','qLsRy','Diff\x20sta','oNOLy','files:','4822716PJZRoz','o\x20branch','-\x201\x20para','mmarizin','diffStat','Base\x20bra','+)+$','gues\x20do\x20','nch.\x0aReg','No\x20commi','KqzJa','ufUvj','OgTXm','XTpLf','este\x20bra','body','PPFfW','NDFVc','ecnico\x20q','\x20|\x20body:','content','message','tor'];_0x2af3=function(){return _0x3907e1;};return _0x2af3();}_0x285124();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x491bd6=_0x108a,_0xedc807={'DiwHU':function(_0x48e0e7){return _0x48e0e7();},'vwUDp':function(_0x31f140,_0x2e4ffd){return _0x31f140!==_0x2e4ffd;},'TNOND':_0x491bd6(0x16f),'KbfpK':function(_0x39096d,_0x52c961){return _0x39096d!==_0x52c961;},'AfWkM':'gltuF','LcCSV':function(_0x5ae535,_0x17ad16){return _0x5ae535 instanceof _0x17ad16;},'oMjre':function(_0x32fd53,_0x57bc89){return _0x32fd53(_0x57bc89);},'jLJPx':function(_0x51b188,_0x365c58){return _0x51b188(_0x365c58);}};try{if(_0xedc807['vwUDp'](_0xedc807[_0x491bd6(0x18a)],_0xedc807[_0x491bd6(0x18a)])){const _0x3c7c06=_0xfc9076['body']?_0x491bd6(0x135)+'\x20'+_0x5334e9[_0x491bd6(0x131)]['replace'](/\s+/g,'\x20')['trim']():'';return'-\x20'+_0x46e0aa[_0x491bd6(0x15f)][_0x491bd6(0x15c)](0x0,0x7)+_0x491bd6(0x14b)+_0x5daaef['subject']+_0x3c7c06;}else return _0xedc807[_0x491bd6(0x143)](createLLM);}catch(_0x264b8d){if(_0xedc807[_0x491bd6(0x13c)]('KTMRE',_0xedc807['AfWkM'])){const _0x4bcf3c=_0xedc807[_0x491bd6(0x19a)](_0x264b8d,Error)?_0x264b8d[_0x491bd6(0x137)]:_0xedc807[_0x491bd6(0x19b)](String,_0x264b8d);_0xedc807[_0x491bd6(0x164)](failAndExit,_0x4bcf3c);}else return _0xedc807['DiwHU'](_0x33833d);}}function formatBranchContextForPrompt(){const _0x1a7700=_0x108a,_0x39f808={'otJYR':function(_0xf6498a){return _0xf6498a();},'LriKF':_0x1a7700(0x11b),'Dduiu':_0x1a7700(0x189)+_0x1a7700(0x121),'nDwMq':'Diff\x20sta'+'t:','lzCpm':_0x1a7700(0x132),'NDFVc':_0x1a7700(0x193),'qBAyn':function(_0x29b879){return _0x29b879();},'XiDkX':function(_0x21b0b6,_0x4c9f49){return _0x21b0b6===_0x4c9f49;},'KqzJa':function(_0x5ab667,_0x2ae6bf){return _0x5ab667(_0x2ae6bf);},'vjUsR':_0x1a7700(0x16a)},_0x36727a=_0x39f808[_0x1a7700(0x199)](getBranchContext);_0x39f808[_0x1a7700(0x155)](_0x36727a[_0x1a7700(0x18e)][_0x1a7700(0x14e)],0x0)&&_0x39f808[_0x1a7700(0x12c)](failAndExit,_0x1a7700(0x12b)+_0x1a7700(0x171)+_0x1a7700(0x16c)+_0x1a7700(0x173)+_0x1a7700(0x17e)+_0x1a7700(0x148)+_0x36727a[_0x1a7700(0x160)]+'.');const _0x5b1db3=_0x36727a[_0x1a7700(0x18e)][_0x1a7700(0x182)](_0x595ae8=>{const _0x30ba08=_0x1a7700,_0x48e584={'wZRyS':function(_0x6d598d){const _0x1fa458=_0x108a;return _0x39f808[_0x1fa458(0x13e)](_0x6d598d);},'tJXbB':function(_0x1dbd26,_0x333341){return _0x1dbd26===_0x333341;},'WysmY':_0x39f808[_0x30ba08(0x196)],'KChfW':_0x39f808['Dduiu'],'SgClz':_0x30ba08(0x16a),'pYQRG':_0x39f808[_0x30ba08(0x178)]};if(_0x39f808['lzCpm']!==_0x39f808[_0x30ba08(0x133)]){const _0x1a2331=_0x595ae8[_0x30ba08(0x131)]?_0x30ba08(0x135)+'\x20'+_0x595ae8[_0x30ba08(0x131)]['replace'](/\s+/g,'\x20')[_0x30ba08(0x140)]():'';return'-\x20'+_0x595ae8['hash'][_0x30ba08(0x15c)](0x0,0x7)+'\x20|\x20'+_0x595ae8['subject']+_0x1a2331;}else{const _0x1eed00=uvRmDX['wZRyS'](_0x4f67a5);uvRmDX[_0x30ba08(0x14f)](_0x1eed00[_0x30ba08(0x18e)][_0x30ba08(0x14e)],0x0)&&_0x230748(_0x30ba08(0x12b)+'ts\x20found'+_0x30ba08(0x16c)+_0x30ba08(0x173)+_0x30ba08(0x17e)+_0x30ba08(0x148)+_0x1eed00['baseRef']+'.');const _0x51b2dd=_0x1eed00[_0x30ba08(0x18e)][_0x30ba08(0x182)](_0x5a359d=>{const _0x3e9f46=_0x30ba08,_0xdb2202=_0x5a359d['body']?_0x3e9f46(0x135)+'\x20'+_0x5a359d[_0x3e9f46(0x131)]['replace'](/\s+/g,'\x20')['trim']():'';return'-\x20'+_0x5a359d[_0x3e9f46(0x15f)][_0x3e9f46(0x15c)](0x0,0x7)+_0x3e9f46(0x14b)+_0x5a359d[_0x3e9f46(0x156)]+_0xdb2202;});return[_0x30ba08(0x16b)+_0x30ba08(0x16d)+_0x2fd608(),_0x30ba08(0x127)+_0x30ba08(0x149)+_0x1eed00[_0x30ba08(0x160)],'',_0x48e584[_0x30ba08(0x191)],..._0x51b2dd,'',_0x48e584[_0x30ba08(0x18f)],_0x1eed00[_0x30ba08(0x144)+_0x30ba08(0x197)]||_0x48e584['SgClz'],'',_0x48e584['pYQRG'],_0x1eed00[_0x30ba08(0x126)]||_0x48e584[_0x30ba08(0x180)]][_0x30ba08(0x18b)]('\x0a');}});return[_0x1a7700(0x16b)+_0x1a7700(0x16d)+_0x39f808['qBAyn'](getCurrentBranch),_0x1a7700(0x127)+_0x1a7700(0x149)+_0x36727a[_0x1a7700(0x160)],'',_0x39f808[_0x1a7700(0x196)],..._0x5b1db3,'',_0x39f808['Dduiu'],_0x36727a[_0x1a7700(0x144)+_0x1a7700(0x197)]||_0x39f808[_0x1a7700(0x166)],'',_0x1a7700(0x11f)+'t:',_0x36727a[_0x1a7700(0x126)]||_0x39f808['vjUsR']][_0x1a7700(0x18b)]('\x0a');}export async function summarizeBranchLog(){const _0xd79b10=_0x108a,_0x3505c0={'ufUvj':function(_0x550092){return _0x550092();},'YPtrn':function(_0x488ef1,_0x3afd8a,_0x2ff5b0){return _0x488ef1(_0x3afd8a,_0x2ff5b0);},'mtgBo':_0xd79b10(0x175)+_0xd79b10(0x125)+_0xd79b10(0x13b)+_0xd79b10(0x167),'oNOLy':function(_0x33edd7,_0xf01a17){return _0x33edd7(_0xf01a17);},'uTPwR':function(_0x324f1e,_0x1a359f){return _0x324f1e(_0x1a359f);},'JlQpa':_0xd79b10(0x176)+_0xd79b10(0x161)+_0xd79b10(0x15a)+_0xd79b10(0x146)+'y.','AvOld':function(_0x3f6b03,_0x2fdf2b){return _0x3f6b03(_0x2fdf2b);},'dpyrk':_0xd79b10(0x165)+_0xd79b10(0x163),'sfcTo':function(_0x54e33c,_0x12255b){return _0x54e33c(_0x12255b);},'lUnAQ':_0xd79b10(0x147),'qLsRy':function(_0x4e3c10){return _0x4e3c10();}};getGitStatus();const _0x4c0bb3=_0x3505c0[_0xd79b10(0x12d)](getLLM),_0x4ba479=_0x3505c0['ufUvj'](formatBranchContextForPrompt),_0x1c141b=('\x0aResuma\x20'+'em\x20portu'+_0xd79b10(0x129)+'Brasil\x20o'+_0xd79b10(0x186)+_0xd79b10(0x162)+_0xd79b10(0x130)+_0xd79b10(0x12a)+_0xd79b10(0x17c)+'se\x20lingu'+_0xd79b10(0x15b)+_0xd79b10(0x174)+_0xd79b10(0x183)+_0xd79b10(0x124)+_0xd79b10(0x14c)+'rto\x20+\x20li'+'sta\x20com\x20'+'bullets\x20'+_0xd79b10(0x157)+_0xd79b10(0x188)+_0xd79b10(0x18d)+_0xd79b10(0x15d)+'mpacto\x20t'+_0xd79b10(0x134)+_0xd79b10(0x184)+'ssivel\x0a-'+_0xd79b10(0x192)+'ente\x20nad'+'a\x20fora\x20d'+_0xd79b10(0x170)+_0xd79b10(0x17a)+_0xd79b10(0x179)+_0xd79b10(0x14a)+_0xd79b10(0x123)+':\x0a'+_0x4ba479+'\x0a')[_0xd79b10(0x140)](),_0x46cbdc=await _0x3505c0[_0xd79b10(0x13a)](withProgress,_0x3505c0[_0xd79b10(0x154)],()=>_0x4c0bb3[_0xd79b10(0x194)](_0x1c141b)),_0x31b68c=_0x3505c0[_0xd79b10(0x120)](extractMessageText,_0x46cbdc[_0xd79b10(0x136)]);!_0x31b68c&&_0x3505c0[_0xd79b10(0x158)](failAndExit,_0x3505c0[_0xd79b10(0x185)]),_0x3505c0[_0xd79b10(0x172)](section,_0x3505c0['dpyrk']),_0x3505c0[_0xd79b10(0x168)](printKeyValues,[{'key':_0x3505c0[_0xd79b10(0x195)],'value':_0x3505c0[_0xd79b10(0x11e)](getCurrentBranch)}]),console[_0xd79b10(0x11d)](_0x31b68c),console[_0xd79b10(0x11d)]();}
@@ -1 +1 @@
1
- (function(_0xc015f,_0x6e52e8){const _0x44eb1a=_0x39ca,_0x3c5895=_0xc015f();while(!![]){try{const _0x159096=-parseInt(_0x44eb1a(0x159))/0x1*(-parseInt(_0x44eb1a(0x14d))/0x2)+parseInt(_0x44eb1a(0x19c))/0x3+parseInt(_0x44eb1a(0x13d))/0x4*(-parseInt(_0x44eb1a(0x18c))/0x5)+parseInt(_0x44eb1a(0x135))/0x6*(-parseInt(_0x44eb1a(0x12a))/0x7)+parseInt(_0x44eb1a(0x130))/0x8+-parseInt(_0x44eb1a(0x16c))/0x9*(-parseInt(_0x44eb1a(0x192))/0xa)+-parseInt(_0x44eb1a(0x151))/0xb;if(_0x159096===_0x6e52e8)break;else _0x3c5895['push'](_0x3c5895['shift']());}catch(_0x19d0bf){_0x3c5895['push'](_0x3c5895['shift']());}}}(_0x1b4f,0xb4a65));function _0x1b4f(){const _0x4d816f=['sting\x0a\x0aR','changedF','AI\x20respo','tion\x20wit','2401fZoeFg','PR\x20title','ent\x20bran','UOqoB','Failed\x20t','ion:','1337368JOGpFm','reate:\x0a-','apply','PR\x20DESCR','eparing\x20','16782ZRCiBn','max\x2072\x20c','indexOf','commits','trim','title:','a\x20GitHub','te\x20PR\x20co','8EqwJgU','Title','uBxpO','(((.+)+)','own>\x0a\x0aBr','ased\x20on\x20','(none)','PR\x20TITLE','ATIiO','\x20A\x20conci','\x0aYou\x20are','ent\x20for\x20','startsWi','diffStat','log','oCLfE','271888mabMaR','ilgWq',':\x0a<markd','\x20on\x20curr','1628792HgwEUM','split','vGjgC','Diff\x20sta','title','markdown','rOarj','lQchw','5KNMnHF','ude\x20vali','\x20descrip','body','toLowerC','nges,\x20Te','Changed\x20','\x20and\x20des','branch:\x20','descript','ns:\x20Summ','IPTION','ing\x20cont','Current\x20','ase','message','join','+)+$','lFcGK','27981uewYpM','h\x20sectio','ary,\x20Cha','search','KgJwN','baseRef','om\x20AI\x20re','PR\x20sugge','ts\x20found','below,\x20c','gZmko','nch:\x20','invoke','findInde','tle>\x0aDES','Base\x20bra','ion','rmat:\x0aTI','ntent.','sponse.','ocaKv','le/descr','\x20|\x20','CRIPTION','toString','nse\x20did\x20','replace','LhBej','aXvhe','hash','actly\x20in','the\x20bran','309330VgJtzj','TLE:\x20<ti','UFCyX','files:','slice','iToPf','1920Qflfzn','o\x20genera','ZCUff','iles','aDYzN','iption.','find','construc','cription','hars)\x0a-\x20','1581891JMkWVp','not\x20incl','sSeio','ch\x20data\x20','WBeIa','\x20this\x20fo','d\x20PR\x20tit','A\x20clear\x20','Commits:'];_0x1b4f=function(){return _0x4d816f;};return _0x1b4f();}const _0x1045a1=(function(){let _0x44c994=!![];return function(_0x414b1b,_0x5884b7){const _0x1449bb=_0x44c994?function(){const _0x28cd24=_0x39ca;if(_0x5884b7){const _0x2285dd=_0x5884b7[_0x28cd24(0x132)](_0x414b1b,arguments);return _0x5884b7=null,_0x2285dd;}}:function(){};return _0x44c994=![],_0x1449bb;};}()),_0x49378f=_0x1045a1(this,function(){const _0x3a0e73=_0x39ca,_0x20881d={'gZmko':_0x3a0e73(0x140)+_0x3a0e73(0x16a)};return _0x49378f[_0x3a0e73(0x184)]()[_0x3a0e73(0x16f)](_0x3a0e73(0x140)+_0x3a0e73(0x16a))[_0x3a0e73(0x184)]()[_0x3a0e73(0x199)+'tor'](_0x49378f)[_0x3a0e73(0x16f)](_0x20881d[_0x3a0e73(0x176)]);});_0x49378f();import{createLLM,extractMessageText}from'../llm.js';function _0x39ca(_0x3816ae,_0x3391bc){_0x3816ae=_0x3816ae-0x122;const _0x2ae533=_0x1b4f();let _0x49378f=_0x2ae533[_0x3816ae];return _0x49378f;}import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0xaa02fb=_0x39ca,_0x3cc7f3={'rOarj':function(_0x328be4,_0x5e9a8c){return _0x328be4 instanceof _0x5e9a8c;},'WBeIa':function(_0x5d0488,_0x3c3e79){return _0x5d0488(_0x3c3e79);}};try{return createLLM();}catch(_0x17bbd5){const _0x15b98d=_0x3cc7f3[_0xaa02fb(0x157)](_0x17bbd5,Error)?_0x17bbd5[_0xaa02fb(0x168)]:_0x3cc7f3[_0xaa02fb(0x1a0)](String,_0x17bbd5);_0x3cc7f3[_0xaa02fb(0x1a0)](failAndExit,_0x15b98d);}}function formatCommitsForPrompt(){const _0x10e65e=_0x39ca,_0x250ca6={'LhBej':function(_0x54acdc){return _0x54acdc();},'vGjgC':function(_0x354412,_0x1c7476){return _0x354412===_0x1c7476;},'oCLfE':function(_0x408603,_0x579cad){return _0x408603(_0x579cad);},'UFCyX':function(_0x41b011){return _0x41b011();},'ilgWq':_0x10e65e(0x125),'aXvhe':_0x10e65e(0x143),'uBxpO':_0x10e65e(0x154)+'t:'},_0x5dc8d9=_0x250ca6[_0x10e65e(0x187)](getBranchContext);_0x250ca6[_0x10e65e(0x153)](_0x5dc8d9[_0x10e65e(0x138)]['length'],0x0)&&_0x250ca6[_0x10e65e(0x14c)](failAndExit,'No\x20commi'+_0x10e65e(0x174)+_0x10e65e(0x150)+_0x10e65e(0x12c)+'ch\x20again'+'st\x20'+_0x5dc8d9[_0x10e65e(0x171)]+'.');const _0x70b2ac=_0x5dc8d9[_0x10e65e(0x138)]['map'](_0x1c011f=>{const _0x1d373a=_0x10e65e,_0x19f038=_0x1c011f[_0x1d373a(0x15c)]?'\x20|\x20body:'+'\x20'+_0x1c011f['body'][_0x1d373a(0x186)](/\s+/g,'\x20')[_0x1d373a(0x139)]():'';return'-\x20'+_0x1c011f[_0x1d373a(0x189)][_0x1d373a(0x190)](0x0,0x7)+_0x1d373a(0x182)+_0x1c011f['subject']+_0x19f038;});return[_0x10e65e(0x166)+_0x10e65e(0x161)+_0x250ca6[_0x10e65e(0x18e)](getCurrentBranch),_0x10e65e(0x17b)+_0x10e65e(0x177)+_0x5dc8d9['baseRef'],'',_0x250ca6[_0x10e65e(0x14e)],..._0x70b2ac,'',_0x10e65e(0x15f)+_0x10e65e(0x18f),_0x5dc8d9[_0x10e65e(0x127)+_0x10e65e(0x195)]||_0x250ca6[_0x10e65e(0x188)],'',_0x250ca6[_0x10e65e(0x13f)],_0x5dc8d9[_0x10e65e(0x14a)]||_0x10e65e(0x143)][_0x10e65e(0x169)]('\x0a');}function parsePrSuggestion(_0x2df9d9){const _0x597cea=_0x39ca,_0x4886ce={'dxOsd':function(_0x268951,_0x2c0063){return _0x268951<_0x2c0063;},'iToPf':function(_0x620015,_0x41f8e0){return _0x620015(_0x41f8e0);},'ocaKv':_0x597cea(0x12e)+'o\x20parse\x20'+_0x597cea(0x173)+'stion\x20fr'+_0x597cea(0x172)+_0x597cea(0x17f),'lQchw':function(_0x1188fa,_0x4ce04c){return _0x1188fa+_0x4ce04c;},'jMTIV':function(_0xc65fc0,_0x29eec1){return _0xc65fc0(_0x29eec1);},'FNzbL':_0x597cea(0x128)+_0x597cea(0x185)+_0x597cea(0x19d)+_0x597cea(0x15a)+_0x597cea(0x123)+_0x597cea(0x181)+_0x597cea(0x197)},_0x5310fa=_0x2df9d9[_0x597cea(0x152)](/\r?\n/),_0x3fd808=_0x5310fa[_0x597cea(0x198)](_0x1810cc=>_0x1810cc[_0x597cea(0x15d)+_0x597cea(0x167)]()[_0x597cea(0x149)+'th'](_0x597cea(0x13a))),_0x2614de=_0x5310fa[_0x597cea(0x179)+'x'](_0x8d61e0=>_0x8d61e0['toLowerC'+_0x597cea(0x167)]()[_0x597cea(0x149)+'th'](_0x597cea(0x162)+_0x597cea(0x12f)));(!_0x3fd808||_0x4886ce['dxOsd'](_0x2614de,0x0))&&_0x4886ce[_0x597cea(0x191)](failAndExit,_0x4886ce[_0x597cea(0x180)]);const _0x54150e=_0x3fd808[_0x597cea(0x190)](_0x4886ce[_0x597cea(0x158)](_0x3fd808[_0x597cea(0x137)](':'),0x1))[_0x597cea(0x139)](),_0x4de3c4=_0x5310fa[_0x597cea(0x190)](_0x2614de+0x1)[_0x597cea(0x169)]('\x0a')[_0x597cea(0x139)]();return(!_0x54150e||!_0x4de3c4)&&_0x4886ce['jMTIV'](failAndExit,_0x4886ce['FNzbL']),{'title':_0x54150e,'description':_0x4de3c4};}export async function generatePullRequestText(){const _0x28e7d5=_0x39ca,_0x35e758={'KgJwN':function(_0x21d3c4){return _0x21d3c4();},'ZCUff':function(_0xe2e794,_0x54d162,_0x43c357){return _0xe2e794(_0x54d162,_0x43c357);},'ATIiO':'AI\x20is\x20pr'+_0x28e7d5(0x134)+_0x28e7d5(0x12b)+_0x28e7d5(0x160)+_0x28e7d5(0x19a)+'...','UOqoB':function(_0x1b0b40,_0x230f04){return _0x1b0b40(_0x230f04);},'eZwjU':'Failed\x20t'+_0x28e7d5(0x193)+_0x28e7d5(0x13c)+_0x28e7d5(0x17e),'sSeio':function(_0x5c4b3f,_0x46df83){return _0x5c4b3f(_0x46df83);},'aDYzN':_0x28e7d5(0x144),'lFcGK':_0x28e7d5(0x13e),'tzaaG':_0x28e7d5(0x133)+_0x28e7d5(0x164)};_0x35e758[_0x28e7d5(0x170)](getGitStatus);const _0x15c565=_0x35e758[_0x28e7d5(0x170)](getLLM),_0x1c5967=_0x35e758[_0x28e7d5(0x170)](formatCommitsForPrompt),_0x3e2fce=(_0x28e7d5(0x147)+'\x20generat'+_0x28e7d5(0x165)+_0x28e7d5(0x148)+_0x28e7d5(0x13b)+'\x20Pull\x20Re'+'quest.\x0aB'+_0x28e7d5(0x142)+_0x28e7d5(0x18b)+_0x28e7d5(0x19f)+_0x28e7d5(0x175)+_0x28e7d5(0x131)+_0x28e7d5(0x146)+'se\x20PR\x20ti'+'tle\x20in\x20E'+'nglish\x20('+_0x28e7d5(0x136)+_0x28e7d5(0x19b)+_0x28e7d5(0x124)+_0x28e7d5(0x156)+_0x28e7d5(0x15b)+_0x28e7d5(0x129)+_0x28e7d5(0x16d)+_0x28e7d5(0x163)+_0x28e7d5(0x16e)+_0x28e7d5(0x15e)+_0x28e7d5(0x126)+'eturn\x20ex'+_0x28e7d5(0x18a)+_0x28e7d5(0x122)+_0x28e7d5(0x17d)+_0x28e7d5(0x18d)+_0x28e7d5(0x17a)+_0x28e7d5(0x183)+_0x28e7d5(0x14f)+_0x28e7d5(0x141)+'anch\x20dat'+'a:\x0a'+_0x1c5967+'\x0a')[_0x28e7d5(0x139)](),_0x310fb5=await _0x35e758[_0x28e7d5(0x194)](withProgress,_0x35e758[_0x28e7d5(0x145)],()=>_0x15c565[_0x28e7d5(0x178)](_0x3e2fce)),_0x33f544=extractMessageText(_0x310fb5['content']);!_0x33f544&&_0x35e758[_0x28e7d5(0x12d)](failAndExit,_0x35e758['eZwjU']);const _0x5ea342=_0x35e758[_0x28e7d5(0x19e)](parsePrSuggestion,_0x33f544);section(_0x35e758[_0x28e7d5(0x196)]),printKeyValues([{'key':_0x35e758[_0x28e7d5(0x16b)],'value':_0x5ea342[_0x28e7d5(0x155)]}]),_0x35e758[_0x28e7d5(0x19e)](section,_0x35e758['tzaaG']),console[_0x28e7d5(0x14b)](_0x5ea342['descript'+_0x28e7d5(0x17c)]),console[_0x28e7d5(0x14b)]();}
1
+ (function(_0x5f5598,_0x4e00e7){const _0x2ce34c=_0xddf9,_0x58b7a7=_0x5f5598();while(!![]){try{const _0x5a33df=parseInt(_0x2ce34c(0x11d))/0x1+-parseInt(_0x2ce34c(0x123))/0x2+-parseInt(_0x2ce34c(0xe9))/0x3+parseInt(_0x2ce34c(0x116))/0x4+-parseInt(_0x2ce34c(0xef))/0x5+parseInt(_0x2ce34c(0x12a))/0x6+-parseInt(_0x2ce34c(0xd7))/0x7*(-parseInt(_0x2ce34c(0xbf))/0x8);if(_0x5a33df===_0x4e00e7)break;else _0x58b7a7['push'](_0x58b7a7['shift']());}catch(_0x264133){_0x58b7a7['push'](_0x58b7a7['shift']());}}}(_0x5736,0x7ef2a));const _0x5074ce=(function(){const _0x371304=_0xddf9,_0x21d2ca={'ZJkwS':function(_0xbb1bb8,_0x118255){return _0xbb1bb8(_0x118255);},'DINPw':'AI\x20respo'+_0x371304(0x10e)+_0x371304(0xf9)+'ude\x20vali'+_0x371304(0xd1)+_0x371304(0xb8)+_0x371304(0xb3),'byuhX':function(_0xdc6f75,_0x1534d8){return _0xdc6f75===_0x1534d8;},'AmtUF':_0x371304(0xe1),'ozCCt':_0x371304(0xfd),'GPCbQ':function(_0x16f233,_0x595895){return _0x16f233===_0x595895;},'fItEf':_0x371304(0x109),'jDzmy':function(_0x1c243b,_0x568f98){return _0x1c243b(_0x568f98);}};let _0x2f1f67=!![];return function(_0x9b7b9d,_0x224296){const _0x5b8dfc={'Mjcba':function(_0x26402c,_0x2783f2){return _0x21d2ca['jDzmy'](_0x26402c,_0x2783f2);}},_0x4cc12f=_0x2f1f67?function(){const _0x245e4a=_0xddf9,_0x4e0ebe={'vBLkI':function(_0x1aa7d1,_0x139c09){const _0x15c043=_0xddf9;return _0x21d2ca[_0x15c043(0xe8)](_0x1aa7d1,_0x139c09);},'pzHav':_0x21d2ca['DINPw']};if(_0x21d2ca[_0x245e4a(0x11b)](_0x21d2ca[_0x245e4a(0xb4)],_0x21d2ca['ozCCt']))_0x5b8dfc[_0x245e4a(0xdf)](_0x27288b,_0x245e4a(0x117)+'ts\x20found'+_0x245e4a(0x10d)+_0x245e4a(0xf1)+_0x245e4a(0x120)+_0x245e4a(0x118)+_0x57d8c3[_0x245e4a(0xf5)]+'.');else{if(_0x224296){if(_0x21d2ca[_0x245e4a(0x112)](_0x21d2ca[_0x245e4a(0xea)],_0x21d2ca['fItEf'])){const _0x565280=_0x224296[_0x245e4a(0xad)](_0x9b7b9d,arguments);return _0x224296=null,_0x565280;}else _0x4e0ebe[_0x245e4a(0x11e)](_0x14cdc6,_0x4e0ebe[_0x245e4a(0xc8)]);}}}:function(){};return _0x2f1f67=![],_0x4cc12f;};}()),_0x1219d6=_0x5074ce(this,function(){const _0x4c87ce=_0xddf9,_0x29c382={'nmvRN':_0x4c87ce(0xca)+'+)+$'};return _0x1219d6[_0x4c87ce(0xf3)]()[_0x4c87ce(0xc6)](_0x29c382[_0x4c87ce(0x111)])[_0x4c87ce(0xf3)]()[_0x4c87ce(0x103)+_0x4c87ce(0xc9)](_0x1219d6)[_0x4c87ce(0xc6)](_0x29c382[_0x4c87ce(0x111)]);});_0x1219d6();function _0x5736(){const _0x1d7b2d=['iles','PR\x20DESCR','ZJkwS','783213tffxcz','fItEf','Base\x20bra','KsyKU','(none)','\x20generat','5157660BtCSzc','nglish\x20(','ent\x20bran','reate:\x0a-','toString','hash','baseRef','cTmLf','h\x20sectio','changedF','not\x20incl','THzFF','descript','markdown','CYleX','hars)\x0a-\x20','yHIEb','se\x20PR\x20ti','ion:','branch:\x20','construc','zPuak','PR\x20sugge','\x20|\x20','AI\x20respo','eparing\x20','TxopZ','Title','files:','tle\x20in\x20E','\x20on\x20curr','nse\x20did\x20','a:\x0a','actly\x20in','nmvRN','GPCbQ','sponse.','CAUOj','ased\x20on\x20','3681272IBtJYu','No\x20commi','st\x20','AI\x20is\x20pr','own>\x0a\x0aBr','byuhX','split','197036lAwLMw','vBLkI','startsWi','ch\x20again','invoke','trim','432324RQLOjj','CRIPTION','IPTION','body','log','ch\x20data\x20','Hkdes','4665498WCtIPL','Commits:','Current\x20','apply','VdAhJ','aICoh','ts\x20found','\x0aYou\x20are','TLE:\x20<ti','iption.','AmtUF','toLowerC','Diff\x20sta','below,\x20c','le/descr','Changed\x20','\x20this\x20fo','LujEU','indexOf','o\x20parse\x20','\x20and\x20des','356816seebFO','o\x20genera','slice','ary,\x20Cha','a\x20GitHub','replace','subject','search','find','pzHav','tor','(((.+)+)','nges,\x20Te','ns:\x20Summ','Failed\x20t','cription','ase','eturn\x20ex','d\x20PR\x20tit','nch:\x20','ntent.','map','quest.\x0aB','DTYKm','21tuONks','ing\x20cont','vaZOr','JIdJf','sting\x0a\x0aR','MrcIw','te\x20PR\x20co','title','Mjcba','tHSHt','Qcatf','message','iujZb','FrMMF','join'];_0x5736=function(){return _0x1d7b2d;};return _0x5736();}import{createLLM,extractMessageText}from'../llm.js';function _0xddf9(_0x5b8efa,_0x1768d1){_0x5b8efa=_0x5b8efa-0xab;const _0x124ab3=_0x5736();let _0x1219d6=_0x124ab3[_0x5b8efa];return _0x1219d6;}import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x2401fd=_0xddf9,_0x194fd5={'aTYvw':function(_0x5b35b7){return _0x5b35b7();},'vaZOr':function(_0x1f7a99,_0x1793f4){return _0x1f7a99 instanceof _0x1793f4;},'Hkdes':function(_0x4918b2,_0xcbc8a2){return _0x4918b2(_0xcbc8a2);}};try{return _0x194fd5['aTYvw'](createLLM);}catch(_0x4e6ece){const _0x2f12d4=_0x194fd5[_0x2401fd(0xd9)](_0x4e6ece,Error)?_0x4e6ece[_0x2401fd(0xe2)]:String(_0x4e6ece);_0x194fd5[_0x2401fd(0x129)](failAndExit,_0x2f12d4);}}function formatCommitsForPrompt(){const _0x5f0075=_0xddf9,_0x19f8d3={'tHSHt':function(_0x20bb46){return _0x20bb46();},'hwJby':function(_0x46dc47,_0x10fca3){return _0x46dc47(_0x10fca3);},'MrcIw':function(_0x4eda09){return _0x4eda09();},'KsyKU':_0x5f0075(0xed),'cTmLf':_0x5f0075(0xb6)+'t:'},_0x3c2bd9=_0x19f8d3[_0x5f0075(0xe0)](getBranchContext);_0x3c2bd9['commits']['length']===0x0&&_0x19f8d3['hwJby'](failAndExit,_0x5f0075(0x117)+_0x5f0075(0xb0)+_0x5f0075(0x10d)+_0x5f0075(0xf1)+_0x5f0075(0x120)+_0x5f0075(0x118)+_0x3c2bd9[_0x5f0075(0xf5)]+'.');const _0x53568a=_0x3c2bd9['commits'][_0x5f0075(0xd4)](_0x21e5cb=>{const _0x19df75=_0x5f0075,_0x569ff3=_0x21e5cb[_0x19df75(0x126)]?'\x20|\x20body:'+'\x20'+_0x21e5cb['body'][_0x19df75(0xc4)](/\s+/g,'\x20')[_0x19df75(0x122)]():'';return'-\x20'+_0x21e5cb[_0x19df75(0xf4)][_0x19df75(0xc1)](0x0,0x7)+_0x19df75(0x106)+_0x21e5cb[_0x19df75(0xc5)]+_0x569ff3;});return[_0x5f0075(0xac)+_0x5f0075(0x102)+_0x19f8d3[_0x5f0075(0xdc)](getCurrentBranch),_0x5f0075(0xeb)+_0x5f0075(0xd2)+_0x3c2bd9[_0x5f0075(0xf5)],'',_0x5f0075(0xab),..._0x53568a,'',_0x5f0075(0xb9)+_0x5f0075(0x10b),_0x3c2bd9[_0x5f0075(0xf8)+_0x5f0075(0xe6)]||_0x19f8d3['KsyKU'],'',_0x19f8d3[_0x5f0075(0xf6)],_0x3c2bd9['diffStat']||_0x19f8d3[_0x5f0075(0xec)]][_0x5f0075(0xe5)]('\x0a');}function parsePrSuggestion(_0x47240e){const _0x25e72e=_0xddf9,_0x54281c={'onBFe':function(_0x1ff16d,_0x48eafb){return _0x1ff16d<_0x48eafb;},'VdAhJ':_0x25e72e(0xcd)+_0x25e72e(0xbd)+_0x25e72e(0x105)+'stion\x20fr'+'om\x20AI\x20re'+_0x25e72e(0x113),'ylvgW':function(_0x5becb5,_0x4aa58b){return _0x5becb5+_0x4aa58b;},'THzFF':function(_0x1c3db6,_0x1e66ad){return _0x1c3db6+_0x1e66ad;},'JIdJf':function(_0x565899,_0xfdbd08){return _0x565899(_0xfdbd08);},'FrMMF':_0x25e72e(0x107)+_0x25e72e(0x10e)+_0x25e72e(0xf9)+'ude\x20vali'+'d\x20PR\x20tit'+'le/descr'+_0x25e72e(0xb3)},_0x42d713=_0x47240e[_0x25e72e(0x11c)](/\r?\n/),_0x5b0352=_0x42d713[_0x25e72e(0xc7)](_0x48a62e=>_0x48a62e[_0x25e72e(0xb5)+_0x25e72e(0xcf)]()['startsWi'+'th']('title:')),_0x3e0094=_0x42d713['findInde'+'x'](_0x54499f=>_0x54499f[_0x25e72e(0xb5)+'ase']()[_0x25e72e(0x11f)+'th']('descript'+_0x25e72e(0x101)));(!_0x5b0352||_0x54281c['onBFe'](_0x3e0094,0x0))&&failAndExit(_0x54281c[_0x25e72e(0xae)]);const _0x15055c=_0x5b0352[_0x25e72e(0xc1)](_0x54281c['ylvgW'](_0x5b0352[_0x25e72e(0xbc)](':'),0x1))[_0x25e72e(0x122)](),_0xab81e5=_0x42d713[_0x25e72e(0xc1)](_0x54281c[_0x25e72e(0xfa)](_0x3e0094,0x1))[_0x25e72e(0xe5)]('\x0a')[_0x25e72e(0x122)]();return(!_0x15055c||!_0xab81e5)&&_0x54281c[_0x25e72e(0xda)](failAndExit,_0x54281c[_0x25e72e(0xe4)]),{'title':_0x15055c,'description':_0xab81e5};}export async function generatePullRequestText(){const _0x2733c8=_0xddf9,_0x1d60ec={'aICoh':function(_0x236296){return _0x236296();},'CAUOj':function(_0x1a04d7){return _0x1a04d7();},'rJvMi':_0x2733c8(0x119)+_0x2733c8(0x108)+'PR\x20title'+_0x2733c8(0xbe)+_0x2733c8(0xce)+'...','LujEU':function(_0x1c8855,_0xb55fd9){return _0x1c8855(_0xb55fd9);},'zPuak':'Failed\x20t'+_0x2733c8(0xc0)+_0x2733c8(0xdd)+_0x2733c8(0xd3),'iujZb':function(_0x2432ad,_0x3858a7){return _0x2432ad(_0x3858a7);},'DTYKm':_0x2733c8(0x10a),'yHIEb':_0x2733c8(0xe7)+_0x2733c8(0x125)};_0x1d60ec['aICoh'](getGitStatus);const _0x5d1418=_0x1d60ec[_0x2733c8(0x114)](getLLM),_0x209197=_0x1d60ec[_0x2733c8(0xaf)](formatCommitsForPrompt),_0x19c6c8=(_0x2733c8(0xb1)+_0x2733c8(0xee)+_0x2733c8(0xd8)+'ent\x20for\x20'+_0x2733c8(0xc3)+'\x20Pull\x20Re'+_0x2733c8(0xd5)+_0x2733c8(0x115)+'the\x20bran'+_0x2733c8(0x128)+_0x2733c8(0xb7)+_0x2733c8(0xf2)+'\x20A\x20conci'+_0x2733c8(0x100)+_0x2733c8(0x10c)+_0x2733c8(0xf0)+'max\x2072\x20c'+_0x2733c8(0xfe)+'A\x20clear\x20'+_0x2733c8(0xfc)+'\x20descrip'+'tion\x20wit'+_0x2733c8(0xf7)+_0x2733c8(0xcc)+_0x2733c8(0xc2)+_0x2733c8(0xcb)+_0x2733c8(0xdb)+_0x2733c8(0xd0)+_0x2733c8(0x110)+_0x2733c8(0xba)+'rmat:\x0aTI'+_0x2733c8(0xb2)+'tle>\x0aDES'+_0x2733c8(0x124)+':\x0a<markd'+_0x2733c8(0x11a)+'anch\x20dat'+_0x2733c8(0x10f)+_0x209197+'\x0a')[_0x2733c8(0x122)](),_0x30d95c=await withProgress(_0x1d60ec['rJvMi'],()=>_0x5d1418[_0x2733c8(0x121)](_0x19c6c8)),_0x2bd445=_0x1d60ec['LujEU'](extractMessageText,_0x30d95c['content']);!_0x2bd445&&_0x1d60ec[_0x2733c8(0xbb)](failAndExit,_0x1d60ec[_0x2733c8(0x104)]);const _0x1486a4=parsePrSuggestion(_0x2bd445);_0x1d60ec[_0x2733c8(0xe3)](section,'PR\x20TITLE'),_0x1d60ec[_0x2733c8(0xe3)](printKeyValues,[{'key':_0x1d60ec[_0x2733c8(0xd6)],'value':_0x1486a4[_0x2733c8(0xde)]}]),section(_0x1d60ec[_0x2733c8(0xff)]),console[_0x2733c8(0x127)](_0x1486a4[_0x2733c8(0xfb)+'ion']),console[_0x2733c8(0x127)]();}
@@ -1 +1 @@
1
- (function(_0x591e52,_0x5ea45f){const _0x4ebb1f=_0x2864,_0x17223=_0x591e52();while(!![]){try{const _0x249f90=-parseInt(_0x4ebb1f(0x159))/0x1*(-parseInt(_0x4ebb1f(0x18e))/0x2)+parseInt(_0x4ebb1f(0x170))/0x3*(parseInt(_0x4ebb1f(0x182))/0x4)+parseInt(_0x4ebb1f(0x16d))/0x5+parseInt(_0x4ebb1f(0x15f))/0x6*(-parseInt(_0x4ebb1f(0x171))/0x7)+parseInt(_0x4ebb1f(0x15e))/0x8*(parseInt(_0x4ebb1f(0x174))/0x9)+parseInt(_0x4ebb1f(0x154))/0xa+parseInt(_0x4ebb1f(0x186))/0xb*(parseInt(_0x4ebb1f(0x18c))/0xc);if(_0x249f90===_0x5ea45f)break;else _0x17223['push'](_0x17223['shift']());}catch(_0x5bed23){_0x17223['push'](_0x17223['shift']());}}}(_0x496f,0x7caa9));const _0x2657ce=(function(){let _0x294cd9=!![];return function(_0x4efc99,_0x1c0095){const _0x32d4fb=_0x294cd9?function(){const _0x217b53=_0x2864;if(_0x1c0095){const _0x107765=_0x1c0095[_0x217b53(0x15a)](_0x4efc99,arguments);return _0x1c0095=null,_0x107765;}}:function(){};return _0x294cd9=![],_0x32d4fb;};}()),_0x4000d3=_0x2657ce(this,function(){const _0x2aaa35=_0x2864,_0x2b25e4={'QRuOy':_0x2aaa35(0x183)+_0x2aaa35(0x16e)};return _0x4000d3[_0x2aaa35(0x180)]()['search'](_0x2aaa35(0x183)+'+)+$')['toString']()['construc'+_0x2aaa35(0x18b)](_0x4000d3)['search'](_0x2b25e4[_0x2aaa35(0x164)]);});_0x4000d3();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x1e7a0c}from'dotenv';function getBaseConfigDir(){const _0x174821=_0x2864,_0x5c0aaf={'UcXKI':function(_0x4a631d,_0x589ec2){return _0x4a631d(_0x589ec2);},'GfpyT':function(_0x4533b6,_0xbc76c3,_0x2b5dd3){return _0x4533b6(_0xbc76c3,_0x2b5dd3);},'nCQfc':function(_0x4c4844,_0x1bb779){return _0x4c4844===_0x1bb779;},'SSeHk':_0x174821(0x162),'DReoR':_0x174821(0x185),'uTNhA':function(_0x3dacdd,_0x3e83fd,_0x2a0e08){return _0x3dacdd(_0x3e83fd,_0x2a0e08);},'fdRAb':function(_0xa40ab3){return _0xa40ab3();},'vZUlb':_0x174821(0x177),'lUjjl':function(_0x40d3b2,_0x17a0a0){return _0x40d3b2!==_0x17a0a0;},'ljgTT':'KavDF','CEBks':'jnuhN','JRPzk':function(_0x12e20a){return _0x12e20a();},'gNqqb':_0x174821(0x153),'tbSaE':'Applicat'+'ion\x20Supp'+_0x174821(0x17e),'ZrEcH':function(_0x38b7a7){return _0x38b7a7();}};if(_0x5c0aaf[_0x174821(0x155)](process[_0x174821(0x172)],_0x5c0aaf['SSeHk'])){if(_0x5c0aaf['nCQfc'](_0x5c0aaf[_0x174821(0x169)],_0x5c0aaf[_0x174821(0x169)]))return process.env.APPDATA||_0x5c0aaf[_0x174821(0x15b)](join,_0x5c0aaf[_0x174821(0x188)](homedir),_0x5c0aaf['vZUlb']);else return;}if(process[_0x174821(0x172)]===_0x174821(0x16b)){if(_0x5c0aaf[_0x174821(0x168)](_0x5c0aaf[_0x174821(0x165)],_0x5c0aaf[_0x174821(0x18d)]))return join(_0x5c0aaf[_0x174821(0x187)](homedir),_0x5c0aaf[_0x174821(0x167)],_0x5c0aaf[_0x174821(0x161)]);else{if(!_0x4ebafe(_0x38dae9))return;const _0x2ebcc2=_0x5c0aaf[_0x174821(0x18a)](_0x5d1eda,_0x5c0aaf[_0x174821(0x17b)](_0x5ecec5,_0x50fe89,_0x174821(0x156)));for(const [_0x10eaa6,_0x111723]of _0x17423b[_0x174821(0x184)](_0x2ebcc2)){(_0x542537||_0x5c0aaf[_0x174821(0x155)](_0x34e86c.env[_0x10eaa6],_0x1e7cc8))&&(_0x5714dc.env[_0x10eaa6]=_0x111723);}}}return process.env.XDG_CONFIG_HOME||join(_0x5c0aaf[_0x174821(0x189)](homedir),_0x174821(0x178));}function _0x2864(_0x21229a,_0x5a02d3){_0x21229a=_0x21229a-0x152;const _0x10c11b=_0x496f();let _0x4000d3=_0x10c11b[_0x21229a];return _0x4000d3;}function _0x496f(){const _0x569964=['JRPzk','fdRAb','ZrEcH','UcXKI','tor','1308OWaaSc','CEBks','533506lHxDxr','cerwY','Library','1821190zWTOZr','nCQfc','utf8','YwPyN','DfGXC','1hPcQKJ','apply','uTNhA','kQkPj','YnDFe','16nONHIV','12SBpGcB','Oyyio','tbSaE','win32','ETTsF','QRuOy','ljgTT','zNUVE','gNqqb','lUjjl','DReoR','JFjVf','darwin','hOgBm','58750nkcmJT','+)+$','dQaNJ','996024mVwfMj','3238809EfAcuA','platform','CHeqI','965079uEyYfS','FZdqj','DYRqv','.gemit','.config','.env','Pestx','GfpyT','fRmdd','wdnES','ort','gemit','toString','dAUjv','4eyMKAF','(((.+)+)','entries','IJkRK','43285BoHXMM'];_0x496f=function(){return _0x569964;};return _0x496f();}export function getGlobalEnvPath(){const _0x16eb8e=_0x2864,_0x246325={'YnDFe':'win32','Pestx':function(_0x5aaf45,_0x31e793,_0x3fbe82,_0x153d0f){return _0x5aaf45(_0x31e793,_0x3fbe82,_0x153d0f);},'wdnES':function(_0xdc7095,_0x3bd028,_0x533ea1,_0x3d6f74){return _0xdc7095(_0x3bd028,_0x533ea1,_0x3d6f74);}};if(process[_0x16eb8e(0x172)]===_0x246325[_0x16eb8e(0x15d)]&&process.env.APPDATA)return _0x246325[_0x16eb8e(0x17a)](join,process.env.APPDATA,_0x16eb8e(0x17f),_0x16eb8e(0x179));return _0x246325[_0x16eb8e(0x17d)](join,getBaseConfigDir(),_0x16eb8e(0x17f),_0x16eb8e(0x179));}export function loadConfig(){const _0x52988e=_0x2864,_0x4e8bc8={'cerwY':'win32','hOgBm':function(_0x3109c9,_0x385cae,_0x1bce04,_0x1658d3){return _0x3109c9(_0x385cae,_0x1bce04,_0x1658d3);},'dQaNJ':_0x52988e(0x17f),'Oyyio':'.env','zNUVE':function(_0x1b3a8c){return _0x1b3a8c();},'DfGXC':function(_0x14f4b1,_0x2369ee,_0x10e3d5){return _0x14f4b1(_0x2369ee,_0x10e3d5);},'fRmdd':function(_0x4538bc,_0x505fb0){return _0x4538bc(_0x505fb0);},'kQkPj':function(_0x1784a2,_0x4dca1f){return _0x1784a2===_0x4dca1f;},'ETTsF':'egwND'},_0x10cd84=_0x4e8bc8[_0x52988e(0x166)](getGlobalEnvPath);_0x4e8bc8[_0x52988e(0x158)](loadEnvFile,_0x10cd84,![]);if(_0x4e8bc8[_0x52988e(0x17c)](existsSync,_0x52988e(0x179))){if(_0x4e8bc8[_0x52988e(0x15c)](_0x52988e(0x176),_0x4e8bc8[_0x52988e(0x163)])){if(_0x5dabdc[_0x52988e(0x172)]===yftiQG[_0x52988e(0x152)]&&_0xff1279.env.APPDATA)return yftiQG[_0x52988e(0x16c)](_0x589336,_0x2073a9.env.APPDATA,yftiQG[_0x52988e(0x16f)],yftiQG[_0x52988e(0x160)]);return yftiQG[_0x52988e(0x16c)](_0x7f1aca,yftiQG[_0x52988e(0x166)](_0x33a2e5),yftiQG[_0x52988e(0x16f)],_0x52988e(0x179));}else _0x4e8bc8[_0x52988e(0x158)](loadEnvFile,_0x4e8bc8[_0x52988e(0x160)],!![]);}}function loadEnvFile(_0x599bdc,_0x219707){const _0x55a6be=_0x2864,_0x5f22e2={'YwPyN':_0x55a6be(0x179),'XMmLV':function(_0x33bd62,_0x25d86b){return _0x33bd62(_0x25d86b);},'dAUjv':function(_0x3d57c7,_0x3c786e,_0x1280cb){return _0x3d57c7(_0x3c786e,_0x1280cb);},'CHeqI':function(_0x1b343f,_0x359c42){return _0x1b343f===_0x359c42;},'FZdqj':_0x55a6be(0x16a)};if(!existsSync(_0x599bdc))return;const _0x7f1d0d=_0x5f22e2['XMmLV'](_0x1e7a0c,_0x5f22e2[_0x55a6be(0x181)](readFileSync,_0x599bdc,_0x55a6be(0x156)));for(const [_0x5adcd9,_0xf0c59a]of Object['entries'](_0x7f1d0d)){if(_0x219707||process.env[_0x5adcd9]===undefined){if(_0x5f22e2[_0x55a6be(0x173)](_0x5f22e2[_0x55a6be(0x175)],_0x5f22e2[_0x55a6be(0x175)]))process.env[_0x5adcd9]=_0xf0c59a;else return _0x2858db(_0x5f4ca2.env.APPDATA,_0x55a6be(0x17f),RWfnNw[_0x55a6be(0x157)]);}}}
1
+ (function(_0x42d802,_0x4c7232){const _0x2f7336=_0x33a8,_0x22e231=_0x42d802();while(!![]){try{const _0x4e0b0e=parseInt(_0x2f7336(0x1d0))/0x1+parseInt(_0x2f7336(0x1d5))/0x2+parseInt(_0x2f7336(0x1f0))/0x3*(-parseInt(_0x2f7336(0x1e1))/0x4)+-parseInt(_0x2f7336(0x1e7))/0x5*(-parseInt(_0x2f7336(0x1d6))/0x6)+parseInt(_0x2f7336(0x1e9))/0x7*(parseInt(_0x2f7336(0x1dc))/0x8)+parseInt(_0x2f7336(0x1dd))/0x9+-parseInt(_0x2f7336(0x1f1))/0xa*(parseInt(_0x2f7336(0x1ca))/0xb);if(_0x4e0b0e===_0x4c7232)break;else _0x22e231['push'](_0x22e231['shift']());}catch(_0x940c56){_0x22e231['push'](_0x22e231['shift']());}}}(_0x4272,0xe1c6e));function _0x4272(){const _0x3c7862=['vznCt','construc','4DafNaQ','ion\x20Supp','oyiMa','win32','YeaKl','entries','3754645bfxAge','Library','80829IbLaqc','ort','toString','NSZYU','TijsN','loYAT','fCIKA','3514083xWNDCO','46970RIKxqe','LMVAk','Cjkrw','platform','utf8','.config','eVnvB','search','5654eIwcYR','OHaFQ','.env','AFIiE','XUUiv','ecfqM','1439163ctvsUG','kRsJN','(((.+)+)','darwin','ednMT','2305880pgZzhO','6uGNRwR','gemit','apply','XxECI','oSnPb','tor','552XQvEQP','3335634FHERlb','mtvKM'];_0x4272=function(){return _0x3c7862;};return _0x4272();}const _0xf95c93=(function(){let _0x569894=!![];return function(_0x321331,_0x3f5a97){const _0x26fcdd=_0x569894?function(){const _0x317b3d=_0x33a8;if(_0x3f5a97){const _0x34b359=_0x3f5a97[_0x317b3d(0x1d8)](_0x321331,arguments);return _0x3f5a97=null,_0x34b359;}}:function(){};return _0x569894=![],_0x26fcdd;};}()),_0x416c49=_0xf95c93(this,function(){const _0x1d4ebd=_0x33a8,_0x2acf7e={'AFIiE':_0x1d4ebd(0x1d2)+'+)+$'};return _0x416c49[_0x1d4ebd(0x1eb)]()[_0x1d4ebd(0x1c9)](_0x2acf7e['AFIiE'])[_0x1d4ebd(0x1eb)]()[_0x1d4ebd(0x1e0)+_0x1d4ebd(0x1db)](_0x416c49)[_0x1d4ebd(0x1c9)](_0x2acf7e[_0x1d4ebd(0x1cd)]);});_0x416c49();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x1c99e4}from'dotenv';function getBaseConfigDir(){const _0x4b4ad3=_0x33a8,_0x2168bf={'Ternv':function(_0x347de2,_0x463ff3){return _0x347de2===_0x463ff3;},'vznCt':_0x4b4ad3(0x1e4),'loYAT':function(_0x45105b,_0x20fe8b,_0x5539ea){return _0x45105b(_0x20fe8b,_0x5539ea);},'LMVAk':function(_0x25af47){return _0x25af47();},'dYdxD':'.gemit','oSnPb':function(_0x2e90a1,_0x32fed6){return _0x2e90a1!==_0x32fed6;},'fCIKA':_0x4b4ad3(0x1d4),'ecfqM':function(_0x98ff8b,_0x3c0e83,_0x1ea4a3,_0x246c85){return _0x98ff8b(_0x3c0e83,_0x1ea4a3,_0x246c85);},'wooaS':function(_0x5a3827){return _0x5a3827();},'gMCpE':_0x4b4ad3(0x1c7)};if(_0x2168bf['Ternv'](process[_0x4b4ad3(0x1f4)],_0x2168bf[_0x4b4ad3(0x1df)]))return process.env.APPDATA||_0x2168bf[_0x4b4ad3(0x1ee)](join,_0x2168bf[_0x4b4ad3(0x1f2)](homedir),_0x2168bf['dYdxD']);if(process[_0x4b4ad3(0x1f4)]===_0x4b4ad3(0x1d3)){if(_0x2168bf[_0x4b4ad3(0x1da)](_0x2168bf['fCIKA'],_0x2168bf[_0x4b4ad3(0x1ef)]))return;else return _0x2168bf[_0x4b4ad3(0x1cf)](join,_0x2168bf['wooaS'](homedir),_0x4b4ad3(0x1e8),'Applicat'+_0x4b4ad3(0x1e2)+_0x4b4ad3(0x1ea));}return process.env.XDG_CONFIG_HOME||join(homedir(),_0x2168bf['gMCpE']);}export function getGlobalEnvPath(){const _0x1aad78=_0x33a8,_0x12baca={'NSZYU':_0x1aad78(0x1e4),'AyJEX':function(_0x252aa5,_0x1be8a1,_0x571af5,_0x136cc9){return _0x252aa5(_0x1be8a1,_0x571af5,_0x136cc9);},'TijsN':_0x1aad78(0x1d7),'XxECI':_0x1aad78(0x1cc),'XUUiv':function(_0x3bb5e3){return _0x3bb5e3();}};if(process[_0x1aad78(0x1f4)]===_0x12baca[_0x1aad78(0x1ec)]&&process.env.APPDATA)return _0x12baca['AyJEX'](join,process.env.APPDATA,_0x12baca['TijsN'],_0x12baca[_0x1aad78(0x1d9)]);return _0x12baca['AyJEX'](join,_0x12baca[_0x1aad78(0x1ce)](getBaseConfigDir),_0x12baca[_0x1aad78(0x1ed)],_0x12baca['XxECI']);}function _0x33a8(_0x45239c,_0x25e02e){_0x45239c=_0x45239c-0x1c7;const _0xa1a342=_0x4272();let _0x416c49=_0xa1a342[_0x45239c];return _0x416c49;}export function loadConfig(){const _0x4a3473=_0x33a8,_0x33a5e4={'YeaKl':function(_0x3facf4,_0x4d1f63,_0x50bf65){return _0x3facf4(_0x4d1f63,_0x50bf65);},'mtvKM':function(_0x2378ea,_0x1c2bbc){return _0x2378ea(_0x1c2bbc);},'eVnvB':_0x4a3473(0x1cc)},_0x3ac733=getGlobalEnvPath();_0x33a5e4[_0x4a3473(0x1e5)](loadEnvFile,_0x3ac733,![]),_0x33a5e4[_0x4a3473(0x1de)](existsSync,_0x4a3473(0x1cc))&&_0x33a5e4['YeaKl'](loadEnvFile,_0x33a5e4[_0x4a3473(0x1c8)],!![]);}function loadEnvFile(_0x1d8fae,_0x126fd1){const _0x170f2b=_0x33a8,_0x4c5fcc={'OHaFQ':function(_0x2a2c13,_0x4d6275){return _0x2a2c13(_0x4d6275);},'oyiMa':function(_0x2f40eb,_0x58b143,_0x4710f2){return _0x2f40eb(_0x58b143,_0x4710f2);},'Cjkrw':_0x170f2b(0x1f5),'kRsJN':function(_0x2debd7,_0x13b2fa){return _0x2debd7===_0x13b2fa;}};if(!_0x4c5fcc[_0x170f2b(0x1cb)](existsSync,_0x1d8fae))return;const _0x54a8ba=_0x4c5fcc[_0x170f2b(0x1cb)](_0x1c99e4,_0x4c5fcc[_0x170f2b(0x1e3)](readFileSync,_0x1d8fae,_0x4c5fcc[_0x170f2b(0x1f3)]));for(const [_0x21ef0e,_0x4e2739]of Object[_0x170f2b(0x1e6)](_0x54a8ba)){(_0x126fd1||_0x4c5fcc[_0x170f2b(0x1d1)](process.env[_0x21ef0e],undefined))&&(process.env[_0x21ef0e]=_0x4e2739);}}
@@ -1 +1 @@
1
- function _0x4509(_0x2e1c5a,_0x2d1782){_0x2e1c5a=_0x2e1c5a-0x162;const _0x338c5a=_0x264c();let _0x19628c=_0x338c5a[_0x2e1c5a];return _0x19628c;}(function(_0x15b0ab,_0x1f2dfb){const _0x20c5d2=_0x4509,_0x590dca=_0x15b0ab();while(!![]){try{const _0xd10128=parseInt(_0x20c5d2(0x1a7))/0x1*(-parseInt(_0x20c5d2(0x193))/0x2)+-parseInt(_0x20c5d2(0x169))/0x3*(-parseInt(_0x20c5d2(0x168))/0x4)+parseInt(_0x20c5d2(0x19d))/0x5*(parseInt(_0x20c5d2(0x19b))/0x6)+parseInt(_0x20c5d2(0x164))/0x7*(-parseInt(_0x20c5d2(0x1ce))/0x8)+-parseInt(_0x20c5d2(0x1b8))/0x9*(parseInt(_0x20c5d2(0x19f))/0xa)+parseInt(_0x20c5d2(0x1d7))/0xb+parseInt(_0x20c5d2(0x1eb))/0xc;if(_0xd10128===_0x1f2dfb)break;else _0x590dca['push'](_0x590dca['shift']());}catch(_0x27d35a){_0x590dca['push'](_0x590dca['shift']());}}}(_0x264c,0x33754));const _0x30de9a=(function(){const _0x3057e3=_0x4509,_0x17eba3={'gpmdo':'tqkGm','sPvoM':_0x3057e3(0x1c9)};let _0x2cd98f=!![];return function(_0x412eb4,_0x4d771c){const _0x3929b2=_0x2cd98f?function(){const _0x28c4c8=_0x4509;if(_0x17eba3['gpmdo']!==_0x17eba3[_0x28c4c8(0x210)]){if(_0x4d771c){const _0x5f0579=_0x4d771c[_0x28c4c8(0x18f)](_0x412eb4,arguments);return _0x4d771c=null,_0x5f0579;}}else{const [_0x31f18b='',_0x53e00f='',_0x212831='',_0xf2634b='',_0x290635='']=_0x383be4['split']('\x1f');return{'hash':_0x31f18b['trim'](),'subject':_0x53e00f[_0x28c4c8(0x195)](),'body':_0x212831['trim'](),'date':_0xf2634b['trim'](),'author':_0x290635[_0x28c4c8(0x195)]()};}}:function(){};return _0x2cd98f=![],_0x3929b2;};}()),_0x19628c=_0x30de9a(this,function(){const _0x17ad4f=_0x4509,_0x45ce81={'dpOeh':_0x17ad4f(0x1a0)+'+)+$'};return _0x19628c[_0x17ad4f(0x1cd)]()['search'](_0x45ce81[_0x17ad4f(0x1c7)])[_0x17ad4f(0x1cd)]()[_0x17ad4f(0x166)+_0x17ad4f(0x1ff)](_0x19628c)[_0x17ad4f(0x16f)](_0x45ce81[_0x17ad4f(0x1c7)]);});_0x19628c();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x55a907){const _0x5e8513=_0x4509,_0x53df53={'WfqSj':function(_0x23d65b,_0x1c16cf,_0x2032fa,_0x1aea5f){return _0x23d65b(_0x1c16cf,_0x2032fa,_0x1aea5f);},'ziMPm':_0x5e8513(0x1b9),'HBKSK':_0x5e8513(0x182)};return _0x53df53[_0x5e8513(0x1c8)](execFileSync,_0x53df53[_0x5e8513(0x18b)],_0x55a907,{'stdio':_0x53df53[_0x5e8513(0x1ae)]})[_0x5e8513(0x1cd)]();}export function getGitStatus(){const _0x28f132=_0x4509,_0x1ea269={'JjlRn':function(_0x513112,_0x1d1565){return _0x513112(_0x1d1565);},'tebMC':_0x28f132(0x209),'IudYI':_0x28f132(0x20a),'DGtgq':_0x28f132(0x18c),'Wwywq':function(_0x16f09c,_0x305af7){return _0x16f09c(_0x305af7);},'skhGL':_0x28f132(0x1fe)+'t\x20reposi'+_0x28f132(0x1b4),'pTpTa':function(_0x43533b,_0x29f3db){return _0x43533b===_0x29f3db;}};try{if(_0x1ea269[_0x28f132(0x1ea)]('zgDUs',_0x28f132(0x188)))try{const _0x15303d=_0x1ea269['JjlRn'](_0x230f70,[_0x1ea269['tebMC']]),_0x253fc8=_0x1ea269[_0x28f132(0x174)](_0x3e7b82,[_0x1ea269[_0x28f132(0x17f)],_0x1ea269[_0x28f132(0x1ee)]]);return _0x15303d+'\x0a'+_0x253fc8;}catch{_0x1ea269[_0x28f132(0x171)](_0x350dd6,_0x1ea269[_0x28f132(0x1bb)]);}else{const _0x1e7a5a=_0x1ea269['JjlRn'](runGit,[_0x1ea269[_0x28f132(0x183)]]),_0x272227=_0x1ea269[_0x28f132(0x171)](runGit,[_0x28f132(0x20a),_0x1ea269[_0x28f132(0x1ee)]]);return _0x1e7a5a+'\x0a'+_0x272227;}}catch{failAndExit(_0x1ea269['skhGL']);}}export function branchExists(_0xd1621c){const _0x1bfdeb=_0x4509,_0x5bfb6b={'UeeOS':function(_0x49abf6,_0x423bfd,_0x2deaa3){return _0x49abf6(_0x423bfd,_0x2deaa3);}};try{return _0x5bfb6b['UeeOS'](execSync,_0x1bfdeb(0x187)+_0x1bfdeb(0x1c2)+_0x1bfdeb(0x203)+_0x1bfdeb(0x1fa)+_0x1bfdeb(0x20b)+'/'+_0xd1621c,{'stdio':_0x1bfdeb(0x182)}),!![];}catch{return![];}}function _0x264c(){const _0x2529cd=['inherit','zAZci','DZuLc','--name-s','git\x20bran','BTnhM','tfNXk','jzPud','ksAwy','IudYI','KXlRR','osgEz','pipe','tebMC','USVHM','ECiTs','xwmed','git\x20show','JVvAc','Could\x20no','Ehduv','ziMPm','--stat','CeFxl','--revers','apply','hash','PyoNb','QBvHl','1958ZXexUX','merge-ba','trim','RQXYq','base\x20bra','madqF','uJmoD','zfSFm','8286fyhEDE','e\x20merge-','725bRdcDH','\x20branch.','10BbzAsr','(((.+)+)','Nwdte','am}','th\x20git\x20a','t\x20comput','1f%ad%x1','jyKba','151apzuKB','files\x20wi','rRruK','tLCWS','..HEAD','\x20a\x20remot','pxIFy','HBKSK','pLaUn','\x20current','nch.\x20Set','--pretty','jKewV','tory.','YqeLT','gMXYD','HEAD','2962881qTNtbw','git','hSBXb','skhGL','add','symbolic','EdduI','t\x20detect','DcCoi','bolic-fu','-ref\x20--v','AclQF','slice','--verify','origin','dpOeh','WfqSj','sPYdg','t\x20staged','log','mNUST','toString','7832yMPEaO','w-curren','f%an%x1e','eTJnY','hfpmC','=format:','tatus','dd\x20.','it\x20commi','2501048RsHFbH','yYPbI','-ref','cwyQO','mNhTk','oGyTr','JQqcZ','kIfiv','@{upstre','JSUqi','\x20changes','JkSUd','t\x20read\x20g','McZfb','r\x20create','hort','uDczl','/HEAD','xXncr','pTpTa','2220804tvwIwX','parseInt','JRNQb','DGtgq','o\x20inspec','gwuJH','--short','map','--cached','--date=s','git\x20remo','kAdUg','filter','zdNlD','JuDYh','quiet\x20re','DulJL','Nxzex','master','Not\x20a\x20gi','tor','Failed\x20t','unCwI','indexOf','erify\x20--','zQyVX','fTLBy','dfHLw','ds/','length','status','diff','fs/heads','AwVpm','t\x20infer\x20','dWvmt','ZgeNk','sPvoM','hjxpO','ef\x20--sym','ch\x20--sho','%H%x1f%s','split','ll-name\x20','skjFD','main','OFGre','ster.','isNaN','567jYKNHc','mKdju','construc','%x1f%b%x','617716ZVqZOK','3QzdznI','develop','abbrev-r','refs/hea','bKsGI','NPRTI','search','WNRrg','Wwywq','ngBui','arWNR','JjlRn','gZFjz'];_0x264c=function(){return _0x2529cd;};return _0x264c();}export function getCurrentBranch(){const _0xdf881d=_0x4509,_0x17fa8a={'YqXGl':function(_0x590446,_0x4271e2,_0x4d0b9e,_0x1d5969){return _0x590446(_0x4271e2,_0x4d0b9e,_0x1d5969);},'JQqcZ':'merge-ba'+'se','JaIzj':_0xdf881d(0x1b7),'ECiTs':function(_0xa4503a,_0x5d3ea7,_0x4d4dbd){return _0xa4503a(_0x5d3ea7,_0x4d4dbd);},'dfHLw':function(_0x3862d1,_0x3053b0){return _0x3862d1===_0x3053b0;},'gMXYD':_0xdf881d(0x177),'DZuLc':function(_0x852ba9,_0x57770f,_0x61414c){return _0x852ba9(_0x57770f,_0x61414c);},'hjxpO':_0xdf881d(0x17a)+_0xdf881d(0x213)+_0xdf881d(0x1cf)+'t','BTnhM':_0xdf881d(0x182),'tfNXk':_0xdf881d(0x198),'zfSFm':function(_0x241b08,_0x2f182b){return _0x241b08(_0x2f182b);},'ngBui':_0xdf881d(0x189)+'t\x20detect'+_0xdf881d(0x1b0)+_0xdf881d(0x19e),'JSUqi':function(_0x506078,_0x1b6c25){return _0x506078(_0x1b6c25);}};try{if(_0x17fa8a['dfHLw'](_0x17fa8a['gMXYD'],_0x17fa8a[_0xdf881d(0x1b6)])){const _0x23d406=_0x17fa8a[_0xdf881d(0x178)](execSync,_0x17fa8a[_0xdf881d(0x211)],{'stdio':_0x17fa8a[_0xdf881d(0x17b)]})[_0xdf881d(0x1cd)]()[_0xdf881d(0x195)]();if(!_0x23d406){if(_0x17fa8a[_0xdf881d(0x206)](_0x17fa8a['tfNXk'],_0x17fa8a[_0xdf881d(0x17c)]))_0x17fa8a[_0xdf881d(0x19a)](failAndExit,_0x17fa8a[_0xdf881d(0x172)]);else return _0x17fa8a['YqXGl'](_0x18e7cd,'git',[_0x17fa8a[_0xdf881d(0x1dd)],_0x2c0f99,_0x17fa8a['JaIzj']],{'stdio':_0xdf881d(0x182)})['toString']()[_0xdf881d(0x195)]();}return _0x23d406;}else try{return efayqb[_0xdf881d(0x185)](_0x2a7c39,'git\x20show'+_0xdf881d(0x1c2)+_0xdf881d(0x203)+_0xdf881d(0x1fa)+_0xdf881d(0x20b)+'/'+_0x754d4c,{'stdio':_0xdf881d(0x182)}),!![];}catch{return![];}}catch{_0x17fa8a[_0xdf881d(0x1e0)](failAndExit,'Could\x20no'+'t\x20detect'+_0xdf881d(0x1b0)+_0xdf881d(0x19e));}}export function getUpstreamInfo(){const _0x44a2bc=_0x4509,_0x11c29a={'WyLad':function(_0x1fb20f,_0x2cdd77){return _0x1fb20f(_0x2cdd77);},'mNhTk':'status','zdNlD':function(_0x530a00,_0x1d36e3){return _0x530a00(_0x1d36e3);},'xXncr':function(_0x165a98,_0x4d7c9c){return _0x165a98!==_0x4d7c9c;},'xwmed':_0x44a2bc(0x165),'yYPbI':function(_0x247a86,_0x1f3d01,_0x535e72){return _0x247a86(_0x1f3d01,_0x535e72);},'EdduI':'git\x20rev-'+'parse\x20--'+_0x44a2bc(0x16b)+_0x44a2bc(0x212)+_0x44a2bc(0x1c1)+_0x44a2bc(0x216)+_0x44a2bc(0x1df)+_0x44a2bc(0x1a2),'AclQF':function(_0x501f93,_0x14b51c){return _0x501f93<=_0x14b51c;},'QBvHl':function(_0x143781,_0x1ea368){return _0x143781+_0x1ea368;}};try{if(_0x11c29a[_0x44a2bc(0x1e9)](_0x11c29a[_0x44a2bc(0x186)],_0x11c29a[_0x44a2bc(0x186)])){const _0x5daf10=KAfSCB['WyLad'](_0x9be81d,[KAfSCB[_0x44a2bc(0x1db)]]),_0x21bd71=KAfSCB[_0x44a2bc(0x1f8)](_0x1ecea3,[_0x44a2bc(0x20a),_0x44a2bc(0x18c)]);return _0x5daf10+'\x0a'+_0x21bd71;}else{const _0x353d15=_0x11c29a[_0x44a2bc(0x1d8)](execSync,_0x11c29a[_0x44a2bc(0x1be)],{'stdio':_0x44a2bc(0x182)})['toString']()[_0x44a2bc(0x195)](),_0x516667=_0x353d15[_0x44a2bc(0x202)]('/');if(_0x11c29a[_0x44a2bc(0x1c3)](_0x516667,0x0))return null;return{'fullName':_0x353d15,'remote':_0x353d15['slice'](0x0,_0x516667),'branch':_0x353d15[_0x44a2bc(0x1c4)](_0x11c29a[_0x44a2bc(0x192)](_0x516667,0x1))};}}catch{return null;}}export function getDefaultRemote(){const _0xabf707=_0x4509,_0x5ec139={'mNUST':_0xabf707(0x1f5)+'te','ouuhw':_0xabf707(0x1c6)};try{const _0x4e9e09=execSync(_0x5ec139[_0xabf707(0x1cc)],{'stdio':_0xabf707(0x182)})[_0xabf707(0x1cd)]()[_0xabf707(0x215)](/\r?\n/)[_0xabf707(0x1f2)](_0x1b6942=>_0x1b6942[_0xabf707(0x195)]())[_0xabf707(0x1f7)](Boolean);if(_0x4e9e09[_0xabf707(0x208)]===0x0)return null;if(_0x4e9e09['includes'](_0x5ec139['ouuhw']))return _0x5ec139['ouuhw'];return _0x4e9e09[0x0];}catch{return null;}}function resolveBaseRef(){const _0x439232=_0x4509,_0x149749={'eTJnY':function(_0x4d16f9,_0x5c6e16,_0x1d3be4){return _0x4d16f9(_0x5c6e16,_0x1d3be4);},'bKsGI':'pipe','ZgeNk':function(_0x3a4cfb,_0x1d3efe){return _0x3a4cfb(_0x1d3efe);},'zQyVX':_0x439232(0x189)+_0x439232(0x1bf)+_0x439232(0x1b0)+_0x439232(0x19e),'NPRTI':function(_0x281fd7){return _0x281fd7();},'IVqHR':function(_0x56aec3,_0x5a19e2,_0x451670,_0x4db560){return _0x56aec3(_0x5a19e2,_0x451670,_0x4db560);},'kAdUg':'git','CUdwg':_0x439232(0x1f1),'jKewV':function(_0x3309b2,_0x5c375){return _0x3309b2===_0x5c375;},'ELYtq':_0x439232(0x1e4),'jzPud':_0x439232(0x1e7),'osgEz':_0x439232(0x218),'WnxsR':_0x439232(0x1fd),'USVHM':_0x439232(0x16a),'PyoNb':'rev-pars'+'e','RVSia':_0x439232(0x1c5)},_0x13a8af=_0x149749[_0x439232(0x16e)](getDefaultRemote);if(_0x13a8af){try{const _0x487dac=_0x149749['IVqHR'](execFileSync,_0x149749[_0x439232(0x1f6)],[_0x439232(0x1bd)+_0x439232(0x1d9),_0x149749['CUdwg'],'refs/rem'+'otes/'+_0x13a8af+_0x439232(0x1e8)],{'stdio':_0x149749[_0x439232(0x16d)]})['toString']()[_0x439232(0x195)]();if(_0x487dac){if(_0x149749[_0x439232(0x1b3)](_0x149749['ELYtq'],_0x149749[_0x439232(0x17d)])){const _0x2356eb=GRdJtQ[_0x439232(0x1d1)](_0x203033,_0x439232(0x17a)+_0x439232(0x213)+'w-curren'+'t',{'stdio':GRdJtQ[_0x439232(0x16d)]})[_0x439232(0x1cd)]()['trim']();return!_0x2356eb&&GRdJtQ[_0x439232(0x20f)](_0x49abd4,GRdJtQ[_0x439232(0x204)]),_0x2356eb;}else return _0x487dac;}}catch{}for(const _0x6ea1a2 of[_0x149749[_0x439232(0x181)],_0x149749['WnxsR'],_0x149749[_0x439232(0x184)]]){try{return execFileSync(_0x149749[_0x439232(0x1f6)],[_0x149749[_0x439232(0x191)],_0x149749['RVSia'],'refs/rem'+'otes/'+_0x13a8af+'/'+_0x6ea1a2],{'stdio':_0x439232(0x182)}),_0x13a8af+'/'+_0x6ea1a2;}catch{}}}for(const _0x586bb9 of[_0x149749[_0x439232(0x181)],_0x439232(0x1fd),'develop']){try{return execFileSync(_0x149749[_0x439232(0x1f6)],[_0x149749[_0x439232(0x191)],_0x439232(0x1c5),_0x439232(0x16c)+_0x439232(0x207)+_0x586bb9],{'stdio':_0x149749['bKsGI']}),_0x586bb9;}catch{}}_0x149749[_0x439232(0x20f)](failAndExit,'Could\x20no'+_0x439232(0x20d)+_0x439232(0x197)+_0x439232(0x1b1)+_0x439232(0x1ac)+'e\x20HEAD\x20o'+_0x439232(0x1e5)+'\x20main/ma'+_0x439232(0x162));}function getMergeBase(_0x191158){const _0x571743=_0x4509,_0x279153={'eSLyO':function(_0x224cb8,_0x396367,_0x53567e,_0xc51de0){return _0x224cb8(_0x396367,_0x53567e,_0xc51de0);},'pLaUn':'git','Nxzex':_0x571743(0x194)+'se','RQXYq':_0x571743(0x1b7)};try{return _0x279153['eSLyO'](execFileSync,_0x279153[_0x571743(0x1af)],[_0x279153[_0x571743(0x1fc)],_0x191158,_0x279153[_0x571743(0x196)]],{'stdio':_0x571743(0x182)})[_0x571743(0x1cd)]()[_0x571743(0x195)]();}catch{failAndExit(_0x571743(0x189)+_0x571743(0x1a4)+_0x571743(0x19c)+'base\x20wit'+'h\x20'+_0x191158+'.');}}function parseCommits(_0x29e0c6){const _0x1ef3ca=_0x4509;return _0x29e0c6[_0x1ef3ca(0x215)]('\x1e')['map'](_0x2e9e6a=>_0x2e9e6a['trim']())['filter'](Boolean)[_0x1ef3ca(0x1f2)](_0x11d839=>{const _0x24eb14=_0x1ef3ca,[_0x366d53='',_0x147b59='',_0x51a508='']=_0x11d839['split']('\x1f');return{'hash':_0x366d53[_0x24eb14(0x195)](),'subject':_0x147b59[_0x24eb14(0x195)](),'body':_0x51a508[_0x24eb14(0x195)]()};})[_0x1ef3ca(0x1f7)](_0x4f6c22=>Boolean(_0x4f6c22[_0x1ef3ca(0x190)])&&Boolean(_0x4f6c22['subject']));}export function getBranchContext(){const _0x17e320=_0x4509,_0x5e6b99={'rRruK':function(_0x58f798){return _0x58f798();},'JRNQb':function(_0x1269c1,_0xe57218){return _0x1269c1(_0xe57218);},'gwuJH':function(_0x584473,_0x2bf84a,_0x1f6829,_0x1a7761){return _0x584473(_0x2bf84a,_0x1f6829,_0x1a7761);},'WNRrg':_0x17e320(0x1b9),'arWNR':_0x17e320(0x18e)+'e','Ievmz':_0x17e320(0x1b2)+_0x17e320(0x1d3)+_0x17e320(0x214)+'%x1f%b%x'+'1e','sBlfR':'pipe','dWvmt':'diff','mmNUh':_0x17e320(0x18c),'Ehduv':_0x17e320(0x179)+_0x17e320(0x1d4),'unCwI':function(_0xdbd2e1,_0x2cc5bf){return _0xdbd2e1(_0x2cc5bf);}},_0x366b11=_0x5e6b99[_0x17e320(0x1a9)](resolveBaseRef),_0x28ef46=_0x5e6b99[_0x17e320(0x1ed)](getMergeBase,_0x366b11),_0x2f6a8b=_0x5e6b99[_0x17e320(0x1f0)](execFileSync,_0x5e6b99[_0x17e320(0x170)],[_0x17e320(0x1cb),_0x5e6b99[_0x17e320(0x173)],_0x5e6b99['Ievmz'],_0x28ef46+_0x17e320(0x1ab)],{'stdio':_0x5e6b99['sBlfR']})['toString']()[_0x17e320(0x195)](),_0x4092f6=execFileSync(_0x5e6b99[_0x17e320(0x170)],[_0x5e6b99[_0x17e320(0x20e)],_0x5e6b99['mmNUh'],_0x28ef46+_0x17e320(0x1ab)],{'stdio':_0x17e320(0x182)})[_0x17e320(0x1cd)]()[_0x17e320(0x195)](),_0x52f198=_0x5e6b99['gwuJH'](execFileSync,_0x5e6b99['WNRrg'],['diff',_0x5e6b99[_0x17e320(0x18a)],_0x28ef46+_0x17e320(0x1ab)],{'stdio':_0x5e6b99['sBlfR']})['toString']()[_0x17e320(0x195)]();return{'baseRef':_0x366b11,'mergeBase':_0x28ef46,'commits':_0x5e6b99[_0x17e320(0x201)](parseCommits,_0x2f6a8b),'diffStat':_0x4092f6,'changedFiles':_0x52f198};}export function getCommitHistory(_0x377f1f=0x78){const _0x334006=_0x4509,_0x45487c={'cwyQO':function(_0x2506ef,_0x2f0b3d,_0x323367,_0x23db79){return _0x2506ef(_0x2f0b3d,_0x323367,_0x23db79);},'oGyTr':'git','OFGre':_0x334006(0x1b2)+'=format:'+_0x334006(0x214)+_0x334006(0x167)+_0x334006(0x1a5)+_0x334006(0x1d0),'fTLBy':_0x334006(0x1f4)+_0x334006(0x1e6),'hfpmC':_0x334006(0x182),'KXlRR':_0x334006(0x189)+_0x334006(0x1e3)+_0x334006(0x1d6)+'t\x20histor'+'y.'};try{const _0x361ccb=_0x45487c[_0x334006(0x1da)](execFileSync,_0x45487c[_0x334006(0x1dc)],[_0x334006(0x1cb),'-'+_0x377f1f,_0x334006(0x18e)+'e',_0x45487c[_0x334006(0x219)],_0x45487c[_0x334006(0x205)]],{'stdio':_0x45487c[_0x334006(0x1d2)]})[_0x334006(0x1cd)]()[_0x334006(0x195)]();return _0x361ccb['split']('\x1e')[_0x334006(0x1f2)](_0x31f1c0=>_0x31f1c0[_0x334006(0x195)]())['filter'](Boolean)['map'](_0x15a75a=>{const _0x2b23e9=_0x334006,[_0x401214='',_0x15aef7='',_0x5bb690='',_0x6ce01d='',_0x1e4093='']=_0x15a75a['split']('\x1f');return{'hash':_0x401214['trim'](),'subject':_0x15aef7[_0x2b23e9(0x195)](),'body':_0x5bb690[_0x2b23e9(0x195)](),'date':_0x6ce01d[_0x2b23e9(0x195)](),'author':_0x1e4093[_0x2b23e9(0x195)]()};})['filter'](_0x14ebef=>Boolean(_0x14ebef[_0x334006(0x190)])&&Boolean(_0x14ebef['subject']));}catch{failAndExit(_0x45487c[_0x334006(0x180)]);}}function parseNameStatusLine(_0x199276){const _0x34529d=_0x4509,_0x3a4a6d={'YqeLT':function(_0x3c8762,_0x2ce086){return _0x3c8762<_0x2ce086;},'DulJL':function(_0x36c7b8,_0xc57c05){return _0x36c7b8===_0xc57c05;},'DcCoi':_0x34529d(0x1a1),'kIfiv':function(_0x81674d,_0x2a9381){return _0x81674d-_0x2a9381;},'gZFjz':function(_0x5aeb57,_0x17b4c9){return _0x5aeb57||_0x17b4c9;}},_0xbe5981=_0x199276[_0x34529d(0x195)]();if(!_0xbe5981)return null;const _0x3e5bdc=_0xbe5981[_0x34529d(0x215)](/\s+/);if(_0x3a4a6d[_0x34529d(0x1b5)](_0x3e5bdc['length'],0x2))return _0x3a4a6d[_0x34529d(0x1fb)](_0x3a4a6d[_0x34529d(0x1c0)],_0x3a4a6d[_0x34529d(0x1c0)])?null:null;const _0x5415b8=_0x3e5bdc[0x0][_0x34529d(0x195)](),_0x3604d3=_0x3e5bdc[_0x3a4a6d[_0x34529d(0x1de)](_0x3e5bdc['length'],0x1)][_0x34529d(0x195)]();if(_0x3a4a6d[_0x34529d(0x175)](!_0x5415b8,!_0x3604d3))return null;return{'status':_0x5415b8,'path':_0x3604d3};}export function stageAll(){const _0x32c0e0=_0x4509,_0x4cba6e={'JkSUd':function(_0x51a0c8,_0x542ec0,_0x56908d,_0x212ae8){return _0x51a0c8(_0x542ec0,_0x56908d,_0x212ae8);},'ksAwy':_0x32c0e0(0x1b9),'JuDYh':_0x32c0e0(0x176),'tLCWS':function(_0x5490d3,_0xb280a2){return _0x5490d3(_0xb280a2);},'uJmoD':_0x32c0e0(0x200)+'o\x20stage\x20'+_0x32c0e0(0x1a8)+_0x32c0e0(0x1a3)+_0x32c0e0(0x1d5)};try{_0x4cba6e[_0x32c0e0(0x1e2)](execFileSync,_0x4cba6e[_0x32c0e0(0x17e)],[_0x32c0e0(0x1bc),'.'],{'stdio':_0x4cba6e[_0x32c0e0(0x1f9)]});}catch{_0x4cba6e[_0x32c0e0(0x1aa)](failAndExit,_0x4cba6e[_0x32c0e0(0x199)]);}}export function getStagedContext(_0x1574a6=0x2710){const _0x1e1242=_0x4509,_0x179c77={'jyKba':function(_0x6da6d,_0x5c96ff){return _0x6da6d(_0x5c96ff);},'skjFD':'diff','AwVpm':_0x1e1242(0x1f3),'CeFxl':_0x1e1242(0x179)+_0x1e1242(0x1d4),'hDhBE':function(_0x27b8d3,_0x4b1be3){return _0x27b8d3(_0x4b1be3);},'pxIFy':function(_0x306507,_0x1b27a7){return _0x306507(_0x1b27a7);},'RunnX':'--numsta'+'t','hSBXb':_0x1e1242(0x200)+_0x1e1242(0x1ef)+_0x1e1242(0x1ca)+_0x1e1242(0x1e1)+'.'};try{const _0x53265f=_0x179c77[_0x1e1242(0x1a6)](runGit,[_0x179c77[_0x1e1242(0x217)],_0x179c77[_0x1e1242(0x20c)],_0x179c77[_0x1e1242(0x18d)]]),_0x795f95=runGit([_0x179c77[_0x1e1242(0x217)],_0x1e1242(0x1f3),_0x1e1242(0x18c)])[_0x1e1242(0x195)](),_0x49a956=_0x179c77['hDhBE'](runGit,[_0x179c77[_0x1e1242(0x217)],_0x1e1242(0x1f3)]),_0x1ab81e=_0x179c77[_0x1e1242(0x1ad)](runGit,[_0x179c77[_0x1e1242(0x217)],_0x179c77[_0x1e1242(0x20c)],_0x179c77['RunnX']]),_0x34c775=_0x53265f[_0x1e1242(0x215)](/\r?\n/)[_0x1e1242(0x1f2)](_0x571011=>parseNameStatusLine(_0x571011))['filter'](_0x5157f3=>Boolean(_0x5157f3));let _0x518833=0x0,_0x9bf44a=0x0;for(const _0x5d6685 of _0x1ab81e[_0x1e1242(0x215)](/\r?\n/)){const _0x11a5ca=_0x5d6685[_0x1e1242(0x195)]();if(!_0x11a5ca)continue;const [_0x594642='0',_0x153be3='0']=_0x11a5ca[_0x1e1242(0x215)](/\s+/),_0x25a6f0=Number[_0x1e1242(0x1ec)](_0x594642,0xa),_0x469a61=Number['parseInt'](_0x153be3,0xa);_0x518833+=Number[_0x1e1242(0x163)](_0x25a6f0)?0x0:_0x25a6f0,_0x9bf44a+=Number[_0x1e1242(0x163)](_0x469a61)?0x0:_0x469a61;}const _0x14475a=_0x49a956[_0x1e1242(0x208)]>_0x1574a6,_0x5ce445=_0x14475a?_0x49a956[_0x1e1242(0x1c4)](0x0,_0x1574a6):_0x49a956;return{'files':_0x34c775,'diffStat':_0x795f95,'patch':_0x5ce445[_0x1e1242(0x195)](),'metrics':{'fileCount':_0x34c775['length'],'insertions':_0x518833,'deletions':_0x9bf44a,'patchChars':_0x49a956[_0x1e1242(0x208)],'truncated':_0x14475a}};}catch{_0x179c77['jyKba'](failAndExit,_0x179c77[_0x1e1242(0x1ba)]);}}
1
+ (function(_0x22d8d5,_0xf5311e){const _0x1b908c=_0xafd2,_0x186c2b=_0x22d8d5();while(!![]){try{const _0x585f26=-parseInt(_0x1b908c(0xf0))/0x1*(parseInt(_0x1b908c(0x104))/0x2)+parseInt(_0x1b908c(0x88))/0x3+-parseInt(_0x1b908c(0xfd))/0x4*(-parseInt(_0x1b908c(0xb8))/0x5)+parseInt(_0x1b908c(0xd3))/0x6*(-parseInt(_0x1b908c(0xd1))/0x7)+-parseInt(_0x1b908c(0x93))/0x8+parseInt(_0x1b908c(0x8f))/0x9*(-parseInt(_0x1b908c(0x123))/0xa)+parseInt(_0x1b908c(0x92))/0xb;if(_0x585f26===_0xf5311e)break;else _0x186c2b['push'](_0x186c2b['shift']());}catch(_0x5beab9){_0x186c2b['push'](_0x186c2b['shift']());}}}(_0x4dc0,0xea33f));const _0x427cc4=(function(){const _0x3d15c4=_0xafd2,_0x26a4ef={'QxCNM':_0x3d15c4(0xb7)+_0x3d15c4(0x11a)+_0x3d15c4(0xc9)+_0x3d15c4(0xbe),'jcjBP':function(_0x530412,_0x57336c){return _0x530412===_0x57336c;},'xzyfr':_0x3d15c4(0x96)};let _0x3bfb2a=!![];return function(_0x3fdb95,_0x231674){const _0x59448b=_0x3d15c4;if(_0x26a4ef[_0x59448b(0xe7)](_0x26a4ef[_0x59448b(0xc2)],_0x26a4ef[_0x59448b(0xc2)])){const _0x1941ff=_0x3bfb2a?function(){const _0x13efab=_0x59448b;if(_0x231674){const _0x5d0087=_0x231674[_0x13efab(0xcb)](_0x3fdb95,arguments);return _0x231674=null,_0x5d0087;}}:function(){};return _0x3bfb2a=![],_0x1941ff;}else _0x10a5aa(_0x26a4ef[_0x59448b(0x113)]);};}()),_0x686d59=_0x427cc4(this,function(){const _0x1495bd=_0xafd2,_0x907161={'UbsJY':'(((.+)+)'+_0x1495bd(0xc0)};return _0x686d59[_0x1495bd(0xb2)]()[_0x1495bd(0xdb)](_0x907161[_0x1495bd(0xe8)])[_0x1495bd(0xb2)]()[_0x1495bd(0x11b)+_0x1495bd(0xd8)](_0x686d59)[_0x1495bd(0xdb)](_0x907161[_0x1495bd(0xe8)]);});_0x686d59();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x77450e){const _0x3f9c6e=_0xafd2,_0x434bc6={'NSOap':function(_0x453715,_0xc170c9,_0x16b21b,_0x4a2de2){return _0x453715(_0xc170c9,_0x16b21b,_0x4a2de2);},'OIByk':_0x3f9c6e(0x9f),'wPWpR':_0x3f9c6e(0x87)};return _0x434bc6['NSOap'](execFileSync,_0x434bc6[_0x3f9c6e(0xe2)],_0x77450e,{'stdio':_0x434bc6['wPWpR']})[_0x3f9c6e(0xb2)]();}function _0xafd2(_0x5e108d,_0x20c9f2){_0x5e108d=_0x5e108d-0x7e;const _0x52700d=_0x4dc0();let _0x686d59=_0x52700d[_0x5e108d];return _0x686d59;}export function getGitStatus(){const _0x4c0cc6=_0xafd2,_0x5c8544={'iGKdz':function(_0x3ee840,_0x28bc18){return _0x3ee840(_0x28bc18);},'FDDKq':_0x4c0cc6(0xe4),'VPCRu':_0x4c0cc6(0xa2),'qDykl':function(_0x432d8b,_0x5f11e8){return _0x432d8b(_0x5f11e8);},'wClAw':_0x4c0cc6(0x85)+'t\x20reposi'+_0x4c0cc6(0xb4)};try{const _0x16da7c=_0x5c8544[_0x4c0cc6(0x11e)](runGit,[_0x5c8544[_0x4c0cc6(0x109)]]),_0x51bbbf=_0x5c8544[_0x4c0cc6(0x11e)](runGit,[_0x4c0cc6(0x100),_0x5c8544[_0x4c0cc6(0x95)]]);return _0x16da7c+'\x0a'+_0x51bbbf;}catch{_0x5c8544[_0x4c0cc6(0x108)](failAndExit,_0x5c8544[_0x4c0cc6(0xbb)]);}}export function branchExists(_0x50b5d5){const _0x4e8701=_0xafd2,_0x1a9611={'FsxkP':function(_0x46c64a,_0x5d57bd,_0x5d57e7){return _0x46c64a(_0x5d57bd,_0x5d57e7);},'jqNWX':_0x4e8701(0xff)+'te','NeIME':_0x4e8701(0x87),'AJLSi':function(_0xfff3fe,_0x428b92){return _0xfff3fe===_0x428b92;},'AJxoJ':_0x4e8701(0xe0),'LqOUo':function(_0x1b71fa,_0x56f823){return _0x1b71fa===_0x56f823;},'diPRN':_0x4e8701(0x107),'nzvxE':_0x4e8701(0x103)};try{return execSync(_0x4e8701(0x106)+_0x4e8701(0xe3)+_0x4e8701(0xc5)+_0x4e8701(0xd2)+_0x4e8701(0xfe)+'/'+_0x50b5d5,{'stdio':_0x1a9611['NeIME']}),!![];}catch{if(_0x1a9611[_0x4e8701(0xd7)](_0x1a9611[_0x4e8701(0x8a)],_0x1a9611[_0x4e8701(0x9a)])){const _0x2e7723=_0x1a9611['FsxkP'](_0x4a39cf,_0x1a9611['jqNWX'],{'stdio':_0x1a9611[_0x4e8701(0x86)]})['toString']()[_0x4e8701(0x81)](/\r?\n/)[_0x4e8701(0x10f)](_0x45676d=>_0x45676d[_0x4e8701(0xac)]())[_0x4e8701(0x82)](_0x7dbb9a);if(_0x1a9611[_0x4e8701(0xaf)](_0x2e7723[_0x4e8701(0xdf)],0x0))return null;if(_0x2e7723[_0x4e8701(0xa8)](_0x4e8701(0xe0)))return _0x1a9611[_0x4e8701(0x94)];return _0x2e7723[0x0];}else return![];}}export function getCurrentBranch(){const _0x374d3a=_0xafd2,_0x38afe4={'xgTPk':function(_0x84c626,_0x2ebc86,_0x376ce5){return _0x84c626(_0x2ebc86,_0x376ce5);},'MUHsd':_0x374d3a(0x99)+'ch\x20--sho'+_0x374d3a(0xea)+'t','BXNxU':'pipe','vdRDB':function(_0x5c221f,_0x2dca22){return _0x5c221f(_0x2dca22);},'GeTpZ':_0x374d3a(0xb7)+_0x374d3a(0x11a)+_0x374d3a(0xc9)+_0x374d3a(0xbe)};try{const _0x5e251b=_0x38afe4[_0x374d3a(0x118)](execSync,_0x38afe4[_0x374d3a(0xc1)],{'stdio':_0x38afe4['BXNxU']})[_0x374d3a(0xb2)]()[_0x374d3a(0xac)]();return!_0x5e251b&&_0x38afe4[_0x374d3a(0x125)](failAndExit,_0x38afe4[_0x374d3a(0xe5)]),_0x5e251b;}catch{failAndExit('Could\x20no'+_0x374d3a(0x11a)+_0x374d3a(0xc9)+_0x374d3a(0xbe));}}export function getUpstreamInfo(){const _0xdbba79=_0xafd2,_0x11ff6f={'EDJXR':'pipe','GpMHr':function(_0x49aef0,_0x317ccc){return _0x49aef0<=_0x317ccc;},'LjHoi':function(_0x537c12,_0x392068){return _0x537c12+_0x392068;}};try{const _0x4fd06e=execSync('git\x20rev-'+'parse\x20--'+'abbrev-r'+_0xdbba79(0xf6)+_0xdbba79(0xf3)+_0xdbba79(0x10e)+_0xdbba79(0xdd)+_0xdbba79(0x84),{'stdio':_0x11ff6f[_0xdbba79(0xe6)]})[_0xdbba79(0xb2)]()[_0xdbba79(0xac)](),_0x41e85b=_0x4fd06e[_0xdbba79(0xbc)]('/');if(_0x11ff6f['GpMHr'](_0x41e85b,0x0))return null;return{'fullName':_0x4fd06e,'remote':_0x4fd06e[_0xdbba79(0x105)](0x0,_0x41e85b),'branch':_0x4fd06e[_0xdbba79(0x105)](_0x11ff6f['LjHoi'](_0x41e85b,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x5a9ecf=_0xafd2,_0x57bf1c={'CphsK':function(_0x5a4318,_0x2a0f6a,_0x478bf5){return _0x5a4318(_0x2a0f6a,_0x478bf5);},'sovAe':'git\x20remo'+'te','waTii':'pipe','nbisE':function(_0x41f21d,_0xb9e562){return _0x41f21d===_0xb9e562;},'SaRZe':'origin'};try{const _0x4dcd20=_0x57bf1c[_0x5a9ecf(0x10d)](execSync,_0x57bf1c[_0x5a9ecf(0x110)],{'stdio':_0x57bf1c[_0x5a9ecf(0xde)]})[_0x5a9ecf(0xb2)]()['split'](/\r?\n/)[_0x5a9ecf(0x10f)](_0x24bdc5=>_0x24bdc5[_0x5a9ecf(0xac)]())[_0x5a9ecf(0x82)](Boolean);if(_0x57bf1c[_0x5a9ecf(0xb3)](_0x4dcd20[_0x5a9ecf(0xdf)],0x0))return null;if(_0x4dcd20['includes'](_0x57bf1c[_0x5a9ecf(0x9e)]))return _0x5a9ecf(0xe0);return _0x4dcd20[0x0];}catch{return null;}}function resolveBaseRef(){const _0x5b4751=_0xafd2,_0x160a8b={'Fygnv':function(_0x517962,_0x437717){return _0x517962(_0x437717);},'ZHoHD':function(_0x5c79ef,_0x293c91,_0x33e5a3,_0x325356){return _0x5c79ef(_0x293c91,_0x33e5a3,_0x325356);},'UvQTv':'git','eCQVX':_0x5b4751(0xa6)+_0x5b4751(0x8b),'YsFFt':_0x5b4751(0x102),'qyBEu':'develop','omavi':'rev-pars'+'e','jNhhW':_0x5b4751(0x98),'mKDMy':_0x5b4751(0xf1),'LoZbL':'BpVZf','DlLCc':_0x5b4751(0xb7)+'t\x20infer\x20'+'base\x20bra'+_0x5b4751(0xca)+_0x5b4751(0x11c)+_0x5b4751(0x115)+_0x5b4751(0xc6)+_0x5b4751(0xaa)+_0x5b4751(0xd0)},_0x40e613=getDefaultRemote();if(_0x40e613){try{const _0x44541c=_0x160a8b['ZHoHD'](execFileSync,_0x160a8b[_0x5b4751(0x116)],[_0x160a8b[_0x5b4751(0xb9)],_0x5b4751(0x90),_0x5b4751(0xcc)+_0x5b4751(0x117)+_0x40e613+_0x5b4751(0xa5)],{'stdio':_0x5b4751(0x87)})[_0x5b4751(0xb2)]()['trim']();if(_0x44541c)return _0x44541c;}catch{}for(const _0xfa9922 of[_0x5b4751(0xf1),_0x160a8b[_0x5b4751(0x91)],_0x160a8b['qyBEu']]){try{return _0x160a8b[_0x5b4751(0xfb)](execFileSync,_0x160a8b[_0x5b4751(0x116)],[_0x160a8b[_0x5b4751(0xc4)],_0x160a8b['jNhhW'],_0x5b4751(0xcc)+_0x5b4751(0x117)+_0x40e613+'/'+_0xfa9922],{'stdio':'pipe'}),_0x40e613+'/'+_0xfa9922;}catch{}}}for(const _0x409dda of[_0x160a8b['mKDMy'],_0x160a8b[_0x5b4751(0x91)],_0x160a8b[_0x5b4751(0xd5)]]){try{if(_0x160a8b[_0x5b4751(0xec)]===_0x5b4751(0xb1))_0x160a8b[_0x5b4751(0x9d)](_0x2de017,'Could\x20no'+_0x5b4751(0xf8)+_0x5b4751(0xf2)+_0x5b4751(0x119)+'h\x20'+_0x222052+'.');else return execFileSync(_0x160a8b[_0x5b4751(0x116)],[_0x160a8b[_0x5b4751(0xc4)],_0x160a8b[_0x5b4751(0xf4)],_0x5b4751(0xed)+'ds/'+_0x409dda],{'stdio':_0x5b4751(0x87)}),_0x409dda;}catch{}}_0x160a8b[_0x5b4751(0x9d)](failAndExit,_0x160a8b[_0x5b4751(0x10a)]);}function getMergeBase(_0x178854){const _0x3cac87=_0xafd2,_0x57242c={'MzZVr':function(_0x2e80c3,_0x323f9f,_0x160169,_0x1d0a9b){return _0x2e80c3(_0x323f9f,_0x160169,_0x1d0a9b);},'SilLZ':_0x3cac87(0x9f),'hAMnl':'merge-ba'+'se','AiTYV':_0x3cac87(0xeb),'fDzDV':_0x3cac87(0x87),'PPeKc':function(_0x19edb6,_0x478950){return _0x19edb6(_0x478950);}};try{return _0x57242c['MzZVr'](execFileSync,_0x57242c[_0x3cac87(0xae)],[_0x57242c['hAMnl'],_0x178854,_0x57242c[_0x3cac87(0x7f)]],{'stdio':_0x57242c[_0x3cac87(0x112)]})['toString']()[_0x3cac87(0xac)]();}catch{_0x57242c[_0x3cac87(0x10c)](failAndExit,_0x3cac87(0xb7)+_0x3cac87(0xf8)+_0x3cac87(0xf2)+'base\x20wit'+'h\x20'+_0x178854+'.');}}function parseCommits(_0x582d93){const _0x495010=_0xafd2;return _0x582d93['split']('\x1e')[_0x495010(0x10f)](_0x2ccf3e=>_0x2ccf3e[_0x495010(0xac)]())['filter'](Boolean)[_0x495010(0x10f)](_0x32838f=>{const _0x5ce6d3=_0x495010,[_0x171d38='',_0x4b9b11='',_0x267e19='']=_0x32838f[_0x5ce6d3(0x81)]('\x1f');return{'hash':_0x171d38['trim'](),'subject':_0x4b9b11['trim'](),'body':_0x267e19['trim']()};})[_0x495010(0x82)](_0x3a65e3=>Boolean(_0x3a65e3[_0x495010(0x121)])&&Boolean(_0x3a65e3[_0x495010(0xb0)]));}export function getBranchContext(){const _0x3ffe2e=_0xafd2,_0x11ecf9={'pMMXC':function(_0x128b7a){return _0x128b7a();},'srZfv':function(_0x177dbb,_0x2afb1c,_0x295401,_0xe81969){return _0x177dbb(_0x2afb1c,_0x295401,_0xe81969);},'nhEAd':_0x3ffe2e(0x9f),'UgeJL':_0x3ffe2e(0x80),'tMWvS':'--pretty'+_0x3ffe2e(0xb5)+_0x3ffe2e(0x83)+_0x3ffe2e(0x8c)+'1e','fMWki':'pipe','sdbmI':'diff','vFRFt':_0x3ffe2e(0xa2),'tQNOq':_0x3ffe2e(0xf7)+_0x3ffe2e(0x111),'Sgzvk':function(_0x181aba,_0x28d6ea){return _0x181aba(_0x28d6ea);}},_0x49e44c=_0x11ecf9[_0x3ffe2e(0x11d)](resolveBaseRef),_0x27c806=getMergeBase(_0x49e44c),_0x31437f=_0x11ecf9[_0x3ffe2e(0xa1)](execFileSync,_0x11ecf9[_0x3ffe2e(0x10b)],[_0x11ecf9[_0x3ffe2e(0xcf)],_0x3ffe2e(0xfc)+'e',_0x11ecf9[_0x3ffe2e(0xc7)],_0x27c806+_0x3ffe2e(0xbd)],{'stdio':_0x11ecf9['fMWki']})['toString']()[_0x3ffe2e(0xac)](),_0x7c07b6=execFileSync(_0x3ffe2e(0x9f),[_0x11ecf9[_0x3ffe2e(0x9c)],_0x11ecf9[_0x3ffe2e(0xb6)],_0x27c806+'..HEAD'],{'stdio':_0x11ecf9['fMWki']})[_0x3ffe2e(0xb2)]()[_0x3ffe2e(0xac)](),_0x22a316=_0x11ecf9['srZfv'](execFileSync,_0x11ecf9[_0x3ffe2e(0x10b)],[_0x11ecf9[_0x3ffe2e(0x9c)],_0x11ecf9['tQNOq'],_0x27c806+_0x3ffe2e(0xbd)],{'stdio':_0x11ecf9['fMWki']})[_0x3ffe2e(0xb2)]()[_0x3ffe2e(0xac)]();return{'baseRef':_0x49e44c,'mergeBase':_0x27c806,'commits':_0x11ecf9[_0x3ffe2e(0x11f)](parseCommits,_0x31437f),'diffStat':_0x7c07b6,'changedFiles':_0x22a316};}export function getCommitHistory(_0x3298e9=0x78){const _0x36be99=_0xafd2,_0x2d51bd={'wiFHx':_0x36be99(0xa3),'cFtyc':function(_0x12e6fd,_0x192292,_0x1323f0,_0x503699){return _0x12e6fd(_0x192292,_0x1323f0,_0x503699);},'cLDZv':_0x36be99(0x9f),'iDSlq':_0x36be99(0x80),'zsbOv':function(_0xf1aa94,_0x4e6adf){return _0xf1aa94(_0x4e6adf);},'XzsJj':'Could\x20no'+_0x36be99(0x8e)+_0x36be99(0xda)+_0x36be99(0x7e)+'y.'};try{if(_0x36be99(0xa3)!==_0x2d51bd[_0x36be99(0x122)])return null;else{const _0x2889d7=_0x2d51bd[_0x36be99(0x101)](execFileSync,_0x2d51bd['cLDZv'],[_0x2d51bd[_0x36be99(0x8d)],'-'+_0x3298e9,_0x36be99(0xfc)+'e',_0x36be99(0xd6)+_0x36be99(0xb5)+'%H%x1f%s'+_0x36be99(0x8c)+_0x36be99(0xa9)+_0x36be99(0xc3),'--date=s'+_0x36be99(0xdc)],{'stdio':'pipe'})['toString']()[_0x36be99(0xac)]();return _0x2889d7[_0x36be99(0x81)]('\x1e')[_0x36be99(0x10f)](_0x150b69=>_0x150b69[_0x36be99(0xac)]())['filter'](Boolean)[_0x36be99(0x10f)](_0xb44d58=>{const _0x3f74e5=_0x36be99,[_0x24d1cb='',_0x4692f5='',_0x3255a3='',_0x1912c9='',_0x30c778='']=_0xb44d58[_0x3f74e5(0x81)]('\x1f');return{'hash':_0x24d1cb[_0x3f74e5(0xac)](),'subject':_0x4692f5[_0x3f74e5(0xac)](),'body':_0x3255a3[_0x3f74e5(0xac)](),'date':_0x1912c9['trim'](),'author':_0x30c778[_0x3f74e5(0xac)]()};})['filter'](_0x1d3162=>Boolean(_0x1d3162[_0x36be99(0x121)])&&Boolean(_0x1d3162['subject']));}}catch{_0x2d51bd['zsbOv'](failAndExit,_0x2d51bd[_0x36be99(0xe1)]);}}function parseNameStatusLine(_0x5f4db5){const _0x2d02d5=_0xafd2,_0x52c75a={'qzkpa':function(_0x571fdd,_0x2fa144){return _0x571fdd<_0x2fa144;},'kQDTR':function(_0x484cca,_0x10cb5e){return _0x484cca-_0x10cb5e;},'XjMoz':function(_0x589a57,_0x40abc1){return _0x589a57||_0x40abc1;}},_0x282972=_0x5f4db5['trim']();if(!_0x282972)return null;const _0x3696aa=_0x282972['split'](/\s+/);if(_0x52c75a[_0x2d02d5(0x114)](_0x3696aa['length'],0x2))return null;const _0x3c7f28=_0x3696aa[0x0][_0x2d02d5(0xac)](),_0x4f1385=_0x3696aa[_0x52c75a[_0x2d02d5(0xef)](_0x3696aa[_0x2d02d5(0xdf)],0x1)]['trim']();if(_0x52c75a['XjMoz'](!_0x3c7f28,!_0x4f1385))return null;return{'status':_0x3c7f28,'path':_0x4f1385};}export function stageAll(){const _0x121b6d=_0xafd2,_0x71c737={'mJDfB':function(_0x534584,_0x324406,_0x5d520a,_0x135683){return _0x534584(_0x324406,_0x5d520a,_0x135683);},'ImoSI':_0x121b6d(0x9f),'cslMT':_0x121b6d(0xd9),'tAXmA':function(_0x44b9a5,_0x1aad09){return _0x44b9a5(_0x1aad09);},'QTOTH':_0x121b6d(0xc8)+_0x121b6d(0x120)+_0x121b6d(0xce)+_0x121b6d(0xba)+_0x121b6d(0xee)};try{_0x71c737[_0x121b6d(0xf5)](execFileSync,_0x71c737['ImoSI'],[_0x121b6d(0xf9),'.'],{'stdio':_0x71c737[_0x121b6d(0xbf)]});}catch{_0x71c737[_0x121b6d(0xa0)](failAndExit,_0x71c737[_0x121b6d(0xa4)]);}}function _0x4dc0(){const _0x32b91b=['\x20a\x20remot','pMMXC','iGKdz','Sgzvk','o\x20stage\x20','hash','wiFHx','199970qGsdww','RbzrG','vdRDB','t\x20histor','AiTYV','log','split','filter','%H%x1f%s','am}','Not\x20a\x20gi','NeIME','pipe','5127132dEHqKH','isNaN','diPRN','-ref','%x1f%b%x','iDSlq','t\x20read\x20g','63MUTwoH','--short','YsFFt','19350408EetvAi','8295088jlXTMn','AJxoJ','VPCRu','bQswT','--numsta','--verify','git\x20bran','nzvxE','t\x20staged','sdbmI','Fygnv','SaRZe','git','tAXmA','srZfv','--stat','BJBzS','QTOTH','/HEAD','symbolic','hQfes','includes','1f%ad%x1','\x20main/ma','parseInt','trim','whufO','SilLZ','AJLSi','subject','eDQQg','toString','nbisE','tory.','=format:','vFRFt','Could\x20no','5zvKFjX','eCQVX','th\x20git\x20a','wClAw','indexOf','..HEAD','\x20branch.','cslMT','+)+$','MUHsd','xzyfr','f%an%x1e','omavi','erify\x20--','r\x20create','tMWvS','Failed\x20t','\x20current','nch.\x20Set','apply','refs/rem','--cached','files\x20wi','UgeJL','ster.','4543YxiCXm','quiet\x20re','7686vLRnBx','ntlXe','qyBEu','--pretty','LqOUo','tor','inherit','it\x20commi','search','hort','@{upstre','waTii','length','origin','XzsJj','OIByk','-ref\x20--v','status','GeTpZ','EDJXR','jcjBP','UbsJY','mGvVS','w-curren','HEAD','LoZbL','refs/hea','dd\x20.','kQDTR','8ivbxlq','main','e\x20merge-','bolic-fu','jNhhW','mJDfB','ef\x20--sym','--name-s','t\x20comput','add','jexqL','ZHoHD','--revers','1093940imGkOp','fs/heads','git\x20remo','diff','cFtyc','master','PLeFf','193532nKHFAo','slice','git\x20show','jhKhr','qDykl','FDDKq','DlLCc','nhEAd','PPeKc','CphsK','ll-name\x20','map','sovAe','tatus','fDzDV','QxCNM','qzkpa','e\x20HEAD\x20o','UvQTv','otes/','xgTPk','base\x20wit','t\x20detect','construc'];_0x4dc0=function(){return _0x32b91b;};return _0x4dc0();}export function getStagedContext(_0x28822b=0x2710){const _0x573433=_0xafd2,_0x8f51e3={'mGvVS':function(_0x5a12f1,_0x3c49cd){return _0x5a12f1(_0x3c49cd);},'RbzrG':_0x573433(0x100),'whufO':'--cached','ntlXe':_0x573433(0xa2),'jexqL':_0x573433(0x97)+'t','cWuxo':function(_0x25d9d3,_0x59de23){return _0x25d9d3>_0x59de23;},'hQfes':_0x573433(0xc8)+'o\x20inspec'+_0x573433(0x9b)+'\x20changes'+'.'};try{const _0x5468fc=_0x8f51e3[_0x573433(0xe9)](runGit,[_0x8f51e3[_0x573433(0x124)],_0x8f51e3[_0x573433(0xad)],_0x573433(0xf7)+_0x573433(0x111)]),_0xcf9b0e=_0x8f51e3[_0x573433(0xe9)](runGit,[_0x8f51e3[_0x573433(0x124)],_0x8f51e3[_0x573433(0xad)],_0x8f51e3[_0x573433(0xd4)]])[_0x573433(0xac)](),_0x34c813=_0x8f51e3[_0x573433(0xe9)](runGit,[_0x573433(0x100),_0x573433(0xcd)]),_0x271b19=runGit([_0x573433(0x100),_0x8f51e3[_0x573433(0xad)],_0x8f51e3[_0x573433(0xfa)]]),_0x37172a=_0x5468fc['split'](/\r?\n/)[_0x573433(0x10f)](_0x4a05a6=>parseNameStatusLine(_0x4a05a6))[_0x573433(0x82)](_0x5ac58f=>Boolean(_0x5ac58f));let _0x4de37f=0x0,_0x588668=0x0;for(const _0x52da47 of _0x271b19[_0x573433(0x81)](/\r?\n/)){const _0xb0cc76=_0x52da47[_0x573433(0xac)]();if(!_0xb0cc76)continue;const [_0x5845dc='0',_0x478d28='0']=_0xb0cc76[_0x573433(0x81)](/\s+/),_0x293021=Number[_0x573433(0xab)](_0x5845dc,0xa),_0x5d3b4b=Number[_0x573433(0xab)](_0x478d28,0xa);_0x4de37f+=Number[_0x573433(0x89)](_0x293021)?0x0:_0x293021,_0x588668+=Number[_0x573433(0x89)](_0x5d3b4b)?0x0:_0x5d3b4b;}const _0xbd205f=_0x8f51e3['cWuxo'](_0x34c813[_0x573433(0xdf)],_0x28822b),_0x458967=_0xbd205f?_0x34c813[_0x573433(0x105)](0x0,_0x28822b):_0x34c813;return{'files':_0x37172a,'diffStat':_0xcf9b0e,'patch':_0x458967[_0x573433(0xac)](),'metrics':{'fileCount':_0x37172a[_0x573433(0xdf)],'insertions':_0x4de37f,'deletions':_0x588668,'patchChars':_0x34c813[_0x573433(0xdf)],'truncated':_0xbd205f}};}catch{_0x8f51e3[_0x573433(0xe9)](failAndExit,_0x8f51e3[_0x573433(0xa7)]);}}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x2ab845=_0x151b;(function(_0x222bfd,_0x19c716){const _0x544472=_0x151b,_0x5e7378=_0x222bfd();while(!![]){try{const _0x450ea4=-parseInt(_0x544472(0x202))/0x1+-parseInt(_0x544472(0x1ed))/0x2*(parseInt(_0x544472(0x19d))/0x3)+-parseInt(_0x544472(0x1f1))/0x4+parseInt(_0x544472(0x1c0))/0x5+-parseInt(_0x544472(0x1dc))/0x6+parseInt(_0x544472(0x1d2))/0x7*(parseInt(_0x544472(0x1fb))/0x8)+parseInt(_0x544472(0x19e))/0x9;if(_0x450ea4===_0x19c716)break;else _0x5e7378['push'](_0x5e7378['shift']());}catch(_0x19a6f6){_0x5e7378['push'](_0x5e7378['shift']());}}}(_0x15b6,0xbc30b));const _0x5d01b5=(function(){let _0xeea13c=!![];return function(_0x105bff,_0x18e878){const _0x5ccf6c=_0xeea13c?function(){if(_0x18e878){const _0x54bd8e=_0x18e878['apply'](_0x105bff,arguments);return _0x18e878=null,_0x54bd8e;}}:function(){};return _0xeea13c=![],_0x5ccf6c;};}()),_0x45829e=_0x5d01b5(this,function(){const _0x5c5ac5=_0x151b,_0x40bcba={'XtLhf':_0x5c5ac5(0x1b7)+_0x5c5ac5(0x1d3)};return _0x45829e['toString']()[_0x5c5ac5(0x184)](_0x40bcba['XtLhf'])[_0x5c5ac5(0x1e9)]()[_0x5c5ac5(0x1c7)+_0x5c5ac5(0x1ef)](_0x45829e)[_0x5c5ac5(0x184)](_0x40bcba[_0x5c5ac5(0x1b1)]);});_0x45829e();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';function _0x15b6(){const _0x2c0b80=['s:\x0a\x20\x20gem','t)\x20befor','\x20a\x20chang','\x20provide','parseAsy','21aFldkg','+)+$','\x20current','version','Generate','e\x20and\x20de','after','ommit\x20hi','-c,\x20--co','catch','3901956XhlYxZ','/test\x20(i','er,\x20mode','ERLrx','Stage\x20ch','log\x0a\x20\x20ge','zexfz','commit\x20m','Suggest\x20','Summariz','trim','Configur','gemit\x20in','toString','ranch','as\x20done\x20','\x20branch\x20','24WsHrys','action','tor','t\x20--all\x0a','4114616bRxwDq','l,\x20and\x20A','(require','<descrip','Stage\x20al','r,\x20model','-check\x0a\x20','commit','on\x20numbe','emit\x20pr\x0a','1793672TwShps','length','mmit\x20sug','descript','e/summar','command','--check','1037609XdpdhG','PI\x20key\x20(','log','e\x20name\x20(','e\x20creati','option','-v,\x20--ve','\x20for\x20com','elog\x20fil','search','irm\x20flow','dd\x20--all','n\x20from\x20b','Base\x20fil','in\x20the\x20c','\x0aExample','mmits','mBnEl','name)','\x0a\x20\x20gemit','\x20name\x20an','flow','init','gemit','ch\x20names','argv','argument','add','ault:\x2020','it\x0a\x20\x20gem','mmits\x20<n','\x20\x20gemit\x20','e\x20descri','ion','316809XAUyxA','32037876jxmkeh','global)','tion...>','e\x20provid','\x20gemit\x20a','commit\x20-','\x20to\x20incl','\x22oauth\x20l','Validate','Feature\x20','a\x20branch','ext','ally\x20cre','d\x20run\x20co','hzlKN','umber>','Run\x20stag','Number\x20o','cyan','XtLhf','l\x20change','est/conf','anges\x20an','UlEpm','\x20.)','(((.+)+)','RwAWr','ize/sugg','scriptio','addHelpT','e\x20what\x20w','Run\x20lint',',\x20and\x20ke','he\x20versi','2611305IecFMO','a\x20featur','--all','ption.','cSpUg','it\x20commi','mits','construc','mit\x20chan','branch','d\x20option','ude\x20(def','y\x20config'];_0x15b6=function(){return _0x2c0b80;};return _0x15b6();}import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();function _0x151b(_0x157a0f,_0x51b538){_0x157a0f=_0x157a0f-0x17f;const _0x298f10=_0x15b6();let _0x45829e=_0x298f10[_0x157a0f];return _0x45829e;}const program=new Command();program['name'](_0x2ab845(0x192))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](style(_0x2ab845(0x1e4)+_0x2ab845(0x1e3)+'essages\x20'+'and\x20bran'+_0x2ab845(0x193)+'\x20with\x20AI',ui[_0x2ab845(0x1b0)]))[_0x2ab845(0x1d5)](getCliVersion(),_0x2ab845(0x181)+'rsion','output\x20t'+_0x2ab845(0x1bf)+_0x2ab845(0x1f9)+'r'),program[_0x2ab845(0x1bb)+_0x2ab845(0x1a9)](_0x2ab845(0x1d8),_0x2ab845(0x18a)+_0x2ab845(0x1cd)+_0x2ab845(0x198)+_0x2ab845(0x1c5)+_0x2ab845(0x1f0)+_0x2ab845(0x19a)+_0x2ab845(0x1a3)+_0x2ab845(0x1f7)+_0x2ab845(0x1a2)+_0x2ab845(0x186)+_0x2ab845(0x18e)+_0x2ab845(0x1ec)+_0x2ab845(0x1a5)+'ogin\x20scr'+'een\x22\x0a\x20\x20g'+_0x2ab845(0x1fa)+_0x2ab845(0x19a)+_0x2ab845(0x1e1)+_0x2ab845(0x1c8)+'gelog\x0a\x20\x20'+_0x2ab845(0x1e8)+'it\x0a\x20\x20gem'+'it\x20docto'+'r\x0a'),program[_0x2ab845(0x200)](_0x2ab845(0x1f8))['descript'+'ion'](_0x2ab845(0x1ae)+_0x2ab845(0x1ff)+_0x2ab845(0x1b9)+_0x2ab845(0x1b3)+_0x2ab845(0x185)+_0x2ab845(0x182)+_0x2ab845(0x1c6))['option'](_0x2ab845(0x1c2),_0x2ab845(0x1f5)+_0x2ab845(0x1b2)+'s\x20first\x20'+'(git\x20add'+_0x2ab845(0x1b6))['option']('--check','Run\x20lint'+_0x2ab845(0x1dd)+'f\x20presen'+_0x2ab845(0x1ce)+'e\x20creati'+'ng\x20commi'+'t')[_0x2ab845(0x1ee)](_0x54e213=>generateCommit(_0x54e213)),program[_0x2ab845(0x200)](_0x2ab845(0x196))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1e0)+_0x2ab845(0x1b4)+_0x2ab845(0x1ab)+_0x2ab845(0x1fd)+'gestion\x20'+_0x2ab845(0x190))[_0x2ab845(0x180)](_0x2ab845(0x1c2),_0x2ab845(0x1f5)+_0x2ab845(0x1b2)+'s\x20first\x20'+_0x2ab845(0x1f3)+'d)')[_0x2ab845(0x180)](_0x2ab845(0x201),_0x2ab845(0x1bd)+_0x2ab845(0x1dd)+'f\x20presen'+_0x2ab845(0x1ce)+_0x2ab845(0x17f)+'ng\x20commi'+'t')[_0x2ab845(0x1ee)](_0x4876d5=>addAndCommit(_0x4876d5)),program[_0x2ab845(0x200)](_0x2ab845(0x1c9))[_0x2ab845(0x1fe)+'ion']('Suggest\x20'+_0x2ab845(0x1a8)+_0x2ab845(0x18f)+_0x2ab845(0x1ca)+_0x2ab845(0x1aa)+'ate\x20the\x20'+_0x2ab845(0x1c9))[_0x2ab845(0x195)](_0x2ab845(0x1f4)+_0x2ab845(0x1a0),_0x2ab845(0x1a7)+_0x2ab845(0x1fe)+_0x2ab845(0x19c))[_0x2ab845(0x1ee)](async _0x47b377=>{const _0x2a7580=_0x2ab845,_0x1d68ed={'ERLrx':function(_0x127ddc,_0xec7d3){return _0x127ddc(_0xec7d3);},'UlEpm':'Provide\x20'+_0x2a7580(0x1c1)+_0x2a7580(0x19b)+_0x2a7580(0x1c3)},_0x2dc0e6=_0x47b377['join']('\x20')[_0x2a7580(0x1e6)]();!_0x2dc0e6&&_0x1d68ed[_0x2a7580(0x1df)](failAndExit,_0x1d68ed[_0x2a7580(0x1b5)]),await _0x1d68ed['ERLrx'](suggestBranch,_0x2dc0e6);}),program[_0x2ab845(0x200)]('pr')[_0x2ab845(0x1fe)+'ion']('Generate'+'\x20PR\x20titl'+_0x2ab845(0x1d7)+_0x2ab845(0x1ba)+_0x2ab845(0x187)+'ranch\x20co'+_0x2ab845(0x18b))[_0x2ab845(0x1ee)](generatePullRequestText),program['command'](_0x2ab845(0x204))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1e5)+_0x2ab845(0x1bc)+_0x2ab845(0x1eb)+_0x2ab845(0x189)+'urrent\x20b'+_0x2ab845(0x1ea))[_0x2ab845(0x1ee)](summarizeBranchLog),program['command']('changelo'+'g')[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1d6)+_0x2ab845(0x1cf)+_0x2ab845(0x183)+'e\x20from\x20c'+_0x2ab845(0x1d9)+'story')[_0x2ab845(0x195)]('[name]',_0x2ab845(0x188)+_0x2ab845(0x205)+'default:'+_0x2ab845(0x1d4)+_0x2ab845(0x1ec)+_0x2ab845(0x18d))[_0x2ab845(0x180)](_0x2ab845(0x1da)+_0x2ab845(0x199)+_0x2ab845(0x1ad),_0x2ab845(0x1af)+'f\x20recent'+'\x20commits'+_0x2ab845(0x1a4)+_0x2ab845(0x1cb)+_0x2ab845(0x197)+')')[_0x2ab845(0x1ee)]((_0x3e1c6c,_0x4c98ea)=>generateChangelog(_0x3e1c6c,_0x4c98ea)),program[_0x2ab845(0x200)](_0x2ab845(0x191))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1e7)+_0x2ab845(0x1a1)+_0x2ab845(0x1de)+_0x2ab845(0x1f2)+_0x2ab845(0x203)+_0x2ab845(0x19f))[_0x2ab845(0x1ee)](initConfig),program[_0x2ab845(0x200)]('doctor')['descript'+_0x2ab845(0x19c)](_0x2ab845(0x1a6)+_0x2ab845(0x1d0)+_0x2ab845(0x1f6)+_0x2ab845(0x1be)+_0x2ab845(0x1cc)+'uration')[_0x2ab845(0x1ee)](doctorConfig);async function main(){const _0x5f237f=_0x2ab845,_0x2db026={'zexfz':function(_0x1f86c9,_0x5d5330){return _0x1f86c9(_0x5d5330);},'RwAWr':function(_0x39b2b8,_0x5d98fc){return _0x39b2b8<=_0x5d98fc;},'mBnEl':function(_0x58252d){return _0x58252d();}};await _0x2db026[_0x5f237f(0x1e2)](maybeAutoUpdate,process[_0x5f237f(0x194)]);if(_0x2db026[_0x5f237f(0x1b8)](process[_0x5f237f(0x194)][_0x5f237f(0x1fc)],0x2)){await _0x2db026[_0x5f237f(0x18c)](generateCommit);return;}await program[_0x5f237f(0x1d1)+'nc'](process['argv']);}main()[_0x2ab845(0x1db)](_0x5dc882=>{const _0xd30634=_0x2ab845,_0x1a5b7a={'sIZEK':function(_0x189ee2,_0x4c8849){return _0x189ee2 instanceof _0x4c8849;},'hzlKN':function(_0x36f118,_0x348463){return _0x36f118(_0x348463);},'cSpUg':function(_0x2aad31,_0x99fc05){return _0x2aad31(_0x99fc05);}},_0x2c6447=_0x1a5b7a['sIZEK'](_0x5dc882,Error)?_0x5dc882['message']:_0x1a5b7a[_0xd30634(0x1ac)](String,_0x5dc882);_0x1a5b7a[_0xd30634(0x1c4)](failAndExit,_0x2c6447);});
2
+ const _0x3e8089=_0xf483;(function(_0x369027,_0x47e7eb){const _0x5a2036=_0xf483,_0x564c1c=_0x369027();while(!![]){try{const _0x2b2de3=parseInt(_0x5a2036(0x1ef))/0x1*(-parseInt(_0x5a2036(0x1fd))/0x2)+parseInt(_0x5a2036(0x202))/0x3+parseInt(_0x5a2036(0x206))/0x4+parseInt(_0x5a2036(0x21e))/0x5*(parseInt(_0x5a2036(0x22b))/0x6)+parseInt(_0x5a2036(0x263))/0x7*(-parseInt(_0x5a2036(0x1e3))/0x8)+parseInt(_0x5a2036(0x247))/0x9+-parseInt(_0x5a2036(0x252))/0xa;if(_0x2b2de3===_0x47e7eb)break;else _0x564c1c['push'](_0x564c1c['shift']());}catch(_0x45a6b3){_0x564c1c['push'](_0x564c1c['shift']());}}}(_0x4c7b,0x52366));function _0x4c7b(){const _0x171e87=['changelo','\x20PR\x20titl','\x20current','\x20name\x20an','ize/sugg','er,\x20mode','--all','as\x20done\x20','\x22oauth\x20l','50viFwhb','a\x20branch','plKJX','Run\x20lint','name)','e\x20provid','ate\x20the\x20','mit\x20chan','fJCnL','elog\x20fil','(require','parseAsy','\x20for\x20com','193350UsJOII','and\x20bran','Validate','s:\x0a\x20\x20gem','e\x20descri','commit\x20-','Suggest\x20','it\x0a\x20\x20gem','branch','\x20commits','tion...>','\x20a\x20chang','nrvyc','\x20.)','addHelpT','gelog\x0a\x20\x20','f\x20presen','on\x20numbe','flow','argv','it\x20commi','e\x20and\x20de','gestion\x20','e\x20name\x20(','WoOeb','s\x20first\x20','default:','log','3612735QqXLRS','he\x20versi','log\x0a\x20\x20ge','ext','r,\x20model','eJuRE','join','Number\x20o','commit\x20m','\x20with\x20AI','d\x20option','8420140iDKsai','add','construc','ng\x20commi','l\x20change','Stage\x20ch','e\x20what\x20w','-c,\x20--co','toString','ault:\x2020','e\x20creati','argument','t)\x20befor','cyan','ZXiEh','irm\x20flow','doctor','7wXRxim','gemit','mmit\x20sug','/test\x20(i','global)','ch\x20names','ion','1975016tKhcte','message','--check','Feature\x20','[name]','apply','d\x20run\x20co','it\x20docto','\x20gemit\x20a','\x0a\x20\x20gemit','n\x20from\x20b','essages\x20','40317oRzckx','story','dd\x20--all','search','ranch','l,\x20and\x20A',',\x20and\x20ke','command','Provide\x20','commit','rsion','y\x20config','\x20provide','mmits\x20<n','4MpFwNY','option','-v,\x20--ve','\x20branch\x20','t\x20--all\x0a','1356048SJVJUF','Generate','output\x20t','Run\x20stag','1322344ciDMYo','ude\x20(def','e\x20from\x20c','catch','ogin\x20scr','length','a\x20featur','-check\x0a\x20','Stage\x20al','descript','umber>','action','(git\x20add','Configur','ption.'];_0x4c7b=function(){return _0x171e87;};return _0x4c7b();}const _0x3d2249=(function(){let _0x1e7a40=!![];return function(_0x86a36e,_0x48ea66){const _0x11bff7=_0x1e7a40?function(){const _0x197485=_0xf483;if(_0x48ea66){const _0x351d1a=_0x48ea66[_0x197485(0x1e8)](_0x86a36e,arguments);return _0x48ea66=null,_0x351d1a;}}:function(){};return _0x1e7a40=![],_0x11bff7;};}()),_0x114544=_0x3d2249(this,function(){const _0x4b8a4d=_0xf483,_0x586c71={'WoOeb':'(((.+)+)'+'+)+$'};return _0x114544['toString']()[_0x4b8a4d(0x1f2)](_0x586c71[_0x4b8a4d(0x243)])[_0x4b8a4d(0x25a)]()[_0x4b8a4d(0x254)+'tor'](_0x114544)[_0x4b8a4d(0x1f2)](_0x586c71[_0x4b8a4d(0x243)]);});_0x114544();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';function _0xf483(_0x1d8c3a,_0x5987e1){_0x1d8c3a=_0x1d8c3a-0x1df;const _0x184124=_0x4c7b();let _0x114544=_0x184124[_0x1d8c3a];return _0x114544;}import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program['name'](_0x3e8089(0x264))['descript'+_0x3e8089(0x1e2)](style(_0x3e8089(0x231)+_0x3e8089(0x24f)+_0x3e8089(0x1ee)+_0x3e8089(0x22c)+_0x3e8089(0x1e1)+_0x3e8089(0x250),ui[_0x3e8089(0x25f)]))['version'](getCliVersion(),_0x3e8089(0x1ff)+_0x3e8089(0x1f9),_0x3e8089(0x204)+_0x3e8089(0x248)+_0x3e8089(0x23c)+'r'),program[_0x3e8089(0x239)+_0x3e8089(0x24a)]('after','\x0aExample'+_0x3e8089(0x22e)+_0x3e8089(0x232)+_0x3e8089(0x23f)+_0x3e8089(0x201)+'\x20\x20gemit\x20'+_0x3e8089(0x230)+_0x3e8089(0x20d)+_0x3e8089(0x1eb)+_0x3e8089(0x1f1)+_0x3e8089(0x1ec)+_0x3e8089(0x200)+_0x3e8089(0x21d)+_0x3e8089(0x20a)+'een\x22\x0a\x20\x20g'+'emit\x20pr\x0a'+'\x20\x20gemit\x20'+_0x3e8089(0x249)+_0x3e8089(0x225)+_0x3e8089(0x23a)+'gemit\x20in'+_0x3e8089(0x232)+_0x3e8089(0x1ea)+'r\x0a'),program[_0x3e8089(0x1f6)](_0x3e8089(0x1f8))['descript'+_0x3e8089(0x1e2)](_0x3e8089(0x205)+'e/summar'+_0x3e8089(0x219)+'est/conf'+_0x3e8089(0x261)+_0x3e8089(0x22a)+'mits')[_0x3e8089(0x1fe)](_0x3e8089(0x21b),'Stage\x20al'+_0x3e8089(0x256)+'s\x20first\x20'+_0x3e8089(0x212)+_0x3e8089(0x238))[_0x3e8089(0x1fe)](_0x3e8089(0x1e5),_0x3e8089(0x221)+_0x3e8089(0x1df)+_0x3e8089(0x23b)+'t)\x20befor'+_0x3e8089(0x25c)+_0x3e8089(0x255)+'t')['action'](_0x29f4e5=>generateCommit(_0x29f4e5)),program['command'](_0x3e8089(0x253))[_0x3e8089(0x20f)+_0x3e8089(0x1e2)](_0x3e8089(0x257)+'anges\x20an'+_0x3e8089(0x1e9)+_0x3e8089(0x265)+_0x3e8089(0x241)+_0x3e8089(0x23d))['option'](_0x3e8089(0x21b),_0x3e8089(0x20e)+'l\x20change'+_0x3e8089(0x244)+_0x3e8089(0x228)+'d)')[_0x3e8089(0x1fe)](_0x3e8089(0x1e5),_0x3e8089(0x221)+_0x3e8089(0x1df)+_0x3e8089(0x23b)+_0x3e8089(0x25e)+'e\x20creati'+_0x3e8089(0x255)+'t')['action'](_0x42d51c=>addAndCommit(_0x42d51c)),program[_0x3e8089(0x1f6)](_0x3e8089(0x233))[_0x3e8089(0x20f)+_0x3e8089(0x1e2)]('Suggest\x20'+_0x3e8089(0x21f)+_0x3e8089(0x218)+_0x3e8089(0x251)+'ally\x20cre'+_0x3e8089(0x224)+_0x3e8089(0x233))['argument']('<descrip'+_0x3e8089(0x235),_0x3e8089(0x1e6)+_0x3e8089(0x20f)+_0x3e8089(0x1e2))[_0x3e8089(0x211)](async _0x3f4c09=>{const _0x49b74e=_0x3e8089,_0x5a15fd={'plKJX':_0x49b74e(0x1f7)+_0x49b74e(0x20c)+_0x49b74e(0x22f)+_0x49b74e(0x214),'fJCnL':function(_0x5eaf9b,_0x298874){return _0x5eaf9b(_0x298874);}},_0x535419=_0x3f4c09[_0x49b74e(0x24d)]('\x20')['trim']();!_0x535419&&failAndExit(_0x5a15fd[_0x49b74e(0x220)]),await _0x5a15fd[_0x49b74e(0x226)](suggestBranch,_0x535419);}),program['command']('pr')['descript'+'ion'](_0x3e8089(0x203)+_0x3e8089(0x216)+_0x3e8089(0x240)+'scriptio'+_0x3e8089(0x1ed)+'ranch\x20co'+'mmits')['action'](generatePullRequestText),program['command'](_0x3e8089(0x246))[_0x3e8089(0x20f)+_0x3e8089(0x1e2)]('Summariz'+_0x3e8089(0x258)+_0x3e8089(0x21c)+'in\x20the\x20c'+'urrent\x20b'+_0x3e8089(0x1f3))[_0x3e8089(0x211)](summarizeBranchLog),program[_0x3e8089(0x1f6)](_0x3e8089(0x215)+'g')[_0x3e8089(0x20f)+_0x3e8089(0x1e2)](_0x3e8089(0x203)+_0x3e8089(0x236)+_0x3e8089(0x227)+_0x3e8089(0x208)+'ommit\x20hi'+_0x3e8089(0x1f0))[_0x3e8089(0x25d)](_0x3e8089(0x1e7),'Base\x20fil'+_0x3e8089(0x242)+_0x3e8089(0x245)+_0x3e8089(0x217)+_0x3e8089(0x200)+_0x3e8089(0x222))[_0x3e8089(0x1fe)](_0x3e8089(0x259)+_0x3e8089(0x1fc)+_0x3e8089(0x210),_0x3e8089(0x24e)+'f\x20recent'+_0x3e8089(0x234)+'\x20to\x20incl'+_0x3e8089(0x207)+_0x3e8089(0x25b)+')')['action']((_0x12898e,_0x3931b5)=>generateChangelog(_0x12898e,_0x3931b5)),program['command']('init')[_0x3e8089(0x20f)+_0x3e8089(0x1e2)](_0x3e8089(0x213)+_0x3e8089(0x223)+_0x3e8089(0x21a)+_0x3e8089(0x1f4)+'PI\x20key\x20('+_0x3e8089(0x1e0))['action'](initConfig),program[_0x3e8089(0x1f6)](_0x3e8089(0x262))[_0x3e8089(0x20f)+_0x3e8089(0x1e2)](_0x3e8089(0x22d)+_0x3e8089(0x1fb)+_0x3e8089(0x24b)+_0x3e8089(0x1f5)+_0x3e8089(0x1fa)+'uration')['action'](doctorConfig);async function main(){const _0x39d947=_0x3e8089,_0xe58c70={'nrvyc':function(_0x2941e4,_0x435af4){return _0x2941e4(_0x435af4);},'eJuRE':function(_0x3c6706,_0x5d53bd){return _0x3c6706<=_0x5d53bd;}};await _0xe58c70[_0x39d947(0x237)](maybeAutoUpdate,process[_0x39d947(0x23e)]);if(_0xe58c70[_0x39d947(0x24c)](process[_0x39d947(0x23e)][_0x39d947(0x20b)],0x2)){await generateCommit();return;}await program[_0x39d947(0x229)+'nc'](process[_0x39d947(0x23e)]);}main()[_0x3e8089(0x209)](_0x5eddfc=>{const _0x2c9ce1=_0x3e8089,_0x4110c8={'cZhmO':function(_0x37c7b5,_0x5648bd){return _0x37c7b5(_0x5648bd);},'ZXiEh':function(_0x3dc451,_0x3d02a6){return _0x3dc451(_0x3d02a6);}},_0x2fabb2=_0x5eddfc instanceof Error?_0x5eddfc[_0x2c9ce1(0x1e4)]:_0x4110c8['cZhmO'](String,_0x5eddfc);_0x4110c8[_0x2c9ce1(0x260)](failAndExit,_0x2fabb2);});
@@ -1 +1 @@
1
- (function(_0xf9ed68,_0x281390){const _0x3dcd1b=_0x1575,_0x277535=_0xf9ed68();while(!![]){try{const _0x4d615d=-parseInt(_0x3dcd1b(0xcd))/0x1+parseInt(_0x3dcd1b(0xb3))/0x2*(-parseInt(_0x3dcd1b(0xe6))/0x3)+-parseInt(_0x3dcd1b(0xd8))/0x4+parseInt(_0x3dcd1b(0xc4))/0x5*(-parseInt(_0x3dcd1b(0xbb))/0x6)+-parseInt(_0x3dcd1b(0xae))/0x7*(-parseInt(_0x3dcd1b(0xb7))/0x8)+parseInt(_0x3dcd1b(0xd0))/0x9*(-parseInt(_0x3dcd1b(0xd5))/0xa)+parseInt(_0x3dcd1b(0xc8))/0xb;if(_0x4d615d===_0x281390)break;else _0x277535['push'](_0x277535['shift']());}catch(_0x8e6b49){_0x277535['push'](_0x277535['shift']());}}}(_0x1a6d,0xb67d0));const _0x790111=(function(){const _0x388a15={'EWaCq':'edFDE'};let _0x2b1ebb=!![];return function(_0x257712,_0x5689e1){const _0x548374=_0x2b1ebb?function(){const _0x3fe327=_0x1575;if(_0x5689e1){if(_0x388a15['EWaCq']!=='DyiGF'){const _0x5c467d=_0x5689e1[_0x3fe327(0xc2)](_0x257712,arguments);return _0x5689e1=null,_0x5c467d;}else return _0x54db4c['trim']();}}:function(){};return _0x2b1ebb=![],_0x548374;};}()),_0x1d97fc=_0x790111(this,function(){const _0x3fe9ca=_0x1575,_0x333a2c={'QjqDZ':_0x3fe9ca(0xc5)+_0x3fe9ca(0xda)};return _0x1d97fc[_0x3fe9ca(0xd3)]()['search'](_0x333a2c[_0x3fe9ca(0xdd)])[_0x3fe9ca(0xd3)]()['construc'+_0x3fe9ca(0xe2)](_0x1d97fc)[_0x3fe9ca(0xc6)](_0x333a2c[_0x3fe9ca(0xdd)]);});_0x1d97fc();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x3acc48){const _0x50f50a=_0x1575,_0x197047={'itvuO':function(_0xc9e33d,_0x245ab4){return _0xc9e33d(_0x245ab4);},'ovjZv':_0x50f50a(0xbe),'VUxsE':_0x50f50a(0xad)},_0x8e751c=process.env[_0x3acc48];if(!_0x8e751c){if(_0x197047[_0x50f50a(0xcc)]===_0x197047[_0x50f50a(0xd2)]){if(typeof _0x39f702===_0x50f50a(0xb5))return _0x3dea67[_0x50f50a(0xd4)]();if(_0xb4cf33['isArray'](_0x17ec66))return _0x473ef2[_0x50f50a(0xb8)](_0x5f85db=>typeof _0x5f85db===_0x50f50a(0xb5)?_0x5f85db:_0x5f85db?.[_0x50f50a(0xe0)]||'')[_0x50f50a(0xd7)]('')['trim']();return _0x197047[_0x50f50a(0xc1)](_0x283fbb,_0x264cc6||'')[_0x50f50a(0xd4)]();}else throw new Error('Set\x20the\x20'+_0x3acc48+('\x20environ'+_0x50f50a(0xb4)+_0x50f50a(0xde)));}return _0x8e751c;}export function createLLM(){const _0x2128e3=_0x1575,_0x54c52a={'ZKTAa':'(((.+)+)'+_0x2128e3(0xda),'icThg':function(_0x3ee2a4,_0x5091a5){return _0x3ee2a4===_0x5091a5;},'mWdrd':_0x2128e3(0xbd),'zJcfs':'xWeIV','ucWDS':_0x2128e3(0xe4)+_0x2128e3(0xcf)+'EY\x20or\x20GE'+_0x2128e3(0xce)+_0x2128e3(0xe7),'ETzFT':_0x2128e3(0xdb),'iZqmV':function(_0x32394c,_0x3f04fd){return _0x32394c===_0x3f04fd;},'PbsMq':_0x2128e3(0xca),'PXScY':'gapxS','lvQdB':function(_0x78e0a8,_0x313894){return _0x78e0a8(_0x313894);},'cDWTG':_0x2128e3(0xb2)+_0x2128e3(0xc3),'zTqte':'anthropi'+'c'},_0x2fed87=(process.env.LLM_PROVIDER||_0x2128e3(0xbd))[_0x2128e3(0xc9)+_0x2128e3(0xb6)](),_0x12c990=process.env.LLM_MODEL||_0x2128e3(0xcb)+_0x2128e3(0xc7);if(_0x54c52a[_0x2128e3(0xc0)](_0x2fed87,_0x54c52a[_0x2128e3(0xe5)])){const _0x1ddffa=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x1ddffa){if(_0x54c52a[_0x2128e3(0xba)]===_0x54c52a[_0x2128e3(0xba)])throw new Error(_0x54c52a[_0x2128e3(0xb1)]);else throw new _0x51d1d1(_0x2128e3(0xe4)+'LE_API_K'+'EY\x20or\x20GE'+_0x2128e3(0xce)+'_KEY.');}return new ChatGoogleGenerativeAI({'model':_0x12c990,'apiKey':_0x1ddffa,'temperature':0.2});}if(_0x54c52a[_0x2128e3(0xc0)](_0x2fed87,_0x54c52a[_0x2128e3(0xb9)]))return _0x54c52a[_0x2128e3(0xd1)](_0x54c52a[_0x2128e3(0xb0)],_0x54c52a[_0x2128e3(0xaf)])?_0x433002[_0x2128e3(0xd3)]()[_0x2128e3(0xc6)](xDRgnb[_0x2128e3(0xac)])['toString']()[_0x2128e3(0xe3)+_0x2128e3(0xe2)](_0x57e806)['search']('(((.+)+)'+_0x2128e3(0xda)):new ChatOpenAI({'model':_0x12c990,'apiKey':_0x54c52a['lvQdB'](requireEnv,_0x54c52a[_0x2128e3(0xe1)]),'temperature':0.2});if(_0x2fed87===_0x54c52a[_0x2128e3(0xdc)])return new ChatAnthropic({'model':_0x12c990,'apiKey':requireEnv(_0x2128e3(0xdf)+'C_API_KE'+'Y'),'temperature':0.2});throw new Error('Invalid\x20'+_0x2128e3(0xbc)+_0x2128e3(0xd9)+_0x2fed87);}export function extractMessageText(_0x5ac485){const _0x9ae1f1=_0x1575,_0x20c425={'KuPbp':_0x9ae1f1(0xb5),'lnGCR':function(_0x209544,_0x3c5c09){return _0x209544(_0x3c5c09);}};if(typeof _0x5ac485===_0x20c425['KuPbp'])return _0x5ac485[_0x9ae1f1(0xd4)]();if(Array[_0x9ae1f1(0xbf)](_0x5ac485))return _0x5ac485[_0x9ae1f1(0xb8)](_0x2cae16=>typeof _0x2cae16===_0x9ae1f1(0xb5)?_0x2cae16:_0x2cae16?.[_0x9ae1f1(0xe0)]||'')[_0x9ae1f1(0xd7)]('')[_0x9ae1f1(0xd4)]();return _0x20c425[_0x9ae1f1(0xd6)](String,_0x5ac485||'')['trim']();}function _0x1575(_0x1fd98a,_0xe65f48){_0x1fd98a=_0x1fd98a-0xac;const _0x4e3c30=_0x1a6d();let _0x1d97fc=_0x4e3c30[_0x1fd98a];return _0x1d97fc;}function _0x1a6d(){const _0x295c3a=['QjqDZ','iable.','ANTHROPI','text','cDWTG','tor','construc','Set\x20GOOG','mWdrd','483WbsIwS','_KEY.','ZKTAa','fALKh','46865PUowbV','PXScY','PbsMq','ucWDS','OPENAI_A','13634ESNDRK','ment\x20var','string','ase','376nlhmrv','map','ETzFT','zJcfs','72WnIACy','LLM_PROV','google','KvJvO','isArray','icThg','itvuO','apply','PI_KEY','373045DxTuMD','(((.+)+)','search','.5-flash','53231266TSweMX','toLowerC','HSPKA','gemini-2','ovjZv','1338473taNCJl','MINI_API','LE_API_K','882LacRAo','iZqmV','VUxsE','toString','trim','37330dexnYn','lnGCR','join','2836988eVBawZ','IDER:\x20','+)+$','openai','zTqte'];_0x1a6d=function(){return _0x295c3a;};return _0x1a6d();}
1
+ (function(_0x6c6581,_0x493681){const _0x3de5ea=_0x15cc,_0x162df5=_0x6c6581();while(!![]){try{const _0x8a7d97=parseInt(_0x3de5ea(0x1cd))/0x1+-parseInt(_0x3de5ea(0x1cc))/0x2+-parseInt(_0x3de5ea(0x1bb))/0x3*(parseInt(_0x3de5ea(0x1c1))/0x4)+-parseInt(_0x3de5ea(0x1d6))/0x5*(parseInt(_0x3de5ea(0x1c6))/0x6)+-parseInt(_0x3de5ea(0x1db))/0x7*(parseInt(_0x3de5ea(0x1d3))/0x8)+parseInt(_0x3de5ea(0x1de))/0x9*(parseInt(_0x3de5ea(0x1c8))/0xa)+-parseInt(_0x3de5ea(0x1dc))/0xb*(-parseInt(_0x3de5ea(0x1ce))/0xc);if(_0x8a7d97===_0x493681)break;else _0x162df5['push'](_0x162df5['shift']());}catch(_0x32e05c){_0x162df5['push'](_0x162df5['shift']());}}}(_0x27f5,0x82977));const _0x198881=(function(){let _0x37f6a9=!![];return function(_0xc95b38,_0x10e368){const _0x248011=_0x37f6a9?function(){const _0x425096=_0x15cc;if(_0x10e368){const _0x39b7b2=_0x10e368[_0x425096(0x1c7)](_0xc95b38,arguments);return _0x10e368=null,_0x39b7b2;}}:function(){};return _0x37f6a9=![],_0x248011;};}()),_0x14d51b=_0x198881(this,function(){const _0x33c5e6=_0x15cc,_0x4b4c3b={'RrXvT':_0x33c5e6(0x1be)+_0x33c5e6(0x1ca)};return _0x14d51b[_0x33c5e6(0x1d2)]()[_0x33c5e6(0x1e4)](_0x4b4c3b[_0x33c5e6(0x1c5)])['toString']()[_0x33c5e6(0x1d5)+_0x33c5e6(0x1e5)](_0x14d51b)[_0x33c5e6(0x1e4)]('(((.+)+)'+_0x33c5e6(0x1ca));});_0x14d51b();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function _0x15cc(_0x248462,_0x1dfda8){_0x248462=_0x248462-0x1b6;const _0x34bd60=_0x27f5();let _0x14d51b=_0x34bd60[_0x248462];return _0x14d51b;}function _0x27f5(){const _0x15fa42=['AUazG','DHenc','.5-flash','search','tor','IDER:\x20','Invalid\x20','iable.','C_API_KE','isArray','_KEY.','bbkyx','LE_API_K','Set\x20the\x20','Set\x20GOOG','3ZdvAfF','text','eTEzS','(((.+)+)','jnzTJ','join','1585688YJtFPd','hBtvf','trim','QIIDx','RrXvT','313632NFXrpi','apply','10tnvtXl','iSzXr','+)+$','google','952512lpBOgQ','574627DGhLge','3598368YrNAAj','ANTHROPI','LLM_PROV','ment\x20var','toString','1448JOkxXb','string','construc','20lIhsMt','HcCIS','toLowerC','sFsYn','EY\x20or\x20GE','31129rbZHaG','33WTTiEP','anthropi','8526213DjhlUM','MINI_API','cTIql'];_0x27f5=function(){return _0x15fa42;};return _0x27f5();}function requireEnv(_0x530a13){const _0x2d05f6=_0x15cc,_0x3d5277=process.env[_0x530a13];if(!_0x3d5277)throw new Error(_0x2d05f6(0x1b9)+_0x530a13+('\x20environ'+_0x2d05f6(0x1d1)+_0x2d05f6(0x1e8)));return _0x3d5277;}export function createLLM(){const _0x4a245e=_0x15cc,_0x2387ea={'sFsYn':'gemini-2'+_0x4a245e(0x1e3),'AUazG':function(_0x58aafe,_0x1c88d8){return _0x58aafe===_0x1c88d8;},'YszUB':_0x4a245e(0x1cb),'cTIql':_0x4a245e(0x1ba)+_0x4a245e(0x1b8)+_0x4a245e(0x1da)+_0x4a245e(0x1df)+_0x4a245e(0x1b6),'eTEzS':function(_0x326c67,_0x37a76a){return _0x326c67===_0x37a76a;},'iSzXr':'openai','uQUDR':function(_0x4ee828,_0x550c4d){return _0x4ee828(_0x550c4d);},'ylVBX':'OPENAI_A'+'PI_KEY','NFYlK':function(_0x2768c0,_0x4b7d82){return _0x2768c0===_0x4b7d82;},'bbkyx':function(_0x3bc485,_0x268d60){return _0x3bc485(_0x268d60);},'QIIDx':_0x4a245e(0x1cf)+_0x4a245e(0x1e9)+'Y'},_0x3ebdb4=(process.env.LLM_PROVIDER||_0x4a245e(0x1cb))[_0x4a245e(0x1d8)+'ase'](),_0x4a2658=process.env.LLM_MODEL||_0x2387ea[_0x4a245e(0x1d9)];if(_0x2387ea[_0x4a245e(0x1e1)](_0x3ebdb4,_0x2387ea['YszUB'])){const _0x432b3c=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x432b3c)throw new Error(_0x2387ea[_0x4a245e(0x1e0)]);return new ChatGoogleGenerativeAI({'model':_0x4a2658,'apiKey':_0x432b3c,'temperature':0.2});}if(_0x2387ea[_0x4a245e(0x1bd)](_0x3ebdb4,_0x2387ea[_0x4a245e(0x1c9)]))return new ChatOpenAI({'model':_0x4a2658,'apiKey':_0x2387ea['uQUDR'](requireEnv,_0x2387ea['ylVBX']),'temperature':0.2});if(_0x2387ea['NFYlK'](_0x3ebdb4,_0x4a245e(0x1dd)+'c'))return new ChatAnthropic({'model':_0x4a2658,'apiKey':_0x2387ea[_0x4a245e(0x1b7)](requireEnv,_0x2387ea[_0x4a245e(0x1c4)]),'temperature':0.2});throw new Error(_0x4a245e(0x1e7)+_0x4a245e(0x1d0)+_0x4a245e(0x1e6)+_0x3ebdb4);}export function extractMessageText(_0x4ef0f8){const _0x494423=_0x15cc,_0x3df0b6={'jnzTJ':function(_0xad25a0,_0x2b212f){return _0xad25a0===_0x2b212f;},'DHenc':'string','hBtvf':function(_0x4452ef,_0x5e2ea5){return _0x4452ef(_0x5e2ea5);},'HcCIS':function(_0xae7a19,_0x4788d4){return _0xae7a19||_0x4788d4;}};if(_0x3df0b6[_0x494423(0x1bf)](typeof _0x4ef0f8,_0x3df0b6[_0x494423(0x1e2)]))return _0x4ef0f8[_0x494423(0x1c3)]();if(Array[_0x494423(0x1ea)](_0x4ef0f8))return _0x4ef0f8['map'](_0x598744=>typeof _0x598744===_0x494423(0x1d4)?_0x598744:_0x598744?.[_0x494423(0x1bc)]||'')[_0x494423(0x1c0)]('')[_0x494423(0x1c3)]();return _0x3df0b6[_0x494423(0x1c2)](String,_0x3df0b6[_0x494423(0x1d7)](_0x4ef0f8,''))[_0x494423(0x1c3)]();}
@@ -1 +1 @@
1
- (function(_0x235d13,_0x35f8c1){const _0x1b40a8=_0x51f0,_0x4676e7=_0x235d13();while(!![]){try{const _0x2f82b0=parseInt(_0x1b40a8(0x1c1))/0x1+-parseInt(_0x1b40a8(0x1c2))/0x2*(parseInt(_0x1b40a8(0x1cd))/0x3)+parseInt(_0x1b40a8(0x1d6))/0x4*(parseInt(_0x1b40a8(0x1d1))/0x5)+-parseInt(_0x1b40a8(0x1cf))/0x6*(parseInt(_0x1b40a8(0x1d5))/0x7)+-parseInt(_0x1b40a8(0x1d7))/0x8+-parseInt(_0x1b40a8(0x1c4))/0x9*(parseInt(_0x1b40a8(0x1c3))/0xa)+-parseInt(_0x1b40a8(0x1ce))/0xb*(-parseInt(_0x1b40a8(0x1d8))/0xc);if(_0x2f82b0===_0x35f8c1)break;else _0x4676e7['push'](_0x4676e7['shift']());}catch(_0xc68475){_0x4676e7['push'](_0x4676e7['shift']());}}}(_0x5820,0x647fa));const _0x3a7db5=(function(){let _0x1d82db=!![];return function(_0x10c08b,_0x92878d){const _0x535309=_0x1d82db?function(){const _0x3b1a1b=_0x51f0;if(_0x92878d){const _0x45e152=_0x92878d[_0x3b1a1b(0x1c8)](_0x10c08b,arguments);return _0x92878d=null,_0x45e152;}}:function(){};return _0x1d82db=![],_0x535309;};}()),_0x242a5c=_0x3a7db5(this,function(){const _0x191592=_0x51f0,_0x19d23b={'ijNyj':'(((.+)+)'+'+)+$'};return _0x242a5c[_0x191592(0x1cc)]()[_0x191592(0x1ca)](_0x19d23b[_0x191592(0x1d0)])[_0x191592(0x1cc)]()[_0x191592(0x1c6)+_0x191592(0x1c5)](_0x242a5c)['search'](_0x19d23b[_0x191592(0x1d0)]);});_0x242a5c();import{createInterface}from'readline/promises';import{stdin as _0x562abf,stdout as _0x1e36a5}from'process';export async function askConfirmation(_0x36ab6c,_0x1c8d53={}){const _0x50788f=_0x51f0,_0x13ae38={'DckZw':function(_0x29e42a,_0xd1bd93){return _0x29e42a(_0xd1bd93);},'WLzTr':function(_0x50b1c4,_0x39cec1){return _0x50b1c4(_0x39cec1);}},_0x298204=_0x13ae38[_0x50788f(0x1cb)](createInterface,{'input':_0x562abf,'output':_0x1e36a5}),_0x3b2a77=await _0x298204[_0x50788f(0x1d4)](_0x36ab6c);_0x298204[_0x50788f(0x1d2)]();const _0x25cf5e=_0x3b2a77[_0x50788f(0x1c7)]()[_0x50788f(0x1d3)+_0x50788f(0x1c0)]();if(!_0x25cf5e)return _0x13ae38[_0x50788f(0x1c9)](Boolean,_0x1c8d53['defaultY'+'es']);return _0x25cf5e==='y';}export async function askInput(_0x44579a){const _0x434876=_0x51f0,_0x4648d4={'JLXSH':function(_0x5bc877,_0x29dd72){return _0x5bc877(_0x29dd72);}},_0x104419=_0x4648d4[_0x434876(0x1d9)](createInterface,{'input':_0x562abf,'output':_0x1e36a5}),_0x568ac0=await _0x104419[_0x434876(0x1d4)](_0x44579a);return _0x104419['close'](),_0x568ac0[_0x434876(0x1c7)]();}export async function askEditableInput(_0x340208,_0x314b5e){const _0x4650ff=_0x51f0,_0x42ec81=createInterface({'input':_0x562abf,'output':_0x1e36a5}),_0x43fc76=await _0x42ec81[_0x4650ff(0x1d4)](_0x340208);_0x42ec81['close']();const _0x2718a8=_0x43fc76[_0x4650ff(0x1c7)]();if(!_0x2718a8)return _0x314b5e;return _0x2718a8;}function _0x51f0(_0x289331,_0x307933){_0x289331=_0x289331-0x1c0;const _0x16ce25=_0x5820();let _0x242a5c=_0x16ce25[_0x289331];return _0x242a5c;}function _0x5820(){const _0x255081=['481690MOZgMD','18miereN','tor','construc','trim','apply','WLzTr','search','DckZw','toString','695610ZkZeOS','330bbhjCm','2994012JvQbnT','ijNyj','92515UQNLGD','close','toLowerC','question','7tQtWky','76vDnfZT','2669264KVVgQd','510420VVAhsO','JLXSH','ase','408643AnzEhU','6GFUkTZ'];_0x5820=function(){return _0x255081;};return _0x5820();}
1
+ (function(_0x2cfd39,_0x230ca7){const _0x472ab6=_0x3762,_0x185bf9=_0x2cfd39();while(!![]){try{const _0x79e6f1=parseInt(_0x472ab6(0x1e0))/0x1+-parseInt(_0x472ab6(0x1f2))/0x2*(parseInt(_0x472ab6(0x1f0))/0x3)+-parseInt(_0x472ab6(0x1f3))/0x4*(parseInt(_0x472ab6(0x1f5))/0x5)+parseInt(_0x472ab6(0x1eb))/0x6*(parseInt(_0x472ab6(0x1e9))/0x7)+parseInt(_0x472ab6(0x1df))/0x8+-parseInt(_0x472ab6(0x1f7))/0x9*(-parseInt(_0x472ab6(0x1e2))/0xa)+-parseInt(_0x472ab6(0x1e8))/0xb;if(_0x79e6f1===_0x230ca7)break;else _0x185bf9['push'](_0x185bf9['shift']());}catch(_0x5176cb){_0x185bf9['push'](_0x185bf9['shift']());}}}(_0xf716,0x5f53a));function _0x3762(_0x1cf548,_0x2366d9){_0x1cf548=_0x1cf548-0x1df;const _0x5ab15b=_0xf716();let _0x11a89c=_0x5ab15b[_0x1cf548];return _0x11a89c;}const _0x2a2668=(function(){let _0x694543=!![];return function(_0x56c5c9,_0x5bc4bb){const _0x437f47=_0x694543?function(){if(_0x5bc4bb){const _0x199a45=_0x5bc4bb['apply'](_0x56c5c9,arguments);return _0x5bc4bb=null,_0x199a45;}}:function(){};return _0x694543=![],_0x437f47;};}()),_0x11a89c=_0x2a2668(this,function(){const _0x1a2e60=_0x3762,_0x57d534={'wmHOU':_0x1a2e60(0x1ee)+_0x1a2e60(0x1ed)};return _0x11a89c[_0x1a2e60(0x1f1)]()[_0x1a2e60(0x1f4)](_0x57d534[_0x1a2e60(0x1f8)])[_0x1a2e60(0x1f1)]()[_0x1a2e60(0x1ea)+_0x1a2e60(0x1f9)](_0x11a89c)[_0x1a2e60(0x1f4)](_0x57d534[_0x1a2e60(0x1f8)]);});_0x11a89c();import{createInterface}from'readline/promises';function _0xf716(){const _0x32b19f=['construc','3897198QRqdVE','close','+)+$','(((.+)+)','HhklV','1143UcQzhh','toString','3124ZmdSYT','944GGPOMT','search','9565krhauT','defaultY','4446wCvCjs','wmHOU','tor','6021936utCTOq','226116Gsacre','toLowerC','13700JSEyOT','Iknuh','question','cHbaB','trim','ase','9549353wnzMOY','7CtYUDn'];_0xf716=function(){return _0x32b19f;};return _0xf716();}import{stdin as _0x1c8c69,stdout as _0x3c500d}from'process';export async function askConfirmation(_0x3dbd33,_0x3ccfb0={}){const _0x24fb6c=_0x3762,_0x168b56={'HhklV':function(_0x487f55,_0x324242){return _0x487f55(_0x324242);},'Iknuh':function(_0x1c1d29,_0x4a2da3){return _0x1c1d29===_0x4a2da3;}},_0x23152f=createInterface({'input':_0x1c8c69,'output':_0x3c500d}),_0x3bbb67=await _0x23152f[_0x24fb6c(0x1e4)](_0x3dbd33);_0x23152f[_0x24fb6c(0x1ec)]();const _0xc3f658=_0x3bbb67[_0x24fb6c(0x1e6)]()[_0x24fb6c(0x1e1)+_0x24fb6c(0x1e7)]();if(!_0xc3f658)return _0x168b56[_0x24fb6c(0x1ef)](Boolean,_0x3ccfb0[_0x24fb6c(0x1f6)+'es']);return _0x168b56[_0x24fb6c(0x1e3)](_0xc3f658,'y');}export async function askInput(_0x1b75c8){const _0x58b683=_0x3762,_0x488f3e={'ZGXVg':function(_0x20aadc,_0x987d34){return _0x20aadc(_0x987d34);}},_0x5095e9=_0x488f3e['ZGXVg'](createInterface,{'input':_0x1c8c69,'output':_0x3c500d}),_0x352054=await _0x5095e9[_0x58b683(0x1e4)](_0x1b75c8);return _0x5095e9[_0x58b683(0x1ec)](),_0x352054[_0x58b683(0x1e6)]();}export async function askEditableInput(_0x28c0bf,_0x571c12){const _0x2df979=_0x3762,_0x1e288d={'cHbaB':function(_0x4131fd,_0x516886){return _0x4131fd(_0x516886);}},_0x4088f3=_0x1e288d[_0x2df979(0x1e5)](createInterface,{'input':_0x1c8c69,'output':_0x3c500d}),_0x3c1ab7=await _0x4088f3[_0x2df979(0x1e4)](_0x28c0bf);_0x4088f3['close']();const _0x533919=_0x3c1ab7[_0x2df979(0x1e6)]();if(!_0x533919)return _0x571c12;return _0x533919;}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
1
- const _0xef1a53=_0x1a39;function _0x1a39(_0x234bb7,_0x569ea3){_0x234bb7=_0x234bb7-0x164;const _0x848fc7=_0x3e9e();let _0x5667be=_0x848fc7[_0x234bb7];return _0x5667be;}(function(_0x5b297e,_0x2f20aa){const _0x137c23=_0x1a39,_0x1bdedc=_0x5b297e();while(!![]){try{const _0x5b65db=-parseInt(_0x137c23(0x19a))/0x1*(parseInt(_0x137c23(0x1a6))/0x2)+parseInt(_0x137c23(0x179))/0x3*(parseInt(_0x137c23(0x168))/0x4)+-parseInt(_0x137c23(0x18f))/0x5+parseInt(_0x137c23(0x18a))/0x6*(-parseInt(_0x137c23(0x190))/0x7)+-parseInt(_0x137c23(0x196))/0x8+-parseInt(_0x137c23(0x18d))/0x9*(-parseInt(_0x137c23(0x1a0))/0xa)+parseInt(_0x137c23(0x180))/0xb*(parseInt(_0x137c23(0x18c))/0xc);if(_0x5b65db===_0x2f20aa)break;else _0x1bdedc['push'](_0x1bdedc['shift']());}catch(_0x1e46cd){_0x1bdedc['push'](_0x1bdedc['shift']());}}}(_0x3e9e,0xa0ab0));const _0x3237bc=(function(){const _0x587994=_0x1a39,_0x125c2c={'KtEZu':function(_0x219f57,_0x41e386,_0x22b28b,_0xa4feb5){return _0x219f57(_0x41e386,_0x22b28b,_0xa4feb5);},'MURIX':_0x587994(0x177)};let _0x5e28c0=!![];return function(_0x467c59,_0x5afc22){const _0x36b50e=_0x587994,_0x131652={'RzhjU':function(_0x5f0608,_0x1a4872,_0x49d310,_0x65a16a){const _0x35b505=_0x1a39;return _0x125c2c[_0x35b505(0x172)](_0x5f0608,_0x1a4872,_0x49d310,_0x65a16a);},'auLwL':_0x125c2c[_0x36b50e(0x167)]},_0x2d6463=_0x5e28c0?function(){const _0xcad870=_0x36b50e;if(_0x5afc22){if(_0x131652[_0xcad870(0x19b)]===_0x131652[_0xcad870(0x19b)]){const _0x51c786=_0x5afc22[_0xcad870(0x17e)](_0x467c59,arguments);return _0x5afc22=null,_0x51c786;}else return _0x131652[_0xcad870(0x170)](_0xef1987,_0x495c05,_0x40502d[_0xcad870(0x178)],_0x41443e[_0xcad870(0x19c)]);}}:function(){};return _0x5e28c0=![],_0x2d6463;};}()),_0x5667be=_0x3237bc(this,function(){const _0x3561b9=_0x1a39,_0xadb599={'nfctt':_0x3561b9(0x182)+_0x3561b9(0x173)};return _0x5667be['toString']()[_0x3561b9(0x193)](_0xadb599['nfctt'])['toString']()[_0x3561b9(0x195)+_0x3561b9(0x171)](_0x5667be)[_0x3561b9(0x193)](_0xadb599[_0x3561b9(0x1a1)]);});_0x5667be();export const ui={'reset':_0xef1a53(0x17b),'bold':_0xef1a53(0x19d),'dim':_0xef1a53(0x17a),'cyan':_0xef1a53(0x191),'green':'\x1b[32m','yellow':_0xef1a53(0x1a3),'red':_0xef1a53(0x17c)};export function style(_0x80ae65,..._0x18fa84){const _0x5d98f2=_0xef1a53;return''+_0x18fa84[_0x5d98f2(0x1a4)]('')+_0x80ae65+ui['reset'];}function getDividerWidth(){const _0x1b3d20=_0xef1a53,_0x462a69=process[_0x1b3d20(0x198)][_0x1b3d20(0x16c)]||0x50;return Math[_0x1b3d20(0x187)](0x28,Math['min'](_0x462a69,0x64));}export function divider(){const _0x412176=_0xef1a53,_0x5c5726={'TSopJ':function(_0x5a95a9,_0x41eb53,_0x207fa2){return _0x5a95a9(_0x41eb53,_0x207fa2);},'wUynM':function(_0x2bd434){return _0x2bd434();}};console[_0x412176(0x183)](_0x5c5726[_0x412176(0x1a2)](style,'-'['repeat'](_0x5c5726[_0x412176(0x164)](getDividerWidth)),ui[_0x412176(0x16b)]));}export function section(_0xd92eb8){const _0x17788f=_0xef1a53,_0x6b1c89={'PLvWn':function(_0x3b5a15,_0x4d698a,_0x1b8e3b,_0x5bc4b0){return _0x3b5a15(_0x4d698a,_0x1b8e3b,_0x5bc4b0);},'iYqdO':function(_0x4a3fbf){return _0x4a3fbf();}};console[_0x17788f(0x183)](),divider(),console[_0x17788f(0x183)](_0x6b1c89[_0x17788f(0x186)](style,'[\x20'+_0xd92eb8+'\x20]',ui[_0x17788f(0x19c)],ui[_0x17788f(0x165)])),_0x6b1c89['iYqdO'](divider);}export function ok(_0x4b2899){const _0x1ce3ce=_0xef1a53,_0x501ad0={'CBltq':function(_0x469fac,_0x3148a6,_0x5ca56b,_0x4ff3f4){return _0x469fac(_0x3148a6,_0x5ca56b,_0x4ff3f4);}};return _0x501ad0[_0x1ce3ce(0x19e)](style,_0x4b2899,ui[_0x1ce3ce(0x166)],ui[_0x1ce3ce(0x19c)]);}export function warn(_0x10b5a7){const _0x2a9e1a=_0xef1a53,_0x586890={'KhMiU':function(_0x4abd6f,_0x2e4d03,_0x4e0d14,_0x6131f){return _0x4abd6f(_0x2e4d03,_0x4e0d14,_0x6131f);}};return _0x586890[_0x2a9e1a(0x175)](style,_0x10b5a7,ui['yellow'],ui['bold']);}export function bad(_0x999ba3){const _0x42a7a1=_0xef1a53,_0x231e68={'OxvZZ':function(_0x317533,_0xb2727b,_0x1ca221,_0x1059ac){return _0x317533(_0xb2727b,_0x1ca221,_0x1059ac);}};return _0x231e68['OxvZZ'](style,_0x999ba3,ui['red'],ui[_0x42a7a1(0x19c)]);}export function info(_0x329315){const _0x2d41af=_0xef1a53,_0xb4af7a={'rWYdL':function(_0xb202,_0x5e5bad,_0x3e3c63,_0x15643a){return _0xb202(_0x5e5bad,_0x3e3c63,_0x15643a);}};return _0xb4af7a[_0x2d41af(0x185)](style,_0x329315,ui[_0x2d41af(0x165)],ui[_0x2d41af(0x19c)]);}export function printKeyValues(_0x17e99e){const _0x3a0764=_0xef1a53,_0x48b010={'hEfcQ':function(_0x5624a9,_0x5adaf1){return _0x5624a9===_0x5adaf1;}};if(_0x48b010[_0x3a0764(0x16a)](_0x17e99e[_0x3a0764(0x184)],0x0))return;const _0x1cded6=_0x17e99e['reduce']((_0x262328,_0x180899)=>Math[_0x3a0764(0x187)](_0x262328,_0x180899[_0x3a0764(0x16e)][_0x3a0764(0x184)]),0x0);for(const _0x273243 of _0x17e99e){const _0x479b47=style(_0x273243[_0x3a0764(0x16e)]['padEnd'](_0x1cded6),ui['dim']);console['log']('\x20\x20'+_0x479b47+_0x3a0764(0x197)+_0x273243['value']);}}export function printList(_0x3ba010,_0x2f2165){const _0x45a6bc=_0xef1a53,_0x57babe={'CSuIw':function(_0x550a4a,_0x174993,_0x2a3700){return _0x550a4a(_0x174993,_0x2a3700);},'DeHnT':function(_0xa46cd3,_0xff32e5){return _0xa46cd3===_0xff32e5;},'hEtyq':_0x45a6bc(0x181)};console[_0x45a6bc(0x183)](_0x57babe[_0x45a6bc(0x17f)](style,_0x3ba010,ui['bold']));if(_0x57babe[_0x45a6bc(0x194)](_0x2f2165['length'],0x0)){console[_0x45a6bc(0x183)]('\x20\x20'+_0x57babe[_0x45a6bc(0x17f)](style,_0x57babe[_0x45a6bc(0x18b)],ui['dim']));return;}for(const _0xaf77b4 of _0x2f2165){console[_0x45a6bc(0x183)](_0x45a6bc(0x16d)+_0xaf77b4);}}export function failAndExit(_0x2fcebe){const _0x2dca78=_0xef1a53,_0x492b5c={'yRaFg':function(_0x288d80,_0x325daf){return _0x288d80(_0x325daf);},'MRTkV':_0x2dca78(0x169)};console[_0x2dca78(0x18e)](_0x492b5c[_0x2dca78(0x17d)](bad,_0x492b5c['MRTkV'])+'\x20'+_0x2fcebe),process[_0x2dca78(0x189)](0x1);}export async function withProgress(_0x1765bf,_0x4c222f){const _0x49daea=_0xef1a53,_0x59a61d={'sdqSR':function(_0xf4ee7f,_0xb49de8){return _0xf4ee7f%_0xb49de8;},'JPvQw':function(_0x4db05a,_0x5d067f,_0x5acfa8){return _0x4db05a(_0x5d067f,_0x5acfa8);},'oteva':function(_0x578a9a){return _0x578a9a();},'djgse':_0x49daea(0x19f),'WsJkq':function(_0x2ef542,_0x165580){return _0x2ef542(_0x165580);},'LogyP':_0x49daea(0x169)};if(!process[_0x49daea(0x198)][_0x49daea(0x174)])return console['log'](_0x1765bf),_0x4c222f();const _0x35a41d=['|','/','-','\x5c'];let _0x234cb8=0x0;const _0x4e6fdb=()=>{const _0x580e70=_0x49daea,_0x38620f=_0x35a41d[_0x59a61d[_0x580e70(0x1a5)](_0x234cb8,_0x35a41d[_0x580e70(0x184)])];process['stdout']['write']('\x0d'+_0x59a61d[_0x580e70(0x192)](style,_0x38620f,ui[_0x580e70(0x165)])+'\x20'+_0x1765bf),_0x234cb8+=0x1;};_0x59a61d[_0x49daea(0x176)](_0x4e6fdb);const _0x171c73=_0x59a61d['JPvQw'](setInterval,_0x4e6fdb,0x78);try{const _0x3b8c37=await _0x59a61d['oteva'](_0x4c222f);return clearInterval(_0x171c73),process[_0x49daea(0x198)]['write'](_0x59a61d[_0x49daea(0x199)]),console[_0x49daea(0x183)](ok('OK')+'\x20'+_0x1765bf),_0x3b8c37;}catch(_0x38858d){clearInterval(_0x171c73),process[_0x49daea(0x198)]['write'](_0x59a61d[_0x49daea(0x199)]),console[_0x49daea(0x183)](_0x59a61d[_0x49daea(0x16f)](bad,_0x59a61d[_0x49daea(0x188)])+'\x20'+_0x1765bf);throw _0x38858d;}}function _0x3e9e(){const _0x31d740=['sdqSR','6DjhYNs','wUynM','cyan','green','MURIX','731864bMUEoA','ERROR','hEfcQ','dim','columns','\x20\x20-\x20','key','WsJkq','RzhjU','tor','KtEZu','+)+$','isTTY','KhMiU','oteva','GeucC','red','21QNobQm','\x1b[2m','\x1b[0m','\x1b[31m','yRaFg','apply','CSuIw','11nDmEis','(none)','(((.+)+)','log','length','rWYdL','PLvWn','max','LogyP','exit','3711216lWfFvX','hEtyq','23566884yOMwsG','1791tQiNxJ','error','1719555MFpBop','7QgdRGe','\x1b[36m','JPvQw','search','DeHnT','construc','9806352YNzCLH','\x20:\x20','stdout','djgse','433002izjFrH','auLwL','bold','\x1b[1m','CBltq','\x0d\x1b[2K','45260DPMqAg','nfctt','TSopJ','\x1b[33m','join'];_0x3e9e=function(){return _0x31d740;};return _0x3e9e();}
1
+ const _0x10a05a=_0x1b74;(function(_0x2a15a6,_0x3de751){const _0x24e3b8=_0x1b74,_0x57fac0=_0x2a15a6();while(!![]){try{const _0x1ddc26=-parseInt(_0x24e3b8(0x110))/0x1*(parseInt(_0x24e3b8(0x14b))/0x2)+-parseInt(_0x24e3b8(0x134))/0x3*(-parseInt(_0x24e3b8(0x126))/0x4)+parseInt(_0x24e3b8(0x15e))/0x5+-parseInt(_0x24e3b8(0x119))/0x6*(-parseInt(_0x24e3b8(0x152))/0x7)+-parseInt(_0x24e3b8(0x114))/0x8+parseInt(_0x24e3b8(0x129))/0x9*(-parseInt(_0x24e3b8(0x133))/0xa)+-parseInt(_0x24e3b8(0x154))/0xb*(-parseInt(_0x24e3b8(0x122))/0xc);if(_0x1ddc26===_0x3de751)break;else _0x57fac0['push'](_0x57fac0['shift']());}catch(_0x59d813){_0x57fac0['push'](_0x57fac0['shift']());}}}(_0x58fd,0xa30a6));const _0x21745b=(function(){let _0x11eb8b=!![];return function(_0x99e5fc,_0x52ae58){const _0x4e6136=_0x11eb8b?function(){const _0x393927=_0x1b74;if(_0x52ae58){const _0x308214=_0x52ae58[_0x393927(0x13b)](_0x99e5fc,arguments);return _0x52ae58=null,_0x308214;}}:function(){};return _0x11eb8b=![],_0x4e6136;};}()),_0x2a250b=_0x21745b(this,function(){const _0x17023f=_0x1b74,_0x35bfbd={'foPVm':_0x17023f(0x149)+'+)+$'};return _0x2a250b[_0x17023f(0x147)]()[_0x17023f(0x124)](_0x35bfbd[_0x17023f(0x116)])['toString']()[_0x17023f(0x144)+_0x17023f(0x150)](_0x2a250b)[_0x17023f(0x124)](_0x35bfbd[_0x17023f(0x116)]);});function _0x1b74(_0x2547d1,_0x1fcf8e){_0x2547d1=_0x2547d1-0x110;const _0x148df3=_0x58fd();let _0x2a250b=_0x148df3[_0x2547d1];return _0x2a250b;}_0x2a250b();export const ui={'reset':_0x10a05a(0x157),'bold':_0x10a05a(0x14e),'dim':'\x1b[2m','italic':'\x1b[3m','underline':_0x10a05a(0x123),'cyan':_0x10a05a(0x153),'green':_0x10a05a(0x115),'yellow':_0x10a05a(0x141),'red':_0x10a05a(0x13a),'magenta':_0x10a05a(0x139),'gray':_0x10a05a(0x15d)};export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};export function style(_0x84a360,..._0x297a4d){const _0x5abe49=_0x10a05a;return''+_0x297a4d[_0x5abe49(0x13f)]('')+_0x84a360+ui[_0x5abe49(0x140)];}function getDividerWidth(){const _0x38712e=_0x10a05a,_0x28ec0f=process[_0x38712e(0x12e)][_0x38712e(0x15c)]||0x50;return Math[_0x38712e(0x136)](0x28,Math[_0x38712e(0x118)](_0x28ec0f,0x50));}export function divider(){const _0x2aa479=_0x10a05a,_0x1dcf53={'GqTMA':function(_0x1c3c52){return _0x1c3c52();}};console[_0x2aa479(0x160)](style('─'[_0x2aa479(0x11b)](_0x1dcf53[_0x2aa479(0x13d)](getDividerWidth)),ui[_0x2aa479(0x11d)]));}export function section(_0x97d7fb){const _0x188f39=_0x10a05a;console[_0x188f39(0x160)](),console['log'](style('\x20\x20'+_0x97d7fb+'\x20\x20',ui[_0x188f39(0x158)],ui['magenta'],ui[_0x188f39(0x162)+'e'])),console['log']();}export function ok(_0x564c49,_0x52182e){const _0x3043cc=_0x10a05a,_0xf4828a={'xadkZ':function(_0x3db82b,_0x50999d,_0x3d6601,_0x2930a8){return _0x3db82b(_0x50999d,_0x3d6601,_0x2930a8);},'XfoOM':function(_0x5e5956,_0x4fac84,_0x32e9ba,_0xaba008){return _0x5e5956(_0x4fac84,_0x32e9ba,_0xaba008);},'NnNOt':function(_0x5404dc,_0x11f7d8,_0x25050b){return _0x5404dc(_0x11f7d8,_0x25050b);}},_0x4900bd=_0xf4828a[_0x3043cc(0x128)](style,symbols[_0x3043cc(0x155)],ui['green'],ui[_0x3043cc(0x158)])+'\x20'+_0xf4828a[_0x3043cc(0x127)](style,_0x564c49,ui[_0x3043cc(0x120)],ui[_0x3043cc(0x158)]);return _0x52182e?_0x4900bd+'\x20'+_0xf4828a[_0x3043cc(0x12b)](style,_0x52182e,ui['gray']):_0x4900bd;}export function warn(_0x3b7eac,_0x4340f1){const _0x52e8c4=_0x10a05a,_0x4b0660={'xGFkD':function(_0x2f39da,_0x3decde,_0x44c724,_0x31ea6a){return _0x2f39da(_0x3decde,_0x44c724,_0x31ea6a);},'ZhPbm':function(_0x24e6da,_0x263232,_0x50b9f9,_0x472df9){return _0x24e6da(_0x263232,_0x50b9f9,_0x472df9);}},_0x560c19=_0x4b0660['xGFkD'](style,symbols['warn'],ui[_0x52e8c4(0x130)],ui['bold'])+'\x20'+_0x4b0660[_0x52e8c4(0x12f)](style,_0x3b7eac,ui[_0x52e8c4(0x130)],ui[_0x52e8c4(0x158)]);return _0x4340f1?_0x560c19+'\x20'+style(_0x4340f1,ui[_0x52e8c4(0x11d)]):_0x560c19;}export function bad(_0x15abd8,_0x4ff008){const _0x1f0a2d=_0x10a05a,_0x1e5fda={'dHWGl':function(_0x548d5e,_0x42a6b2,_0x2d3677,_0x5d7c29){return _0x548d5e(_0x42a6b2,_0x2d3677,_0x5d7c29);},'BqFtR':function(_0x14d79b,_0x5ef933,_0x13e7c1){return _0x14d79b(_0x5ef933,_0x13e7c1);}},_0x185380=style(symbols[_0x1f0a2d(0x15f)],ui['red'],ui[_0x1f0a2d(0x158)])+'\x20'+_0x1e5fda[_0x1f0a2d(0x143)](style,_0x15abd8,ui[_0x1f0a2d(0x135)],ui['bold']);return _0x4ff008?_0x185380+'\x20'+_0x1e5fda[_0x1f0a2d(0x156)](style,_0x4ff008,ui['gray']):_0x185380;}export function info(_0x4c5525,_0x1603ed){const _0x5f3db7=_0x10a05a,_0x333395={'anfqg':function(_0xfbb224,_0xcc51c,_0x1a6d79){return _0xfbb224(_0xcc51c,_0x1a6d79);}},_0x5097e0=style(symbols[_0x5f3db7(0x14d)],ui['cyan'],ui[_0x5f3db7(0x158)])+'\x20'+style(_0x4c5525,ui[_0x5f3db7(0x132)],ui[_0x5f3db7(0x158)]);return _0x1603ed?_0x5097e0+'\x20'+_0x333395[_0x5f3db7(0x142)](style,_0x1603ed,ui['gray']):_0x5097e0;}function _0x58fd(){const _0x2d6dac=['189706UIRdea','tick','BqFtR','\x1b[0m','bold','fXkEV','pfGbE','qmosp','columns','\x1b[90m','11560XCPZql','cross','log','NYhgN','underlin','2UZitwN','italic','padEnd','wDWaG','7246648cnEwZh','\x1b[32m','foPVm','nGsaH','min','4911978SFbWys','xZfeJ','repeat','yaOXv','gray','write','lewmh','green','UMaGh','1608zKnpoF','\x1b[4m','search','VYjqE','40OhtmZv','XfoOM','xadkZ','846vkgTnQ','arrow','NnNOt','WVUiD','UYFzL','stdout','ZhPbm','yellow','isTTY','cyan','92290WXxtri','167547vrMMdV','red','max','vcOZP','ucGUm','\x1b[35m','\x1b[31m','apply','FEyKI','GqTMA','error','join','reset','\x1b[33m','anfqg','dHWGl','construc','value','Uikcz','toString','tHFFN','(((.+)+)','key','1249258zHVecw','length','info','\x1b[1m','\x0d\x1b[2K','tor','magenta','7jFsRyJ','\x1b[36m'];_0x58fd=function(){return _0x2d6dac;};return _0x58fd();}export function printKeyValues(_0x34691d){const _0x776435=_0x10a05a,_0x512ce1={'nGsaH':function(_0x248279,_0xebd112){return _0x248279===_0xebd112;},'nXuYq':function(_0x41af81,_0x27272b,_0x1c690b){return _0x41af81(_0x27272b,_0x1c690b);}};if(_0x512ce1[_0x776435(0x117)](_0x34691d[_0x776435(0x14c)],0x0))return;const _0x4d2625=_0x34691d['reduce']((_0x40ef60,_0x4096a2)=>Math[_0x776435(0x136)](_0x40ef60,_0x4096a2[_0x776435(0x14a)][_0x776435(0x14c)]),0x0);for(const _0x472505 of _0x34691d){const _0x562475=style(_0x472505[_0x776435(0x14a)][_0x776435(0x112)](_0x4d2625),ui[_0x776435(0x11d)],ui[_0x776435(0x111)]);console[_0x776435(0x160)]('\x20\x20'+_0x562475+'\x20'+_0x512ce1['nXuYq'](style,symbols['arrow'],ui['gray'])+'\x20'+style(_0x472505[_0x776435(0x145)],ui[_0x776435(0x158)]));}}export function printList(_0x2116db,_0xf5779b){const _0x50cd91=_0x10a05a,_0x4071a2={'qmosp':function(_0x39ab3c,_0x5406ae,_0x1a472c,_0x2c32bf){return _0x39ab3c(_0x5406ae,_0x1a472c,_0x2c32bf);},'Uikcz':function(_0x2e3a5c,_0x18c03e){return _0x2e3a5c===_0x18c03e;}};console[_0x50cd91(0x160)](_0x4071a2[_0x50cd91(0x15b)](style,_0x2116db,ui[_0x50cd91(0x158)],ui[_0x50cd91(0x132)]));if(_0x4071a2[_0x50cd91(0x146)](_0xf5779b['length'],0x0)){console[_0x50cd91(0x160)]('\x20\x20'+_0x4071a2[_0x50cd91(0x15b)](style,'(none)',ui['gray'],ui['italic']));return;}for(const _0x3a945f of _0xf5779b){console[_0x50cd91(0x160)]('\x20\x20'+style(symbols[_0x50cd91(0x12a)],ui[_0x50cd91(0x151)])+'\x20'+_0x3a945f);}}export function failAndExit(_0x283e48){const _0x8bba=_0x10a05a;console[_0x8bba(0x13e)](),console[_0x8bba(0x13e)](bad(_0x283e48)),console[_0x8bba(0x13e)](),process['exit'](0x1);}export async function withProgress(_0x2b9aca,_0x43ab82){const _0x242c10=_0x10a05a,_0x57fd5f={'lewmh':function(_0x11f3f5,_0x32a840,_0x6e7be1,_0x39e099){return _0x11f3f5(_0x32a840,_0x6e7be1,_0x39e099);},'ZRfvx':function(_0xf4a005,_0xf1b099,_0x24b0c8,_0x4670b6){return _0xf4a005(_0xf1b099,_0x24b0c8,_0x4670b6);},'NYhgN':function(_0x15840e,_0x10eea3,_0x193007){return _0x15840e(_0x10eea3,_0x193007);},'UMaGh':function(_0xcd1ae,_0x22a7a6){return _0xcd1ae!==_0x22a7a6;},'FEyKI':_0x242c10(0x11c),'UYFzL':function(_0x2940ed,_0x547718){return _0x2940ed%_0x547718;},'tHFFN':function(_0x1699d3,_0x218f4a){return _0x1699d3===_0x218f4a;},'VYjqE':function(_0x5003e3,_0x24053b,_0x325a09){return _0x5003e3(_0x24053b,_0x325a09);},'wDWaG':function(_0x2303ec,_0x8c9bf4,_0x472918){return _0x2303ec(_0x8c9bf4,_0x472918);},'ucGUm':function(_0x1fc942){return _0x1fc942();},'xZfeJ':function(_0xad5d19,_0x5ed7bb){return _0xad5d19(_0x5ed7bb);},'pfGbE':_0x242c10(0x14f),'vcOZP':function(_0xeba5b3,_0x5a1441){return _0xeba5b3(_0x5a1441);},'WVUiD':_0x242c10(0x159),'BpHHy':function(_0x16fb1b,_0x51a936){return _0x16fb1b(_0x51a936);},'DJVrv':function(_0x153425,_0x389879){return _0x153425(_0x389879);}};if(!process[_0x242c10(0x12e)][_0x242c10(0x131)])return console[_0x242c10(0x160)](_0x2b9aca),_0x43ab82();const _0x52a0c7=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x1255e0=0x0;const _0x3fb984=()=>{const _0xa8c85=_0x242c10;if(_0x57fd5f[_0xa8c85(0x121)](_0x57fd5f[_0xa8c85(0x13c)],_0x57fd5f[_0xa8c85(0x13c)])){const _0x96b290=Ojrjcd[_0xa8c85(0x11f)](_0x43489d,_0x14e52f['info'],_0xfeaf52['cyan'],_0x343b75[_0xa8c85(0x158)])+'\x20'+Ojrjcd['ZRfvx'](_0x545062,_0xd5a216,_0x5f2b4d[_0xa8c85(0x132)],_0x29d196[_0xa8c85(0x158)]);return _0x5b91a7?_0x96b290+'\x20'+Ojrjcd[_0xa8c85(0x161)](_0x1cb5a2,_0x5ecf8c,_0x3223a9[_0xa8c85(0x11d)]):_0x96b290;}else{const _0x535540=_0x52a0c7[_0x57fd5f[_0xa8c85(0x12d)](_0x1255e0,_0x52a0c7[_0xa8c85(0x14c)])];process['stdout'][_0xa8c85(0x11e)]('\x0d'+_0x57fd5f[_0xa8c85(0x161)](style,_0x535540,ui[_0xa8c85(0x151)])+'\x20'+style(_0x2b9aca,ui['gray'])),_0x1255e0+=0x1;}};_0x57fd5f[_0x242c10(0x138)](_0x3fb984);const _0x1503ab=setInterval(_0x3fb984,0x50);try{const _0x7f411e=await _0x43ab82();return _0x57fd5f[_0x242c10(0x11a)](clearInterval,_0x1503ab),process[_0x242c10(0x12e)][_0x242c10(0x11e)](_0x57fd5f[_0x242c10(0x15a)]),console[_0x242c10(0x160)](_0x57fd5f[_0x242c10(0x137)](ok,_0x2b9aca)),_0x7f411e;}catch(_0x47b7d8){if(_0x57fd5f[_0x242c10(0x148)](_0x57fd5f['WVUiD'],_0x57fd5f[_0x242c10(0x12c)])){_0x57fd5f['BpHHy'](clearInterval,_0x1503ab),process[_0x242c10(0x12e)][_0x242c10(0x11e)](_0x57fd5f['pfGbE']),console[_0x242c10(0x160)](_0x57fd5f['DJVrv'](bad,_0x2b9aca));throw _0x47b7d8;}else{if(Ojrjcd[_0x242c10(0x148)](_0xefb09c[_0x242c10(0x14c)],0x0))return;const _0x30bc4b=_0x1e3e61['reduce']((_0x3fdc49,_0x50e7c1)=>_0x573e1a[_0x242c10(0x136)](_0x3fdc49,_0x50e7c1['key']['length']),0x0);for(const _0x15d8d9 of _0x247069){const _0x52051b=Ojrjcd[_0x242c10(0x11f)](_0x25f0f2,_0x15d8d9[_0x242c10(0x14a)][_0x242c10(0x112)](_0x30bc4b),_0x26660a[_0x242c10(0x11d)],_0x4ed012[_0x242c10(0x111)]);_0x1daad6[_0x242c10(0x160)]('\x20\x20'+_0x52051b+'\x20'+Ojrjcd[_0x242c10(0x125)](_0x1980a6,_0x552199[_0x242c10(0x12a)],_0x157865[_0x242c10(0x11d)])+'\x20'+Ojrjcd[_0x242c10(0x113)](_0x55e561,_0x15d8d9[_0x242c10(0x145)],_0x552b30[_0x242c10(0x158)]));}}}}
@@ -1 +1 @@
1
- const _0xa794c2=_0x5837;(function(_0x198489,_0x53d287){const _0x4e050f=_0x5837,_0x2ef6d5=_0x198489();while(!![]){try{const _0x1492ab=parseInt(_0x4e050f(0x216))/0x1+parseInt(_0x4e050f(0x215))/0x2*(parseInt(_0x4e050f(0x1b8))/0x3)+parseInt(_0x4e050f(0x1d8))/0x4*(-parseInt(_0x4e050f(0x1cc))/0x5)+parseInt(_0x4e050f(0x1a9))/0x6*(-parseInt(_0x4e050f(0x1f1))/0x7)+parseInt(_0x4e050f(0x1f0))/0x8*(-parseInt(_0x4e050f(0x1b2))/0x9)+-parseInt(_0x4e050f(0x1fc))/0xa*(parseInt(_0x4e050f(0x1e2))/0xb)+parseInt(_0x4e050f(0x1c9))/0xc*(parseInt(_0x4e050f(0x1c4))/0xd);if(_0x1492ab===_0x53d287)break;else _0x2ef6d5['push'](_0x2ef6d5['shift']());}catch(_0x1ceffd){_0x2ef6d5['push'](_0x2ef6d5['shift']());}}}(_0x4b8a,0x8a89b));const _0x443be7=(function(){const _0x247a2f=_0x5837,_0x181de0={'yptAq':function(_0x6ecd4e,_0x13becc){return _0x6ecd4e===_0x13becc;},'yGfoJ':_0x247a2f(0x1b1)};let _0xaa5af=!![];return function(_0x3e92ea,_0x3a9459){const _0x117291=_0x247a2f;if(_0x181de0[_0x117291(0x1d2)]('kEShD',_0x181de0['yGfoJ']))return;else{const _0x39091e=_0xaa5af?function(){const _0xb288e3=_0x117291;if(_0x3a9459){const _0x48c0ec=_0x3a9459[_0xb288e3(0x1d9)](_0x3e92ea,arguments);return _0x3a9459=null,_0x48c0ec;}}:function(){};return _0xaa5af=![],_0x39091e;}};}()),_0x3bba56=_0x443be7(this,function(){const _0x1d7ef5=_0x5837,_0x43dc18={'bxlhB':_0x1d7ef5(0x20c)+_0x1d7ef5(0x1b0)};return _0x3bba56[_0x1d7ef5(0x1f9)]()['search'](_0x43dc18['bxlhB'])[_0x1d7ef5(0x1f9)]()[_0x1d7ef5(0x1df)+_0x1d7ef5(0x1a8)](_0x3bba56)[_0x1d7ef5(0x219)](_0x43dc18[_0x1d7ef5(0x1d6)]);});_0x3bba56();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0xa794c2(0x1cd)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x16758b){const _0x447cdf=_0xa794c2,_0x29ebb7={'onGVl':function(_0x20a6b3,_0x2b89b0){return _0x20a6b3(_0x2b89b0);},'alsTP':function(_0x1ae8ae,_0x1eacbb){return _0x1ae8ae(_0x1eacbb);},'oVWZd':function(_0x270219,_0x237ba4){return _0x270219===_0x237ba4;},'OArUR':'install','aQJpp':_0x447cdf(0x209),'YPjqc':_0x447cdf(0x21c),'hGFmj':function(_0x29029e,_0x533a84){return _0x29029e===_0x533a84;},'jlAQS':function(_0xe40746,_0x2f42bd){return _0xe40746(_0x2f42bd);},'KKfpH':function(_0x3be730){return _0x3be730();},'WgrGS':function(_0x20f4d3,_0x1ff2ec){return _0x20f4d3-_0x1ff2ec;},'cnsmj':_0x447cdf(0x1c3),'cLRrS':_0x447cdf(0x1c8),'ccVzV':_0x447cdf(0x1ab),'xvSyT':_0x447cdf(0x1cb)+'AILED'};if(_0x29ebb7[_0x447cdf(0x1c6)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1'))return;if(!_0x29ebb7[_0x447cdf(0x1ba)](shouldCheckForUpdates,_0x16758b)){if(_0x29ebb7[_0x447cdf(0x1c6)]('VYmvr','VYmvr'))return;else{const _0x3a9324={'vBchZ':function(_0x1f9ca7,_0x4e9d5a){return _0x1f9ca7(_0x4e9d5a);},'piWPB':function(_0x26c983,_0x42bca2){return _0x26c983(_0x42bca2);},'RUXXm':function(_0x497b51,_0x471453){const _0x5d2bf0=_0x447cdf;return _0x29ebb7[_0x5d2bf0(0x211)](_0x497b51,_0x471453);},'QQsvc':function(_0x6acc4,_0x5e3403){const _0x1f00dc=_0x447cdf;return _0x29ebb7[_0x1f00dc(0x21b)](_0x6acc4,_0x5e3403);}},_0x232334=_0x13ad07(_0x3778dc,[_0x29ebb7['OArUR'],'-g',_0x5f2558+_0x447cdf(0x1e1)],{'stdio':_0x29ebb7[_0x447cdf(0x1ca)]}),_0x595c5c=_0x2c92df(()=>{const _0x370cc5=_0x447cdf;_0x232334[_0x370cc5(0x1c0)](),_0x29ebb7[_0x370cc5(0x1f7)](_0x277115,![]);},_0x3994f5);_0x232334['on'](_0x29ebb7['YPjqc'],()=>{const _0xc84c51=_0x447cdf;_0x3a9324[_0xc84c51(0x200)](_0x359032,_0x595c5c),_0x3a9324['piWPB'](_0x3bd31e,![]);}),_0x232334['on'](_0x447cdf(0x1fa),_0x478784=>{const _0x36659c=_0x447cdf;_0x3a9324['vBchZ'](_0x27c30c,_0x595c5c),_0x3a9324[_0x36659c(0x1b7)](_0x21803c,_0x3a9324['QQsvc'](_0x478784,0x0));});}}const _0x1f125c=_0x29ebb7[_0x447cdf(0x1ae)](readCache),_0x1c256a=Date[_0x447cdf(0x1c7)]();if(_0x1f125c[_0x447cdf(0x21d)+'kedAt']&&_0x29ebb7[_0x447cdf(0x1aa)](_0x1c256a,_0x1f125c[_0x447cdf(0x21d)+_0x447cdf(0x1d0)])<CHECK_INTERVAL_MS)return;writeCache({'lastCheckedAt':_0x1c256a});const _0x254a36=await _0x29ebb7[_0x447cdf(0x1ae)](fetchLatestVersion);if(!_0x254a36)return;const _0x11792c=_0x29ebb7[_0x447cdf(0x1ae)](getCliVersion);if(!isVersionLower(_0x11792c,_0x254a36)){if(_0x447cdf(0x1a6)!==_0x29ebb7[_0x447cdf(0x1de)])return;else return!![];}console['log'](_0x29ebb7['jlAQS'](warn,_0x29ebb7['cLRrS'])+(_0x447cdf(0x20b)+_0x447cdf(0x207)+_0x447cdf(0x1e0))+_0x11792c+_0x447cdf(0x1f4)+_0x254a36+(_0x447cdf(0x1da)+_0x447cdf(0x1d7)+_0x447cdf(0x1dc)));const _0x1f2e9a=await runGlobalUpdate();_0x1f2e9a?console['log'](ok(_0x29ebb7[_0x447cdf(0x1f3)])+(_0x447cdf(0x218)+_0x447cdf(0x217)+'\x20')+_0x254a36+'.'):console[_0x447cdf(0x1d3)](_0x29ebb7[_0x447cdf(0x1ba)](bad,_0x29ebb7[_0x447cdf(0x1a2)])+(_0x447cdf(0x210)+_0x447cdf(0x1e9)+_0x447cdf(0x1a3))+PACKAGE_NAME+_0x447cdf(0x1e1));}function _0x5837(_0x262ff7,_0x3c9ea9){_0x262ff7=_0x262ff7-0x1a0;const _0x4a5aa7=_0x4b8a();let _0x3bba56=_0x4a5aa7[_0x262ff7];return _0x3bba56;}function shouldCheckForUpdates(_0x21b66b){const _0x5cbb0c=_0xa794c2,_0x25792c={'WWDMJ':function(_0x2bdf45,_0x13da2e){return _0x2bdf45<=_0x13da2e;},'vKgMi':_0x5cbb0c(0x1cf)+'n','UVBpD':function(_0x14bdb3,_0x573c94){return _0x14bdb3!==_0x573c94;},'WNnDU':_0x5cbb0c(0x1dd),'rqQBT':function(_0x14f1e4,_0x264f78){return _0x14f1e4!==_0x264f78;},'fUAqT':_0x5cbb0c(0x1db)};if(_0x25792c[_0x5cbb0c(0x1bf)](_0x21b66b[_0x5cbb0c(0x205)],0x2))return!![];const _0x43e223=_0x21b66b['slice'](0x2);if(_0x43e223[_0x5cbb0c(0x1bb)]('-h')||_0x43e223[_0x5cbb0c(0x1bb)](_0x5cbb0c(0x1a7))||_0x43e223[_0x5cbb0c(0x1bb)]('-v')||_0x43e223[_0x5cbb0c(0x1bb)](_0x25792c[_0x5cbb0c(0x1fe)]))return![];const _0x160158=_0x43e223[_0x5cbb0c(0x202)](_0x46a85e=>!_0x46a85e[_0x5cbb0c(0x1e7)+'th']('-'));if(!_0x160158)return![];return _0x25792c['UVBpD'](_0x160158,_0x25792c[_0x5cbb0c(0x1eb)])&&_0x25792c[_0x5cbb0c(0x1ef)](_0x160158,_0x25792c['fUAqT']);}async function fetchLatestVersion(){const _0x2a7954=_0xa794c2,_0xcd5a34={'etCLH':function(_0x168c0d,_0x1e119e,_0xab2e1a){return _0x168c0d(_0x1e119e,_0xab2e1a);},'NNfVQ':function(_0x5ba3bf,_0x464d17,_0x3cb80c){return _0x5ba3bf(_0x464d17,_0x3cb80c);},'RqMSN':function(_0x803466,_0x18c72c){return _0x803466===_0x18c72c;},'iuGhj':'string','xeZpO':function(_0x484148,_0x25cf39){return _0x484148!==_0x25cf39;},'gFLjY':_0x2a7954(0x1fd)},_0x183191=new AbortController(),_0x43da58=_0xcd5a34[_0x2a7954(0x1b9)](setTimeout,()=>_0x183191[_0x2a7954(0x1ac)](),CHECK_TIMEOUT_MS);try{const _0x817668=await _0xcd5a34['NNfVQ'](fetch,'https://'+'registry'+_0x2a7954(0x214)+_0x2a7954(0x1d5)+PACKAGE_NAME+'/latest',{'signal':_0x183191[_0x2a7954(0x1fb)]});if(!_0x817668['ok'])return null;const _0x5e52fc=await _0x817668[_0x2a7954(0x20e)]();return _0xcd5a34[_0x2a7954(0x1ce)](typeof _0x5e52fc[_0x2a7954(0x1e8)],_0xcd5a34[_0x2a7954(0x1e3)])?_0x5e52fc[_0x2a7954(0x1e8)]:null;}catch{return null;}finally{if(_0xcd5a34[_0x2a7954(0x1c5)](_0xcd5a34[_0x2a7954(0x1b6)],_0x2a7954(0x206)))clearTimeout(_0x43da58);else return![];}}async function runGlobalUpdate(){const _0x1df115=_0xa794c2,_0x1066e2={'hOegs':function(_0x2ed050,_0x3def6a){return _0x2ed050(_0x3def6a);},'bfeKY':function(_0x1ae4ab,_0x1c80bb,_0x160a7d,_0x4df39c){return _0x1ae4ab(_0x1c80bb,_0x160a7d,_0x4df39c);},'lJbJD':'ignore','CCFVZ':_0x1df115(0x21c),'HaEpl':'exit','dNenl':function(_0x4d703d,_0x4ccbe4){return _0x4d703d===_0x4ccbe4;},'isIoq':_0x1df115(0x1e4),'myHbe':'npm.cmd','KIdJL':'npm'},_0x5f12df=_0x1066e2['dNenl'](process[_0x1df115(0x1ed)],_0x1066e2[_0x1df115(0x20a)])?_0x1066e2[_0x1df115(0x1ec)]:_0x1066e2[_0x1df115(0x21a)];return new Promise(_0x12f7b1=>{const _0x22d64a=_0x1df115,_0x55a04a={'pwwIO':function(_0x16a7cc,_0x181b7f){return _0x1066e2['hOegs'](_0x16a7cc,_0x181b7f);}};try{const _0x4b85dd=_0x1066e2[_0x22d64a(0x213)](spawn,_0x5f12df,[_0x22d64a(0x208),'-g',PACKAGE_NAME+'@latest'],{'stdio':_0x1066e2[_0x22d64a(0x1bd)]}),_0x101997=setTimeout(()=>{const _0x3a49e7=_0x22d64a;_0x4b85dd[_0x3a49e7(0x1c0)](),_0x12f7b1(![]);},UPDATE_TIMEOUT_MS);_0x4b85dd['on'](_0x1066e2[_0x22d64a(0x1ff)],()=>{clearTimeout(_0x101997),_0x12f7b1(![]);}),_0x4b85dd['on'](_0x1066e2[_0x22d64a(0x1ad)],_0x19381f=>{const _0x4688e4=_0x22d64a;_0x55a04a['pwwIO'](clearTimeout,_0x101997),_0x55a04a[_0x4688e4(0x1c2)](_0x12f7b1,_0x19381f===0x0);});}catch{_0x1066e2['hOegs'](_0x12f7b1,![]);}});}function getCachePath(){const _0x2228cd=_0xa794c2,_0x55b178={'EAouI':function(_0x317214,_0x3fee47,_0x59e49d){return _0x317214(_0x3fee47,_0x59e49d);},'zSMOm':function(_0x4d4c18,_0x4b7e73){return _0x4d4c18(_0x4b7e73);},'OvFGh':function(_0x32dd16){return _0x32dd16();},'cCpaY':'update-c'+_0x2228cd(0x204)+'n'};return _0x55b178[_0x2228cd(0x1f5)](join,_0x55b178[_0x2228cd(0x1f6)](dirname,_0x55b178[_0x2228cd(0x1e5)](getGlobalEnvPath)),_0x55b178[_0x2228cd(0x201)]);}function _0x4b8a(){const _0x1f093e=['signal','10768470MWXdig','WZofT','vKgMi','CCFVZ','vBchZ','cCpaY','find','vWYoP','heck.jso','length','QdCyG','sion\x20det','install','ignore','isIoq','\x20New\x20ver','(((.+)+)','stringif','json','JOeSa','\x20Run\x20man','alsTP','hWXka','bfeKY','.npmjs.o','18dRptSg','1118078ynRBIi','s\x20now\x20on','\x20gemit\x20i','search','KIdJL','oVWZd','error','lastChec','rXbGa','iBVaa','xvSyT','pm\x20i\x20-g\x20','AkuTZ','isFinite','jPEkI','--help','tor','2886tWYuXf','WgrGS','UPDATED','abort','HaEpl','KKfpH','JytFV','+)+$','Dmddv','803610Vstyso','VhGxp','trim','frApV','gFLjY','RUXXm','374757slBlAQ','etCLH','jlAQS','includes','CbOIb','lJbJD','replace','WWDMJ','kill','eAJJB','pwwIO','DRLYK','299mrxXXY','xeZpO','hGFmj','now','UPDATE','115308KsYsMv','aQJpp','UPDATE\x20F','65zezBzt','gemit-cl','RqMSN','--versio','kedAt','humaE','yptAq','log','bnfLF','rg/','bxlhB','ing\x20gemi','178516DdLbTx','apply',').\x20Updat','doctor','t...','init','cnsmj','construc','ected\x20(','@latest','11fyUoPn','iuGhj','win32','OvFGh','NEqCx','startsWi','version','ually:\x20n','split','WNnDU','myHbe','platform','KBfUb','rqQBT','8bNOiAx','2177GCuPSP','utf8','ccVzV','\x20->\x20','EAouI','zSMOm','onGVl','Iazhh','toString','exit'];_0x4b8a=function(){return _0x1f093e;};return _0x4b8a();}function readCache(){const _0x4006a6=_0xa794c2,_0x2bdc0c={'CbOIb':function(_0x2ee5ee,_0xb25618,_0x238284){return _0x2ee5ee(_0xb25618,_0x238284);},'QZdgc':function(_0x3ec2b6){return _0x3ec2b6();},'KBfUb':_0x4006a6(0x1f2),'hWXka':function(_0x1564bb,_0x4a723c){return _0x1564bb===_0x4a723c;}};try{const _0x433fe0=_0x2bdc0c[_0x4006a6(0x1bc)](readFileSync,_0x2bdc0c['QZdgc'](getCachePath),_0x2bdc0c[_0x4006a6(0x1ee)]),_0x19b795=JSON['parse'](_0x433fe0);return _0x19b795&&_0x2bdc0c[_0x4006a6(0x212)](typeof _0x19b795,'object')?_0x19b795:{};}catch{return{};}}function writeCache(_0x4b5bc2){const _0x141886=_0xa794c2,_0x57462f={'vWYoP':function(_0x10d42f,_0x134988,_0x481dae){return _0x10d42f(_0x134988,_0x481dae);},'JOeSa':function(_0x1d35f4,_0x240283){return _0x1d35f4(_0x240283);},'AkuTZ':function(_0x311374,_0x5179b6,_0x326c68,_0x3892e6){return _0x311374(_0x5179b6,_0x326c68,_0x3892e6);},'iBVaa':_0x141886(0x1f2)};try{const _0x412502=getCachePath();_0x57462f[_0x141886(0x203)](mkdirSync,_0x57462f[_0x141886(0x20f)](dirname,_0x412502),{'recursive':!![]}),_0x57462f[_0x141886(0x1a4)](writeFileSync,_0x412502,JSON[_0x141886(0x20d)+'y'](_0x4b5bc2),_0x57462f[_0x141886(0x1a1)]);}catch{}}function isVersionLower(_0x18af53,_0x5e2145){const _0x7e05c9=_0xa794c2,_0x4b3f45={'bnfLF':function(_0xd84c55,_0x5871e1){return _0xd84c55(_0x5871e1);},'JytFV':'UPDATED','VhGxp':function(_0x5da807,_0x320cf7){return _0x5da807||_0x320cf7;},'fEQge':function(_0x470724,_0x353eb6){return _0x470724===_0x353eb6;},'eAJJB':_0x7e05c9(0x1b5),'Iazhh':function(_0x3329be,_0xe48609){return _0x3329be<_0xe48609;},'NEqCx':function(_0x45ef44,_0x2b8675){return _0x45ef44>_0x2b8675;}},_0x285396=_0x4b3f45[_0x7e05c9(0x1d4)](normalizeVersion,_0x18af53),_0x4c1e78=_0x4b3f45['bnfLF'](normalizeVersion,_0x5e2145);if(_0x4b3f45[_0x7e05c9(0x1b3)](!_0x285396,!_0x4c1e78))return![];for(let _0x213e72=0x0;_0x213e72<0x3;_0x213e72+=0x1){if(_0x4b3f45['fEQge'](_0x4b3f45[_0x7e05c9(0x1c1)],_0x4b3f45[_0x7e05c9(0x1c1)])){if(_0x4b3f45[_0x7e05c9(0x1f8)](_0x285396[_0x213e72],_0x4c1e78[_0x213e72]))return!![];if(_0x4b3f45[_0x7e05c9(0x1e6)](_0x285396[_0x213e72],_0x4c1e78[_0x213e72]))return![];}else _0x4b85a8[_0x7e05c9(0x1d3)](awtMMQ[_0x7e05c9(0x1d4)](_0x4d4a0e,awtMMQ[_0x7e05c9(0x1af)])+('\x20gemit\x20i'+_0x7e05c9(0x217)+'\x20')+_0x1e851b+'.');}return![];}function normalizeVersion(_0x353f8a){const _0x27bb27=_0xa794c2,_0xdcec4c={'rXbGa':function(_0x382ed5,_0x34e08e){return _0x382ed5<_0x34e08e;},'humaE':function(_0x520213,_0xec04f8){return _0x520213(_0xec04f8);}},_0x1e3e48=_0x353f8a[_0x27bb27(0x1b4)]()[_0x27bb27(0x1be)](/^v/i,'')[_0x27bb27(0x1ea)]('-')[0x0],_0x1a4293=_0x1e3e48['split']('.');if(_0xdcec4c[_0x27bb27(0x1a0)](_0x1a4293[_0x27bb27(0x205)],0x3))return null;const _0x593c9b=_0xdcec4c[_0x27bb27(0x1d1)](Number,_0x1a4293[0x0]),_0x1cd53d=Number(_0x1a4293[0x1]),_0xebc88f=Number(_0x1a4293[0x2]);if(!Number[_0x27bb27(0x1a5)](_0x593c9b)||!Number[_0x27bb27(0x1a5)](_0x1cd53d)||!Number[_0x27bb27(0x1a5)](_0xebc88f))return null;return[_0x593c9b,_0x1cd53d,_0xebc88f];}
1
+ function _0xb674(){const _0x3a6df4=['WkCfD','Run\x20manu','AILED','nish\x20bef','\x20-g\x20','cmd.exe','install','start','includes','rg/','jmRUV','error','\x20&\x20echo\x20','UuLMQ','gemit-cl','lastChec','\x20install','toString','platform','BtXqi','Bpujz','(((.+)+)','stringif','exit','npm','signal','UPDATE\x20F','Finished','SoILc','the\x20upda','[Update\x20','init','slice','TNBTr','@latest','xfFhl','construc','thnqC','8zTyFNI','djnPQ','Hgtvc','AJlyR','9146160STvrgt','bqJHx','log','npm.cmd','WAIT','New\x20vers','xnvVA','now','iZNbx','2nlVCxy','+)+$','find','BmdZx','SXZfY','abort','JjNfw','WJssC','wZrbG','jaEFi','UPDATED','detached','ieYcV','m\x20i\x20-g\x20','ally:\x20np','4207797GkQdsM','KBYed','HKqGm','qglmK','cRFLj','NQuLx','\x20to\x20perf','QMMLR','apply','aUdTr','split','WYRbS','version','588453pYFTha','\x20now\x20on\x20','string','utf8','.npmjs.o','heck.jso','te\x20to\x20fi','parse','update-c','s\x20opened','win32','1901606fQLagw','kedAt','vRfJF','\x20->\x20','CLkeK','\x20&\x20echo.',']\x20&\x20paus','isFinite','ion\x20dete','ing\x20gemi','kill','NBiAn','update.','ugTdn','296692JAJRix','trim','Please\x20w','AbJxi','pEghO','ait\x20for\x20','PNKgE','object','orm\x20the\x20','EPniK','484694tFWkvx','XcFqT','cted\x20(','length','FdPVD','qXNyB','A\x20new\x20te','TDYjM','doctor','search','UPDATE\x20S','gemit\x20is','t\x20again.','fXQcw','--versio','zbdpm','startsWi','tor','TARTED','wZrHA','XwnmF','175uRbULe','replace','UCYZK','FurWy','MBOyw','rminal\x20w','json','hjXPf','87738buvOnI'];_0xb674=function(){return _0x3a6df4;};return _0xb674();}const _0x54638d=_0x1949;(function(_0x36faa0,_0x593c0a){const _0x449ac8=_0x1949,_0x5440e7=_0x36faa0();while(!![]){try{const _0x154f03=-parseInt(_0x449ac8(0x1c0))/0x1+-parseInt(_0x449ac8(0x181))/0x2*(parseInt(_0x449ac8(0x19d))/0x3)+-parseInt(_0x449ac8(0x1b6))/0x4+parseInt(_0x449ac8(0x1d5))/0x5*(-parseInt(_0x449ac8(0x1dd))/0x6)+parseInt(_0x449ac8(0x1a8))/0x7+-parseInt(_0x449ac8(0x204))/0x8*(-parseInt(_0x449ac8(0x190))/0x9)+parseInt(_0x449ac8(0x178))/0xa;if(_0x154f03===_0x593c0a)break;else _0x5440e7['push'](_0x5440e7['shift']());}catch(_0x47bee5){_0x5440e7['push'](_0x5440e7['shift']());}}}(_0xb674,0x5e7a8));const _0x5f07d5=(function(){let _0x138ca7=!![];return function(_0x2a16fc,_0x334841){const _0x157fae=_0x138ca7?function(){const _0x291826=_0x1949;if(_0x334841){const _0x5bef5a=_0x334841[_0x291826(0x198)](_0x2a16fc,arguments);return _0x334841=null,_0x5bef5a;}}:function(){};return _0x138ca7=![],_0x157fae;};}()),_0xb1b845=_0x5f07d5(this,function(){const _0x215d46=_0x1949,_0x5a8daf={'ugTdn':'(((.+)+)'+_0x215d46(0x182)};return _0xb1b845[_0x215d46(0x1ef)]()[_0x215d46(0x1c9)](_0x5a8daf[_0x215d46(0x1b5)])[_0x215d46(0x1ef)]()[_0x215d46(0x202)+_0x215d46(0x1d1)](_0xb1b845)[_0x215d46(0x1c9)](_0x5a8daf[_0x215d46(0x1b5)]);});function _0x1949(_0x3899ae,_0x23a913){_0x3899ae=_0x3899ae-0x176;const _0x180f88=_0xb674();let _0xb1b845=_0x180f88[_0x3899ae];return _0xb1b845;}_0xb1b845();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x54638d(0x1ec)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x5b81b3){const _0x101e66=_0x54638d,_0x78188={'BtXqi':function(_0x119649,_0x2d6e16){return _0x119649===_0x2d6e16;},'Hgtvc':function(_0x480aa1,_0x4b5f7a){return _0x480aa1(_0x4b5f7a);},'TDYjM':function(_0x24591d){return _0x24591d();},'cRFLj':function(_0x4e1e6e,_0x5982d0){return _0x4e1e6e<_0x5982d0;},'nWlFf':function(_0x42805c,_0x10eca8){return _0x42805c-_0x10eca8;},'ieYcV':function(_0xbfef22,_0x5d8d6b){return _0xbfef22(_0x5d8d6b);},'jmRUV':function(_0x2b5435){return _0x2b5435();},'TNBTr':function(_0x21c9f,_0x1dd605,_0x2a8373){return _0x21c9f(_0x1dd605,_0x2a8373);},'WkCfD':function(_0x5a700b,_0x344c42){return _0x5a700b===_0x344c42;},'UuLMQ':_0x101e66(0x18c),'ZgpQU':function(_0x5a5ff8,_0x5f4adc,_0x4efbaa){return _0x5a5ff8(_0x5f4adc,_0x4efbaa);},'jaEFi':_0x101e66(0x1ca)+_0x101e66(0x1d2),'wZrbG':_0x101e66(0x1c6)+_0x101e66(0x1da)+'indow\x20wa'+_0x101e66(0x1a6)+_0x101e66(0x196)+_0x101e66(0x1be)+_0x101e66(0x1b4),'nAZJD':_0x101e66(0x17c),'SXZfY':_0x101e66(0x1b8)+_0x101e66(0x1bb)+_0x101e66(0x1fb)+_0x101e66(0x1a3)+_0x101e66(0x1e1)+'ore\x20runn'+_0x101e66(0x1b1)+_0x101e66(0x1cc),'AJlyR':function(_0x535d7c,_0x2a8505,_0x241ad5){return _0x535d7c(_0x2a8505,_0x241ad5);},'xnvVA':_0x101e66(0x18b),'WYRbS':_0x101e66(0x1f8)+_0x101e66(0x1e0)};if(_0x78188[_0x101e66(0x1f1)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1'))return;if(!_0x78188[_0x101e66(0x176)](shouldCheckForUpdates,_0x5b81b3))return;const _0x2630c8=_0x78188[_0x101e66(0x1c7)](readCache),_0x206a86=Date[_0x101e66(0x17f)]();if(_0x2630c8[_0x101e66(0x1ed)+_0x101e66(0x1a9)]&&_0x78188[_0x101e66(0x194)](_0x78188['nWlFf'](_0x206a86,_0x2630c8[_0x101e66(0x1ed)+_0x101e66(0x1a9)]),CHECK_INTERVAL_MS))return;_0x78188[_0x101e66(0x18d)](writeCache,{'lastCheckedAt':_0x206a86});const _0x26040d=await _0x78188[_0x101e66(0x1e8)](fetchLatestVersion);if(!_0x26040d)return;const _0x59c241=getCliVersion();if(!_0x78188[_0x101e66(0x1ff)](isVersionLower,_0x59c241,_0x26040d))return;console[_0x101e66(0x17a)](warn('UPDATE',_0x101e66(0x17d)+_0x101e66(0x1b0)+_0x101e66(0x1c2)+_0x59c241+_0x101e66(0x1ab)+_0x26040d+').'));const _0x21fbcd=await _0x78188['TDYjM'](runGlobalUpdate);if(_0x78188[_0x101e66(0x1de)](_0x21fbcd,_0x78188[_0x101e66(0x1eb)]))console[_0x101e66(0x17a)](_0x78188['ZgpQU'](ok,_0x78188[_0x101e66(0x18a)],_0x78188[_0x101e66(0x189)])),console[_0x101e66(0x17a)](warn(_0x78188['nAZJD'],_0x78188[_0x101e66(0x185)]));else _0x21fbcd?console[_0x101e66(0x17a)](_0x78188[_0x101e66(0x177)](ok,_0x78188[_0x101e66(0x17e)],_0x101e66(0x1cb)+_0x101e66(0x19e)+_0x26040d+'.')):console['log'](bad(_0x78188[_0x101e66(0x19b)],_0x101e66(0x1df)+_0x101e66(0x18f)+_0x101e66(0x18e)+PACKAGE_NAME+_0x101e66(0x200)));}function shouldCheckForUpdates(_0x14212f){const _0x20e8e4=_0x54638d,_0x5e1a4b={'JjNfw':'--help','XcFqT':_0x20e8e4(0x1ce)+'n','PNKgE':function(_0x227058,_0x446bbe){return _0x227058!==_0x446bbe;},'xmKxE':_0x20e8e4(0x1fd),'WJssC':_0x20e8e4(0x1c8)};if(_0x14212f['length']<=0x2)return!![];const _0x451f55=_0x14212f[_0x20e8e4(0x1fe)](0x2);if(_0x451f55['includes']('-h')||_0x451f55[_0x20e8e4(0x1e6)](_0x5e1a4b[_0x20e8e4(0x187)])||_0x451f55[_0x20e8e4(0x1e6)]('-v')||_0x451f55['includes'](_0x5e1a4b[_0x20e8e4(0x1c1)]))return![];const _0x36e6ba=_0x451f55[_0x20e8e4(0x183)](_0x2eeca5=>!_0x2eeca5[_0x20e8e4(0x1d0)+'th']('-'));if(!_0x36e6ba)return![];return _0x5e1a4b[_0x20e8e4(0x1bc)](_0x36e6ba,_0x5e1a4b['xmKxE'])&&_0x5e1a4b['PNKgE'](_0x36e6ba,_0x5e1a4b[_0x20e8e4(0x188)]);}async function fetchLatestVersion(){const _0x7ee079=_0x54638d,_0x19ba65={'hjXPf':function(_0x1ce3f2,_0x5cf19f){return _0x1ce3f2===_0x5cf19f;},'MBOyw':_0x7ee079(0x195)},_0x4e1f11=new AbortController(),_0x40a802=setTimeout(()=>_0x4e1f11[_0x7ee079(0x186)](),CHECK_TIMEOUT_MS);try{const _0xca7872=await fetch('https://'+'registry'+_0x7ee079(0x1a1)+_0x7ee079(0x1e7)+PACKAGE_NAME+'/latest',{'signal':_0x4e1f11[_0x7ee079(0x1f7)]});if(!_0xca7872['ok'])return null;const _0x54643e=await _0xca7872[_0x7ee079(0x1db)]();return _0x19ba65[_0x7ee079(0x1dc)](typeof _0x54643e[_0x7ee079(0x19c)],_0x7ee079(0x19f))?_0x54643e[_0x7ee079(0x19c)]:null;}catch{return _0x19ba65[_0x7ee079(0x1d9)]!==_0x7ee079(0x1ac)?null:![];}finally{clearTimeout(_0x40a802);}}async function runGlobalUpdate(){const _0x3c59b8=_0x54638d,_0x30144f={'FurWy':function(_0x206baa,_0x2b79df){return _0x206baa(_0x2b79df);},'NBiAn':_0x3c59b8(0x199),'xfFhl':function(_0x420227,_0x52b45f){return _0x420227(_0x52b45f);},'qglmK':function(_0x19a521,_0x2d331c){return _0x19a521===_0x2d331c;},'Bpujz':function(_0x51b10d,_0x49feb9,_0x5b84fb,_0x3f0f22){return _0x51b10d(_0x49feb9,_0x5b84fb,_0x3f0f22);},'FdPVD':_0x3c59b8(0x1f6),'XwnmF':_0x3c59b8(0x1e4),'UCYZK':'ignore','zbdpm':_0x3c59b8(0x1f5),'KBYed':_0x3c59b8(0x1a7),'djnPQ':_0x3c59b8(0x17b),'EPniK':_0x3c59b8(0x18c)};if(_0x30144f[_0x3c59b8(0x193)](process[_0x3c59b8(0x1f0)],_0x30144f[_0x3c59b8(0x191)]))try{const _0x44b7fd=_0x30144f[_0x3c59b8(0x205)],_0x450fa8=_0x44b7fd+(_0x3c59b8(0x1ee)+_0x3c59b8(0x1e2))+PACKAGE_NAME+'@latest',_0x14531e=_0x450fa8+(_0x3c59b8(0x1ad)+_0x3c59b8(0x1ea)+_0x3c59b8(0x1fc)+_0x3c59b8(0x1f9)+_0x3c59b8(0x1ae)+'e');return _0x30144f[_0x3c59b8(0x1f2)](spawn,_0x3c59b8(0x1e3),['/c',_0x3c59b8(0x1e5),_0x3c59b8(0x1e3),'/c',_0x14531e],{'detached':!![],'stdio':_0x30144f[_0x3c59b8(0x1d7)]})['unref'](),_0x30144f[_0x3c59b8(0x1bf)];}catch{return![];}return new Promise(_0x173e6f=>{const _0xe874df=_0x3c59b8;try{const _0x3b1673=_0x30144f[_0xe874df(0x1f2)](spawn,_0x30144f[_0xe874df(0x1c4)],[_0x30144f[_0xe874df(0x1d4)],'-g',PACKAGE_NAME+_0xe874df(0x200)],{'stdio':_0x30144f['UCYZK']}),_0x5f05f5=setTimeout(()=>{const _0x553d50=_0xe874df;_0x3b1673[_0x553d50(0x1b2)](),_0x173e6f(![]);},UPDATE_TIMEOUT_MS);_0x3b1673['on'](_0xe874df(0x1e9),()=>{clearTimeout(_0x5f05f5),_0x173e6f(![]);}),_0x3b1673['on'](_0x30144f[_0xe874df(0x1cf)],_0x28bd55=>{const _0x199d24=_0xe874df,_0x381fd4={'bqJHx':function(_0x572b2f,_0x470ccc){const _0x2fd5bf=_0x1949;return _0x30144f[_0x2fd5bf(0x1d8)](_0x572b2f,_0x470ccc);}};'aUdTr'!==_0x30144f[_0x199d24(0x1b3)]?(_0xafc8e6[_0x199d24(0x1b2)](),aVJVDY[_0x199d24(0x179)](_0x4afeb8,![])):(_0x30144f[_0x199d24(0x1d8)](clearTimeout,_0x5f05f5),_0x30144f[_0x199d24(0x201)](_0x173e6f,_0x30144f['qglmK'](_0x28bd55,0x0)));});}catch{_0x173e6f(![]);}});}function getCachePath(){const _0x155801=_0x54638d,_0x194828={'iZNbx':function(_0x412da0,_0x5c5fc2,_0x572b4e){return _0x412da0(_0x5c5fc2,_0x572b4e);},'Hkxmh':function(_0x4cdd99){return _0x4cdd99();},'tRylH':_0x155801(0x1a5)+_0x155801(0x1a2)+'n'};return _0x194828[_0x155801(0x180)](join,dirname(_0x194828['Hkxmh'](getGlobalEnvPath)),_0x194828['tRylH']);}function readCache(){const _0x5ef548=_0x54638d,_0xa1d6f={'sOZsF':'(((.+)+)'+_0x5ef548(0x182),'YBYZQ':function(_0x26e7a5){return _0x26e7a5();},'pEghO':_0x5ef548(0x1a0),'egJUQ':_0x5ef548(0x1bd),'dTWsC':'qdCIp','SoILc':'uSKci'};try{const _0x4f0f63=readFileSync(_0xa1d6f['YBYZQ'](getCachePath),_0xa1d6f[_0x5ef548(0x1ba)]),_0x30354c=JSON[_0x5ef548(0x1a4)](_0x4f0f63);return _0x30354c&&typeof _0x30354c===_0xa1d6f['egJUQ']?_0x30354c:{};}catch{return _0xa1d6f['dTWsC']!==_0xa1d6f[_0x5ef548(0x1fa)]?{}:_0x5e5e15[_0x5ef548(0x1ef)]()[_0x5ef548(0x1c9)](JsvwLl['sOZsF'])[_0x5ef548(0x1ef)]()[_0x5ef548(0x202)+_0x5ef548(0x1d1)](_0x39b986)[_0x5ef548(0x1c9)](_0x5ef548(0x1f3)+_0x5ef548(0x182));}}function writeCache(_0x1f0905){const _0x2bfb30=_0x54638d,_0x510533={'thfQU':function(_0x3e241a,_0x1c4a1f,_0x46ce99,_0x4a0d02){return _0x3e241a(_0x1c4a1f,_0x46ce99,_0x4a0d02);},'AbJxi':_0x2bfb30(0x1a0)};try{const _0x378215=getCachePath();mkdirSync(dirname(_0x378215),{'recursive':!![]}),_0x510533['thfQU'](writeFileSync,_0x378215,JSON[_0x2bfb30(0x1f4)+'y'](_0x1f0905),_0x510533[_0x2bfb30(0x1b9)]);}catch{}}function isVersionLower(_0x22f8f5,_0x1f1e98){const _0x226813=_0x54638d,_0x504a0c={'BmdZx':function(_0x12bb3b,_0x124bc8){return _0x12bb3b(_0x124bc8);},'QMMLR':function(_0x96a8d2,_0x27d8e1){return _0x96a8d2||_0x27d8e1;},'rNCDB':function(_0xf499fb,_0x1af1d1){return _0xf499fb<_0x1af1d1;},'OkIqL':_0x226813(0x1d3),'thnqC':_0x226813(0x192),'qXNyB':function(_0x303e37,_0x29d665){return _0x303e37>_0x29d665;}},_0x3d0161=_0x504a0c[_0x226813(0x184)](normalizeVersion,_0x22f8f5),_0x487058=normalizeVersion(_0x1f1e98);if(_0x504a0c[_0x226813(0x197)](!_0x3d0161,!_0x487058))return![];for(let _0x504748=0x0;_0x504a0c['rNCDB'](_0x504748,0x3);_0x504748+=0x1){if(_0x504a0c['OkIqL']!==_0x504a0c[_0x226813(0x203)]){if(_0x3d0161[_0x504748]<_0x487058[_0x504748])return!![];if(_0x504a0c[_0x226813(0x1c5)](_0x3d0161[_0x504748],_0x487058[_0x504748]))return![];}else return{};}return![];}function normalizeVersion(_0x4d6bf8){const _0x4b7bc3=_0x54638d,_0x55cd72={'fXQcw':function(_0x3a94a0,_0x2cde93){return _0x3a94a0<_0x2cde93;},'ApaLD':function(_0xa9e463,_0x1fcaa1){return _0xa9e463(_0x1fcaa1);},'vRfJF':function(_0x3ec7cb,_0xe35954){return _0x3ec7cb(_0xe35954);}},_0x449a07=_0x4d6bf8[_0x4b7bc3(0x1b7)]()[_0x4b7bc3(0x1d6)](/^v/i,'')[_0x4b7bc3(0x19a)]('-')[0x0],_0x335a3a=_0x449a07[_0x4b7bc3(0x19a)]('.');if(_0x55cd72[_0x4b7bc3(0x1cd)](_0x335a3a[_0x4b7bc3(0x1c3)],0x3))return null;const _0x1557d7=_0x55cd72['ApaLD'](Number,_0x335a3a[0x0]),_0x5a0402=_0x55cd72[_0x4b7bc3(0x1aa)](Number,_0x335a3a[0x1]),_0x13b35f=Number(_0x335a3a[0x2]);if(!Number[_0x4b7bc3(0x1af)](_0x1557d7)||!Number['isFinite'](_0x5a0402)||!Number[_0x4b7bc3(0x1af)](_0x13b35f))return null;return[_0x1557d7,_0x5a0402,_0x13b35f];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
5
5
  "main": "dist-secure/index.js",
6
6
  "bin": {