gemit-cli 1.6.3 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x10bd00,_0x4bccf5){const _0x4d3831=_0x50f4,_0x12be1b=_0x10bd00();while(!![]){try{const _0x5c7bcc=parseInt(_0x4d3831(0xb2))/0x1+-parseInt(_0x4d3831(0xab))/0x2*(parseInt(_0x4d3831(0xa6))/0x3)+parseInt(_0x4d3831(0xac))/0x4+-parseInt(_0x4d3831(0xb1))/0x5+-parseInt(_0x4d3831(0xaa))/0x6+-parseInt(_0x4d3831(0xb3))/0x7+parseInt(_0x4d3831(0xa7))/0x8*(parseInt(_0x4d3831(0x97))/0x9);if(_0x5c7bcc===_0x4bccf5)break;else _0x12be1b['push'](_0x12be1b['shift']());}catch(_0x1ec17d){_0x12be1b['push'](_0x12be1b['shift']());}}}(_0x17dd,0xbc896));const _0xc315c7=(function(){let _0xe42fd6=!![];return function(_0x1f0fa9,_0x32a969){const _0x711c02=_0xe42fd6?function(){if(_0x32a969){const _0x265b1d=_0x32a969['apply'](_0x1f0fa9,arguments);return _0x32a969=null,_0x265b1d;}}:function(){};return _0xe42fd6=![],_0x711c02;};}()),_0x26fa70=_0xc315c7(this,function(){const _0x3c7809=_0x50f4,_0x4f32e8={'kKVdq':'(((.+)+)'+_0x3c7809(0x99)};return _0x26fa70[_0x3c7809(0x9d)]()[_0x3c7809(0xa8)](_0x4f32e8['kKVdq'])[_0x3c7809(0x9d)]()[_0x3c7809(0x9c)+'tor'](_0x26fa70)[_0x3c7809(0xa8)](_0x4f32e8['kKVdq']);});_0x26fa70();import{basename,dirname,join}from'path';function _0x50f4(_0x1a441b,_0x31359e){_0x1a441b=_0x1a441b-0x96;const _0x377c95=_0x17dd();let _0x26fa70=_0x377c95[_0x1a441b];return _0x26fa70;}function _0x17dd(){const _0x317947=['DiIcL','QwPft','hMYvJ','BTawH','Prdiz','UyJWK','FVulE','LGFhT','3yAqTgk','248NVbriV','search','parse','6298452dsYfKH','2525204AUmVJO','4084980rNhEMs','version','0.0.0','iDYWx','dist-sec','2360320pUigmy','1023067GGPqIA','968639TYlWLV','ure','json','479241hicsPo','package.','+)+$','TbuFA','dist','construc','toString'];_0x17dd=function(){return _0x317947;};return _0x17dd();}import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x24fac1=_0x50f4,_0x453ffc={'iDYWx':function(_0x55d1e6,_0x4ea0cb){return _0x55d1e6(_0x4ea0cb);},'QwPft':function(_0x9937bb,_0x3299a5){return _0x9937bb(_0x3299a5);},'UyJWK':_0x24fac1(0x9b),'hMYvJ':function(_0x4d2cd1,_0x2eb571){return _0x4d2cd1===_0x2eb571;},'lLmfh':function(_0x4e296b,_0x475cfd){return _0x4e296b(_0x475cfd);},'LGFhT':function(_0x44ecdf,_0x3f56dc,_0x258545,_0x11dff1){return _0x44ecdf(_0x3f56dc,_0x258545,_0x11dff1);},'DiIcL':_0x24fac1(0x98)+_0x24fac1(0x96),'TbuFA':function(_0x4c128c,_0x194d05,_0x104400){return _0x4c128c(_0x194d05,_0x104400);},'FVulE':function(_0x118192,_0xd16d1f,_0x427b81){return _0x118192(_0xd16d1f,_0x427b81);},'Prdiz':'utf8','BTawH':_0x24fac1(0xae)};try{const _0x58d2f0=fileURLToPath(import.meta.url),_0x44f32d=_0x453ffc[_0x24fac1(0xaf)](dirname,_0x58d2f0),_0xae3471=_0x453ffc[_0x24fac1(0x9f)](basename,_0x44f32d)===_0x453ffc[_0x24fac1(0xa3)]||_0x453ffc[_0x24fac1(0xa0)](_0x453ffc['lLmfh'](basename,_0x44f32d),_0x24fac1(0xb0)+_0x24fac1(0xb4))?_0x453ffc[_0x24fac1(0xa5)](join,_0x44f32d,'..',_0x453ffc['DiIcL']):_0x453ffc[_0x24fac1(0x9a)](join,_0x44f32d,_0x453ffc[_0x24fac1(0x9e)]),_0x13b87f=_0x453ffc[_0x24fac1(0xa4)](readFileSync,_0xae3471,_0x453ffc[_0x24fac1(0xa2)]),_0xdeb133=JSON[_0x24fac1(0xa9)](_0x13b87f);return _0xdeb133[_0x24fac1(0xad)]||_0x24fac1(0xae);}catch{return _0x453ffc[_0x24fac1(0xa1)];}}
1
+ function _0x87b2(_0x4ded2e,_0xf21daa){_0x4ded2e=_0x4ded2e-0x122;const _0x526160=_0x4bcc();let _0x13f523=_0x526160[_0x4ded2e];return _0x13f523;}(function(_0x4063db,_0x171551){const _0x34a47e=_0x87b2,_0x4e6131=_0x4063db();while(!![]){try{const _0x27cf0d=parseInt(_0x34a47e(0x140))/0x1+parseInt(_0x34a47e(0x12b))/0x2*(-parseInt(_0x34a47e(0x13b))/0x3)+parseInt(_0x34a47e(0x134))/0x4+parseInt(_0x34a47e(0x137))/0x5+parseInt(_0x34a47e(0x125))/0x6*(-parseInt(_0x34a47e(0x138))/0x7)+-parseInt(_0x34a47e(0x132))/0x8+-parseInt(_0x34a47e(0x13d))/0x9;if(_0x27cf0d===_0x171551)break;else _0x4e6131['push'](_0x4e6131['shift']());}catch(_0x1661f1){_0x4e6131['push'](_0x4e6131['shift']());}}}(_0x4bcc,0x2f8fc));function _0x4bcc(){const _0x52d074=['dist','16896jjmwLh','dOXKC','2000979Zqtsfa','json','+)+$','387571aZqObD','(((.+)+)','aXHkX','0.0.0','18fwBGcD','msBke','fsKmM','ure','zAqPU','version','62TUnNaw','toString','parse','search','apply','package.','tor','462664fhZjhD','dist-sec','1419956aNPtlF','Znwbo','orCeG','216205LnGtOa','317877KkvElW','onDtn'];_0x4bcc=function(){return _0x52d074;};return _0x4bcc();}const _0x3dbfd7=(function(){let _0x4ddeb3=!![];return function(_0x10ec6b,_0x22cc35){const _0x2e3e47=_0x4ddeb3?function(){const _0x341283=_0x87b2;if(_0x22cc35){const _0x13a4f0=_0x22cc35[_0x341283(0x12f)](_0x10ec6b,arguments);return _0x22cc35=null,_0x13a4f0;}}:function(){};return _0x4ddeb3=![],_0x2e3e47;};}()),_0x13f523=_0x3dbfd7(this,function(){const _0x2cb2f7=_0x87b2,_0x56e14a={'aXHkX':_0x2cb2f7(0x122)+_0x2cb2f7(0x13f)};return _0x13f523[_0x2cb2f7(0x12c)]()[_0x2cb2f7(0x12e)](_0x56e14a['aXHkX'])[_0x2cb2f7(0x12c)]()['construc'+_0x2cb2f7(0x131)](_0x13f523)[_0x2cb2f7(0x12e)](_0x56e14a[_0x2cb2f7(0x123)]);});_0x13f523();import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x5d6d33=_0x87b2,_0x4eba68={'Znwbo':function(_0x58b885,_0x2bafdd){return _0x58b885(_0x2bafdd);},'msBke':function(_0x1ab6d9,_0x45d761){return _0x1ab6d9===_0x45d761;},'dOXKC':_0x5d6d33(0x13a),'onDtn':function(_0x371e3f,_0x3f8ee){return _0x371e3f(_0x3f8ee);},'fsKmM':function(_0x2a9e3c,_0x53e46f,_0x44b6c8,_0x476efc){return _0x2a9e3c(_0x53e46f,_0x44b6c8,_0x476efc);},'zAqPU':_0x5d6d33(0x130)+'json','YwOTO':function(_0x36541b,_0x494d6c,_0x542077){return _0x36541b(_0x494d6c,_0x542077);},'aNRNB':'utf8','orCeG':_0x5d6d33(0x124)};try{const _0x1bb678=fileURLToPath(import.meta.url),_0x4a9591=_0x4eba68[_0x5d6d33(0x135)](dirname,_0x1bb678),_0x507c3a=_0x4eba68[_0x5d6d33(0x126)](_0x4eba68[_0x5d6d33(0x135)](basename,_0x4a9591),_0x4eba68[_0x5d6d33(0x13c)])||_0x4eba68[_0x5d6d33(0x126)](_0x4eba68[_0x5d6d33(0x139)](basename,_0x4a9591),_0x5d6d33(0x133)+_0x5d6d33(0x128))?_0x4eba68[_0x5d6d33(0x127)](join,_0x4a9591,'..',_0x4eba68[_0x5d6d33(0x129)]):join(_0x4a9591,'package.'+_0x5d6d33(0x13e)),_0x511ad4=_0x4eba68['YwOTO'](readFileSync,_0x507c3a,_0x4eba68['aNRNB']),_0x3d1f18=JSON[_0x5d6d33(0x12d)](_0x511ad4);return _0x3d1f18[_0x5d6d33(0x12a)]||_0x4eba68[_0x5d6d33(0x136)];}catch{return _0x4eba68[_0x5d6d33(0x136)];}}
@@ -1 +1 @@
1
- (function(_0x5ced3f,_0x495103){var _0x34fe6c=_0x1fbb,_0x45e407=_0x5ced3f();while(!![]){try{var _0x4e9d95=parseInt(_0x34fe6c(0x12a))/0x1+-parseInt(_0x34fe6c(0x12f))/0x2*(parseInt(_0x34fe6c(0x118))/0x3)+-parseInt(_0x34fe6c(0x11b))/0x4+parseInt(_0x34fe6c(0x135))/0x5*(parseInt(_0x34fe6c(0x124))/0x6)+-parseInt(_0x34fe6c(0x11a))/0x7*(-parseInt(_0x34fe6c(0x121))/0x8)+-parseInt(_0x34fe6c(0x133))/0x9*(-parseInt(_0x34fe6c(0x134))/0xa)+parseInt(_0x34fe6c(0x127))/0xb*(-parseInt(_0x34fe6c(0x120))/0xc);if(_0x4e9d95===_0x495103)break;else _0x45e407['push'](_0x45e407['shift']());}catch(_0x18699a){_0x45e407['push'](_0x45e407['shift']());}}}(_0x1652,0xafed7));function _0x1652(){var _0xcd545c=['Use\x20`gem','search','30592XTrXuM','all','stion\x20fl','tor','9yCqnMH','7273510GJTiSw','41425mBAvLh','222inrByl','he\x20sugge','7VFuumH','54760SeRMCo','ntinue\x20t','\x20stage\x20e','LEuEq','check','1692dHKMPe','4549744QJcSFT','construc','it\x20add\x20-','738pIVxMJ','-all`\x20to','verythin','128249oAKhIj','(((.+)+)','+)+$','1194988GENdJc','toString','ow.'];_0x1652=function(){return _0xcd545c;};return _0x1652();}var _0x6d9e05=(function(){var _0x3a0c79=!![];return function(_0xa04345,_0x3d5748){var _0x3fc7c1=_0x3a0c79?function(){if(_0x3d5748){var _0x1c9326=_0x3d5748['apply'](_0xa04345,arguments);return _0x3d5748=null,_0x1c9326;}}:function(){};return _0x3a0c79=![],_0x3fc7c1;};}()),_0x310a62=_0x6d9e05(this,function(){var _0x5c6b3a=_0x1fbb,_0x45605c={'LEuEq':_0x5c6b3a(0x128)+_0x5c6b3a(0x129)};return _0x310a62['toString']()[_0x5c6b3a(0x12e)]('(((.+)+)'+_0x5c6b3a(0x129))[_0x5c6b3a(0x12b)]()[_0x5c6b3a(0x122)+_0x5c6b3a(0x132)](_0x310a62)['search'](_0x45605c[_0x5c6b3a(0x11e)]);});function _0x1fbb(_0x11dc69,_0x26fdb8){_0x11dc69=_0x11dc69-0x118;var _0xfb2876=_0x1652();var _0x310a62=_0xfb2876[_0x11dc69];return _0x310a62;}_0x310a62();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';export async function addAndCommit(_0x4c5f21={}){var _0x486207=_0x1fbb,_0x44dfd7={'RunQp':_0x486207(0x12d)+_0x486207(0x123)+_0x486207(0x125)+_0x486207(0x11d)+_0x486207(0x126)+'g\x20and\x20co'+_0x486207(0x11c)+_0x486207(0x119)+_0x486207(0x131)+_0x486207(0x12c),'lJZJK':function(_0x1b575a,_0x322b08){return _0x1b575a(_0x322b08);},'asBdP':function(_0x4f2607,_0x31bda8){return _0x4f2607(_0x31bda8);}};!_0x4c5f21[_0x486207(0x130)]&&failAndExit(_0x44dfd7['RunQp']),await _0x44dfd7['lJZJK'](generateCommit,{'all':!![],'check':_0x44dfd7['asBdP'](Boolean,_0x4c5f21[_0x486207(0x11f)])});}
1
+ (function(_0x5a9381,_0x5a2b4e){var _0x267f56=_0x381f,_0x455db7=_0x5a9381();while(!![]){try{var _0x5a6b85=parseInt(_0x267f56(0x96))/0x1+-parseInt(_0x267f56(0x98))/0x2*(-parseInt(_0x267f56(0x95))/0x3)+-parseInt(_0x267f56(0xa7))/0x4*(parseInt(_0x267f56(0x9b))/0x5)+-parseInt(_0x267f56(0xab))/0x6+-parseInt(_0x267f56(0xae))/0x7*(-parseInt(_0x267f56(0xa9))/0x8)+parseInt(_0x267f56(0x99))/0x9*(parseInt(_0x267f56(0x9a))/0xa)+parseInt(_0x267f56(0xad))/0xb*(-parseInt(_0x267f56(0xac))/0xc);if(_0x5a6b85===_0x5a2b4e)break;else _0x455db7['push'](_0x455db7['shift']());}catch(_0x43c0bd){_0x455db7['push'](_0x455db7['shift']());}}}(_0x18f9,0x86d9c));var _0x33df96=(function(){var _0x94f69d=!![];return function(_0x510a26,_0x198857){var _0x448660=_0x94f69d?function(){if(_0x198857){var _0x55b30a=_0x198857['apply'](_0x510a26,arguments);return _0x198857=null,_0x55b30a;}}:function(){};return _0x94f69d=![],_0x448660;};}()),_0x292c4e=_0x33df96(this,function(){var _0x5daefd=_0x381f,_0x736eba={'rkEZU':_0x5daefd(0x9e)+_0x5daefd(0xb0)};return _0x292c4e[_0x5daefd(0x9d)]()[_0x5daefd(0xaa)](_0x736eba['rkEZU'])['toString']()[_0x5daefd(0x9f)+_0x5daefd(0xa6)](_0x292c4e)[_0x5daefd(0xaa)](_0x736eba[_0x5daefd(0x97)]);});_0x292c4e();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';function _0x381f(_0x42a9ad,_0x1b4cff){_0x42a9ad=_0x42a9ad-0x95;var _0x5274c9=_0x18f9();var _0x292c4e=_0x5274c9[_0x42a9ad];return _0x292c4e;}function _0x18f9(){var _0x303f06=['stion\x20fl','+)+$','he\x20sugge','46194jbKqcs','413264OzUYkB','rkEZU','26OqiNFh','27PBliIA','2877890TTHEvy','64235BwbKFI','check','toString','(((.+)+)','construc','-all`\x20to','all','it\x20add\x20-','\x20stage\x20e','gKeru','ntinue\x20t','tor','184mLxTkh','Use\x20`gem','984PNRxJk','search','5195424DrIYeo','24WHQySk','2139412KzEwFt','52437yWaMGk'];_0x18f9=function(){return _0x303f06;};return _0x18f9();}export async function addAndCommit(_0x522554={}){var _0x1271d1=_0x381f,_0x5b223a={'gKeru':function(_0x5b16d9,_0x565161){return _0x5b16d9(_0x565161);}};!_0x522554[_0x1271d1(0xa1)]&&_0x5b223a[_0x1271d1(0xa4)](failAndExit,_0x1271d1(0xa8)+_0x1271d1(0xa2)+_0x1271d1(0xa0)+_0x1271d1(0xa3)+'verythin'+'g\x20and\x20co'+_0x1271d1(0xa5)+_0x1271d1(0xb1)+_0x1271d1(0xaf)+'ow.'),await generateCommit({'all':!![],'check':_0x5b223a[_0x1271d1(0xa4)](Boolean,_0x522554[_0x1271d1(0x9c)])});}
@@ -1 +1 @@
1
- (function(_0x21c36c,_0x4d04e1){const _0x509e75=_0xab1b,_0x36dd55=_0x21c36c();while(!![]){try{const _0x2ac2d7=parseInt(_0x509e75(0x125))/0x1+-parseInt(_0x509e75(0x150))/0x2*(-parseInt(_0x509e75(0x119))/0x3)+parseInt(_0x509e75(0x12c))/0x4+parseInt(_0x509e75(0x128))/0x5+-parseInt(_0x509e75(0x134))/0x6*(parseInt(_0x509e75(0x13e))/0x7)+-parseInt(_0x509e75(0x12a))/0x8+-parseInt(_0x509e75(0x13c))/0x9*(parseInt(_0x509e75(0x12b))/0xa);if(_0x2ac2d7===_0x4d04e1)break;else _0x36dd55['push'](_0x36dd55['shift']());}catch(_0x40e3f7){_0x36dd55['push'](_0x36dd55['shift']());}}}(_0x4526,0x44d76));const _0x2f784f=(function(){let _0x4be33d=!![];return function(_0x2a2922,_0x332444){const _0x3d94be=_0x4be33d?function(){const _0x46a164=_0xab1b;if(_0x332444){const _0x2fffc8=_0x332444[_0x46a164(0x168)](_0x2a2922,arguments);return _0x332444=null,_0x2fffc8;}}:function(){};return _0x4be33d=![],_0x3d94be;};}()),_0x80bba5=_0x2f784f(this,function(){const _0x5aab0b=_0xab1b,_0x268364={'Ribrp':_0x5aab0b(0x152)+_0x5aab0b(0x13b)};return _0x80bba5['toString']()[_0x5aab0b(0x149)](_0x268364[_0x5aab0b(0x158)])['toString']()[_0x5aab0b(0x166)+_0x5aab0b(0x133)](_0x80bba5)['search'](_0x268364[_0x5aab0b(0x158)]);});_0x80bba5();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function _0xab1b(_0x2d4a95,_0x4fec8c){_0x2d4a95=_0x2d4a95-0x111;const _0xa8cd12=_0x4526();let _0x80bba5=_0xa8cd12[_0x2d4a95];return _0x80bba5;}function _0x4526(){const _0x5ebbdb=['KtRwy','name?\x20(y','QrOYS','rJUnn','invoke','th\x20this\x20','lready\x20e','545060XpQbvU','Create\x20b','inking\x20a','1171040ljsqQx','git','2452968ILAxsw','2672710iCwjYr','1701576pezjaM','NFD','\x20branch.','bhAaC','h\x20name.','>\x0a\x20\x20\x20\x20-\x20','VkvaU','tor','114khoQub','\x0a\x20\x20\x20\x20','dyxtR','log','\x0a\x20\x20\x20\x20Gen','toLowerC','case-des','+)+$','18XnrEJu','\x20test\x0a\x20\x20','145439okRSgA','\x20\x20-\x20Maxi','content','AI\x20is\x20th','s\x0a\x20\x20\x20\x20-\x20','inherit','ZJtiX','Failed\x20t','created.','th:\x2050\x20c','te\x20branc','search','efactor,','slice','nd\x20reque','\x20\x20\x20\x20Desc','NLY\x20the\x20','was\x20not\x20','4jquOgZ','ch\x20name\x20','(((.+)+)','eat,\x20fix','yciWA','DBUWU','fsjQr','ame\x20in\x20E','Ribrp','SgRMO','message',',\x20chore,','es:\x0a\x20\x20\x20\x20','\x20Branch\x20','ription:','ate','AyOGN','RsKNf','LLVUY','checkout','REgcf','sting\x20re','construc','MHhFu','apply','d\x20below.','REQJm','ase','\x20docs,\x20r','xists:\x20','RiFKN','\x0a\x20\x20','wYtFI','types:\x20f','xrxFr','haracter','vXTOC','nTvIk','D\x20BRANCH','nglish\x0a\x0a','feat/','vjMLq','bERqt','RrZzN','469857xqfIZD','replace','includes','feature\x20','ranch\x20wi'];_0x4526=function(){return _0x5ebbdb;};return _0x4526();}function sanitizeBranchName(_0x5156aa){const _0xabcd72=_0xab1b,_0x5c1356={'LLVUY':_0xabcd72(0x12d),'RrZzN':function(_0x5631be,_0x23334b){return _0x5631be||_0x23334b;},'YnItp':'feat/upd'+_0xabcd72(0x15f)},_0x359a47=_0x5156aa['normaliz'+'e'](_0x5c1356[_0xabcd72(0x162)])[_0xabcd72(0x11a)](/[\u0300-\u036f]/g,'')[_0xabcd72(0x139)+_0xabcd72(0x16b)]()[_0xabcd72(0x11a)](/[^a-z0-9/-]+/g,'-')[_0xabcd72(0x11a)](/-{2,}/g,'-')[_0xabcd72(0x11a)](/\/{2,}/g,'/')['replace'](/^-+|-+$/g,'')[_0xabcd72(0x11a)](/^\/+|\/+$/g,''),_0x1d1021=_0x359a47[_0xabcd72(0x14b)](0x0,0x32)[_0xabcd72(0x11a)](/\/+$/g,'')['replace'](/-+$/g,''),_0x15f3f8=_0x5c1356[_0xabcd72(0x118)](_0x1d1021,_0x5c1356['YnItp']);if(!_0x15f3f8[_0xabcd72(0x11b)]('/'))return _0xabcd72(0x115)+_0x15f3f8;return _0x15f3f8;}function getLLM(){const _0x347cd0=_0xab1b,_0x3c7648={'KtRwy':function(_0x1b3ce1){return _0x1b3ce1();},'ZJtiX':function(_0x3b1c6e,_0x427ad4){return _0x3b1c6e instanceof _0x427ad4;},'yciWA':function(_0x3d8203,_0x4f7e8c){return _0x3d8203(_0x4f7e8c);},'AyOGN':function(_0x5ed134,_0x11298d){return _0x5ed134(_0x11298d);}};try{return _0x3c7648[_0x347cd0(0x11e)](createLLM);}catch(_0x5c8641){const _0x5e9502=_0x3c7648[_0x347cd0(0x144)](_0x5c8641,Error)?_0x5c8641[_0x347cd0(0x15a)]:_0x3c7648[_0x347cd0(0x154)](String,_0x5c8641);_0x3c7648[_0x347cd0(0x160)](failAndExit,_0x5e9502);}}export async function suggestBranch(_0x3894dd){const _0x52a172=_0xab1b,_0x33405d={'dyxtR':function(_0x1aeea7,_0x72b175){return _0x1aeea7(_0x72b175);},'REQJm':function(_0x8b695a){return _0x8b695a();},'QrOYS':function(_0x13b344,_0x5bdb96,_0x51dfd0){return _0x13b344(_0x5bdb96,_0x51dfd0);},'bhAaC':function(_0x50f046,_0x53bf11){return _0x50f046(_0x53bf11);},'RiFKN':_0x52a172(0x132),'bERqt':_0x52a172(0x145)+'o\x20genera'+_0x52a172(0x148)+_0x52a172(0x130),'DBUWU':function(_0x14ccff,_0x26f573){return _0x14ccff===_0x26f573;},'vjMLq':_0x52a172(0x164),'MpZid':_0x52a172(0x112),'wYtFI':function(_0x100f41,_0x594f0e){return _0x100f41(_0x594f0e);},'vXTOC':function(_0x3be231,_0x3f1318){return _0x3be231(_0x3f1318);},'MHhFu':'Name','MKWCo':_0x52a172(0x126)+_0x52a172(0x11d)+_0x52a172(0x123)+_0x52a172(0x11f)+'/n):\x20','fsjQr':function(_0x333b80,_0x3af9e1){return _0x333b80(_0x3af9e1);},'jHcYz':'CANCELED','XXOlL':function(_0x2a051b,_0x2f848e,_0x593157,_0x98ba8){return _0x2a051b(_0x2f848e,_0x593157,_0x98ba8);},'SgRMO':_0x52a172(0x129),'xrxFr':_0x52a172(0x163),'rJUnn':_0x52a172(0x143),'RsKNf':function(_0x5c3ea0,_0x567c5f){return _0x5c3ea0(_0x567c5f);}};_0x33405d[_0x52a172(0x16a)](getGitStatus);const _0x19e19a=_0x33405d[_0x52a172(0x16a)](getLLM),_0x16a746=_0x52a172(0x138)+'erate\x20a\x20'+'git\x20bran'+_0x52a172(0x151)+'for\x20the\x20'+_0x52a172(0x11c)+'describe'+_0x52a172(0x169)+'\x0a\x20\x20\x20\x20Rul'+_0x52a172(0x15c)+'-\x20Format'+':\x20<type>'+'/<kebab-'+_0x52a172(0x13a)+'cription'+_0x52a172(0x131)+'Allowed\x20'+_0x52a172(0x171)+_0x52a172(0x153)+_0x52a172(0x15b)+_0x52a172(0x16c)+_0x52a172(0x14a)+_0x52a172(0x13d)+_0x52a172(0x13f)+'mum\x20leng'+_0x52a172(0x147)+_0x52a172(0x173)+_0x52a172(0x142)+'Return\x20O'+_0x52a172(0x14e)+'branch\x20n'+_0x52a172(0x157)+_0x52a172(0x114)+_0x52a172(0x14d)+_0x52a172(0x15e)+_0x52a172(0x135)+_0x3894dd+_0x52a172(0x16f),_0x4eed6b=await _0x33405d[_0x52a172(0x120)](withProgress,_0x52a172(0x141)+_0x52a172(0x127)+_0x52a172(0x14c)+_0x52a172(0x165)+'sponse..'+'.',()=>_0x19e19a[_0x52a172(0x122)](_0x16a746)),_0x55d604=_0x33405d[_0x52a172(0x12f)](extractMessageText,_0x4eed6b[_0x52a172(0x140)]),_0x37d09d=_0x33405d['bhAaC'](sanitizeBranchName,_0x55d604);!_0x37d09d&&(_0x52a172(0x132)!==_0x33405d[_0x52a172(0x16e)]?_0x33405d[_0x52a172(0x136)](_0x5464fc,'Branch\x20a'+_0x52a172(0x124)+_0x52a172(0x16d)+_0x1fab55):failAndExit(_0x33405d[_0x52a172(0x117)]));if(_0x33405d[_0x52a172(0x12f)](branchExists,_0x37d09d)){if(_0x33405d[_0x52a172(0x155)](_0x33405d[_0x52a172(0x116)],_0x33405d['MpZid']))return _0x52a172(0x115)+_0x5bc705;else _0x33405d[_0x52a172(0x170)](failAndExit,'Branch\x20a'+'lready\x20e'+_0x52a172(0x16d)+_0x37d09d);}_0x33405d[_0x52a172(0x111)](section,'SUGGESTE'+_0x52a172(0x113)),printKeyValues([{'key':_0x33405d[_0x52a172(0x167)],'value':_0x37d09d}]);const _0x3d6804=await _0x33405d[_0x52a172(0x136)](askConfirmation,_0x33405d['MKWCo']);if(!_0x3d6804){console[_0x52a172(0x137)](_0x33405d[_0x52a172(0x156)](warn,_0x33405d['jHcYz'])+(_0x52a172(0x15d)+_0x52a172(0x14f)+_0x52a172(0x146)));return;}try{_0x33405d['XXOlL'](execFileSync,_0x33405d[_0x52a172(0x159)],[_0x33405d[_0x52a172(0x172)],'-b',_0x37d09d],{'stdio':_0x33405d[_0x52a172(0x121)]});}catch{_0x33405d[_0x52a172(0x161)](failAndExit,'Failed\x20t'+'o\x20create'+_0x52a172(0x12e));}}
1
+ function _0x44b4(_0x476587,_0x338c65){_0x476587=_0x476587-0x9d;const _0xc4ccbf=_0x5e9c();let _0x229589=_0xc4ccbf[_0x476587];return _0x229589;}(function(_0x1640dc,_0x4c2414){const _0x316a2d=_0x44b4,_0x19cb42=_0x1640dc();while(!![]){try{const _0x52abc4=parseInt(_0x316a2d(0xcf))/0x1*(-parseInt(_0x316a2d(0xcc))/0x2)+-parseInt(_0x316a2d(0xe8))/0x3+-parseInt(_0x316a2d(0xb5))/0x4+parseInt(_0x316a2d(0xc6))/0x5+-parseInt(_0x316a2d(0xf1))/0x6*(parseInt(_0x316a2d(0xd5))/0x7)+-parseInt(_0x316a2d(0xf4))/0x8*(parseInt(_0x316a2d(0xa4))/0x9)+parseInt(_0x316a2d(0xe3))/0xa*(parseInt(_0x316a2d(0xf0))/0xb);if(_0x52abc4===_0x4c2414)break;else _0x19cb42['push'](_0x19cb42['shift']());}catch(_0x39aa62){_0x19cb42['push'](_0x19cb42['shift']());}}}(_0x5e9c,0xad843));function _0x5e9c(){const _0x131db2=['yCsDP','7280230ciMHRY','sting\x20re','NcDOm','types:\x20f','xists:\x20','289581EkibtW','inking\x20a','txfOC','es:\x0a\x20\x20\x20\x20','Allowed\x20','haracter','message','jMTus','33lrJRtx','54YAlFHt','d\x20below.','describe','654840smsCDv','construc','inherit','bnLwN','th\x20this\x20','/<kebab-','AbpQm','\x0a\x20\x20\x20\x20Rul','feat/upd','Branch\x20w','Failed\x20t','log','Return\x20O','s\x0a\x20\x20\x20\x20-\x20','63tVbNlF','te\x20branc','viGvo','nglish\x0a\x0a','ame\x20in\x20E','erate\x20a\x20','\x20docs,\x20r','Branch\x20a','h\x20name.','QwpuG',':\x20<type>','gRDvi','name?\x20(y','tNiJx','apply','includes','AGlVh','3047356dukjPP','YAWbG','\x20test\x0a\x20\x20','reated.','ase','\x20branch.','+)+$','XLCpY','AI\x20is\x20th','efactor,','toLowerC','IAoDQ','ttjQu','VqMjh','invoke','git\x20bran','GnzIV','2347045efwXrB','D\x20BRANCH',',\x20chore,','UHSmj','\x20\x20\x20\x20Desc','-\x20Format','746310acLmUE','search','\x0a\x20\x20\x20\x20','1bfCFnx','slice','o\x20create','Create\x20b','replace','Name','107527sbEoDm','lready\x20e','/n):\x20','for\x20the\x20','>\x0a\x20\x20\x20\x20-\x20','toString','\x0a\x20\x20\x20\x20Gen','(((.+)+)','content','ranch\x20wi','ch\x20name\x20','git','th:\x2050\x20c'];_0x5e9c=function(){return _0x131db2;};return _0x5e9c();}const _0x50db1c=(function(){let _0x148363=!![];return function(_0x29ac5f,_0x1d4456){const _0x583121=_0x148363?function(){const _0x104fb3=_0x44b4;if(_0x1d4456){const _0x5d6454=_0x1d4456[_0x104fb3(0xb2)](_0x29ac5f,arguments);return _0x1d4456=null,_0x5d6454;}}:function(){};return _0x148363=![],_0x583121;};}()),_0x229589=_0x50db1c(this,function(){const _0x11615b=_0x44b4,_0x27e939={'gRDvi':_0x11615b(0xdc)+_0x11615b(0xbb)};return _0x229589[_0x11615b(0xda)]()['search'](_0x27e939[_0x11615b(0xaf)])[_0x11615b(0xda)]()[_0x11615b(0xf5)+'tor'](_0x229589)[_0x11615b(0xcd)](_0x27e939[_0x11615b(0xaf)]);});_0x229589();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 sanitizeBranchName(_0xe0b62d){const _0x23cd88=_0x44b4,_0x3cb44d={'yCsDP':'NFD','NFqhe':function(_0x685a2d,_0x43bccf){return _0x685a2d||_0x43bccf;},'QwpuG':_0x23cd88(0x9e)+'ate'},_0x2f99ff=_0xe0b62d['normaliz'+'e'](_0x3cb44d[_0x23cd88(0xe2)])[_0x23cd88(0xd3)](/[\u0300-\u036f]/g,'')[_0x23cd88(0xbf)+_0x23cd88(0xb9)]()[_0x23cd88(0xd3)](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')['replace'](/\/{2,}/g,'/')[_0x23cd88(0xd3)](/^-+|-+$/g,'')[_0x23cd88(0xd3)](/^\/+|\/+$/g,''),_0x4ae07a=_0x2f99ff[_0x23cd88(0xd0)](0x0,0x32)['replace'](/\/+$/g,'')['replace'](/-+$/g,''),_0x40f745=_0x3cb44d['NFqhe'](_0x4ae07a,_0x3cb44d[_0x23cd88(0xad)]);if(!_0x40f745[_0x23cd88(0xb3)]('/'))return'feat/'+_0x40f745;return _0x40f745;}function getLLM(){const _0x32e007=_0x44b4,_0x164832={'xFDhH':function(_0x58d1c4,_0x255913){return _0x58d1c4(_0x255913);},'YXMPN':function(_0x30e2dc,_0x23f8d0){return _0x30e2dc(_0x23f8d0);}};try{return createLLM();}catch(_0x1a6400){const _0x5861de=_0x1a6400 instanceof Error?_0x1a6400[_0x32e007(0xee)]:_0x164832['xFDhH'](String,_0x1a6400);_0x164832['YXMPN'](failAndExit,_0x5861de);}}export async function suggestBranch(_0x399b81){const _0x55812b=_0x44b4,_0xb21e2c={'bnLwN':function(_0x46016){return _0x46016();},'jMTus':function(_0x2a432f,_0x3c0b5c,_0x2363fd){return _0x2a432f(_0x3c0b5c,_0x2363fd);},'AbpQm':_0x55812b(0xbd)+_0x55812b(0xe9)+'nd\x20reque'+_0x55812b(0xe4)+'sponse..'+'.','tNiJx':function(_0x586f66,_0x4c9c8a){return _0x586f66(_0x4c9c8a);},'txfOC':function(_0x14b27e,_0x5ea514){return _0x14b27e(_0x5ea514);},'QDWUo':_0x55812b(0xa0)+'o\x20genera'+_0x55812b(0xa5)+_0x55812b(0xac),'UHSmj':'SUGGESTE'+_0x55812b(0xc7),'NcDOm':_0x55812b(0xd4),'ttjQu':_0x55812b(0xd2)+_0x55812b(0xde)+_0x55812b(0xf8)+_0x55812b(0xb0)+_0x55812b(0xd7),'AGlVh':'CANCELED','VqMjh':_0x55812b(0x9f)+'as\x20not\x20c'+_0x55812b(0xb8),'viGvo':_0x55812b(0xe0),'YAWbG':'checkout','GnzIV':_0x55812b(0xf6),'XLCpY':function(_0x3f96bc,_0x2e6be3){return _0x3f96bc(_0x2e6be3);},'IAoDQ':_0x55812b(0xa0)+_0x55812b(0xd1)+_0x55812b(0xba)};_0xb21e2c[_0x55812b(0xf7)](getGitStatus);const _0x14928b=getLLM(),_0x5819f6=_0x55812b(0xdb)+_0x55812b(0xa9)+_0x55812b(0xc4)+_0x55812b(0xdf)+_0x55812b(0xd8)+'feature\x20'+_0x55812b(0xf3)+_0x55812b(0xf2)+_0x55812b(0x9d)+_0x55812b(0xeb)+_0x55812b(0xcb)+_0x55812b(0xae)+_0x55812b(0xf9)+'case-des'+'cription'+_0x55812b(0xd9)+_0x55812b(0xec)+_0x55812b(0xe6)+'eat,\x20fix'+_0x55812b(0xc8)+_0x55812b(0xaa)+_0x55812b(0xbe)+_0x55812b(0xb7)+'\x20\x20-\x20Maxi'+'mum\x20leng'+_0x55812b(0xe1)+_0x55812b(0xed)+_0x55812b(0xa3)+_0x55812b(0xa2)+'NLY\x20the\x20'+'branch\x20n'+_0x55812b(0xa8)+_0x55812b(0xa7)+_0x55812b(0xca)+'ription:'+_0x55812b(0xce)+_0x399b81+'\x0a\x20\x20',_0x3eb93e=await _0xb21e2c[_0x55812b(0xef)](withProgress,_0xb21e2c[_0x55812b(0xfa)],()=>_0x14928b[_0x55812b(0xc3)](_0x5819f6)),_0x2a18e4=_0xb21e2c[_0x55812b(0xb1)](extractMessageText,_0x3eb93e[_0x55812b(0xdd)]),_0x2669dc=sanitizeBranchName(_0x2a18e4);!_0x2669dc&&_0xb21e2c[_0x55812b(0xea)](failAndExit,_0xb21e2c['QDWUo']);_0xb21e2c[_0x55812b(0xea)](branchExists,_0x2669dc)&&failAndExit(_0x55812b(0xab)+_0x55812b(0xd6)+_0x55812b(0xe7)+_0x2669dc);section(_0xb21e2c[_0x55812b(0xc9)]),printKeyValues([{'key':_0xb21e2c[_0x55812b(0xe5)],'value':_0x2669dc}]);const _0x1f478b=await askConfirmation(_0xb21e2c[_0x55812b(0xc1)]);if(!_0x1f478b){console[_0x55812b(0xa1)](warn(_0xb21e2c[_0x55812b(0xb4)],_0xb21e2c[_0x55812b(0xc2)]));return;}try{execFileSync(_0xb21e2c[_0x55812b(0xa6)],[_0xb21e2c[_0x55812b(0xb6)],'-b',_0x2669dc],{'stdio':_0xb21e2c[_0x55812b(0xc5)]});}catch{_0xb21e2c[_0x55812b(0xbc)](failAndExit,_0xb21e2c[_0x55812b(0xc0)]);}}
@@ -1 +1 @@
1
- (function(_0x2d07bc,_0x191eee){const _0x1826a9=_0x48c9,_0x222bd6=_0x2d07bc();while(!![]){try{const _0x2bc381=parseInt(_0x1826a9(0x81))/0x1+parseInt(_0x1826a9(0x9f))/0x2*(parseInt(_0x1826a9(0xc5))/0x3)+parseInt(_0x1826a9(0xf6))/0x4+-parseInt(_0x1826a9(0xca))/0x5+parseInt(_0x1826a9(0xe6))/0x6*(parseInt(_0x1826a9(0xeb))/0x7)+parseInt(_0x1826a9(0x7d))/0x8*(parseInt(_0x1826a9(0xd4))/0x9)+-parseInt(_0x1826a9(0xa7))/0xa;if(_0x2bc381===_0x191eee)break;else _0x222bd6['push'](_0x222bd6['shift']());}catch(_0x59ea78){_0x222bd6['push'](_0x222bd6['shift']());}}}(_0x1ef7,0x99c9c));const _0x49877f=(function(){const _0x3d1943=_0x48c9,_0x2486be={'uDTGq':function(_0x2ac4df){return _0x2ac4df();},'YTOyZ':_0x3d1943(0x9b)};let _0x4892a3=!![];return function(_0xb4bd61,_0x4e7087){const _0x312123=_0x3d1943;if(_0x312123(0x9b)===_0x2486be[_0x312123(0xe3)]){const _0x13dc72=_0x4892a3?function(){const _0x18c042=_0x312123;if(_0x4e7087){const _0x3af96e=_0x4e7087[_0x18c042(0x7a)](_0xb4bd61,arguments);return _0x4e7087=null,_0x3af96e;}}:function(){};return _0x4892a3=![],_0x13dc72;}else return _0x2486be[_0x312123(0xf3)](_0x1263bb);};}()),_0x562b39=_0x49877f(this,function(){const _0x4e84cc=_0x48c9,_0x299493={'KJYyb':_0x4e84cc(0xf7)+_0x4e84cc(0xea)};return _0x562b39[_0x4e84cc(0xf2)]()[_0x4e84cc(0x82)](_0x4e84cc(0xf7)+_0x4e84cc(0xea))[_0x4e84cc(0xf2)]()[_0x4e84cc(0x9e)+'tor'](_0x562b39)[_0x4e84cc(0x82)](_0x299493[_0x4e84cc(0xe2)]);});function _0x1ef7(){const _0x5a3ff4=['de\x20hashe','e\x20commit','fIwys','\x20(Featur','trim','bINPh','.md','om\x20base\x20','replace','bCmWm','Failed\x20t','File','G\x20GENERA','subject','TED','esumo\x20cu','1434471VwHapP','cas\x0a\x0aHis','secao\x20\x22C','cwd','ositive\x20','4978740BcrTIH','PfhKK','abaixo.\x0a','map','YuzXN','es,\x20Fixe','tent.','bJRGz','rkdown\x20c','used','4757949ooNXXx','ommits\x22\x20','FwjMj','NFD','MootS','ZSDsN','Invalid\x20','no\x20histo','eUFav','body','CHANGELO','\x20|\x20body:','\x20mudanca','\x20CHANGEL','KJYyb','YTOyZ','Status','ase','86004oJdEyX','\x20commits','itulo,\x20r','unknown-','+)+$','406TyTnTd','hash','isNaN','utura:\x20t','OG\x20em\x20ma','s\x20(ultim','e)\x0a-\x20Inc','toString','uDTGq','do\x20Brasi','EHxNT','1503988dEFoCd','(((.+)+)','toLowerC','apply','date','dEnpn','16YUOCyN','mwZzX','utf8','sLdnu','370782oMdvXc','search','author','lua\x20uma\x20','s\x20value.','QHxci','ecente\x20d','rate\x20cha','ngelog.','og...','a\x20curta\x20','invoke','com\x20list','l\x0a-\x20Estr','No\x20commi','commits\x20','uVQXb','StRsB','normaliz','ntos\x0a-\x20N','SwmJt','content','torico\x20r','s\x20e\x20assu','\x20|\x20','coes\x20por','MBqYV','join','rico\x20de\x20','construc','2fSRUoB','\x20to\x20gene','PkclM','message','slice','changelo','parseInt','rtugues\x20','14879660bGvyfO','-\x20Respon','te\x20mudan','aOaYR','\x20tipo\x20de','da\x20em\x20po','commits','\x20Use\x20a\x20p','Snmrb','ts\x20found','o\x20genera','te\x20chang','ao\x20inven','length'];_0x1ef7=function(){return _0x5a3ff4;};return _0x1ef7();}_0x562b39();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';function _0x48c9(_0x1f9947,_0x2a6a0d){_0x1f9947=_0x1f9947-0x7a;const _0x1a4fa0=_0x1ef7();let _0x562b39=_0x1a4fa0[_0x1f9947];return _0x562b39;}import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x193627=_0x48c9,_0x15f3e3={'bQVCH':function(_0x2d49e4){return _0x2d49e4();},'QHxci':function(_0x149d06,_0x667a67){return _0x149d06===_0x667a67;},'mwZzX':_0x193627(0xd1),'YuzXN':_0x193627(0x95),'dEnpn':function(_0x2ca522,_0x4688e9){return _0x2ca522(_0x4688e9);}};try{return _0x15f3e3['bQVCH'](createLLM);}catch(_0x187148){if(_0x15f3e3[_0x193627(0x86)](_0x15f3e3[_0x193627(0x7e)],_0x15f3e3[_0x193627(0xce)]))return _0x44b302;else{const _0x18e1f2=_0x187148 instanceof Error?_0x187148[_0x193627(0xa2)]:_0x15f3e3[_0x193627(0x7c)](String,_0x187148);_0x15f3e3[_0x193627(0x7c)](failAndExit,_0x18e1f2);}}}function sanitizeName(_0x573c2e){const _0x648ef9=_0x48c9,_0x211efd={'sLdnu':function(_0x55c8b8,_0x164e58){return _0x55c8b8||_0x164e58;},'eUFav':_0x648ef9(0xa4)+'g'},_0x4141ad=_0x573c2e[_0x648ef9(0x93)+'e'](_0x648ef9(0xd7))['replace'](/[\u0300-\u036f]/g,'')[_0x648ef9(0xf8)+_0x648ef9(0xe5)]()['replace'](/[^a-z0-9-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x648ef9(0xbd)](/^-+|-+$/g,'');return _0x211efd[_0x648ef9(0x80)](_0x4141ad,_0x211efd[_0x648ef9(0xdc)]);}function formatDateForFile(_0x676e7b){const _0x50eae5=_0x48c9;return _0x676e7b['toISOStr'+'ing']()[_0x50eae5(0xa3)](0x0,0xa);}function resolveCommitLimit(_0x36c49c){const _0x178e0f=_0x48c9,_0x4d284a={'NepPi':function(_0x39ed47,_0x3bacaf){return _0x39ed47<=_0x3bacaf;},'JbUcG':function(_0x261341,_0x4c1d09){return _0x261341(_0x4c1d09);}},_0x202279=_0x36c49c?.[_0x178e0f(0xad)]?.[_0x178e0f(0xb9)]();if(!_0x202279)return DEFAULT_COMMIT_LIMIT;const _0x960586=Number[_0x178e0f(0xa5)](_0x202279,0xa);return(Number[_0x178e0f(0xed)](_0x960586)||_0x4d284a['NepPi'](_0x960586,0x0))&&_0x4d284a['JbUcG'](failAndExit,_0x178e0f(0xda)+'--commit'+_0x178e0f(0x85)+_0x178e0f(0xae)+_0x178e0f(0xc9)+'integer.'),Math['min'](_0x960586,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x3b535f){const _0x5be893=_0x48c9,_0x4c06bc={'bINPh':_0x5be893(0xe9)+_0x5be893(0x7b),'FwjMj':_0x5be893(0xe9)+_0x5be893(0x83),'StRsB':function(_0x26e4be,_0x360b06){return _0x26e4be(_0x360b06);},'PkclM':function(_0x1c5b47,_0x8a609b){return _0x1c5b47===_0x8a609b;},'Snmrb':_0x5be893(0x8f)+_0x5be893(0xb0)+_0x5be893(0xa0)+_0x5be893(0x88)+_0x5be893(0x89)},_0x38638c=_0x4c06bc['StRsB'](getCommitHistory,_0x3b535f);return _0x4c06bc[_0x5be893(0xa1)](_0x38638c[_0x5be893(0xb4)],0x0)&&_0x4c06bc[_0x5be893(0x92)](failAndExit,_0x4c06bc[_0x5be893(0xaf)]),_0x38638c[_0x5be893(0xcd)](_0x404ce0=>{const _0x36c32f=_0x5be893,_0xb10839=_0x404ce0[_0x36c32f(0xdd)]?_0x36c32f(0xdf)+'\x20'+_0x404ce0[_0x36c32f(0xdd)]['replace'](/\s+/g,'\x20')[_0x36c32f(0xb9)]():'',_0x21509e=_0x404ce0[_0x36c32f(0x7b)]||_0x4c06bc[_0x36c32f(0xba)],_0x5cd071=_0x404ce0['author']||_0x4c06bc[_0x36c32f(0xd6)];return'-\x20'+_0x21509e+'\x20|\x20'+_0x404ce0[_0x36c32f(0xec)][_0x36c32f(0xa3)](0x0,0x7)+'\x20|\x20'+_0x5cd071+_0x36c32f(0x99)+_0x404ce0[_0x36c32f(0xc2)]+_0xb10839;})[_0x5be893(0x9c)]('\x0a');}export async function generateChangelog(_0x25a1df,_0x391493){const _0x44312a=_0x48c9,_0x4e9f96={'GXCGa':function(_0x9a6b4c){return _0x9a6b4c();},'uVQXb':function(_0x141c8a,_0x26d462){return _0x141c8a(_0x26d462);},'fIwys':function(_0x1a09c1,_0x318cce){return _0x1a09c1||_0x318cce;},'EHxNT':function(_0xb84995,_0x258688,_0x563030){return _0xb84995(_0x258688,_0x563030);},'XMOwi':'AI\x20is\x20ge'+'nerating'+'\x20changel'+_0x44312a(0x8a),'MootS':function(_0x30c754,_0x36e34a){return _0x30c754(_0x36e34a);},'bCmWm':_0x44312a(0xa4)+'gs','PfhKK':function(_0x4af0e4,_0x6efd88,_0x5d8f6a){return _0x4af0e4(_0x6efd88,_0x5d8f6a);},'gRDGo':function(_0x3462da,_0x59f650,_0x38254b,_0x5eb735){return _0x3462da(_0x59f650,_0x38254b,_0x5eb735);},'ZSDsN':_0x44312a(0x7f),'sKzjM':function(_0x4218c7,_0xb1d328){return _0x4218c7(_0xb1d328);},'cNKCY':_0x44312a(0xe4),'aOaYR':function(_0x5a9e9d,_0x4d040a){return _0x5a9e9d(_0x4d040a);},'kimRt':function(_0x1ea91a,_0x4d91db){return _0x1ea91a(_0x4d91db);}};_0x4e9f96['GXCGa'](getGitStatus);const _0x48cb60=getLLM(),_0x165497=resolveCommitLimit(_0x391493),_0x26a8ab=getCurrentBranch(),_0x1003de=_0x4e9f96[_0x44312a(0x91)](sanitizeName,_0x4e9f96[_0x44312a(0xb7)](_0x25a1df,_0x26a8ab)[_0x44312a(0xb9)]()),_0x2a2c1c=_0x4e9f96[_0x44312a(0x91)](formatDateForFile,new Date()),_0x301e7e=_0x1003de+'-'+_0x2a2c1c+_0x44312a(0xbb),_0x54ad4a=_0x4e9f96['uVQXb'](buildCommitHistoryPrompt,_0x165497),_0x54a354=('\x0aCrie\x20um'+_0x44312a(0xe1)+_0x44312a(0xef)+_0x44312a(0xd2)+_0x44312a(0xbc)+_0x44312a(0xdb)+_0x44312a(0x9d)+_0x44312a(0x90)+_0x44312a(0xcc)+'Regras:\x0a'+_0x44312a(0xa8)+_0x44312a(0xac)+_0x44312a(0xa6)+_0x44312a(0xf4)+_0x44312a(0x8e)+_0x44312a(0xee)+_0x44312a(0xe8)+_0x44312a(0xc4)+'rto\x20e\x20se'+_0x44312a(0x9a)+_0x44312a(0xab)+_0x44312a(0xe0)+_0x44312a(0xb8)+_0x44312a(0xcf)+'s,\x20Refac'+'tors,\x20Do'+'cs,\x20Chor'+_0x44312a(0xf1)+_0x44312a(0x84)+_0x44312a(0xc7)+_0x44312a(0xd5)+_0x44312a(0x8d)+_0x44312a(0x8b)+_0x44312a(0xb5)+_0x44312a(0x98)+_0x44312a(0x94)+_0x44312a(0xb3)+_0x44312a(0xa9)+_0x44312a(0xc6)+_0x44312a(0x97)+_0x44312a(0x87)+_0x44312a(0xb6)+_0x44312a(0xf0)+'os\x20'+_0x165497+(_0x44312a(0xe7)+'):\x0a')+_0x54ad4a+'\x0a')['trim'](),_0x44e741=await _0x4e9f96['EHxNT'](withProgress,_0x4e9f96['XMOwi'],()=>_0x48cb60[_0x44312a(0x8c)](_0x54a354)),_0x52bf4e=_0x4e9f96[_0x44312a(0xd8)](extractMessageText,_0x44e741[_0x44312a(0x96)]);!_0x52bf4e&&failAndExit(_0x44312a(0xbf)+_0x44312a(0xb1)+_0x44312a(0xb2)+'elog\x20con'+_0x44312a(0xd0));const _0x2cee02=_0x4e9f96[_0x44312a(0xf5)](join,process[_0x44312a(0xc8)](),_0x4e9f96[_0x44312a(0xbe)]),_0x595224=join(_0x2cee02,_0x301e7e);_0x4e9f96[_0x44312a(0xcb)](mkdirSync,_0x2cee02,{'recursive':!![]}),_0x4e9f96['gRDGo'](writeFileSync,_0x595224,_0x52bf4e['trim']()+'\x0a',_0x4e9f96[_0x44312a(0xd9)]),_0x4e9f96[_0x44312a(0xd8)](section,_0x44312a(0xde)+_0x44312a(0xc1)+_0x44312a(0xc3)),_0x4e9f96['sKzjM'](printKeyValues,[{'key':_0x4e9f96['cNKCY'],'value':_0x4e9f96[_0x44312a(0xaa)](ok,'OK')},{'key':_0x44312a(0xc0),'value':_0x595224},{'key':'Commits\x20'+_0x44312a(0xd3),'value':_0x4e9f96['kimRt'](String,_0x165497)}]);}
1
+ (function(_0x5434a2,_0x62e7e6){const _0x595ee9=_0xc6d7,_0x44dd54=_0x5434a2();while(!![]){try{const _0xc6edf9=-parseInt(_0x595ee9(0xdb))/0x1+-parseInt(_0x595ee9(0xb6))/0x2+-parseInt(_0x595ee9(0xde))/0x3*(parseInt(_0x595ee9(0xd2))/0x4)+parseInt(_0x595ee9(0xe6))/0x5+parseInt(_0x595ee9(0xbf))/0x6*(-parseInt(_0x595ee9(0xda))/0x7)+parseInt(_0x595ee9(0x98))/0x8+parseInt(_0x595ee9(0x88))/0x9;if(_0xc6edf9===_0x62e7e6)break;else _0x44dd54['push'](_0x44dd54['shift']());}catch(_0x381d38){_0x44dd54['push'](_0x44dd54['shift']());}}}(_0x2181,0x87a89));const _0xeef77b=(function(){const _0x36a0b1=_0xc6d7,_0x1f3b55={'cavLV':_0x36a0b1(0xf5),'LELMI':_0x36a0b1(0xa6),'YFxFc':_0x36a0b1(0x85),'hEGZC':_0x36a0b1(0xcb)+'g'};let _0x1bcdd1=!![];return function(_0x26d547,_0x1648c4){const _0x448478=_0x36a0b1,_0x55893a={'xTnBf':_0x1f3b55[_0x448478(0x9f)],'UNVke':function(_0x388a3e,_0x10e7a4){return _0x388a3e||_0x10e7a4;},'JdqKq':_0x1f3b55[_0x448478(0x8c)]},_0x50a06d=_0x1bcdd1?function(){const _0x49f9a9=_0x448478;if(_0x1648c4){if(_0x1f3b55['cavLV']!==_0x1f3b55[_0x49f9a9(0xbd)]){const _0x30e937=_0x1648c4['apply'](_0x26d547,arguments);return _0x1648c4=null,_0x30e937;}else{const _0x2877d6=_0x1cfc07[_0x49f9a9(0xf3)+'e'](_0x55893a[_0x49f9a9(0xff)])[_0x49f9a9(0x8b)](/[\u0300-\u036f]/g,'')[_0x49f9a9(0x8a)+'ase']()['replace'](/[^a-z0-9-]+/g,'-')[_0x49f9a9(0x8b)](/-{2,}/g,'-')[_0x49f9a9(0x8b)](/^-+|-+$/g,'');return _0x55893a[_0x49f9a9(0xbc)](_0x2877d6,_0x55893a[_0x49f9a9(0xd9)]);}}}:function(){};return _0x1bcdd1=![],_0x50a06d;};}()),_0x414b5d=_0xeef77b(this,function(){const _0x3595e1=_0xc6d7,_0x810781={'fjNvH':'(((.+)+)'+_0x3595e1(0xfc)};return _0x414b5d[_0x3595e1(0xac)]()[_0x3595e1(0xb7)](_0x810781['fjNvH'])['toString']()[_0x3595e1(0xf2)+_0x3595e1(0x94)](_0x414b5d)[_0x3595e1(0xb7)](_0x810781[_0x3595e1(0xfb)]);});_0x414b5d();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';function _0xc6d7(_0xde3cc8,_0x564dbe){_0xde3cc8=_0xde3cc8-0x84;const _0x5be0b7=_0x2181();let _0x414b5d=_0x5be0b7[_0xde3cc8];return _0x414b5d;}const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x4b7bae=_0xc6d7,_0x1d05bf={'HyCIt':function(_0x2fc3e6){return _0x2fc3e6();},'CdUgA':function(_0x216bb6,_0x5427e3){return _0x216bb6 instanceof _0x5427e3;},'ewzdY':function(_0x4bb40b,_0x2bc693){return _0x4bb40b(_0x2bc693);}};try{return _0x1d05bf[_0x4b7bae(0x8f)](createLLM);}catch(_0x259803){const _0x3f8c96=_0x1d05bf['CdUgA'](_0x259803,Error)?_0x259803['message']:String(_0x259803);_0x1d05bf[_0x4b7bae(0x89)](failAndExit,_0x3f8c96);}}function sanitizeName(_0x4d044a){const _0x167d85=_0xc6d7,_0x494c4f={'nAUBE':_0x167d85(0x85),'bJDzG':function(_0x9f0b44,_0x3a2cf7){return _0x9f0b44||_0x3a2cf7;},'FZSSu':'changelo'+'g'},_0x19eabd=_0x4d044a['normaliz'+'e'](_0x494c4f[_0x167d85(0xb9)])[_0x167d85(0x8b)](/[\u0300-\u036f]/g,'')[_0x167d85(0x8a)+_0x167d85(0xcc)]()['replace'](/[^a-z0-9-]+/g,'-')[_0x167d85(0x8b)](/-{2,}/g,'-')[_0x167d85(0x8b)](/^-+|-+$/g,'');return _0x494c4f[_0x167d85(0xf6)](_0x19eabd,_0x494c4f[_0x167d85(0xc2)]);}function _0x2181(){const _0xd8cb95=['replace','hEGZC','imszh','ao\x20inven','HyCIt','bcchT','slice','om\x20base\x20','JrQnp','tor','utf8','\x0aCrie\x20um','tors,\x20Do','5881648XGRqyu','ELNtD','es,\x20Fixe','rtugues\x20','hMFHZ','yRyXY','ycgss','YFxFc','lAXoc','No\x20commi','map','\x20tipo\x20de','mbnod','join','lFFQy','nerating','cwd','crZkt','commits','\x20|\x20','toString','no\x20histo','e)\x0a-\x20Inc','eLIuD','\x20commits','qEzaS','trim','os\x20','\x20CHANGEL','subject','468544YtBPqj','search','G\x20GENERA','nAUBE','\x20to\x20gene','Regras:\x0a','UNVke','LELMI','itulo,\x20r','6ZjOlRL','):\x0a','CHANGELO','FZSSu','biBft','\x20|\x20body:','--commit','VtXbZ','SqtDY','coes\x20por','a\x20curta\x20','de\x20hashe','changelo','ase','kXyDU','te\x20mudan','used','toISOStr','kWkuU','1363268KsVJRK','ecente\x20d','author','ing','length','integer.','\x20mudanca','JdqKq','5801579XaBenH','307072dZHnOr','Failed\x20t','Commits\x20','3Mxekty','esumo\x20cu','tvSZI','min','s,\x20Refac','tent.','isNaN','invoke','3454960YmeqaM','eynaD','WdIRX','commits\x20','elog\x20con','TED','s\x20value.','ositive\x20','body','\x20changel','Invalid\x20','dFIfO','construc','normaliz','IZLIe','zfedb','bJDzG','cas\x0a\x0aHis','ngelog.','parseInt','TOzcr','fjNvH','+)+$','lua\x20uma\x20','date','xTnBf','unknown-','qwJjT','o\x20genera','GDAXG','NFD','ts\x20found','qqKBj','7563753xKjajq','ewzdY','toLowerC'];_0x2181=function(){return _0xd8cb95;};return _0x2181();}function formatDateForFile(_0x5a43cd){const _0x566db6=_0xc6d7;return _0x5a43cd[_0x566db6(0xd0)+_0x566db6(0xd5)]()['slice'](0x0,0xa);}function resolveCommitLimit(_0x4c2f0c){const _0x36cb6f=_0xc6d7,_0x338de9={'tvSZI':_0x36cb6f(0x100)+_0x36cb6f(0xfe),'imszh':'unknown-'+_0x36cb6f(0xd4),'TOzcr':function(_0x360669,_0x30afaf){return _0x360669(_0x30afaf);},'qqKBj':function(_0x3bc682,_0x2a3034){return _0x3bc682===_0x2a3034;},'eAVAL':function(_0x3c7513,_0x53f7d6){return _0x3c7513(_0x53f7d6);},'gZGfQ':_0x36cb6f(0xa1)+_0x36cb6f(0x86)+_0x36cb6f(0xba)+'rate\x20cha'+_0x36cb6f(0xf8),'crZkt':_0x36cb6f(0xf0)+_0x36cb6f(0xc5)+_0x36cb6f(0xec)+'\x20Use\x20a\x20p'+_0x36cb6f(0xed)+'integer.','GDAXG':function(_0x4866b5,_0x3c7162){return _0x4866b5!==_0x3c7162;},'qwJjT':_0x36cb6f(0xaf),'WsBlO':function(_0x3df144,_0x3f3144){return _0x3df144<=_0x3f3144;},'WdIRX':_0x36cb6f(0x93),'qEzaS':function(_0x4c88b0,_0x5b5ef){return _0x4c88b0(_0x5b5ef);}},_0x40523e=_0x4c2f0c?.[_0x36cb6f(0xaa)]?.['trim']();if(!_0x40523e){if(_0x338de9[_0x36cb6f(0x84)](_0x338de9[_0x36cb6f(0x101)],_0x338de9[_0x36cb6f(0x101)])){const _0x213aa9=_0x338de9[_0x36cb6f(0xfa)](_0x536b33,_0x29276d);return _0x338de9[_0x36cb6f(0x87)](_0x213aa9[_0x36cb6f(0xd6)],0x0)&&_0x338de9['eAVAL'](_0x243ea8,_0x338de9['gZGfQ']),_0x213aa9[_0x36cb6f(0xa2)](_0x3669d2=>{const _0x1c832c=_0x36cb6f,_0x369c63=_0x3669d2[_0x1c832c(0xee)]?'\x20|\x20body:'+'\x20'+_0x3669d2[_0x1c832c(0xee)][_0x1c832c(0x8b)](/\s+/g,'\x20')[_0x1c832c(0xb2)]():'',_0x5e7848=_0x3669d2['date']||_0x338de9[_0x1c832c(0xe0)],_0x2aa1fa=_0x3669d2[_0x1c832c(0xd4)]||_0x338de9[_0x1c832c(0x8d)];return'-\x20'+_0x5e7848+_0x1c832c(0xab)+_0x3669d2['hash']['slice'](0x0,0x7)+_0x1c832c(0xab)+_0x2aa1fa+_0x1c832c(0xab)+_0x3669d2[_0x1c832c(0xb5)]+_0x369c63;})[_0x36cb6f(0xa5)]('\x0a');}else return DEFAULT_COMMIT_LIMIT;}const _0x4f32b0=Number[_0x36cb6f(0xf9)](_0x40523e,0xa);return(Number[_0x36cb6f(0xe4)](_0x4f32b0)||_0x338de9['WsBlO'](_0x4f32b0,0x0))&&(_0x338de9[_0x36cb6f(0xe8)]===_0x338de9[_0x36cb6f(0xe8)]?_0x338de9[_0x36cb6f(0xb1)](failAndExit,_0x36cb6f(0xf0)+'--commit'+_0x36cb6f(0xec)+'\x20Use\x20a\x20p'+_0x36cb6f(0xed)+_0x36cb6f(0xd7)):_0x338de9[_0x36cb6f(0xfa)](_0x252ec,_0x338de9[_0x36cb6f(0xa9)])),Math[_0x36cb6f(0xe1)](_0x4f32b0,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x2ff3fa){const _0x369222=_0xc6d7,_0x27c5df={'dFIfO':_0x369222(0x100)+_0x369222(0xfe),'IZLIe':'unknown-'+_0x369222(0xd4),'kWkuU':function(_0x2a59b1,_0x5e10cd){return _0x2a59b1(_0x5e10cd);},'SqtDY':_0x369222(0xa1)+_0x369222(0x86)+_0x369222(0xba)+'rate\x20cha'+'ngelog.'},_0x5a12c2=getCommitHistory(_0x2ff3fa);return _0x5a12c2[_0x369222(0xd6)]===0x0&&_0x27c5df[_0x369222(0xd1)](failAndExit,_0x27c5df[_0x369222(0xc7)]),_0x5a12c2[_0x369222(0xa2)](_0x294b41=>{const _0x5531c4=_0x369222,_0x3cb53b=_0x294b41[_0x5531c4(0xee)]?_0x5531c4(0xc4)+'\x20'+_0x294b41[_0x5531c4(0xee)]['replace'](/\s+/g,'\x20')[_0x5531c4(0xb2)]():'',_0x5df055=_0x294b41['date']||_0x27c5df[_0x5531c4(0xf1)],_0x4ae4cc=_0x294b41[_0x5531c4(0xd4)]||_0x27c5df[_0x5531c4(0xf4)];return'-\x20'+_0x5df055+_0x5531c4(0xab)+_0x294b41['hash'][_0x5531c4(0x91)](0x0,0x7)+'\x20|\x20'+_0x4ae4cc+_0x5531c4(0xab)+_0x294b41[_0x5531c4(0xb5)]+_0x3cb53b;})['join']('\x0a');}export async function generateChangelog(_0x20f846,_0x29f742){const _0x467f46=_0xc6d7,_0x310d28={'hMFHZ':function(_0x1a5b15){return _0x1a5b15();},'eynaD':function(_0x255838,_0x247c4d){return _0x255838(_0x247c4d);},'lAXoc':function(_0x381b21,_0xf7c5e2){return _0x381b21||_0xf7c5e2;},'ycgss':function(_0x311579,_0x3e5a01,_0x54f950){return _0x311579(_0x3e5a01,_0x54f950);},'bcchT':'AI\x20is\x20ge'+_0x467f46(0xa7)+_0x467f46(0xef)+'og...','VtXbZ':function(_0x3dbe09,_0xf044a5,_0x5915c0){return _0x3dbe09(_0xf044a5,_0x5915c0);},'biBft':function(_0x46446d,_0x27478c,_0x49de31,_0x3ecd2d){return _0x46446d(_0x27478c,_0x49de31,_0x3ecd2d);},'QYZef':_0x467f46(0x95),'kXyDU':_0x467f46(0xc1)+_0x467f46(0xb8)+_0x467f46(0xeb),'yRyXY':'Status','ELNtD':function(_0x15d1b5,_0x575fd3){return _0x15d1b5(_0x575fd3);},'mbnod':'File','AddRp':_0x467f46(0xdd)+_0x467f46(0xcf)};_0x310d28[_0x467f46(0x9c)](getGitStatus);const _0x470081=_0x310d28[_0x467f46(0x9c)](getLLM),_0x34e10a=resolveCommitLimit(_0x29f742),_0x4cf225=_0x310d28['hMFHZ'](getCurrentBranch),_0xda2cfc=_0x310d28['eynaD'](sanitizeName,_0x310d28[_0x467f46(0xa0)](_0x20f846,_0x4cf225)[_0x467f46(0xb2)]()),_0x357ab0=formatDateForFile(new Date()),_0x53f4b8=_0xda2cfc+'-'+_0x357ab0+'.md',_0x2909f9=_0x310d28[_0x467f46(0xe7)](buildCommitHistoryPrompt,_0x34e10a),_0x50d32d=(_0x467f46(0x96)+_0x467f46(0xb4)+'OG\x20em\x20ma'+'rkdown\x20c'+_0x467f46(0x92)+_0x467f46(0xad)+'rico\x20de\x20'+_0x467f46(0xe9)+'abaixo.\x0a'+_0x467f46(0xbb)+'-\x20Respon'+'da\x20em\x20po'+_0x467f46(0x9b)+'do\x20Brasi'+'l\x0a-\x20Estr'+'utura:\x20t'+_0x467f46(0xbe)+_0x467f46(0xdf)+'rto\x20e\x20se'+_0x467f46(0xc8)+_0x467f46(0xa3)+_0x467f46(0xd8)+'\x20(Featur'+_0x467f46(0x9a)+_0x467f46(0xe2)+_0x467f46(0x97)+'cs,\x20Chor'+_0x467f46(0xae)+_0x467f46(0xfd)+'secao\x20\x22C'+'ommits\x22\x20'+'com\x20list'+_0x467f46(0xc9)+_0x467f46(0xca)+'s\x20e\x20assu'+'ntos\x0a-\x20N'+_0x467f46(0x8e)+_0x467f46(0xce)+_0x467f46(0xf7)+'torico\x20r'+_0x467f46(0xd3)+'e\x20commit'+'s\x20(ultim'+_0x467f46(0xb3)+_0x34e10a+(_0x467f46(0xb0)+_0x467f46(0xc0))+_0x2909f9+'\x0a')[_0x467f46(0xb2)](),_0x261121=await _0x310d28['ycgss'](withProgress,_0x310d28[_0x467f46(0x90)],()=>_0x470081[_0x467f46(0xe5)](_0x50d32d)),_0x4f828c=_0x310d28[_0x467f46(0xe7)](extractMessageText,_0x261121['content']);!_0x4f828c&&_0x310d28['eynaD'](failAndExit,_0x467f46(0xdc)+_0x467f46(0x102)+'te\x20chang'+_0x467f46(0xea)+_0x467f46(0xe3));const _0x2403ba=_0x310d28[_0x467f46(0xc6)](join,process[_0x467f46(0xa8)](),_0x467f46(0xcb)+'gs'),_0x5f1921=_0x310d28[_0x467f46(0x9e)](join,_0x2403ba,_0x53f4b8);mkdirSync(_0x2403ba,{'recursive':!![]}),_0x310d28[_0x467f46(0xc3)](writeFileSync,_0x5f1921,_0x4f828c[_0x467f46(0xb2)]()+'\x0a',_0x310d28['QYZef']),_0x310d28[_0x467f46(0xe7)](section,_0x310d28[_0x467f46(0xcd)]),_0x310d28[_0x467f46(0xe7)](printKeyValues,[{'key':_0x310d28[_0x467f46(0x9d)],'value':_0x310d28[_0x467f46(0x99)](ok,'OK')},{'key':_0x310d28[_0x467f46(0xa4)],'value':_0x5f1921},{'key':_0x310d28['AddRp'],'value':_0x310d28[_0x467f46(0x99)](String,_0x34e10a)}]);}
@@ -1 +1 @@
1
- (function(_0x4d5906,_0x2ba1db){const _0x1785b2=_0xae90,_0x1ff8e6=_0x4d5906();while(!![]){try{const _0x4f6dd6=parseInt(_0x1785b2(0xe3))/0x1+-parseInt(_0x1785b2(0x19b))/0x2+parseInt(_0x1785b2(0x14f))/0x3+-parseInt(_0x1785b2(0x157))/0x4+parseInt(_0x1785b2(0x14b))/0x5*(parseInt(_0x1785b2(0x196))/0x6)+-parseInt(_0x1785b2(0x19e))/0x7+-parseInt(_0x1785b2(0x17e))/0x8*(parseInt(_0x1785b2(0x119))/0x9);if(_0x4f6dd6===_0x2ba1db)break;else _0x1ff8e6['push'](_0x1ff8e6['shift']());}catch(_0x58309e){_0x1ff8e6['push'](_0x1ff8e6['shift']());}}}(_0x4ac3,0x7fbdc));const _0x4d4583=(function(){const _0x54214e=_0xae90,_0x4e401a={'obGHu':_0x54214e(0x16c)+_0x54214e(0x11a)+_0x54214e(0xdb)+'t\x20messag'+'e.','pbwZt':function(_0x33b4c0,_0x5699e0){return _0x33b4c0!==_0x5699e0;}};let _0x16dea3=!![];return function(_0x1eb0d8,_0x3e77ed){const _0x1c0afc=_0x54214e,_0x564864={'jeKeP':function(_0x3932c3,_0x327c53){return _0x3932c3(_0x327c53);},'HPYnk':_0x4e401a[_0x1c0afc(0x130)],'cENOT':function(_0x506c93,_0x27420d){const _0x4d1ee5=_0x1c0afc;return _0x4e401a[_0x4d1ee5(0xca)](_0x506c93,_0x27420d);},'pUBuA':_0x1c0afc(0xe1)},_0x312dd9=_0x16dea3?function(){const _0x21f3f4=_0x1c0afc,_0x4e2b7d={'fmOJT':function(_0x1efeae,_0x5d08b6){const _0x10c86b=_0xae90;return _0x564864[_0x10c86b(0x11d)](_0x1efeae,_0x5d08b6);},'wviTZ':_0x564864[_0x21f3f4(0x107)]};if(_0x3e77ed){if(_0x564864[_0x21f3f4(0x1d0)](_0x21f3f4(0x154),_0x564864['pUBuA'])){const _0x344cac=_0x3e77ed[_0x21f3f4(0x136)](_0x1eb0d8,arguments);return _0x3e77ed=null,_0x344cac;}else _0x4e2b7d[_0x21f3f4(0x1c5)](_0x1a68a1,_0x4e2b7d['wviTZ']);}}:function(){};return _0x16dea3=![],_0x312dd9;};}()),_0x3e5a85=_0x4d4583(this,function(){const _0x2d0eb7=_0xae90,_0x301742={'GXtyD':_0x2d0eb7(0x111)+'+)+$'};return _0x3e5a85['toString']()[_0x2d0eb7(0xdd)](_0x301742['GXtyD'])[_0x2d0eb7(0x1dd)]()[_0x2d0eb7(0xf0)+_0x2d0eb7(0x129)](_0x3e5a85)['search'](_0x2d0eb7(0x111)+_0x2d0eb7(0x1ae));});_0x3e5a85();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation,askEditableInput}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,warn,withProgress}from'../ui.js';function _0x4ac3(){const _0x8b3f3e=['hZDdU','OPznn','Diff\x20sta','and\x20upst','184WRRUDq','wfIYw','refactor','3.\x20SUGGE','NLhhL','o\x20push\x20\x22','OMevM','OftqK','WARNING','uMrUC','ne\x20Conve','sent','MvqYp','d\x20files.','ithout\x20c','ges\x20(git','LJeLB','mit\x20mess','stream','log','jEGzk','ormat:\x20<','ion):\x20','Consider','6708jUnZnf','ng\x20into\x20','\x20staged\x20','g\x20commit','created.','430998uhtSql','...','Staged\x20f','1118943jOtmDN','\x20Prompt\x20','nch\x20\x22','all','every','Final\x20co','\x20more','YgyjU','No\x20file\x20','renamed','taged\x20ch','ype\x20unle','nPTRv','lint','map','XXXun','+)+$','\x20modifie','sponse..','files','Detected','run\x20`gem','commit','AI\x20is\x20th','am?\x20(y/N','docs','modified','oSlEh','Push\x20cur','\x0a\x0aPatch\x20','BZaot','gPoBi','Summary','ImoiS','length','--set-up','age\x20(pre','ns\x0a\x0aStag','n\x20Englis','fmOJT','\x20Abortin','ns.\x20','):\x20','ons,\x20','likely\x20t','iles','\x22\x20now?\x20(','YHjfO','\x20commits','tected.\x20','cENOT','e:\x20','tCQEG','\x20Staged\x20','\x0a\x0aDiff\x20s','Commit\x20m','all\x20chan','\x20renamed','ode\x20fenc','content','args','excerpt','OdSUR','toString','PaZVP','remote\x20c','Commit\x20u','qOTcn','inherit','dvEBL','ted)','paths\x20av','EOtcj','pbwZt','\x0a-\x20Keep\x20','subject>','aTzjb','not\x20avai','ed.','4.\x20CONFI','chore','irst\x20or\x20','fJOhV','UPNiQ','planatio','startsWi','feat','ase','WegRS','GKXkr','te\x20commi','patchCha','search','fkNTZ','other\x20on','and\x20spec','ClSor','d\x20commit','350985MrXluE','UFDyL','hpgAD','sting\x20re','LYjdQ','ltPGU','mmit','\x20Push\x20co','CANCELED','\x20Commit\x20','sing\x20thi','lude\x20a\x20t','tRbYJ','construc','mpleted\x20','\x20Running','fix','figured\x20','branch','other','\x20complet','label','gests\x20an','\x20inserti','TIP','essage\x20i','eturn\x20ON','pKELe','sxXoG','TsiCu','xcerpt.','ZepXu','quytJ','puVTB','1.\x20STAGE','slice','HPYnk','\x20added,\x20','\x0a-\x20Use\x20f','dIcWD','s\x20messag','insertio','pAfIV','\x20chars).','\x20splitti','was\x20not\x20','(((.+)+)','subject\x20','EwgMM','inking\x20a','Start\x20wi','ules:\x0a-\x20','metrics','MQbqe','226539CkOklf','o\x20genera','Edit\x20com','status','jeKeP','2.\x20SUMMA','--if-pre','Mncbi','CHECK','test','\x20failed.','AmiBy','run','eam\x20foun','y/N):\x20','tat:\x0a','tor','h\x20based\x20','\x20type','join','ZJjdL','YUXUr','t\x20messag','obGHu','WKChV','RIZE','fileCoun','remote','\x0a\x0aShort\x20','apply','\x20deletio','endsWith','NzMfY','\x20files\x20c','FyrrI','th\x20this\x20','WloKF','tYiKn','runcated','fullName','to\x20','\x20suggest','ntional\x20','PQbce','anges.\x0aR','vdgaL','deletion','\x20commit.','diffStat','d.\x20Push\x20','3505mERucx','bFbpL','tional-s','path','1376871NCswpt','\x20No\x20git\x20','SsfHc','ssage,\x20w','git','dguJG','files\x20de','WyKZM','464604ZQtUKU','Suggeste','type>(op','npm.cmd','concise\x20','taged\x20di','\x20add\x20.).','LY\x20the\x20c','zHMXh','d,\x20','\x20Check\x20i','SgwFb','ss\x20Enter','\x22\x20to\x20\x22','ZDJRz','summary:','truncate','added','\x0aWrite\x20o','SKIPPED','t\x20--all`','Failed\x20t','\x20(trunca','\x20to\x20keep','VemJy','onfigure','tGgcC','ff\x20(','(none)','ZjWPv','rvWOv','deleted','hanges\x20f','ailable.','jaBUU'];_0x4ac3=function(){return _0x8b3f3e;};return _0x4ac3();}const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x37e18d=_0xae90,_0x469640={'hZDdU':function(_0x14b359){return _0x14b359();},'ltPGU':function(_0x5b9d00,_0x5a459b){return _0x5b9d00 instanceof _0x5a459b;},'ZDJRz':function(_0x9e5779,_0x276536){return _0x9e5779(_0x276536);}};try{return _0x469640[_0x37e18d(0x17a)](createLLM);}catch(_0xd18601){const _0x2bbea8=_0x469640[_0x37e18d(0xe8)](_0xd18601,Error)?_0xd18601['message']:_0x469640[_0x37e18d(0x165)](String,_0xd18601);_0x469640['ZDJRz'](failAndExit,_0x2bbea8);}}function countByStatus(_0x135545){const _0x2f9ff0=_0xae90,_0x5b9522={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x3f7976 of _0x135545[_0x2f9ff0(0x1b1)]){if(_0x3f7976[_0x2f9ff0(0x11c)][_0x2f9ff0(0xd6)+'th']('A')){_0x5b9522[_0x2f9ff0(0x168)]+=0x1;continue;}if(_0x3f7976[_0x2f9ff0(0x11c)]['startsWi'+'th']('M')){_0x5b9522[_0x2f9ff0(0x1b8)]+=0x1;continue;}if(_0x3f7976[_0x2f9ff0(0x11c)][_0x2f9ff0(0xd6)+'th']('D')){_0x5b9522['deleted']+=0x1;continue;}if(_0x3f7976[_0x2f9ff0(0x11c)][_0x2f9ff0(0xd6)+'th']('R')){_0x5b9522[_0x2f9ff0(0x1a7)]+=0x1;continue;}_0x5b9522[_0x2f9ff0(0xf6)]+=0x1;}return _0x5b9522;}function detectCommitType(_0x5d6489){const _0x39f606=_0xae90,_0x3794ea={'EOtcj':_0x39f606(0x1e2),'PQbce':function(_0x158173,_0x50934b){return _0x158173(_0x50934b);},'WegRS':function(_0x23954b,_0x30c214){return _0x23954b>_0x30c214;},'VsPFP':_0x39f606(0x1b7),'OIaau':function(_0x1b11b0,_0x58d189){return _0x1b11b0>_0x58d189;},'KRbca':function(_0x43f761,_0x2f32ad){return _0x43f761>_0x2f32ad;},'WyKZM':function(_0x12667b,_0x2e1d69){return _0x12667b===_0x2e1d69;},'nPTRv':_0x39f606(0xd1),'SsfHc':function(_0x4e37ea,_0x4fbb98){return _0x4e37ea>=_0x4fbb98;},'dIcWD':function(_0x25320f,_0x4ce68f){return _0x25320f>_0x4ce68f;},'AcQgN':'dmmTa','aWefe':_0x39f606(0xd7),'AmiBy':_0x39f606(0xf3),'YUhtN':_0x39f606(0x180)},_0xb95af7=_0x5d6489[_0x39f606(0x1b1)][_0x39f606(0x1ac)](_0x4244c2=>_0x4244c2[_0x39f606(0x14e)]['toLowerC'+_0x39f606(0xd8)]()),_0x4338d7=_0x3794ea[_0x39f606(0x144)](countByStatus,_0x5d6489);if(_0x3794ea[_0x39f606(0xd9)](_0xb95af7[_0x39f606(0x1c0)],0x0)&&_0xb95af7[_0x39f606(0x1a2)](_0x5473b9=>/(^|\/)(readme|docs?|changelog)/['test'](_0x5473b9)||_0x5473b9[_0x39f606(0x138)]('.md')))return _0x3794ea['VsPFP'];if(_0x3794ea['OIaau'](_0xb95af7['length'],0x0)&&_0xb95af7[_0x39f606(0x1a2)](_0x244db1=>/(^|\/)(test|tests|__tests__|spec)/[_0x39f606(0x122)](_0x244db1)||/\.(spec|test)\./[_0x39f606(0x122)](_0x244db1)))return _0x39f606(0x122);if(_0x3794ea['KRbca'](_0x4338d7[_0x39f606(0x176)],0x0)&&_0x3794ea[_0x39f606(0x156)](_0x4338d7['added'],0x0)&&_0x3794ea[_0x39f606(0x156)](_0x4338d7['modified'],0x0))return _0x3794ea[_0x39f606(0x1aa)];if(_0x3794ea[_0x39f606(0x151)](_0x4338d7[_0x39f606(0x168)],_0x4338d7['modified'])&&_0x3794ea[_0x39f606(0x10a)](_0x4338d7[_0x39f606(0x168)],0x0)){if(_0x3794ea['WyKZM'](_0x3794ea['AcQgN'],_0x3794ea['AcQgN']))return _0x3794ea['aWefe'];else{_0x13c285['log'](_0x4f8efa('CHECK')+(_0x39f606(0xf2)+'\x20')+_0x5bf427[_0x39f606(0xf8)]+_0x39f606(0x19c));try{_0x134cd7(_0x524c55,_0x4743ed[_0x39f606(0x1da)],{'stdio':_0x3794ea[_0x39f606(0xc9)]}),_0x8795af[_0x39f606(0x191)](_0x3794ea['PQbce'](_0xeef6b4,'OK')+'\x20'+_0x3b61a2[_0x39f606(0xf8)]+(_0x39f606(0xf7)+_0x39f606(0xcf)));}catch{_0x16b95e(_0x433956['label']+(_0x39f606(0x123)+_0x39f606(0x1c6)+_0x39f606(0x199)+'.'));}}}if(_0x4338d7[_0x39f606(0x1b8)]>0x0&&_0x5d6489[_0x39f606(0x117)][_0x39f606(0x10c)+'ns']<=_0x5d6489['metrics'][_0x39f606(0x147)+'s'])return _0x3794ea[_0x39f606(0x124)];return _0x3794ea['YUhtN'];}function summarizeChanges(_0x262d00){const _0x29e18a=_0xae90,_0x26c089={'OdSUR':function(_0x4106f4,_0x336b6a){return _0x4106f4(_0x336b6a);},'SgwFb':function(_0x269f56,_0x446ce6){return _0x269f56>_0x446ce6;},'pKELe':function(_0x1193bd,_0x49a824){return _0x1193bd-_0x49a824;},'OMevM':function(_0x73273b,_0x1703bc){return _0x73273b||_0x1703bc;}},_0x2f1a10=_0x26c089[_0x29e18a(0x1dc)](countByStatus,_0x262d00),_0x5dc6d2=_0x262d00[_0x29e18a(0x1b1)][_0x29e18a(0x106)](0x0,0x3)[_0x29e18a(0x1ac)](_0x562b9d=>_0x562b9d[_0x29e18a(0x14e)]),_0x3fc7d1=_0x26c089[_0x29e18a(0x162)](_0x262d00['files'][_0x29e18a(0x1c0)],0x3)?_0x5dc6d2['join'](',\x20')+'\x20+'+_0x26c089[_0x29e18a(0xfe)](_0x262d00['files'][_0x29e18a(0x1c0)],0x3)+_0x29e18a(0x1a4):_0x5dc6d2[_0x29e18a(0x12c)](',\x20');return _0x262d00[_0x29e18a(0x117)][_0x29e18a(0x133)+'t']+(_0x29e18a(0x13a)+'hanged\x20(')+_0x2f1a10[_0x29e18a(0x168)]+_0x29e18a(0x108)+_0x2f1a10[_0x29e18a(0x1b8)]+(_0x29e18a(0x1af)+_0x29e18a(0x160))+_0x2f1a10[_0x29e18a(0x176)]+('\x20deleted'+',\x20')+_0x2f1a10[_0x29e18a(0x1a7)]+(_0x29e18a(0x1d7)+'),\x20')+_0x262d00['metrics'][_0x29e18a(0x10c)+'ns']+(_0x29e18a(0xfa)+_0x29e18a(0x1c9))+_0x262d00[_0x29e18a(0x117)][_0x29e18a(0x147)+'s']+(_0x29e18a(0x137)+_0x29e18a(0x1c7))+_0x26c089[_0x29e18a(0x184)](_0x3fc7d1,_0x29e18a(0x1a6)+_0x29e18a(0xc8)+_0x29e18a(0x178));}function formatStagedFiles(_0x2ba7f4){const _0x4ae001=_0xae90;return _0x2ba7f4[_0x4ae001(0x1b1)][_0x4ae001(0x1ac)](_0x268be3=>'-\x20'+_0x268be3[_0x4ae001(0x11c)]+'\x20'+_0x268be3[_0x4ae001(0x14e)])['join']('\x0a');}function runOptionalChecks(){const _0x15f7d5=_0xae90,_0xd9c292={'VemJy':function(_0x4253de,_0xcf5ba0){return _0x4253de(_0xcf5ba0);},'NzMfY':function(_0x18fa9c,_0x786c91){return _0x18fa9c===_0x786c91;},'mLetu':'win32','UFDyL':'npm','ZjWPv':_0x15f7d5(0x1ab),'MvqYp':_0x15f7d5(0x11f)+_0x15f7d5(0x189),'GncQD':_0x15f7d5(0x125),'qOTcn':_0x15f7d5(0x122),'OPznn':_0x15f7d5(0x121),'aTzjb':'fAcPb'},_0x5a5d13=_0xd9c292[_0x15f7d5(0x139)](process['platform'],_0xd9c292['mLetu'])?_0x15f7d5(0x15a):_0xd9c292[_0x15f7d5(0xe4)],_0x4e1bfd=[{'label':_0xd9c292[_0x15f7d5(0x174)],'args':[_0x15f7d5(0x125),'lint',_0xd9c292[_0x15f7d5(0x18a)]]},{'label':_0x15f7d5(0x122),'args':[_0xd9c292['GncQD'],_0xd9c292[_0x15f7d5(0x1e1)],_0xd9c292[_0x15f7d5(0x18a)]]}];for(const _0x3b12b1 of _0x4e1bfd){console[_0x15f7d5(0x191)](_0xd9c292[_0x15f7d5(0x16f)](info,_0xd9c292[_0x15f7d5(0x17b)])+(_0x15f7d5(0xf2)+'\x20')+_0x3b12b1[_0x15f7d5(0xf8)]+'...');try{execFileSync(_0x5a5d13,_0x3b12b1[_0x15f7d5(0x1da)],{'stdio':_0x15f7d5(0x1e2)}),console['log'](ok('OK')+'\x20'+_0x3b12b1[_0x15f7d5(0xf8)]+(_0x15f7d5(0xf7)+_0x15f7d5(0xcf)));}catch{_0xd9c292[_0x15f7d5(0xcd)]===_0xd9c292['aTzjb']?_0xd9c292[_0x15f7d5(0x16f)](failAndExit,_0x3b12b1[_0x15f7d5(0xf8)]+(_0x15f7d5(0x123)+_0x15f7d5(0x1c6)+_0x15f7d5(0x199)+'.')):_0xd9c292[_0x15f7d5(0x16f)](_0xbbd980,_0x15f7d5(0x16c)+_0x15f7d5(0x183)+_0x2a7ae7+'\x22\x20to\x20\x22'+_0x58b9a6+'\x22.');}}}function _0xae90(_0x3e7aeb,_0x297f6f){_0x3e7aeb=_0x3e7aeb-0xc8;const _0x23b2ea=_0x4ac3();let _0x3e5a85=_0x23b2ea[_0x3e7aeb];return _0x3e5a85;}async function maybePushCurrentBranch(){const _0x41e687=_0xae90,_0x47e475={'tDGoX':_0x41e687(0x1b7),'LYjdQ':function(_0x476519){return _0x476519();},'GKXkr':function(_0x59b6ff,_0x409d63){return _0x59b6ff(_0x409d63);},'rWDPZ':function(_0x2de302,_0x29be92){return _0x2de302===_0x29be92;},'jEGzk':_0x41e687(0x13e),'tGgcC':_0x41e687(0xde),'PaZVP':function(_0x49caef,_0x474b89,_0xe0c4e,_0x5eab69){return _0x49caef(_0x474b89,_0xe0c4e,_0x5eab69);},'UPNiQ':'push','zQyaR':_0x41e687(0x1e2),'vdgaL':function(_0x110eed,_0x2cadce){return _0x110eed(_0x2cadce);},'FyrrI':function(_0x47396a,_0x3126f1,_0x1ce8a6,_0x5d91cb){return _0x47396a(_0x3126f1,_0x1ce8a6,_0x5d91cb);},'WKChV':_0x41e687(0x153),'tRbYJ':_0x41e687(0x1c1)+_0x41e687(0x190),'NLhhL':function(_0x2c456e,_0x5e7657){return _0x2c456e(_0x5e7657);}},_0x3366d6=_0x47e475[_0x41e687(0xe7)](getCurrentBranch),_0x45a54a=getUpstreamInfo();if(_0x45a54a){const _0x3798e6=await _0x47e475['GKXkr'](askConfirmation,_0x41e687(0x1ba)+'rent\x20bra'+_0x41e687(0x1a0)+_0x3366d6+_0x41e687(0x164)+_0x45a54a[_0x41e687(0x140)]+(_0x41e687(0x1cc)+_0x41e687(0x127)));if(!_0x3798e6){if(_0x47e475['rWDPZ'](_0x47e475[_0x41e687(0x192)],_0x47e475[_0x41e687(0x171)]))return gXfzOi['tDGoX'];else return;}try{_0x47e475[_0x41e687(0x1de)](execFileSync,_0x41e687(0x153),[_0x47e475[_0x41e687(0xd4)],_0x45a54a[_0x41e687(0x134)],_0x3366d6+':'+_0x45a54a[_0x41e687(0xf5)]],{'stdio':_0x47e475['zQyaR']}),console[_0x41e687(0x191)](_0x47e475[_0x41e687(0xda)](ok,'OK')+(_0x41e687(0xea)+_0x41e687(0xf1)+_0x41e687(0x141))+_0x45a54a['fullName']+'.');}catch{_0x47e475[_0x41e687(0x146)](failAndExit,_0x41e687(0x16c)+'o\x20push\x20t'+'o\x20'+_0x45a54a[_0x41e687(0x140)]+'.');}return;}const _0x423284=_0x47e475[_0x41e687(0xe7)](getDefaultRemote);if(!_0x423284){console[_0x41e687(0x191)](_0x47e475[_0x41e687(0x146)](warn,_0x41e687(0x16a))+(_0x41e687(0x150)+_0x41e687(0x1df)+_0x41e687(0x170)+_0x41e687(0x14a)+_0x41e687(0xce)+'lable.'));return;}const _0x38736f=await askConfirmation('No\x20upstr'+_0x41e687(0x126)+_0x41e687(0x14a)+'\x22'+_0x3366d6+_0x41e687(0x164)+_0x423284+'/'+_0x3366d6+('\x22\x20and\x20se'+'t\x20upstre'+_0x41e687(0x1b6)+_0x41e687(0x1c8)));if(!_0x38736f)return;try{_0x47e475[_0x41e687(0x13b)](execFileSync,_0x47e475[_0x41e687(0x131)],[_0x47e475['UPNiQ'],_0x47e475[_0x41e687(0xef)],_0x423284,_0x3366d6],{'stdio':_0x41e687(0x1e2)}),console[_0x41e687(0x191)](_0x47e475[_0x41e687(0x182)](ok,'OK')+('\x20Push\x20co'+_0x41e687(0xf1)+_0x41e687(0x17d)+'ream\x20con'+_0x41e687(0xf4)+'(')+_0x423284+'/'+_0x3366d6+').');}catch{failAndExit(_0x41e687(0x16c)+'o\x20push\x20\x22'+_0x3366d6+_0x41e687(0x164)+_0x423284+'\x22.');}}export async function generateCommit(_0x35cea1={}){const _0xdcb6ec=_0xae90,_0x520750={'sxXoG':_0xdcb6ec(0xd1),'rvWOv':function(_0x2dc6a3){return _0x2dc6a3();},'bFbpL':function(_0x330109,_0x246b51){return _0x330109(_0x246b51);},'ImoiS':'cHJtn','YHjfO':function(_0xde0781,_0x28ab24){return _0xde0781(_0x28ab24);},'XXXun':'No\x20stage'+_0xdcb6ec(0x18b)+'\x20Stage\x20c'+_0xdcb6ec(0x177)+_0xdcb6ec(0xd2)+_0xdcb6ec(0x1b3)+'it\x20commi'+_0xdcb6ec(0x16b)+'.','oSlEh':function(_0x4593d2,_0x38af44){return _0x4593d2(_0x38af44);},'HlwMV':_0xdcb6ec(0xfb),'YgyjU':function(_0x2950f7,_0x249964,_0x58acbe){return _0x2950f7(_0x249964,_0x58acbe);},'hpgAD':_0xdcb6ec(0x19d)+_0xdcb6ec(0x1cb),'puVTB':_0xdcb6ec(0x1be),'pAfIV':_0xdcb6ec(0x1b2)+_0xdcb6ec(0x12b),'EwgMM':_0xdcb6ec(0x17c)+'t','uMrUC':_0xdcb6ec(0x173),'dvEBL':_0xdcb6ec(0x186),'zHMXh':function(_0x4252ff,_0x3b973f){return _0x4252ff(_0x3b973f);},'WloKF':_0xdcb6ec(0x16d)+_0xdcb6ec(0x1e4),'LJeLB':_0xdcb6ec(0x181)+'ST','Mncbi':function(_0x29066f,_0x12e030,_0x2f127a){return _0x29066f(_0x12e030,_0x2f127a);},'ZJjdL':_0xdcb6ec(0x1b5)+_0xdcb6ec(0x114)+'nd\x20reque'+_0xdcb6ec(0xe6)+_0xdcb6ec(0x1b0)+'.','fJOhV':function(_0x3f0a90,_0x332e68){return _0x3f0a90(_0x332e68);},'tCQEG':function(_0x230698,_0x24cc82){return _0x230698!==_0x24cc82;},'DbaxR':_0xdcb6ec(0x17f),'eeZpr':_0xdcb6ec(0x16c)+'o\x20genera'+_0xdcb6ec(0xdb)+_0xdcb6ec(0x12f)+'e.','ZepXu':function(_0x9fd0b6,_0x27c688){return _0x9fd0b6(_0x27c688);},'TsiCu':function(_0xd2b5bf,_0x106828){return _0xd2b5bf(_0x106828);},'BZaot':_0xdcb6ec(0x1e0)+_0xdcb6ec(0xed)+_0xdcb6ec(0x10b)+'e?\x20(Y/n)'+':\x20','gPoBi':function(_0x11caeb,_0x43e68f){return _0x11caeb(_0x43e68f);},'YUXUr':_0xdcb6ec(0xeb),'QLecR':function(_0x3f95cc,_0x2f5251,_0x395a5e,_0xf4e600){return _0x3f95cc(_0x2f5251,_0x395a5e,_0xf4e600);},'quytJ':_0xdcb6ec(0x153),'ROdHC':'inherit','MQbqe':_0xdcb6ec(0x16c)+'o\x20create'+_0xdcb6ec(0x148)+_0xdcb6ec(0x161)+'f\x20you\x20ha'+'ve\x20stage'+'d\x20files.'},_0x4a4b7d=_0x520750[_0xdcb6ec(0x175)](getLLM);getGitStatus(),_0x520750[_0xdcb6ec(0x14c)](section,_0xdcb6ec(0x105));if(_0x35cea1[_0xdcb6ec(0x1a1)]){if(_0xdcb6ec(0x179)!==_0x520750[_0xdcb6ec(0x1bf)])stageAll(),console[_0xdcb6ec(0x191)](_0x520750['bFbpL'](ok,'OK')+(_0xdcb6ec(0x1d3)+_0xdcb6ec(0x1d6)+_0xdcb6ec(0x18d)+_0xdcb6ec(0x15d)));else return WCBjqE[_0xdcb6ec(0xff)];}const _0x39922b=_0x520750[_0xdcb6ec(0x1cd)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x39922b[_0xdcb6ec(0x1b1)][_0xdcb6ec(0x1c0)]===0x0&&_0x520750['YHjfO'](failAndExit,_0x520750[_0xdcb6ec(0x1ad)]);_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0x133)+'t']>=WARN_SPLIT_FILE_COUNT&&console[_0xdcb6ec(0x191)](_0x520750[_0xdcb6ec(0x1b9)](warn,_0x520750['HlwMV'])+'\x20'+_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0x133)+'t']+(_0xdcb6ec(0x198)+_0xdcb6ec(0x155)+_0xdcb6ec(0x1cf)+_0xdcb6ec(0x195)+_0xdcb6ec(0x10f)+_0xdcb6ec(0x197)+'multiple'+_0xdcb6ec(0x1ce)+'.'));_0x520750['YgyjU'](printList,_0x520750[_0xdcb6ec(0xe5)],_0x39922b['files'][_0xdcb6ec(0x1ac)](_0x1e71b6=>_0x1e71b6[_0xdcb6ec(0x11c)]+'\x20'+_0x1e71b6[_0xdcb6ec(0x14e)]));_0x35cea1['check']&&(console[_0xdcb6ec(0x191)](),runOptionalChecks());_0x520750[_0xdcb6ec(0x1b9)](section,_0xdcb6ec(0x11e)+_0xdcb6ec(0x132));const _0x56550e=summarizeChanges(_0x39922b),_0x2e9cf5=detectCommitType(_0x39922b);printKeyValues([{'key':_0x520750[_0xdcb6ec(0x104)],'value':_0x56550e},{'key':_0x520750[_0xdcb6ec(0x10d)],'value':_0x2e9cf5},{'key':_0x520750[_0xdcb6ec(0x113)],'value':_0x39922b[_0xdcb6ec(0x149)]||_0x520750[_0xdcb6ec(0x187)]}]);_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0xdc)+'rs']>WARN_PROMPT_DIFF_CHARS&&console[_0xdcb6ec(0x191)](_0x520750[_0xdcb6ec(0x1b9)](warn,_0x520750[_0xdcb6ec(0x1e3)])+('\x20Large\x20s'+_0xdcb6ec(0x15c)+_0xdcb6ec(0x172))+_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0xdc)+'rs']+(_0xdcb6ec(0x10e)+_0xdcb6ec(0x19f)+'will\x20inc'+_0xdcb6ec(0xee)+_0xdcb6ec(0x13f)+'\x20patch\x20e'+_0xdcb6ec(0x101)));const _0x270cd2=_0xdcb6ec(0x169)+_0xdcb6ec(0x188)+_0xdcb6ec(0x143)+_0xdcb6ec(0x1d5)+_0xdcb6ec(0xfc)+_0xdcb6ec(0x1c4)+_0xdcb6ec(0x12a)+'on\x20the\x20s'+_0xdcb6ec(0x1a8)+_0xdcb6ec(0x145)+_0xdcb6ec(0x116)+_0xdcb6ec(0x115)+_0xdcb6ec(0x13c)+_0xdcb6ec(0x1ca)+_0xdcb6ec(0x1a9)+'ss\x20evide'+'nce\x20stro'+'ngly\x20sug'+_0xdcb6ec(0xf9)+_0xdcb6ec(0xdf)+_0xdcb6ec(0x1d1)+_0x2e9cf5+(_0xdcb6ec(0x109)+_0xdcb6ec(0x193)+_0xdcb6ec(0x159)+_0xdcb6ec(0x14d)+'cope):\x20<'+_0xdcb6ec(0xcc)+_0xdcb6ec(0xcb)+_0xdcb6ec(0x112)+_0xdcb6ec(0x15b)+_0xdcb6ec(0xe0)+'ific\x0a-\x20R'+_0xdcb6ec(0xfd)+_0xdcb6ec(0x15e)+'ommit\x20me'+_0xdcb6ec(0x152)+_0xdcb6ec(0x18c)+_0xdcb6ec(0x1d8)+'es\x20or\x20ex'+_0xdcb6ec(0xd5)+_0xdcb6ec(0x1c3)+'ed\x20files'+':\x0a')+_0x520750[_0xdcb6ec(0x15f)](formatStagedFiles,_0x39922b)+(_0xdcb6ec(0x135)+_0xdcb6ec(0x166)+'\x0a')+_0x56550e+(_0xdcb6ec(0x1d4)+_0xdcb6ec(0x128))+(_0x39922b[_0xdcb6ec(0x149)]||'(none)')+(_0xdcb6ec(0x1bb)+_0xdcb6ec(0x1db))+(_0x39922b[_0xdcb6ec(0x117)][_0xdcb6ec(0x167)+'d']?_0x520750[_0xdcb6ec(0x13d)]:'')+':\x0a'+(_0x39922b['patch']||_0x520750[_0xdcb6ec(0x187)])+'\x0a\x20\x20';_0x520750[_0xdcb6ec(0x1b9)](section,_0x520750[_0xdcb6ec(0x18e)]);const _0x2a4d2d=await _0x520750[_0xdcb6ec(0x120)](withProgress,_0x520750[_0xdcb6ec(0x12d)],()=>_0x4a4b7d['invoke'](_0x270cd2)),_0xfe88b2=_0x520750[_0xdcb6ec(0xd3)](extractMessageText,_0x2a4d2d[_0xdcb6ec(0x1d9)]);if(!_0xfe88b2){if(_0x520750[_0xdcb6ec(0x1d2)](_0xdcb6ec(0x185),_0x520750['DbaxR']))_0x520750[_0xdcb6ec(0x1b9)](failAndExit,_0x520750['eeZpr']);else return;}_0x520750[_0xdcb6ec(0x102)](printKeyValues,[{'key':_0xdcb6ec(0x158)+_0xdcb6ec(0xe2),'value':_0xfe88b2}]),_0x520750[_0xdcb6ec(0x100)](section,_0xdcb6ec(0xd0)+'RM');const _0x3a8e2e=await _0x520750[_0xdcb6ec(0x1a5)](askEditableInput,_0xdcb6ec(0x11b)+_0xdcb6ec(0x18f)+_0xdcb6ec(0x1c2)+_0xdcb6ec(0x163)+_0xdcb6ec(0x16e)+_0xdcb6ec(0x142)+_0xdcb6ec(0x194),_0xfe88b2);_0x520750[_0xdcb6ec(0x1b9)](printKeyValues,[{'key':_0xdcb6ec(0x1a3)+_0xdcb6ec(0xe9),'value':_0x3a8e2e}]);const _0x229093=await askConfirmation(_0x520750[_0xdcb6ec(0x1bc)],{'defaultYes':!![]});if(!_0x229093){console['log'](_0x520750[_0xdcb6ec(0x1bd)](warn,_0x520750[_0xdcb6ec(0x12e)])+(_0xdcb6ec(0xec)+_0xdcb6ec(0x110)+_0xdcb6ec(0x19a)));return;}try{_0x520750['QLecR'](execFileSync,_0x520750[_0xdcb6ec(0x103)],[_0xdcb6ec(0x1b4),'-m',_0x3a8e2e],{'stdio':_0x520750['ROdHC']});}catch{_0x520750[_0xdcb6ec(0x1bd)](failAndExit,_0x520750[_0xdcb6ec(0x118)]);}await maybePushCurrentBranch();}
1
+ (function(_0x2c8d22,_0x57da2b){const _0x613fea=_0x195e,_0x5bc7a6=_0x2c8d22();while(!![]){try{const _0x1b1f56=parseInt(_0x613fea(0x16c))/0x1*(-parseInt(_0x613fea(0x11b))/0x2)+-parseInt(_0x613fea(0xa3))/0x3+-parseInt(_0x613fea(0x169))/0x4+-parseInt(_0x613fea(0x1a2))/0x5+parseInt(_0x613fea(0xba))/0x6+-parseInt(_0x613fea(0x192))/0x7*(parseInt(_0x613fea(0xe7))/0x8)+parseInt(_0x613fea(0x18d))/0x9;if(_0x1b1f56===_0x57da2b)break;else _0x5bc7a6['push'](_0x5bc7a6['shift']());}catch(_0x40fd8a){_0x5bc7a6['push'](_0x5bc7a6['shift']());}}}(_0x32e3,0xab8c7));const _0x5cae87=(function(){const _0x2ce724=_0x195e,_0x5cd254={'doUKD':function(_0x3283ab,_0x389c65,_0x39f507){return _0x3283ab(_0x389c65,_0x39f507);},'BNOKw':_0x2ce724(0x90),'oiQTk':_0x2ce724(0x96)+_0x2ce724(0x117)+_0x2ce724(0xd3),'cDEMM':function(_0x5f15cd,_0x230ce4){return _0x5f15cd instanceof _0x230ce4;},'RkKqc':function(_0x27a5fe,_0x5c2455){return _0x27a5fe!==_0x5c2455;}};let _0x5b20eb=!![];return function(_0x5c5adc,_0x3c6e71){const _0x57c1b5=_0x2ce724,_0x37afff={'AyTHl':function(_0x2d6ede,_0x5e43da,_0x192e7e){const _0x45e47c=_0x195e;return _0x5cd254[_0x45e47c(0x165)](_0x2d6ede,_0x5e43da,_0x192e7e);},'btHJz':_0x5cd254[_0x57c1b5(0x120)],'moMMu':_0x5cd254['oiQTk'],'nHFpD':function(_0x5e7bbe,_0x399d37){const _0x32d16d=_0x57c1b5;return _0x5cd254[_0x32d16d(0xd0)](_0x5e7bbe,_0x399d37);},'DWxkC':function(_0x5c1be6,_0x282f35){return _0x5c1be6(_0x282f35);},'vYAlF':function(_0x4ef82a,_0x235cfe){const _0x310c8d=_0x57c1b5;return _0x5cd254[_0x310c8d(0x127)](_0x4ef82a,_0x235cfe);},'QFUPE':'FEwmg','IXHss':function(_0x217263,_0x139270){return _0x217263===_0x139270;}},_0x2d9dd4=_0x5b20eb?function(){const _0x12c9c9=_0x57c1b5;if(_0x37afff[_0x12c9c9(0xe8)]('vtBIb',_0x37afff[_0x12c9c9(0xdb)])){if(_0x3c6e71){if(_0x37afff[_0x12c9c9(0x17d)](_0x12c9c9(0xe3),_0x12c9c9(0xe3))){const _0x5e4c92=_0x3c6e71[_0x12c9c9(0x146)](_0x5c5adc,arguments);return _0x3c6e71=null,_0x5e4c92;}else{_0x405bce[_0x12c9c9(0xb8)](_0x37afff[_0x12c9c9(0x180)](_0x4f638b,_0x37afff['btHJz'],_0x37afff[_0x12c9c9(0x15b)]));return;}}}else{const _0x443f50=_0x37afff[_0x12c9c9(0x193)](_0x184430,_0x7b1c57)?_0x5a22da['message']:_0x37afff['DWxkC'](_0x2b073a,_0x215834);_0x37afff[_0x12c9c9(0xea)](_0x3cc9d4,_0x443f50);}}:function(){};return _0x5b20eb=![],_0x2d9dd4;};}()),_0x14930b=_0x5cae87(this,function(){const _0x46584a=_0x195e;return _0x14930b[_0x46584a(0x9f)]()[_0x46584a(0xfa)]('(((.+)+)'+_0x46584a(0x118))[_0x46584a(0x9f)]()[_0x46584a(0xaf)+'tor'](_0x14930b)[_0x46584a(0xfa)](_0x46584a(0xd8)+_0x46584a(0x118));});_0x14930b();function _0x195e(_0x35443d,_0x403a38){_0x35443d=_0x35443d-0x89;const _0x232470=_0x32e3();let _0x14930b=_0x232470[_0x35443d];return _0x14930b;}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';const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x46e01d=_0x195e,_0x15a398={'AMjul':function(_0x46f45e){return _0x46f45e();},'Lbtxs':function(_0x46e2bf,_0xe077ba){return _0x46e2bf instanceof _0xe077ba;},'vqVTS':function(_0x51fba0,_0x44242a){return _0x51fba0(_0x44242a);}};try{return _0x15a398[_0x46e01d(0xf5)](createLLM);}catch(_0x3e548e){const _0x1240a3=_0x15a398[_0x46e01d(0x9a)](_0x3e548e,Error)?_0x3e548e[_0x46e01d(0x168)]:_0x15a398[_0x46e01d(0xd6)](String,_0x3e548e);_0x15a398['vqVTS'](failAndExit,_0x1240a3);}}function countByStatus(_0x172383){const _0x2b9704=_0x195e,_0x3fc4ad={'xkFNX':function(_0x562ee5,_0x377b63,_0x8b5cf8,_0x4fb202){return _0x562ee5(_0x377b63,_0x8b5cf8,_0x4fb202);},'eugvh':function(_0x45f548,_0x522261,_0x3448a7){return _0x45f548(_0x522261,_0x3448a7);},'rhCaH':_0x2b9704(0xae),'PYyIi':_0x2b9704(0x9c)},_0x29d185={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x30c6e6 of _0x172383[_0x2b9704(0xa7)]){if(_0x3fc4ad['rhCaH']!==_0x3fc4ad[_0x2b9704(0x10b)])_0x42384d[_0x2b9704(0xb8)](_0x2617be('WARNING',_0x2b9704(0xe5)+_0x2b9704(0x15f)+'f\x20('+_0x3bf656['metrics'][_0x2b9704(0x174)+'rs']+(_0x2b9704(0xaa)+_0x2b9704(0x14c)+_0x2b9704(0x161)+_0x2b9704(0x173)+'runcated'+_0x2b9704(0x157)+_0x2b9704(0xf2))));else{if(_0x30c6e6[_0x2b9704(0x191)][_0x2b9704(0x1a5)+'th']('A')){if(_0x3fc4ad[_0x2b9704(0x176)]!==_0x3fc4ad[_0x2b9704(0x176)])_0x3fc4ad['xkFNX'](_0xc83af5,_0x5686e0,_0x21833a[_0x2b9704(0x116)],{'stdio':_0x2b9704(0x1a7)}),_0x4270f4[_0x2b9704(0xb8)](_0x3fc4ad['eugvh'](_0x561a5e,'OK',_0x10cbc2['label']+(_0x2b9704(0xb3)+_0x2b9704(0x119))));else{_0x29d185[_0x2b9704(0x186)]+=0x1;continue;}}if(_0x30c6e6[_0x2b9704(0x191)]['startsWi'+'th']('M')){_0x29d185[_0x2b9704(0xc8)]+=0x1;continue;}if(_0x30c6e6[_0x2b9704(0x191)]['startsWi'+'th']('D')){_0x29d185[_0x2b9704(0x11e)]+=0x1;continue;}if(_0x30c6e6[_0x2b9704(0x191)][_0x2b9704(0x1a5)+'th']('R')){_0x29d185[_0x2b9704(0x114)]+=0x1;continue;}_0x29d185[_0x2b9704(0xca)]+=0x1;}}return _0x29d185;}function detectCommitType(_0x134744){const _0xf4d8ac=_0x195e,_0x4b2f6a={'UlUIz':function(_0x345b3a){return _0x345b3a();},'OukNJ':function(_0x1b3279,_0x3d0d5a){return _0x1b3279>_0x3d0d5a;},'cdQiD':'docs','VDTbn':function(_0x5e98b3,_0x2dfddf){return _0x5e98b3>_0x2dfddf;},'GKrpT':'test','PINOx':function(_0x435eb8,_0x163cab){return _0x435eb8===_0x163cab;},'xRVoi':_0xf4d8ac(0x137),'QDFZN':_0xf4d8ac(0x172),'NWEJh':function(_0x536673,_0x565327){return _0x536673>_0x565327;},'XTxQY':function(_0x4447be,_0x17b268){return _0x4447be<=_0x17b268;},'ZiWtX':_0xf4d8ac(0xb7)},_0x6b72db=_0x134744['files'][_0xf4d8ac(0xb4)](_0x68935=>_0x68935['path'][_0xf4d8ac(0xdc)+'ase']()),_0x29775f=countByStatus(_0x134744);if(_0x4b2f6a['OukNJ'](_0x6b72db[_0xf4d8ac(0xbd)],0x0)&&_0x6b72db[_0xf4d8ac(0x16e)](_0x1b944d=>/(^|\/)(readme|docs?|changelog)/[_0xf4d8ac(0xb5)](_0x1b944d)||_0x1b944d['endsWith']('.md')))return _0x4b2f6a[_0xf4d8ac(0x1a0)];if(_0x4b2f6a[_0xf4d8ac(0x103)](_0x6b72db['length'],0x0)&&_0x6b72db[_0xf4d8ac(0x16e)](_0x33c906=>/(^|\/)(test|tests|__tests__|spec)/[_0xf4d8ac(0xb5)](_0x33c906)||/\.(spec|test)\./[_0xf4d8ac(0xb5)](_0x33c906)))return _0xf4d8ac(0x188)!=='TbvfD'?_0x4b2f6a[_0xf4d8ac(0x152)]:xMEWwV[_0xf4d8ac(0x8e)](_0xa548ad);if(_0x29775f[_0xf4d8ac(0x11e)]>0x0&&_0x29775f[_0xf4d8ac(0x186)]===0x0&&_0x4b2f6a[_0xf4d8ac(0x17a)](_0x29775f[_0xf4d8ac(0xc8)],0x0))return _0x4b2f6a[_0xf4d8ac(0x179)];if(_0x29775f[_0xf4d8ac(0x186)]>=_0x29775f[_0xf4d8ac(0xc8)]&&_0x4b2f6a['VDTbn'](_0x29775f['added'],0x0))return _0x4b2f6a[_0xf4d8ac(0xbb)];if(_0x4b2f6a[_0xf4d8ac(0x14e)](_0x29775f[_0xf4d8ac(0xc8)],0x0)&&_0x4b2f6a['XTxQY'](_0x134744['metrics'][_0xf4d8ac(0x9e)+'ns'],_0x134744[_0xf4d8ac(0xee)]['deletion'+'s']))return _0x4b2f6a['ZiWtX'];return _0xf4d8ac(0x15a);}function summarizeChanges(_0x204bbd){const _0x292b58=_0x195e,_0x56a6a4={'MvprI':function(_0x47480c,_0x32ac87){return _0x47480c(_0x32ac87);},'OdtMn':function(_0x361382,_0x4016af){return _0x361382>_0x4016af;},'tkkkW':function(_0x14a231,_0x289350){return _0x14a231||_0x289350;},'Trxvi':_0x292b58(0x124)+_0x292b58(0x17e)+'ailable.'},_0x59b8aa=_0x56a6a4['MvprI'](countByStatus,_0x204bbd),_0x62fd98=_0x204bbd[_0x292b58(0xa7)]['slice'](0x0,0x3)[_0x292b58(0xb4)](_0x3355a8=>_0x3355a8['path']),_0x5859c4=_0x56a6a4['OdtMn'](_0x204bbd[_0x292b58(0xa7)][_0x292b58(0xbd)],0x3)?_0x62fd98[_0x292b58(0xb1)](',\x20')+'\x20+'+(_0x204bbd[_0x292b58(0xa7)][_0x292b58(0xbd)]-0x3)+'\x20more':_0x62fd98['join'](',\x20');return _0x204bbd[_0x292b58(0xee)][_0x292b58(0x8c)+'t']+(_0x292b58(0xa5)+_0x292b58(0x130))+_0x59b8aa[_0x292b58(0x186)]+_0x292b58(0xdf)+_0x59b8aa[_0x292b58(0xc8)]+('\x20modifie'+_0x292b58(0xe1))+_0x59b8aa[_0x292b58(0x11e)]+(_0x292b58(0x1ad)+',\x20')+_0x59b8aa[_0x292b58(0x114)]+(_0x292b58(0x134)+_0x292b58(0x10c))+_0x204bbd['metrics'][_0x292b58(0x9e)+'ns']+(_0x292b58(0x19f)+_0x292b58(0xa0))+_0x204bbd[_0x292b58(0xee)][_0x292b58(0xe2)+'s']+(_0x292b58(0xff)+_0x292b58(0x93))+_0x56a6a4['tkkkW'](_0x5859c4,_0x56a6a4[_0x292b58(0x18e)]);}function formatStagedFiles(_0x1e5d0f){const _0x50f036=_0x195e;return _0x1e5d0f[_0x50f036(0xa7)][_0x50f036(0xb4)](_0x27ff4b=>'-\x20'+_0x27ff4b['status']+'\x20'+_0x27ff4b['path'])['join']('\x0a');}function runOptionalChecks(){const _0xb36fdf=_0x195e,_0x23283a={'okkRL':function(_0x50260f,_0x6c3a94){return _0x50260f===_0x6c3a94;},'ETFvy':'win32','jCmtL':_0xb36fdf(0x10e),'cWiGW':_0xb36fdf(0x108),'oqIMq':_0xb36fdf(0x164),'CYCyC':_0xb36fdf(0x182)+_0xb36fdf(0x16d),'tanRr':_0xb36fdf(0xb5),'KZjPQ':function(_0x556021,_0x443f95,_0x5af331){return _0x556021(_0x443f95,_0x5af331);},'wIFCI':'CHECK','tWDkA':function(_0x64cba8,_0x9ede6,_0x1e408f,_0x4e8758){return _0x64cba8(_0x9ede6,_0x1e408f,_0x4e8758);},'ZeHaj':function(_0x1864d5,_0x2d2e32,_0x32beae){return _0x1864d5(_0x2d2e32,_0x32beae);},'FiDFk':function(_0x12731a,_0x21acc0){return _0x12731a(_0x21acc0);}},_0xa2a548=_0x23283a[_0xb36fdf(0x149)](process[_0xb36fdf(0xc4)],_0x23283a[_0xb36fdf(0x19d)])?_0x23283a[_0xb36fdf(0x153)]:_0xb36fdf(0x115),_0x11c89a=[{'label':_0x23283a[_0xb36fdf(0xcd)],'args':[_0x23283a[_0xb36fdf(0xf7)],_0x23283a['cWiGW'],_0x23283a[_0xb36fdf(0x109)]]},{'label':_0x23283a[_0xb36fdf(0xa4)],'args':[_0xb36fdf(0x164),_0x23283a[_0xb36fdf(0xa4)],_0x23283a[_0xb36fdf(0x109)]]}];for(const _0x406982 of _0x11c89a){console[_0xb36fdf(0xb8)](_0x23283a['KZjPQ'](info,_0x23283a[_0xb36fdf(0x97)],_0xb36fdf(0x184)+_0x406982[_0xb36fdf(0x106)]+_0xb36fdf(0xcb)));try{_0x23283a['tWDkA'](execFileSync,_0xa2a548,_0x406982[_0xb36fdf(0x116)],{'stdio':_0xb36fdf(0x1a7)}),console[_0xb36fdf(0xb8)](_0x23283a[_0xb36fdf(0xde)](ok,'OK',_0x406982[_0xb36fdf(0x106)]+('\x20complet'+_0xb36fdf(0x119))));}catch{_0x23283a[_0xb36fdf(0x17c)](failAndExit,_0x406982[_0xb36fdf(0x106)]+(_0xb36fdf(0x11f)+'\x20Abortin'+_0xb36fdf(0x18f)+'.'));}}}async function maybePushCurrentBranch(){const _0x17ed23=_0x195e,_0x20f74c={'RxVNr':function(_0x19158f,_0x251ef6,_0x215645){return _0x19158f(_0x251ef6,_0x215645);},'qjjeN':_0x17ed23(0xb6),'IAqrF':function(_0x50bb87){return _0x50bb87();},'HxKoT':function(_0x21fa4d,_0x4885d8){return _0x21fa4d(_0x4885d8);},'lQpgQ':function(_0x2c6ae6,_0x1b831d,_0x497490,_0xd5321d){return _0x2c6ae6(_0x1b831d,_0x497490,_0xd5321d);},'tXOvU':_0x17ed23(0x1a7),'asMQc':function(_0x258ae5){return _0x258ae5();},'JMJWz':_0x17ed23(0xc3),'xGANh':_0x17ed23(0x11a)+_0x17ed23(0x92)+_0x17ed23(0x16a)+_0x17ed23(0x1a1)+'ot\x20avail'+_0x17ed23(0x12f),'oXuec':_0x17ed23(0x194),'tLWVm':function(_0x5025e0,_0x37e317,_0x11960f,_0x432ee8){return _0x5025e0(_0x37e317,_0x11960f,_0x432ee8);},'AyWmU':_0x17ed23(0x121),'ywxQt':'--set-up'+_0x17ed23(0x170)},_0x143290=_0x20f74c['IAqrF'](getCurrentBranch),_0x3953e5=_0x20f74c['IAqrF'](getUpstreamInfo);if(_0x3953e5){const _0x6553f3=await _0x20f74c[_0x17ed23(0x112)](askConfirmation,_0x17ed23(0x156)+_0x17ed23(0xab)+_0x17ed23(0x15d)+_0x143290+_0x17ed23(0xd7)+_0x3953e5[_0x17ed23(0x1b0)]+(_0x17ed23(0x16f)+'y/N):\x20'));if(!_0x6553f3)return;try{_0x20f74c[_0x17ed23(0xef)](execFileSync,'git',[_0x17ed23(0x121),_0x3953e5[_0x17ed23(0xeb)],_0x143290+':'+_0x3953e5['branch']],{'stdio':_0x20f74c['tXOvU']}),console['log'](_0x20f74c['RxVNr'](ok,'OK',_0x17ed23(0xc0)+'pleted\x20t'+'o\x20'+_0x3953e5[_0x17ed23(0x1b0)]+'.'));}catch{failAndExit(_0x17ed23(0xf4)+_0x17ed23(0x181)+'o\x20'+_0x3953e5[_0x17ed23(0x1b0)]+'.');}return;}const _0x1e9dc7=_0x20f74c[_0x17ed23(0x100)](getDefaultRemote);if(!_0x1e9dc7){console[_0x17ed23(0xb8)](warn(_0x20f74c[_0x17ed23(0xf9)],_0x20f74c[_0x17ed23(0xe4)]));return;}const _0x12213e=await askConfirmation(_0x17ed23(0xda)+_0x17ed23(0x1a6)+_0x17ed23(0x111)+'\x22'+_0x143290+_0x17ed23(0xd7)+_0x1e9dc7+'/'+_0x143290+(_0x17ed23(0xf8)+_0x17ed23(0xad)+_0x17ed23(0x12b)+_0x17ed23(0x171)));if(!_0x12213e){if(_0x17ed23(0x163)!==_0x20f74c[_0x17ed23(0x17f)])return;else _0x15bde4[_0x17ed23(0xb8)](_0x20f74c[_0x17ed23(0x167)](_0x34bf0f,_0x20f74c[_0x17ed23(0x1aa)],_0x68ce26['metrics'][_0x17ed23(0x8c)+'t']+(_0x17ed23(0xfe)+_0x17ed23(0xf0)+'tected.\x20'+_0x17ed23(0x1af)+_0x17ed23(0x185)+_0x17ed23(0x151)+_0x17ed23(0x12e)+_0x17ed23(0xe0)+'.')));}try{_0x20f74c[_0x17ed23(0x189)](execFileSync,_0x17ed23(0x135),[_0x20f74c['AyWmU'],_0x20f74c[_0x17ed23(0x197)],_0x1e9dc7,_0x143290],{'stdio':_0x20f74c[_0x17ed23(0x11d)]}),console[_0x17ed23(0xb8)](ok('OK',_0x17ed23(0xc0)+_0x17ed23(0x132)+'nd\x20upstr'+_0x17ed23(0x1ae)+'igured\x20('+_0x1e9dc7+'/'+_0x143290+').'));}catch{_0x20f74c['HxKoT'](failAndExit,_0x17ed23(0xf4)+_0x17ed23(0xd4)+_0x143290+'\x22\x20to\x20\x22'+_0x1e9dc7+'\x22.');}}function _0x32e3(){const _0xeab5e1=['tLWVm','it\x20commi','uTRIf','No\x20stage','27113211AbRuLs','Trxvi','g\x20commit','and\x20spec','status','35HLZruM','nHFpD','gmTdJ','h\x20based\x20','mmit','ywxQt','\x0a\x0aShort\x20','Edit\x20com','commit','f\x20(','dohty','ETFvy','USQIE','\x20inserti','cdQiD','.\x20Push\x20n','404810ZsrsNo','ssage,\x20w','n\x20Englis','startsWi','eam\x20foun','inherit','3.\x20SUGGE','Detected','qjjeN','ode\x20fenc','WARNING','\x20deleted','eam\x20conf','Consider','fullName','ns\x0a\x0aStag','\x0a\x0aDiff\x20s','\x20to\x20keep','lilFa','subject\x20','fileCoun','NEEQE','UlUIz','tional-s','CANCELED','ion):\x20','emote\x20co','ns.\x20','ormat:\x20<','sPTCs','Commit\x20w','wIFCI','LY\x20the\x20c','\x0aWrite\x20o','Lbtxs','WOwan','PAaEq','check','insertio','toString','ons,\x20','iQYEG','excerpt','1342788JizsKx','tanRr','\x20files\x20c','type>(op','files','\x20suggest','doXyT','\x20chars).','rent\x20bra','sponse..','t\x20upstre','PbTxW','construc','rDgqB','join','\x0a-\x20Use\x20f','\x20complet','map','test','TIP','fix','log','\x0a-\x20Keep\x20','1372512wOhzta','QDFZN','other\x20on','length','mit\x20mess','\x0a\x0aPatch\x20','Push\x20com','ithout\x20c','\x20Stage\x20c','SKIPPED','platform','1.\x20STAGE','add\x20.).','(none)','modified','ZffGP','other','...','Final\x20co','cWiGW','qbtFY','o\x20genera','cDEMM','nce\x20stro','hFEUw','reated.','o\x20push\x20\x22','inking\x20a','vqVTS','\x22\x20to\x20\x22','(((.+)+)','aOAaN','No\x20upstr','QFUPE','toLowerC','ss\x20evide','ZeHaj','\x20added,\x20','\x20commits','d,\x20','deletion','vRvCS','xGANh','Large\x20st','o\x20create','903016ZeiJRC','vYAlF','bPdjZ','DWxkC','remote','on\x20the\x20s','RIZE','metrics','lQpgQ','files\x20de','ihseg','xcerpt.','kinxz','Failed\x20t','AMjul','ve\x20stage','oqIMq','\x22\x20and\x20se','JMJWz','search','anges.\x0aR','concise\x20','siFpm','\x20staged\x20','\x20deletio','asMQc','ed\x20files','path','VDTbn','f\x20you\x20ha','Staged\x20a','label','ngly\x20sug','lint','CYCyC','Start\x20wi','rhCaH','),\x20','ific\x0a-\x20R','npm.cmd','avRZO','KMlaK','d.\x20Push\x20','HxKoT','Commit\x20m','renamed','npm','args','as\x20not\x20c','+)+$','ed.','No\x20git\x20r','6SMifKv','invoke','tXOvU','deleted','\x20failed.','BNOKw','push','4.\x20CONFI','patch','No\x20file\x20','essage\x20i','Suggeste','RkKqc','age\x20(pre','t\x20messag','fSieT','am?\x20(y/N','PVRQW','mtGMI','multiple','able.','hanged\x20(','cope):\x20<','pleted\x20a','KJReU','\x20renamed','git','yxDqg','chore','sing\x20thi','ommit\x20me','te\x20commi','\x20type','fqJjX','TQAUW','taged\x20ch','ype\x20unle','2.\x20SUMMA','content','gests\x20an','e:\x20','ss\x20Enter','CivLs','apply','Diff\x20sta','wNyra','okkRL','CWdKb','olnlS','\x20Prompt\x20','runcated','NWEJh','e?\x20(Y/n)','nRDbn','ng\x20into\x20','GKrpT','jCmtL','summary:','sNhFC','Push\x20cur','\x20patch\x20e','docs','JkLuW','refactor','moMMu','likely\x20t','nch\x20\x22','tected.\x20','aged\x20dif','run\x20`gem','will\x20inc','eeaeV','rmSiu','run','doUKD','\x20commit.','RxVNr','message','2077024lxJxny','nfigured','iles','308823DXWcko','sent','every','\x22\x20now?\x20(','stream','):\x20','feat','lude\x20a\x20t','patchCha','ules:\x0a-\x20','PYyIi','\x20Check\x20i','es\x20(git\x20','xRVoi','PINOx','ll\x20chang','FiDFk','IXHss','paths\x20av','oXuec','AyTHl','o\x20push\x20t','--if-pre','d\x20files.','Running\x20','\x20splitti','added','mRKEF','xEjqk'];_0x32e3=function(){return _0xeab5e1;};return _0x32e3();}export async function generateCommit(_0x3fc2fb={}){const _0xed18de=_0x195e,_0x491ca6={'nRDbn':_0xed18de(0x158),'PVRQW':function(_0x55fe9c){return _0x55fe9c();},'WOwan':_0xed18de(0xc5),'fSieT':function(_0xbe7335){return _0xbe7335();},'CWdKb':function(_0x1b5bbc,_0x97e6a6,_0x264312){return _0x1b5bbc(_0x97e6a6,_0x264312);},'TQAUW':function(_0x42b463,_0x6f880e){return _0x42b463(_0x6f880e);},'dohty':function(_0x3b9f10,_0x47ca8b){return _0x3b9f10===_0x47ca8b;},'KJReU':function(_0x149a22,_0x2d1b36){return _0x149a22(_0x2d1b36);},'mtGMI':_0xed18de(0x18c)+_0xed18de(0x183)+_0xed18de(0xc2)+'hanges\x20f'+'irst\x20or\x20'+_0xed18de(0x160)+_0xed18de(0x18a)+'t\x20--all`'+'.','doXyT':_0xed18de(0xb6),'fXQiK':function(_0x173555,_0x1174ec,_0x45a1ab){return _0x173555(_0x1174ec,_0x45a1ab);},'EyZTA':'Staged\x20f'+_0xed18de(0x16b),'aOAaN':function(_0x54f5b6,_0x66985a){return _0x54f5b6(_0x66985a);},'hFEUw':_0xed18de(0x140)+_0xed18de(0xed),'wNyra':function(_0x335e9e,_0x24d89b){return _0x335e9e(_0x24d89b);},'iQYEG':'Summary','USQIE':_0xed18de(0x1a9)+_0xed18de(0x13b),'bPdjZ':_0xed18de(0x147)+'t','JkLuW':_0xed18de(0xc7),'uTRIf':function(_0x39681d,_0xf62b5e,_0x2b7a63){return _0x39681d(_0xf62b5e,_0x2b7a63);},'CivLs':_0xed18de(0x1ac),'fqJjX':function(_0x229ea8,_0x4540be){return _0x229ea8(_0x4540be);},'eeaeV':'\x20(trunca'+'ted)','olnlS':_0xed18de(0x1a8)+'ST','ZffGP':'AI\x20is\x20th'+_0xed18de(0xd5)+'nd\x20reque'+'sting\x20re'+_0xed18de(0xac)+'.','rDgqB':function(_0x46919e,_0x4d87a8){return _0x46919e(_0x4d87a8);},'NEEQE':_0xed18de(0xf4)+_0xed18de(0xcf)+_0xed18de(0x13a)+_0xed18de(0x129)+'e.','nJWdk':function(_0x546613,_0x5e7afe){return _0x546613(_0x5e7afe);},'sPTCs':function(_0x30f29a,_0x34b44e){return _0x30f29a(_0x34b44e);},'lilFa':function(_0x5390c2,_0x4eeb78,_0x3fe8a9){return _0x5390c2(_0x4eeb78,_0x3fe8a9);},'XhHEH':_0xed18de(0xfd),'kinxz':'CANCELED','mRKEF':'Commit\x20w'+'as\x20not\x20c'+_0xed18de(0xd3),'avRZO':function(_0x433a59,_0x2808dd,_0x5143f6,_0x43917d){return _0x433a59(_0x2808dd,_0x5143f6,_0x43917d);},'DlaPS':'git','cZDfU':_0xed18de(0x19a),'sNhFC':'inherit','ihseg':function(_0xc0c610,_0x154b49){return _0xc0c610!==_0x154b49;},'KMlaK':_0xed18de(0xce)},_0x4001ab=_0x491ca6[_0xed18de(0x12c)](getLLM);getGitStatus(),section(_0x491ca6[_0xed18de(0x9b)]);_0x3fc2fb['all']&&(_0x491ca6[_0xed18de(0x12a)](stageAll),console[_0xed18de(0xb8)](_0x491ca6['CWdKb'](ok,'OK',_0xed18de(0x105)+_0xed18de(0x17b)+_0xed18de(0x178)+_0xed18de(0xc6))));const _0xe1d374=_0x491ca6['TQAUW'](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x491ca6[_0xed18de(0x19c)](_0xe1d374[_0xed18de(0xa7)]['length'],0x0)&&_0x491ca6[_0xed18de(0x133)](failAndExit,_0x491ca6[_0xed18de(0x12d)]);_0xe1d374[_0xed18de(0xee)]['fileCoun'+'t']>=WARN_SPLIT_FILE_COUNT&&console[_0xed18de(0xb8)](_0x491ca6[_0xed18de(0x14a)](warn,_0x491ca6[_0xed18de(0xa9)],_0xe1d374[_0xed18de(0xee)][_0xed18de(0x8c)+'t']+(_0xed18de(0xfe)+_0xed18de(0xf0)+_0xed18de(0x15e)+_0xed18de(0x1af)+_0xed18de(0x185)+_0xed18de(0x151)+_0xed18de(0x12e)+'\x20commits'+'.')));_0x491ca6['fXQiK'](printList,_0x491ca6['EyZTA'],_0xe1d374['files'][_0xed18de(0xb4)](_0x4ecb4d=>_0x4ecb4d[_0xed18de(0x191)]+'\x20'+_0x4ecb4d[_0xed18de(0x102)]));_0x3fc2fb[_0xed18de(0x9d)]&&(console[_0xed18de(0xb8)](),_0x491ca6[_0xed18de(0x12a)](runOptionalChecks));_0x491ca6[_0xed18de(0xd9)](section,_0x491ca6[_0xed18de(0xd2)]);const _0x3defba=_0x491ca6[_0xed18de(0x148)](summarizeChanges,_0xe1d374),_0x2f7f19=_0x491ca6[_0xed18de(0x13d)](detectCommitType,_0xe1d374);_0x491ca6[_0xed18de(0x13d)](printKeyValues,[{'key':_0x491ca6[_0xed18de(0xa1)],'value':_0x3defba},{'key':_0x491ca6[_0xed18de(0x19e)],'value':_0x2f7f19},{'key':_0x491ca6[_0xed18de(0xe9)],'value':_0xe1d374['diffStat']||_0x491ca6['JkLuW']}]);_0xe1d374[_0xed18de(0xee)][_0xed18de(0x174)+'rs']>WARN_PROMPT_DIFF_CHARS&&console[_0xed18de(0xb8)](_0x491ca6[_0xed18de(0x18b)](warn,_0x491ca6[_0xed18de(0x145)],_0xed18de(0xe5)+_0xed18de(0x15f)+_0xed18de(0x19b)+_0xe1d374['metrics'][_0xed18de(0x174)+'rs']+(_0xed18de(0xaa)+_0xed18de(0x14c)+_0xed18de(0x161)+_0xed18de(0x173)+_0xed18de(0x14d)+'\x20patch\x20e'+_0xed18de(0xf2))));const _0xfab463=_0xed18de(0x99)+'ne\x20Conve'+'ntional\x20'+_0xed18de(0x113)+_0xed18de(0x125)+_0xed18de(0x1a4)+_0xed18de(0x195)+_0xed18de(0xec)+_0xed18de(0x13e)+_0xed18de(0xfb)+_0xed18de(0x175)+_0xed18de(0x10a)+'th\x20this\x20'+_0xed18de(0x15c)+_0xed18de(0x13f)+_0xed18de(0xdd)+_0xed18de(0xd1)+_0xed18de(0x107)+_0xed18de(0x142)+_0xed18de(0xbc)+_0xed18de(0x143)+_0x2f7f19+(_0xed18de(0xb2)+_0xed18de(0x94)+_0xed18de(0xa6)+_0xed18de(0x8f)+_0xed18de(0x131)+'subject>'+_0xed18de(0xb9)+_0xed18de(0x8b)+_0xed18de(0xfc)+_0xed18de(0x190)+_0xed18de(0x10d)+'eturn\x20ON'+_0xed18de(0x98)+_0xed18de(0x139)+_0xed18de(0x1a3)+_0xed18de(0xc1)+_0xed18de(0x1ab)+'es\x20or\x20ex'+'planatio'+_0xed18de(0x1b1)+_0xed18de(0x101)+':\x0a')+_0x491ca6[_0xed18de(0x13c)](formatStagedFiles,_0xe1d374)+(_0xed18de(0x198)+_0xed18de(0x154)+'\x0a')+_0x3defba+(_0xed18de(0x1b2)+'tat:\x0a')+(_0xe1d374['diffStat']||_0x491ca6['JkLuW'])+(_0xed18de(0xbf)+_0xed18de(0xa2))+(_0xe1d374['metrics']['truncate'+'d']?_0x491ca6[_0xed18de(0x162)]:'')+':\x0a'+(_0xe1d374[_0xed18de(0x123)]||_0x491ca6[_0xed18de(0x159)])+'\x0a\x20\x20';section(_0x491ca6[_0xed18de(0x14b)]);const _0x16c26b=await withProgress(_0x491ca6[_0xed18de(0xc9)],()=>_0x4001ab[_0xed18de(0x11c)](_0xfab463)),_0x518709=_0x491ca6[_0xed18de(0xb0)](extractMessageText,_0x16c26b[_0xed18de(0x141)]);!_0x518709&&failAndExit(_0x491ca6[_0xed18de(0x8d)]);_0x491ca6['nJWdk'](printKeyValues,[{'key':_0xed18de(0x126)+'d\x20commit','value':_0x518709}]),section(_0xed18de(0x122)+'RM');const _0x3d921c=await askEditableInput(_0xed18de(0x199)+_0xed18de(0xbe)+_0xed18de(0x128)+_0xed18de(0x144)+_0xed18de(0x89)+_0xed18de(0xa8)+_0xed18de(0x91),_0x518709);_0x491ca6[_0xed18de(0x95)](printKeyValues,[{'key':_0xed18de(0xcc)+_0xed18de(0x196),'value':_0x3d921c}]);const _0x4078aa=await _0x491ca6[_0xed18de(0x8a)](askConfirmation,'Commit\x20u'+_0xed18de(0x138)+'s\x20messag'+_0xed18de(0x14f)+':\x20',{'defaultYes':!![]});if(!_0x4078aa){if(_0x491ca6[_0xed18de(0x19c)](_0xed18de(0x136),_0x491ca6['XhHEH']))return _0x556027[_0xed18de(0xa7)]['map'](_0x47ebe8=>'-\x20'+_0x47ebe8[_0xed18de(0x191)]+'\x20'+_0x47ebe8['path'])['join']('\x0a');else{console[_0xed18de(0xb8)](warn(_0x491ca6[_0xed18de(0xf3)],_0x491ca6[_0xed18de(0x187)]));return;}}try{_0x491ca6[_0xed18de(0x10f)](execFileSync,_0x491ca6['DlaPS'],[_0x491ca6['cZDfU'],'-m',_0x3d921c],{'stdio':_0x491ca6[_0xed18de(0x155)]});}catch{if(_0x491ca6[_0xed18de(0xf1)](_0x491ca6['KMlaK'],_0x491ca6[_0xed18de(0x110)]))return sGkvaM[_0xed18de(0x150)];else _0x491ca6[_0xed18de(0x13d)](failAndExit,'Failed\x20t'+_0xed18de(0xe6)+_0xed18de(0x166)+_0xed18de(0x177)+_0xed18de(0x104)+_0xed18de(0xf6)+_0xed18de(0x183));}await maybePushCurrentBranch();}
@@ -1 +1 @@
1
- (function(_0x593584,_0x49fb2d){const _0x34e92b=_0x5e69,_0x15857d=_0x593584();while(!![]){try{const _0x3527ab=-parseInt(_0x34e92b(0x20b))/0x1*(parseInt(_0x34e92b(0x1f4))/0x2)+-parseInt(_0x34e92b(0x263))/0x3+-parseInt(_0x34e92b(0x224))/0x4*(parseInt(_0x34e92b(0x213))/0x5)+parseInt(_0x34e92b(0x269))/0x6*(-parseInt(_0x34e92b(0x210))/0x7)+-parseInt(_0x34e92b(0x252))/0x8+-parseInt(_0x34e92b(0x209))/0x9*(-parseInt(_0x34e92b(0x237))/0xa)+parseInt(_0x34e92b(0x25f))/0xb*(parseInt(_0x34e92b(0x22f))/0xc);if(_0x3527ab===_0x49fb2d)break;else _0x15857d['push'](_0x15857d['shift']());}catch(_0x4ff976){_0x15857d['push'](_0x15857d['shift']());}}}(_0x4519,0x571c3));const _0x35908e=(function(){let _0x55b06f=!![];return function(_0x2a8c75,_0x42316b){const _0x3a0b9a=_0x55b06f?function(){if(_0x42316b){const _0x409e83=_0x42316b['apply'](_0x2a8c75,arguments);return _0x42316b=null,_0x409e83;}}:function(){};return _0x55b06f=![],_0x3a0b9a;};}()),_0x296115=_0x35908e(this,function(){const _0x201b0b=_0x5e69,_0x2b2562={'LOJDE':_0x201b0b(0x212)+'+)+$'};return _0x296115[_0x201b0b(0x258)]()[_0x201b0b(0x20c)](_0x201b0b(0x212)+_0x201b0b(0x222))[_0x201b0b(0x258)]()[_0x201b0b(0x1f9)+_0x201b0b(0x26d)](_0x296115)[_0x201b0b(0x20c)](_0x2b2562[_0x201b0b(0x1ff)]);});_0x296115();function _0x5e69(_0x326ed4,_0x5c3431){_0x326ed4=_0x326ed4-0x1f1;const _0x5b2961=_0x4519();let _0x296115=_0x5b2961[_0x326ed4];return _0x296115;}import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{bad,failAndExit,ok,printKeyValues,section,warn}from'../ui.js';function _0x4519(){const _0x89d24d=['jdEze','(((.+)+)','5MIwFde','Status','openai','c)\x20[goog','WCPJa','AposU','IATuK','xVxIb','ini','ksQWM','ATION\x20SA','PxaTU','ExNPs','LLM_MODE','IxmMr','+)+$','TYjEe','1260436Ltzehn','\x20Setup\x20c','):\x20','fXSNE','WDTxI','gpt-4o-m','API_KEY','SWqsD','tODSC','VPKqN','Aszjz','12mItOrC','enai,\x20or','log','WFfIE','LPZsl','dfcBw','\x20already','IDER=\x22','22090BNQtUk','\x20global)','set','XfxFn','KBQYp','.env','PI_KEY=\x22','Path','env',']:\x20','WfvPF','kPQYI','GOOGLE_A','ANTHROPI','OPENAI_A','invalid','Model\x20[','UKvkZ','NmIHW','UBdOz','toLowerC','TdFbj','ZMMjR','gIgKt','Global\x20.','provider','env\x20path','3696048SMWjvv','xMCHx','ase','WvNhK','alzCd','XGHhh','toString','elIcC','bqaCz','MaHMn','ic.','BbxLU','exitCode','18418818kiaaac','qPyPt','VED','LLM_PROV','2084352gjJtIS','DukGv','google','t-latest','.\x20Use\x20go','ZFTrk','6quBUFg','CANCELED','SPnQF','VJdWo','tor','ysVNt','Bczeq','dPjzY','106zuiTkr','not\x20foun','C_API_KE','Uoxqp','IDER','construc','le]:\x20','UKISK','claude-3','te?\x20(y/n','PI_KEY','LOJDE','Fraez','utf8','ZgUBE','NwPSY','anthropi','PHsHo','LMmok','FshWx','missing/','2313GOvCkQ','IQplT','5302peFGFE','search','xxLQK','.5-flash','VxWef','927101EESGUJ'];_0x4519=function(){return _0x89d24d;};return _0x4519();}function getProviderKeyName(_0x503223){const _0x15d94f=_0x5e69,_0x26b26c={'UBdOz':function(_0x290b76,_0x53bf64){return _0x290b76===_0x53bf64;},'alzCd':function(_0x4f8c7e,_0x54542b){return _0x4f8c7e!==_0x54542b;},'NwPSY':_0x15d94f(0x20d),'IATuK':_0x15d94f(0x24e),'TYjEe':_0x15d94f(0x243)+'PI_KEY','fppyR':function(_0x40cd15,_0x625d22){return _0x40cd15===_0x625d22;},'ExNPs':_0x15d94f(0x215),'LMmok':'ANTHROPI'+_0x15d94f(0x1f6)+'Y'};if(_0x26b26c[_0x15d94f(0x24a)](_0x503223,_0x15d94f(0x265))){if(_0x26b26c[_0x15d94f(0x256)](_0x26b26c[_0x15d94f(0x203)],_0x26b26c[_0x15d94f(0x219)]))return _0x26b26c[_0x15d94f(0x223)];else _0x4be2fa[_0x15d94f(0x25e)]=0x1;}if(_0x26b26c['fppyR'](_0x503223,_0x26b26c[_0x15d94f(0x21f)]))return _0x15d94f(0x245)+_0x15d94f(0x1fe);return _0x26b26c[_0x15d94f(0x206)];}export async function initConfig(){const _0x4b4245=_0x5e69,_0x5971e3={'bqaCz':function(_0x16fcf3){return _0x16fcf3();},'jdEze':function(_0x46cbbb,_0x169102){return _0x46cbbb(_0x169102);},'fXSNE':function(_0x5a619f,_0x206950){return _0x5a619f(_0x206950);},'Bczeq':_0x4b4245(0x26a),'ZgUBE':function(_0xfd7810,_0x176d2){return _0xfd7810(_0x176d2);},'KBQYp':'Provider'+'\x20(google'+'/openai/'+_0x4b4245(0x204)+_0x4b4245(0x216)+_0x4b4245(0x1fa),'BbxLU':function(_0x2d24e7,_0x595299){return _0x2d24e7||_0x595299;},'WDTxI':'google','MaHMn':function(_0x2f5c61,_0xf024f2){return _0x2f5c61!==_0xf024f2;},'WCPJa':_0x4b4245(0x215),'sxRSI':function(_0x4211fb,_0x3bd8b){return _0x4211fb!==_0x3bd8b;},'Uoxqp':'Invalid\x20'+_0x4b4245(0x250)+_0x4b4245(0x267)+'ogle,\x20op'+_0x4b4245(0x230)+'\x20anthrop'+_0x4b4245(0x25c),'PxaTU':function(_0x59ef0c,_0x2cfbe0){return _0x59ef0c===_0x2cfbe0;},'VJdWo':'gemini-2'+_0x4b4245(0x20e),'VPKqN':_0x4b4245(0x229)+_0x4b4245(0x21b),'elIcC':_0x4b4245(0x1fc)+'-5-sonne'+_0x4b4245(0x266),'VxWef':function(_0x419f72,_0x2550ea){return _0x419f72(_0x2550ea);},'ZFTrk':function(_0x33f97c,_0x3761c7){return _0x33f97c===_0x3761c7;},'DukGv':function(_0x3e5cea,_0x54f175){return _0x3e5cea===_0x54f175;},'dPjzY':_0x4b4245(0x204)+'c','WFfIE':function(_0x225e22,_0x2bb8c6){return _0x225e22(_0x2bb8c6);},'ysVNt':'CONFIGUR'+_0x4b4245(0x21d)+_0x4b4245(0x261),'TdFbj':_0x4b4245(0x214),'tODSC':function(_0x27db33,_0x3ebe56){return _0x27db33(_0x3ebe56);},'UKvkZ':_0x4b4245(0x23e)},_0x1414a2=_0x5971e3[_0x4b4245(0x25a)](getGlobalEnvPath);if(_0x5971e3[_0x4b4245(0x211)](existsSync,_0x1414a2)){const _0x59a794=await _0x5971e3[_0x4b4245(0x227)](askConfirmation,_0x1414a2+(_0x4b4245(0x235)+'\x20exists.'+'\x20Overwri'+_0x4b4245(0x1fd)+_0x4b4245(0x226)));if(!_0x59a794){console[_0x4b4245(0x231)](warn(_0x5971e3[_0x4b4245(0x1f2)])+(_0x4b4245(0x225)+'anceled.'));return;}}const _0x3cb480=await _0x5971e3[_0x4b4245(0x202)](askInput,_0x5971e3[_0x4b4245(0x23b)]),_0x54666a=_0x5971e3[_0x4b4245(0x25d)](_0x3cb480,_0x5971e3[_0x4b4245(0x228)])[_0x4b4245(0x24b)+_0x4b4245(0x254)]();_0x5971e3['MaHMn'](_0x54666a,_0x5971e3[_0x4b4245(0x228)])&&_0x5971e3[_0x4b4245(0x25b)](_0x54666a,_0x5971e3[_0x4b4245(0x217)])&&_0x5971e3['sxRSI'](_0x54666a,'anthropi'+'c')&&_0x5971e3[_0x4b4245(0x227)](failAndExit,_0x5971e3[_0x4b4245(0x1f7)]);const _0x56790c=_0x54666a,_0x2bdcf1=_0x5971e3[_0x4b4245(0x21e)](_0x56790c,_0x4b4245(0x265))?_0x5971e3[_0x4b4245(0x26c)]:_0x5971e3[_0x4b4245(0x21e)](_0x56790c,_0x5971e3[_0x4b4245(0x217)])?_0x5971e3[_0x4b4245(0x22d)]:_0x5971e3[_0x4b4245(0x259)],_0xb12ebe=await _0x5971e3[_0x4b4245(0x20f)](askInput,_0x4b4245(0x247)+_0x2bdcf1+_0x4b4245(0x240))||_0x2bdcf1,_0x43d561=getProviderKeyName(_0x56790c),_0x431c1f=await _0x5971e3['VxWef'](askInput,_0x43d561+':\x20'),_0x46ffea=[_0x4b4245(0x262)+_0x4b4245(0x236)+_0x56790c+'\x22',_0x4b4245(0x220)+'L=\x22'+_0xb12ebe+'\x22','',_0x4b4245(0x243)+_0x4b4245(0x23d)+(_0x56790c===_0x5971e3[_0x4b4245(0x228)]?_0x431c1f:'')+'\x22','GEMINI_A'+'PI_KEY=\x22'+'\x22',_0x4b4245(0x245)+_0x4b4245(0x23d)+(_0x5971e3[_0x4b4245(0x268)](_0x56790c,_0x5971e3['WCPJa'])?_0x431c1f:'')+'\x22',_0x4b4245(0x244)+_0x4b4245(0x1f6)+'Y=\x22'+(_0x5971e3[_0x4b4245(0x264)](_0x56790c,_0x5971e3[_0x4b4245(0x1f3)])?_0x431c1f:'')+'\x22','']['join']('\x0a');mkdirSync(_0x5971e3['WFfIE'](dirname,_0x1414a2),{'recursive':!![]}),writeFileSync(_0x1414a2,_0x46ffea,_0x4b4245(0x201)),_0x5971e3['jdEze'](section,_0x5971e3[_0x4b4245(0x1f1)]),_0x5971e3[_0x4b4245(0x232)](printKeyValues,[{'key':_0x5971e3[_0x4b4245(0x24c)],'value':_0x5971e3[_0x4b4245(0x22c)](ok,'OK')},{'key':_0x5971e3[_0x4b4245(0x248)],'value':_0x1414a2}]);}export function doctorConfig(){const _0x108e83=_0x5e69,_0x1f31f4={'kPQYI':function(_0x4825cd){return _0x4825cd();},'xVxIb':_0x108e83(0x23c),'SPnQF':function(_0x4ab0db,_0x1d6ec8){return _0x4ab0db(_0x1d6ec8);},'XfxFn':'google','IQplT':function(_0x4b68c8,_0x3bba79){return _0x4b68c8===_0x3bba79;},'qPyPt':'openai','WvNhK':_0x108e83(0x204)+'c','PHsHo':function(_0x33f0f3,_0x56f7e6){return _0x33f0f3(_0x56f7e6);},'UKISK':function(_0x40b80f,_0x3cf1d2){return _0x40b80f===_0x3cf1d2;},'sneww':function(_0xe10a30,_0x5c8ab4){return _0xe10a30===_0x5c8ab4;},'IxmMr':function(_0x4c021d,_0x4e970b){return _0x4c021d(_0x4e970b);},'WogvB':_0x108e83(0x22a),'qCJXk':_0x108e83(0x24f)+_0x108e83(0x23f),'SWqsD':'found','FshWx':'missing','dfcBw':'Local\x20.e'+'nv','ZMMjR':function(_0x36e65a,_0x3a99b8){return _0x36e65a(_0x3a99b8);},'EAjZw':'found\x20(o'+'verrides'+_0x108e83(0x238),'Aszjz':_0x108e83(0x262)+_0x108e83(0x1f8),'LPZsl':_0x108e83(0x208)+_0x108e83(0x246),'ksQWM':function(_0x1a8ea9,_0x4ea2cd){return _0x1a8ea9(_0x4ea2cd);},'NmIHW':function(_0x265602,_0x585434){return _0x265602(_0x585434);},'Fraez':_0x108e83(0x239),'AposU':function(_0xf7c6f,_0x22ac8c){return _0xf7c6f(_0x22ac8c);},'WfvPF':_0x108e83(0x245)+_0x108e83(0x1fe),'xMCHx':function(_0x36de24,_0x111268){return _0x36de24(_0x111268);},'KCNcP':_0x108e83(0x244)+_0x108e83(0x1f6)+'Y','JvLsu':function(_0x76c752,_0x30f510){return _0x76c752(_0x30f510);},'XGHhh':function(_0x4cb83a,_0xe86aa){return _0x4cb83a(_0xe86aa);}},_0x26ac36=_0x1f31f4[_0x108e83(0x242)](getGlobalEnvPath),_0xb580d8=_0x1f31f4[_0x108e83(0x21a)],_0x42ad4e=_0x1f31f4[_0x108e83(0x26b)](existsSync,_0xb580d8),_0x1df0cc=existsSync(_0x26ac36),_0x41ad5c=(process.env.LLM_PROVIDER||'')[_0x108e83(0x24b)+_0x108e83(0x254)](),_0x182230=process.env.LLM_MODEL||'',_0x935054=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x29a995=process.env.OPENAI_API_KEY||'',_0x3a7243=process.env.ANTHROPIC_API_KEY||'',_0x53988a=_0x41ad5c===_0x1f31f4[_0x108e83(0x23a)]||_0x1f31f4[_0x108e83(0x20a)](_0x41ad5c,_0x1f31f4[_0x108e83(0x260)])||_0x41ad5c===_0x1f31f4['WvNhK'],_0x401126=_0x1f31f4[_0x108e83(0x205)](Boolean,_0x182230),_0x5a939c=_0x1f31f4[_0x108e83(0x1fb)](_0x41ad5c,_0x1f31f4[_0x108e83(0x23a)])?_0x935054:_0x1f31f4['sneww'](_0x41ad5c,_0x1f31f4['qPyPt'])?_0x29a995:_0x41ad5c===_0x1f31f4[_0x108e83(0x255)]?_0x3a7243:'',_0x34f29d=_0x53988a?_0x1f31f4[_0x108e83(0x221)](getProviderKeyName,_0x41ad5c):_0x1f31f4['WogvB'],_0x52bab2=Boolean(_0x5a939c);_0x1f31f4[_0x108e83(0x221)](section,'DIAGNOST'+'ICS'),_0x1f31f4['SPnQF'](printKeyValues,[{'key':_0x108e83(0x24f)+_0x108e83(0x251),'value':_0x26ac36},{'key':_0x1f31f4['qCJXk'],'value':_0x1df0cc?ok(_0x1f31f4[_0x108e83(0x22b)]):_0x1f31f4[_0x108e83(0x221)](warn,_0x1f31f4['FshWx'])},{'key':_0x1f31f4[_0x108e83(0x234)],'value':_0x42ad4e?_0x1f31f4[_0x108e83(0x24d)](warn,_0x1f31f4['EAjZw']):_0x1f31f4[_0x108e83(0x205)](ok,_0x108e83(0x1f5)+'d')}]),console[_0x108e83(0x231)](),printKeyValues([{'key':_0x1f31f4[_0x108e83(0x22e)],'value':_0x53988a?ok('ok'):_0x1f31f4['ZMMjR'](bad,_0x1f31f4[_0x108e83(0x233)])},{'key':_0x108e83(0x220)+'L','value':_0x401126?ok('ok'):_0x1f31f4[_0x108e83(0x221)](bad,_0x1f31f4['FshWx'])},{'key':'Expected'+'\x20('+_0x34f29d+')','value':_0x52bab2?ok('ok'):_0x1f31f4[_0x108e83(0x21c)](bad,_0x1f31f4[_0x108e83(0x207)])},{'key':_0x108e83(0x243)+_0x108e83(0x1fe),'value':_0x935054?_0x1f31f4[_0x108e83(0x249)](ok,_0x1f31f4[_0x108e83(0x200)]):_0x1f31f4[_0x108e83(0x218)](warn,_0x1f31f4['FshWx'])},{'key':_0x1f31f4[_0x108e83(0x241)],'value':_0x29a995?_0x1f31f4[_0x108e83(0x253)](ok,_0x1f31f4[_0x108e83(0x200)]):_0x1f31f4[_0x108e83(0x253)](warn,_0x1f31f4[_0x108e83(0x207)])},{'key':_0x1f31f4['KCNcP'],'value':_0x3a7243?_0x1f31f4['JvLsu'](ok,_0x1f31f4[_0x108e83(0x200)]):_0x1f31f4[_0x108e83(0x257)](warn,_0x1f31f4[_0x108e83(0x207)])}]),(!_0x53988a||!_0x401126||!_0x52bab2)&&(process['exitCode']=0x1);}
1
+ (function(_0x560e90,_0x30822c){const _0x4b37bd=_0x1250,_0x471a88=_0x560e90();while(!![]){try{const _0xb3674=-parseInt(_0x4b37bd(0x1d3))/0x1+parseInt(_0x4b37bd(0x19c))/0x2+-parseInt(_0x4b37bd(0x1b0))/0x3*(-parseInt(_0x4b37bd(0x1b7))/0x4)+-parseInt(_0x4b37bd(0x197))/0x5+-parseInt(_0x4b37bd(0x1a8))/0x6*(parseInt(_0x4b37bd(0x1b8))/0x7)+-parseInt(_0x4b37bd(0x1e7))/0x8+parseInt(_0x4b37bd(0x1c9))/0x9*(parseInt(_0x4b37bd(0x1c3))/0xa);if(_0xb3674===_0x30822c)break;else _0x471a88['push'](_0x471a88['shift']());}catch(_0xe0d9a){_0x471a88['push'](_0x471a88['shift']());}}}(_0x155a,0xf3d3d));const _0x5760f3=(function(){let _0x623f7f=!![];return function(_0x20afa8,_0x5c0f2d){const _0x4b39ea=_0x623f7f?function(){const _0x4dd67=_0x1250;if(_0x5c0f2d){const _0x1361f3=_0x5c0f2d[_0x4dd67(0x1f1)](_0x20afa8,arguments);return _0x5c0f2d=null,_0x1361f3;}}:function(){};return _0x623f7f=![],_0x4b39ea;};}()),_0x55c861=_0x5760f3(this,function(){const _0x3e0570=_0x1250,_0x93ee7d={'qlghm':_0x3e0570(0x1cd)+_0x3e0570(0x1e3)};return _0x55c861[_0x3e0570(0x191)]()['search'](_0x93ee7d['qlghm'])['toString']()['construc'+_0x3e0570(0x19e)](_0x55c861)[_0x3e0570(0x1c6)](_0x93ee7d[_0x3e0570(0x1d5)]);});function _0x1250(_0x16a327,_0x2071ed){_0x16a327=_0x16a327-0x182;const _0x3e6726=_0x155a();let _0x55c861=_0x3e6726[_0x16a327];return _0x55c861;}_0x55c861();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 _0x155a(){const _0x50b943=['exitCode','toString','missing','NqArP','HBOdm','Path','found','7980605GJmKRw','-5-sonne','UKRSu','\x20(google','OPENAI_A','477434PRZVdz','dvFQH','tor','claude-3','ATION\x20SA','VaMsb','juexl','Uwicx','pelSG','FFVus','CVbxk','google','6gICLMc','\x20exists.','gemini-2','jUcQZ','HVhoC','openai','kUKBj','GEMINI_A','48675bxHNGI','oHepR','CANCELED','QYiDm','toLowerC','phPYE','ANTHROPI','408sHxdQW','2796395wllUbK','env','zczRp','verrides','C_API_KE','FTIUA','KozQv','ICS',']:\x20','sqQtS','PrLzJ','10BwVEZU','not\x20foun','anthropi','search','aEblR','Provider','18544635GrVbgi','Y=\x22','NkBDS','RxGbg','(((.+)+)','Global\x20.','biFQO','resRm','DIAGNOST','ase','877521RixAUM','sbygu','qlghm','EticW','.\x20Use\x20go','utf8','Setup\x20ca','missing/','\x20global)','Invalid\x20','bWFuK','cFHlM','RJzqA','txUPe','c)\x20[goog','\x20Overwri','+)+$','Qpexx','HGpIA','invalid','658704SaKGvf','DqTDW','fOqJC','Model\x20[','Status','GOOGLE_A','KEUcW','iAdmG','LLM_PROV','GqCjy','apply','rRyrL','DjFss','LLM_MODE','uNJJW','PI_KEY=\x22','DJqAm','TPRpz','uTISr','le]:\x20','eHwek','L=\x22','StmDp','oLXUj','IDER','jvYKH','ByyIZ','PI_KEY','VnQQt','BjMoo','mATaa'];_0x155a=function(){return _0x50b943;};return _0x155a();}function getProviderKeyName(_0xdc5697){const _0x327b1e=_0x1250,_0x4194e3={'QYiDm':function(_0x36da43,_0x59a8e9){return _0x36da43===_0x59a8e9;},'Qpexx':'GOOGLE_A'+_0x327b1e(0x18c),'PrLzJ':function(_0x3a6a2b,_0x51deed){return _0x3a6a2b===_0x51deed;},'DqTDW':'openai','zczRp':_0x327b1e(0x19b)+'PI_KEY','uTISr':_0x327b1e(0x1b6)+_0x327b1e(0x1bc)+'Y'};if(_0x4194e3[_0x327b1e(0x1b3)](_0xdc5697,_0x327b1e(0x1a7)))return _0x4194e3[_0x327b1e(0x1e4)];if(_0x4194e3[_0x327b1e(0x1c2)](_0xdc5697,_0x4194e3[_0x327b1e(0x1e8)]))return _0x4194e3[_0x327b1e(0x1ba)];return _0x4194e3[_0x327b1e(0x183)];}export async function initConfig(){const _0x1d5b10=_0x1250,_0x3a706a={'ttHpz':function(_0x99e23a){return _0x99e23a();},'KEUcW':function(_0x1f1af6,_0x47c5be){return _0x1f1af6(_0x47c5be);},'BjMoo':function(_0x47ed35,_0x25deb9,_0x3c0fc5){return _0x47ed35(_0x25deb9,_0x3c0fc5);},'TPRpz':_0x1d5b10(0x1b2),'sqQtS':_0x1d5b10(0x1d9)+'nceled.','resRm':_0x1d5b10(0x1c8)+_0x1d5b10(0x19a)+'/openai/'+_0x1d5b10(0x1c5)+_0x1d5b10(0x1e1)+_0x1d5b10(0x184),'oHepR':function(_0x28a89b,_0x24cb1d){return _0x28a89b||_0x24cb1d;},'jvYKH':function(_0x571d9c,_0x1ce1d5){return _0x571d9c!==_0x1ce1d5;},'sbygu':_0x1d5b10(0x1a7),'bWFuK':_0x1d5b10(0x1c5)+'c','KozQv':function(_0x496410,_0x57322e){return _0x496410===_0x57322e;},'EticW':_0x1d5b10(0x1aa)+'.5-flash','NqArP':function(_0x246cb2,_0xd931c2){return _0x246cb2===_0xd931c2;},'juexl':_0x1d5b10(0x1ad),'UKRSu':'gpt-4o-m'+'ini','iAdmG':_0x1d5b10(0x19f)+_0x1d5b10(0x198)+'t-latest','jUcQZ':function(_0x3e1c0d,_0x2f6017){return _0x3e1c0d(_0x2f6017);},'kUKBj':function(_0x1c96cb,_0x17ac8f){return _0x1c96cb(_0x17ac8f);},'Uwicx':_0x1d5b10(0x1af)+_0x1d5b10(0x1f6)+'\x22','zrADV':function(_0x5d644c,_0x29524a){return _0x5d644c===_0x29524a;},'biFQO':function(_0x2a5c32,_0x45855e,_0x434f3f,_0x4aa5bf){return _0x2a5c32(_0x45855e,_0x434f3f,_0x4aa5bf);},'GqCjy':_0x1d5b10(0x1d8),'qPcEy':'CONFIGUR'+_0x1d5b10(0x1a0)+'VED','aEblR':_0x1d5b10(0x195)},_0x96f28e=_0x3a706a['ttHpz'](getGlobalEnvPath);if(_0x3a706a['KEUcW'](existsSync,_0x96f28e)){const _0x5ca91c=await _0x3a706a['KEUcW'](askConfirmation,_0x96f28e+('\x20already'+_0x1d5b10(0x1a9)+_0x1d5b10(0x1e2)+'te?\x20(y/n'+'):\x20'));if(!_0x5ca91c){console['log'](_0x3a706a[_0x1d5b10(0x18e)](warn,_0x3a706a[_0x1d5b10(0x182)],_0x3a706a[_0x1d5b10(0x1c1)]));return;}}const _0x10ecad=await _0x3a706a[_0x1d5b10(0x1ed)](askInput,_0x3a706a[_0x1d5b10(0x1d0)]),_0x115582=_0x3a706a[_0x1d5b10(0x1b1)](_0x10ecad,_0x1d5b10(0x1a7))[_0x1d5b10(0x1b4)+_0x1d5b10(0x1d2)]();_0x3a706a[_0x1d5b10(0x18a)](_0x115582,_0x3a706a[_0x1d5b10(0x1d4)])&&_0x115582!==_0x1d5b10(0x1ad)&&_0x3a706a['jvYKH'](_0x115582,_0x3a706a[_0x1d5b10(0x1dd)])&&failAndExit(_0x1d5b10(0x1dc)+'provider'+_0x1d5b10(0x1d7)+'ogle,\x20op'+'enai,\x20or'+'\x20anthrop'+'ic.');const _0x500a63=_0x115582,_0x3d9348=_0x3a706a[_0x1d5b10(0x1be)](_0x500a63,_0x3a706a[_0x1d5b10(0x1d4)])?_0x3a706a[_0x1d5b10(0x1d6)]:_0x3a706a[_0x1d5b10(0x193)](_0x500a63,_0x3a706a[_0x1d5b10(0x1a2)])?_0x3a706a[_0x1d5b10(0x199)]:_0x3a706a[_0x1d5b10(0x1ee)],_0x3d80a7=await _0x3a706a['jUcQZ'](askInput,_0x1d5b10(0x1ea)+_0x3d9348+_0x1d5b10(0x1c0))||_0x3d9348,_0x34237b=_0x3a706a[_0x1d5b10(0x1ab)](getProviderKeyName,_0x500a63),_0x2a5164=await _0x3a706a[_0x1d5b10(0x1ae)](askInput,_0x34237b+':\x20'),_0x20ea3f=[_0x1d5b10(0x1ef)+'IDER=\x22'+_0x500a63+'\x22',_0x1d5b10(0x1f4)+_0x1d5b10(0x186)+_0x3d80a7+'\x22','',_0x1d5b10(0x1ec)+_0x1d5b10(0x1f6)+(_0x3a706a[_0x1d5b10(0x1be)](_0x500a63,_0x3a706a['sbygu'])?_0x2a5164:'')+'\x22',_0x3a706a[_0x1d5b10(0x1a3)],_0x1d5b10(0x19b)+_0x1d5b10(0x1f6)+(_0x3a706a['NqArP'](_0x500a63,_0x1d5b10(0x1ad))?_0x2a5164:'')+'\x22',_0x1d5b10(0x1b6)+'C_API_KE'+_0x1d5b10(0x1ca)+(_0x3a706a['zrADV'](_0x500a63,_0x3a706a[_0x1d5b10(0x1dd)])?_0x2a5164:'')+'\x22','']['join']('\x0a');_0x3a706a['BjMoo'](mkdirSync,_0x3a706a['jUcQZ'](dirname,_0x96f28e),{'recursive':!![]}),_0x3a706a[_0x1d5b10(0x1cf)](writeFileSync,_0x96f28e,_0x20ea3f,_0x3a706a[_0x1d5b10(0x1f0)]),_0x3a706a['kUKBj'](section,_0x3a706a['qPcEy']),printKeyValues([{'key':_0x1d5b10(0x1eb),'value':_0x3a706a['kUKBj'](ok,'OK')},{'key':_0x3a706a[_0x1d5b10(0x1c7)],'value':_0x96f28e}]);}export function doctorConfig(){const _0x1e576f=_0x1250,_0x450cd8={'rRyrL':'.env','mATaa':function(_0x506ae9,_0x496e30){return _0x506ae9(_0x496e30);},'RJzqA':function(_0x8a73b8,_0x4df9c8){return _0x8a73b8===_0x4df9c8;},'oLXUj':_0x1e576f(0x1ad),'HBOdm':function(_0x567923,_0x147ccb){return _0x567923===_0x147ccb;},'CVbxk':_0x1e576f(0x1a7),'dvFQH':function(_0x9986e0,_0x15c246){return _0x9986e0===_0x15c246;},'MkQRO':_0x1e576f(0x1c5)+'c','RxGbg':function(_0x3b55b9,_0x11bdf6){return _0x3b55b9(_0x11bdf6);},'LIRtU':'API_KEY','fOqJC':function(_0x3c3209,_0x110a84){return _0x3c3209(_0x110a84);},'VaMsb':_0x1e576f(0x1d1)+_0x1e576f(0x1bf),'DjFss':function(_0x1814bd,_0x1087f5){return _0x1814bd(_0x1087f5);},'VGDsk':_0x1e576f(0x1ce)+'env\x20path','prlFy':'Global\x20.'+_0x1e576f(0x1b9),'pelSG':_0x1e576f(0x196),'uNJJW':function(_0x53eb52,_0xfea31d){return _0x53eb52(_0xfea31d);},'HVhoC':'missing','FTIUA':'found\x20(o'+_0x1e576f(0x1bb)+_0x1e576f(0x1db),'FFVus':_0x1e576f(0x1c4)+'d','NkBDS':_0x1e576f(0x1ef)+_0x1e576f(0x189),'StmDp':_0x1e576f(0x1da)+_0x1e576f(0x1e6),'phPYE':function(_0x3ec889,_0x2525e0){return _0x3ec889(_0x2525e0);},'DJqAm':function(_0xaf7874,_0x2c8546){return _0xaf7874(_0x2c8546);},'cFHlM':function(_0x321158,_0x2bb1bd){return _0x321158(_0x2bb1bd);},'HGpIA':function(_0x583797,_0x3a8e68){return _0x583797(_0x3a8e68);},'eHwek':'set','txUPe':_0x1e576f(0x19b)+'PI_KEY','VnQQt':_0x1e576f(0x1b6)+_0x1e576f(0x1bc)+'Y','ByyIZ':function(_0x56847c,_0x5dfc95){return _0x56847c(_0x5dfc95);},'YCOhf':function(_0x279eca,_0x2a8faa){return _0x279eca||_0x2a8faa;}},_0x47b758=getGlobalEnvPath(),_0x4f7aec=_0x450cd8[_0x1e576f(0x1f2)],_0x5c86b0=_0x450cd8['mATaa'](existsSync,_0x4f7aec),_0x4ea9ef=_0x450cd8[_0x1e576f(0x18f)](existsSync,_0x47b758),_0x2a18fe=(process.env.LLM_PROVIDER||'')[_0x1e576f(0x1b4)+'ase'](),_0x2a31f2=process.env.LLM_MODEL||'',_0x3cd98c=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x52d74c=process.env.OPENAI_API_KEY||'',_0x27df0e=process.env.ANTHROPIC_API_KEY||'',_0x3c6dd8=_0x2a18fe===_0x1e576f(0x1a7)||_0x450cd8[_0x1e576f(0x1df)](_0x2a18fe,_0x450cd8['oLXUj'])||_0x450cd8[_0x1e576f(0x194)](_0x2a18fe,'anthropi'+'c'),_0x48a76c=_0x450cd8['mATaa'](Boolean,_0x2a31f2),_0x408cbe=_0x450cd8[_0x1e576f(0x194)](_0x2a18fe,_0x450cd8[_0x1e576f(0x1a6)])?_0x3cd98c:_0x450cd8[_0x1e576f(0x1df)](_0x2a18fe,_0x450cd8[_0x1e576f(0x188)])?_0x52d74c:_0x450cd8[_0x1e576f(0x19d)](_0x2a18fe,_0x450cd8['MkQRO'])?_0x27df0e:'',_0x1a5d9e=_0x3c6dd8?_0x450cd8[_0x1e576f(0x1cc)](getProviderKeyName,_0x2a18fe):_0x450cd8['LIRtU'],_0x3cf1b1=_0x450cd8[_0x1e576f(0x1e9)](Boolean,_0x408cbe);section(_0x450cd8[_0x1e576f(0x1a1)]),_0x450cd8[_0x1e576f(0x1f3)](printKeyValues,[{'key':_0x450cd8['VGDsk'],'value':_0x47b758},{'key':_0x450cd8['prlFy'],'value':_0x4ea9ef?_0x450cd8[_0x1e576f(0x1e9)](ok,_0x450cd8[_0x1e576f(0x1a4)]):_0x450cd8['uNJJW'](warn,_0x450cd8[_0x1e576f(0x1ac)])},{'key':'Local\x20.e'+'nv','value':_0x5c86b0?_0x450cd8['fOqJC'](warn,_0x450cd8[_0x1e576f(0x1bd)]):ok(_0x450cd8[_0x1e576f(0x1a5)])}]),console['log'](),_0x450cd8[_0x1e576f(0x1f5)](printKeyValues,[{'key':_0x450cd8[_0x1e576f(0x1cb)],'value':_0x3c6dd8?ok('ok'):bad(_0x450cd8[_0x1e576f(0x187)])},{'key':_0x1e576f(0x1f4)+'L','value':_0x48a76c?_0x450cd8[_0x1e576f(0x1b5)](ok,'ok'):_0x450cd8[_0x1e576f(0x1f7)](bad,'missing')},{'key':'Expected'+'\x20('+_0x1a5d9e+')','value':_0x3cf1b1?ok('ok'):_0x450cd8[_0x1e576f(0x1de)](bad,_0x450cd8[_0x1e576f(0x1ac)])},{'key':_0x1e576f(0x1ec)+_0x1e576f(0x18c),'value':_0x3cd98c?_0x450cd8[_0x1e576f(0x1e5)](ok,_0x450cd8[_0x1e576f(0x185)]):_0x450cd8[_0x1e576f(0x1de)](warn,_0x1e576f(0x192))},{'key':_0x450cd8[_0x1e576f(0x1e0)],'value':_0x52d74c?ok(_0x450cd8[_0x1e576f(0x185)]):_0x450cd8[_0x1e576f(0x1f7)](warn,_0x450cd8[_0x1e576f(0x1ac)])},{'key':_0x450cd8[_0x1e576f(0x18d)],'value':_0x27df0e?_0x450cd8[_0x1e576f(0x18b)](ok,_0x450cd8['eHwek']):_0x450cd8[_0x1e576f(0x1e5)](warn,_0x450cd8[_0x1e576f(0x1ac)])}]),(_0x450cd8['YCOhf'](!_0x3c6dd8,!_0x48a76c)||!_0x3cf1b1)&&(process[_0x1e576f(0x190)]=0x1);}
@@ -1 +1 @@
1
- (function(_0x57dfdb,_0x3d7b66){const _0x1d6893=_0x2dbc,_0x83578a=_0x57dfdb();while(!![]){try{const _0x2d51cb=parseInt(_0x1d6893(0x11a))/0x1*(-parseInt(_0x1d6893(0x119))/0x2)+-parseInt(_0x1d6893(0x127))/0x3*(-parseInt(_0x1d6893(0xd5))/0x4)+-parseInt(_0x1d6893(0xde))/0x5*(-parseInt(_0x1d6893(0xcb))/0x6)+-parseInt(_0x1d6893(0xfa))/0x7*(parseInt(_0x1d6893(0xe7))/0x8)+-parseInt(_0x1d6893(0xdf))/0x9+parseInt(_0x1d6893(0x108))/0xa*(-parseInt(_0x1d6893(0xdb))/0xb)+parseInt(_0x1d6893(0xee))/0xc;if(_0x2d51cb===_0x3d7b66)break;else _0x83578a['push'](_0x83578a['shift']());}catch(_0x34315b){_0x83578a['push'](_0x83578a['shift']());}}}(_0x4478,0xd8fea));const _0x3caa21=(function(){const _0x48ff82=_0x2dbc,_0x3a681d={'EoKKW':function(_0x316d9e,_0xea1a05){return _0x316d9e(_0xea1a05);},'LSllj':_0x48ff82(0x111)+_0x48ff82(0xe3)+_0x48ff82(0x121)+_0x48ff82(0xf8)+'y.','WyJMZ':function(_0x452af3,_0x482c9e){return _0x452af3===_0x482c9e;},'tuQXP':_0x48ff82(0xc3),'lDMYT':_0x48ff82(0xf1)};let _0x57bb7c=!![];return function(_0x23571f,_0x106b58){const _0x550dc2=_0x48ff82;if(_0x3a681d[_0x550dc2(0x10f)](_0x3a681d[_0x550dc2(0x114)],_0x3a681d[_0x550dc2(0x118)]))_0x3a681d[_0x550dc2(0xdd)](_0x20ce13,_0x3a681d['LSllj']);else{const _0x47e82f=_0x57bb7c?function(){const _0x4429ca=_0x550dc2;if(_0x106b58){const _0x1c19fc=_0x106b58[_0x4429ca(0xd2)](_0x23571f,arguments);return _0x106b58=null,_0x1c19fc;}}:function(){};return _0x57bb7c=![],_0x47e82f;}};}()),_0x107f49=_0x3caa21(this,function(){const _0x4a90b3=_0x2dbc,_0x51ffa8={'ubhrC':_0x4a90b3(0xf3)+_0x4a90b3(0x102)};return _0x107f49['toString']()[_0x4a90b3(0x115)](_0x51ffa8[_0x4a90b3(0xe6)])[_0x4a90b3(0xeb)]()['construc'+_0x4a90b3(0xce)](_0x107f49)['search'](_0x51ffa8[_0x4a90b3(0xe6)]);});_0x107f49();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';function _0x2dbc(_0x48634a,_0x501dd4){_0x48634a=_0x48634a-0xc0;const _0x5a714d=_0x4478();let _0x107f49=_0x5a714d[_0x48634a];return _0x107f49;}import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x16935c=_0x2dbc,_0x9d6e3f={'xDmrc':function(_0x4ae5b5){return _0x4ae5b5();},'Ggrlg':function(_0x42a74a,_0x352ada){return _0x42a74a(_0x352ada);},'TsIpm':function(_0x49a849,_0x1c05f2){return _0x49a849(_0x1c05f2);}};try{return _0x9d6e3f[_0x16935c(0xf2)](createLLM);}catch(_0x12a81f){const _0x3c0c42=_0x12a81f instanceof Error?_0x12a81f[_0x16935c(0x109)]:_0x9d6e3f[_0x16935c(0xd9)](String,_0x12a81f);_0x9d6e3f[_0x16935c(0xc5)](failAndExit,_0x3c0c42);}}function formatBranchContextForPrompt(){const _0x550ca8=_0x2dbc,_0x23d0cd={'uiZUB':function(_0x4aec82){return _0x4aec82();},'NkKzT':function(_0x33ff3e,_0x5cef51){return _0x33ff3e===_0x5cef51;},'PZebj':function(_0x69b03c,_0x343875){return _0x69b03c(_0x343875);},'IGMes':function(_0x2c0d0b){return _0x2c0d0b();},'YDKqO':_0x550ca8(0x125),'LxAqx':_0x550ca8(0xf5)+_0x550ca8(0xcc),'XUSHF':'(none)'},_0x2466b4=_0x23d0cd['uiZUB'](getBranchContext);_0x23d0cd[_0x550ca8(0xf7)](_0x2466b4[_0x550ca8(0x11c)][_0x550ca8(0xca)],0x0)&&_0x23d0cd[_0x550ca8(0xfc)](failAndExit,_0x550ca8(0xc9)+_0x550ca8(0xc4)+_0x550ca8(0xdc)+_0x550ca8(0x100)+_0x550ca8(0x104)+_0x550ca8(0xe5)+_0x2466b4['baseRef']+'.');const _0x293dc0=_0x2466b4[_0x550ca8(0x11c)][_0x550ca8(0xc8)](_0x21a18d=>{const _0x26ed9a=_0x550ca8,_0xcb9d1d=_0x21a18d[_0x26ed9a(0xed)]?_0x26ed9a(0xff)+'\x20'+_0x21a18d[_0x26ed9a(0xed)]['replace'](/\s+/g,'\x20')[_0x26ed9a(0xc0)]():'';return'-\x20'+_0x21a18d[_0x26ed9a(0xf6)]['slice'](0x0,0x7)+'\x20|\x20'+_0x21a18d['subject']+_0xcb9d1d;});return['Current\x20'+'branch:\x20'+_0x23d0cd[_0x550ca8(0xe4)](getCurrentBranch),_0x550ca8(0x10e)+_0x550ca8(0xfb)+_0x2466b4[_0x550ca8(0x122)],'',_0x23d0cd['YDKqO'],..._0x293dc0,'',_0x23d0cd[_0x550ca8(0xe8)],_0x2466b4[_0x550ca8(0xf0)+_0x550ca8(0xec)]||_0x550ca8(0x112),'','Diff\x20sta'+'t:',_0x2466b4[_0x550ca8(0xe0)]||_0x23d0cd['XUSHF']]['join']('\x0a');}function _0x4478(){const _0x4c7962=['TsIpm','cido\x0a\x0aCo','jFANp','map','No\x20commi','length','13824qjnKDa','files:','o\x20branch','tor','\x0aResuma\x20','ntexto\x20d','cipais\x20m','apply','udancas\x0a','Lwsje','24AobFOA','sta\x20com\x20','ecnico\x20q','AI\x20is\x20su','Ggrlg','RGZmB','1022087nURvjZ','\x20on\x20curr','EoKKW','1530Segqzf','4980636ajvNsm','diffStat','a\x20fora\x20d','o\x20contex','o\x20genera','IGMes','st\x20','ubhrC','37624vqnfuP','LxAqx','UMMARY','rto\x20+\x20li','toString','iles','body','23737680qJILOK','uando\x20po','changedF','eGVCR','xDmrc','(((.+)+)','ras:\x0a-\x20U','Changed\x20','hash','NkKzT','h\x20summar','to\x20forne','392MkjKIN','nch:\x20','PZebj','log','grafo\x20cu','\x20|\x20body:','ent\x20bran','\x20work...','+)+$','\x20feito\x20n','ch\x20again','yMBBN','zpLfF','-\x201\x20para','10SvyLVs','message','se\x20lingu','\x20que\x20foi','ural\x20e\x20o','bullets\x20','Base\x20bra','WyJMZ','agem\x20nat','Failed\x20t','(none)','este\x20bra','tuQXP','search','mpacto\x20t','BRANCH\x20S','lDMYT','2034722WDnoLl','1cAJrTW','g\x20branch','commits','gues\x20do\x20','bjetiva\x0a','em\x20portu','Branch','te\x20branc','baseRef','mmarizin','ssivel\x0a-','Commits:','invoke','66348ididKt','trim','Brasil\x20o','content','LOBPj','ts\x20found'];_0x4478=function(){return _0x4c7962;};return _0x4478();}export async function summarizeBranchLog(){const _0x44d758=_0x2dbc,_0x17b06a={'yMBBN':function(_0x710956){return _0x710956();},'jFANp':function(_0x12bac9){return _0x12bac9();},'DOCDG':_0x44d758(0xd8)+_0x44d758(0x123)+_0x44d758(0x11b)+_0x44d758(0x101),'RGZmB':function(_0x289d18,_0x1cdb60){return _0x289d18(_0x1cdb60);},'ZVIwE':function(_0x1f02dc,_0x48ce12){return _0x1f02dc(_0x48ce12);},'Lwsje':_0x44d758(0x117)+_0x44d758(0xe9),'zpLfF':_0x44d758(0x120)};_0x17b06a[_0x44d758(0x105)](getGitStatus);const _0x307e90=_0x17b06a[_0x44d758(0xc7)](getLLM),_0x14a2c4=formatBranchContextForPrompt(),_0xf05add=(_0x44d758(0xcf)+_0x44d758(0x11f)+_0x44d758(0x11d)+_0x44d758(0xc1)+_0x44d758(0x10b)+_0x44d758(0x103)+_0x44d758(0x113)+'nch.\x0aReg'+_0x44d758(0xf4)+_0x44d758(0x10a)+_0x44d758(0x110)+_0x44d758(0x10c)+_0x44d758(0x11e)+_0x44d758(0x107)+_0x44d758(0xfe)+_0x44d758(0xea)+_0x44d758(0xd6)+_0x44d758(0x10d)+'das\x20prin'+_0x44d758(0xd1)+_0x44d758(0xd3)+'-\x20Cite\x20i'+_0x44d758(0x116)+_0x44d758(0xd7)+_0x44d758(0xef)+_0x44d758(0x124)+'\x20Nao\x20inv'+'ente\x20nad'+_0x44d758(0xe1)+_0x44d758(0xe2)+_0x44d758(0xf9)+_0x44d758(0xc6)+_0x44d758(0xd0)+_0x44d758(0xcd)+':\x0a'+_0x14a2c4+'\x0a')['trim'](),_0x13f2ac=await withProgress(_0x17b06a['DOCDG'],()=>_0x307e90[_0x44d758(0x126)](_0xf05add)),_0x5c7ba8=_0x17b06a[_0x44d758(0xda)](extractMessageText,_0x13f2ac[_0x44d758(0xc2)]);!_0x5c7ba8&&failAndExit(_0x44d758(0x111)+_0x44d758(0xe3)+_0x44d758(0x121)+_0x44d758(0xf8)+'y.'),_0x17b06a['ZVIwE'](section,_0x17b06a[_0x44d758(0xd4)]),_0x17b06a[_0x44d758(0xda)](printKeyValues,[{'key':_0x17b06a[_0x44d758(0x106)],'value':_0x17b06a[_0x44d758(0xc7)](getCurrentBranch)}]),console[_0x44d758(0xfd)](_0x5c7ba8),console[_0x44d758(0xfd)]();}
1
+ (function(_0x319e7f,_0x36283f){const _0x1b4c22=_0x3e43,_0x46e074=_0x319e7f();while(!![]){try{const _0x4bb13c=-parseInt(_0x1b4c22(0x143))/0x1+-parseInt(_0x1b4c22(0x116))/0x2+-parseInt(_0x1b4c22(0x134))/0x3+parseInt(_0x1b4c22(0x10c))/0x4*(parseInt(_0x1b4c22(0x10f))/0x5)+-parseInt(_0x1b4c22(0x109))/0x6*(-parseInt(_0x1b4c22(0x127))/0x7)+parseInt(_0x1b4c22(0x14e))/0x8*(parseInt(_0x1b4c22(0xf6))/0x9)+parseInt(_0x1b4c22(0x157))/0xa*(parseInt(_0x1b4c22(0xfb))/0xb);if(_0x4bb13c===_0x36283f)break;else _0x46e074['push'](_0x46e074['shift']());}catch(_0x5c6d35){_0x46e074['push'](_0x46e074['shift']());}}}(_0x45b1,0xd0602));const _0x1c1bfe=(function(){const _0x33f36a={'rkssx':function(_0x59caac,_0x59d274){return _0x59caac(_0x59d274);}};let _0x19f324=!![];return function(_0x2fb67d,_0x118ebc){const _0x8c636f={'Kurgv':function(_0x80476e,_0x493b8c){const _0x3dc1a6=_0x3e43;return _0x33f36a[_0x3dc1a6(0x142)](_0x80476e,_0x493b8c);}},_0x3e8332=_0x19f324?function(){const _0x1137f1=_0x3e43;if(_0x1137f1(0x146)!==_0x1137f1(0x121)){if(_0x118ebc){const _0x48220=_0x118ebc[_0x1137f1(0x13e)](_0x2fb67d,arguments);return _0x118ebc=null,_0x48220;}}else _0x8c636f[_0x1137f1(0x112)](_0x10b35f,_0x1137f1(0x139)+_0x1137f1(0x15a)+_0x1137f1(0x110)+_0x1137f1(0x14b)+_0x1137f1(0x12b)+_0x1137f1(0x11a)+_0x3320aa[_0x1137f1(0x11c)]+'.');}:function(){};return _0x19f324=![],_0x3e8332;};}()),_0x614dd6=_0x1c1bfe(this,function(){const _0x187481=_0x3e43;return _0x614dd6[_0x187481(0x125)]()[_0x187481(0x140)]('(((.+)+)'+'+)+$')[_0x187481(0x125)]()[_0x187481(0x103)+_0x187481(0x12c)](_0x614dd6)[_0x187481(0x140)](_0x187481(0x14f)+_0x187481(0x11e));});_0x614dd6();function _0x3e43(_0x228305,_0x482dba){_0x228305=_0x228305-0xf2;const _0xb05783=_0x45b1();let _0x614dd6=_0xb05783[_0x228305];return _0x614dd6;}import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';function _0x45b1(){const _0x38e5b2=['sta\x20com\x20','ch\x20again','tor','mpacto\x20t','QmNhJ','dJgbE','se\x20lingu','diffStat','to\x20forne','XMTRZ','4983468gYDjRI','replace','rto\x20+\x20li','ural\x20e\x20o','h\x20summar','No\x20commi','branch:\x20','ente\x20nad','Brasil\x20o','\x20feito\x20n','apply','agem\x20nat','search','Current\x20','rkssx','847021cfsQzK','te\x20branc','Branch','ZOxvz','Base\x20bra','dYben','o\x20branch','\x20|\x20body:','ent\x20bran','\x20work...','cyRnr','8zHlMur','(((.+)+)','(none)','grafo\x20cu','MuyVV','gvEfs','ssivel\x0a-','gues\x20do\x20','AI\x20is\x20su','70VZCGzc','ntexto\x20d','Changed\x20','ts\x20found','-\x20Cite\x20i','-\x201\x20para','changedF','BRANCH\x20S','iheSJ','iles','map','NyMMD','em\x20portu','11122803CBvDlk','iDsSv','ras:\x0a-\x20U','hash','Diff\x20sta','3208480nugdge','\x20Nao\x20inv','zZPXt','cipais\x20m','hMFni','uando\x20po','KitJk','g\x20branch','construc','message','trim','Commits:','length','join','388092eWivWb','MGspL','log','668EyKvwl','bullets\x20','body','24880DGJDyV','\x20on\x20curr','dLCVi','Kurgv','das\x20prin','este\x20bra','subject','1623236wuZjwM','invoke','commits','files:','st\x20','content','baseRef','\x20|\x20','+)+$','WFzhZ','JfgDa','vDLjl','XgelE','slice','lXgtf','toString','Failed\x20t','7YjbSMH','nch:\x20','dDQHz'];_0x45b1=function(){return _0x38e5b2;};return _0x45b1();}import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x1afc6f=_0x3e43,_0xfd1e98={'NyMMD':function(_0x1d902a){return _0x1d902a();},'ULpbH':function(_0x332d77,_0x115881){return _0x332d77===_0x115881;},'dLCVi':function(_0x3ce900,_0x21cd8d){return _0x3ce900(_0x21cd8d);},'cyRnr':function(_0x19f351){return _0x19f351();},'MGspL':_0x1afc6f(0x106),'gvEfs':_0x1afc6f(0x159)+_0x1afc6f(0x119),'dYben':function(_0x38afbf){return _0x38afbf();},'dJgbE':function(_0x1450df,_0x49096a){return _0x1450df!==_0x49096a;},'SYQUt':_0x1afc6f(0x11f),'hMFni':function(_0x271361,_0x1b6cc4){return _0x271361 instanceof _0x1b6cc4;}};try{return _0xfd1e98[_0x1afc6f(0x148)](createLLM);}catch(_0x33fb68){if(_0xfd1e98[_0x1afc6f(0x12f)](_0xfd1e98['SYQUt'],_0x1afc6f(0x11f))){const _0x2b488a=_0xfd1e98[_0x1afc6f(0xf4)](_0x41dc9f);_0xfd1e98['ULpbH'](_0x2b488a[_0x1afc6f(0x118)][_0x1afc6f(0x107)],0x0)&&_0xfd1e98[_0x1afc6f(0x111)](_0x46fa2c,_0x1afc6f(0x139)+_0x1afc6f(0x15a)+'\x20on\x20curr'+_0x1afc6f(0x14b)+_0x1afc6f(0x12b)+_0x1afc6f(0x11a)+_0x2b488a[_0x1afc6f(0x11c)]+'.');const _0x358e8c=_0x2b488a[_0x1afc6f(0x118)][_0x1afc6f(0xf3)](_0x483a31=>{const _0x36c4c1=_0x1afc6f,_0xb075e7=_0x483a31[_0x36c4c1(0x10e)]?_0x36c4c1(0x14a)+'\x20'+_0x483a31['body'][_0x36c4c1(0x135)](/\s+/g,'\x20')[_0x36c4c1(0x105)]():'';return'-\x20'+_0x483a31['hash'][_0x36c4c1(0x123)](0x0,0x7)+_0x36c4c1(0x11d)+_0x483a31[_0x36c4c1(0x115)]+_0xb075e7;});return[_0x1afc6f(0x141)+_0x1afc6f(0x13a)+_0xfd1e98[_0x1afc6f(0x14d)](_0x2a1a42),'Base\x20bra'+_0x1afc6f(0x128)+_0x2b488a['baseRef'],'',_0xfd1e98[_0x1afc6f(0x10a)],..._0x358e8c,'',_0xfd1e98[_0x1afc6f(0x153)],_0x2b488a[_0x1afc6f(0x15d)+_0x1afc6f(0xf2)]||_0x1afc6f(0x150),'',_0x1afc6f(0xfa)+'t:',_0x2b488a[_0x1afc6f(0x131)]||_0x1afc6f(0x150)][_0x1afc6f(0x108)]('\x0a');}else{const _0x555e0a=_0xfd1e98[_0x1afc6f(0xff)](_0x33fb68,Error)?_0x33fb68[_0x1afc6f(0x104)]:_0xfd1e98[_0x1afc6f(0x111)](String,_0x33fb68);_0xfd1e98[_0x1afc6f(0x111)](failAndExit,_0x555e0a);}}}function formatBranchContextForPrompt(){const _0x56ecf1=_0x3e43,_0x35457a={'JfgDa':function(_0xfb155c){return _0xfb155c();},'iheSJ':function(_0x281dcf,_0x5019ff){return _0x281dcf===_0x5019ff;},'ymkzc':function(_0x4998e5,_0x197c7b){return _0x4998e5(_0x197c7b);},'zOJxh':function(_0x530afb){return _0x530afb();},'XMTRZ':_0x56ecf1(0x150),'MuyVV':'Diff\x20sta'+'t:'},_0x32b945=_0x35457a[_0x56ecf1(0x120)](getBranchContext);_0x35457a[_0x56ecf1(0x15f)](_0x32b945[_0x56ecf1(0x118)][_0x56ecf1(0x107)],0x0)&&_0x35457a['ymkzc'](failAndExit,_0x56ecf1(0x139)+'ts\x20found'+_0x56ecf1(0x110)+_0x56ecf1(0x14b)+_0x56ecf1(0x12b)+_0x56ecf1(0x11a)+_0x32b945['baseRef']+'.');const _0x15159e=_0x32b945[_0x56ecf1(0x118)][_0x56ecf1(0xf3)](_0x25f194=>{const _0x15bf70=_0x56ecf1,_0xf0869d=_0x25f194[_0x15bf70(0x10e)]?_0x15bf70(0x14a)+'\x20'+_0x25f194[_0x15bf70(0x10e)][_0x15bf70(0x135)](/\s+/g,'\x20')[_0x15bf70(0x105)]():'';return'-\x20'+_0x25f194[_0x15bf70(0xf9)][_0x15bf70(0x123)](0x0,0x7)+_0x15bf70(0x11d)+_0x25f194[_0x15bf70(0x115)]+_0xf0869d;});return[_0x56ecf1(0x141)+_0x56ecf1(0x13a)+_0x35457a['zOJxh'](getCurrentBranch),_0x56ecf1(0x147)+'nch:\x20'+_0x32b945['baseRef'],'',_0x56ecf1(0x106),..._0x15159e,'',_0x56ecf1(0x159)+_0x56ecf1(0x119),_0x32b945['changedF'+'iles']||_0x35457a[_0x56ecf1(0x133)],'',_0x35457a[_0x56ecf1(0x152)],_0x32b945[_0x56ecf1(0x131)]||_0x56ecf1(0x150)]['join']('\x0a');}export async function summarizeBranchLog(){const _0x4ec14d=_0x3e43,_0x181820={'KitJk':function(_0x303208,_0x346f8c){return _0x303208(_0x346f8c);},'iDsSv':function(_0x585eb1){return _0x585eb1();},'dDQHz':_0x4ec14d(0x156)+'mmarizin'+_0x4ec14d(0x102)+_0x4ec14d(0x14c),'nygAW':function(_0xe13a26,_0x29844c){return _0xe13a26!==_0x29844c;},'jdXOr':'XgelE','QmNhJ':_0x4ec14d(0x126)+'o\x20genera'+_0x4ec14d(0x144)+_0x4ec14d(0x138)+'y.','zZPXt':function(_0x37ca31,_0x3d4691){return _0x37ca31(_0x3d4691);},'lXgtf':function(_0x2bc79e,_0x1e3aa1){return _0x2bc79e(_0x1e3aa1);},'QUjLL':_0x4ec14d(0x145),'UdXTj':function(_0x246646){return _0x246646();}};getGitStatus();const _0x20c031=getLLM(),_0x143d13=_0x181820[_0x4ec14d(0xf7)](formatBranchContextForPrompt),_0x103b8e=('\x0aResuma\x20'+_0x4ec14d(0xf5)+_0x4ec14d(0x155)+_0x4ec14d(0x13c)+'\x20que\x20foi'+_0x4ec14d(0x13d)+_0x4ec14d(0x114)+'nch.\x0aReg'+_0x4ec14d(0xf8)+_0x4ec14d(0x130)+_0x4ec14d(0x13f)+_0x4ec14d(0x137)+'bjetiva\x0a'+_0x4ec14d(0x15c)+_0x4ec14d(0x151)+_0x4ec14d(0x136)+_0x4ec14d(0x12a)+_0x4ec14d(0x10d)+_0x4ec14d(0x113)+_0x4ec14d(0xfe)+'udancas\x0a'+_0x4ec14d(0x15b)+_0x4ec14d(0x12d)+'ecnico\x20q'+_0x4ec14d(0x100)+_0x4ec14d(0x154)+_0x4ec14d(0xfc)+_0x4ec14d(0x13b)+'a\x20fora\x20d'+'o\x20contex'+_0x4ec14d(0x132)+'cido\x0a\x0aCo'+_0x4ec14d(0x158)+_0x4ec14d(0x149)+':\x0a'+_0x143d13+'\x0a')[_0x4ec14d(0x105)](),_0x3e5ae0=await withProgress(_0x181820[_0x4ec14d(0x129)],()=>_0x20c031[_0x4ec14d(0x117)](_0x103b8e)),_0x1418bd=extractMessageText(_0x3e5ae0[_0x4ec14d(0x11b)]);if(!_0x1418bd){if(_0x181820['nygAW'](_0x181820['jdXOr'],_0x4ec14d(0x122))){const _0x38fd86=_0x292cdc instanceof _0x2689d9?_0x504c58[_0x4ec14d(0x104)]:HySZDw[_0x4ec14d(0x101)](_0x41f8ed,_0x1cc02e);_0x33a0fe(_0x38fd86);}else failAndExit(_0x181820[_0x4ec14d(0x12e)]);}_0x181820[_0x4ec14d(0xfd)](section,_0x4ec14d(0x15e)+'UMMARY'),_0x181820[_0x4ec14d(0x124)](printKeyValues,[{'key':_0x181820['QUjLL'],'value':_0x181820['UdXTj'](getCurrentBranch)}]),console[_0x4ec14d(0x10b)](_0x1418bd),console['log']();}
@@ -1 +1 @@
1
- (function(_0xc015f,_0x6e52e8){const _0x44eb1a=_0x39ca,_0x3c5895=_0xc015f();while(!![]){try{const _0x159096=-parseInt(_0x44eb1a(0x159))/0x1*(-parseInt(_0x44eb1a(0x14d))/0x2)+parseInt(_0x44eb1a(0x19c))/0x3+parseInt(_0x44eb1a(0x13d))/0x4*(-parseInt(_0x44eb1a(0x18c))/0x5)+parseInt(_0x44eb1a(0x135))/0x6*(-parseInt(_0x44eb1a(0x12a))/0x7)+parseInt(_0x44eb1a(0x130))/0x8+-parseInt(_0x44eb1a(0x16c))/0x9*(-parseInt(_0x44eb1a(0x192))/0xa)+-parseInt(_0x44eb1a(0x151))/0xb;if(_0x159096===_0x6e52e8)break;else _0x3c5895['push'](_0x3c5895['shift']());}catch(_0x19d0bf){_0x3c5895['push'](_0x3c5895['shift']());}}}(_0x1b4f,0xb4a65));function _0x1b4f(){const _0x4d816f=['sting\x0a\x0aR','changedF','AI\x20respo','tion\x20wit','2401fZoeFg','PR\x20title','ent\x20bran','UOqoB','Failed\x20t','ion:','1337368JOGpFm','reate:\x0a-','apply','PR\x20DESCR','eparing\x20','16782ZRCiBn','max\x2072\x20c','indexOf','commits','trim','title:','a\x20GitHub','te\x20PR\x20co','8EqwJgU','Title','uBxpO','(((.+)+)','own>\x0a\x0aBr','ased\x20on\x20','(none)','PR\x20TITLE','ATIiO','\x20A\x20conci','\x0aYou\x20are','ent\x20for\x20','startsWi','diffStat','log','oCLfE','271888mabMaR','ilgWq',':\x0a<markd','\x20on\x20curr','1628792HgwEUM','split','vGjgC','Diff\x20sta','title','markdown','rOarj','lQchw','5KNMnHF','ude\x20vali','\x20descrip','body','toLowerC','nges,\x20Te','Changed\x20','\x20and\x20des','branch:\x20','descript','ns:\x20Summ','IPTION','ing\x20cont','Current\x20','ase','message','join','+)+$','lFcGK','27981uewYpM','h\x20sectio','ary,\x20Cha','search','KgJwN','baseRef','om\x20AI\x20re','PR\x20sugge','ts\x20found','below,\x20c','gZmko','nch:\x20','invoke','findInde','tle>\x0aDES','Base\x20bra','ion','rmat:\x0aTI','ntent.','sponse.','ocaKv','le/descr','\x20|\x20','CRIPTION','toString','nse\x20did\x20','replace','LhBej','aXvhe','hash','actly\x20in','the\x20bran','309330VgJtzj','TLE:\x20<ti','UFCyX','files:','slice','iToPf','1920Qflfzn','o\x20genera','ZCUff','iles','aDYzN','iption.','find','construc','cription','hars)\x0a-\x20','1581891JMkWVp','not\x20incl','sSeio','ch\x20data\x20','WBeIa','\x20this\x20fo','d\x20PR\x20tit','A\x20clear\x20','Commits:'];_0x1b4f=function(){return _0x4d816f;};return _0x1b4f();}const _0x1045a1=(function(){let _0x44c994=!![];return function(_0x414b1b,_0x5884b7){const _0x1449bb=_0x44c994?function(){const _0x28cd24=_0x39ca;if(_0x5884b7){const _0x2285dd=_0x5884b7[_0x28cd24(0x132)](_0x414b1b,arguments);return _0x5884b7=null,_0x2285dd;}}:function(){};return _0x44c994=![],_0x1449bb;};}()),_0x49378f=_0x1045a1(this,function(){const _0x3a0e73=_0x39ca,_0x20881d={'gZmko':_0x3a0e73(0x140)+_0x3a0e73(0x16a)};return _0x49378f[_0x3a0e73(0x184)]()[_0x3a0e73(0x16f)](_0x3a0e73(0x140)+_0x3a0e73(0x16a))[_0x3a0e73(0x184)]()[_0x3a0e73(0x199)+'tor'](_0x49378f)[_0x3a0e73(0x16f)](_0x20881d[_0x3a0e73(0x176)]);});_0x49378f();import{createLLM,extractMessageText}from'../llm.js';function _0x39ca(_0x3816ae,_0x3391bc){_0x3816ae=_0x3816ae-0x122;const _0x2ae533=_0x1b4f();let _0x49378f=_0x2ae533[_0x3816ae];return _0x49378f;}import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0xaa02fb=_0x39ca,_0x3cc7f3={'rOarj':function(_0x328be4,_0x5e9a8c){return _0x328be4 instanceof _0x5e9a8c;},'WBeIa':function(_0x5d0488,_0x3c3e79){return _0x5d0488(_0x3c3e79);}};try{return createLLM();}catch(_0x17bbd5){const _0x15b98d=_0x3cc7f3[_0xaa02fb(0x157)](_0x17bbd5,Error)?_0x17bbd5[_0xaa02fb(0x168)]:_0x3cc7f3[_0xaa02fb(0x1a0)](String,_0x17bbd5);_0x3cc7f3[_0xaa02fb(0x1a0)](failAndExit,_0x15b98d);}}function formatCommitsForPrompt(){const _0x10e65e=_0x39ca,_0x250ca6={'LhBej':function(_0x54acdc){return _0x54acdc();},'vGjgC':function(_0x354412,_0x1c7476){return _0x354412===_0x1c7476;},'oCLfE':function(_0x408603,_0x579cad){return _0x408603(_0x579cad);},'UFCyX':function(_0x41b011){return _0x41b011();},'ilgWq':_0x10e65e(0x125),'aXvhe':_0x10e65e(0x143),'uBxpO':_0x10e65e(0x154)+'t:'},_0x5dc8d9=_0x250ca6[_0x10e65e(0x187)](getBranchContext);_0x250ca6[_0x10e65e(0x153)](_0x5dc8d9[_0x10e65e(0x138)]['length'],0x0)&&_0x250ca6[_0x10e65e(0x14c)](failAndExit,'No\x20commi'+_0x10e65e(0x174)+_0x10e65e(0x150)+_0x10e65e(0x12c)+'ch\x20again'+'st\x20'+_0x5dc8d9[_0x10e65e(0x171)]+'.');const _0x70b2ac=_0x5dc8d9[_0x10e65e(0x138)]['map'](_0x1c011f=>{const _0x1d373a=_0x10e65e,_0x19f038=_0x1c011f[_0x1d373a(0x15c)]?'\x20|\x20body:'+'\x20'+_0x1c011f['body'][_0x1d373a(0x186)](/\s+/g,'\x20')[_0x1d373a(0x139)]():'';return'-\x20'+_0x1c011f[_0x1d373a(0x189)][_0x1d373a(0x190)](0x0,0x7)+_0x1d373a(0x182)+_0x1c011f['subject']+_0x19f038;});return[_0x10e65e(0x166)+_0x10e65e(0x161)+_0x250ca6[_0x10e65e(0x18e)](getCurrentBranch),_0x10e65e(0x17b)+_0x10e65e(0x177)+_0x5dc8d9['baseRef'],'',_0x250ca6[_0x10e65e(0x14e)],..._0x70b2ac,'',_0x10e65e(0x15f)+_0x10e65e(0x18f),_0x5dc8d9[_0x10e65e(0x127)+_0x10e65e(0x195)]||_0x250ca6[_0x10e65e(0x188)],'',_0x250ca6[_0x10e65e(0x13f)],_0x5dc8d9[_0x10e65e(0x14a)]||_0x10e65e(0x143)][_0x10e65e(0x169)]('\x0a');}function parsePrSuggestion(_0x2df9d9){const _0x597cea=_0x39ca,_0x4886ce={'dxOsd':function(_0x268951,_0x2c0063){return _0x268951<_0x2c0063;},'iToPf':function(_0x620015,_0x41f8e0){return _0x620015(_0x41f8e0);},'ocaKv':_0x597cea(0x12e)+'o\x20parse\x20'+_0x597cea(0x173)+'stion\x20fr'+_0x597cea(0x172)+_0x597cea(0x17f),'lQchw':function(_0x1188fa,_0x4ce04c){return _0x1188fa+_0x4ce04c;},'jMTIV':function(_0xc65fc0,_0x29eec1){return _0xc65fc0(_0x29eec1);},'FNzbL':_0x597cea(0x128)+_0x597cea(0x185)+_0x597cea(0x19d)+_0x597cea(0x15a)+_0x597cea(0x123)+_0x597cea(0x181)+_0x597cea(0x197)},_0x5310fa=_0x2df9d9[_0x597cea(0x152)](/\r?\n/),_0x3fd808=_0x5310fa[_0x597cea(0x198)](_0x1810cc=>_0x1810cc[_0x597cea(0x15d)+_0x597cea(0x167)]()[_0x597cea(0x149)+'th'](_0x597cea(0x13a))),_0x2614de=_0x5310fa[_0x597cea(0x179)+'x'](_0x8d61e0=>_0x8d61e0['toLowerC'+_0x597cea(0x167)]()[_0x597cea(0x149)+'th'](_0x597cea(0x162)+_0x597cea(0x12f)));(!_0x3fd808||_0x4886ce['dxOsd'](_0x2614de,0x0))&&_0x4886ce[_0x597cea(0x191)](failAndExit,_0x4886ce[_0x597cea(0x180)]);const _0x54150e=_0x3fd808[_0x597cea(0x190)](_0x4886ce[_0x597cea(0x158)](_0x3fd808[_0x597cea(0x137)](':'),0x1))[_0x597cea(0x139)](),_0x4de3c4=_0x5310fa[_0x597cea(0x190)](_0x2614de+0x1)[_0x597cea(0x169)]('\x0a')[_0x597cea(0x139)]();return(!_0x54150e||!_0x4de3c4)&&_0x4886ce['jMTIV'](failAndExit,_0x4886ce['FNzbL']),{'title':_0x54150e,'description':_0x4de3c4};}export async function generatePullRequestText(){const _0x28e7d5=_0x39ca,_0x35e758={'KgJwN':function(_0x21d3c4){return _0x21d3c4();},'ZCUff':function(_0xe2e794,_0x54d162,_0x43c357){return _0xe2e794(_0x54d162,_0x43c357);},'ATIiO':'AI\x20is\x20pr'+_0x28e7d5(0x134)+_0x28e7d5(0x12b)+_0x28e7d5(0x160)+_0x28e7d5(0x19a)+'...','UOqoB':function(_0x1b0b40,_0x230f04){return _0x1b0b40(_0x230f04);},'eZwjU':'Failed\x20t'+_0x28e7d5(0x193)+_0x28e7d5(0x13c)+_0x28e7d5(0x17e),'sSeio':function(_0x5c4b3f,_0x46df83){return _0x5c4b3f(_0x46df83);},'aDYzN':_0x28e7d5(0x144),'lFcGK':_0x28e7d5(0x13e),'tzaaG':_0x28e7d5(0x133)+_0x28e7d5(0x164)};_0x35e758[_0x28e7d5(0x170)](getGitStatus);const _0x15c565=_0x35e758[_0x28e7d5(0x170)](getLLM),_0x1c5967=_0x35e758[_0x28e7d5(0x170)](formatCommitsForPrompt),_0x3e2fce=(_0x28e7d5(0x147)+'\x20generat'+_0x28e7d5(0x165)+_0x28e7d5(0x148)+_0x28e7d5(0x13b)+'\x20Pull\x20Re'+'quest.\x0aB'+_0x28e7d5(0x142)+_0x28e7d5(0x18b)+_0x28e7d5(0x19f)+_0x28e7d5(0x175)+_0x28e7d5(0x131)+_0x28e7d5(0x146)+'se\x20PR\x20ti'+'tle\x20in\x20E'+'nglish\x20('+_0x28e7d5(0x136)+_0x28e7d5(0x19b)+_0x28e7d5(0x124)+_0x28e7d5(0x156)+_0x28e7d5(0x15b)+_0x28e7d5(0x129)+_0x28e7d5(0x16d)+_0x28e7d5(0x163)+_0x28e7d5(0x16e)+_0x28e7d5(0x15e)+_0x28e7d5(0x126)+'eturn\x20ex'+_0x28e7d5(0x18a)+_0x28e7d5(0x122)+_0x28e7d5(0x17d)+_0x28e7d5(0x18d)+_0x28e7d5(0x17a)+_0x28e7d5(0x183)+_0x28e7d5(0x14f)+_0x28e7d5(0x141)+'anch\x20dat'+'a:\x0a'+_0x1c5967+'\x0a')[_0x28e7d5(0x139)](),_0x310fb5=await _0x35e758[_0x28e7d5(0x194)](withProgress,_0x35e758[_0x28e7d5(0x145)],()=>_0x15c565[_0x28e7d5(0x178)](_0x3e2fce)),_0x33f544=extractMessageText(_0x310fb5['content']);!_0x33f544&&_0x35e758[_0x28e7d5(0x12d)](failAndExit,_0x35e758['eZwjU']);const _0x5ea342=_0x35e758[_0x28e7d5(0x19e)](parsePrSuggestion,_0x33f544);section(_0x35e758[_0x28e7d5(0x196)]),printKeyValues([{'key':_0x35e758[_0x28e7d5(0x16b)],'value':_0x5ea342[_0x28e7d5(0x155)]}]),_0x35e758[_0x28e7d5(0x19e)](section,_0x35e758['tzaaG']),console[_0x28e7d5(0x14b)](_0x5ea342['descript'+_0x28e7d5(0x17c)]),console[_0x28e7d5(0x14b)]();}
1
+ (function(_0x45a856,_0x11830e){const _0x6804da=_0x4a37,_0x5096d4=_0x45a856();while(!![]){try{const _0x2b3fdd=parseInt(_0x6804da(0xa9))/0x1+parseInt(_0x6804da(0xea))/0x2*(-parseInt(_0x6804da(0xda))/0x3)+parseInt(_0x6804da(0x80))/0x4+parseInt(_0x6804da(0xae))/0x5+-parseInt(_0x6804da(0x96))/0x6+parseInt(_0x6804da(0xde))/0x7*(-parseInt(_0x6804da(0x85))/0x8)+-parseInt(_0x6804da(0xa4))/0x9*(parseInt(_0x6804da(0xa1))/0xa);if(_0x2b3fdd===_0x11830e)break;else _0x5096d4['push'](_0x5096d4['shift']());}catch(_0x3c58e9){_0x5096d4['push'](_0x5096d4['shift']());}}}(_0x1756,0xf17ce));const _0x4c34e1=(function(){let _0x51cd3c=!![];return function(_0x5cf559,_0x379316){const _0x306ac4=_0x51cd3c?function(){const _0x1b2cf2=_0x4a37;if(_0x379316){const _0x1f7950=_0x379316[_0x1b2cf2(0x82)](_0x5cf559,arguments);return _0x379316=null,_0x1f7950;}}:function(){};return _0x51cd3c=![],_0x306ac4;};}()),_0x44dde2=_0x4c34e1(this,function(){const _0x1b4b1f=_0x4a37,_0x4ab1dd={'maoXu':_0x1b4b1f(0xb2)+_0x1b4b1f(0xd6)};return _0x44dde2[_0x1b4b1f(0xe8)]()['search'](_0x1b4b1f(0xb2)+_0x1b4b1f(0xd6))[_0x1b4b1f(0xe8)]()[_0x1b4b1f(0x8f)+_0x1b4b1f(0x78)](_0x44dde2)['search'](_0x4ab1dd[_0x1b4b1f(0xdc)]);});_0x44dde2();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function _0x4a37(_0xc136c,_0x27dcd3){_0xc136c=_0xc136c-0x6e;const _0x5a99af=_0x1756();let _0x44dde2=_0x5a99af[_0xc136c];return _0x44dde2;}function getLLM(){const _0x39ff7d=_0x4a37,_0x1542db={'oNmjJ':function(_0x15c6fa){return _0x15c6fa();},'rsMZA':function(_0x264413,_0x241685){return _0x264413 instanceof _0x241685;},'UrZeQ':function(_0x23f42c,_0x356400){return _0x23f42c(_0x356400);}};try{return _0x1542db['oNmjJ'](createLLM);}catch(_0x53795f){const _0x55dd73=_0x1542db[_0x39ff7d(0x8a)](_0x53795f,Error)?_0x53795f[_0x39ff7d(0xb6)]:String(_0x53795f);_0x1542db[_0x39ff7d(0xbf)](failAndExit,_0x55dd73);}}function formatCommitsForPrompt(){const _0x356f98=_0x4a37,_0x43145b={'kuhyl':_0x356f98(0xb2)+'+)+$','xEGDA':function(_0x1d750f,_0x242c0b){return _0x1d750f!==_0x242c0b;},'JzkyI':'qsKde','GfTnL':_0x356f98(0x8e),'CMpst':function(_0x441be0){return _0x441be0();},'SAGWo':function(_0x8bba64,_0x408236){return _0x8bba64===_0x408236;},'UyFTS':_0x356f98(0x73)+'t:'},_0x496c66=_0x43145b[_0x356f98(0xc8)](getBranchContext);_0x43145b[_0x356f98(0xc9)](_0x496c66[_0x356f98(0xc5)]['length'],0x0)&&failAndExit('No\x20commi'+'ts\x20found'+'\x20on\x20curr'+_0x356f98(0x6f)+_0x356f98(0xe1)+_0x356f98(0xe0)+_0x496c66[_0x356f98(0xb3)]+'.');const _0x40b7f3=_0x496c66[_0x356f98(0xc5)][_0x356f98(0xd4)](_0x38f833=>{const _0x24a3d3=_0x356f98,_0x598cf1={'FqCCP':_0x43145b[_0x24a3d3(0xd1)]};if(_0x43145b[_0x24a3d3(0x9c)](_0x43145b[_0x24a3d3(0x84)],_0x43145b[_0x24a3d3(0xa3)])){const _0x37aeb3=_0x38f833['body']?'\x20|\x20body:'+'\x20'+_0x38f833[_0x24a3d3(0xac)][_0x24a3d3(0xcd)](/\s+/g,'\x20')[_0x24a3d3(0x7e)]():'';return'-\x20'+_0x38f833['hash']['slice'](0x0,0x7)+_0x24a3d3(0x9b)+_0x38f833[_0x24a3d3(0xd8)]+_0x37aeb3;}else return _0x1c057e['toString']()[_0x24a3d3(0x70)](mkgtFr['FqCCP'])[_0x24a3d3(0xe8)]()[_0x24a3d3(0x8f)+_0x24a3d3(0x78)](_0x20e56b)[_0x24a3d3(0x70)](mkgtFr['FqCCP']);});return['Current\x20'+_0x356f98(0xe5)+getCurrentBranch(),_0x356f98(0x8b)+_0x356f98(0xad)+_0x496c66[_0x356f98(0xb3)],'',_0x356f98(0xdb),..._0x40b7f3,'',_0x356f98(0xd7)+_0x356f98(0x7d),_0x496c66[_0x356f98(0xa7)+_0x356f98(0xc6)]||_0x356f98(0x86),'',_0x43145b[_0x356f98(0xbb)],_0x496c66[_0x356f98(0x71)]||_0x356f98(0x86)][_0x356f98(0xaf)]('\x0a');}function parsePrSuggestion(_0x1d5344){const _0x3ec76e=_0x4a37,_0x1bba19={'CBfTN':function(_0x388401,_0x505881){return _0x388401<_0x505881;},'XDoBi':function(_0x4421b9,_0x1f618c){return _0x4421b9(_0x1f618c);},'XgDdc':'Failed\x20t'+'o\x20parse\x20'+'PR\x20sugge'+_0x3ec76e(0x9a)+'om\x20AI\x20re'+_0x3ec76e(0xe6),'WCQRA':function(_0x34b412,_0x29e52f){return _0x34b412+_0x29e52f;},'uinea':function(_0x2f10a4,_0x2bf522){return _0x2f10a4+_0x2bf522;},'seeCl':function(_0x52ba5b,_0x8e0227){return _0x52ba5b||_0x8e0227;},'eotBe':function(_0x2dc895,_0xdb3f24){return _0x2dc895(_0xdb3f24);}},_0x2797e3=_0x1d5344[_0x3ec76e(0xc4)](/\r?\n/),_0x1e8225=_0x2797e3['find'](_0x4ad326=>_0x4ad326[_0x3ec76e(0xd9)+'ase']()[_0x3ec76e(0xbe)+'th'](_0x3ec76e(0xb9))),_0x3f5233=_0x2797e3[_0x3ec76e(0xc7)+'x'](_0x56ae4e=>_0x56ae4e['toLowerC'+_0x3ec76e(0xaa)]()['startsWi'+'th'](_0x3ec76e(0xce)+'ion:'));(!_0x1e8225||_0x1bba19[_0x3ec76e(0xb8)](_0x3f5233,0x0))&&_0x1bba19[_0x3ec76e(0xb0)](failAndExit,_0x1bba19[_0x3ec76e(0xe9)]);const _0x5ca2d9=_0x1e8225[_0x3ec76e(0x9d)](_0x1bba19[_0x3ec76e(0xeb)](_0x1e8225[_0x3ec76e(0xcb)](':'),0x1))[_0x3ec76e(0x7e)](),_0x350097=_0x2797e3['slice'](_0x1bba19[_0x3ec76e(0x94)](_0x3f5233,0x1))[_0x3ec76e(0xaf)]('\x0a')[_0x3ec76e(0x7e)]();return _0x1bba19[_0x3ec76e(0xd0)](!_0x5ca2d9,!_0x350097)&&_0x1bba19[_0x3ec76e(0x7a)](failAndExit,_0x3ec76e(0x74)+_0x3ec76e(0xb4)+_0x3ec76e(0xab)+_0x3ec76e(0x87)+_0x3ec76e(0x88)+_0x3ec76e(0xdd)+_0x3ec76e(0xba)),{'title':_0x5ca2d9,'description':_0x350097};}function _0x1756(){const _0x4fd248=['title','2838384iYwkNP','eRiSj','ary,\x20Cha','ion','stion\x20fr','\x20|\x20','xEGDA','slice','eturn\x20ex','tle>\x0aDES','below,\x20c','84290iNVVTX','rmat:\x0aTI','GfTnL','342WFjtCQ','PR\x20TITLE','tion\x20wit','changedF','tle\x20in\x20E','1586058YcbWrR','ase','not\x20incl','body','nch:\x20','6863955XyuOdl','join','XDoBi','IJbAR','(((.+)+)','baseRef','nse\x20did\x20','log','message','PR\x20title','CBfTN','title:','iption.','UyFTS','\x20and\x20des','...','startsWi','UrZeQ','ch\x20data\x20','hars)\x0a-\x20','o\x20genera','TmKTM','split','commits','iles','findInde','CMpst','SAGWo','CZUaj','indexOf','anch\x20dat','replace','descript','nglish\x20(','seeCl','kuhyl','\x20A\x20conci','max\x2072\x20c','map','dFXfV','+)+$','Changed\x20','subject','toLowerC','1095oQjefb','Commits:','maoXu','le/descr','3537947ckJwpC','content','st\x20','ch\x20again','markdown','oxkxO','YXhVw','branch:\x20','sponse.','EIgBH','toString','XgDdc','5468Qvgiui','WCQRA','PR\x20DESCR','ent\x20bran','search','diffStat','\x20this\x20fo','Diff\x20sta','AI\x20respo','a:\x0a','te\x20PR\x20co','a\x20GitHub','tor','quest.\x0aB','eotBe','CSqfY','ntent.','files:','trim','nges,\x20Te','3329612invDXG','FYdnF','apply','\x20Pull\x20Re','JzkyI','16SnhFZw','(none)','ude\x20vali','d\x20PR\x20tit','sting\x0a\x0aR','rsMZA','Base\x20bra','the\x20bran','actly\x20in','EMSqQ','construc','AI\x20is\x20pr','CRIPTION','\x20descrip','\x20generat','uinea'];_0x1756=function(){return _0x4fd248;};return _0x1756();}export async function generatePullRequestText(){const _0xe3c477=_0x4a37,_0x5d4cec={'EIgBH':function(_0x106bd9){return _0x106bd9();},'dFXfV':function(_0x4b3d35,_0x39bf02,_0x33ce4a){return _0x4b3d35(_0x39bf02,_0x33ce4a);},'CSqfY':_0xe3c477(0x90)+'eparing\x20'+_0xe3c477(0xb7)+_0xe3c477(0xbc)+'cription'+_0xe3c477(0xbd),'YXhVw':function(_0x13aa9a,_0x4b5e5e){return _0x13aa9a(_0x4b5e5e);},'eRiSj':'Failed\x20t'+_0xe3c477(0xc2)+_0xe3c477(0x76)+_0xe3c477(0x7c),'FYdnF':function(_0x1fbb1c,_0x12896d){return _0x1fbb1c(_0x12896d);},'CZUaj':function(_0x106e13,_0x25e95b){return _0x106e13(_0x25e95b);},'IJbAR':_0xe3c477(0xa5),'TmKTM':function(_0x2253b5,_0x235ba7){return _0x2253b5(_0x235ba7);},'oxkxO':_0xe3c477(0x6e)+'IPTION'};getGitStatus();const _0x2b1ef0=_0x5d4cec[_0xe3c477(0xe7)](getLLM),_0x4476f8=_0x5d4cec[_0xe3c477(0xe7)](formatCommitsForPrompt),_0xc97492=('\x0aYou\x20are'+_0xe3c477(0x93)+'ing\x20cont'+'ent\x20for\x20'+_0xe3c477(0x77)+_0xe3c477(0x83)+_0xe3c477(0x79)+'ased\x20on\x20'+_0xe3c477(0x8c)+_0xe3c477(0xc0)+_0xe3c477(0xa0)+'reate:\x0a-'+_0xe3c477(0xd2)+'se\x20PR\x20ti'+_0xe3c477(0xa8)+_0xe3c477(0xcf)+_0xe3c477(0xd3)+_0xe3c477(0xc1)+'A\x20clear\x20'+_0xe3c477(0xe2)+_0xe3c477(0x92)+_0xe3c477(0xa6)+'h\x20sectio'+'ns:\x20Summ'+_0xe3c477(0x98)+_0xe3c477(0x7f)+_0xe3c477(0x89)+_0xe3c477(0x9e)+_0xe3c477(0x8d)+_0xe3c477(0x72)+_0xe3c477(0xa2)+'TLE:\x20<ti'+_0xe3c477(0x9f)+_0xe3c477(0x91)+':\x0a<markd'+'own>\x0a\x0aBr'+_0xe3c477(0xcc)+_0xe3c477(0x75)+_0x4476f8+'\x0a')[_0xe3c477(0x7e)](),_0x53e31d=await _0x5d4cec[_0xe3c477(0xd5)](withProgress,_0x5d4cec[_0xe3c477(0x7b)],()=>_0x2b1ef0['invoke'](_0xc97492)),_0x101398=extractMessageText(_0x53e31d[_0xe3c477(0xdf)]);!_0x101398&&_0x5d4cec[_0xe3c477(0xe4)](failAndExit,_0x5d4cec[_0xe3c477(0x97)]);const _0x4f5b98=_0x5d4cec[_0xe3c477(0x81)](parsePrSuggestion,_0x101398);_0x5d4cec[_0xe3c477(0xca)](section,_0x5d4cec[_0xe3c477(0xb1)]),_0x5d4cec[_0xe3c477(0xc3)](printKeyValues,[{'key':'Title','value':_0x4f5b98[_0xe3c477(0x95)]}]),section(_0x5d4cec[_0xe3c477(0xe3)]),console['log'](_0x4f5b98[_0xe3c477(0xce)+_0xe3c477(0x99)]),console[_0xe3c477(0xb5)]();}
@@ -1 +1 @@
1
- (function(_0x591e52,_0x5ea45f){const _0x4ebb1f=_0x2864,_0x17223=_0x591e52();while(!![]){try{const _0x249f90=-parseInt(_0x4ebb1f(0x159))/0x1*(-parseInt(_0x4ebb1f(0x18e))/0x2)+parseInt(_0x4ebb1f(0x170))/0x3*(parseInt(_0x4ebb1f(0x182))/0x4)+parseInt(_0x4ebb1f(0x16d))/0x5+parseInt(_0x4ebb1f(0x15f))/0x6*(-parseInt(_0x4ebb1f(0x171))/0x7)+parseInt(_0x4ebb1f(0x15e))/0x8*(parseInt(_0x4ebb1f(0x174))/0x9)+parseInt(_0x4ebb1f(0x154))/0xa+parseInt(_0x4ebb1f(0x186))/0xb*(parseInt(_0x4ebb1f(0x18c))/0xc);if(_0x249f90===_0x5ea45f)break;else _0x17223['push'](_0x17223['shift']());}catch(_0x5bed23){_0x17223['push'](_0x17223['shift']());}}}(_0x496f,0x7caa9));const _0x2657ce=(function(){let _0x294cd9=!![];return function(_0x4efc99,_0x1c0095){const _0x32d4fb=_0x294cd9?function(){const _0x217b53=_0x2864;if(_0x1c0095){const _0x107765=_0x1c0095[_0x217b53(0x15a)](_0x4efc99,arguments);return _0x1c0095=null,_0x107765;}}:function(){};return _0x294cd9=![],_0x32d4fb;};}()),_0x4000d3=_0x2657ce(this,function(){const _0x2aaa35=_0x2864,_0x2b25e4={'QRuOy':_0x2aaa35(0x183)+_0x2aaa35(0x16e)};return _0x4000d3[_0x2aaa35(0x180)]()['search'](_0x2aaa35(0x183)+'+)+$')['toString']()['construc'+_0x2aaa35(0x18b)](_0x4000d3)['search'](_0x2b25e4[_0x2aaa35(0x164)]);});_0x4000d3();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x1e7a0c}from'dotenv';function getBaseConfigDir(){const _0x174821=_0x2864,_0x5c0aaf={'UcXKI':function(_0x4a631d,_0x589ec2){return _0x4a631d(_0x589ec2);},'GfpyT':function(_0x4533b6,_0xbc76c3,_0x2b5dd3){return _0x4533b6(_0xbc76c3,_0x2b5dd3);},'nCQfc':function(_0x4c4844,_0x1bb779){return _0x4c4844===_0x1bb779;},'SSeHk':_0x174821(0x162),'DReoR':_0x174821(0x185),'uTNhA':function(_0x3dacdd,_0x3e83fd,_0x2a0e08){return _0x3dacdd(_0x3e83fd,_0x2a0e08);},'fdRAb':function(_0xa40ab3){return _0xa40ab3();},'vZUlb':_0x174821(0x177),'lUjjl':function(_0x40d3b2,_0x17a0a0){return _0x40d3b2!==_0x17a0a0;},'ljgTT':'KavDF','CEBks':'jnuhN','JRPzk':function(_0x12e20a){return _0x12e20a();},'gNqqb':_0x174821(0x153),'tbSaE':'Applicat'+'ion\x20Supp'+_0x174821(0x17e),'ZrEcH':function(_0x38b7a7){return _0x38b7a7();}};if(_0x5c0aaf[_0x174821(0x155)](process[_0x174821(0x172)],_0x5c0aaf['SSeHk'])){if(_0x5c0aaf['nCQfc'](_0x5c0aaf[_0x174821(0x169)],_0x5c0aaf[_0x174821(0x169)]))return process.env.APPDATA||_0x5c0aaf[_0x174821(0x15b)](join,_0x5c0aaf[_0x174821(0x188)](homedir),_0x5c0aaf['vZUlb']);else return;}if(process[_0x174821(0x172)]===_0x174821(0x16b)){if(_0x5c0aaf[_0x174821(0x168)](_0x5c0aaf[_0x174821(0x165)],_0x5c0aaf[_0x174821(0x18d)]))return join(_0x5c0aaf[_0x174821(0x187)](homedir),_0x5c0aaf[_0x174821(0x167)],_0x5c0aaf[_0x174821(0x161)]);else{if(!_0x4ebafe(_0x38dae9))return;const _0x2ebcc2=_0x5c0aaf[_0x174821(0x18a)](_0x5d1eda,_0x5c0aaf[_0x174821(0x17b)](_0x5ecec5,_0x50fe89,_0x174821(0x156)));for(const [_0x10eaa6,_0x111723]of _0x17423b[_0x174821(0x184)](_0x2ebcc2)){(_0x542537||_0x5c0aaf[_0x174821(0x155)](_0x34e86c.env[_0x10eaa6],_0x1e7cc8))&&(_0x5714dc.env[_0x10eaa6]=_0x111723);}}}return process.env.XDG_CONFIG_HOME||join(_0x5c0aaf[_0x174821(0x189)](homedir),_0x174821(0x178));}function _0x2864(_0x21229a,_0x5a02d3){_0x21229a=_0x21229a-0x152;const _0x10c11b=_0x496f();let _0x4000d3=_0x10c11b[_0x21229a];return _0x4000d3;}function _0x496f(){const _0x569964=['JRPzk','fdRAb','ZrEcH','UcXKI','tor','1308OWaaSc','CEBks','533506lHxDxr','cerwY','Library','1821190zWTOZr','nCQfc','utf8','YwPyN','DfGXC','1hPcQKJ','apply','uTNhA','kQkPj','YnDFe','16nONHIV','12SBpGcB','Oyyio','tbSaE','win32','ETTsF','QRuOy','ljgTT','zNUVE','gNqqb','lUjjl','DReoR','JFjVf','darwin','hOgBm','58750nkcmJT','+)+$','dQaNJ','996024mVwfMj','3238809EfAcuA','platform','CHeqI','965079uEyYfS','FZdqj','DYRqv','.gemit','.config','.env','Pestx','GfpyT','fRmdd','wdnES','ort','gemit','toString','dAUjv','4eyMKAF','(((.+)+)','entries','IJkRK','43285BoHXMM'];_0x496f=function(){return _0x569964;};return _0x496f();}export function getGlobalEnvPath(){const _0x16eb8e=_0x2864,_0x246325={'YnDFe':'win32','Pestx':function(_0x5aaf45,_0x31e793,_0x3fbe82,_0x153d0f){return _0x5aaf45(_0x31e793,_0x3fbe82,_0x153d0f);},'wdnES':function(_0xdc7095,_0x3bd028,_0x533ea1,_0x3d6f74){return _0xdc7095(_0x3bd028,_0x533ea1,_0x3d6f74);}};if(process[_0x16eb8e(0x172)]===_0x246325[_0x16eb8e(0x15d)]&&process.env.APPDATA)return _0x246325[_0x16eb8e(0x17a)](join,process.env.APPDATA,_0x16eb8e(0x17f),_0x16eb8e(0x179));return _0x246325[_0x16eb8e(0x17d)](join,getBaseConfigDir(),_0x16eb8e(0x17f),_0x16eb8e(0x179));}export function loadConfig(){const _0x52988e=_0x2864,_0x4e8bc8={'cerwY':'win32','hOgBm':function(_0x3109c9,_0x385cae,_0x1bce04,_0x1658d3){return _0x3109c9(_0x385cae,_0x1bce04,_0x1658d3);},'dQaNJ':_0x52988e(0x17f),'Oyyio':'.env','zNUVE':function(_0x1b3a8c){return _0x1b3a8c();},'DfGXC':function(_0x14f4b1,_0x2369ee,_0x10e3d5){return _0x14f4b1(_0x2369ee,_0x10e3d5);},'fRmdd':function(_0x4538bc,_0x505fb0){return _0x4538bc(_0x505fb0);},'kQkPj':function(_0x1784a2,_0x4dca1f){return _0x1784a2===_0x4dca1f;},'ETTsF':'egwND'},_0x10cd84=_0x4e8bc8[_0x52988e(0x166)](getGlobalEnvPath);_0x4e8bc8[_0x52988e(0x158)](loadEnvFile,_0x10cd84,![]);if(_0x4e8bc8[_0x52988e(0x17c)](existsSync,_0x52988e(0x179))){if(_0x4e8bc8[_0x52988e(0x15c)](_0x52988e(0x176),_0x4e8bc8[_0x52988e(0x163)])){if(_0x5dabdc[_0x52988e(0x172)]===yftiQG[_0x52988e(0x152)]&&_0xff1279.env.APPDATA)return yftiQG[_0x52988e(0x16c)](_0x589336,_0x2073a9.env.APPDATA,yftiQG[_0x52988e(0x16f)],yftiQG[_0x52988e(0x160)]);return yftiQG[_0x52988e(0x16c)](_0x7f1aca,yftiQG[_0x52988e(0x166)](_0x33a2e5),yftiQG[_0x52988e(0x16f)],_0x52988e(0x179));}else _0x4e8bc8[_0x52988e(0x158)](loadEnvFile,_0x4e8bc8[_0x52988e(0x160)],!![]);}}function loadEnvFile(_0x599bdc,_0x219707){const _0x55a6be=_0x2864,_0x5f22e2={'YwPyN':_0x55a6be(0x179),'XMmLV':function(_0x33bd62,_0x25d86b){return _0x33bd62(_0x25d86b);},'dAUjv':function(_0x3d57c7,_0x3c786e,_0x1280cb){return _0x3d57c7(_0x3c786e,_0x1280cb);},'CHeqI':function(_0x1b343f,_0x359c42){return _0x1b343f===_0x359c42;},'FZdqj':_0x55a6be(0x16a)};if(!existsSync(_0x599bdc))return;const _0x7f1d0d=_0x5f22e2['XMmLV'](_0x1e7a0c,_0x5f22e2[_0x55a6be(0x181)](readFileSync,_0x599bdc,_0x55a6be(0x156)));for(const [_0x5adcd9,_0xf0c59a]of Object['entries'](_0x7f1d0d)){if(_0x219707||process.env[_0x5adcd9]===undefined){if(_0x5f22e2[_0x55a6be(0x173)](_0x5f22e2[_0x55a6be(0x175)],_0x5f22e2[_0x55a6be(0x175)]))process.env[_0x5adcd9]=_0xf0c59a;else return _0x2858db(_0x5f4ca2.env.APPDATA,_0x55a6be(0x17f),RWfnNw[_0x55a6be(0x157)]);}}}
1
+ (function(_0x4aaf96,_0x26b4ba){const _0x1b8260=_0x40a8,_0x528063=_0x4aaf96();while(!![]){try{const _0x49ad17=-parseInt(_0x1b8260(0x1cf))/0x1+parseInt(_0x1b8260(0x1b0))/0x2+parseInt(_0x1b8260(0x1b4))/0x3*(parseInt(_0x1b8260(0x1d1))/0x4)+parseInt(_0x1b8260(0x1d6))/0x5+-parseInt(_0x1b8260(0x1c7))/0x6*(-parseInt(_0x1b8260(0x1be))/0x7)+parseInt(_0x1b8260(0x1c6))/0x8+-parseInt(_0x1b8260(0x1c9))/0x9;if(_0x49ad17===_0x26b4ba)break;else _0x528063['push'](_0x528063['shift']());}catch(_0x2d3c63){_0x528063['push'](_0x528063['shift']());}}}(_0x2162,0x97f03));const _0x4fbcfa=(function(){let _0x599424=!![];return function(_0x2685eb,_0x43efad){const _0x369602=_0x599424?function(){const _0x16fa4e=_0x40a8;if(_0x43efad){const _0x182571=_0x43efad[_0x16fa4e(0x1c0)](_0x2685eb,arguments);return _0x43efad=null,_0x182571;}}:function(){};return _0x599424=![],_0x369602;};}()),_0x446bbf=_0x4fbcfa(this,function(){const _0x56ed30=_0x40a8,_0x35d22b={'qgqsV':_0x56ed30(0x1b7)+_0x56ed30(0x1b8)};return _0x446bbf[_0x56ed30(0x1cc)]()[_0x56ed30(0x1d5)](_0x35d22b[_0x56ed30(0x1c2)])['toString']()['construc'+'tor'](_0x446bbf)[_0x56ed30(0x1d5)](_0x35d22b['qgqsV']);});function _0x2162(){const _0xea6f4f=['rmBLU','.env','444467sffCSq','fAJRU','10876gGnBHQ','WfRYV','huYFu','pEkwG','search','716885VucWNu','SxyHZ','QDPrf','XyLbr','MwXcR','cJSiD','platform','abhDr','788798CJVfyW','ntAZV','RtkOX','tMBZr','1203gsCQZE','utf8','HrrmS','(((.+)+)','+)+$','flHLg','rmxwm','.config','cVWTu','Applicat','21OwlYTh','fEfCI','apply','ort','qgqsV','gemit','ion\x20Supp','win32','6082168lXrbCG','1733178YaBhMl','Library','19693341iSwDUy','RuqqY','cRfDn','toString'];_0x2162=function(){return _0xea6f4f;};return _0x2162();}_0x446bbf();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';function _0x40a8(_0x2c0c6f,_0xeb8be7){_0x2c0c6f=_0x2c0c6f-0x1a9;const _0x141e56=_0x2162();let _0x446bbf=_0x141e56[_0x2c0c6f];return _0x446bbf;}import{parse as _0x459cec}from'dotenv';function getBaseConfigDir(){const _0xc4e761=_0x40a8,_0x22217a={'PqyXU':function(_0x251ec0,_0x3d770a,_0x621134){return _0x251ec0(_0x3d770a,_0x621134);},'rmBLU':_0xc4e761(0x1ce),'pEkwG':function(_0x4688f8,_0x150026,_0xcccfd){return _0x4688f8(_0x150026,_0xcccfd);},'ntAZV':function(_0x5eb460){return _0x5eb460();},'abhDr':'.gemit','RvsxP':function(_0x3ca419,_0xbe30ba){return _0x3ca419===_0xbe30ba;},'XDeta':'darwin','cJSiD':_0xc4e761(0x1a9),'WfRYV':function(_0x32a2c4,_0x3ae3f4,_0x23767a,_0x3d7042){return _0x32a2c4(_0x3ae3f4,_0x23767a,_0x3d7042);},'RtkOX':function(_0x35736b){return _0x35736b();},'fEfCI':_0xc4e761(0x1c8),'rmxwm':_0xc4e761(0x1bd)+_0xc4e761(0x1c4)+_0xc4e761(0x1c1),'DdEnf':function(_0x9441ff,_0x5887c9,_0x577231){return _0x9441ff(_0x5887c9,_0x577231);},'RVeCk':function(_0x47d4a8){return _0x47d4a8();},'cVWTu':_0xc4e761(0x1bb)};if(process[_0xc4e761(0x1ae)]===_0xc4e761(0x1c5))return process.env.APPDATA||_0x22217a[_0xc4e761(0x1d4)](join,_0x22217a[_0xc4e761(0x1b1)](homedir),_0x22217a[_0xc4e761(0x1af)]);if(_0x22217a['RvsxP'](process[_0xc4e761(0x1ae)],_0x22217a['XDeta'])){if(_0x22217a['cJSiD']===_0x22217a[_0xc4e761(0x1ad)])return _0x22217a[_0xc4e761(0x1d2)](join,_0x22217a[_0xc4e761(0x1b2)](homedir),_0x22217a[_0xc4e761(0x1bf)],_0x22217a[_0xc4e761(0x1ba)]);else _0x22217a['PqyXU'](_0xd1987b,_0x22217a[_0xc4e761(0x1cd)],!![]);}return process.env.XDG_CONFIG_HOME||_0x22217a['DdEnf'](join,_0x22217a['RVeCk'](homedir),_0x22217a[_0xc4e761(0x1bc)]);}export function getGlobalEnvPath(){const _0x367c91=_0x40a8,_0x320f45={'cRfDn':_0x367c91(0x1c5),'MwXcR':function(_0x47612d,_0x2d793c,_0x1dd00d,_0x4424cf){return _0x47612d(_0x2d793c,_0x1dd00d,_0x4424cf);},'flHLg':_0x367c91(0x1ce),'tMBZr':function(_0x401517){return _0x401517();},'RuqqY':_0x367c91(0x1c3)};if(process[_0x367c91(0x1ae)]===_0x320f45[_0x367c91(0x1cb)]&&process.env.APPDATA)return _0x320f45[_0x367c91(0x1ac)](join,process.env.APPDATA,_0x367c91(0x1c3),_0x320f45['flHLg']);return join(_0x320f45[_0x367c91(0x1b3)](getBaseConfigDir),_0x320f45[_0x367c91(0x1ca)],_0x320f45[_0x367c91(0x1b9)]);}export function loadConfig(){const _0x474ddc=_0x40a8,_0x2487fa={'huYFu':function(_0x4b71fa,_0x3a8589,_0x5eddf7){return _0x4b71fa(_0x3a8589,_0x5eddf7);},'fAJRU':function(_0x343c9b,_0x10dc4c){return _0x343c9b(_0x10dc4c);}},_0x31a724=getGlobalEnvPath();_0x2487fa[_0x474ddc(0x1d3)](loadEnvFile,_0x31a724,![]),_0x2487fa[_0x474ddc(0x1d0)](existsSync,'.env')&&_0x2487fa['huYFu'](loadEnvFile,'.env',!![]);}function loadEnvFile(_0x2ed8c6,_0x16b8fc){const _0x1e2842=_0x40a8,_0x5e6aef={'HrrmS':function(_0x38f52b,_0x472ca1){return _0x38f52b(_0x472ca1);},'XyLbr':function(_0x453da4,_0x12651f,_0x5be13d){return _0x453da4(_0x12651f,_0x5be13d);},'QDPrf':function(_0x341336,_0x20c65b){return _0x341336===_0x20c65b;}};if(!_0x5e6aef[_0x1e2842(0x1b6)](existsSync,_0x2ed8c6))return;const _0x3f080c=_0x5e6aef['HrrmS'](_0x459cec,_0x5e6aef[_0x1e2842(0x1ab)](readFileSync,_0x2ed8c6,_0x1e2842(0x1b5)));for(const [_0xbb541,_0x793ab6]of Object['entries'](_0x3f080c)){(_0x16b8fc||_0x5e6aef[_0x1e2842(0x1aa)](process.env[_0xbb541],undefined))&&(process.env[_0xbb541]=_0x793ab6);}}
@@ -1 +1 @@
1
- function _0x4509(_0x2e1c5a,_0x2d1782){_0x2e1c5a=_0x2e1c5a-0x162;const _0x338c5a=_0x264c();let _0x19628c=_0x338c5a[_0x2e1c5a];return _0x19628c;}(function(_0x15b0ab,_0x1f2dfb){const _0x20c5d2=_0x4509,_0x590dca=_0x15b0ab();while(!![]){try{const _0xd10128=parseInt(_0x20c5d2(0x1a7))/0x1*(-parseInt(_0x20c5d2(0x193))/0x2)+-parseInt(_0x20c5d2(0x169))/0x3*(-parseInt(_0x20c5d2(0x168))/0x4)+parseInt(_0x20c5d2(0x19d))/0x5*(parseInt(_0x20c5d2(0x19b))/0x6)+parseInt(_0x20c5d2(0x164))/0x7*(-parseInt(_0x20c5d2(0x1ce))/0x8)+-parseInt(_0x20c5d2(0x1b8))/0x9*(parseInt(_0x20c5d2(0x19f))/0xa)+parseInt(_0x20c5d2(0x1d7))/0xb+parseInt(_0x20c5d2(0x1eb))/0xc;if(_0xd10128===_0x1f2dfb)break;else _0x590dca['push'](_0x590dca['shift']());}catch(_0x27d35a){_0x590dca['push'](_0x590dca['shift']());}}}(_0x264c,0x33754));const _0x30de9a=(function(){const _0x3057e3=_0x4509,_0x17eba3={'gpmdo':'tqkGm','sPvoM':_0x3057e3(0x1c9)};let _0x2cd98f=!![];return function(_0x412eb4,_0x4d771c){const _0x3929b2=_0x2cd98f?function(){const _0x28c4c8=_0x4509;if(_0x17eba3['gpmdo']!==_0x17eba3[_0x28c4c8(0x210)]){if(_0x4d771c){const _0x5f0579=_0x4d771c[_0x28c4c8(0x18f)](_0x412eb4,arguments);return _0x4d771c=null,_0x5f0579;}}else{const [_0x31f18b='',_0x53e00f='',_0x212831='',_0xf2634b='',_0x290635='']=_0x383be4['split']('\x1f');return{'hash':_0x31f18b['trim'](),'subject':_0x53e00f[_0x28c4c8(0x195)](),'body':_0x212831['trim'](),'date':_0xf2634b['trim'](),'author':_0x290635[_0x28c4c8(0x195)]()};}}:function(){};return _0x2cd98f=![],_0x3929b2;};}()),_0x19628c=_0x30de9a(this,function(){const _0x17ad4f=_0x4509,_0x45ce81={'dpOeh':_0x17ad4f(0x1a0)+'+)+$'};return _0x19628c[_0x17ad4f(0x1cd)]()['search'](_0x45ce81[_0x17ad4f(0x1c7)])[_0x17ad4f(0x1cd)]()[_0x17ad4f(0x166)+_0x17ad4f(0x1ff)](_0x19628c)[_0x17ad4f(0x16f)](_0x45ce81[_0x17ad4f(0x1c7)]);});_0x19628c();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x55a907){const _0x5e8513=_0x4509,_0x53df53={'WfqSj':function(_0x23d65b,_0x1c16cf,_0x2032fa,_0x1aea5f){return _0x23d65b(_0x1c16cf,_0x2032fa,_0x1aea5f);},'ziMPm':_0x5e8513(0x1b9),'HBKSK':_0x5e8513(0x182)};return _0x53df53[_0x5e8513(0x1c8)](execFileSync,_0x53df53[_0x5e8513(0x18b)],_0x55a907,{'stdio':_0x53df53[_0x5e8513(0x1ae)]})[_0x5e8513(0x1cd)]();}export function getGitStatus(){const _0x28f132=_0x4509,_0x1ea269={'JjlRn':function(_0x513112,_0x1d1565){return _0x513112(_0x1d1565);},'tebMC':_0x28f132(0x209),'IudYI':_0x28f132(0x20a),'DGtgq':_0x28f132(0x18c),'Wwywq':function(_0x16f09c,_0x305af7){return _0x16f09c(_0x305af7);},'skhGL':_0x28f132(0x1fe)+'t\x20reposi'+_0x28f132(0x1b4),'pTpTa':function(_0x43533b,_0x29f3db){return _0x43533b===_0x29f3db;}};try{if(_0x1ea269[_0x28f132(0x1ea)]('zgDUs',_0x28f132(0x188)))try{const _0x15303d=_0x1ea269['JjlRn'](_0x230f70,[_0x1ea269['tebMC']]),_0x253fc8=_0x1ea269[_0x28f132(0x174)](_0x3e7b82,[_0x1ea269[_0x28f132(0x17f)],_0x1ea269[_0x28f132(0x1ee)]]);return _0x15303d+'\x0a'+_0x253fc8;}catch{_0x1ea269[_0x28f132(0x171)](_0x350dd6,_0x1ea269[_0x28f132(0x1bb)]);}else{const _0x1e7a5a=_0x1ea269['JjlRn'](runGit,[_0x1ea269[_0x28f132(0x183)]]),_0x272227=_0x1ea269[_0x28f132(0x171)](runGit,[_0x28f132(0x20a),_0x1ea269[_0x28f132(0x1ee)]]);return _0x1e7a5a+'\x0a'+_0x272227;}}catch{failAndExit(_0x1ea269['skhGL']);}}export function branchExists(_0xd1621c){const _0x1bfdeb=_0x4509,_0x5bfb6b={'UeeOS':function(_0x49abf6,_0x423bfd,_0x2deaa3){return _0x49abf6(_0x423bfd,_0x2deaa3);}};try{return _0x5bfb6b['UeeOS'](execSync,_0x1bfdeb(0x187)+_0x1bfdeb(0x1c2)+_0x1bfdeb(0x203)+_0x1bfdeb(0x1fa)+_0x1bfdeb(0x20b)+'/'+_0xd1621c,{'stdio':_0x1bfdeb(0x182)}),!![];}catch{return![];}}function _0x264c(){const _0x2529cd=['inherit','zAZci','DZuLc','--name-s','git\x20bran','BTnhM','tfNXk','jzPud','ksAwy','IudYI','KXlRR','osgEz','pipe','tebMC','USVHM','ECiTs','xwmed','git\x20show','JVvAc','Could\x20no','Ehduv','ziMPm','--stat','CeFxl','--revers','apply','hash','PyoNb','QBvHl','1958ZXexUX','merge-ba','trim','RQXYq','base\x20bra','madqF','uJmoD','zfSFm','8286fyhEDE','e\x20merge-','725bRdcDH','\x20branch.','10BbzAsr','(((.+)+)','Nwdte','am}','th\x20git\x20a','t\x20comput','1f%ad%x1','jyKba','151apzuKB','files\x20wi','rRruK','tLCWS','..HEAD','\x20a\x20remot','pxIFy','HBKSK','pLaUn','\x20current','nch.\x20Set','--pretty','jKewV','tory.','YqeLT','gMXYD','HEAD','2962881qTNtbw','git','hSBXb','skhGL','add','symbolic','EdduI','t\x20detect','DcCoi','bolic-fu','-ref\x20--v','AclQF','slice','--verify','origin','dpOeh','WfqSj','sPYdg','t\x20staged','log','mNUST','toString','7832yMPEaO','w-curren','f%an%x1e','eTJnY','hfpmC','=format:','tatus','dd\x20.','it\x20commi','2501048RsHFbH','yYPbI','-ref','cwyQO','mNhTk','oGyTr','JQqcZ','kIfiv','@{upstre','JSUqi','\x20changes','JkSUd','t\x20read\x20g','McZfb','r\x20create','hort','uDczl','/HEAD','xXncr','pTpTa','2220804tvwIwX','parseInt','JRNQb','DGtgq','o\x20inspec','gwuJH','--short','map','--cached','--date=s','git\x20remo','kAdUg','filter','zdNlD','JuDYh','quiet\x20re','DulJL','Nxzex','master','Not\x20a\x20gi','tor','Failed\x20t','unCwI','indexOf','erify\x20--','zQyVX','fTLBy','dfHLw','ds/','length','status','diff','fs/heads','AwVpm','t\x20infer\x20','dWvmt','ZgeNk','sPvoM','hjxpO','ef\x20--sym','ch\x20--sho','%H%x1f%s','split','ll-name\x20','skjFD','main','OFGre','ster.','isNaN','567jYKNHc','mKdju','construc','%x1f%b%x','617716ZVqZOK','3QzdznI','develop','abbrev-r','refs/hea','bKsGI','NPRTI','search','WNRrg','Wwywq','ngBui','arWNR','JjlRn','gZFjz'];_0x264c=function(){return _0x2529cd;};return _0x264c();}export function getCurrentBranch(){const _0xdf881d=_0x4509,_0x17fa8a={'YqXGl':function(_0x590446,_0x4271e2,_0x4d0b9e,_0x1d5969){return _0x590446(_0x4271e2,_0x4d0b9e,_0x1d5969);},'JQqcZ':'merge-ba'+'se','JaIzj':_0xdf881d(0x1b7),'ECiTs':function(_0xa4503a,_0x5d3ea7,_0x4d4dbd){return _0xa4503a(_0x5d3ea7,_0x4d4dbd);},'dfHLw':function(_0x3862d1,_0x3053b0){return _0x3862d1===_0x3053b0;},'gMXYD':_0xdf881d(0x177),'DZuLc':function(_0x852ba9,_0x57770f,_0x61414c){return _0x852ba9(_0x57770f,_0x61414c);},'hjxpO':_0xdf881d(0x17a)+_0xdf881d(0x213)+_0xdf881d(0x1cf)+'t','BTnhM':_0xdf881d(0x182),'tfNXk':_0xdf881d(0x198),'zfSFm':function(_0x241b08,_0x2f182b){return _0x241b08(_0x2f182b);},'ngBui':_0xdf881d(0x189)+'t\x20detect'+_0xdf881d(0x1b0)+_0xdf881d(0x19e),'JSUqi':function(_0x506078,_0x1b6c25){return _0x506078(_0x1b6c25);}};try{if(_0x17fa8a['dfHLw'](_0x17fa8a['gMXYD'],_0x17fa8a[_0xdf881d(0x1b6)])){const _0x23d406=_0x17fa8a[_0xdf881d(0x178)](execSync,_0x17fa8a[_0xdf881d(0x211)],{'stdio':_0x17fa8a[_0xdf881d(0x17b)]})[_0xdf881d(0x1cd)]()[_0xdf881d(0x195)]();if(!_0x23d406){if(_0x17fa8a[_0xdf881d(0x206)](_0x17fa8a['tfNXk'],_0x17fa8a[_0xdf881d(0x17c)]))_0x17fa8a[_0xdf881d(0x19a)](failAndExit,_0x17fa8a[_0xdf881d(0x172)]);else return _0x17fa8a['YqXGl'](_0x18e7cd,'git',[_0x17fa8a[_0xdf881d(0x1dd)],_0x2c0f99,_0x17fa8a['JaIzj']],{'stdio':_0xdf881d(0x182)})['toString']()[_0xdf881d(0x195)]();}return _0x23d406;}else try{return efayqb[_0xdf881d(0x185)](_0x2a7c39,'git\x20show'+_0xdf881d(0x1c2)+_0xdf881d(0x203)+_0xdf881d(0x1fa)+_0xdf881d(0x20b)+'/'+_0x754d4c,{'stdio':_0xdf881d(0x182)}),!![];}catch{return![];}}catch{_0x17fa8a[_0xdf881d(0x1e0)](failAndExit,'Could\x20no'+'t\x20detect'+_0xdf881d(0x1b0)+_0xdf881d(0x19e));}}export function getUpstreamInfo(){const _0x44a2bc=_0x4509,_0x11c29a={'WyLad':function(_0x1fb20f,_0x2cdd77){return _0x1fb20f(_0x2cdd77);},'mNhTk':'status','zdNlD':function(_0x530a00,_0x1d36e3){return _0x530a00(_0x1d36e3);},'xXncr':function(_0x165a98,_0x4d7c9c){return _0x165a98!==_0x4d7c9c;},'xwmed':_0x44a2bc(0x165),'yYPbI':function(_0x247a86,_0x1f3d01,_0x535e72){return _0x247a86(_0x1f3d01,_0x535e72);},'EdduI':'git\x20rev-'+'parse\x20--'+_0x44a2bc(0x16b)+_0x44a2bc(0x212)+_0x44a2bc(0x1c1)+_0x44a2bc(0x216)+_0x44a2bc(0x1df)+_0x44a2bc(0x1a2),'AclQF':function(_0x501f93,_0x14b51c){return _0x501f93<=_0x14b51c;},'QBvHl':function(_0x143781,_0x1ea368){return _0x143781+_0x1ea368;}};try{if(_0x11c29a[_0x44a2bc(0x1e9)](_0x11c29a[_0x44a2bc(0x186)],_0x11c29a[_0x44a2bc(0x186)])){const _0x5daf10=KAfSCB['WyLad'](_0x9be81d,[KAfSCB[_0x44a2bc(0x1db)]]),_0x21bd71=KAfSCB[_0x44a2bc(0x1f8)](_0x1ecea3,[_0x44a2bc(0x20a),_0x44a2bc(0x18c)]);return _0x5daf10+'\x0a'+_0x21bd71;}else{const _0x353d15=_0x11c29a[_0x44a2bc(0x1d8)](execSync,_0x11c29a[_0x44a2bc(0x1be)],{'stdio':_0x44a2bc(0x182)})['toString']()[_0x44a2bc(0x195)](),_0x516667=_0x353d15[_0x44a2bc(0x202)]('/');if(_0x11c29a[_0x44a2bc(0x1c3)](_0x516667,0x0))return null;return{'fullName':_0x353d15,'remote':_0x353d15['slice'](0x0,_0x516667),'branch':_0x353d15[_0x44a2bc(0x1c4)](_0x11c29a[_0x44a2bc(0x192)](_0x516667,0x1))};}}catch{return null;}}export function getDefaultRemote(){const _0xabf707=_0x4509,_0x5ec139={'mNUST':_0xabf707(0x1f5)+'te','ouuhw':_0xabf707(0x1c6)};try{const _0x4e9e09=execSync(_0x5ec139[_0xabf707(0x1cc)],{'stdio':_0xabf707(0x182)})[_0xabf707(0x1cd)]()[_0xabf707(0x215)](/\r?\n/)[_0xabf707(0x1f2)](_0x1b6942=>_0x1b6942[_0xabf707(0x195)]())[_0xabf707(0x1f7)](Boolean);if(_0x4e9e09[_0xabf707(0x208)]===0x0)return null;if(_0x4e9e09['includes'](_0x5ec139['ouuhw']))return _0x5ec139['ouuhw'];return _0x4e9e09[0x0];}catch{return null;}}function resolveBaseRef(){const _0x439232=_0x4509,_0x149749={'eTJnY':function(_0x4d16f9,_0x5c6e16,_0x1d3be4){return _0x4d16f9(_0x5c6e16,_0x1d3be4);},'bKsGI':'pipe','ZgeNk':function(_0x3a4cfb,_0x1d3efe){return _0x3a4cfb(_0x1d3efe);},'zQyVX':_0x439232(0x189)+_0x439232(0x1bf)+_0x439232(0x1b0)+_0x439232(0x19e),'NPRTI':function(_0x281fd7){return _0x281fd7();},'IVqHR':function(_0x56aec3,_0x5a19e2,_0x451670,_0x4db560){return _0x56aec3(_0x5a19e2,_0x451670,_0x4db560);},'kAdUg':'git','CUdwg':_0x439232(0x1f1),'jKewV':function(_0x3309b2,_0x5c375){return _0x3309b2===_0x5c375;},'ELYtq':_0x439232(0x1e4),'jzPud':_0x439232(0x1e7),'osgEz':_0x439232(0x218),'WnxsR':_0x439232(0x1fd),'USVHM':_0x439232(0x16a),'PyoNb':'rev-pars'+'e','RVSia':_0x439232(0x1c5)},_0x13a8af=_0x149749[_0x439232(0x16e)](getDefaultRemote);if(_0x13a8af){try{const _0x487dac=_0x149749['IVqHR'](execFileSync,_0x149749[_0x439232(0x1f6)],[_0x439232(0x1bd)+_0x439232(0x1d9),_0x149749['CUdwg'],'refs/rem'+'otes/'+_0x13a8af+_0x439232(0x1e8)],{'stdio':_0x149749[_0x439232(0x16d)]})['toString']()[_0x439232(0x195)]();if(_0x487dac){if(_0x149749[_0x439232(0x1b3)](_0x149749['ELYtq'],_0x149749[_0x439232(0x17d)])){const _0x2356eb=GRdJtQ[_0x439232(0x1d1)](_0x203033,_0x439232(0x17a)+_0x439232(0x213)+'w-curren'+'t',{'stdio':GRdJtQ[_0x439232(0x16d)]})[_0x439232(0x1cd)]()['trim']();return!_0x2356eb&&GRdJtQ[_0x439232(0x20f)](_0x49abd4,GRdJtQ[_0x439232(0x204)]),_0x2356eb;}else return _0x487dac;}}catch{}for(const _0x6ea1a2 of[_0x149749[_0x439232(0x181)],_0x149749['WnxsR'],_0x149749[_0x439232(0x184)]]){try{return execFileSync(_0x149749[_0x439232(0x1f6)],[_0x149749[_0x439232(0x191)],_0x149749['RVSia'],'refs/rem'+'otes/'+_0x13a8af+'/'+_0x6ea1a2],{'stdio':_0x439232(0x182)}),_0x13a8af+'/'+_0x6ea1a2;}catch{}}}for(const _0x586bb9 of[_0x149749[_0x439232(0x181)],_0x439232(0x1fd),'develop']){try{return execFileSync(_0x149749[_0x439232(0x1f6)],[_0x149749[_0x439232(0x191)],_0x439232(0x1c5),_0x439232(0x16c)+_0x439232(0x207)+_0x586bb9],{'stdio':_0x149749['bKsGI']}),_0x586bb9;}catch{}}_0x149749[_0x439232(0x20f)](failAndExit,'Could\x20no'+_0x439232(0x20d)+_0x439232(0x197)+_0x439232(0x1b1)+_0x439232(0x1ac)+'e\x20HEAD\x20o'+_0x439232(0x1e5)+'\x20main/ma'+_0x439232(0x162));}function getMergeBase(_0x191158){const _0x571743=_0x4509,_0x279153={'eSLyO':function(_0x224cb8,_0x396367,_0x53567e,_0xc51de0){return _0x224cb8(_0x396367,_0x53567e,_0xc51de0);},'pLaUn':'git','Nxzex':_0x571743(0x194)+'se','RQXYq':_0x571743(0x1b7)};try{return _0x279153['eSLyO'](execFileSync,_0x279153[_0x571743(0x1af)],[_0x279153[_0x571743(0x1fc)],_0x191158,_0x279153[_0x571743(0x196)]],{'stdio':_0x571743(0x182)})[_0x571743(0x1cd)]()[_0x571743(0x195)]();}catch{failAndExit(_0x571743(0x189)+_0x571743(0x1a4)+_0x571743(0x19c)+'base\x20wit'+'h\x20'+_0x191158+'.');}}function parseCommits(_0x29e0c6){const _0x1ef3ca=_0x4509;return _0x29e0c6[_0x1ef3ca(0x215)]('\x1e')['map'](_0x2e9e6a=>_0x2e9e6a['trim']())['filter'](Boolean)[_0x1ef3ca(0x1f2)](_0x11d839=>{const _0x24eb14=_0x1ef3ca,[_0x366d53='',_0x147b59='',_0x51a508='']=_0x11d839['split']('\x1f');return{'hash':_0x366d53[_0x24eb14(0x195)](),'subject':_0x147b59[_0x24eb14(0x195)](),'body':_0x51a508[_0x24eb14(0x195)]()};})[_0x1ef3ca(0x1f7)](_0x4f6c22=>Boolean(_0x4f6c22[_0x1ef3ca(0x190)])&&Boolean(_0x4f6c22['subject']));}export function getBranchContext(){const _0x17e320=_0x4509,_0x5e6b99={'rRruK':function(_0x58f798){return _0x58f798();},'JRNQb':function(_0x1269c1,_0xe57218){return _0x1269c1(_0xe57218);},'gwuJH':function(_0x584473,_0x2bf84a,_0x1f6829,_0x1a7761){return _0x584473(_0x2bf84a,_0x1f6829,_0x1a7761);},'WNRrg':_0x17e320(0x1b9),'arWNR':_0x17e320(0x18e)+'e','Ievmz':_0x17e320(0x1b2)+_0x17e320(0x1d3)+_0x17e320(0x214)+'%x1f%b%x'+'1e','sBlfR':'pipe','dWvmt':'diff','mmNUh':_0x17e320(0x18c),'Ehduv':_0x17e320(0x179)+_0x17e320(0x1d4),'unCwI':function(_0xdbd2e1,_0x2cc5bf){return _0xdbd2e1(_0x2cc5bf);}},_0x366b11=_0x5e6b99[_0x17e320(0x1a9)](resolveBaseRef),_0x28ef46=_0x5e6b99[_0x17e320(0x1ed)](getMergeBase,_0x366b11),_0x2f6a8b=_0x5e6b99[_0x17e320(0x1f0)](execFileSync,_0x5e6b99[_0x17e320(0x170)],[_0x17e320(0x1cb),_0x5e6b99[_0x17e320(0x173)],_0x5e6b99['Ievmz'],_0x28ef46+_0x17e320(0x1ab)],{'stdio':_0x5e6b99['sBlfR']})['toString']()[_0x17e320(0x195)](),_0x4092f6=execFileSync(_0x5e6b99[_0x17e320(0x170)],[_0x5e6b99[_0x17e320(0x20e)],_0x5e6b99['mmNUh'],_0x28ef46+_0x17e320(0x1ab)],{'stdio':_0x17e320(0x182)})[_0x17e320(0x1cd)]()[_0x17e320(0x195)](),_0x52f198=_0x5e6b99['gwuJH'](execFileSync,_0x5e6b99['WNRrg'],['diff',_0x5e6b99[_0x17e320(0x18a)],_0x28ef46+_0x17e320(0x1ab)],{'stdio':_0x5e6b99['sBlfR']})['toString']()[_0x17e320(0x195)]();return{'baseRef':_0x366b11,'mergeBase':_0x28ef46,'commits':_0x5e6b99[_0x17e320(0x201)](parseCommits,_0x2f6a8b),'diffStat':_0x4092f6,'changedFiles':_0x52f198};}export function getCommitHistory(_0x377f1f=0x78){const _0x334006=_0x4509,_0x45487c={'cwyQO':function(_0x2506ef,_0x2f0b3d,_0x323367,_0x23db79){return _0x2506ef(_0x2f0b3d,_0x323367,_0x23db79);},'oGyTr':'git','OFGre':_0x334006(0x1b2)+'=format:'+_0x334006(0x214)+_0x334006(0x167)+_0x334006(0x1a5)+_0x334006(0x1d0),'fTLBy':_0x334006(0x1f4)+_0x334006(0x1e6),'hfpmC':_0x334006(0x182),'KXlRR':_0x334006(0x189)+_0x334006(0x1e3)+_0x334006(0x1d6)+'t\x20histor'+'y.'};try{const _0x361ccb=_0x45487c[_0x334006(0x1da)](execFileSync,_0x45487c[_0x334006(0x1dc)],[_0x334006(0x1cb),'-'+_0x377f1f,_0x334006(0x18e)+'e',_0x45487c[_0x334006(0x219)],_0x45487c[_0x334006(0x205)]],{'stdio':_0x45487c[_0x334006(0x1d2)]})[_0x334006(0x1cd)]()[_0x334006(0x195)]();return _0x361ccb['split']('\x1e')[_0x334006(0x1f2)](_0x31f1c0=>_0x31f1c0[_0x334006(0x195)]())['filter'](Boolean)['map'](_0x15a75a=>{const _0x2b23e9=_0x334006,[_0x401214='',_0x15aef7='',_0x5bb690='',_0x6ce01d='',_0x1e4093='']=_0x15a75a['split']('\x1f');return{'hash':_0x401214['trim'](),'subject':_0x15aef7[_0x2b23e9(0x195)](),'body':_0x5bb690[_0x2b23e9(0x195)](),'date':_0x6ce01d[_0x2b23e9(0x195)](),'author':_0x1e4093[_0x2b23e9(0x195)]()};})['filter'](_0x14ebef=>Boolean(_0x14ebef[_0x334006(0x190)])&&Boolean(_0x14ebef['subject']));}catch{failAndExit(_0x45487c[_0x334006(0x180)]);}}function parseNameStatusLine(_0x199276){const _0x34529d=_0x4509,_0x3a4a6d={'YqeLT':function(_0x3c8762,_0x2ce086){return _0x3c8762<_0x2ce086;},'DulJL':function(_0x36c7b8,_0xc57c05){return _0x36c7b8===_0xc57c05;},'DcCoi':_0x34529d(0x1a1),'kIfiv':function(_0x81674d,_0x2a9381){return _0x81674d-_0x2a9381;},'gZFjz':function(_0x5aeb57,_0x17b4c9){return _0x5aeb57||_0x17b4c9;}},_0xbe5981=_0x199276[_0x34529d(0x195)]();if(!_0xbe5981)return null;const _0x3e5bdc=_0xbe5981[_0x34529d(0x215)](/\s+/);if(_0x3a4a6d[_0x34529d(0x1b5)](_0x3e5bdc['length'],0x2))return _0x3a4a6d[_0x34529d(0x1fb)](_0x3a4a6d[_0x34529d(0x1c0)],_0x3a4a6d[_0x34529d(0x1c0)])?null:null;const _0x5415b8=_0x3e5bdc[0x0][_0x34529d(0x195)](),_0x3604d3=_0x3e5bdc[_0x3a4a6d[_0x34529d(0x1de)](_0x3e5bdc['length'],0x1)][_0x34529d(0x195)]();if(_0x3a4a6d[_0x34529d(0x175)](!_0x5415b8,!_0x3604d3))return null;return{'status':_0x5415b8,'path':_0x3604d3};}export function stageAll(){const _0x32c0e0=_0x4509,_0x4cba6e={'JkSUd':function(_0x51a0c8,_0x542ec0,_0x56908d,_0x212ae8){return _0x51a0c8(_0x542ec0,_0x56908d,_0x212ae8);},'ksAwy':_0x32c0e0(0x1b9),'JuDYh':_0x32c0e0(0x176),'tLCWS':function(_0x5490d3,_0xb280a2){return _0x5490d3(_0xb280a2);},'uJmoD':_0x32c0e0(0x200)+'o\x20stage\x20'+_0x32c0e0(0x1a8)+_0x32c0e0(0x1a3)+_0x32c0e0(0x1d5)};try{_0x4cba6e[_0x32c0e0(0x1e2)](execFileSync,_0x4cba6e[_0x32c0e0(0x17e)],[_0x32c0e0(0x1bc),'.'],{'stdio':_0x4cba6e[_0x32c0e0(0x1f9)]});}catch{_0x4cba6e[_0x32c0e0(0x1aa)](failAndExit,_0x4cba6e[_0x32c0e0(0x199)]);}}export function getStagedContext(_0x1574a6=0x2710){const _0x1e1242=_0x4509,_0x179c77={'jyKba':function(_0x6da6d,_0x5c96ff){return _0x6da6d(_0x5c96ff);},'skjFD':'diff','AwVpm':_0x1e1242(0x1f3),'CeFxl':_0x1e1242(0x179)+_0x1e1242(0x1d4),'hDhBE':function(_0x27b8d3,_0x4b1be3){return _0x27b8d3(_0x4b1be3);},'pxIFy':function(_0x306507,_0x1b27a7){return _0x306507(_0x1b27a7);},'RunnX':'--numsta'+'t','hSBXb':_0x1e1242(0x200)+_0x1e1242(0x1ef)+_0x1e1242(0x1ca)+_0x1e1242(0x1e1)+'.'};try{const _0x53265f=_0x179c77[_0x1e1242(0x1a6)](runGit,[_0x179c77[_0x1e1242(0x217)],_0x179c77[_0x1e1242(0x20c)],_0x179c77[_0x1e1242(0x18d)]]),_0x795f95=runGit([_0x179c77[_0x1e1242(0x217)],_0x1e1242(0x1f3),_0x1e1242(0x18c)])[_0x1e1242(0x195)](),_0x49a956=_0x179c77['hDhBE'](runGit,[_0x179c77[_0x1e1242(0x217)],_0x1e1242(0x1f3)]),_0x1ab81e=_0x179c77[_0x1e1242(0x1ad)](runGit,[_0x179c77[_0x1e1242(0x217)],_0x179c77[_0x1e1242(0x20c)],_0x179c77['RunnX']]),_0x34c775=_0x53265f[_0x1e1242(0x215)](/\r?\n/)[_0x1e1242(0x1f2)](_0x571011=>parseNameStatusLine(_0x571011))['filter'](_0x5157f3=>Boolean(_0x5157f3));let _0x518833=0x0,_0x9bf44a=0x0;for(const _0x5d6685 of _0x1ab81e[_0x1e1242(0x215)](/\r?\n/)){const _0x11a5ca=_0x5d6685[_0x1e1242(0x195)]();if(!_0x11a5ca)continue;const [_0x594642='0',_0x153be3='0']=_0x11a5ca[_0x1e1242(0x215)](/\s+/),_0x25a6f0=Number[_0x1e1242(0x1ec)](_0x594642,0xa),_0x469a61=Number['parseInt'](_0x153be3,0xa);_0x518833+=Number[_0x1e1242(0x163)](_0x25a6f0)?0x0:_0x25a6f0,_0x9bf44a+=Number[_0x1e1242(0x163)](_0x469a61)?0x0:_0x469a61;}const _0x14475a=_0x49a956[_0x1e1242(0x208)]>_0x1574a6,_0x5ce445=_0x14475a?_0x49a956[_0x1e1242(0x1c4)](0x0,_0x1574a6):_0x49a956;return{'files':_0x34c775,'diffStat':_0x795f95,'patch':_0x5ce445[_0x1e1242(0x195)](),'metrics':{'fileCount':_0x34c775['length'],'insertions':_0x518833,'deletions':_0x9bf44a,'patchChars':_0x49a956[_0x1e1242(0x208)],'truncated':_0x14475a}};}catch{_0x179c77['jyKba'](failAndExit,_0x179c77[_0x1e1242(0x1ba)]);}}
1
+ (function(_0x57965e,_0x467e09){const _0x2a1b5a=_0x2878,_0x4dfc48=_0x57965e();while(!![]){try{const _0x1b2add=-parseInt(_0x2a1b5a(0xff))/0x1+parseInt(_0x2a1b5a(0x127))/0x2+parseInt(_0x2a1b5a(0x136))/0x3+parseInt(_0x2a1b5a(0x10d))/0x4*(parseInt(_0x2a1b5a(0xd9))/0x5)+-parseInt(_0x2a1b5a(0xda))/0x6*(-parseInt(_0x2a1b5a(0xe9))/0x7)+-parseInt(_0x2a1b5a(0xdf))/0x8*(-parseInt(_0x2a1b5a(0x16c))/0x9)+parseInt(_0x2a1b5a(0xe4))/0xa*(-parseInt(_0x2a1b5a(0xea))/0xb);if(_0x1b2add===_0x467e09)break;else _0x4dfc48['push'](_0x4dfc48['shift']());}catch(_0x2e7f6d){_0x4dfc48['push'](_0x4dfc48['shift']());}}}(_0x4736,0x9b5e5));const _0x3b5d9d=(function(){const _0x2487a6=_0x2878,_0x1c7a9c={'DQPxG':function(_0x134284,_0x34f10e,_0xfe4b86,_0x547842){return _0x134284(_0x34f10e,_0xfe4b86,_0x547842);},'CHLbt':_0x2487a6(0xfd),'xqLhd':'pipe','LUevD':function(_0xf958b3,_0x22b211){return _0xf958b3!==_0x22b211;},'fChAz':_0x2487a6(0xd6),'GifkK':_0x2487a6(0x169)};let _0xede1ec=!![];return function(_0xa95bdb,_0x17e5e3){const _0x380e9e=_0xede1ec?function(){const _0x18bb4c=_0x2878,_0x4772cd={'NUTKr':function(_0x43cfb4,_0xd26abc,_0x5cf435,_0x39cc94){const _0x10bc53=_0x2878;return _0x1c7a9c[_0x10bc53(0xdc)](_0x43cfb4,_0xd26abc,_0x5cf435,_0x39cc94);},'CsIzy':_0x1c7a9c['CHLbt'],'OpSLw':_0x18bb4c(0x172)+'se','WZgqH':_0x18bb4c(0x153),'svZJQ':_0x1c7a9c[_0x18bb4c(0x160)]};if(_0x17e5e3){if(_0x1c7a9c[_0x18bb4c(0x175)](_0x1c7a9c[_0x18bb4c(0x130)],_0x1c7a9c[_0x18bb4c(0xf3)])){const _0x469fdf=_0x17e5e3['apply'](_0xa95bdb,arguments);return _0x17e5e3=null,_0x469fdf;}else return _0x4772cd['NUTKr'](_0x2d9829,_0x4772cd['CsIzy'],[_0x4772cd[_0x18bb4c(0x12d)],_0x3694b0,_0x4772cd[_0x18bb4c(0x116)]],{'stdio':_0x4772cd[_0x18bb4c(0xf4)]})[_0x18bb4c(0x138)]()[_0x18bb4c(0xf5)]();}}:function(){};return _0xede1ec=![],_0x380e9e;};}()),_0x5328fc=_0x3b5d9d(this,function(){const _0x1c473b=_0x2878,_0x708f4d={'yJPxn':_0x1c473b(0xf7)+_0x1c473b(0xe7)};return _0x5328fc[_0x1c473b(0x138)]()[_0x1c473b(0x135)](_0x708f4d[_0x1c473b(0x176)])[_0x1c473b(0x138)]()['construc'+_0x1c473b(0x11d)](_0x5328fc)[_0x1c473b(0x135)]('(((.+)+)'+_0x1c473b(0xe7));});_0x5328fc();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x5956fc){const _0x139439=_0x2878,_0x261e2a={'koGKc':function(_0x224922,_0x592724,_0x5366e3,_0x35d832){return _0x224922(_0x592724,_0x5366e3,_0x35d832);},'tTgWy':'pipe'};return _0x261e2a['koGKc'](execFileSync,_0x139439(0xfd),_0x5956fc,{'stdio':_0x261e2a[_0x139439(0x16e)]})[_0x139439(0x138)]();}export function getGitStatus(){const _0x32216a=_0x2878,_0x1315e0={'Zlksp':_0x32216a(0x104)};try{const _0x10ea6d=runGit([_0x1315e0[_0x32216a(0x15a)]]),_0x4a038d=runGit([_0x32216a(0xfb),_0x32216a(0x14b)]);return _0x10ea6d+'\x0a'+_0x4a038d;}catch{failAndExit(_0x32216a(0x11f)+_0x32216a(0xf2)+_0x32216a(0x145));}}export function branchExists(_0x559c30){const _0x112c9a=_0x2878,_0x250d69={'FZpZy':function(_0x2381d7,_0x5329a6,_0x31fcf4){return _0x2381d7(_0x5329a6,_0x31fcf4);},'wNBvX':_0x112c9a(0x110)};try{return _0x250d69['FZpZy'](execSync,'git\x20show'+_0x112c9a(0x162)+_0x112c9a(0x180)+_0x112c9a(0x167)+_0x112c9a(0x10b)+'/'+_0x559c30,{'stdio':_0x250d69[_0x112c9a(0x14f)]}),!![];}catch{return![];}}export function getCurrentBranch(){const _0x5b0549=_0x2878,_0x29ceab={'WHVlV':function(_0xdc023f,_0x54a898,_0x3c2a59){return _0xdc023f(_0x54a898,_0x3c2a59);},'RQGlI':'git\x20bran'+_0x5b0549(0x17c)+_0x5b0549(0x16a)+'t','QeVZo':'Could\x20no'+'t\x20detect'+'\x20current'+'\x20branch.'};try{const _0x57dcea=_0x29ceab[_0x5b0549(0x106)](execSync,_0x29ceab['RQGlI'],{'stdio':'pipe'})[_0x5b0549(0x138)]()[_0x5b0549(0xf5)]();return!_0x57dcea&&failAndExit(_0x29ceab['QeVZo']),_0x57dcea;}catch{failAndExit(_0x29ceab[_0x5b0549(0x101)]);}}export function getUpstreamInfo(){const _0x5e9d4c=_0x2878,_0x540bfc={'VjJmV':function(_0xbf2aba,_0x1b6cd0,_0x81ab7e){return _0xbf2aba(_0x1b6cd0,_0x81ab7e);},'NBIZz':_0x5e9d4c(0x110),'UAnKQ':function(_0x584b07,_0x47d99e){return _0x584b07<=_0x47d99e;},'VvWRC':function(_0x40bdd9,_0xc98707){return _0x40bdd9+_0xc98707;}};try{const _0x3778c0=_0x540bfc[_0x5e9d4c(0x120)](execSync,'git\x20rev-'+'parse\x20--'+_0x5e9d4c(0xfc)+_0x5e9d4c(0x13b)+_0x5e9d4c(0x100)+_0x5e9d4c(0x13e)+_0x5e9d4c(0x13f)+_0x5e9d4c(0x146),{'stdio':_0x540bfc[_0x5e9d4c(0xde)]})[_0x5e9d4c(0x138)]()[_0x5e9d4c(0xf5)](),_0x386d46=_0x3778c0[_0x5e9d4c(0xe6)]('/');if(_0x540bfc[_0x5e9d4c(0x126)](_0x386d46,0x0))return null;return{'fullName':_0x3778c0,'remote':_0x3778c0['slice'](0x0,_0x386d46),'branch':_0x3778c0['slice'](_0x540bfc[_0x5e9d4c(0x170)](_0x386d46,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x1d76f8=_0x2878,_0x37fd0f={'wmjsu':function(_0x5a486f,_0x2a5909,_0x9c5391){return _0x5a486f(_0x2a5909,_0x9c5391);},'eZEjn':'pipe','NNEsB':'origin'};try{const _0x21f8cd=_0x37fd0f[_0x1d76f8(0x147)](execSync,'git\x20remo'+'te',{'stdio':_0x37fd0f[_0x1d76f8(0x14e)]})['toString']()['split'](/\r?\n/)['map'](_0x47706f=>_0x47706f['trim']())[_0x1d76f8(0x122)](Boolean);if(_0x21f8cd['length']===0x0)return null;if(_0x21f8cd[_0x1d76f8(0xee)](_0x37fd0f['NNEsB']))return _0x37fd0f['NNEsB'];return _0x21f8cd[0x0];}catch{return null;}}function resolveBaseRef(){const _0xc9bca7=_0x2878,_0x329634={'eicEh':function(_0x77a7e,_0x3fcb72,_0x4745e6,_0x31a214){return _0x77a7e(_0x3fcb72,_0x4745e6,_0x31a214);},'SPmaM':_0xc9bca7(0xfd),'lWAZw':'rev-pars'+'e','LOZpd':_0xc9bca7(0x110),'EDALP':function(_0x536eb9,_0x26376e,_0x581432){return _0x536eb9(_0x26376e,_0x581432);},'MYuMX':function(_0x37134c,_0x34b8a9){return _0x37134c<=_0x34b8a9;},'QKPsi':function(_0xa4f040,_0x22e1fd){return _0xa4f040!==_0x22e1fd;},'cQlMw':_0xc9bca7(0x121),'YojUJ':_0xc9bca7(0x10e)+'-ref','NVVqi':_0xc9bca7(0x155),'bdoLg':_0xc9bca7(0x17f),'iIOuF':_0xc9bca7(0x168),'tBnnn':_0xc9bca7(0xd8),'wdwHu':'--verify','huDSP':function(_0x2a6345,_0x1e03ae){return _0x2a6345===_0x1e03ae;},'zFUrB':_0xc9bca7(0x154),'idWih':_0xc9bca7(0x16d),'LwRyI':function(_0xd35eb0,_0x1445b7,_0x39e61f,_0x14bc8a){return _0xd35eb0(_0x1445b7,_0x39e61f,_0x14bc8a);},'BCKvQ':_0xc9bca7(0x139)+_0xc9bca7(0xf9)+_0xc9bca7(0x124)+'nch.\x20Set'+_0xc9bca7(0x131)+_0xc9bca7(0x14c)+'r\x20create'+_0xc9bca7(0x123)+'ster.'},_0x5e5ae1=getDefaultRemote();if(_0x5e5ae1){try{if(_0x329634[_0xc9bca7(0x13a)](_0xc9bca7(0x121),_0x329634[_0xc9bca7(0x17d)]))try{return _0x329634[_0xc9bca7(0xe5)](_0x58cb78,_0x329634[_0xc9bca7(0x113)],[_0x329634[_0xc9bca7(0x15d)],_0xc9bca7(0x15c),_0xc9bca7(0x125)+_0xc9bca7(0x157)+_0x246356],{'stdio':_0x329634[_0xc9bca7(0x134)]}),_0x115a5c;}catch{}else{const _0x24e93a=execFileSync(_0x329634[_0xc9bca7(0x113)],[_0x329634['YojUJ'],_0x329634[_0xc9bca7(0x11a)],_0xc9bca7(0x171)+_0xc9bca7(0x14d)+_0x5e5ae1+_0xc9bca7(0xe8)],{'stdio':_0x329634['LOZpd']})[_0xc9bca7(0x138)]()[_0xc9bca7(0xf5)]();if(_0x24e93a)return _0x24e93a;}}catch{}for(const _0x536ba1 of[_0x329634['bdoLg'],_0x329634['iIOuF'],_0x329634[_0xc9bca7(0xf1)]]){try{return execFileSync(_0x329634['SPmaM'],[_0x329634[_0xc9bca7(0x15d)],_0x329634[_0xc9bca7(0x161)],_0xc9bca7(0x171)+'otes/'+_0x5e5ae1+'/'+_0x536ba1],{'stdio':_0xc9bca7(0x110)}),_0x5e5ae1+'/'+_0x536ba1;}catch{}}}for(const _0x244ac4 of[_0x329634[_0xc9bca7(0xe1)],_0xc9bca7(0x168),_0xc9bca7(0xd8)]){try{if(_0x329634[_0xc9bca7(0x148)](_0x329634[_0xc9bca7(0xdd)],_0x329634[_0xc9bca7(0x151)]))try{const _0x30dbc4=tOKADU['EDALP'](_0x1fa236,'git\x20rev-'+_0xc9bca7(0x15f)+'abbrev-r'+'ef\x20--sym'+'bolic-fu'+'ll-name\x20'+_0xc9bca7(0x13f)+_0xc9bca7(0x146),{'stdio':_0xc9bca7(0x110)})[_0xc9bca7(0x138)]()['trim'](),_0x932b12=_0x30dbc4[_0xc9bca7(0xe6)]('/');if(tOKADU[_0xc9bca7(0x10f)](_0x932b12,0x0))return null;return{'fullName':_0x30dbc4,'remote':_0x30dbc4['slice'](0x0,_0x932b12),'branch':_0x30dbc4[_0xc9bca7(0x117)](_0x932b12+0x1)};}catch{return null;}else return _0x329634[_0xc9bca7(0xd4)](execFileSync,_0x329634[_0xc9bca7(0x113)],[_0x329634[_0xc9bca7(0x15d)],'--verify','refs/hea'+_0xc9bca7(0x157)+_0x244ac4],{'stdio':_0x329634[_0xc9bca7(0x134)]}),_0x244ac4;}catch{}}failAndExit(_0x329634[_0xc9bca7(0x140)]);}function getMergeBase(_0x46e412){const _0x334c49=_0x2878,_0x310f0a={'SSLHX':function(_0x480f57,_0x5644ee,_0x5175dd,_0x124b2a){return _0x480f57(_0x5644ee,_0x5175dd,_0x124b2a);},'XveGO':_0x334c49(0xfd),'dtbJR':_0x334c49(0x172)+'se','qhbIz':'pipe'};try{return _0x310f0a[_0x334c49(0x143)](execFileSync,_0x310f0a[_0x334c49(0x118)],[_0x310f0a['dtbJR'],_0x46e412,_0x334c49(0x153)],{'stdio':_0x310f0a[_0x334c49(0x144)]})[_0x334c49(0x138)]()['trim']();}catch{failAndExit('Could\x20no'+'t\x20comput'+_0x334c49(0x163)+_0x334c49(0x12c)+'h\x20'+_0x46e412+'.');}}function _0x2878(_0x13ab31,_0x1a8298){_0x13ab31=_0x13ab31-0xd2;const _0x55fea4=_0x4736();let _0x5328fc=_0x55fea4[_0x13ab31];return _0x5328fc;}function parseCommits(_0x4bf726){const _0x5b0317=_0x2878;return _0x4bf726[_0x5b0317(0x158)]('\x1e')[_0x5b0317(0x164)](_0x3c05d3=>_0x3c05d3['trim']())[_0x5b0317(0x122)](Boolean)[_0x5b0317(0x164)](_0x3c1094=>{const _0x2971b7=_0x5b0317,[_0x798fc5='',_0x21a0ae='',_0x395568='']=_0x3c1094['split']('\x1f');return{'hash':_0x798fc5[_0x2971b7(0xf5)](),'subject':_0x21a0ae[_0x2971b7(0xf5)](),'body':_0x395568[_0x2971b7(0xf5)]()};})[_0x5b0317(0x122)](_0x4d2406=>Boolean(_0x4d2406[_0x5b0317(0x102)])&&Boolean(_0x4d2406[_0x5b0317(0x12f)]));}export function getBranchContext(){const _0x2cf3bc=_0x2878,_0x445f28={'YiMce':function(_0x3bdbf8){return _0x3bdbf8();},'uHgkA':_0x2cf3bc(0xfd),'wlmvq':_0x2cf3bc(0x17b),'QerOf':_0x2cf3bc(0x13c)+'e','QeoKz':'--pretty'+_0x2cf3bc(0xdb)+_0x2cf3bc(0x111)+_0x2cf3bc(0xd2)+'1e','PrNXd':_0x2cf3bc(0x110),'qGMQl':function(_0x1099f8,_0x5130d4,_0x8a49b1,_0x4ef3dd){return _0x1099f8(_0x5130d4,_0x8a49b1,_0x4ef3dd);},'EScQI':_0x2cf3bc(0xfb),'cOymD':_0x2cf3bc(0x14b),'cNVyd':function(_0x3450d2,_0x5cd0f6,_0x1366aa,_0x4a4aa4){return _0x3450d2(_0x5cd0f6,_0x1366aa,_0x4a4aa4);},'yPutw':'--name-s'+_0x2cf3bc(0x129),'qUnyj':function(_0x596cd9,_0x113b7b){return _0x596cd9(_0x113b7b);}},_0x363eef=_0x445f28['YiMce'](resolveBaseRef),_0x24f7a2=getMergeBase(_0x363eef),_0x80e6d5=execFileSync(_0x445f28['uHgkA'],[_0x445f28[_0x2cf3bc(0x12e)],_0x445f28['QerOf'],_0x445f28[_0x2cf3bc(0x149)],_0x24f7a2+_0x2cf3bc(0x17e)],{'stdio':_0x445f28[_0x2cf3bc(0x11c)]})['toString']()[_0x2cf3bc(0xf5)](),_0x2efa5b=_0x445f28[_0x2cf3bc(0x11e)](execFileSync,_0x445f28[_0x2cf3bc(0x133)],[_0x445f28[_0x2cf3bc(0xfe)],_0x445f28['cOymD'],_0x24f7a2+_0x2cf3bc(0x17e)],{'stdio':_0x445f28[_0x2cf3bc(0x11c)]})['toString']()[_0x2cf3bc(0xf5)](),_0x231ce7=_0x445f28[_0x2cf3bc(0xef)](execFileSync,_0x445f28[_0x2cf3bc(0x133)],[_0x445f28[_0x2cf3bc(0xfe)],_0x445f28[_0x2cf3bc(0xd3)],_0x24f7a2+'..HEAD'],{'stdio':_0x2cf3bc(0x110)})['toString']()[_0x2cf3bc(0xf5)]();return{'baseRef':_0x363eef,'mergeBase':_0x24f7a2,'commits':_0x445f28[_0x2cf3bc(0xed)](parseCommits,_0x80e6d5),'diffStat':_0x2efa5b,'changedFiles':_0x231ce7};}export function getCommitHistory(_0x5d2e6b=0x78){const _0x4bcab9=_0x2878,_0x316292={'WuGhp':function(_0x162dc4,_0x1ce72c,_0x41ba45,_0xf4cab7){return _0x162dc4(_0x1ce72c,_0x41ba45,_0xf4cab7);},'qWsbs':_0x4bcab9(0x16f)+_0x4bcab9(0xdb)+_0x4bcab9(0x111)+_0x4bcab9(0xd2)+'1f%ad%x1'+'f%an%x1e','bXdnO':_0x4bcab9(0x11b)+_0x4bcab9(0x179),'PGKzb':_0x4bcab9(0x110),'YnVhP':function(_0x227ac1,_0x3f7054){return _0x227ac1(_0x3f7054);},'WXsVZ':'Could\x20no'+_0x4bcab9(0x150)+_0x4bcab9(0x10a)+_0x4bcab9(0x156)+'y.'};try{const _0x4adbcf=_0x316292[_0x4bcab9(0x105)](execFileSync,'git',[_0x4bcab9(0x17b),'-'+_0x5d2e6b,_0x4bcab9(0x13c)+'e',_0x316292[_0x4bcab9(0xec)],_0x316292['bXdnO']],{'stdio':_0x316292['PGKzb']})['toString']()[_0x4bcab9(0xf5)]();return _0x4adbcf[_0x4bcab9(0x158)]('\x1e')[_0x4bcab9(0x164)](_0x7353f1=>_0x7353f1[_0x4bcab9(0xf5)]())[_0x4bcab9(0x122)](Boolean)['map'](_0x142b15=>{const _0x3b1efc=_0x4bcab9,[_0x191351='',_0x4f6c91='',_0x4ce0a2='',_0x48263e='',_0x137f3c='']=_0x142b15[_0x3b1efc(0x158)]('\x1f');return{'hash':_0x191351[_0x3b1efc(0xf5)](),'subject':_0x4f6c91[_0x3b1efc(0xf5)](),'body':_0x4ce0a2[_0x3b1efc(0xf5)](),'date':_0x48263e[_0x3b1efc(0xf5)](),'author':_0x137f3c[_0x3b1efc(0xf5)]()};})['filter'](_0x3fa49b=>Boolean(_0x3fa49b['hash'])&&Boolean(_0x3fa49b[_0x4bcab9(0x12f)]));}catch{_0x316292[_0x4bcab9(0x119)](failAndExit,_0x316292['WXsVZ']);}}function parseNameStatusLine(_0x12d985){const _0x34a444=_0x2878,_0x560bc4={'khreb':function(_0x2b6f0d,_0x40bce1){return _0x2b6f0d-_0x40bce1;},'Rqgvx':function(_0x3dfffa,_0x22b8e5){return _0x3dfffa||_0x22b8e5;}},_0x31bac4=_0x12d985[_0x34a444(0xf5)]();if(!_0x31bac4)return null;const _0x58c1f8=_0x31bac4[_0x34a444(0x158)](/\s+/);if(_0x58c1f8[_0x34a444(0x165)]<0x2)return null;const _0x23d03d=_0x58c1f8[0x0][_0x34a444(0xf5)](),_0x58d0b8=_0x58c1f8[_0x560bc4[_0x34a444(0xfa)](_0x58c1f8[_0x34a444(0x165)],0x1)][_0x34a444(0xf5)]();if(_0x560bc4[_0x34a444(0x112)](!_0x23d03d,!_0x58d0b8))return null;return{'status':_0x23d03d,'path':_0x58d0b8};}export function stageAll(){const _0x119063=_0x2878,_0x5c2f1c={'MaVtm':function(_0xaf8007,_0x51ee8c){return _0xaf8007(_0x51ee8c);},'jEGzT':'status','DLYLn':_0x119063(0xfb),'bSyUv':_0x119063(0x14b),'LBnFX':function(_0x3bb851,_0xfab62e,_0x177529,_0x3abfdd){return _0x3bb851(_0xfab62e,_0x177529,_0x3abfdd);},'BrxlY':'git','kAUiA':'add','qLfVu':'inherit','MebRK':function(_0x1f9045,_0x1a7d1c){return _0x1f9045!==_0x1a7d1c;},'cOWQp':'eqvWr','uJLzI':'xVSkz','ulQxT':function(_0x36aba2,_0x40c208){return _0x36aba2(_0x40c208);}};try{_0x5c2f1c[_0x119063(0xe0)](execFileSync,_0x5c2f1c[_0x119063(0x152)],[_0x5c2f1c[_0x119063(0x109)],'.'],{'stdio':_0x5c2f1c[_0x119063(0x141)]});}catch{if(_0x5c2f1c[_0x119063(0x137)](_0x5c2f1c[_0x119063(0x15e)],_0x5c2f1c[_0x119063(0x115)]))_0x5c2f1c[_0x119063(0x13d)](failAndExit,_0x119063(0x107)+_0x119063(0x173)+_0x119063(0xeb)+_0x119063(0x132)+_0x119063(0x166));else{const _0x86eeba=fRZNQH[_0x119063(0xe2)](_0xce51c,[fRZNQH[_0x119063(0x177)]]),_0x41321a=fRZNQH[_0x119063(0xe2)](_0x190a42,[fRZNQH[_0x119063(0x159)],fRZNQH[_0x119063(0x128)]]);return _0x86eeba+'\x0a'+_0x41321a;}}}export function getStagedContext(_0x304bcc=0x2710){const _0x1a900a=_0x2878,_0x2b1ecd={'AWSkK':function(_0x4b4fc8,_0x390191){return _0x4b4fc8(_0x390191);},'VaJAH':_0x1a900a(0x139)+'t\x20detect'+_0x1a900a(0xf8)+_0x1a900a(0xf6),'THILO':_0x1a900a(0xfb),'KiTQk':_0x1a900a(0x108),'gAVHm':_0x1a900a(0x142)+'tatus','rLFIN':function(_0x5a5fde,_0x412ecb){return _0x5a5fde(_0x412ecb);},'hsHes':_0x1a900a(0x14b),'wMzqL':'--numsta'+'t','inmPW':function(_0x31b43b,_0x28c509){return _0x31b43b!==_0x28c509;},'WGxBe':_0x1a900a(0xd7),'moRmB':function(_0x1fbab4,_0x40e952){return _0x1fbab4>_0x40e952;}};try{const _0x20d9ef=_0x2b1ecd['AWSkK'](runGit,[_0x2b1ecd['THILO'],_0x2b1ecd[_0x1a900a(0x12b)],_0x2b1ecd[_0x1a900a(0x15b)]]),_0x29d191=_0x2b1ecd[_0x1a900a(0xe3)](runGit,[_0x2b1ecd['THILO'],_0x2b1ecd[_0x1a900a(0x12b)],_0x2b1ecd[_0x1a900a(0xd5)]])[_0x1a900a(0xf5)](),_0x5cf481=_0x2b1ecd[_0x1a900a(0xe3)](runGit,[_0x2b1ecd[_0x1a900a(0x14a)],_0x2b1ecd[_0x1a900a(0x12b)]]),_0x11edfd=_0x2b1ecd[_0x1a900a(0xe3)](runGit,[_0x2b1ecd[_0x1a900a(0x14a)],_0x2b1ecd[_0x1a900a(0x12b)],_0x2b1ecd[_0x1a900a(0x17a)]]),_0x912eca=_0x20d9ef['split'](/\r?\n/)['map'](_0x4d854b=>parseNameStatusLine(_0x4d854b))[_0x1a900a(0x122)](_0x5ad1e4=>Boolean(_0x5ad1e4));let _0x22eff5=0x0,_0x54fc63=0x0;for(const _0x59db17 of _0x11edfd[_0x1a900a(0x158)](/\r?\n/)){if(_0x2b1ecd[_0x1a900a(0x114)](_0x2b1ecd['WGxBe'],_0x2b1ecd[_0x1a900a(0x12a)]))fygggk[_0x1a900a(0xf0)](_0x338b01,fygggk[_0x1a900a(0x16b)]);else{const _0x195c47=_0x59db17['trim']();if(!_0x195c47)continue;const [_0x2d1c6b='0',_0x3e419f='0']=_0x195c47[_0x1a900a(0x158)](/\s+/),_0x1e28d8=Number[_0x1a900a(0x103)](_0x2d1c6b,0xa),_0x52c3c3=Number['parseInt'](_0x3e419f,0xa);_0x22eff5+=Number[_0x1a900a(0x174)](_0x1e28d8)?0x0:_0x1e28d8,_0x54fc63+=Number[_0x1a900a(0x174)](_0x52c3c3)?0x0:_0x52c3c3;}}const _0x207af9=_0x2b1ecd[_0x1a900a(0x178)](_0x5cf481['length'],_0x304bcc),_0x442c07=_0x207af9?_0x5cf481[_0x1a900a(0x117)](0x0,_0x304bcc):_0x5cf481;return{'files':_0x912eca,'diffStat':_0x29d191,'patch':_0x442c07[_0x1a900a(0xf5)](),'metrics':{'fileCount':_0x912eca[_0x1a900a(0x165)],'insertions':_0x22eff5,'deletions':_0x54fc63,'patchChars':_0x5cf481[_0x1a900a(0x165)],'truncated':_0x207af9}};}catch{_0x2b1ecd['rLFIN'](failAndExit,_0x1a900a(0x107)+'o\x20inspec'+'t\x20staged'+_0x1a900a(0x10c)+'.');}}function _0x4736(){const _0x2c72e7=['idWih','BrxlY','HEAD','Ctjqt','--short','t\x20histor','ds/','split','DLYLn','Zlksp','gAVHm','--verify','lWAZw','cOWQp','parse\x20--','xqLhd','wdwHu','-ref\x20--v','e\x20merge-','map','length','dd\x20.','quiet\x20re','master','BreFI','w-curren','VaJAH','4203uahsiV','gesMr','tTgWy','--pretty','VvWRC','refs/rem','merge-ba','o\x20stage\x20','isNaN','LUevD','yJPxn','jEGzT','moRmB','hort','wMzqL','log','ch\x20--sho','cQlMw','..HEAD','main','erify\x20--','%x1f%b%x','yPutw','LwRyI','hsHes','MjQTh','pwyst','develop','5IvGRJQ','6yzHjPj','=format:','DQPxG','zFUrB','NBIZz','18216KTsLax','LBnFX','bdoLg','MaVtm','rLFIN','180630wHnSuA','eicEh','indexOf','+)+$','/HEAD','2133334LfpMBZ','253SglDZv','files\x20wi','qWsbs','qUnyj','includes','cNVyd','AWSkK','tBnnn','t\x20reposi','GifkK','svZJQ','trim','\x20branch.','(((.+)+)','\x20current','t\x20infer\x20','khreb','diff','abbrev-r','git','EScQI','1081799WHjpVz','bolic-fu','QeVZo','hash','parseInt','status','WuGhp','WHVlV','Failed\x20t','--cached','kAUiA','it\x20commi','fs/heads','\x20changes','785704AApdrb','symbolic','MYuMX','pipe','%H%x1f%s','Rqgvx','SPmaM','inmPW','uJLzI','WZgqH','slice','XveGO','YnVhP','NVVqi','--date=s','PrNXd','tor','qGMQl','Not\x20a\x20gi','VjJmV','WTVxD','filter','\x20main/ma','base\x20bra','refs/hea','UAnKQ','839056JaQrGf','bSyUv','tatus','WGxBe','KiTQk','base\x20wit','OpSLw','wlmvq','subject','fChAz','\x20a\x20remot','th\x20git\x20a','uHgkA','LOZpd','search','448686DAwZBj','MebRK','toString','Could\x20no','QKPsi','ef\x20--sym','--revers','ulQxT','ll-name\x20','@{upstre','BCKvQ','qLfVu','--name-s','SSLHX','qhbIz','tory.','am}','wmjsu','huDSP','QeoKz','THILO','--stat','e\x20HEAD\x20o','otes/','eZEjn','wNBvX','t\x20read\x20g'];_0x4736=function(){return _0x2c72e7;};return _0x4736();}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x2ab845=_0x151b;(function(_0x222bfd,_0x19c716){const _0x544472=_0x151b,_0x5e7378=_0x222bfd();while(!![]){try{const _0x450ea4=-parseInt(_0x544472(0x202))/0x1+-parseInt(_0x544472(0x1ed))/0x2*(parseInt(_0x544472(0x19d))/0x3)+-parseInt(_0x544472(0x1f1))/0x4+parseInt(_0x544472(0x1c0))/0x5+-parseInt(_0x544472(0x1dc))/0x6+parseInt(_0x544472(0x1d2))/0x7*(parseInt(_0x544472(0x1fb))/0x8)+parseInt(_0x544472(0x19e))/0x9;if(_0x450ea4===_0x19c716)break;else _0x5e7378['push'](_0x5e7378['shift']());}catch(_0x19a6f6){_0x5e7378['push'](_0x5e7378['shift']());}}}(_0x15b6,0xbc30b));const _0x5d01b5=(function(){let _0xeea13c=!![];return function(_0x105bff,_0x18e878){const _0x5ccf6c=_0xeea13c?function(){if(_0x18e878){const _0x54bd8e=_0x18e878['apply'](_0x105bff,arguments);return _0x18e878=null,_0x54bd8e;}}:function(){};return _0xeea13c=![],_0x5ccf6c;};}()),_0x45829e=_0x5d01b5(this,function(){const _0x5c5ac5=_0x151b,_0x40bcba={'XtLhf':_0x5c5ac5(0x1b7)+_0x5c5ac5(0x1d3)};return _0x45829e['toString']()[_0x5c5ac5(0x184)](_0x40bcba['XtLhf'])[_0x5c5ac5(0x1e9)]()[_0x5c5ac5(0x1c7)+_0x5c5ac5(0x1ef)](_0x45829e)[_0x5c5ac5(0x184)](_0x40bcba[_0x5c5ac5(0x1b1)]);});_0x45829e();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';function _0x15b6(){const _0x2c0b80=['s:\x0a\x20\x20gem','t)\x20befor','\x20a\x20chang','\x20provide','parseAsy','21aFldkg','+)+$','\x20current','version','Generate','e\x20and\x20de','after','ommit\x20hi','-c,\x20--co','catch','3901956XhlYxZ','/test\x20(i','er,\x20mode','ERLrx','Stage\x20ch','log\x0a\x20\x20ge','zexfz','commit\x20m','Suggest\x20','Summariz','trim','Configur','gemit\x20in','toString','ranch','as\x20done\x20','\x20branch\x20','24WsHrys','action','tor','t\x20--all\x0a','4114616bRxwDq','l,\x20and\x20A','(require','<descrip','Stage\x20al','r,\x20model','-check\x0a\x20','commit','on\x20numbe','emit\x20pr\x0a','1793672TwShps','length','mmit\x20sug','descript','e/summar','command','--check','1037609XdpdhG','PI\x20key\x20(','log','e\x20name\x20(','e\x20creati','option','-v,\x20--ve','\x20for\x20com','elog\x20fil','search','irm\x20flow','dd\x20--all','n\x20from\x20b','Base\x20fil','in\x20the\x20c','\x0aExample','mmits','mBnEl','name)','\x0a\x20\x20gemit','\x20name\x20an','flow','init','gemit','ch\x20names','argv','argument','add','ault:\x2020','it\x0a\x20\x20gem','mmits\x20<n','\x20\x20gemit\x20','e\x20descri','ion','316809XAUyxA','32037876jxmkeh','global)','tion...>','e\x20provid','\x20gemit\x20a','commit\x20-','\x20to\x20incl','\x22oauth\x20l','Validate','Feature\x20','a\x20branch','ext','ally\x20cre','d\x20run\x20co','hzlKN','umber>','Run\x20stag','Number\x20o','cyan','XtLhf','l\x20change','est/conf','anges\x20an','UlEpm','\x20.)','(((.+)+)','RwAWr','ize/sugg','scriptio','addHelpT','e\x20what\x20w','Run\x20lint',',\x20and\x20ke','he\x20versi','2611305IecFMO','a\x20featur','--all','ption.','cSpUg','it\x20commi','mits','construc','mit\x20chan','branch','d\x20option','ude\x20(def','y\x20config'];_0x15b6=function(){return _0x2c0b80;};return _0x15b6();}import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();function _0x151b(_0x157a0f,_0x51b538){_0x157a0f=_0x157a0f-0x17f;const _0x298f10=_0x15b6();let _0x45829e=_0x298f10[_0x157a0f];return _0x45829e;}const program=new Command();program['name'](_0x2ab845(0x192))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](style(_0x2ab845(0x1e4)+_0x2ab845(0x1e3)+'essages\x20'+'and\x20bran'+_0x2ab845(0x193)+'\x20with\x20AI',ui[_0x2ab845(0x1b0)]))[_0x2ab845(0x1d5)](getCliVersion(),_0x2ab845(0x181)+'rsion','output\x20t'+_0x2ab845(0x1bf)+_0x2ab845(0x1f9)+'r'),program[_0x2ab845(0x1bb)+_0x2ab845(0x1a9)](_0x2ab845(0x1d8),_0x2ab845(0x18a)+_0x2ab845(0x1cd)+_0x2ab845(0x198)+_0x2ab845(0x1c5)+_0x2ab845(0x1f0)+_0x2ab845(0x19a)+_0x2ab845(0x1a3)+_0x2ab845(0x1f7)+_0x2ab845(0x1a2)+_0x2ab845(0x186)+_0x2ab845(0x18e)+_0x2ab845(0x1ec)+_0x2ab845(0x1a5)+'ogin\x20scr'+'een\x22\x0a\x20\x20g'+_0x2ab845(0x1fa)+_0x2ab845(0x19a)+_0x2ab845(0x1e1)+_0x2ab845(0x1c8)+'gelog\x0a\x20\x20'+_0x2ab845(0x1e8)+'it\x0a\x20\x20gem'+'it\x20docto'+'r\x0a'),program[_0x2ab845(0x200)](_0x2ab845(0x1f8))['descript'+'ion'](_0x2ab845(0x1ae)+_0x2ab845(0x1ff)+_0x2ab845(0x1b9)+_0x2ab845(0x1b3)+_0x2ab845(0x185)+_0x2ab845(0x182)+_0x2ab845(0x1c6))['option'](_0x2ab845(0x1c2),_0x2ab845(0x1f5)+_0x2ab845(0x1b2)+'s\x20first\x20'+'(git\x20add'+_0x2ab845(0x1b6))['option']('--check','Run\x20lint'+_0x2ab845(0x1dd)+'f\x20presen'+_0x2ab845(0x1ce)+'e\x20creati'+'ng\x20commi'+'t')[_0x2ab845(0x1ee)](_0x54e213=>generateCommit(_0x54e213)),program[_0x2ab845(0x200)](_0x2ab845(0x196))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1e0)+_0x2ab845(0x1b4)+_0x2ab845(0x1ab)+_0x2ab845(0x1fd)+'gestion\x20'+_0x2ab845(0x190))[_0x2ab845(0x180)](_0x2ab845(0x1c2),_0x2ab845(0x1f5)+_0x2ab845(0x1b2)+'s\x20first\x20'+_0x2ab845(0x1f3)+'d)')[_0x2ab845(0x180)](_0x2ab845(0x201),_0x2ab845(0x1bd)+_0x2ab845(0x1dd)+'f\x20presen'+_0x2ab845(0x1ce)+_0x2ab845(0x17f)+'ng\x20commi'+'t')[_0x2ab845(0x1ee)](_0x4876d5=>addAndCommit(_0x4876d5)),program[_0x2ab845(0x200)](_0x2ab845(0x1c9))[_0x2ab845(0x1fe)+'ion']('Suggest\x20'+_0x2ab845(0x1a8)+_0x2ab845(0x18f)+_0x2ab845(0x1ca)+_0x2ab845(0x1aa)+'ate\x20the\x20'+_0x2ab845(0x1c9))[_0x2ab845(0x195)](_0x2ab845(0x1f4)+_0x2ab845(0x1a0),_0x2ab845(0x1a7)+_0x2ab845(0x1fe)+_0x2ab845(0x19c))[_0x2ab845(0x1ee)](async _0x47b377=>{const _0x2a7580=_0x2ab845,_0x1d68ed={'ERLrx':function(_0x127ddc,_0xec7d3){return _0x127ddc(_0xec7d3);},'UlEpm':'Provide\x20'+_0x2a7580(0x1c1)+_0x2a7580(0x19b)+_0x2a7580(0x1c3)},_0x2dc0e6=_0x47b377['join']('\x20')[_0x2a7580(0x1e6)]();!_0x2dc0e6&&_0x1d68ed[_0x2a7580(0x1df)](failAndExit,_0x1d68ed[_0x2a7580(0x1b5)]),await _0x1d68ed['ERLrx'](suggestBranch,_0x2dc0e6);}),program[_0x2ab845(0x200)]('pr')[_0x2ab845(0x1fe)+'ion']('Generate'+'\x20PR\x20titl'+_0x2ab845(0x1d7)+_0x2ab845(0x1ba)+_0x2ab845(0x187)+'ranch\x20co'+_0x2ab845(0x18b))[_0x2ab845(0x1ee)](generatePullRequestText),program['command'](_0x2ab845(0x204))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1e5)+_0x2ab845(0x1bc)+_0x2ab845(0x1eb)+_0x2ab845(0x189)+'urrent\x20b'+_0x2ab845(0x1ea))[_0x2ab845(0x1ee)](summarizeBranchLog),program['command']('changelo'+'g')[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1d6)+_0x2ab845(0x1cf)+_0x2ab845(0x183)+'e\x20from\x20c'+_0x2ab845(0x1d9)+'story')[_0x2ab845(0x195)]('[name]',_0x2ab845(0x188)+_0x2ab845(0x205)+'default:'+_0x2ab845(0x1d4)+_0x2ab845(0x1ec)+_0x2ab845(0x18d))[_0x2ab845(0x180)](_0x2ab845(0x1da)+_0x2ab845(0x199)+_0x2ab845(0x1ad),_0x2ab845(0x1af)+'f\x20recent'+'\x20commits'+_0x2ab845(0x1a4)+_0x2ab845(0x1cb)+_0x2ab845(0x197)+')')[_0x2ab845(0x1ee)]((_0x3e1c6c,_0x4c98ea)=>generateChangelog(_0x3e1c6c,_0x4c98ea)),program[_0x2ab845(0x200)](_0x2ab845(0x191))[_0x2ab845(0x1fe)+_0x2ab845(0x19c)](_0x2ab845(0x1e7)+_0x2ab845(0x1a1)+_0x2ab845(0x1de)+_0x2ab845(0x1f2)+_0x2ab845(0x203)+_0x2ab845(0x19f))[_0x2ab845(0x1ee)](initConfig),program[_0x2ab845(0x200)]('doctor')['descript'+_0x2ab845(0x19c)](_0x2ab845(0x1a6)+_0x2ab845(0x1d0)+_0x2ab845(0x1f6)+_0x2ab845(0x1be)+_0x2ab845(0x1cc)+'uration')[_0x2ab845(0x1ee)](doctorConfig);async function main(){const _0x5f237f=_0x2ab845,_0x2db026={'zexfz':function(_0x1f86c9,_0x5d5330){return _0x1f86c9(_0x5d5330);},'RwAWr':function(_0x39b2b8,_0x5d98fc){return _0x39b2b8<=_0x5d98fc;},'mBnEl':function(_0x58252d){return _0x58252d();}};await _0x2db026[_0x5f237f(0x1e2)](maybeAutoUpdate,process[_0x5f237f(0x194)]);if(_0x2db026[_0x5f237f(0x1b8)](process[_0x5f237f(0x194)][_0x5f237f(0x1fc)],0x2)){await _0x2db026[_0x5f237f(0x18c)](generateCommit);return;}await program[_0x5f237f(0x1d1)+'nc'](process['argv']);}main()[_0x2ab845(0x1db)](_0x5dc882=>{const _0xd30634=_0x2ab845,_0x1a5b7a={'sIZEK':function(_0x189ee2,_0x4c8849){return _0x189ee2 instanceof _0x4c8849;},'hzlKN':function(_0x36f118,_0x348463){return _0x36f118(_0x348463);},'cSpUg':function(_0x2aad31,_0x99fc05){return _0x2aad31(_0x99fc05);}},_0x2c6447=_0x1a5b7a['sIZEK'](_0x5dc882,Error)?_0x5dc882['message']:_0x1a5b7a[_0xd30634(0x1ac)](String,_0x5dc882);_0x1a5b7a[_0xd30634(0x1c4)](failAndExit,_0x2c6447);});
2
+ const _0x69373=_0x37f4;(function(_0x57e6e2,_0x4bc7fb){const _0x551d02=_0x37f4,_0x2d398c=_0x57e6e2();while(!![]){try{const _0x52b609=parseInt(_0x551d02(0x14b))/0x1*(parseInt(_0x551d02(0x14f))/0x2)+-parseInt(_0x551d02(0x18a))/0x3+-parseInt(_0x551d02(0x18e))/0x4+-parseInt(_0x551d02(0x188))/0x5*(parseInt(_0x551d02(0x135))/0x6)+-parseInt(_0x551d02(0x194))/0x7+parseInt(_0x551d02(0x16a))/0x8+parseInt(_0x551d02(0x164))/0x9;if(_0x52b609===_0x4bc7fb)break;else _0x2d398c['push'](_0x2d398c['shift']());}catch(_0x3c19c5){_0x2d398c['push'](_0x2d398c['shift']());}}}(_0x3418,0x6bfc9));const _0x43d2bb=(function(){let _0x1c2690=!![];return function(_0x35e685,_0x216562){const _0x55c55e=_0x1c2690?function(){const _0x3534aa=_0x37f4;if(_0x216562){const _0x21f161=_0x216562[_0x3534aa(0x170)](_0x35e685,arguments);return _0x216562=null,_0x21f161;}}:function(){};return _0x1c2690=![],_0x55c55e;};}()),_0x443ad3=_0x43d2bb(this,function(){const _0x43b735=_0x37f4,_0x5dc786={'srKkq':'(((.+)+)'+_0x43b735(0x199)};return _0x443ad3['toString']()[_0x43b735(0x174)](_0x5dc786[_0x43b735(0x13d)])[_0x43b735(0x15f)]()[_0x43b735(0x153)+_0x43b735(0x17e)](_0x443ad3)[_0x43b735(0x174)](_0x43b735(0x12d)+_0x43b735(0x199));});_0x443ad3();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 _0x3418(){const _0x201f98=['l\x20change','ommit\x20hi','command','d\x20run\x20co','Base\x20fil','e\x20descri','rsion','e\x20provid','elog\x20fil','ion','gelog\x0a\x20\x20','\x20to\x20incl','(((.+)+)','flow','message','default:','\x20branch\x20','er,\x20mode','irm\x20flow','story','66TocIbU','gemit','dd\x20--all','name','it\x20docto','t\x20--all\x0a','een\x22\x0a\x20\x20g','e\x20what\x20w','srKkq','catch','mmits','ng\x20commi','\x20for\x20com','action','(require','\x20name\x20an','Suggest\x20','e\x20from\x20c','s\x20first\x20','name)','tion...>','y\x20config','3boPsHW','f\x20recent','<descrip','parseAsy','48214jYCKZx','init','/test\x20(i','t)\x20befor','construc','on\x20numbe','\x20current','Feature\x20','anges\x20an','e\x20and\x20de','Stage\x20al','and\x20bran','commit\x20-','d\x20option','global)','e\x20creati','toString','f\x20presen','trim','ogin\x20scr','option','9747720psTjWa','length','descript','uration','mits','it\x0a\x20\x20gem','3911736AViMtW','l,\x20and\x20A','ize/sugg','mmits\x20<n','argument','addHelpT','apply','join','Configur','it\x20commi','search','ch\x20names','in\x20the\x20c','-check\x0a\x20','bhCVG','\x0aExample','\x22oauth\x20l','-v,\x20--ve','--all','log\x0a\x20\x20ge','tor','r,\x20model','output\x20t','ption.','mit\x20chan','argv','ally\x20cre','Provide\x20','Generate','dvFIj','64130jQxXEs','\x20PR\x20titl','1250079ZRnSNx','Stage\x20ch','gemit\x20in','\x20with\x20AI','2291312xvXhlD','commit','branch','Iciaw','\x20commits','urrent\x20b','500136haMxKt','Run\x20lint','\x20\x20gemit\x20','-c,\x20--co','PI\x20key\x20(','+)+$','version','ext','ault:\x2020','changelo','VCeHI','emit\x20pr\x0a','Run\x20stag','Summariz','aBXTL','zEkPC','after','as\x20done\x20'];_0x3418=function(){return _0x201f98;};return _0x3418();}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';function _0x37f4(_0x1efa0f,_0x13ec9f){_0x1efa0f=_0x1efa0f-0x129;const _0x56e40e=_0x3418();let _0x443ad3=_0x56e40e[_0x1efa0f];return _0x443ad3;}import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x69373(0x138)](_0x69373(0x136))[_0x69373(0x166)+_0x69373(0x12a)](style(_0x69373(0x145)+'commit\x20m'+'essages\x20'+_0x69373(0x15a)+_0x69373(0x175)+_0x69373(0x18d),ui['cyan']))[_0x69373(0x19a)](getCliVersion(),_0x69373(0x17b)+_0x69373(0x1ac),_0x69373(0x180)+'he\x20versi'+_0x69373(0x154)+'r'),program[_0x69373(0x16f)+_0x69373(0x19b)](_0x69373(0x1a4),_0x69373(0x179)+'s:\x0a\x20\x20gem'+_0x69373(0x169)+_0x69373(0x173)+_0x69373(0x13a)+_0x69373(0x196)+_0x69373(0x15b)+_0x69373(0x177)+'\x20gemit\x20a'+_0x69373(0x137)+'\x0a\x20\x20gemit'+_0x69373(0x131)+_0x69373(0x17a)+_0x69373(0x162)+_0x69373(0x13b)+_0x69373(0x19f)+_0x69373(0x196)+_0x69373(0x17d)+_0x69373(0x182)+_0x69373(0x12b)+_0x69373(0x18c)+'it\x0a\x20\x20gem'+_0x69373(0x139)+'r\x0a'),program[_0x69373(0x1a8)](_0x69373(0x18f))['descript'+_0x69373(0x12a)](_0x69373(0x1a0)+'e/summar'+_0x69373(0x16c)+'est/conf'+_0x69373(0x133)+_0x69373(0x141)+_0x69373(0x168))['option'](_0x69373(0x17c),_0x69373(0x159)+_0x69373(0x1a6)+_0x69373(0x147)+'(git\x20add'+'\x20.)')[_0x69373(0x163)]('--check',_0x69373(0x195)+_0x69373(0x151)+_0x69373(0x160)+_0x69373(0x152)+_0x69373(0x15e)+_0x69373(0x140)+'t')[_0x69373(0x142)](_0x1b5a07=>generateCommit(_0x1b5a07)),program[_0x69373(0x1a8)]('add')[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x18b)+_0x69373(0x157)+_0x69373(0x1a9)+'mmit\x20sug'+'gestion\x20'+_0x69373(0x12e))[_0x69373(0x163)](_0x69373(0x17c),'Stage\x20al'+'l\x20change'+'s\x20first\x20'+_0x69373(0x143)+'d)')[_0x69373(0x163)]('--check',_0x69373(0x195)+_0x69373(0x151)+_0x69373(0x160)+_0x69373(0x152)+_0x69373(0x15e)+'ng\x20commi'+'t')[_0x69373(0x142)](_0x422075=>addAndCommit(_0x422075)),program[_0x69373(0x1a8)](_0x69373(0x190))[_0x69373(0x166)+'ion'](_0x69373(0x145)+'a\x20branch'+_0x69373(0x144)+_0x69373(0x15c)+_0x69373(0x184)+'ate\x20the\x20'+_0x69373(0x190))[_0x69373(0x16e)](_0x69373(0x14d)+_0x69373(0x149),_0x69373(0x156)+_0x69373(0x166)+_0x69373(0x12a))[_0x69373(0x142)](async _0x12ab17=>{const _0x45bb18=_0x69373,_0x44a4a3={'zEkPC':function(_0x2937b1,_0x56f308){return _0x2937b1(_0x56f308);},'Iciaw':_0x45bb18(0x185)+'a\x20featur'+_0x45bb18(0x1ab)+_0x45bb18(0x181)},_0x3b786b=_0x12ab17[_0x45bb18(0x171)]('\x20')[_0x45bb18(0x161)]();!_0x3b786b&&_0x44a4a3[_0x45bb18(0x1a3)](failAndExit,_0x44a4a3[_0x45bb18(0x191)]),await suggestBranch(_0x3b786b);}),program['command']('pr')[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x186)+_0x69373(0x189)+_0x69373(0x158)+'scriptio'+'n\x20from\x20b'+'ranch\x20co'+_0x69373(0x13f))[_0x69373(0x142)](generatePullRequestText),program[_0x69373(0x1a8)]('log')[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x1a1)+_0x69373(0x13c)+_0x69373(0x1a5)+_0x69373(0x176)+_0x69373(0x193)+'ranch')[_0x69373(0x142)](summarizeBranchLog),program[_0x69373(0x1a8)](_0x69373(0x19d)+'g')['descript'+'ion']('Generate'+'\x20a\x20chang'+_0x69373(0x129)+_0x69373(0x146)+_0x69373(0x1a7)+_0x69373(0x134))['argument']('[name]',_0x69373(0x1aa)+'e\x20name\x20('+_0x69373(0x130)+_0x69373(0x155)+_0x69373(0x131)+_0x69373(0x148))[_0x69373(0x163)](_0x69373(0x197)+_0x69373(0x16d)+'umber>','Number\x20o'+_0x69373(0x14c)+_0x69373(0x192)+_0x69373(0x12c)+'ude\x20(def'+_0x69373(0x19c)+')')[_0x69373(0x142)]((_0x3ac531,_0x3fdfee)=>generateChangelog(_0x3ac531,_0x3fdfee)),program[_0x69373(0x1a8)](_0x69373(0x150))[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x172)+_0x69373(0x1ad)+_0x69373(0x132)+_0x69373(0x16b)+_0x69373(0x198)+_0x69373(0x15d))[_0x69373(0x142)](initConfig),program[_0x69373(0x1a8)]('doctor')[_0x69373(0x166)+_0x69373(0x12a)]('Validate'+'\x20provide'+_0x69373(0x17f)+',\x20and\x20ke'+_0x69373(0x14a)+_0x69373(0x167))[_0x69373(0x142)](doctorConfig);async function main(){const _0x12b780=_0x69373,_0x5c9c25={'aBXTL':function(_0x4ab55e,_0x3d8a6c){return _0x4ab55e(_0x3d8a6c);},'VCeHI':function(_0x4b0b25,_0xbc44fe){return _0x4b0b25<=_0xbc44fe;},'QVapK':function(_0x5e4e3d){return _0x5e4e3d();}};await _0x5c9c25[_0x12b780(0x1a2)](maybeAutoUpdate,process[_0x12b780(0x183)]);if(_0x5c9c25[_0x12b780(0x19e)](process['argv'][_0x12b780(0x165)],0x2)){await _0x5c9c25['QVapK'](generateCommit);return;}await program[_0x12b780(0x14e)+'nc'](process['argv']);}main()[_0x69373(0x13e)](_0x29a8c5=>{const _0x5b9bd6=_0x69373,_0x54bc08={'bhCVG':function(_0x122d7d,_0x2cda51){return _0x122d7d instanceof _0x2cda51;},'DCWQu':function(_0x8ee062,_0x2ae2fa){return _0x8ee062(_0x2ae2fa);},'dvFIj':function(_0x4b42ef,_0x29fa3b){return _0x4b42ef(_0x29fa3b);}},_0x1d9829=_0x54bc08[_0x5b9bd6(0x178)](_0x29a8c5,Error)?_0x29a8c5[_0x5b9bd6(0x12f)]:_0x54bc08['DCWQu'](String,_0x29a8c5);_0x54bc08[_0x5b9bd6(0x187)](failAndExit,_0x1d9829);});
@@ -1 +1 @@
1
- (function(_0xf9ed68,_0x281390){const _0x3dcd1b=_0x1575,_0x277535=_0xf9ed68();while(!![]){try{const _0x4d615d=-parseInt(_0x3dcd1b(0xcd))/0x1+parseInt(_0x3dcd1b(0xb3))/0x2*(-parseInt(_0x3dcd1b(0xe6))/0x3)+-parseInt(_0x3dcd1b(0xd8))/0x4+parseInt(_0x3dcd1b(0xc4))/0x5*(-parseInt(_0x3dcd1b(0xbb))/0x6)+-parseInt(_0x3dcd1b(0xae))/0x7*(-parseInt(_0x3dcd1b(0xb7))/0x8)+parseInt(_0x3dcd1b(0xd0))/0x9*(-parseInt(_0x3dcd1b(0xd5))/0xa)+parseInt(_0x3dcd1b(0xc8))/0xb;if(_0x4d615d===_0x281390)break;else _0x277535['push'](_0x277535['shift']());}catch(_0x8e6b49){_0x277535['push'](_0x277535['shift']());}}}(_0x1a6d,0xb67d0));const _0x790111=(function(){const _0x388a15={'EWaCq':'edFDE'};let _0x2b1ebb=!![];return function(_0x257712,_0x5689e1){const _0x548374=_0x2b1ebb?function(){const _0x3fe327=_0x1575;if(_0x5689e1){if(_0x388a15['EWaCq']!=='DyiGF'){const _0x5c467d=_0x5689e1[_0x3fe327(0xc2)](_0x257712,arguments);return _0x5689e1=null,_0x5c467d;}else return _0x54db4c['trim']();}}:function(){};return _0x2b1ebb=![],_0x548374;};}()),_0x1d97fc=_0x790111(this,function(){const _0x3fe9ca=_0x1575,_0x333a2c={'QjqDZ':_0x3fe9ca(0xc5)+_0x3fe9ca(0xda)};return _0x1d97fc[_0x3fe9ca(0xd3)]()['search'](_0x333a2c[_0x3fe9ca(0xdd)])[_0x3fe9ca(0xd3)]()['construc'+_0x3fe9ca(0xe2)](_0x1d97fc)[_0x3fe9ca(0xc6)](_0x333a2c[_0x3fe9ca(0xdd)]);});_0x1d97fc();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x3acc48){const _0x50f50a=_0x1575,_0x197047={'itvuO':function(_0xc9e33d,_0x245ab4){return _0xc9e33d(_0x245ab4);},'ovjZv':_0x50f50a(0xbe),'VUxsE':_0x50f50a(0xad)},_0x8e751c=process.env[_0x3acc48];if(!_0x8e751c){if(_0x197047[_0x50f50a(0xcc)]===_0x197047[_0x50f50a(0xd2)]){if(typeof _0x39f702===_0x50f50a(0xb5))return _0x3dea67[_0x50f50a(0xd4)]();if(_0xb4cf33['isArray'](_0x17ec66))return _0x473ef2[_0x50f50a(0xb8)](_0x5f85db=>typeof _0x5f85db===_0x50f50a(0xb5)?_0x5f85db:_0x5f85db?.[_0x50f50a(0xe0)]||'')[_0x50f50a(0xd7)]('')['trim']();return _0x197047[_0x50f50a(0xc1)](_0x283fbb,_0x264cc6||'')[_0x50f50a(0xd4)]();}else throw new Error('Set\x20the\x20'+_0x3acc48+('\x20environ'+_0x50f50a(0xb4)+_0x50f50a(0xde)));}return _0x8e751c;}export function createLLM(){const _0x2128e3=_0x1575,_0x54c52a={'ZKTAa':'(((.+)+)'+_0x2128e3(0xda),'icThg':function(_0x3ee2a4,_0x5091a5){return _0x3ee2a4===_0x5091a5;},'mWdrd':_0x2128e3(0xbd),'zJcfs':'xWeIV','ucWDS':_0x2128e3(0xe4)+_0x2128e3(0xcf)+'EY\x20or\x20GE'+_0x2128e3(0xce)+_0x2128e3(0xe7),'ETzFT':_0x2128e3(0xdb),'iZqmV':function(_0x32394c,_0x3f04fd){return _0x32394c===_0x3f04fd;},'PbsMq':_0x2128e3(0xca),'PXScY':'gapxS','lvQdB':function(_0x78e0a8,_0x313894){return _0x78e0a8(_0x313894);},'cDWTG':_0x2128e3(0xb2)+_0x2128e3(0xc3),'zTqte':'anthropi'+'c'},_0x2fed87=(process.env.LLM_PROVIDER||_0x2128e3(0xbd))[_0x2128e3(0xc9)+_0x2128e3(0xb6)](),_0x12c990=process.env.LLM_MODEL||_0x2128e3(0xcb)+_0x2128e3(0xc7);if(_0x54c52a[_0x2128e3(0xc0)](_0x2fed87,_0x54c52a[_0x2128e3(0xe5)])){const _0x1ddffa=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x1ddffa){if(_0x54c52a[_0x2128e3(0xba)]===_0x54c52a[_0x2128e3(0xba)])throw new Error(_0x54c52a[_0x2128e3(0xb1)]);else throw new _0x51d1d1(_0x2128e3(0xe4)+'LE_API_K'+'EY\x20or\x20GE'+_0x2128e3(0xce)+'_KEY.');}return new ChatGoogleGenerativeAI({'model':_0x12c990,'apiKey':_0x1ddffa,'temperature':0.2});}if(_0x54c52a[_0x2128e3(0xc0)](_0x2fed87,_0x54c52a[_0x2128e3(0xb9)]))return _0x54c52a[_0x2128e3(0xd1)](_0x54c52a[_0x2128e3(0xb0)],_0x54c52a[_0x2128e3(0xaf)])?_0x433002[_0x2128e3(0xd3)]()[_0x2128e3(0xc6)](xDRgnb[_0x2128e3(0xac)])['toString']()[_0x2128e3(0xe3)+_0x2128e3(0xe2)](_0x57e806)['search']('(((.+)+)'+_0x2128e3(0xda)):new ChatOpenAI({'model':_0x12c990,'apiKey':_0x54c52a['lvQdB'](requireEnv,_0x54c52a[_0x2128e3(0xe1)]),'temperature':0.2});if(_0x2fed87===_0x54c52a[_0x2128e3(0xdc)])return new ChatAnthropic({'model':_0x12c990,'apiKey':requireEnv(_0x2128e3(0xdf)+'C_API_KE'+'Y'),'temperature':0.2});throw new Error('Invalid\x20'+_0x2128e3(0xbc)+_0x2128e3(0xd9)+_0x2fed87);}export function extractMessageText(_0x5ac485){const _0x9ae1f1=_0x1575,_0x20c425={'KuPbp':_0x9ae1f1(0xb5),'lnGCR':function(_0x209544,_0x3c5c09){return _0x209544(_0x3c5c09);}};if(typeof _0x5ac485===_0x20c425['KuPbp'])return _0x5ac485[_0x9ae1f1(0xd4)]();if(Array[_0x9ae1f1(0xbf)](_0x5ac485))return _0x5ac485[_0x9ae1f1(0xb8)](_0x2cae16=>typeof _0x2cae16===_0x9ae1f1(0xb5)?_0x2cae16:_0x2cae16?.[_0x9ae1f1(0xe0)]||'')[_0x9ae1f1(0xd7)]('')[_0x9ae1f1(0xd4)]();return _0x20c425[_0x9ae1f1(0xd6)](String,_0x5ac485||'')['trim']();}function _0x1575(_0x1fd98a,_0xe65f48){_0x1fd98a=_0x1fd98a-0xac;const _0x4e3c30=_0x1a6d();let _0x1d97fc=_0x4e3c30[_0x1fd98a];return _0x1d97fc;}function _0x1a6d(){const _0x295c3a=['QjqDZ','iable.','ANTHROPI','text','cDWTG','tor','construc','Set\x20GOOG','mWdrd','483WbsIwS','_KEY.','ZKTAa','fALKh','46865PUowbV','PXScY','PbsMq','ucWDS','OPENAI_A','13634ESNDRK','ment\x20var','string','ase','376nlhmrv','map','ETzFT','zJcfs','72WnIACy','LLM_PROV','google','KvJvO','isArray','icThg','itvuO','apply','PI_KEY','373045DxTuMD','(((.+)+)','search','.5-flash','53231266TSweMX','toLowerC','HSPKA','gemini-2','ovjZv','1338473taNCJl','MINI_API','LE_API_K','882LacRAo','iZqmV','VUxsE','toString','trim','37330dexnYn','lnGCR','join','2836988eVBawZ','IDER:\x20','+)+$','openai','zTqte'];_0x1a6d=function(){return _0x295c3a;};return _0x1a6d();}
1
+ (function(_0x62cb36,_0x12631c){const _0xa8d8cb=_0x1953,_0x4ca51e=_0x62cb36();while(!![]){try{const _0xadd23b=parseInt(_0xa8d8cb(0x183))/0x1*(parseInt(_0xa8d8cb(0x16d))/0x2)+parseInt(_0xa8d8cb(0x17d))/0x3+-parseInt(_0xa8d8cb(0x18c))/0x4*(parseInt(_0xa8d8cb(0x19c))/0x5)+parseInt(_0xa8d8cb(0x186))/0x6+-parseInt(_0xa8d8cb(0x174))/0x7+-parseInt(_0xa8d8cb(0x19b))/0x8+parseInt(_0xa8d8cb(0x189))/0x9;if(_0xadd23b===_0x12631c)break;else _0x4ca51e['push'](_0x4ca51e['shift']());}catch(_0x37109a){_0x4ca51e['push'](_0x4ca51e['shift']());}}}(_0x3ccb,0x80865));const _0x47d6d2=(function(){const _0x468367=_0x1953,_0x4a303d={'VtQtg':function(_0x231da5,_0x426d9d){return _0x231da5===_0x426d9d;},'aqxpJ':'string','yIDsX':function(_0x5cc8df,_0x28a121){return _0x5cc8df||_0x28a121;},'GyjrX':_0x468367(0x19f)};let _0x25a4d3=!![];return function(_0x2fc873,_0x396e03){const _0x3ed0a5=_0x468367;if(_0x4a303d[_0x3ed0a5(0x199)](_0x4a303d[_0x3ed0a5(0x175)],_0x4a303d[_0x3ed0a5(0x175)])){const _0x1b3928=_0x25a4d3?function(){const _0x5c2a11=_0x3ed0a5;if(_0x396e03){const _0x16fc99=_0x396e03[_0x5c2a11(0x17e)](_0x2fc873,arguments);return _0x396e03=null,_0x16fc99;}}:function(){};return _0x25a4d3=![],_0x1b3928;}else{if(_0x4a303d[_0x3ed0a5(0x199)](typeof _0x36b676,_0x4a303d[_0x3ed0a5(0x19e)]))return _0x186bc7['trim']();if(_0x53a8db[_0x3ed0a5(0x170)](_0x72f7cc))return _0x5c3465[_0x3ed0a5(0x16a)](_0x1699a6=>typeof _0x1699a6==='string'?_0x1699a6:_0x1699a6?.[_0x3ed0a5(0x16c)]||'')[_0x3ed0a5(0x1a0)]('')[_0x3ed0a5(0x18b)]();return _0x2bd9ce(_0x4a303d[_0x3ed0a5(0x180)](_0x55031b,''))[_0x3ed0a5(0x18b)]();}};}()),_0x3bd8c3=_0x47d6d2(this,function(){const _0x5a1847=_0x1953,_0x4b0588={'rxHGR':'(((.+)+)'+_0x5a1847(0x190)};return _0x3bd8c3[_0x5a1847(0x184)]()[_0x5a1847(0x18d)](_0x5a1847(0x181)+_0x5a1847(0x190))[_0x5a1847(0x184)]()[_0x5a1847(0x17f)+_0x5a1847(0x198)](_0x3bd8c3)['search'](_0x4b0588[_0x5a1847(0x18e)]);});_0x3bd8c3();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';function _0x1953(_0x425165,_0x3f2135){_0x425165=_0x425165-0x16a;const _0x2e7536=_0x3ccb();let _0x3bd8c3=_0x2e7536[_0x425165];return _0x3bd8c3;}import{ChatOpenAI}from'@langchain/openai';function _0x3ccb(){const _0x3f7010=['text','458PDjxbQ','ANTHROPI','ment\x20var','isArray','ase','Invalid\x20','fNEuP','6750282PBqWaG','GyjrX','AVZkQ','icvKc','QFEof','gemini-2','MINI_API','google','.5-flash','2062980avHzNs','apply','construc','yIDsX','(((.+)+)','\x20environ','3308zholSh','toString','_KEY.','4864116POizLn','dDRvb','oxMph','4115574FSCReq','iable.','trim','4dccBPe','search','rxHGR','jMQEO','+)+$','anthropi','OPENAI_A','LE_API_K','ACMIu','Set\x20GOOG','WlAZM','cwRPn','tor','VtQtg','IDER:\x20','2655456nsbSRv','4452345FiFChk','snDib','aqxpJ','mQVtd','join','toLowerC','LLM_PROV','map','EY\x20or\x20GE'];_0x3ccb=function(){return _0x3f7010;};return _0x3ccb();}function requireEnv(_0x207074){const _0x2a1263=_0x1953,_0x1d0798=process.env[_0x207074];if(!_0x1d0798)throw new Error('Set\x20the\x20'+_0x207074+(_0x2a1263(0x182)+_0x2a1263(0x16f)+_0x2a1263(0x18a)));return _0x1d0798;}export function createLLM(){const _0x4fc063=_0x1953,_0x51b0ab={'AVZkQ':function(_0xd56941,_0x17b47f){return _0xd56941(_0x17b47f);},'snDib':_0x4fc063(0x192)+'PI_KEY','jMQEO':_0x4fc063(0x17b),'icvKc':_0x4fc063(0x179)+_0x4fc063(0x17c),'dDRvb':function(_0x3b07da,_0xfcdfb7){return _0x3b07da===_0xfcdfb7;},'ETYXN':_0x4fc063(0x195)+_0x4fc063(0x193)+_0x4fc063(0x16b)+_0x4fc063(0x17a)+_0x4fc063(0x185),'quTwJ':function(_0x35ce6d,_0x207aad){return _0x35ce6d===_0x207aad;},'fNEuP':'openai','cRBtD':_0x4fc063(0x191)+'c','cwRPn':_0x4fc063(0x194)},_0x48c512=(process.env.LLM_PROVIDER||_0x51b0ab['jMQEO'])[_0x4fc063(0x1a1)+_0x4fc063(0x171)](),_0x2c3598=process.env.LLM_MODEL||_0x51b0ab[_0x4fc063(0x177)];if(_0x51b0ab[_0x4fc063(0x187)](_0x48c512,_0x51b0ab[_0x4fc063(0x18f)])){const _0x49dc4d=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x49dc4d)throw new Error(_0x51b0ab['ETYXN']);return new ChatGoogleGenerativeAI({'model':_0x2c3598,'apiKey':_0x49dc4d,'temperature':0.2});}if(_0x51b0ab['quTwJ'](_0x48c512,_0x51b0ab[_0x4fc063(0x173)]))return new ChatOpenAI({'model':_0x2c3598,'apiKey':requireEnv(_0x51b0ab['snDib']),'temperature':0.2});if(_0x48c512===_0x51b0ab['cRBtD'])return'ACMIu'!==_0x51b0ab[_0x4fc063(0x197)]?new _0x227f6d({'model':_0x4fcc01,'apiKey':_0x51b0ab['AVZkQ'](_0x247bc7,_0x51b0ab[_0x4fc063(0x19d)]),'temperature':0.2}):new ChatAnthropic({'model':_0x2c3598,'apiKey':_0x51b0ab[_0x4fc063(0x176)](requireEnv,_0x4fc063(0x16e)+'C_API_KE'+'Y'),'temperature':0.2});throw new Error(_0x4fc063(0x172)+_0x4fc063(0x1a2)+_0x4fc063(0x19a)+_0x48c512);}export function extractMessageText(_0xea8ac2){const _0x44ae63=_0x1953,_0x53d4f0={'wYXph':function(_0x254b8d,_0x377ba2){return _0x254b8d===_0x377ba2;},'oxMph':'string','WlAZM':function(_0x4e404c,_0x8cc07){return _0x4e404c(_0x8cc07);},'QFEof':function(_0x5f487d,_0x541b84){return _0x5f487d||_0x541b84;}};if(_0x53d4f0['wYXph'](typeof _0xea8ac2,_0x53d4f0[_0x44ae63(0x188)]))return _0xea8ac2[_0x44ae63(0x18b)]();if(Array[_0x44ae63(0x170)](_0xea8ac2))return _0xea8ac2['map'](_0x3f13ad=>typeof _0x3f13ad==='string'?_0x3f13ad:_0x3f13ad?.[_0x44ae63(0x16c)]||'')[_0x44ae63(0x1a0)]('')['trim']();return _0x53d4f0[_0x44ae63(0x196)](String,_0x53d4f0[_0x44ae63(0x178)](_0xea8ac2,''))['trim']();}
@@ -1 +1 @@
1
- (function(_0x235d13,_0x35f8c1){const _0x1b40a8=_0x51f0,_0x4676e7=_0x235d13();while(!![]){try{const _0x2f82b0=parseInt(_0x1b40a8(0x1c1))/0x1+-parseInt(_0x1b40a8(0x1c2))/0x2*(parseInt(_0x1b40a8(0x1cd))/0x3)+parseInt(_0x1b40a8(0x1d6))/0x4*(parseInt(_0x1b40a8(0x1d1))/0x5)+-parseInt(_0x1b40a8(0x1cf))/0x6*(parseInt(_0x1b40a8(0x1d5))/0x7)+-parseInt(_0x1b40a8(0x1d7))/0x8+-parseInt(_0x1b40a8(0x1c4))/0x9*(parseInt(_0x1b40a8(0x1c3))/0xa)+-parseInt(_0x1b40a8(0x1ce))/0xb*(-parseInt(_0x1b40a8(0x1d8))/0xc);if(_0x2f82b0===_0x35f8c1)break;else _0x4676e7['push'](_0x4676e7['shift']());}catch(_0xc68475){_0x4676e7['push'](_0x4676e7['shift']());}}}(_0x5820,0x647fa));const _0x3a7db5=(function(){let _0x1d82db=!![];return function(_0x10c08b,_0x92878d){const _0x535309=_0x1d82db?function(){const _0x3b1a1b=_0x51f0;if(_0x92878d){const _0x45e152=_0x92878d[_0x3b1a1b(0x1c8)](_0x10c08b,arguments);return _0x92878d=null,_0x45e152;}}:function(){};return _0x1d82db=![],_0x535309;};}()),_0x242a5c=_0x3a7db5(this,function(){const _0x191592=_0x51f0,_0x19d23b={'ijNyj':'(((.+)+)'+'+)+$'};return _0x242a5c[_0x191592(0x1cc)]()[_0x191592(0x1ca)](_0x19d23b[_0x191592(0x1d0)])[_0x191592(0x1cc)]()[_0x191592(0x1c6)+_0x191592(0x1c5)](_0x242a5c)['search'](_0x19d23b[_0x191592(0x1d0)]);});_0x242a5c();import{createInterface}from'readline/promises';import{stdin as _0x562abf,stdout as _0x1e36a5}from'process';export async function askConfirmation(_0x36ab6c,_0x1c8d53={}){const _0x50788f=_0x51f0,_0x13ae38={'DckZw':function(_0x29e42a,_0xd1bd93){return _0x29e42a(_0xd1bd93);},'WLzTr':function(_0x50b1c4,_0x39cec1){return _0x50b1c4(_0x39cec1);}},_0x298204=_0x13ae38[_0x50788f(0x1cb)](createInterface,{'input':_0x562abf,'output':_0x1e36a5}),_0x3b2a77=await _0x298204[_0x50788f(0x1d4)](_0x36ab6c);_0x298204[_0x50788f(0x1d2)]();const _0x25cf5e=_0x3b2a77[_0x50788f(0x1c7)]()[_0x50788f(0x1d3)+_0x50788f(0x1c0)]();if(!_0x25cf5e)return _0x13ae38[_0x50788f(0x1c9)](Boolean,_0x1c8d53['defaultY'+'es']);return _0x25cf5e==='y';}export async function askInput(_0x44579a){const _0x434876=_0x51f0,_0x4648d4={'JLXSH':function(_0x5bc877,_0x29dd72){return _0x5bc877(_0x29dd72);}},_0x104419=_0x4648d4[_0x434876(0x1d9)](createInterface,{'input':_0x562abf,'output':_0x1e36a5}),_0x568ac0=await _0x104419[_0x434876(0x1d4)](_0x44579a);return _0x104419['close'](),_0x568ac0[_0x434876(0x1c7)]();}export async function askEditableInput(_0x340208,_0x314b5e){const _0x4650ff=_0x51f0,_0x42ec81=createInterface({'input':_0x562abf,'output':_0x1e36a5}),_0x43fc76=await _0x42ec81[_0x4650ff(0x1d4)](_0x340208);_0x42ec81['close']();const _0x2718a8=_0x43fc76[_0x4650ff(0x1c7)]();if(!_0x2718a8)return _0x314b5e;return _0x2718a8;}function _0x51f0(_0x289331,_0x307933){_0x289331=_0x289331-0x1c0;const _0x16ce25=_0x5820();let _0x242a5c=_0x16ce25[_0x289331];return _0x242a5c;}function _0x5820(){const _0x255081=['481690MOZgMD','18miereN','tor','construc','trim','apply','WLzTr','search','DckZw','toString','695610ZkZeOS','330bbhjCm','2994012JvQbnT','ijNyj','92515UQNLGD','close','toLowerC','question','7tQtWky','76vDnfZT','2669264KVVgQd','510420VVAhsO','JLXSH','ase','408643AnzEhU','6GFUkTZ'];_0x5820=function(){return _0x255081;};return _0x5820();}
1
+ function _0x23f0(_0x1a213b,_0x2f8ab8){_0x1a213b=_0x1a213b-0x91;const _0x1a8dad=_0x29b8();let _0x47ddaf=_0x1a8dad[_0x1a213b];return _0x47ddaf;}(function(_0x19ba51,_0xd65b0){const _0x200880=_0x23f0,_0x38c199=_0x19ba51();while(!![]){try{const _0xaa55e=-parseInt(_0x200880(0xa6))/0x1*(-parseInt(_0x200880(0x9a))/0x2)+-parseInt(_0x200880(0x97))/0x3+parseInt(_0x200880(0x9f))/0x4+-parseInt(_0x200880(0x94))/0x5+parseInt(_0x200880(0x95))/0x6*(-parseInt(_0x200880(0x9e))/0x7)+parseInt(_0x200880(0xa1))/0x8*(parseInt(_0x200880(0x92))/0x9)+parseInt(_0x200880(0x9c))/0xa;if(_0xaa55e===_0xd65b0)break;else _0x38c199['push'](_0x38c199['shift']());}catch(_0x51ff04){_0x38c199['push'](_0x38c199['shift']());}}}(_0x29b8,0x459b0));const _0x31be9b=(function(){let _0x4e3394=!![];return function(_0x4efa6a,_0x31bb52){const _0x220e37=_0x4e3394?function(){const _0x1b25a5=_0x23f0;if(_0x31bb52){const _0x1c13c4=_0x31bb52[_0x1b25a5(0x99)](_0x4efa6a,arguments);return _0x31bb52=null,_0x1c13c4;}}:function(){};return _0x4e3394=![],_0x220e37;};}()),_0x47ddaf=_0x31be9b(this,function(){const _0x2579f8=_0x23f0,_0x333f4a={'XjJYl':_0x2579f8(0x91)+_0x2579f8(0xa5)};return _0x47ddaf[_0x2579f8(0x93)]()[_0x2579f8(0x9d)](_0x333f4a[_0x2579f8(0xa4)])['toString']()[_0x2579f8(0x96)+'tor'](_0x47ddaf)[_0x2579f8(0x9d)](_0x333f4a[_0x2579f8(0xa4)]);});_0x47ddaf();import{createInterface}from'readline/promises';import{stdin as _0x24ce4a,stdout as _0x4ffa8f}from'process';function _0x29b8(){const _0x52b976=['(((.+)+)','12429VflGol','toString','2555180QaGXzS','2108874DmEXvY','construc','434145UULnXO','Ywcsq','apply','307220PbQciw','tewfO','5457240WTyQKG','search','7doWiLI','1040716QCFFXy','xERrL','1928hSuYTa','close','question','XjJYl','+)+$','1GUvTep','toLowerC','trim'];_0x29b8=function(){return _0x52b976;};return _0x29b8();}export async function askConfirmation(_0x4477b8,_0x3c94a1={}){const _0x432a92=_0x23f0,_0x160ad0={'tewfO':function(_0x462ccb,_0x2dff57){return _0x462ccb(_0x2dff57);}},_0x2345ff=createInterface({'input':_0x24ce4a,'output':_0x4ffa8f}),_0x5665aa=await _0x2345ff[_0x432a92(0xa3)](_0x4477b8);_0x2345ff['close']();const _0x327801=_0x5665aa['trim']()[_0x432a92(0xa7)+'ase']();if(!_0x327801)return _0x160ad0[_0x432a92(0x9b)](Boolean,_0x3c94a1['defaultY'+'es']);return _0x327801==='y';}export async function askInput(_0x4352db){const _0x7ff198=_0x23f0,_0x3398cb={'Ywcsq':function(_0x28a17c,_0x1fae3d){return _0x28a17c(_0x1fae3d);}},_0x5502b8=_0x3398cb[_0x7ff198(0x98)](createInterface,{'input':_0x24ce4a,'output':_0x4ffa8f}),_0xe41202=await _0x5502b8[_0x7ff198(0xa3)](_0x4352db);return _0x5502b8[_0x7ff198(0xa2)](),_0xe41202[_0x7ff198(0xa8)]();}export async function askEditableInput(_0x4e5bdc,_0x7dc61f){const _0x406763=_0x23f0,_0x5c4a0f={'xERrL':function(_0x4dbacc,_0x57a844){return _0x4dbacc(_0x57a844);}},_0x7b2790=_0x5c4a0f[_0x406763(0xa0)](createInterface,{'input':_0x24ce4a,'output':_0x4ffa8f}),_0x2ed3a1=await _0x7b2790[_0x406763(0xa3)](_0x4e5bdc);_0x7b2790[_0x406763(0xa2)]();const _0x21df98=_0x2ed3a1[_0x406763(0xa8)]();if(!_0x21df98)return _0x7dc61f;return _0x21df98;}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
1
- const _0xef1a53=_0x1a39;function _0x1a39(_0x234bb7,_0x569ea3){_0x234bb7=_0x234bb7-0x164;const _0x848fc7=_0x3e9e();let _0x5667be=_0x848fc7[_0x234bb7];return _0x5667be;}(function(_0x5b297e,_0x2f20aa){const _0x137c23=_0x1a39,_0x1bdedc=_0x5b297e();while(!![]){try{const _0x5b65db=-parseInt(_0x137c23(0x19a))/0x1*(parseInt(_0x137c23(0x1a6))/0x2)+parseInt(_0x137c23(0x179))/0x3*(parseInt(_0x137c23(0x168))/0x4)+-parseInt(_0x137c23(0x18f))/0x5+parseInt(_0x137c23(0x18a))/0x6*(-parseInt(_0x137c23(0x190))/0x7)+-parseInt(_0x137c23(0x196))/0x8+-parseInt(_0x137c23(0x18d))/0x9*(-parseInt(_0x137c23(0x1a0))/0xa)+parseInt(_0x137c23(0x180))/0xb*(parseInt(_0x137c23(0x18c))/0xc);if(_0x5b65db===_0x2f20aa)break;else _0x1bdedc['push'](_0x1bdedc['shift']());}catch(_0x1e46cd){_0x1bdedc['push'](_0x1bdedc['shift']());}}}(_0x3e9e,0xa0ab0));const _0x3237bc=(function(){const _0x587994=_0x1a39,_0x125c2c={'KtEZu':function(_0x219f57,_0x41e386,_0x22b28b,_0xa4feb5){return _0x219f57(_0x41e386,_0x22b28b,_0xa4feb5);},'MURIX':_0x587994(0x177)};let _0x5e28c0=!![];return function(_0x467c59,_0x5afc22){const _0x36b50e=_0x587994,_0x131652={'RzhjU':function(_0x5f0608,_0x1a4872,_0x49d310,_0x65a16a){const _0x35b505=_0x1a39;return _0x125c2c[_0x35b505(0x172)](_0x5f0608,_0x1a4872,_0x49d310,_0x65a16a);},'auLwL':_0x125c2c[_0x36b50e(0x167)]},_0x2d6463=_0x5e28c0?function(){const _0xcad870=_0x36b50e;if(_0x5afc22){if(_0x131652[_0xcad870(0x19b)]===_0x131652[_0xcad870(0x19b)]){const _0x51c786=_0x5afc22[_0xcad870(0x17e)](_0x467c59,arguments);return _0x5afc22=null,_0x51c786;}else return _0x131652[_0xcad870(0x170)](_0xef1987,_0x495c05,_0x40502d[_0xcad870(0x178)],_0x41443e[_0xcad870(0x19c)]);}}:function(){};return _0x5e28c0=![],_0x2d6463;};}()),_0x5667be=_0x3237bc(this,function(){const _0x3561b9=_0x1a39,_0xadb599={'nfctt':_0x3561b9(0x182)+_0x3561b9(0x173)};return _0x5667be['toString']()[_0x3561b9(0x193)](_0xadb599['nfctt'])['toString']()[_0x3561b9(0x195)+_0x3561b9(0x171)](_0x5667be)[_0x3561b9(0x193)](_0xadb599[_0x3561b9(0x1a1)]);});_0x5667be();export const ui={'reset':_0xef1a53(0x17b),'bold':_0xef1a53(0x19d),'dim':_0xef1a53(0x17a),'cyan':_0xef1a53(0x191),'green':'\x1b[32m','yellow':_0xef1a53(0x1a3),'red':_0xef1a53(0x17c)};export function style(_0x80ae65,..._0x18fa84){const _0x5d98f2=_0xef1a53;return''+_0x18fa84[_0x5d98f2(0x1a4)]('')+_0x80ae65+ui['reset'];}function getDividerWidth(){const _0x1b3d20=_0xef1a53,_0x462a69=process[_0x1b3d20(0x198)][_0x1b3d20(0x16c)]||0x50;return Math[_0x1b3d20(0x187)](0x28,Math['min'](_0x462a69,0x64));}export function divider(){const _0x412176=_0xef1a53,_0x5c5726={'TSopJ':function(_0x5a95a9,_0x41eb53,_0x207fa2){return _0x5a95a9(_0x41eb53,_0x207fa2);},'wUynM':function(_0x2bd434){return _0x2bd434();}};console[_0x412176(0x183)](_0x5c5726[_0x412176(0x1a2)](style,'-'['repeat'](_0x5c5726[_0x412176(0x164)](getDividerWidth)),ui[_0x412176(0x16b)]));}export function section(_0xd92eb8){const _0x17788f=_0xef1a53,_0x6b1c89={'PLvWn':function(_0x3b5a15,_0x4d698a,_0x1b8e3b,_0x5bc4b0){return _0x3b5a15(_0x4d698a,_0x1b8e3b,_0x5bc4b0);},'iYqdO':function(_0x4a3fbf){return _0x4a3fbf();}};console[_0x17788f(0x183)](),divider(),console[_0x17788f(0x183)](_0x6b1c89[_0x17788f(0x186)](style,'[\x20'+_0xd92eb8+'\x20]',ui[_0x17788f(0x19c)],ui[_0x17788f(0x165)])),_0x6b1c89['iYqdO'](divider);}export function ok(_0x4b2899){const _0x1ce3ce=_0xef1a53,_0x501ad0={'CBltq':function(_0x469fac,_0x3148a6,_0x5ca56b,_0x4ff3f4){return _0x469fac(_0x3148a6,_0x5ca56b,_0x4ff3f4);}};return _0x501ad0[_0x1ce3ce(0x19e)](style,_0x4b2899,ui[_0x1ce3ce(0x166)],ui[_0x1ce3ce(0x19c)]);}export function warn(_0x10b5a7){const _0x2a9e1a=_0xef1a53,_0x586890={'KhMiU':function(_0x4abd6f,_0x2e4d03,_0x4e0d14,_0x6131f){return _0x4abd6f(_0x2e4d03,_0x4e0d14,_0x6131f);}};return _0x586890[_0x2a9e1a(0x175)](style,_0x10b5a7,ui['yellow'],ui['bold']);}export function bad(_0x999ba3){const _0x42a7a1=_0xef1a53,_0x231e68={'OxvZZ':function(_0x317533,_0xb2727b,_0x1ca221,_0x1059ac){return _0x317533(_0xb2727b,_0x1ca221,_0x1059ac);}};return _0x231e68['OxvZZ'](style,_0x999ba3,ui['red'],ui[_0x42a7a1(0x19c)]);}export function info(_0x329315){const _0x2d41af=_0xef1a53,_0xb4af7a={'rWYdL':function(_0xb202,_0x5e5bad,_0x3e3c63,_0x15643a){return _0xb202(_0x5e5bad,_0x3e3c63,_0x15643a);}};return _0xb4af7a[_0x2d41af(0x185)](style,_0x329315,ui[_0x2d41af(0x165)],ui[_0x2d41af(0x19c)]);}export function printKeyValues(_0x17e99e){const _0x3a0764=_0xef1a53,_0x48b010={'hEfcQ':function(_0x5624a9,_0x5adaf1){return _0x5624a9===_0x5adaf1;}};if(_0x48b010[_0x3a0764(0x16a)](_0x17e99e[_0x3a0764(0x184)],0x0))return;const _0x1cded6=_0x17e99e['reduce']((_0x262328,_0x180899)=>Math[_0x3a0764(0x187)](_0x262328,_0x180899[_0x3a0764(0x16e)][_0x3a0764(0x184)]),0x0);for(const _0x273243 of _0x17e99e){const _0x479b47=style(_0x273243[_0x3a0764(0x16e)]['padEnd'](_0x1cded6),ui['dim']);console['log']('\x20\x20'+_0x479b47+_0x3a0764(0x197)+_0x273243['value']);}}export function printList(_0x3ba010,_0x2f2165){const _0x45a6bc=_0xef1a53,_0x57babe={'CSuIw':function(_0x550a4a,_0x174993,_0x2a3700){return _0x550a4a(_0x174993,_0x2a3700);},'DeHnT':function(_0xa46cd3,_0xff32e5){return _0xa46cd3===_0xff32e5;},'hEtyq':_0x45a6bc(0x181)};console[_0x45a6bc(0x183)](_0x57babe[_0x45a6bc(0x17f)](style,_0x3ba010,ui['bold']));if(_0x57babe[_0x45a6bc(0x194)](_0x2f2165['length'],0x0)){console[_0x45a6bc(0x183)]('\x20\x20'+_0x57babe[_0x45a6bc(0x17f)](style,_0x57babe[_0x45a6bc(0x18b)],ui['dim']));return;}for(const _0xaf77b4 of _0x2f2165){console[_0x45a6bc(0x183)](_0x45a6bc(0x16d)+_0xaf77b4);}}export function failAndExit(_0x2fcebe){const _0x2dca78=_0xef1a53,_0x492b5c={'yRaFg':function(_0x288d80,_0x325daf){return _0x288d80(_0x325daf);},'MRTkV':_0x2dca78(0x169)};console[_0x2dca78(0x18e)](_0x492b5c[_0x2dca78(0x17d)](bad,_0x492b5c['MRTkV'])+'\x20'+_0x2fcebe),process[_0x2dca78(0x189)](0x1);}export async function withProgress(_0x1765bf,_0x4c222f){const _0x49daea=_0xef1a53,_0x59a61d={'sdqSR':function(_0xf4ee7f,_0xb49de8){return _0xf4ee7f%_0xb49de8;},'JPvQw':function(_0x4db05a,_0x5d067f,_0x5acfa8){return _0x4db05a(_0x5d067f,_0x5acfa8);},'oteva':function(_0x578a9a){return _0x578a9a();},'djgse':_0x49daea(0x19f),'WsJkq':function(_0x2ef542,_0x165580){return _0x2ef542(_0x165580);},'LogyP':_0x49daea(0x169)};if(!process[_0x49daea(0x198)][_0x49daea(0x174)])return console['log'](_0x1765bf),_0x4c222f();const _0x35a41d=['|','/','-','\x5c'];let _0x234cb8=0x0;const _0x4e6fdb=()=>{const _0x580e70=_0x49daea,_0x38620f=_0x35a41d[_0x59a61d[_0x580e70(0x1a5)](_0x234cb8,_0x35a41d[_0x580e70(0x184)])];process['stdout']['write']('\x0d'+_0x59a61d[_0x580e70(0x192)](style,_0x38620f,ui[_0x580e70(0x165)])+'\x20'+_0x1765bf),_0x234cb8+=0x1;};_0x59a61d[_0x49daea(0x176)](_0x4e6fdb);const _0x171c73=_0x59a61d['JPvQw'](setInterval,_0x4e6fdb,0x78);try{const _0x3b8c37=await _0x59a61d['oteva'](_0x4c222f);return clearInterval(_0x171c73),process[_0x49daea(0x198)]['write'](_0x59a61d[_0x49daea(0x199)]),console[_0x49daea(0x183)](ok('OK')+'\x20'+_0x1765bf),_0x3b8c37;}catch(_0x38858d){clearInterval(_0x171c73),process[_0x49daea(0x198)]['write'](_0x59a61d[_0x49daea(0x199)]),console[_0x49daea(0x183)](_0x59a61d[_0x49daea(0x16f)](bad,_0x59a61d[_0x49daea(0x188)])+'\x20'+_0x1765bf);throw _0x38858d;}}function _0x3e9e(){const _0x31d740=['sdqSR','6DjhYNs','wUynM','cyan','green','MURIX','731864bMUEoA','ERROR','hEfcQ','dim','columns','\x20\x20-\x20','key','WsJkq','RzhjU','tor','KtEZu','+)+$','isTTY','KhMiU','oteva','GeucC','red','21QNobQm','\x1b[2m','\x1b[0m','\x1b[31m','yRaFg','apply','CSuIw','11nDmEis','(none)','(((.+)+)','log','length','rWYdL','PLvWn','max','LogyP','exit','3711216lWfFvX','hEtyq','23566884yOMwsG','1791tQiNxJ','error','1719555MFpBop','7QgdRGe','\x1b[36m','JPvQw','search','DeHnT','construc','9806352YNzCLH','\x20:\x20','stdout','djgse','433002izjFrH','auLwL','bold','\x1b[1m','CBltq','\x0d\x1b[2K','45260DPMqAg','nfctt','TSopJ','\x1b[33m','join'];_0x3e9e=function(){return _0x31d740;};return _0x3e9e();}
1
+ const _0xd2f551=_0xb2ac;(function(_0x1c4d15,_0x3d8884){const _0x30604f=_0xb2ac,_0x201a9d=_0x1c4d15();while(!![]){try{const _0x1dc3af=parseInt(_0x30604f(0x19c))/0x1+-parseInt(_0x30604f(0x180))/0x2+-parseInt(_0x30604f(0x1a9))/0x3+-parseInt(_0x30604f(0x1a0))/0x4+-parseInt(_0x30604f(0x15d))/0x5+-parseInt(_0x30604f(0x198))/0x6*(-parseInt(_0x30604f(0x196))/0x7)+parseInt(_0x30604f(0x19d))/0x8*(parseInt(_0x30604f(0x1aa))/0x9);if(_0x1dc3af===_0x3d8884)break;else _0x201a9d['push'](_0x201a9d['shift']());}catch(_0x5ced43){_0x201a9d['push'](_0x201a9d['shift']());}}}(_0x20a6,0xc7ea1));const _0x47d434=(function(){let _0x4654d7=!![];return function(_0x21f2cf,_0x2f9c02){const _0x4bca5c=_0x4654d7?function(){const _0x5c409b=_0xb2ac;if(_0x2f9c02){const _0x1fbf06=_0x2f9c02[_0x5c409b(0x194)](_0x21f2cf,arguments);return _0x2f9c02=null,_0x1fbf06;}}:function(){};return _0x4654d7=![],_0x4bca5c;};}()),_0x19339f=_0x47d434(this,function(){const _0xe27b79=_0xb2ac,_0x16d37d={'cWmDj':_0xe27b79(0x178)+'+)+$'};return _0x19339f[_0xe27b79(0x17a)]()[_0xe27b79(0x1ab)](_0xe27b79(0x178)+_0xe27b79(0x15c))[_0xe27b79(0x17a)]()[_0xe27b79(0x192)+'tor'](_0x19339f)[_0xe27b79(0x1ab)](_0x16d37d[_0xe27b79(0x19e)]);});_0x19339f();export const ui={'reset':'\x1b[0m','bold':_0xd2f551(0x15f),'dim':_0xd2f551(0x18f),'italic':_0xd2f551(0x184),'underline':'\x1b[4m','cyan':_0xd2f551(0x190),'green':_0xd2f551(0x171),'yellow':'\x1b[33m','red':_0xd2f551(0x19b),'magenta':'\x1b[35m','gray':_0xd2f551(0x197)};function _0x20a6(){const _0x394af4=['pcpzw','\x1b[3m','gray','join','TzVsD','value','arrow','log','uwqDZ','repeat','LKbgN','exit','\x1b[2m','\x1b[36m','isTTY','construc','info','apply','SIXGe','7VTRxvk','\x1b[90m','7306206IYeVWC','max','length','\x1b[31m','1417169SxsjKt','16EjTDDM','cWmDj','cross','3408456LTAlNm','italic','bold','underlin','gIohv','mWPMJ','RMPIL','qTmBR','cyan','4288980ZMTdvZ','7888077tiyfdG','search','columns','+)+$','1177150IOnZxh','stdout','\x1b[1m','Muqdq','dsxoG','YFyaq','green','min','\x0d\x1b[2K','XbEuQ','wEQkr','ILIsY','PkwQa','yHfYQ','red','HahmJ','iHbAN','BXHfG','yellow','Cjzaq','\x1b[32m','error','TWQSU','dkwAF','zdfFV','(none)','warn','(((.+)+)','nJXpq','toString','Yuyga','tick','magenta','key','write','2103446RcjlhG','reduce','TCPOq'];_0x20a6=function(){return _0x394af4;};return _0x20a6();}export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};function _0xb2ac(_0xefb13f,_0x11d5b5){_0xefb13f=_0xefb13f-0x15b;const _0x10e82e=_0x20a6();let _0x19339f=_0x10e82e[_0xefb13f];return _0x19339f;}export function style(_0x458b07,..._0x334694){const _0x3b9bfc=_0xd2f551;return''+_0x334694[_0x3b9bfc(0x186)]('')+_0x458b07+ui['reset'];}function getDividerWidth(){const _0x8cf48b=_0xd2f551,_0x130ed4=process['stdout'][_0x8cf48b(0x15b)]||0x50;return Math[_0x8cf48b(0x199)](0x28,Math[_0x8cf48b(0x164)](_0x130ed4,0x50));}export function divider(){const _0xfa42f2=_0xd2f551,_0x59a1c8={'dkwAF':function(_0x204f29){return _0x204f29();}};console[_0xfa42f2(0x18a)](style('─'[_0xfa42f2(0x18c)](_0x59a1c8[_0xfa42f2(0x174)](getDividerWidth)),ui[_0xfa42f2(0x185)]));}export function section(_0x4cdc2e){const _0xdf6385=_0xd2f551,_0x3930ea={'TWQSU':function(_0x315158,_0x3c8ded,_0x239206,_0x3d98e5,_0x3a74ae){return _0x315158(_0x3c8ded,_0x239206,_0x3d98e5,_0x3a74ae);}};console[_0xdf6385(0x18a)](),console['log'](_0x3930ea[_0xdf6385(0x173)](style,'\x20\x20'+_0x4cdc2e+'\x20\x20',ui[_0xdf6385(0x1a2)],ui['magenta'],ui[_0xdf6385(0x1a3)+'e'])),console['log']();}export function ok(_0x2f2eaf,_0x48c33c){const _0x41187a=_0xd2f551,_0x3da373={'aBvrR':function(_0x22730f,_0x4fa7c3,_0x4cec31,_0x31fa38){return _0x22730f(_0x4fa7c3,_0x4cec31,_0x31fa38);},'LDXJM':function(_0x5f46ea,_0x101dfd,_0x58bbfe,_0x472d99){return _0x5f46ea(_0x101dfd,_0x58bbfe,_0x472d99);},'LKbgN':function(_0x442fc7,_0x2dc5d6,_0x3c221c){return _0x442fc7(_0x2dc5d6,_0x3c221c);}},_0x373412=_0x3da373['aBvrR'](style,symbols[_0x41187a(0x17c)],ui[_0x41187a(0x163)],ui['bold'])+'\x20'+_0x3da373['LDXJM'](style,_0x2f2eaf,ui[_0x41187a(0x163)],ui[_0x41187a(0x1a2)]);return _0x48c33c?_0x373412+'\x20'+_0x3da373[_0x41187a(0x18d)](style,_0x48c33c,ui[_0x41187a(0x185)]):_0x373412;}export function warn(_0x26966b,_0x4bfeb8){const _0x22fe9b=_0xd2f551,_0x3171e6={'ILIsY':function(_0x1b6dde,_0x17ff4d,_0x1b7f9d,_0xe837f5){return _0x1b6dde(_0x17ff4d,_0x1b7f9d,_0xe837f5);},'zdfFV':function(_0x2853eb,_0x17e2a0,_0x3d1356,_0x207c06){return _0x2853eb(_0x17e2a0,_0x3d1356,_0x207c06);}},_0x274d92=_0x3171e6[_0x22fe9b(0x168)](style,symbols[_0x22fe9b(0x177)],ui[_0x22fe9b(0x16f)],ui[_0x22fe9b(0x1a2)])+'\x20'+_0x3171e6[_0x22fe9b(0x175)](style,_0x26966b,ui[_0x22fe9b(0x16f)],ui[_0x22fe9b(0x1a2)]);return _0x4bfeb8?_0x274d92+'\x20'+style(_0x4bfeb8,ui[_0x22fe9b(0x185)]):_0x274d92;}export function bad(_0x2fa3fa,_0x3a4255){const _0x3bc7ea=_0xd2f551,_0x2c5867={'Yuyga':function(_0x4b2e20,_0x52651b,_0x3458a9,_0x28fab8){return _0x4b2e20(_0x52651b,_0x3458a9,_0x28fab8);},'RMPIL':function(_0x3e576a,_0x1cf0cc,_0x392db1){return _0x3e576a(_0x1cf0cc,_0x392db1);}},_0x1e981c=style(symbols[_0x3bc7ea(0x19f)],ui['red'],ui[_0x3bc7ea(0x1a2)])+'\x20'+_0x2c5867[_0x3bc7ea(0x17b)](style,_0x2fa3fa,ui[_0x3bc7ea(0x16b)],ui['bold']);return _0x3a4255?_0x1e981c+'\x20'+_0x2c5867[_0x3bc7ea(0x1a6)](style,_0x3a4255,ui['gray']):_0x1e981c;}export function info(_0x2505a5,_0x4e449e){const _0x266a47=_0xd2f551,_0x48a414={'uwqDZ':function(_0x33c8d8,_0x82000c,_0x479942,_0x4ef581){return _0x33c8d8(_0x82000c,_0x479942,_0x4ef581);},'mWPMJ':function(_0x56460d,_0x46c162,_0x3a2737){return _0x56460d(_0x46c162,_0x3a2737);}},_0x23d4b4=_0x48a414[_0x266a47(0x18b)](style,symbols[_0x266a47(0x193)],ui[_0x266a47(0x1a8)],ui['bold'])+'\x20'+_0x48a414[_0x266a47(0x18b)](style,_0x2505a5,ui[_0x266a47(0x1a8)],ui[_0x266a47(0x1a2)]);return _0x4e449e?_0x23d4b4+'\x20'+_0x48a414[_0x266a47(0x1a5)](style,_0x4e449e,ui[_0x266a47(0x185)]):_0x23d4b4;}export function printKeyValues(_0x479232){const _0x757687=_0xd2f551,_0x5f403c={'TzVsD':function(_0x4d1270,_0x143794){return _0x4d1270===_0x143794;},'wEQkr':function(_0x94ee56,_0x1d69a0,_0x5af813){return _0x94ee56(_0x1d69a0,_0x5af813);}};if(_0x5f403c[_0x757687(0x187)](_0x479232[_0x757687(0x19a)],0x0))return;const _0x39eed4=_0x479232[_0x757687(0x181)]((_0x4b3b39,_0x1ecf86)=>Math[_0x757687(0x199)](_0x4b3b39,_0x1ecf86[_0x757687(0x17e)][_0x757687(0x19a)]),0x0);for(const _0x226dee of _0x479232){const _0x47632d=style(_0x226dee[_0x757687(0x17e)]['padEnd'](_0x39eed4),ui['gray'],ui[_0x757687(0x1a1)]);console[_0x757687(0x18a)]('\x20\x20'+_0x47632d+'\x20'+_0x5f403c[_0x757687(0x167)](style,symbols['arrow'],ui[_0x757687(0x185)])+'\x20'+style(_0x226dee[_0x757687(0x188)],ui[_0x757687(0x1a2)]));}}export function printList(_0x36cd07,_0x669cc8){const _0x10450d=_0xd2f551,_0xd812ce={'Cjzaq':function(_0x4d9d3c,_0x2fa1f5,_0x54cd6e,_0x1b6a5e){return _0x4d9d3c(_0x2fa1f5,_0x54cd6e,_0x1b6a5e);},'BXHfG':function(_0x210f25,_0x6e3e1b,_0x26b975,_0x36d69e){return _0x210f25(_0x6e3e1b,_0x26b975,_0x36d69e);},'hsgOm':function(_0xca9ae2,_0x334afb){return _0xca9ae2===_0x334afb;},'HahmJ':_0x10450d(0x179),'TCPOq':_0x10450d(0x16d),'RBUcS':function(_0x11856a,_0x1693f9,_0x1627b7,_0x39887c){return _0x11856a(_0x1693f9,_0x1627b7,_0x39887c);},'XXSaN':function(_0x592699,_0xb2e66b,_0x96f1c){return _0x592699(_0xb2e66b,_0x96f1c);}};console[_0x10450d(0x18a)](_0xd812ce[_0x10450d(0x16e)](style,_0x36cd07,ui['bold'],ui[_0x10450d(0x1a8)]));if(_0x669cc8['length']===0x0){if(_0xd812ce['hsgOm'](_0xd812ce[_0x10450d(0x16c)],_0xd812ce[_0x10450d(0x182)])){_0x563e06[_0x10450d(0x18a)]('\x20\x20'+_0xd812ce[_0x10450d(0x170)](_0x353614,_0x10450d(0x176),_0x52a18f['gray'],_0x5c1024[_0x10450d(0x1a1)]));return;}else{console[_0x10450d(0x18a)]('\x20\x20'+_0xd812ce['RBUcS'](style,'(none)',ui['gray'],ui['italic']));return;}}for(const _0x53393c of _0x669cc8){console['log']('\x20\x20'+_0xd812ce['XXSaN'](style,symbols[_0x10450d(0x189)],ui[_0x10450d(0x17d)])+'\x20'+_0x53393c);}}export function failAndExit(_0x5b9893){const _0x169717=_0xd2f551;console['error'](),console['error'](bad(_0x5b9893)),console[_0x169717(0x172)](),process[_0x169717(0x18e)](0x1);}export async function withProgress(_0x30d5b2,_0x53d7f7){const _0x51f0b6=_0xd2f551,_0x4086ba={'AegTG':function(_0x38d094,_0x363b73){return _0x38d094%_0x363b73;},'dsxoG':function(_0x4f526c,_0x41f1b0,_0xf8a98f){return _0x4f526c(_0x41f1b0,_0xf8a98f);},'SIXGe':function(_0x17f361,_0x1e180e){return _0x17f361(_0x1e180e);},'yHfYQ':_0x51f0b6(0x165),'XbEuQ':function(_0x5df3e2){return _0x5df3e2();},'WWltU':function(_0x3eb163){return _0x3eb163();},'PkwQa':function(_0x21ee6c,_0x270e45,_0x1c87d7){return _0x21ee6c(_0x270e45,_0x1c87d7);},'qTmBR':function(_0x1b968b){return _0x1b968b();},'gIohv':function(_0x14bb26,_0x1660a3){return _0x14bb26(_0x1660a3);},'pcpzw':_0x51f0b6(0x162),'Muqdq':function(_0x5d5de4,_0x297222){return _0x5d5de4(_0x297222);}};if(!process['stdout'][_0x51f0b6(0x191)])return console[_0x51f0b6(0x18a)](_0x30d5b2),_0x4086ba[_0x51f0b6(0x166)](_0x53d7f7);const _0x55e0e6=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x59fa08=0x0;const _0x4a7b55=()=>{const _0x3019c2=_0x51f0b6,_0x35d2cd=_0x55e0e6[_0x4086ba['AegTG'](_0x59fa08,_0x55e0e6['length'])];process['stdout']['write']('\x0d'+_0x4086ba[_0x3019c2(0x161)](style,_0x35d2cd,ui[_0x3019c2(0x17d)])+'\x20'+_0x4086ba[_0x3019c2(0x161)](style,_0x30d5b2,ui['gray'])),_0x59fa08+=0x1;};_0x4086ba['WWltU'](_0x4a7b55);const _0x4745ab=_0x4086ba[_0x51f0b6(0x169)](setInterval,_0x4a7b55,0x50);try{const _0x48cc3a=await _0x4086ba[_0x51f0b6(0x1a7)](_0x53d7f7);return clearInterval(_0x4745ab),process[_0x51f0b6(0x15e)][_0x51f0b6(0x17f)](_0x4086ba[_0x51f0b6(0x16a)]),console[_0x51f0b6(0x18a)](_0x4086ba[_0x51f0b6(0x1a4)](ok,_0x30d5b2)),_0x48cc3a;}catch(_0x492874){if(_0x4086ba[_0x51f0b6(0x183)]===_0x4086ba['pcpzw']){_0x4086ba[_0x51f0b6(0x1a4)](clearInterval,_0x4745ab),process[_0x51f0b6(0x15e)][_0x51f0b6(0x17f)](_0x4086ba[_0x51f0b6(0x16a)]),console[_0x51f0b6(0x18a)](_0x4086ba[_0x51f0b6(0x160)](bad,_0x30d5b2));throw _0x492874;}else{_0x4086ba[_0x51f0b6(0x195)](_0x2b0a7a,_0x4dda69),_0x4e3252[_0x51f0b6(0x15e)]['write'](_0x4086ba['yHfYQ']),_0x5916a1[_0x51f0b6(0x18a)](_0x53b0bc(_0x226d4c));throw _0x443ec3;}}}
@@ -1 +1 @@
1
- const _0xa794c2=_0x5837;(function(_0x198489,_0x53d287){const _0x4e050f=_0x5837,_0x2ef6d5=_0x198489();while(!![]){try{const _0x1492ab=parseInt(_0x4e050f(0x216))/0x1+parseInt(_0x4e050f(0x215))/0x2*(parseInt(_0x4e050f(0x1b8))/0x3)+parseInt(_0x4e050f(0x1d8))/0x4*(-parseInt(_0x4e050f(0x1cc))/0x5)+parseInt(_0x4e050f(0x1a9))/0x6*(-parseInt(_0x4e050f(0x1f1))/0x7)+parseInt(_0x4e050f(0x1f0))/0x8*(-parseInt(_0x4e050f(0x1b2))/0x9)+-parseInt(_0x4e050f(0x1fc))/0xa*(parseInt(_0x4e050f(0x1e2))/0xb)+parseInt(_0x4e050f(0x1c9))/0xc*(parseInt(_0x4e050f(0x1c4))/0xd);if(_0x1492ab===_0x53d287)break;else _0x2ef6d5['push'](_0x2ef6d5['shift']());}catch(_0x1ceffd){_0x2ef6d5['push'](_0x2ef6d5['shift']());}}}(_0x4b8a,0x8a89b));const _0x443be7=(function(){const _0x247a2f=_0x5837,_0x181de0={'yptAq':function(_0x6ecd4e,_0x13becc){return _0x6ecd4e===_0x13becc;},'yGfoJ':_0x247a2f(0x1b1)};let _0xaa5af=!![];return function(_0x3e92ea,_0x3a9459){const _0x117291=_0x247a2f;if(_0x181de0[_0x117291(0x1d2)]('kEShD',_0x181de0['yGfoJ']))return;else{const _0x39091e=_0xaa5af?function(){const _0xb288e3=_0x117291;if(_0x3a9459){const _0x48c0ec=_0x3a9459[_0xb288e3(0x1d9)](_0x3e92ea,arguments);return _0x3a9459=null,_0x48c0ec;}}:function(){};return _0xaa5af=![],_0x39091e;}};}()),_0x3bba56=_0x443be7(this,function(){const _0x1d7ef5=_0x5837,_0x43dc18={'bxlhB':_0x1d7ef5(0x20c)+_0x1d7ef5(0x1b0)};return _0x3bba56[_0x1d7ef5(0x1f9)]()['search'](_0x43dc18['bxlhB'])[_0x1d7ef5(0x1f9)]()[_0x1d7ef5(0x1df)+_0x1d7ef5(0x1a8)](_0x3bba56)[_0x1d7ef5(0x219)](_0x43dc18[_0x1d7ef5(0x1d6)]);});_0x3bba56();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0xa794c2(0x1cd)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x16758b){const _0x447cdf=_0xa794c2,_0x29ebb7={'onGVl':function(_0x20a6b3,_0x2b89b0){return _0x20a6b3(_0x2b89b0);},'alsTP':function(_0x1ae8ae,_0x1eacbb){return _0x1ae8ae(_0x1eacbb);},'oVWZd':function(_0x270219,_0x237ba4){return _0x270219===_0x237ba4;},'OArUR':'install','aQJpp':_0x447cdf(0x209),'YPjqc':_0x447cdf(0x21c),'hGFmj':function(_0x29029e,_0x533a84){return _0x29029e===_0x533a84;},'jlAQS':function(_0xe40746,_0x2f42bd){return _0xe40746(_0x2f42bd);},'KKfpH':function(_0x3be730){return _0x3be730();},'WgrGS':function(_0x20f4d3,_0x1ff2ec){return _0x20f4d3-_0x1ff2ec;},'cnsmj':_0x447cdf(0x1c3),'cLRrS':_0x447cdf(0x1c8),'ccVzV':_0x447cdf(0x1ab),'xvSyT':_0x447cdf(0x1cb)+'AILED'};if(_0x29ebb7[_0x447cdf(0x1c6)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1'))return;if(!_0x29ebb7[_0x447cdf(0x1ba)](shouldCheckForUpdates,_0x16758b)){if(_0x29ebb7[_0x447cdf(0x1c6)]('VYmvr','VYmvr'))return;else{const _0x3a9324={'vBchZ':function(_0x1f9ca7,_0x4e9d5a){return _0x1f9ca7(_0x4e9d5a);},'piWPB':function(_0x26c983,_0x42bca2){return _0x26c983(_0x42bca2);},'RUXXm':function(_0x497b51,_0x471453){const _0x5d2bf0=_0x447cdf;return _0x29ebb7[_0x5d2bf0(0x211)](_0x497b51,_0x471453);},'QQsvc':function(_0x6acc4,_0x5e3403){const _0x1f00dc=_0x447cdf;return _0x29ebb7[_0x1f00dc(0x21b)](_0x6acc4,_0x5e3403);}},_0x232334=_0x13ad07(_0x3778dc,[_0x29ebb7['OArUR'],'-g',_0x5f2558+_0x447cdf(0x1e1)],{'stdio':_0x29ebb7[_0x447cdf(0x1ca)]}),_0x595c5c=_0x2c92df(()=>{const _0x370cc5=_0x447cdf;_0x232334[_0x370cc5(0x1c0)](),_0x29ebb7[_0x370cc5(0x1f7)](_0x277115,![]);},_0x3994f5);_0x232334['on'](_0x29ebb7['YPjqc'],()=>{const _0xc84c51=_0x447cdf;_0x3a9324[_0xc84c51(0x200)](_0x359032,_0x595c5c),_0x3a9324['piWPB'](_0x3bd31e,![]);}),_0x232334['on'](_0x447cdf(0x1fa),_0x478784=>{const _0x36659c=_0x447cdf;_0x3a9324['vBchZ'](_0x27c30c,_0x595c5c),_0x3a9324[_0x36659c(0x1b7)](_0x21803c,_0x3a9324['QQsvc'](_0x478784,0x0));});}}const _0x1f125c=_0x29ebb7[_0x447cdf(0x1ae)](readCache),_0x1c256a=Date[_0x447cdf(0x1c7)]();if(_0x1f125c[_0x447cdf(0x21d)+'kedAt']&&_0x29ebb7[_0x447cdf(0x1aa)](_0x1c256a,_0x1f125c[_0x447cdf(0x21d)+_0x447cdf(0x1d0)])<CHECK_INTERVAL_MS)return;writeCache({'lastCheckedAt':_0x1c256a});const _0x254a36=await _0x29ebb7[_0x447cdf(0x1ae)](fetchLatestVersion);if(!_0x254a36)return;const _0x11792c=_0x29ebb7[_0x447cdf(0x1ae)](getCliVersion);if(!isVersionLower(_0x11792c,_0x254a36)){if(_0x447cdf(0x1a6)!==_0x29ebb7[_0x447cdf(0x1de)])return;else return!![];}console['log'](_0x29ebb7['jlAQS'](warn,_0x29ebb7['cLRrS'])+(_0x447cdf(0x20b)+_0x447cdf(0x207)+_0x447cdf(0x1e0))+_0x11792c+_0x447cdf(0x1f4)+_0x254a36+(_0x447cdf(0x1da)+_0x447cdf(0x1d7)+_0x447cdf(0x1dc)));const _0x1f2e9a=await runGlobalUpdate();_0x1f2e9a?console['log'](ok(_0x29ebb7[_0x447cdf(0x1f3)])+(_0x447cdf(0x218)+_0x447cdf(0x217)+'\x20')+_0x254a36+'.'):console[_0x447cdf(0x1d3)](_0x29ebb7[_0x447cdf(0x1ba)](bad,_0x29ebb7[_0x447cdf(0x1a2)])+(_0x447cdf(0x210)+_0x447cdf(0x1e9)+_0x447cdf(0x1a3))+PACKAGE_NAME+_0x447cdf(0x1e1));}function _0x5837(_0x262ff7,_0x3c9ea9){_0x262ff7=_0x262ff7-0x1a0;const _0x4a5aa7=_0x4b8a();let _0x3bba56=_0x4a5aa7[_0x262ff7];return _0x3bba56;}function shouldCheckForUpdates(_0x21b66b){const _0x5cbb0c=_0xa794c2,_0x25792c={'WWDMJ':function(_0x2bdf45,_0x13da2e){return _0x2bdf45<=_0x13da2e;},'vKgMi':_0x5cbb0c(0x1cf)+'n','UVBpD':function(_0x14bdb3,_0x573c94){return _0x14bdb3!==_0x573c94;},'WNnDU':_0x5cbb0c(0x1dd),'rqQBT':function(_0x14f1e4,_0x264f78){return _0x14f1e4!==_0x264f78;},'fUAqT':_0x5cbb0c(0x1db)};if(_0x25792c[_0x5cbb0c(0x1bf)](_0x21b66b[_0x5cbb0c(0x205)],0x2))return!![];const _0x43e223=_0x21b66b['slice'](0x2);if(_0x43e223[_0x5cbb0c(0x1bb)]('-h')||_0x43e223[_0x5cbb0c(0x1bb)](_0x5cbb0c(0x1a7))||_0x43e223[_0x5cbb0c(0x1bb)]('-v')||_0x43e223[_0x5cbb0c(0x1bb)](_0x25792c[_0x5cbb0c(0x1fe)]))return![];const _0x160158=_0x43e223[_0x5cbb0c(0x202)](_0x46a85e=>!_0x46a85e[_0x5cbb0c(0x1e7)+'th']('-'));if(!_0x160158)return![];return _0x25792c['UVBpD'](_0x160158,_0x25792c[_0x5cbb0c(0x1eb)])&&_0x25792c[_0x5cbb0c(0x1ef)](_0x160158,_0x25792c['fUAqT']);}async function fetchLatestVersion(){const _0x2a7954=_0xa794c2,_0xcd5a34={'etCLH':function(_0x168c0d,_0x1e119e,_0xab2e1a){return _0x168c0d(_0x1e119e,_0xab2e1a);},'NNfVQ':function(_0x5ba3bf,_0x464d17,_0x3cb80c){return _0x5ba3bf(_0x464d17,_0x3cb80c);},'RqMSN':function(_0x803466,_0x18c72c){return _0x803466===_0x18c72c;},'iuGhj':'string','xeZpO':function(_0x484148,_0x25cf39){return _0x484148!==_0x25cf39;},'gFLjY':_0x2a7954(0x1fd)},_0x183191=new AbortController(),_0x43da58=_0xcd5a34[_0x2a7954(0x1b9)](setTimeout,()=>_0x183191[_0x2a7954(0x1ac)](),CHECK_TIMEOUT_MS);try{const _0x817668=await _0xcd5a34['NNfVQ'](fetch,'https://'+'registry'+_0x2a7954(0x214)+_0x2a7954(0x1d5)+PACKAGE_NAME+'/latest',{'signal':_0x183191[_0x2a7954(0x1fb)]});if(!_0x817668['ok'])return null;const _0x5e52fc=await _0x817668[_0x2a7954(0x20e)]();return _0xcd5a34[_0x2a7954(0x1ce)](typeof _0x5e52fc[_0x2a7954(0x1e8)],_0xcd5a34[_0x2a7954(0x1e3)])?_0x5e52fc[_0x2a7954(0x1e8)]:null;}catch{return null;}finally{if(_0xcd5a34[_0x2a7954(0x1c5)](_0xcd5a34[_0x2a7954(0x1b6)],_0x2a7954(0x206)))clearTimeout(_0x43da58);else return![];}}async function runGlobalUpdate(){const _0x1df115=_0xa794c2,_0x1066e2={'hOegs':function(_0x2ed050,_0x3def6a){return _0x2ed050(_0x3def6a);},'bfeKY':function(_0x1ae4ab,_0x1c80bb,_0x160a7d,_0x4df39c){return _0x1ae4ab(_0x1c80bb,_0x160a7d,_0x4df39c);},'lJbJD':'ignore','CCFVZ':_0x1df115(0x21c),'HaEpl':'exit','dNenl':function(_0x4d703d,_0x4ccbe4){return _0x4d703d===_0x4ccbe4;},'isIoq':_0x1df115(0x1e4),'myHbe':'npm.cmd','KIdJL':'npm'},_0x5f12df=_0x1066e2['dNenl'](process[_0x1df115(0x1ed)],_0x1066e2[_0x1df115(0x20a)])?_0x1066e2[_0x1df115(0x1ec)]:_0x1066e2[_0x1df115(0x21a)];return new Promise(_0x12f7b1=>{const _0x22d64a=_0x1df115,_0x55a04a={'pwwIO':function(_0x16a7cc,_0x181b7f){return _0x1066e2['hOegs'](_0x16a7cc,_0x181b7f);}};try{const _0x4b85dd=_0x1066e2[_0x22d64a(0x213)](spawn,_0x5f12df,[_0x22d64a(0x208),'-g',PACKAGE_NAME+'@latest'],{'stdio':_0x1066e2[_0x22d64a(0x1bd)]}),_0x101997=setTimeout(()=>{const _0x3a49e7=_0x22d64a;_0x4b85dd[_0x3a49e7(0x1c0)](),_0x12f7b1(![]);},UPDATE_TIMEOUT_MS);_0x4b85dd['on'](_0x1066e2[_0x22d64a(0x1ff)],()=>{clearTimeout(_0x101997),_0x12f7b1(![]);}),_0x4b85dd['on'](_0x1066e2[_0x22d64a(0x1ad)],_0x19381f=>{const _0x4688e4=_0x22d64a;_0x55a04a['pwwIO'](clearTimeout,_0x101997),_0x55a04a[_0x4688e4(0x1c2)](_0x12f7b1,_0x19381f===0x0);});}catch{_0x1066e2['hOegs'](_0x12f7b1,![]);}});}function getCachePath(){const _0x2228cd=_0xa794c2,_0x55b178={'EAouI':function(_0x317214,_0x3fee47,_0x59e49d){return _0x317214(_0x3fee47,_0x59e49d);},'zSMOm':function(_0x4d4c18,_0x4b7e73){return _0x4d4c18(_0x4b7e73);},'OvFGh':function(_0x32dd16){return _0x32dd16();},'cCpaY':'update-c'+_0x2228cd(0x204)+'n'};return _0x55b178[_0x2228cd(0x1f5)](join,_0x55b178[_0x2228cd(0x1f6)](dirname,_0x55b178[_0x2228cd(0x1e5)](getGlobalEnvPath)),_0x55b178[_0x2228cd(0x201)]);}function _0x4b8a(){const _0x1f093e=['signal','10768470MWXdig','WZofT','vKgMi','CCFVZ','vBchZ','cCpaY','find','vWYoP','heck.jso','length','QdCyG','sion\x20det','install','ignore','isIoq','\x20New\x20ver','(((.+)+)','stringif','json','JOeSa','\x20Run\x20man','alsTP','hWXka','bfeKY','.npmjs.o','18dRptSg','1118078ynRBIi','s\x20now\x20on','\x20gemit\x20i','search','KIdJL','oVWZd','error','lastChec','rXbGa','iBVaa','xvSyT','pm\x20i\x20-g\x20','AkuTZ','isFinite','jPEkI','--help','tor','2886tWYuXf','WgrGS','UPDATED','abort','HaEpl','KKfpH','JytFV','+)+$','Dmddv','803610Vstyso','VhGxp','trim','frApV','gFLjY','RUXXm','374757slBlAQ','etCLH','jlAQS','includes','CbOIb','lJbJD','replace','WWDMJ','kill','eAJJB','pwwIO','DRLYK','299mrxXXY','xeZpO','hGFmj','now','UPDATE','115308KsYsMv','aQJpp','UPDATE\x20F','65zezBzt','gemit-cl','RqMSN','--versio','kedAt','humaE','yptAq','log','bnfLF','rg/','bxlhB','ing\x20gemi','178516DdLbTx','apply',').\x20Updat','doctor','t...','init','cnsmj','construc','ected\x20(','@latest','11fyUoPn','iuGhj','win32','OvFGh','NEqCx','startsWi','version','ually:\x20n','split','WNnDU','myHbe','platform','KBfUb','rqQBT','8bNOiAx','2177GCuPSP','utf8','ccVzV','\x20->\x20','EAouI','zSMOm','onGVl','Iazhh','toString','exit'];_0x4b8a=function(){return _0x1f093e;};return _0x4b8a();}function readCache(){const _0x4006a6=_0xa794c2,_0x2bdc0c={'CbOIb':function(_0x2ee5ee,_0xb25618,_0x238284){return _0x2ee5ee(_0xb25618,_0x238284);},'QZdgc':function(_0x3ec2b6){return _0x3ec2b6();},'KBfUb':_0x4006a6(0x1f2),'hWXka':function(_0x1564bb,_0x4a723c){return _0x1564bb===_0x4a723c;}};try{const _0x433fe0=_0x2bdc0c[_0x4006a6(0x1bc)](readFileSync,_0x2bdc0c['QZdgc'](getCachePath),_0x2bdc0c[_0x4006a6(0x1ee)]),_0x19b795=JSON['parse'](_0x433fe0);return _0x19b795&&_0x2bdc0c[_0x4006a6(0x212)](typeof _0x19b795,'object')?_0x19b795:{};}catch{return{};}}function writeCache(_0x4b5bc2){const _0x141886=_0xa794c2,_0x57462f={'vWYoP':function(_0x10d42f,_0x134988,_0x481dae){return _0x10d42f(_0x134988,_0x481dae);},'JOeSa':function(_0x1d35f4,_0x240283){return _0x1d35f4(_0x240283);},'AkuTZ':function(_0x311374,_0x5179b6,_0x326c68,_0x3892e6){return _0x311374(_0x5179b6,_0x326c68,_0x3892e6);},'iBVaa':_0x141886(0x1f2)};try{const _0x412502=getCachePath();_0x57462f[_0x141886(0x203)](mkdirSync,_0x57462f[_0x141886(0x20f)](dirname,_0x412502),{'recursive':!![]}),_0x57462f[_0x141886(0x1a4)](writeFileSync,_0x412502,JSON[_0x141886(0x20d)+'y'](_0x4b5bc2),_0x57462f[_0x141886(0x1a1)]);}catch{}}function isVersionLower(_0x18af53,_0x5e2145){const _0x7e05c9=_0xa794c2,_0x4b3f45={'bnfLF':function(_0xd84c55,_0x5871e1){return _0xd84c55(_0x5871e1);},'JytFV':'UPDATED','VhGxp':function(_0x5da807,_0x320cf7){return _0x5da807||_0x320cf7;},'fEQge':function(_0x470724,_0x353eb6){return _0x470724===_0x353eb6;},'eAJJB':_0x7e05c9(0x1b5),'Iazhh':function(_0x3329be,_0xe48609){return _0x3329be<_0xe48609;},'NEqCx':function(_0x45ef44,_0x2b8675){return _0x45ef44>_0x2b8675;}},_0x285396=_0x4b3f45[_0x7e05c9(0x1d4)](normalizeVersion,_0x18af53),_0x4c1e78=_0x4b3f45['bnfLF'](normalizeVersion,_0x5e2145);if(_0x4b3f45[_0x7e05c9(0x1b3)](!_0x285396,!_0x4c1e78))return![];for(let _0x213e72=0x0;_0x213e72<0x3;_0x213e72+=0x1){if(_0x4b3f45['fEQge'](_0x4b3f45[_0x7e05c9(0x1c1)],_0x4b3f45[_0x7e05c9(0x1c1)])){if(_0x4b3f45[_0x7e05c9(0x1f8)](_0x285396[_0x213e72],_0x4c1e78[_0x213e72]))return!![];if(_0x4b3f45[_0x7e05c9(0x1e6)](_0x285396[_0x213e72],_0x4c1e78[_0x213e72]))return![];}else _0x4b85a8[_0x7e05c9(0x1d3)](awtMMQ[_0x7e05c9(0x1d4)](_0x4d4a0e,awtMMQ[_0x7e05c9(0x1af)])+('\x20gemit\x20i'+_0x7e05c9(0x217)+'\x20')+_0x1e851b+'.');}return![];}function normalizeVersion(_0x353f8a){const _0x27bb27=_0xa794c2,_0xdcec4c={'rXbGa':function(_0x382ed5,_0x34e08e){return _0x382ed5<_0x34e08e;},'humaE':function(_0x520213,_0xec04f8){return _0x520213(_0xec04f8);}},_0x1e3e48=_0x353f8a[_0x27bb27(0x1b4)]()[_0x27bb27(0x1be)](/^v/i,'')[_0x27bb27(0x1ea)]('-')[0x0],_0x1a4293=_0x1e3e48['split']('.');if(_0xdcec4c[_0x27bb27(0x1a0)](_0x1a4293[_0x27bb27(0x205)],0x3))return null;const _0x593c9b=_0xdcec4c[_0x27bb27(0x1d1)](Number,_0x1a4293[0x0]),_0x1cd53d=Number(_0x1a4293[0x1]),_0xebc88f=Number(_0x1a4293[0x2]);if(!Number[_0x27bb27(0x1a5)](_0x593c9b)||!Number[_0x27bb27(0x1a5)](_0x1cd53d)||!Number[_0x27bb27(0x1a5)](_0xebc88f))return null;return[_0x593c9b,_0x1cd53d,_0xebc88f];}
1
+ const _0x76a790=_0x2c16;(function(_0x327e5c,_0x27dcdc){const _0x4bf043=_0x2c16,_0x7b3fce=_0x327e5c();while(!![]){try{const _0x5a4b5c=parseInt(_0x4bf043(0x1e8))/0x1*(parseInt(_0x4bf043(0x1fa))/0x2)+-parseInt(_0x4bf043(0x218))/0x3+-parseInt(_0x4bf043(0x208))/0x4*(-parseInt(_0x4bf043(0x1ed))/0x5)+-parseInt(_0x4bf043(0x20a))/0x6*(-parseInt(_0x4bf043(0x1ca))/0x7)+parseInt(_0x4bf043(0x223))/0x8*(-parseInt(_0x4bf043(0x1dd))/0x9)+-parseInt(_0x4bf043(0x1df))/0xa*(parseInt(_0x4bf043(0x21a))/0xb)+parseInt(_0x4bf043(0x1c4))/0xc;if(_0x5a4b5c===_0x27dcdc)break;else _0x7b3fce['push'](_0x7b3fce['shift']());}catch(_0x50130f){_0x7b3fce['push'](_0x7b3fce['shift']());}}}(_0x5d5c,0xf17c6));const _0xfb7376=(function(){let _0x2afc1a=!![];return function(_0x23f2aa,_0x1787cc){const _0x300bf2=_0x2afc1a?function(){if(_0x1787cc){const _0x2d3b1a=_0x1787cc['apply'](_0x23f2aa,arguments);return _0x1787cc=null,_0x2d3b1a;}}:function(){};return _0x2afc1a=![],_0x300bf2;};}()),_0x4f7633=_0xfb7376(this,function(){const _0x19d1e3=_0x2c16;return _0x4f7633[_0x19d1e3(0x1d2)]()['search']('(((.+)+)'+'+)+$')[_0x19d1e3(0x1d2)]()[_0x19d1e3(0x210)+_0x19d1e3(0x1ac)](_0x4f7633)[_0x19d1e3(0x217)](_0x19d1e3(0x1a2)+'+)+$');});function _0x2c16(_0x488bbc,_0x3cb79e){_0x488bbc=_0x488bbc-0x1a0;const _0x21a906=_0x5d5c();let _0x4f7633=_0x21a906[_0x488bbc];return _0x4f7633;}_0x4f7633();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=_0x76a790(0x215)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;function _0x5d5c(){const _0x4ea850=['gemit\x20is','nBTZb','BDqFg','JciHd','utf8','16auePDh','NTeRI','1484196ydySYM','doctor','WjLTQ','FXLWE','startsWi','split','construc','indow\x20wa','gNJtF','m\x20i\x20-g\x20','bRELp','gemit-cl','ssqYI','search','3193212hdyxpO','rPUSo','2486oxTxoS','cmd.exe','/latest','uRvQk','CrTOo','pibFc','hEXTa','isFinite','lGKLj','10165960sZRXlj','YddhA','Txjco','log','stringif','ICLYY','pEmTz','s\x20opened','json','parse','npm','slice','UPDATE','WZrqJ','(((.+)+)','A\x20new\x20te','tJkuc','OkEtC','heck.jso','KoylA','AILED','\x20install','abort','kedAt','tor','\x20->\x20','WrvYL','lastChec','string','trim','length','New\x20vers','TrmRm','XXiXy','YHkGB','wlvUL','ing\x20gemi','version','UPDATE\x20F','NsdLj','ait\x20for\x20','.npmjs.o','rminal\x20w','nish\x20bef','dcMDJ','te\x20to\x20fi','epACP','iHmqZ','135024gDvTEc','dZToW','@latest','HcYFj','hXdPh','unref','49LlfqcZ','LUSzl','rkQAB','OEmxF','ore\x20runn','\x20-g\x20','vdHfK','Run\x20manu','toString','aBscN','yeBWX','cted\x20(','win32','update.','hwtmn','UgUJs','mpaab','evqiC','[Update\x20','9srBDJf','zzhHy','15270Rklyak','t\x20again.','ieDYx','find','exit','MLLfd','mfAlY','jmUdi','jVQtb','1GTHalh','\x20&\x20echo\x20','Please\x20w','lwskT','RWsCV','1943400bnBoKB','error','FXjkI','now','replace','ally:\x20np','kNVdZ','yKBom','hxQuL','detached','hljRa','fuHEn','includes','743686XTUNCX','registry','signal','\x20&\x20echo.','kill','qrbox','npm.cmd','MWePm','\x20now\x20on\x20'];_0x5d5c=function(){return _0x4ea850;};return _0x5d5c();}export async function maybeAutoUpdate(_0x25b83e){const _0x56fffa=_0x76a790,_0x2e5838={'TrmRm':function(_0x10e2fd,_0x34c116,_0x4c4d29){return _0x10e2fd(_0x34c116,_0x4c4d29);},'ssqYI':function(_0x12f4f9,_0x1313e8){return _0x12f4f9===_0x1313e8;},'lGKLj':function(_0x4aacf3,_0xc24ad0){return _0x4aacf3(_0xc24ad0);},'bRELp':function(_0x389096,_0x542c35){return _0x389096<_0x542c35;},'WrvYL':function(_0x34e6d1,_0x1fc973){return _0x34e6d1-_0x1fc973;},'WGhng':function(_0x872d0e,_0x12f944){return _0x872d0e===_0x12f944;},'bUasG':_0x56fffa(0x1da),'hwtmn':function(_0x4ea301){return _0x4ea301();},'mfAlY':function(_0x4a365a){return _0x4a365a();},'KoylA':function(_0x2f4a69,_0x1b4c79,_0x549221){return _0x2f4a69(_0x1b4c79,_0x549221);},'OkEtC':function(_0xf35f73,_0x292f39,_0x29f439){return _0xf35f73(_0x292f39,_0x29f439);},'kNVdZ':_0x56fffa(0x1a0),'lwskT':_0x56fffa(0x1f6),'yKBom':_0x56fffa(0x20d),'WZrqJ':'UPDATE\x20S'+'TARTED','iHmqZ':_0x56fffa(0x1a3)+_0x56fffa(0x1be)+_0x56fffa(0x211)+_0x56fffa(0x22a)+'\x20to\x20perf'+'orm\x20the\x20'+_0x56fffa(0x1d7),'MWePm':'WAIT','bAmrU':function(_0x191437,_0x44fd9f,_0x591b19){return _0x191437(_0x44fd9f,_0x591b19);},'YddhA':_0x56fffa(0x1ba)+_0x56fffa(0x1a8)};if(_0x2e5838[_0x56fffa(0x216)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1'))return;if(!_0x2e5838[_0x56fffa(0x222)](shouldCheckForUpdates,_0x25b83e))return;const _0x3a2d39=readCache(),_0x54a5c3=Date[_0x56fffa(0x1f0)]();if(_0x3a2d39[_0x56fffa(0x1af)+_0x56fffa(0x1ab)]&&_0x2e5838[_0x56fffa(0x214)](_0x2e5838[_0x56fffa(0x1ae)](_0x54a5c3,_0x3a2d39[_0x56fffa(0x1af)+_0x56fffa(0x1ab)]),CHECK_INTERVAL_MS)){if(_0x2e5838['WGhng'](_0x56fffa(0x1da),_0x2e5838['bUasG']))return;else _0xc0a6f3[_0x56fffa(0x226)](_0x2e5838[_0x56fffa(0x1b4)](_0x493f0e,_0x56fffa(0x1ba)+_0x56fffa(0x1a8),_0x56fffa(0x1d1)+_0x56fffa(0x1f2)+_0x56fffa(0x213)+_0x4ae14d+'@latest'));}_0x2e5838[_0x56fffa(0x222)](writeCache,{'lastCheckedAt':_0x54a5c3});const _0x273720=await _0x2e5838[_0x56fffa(0x1d8)](fetchLatestVersion);if(!_0x273720)return;const _0xe7db64=_0x2e5838[_0x56fffa(0x1e5)](getCliVersion);if(!_0x2e5838['KoylA'](isVersionLower,_0xe7db64,_0x273720))return;console['log'](_0x2e5838['OkEtC'](warn,_0x2e5838[_0x56fffa(0x1f3)],_0x56fffa(0x1b3)+'ion\x20dete'+_0x56fffa(0x1d5)+_0xe7db64+_0x56fffa(0x1ad)+_0x273720+').'));const _0x1eca75=await _0x2e5838[_0x56fffa(0x1e5)](runGlobalUpdate);if(_0x1eca75===_0x2e5838[_0x56fffa(0x1eb)]){if(_0x2e5838[_0x56fffa(0x1f4)]!==_0x56fffa(0x20d))return!![];else console[_0x56fffa(0x226)](_0x2e5838[_0x56fffa(0x1a5)](ok,_0x2e5838[_0x56fffa(0x1a1)],_0x2e5838[_0x56fffa(0x1c3)])),console[_0x56fffa(0x226)](_0x2e5838[_0x56fffa(0x1a7)](warn,_0x2e5838[_0x56fffa(0x201)],_0x56fffa(0x1ea)+_0x56fffa(0x1bc)+'the\x20upda'+_0x56fffa(0x1c1)+_0x56fffa(0x1bf)+_0x56fffa(0x1ce)+_0x56fffa(0x1b8)+_0x56fffa(0x1e0)));}else _0x1eca75?console['log'](_0x2e5838['bAmrU'](ok,'UPDATED',_0x56fffa(0x203)+_0x56fffa(0x202)+_0x273720+'.')):console[_0x56fffa(0x226)](bad(_0x2e5838[_0x56fffa(0x224)],_0x56fffa(0x1d1)+_0x56fffa(0x1f2)+_0x56fffa(0x213)+PACKAGE_NAME+'@latest'));}function shouldCheckForUpdates(_0x1911f4){const _0x148d7b=_0x76a790,_0x1d9880={'pibFc':function(_0x1e1396,_0x2be3c7){return _0x1e1396<=_0x2be3c7;},'HcYFj':'--help','FBxfu':'init','dZToW':function(_0x59f2da,_0x1d1627){return _0x59f2da!==_0x1d1627;}};if(_0x1d9880[_0x148d7b(0x21f)](_0x1911f4[_0x148d7b(0x1b2)],0x2))return!![];const _0x1d0c0d=_0x1911f4[_0x148d7b(0x22e)](0x2);if(_0x1d0c0d[_0x148d7b(0x1f9)]('-h')||_0x1d0c0d['includes'](_0x1d9880[_0x148d7b(0x1c7)])||_0x1d0c0d[_0x148d7b(0x1f9)]('-v')||_0x1d0c0d[_0x148d7b(0x1f9)]('--versio'+'n'))return![];const _0x178749=_0x1d0c0d[_0x148d7b(0x1e2)](_0x335dca=>!_0x335dca[_0x148d7b(0x20e)+'th']('-'));if(!_0x178749)return![];return _0x178749!==_0x1d9880['FBxfu']&&_0x1d9880[_0x148d7b(0x1c5)](_0x178749,_0x148d7b(0x20b));}async function fetchLatestVersion(){const _0xa35600=_0x76a790,_0x13f9bf={'gNJtF':function(_0x29d83f,_0x5a8e27,_0x5d8875){return _0x29d83f(_0x5a8e27,_0x5d8875);},'OEmxF':function(_0x3d8711,_0x638b7a,_0x3c9512){return _0x3d8711(_0x638b7a,_0x3c9512);},'epACP':function(_0x1bdc67,_0x216e27){return _0x1bdc67===_0x216e27;},'qrbox':_0xa35600(0x1b0),'UgUJs':function(_0x2b7c26,_0x24402e){return _0x2b7c26(_0x24402e);}},_0x8ce52b=new AbortController(),_0x1088d5=_0x13f9bf[_0xa35600(0x212)](setTimeout,()=>_0x8ce52b[_0xa35600(0x1aa)](),CHECK_TIMEOUT_MS);try{const _0x2da831=await _0x13f9bf[_0xa35600(0x1cd)](fetch,'https://'+_0xa35600(0x1fb)+_0xa35600(0x1bd)+'rg/'+PACKAGE_NAME+_0xa35600(0x21c),{'signal':_0x8ce52b[_0xa35600(0x1fc)]});if(!_0x2da831['ok'])return null;const _0x35194d=await _0x2da831[_0xa35600(0x22b)]();return _0x13f9bf[_0xa35600(0x1c2)](typeof _0x35194d[_0xa35600(0x1b9)],_0x13f9bf[_0xa35600(0x1ff)])?_0x35194d[_0xa35600(0x1b9)]:null;}catch{return null;}finally{_0x13f9bf[_0xa35600(0x1d9)](clearTimeout,_0x1088d5);}}async function runGlobalUpdate(){const _0x4c0ded=_0x76a790,_0x545f6b={'dcMDJ':function(_0x476808,_0x28e3b8){return _0x476808(_0x28e3b8);},'wlvUL':function(_0x3b3242,_0x3c7a5c){return _0x3b3242===_0x3c7a5c;},'kFBoL':function(_0x3bcf47,_0x3cceaf){return _0x3bcf47!==_0x3cceaf;},'LUSzl':_0x4c0ded(0x1d3),'BDqFg':function(_0xfd052d,_0x43559a,_0x4d9729,_0x2f3ffe){return _0xfd052d(_0x43559a,_0x4d9729,_0x2f3ffe);},'FXjkI':_0x4c0ded(0x22d),'jVQtb':'install','pEmTz':'ignore','Txjco':_0x4c0ded(0x1ee),'ICLYY':function(_0x4ab094,_0x437ec){return _0x4ab094(_0x437ec);},'hxQuL':_0x4c0ded(0x1d6),'WjLTQ':_0x4c0ded(0x1cc),'HLWyQ':_0x4c0ded(0x200),'fuHEn':_0x4c0ded(0x21b),'jmUdi':'start'};if(process['platform']===_0x545f6b[_0x4c0ded(0x1f5)]){if(_0x545f6b[_0x4c0ded(0x1b7)](_0x4c0ded(0x1b6),_0x545f6b[_0x4c0ded(0x20c)]))_0x545f6b['dcMDJ'](_0x3cb148,_0x137b31),_0x545f6b[_0x4c0ded(0x1c0)](_0x145e63,_0x545f6b[_0x4c0ded(0x1b7)](_0x468b6c,0x0));else try{const _0x2a6dbf=_0x545f6b['HLWyQ'],_0x40b001=_0x2a6dbf+(_0x4c0ded(0x1a9)+_0x4c0ded(0x1cf))+PACKAGE_NAME+_0x4c0ded(0x1c6),_0x50b552=_0x40b001+(_0x4c0ded(0x1fd)+_0x4c0ded(0x1e9)+_0x4c0ded(0x1dc)+'Finished'+']\x20&\x20paus'+'e');return _0x545f6b[_0x4c0ded(0x205)](spawn,_0x545f6b[_0x4c0ded(0x1f8)],['/c',_0x545f6b[_0x4c0ded(0x1e6)],_0x545f6b['fuHEn'],'/c',_0x50b552],{'detached':!![],'stdio':_0x545f6b[_0x4c0ded(0x229)]})[_0x4c0ded(0x1c9)](),_0x4c0ded(0x1f6);}catch{return![];}}return new Promise(_0x38faaf=>{const _0xf25618=_0x4c0ded,_0x5cfe0a={'XXiXy':function(_0x12b143,_0x3dfeef){return _0x12b143(_0x3dfeef);},'yeBWX':function(_0x52aaae,_0x1c83e3){return _0x545f6b['dcMDJ'](_0x52aaae,_0x1c83e3);},'JciHd':function(_0x1aa882,_0x534ee2){const _0x2a2bd0=_0x2c16;return _0x545f6b[_0x2a2bd0(0x1c0)](_0x1aa882,_0x534ee2);},'rPUSo':function(_0x16deb7,_0x4f7140){const _0x5e79eb=_0x2c16;return _0x545f6b[_0x5e79eb(0x1b7)](_0x16deb7,_0x4f7140);}};try{if(_0x545f6b['kFBoL'](_0x545f6b[_0xf25618(0x1cb)],_0xf25618(0x1d3)))return!![];else{const _0x33fbe1=_0x545f6b[_0xf25618(0x205)](spawn,_0x545f6b[_0xf25618(0x1ef)],[_0x545f6b[_0xf25618(0x1e7)],'-g',PACKAGE_NAME+_0xf25618(0x1c6)],{'stdio':_0x545f6b[_0xf25618(0x229)]}),_0x476dfd=setTimeout(()=>{const _0x5ec4f5=_0xf25618;_0x33fbe1[_0x5ec4f5(0x1fe)](),_0x5cfe0a['XXiXy'](_0x38faaf,![]);},UPDATE_TIMEOUT_MS);_0x33fbe1['on'](_0x545f6b[_0xf25618(0x225)],()=>{const _0x55d347=_0xf25618;clearTimeout(_0x476dfd),_0x5cfe0a[_0x55d347(0x1d4)](_0x38faaf,![]);}),_0x33fbe1['on'](_0xf25618(0x1e3),_0x2e9428=>{const _0x3d1003=_0xf25618;_0x5cfe0a[_0x3d1003(0x1b5)](clearTimeout,_0x476dfd),_0x5cfe0a[_0x3d1003(0x206)](_0x38faaf,_0x5cfe0a[_0x3d1003(0x219)](_0x2e9428,0x0));});}}catch{_0x545f6b[_0xf25618(0x228)](_0x38faaf,![]);}});}function getCachePath(){const _0x163370=_0x76a790,_0x165377={'aAYzy':function(_0xdd29cf,_0x46dea8,_0x3a4ebd){return _0xdd29cf(_0x46dea8,_0x3a4ebd);},'MLLfd':function(_0x4b622e){return _0x4b622e();},'NTeRI':'update-c'+_0x163370(0x1a6)+'n'};return _0x165377['aAYzy'](join,dirname(_0x165377[_0x163370(0x1e4)](getGlobalEnvPath)),_0x165377[_0x163370(0x209)]);}function readCache(){const _0x2a1f0f=_0x76a790,_0xca7214={'uRvQk':function(_0x59d517){return _0x59d517();},'EoMRN':function(_0x1e984e,_0x1961b3){return _0x1e984e===_0x1961b3;},'hXdPh':'object'};try{const _0x510e17=readFileSync(_0xca7214[_0x2a1f0f(0x21d)](getCachePath),_0x2a1f0f(0x207)),_0x108db1=JSON[_0x2a1f0f(0x22c)](_0x510e17);return _0x108db1&&_0xca7214['EoMRN'](typeof _0x108db1,_0xca7214[_0x2a1f0f(0x1c8)])?_0x108db1:{};}catch{return{};}}function writeCache(_0x3b8116){const _0xad084f=_0x76a790,_0x3372c9={'RWsCV':function(_0x26910f){return _0x26910f();},'fPYYV':function(_0x30c334,_0x4fdfe3){return _0x30c334(_0x4fdfe3);},'xcyuh':function(_0x537842,_0xba7149,_0x1a69ab,_0x3e8803){return _0x537842(_0xba7149,_0x1a69ab,_0x3e8803);},'qRnjj':_0xad084f(0x207)};try{const _0xe1de49=_0x3372c9[_0xad084f(0x1ec)](getCachePath);mkdirSync(_0x3372c9['fPYYV'](dirname,_0xe1de49),{'recursive':!![]}),_0x3372c9['xcyuh'](writeFileSync,_0xe1de49,JSON[_0xad084f(0x227)+'y'](_0x3b8116),_0x3372c9['qRnjj']);}catch{}}function isVersionLower(_0x4b0aad,_0x196207){const _0x263761=_0x76a790,_0x56c15a={'NxDon':function(_0x5b1a10,_0x4126fd){return _0x5b1a10(_0x4126fd);},'BJbGr':function(_0x940c73,_0x2e0a93){return _0x940c73(_0x2e0a93);},'nBTZb':function(_0x5ace5a,_0x3bd565){return _0x5ace5a||_0x3bd565;},'ieDYx':function(_0x1ff5c1,_0x49019e){return _0x1ff5c1<_0x49019e;},'vdHfK':function(_0x3ced96,_0x44eb5c){return _0x3ced96<_0x44eb5c;},'hEXTa':function(_0x43d827,_0x3c468a){return _0x43d827>_0x3c468a;},'tJkuc':function(_0x48a0de,_0x147ba1){return _0x48a0de===_0x147ba1;},'CrTOo':_0x263761(0x1f7)},_0x273a48=_0x56c15a['NxDon'](normalizeVersion,_0x4b0aad),_0x5b4700=_0x56c15a['BJbGr'](normalizeVersion,_0x196207);if(_0x56c15a[_0x263761(0x204)](!_0x273a48,!_0x5b4700))return![];for(let _0x2571d2=0x0;_0x56c15a[_0x263761(0x1e1)](_0x2571d2,0x3);_0x2571d2+=0x1){if(_0x56c15a[_0x263761(0x1d0)](_0x273a48[_0x2571d2],_0x5b4700[_0x2571d2]))return!![];if(_0x56c15a[_0x263761(0x220)](_0x273a48[_0x2571d2],_0x5b4700[_0x2571d2]))return _0x56c15a[_0x263761(0x1a4)](_0x56c15a[_0x263761(0x21e)],_0x56c15a[_0x263761(0x21e)])?![]:null;}return![];}function normalizeVersion(_0x5e4bf0){const _0x56f401=_0x76a790,_0x2d8f9f={'zzhHy':function(_0x53c8ce,_0x255f81){return _0x53c8ce<_0x255f81;},'evqiC':function(_0x3740ba,_0x192c3d){return _0x3740ba(_0x192c3d);},'NsdLj':function(_0x8f9c80,_0x11cd20){return _0x8f9c80(_0x11cd20);}},_0x103218=_0x5e4bf0[_0x56f401(0x1b1)]()[_0x56f401(0x1f1)](/^v/i,'')[_0x56f401(0x20f)]('-')[0x0],_0x3ea492=_0x103218[_0x56f401(0x20f)]('.');if(_0x2d8f9f[_0x56f401(0x1de)](_0x3ea492[_0x56f401(0x1b2)],0x3))return null;const _0x592e26=_0x2d8f9f[_0x56f401(0x1db)](Number,_0x3ea492[0x0]),_0x11f20f=_0x2d8f9f[_0x56f401(0x1bb)](Number,_0x3ea492[0x1]),_0x4b7c01=_0x2d8f9f[_0x56f401(0x1db)](Number,_0x3ea492[0x2]);if(!Number['isFinite'](_0x592e26)||!Number[_0x56f401(0x221)](_0x11f20f)||!Number[_0x56f401(0x221)](_0x4b7c01))return null;return[_0x592e26,_0x11f20f,_0x4b7c01];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "1.6.3",
3
+ "version": "1.7.1",
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": {