gemit-cli 1.7.2 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-secure/cli-version.js +1 -1
- package/dist-secure/commands/add.js +1 -1
- package/dist-secure/commands/branch.js +1 -1
- package/dist-secure/commands/changelog.js +1 -1
- package/dist-secure/commands/commit.js +1 -1
- package/dist-secure/commands/config.js +1 -1
- package/dist-secure/commands/log.js +1 -1
- package/dist-secure/commands/pr.js +1 -1
- package/dist-secure/config.js +1 -1
- package/dist-secure/git.js +1 -1
- package/dist-secure/index.js +1 -1
- package/dist-secure/llm.js +1 -1
- package/dist-secure/prompts.js +1 -1
- package/dist-secure/ui.js +1 -1
- package/dist-secure/update.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x501a18,_0x269e63){const _0x3dea9e=_0x5857,_0x22884f=_0x501a18();while(!![]){try{const _0x5a335c=parseInt(_0x3dea9e(0x1d3))/0x1*(parseInt(_0x3dea9e(0x1b6))/0x2)+parseInt(_0x3dea9e(0x1c3))/0x3*(-parseInt(_0x3dea9e(0x1c2))/0x4)+parseInt(_0x3dea9e(0x1c0))/0x5*(parseInt(_0x3dea9e(0x1ce))/0x6)+-parseInt(_0x3dea9e(0x1c6))/0x7+-parseInt(_0x3dea9e(0x1bd))/0x8+parseInt(_0x3dea9e(0x1cd))/0x9+parseInt(_0x3dea9e(0x1c1))/0xa;if(_0x5a335c===_0x269e63)break;else _0x22884f['push'](_0x22884f['shift']());}catch(_0x5e2e0b){_0x22884f['push'](_0x22884f['shift']());}}}(_0x136b,0x5f653));const _0x544135=(function(){let _0x4b0abb=!![];return function(_0x40824b,_0x26dd65){const _0x2c48a9=_0x4b0abb?function(){const _0x27f426=_0x5857;if(_0x26dd65){const _0x2ec5d0=_0x26dd65[_0x27f426(0x1c7)](_0x40824b,arguments);return _0x26dd65=null,_0x2ec5d0;}}:function(){};return _0x4b0abb=![],_0x2c48a9;};}()),_0x3ec5e1=_0x544135(this,function(){const _0x3185c4=_0x5857,_0x3f40a9={'fwKWa':_0x3185c4(0x1b9)+'+)+$'};return _0x3ec5e1[_0x3185c4(0x1be)]()['search'](_0x3f40a9[_0x3185c4(0x1cf)])[_0x3185c4(0x1be)]()[_0x3185c4(0x1c5)+'tor'](_0x3ec5e1)['search'](_0x3f40a9['fwKWa']);});_0x3ec5e1();function _0x5857(_0x2b7844,_0x3a6519){_0x2b7844=_0x2b7844-0x1b5;const _0xfc0f36=_0x136b();let _0x3ec5e1=_0xfc0f36[_0x2b7844];return _0x3ec5e1;}import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x3830cd=_0x5857,_0x4c574b={'bQABE':function(_0x4c2147,_0x158b0f){return _0x4c2147(_0x158b0f);},'tivSh':function(_0xb8cd6c,_0x8a55e1){return _0xb8cd6c===_0x8a55e1;},'HlmFU':function(_0x3e889a,_0x3d2748){return _0x3e889a===_0x3d2748;},'bKZCn':function(_0x828542,_0x3100b8){return _0x828542(_0x3100b8);},'zwcAM':_0x3830cd(0x1d0)+_0x3830cd(0x1d2),'YnUYQ':function(_0x4678f9,_0x206c20,_0x42843c,_0x22ce6f){return _0x4678f9(_0x206c20,_0x42843c,_0x22ce6f);},'UUKci':function(_0x550abb,_0x5533b4,_0x49b4c6){return _0x550abb(_0x5533b4,_0x49b4c6);},'IiARz':_0x3830cd(0x1bf),'aDmQv':_0x3830cd(0x1c8)};try{const _0x3b7073=_0x4c574b[_0x3830cd(0x1b8)](fileURLToPath,import.meta.url),_0x370e82=_0x4c574b[_0x3830cd(0x1b8)](dirname,_0x3b7073),_0x3f37b4=_0x4c574b['tivSh'](_0x4c574b[_0x3830cd(0x1b8)](basename,_0x370e82),_0x3830cd(0x1bc))||_0x4c574b[_0x3830cd(0x1d1)](_0x4c574b[_0x3830cd(0x1ba)](basename,_0x370e82),_0x4c574b[_0x3830cd(0x1b7)])?_0x4c574b[_0x3830cd(0x1cc)](join,_0x370e82,'..',_0x3830cd(0x1c4)+_0x3830cd(0x1bb)):join(_0x370e82,_0x3830cd(0x1c4)+'json'),_0x184f7c=_0x4c574b['UUKci'](readFileSync,_0x3f37b4,_0x4c574b[_0x3830cd(0x1c9)]),_0x377e2a=JSON[_0x3830cd(0x1b5)](_0x184f7c);return _0x377e2a[_0x3830cd(0x1ca)]||_0x4c574b['aDmQv'];}catch{return _0x4c574b[_0x3830cd(0x1cb)];}}function _0x136b(){const _0x2f97a5=['apply','0.0.0','IiARz','version','aDmQv','YnUYQ','305847OcpJqm','29688DgJQGG','fwKWa','dist-sec','HlmFU','ure','464777XWohMU','parse','2QDgXez','zwcAM','bQABE','(((.+)+)','bKZCn','json','dist','582296gOZzrY','toString','utf8','200WrgAcW','106920djMEsa','116860gpvCSt','21BvyMZP','package.','construc','275387oZjSeE'];_0x136b=function(){return _0x2f97a5;};return _0x136b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x154c(){var _0x206f3b=['g\x20and\x20co','he\x20sugge','tor','480495LXfcGi','6eTKVrh','\x20stage\x20e','check','+)+$','toString','7197720ZOLAoB','-all`\x20to','Use\x20`gem','nAIRc','977332qqvYPg','348047LohbuC','construc','131252EcPIDA','JLrxi','3687835lwjUXn','verythin','lduDa','NCClf','all','(((.+)+)','453022dHVKKf','search'];_0x154c=function(){return _0x206f3b;};return _0x154c();}(function(_0x4365a1,_0x13cdf2){var _0x1457a1=_0x29a4,_0x51c293=_0x4365a1();while(!![]){try{var _0x5d45c2=-parseInt(_0x1457a1(0x152))/0x1+parseInt(_0x1457a1(0x15a))/0x2+parseInt(_0x1457a1(0x15f))/0x3+parseInt(_0x1457a1(0x14f))/0x4+parseInt(_0x1457a1(0x154))/0x5*(parseInt(_0x1457a1(0x160))/0x6)+parseInt(_0x1457a1(0x150))/0x7+-parseInt(_0x1457a1(0x165))/0x8;if(_0x5d45c2===_0x13cdf2)break;else _0x51c293['push'](_0x51c293['shift']());}catch(_0x2a1169){_0x51c293['push'](_0x51c293['shift']());}}}(_0x154c,0x5e902));var _0x1a4c8e=(function(){var _0x147dc3=!![];return function(_0x5d45c3,_0x439718){var _0x569454=_0x147dc3?function(){if(_0x439718){var _0x48b06c=_0x439718['apply'](_0x5d45c3,arguments);return _0x439718=null,_0x48b06c;}}:function(){};return _0x147dc3=![],_0x569454;};}()),_0x11d95a=_0x1a4c8e(this,function(){var _0x5076f3=_0x29a4,_0x7666f6={'lduDa':_0x5076f3(0x159)+_0x5076f3(0x163)};return _0x11d95a[_0x5076f3(0x164)]()[_0x5076f3(0x15b)](_0x7666f6[_0x5076f3(0x156)])[_0x5076f3(0x164)]()[_0x5076f3(0x151)+_0x5076f3(0x15e)](_0x11d95a)['search'](_0x5076f3(0x159)+_0x5076f3(0x163));});function _0x29a4(_0x2b7992,_0x348e4c){_0x2b7992=_0x2b7992-0x14e;var _0x2a7840=_0x154c();var _0x11d95a=_0x2a7840[_0x2b7992];return _0x11d95a;}_0x11d95a();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';export async function addAndCommit(_0x46d5d1={}){var _0x35cc4e=_0x29a4,_0x3a33e8={'NCClf':function(_0x367e9c,_0x3cb3f1){return _0x367e9c(_0x3cb3f1);},'nAIRc':function(_0x753ad0,_0x13e633){return _0x753ad0(_0x13e633);},'JLrxi':function(_0x478ddd,_0x409ce9){return _0x478ddd(_0x409ce9);}};!_0x46d5d1[_0x35cc4e(0x158)]&&_0x3a33e8[_0x35cc4e(0x157)](failAndExit,_0x35cc4e(0x167)+'it\x20add\x20-'+_0x35cc4e(0x166)+_0x35cc4e(0x161)+_0x35cc4e(0x155)+_0x35cc4e(0x15c)+'ntinue\x20t'+_0x35cc4e(0x15d)+'stion\x20fl'+'ow.'),await _0x3a33e8[_0x35cc4e(0x14e)](generateCommit,{'all':!![],'check':_0x3a33e8[_0x35cc4e(0x153)](Boolean,_0x46d5d1[_0x35cc4e(0x162)])});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x273394,_0xa0306b){const _0x371290=_0x116b,_0x5646aa=_0x273394();while(!![]){try{const _0x1033b4=parseInt(_0x371290(0x1b4))/0x1+parseInt(_0x371290(0x1c4))/0x2+parseInt(_0x371290(0x19f))/0x3+-parseInt(_0x371290(0x1aa))/0x4*(-parseInt(_0x371290(0x1ca))/0x5)+parseInt(_0x371290(0x1b5))/0x6+parseInt(_0x371290(0x1b8))/0x7*(-parseInt(_0x371290(0x1c5))/0x8)+parseInt(_0x371290(0x189))/0x9*(-parseInt(_0x371290(0x198))/0xa);if(_0x1033b4===_0xa0306b)break;else _0x5646aa['push'](_0x5646aa['shift']());}catch(_0x3f0030){_0x5646aa['push'](_0x5646aa['shift']());}}}(_0x3e2d,0xc665c));const _0x4ae95c=(function(){let _0x475c4b=!![];return function(_0x1c2d80,_0x4c32d6){const _0x4794c3=_0x475c4b?function(){const _0x4be9a0=_0x116b;if(_0x4c32d6){const _0x24f81d=_0x4c32d6[_0x4be9a0(0x1e1)](_0x1c2d80,arguments);return _0x4c32d6=null,_0x24f81d;}}:function(){};return _0x475c4b=![],_0x4794c3;};}()),_0x38ddf3=_0x4ae95c(this,function(){const _0x2996cd=_0x116b;return _0x38ddf3[_0x2996cd(0x196)]()[_0x2996cd(0x1b7)](_0x2996cd(0x1a0)+_0x2996cd(0x199))[_0x2996cd(0x196)]()[_0x2996cd(0x1a8)+'tor'](_0x38ddf3)[_0x2996cd(0x1b7)](_0x2996cd(0x1a0)+_0x2996cd(0x199));});_0x38ddf3();function _0x116b(_0x410c29,_0x644ffd){_0x410c29=_0x410c29-0x17f;const _0x58d22a=_0x3e2d();let _0x38ddf3=_0x58d22a[_0x410c29];return _0x38ddf3;}function _0x3e2d(){const _0x48a832=['\x0a\x20\x20','Failed\x20t','jZAHw',':\x20<type>','construc','normaliz','2582060rgYIPG','ase','uqSfI','as\x20not\x20c','replace','ch\x20name\x20','Cbyuj','efactor,','Name','message','876550hkXfvB','4105368HOPYov','Return\x20O','search','523558yDvoEx','CANCELED','\x0a\x20\x20\x20\x20Gen','AI\x20is\x20th','cmRhE','UTkZJ','ame\x20in\x20E','git','eat,\x20fix','Branch\x20w','MJxei','AUWhL','1624334RCjXNj','88QjArzY','xhttE','Branch\x20a','inherit','DfCOC','10LWyXEC','SUGGESTE','PsOBx','tUoJM','o\x20create','reated.','exfhh','TQGmR','git\x20bran','feature\x20','\x0a\x20\x20\x20\x20Rul','log','\x20docs,\x20r','case-des','NLY\x20the\x20','\x20branch.','includes','SMAxr','h\x20name.','cription','th:\x2050\x20c','dNanK','mum\x20leng','apply','inking\x20a','Bmvln','slice','o\x20genera','NFD','/n):\x20','tor','>\x0a\x20\x20\x20\x20-\x20','xists:\x20','ranch\x20wi','9xjPEaP','TJlEh','Create\x20b','D\x20BRANCH','MQQgB','es:\x0a\x20\x20\x20\x20','checkout','YUhON','name?\x20(y','for\x20the\x20','awMQo','UCqnI','\x20test\x0a\x20\x20','toString','describe','27793610otyDeR','+)+$','branch\x20n','-\x20Format','/<kebab-','nd\x20reque','\x0a\x20\x20\x20\x20','2252268jNOVBB','(((.+)+)','d\x20below.','Allowed\x20','OBTBe'];_0x3e2d=function(){return _0x48a832;};return _0x3e2d();}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(_0x1e69cb){const _0x1cb1d7=_0x116b,_0xb658dd={'MiZiR':function(_0x4f89a4){return _0x4f89a4();},'rVYoE':function(_0x43de37,_0x223174){return _0x43de37 instanceof _0x223174;},'UTkZJ':function(_0x4fa727,_0x2c3bdb){return _0x4fa727(_0x2c3bdb);},'uqSfI':_0x1cb1d7(0x183),'cmRhE':function(_0x1aeb2f,_0x319520){return _0x1aeb2f||_0x319520;},'TJlEh':'feat/upd'+'ate','PVBYt':function(_0x582a90,_0x31f7f8){return _0x582a90!==_0x31f7f8;},'MJxei':_0x1cb1d7(0x180),'sqUMb':'Iuvhj'},_0x29e8fb=_0x1e69cb[_0x1cb1d7(0x1a9)+'e'](_0xb658dd[_0x1cb1d7(0x1ac)])['replace'](/[\u0300-\u036f]/g,'')['toLowerC'+_0x1cb1d7(0x1ab)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x1cb1d7(0x1ae)](/-{2,}/g,'-')[_0x1cb1d7(0x1ae)](/\/{2,}/g,'/')[_0x1cb1d7(0x1ae)](/^-+|-+$/g,'')[_0x1cb1d7(0x1ae)](/^\/+|\/+$/g,''),_0xecdd8=_0x29e8fb[_0x1cb1d7(0x181)](0x0,0x32)[_0x1cb1d7(0x1ae)](/\/+$/g,'')[_0x1cb1d7(0x1ae)](/-+$/g,''),_0x1f8a52=_0xb658dd[_0x1cb1d7(0x1bc)](_0xecdd8,_0xb658dd[_0x1cb1d7(0x18a)]);if(!_0x1f8a52[_0x1cb1d7(0x1da)]('/')){if(_0xb658dd['PVBYt'](_0xb658dd[_0x1cb1d7(0x1c2)],_0xb658dd['sqUMb']))return'feat/'+_0x1f8a52;else try{return _0xb658dd['MiZiR'](_0x6864);}catch(_0x5428a4){const _0x19029d=_0xb658dd['rVYoE'](_0x5428a4,_0x12101a)?_0x5428a4[_0x1cb1d7(0x1b3)]:_0xb658dd[_0x1cb1d7(0x1bd)](_0x22346d,_0x5428a4);_0xb658dd[_0x1cb1d7(0x1bd)](_0x509526,_0x19029d);}}return _0x1f8a52;}function getLLM(){const _0x57ba0c=_0x116b,_0x3981f4={'YUhON':function(_0x539849){return _0x539849();},'ULUIX':function(_0x266923,_0x258377){return _0x266923!==_0x258377;},'ohbMe':_0x57ba0c(0x1a3),'tUoJM':function(_0xc9743,_0x191589){return _0xc9743 instanceof _0x191589;},'awMQo':function(_0x13a6c2,_0x581321){return _0x13a6c2(_0x581321);}};try{return _0x3981f4['ULUIX'](_0x57ba0c(0x1a3),_0x3981f4['ohbMe'])?_0x3981f4[_0x57ba0c(0x190)](_0x47ad19):_0x3981f4[_0x57ba0c(0x190)](createLLM);}catch(_0x1260b5){const _0x3bbec3=_0x3981f4[_0x57ba0c(0x1cd)](_0x1260b5,Error)?_0x1260b5[_0x57ba0c(0x1b3)]:String(_0x1260b5);_0x3981f4[_0x57ba0c(0x193)](failAndExit,_0x3bbec3);}}export async function suggestBranch(_0x551dde){const _0x3c78b6=_0x116b,_0x18b247={'exfhh':_0x3c78b6(0x1a0)+_0x3c78b6(0x199),'oIgLV':function(_0x589c83,_0x205d11,_0x14e84f){return _0x589c83(_0x205d11,_0x14e84f);},'AUWhL':_0x3c78b6(0x1b9),'nSthr':function(_0x3084e2){return _0x3084e2();},'HZusy':function(_0x303e29,_0x825fd6,_0x5e19ea){return _0x303e29(_0x825fd6,_0x5e19ea);},'EgKtg':_0x3c78b6(0x1bb)+_0x3c78b6(0x17f)+_0x3c78b6(0x19d)+'sting\x20re'+'sponse..'+'.','xhttE':function(_0x1553b6,_0x25f185){return _0x1553b6!==_0x25f185;},'PsOBx':function(_0x1ffac5,_0x33f711){return _0x1ffac5(_0x33f711);},'MQQgB':_0x3c78b6(0x1b2),'DfCOC':_0x3c78b6(0x18b)+_0x3c78b6(0x188)+'th\x20this\x20'+_0x3c78b6(0x191)+_0x3c78b6(0x184),'FshvN':function(_0x2807c2,_0xa91ff0){return _0x2807c2===_0xa91ff0;},'Cbyuj':_0x3c78b6(0x194),'ERHyf':_0x3c78b6(0x1df),'jZAHw':function(_0x11ef10,_0x2cc347,_0x5c4c5e){return _0x11ef10(_0x2cc347,_0x5c4c5e);},'rMwJp':_0x3c78b6(0x1c1)+_0x3c78b6(0x1ad)+_0x3c78b6(0x1cf),'SMAxr':function(_0xa1a285,_0x3fd4ac,_0x172f1e,_0x5d7089){return _0xa1a285(_0x3fd4ac,_0x172f1e,_0x5d7089);},'hbwOk':_0x3c78b6(0x1bf),'sVFby':_0x3c78b6(0x1c8)};getGitStatus();const _0x40a025=_0x18b247['nSthr'](getLLM),_0x1f9445=_0x3c78b6(0x1ba)+'erate\x20a\x20'+_0x3c78b6(0x1d2)+_0x3c78b6(0x1af)+_0x3c78b6(0x192)+_0x3c78b6(0x1d3)+_0x3c78b6(0x197)+_0x3c78b6(0x1a1)+_0x3c78b6(0x1d4)+_0x3c78b6(0x18e)+_0x3c78b6(0x19b)+_0x3c78b6(0x1a7)+_0x3c78b6(0x19c)+_0x3c78b6(0x1d7)+_0x3c78b6(0x1dd)+_0x3c78b6(0x186)+_0x3c78b6(0x1a2)+'types:\x20f'+_0x3c78b6(0x1c0)+',\x20chore,'+_0x3c78b6(0x1d6)+_0x3c78b6(0x1b1)+_0x3c78b6(0x195)+'\x20\x20-\x20Maxi'+_0x3c78b6(0x1e0)+_0x3c78b6(0x1de)+'haracter'+'s\x0a\x20\x20\x20\x20-\x20'+_0x3c78b6(0x1b6)+_0x3c78b6(0x1d8)+_0x3c78b6(0x19a)+_0x3c78b6(0x1be)+'nglish\x0a\x0a'+'\x20\x20\x20\x20Desc'+'ription:'+_0x3c78b6(0x19e)+_0x551dde+_0x3c78b6(0x1a4),_0x383ec=await _0x18b247['HZusy'](withProgress,_0x18b247['EgKtg'],()=>_0x40a025['invoke'](_0x1f9445)),_0x4eb41c=extractMessageText(_0x383ec['content']),_0x4e646c=sanitizeBranchName(_0x4eb41c);!_0x4e646c&&failAndExit('Failed\x20t'+_0x3c78b6(0x182)+'te\x20branc'+_0x3c78b6(0x1dc));if(branchExists(_0x4e646c)){if(_0x18b247[_0x3c78b6(0x1c6)](_0x3c78b6(0x1d1),_0x3c78b6(0x1d1)))return _0x42ca95['toString']()[_0x3c78b6(0x1b7)](xpYgCr['exfhh'])[_0x3c78b6(0x196)]()[_0x3c78b6(0x1a8)+_0x3c78b6(0x185)](_0x4494b7)[_0x3c78b6(0x1b7)](xpYgCr[_0x3c78b6(0x1d0)]);else _0x18b247[_0x3c78b6(0x1cc)](failAndExit,_0x3c78b6(0x1c7)+'lready\x20e'+_0x3c78b6(0x187)+_0x4e646c);}_0x18b247['PsOBx'](section,_0x3c78b6(0x1cb)+_0x3c78b6(0x18c)),_0x18b247['PsOBx'](printKeyValues,[{'key':_0x18b247[_0x3c78b6(0x18d)],'value':_0x4e646c}]);const _0x4d772a=await _0x18b247[_0x3c78b6(0x1cc)](askConfirmation,_0x18b247[_0x3c78b6(0x1c9)]);if(!_0x4d772a){if(_0x18b247['FshvN'](_0x18b247[_0x3c78b6(0x1b0)],_0x18b247['ERHyf'])){_0x3ce7e1[_0x3c78b6(0x1d5)](_0x18b247['oIgLV'](_0x2c7a8a,_0x18b247[_0x3c78b6(0x1c3)],'Branch\x20w'+_0x3c78b6(0x1ad)+_0x3c78b6(0x1cf)));return;}else{console[_0x3c78b6(0x1d5)](_0x18b247[_0x3c78b6(0x1a6)](warn,_0x18b247[_0x3c78b6(0x1c3)],_0x18b247['rMwJp']));return;}}try{_0x18b247[_0x3c78b6(0x1db)](execFileSync,_0x18b247['hbwOk'],[_0x3c78b6(0x18f),'-b',_0x4e646c],{'stdio':_0x18b247['sVFby']});}catch{_0x18b247[_0x3c78b6(0x1cc)](failAndExit,_0x3c78b6(0x1a5)+_0x3c78b6(0x1ce)+_0x3c78b6(0x1d9));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1a9de5,_0x116fea){const _0x57b1c5=_0x56a3,_0x50c75a=_0x1a9de5();while(!![]){try{const _0x5cb2e0=-parseInt(_0x57b1c5(0x220))/0x1*(-parseInt(_0x57b1c5(0x1a5))/0x2)+-parseInt(_0x57b1c5(0x1f1))/0x3*(-parseInt(_0x57b1c5(0x216))/0x4)+parseInt(_0x57b1c5(0x1ae))/0x5*(parseInt(_0x57b1c5(0x1a2))/0x6)+-parseInt(_0x57b1c5(0x1b9))/0x7*(parseInt(_0x57b1c5(0x1c0))/0x8)+parseInt(_0x57b1c5(0x223))/0x9*(parseInt(_0x57b1c5(0x1d5))/0xa)+-parseInt(_0x57b1c5(0x1c2))/0xb+-parseInt(_0x57b1c5(0x1e2))/0xc*(parseInt(_0x57b1c5(0x207))/0xd);if(_0x5cb2e0===_0x116fea)break;else _0x50c75a['push'](_0x50c75a['shift']());}catch(_0x1699e6){_0x50c75a['push'](_0x50c75a['shift']());}}}(_0x5911,0xb78d1));function _0x56a3(_0x1c303e,_0x1a492e){_0x1c303e=_0x1c303e-0x1a0;const _0x4d8825=_0x5911();let _0x3a7193=_0x4d8825[_0x1c303e];return _0x3a7193;}const _0x53124c=(function(){let _0x4ec2c0=!![];return function(_0x517368,_0x522a25){const _0x509124=_0x4ec2c0?function(){const _0xe3208b=_0x56a3;if(_0x522a25){const _0x261025=_0x522a25[_0xe3208b(0x210)](_0x517368,arguments);return _0x522a25=null,_0x261025;}}:function(){};return _0x4ec2c0=![],_0x509124;};}()),_0x3a7193=_0x53124c(this,function(){const _0x50e77c=_0x56a3,_0x212b2b={'ByNvP':_0x50e77c(0x217)+_0x50e77c(0x1df)};return _0x3a7193[_0x50e77c(0x1d3)]()['search'](_0x212b2b[_0x50e77c(0x212)])[_0x50e77c(0x1d3)]()[_0x50e77c(0x1ab)+_0x50e77c(0x203)](_0x3a7193)[_0x50e77c(0x1a9)](_0x50e77c(0x217)+'+)+$');});_0x3a7193();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 _0x5911(){const _0x8d73f7=['subject','NqqcP','ao\x20inven','pefAB','secao\x20\x22C','\x20to\x20gene','length','pkbOc','ommits\x22\x20','Regras:\x0a','changelo','rto\x20e\x20se','\x20changel','GxxtM','tor','ozMUZ','og...','hOAnp','13GhEPFS','itulo,\x20r','\x20mudanca','bygAj','rate\x20cha','toLowerC','Status','min','OUsrx','apply','parseInt','ByNvP','message','\x20|\x20','\x0aCrie\x20um','52580QqINiz','(((.+)+)','ase','vWxHM','replace','map','body','wsvtC','abaixo.\x0a','KEyEG','17xjLroq','o\x20genera','JoMfo','468tedtvX','tors,\x20Do','unknown-','date','OMied','commits','OG\x20em\x20ma','3894IkEcvk','om\x20base\x20','ositive\x20','159912yRatch','toISOStr','s\x20(ultim','e)\x0a-\x20Inc','search','FGbAA','construc','qrQIM','trim','10405qebwsv','ts\x20found','cABld','author','integer.','TED','coes\x20por','isNaN','cwd','invoke','cas\x0a\x0aHis','123277kUwgsI','used','Commits\x20','torico\x20r','hash','ntos\x0a-\x20N','do\x20Brasi','24oOkRsl','\x20tipo\x20de','9000585hmsixN','File','\x20commits','ecente\x20d','BIOYU','rPjRr','e\x20commit','tent.','slice','da\x20em\x20po','te\x20mudan','wCFcT','de\x20hashe','\x20|\x20body:','\x20CHANGEL','AI\x20is\x20ge','lua\x20uma\x20','toString','a\x20curta\x20','67050FpWgUY','os\x20','nerating','plKKF','ObSTG','ing','ybEzX','content','--commit','s\x20value.','+)+$','WbKDB','-\x20Respon','18015756HRsOxp','es,\x20Fixe','raSJz','RozjW','\x20(Featur','no\x20histo','SXyHE','ngelog.','com\x20list','No\x20commi','elog\x20con','rico\x20de\x20','Invalid\x20','rkdown\x20c','join','15UJGBUw','G\x20GENERA','\x20Use\x20a\x20p','jafnK'];_0x5911=function(){return _0x8d73f7;};return _0x5911();}const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x2fc043=_0x56a3,_0x114dbd={'WbKDB':function(_0x2f187e){return _0x2f187e();},'npYUl':function(_0x44cb93,_0x573d82){return _0x44cb93 instanceof _0x573d82;},'ObSTG':function(_0x2ff935,_0x1ef81b){return _0x2ff935(_0x1ef81b);}};try{return _0x114dbd[_0x2fc043(0x1e0)](createLLM);}catch(_0x3bd9e4){const _0x550ae9=_0x114dbd['npYUl'](_0x3bd9e4,Error)?_0x3bd9e4[_0x2fc043(0x213)]:_0x114dbd[_0x2fc043(0x1d9)](String,_0x3bd9e4);_0x114dbd[_0x2fc043(0x1d9)](failAndExit,_0x550ae9);}}function sanitizeName(_0x106995){const _0x2d7793=_0x56a3,_0xb9b1a4={'SXyHE':'NFD','KEyEG':function(_0x138ad8,_0x30acb4){return _0x138ad8||_0x30acb4;},'OUsrx':_0x2d7793(0x1ff)+'g'},_0x215e08=_0x106995['normaliz'+'e'](_0xb9b1a4[_0x2d7793(0x1e8)])[_0x2d7793(0x21a)](/[\u0300-\u036f]/g,'')[_0x2d7793(0x20c)+_0x2d7793(0x218)]()[_0x2d7793(0x21a)](/[^a-z0-9-]+/g,'-')[_0x2d7793(0x21a)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return _0xb9b1a4[_0x2d7793(0x21f)](_0x215e08,_0xb9b1a4[_0x2d7793(0x20f)]);}function formatDateForFile(_0x154841){const _0xbf74b3=_0x56a3;return _0x154841[_0xbf74b3(0x1a6)+_0xbf74b3(0x1da)]()[_0xbf74b3(0x1ca)](0x0,0xa);}function resolveCommitLimit(_0x273f5c){const _0x388070=_0x56a3,_0x61652b={'GxxtM':'edSpH','wCFcT':function(_0x278e8c,_0x3077a8){return _0x278e8c(_0x3077a8);}},_0x1968e8=_0x273f5c?.[_0x388070(0x1a0)]?.['trim']();if(!_0x1968e8)return DEFAULT_COMMIT_LIMIT;const _0x4a9fee=Number[_0x388070(0x211)](_0x1968e8,0xa);if(Number['isNaN'](_0x4a9fee)||_0x4a9fee<=0x0){if(_0x61652b[_0x388070(0x202)]!==_0x61652b[_0x388070(0x202)]){const _0x2ed579=_0xd22273?.[_0x388070(0x1a0)]?.[_0x388070(0x1ad)]();if(!_0x2ed579)return _0x2b5893;const _0x31ec02=_0x214299[_0x388070(0x211)](_0x2ed579,0xa);return(_0x2f671a[_0x388070(0x1b5)](_0x31ec02)||_0x31ec02<=0x0)&&_0x14be12('Invalid\x20'+_0x388070(0x1dd)+_0x388070(0x1de)+_0x388070(0x1f3)+_0x388070(0x1a4)+'integer.'),_0x178534[_0x388070(0x20e)](_0x31ec02,_0x4a2e48);}else _0x61652b[_0x388070(0x1cd)](failAndExit,_0x388070(0x1ee)+_0x388070(0x1dd)+_0x388070(0x1de)+'\x20Use\x20a\x20p'+_0x388070(0x1a4)+_0x388070(0x1b2));}return Math[_0x388070(0x20e)](_0x4a9fee,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x2118eb){const _0x3b448b=_0x56a3,_0x11d6cb={'vWxHM':_0x3b448b(0x225)+_0x3b448b(0x226),'jafnK':_0x3b448b(0x225)+_0x3b448b(0x1b1),'OMied':function(_0x4efca2,_0xf2c65e){return _0x4efca2(_0xf2c65e);},'PrQff':function(_0x3ca013,_0x38e2aa){return _0x3ca013===_0x38e2aa;},'hOAnp':function(_0x5e7af0,_0x121ced){return _0x5e7af0!==_0x121ced;},'pkbOc':_0x3b448b(0x1e5),'iMPja':function(_0x23adb3,_0x4bb21f){return _0x23adb3(_0x4bb21f);},'nhdnI':_0x3b448b(0x1eb)+'ts\x20found'+_0x3b448b(0x1fa)+_0x3b448b(0x20b)+_0x3b448b(0x1e9)},_0x56207e=_0x11d6cb[_0x3b448b(0x227)](getCommitHistory,_0x2118eb);if(_0x11d6cb['PrQff'](_0x56207e[_0x3b448b(0x1fb)],0x0)){if(_0x11d6cb[_0x3b448b(0x206)](_0x3b448b(0x204),_0x11d6cb[_0x3b448b(0x1fc)]))_0x11d6cb['iMPja'](failAndExit,_0x11d6cb['nhdnI']);else{const _0x440efb={'bygAj':_0x11d6cb[_0x3b448b(0x219)],'NqqcP':_0x11d6cb['jafnK']},_0x126c06=_0x11d6cb[_0x3b448b(0x227)](_0x11290e,_0x5dae1e);return _0x126c06[_0x3b448b(0x1fb)]===0x0&&_0x11d6cb['OMied'](_0x1d7587,_0x3b448b(0x1eb)+_0x3b448b(0x1af)+_0x3b448b(0x1fa)+_0x3b448b(0x20b)+_0x3b448b(0x1e9)),_0x126c06[_0x3b448b(0x21b)](_0x32344f=>{const _0x4d984c=_0x3b448b,_0x254517=_0x32344f[_0x4d984c(0x21c)]?_0x4d984c(0x1cf)+'\x20'+_0x32344f[_0x4d984c(0x21c)]['replace'](/\s+/g,'\x20')[_0x4d984c(0x1ad)]():'',_0x32b979=_0x32344f['date']||_0x440efb[_0x4d984c(0x20a)],_0x424b62=_0x32344f[_0x4d984c(0x1b1)]||_0x440efb[_0x4d984c(0x1f6)];return'-\x20'+_0x32b979+_0x4d984c(0x214)+_0x32344f[_0x4d984c(0x1bd)][_0x4d984c(0x1ca)](0x0,0x7)+_0x4d984c(0x214)+_0x424b62+_0x4d984c(0x214)+_0x32344f[_0x4d984c(0x1f5)]+_0x254517;})[_0x3b448b(0x1f0)]('\x0a');}}return _0x56207e[_0x3b448b(0x21b)](_0x45e1f4=>{const _0x1b12c5=_0x3b448b,_0x3fb68f=_0x45e1f4[_0x1b12c5(0x21c)]?_0x1b12c5(0x1cf)+'\x20'+_0x45e1f4[_0x1b12c5(0x21c)]['replace'](/\s+/g,'\x20')['trim']():'',_0x57f710=_0x45e1f4[_0x1b12c5(0x226)]||_0x1b12c5(0x225)+_0x1b12c5(0x226),_0xa81e27=_0x45e1f4['author']||_0x11d6cb[_0x1b12c5(0x1f4)];return'-\x20'+_0x57f710+_0x1b12c5(0x214)+_0x45e1f4[_0x1b12c5(0x1bd)][_0x1b12c5(0x1ca)](0x0,0x7)+_0x1b12c5(0x214)+_0xa81e27+_0x1b12c5(0x214)+_0x45e1f4[_0x1b12c5(0x1f5)]+_0x3fb68f;})[_0x3b448b(0x1f0)]('\x0a');}export async function generateChangelog(_0x8fb55e,_0x544d6f){const _0x1229e5=_0x56a3,_0x199763={'hZqgK':function(_0x3ec5c2){return _0x3ec5c2();},'FGbAA':function(_0x4ef155){return _0x4ef155();},'qrQIM':function(_0x319e50,_0x26d6ff){return _0x319e50||_0x26d6ff;},'JoMfo':function(_0x5a00cf,_0x3c5d96){return _0x5a00cf(_0x3c5d96);},'wsvtC':function(_0x5e8d45,_0x26a27f,_0x23d5a4){return _0x5e8d45(_0x26a27f,_0x23d5a4);},'mLYcF':_0x1229e5(0x1d1)+_0x1229e5(0x1d7)+_0x1229e5(0x201)+_0x1229e5(0x205),'raSJz':'Failed\x20t'+_0x1229e5(0x221)+'te\x20chang'+_0x1229e5(0x1ec)+_0x1229e5(0x1c9),'cABld':_0x1229e5(0x1ff)+'gs','plKKF':function(_0x2a5839,_0xcfd9e2,_0x2b6de4){return _0x2a5839(_0xcfd9e2,_0x2b6de4);},'ybEzX':function(_0x1c9d66,_0x1679b4,_0x58133a,_0x56cf8a){return _0x1c9d66(_0x1679b4,_0x58133a,_0x56cf8a);},'rPjRr':'utf8','BDvlc':function(_0x543e3a,_0x326a52){return _0x543e3a(_0x326a52);},'BIOYU':'CHANGELO'+_0x1229e5(0x1f2)+_0x1229e5(0x1b3),'pefAB':function(_0x4c97fb,_0x12a6d1){return _0x4c97fb(_0x12a6d1);},'pFzaS':_0x1229e5(0x20d)};_0x199763['hZqgK'](getGitStatus);const _0x17a9ae=getLLM(),_0x14b1f4=resolveCommitLimit(_0x544d6f),_0x43efdc=_0x199763[_0x1229e5(0x1aa)](getCurrentBranch),_0x139374=sanitizeName(_0x199763[_0x1229e5(0x1ac)](_0x8fb55e,_0x43efdc)[_0x1229e5(0x1ad)]()),_0x243c55=_0x199763[_0x1229e5(0x222)](formatDateForFile,new Date()),_0xba9998=_0x139374+'-'+_0x243c55+'.md',_0xf4d5ac=_0x199763[_0x1229e5(0x222)](buildCommitHistoryPrompt,_0x14b1f4),_0x281f78=(_0x1229e5(0x215)+_0x1229e5(0x1d0)+_0x1229e5(0x1a1)+_0x1229e5(0x1ef)+_0x1229e5(0x1a3)+_0x1229e5(0x1e7)+_0x1229e5(0x1ed)+'commits\x20'+_0x1229e5(0x21e)+_0x1229e5(0x1fe)+_0x1229e5(0x1e1)+_0x1229e5(0x1cb)+'rtugues\x20'+_0x1229e5(0x1bf)+'l\x0a-\x20Estr'+'utura:\x20t'+_0x1229e5(0x208)+'esumo\x20cu'+_0x1229e5(0x200)+_0x1229e5(0x1b4)+_0x1229e5(0x1c1)+_0x1229e5(0x209)+_0x1229e5(0x1e6)+_0x1229e5(0x1e3)+'s,\x20Refac'+_0x1229e5(0x224)+'cs,\x20Chor'+_0x1229e5(0x1a8)+_0x1229e5(0x1d2)+_0x1229e5(0x1f9)+_0x1229e5(0x1fd)+_0x1229e5(0x1ea)+_0x1229e5(0x1d4)+_0x1229e5(0x1ce)+'s\x20e\x20assu'+_0x1229e5(0x1be)+_0x1229e5(0x1f7)+_0x1229e5(0x1cc)+_0x1229e5(0x1b8)+_0x1229e5(0x1bc)+_0x1229e5(0x1c5)+_0x1229e5(0x1c8)+_0x1229e5(0x1a7)+_0x1229e5(0x1d6)+_0x14b1f4+(_0x1229e5(0x1c4)+'):\x0a')+_0xf4d5ac+'\x0a')[_0x1229e5(0x1ad)](),_0x55f5fe=await _0x199763[_0x1229e5(0x21d)](withProgress,_0x199763['mLYcF'],()=>_0x17a9ae[_0x1229e5(0x1b7)](_0x281f78)),_0x2de109=extractMessageText(_0x55f5fe[_0x1229e5(0x1dc)]);!_0x2de109&&_0x199763['JoMfo'](failAndExit,_0x199763[_0x1229e5(0x1e4)]);const _0x122248=join(process[_0x1229e5(0x1b6)](),_0x199763[_0x1229e5(0x1b0)]),_0xa9e385=_0x199763[_0x1229e5(0x1d8)](join,_0x122248,_0xba9998);mkdirSync(_0x122248,{'recursive':!![]}),_0x199763[_0x1229e5(0x1db)](writeFileSync,_0xa9e385,_0x2de109[_0x1229e5(0x1ad)]()+'\x0a',_0x199763[_0x1229e5(0x1c7)]),_0x199763['BDvlc'](section,_0x199763[_0x1229e5(0x1c6)]),_0x199763[_0x1229e5(0x1f8)](printKeyValues,[{'key':_0x199763['pFzaS'],'value':ok('OK')},{'key':_0x1229e5(0x1c3),'value':_0xa9e385},{'key':_0x1229e5(0x1bb)+_0x1229e5(0x1ba),'value':String(_0x14b1f4)}]);}
|
|
1
|
+
(function(_0x435657,_0x35614a){const _0x48eacc=_0x18b7,_0x20244d=_0x435657();while(!![]){try{const _0x5309be=-parseInt(_0x48eacc(0x228))/0x1+parseInt(_0x48eacc(0x1f0))/0x2+-parseInt(_0x48eacc(0x216))/0x3+parseInt(_0x48eacc(0x1fd))/0x4+-parseInt(_0x48eacc(0x20c))/0x5*(-parseInt(_0x48eacc(0x229))/0x6)+parseInt(_0x48eacc(0x210))/0x7*(parseInt(_0x48eacc(0x1f4))/0x8)+-parseInt(_0x48eacc(0x25b))/0x9*(parseInt(_0x48eacc(0x23a))/0xa);if(_0x5309be===_0x35614a)break;else _0x20244d['push'](_0x20244d['shift']());}catch(_0x56b11d){_0x20244d['push'](_0x20244d['shift']());}}}(_0xada8,0x51216));const _0x4f5e62=(function(){let _0x2c9d9b=!![];return function(_0x437369,_0x24b560){const _0xd2e8d4=_0x2c9d9b?function(){const _0x28ea86=_0x18b7;if(_0x24b560){const _0x578800=_0x24b560[_0x28ea86(0x215)](_0x437369,arguments);return _0x24b560=null,_0x578800;}}:function(){};return _0x2c9d9b=![],_0xd2e8d4;};}()),_0x48c6b2=_0x4f5e62(this,function(){const _0x57c525=_0x18b7,_0x5a04e3={'PzCye':_0x57c525(0x24f)+'+)+$'};return _0x48c6b2[_0x57c525(0x212)]()[_0x57c525(0x23d)](_0x5a04e3[_0x57c525(0x24b)])[_0x57c525(0x212)]()[_0x57c525(0x25a)+'tor'](_0x48c6b2)[_0x57c525(0x23d)](_0x5a04e3[_0x57c525(0x24b)]);});_0x48c6b2();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x13cc42=_0x18b7,_0x4af6fe={'hQuFR':function(_0x532cbc){return _0x532cbc();},'jqgmt':function(_0x59f09c,_0xae3442){return _0x59f09c instanceof _0xae3442;},'PRhtg':function(_0x204295,_0x252697){return _0x204295(_0x252697);},'UnvKb':function(_0x46e032,_0xa7d9fe){return _0x46e032(_0xa7d9fe);}};try{return _0x4af6fe[_0x13cc42(0x237)](createLLM);}catch(_0x5a32b0){const _0x7a0f20=_0x4af6fe[_0x13cc42(0x221)](_0x5a32b0,Error)?_0x5a32b0[_0x13cc42(0x20d)]:_0x4af6fe['PRhtg'](String,_0x5a32b0);_0x4af6fe[_0x13cc42(0x20a)](failAndExit,_0x7a0f20);}}function sanitizeName(_0x49ccfa){const _0x136084=_0x18b7,_0x56d8d9={'OEJWJ':function(_0x18faf6,_0x2b748d){return _0x18faf6||_0x2b748d;}},_0x588853=_0x49ccfa['normaliz'+'e'](_0x136084(0x264))[_0x136084(0x209)](/[\u0300-\u036f]/g,'')[_0x136084(0x261)+_0x136084(0x220)]()[_0x136084(0x209)](/[^a-z0-9-]+/g,'-')[_0x136084(0x209)](/-{2,}/g,'-')[_0x136084(0x209)](/^-+|-+$/g,'');return _0x56d8d9[_0x136084(0x21a)](_0x588853,_0x136084(0x239)+'g');}function formatDateForFile(_0x56d7e4){const _0x45c9f7=_0x18b7;return _0x56d7e4[_0x45c9f7(0x236)+'ing']()[_0x45c9f7(0x241)](0x0,0xa);}function _0x18b7(_0x4d5762,_0x36e74e){_0x4d5762=_0x4d5762-0x1f0;const _0x492929=_0xada8();let _0x48c6b2=_0x492929[_0x4d5762];return _0x48c6b2;}function resolveCommitLimit(_0x114ca5){const _0x31a720=_0x18b7,_0x92173={'MAmxd':function(_0x152111,_0x46f220){return _0x152111<=_0x46f220;},'lGScZ':function(_0x13acb1,_0x5d11cb){return _0x13acb1(_0x5d11cb);},'KBDcP':_0x31a720(0x263)+_0x31a720(0x21d)+_0x31a720(0x1fa)+_0x31a720(0x240)+_0x31a720(0x1f9)+_0x31a720(0x23b)},_0x48fb4a=_0x114ca5?.[_0x31a720(0x1fb)]?.[_0x31a720(0x22a)]();if(!_0x48fb4a)return DEFAULT_COMMIT_LIMIT;const _0xd8c410=Number[_0x31a720(0x247)](_0x48fb4a,0xa);return(Number[_0x31a720(0x1f6)](_0xd8c410)||_0x92173[_0x31a720(0x204)](_0xd8c410,0x0))&&_0x92173[_0x31a720(0x23e)](failAndExit,_0x92173[_0x31a720(0x223)]),Math['min'](_0xd8c410,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x486a1c){const _0x4aaf99=_0x18b7,_0x67029a={'kvXVp':_0x4aaf99(0x1fc)+_0x4aaf99(0x258),'uEbll':function(_0x3cc9e7,_0x3fa8bc){return _0x3cc9e7(_0x3fa8bc);},'PRCEn':function(_0x191b10,_0x52ae66){return _0x191b10===_0x52ae66;}},_0x563192=_0x67029a['uEbll'](getCommitHistory,_0x486a1c);return _0x67029a[_0x4aaf99(0x253)](_0x563192[_0x4aaf99(0x235)],0x0)&&_0x67029a['uEbll'](failAndExit,_0x4aaf99(0x22b)+_0x4aaf99(0x233)+_0x4aaf99(0x1ff)+'rate\x20cha'+_0x4aaf99(0x244)),_0x563192[_0x4aaf99(0x25e)](_0x196f20=>{const _0x22ef25=_0x4aaf99,_0x4f2372=_0x196f20['body']?'\x20|\x20body:'+'\x20'+_0x196f20['body'][_0x22ef25(0x209)](/\s+/g,'\x20')[_0x22ef25(0x22a)]():'',_0x4a6585=_0x196f20[_0x22ef25(0x22c)]||_0x22ef25(0x1fc)+_0x22ef25(0x22c),_0x47bff1=_0x196f20[_0x22ef25(0x258)]||_0x67029a[_0x22ef25(0x1f7)];return'-\x20'+_0x4a6585+'\x20|\x20'+_0x196f20[_0x22ef25(0x246)]['slice'](0x0,0x7)+'\x20|\x20'+_0x47bff1+_0x22ef25(0x23c)+_0x196f20[_0x22ef25(0x250)]+_0x4f2372;})[_0x4aaf99(0x205)]('\x0a');}export async function generateChangelog(_0x3d927b,_0x515e0f){const _0x22710f=_0x18b7,_0x317f76={'SnxnR':function(_0x510cc5){return _0x510cc5();},'GNOYN':function(_0x244229,_0x416b45){return _0x244229(_0x416b45);},'AdRbC':function(_0x1fa34d,_0x4a5ad5){return _0x1fa34d||_0x4a5ad5;},'jRcNS':function(_0x9487c0,_0x19d628,_0x3f2103){return _0x9487c0(_0x19d628,_0x3f2103);},'GnATS':function(_0xe1facb,_0x3c971b){return _0xe1facb(_0x3c971b);},'sTkHU':function(_0x4f454c,_0xed2450){return _0x4f454c(_0xed2450);},'TkufS':function(_0x4e6a8e,_0x4942cc,_0x42a4c){return _0x4e6a8e(_0x4942cc,_0x42a4c);},'TPZPc':_0x22710f(0x239)+'gs','JbsLF':function(_0x2827e0,_0x3949c2,_0x535136){return _0x2827e0(_0x3949c2,_0x535136);},'LgCMU':function(_0x184a1f,_0x154661,_0x37f815,_0x4c313d){return _0x184a1f(_0x154661,_0x37f815,_0x4c313d);},'BPBnj':'utf8','JLhIm':function(_0x5ef956,_0x4d6319){return _0x5ef956(_0x4d6319);},'BVRvH':_0x22710f(0x25f),'NcKWb':'Commits\x20'+_0x22710f(0x1f2)};_0x317f76[_0x22710f(0x20f)](getGitStatus);const _0x37cea7=getLLM(),_0x21079c=_0x317f76['GNOYN'](resolveCommitLimit,_0x515e0f),_0x4bf199=_0x317f76[_0x22710f(0x20f)](getCurrentBranch),_0x1da4c8=_0x317f76[_0x22710f(0x1fe)](sanitizeName,_0x317f76[_0x22710f(0x251)](_0x3d927b,_0x4bf199)['trim']()),_0x224373=formatDateForFile(new Date()),_0x5bda38=_0x1da4c8+'-'+_0x224373+_0x22710f(0x1f3),_0x38a386=_0x317f76[_0x22710f(0x1fe)](buildCommitHistoryPrompt,_0x21079c),_0x352215=(_0x22710f(0x1f1)+_0x22710f(0x245)+_0x22710f(0x242)+_0x22710f(0x21f)+_0x22710f(0x222)+_0x22710f(0x262)+_0x22710f(0x24a)+_0x22710f(0x22f)+_0x22710f(0x260)+_0x22710f(0x252)+_0x22710f(0x200)+_0x22710f(0x227)+'rtugues\x20'+_0x22710f(0x238)+_0x22710f(0x22d)+'utura:\x20t'+_0x22710f(0x207)+_0x22710f(0x208)+_0x22710f(0x218)+_0x22710f(0x25d)+_0x22710f(0x203)+_0x22710f(0x25c)+_0x22710f(0x22e)+_0x22710f(0x226)+_0x22710f(0x21e)+_0x22710f(0x24d)+_0x22710f(0x225)+_0x22710f(0x202)+_0x22710f(0x24e)+'secao\x20\x22C'+_0x22710f(0x231)+_0x22710f(0x217)+_0x22710f(0x21c)+'de\x20hashe'+'s\x20e\x20assu'+_0x22710f(0x255)+'ao\x20inven'+_0x22710f(0x24c)+_0x22710f(0x248)+_0x22710f(0x224)+_0x22710f(0x256)+_0x22710f(0x232)+_0x22710f(0x1f5)+'os\x20'+_0x21079c+('\x20commits'+_0x22710f(0x243))+_0x38a386+'\x0a')[_0x22710f(0x22a)](),_0x510419=await _0x317f76[_0x22710f(0x219)](withProgress,_0x22710f(0x21b)+_0x22710f(0x20e)+'\x20changel'+_0x22710f(0x23f),()=>_0x37cea7[_0x22710f(0x211)](_0x352215)),_0x55e087=_0x317f76[_0x22710f(0x1f8)](extractMessageText,_0x510419['content']);!_0x55e087&&_0x317f76['sTkHU'](failAndExit,_0x22710f(0x213)+_0x22710f(0x206)+_0x22710f(0x257)+_0x22710f(0x259)+'tent.');const _0x3fd2bf=_0x317f76[_0x22710f(0x230)](join,process['cwd'](),_0x317f76['TPZPc']),_0x65df95=_0x317f76[_0x22710f(0x201)](join,_0x3fd2bf,_0x5bda38);_0x317f76[_0x22710f(0x201)](mkdirSync,_0x3fd2bf,{'recursive':!![]}),_0x317f76['LgCMU'](writeFileSync,_0x65df95,_0x55e087['trim']()+'\x0a',_0x317f76[_0x22710f(0x214)]),section(_0x22710f(0x20b)+'G\x20GENERA'+_0x22710f(0x254)),_0x317f76[_0x22710f(0x234)](printKeyValues,[{'key':_0x22710f(0x249),'value':ok('OK')},{'key':_0x317f76['BVRvH'],'value':_0x65df95},{'key':_0x317f76['NcKWb'],'value':String(_0x21079c)}]);}function _0xada8(){const _0x3de017=['\x20Use\x20a\x20p','slice','OG\x20em\x20ma','):\x0a','ngelog.','\x20CHANGEL','hash','parseInt','cas\x0a\x0aHis','Status','rico\x20de\x20','PzCye','te\x20mudan','tors,\x20Do','lua\x20uma\x20','(((.+)+)','subject','AdRbC','Regras:\x0a','PRCEn','TED','ntos\x0a-\x20N','ecente\x20d','te\x20chang','author','elog\x20con','construc','207yBRZDK','\x20mudanca','coes\x20por','map','File','abaixo.\x0a','toLowerC','no\x20histo','Invalid\x20','NFD','1289890aILjaK','\x0aCrie\x20um','used','.md','1762856iRwmIt','s\x20(ultim','isNaN','kvXVp','GnATS','ositive\x20','s\x20value.','commits','unknown-','1912708UeidRT','GNOYN','\x20to\x20gene','-\x20Respon','JbsLF','e)\x0a-\x20Inc','\x20tipo\x20de','MAmxd','join','o\x20genera','itulo,\x20r','esumo\x20cu','replace','UnvKb','CHANGELO','55aetYla','message','nerating','SnxnR','7FbSwXx','invoke','toString','Failed\x20t','BPBnj','apply','1663341ErBQGN','com\x20list','rto\x20e\x20se','jRcNS','OEJWJ','AI\x20is\x20ge','a\x20curta\x20','--commit','s,\x20Refac','rkdown\x20c','ase','jqgmt','om\x20base\x20','KBDcP','torico\x20r','cs,\x20Chor','es,\x20Fixe','da\x20em\x20po','41988UywuXn','5910JtiLoU','trim','No\x20commi','date','l\x0a-\x20Estr','\x20(Featur','commits\x20','TkufS','ommits\x22\x20','e\x20commit','ts\x20found','JLhIm','length','toISOStr','hQuFR','do\x20Brasi','changelo','185030sepzoO','integer.','\x20|\x20','search','lGScZ','og...'];_0xada8=function(){return _0x3de017;};return _0xada8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1ac779,_0x4318a4){const _0x8a1ef1=_0x56b2,_0xad5f05=_0x1ac779();while(!![]){try{const _0x210c57=-parseInt(_0x8a1ef1(0x1d4))/0x1*(parseInt(_0x8a1ef1(0x282))/0x2)+-parseInt(_0x8a1ef1(0x26c))/0x3+-parseInt(_0x8a1ef1(0x1ff))/0x4*(-parseInt(_0x8a1ef1(0x1a3))/0x5)+parseInt(_0x8a1ef1(0x1b2))/0x6*(-parseInt(_0x8a1ef1(0x24f))/0x7)+parseInt(_0x8a1ef1(0x240))/0x8+-parseInt(_0x8a1ef1(0x1c8))/0x9*(-parseInt(_0x8a1ef1(0x236))/0xa)+parseInt(_0x8a1ef1(0x268))/0xb;if(_0x210c57===_0x4318a4)break;else _0xad5f05['push'](_0xad5f05['shift']());}catch(_0x49a176){_0xad5f05['push'](_0xad5f05['shift']());}}}(_0x1024,0xeb776));const _0xddb6b2=(function(){let _0x4d4690=!![];return function(_0x107234,_0x21a29a){const _0x1723f9=_0x4d4690?function(){const _0x559cb0=_0x56b2;if(_0x21a29a){const _0x4b97b4=_0x21a29a[_0x559cb0(0x247)](_0x107234,arguments);return _0x21a29a=null,_0x4b97b4;}}:function(){};return _0x4d4690=![],_0x1723f9;};}()),_0x4c1a67=_0xddb6b2(this,function(){const _0x12ba26=_0x56b2,_0x535265={'dVgCF':_0x12ba26(0x1eb)+_0x12ba26(0x1e6)};return _0x4c1a67[_0x12ba26(0x279)]()['search'](_0x535265[_0x12ba26(0x1af)])[_0x12ba26(0x279)]()['construc'+'tor'](_0x4c1a67)['search']('(((.+)+)'+_0x12ba26(0x1e6));});_0x4c1a67();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 _0x242a35=_0x56b2,_0x67bf04={'FAjDo':function(_0x480c98,_0x591466){return _0x480c98 instanceof _0x591466;},'IPXvm':function(_0x33eec8,_0x4f4681){return _0x33eec8(_0x4f4681);}};try{return createLLM();}catch(_0xebf304){const _0x48097b=_0x67bf04['FAjDo'](_0xebf304,Error)?_0xebf304['message']:_0x67bf04[_0x242a35(0x1fa)](String,_0xebf304);failAndExit(_0x48097b);}}function _0x1024(){const _0x3b6fe2=['fullName','ons,\x20','files','Consider','\x0aWrite\x20o','lTowl','taged\x20ch','t\x20--all`','modified','excerpt','SKIPPED','oJKNb','aTUEQ','\x0a\x0aPatch\x20','d\x20files.','every','lint','fix','17689166eJmvgv','toLowerC','qtpKT','eam\x20foun','2234052WgMZeH','insertio','kOZuC','sing\x20thi','pleted\x20a','),\x20','nce\x20stro','\x20Abortin','\x20renamed','\x0a-\x20Use\x20f','metrics','ns\x0a\x0aStag','subject\x20','toString','opwln','(none)','RNyQy','planatio','ted)','\x20commits','WMdGQ','remote','74lmUqqi','UUMZT','hQXiu','Staged\x20a','aged\x20dif','path','PQvpX','CANCELED','content','map','gCMAE','lOpGo','platform','essage\x20i','rEYEA','DqldT','qWmfk','Failed\x20t','GgvWh','startsWi','WcUFJ','GLJok','hIWLb','deleted','type>(op','d\x20commit','irst\x20or\x20','TIP','eturn\x20ON','\x20inserti','o\x20create','QesnR','JIxOv','RebMk','cope):\x20<','Large\x20st','AgZBv','e?\x20(Y/n)','CHECK','ific\x0a-\x20R','wyWRs','vBzrV','y/N):\x20','eam\x20conf','\x20more','PWDcp','am?\x20(y/N','7750vmVnhc','es\x20or\x20ex','TQivq','.\x20Push\x20n','sent','\x0a-\x20Keep\x20','ngly\x20sug','add\x20.).','oKRbZ','Push\x20com','\x20patch\x20e','Diff\x20sta','dVgCF','xcerpt.','added','1344bNFZAL','ssage,\x20w','sponse..','igured\x20(','FYNyO','dcYUU','ySvxb','\x20files\x20c','--if-pre','\x20suggest','o\x20genera','git','concise\x20','pGszS','KGRtR','all','\x0a\x20\x20','qzySM','No\x20stage','\x20(trunca','qkJEP','fileCoun','369GaTnGr','g\x20commit','WVqZU','MwlAG','anges.\x0aR','runcated','f\x20you\x20ha','ntional\x20','refactor','xWOgl','mpEhI','ed\x20files','30167SOIwSY','...','WARNING','ss\x20evide','eXfAH','t\x20messag','dWuZm','\x22\x20to\x20\x22','ed.','HuAuA','log','docs','npm','renamed','):\x20','\x20deleted','run\x20`gem','multiple','+)+$','f\x20(','\x20Prompt\x20','ion):\x20','ot\x20avail','(((.+)+)','ve\x20stage','ns.\x20','SavbG','reated.','slice','No\x20file\x20','mmit','\x20added,\x20','es\x20(git\x20','Final\x20co','deletion','tqilU','niftP','\x20chars).','IPXvm','patchCha','status','eGEdQ','truncate','4012iOtqGg','ODFBu','d.\x20Push\x20','ode\x20fenc','e:\x20','XuLDp','o\x20push\x20t','test','ype\x20unle','sting\x20re','No\x20git\x20r','npm.cmd','\x20complet','GNmYG','subject>','lude\x20a\x20t','endsWith','inking\x20a','cWAoK','\x20splitti','cAUAf','chore','commit','Summary','uvSZK','o\x20push\x20\x22','Gjvjj','mlEyo','nd\x20upstr','feat','Detected','mfcWD','\x22\x20and\x20se','\x20deletio','win32','oLGdl','push','kXGTh','TElQM','and\x20spec','\x20failed.','GRsMY','aczWg','diffStat','ase','WWzca','n\x20Englis','2.\x20SUMMA','\x20to\x20keep','ommit\x20me','Staged\x20f','\x20staged\x20','length','label','ll\x20chang','167860VnKeqL','Commit\x20w','xKxYn','zBVVk','tfXpe','Start\x20wi','dUDHk','ksAcl','\x20Stage\x20c','4.\x20CONFI','6817144beQUUJ','\x22\x20now?\x20(','BJbKV','No\x20upstr','dGYyg','args','fCPYD','apply','CrqYy','Commit\x20m','rJGaQ','join','hanges\x20f','\x0a\x0aDiff\x20s','inherit','58681KOOjQb','tat:\x0a','BvbgY','paths\x20av','LY\x20the\x20c','gests\x20an','branch'];_0x1024=function(){return _0x3b6fe2;};return _0x1024();}function countByStatus(_0x291df8){const _0x521b2f=_0x56b2,_0x2b30ca={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x1eb130 of _0x291df8['files']){if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('A')){_0x2b30ca[_0x521b2f(0x1b1)]+=0x1;continue;}if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('M')){_0x2b30ca[_0x521b2f(0x25e)]+=0x1;continue;}if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('D')){_0x2b30ca[_0x521b2f(0x18b)]+=0x1;continue;}if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('R')){_0x2b30ca[_0x521b2f(0x1e1)]+=0x1;continue;}_0x2b30ca['other']+=0x1;}return _0x2b30ca;}function detectCommitType(_0x2b6f0e){const _0x8ab85d=_0x56b2,_0x21e53b={'hQXiu':function(_0x2804f9,_0x303f98){return _0x2804f9===_0x303f98;},'WWzca':_0x8ab85d(0x266),'DqldT':'run','kXGTh':_0x8ab85d(0x1ba)+'sent','rJGaQ':'test','JIxOv':function(_0x35c883,_0x508b3f,_0x402cdb){return _0x35c883(_0x508b3f,_0x402cdb);},'GRsMY':_0x8ab85d(0x19a),'FpRRm':function(_0xe34872,_0x16a413,_0x5391ae){return _0xe34872(_0x16a413,_0x5391ae);},'qWmfk':function(_0x5482b2,_0x47ff7e){return _0x5482b2(_0x47ff7e);},'pGszS':function(_0x31181e,_0x5ba313){return _0x31181e>_0x5ba313;},'qzySM':function(_0x256036,_0x403ea1){return _0x256036!==_0x403ea1;},'UUMZT':'GEUOV','mlEyo':_0x8ab85d(0x1df),'lOpGo':function(_0xca122,_0x30c84b){return _0xca122>_0x30c84b;},'eXfAH':function(_0x3a7ec2,_0x5a3e61){return _0x3a7ec2===_0x5a3e61;},'MwlAG':_0x8ab85d(0x214),'ksAcl':function(_0x355827,_0x501e4c){return _0x355827>=_0x501e4c;},'zBVVk':function(_0x35d4cf,_0x243be2){return _0x35d4cf>_0x243be2;},'uvSZK':_0x8ab85d(0x21c),'qtpKT':_0x8ab85d(0x267)},_0x69026c=_0x2b6f0e[_0x8ab85d(0x258)]['map'](_0x3600a6=>_0x3600a6[_0x8ab85d(0x287)][_0x8ab85d(0x269)+_0x8ab85d(0x22b)]()),_0x5e3a5c=_0x21e53b[_0x8ab85d(0x184)](countByStatus,_0x2b6f0e);if(_0x21e53b[_0x8ab85d(0x1bf)](_0x69026c['length'],0x0)&&_0x69026c[_0x8ab85d(0x265)](_0x3ec162=>/(^|\/)(readme|docs?|changelog)/[_0x8ab85d(0x206)](_0x3ec162)||_0x3ec162[_0x8ab85d(0x20f)]('.md'))){if(_0x21e53b[_0x8ab85d(0x1c3)](_0x21e53b[_0x8ab85d(0x283)],_0x8ab85d(0x195)))return _0x21e53b[_0x8ab85d(0x21a)];else{const _0xa58120=_0x21e53b[_0x8ab85d(0x284)](_0x101685[_0x8ab85d(0x180)],_0x8ab85d(0x221))?_0x8ab85d(0x20a):_0x8ab85d(0x1e0),_0x8f5220=[{'label':_0x21e53b[_0x8ab85d(0x22c)],'args':[_0x21e53b['DqldT'],_0x21e53b[_0x8ab85d(0x22c)],_0x21e53b[_0x8ab85d(0x224)]]},{'label':_0x21e53b['rJGaQ'],'args':[_0x21e53b[_0x8ab85d(0x183)],_0x21e53b['rJGaQ'],_0x21e53b[_0x8ab85d(0x224)]]}];for(const _0xcdfd22 of _0x8f5220){_0x49282a[_0x8ab85d(0x1de)](_0x21e53b[_0x8ab85d(0x194)](_0x24a174,_0x21e53b[_0x8ab85d(0x228)],'Running\x20'+_0xcdfd22['label']+_0x8ab85d(0x1d5)));try{_0x15b267(_0xa58120,_0xcdfd22[_0x8ab85d(0x245)],{'stdio':'inherit'}),_0x49b635[_0x8ab85d(0x1de)](_0x21e53b['FpRRm'](_0x3529be,'OK',_0xcdfd22[_0x8ab85d(0x234)]+(_0x8ab85d(0x20b)+_0x8ab85d(0x1dc))));}catch{_0x21e53b[_0x8ab85d(0x184)](_0x3d88ed,_0xcdfd22[_0x8ab85d(0x234)]+(_0x8ab85d(0x227)+'\x20Abortin'+'g\x20commit'+'.'));}}}}if(_0x21e53b[_0x8ab85d(0x17f)](_0x69026c[_0x8ab85d(0x233)],0x0)&&_0x69026c[_0x8ab85d(0x265)](_0xf6c392=>/(^|\/)(test|tests|__tests__|spec)/[_0x8ab85d(0x206)](_0xf6c392)||/\.(spec|test)\./[_0x8ab85d(0x206)](_0xf6c392)))return _0x21e53b[_0x8ab85d(0x24a)];if(_0x21e53b[_0x8ab85d(0x17f)](_0x5e3a5c[_0x8ab85d(0x18b)],0x0)&&_0x21e53b[_0x8ab85d(0x1d8)](_0x5e3a5c['added'],0x0)&&_0x5e3a5c[_0x8ab85d(0x25e)]===0x0)return _0x21e53b[_0x8ab85d(0x1cb)];if(_0x21e53b[_0x8ab85d(0x23d)](_0x5e3a5c[_0x8ab85d(0x1b1)],_0x5e3a5c[_0x8ab85d(0x25e)])&&_0x21e53b['zBVVk'](_0x5e3a5c['added'],0x0))return _0x21e53b[_0x8ab85d(0x217)];if(_0x21e53b[_0x8ab85d(0x239)](_0x5e3a5c[_0x8ab85d(0x25e)],0x0)&&_0x2b6f0e['metrics']['insertio'+'ns']<=_0x2b6f0e[_0x8ab85d(0x276)][_0x8ab85d(0x1f6)+'s'])return _0x21e53b[_0x8ab85d(0x26a)];return _0x8ab85d(0x1d0);}function summarizeChanges(_0x1380e4){const _0x4937df=_0x56b2,_0x27f749={'BvbgY':function(_0x3b0f59,_0x7bdb75){return _0x3b0f59>_0x7bdb75;},'lTowl':function(_0x272219,_0x2e6ff4){return _0x272219-_0x2e6ff4;},'oasFo':function(_0x28ebe,_0x4be302){return _0x28ebe||_0x4be302;}},_0x2274e6=countByStatus(_0x1380e4),_0x2089f4=_0x1380e4[_0x4937df(0x258)][_0x4937df(0x1f0)](0x0,0x3)['map'](_0x43c438=>_0x43c438[_0x4937df(0x287)]),_0x38b7fa=_0x27f749[_0x4937df(0x251)](_0x1380e4[_0x4937df(0x258)][_0x4937df(0x233)],0x3)?_0x2089f4[_0x4937df(0x24b)](',\x20')+'\x20+'+_0x27f749[_0x4937df(0x25b)](_0x1380e4[_0x4937df(0x258)]['length'],0x3)+_0x4937df(0x1a0):_0x2089f4[_0x4937df(0x24b)](',\x20');return _0x1380e4[_0x4937df(0x276)][_0x4937df(0x1c7)+'t']+(_0x4937df(0x1b9)+'hanged\x20(')+_0x2274e6[_0x4937df(0x1b1)]+_0x4937df(0x1f3)+_0x2274e6[_0x4937df(0x25e)]+('\x20modifie'+'d,\x20')+_0x2274e6[_0x4937df(0x18b)]+(_0x4937df(0x1e3)+',\x20')+_0x2274e6[_0x4937df(0x1e1)]+(_0x4937df(0x274)+_0x4937df(0x271))+_0x1380e4[_0x4937df(0x276)][_0x4937df(0x26d)+'ns']+(_0x4937df(0x191)+_0x4937df(0x257))+_0x1380e4[_0x4937df(0x276)][_0x4937df(0x1f6)+'s']+(_0x4937df(0x220)+_0x4937df(0x1ed))+_0x27f749['oasFo'](_0x38b7fa,_0x4937df(0x1f1)+_0x4937df(0x252)+'ailable.');}function _0x56b2(_0x1fa3cc,_0x420eb3){_0x1fa3cc=_0x1fa3cc-0x17f;const _0x27a923=_0x1024();let _0x4c1a67=_0x27a923[_0x1fa3cc];return _0x4c1a67;}function formatStagedFiles(_0x2163e4){const _0x3fff8e=_0x56b2;return _0x2163e4['files']['map'](_0x49ff2c=>'-\x20'+_0x49ff2c[_0x3fff8e(0x1fc)]+'\x20'+_0x49ff2c[_0x3fff8e(0x287)])[_0x3fff8e(0x24b)]('\x0a');}function runOptionalChecks(){const _0x454281=_0x56b2,_0x1c5374={'GNmYG':function(_0xc23310,_0x56b954){return _0xc23310===_0x56b954;},'PQvpX':'win32','vBzrV':_0x454281(0x20a),'XuLDp':_0x454281(0x1e0),'xKxYn':_0x454281(0x266),'qkJEP':'run','fCPYD':_0x454281(0x1ba)+_0x454281(0x1a7),'oLGdl':'test','oKRbZ':function(_0x38d685,_0x242411,_0x309577){return _0x38d685(_0x242411,_0x309577);},'opwln':'CHECK','hIWLb':function(_0x175642,_0x406a5f,_0x1dc166,_0x44e1e2){return _0x175642(_0x406a5f,_0x1dc166,_0x44e1e2);},'Gjvjj':function(_0x13d0f6,_0x55e86a,_0x10681a){return _0x13d0f6(_0x55e86a,_0x10681a);},'xPWOS':function(_0xb3654,_0x345d3a){return _0xb3654(_0x345d3a);}},_0x2eb936=_0x1c5374[_0x454281(0x20c)](process[_0x454281(0x180)],_0x1c5374[_0x454281(0x288)])?_0x1c5374[_0x454281(0x19d)]:_0x1c5374[_0x454281(0x204)],_0x4a14ca=[{'label':_0x1c5374[_0x454281(0x238)],'args':[_0x1c5374[_0x454281(0x1c6)],_0x1c5374['xKxYn'],_0x1c5374[_0x454281(0x246)]]},{'label':_0x454281(0x206),'args':['run',_0x1c5374[_0x454281(0x222)],_0x1c5374[_0x454281(0x246)]]}];for(const _0x17a857 of _0x4a14ca){console['log'](_0x1c5374[_0x454281(0x1ab)](info,_0x1c5374[_0x454281(0x27a)],'Running\x20'+_0x17a857[_0x454281(0x234)]+_0x454281(0x1d5)));try{_0x1c5374[_0x454281(0x18a)](execFileSync,_0x2eb936,_0x17a857['args'],{'stdio':_0x454281(0x24e)}),console['log'](_0x1c5374[_0x454281(0x219)](ok,'OK',_0x17a857['label']+(_0x454281(0x20b)+'ed.')));}catch{_0x1c5374['xPWOS'](failAndExit,_0x17a857[_0x454281(0x234)]+(_0x454281(0x227)+_0x454281(0x273)+_0x454281(0x1c9)+'.'));}}}async function maybePushCurrentBranch(){const _0x49beca=_0x56b2,_0x541be8={'QesnR':function(_0x3b1493,_0x311156,_0x552d83){return _0x3b1493(_0x311156,_0x552d83);},'VtsPH':function(_0x1884fb){return _0x1884fb();},'cAUAf':function(_0xf7a59c){return _0xf7a59c();},'EUvtb':_0x49beca(0x1bd),'XdHRy':_0x49beca(0x223),'oJKNb':_0x49beca(0x24e),'TQivq':function(_0x5c7a3f,_0xf38b6f){return _0x5c7a3f!==_0xf38b6f;},'mpEhI':_0x49beca(0x229),'BJbKV':function(_0x4a9e88,_0x29b1fe){return _0x4a9e88(_0x29b1fe);},'gCMAE':_0x49beca(0x260),'kOZuC':_0x49beca(0x209)+'emote\x20co'+'nfigured'+_0x49beca(0x1a6)+_0x49beca(0x1ea)+'able.','orPLL':function(_0x237b26,_0x148a50){return _0x237b26(_0x148a50);},'iSQyv':function(_0x1946a4,_0x227f7b){return _0x1946a4!==_0x227f7b;},'mfcWD':_0x49beca(0x248),'rLfAb':function(_0x3f236e,_0x54084e,_0x426eb4,_0x32960e){return _0x3f236e(_0x54084e,_0x426eb4,_0x32960e);},'dWuZm':function(_0x10b9d1,_0x12c78f,_0x16fdd4){return _0x10b9d1(_0x12c78f,_0x16fdd4);}},_0x329fa5=_0x541be8['VtsPH'](getCurrentBranch),_0x200e9d=_0x541be8[_0x49beca(0x213)](getUpstreamInfo);if(_0x200e9d){const _0x431821=await askConfirmation('Push\x20cur'+'rent\x20bra'+'nch\x20\x22'+_0x329fa5+_0x49beca(0x1db)+_0x200e9d[_0x49beca(0x256)]+(_0x49beca(0x241)+_0x49beca(0x19e)));if(!_0x431821)return;try{execFileSync(_0x541be8['EUvtb'],[_0x541be8['XdHRy'],_0x200e9d[_0x49beca(0x281)],_0x329fa5+':'+_0x200e9d[_0x49beca(0x255)]],{'stdio':_0x541be8[_0x49beca(0x261)]}),console[_0x49beca(0x1de)](_0x541be8[_0x49beca(0x193)](ok,'OK',_0x49beca(0x1ac)+'pleted\x20t'+'o\x20'+_0x200e9d[_0x49beca(0x256)]+'.'));}catch{_0x541be8[_0x49beca(0x1a5)](_0x541be8[_0x49beca(0x1d2)],_0x541be8[_0x49beca(0x1d2)])?(_0x1eaf1f(),_0x1b615b[_0x49beca(0x1de)](_0x541be8[_0x49beca(0x193)](_0x3ed845,'OK',_0x49beca(0x285)+_0x49beca(0x235)+_0x49beca(0x1f4)+_0x49beca(0x1aa)))):_0x541be8[_0x49beca(0x242)](failAndExit,_0x49beca(0x185)+_0x49beca(0x205)+'o\x20'+_0x200e9d[_0x49beca(0x256)]+'.');}return;}const _0x1bae1f=_0x541be8[_0x49beca(0x213)](getDefaultRemote);if(!_0x1bae1f){console['log'](_0x541be8[_0x49beca(0x193)](warn,_0x541be8[_0x49beca(0x28c)],_0x541be8[_0x49beca(0x26e)]));return;}const _0x1e6cb0=await _0x541be8['orPLL'](askConfirmation,_0x49beca(0x243)+_0x49beca(0x26b)+_0x49beca(0x201)+'\x22'+_0x329fa5+_0x49beca(0x1db)+_0x1bae1f+'/'+_0x329fa5+(_0x49beca(0x21f)+'t\x20upstre'+_0x49beca(0x1a2)+_0x49beca(0x1e2)));if(!_0x1e6cb0){if(_0x541be8['iSQyv'](_0x541be8[_0x49beca(0x21e)],_0x49beca(0x1ca)))return;else return;}try{_0x541be8['rLfAb'](execFileSync,_0x541be8['EUvtb'],[_0x541be8['XdHRy'],'--set-up'+'stream',_0x1bae1f,_0x329fa5],{'stdio':_0x541be8['oJKNb']}),console['log'](_0x541be8[_0x49beca(0x1da)](ok,'OK',_0x49beca(0x1ac)+_0x49beca(0x270)+_0x49beca(0x21b)+_0x49beca(0x19f)+_0x49beca(0x1b5)+_0x1bae1f+'/'+_0x329fa5+').'));}catch{_0x541be8['BJbKV'](failAndExit,_0x49beca(0x185)+_0x49beca(0x218)+_0x329fa5+_0x49beca(0x1db)+_0x1bae1f+'\x22.');}}export async function generateCommit(_0x12f5bd={}){const _0x14857f=_0x56b2,_0x53e246={'wyWRs':function(_0x4acc82){return _0x4acc82();},'tfXpe':function(_0x27f8cd,_0x1e1c54){return _0x27f8cd(_0x1e1c54);},'aTUEQ':'1.\x20STAGE','ZnoxC':function(_0x5dc482){return _0x5dc482();},'FYNyO':_0x14857f(0x285)+_0x14857f(0x235)+_0x14857f(0x1f4)+_0x14857f(0x1aa),'ggQWN':function(_0x1f988f,_0x129776){return _0x1f988f===_0x129776;},'niftP':_0x14857f(0x1c4)+_0x14857f(0x264)+_0x14857f(0x23e)+_0x14857f(0x24c)+_0x14857f(0x18e)+_0x14857f(0x1e4)+'it\x20commi'+_0x14857f(0x25d)+'.','GLJok':function(_0x3b95a6,_0x359cb2,_0x164691){return _0x3b95a6(_0x359cb2,_0x164691);},'ySvxb':_0x14857f(0x231)+'iles','rEYEA':function(_0x29f667,_0xd94d58){return _0x29f667(_0xd94d58);},'xCuHT':_0x14857f(0x22e)+'RIZE','PWDcp':function(_0x50a339,_0x2b759b){return _0x50a339(_0x2b759b);},'dcYUU':function(_0x1959f7,_0x301488){return _0x1959f7(_0x301488);},'ODFBu':_0x14857f(0x216),'tqilU':_0x14857f(0x21d)+'\x20type','dUDHk':_0x14857f(0x1ae)+'t','SavbG':'(none)','SXfdG':function(_0x1a67a6,_0x20dffe){return _0x1a67a6>_0x20dffe;},'cWAoK':function(_0x1f0dfb,_0x5eeb50,_0x480852){return _0x1f0dfb(_0x5eeb50,_0x480852);},'WMdGQ':_0x14857f(0x1d6),'xWOgl':function(_0x3c4bca,_0x4e89eb){return _0x3c4bca(_0x4e89eb);},'HBUzV':_0x14857f(0x1c5)+_0x14857f(0x27e),'zRRRd':'AI\x20is\x20th'+_0x14857f(0x210)+'nd\x20reque'+_0x14857f(0x208)+_0x14857f(0x1b4)+'.','WcUFJ':function(_0x3236de,_0x211727){return _0x3236de(_0x211727);},'dGYyg':'Suggeste'+_0x14857f(0x18d),'iPBPg':_0x14857f(0x23f)+'RM','HuAuA':_0x14857f(0x1f5)+_0x14857f(0x1f2),'QVniS':function(_0x1cf825,_0x144674,_0x2cba71){return _0x1cf825(_0x144674,_0x2cba71);},'RNyQy':_0x14857f(0x289),'TElQM':_0x14857f(0x237)+'as\x20not\x20c'+_0x14857f(0x1ef),'eGEdQ':_0x14857f(0x1bd),'SkUvK':_0x14857f(0x24e),'AgZBv':function(_0x1cdc7a,_0x4e697f){return _0x1cdc7a(_0x4e697f);},'KGRtR':_0x14857f(0x185)+_0x14857f(0x192)+'\x20commit.'+'\x20Check\x20i'+_0x14857f(0x1ce)+_0x14857f(0x1ec)+_0x14857f(0x264),'GgvWh':function(_0x487ec9){return _0x487ec9();}},_0x2d8a79=_0x53e246[_0x14857f(0x19c)](getLLM);getGitStatus(),_0x53e246['tfXpe'](section,_0x53e246[_0x14857f(0x262)]);_0x12f5bd[_0x14857f(0x1c1)]&&(_0x53e246['ZnoxC'](stageAll),console[_0x14857f(0x1de)](ok('OK',_0x53e246[_0x14857f(0x1b6)])));const _0xdbbc2d=_0x53e246[_0x14857f(0x23a)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x53e246['ggQWN'](_0xdbbc2d['files'][_0x14857f(0x233)],0x0)&&_0x53e246[_0x14857f(0x23a)](failAndExit,_0x53e246[_0x14857f(0x1f8)]);_0xdbbc2d['metrics']['fileCoun'+'t']>=WARN_SPLIT_FILE_COUNT&&console['log'](warn(_0x14857f(0x18f),_0xdbbc2d[_0x14857f(0x276)][_0x14857f(0x1c7)+'t']+(_0x14857f(0x232)+'files\x20de'+'tected.\x20'+_0x14857f(0x259)+_0x14857f(0x212)+'ng\x20into\x20'+_0x14857f(0x1e5)+_0x14857f(0x27f)+'.')));_0x53e246[_0x14857f(0x189)](printList,_0x53e246[_0x14857f(0x1b8)],_0xdbbc2d[_0x14857f(0x258)][_0x14857f(0x28b)](_0x3ca4ba=>_0x3ca4ba['status']+'\x20'+_0x3ca4ba[_0x14857f(0x287)]));_0x12f5bd['check']&&(console[_0x14857f(0x1de)](),runOptionalChecks());_0x53e246[_0x14857f(0x182)](section,_0x53e246['xCuHT']);const _0x1343d8=_0x53e246['tfXpe'](summarizeChanges,_0xdbbc2d),_0x4bc67a=_0x53e246[_0x14857f(0x1a1)](detectCommitType,_0xdbbc2d);_0x53e246[_0x14857f(0x1b7)](printKeyValues,[{'key':_0x53e246[_0x14857f(0x200)],'value':_0x1343d8},{'key':_0x53e246[_0x14857f(0x1f7)],'value':_0x4bc67a},{'key':_0x53e246[_0x14857f(0x23c)],'value':_0xdbbc2d[_0x14857f(0x22a)]||_0x53e246[_0x14857f(0x1ee)]}]);_0x53e246['SXfdG'](_0xdbbc2d[_0x14857f(0x276)]['patchCha'+'rs'],WARN_PROMPT_DIFF_CHARS)&&console[_0x14857f(0x1de)](_0x53e246[_0x14857f(0x211)](warn,_0x53e246[_0x14857f(0x280)],_0x14857f(0x197)+_0x14857f(0x286)+_0x14857f(0x1e7)+_0xdbbc2d[_0x14857f(0x276)][_0x14857f(0x1fb)+'rs']+(_0x14857f(0x1f9)+_0x14857f(0x1e8)+'will\x20inc'+_0x14857f(0x20e)+_0x14857f(0x1cd)+_0x14857f(0x1ad)+_0x14857f(0x1b0))));const _0x3cf07e=_0x14857f(0x25a)+'ne\x20Conve'+_0x14857f(0x1cf)+_0x14857f(0x249)+_0x14857f(0x181)+_0x14857f(0x22d)+'h\x20based\x20'+'on\x20the\x20s'+_0x14857f(0x25c)+_0x14857f(0x1cc)+'ules:\x0a-\x20'+_0x14857f(0x23b)+'th\x20this\x20'+'likely\x20t'+_0x14857f(0x207)+_0x14857f(0x1d7)+_0x14857f(0x272)+_0x14857f(0x1a9)+_0x14857f(0x254)+'other\x20on'+_0x14857f(0x203)+_0x4bc67a+(_0x14857f(0x275)+'ormat:\x20<'+_0x14857f(0x18c)+'tional-s'+_0x14857f(0x196)+_0x14857f(0x20d)+_0x14857f(0x1a8)+_0x14857f(0x278)+_0x14857f(0x1be)+_0x14857f(0x226)+_0x14857f(0x19b)+_0x14857f(0x190)+_0x14857f(0x253)+_0x14857f(0x230)+_0x14857f(0x1b3)+'ithout\x20c'+_0x14857f(0x202)+_0x14857f(0x1a4)+_0x14857f(0x27d)+_0x14857f(0x277)+_0x14857f(0x1d3)+':\x0a')+_0x53e246[_0x14857f(0x1d1)](formatStagedFiles,_0xdbbc2d)+('\x0a\x0aShort\x20'+'summary:'+'\x0a')+_0x1343d8+(_0x14857f(0x24d)+_0x14857f(0x250))+(_0xdbbc2d[_0x14857f(0x22a)]||_0x53e246[_0x14857f(0x1ee)])+(_0x14857f(0x263)+_0x14857f(0x25f))+(_0xdbbc2d[_0x14857f(0x276)][_0x14857f(0x1fe)+'d']?_0x53e246['HBUzV']:'')+':\x0a'+(_0xdbbc2d['patch']||_0x14857f(0x27b))+_0x14857f(0x1c2);section('3.\x20SUGGE'+'ST');const _0x1c0d52=await _0x53e246[_0x14857f(0x189)](withProgress,_0x53e246['zRRRd'],()=>_0x2d8a79['invoke'](_0x3cf07e)),_0x109bd3=extractMessageText(_0x1c0d52[_0x14857f(0x28a)]);!_0x109bd3&&failAndExit(_0x14857f(0x185)+_0x14857f(0x1bc)+'te\x20commi'+_0x14857f(0x1d9)+'e.');_0x53e246[_0x14857f(0x188)](printKeyValues,[{'key':_0x53e246[_0x14857f(0x244)],'value':_0x109bd3}]),_0x53e246[_0x14857f(0x1d1)](section,_0x53e246['iPBPg']);const _0x5e5400=await _0x53e246[_0x14857f(0x189)](askEditableInput,'Edit\x20com'+'mit\x20mess'+'age\x20(pre'+'ss\x20Enter'+_0x14857f(0x22f)+_0x14857f(0x1bb)+_0x14857f(0x1e9),_0x109bd3);_0x53e246[_0x14857f(0x1a1)](printKeyValues,[{'key':_0x53e246[_0x14857f(0x1dd)],'value':_0x5e5400}]);const _0x2df234=await askConfirmation('Commit\x20u'+_0x14857f(0x26f)+'s\x20messag'+_0x14857f(0x199)+':\x20',{'defaultYes':!![]});if(!_0x2df234){console[_0x14857f(0x1de)](_0x53e246['QVniS'](warn,_0x53e246[_0x14857f(0x27c)],_0x53e246[_0x14857f(0x225)]));return;}try{execFileSync(_0x53e246[_0x14857f(0x1fd)],[_0x14857f(0x215),'-m',_0x5e5400],{'stdio':_0x53e246['SkUvK']});}catch{_0x53e246[_0x14857f(0x198)](failAndExit,_0x53e246[_0x14857f(0x1c0)]);}await _0x53e246[_0x14857f(0x186)](maybePushCurrentBranch);}
|
|
1
|
+
(function(_0x2bf9a,_0x44f82b){const _0x4c7851=_0x48dc,_0x1638e7=_0x2bf9a();while(!![]){try{const _0x19df5f=-parseInt(_0x4c7851(0x27c))/0x1*(parseInt(_0x4c7851(0x1d9))/0x2)+parseInt(_0x4c7851(0x2cf))/0x3+-parseInt(_0x4c7851(0x2cd))/0x4+parseInt(_0x4c7851(0x1bd))/0x5*(parseInt(_0x4c7851(0x20a))/0x6)+-parseInt(_0x4c7851(0x1d3))/0x7*(parseInt(_0x4c7851(0x2a2))/0x8)+-parseInt(_0x4c7851(0x2ad))/0x9+parseInt(_0x4c7851(0x220))/0xa*(parseInt(_0x4c7851(0x1bf))/0xb);if(_0x19df5f===_0x44f82b)break;else _0x1638e7['push'](_0x1638e7['shift']());}catch(_0x477235){_0x1638e7['push'](_0x1638e7['shift']());}}}(_0x581b,0xde4c9));const _0x3426f2=(function(){const _0x381198=_0x48dc,_0x2cd11c={'piZFD':function(_0x1e10d8){return _0x1e10d8();},'unJLw':function(_0x85fd4d,_0x1870b6){return _0x85fd4d instanceof _0x1870b6;},'kfdJf':function(_0x456509,_0x2fefac){return _0x456509(_0x2fefac);},'AxVMO':function(_0x21e187,_0x4e475c){return _0x21e187!==_0x4e475c;},'Wyblg':_0x381198(0x25f),'cesmY':_0x381198(0x255)};let _0x281368=!![];return function(_0x54054c,_0x3e0d1f){const _0x455cec=_0x281368?function(){const _0x5e796d=_0x48dc,_0x5510ae={'uoMOE':function(_0x2a0e72){const _0x1c0665=_0x48dc;return _0x2cd11c[_0x1c0665(0x267)](_0x2a0e72);},'jRohs':function(_0x3b1e41,_0x417de4){return _0x2cd11c['unJLw'](_0x3b1e41,_0x417de4);},'swtYs':function(_0x36284f,_0x104b4b){const _0x10b03b=_0x48dc;return _0x2cd11c[_0x10b03b(0x297)](_0x36284f,_0x104b4b);},'JcuJi':function(_0x118e27,_0x3af332){return _0x2cd11c['kfdJf'](_0x118e27,_0x3af332);}};if(_0x2cd11c[_0x5e796d(0x207)](_0x2cd11c[_0x5e796d(0x237)],_0x2cd11c[_0x5e796d(0x24e)])){if(_0x3e0d1f){const _0x2c3fb1=_0x3e0d1f['apply'](_0x54054c,arguments);return _0x3e0d1f=null,_0x2c3fb1;}}else try{return _0x5510ae[_0x5e796d(0x272)](_0x176cd0);}catch(_0x14d3f0){const _0x4fd6af=_0x5510ae[_0x5e796d(0x2c7)](_0x14d3f0,_0x133a70)?_0x14d3f0['message']:_0x5510ae[_0x5e796d(0x22e)](_0x5119fa,_0x14d3f0);_0x5510ae[_0x5e796d(0x26d)](_0x4b441b,_0x4fd6af);}}:function(){};return _0x281368=![],_0x455cec;};}()),_0x4a5637=_0x3426f2(this,function(){const _0x516209=_0x48dc,_0x5244ed={'htfFU':_0x516209(0x206)+_0x516209(0x242)};return _0x4a5637[_0x516209(0x274)]()[_0x516209(0x2b1)](_0x5244ed[_0x516209(0x208)])[_0x516209(0x274)]()[_0x516209(0x249)+_0x516209(0x2c8)](_0x4a5637)['search'](_0x5244ed[_0x516209(0x208)]);});function _0x581b(){const _0x19c277=['eam\x20foun','iles','ACDks','LVJrm','IrfFj','Large\x20st','irst\x20or\x20','6192067coCJnt','t\x20upstre','WdXSv','startsWi','YTapD','\x20inserti','34OnNMuq','3.\x20SUGGE','aged\x20dif','ieNZf','deleted','f\x20(','\x20deleted','BSuSK','patchCha','on\x20the\x20s','toLowerC','AlpCf','check','WOXzq','Summary','DTyBZ','taged\x20ch','am?\x20(y/N','mAdwq','YkpRE','paths\x20av','No\x20stage','ornvW','patch','content','\x0a-\x20Use\x20f','mqKqJ','ng\x20into\x20','.\x20Push\x20n','eam\x20conf','esEMh','subject>','ommit\x20me','\x20suggest','SnXwx','essage\x20i','y/N):\x20','uwtNX','Diff\x20sta','\x20Check\x20i','ssage,\x20w','ormat:\x20<','type>(op','vCLVf','runcated','(((.+)+)','AxVMO','htfFU','reated.','102MYhuDu','ntional\x20','xqoLd','length','Consider','add\x20.).','\x20files\x20c','...','platform','\x20splitti','CkJsd','n\x20Englis','nfigured','nd\x20reque','\x20commit.','ABHEy','qVnma','NFuRp','EBrCw','g\x20commit','--if-pre','es\x20or\x20ex','10xPNBnR','rZMrC','vhmEt','fullName','\x0a\x0aShort\x20','GmUtk','log','igured\x20(','insertio','AI\x20is\x20th','status','chore','planatio','XCoJI','swtYs','zbWWP','join','.md','summary:','label','sent','CHECK','Staged\x20f','Wyblg','able.','es\x20(git\x20','Running\x20','UKsCB','truncate','hanges\x20f','VybRj','jSvgP','4.\x20CONFI','TIP','+)+$','\x20renamed','kLBrc','and\x20spec','ules:\x0a-\x20','xKIHs','files\x20de','construc','wxuhw','ithout\x20c','te\x20commi','\x22\x20now?\x20(','cesmY','gests\x20an','s\x20messag','OcDpI','t\x20--all`','pleted\x20a','nch\x20\x22','aKooE','d.\x20Push\x20','test','\x20complet','excerpt','every','gpAhz','fix','multiple','nOOaY','uvIZN','ed.','ted)','ns.\x20','ons,\x20','\x20chars).','yRbHo','Commit\x20w','piZFD','slice','ns\x0a\x0aStag','Push\x20cur','\x20more','d\x20files.','JcuJi','tat:\x0a','git','o\x20create','EJWUS','uoMOE','t\x20messag','toString','(none)','remote','modified','aZkAD','d\x20commit','EyJho','tESyG','40835PUjeni','\x20staged\x20','ztGVr','Start\x20wi','docs','\x22\x20and\x20se','jhfNM','YMLVK','added','veHlL','\x0a-\x20Keep\x20','f\x20you\x20ha','toGPn','will\x20inc','lint','\x0aWrite\x20o','LrlqU','Push\x20com','zLBfy','zZcsJ','uSCEs','npm.cmd','\x20Prompt\x20','mit\x20mess','nce\x20stro','fileCoun','IlBUs','kfdJf','pleted\x20t','1.\x20STAGE','stream','rIVUo','hanged\x20(','\x0a\x0aPatch\x20','metrics','Commit\x20u','Wiztc','e?\x20(Y/n)','16SbNJVH','ion):\x20','e:\x20','\x20type','h\x20based\x20','Suggeste','\x20failed.','CYgnR','inherit','tqTcB','refactor','16041447vGTVLv','mmit','xcerpt.','cope):\x20<','search','No\x20file\x20','\x20Abortin','\x20deletio','mhxbj','lghJI','inking\x20a','ific\x0a-\x20R','iWORO','ve\x20stage','wmkxU','sponse..','vQNZA','SKIPPED','MTjix','ocEDO','LeMlt','lGyNw','files','push','Whuuo','jzfcr','jRohs','tor','concise\x20','\x20commits','FdfiT','Failed\x20t','5105412rNGRtL','rent\x20bra','641205rPvjrx','sing\x20thi','\x20(trunca','ATHLr','th\x20this\x20','eturn\x20ON','o\x20push\x20t','tGQtT','\x22\x20to\x20\x22','LY\x20the\x20c','GnSBV','ype\x20unle','Edit\x20com','tional-s','),\x20','gGGwG','nrHiQ','2.\x20SUMMA','o\x20push\x20\x22','Staged\x20a','422665AGwlmB','ot\x20avail','52600174iYVvgE','subject\x20','WARNING','PYRwp','JuMEJ','path','ed\x20files','ailable.','endsWith','map','LCjuH','fFazl','GOXPI'];_0x581b=function(){return _0x19c277;};return _0x581b();}_0x4a5637();function _0x48dc(_0x5b5989,_0x57f32b){_0x5b5989=_0x5b5989-0x1b5;const _0x1dae50=_0x581b();let _0x4a5637=_0x1dae50[_0x5b5989];return _0x4a5637;}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 _0x61ce4b=_0x48dc,_0x3fe2a9={'xKIHs':function(_0x368db4,_0x416232){return _0x368db4 instanceof _0x416232;},'PBARV':function(_0x489d5f,_0x6ac68a){return _0x489d5f(_0x6ac68a);},'ieNZf':function(_0x41b356,_0xe4c35f){return _0x41b356(_0xe4c35f);}};try{return createLLM();}catch(_0x2eb21a){const _0x17eefd=_0x3fe2a9[_0x61ce4b(0x247)](_0x2eb21a,Error)?_0x2eb21a['message']:_0x3fe2a9['PBARV'](String,_0x2eb21a);_0x3fe2a9[_0x61ce4b(0x1dc)](failAndExit,_0x17eefd);}}function countByStatus(_0x28e37f){const _0x1fd41a=_0x48dc,_0x29d71b={'gpAhz':_0x1fd41a(0x280),'lGyNw':_0x1fd41a(0x2c0)},_0x872de4={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0xe550a2 of _0x28e37f['files']){if(_0x29d71b[_0x1fd41a(0x2c2)]!==_0x29d71b[_0x1fd41a(0x2c2)])return _0x29d71b[_0x1fd41a(0x25b)];else{if(_0xe550a2[_0x1fd41a(0x22a)][_0x1fd41a(0x1d6)+'th']('A')){_0x872de4[_0x1fd41a(0x284)]+=0x1;continue;}if(_0xe550a2[_0x1fd41a(0x22a)][_0x1fd41a(0x1d6)+'th']('M')){_0x872de4['modified']+=0x1;continue;}if(_0xe550a2[_0x1fd41a(0x22a)]['startsWi'+'th']('D')){_0x872de4[_0x1fd41a(0x1dd)]+=0x1;continue;}if(_0xe550a2['status']['startsWi'+'th']('R')){_0x872de4['renamed']+=0x1;continue;}_0x872de4['other']+=0x1;}}return _0x872de4;}function detectCommitType(_0x367052){const _0x563b81=_0x48dc,_0x5a30f2={'DTyBZ':function(_0x378a98,_0x5e42cd){return _0x378a98>_0x5e42cd;},'tqTcB':_0x563b81(0x280),'iWORO':function(_0x5ea01c,_0x5ca4f1){return _0x5ea01c>_0x5ca4f1;},'zZcsJ':function(_0xbbd49f,_0x4dbce8){return _0xbbd49f===_0x4dbce8;},'aZkAD':function(_0x3fe5a8,_0x32951e){return _0x3fe5a8>=_0x32951e;},'qVnma':function(_0x2c2fa8,_0x53be42){return _0x2c2fa8>_0x53be42;},'CkJsd':function(_0x2dfbf8,_0x6e604d){return _0x2dfbf8<=_0x6e604d;},'nOOaY':_0x563b81(0x25c),'MODTE':_0x563b81(0x2ac)},_0x115294=_0x367052[_0x563b81(0x2c3)][_0x563b81(0x1c8)](_0x40acc2=>_0x40acc2[_0x563b81(0x1c4)][_0x563b81(0x1e3)+'ase']()),_0x3b6990=countByStatus(_0x367052);if(_0x5a30f2['DTyBZ'](_0x115294['length'],0x0)&&_0x115294[_0x563b81(0x25a)](_0x4dd843=>/(^|\/)(readme|docs?|changelog)/[_0x563b81(0x257)](_0x4dd843)||_0x4dd843[_0x563b81(0x1c7)](_0x563b81(0x231))))return _0x5a30f2[_0x563b81(0x2ab)];if(_0x5a30f2[_0x563b81(0x1e8)](_0x115294[_0x563b81(0x20d)],0x0)&&_0x115294['every'](_0xb78868=>/(^|\/)(test|tests|__tests__|spec)/[_0x563b81(0x257)](_0xb78868)||/\.(spec|test)\./[_0x563b81(0x257)](_0xb78868)))return _0x563b81(0x257);if(_0x5a30f2[_0x563b81(0x2b9)](_0x3b6990['deleted'],0x0)&&_0x3b6990[_0x563b81(0x284)]===0x0&&_0x5a30f2[_0x563b81(0x28f)](_0x3b6990[_0x563b81(0x277)],0x0))return _0x563b81(0x22b);if(_0x5a30f2[_0x563b81(0x278)](_0x3b6990[_0x563b81(0x284)],_0x3b6990[_0x563b81(0x277)])&&_0x5a30f2['qVnma'](_0x3b6990[_0x563b81(0x284)],0x0))return'feat';if(_0x5a30f2[_0x563b81(0x21a)](_0x3b6990[_0x563b81(0x277)],0x0)&&_0x5a30f2[_0x563b81(0x214)](_0x367052[_0x563b81(0x29e)][_0x563b81(0x228)+'ns'],_0x367052['metrics']['deletion'+'s']))return _0x5a30f2[_0x563b81(0x25e)];return _0x5a30f2['MODTE'];}function summarizeChanges(_0x48a1c4){const _0x578fbc=_0x48dc,_0x50649e={'eFomB':function(_0x1b796d,_0x43ff0b){return _0x1b796d(_0x43ff0b);},'vQNZA':function(_0x25e12d,_0x5d9e4b){return _0x25e12d>_0x5d9e4b;},'EBrCw':function(_0x5183af,_0x55aefa){return _0x5183af||_0x55aefa;},'mhxbj':_0x578fbc(0x2b2)+_0x578fbc(0x1ed)+_0x578fbc(0x1c6)},_0x311710=_0x50649e['eFomB'](countByStatus,_0x48a1c4),_0x1cc3a5=_0x48a1c4[_0x578fbc(0x2c3)][_0x578fbc(0x268)](0x0,0x3)[_0x578fbc(0x1c8)](_0xc9cb51=>_0xc9cb51[_0x578fbc(0x1c4)]),_0x48c34c=_0x50649e[_0x578fbc(0x2bd)](_0x48a1c4[_0x578fbc(0x2c3)][_0x578fbc(0x20d)],0x3)?_0x1cc3a5[_0x578fbc(0x230)](',\x20')+'\x20+'+(_0x48a1c4[_0x578fbc(0x2c3)][_0x578fbc(0x20d)]-0x3)+_0x578fbc(0x26b):_0x1cc3a5[_0x578fbc(0x230)](',\x20');return _0x48a1c4[_0x578fbc(0x29e)][_0x578fbc(0x295)+'t']+(_0x578fbc(0x210)+_0x578fbc(0x29c))+_0x311710['added']+'\x20added,\x20'+_0x311710['modified']+('\x20modifie'+'d,\x20')+_0x311710[_0x578fbc(0x1dd)]+(_0x578fbc(0x1df)+',\x20')+_0x311710['renamed']+(_0x578fbc(0x243)+_0x578fbc(0x1b7))+_0x48a1c4['metrics']['insertio'+'ns']+(_0x578fbc(0x1d8)+_0x578fbc(0x263))+_0x48a1c4['metrics']['deletion'+'s']+(_0x578fbc(0x2b4)+_0x578fbc(0x262))+_0x50649e[_0x578fbc(0x21c)](_0x48c34c,_0x50649e[_0x578fbc(0x2b5)]);}function formatStagedFiles(_0x416a79){const _0xfeb8a6=_0x48dc;return _0x416a79['files'][_0xfeb8a6(0x1c8)](_0x3278bb=>'-\x20'+_0x3278bb[_0xfeb8a6(0x22a)]+'\x20'+_0x3278bb[_0xfeb8a6(0x1c4)])['join']('\x0a');}function runOptionalChecks(){const _0xed69d6=_0x48dc,_0x3020d4={'mGevL':function(_0x59bff4,_0x55ca54){return _0x59bff4===_0x55ca54;},'tESyG':'win32','TwItV':_0xed69d6(0x291),'vBkFe':'npm','AlpCf':_0xed69d6(0x28a),'IlBUs':'run','lghJI':_0xed69d6(0x21e)+_0xed69d6(0x234),'WOXzq':_0xed69d6(0x257),'YkpRE':function(_0x167087,_0x17e943,_0x4f4095){return _0x167087(_0x17e943,_0x4f4095);},'uwtNX':_0xed69d6(0x235),'fFazl':function(_0x5246ce,_0x3425bd,_0x23638d,_0x5b5c22){return _0x5246ce(_0x3425bd,_0x23638d,_0x5b5c22);},'Wiztc':'inherit','NFuRp':function(_0x475b02,_0x34fce3,_0x226bd3){return _0x475b02(_0x34fce3,_0x226bd3);},'zbCJC':function(_0x318a0b,_0x1d62d7){return _0x318a0b(_0x1d62d7);}},_0x5f2b9a=_0x3020d4['mGevL'](process[_0xed69d6(0x212)],_0x3020d4[_0xed69d6(0x27b)])?_0x3020d4['TwItV']:_0x3020d4['vBkFe'],_0x1a1cdf=[{'label':_0x3020d4[_0xed69d6(0x1e4)],'args':[_0x3020d4[_0xed69d6(0x296)],_0x3020d4[_0xed69d6(0x1e4)],_0x3020d4[_0xed69d6(0x2b6)]]},{'label':_0x3020d4[_0xed69d6(0x1e6)],'args':[_0x3020d4[_0xed69d6(0x296)],_0x3020d4[_0xed69d6(0x1e6)],'--if-pre'+'sent']}];for(const _0x100372 of _0x1a1cdf){console['log'](_0x3020d4[_0xed69d6(0x1ec)](info,_0x3020d4[_0xed69d6(0x1fe)],_0xed69d6(0x23a)+_0x100372[_0xed69d6(0x233)]+_0xed69d6(0x211)));try{_0x3020d4[_0xed69d6(0x1ca)](execFileSync,_0x5f2b9a,_0x100372['args'],{'stdio':_0x3020d4[_0xed69d6(0x2a0)]}),console[_0xed69d6(0x226)](_0x3020d4[_0xed69d6(0x21b)](ok,'OK',_0x100372[_0xed69d6(0x233)]+(_0xed69d6(0x258)+_0xed69d6(0x260))));}catch{_0x3020d4['zbCJC'](failAndExit,_0x100372[_0xed69d6(0x233)]+(_0xed69d6(0x2a8)+_0xed69d6(0x2b3)+_0xed69d6(0x21d)+'.'));}}}async function maybePushCurrentBranch(){const _0x304d7e=_0x48dc,_0x1e2a43={'WdXSv':'TIP','FdfiT':function(_0xbe42de,_0x544da0,_0x3e2e13,_0x125071){return _0xbe42de(_0x544da0,_0x3e2e13,_0x125071);},'yRbHo':'git','nrHiQ':_0x304d7e(0x2c4),'SnXwx':_0x304d7e(0x2aa),'UKsCB':function(_0x588aa5,_0xf277c,_0xdaac89){return _0x588aa5(_0xf277c,_0xdaac89);},'ztGVr':_0x304d7e(0x2be),'vhmEt':'No\x20git\x20r'+'emote\x20co'+_0x304d7e(0x216)+_0x304d7e(0x1f5)+_0x304d7e(0x1be)+_0x304d7e(0x238),'VybRj':function(_0x22dde7,_0x45164a){return _0x22dde7(_0x45164a);},'jSvgP':function(_0x8f55c2,_0x496ebd,_0x3fe6d2,_0xf1bcd3){return _0x8f55c2(_0x496ebd,_0x3fe6d2,_0xf1bcd3);},'veHlL':'--set-up'+_0x304d7e(0x29a),'rZMrC':'GPujp'},_0x35faf3=getCurrentBranch(),_0x4e0ef2=getUpstreamInfo();if(_0x4e0ef2){const _0x498c27=await askConfirmation(_0x304d7e(0x26a)+_0x304d7e(0x2ce)+_0x304d7e(0x254)+_0x35faf3+_0x304d7e(0x2d7)+_0x4e0ef2['fullName']+(_0x304d7e(0x24d)+_0x304d7e(0x1fd)));if(!_0x498c27)return;try{_0x1e2a43[_0x304d7e(0x2cb)](execFileSync,_0x1e2a43[_0x304d7e(0x265)],[_0x1e2a43[_0x304d7e(0x1b9)],_0x4e0ef2[_0x304d7e(0x276)],_0x35faf3+':'+_0x4e0ef2['branch']],{'stdio':_0x1e2a43[_0x304d7e(0x1fb)]}),console[_0x304d7e(0x226)](_0x1e2a43[_0x304d7e(0x23b)](ok,'OK',_0x304d7e(0x28d)+_0x304d7e(0x298)+'o\x20'+_0x4e0ef2[_0x304d7e(0x223)]+'.'));}catch{failAndExit(_0x304d7e(0x2cc)+_0x304d7e(0x2d5)+'o\x20'+_0x4e0ef2['fullName']+'.');}return;}const _0x3b02ba=getDefaultRemote();if(!_0x3b02ba){console[_0x304d7e(0x226)](warn(_0x1e2a43[_0x304d7e(0x27e)],_0x1e2a43[_0x304d7e(0x222)]));return;}const _0x2790b8=await _0x1e2a43[_0x304d7e(0x23e)](askConfirmation,'No\x20upstr'+_0x304d7e(0x1cc)+_0x304d7e(0x256)+'\x22'+_0x35faf3+_0x304d7e(0x2d7)+_0x3b02ba+'/'+_0x35faf3+(_0x304d7e(0x281)+_0x304d7e(0x1d4)+_0x304d7e(0x1ea)+'):\x20'));if(!_0x2790b8)return;try{_0x1e2a43[_0x304d7e(0x23f)](execFileSync,_0x304d7e(0x26f),[_0x304d7e(0x2c4),_0x1e2a43[_0x304d7e(0x285)],_0x3b02ba,_0x35faf3],{'stdio':_0x1e2a43['SnXwx']}),console['log'](_0x1e2a43['UKsCB'](ok,'OK',_0x304d7e(0x28d)+_0x304d7e(0x253)+'nd\x20upstr'+_0x304d7e(0x1f6)+_0x304d7e(0x227)+_0x3b02ba+'/'+_0x35faf3+').'));}catch{_0x304d7e(0x2c5)===_0x1e2a43[_0x304d7e(0x221)]?_0x4b356c[_0x304d7e(0x226)](_0x3a9df5(_0x1e2a43[_0x304d7e(0x1d5)],_0x438c6b[_0x304d7e(0x29e)][_0x304d7e(0x295)+'t']+(_0x304d7e(0x27d)+_0x304d7e(0x248)+'tected.\x20'+_0x304d7e(0x20e)+_0x304d7e(0x213)+_0x304d7e(0x1f4)+_0x304d7e(0x25d)+_0x304d7e(0x2ca)+'.'))):failAndExit(_0x304d7e(0x2cc)+'o\x20push\x20\x22'+_0x35faf3+_0x304d7e(0x2d7)+_0x3b02ba+'\x22.');}}export async function generateCommit(_0x400aa1={}){const _0x2d2ae=_0x48dc,_0x33bdba={'gGGwG':function(_0x437861,_0xd44f23){return _0x437861(_0xd44f23);},'kLBrc':_0x2d2ae(0x25c),'uSCEs':function(_0x3a7e8e){return _0x3a7e8e();},'OcDpI':_0x2d2ae(0x299),'EyJho':function(_0x96de1c){return _0x96de1c();},'VbwUb':_0x2d2ae(0x1bc)+'ll\x20chang'+_0x2d2ae(0x239)+_0x2d2ae(0x20f),'vCLVf':function(_0x484474,_0xd43f34){return _0x484474===_0xd43f34;},'xqoLd':function(_0x33baf4,_0x407449){return _0x33baf4(_0x407449);},'YTapD':_0x2d2ae(0x1ee)+_0x2d2ae(0x26c)+'\x20Stage\x20c'+_0x2d2ae(0x23d)+_0x2d2ae(0x1d2)+'run\x20`gem'+'it\x20commi'+_0x2d2ae(0x252)+'.','ACdRb':function(_0x532219,_0x43f3a4){return _0x532219>=_0x43f3a4;},'mqKqJ':function(_0x4e5bfb,_0x294a9c){return _0x4e5bfb!==_0x294a9c;},'ulOPo':function(_0x51fb51,_0x593111,_0x4b21f4){return _0x51fb51(_0x593111,_0x4b21f4);},'LVJrm':_0x2d2ae(0x241),'XCoJI':function(_0x4ebb3c,_0x56c9bd,_0x4e6827){return _0x4ebb3c(_0x56c9bd,_0x4e6827);},'CYgnR':_0x2d2ae(0x236)+_0x2d2ae(0x1cd),'SWxBm':function(_0x2d2718,_0x406be8){return _0x2d2718(_0x406be8);},'LrlqU':_0x2d2ae(0x1ba)+'RIZE','jhfNM':function(_0x4dda5f,_0x2ea445){return _0x4dda5f(_0x2ea445);},'JuMEJ':function(_0x36f5b4,_0x490097){return _0x36f5b4(_0x490097);},'ATHLr':function(_0x48062b,_0x5c0ce2){return _0x48062b(_0x5c0ce2);},'ZsThP':'Detected'+_0x2d2ae(0x2a5),'esEMh':_0x2d2ae(0x1ff)+'t','ACDks':function(_0x474363,_0x50013c){return _0x474363>_0x50013c;},'wxuhw':function(_0x1c23f4,_0xa6d515,_0x5748af){return _0x1c23f4(_0xa6d515,_0x5748af);},'Kntxv':_0x2d2ae(0x1c1),'tGQtT':_0x2d2ae(0x275),'cNXCF':_0x2d2ae(0x2d1)+_0x2d2ae(0x261),'mAdwq':_0x2d2ae(0x229)+_0x2d2ae(0x2b7)+_0x2d2ae(0x217)+'sting\x20re'+_0x2d2ae(0x2bc)+'.','zbWWP':_0x2d2ae(0x2cc)+'o\x20genera'+_0x2d2ae(0x24c)+_0x2d2ae(0x273)+'e.','PYRwp':function(_0xcc6dd,_0x10c100){return _0xcc6dd(_0x10c100);},'GnSBV':_0x2d2ae(0x2a7)+_0x2d2ae(0x279),'rIVUo':function(_0x44073b,_0x16b195){return _0x44073b(_0x16b195);},'IrfFj':_0x2d2ae(0x240)+'RM','ornvW':_0x2d2ae(0x1b5)+_0x2d2ae(0x293)+'age\x20(pre'+'ss\x20Enter'+'\x20to\x20keep'+_0x2d2ae(0x1fa)+_0x2d2ae(0x2a3),'LeMlt':'Final\x20co'+_0x2d2ae(0x2ae),'omCPD':function(_0x25e7b7,_0x2b0293,_0x192621){return _0x25e7b7(_0x2b0293,_0x192621);},'MsHLo':function(_0x1d1cda,_0x1a08b9){return _0x1d1cda===_0x1a08b9;},'GmUtk':_0x2d2ae(0x271),'BSuSK':'CANCELED','toGPn':_0x2d2ae(0x266)+'as\x20not\x20c'+_0x2d2ae(0x209),'GOXPI':_0x2d2ae(0x1c9),'KWBpB':function(_0x235d4a,_0x512956,_0x1b2ee6,_0x108e9e){return _0x235d4a(_0x512956,_0x1b2ee6,_0x108e9e);},'ABHEy':_0x2d2ae(0x26f),'wmkxU':'commit','MTjix':'inherit','jzfcr':function(_0x8301f0,_0x9396f6){return _0x8301f0(_0x9396f6);},'YMLVK':_0x2d2ae(0x2cc)+_0x2d2ae(0x270)+_0x2d2ae(0x218)+_0x2d2ae(0x200)+_0x2d2ae(0x287)+_0x2d2ae(0x2ba)+_0x2d2ae(0x26c)},_0x3e1ce0=_0x33bdba[_0x2d2ae(0x290)](getLLM);getGitStatus(),section(_0x33bdba[_0x2d2ae(0x251)]);_0x400aa1['all']&&(_0x33bdba[_0x2d2ae(0x27a)](stageAll),console[_0x2d2ae(0x226)](ok('OK',_0x33bdba['VbwUb'])));const _0x43fff1=_0x33bdba['gGGwG'](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x33bdba[_0x2d2ae(0x204)](_0x43fff1[_0x2d2ae(0x2c3)][_0x2d2ae(0x20d)],0x0)&&_0x33bdba[_0x2d2ae(0x20c)](failAndExit,_0x33bdba[_0x2d2ae(0x1d7)]);_0x33bdba['ACdRb'](_0x43fff1[_0x2d2ae(0x29e)][_0x2d2ae(0x295)+'t'],WARN_SPLIT_FILE_COUNT)&&(_0x33bdba[_0x2d2ae(0x1f3)]('owsKp',_0x2d2ae(0x28e))?console[_0x2d2ae(0x226)](_0x33bdba['ulOPo'](warn,_0x33bdba[_0x2d2ae(0x1cf)],_0x43fff1[_0x2d2ae(0x29e)][_0x2d2ae(0x295)+'t']+('\x20staged\x20'+_0x2d2ae(0x248)+'tected.\x20'+_0x2d2ae(0x20e)+_0x2d2ae(0x213)+_0x2d2ae(0x1f4)+'multiple'+'\x20commits'+'.'))):TDidEh[_0x2d2ae(0x1b8)](_0x501d31,_0x57b32a[_0x2d2ae(0x233)]+(_0x2d2ae(0x2a8)+_0x2d2ae(0x2b3)+'g\x20commit'+'.')));_0x33bdba[_0x2d2ae(0x22d)](printList,_0x33bdba[_0x2d2ae(0x2a9)],_0x43fff1[_0x2d2ae(0x2c3)][_0x2d2ae(0x1c8)](_0x2f5149=>_0x2f5149['status']+'\x20'+_0x2f5149[_0x2d2ae(0x1c4)]));_0x400aa1[_0x2d2ae(0x1e5)]&&(console[_0x2d2ae(0x226)](),_0x33bdba[_0x2d2ae(0x27a)](runOptionalChecks));_0x33bdba['SWxBm'](section,_0x33bdba[_0x2d2ae(0x28c)]);const _0x298b99=_0x33bdba[_0x2d2ae(0x282)](summarizeChanges,_0x43fff1),_0x4fabf0=_0x33bdba[_0x2d2ae(0x1c3)](detectCommitType,_0x43fff1);_0x33bdba[_0x2d2ae(0x2d2)](printKeyValues,[{'key':_0x2d2ae(0x1e7),'value':_0x298b99},{'key':_0x33bdba['ZsThP'],'value':_0x4fabf0},{'key':_0x33bdba[_0x2d2ae(0x1f7)],'value':_0x43fff1['diffStat']||_0x2d2ae(0x275)}]);_0x33bdba[_0x2d2ae(0x1ce)](_0x43fff1[_0x2d2ae(0x29e)][_0x2d2ae(0x1e1)+'rs'],WARN_PROMPT_DIFF_CHARS)&&console[_0x2d2ae(0x226)](_0x33bdba['wxuhw'](warn,_0x33bdba['Kntxv'],_0x2d2ae(0x1d1)+_0x2d2ae(0x1db)+_0x2d2ae(0x1de)+_0x43fff1[_0x2d2ae(0x29e)][_0x2d2ae(0x1e1)+'rs']+(_0x2d2ae(0x264)+_0x2d2ae(0x292)+_0x2d2ae(0x289)+'lude\x20a\x20t'+_0x2d2ae(0x205)+'\x20patch\x20e'+_0x2d2ae(0x2af))));const _0x3c70d9=_0x2d2ae(0x28b)+'ne\x20Conve'+_0x2d2ae(0x20b)+'Commit\x20m'+_0x2d2ae(0x1fc)+_0x2d2ae(0x215)+_0x2d2ae(0x2a6)+_0x2d2ae(0x1e2)+_0x2d2ae(0x1e9)+'anges.\x0aR'+_0x2d2ae(0x246)+_0x2d2ae(0x27f)+_0x2d2ae(0x2d3)+'likely\x20t'+_0x2d2ae(0x2da)+'ss\x20evide'+_0x2d2ae(0x294)+'ngly\x20sug'+_0x2d2ae(0x24f)+'other\x20on'+_0x2d2ae(0x2a4)+_0x4fabf0+(_0x2d2ae(0x1f2)+_0x2d2ae(0x202)+_0x2d2ae(0x203)+_0x2d2ae(0x1b6)+_0x2d2ae(0x2b0)+_0x2d2ae(0x1f8)+_0x2d2ae(0x286)+_0x2d2ae(0x1c0)+_0x2d2ae(0x2c9)+_0x2d2ae(0x245)+_0x2d2ae(0x2b8)+_0x2d2ae(0x2d4)+_0x2d2ae(0x2d8)+_0x2d2ae(0x1f9)+_0x2d2ae(0x201)+_0x2d2ae(0x24b)+'ode\x20fenc'+_0x2d2ae(0x21f)+_0x2d2ae(0x22c)+_0x2d2ae(0x269)+_0x2d2ae(0x1c5)+':\x0a')+formatStagedFiles(_0x43fff1)+(_0x2d2ae(0x224)+_0x2d2ae(0x232)+'\x0a')+_0x298b99+('\x0a\x0aDiff\x20s'+_0x2d2ae(0x26e))+(_0x43fff1['diffStat']||_0x33bdba[_0x2d2ae(0x2d6)])+(_0x2d2ae(0x29d)+_0x2d2ae(0x259))+(_0x43fff1[_0x2d2ae(0x29e)][_0x2d2ae(0x23c)+'d']?_0x33bdba['cNXCF']:'')+':\x0a'+(_0x43fff1[_0x2d2ae(0x1f0)]||_0x33bdba[_0x2d2ae(0x2d6)])+'\x0a\x20\x20';section(_0x2d2ae(0x1da)+'ST');const _0x4ab5d1=await _0x33bdba[_0x2d2ae(0x24a)](withProgress,_0x33bdba[_0x2d2ae(0x1eb)],()=>_0x3e1ce0['invoke'](_0x3c70d9)),_0x1e3c62=_0x33bdba[_0x2d2ae(0x1b8)](extractMessageText,_0x4ab5d1[_0x2d2ae(0x1f1)]);!_0x1e3c62&&failAndExit(_0x33bdba[_0x2d2ae(0x22f)]);_0x33bdba[_0x2d2ae(0x1c2)](printKeyValues,[{'key':_0x33bdba[_0x2d2ae(0x2d9)],'value':_0x1e3c62}]),_0x33bdba[_0x2d2ae(0x29b)](section,_0x33bdba[_0x2d2ae(0x1d0)]);const _0x311845=await _0x33bdba[_0x2d2ae(0x24a)](askEditableInput,_0x33bdba[_0x2d2ae(0x1ef)],_0x1e3c62);_0x33bdba[_0x2d2ae(0x282)](printKeyValues,[{'key':_0x33bdba[_0x2d2ae(0x2c1)],'value':_0x311845}]);const _0xc4fde8=await _0x33bdba['omCPD'](askConfirmation,_0x2d2ae(0x29f)+_0x2d2ae(0x2d0)+_0x2d2ae(0x250)+_0x2d2ae(0x2a1)+':\x20',{'defaultYes':!![]});if(!_0xc4fde8){if(_0x33bdba['MsHLo'](_0x2d2ae(0x271),_0x33bdba[_0x2d2ae(0x225)])){console['log'](warn(_0x33bdba[_0x2d2ae(0x1e0)],_0x33bdba[_0x2d2ae(0x288)]));return;}else return TDidEh[_0x2d2ae(0x244)];}try{_0x33bdba[_0x2d2ae(0x1f3)](_0x33bdba[_0x2d2ae(0x1cb)],_0x33bdba[_0x2d2ae(0x1cb)])?_0xf2915f(_0x2d2ae(0x2cc)+_0x2d2ae(0x1bb)+_0x33c28f+_0x2d2ae(0x2d7)+_0x29dfab+'\x22.'):_0x33bdba['KWBpB'](execFileSync,_0x33bdba[_0x2d2ae(0x219)],[_0x33bdba[_0x2d2ae(0x2bb)],'-m',_0x311845],{'stdio':_0x33bdba[_0x2d2ae(0x2bf)]});}catch{_0x33bdba[_0x2d2ae(0x2c6)](failAndExit,_0x33bdba[_0x2d2ae(0x283)]);}await maybePushCurrentBranch();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2f70af,_0x2c9943){const _0x344eb7=_0x49af,_0x3be690=_0x2f70af();while(!![]){try{const _0x42382e=parseInt(_0x344eb7(0x124))/0x1+parseInt(_0x344eb7(0x13c))/0x2*(parseInt(_0x344eb7(0x126))/0x3)+parseInt(_0x344eb7(0x131))/0x4*(-parseInt(_0x344eb7(0x14e))/0x5)+-parseInt(_0x344eb7(0x172))/0x6*(parseInt(_0x344eb7(0x141))/0x7)+-parseInt(_0x344eb7(0x129))/0x8*(-parseInt(_0x344eb7(0x16a))/0x9)+parseInt(_0x344eb7(0x153))/0xa*(parseInt(_0x344eb7(0x121))/0xb)+parseInt(_0x344eb7(0x138))/0xc*(-parseInt(_0x344eb7(0x127))/0xd);if(_0x42382e===_0x2c9943)break;else _0x3be690['push'](_0x3be690['shift']());}catch(_0x7cd640){_0x3be690['push'](_0x3be690['shift']());}}}(_0x2ff8,0x9e796));const _0x2901f9=(function(){let _0x28134d=!![];return function(_0x27e10c,_0x817e7b){const _0x259060=_0x28134d?function(){const _0xb3e215=_0x49af;if(_0x817e7b){const _0xd909ed=_0x817e7b[_0xb3e215(0x14d)](_0x27e10c,arguments);return _0x817e7b=null,_0xd909ed;}}:function(){};return _0x28134d=![],_0x259060;};}()),_0x26d3cf=_0x2901f9(this,function(){const _0x787d7c=_0x49af;return _0x26d3cf['toString']()[_0x787d7c(0x13e)](_0x787d7c(0x11e)+'+)+$')[_0x787d7c(0x163)]()['construc'+_0x787d7c(0x11a)](_0x26d3cf)[_0x787d7c(0x13e)](_0x787d7c(0x11e)+_0x787d7c(0x175));});function _0x49af(_0x3bbeda,_0xadb6ab){_0x3bbeda=_0x3bbeda-0x10d;const _0x48e04c=_0x2ff8();let _0x26d3cf=_0x48e04c[_0x3bbeda];return _0x26d3cf;}_0x26d3cf();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 _0x2ff8(){const _0x5c0bad=['Provider','):\x20','FKWQC','VED','ATION\x20SA','GOOGLE_A','Invalid\x20','ini','VTuAG','wBIbD','.\x20Use\x20go','ANTHROPI','PI_KEY','toString','zyGcJ','found','log','qxAoH','GZQjH','ogle,\x20op','27qHsOUI','kQwnt','L=\x22','utf8','DGnsm','\x20anthrop','LLM_PROV','-5-sonne','6qNixcH','cxRlt','ic.','+)+$','flseK','\x20exists.','gxmza','gemini-2','invalid','C_API_KE','uuPOK','gpt-4o-m','PbDFF','EEVhd','RfvyK','IDER',']:\x20','JErCP','eiJoo','anthropi','claude-3','env','hNprL','tor','sfOTh','cNfaf','AGGUs','(((.+)+)','CONFIGUR','openai','11SQFOiM','riLiZ','TmSJx','243376duBTDt','nceled.','9PmlUdt','39hzlSox','google','3099064AkHGLX','Status','join','env\x20path','GEMINI_A','FHzpc','Global\x20.','biLGn','4FPiaNe','ase','OPENAI_A','ATeuM','Setup\x20ca','TylrX','.5-flash','3154872zDKLxN','\x20already','missing/','PI_KEY=\x22','144038GLxGME','NNOPH','search','Path','OGteB','4962643almbUS','ICS','\x20Overwri','JrnTL','LLM_MODE','missing','rlLzO','le]:\x20','\x20(google','API_KEY','OyVmh','OaMIx','apply','1698630gfkdXp','Gjsgj','tRQxo','usqGt','exitCode','8649210vKUSZb','dcfre','ENvrT'];_0x2ff8=function(){return _0x5c0bad;};return _0x2ff8();}function getProviderKeyName(_0x4951c1){const _0x1acab1=_0x49af,_0x24ed3c={'OaMIx':function(_0x179310,_0x303e2a){return _0x179310===_0x303e2a;},'DGnsm':_0x1acab1(0x128),'BxBBm':'openai','PbDFF':'OPENAI_A'+_0x1acab1(0x162),'sYCyf':'ANTHROPI'+_0x1acab1(0x17b)+'Y'};if(_0x24ed3c[_0x1acab1(0x14c)](_0x4951c1,_0x24ed3c[_0x1acab1(0x16e)]))return _0x1acab1(0x15b)+_0x1acab1(0x162);if(_0x4951c1===_0x24ed3c['BxBBm'])return _0x24ed3c[_0x1acab1(0x10f)];return _0x24ed3c['sYCyf'];}export async function initConfig(){const _0x2539a8=_0x49af,_0x36fda0={'rlLzO':_0x2539a8(0x11e)+_0x2539a8(0x175),'usqGt':function(_0x2ea6a7){return _0x2ea6a7();},'gxmza':function(_0x5aa8c2,_0x5d97c9){return _0x5aa8c2(_0x5d97c9);},'uuPOK':function(_0x88b7d0,_0x526768){return _0x88b7d0(_0x526768);},'Lapvt':function(_0x53f274,_0x51a4be,_0x59d1bf){return _0x53f274(_0x51a4be,_0x59d1bf);},'lpWzR':_0x2539a8(0x135)+_0x2539a8(0x125),'rYaCa':_0x2539a8(0x156)+_0x2539a8(0x149)+'/openai/'+_0x2539a8(0x116)+'c)\x20[goog'+_0x2539a8(0x148),'uyzWF':function(_0x316bd4,_0x4f4a97){return _0x316bd4||_0x4f4a97;},'AGGUs':_0x2539a8(0x128),'ATeuM':function(_0x527ad8,_0x2f74e4){return _0x527ad8!==_0x2f74e4;},'yNzbn':function(_0x569946,_0x596619){return _0x569946!==_0x596619;},'biLGn':'openai','cxRlt':_0x2539a8(0x116)+'c','JrnTL':_0x2539a8(0x150),'OGteB':_0x2539a8(0x15c)+'provider'+_0x2539a8(0x160)+_0x2539a8(0x169)+'enai,\x20or'+_0x2539a8(0x16f)+_0x2539a8(0x174),'ECnix':function(_0x273ebb,_0x485e0d){return _0x273ebb===_0x485e0d;},'TmSJx':_0x2539a8(0x179)+_0x2539a8(0x137),'hNprL':_0x2539a8(0x10e)+_0x2539a8(0x15d),'EEVhd':_0x2539a8(0x117)+_0x2539a8(0x171)+'t-latest','UcgRH':_0x2539a8(0x12a),'sfOTh':_0x2539a8(0x13f)},_0xc6bdfd=_0x36fda0[_0x2539a8(0x151)](getGlobalEnvPath);if(_0x36fda0['gxmza'](existsSync,_0xc6bdfd)){const _0x5c86d3=await _0x36fda0['uuPOK'](askConfirmation,_0xc6bdfd+(_0x2539a8(0x139)+_0x2539a8(0x177)+_0x2539a8(0x143)+'te?\x20(y/n'+_0x2539a8(0x157)));if(!_0x5c86d3){console['log'](_0x36fda0['Lapvt'](warn,'CANCELED',_0x36fda0['lpWzR']));return;}}const _0x350d7b=await askInput(_0x36fda0['rYaCa']),_0x234f38=_0x36fda0['uyzWF'](_0x350d7b,_0x36fda0[_0x2539a8(0x11d)])['toLowerC'+'ase']();if(_0x36fda0[_0x2539a8(0x134)](_0x234f38,_0x36fda0[_0x2539a8(0x11d)])&&_0x36fda0['yNzbn'](_0x234f38,_0x36fda0[_0x2539a8(0x130)])&&_0x36fda0[_0x2539a8(0x134)](_0x234f38,_0x36fda0[_0x2539a8(0x173)])){if(_0x36fda0[_0x2539a8(0x134)](_0x36fda0[_0x2539a8(0x144)],_0x36fda0[_0x2539a8(0x144)]))return _0x24cdf4[_0x2539a8(0x163)]()[_0x2539a8(0x13e)](SRAlNJ['rlLzO'])['toString']()['construc'+_0x2539a8(0x11a)](_0x3dd7e4)[_0x2539a8(0x13e)](SRAlNJ[_0x2539a8(0x147)]);else _0x36fda0[_0x2539a8(0x10d)](failAndExit,_0x36fda0[_0x2539a8(0x140)]);}const _0x452668=_0x234f38,_0x1225eb=_0x36fda0['ECnix'](_0x452668,_0x36fda0[_0x2539a8(0x11d)])?_0x36fda0[_0x2539a8(0x123)]:_0x452668===_0x36fda0[_0x2539a8(0x130)]?_0x36fda0[_0x2539a8(0x119)]:_0x36fda0[_0x2539a8(0x110)],_0x8b2659=await _0x36fda0[_0x2539a8(0x10d)](askInput,'Model\x20['+_0x1225eb+_0x2539a8(0x113))||_0x1225eb,_0x56b4e2=getProviderKeyName(_0x452668),_0x1be42b=await _0x36fda0[_0x2539a8(0x10d)](askInput,_0x56b4e2+':\x20'),_0x4ace18=[_0x2539a8(0x170)+'IDER=\x22'+_0x452668+'\x22','LLM_MODE'+_0x2539a8(0x16c)+_0x8b2659+'\x22','','GOOGLE_A'+_0x2539a8(0x13b)+(_0x452668===_0x2539a8(0x128)?_0x1be42b:'')+'\x22',_0x2539a8(0x12d)+_0x2539a8(0x13b)+'\x22','OPENAI_A'+_0x2539a8(0x13b)+(_0x452668===_0x36fda0[_0x2539a8(0x130)]?_0x1be42b:'')+'\x22','ANTHROPI'+_0x2539a8(0x17b)+'Y=\x22'+(_0x36fda0['ECnix'](_0x452668,_0x2539a8(0x116)+'c')?_0x1be42b:'')+'\x22',''][_0x2539a8(0x12b)]('\x0a');_0x36fda0['Lapvt'](mkdirSync,dirname(_0xc6bdfd),{'recursive':!![]}),writeFileSync(_0xc6bdfd,_0x4ace18,_0x2539a8(0x16d)),section(_0x2539a8(0x11f)+_0x2539a8(0x15a)+_0x2539a8(0x159)),printKeyValues([{'key':_0x36fda0['UcgRH'],'value':_0x36fda0[_0x2539a8(0x178)](ok,'OK')},{'key':_0x36fda0[_0x2539a8(0x11b)],'value':_0xc6bdfd}]);}export function doctorConfig(){const _0x5e93de=_0x49af,_0x2d8b0f={'GZQjH':function(_0x3c895b,_0x579a62){return _0x3c895b(_0x579a62);},'qxAoH':function(_0x2cc9a6,_0xbaee82){return _0x2cc9a6===_0xbaee82;},'RoMPn':'google','FHzpc':_0x5e93de(0x120),'OyVmh':function(_0x49878b,_0x5bdf8a){return _0x49878b===_0x5bdf8a;},'roHIm':_0x5e93de(0x116)+'c','wBIbD':function(_0x44e3f2,_0x46ab9){return _0x44e3f2===_0x46ab9;},'zyGcJ':_0x5e93de(0x14a),'BuGjM':_0x5e93de(0x12f)+_0x5e93de(0x12c),'izROk':_0x5e93de(0x12f)+_0x5e93de(0x118),'Gjsgj':function(_0x2376b6,_0x52f925){return _0x2376b6(_0x52f925);},'JErCP':function(_0x2f13da,_0xc7f5e1){return _0x2f13da(_0xc7f5e1);},'kQwnt':'missing','fYZAF':function(_0x1f4648,_0x4cd954){return _0x1f4648(_0x4cd954);},'VTuAG':_0x5e93de(0x13a)+_0x5e93de(0x17a),'TylrX':_0x5e93de(0x145)+'L','FKWQC':function(_0x51aeeb,_0xbb23b1){return _0x51aeeb(_0xbb23b1);},'dcfre':function(_0xd00e56,_0x3d3110){return _0xd00e56(_0x3d3110);},'RfvyK':_0x5e93de(0x15b)+_0x5e93de(0x162),'eiJoo':'set','riLiZ':_0x5e93de(0x133)+'PI_KEY','AXhYR':function(_0x389ee7,_0xbdac9f){return _0x389ee7(_0xbdac9f);},'ENvrT':_0x5e93de(0x161)+_0x5e93de(0x17b)+'Y','NNOPH':function(_0x5e79be,_0x2677b3){return _0x5e79be(_0x2677b3);},'flseK':function(_0x37a55b,_0x553026){return _0x37a55b(_0x553026);},'cNfaf':function(_0x1f8be0,_0x426980){return _0x1f8be0||_0x426980;}},_0x681815=getGlobalEnvPath(),_0x1c34bc=_0x2d8b0f['GZQjH'](existsSync,_0x681815),_0x15fa0f=(process.env.LLM_PROVIDER||'')['toLowerC'+_0x5e93de(0x132)](),_0x2c1058=process.env.LLM_MODEL||'',_0x576cea=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x37ff49=process.env.OPENAI_API_KEY||'',_0x3130b3=process.env.ANTHROPIC_API_KEY||'',_0x5b6fb3=_0x2d8b0f[_0x5e93de(0x167)](_0x15fa0f,_0x2d8b0f['RoMPn'])||_0x2d8b0f[_0x5e93de(0x167)](_0x15fa0f,_0x2d8b0f[_0x5e93de(0x12e)])||_0x2d8b0f[_0x5e93de(0x14b)](_0x15fa0f,_0x2d8b0f['roHIm']),_0x35872a=_0x2d8b0f[_0x5e93de(0x168)](Boolean,_0x2c1058),_0x5b57cf=_0x2d8b0f[_0x5e93de(0x167)](_0x15fa0f,_0x2d8b0f['RoMPn'])?_0x576cea:_0x15fa0f===_0x2d8b0f[_0x5e93de(0x12e)]?_0x37ff49:_0x2d8b0f[_0x5e93de(0x15f)](_0x15fa0f,'anthropi'+'c')?_0x3130b3:'',_0x1b57f4=_0x5b6fb3?getProviderKeyName(_0x15fa0f):_0x2d8b0f[_0x5e93de(0x164)],_0x4011db=_0x2d8b0f[_0x5e93de(0x168)](Boolean,_0x5b57cf);section('DIAGNOST'+_0x5e93de(0x142)),_0x2d8b0f[_0x5e93de(0x168)](printKeyValues,[{'key':_0x2d8b0f['BuGjM'],'value':_0x681815},{'key':_0x2d8b0f['izROk'],'value':_0x1c34bc?_0x2d8b0f['Gjsgj'](ok,_0x5e93de(0x165)):_0x2d8b0f[_0x5e93de(0x114)](warn,_0x2d8b0f['kQwnt'])}]),console[_0x5e93de(0x166)](),printKeyValues([{'key':'LLM_PROV'+_0x5e93de(0x112),'value':_0x5b6fb3?_0x2d8b0f['fYZAF'](ok,'ok'):_0x2d8b0f[_0x5e93de(0x14f)](bad,_0x2d8b0f[_0x5e93de(0x15e)])},{'key':_0x2d8b0f[_0x5e93de(0x136)],'value':_0x35872a?ok('ok'):_0x2d8b0f[_0x5e93de(0x158)](bad,_0x2d8b0f['kQwnt'])},{'key':'Expected'+'\x20('+_0x1b57f4+')','value':_0x4011db?ok('ok'):_0x2d8b0f['dcfre'](bad,_0x2d8b0f[_0x5e93de(0x16b)])},{'key':_0x2d8b0f[_0x5e93de(0x111)],'value':_0x576cea?_0x2d8b0f[_0x5e93de(0x114)](ok,_0x2d8b0f['eiJoo']):_0x2d8b0f['dcfre'](warn,_0x5e93de(0x146))},{'key':_0x2d8b0f[_0x5e93de(0x122)],'value':_0x37ff49?_0x2d8b0f['AXhYR'](ok,_0x2d8b0f[_0x5e93de(0x115)]):_0x2d8b0f[_0x5e93de(0x154)](warn,_0x2d8b0f[_0x5e93de(0x16b)])},{'key':_0x2d8b0f[_0x5e93de(0x155)],'value':_0x3130b3?_0x2d8b0f[_0x5e93de(0x13d)](ok,_0x2d8b0f['eiJoo']):_0x2d8b0f[_0x5e93de(0x176)](warn,_0x2d8b0f[_0x5e93de(0x16b)])}]),(_0x2d8b0f[_0x5e93de(0x11c)](!_0x5b6fb3,!_0x35872a)||!_0x4011db)&&(process[_0x5e93de(0x152)]=0x1);}
|
|
1
|
+
(function(_0x47462a,_0x531dde){const _0x530958=_0x36b3,_0x4d282d=_0x47462a();while(!![]){try{const _0x4db108=parseInt(_0x530958(0x110))/0x1+parseInt(_0x530958(0x101))/0x2*(-parseInt(_0x530958(0x15c))/0x3)+parseInt(_0x530958(0x116))/0x4+-parseInt(_0x530958(0x123))/0x5*(parseInt(_0x530958(0x151))/0x6)+parseInt(_0x530958(0x12e))/0x7*(-parseInt(_0x530958(0x117))/0x8)+parseInt(_0x530958(0xf9))/0x9*(-parseInt(_0x530958(0x14f))/0xa)+parseInt(_0x530958(0x12b))/0xb*(parseInt(_0x530958(0x121))/0xc);if(_0x4db108===_0x531dde)break;else _0x4d282d['push'](_0x4d282d['shift']());}catch(_0x28d1ef){_0x4d282d['push'](_0x4d282d['shift']());}}}(_0x5b7c,0x59059));function _0x5b7c(){const _0x5221bc=['L=\x22','IDER=\x22','toString','yrWnY','GEMINI_A','missing/','nceled.','Invalid\x20','ase','CzETG','\x20anthrop','.5-flash','Provider','224357qwGXXt','Y=\x22','XgjJf','QJzdo','udmKL','env\x20path','847676UBhEPs','1412264LSMtWt','ANTHROPI','wYxhh','EbPVn','sfcaW','ZCuSY','search','Global\x20.','XKqON','BlZPI','3012CSVOZS','\x20Overwri','155XhsNZj','kosFs','BCNVJ','API_KEY','qwZxJ','LLM_MODE','bxyuy','openai','72039uDXkGP','HbfEF','pUjAT','7PydFop','VED','construc','missing','DIAGNOST','ATION\x20SA','+)+$','GiUbF','\x20already','C_API_KE','peJJc','CANCELED','qoycC','Status','Path','/openai/','OPENAI_A','log','PI_KEY','GOOGLE_A','t-latest','set','iqDfx','te?\x20(y/n','Model\x20[','baiSb','apply',']:\x20','eiUnJ','Setup\x20ca','Expected','found','enai,\x20or','30hYIutd','kiqNI','29466zMaGXk','gemini-2','c)\x20[goog','RvUcR','hVSSI','BqIRb','tor','utf8','jZztF','BzqOJ','exitCode','1542HUrYWI','NSxQt','gpt-4o-m','ic.','JEslk','\x20exists.','LLM_PROV','psDxG','.\x20Use\x20go','kMoJR','bhUfc','qHRvK','rAVkb','):\x20','ARHIu','anthropi','hznWJ','(((.+)+)','google','qJySf','toLowerC','2015082zLiNhO','ZGXfN','-5-sonne','XRYUH','YFscz','lMgiQ','jLgKy','VNPbD','2782MCTwHb','\x20(google'];_0x5b7c=function(){return _0x5221bc;};return _0x5b7c();}const _0x469f19=(function(){const _0x5339c6=_0x36b3,_0x137e55={'BzqOJ':_0x5339c6(0x11b)};let _0x10584e=!![];return function(_0x40aef9,_0x269c0){const _0x4bbd7b=_0x5339c6,_0xd0892a={'rAVkb':_0x137e55[_0x4bbd7b(0x15a)]},_0x170715=_0x10584e?function(){const _0x3244d3=_0x4bbd7b,_0x54dfd5={'kosFs':_0x3244d3(0xf5)+_0x3244d3(0x134)};if(_0xd0892a[_0x3244d3(0x168)]===_0xd0892a['rAVkb']){if(_0x269c0){const _0x3b3558=_0x269c0[_0x3244d3(0x148)](_0x40aef9,arguments);return _0x269c0=null,_0x3b3558;}}else return _0x47b0e9['toString']()[_0x3244d3(0x11d)](_0x54dfd5[_0x3244d3(0x124)])['toString']()[_0x3244d3(0x130)+_0x3244d3(0x157)](_0x3805be)[_0x3244d3(0x11d)](_0x54dfd5[_0x3244d3(0x124)]);}:function(){};return _0x10584e=![],_0x170715;};}()),_0x27f29f=_0x469f19(this,function(){const _0x22d4ab=_0x36b3,_0x1e4155={'ARHIu':_0x22d4ab(0xf5)+_0x22d4ab(0x134)};return _0x27f29f['toString']()[_0x22d4ab(0x11d)](_0x1e4155['ARHIu'])[_0x22d4ab(0x105)]()[_0x22d4ab(0x130)+_0x22d4ab(0x157)](_0x27f29f)[_0x22d4ab(0x11d)](_0x1e4155[_0x22d4ab(0x16a)]);});_0x27f29f();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 _0x36b3(_0x5856b2,_0x4df799){_0x5856b2=_0x5856b2-0xf5;const _0x37eb8c=_0x5b7c();let _0x27f29f=_0x37eb8c[_0x5856b2];return _0x27f29f;}function getProviderKeyName(_0x13fc24){const _0x5d8d6a=_0x36b3,_0x18404f={'peJJc':function(_0x19bac4,_0x1ce01e){return _0x19bac4===_0x1ce01e;},'eiUnJ':_0x5d8d6a(0x12a),'ZGXfN':_0x5d8d6a(0x13e)+_0x5d8d6a(0x140)};if(_0x18404f[_0x5d8d6a(0x138)](_0x13fc24,_0x5d8d6a(0xf6)))return _0x5d8d6a(0x141)+_0x5d8d6a(0x140);if(_0x13fc24===_0x18404f[_0x5d8d6a(0x14a)])return _0x18404f[_0x5d8d6a(0xfa)];return'ANTHROPI'+_0x5d8d6a(0x137)+'Y';}export async function initConfig(){const _0xfef093=_0x36b3,_0x267b86={'jZztF':function(_0x1cff9f){return _0x1cff9f();},'qoycC':function(_0x2bccc1,_0x4e1047){return _0x2bccc1(_0x4e1047);},'XKqON':function(_0x97b91e,_0x558fab){return _0x97b91e(_0x558fab);},'lMgiQ':function(_0x37a58e,_0x760dc3,_0x23d1ec){return _0x37a58e(_0x760dc3,_0x23d1ec);},'ONvvw':_0xfef093(0x139),'udmKL':_0xfef093(0x10f)+_0xfef093(0x102)+_0xfef093(0x13d)+'anthropi'+_0xfef093(0x153)+'le]:\x20','JEslk':function(_0x2057b5,_0x1c7ec1){return _0x2057b5||_0x1c7ec1;},'XRYUH':_0xfef093(0xf6),'kMoJR':function(_0x14e4e5,_0x27da79){return _0x14e4e5!==_0x27da79;},'BlZPI':_0xfef093(0x12a),'RvUcR':_0xfef093(0x16b)+'c','wYxhh':_0xfef093(0x10a)+'provider'+_0xfef093(0x164)+'ogle,\x20op'+_0xfef093(0x14e)+_0xfef093(0x10d)+_0xfef093(0x15f),'BCNVJ':function(_0x219722,_0x2333bf){return _0x219722===_0x2333bf;},'XgjJf':_0xfef093(0x152)+_0xfef093(0x10e),'BqIRb':function(_0x40dcf0,_0x113f9b){return _0x40dcf0===_0x113f9b;},'baiSb':_0xfef093(0x15e)+'ini','oHebk':function(_0x368eca,_0x1fbc19){return _0x368eca===_0x1fbc19;},'psDxG':function(_0xc6078,_0x51c1f0){return _0xc6078===_0x51c1f0;},'iqDfx':function(_0x2a2e5e,_0x57c0de){return _0x2a2e5e===_0x57c0de;},'NGZTN':function(_0xfbaadf,_0x3e29f0,_0x6efed3){return _0xfbaadf(_0x3e29f0,_0x6efed3);},'pUjAT':function(_0x1bb45c,_0x57b866,_0x49dfa5,_0x1dea58){return _0x1bb45c(_0x57b866,_0x49dfa5,_0x1dea58);},'QGQYt':_0xfef093(0x158),'cNIpE':'CONFIGUR'+_0xfef093(0x133)+_0xfef093(0x12f),'yrWnY':_0xfef093(0x13b)},_0x523b53=_0x267b86[_0xfef093(0x159)](getGlobalEnvPath);if(_0x267b86['qoycC'](existsSync,_0x523b53)){const _0x33dcec=await _0x267b86[_0xfef093(0x11f)](askConfirmation,_0x523b53+(_0xfef093(0x136)+_0xfef093(0x161)+_0xfef093(0x122)+_0xfef093(0x145)+_0xfef093(0x169)));if(!_0x33dcec){console[_0xfef093(0x13f)](_0x267b86[_0xfef093(0xfe)](warn,_0x267b86['ONvvw'],_0xfef093(0x14b)+_0xfef093(0x109)));return;}}const _0x559aaf=await askInput(_0x267b86[_0xfef093(0x114)]),_0x28b4dd=_0x267b86[_0xfef093(0x160)](_0x559aaf,_0x267b86[_0xfef093(0xfc)])['toLowerC'+'ase']();_0x267b86['kMoJR'](_0x28b4dd,_0x267b86['XRYUH'])&&_0x267b86[_0xfef093(0x165)](_0x28b4dd,_0x267b86[_0xfef093(0x120)])&&_0x28b4dd!==_0x267b86[_0xfef093(0x154)]&&_0x267b86[_0xfef093(0x13a)](failAndExit,_0x267b86[_0xfef093(0x119)]);const _0x1bc5da=_0x28b4dd,_0x3f86d0=_0x267b86[_0xfef093(0x125)](_0x1bc5da,_0x267b86[_0xfef093(0xfc)])?_0x267b86[_0xfef093(0x112)]:_0x267b86[_0xfef093(0x156)](_0x1bc5da,_0xfef093(0x12a))?_0x267b86[_0xfef093(0x147)]:'claude-3'+_0xfef093(0xfb)+_0xfef093(0x142),_0x1b1fca=await askInput(_0xfef093(0x146)+_0x3f86d0+_0xfef093(0x149))||_0x3f86d0,_0x8fb9f8=_0x267b86[_0xfef093(0x13a)](getProviderKeyName,_0x1bc5da),_0x32a7e=await askInput(_0x8fb9f8+':\x20'),_0x18c29e=[_0xfef093(0x162)+_0xfef093(0x104)+_0x1bc5da+'\x22',_0xfef093(0x128)+_0xfef093(0x103)+_0x1b1fca+'\x22','',_0xfef093(0x141)+'PI_KEY=\x22'+(_0x267b86['oHebk'](_0x1bc5da,_0x267b86[_0xfef093(0xfc)])?_0x32a7e:'')+'\x22',_0xfef093(0x107)+'PI_KEY=\x22'+'\x22',_0xfef093(0x13e)+'PI_KEY=\x22'+(_0x267b86[_0xfef093(0x163)](_0x1bc5da,_0x267b86[_0xfef093(0x120)])?_0x32a7e:'')+'\x22','ANTHROPI'+_0xfef093(0x137)+_0xfef093(0x111)+(_0x267b86[_0xfef093(0x144)](_0x1bc5da,'anthropi'+'c')?_0x32a7e:'')+'\x22','']['join']('\x0a');_0x267b86['NGZTN'](mkdirSync,dirname(_0x523b53),{'recursive':!![]}),_0x267b86[_0xfef093(0x12d)](writeFileSync,_0x523b53,_0x18c29e,_0x267b86['QGQYt']),_0x267b86[_0xfef093(0x11f)](section,_0x267b86['cNIpE']),_0x267b86[_0xfef093(0x13a)](printKeyValues,[{'key':_0x267b86[_0xfef093(0x106)],'value':_0x267b86[_0xfef093(0x11f)](ok,'OK')},{'key':_0xfef093(0x13c),'value':_0x523b53}]);}export function doctorConfig(){const _0x7481a2=_0x36b3,_0x46432f={'GiUbF':function(_0x3a5d9f,_0x58ee72){return _0x3a5d9f(_0x58ee72);},'NSxQt':function(_0x126e53,_0x4d4b40){return _0x126e53===_0x4d4b40;},'quxcx':_0x7481a2(0x12a),'uEVLJ':'anthropi'+'c','YFscz':function(_0x3292c4,_0x2c9fa5){return _0x3292c4(_0x2c9fa5);},'hVSSI':_0x7481a2(0x126),'tjyUh':_0x7481a2(0x132)+'ICS','FAJdG':_0x7481a2(0x11e)+'env','qHRvK':_0x7481a2(0x131),'QJzdo':_0x7481a2(0x162)+'IDER','hznWJ':function(_0x1f0ed6,_0x4c9525){return _0x1f0ed6(_0x4c9525);},'qwZxJ':function(_0x2529d9,_0x4d395a){return _0x2529d9(_0x4d395a);},'vaMbJ':_0x7481a2(0x108)+'invalid','VNPbD':'LLM_MODE'+'L','ZCuSY':function(_0x455eaf,_0x15efea){return _0x455eaf(_0x15efea);},'qJySf':function(_0x50a118,_0x4b169b){return _0x50a118(_0x4b169b);},'HbfEF':_0x7481a2(0x141)+_0x7481a2(0x140),'bhUfc':_0x7481a2(0x143),'hcXbJ':function(_0x1d27e2,_0x1f892b){return _0x1d27e2(_0x1f892b);},'EbPVn':_0x7481a2(0x13e)+_0x7481a2(0x140),'bxyuy':function(_0x247f79,_0xd3130b){return _0x247f79(_0xd3130b);},'jLgKy':_0x7481a2(0x118)+_0x7481a2(0x137)+'Y','CzETG':function(_0x3a0339,_0x17c65d){return _0x3a0339(_0x17c65d);},'kiqNI':function(_0x5c0c26,_0x45dbed){return _0x5c0c26||_0x45dbed;}},_0x6e6b5=getGlobalEnvPath(),_0x289d6d=_0x46432f[_0x7481a2(0x135)](existsSync,_0x6e6b5),_0x5bd873=(process.env.LLM_PROVIDER||'')[_0x7481a2(0xf8)+_0x7481a2(0x10b)](),_0x309935=process.env.LLM_MODEL||'',_0x571365=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x446b83=process.env.OPENAI_API_KEY||'',_0x44bd7a=process.env.ANTHROPIC_API_KEY||'',_0x1364e0=_0x46432f[_0x7481a2(0x15d)](_0x5bd873,_0x7481a2(0xf6))||_0x46432f['NSxQt'](_0x5bd873,_0x46432f['quxcx'])||_0x46432f[_0x7481a2(0x15d)](_0x5bd873,_0x46432f['uEVLJ']),_0x4c1e5c=_0x46432f[_0x7481a2(0xfd)](Boolean,_0x309935),_0x53138d=_0x46432f[_0x7481a2(0x15d)](_0x5bd873,_0x7481a2(0xf6))?_0x571365:_0x46432f[_0x7481a2(0x15d)](_0x5bd873,_0x46432f['quxcx'])?_0x446b83:_0x5bd873===_0x46432f['uEVLJ']?_0x44bd7a:'',_0x3656dc=_0x1364e0?getProviderKeyName(_0x5bd873):_0x46432f[_0x7481a2(0x155)],_0x411ea7=_0x46432f['YFscz'](Boolean,_0x53138d);_0x46432f['GiUbF'](section,_0x46432f['tjyUh']),printKeyValues([{'key':'Global\x20.'+_0x7481a2(0x115),'value':_0x6e6b5},{'key':_0x46432f['FAJdG'],'value':_0x289d6d?_0x46432f['YFscz'](ok,_0x7481a2(0x14d)):_0x46432f['GiUbF'](warn,_0x46432f[_0x7481a2(0x167)])}]),console[_0x7481a2(0x13f)](),_0x46432f[_0x7481a2(0x135)](printKeyValues,[{'key':_0x46432f[_0x7481a2(0x113)],'value':_0x1364e0?_0x46432f[_0x7481a2(0x16c)](ok,'ok'):_0x46432f[_0x7481a2(0x127)](bad,_0x46432f['vaMbJ'])},{'key':_0x46432f[_0x7481a2(0x100)],'value':_0x4c1e5c?_0x46432f[_0x7481a2(0x127)](ok,'ok'):_0x46432f[_0x7481a2(0x11c)](bad,_0x46432f[_0x7481a2(0x167)])},{'key':_0x7481a2(0x14c)+'\x20('+_0x3656dc+')','value':_0x411ea7?_0x46432f[_0x7481a2(0xf7)](ok,'ok'):_0x46432f['qJySf'](bad,_0x46432f['qHRvK'])},{'key':_0x46432f[_0x7481a2(0x12c)],'value':_0x571365?_0x46432f[_0x7481a2(0xf7)](ok,_0x46432f['bhUfc']):_0x46432f['hcXbJ'](warn,_0x7481a2(0x131))},{'key':_0x46432f[_0x7481a2(0x11a)],'value':_0x446b83?ok(_0x46432f[_0x7481a2(0x166)]):_0x46432f[_0x7481a2(0x129)](warn,_0x46432f[_0x7481a2(0x167)])},{'key':_0x46432f[_0x7481a2(0xff)],'value':_0x44bd7a?_0x46432f[_0x7481a2(0x10c)](ok,_0x46432f[_0x7481a2(0x166)]):warn(_0x46432f['qHRvK'])}]),(_0x46432f[_0x7481a2(0x150)](!_0x1364e0,!_0x4c1e5c)||!_0x411ea7)&&(process[_0x7481a2(0x15b)]=0x1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x433e13,_0xea0d88){const _0x30897d=_0x4ad2,_0x5b4a22=_0x433e13();while(!![]){try{const _0x45d4be=parseInt(_0x30897d(0xfe))/0x1*(-parseInt(_0x30897d(0xe8))/0x2)+parseInt(_0x30897d(0x10b))/0x3*(-parseInt(_0x30897d(0x117))/0x4)+-parseInt(_0x30897d(0xe1))/0x5+parseInt(_0x30897d(0xf6))/0x6*(parseInt(_0x30897d(0x104))/0x7)+parseInt(_0x30897d(0x100))/0x8*(-parseInt(_0x30897d(0x109))/0x9)+-parseInt(_0x30897d(0xdc))/0xa+-parseInt(_0x30897d(0x133))/0xb*(-parseInt(_0x30897d(0xf4))/0xc);if(_0x45d4be===_0xea0d88)break;else _0x5b4a22['push'](_0x5b4a22['shift']());}catch(_0x367a7b){_0x5b4a22['push'](_0x5b4a22['shift']());}}}(_0x34ac,0x5c801));const _0x2e5066=(function(){let _0x4a48b5=!![];return function(_0x3949ee,_0x59b230){const _0x373f4e=_0x4a48b5?function(){const _0x10be0b=_0x4ad2;if(_0x59b230){const _0x3dc3e4=_0x59b230[_0x10be0b(0x11b)](_0x3949ee,arguments);return _0x59b230=null,_0x3dc3e4;}}:function(){};return _0x4a48b5=![],_0x373f4e;};}()),_0x30434b=_0x2e5066(this,function(){const _0x3b41b4=_0x4ad2,_0x54ae13={'znaJG':_0x3b41b4(0x106)+'+)+$'};return _0x30434b[_0x3b41b4(0xda)]()[_0x3b41b4(0xdd)](_0x54ae13[_0x3b41b4(0xfa)])['toString']()[_0x3b41b4(0xe5)+'tor'](_0x30434b)[_0x3b41b4(0xdd)](_0x54ae13[_0x3b41b4(0xfa)]);});function _0x34ac(){const _0x2ea7f4=['XmmPt','3xUhAJU','length','Current\x20','o\x20contex','branch:\x20','content','cido\x0a\x0aCo','gzrDZ','nch:\x20','map','Commits:','trim','1302116wmfKDG','invoke','UMMARY','grafo\x20cu','apply','\x20Nao\x20inv','este\x20bra','AI\x20is\x20su','\x20on\x20curr','dSaNj','xEpLG','se\x20lingu','ente\x20nad','mmarizin','bjetiva\x0a','changedF','hash','diffStat','\x20|\x20','ts\x20found','das\x20prin','-\x201\x20para','ch\x20again','baseRef','FiJUz','muKwa','sta\x20com\x20','ras:\x0a-\x20U','1463WHROnQ','\x20work...','\x20que\x20foi','toString','em\x20portu','2861520XbJdcX','search','tNSAF','mpacto\x20t','log','2473320mpNLRM','o\x20genera','NCZWk','skDCE','construc','ntexto\x20d','st\x20','735206BLXAqr','Base\x20bra','SttuL','Branch','h\x20summar','BRANCH\x20S','\x0aResuma\x20','rto\x20+\x20li','uando\x20po','g\x20branch','udancas\x0a','join','202152XiRXzr','to\x20forne','6MalMaY','te\x20branc','commits','nch.\x0aReg','znaJG','\x20|\x20body:','\x20feito\x20n','HCess','2JsJqGp','replace','8Etwazg','gues\x20do\x20','cipais\x20m','body','586271HeTDWZ','mzhly','(((.+)+)','TGnKX','ssivel\x0a-','934551Rtljwy'];_0x34ac=function(){return _0x2ea7f4;};return _0x34ac();}_0x30434b();function _0x4ad2(_0x2eb7e3,_0x5d6195){_0x2eb7e3=_0x2eb7e3-0xd9;const _0x3e9570=_0x34ac();let _0x30434b=_0x3e9570[_0x2eb7e3];return _0x30434b;}import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x3bdd56={'RBqsl':function(_0x47b8e0){return _0x47b8e0();},'bRhse':function(_0x4ee2b6,_0x1b6793){return _0x4ee2b6(_0x1b6793);}};try{return _0x3bdd56['RBqsl'](createLLM);}catch(_0x2bac88){const _0x384108=_0x2bac88 instanceof Error?_0x2bac88['message']:String(_0x2bac88);_0x3bdd56['bRhse'](failAndExit,_0x384108);}}function formatBranchContextForPrompt(){const _0x345c21=_0x4ad2,_0x458e42={'NCZWk':function(_0x8b1c12){return _0x8b1c12();},'XmmPt':function(_0x1cf319,_0x5a1d1f){return _0x1cf319(_0x5a1d1f);},'mzhly':_0x345c21(0x115),'FiJUz':'Diff\x20sta'+'t:','tNSAF':'(none)'},_0x571733=_0x458e42['NCZWk'](getBranchContext);_0x571733[_0x345c21(0xf8)][_0x345c21(0x10c)]===0x0&&_0x458e42[_0x345c21(0x10a)](failAndExit,'No\x20commi'+_0x345c21(0x12a)+_0x345c21(0x11f)+'ent\x20bran'+_0x345c21(0x12d)+_0x345c21(0xe7)+_0x571733[_0x345c21(0x12e)]+'.');const _0x1f8d97=_0x571733[_0x345c21(0xf8)][_0x345c21(0x114)](_0xc170ff=>{const _0x187877=_0x345c21,_0x5c8965=_0xc170ff[_0x187877(0x103)]?_0x187877(0xfb)+'\x20'+_0xc170ff[_0x187877(0x103)][_0x187877(0xff)](/\s+/g,'\x20')[_0x187877(0x116)]():'';return'-\x20'+_0xc170ff[_0x187877(0x127)]['slice'](0x0,0x7)+_0x187877(0x129)+_0xc170ff['subject']+_0x5c8965;});return[_0x345c21(0x10d)+_0x345c21(0x10f)+_0x458e42[_0x345c21(0xe3)](getCurrentBranch),_0x345c21(0xe9)+_0x345c21(0x113)+_0x571733[_0x345c21(0x12e)],'',_0x458e42[_0x345c21(0x105)],..._0x1f8d97,'','Changed\x20'+'files:',_0x571733[_0x345c21(0x126)+'iles']||'(none)','',_0x458e42[_0x345c21(0x12f)],_0x571733[_0x345c21(0x128)]||_0x458e42[_0x345c21(0xde)]][_0x345c21(0xf3)]('\x0a');}export async function summarizeBranchLog(){const _0x5b829b=_0x4ad2,_0x47a6ef={'dSaNj':function(_0xb2014a){return _0xb2014a();},'TGnKX':function(_0x1db4b7){return _0x1db4b7();},'gzrDZ':_0x5b829b(0x11e)+_0x5b829b(0x124)+_0x5b829b(0xf1)+_0x5b829b(0x134),'xEpLG':function(_0x2f5e89,_0x5c043a){return _0x2f5e89(_0x5c043a);},'HCess':'Failed\x20t'+_0x5b829b(0xe2)+_0x5b829b(0xf7)+_0x5b829b(0xec)+'y.','toFRj':_0x5b829b(0xed)+_0x5b829b(0x119),'skDCE':function(_0x436eee,_0x23c0f2){return _0x436eee(_0x23c0f2);},'SttuL':_0x5b829b(0xeb),'muKwa':function(_0x20e47f){return _0x20e47f();}};_0x47a6ef[_0x5b829b(0x120)](getGitStatus);const _0x1855d3=_0x47a6ef[_0x5b829b(0x107)](getLLM),_0x360aae=_0x47a6ef[_0x5b829b(0x107)](formatBranchContextForPrompt),_0x2ce2ab=(_0x5b829b(0xee)+_0x5b829b(0xdb)+_0x5b829b(0x101)+'Brasil\x20o'+_0x5b829b(0xd9)+_0x5b829b(0xfc)+_0x5b829b(0x11d)+_0x5b829b(0xf9)+_0x5b829b(0x132)+_0x5b829b(0x122)+'agem\x20nat'+'ural\x20e\x20o'+_0x5b829b(0x125)+_0x5b829b(0x12c)+_0x5b829b(0x11a)+_0x5b829b(0xef)+_0x5b829b(0x131)+'bullets\x20'+_0x5b829b(0x12b)+_0x5b829b(0x102)+_0x5b829b(0xf2)+'-\x20Cite\x20i'+_0x5b829b(0xdf)+'ecnico\x20q'+_0x5b829b(0xf0)+_0x5b829b(0x108)+_0x5b829b(0x11c)+_0x5b829b(0x123)+'a\x20fora\x20d'+_0x5b829b(0x10e)+_0x5b829b(0xf5)+_0x5b829b(0x111)+_0x5b829b(0xe6)+'o\x20branch'+':\x0a'+_0x360aae+'\x0a')[_0x5b829b(0x116)](),_0x57dc2f=await withProgress(_0x47a6ef[_0x5b829b(0x112)],()=>_0x1855d3[_0x5b829b(0x118)](_0x2ce2ab)),_0x1d2bb7=_0x47a6ef['xEpLG'](extractMessageText,_0x57dc2f[_0x5b829b(0x110)]);!_0x1d2bb7&&_0x47a6ef['xEpLG'](failAndExit,_0x47a6ef[_0x5b829b(0xfd)]),_0x47a6ef[_0x5b829b(0x121)](section,_0x47a6ef['toFRj']),_0x47a6ef[_0x5b829b(0xe4)](printKeyValues,[{'key':_0x47a6ef[_0x5b829b(0xea)],'value':_0x47a6ef[_0x5b829b(0x130)](getCurrentBranch)}]),console[_0x5b829b(0xe0)](_0x1d2bb7),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x223c(){const _0x319c94=['te\x20PR\x20co','nges,\x20Te','+)+$','goeaf','PR\x20TITLE','AI\x20respo','max\x2072\x20c','VuPFd','actly\x20in','tblQa','quest.\x0aB','aOKck','Current\x20','sponse.','ion','TLE:\x20<ti','83440ybofeY','PR\x20DESCR','IPTION','IGpLV','replace','AcRSF','\x20this\x20fo','ch\x20data\x20','575562WpkLWw','\x20on\x20curr','tor','a:\x0a','...','281799tfnJKY','the\x20bran','A\x20clear\x20','PR\x20sugge','tle>\x0aDES','VlWxQ','No\x20commi','invoke','baseRef','o\x20genera','changedF','toString','Diff\x20sta','cription','yVSKz','branch:\x20','findInde','indexOf','\x20descrip','split','558736WELGWB','se\x20PR\x20ti','iption.','\x20generat','h\x20sectio','ntent.','d\x20PR\x20tit','ehmHg','message','(((.+)+)','ase','EkSRQ','trim','ent\x20bran','hars)\x0a-\x20','AI\x20is\x20pr','map','FzyOp','NuDiB','descript','eparing\x20','(none)','body','\x20A\x20conci','IqAJj','Failed\x20t','ing\x20cont','CqgKR','yXBIa','34705LQZNJq','CsDOQ','startsWi','ary,\x20Cha','nglish\x20(','Base\x20bra','search','content','JtOft','nch:\x20','hDDDI','ude\x20vali','commits','le/descr','Title','log','diffStat','PFWcW','XFjPy','Changed\x20','slice','ion:','ent\x20for\x20','\x0aYou\x20are','tle\x20in\x20E','length','FxTEH','below,\x20c','join','construc','QXLBW','sting\x0a\x0aR','PR\x20title','title','bkqNy','stion\x20fr','rmat:\x0aTI','52ZgYXZS','ShEkX','o\x20parse\x20','markdown','98413QaDKQF','1329783fdqNeM'];_0x223c=function(){return _0x319c94;};return _0x223c();}(function(_0x3f18b4,_0x391265){const _0x283de7=_0x2ef1,_0x5120b6=_0x3f18b4();while(!![]){try{const _0x1b4810=parseInt(_0x283de7(0xf1))/0x1+parseInt(_0x283de7(0x103))/0x2+-parseInt(_0x283de7(0x97))/0x3+-parseInt(_0x283de7(0xed))/0x4*(-parseInt(_0x283de7(0xc8))/0x5)+parseInt(_0x283de7(0x92))/0x6+-parseInt(_0x283de7(0xf2))/0x7+parseInt(_0x283de7(0xab))/0x8;if(_0x1b4810===_0x391265)break;else _0x5120b6['push'](_0x5120b6['shift']());}catch(_0x5204af){_0x5120b6['push'](_0x5120b6['shift']());}}}(_0x223c,0x1b669));const _0x150907=(function(){let _0x4aa23a=!![];return function(_0x1bd2a9,_0x11092e){const _0x2a2853=_0x4aa23a?function(){if(_0x11092e){const _0x216f5d=_0x11092e['apply'](_0x1bd2a9,arguments);return _0x11092e=null,_0x216f5d;}}:function(){};return _0x4aa23a=![],_0x2a2853;};}()),_0x5c558b=_0x150907(this,function(){const _0x57a796=_0x2ef1,_0x1bb1ef={'AcRSF':_0x57a796(0xb4)+_0x57a796(0xf5)};return _0x5c558b[_0x57a796(0xa2)]()[_0x57a796(0xce)](_0x1bb1ef[_0x57a796(0x108)])[_0x57a796(0xa2)]()[_0x57a796(0xe5)+_0x57a796(0x94)](_0x5c558b)['search'](_0x1bb1ef['AcRSF']);});_0x5c558b();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x546156=_0x2ef1,_0x36b705={'CqgKR':function(_0x1d49a9){return _0x1d49a9();},'ShEkX':function(_0x6fc61d,_0x36d191){return _0x6fc61d instanceof _0x36d191;},'IqAJj':function(_0x5f3540,_0x4ffe4c){return _0x5f3540(_0x4ffe4c);}};try{return _0x36b705[_0x546156(0xc6)](createLLM);}catch(_0x230019){const _0x2b95f6=_0x36b705[_0x546156(0xee)](_0x230019,Error)?_0x230019[_0x546156(0xb3)]:_0x36b705[_0x546156(0xc3)](String,_0x230019);failAndExit(_0x2b95f6);}}function formatCommitsForPrompt(){const _0x393838=_0x2ef1,_0x4b8292={'yXBIa':function(_0xb49e4e,_0x5d9a6d){return _0xb49e4e(_0x5d9a6d);},'PFWcW':function(_0x4daa77,_0x2a5311){return _0x4daa77!==_0x2a5311;},'VuPFd':_0x393838(0xea),'CsDOQ':function(_0x211cf3){return _0x211cf3();},'SjXDU':function(_0x362faa,_0x2902c8){return _0x362faa===_0x2902c8;},'FzyOp':function(_0x41d842){return _0x41d842();},'aOKck':'Commits:','IGpLV':_0x393838(0xdb)+'files:','hDDDI':'(none)'},_0x55d8ed=_0x4b8292[_0x393838(0xc9)](getBranchContext);_0x4b8292['SjXDU'](_0x55d8ed['commits'][_0x393838(0xe1)],0x0)&&failAndExit(_0x393838(0x9d)+'ts\x20found'+_0x393838(0x93)+_0x393838(0xb8)+'ch\x20again'+'st\x20'+_0x55d8ed[_0x393838(0x9f)]+'.');const _0x3edea2=_0x55d8ed[_0x393838(0xd4)][_0x393838(0xbb)](_0x24a5cd=>{const _0xbf1dcf=_0x393838;if(_0x4b8292[_0xbf1dcf(0xd9)](_0x4b8292[_0xbf1dcf(0xfa)],_0x4b8292[_0xbf1dcf(0xfa)]))_0x4b8292[_0xbf1dcf(0xc7)](_0x2684db,_0xbf1dcf(0xc4)+_0xbf1dcf(0xef)+_0xbf1dcf(0x9a)+_0xbf1dcf(0xeb)+'om\x20AI\x20re'+_0xbf1dcf(0x100));else{const _0x324269=_0x24a5cd[_0xbf1dcf(0xc1)]?'\x20|\x20body:'+'\x20'+_0x24a5cd[_0xbf1dcf(0xc1)][_0xbf1dcf(0x107)](/\s+/g,'\x20')[_0xbf1dcf(0xb7)]():'';return'-\x20'+_0x24a5cd['hash']['slice'](0x0,0x7)+'\x20|\x20'+_0x24a5cd['subject']+_0x324269;}});return[_0x393838(0xff)+_0x393838(0xa6)+_0x4b8292[_0x393838(0xbc)](getCurrentBranch),_0x393838(0xcd)+_0x393838(0xd1)+_0x55d8ed['baseRef'],'',_0x4b8292[_0x393838(0xfe)],..._0x3edea2,'',_0x4b8292[_0x393838(0x106)],_0x55d8ed[_0x393838(0xa1)+'iles']||_0x393838(0xc0),'',_0x393838(0xa3)+'t:',_0x55d8ed[_0x393838(0xd8)]||_0x4b8292[_0x393838(0xd2)]]['join']('\x0a');}function _0x2ef1(_0x387fdd,_0x41d154){_0x387fdd=_0x387fdd-0x92;const _0x2ef447=_0x223c();let _0x5c558b=_0x2ef447[_0x387fdd];return _0x5c558b;}function parsePrSuggestion(_0x2cabfe){const _0x29e92d=_0x2ef1,_0x524946={'QXLBW':function(_0x35c57c,_0x2c1287){return _0x35c57c<_0x2c1287;},'VlWxQ':_0x29e92d(0xc4)+_0x29e92d(0xef)+_0x29e92d(0x9a)+_0x29e92d(0xeb)+'om\x20AI\x20re'+'sponse.','goeaf':function(_0x1c880a,_0x4ee3b6){return _0x1c880a||_0x4ee3b6;},'IthpW':function(_0x16753b,_0x29e22b){return _0x16753b(_0x29e22b);},'EkSRQ':_0x29e92d(0xf8)+'nse\x20did\x20'+'not\x20incl'+_0x29e92d(0xd3)+_0x29e92d(0xb1)+_0x29e92d(0xd5)+_0x29e92d(0xad)},_0x525ed2=_0x2cabfe[_0x29e92d(0xaa)](/\r?\n/),_0x1b5d31=_0x525ed2['find'](_0x3b5417=>_0x3b5417['toLowerC'+_0x29e92d(0xb5)]()[_0x29e92d(0xca)+'th']('title:')),_0x305d1f=_0x525ed2[_0x29e92d(0xa7)+'x'](_0x3f7ebd=>_0x3f7ebd['toLowerC'+_0x29e92d(0xb5)]()[_0x29e92d(0xca)+'th'](_0x29e92d(0xbe)+_0x29e92d(0xdd)));(!_0x1b5d31||_0x524946[_0x29e92d(0xe6)](_0x305d1f,0x0))&&failAndExit(_0x524946[_0x29e92d(0x9c)]);const _0x5648de=_0x1b5d31['slice'](_0x1b5d31[_0x29e92d(0xa8)](':')+0x1)[_0x29e92d(0xb7)](),_0x508fbe=_0x525ed2[_0x29e92d(0xdc)](_0x305d1f+0x1)[_0x29e92d(0xe4)]('\x0a')[_0x29e92d(0xb7)]();return _0x524946[_0x29e92d(0xf6)](!_0x5648de,!_0x508fbe)&&_0x524946['IthpW'](failAndExit,_0x524946[_0x29e92d(0xb6)]),{'title':_0x5648de,'description':_0x508fbe};}export async function generatePullRequestText(){const _0x351075=_0x2ef1,_0x3adf68={'FxTEH':function(_0x5632e0){return _0x5632e0();},'yVSKz':function(_0x5ef80d){return _0x5ef80d();},'tblQa':function(_0x5b8da7,_0x4c6d82){return _0x5b8da7(_0x4c6d82);},'YXzYo':'Failed\x20t'+_0x351075(0xa0)+_0x351075(0xf3)+_0x351075(0xb0),'JtOft':function(_0x5a1b1e,_0x1b1842){return _0x5a1b1e(_0x1b1842);},'NuDiB':_0x351075(0xf7),'XFjPy':_0x351075(0xd6),'ehmHg':_0x351075(0x104)+_0x351075(0x105)};_0x3adf68['FxTEH'](getGitStatus);const _0x4a449e=_0x3adf68[_0x351075(0xa5)](getLLM),_0xad6987=_0x3adf68[_0x351075(0xe2)](formatCommitsForPrompt),_0x49b5ca=(_0x351075(0xdf)+_0x351075(0xae)+_0x351075(0xc5)+_0x351075(0xde)+'a\x20GitHub'+'\x20Pull\x20Re'+_0x351075(0xfd)+'ased\x20on\x20'+_0x351075(0x98)+_0x351075(0x10a)+_0x351075(0xe3)+'reate:\x0a-'+_0x351075(0xc2)+_0x351075(0xac)+_0x351075(0xe0)+_0x351075(0xcc)+_0x351075(0xf9)+_0x351075(0xb9)+_0x351075(0x99)+_0x351075(0xf0)+_0x351075(0xa9)+'tion\x20wit'+_0x351075(0xaf)+'ns:\x20Summ'+_0x351075(0xcb)+_0x351075(0xf4)+_0x351075(0xe7)+'eturn\x20ex'+_0x351075(0xfb)+_0x351075(0x109)+_0x351075(0xec)+_0x351075(0x102)+_0x351075(0x9b)+'CRIPTION'+':\x0a<markd'+'own>\x0a\x0aBr'+'anch\x20dat'+_0x351075(0x95)+_0xad6987+'\x0a')['trim'](),_0x50f608=await withProgress(_0x351075(0xba)+_0x351075(0xbf)+_0x351075(0xe8)+'\x20and\x20des'+_0x351075(0xa4)+_0x351075(0x96),()=>_0x4a449e[_0x351075(0x9e)](_0x49b5ca)),_0x12f085=extractMessageText(_0x50f608[_0x351075(0xcf)]);!_0x12f085&&_0x3adf68[_0x351075(0xfc)](failAndExit,_0x3adf68['YXzYo']);const _0x4872ab=_0x3adf68['tblQa'](parsePrSuggestion,_0x12f085);_0x3adf68[_0x351075(0xd0)](section,_0x3adf68[_0x351075(0xbd)]),_0x3adf68[_0x351075(0xd0)](printKeyValues,[{'key':_0x3adf68[_0x351075(0xda)],'value':_0x4872ab[_0x351075(0xe9)]}]),_0x3adf68[_0x351075(0xfc)](section,_0x3adf68[_0x351075(0xb2)]),console[_0x351075(0xd7)](_0x4872ab[_0x351075(0xbe)+_0x351075(0x101)]),console[_0x351075(0xd7)]();}
|
package/dist-secure/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4483e2,_0x35f5ec){const _0x51773d=_0x31c7,_0x2ebfca=_0x4483e2();while(!![]){try{const _0x12016f=parseInt(_0x51773d(0xd5))/0x1*(parseInt(_0x51773d(0xca))/0x2)+parseInt(_0x51773d(0xaa))/0x3+-parseInt(_0x51773d(0xcc))/0x4+parseInt(_0x51773d(0xb2))/0x5*(parseInt(_0x51773d(0xae))/0x6)+parseInt(_0x51773d(0xc6))/0x7+-parseInt(_0x51773d(0xc5))/0x8+-parseInt(_0x51773d(0xaf))/0x9;if(_0x12016f===_0x35f5ec)break;else _0x2ebfca['push'](_0x2ebfca['shift']());}catch(_0x541e32){_0x2ebfca['push'](_0x2ebfca['shift']());}}}(_0x45d5,0x43f53));const _0x244f41=(function(){const _0x2ddc22=_0x31c7,_0x412a58={'qXbIL':function(_0x38a768,_0x494479){return _0x38a768===_0x494479;},'bcPYF':_0x2ddc22(0xd3)};let _0x515327=!![];return function(_0xe7b662,_0x1ae023){const _0x636232=_0x2ddc22,_0x6743ba={'blbzk':function(_0x3542cb,_0x4a7c69){const _0x26b4d4=_0x31c7;return _0x412a58[_0x26b4d4(0xb1)](_0x3542cb,_0x4a7c69);},'LyAEm':function(_0x4257d9,_0x5c9d14){return _0x4257d9===_0x5c9d14;},'xKruU':_0x412a58[_0x636232(0xab)]},_0x1b73e0=_0x515327?function(){const _0x32dabc=_0x636232;if(_0x1ae023){if(_0x6743ba[_0x32dabc(0xb4)](_0x6743ba[_0x32dabc(0xba)],_0x32dabc(0xd7)))(_0x154aa8||_0x6743ba['blbzk'](_0x480ac1.env[_0x74b0e0],_0x32310c))&&(_0x1d64cd.env[_0x3efbae]=_0x1ce0d9);else{const _0x125d35=_0x1ae023[_0x32dabc(0xbd)](_0xe7b662,arguments);return _0x1ae023=null,_0x125d35;}}}:function(){};return _0x515327=![],_0x1b73e0;};}()),_0x10a157=_0x244f41(this,function(){const _0x193809=_0x31c7,_0x5cb241={'wOPHc':_0x193809(0xb3)+'+)+$'};return _0x10a157[_0x193809(0xd4)]()['search'](_0x5cb241['wOPHc'])[_0x193809(0xd4)]()[_0x193809(0xbc)+_0x193809(0xb8)](_0x10a157)[_0x193809(0xcb)](_0x5cb241['wOPHc']);});_0x10a157();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x3f405a}from'dotenv';function _0x45d5(){const _0x18bb43=['darwin','construc','apply','KZCPO','szCoD','MqjLe','platform','AIdwG','WPada','ion\x20Supp','2780896zLuLpQ','699013ESevSh','EHOkG','FmzIQ','ULKjx','12424xKFafu','search','532992eRsPWn','AVtWW','GyChT','JhJKE','Library','utf8','FmKWG','XMuAo','toString','67TeYUYC','gQuEH','MPLvS','.env','win32','528426GPblZR','bcPYF','Applicat','oNivP','6memuoQ','1850049PEyiIV','dkeqN','qXbIL','1362855BSdBir','(((.+)+)','LyAEm','RHHNx','yWlXm','ELBzG','tor','IqybU','xKruU'];_0x45d5=function(){return _0x18bb43;};return _0x45d5();}function getBaseConfigDir(){const _0x544bcb=_0x31c7,_0x50bb91={'aSNJQ':function(_0x1951f2,_0x5f0714){return _0x1951f2===_0x5f0714;},'mYERw':_0x544bcb(0xa9),'yZKfX':function(_0x19ea62,_0x1ec61b,_0x36f804){return _0x19ea62(_0x1ec61b,_0x36f804);},'oNivP':function(_0x5675c4){return _0x5675c4();},'gQuEH':'.gemit','JhJKE':_0x544bcb(0xbb),'WPada':function(_0x4571be,_0x86a563,_0x5424bd,_0xe95546){return _0x4571be(_0x86a563,_0x5424bd,_0xe95546);},'VaWbp':function(_0xa18287){return _0xa18287();},'dkeqN':_0x544bcb(0xd0)};if(_0x50bb91['aSNJQ'](process[_0x544bcb(0xc1)],_0x50bb91['mYERw']))return process.env.APPDATA||_0x50bb91['yZKfX'](join,_0x50bb91[_0x544bcb(0xad)](homedir),_0x50bb91[_0x544bcb(0xd6)]);if(process[_0x544bcb(0xc1)]===_0x50bb91[_0x544bcb(0xcf)])return _0x50bb91[_0x544bcb(0xc3)](join,_0x50bb91['VaWbp'](homedir),_0x50bb91[_0x544bcb(0xb0)],_0x544bcb(0xac)+_0x544bcb(0xc4)+'ort');return process.env.XDG_CONFIG_HOME||join(homedir(),'.config');}export function getGlobalEnvPath(){const _0x1f9541=_0x31c7,_0x283412={'yWlXm':function(_0xf78974){return _0xf78974();},'sriGU':_0x1f9541(0xd0),'AIdwG':_0x1f9541(0xac)+_0x1f9541(0xc4)+'ort','szCoD':function(_0x1c51c6,_0x58b7ef){return _0x1c51c6===_0x58b7ef;},'GyChT':_0x1f9541(0xa9),'anCbl':_0x1f9541(0xc9),'TVRYd':_0x1f9541(0xc0),'RHHNx':'gemit','AVtWW':_0x1f9541(0xa8),'FmzIQ':function(_0x3dd510,_0x251c73,_0x37b624,_0x4f4943){return _0x3dd510(_0x251c73,_0x37b624,_0x4f4943);}};if(_0x283412[_0x1f9541(0xbf)](process['platform'],_0x283412[_0x1f9541(0xce)])&&process.env.APPDATA)return _0x283412['anCbl']!==_0x283412['TVRYd']?join(process.env.APPDATA,_0x283412[_0x1f9541(0xb5)],_0x283412[_0x1f9541(0xcd)]):_0x138795(CAZCir['yWlXm'](_0x4f492f),CAZCir['sriGU'],CAZCir[_0x1f9541(0xc2)]);return _0x283412[_0x1f9541(0xc8)](join,_0x283412[_0x1f9541(0xb6)](getBaseConfigDir),_0x283412[_0x1f9541(0xb5)],_0x283412[_0x1f9541(0xcd)]);}function _0x31c7(_0x31549c,_0x33db99){_0x31549c=_0x31549c-0xa8;const _0x5445b0=_0x45d5();let _0x10a157=_0x5445b0[_0x31549c];return _0x10a157;}export function loadConfig(){const _0x4b98ff=_0x31c7,_0x589776={'KZCPO':function(_0x2f99df,_0x109beb,_0x5649d4){return _0x2f99df(_0x109beb,_0x5649d4);},'ELBzG':_0x4b98ff(0xa8)},_0x32cdc4=getGlobalEnvPath();_0x589776[_0x4b98ff(0xbe)](loadEnvFile,_0x32cdc4,![]),existsSync(_0x589776['ELBzG'])&&_0x589776[_0x4b98ff(0xbe)](loadEnvFile,_0x589776[_0x4b98ff(0xb7)],!![]);}function loadEnvFile(_0x397e18,_0xe7acc){const _0x3b4b11=_0x31c7,_0x10ccfc={'EHOkG':function(_0x5abfc4,_0x3ee00e){return _0x5abfc4(_0x3ee00e);},'IqybU':function(_0x374d9d,_0x9a711,_0x376e96){return _0x374d9d(_0x9a711,_0x376e96);},'FmKWG':_0x3b4b11(0xd1)};if(!_0x10ccfc[_0x3b4b11(0xc7)](existsSync,_0x397e18))return;const _0x540da6=_0x10ccfc[_0x3b4b11(0xc7)](_0x3f405a,_0x10ccfc[_0x3b4b11(0xb9)](readFileSync,_0x397e18,_0x10ccfc[_0x3b4b11(0xd2)]));for(const [_0x47f98f,_0x48b31e]of Object['entries'](_0x540da6)){(_0xe7acc||process.env[_0x47f98f]===undefined)&&(process.env[_0x47f98f]=_0x48b31e);}}
|
package/dist-secure/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x12fefe,_0x594ee7){const _0x31c2bc=_0x13ab,_0x5e615b=_0x12fefe();while(!![]){try{const _0x36ee0d=-parseInt(_0x31c2bc(0x19d))/0x1+-parseInt(_0x31c2bc(0x1a2))/0x2*(parseInt(_0x31c2bc(0x1c9))/0x3)+parseInt(_0x31c2bc(0x190))/0x4*(-parseInt(_0x31c2bc(0x193))/0x5)+parseInt(_0x31c2bc(0x1e4))/0x6*(parseInt(_0x31c2bc(0x1be))/0x7)+parseInt(_0x31c2bc(0x1e5))/0x8+-parseInt(_0x31c2bc(0x196))/0x9*(parseInt(_0x31c2bc(0x1c3))/0xa)+parseInt(_0x31c2bc(0x157))/0xb;if(_0x36ee0d===_0x594ee7)break;else _0x5e615b['push'](_0x5e615b['shift']());}catch(_0x48adef){_0x5e615b['push'](_0x5e615b['shift']());}}}(_0x4d4e,0x4df2f));const _0x2bae33=(function(){let _0x5e0661=!![];return function(_0x1be80e,_0xb1599c){const _0x458789=_0x5e0661?function(){const _0x1e32da=_0x13ab;if(_0xb1599c){const _0x11fda5=_0xb1599c[_0x1e32da(0x1d0)](_0x1be80e,arguments);return _0xb1599c=null,_0x11fda5;}}:function(){};return _0x5e0661=![],_0x458789;};}()),_0x2e1735=_0x2bae33(this,function(){const _0x3bdda1=_0x13ab,_0xbe5488={'LgyCc':_0x3bdda1(0x158)+'+)+$'};return _0x2e1735[_0x3bdda1(0x151)]()[_0x3bdda1(0x1e6)](_0xbe5488[_0x3bdda1(0x1d5)])[_0x3bdda1(0x151)]()['construc'+_0x3bdda1(0x197)](_0x2e1735)[_0x3bdda1(0x1e6)](_0xbe5488['LgyCc']);});_0x2e1735();function _0x13ab(_0x4bc0f9,_0x395a19){_0x4bc0f9=_0x4bc0f9-0x14e;const _0x2b0ad7=_0x4d4e();let _0x2e1735=_0x2b0ad7[_0x4bc0f9];return _0x2e1735;}import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x24b5f3){const _0x151613=_0x13ab,_0x213d87={'iVgQG':_0x151613(0x161)};return execFileSync(_0x213d87['iVgQG'],_0x24b5f3,{'stdio':'pipe'})[_0x151613(0x151)]();}function _0x4d4e(){const _0x36ec6f=['OKjlY','cdgWz','-ref','79856OqPoFp','log','o\x20stage\x20','140ThuPEj','KWgVG','rKISM','36GGVVDj','tor','--verify','@{upstre','pipe','\x20current','semqf','631411SHrbjD','Failed\x20t','t\x20read\x20g','\x20branch.','inherit','48XkjRKh','bfqnI','diff','%x1f%b%x','vqRon','git\x20rev-','UHGtx','UVYkk','slice','nch.\x20Set','e\x20merge-','t\x20histor','master','split','BhvCO','tDphb','subject','OaHUS','base\x20bra','files\x20wi','abbrev-r','aSeLr','--stat','\x20changes','add','cWuIq','cLKyF','ch\x20--sho','7hyOOuQ','xiyaE','=format:','--cached','hash','1338080wKwtTS','tatus','sPnpd','QccyV','t\x20detect','sWBgY','59985WvRxpd','dWOyp','Ncxzo','erify\x20--','..HEAD','TEvBW','git\x20show','apply','r\x20create','jOWIX','th\x20git\x20a','beNQy','LgyCc','YPDAO','nXzZL','oOvjT','origin','oenWQ','xotwh','-ref\x20--v','fCnir','ll-name\x20','\x20a\x20remot','OkLGw','WZTnC','--date=s','xszHZ','3018120zNWRts','5069720qAWGBl','search','develop','pqvsx','refs/hea','ef\x20--sym','toString','ds/','RqISS','--pretty','--name-s','yPgdR','15268649likbhU','(((.+)+)','\x20main/ma','avlCK','Not\x20a\x20gi','--revers','otes/','t\x20staged','HEAD','cllcH','git','ceeja','MAVGd','fiRSp','parse\x20--','fs/heads','isNaN','mYZXu','t\x20comput','it\x20commi','Ilkfy','LNcAW','bpdDL','merge-ba','1f%ad%x1','QZZAg','Could\x20no','t\x20infer\x20','iSukD','refs/rem','trim','includes','w-curren','filter','rev-pars','map','git\x20remo','f%an%x1e','LIbhD','--short','parseInt','XHdSy','t\x20reposi','base\x20wit','length','ocTky','lsiXg','symbolic','HReqi','construc','hort','wCQjt','qqCcn','main'];_0x4d4e=function(){return _0x36ec6f;};return _0x4d4e();}export function getGitStatus(){const _0x1c8357=_0x13ab,_0x1be23f={'OKjlY':'status','cWuIq':_0x1c8357(0x1b8),'fCnir':_0x1c8357(0x15b)+_0x1c8357(0x181)+'tory.'};try{const _0x7c9b13=runGit([_0x1be23f[_0x1c8357(0x18d)]]),_0x32d4f4=runGit([_0x1c8357(0x1a4),_0x1be23f[_0x1c8357(0x1bb)]]);return _0x7c9b13+'\x0a'+_0x32d4f4;}catch{failAndExit(_0x1be23f[_0x1c8357(0x1dd)]);}}export function branchExists(_0x25e9d8){const _0x23d8b7=_0x13ab,_0x42a442={'mYZXu':function(_0x598d35,_0x5eecd8,_0x1e4ea7){return _0x598d35(_0x5eecd8,_0x1e4ea7);},'bfqnI':_0x23d8b7(0x19a),'xotwh':function(_0xf64014,_0x50a763){return _0xf64014===_0x50a763;},'ocTky':_0x23d8b7(0x1c8)};try{return _0x42a442[_0x23d8b7(0x168)](execSync,_0x23d8b7(0x1cf)+_0x23d8b7(0x1dc)+_0x23d8b7(0x1cc)+'quiet\x20re'+_0x23d8b7(0x166)+'/'+_0x25e9d8,{'stdio':_0x42a442[_0x23d8b7(0x1a3)]}),!![];}catch{if(_0x42a442[_0x23d8b7(0x1db)](_0x42a442[_0x23d8b7(0x184)],_0x23d8b7(0x163))){const [_0x54cdea='',_0x32ab7a='',_0x124636='']=_0x5329d8[_0x23d8b7(0x1af)]('\x1f');return{'hash':_0x54cdea['trim'](),'subject':_0x32ab7a[_0x23d8b7(0x175)](),'body':_0x124636[_0x23d8b7(0x175)]()};}else return![];}}export function getCurrentBranch(){const _0x3f3808=_0x13ab,_0x36ee77={'dQXlk':function(_0x5ad11c,_0x47c03a,_0x211c88){return _0x5ad11c(_0x47c03a,_0x211c88);},'cLKyF':_0x3f3808(0x19a),'tDphb':function(_0x3f3322,_0x5a4ffb){return _0x3f3322(_0x5a4ffb);},'XHdSy':_0x3f3808(0x171)+_0x3f3808(0x1c7)+_0x3f3808(0x19b)+_0x3f3808(0x1a0),'wCQjt':function(_0x36fae0,_0x4e563f){return _0x36fae0(_0x4e563f);}};try{const _0x34a8e5=_0x36ee77['dQXlk'](execSync,'git\x20bran'+_0x3f3808(0x1bd)+_0x3f3808(0x177)+'t',{'stdio':_0x36ee77[_0x3f3808(0x1bc)]})[_0x3f3808(0x151)]()['trim']();return!_0x34a8e5&&_0x36ee77[_0x3f3808(0x1b1)](failAndExit,_0x36ee77[_0x3f3808(0x180)]),_0x34a8e5;}catch{_0x36ee77[_0x3f3808(0x18a)](failAndExit,_0x3f3808(0x171)+_0x3f3808(0x1c7)+_0x3f3808(0x19b)+_0x3f3808(0x1a0));}}export function getUpstreamInfo(){const _0x1b50fb=_0x13ab,_0x3ca606={'OkLGw':_0x1b50fb(0x158)+'+)+$','YZdVt':function(_0x150558,_0x9d0ae3,_0x32ab92){return _0x150558(_0x9d0ae3,_0x32ab92);},'GcuMt':_0x1b50fb(0x1a7)+_0x1b50fb(0x165)+_0x1b50fb(0x1b6)+_0x1b50fb(0x150)+'bolic-fu'+_0x1b50fb(0x1de)+_0x1b50fb(0x199)+'am}','KWgVG':'pipe','UHGtx':function(_0x31e665,_0x11c6d6){return _0x31e665<=_0x11c6d6;},'FAPiN':function(_0x45338d,_0x4b2c70){return _0x45338d+_0x4b2c70;},'bSDCj':function(_0x5f8933,_0x5ea2f1){return _0x5f8933!==_0x5ea2f1;},'AvEuQ':'hQyNx','pqvsx':_0x1b50fb(0x15a)};try{const _0x4570fb=_0x3ca606['YZdVt'](execSync,_0x3ca606['GcuMt'],{'stdio':_0x3ca606[_0x1b50fb(0x194)]})[_0x1b50fb(0x151)]()['trim'](),_0x72fe53=_0x4570fb['indexOf']('/');if(_0x3ca606[_0x1b50fb(0x1a8)](_0x72fe53,0x0))return null;return{'fullName':_0x4570fb,'remote':_0x4570fb[_0x1b50fb(0x1aa)](0x0,_0x72fe53),'branch':_0x4570fb['slice'](_0x3ca606['FAPiN'](_0x72fe53,0x1))};}catch{return _0x3ca606['bSDCj'](_0x3ca606['AvEuQ'],_0x3ca606[_0x1b50fb(0x14e)])?null:_0xca8db9[_0x1b50fb(0x151)]()[_0x1b50fb(0x1e6)](KYeJes[_0x1b50fb(0x1e0)])[_0x1b50fb(0x151)]()[_0x1b50fb(0x188)+_0x1b50fb(0x197)](_0x29b079)[_0x1b50fb(0x1e6)](KYeJes[_0x1b50fb(0x1e0)]);}}export function getDefaultRemote(){const _0x3e3074=_0x13ab,_0x298ec8={'NGlXf':function(_0x1995f0,_0x215edd,_0xf0bfd0){return _0x1995f0(_0x215edd,_0xf0bfd0);},'qWrof':_0x3e3074(0x19a),'cMRsl':function(_0x47b19a,_0x3a740c){return _0x47b19a===_0x3a740c;},'sPnpd':_0x3e3074(0x1d9)};try{const _0x48622a=_0x298ec8['NGlXf'](execSync,_0x3e3074(0x17b)+'te',{'stdio':_0x298ec8['qWrof']})[_0x3e3074(0x151)]()[_0x3e3074(0x1af)](/\r?\n/)[_0x3e3074(0x17a)](_0x209d08=>_0x209d08[_0x3e3074(0x175)]())[_0x3e3074(0x178)](Boolean);if(_0x298ec8['cMRsl'](_0x48622a[_0x3e3074(0x183)],0x0))return null;if(_0x48622a[_0x3e3074(0x176)](_0x298ec8[_0x3e3074(0x1c5)]))return _0x298ec8['sPnpd'];return _0x48622a[0x0];}catch{return null;}}function resolveBaseRef(){const _0x599fb7=_0x13ab,_0x1f1812={'TveIk':function(_0x7035f1){return _0x7035f1();},'dWOyp':function(_0x78fb74,_0x1fb5d0,_0x4f19b9,_0x2755cf){return _0x78fb74(_0x1fb5d0,_0x4f19b9,_0x2755cf);},'beNQy':_0x599fb7(0x186)+_0x599fb7(0x18f),'Ilkfy':_0x599fb7(0x18c),'iSukD':_0x599fb7(0x1ae),'fiRSp':_0x599fb7(0x1e7),'rKISM':function(_0x578ee5,_0x1b10ab,_0x216a69,_0x1ba217){return _0x578ee5(_0x1b10ab,_0x216a69,_0x1ba217);},'cdgWz':'git','RqISS':_0x599fb7(0x198),'BhvCO':'pipe','LIbhD':function(_0x5ed344,_0x2cccd8,_0x1fbd3b,_0x1aaee5){return _0x5ed344(_0x2cccd8,_0x1fbd3b,_0x1aaee5);}},_0x32e069=_0x1f1812['TveIk'](getDefaultRemote);if(_0x32e069){try{const _0x41b65e=_0x1f1812[_0x599fb7(0x1ca)](execFileSync,'git',[_0x1f1812[_0x599fb7(0x1d4)],_0x599fb7(0x17e),_0x599fb7(0x174)+_0x599fb7(0x15d)+_0x32e069+'/HEAD'],{'stdio':_0x599fb7(0x19a)})[_0x599fb7(0x151)]()[_0x599fb7(0x175)]();if(_0x41b65e)return _0x41b65e;}catch{}for(const _0x50c4d7 of[_0x1f1812[_0x599fb7(0x16b)],_0x1f1812['iSukD'],_0x1f1812[_0x599fb7(0x164)]]){try{return _0x1f1812[_0x599fb7(0x195)](execFileSync,_0x1f1812[_0x599fb7(0x18e)],[_0x599fb7(0x179)+'e',_0x1f1812[_0x599fb7(0x153)],_0x599fb7(0x174)+_0x599fb7(0x15d)+_0x32e069+'/'+_0x50c4d7],{'stdio':_0x1f1812[_0x599fb7(0x1b0)]}),_0x32e069+'/'+_0x50c4d7;}catch{}}}for(const _0x33f74f of[_0x1f1812[_0x599fb7(0x16b)],_0x1f1812[_0x599fb7(0x173)],_0x599fb7(0x1e7)]){try{return _0x1f1812[_0x599fb7(0x17d)](execFileSync,_0x1f1812[_0x599fb7(0x18e)],[_0x599fb7(0x179)+'e',_0x1f1812[_0x599fb7(0x153)],_0x599fb7(0x14f)+_0x599fb7(0x152)+_0x33f74f],{'stdio':_0x1f1812[_0x599fb7(0x1b0)]}),_0x33f74f;}catch{}}failAndExit(_0x599fb7(0x171)+_0x599fb7(0x172)+_0x599fb7(0x1b4)+_0x599fb7(0x1ab)+_0x599fb7(0x1df)+'e\x20HEAD\x20o'+_0x599fb7(0x1d1)+_0x599fb7(0x159)+'ster.');}function getMergeBase(_0x544d2e){const _0x1a46ef=_0x13ab,_0x3bdc6d={'lsiXg':function(_0x29a118,_0x4517e7,_0x11fa7e,_0x4abfe7){return _0x29a118(_0x4517e7,_0x11fa7e,_0x4abfe7);},'QZZAg':_0x1a46ef(0x161),'WZTnC':_0x1a46ef(0x16e)+'se','vDyfp':_0x1a46ef(0x15f),'xszHZ':_0x1a46ef(0x19a),'gzDXH':function(_0x287ca8,_0x2539e1){return _0x287ca8(_0x2539e1);}};try{return _0x3bdc6d[_0x1a46ef(0x185)](execFileSync,_0x3bdc6d[_0x1a46ef(0x170)],[_0x3bdc6d[_0x1a46ef(0x1e1)],_0x544d2e,_0x3bdc6d['vDyfp']],{'stdio':_0x3bdc6d[_0x1a46ef(0x1e3)]})[_0x1a46ef(0x151)]()[_0x1a46ef(0x175)]();}catch{_0x3bdc6d['gzDXH'](failAndExit,_0x1a46ef(0x171)+_0x1a46ef(0x169)+_0x1a46ef(0x1ac)+_0x1a46ef(0x182)+'h\x20'+_0x544d2e+'.');}}function parseCommits(_0xfbe63a){const _0x574f94=_0x13ab;return _0xfbe63a['split']('\x1e')[_0x574f94(0x17a)](_0x4debfb=>_0x4debfb[_0x574f94(0x175)]())[_0x574f94(0x178)](Boolean)[_0x574f94(0x17a)](_0x1b066b=>{const _0x4692b6=_0x574f94,[_0x3d8593='',_0x49a511='',_0x18942c='']=_0x1b066b[_0x4692b6(0x1af)]('\x1f');return{'hash':_0x3d8593[_0x4692b6(0x175)](),'subject':_0x49a511[_0x4692b6(0x175)](),'body':_0x18942c[_0x4692b6(0x175)]()};})[_0x574f94(0x178)](_0x913d42=>Boolean(_0x913d42[_0x574f94(0x1c2)])&&Boolean(_0x913d42[_0x574f94(0x1b2)]));}export function getBranchContext(){const _0x441170=_0x13ab,_0x34bdd2={'jOWIX':function(_0x2ed504){return _0x2ed504();},'LNcAW':function(_0x40c9ca,_0x5d6d09){return _0x40c9ca(_0x5d6d09);},'iULmI':function(_0x48bd1a,_0xf98f1a,_0x1b36a3,_0x3685a0){return _0x48bd1a(_0xf98f1a,_0x1b36a3,_0x3685a0);},'semqf':'git','xiyaE':_0x441170(0x154)+_0x441170(0x1c0)+'%H%x1f%s'+'%x1f%b%x'+'1e','HReqi':_0x441170(0x19a),'qqCcn':'diff','QccyV':function(_0x21c1ca,_0x322ea2,_0x22e63b,_0x4a903f){return _0x21c1ca(_0x322ea2,_0x22e63b,_0x4a903f);}},_0xdf62da=_0x34bdd2[_0x441170(0x1d2)](resolveBaseRef),_0x3c89e4=_0x34bdd2[_0x441170(0x16c)](getMergeBase,_0xdf62da),_0x230faf=_0x34bdd2['iULmI'](execFileSync,_0x34bdd2[_0x441170(0x19c)],['log',_0x441170(0x15c)+'e',_0x34bdd2[_0x441170(0x1bf)],_0x3c89e4+'..HEAD'],{'stdio':_0x34bdd2['HReqi']})['toString']()[_0x441170(0x175)](),_0x541bfa=execFileSync(_0x34bdd2['semqf'],[_0x34bdd2[_0x441170(0x18b)],_0x441170(0x1b8),_0x3c89e4+_0x441170(0x1cd)],{'stdio':_0x34bdd2[_0x441170(0x187)]})[_0x441170(0x151)]()[_0x441170(0x175)](),_0x23c6fc=_0x34bdd2[_0x441170(0x1c6)](execFileSync,_0x34bdd2[_0x441170(0x19c)],[_0x34bdd2['qqCcn'],_0x441170(0x155)+_0x441170(0x1c4),_0x3c89e4+_0x441170(0x1cd)],{'stdio':_0x34bdd2['HReqi']})[_0x441170(0x151)]()[_0x441170(0x175)]();return{'baseRef':_0xdf62da,'mergeBase':_0x3c89e4,'commits':parseCommits(_0x230faf),'diffStat':_0x541bfa,'changedFiles':_0x23c6fc};}export function getCommitHistory(_0x3dde5e=0x78){const _0x36ec7e=_0x13ab,_0x3fdf7f={'UVYkk':function(_0x1bcd68,_0x57a7e6,_0x16c6b1,_0x260997){return _0x1bcd68(_0x57a7e6,_0x16c6b1,_0x260997);},'nRdax':_0x36ec7e(0x161),'yPgdR':_0x36ec7e(0x191),'oOvjT':_0x36ec7e(0x15c)+'e','zLoLF':'--pretty'+_0x36ec7e(0x1c0)+'%H%x1f%s'+_0x36ec7e(0x1a5)+_0x36ec7e(0x16f)+_0x36ec7e(0x17c),'NCRAc':'pipe','URHXo':function(_0x306e60,_0x2e3564){return _0x306e60(_0x2e3564);}};try{const _0x3cdc7c=_0x3fdf7f[_0x36ec7e(0x1a9)](execFileSync,_0x3fdf7f['nRdax'],[_0x3fdf7f[_0x36ec7e(0x156)],'-'+_0x3dde5e,_0x3fdf7f[_0x36ec7e(0x1d8)],_0x3fdf7f['zLoLF'],_0x36ec7e(0x1e2)+_0x36ec7e(0x189)],{'stdio':_0x3fdf7f['NCRAc']})['toString']()[_0x36ec7e(0x175)]();return _0x3cdc7c[_0x36ec7e(0x1af)]('\x1e')[_0x36ec7e(0x17a)](_0x2bfdef=>_0x2bfdef[_0x36ec7e(0x175)]())[_0x36ec7e(0x178)](Boolean)[_0x36ec7e(0x17a)](_0x28aec8=>{const _0x2dca8e=_0x36ec7e,[_0x4ca143='',_0x5b5697='',_0x1647c9='',_0x3272e0='',_0x4f2d1c='']=_0x28aec8[_0x2dca8e(0x1af)]('\x1f');return{'hash':_0x4ca143['trim'](),'subject':_0x5b5697[_0x2dca8e(0x175)](),'body':_0x1647c9[_0x2dca8e(0x175)](),'date':_0x3272e0[_0x2dca8e(0x175)](),'author':_0x4f2d1c['trim']()};})[_0x36ec7e(0x178)](_0x408c7c=>Boolean(_0x408c7c[_0x36ec7e(0x1c2)])&&Boolean(_0x408c7c[_0x36ec7e(0x1b2)]));}catch{_0x3fdf7f['URHXo'](failAndExit,_0x36ec7e(0x171)+_0x36ec7e(0x19f)+_0x36ec7e(0x16a)+_0x36ec7e(0x1ad)+'y.');}}function parseNameStatusLine(_0x405cd6){const _0x42a930=_0x13ab,_0x1ea007={'wURxd':function(_0x7a7c71,_0x504f60){return _0x7a7c71<_0x504f60;},'oenWQ':function(_0x2cba95,_0x8bbd1d){return _0x2cba95-_0x8bbd1d;},'bpdDL':function(_0x57b629,_0x320a88){return _0x57b629||_0x320a88;}},_0xf41d82=_0x405cd6[_0x42a930(0x175)]();if(!_0xf41d82)return null;const _0x1cb1d6=_0xf41d82['split'](/\s+/);if(_0x1ea007['wURxd'](_0x1cb1d6[_0x42a930(0x183)],0x2))return null;const _0x5205f4=_0x1cb1d6[0x0][_0x42a930(0x175)](),_0x477c6f=_0x1cb1d6[_0x1ea007[_0x42a930(0x1da)](_0x1cb1d6[_0x42a930(0x183)],0x1)][_0x42a930(0x175)]();if(_0x1ea007[_0x42a930(0x16d)](!_0x5205f4,!_0x477c6f))return null;return{'status':_0x5205f4,'path':_0x477c6f};}export function stageAll(){const _0x19f9c4=_0x13ab,_0x44c45e={'Ncxzo':'git','cllcH':_0x19f9c4(0x1a1),'UWoNk':function(_0x28d640,_0x1105f2){return _0x28d640(_0x1105f2);},'TEvBW':_0x19f9c4(0x19e)+_0x19f9c4(0x192)+_0x19f9c4(0x1b5)+_0x19f9c4(0x1d3)+'dd\x20.'};try{execFileSync(_0x44c45e[_0x19f9c4(0x1cb)],[_0x19f9c4(0x1ba),'.'],{'stdio':_0x44c45e[_0x19f9c4(0x160)]});}catch{_0x44c45e['UWoNk'](failAndExit,_0x44c45e[_0x19f9c4(0x1ce)]);}}export function getStagedContext(_0x5c5cb9=0x2710){const _0x23a27=_0x13ab,_0x1ec61e={'vqRon':function(_0xecd68d,_0x4a3c0c){return _0xecd68d(_0x4a3c0c);},'nXzZL':_0x23a27(0x1a4),'ceeja':function(_0xb01a34,_0x212e85){return _0xb01a34(_0x212e85);},'OaHUS':_0x23a27(0x1c1),'YPDAO':_0x23a27(0x1b8),'UBNzp':function(_0x45ab7f,_0x21ae15){return _0x45ab7f(_0x21ae15);},'sSTgl':function(_0x309338,_0x4b70ef){return _0x309338>_0x4b70ef;},'aSeLr':_0x23a27(0x19e)+'o\x20inspec'+_0x23a27(0x15e)+_0x23a27(0x1b9)+'.'};try{const _0x302994=_0x1ec61e[_0x23a27(0x1a6)](runGit,[_0x1ec61e[_0x23a27(0x1d7)],'--cached',_0x23a27(0x155)+_0x23a27(0x1c4)]),_0x27858e=_0x1ec61e[_0x23a27(0x162)](runGit,[_0x1ec61e[_0x23a27(0x1d7)],_0x1ec61e[_0x23a27(0x1b3)],_0x1ec61e[_0x23a27(0x1d6)]])[_0x23a27(0x175)](),_0x541f69=_0x1ec61e['UBNzp'](runGit,[_0x23a27(0x1a4),_0x1ec61e[_0x23a27(0x1b3)]]),_0x1ac2c6=_0x1ec61e[_0x23a27(0x162)](runGit,[_0x1ec61e['nXzZL'],_0x1ec61e[_0x23a27(0x1b3)],'--numsta'+'t']),_0x584045=_0x302994[_0x23a27(0x1af)](/\r?\n/)[_0x23a27(0x17a)](_0x27cfa4=>parseNameStatusLine(_0x27cfa4))[_0x23a27(0x178)](_0x46b1dc=>Boolean(_0x46b1dc));let _0x39d2ad=0x0,_0x368bfe=0x0;for(const _0x4bb18b of _0x1ac2c6[_0x23a27(0x1af)](/\r?\n/)){const _0x4c86cc=_0x4bb18b[_0x23a27(0x175)]();if(!_0x4c86cc)continue;const [_0x5c20aa='0',_0x2dd36e='0']=_0x4c86cc[_0x23a27(0x1af)](/\s+/),_0x29c90a=Number[_0x23a27(0x17f)](_0x5c20aa,0xa),_0x9c3065=Number[_0x23a27(0x17f)](_0x2dd36e,0xa);_0x39d2ad+=Number[_0x23a27(0x167)](_0x29c90a)?0x0:_0x29c90a,_0x368bfe+=Number['isNaN'](_0x9c3065)?0x0:_0x9c3065;}const _0x452003=_0x1ec61e['sSTgl'](_0x541f69[_0x23a27(0x183)],_0x5c5cb9),_0x35c2fa=_0x452003?_0x541f69['slice'](0x0,_0x5c5cb9):_0x541f69;return{'files':_0x584045,'diffStat':_0x27858e,'patch':_0x35c2fa['trim'](),'metrics':{'fileCount':_0x584045[_0x23a27(0x183)],'insertions':_0x39d2ad,'deletions':_0x368bfe,'patchChars':_0x541f69[_0x23a27(0x183)],'truncated':_0x452003}};}catch{failAndExit(_0x1ec61e[_0x23a27(0x1b7)]);}}
|
|
1
|
+
(function(_0x308c8c,_0x535a8d){const _0x26bc35=_0x5ee1,_0x125486=_0x308c8c();while(!![]){try{const _0x174ffd=parseInt(_0x26bc35(0x173))/0x1*(parseInt(_0x26bc35(0x15f))/0x2)+-parseInt(_0x26bc35(0x12b))/0x3+parseInt(_0x26bc35(0xfd))/0x4+-parseInt(_0x26bc35(0x185))/0x5+parseInt(_0x26bc35(0x14d))/0x6+-parseInt(_0x26bc35(0x18b))/0x7*(parseInt(_0x26bc35(0x195))/0x8)+parseInt(_0x26bc35(0x162))/0x9*(parseInt(_0x26bc35(0x112))/0xa);if(_0x174ffd===_0x535a8d)break;else _0x125486['push'](_0x125486['shift']());}catch(_0x2661e6){_0x125486['push'](_0x125486['shift']());}}}(_0x8ec8,0xe116c));const _0x127e6b=(function(){let _0xee54b7=!![];return function(_0x3b27ce,_0x2bd2a2){const _0x172213=_0xee54b7?function(){const _0x3e17a5=_0x5ee1;if(_0x2bd2a2){const _0x644cd1=_0x2bd2a2[_0x3e17a5(0x129)](_0x3b27ce,arguments);return _0x2bd2a2=null,_0x644cd1;}}:function(){};return _0xee54b7=![],_0x172213;};}()),_0x2411ba=_0x127e6b(this,function(){const _0x4f3773=_0x5ee1,_0xc91ff2={'VSgkC':'(((.+)+)'+_0x4f3773(0x11a)};return _0x2411ba[_0x4f3773(0x14f)]()[_0x4f3773(0x178)](_0xc91ff2[_0x4f3773(0x127)])[_0x4f3773(0x14f)]()[_0x4f3773(0x151)+_0x4f3773(0x117)](_0x2411ba)[_0x4f3773(0x178)](_0xc91ff2[_0x4f3773(0x127)]);});_0x2411ba();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x2a27d2){const _0x55ede5=_0x5ee1,_0x32f917={'pZpWU':_0x55ede5(0x14b)};return execFileSync('git',_0x2a27d2,{'stdio':_0x32f917['pZpWU']})['toString']();}export function getGitStatus(){const _0x5573ed=_0x5ee1,_0x240c3c={'cGxdV':function(_0xa30b61,_0x1ec1f2){return _0xa30b61(_0x1ec1f2);},'pWESo':'status','jaoRB':function(_0x5381ab,_0x559d5f){return _0x5381ab(_0x559d5f);},'UKAvV':_0x5573ed(0x13f),'dpIbR':function(_0x1fdb2f,_0x16c66f){return _0x1fdb2f(_0x16c66f);},'UggPk':_0x5573ed(0x16f)+_0x5573ed(0x147)+_0x5573ed(0x148)};try{const _0x16cb52=_0x240c3c[_0x5573ed(0x171)](runGit,[_0x240c3c['pWESo']]),_0x560f63=_0x240c3c['jaoRB'](runGit,['diff',_0x240c3c['UKAvV']]);return _0x16cb52+'\x0a'+_0x560f63;}catch{_0x240c3c[_0x5573ed(0x172)](failAndExit,_0x240c3c[_0x5573ed(0x197)]);}}export function branchExists(_0x3d2d6a){const _0x10d991=_0x5ee1,_0x3c794e={'lPwjF':_0x10d991(0x16f)+'t\x20reposi'+_0x10d991(0x148),'xLwLP':_0x10d991(0x14b),'IWTKw':_0x10d991(0x18d)};try{return execSync(_0x10d991(0x149)+'-ref\x20--v'+_0x10d991(0x145)+'quiet\x20re'+_0x10d991(0x176)+'/'+_0x3d2d6a,{'stdio':_0x3c794e[_0x10d991(0x13b)]}),!![];}catch{if(_0x3c794e[_0x10d991(0x119)]!==_0x10d991(0x18d))_0x21354b(IzUTEr[_0x10d991(0x177)]);else return![];}}export function getCurrentBranch(){const _0x5aa404=_0x5ee1,_0x193ca1={'IUzlS':function(_0x33fe6e,_0xfd6ec0,_0x44c2a8){return _0x33fe6e(_0xfd6ec0,_0x44c2a8);},'BSUzC':_0x5aa404(0x169)+_0x5aa404(0x100)+_0x5aa404(0x13e)+'t','BOBnr':'Could\x20no'+_0x5aa404(0x16a)+'\x20current'+_0x5aa404(0x105)};try{const _0x234510=_0x193ca1[_0x5aa404(0x160)](execSync,_0x193ca1[_0x5aa404(0x11c)],{'stdio':_0x5aa404(0x14b)})[_0x5aa404(0x14f)]()['trim']();return!_0x234510&&failAndExit(_0x193ca1[_0x5aa404(0x155)]),_0x234510;}catch{failAndExit(_0x193ca1[_0x5aa404(0x155)]);}}function _0x8ec8(){const _0x15c69a=['4410852QFzmMk','rsHcX','parse\x20--','ONQVL','t\x20staged','Could\x20no','main','WTtdM','it\x20commi','--name-s','eWUgz','merge-ba','ZpanK','\x20current','qqQnB','\x20changes','xLwLP','--numsta','RizJC','w-curren','--stat','DbzvG','jddpe','Failed\x20t','--cached','jRwNL','erify\x20--','HPKHm','t\x20reposi','tory.','git\x20show','parseInt','pipe','tatus','4695540vfJJtm','UKpjy','toString','develop','construc','refs/rem','--revers','iYvZv','BOBnr','HEAD','e\x20HEAD\x20o','cNFnV','diff','files\x20wi','git\x20rev-','mpPXw','--short','zzreN','636TyCMRo','IUzlS','cEzls','15822kWQsmd','@{upstre','%H%x1f%s','caEBV','XJDiZ','--verify','ghwnJ','git\x20bran','t\x20detect','trim','bolic-fu','log','mvrFv','Not\x20a\x20gi','git','cGxdV','dpIbR','83MWUjwU','vJGPI','o\x20inspec','fs/heads','lPwjF','search','--pretty','filter','split','PdCYn','length','abbrev-r','symbolic','GbbkO','o\x20stage\x20','indexOf','isNaN','base\x20wit','8193500PCqXWY','/HEAD','hHqhg','EYpkV','hort','NVKRn','182FpxnIk','%x1f%b%x','ZPMIG','t\x20infer\x20','master','oDbmu','kEser','th\x20git\x20a','r\x20create','slice','229832WjgbJo','refs/hea','UggPk','JcxfJ','NRWqc','kyuTF','oCUDg','1593680pxXdeS','GaLWH','xiJcW','ch\x20--sho','otes/','isxpf','tbqkI','ppOjp','\x20branch.','mqlev','OqwSO','ZOXwQ','RewwZ','oriop','ster.','base\x20bra','--date=s','pfPyu','DzrLc','inherit','-ref','20310ysffJa','obusR','AnpuQ','rev-pars','PPTPZ','tor','map','IWTKw','+)+$','1f%ad%x1','BSUzC','sEloJ','..HEAD','origin','mTOMc','hbbem','PpJBX','includes','hash','eASIj','git\x20remo','VSgkC','\x20a\x20remot','apply','JCQjm'];_0x8ec8=function(){return _0x15c69a;};return _0x8ec8();}export function getUpstreamInfo(){const _0x18d7d4=_0x5ee1,_0x310095={'cNFnV':function(_0x596b6b,_0x2711ce,_0x30f18d){return _0x596b6b(_0x2711ce,_0x30f18d);},'hHqhg':_0x18d7d4(0x15b)+_0x18d7d4(0x12d)+_0x18d7d4(0x17e)+'ef\x20--sym'+_0x18d7d4(0x16c)+'ll-name\x20'+_0x18d7d4(0x163)+'am}','kyuTF':function(_0x3d32c2,_0xe0471){return _0x3d32c2<=_0xe0471;},'zsnCi':function(_0x15fecb,_0x290b67){return _0x15fecb+_0x290b67;}};try{const _0x4b5354=_0x310095[_0x18d7d4(0x158)](execSync,_0x310095[_0x18d7d4(0x187)],{'stdio':_0x18d7d4(0x14b)})[_0x18d7d4(0x14f)]()[_0x18d7d4(0x16b)](),_0x31d0fc=_0x4b5354[_0x18d7d4(0x182)]('/');if(_0x310095[_0x18d7d4(0xfb)](_0x31d0fc,0x0))return null;return{'fullName':_0x4b5354,'remote':_0x4b5354['slice'](0x0,_0x31d0fc),'branch':_0x4b5354['slice'](_0x310095['zsnCi'](_0x31d0fc,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x24c1a2=_0x5ee1,_0x49fba3={'CdQTA':_0x24c1a2(0x126)+'te','PPTPZ':'pipe','iYvZv':function(_0x4f59e6,_0xd2bc8f){return _0x4f59e6===_0xd2bc8f;},'RewwZ':_0x24c1a2(0x11f)};try{const _0x6a2f21=execSync(_0x49fba3['CdQTA'],{'stdio':_0x49fba3[_0x24c1a2(0x116)]})[_0x24c1a2(0x14f)]()['split'](/\r?\n/)['map'](_0x2ac0a5=>_0x2ac0a5[_0x24c1a2(0x16b)]())[_0x24c1a2(0x17a)](Boolean);if(_0x49fba3[_0x24c1a2(0x154)](_0x6a2f21[_0x24c1a2(0x17d)],0x0))return null;if(_0x6a2f21[_0x24c1a2(0x123)](_0x49fba3[_0x24c1a2(0x109)]))return _0x49fba3[_0x24c1a2(0x109)];return _0x6a2f21[0x0];}catch{return null;}}function resolveBaseRef(){const _0x283c6b=_0x5ee1,_0x5d16b1={'cEzls':function(_0x27937f){return _0x27937f();},'qqQnB':'git','RizJC':_0x283c6b(0x15d),'JcxfJ':_0x283c6b(0x14b),'isxpf':_0x283c6b(0x131),'rsHcX':'master','ghwnJ':_0x283c6b(0x150),'oCUDg':function(_0x5933bf,_0xfc973,_0x57ebd0,_0x34603c){return _0x5933bf(_0xfc973,_0x57ebd0,_0x34603c);},'mTOMc':_0x283c6b(0x115)+'e','ZpanK':function(_0x34a57a,_0x5f5730,_0x3d921a,_0x25c63c){return _0x34a57a(_0x5f5730,_0x3d921a,_0x25c63c);},'zPMLS':_0x283c6b(0x167),'sEloJ':function(_0x42431a,_0x21423c){return _0x42431a(_0x21423c);}},_0x25725c=_0x5d16b1[_0x283c6b(0x161)](getDefaultRemote);if(_0x25725c){try{const _0x3bcbf6=execFileSync(_0x5d16b1['qqQnB'],[_0x283c6b(0x17f)+_0x283c6b(0x111),_0x5d16b1[_0x283c6b(0x13d)],_0x283c6b(0x152)+_0x283c6b(0x101)+_0x25725c+_0x283c6b(0x186)],{'stdio':_0x5d16b1[_0x283c6b(0xf9)]})[_0x283c6b(0x14f)]()[_0x283c6b(0x16b)]();if(_0x3bcbf6)return _0x3bcbf6;}catch{}for(const _0x350e70 of[_0x5d16b1[_0x283c6b(0x102)],_0x5d16b1[_0x283c6b(0x12c)],_0x5d16b1['ghwnJ']]){try{return _0x5d16b1[_0x283c6b(0xfc)](execFileSync,_0x5d16b1[_0x283c6b(0x139)],[_0x5d16b1[_0x283c6b(0x120)],_0x283c6b(0x167),_0x283c6b(0x152)+_0x283c6b(0x101)+_0x25725c+'/'+_0x350e70],{'stdio':_0x5d16b1[_0x283c6b(0xf9)]}),_0x25725c+'/'+_0x350e70;}catch{}}}for(const _0x44fd37 of[_0x5d16b1[_0x283c6b(0x102)],_0x283c6b(0x18f),_0x5d16b1[_0x283c6b(0x168)]]){try{return _0x5d16b1[_0x283c6b(0x137)](execFileSync,_0x5d16b1[_0x283c6b(0x139)],[_0x5d16b1['mTOMc'],_0x5d16b1['zPMLS'],_0x283c6b(0x196)+'ds/'+_0x44fd37],{'stdio':_0x5d16b1[_0x283c6b(0xf9)]}),_0x44fd37;}catch{}}_0x5d16b1[_0x283c6b(0x11d)](failAndExit,_0x283c6b(0x130)+_0x283c6b(0x18e)+_0x283c6b(0x10c)+'nch.\x20Set'+_0x283c6b(0x128)+_0x283c6b(0x157)+_0x283c6b(0x193)+'\x20main/ma'+_0x283c6b(0x10b));}function getMergeBase(_0x40c8c8){const _0x4dee9e=_0x5ee1,_0x2518e5={'NRWqc':_0x4dee9e(0x170),'WTtdM':_0x4dee9e(0x136)+'se','UKpjy':_0x4dee9e(0x156),'sTbvA':_0x4dee9e(0x14b),'obusR':function(_0x50b494,_0x20bad2){return _0x50b494(_0x20bad2);}};try{return execFileSync(_0x2518e5[_0x4dee9e(0xfa)],[_0x2518e5[_0x4dee9e(0x132)],_0x40c8c8,_0x2518e5[_0x4dee9e(0x14e)]],{'stdio':_0x2518e5['sTbvA']})[_0x4dee9e(0x14f)]()[_0x4dee9e(0x16b)]();}catch{_0x2518e5[_0x4dee9e(0x113)](failAndExit,_0x4dee9e(0x130)+'t\x20comput'+'e\x20merge-'+_0x4dee9e(0x184)+'h\x20'+_0x40c8c8+'.');}}function parseCommits(_0x13c37e){const _0x4ca0ee=_0x5ee1;return _0x13c37e[_0x4ca0ee(0x17b)]('\x1e')['map'](_0x24234a=>_0x24234a[_0x4ca0ee(0x16b)]())[_0x4ca0ee(0x17a)](Boolean)[_0x4ca0ee(0x118)](_0x548b20=>{const _0x2f35ba=_0x4ca0ee,[_0x2c0469='',_0x34133c='',_0x5cdf84='']=_0x548b20['split']('\x1f');return{'hash':_0x2c0469[_0x2f35ba(0x16b)](),'subject':_0x34133c['trim'](),'body':_0x5cdf84[_0x2f35ba(0x16b)]()};})[_0x4ca0ee(0x17a)](_0x53c7eb=>Boolean(_0x53c7eb['hash'])&&Boolean(_0x53c7eb['subject']));}export function getBranchContext(){const _0x3d743b=_0x5ee1,_0x20ee76={'HPKHm':function(_0x275b80){return _0x275b80();},'DbzvG':function(_0x964d99,_0x5af12f,_0x24d69f,_0xb12dd7){return _0x964d99(_0x5af12f,_0x24d69f,_0xb12dd7);},'PdCYn':'--revers'+'e','eASIj':_0x3d743b(0x14b),'vJGPI':function(_0x118887,_0x128982,_0x5bc487,_0x5a1f1d){return _0x118887(_0x128982,_0x5bc487,_0x5a1f1d);},'mqlev':_0x3d743b(0x170),'jddpe':_0x3d743b(0x13f),'JCQjm':_0x3d743b(0x134)+_0x3d743b(0x14c),'vZnjZ':function(_0x2cdc22,_0x45c229){return _0x2cdc22(_0x45c229);}},_0x5610ed=_0x20ee76[_0x3d743b(0x146)](resolveBaseRef),_0x1db66b=getMergeBase(_0x5610ed),_0x20a6f2=_0x20ee76[_0x3d743b(0x140)](execFileSync,_0x3d743b(0x170),[_0x3d743b(0x16d),_0x20ee76[_0x3d743b(0x17c)],_0x3d743b(0x179)+'=format:'+'%H%x1f%s'+_0x3d743b(0x18c)+'1e',_0x1db66b+_0x3d743b(0x11e)],{'stdio':_0x20ee76[_0x3d743b(0x125)]})['toString']()[_0x3d743b(0x16b)](),_0x4fbbcc=_0x20ee76['vJGPI'](execFileSync,_0x20ee76['mqlev'],[_0x3d743b(0x159),_0x20ee76[_0x3d743b(0x141)],_0x1db66b+'..HEAD'],{'stdio':_0x20ee76[_0x3d743b(0x125)]})['toString']()[_0x3d743b(0x16b)](),_0x3a9a35=_0x20ee76[_0x3d743b(0x174)](execFileSync,_0x20ee76[_0x3d743b(0x106)],['diff',_0x20ee76[_0x3d743b(0x12a)],_0x1db66b+_0x3d743b(0x11e)],{'stdio':_0x3d743b(0x14b)})[_0x3d743b(0x14f)]()[_0x3d743b(0x16b)]();return{'baseRef':_0x5610ed,'mergeBase':_0x1db66b,'commits':_0x20ee76['vZnjZ'](parseCommits,_0x20a6f2),'diffStat':_0x4fbbcc,'changedFiles':_0x3a9a35};}export function getCommitHistory(_0x42140e=0x78){const _0x1c16f7=_0x5ee1,_0x5b90b0={'kEser':function(_0x268bb1,_0x4aae46,_0x22491b){return _0x268bb1(_0x4aae46,_0x22491b);},'DzrLc':_0x1c16f7(0x169)+_0x1c16f7(0x100)+_0x1c16f7(0x13e)+'t','tbqkI':_0x1c16f7(0x14b),'tYuJK':function(_0x86ca11,_0x387972){return _0x86ca11(_0x387972);},'OqwSO':'Could\x20no'+_0x1c16f7(0x16a)+_0x1c16f7(0x138)+_0x1c16f7(0x105),'mvrFv':function(_0x2b2af9,_0x1a898c,_0xd0787e,_0x39deb2){return _0x2b2af9(_0x1a898c,_0xd0787e,_0x39deb2);},'jRwNL':_0x1c16f7(0x170),'kMMyo':_0x1c16f7(0x16d),'ppOjp':_0x1c16f7(0x179)+'=format:'+_0x1c16f7(0x164)+'%x1f%b%x'+_0x1c16f7(0x11b)+'f%an%x1e','caEBV':_0x1c16f7(0x10d)+_0x1c16f7(0x189),'NVKRn':'CgYoX','EYpkV':'dpiwh','PpJBX':_0x1c16f7(0x130)+'t\x20read\x20g'+_0x1c16f7(0x133)+'t\x20histor'+'y.'};try{const _0x5ed4d5=_0x5b90b0[_0x1c16f7(0x16e)](execFileSync,_0x5b90b0[_0x1c16f7(0x144)],[_0x5b90b0['kMMyo'],'-'+_0x42140e,_0x1c16f7(0x153)+'e',_0x5b90b0[_0x1c16f7(0x104)],_0x5b90b0[_0x1c16f7(0x165)]],{'stdio':_0x5b90b0[_0x1c16f7(0x103)]})[_0x1c16f7(0x14f)]()['trim']();return _0x5ed4d5[_0x1c16f7(0x17b)]('\x1e')[_0x1c16f7(0x118)](_0xfcbba5=>_0xfcbba5[_0x1c16f7(0x16b)]())[_0x1c16f7(0x17a)](Boolean)['map'](_0x2ffb5e=>{const _0x37e005=_0x1c16f7,[_0x502d6d='',_0x21bbb3='',_0x40a317='',_0x48161d='',_0x5cac3a='']=_0x2ffb5e[_0x37e005(0x17b)]('\x1f');return{'hash':_0x502d6d[_0x37e005(0x16b)](),'subject':_0x21bbb3[_0x37e005(0x16b)](),'body':_0x40a317['trim'](),'date':_0x48161d['trim'](),'author':_0x5cac3a[_0x37e005(0x16b)]()};})[_0x1c16f7(0x17a)](_0x1e3c1b=>Boolean(_0x1e3c1b[_0x1c16f7(0x124)])&&Boolean(_0x1e3c1b['subject']));}catch{if(_0x5b90b0[_0x1c16f7(0x18a)]!==_0x5b90b0[_0x1c16f7(0x188)])_0x5b90b0['tYuJK'](failAndExit,_0x5b90b0[_0x1c16f7(0x122)]);else{const _0xe0827b=gtNtGG[_0x1c16f7(0x191)](_0x1b3f97,gtNtGG[_0x1c16f7(0x10f)],{'stdio':gtNtGG['tbqkI']})[_0x1c16f7(0x14f)]()[_0x1c16f7(0x16b)]();return!_0xe0827b&>NtGG['tYuJK'](_0x5510a6,gtNtGG[_0x1c16f7(0x107)]),_0xe0827b;}}}function _0x5ee1(_0x100b06,_0x38c3e5){_0x100b06=_0x100b06-0xf9;const _0x1ad5eb=_0x8ec8();let _0x2411ba=_0x1ad5eb[_0x100b06];return _0x2411ba;}function parseNameStatusLine(_0x351c2c){const _0x49fe3d=_0x5ee1,_0x4ff4cc={'AnpuQ':function(_0x2cf858,_0x9066a7){return _0x2cf858<_0x9066a7;},'GaLWH':function(_0x1a66a7,_0x37e3db){return _0x1a66a7-_0x37e3db;},'eWUgz':function(_0x40c9cd,_0x3d1303){return _0x40c9cd||_0x3d1303;}},_0x3c479b=_0x351c2c[_0x49fe3d(0x16b)]();if(!_0x3c479b)return null;const _0xc7b7ec=_0x3c479b[_0x49fe3d(0x17b)](/\s+/);if(_0x4ff4cc[_0x49fe3d(0x114)](_0xc7b7ec[_0x49fe3d(0x17d)],0x2))return null;const _0x10f535=_0xc7b7ec[0x0]['trim'](),_0x5f3d54=_0xc7b7ec[_0x4ff4cc[_0x49fe3d(0xfe)](_0xc7b7ec[_0x49fe3d(0x17d)],0x1)][_0x49fe3d(0x16b)]();if(_0x4ff4cc[_0x49fe3d(0x135)](!_0x10f535,!_0x5f3d54))return null;return{'status':_0x10f535,'path':_0x5f3d54};}export function stageAll(){const _0x163e08=_0x5ee1,_0x46d7d0={'ZOXwQ':_0x163e08(0x170),'UIOQC':'add','mpPXw':_0x163e08(0x110),'pfPyu':function(_0x4e286b,_0x2fd9ce){return _0x4e286b(_0x2fd9ce);}};try{execFileSync(_0x46d7d0[_0x163e08(0x108)],[_0x46d7d0['UIOQC'],'.'],{'stdio':_0x46d7d0[_0x163e08(0x15c)]});}catch{_0x46d7d0[_0x163e08(0x10e)](failAndExit,_0x163e08(0x142)+_0x163e08(0x181)+_0x163e08(0x15a)+_0x163e08(0x192)+'dd\x20.');}}export function getStagedContext(_0x1fe500=0x2710){const _0x55c5f1=_0x5ee1,_0x17ceb1={'hbbem':function(_0x1ef0f2,_0x124348){return _0x1ef0f2(_0x124348);},'oriop':_0x55c5f1(0x159),'GbbkO':'--cached','oDbmu':_0x55c5f1(0x134)+_0x55c5f1(0x14c),'CxMSg':_0x55c5f1(0x13f),'HgYTP':function(_0x58a521,_0xc7c3f7){return _0x58a521(_0xc7c3f7);},'xiJcW':_0x55c5f1(0x13c)+'t','ONQVL':function(_0xe4b9bd,_0xf1763){return _0xe4b9bd>_0xf1763;},'zzreN':function(_0x1cf8e6,_0x4a5820){return _0x1cf8e6(_0x4a5820);},'XJDiZ':_0x55c5f1(0x142)+_0x55c5f1(0x175)+_0x55c5f1(0x12f)+_0x55c5f1(0x13a)+'.'};try{const _0x423468=_0x17ceb1[_0x55c5f1(0x121)](runGit,[_0x17ceb1[_0x55c5f1(0x10a)],_0x17ceb1[_0x55c5f1(0x180)],_0x17ceb1[_0x55c5f1(0x190)]]),_0x3914e1=runGit([_0x17ceb1[_0x55c5f1(0x10a)],_0x55c5f1(0x143),_0x17ceb1['CxMSg']])[_0x55c5f1(0x16b)](),_0x5c3cf6=_0x17ceb1['hbbem'](runGit,[_0x55c5f1(0x159),_0x17ceb1[_0x55c5f1(0x180)]]),_0x427906=_0x17ceb1['HgYTP'](runGit,[_0x17ceb1['oriop'],_0x55c5f1(0x143),_0x17ceb1[_0x55c5f1(0xff)]]),_0x5d7530=_0x423468[_0x55c5f1(0x17b)](/\r?\n/)[_0x55c5f1(0x118)](_0x4b5b02=>parseNameStatusLine(_0x4b5b02))[_0x55c5f1(0x17a)](_0x4deb41=>Boolean(_0x4deb41));let _0x375a81=0x0,_0x1efdc3=0x0;for(const _0x13b283 of _0x427906['split'](/\r?\n/)){const _0x40bc4d=_0x13b283[_0x55c5f1(0x16b)]();if(!_0x40bc4d)continue;const [_0x582ef7='0',_0x576616='0']=_0x40bc4d[_0x55c5f1(0x17b)](/\s+/),_0xc536d7=Number['parseInt'](_0x582ef7,0xa),_0x2cc3b2=Number[_0x55c5f1(0x14a)](_0x576616,0xa);_0x375a81+=Number['isNaN'](_0xc536d7)?0x0:_0xc536d7,_0x1efdc3+=Number[_0x55c5f1(0x183)](_0x2cc3b2)?0x0:_0x2cc3b2;}const _0x343d41=_0x17ceb1[_0x55c5f1(0x12e)](_0x5c3cf6[_0x55c5f1(0x17d)],_0x1fe500),_0x5204da=_0x343d41?_0x5c3cf6[_0x55c5f1(0x194)](0x0,_0x1fe500):_0x5c3cf6;return{'files':_0x5d7530,'diffStat':_0x3914e1,'patch':_0x5204da[_0x55c5f1(0x16b)](),'metrics':{'fileCount':_0x5d7530[_0x55c5f1(0x17d)],'insertions':_0x375a81,'deletions':_0x1efdc3,'patchChars':_0x5c3cf6[_0x55c5f1(0x17d)],'truncated':_0x343d41}};}catch{_0x17ceb1[_0x55c5f1(0x15e)](failAndExit,_0x17ceb1[_0x55c5f1(0x166)]);}}
|
package/dist-secure/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const _0x122cff=_0x3fc4;(function(_0x565c71,_0x194284){const _0x50c0da=_0x3fc4,_0x51d388=_0x565c71();while(!![]){try{const _0x36b166=-parseInt(_0x50c0da(0x1e9))/0x1*(-parseInt(_0x50c0da(0x1cb))/0x2)+parseInt(_0x50c0da(0x1d8))/0x3+-parseInt(_0x50c0da(0x208))/0x4*(parseInt(_0x50c0da(0x1b2))/0x5)+-parseInt(_0x50c0da(0x1b4))/0x6+-parseInt(_0x50c0da(0x21d))/0x7*(-parseInt(_0x50c0da(0x1e1))/0x8)+-parseInt(_0x50c0da(0x1d1))/0x9*(parseInt(_0x50c0da(0x1bd))/0xa)+parseInt(_0x50c0da(0x209))/0xb;if(_0x36b166===_0x194284)break;else _0x51d388['push'](_0x51d388['shift']());}catch(_0x1a6ff6){_0x51d388['push'](_0x51d388['shift']());}}}(_0x3975,0xc232d));function _0x3fc4(_0x293513,_0x2ab0c2){_0x293513=_0x293513-0x1a2;const _0x39c20c=_0x3975();let _0xea9057=_0x39c20c[_0x293513];return _0xea9057;}const _0x2d196c=(function(){let _0x584247=!![];return function(_0x2c51be,_0x5938a9){const _0x4bdb5e=_0x584247?function(){const _0x57a444=_0x3fc4;if(_0x5938a9){const _0x3a5bdd=_0x5938a9[_0x57a444(0x211)](_0x2c51be,arguments);return _0x5938a9=null,_0x3a5bdd;}}:function(){};return _0x584247=![],_0x4bdb5e;};}()),_0xea9057=_0x2d196c(this,function(){const _0x19f842=_0x3fc4;return _0xea9057[_0x19f842(0x21f)]()[_0x19f842(0x20e)](_0x19f842(0x1d2)+_0x19f842(0x1e6))[_0x19f842(0x21f)]()[_0x19f842(0x204)+_0x19f842(0x1c0)](_0xea9057)['search'](_0x19f842(0x1d2)+_0x19f842(0x1e6));});_0xea9057();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';function _0x3975(){const _0x7f34dc=['he\x20versi','action','e\x20and\x20de','Stage\x20ch','l,\x20and\x20A','add','commit\x20m','Validate','gestion\x20','ext','e\x20descri','join','WZohW','f\x20recent','(git\x20add','argv','Force\x20a\x20','ogin\x20scr','ate\x20the\x20',',\x20and\x20ke','addHelpT','ble','parseAsy','Feature\x20','global)','Stage\x20al','Number\x20o','a\x20featur','ng\x20commi','ranch\x20co','e/summar','LZloW','15MkHJYP','name)','7938360hSEphr','iqljD','essages\x20','gemit','Configur','d\x20option','PI\x20key\x20(','l\x20change','uration','200PZHkEz','r\x20update','Base\x20fil','tor','dd\x20--all','catch','[name]','JxnLz','-v,\x20--ve','ersion\x20i','ude\x20(def','s\x20availa','\x20\x20gemit\x20','elog\x20fil','6POxyzq','\x20for\x20com','\x20provide','argument','commit\x20-','Suggest\x20','375552AcaWdF','(((.+)+)','length','Run\x20lint','\x20branch\x20','\x20commits','init','216348cZWwJZ','t\x20--all\x0a','r,\x20model','log\x0a\x20\x20ge','name','iUTTz','n\x20from\x20b','ault:\x2020','(require','2900056yRUgxn','it\x0a\x20\x20gem','dHHfG','option','emit\x20pr\x0a','+)+$','y\x20config','log','120209ZfJwxa','--check','ch\x20names','\x22oauth\x20l','<descrip','message','branch','ranch','irm\x20flow','e\x20from\x20c','\x0aExample','ally\x20cre','-c,\x20--co','doctor','est/conf','\x20to\x20incl','gelog\x0a\x20\x20','t)\x20befor','PajkL','version','/test\x20(i','\x20with\x20AI','ion','ommit\x20hi','urrent\x20b','e\x20creati','a\x20branch','construc','s:\x0a\x20\x20gem','er,\x20mode','check\x20fo','127928TthGfD','24791283txQsuK','mmits\x20<n','command','--all','t\x20update','search','Run\x20stag','mits','apply','ption.','\x20current','gemit\x20in','s\x20first\x20','mit\x20chan','descript','update','Generate','\x20.)','rsion','-check\x0a\x20','7kbVtvf','ize/sugg','toString'];_0x3975=function(){return _0x7f34dc;};return _0x3975();}loadConfig();const program=new Command();program[_0x122cff(0x1dc)](_0x122cff(0x1b7))[_0x122cff(0x217)+'ion'](style(_0x122cff(0x1d0)+_0x122cff(0x226)+_0x122cff(0x1b6)+'and\x20bran'+_0x122cff(0x1eb)+_0x122cff(0x1fe),ui['cyan']))[_0x122cff(0x1fc)](getCliVersion(),_0x122cff(0x1c5)+_0x122cff(0x21b),'output\x20t'+_0x122cff(0x220)+'on\x20numbe'+'r'),program[_0x122cff(0x1a6)+_0x122cff(0x229)]('after',_0x122cff(0x1f3)+_0x122cff(0x205)+_0x122cff(0x1e2)+'it\x20commi'+_0x122cff(0x1d9)+_0x122cff(0x1c9)+_0x122cff(0x1cf)+_0x122cff(0x21c)+'\x20gemit\x20a'+_0x122cff(0x1c1)+'\x0a\x20\x20gemit'+_0x122cff(0x1d5)+_0x122cff(0x1ec)+_0x122cff(0x1a3)+'een\x22\x0a\x20\x20g'+_0x122cff(0x1e5)+_0x122cff(0x1c9)+_0x122cff(0x1db)+_0x122cff(0x216)+_0x122cff(0x1f9)+_0x122cff(0x214)+_0x122cff(0x1e2)+'it\x20docto'+'r\x0a\x20\x20gemi'+_0x122cff(0x20d)+'\x0a'),program[_0x122cff(0x20b)]('commit')[_0x122cff(0x217)+'ion'](_0x122cff(0x20f)+_0x122cff(0x1b0)+_0x122cff(0x21e)+_0x122cff(0x1f7)+_0x122cff(0x1f1)+_0x122cff(0x1cc)+_0x122cff(0x210))[_0x122cff(0x1e4)](_0x122cff(0x20c),_0x122cff(0x1ab)+_0x122cff(0x1bb)+_0x122cff(0x215)+_0x122cff(0x22e)+_0x122cff(0x21a))['option'](_0x122cff(0x1ea),_0x122cff(0x1d4)+_0x122cff(0x1fd)+'f\x20presen'+_0x122cff(0x1fa)+_0x122cff(0x202)+_0x122cff(0x1ae)+'t')[_0x122cff(0x221)](_0x47792=>generateCommit(_0x47792)),program['command'](_0x122cff(0x225))[_0x122cff(0x217)+_0x122cff(0x1ff)](_0x122cff(0x223)+'anges\x20an'+'d\x20run\x20co'+'mmit\x20sug'+_0x122cff(0x228)+'flow')[_0x122cff(0x1e4)]('--all',_0x122cff(0x1ab)+'l\x20change'+_0x122cff(0x215)+_0x122cff(0x1e0)+'d)')[_0x122cff(0x1e4)]('--check','Run\x20lint'+'/test\x20(i'+'f\x20presen'+_0x122cff(0x1fa)+_0x122cff(0x202)+_0x122cff(0x1ae)+'t')[_0x122cff(0x221)](_0x1639b0=>addAndCommit(_0x1639b0)),program['command']('branch')[_0x122cff(0x217)+_0x122cff(0x1ff)](_0x122cff(0x1d0)+_0x122cff(0x203)+'\x20name\x20an'+_0x122cff(0x1b9)+_0x122cff(0x1f4)+_0x122cff(0x1a4)+_0x122cff(0x1ef))['argument'](_0x122cff(0x1ed)+'tion...>',_0x122cff(0x1a9)+_0x122cff(0x217)+_0x122cff(0x1ff))['action'](async _0x4dd328=>{const _0x385015=_0x122cff,_0x5cecba={'dHHfG':function(_0x2a57c6,_0x589283){return _0x2a57c6(_0x589283);},'VIUmg':'Provide\x20'+_0x385015(0x1ad)+_0x385015(0x22a)+_0x385015(0x212),'LZloW':function(_0x44dd3d,_0x3ad204){return _0x44dd3d(_0x3ad204);}},_0x3cf3cd=_0x4dd328[_0x385015(0x22b)]('\x20')['trim']();!_0x3cf3cd&&_0x5cecba[_0x385015(0x1e3)](failAndExit,_0x5cecba['VIUmg']),await _0x5cecba[_0x385015(0x1b1)](suggestBranch,_0x3cf3cd);}),program[_0x122cff(0x20b)]('pr')[_0x122cff(0x217)+_0x122cff(0x1ff)](_0x122cff(0x219)+'\x20PR\x20titl'+_0x122cff(0x222)+'scriptio'+_0x122cff(0x1de)+_0x122cff(0x1af)+'mmits')['action'](generatePullRequestText),program[_0x122cff(0x20b)](_0x122cff(0x1e8))['descript'+_0x122cff(0x1ff)]('Summariz'+'e\x20what\x20w'+'as\x20done\x20'+'in\x20the\x20c'+_0x122cff(0x201)+_0x122cff(0x1f0))['action'](summarizeBranchLog),program[_0x122cff(0x20b)]('changelo'+'g')[_0x122cff(0x217)+'ion'](_0x122cff(0x219)+'\x20a\x20chang'+_0x122cff(0x1ca)+_0x122cff(0x1f2)+_0x122cff(0x200)+'story')[_0x122cff(0x1ce)](_0x122cff(0x1c3),_0x122cff(0x1bf)+'e\x20name\x20('+'default:'+_0x122cff(0x213)+'\x20branch\x20'+_0x122cff(0x1b3))['option'](_0x122cff(0x1f5)+_0x122cff(0x20a)+'umber>',_0x122cff(0x1ac)+_0x122cff(0x22d)+_0x122cff(0x1d6)+_0x122cff(0x1f8)+_0x122cff(0x1c7)+_0x122cff(0x1df)+')')[_0x122cff(0x221)]((_0x58baea,_0x1f2a74)=>generateChangelog(_0x58baea,_0x1f2a74)),program['command'](_0x122cff(0x1d7))[_0x122cff(0x217)+_0x122cff(0x1ff)](_0x122cff(0x1b8)+'e\x20provid'+_0x122cff(0x206)+_0x122cff(0x224)+_0x122cff(0x1ba)+_0x122cff(0x1aa))[_0x122cff(0x221)](initConfig),program['command'](_0x122cff(0x1f6))[_0x122cff(0x217)+_0x122cff(0x1ff)](_0x122cff(0x227)+_0x122cff(0x1cd)+_0x122cff(0x1da)+_0x122cff(0x1a5)+_0x122cff(0x1e7)+_0x122cff(0x1bc))[_0x122cff(0x221)](doctorConfig),program[_0x122cff(0x20b)]('update')[_0x122cff(0x217)+_0x122cff(0x1ff)](_0x122cff(0x1a2)+_0x122cff(0x207)+_0x122cff(0x1be)+'s\x20and\x20in'+'stall\x20if'+'\x20a\x20new\x20v'+_0x122cff(0x1c6)+_0x122cff(0x1c8)+_0x122cff(0x1a7))[_0x122cff(0x221)](async()=>{const _0x5a9c97=_0x122cff,_0x5c198f={'PajkL':function(_0x1fe366,_0x906fe,_0x292925){return _0x1fe366(_0x906fe,_0x292925);}};await _0x5c198f[_0x5a9c97(0x1fb)](maybeAutoUpdate,process[_0x5a9c97(0x22f)],!![]);});async function main(){const _0x209ea4=_0x122cff,_0x4e0207={'iqljD':function(_0x40baf3,_0x1d5310){return _0x40baf3<=_0x1d5310;},'iUTTz':function(_0x2a41e8){return _0x2a41e8();}},_0x4ed359=process['argv']['some'](_0x5ebb95=>_0x5ebb95===_0x209ea4(0x218));!_0x4ed359&&await maybeAutoUpdate(process[_0x209ea4(0x22f)]);if(_0x4e0207[_0x209ea4(0x1b5)](process[_0x209ea4(0x22f)][_0x209ea4(0x1d3)],0x2)){await _0x4e0207[_0x209ea4(0x1dd)](generateCommit);return;}await program[_0x209ea4(0x1a8)+'nc'](process[_0x209ea4(0x22f)]);}main()[_0x122cff(0x1c2)](_0x2feb27=>{const _0x5a5e32=_0x122cff,_0x5c460a={'WZohW':function(_0x3c5b0b,_0x4ac556){return _0x3c5b0b instanceof _0x4ac556;},'JxnLz':function(_0x10f97c,_0x1d3497){return _0x10f97c(_0x1d3497);},'MYjua':function(_0x446438,_0x3c52ba){return _0x446438(_0x3c52ba);}},_0x19a56f=_0x5c460a[_0x5a5e32(0x22c)](_0x2feb27,Error)?_0x2feb27[_0x5a5e32(0x1ee)]:_0x5c460a[_0x5a5e32(0x1c4)](String,_0x2feb27);_0x5c460a['MYjua'](failAndExit,_0x19a56f);});
|
package/dist-secure/llm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cbde7,_0x2032b1){const _0x321106=_0x389f,_0x238c76=_0x2cbde7();while(!![]){try{const _0x2bd5d6=-parseInt(_0x321106(0xb1))/0x1+parseInt(_0x321106(0x8c))/0x2+parseInt(_0x321106(0x9d))/0x3+-parseInt(_0x321106(0x9b))/0x4*(parseInt(_0x321106(0x91))/0x5)+-parseInt(_0x321106(0xb6))/0x6*(parseInt(_0x321106(0xb9))/0x7)+parseInt(_0x321106(0xa7))/0x8*(-parseInt(_0x321106(0xb4))/0x9)+-parseInt(_0x321106(0xa3))/0xa*(-parseInt(_0x321106(0x9f))/0xb);if(_0x2bd5d6===_0x2032b1)break;else _0x238c76['push'](_0x238c76['shift']());}catch(_0x5d442b){_0x238c76['push'](_0x238c76['shift']());}}}(_0x5e7f,0xa6957));const _0x235570=(function(){let _0x34b145=!![];return function(_0x1a0b31,_0x294fa1){const _0x26427a=_0x34b145?function(){if(_0x294fa1){const _0x1f19d4=_0x294fa1['apply'](_0x1a0b31,arguments);return _0x294fa1=null,_0x1f19d4;}}:function(){};return _0x34b145=![],_0x26427a;};}()),_0x1107e4=_0x235570(this,function(){const _0xa25b88=_0x389f,_0x506d18={'dsOlN':'(((.+)+)'+'+)+$'};return _0x1107e4['toString']()[_0xa25b88(0xb8)](_0x506d18[_0xa25b88(0xae)])[_0xa25b88(0xb0)]()[_0xa25b88(0xb7)+_0xa25b88(0x9e)](_0x1107e4)[_0xa25b88(0xb8)](_0x506d18['dsOlN']);});_0x1107e4();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x214ae3){const _0x2c4400=_0x389f,_0x1abb09=process.env[_0x214ae3];if(!_0x1abb09)throw new Error(_0x2c4400(0x9c)+_0x214ae3+(_0x2c4400(0x99)+_0x2c4400(0x95)+'iable.'));return _0x1abb09;}export function createLLM(){const _0x12fb4d=_0x389f,_0x1aac3c={'nrVVC':function(_0x4ce9bf,_0x1bb580){return _0x4ce9bf===_0x1bb580;},'FyRfx':_0x12fb4d(0xbd),'krAsO':function(_0x57d031,_0x3c8532){return _0x57d031(_0x3c8532);},'VivVc':function(_0x11702e,_0x381a5e){return _0x11702e||_0x381a5e;},'bqQNW':_0x12fb4d(0xaa)+_0x12fb4d(0x90),'xxytM':function(_0x211f13,_0x5ad39b){return _0x211f13===_0x5ad39b;},'KZFVO':_0x12fb4d(0xa2),'NLoje':_0x12fb4d(0xa9)+'LE_API_K'+_0x12fb4d(0xbb)+_0x12fb4d(0xbc)+_0x12fb4d(0xad),'iTUGA':_0x12fb4d(0xac)+'PI_KEY','vUDWF':_0x12fb4d(0xa8)+'c','QhtKw':'ANTHROPI'+_0x12fb4d(0xaf)+'Y'},_0xd4967b=(process.env.LLM_PROVIDER||'google')['toLowerC'+'ase'](),_0x43fb59=process.env.LLM_MODEL||_0x1aac3c['bqQNW'];if(_0x1aac3c['xxytM'](_0xd4967b,_0x12fb4d(0x92))){if(_0x12fb4d(0xa4)!==_0x1aac3c[_0x12fb4d(0x8f)]){const _0x43c949=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x43c949)throw new Error(_0x1aac3c[_0x12fb4d(0xba)]);return new ChatGoogleGenerativeAI({'model':_0x43fb59,'apiKey':_0x43c949,'temperature':0.2});}else{if(_0x1aac3c[_0x12fb4d(0xb5)](typeof _0xd00cab,_0x1aac3c['FyRfx']))return _0x16a615[_0x12fb4d(0x96)]();if(_0x4198e2[_0x12fb4d(0x8d)](_0x25d548))return _0xfd516e[_0x12fb4d(0x9a)](_0xe2b962=>typeof _0xe2b962===_0x12fb4d(0xbd)?_0xe2b962:_0xe2b962?.[_0x12fb4d(0xb3)]||'')[_0x12fb4d(0x93)]('')['trim']();return _0x1aac3c[_0x12fb4d(0x98)](_0x46b742,_0x1aac3c[_0x12fb4d(0xa1)](_0x436eba,''))[_0x12fb4d(0x96)]();}}if(_0x1aac3c[_0x12fb4d(0xb5)](_0xd4967b,'openai'))return new ChatOpenAI({'model':_0x43fb59,'apiKey':_0x1aac3c[_0x12fb4d(0x98)](requireEnv,_0x1aac3c[_0x12fb4d(0x97)]),'temperature':0.2});if(_0x1aac3c['nrVVC'](_0xd4967b,_0x1aac3c[_0x12fb4d(0x8e)]))return new ChatAnthropic({'model':_0x43fb59,'apiKey':requireEnv(_0x1aac3c[_0x12fb4d(0xb2)]),'temperature':0.2});throw new Error(_0x12fb4d(0xa5)+_0x12fb4d(0x94)+_0x12fb4d(0xa0)+_0xd4967b);}function _0x389f(_0x3828d7,_0x47aef4){_0x3828d7=_0x3828d7-0x8c;const _0x284531=_0x5e7f();let _0x1107e4=_0x284531[_0x3828d7];return _0x1107e4;}export function extractMessageText(_0x35807c){const _0x59f33e=_0x389f,_0x3ae9ab={'CqvCV':function(_0x2410fa,_0x587fd8){return _0x2410fa===_0x587fd8;},'ttSPg':function(_0x5d6ea8,_0x33abbd){return _0x5d6ea8||_0x33abbd;}};if(_0x3ae9ab[_0x59f33e(0xab)](typeof _0x35807c,_0x59f33e(0xbd)))return _0x35807c['trim']();if(Array[_0x59f33e(0x8d)](_0x35807c))return _0x35807c[_0x59f33e(0x9a)](_0x259b42=>typeof _0x259b42==='string'?_0x259b42:_0x259b42?.[_0x59f33e(0xb3)]||'')[_0x59f33e(0x93)]('')[_0x59f33e(0x96)]();return String(_0x3ae9ab[_0x59f33e(0xa6)](_0x35807c,''))[_0x59f33e(0x96)]();}function _0x5e7f(){const _0x11fc76=['wSItX','10RDiLUD','KciCW','Invalid\x20','ttSPg','168qFRQKB','anthropi','Set\x20GOOG','gemini-2','CqvCV','OPENAI_A','_KEY.','dsOlN','C_API_KE','toString','295550JFGbHw','QhtKw','text','578835ZHoqTL','nrVVC','1362xTLwmb','construc','search','11032wJPilT','NLoje','EY\x20or\x20GE','MINI_API','string','1335784zyJoJV','isArray','vUDWF','KZFVO','.5-flash','5350qCuKEi','google','join','LLM_PROV','ment\x20var','trim','iTUGA','krAsO','\x20environ','map','2936KRzRYf','Set\x20the\x20','197433UCHUVH','tor','30117131EFXyEG','IDER:\x20','VivVc'];_0x5e7f=function(){return _0x11fc76;};return _0x5e7f();}
|
package/dist-secure/prompts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c5399,_0x3db43e){const _0x94938d=_0x456f,_0x5882af=_0x3c5399();while(!![]){try{const _0x479bcb=parseInt(_0x94938d(0x82))/0x1+-parseInt(_0x94938d(0x8b))/0x2+parseInt(_0x94938d(0x78))/0x3*(parseInt(_0x94938d(0x8d))/0x4)+parseInt(_0x94938d(0x81))/0x5*(-parseInt(_0x94938d(0x76))/0x6)+-parseInt(_0x94938d(0x7e))/0x7+parseInt(_0x94938d(0x7f))/0x8*(-parseInt(_0x94938d(0x74))/0x9)+parseInt(_0x94938d(0x77))/0xa;if(_0x479bcb===_0x3db43e)break;else _0x5882af['push'](_0x5882af['shift']());}catch(_0x384d52){_0x5882af['push'](_0x5882af['shift']());}}}(_0x40c1,0x49796));const _0x90810c=(function(){let _0x5891b2=!![];return function(_0x33836b,_0x10cd3f){const _0x3798f2=_0x5891b2?function(){const _0x2ffe01=_0x456f;if(_0x10cd3f){const _0x4d5371=_0x10cd3f[_0x2ffe01(0x8a)](_0x33836b,arguments);return _0x10cd3f=null,_0x4d5371;}}:function(){};return _0x5891b2=![],_0x3798f2;};}()),_0x340cf8=_0x90810c(this,function(){const _0x268ee5=_0x456f,_0x322f16={'caPeE':_0x268ee5(0x7d)+'+)+$'};return _0x340cf8[_0x268ee5(0x88)]()[_0x268ee5(0x8c)](_0x322f16[_0x268ee5(0x7b)])[_0x268ee5(0x88)]()[_0x268ee5(0x83)+_0x268ee5(0x80)](_0x340cf8)[_0x268ee5(0x8c)](_0x322f16[_0x268ee5(0x7b)]);});function _0x40c1(){const _0x3790bc=['13887260XBlOqy','3BEIDSQ','gsnXQ','PrOUu','caPeE','close','(((.+)+)','621537rFYoKM','954224OtDLtu','tor','20OnKWys','100009zSzLmh','construc','defaultY','auxYZ','question','fWjxy','toString','trim','apply','1160174jGwkZj','search','442324tUBKeT','18kqfIMe','ase','586398tpyUyD'];_0x40c1=function(){return _0x3790bc;};return _0x40c1();}_0x340cf8();import{createInterface}from'readline/promises';function _0x456f(_0x1a130e,_0x3cd71c){_0x1a130e=_0x1a130e-0x74;const _0x1795fa=_0x40c1();let _0x340cf8=_0x1795fa[_0x1a130e];return _0x340cf8;}import{stdin as _0x525d6a,stdout as _0x39b091}from'process';export async function askConfirmation(_0x129c08,_0x5e17cc={}){const _0x74919c=_0x456f,_0x5da97d={'gsnXQ':function(_0x39edaa,_0x1721a8){return _0x39edaa(_0x1721a8);},'fWjxy':function(_0x118066,_0x8ce97a){return _0x118066===_0x8ce97a;}},_0x30fdf4=createInterface({'input':_0x525d6a,'output':_0x39b091}),_0x3ef18b=await _0x30fdf4[_0x74919c(0x86)](_0x129c08);_0x30fdf4[_0x74919c(0x7c)]();const _0x45dff9=_0x3ef18b[_0x74919c(0x89)]()['toLowerC'+_0x74919c(0x75)]();if(!_0x45dff9)return _0x5da97d[_0x74919c(0x79)](Boolean,_0x5e17cc[_0x74919c(0x84)+'es']);return _0x5da97d[_0x74919c(0x87)](_0x45dff9,'y');}export async function askInput(_0x13cb3a){const _0x367f45=_0x456f,_0x3b3fce={'PrOUu':function(_0x4bd1c4,_0x2d3d50){return _0x4bd1c4(_0x2d3d50);}},_0x162a53=_0x3b3fce[_0x367f45(0x7a)](createInterface,{'input':_0x525d6a,'output':_0x39b091}),_0x193647=await _0x162a53[_0x367f45(0x86)](_0x13cb3a);return _0x162a53[_0x367f45(0x7c)](),_0x193647[_0x367f45(0x89)]();}export async function askEditableInput(_0x1ae783,_0x27d199){const _0x568ad0=_0x456f,_0x1e415b={'auxYZ':function(_0x598cae,_0x119b76){return _0x598cae(_0x119b76);}},_0x349e41=_0x1e415b[_0x568ad0(0x85)](createInterface,{'input':_0x525d6a,'output':_0x39b091}),_0x5ba467=await _0x349e41[_0x568ad0(0x86)](_0x1ae783);_0x349e41[_0x568ad0(0x7c)]();const _0x3b2d77=_0x5ba467[_0x568ad0(0x89)]();if(!_0x3b2d77)return _0x27d199;return _0x3b2d77;}
|
package/dist-secure/ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5e85db=_0x448b;(function(_0x14acad,_0x228723){const _0x26bb0e=_0x448b,_0x4a4cb0=_0x14acad();while(!![]){try{const _0x4dc548=-parseInt(_0x26bb0e(0x9b))/0x1*(-parseInt(_0x26bb0e(0xa8))/0x2)+parseInt(_0x26bb0e(0x6e))/0x3*(-parseInt(_0x26bb0e(0xa1))/0x4)+parseInt(_0x26bb0e(0xa4))/0x5*(parseInt(_0x26bb0e(0x71))/0x6)+-parseInt(_0x26bb0e(0x9c))/0x7+parseInt(_0x26bb0e(0x97))/0x8+-parseInt(_0x26bb0e(0x88))/0x9+parseInt(_0x26bb0e(0x82))/0xa;if(_0x4dc548===_0x228723)break;else _0x4a4cb0['push'](_0x4a4cb0['shift']());}catch(_0x17b937){_0x4a4cb0['push'](_0x4a4cb0['shift']());}}}(_0x21be,0xa9460));const _0x43ee75=(function(){let _0x44499d=!![];return function(_0x4616d7,_0x3b2da2){const _0x558ed6=_0x44499d?function(){if(_0x3b2da2){const _0x35ff9e=_0x3b2da2['apply'](_0x4616d7,arguments);return _0x3b2da2=null,_0x35ff9e;}}:function(){};return _0x44499d=![],_0x558ed6;};}()),_0x581c59=_0x43ee75(this,function(){const _0x549684=_0x448b,_0x397856={'DtjpO':_0x549684(0x73)+_0x549684(0xa3)};return _0x581c59[_0x549684(0xa2)]()[_0x549684(0x96)](_0x397856[_0x549684(0x8b)])[_0x549684(0xa2)]()[_0x549684(0xa7)+_0x549684(0x72)](_0x581c59)[_0x549684(0x96)](_0x397856['DtjpO']);});_0x581c59();export const ui={'reset':'\x1b[0m','bold':'\x1b[1m','dim':_0x5e85db(0x9f),'italic':_0x5e85db(0x7f),'underline':'\x1b[4m','cyan':'\x1b[36m','white':'\x1b[37m','green':_0x5e85db(0xa6),'yellow':_0x5e85db(0x7a),'red':'\x1b[31m','magenta':'\x1b[35m','gray':'\x1b[90m'};function _0x21be(){const _0x396281=['write','length','gray','min','red','EIgcY','yellow','arrow','tick','search','1258416SBPTls','repeat','bold','wuGEB','22654kNHpGr','3446709qRlKsr','UYbdv','ceDBD','\x1b[2m','white','128228ChWmXD','toString','+)+$','6530RFgKXV','KGzxa','\x1b[32m','construc','32fzAOmv','zQQFU','JovKr','exit','italic','OLipc','WQmBe','120MLdyOf','pdmMt','log','3480kZhsFS','tor','(((.+)+)','max','\x0d\x1b[2K','lRomT','key','stdout','sxdUz','\x1b[33m','WmLSn','reset','xINVW','padEnd','\x1b[3m','dYZuI','green','17976840PoGIqb','cyan','join','cross','value','reduce','5462271dxQIxo','error','bmMCS','DtjpO','ePJJV'];_0x21be=function(){return _0x396281;};return _0x21be();}export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};export function style(_0x1cbd1e,..._0x3eac7c){const _0x1200bd=_0x5e85db;return''+_0x3eac7c[_0x1200bd(0x84)]('')+_0x1cbd1e+ui[_0x1200bd(0x7c)];}function getDividerWidth(){const _0x118a5a=_0x5e85db,_0x3219e1=process[_0x118a5a(0x78)]['columns']||0x50;return Math[_0x118a5a(0x74)](0x28,Math[_0x118a5a(0x90)](_0x3219e1,0x50));}function _0x448b(_0x1c5a0e,_0x1eda66){_0x1c5a0e=_0x1c5a0e-0x6d;const _0x2d5390=_0x21be();let _0x581c59=_0x2d5390[_0x1c5a0e];return _0x581c59;}export function divider(){const _0x4c064d=_0x5e85db,_0x2838f0={'aXeQa':function(_0x114e70,_0x14c89d,_0x10ee09){return _0x114e70(_0x14c89d,_0x10ee09);},'sxdUz':function(_0x1fd2c6){return _0x1fd2c6();}};console[_0x4c064d(0x70)](_0x2838f0['aXeQa'](style,'─'[_0x4c064d(0x98)](_0x2838f0[_0x4c064d(0x79)](getDividerWidth)),ui[_0x4c064d(0x8f)]));}export function section(_0x2f14a1){const _0x474a6f=_0x5e85db;console[_0x474a6f(0x70)](),console['log']('\x20\x20'+_0x2f14a1+'\x20\x20'),console[_0x474a6f(0x70)]();}export function ok(_0x16e721,_0x116817){const _0x49a8fa=_0x5e85db,_0xbb735={'xINVW':function(_0x39f6c4,_0x5182a9,_0x5b0af2,_0x1437b2){return _0x39f6c4(_0x5182a9,_0x5b0af2,_0x1437b2);},'EIgcY':function(_0x5784c8,_0x1ecae9,_0xf40001){return _0x5784c8(_0x1ecae9,_0xf40001);}},_0x4bd378=style(symbols[_0x49a8fa(0x95)],ui[_0x49a8fa(0x81)],ui[_0x49a8fa(0x99)])+'\x20'+_0xbb735[_0x49a8fa(0x7d)](style,_0x16e721,ui['green'],ui['bold']);return _0x116817?_0x4bd378+'\x20'+_0xbb735[_0x49a8fa(0x92)](style,_0x116817,ui['gray']):_0x4bd378;}export function warn(_0x232fd2,_0x24a25a){const _0x32afec=_0x5e85db,_0x1d8ecb={'ceDBD':function(_0x410729,_0x13fe8f,_0x581769,_0x2ca263){return _0x410729(_0x13fe8f,_0x581769,_0x2ca263);},'zQQFU':function(_0x2db564,_0xb2aadb,_0x3bace9){return _0x2db564(_0xb2aadb,_0x3bace9);}},_0x5f54de=_0x1d8ecb[_0x32afec(0x9e)](style,symbols['warn'],ui[_0x32afec(0x93)],ui[_0x32afec(0x99)])+'\x20'+_0x1d8ecb['ceDBD'](style,_0x232fd2,ui[_0x32afec(0x93)],ui[_0x32afec(0x99)]);return _0x24a25a?_0x5f54de+'\x20'+_0x1d8ecb[_0x32afec(0xa9)](style,_0x24a25a,ui[_0x32afec(0x8f)]):_0x5f54de;}export function bad(_0x121154,_0x58edb8){const _0x202c40=_0x5e85db,_0x1895b7={'XGypX':function(_0x53f8f3,_0x54c061,_0x32710a,_0x2a39ec){return _0x53f8f3(_0x54c061,_0x32710a,_0x2a39ec);}},_0x18d65a=style(symbols[_0x202c40(0x85)],ui[_0x202c40(0x91)],ui[_0x202c40(0x99)])+'\x20'+_0x1895b7['XGypX'](style,_0x121154,ui[_0x202c40(0x91)],ui[_0x202c40(0x99)]);return _0x58edb8?_0x18d65a+'\x20'+style(_0x58edb8,ui[_0x202c40(0x8f)]):_0x18d65a;}export function info(_0x47dcfe,_0x3fec21){const _0x18fe72=_0x5e85db,_0x4469a3={'jPPRC':function(_0x591114,_0x57d4f5,_0x4b6b93,_0x4efb6c){return _0x591114(_0x57d4f5,_0x4b6b93,_0x4efb6c);},'bmMCS':function(_0xcaf061,_0x31baa6,_0x324796,_0x26c3e2){return _0xcaf061(_0x31baa6,_0x324796,_0x26c3e2);}},_0x205b4a=_0x4469a3['jPPRC'](style,symbols['info'],ui[_0x18fe72(0x83)],ui[_0x18fe72(0x99)])+'\x20'+_0x4469a3[_0x18fe72(0x8a)](style,_0x47dcfe,ui[_0x18fe72(0x83)],ui[_0x18fe72(0x99)]);return _0x3fec21?_0x205b4a+'\x20'+style(_0x3fec21,ui[_0x18fe72(0x8f)]):_0x205b4a;}export function printKeyValues(_0x486afe){const _0x2f6e1b=_0x5e85db,_0x535016={'FCPtt':function(_0x4457e1,_0x14f9b2,_0x16d8bb,_0x531136){return _0x4457e1(_0x14f9b2,_0x16d8bb,_0x531136);},'pdmMt':function(_0x5e5f1e,_0x4885cb,_0x5275b1){return _0x5e5f1e(_0x4885cb,_0x5275b1);}};if(_0x486afe[_0x2f6e1b(0x8e)]===0x0)return;const _0x23a07b=_0x486afe[_0x2f6e1b(0x87)]((_0x5e5dc3,_0x22345f)=>Math['max'](_0x5e5dc3,_0x22345f[_0x2f6e1b(0x77)][_0x2f6e1b(0x8e)]),0x0);for(const _0x1e66a6 of _0x486afe){const _0x388e64=_0x535016['FCPtt'](style,_0x1e66a6[_0x2f6e1b(0x77)][_0x2f6e1b(0x7e)](_0x23a07b),ui[_0x2f6e1b(0x8f)],ui['italic']);console['log']('\x20\x20'+_0x388e64+'\x20'+_0x535016[_0x2f6e1b(0x6f)](style,symbols[_0x2f6e1b(0x94)],ui['gray'])+'\x20'+_0x535016['pdmMt'](style,_0x1e66a6[_0x2f6e1b(0x86)],ui[_0x2f6e1b(0x99)]));}}export function printList(_0x5bc00b,_0x40f389){const _0x36581b=_0x5e85db,_0x577e72={'UYbdv':function(_0x4a8c13,_0x53652c){return _0x4a8c13===_0x53652c;},'KGzxa':function(_0x3c4fb1,_0xa4cd2e,_0x5a029d,_0x540440){return _0x3c4fb1(_0xa4cd2e,_0x5a029d,_0x540440);},'WQmBe':function(_0x411bc5,_0x4047d0,_0x188631){return _0x411bc5(_0x4047d0,_0x188631);}};console['log'](style(_0x5bc00b,ui[_0x36581b(0x99)],ui[_0x36581b(0xa0)]));if(_0x577e72[_0x36581b(0x9d)](_0x40f389[_0x36581b(0x8e)],0x0)){console['log']('\x20\x20'+_0x577e72[_0x36581b(0xa5)](style,'(none)',ui[_0x36581b(0x8f)],ui[_0x36581b(0xac)]));return;}for(const _0x985413 of _0x40f389){console[_0x36581b(0x70)]('\x20\x20'+_0x577e72[_0x36581b(0x6d)](style,symbols[_0x36581b(0x94)],ui[_0x36581b(0x83)])+'\x20'+_0x985413);}}export function failAndExit(_0x15f38d){const _0x48f7db=_0x5e85db,_0x35993d={'RkOAc':function(_0x318980,_0x2d5cfb){return _0x318980(_0x2d5cfb);}};console['error'](),console['error'](_0x35993d['RkOAc'](bad,_0x15f38d)),console[_0x48f7db(0x89)](),process[_0x48f7db(0xab)](0x1);}export async function withProgress(_0x59ebac,_0x5ed717){const _0x2b63b3=_0x5e85db,_0x2434f5={'wuGEB':function(_0x5017bb,_0x302a27){return _0x5017bb%_0x302a27;},'FGmNW':function(_0x494671,_0x419a11,_0x522317){return _0x494671(_0x419a11,_0x522317);},'dYZuI':function(_0x1109dc,_0x527756,_0x11fd4a){return _0x1109dc(_0x527756,_0x11fd4a);},'OLipc':function(_0x2ee2b5){return _0x2ee2b5();},'WmLSn':function(_0x577690,_0x118c6c,_0x2aca5f){return _0x577690(_0x118c6c,_0x2aca5f);},'lRomT':_0x2b63b3(0x75),'ePJJV':function(_0x1354e0,_0x391274){return _0x1354e0(_0x391274);},'JovKr':function(_0xbf72a5,_0x167a18){return _0xbf72a5(_0x167a18);}};if(!process[_0x2b63b3(0x78)]['isTTY'])return console[_0x2b63b3(0x70)](_0x59ebac),_0x2434f5[_0x2b63b3(0xad)](_0x5ed717);const _0x33157e=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x4e7af8=0x0;const _0x11d98e=()=>{const _0xeba040=_0x2b63b3,_0x534a03=_0x33157e[_0x2434f5[_0xeba040(0x9a)](_0x4e7af8,_0x33157e[_0xeba040(0x8e)])];process[_0xeba040(0x78)][_0xeba040(0x8d)]('\x0d'+_0x2434f5['FGmNW'](style,_0x534a03,ui['cyan'])+'\x20'+_0x2434f5[_0xeba040(0x80)](style,_0x59ebac,ui[_0xeba040(0x8f)])),_0x4e7af8+=0x1;};_0x2434f5[_0x2b63b3(0xad)](_0x11d98e);const _0x15cbf7=_0x2434f5[_0x2b63b3(0x7b)](setInterval,_0x11d98e,0x50);try{const _0x5edce9=await _0x5ed717();return clearInterval(_0x15cbf7),process[_0x2b63b3(0x78)][_0x2b63b3(0x8d)](_0x2434f5[_0x2b63b3(0x76)]),console[_0x2b63b3(0x70)](_0x2434f5['ePJJV'](ok,_0x59ebac)),_0x5edce9;}catch(_0x3a3a80){_0x2434f5[_0x2b63b3(0xaa)](clearInterval,_0x15cbf7),process[_0x2b63b3(0x78)][_0x2b63b3(0x8d)](_0x2434f5[_0x2b63b3(0x76)]),console[_0x2b63b3(0x70)](_0x2434f5[_0x2b63b3(0x8c)](bad,_0x59ebac));throw _0x3a3a80;}}
|
package/dist-secure/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe75b88=_0x1bdf;(function(_0x5179b2,_0x3feb9a){const _0x349bf1=_0x1bdf,_0x3d3744=_0x5179b2();while(!![]){try{const _0x48b387=parseInt(_0x349bf1(0xcf))/0x1+parseInt(_0x349bf1(0x90))/0x2*(parseInt(_0x349bf1(0x87))/0x3)+parseInt(_0x349bf1(0xfc))/0x4+parseInt(_0x349bf1(0x9a))/0x5+parseInt(_0x349bf1(0x107))/0x6+parseInt(_0x349bf1(0x113))/0x7+-parseInt(_0x349bf1(0xa4))/0x8*(parseInt(_0x349bf1(0xb7))/0x9);if(_0x48b387===_0x3feb9a)break;else _0x3d3744['push'](_0x3d3744['shift']());}catch(_0x1c4679){_0x3d3744['push'](_0x3d3744['shift']());}}}(_0x1e33,0xd15b0));const _0x368c5a=(function(){let _0x23ab4d=!![];return function(_0x1e85b7,_0x54316a){const _0x14a3ac=_0x23ab4d?function(){if(_0x54316a){const _0x2d58de=_0x54316a['apply'](_0x1e85b7,arguments);return _0x54316a=null,_0x2d58de;}}:function(){};return _0x23ab4d=![],_0x14a3ac;};}()),_0xa03354=_0x368c5a(this,function(){const _0x309957=_0x1bdf,_0x175030={'TjkoK':_0x309957(0xe0)+'+)+$'};return _0xa03354[_0x309957(0x118)]()[_0x309957(0x9c)](_0x309957(0xe0)+_0x309957(0xeb))[_0x309957(0x118)]()['construc'+'tor'](_0xa03354)['search'](_0x175030[_0x309957(0x111)]);});_0xa03354();function _0x1bdf(_0x2a5475,_0x30b9d0){_0x2a5475=_0x2a5475-0x7c;const _0x5224ca=_0x1e33();let _0xa03354=_0x5224ca[_0x2a5475];return _0xa03354;}function _0x1e33(){const _0x4076b6=['cted\x20(','QkhVA','CZimo','ate\x20(','init','NiohG','Ifubs','rMyJn','ore\x20runn','UPDATED','--help','k\x20your\x20c',']\x20&\x20paus','detached','A\x20new\x20te','registry','npm.cmd','platform','the\x20upda','XMlTZ','update.','DBTkd','pdAxx','1696600qWTyme','startsWi','json','doctor','now','ignore','YhmKV','QysnY','abort','rg/','OVaVP','nwiLa','length','kill','MomCX','hrpMh','start','(((.+)+)','.npmjs.o','isFinite','find','Jisym','on.\x20Chec','rfkik','mgOBS','zNxHm','DGhbT','indow\x20wa','+)+$','includes','giekz','CRKne','ally:\x20np','version','\x20-g\x20','txhvK','sLluD','NjwRo','UPDATE','bewRJ','gemit\x20is','st\x20versi','nRrfA','replace','JkRim','4011480DiYBWq','/latest','rktyo','UPDATE\x20S','SRXJL','OlXzs','onhlq','the\x20late','eHijQ','ummlh','dczMV','2930106gdHaPw','stringif','mcZCQ','KEtyV','utf8','NJrPH','duMnY','cmd.exe','cQASZ','object','TjkoK','XIcYK','2527623FOKCpD','AAKpH','te\x20to\x20fi','ait\x20for\x20','kedAt','toString','signal','win32','ion\x20dete','onnectio','trim','New\x20vers','IVNqe','\x20to\x20perf','log','gemit-cl','\x20up\x20to\x20d','iNHdd','update-c','RVMlI','3361269eumNnP','SIAtW','TfSri','Run\x20manu','Finished','sjjGX','unref','VavTb','lbqNo','2oTtZZL','ePJoK','cfoOr','RVIKO','split','m\x20i\x20-g\x20','bidxD','GExsn','Cegxl','OTeDh','6115170inpeut','Blfvp','search','\x20->\x20','HovSv','heck.jso','FMSDs','UPDATE\x20F','rJWaO','JsRRa','40278776nETzDf','uxHCg','\x20install','@latest','vGarQ','FWDMT','orm\x20the\x20','EdqqA','ZPHPK','lnBfu','ing\x20gemi','Failed\x20t','XJHOv','nish\x20bef','Wdwyz','rminal\x20w','slice','parse','nTgGr','9odTkCw'];_0x1e33=function(){return _0x4076b6;};return _0x1e33();}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=_0xe75b88(0x82)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x31e57e,_0x4e8b57=![]){const _0x50afdc=_0xe75b88,_0x3bf21e={'cQASZ':function(_0x55e3e0,_0x5182bd){return _0x55e3e0(_0x5182bd);},'nwiLa':function(_0x2bfa91,_0x3c8564){return _0x2bfa91===_0x3c8564;},'rfkik':function(_0x28bebf){return _0x28bebf();},'SIAtW':function(_0x7585e8,_0x5417df){return _0x7585e8<_0x5417df;},'ShLtR':function(_0x4795c5,_0x1e76ed){return _0x4795c5-_0x1e76ed;},'SRXJL':'NJrPH','lbqNo':_0x50afdc(0x92),'KEtyV':function(_0x1278e0,_0x162ecb,_0x267291){return _0x1278e0(_0x162ecb,_0x267291);},'nRrfA':_0x50afdc(0xf5),'SXFTR':_0x50afdc(0xaf)+'o\x20fetch\x20'+_0x50afdc(0x103)+_0x50afdc(0xf8)+_0x50afdc(0xe5)+_0x50afdc(0xc3)+_0x50afdc(0x7c)+'n.','DGhbT':function(_0x22d62e){return _0x22d62e();},'zNxHm':function(_0x57105b,_0x3e0e86,_0x314f57){return _0x57105b(_0x3e0e86,_0x314f57);},'OVaVP':function(_0x40ab1f,_0x1e3bba){return _0x40ab1f===_0x1e3bba;},'fWejZ':_0x50afdc(0xc5),'QysnY':function(_0x44efa4,_0x4eab56,_0x438124){return _0x44efa4(_0x4eab56,_0x438124);},'sjjGX':_0x50afdc(0xff)+'TARTED','OlXzs':_0x50afdc(0xc6)+_0x50afdc(0xb3)+_0x50afdc(0xea)+'s\x20opened'+_0x50afdc(0x80)+_0x50afdc(0xaa)+_0x50afdc(0xcc),'XMlTZ':'WAIT','KfntN':'Please\x20w'+_0x50afdc(0x116)+_0x50afdc(0xca)+_0x50afdc(0x115)+_0x50afdc(0xb1)+_0x50afdc(0xc0)+_0x50afdc(0xae)+'t\x20again.','Blfvp':_0x50afdc(0xc1),'OXNvg':function(_0x68b670,_0x3001b0,_0x1f52fa){return _0x68b670(_0x3001b0,_0x1f52fa);},'ZPHPK':_0x50afdc(0xa1)+'AILED'};if(_0x3bf21e[_0x50afdc(0xda)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x4e8b57)return;if(!_0x3bf21e[_0x50afdc(0x10f)](shouldCheckForUpdates,_0x31e57e)&&!_0x4e8b57)return;const _0x302e72=_0x3bf21e[_0x50afdc(0xe6)](readCache),_0x8b5a1d=Date[_0x50afdc(0xd3)]();if(!_0x4e8b57&&_0x302e72['lastChec'+_0x50afdc(0x117)]&&_0x3bf21e[_0x50afdc(0x88)](_0x3bf21e['ShLtR'](_0x8b5a1d,_0x302e72['lastChec'+_0x50afdc(0x117)]),CHECK_INTERVAL_MS)){if(_0x3bf21e[_0x50afdc(0xda)](_0x3bf21e[_0x50afdc(0x100)],_0x50afdc(0x10c)))return;else return;}!_0x4e8b57&&_0x3bf21e[_0x50afdc(0x10f)](writeCache,{'lastCheckedAt':_0x8b5a1d});const _0x2c6e3f=await fetchLatestVersion();if(!_0x2c6e3f){if(_0x3bf21e[_0x50afdc(0x8f)]!==_0x3bf21e['lbqNo'])_0x2abe7b[_0x50afdc(0xdc)](),_0x3bf21e['cQASZ'](_0x460897,![]);else{_0x4e8b57&&console[_0x50afdc(0x81)](_0x3bf21e[_0x50afdc(0x10a)](bad,_0x3bf21e[_0x50afdc(0xf9)],_0x3bf21e['SXFTR']));return;}}const _0x330392=_0x3bf21e[_0x50afdc(0xe9)](getCliVersion);if(!isVersionLower(_0x330392,_0x2c6e3f)){_0x4e8b57&&console[_0x50afdc(0x81)](_0x3bf21e['KEtyV'](ok,_0x3bf21e['nRrfA'],'gemit\x20is'+_0x50afdc(0x83)+_0x50afdc(0xbb)+_0x330392+').'));return;}console[_0x50afdc(0x81)](_0x3bf21e[_0x50afdc(0xe8)](warn,_0x3bf21e[_0x50afdc(0xf9)],_0x50afdc(0x7e)+_0x50afdc(0x11b)+_0x50afdc(0xb8)+_0x330392+_0x50afdc(0x9d)+_0x2c6e3f+').'));const _0x333b3a=await _0x3bf21e[_0x50afdc(0xe6)](runGlobalUpdate);if(_0x3bf21e[_0x50afdc(0xd9)](_0x333b3a,_0x3bf21e['fWejZ']))console[_0x50afdc(0x81)](_0x3bf21e[_0x50afdc(0xd6)](ok,_0x3bf21e[_0x50afdc(0x8c)],_0x3bf21e[_0x50afdc(0x101)])),console[_0x50afdc(0x81)](_0x3bf21e['zNxHm'](warn,_0x3bf21e[_0x50afdc(0xcb)],_0x3bf21e['KfntN']));else _0x333b3a?console[_0x50afdc(0x81)](_0x3bf21e['zNxHm'](ok,_0x3bf21e[_0x50afdc(0x9b)],_0x50afdc(0xf7)+'\x20now\x20on\x20'+_0x2c6e3f+'.')):console[_0x50afdc(0x81)](_0x3bf21e['OXNvg'](bad,_0x3bf21e[_0x50afdc(0xac)],_0x50afdc(0x8a)+_0x50afdc(0xef)+_0x50afdc(0x95)+PACKAGE_NAME+_0x50afdc(0xa7)));}function shouldCheckForUpdates(_0x3dbcd0){const _0x30a244=_0xe75b88,_0x15228d={'TfSri':function(_0x159758,_0x5ccdd5,_0x27b54b){return _0x159758(_0x5ccdd5,_0x27b54b);},'iNHdd':function(_0x1232bd){return _0x1232bd();},'bidxD':'update-c'+_0x30a244(0x9f)+'n','XIcYK':function(_0x2f5ab4,_0x352137){return _0x2f5ab4<=_0x352137;},'Jisym':function(_0x4046c0,_0x3755db){return _0x4046c0!==_0x3755db;},'Wdwyz':'nTgGr','CZimo':_0x30a244(0xc2),'cauMu':_0x30a244(0xbc),'txhvK':_0x30a244(0xd2)};if(_0x15228d[_0x30a244(0x112)](_0x3dbcd0[_0x30a244(0xdb)],0x2))return _0x15228d[_0x30a244(0xe4)](_0x30a244(0xb6),_0x15228d[_0x30a244(0xb2)])?_0x15228d[_0x30a244(0x89)](_0x153c4e,_0x3e79fb(_0x15228d[_0x30a244(0x84)](_0x226391)),_0x15228d[_0x30a244(0x96)]):!![];const _0x45af41=_0x3dbcd0[_0x30a244(0xb4)](0x2);if(_0x45af41[_0x30a244(0xec)]('-h')||_0x45af41[_0x30a244(0xec)](_0x15228d[_0x30a244(0xba)])||_0x45af41[_0x30a244(0xec)]('-v')||_0x45af41[_0x30a244(0xec)]('--versio'+'n'))return![];const _0x327ba6=_0x45af41[_0x30a244(0xe3)](_0x27e0ba=>!_0x27e0ba[_0x30a244(0xd0)+'th']('-'));if(!_0x327ba6)return![];return _0x15228d[_0x30a244(0xe4)](_0x327ba6,_0x15228d['cauMu'])&&_0x327ba6!==_0x15228d[_0x30a244(0xf2)];}async function fetchLatestVersion(){const _0x42d4c5=_0xe75b88,_0x36215b={'giekz':function(_0x455b7b,_0x46a971){return _0x455b7b(_0x46a971);},'uxHCg':function(_0x37509e,_0x4d39ca){return _0x37509e(_0x4d39ca);},'rktyo':function(_0x22c842,_0xccf805,_0x17f893){return _0x22c842(_0xccf805,_0x17f893);},'DBTkd':function(_0xe4d060,_0x315f3b){return _0xe4d060===_0x315f3b;},'ePJoK':'queYq','JsRRa':'oalOH','pdAxx':'string'},_0x426a94=new AbortController(),_0x9ecf58=_0x36215b[_0x42d4c5(0xfe)](setTimeout,()=>_0x426a94[_0x42d4c5(0xd7)](),CHECK_TIMEOUT_MS);try{if(_0x36215b[_0x42d4c5(0xcd)](_0x36215b[_0x42d4c5(0x91)],_0x36215b[_0x42d4c5(0xa3)]))_0x36215b['giekz'](_0xb22e45,_0x2493b3),_0x36215b[_0x42d4c5(0xa5)](_0x49cfbc,![]);else{const _0x5d2e4b=await _0x36215b[_0x42d4c5(0xfe)](fetch,'https://'+_0x42d4c5(0xc7)+_0x42d4c5(0xe1)+_0x42d4c5(0xd8)+PACKAGE_NAME+_0x42d4c5(0xfd),{'signal':_0x426a94[_0x42d4c5(0x119)]});if(!_0x5d2e4b['ok'])return null;const _0x482fc4=await _0x5d2e4b[_0x42d4c5(0xd1)]();return _0x36215b[_0x42d4c5(0xcd)](typeof _0x482fc4['version'],_0x36215b[_0x42d4c5(0xce)])?_0x482fc4[_0x42d4c5(0xf0)]:null;}}catch{return null;}finally{_0x36215b[_0x42d4c5(0xed)](clearTimeout,_0x9ecf58);}}async function runGlobalUpdate(){const _0x484e04=_0xe75b88,_0x390ba4={'onhlq':function(_0x540584,_0x173bea){return _0x540584(_0x173bea);},'FWDMT':function(_0x3f59cf,_0x57386e){return _0x3f59cf===_0x57386e;},'oeZpf':'object','kbbAt':function(_0x371eed,_0x4acf81){return _0x371eed!==_0x4acf81;},'eHijQ':_0x484e04(0x98),'duMnY':function(_0x106422,_0x8e861e,_0x46d9d2,_0x37c702){return _0x106422(_0x8e861e,_0x46d9d2,_0x37c702);},'FMSDs':'npm','bewRJ':_0x484e04(0xd4),'CRKne':function(_0x466d16,_0x3856ca,_0x2546b9){return _0x466d16(_0x3856ca,_0x2546b9);},'YexnI':'exit','IVNqe':function(_0x3b3f7d,_0x2d00fe){return _0x3b3f7d(_0x2d00fe);},'mgOBS':function(_0x2cf64e,_0x295867){return _0x2cf64e===_0x295867;},'vGarQ':_0x484e04(0x11a),'dczMV':_0x484e04(0xc8),'MomCX':_0x484e04(0xdf),'JkRim':_0x484e04(0x10e),'rMyJn':_0x484e04(0xc5)};if(_0x390ba4[_0x484e04(0xe7)](process[_0x484e04(0xc9)],_0x390ba4[_0x484e04(0xa8)]))try{const _0x5294d9=_0x390ba4[_0x484e04(0x106)],_0xf0b017=_0x5294d9+(_0x484e04(0xa6)+_0x484e04(0xf1))+PACKAGE_NAME+_0x484e04(0xa7),_0x21e7ae=_0xf0b017+('\x20&\x20echo.'+'\x20&\x20echo\x20'+'[Update\x20'+_0x484e04(0x8b)+_0x484e04(0xc4)+'e');return spawn(_0x484e04(0x10e),['/c',_0x390ba4[_0x484e04(0xdd)],_0x390ba4[_0x484e04(0xfb)],'/c',_0x21e7ae],{'detached':!![],'stdio':_0x390ba4[_0x484e04(0xf6)]})[_0x484e04(0x8d)](),_0x390ba4[_0x484e04(0xbf)];}catch{return![];}return new Promise(_0x188391=>{const _0x21cbbc=_0x484e04,_0x3d4a1d={'vWElX':function(_0x261064,_0x4292b8,_0x98b042){return _0x261064(_0x4292b8,_0x98b042);},'WXyGH':function(_0x36cd63,_0x39f498){const _0xfb24c8=_0x1bdf;return _0x390ba4[_0xfb24c8(0xa9)](_0x36cd63,_0x39f498);},'lnBfu':_0x390ba4['oeZpf'],'XJHOv':function(_0x2ce520,_0x114eda){const _0x15db58=_0x1bdf;return _0x390ba4[_0x15db58(0x102)](_0x2ce520,_0x114eda);}};if(_0x390ba4['kbbAt'](_0x390ba4[_0x21cbbc(0x104)],_0x390ba4[_0x21cbbc(0x104)])){const _0x507368=_0x3d4a1d['vWElX'](_0x5407d8,_0x3b92b9(),_0x21cbbc(0x10b)),_0x5a3aa0=_0x22d642[_0x21cbbc(0xb5)](_0x507368);return _0x5a3aa0&&_0x3d4a1d['WXyGH'](typeof _0x5a3aa0,_0x3d4a1d[_0x21cbbc(0xad)])?_0x5a3aa0:{};}else try{const _0x40c7de=_0x390ba4[_0x21cbbc(0x10d)](spawn,_0x390ba4[_0x21cbbc(0xa0)],['install','-g',PACKAGE_NAME+_0x21cbbc(0xa7)],{'stdio':_0x390ba4['bewRJ']}),_0x564dbb=_0x390ba4[_0x21cbbc(0xee)](setTimeout,()=>{const _0x408f31=_0x21cbbc;_0x40c7de[_0x408f31(0xdc)](),_0x3d4a1d[_0x408f31(0xb0)](_0x188391,![]);},UPDATE_TIMEOUT_MS);_0x40c7de['on']('error',()=>{clearTimeout(_0x564dbb),_0x3d4a1d['XJHOv'](_0x188391,![]);}),_0x40c7de['on'](_0x390ba4['YexnI'],_0x59acea=>{const _0x96d9bd=_0x21cbbc;_0x390ba4['onhlq'](clearTimeout,_0x564dbb),_0x390ba4[_0x96d9bd(0x102)](_0x188391,_0x59acea===0x0);});}catch{_0x390ba4[_0x21cbbc(0x7f)](_0x188391,![]);}});}function getCachePath(){const _0x14e548=_0xe75b88,_0x2f71d3={'uZSoL':function(_0x3c035b,_0x4adb76,_0x49b41d){return _0x3c035b(_0x4adb76,_0x49b41d);},'YhmKV':function(_0x290a50,_0x31b71b){return _0x290a50(_0x31b71b);},'QkhVA':function(_0x108f86){return _0x108f86();}};return _0x2f71d3['uZSoL'](join,_0x2f71d3[_0x14e548(0xd5)](dirname,_0x2f71d3[_0x14e548(0xb9)](getGlobalEnvPath)),_0x14e548(0x85)+_0x14e548(0x9f)+'n');}function readCache(){const _0x27acba=_0xe75b88,_0xc27431={'mcZCQ':function(_0x5ae4dc,_0x39abf0,_0x156862){return _0x5ae4dc(_0x39abf0,_0x156862);},'AAKpH':'utf8','RVIKO':function(_0x3aed87,_0x456179){return _0x3aed87===_0x456179;},'hrpMh':_0x27acba(0x110)};try{const _0x35c90a=_0xc27431[_0x27acba(0x109)](readFileSync,getCachePath(),_0xc27431[_0x27acba(0x114)]),_0x44ab=JSON[_0x27acba(0xb5)](_0x35c90a);return _0x44ab&&_0xc27431[_0x27acba(0x93)](typeof _0x44ab,_0xc27431[_0x27acba(0xde)])?_0x44ab:{};}catch{return{};}}function writeCache(_0x43d1d9){const _0x23edd3=_0xe75b88,_0x6456ed={'sLluD':function(_0x468225){return _0x468225();},'Ifubs':function(_0x22cb94,_0x526218,_0x557a9c){return _0x22cb94(_0x526218,_0x557a9c);},'bktOQ':function(_0x2391c1,_0x19dc50){return _0x2391c1(_0x19dc50);}};try{const _0x63ca2d=_0x6456ed[_0x23edd3(0xf3)](getCachePath);_0x6456ed[_0x23edd3(0xbe)](mkdirSync,_0x6456ed['bktOQ'](dirname,_0x63ca2d),{'recursive':!![]}),writeFileSync(_0x63ca2d,JSON[_0x23edd3(0x108)+'y'](_0x43d1d9),_0x23edd3(0x10b));}catch{}}function isVersionLower(_0x35a3fc,_0x55692f){const _0x11473f=_0xe75b88,_0x178471={'VEilb':function(_0x3f420d,_0xfbe1f7){return _0x3f420d(_0xfbe1f7);},'ummlh':function(_0x2b5f12,_0x3735c5){return _0x2b5f12||_0x3735c5;},'rJWaO':_0x11473f(0xbd),'jZezr':'jofde','RVMlI':function(_0x558f26,_0x313a17){return _0x558f26<_0x313a17;},'HovSv':function(_0x261772,_0x1946d3){return _0x261772>_0x1946d3;}},_0x1dfdef=_0x178471['VEilb'](normalizeVersion,_0x35a3fc),_0x33c004=normalizeVersion(_0x55692f);if(_0x178471[_0x11473f(0x105)](!_0x1dfdef,!_0x33c004))return _0x178471[_0x11473f(0xa2)]===_0x178471['jZezr']?null:![];for(let _0x189d58=0x0;_0x189d58<0x3;_0x189d58+=0x1){if(_0x178471[_0x11473f(0x86)](_0x1dfdef[_0x189d58],_0x33c004[_0x189d58]))return!![];if(_0x178471[_0x11473f(0x9e)](_0x1dfdef[_0x189d58],_0x33c004[_0x189d58]))return![];}return![];}function normalizeVersion(_0x5cca0d){const _0x51d3a0=_0xe75b88,_0x7167b3={'PEKUa':function(_0x43ffd3,_0x250708,_0xe4c05e){return _0x43ffd3(_0x250708,_0xe4c05e);},'NjwRo':function(_0x2cea1d,_0x27314a){return _0x2cea1d<_0x27314a;},'EdqqA':function(_0x36dd37,_0x2af9a3){return _0x36dd37(_0x2af9a3);},'wIXcH':function(_0x1da803,_0x2bcc24){return _0x1da803(_0x2bcc24);},'VavTb':_0x51d3a0(0x97)},_0x105025=_0x5cca0d[_0x51d3a0(0x7d)]()[_0x51d3a0(0xfa)](/^v/i,'')[_0x51d3a0(0x94)]('-')[0x0],_0x5994fe=_0x105025[_0x51d3a0(0x94)]('.');if(_0x7167b3[_0x51d3a0(0xf4)](_0x5994fe[_0x51d3a0(0xdb)],0x3))return null;const _0x3d4741=_0x7167b3['EdqqA'](Number,_0x5994fe[0x0]),_0x24a669=_0x7167b3[_0x51d3a0(0xab)](Number,_0x5994fe[0x1]),_0x539606=_0x7167b3['wIXcH'](Number,_0x5994fe[0x2]);if(!Number[_0x51d3a0(0xe2)](_0x3d4741)||!Number['isFinite'](_0x24a669)||!Number[_0x51d3a0(0xe2)](_0x539606)){if(_0x7167b3[_0x51d3a0(0x8e)]===_0x51d3a0(0x99))_0x1bf3fd[_0x51d3a0(0x81)](gDHCnf['PEKUa'](_0x1df262,_0x51d3a0(0xf5),_0x51d3a0(0xf7)+_0x51d3a0(0x83)+_0x51d3a0(0xbb)+_0x1f2e2d+').'));else return null;}return[_0x3d4741,_0x24a669,_0x539606];}
|
|
1
|
+
const _0x14a750=_0x22fc;(function(_0x24a45b,_0x172e61){const _0x1604f3=_0x22fc,_0x395322=_0x24a45b();while(!![]){try{const _0xc9bbdf=-parseInt(_0x1604f3(0xdf))/0x1+parseInt(_0x1604f3(0xdd))/0x2+-parseInt(_0x1604f3(0xe2))/0x3+-parseInt(_0x1604f3(0xe7))/0x4+-parseInt(_0x1604f3(0x134))/0x5*(-parseInt(_0x1604f3(0x14d))/0x6)+-parseInt(_0x1604f3(0xf8))/0x7+parseInt(_0x1604f3(0xde))/0x8*(parseInt(_0x1604f3(0x127))/0x9);if(_0xc9bbdf===_0x172e61)break;else _0x395322['push'](_0x395322['shift']());}catch(_0x3401ab){_0x395322['push'](_0x395322['shift']());}}}(_0x4df4,0x19998));const _0x3c6197=(function(){const _0x217239={'FlckG':function(_0x24339b,_0x239dc7){return _0x24339b!==_0x239dc7;},'dgQcv':'OPLtA'};let _0x49df57=!![];return function(_0x1847ee,_0x9a8c5){const _0xe7b186=_0x22fc;if(_0x217239[_0xe7b186(0x16b)](_0x217239[_0xe7b186(0x137)],_0x217239[_0xe7b186(0x137)]))return;else{const _0x16493c=_0x49df57?function(){const _0x596b6c=_0xe7b186;if(_0x9a8c5){const _0x34057e=_0x9a8c5[_0x596b6c(0x13f)](_0x1847ee,arguments);return _0x9a8c5=null,_0x34057e;}}:function(){};return _0x49df57=![],_0x16493c;}};}()),_0x1218b0=_0x3c6197(this,function(){const _0x4a62bc=_0x22fc,_0x342ddc={'wXdeb':_0x4a62bc(0x121)+_0x4a62bc(0x109)};return _0x1218b0['toString']()['search'](_0x342ddc['wXdeb'])[_0x4a62bc(0x11a)]()['construc'+_0x4a62bc(0x10c)](_0x1218b0)[_0x4a62bc(0x168)]('(((.+)+)'+'+)+$');});_0x1218b0();function _0x22fc(_0x1babcf,_0x154efa){_0x1babcf=_0x1babcf-0xd5;const _0x37822e=_0x4df4();let _0x1218b0=_0x37822e[_0x1babcf];return _0x1218b0;}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=_0x14a750(0x113)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x191d59,_0x31d5a9=![]){const _0x1cda52=_0x14a750,_0x1d322a={'pUYcA':function(_0x5afddf,_0x232283,_0x45b546){return _0x5afddf(_0x232283,_0x45b546);},'hfoPk':'UPDATE','DdNkI':_0x1cda52(0x121)+'+)+$','ZcWEN':function(_0xee0322,_0x207857){return _0xee0322===_0x207857;},'tbnjd':function(_0x40eb8a,_0x5eaf20){return _0x40eb8a(_0x5eaf20);},'JNfxr':function(_0x2225a9,_0x2be477){return _0x2225a9<_0x2be477;},'wSTeJ':function(_0x7a787f,_0x6cd8de){return _0x7a787f-_0x6cd8de;},'FrFbg':function(_0x5ad375,_0x499759){return _0x5ad375!==_0x499759;},'xiLef':_0x1cda52(0xdb),'rZyFI':function(_0x37249d){return _0x37249d();},'ZDJUO':_0x1cda52(0x155)+_0x1cda52(0x161)+_0x1cda52(0xf6)+_0x1cda52(0x119)+_0x1cda52(0xe8)+_0x1cda52(0x172)+_0x1cda52(0x130)+'n.','kkURG':function(_0x2b4c87){return _0x2b4c87();},'yfKbF':function(_0x3e7a6b,_0x39d021,_0x1436f8){return _0x3e7a6b(_0x39d021,_0x1436f8);},'vfOAZ':function(_0x573f53){return _0x573f53();},'cTDgv':_0x1cda52(0xdc),'gxqOd':function(_0x1c4914,_0x178296){return _0x1c4914===_0x178296;},'GGPzl':'xQphT','mhuoF':_0x1cda52(0x12c)+'TARTED','EAoFQ':_0x1cda52(0x10f)+_0x1cda52(0xef)+_0x1cda52(0x166)+'s\x20opened'+'\x20to\x20perf'+_0x1cda52(0x123)+_0x1cda52(0x104),'cZSri':_0x1cda52(0xd5),'SnVqL':_0x1cda52(0x129)+_0x1cda52(0x120)+'the\x20upda'+_0x1cda52(0x148)+_0x1cda52(0x103)+_0x1cda52(0x157)+_0x1cda52(0x107)+'t\x20again.','JOKNX':_0x1cda52(0x15d),'ncJav':function(_0x2ca621,_0x1b89b2,_0x336536){return _0x2ca621(_0x1b89b2,_0x336536);},'YJCyE':_0x1cda52(0x10d)+'AILED'};if(_0x1d322a[_0x1cda52(0x108)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x31d5a9)return;if(!_0x1d322a[_0x1cda52(0x10e)](shouldCheckForUpdates,_0x191d59)&&!_0x31d5a9)return;const _0xbb26f9=readCache(),_0xc0c62b=Date['now']();if(!_0x31d5a9&&_0xbb26f9[_0x1cda52(0xfd)+_0x1cda52(0x118)]&&_0x1d322a['JNfxr'](_0x1d322a[_0x1cda52(0x110)](_0xc0c62b,_0xbb26f9[_0x1cda52(0xfd)+_0x1cda52(0x118)]),CHECK_INTERVAL_MS)){if(_0x1d322a[_0x1cda52(0x16a)](_0x1cda52(0x15a),_0x1d322a[_0x1cda52(0x140)]))return;else{_0x5346a5&&_0x527b80[_0x1cda52(0x112)](_0x1d322a['pUYcA'](_0x16c361,_0x1d322a['hfoPk'],_0x1cda52(0xfe)+_0x1cda52(0x16c)+'ate\x20('+_0x52d52a+').'));return;}}!_0x31d5a9&&_0x1d322a[_0x1cda52(0x10e)](writeCache,{'lastCheckedAt':_0xc0c62b});const _0x17e0f1=await _0x1d322a[_0x1cda52(0x162)](fetchLatestVersion);if(!_0x17e0f1){_0x31d5a9&&console[_0x1cda52(0x112)](_0x1d322a[_0x1cda52(0xf3)](bad,_0x1d322a[_0x1cda52(0xf2)],_0x1d322a[_0x1cda52(0x11d)]));return;}const _0x172721=_0x1d322a[_0x1cda52(0x14f)](getCliVersion);if(!_0x1d322a[_0x1cda52(0xf3)](isVersionLower,_0x172721,_0x17e0f1)){_0x31d5a9&&console['log'](_0x1d322a[_0x1cda52(0x102)](ok,_0x1d322a['hfoPk'],'gemit\x20is'+_0x1cda52(0x16c)+_0x1cda52(0x14e)+_0x172721+').'));return;}console[_0x1cda52(0x112)](_0x1d322a[_0x1cda52(0xf3)](warn,_0x1d322a[_0x1cda52(0xf2)],_0x1cda52(0x149)+_0x1cda52(0x14c)+_0x1cda52(0x101)+_0x172721+'\x20->\x20'+_0x17e0f1+').'));const _0x4f7107=await _0x1d322a[_0x1cda52(0x114)](runGlobalUpdate);if(_0x1d322a[_0x1cda52(0x108)](_0x4f7107,_0x1d322a['cTDgv'])){if(_0x1d322a[_0x1cda52(0x141)](_0x1d322a[_0x1cda52(0x14a)],_0x1cda52(0x122)))console[_0x1cda52(0x112)](_0x1d322a[_0x1cda52(0x102)](ok,_0x1d322a['mhuoF'],_0x1d322a[_0x1cda52(0x15c)])),console[_0x1cda52(0x112)](_0x1d322a[_0x1cda52(0x102)](warn,_0x1d322a[_0x1cda52(0x10a)],_0x1d322a['SnVqL']));else return _0x5a798a[_0x1cda52(0x11a)]()[_0x1cda52(0x168)](LSEyeC[_0x1cda52(0xe4)])['toString']()[_0x1cda52(0xe5)+_0x1cda52(0x10c)](_0x5c5de1)[_0x1cda52(0x168)]('(((.+)+)'+_0x1cda52(0x109));}else _0x4f7107?console['log'](_0x1d322a[_0x1cda52(0x102)](ok,_0x1d322a[_0x1cda52(0x133)],_0x1cda52(0xfe)+_0x1cda52(0x143)+_0x17e0f1+'.')):console[_0x1cda52(0x112)](_0x1d322a[_0x1cda52(0x12f)](bad,_0x1d322a[_0x1cda52(0x125)],_0x1cda52(0x117)+_0x1cda52(0x10b)+_0x1cda52(0x165)+PACKAGE_NAME+_0x1cda52(0x150)));}function shouldCheckForUpdates(_0xe64926){const _0x2c3aaf=_0x14a750,_0x30c6f2={'xrtfg':function(_0x2543bd,_0x25250f){return _0x2543bd<=_0x25250f;},'dTiUV':_0x2c3aaf(0x13a),'CGGHJ':_0x2c3aaf(0x169)+'n','fmZOS':function(_0x17a7f3,_0x46536c){return _0x17a7f3!==_0x46536c;},'EdrNC':'YqQUn','znwzO':'init','FTBJR':'doctor'};if(_0x30c6f2['xrtfg'](_0xe64926[_0x2c3aaf(0xee)],0x2))return!![];const _0x311daa=_0xe64926[_0x2c3aaf(0xe3)](0x2);if(_0x311daa[_0x2c3aaf(0x11f)]('-h')||_0x311daa[_0x2c3aaf(0x11f)](_0x30c6f2['dTiUV'])||_0x311daa['includes']('-v')||_0x311daa['includes'](_0x30c6f2[_0x2c3aaf(0x12e)]))return _0x30c6f2['fmZOS'](_0x30c6f2[_0x2c3aaf(0x171)],_0x30c6f2[_0x2c3aaf(0x171)])?null:![];const _0x26e139=_0x311daa[_0x2c3aaf(0x154)](_0x5d80b5=>!_0x5d80b5[_0x2c3aaf(0xea)+'th']('-'));if(!_0x26e139)return![];return _0x30c6f2[_0x2c3aaf(0x15b)](_0x26e139,_0x30c6f2[_0x2c3aaf(0x100)])&&_0x30c6f2[_0x2c3aaf(0x15b)](_0x26e139,_0x30c6f2['FTBJR']);}async function fetchLatestVersion(){const _0xa55f2b=_0x14a750,_0x222c33={'vDFbD':function(_0x16b68e,_0x3f03a1,_0x329c6f){return _0x16b68e(_0x3f03a1,_0x329c6f);},'qvLtE':function(_0x4943cd,_0x12b3e2){return _0x4943cd===_0x12b3e2;},'JcXDw':_0xa55f2b(0xfb),'mTIbk':function(_0x17dd62,_0x10b27c){return _0x17dd62(_0x10b27c);}},_0x50fe45=new AbortController(),_0x204e1d=setTimeout(()=>_0x50fe45[_0xa55f2b(0x136)](),CHECK_TIMEOUT_MS);try{const _0x30ede2=await _0x222c33[_0xa55f2b(0x16d)](fetch,_0xa55f2b(0x12d)+'registry'+_0xa55f2b(0x147)+_0xa55f2b(0xf7)+PACKAGE_NAME+_0xa55f2b(0xeb),{'signal':_0x50fe45[_0xa55f2b(0xfa)]});if(!_0x30ede2['ok'])return null;const _0x2714f3=await _0x30ede2[_0xa55f2b(0x142)]();return _0x222c33[_0xa55f2b(0xf1)](typeof _0x2714f3[_0xa55f2b(0x111)],_0x222c33[_0xa55f2b(0xf5)])?_0x2714f3[_0xa55f2b(0x111)]:null;}catch{return null;}finally{_0x222c33['mTIbk'](clearTimeout,_0x204e1d);}}async function runGlobalUpdate(){const _0x59df66=_0x14a750,_0x4663a3={'BJnek':function(_0x112bc6,_0x2d68e7){return _0x112bc6(_0x2d68e7);},'TiJna':function(_0x16e557,_0x4dbc2d){return _0x16e557(_0x4dbc2d);},'PnPQQ':function(_0x17e456,_0x1d475d){return _0x17e456!==_0x1d475d;},'WiWqQ':_0x59df66(0x138),'QXGlP':function(_0x3f79c7,_0x10c0d7){return _0x3f79c7(_0x10c0d7);},'GcFKz':function(_0x318e87,_0x219aed){return _0x318e87(_0x219aed);},'JKuJr':_0x59df66(0x13d),'THQEb':_0x59df66(0x115),'HsGBi':_0x59df66(0x13e),'KdIVE':function(_0x52e2e0,_0xdd6a28){return _0x52e2e0(_0xdd6a28);},'nbdtY':function(_0x191f5f,_0x91b42c){return _0x191f5f===_0x91b42c;},'qCmeo':_0x59df66(0x153),'YWCMy':'npm.cmd','NtCIJ':function(_0x2e1e80,_0x3a44ad,_0x37641e,_0x1c85f7){return _0x2e1e80(_0x3a44ad,_0x37641e,_0x1c85f7);},'cbcKo':_0x59df66(0x116),'CNzOe':'detached'};if(_0x4663a3[_0x59df66(0x14b)](process[_0x59df66(0xec)],_0x4663a3[_0x59df66(0x152)]))try{if(_0x4663a3[_0x59df66(0x14b)]('hSjyY','SoxEf'))return;else{const _0x6dbb13=_0x4663a3[_0x59df66(0x159)],_0x5c40a2=_0x6dbb13+('\x20install'+_0x59df66(0x132))+PACKAGE_NAME+_0x59df66(0x150),_0x5d117d=_0x5c40a2+(_0x59df66(0x16e)+'\x20&\x20echo\x20'+_0x59df66(0x173)+_0x59df66(0xff)+_0x59df66(0x11e)+'e');return _0x4663a3[_0x59df66(0x105)](spawn,_0x4663a3[_0x59df66(0x12a)],['/c','start',_0x4663a3[_0x59df66(0x12a)],'/c',_0x5d117d],{'detached':!![],'stdio':_0x4663a3[_0x59df66(0x139)]})[_0x59df66(0x11b)](),_0x4663a3[_0x59df66(0xf0)];}}catch{return![];}return new Promise(_0x44aa24=>{const _0x220497=_0x59df66;try{const _0x2dc33f=spawn(_0x4663a3['JKuJr'],[_0x220497(0xe1),'-g',PACKAGE_NAME+_0x220497(0x150)],{'stdio':_0x4663a3[_0x220497(0x139)]}),_0x42dd4=setTimeout(()=>{const _0x1e0bf7=_0x220497;_0x2dc33f[_0x1e0bf7(0x106)](),_0x44aa24(![]);},UPDATE_TIMEOUT_MS);_0x2dc33f['on'](_0x4663a3[_0x220497(0xe6)],()=>{const _0x59e226=_0x220497;_0x4663a3[_0x59e226(0x131)](clearTimeout,_0x42dd4),_0x4663a3[_0x59e226(0x160)](_0x44aa24,![]);}),_0x2dc33f['on'](_0x220497(0x15f),_0x4caa95=>{const _0x21422b=_0x220497;if(_0x4663a3[_0x21422b(0x126)](_0x4663a3[_0x21422b(0x156)],_0x4663a3['WiWqQ']))return{};else _0x4663a3['QXGlP'](clearTimeout,_0x42dd4),_0x4663a3[_0x21422b(0x128)](_0x44aa24,_0x4caa95===0x0);});}catch{_0x4663a3[_0x220497(0x146)](_0x44aa24,![]);}});}function getCachePath(){const _0x556d0b=_0x14a750,_0x419d72={'PeYPO':function(_0x331204,_0x49ebb6,_0x319c95){return _0x331204(_0x49ebb6,_0x319c95);},'EhYOI':function(_0x4bacf1,_0x2e2e2c){return _0x4bacf1(_0x2e2e2c);},'BXswW':_0x556d0b(0x16f)+_0x556d0b(0x124)+'n'};return _0x419d72[_0x556d0b(0x13c)](join,_0x419d72['EhYOI'](dirname,getGlobalEnvPath()),_0x419d72[_0x556d0b(0x12b)]);}function readCache(){const _0x109169=_0x14a750,_0x16943d={'ZxNKj':function(_0x2bbeb7,_0x5c4f0a,_0x121416){return _0x2bbeb7(_0x5c4f0a,_0x121416);},'YTMGd':function(_0x223dea){return _0x223dea();},'ZLmXp':_0x109169(0x164),'LeFva':function(_0x20a666,_0x5a8e21){return _0x20a666===_0x5a8e21;},'mcQOR':_0x109169(0xe0)};try{const _0x2036e3=_0x16943d[_0x109169(0xda)](readFileSync,_0x16943d[_0x109169(0x145)](getCachePath),_0x16943d[_0x109169(0x170)]),_0x40a76b=JSON[_0x109169(0xfc)](_0x2036e3);return _0x40a76b&&_0x16943d[_0x109169(0x158)](typeof _0x40a76b,_0x16943d[_0x109169(0xd6)])?_0x40a76b:{};}catch{return{};}}function writeCache(_0x5c3c76){const _0x28781a=_0x14a750,_0x4dad07={'evWrm':function(_0x56a3ac){return _0x56a3ac();},'xkiFY':function(_0x2d28d4,_0x1d9b15,_0xdf7e1d){return _0x2d28d4(_0x1d9b15,_0xdf7e1d);},'nVHuQ':function(_0x26c025,_0x9e4023){return _0x26c025(_0x9e4023);},'tjPfB':_0x28781a(0x164)};try{const _0x1ac263=_0x4dad07[_0x28781a(0x167)](getCachePath);_0x4dad07[_0x28781a(0x144)](mkdirSync,_0x4dad07[_0x28781a(0xf4)](dirname,_0x1ac263),{'recursive':!![]}),writeFileSync(_0x1ac263,JSON['stringif'+'y'](_0x5c3c76),_0x4dad07['tjPfB']);}catch{}}function isVersionLower(_0x13dd60,_0x44a8ed){const _0x341aff=_0x14a750,_0x3cf967={'wCNIn':function(_0x3bcf44,_0x81fca5){return _0x3bcf44(_0x81fca5);},'NTPyn':function(_0x47ef94,_0x223f52){return _0x47ef94(_0x223f52);},'IdSRR':function(_0x34a256,_0x3a06bb){return _0x34a256<_0x3a06bb;},'AQnUb':function(_0x3badcc,_0x1241fb){return _0x3badcc===_0x1241fb;},'uBEdP':_0x341aff(0x151),'UfALc':function(_0x233458,_0x25a404){return _0x233458>_0x25a404;}},_0x2ec746=_0x3cf967[_0x341aff(0xd9)](normalizeVersion,_0x13dd60),_0x547b65=normalizeVersion(_0x44a8ed);if(!_0x2ec746||!_0x547b65)return![];for(let _0x203f82=0x0;_0x3cf967[_0x341aff(0xed)](_0x203f82,0x3);_0x203f82+=0x1){if(_0x3cf967[_0x341aff(0xed)](_0x2ec746[_0x203f82],_0x547b65[_0x203f82])){if(_0x3cf967[_0x341aff(0x13b)](_0x3cf967[_0x341aff(0xd8)],'PvwyL'))VmwBVx[_0x341aff(0x135)](_0x4168fa,_0xe658ad);else return!![];}if(_0x3cf967[_0x341aff(0x163)](_0x2ec746[_0x203f82],_0x547b65[_0x203f82]))return![];}return![];}function _0x4df4(){const _0x569cb1=['EdrNC','k\x20your\x20c','[Update\x20','WAIT','mcQOR','isFinite','uBEdP','NTPyn','ZxNKj','YlSwB','detached','94454ooTJev','452432iQDZdI','52008zNelgA','object','install','94464wpOVLw','slice','DdNkI','construc','HsGBi','342436SLzcQq','on.\x20Chec','bvVwv','startsWi','/latest','platform','IdSRR','length','rminal\x20w','CNzOe','qvLtE','hfoPk','pUYcA','nVHuQ','JcXDw','the\x20late','rg/','163513dKipFl','replace','signal','string','parse','lastChec','gemit\x20is','Finished','znwzO','cted\x20(','yfKbF','nish\x20bef','update.','NtCIJ','kill','ing\x20gemi','ZcWEN','+)+$','cZSri','ally:\x20np','tor','UPDATE\x20F','tbnjd','A\x20new\x20te','wSTeJ','version','log','gemit-cl','vfOAZ','ignore','cmd.exe','Run\x20manu','kedAt','st\x20versi','toString','unref','NVHGM','ZDJUO',']\x20&\x20paus','includes','ait\x20for\x20','(((.+)+)','xQphT','orm\x20the\x20','heck.jso','YJCyE','PnPQQ','36GJEhLr','GcFKz','Please\x20w','cbcKo','BXswW','UPDATE\x20S','https://','CGGHJ','ncJav','onnectio','BJnek','\x20-g\x20','JOKNX','119385iYCOlo','wCNIn','abort','dgQcv','Vcqei','THQEb','--help','AQnUb','PeYPO','npm','error','apply','xiLef','gxqOd','json','\x20now\x20on\x20','xkiFY','YTMGd','KdIVE','.npmjs.o','te\x20to\x20fi','New\x20vers','GGPzl','nbdtY','ion\x20dete','6HXHTvM','ate\x20(','kkURG','@latest','IhauX','qCmeo','win32','find','Failed\x20t','WiWqQ','ore\x20runn','LeFva','YWCMy','xOWeb','fmZOS','EAoFQ','UPDATED','trim','exit','TiJna','o\x20fetch\x20','rZyFI','UfALc','utf8','m\x20i\x20-g\x20','indow\x20wa','evWrm','search','--versio','FrFbg','FlckG','\x20up\x20to\x20d','vDFbD','\x20&\x20echo.','update-c','ZLmXp'];_0x4df4=function(){return _0x569cb1;};return _0x4df4();}function normalizeVersion(_0x8bddff){const _0x23c83f=_0x14a750,_0x27287f={'bvVwv':function(_0x8d0ac0,_0xcdd8ca){return _0x8d0ac0<_0xcdd8ca;},'NVHGM':function(_0x5062dd,_0x37710c){return _0x5062dd(_0x37710c);}},_0xcb4f9f=_0x8bddff[_0x23c83f(0x15e)]()[_0x23c83f(0xf9)](/^v/i,'')['split']('-')[0x0],_0x37d9c5=_0xcb4f9f['split']('.');if(_0x27287f[_0x23c83f(0xe9)](_0x37d9c5[_0x23c83f(0xee)],0x3))return null;const _0x11a543=_0x27287f[_0x23c83f(0x11c)](Number,_0x37d9c5[0x0]),_0x1257da=Number(_0x37d9c5[0x1]),_0x34a014=Number(_0x37d9c5[0x2]);if(!Number['isFinite'](_0x11a543)||!Number['isFinite'](_0x1257da)||!Number[_0x23c83f(0xd7)](_0x34a014))return null;return[_0x11a543,_0x1257da,_0x34a014];}
|