gemit-cli 1.6.0 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,6 +34,17 @@ gemit doctor # verifica configuração
34
34
  gemit -v # versão
35
35
  ```
36
36
 
37
+ ## Atualização automática
38
+
39
+ Ao executar comandos de uso diário, o `gemit` verifica periodicamente se existe versão nova e tenta atualizar via npm global.
40
+
41
+ Para desativar:
42
+
43
+ ```bash
44
+ GEMIT_DISABLE_AUTO_UPDATE=1 gemit commit
45
+ $env:GEMIT_DISABLE_AUTO_UPDATE="1"; gemit commit # PowerShell
46
+ ```
47
+
37
48
  ## Provedores suportados
38
49
 
39
50
  - `google`
@@ -1 +1 @@
1
- (function(_0x241038,_0x1467f1){const _0x4b6c56=_0x3498,_0x20cd4c=_0x241038();while(!![]){try{const _0x10fc18=parseInt(_0x4b6c56(0xa1))/0x1+-parseInt(_0x4b6c56(0x9b))/0x2+parseInt(_0x4b6c56(0x9c))/0x3+-parseInt(_0x4b6c56(0xae))/0x4*(-parseInt(_0x4b6c56(0x95))/0x5)+parseInt(_0x4b6c56(0x93))/0x6*(parseInt(_0x4b6c56(0x9a))/0x7)+-parseInt(_0x4b6c56(0xaa))/0x8+-parseInt(_0x4b6c56(0x90))/0x9;if(_0x10fc18===_0x1467f1)break;else _0x20cd4c['push'](_0x20cd4c['shift']());}catch(_0x8e898d){_0x20cd4c['push'](_0x20cd4c['shift']());}}}(_0x48e1,0xa01e3));const _0x1c57c3=(function(){let _0x5c54be=!![];return function(_0x38da8a,_0x849881){const _0x1adef5=_0x5c54be?function(){const _0x200e9c=_0x3498;if(_0x849881){const _0x1c3123=_0x849881[_0x200e9c(0x91)](_0x38da8a,arguments);return _0x849881=null,_0x1c3123;}}:function(){};return _0x5c54be=![],_0x1adef5;};}()),_0x532909=_0x1c57c3(this,function(){const _0x4fc3ad=_0x3498,_0x46e7ca={'XEFJV':_0x4fc3ad(0xac)+_0x4fc3ad(0xa4)};return _0x532909[_0x4fc3ad(0xa3)]()[_0x4fc3ad(0xa7)](_0x46e7ca['XEFJV'])[_0x4fc3ad(0xa3)]()[_0x4fc3ad(0x96)+_0x4fc3ad(0x92)](_0x532909)[_0x4fc3ad(0xa7)](_0x4fc3ad(0xac)+_0x4fc3ad(0xa4));});function _0x48e1(){const _0xd7aac2=['5BrVGkR','construc','pfqXL','parse','dist-sec','4146422ufQztY','1876882jISxJD','2109093ZbufFK','0.0.0','WqoSU','package.','lwDFG','749728hFnzKu','kfduU','toString','+)+$','dist','OFMGf','search','JZtvL','voJFY','6247112THtXLA','BdYQw','(((.+)+)','mQoCk','2917704cSRiAZ','3594222tReDam','apply','tor','6GalSMR','json'];_0x48e1=function(){return _0xd7aac2;};return _0x48e1();}_0x532909();import{basename,dirname,join}from'path';import{readFileSync}from'fs';function _0x3498(_0x5f5720,_0x2f8e94){_0x5f5720=_0x5f5720-0x90;const _0x20fbb9=_0x48e1();let _0x532909=_0x20fbb9[_0x5f5720];return _0x532909;}import{fileURLToPath}from'url';export function getCliVersion(){const _0x4abe64=_0x3498,_0x4755af={'OFMGf':function(_0x29d581,_0x45d049){return _0x29d581(_0x45d049);},'BdYQw':function(_0x305127,_0x1343c6){return _0x305127===_0x1343c6;},'mQoCk':function(_0x31244a,_0x10e389){return _0x31244a(_0x10e389);},'dbMvB':_0x4abe64(0xa5),'WqoSU':function(_0x44f89b,_0x77c46f){return _0x44f89b(_0x77c46f);},'JZtvL':_0x4abe64(0x99)+'ure','RlvAp':function(_0x3128e7,_0x48182f,_0x325828,_0x29d799){return _0x3128e7(_0x48182f,_0x325828,_0x29d799);},'voJFY':_0x4abe64(0x9f)+_0x4abe64(0x94),'lwDFG':function(_0xfe7400,_0x161ceb,_0x2a2ae5){return _0xfe7400(_0x161ceb,_0x2a2ae5);},'kfduU':'utf8','pfqXL':_0x4abe64(0x9d)};try{const _0x5f1747=_0x4755af[_0x4abe64(0xa6)](fileURLToPath,import.meta.url),_0x35c87b=_0x4755af['OFMGf'](dirname,_0x5f1747),_0x1cb863=_0x4755af[_0x4abe64(0xab)](_0x4755af[_0x4abe64(0xad)](basename,_0x35c87b),_0x4755af['dbMvB'])||_0x4755af[_0x4abe64(0xab)](_0x4755af[_0x4abe64(0x9e)](basename,_0x35c87b),_0x4755af[_0x4abe64(0xa8)])?_0x4755af['RlvAp'](join,_0x35c87b,'..',_0x4755af[_0x4abe64(0xa9)]):_0x4755af[_0x4abe64(0xa0)](join,_0x35c87b,_0x4abe64(0x9f)+'json'),_0x3353a0=_0x4755af[_0x4abe64(0xa0)](readFileSync,_0x1cb863,_0x4755af[_0x4abe64(0xa2)]),_0x354e37=JSON[_0x4abe64(0x98)](_0x3353a0);return _0x354e37['version']||_0x4755af[_0x4abe64(0x97)];}catch{return _0x4abe64(0x9d);}}
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 +1 @@
1
- (function(_0x3edf2d,_0x2fe494){var _0x5eeaca=_0x1483,_0x32698b=_0x3edf2d();while(!![]){try{var _0x35d34d=-parseInt(_0x5eeaca(0xbb))/0x1+parseInt(_0x5eeaca(0xc1))/0x2+-parseInt(_0x5eeaca(0xb9))/0x3+parseInt(_0x5eeaca(0xcc))/0x4*(-parseInt(_0x5eeaca(0xb4))/0x5)+parseInt(_0x5eeaca(0xcd))/0x6*(parseInt(_0x5eeaca(0xb8))/0x7)+-parseInt(_0x5eeaca(0xc8))/0x8+parseInt(_0x5eeaca(0xcb))/0x9*(parseInt(_0x5eeaca(0xc9))/0xa);if(_0x35d34d===_0x2fe494)break;else _0x32698b['push'](_0x32698b['shift']());}catch(_0x496d4a){_0x32698b['push'](_0x32698b['shift']());}}}(_0x3ad5,0x1c7c4));var _0x241d89=(function(){var _0x25ce7c=!![];return function(_0x2fc8aa,_0x14f01c){var _0x477e84=_0x25ce7c?function(){if(_0x14f01c){var _0x251391=_0x14f01c['apply'](_0x2fc8aa,arguments);return _0x14f01c=null,_0x251391;}}:function(){};return _0x25ce7c=![],_0x477e84;};}()),_0x45caa5=_0x241d89(this,function(){var _0x54dc80=_0x1483,_0x56b751={'Ldlwt':'(((.+)+)'+_0x54dc80(0xc6)};return _0x45caa5['toString']()[_0x54dc80(0xc4)](_0x56b751[_0x54dc80(0xc0)])[_0x54dc80(0xc3)]()[_0x54dc80(0xb6)+'tor'](_0x45caa5)['search'](_0x56b751[_0x54dc80(0xc0)]);});_0x45caa5();import{failAndExit}from'../ui.js';function _0x1483(_0x235c50,_0x3436dc){_0x235c50=_0x235c50-0xb4;var _0x2d4b60=_0x3ad5();var _0x45caa5=_0x2d4b60[_0x235c50];return _0x45caa5;}function _0x3ad5(){var _0x18b9d1=['179085iIajcl','he\x20sugge','construc','\x20stage\x20e','319991OBvZWo','622548kwGoPO','it\x20add\x20-','109804tnrgOG','Use\x20`gem','check','nHaeT','all','Ldlwt','424576Ewaieu','g\x20and\x20co','toString','search','verythin','+)+$','stion\x20fl','1217784qQFlUj','74400LxBFWF','ow.','657RgYMRW','24UNxYVr','6VvHZgZ'];_0x3ad5=function(){return _0x18b9d1;};return _0x3ad5();}import{generateCommit}from'./commit.js';export async function addAndCommit(_0x5e0235={}){var _0x23bdff=_0x1483,_0x275736={'nHaeT':function(_0xb01133,_0x16ddab){return _0xb01133(_0x16ddab);}};!_0x5e0235[_0x23bdff(0xbf)]&&_0x275736[_0x23bdff(0xbe)](failAndExit,_0x23bdff(0xbc)+_0x23bdff(0xba)+'-all`\x20to'+_0x23bdff(0xb7)+_0x23bdff(0xc5)+_0x23bdff(0xc2)+'ntinue\x20t'+_0x23bdff(0xb5)+_0x23bdff(0xc7)+_0x23bdff(0xca)),await _0x275736[_0x23bdff(0xbe)](generateCommit,{'all':!![],'check':_0x275736['nHaeT'](Boolean,_0x5e0235[_0x23bdff(0xbd)])});}
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 +1 @@
1
- (function(_0x44cc71,_0x272034){const _0x4ec773=_0x5cc1,_0x281c32=_0x44cc71();while(!![]){try{const _0x2ca4a5=-parseInt(_0x4ec773(0x111))/0x1+-parseInt(_0x4ec773(0x130))/0x2+-parseInt(_0x4ec773(0x15d))/0x3+-parseInt(_0x4ec773(0x114))/0x4+parseInt(_0x4ec773(0x119))/0x5*(parseInt(_0x4ec773(0x166))/0x6)+-parseInt(_0x4ec773(0x13b))/0x7*(-parseInt(_0x4ec773(0x12a))/0x8)+parseInt(_0x4ec773(0x11b))/0x9*(parseInt(_0x4ec773(0x133))/0xa);if(_0x2ca4a5===_0x272034)break;else _0x281c32['push'](_0x281c32['shift']());}catch(_0x596119){_0x281c32['push'](_0x281c32['shift']());}}}(_0x78a0,0x776fb));const _0xc95321=(function(){const _0x1035fd=_0x5cc1,_0x378bba={'OfcDH':function(_0x515c87,_0x1aeeb0){return _0x515c87!==_0x1aeeb0;},'evKuE':'qDcEK','fIpif':function(_0x8ae727,_0x5b567e){return _0x8ae727||_0x5b567e;},'atRss':_0x1035fd(0x13a)+_0x1035fd(0x160)};let _0x2b598f=!![];return function(_0x21448c,_0x3d6519){const _0x565183=_0x1035fd,_0x8d0158={'aayhq':function(_0x2f9d39,_0x2a2ea9){const _0x23395a=_0x5cc1;return _0x378bba[_0x23395a(0x147)](_0x2f9d39,_0x2a2ea9);},'ZudQx':_0x378bba[_0x565183(0x157)]},_0x10a9e8=_0x2b598f?function(){const _0x2fd636=_0x565183;if(_0x378bba[_0x2fd636(0x15b)](_0x378bba[_0x2fd636(0x138)],_0x378bba[_0x2fd636(0x138)])){const _0x4cbcbf=_0x4a35a5['normaliz'+'e'](_0x2fd636(0x10f))[_0x2fd636(0x150)](/[\u0300-\u036f]/g,'')['toLowerC'+_0x2fd636(0x139)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x2fd636(0x150)](/-{2,}/g,'-')[_0x2fd636(0x150)](/\/{2,}/g,'/')[_0x2fd636(0x150)](/^-+|-+$/g,'')['replace'](/^\/+|\/+$/g,''),_0x1f9618=_0x4cbcbf[_0x2fd636(0x13c)](0x0,0x32)[_0x2fd636(0x150)](/\/+$/g,'')[_0x2fd636(0x150)](/-+$/g,''),_0x5bdc29=_0x8d0158[_0x2fd636(0x13f)](_0x1f9618,_0x8d0158['ZudQx']);if(!_0x5bdc29[_0x2fd636(0x121)]('/'))return'feat/'+_0x5bdc29;return _0x5bdc29;}else{if(_0x3d6519){const _0x12be2b=_0x3d6519[_0x2fd636(0x142)](_0x21448c,arguments);return _0x3d6519=null,_0x12be2b;}}}:function(){};return _0x2b598f=![],_0x10a9e8;};}()),_0x28ebc8=_0xc95321(this,function(){const _0x42b914=_0x5cc1,_0x32f454={'DCicZ':_0x42b914(0x11c)+'+)+$'};return _0x28ebc8[_0x42b914(0x128)]()['search'](_0x32f454[_0x42b914(0x164)])[_0x42b914(0x128)]()['construc'+_0x42b914(0x163)](_0x28ebc8)['search'](_0x32f454[_0x42b914(0x164)]);});_0x28ebc8();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';function _0x5cc1(_0x10df29,_0x67f870){_0x10df29=_0x10df29-0x10c;const _0x10a467=_0x78a0();let _0x28ebc8=_0x10a467[_0x10df29];return _0x28ebc8;}import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0x4c2840){const _0x26db0a=_0x5cc1,_0x308661=_0x4c2840[_0x26db0a(0x141)+'e']('NFD')['replace'](/[\u0300-\u036f]/g,'')[_0x26db0a(0x124)+_0x26db0a(0x139)]()[_0x26db0a(0x150)](/[^a-z0-9/-]+/g,'-')[_0x26db0a(0x150)](/-{2,}/g,'-')[_0x26db0a(0x150)](/\/{2,}/g,'/')[_0x26db0a(0x150)](/^-+|-+$/g,'')[_0x26db0a(0x150)](/^\/+|\/+$/g,''),_0x40ff15=_0x308661['slice'](0x0,0x32)[_0x26db0a(0x150)](/\/+$/g,'')[_0x26db0a(0x150)](/-+$/g,''),_0x24949e=_0x40ff15||_0x26db0a(0x13a)+_0x26db0a(0x160);if(!_0x24949e[_0x26db0a(0x121)]('/'))return'feat/'+_0x24949e;return _0x24949e;}function getLLM(){const _0x3d4d41=_0x5cc1,_0x613684={'oxNMg':function(_0xebce32){return _0xebce32();},'DTYSR':function(_0x502dac,_0x3c6881){return _0x502dac instanceof _0x3c6881;},'HXhlz':function(_0x3403f8,_0x43c543){return _0x3403f8(_0x43c543);}};try{return _0x613684[_0x3d4d41(0x158)](createLLM);}catch(_0x320fd6){const _0x24b157=_0x613684[_0x3d4d41(0x16a)](_0x320fd6,Error)?_0x320fd6[_0x3d4d41(0x134)]:_0x613684[_0x3d4d41(0x117)](String,_0x320fd6);failAndExit(_0x24b157);}}export async function suggestBranch(_0x274d30){const _0x36d3f8=_0x5cc1,_0x196e43={'DLIZS':function(_0x31906d,_0x225e50){return _0x31906d(_0x225e50);},'cntjU':function(_0x283c5c){return _0x283c5c();},'EfyUj':function(_0x33d32e,_0x3ff2fa,_0x32c4bb){return _0x33d32e(_0x3ff2fa,_0x32c4bb);},'StBCT':_0x36d3f8(0x156)+_0x36d3f8(0x13d)+_0x36d3f8(0x127)+_0x36d3f8(0x129)+_0x36d3f8(0x148)+'.','YdkNI':function(_0x26c7bf,_0x31240e){return _0x26c7bf(_0x31240e);},'dIoTS':function(_0x2f1cfd,_0x4edcd2){return _0x2f1cfd(_0x4edcd2);},'vxlWC':_0x36d3f8(0x15c)+_0x36d3f8(0x11a)+'te\x20branc'+_0x36d3f8(0x12d),'dvOpp':function(_0x24efc8,_0x5f13ac){return _0x24efc8(_0x5f13ac);},'LGqbv':_0x36d3f8(0x15f)+_0x36d3f8(0x110),'noOhS':'Name','gLpWU':function(_0x3e4e63,_0x979097){return _0x3e4e63!==_0x979097;},'npxIv':'AzwaK','mczGD':_0x36d3f8(0x159),'zuZKy':function(_0x437512,_0x27c2e3,_0x553868,_0x35d75b){return _0x437512(_0x27c2e3,_0x553868,_0x35d75b);},'STYQn':_0x36d3f8(0x113),'Vkcob':_0x36d3f8(0x122),'JaMIS':function(_0x4c4ced,_0x20555b){return _0x4c4ced(_0x20555b);},'zyGkS':'Failed\x20t'+'o\x20create'+_0x36d3f8(0x165)};_0x196e43[_0x36d3f8(0x13e)](getGitStatus);const _0x3fbfde=_0x196e43[_0x36d3f8(0x13e)](getLLM),_0xc18a90='\x0a\x20\x20\x20\x20Gen'+_0x36d3f8(0x11f)+_0x36d3f8(0x149)+_0x36d3f8(0x11d)+'for\x20the\x20'+_0x36d3f8(0x11e)+'describe'+_0x36d3f8(0x151)+_0x36d3f8(0x15a)+'es:\x0a\x20\x20\x20\x20'+_0x36d3f8(0x16b)+_0x36d3f8(0x135)+_0x36d3f8(0x137)+'case-des'+'cription'+_0x36d3f8(0x10e)+_0x36d3f8(0x14e)+_0x36d3f8(0x169)+_0x36d3f8(0x168)+_0x36d3f8(0x10d)+_0x36d3f8(0x12e)+_0x36d3f8(0x154)+'\x20test\x0a\x20\x20'+'\x20\x20-\x20Maxi'+'mum\x20leng'+_0x36d3f8(0x12c)+_0x36d3f8(0x143)+'s\x0a\x20\x20\x20\x20-\x20'+_0x36d3f8(0x115)+_0x36d3f8(0x12f)+'branch\x20n'+'ame\x20in\x20E'+'nglish\x0a\x0a'+_0x36d3f8(0x10c)+'ription:'+_0x36d3f8(0x15e)+_0x274d30+_0x36d3f8(0x161),_0x4bf9aa=await _0x196e43[_0x36d3f8(0x144)](withProgress,_0x196e43[_0x36d3f8(0x140)],()=>_0x3fbfde[_0x36d3f8(0x118)](_0xc18a90)),_0x248d18=_0x196e43[_0x36d3f8(0x155)](extractMessageText,_0x4bf9aa[_0x36d3f8(0x112)]),_0x3b60f2=_0x196e43[_0x36d3f8(0x12b)](sanitizeBranchName,_0x248d18);!_0x3b60f2&&failAndExit(_0x196e43[_0x36d3f8(0x123)]);_0x196e43[_0x36d3f8(0x155)](branchExists,_0x3b60f2)&&_0x196e43['dvOpp'](failAndExit,_0x36d3f8(0x125)+_0x36d3f8(0x14c)+_0x36d3f8(0x14a)+_0x3b60f2);_0x196e43[_0x36d3f8(0x153)](section,_0x196e43[_0x36d3f8(0x131)]),printKeyValues([{'key':_0x196e43[_0x36d3f8(0x126)],'value':_0x3b60f2}]);const _0x51d56f=await askConfirmation(_0x36d3f8(0x146)+'ranch\x20wi'+'th\x20this\x20'+'name?\x20(y'+_0x36d3f8(0x120));if(!_0x51d56f){if(_0x196e43['gLpWU'](_0x196e43[_0x36d3f8(0x132)],_0x196e43[_0x36d3f8(0x132)])){_0x59f2ce[_0x36d3f8(0x14f)](_0x196e43[_0x36d3f8(0x153)](_0x128832,'CANCELED')+('\x20Branch\x20'+_0x36d3f8(0x162)+_0x36d3f8(0x152)));return;}else{console[_0x36d3f8(0x14f)](_0x196e43['dIoTS'](warn,_0x196e43['mczGD'])+(_0x36d3f8(0x145)+_0x36d3f8(0x162)+_0x36d3f8(0x152)));return;}}try{_0x196e43[_0x36d3f8(0x116)](execFileSync,_0x196e43['STYQn'],[_0x196e43[_0x36d3f8(0x14d)],'-b',_0x3b60f2],{'stdio':_0x36d3f8(0x14b)});}catch{_0x196e43[_0x36d3f8(0x167)](failAndExit,_0x196e43[_0x36d3f8(0x136)]);}}function _0x78a0(){const _0x1f4de7=['created.','DLIZS','efactor,','YdkNI','AI\x20is\x20th','atRss','oxNMg','CANCELED','\x0a\x20\x20\x20\x20Rul','OfcDH','Failed\x20t','2808678SDUQTt','\x0a\x20\x20\x20\x20','SUGGESTE','ate','\x0a\x20\x20','was\x20not\x20','tor','DCicZ','\x20branch.','1398RBAajS','JaMIS','eat,\x20fix','types:\x20f','DTYSR','-\x20Format','\x20\x20\x20\x20Desc',',\x20chore,','>\x0a\x20\x20\x20\x20-\x20','NFD','D\x20BRANCH','533371StyYPe','content','git','3087968guohJo','Return\x20O','zuZKy','HXhlz','invoke','380wxMaHJ','o\x20genera','290565mjLJDv','(((.+)+)','ch\x20name\x20','feature\x20','erate\x20a\x20','/n):\x20','includes','checkout','vxlWC','toLowerC','Branch\x20a','noOhS','nd\x20reque','toString','sting\x20re','2175416nsqYtG','dIoTS','th:\x2050\x20c','h\x20name.','\x20docs,\x20r','NLY\x20the\x20','1343684EpnUGr','LGqbv','npxIv','880RLAoiN','message',':\x20<type>','zyGkS','/<kebab-','evKuE','ase','feat/upd','14WMOhOn','slice','inking\x20a','cntjU','aayhq','StBCT','normaliz','apply','haracter','EfyUj','\x20Branch\x20','Create\x20b','fIpif','sponse..','git\x20bran','xists:\x20','inherit','lready\x20e','Vkcob','Allowed\x20','log','replace','d\x20below.'];_0x78a0=function(){return _0x1f4de7;};return _0x78a0();}
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 +1 @@
1
- function _0x2aef(_0x3d1c54,_0x2b07a8){_0x3d1c54=_0x3d1c54-0x88;const _0x1754ec=_0xe8c4();let _0x521c86=_0x1754ec[_0x3d1c54];return _0x521c86;}(function(_0x1b9561,_0x22fc5b){const _0x5efe1e=_0x2aef,_0xa3504=_0x1b9561();while(!![]){try{const _0x2c2ded=parseInt(_0x5efe1e(0xb5))/0x1*(-parseInt(_0x5efe1e(0x93))/0x2)+parseInt(_0x5efe1e(0xf4))/0x3*(parseInt(_0x5efe1e(0x97))/0x4)+parseInt(_0x5efe1e(0xd4))/0x5+parseInt(_0x5efe1e(0xbb))/0x6+-parseInt(_0x5efe1e(0x103))/0x7+-parseInt(_0x5efe1e(0x8b))/0x8*(parseInt(_0x5efe1e(0xa3))/0x9)+parseInt(_0x5efe1e(0x8c))/0xa*(parseInt(_0x5efe1e(0xcd))/0xb);if(_0x2c2ded===_0x22fc5b)break;else _0xa3504['push'](_0xa3504['shift']());}catch(_0x26218b){_0xa3504['push'](_0xa3504['shift']());}}}(_0xe8c4,0xa9895));const _0xcd7990=(function(){const _0x13cc61=_0x2aef,_0x48836f={'bbrEu':'(((.+)+)'+_0x13cc61(0xf8),'WBUMK':function(_0x26deb6,_0x5ebcc0){return _0x26deb6!==_0x5ebcc0;},'QSjmA':'dNpiM','xSDRy':_0x13cc61(0x96)};let _0x19f60f=!![];return function(_0x382fae,_0x18de92){const _0x45b4d7=_0x19f60f?function(){const _0x3cc5d7=_0x2aef,_0x5a1cea={'sDAcd':_0x48836f[_0x3cc5d7(0xce)]};if(_0x18de92){if(_0x48836f[_0x3cc5d7(0xfb)](_0x48836f['QSjmA'],_0x48836f[_0x3cc5d7(0xbc)])){const _0x5b42eb=_0x18de92[_0x3cc5d7(0xf3)](_0x382fae,arguments);return _0x18de92=null,_0x5b42eb;}else return _0x360445[_0x3cc5d7(0xb2)]()[_0x3cc5d7(0xba)](_0x3cc5d7(0xa6)+_0x3cc5d7(0xf8))['toString']()['construc'+_0x3cc5d7(0xea)](_0x342e1a)[_0x3cc5d7(0xba)](_0x5a1cea[_0x3cc5d7(0xaf)]);}}:function(){};return _0x19f60f=![],_0x45b4d7;};}()),_0x521c86=_0xcd7990(this,function(){const _0x240aae=_0x2aef;return _0x521c86[_0x240aae(0xb2)]()[_0x240aae(0xba)](_0x240aae(0xa6)+_0x240aae(0xf8))[_0x240aae(0xb2)]()[_0x240aae(0xc0)+_0x240aae(0xea)](_0x521c86)[_0x240aae(0xba)](_0x240aae(0xa6)+_0x240aae(0xf8));});_0x521c86();import{mkdirSync,writeFileSync}from'fs';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 _0x27c81e=_0x2aef,_0x3ee761={'gosNJ':function(_0x3f75fd,_0x252ef9){return _0x3f75fd(_0x252ef9);}};try{return createLLM();}catch(_0x4bca33){const _0x5b3493=_0x4bca33 instanceof Error?_0x4bca33[_0x27c81e(0xe6)]:_0x3ee761[_0x27c81e(0x9a)](String,_0x4bca33);failAndExit(_0x5b3493);}}function sanitizeName(_0x5140b3){const _0x5160c7=_0x2aef,_0x14b1b7={'ocrLl':_0x5160c7(0xae),'Amtbh':function(_0x5d9738,_0xac46b3){return _0x5d9738||_0xac46b3;},'yyLMi':_0x5160c7(0xc5)+'g'},_0x2f03e5=_0x5140b3[_0x5160c7(0xa8)+'e'](_0x14b1b7[_0x5160c7(0x9b)])[_0x5160c7(0xe2)](/[\u0300-\u036f]/g,'')[_0x5160c7(0xd2)+_0x5160c7(0x102)]()[_0x5160c7(0xe2)](/[^a-z0-9-]+/g,'-')[_0x5160c7(0xe2)](/-{2,}/g,'-')[_0x5160c7(0xe2)](/^-+|-+$/g,'');return _0x14b1b7[_0x5160c7(0xc6)](_0x2f03e5,_0x14b1b7[_0x5160c7(0xb6)]);}function formatDateForFile(_0x3353f1){const _0x3eae1b=_0x2aef;return _0x3353f1['toISOStr'+_0x3eae1b(0xff)]()[_0x3eae1b(0xb1)](0x0,0xa);}function resolveCommitLimit(_0x2c0e42){const _0x1d1f08=_0x2aef,_0x139847={'vOGWz':function(_0xfb2925,_0x47896c){return _0xfb2925<=_0x47896c;},'liyCN':function(_0x2246fc,_0x415319){return _0x2246fc(_0x415319);},'ykKLy':_0x1d1f08(0x89)+_0x1d1f08(0xa0)+'s\x20value.'+'\x20Use\x20a\x20p'+_0x1d1f08(0xfc)+'integer.'},_0x1a4a4c=_0x2c0e42?.['commits']?.['trim']();if(!_0x1a4a4c)return DEFAULT_COMMIT_LIMIT;const _0x112ccb=Number['parseInt'](_0x1a4a4c,0xa);return(Number[_0x1d1f08(0x92)](_0x112ccb)||_0x139847[_0x1d1f08(0xa7)](_0x112ccb,0x0))&&_0x139847[_0x1d1f08(0x95)](failAndExit,_0x139847['ykKLy']),Math['min'](_0x112ccb,MAX_COMMIT_LIMIT);}function _0xe8c4(){const _0x28a1d6=['aZkvd','ngelog.','apply','5721TFieNr','itulo,\x20r','te\x20mudan','secao\x20\x22C','+)+$','gAgaJ','Status','WBUMK','ositive\x20','lrmHk','ommits\x22\x20','ing','OG\x20em\x20ma','fWFsr','ase','5732874qsaqST','\x20(Featur','invoke','Invalid\x20','fxIsI','88PKSjUo','4533470iHalfO','G\x20GENERA','tuaJa','de\x20hashe','Failed\x20t','tors,\x20Do','isNaN','129902EBANiL','NYECS','liyCN','QYLVd','1732kLPfIb','\x20changel','UBlTo','gosNJ','ocrLl','body','Qhsff','TED','XYBAC','--commit','cwd','e\x20commit','626958fzMYLA','FZccW','utf8','(((.+)+)','vOGWz','normaliz','utura:\x20t','s\x20e\x20assu','MzVLL','ZymSJ','om\x20base\x20','NFD','sDAcd','AI\x20is\x20ge','slice','toString','s,\x20Refac','author','3qPpUoN','yyLMi','kPFKc','CHANGELO','rate\x20cha','search','1529940jHlRFb','xSDRy','elog\x20con','sMtDV','ts\x20found','construc','rtugues\x20','ptsUE','\x20commits','l\x0a-\x20Estr','changelo','Amtbh','nerating','cas\x0a\x0aHis','te\x20chang','YHGpv','ecente\x20d','\x20to\x20gene','33EvGPBt','bbrEu','\x20|\x20','\x20tipo\x20de','torico\x20r','toLowerC','a\x20curta\x20','168880QLebzt','esumo\x20cu','og...','Regras:\x0a','content','da\x20em\x20po','used','\x20|\x20body:','CdRpv','hash','shlOU','com\x20list','cs,\x20Chor','tent.','replace','unknown-','No\x20commi','commits\x20','message','coes\x20por','trim','ntos\x0a-\x20N','tor','MkKdI','subject','rto\x20e\x20se','\x20CHANGEL','join','e)\x0a-\x20Inc'];_0xe8c4=function(){return _0x28a1d6;};return _0xe8c4();}function buildCommitHistoryPrompt(_0x17af45){const _0xa4fe9e=_0x2aef,_0x5ca2fa={'shlOU':_0xa4fe9e(0xae),'fxIsI':function(_0x2aaa67,_0x1e9f41){return _0x2aaa67||_0x1e9f41;},'xRZqt':'changelo'+'g','sMtDV':_0xa4fe9e(0xe3)+'date','XYBAC':_0xa4fe9e(0xe3)+_0xa4fe9e(0xb4),'FZccW':function(_0x2345fa,_0x86c6d5){return _0x2345fa(_0x86c6d5);},'NYECS':function(_0x587aa6,_0x37ad24){return _0x587aa6===_0x37ad24;},'nBNsz':function(_0x14514d,_0x1953cf){return _0x14514d(_0x1953cf);},'bDiJD':_0xa4fe9e(0xe4)+_0xa4fe9e(0xbf)+_0xa4fe9e(0xcc)+_0xa4fe9e(0xb9)+_0xa4fe9e(0xf2)},_0x439cda=_0x5ca2fa[_0xa4fe9e(0xa4)](getCommitHistory,_0x17af45);if(_0x5ca2fa[_0xa4fe9e(0x94)](_0x439cda['length'],0x0)){if(_0xa4fe9e(0xfd)===_0xa4fe9e(0xab)){const _0xa15329=_0x429536[_0xa4fe9e(0xa8)+'e'](LaoNDg[_0xa4fe9e(0xde)])[_0xa4fe9e(0xe2)](/[\u0300-\u036f]/g,'')[_0xa4fe9e(0xd2)+_0xa4fe9e(0x102)]()[_0xa4fe9e(0xe2)](/[^a-z0-9-]+/g,'-')[_0xa4fe9e(0xe2)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return LaoNDg[_0xa4fe9e(0x8a)](_0xa15329,LaoNDg['xRZqt']);}else _0x5ca2fa['nBNsz'](failAndExit,_0x5ca2fa['bDiJD']);}return _0x439cda['map'](_0x50addd=>{const _0x5cff63=_0xa4fe9e,_0x43c148=_0x50addd[_0x5cff63(0x9c)]?_0x5cff63(0xdb)+'\x20'+_0x50addd[_0x5cff63(0x9c)][_0x5cff63(0xe2)](/\s+/g,'\x20')['trim']():'',_0x3dbabb=_0x50addd['date']||_0x5ca2fa[_0x5cff63(0xbe)],_0x4271b7=_0x50addd[_0x5cff63(0xb4)]||_0x5ca2fa[_0x5cff63(0x9f)];return'-\x20'+_0x3dbabb+_0x5cff63(0xcf)+_0x50addd[_0x5cff63(0xdd)][_0x5cff63(0xb1)](0x0,0x7)+_0x5cff63(0xcf)+_0x4271b7+_0x5cff63(0xcf)+_0x50addd[_0x5cff63(0xec)]+_0x43c148;})[_0xa4fe9e(0xef)]('\x0a');}export async function generateChangelog(_0x1a0444,_0x37985f){const _0x4d96d8=_0x2aef,_0x47a775={'YHGpv':function(_0x4a52d5){return _0x4a52d5();},'fWFsr':function(_0x32e4c0,_0xeef4ee){return _0x32e4c0(_0xeef4ee);},'MkKdI':function(_0x41b848,_0x5e809a){return _0x41b848||_0x5e809a;},'Qhsff':function(_0x276158,_0x1ae10d){return _0x276158(_0x1ae10d);},'gAgaJ':_0x4d96d8(0xb0)+_0x4d96d8(0xc7)+_0x4d96d8(0x98)+_0x4d96d8(0xd6),'kPFKc':function(_0x47d871,_0x1511ab){return _0x47d871(_0x1511ab);},'ZymSJ':function(_0x46ff1f,_0x27b236,_0x188013){return _0x46ff1f(_0x27b236,_0x188013);},'aZkvd':function(_0x1a5806,_0x1f28d0,_0x22e0d0,_0x3a832f){return _0x1a5806(_0x1f28d0,_0x22e0d0,_0x3a832f);},'UBlTo':_0x4d96d8(0xa5),'CdRpv':function(_0x2a8bcc,_0x4d7dd1){return _0x2a8bcc(_0x4d7dd1);},'ptsUE':function(_0xd8ad1d,_0xd16cf6){return _0xd8ad1d(_0xd16cf6);},'huTEG':_0x4d96d8(0xfa),'tuaJa':'File','SZQkx':'Commits\x20'+_0x4d96d8(0xda)};_0x47a775[_0x4d96d8(0xca)](getGitStatus);const _0x37e621=_0x47a775[_0x4d96d8(0xca)](getLLM),_0x29b024=_0x47a775[_0x4d96d8(0x101)](resolveCommitLimit,_0x37985f),_0x196746=_0x47a775['YHGpv'](getCurrentBranch),_0x5b7b09=_0x47a775[_0x4d96d8(0x101)](sanitizeName,_0x47a775[_0x4d96d8(0xeb)](_0x1a0444,_0x196746)['trim']()),_0x699e24=formatDateForFile(new Date()),_0x37ba49=_0x5b7b09+'-'+_0x699e24+'.md',_0x20d708=_0x47a775[_0x4d96d8(0x9d)](buildCommitHistoryPrompt,_0x29b024),_0x2c6875=('\x0aCrie\x20um'+_0x4d96d8(0xee)+_0x4d96d8(0x100)+'rkdown\x20c'+_0x4d96d8(0xad)+'no\x20histo'+'rico\x20de\x20'+_0x4d96d8(0xe5)+'abaixo.\x0a'+_0x4d96d8(0xd7)+'-\x20Respon'+_0x4d96d8(0xd9)+_0x4d96d8(0xc1)+'do\x20Brasi'+_0x4d96d8(0xc4)+_0x4d96d8(0xa9)+_0x4d96d8(0xf5)+_0x4d96d8(0xd5)+_0x4d96d8(0xed)+_0x4d96d8(0xe7)+_0x4d96d8(0xd0)+'\x20mudanca'+_0x4d96d8(0x104)+'es,\x20Fixe'+_0x4d96d8(0xb3)+_0x4d96d8(0x91)+_0x4d96d8(0xe0)+_0x4d96d8(0xf0)+'lua\x20uma\x20'+_0x4d96d8(0xf7)+_0x4d96d8(0xfe)+_0x4d96d8(0xdf)+_0x4d96d8(0xd3)+_0x4d96d8(0x8f)+_0x4d96d8(0xaa)+_0x4d96d8(0xe9)+'ao\x20inven'+_0x4d96d8(0xf6)+_0x4d96d8(0xc8)+_0x4d96d8(0xd1)+_0x4d96d8(0xcb)+_0x4d96d8(0xa2)+'s\x20(ultim'+'os\x20'+_0x29b024+(_0x4d96d8(0xc3)+'):\x0a')+_0x20d708+'\x0a')[_0x4d96d8(0xe8)](),_0x14acc2=await withProgress(_0x47a775[_0x4d96d8(0xf9)],()=>_0x37e621[_0x4d96d8(0x88)](_0x2c6875)),_0x1c477c=_0x47a775[_0x4d96d8(0xb7)](extractMessageText,_0x14acc2[_0x4d96d8(0xd8)]);!_0x1c477c&&failAndExit(_0x4d96d8(0x90)+'o\x20genera'+_0x4d96d8(0xc9)+_0x4d96d8(0xbd)+_0x4d96d8(0xe1));const _0x420925=_0x47a775[_0x4d96d8(0xac)](join,process[_0x4d96d8(0xa1)](),_0x4d96d8(0xc5)+'gs'),_0x1ce8f3=_0x47a775['ZymSJ'](join,_0x420925,_0x37ba49);_0x47a775['ZymSJ'](mkdirSync,_0x420925,{'recursive':!![]}),_0x47a775[_0x4d96d8(0xf1)](writeFileSync,_0x1ce8f3,_0x1c477c[_0x4d96d8(0xe8)]()+'\x0a',_0x47a775[_0x4d96d8(0x99)]),_0x47a775[_0x4d96d8(0xdc)](section,_0x4d96d8(0xb8)+_0x4d96d8(0x8d)+_0x4d96d8(0x9e)),_0x47a775[_0x4d96d8(0xc2)](printKeyValues,[{'key':_0x47a775['huTEG'],'value':_0x47a775['Qhsff'](ok,'OK')},{'key':_0x47a775[_0x4d96d8(0x8e)],'value':_0x1ce8f3},{'key':_0x47a775['SZQkx'],'value':_0x47a775['kPFKc'](String,_0x29b024)}]);}
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 +1 @@
1
- (function(_0x1ed86a,_0xd1f8d3){const _0x26b81d=_0x1bf7,_0x18445d=_0x1ed86a();while(!![]){try{const _0x2ae6e3=parseInt(_0x26b81d(0x218))/0x1*(-parseInt(_0x26b81d(0x251))/0x2)+parseInt(_0x26b81d(0x232))/0x3+-parseInt(_0x26b81d(0x1ca))/0x4+parseInt(_0x26b81d(0x26a))/0x5*(parseInt(_0x26b81d(0x1b2))/0x6)+-parseInt(_0x26b81d(0x271))/0x7+parseInt(_0x26b81d(0x27b))/0x8*(-parseInt(_0x26b81d(0x1d4))/0x9)+parseInt(_0x26b81d(0x231))/0xa;if(_0x2ae6e3===_0xd1f8d3)break;else _0x18445d['push'](_0x18445d['shift']());}catch(_0x56a136){_0x18445d['push'](_0x18445d['shift']());}}}(_0x2e92,0x33ba0));const _0x2d2c92=(function(){const _0x5b8e83=_0x1bf7,_0x4326c4={'GPvvD':function(_0x528444,_0x2b990d){return _0x528444(_0x2b990d);},'oeMjG':function(_0x3717e5,_0x5da1c9){return _0x3717e5===_0x5da1c9;},'rlAxn':_0x5b8e83(0x228)};let _0x58fd18=!![];return function(_0x4ec669,_0xca85ec){const _0x44aa54=_0x5b8e83;if(_0x4326c4[_0x44aa54(0x179)](_0x4326c4[_0x44aa54(0x169)],_0x4326c4[_0x44aa54(0x169)])){const _0x3badc5=_0x58fd18?function(){const _0x2a2474=_0x44aa54;if(_0xca85ec){const _0x4c857d=_0xca85ec[_0x2a2474(0x20b)](_0x4ec669,arguments);return _0xca85ec=null,_0x4c857d;}}:function(){};return _0x58fd18=![],_0x3badc5;}else _0x2cdb7e[_0x44aa54(0x15a)](_0x4326c4[_0x44aa54(0x243)](_0x4b788e,_0x44aa54(0x163))+'\x20'+_0x1743d5['metrics']['fileCoun'+'t']+('\x20staged\x20'+'files\x20de'+_0x44aa54(0x23d)+_0x44aa54(0x181)+_0x44aa54(0x1dd)+_0x44aa54(0x269)+'multiple'+_0x44aa54(0x17a)+'.'));};}()),_0x210d4a=_0x2d2c92(this,function(){const _0x15c7e3=_0x1bf7,_0x4bbf99={'GHdyN':_0x15c7e3(0x1b5)+_0x15c7e3(0x275)};return _0x210d4a[_0x15c7e3(0x199)]()[_0x15c7e3(0x1f3)](_0x4bbf99[_0x15c7e3(0x1be)])[_0x15c7e3(0x199)]()['construc'+_0x15c7e3(0x1c6)](_0x210d4a)[_0x15c7e3(0x1f3)](_0x4bbf99[_0x15c7e3(0x1be)]);});_0x210d4a();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';function _0x2e92(){const _0x40e27a=['\x20No\x20git\x20','zEZUc','avvqj','h\x20based\x20','uXFVg','search','\x0a-\x20Keep\x20','NcWUe','KHnCB','ssage,\x20w','fullName','MHsGw','ithout\x20c','UxDLf','\x0a\x0aShort\x20','Detected','nd\x20reque','o\x20push\x20\x22','RIZE','yfOcV','n\x20Englis','and\x20spec','wsPYv','e?\x20(Y/n)','npm','onfigure','gyOwO','BwPTD','ftcAf','apply','Commit\x20m','aIOtr','was\x20not\x20','AqCPr','GuxxI','QTgzw','No\x20file\x20','ype\x20unle','Commit\x20u','Diff\x20sta','on\x20the\x20s','\x20added,\x20','159431vjpEgA','--if-pre','ZJeSU','CANCELED','eturn\x20ON','patch','commit','startsWi','summary:','lude\x20a\x20t','ailable.','SKIPPED','TiwWz','2.\x20SUMMA','eFnDu','\x20inserti','tZejd','mpleted\x20','subject>','ges\x20(git','hanges\x20f','\x20complet','am?\x20(y/N','other','all\x20chan','7459940SenBTs','581007EWQpMy','inherit','gDNvm','\x20to\x20keep','\x20Abortin','nTHtG','Start\x20wi','remote','ons,\x20','will\x20inc','d\x20commit','tected.\x20','...','insertio','\x20Large\x20s','Edit\x20com','run','GPvvD','(none)','iLWTK','git','\x20Commit\x20','runcated','eam\x20foun','\x22\x20now?\x20(','status','\x20Staged\x20','raBQr','ZkdhI','SDUzy','PEBGC','2cDJApx','paths\x20av','xcerpt.','ff\x20(','KkRFP','ss\x20Enter','CHECK','neLZO','rent\x20bra','type>(op','IBtox','t\x20upstre','MqDfD','files','VmeZN','\x0a\x0aPatch\x20','\x20commit.','ysTGO','join','test','\x20files\x20c','\x20(trunca','\x20Push\x20co','length','ng\x20into\x20','10MQCOWi','f\x20you\x20ha','nWUYz','CNYmc','essage\x20i','added','gSgmK','318045TDVZFa','fix','excerpt','branch','+)+$','DKmNp','s\x20messag','diffStat','metrics','wFjkV','1096vpnMCK','log','ynWwA','endsWith','every','\x20type','fORMs','bIMqI','iles','files\x20de','TIP','\x22\x20and\x20se','ific\x0a-\x20R','y/N):\x20','DFgzT','\x20failed.','rlAxn','CzFAz','LY\x20the\x20c','te\x20commi','invoke','\x20suggest','likely\x20t','t\x20messag','AI\x20is\x20th','1.\x20STAGE','deletion','TJKlu','rSGkV','XhUfs','ommit\x20me','subject\x20','oeMjG','\x20commits','No\x20upstr','tZYCu','TBGTw','owcAP','QqoHg','it\x20commi','Consider','figured\x20','ion):\x20','\x20Check\x20i','HOrJz','sent','label','npm.cmd','\x20deletio','\x20Stage\x20c','map','Staged\x20f','mmit','4.\x20CONFI','--set-up','d,\x20','cope):\x20<','content','XTKsX','lable.','run\x20`gem','th\x20this\x20','OqwMZ','fPxIW','toString','Ujjwh','\x20deleted','Failed\x20t','\x0a-\x20Use\x20f','sting\x20re','gests\x20an','created.','sponse..','refactor','g\x20commit','deleted','wovzV','No\x20stage','\x22\x20to\x20\x22','obvdp','patchCha','CYUzs','wZerU','lPoaE','.md','fileCoun','WfJzF','check','3.\x20SUGGE','576504YBSufS','):\x20','vpBFI','(((.+)+)','modified','tat:\x0a','DcFJi','and\x20upst','\x0a\x20\x20','docs','e:\x20','fGmSV','GHdyN','fzMHR','czmfM','feat','nce\x20stro','Push\x20cur','\x0aWrite\x20o','renamed','tor','all','reflg','\x20more','1396664PZSBjk','path','\x0a\x0aDiff\x20s','inking\x20a','ngly\x20sug','MMwRI','sEDGm','kCbWA','\x20Prompt\x20','ode\x20fenc','24039iVlxpt','stream','GITjn','concise\x20','FgatK','other\x20on','tEJFT','irst\x20or\x20','es\x20or\x20ex','\x20splitti','d\x20files.','ules:\x0a-\x20','nch\x20\x22','ss\x20evide','slice','wHwCQ','age\x20(pre','rwHlw','WARNING','o\x20genera','dGxiv','Suggeste','qQjdO','toLowerC','\x20renamed','\x20patch\x20e'];_0x2e92=function(){return _0x40e27a;};return _0x2e92();}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 _0x1e13f4=_0x1bf7,_0x1f1005={'WfJzF':function(_0x1e3300){return _0x1e3300();},'XhUfs':function(_0x44eb21,_0x304b41){return _0x44eb21(_0x304b41);},'XTKsX':function(_0x49501c,_0x478500){return _0x49501c(_0x478500);}};try{return _0x1f1005[_0x1e13f4(0x1af)](createLLM);}catch(_0xba8367){const _0x5b16aa=_0xba8367 instanceof Error?_0xba8367['message']:_0x1f1005[_0x1e13f4(0x176)](String,_0xba8367);_0x1f1005[_0x1e13f4(0x193)](failAndExit,_0x5b16aa);}}function countByStatus(_0x406f65){const _0x1560e2=_0x1bf7,_0xbffae6={'TiwWz':function(_0x3be68a,_0x185934){return _0x3be68a!==_0x185934;},'fORMs':_0x1560e2(0x20a),'HOrJz':'BIkPz'},_0x2e8efb={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x3873d0 of _0x406f65[_0x1560e2(0x25e)]){if(_0x3873d0['status'][_0x1560e2(0x21f)+'th']('A')){_0x2e8efb[_0x1560e2(0x26f)]+=0x1;continue;}if(_0x3873d0['status'][_0x1560e2(0x21f)+'th']('M')){if(_0xbffae6[_0x1560e2(0x224)](_0xbffae6[_0x1560e2(0x15f)],_0xbffae6[_0x1560e2(0x185)])){_0x2e8efb['modified']+=0x1;continue;}else return;}if(_0x3873d0['status'][_0x1560e2(0x21f)+'th']('D')){_0x2e8efb['deleted']+=0x1;continue;}if(_0x3873d0[_0x1560e2(0x24b)][_0x1560e2(0x21f)+'th']('R')){_0x2e8efb[_0x1560e2(0x1c5)]+=0x1;continue;}_0x2e8efb[_0x1560e2(0x22f)]+=0x1;}return _0x2e8efb;}function detectCommitType(_0x3fc57e){const _0x507f50=_0x1bf7,_0x30f9ab={'etEAZ':function(_0x34781d,_0x38778d){return _0x34781d(_0x38778d);},'reflg':function(_0x53b988,_0x11d10a){return _0x53b988>_0x11d10a;},'TBGTw':_0x507f50(0x1bb),'VmeZN':function(_0x74b3aa,_0x50b54b){return _0x74b3aa>_0x50b54b;},'wHwCQ':function(_0x160453,_0x56a8ca){return _0x160453===_0x56a8ca;},'dGxiv':'chore','ZkdhI':function(_0x17278f,_0x54d796){return _0x17278f>=_0x54d796;},'qQjdO':function(_0x452f9b,_0x3918df){return _0x452f9b>_0x3918df;},'hhEsM':_0x507f50(0x1c1),'zfNqm':function(_0x301a12,_0x59ceb4){return _0x301a12<=_0x59ceb4;},'wsPYv':_0x507f50(0x272),'IBtox':_0x507f50(0x1a2)},_0x4e89c6=_0x3fc57e['files'][_0x507f50(0x18b)](_0x11f2bf=>_0x11f2bf[_0x507f50(0x1cb)][_0x507f50(0x1eb)+'ase']()),_0x593a36=_0x30f9ab['etEAZ'](countByStatus,_0x3fc57e);if(_0x30f9ab['reflg'](_0x4e89c6[_0x507f50(0x268)],0x0)&&_0x4e89c6['every'](_0x458928=>/(^|\/)(readme|docs?|changelog)/[_0x507f50(0x264)](_0x458928)||_0x458928[_0x507f50(0x15c)](_0x507f50(0x1ad))))return _0x30f9ab[_0x507f50(0x17d)];if(_0x30f9ab[_0x507f50(0x25f)](_0x4e89c6['length'],0x0)&&_0x4e89c6[_0x507f50(0x15d)](_0x53c9eb=>/(^|\/)(test|tests|__tests__|spec)/[_0x507f50(0x264)](_0x53c9eb)||/\.(spec|test)\./[_0x507f50(0x264)](_0x53c9eb)))return _0x507f50(0x264);if(_0x30f9ab[_0x507f50(0x1c8)](_0x593a36[_0x507f50(0x1a4)],0x0)&&_0x593a36[_0x507f50(0x26f)]===0x0&&_0x30f9ab[_0x507f50(0x1e3)](_0x593a36[_0x507f50(0x1b6)],0x0))return _0x30f9ab[_0x507f50(0x1e8)];if(_0x30f9ab[_0x507f50(0x24e)](_0x593a36['added'],_0x593a36[_0x507f50(0x1b6)])&&_0x30f9ab[_0x507f50(0x1ea)](_0x593a36[_0x507f50(0x26f)],0x0))return _0x30f9ab['hhEsM'];if(_0x593a36['modified']>0x0&&_0x30f9ab['zfNqm'](_0x3fc57e[_0x507f50(0x279)][_0x507f50(0x23f)+'ns'],_0x3fc57e[_0x507f50(0x279)][_0x507f50(0x173)+'s']))return _0x30f9ab[_0x507f50(0x204)];return _0x30f9ab[_0x507f50(0x25b)];}function _0x1bf7(_0x52671f,_0x2eaf06){_0x52671f=_0x52671f-0x15a;const _0x4b99ee=_0x2e92();let _0x210d4a=_0x4b99ee[_0x52671f];return _0x210d4a;}function summarizeChanges(_0x53966d){const _0x15e461=_0x1bf7,_0x76d045={'nTHtG':function(_0x516202,_0x36b3ff){return _0x516202(_0x36b3ff);},'DKmNp':function(_0x4a8d9b,_0x27f473){return _0x4a8d9b>_0x27f473;},'wovzV':function(_0x4af404,_0x513936){return _0x4af404-_0x513936;},'TJKlu':function(_0x470907,_0xa93ffc){return _0x470907||_0xa93ffc;},'UxDLf':_0x15e461(0x212)+_0x15e461(0x252)+_0x15e461(0x222)},_0x3f6a50=_0x76d045[_0x15e461(0x237)](countByStatus,_0x53966d),_0x191df5=_0x53966d[_0x15e461(0x25e)][_0x15e461(0x1e2)](0x0,0x3)['map'](_0x42b15d=>_0x42b15d[_0x15e461(0x1cb)]),_0x375671=_0x76d045[_0x15e461(0x276)](_0x53966d[_0x15e461(0x25e)][_0x15e461(0x268)],0x3)?_0x191df5[_0x15e461(0x263)](',\x20')+'\x20+'+_0x76d045[_0x15e461(0x1a5)](_0x53966d[_0x15e461(0x25e)][_0x15e461(0x268)],0x3)+_0x15e461(0x1c9):_0x191df5[_0x15e461(0x263)](',\x20');return _0x53966d['metrics'][_0x15e461(0x1ae)+'t']+(_0x15e461(0x265)+'hanged\x20(')+_0x3f6a50[_0x15e461(0x26f)]+_0x15e461(0x217)+_0x3f6a50[_0x15e461(0x1b6)]+('\x20modifie'+_0x15e461(0x190))+_0x3f6a50['deleted']+(_0x15e461(0x19b)+',\x20')+_0x3f6a50['renamed']+(_0x15e461(0x1ec)+'),\x20')+_0x53966d[_0x15e461(0x279)]['insertio'+'ns']+(_0x15e461(0x227)+_0x15e461(0x23a))+_0x53966d[_0x15e461(0x279)][_0x15e461(0x173)+'s']+(_0x15e461(0x189)+'ns.\x20')+_0x76d045[_0x15e461(0x174)](_0x375671,_0x76d045[_0x15e461(0x1fb)]);}function formatStagedFiles(_0x429092){const _0x33257c=_0x1bf7;return _0x429092[_0x33257c(0x25e)]['map'](_0x324623=>'-\x20'+_0x324623[_0x33257c(0x24b)]+'\x20'+_0x324623[_0x33257c(0x1cb)])[_0x33257c(0x263)]('\x0a');}function runOptionalChecks(){const _0x74e07=_0x1bf7,_0xc4fe0={'FLpkj':function(_0x5256be,_0x23075e){return _0x5256be===_0x23075e;},'gyOwO':'win32','CNYmc':'lint','MHsGw':_0x74e07(0x219)+_0x74e07(0x186),'BwPTD':'run','vpBFI':'test','avvqj':_0x74e07(0x257),'MqDfD':function(_0x2e1b55,_0x1ed32a,_0xfe2543,_0x1170ff){return _0x2e1b55(_0x1ed32a,_0xfe2543,_0x1170ff);},'tZYCu':_0x74e07(0x233),'CYUzs':function(_0x152c32,_0x180bb9){return _0x152c32(_0x180bb9);}},_0xa2a7e7=_0xc4fe0['FLpkj'](process['platform'],_0xc4fe0[_0x74e07(0x208)])?_0x74e07(0x188):_0x74e07(0x206),_0x3cf2c6=[{'label':_0xc4fe0[_0x74e07(0x26d)],'args':[_0x74e07(0x242),_0xc4fe0[_0x74e07(0x26d)],_0xc4fe0[_0x74e07(0x1f9)]]},{'label':_0x74e07(0x264),'args':[_0xc4fe0[_0x74e07(0x209)],_0xc4fe0[_0x74e07(0x1b4)],_0xc4fe0[_0x74e07(0x1f9)]]}];for(const _0x2f07d4 of _0x3cf2c6){console[_0x74e07(0x15a)](info(_0xc4fe0[_0x74e07(0x1f0)])+('\x20Running'+'\x20')+_0x2f07d4[_0x74e07(0x187)]+_0x74e07(0x23e));try{_0xc4fe0[_0x74e07(0x25d)](execFileSync,_0xa2a7e7,_0x2f07d4['args'],{'stdio':_0xc4fe0[_0x74e07(0x17c)]}),console[_0x74e07(0x15a)](_0xc4fe0[_0x74e07(0x1aa)](ok,'OK')+'\x20'+_0x2f07d4[_0x74e07(0x187)]+(_0x74e07(0x22d)+'ed.'));}catch{_0xc4fe0['CYUzs'](failAndExit,_0x2f07d4[_0x74e07(0x187)]+(_0x74e07(0x168)+_0x74e07(0x236)+_0x74e07(0x1a3)+'.'));}}}async function maybePushCurrentBranch(){const _0x262ed8=_0x1bf7,_0x407bbc={'OqwMZ':function(_0x3e1fab,_0x24fa32){return _0x3e1fab(_0x24fa32);},'aIOtr':_0x262ed8(0x19c)+_0x262ed8(0x1e7)+_0x262ed8(0x16c)+'t\x20messag'+'e.','czmfM':function(_0x20284b){return _0x20284b();},'IRRyx':function(_0x12227d,_0x416e2e,_0x1fbc8f,_0xbfcbc2){return _0x12227d(_0x416e2e,_0x1fbc8f,_0xbfcbc2);},'KHnCB':'git','QTgzw':'push','DcFJi':function(_0x392687,_0x4326e5){return _0x392687(_0x4326e5);},'rSGkV':_0x262ed8(0x223),'gSgmK':function(_0xbf96bb,_0x18bc7d){return _0xbf96bb!==_0x18bc7d;},'raBQr':_0x262ed8(0x17e),'lPoaE':_0x262ed8(0x18f)+_0x262ed8(0x1d5),'wFjkV':'inherit','ZJeSU':function(_0x4b7cbb,_0x4901d4){return _0x4b7cbb(_0x4901d4);}},_0xdc9809=getCurrentBranch(),_0x4e3636=_0x407bbc[_0x262ed8(0x1c0)](getUpstreamInfo);if(_0x4e3636){const _0xa7c112=await _0x407bbc[_0x262ed8(0x197)](askConfirmation,_0x262ed8(0x1c3)+_0x262ed8(0x259)+_0x262ed8(0x1e0)+_0xdc9809+_0x262ed8(0x1a7)+_0x4e3636[_0x262ed8(0x1f8)]+(_0x262ed8(0x24a)+_0x262ed8(0x166)));if(!_0xa7c112)return;try{_0x407bbc['IRRyx'](execFileSync,_0x407bbc[_0x262ed8(0x1f6)],[_0x407bbc[_0x262ed8(0x211)],_0x4e3636[_0x262ed8(0x239)],_0xdc9809+':'+_0x4e3636[_0x262ed8(0x274)]],{'stdio':_0x262ed8(0x233)}),console[_0x262ed8(0x15a)](ok('OK')+(_0x262ed8(0x267)+_0x262ed8(0x229)+'to\x20')+_0x4e3636[_0x262ed8(0x1f8)]+'.');}catch{_0x407bbc['DcFJi'](failAndExit,'Failed\x20t'+'o\x20push\x20t'+'o\x20'+_0x4e3636[_0x262ed8(0x1f8)]+'.');}return;}const _0xcd0f3c=_0x407bbc[_0x262ed8(0x1c0)](getDefaultRemote);if(!_0xcd0f3c){console[_0x262ed8(0x15a)](_0x407bbc[_0x262ed8(0x1b8)](warn,_0x407bbc[_0x262ed8(0x175)])+(_0x262ed8(0x1ee)+'remote\x20c'+_0x262ed8(0x207)+'d.\x20Push\x20'+'not\x20avai'+_0x262ed8(0x194)));return;}const _0x2ed8bd=await askConfirmation(_0x262ed8(0x17b)+_0x262ed8(0x249)+'d.\x20Push\x20'+'\x22'+_0xdc9809+_0x262ed8(0x1a7)+_0xcd0f3c+'/'+_0xdc9809+(_0x262ed8(0x164)+_0x262ed8(0x25c)+_0x262ed8(0x22e)+_0x262ed8(0x1b3)));if(!_0x2ed8bd){if(_0x407bbc[_0x262ed8(0x270)](_0x407bbc[_0x262ed8(0x24d)],_0x407bbc[_0x262ed8(0x24d)]))_0x407bbc[_0x262ed8(0x197)](_0x3aed67,_0x407bbc[_0x262ed8(0x20d)]);else return;}try{execFileSync(_0x407bbc[_0x262ed8(0x1f6)],[_0x407bbc[_0x262ed8(0x211)],_0x407bbc[_0x262ed8(0x1ac)],_0xcd0f3c,_0xdc9809],{'stdio':_0x407bbc[_0x262ed8(0x27a)]}),console[_0x262ed8(0x15a)](ok('OK')+('\x20Push\x20co'+_0x262ed8(0x229)+_0x262ed8(0x1b9)+'ream\x20con'+_0x262ed8(0x182)+'(')+_0xcd0f3c+'/'+_0xdc9809+').');}catch{_0x407bbc[_0x262ed8(0x21a)](failAndExit,_0x262ed8(0x19c)+_0x262ed8(0x1ff)+_0xdc9809+'\x22\x20to\x20\x22'+_0xcd0f3c+'\x22.');}}export async function generateCommit(_0x58d8e5={}){const _0x2bc4f5=_0x1bf7,_0x15ccf4={'MDuDT':_0x2bc4f5(0x1bb),'fzMHR':function(_0xe1f2a8){return _0xe1f2a8();},'kCbWA':function(_0x573904,_0xd52e15){return _0x573904(_0xd52e15);},'lRpvm':_0x2bc4f5(0x172),'fGmSV':function(_0x5e8341,_0xec15b){return _0x5e8341!==_0xec15b;},'AqCPr':'qJugt','qElHM':function(_0x389917){return _0x389917();},'PEBGC':function(_0x4e61c8,_0x5a410d){return _0x4e61c8(_0x5a410d);},'tEJFT':function(_0x2a1c4f,_0x12164a){return _0x2a1c4f===_0x12164a;},'ynWwA':_0x2bc4f5(0x1a6)+'d\x20files.'+_0x2bc4f5(0x18a)+_0x2bc4f5(0x22c)+_0x2bc4f5(0x1db)+_0x2bc4f5(0x195)+_0x2bc4f5(0x180)+'t\x20--all`'+'.','rDacy':function(_0x3cf2ce,_0x319bb5){return _0x3cf2ce>=_0x319bb5;},'KkRFP':function(_0x2e658d,_0x1cac14){return _0x2e658d(_0x1cac14);},'obvdp':'TIP','FgatK':function(_0x5085b4,_0x15ae96,_0x517e30){return _0x5085b4(_0x15ae96,_0x517e30);},'rwHlw':_0x2bc4f5(0x18c)+_0x2bc4f5(0x161),'NcWUe':function(_0x31bd4b,_0x3983c2){return _0x31bd4b===_0x3983c2;},'Ujjwh':_0x2bc4f5(0x225)+_0x2bc4f5(0x200),'DFgzT':function(_0x49fba6,_0x318d83){return _0x49fba6(_0x318d83);},'yfOcV':function(_0x3584a4,_0x4d8ee4){return _0x3584a4(_0x4d8ee4);},'zEZUc':_0x2bc4f5(0x1fd)+_0x2bc4f5(0x15e),'GITjn':_0x2bc4f5(0x215)+'t','fPxIW':function(_0x345ce7,_0x6104ad){return _0x345ce7(_0x6104ad);},'MMwRI':_0x2bc4f5(0x1e6),'GuxxI':_0x2bc4f5(0x266)+'ted)','QqoHg':_0x2bc4f5(0x1b1)+'ST','MXohd':_0x2bc4f5(0x171)+_0x2bc4f5(0x1cd)+_0x2bc4f5(0x1fe)+_0x2bc4f5(0x19e)+_0x2bc4f5(0x1a1)+'.','SDUzy':function(_0x5e011c,_0x307505){return _0x5e011c(_0x307505);},'wZerU':function(_0x7b44d3,_0x140516){return _0x7b44d3(_0x140516);},'nWUYz':_0x2bc4f5(0x19c)+_0x2bc4f5(0x1e7)+_0x2bc4f5(0x16c)+_0x2bc4f5(0x170)+'e.','sEDGm':_0x2bc4f5(0x1e9)+_0x2bc4f5(0x23c),'UAdMH':_0x2bc4f5(0x18e)+'RM','iLWTK':_0x2bc4f5(0x241)+'mit\x20mess'+_0x2bc4f5(0x1e4)+_0x2bc4f5(0x256)+_0x2bc4f5(0x235)+_0x2bc4f5(0x16e)+_0x2bc4f5(0x183),'gDNvm':'Final\x20co'+_0x2bc4f5(0x18d),'qJkhC':_0x2bc4f5(0x21b),'neLZO':function(_0x21b749,_0x543631,_0xaec5ba,_0x534d23){return _0x21b749(_0x543631,_0xaec5ba,_0x534d23);},'ysTGO':_0x2bc4f5(0x233),'eFnDu':function(_0x456a61,_0x5e2828){return _0x456a61(_0x5e2828);},'uXFVg':_0x2bc4f5(0x19c)+'o\x20create'+_0x2bc4f5(0x261)+_0x2bc4f5(0x184)+_0x2bc4f5(0x26b)+'ve\x20stage'+_0x2bc4f5(0x1de)},_0xf2679d=getLLM();_0x15ccf4[_0x2bc4f5(0x1bf)](getGitStatus),_0x15ccf4[_0x2bc4f5(0x1d1)](section,_0x15ccf4['lRpvm']);if(_0x58d8e5[_0x2bc4f5(0x1c7)]){if(_0x15ccf4[_0x2bc4f5(0x1bd)](_0x2bc4f5(0x160),_0x15ccf4[_0x2bc4f5(0x20f)]))_0x15ccf4['qElHM'](stageAll),console[_0x2bc4f5(0x15a)](_0x15ccf4[_0x2bc4f5(0x1d1)](ok,'OK')+(_0x2bc4f5(0x24c)+_0x2bc4f5(0x230)+_0x2bc4f5(0x22b)+'\x20add\x20.).'));else return VXaeuo['MDuDT'];}const _0xf51f6f=_0x15ccf4[_0x2bc4f5(0x250)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x15ccf4[_0x2bc4f5(0x1da)](_0xf51f6f[_0x2bc4f5(0x25e)][_0x2bc4f5(0x268)],0x0)&&_0x15ccf4[_0x2bc4f5(0x1d1)](failAndExit,_0x15ccf4[_0x2bc4f5(0x15b)]);_0x15ccf4['rDacy'](_0xf51f6f[_0x2bc4f5(0x279)][_0x2bc4f5(0x1ae)+'t'],WARN_SPLIT_FILE_COUNT)&&console['log'](_0x15ccf4[_0x2bc4f5(0x255)](warn,_0x15ccf4[_0x2bc4f5(0x1a8)])+'\x20'+_0xf51f6f[_0x2bc4f5(0x279)][_0x2bc4f5(0x1ae)+'t']+('\x20staged\x20'+_0x2bc4f5(0x162)+'tected.\x20'+_0x2bc4f5(0x181)+_0x2bc4f5(0x1dd)+_0x2bc4f5(0x269)+'multiple'+_0x2bc4f5(0x17a)+'.'));_0x15ccf4[_0x2bc4f5(0x1d8)](printList,_0x15ccf4[_0x2bc4f5(0x1e5)],_0xf51f6f[_0x2bc4f5(0x25e)][_0x2bc4f5(0x18b)](_0x27c834=>_0x27c834[_0x2bc4f5(0x24b)]+'\x20'+_0x27c834['path']));if(_0x58d8e5[_0x2bc4f5(0x1b0)]){if(_0x15ccf4[_0x2bc4f5(0x1f5)](_0x2bc4f5(0x16a),'CzFAz'))console['log'](),_0x15ccf4['qElHM'](runOptionalChecks);else return;}section(_0x15ccf4[_0x2bc4f5(0x19a)]);const _0x41e8b3=_0x15ccf4[_0x2bc4f5(0x255)](summarizeChanges,_0xf51f6f),_0xd7dcc5=_0x15ccf4[_0x2bc4f5(0x167)](detectCommitType,_0xf51f6f);_0x15ccf4[_0x2bc4f5(0x201)](printKeyValues,[{'key':'Summary','value':_0x41e8b3},{'key':_0x15ccf4[_0x2bc4f5(0x1ef)],'value':_0xd7dcc5},{'key':_0x15ccf4[_0x2bc4f5(0x1d6)],'value':_0xf51f6f[_0x2bc4f5(0x278)]||_0x2bc4f5(0x244)}]);_0xf51f6f[_0x2bc4f5(0x279)][_0x2bc4f5(0x1a9)+'rs']>WARN_PROMPT_DIFF_CHARS&&console[_0x2bc4f5(0x15a)](_0x15ccf4['fPxIW'](warn,_0x15ccf4[_0x2bc4f5(0x1cf)])+(_0x2bc4f5(0x240)+'taged\x20di'+_0x2bc4f5(0x254))+_0xf51f6f['metrics'][_0x2bc4f5(0x1a9)+'rs']+('\x20chars).'+_0x2bc4f5(0x1d2)+_0x2bc4f5(0x23b)+_0x2bc4f5(0x221)+_0x2bc4f5(0x248)+_0x2bc4f5(0x1ed)+_0x2bc4f5(0x253)));const _0x573940=_0x2bc4f5(0x1c4)+'ne\x20Conve'+'ntional\x20'+_0x2bc4f5(0x20c)+_0x2bc4f5(0x26e)+_0x2bc4f5(0x202)+_0x2bc4f5(0x1f1)+_0x2bc4f5(0x216)+'taged\x20ch'+'anges.\x0aR'+_0x2bc4f5(0x1df)+_0x2bc4f5(0x238)+_0x2bc4f5(0x196)+_0x2bc4f5(0x16f)+_0x2bc4f5(0x213)+_0x2bc4f5(0x1e1)+_0x2bc4f5(0x1c2)+_0x2bc4f5(0x1ce)+_0x2bc4f5(0x19f)+_0x2bc4f5(0x1d9)+_0x2bc4f5(0x1bc)+_0xd7dcc5+(_0x2bc4f5(0x19d)+'ormat:\x20<'+_0x2bc4f5(0x25a)+'tional-s'+_0x2bc4f5(0x191)+_0x2bc4f5(0x22a)+_0x2bc4f5(0x1f4)+_0x2bc4f5(0x178)+_0x2bc4f5(0x1d7)+_0x2bc4f5(0x203)+_0x2bc4f5(0x165)+_0x2bc4f5(0x21c)+_0x2bc4f5(0x16b)+_0x2bc4f5(0x177)+_0x2bc4f5(0x1f7)+_0x2bc4f5(0x1fa)+_0x2bc4f5(0x1d3)+_0x2bc4f5(0x1dc)+'planatio'+'ns\x0a\x0aStag'+'ed\x20files'+':\x0a')+_0x15ccf4[_0x2bc4f5(0x198)](formatStagedFiles,_0xf51f6f)+(_0x2bc4f5(0x1fc)+_0x2bc4f5(0x220)+'\x0a')+_0x41e8b3+(_0x2bc4f5(0x1cc)+_0x2bc4f5(0x1b7))+(_0xf51f6f[_0x2bc4f5(0x278)]||_0x2bc4f5(0x244))+(_0x2bc4f5(0x260)+_0x2bc4f5(0x273))+(_0xf51f6f[_0x2bc4f5(0x279)]['truncate'+'d']?_0x15ccf4[_0x2bc4f5(0x210)]:'')+':\x0a'+(_0xf51f6f[_0x2bc4f5(0x21d)]||_0x2bc4f5(0x244))+_0x2bc4f5(0x1ba);_0x15ccf4[_0x2bc4f5(0x1d1)](section,_0x15ccf4[_0x2bc4f5(0x17f)]);const _0x46f74c=await withProgress(_0x15ccf4['MXohd'],()=>_0xf2679d[_0x2bc4f5(0x16d)](_0x573940)),_0x57e3df=_0x15ccf4[_0x2bc4f5(0x24f)](extractMessageText,_0x46f74c[_0x2bc4f5(0x192)]);!_0x57e3df&&_0x15ccf4[_0x2bc4f5(0x1ab)](failAndExit,_0x15ccf4[_0x2bc4f5(0x26c)]);_0x15ccf4[_0x2bc4f5(0x1ab)](printKeyValues,[{'key':_0x15ccf4[_0x2bc4f5(0x1d0)],'value':_0x57e3df}]),_0x15ccf4['PEBGC'](section,_0x15ccf4['UAdMH']);const _0x291e84=await askEditableInput(_0x15ccf4[_0x2bc4f5(0x245)],_0x57e3df);_0x15ccf4[_0x2bc4f5(0x167)](printKeyValues,[{'key':_0x15ccf4[_0x2bc4f5(0x234)],'value':_0x291e84}]);const _0x13fcc1=await _0x15ccf4[_0x2bc4f5(0x1d8)](askConfirmation,_0x2bc4f5(0x214)+'sing\x20thi'+_0x2bc4f5(0x277)+_0x2bc4f5(0x205)+':\x20',{'defaultYes':!![]});if(!_0x13fcc1){console[_0x2bc4f5(0x15a)](warn(_0x15ccf4['qJkhC'])+(_0x2bc4f5(0x247)+_0x2bc4f5(0x20e)+_0x2bc4f5(0x1a0)));return;}try{_0x15ccf4[_0x2bc4f5(0x258)](execFileSync,_0x2bc4f5(0x246),[_0x2bc4f5(0x21e),'-m',_0x291e84],{'stdio':_0x15ccf4[_0x2bc4f5(0x262)]});}catch{_0x15ccf4[_0x2bc4f5(0x226)](failAndExit,_0x15ccf4[_0x2bc4f5(0x1f2)]);}await maybePushCurrentBranch();}
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 +1 @@
1
- (function(_0x404fec,_0x111627){const _0x189055=_0x304f,_0xbf1ae3=_0x404fec();while(!![]){try{const _0x5e7394=-parseInt(_0x189055(0xed))/0x1+parseInt(_0x189055(0x91))/0x2+parseInt(_0x189055(0xff))/0x3*(-parseInt(_0x189055(0x80))/0x4)+-parseInt(_0x189055(0x92))/0x5*(-parseInt(_0x189055(0xaf))/0x6)+parseInt(_0x189055(0xc6))/0x7+parseInt(_0x189055(0xde))/0x8*(parseInt(_0x189055(0xce))/0x9)+parseInt(_0x189055(0x108))/0xa;if(_0x5e7394===_0x111627)break;else _0xbf1ae3['push'](_0xbf1ae3['shift']());}catch(_0x39bc39){_0xbf1ae3['push'](_0xbf1ae3['shift']());}}}(_0x42d5,0x8b8ae));const _0x351a4e=(function(){const _0x28c11d=_0x304f,_0x200c15={'fSCvM':function(_0x566743,_0x30b09){return _0x566743(_0x30b09);},'zuDog':'openai','TWdZH':function(_0x169210,_0x479aa3){return _0x169210===_0x479aa3;},'UbtLM':_0x28c11d(0xc5)+'c','CrCNJ':function(_0x26225a,_0x400d44){return _0x26225a(_0x400d44);},'IznQJ':function(_0x1b185b,_0x591fda){return _0x1b185b(_0x591fda);},'MaUXf':'DIAGNOST'+_0x28c11d(0x74),'BCVkk':_0x28c11d(0xb1)+'env\x20path','dRqCP':_0x28c11d(0xd8),'ucYDd':function(_0x1b659b,_0x444d05){return _0x1b659b(_0x444d05);},'aQuXu':function(_0x4dee3e,_0x431a4){return _0x4dee3e(_0x431a4);},'ilZte':_0x28c11d(0x7e)+_0x28c11d(0xe1),'ichSd':_0x28c11d(0x107)+'L','fvuHO':_0x28c11d(0xf7)+_0x28c11d(0x89),'gHbHe':_0x28c11d(0xd9),'cjeir':function(_0x263d69,_0x56b7e2){return _0x263d69(_0x56b7e2);},'MJyMF':_0x28c11d(0xcc)+_0x28c11d(0x89),'QJtWq':_0x28c11d(0xcb)+'C_API_KE'+'Y','vuLBh':'jgriH','SAIQM':_0x28c11d(0xfa)};let _0x2bd3fa=!![];return function(_0x16b1e7,_0x51b825){const _0x125010=_0x28c11d,_0x2def8e={'HCYPa':function(_0x1d1b79){return _0x1d1b79();},'etEAC':_0x125010(0x75),'aWRtw':function(_0x14c0b8,_0x5222a6){const _0x5e3960=_0x125010;return _0x200c15[_0x5e3960(0x94)](_0x14c0b8,_0x5222a6);},'IpNQd':_0x200c15['zuDog'],'SUVHp':function(_0x3e676c,_0x10b3d4){const _0x4ba34e=_0x125010;return _0x200c15[_0x4ba34e(0xda)](_0x3e676c,_0x10b3d4);},'ZMUOn':_0x200c15[_0x125010(0x8a)],'zbbuI':function(_0xa14f76,_0x1e37fd){const _0x5ccfba=_0x125010;return _0x200c15[_0x5ccfba(0x104)](_0xa14f76,_0x1e37fd);},'XRNOj':function(_0x4d4186,_0x5b434f){const _0x5b206b=_0x125010;return _0x200c15[_0x5b206b(0xda)](_0x4d4186,_0x5b434f);},'RIsKh':function(_0x528410,_0x1518d5){const _0x10a3c8=_0x125010;return _0x200c15[_0x10a3c8(0x6c)](_0x528410,_0x1518d5);},'zpZqs':function(_0x262b37,_0x31008e){const _0x41c886=_0x125010;return _0x200c15[_0x41c886(0x6c)](_0x262b37,_0x31008e);},'ZujtR':_0x200c15['MaUXf'],'qAksw':_0x200c15[_0x125010(0xdb)],'dBsZe':'Global\x20.'+_0x125010(0xa3),'TxcQh':_0x200c15[_0x125010(0x111)],'yeZDQ':_0x125010(0xf1)+_0x125010(0xb8)+_0x125010(0xa6),'rSqRB':function(_0x926964,_0x309502){const _0x160217=_0x125010;return _0x200c15[_0x160217(0x6e)](_0x926964,_0x309502);},'xfWmP':'not\x20foun'+'d','dOdwU':_0x125010(0xf6)+'IDER','bsofH':function(_0x476cdd,_0x4d9c4b){const _0xc7a0e1=_0x125010;return _0x200c15[_0xc7a0e1(0x9f)](_0x476cdd,_0x4d9c4b);},'YCZHu':_0x200c15[_0x125010(0x93)],'ztJTI':_0x200c15['ichSd'],'xvFYH':function(_0x31b714,_0x1c3d99){const _0x1a8865=_0x125010;return _0x200c15[_0x1a8865(0x9f)](_0x31b714,_0x1c3d99);},'ONdzW':function(_0x155512,_0x58239e){return _0x155512(_0x58239e);},'HuNZl':_0x200c15[_0x125010(0xfe)],'KhoHC':_0x200c15[_0x125010(0x10a)],'vyhNW':function(_0x256ed4,_0x475190){const _0x282e7c=_0x125010;return _0x200c15[_0x282e7c(0x109)](_0x256ed4,_0x475190);},'DGcEN':_0x200c15[_0x125010(0xec)],'yiFUt':function(_0x2c4e9f,_0x50b05e){const _0x4a74b4=_0x125010;return _0x200c15[_0x4a74b4(0x6e)](_0x2c4e9f,_0x50b05e);},'EMaou':function(_0x41412e,_0xdc988b){return _0x41412e(_0xdc988b);},'IgydF':_0x200c15[_0x125010(0xb9)],'uFjTL':function(_0xa1d9a8,_0x419230){return _0xa1d9a8||_0x419230;},'oFAod':function(_0x4d4410,_0x672800){return _0x4d4410!==_0x672800;},'DAOQX':_0x200c15[_0x125010(0x10d)]};if(_0x200c15[_0x125010(0xda)](_0x125010(0x73),_0x200c15['SAIQM'])){const _0xf045b=_0x2def8e[_0x125010(0xd1)](_0x47373b),_0x3e6d2f=_0x2def8e[_0x125010(0xbd)],_0x5ac192=_0x2def8e[_0x125010(0x101)](_0x561978,_0x3e6d2f),_0x3b55fe=_0x2def8e[_0x125010(0x101)](_0x17feec,_0xf045b),_0x56bef3=(_0xcf6571.env.LLM_PROVIDER||'')[_0x125010(0xf9)+_0x125010(0xdd)](),_0x318be0=_0x5efbb5.env.LLM_MODEL||'',_0x50d790=_0x476446.env.GOOGLE_API_KEY||_0x3f7537.env.GEMINI_API_KEY||'',_0x3f8901=_0x80eafb.env.OPENAI_API_KEY||'',_0x2be6df=_0x57b701.env.ANTHROPIC_API_KEY||'',_0x41eafa=_0x56bef3===_0x125010(0x7f)||_0x56bef3===_0x2def8e[_0x125010(0x7b)]||_0x2def8e[_0x125010(0xe7)](_0x56bef3,_0x2def8e[_0x125010(0xaa)]),_0x2df8a3=_0x2def8e[_0x125010(0xc4)](_0x1b449d,_0x318be0),_0x83845f=_0x2def8e[_0x125010(0xa9)](_0x56bef3,_0x125010(0x7f))?_0x50d790:_0x56bef3==='openai'?_0x3f8901:_0x2def8e[_0x125010(0xe7)](_0x56bef3,_0x2def8e['ZMUOn'])?_0x2be6df:'',_0x2779a1=_0x41eafa?_0x2def8e[_0x125010(0xef)](_0x3b5760,_0x56bef3):'API_KEY',_0x8eec9=_0x47d4d3(_0x83845f);_0x2def8e[_0x125010(0xe2)](_0x45785e,_0x2def8e[_0x125010(0xa5)]),_0x44c2da([{'key':_0x2def8e[_0x125010(0xe5)],'value':_0xf045b},{'key':_0x2def8e[_0x125010(0xeb)],'value':_0x3b55fe?_0x414250('found'):_0x2def8e[_0x125010(0xc4)](_0x321775,_0x2def8e[_0x125010(0xfd)])},{'key':_0x125010(0x99)+'nv','value':_0x5ac192?_0x2def8e['zbbuI'](_0x2e0b5e,_0x2def8e['yeZDQ']):_0x2def8e['rSqRB'](_0x572ef8,_0x2def8e['xfWmP'])}]),_0x17bf29[_0x125010(0xa0)](),_0x2def8e['zpZqs'](_0x5085a4,[{'key':_0x2def8e[_0x125010(0xf3)],'value':_0x41eafa?_0x3f2472('ok'):_0x2def8e[_0x125010(0xb6)](_0x2cee0b,_0x2def8e[_0x125010(0x70)])},{'key':_0x2def8e[_0x125010(0xc0)],'value':_0x2df8a3?_0x2def8e['xvFYH'](_0x27005f,'ok'):_0x2def8e[_0x125010(0x90)](_0x353160,_0x2def8e[_0x125010(0xfd)])},{'key':_0x125010(0x6f)+'\x20('+_0x2779a1+')','value':_0x8eec9?_0x2def8e['ONdzW'](_0x59fde2,'ok'):_0x2def8e[_0x125010(0x90)](_0x102ba2,_0x2def8e['TxcQh'])},{'key':_0x2def8e[_0x125010(0xd0)],'value':_0x50d790?_0x2def8e[_0x125010(0x10f)](_0x4f0e21,_0x2def8e['KhoHC']):_0x2def8e[_0x125010(0xf2)](_0x4daf63,_0x2def8e['TxcQh'])},{'key':_0x2def8e[_0x125010(0x102)],'value':_0x3f8901?_0x2def8e[_0x125010(0xab)](_0x1f70d6,_0x2def8e[_0x125010(0xfb)]):_0x2def8e[_0x125010(0xd7)](_0x5012e7,_0x2def8e[_0x125010(0xfd)])},{'key':_0x2def8e[_0x125010(0xb2)],'value':_0x2be6df?_0x43cdd3(_0x2def8e[_0x125010(0xfb)]):_0x2def8e[_0x125010(0xe2)](_0x2622be,_0x2def8e[_0x125010(0xfd)])}]),(_0x2def8e['uFjTL'](!_0x41eafa,!_0x2df8a3)||!_0x8eec9)&&(_0x449b3a[_0x125010(0xca)]=0x1);}else{const _0x3a2e60=_0x2bd3fa?function(){const _0x3084e0=_0x125010;if(_0x2def8e['oFAod'](_0x3084e0(0x10e),_0x2def8e[_0x3084e0(0xe9)])){if(_0x51b825){const _0x279e84=_0x51b825[_0x3084e0(0xc8)](_0x16b1e7,arguments);return _0x51b825=null,_0x279e84;}}else _0x279f5a[_0x3084e0(0xca)]=0x1;}:function(){};return _0x2bd3fa=![],_0x3a2e60;}};}()),_0x3f1fbe=_0x351a4e(this,function(){const _0x336ece=_0x304f,_0x32000d={'szPXW':_0x336ece(0x10b)+_0x336ece(0x87)};return _0x3f1fbe[_0x336ece(0x71)]()[_0x336ece(0xa8)](_0x32000d['szPXW'])[_0x336ece(0x71)]()[_0x336ece(0xe4)+_0x336ece(0x106)](_0x3f1fbe)[_0x336ece(0xa8)](_0x32000d['szPXW']);});_0x3f1fbe();import{existsSync,mkdirSync,writeFileSync}from'fs';function _0x42d5(){const _0x5ada5d=['nNnqX','jtWbI','invalid','zpZqs','te?\x20(y/n','construc','qAksw','ini','SUVHp','utf8','DAOQX','\x20exists.','dBsZe','MJyMF','783615MqQPgO','ogle,\x20op','RIsKh','CONFIGUR','found\x20(o','vyhNW','dOdwU','EpUwM','HkQaZ','LLM_PROV','GOOGLE_A','\x20anthrop','toLowerC','vWRHP','KhoHC','kBrwB','TxcQh','fvuHO','513zCkkGT','le]:\x20','aWRtw','DGcEN','VED','CrCNJ','OvfUh','tor','LLM_MODE','4448500PqkiJl','cjeir','gHbHe','(((.+)+)','\x20Setup\x20c','vuLBh','DdHrW','rSqRB','enai,\x20or','dRqCP','anceled.','tRxiO','LDkcr','.5-flash','QTPAy','IznQJ','BfKIv','ucYDd','Expected','YCZHu','toString','YOBWi','kVUzs','ICS','.env','Status','oySWi','zQozJ',']:\x20','claude-3','IpNQd','ATION\x20SA','KIBoj','missing/','google','21492KNXarA','API_KEY','Provider','FmJVb','found','PI_KEY=\x22','aZbau','+)+$','gFzAu','PI_KEY','UbtLM','IDER=\x22','gpt-4o-m','DIAGNOST','xHRyy','fXmic','ONdzW','477494LcMQer','15lHTLJq','ilZte','fSCvM','not\x20foun','GRbTy','qUTLS','.\x20Use\x20go','Local\x20.e','DKgOm','GNiUH','env\x20path','dKXOy','IITuV','aQuXu','log','join','PXkYQ','env','HicJl','ZujtR','\x20global)','iJFgX','search','XRNOj','ZMUOn','yiFUt','hanLw','CFDjJ','ic.','1084254OkNdEX','UhCvj','Global\x20.','IgydF','SlIjS','mBgQq','L=\x22','bsofH','ekAqm','verrides','QJtWq','mujRQ','moQQY','xhhit','etEAC','WFzsq','\x20Overwri','ztJTI','CANCELED','-5-sonne','/openai/','zbbuI','anthropi','696829PhzlGS','GEMINI_A','apply','openai','exitCode','ANTHROPI','OPENAI_A','LbEdH','279UjohWM','C_API_KE','HuNZl','HCYPa','gemini-2','lMosl','jllGE','GNMUu','CAdYT','EMaou','missing','set','TWdZH','BCVkk','):\x20','ase','244824QIWHvV'];_0x42d5=function(){return _0x5ada5d;};return _0x42d5();}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 _0x304f(_0x3b8462,_0x3579e5){_0x3b8462=_0x3b8462-0x67;const _0x3631fd=_0x42d5();let _0x3f1fbe=_0x3631fd[_0x3b8462];return _0x3f1fbe;}function getProviderKeyName(_0x2a86b6){const _0x2cb0cd=_0x304f,_0x3958b1={'jllGE':function(_0x3b97b9,_0x30269e){return _0x3b97b9===_0x30269e;},'UASYz':_0x2cb0cd(0x7f),'tRxiO':_0x2cb0cd(0xf7)+_0x2cb0cd(0x89),'dAPpO':_0x2cb0cd(0xc9),'PqrTp':_0x2cb0cd(0xcc)+_0x2cb0cd(0x89)};if(_0x3958b1[_0x2cb0cd(0xd4)](_0x2a86b6,_0x3958b1['UASYz']))return _0x3958b1[_0x2cb0cd(0x68)];if(_0x3958b1[_0x2cb0cd(0xd4)](_0x2a86b6,_0x3958b1['dAPpO']))return _0x3958b1['PqrTp'];return _0x2cb0cd(0xcb)+_0x2cb0cd(0xcf)+'Y';}export async function initConfig(){const _0x26911d=_0x304f,_0xd9d9b7={'hanLw':function(_0xb10048){return _0xb10048();},'LbEdH':function(_0x51408c,_0x42b096){return _0x51408c(_0x42b096);},'qUTLS':_0x26911d(0xc1),'kBrwB':_0x26911d(0x82)+'\x20(google'+_0x26911d(0xc3)+_0x26911d(0xc5)+'c)\x20[goog'+_0x26911d(0x100),'HicJl':function(_0x1506cf,_0x133ea0){return _0x1506cf||_0x133ea0;},'gFzAu':'google','GNMUu':function(_0x3cfff5,_0x4aa97f){return _0x3cfff5!==_0x4aa97f;},'DKgOm':_0x26911d(0xc5)+'c','CAdYT':function(_0x11932b,_0x295f6b){return _0x11932b(_0x295f6b);},'QTPAy':function(_0x360eb1,_0x1c3f95){return _0x360eb1===_0x1c3f95;},'jtWbI':function(_0x5a2e60,_0x12ce67){return _0x5a2e60===_0x12ce67;},'fXmic':_0x26911d(0x7a)+_0x26911d(0xc2)+'t-latest','GRbTy':function(_0x2ee91c,_0x3102d2){return _0x2ee91c(_0x3102d2);},'nNiTF':_0x26911d(0xc7)+'PI_KEY=\x22'+'\x22','SlIjS':_0x26911d(0xc9),'BfKIv':function(_0xc19069,_0x5f2340,_0x2b2d5d){return _0xc19069(_0x5f2340,_0x2b2d5d);},'moQQY':_0x26911d(0xe8),'xHRyy':_0x26911d(0xf0)+_0x26911d(0x7c)+_0x26911d(0x103),'GNiUH':function(_0x53e612,_0x1bedbf){return _0x53e612(_0x1bedbf);},'LDkcr':_0x26911d(0x76),'HkQaZ':'Path'},_0x2982f7=_0xd9d9b7[_0x26911d(0xac)](getGlobalEnvPath);if(_0xd9d9b7[_0x26911d(0xcd)](existsSync,_0x2982f7)){const _0x2351b8=await _0xd9d9b7['LbEdH'](askConfirmation,_0x2982f7+('\x20already'+_0x26911d(0xea)+_0x26911d(0xbf)+_0x26911d(0xe3)+_0x26911d(0xdc)));if(!_0x2351b8){console[_0x26911d(0xa0)](_0xd9d9b7[_0x26911d(0xcd)](warn,_0xd9d9b7[_0x26911d(0x97)])+(_0x26911d(0x10c)+_0x26911d(0x67)));return;}}const _0x1b7be7=await askInput(_0xd9d9b7[_0x26911d(0xfc)]),_0xeb0993=_0xd9d9b7[_0x26911d(0xa4)](_0x1b7be7,_0xd9d9b7[_0x26911d(0x88)])[_0x26911d(0xf9)+_0x26911d(0xdd)]();_0xd9d9b7['GNMUu'](_0xeb0993,_0xd9d9b7[_0x26911d(0x88)])&&_0xd9d9b7[_0x26911d(0xd5)](_0xeb0993,_0x26911d(0xc9))&&_0xeb0993!==_0xd9d9b7[_0x26911d(0x9a)]&&_0xd9d9b7[_0x26911d(0xd6)](failAndExit,'Invalid\x20'+'provider'+_0x26911d(0x98)+_0x26911d(0xee)+_0x26911d(0x110)+_0x26911d(0xf8)+_0x26911d(0xae));const _0x193ad7=_0xeb0993,_0x5922ab=_0xd9d9b7[_0x26911d(0x6b)](_0x193ad7,_0xd9d9b7['gFzAu'])?_0x26911d(0xd2)+_0x26911d(0x6a):_0xd9d9b7[_0x26911d(0xe0)](_0x193ad7,_0x26911d(0xc9))?_0x26911d(0x8c)+_0x26911d(0xe6):_0xd9d9b7[_0x26911d(0x8f)],_0x1a2f6d=await _0xd9d9b7[_0x26911d(0xcd)](askInput,'Model\x20['+_0x5922ab+_0x26911d(0x79))||_0x5922ab,_0x2fa50f=_0xd9d9b7['GRbTy'](getProviderKeyName,_0x193ad7),_0x261a53=await askInput(_0x2fa50f+':\x20'),_0x2233ab=[_0x26911d(0xf6)+_0x26911d(0x8b)+_0x193ad7+'\x22','LLM_MODE'+_0x26911d(0xb5)+_0x1a2f6d+'\x22','',_0x26911d(0xf7)+'PI_KEY=\x22'+(_0x193ad7===_0x26911d(0x7f)?_0x261a53:'')+'\x22',_0xd9d9b7['nNiTF'],_0x26911d(0xcc)+_0x26911d(0x85)+(_0xd9d9b7['QTPAy'](_0x193ad7,_0xd9d9b7[_0x26911d(0xb3)])?_0x261a53:'')+'\x22',_0x26911d(0xcb)+_0x26911d(0xcf)+'Y=\x22'+(_0x193ad7==='anthropi'+'c'?_0x261a53:'')+'\x22',''][_0x26911d(0xa1)]('\x0a');_0xd9d9b7[_0x26911d(0x6d)](mkdirSync,dirname(_0x2982f7),{'recursive':!![]}),writeFileSync(_0x2982f7,_0x2233ab,_0xd9d9b7[_0x26911d(0xbb)]),_0xd9d9b7[_0x26911d(0x96)](section,_0xd9d9b7[_0x26911d(0x8e)]),_0xd9d9b7[_0x26911d(0x9b)](printKeyValues,[{'key':_0xd9d9b7[_0x26911d(0x69)],'value':_0xd9d9b7[_0x26911d(0x9b)](ok,'OK')},{'key':_0xd9d9b7[_0x26911d(0xf5)],'value':_0x2982f7}]);}export function doctorConfig(){const _0xd1d981=_0x304f,_0x541bff={'UGbDc':function(_0x76b8b5){return _0x76b8b5();},'EpUwM':_0xd1d981(0x75),'FmJVb':function(_0x14ad99,_0x54ef12){return _0x14ad99(_0x54ef12);},'CFDjJ':function(_0x63eeed,_0x29c498){return _0x63eeed===_0x29c498;},'IITuV':_0xd1d981(0x7f),'aZbau':'openai','lMosl':_0xd1d981(0xc5)+'c','SGyUt':_0xd1d981(0x81),'lomNW':_0xd1d981(0x8d)+_0xd1d981(0x74),'UhCvj':_0xd1d981(0xb1)+_0xd1d981(0x9c),'dKXOy':_0xd1d981(0xb1)+_0xd1d981(0xa3),'ekAqm':function(_0x38a465,_0x328e30){return _0x38a465(_0x328e30);},'PXkYQ':_0xd1d981(0x84),'YOBWi':function(_0x49e604,_0x5ba8c3){return _0x49e604(_0x5ba8c3);},'oySWi':_0xd1d981(0xd8),'cXmrC':'found\x20(o'+_0xd1d981(0xb8)+_0xd1d981(0xa6),'KIBoj':_0xd1d981(0x95)+'d','OvfUh':function(_0x3cb606,_0x134ca9){return _0x3cb606(_0x134ca9);},'xhhit':function(_0x2b4746,_0x5600bf){return _0x2b4746(_0x5600bf);},'iJFgX':function(_0x24df95,_0x45b5fb){return _0x24df95(_0x45b5fb);},'zQozJ':_0xd1d981(0x7e)+_0xd1d981(0xe1),'mujRQ':function(_0x2f2903,_0x40451e){return _0x2f2903(_0x40451e);},'OpXhY':function(_0x440554,_0x3576d5){return _0x440554(_0x3576d5);},'mBgQq':_0xd1d981(0xd9),'WFzsq':_0xd1d981(0xcc)+_0xd1d981(0x89),'xxvuS':'ANTHROPI'+_0xd1d981(0xcf)+'Y','nNnqX':function(_0x12eba1,_0x4ca1aa){return _0x12eba1||_0x4ca1aa;}},_0x229849=_0x541bff['UGbDc'](getGlobalEnvPath),_0x22bc8d=_0x541bff[_0xd1d981(0xf4)],_0x109638=_0x541bff[_0xd1d981(0x83)](existsSync,_0x22bc8d),_0x8e15c5=_0x541bff['FmJVb'](existsSync,_0x229849),_0x1ed265=(process.env.LLM_PROVIDER||'')[_0xd1d981(0xf9)+_0xd1d981(0xdd)](),_0x33cea5=process.env.LLM_MODEL||'',_0x4bd22a=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x39923d=process.env.OPENAI_API_KEY||'',_0x18812c=process.env.ANTHROPIC_API_KEY||'',_0x74de72=_0x541bff[_0xd1d981(0xad)](_0x1ed265,_0x541bff['IITuV'])||_0x1ed265===_0x541bff[_0xd1d981(0x86)]||_0x541bff[_0xd1d981(0xad)](_0x1ed265,_0x541bff['lMosl']),_0x4b70b3=_0x541bff['FmJVb'](Boolean,_0x33cea5),_0x34049f=_0x541bff[_0xd1d981(0xad)](_0x1ed265,_0x541bff[_0xd1d981(0x9e)])?_0x4bd22a:_0x1ed265===_0x541bff['aZbau']?_0x39923d:_0x1ed265===_0x541bff[_0xd1d981(0xd3)]?_0x18812c:'',_0x468fb2=_0x74de72?_0x541bff[_0xd1d981(0x83)](getProviderKeyName,_0x1ed265):_0x541bff['SGyUt'],_0x1813e6=Boolean(_0x34049f);section(_0x541bff['lomNW']),printKeyValues([{'key':_0x541bff[_0xd1d981(0xb0)],'value':_0x229849},{'key':_0x541bff[_0xd1d981(0x9d)],'value':_0x8e15c5?_0x541bff[_0xd1d981(0xb7)](ok,_0x541bff[_0xd1d981(0xa2)]):_0x541bff[_0xd1d981(0x72)](warn,_0x541bff[_0xd1d981(0x77)])},{'key':_0xd1d981(0x99)+'nv','value':_0x109638?_0x541bff[_0xd1d981(0x72)](warn,_0x541bff['cXmrC']):ok(_0x541bff[_0xd1d981(0x7d)])}]),console[_0xd1d981(0xa0)](),_0x541bff[_0xd1d981(0x105)](printKeyValues,[{'key':_0xd1d981(0xf6)+'IDER','value':_0x74de72?_0x541bff['xhhit'](ok,'ok'):_0x541bff[_0xd1d981(0xa7)](bad,_0x541bff[_0xd1d981(0x78)])},{'key':_0xd1d981(0x107)+'L','value':_0x4b70b3?_0x541bff[_0xd1d981(0x72)](ok,'ok'):_0x541bff[_0xd1d981(0xba)](bad,_0x541bff[_0xd1d981(0x77)])},{'key':_0xd1d981(0x6f)+'\x20('+_0x468fb2+')','value':_0x1813e6?_0x541bff['OpXhY'](ok,'ok'):bad(_0x541bff[_0xd1d981(0x77)])},{'key':_0xd1d981(0xf7)+'PI_KEY','value':_0x4bd22a?ok(_0x541bff[_0xd1d981(0xb4)]):warn(_0x541bff['oySWi'])},{'key':_0x541bff[_0xd1d981(0xbe)],'value':_0x39923d?ok(_0x541bff[_0xd1d981(0xb4)]):warn(_0xd1d981(0xd8))},{'key':_0x541bff['xxvuS'],'value':_0x18812c?ok('set'):_0x541bff[_0xd1d981(0xbc)](warn,_0x541bff[_0xd1d981(0x77)])}]),(_0x541bff[_0xd1d981(0xdf)](!_0x74de72,!_0x4b70b3)||!_0x1813e6)&&(process['exitCode']=0x1);}
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 +1 @@
1
- (function(_0x1f3a33,_0x7776a2){const _0x1ba990=_0x2c6a,_0x25f080=_0x1f3a33();while(!![]){try{const _0x3b38a2=-parseInt(_0x1ba990(0x95))/0x1+-parseInt(_0x1ba990(0xab))/0x2+-parseInt(_0x1ba990(0xac))/0x3+-parseInt(_0x1ba990(0xb1))/0x4*(-parseInt(_0x1ba990(0x8f))/0x5)+-parseInt(_0x1ba990(0xc6))/0x6*(parseInt(_0x1ba990(0x80))/0x7)+parseInt(_0x1ba990(0x7c))/0x8*(-parseInt(_0x1ba990(0xc5))/0x9)+parseInt(_0x1ba990(0x87))/0xa;if(_0x3b38a2===_0x7776a2)break;else _0x25f080['push'](_0x25f080['shift']());}catch(_0x4a2c34){_0x25f080['push'](_0x25f080['shift']());}}}(_0xfce2,0xbd8bf));function _0xfce2(){const _0x1ea488=['ts\x20found','ent\x20bran','commits','Changed\x20','Brasil\x20o','nch:\x20','slice','vNAkh','cipais\x20m','tiLXr','branch:\x20','g\x20branch','o\x20contex','changedF','length','lpsuI','5021528CmblMd','IUTbP','hash','trim','5543286NHfCWJ','No\x20commi','Base\x20bra','content','KhYKV','qogAO','mpacto\x20t','49353700ESGRNx','log','Branch','\x20|\x20','grafo\x20cu','Current\x20','pDRtW','mmarizin','5hsNHIm','rto\x20+\x20li','ch\x20again','dozsR','este\x20bra','\x20on\x20curr','1526268RQDdpY','seyOC','st\x20','LnYpP','(none)','wEGXq','(((.+)+)','udancas\x0a','\x20work...','ntexto\x20d','toString','h\x20summar','\x20Nao\x20inv','diffStat','join','to\x20forne','shrvG','em\x20portu','FzfIy','ssivel\x0a-','uando\x20po','jzNLS','2560794gXLBnV','264708TONZaP','bullets\x20','apply','BRANCH\x20S','tor','622012ugUTWk','gues\x20do\x20','message','nch.\x0aReg','bjetiva\x0a','nkMVy','sta\x20com\x20','Diff\x20sta','AI\x20is\x20su','map','te\x20branc','subject','ente\x20nad','+)+$','UMMARY','NzOgx','-\x201\x20para','-\x20Cite\x20i','baseRef','o\x20genera','9SzCKDT','6XkZPGX','search','das\x20prin','Commits:','Failed\x20t','body'];_0xfce2=function(){return _0x1ea488;};return _0xfce2();}const _0x2fbf1b=(function(){let _0x9b848d=!![];return function(_0xcdd36c,_0x500e0f){const _0x133093=_0x9b848d?function(){const _0x40510e=_0x2c6a;if(_0x500e0f){const _0x489ca0=_0x500e0f[_0x40510e(0xae)](_0xcdd36c,arguments);return _0x500e0f=null,_0x489ca0;}}:function(){};return _0x9b848d=![],_0x133093;};}()),_0x2ed99a=_0x2fbf1b(this,function(){const _0x59f433=_0x2c6a,_0x3a7875={'nkMVy':_0x59f433(0x9b)+'+)+$'};return _0x2ed99a[_0x59f433(0x9f)]()['search'](_0x59f433(0x9b)+_0x59f433(0xbe))[_0x59f433(0x9f)]()['construc'+_0x59f433(0xb0)](_0x2ed99a)[_0x59f433(0xc7)](_0x3a7875[_0x59f433(0xb6)]);});_0x2ed99a();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x43da75=_0x2c6a,_0x262303={'vNAkh':function(_0x4c9fb5){return _0x4c9fb5();},'sPHiE':function(_0xa4e65d,_0x48902c){return _0xa4e65d instanceof _0x48902c;},'SsJax':function(_0x45f859,_0x7c4269){return _0x45f859(_0x7c4269);}};try{return _0x262303[_0x43da75(0xd3)](createLLM);}catch(_0xfeb5ab){const _0x5afbe2=_0x262303['sPHiE'](_0xfeb5ab,Error)?_0xfeb5ab[_0x43da75(0xb3)]:String(_0xfeb5ab);_0x262303['SsJax'](failAndExit,_0x5afbe2);}}function _0x2c6a(_0x8edcb3,_0x26990e){_0x8edcb3=_0x8edcb3-0x78;const _0x252c67=_0xfce2();let _0x2ed99a=_0x252c67[_0x8edcb3];return _0x2ed99a;}function formatBranchContextForPrompt(){const _0xdf4fc6=_0x2c6a,_0x6ae5cd={'jzNLS':function(_0x3e25fb,_0xc99e55){return _0x3e25fb(_0xc99e55);},'MxTpr':_0xdf4fc6(0xca)+_0xdf4fc6(0xc4)+_0xdf4fc6(0xbb)+_0xdf4fc6(0xa0)+'y.','lpsuI':function(_0x37a0c1,_0x55a758){return _0x37a0c1===_0x55a758;},'mHVFe':'bLtfy','pDRtW':_0xdf4fc6(0x85),'wEGXq':function(_0x3abcb5,_0x46f934){return _0x3abcb5(_0x46f934);},'shrvG':function(_0x34b742){return _0x34b742();},'IUTbP':'(none)','LnYpP':_0xdf4fc6(0xb8)+'t:'},_0x2e3fef=getBranchContext();_0x6ae5cd[_0xdf4fc6(0x7b)](_0x2e3fef[_0xdf4fc6(0xce)][_0xdf4fc6(0x7a)],0x0)&&(_0x6ae5cd['mHVFe']===_0x6ae5cd[_0xdf4fc6(0x8d)]?_0x6ae5cd[_0xdf4fc6(0xaa)](_0x3e65e1,_0x6ae5cd['MxTpr']):_0x6ae5cd[_0xdf4fc6(0x9a)](failAndExit,_0xdf4fc6(0x81)+_0xdf4fc6(0xcc)+_0xdf4fc6(0x94)+_0xdf4fc6(0xcd)+_0xdf4fc6(0x91)+_0xdf4fc6(0x97)+_0x2e3fef[_0xdf4fc6(0xc3)]+'.'));const _0x5a5c6a=_0x2e3fef[_0xdf4fc6(0xce)][_0xdf4fc6(0xba)](_0x172f72=>{const _0x329b5b=_0xdf4fc6,_0x620b40=_0x172f72['body']?'\x20|\x20body:'+'\x20'+_0x172f72[_0x329b5b(0xcb)]['replace'](/\s+/g,'\x20')[_0x329b5b(0x7f)]():'';return'-\x20'+_0x172f72[_0x329b5b(0x7e)][_0x329b5b(0xd2)](0x0,0x7)+_0x329b5b(0x8a)+_0x172f72[_0x329b5b(0xbc)]+_0x620b40;});return[_0xdf4fc6(0x8c)+_0xdf4fc6(0xd6)+_0x6ae5cd[_0xdf4fc6(0xa5)](getCurrentBranch),_0xdf4fc6(0x82)+_0xdf4fc6(0xd1)+_0x2e3fef['baseRef'],'',_0xdf4fc6(0xc9),..._0x5a5c6a,'',_0xdf4fc6(0xcf)+'files:',_0x2e3fef[_0xdf4fc6(0x79)+'iles']||_0x6ae5cd[_0xdf4fc6(0x7d)],'',_0x6ae5cd[_0xdf4fc6(0x98)],_0x2e3fef[_0xdf4fc6(0xa2)]||_0xdf4fc6(0x99)][_0xdf4fc6(0xa3)]('\x0a');}export async function summarizeBranchLog(){const _0x44f9b3=_0x2c6a,_0x5d482c={'KhYKV':function(_0x2af73b){return _0x2af73b();},'tiLXr':function(_0x2572dd){return _0x2572dd();},'FHjkR':function(_0x72ade2,_0x11e5ff,_0x390a6b){return _0x72ade2(_0x11e5ff,_0x390a6b);},'dozsR':_0x44f9b3(0xb9)+_0x44f9b3(0x8e)+_0x44f9b3(0xd7)+_0x44f9b3(0x9d),'seyOC':function(_0x2f959f,_0x4b74a8){return _0x2f959f(_0x4b74a8);},'NzOgx':_0x44f9b3(0xca)+'o\x20genera'+_0x44f9b3(0xbb)+_0x44f9b3(0xa0)+'y.','PJyhm':_0x44f9b3(0xaf)+_0x44f9b3(0xbf),'FzfIy':_0x44f9b3(0x89)};_0x5d482c[_0x44f9b3(0x84)](getGitStatus);const _0x541521=_0x5d482c[_0x44f9b3(0x84)](getLLM),_0x6a3da9=_0x5d482c[_0x44f9b3(0xd5)](formatBranchContextForPrompt),_0x541787=('\x0aResuma\x20'+_0x44f9b3(0xa6)+_0x44f9b3(0xb2)+_0x44f9b3(0xd0)+'\x20que\x20foi'+'\x20feito\x20n'+_0x44f9b3(0x93)+_0x44f9b3(0xb4)+'ras:\x0a-\x20U'+'se\x20lingu'+'agem\x20nat'+'ural\x20e\x20o'+_0x44f9b3(0xb5)+_0x44f9b3(0xc1)+_0x44f9b3(0x8b)+_0x44f9b3(0x90)+_0x44f9b3(0xb7)+_0x44f9b3(0xad)+_0x44f9b3(0xc8)+_0x44f9b3(0xd4)+_0x44f9b3(0x9c)+_0x44f9b3(0xc2)+_0x44f9b3(0x86)+'ecnico\x20q'+_0x44f9b3(0xa9)+_0x44f9b3(0xa8)+_0x44f9b3(0xa1)+_0x44f9b3(0xbd)+'a\x20fora\x20d'+_0x44f9b3(0x78)+_0x44f9b3(0xa4)+'cido\x0a\x0aCo'+_0x44f9b3(0x9e)+'o\x20branch'+':\x0a'+_0x6a3da9+'\x0a')['trim'](),_0x2b1dc6=await _0x5d482c['FHjkR'](withProgress,_0x5d482c[_0x44f9b3(0x92)],()=>_0x541521['invoke'](_0x541787)),_0x67e3b0=_0x5d482c['seyOC'](extractMessageText,_0x2b1dc6[_0x44f9b3(0x83)]);!_0x67e3b0&&_0x5d482c[_0x44f9b3(0x96)](failAndExit,_0x5d482c[_0x44f9b3(0xc0)]),_0x5d482c[_0x44f9b3(0x96)](section,_0x5d482c['PJyhm']),printKeyValues([{'key':_0x5d482c[_0x44f9b3(0xa7)],'value':_0x5d482c['KhYKV'](getCurrentBranch)}]),console['log'](_0x67e3b0),console[_0x44f9b3(0x88)]();}
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 +1 @@
1
- function _0x1eca(_0x290c48,_0x494730){_0x290c48=_0x290c48-0x90;const _0x2ba0ea=_0x47e1();let _0x8f6110=_0x2ba0ea[_0x290c48];return _0x8f6110;}(function(_0x43a36d,_0x4a813c){const _0x4e096a=_0x1eca,_0x4371fc=_0x43a36d();while(!![]){try{const _0x20ee78=parseInt(_0x4e096a(0xc5))/0x1*(-parseInt(_0x4e096a(0x9d))/0x2)+-parseInt(_0x4e096a(0x111))/0x3*(-parseInt(_0x4e096a(0xea))/0x4)+-parseInt(_0x4e096a(0xd1))/0x5+parseInt(_0x4e096a(0x109))/0x6+-parseInt(_0x4e096a(0xfc))/0x7*(parseInt(_0x4e096a(0xd4))/0x8)+parseInt(_0x4e096a(0x9c))/0x9+parseInt(_0x4e096a(0x90))/0xa*(-parseInt(_0x4e096a(0xe4))/0xb);if(_0x20ee78===_0x4a813c)break;else _0x4371fc['push'](_0x4371fc['shift']());}catch(_0x2b2854){_0x4371fc['push'](_0x4371fc['shift']());}}}(_0x47e1,0xe4304));const _0x512b03=(function(){let _0x40d714=!![];return function(_0x394428,_0x22da9f){const _0x253a07=_0x40d714?function(){const _0x5bd5e5=_0x1eca;if(_0x22da9f){const _0x49e4f7=_0x22da9f[_0x5bd5e5(0xf2)](_0x394428,arguments);return _0x22da9f=null,_0x49e4f7;}}:function(){};return _0x40d714=![],_0x253a07;};}()),_0x8f6110=_0x512b03(this,function(){const _0xd2180f=_0x1eca,_0x85e57d={'geGOr':'(((.+)+)'+_0xd2180f(0xc4)};return _0x8f6110[_0xd2180f(0xc8)]()['search'](_0xd2180f(0xa0)+_0xd2180f(0xc4))['toString']()[_0xd2180f(0x103)+'tor'](_0x8f6110)['search'](_0x85e57d['geGOr']);});_0x8f6110();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';function _0x47e1(){const _0x21ea6c=['AI\x20is\x20pr','6059804tIvJGR',':\x0a<markd','LixAq','\x20A\x20conci','eparing\x20','o\x20parse\x20','bmAWk','A\x20clear\x20','apply','PMweZ','\x0aYou\x20are','length','subject','PR\x20TITLE','slice','OfEGs','Changed\x20','title','2292157TMucNV','ary,\x20Cha','findInde','not\x20incl','map','...','PR\x20DESCR','construc','files:','MVhGG','QHRxM','replace','PR\x20title','4598502DBqAMj','Failed\x20t','No\x20commi','ent\x20bran','(none)','SWFsq','SXGUj','tle\x20in\x20E','3ooNXKx','5450iTeymx','\x20generat','branch:\x20','content','iption.','AI\x20respo','invoke','Tojgw','descript','qlgkW','diffStat','join','13088475pmAlAm','1686vxzDeU','split','hWOKs','(((.+)+)','\x20this\x20fo','\x20descrip','reate:\x0a-','tNjLM','baseRef','ts\x20found','CRIPTION','le/descr','rmat:\x0aTI','vVpEY','qIbTm','trim','ntent.','EAUyD','indexOf','TLE:\x20<ti','hars)\x0a-\x20','nch:\x20','startsWi','\x20|\x20','se\x20PR\x20ti','\x20on\x20curr','ion','nges,\x20Te','om\x20AI\x20re','st\x20','dfHbN','tion\x20wit','sponse.','xmABI','\x20Pull\x20Re','changedF','ch\x20again','OQIqM','commits','+)+$','242kVYmgY','cription','IPTION','toString','Current\x20','nse\x20did\x20','d\x20PR\x20tit','o\x20genera','ing\x20cont','markdown','BzsTf','te\x20PR\x20co','5878555LCrZoK','ude\x20vali','vjFbG','8IFwNgm','message','find','ch\x20data\x20','the\x20bran','ns:\x20Summ','nYpQn','log','a:\x0a','iles','max\x2072\x20c','own>\x0a\x0aBr','pAQcB','stion\x20fr','tiZKm','ase','22077UTLhXI','toLowerC','Base\x20bra','\x20and\x20des','nglish\x20('];_0x47e1=function(){return _0x21ea6c;};return _0x47e1();}import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x38d87b=_0x1eca,_0x5d6719={'OfEGs':function(_0x37952c,_0x11b99b){return _0x37952c(_0x11b99b);},'qIbTm':_0x38d87b(0x95)+_0x38d87b(0xca)+_0x38d87b(0xff)+_0x38d87b(0xd2)+_0x38d87b(0xcb)+_0x38d87b(0xa8)+_0x38d87b(0x94),'RscWL':function(_0x3cd39a){return _0x3cd39a();},'LixAq':function(_0x39164b,_0x5edebc){return _0x39164b!==_0x5edebc;},'BzsTf':'KgEIA','qlgkW':_0x38d87b(0xe2),'uuVbV':function(_0x33fab8,_0x421ec3){return _0x33fab8(_0x421ec3);},'SWFsq':function(_0xc3c589,_0x2def72){return _0xc3c589(_0x2def72);}};try{return _0x5d6719['RscWL'](createLLM);}catch(_0x5bb483){if(_0x5d6719[_0x38d87b(0xec)](_0x5d6719[_0x38d87b(0xcf)],_0x5d6719[_0x38d87b(0x99)])){const _0x460d9d=_0x5bb483 instanceof Error?_0x5bb483[_0x38d87b(0xd5)]:_0x5d6719['uuVbV'](String,_0x5bb483);_0x5d6719[_0x38d87b(0x10e)](failAndExit,_0x460d9d);}else _0x5d6719[_0x38d87b(0xf9)](_0x32262f,_0x5d6719[_0x38d87b(0xab)]);}}function formatCommitsForPrompt(){const _0x3c32d9=_0x1eca,_0x86f83a={'QHRxM':function(_0x2e6da4){return _0x2e6da4();},'dfHbN':function(_0x2dbb37,_0x4a087c){return _0x2dbb37===_0x4a087c;},'EAUyD':function(_0x44c2e1,_0x6feff0){return _0x44c2e1(_0x6feff0);},'YCJLo':'Commits:','MVhGG':_0x3c32d9(0xfa)+_0x3c32d9(0x104),'OQIqM':_0x3c32d9(0x10d),'tNjLM':'Diff\x20sta'+'t:'},_0x57fb9a=_0x86f83a[_0x3c32d9(0x106)](getBranchContext);_0x86f83a[_0x3c32d9(0xbb)](_0x57fb9a[_0x3c32d9(0xc3)][_0x3c32d9(0xf5)],0x0)&&_0x86f83a[_0x3c32d9(0xae)](failAndExit,'No\x20commi'+'ts\x20found'+'\x20on\x20curr'+_0x3c32d9(0x10c)+_0x3c32d9(0xc1)+_0x3c32d9(0xba)+_0x57fb9a['baseRef']+'.');const _0x25934a=_0x57fb9a[_0x3c32d9(0xc3)][_0x3c32d9(0x100)](_0x20f7eb=>{const _0x21ebdd=_0x3c32d9,_0x1e5955=_0x20f7eb['body']?'\x20|\x20body:'+'\x20'+_0x20f7eb['body'][_0x21ebdd(0x107)](/\s+/g,'\x20')[_0x21ebdd(0xac)]():'';return'-\x20'+_0x20f7eb['hash']['slice'](0x0,0x7)+_0x21ebdd(0xb4)+_0x20f7eb[_0x21ebdd(0xf6)]+_0x1e5955;});return[_0x3c32d9(0xc9)+_0x3c32d9(0x92)+_0x86f83a[_0x3c32d9(0x106)](getCurrentBranch),_0x3c32d9(0xe6)+_0x3c32d9(0xb2)+_0x57fb9a[_0x3c32d9(0xa5)],'',_0x86f83a['YCJLo'],..._0x25934a,'',_0x86f83a[_0x3c32d9(0x105)],_0x57fb9a[_0x3c32d9(0xc0)+_0x3c32d9(0xdd)]||_0x86f83a[_0x3c32d9(0xc2)],'',_0x86f83a[_0x3c32d9(0xa4)],_0x57fb9a[_0x3c32d9(0x9a)]||_0x86f83a[_0x3c32d9(0xc2)]][_0x3c32d9(0x9b)]('\x0a');}function parsePrSuggestion(_0x17f02d){const _0x15d9ab=_0x1eca,_0x5b59b6={'bmAWk':function(_0x212631,_0x2fab5f){return _0x212631(_0x2fab5f);},'hWOKs':'Failed\x20t'+_0x15d9ab(0xef)+'PR\x20sugge'+_0x15d9ab(0xe1)+_0x15d9ab(0xb9)+_0x15d9ab(0xbd),'iFFba':function(_0x3e6dbc,_0x5cef28){return _0x3e6dbc+_0x5cef28;},'cZhQA':function(_0x1c1ea5,_0x223e97){return _0x1c1ea5||_0x223e97;},'pAQcB':function(_0x457d65,_0x51c6e5){return _0x457d65===_0x51c6e5;},'nYpQn':_0x15d9ab(0xaa),'cZGwv':'MqYeg','EYqpO':_0x15d9ab(0x95)+_0x15d9ab(0xca)+_0x15d9ab(0xff)+_0x15d9ab(0xd2)+_0x15d9ab(0xcb)+_0x15d9ab(0xa8)+_0x15d9ab(0x94)},_0x2d7418=_0x17f02d[_0x15d9ab(0x9e)](/\r?\n/),_0x104f80=_0x2d7418[_0x15d9ab(0xd6)](_0x46c809=>_0x46c809['toLowerC'+_0x15d9ab(0xe3)]()[_0x15d9ab(0xb3)+'th']('title:')),_0x175c84=_0x2d7418[_0x15d9ab(0xfe)+'x'](_0x521ab1=>_0x521ab1[_0x15d9ab(0xe5)+_0x15d9ab(0xe3)]()['startsWi'+'th'](_0x15d9ab(0x98)+'ion:'));(!_0x104f80||_0x175c84<0x0)&&_0x5b59b6['bmAWk'](failAndExit,_0x5b59b6[_0x15d9ab(0x9f)]);const _0x1bd201=_0x104f80[_0x15d9ab(0xf8)](_0x5b59b6['iFFba'](_0x104f80[_0x15d9ab(0xaf)](':'),0x1))[_0x15d9ab(0xac)](),_0x25777e=_0x2d7418[_0x15d9ab(0xf8)](_0x175c84+0x1)['join']('\x0a')[_0x15d9ab(0xac)]();return _0x5b59b6['cZhQA'](!_0x1bd201,!_0x25777e)&&(_0x5b59b6[_0x15d9ab(0xe0)](_0x5b59b6[_0x15d9ab(0xda)],_0x5b59b6['cZGwv'])?jqWeAh[_0x15d9ab(0xf0)](_0x9004f2,_0x15d9ab(0x10b)+_0x15d9ab(0xa6)+_0x15d9ab(0xb6)+_0x15d9ab(0x10c)+_0x15d9ab(0xc1)+'st\x20'+_0x5a47ae[_0x15d9ab(0xa5)]+'.'):_0x5b59b6[_0x15d9ab(0xf0)](failAndExit,_0x5b59b6['EYqpO'])),{'title':_0x1bd201,'description':_0x25777e};}export async function generatePullRequestText(){const _0x55a3a1=_0x1eca,_0x304a52={'PMweZ':function(_0x1e45ee){return _0x1e45ee();},'xmABI':function(_0xe65a08,_0x323b35,_0x554184){return _0xe65a08(_0x323b35,_0x554184);},'lAUBs':_0x55a3a1(0xe9)+_0x55a3a1(0xee)+_0x55a3a1(0x108)+_0x55a3a1(0xe7)+_0x55a3a1(0xc6)+_0x55a3a1(0x101),'vjFbG':function(_0x3295c0,_0x4b784e){return _0x3295c0(_0x4b784e);},'Tojgw':_0x55a3a1(0x10a)+_0x55a3a1(0xcc)+_0x55a3a1(0xd0)+_0x55a3a1(0xad),'bJigq':function(_0x3bb618,_0x42c91b){return _0x3bb618(_0x42c91b);},'pZyRu':'Title','SXGUj':_0x55a3a1(0x102)+_0x55a3a1(0xc7)};_0x304a52[_0x55a3a1(0xf3)](getGitStatus);const _0x45a459=_0x304a52[_0x55a3a1(0xf3)](getLLM),_0x592bfa=_0x304a52['PMweZ'](formatCommitsForPrompt),_0x41c80c=(_0x55a3a1(0xf4)+_0x55a3a1(0x91)+_0x55a3a1(0xcd)+'ent\x20for\x20'+'a\x20GitHub'+_0x55a3a1(0xbf)+'quest.\x0aB'+'ased\x20on\x20'+_0x55a3a1(0xd8)+_0x55a3a1(0xd7)+'below,\x20c'+_0x55a3a1(0xa3)+_0x55a3a1(0xed)+_0x55a3a1(0xb5)+_0x55a3a1(0x110)+_0x55a3a1(0xe8)+_0x55a3a1(0xde)+_0x55a3a1(0xb1)+_0x55a3a1(0xf1)+_0x55a3a1(0xce)+_0x55a3a1(0xa2)+_0x55a3a1(0xbc)+'h\x20sectio'+_0x55a3a1(0xd9)+_0x55a3a1(0xfd)+_0x55a3a1(0xb8)+'sting\x0a\x0aR'+'eturn\x20ex'+'actly\x20in'+_0x55a3a1(0xa1)+_0x55a3a1(0xa9)+_0x55a3a1(0xb0)+'tle>\x0aDES'+_0x55a3a1(0xa7)+_0x55a3a1(0xeb)+_0x55a3a1(0xdf)+'anch\x20dat'+_0x55a3a1(0xdc)+_0x592bfa+'\x0a')[_0x55a3a1(0xac)](),_0x50b27f=await _0x304a52[_0x55a3a1(0xbe)](withProgress,_0x304a52['lAUBs'],()=>_0x45a459[_0x55a3a1(0x96)](_0x41c80c)),_0x424ba8=_0x304a52[_0x55a3a1(0xd3)](extractMessageText,_0x50b27f[_0x55a3a1(0x93)]);!_0x424ba8&&_0x304a52['vjFbG'](failAndExit,_0x304a52[_0x55a3a1(0x97)]);const _0x53bc36=_0x304a52['bJigq'](parsePrSuggestion,_0x424ba8);_0x304a52[_0x55a3a1(0xd3)](section,_0x55a3a1(0xf7)),printKeyValues([{'key':_0x304a52['pZyRu'],'value':_0x53bc36[_0x55a3a1(0xfb)]}]),_0x304a52['bJigq'](section,_0x304a52[_0x55a3a1(0x10f)]),console[_0x55a3a1(0xdb)](_0x53bc36[_0x55a3a1(0x98)+_0x55a3a1(0xb7)]),console[_0x55a3a1(0xdb)]();}
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 +1 @@
1
- (function(_0x3e568d,_0x4e7ca6){const _0x273a26=_0x1e73,_0x38aaf2=_0x3e568d();while(!![]){try{const _0x48add4=-parseInt(_0x273a26(0x198))/0x1+-parseInt(_0x273a26(0x199))/0x2+-parseInt(_0x273a26(0x175))/0x3+parseInt(_0x273a26(0x184))/0x4+-parseInt(_0x273a26(0x180))/0x5+-parseInt(_0x273a26(0x172))/0x6+parseInt(_0x273a26(0x189))/0x7;if(_0x48add4===_0x4e7ca6)break;else _0x38aaf2['push'](_0x38aaf2['shift']());}catch(_0x1015b5){_0x38aaf2['push'](_0x38aaf2['shift']());}}}(_0x535f,0x289bc));const _0x3eac0b=(function(){const _0x22f948=_0x1e73,_0x340391={'hhGXa':'(((.+)+)'+_0x22f948(0x186),'xowTV':function(_0x29f678,_0x586c40){return _0x29f678!==_0x586c40;},'nSCuv':_0x22f948(0x18a)};let _0x5699e0=!![];return function(_0x109034,_0x43a9b5){const _0x52ceef=_0x22f948;if(_0x340391[_0x52ceef(0x16e)](_0x340391['nSCuv'],_0x340391[_0x52ceef(0x187)]))return _0xc3b2cc['toString']()['search'](_0x340391[_0x52ceef(0x16f)])[_0x52ceef(0x18f)]()[_0x52ceef(0x194)+'tor'](_0x5b4a04)[_0x52ceef(0x188)](_0x340391['hhGXa']);else{const _0x28c828=_0x5699e0?function(){const _0x2dcf92=_0x52ceef;if(_0x43a9b5){const _0x4c1224=_0x43a9b5[_0x2dcf92(0x191)](_0x109034,arguments);return _0x43a9b5=null,_0x4c1224;}}:function(){};return _0x5699e0=![],_0x28c828;}};}()),_0x520873=_0x3eac0b(this,function(){const _0xb4cb40=_0x1e73,_0x1cc155={'xhPvx':_0xb4cb40(0x173)+_0xb4cb40(0x186)};return _0x520873[_0xb4cb40(0x18f)]()[_0xb4cb40(0x188)](_0xb4cb40(0x173)+'+)+$')[_0xb4cb40(0x18f)]()[_0xb4cb40(0x194)+_0xb4cb40(0x18c)](_0x520873)[_0xb4cb40(0x188)](_0x1cc155[_0xb4cb40(0x196)]);});_0x520873();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x365fd7}from'dotenv';function getBaseConfigDir(){const _0x4700b9=_0x1e73,_0x2a6e55={'Svudb':function(_0x788973,_0x5b100d){return _0x788973===_0x5b100d;},'jfBGf':_0x4700b9(0x17a),'aoDbt':function(_0x58ae65,_0x2e133e,_0x3b710e){return _0x58ae65(_0x2e133e,_0x3b710e);},'sjFvw':function(_0xa6f3b){return _0xa6f3b();},'Ojqcp':_0x4700b9(0x185),'SpdYR':function(_0x2e7d24,_0x4a88e6,_0x6b0858,_0x132283){return _0x2e7d24(_0x4a88e6,_0x6b0858,_0x132283);},'ZWNdD':'Library','wJwvi':'.config'};if(_0x2a6e55['Svudb'](process[_0x4700b9(0x19c)],_0x2a6e55['jfBGf']))return process.env.APPDATA||_0x2a6e55[_0x4700b9(0x174)](join,_0x2a6e55[_0x4700b9(0x181)](homedir),_0x4700b9(0x193));if(_0x2a6e55[_0x4700b9(0x183)](process[_0x4700b9(0x19c)],_0x2a6e55['Ojqcp']))return _0x2a6e55[_0x4700b9(0x179)](join,_0x2a6e55[_0x4700b9(0x181)](homedir),_0x2a6e55[_0x4700b9(0x17b)],'Applicat'+_0x4700b9(0x18e)+'ort');return process.env.XDG_CONFIG_HOME||_0x2a6e55[_0x4700b9(0x174)](join,_0x2a6e55[_0x4700b9(0x181)](homedir),_0x2a6e55[_0x4700b9(0x177)]);}export function getGlobalEnvPath(){const _0x4b8364=_0x1e73,_0x4cdfe3={'gMAGF':_0x4b8364(0x17a),'ZFCty':function(_0x18fcac,_0xd0f26b,_0x4a0e4a,_0x169016){return _0x18fcac(_0xd0f26b,_0x4a0e4a,_0x169016);},'awhkY':_0x4b8364(0x18b),'eWoWX':function(_0x529612){return _0x529612();},'DBdqv':'gemit'};if(process['platform']===_0x4cdfe3[_0x4b8364(0x170)]&&process.env.APPDATA)return _0x4cdfe3[_0x4b8364(0x18d)](join,process.env.APPDATA,_0x4b8364(0x17e),_0x4cdfe3[_0x4b8364(0x19a)]);return join(_0x4cdfe3[_0x4b8364(0x176)](getBaseConfigDir),_0x4cdfe3[_0x4b8364(0x182)],_0x4cdfe3['awhkY']);}export function loadConfig(){const _0x50306e=_0x1e73,_0x2ffc73={'hcvqw':_0x50306e(0x18b),'IanCG':function(_0x315f3d){return _0x315f3d();},'kxJjW':function(_0x309032,_0x907e8a){return _0x309032(_0x907e8a);},'ElTIm':'psAYz','BTJjE':function(_0x1c0f19,_0x9b646c,_0x4ba18f){return _0x1c0f19(_0x9b646c,_0x4ba18f);}},_0x494812=_0x2ffc73[_0x50306e(0x17c)](getGlobalEnvPath);loadEnvFile(_0x494812,![]),_0x2ffc73[_0x50306e(0x16a)](existsSync,_0x2ffc73[_0x50306e(0x190)])&&('psAYz'===_0x2ffc73[_0x50306e(0x192)]?_0x2ffc73[_0x50306e(0x16c)](loadEnvFile,_0x2ffc73['hcvqw'],!![]):_0x400199(_0x2ffc73[_0x50306e(0x190)],!![]));}function _0x1e73(_0x291913,_0x5afa47){_0x291913=_0x291913-0x16a;const _0x1bfa8a=_0x535f();let _0x520873=_0x1bfa8a[_0x291913];return _0x520873;}function loadEnvFile(_0x3af2d4,_0x4a43ed){const _0x25305c=_0x1e73,_0x4203f1={'dUPJc':function(_0x5cad58){return _0x5cad58();},'eqysb':function(_0x480fa1,_0x3175a8,_0x50b995){return _0x480fa1(_0x3175a8,_0x50b995);},'NSHYT':function(_0x50876e,_0x35cc88){return _0x50876e(_0x35cc88);},'QLUBo':_0x25305c(0x18b),'lsEsg':function(_0x44054b,_0x44831f,_0x11efef){return _0x44054b(_0x44831f,_0x11efef);},'fmccP':function(_0xa5d861,_0x53494e){return _0xa5d861!==_0x53494e;},'Vylot':'UvFBO','APVfB':function(_0xb08651,_0x4125a4){return _0xb08651(_0x4125a4);},'wveyu':function(_0x23b195,_0x501223,_0x1d387e){return _0x23b195(_0x501223,_0x1d387e);},'hWYdm':function(_0x1cb8cc,_0x38e2de){return _0x1cb8cc===_0x38e2de;}};if(!existsSync(_0x3af2d4)){if(_0x4203f1[_0x25305c(0x195)](_0x25305c(0x17d),_0x4203f1['Vylot']))return;else{const _0x571b4c=criDLC['dUPJc'](_0x169d9a);criDLC[_0x25305c(0x178)](_0x4662f8,_0x571b4c,![]),criDLC[_0x25305c(0x16b)](_0x17a533,criDLC['QLUBo'])&&criDLC[_0x25305c(0x19b)](_0x32cab1,criDLC[_0x25305c(0x16d)],!![]);}}const _0x153dc9=_0x4203f1[_0x25305c(0x19d)](_0x365fd7,_0x4203f1[_0x25305c(0x171)](readFileSync,_0x3af2d4,_0x25305c(0x17f)));for(const [_0x1e62e8,_0x3e9082]of Object['entries'](_0x153dc9)){(_0x4a43ed||_0x4203f1[_0x25305c(0x197)](process.env[_0x1e62e8],undefined))&&(process.env[_0x1e62e8]=_0x3e9082);}}function _0x535f(){const _0x36bd22=['IanCG','serCZ','gemit','utf8','121060HBrOEH','sjFvw','DBdqv','Svudb','554672jrNAHi','darwin','+)+$','nSCuv','search','4075820WmadBI','fWvzO','.env','tor','ZFCty','ion\x20Supp','toString','hcvqw','apply','ElTIm','.gemit','construc','fmccP','xhPvx','hWYdm','53685uoKzNp','118682CsbQga','awhkY','lsEsg','platform','APVfB','kxJjW','NSHYT','BTJjE','QLUBo','xowTV','hhGXa','gMAGF','wveyu','820152qnSXbq','(((.+)+)','aoDbt','841998SbtOfO','eWoWX','wJwvi','eqysb','SpdYR','win32','ZWNdD'];_0x535f=function(){return _0x36bd22;};return _0x535f();}
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 +1 @@
1
- (function(_0x51d42a,_0x5f495a){const _0x148a6a=_0x4059,_0x996f99=_0x51d42a();while(!![]){try{const _0x3abf5f=parseInt(_0x148a6a(0x1c4))/0x1*(parseInt(_0x148a6a(0x1cb))/0x2)+parseInt(_0x148a6a(0x215))/0x3+parseInt(_0x148a6a(0x17e))/0x4+-parseInt(_0x148a6a(0x188))/0x5*(parseInt(_0x148a6a(0x186))/0x6)+-parseInt(_0x148a6a(0x1bc))/0x7*(parseInt(_0x148a6a(0x22d))/0x8)+parseInt(_0x148a6a(0x220))/0x9*(parseInt(_0x148a6a(0x1ee))/0xa)+-parseInt(_0x148a6a(0x1db))/0xb;if(_0x3abf5f===_0x5f495a)break;else _0x996f99['push'](_0x996f99['shift']());}catch(_0x3d5869){_0x996f99['push'](_0x996f99['shift']());}}}(_0x2997,0xa8d49));function _0x2997(){const _0x325804=['tlQYE','ll-name\x20','-ref\x20--v','FdToi','ETnGz','SvcHh','(((.+)+)','o\x20stage\x20','bolic-fu','dypdm','e\x20merge-','tQWbr','base\x20wit','Bmqyz','16113713yVOCbf','git\x20rev-','WCdgx','merge-ba','kbkMx','aGecg','t\x20detect','xmdrX','GJvXo','add','yknLB','XVMAm','POgWH','t\x20reposi','HtlPy','th\x20git\x20a','isNaN','frtqB','ds/','10UNZfIt','tNVgy','TJYtW','GzPCT','vKSaB','git\x20bran','length','fIIzD','ch\x20--sho','--verify','parse\x20--','DvnIX','quiet\x20re','mUPnx','nch.\x20Set','--stat','WOJff','OzICs','diff','BTWiE','\x20main/ma','toString','ylwFK','fs/heads','=format:','inherit','%x1f%b%x','construc','JOPsB','uOaCF','HEAD','origin','abbrev-r','refs/rem','HrNHn','pYLvx','fKSHt','--cached','tfYbs','3028158PBOXdt','log','main','KhRcK','t\x20staged','eRSAI','mifaq','egHRn','git\x20remo','--numsta','auzEM','1486908MeIAJI','ef\x20--sym','%H%x1f%s','efhXQ','IUbKr','ThrDN','o\x20inspec','agyGI','\x20a\x20remot','hGiyn','IqPEB','slice','Mufls','24KCQsNT','GUxvW','Not\x20a\x20gi','it\x20commi','ByxcR','qcKOY','e\x20HEAD\x20o','tatus','am}','parseInt','ster.','Qoqhg','refs/hea','master','EzKRd','search','2583180LnMcYa','rBqcg','PMnIG','bQqLs','otes/','tor','UFnWo','base\x20bra','255702VvSpSs','pTZpC','5BXCjLF','t\x20read\x20g','map','trim','+)+$','--date=s','t\x20comput','cfGyx','aYwiY','files\x20wi','RyQzX','rev-pars','\x20changes','status','subject','1f%ad%x1','ntBGJ','ACSkO','bCEGs','hNFjY','indexOf','includes','..HEAD','git','split','erify\x20--','f%an%x1e','NvaiA','YDTii','r\x20create','Could\x20no','brwEC','hash','LeCFT','git\x20show','\x20branch.','tMNRz','qpVkT','--revers','--pretty','srJpr','YUJfi','hort','jRogY','FxiGY','develop','--name-s','DPehy','VZpyJ','WkcBG','apply','ANVFI','601349BqChYu','Failed\x20t','EjTyi','tIUoj','VUIWE','KqMHq','pipe','tory.','3zvLvci','QXfgK','w-curren','t\x20histor','zkVEB','IdVjc','symbolic','424238OlEcNp','filter'];_0x2997=function(){return _0x325804;};return _0x2997();}const _0x4ddb6e=(function(){const _0x386c87=_0x4059,_0x567060={'zkVEB':_0x386c87(0x1a6)+_0x386c87(0x189)+_0x386c87(0x230)+_0x386c87(0x1c7)+'y.','GJvXo':function(_0xbd0c35,_0x3c9ec6){return _0xbd0c35!==_0x3c9ec6;},'QEANo':_0x386c87(0x1c9),'tfYbs':_0x386c87(0x1d6)};let _0x3337a7=!![];return function(_0x280216,_0xa8c47){const _0x1e724f=_0x386c87,_0x373e93={'YwdYs':function(_0x1fb40d,_0x72a61c){const _0xb04745=_0x4059;return _0x567060[_0xb04745(0x1e3)](_0x1fb40d,_0x72a61c);},'POgWH':_0x567060['QEANo']};if(_0x1e724f(0x201)===_0x567060[_0x1e724f(0x214)])_0x4b6ab0(_0x567060[_0x1e724f(0x1c8)]);else{const _0x2fd525=_0x3337a7?function(){const _0x23eadb=_0x1e724f;if(_0xa8c47){if(_0x373e93['YwdYs'](_0x373e93[_0x23eadb(0x1e7)],_0x373e93[_0x23eadb(0x1e7)]))return null;else{const _0x41d7d3=_0xa8c47[_0x23eadb(0x1ba)](_0x280216,arguments);return _0xa8c47=null,_0x41d7d3;}}}:function(){};return _0x3337a7=![],_0x2fd525;}};}()),_0x2dc4f2=_0x4ddb6e(this,function(){const _0x3b7e34=_0x4059,_0x1fde2e={'auzEM':_0x3b7e34(0x1d3)+_0x3b7e34(0x18c)};return _0x2dc4f2['toString']()[_0x3b7e34(0x23c)](_0x1fde2e[_0x3b7e34(0x21f)])[_0x3b7e34(0x203)]()[_0x3b7e34(0x209)+_0x3b7e34(0x183)](_0x2dc4f2)[_0x3b7e34(0x23c)](_0x1fde2e[_0x3b7e34(0x21f)]);});_0x2dc4f2();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x5c1df0){const _0x53b250=_0x4059,_0x3b9d76={'mifaq':function(_0x119f06,_0xea70a2,_0x3c43b2,_0x53247a){return _0x119f06(_0xea70a2,_0x3c43b2,_0x53247a);},'aGecg':'pipe'};return _0x3b9d76[_0x53b250(0x21b)](execFileSync,_0x53b250(0x19f),_0x5c1df0,{'stdio':_0x3b9d76[_0x53b250(0x1e0)]})[_0x53b250(0x203)]();}export function getGitStatus(){const _0x593878=_0x4059,_0x129f9d={'KqMHq':function(_0x96707d,_0x49f0c6){return _0x96707d(_0x49f0c6);},'LeCFT':_0x593878(0x200),'tQWbr':_0x593878(0x1fd),'yCwZh':function(_0x57b24c,_0x5836d9){return _0x57b24c(_0x5836d9);}};try{const _0x1a07fd=_0x129f9d[_0x593878(0x1c1)](runGit,[_0x593878(0x195)]),_0x520feb=_0x129f9d[_0x593878(0x1c1)](runGit,[_0x129f9d[_0x593878(0x1a9)],_0x129f9d[_0x593878(0x1d8)]]);return _0x1a07fd+'\x0a'+_0x520feb;}catch{_0x129f9d['yCwZh'](failAndExit,_0x593878(0x22f)+_0x593878(0x1e8)+_0x593878(0x1c3));}}export function branchExists(_0x4d0b25){const _0x55652c=_0x4059,_0x558330={'QXfgK':function(_0x5c46c3,_0x5cc110,_0x101026){return _0x5c46c3(_0x5cc110,_0x101026);},'IzIYG':_0x55652c(0x1c2)};try{return _0x558330[_0x55652c(0x1c5)](execSync,_0x55652c(0x1aa)+_0x55652c(0x1cf)+_0x55652c(0x1a1)+_0x55652c(0x1fa)+_0x55652c(0x205)+'/'+_0x4d0b25,{'stdio':_0x558330['IzIYG']}),!![];}catch{return![];}}export function getCurrentBranch(){const _0x5bce6c=_0x4059,_0x18bc7c={'bNMmQ':function(_0x24dcf3,_0x23a34b,_0x4f3d82){return _0x24dcf3(_0x23a34b,_0x4f3d82);},'eRSAI':_0x5bce6c(0x1c2),'UFnWo':function(_0x5a93dc,_0x59f76b){return _0x5a93dc(_0x59f76b);},'wxAMe':_0x5bce6c(0x1a6)+_0x5bce6c(0x1e1)+'\x20current'+_0x5bce6c(0x1ab)};try{const _0x5b8cd2=_0x18bc7c['bNMmQ'](execSync,_0x5bce6c(0x1f3)+_0x5bce6c(0x1f6)+_0x5bce6c(0x1c6)+'t',{'stdio':_0x18bc7c[_0x5bce6c(0x21a)]})[_0x5bce6c(0x203)]()['trim']();return!_0x5b8cd2&&_0x18bc7c[_0x5bce6c(0x184)](failAndExit,_0x18bc7c['wxAMe']),_0x5b8cd2;}catch{failAndExit(_0x18bc7c['wxAMe']);}}export function getUpstreamInfo(){const _0x524b4f=_0x4059,_0x460a07={'GzPCT':function(_0x70ad10,_0x4ad754,_0x3e9571){return _0x70ad10(_0x4ad754,_0x3e9571);},'LEdxW':_0x524b4f(0x1dc)+_0x524b4f(0x1f8)+_0x524b4f(0x20e)+_0x524b4f(0x221)+_0x524b4f(0x1d5)+_0x524b4f(0x1ce)+'@{upstre'+_0x524b4f(0x235),'MEtaS':function(_0x1fffc5,_0x5e1473){return _0x1fffc5<=_0x5e1473;},'GRRMU':function(_0x388184,_0x1f48db){return _0x388184!==_0x1f48db;},'AJkZR':_0x524b4f(0x17f),'bCEGs':_0x524b4f(0x218),'DPehy':function(_0x25286a,_0x41338c){return _0x25286a+_0x41338c;}};try{const _0x3b2b27=_0x460a07[_0x524b4f(0x1f1)](execSync,_0x460a07['LEdxW'],{'stdio':_0x524b4f(0x1c2)})[_0x524b4f(0x203)]()[_0x524b4f(0x18b)](),_0x3b7519=_0x3b2b27[_0x524b4f(0x19c)]('/');if(_0x460a07['MEtaS'](_0x3b7519,0x0))return _0x460a07['GRRMU'](_0x460a07['AJkZR'],_0x460a07[_0x524b4f(0x19a)])?null:null;return{'fullName':_0x3b2b27,'remote':_0x3b2b27['slice'](0x0,_0x3b7519),'branch':_0x3b2b27[_0x524b4f(0x22b)](_0x460a07[_0x524b4f(0x1b7)](_0x3b7519,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x274607=_0x4059,_0x1ee3f1={'yknLB':function(_0x4b16f2,_0x1884f5,_0x5d90bc){return _0x4b16f2(_0x1884f5,_0x5d90bc);},'wtzIx':_0x274607(0x21d)+'te','agyGI':_0x274607(0x20d),'tIUoj':function(_0x86a2a0,_0x397baf){return _0x86a2a0===_0x397baf;},'MdaiB':_0x274607(0x1ad),'WCdgx':_0x274607(0x1d0),'uOaCF':_0x274607(0x1c2)};try{if(_0x1ee3f1['tIUoj'](_0x1ee3f1['MdaiB'],_0x1ee3f1[_0x274607(0x1dd)])){const _0x456807=_0x1ee3f1[_0x274607(0x1e5)](_0x3af5d2,_0x1ee3f1['wtzIx'],{'stdio':'pipe'})['toString']()[_0x274607(0x1a0)](/\r?\n/)[_0x274607(0x18a)](_0x21d0bd=>_0x21d0bd['trim']())['filter'](_0x34327d);if(_0x456807[_0x274607(0x1f4)]===0x0)return null;if(_0x456807[_0x274607(0x19d)](_0x1ee3f1[_0x274607(0x227)]))return _0x1ee3f1['agyGI'];return _0x456807[0x0];}else{const _0x21c94e=_0x1ee3f1[_0x274607(0x1e5)](execSync,'git\x20remo'+'te',{'stdio':_0x1ee3f1[_0x274607(0x20b)]})[_0x274607(0x203)]()[_0x274607(0x1a0)](/\r?\n/)['map'](_0x4d0087=>_0x4d0087[_0x274607(0x18b)]())['filter'](Boolean);if(_0x1ee3f1[_0x274607(0x1bf)](_0x21c94e['length'],0x0))return null;if(_0x21c94e[_0x274607(0x19d)](_0x1ee3f1[_0x274607(0x227)]))return _0x274607(0x20d);return _0x21c94e[0x0];}}catch{return null;}}function _0x4059(_0x236650,_0x52e78a){_0x236650=_0x236650-0x17e;const _0x52dc6d=_0x2997();let _0x2dc4f2=_0x52dc6d[_0x236650];return _0x2dc4f2;}function resolveBaseRef(){const _0x3f69fe=_0x4059,_0x56e8a4={'xmdrX':_0x3f69fe(0x1d3)+_0x3f69fe(0x18c),'djEIR':function(_0x295b98){return _0x295b98();},'vKSaB':function(_0xeabc3f,_0xd0ee6){return _0xeabc3f!==_0xd0ee6;},'VUIWE':_0x3f69fe(0x1f5),'YDTii':function(_0x5ae379,_0x366afb,_0x8d1e7a,_0x216426){return _0x5ae379(_0x366afb,_0x8d1e7a,_0x216426);},'ojway':'--short','VZpyJ':'pipe','EzKRd':_0x3f69fe(0x217),'OzICs':_0x3f69fe(0x23a),'pYLvx':_0x3f69fe(0x19f),'tNVgy':'rev-pars'+'e','mUPnx':_0x3f69fe(0x1f7),'WOJff':function(_0x4b003d,_0x19e8e4){return _0x4b003d(_0x19e8e4);}},_0x5405fd=_0x56e8a4['djEIR'](getDefaultRemote);if(_0x5405fd){if(_0x56e8a4[_0x3f69fe(0x1f2)](_0x3f69fe(0x1bb),_0x56e8a4[_0x3f69fe(0x1c0)])){try{const _0x592fdd=_0x56e8a4[_0x3f69fe(0x1a4)](execFileSync,'git',[_0x3f69fe(0x1ca)+'-ref',_0x56e8a4['ojway'],'refs/rem'+_0x3f69fe(0x182)+_0x5405fd+'/HEAD'],{'stdio':_0x56e8a4['VZpyJ']})[_0x3f69fe(0x203)]()[_0x3f69fe(0x18b)]();if(_0x592fdd)return _0x592fdd;}catch{}for(const _0x51b377 of[_0x56e8a4[_0x3f69fe(0x23b)],_0x56e8a4[_0x3f69fe(0x1ff)],_0x3f69fe(0x1b5)]){try{return _0x56e8a4[_0x3f69fe(0x1a4)](execFileSync,_0x56e8a4[_0x3f69fe(0x211)],[_0x56e8a4[_0x3f69fe(0x1ef)],_0x56e8a4[_0x3f69fe(0x1fb)],_0x3f69fe(0x20f)+_0x3f69fe(0x182)+_0x5405fd+'/'+_0x51b377],{'stdio':_0x56e8a4[_0x3f69fe(0x1b8)]}),_0x5405fd+'/'+_0x51b377;}catch{}}}else return _0x4968a7[_0x3f69fe(0x203)]()['search'](EiHDCZ[_0x3f69fe(0x1e2)])[_0x3f69fe(0x203)]()[_0x3f69fe(0x209)+_0x3f69fe(0x183)](_0x5a1b24)[_0x3f69fe(0x23c)](EiHDCZ[_0x3f69fe(0x1e2)]);}for(const _0x3ea3b6 of[_0x56e8a4[_0x3f69fe(0x23b)],_0x3f69fe(0x23a),'develop']){try{return _0x56e8a4[_0x3f69fe(0x1a4)](execFileSync,_0x56e8a4[_0x3f69fe(0x211)],[_0x3f69fe(0x193)+'e',_0x3f69fe(0x1f7),_0x3f69fe(0x239)+_0x3f69fe(0x1ed)+_0x3ea3b6],{'stdio':_0x3f69fe(0x1c2)}),_0x3ea3b6;}catch{}}_0x56e8a4[_0x3f69fe(0x1fe)](failAndExit,_0x3f69fe(0x1a6)+'t\x20infer\x20'+_0x3f69fe(0x185)+_0x3f69fe(0x1fc)+_0x3f69fe(0x228)+_0x3f69fe(0x233)+_0x3f69fe(0x1a5)+_0x3f69fe(0x202)+_0x3f69fe(0x237));}function getMergeBase(_0x5a16e){const _0x424f14=_0x4059,_0x397905={'bDkuF':_0x424f14(0x1df),'EjTyi':function(_0x120a5b,_0x444e82,_0x323169,_0x3e5432){return _0x120a5b(_0x444e82,_0x323169,_0x3e5432);},'NvaiA':_0x424f14(0x19f),'DvnIX':_0x424f14(0x1de)+'se','ntBGJ':_0x424f14(0x20c),'XVMAm':_0x424f14(0x1c2),'IqPEB':function(_0x5bb53b,_0xcf94){return _0x5bb53b(_0xcf94);}};try{return'DAIiY'===_0x397905['bDkuF']?null:_0x397905[_0x424f14(0x1be)](execFileSync,_0x397905[_0x424f14(0x1a3)],[_0x397905[_0x424f14(0x1f9)],_0x5a16e,_0x397905[_0x424f14(0x198)]],{'stdio':_0x397905[_0x424f14(0x1e6)]})[_0x424f14(0x203)]()['trim']();}catch{_0x397905[_0x424f14(0x22a)](failAndExit,_0x424f14(0x1a6)+_0x424f14(0x18e)+_0x424f14(0x1d7)+_0x424f14(0x1d9)+'h\x20'+_0x5a16e+'.');}}function parseCommits(_0x1b5897){const _0x58d8b3=_0x4059;return _0x1b5897[_0x58d8b3(0x1a0)]('\x1e')[_0x58d8b3(0x18a)](_0x9e3f1=>_0x9e3f1[_0x58d8b3(0x18b)]())['filter'](Boolean)[_0x58d8b3(0x18a)](_0x3daec9=>{const _0x27cd2c=_0x58d8b3,[_0x3f43d3='',_0x5c59bf='',_0x169422='']=_0x3daec9['split']('\x1f');return{'hash':_0x3f43d3[_0x27cd2c(0x18b)](),'subject':_0x5c59bf[_0x27cd2c(0x18b)](),'body':_0x169422['trim']()};})['filter'](_0x43fbbf=>Boolean(_0x43fbbf[_0x58d8b3(0x1a8)])&&Boolean(_0x43fbbf[_0x58d8b3(0x196)]));}export function getBranchContext(){const _0x32cd8c=_0x4059,_0xa43238={'nsFyY':function(_0x3dcb0b){return _0x3dcb0b();},'VqKuX':function(_0x20c81,_0x1b492c,_0x4860a0,_0x5a16ab){return _0x20c81(_0x1b492c,_0x4860a0,_0x5a16ab);},'qcKOY':_0x32cd8c(0x19f),'HrNHn':'log','YUJfi':_0x32cd8c(0x1ae)+'e','ByxcR':_0x32cd8c(0x1c2),'Bmqyz':function(_0x3ee9a0,_0xb26bd1,_0x24d620,_0x26f1b5){return _0x3ee9a0(_0xb26bd1,_0x24d620,_0x26f1b5);},'Qoqhg':'diff','SvcHh':function(_0x4a7f11,_0x303e87,_0x12df78,_0x3e40da){return _0x4a7f11(_0x303e87,_0x12df78,_0x3e40da);},'WkcBG':_0x32cd8c(0x1b6)+_0x32cd8c(0x234)},_0x499861=_0xa43238['nsFyY'](resolveBaseRef),_0x5f1fb7=getMergeBase(_0x499861),_0x1dcf74=_0xa43238['VqKuX'](execFileSync,_0xa43238['qcKOY'],[_0xa43238[_0x32cd8c(0x210)],_0xa43238[_0x32cd8c(0x1b1)],_0x32cd8c(0x1af)+_0x32cd8c(0x206)+_0x32cd8c(0x222)+'%x1f%b%x'+'1e',_0x5f1fb7+_0x32cd8c(0x19e)],{'stdio':_0xa43238[_0x32cd8c(0x231)]})[_0x32cd8c(0x203)]()[_0x32cd8c(0x18b)](),_0x3fea15=_0xa43238[_0x32cd8c(0x1da)](execFileSync,_0xa43238[_0x32cd8c(0x232)],[_0xa43238[_0x32cd8c(0x238)],_0x32cd8c(0x1fd),_0x5f1fb7+_0x32cd8c(0x19e)],{'stdio':_0xa43238['ByxcR']})[_0x32cd8c(0x203)]()[_0x32cd8c(0x18b)](),_0x344739=_0xa43238[_0x32cd8c(0x1d2)](execFileSync,_0xa43238[_0x32cd8c(0x232)],[_0xa43238[_0x32cd8c(0x238)],_0xa43238[_0x32cd8c(0x1b9)],_0x5f1fb7+_0x32cd8c(0x19e)],{'stdio':_0xa43238[_0x32cd8c(0x231)]})['toString']()[_0x32cd8c(0x18b)]();return{'baseRef':_0x499861,'mergeBase':_0x5f1fb7,'commits':parseCommits(_0x1dcf74),'diffStat':_0x3fea15,'changedFiles':_0x344739};}export function getCommitHistory(_0x4fc64d=0x78){const _0x4fb8fd=_0x4059,_0x49c251={'RyQzX':function(_0x228757,_0x1cc784,_0x365c27,_0x319de1){return _0x228757(_0x1cc784,_0x365c27,_0x319de1);},'ETnGz':_0x4fb8fd(0x19f),'ThrDN':_0x4fb8fd(0x216),'BZjvW':_0x4fb8fd(0x1ae)+'e','frtqB':_0x4fb8fd(0x1af)+_0x4fb8fd(0x206)+_0x4fb8fd(0x222)+_0x4fb8fd(0x208)+_0x4fb8fd(0x197)+_0x4fb8fd(0x1a2),'JOPsB':_0x4fb8fd(0x18d)+_0x4fb8fd(0x1b2),'efhXQ':'pipe','opwUx':function(_0x2e0a4d,_0x46153e){return _0x2e0a4d(_0x46153e);},'IUbKr':_0x4fb8fd(0x1a6)+_0x4fb8fd(0x189)+_0x4fb8fd(0x230)+_0x4fb8fd(0x1c7)+'y.'};try{const _0xe0f8b7=_0x49c251[_0x4fb8fd(0x192)](execFileSync,_0x49c251[_0x4fb8fd(0x1d1)],[_0x49c251[_0x4fb8fd(0x225)],'-'+_0x4fc64d,_0x49c251['BZjvW'],_0x49c251[_0x4fb8fd(0x1ec)],_0x49c251[_0x4fb8fd(0x20a)]],{'stdio':_0x49c251[_0x4fb8fd(0x223)]})[_0x4fb8fd(0x203)]()[_0x4fb8fd(0x18b)]();return _0xe0f8b7[_0x4fb8fd(0x1a0)]('\x1e')[_0x4fb8fd(0x18a)](_0x58a99c=>_0x58a99c[_0x4fb8fd(0x18b)]())['filter'](Boolean)[_0x4fb8fd(0x18a)](_0xcf43d=>{const _0x4fd774=_0x4fb8fd,[_0x3b0220='',_0x2e980f='',_0x420afb='',_0x591e58='',_0x2f3619='']=_0xcf43d[_0x4fd774(0x1a0)]('\x1f');return{'hash':_0x3b0220[_0x4fd774(0x18b)](),'subject':_0x2e980f['trim'](),'body':_0x420afb['trim'](),'date':_0x591e58[_0x4fd774(0x18b)](),'author':_0x2f3619[_0x4fd774(0x18b)]()};})[_0x4fb8fd(0x1cc)](_0x29e310=>Boolean(_0x29e310[_0x4fb8fd(0x1a8)])&&Boolean(_0x29e310[_0x4fb8fd(0x196)]));}catch{_0x49c251['opwUx'](failAndExit,_0x49c251[_0x4fb8fd(0x224)]);}}function parseNameStatusLine(_0x4d8a28){const _0x552c2d=_0x4059,_0x33462c={'srJpr':_0x552c2d(0x19f),'PMnIG':'log','EAvXV':_0x552c2d(0x1ae)+'e','ylwFK':_0x552c2d(0x1af)+_0x552c2d(0x206)+'%H%x1f%s'+_0x552c2d(0x208)+_0x552c2d(0x197)+'f%an%x1e','UEQua':_0x552c2d(0x1c2),'aYwiY':function(_0x44cdc7,_0xb6fa1){return _0x44cdc7(_0xb6fa1);},'egHRn':_0x552c2d(0x1a6)+_0x552c2d(0x189)+_0x552c2d(0x230)+_0x552c2d(0x1c7)+'y.','tMNRz':function(_0x1ea1f3,_0x1a7033){return _0x1ea1f3<_0x1a7033;},'HtlPy':function(_0x199aee,_0x45235a){return _0x199aee-_0x45235a;},'FxiGY':function(_0x19c4d9,_0x55e160){return _0x19c4d9||_0x55e160;},'jRogY':function(_0x264e8e,_0x2bd768){return _0x264e8e!==_0x2bd768;},'ACSkO':_0x552c2d(0x229)},_0x58af8d=_0x4d8a28[_0x552c2d(0x18b)]();if(!_0x58af8d)return null;const _0x21454b=_0x58af8d[_0x552c2d(0x1a0)](/\s+/);if(_0x33462c[_0x552c2d(0x1ac)](_0x21454b['length'],0x2))return null;const _0x567c08=_0x21454b[0x0]['trim'](),_0x28c75c=_0x21454b[_0x33462c[_0x552c2d(0x1e9)](_0x21454b[_0x552c2d(0x1f4)],0x1)][_0x552c2d(0x18b)]();if(_0x33462c[_0x552c2d(0x1b4)](!_0x567c08,!_0x28c75c)){if(_0x33462c[_0x552c2d(0x1b3)](_0x552c2d(0x181),_0x33462c[_0x552c2d(0x199)]))return null;else try{const _0x9fb1a7=_0x2b9953(bQwUIH[_0x552c2d(0x1b0)],[bQwUIH[_0x552c2d(0x180)],'-'+_0x4da390,bQwUIH['EAvXV'],bQwUIH[_0x552c2d(0x204)],_0x552c2d(0x18d)+_0x552c2d(0x1b2)],{'stdio':bQwUIH['UEQua']})[_0x552c2d(0x203)]()[_0x552c2d(0x18b)]();return _0x9fb1a7[_0x552c2d(0x1a0)]('\x1e')[_0x552c2d(0x18a)](_0x22e2ba=>_0x22e2ba[_0x552c2d(0x18b)]())[_0x552c2d(0x1cc)](_0x457c74)[_0x552c2d(0x18a)](_0x585ac3=>{const _0x2031ff=_0x552c2d,[_0xaf26b4='',_0x21448c='',_0x1c51b7='',_0x480cfa='',_0x3d5661='']=_0x585ac3[_0x2031ff(0x1a0)]('\x1f');return{'hash':_0xaf26b4['trim'](),'subject':_0x21448c[_0x2031ff(0x18b)](),'body':_0x1c51b7['trim'](),'date':_0x480cfa[_0x2031ff(0x18b)](),'author':_0x3d5661[_0x2031ff(0x18b)]()};})[_0x552c2d(0x1cc)](_0x3fc9b1=>_0xae0245(_0x3fc9b1[_0x552c2d(0x1a8)])&&_0x44a6eb(_0x3fc9b1[_0x552c2d(0x196)]));}catch{bQwUIH[_0x552c2d(0x190)](_0x5c393c,bQwUIH[_0x552c2d(0x21c)]);}}return{'status':_0x567c08,'path':_0x28c75c};}export function stageAll(){const _0x58ba0e=_0x4059,_0x5cba38={'PpAkP':'git','tlQYE':_0x58ba0e(0x1e4),'fKSHt':_0x58ba0e(0x207),'brwEC':_0x58ba0e(0x1bd)+_0x58ba0e(0x1d4)+_0x58ba0e(0x191)+_0x58ba0e(0x1ea)+'dd\x20.'};try{execFileSync(_0x5cba38['PpAkP'],[_0x5cba38[_0x58ba0e(0x1cd)],'.'],{'stdio':_0x5cba38[_0x58ba0e(0x212)]});}catch{failAndExit(_0x5cba38[_0x58ba0e(0x1a7)]);}}export function getStagedContext(_0x3c71e2=0x2710){const _0x4a0834=_0x4059,_0x5f37e0={'hNFjY':_0x4a0834(0x200),'pTZpC':function(_0x37b82c,_0x1d8014){return _0x37b82c(_0x1d8014);},'Nuchd':_0x4a0834(0x1fd),'GUxvW':_0x4a0834(0x213),'cfGyx':function(_0x336fd6,_0x224831){return _0x336fd6(_0x224831);},'TJYtW':_0x4a0834(0x21e)+'t','Mufls':_0x4a0834(0x1bd)+_0x4a0834(0x226)+_0x4a0834(0x219)+_0x4a0834(0x194)+'.'};try{const _0x2f88f1=runGit([_0x5f37e0[_0x4a0834(0x19b)],_0x4a0834(0x213),_0x4a0834(0x1b6)+_0x4a0834(0x234)]),_0x4942c7=_0x5f37e0[_0x4a0834(0x187)](runGit,[_0x5f37e0[_0x4a0834(0x19b)],_0x4a0834(0x213),_0x5f37e0['Nuchd']])[_0x4a0834(0x18b)](),_0x1d20bd=runGit([_0x5f37e0['hNFjY'],_0x5f37e0[_0x4a0834(0x22e)]]),_0x349484=_0x5f37e0[_0x4a0834(0x18f)](runGit,[_0x5f37e0[_0x4a0834(0x19b)],_0x5f37e0[_0x4a0834(0x22e)],_0x5f37e0[_0x4a0834(0x1f0)]]),_0x1c4855=_0x2f88f1['split'](/\r?\n/)['map'](_0x3f612c=>parseNameStatusLine(_0x3f612c))['filter'](_0x2a8396=>Boolean(_0x2a8396));let _0x4db2da=0x0,_0x39ec84=0x0;for(const _0x404bff of _0x349484[_0x4a0834(0x1a0)](/\r?\n/)){const _0x5b9ba7=_0x404bff['trim']();if(!_0x5b9ba7)continue;const [_0x345e88='0',_0x5a9e3f='0']=_0x5b9ba7['split'](/\s+/),_0x3ee4f9=Number[_0x4a0834(0x236)](_0x345e88,0xa),_0xd2837=Number[_0x4a0834(0x236)](_0x5a9e3f,0xa);_0x4db2da+=Number['isNaN'](_0x3ee4f9)?0x0:_0x3ee4f9,_0x39ec84+=Number[_0x4a0834(0x1eb)](_0xd2837)?0x0:_0xd2837;}const _0x267641=_0x1d20bd[_0x4a0834(0x1f4)]>_0x3c71e2,_0x5e13b2=_0x267641?_0x1d20bd[_0x4a0834(0x22b)](0x0,_0x3c71e2):_0x1d20bd;return{'files':_0x1c4855,'diffStat':_0x4942c7,'patch':_0x5e13b2[_0x4a0834(0x18b)](),'metrics':{'fileCount':_0x1c4855[_0x4a0834(0x1f4)],'insertions':_0x4db2da,'deletions':_0x39ec84,'patchChars':_0x1d20bd[_0x4a0834(0x1f4)],'truncated':_0x267641}};}catch{_0x5f37e0['pTZpC'](failAndExit,_0x5f37e0[_0x4a0834(0x22c)]);}}
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,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x276ce1=_0x2ccd;(function(_0x4a6df2,_0x5aa67c){const _0x218313=_0x2ccd,_0x3c0084=_0x4a6df2();while(!![]){try{const _0x1e8f6f=parseInt(_0x218313(0xf9))/0x1+-parseInt(_0x218313(0xd4))/0x2+-parseInt(_0x218313(0x111))/0x3*(parseInt(_0x218313(0xcf))/0x4)+-parseInt(_0x218313(0xed))/0x5+parseInt(_0x218313(0xba))/0x6+-parseInt(_0x218313(0x113))/0x7+-parseInt(_0x218313(0xdd))/0x8*(-parseInt(_0x218313(0xd8))/0x9);if(_0x1e8f6f===_0x5aa67c)break;else _0x3c0084['push'](_0x3c0084['shift']());}catch(_0x2af622){_0x3c0084['push'](_0x3c0084['shift']());}}}(_0x3ef3,0x8584e));const _0x4e8efd=(function(){let _0x57b46f=!![];return function(_0x5aeffe,_0x4adc41){const _0x568e47=_0x57b46f?function(){const _0x14241f=_0x2ccd;if(_0x4adc41){const _0x3ca612=_0x4adc41[_0x14241f(0xee)](_0x5aeffe,arguments);return _0x4adc41=null,_0x3ca612;}}:function(){};return _0x57b46f=![],_0x568e47;};}()),_0x16fb9a=_0x4e8efd(this,function(){const _0x28eb3b=_0x2ccd,_0x30298a={'pIzFL':'(((.+)+)'+_0x28eb3b(0x10d)};return _0x16fb9a[_0x28eb3b(0xc6)]()['search'](_0x30298a[_0x28eb3b(0xd9)])[_0x28eb3b(0xc6)]()['construc'+_0x28eb3b(0x117)](_0x16fb9a)[_0x28eb3b(0x12b)](_0x30298a['pIzFL']);});_0x16fb9a();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';function _0x2ccd(_0x4da9d7,_0x427f84){_0x4da9d7=_0x4da9d7-0xb0;const _0x51acc1=_0x3ef3();let _0x16fb9a=_0x51acc1[_0x4da9d7];return _0x16fb9a;}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';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x276ce1(0xeb)](_0x276ce1(0xf1))[_0x276ce1(0xd0)+'ion'](style(_0x276ce1(0xc3)+_0x276ce1(0xb0)+_0x276ce1(0xfd)+_0x276ce1(0x105)+_0x276ce1(0xce)+_0x276ce1(0xf2),ui[_0x276ce1(0xd6)]))[_0x276ce1(0x103)](getCliVersion(),'-v,\x20--ve'+'rsion','output\x20t'+_0x276ce1(0xc9)+_0x276ce1(0xea)+'r'),program[_0x276ce1(0xd3)+_0x276ce1(0xdc)](_0x276ce1(0xe4),_0x276ce1(0x12a)+_0x276ce1(0x11f)+_0x276ce1(0xc5)+'it\x20commi'+_0x276ce1(0xfa)+_0x276ce1(0x130)+_0x276ce1(0x10a)+_0x276ce1(0xe7)+_0x276ce1(0xc2)+_0x276ce1(0xd7)+_0x276ce1(0xcd)+_0x276ce1(0x106)+_0x276ce1(0x11b)+_0x276ce1(0xb1)+_0x276ce1(0xd1)+_0x276ce1(0x115)+_0x276ce1(0x130)+_0x276ce1(0x11e)+_0x276ce1(0x101)+_0x276ce1(0xff)+_0x276ce1(0x121)+_0x276ce1(0xc5)+'it\x20docto'+'r\x0a'),program['command'](_0x276ce1(0xb2))[_0x276ce1(0xd0)+_0x276ce1(0xbf)](_0x276ce1(0x12c)+'e/summar'+_0x276ce1(0xc1)+_0x276ce1(0x120)+_0x276ce1(0x10b)+'\x20for\x20com'+_0x276ce1(0xc8))[_0x276ce1(0x127)](_0x276ce1(0xf5),_0x276ce1(0xb5)+_0x276ce1(0xbb)+_0x276ce1(0xd2)+_0x276ce1(0xbc)+_0x276ce1(0xcb))['option']('--check',_0x276ce1(0x123)+'/test\x20(i'+_0x276ce1(0xdb)+_0x276ce1(0x100)+_0x276ce1(0x126)+_0x276ce1(0x102)+'t')[_0x276ce1(0xde)](_0x30559e=>generateCommit(_0x30559e)),program['command'](_0x276ce1(0x11c))[_0x276ce1(0xd0)+_0x276ce1(0xbf)](_0x276ce1(0x10e)+'anges\x20an'+_0x276ce1(0x107)+_0x276ce1(0xd5)+_0x276ce1(0xf4)+'flow')['option'](_0x276ce1(0xf5),_0x276ce1(0xb5)+_0x276ce1(0xbb)+_0x276ce1(0xd2)+_0x276ce1(0xe6)+'d)')[_0x276ce1(0x127)]('--check','Run\x20lint'+_0x276ce1(0xb9)+'f\x20presen'+_0x276ce1(0x100)+_0x276ce1(0x126)+_0x276ce1(0x102)+'t')[_0x276ce1(0xde)](_0x5c6a69=>addAndCommit(_0x5c6a69)),program[_0x276ce1(0x12d)](_0x276ce1(0xf7))['descript'+_0x276ce1(0xbf)](_0x276ce1(0xc3)+_0x276ce1(0xfe)+_0x276ce1(0xf8)+'d\x20option'+'ally\x20cre'+'ate\x20the\x20'+_0x276ce1(0xf7))[_0x276ce1(0x129)]('<descrip'+'tion...>','Feature\x20'+_0x276ce1(0xd0)+_0x276ce1(0xbf))['action'](async _0x2ee429=>{const _0x14f285=_0x276ce1,_0x16c8b9={'OtOMd':function(_0x24d9d2,_0x495550){return _0x24d9d2(_0x495550);},'mtVYe':_0x14f285(0xb4)+'a\x20featur'+_0x14f285(0x110)+_0x14f285(0xf6)},_0x58eb73=_0x2ee429[_0x14f285(0x122)]('\x20')[_0x14f285(0x124)]();!_0x58eb73&&_0x16c8b9['OtOMd'](failAndExit,_0x16c8b9[_0x14f285(0xc7)]),await suggestBranch(_0x58eb73);}),program[_0x276ce1(0x12d)]('pr')['descript'+_0x276ce1(0xbf)]('Generate'+_0x276ce1(0x11d)+_0x276ce1(0xe2)+_0x276ce1(0xfb)+'n\x20from\x20b'+_0x276ce1(0x11a)+_0x276ce1(0x118))[_0x276ce1(0xde)](generatePullRequestText),program[_0x276ce1(0x12d)](_0x276ce1(0x116))[_0x276ce1(0xd0)+_0x276ce1(0xbf)]('Summariz'+_0x276ce1(0xb6)+_0x276ce1(0x10f)+_0x276ce1(0xe1)+_0x276ce1(0x12f)+'ranch')[_0x276ce1(0xde)](summarizeBranchLog),program[_0x276ce1(0x12d)](_0x276ce1(0xe0)+'g')[_0x276ce1(0xd0)+_0x276ce1(0xbf)](_0x276ce1(0xfc)+_0x276ce1(0xb7)+'elog\x20fil'+_0x276ce1(0xbe)+_0x276ce1(0x104)+_0x276ce1(0xda))[_0x276ce1(0x129)](_0x276ce1(0xbd),_0x276ce1(0xe3)+_0x276ce1(0xc0)+_0x276ce1(0x109)+_0x276ce1(0x10c)+'\x20branch\x20'+'name)')['option'](_0x276ce1(0xec)+'mmits\x20<n'+_0x276ce1(0xb8),_0x276ce1(0x112)+_0x276ce1(0xf3)+'\x20commits'+'\x20to\x20incl'+_0x276ce1(0x114)+'ault:\x2020'+')')[_0x276ce1(0xde)]((_0x3af6b3,_0x52f697)=>generateChangelog(_0x3af6b3,_0x52f697)),program['command']('init')[_0x276ce1(0xd0)+_0x276ce1(0xbf)](_0x276ce1(0xb3)+_0x276ce1(0xca)+'er,\x20mode'+_0x276ce1(0x125)+_0x276ce1(0xe5)+_0x276ce1(0x128))[_0x276ce1(0xde)](initConfig),program[_0x276ce1(0x12d)](_0x276ce1(0xe8))['descript'+_0x276ce1(0xbf)](_0x276ce1(0xf0)+'\x20provide'+'r,\x20model'+_0x276ce1(0xdf)+'y\x20config'+_0x276ce1(0xe9))[_0x276ce1(0xde)](doctorConfig);function _0x3ef3(){const _0x76b5c1=['Run\x20stag','command','MZkyb','urrent\x20b','\x20\x20gemit\x20','commit\x20m','ogin\x20scr','commit','Configur','Provide\x20','Stage\x20al','e\x20what\x20w','\x20a\x20chang','umber>','/test\x20(i','4762296AvFMhq','l\x20change','(git\x20add','[name]','e\x20from\x20c','ion','e\x20name\x20(','ize/sugg','\x20gemit\x20a','Suggest\x20','XUPlo','it\x0a\x20\x20gem','toString','mtVYe','mits','he\x20versi','e\x20provid','\x20.)','parseAsy','\x0a\x20\x20gemit','ch\x20names','271064OWCqbL','descript','een\x22\x0a\x20\x20g','s\x20first\x20','addHelpT','1223892dWGONj','mmit\x20sug','cyan','dd\x20--all','9XbZncn','pIzFL','story','f\x20presen','ext','10173368ncuuML','action',',\x20and\x20ke','changelo','in\x20the\x20c','e\x20and\x20de','Base\x20fil','after','PI\x20key\x20(','(require','-check\x0a\x20','doctor','uration','on\x20numbe','name','-c,\x20--co','202100EcRhDE','apply','argv','Validate','gemit','\x20with\x20AI','f\x20recent','gestion\x20','--all','ption.','branch','\x20name\x20an','683164uLqGHc','t\x20--all\x0a','scriptio','Generate','essages\x20','a\x20branch','gelog\x0a\x20\x20','t)\x20befor','mit\x20chan','ng\x20commi','version','ommit\x20hi','and\x20bran','\x20branch\x20','d\x20run\x20co','IaSXT','default:','commit\x20-','irm\x20flow','\x20current','+)+$','Stage\x20ch','as\x20done\x20','e\x20descri','48NxmLmS','Number\x20o','3255245jJfFbS','ude\x20(def','emit\x20pr\x0a','log','tor','mmits','catch','ranch\x20co','\x22oauth\x20l','add','\x20PR\x20titl','log\x0a\x20\x20ge','s:\x0a\x20\x20gem','est/conf','gemit\x20in','join','Run\x20lint','trim','l,\x20and\x20A','e\x20creati','option','global)','argument','\x0aExample','search'];_0x3ef3=function(){return _0x76b5c1;};return _0x3ef3();}process[_0x276ce1(0xef)]['length']<=0x2?generateCommit()[_0x276ce1(0x119)](_0x3a9d42=>{const _0x4fe620=_0x276ce1,_0x382865={'MZkyb':function(_0x81a9a3,_0xc7c911){return _0x81a9a3(_0xc7c911);}},_0x2485a3=_0x3a9d42 instanceof Error?_0x3a9d42['message']:_0x382865[_0x4fe620(0x12e)](String,_0x3a9d42);_0x382865['MZkyb'](failAndExit,_0x2485a3);}):program[_0x276ce1(0xcc)+'nc'](process['argv'])[_0x276ce1(0x119)](_0x46d31f=>{const _0x2d1fbf=_0x276ce1,_0x341ea7={'XUPlo':function(_0x436ff6,_0xd959b0){return _0x436ff6 instanceof _0xd959b0;},'IaSXT':function(_0x4fe109,_0x1f9b78){return _0x4fe109(_0x1f9b78);}},_0x145d59=_0x341ea7[_0x2d1fbf(0xc4)](_0x46d31f,Error)?_0x46d31f['message']:_0x341ea7[_0x2d1fbf(0x108)](String,_0x46d31f);_0x341ea7[_0x2d1fbf(0x108)](failAndExit,_0x145d59);});
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);});
@@ -1 +1 @@
1
- (function(_0x4dc22a,_0x2260d7){const _0x5bcb52=_0x18fc,_0x2c2bf0=_0x4dc22a();while(!![]){try{const _0xb64260=parseInt(_0x5bcb52(0x192))/0x1+-parseInt(_0x5bcb52(0x1b9))/0x2+parseInt(_0x5bcb52(0x18c))/0x3*(parseInt(_0x5bcb52(0x1b1))/0x4)+parseInt(_0x5bcb52(0x18f))/0x5*(parseInt(_0x5bcb52(0x1ac))/0x6)+-parseInt(_0x5bcb52(0x1c5))/0x7+parseInt(_0x5bcb52(0x186))/0x8*(-parseInt(_0x5bcb52(0x1aa))/0x9)+parseInt(_0x5bcb52(0x189))/0xa*(parseInt(_0x5bcb52(0x1a9))/0xb);if(_0xb64260===_0x2260d7)break;else _0x2c2bf0['push'](_0x2c2bf0['shift']());}catch(_0x32615f){_0x2c2bf0['push'](_0x2c2bf0['shift']());}}}(_0x50cd,0xf2021));function _0x50cd(){const _0x103e8b=['QVliQ','iable.','RTlDw','SkiPq','NVTYe','EY\x20or\x20GE','Invalid\x20','UcsGe','zNhHe','6216553yPymnS','mUdFd','16lwfJOb','BTnTN','trim','4380aSxuKW','ANTHROPI','mpoAC','12VOjAgU','string','LE_API_K','5obKtth','text','join','1373464RArclx','LLM_PROV','pCqhr','IkKfo','rHlQz','WreSX','PvGjf','rHaPF','search','anthropi','ment\x20var','WykeX','(((.+)+)','enBPj','openai','fJney','C_API_KE','google','+)+$','gemini-2','.5-flash','zoJEr','PI_KEY','13992FXPnIw','7986123sVPdIu','\x20environ','10414632Ofpvou','apply','vEEJU','sdkBz','atRbk','396148eETYwi','isArray','toString','chPWC','construc','bCUtX','TbDnX','Set\x20GOOG','816964dHNwTK','Set\x20the\x20','IDER:\x20'];_0x50cd=function(){return _0x103e8b;};return _0x50cd();}const _0x10131e=(function(){const _0x37a02a=_0x18fc,_0x81adf2={'BTnTN':function(_0x39a40a,_0x492a6f){return _0x39a40a===_0x492a6f;},'UcsGe':_0x37a02a(0x18d),'bCUtX':function(_0x178251,_0x311689){return _0x178251(_0x311689);},'zNhHe':function(_0x19d07c,_0x54e6a7){return _0x19d07c||_0x54e6a7;},'oZAEe':function(_0x11c6a1,_0x4c6c80){return _0x11c6a1===_0x4c6c80;},'mUdFd':_0x37a02a(0x1af)};let _0xe79ea3=!![];return function(_0x41ddbc,_0x4609e2){const _0x5bf8a0=_0xe79ea3?function(){const _0x56bdef=_0x18fc,_0x2c9175={'mpoAC':function(_0x298fe0,_0x35c300){const _0x1ac7dc=_0x18fc;return _0x81adf2[_0x1ac7dc(0x187)](_0x298fe0,_0x35c300);},'gkXMw':_0x81adf2[_0x56bdef(0x1c3)],'mgqIH':function(_0x50fae2,_0x125b83){const _0x5499c5=_0x56bdef;return _0x81adf2[_0x5499c5(0x1b6)](_0x50fae2,_0x125b83);},'fJney':function(_0x211b14,_0x2f5570){const _0x4c6f0d=_0x56bdef;return _0x81adf2[_0x4c6f0d(0x1c4)](_0x211b14,_0x2f5570);}};if(_0x81adf2['oZAEe'](_0x81adf2[_0x56bdef(0x1c6)],_0x56bdef(0x1b4))){if(_0x2c9175[_0x56bdef(0x18b)](typeof _0x2ff0b3,_0x2c9175['gkXMw']))return _0x3d87a0[_0x56bdef(0x188)]();if(_0x4ef5aa[_0x56bdef(0x1b2)](_0x4bfb18))return _0x337b13['map'](_0x38d68a=>typeof _0x38d68a===_0x56bdef(0x18d)?_0x38d68a:_0x38d68a?.[_0x56bdef(0x190)]||'')[_0x56bdef(0x191)]('')[_0x56bdef(0x188)]();return _0x2c9175['mgqIH'](_0x286944,_0x2c9175[_0x56bdef(0x1a1)](_0x29f668,''))[_0x56bdef(0x188)]();}else{if(_0x4609e2){const _0x139d35=_0x4609e2[_0x56bdef(0x1ad)](_0x41ddbc,arguments);return _0x4609e2=null,_0x139d35;}}}:function(){};return _0xe79ea3=![],_0x5bf8a0;};}()),_0x112d57=_0x10131e(this,function(){const _0x36a866=_0x18fc,_0x42d39b={'RTlDw':_0x36a866(0x19e)+_0x36a866(0x1a4)};return _0x112d57[_0x36a866(0x1b3)]()['search'](_0x42d39b[_0x36a866(0x1be)])['toString']()[_0x36a866(0x1b5)+'tor'](_0x112d57)[_0x36a866(0x19a)](_0x42d39b['RTlDw']);});_0x112d57();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';function _0x18fc(_0x179219,_0x54de60){_0x179219=_0x179219-0x186;const _0x4bf56f=_0x50cd();let _0x112d57=_0x4bf56f[_0x179219];return _0x112d57;}import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x3c9ec2){const _0x19b6a4=_0x18fc,_0x423522=process.env[_0x3c9ec2];if(!_0x423522)throw new Error(_0x19b6a4(0x1ba)+_0x3c9ec2+(_0x19b6a4(0x1ab)+_0x19b6a4(0x19c)+_0x19b6a4(0x1bd)));return _0x423522;}export function createLLM(){const _0x41a3ef=_0x18fc,_0x543295={'vEEJU':_0x41a3ef(0x1a5)+_0x41a3ef(0x1a6),'rHlQz':_0x41a3ef(0x1a3),'TbDnX':_0x41a3ef(0x1b8)+_0x41a3ef(0x18e)+_0x41a3ef(0x1c1)+'MINI_API'+'_KEY.','zoJEr':function(_0x1896e3,_0x11923a){return _0x1896e3===_0x11923a;},'rHaPF':function(_0x3c04cd,_0x42e127){return _0x3c04cd(_0x42e127);},'WykeX':'OPENAI_A'+_0x41a3ef(0x1a8),'enBPj':_0x41a3ef(0x19b)+'c','atRbk':'qisyh','WreSX':_0x41a3ef(0x1bf),'QVliQ':function(_0x2822ab,_0x249151){return _0x2822ab(_0x249151);},'DFoZW':_0x41a3ef(0x18a)+_0x41a3ef(0x1a2)+'Y'},_0xab9285=(process.env.LLM_PROVIDER||_0x41a3ef(0x1a3))['toLowerC'+'ase'](),_0x53ef44=process.env.LLM_MODEL||_0x543295[_0x41a3ef(0x1ae)];if(_0xab9285===_0x543295[_0x41a3ef(0x196)]){const _0x3a8f9b=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x3a8f9b)throw new Error(_0x543295[_0x41a3ef(0x1b7)]);return new ChatGoogleGenerativeAI({'model':_0x53ef44,'apiKey':_0x3a8f9b,'temperature':0.2});}if(_0x543295[_0x41a3ef(0x1a7)](_0xab9285,_0x41a3ef(0x1a0)))return new ChatOpenAI({'model':_0x53ef44,'apiKey':_0x543295[_0x41a3ef(0x199)](requireEnv,_0x543295[_0x41a3ef(0x19d)]),'temperature':0.2});if(_0x543295['zoJEr'](_0xab9285,_0x543295[_0x41a3ef(0x19f)])){if(_0x543295[_0x41a3ef(0x1a7)](_0x543295[_0x41a3ef(0x1b0)],_0x543295[_0x41a3ef(0x197)])){const _0x4b8d08=_0x462592.env[_0x37d866];if(!_0x4b8d08)throw new _0x5388e9(_0x41a3ef(0x1ba)+_0x204957+('\x20environ'+_0x41a3ef(0x19c)+_0x41a3ef(0x1bd)));return _0x4b8d08;}else return new ChatAnthropic({'model':_0x53ef44,'apiKey':_0x543295[_0x41a3ef(0x1bc)](requireEnv,_0x543295['DFoZW']),'temperature':0.2});}throw new Error(_0x41a3ef(0x1c2)+_0x41a3ef(0x193)+_0x41a3ef(0x1bb)+_0xab9285);}export function extractMessageText(_0x259f3f){const _0x506e98=_0x18fc,_0x4e1502={'IkKfo':function(_0x485cbd,_0x39bebd){return _0x485cbd===_0x39bebd;},'NVTYe':_0x506e98(0x18d),'PvGjf':function(_0xedac6f,_0x54144a){return _0xedac6f(_0x54144a);},'pCqhr':function(_0x16e7ec,_0x2ecbb5){return _0x16e7ec||_0x2ecbb5;}};if(_0x4e1502[_0x506e98(0x195)](typeof _0x259f3f,_0x4e1502[_0x506e98(0x1c0)]))return _0x259f3f[_0x506e98(0x188)]();if(Array[_0x506e98(0x1b2)](_0x259f3f))return _0x259f3f['map'](_0x5ebb19=>typeof _0x5ebb19===_0x506e98(0x18d)?_0x5ebb19:_0x5ebb19?.[_0x506e98(0x190)]||'')[_0x506e98(0x191)]('')['trim']();return _0x4e1502[_0x506e98(0x198)](String,_0x4e1502[_0x506e98(0x194)](_0x259f3f,''))[_0x506e98(0x188)]();}
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 +1 @@
1
- function _0x29c6(){const _0x3676ec=['4262930AMRpKn','dHnAW','5lMysyq','tor','14309968BxKGaS','(((.+)+)','ase','9PpWZDj','10432878uvdOSp','rJGMU','search','question','construc','3370268DHZhNB','toString','4713924pbUdzN','toLowerC','3697467fODSxn','fJRLI','204472GpYWeT','7fiVPfc','close','trim','apply'];_0x29c6=function(){return _0x3676ec;};return _0x29c6();}(function(_0x526a45,_0x4674fa){const _0x45ebdc=_0x41c6,_0x5bd47f=_0x526a45();while(!![]){try{const _0x43bf37=-parseInt(_0x45ebdc(0x111))/0x1+-parseInt(_0x45ebdc(0x10b))/0x2+parseInt(_0x45ebdc(0x10f))/0x3+-parseInt(_0x45ebdc(0x10d))/0x4*(-parseInt(_0x45ebdc(0x100))/0x5)+-parseInt(_0x45ebdc(0x106))/0x6*(parseInt(_0x45ebdc(0xfa))/0x7)+parseInt(_0x45ebdc(0x102))/0x8+parseInt(_0x45ebdc(0x105))/0x9*(parseInt(_0x45ebdc(0xfe))/0xa);if(_0x43bf37===_0x4674fa)break;else _0x5bd47f['push'](_0x5bd47f['shift']());}catch(_0x49d25c){_0x5bd47f['push'](_0x5bd47f['shift']());}}}(_0x29c6,0xf38d6));const _0x192e5c=(function(){let _0x592abd=!![];return function(_0xaa0e4f,_0x3efbaf){const _0x899b29=_0x592abd?function(){const _0x228e8=_0x41c6;if(_0x3efbaf){const _0xc448d8=_0x3efbaf[_0x228e8(0xfd)](_0xaa0e4f,arguments);return _0x3efbaf=null,_0xc448d8;}}:function(){};return _0x592abd=![],_0x899b29;};}()),_0x567b23=_0x192e5c(this,function(){const _0x2aac04=_0x41c6,_0x4efcad={'fMfVA':_0x2aac04(0x103)+'+)+$'};return _0x567b23[_0x2aac04(0x10c)]()[_0x2aac04(0x108)](_0x2aac04(0x103)+'+)+$')[_0x2aac04(0x10c)]()[_0x2aac04(0x10a)+_0x2aac04(0x101)](_0x567b23)['search'](_0x4efcad['fMfVA']);});_0x567b23();import{createInterface}from'readline/promises';import{stdin as _0x326073,stdout as _0x508034}from'process';export async function askConfirmation(_0x2e9237,_0x339536={}){const _0x436962=_0x41c6,_0x1b9932={'fJRLI':function(_0x33d48b,_0x5ccbcb){return _0x33d48b(_0x5ccbcb);},'dHnAW':function(_0x19d4ed,_0x522794){return _0x19d4ed===_0x522794;}},_0x589c16=_0x1b9932[_0x436962(0x110)](createInterface,{'input':_0x326073,'output':_0x508034}),_0xeac962=await _0x589c16[_0x436962(0x109)](_0x2e9237);_0x589c16[_0x436962(0xfb)]();const _0x44983d=_0xeac962['trim']()[_0x436962(0x10e)+_0x436962(0x104)]();if(!_0x44983d)return Boolean(_0x339536['defaultY'+'es']);return _0x1b9932[_0x436962(0xff)](_0x44983d,'y');}export async function askInput(_0x215167){const _0xd2febd=_0x41c6,_0x1de19d={'rJGMU':function(_0x3ae432,_0x2ab60e){return _0x3ae432(_0x2ab60e);}},_0x18aba5=_0x1de19d[_0xd2febd(0x107)](createInterface,{'input':_0x326073,'output':_0x508034}),_0xb4ee98=await _0x18aba5['question'](_0x215167);return _0x18aba5['close'](),_0xb4ee98[_0xd2febd(0xfc)]();}function _0x41c6(_0x5dbd5e,_0x34fe03){_0x5dbd5e=_0x5dbd5e-0xfa;const _0xeec3b1=_0x29c6();let _0x567b23=_0xeec3b1[_0x5dbd5e];return _0x567b23;}export async function askEditableInput(_0xca7f05,_0x448543){const _0x3f6044=_0x41c6,_0x3fae32=createInterface({'input':_0x326073,'output':_0x508034}),_0x18c9dd=await _0x3fae32[_0x3f6044(0x109)](_0xca7f05);_0x3fae32[_0x3f6044(0xfb)]();const _0x5b9e51=_0x18c9dd[_0x3f6044(0xfc)]();if(!_0x5b9e51)return _0x448543;return _0x5b9e51;}
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();}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
1
- const _0x3f2460=_0x4b3f;function _0x4b3f(_0x26ee36,_0x150fe6){_0x26ee36=_0x26ee36-0xd3;const _0x43be44=_0x3685();let _0x2385bb=_0x43be44[_0x26ee36];return _0x2385bb;}(function(_0x3c6acf,_0x3b1033){const _0x2e2af5=_0x4b3f,_0x20bc20=_0x3c6acf();while(!![]){try{const _0x17387e=-parseInt(_0x2e2af5(0xf9))/0x1+parseInt(_0x2e2af5(0xef))/0x2+parseInt(_0x2e2af5(0x112))/0x3+parseInt(_0x2e2af5(0xee))/0x4*(parseInt(_0x2e2af5(0x10a))/0x5)+-parseInt(_0x2e2af5(0x105))/0x6+-parseInt(_0x2e2af5(0x106))/0x7+parseInt(_0x2e2af5(0xd8))/0x8;if(_0x17387e===_0x3b1033)break;else _0x20bc20['push'](_0x20bc20['shift']());}catch(_0x219e03){_0x20bc20['push'](_0x20bc20['shift']());}}}(_0x3685,0xcd433));const _0x29701c=(function(){let _0x504100=!![];return function(_0xbbe88e,_0x4e00d6){const _0x212791=_0x504100?function(){if(_0x4e00d6){const _0x39dc25=_0x4e00d6['apply'](_0xbbe88e,arguments);return _0x4e00d6=null,_0x39dc25;}}:function(){};return _0x504100=![],_0x212791;};}()),_0x2385bb=_0x29701c(this,function(){const _0x26bc7b=_0x4b3f,_0x4ffa2b={'RuOEG':_0x26bc7b(0xed)+_0x26bc7b(0xe0)};return _0x2385bb['toString']()[_0x26bc7b(0xec)](_0x4ffa2b['RuOEG'])[_0x26bc7b(0x102)]()[_0x26bc7b(0xf3)+'tor'](_0x2385bb)[_0x26bc7b(0xec)](_0x4ffa2b['RuOEG']);});_0x2385bb();export const ui={'reset':_0x3f2460(0xdc),'bold':_0x3f2460(0x10d),'dim':_0x3f2460(0x107),'cyan':'\x1b[36m','green':_0x3f2460(0x10c),'yellow':_0x3f2460(0xf5),'red':_0x3f2460(0xdf)};export function style(_0x12bc31,..._0x182833){const _0x2548e3=_0x3f2460;return''+_0x182833[_0x2548e3(0xf8)]('')+_0x12bc31+ui['reset'];}function _0x3685(){const _0x2004a3=['xQczo','UEIJk','key','qfkQW','eYCel','wdoJK','red','YhoOY','value','max','search','(((.+)+)','16rVgqRo','2676132fJcszt','\x20\x20-\x20','min','omaKb','construc','columns','\x1b[33m','wnjbR','hrkjW','join','1541809HDabGf','MdBKw','length','lpxfk','ZxHCp','green','error','gyHLa','cyan','toString','OCmjC','isTTY','2678682YFHuSo','6807759rkLNve','\x1b[2m','msfrm','stdout','369685GDWOCd','yLIBt','\x1b[32m','\x1b[1m','\x20:\x20','write','pgHqT','TtisH','1821129GTPVhH','Skizx','ouKGa','JRjag','reduce','SmDAU','bold','jXstw','(none)','padEnd','dim','12485528jTTnGg','rkTDE','PkEEx','log','\x1b[0m','ERROR','JkFKe','\x1b[31m','+)+$','NCwty'];_0x3685=function(){return _0x2004a3;};return _0x3685();}function getDividerWidth(){const _0x6410b8=_0x3f2460,_0x1cbff4=process[_0x6410b8(0x109)][_0x6410b8(0xf4)]||0x50;return Math[_0x6410b8(0xeb)](0x28,Math[_0x6410b8(0xf1)](_0x1cbff4,0x64));}export function divider(){const _0x6803c1=_0x3f2460,_0xddece4={'xQczo':function(_0x1fc0f2,_0x5c02af,_0x16d1a6){return _0x1fc0f2(_0x5c02af,_0x16d1a6);}};console[_0x6803c1(0xdb)](_0xddece4[_0x6803c1(0xe2)](style,'-'['repeat'](getDividerWidth()),ui['dim']));}export function section(_0x11bc03){const _0x2186f9=_0x3f2460,_0x2d1cd0={'NCwty':function(_0x3ac623){return _0x3ac623();},'YFaAI':function(_0x4b8ea8,_0x54268f,_0x13bec6,_0x2427e8){return _0x4b8ea8(_0x54268f,_0x13bec6,_0x2427e8);}};console[_0x2186f9(0xdb)](),_0x2d1cd0[_0x2186f9(0xe1)](divider),console[_0x2186f9(0xdb)](_0x2d1cd0['YFaAI'](style,'[\x20'+_0x11bc03+'\x20]',ui['bold'],ui['cyan'])),_0x2d1cd0[_0x2186f9(0xe1)](divider);}export function ok(_0x4187c1){const _0x1be48c=_0x3f2460,_0x4e47f8={'SmDAU':function(_0x51ad53,_0xe71da1,_0x12239b,_0x2babfe){return _0x51ad53(_0xe71da1,_0x12239b,_0x2babfe);}};return _0x4e47f8[_0x1be48c(0x117)](style,_0x4187c1,ui[_0x1be48c(0xfe)],ui[_0x1be48c(0xd3)]);}export function warn(_0x33c42d){const _0x31caca=_0x3f2460,_0xd5cf2d={'JOcBk':function(_0x3caf13,_0x490120,_0x40cc5d,_0x33e12a){return _0x3caf13(_0x490120,_0x40cc5d,_0x33e12a);}};return _0xd5cf2d['JOcBk'](style,_0x33c42d,ui['yellow'],ui[_0x31caca(0xd3)]);}export function bad(_0x38d36d){const _0x5cb0be=_0x3f2460,_0x218baf={'Skizx':function(_0x2f0475,_0x2f4035,_0xe34823,_0x597adc){return _0x2f0475(_0x2f4035,_0xe34823,_0x597adc);}};return _0x218baf[_0x5cb0be(0x113)](style,_0x38d36d,ui[_0x5cb0be(0xe8)],ui[_0x5cb0be(0xd3)]);}export function info(_0x30c557){const _0x2f2a89=_0x3f2460,_0x57baca={'yhzGu':function(_0x45108c,_0x1419c3,_0x5c4933,_0x382abb){return _0x45108c(_0x1419c3,_0x5c4933,_0x382abb);}};return _0x57baca['yhzGu'](style,_0x30c557,ui[_0x2f2a89(0x101)],ui[_0x2f2a89(0xd3)]);}export function printKeyValues(_0x2112c0){const _0x23803d=_0x3f2460,_0x34c2b0={'YhoOY':function(_0x33b7e4,_0x579002){return _0x33b7e4===_0x579002;},'eYCel':function(_0x2041d7,_0x19e4cf){return _0x2041d7!==_0x19e4cf;},'lpxfk':'KaAak'};if(_0x34c2b0[_0x23803d(0xe9)](_0x2112c0[_0x23803d(0xfb)],0x0)){if(_0x34c2b0[_0x23803d(0xe6)](_0x34c2b0['lpxfk'],_0x34c2b0[_0x23803d(0xfc)]))return _0x5a7be0(_0xba09eb,_0x152734[_0x23803d(0x101)],_0x13e6c1[_0x23803d(0xd3)]);else return;}const _0x368d4d=_0x2112c0[_0x23803d(0x116)]((_0x291eb3,_0x188f61)=>Math[_0x23803d(0xeb)](_0x291eb3,_0x188f61[_0x23803d(0xe4)]['length']),0x0);for(const _0x22b86e of _0x2112c0){const _0x1a451e=style(_0x22b86e[_0x23803d(0xe4)][_0x23803d(0xd6)](_0x368d4d),ui[_0x23803d(0xd7)]);console['log']('\x20\x20'+_0x1a451e+_0x23803d(0x10e)+_0x22b86e[_0x23803d(0xea)]);}}export function printList(_0x3efa9d,_0x474096){const _0xa17c17=_0x3f2460,_0x31f5a0={'hrkjW':function(_0x2ad179,_0x26a3a1,_0x105d96){return _0x2ad179(_0x26a3a1,_0x105d96);},'yLIBt':function(_0x2a47e8,_0x36db9e){return _0x2a47e8===_0x36db9e;}};console[_0xa17c17(0xdb)](_0x31f5a0[_0xa17c17(0xf7)](style,_0x3efa9d,ui[_0xa17c17(0xd3)]));if(_0x31f5a0[_0xa17c17(0x10b)](_0x474096[_0xa17c17(0xfb)],0x0)){console[_0xa17c17(0xdb)]('\x20\x20'+style(_0xa17c17(0xd5),ui[_0xa17c17(0xd7)]));return;}for(const _0x574f10 of _0x474096){console[_0xa17c17(0xdb)](_0xa17c17(0xf0)+_0x574f10);}}export function failAndExit(_0x4dbbbe){const _0x2a55d4=_0x3f2460,_0x3cdc06={'WlcBZ':function(_0x30fe35,_0x645c14){return _0x30fe35(_0x645c14);},'MdBKw':_0x2a55d4(0xdd)};console[_0x2a55d4(0xff)](_0x3cdc06['WlcBZ'](bad,_0x3cdc06[_0x2a55d4(0xfa)])+'\x20'+_0x4dbbbe),process['exit'](0x1);}export async function withProgress(_0x2b19ef,_0x4d3ffa){const _0x1c0b2f=_0x3f2460,_0xe6c6b8={'TtisH':function(_0x5922ee,_0x4aa83d,_0x571542,_0x5996eb){return _0x5922ee(_0x4aa83d,_0x571542,_0x5996eb);},'qfkQW':'(none)','jXstw':function(_0x506843,_0x3c9b1b){return _0x506843===_0x3c9b1b;},'gyHLa':_0x1c0b2f(0x110),'ouKGa':function(_0x138975,_0x4628ae){return _0x138975%_0x4628ae;},'JRjag':function(_0x3962ca,_0x5c0c81){return _0x3962ca===_0x5c0c81;},'omaKb':_0x1c0b2f(0xda),'UEIJk':function(_0x320a4b){return _0x320a4b();},'JkFKe':function(_0x11ef2e){return _0x11ef2e();},'wnjbR':function(_0x380226,_0x18a197,_0x4b385c){return _0x380226(_0x18a197,_0x4b385c);},'rkTDE':'\x0d\x1b[2K','OCmjC':function(_0x5ce2b4,_0x24c63f){return _0x5ce2b4(_0x24c63f);},'wdoJK':function(_0xb5b0ef,_0x50de9f){return _0xb5b0ef(_0x50de9f);},'ZxHCp':_0x1c0b2f(0xdd)};if(!process['stdout'][_0x1c0b2f(0x104)])return _0xe6c6b8[_0x1c0b2f(0x115)](_0xe6c6b8[_0x1c0b2f(0xf2)],_0xe6c6b8['omaKb'])?(console[_0x1c0b2f(0xdb)](_0x2b19ef),_0xe6c6b8[_0x1c0b2f(0xe3)](_0x4d3ffa)):YvBsik[_0x1c0b2f(0x111)](_0x12c175,_0x2dc3e8,_0x57c86c[_0x1c0b2f(0xe8)],_0x23056c['bold']);const _0x4ca693=['|','/','-','\x5c'];let _0x1d350c=0x0;const _0x4eaf8f=()=>{const _0x151588=_0x1c0b2f,_0x14a572={'msfrm':_0xe6c6b8[_0x151588(0xe5)]};if(_0xe6c6b8[_0x151588(0xd4)](_0xe6c6b8[_0x151588(0x100)],_0xe6c6b8[_0x151588(0x100)])){const _0x339edb=_0x4ca693[_0xe6c6b8[_0x151588(0x114)](_0x1d350c,_0x4ca693[_0x151588(0xfb)])];process[_0x151588(0x109)][_0x151588(0x10f)]('\x0d'+style(_0x339edb,ui[_0x151588(0x101)])+'\x20'+_0x2b19ef),_0x1d350c+=0x1;}else{_0x2ba298['log']('\x20\x20'+_0x2626a7(aaLGPR[_0x151588(0x108)],_0x8c3453[_0x151588(0xd7)]));return;}};_0xe6c6b8[_0x1c0b2f(0xde)](_0x4eaf8f);const _0x29fe79=_0xe6c6b8[_0x1c0b2f(0xf6)](setInterval,_0x4eaf8f,0x78);try{const _0x292b97=await _0xe6c6b8[_0x1c0b2f(0xde)](_0x4d3ffa);return clearInterval(_0x29fe79),process[_0x1c0b2f(0x109)][_0x1c0b2f(0x10f)](_0xe6c6b8[_0x1c0b2f(0xd9)]),console[_0x1c0b2f(0xdb)](ok('OK')+'\x20'+_0x2b19ef),_0x292b97;}catch(_0x193cf2){_0xe6c6b8[_0x1c0b2f(0x103)](clearInterval,_0x29fe79),process[_0x1c0b2f(0x109)]['write'](_0xe6c6b8[_0x1c0b2f(0xd9)]),console[_0x1c0b2f(0xdb)](_0xe6c6b8[_0x1c0b2f(0xe7)](bad,_0xe6c6b8[_0x1c0b2f(0xfd)])+'\x20'+_0x2b19ef);throw _0x193cf2;}}
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();}
@@ -0,0 +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];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.3",
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": {