gemit-cli 1.7.5 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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(_0x52626e,_0x5b5c01){const _0x5315cb=_0x3d10,_0x35c340=_0x52626e();while(!![]){try{const _0x422ccb=-parseInt(_0x5315cb(0xfd))/0x1*(-parseInt(_0x5315cb(0x112))/0x2)+-parseInt(_0x5315cb(0x10c))/0x3*(parseInt(_0x5315cb(0xfb))/0x4)+-parseInt(_0x5315cb(0x10a))/0x5+-parseInt(_0x5315cb(0x107))/0x6*(parseInt(_0x5315cb(0xfa))/0x7)+-parseInt(_0x5315cb(0x100))/0x8*(parseInt(_0x5315cb(0x106))/0x9)+-parseInt(_0x5315cb(0x108))/0xa+-parseInt(_0x5315cb(0x115))/0xb*(-parseInt(_0x5315cb(0xf6))/0xc);if(_0x422ccb===_0x5b5c01)break;else _0x35c340['push'](_0x35c340['shift']());}catch(_0x2f815d){_0x35c340['push'](_0x35c340['shift']());}}}(_0x4398,0x412be));function _0x3d10(_0x5acde0,_0x481664){_0x5acde0=_0x5acde0-0xf5;const _0x5e64b8=_0x4398();let _0x3e015d=_0x5e64b8[_0x5acde0];return _0x3e015d;}const _0x41386f=(function(){let _0x2b0beb=!![];return function(_0x479be5,_0x2d21ed){const _0x30c8f0=_0x2b0beb?function(){if(_0x2d21ed){const _0x50ce18=_0x2d21ed['apply'](_0x479be5,arguments);return _0x2d21ed=null,_0x50ce18;}}:function(){};return _0x2b0beb=![],_0x30c8f0;};}()),_0x3e015d=_0x41386f(this,function(){const _0x30f28f=_0x3d10,_0xa8fb70={'CEfdk':_0x30f28f(0x102)+_0x30f28f(0xfe)};return _0x3e015d[_0x30f28f(0x104)]()['search'](_0xa8fb70[_0x30f28f(0xfc)])[_0x30f28f(0x104)]()[_0x30f28f(0x109)+'tor'](_0x3e015d)[_0x30f28f(0x10b)](_0xa8fb70[_0x30f28f(0xfc)]);});_0x3e015d();import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';function _0x4398(){const _0x441ea6=['XxjpS','157298YrjXtP','yhgOS','BSBYu','143XskAjn','MnSbK','version','1349436hMbdWL','ppkOY','zMeLP','utf8','224NHDUVj','1284pMOfFK','CEfdk','1KfTlBR','+)+$','ure','4220984iVmoZL','dist-sec','(((.+)+)','parse','toString','json','9KUtuLz','48864HSjAFr','1452840VsIJaZ','construc','98615nLyPPd','search','2994dnKDKa','ogUni','BkJVW','WHCra','dist'];_0x4398=function(){return _0x441ea6;};return _0x4398();}export function getCliVersion(){const _0x5b79f4=_0x3d10,_0x57a0d7={'ppkOY':function(_0x17bac8,_0x56184f){return _0x17bac8(_0x56184f);},'WHCra':function(_0x35ace0,_0x81065){return _0x35ace0===_0x81065;},'LObbQ':function(_0x4c7ca2,_0x4d5732){return _0x4c7ca2(_0x4d5732);},'MnSbK':_0x5b79f4(0x110),'BSBYu':function(_0x397917,_0x3b1549){return _0x397917===_0x3b1549;},'ogUni':_0x5b79f4(0x101)+_0x5b79f4(0xff),'XxjpS':function(_0x57913f,_0x2e4caf,_0x92fd55,_0x20862b){return _0x57913f(_0x2e4caf,_0x92fd55,_0x20862b);},'zMeLP':'package.'+_0x5b79f4(0x105),'BkJVW':function(_0x36f992,_0x1c96bf,_0x1e8203){return _0x36f992(_0x1c96bf,_0x1e8203);},'yhgOS':function(_0x48c9df,_0x1c6ba8,_0x1215c7){return _0x48c9df(_0x1c6ba8,_0x1215c7);},'bFDrJ':_0x5b79f4(0xf9),'BsugL':'0.0.0'};try{const _0x1cb0e6=fileURLToPath(import.meta.url),_0x560925=_0x57a0d7[_0x5b79f4(0xf7)](dirname,_0x1cb0e6),_0x841879=_0x57a0d7[_0x5b79f4(0x10f)](_0x57a0d7['LObbQ'](basename,_0x560925),_0x57a0d7[_0x5b79f4(0x116)])||_0x57a0d7[_0x5b79f4(0x114)](basename(_0x560925),_0x57a0d7[_0x5b79f4(0x10d)])?_0x57a0d7[_0x5b79f4(0x111)](join,_0x560925,'..',_0x57a0d7[_0x5b79f4(0xf8)]):_0x57a0d7[_0x5b79f4(0x10e)](join,_0x560925,_0x57a0d7[_0x5b79f4(0xf8)]),_0x23b9f6=_0x57a0d7[_0x5b79f4(0x113)](readFileSync,_0x841879,_0x57a0d7['bFDrJ']),_0x1f89ad=JSON[_0x5b79f4(0x103)](_0x23b9f6);return _0x1f89ad[_0x5b79f4(0xf5)]||_0x57a0d7['BsugL'];}catch{return'0.0.0';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d670,_0x34c57){var _0x526799=_0x21ca,_0x2c19bc=_0x3d670();while(!![]){try{var _0xf8853f=-parseInt(_0x526799(0x1e6))/0x1*(parseInt(_0x526799(0x1ed))/0x2)+-parseInt(_0x526799(0x1e5))/0x3+parseInt(_0x526799(0x1f9))/0x4+parseInt(_0x526799(0x1f8))/0x5+-parseInt(_0x526799(0x1e8))/0x6*(-parseInt(_0x526799(0x1e2))/0x7)+parseInt(_0x526799(0x1f0))/0x8+-parseInt(_0x526799(0x1ee))/0x9*(-parseInt(_0x526799(0x1e3))/0xa);if(_0xf8853f===_0x34c57)break;else _0x2c19bc['push'](_0x2c19bc['shift']());}catch(_0x3f60d2){_0x2c19bc['push'](_0x2c19bc['shift']());}}}(_0x1ef5,0x7d95a));function _0x21ca(_0xdd5c89,_0xa220e3){_0xdd5c89=_0xdd5c89-0x1df;var _0x5ddff5=_0x1ef5();var _0x577923=_0x5ddff5[_0xdd5c89];return _0x577923;}var _0x3761f5=(function(){var _0x44e7a2=!![];return function(_0x37f4a3,_0x116377){var _0x52b9df=_0x44e7a2?function(){var _0x391408=_0x21ca;if(_0x116377){var _0x5d4360=_0x116377[_0x391408(0x1df)](_0x37f4a3,arguments);return _0x116377=null,_0x5d4360;}}:function(){};return _0x44e7a2=![],_0x52b9df;};}()),_0x577923=_0x3761f5(this,function(){var _0x44128a=_0x21ca,_0x13079b={'fzryU':_0x44128a(0x1e0)+_0x44128a(0x1e4)};return _0x577923[_0x44128a(0x1f7)]()['search']('(((.+)+)'+_0x44128a(0x1e4))[_0x44128a(0x1f7)]()[_0x44128a(0x1ec)+'tor'](_0x577923)[_0x44128a(0x1f2)](_0x13079b[_0x44128a(0x1ef)]);});_0x577923();import{failAndExit}from'../ui.js';function _0x1ef5(){var _0x4d51fc=['(((.+)+)','check','4795jgpeTM','8980WIPnsU','+)+$','741411aWAAnt','618668zWabRt','he\x20sugge','4044CEoMdM','ZtVlU','ntinue\x20t','ow.','construc','2IBJvWw','711FJMWhD','fzryU','3201216EEYRuu','g\x20and\x20co','search','NwLzQ','\x20stage\x20e','stion\x20fl','all','toString','2180535lefZcR','45232CdDNPB','apply'];_0x1ef5=function(){return _0x4d51fc;};return _0x1ef5();}import{generateCommit}from'./commit.js';export async function addAndCommit(_0x486565={}){var _0x1137d2=_0x21ca,_0x441687={'ZtVlU':function(_0xc48630,_0x5d0caa){return _0xc48630(_0x5d0caa);},'NwLzQ':function(_0x7bed15,_0x42ec75){return _0x7bed15(_0x42ec75);}};!_0x486565[_0x1137d2(0x1f6)]&&failAndExit('Use\x20`gem'+'it\x20add\x20-'+'-all`\x20to'+_0x1137d2(0x1f4)+'verythin'+_0x1137d2(0x1f1)+_0x1137d2(0x1ea)+_0x1137d2(0x1e7)+_0x1137d2(0x1f5)+_0x1137d2(0x1eb)),await _0x441687[_0x1137d2(0x1e9)](generateCommit,{'all':!![],'check':_0x441687[_0x1137d2(0x1f3)](Boolean,_0x486565[_0x1137d2(0x1e1)])});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fe405,_0x508593){const _0x4d7c3c=_0x5dc5,_0x4eb6e0=_0x1fe405();while(!![]){try{const _0xfd4cd0=-parseInt(_0x4d7c3c(0x187))/0x1*(-parseInt(_0x4d7c3c(0x16f))/0x2)+parseInt(_0x4d7c3c(0x165))/0x3+parseInt(_0x4d7c3c(0x169))/0x4+parseInt(_0x4d7c3c(0x16e))/0x5+-parseInt(_0x4d7c3c(0x1a4))/0x6+parseInt(_0x4d7c3c(0x197))/0x7*(-parseInt(_0x4d7c3c(0x16d))/0x8)+-parseInt(_0x4d7c3c(0x14f))/0x9;if(_0xfd4cd0===_0x508593)break;else _0x4eb6e0['push'](_0x4eb6e0['shift']());}catch(_0x30f3d1){_0x4eb6e0['push'](_0x4eb6e0['shift']());}}}(_0x37e8,0xccff1));const _0x9acb64=(function(){let _0x358d72=!![];return function(_0x2e2133,_0x5409d7){const _0x32f276=_0x358d72?function(){const _0xbe7776=_0x5dc5;if(_0x5409d7){const _0x54853a=_0x5409d7[_0xbe7776(0x19a)](_0x2e2133,arguments);return _0x5409d7=null,_0x54853a;}}:function(){};return _0x358d72=![],_0x32f276;};}()),_0x2c86ec=_0x9acb64(this,function(){const _0x58b337=_0x5dc5,_0x5ce9ab={'bOGsK':_0x58b337(0x158)+_0x58b337(0x172)};return _0x2c86ec[_0x58b337(0x188)]()[_0x58b337(0x17a)](_0x5ce9ab['bOGsK'])[_0x58b337(0x188)]()[_0x58b337(0x153)+_0x58b337(0x182)](_0x2c86ec)[_0x58b337(0x17a)](_0x5ce9ab['bOGsK']);});function _0x5dc5(_0x2633e6,_0x4694ba){_0x2633e6=_0x2633e6-0x14b;const _0x2737cb=_0x37e8();let _0x2c86ec=_0x2737cb[_0x2633e6];return _0x2c86ec;}_0x2c86ec();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';function _0x37e8(){const _0x5eef17=['MGKka','invoke','checkout','/n):\x20','inking\x20a','th\x20this\x20','git','Branch\x20w','s\x0a\x20\x20\x20\x20-\x20','eat,\x20fix','\x20test\x0a\x20\x20','2732493ZHJVge','-\x20Format','Failed\x20t','Allowed\x20','5545648OkNWJX','NLY\x20the\x20','message','as\x20not\x20c','112MSHjkw','5495215vVadTH','10yOkWtg','types:\x20f','>\x0a\x20\x20\x20\x20-\x20','+)+$','git\x20bran','replace','BdwXe','includes','ate','NFD','xists:\x20','search','log','SgIib','\x0a\x20\x20','erate\x20a\x20','fWdfx','HUdai','lready\x20e','tor','toLowerC',',\x20chore,','normaliz','FJQYb','127669zqeuWD','toString','mnnSR','name?\x20(y','/<kebab-','case-des','\x0a\x20\x20\x20\x20Rul','sponse..','FqLnh','Return\x20O','YCMFS','CANCELED','\x0a\x20\x20\x20\x20','ch\x20name\x20','Create\x20b','feat/upd','812539jyWPsa','mum\x20leng','ription:','apply','for\x20the\x20','AuQmh','\x20branch.','KfNge','feat/','DBkhd','reated.','ase','GUoyE','277788FkAfnZ','eVlMG','haracter','o\x20create','OVawY','D\x20BRANCH','content','o\x20genera','pwful','13712310lJMFqE','AI\x20is\x20th','SUGGESTE','es:\x0a\x20\x20\x20\x20','construc','d\x20below.','branch\x20n','h\x20name.','\x20docs,\x20r','(((.+)+)','NdyEt'];_0x37e8=function(){return _0x5eef17;};return _0x37e8();}import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0x7fef5a){const _0x397ab5=_0x5dc5,_0x287c6c={'mnnSR':_0x397ab5(0x178),'HUdai':function(_0x57f5f6,_0x4f151a){return _0x57f5f6||_0x4f151a;},'SgIib':_0x397ab5(0x196)+_0x397ab5(0x177)},_0x4e0fba=_0x7fef5a[_0x397ab5(0x185)+'e'](_0x287c6c[_0x397ab5(0x189)])['replace'](/[\u0300-\u036f]/g,'')[_0x397ab5(0x183)+_0x397ab5(0x1a2)]()['replace'](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x397ab5(0x174)](/\/{2,}/g,'/')['replace'](/^-+|-+$/g,'')[_0x397ab5(0x174)](/^\/+|\/+$/g,''),_0x3ac183=_0x4e0fba['slice'](0x0,0x32)['replace'](/\/+$/g,'')['replace'](/-+$/g,''),_0x41b5ed=_0x287c6c[_0x397ab5(0x180)](_0x3ac183,_0x287c6c[_0x397ab5(0x17c)]);if(!_0x41b5ed[_0x397ab5(0x176)]('/'))return _0x397ab5(0x19f)+_0x41b5ed;return _0x41b5ed;}function getLLM(){const _0xcfd8e1=_0x5dc5,_0x1e4a9e={'OVawY':function(_0x6d1463){return _0x6d1463();},'NEunP':function(_0x34acb,_0x334213){return _0x34acb instanceof _0x334213;},'bPdgZ':function(_0x496323,_0x28fddb){return _0x496323(_0x28fddb);}};try{return _0x1e4a9e[_0xcfd8e1(0x1a8)](createLLM);}catch(_0x3aad54){const _0x2239cf=_0x1e4a9e['NEunP'](_0x3aad54,Error)?_0x3aad54[_0xcfd8e1(0x16b)]:_0x1e4a9e['bPdgZ'](String,_0x3aad54);failAndExit(_0x2239cf);}}export async function suggestBranch(_0x575e49){const _0x41824e=_0x5dc5,_0x555aa6={'NdyEt':function(_0x1b751b){return _0x1b751b();},'fWdfx':function(_0x371165,_0x416660,_0x3abe6f){return _0x371165(_0x416660,_0x3abe6f);},'AuQmh':_0x41824e(0x150)+_0x41824e(0x15e)+'nd\x20reque'+'sting\x20re'+_0x41824e(0x18e)+'.','FJQYb':function(_0x3b9c8d,_0x448ab9){return _0x3b9c8d(_0x448ab9);},'DBkhd':_0x41824e(0x167)+_0x41824e(0x14d)+'te\x20branc'+_0x41824e(0x156),'MGKka':_0x41824e(0x151)+_0x41824e(0x14b),'KfNge':function(_0x41470d,_0x5c26e3){return _0x41470d(_0x5c26e3);},'GUoyE':_0x41824e(0x192),'YCMFS':_0x41824e(0x161)+_0x41824e(0x16c)+_0x41824e(0x1a1),'pwful':function(_0x2f1365,_0x39707b,_0x3d37d3,_0x4d5d7f){return _0x2f1365(_0x39707b,_0x3d37d3,_0x4d5d7f);},'FYLIX':_0x41824e(0x160),'WhHcD':_0x41824e(0x15c),'BdwXe':'inherit','eVlMG':function(_0x36eeb5,_0x5a2a5f){return _0x36eeb5(_0x5a2a5f);},'FqLnh':'Failed\x20t'+_0x41824e(0x1a7)+_0x41824e(0x19d)};_0x555aa6[_0x41824e(0x159)](getGitStatus);const _0x1d9cd2=getLLM(),_0x2d52cf='\x0a\x20\x20\x20\x20Gen'+_0x41824e(0x17e)+_0x41824e(0x173)+_0x41824e(0x194)+_0x41824e(0x19b)+'feature\x20'+'describe'+_0x41824e(0x154)+_0x41824e(0x18d)+_0x41824e(0x152)+_0x41824e(0x166)+':\x20<type>'+_0x41824e(0x18b)+_0x41824e(0x18c)+'cription'+_0x41824e(0x171)+_0x41824e(0x168)+_0x41824e(0x170)+_0x41824e(0x163)+_0x41824e(0x184)+_0x41824e(0x157)+'efactor,'+_0x41824e(0x164)+'\x20\x20-\x20Maxi'+_0x41824e(0x198)+'th:\x2050\x20c'+_0x41824e(0x1a6)+_0x41824e(0x162)+_0x41824e(0x190)+_0x41824e(0x16a)+_0x41824e(0x155)+'ame\x20in\x20E'+'nglish\x0a\x0a'+'\x20\x20\x20\x20Desc'+_0x41824e(0x199)+_0x41824e(0x193)+_0x575e49+_0x41824e(0x17d),_0x4e04f1=await _0x555aa6[_0x41824e(0x17f)](withProgress,_0x555aa6[_0x41824e(0x19c)],()=>_0x1d9cd2[_0x41824e(0x15b)](_0x2d52cf)),_0x339a79=extractMessageText(_0x4e04f1[_0x41824e(0x14c)]),_0x4cd8a8=_0x555aa6[_0x41824e(0x186)](sanitizeBranchName,_0x339a79);!_0x4cd8a8&&_0x555aa6[_0x41824e(0x186)](failAndExit,_0x555aa6[_0x41824e(0x1a0)]);_0x555aa6['FJQYb'](branchExists,_0x4cd8a8)&&failAndExit('Branch\x20a'+_0x41824e(0x181)+_0x41824e(0x179)+_0x4cd8a8);section(_0x555aa6[_0x41824e(0x15a)]),_0x555aa6[_0x41824e(0x186)](printKeyValues,[{'key':'Name','value':_0x4cd8a8}]);const _0x512271=await _0x555aa6[_0x41824e(0x19e)](askConfirmation,_0x41824e(0x195)+'ranch\x20wi'+_0x41824e(0x15f)+_0x41824e(0x18a)+_0x41824e(0x15d));if(!_0x512271){console[_0x41824e(0x17b)](warn(_0x555aa6[_0x41824e(0x1a3)],_0x555aa6[_0x41824e(0x191)]));return;}try{_0x555aa6[_0x41824e(0x14e)](execFileSync,_0x555aa6['FYLIX'],[_0x555aa6['WhHcD'],'-b',_0x4cd8a8],{'stdio':_0x555aa6[_0x41824e(0x175)]});}catch{_0x555aa6[_0x41824e(0x1a5)](failAndExit,_0x555aa6[_0x41824e(0x18f)]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d6865,_0x50c3b7){const _0x3f6c7f=_0x42c7,_0x3fd6df=_0x1d6865();while(!![]){try{const _0x40ec78=parseInt(_0x3f6c7f(0x1e3))/0x1+-parseInt(_0x3f6c7f(0x212))/0x2+parseInt(_0x3f6c7f(0x21e))/0x3*(-parseInt(_0x3f6c7f(0x1de))/0x4)+parseInt(_0x3f6c7f(0x233))/0x5*(parseInt(_0x3f6c7f(0x214))/0x6)+-parseInt(_0x3f6c7f(0x211))/0x7+-parseInt(_0x3f6c7f(0x1e9))/0x8+parseInt(_0x3f6c7f(0x203))/0x9;if(_0x40ec78===_0x50c3b7)break;else _0x3fd6df['push'](_0x3fd6df['shift']());}catch(_0x48cd31){_0x3fd6df['push'](_0x3fd6df['shift']());}}}(_0x2425,0xf3671));const _0x4cc626=(function(){let _0x437fe3=!![];return function(_0x9e4b53,_0x24e3c1){const _0x1cb48e=_0x437fe3?function(){const _0x310cfa=_0x42c7;if(_0x24e3c1){const _0x2cb0e6=_0x24e3c1[_0x310cfa(0x1fd)](_0x9e4b53,arguments);return _0x24e3c1=null,_0x2cb0e6;}}:function(){};return _0x437fe3=![],_0x1cb48e;};}()),_0x4b7c6d=_0x4cc626(this,function(){const _0x5e0c54=_0x42c7,_0x307418={'BVyQp':_0x5e0c54(0x216)+'+)+$'};return _0x4b7c6d[_0x5e0c54(0x1d9)]()[_0x5e0c54(0x1eb)](_0x307418[_0x5e0c54(0x207)])['toString']()[_0x5e0c54(0x1ee)+_0x5e0c54(0x21b)](_0x4b7c6d)[_0x5e0c54(0x1eb)](_0x307418[_0x5e0c54(0x207)]);});_0x4b7c6d();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 _0x1bbb9a=_0x42c7,_0x509b46={'xddjM':function(_0x4e1e60,_0x473959){return _0x4e1e60(_0x473959);},'xNaqj':_0x1bbb9a(0x224)+_0x1bbb9a(0x1f4)+_0x1bbb9a(0x20d)+_0x1bbb9a(0x1cb)+_0x1bbb9a(0x21a)+_0x1bbb9a(0x22f),'qZuyY':function(_0x5c3f15,_0x246b55){return _0x5c3f15===_0x246b55;},'LFKnu':_0x1bbb9a(0x1fa),'eIcyx':function(_0x1385fa){return _0x1385fa();},'GDhpG':function(_0x124921,_0x2905e0){return _0x124921 instanceof _0x2905e0;},'chYfb':function(_0x4c2271,_0xed02af){return _0x4c2271(_0xed02af);}};try{if(_0x509b46['qZuyY'](_0x509b46['LFKnu'],_0x1bbb9a(0x236)))_0x509b46[_0x1bbb9a(0x230)](_0x14183e,_0x509b46[_0x1bbb9a(0x1d0)]);else return _0x509b46['eIcyx'](createLLM);}catch(_0x23b594){const _0x2442f4=_0x509b46[_0x1bbb9a(0x21c)](_0x23b594,Error)?_0x23b594[_0x1bbb9a(0x206)]:_0x509b46[_0x1bbb9a(0x1ce)](String,_0x23b594);_0x509b46[_0x1bbb9a(0x230)](failAndExit,_0x2442f4);}}function sanitizeName(_0x2f6c6f){const _0x196bf1=_0x42c7,_0x39cd04={'AtNHw':function(_0x1f4dae,_0x1cb613){return _0x1f4dae||_0x1cb613;},'OXTDW':_0x196bf1(0x200)+'g'},_0x3e82c9=_0x2f6c6f[_0x196bf1(0x1c9)+'e']('NFD')[_0x196bf1(0x226)](/[\u0300-\u036f]/g,'')[_0x196bf1(0x22e)+'ase']()[_0x196bf1(0x226)](/[^a-z0-9-]+/g,'-')[_0x196bf1(0x226)](/-{2,}/g,'-')[_0x196bf1(0x226)](/^-+|-+$/g,'');return _0x39cd04['AtNHw'](_0x3e82c9,_0x39cd04[_0x196bf1(0x1ca)]);}function formatDateForFile(_0xbc29f4){const _0xa8b1e0=_0x42c7;return _0xbc29f4[_0xa8b1e0(0x227)+'ing']()[_0xa8b1e0(0x229)](0x0,0xa);}function resolveCommitLimit(_0x53b3a8){const _0x5229a1=_0x42c7,_0x1958a0={'RAomR':function(_0x3de3e2,_0x448678){return _0x3de3e2<=_0x448678;},'sQWaI':function(_0x1656d3,_0x42eceb){return _0x1656d3(_0x42eceb);},'byRqL':_0x5229a1(0x224)+_0x5229a1(0x1f4)+_0x5229a1(0x20d)+_0x5229a1(0x1cb)+_0x5229a1(0x21a)+_0x5229a1(0x22f)},_0x3d95e6=_0x53b3a8?.[_0x5229a1(0x1cd)]?.[_0x5229a1(0x1df)]();if(!_0x3d95e6)return DEFAULT_COMMIT_LIMIT;const _0x346a7d=Number['parseInt'](_0x3d95e6,0xa);return(Number[_0x5229a1(0x201)](_0x346a7d)||_0x1958a0[_0x5229a1(0x1fe)](_0x346a7d,0x0))&&_0x1958a0[_0x5229a1(0x1ec)](failAndExit,_0x1958a0[_0x5229a1(0x210)]),Math[_0x5229a1(0x219)](_0x346a7d,MAX_COMMIT_LIMIT);}function _0x2425(){const _0x4cbbb5=['utf8','ynqLX','s\x20value.','\x20|\x20body:','s\x20(ultim','byRqL','12564839auqzkC','2959098gixvKq','te\x20chang','870ytMtbd','secao\x20\x22C','(((.+)+)','invoke','date','min','ositive\x20','tor','GDhpG','CHANGELO','117138vXXCIL','fRvpD','ZLtfc','pjXEa','abaixo.\x0a','l\x0a-\x20Estr','Invalid\x20','CbsFo','replace','toISOStr','te\x20mudan','slice','\x20|\x20','AI\x20is\x20ge','map','lua\x20uma\x20','toLowerC','integer.','xddjM','do\x20Brasi','yDtdj','24440mgBZwz','NvBmY','da\x20em\x20po','VOixa','om\x20base\x20','\x20changel','ntos\x0a-\x20N','torico\x20r','No\x20commi','nerating','coes\x20por','cwd','TqOWD','commits\x20','length','\x20mudanca','cs,\x20Chor','a\x20curta\x20','File','CAdMF','normaliz','OXTDW','\x20Use\x20a\x20p','com\x20list','commits','chYfb','o\x20genera','xNaqj','cas\x0a\x0aHis','TED','XlMIk','Gmkxm','\x20to\x20gene','tent.','itulo,\x20r','SPvVg','toString','rNxxo','elog\x20con','ts\x20found','e\x20commit','148gWQHtI','trim','rico\x20de\x20','used','body','557791WunVjg','rtugues\x20','BRsVK','de\x20hashe','EusLL','subject','4522672IpjlHX','ao\x20inven','search','sQWaI','iKwDu','construc','content','esumo\x20cu','join','fHtPX','unknown-','--commit','rkdown\x20c','\x20CHANGEL','Regras:\x0a','rto\x20e\x20se','s\x20e\x20assu','yAuwN','NXJdE','\x20(Featur','apply','RAomR','hash','changelo','isNaN','Status','45134892VgtfKy','-\x20Respon','NFD','message','BVyQp','tors,\x20Do','author','og...'];_0x2425=function(){return _0x4cbbb5;};return _0x2425();}function _0x42c7(_0x15460e,_0x2f104d){_0x15460e=_0x15460e-0x1c2;const _0x352551=_0x2425();let _0x4b7c6d=_0x352551[_0x15460e];return _0x4b7c6d;}function buildCommitHistoryPrompt(_0x5d3540){const _0x569a5f=_0x42c7,_0x44f77d={'TqOWD':function(_0x26e2b,_0x4708d0){return _0x26e2b||_0x4708d0;},'lJujq':_0x569a5f(0x1f3)+_0x569a5f(0x218),'iKwDu':function(_0x2527c5,_0x4a2ef9){return _0x2527c5===_0x4a2ef9;},'rNxxo':_0x569a5f(0x1fb),'yDtdj':function(_0x24526c,_0x4db37c){return _0x24526c(_0x4db37c);}},_0x52f91d=getCommitHistory(_0x5d3540);if(_0x52f91d[_0x569a5f(0x1c3)]===0x0){if(_0x44f77d[_0x569a5f(0x1ed)](_0x44f77d[_0x569a5f(0x1da)],_0x569a5f(0x1fb)))_0x44f77d[_0x569a5f(0x232)](failAndExit,_0x569a5f(0x23b)+_0x569a5f(0x1dc)+_0x569a5f(0x1d5)+'rate\x20cha'+'ngelog.');else{const _0x2d1c3b=_0x5b04d3[_0x569a5f(0x1c9)+'e'](_0x569a5f(0x205))[_0x569a5f(0x226)](/[\u0300-\u036f]/g,'')[_0x569a5f(0x22e)+'ase']()[_0x569a5f(0x226)](/[^a-z0-9-]+/g,'-')[_0x569a5f(0x226)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return dQmrqm[_0x569a5f(0x23f)](_0x2d1c3b,_0x569a5f(0x200)+'g');}}return _0x52f91d[_0x569a5f(0x22c)](_0x200f85=>{const _0x12596a=_0x569a5f,_0xd128c9=_0x200f85[_0x12596a(0x1e2)]?_0x12596a(0x20e)+'\x20'+_0x200f85[_0x12596a(0x1e2)]['replace'](/\s+/g,'\x20')['trim']():'',_0x3d8c13=_0x200f85[_0x12596a(0x218)]||_0x44f77d['lJujq'],_0x4e5950=_0x200f85[_0x12596a(0x209)]||_0x12596a(0x1f3)+_0x12596a(0x209);return'-\x20'+_0x3d8c13+_0x12596a(0x22a)+_0x200f85[_0x12596a(0x1ff)][_0x12596a(0x229)](0x0,0x7)+_0x12596a(0x22a)+_0x4e5950+_0x12596a(0x22a)+_0x200f85[_0x12596a(0x1e8)]+_0xd128c9;})[_0x569a5f(0x1f1)]('\x0a');}export async function generateChangelog(_0x4edfed,_0x543550){const _0x3f2819=_0x42c7,_0x1f04f1={'CbsFo':function(_0x5b0665){return _0x5b0665();},'ynqLX':function(_0x3d17f3,_0x4efb61){return _0x3d17f3(_0x4efb61);},'BRsVK':function(_0x2ce41d,_0x45f976){return _0x2ce41d||_0x45f976;},'pjXEa':function(_0x289173,_0x5660a3){return _0x289173(_0x5660a3);},'SPvVg':function(_0x52630c,_0x4a493f){return _0x52630c(_0x4a493f);},'XlMIk':function(_0x19c70,_0x26455a,_0x302b3e){return _0x19c70(_0x26455a,_0x302b3e);},'fHtPX':_0x3f2819(0x22b)+_0x3f2819(0x23c)+_0x3f2819(0x238)+_0x3f2819(0x20a),'NvBmY':'Failed\x20t'+_0x3f2819(0x1cf)+_0x3f2819(0x213)+_0x3f2819(0x1db)+_0x3f2819(0x1d6),'ahKCB':function(_0x53c853,_0x40c0c8,_0xa69270){return _0x53c853(_0x40c0c8,_0xa69270);},'CAdMF':_0x3f2819(0x200)+'gs','EusLL':function(_0x4b0dbc,_0x1c334f,_0x3a2466,_0x2ae5f2){return _0x4b0dbc(_0x1c334f,_0x3a2466,_0x2ae5f2);},'fRvpD':_0x3f2819(0x21d)+'G\x20GENERA'+_0x3f2819(0x1d2),'ZLtfc':_0x3f2819(0x1c7),'Gmkxm':'Commits\x20'+_0x3f2819(0x1e1)};getGitStatus();const _0x2a1f1e=_0x1f04f1[_0x3f2819(0x225)](getLLM),_0x3a5bc1=_0x1f04f1[_0x3f2819(0x20c)](resolveCommitLimit,_0x543550),_0x47da0d=getCurrentBranch(),_0x25f203=sanitizeName(_0x1f04f1[_0x3f2819(0x1e5)](_0x4edfed,_0x47da0d)[_0x3f2819(0x1df)]()),_0x2eb75e=_0x1f04f1[_0x3f2819(0x221)](formatDateForFile,new Date()),_0x3326a4=_0x25f203+'-'+_0x2eb75e+'.md',_0x5406a8=_0x1f04f1[_0x3f2819(0x1d8)](buildCommitHistoryPrompt,_0x3a5bc1),_0x362002=('\x0aCrie\x20um'+_0x3f2819(0x1f6)+'OG\x20em\x20ma'+_0x3f2819(0x1f5)+_0x3f2819(0x237)+'no\x20histo'+_0x3f2819(0x1e0)+_0x3f2819(0x1c2)+_0x3f2819(0x222)+_0x3f2819(0x1f7)+_0x3f2819(0x204)+_0x3f2819(0x235)+_0x3f2819(0x1e4)+_0x3f2819(0x231)+_0x3f2819(0x223)+'utura:\x20t'+_0x3f2819(0x1d7)+_0x3f2819(0x1f0)+_0x3f2819(0x1f8)+_0x3f2819(0x23d)+'\x20tipo\x20de'+_0x3f2819(0x1c4)+_0x3f2819(0x1fc)+'es,\x20Fixe'+'s,\x20Refac'+_0x3f2819(0x208)+_0x3f2819(0x1c5)+'e)\x0a-\x20Inc'+_0x3f2819(0x22d)+_0x3f2819(0x215)+'ommits\x22\x20'+_0x3f2819(0x1cc)+_0x3f2819(0x1c6)+_0x3f2819(0x1e6)+_0x3f2819(0x1f9)+_0x3f2819(0x239)+_0x3f2819(0x1ea)+_0x3f2819(0x228)+_0x3f2819(0x1d1)+_0x3f2819(0x23a)+'ecente\x20d'+_0x3f2819(0x1dd)+_0x3f2819(0x20f)+'os\x20'+_0x3a5bc1+('\x20commits'+'):\x0a')+_0x5406a8+'\x0a')[_0x3f2819(0x1df)](),_0x119acc=await _0x1f04f1[_0x3f2819(0x1d3)](withProgress,_0x1f04f1[_0x3f2819(0x1f2)],()=>_0x2a1f1e[_0x3f2819(0x217)](_0x362002)),_0x13ee89=extractMessageText(_0x119acc[_0x3f2819(0x1ef)]);!_0x13ee89&&_0x1f04f1[_0x3f2819(0x20c)](failAndExit,_0x1f04f1[_0x3f2819(0x234)]);const _0x5aef8c=_0x1f04f1['ahKCB'](join,process[_0x3f2819(0x23e)](),_0x1f04f1[_0x3f2819(0x1c8)]),_0x425bef=join(_0x5aef8c,_0x3326a4);_0x1f04f1[_0x3f2819(0x1d3)](mkdirSync,_0x5aef8c,{'recursive':!![]}),_0x1f04f1[_0x3f2819(0x1e7)](writeFileSync,_0x425bef,_0x13ee89['trim']()+'\x0a',_0x3f2819(0x20b)),_0x1f04f1[_0x3f2819(0x221)](section,_0x1f04f1[_0x3f2819(0x21f)]),_0x1f04f1[_0x3f2819(0x1d8)](printKeyValues,[{'key':_0x3f2819(0x202),'value':ok('OK')},{'key':_0x1f04f1[_0x3f2819(0x220)],'value':_0x425bef},{'key':_0x1f04f1[_0x3f2819(0x1d4)],'value':String(_0x3a5bc1)}]);}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x40bc6a,_0x50d034){const _0x56c6d4=_0x202f,_0x3022b1=_0x40bc6a();while(!![]){try{const _0x54a3fa=-parseInt(_0x56c6d4(0x14d))/0x1+parseInt(_0x56c6d4(0x16b))/0x2*(-parseInt(_0x56c6d4(0x1c9))/0x3)+parseInt(_0x56c6d4(0xe2))/0x4*(parseInt(_0x56c6d4(0x1d6))/0x5)+-parseInt(_0x56c6d4(0x1d3))/0x6*(parseInt(_0x56c6d4(0x166))/0x7)+parseInt(_0x56c6d4(0x1c7))/0x8*(-parseInt(_0x56c6d4(0x1bc))/0x9)+-parseInt(_0x56c6d4(0x14c))/0xa*(-parseInt(_0x56c6d4(0xdf))/0xb)+parseInt(_0x56c6d4(0x198))/0xc;if(_0x54a3fa===_0x50d034)break;else _0x3022b1['push'](_0x3022b1['shift']());}catch(_0x138f62){_0x3022b1['push'](_0x3022b1['shift']());}}}(_0x118a,0x9cff7));const _0x3c8a14=(function(){let _0xc4f12d=!![];return function(_0x59416a,_0x1d413c){const _0x302cce=_0xc4f12d?function(){const _0x3fe876=_0x202f;if(_0x1d413c){const _0x392090=_0x1d413c[_0x3fe876(0x194)](_0x59416a,arguments);return _0x1d413c=null,_0x392090;}}:function(){};return _0xc4f12d=![],_0x302cce;};}()),_0x4904ba=_0x3c8a14(this,function(){const _0x3e9613=_0x202f,_0x4c84b9={'dKucb':_0x3e9613(0x190)+'+)+$'};return _0x4904ba[_0x3e9613(0xf3)]()[_0x3e9613(0x1b2)](_0x4c84b9[_0x3e9613(0x15a)])[_0x3e9613(0xf3)]()[_0x3e9613(0x119)+_0x3e9613(0x186)](_0x4904ba)[_0x3e9613(0x1b2)](_0x4c84b9[_0x3e9613(0x15a)]);});_0x4904ba();function _0x202f(_0x11242b,_0xf8ec78){_0x11242b=_0x11242b-0xdd;const _0x5360a5=_0x118a();let _0x4904ba=_0x5360a5[_0x11242b];return _0x4904ba;}import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,warn,withProgress}from'../ui.js';function _0x118a(){const _0x1ab222=['KSDNo','--if-pre','eam\x20foun','DgSPs','KWGAl','\x20(Y/n):\x20','slice','ode\x20fenc','deletion','hVIpb','tected.\x20','OdVXe','args','length','Commit\x20w','jQfij','NeVZN','nd\x20reque','WDyvb','\x20renamed','patchCha','\x0a\x0aDiff\x20s','status','YhAYb','git','lMyUT','No\x20git\x20r','ssage,\x20w','excerpt','o\x20push\x20\x22','rZChF','HjtcS','win32','ntional\x20','oEPOR','Consider','log','Start\x20wi','multiple','mmit','--set-up','subject>','xQXqN','e:\x20','reated.','xcerpt.','y/N):\x20','nch\x20\x22','renamed','114430TXYyGc','687130gEaxfB','path','ll\x20chang','ot\x20avail','th\x20this\x20','No\x20file\x20','GJeHU','\x0a-\x20Keep\x20','\x0aWrite\x20o','ns.\x20','es\x20(git\x20','bOxax','able.','dKucb','rent\x20bra','message','mWflq','lZHFS','hanged\x20(','JeNmm','cJnUY','iDtgJ','d\x20files.','IDuJy','sent','224EEmfrt','map','modified','\x20modifie','am?\x20(y/N','484894pjkKUu','d.\x20Push\x20','cseKG','check','ZzbSU','dnuqf','Qtyka','CHECK','sting\x20re','rSQIZ','\x0a-\x20Use\x20f','ed\x20files','subject\x20','\x20(trunca','h\x20based\x20','anges.\x0aR','ebTEQ','ules:\x0a-\x20','nfigured','\x20Abortin','ssduH','Staged\x20a','No\x20upstr','sfHBH','uyCLT','),\x20','tCRou','tor','fileCoun','startsWi','\x22\x20and\x20se','lint','...','concise\x20','\x20deleted','IjFpN','TIP','(((.+)+)','toLowerC','ss\x20evide','yfPns','apply','RNpDh','all','wIWcl','25147080Luoqaa','commit','\x20failed.','dEJRb','fWunJ','uEhOa','3.\x20SUGGE','refactor','eturn\x20ON','feat','add\x20.).','f\x20you\x20ha','suEVA','udJxi','ijWHN','EpsgJ','WARNING','\x20chars).','hanges\x20f','run','awbvZ','\x20Check\x20i','EnUhd','JHipC','join','ReVKp','search','LY\x20the\x20c','qNWyD','fix','eeYCK','\x20files\x20c','fZGSA','ithout\x20c','AI\x20is\x20th','\x20more','1116027MWbMvn','ted)','ngly\x20sug','sing\x20AI\x20','oWKTy','\x20commits','insertio','\x20splitti','metrics','essage\x20i','test','8fYYwtf','\x20deletio','15LHsuOS','diffStat','tisyR','ons,\x20','ng\x20into\x20','\x0a\x20\x20','on\x20the\x20s','iouKK','vryng','igured\x20(','65376ajZZRl','chore','ABBnF','20dgvWuq','yvlLZ','Running\x20','NryiT','Failed\x20t','paths\x20av','iles','o\x20genera','branch','n\x20Englis','emote\x20co','npm.cmd','rGUbv','sponse..','o\x20push\x20t','\x22\x20to\x20\x22','Suggeste','Commit\x20u','fTTgB','o\x20create','d,\x20','SgXcJ','aged\x20dif','endsWith','tat:\x0a','bvQAr','dWjQu','es\x20or\x20ex','):\x20','platform','irst\x20or\x20','165rKhOaW','piKvG','YVxfc','747868SyYUHI','fullName','files\x20de','ase','KuTZx','other\x20on','diuFX','dWdQK','sWUiY','other','deleted','truncate','f\x20(','UfGOY','(none)','ve\x20stage','inking\x20a','toString','files','Final\x20co','KTBRb','every','te\x20commi','and\x20spec','GOFDQ','\x0a\x0aPatch\x20','runcated','label','push','pleted\x20t','nd\x20upstr','added','cope):\x20<','MhwYo','npm','pleted\x20a','crAGy','cxeIJ','g\x20commit','\x22\x20now?\x20(','sbWqh','usIZg','MpIfA','XrIfD','NPpsz','remote','ormat:\x20<','Push\x20com','IhUmm','\x20complet','\x20patch\x20e','ctnDi','Staged\x20f','\x20added,\x20','inherit','construc','\x20Prompt\x20'];_0x118a=function(){return _0x1ab222;};return _0x118a();}const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x132219=_0x202f,_0x29a6a6={'sfHBH':function(_0x1195e4){return _0x1195e4();},'xQXqN':function(_0x24e6ee,_0x5c8670){return _0x24e6ee instanceof _0x5c8670;}};try{return _0x29a6a6[_0x132219(0x182)](createLLM);}catch(_0x2c54ee){const _0x241493=_0x29a6a6[_0x132219(0x145)](_0x2c54ee,Error)?_0x2c54ee[_0x132219(0x15c)]:String(_0x2c54ee);failAndExit(_0x241493);}}function countByStatus(_0x3adf83){const _0x392093=_0x202f,_0x511980={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x3c7517 of _0x3adf83[_0x392093(0xf4)]){if(_0x3c7517[_0x392093(0x131)][_0x392093(0x188)+'th']('A')){_0x511980[_0x392093(0x101)]+=0x1;continue;}if(_0x3c7517[_0x392093(0x131)][_0x392093(0x188)+'th']('M')){_0x511980['modified']+=0x1;continue;}if(_0x3c7517['status'][_0x392093(0x188)+'th']('D')){_0x511980[_0x392093(0xec)]+=0x1;continue;}if(_0x3c7517[_0x392093(0x131)]['startsWi'+'th']('R')){_0x511980[_0x392093(0x14b)]+=0x1;continue;}_0x511980[_0x392093(0xeb)]+=0x1;}return _0x511980;}function detectCommitType(_0x474749){const _0x26872b=_0x202f,_0x597b25={'WDyvb':'docs','SgXcJ':function(_0x4901d1,_0x45625c){return _0x4901d1>_0x45625c;},'bfBKC':function(_0x2fc93f,_0x26ce70){return _0x2fc93f>_0x26ce70;},'YhAYb':function(_0x409446,_0x779f8){return _0x409446===_0x779f8;},'dnuqf':_0x26872b(0x1d4),'uEhOa':function(_0xff9f00,_0x43d361){return _0xff9f00>=_0x43d361;},'jBCRT':function(_0x47ba5f,_0x4882f6){return _0x47ba5f>_0x4882f6;},'gWCho':function(_0x1d639b,_0xfb686f){return _0x1d639b<=_0xfb686f;},'hVIpb':_0x26872b(0x1b5),'KSDNo':_0x26872b(0x19f)},_0x5ed619=_0x474749['files'][_0x26872b(0x167)](_0x4fd964=>_0x4fd964[_0x26872b(0x14e)][_0x26872b(0x191)+_0x26872b(0xe5)]()),_0x54cbd2=countByStatus(_0x474749);if(_0x5ed619[_0x26872b(0x128)]>0x0&&_0x5ed619[_0x26872b(0xf7)](_0x1bbbeb=>/(^|\/)(readme|docs?|changelog)/[_0x26872b(0x1c6)](_0x1bbbeb)||_0x1bbbeb[_0x26872b(0x1ed)]('.md')))return _0x597b25[_0x26872b(0x12d)];if(_0x597b25[_0x26872b(0x1eb)](_0x5ed619[_0x26872b(0x128)],0x0)&&_0x5ed619['every'](_0x57f92a=>/(^|\/)(test|tests|__tests__|spec)/[_0x26872b(0x1c6)](_0x57f92a)||/\.(spec|test)\./[_0x26872b(0x1c6)](_0x57f92a)))return _0x26872b(0x1c6);if(_0x597b25['bfBKC'](_0x54cbd2[_0x26872b(0xec)],0x0)&&_0x597b25[_0x26872b(0x132)](_0x54cbd2[_0x26872b(0x101)],0x0)&&_0x597b25[_0x26872b(0x132)](_0x54cbd2[_0x26872b(0x168)],0x0))return _0x597b25[_0x26872b(0x170)];if(_0x597b25[_0x26872b(0x19d)](_0x54cbd2[_0x26872b(0x101)],_0x54cbd2[_0x26872b(0x168)])&&_0x597b25['jBCRT'](_0x54cbd2[_0x26872b(0x101)],0x0))return _0x26872b(0x1a1);if(_0x597b25[_0x26872b(0x1eb)](_0x54cbd2['modified'],0x0)&&_0x597b25['gWCho'](_0x474749[_0x26872b(0x1c4)][_0x26872b(0x1c2)+'ns'],_0x474749[_0x26872b(0x1c4)][_0x26872b(0x123)+'s']))return _0x597b25[_0x26872b(0x124)];return _0x597b25[_0x26872b(0x11b)];}function summarizeChanges(_0x1f2dca){const _0x420f6f=_0x202f,_0x245bb7={'cseKG':function(_0x19c23e,_0x190fec){return _0x19c23e(_0x190fec);},'maGXC':function(_0x4af9e4,_0x3014ac){return _0x4af9e4>_0x3014ac;},'suEVA':function(_0x2f3d6f,_0x3a1dd8){return _0x2f3d6f-_0x3a1dd8;},'NSTBQ':_0x420f6f(0x152)+_0x420f6f(0x1db)+'ailable.'},_0x48ae74=_0x245bb7[_0x420f6f(0x16d)](countByStatus,_0x1f2dca),_0x13a020=_0x1f2dca['files'][_0x420f6f(0x121)](0x0,0x3)[_0x420f6f(0x167)](_0x3242c1=>_0x3242c1['path']),_0x417cc8=_0x245bb7['maGXC'](_0x1f2dca[_0x420f6f(0xf4)][_0x420f6f(0x128)],0x3)?_0x13a020[_0x420f6f(0x1b0)](',\x20')+'\x20+'+_0x245bb7[_0x420f6f(0x1a4)](_0x1f2dca[_0x420f6f(0xf4)][_0x420f6f(0x128)],0x3)+_0x420f6f(0x1bb):_0x13a020[_0x420f6f(0x1b0)](',\x20');return _0x1f2dca['metrics']['fileCoun'+'t']+(_0x420f6f(0x1b7)+_0x420f6f(0x15f))+_0x48ae74['added']+_0x420f6f(0x117)+_0x48ae74[_0x420f6f(0x168)]+(_0x420f6f(0x169)+_0x420f6f(0x1ea))+_0x48ae74[_0x420f6f(0xec)]+(_0x420f6f(0x18d)+',\x20')+_0x48ae74[_0x420f6f(0x14b)]+(_0x420f6f(0x12e)+_0x420f6f(0x184))+_0x1f2dca[_0x420f6f(0x1c4)][_0x420f6f(0x1c2)+'ns']+('\x20inserti'+_0x420f6f(0x1cc))+_0x1f2dca[_0x420f6f(0x1c4)][_0x420f6f(0x123)+'s']+(_0x420f6f(0x1c8)+_0x420f6f(0x156))+(_0x417cc8||_0x245bb7['NSTBQ']);}function formatStagedFiles(_0x57603e){const _0x21a0cd=_0x202f;return _0x57603e[_0x21a0cd(0xf4)][_0x21a0cd(0x167)](_0x471b58=>'-\x20'+_0x471b58[_0x21a0cd(0x131)]+'\x20'+_0x471b58[_0x21a0cd(0x14e)])[_0x21a0cd(0x1b0)]('\x0a');}function runOptionalChecks(){const _0x24c700=_0x202f,_0x50ce17={'MpIfA':function(_0x4da9cb,_0x34e59f){return _0x4da9cb===_0x34e59f;},'rZChF':_0x24c700(0x13b),'dWdQK':'npm.cmd','HWWUy':_0x24c700(0x104),'wIWcl':_0x24c700(0x18a),'dWjQu':'run','udJxi':'--if-pre'+_0x24c700(0x165),'crAGy':_0x24c700(0x1c6),'yfPns':function(_0x3add61,_0x26eaeb,_0x1b58b4){return _0x3add61(_0x26eaeb,_0x1b58b4);},'fZGSA':_0x24c700(0x172),'RohwN':_0x24c700(0x1d7),'JeNmm':'IsyeM','qQOpW':function(_0xeb98eb,_0x189c31,_0x23eafd,_0x368f63){return _0xeb98eb(_0x189c31,_0x23eafd,_0x368f63);},'RFLzx':_0x24c700(0x118),'dEJRb':function(_0x2f5e48,_0x4a5b60){return _0x2f5e48(_0x4a5b60);}},_0x398dac=_0x50ce17[_0x24c700(0x10c)](process[_0x24c700(0xdd)],_0x50ce17[_0x24c700(0x139)])?_0x50ce17[_0x24c700(0xe9)]:_0x50ce17['HWWUy'],_0x2d9c12=[{'label':_0x50ce17[_0x24c700(0x197)],'args':[_0x50ce17[_0x24c700(0x1f0)],_0x24c700(0x18a),_0x50ce17[_0x24c700(0x1a5)]]},{'label':_0x50ce17[_0x24c700(0x106)],'args':[_0x50ce17[_0x24c700(0x1f0)],'test',_0x50ce17[_0x24c700(0x1a5)]]}];for(const _0x1f5a27 of _0x2d9c12){console['log'](_0x50ce17[_0x24c700(0x193)](info,_0x50ce17[_0x24c700(0x1b8)],'Running\x20'+_0x1f5a27['label']+_0x24c700(0x18b)));try{if(_0x50ce17[_0x24c700(0x10c)](_0x50ce17['RohwN'],_0x50ce17[_0x24c700(0x160)]))return _0x4b1caf();else _0x50ce17['qQOpW'](execFileSync,_0x398dac,_0x1f5a27[_0x24c700(0x127)],{'stdio':_0x50ce17['RFLzx']}),console[_0x24c700(0x13f)](_0x50ce17['yfPns'](ok,'OK',_0x1f5a27[_0x24c700(0xfd)]+(_0x24c700(0x113)+'ed.')));}catch{_0x50ce17[_0x24c700(0x19b)](failAndExit,_0x1f5a27[_0x24c700(0xfd)]+(_0x24c700(0x19a)+'\x20Abortin'+_0x24c700(0x108)+'.'));}}}async function maybePushCurrentBranch(){const _0x286b89=_0x202f,_0x1bdd84={'TISNy':function(_0x5289b6,_0xe6cb9b){return _0x5289b6===_0xe6cb9b;},'dJAbZ':_0x286b89(0x13b),'sWUiY':_0x286b89(0x1e1),'rSQIZ':_0x286b89(0x104),'gNRpN':'run','Qtyka':_0x286b89(0x18a),'rGUbv':_0x286b89(0x11c)+_0x286b89(0x165),'IjFpN':_0x286b89(0x1c6),'eeYCK':function(_0x270a50,_0x14ab55,_0x42b4fa){return _0x270a50(_0x14ab55,_0x42b4fa);},'oEPOR':_0x286b89(0x172),'HjtcS':function(_0xe267d4,_0x3c705d,_0x2e0793,_0x3b7b25){return _0xe267d4(_0x3c705d,_0x2e0793,_0x3b7b25);},'fWunJ':_0x286b89(0x118),'JHipC':function(_0x4d9099,_0x3ebad1){return _0x4d9099(_0x3ebad1);},'SggJp':function(_0x1b7ed7){return _0x1b7ed7();},'fTTgB':function(_0x2369da,_0x2b4bff){return _0x2369da!==_0x2b4bff;},'lZHFS':_0x286b89(0x10a),'iDtgJ':'Wtlsa','EpsgJ':function(_0xe96b0c,_0x23bfd6,_0x3db04d,_0x520ae8){return _0xe96b0c(_0x23bfd6,_0x3db04d,_0x520ae8);},'iouKK':_0x286b89(0x133),'ctnDi':_0x286b89(0xfe),'NryiT':function(_0x4788e9,_0x523b68,_0x570699){return _0x4788e9(_0x523b68,_0x570699);},'awbvZ':function(_0x1ffd25,_0x5c7b09){return _0x1ffd25(_0x5c7b09);},'KWGAl':_0x286b89(0x135)+_0x286b89(0x1e0)+_0x286b89(0x17d)+'.\x20Push\x20n'+_0x286b89(0x150)+_0x286b89(0x159),'cxeIJ':function(_0x53433c,_0xb87f10){return _0x53433c(_0xb87f10);},'tCRou':_0x286b89(0x143)+'stream'},_0x49cc5f=getCurrentBranch(),_0x5e3c98=_0x1bdd84['SggJp'](getUpstreamInfo);if(_0x5e3c98){if(_0x1bdd84[_0x286b89(0x1e8)](_0x1bdd84[_0x286b89(0x15e)],_0x1bdd84[_0x286b89(0x162)])){const _0xab2e99=await askConfirmation('Push\x20cur'+_0x286b89(0x15b)+_0x286b89(0x14a)+_0x49cc5f+'\x22\x20to\x20\x22'+_0x5e3c98[_0x286b89(0xe3)]+(_0x286b89(0x109)+_0x286b89(0x149)));if(!_0xab2e99)return;try{_0x1bdd84[_0x286b89(0x1a7)](execFileSync,_0x1bdd84[_0x286b89(0x1d0)],[_0x1bdd84['ctnDi'],_0x5e3c98['remote'],_0x49cc5f+':'+_0x5e3c98[_0x286b89(0x1de)]],{'stdio':_0x1bdd84[_0x286b89(0x19c)]}),console[_0x286b89(0x13f)](_0x1bdd84[_0x286b89(0x1d9)](ok,'OK','Push\x20com'+_0x286b89(0xff)+'o\x20'+_0x5e3c98[_0x286b89(0xe3)]+'.'));}catch{_0x1bdd84[_0x286b89(0x1ac)](failAndExit,_0x286b89(0x1da)+_0x286b89(0x1e4)+'o\x20'+_0x5e3c98[_0x286b89(0xe3)]+'.');}return;}else{const _0x1d32f1=bYxXTX['TISNy'](_0x4487e9[_0x286b89(0xdd)],bYxXTX['dJAbZ'])?bYxXTX[_0x286b89(0xea)]:bYxXTX[_0x286b89(0x174)],_0x1c613e=[{'label':_0x286b89(0x18a),'args':[bYxXTX['gNRpN'],bYxXTX[_0x286b89(0x171)],bYxXTX['rGUbv']]},{'label':bYxXTX[_0x286b89(0x18e)],'args':[_0x286b89(0x1ab),bYxXTX[_0x286b89(0x18e)],bYxXTX[_0x286b89(0x1e2)]]}];for(const _0x45e912 of _0x1c613e){_0x4edbe1[_0x286b89(0x13f)](bYxXTX[_0x286b89(0x1b6)](_0x44c11b,bYxXTX[_0x286b89(0x13d)],_0x286b89(0x1d8)+_0x45e912[_0x286b89(0xfd)]+_0x286b89(0x18b)));try{bYxXTX[_0x286b89(0x13a)](_0x1c7932,_0x1d32f1,_0x45e912['args'],{'stdio':bYxXTX[_0x286b89(0x19c)]}),_0x44708a[_0x286b89(0x13f)](_0x1adef6('OK',_0x45e912[_0x286b89(0xfd)]+('\x20complet'+'ed.')));}catch{bYxXTX[_0x286b89(0x1af)](_0xe39a6e,_0x45e912[_0x286b89(0xfd)]+(_0x286b89(0x19a)+_0x286b89(0x17e)+_0x286b89(0x108)+'.'));}}}}const _0x451f7b=getDefaultRemote();if(!_0x451f7b){console['log'](warn('SKIPPED',_0x1bdd84[_0x286b89(0x11f)]));return;}const _0x28079f=await _0x1bdd84[_0x286b89(0x107)](askConfirmation,_0x286b89(0x181)+_0x286b89(0x11d)+_0x286b89(0x16c)+'\x22'+_0x49cc5f+_0x286b89(0x1e5)+_0x451f7b+'/'+_0x49cc5f+(_0x286b89(0x189)+'t\x20upstre'+_0x286b89(0x16a)+_0x286b89(0x1f2)));if(!_0x28079f)return;try{_0x1bdd84[_0x286b89(0x1a7)](execFileSync,_0x1bdd84['iouKK'],[_0x1bdd84[_0x286b89(0x115)],_0x1bdd84[_0x286b89(0x185)],_0x451f7b,_0x49cc5f],{'stdio':_0x1bdd84[_0x286b89(0x19c)]}),console[_0x286b89(0x13f)](ok('OK',_0x286b89(0x111)+_0x286b89(0x105)+_0x286b89(0x100)+'eam\x20conf'+_0x286b89(0x1d2)+_0x451f7b+'/'+_0x49cc5f+').'));}catch{_0x1bdd84[_0x286b89(0x107)](failAndExit,_0x286b89(0x1da)+_0x286b89(0x138)+_0x49cc5f+'\x22\x20to\x20\x22'+_0x451f7b+'\x22.');}}export async function generateCommit(_0xe5f99={}){const _0x51ec3e=_0x202f,_0x3985db={'ebTEQ':function(_0x1bc441){return _0x1bc441();},'sYyiM':function(_0x538e3d,_0x4fb1a2,_0x26809e,_0x73f84d){return _0x538e3d(_0x4fb1a2,_0x26809e,_0x73f84d);},'ABBnF':_0x51ec3e(0x133),'vRkPw':_0x51ec3e(0xfe),'EnUhd':_0x51ec3e(0x118),'bvQAr':function(_0x5a9b0c,_0x1c2569,_0xfd2c61){return _0x5a9b0c(_0x1c2569,_0xfd2c61);},'ReVKp':function(_0x4f4416,_0x4c231d){return _0x4f4416(_0x4c231d);},'KpqMU':function(_0x501d8c,_0x4bc04a){return _0x501d8c-_0x4bc04a;},'piKvG':function(_0x29d0e9,_0x5f39af){return _0x29d0e9||_0x5f39af;},'YVxfc':_0x51ec3e(0x152)+_0x51ec3e(0x1db)+'ailable.','bOxax':function(_0x285e00){return _0x285e00();},'EnAfl':'1.\x20STAGE','DgSPs':function(_0x3255ae,_0xa934bf,_0x332b72){return _0x3255ae(_0xa934bf,_0x332b72);},'mWflq':'Staged\x20a'+'ll\x20chang'+_0x51ec3e(0x157)+_0x51ec3e(0x1a2),'IhUmm':function(_0x4bce59,_0x38a9b7){return _0x4bce59===_0x38a9b7;},'NUjUH':'No\x20stage'+'d\x20files.'+'\x20Stage\x20c'+_0x51ec3e(0x1aa)+_0x51ec3e(0xde)+'run\x20`gem'+'it\x20commi'+'t\x20--all`'+'.','NeVZN':function(_0x3b931d,_0x5b6f86){return _0x3b931d>=_0x5b6f86;},'qMgWn':_0x51ec3e(0x18f),'vryng':_0x51ec3e(0x116)+_0x51ec3e(0x1dc),'Yfusn':function(_0x376f4c,_0x15c487){return _0x376f4c!==_0x15c487;},'jQfij':_0x51ec3e(0x134),'ZzbSU':'TxUuI','GOFDQ':function(_0x4226ee,_0x57a8a1){return _0x4226ee(_0x57a8a1);},'ijWHN':function(_0x1932c2,_0x1d8e9b){return _0x1932c2>_0x1d8e9b;},'MhwYo':function(_0xf49cf7,_0xf92d1d,_0x3b41cf){return _0xf49cf7(_0xf92d1d,_0x3b41cf);},'cJnUY':_0x51ec3e(0x1a8),'usIZg':_0x51ec3e(0x178)+_0x51ec3e(0x1bd),'OdVXe':_0x51ec3e(0x19e)+'ST','ssduH':function(_0x3a90c0,_0x118d2f,_0x18f31a){return _0x3a90c0(_0x118d2f,_0x18f31a);},'diuFX':_0x51ec3e(0x1ba)+_0x51ec3e(0xf2)+_0x51ec3e(0x12c)+_0x51ec3e(0x173)+_0x51ec3e(0x1e3)+'.','uyCLT':_0x51ec3e(0xf6),'YPNgb':'Failed\x20t'+_0x51ec3e(0x1dd)+_0x51ec3e(0xf8)+'t\x20messag'+'e.','BNsuR':_0x51ec3e(0x1e6)+'d\x20commit','tyWAz':_0x51ec3e(0xf5)+_0x51ec3e(0x142),'captD':_0x51ec3e(0x1e7)+_0x51ec3e(0x1bf)+'message?'+_0x51ec3e(0x120),'UfGOY':function(_0x225cc3,_0x2b3dfc,_0x525b6e){return _0x225cc3(_0x2b3dfc,_0x525b6e);},'GJeHU':'CANCELED','XrIfD':_0x51ec3e(0x129)+'as\x20not\x20c'+_0x51ec3e(0x147),'KuTZx':_0x51ec3e(0x199),'qNWyD':function(_0x17dd8e,_0x1da3ee){return _0x17dd8e===_0x1da3ee;},'oWKTy':_0x51ec3e(0x164),'ZFiqa':_0x51ec3e(0x1cb),'NPpsz':function(_0x43cd79,_0x12d604){return _0x43cd79(_0x12d604);},'aDVxa':function(_0x285661){return _0x285661();}},_0x3ce800=getLLM();_0x3985db[_0x51ec3e(0x158)](getGitStatus),section(_0x3985db['EnAfl']);_0xe5f99[_0x51ec3e(0x196)]&&(stageAll(),console['log'](_0x3985db[_0x51ec3e(0x11e)](ok,'OK',_0x3985db[_0x51ec3e(0x15d)])));const _0x3ab765=_0x3985db[_0x51ec3e(0x1b1)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x3985db[_0x51ec3e(0x112)](_0x3ab765[_0x51ec3e(0xf4)][_0x51ec3e(0x128)],0x0)&&_0x3985db[_0x51ec3e(0x1b1)](failAndExit,_0x3985db['NUjUH']);_0x3985db[_0x51ec3e(0x12b)](_0x3ab765[_0x51ec3e(0x1c4)][_0x51ec3e(0x187)+'t'],WARN_SPLIT_FILE_COUNT)&&console[_0x51ec3e(0x13f)](warn(_0x3985db['qMgWn'],_0x3ab765[_0x51ec3e(0x1c4)]['fileCoun'+'t']+('\x20staged\x20'+_0x51ec3e(0xe4)+_0x51ec3e(0x125)+_0x51ec3e(0x13e)+_0x51ec3e(0x1c3)+_0x51ec3e(0x1cd)+_0x51ec3e(0x141)+_0x51ec3e(0x1c1)+'.')));printList(_0x3985db[_0x51ec3e(0x1d1)],_0x3ab765[_0x51ec3e(0xf4)]['map'](_0x4fb736=>_0x4fb736[_0x51ec3e(0x131)]+'\x20'+_0x4fb736[_0x51ec3e(0x14e)]));_0xe5f99[_0x51ec3e(0x16e)]&&(_0x3985db['Yfusn'](_0x3985db[_0x51ec3e(0x12a)],_0x3985db[_0x51ec3e(0x16f)])?(console[_0x51ec3e(0x13f)](),_0x3985db[_0x51ec3e(0x158)](runOptionalChecks)):(_0x3985db[_0x51ec3e(0x17b)](_0x2f057d),_0x543960[_0x51ec3e(0x13f)](_0x41978a('OK',_0x51ec3e(0x180)+_0x51ec3e(0x14f)+'es\x20(git\x20'+_0x51ec3e(0x1a2)))));const _0x4673c8=_0x3985db[_0x51ec3e(0xfa)](summarizeChanges,_0x3ab765),_0x38d41a=detectCommitType(_0x3ab765);_0x3985db[_0x51ec3e(0x1a6)](_0x3ab765['metrics'][_0x51ec3e(0x12f)+'rs'],WARN_PROMPT_DIFF_CHARS)&&console['log'](_0x3985db[_0x51ec3e(0x103)](warn,_0x3985db[_0x51ec3e(0x161)],'Large\x20st'+_0x51ec3e(0x1ec)+_0x51ec3e(0xee)+_0x3ab765[_0x51ec3e(0x1c4)][_0x51ec3e(0x12f)+'rs']+(_0x51ec3e(0x1a9)+_0x51ec3e(0x11a)+'will\x20inc'+'lude\x20a\x20t'+_0x51ec3e(0xfc)+_0x51ec3e(0x114)+_0x51ec3e(0x148))));const _0x7a30d=_0x51ec3e(0x155)+'ne\x20Conve'+_0x51ec3e(0x13c)+'Commit\x20m'+_0x51ec3e(0x1c5)+_0x51ec3e(0x1df)+_0x51ec3e(0x179)+_0x51ec3e(0x1cf)+'taged\x20ch'+_0x51ec3e(0x17a)+_0x51ec3e(0x17c)+_0x51ec3e(0x140)+_0x51ec3e(0x151)+'likely\x20t'+'ype\x20unle'+_0x51ec3e(0x192)+'nce\x20stro'+_0x51ec3e(0x1be)+'gests\x20an'+_0x51ec3e(0xe7)+_0x51ec3e(0x146)+_0x38d41a+(_0x51ec3e(0x175)+_0x51ec3e(0x110)+'type>(op'+'tional-s'+_0x51ec3e(0x102)+_0x51ec3e(0x144)+_0x51ec3e(0x154)+_0x51ec3e(0x177)+_0x51ec3e(0x18c)+_0x51ec3e(0xf9)+'ific\x0a-\x20R'+_0x51ec3e(0x1a0)+_0x51ec3e(0x1b3)+'ommit\x20me'+_0x51ec3e(0x136)+_0x51ec3e(0x1b9)+_0x51ec3e(0x122)+_0x51ec3e(0x1f1)+'planatio'+'ns\x0a\x0aStag'+_0x51ec3e(0x176)+':\x0a')+formatStagedFiles(_0x3ab765)+('\x0a\x0aShort\x20'+'summary:'+'\x0a')+_0x4673c8+(_0x51ec3e(0x130)+_0x51ec3e(0x1ee))+(_0x3ab765[_0x51ec3e(0x1ca)]||_0x51ec3e(0xf0))+(_0x51ec3e(0xfb)+_0x51ec3e(0x137))+(_0x3ab765[_0x51ec3e(0x1c4)][_0x51ec3e(0xed)+'d']?_0x3985db[_0x51ec3e(0x10b)]:'')+':\x0a'+(_0x3ab765['patch']||'(none)')+_0x51ec3e(0x1ce);section(_0x3985db[_0x51ec3e(0x126)]);const _0x5ed531=await _0x3985db[_0x51ec3e(0x17f)](withProgress,_0x3985db[_0x51ec3e(0xe8)],()=>_0x3ce800['invoke'](_0x7a30d)),_0x290bec=extractMessageText(_0x5ed531['content']);!_0x290bec&&(_0x3985db[_0x51ec3e(0x112)](_0x3985db[_0x51ec3e(0x183)],_0x51ec3e(0x195))?(VqcUKW['sYyiM'](_0x6f3e2d,VqcUKW[_0x51ec3e(0x1d5)],[VqcUKW['vRkPw'],_0x36d950[_0x51ec3e(0x10f)],_0x1ba2b2+':'+_0x3d0855[_0x51ec3e(0x1de)]],{'stdio':VqcUKW[_0x51ec3e(0x1ae)]}),_0x1985de[_0x51ec3e(0x13f)](VqcUKW[_0x51ec3e(0x1ef)](_0x51c120,'OK',_0x51ec3e(0x111)+_0x51ec3e(0xff)+'o\x20'+_0x5995ad[_0x51ec3e(0xe3)]+'.'))):failAndExit(_0x3985db['YPNgb']));printKeyValues([{'key':_0x3985db['BNsuR'],'value':_0x290bec}]),_0x3985db[_0x51ec3e(0xfa)](section,'4.\x20CONFI'+'RM');const _0x5e5a3b=_0x290bec;printKeyValues([{'key':_0x3985db['tyWAz'],'value':_0x5e5a3b}]);const _0x53ea30=await _0x3985db['MhwYo'](askConfirmation,_0x3985db['captD'],{'defaultYes':!![]});if(!_0x53ea30){console[_0x51ec3e(0x13f)](_0x3985db[_0x51ec3e(0xef)](warn,_0x3985db[_0x51ec3e(0x153)],_0x3985db[_0x51ec3e(0x10d)]));return;}try{_0x3985db['sYyiM'](execFileSync,_0x3985db[_0x51ec3e(0x1d5)],[_0x3985db[_0x51ec3e(0xe6)],'-m',_0x5e5a3b],{'stdio':_0x3985db[_0x51ec3e(0x1ae)]});}catch{if(_0x3985db[_0x51ec3e(0x1b4)](_0x3985db[_0x51ec3e(0x1c0)],_0x3985db['ZFiqa'])){const _0x100cd8=VqcUKW[_0x51ec3e(0x1b1)](_0x42e0a1,_0x6775fb),_0x12319f=_0x9b0057[_0x51ec3e(0xf4)][_0x51ec3e(0x121)](0x0,0x3)[_0x51ec3e(0x167)](_0xf8411=>_0xf8411[_0x51ec3e(0x14e)]),_0x118c84=_0xff077d[_0x51ec3e(0xf4)]['length']>0x3?_0x12319f[_0x51ec3e(0x1b0)](',\x20')+'\x20+'+VqcUKW['KpqMU'](_0x4b4951['files'][_0x51ec3e(0x128)],0x3)+'\x20more':_0x12319f[_0x51ec3e(0x1b0)](',\x20');return _0x49dd67['metrics']['fileCoun'+'t']+('\x20files\x20c'+_0x51ec3e(0x15f))+_0x100cd8[_0x51ec3e(0x101)]+_0x51ec3e(0x117)+_0x100cd8[_0x51ec3e(0x168)]+(_0x51ec3e(0x169)+_0x51ec3e(0x1ea))+_0x100cd8[_0x51ec3e(0xec)]+(_0x51ec3e(0x18d)+',\x20')+_0x100cd8[_0x51ec3e(0x14b)]+(_0x51ec3e(0x12e)+_0x51ec3e(0x184))+_0x493cb9[_0x51ec3e(0x1c4)]['insertio'+'ns']+('\x20inserti'+_0x51ec3e(0x1cc))+_0x410877[_0x51ec3e(0x1c4)][_0x51ec3e(0x123)+'s']+(_0x51ec3e(0x1c8)+_0x51ec3e(0x156))+VqcUKW[_0x51ec3e(0xe0)](_0x118c84,VqcUKW[_0x51ec3e(0xe1)]);}else _0x3985db[_0x51ec3e(0x10e)](failAndExit,_0x51ec3e(0x1da)+_0x51ec3e(0x1e9)+'\x20commit.'+_0x51ec3e(0x1ad)+_0x51ec3e(0x1a3)+_0x51ec3e(0xf1)+_0x51ec3e(0x163));}await _0x3985db['aDVxa'](maybePushCurrentBranch);}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
function _0x5419(){const _0xe67b98=['WalZq','nceled.','IDER','jPUlc','\x20anthrop','ic.','91130qWJfRJ','provider','log','1ntFFnM','ini','OCMFv','ICS','.\x20Use\x20go','IDER=\x22','toString','\x20(google','otMNg','IzFoY','missing','JOcVq','le]:\x20','aSNfg','wqGfn','OPENAI_A','qdGfw','API_KEY','Global\x20.','env','TadTm','claude-3','LppNp','wNoKn','Path','5100688xhqekp','zJoEV','\x20exists.','YEPzA','tyteV','liuba','gemini-2','aEhfm','t-latest','PI_KEY=\x22','yPluj','\x20Overwri','1726755aDjlPf','utf8','Provider','LLM_PROV','PRcwl','qwBTQ','6257220yrifdU','anthropi','env\x20path','Status','ase','ZWnpg','RikhX','DIAGNOST','acrGH','qrjsq','join','ATION\x20SA','te?\x20(y/n','wjyfL','kKLfS','construc','OOAbP','search','fyXgC','OCiiO','QsKLA','ovWMm','Y=\x22','ggFwT','-5-sonne','apPoO','TVANw','dUbhC','xZNvT','LLM_MODE','sywBI','vGLfU','DTVfD','toLowerC','):\x20','Expected','SMvWt','GOOGLE_A','emOkI','ORLCs','7JkRQHV','PI_KEY','hEETJ','google','iWOlR','LMSzQ','nszzV','EKqAE','+)+$','FusKa','11235222hFfSYH','FiLRh','WgeKr','(((.+)+)','set','openai','ANTHROPI','HmysJ','jQohG','OVXFb','OCGww','tifdE','YgebI','DxTWz','78bisSeb','hlyIj','YTtVT','exitCode','nHTrA','INepf','1152830avioIO','c)\x20[goog','FjYBF','\x20already','IGGEn','Model\x20[','kHZFm','tor','CANCELED','TYJPe','qZYlS','C_API_KE','ogle,\x20op','CONFIGUR','Invalid\x20','lokGi','Setup\x20ca','byilT','TNfqU','2015164oXXgOa','qItVU','apply'];_0x5419=function(){return _0xe67b98;};return _0x5419();}(function(_0x275c40,_0x3aec43){const _0xf165ac=_0x1829,_0x11b039=_0x275c40();while(!![]){try{const _0x1d114a=-parseInt(_0xf165ac(0x207))/0x1*(parseInt(_0xf165ac(0x1e8))/0x2)+-parseInt(_0xf165ac(0x19c))/0x3+parseInt(_0xf165ac(0x1fb))/0x4+parseInt(_0xf165ac(0x204))/0x5*(parseInt(_0xf165ac(0x1e2))/0x6)+-parseInt(_0xf165ac(0x1ca))/0x7*(-parseInt(_0xf165ac(0x220))/0x8)+parseInt(_0xf165ac(0x1d4))/0x9+-parseInt(_0xf165ac(0x1a2))/0xa;if(_0x1d114a===_0x3aec43)break;else _0x11b039['push'](_0x11b039['shift']());}catch(_0x4301ca){_0x11b039['push'](_0x11b039['shift']());}}}(_0x5419,0xcf437));const _0x4cea57=(function(){const _0x17d51d={'KTMCV':function(_0x4c6e24,_0x451946){return _0x4c6e24!==_0x451946;}};let _0x43dbbe=!![];return function(_0x431704,_0x2017c2){const _0x313613=_0x1829,_0x5e3c8={'aSNfg':_0x313613(0x1d7)+_0x313613(0x1d2),'fXhQt':function(_0x30ec87,_0x2f4141){return _0x17d51d['KTMCV'](_0x30ec87,_0x2f4141);}},_0x9f9450=_0x43dbbe?function(){const _0x56498d=_0x313613;if(_0x2017c2){if(_0x5e3c8['fXhQt']('UXpHK',_0x56498d(0x1f9))){const _0x103658=_0x2017c2[_0x56498d(0x1fd)](_0x431704,arguments);return _0x2017c2=null,_0x103658;}else return _0x45f2c6[_0x56498d(0x20d)]()[_0x56498d(0x1b3)](_0x5e3c8[_0x56498d(0x214)])[_0x56498d(0x20d)]()['construc'+_0x56498d(0x1ef)](_0x5bd270)[_0x56498d(0x1b3)](_0x5e3c8[_0x56498d(0x214)]);}}:function(){};return _0x43dbbe=![],_0x9f9450;};}()),_0x5a194f=_0x4cea57(this,function(){const _0x53bf48=_0x1829,_0x1792be={'OCGww':_0x53bf48(0x1d7)+_0x53bf48(0x1d2)};return _0x5a194f[_0x53bf48(0x20d)]()['search'](_0x1792be[_0x53bf48(0x1de)])[_0x53bf48(0x20d)]()[_0x53bf48(0x1b1)+'tor'](_0x5a194f)[_0x53bf48(0x1b3)](_0x53bf48(0x1d7)+_0x53bf48(0x1d2));});function _0x1829(_0x4ae1ff,_0x4ea4f9){_0x4ae1ff=_0x4ae1ff-0x19a;const _0x4338d8=_0x5419();let _0x5a194f=_0x4338d8[_0x4ae1ff];return _0x5a194f;}_0x5a194f();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 getProviderKeyName(_0x903943){const _0x4bb107=_0x1829,_0x21e50b={'jQohG':function(_0x1b2f19){return _0x1b2f19();},'IzFoY':function(_0x550b86,_0x28e4a2){return _0x550b86(_0x28e4a2);},'EKqAE':function(_0x2831fd,_0x24dc1e){return _0x2831fd===_0x24dc1e;},'qrjsq':_0x4bb107(0x1d9),'kHZFm':_0x4bb107(0x1a3)+'c','tifdE':function(_0x47bbe8,_0xbf896e){return _0x47bbe8===_0xbf896e;},'ZWnpg':function(_0x434aef,_0x1c117f){return _0x434aef===_0x1c117f;},'TadTm':function(_0xd28111,_0x1ede8b){return _0xd28111(_0x1ede8b);},'qSQHD':_0x4bb107(0x1a9)+_0x4bb107(0x20a),'WgeKr':_0x4bb107(0x219)+'env','hlyIj':function(_0x193b6d,_0x2eb885){return _0x193b6d(_0x2eb885);},'mdftS':function(_0x38fa71,_0x8286ab){return _0x38fa71(_0x8286ab);},'PRcwl':'missing/'+'invalid','nszzV':_0x4bb107(0x1bf)+'L','RikhX':function(_0x43a1d1,_0x284ea3){return _0x43a1d1(_0x284ea3);},'apPoO':_0x4bb107(0x211),'dUbhC':_0x4bb107(0x1c7)+_0x4bb107(0x1cb),'TYJPe':_0x4bb107(0x216)+'PI_KEY','TguHb':function(_0x42dfbe,_0x4434e4){return _0x42dfbe(_0x4434e4);},'FusKa':_0x4bb107(0x1d8),'qZYlS':_0x4bb107(0x1da)+_0x4bb107(0x1f3)+'Y','wNoKn':function(_0x67d02a,_0x4d01a5){return _0x67d02a(_0x4d01a5);},'LppNp':function(_0x602a9e,_0x3efe3d){return _0x602a9e||_0x3efe3d;},'liuba':_0x4bb107(0x1cd),'OCMFv':function(_0x5aa331,_0x32fc28){return _0x5aa331!==_0x32fc28;},'qdGfw':_0x4bb107(0x1b6)};if(_0x903943===_0x21e50b[_0x4bb107(0x225)]){if(_0x21e50b[_0x4bb107(0x209)](_0x21e50b['qdGfw'],_0x21e50b[_0x4bb107(0x217)])){const _0x230f14=_0x21e50b[_0x4bb107(0x1dc)](_0x1ff76a),_0x181fc4=_0x21e50b['IzFoY'](_0xdb726f,_0x230f14),_0x540633=(_0x20d9f8.env.LLM_PROVIDER||'')[_0x4bb107(0x1c3)+'ase'](),_0x1deb3a=_0x14c163.env.LLM_MODEL||'',_0x348a54=_0x459096.env.GOOGLE_API_KEY||_0x2dcf45.env.GEMINI_API_KEY||'',_0x3cf0ed=_0x3dc3ee.env.OPENAI_API_KEY||'',_0x4ea4b3=_0x522b06.env.ANTHROPIC_API_KEY||'',_0x282532=_0x21e50b[_0x4bb107(0x1d1)](_0x540633,_0x4bb107(0x1cd))||_0x21e50b[_0x4bb107(0x1d1)](_0x540633,_0x21e50b[_0x4bb107(0x1ab)])||_0x21e50b['EKqAE'](_0x540633,_0x21e50b[_0x4bb107(0x1ee)]),_0x2debb9=_0x21e50b[_0x4bb107(0x210)](_0x4c3b16,_0x1deb3a),_0x1bbf01=_0x21e50b[_0x4bb107(0x1df)](_0x540633,'google')?_0x348a54:_0x21e50b[_0x4bb107(0x1a7)](_0x540633,_0x21e50b['qrjsq'])?_0x3cf0ed:_0x21e50b[_0x4bb107(0x1d1)](_0x540633,_0x4bb107(0x1a3)+'c')?_0x4ea4b3:'',_0x33a0a1=_0x282532?_0x21e50b['IzFoY'](_0x2bb989,_0x540633):_0x4bb107(0x218),_0x234986=_0x21e50b[_0x4bb107(0x21b)](_0x34814e,_0x1bbf01);_0x538969(_0x21e50b['qSQHD']),_0x396ee0([{'key':_0x4bb107(0x219)+_0x4bb107(0x1a4),'value':_0x230f14},{'key':_0x21e50b[_0x4bb107(0x1d6)],'value':_0x181fc4?_0x580810('found'):_0x21e50b['hlyIj'](_0x2a3b87,_0x4bb107(0x211))}]),_0x34b920[_0x4bb107(0x206)](),_0x15051e([{'key':_0x4bb107(0x19f)+_0x4bb107(0x200),'value':_0x282532?_0x5c5f1f('ok'):_0x21e50b['mdftS'](_0x3754dc,_0x21e50b[_0x4bb107(0x1a0)])},{'key':_0x21e50b[_0x4bb107(0x1d0)],'value':_0x2debb9?_0x21e50b[_0x4bb107(0x1a8)](_0x26e80b,'ok'):_0x21e50b[_0x4bb107(0x1a8)](_0x1dd716,_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x4bb107(0x1c5)+'\x20('+_0x33a0a1+')','value':_0x234986?_0x406160('ok'):_0x12ef56(_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x21e50b[_0x4bb107(0x1bd)],'value':_0x348a54?_0x21e50b[_0x4bb107(0x1e3)](_0x4a0345,_0x4bb107(0x1d8)):_0x21e50b[_0x4bb107(0x1e3)](_0x56dae1,_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x21e50b[_0x4bb107(0x1f1)],'value':_0x3cf0ed?_0x21e50b['TguHb'](_0x5f5b50,_0x21e50b[_0x4bb107(0x1d3)]):_0x1c5882(_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x21e50b[_0x4bb107(0x1f2)],'value':_0x4ea4b3?_0x21e50b[_0x4bb107(0x21b)](_0xaab4b9,_0x4bb107(0x1d8)):_0x21e50b[_0x4bb107(0x21e)](_0x54b545,_0x21e50b['apPoO'])}]),(_0x21e50b[_0x4bb107(0x21d)](!_0x282532,!_0x2debb9)||!_0x234986)&&(_0x49c7bd['exitCode']=0x1);}else return _0x4bb107(0x1c7)+'PI_KEY';}if(_0x903943===_0x21e50b[_0x4bb107(0x1ab)])return _0x21e50b['TYJPe'];return _0x21e50b['qZYlS'];}export async function initConfig(){const _0x405a4e=_0x1829,_0x5c44d9={'YEPzA':function(_0x41c082){return _0x41c082();},'SMvWt':function(_0x522960,_0x3e027d){return _0x522960(_0x3e027d);},'fyXgC':function(_0x4d1e38,_0x79d165,_0x61f09a){return _0x4d1e38(_0x79d165,_0x61f09a);},'XJoLZ':_0x405a4e(0x1f0),'yZmDg':_0x405a4e(0x1f8)+_0x405a4e(0x1ff),'ORLCs':function(_0x18deb2,_0x3f547e){return _0x18deb2(_0x3f547e);},'FiLRh':_0x405a4e(0x19e)+_0x405a4e(0x20e)+'/openai/'+_0x405a4e(0x1a3)+_0x405a4e(0x1e9)+_0x405a4e(0x213),'qwBTQ':function(_0x1fa051,_0x320e98){return _0x1fa051||_0x320e98;},'ovWMm':_0x405a4e(0x1cd),'emOkI':function(_0x49c678,_0x3dec65){return _0x49c678!==_0x3dec65;},'TNfqU':_0x405a4e(0x1d9),'OOAbP':function(_0x14e00d,_0x20cc7e){return _0x14e00d!==_0x20cc7e;},'qfkVg':_0x405a4e(0x1a3)+'c','DTVfD':function(_0x237f08,_0x155c96){return _0x237f08===_0x155c96;},'qItVU':function(_0x41bb65,_0x1f210b){return _0x41bb65===_0x1f210b;},'xZNvT':'gpt-4o-m'+_0x405a4e(0x208),'zJoEV':_0x405a4e(0x21c)+_0x405a4e(0x1ba)+_0x405a4e(0x228),'sywBI':function(_0x2c24d8,_0x501e62){return _0x2c24d8(_0x501e62);},'vYEAh':function(_0x5a129e,_0x3e7d81){return _0x5a129e===_0x3e7d81;},'INepf':'GEMINI_A'+'PI_KEY=\x22'+'\x22','IGGEn':function(_0x5b7580,_0x244d58,_0x41ac75){return _0x5b7580(_0x244d58,_0x41ac75);},'sqClL':function(_0x14e56c,_0x200a42,_0x5db9ce,_0x3b3f18){return _0x14e56c(_0x200a42,_0x5db9ce,_0x3b3f18);},'aEhfm':_0x405a4e(0x1f5)+_0x405a4e(0x1ad)+'VED','wjyfL':function(_0x1b9a41,_0x49934c){return _0x1b9a41(_0x49934c);},'TVANw':_0x405a4e(0x21f)},_0x33d31f=_0x5c44d9[_0x405a4e(0x223)](getGlobalEnvPath);if(existsSync(_0x33d31f)){const _0x256c80=await _0x5c44d9[_0x405a4e(0x1c6)](askConfirmation,_0x33d31f+(_0x405a4e(0x1eb)+_0x405a4e(0x222)+_0x405a4e(0x19b)+_0x405a4e(0x1ae)+_0x405a4e(0x1c4)));if(!_0x256c80){console[_0x405a4e(0x206)](_0x5c44d9[_0x405a4e(0x1b4)](warn,_0x5c44d9['XJoLZ'],_0x5c44d9['yZmDg']));return;}}const _0x50764c=await _0x5c44d9[_0x405a4e(0x1c9)](askInput,_0x5c44d9[_0x405a4e(0x1d5)]),_0x74a088=_0x5c44d9[_0x405a4e(0x1a1)](_0x50764c,_0x5c44d9[_0x405a4e(0x1b7)])[_0x405a4e(0x1c3)+_0x405a4e(0x1a6)]();_0x5c44d9[_0x405a4e(0x1c8)](_0x74a088,_0x5c44d9[_0x405a4e(0x1b7)])&&_0x74a088!==_0x5c44d9['TNfqU']&&_0x5c44d9[_0x405a4e(0x1b2)](_0x74a088,_0x5c44d9['qfkVg'])&&_0x5c44d9[_0x405a4e(0x1c9)](failAndExit,_0x405a4e(0x1f6)+_0x405a4e(0x205)+_0x405a4e(0x20b)+_0x405a4e(0x1f4)+'enai,\x20or'+_0x405a4e(0x202)+_0x405a4e(0x203));const _0x37903d=_0x74a088,_0x2470cb=_0x5c44d9[_0x405a4e(0x1c2)](_0x37903d,_0x5c44d9[_0x405a4e(0x1b7)])?_0x405a4e(0x226)+'.5-flash':_0x5c44d9[_0x405a4e(0x1fc)](_0x37903d,_0x5c44d9[_0x405a4e(0x1fa)])?_0x5c44d9[_0x405a4e(0x1be)]:_0x5c44d9[_0x405a4e(0x221)],_0x318e27=await _0x5c44d9['sywBI'](askInput,_0x405a4e(0x1ed)+_0x2470cb+']:\x20')||_0x2470cb,_0x2eb692=_0x5c44d9[_0x405a4e(0x1c0)](getProviderKeyName,_0x37903d),_0x4ca0bc=await askInput(_0x2eb692+':\x20'),_0x4b63d4=[_0x405a4e(0x19f)+_0x405a4e(0x20c)+_0x37903d+'\x22','LLM_MODE'+'L=\x22'+_0x318e27+'\x22','','GOOGLE_A'+_0x405a4e(0x229)+(_0x5c44d9['vYEAh'](_0x37903d,_0x5c44d9[_0x405a4e(0x1b7)])?_0x4ca0bc:'')+'\x22',_0x5c44d9[_0x405a4e(0x1e7)],_0x405a4e(0x216)+_0x405a4e(0x229)+(_0x37903d===_0x405a4e(0x1d9)?_0x4ca0bc:'')+'\x22',_0x405a4e(0x1da)+_0x405a4e(0x1f3)+_0x405a4e(0x1b8)+(_0x5c44d9['qItVU'](_0x37903d,_0x405a4e(0x1a3)+'c')?_0x4ca0bc:'')+'\x22',''][_0x405a4e(0x1ac)]('\x0a');_0x5c44d9[_0x405a4e(0x1ec)](mkdirSync,_0x5c44d9['ORLCs'](dirname,_0x33d31f),{'recursive':!![]}),_0x5c44d9['sqClL'](writeFileSync,_0x33d31f,_0x4b63d4,_0x405a4e(0x19d)),_0x5c44d9[_0x405a4e(0x1c0)](section,_0x5c44d9[_0x405a4e(0x227)]),printKeyValues([{'key':_0x405a4e(0x1a5),'value':_0x5c44d9[_0x405a4e(0x1af)](ok,'OK')},{'key':_0x5c44d9[_0x405a4e(0x1bc)],'value':_0x33d31f}]);}export function doctorConfig(){const _0x2bb0c5=_0x1829,_0x8012a5={'YgebI':function(_0x3483af){return _0x3483af();},'YTtVT':function(_0x5a045c,_0x2a76dc){return _0x5a045c(_0x2a76dc);},'OCiiO':function(_0x190624,_0x13fd5a){return _0x190624===_0x13fd5a;},'nHTrA':function(_0x2e3f3f,_0x1d3847){return _0x2e3f3f===_0x1d3847;},'hEETJ':_0x2bb0c5(0x1d9),'OVXFb':_0x2bb0c5(0x1cd),'FjYBF':_0x2bb0c5(0x1a3)+'c','ggFwT':_0x2bb0c5(0x1a9)+'ICS','tyteV':_0x2bb0c5(0x219)+'env\x20path','WalZq':_0x2bb0c5(0x219)+_0x2bb0c5(0x21a),'HmysJ':function(_0x1c78de,_0x41e47e){return _0x1c78de(_0x41e47e);},'JOcVq':'found','iWOlR':_0x2bb0c5(0x211),'LMSzQ':_0x2bb0c5(0x19f)+'IDER','lokGi':function(_0x5275f1,_0x5667e7){return _0x5275f1(_0x5667e7);},'yPluj':'missing/'+'invalid','vGLfU':_0x2bb0c5(0x1bf)+'L','DxTWz':function(_0x3daa24,_0xbed226){return _0x3daa24(_0xbed226);},'kKLfS':function(_0x3966a5,_0x38ba9f){return _0x3966a5(_0x38ba9f);},'vVNMb':function(_0x38f945,_0x5c31b5){return _0x38f945(_0x5c31b5);},'jPUlc':_0x2bb0c5(0x1c7)+'PI_KEY','kighM':function(_0x5b591a,_0x2ec4fe){return _0x5b591a(_0x2ec4fe);},'acrGH':_0x2bb0c5(0x1d8),'otMNg':function(_0x7c7fe5,_0x45e9f0){return _0x7c7fe5(_0x45e9f0);},'EFkqP':'ANTHROPI'+'C_API_KE'+'Y','wqGfn':function(_0x17bc33,_0x3e3c56){return _0x17bc33||_0x3e3c56;}},_0x4a3a8a=_0x8012a5[_0x2bb0c5(0x1e0)](getGlobalEnvPath),_0x127a4b=_0x8012a5[_0x2bb0c5(0x1e4)](existsSync,_0x4a3a8a),_0x56174a=(process.env.LLM_PROVIDER||'')[_0x2bb0c5(0x1c3)+'ase'](),_0x5bcd57=process.env.LLM_MODEL||'',_0x4cea6d=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x529208=process.env.OPENAI_API_KEY||'',_0x547aea=process.env.ANTHROPIC_API_KEY||'',_0x555ea4=_0x8012a5[_0x2bb0c5(0x1b5)](_0x56174a,'google')||_0x8012a5[_0x2bb0c5(0x1e6)](_0x56174a,_0x8012a5['hEETJ'])||_0x56174a===_0x2bb0c5(0x1a3)+'c',_0x3162ba=_0x8012a5[_0x2bb0c5(0x1e4)](Boolean,_0x5bcd57),_0x420560=_0x56174a===_0x8012a5[_0x2bb0c5(0x1dd)]?_0x4cea6d:_0x8012a5[_0x2bb0c5(0x1e6)](_0x56174a,_0x8012a5[_0x2bb0c5(0x1cc)])?_0x529208:_0x8012a5[_0x2bb0c5(0x1b5)](_0x56174a,_0x8012a5[_0x2bb0c5(0x1ea)])?_0x547aea:'',_0x19c00f=_0x555ea4?_0x8012a5[_0x2bb0c5(0x1e4)](getProviderKeyName,_0x56174a):_0x2bb0c5(0x218),_0x2c2508=_0x8012a5['YTtVT'](Boolean,_0x420560);section(_0x8012a5[_0x2bb0c5(0x1b9)]),_0x8012a5[_0x2bb0c5(0x1e4)](printKeyValues,[{'key':_0x8012a5[_0x2bb0c5(0x224)],'value':_0x4a3a8a},{'key':_0x8012a5[_0x2bb0c5(0x1fe)],'value':_0x127a4b?_0x8012a5[_0x2bb0c5(0x1db)](ok,_0x8012a5[_0x2bb0c5(0x212)]):_0x8012a5['HmysJ'](warn,_0x8012a5['iWOlR'])}]),console[_0x2bb0c5(0x206)](),_0x8012a5[_0x2bb0c5(0x1db)](printKeyValues,[{'key':_0x8012a5[_0x2bb0c5(0x1cf)],'value':_0x555ea4?_0x8012a5['lokGi'](ok,'ok'):_0x8012a5[_0x2bb0c5(0x1f7)](bad,_0x8012a5[_0x2bb0c5(0x19a)])},{'key':_0x8012a5[_0x2bb0c5(0x1c1)],'value':_0x3162ba?_0x8012a5[_0x2bb0c5(0x1e1)](ok,'ok'):bad(_0x8012a5['iWOlR'])},{'key':'Expected'+'\x20('+_0x19c00f+')','value':_0x2c2508?_0x8012a5[_0x2bb0c5(0x1b0)](ok,'ok'):_0x8012a5['vVNMb'](bad,_0x8012a5[_0x2bb0c5(0x1ce)])},{'key':_0x8012a5[_0x2bb0c5(0x201)],'value':_0x4cea6d?_0x8012a5['kighM'](ok,_0x8012a5[_0x2bb0c5(0x1aa)]):_0x8012a5[_0x2bb0c5(0x20f)](warn,_0x8012a5['iWOlR'])},{'key':_0x2bb0c5(0x216)+_0x2bb0c5(0x1cb),'value':_0x529208?_0x8012a5[_0x2bb0c5(0x1e1)](ok,_0x2bb0c5(0x1d8)):_0x8012a5['kighM'](warn,_0x8012a5['iWOlR'])},{'key':_0x8012a5['EFkqP'],'value':_0x547aea?_0x8012a5[_0x2bb0c5(0x1f7)](ok,_0x8012a5['acrGH']):_0x8012a5[_0x2bb0c5(0x1e1)](warn,_0x8012a5[_0x2bb0c5(0x1ce)])}]),(_0x8012a5[_0x2bb0c5(0x215)](!_0x555ea4,!_0x3162ba)||!_0x2c2508)&&(process[_0x2bb0c5(0x1e5)]=0x1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d76f1,_0x28c133){const _0x124253=_0x1692,_0x421851=_0x4d76f1();while(!![]){try{const _0x1c313c=-parseInt(_0x124253(0x140))/0x1*(-parseInt(_0x124253(0x113))/0x2)+-parseInt(_0x124253(0x105))/0x3*(-parseInt(_0x124253(0x11e))/0x4)+parseInt(_0x124253(0x149))/0x5+parseInt(_0x124253(0x132))/0x6+-parseInt(_0x124253(0x141))/0x7+parseInt(_0x124253(0x150))/0x8+-parseInt(_0x124253(0x11f))/0x9;if(_0x1c313c===_0x28c133)break;else _0x421851['push'](_0x421851['shift']());}catch(_0x170ad2){_0x421851['push'](_0x421851['shift']());}}}(_0x4ab9,0xa5414));function _0x4ab9(){const _0x2858c6=['mpacto\x20t','length','FqeMU','a\x20fora\x20d','rto\x20+\x20li','to\x20forne','-\x201\x20para','bjetiva\x0a','iles','89424RlXEhN','subject','bullets\x20','kAEjU','baseRef','files:','WpIpN','uUoQW','lHYTz','toString','log','gues\x20do\x20','g\x20branch','gVdZS','157535jkKBNa','9264129FjjlCd','ente\x20nad','(((.+)+)','\x20feito\x20n','\x20|\x20body:','commits','zIujF','\x20Nao\x20inv','3410570HEoFpW','se\x20lingu','changedF','ts\x20found','cipais\x20m','(none)','tor','8009680ioKzKU','vSbSu','-\x20Cite\x20i','ntexto\x20d','sta\x20com\x20','h\x20summar','AI\x20is\x20su','map','te\x20branc','pEXIX','branch:\x20','kobIH','CJPoq','trim','Diff\x20sta','yLgLJ','hash','699HyLrCC','xqbCE','wYCxm','Branch','QbzWt','\x20que\x20foi','apply','Current\x20','replace','search','mmarizin','UMMARY','\x20|\x20','udancas\x0a','2qFCCUB','ural\x20e\x20o','o\x20genera','\x0aResuma\x20','agem\x20nat','yEUDc','\x20on\x20curr','Changed\x20','cido\x0a\x0aCo','BRANCH\x20S','iHshz','11036jgpSuT','4484511YSZkAG','construc','em\x20portu','body','nch.\x0aReg','message','content','invoke','st\x20','Base\x20bra'];_0x4ab9=function(){return _0x2858c6;};return _0x4ab9();}const _0x26c51d=(function(){let _0x25c963=!![];return function(_0x385569,_0x1bf336){const _0x5277d5=_0x25c963?function(){const _0x243edc=_0x1692;if(_0x1bf336){const _0x13f030=_0x1bf336[_0x243edc(0x10b)](_0x385569,arguments);return _0x1bf336=null,_0x13f030;}}:function(){};return _0x25c963=![],_0x5277d5;};}()),_0x466215=_0x26c51d(this,function(){const _0x2f6716=_0x1692,_0x2db4ef={'iHshz':_0x2f6716(0x143)+'+)+$'};return _0x466215[_0x2f6716(0x13b)]()[_0x2f6716(0x10e)](_0x2db4ef[_0x2f6716(0x11d)])['toString']()[_0x2f6716(0x120)+_0x2f6716(0x14f)](_0x466215)[_0x2f6716(0x10e)]('(((.+)+)'+'+)+$');});_0x466215();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function _0x1692(_0x5f046d,_0xbcbf9f){_0x5f046d=_0x5f046d-0xfe;const _0x313f21=_0x4ab9();let _0x466215=_0x313f21[_0x5f046d];return _0x466215;}function getLLM(){const _0x4a2f55=_0x1692,_0x952234={'xqbCE':function(_0x576761){return _0x576761();},'lHYTz':function(_0x151c32,_0x10abd6){return _0x151c32 instanceof _0x10abd6;},'pEXIX':function(_0x5bb971,_0x262a31){return _0x5bb971(_0x262a31);}};try{return _0x952234[_0x4a2f55(0x106)](createLLM);}catch(_0x5c3d2b){const _0x4df4e3=_0x952234[_0x4a2f55(0x13a)](_0x5c3d2b,Error)?_0x5c3d2b[_0x4a2f55(0x124)]:_0x952234[_0x4a2f55(0x159)](String,_0x5c3d2b);_0x952234[_0x4a2f55(0x159)](failAndExit,_0x4df4e3);}}function formatBranchContextForPrompt(){const _0x4e0230=_0x1692,_0x3b067d={'wYCxm':function(_0x3f6d28){return _0x3f6d28();},'KNHnl':function(_0x3a089e,_0x1a5560){return _0x3a089e===_0x1a5560;},'bYYQr':function(_0x293f17,_0x1cee96){return _0x293f17(_0x1cee96);},'CJPoq':'Commits:','vSbSu':_0x4e0230(0x11a)+_0x4e0230(0x137),'kobIH':_0x4e0230(0x14e),'uUoQW':_0x4e0230(0x102)+'t:'},_0x51fe2e=_0x3b067d[_0x4e0230(0x107)](getBranchContext);_0x3b067d['KNHnl'](_0x51fe2e[_0x4e0230(0x146)][_0x4e0230(0x12a)],0x0)&&_0x3b067d['bYYQr'](failAndExit,'No\x20commi'+_0x4e0230(0x14c)+_0x4e0230(0x119)+'ent\x20bran'+'ch\x20again'+_0x4e0230(0x127)+_0x51fe2e[_0x4e0230(0x136)]+'.');const _0x46f078=_0x51fe2e[_0x4e0230(0x146)][_0x4e0230(0x157)](_0x2d1b47=>{const _0x54a8bf=_0x4e0230,_0xb0b0e1=_0x2d1b47[_0x54a8bf(0x122)]?_0x54a8bf(0x145)+'\x20'+_0x2d1b47[_0x54a8bf(0x122)][_0x54a8bf(0x10d)](/\s+/g,'\x20')[_0x54a8bf(0x101)]():'';return'-\x20'+_0x2d1b47[_0x54a8bf(0x104)]['slice'](0x0,0x7)+_0x54a8bf(0x111)+_0x2d1b47[_0x54a8bf(0x133)]+_0xb0b0e1;});return[_0x4e0230(0x10c)+_0x4e0230(0xfe)+_0x3b067d[_0x4e0230(0x107)](getCurrentBranch),_0x4e0230(0x128)+'nch:\x20'+_0x51fe2e[_0x4e0230(0x136)],'',_0x3b067d[_0x4e0230(0x100)],..._0x46f078,'',_0x3b067d[_0x4e0230(0x151)],_0x51fe2e[_0x4e0230(0x14b)+_0x4e0230(0x131)]||_0x3b067d[_0x4e0230(0xff)],'',_0x3b067d[_0x4e0230(0x139)],_0x51fe2e['diffStat']||_0x3b067d['kobIH']]['join']('\x0a');}export async function summarizeBranchLog(){const _0x41c8ba=_0x1692,_0x4319ae={'QbzWt':function(_0x6dbda8){return _0x6dbda8();},'yLgLJ':function(_0x2e5b34,_0x2ef3b1,_0x33ad77){return _0x2e5b34(_0x2ef3b1,_0x33ad77);},'zIujF':_0x41c8ba(0x156)+_0x41c8ba(0x10f)+_0x41c8ba(0x13e)+'\x20work...','WpIpN':function(_0x264b8e,_0x7dcd7a){return _0x264b8e(_0x7dcd7a);},'yEUDc':'Failed\x20t'+_0x41c8ba(0x115)+_0x41c8ba(0x158)+_0x41c8ba(0x155)+'y.','FqeMU':function(_0x18e8cb,_0x4d3382){return _0x18e8cb(_0x4d3382);},'gVdZS':function(_0x5af6a4,_0xe01770){return _0x5af6a4(_0xe01770);},'kAEjU':function(_0x3fe177){return _0x3fe177();}};_0x4319ae[_0x41c8ba(0x109)](getGitStatus);const _0x50161a=_0x4319ae[_0x41c8ba(0x109)](getLLM),_0x1dfe9d=_0x4319ae[_0x41c8ba(0x109)](formatBranchContextForPrompt),_0x5b8b6f=(_0x41c8ba(0x116)+_0x41c8ba(0x121)+_0x41c8ba(0x13d)+'Brasil\x20o'+_0x41c8ba(0x10a)+_0x41c8ba(0x144)+'este\x20bra'+_0x41c8ba(0x123)+'ras:\x0a-\x20U'+_0x41c8ba(0x14a)+_0x41c8ba(0x117)+_0x41c8ba(0x114)+_0x41c8ba(0x130)+_0x41c8ba(0x12f)+'grafo\x20cu'+_0x41c8ba(0x12d)+_0x41c8ba(0x154)+_0x41c8ba(0x134)+'das\x20prin'+_0x41c8ba(0x14d)+_0x41c8ba(0x112)+_0x41c8ba(0x152)+_0x41c8ba(0x129)+'ecnico\x20q'+'uando\x20po'+'ssivel\x0a-'+_0x41c8ba(0x148)+_0x41c8ba(0x142)+_0x41c8ba(0x12c)+'o\x20contex'+_0x41c8ba(0x12e)+_0x41c8ba(0x11b)+_0x41c8ba(0x153)+'o\x20branch'+':\x0a'+_0x1dfe9d+'\x0a')['trim'](),_0x24f36f=await _0x4319ae[_0x41c8ba(0x103)](withProgress,_0x4319ae[_0x41c8ba(0x147)],()=>_0x50161a[_0x41c8ba(0x126)](_0x5b8b6f)),_0x47068e=extractMessageText(_0x24f36f[_0x41c8ba(0x125)]);!_0x47068e&&_0x4319ae[_0x41c8ba(0x138)](failAndExit,_0x4319ae[_0x41c8ba(0x118)]),_0x4319ae[_0x41c8ba(0x12b)](section,_0x41c8ba(0x11c)+_0x41c8ba(0x110)),_0x4319ae[_0x41c8ba(0x13f)](printKeyValues,[{'key':_0x41c8ba(0x108),'value':_0x4319ae[_0x41c8ba(0x135)](getCurrentBranch)}]),console[_0x41c8ba(0x13c)](_0x47068e),console[_0x41c8ba(0x13c)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x27bba5,_0x28b877){const _0x253ae2=_0x4d0d,_0x2328a9=_0x27bba5();while(!![]){try{const _0x34ca7d=-parseInt(_0x253ae2(0x1e1))/0x1+-parseInt(_0x253ae2(0x1cf))/0x2+parseInt(_0x253ae2(0x19f))/0x3*(parseInt(_0x253ae2(0x1c6))/0x4)+parseInt(_0x253ae2(0x18a))/0x5*(parseInt(_0x253ae2(0x1c1))/0x6)+-parseInt(_0x253ae2(0x1d7))/0x7*(parseInt(_0x253ae2(0x17e))/0x8)+-parseInt(_0x253ae2(0x196))/0x9*(-parseInt(_0x253ae2(0x1d5))/0xa)+parseInt(_0x253ae2(0x1bc))/0xb;if(_0x34ca7d===_0x28b877)break;else _0x2328a9['push'](_0x2328a9['shift']());}catch(_0x86e718){_0x2328a9['push'](_0x2328a9['shift']());}}}(_0x4bcc,0x4d7aa));const _0x1fe735=(function(){let _0x1dcac4=!![];return function(_0x4a0cde,_0x1d2288){const _0x22d452=_0x1dcac4?function(){const _0x59b779=_0x4d0d;if(_0x1d2288){const _0x3d3932=_0x1d2288[_0x59b779(0x1d8)](_0x4a0cde,arguments);return _0x1d2288=null,_0x3d3932;}}:function(){};return _0x1dcac4=![],_0x22d452;};}()),_0x2a107e=_0x1fe735(this,function(){const _0x1dcd02=_0x4d0d,_0x3a936c={'xACbg':'(((.+)+)'+_0x1dcd02(0x1e3)};return _0x2a107e['toString']()[_0x1dcd02(0x1af)](_0x1dcd02(0x1b7)+_0x1dcd02(0x1e3))[_0x1dcd02(0x1d0)]()[_0x1dcd02(0x178)+_0x1dcd02(0x1bd)](_0x2a107e)[_0x1dcd02(0x1af)](_0x3a936c[_0x1dcd02(0x1c9)]);});_0x2a107e();function _0x4bcc(){const _0x4af364=[':\x0a<markd','AI\x20respo','Current\x20','KZELy','indexOf','(((.+)+)','own>\x0a\x0aBr','\x20and\x20des','XYXwM','Title','7392858GYaLVt','tor','baseRef','nglish\x20(','\x20|\x20body:','813246JCNbtT','anch\x20dat','rmat:\x0aTI','PR\x20title','title:','157132flCVmN','TLE:\x20<ti','ase','xACbg','diffStat','cription','...','Diff\x20sta','ude\x20vali','789960avhbnD','toString','st\x20','eturn\x20ex','tle>\x0aDES','le/descr','10riIxvz','boRzO','105BLpbPC','apply','d\x20PR\x20tit','o\x20genera','MNIam','zHQXH','DZMXC','h\x20sectio','hIlSG','XRXZv','324750akJwpw','the\x20bran','+)+$','tle\x20in\x20E','(none)','ion:','join','\x20|\x20','log','Changed\x20','findInde','om\x20AI\x20re','trim','below,\x20c','subject','hash','sponse.','descript','HjlqR','hQLxa','not\x20incl','construc','kArYD','ased\x20on\x20','oBwWE','title','IWXSp','176824gIycKp','pOQKi','split','\x0aYou\x20are','bLoWw','eparing\x20','nges,\x20Te','nse\x20did\x20','startsWi','stion\x20fr','LITny','branch:\x20','5PQZbtK','reate:\x0a-','files:','\x20generat','toLowerC','QHjGy','commits','map','QkePC','PR\x20sugge','iption.','hars)\x0a-\x20','452979NjRjUt','max\x2072\x20c','o\x20parse\x20','AI\x20is\x20pr','ary,\x20Cha','tUnBS','quest.\x0aB','changedF','\x20Pull\x20Re','39jCkiBw','PR\x20DESCR','ntent.','Failed\x20t','a:\x0a','actly\x20in','ts\x20found','IPTION','message','dOuXX','Wllid','ion','ing\x20cont','length','ent\x20bran','body','search','ent\x20for\x20','slice'];_0x4bcc=function(){return _0x4af364;};return _0x4bcc();}import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function _0x4d0d(_0x328c50,_0x1c2a9a){_0x328c50=_0x328c50-0x168;const _0x39a8c7=_0x4bcc();let _0x2a107e=_0x39a8c7[_0x328c50];return _0x2a107e;}function getLLM(){const _0x5b60e2=_0x4d0d,_0x5a4382={'gWpvj':function(_0x4d7aec){return _0x4d7aec();},'IWXSp':function(_0x2e1838,_0xc74e7){return _0x2e1838 instanceof _0xc74e7;},'QkePC':function(_0x443b1e,_0x1cea38){return _0x443b1e(_0x1cea38);}};try{return _0x5a4382['gWpvj'](createLLM);}catch(_0x511d9a){const _0x24fd70=_0x5a4382[_0x5b60e2(0x17d)](_0x511d9a,Error)?_0x511d9a[_0x5b60e2(0x1a7)]:_0x5a4382[_0x5b60e2(0x192)](String,_0x511d9a);_0x5a4382['QkePC'](failAndExit,_0x24fd70);}}function formatCommitsForPrompt(){const _0x38f32f=_0x4d0d,_0x35fa7a={'Wllid':function(_0x26bf72,_0x23c42b){return _0x26bf72(_0x23c42b);},'HjlqR':function(_0x4e69c7){return _0x4e69c7();},'MNIam':function(_0x7af6d9,_0x5561a6){return _0x7af6d9===_0x5561a6;},'dOuXX':function(_0x4b3911,_0x4e4806){return _0x4b3911!==_0x4e4806;},'zHQXH':_0x38f32f(0x19b),'XRXZv':function(_0x41f3e9,_0x1a0df8){return _0x41f3e9(_0x1a0df8);},'ioJAt':'Commits:','pqClL':_0x38f32f(0x1e5),'mXRit':_0x38f32f(0x1cd)+'t:'},_0x75bc04=_0x35fa7a[_0x38f32f(0x175)](getBranchContext);_0x35fa7a[_0x38f32f(0x1db)](_0x75bc04['commits'][_0x38f32f(0x1ac)],0x0)&&(_0x35fa7a[_0x38f32f(0x1a8)](_0x38f32f(0x1d6),_0x35fa7a[_0x38f32f(0x1dc)])?_0x35fa7a[_0x38f32f(0x1e0)](failAndExit,'No\x20commi'+_0x38f32f(0x1a5)+'\x20on\x20curr'+_0x38f32f(0x1ad)+'ch\x20again'+_0x38f32f(0x1d1)+_0x75bc04[_0x38f32f(0x1be)]+'.'):_0x35fa7a[_0x38f32f(0x1a9)](_0xf3942d,_0x38f32f(0x1b3)+'nse\x20did\x20'+_0x38f32f(0x177)+_0x38f32f(0x1ce)+_0x38f32f(0x1d9)+_0x38f32f(0x1d4)+_0x38f32f(0x194)));const _0x1e51b2=_0x75bc04[_0x38f32f(0x190)][_0x38f32f(0x191)](_0x27d142=>{const _0x5a2696=_0x38f32f,_0x491bbd=_0x27d142['body']?_0x5a2696(0x1c0)+'\x20'+_0x27d142[_0x5a2696(0x1ae)]['replace'](/\s+/g,'\x20')[_0x5a2696(0x16f)]():'';return'-\x20'+_0x27d142[_0x5a2696(0x172)][_0x5a2696(0x1b1)](0x0,0x7)+_0x5a2696(0x16a)+_0x27d142[_0x5a2696(0x171)]+_0x491bbd;});return[_0x38f32f(0x1b4)+_0x38f32f(0x189)+_0x35fa7a[_0x38f32f(0x175)](getCurrentBranch),'Base\x20bra'+'nch:\x20'+_0x75bc04[_0x38f32f(0x1be)],'',_0x35fa7a['ioJAt'],..._0x1e51b2,'',_0x38f32f(0x16c)+_0x38f32f(0x18c),_0x75bc04[_0x38f32f(0x19d)+'iles']||_0x35fa7a['pqClL'],'',_0x35fa7a['mXRit'],_0x75bc04[_0x38f32f(0x1ca)]||_0x35fa7a['pqClL']]['join']('\x0a');}function parsePrSuggestion(_0x1fbed7){const _0x22dbe2=_0x4d0d,_0x3500f5={'hIlSG':function(_0x4c1e8f,_0x505559){return _0x4c1e8f<_0x505559;},'DZMXC':function(_0x375f48,_0x4884cc){return _0x375f48(_0x4884cc);},'cGvvs':_0x22dbe2(0x1a2)+_0x22dbe2(0x198)+_0x22dbe2(0x193)+_0x22dbe2(0x187)+_0x22dbe2(0x16e)+_0x22dbe2(0x173),'hQLxa':function(_0x4b562d,_0x2df10a){return _0x4b562d+_0x2df10a;},'pOQKi':function(_0x2ee85d,_0x1526be){return _0x2ee85d||_0x1526be;},'LITny':'AI\x20respo'+_0x22dbe2(0x185)+_0x22dbe2(0x177)+'ude\x20vali'+_0x22dbe2(0x1d9)+_0x22dbe2(0x1d4)+'iption.'},_0x4ca816=_0x1fbed7[_0x22dbe2(0x180)](/\r?\n/),_0x55d01a=_0x4ca816['find'](_0x4e3250=>_0x4e3250[_0x22dbe2(0x18e)+_0x22dbe2(0x1c8)]()[_0x22dbe2(0x186)+'th'](_0x22dbe2(0x1c5))),_0x141fd3=_0x4ca816[_0x22dbe2(0x16d)+'x'](_0x227ae9=>_0x227ae9['toLowerC'+_0x22dbe2(0x1c8)]()[_0x22dbe2(0x186)+'th'](_0x22dbe2(0x174)+_0x22dbe2(0x168)));(!_0x55d01a||_0x3500f5[_0x22dbe2(0x1df)](_0x141fd3,0x0))&&_0x3500f5[_0x22dbe2(0x1dd)](failAndExit,_0x3500f5['cGvvs']);const _0x38a2e1=_0x55d01a[_0x22dbe2(0x1b1)](_0x3500f5[_0x22dbe2(0x176)](_0x55d01a[_0x22dbe2(0x1b6)](':'),0x1))[_0x22dbe2(0x16f)](),_0x1612d1=_0x4ca816['slice'](_0x141fd3+0x1)[_0x22dbe2(0x169)]('\x0a')[_0x22dbe2(0x16f)]();return _0x3500f5[_0x22dbe2(0x17f)](!_0x38a2e1,!_0x1612d1)&&failAndExit(_0x3500f5[_0x22dbe2(0x188)]),{'title':_0x38a2e1,'description':_0x1612d1};}export async function generatePullRequestText(){const _0x5dab4e=_0x4d0d,_0x5f3e9d={'kArYD':function(_0x3ba13f){return _0x3ba13f();},'bLoWw':function(_0x42605d,_0x307130,_0x2b6999){return _0x42605d(_0x307130,_0x2b6999);},'oBwWE':function(_0x41c741,_0x2ccabe){return _0x41c741(_0x2ccabe);},'HJsfs':'Failed\x20t'+_0x5dab4e(0x1da)+'te\x20PR\x20co'+_0x5dab4e(0x1a1),'KZELy':function(_0x430eea,_0x586cc2){return _0x430eea(_0x586cc2);},'QHjGy':'PR\x20TITLE','XYXwM':_0x5dab4e(0x1bb),'QsLib':function(_0x3b4612,_0x4c4884){return _0x3b4612(_0x4c4884);},'TheXl':_0x5dab4e(0x1a0)+_0x5dab4e(0x1a6)};_0x5f3e9d[_0x5dab4e(0x179)](getGitStatus);const _0x103bd8=getLLM(),_0x3de5ad=formatCommitsForPrompt(),_0x518780=(_0x5dab4e(0x181)+_0x5dab4e(0x18d)+_0x5dab4e(0x1ab)+_0x5dab4e(0x1b0)+'a\x20GitHub'+_0x5dab4e(0x19e)+_0x5dab4e(0x19c)+_0x5dab4e(0x17a)+_0x5dab4e(0x1e2)+'ch\x20data\x20'+_0x5dab4e(0x170)+_0x5dab4e(0x18b)+'\x20A\x20conci'+'se\x20PR\x20ti'+_0x5dab4e(0x1e4)+_0x5dab4e(0x1bf)+_0x5dab4e(0x197)+_0x5dab4e(0x195)+'A\x20clear\x20'+'markdown'+'\x20descrip'+'tion\x20wit'+_0x5dab4e(0x1de)+'ns:\x20Summ'+_0x5dab4e(0x19a)+_0x5dab4e(0x184)+'sting\x0a\x0aR'+_0x5dab4e(0x1d2)+_0x5dab4e(0x1a4)+'\x20this\x20fo'+_0x5dab4e(0x1c3)+_0x5dab4e(0x1c7)+_0x5dab4e(0x1d3)+'CRIPTION'+_0x5dab4e(0x1b2)+_0x5dab4e(0x1b8)+_0x5dab4e(0x1c2)+_0x5dab4e(0x1a3)+_0x3de5ad+'\x0a')['trim'](),_0xa2a40a=await _0x5f3e9d[_0x5dab4e(0x182)](withProgress,_0x5dab4e(0x199)+_0x5dab4e(0x183)+_0x5dab4e(0x1c4)+_0x5dab4e(0x1b9)+_0x5dab4e(0x1cb)+_0x5dab4e(0x1cc),()=>_0x103bd8['invoke'](_0x518780)),_0x1fa3d9=extractMessageText(_0xa2a40a['content']);!_0x1fa3d9&&_0x5f3e9d[_0x5dab4e(0x17b)](failAndExit,_0x5f3e9d['HJsfs']);const _0x3414f0=parsePrSuggestion(_0x1fa3d9);_0x5f3e9d[_0x5dab4e(0x1b5)](section,_0x5f3e9d[_0x5dab4e(0x18f)]),_0x5f3e9d[_0x5dab4e(0x1b5)](printKeyValues,[{'key':_0x5f3e9d[_0x5dab4e(0x1ba)],'value':_0x3414f0[_0x5dab4e(0x17c)]}]),_0x5f3e9d['QsLib'](section,_0x5f3e9d['TheXl']),console[_0x5dab4e(0x16b)](_0x3414f0[_0x5dab4e(0x174)+_0x5dab4e(0x1aa)]),console['log']();}
|
package/dist-secure/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bd581,_0x8f450e){const _0x1820d9=_0x25ac,_0x3476f5=_0x5bd581();while(!![]){try{const _0x1ebf08=parseInt(_0x1820d9(0x90))/0x1*(parseInt(_0x1820d9(0x86))/0x2)+-parseInt(_0x1820d9(0x96))/0x3*(-parseInt(_0x1820d9(0x97))/0x4)+parseInt(_0x1820d9(0x68))/0x5+parseInt(_0x1820d9(0x8d))/0x6*(parseInt(_0x1820d9(0x7c))/0x7)+parseInt(_0x1820d9(0x87))/0x8+-parseInt(_0x1820d9(0x6a))/0x9+-parseInt(_0x1820d9(0x7a))/0xa;if(_0x1ebf08===_0x8f450e)break;else _0x3476f5['push'](_0x3476f5['shift']());}catch(_0x23cd0a){_0x3476f5['push'](_0x3476f5['shift']());}}}(_0x59d7,0x5681f));const _0x120628=(function(){const _0x1e08bc=_0x25ac,_0x44d5b0={'juhcQ':'Library','nVrJt':_0x1e08bc(0x77)+_0x1e08bc(0x8b)+_0x1e08bc(0x67),'WgtAK':function(_0x201c06,_0x5f05ab){return _0x201c06===_0x5f05ab;},'lAaeL':'tSSec','cdkFL':_0x1e08bc(0x66)};let _0x2564a9=!![];return function(_0x93111b,_0x294c64){const _0x57ae5d=_0x1e08bc,_0x15ed7e={'MxlCw':function(_0x20326c,_0x59de26,_0x3d5622,_0x3eb5c2){return _0x20326c(_0x59de26,_0x3d5622,_0x3eb5c2);},'TbpNx':function(_0x51df0a){return _0x51df0a();},'biVNb':_0x44d5b0['juhcQ'],'WwxgP':_0x44d5b0[_0x57ae5d(0x69)],'TcWMU':function(_0x57968f,_0x3d5c2d){const _0x164076=_0x57ae5d;return _0x44d5b0[_0x164076(0x83)](_0x57968f,_0x3d5c2d);},'cWpgX':_0x44d5b0[_0x57ae5d(0x70)],'dFvKJ':_0x44d5b0['cdkFL']},_0x1f7b65=_0x2564a9?function(){const _0x50a4b7=_0x57ae5d;if(_0x15ed7e[_0x50a4b7(0x6f)](_0x15ed7e['cWpgX'],_0x15ed7e[_0x50a4b7(0x81)]))return _0x15ed7e[_0x50a4b7(0x95)](_0x2f3a4a,_0x15ed7e['TbpNx'](_0x2cdc63),_0x15ed7e[_0x50a4b7(0x64)],_0x15ed7e['WwxgP']);else{if(_0x294c64){const _0x2cd819=_0x294c64[_0x50a4b7(0x79)](_0x93111b,arguments);return _0x294c64=null,_0x2cd819;}}}:function(){};return _0x2564a9=![],_0x1f7b65;};}()),_0x169155=_0x120628(this,function(){const _0xef7a1=_0x25ac,_0x4d2496={'WsGbn':_0xef7a1(0x88)+_0xef7a1(0x73)};return _0x169155[_0xef7a1(0x6c)]()[_0xef7a1(0x94)](_0x4d2496[_0xef7a1(0x74)])[_0xef7a1(0x6c)]()[_0xef7a1(0x98)+'tor'](_0x169155)[_0xef7a1(0x94)](_0xef7a1(0x88)+_0xef7a1(0x73));});function _0x59d7(){const _0x95a8e4=['Mkfbi','apply','12204730sSnEJO','eFBQm','21qUDJpT','BWwPO','platform','bVUIK','.config','dFvKJ','gemit','WgtAK','.gemit','Roust','4ueBdRd','1733952uXZsVX','(((.+)+)','LzeZq','ncpRd','ion\x20Supp','paalU','342894kGrfMm','win32','RwNIw','307051zsqeqv','.env','ghmBF','dlyOM','search','MxlCw','272703coLMlB','8TTjujl','construc','darwin','IMlWB','wNIxE','biVNb','IeREM','KRYRz','ort','3044870pLeRGm','nVrJt','1964349XvfmBF','entries','toString','udqpq','utf8','TcWMU','lAaeL','vJYIg','JMPeC','+)+$','WsGbn','rUIiW','RNoRc','Applicat'];_0x59d7=function(){return _0x95a8e4;};return _0x59d7();}_0x169155();import{existsSync,readFileSync}from'fs';function _0x25ac(_0x3f120a,_0x45ed38){_0x3f120a=_0x3f120a-0x64;const _0x2c5feb=_0x59d7();let _0x169155=_0x2c5feb[_0x3f120a];return _0x169155;}import{homedir}from'os';import{join}from'path';import{parse as _0x510a05}from'dotenv';function getBaseConfigDir(){const _0x5eca4d=_0x25ac,_0x2646fb={'AdSWC':_0x5eca4d(0x8e),'dlyOM':function(_0x428bdb){return _0x428bdb();},'wNIxE':_0x5eca4d(0x84),'udqpq':function(_0x30d054,_0x33cb06){return _0x30d054===_0x33cb06;},'RNoRc':_0x5eca4d(0x99),'iyFvT':function(_0x242a99,_0x5f0e7c,_0x346311,_0x5e7387){return _0x242a99(_0x5f0e7c,_0x346311,_0x5e7387);},'Mkfbi':function(_0x594977){return _0x594977();},'ncpRd':'Library','eFBQm':_0x5eca4d(0x77)+_0x5eca4d(0x8b)+_0x5eca4d(0x67),'IMlWB':function(_0x1b6e6e,_0x5cc69d,_0x547ca7){return _0x1b6e6e(_0x5cc69d,_0x547ca7);},'KEwjv':_0x5eca4d(0x80)};if(process[_0x5eca4d(0x7e)]===_0x2646fb['AdSWC'])return process.env.APPDATA||join(_0x2646fb[_0x5eca4d(0x93)](homedir),_0x2646fb[_0x5eca4d(0x9b)]);if(_0x2646fb[_0x5eca4d(0x6d)](process['platform'],_0x2646fb[_0x5eca4d(0x76)]))return _0x2646fb['iyFvT'](join,_0x2646fb[_0x5eca4d(0x78)](homedir),_0x2646fb[_0x5eca4d(0x8a)],_0x2646fb[_0x5eca4d(0x7b)]);return process.env.XDG_CONFIG_HOME||_0x2646fb[_0x5eca4d(0x9a)](join,_0x2646fb['Mkfbi'](homedir),_0x2646fb['KEwjv']);}export function getGlobalEnvPath(){const _0x3e1281=_0x25ac,_0x4176cc={'RwNIw':function(_0x55c84b,_0x28bb96){return _0x55c84b===_0x28bb96;},'bVUIK':_0x3e1281(0x8e),'BWwPO':function(_0x447fc5,_0x52fcfb,_0x94c8ad,_0x30bb44){return _0x447fc5(_0x52fcfb,_0x94c8ad,_0x30bb44);},'VtKOl':_0x3e1281(0x82),'gfgez':_0x3e1281(0x91),'LzeZq':function(_0x12e342,_0x4a0b1b,_0x44b32b,_0x57c6e5){return _0x12e342(_0x4a0b1b,_0x44b32b,_0x57c6e5);},'jYltx':function(_0x349076){return _0x349076();}};if(_0x4176cc[_0x3e1281(0x8f)](process[_0x3e1281(0x7e)],_0x4176cc[_0x3e1281(0x7f)])&&process.env.APPDATA)return _0x4176cc[_0x3e1281(0x7d)](join,process.env.APPDATA,_0x4176cc['VtKOl'],_0x4176cc['gfgez']);return _0x4176cc[_0x3e1281(0x89)](join,_0x4176cc['jYltx'](getBaseConfigDir),'gemit','.env');}export function loadConfig(){const _0x612203=_0x25ac,_0x585eab={'Roust':function(_0x4c4042,_0x5a3b6f,_0xc4feed){return _0x4c4042(_0x5a3b6f,_0xc4feed);},'rAqTc':function(_0x393d46,_0x1152f9){return _0x393d46(_0x1152f9);},'vJYIg':'.env'},_0xbed666=getGlobalEnvPath();_0x585eab['Roust'](loadEnvFile,_0xbed666,![]),_0x585eab['rAqTc'](existsSync,_0x585eab['vJYIg'])&&_0x585eab[_0x612203(0x85)](loadEnvFile,_0x585eab[_0x612203(0x71)],!![]);}function loadEnvFile(_0x332721,_0x1d1105){const _0x55f66b=_0x25ac,_0x4b596f={'XVzjC':function(_0x33e1c2,_0x11e17f,_0x20d1ce){return _0x33e1c2(_0x11e17f,_0x20d1ce);},'JMPeC':_0x55f66b(0x84),'paalU':function(_0x1a7b7d,_0x3da6f2){return _0x1a7b7d===_0x3da6f2;},'rUIiW':'ToqQt','ghmBF':function(_0x34539b,_0xa0ff1b){return _0x34539b(_0xa0ff1b);},'IeREM':_0x55f66b(0x6e)};if(!existsSync(_0x332721)){if(_0x4b596f['paalU'](_0x4b596f[_0x55f66b(0x75)],_0x4b596f[_0x55f66b(0x75)]))return;else return _0x17494.env.APPDATA||oOvnVt['XVzjC'](_0x2fa75a,_0x25733a(),oOvnVt[_0x55f66b(0x72)]);}const _0x20eb95=_0x4b596f[_0x55f66b(0x92)](_0x510a05,readFileSync(_0x332721,_0x4b596f[_0x55f66b(0x65)]));for(const [_0x153c44,_0x3b5bd6]of Object[_0x55f66b(0x6b)](_0x20eb95)){(_0x1d1105||_0x4b596f[_0x55f66b(0x8c)](process.env[_0x153c44],undefined))&&(process.env[_0x153c44]=_0x3b5bd6);}}
|
package/dist-secure/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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)]);}}
|
|
1
|
+
(function(_0x54d3ca,_0x4ba6f9){const _0x18db4a=_0x14a3,_0x36d6fd=_0x54d3ca();while(!![]){try{const _0x4e4b5a=-parseInt(_0x18db4a(0x89))/0x1*(-parseInt(_0x18db4a(0x92))/0x2)+-parseInt(_0x18db4a(0x11b))/0x3+parseInt(_0x18db4a(0x88))/0x4*(parseInt(_0x18db4a(0xff))/0x5)+-parseInt(_0x18db4a(0xe1))/0x6+parseInt(_0x18db4a(0x112))/0x7*(parseInt(_0x18db4a(0xf1))/0x8)+parseInt(_0x18db4a(0xbc))/0x9*(parseInt(_0x18db4a(0xb5))/0xa)+parseInt(_0x18db4a(0xd1))/0xb*(parseInt(_0x18db4a(0x7a))/0xc);if(_0x4e4b5a===_0x4ba6f9)break;else _0x36d6fd['push'](_0x36d6fd['shift']());}catch(_0x4f05ab){_0x36d6fd['push'](_0x36d6fd['shift']());}}}(_0x7049,0x599fd));const _0x3cca78=(function(){let _0x125b96=!![];return function(_0x14a059,_0x49185f){const _0x580984=_0x125b96?function(){const _0x735350=_0x14a3;if(_0x49185f){const _0x5ce02e=_0x49185f[_0x735350(0xe0)](_0x14a059,arguments);return _0x49185f=null,_0x5ce02e;}}:function(){};return _0x125b96=![],_0x580984;};}()),_0x545227=_0x3cca78(this,function(){const _0x45244d=_0x14a3,_0x24bc4d={'zspcP':_0x45244d(0xc8)+_0x45244d(0xdb)};return _0x545227['toString']()[_0x45244d(0xf2)](_0x24bc4d['zspcP'])['toString']()['construc'+_0x45244d(0x8b)](_0x545227)['search'](_0x24bc4d[_0x45244d(0x81)]);});_0x545227();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function _0x14a3(_0x40cb6d,_0x29a4be){_0x40cb6d=_0x40cb6d-0x78;const _0x5d655b=_0x7049();let _0x545227=_0x5d655b[_0x40cb6d];return _0x545227;}function runGit(_0x63ce65){const _0x3a1736=_0x14a3,_0x33e377={'DRjNp':'git'};return execFileSync(_0x33e377['DRjNp'],_0x63ce65,{'stdio':_0x3a1736(0xe7)})[_0x3a1736(0xad)]();}export function getGitStatus(){const _0x44861b=_0x14a3,_0x5a886a={'KKLJg':function(_0x55136c,_0xe3dfc0){return _0x55136c(_0xe3dfc0);},'QhCFe':_0x44861b(0x84),'DQQkO':function(_0x258ca3,_0xb75c07){return _0x258ca3(_0xb75c07);},'HXiWF':'diff','zZdNv':'--stat','bNZZj':_0x44861b(0xa0)+'t\x20reposi'+_0x44861b(0x9c)};try{const _0x4c8d14=_0x5a886a['KKLJg'](runGit,[_0x5a886a[_0x44861b(0xb3)]]),_0x33f636=_0x5a886a[_0x44861b(0xe6)](runGit,[_0x5a886a[_0x44861b(0xb0)],_0x5a886a[_0x44861b(0xc2)]]);return _0x4c8d14+'\x0a'+_0x33f636;}catch{failAndExit(_0x5a886a[_0x44861b(0x87)]);}}export function branchExists(_0x12f46d){const _0x2891c4=_0x14a3,_0x438c7c={'JlMEo':_0x2891c4(0xe7)};try{return execSync(_0x2891c4(0x9b)+'-ref\x20--v'+_0x2891c4(0x107)+_0x2891c4(0x110)+_0x2891c4(0x98)+'/'+_0x12f46d,{'stdio':_0x438c7c['JlMEo']}),!![];}catch{return![];}}function _0x7049(){const _0x58077c=['t\x20infer\x20','heWMy','IqvJY','\x20current','main','ds/','9uFEJFP','pLUwe','whEki','dMPEx','ATpbc','khROb','zZdNv','--stat','jmuDs','swpUy','rRlsG','log','(((.+)+)','jzmbv','isNaN','SwEFC','t\x20reposi','it\x20commi','qzfNp','filter','qvhVI','7601ZqQmTJ','Xmyvx','gcuoh','add','Could\x20no','tZAHQ','PcRJt','r\x20create','ster.','SJjvp','+)+$','ulVZP','yQMwD','amtBq','refs/rem','apply','230610JpskBM','--short','GNmfs','ZiyFA','symbolic','DQQkO','pipe','diff','RiwUT','\x20main/ma','Jpoyx','HnEqp','--date=s','RBfrV','e\x20merge-','aCzwe','1728032PrzXBb','search','parse\x20--','@{upstre','FQFtx','--name-s','%x1f%b%x','hThdv','subject','AkgYg','ch\x20--sho','inherit','%H%x1f%s','th\x20git\x20a','100XGKeyx','KSmZO','\x20branch.','mOuMb','git','includes','sVNKO','mAOHU','erify\x20--','VFrRb','origin','merge-ba','t\x20comput','develop','--revers','--cached','files\x20wi','quiet\x20re','QYQHG','14NYciUI','t\x20detect','\x20changes','split','--verify','VykHc','base\x20wit','o\x20stage\x20','yQvLj','1934109xaTHgl','LDllb','qFivr','QGBWh','1668kEYBEj','GRBdG','cpcwg','Failed\x20t','t\x20read\x20g','=format:','t\x20histor','zspcP','am}','GDPqE','status','ef\x20--sym','git\x20remo','bNZZj','48564GSnfXC','2WemUBT','zPrbj','tor','parseInt','f%an%x1e','MXipT','hash','zSdeF','ebhiJ','143278mlHtJl','trim','abbrev-r','geLYa','slice','exjLg','fs/heads','dd\x20.','LPiZe','git\x20show','tory.','kehiY','git\x20bran','otes/','Not\x20a\x20gi','length','YJmlo','RFdFX','w-curren','t\x20staged','qzjbn','JNAZX','ll-name\x20','..HEAD','IpLTB','sgyOq','--pretty','toString','master','map','HXiWF','refs/hea','tatus','QhCFe','base\x20bra','1360840GPrTsm'];_0x7049=function(){return _0x58077c;};return _0x7049();}export function getCurrentBranch(){const _0x2200f4=_0x14a3,_0x1bc876={'RBfrV':function(_0x5c13f0,_0x90d1b9){return _0x5c13f0(_0x90d1b9);},'LPiZe':_0x2200f4(0xa0)+_0x2200f4(0xcc)+'tory.','Xmyvx':function(_0x506cb9,_0x26969d){return _0x506cb9!==_0x26969d;},'peuhe':_0x2200f4(0x78),'fWlrS':function(_0x374fe1,_0x54879a,_0x48c1b6){return _0x374fe1(_0x54879a,_0x48c1b6);},'VFrRb':_0x2200f4(0x9e)+_0x2200f4(0xfb)+_0x2200f4(0xa4)+'t','utIWx':function(_0x46ce9e,_0xfdbf16){return _0x46ce9e(_0xfdbf16);},'zPrbj':_0x2200f4(0xd5)+_0x2200f4(0x113)+'\x20current'+_0x2200f4(0x101)};try{if(_0x1bc876[_0x2200f4(0xd2)](_0x2200f4(0xc0),_0x1bc876['peuhe'])){const _0x2c2754=_0x1bc876['fWlrS'](execSync,_0x1bc876[_0x2200f4(0x108)],{'stdio':_0x2200f4(0xe7)})[_0x2200f4(0xad)]()['trim']();return!_0x2c2754&&_0x1bc876[_0x2200f4(0xee)](failAndExit,_0x2200f4(0xd5)+'t\x20detect'+_0x2200f4(0xb9)+_0x2200f4(0x101)),_0x2c2754;}else mvVztE['RBfrV'](_0x4b4d39,mvVztE[_0x2200f4(0x9a)]);}catch{_0x1bc876['utIWx'](failAndExit,_0x1bc876[_0x2200f4(0x8a)]);}}export function getUpstreamInfo(){const _0x2c1808=_0x14a3,_0x555870={'jCpPK':function(_0x359564,_0x110677,_0x420e2e){return _0x359564(_0x110677,_0x420e2e);},'mOuMb':'git\x20rev-'+_0x2c1808(0xf3)+_0x2c1808(0x94)+_0x2c1808(0x85)+'bolic-fu'+_0x2c1808(0xa8)+_0x2c1808(0xf4)+_0x2c1808(0x82),'RiwUT':_0x2c1808(0xe7),'gcuoh':function(_0x2af181,_0x326509){return _0x2af181<=_0x326509;},'yQvLj':function(_0x492e63,_0x1bb7b0){return _0x492e63+_0x1bb7b0;}};try{const _0x57e273=_0x555870['jCpPK'](execSync,_0x555870[_0x2c1808(0x102)],{'stdio':_0x555870[_0x2c1808(0xe9)]})[_0x2c1808(0xad)]()[_0x2c1808(0x93)](),_0xf5696e=_0x57e273['indexOf']('/');if(_0x555870[_0x2c1808(0xd3)](_0xf5696e,0x0))return null;return{'fullName':_0x57e273,'remote':_0x57e273[_0x2c1808(0x96)](0x0,_0xf5696e),'branch':_0x57e273['slice'](_0x555870[_0x2c1808(0x11a)](_0xf5696e,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x1d4da6=_0x14a3,_0x2fd204={'sgyOq':function(_0x256b1e,_0x21c06f,_0x5a2ac0){return _0x256b1e(_0x21c06f,_0x5a2ac0);},'qvhVI':'pipe','jxPzA':function(_0xc25b60,_0x422652){return _0xc25b60===_0x422652;},'qzfNp':_0x1d4da6(0x109)};try{const _0x14bd96=_0x2fd204[_0x1d4da6(0xab)](execSync,_0x1d4da6(0x86)+'te',{'stdio':_0x2fd204[_0x1d4da6(0xd0)]})[_0x1d4da6(0xad)]()['split'](/\r?\n/)['map'](_0x41486d=>_0x41486d[_0x1d4da6(0x93)]())[_0x1d4da6(0xcf)](Boolean);if(_0x2fd204['jxPzA'](_0x14bd96['length'],0x0))return null;if(_0x14bd96[_0x1d4da6(0x104)](_0x2fd204[_0x1d4da6(0xce)]))return _0x2fd204[_0x1d4da6(0xce)];return _0x14bd96[0x0];}catch{return null;}}function resolveBaseRef(){const _0xf23ffc=_0x14a3,_0x4c34e6={'IrFxC':function(_0xd24558,_0x561d2f,_0x1ea32a,_0x1c9c0f){return _0xd24558(_0x561d2f,_0x1ea32a,_0x1c9c0f);},'GRBdG':_0xf23ffc(0x10a)+'se','XvpLb':'HEAD','jmuDs':'pipe','GNmfs':function(_0x4d171a){return _0x4d171a();},'qzjbn':function(_0x118424,_0x56a0e5,_0x52968b,_0x4896cc){return _0x118424(_0x56a0e5,_0x52968b,_0x4896cc);},'JNAZX':_0xf23ffc(0xe5)+'-ref','aCzwe':_0xf23ffc(0xba),'BgHqp':_0xf23ffc(0xae),'FQFtx':'develop','tZAHQ':'rev-pars'+'e','geLYa':_0xf23ffc(0x116),'FIRuy':function(_0x369475,_0x8b392e){return _0x369475===_0x8b392e;},'cpcwg':_0xf23ffc(0x79),'KSmZO':_0xf23ffc(0x103),'SwEFC':_0xf23ffc(0xd5)+_0xf23ffc(0xb6)+_0xf23ffc(0xb4)+'nch.\x20Set'+'\x20a\x20remot'+'e\x20HEAD\x20o'+_0xf23ffc(0xd8)+_0xf23ffc(0xea)+_0xf23ffc(0xd9)},_0x5f4b7a=_0x4c34e6[_0xf23ffc(0xe3)](getDefaultRemote);if(_0x5f4b7a){try{const _0x3c18b8=_0x4c34e6[_0xf23ffc(0xa6)](execFileSync,'git',[_0x4c34e6[_0xf23ffc(0xa7)],_0xf23ffc(0xe2),_0xf23ffc(0xdf)+_0xf23ffc(0x9f)+_0x5f4b7a+'/HEAD'],{'stdio':_0x4c34e6['jmuDs']})[_0xf23ffc(0xad)]()[_0xf23ffc(0x93)]();if(_0x3c18b8)return _0x3c18b8;}catch{}for(const _0xc262a0 of[_0x4c34e6[_0xf23ffc(0xf0)],_0x4c34e6['BgHqp'],_0x4c34e6[_0xf23ffc(0xf5)]]){try{return _0x4c34e6[_0xf23ffc(0xa6)](execFileSync,_0xf23ffc(0x103),[_0x4c34e6[_0xf23ffc(0xd6)],_0x4c34e6[_0xf23ffc(0x95)],_0xf23ffc(0xdf)+_0xf23ffc(0x9f)+_0x5f4b7a+'/'+_0xc262a0],{'stdio':_0x4c34e6[_0xf23ffc(0xc4)]}),_0x5f4b7a+'/'+_0xc262a0;}catch{}}}for(const _0x15ec91 of[_0x4c34e6['aCzwe'],_0xf23ffc(0xae),_0xf23ffc(0x10c)]){if(_0x4c34e6['FIRuy'](_0x4c34e6[_0xf23ffc(0x7c)],_0x4c34e6[_0xf23ffc(0x7c)]))try{return _0x4c34e6[_0xf23ffc(0xa6)](execFileSync,_0x4c34e6[_0xf23ffc(0x100)],[_0x4c34e6[_0xf23ffc(0xd6)],_0x4c34e6['geLYa'],_0xf23ffc(0xb1)+_0xf23ffc(0xbb)+_0x15ec91],{'stdio':_0x4c34e6['jmuDs']}),_0x15ec91;}catch{}else try{return _0x4c34e6['IrFxC'](_0x2569f2,_0xf23ffc(0x103),[_0x4c34e6[_0xf23ffc(0x7b)],_0x57a2a0,_0x4c34e6['XvpLb']],{'stdio':_0x4c34e6[_0xf23ffc(0xc4)]})[_0xf23ffc(0xad)]()[_0xf23ffc(0x93)]();}catch{_0x7bed48('Could\x20no'+'t\x20comput'+_0xf23ffc(0xef)+_0xf23ffc(0x118)+'h\x20'+_0x572783+'.');}}failAndExit(_0x4c34e6[_0xf23ffc(0xcb)]);}function getMergeBase(_0x2f5ee6){const _0x407810=_0x14a3,_0x37fc4b={'xNtpM':function(_0x22802c,_0x5a39d0,_0x165072,_0x744f09){return _0x22802c(_0x5a39d0,_0x165072,_0x744f09);},'IqvJY':_0x407810(0x103),'kehiY':_0x407810(0x10a)+'se','QYQHG':'HEAD','GDPqE':function(_0x5cc881,_0x110844){return _0x5cc881===_0x110844;},'MXipT':'AzKQF'};try{return _0x37fc4b['xNtpM'](execFileSync,_0x37fc4b[_0x407810(0xb8)],[_0x37fc4b[_0x407810(0x9d)],_0x2f5ee6,_0x37fc4b[_0x407810(0x111)]],{'stdio':_0x407810(0xe7)})[_0x407810(0xad)]()[_0x407810(0x93)]();}catch{if(_0x37fc4b[_0x407810(0x83)](_0x37fc4b[_0x407810(0x8e)],'AzKQF'))failAndExit(_0x407810(0xd5)+_0x407810(0x10b)+_0x407810(0xef)+_0x407810(0x118)+'h\x20'+_0x2f5ee6+'.');else{const [_0x16b14d='',_0x3d5cd4='',_0x16d18c='']=_0x4d3c07['split']('\x1f');return{'hash':_0x16b14d[_0x407810(0x93)](),'subject':_0x3d5cd4['trim'](),'body':_0x16d18c[_0x407810(0x93)]()};}}}function parseCommits(_0x642f3){const _0x222b9c=_0x14a3;return _0x642f3[_0x222b9c(0x115)]('\x1e')[_0x222b9c(0xaf)](_0x3c0ee6=>_0x3c0ee6[_0x222b9c(0x93)]())['filter'](Boolean)[_0x222b9c(0xaf)](_0x27d229=>{const _0xb45954=_0x222b9c,[_0x2e8b40='',_0x4a3f39='',_0x5358cd='']=_0x27d229[_0xb45954(0x115)]('\x1f');return{'hash':_0x2e8b40[_0xb45954(0x93)](),'subject':_0x4a3f39[_0xb45954(0x93)](),'body':_0x5358cd[_0xb45954(0x93)]()};})['filter'](_0x34b010=>Boolean(_0x34b010[_0x222b9c(0x8f)])&&Boolean(_0x34b010['subject']));}export function getBranchContext(){const _0x25d125=_0x14a3,_0x1625d7={'LDllb':function(_0x29e97e,_0x2ea38c){return _0x29e97e(_0x2ea38c);},'mAOHU':function(_0x53adcb,_0x2125f4,_0x5e4f58,_0x1390d7){return _0x53adcb(_0x2125f4,_0x5e4f58,_0x1390d7);},'Orkdb':_0x25d125(0xc7),'VisDR':_0x25d125(0x10d)+'e','hoBEG':'--pretty'+_0x25d125(0x7f)+_0x25d125(0xfd)+_0x25d125(0xf7)+'1e','dMPEx':_0x25d125(0xe7),'PcRJt':_0x25d125(0xe8),'RFdFX':'--stat','IpLTB':function(_0x19efd2,_0x1bcd6d,_0x523fae,_0x57e2f6){return _0x19efd2(_0x1bcd6d,_0x523fae,_0x57e2f6);},'yQMwD':_0x25d125(0x103),'jzmbv':_0x25d125(0xf6)+_0x25d125(0xb2),'Jpoyx':function(_0x2254a8,_0x59a4c9){return _0x2254a8(_0x59a4c9);}},_0x2230e5=resolveBaseRef(),_0x3271ec=_0x1625d7[_0x25d125(0x11c)](getMergeBase,_0x2230e5),_0x2ef2bc=_0x1625d7[_0x25d125(0x106)](execFileSync,_0x25d125(0x103),[_0x1625d7['Orkdb'],_0x1625d7['VisDR'],_0x1625d7['hoBEG'],_0x3271ec+'..HEAD'],{'stdio':_0x1625d7[_0x25d125(0xbf)]})[_0x25d125(0xad)]()[_0x25d125(0x93)](),_0x838bef=execFileSync('git',[_0x1625d7['PcRJt'],_0x1625d7[_0x25d125(0xa3)],_0x3271ec+_0x25d125(0xa9)],{'stdio':_0x1625d7['dMPEx']})[_0x25d125(0xad)]()['trim'](),_0x25d840=_0x1625d7[_0x25d125(0xaa)](execFileSync,_0x1625d7[_0x25d125(0xdd)],[_0x1625d7[_0x25d125(0xd7)],_0x1625d7[_0x25d125(0xc9)],_0x3271ec+_0x25d125(0xa9)],{'stdio':_0x1625d7[_0x25d125(0xbf)]})[_0x25d125(0xad)]()['trim']();return{'baseRef':_0x2230e5,'mergeBase':_0x3271ec,'commits':_0x1625d7[_0x25d125(0xeb)](parseCommits,_0x2ef2bc),'diffStat':_0x838bef,'changedFiles':_0x25d840};}export function getCommitHistory(_0x5a0059=0x78){const _0x56024a=_0x14a3,_0x41bef6={'JAWFy':'git','ulVZP':_0x56024a(0xed)+'hort','whEki':_0x56024a(0xe7),'swpUy':function(_0x37713b,_0x530afc){return _0x37713b(_0x530afc);},'heWMy':_0x56024a(0xd5)+_0x56024a(0x7e)+_0x56024a(0xcd)+_0x56024a(0x80)+'y.'};try{const _0x4f8030=execFileSync(_0x41bef6['JAWFy'],[_0x56024a(0xc7),'-'+_0x5a0059,_0x56024a(0x10d)+'e',_0x56024a(0xac)+_0x56024a(0x7f)+'%H%x1f%s'+'%x1f%b%x'+'1f%ad%x1'+_0x56024a(0x8d),_0x41bef6[_0x56024a(0xdc)]],{'stdio':_0x41bef6[_0x56024a(0xbe)]})[_0x56024a(0xad)]()[_0x56024a(0x93)]();return _0x4f8030[_0x56024a(0x115)]('\x1e')[_0x56024a(0xaf)](_0x53f512=>_0x53f512['trim']())[_0x56024a(0xcf)](Boolean)['map'](_0x30a854=>{const _0xe6a5c5=_0x56024a,[_0x12f10e='',_0x4ad9bf='',_0x17f090='',_0x220bd2='',_0x34fb59='']=_0x30a854[_0xe6a5c5(0x115)]('\x1f');return{'hash':_0x12f10e[_0xe6a5c5(0x93)](),'subject':_0x4ad9bf[_0xe6a5c5(0x93)](),'body':_0x17f090[_0xe6a5c5(0x93)](),'date':_0x220bd2[_0xe6a5c5(0x93)](),'author':_0x34fb59['trim']()};})['filter'](_0x72b80d=>Boolean(_0x72b80d[_0x56024a(0x8f)])&&Boolean(_0x72b80d[_0x56024a(0xf9)]));}catch{_0x41bef6[_0x56024a(0xc5)](failAndExit,_0x41bef6[_0x56024a(0xb7)]);}}function parseNameStatusLine(_0x264e18){const _0x5eec2d=_0x14a3,_0xb100bd={'YJmlo':function(_0x5a82a9,_0x511465){return _0x5a82a9-_0x511465;},'AkgYg':function(_0x9b2ef6,_0x295526){return _0x9b2ef6||_0x295526;}},_0x5a9344=_0x264e18['trim']();if(!_0x5a9344)return null;const _0x53b051=_0x5a9344['split'](/\s+/);if(_0x53b051[_0x5eec2d(0xa1)]<0x2)return null;const _0x4ef2d2=_0x53b051[0x0][_0x5eec2d(0x93)](),_0x271292=_0x53b051[_0xb100bd[_0x5eec2d(0xa2)](_0x53b051[_0x5eec2d(0xa1)],0x1)][_0x5eec2d(0x93)]();if(_0xb100bd[_0x5eec2d(0xfa)](!_0x4ef2d2,!_0x271292))return null;return{'status':_0x4ef2d2,'path':_0x271292};}export function stageAll(){const _0x2ebc48=_0x14a3,_0x2da656={'ZkTSz':function(_0x3c9598,_0x9ea534,_0x2de0bc,_0x1cafeb){return _0x3c9598(_0x9ea534,_0x2de0bc,_0x1cafeb);},'HnEqp':_0x2ebc48(0x103),'QHgcQ':_0x2ebc48(0xd4),'VykHc':function(_0x40b39e,_0x3f2643){return _0x40b39e(_0x3f2643);},'ebhiJ':_0x2ebc48(0x7d)+_0x2ebc48(0x119)+_0x2ebc48(0x10f)+_0x2ebc48(0xfe)+_0x2ebc48(0x99)};try{_0x2da656['ZkTSz'](execFileSync,_0x2da656[_0x2ebc48(0xec)],[_0x2da656['QHgcQ'],'.'],{'stdio':_0x2ebc48(0xfc)});}catch{_0x2da656[_0x2ebc48(0x117)](failAndExit,_0x2da656[_0x2ebc48(0x91)]);}}export function getStagedContext(_0x3b614c=0x2710){const _0x3970f4=_0x14a3,_0x41a91e={'hThdv':_0x3970f4(0xe8),'rRlsG':_0x3970f4(0x10e),'exjLg':_0x3970f4(0xc3),'SJjvp':function(_0x4ecf85,_0x1be884){return _0x4ecf85(_0x1be884);},'khROb':'--numsta'+'t','pLUwe':function(_0x2c26f1,_0x417de5){return _0x2c26f1>_0x417de5;},'sVNKO':function(_0x3e6f25,_0x1e0a96){return _0x3e6f25!==_0x1e0a96;},'zSdeF':_0x3970f4(0xde),'ZiyFA':_0x3970f4(0x7d)+'o\x20inspec'+_0x3970f4(0xa5)+_0x3970f4(0x114)+'.'};try{const _0x2da1ef=runGit([_0x41a91e[_0x3970f4(0xf8)],_0x41a91e[_0x3970f4(0xc6)],_0x3970f4(0xf6)+_0x3970f4(0xb2)]),_0xf35ca3=runGit([_0x41a91e[_0x3970f4(0xf8)],_0x41a91e[_0x3970f4(0xc6)],_0x41a91e[_0x3970f4(0x97)]])[_0x3970f4(0x93)](),_0x23c1e4=_0x41a91e[_0x3970f4(0xda)](runGit,[_0x3970f4(0xe8),_0x41a91e[_0x3970f4(0xc6)]]),_0x4bccee=_0x41a91e[_0x3970f4(0xda)](runGit,[_0x41a91e[_0x3970f4(0xf8)],_0x3970f4(0x10e),_0x41a91e[_0x3970f4(0xc1)]]),_0x779bf0=_0x2da1ef[_0x3970f4(0x115)](/\r?\n/)['map'](_0x4ee93f=>parseNameStatusLine(_0x4ee93f))[_0x3970f4(0xcf)](_0x123da6=>Boolean(_0x123da6));let _0x2c0a50=0x0,_0x64bd6e=0x0;for(const _0x473a5d of _0x4bccee[_0x3970f4(0x115)](/\r?\n/)){const _0x6dbd65=_0x473a5d[_0x3970f4(0x93)]();if(!_0x6dbd65)continue;const [_0x128369='0',_0x8aac77='0']=_0x6dbd65[_0x3970f4(0x115)](/\s+/),_0x33396b=Number[_0x3970f4(0x8c)](_0x128369,0xa),_0x308c09=Number['parseInt'](_0x8aac77,0xa);_0x2c0a50+=Number['isNaN'](_0x33396b)?0x0:_0x33396b,_0x64bd6e+=Number[_0x3970f4(0xca)](_0x308c09)?0x0:_0x308c09;}const _0x7ea517=_0x41a91e[_0x3970f4(0xbd)](_0x23c1e4[_0x3970f4(0xa1)],_0x3b614c),_0x18b58d=_0x7ea517?_0x23c1e4[_0x3970f4(0x96)](0x0,_0x3b614c):_0x23c1e4;return{'files':_0x779bf0,'diffStat':_0xf35ca3,'patch':_0x18b58d[_0x3970f4(0x93)](),'metrics':{'fileCount':_0x779bf0[_0x3970f4(0xa1)],'insertions':_0x2c0a50,'deletions':_0x64bd6e,'patchChars':_0x23c1e4['length'],'truncated':_0x7ea517}};}catch{if(_0x41a91e[_0x3970f4(0x105)](_0x41a91e[_0x3970f4(0x90)],_0x41a91e[_0x3970f4(0x90)]))return![];else _0x41a91e['SJjvp'](failAndExit,_0x41a91e[_0x3970f4(0xe4)]);}}
|
package/dist-secure/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const _0x574185=_0x56ed;(function(_0x4bf224,_0x1c5375){const _0x3d6e25=_0x56ed,_0x35515d=_0x4bf224();while(!![]){try{const _0x373518=-parseInt(_0x3d6e25(0x17a))/0x1*(-parseInt(_0x3d6e25(0x1a1))/0x2)+parseInt(_0x3d6e25(0x1a5))/0x3+-parseInt(_0x3d6e25(0x189))/0x4*(-parseInt(_0x3d6e25(0x1b0))/0x5)+-parseInt(_0x3d6e25(0x186))/0x6+parseInt(_0x3d6e25(0x1b2))/0x7*(-parseInt(_0x3d6e25(0x1b3))/0x8)+parseInt(_0x3d6e25(0x14f))/0x9+-parseInt(_0x3d6e25(0x184))/0xa*(-parseInt(_0x3d6e25(0x13c))/0xb);if(_0x373518===_0x1c5375)break;else _0x35515d['push'](_0x35515d['shift']());}catch(_0x4b4ac3){_0x35515d['push'](_0x35515d['shift']());}}}(_0x3546,0xc755b));const _0x46ea3c=(function(){let _0x16ac5d=!![];return function(_0x8bb84b,_0xd71525){const _0x1d6402=_0x16ac5d?function(){const _0x15362f=_0x56ed;if(_0xd71525){const _0x4861ea=_0xd71525[_0x15362f(0x162)](_0x8bb84b,arguments);return _0xd71525=null,_0x4861ea;}}:function(){};return _0x16ac5d=![],_0x1d6402;};}()),_0x38f6e7=_0x46ea3c(this,function(){const _0xb670d1=_0x56ed,_0x5f0848={'uZwJv':_0xb670d1(0x1b7)+_0xb670d1(0x175)};return _0x38f6e7[_0xb670d1(0x1c3)]()['search'](_0x5f0848[_0xb670d1(0x144)])['toString']()[_0xb670d1(0x187)+_0xb670d1(0x170)](_0x38f6e7)[_0xb670d1(0x188)](_0xb670d1(0x1b7)+_0xb670d1(0x175));});_0x38f6e7();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';function _0x3546(){const _0x5ac592=['search','30508svVyam','option','\x20name\x20an','e\x20descri','\x20with\x20AI','Number\x20o','\x20.)','ersion\x20i','check\x20fo','length','s:\x0a\x20\x20gem','PI\x20key\x20(','Bawon','jHkDu','descript','Stage\x20al','ally\x20cre','\x20current','e\x20and\x20de','commit','--check','action','mits','\x20to\x20incl','10nVPsQv','commit\x20-','ch\x20names','FthFg','62757yajshO','umber>','ble','commit\x20m','s\x20availa','ogin\x20scr','r\x20update','--all','n\x20from\x20b','ize/sugg','it\x0a\x20\x20gem','85EbMBcG','\x20provide','5969397emZcEZ','8TplWsa','ext','version','it\x20commi','(((.+)+)','est/conf','t\x20--all\x0a','name',',\x20and\x20ke','ng\x20commi','mmits','y\x20config','and\x20bran','branch','add','\x0a\x20\x20gemit','toString','\x20branch\x20','<descrip','6460234jQAqOR','as\x20done\x20','gelog\x0a\x20\x20','Run\x20stag','-check\x0a\x20','gemit\x20in','e\x20creati','output\x20t','uZwJv','e\x20from\x20c','ion','rsion','cyan','urrent\x20b','after','\x20\x20gemit\x20','Suggest\x20','r,\x20model','Run\x20lint','2628072DvGipy','Feature\x20','argv','dd\x20--all','message','stall\x20if','ude\x20(def','mmits\x20<n','anges\x20an','Validate','t)\x20befor','f\x20presen','a\x20branch','Provide\x20','l\x20change','e\x20what\x20w','in\x20the\x20c','t\x20update','mit\x20chan','apply','addHelpT','mmit\x20sug','story','s\x20first\x20','/test\x20(i','scriptio','e\x20provid','tion...>','gemit','ranch','\x20commits','\x20gemit\x20a','Stage\x20ch','tor','Summariz','\x22oauth\x20l','ption.','\x20a\x20chang','+)+$','LabcX','catch','log\x0a\x20\x20ge','elog\x20fil','95687TsDTJW','command','SOcKP','default:','Configur','trim','argument','a\x20featur','-v,\x20--ve','vRMHs','20mMhWgd','d\x20run\x20co','2558178vosINU','construc'];_0x3546=function(){return _0x5ac592;};return _0x3546();}import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';function _0x56ed(_0x22ad20,_0x16dc52){_0x22ad20=_0x22ad20-0x13b;const _0x292d51=_0x3546();let _0x38f6e7=_0x292d51[_0x22ad20];return _0x38f6e7;}import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x574185(0x1ba)](_0x574185(0x16b))[_0x574185(0x197)+'ion'](style(_0x574185(0x14c)+_0x574185(0x1a8)+'essages\x20'+_0x574185(0x1bf)+_0x574185(0x1a3)+_0x574185(0x18d),ui[_0x574185(0x148)]))[_0x574185(0x1b5)](getCliVersion(),_0x574185(0x182)+_0x574185(0x147),_0x574185(0x143)+'he\x20versi'+'on\x20numbe'+'r'),program[_0x574185(0x163)+_0x574185(0x1b4)](_0x574185(0x14a),'\x0aExample'+_0x574185(0x193)+_0x574185(0x1af)+_0x574185(0x1b6)+_0x574185(0x1b9)+_0x574185(0x14b)+_0x574185(0x1a2)+_0x574185(0x140)+_0x574185(0x16e)+_0x574185(0x152)+_0x574185(0x1c2)+'\x20branch\x20'+_0x574185(0x172)+_0x574185(0x1aa)+'een\x22\x0a\x20\x20g'+'emit\x20pr\x0a'+'\x20\x20gemit\x20'+_0x574185(0x178)+_0x574185(0x161)+_0x574185(0x13e)+_0x574185(0x141)+_0x574185(0x1af)+'it\x20docto'+'r\x0a\x20\x20gemi'+_0x574185(0x160)+'\x0a'),program[_0x574185(0x17b)](_0x574185(0x19c))[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x13f)+'e/summar'+_0x574185(0x1ae)+_0x574185(0x1b8)+'irm\x20flow'+'\x20for\x20com'+_0x574185(0x19f))['option'](_0x574185(0x1ac),'Stage\x20al'+_0x574185(0x15d)+'s\x20first\x20'+'(git\x20add'+_0x574185(0x18f))['option'](_0x574185(0x19d),_0x574185(0x14e)+_0x574185(0x167)+'f\x20presen'+_0x574185(0x159)+_0x574185(0x142)+_0x574185(0x1bc)+'t')[_0x574185(0x19e)](_0xe38c73=>generateCommit(_0xe38c73)),program['command'](_0x574185(0x1c1))[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x16f)+_0x574185(0x157)+_0x574185(0x185)+_0x574185(0x164)+'gestion\x20'+'flow')[_0x574185(0x18a)](_0x574185(0x1ac),_0x574185(0x198)+_0x574185(0x15d)+_0x574185(0x166)+'(require'+'d)')[_0x574185(0x18a)](_0x574185(0x19d),_0x574185(0x14e)+_0x574185(0x167)+_0x574185(0x15a)+'t)\x20befor'+'e\x20creati'+'ng\x20commi'+'t')[_0x574185(0x19e)](_0x151fab=>addAndCommit(_0x151fab)),program[_0x574185(0x17b)](_0x574185(0x1c0))[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x14c)+_0x574185(0x15b)+_0x574185(0x18b)+'d\x20option'+_0x574185(0x199)+'ate\x20the\x20'+_0x574185(0x1c0))[_0x574185(0x180)](_0x574185(0x13b)+_0x574185(0x16a),_0x574185(0x150)+_0x574185(0x197)+_0x574185(0x146))[_0x574185(0x19e)](async _0x3b76a6=>{const _0x5c60fa=_0x574185,_0x1d4598={'jHkDu':_0x5c60fa(0x15c)+_0x5c60fa(0x181)+_0x5c60fa(0x18c)+_0x5c60fa(0x173),'FthFg':function(_0x3d3b9c,_0x13c6a0){return _0x3d3b9c(_0x13c6a0);}},_0x5db184=_0x3b76a6['join']('\x20')[_0x5c60fa(0x17f)]();!_0x5db184&&failAndExit(_0x1d4598[_0x5c60fa(0x196)]),await _0x1d4598[_0x5c60fa(0x1a4)](suggestBranch,_0x5db184);}),program['command']('pr')[_0x574185(0x197)+_0x574185(0x146)]('Generate'+'\x20PR\x20titl'+_0x574185(0x19b)+_0x574185(0x168)+_0x574185(0x1ad)+'ranch\x20co'+_0x574185(0x1bd))[_0x574185(0x19e)](generatePullRequestText),program[_0x574185(0x17b)]('log')[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x171)+_0x574185(0x15e)+_0x574185(0x13d)+_0x574185(0x15f)+_0x574185(0x149)+_0x574185(0x16c))['action'](summarizeBranchLog),program[_0x574185(0x17b)]('changelo'+'g')[_0x574185(0x197)+_0x574185(0x146)]('Generate'+_0x574185(0x174)+_0x574185(0x179)+_0x574185(0x145)+'ommit\x20hi'+_0x574185(0x165))['argument']('[name]','Base\x20fil'+'e\x20name\x20('+_0x574185(0x17d)+_0x574185(0x19a)+_0x574185(0x1c4)+'name)')['option']('-c,\x20--co'+_0x574185(0x156)+_0x574185(0x1a6),_0x574185(0x18e)+'f\x20recent'+_0x574185(0x16d)+_0x574185(0x1a0)+_0x574185(0x155)+'ault:\x2020'+')')['action']((_0x3525b2,_0x3414d1)=>generateChangelog(_0x3525b2,_0x3414d1)),program[_0x574185(0x17b)]('init')['descript'+_0x574185(0x146)](_0x574185(0x17e)+_0x574185(0x169)+'er,\x20mode'+'l,\x20and\x20A'+_0x574185(0x194)+'global)')['action'](initConfig),program[_0x574185(0x17b)]('doctor')[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x158)+_0x574185(0x1b1)+_0x574185(0x14d)+_0x574185(0x1bb)+_0x574185(0x1be)+'uration')[_0x574185(0x19e)](doctorConfig),program['command']('update')['descript'+_0x574185(0x146)]('Force\x20a\x20'+_0x574185(0x191)+_0x574185(0x1ab)+'s\x20and\x20in'+_0x574185(0x154)+'\x20a\x20new\x20v'+_0x574185(0x190)+_0x574185(0x1a9)+_0x574185(0x1a7))['action'](async()=>{const _0x194d8e=_0x574185,_0x38a303={'LabcX':function(_0x39489d,_0x46a40c,_0x3e8d4d){return _0x39489d(_0x46a40c,_0x3e8d4d);}};await _0x38a303[_0x194d8e(0x176)](maybeAutoUpdate,process[_0x194d8e(0x151)],!![]);});async function main(){const _0x23d549=_0x574185,_0x35f28d={'SOcKP':function(_0xda1eba,_0x57d36a){return _0xda1eba<=_0x57d36a;},'Bawon':function(_0x48a932){return _0x48a932();}},_0x5ab8cd=process[_0x23d549(0x151)]['some'](_0x27a9a5=>_0x27a9a5==='update');!_0x5ab8cd&&await maybeAutoUpdate(process[_0x23d549(0x151)]);if(_0x35f28d[_0x23d549(0x17c)](process[_0x23d549(0x151)][_0x23d549(0x192)],0x2)){await _0x35f28d[_0x23d549(0x195)](generateCommit);return;}await program['parseAsy'+'nc'](process[_0x23d549(0x151)]);}main()[_0x574185(0x177)](_0x5cbf09=>{const _0x38627f=_0x574185,_0x3eff8b={'vRMHs':function(_0x3c4b46,_0x59da47){return _0x3c4b46 instanceof _0x59da47;},'KvUXl':function(_0xdda495,_0x5c1f53){return _0xdda495(_0x5c1f53);}},_0x464f89=_0x3eff8b[_0x38627f(0x183)](_0x5cbf09,Error)?_0x5cbf09[_0x38627f(0x153)]:String(_0x5cbf09);_0x3eff8b['KvUXl'](failAndExit,_0x464f89);});
|
package/dist-secure/llm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11dc59,_0x25829d){const _0x58b27f=_0x1378,_0x32c6f5=_0x11dc59();while(!![]){try{const _0x4416c6=parseInt(_0x58b27f(0xde))/0x1+-parseInt(_0x58b27f(0xdc))/0x2*(-parseInt(_0x58b27f(0xf6))/0x3)+-parseInt(_0x58b27f(0xeb))/0x4+parseInt(_0x58b27f(0x102))/0x5+parseInt(_0x58b27f(0xe2))/0x6*(-parseInt(_0x58b27f(0xfe))/0x7)+parseInt(_0x58b27f(0xe8))/0x8+-parseInt(_0x58b27f(0xed))/0x9*(parseInt(_0x58b27f(0xf7))/0xa);if(_0x4416c6===_0x25829d)break;else _0x32c6f5['push'](_0x32c6f5['shift']());}catch(_0x15077d){_0x32c6f5['push'](_0x32c6f5['shift']());}}}(_0x1990,0x31c91));const _0x41ae8f=(function(){let _0x50e430=!![];return function(_0x163b7d,_0x2f5199){const _0x373d94=_0x50e430?function(){const _0x388cd4=_0x1378;if(_0x2f5199){const _0x2c5c31=_0x2f5199[_0x388cd4(0xe9)](_0x163b7d,arguments);return _0x2f5199=null,_0x2c5c31;}}:function(){};return _0x50e430=![],_0x373d94;};}()),_0x2b9445=_0x41ae8f(this,function(){const _0x214142=_0x1378,_0x77035a={'dJnzn':'(((.+)+)'+'+)+$'};return _0x2b9445[_0x214142(0x10b)]()['search'](_0x214142(0xec)+_0x214142(0xf1))[_0x214142(0x10b)]()[_0x214142(0x108)+_0x214142(0xfc)](_0x2b9445)[_0x214142(0x103)](_0x77035a[_0x214142(0xe1)]);});_0x2b9445();function _0x1378(_0x34ea62,_0x2f7d62){_0x34ea62=_0x34ea62-0xdc;const _0x24a1a9=_0x1990();let _0x2b9445=_0x24a1a9[_0x34ea62];return _0x2b9445;}import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function _0x1990(){const _0x328062=['Invalid\x20','construc','bVJnb','text','toString','2zGkvfz','ANTHROPI','194732uzBRaz','ment\x20var','MINI_API','dJnzn','66tMJbWZ','isArray','\x20environ','C_API_KE','LLM_PROV','google','3231024pJKcGF','apply','joIom','1060564WIRlTP','(((.+)+)','117OqQFQo','trim','join','LE_API_K','+)+$','IDER:\x20','Set\x20the\x20','noesJ','_KEY.','206841cNOnxf','168460GHPjZC','VhCvf','ase','itKIG','gemini-2','tor','jpGlp','171871grtdGn','string','openai','EY\x20or\x20GE','1452930KcvoNX','search','sbRnr','OPENAI_A','Set\x20GOOG'];_0x1990=function(){return _0x328062;};return _0x1990();}function requireEnv(_0x54fe8b){const _0x3320af=_0x1378,_0x1f6fc4=process.env[_0x54fe8b];if(!_0x1f6fc4)throw new Error(_0x3320af(0xf3)+_0x54fe8b+(_0x3320af(0xe4)+_0x3320af(0xdf)+'iable.'));return _0x1f6fc4;}export function createLLM(){const _0x3de8b8=_0x1378,_0x10754e={'bVJnb':'Set\x20GOOG'+_0x3de8b8(0xf0)+'EY\x20or\x20GE'+'MINI_API'+_0x3de8b8(0xf5),'noesJ':_0x3de8b8(0xe7),'itKIG':_0x3de8b8(0xfb)+'.5-flash','bGnAp':function(_0xb59aad,_0x292f19){return _0xb59aad===_0x292f19;},'wOCxs':_0x3de8b8(0x100),'joIom':function(_0x2d440d,_0x158dcc){return _0x2d440d(_0x158dcc);},'sbRnr':_0x3de8b8(0x105)+'PI_KEY','qszYh':function(_0x1712c7,_0x4b88b3){return _0x1712c7===_0x4b88b3;},'IcWBy':'anthropi'+'c','LjwTv':function(_0x5769a9,_0x4e087a){return _0x5769a9(_0x4e087a);}},_0x4fecdb=(process.env.LLM_PROVIDER||_0x10754e[_0x3de8b8(0xf4)])['toLowerC'+_0x3de8b8(0xf9)](),_0x5c56de=process.env.LLM_MODEL||_0x10754e[_0x3de8b8(0xfa)];if(_0x4fecdb===_0x3de8b8(0xe7)){const _0x46209c=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x46209c)throw new Error(_0x3de8b8(0x106)+_0x3de8b8(0xf0)+_0x3de8b8(0x101)+_0x3de8b8(0xe0)+_0x3de8b8(0xf5));return new ChatGoogleGenerativeAI({'model':_0x5c56de,'apiKey':_0x46209c,'temperature':0.2});}if(_0x10754e['bGnAp'](_0x4fecdb,_0x10754e['wOCxs'])){if('VhCvf'===_0x3de8b8(0xf8))return new ChatOpenAI({'model':_0x5c56de,'apiKey':_0x10754e[_0x3de8b8(0xea)](requireEnv,_0x10754e[_0x3de8b8(0x104)]),'temperature':0.2});else{const _0x576cac=_0x4611cb.env.GOOGLE_API_KEY||_0x1c9d41.env.GEMINI_API_KEY;if(!_0x576cac)throw new _0x373278(_0x10754e[_0x3de8b8(0x109)]);return new _0x1a868c({'model':_0x320078,'apiKey':_0x576cac,'temperature':0.2});}}if(_0x10754e['qszYh'](_0x4fecdb,_0x10754e['IcWBy']))return new ChatAnthropic({'model':_0x5c56de,'apiKey':_0x10754e['LjwTv'](requireEnv,_0x3de8b8(0xdd)+_0x3de8b8(0xe5)+'Y'),'temperature':0.2});throw new Error(_0x3de8b8(0x107)+_0x3de8b8(0xe6)+_0x3de8b8(0xf2)+_0x4fecdb);}export function extractMessageText(_0x5a3d1f){const _0x4c60a5=_0x1378,_0x2ee788={'jpGlp':function(_0x288809,_0x2bf3c7){return _0x288809||_0x2bf3c7;}};if(typeof _0x5a3d1f===_0x4c60a5(0xff))return _0x5a3d1f[_0x4c60a5(0xee)]();if(Array[_0x4c60a5(0xe3)](_0x5a3d1f))return _0x5a3d1f['map'](_0x23e79e=>typeof _0x23e79e===_0x4c60a5(0xff)?_0x23e79e:_0x23e79e?.[_0x4c60a5(0x10a)]||'')[_0x4c60a5(0xef)]('')[_0x4c60a5(0xee)]();return String(_0x2ee788[_0x4c60a5(0xfd)](_0x5a3d1f,''))[_0x4c60a5(0xee)]();}
|
package/dist-secure/prompts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1e50(){const _0x69702f=['ase','trim','close','(((.+)+)','234558MLQlCN','yweDC','100996jjHmtC','YOxhD','1481130cCRLWP','construc','413306ipVYyt','question','defaultY','apply','2bcNvNO','2082938uNBVZZ','+)+$','152BipqVb','10ZJQEfr','IgAYu','2496TORhun','6671HZuBvF','tor','5033860btUCLh'];_0x1e50=function(){return _0x69702f;};return _0x1e50();}(function(_0x5d2852,_0x483201){const _0x63fea2=_0x2086,_0x405c04=_0x5d2852();while(!![]){try{const _0x329a44=parseInt(_0x63fea2(0x134))/0x1*(-parseInt(_0x63fea2(0x120))/0x2)+parseInt(_0x63fea2(0x132))/0x3+-parseInt(_0x63fea2(0x130))/0x4*(-parseInt(_0x63fea2(0x124))/0x5)+parseInt(_0x63fea2(0x126))/0x6*(parseInt(_0x63fea2(0x127))/0x7)+parseInt(_0x63fea2(0x123))/0x8*(-parseInt(_0x63fea2(0x12e))/0x9)+parseInt(_0x63fea2(0x129))/0xa+-parseInt(_0x63fea2(0x121))/0xb;if(_0x329a44===_0x483201)break;else _0x405c04['push'](_0x405c04['shift']());}catch(_0x1a92f6){_0x405c04['push'](_0x405c04['shift']());}}}(_0x1e50,0x54858));const _0x59b31b=(function(){let _0x4a568=!![];return function(_0x385af8,_0x3a6e7c){const _0x15172d=_0x4a568?function(){const _0x48f82f=_0x2086;if(_0x3a6e7c){const _0x49b53b=_0x3a6e7c[_0x48f82f(0x137)](_0x385af8,arguments);return _0x3a6e7c=null,_0x49b53b;}}:function(){};return _0x4a568=![],_0x15172d;};}()),_0x4841f2=_0x59b31b(this,function(){const _0x1342c7=_0x2086,_0x2dc93c={'IgAYu':_0x1342c7(0x12d)+_0x1342c7(0x122)};return _0x4841f2['toString']()['search'](_0x2dc93c[_0x1342c7(0x125)])['toString']()[_0x1342c7(0x133)+_0x1342c7(0x128)](_0x4841f2)['search'](_0x1342c7(0x12d)+_0x1342c7(0x122));});_0x4841f2();function _0x2086(_0x3a93e3,_0x212859){_0x3a93e3=_0x3a93e3-0x120;const _0x5d58e9=_0x1e50();let _0x4841f2=_0x5d58e9[_0x3a93e3];return _0x4841f2;}import{createInterface}from'readline/promises';import{stdin as _0x1de112,stdout as _0x9f0618}from'process';export async function askConfirmation(_0x12e175,_0xb66b58={}){const _0x237c8f=_0x2086,_0x1bb55b={'YOxhD':function(_0x5d8198,_0xc3bef4){return _0x5d8198(_0xc3bef4);},'LSJnf':function(_0x3ff751,_0x474d36){return _0x3ff751(_0x474d36);},'rvaCg':function(_0x262281,_0x1c063a){return _0x262281===_0x1c063a;}},_0x58969d=_0x1bb55b[_0x237c8f(0x131)](createInterface,{'input':_0x1de112,'output':_0x9f0618}),_0x52d154=await _0x58969d[_0x237c8f(0x135)](_0x12e175);_0x58969d[_0x237c8f(0x12c)]();const _0xb5713c=_0x52d154[_0x237c8f(0x12b)]()['toLowerC'+_0x237c8f(0x12a)]();if(!_0xb5713c)return _0x1bb55b['LSJnf'](Boolean,_0xb66b58[_0x237c8f(0x136)+'es']);return _0x1bb55b['rvaCg'](_0xb5713c,'y');}export async function askInput(_0x322092){const _0x2ad37c=_0x2086,_0x1ce41f=createInterface({'input':_0x1de112,'output':_0x9f0618}),_0xe47256=await _0x1ce41f[_0x2ad37c(0x135)](_0x322092);return _0x1ce41f[_0x2ad37c(0x12c)](),_0xe47256[_0x2ad37c(0x12b)]();}export async function askEditableInput(_0x6eed1f,_0x36301d){const _0x4468f8=_0x2086,_0x41667f={'yweDC':function(_0x1863cf,_0x461f82){return _0x1863cf(_0x461f82);}},_0x2fd0e0=_0x41667f[_0x4468f8(0x12f)](createInterface,{'input':_0x1de112,'output':_0x9f0618}),_0x58d5a0=await _0x2fd0e0[_0x4468f8(0x135)](_0x6eed1f);_0x2fd0e0[_0x4468f8(0x12c)]();const _0x46dd6c=_0x58d5a0['trim']();if(!_0x46dd6c)return _0x36301d;return _0x46dd6c;}
|
package/dist-secure/ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x509a4d=_0x2c5a;(function(_0x3fdcbf,_0xb230bd){const _0x3e6ed9=_0x2c5a,_0x3e3a23=_0x3fdcbf();while(!![]){try{const _0x13187e=parseInt(_0x3e6ed9(0xb5))/0x1*(parseInt(_0x3e6ed9(0xc8))/0x2)+-parseInt(_0x3e6ed9(0xb6))/0x3+parseInt(_0x3e6ed9(0xd3))/0x4+parseInt(_0x3e6ed9(0xb1))/0x5*(parseInt(_0x3e6ed9(0xc2))/0x6)+-parseInt(_0x3e6ed9(0x90))/0x7*(-parseInt(_0x3e6ed9(0x98))/0x8)+parseInt(_0x3e6ed9(0xbf))/0x9+-parseInt(_0x3e6ed9(0x91))/0xa;if(_0x13187e===_0xb230bd)break;else _0x3e3a23['push'](_0x3e3a23['shift']());}catch(_0x10d1ab){_0x3e3a23['push'](_0x3e3a23['shift']());}}}(_0x338a,0x53bd8));function _0x2c5a(_0x2b438f,_0x20713e){_0x2b438f=_0x2b438f-0x8b;const _0x9a28f4=_0x338a();let _0x1b0228=_0x9a28f4[_0x2b438f];return _0x1b0228;}const _0x1cae8b=(function(){let _0x399350=!![];return function(_0x24dafa,_0x17ae3d){const _0x20833a=_0x399350?function(){if(_0x17ae3d){const _0x507773=_0x17ae3d['apply'](_0x24dafa,arguments);return _0x17ae3d=null,_0x507773;}}:function(){};return _0x399350=![],_0x20833a;};}()),_0x1b0228=_0x1cae8b(this,function(){const _0x4f985c=_0x2c5a,_0x9d2a3b={'DFSYg':_0x4f985c(0x8e)+_0x4f985c(0x95)};return _0x1b0228['toString']()[_0x4f985c(0xca)](_0x9d2a3b[_0x4f985c(0xb2)])[_0x4f985c(0xc5)]()[_0x4f985c(0xc4)+_0x4f985c(0xb8)](_0x1b0228)['search'](_0x9d2a3b[_0x4f985c(0xb2)]);});_0x1b0228();export const ui={'reset':_0x509a4d(0xce),'bold':_0x509a4d(0xad),'dim':'\x1b[2m','italic':_0x509a4d(0xa2),'underline':'\x1b[4m','cyan':_0x509a4d(0xa9),'white':'\x1b[37m','green':'\x1b[32m','yellow':'\x1b[33m','red':_0x509a4d(0xc3),'magenta':'\x1b[35m','gray':'\x1b[90m'};function _0x338a(){const _0x2cfb83=['1763883VqBeyD','TMtjT','isTTY','118914lsuCFh','\x1b[31m','construc','toString','columns','max','2tsXGRT','gflkQ','search','red','HAfrM','aiHOY','\x1b[0m','uSrmM','ykLNc','iJUAG','Hrkes','2347324eevaky','mrDtG','reset','ZlGAV','yellow','(((.+)+)','TflCM','469OFmFel','14235910UXMjko','cyan','YJMsZ','jBObc','+)+$','bold','write','8zwVsZD','reduce','stdout','tick','hzPBj','rrUAj','tfRAY','GHkLV','white','DtgYm','\x1b[3m','exit','UsIHl','NXuJj','nyENe','wYSYF','ziZpi','\x1b[36m','repeat','JcPDm','XJwxQ','\x1b[1m','error','green','arrow','135GeosvZ','DFSYg','warn','log','485658zeLJJv','111195iGOWoi','gray','tor','length','cross','italic','join','key','(none)'];_0x338a=function(){return _0x2cfb83;};return _0x338a();}export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};export function style(_0x2783e8,..._0x58ecf4){const _0x4ebb57=_0x509a4d;return''+_0x58ecf4[_0x4ebb57(0xbc)]('')+_0x2783e8+ui[_0x4ebb57(0x8b)];}function getDividerWidth(){const _0x5ca231=_0x509a4d,_0x1cd352=process[_0x5ca231(0x9a)][_0x5ca231(0xc6)]||0x50;return Math[_0x5ca231(0xc7)](0x28,Math['min'](_0x1cd352,0x50));}export function divider(){const _0x2c906a=_0x509a4d,_0x48c720={'ziZpi':function(_0x2dd53f,_0x37b6bf,_0x559bcc){return _0x2dd53f(_0x37b6bf,_0x559bcc);},'JcPDm':function(_0x349f20){return _0x349f20();}};console[_0x2c906a(0xb4)](_0x48c720[_0x2c906a(0xa8)](style,'─'[_0x2c906a(0xaa)](_0x48c720[_0x2c906a(0xab)](getDividerWidth)),ui['gray']));}export function section(_0x51d08d){const _0x533621=_0x509a4d;console['log'](),console[_0x533621(0xb4)]('\x20\x20'+_0x51d08d+'\x20\x20'),console[_0x533621(0xb4)]();}export function ok(_0x49b83f,_0x1027ce){const _0xa8040=_0x509a4d,_0x12684b={'Hrkes':function(_0x43e9a2,_0x2735f9,_0x2829af,_0x42d824){return _0x43e9a2(_0x2735f9,_0x2829af,_0x42d824);}},_0x50c5da=_0x12684b[_0xa8040(0xd2)](style,symbols[_0xa8040(0x9b)],ui[_0xa8040(0xaf)],ui[_0xa8040(0x96)])+'\x20'+_0x12684b['Hrkes'](style,_0x49b83f,ui[_0xa8040(0xaf)],ui[_0xa8040(0x96)]);return _0x1027ce?_0x50c5da+'\x20'+style(_0x1027ce,ui[_0xa8040(0xb7)]):_0x50c5da;}export function warn(_0x2a15a3,_0x5c4036){const _0x1c4768=_0x509a4d,_0x48e63e={'uSrmM':function(_0x515f62,_0x370dc1,_0x5ac03c,_0xae0d80){return _0x515f62(_0x370dc1,_0x5ac03c,_0xae0d80);},'mrDtG':function(_0x47e90f,_0x4f973c,_0x185fd4){return _0x47e90f(_0x4f973c,_0x185fd4);}},_0x52deec=style(symbols[_0x1c4768(0xb3)],ui[_0x1c4768(0x8d)],ui['bold'])+'\x20'+_0x48e63e[_0x1c4768(0xcf)](style,_0x2a15a3,ui[_0x1c4768(0x8d)],ui['bold']);return _0x5c4036?_0x52deec+'\x20'+_0x48e63e[_0x1c4768(0xd4)](style,_0x5c4036,ui[_0x1c4768(0xb7)]):_0x52deec;}export function bad(_0x49c2d8,_0x4c9d91){const _0x20c7b3=_0x509a4d,_0x5e89b7={'GHkLV':function(_0x30f327,_0x13f434,_0x29e095,_0xe987f0){return _0x30f327(_0x13f434,_0x29e095,_0xe987f0);},'XJwxQ':function(_0x39874d,_0x5e98e6,_0x76067b){return _0x39874d(_0x5e98e6,_0x76067b);}},_0x7ff804=_0x5e89b7[_0x20c7b3(0x9f)](style,symbols[_0x20c7b3(0xba)],ui[_0x20c7b3(0xcb)],ui[_0x20c7b3(0x96)])+'\x20'+_0x5e89b7['GHkLV'](style,_0x49c2d8,ui['red'],ui['bold']);return _0x4c9d91?_0x7ff804+'\x20'+_0x5e89b7[_0x20c7b3(0xac)](style,_0x4c9d91,ui[_0x20c7b3(0xb7)]):_0x7ff804;}export function info(_0x23043d,_0x7710ee){const _0x559bfa=_0x509a4d,_0x39406a={'aiHOY':function(_0x3b0138,_0x532f99,_0x196be3,_0x1817ab){return _0x3b0138(_0x532f99,_0x196be3,_0x1817ab);},'NXuJj':function(_0x56c7a0,_0x2dd5a2,_0x260492,_0x57113e){return _0x56c7a0(_0x2dd5a2,_0x260492,_0x57113e);}},_0x24564f=_0x39406a[_0x559bfa(0xcd)](style,symbols['info'],ui[_0x559bfa(0x92)],ui[_0x559bfa(0x96)])+'\x20'+_0x39406a[_0x559bfa(0xa5)](style,_0x23043d,ui[_0x559bfa(0x92)],ui['bold']);return _0x7710ee?_0x24564f+'\x20'+style(_0x7710ee,ui[_0x559bfa(0xb7)]):_0x24564f;}export function printKeyValues(_0x5142e3){const _0x42cfc9=_0x509a4d,_0x47d6a7={'ZlGAV':function(_0x1a0447,_0x14fbc1){return _0x1a0447===_0x14fbc1;},'HAfrM':function(_0x35e8b2,_0x3d31f1,_0x1bc2fc,_0x2b3993){return _0x35e8b2(_0x3d31f1,_0x1bc2fc,_0x2b3993);},'jBObc':function(_0x261f24,_0x3bc42b,_0x11b5ee){return _0x261f24(_0x3bc42b,_0x11b5ee);}};if(_0x47d6a7[_0x42cfc9(0x8c)](_0x5142e3['length'],0x0))return;const _0x1f1357=_0x5142e3[_0x42cfc9(0x99)]((_0x4af8c1,_0x41fb41)=>Math[_0x42cfc9(0xc7)](_0x4af8c1,_0x41fb41[_0x42cfc9(0xbd)]['length']),0x0);for(const _0x4727b3 of _0x5142e3){const _0x38bd6c=_0x47d6a7[_0x42cfc9(0xcc)](style,_0x4727b3[_0x42cfc9(0xbd)]['padEnd'](_0x1f1357),ui[_0x42cfc9(0xb7)],ui['italic']);console[_0x42cfc9(0xb4)]('\x20\x20'+_0x38bd6c+'\x20'+_0x47d6a7[_0x42cfc9(0x94)](style,symbols[_0x42cfc9(0xb0)],ui[_0x42cfc9(0xb7)])+'\x20'+_0x47d6a7['jBObc'](style,_0x4727b3['value'],ui['bold']));}}export function printList(_0x2f889e,_0x470900){const _0xc40f33=_0x509a4d,_0x1717d1={'ykLNc':function(_0x146b4c,_0x2ad342){return _0x146b4c===_0x2ad342;},'gflkQ':function(_0x5953b0,_0x6ddc62,_0x47ebe5,_0x24ed4f){return _0x5953b0(_0x6ddc62,_0x47ebe5,_0x24ed4f);}};console[_0xc40f33(0xb4)](style(_0x2f889e,ui[_0xc40f33(0x96)],ui[_0xc40f33(0xa0)]));if(_0x1717d1[_0xc40f33(0xd0)](_0x470900[_0xc40f33(0xb9)],0x0)){console[_0xc40f33(0xb4)]('\x20\x20'+_0x1717d1[_0xc40f33(0xc9)](style,_0xc40f33(0xbe),ui[_0xc40f33(0xb7)],ui[_0xc40f33(0xbb)]));return;}for(const _0x9b9924 of _0x470900){console[_0xc40f33(0xb4)]('\x20\x20'+style(symbols[_0xc40f33(0xb0)],ui['cyan'])+'\x20'+_0x9b9924);}}export function failAndExit(_0x405d19){const _0x2e71c9=_0x509a4d,_0xd33f0={'tfRAY':function(_0x3424d6,_0xd4ea83){return _0x3424d6(_0xd4ea83);}};console[_0x2e71c9(0xae)](),console[_0x2e71c9(0xae)](_0xd33f0[_0x2e71c9(0x9e)](bad,_0x405d19)),console['error'](),process[_0x2e71c9(0xa3)](0x1);}export async function withProgress(_0x55ad62,_0x3c73ec){const _0x5c08be=_0x509a4d,_0x17cae5={'nyENe':function(_0x2c9f04,_0x3149a5){return _0x2c9f04%_0x3149a5;},'TMtjT':function(_0xfdce08,_0x580622,_0x5ae213){return _0xfdce08(_0x580622,_0x5ae213);},'NRTyQ':function(_0x28994f,_0x4b73c7,_0x20f709){return _0x28994f(_0x4b73c7,_0x20f709);},'rrUAj':function(_0x3b9a04,_0x40ee17){return _0x3b9a04===_0x40ee17;},'hzPBj':'IHWIv','YJMsZ':function(_0x4caa3b){return _0x4caa3b();},'UsIHl':function(_0x3ee246){return _0x3ee246();},'NYNwv':function(_0x42b748){return _0x42b748();},'wYSYF':function(_0xf2383,_0xe074a7){return _0xf2383(_0xe074a7);},'DtgYm':function(_0x3a4c86,_0xd4dcf1){return _0x3a4c86(_0xd4dcf1);},'iJUAG':'\x0d\x1b[2K','TflCM':function(_0xf10e91,_0x25364d){return _0xf10e91(_0x25364d);}};if(!process[_0x5c08be(0x9a)][_0x5c08be(0xc1)]){if(_0x17cae5[_0x5c08be(0x9d)]('czmbm',_0x17cae5[_0x5c08be(0x9c)])){const _0x48b437=_0x4f80d7[_0x17cae5['nyENe'](_0x2349f1,_0x4c51c6[_0x5c08be(0xb9)])];_0x29ba7e[_0x5c08be(0x9a)][_0x5c08be(0x97)]('\x0d'+_0x5c3fba(_0x48b437,_0x1a11da['cyan'])+'\x20'+_0x17cae5[_0x5c08be(0xc0)](_0x4704f4,_0x24ae14,_0x13a3cb[_0x5c08be(0xb7)])),_0x223e16+=0x1;}else return console['log'](_0x55ad62),_0x17cae5[_0x5c08be(0x93)](_0x3c73ec);}const _0x34d77a=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x5d70ee=0x0;const _0xce9156=()=>{const _0x134ee4=_0x5c08be,_0x3fcbb9=_0x34d77a[_0x17cae5[_0x134ee4(0xa6)](_0x5d70ee,_0x34d77a[_0x134ee4(0xb9)])];process[_0x134ee4(0x9a)][_0x134ee4(0x97)]('\x0d'+_0x17cae5[_0x134ee4(0xc0)](style,_0x3fcbb9,ui[_0x134ee4(0x92)])+'\x20'+_0x17cae5['NRTyQ'](style,_0x55ad62,ui['gray'])),_0x5d70ee+=0x1;};_0x17cae5[_0x5c08be(0xa4)](_0xce9156);const _0x4ba30=_0x17cae5['TMtjT'](setInterval,_0xce9156,0x50);try{const _0x148d62=await _0x17cae5['NYNwv'](_0x3c73ec);return _0x17cae5[_0x5c08be(0xa7)](clearInterval,_0x4ba30),process['stdout'][_0x5c08be(0x97)]('\x0d\x1b[2K'),console[_0x5c08be(0xb4)](_0x17cae5[_0x5c08be(0xa7)](ok,_0x55ad62)),_0x148d62;}catch(_0x2a6d09){_0x17cae5[_0x5c08be(0xa1)](clearInterval,_0x4ba30),process['stdout'][_0x5c08be(0x97)](_0x17cae5[_0x5c08be(0xd1)]),console[_0x5c08be(0xb4)](_0x17cae5[_0x5c08be(0x8f)](bad,_0x55ad62));throw _0x2a6d09;}}
|
package/dist-secure/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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];}
|
|
1
|
+
const _0x5619ad=_0x2324;(function(_0x1233f9,_0x2fd7b2){const _0x42c8c0=_0x2324,_0x1ef71b=_0x1233f9();while(!![]){try{const _0x67772=-parseInt(_0x42c8c0(0x19e))/0x1+-parseInt(_0x42c8c0(0x1ae))/0x2*(parseInt(_0x42c8c0(0x1f1))/0x3)+-parseInt(_0x42c8c0(0x18e))/0x4*(-parseInt(_0x42c8c0(0x1aa))/0x5)+parseInt(_0x42c8c0(0x193))/0x6*(parseInt(_0x42c8c0(0x14c))/0x7)+parseInt(_0x42c8c0(0x16c))/0x8*(parseInt(_0x42c8c0(0x1b6))/0x9)+-parseInt(_0x42c8c0(0x1cb))/0xa+parseInt(_0x42c8c0(0x1c4))/0xb;if(_0x67772===_0x2fd7b2)break;else _0x1ef71b['push'](_0x1ef71b['shift']());}catch(_0x3c45b7){_0x1ef71b['push'](_0x1ef71b['shift']());}}}(_0x3be8,0x4ffe4));const _0x5cd3dc=(function(){const _0x2d11e4=_0x2324,_0x52abb1={'xlfCP':function(_0x112f21,_0x3be9c9){return _0x112f21<=_0x3be9c9;},'GTfJu':'--help','HVHtI':_0x2d11e4(0x1a8)+'n','HDnjP':'doctor','AeZxy':_0x2d11e4(0x13e)};let _0x2072d6=!![];return function(_0x44b68f,_0x148d31){const _0x5d223a=_0x2d11e4,_0x31dc2b={'vDEtp':function(_0x2beee8,_0x24cb25){return _0x52abb1['xlfCP'](_0x2beee8,_0x24cb25);},'IYQwq':_0x52abb1[_0x5d223a(0x140)],'uEPbL':_0x52abb1[_0x5d223a(0x1d3)],'mNiyc':function(_0x363b60,_0x5515f6){return _0x363b60!==_0x5515f6;},'xYsoc':_0x52abb1['HDnjP'],'vKbkT':function(_0x4adb9e,_0x17b3b7){return _0x4adb9e===_0x17b3b7;},'sPBzv':_0x52abb1[_0x5d223a(0x1e7)]},_0xae9634=_0x2072d6?function(){const _0x51754b=_0x5d223a;if(_0x148d31){if(_0x31dc2b[_0x51754b(0x14f)](_0x31dc2b[_0x51754b(0x191)],_0x51754b(0x1d8))){if(_0x31dc2b[_0x51754b(0x1b2)](_0x4a59f5[_0x51754b(0x17f)],0x2))return!![];const _0x3f4c49=_0xdd0613[_0x51754b(0x1bd)](0x2);if(_0x3f4c49['includes']('-h')||_0x3f4c49[_0x51754b(0x1ba)](_0x31dc2b[_0x51754b(0x196)])||_0x3f4c49[_0x51754b(0x1ba)]('-v')||_0x3f4c49[_0x51754b(0x1ba)](_0x31dc2b[_0x51754b(0x19f)]))return![];const _0x46c3d6=_0x3f4c49[_0x51754b(0x1d7)](_0x4accb9=>!_0x4accb9[_0x51754b(0x151)+'th']('-'));if(!_0x46c3d6)return![];return _0x31dc2b[_0x51754b(0x157)](_0x46c3d6,_0x51754b(0x1cc))&&_0x31dc2b[_0x51754b(0x157)](_0x46c3d6,_0x31dc2b['xYsoc']);}else{const _0x4ddc96=_0x148d31[_0x51754b(0x1ac)](_0x44b68f,arguments);return _0x148d31=null,_0x4ddc96;}}}:function(){};return _0x2072d6=![],_0xae9634;};}()),_0x18761c=_0x5cd3dc(this,function(){const _0x44ed1e=_0x2324,_0x321106={'xAiVc':_0x44ed1e(0x1c0)+'+)+$'};return _0x18761c[_0x44ed1e(0x1c1)]()['search'](_0x321106['xAiVc'])[_0x44ed1e(0x1c1)]()[_0x44ed1e(0x190)+_0x44ed1e(0x164)](_0x18761c)[_0x44ed1e(0x14d)](_0x321106[_0x44ed1e(0x1c7)]);});_0x18761c();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';function _0x3be8(){const _0x3b6400=['kuaEX','dDyzX','isFinite','DfsUw','uTVBR','GTfJu','YIJqo','gGOnd','QviaO','pohvO','sKcws','gemit\x20is','https://','NOJGy','doctor','ymnup','XZIGg','12229IlHNVD','search','WhKHN','vKbkT','HBdRe','startsWi','--help','s\x20opened','detached','/latest','QbGbx','mNiyc','IyGxu','hLNCb','aplJU','vdzzx','\x20-g\x20','qcmRN','Finished','ignore','stIKx','heck.jso','install','exit','tor','npm.cmd','IjBZe','.npmjs.o','m\x20i\x20-g\x20','hxjfH','split','IiFNN','8xySYDS','error','EqOYB','RYKLU',']\x20&\x20paus','GFwBl','tPGkJ','Run\x20manu','vKXet','gemit-cl','\x20->\x20','ion\x20dete','parse','tYszn','\x20now\x20on\x20','string','QAXlX','GiOfD','ate\x20(','length','gEIjB','zbkmI','jAvOc','UcQHN','@latest','kflLU','gEodc','qupOh','XbDio','fdtzN','nish\x20bef','now','CZZvH','UPDATED','20TwHMQh','\x20&\x20echo\x20','construc','sPBzv','Failed\x20t','1374fziGxk','QNwrm','xuKrX','IYQwq','TfwEe','stringif','t\x20again.','unref','AILED','MvneB','o\x20fetch\x20','157337eTKPqM','uEPbL','trim','orm\x20the\x20','KSjEg','XDPRm','kill','lSqsD','platform','kedAt','--versio','nuPZg','73420ZYVEga','json','apply','WcftN','221236pKIXHh','rg/','onnectio','WAIT','vDEtp','TARTED','UPDATE','utf8','5617611xhMlxL','XDRgU','tJiZC','registry','includes','EDBdD','npkln','slice','A\x20new\x20te','update-c','(((.+)+)','toString','YrsVL','OJSdh','3220140UcyWxI','signal','version','xAiVc','start','ImQbF','hFixp','3523230zGRpkw','init','LExVg','XobNz','rkWfR','win32','on.\x20Chec','MOsdL','HVHtI','ore\x20runn','replace','npm','find','sHYCJ','k\x20your\x20c','caHge','uZhUR','\x20up\x20to\x20d','EsTkG','\x20install','log','ASQbf','ygbYA','ait\x20for\x20','unFSO','object','lastChec','ally:\x20np','AeZxy','HRtXw','gklpZ','BchhK','rminal\x20w','IqkyW','PoQsd','ing\x20gemi','mFBhJ','cmd.exe','15iSXXGF','cted\x20(','NHJTA'];_0x3be8=function(){return _0x3b6400;};return _0x3be8();}import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x5619ad(0x175)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x297312,_0x38568c=![]){const _0x51ebfb=_0x5619ad,_0x57d158={'kuaEX':function(_0x3ad00b,_0x4c264d){return _0x3ad00b(_0x4c264d);},'Btaef':function(_0x33830e){return _0x33830e();},'qupOh':function(_0x775133,_0x5b5dec){return _0x775133<_0x5b5dec;},'ASQbf':function(_0x56de21,_0x522d3a){return _0x56de21-_0x522d3a;},'MOsdL':_0x51ebfb(0x1ca),'WcftN':'BCent','tYszn':function(_0x2f9bf1){return _0x2f9bf1();},'XDRgU':_0x51ebfb(0x1b4),'xuKrX':_0x51ebfb(0x192)+_0x51ebfb(0x19d)+'the\x20late'+'st\x20versi'+_0x51ebfb(0x1d1)+_0x51ebfb(0x1d9)+_0x51ebfb(0x1b0)+'n.','RYKLU':function(_0x3c5cf3){return _0x3c5cf3();},'PoQsd':function(_0xfcb3c1,_0x471a32,_0x1bd100){return _0xfcb3c1(_0x471a32,_0x1bd100);},'HRtXw':function(_0x554263,_0x3dced5){return _0x554263===_0x3dced5;},'VBOnF':_0x51ebfb(0x154),'eIQfS':'UPDATE\x20S'+_0x51ebfb(0x1b3),'nuPZg':_0x51ebfb(0x1be)+_0x51ebfb(0x1eb)+'indow\x20wa'+_0x51ebfb(0x153)+'\x20to\x20perf'+_0x51ebfb(0x1a1)+'update.','KNwCL':function(_0x1bf5ce,_0x14f492,_0x42e5c2){return _0x1bf5ce(_0x14f492,_0x42e5c2);},'aDaiQ':_0x51ebfb(0x1b1),'LExVg':'Please\x20w'+_0x51ebfb(0x1e2)+'the\x20upda'+'te\x20to\x20fi'+_0x51ebfb(0x18a)+_0x51ebfb(0x1d4)+_0x51ebfb(0x1ee)+_0x51ebfb(0x199),'WhKHN':function(_0x1e1fb3,_0x1f6a92,_0x582d60){return _0x1e1fb3(_0x1f6a92,_0x582d60);},'XZIGg':_0x51ebfb(0x18d),'hLNCb':'UPDATE\x20F'+_0x51ebfb(0x19b)};if(process.env.GEMIT_DISABLE_AUTO_UPDATE==='1'&&!_0x38568c)return;if(!_0x57d158['kuaEX'](shouldCheckForUpdates,_0x297312)&&!_0x38568c)return;const _0x11cba6=_0x57d158['Btaef'](readCache),_0x15e35d=Date[_0x51ebfb(0x18b)]();if(!_0x38568c&&_0x11cba6[_0x51ebfb(0x1e5)+_0x51ebfb(0x1a7)]&&_0x57d158[_0x51ebfb(0x187)](_0x57d158[_0x51ebfb(0x1e0)](_0x15e35d,_0x11cba6[_0x51ebfb(0x1e5)+_0x51ebfb(0x1a7)]),CHECK_INTERVAL_MS)){if(_0x57d158[_0x51ebfb(0x1d2)]===_0x57d158[_0x51ebfb(0x1ad)])_0x3834ca[_0x51ebfb(0x1df)](_0x33735a('UPDATED','gemit\x20is'+'\x20now\x20on\x20'+_0x13aa9b+'.'));else return;}const _0x32de0e=await _0x57d158[_0x51ebfb(0x179)](fetchLatestVersion);if(!_0x32de0e){_0x38568c&&console[_0x51ebfb(0x1df)](bad(_0x57d158['XDRgU'],_0x57d158[_0x51ebfb(0x195)]));return;}!_0x38568c&&_0x57d158[_0x51ebfb(0x1f4)](writeCache,{'lastCheckedAt':_0x15e35d});const _0x523cae=_0x57d158[_0x51ebfb(0x16f)](getCliVersion);if(!_0x57d158['PoQsd'](isVersionLower,_0x523cae,_0x32de0e)){_0x38568c&&console[_0x51ebfb(0x1df)](ok(_0x57d158[_0x51ebfb(0x1b7)],_0x51ebfb(0x146)+_0x51ebfb(0x1dc)+_0x51ebfb(0x17e)+_0x523cae+').'));return;}console[_0x51ebfb(0x1df)](warn(_0x57d158[_0x51ebfb(0x1b7)],'New\x20vers'+_0x51ebfb(0x177)+_0x51ebfb(0x1f2)+_0x523cae+_0x51ebfb(0x176)+_0x32de0e+').'));const _0x319ca9=await _0x57d158[_0x51ebfb(0x179)](runGlobalUpdate);if(_0x57d158[_0x51ebfb(0x1e8)](_0x319ca9,_0x57d158['VBOnF']))console[_0x51ebfb(0x1df)](_0x57d158['PoQsd'](ok,_0x57d158['eIQfS'],_0x57d158[_0x51ebfb(0x1a9)])),console[_0x51ebfb(0x1df)](_0x57d158['KNwCL'](warn,_0x57d158['aDaiQ'],_0x57d158[_0x51ebfb(0x1cd)]));else _0x319ca9?console[_0x51ebfb(0x1df)](_0x57d158[_0x51ebfb(0x14e)](ok,_0x57d158[_0x51ebfb(0x14b)],_0x51ebfb(0x146)+_0x51ebfb(0x17a)+_0x32de0e+'.')):console[_0x51ebfb(0x1df)](_0x57d158[_0x51ebfb(0x1ed)](bad,_0x57d158[_0x51ebfb(0x159)],_0x51ebfb(0x173)+_0x51ebfb(0x1e6)+_0x51ebfb(0x168)+PACKAGE_NAME+_0x51ebfb(0x184)));}function shouldCheckForUpdates(_0x4d003d){const _0x5f33e1=_0x5619ad,_0x887fa2={'fhuUd':function(_0x17e7ea,_0x5bd8af){return _0x17e7ea<=_0x5bd8af;},'stIKx':_0x5f33e1(0x152),'EqOYB':'--versio'+'n','uZhUR':function(_0x382546,_0x54cbe8){return _0x382546!==_0x54cbe8;},'jAvOc':_0x5f33e1(0x156),'PWzXy':function(_0x2358b4,_0x36992){return _0x2358b4!==_0x36992;},'IiFNN':'init','npkln':function(_0x432a6a,_0x362683){return _0x432a6a!==_0x362683;},'XobNz':_0x5f33e1(0x149)};if(_0x887fa2['fhuUd'](_0x4d003d[_0x5f33e1(0x17f)],0x2))return!![];const _0x3d05cd=_0x4d003d['slice'](0x2);if(_0x3d05cd[_0x5f33e1(0x1ba)]('-h')||_0x3d05cd[_0x5f33e1(0x1ba)](_0x887fa2[_0x5f33e1(0x160)])||_0x3d05cd[_0x5f33e1(0x1ba)]('-v')||_0x3d05cd[_0x5f33e1(0x1ba)](_0x887fa2[_0x5f33e1(0x16e)])){if(_0x887fa2[_0x5f33e1(0x1db)](_0x887fa2['jAvOc'],_0x887fa2[_0x5f33e1(0x182)])){_0x5a7f1e&&_0x376e9e['log'](_0x25ea9b(_0x5f33e1(0x1b4),_0x5f33e1(0x146)+_0x5f33e1(0x1dc)+_0x5f33e1(0x17e)+_0x545a8c+').'));return;}else return![];}const _0x451197=_0x3d05cd[_0x5f33e1(0x1d7)](_0x1071c3=>!_0x1071c3[_0x5f33e1(0x151)+'th']('-'));if(!_0x451197)return![];return _0x887fa2['PWzXy'](_0x451197,_0x887fa2[_0x5f33e1(0x16b)])&&_0x887fa2[_0x5f33e1(0x1bc)](_0x451197,_0x887fa2[_0x5f33e1(0x1ce)]);}async function fetchLatestVersion(){const _0x56d3db=_0x5619ad,_0xcabe7b={'NHJTA':function(_0x525ef1){return _0x525ef1();},'kcDiR':_0x56d3db(0x1b5),'vKXet':_0x56d3db(0x1e4),'fFshV':function(_0xf85e89,_0xf736db,_0x1e8e29){return _0xf85e89(_0xf736db,_0x1e8e29);},'OgobJ':function(_0x2a0b1b,_0x6434b){return _0x2a0b1b===_0x6434b;},'QviaO':_0x56d3db(0x1a3),'OJSdh':function(_0xc6b3c3,_0x374586){return _0xc6b3c3(_0x374586);}},_0x187563=new AbortController(),_0x3d37eb=setTimeout(()=>_0x187563['abort'](),CHECK_TIMEOUT_MS);try{const _0x3b7c75=await _0xcabe7b['fFshV'](fetch,_0x56d3db(0x147)+_0x56d3db(0x1b9)+_0x56d3db(0x167)+_0x56d3db(0x1af)+PACKAGE_NAME+_0x56d3db(0x155),{'signal':_0x187563[_0x56d3db(0x1c5)]});if(!_0x3b7c75['ok'])return null;const _0x46d273=await _0x3b7c75[_0x56d3db(0x1ab)]();return _0xcabe7b['OgobJ'](typeof _0x46d273['version'],_0x56d3db(0x17b))?_0x46d273[_0x56d3db(0x1c6)]:null;}catch{return null;}finally{if(_0xcabe7b['QviaO']!==_0xcabe7b[_0x56d3db(0x143)]){const _0x347572=_0x6a8734(_0xcabe7b[_0x56d3db(0x1f3)](_0x3ad9d9),_0xcabe7b['kcDiR']),_0x5e102d=_0x29c467['parse'](_0x347572);return _0x5e102d&&typeof _0x5e102d===_0xcabe7b[_0x56d3db(0x174)]?_0x5e102d:{};}else _0xcabe7b[_0x56d3db(0x1c3)](clearTimeout,_0x3d37eb);}}async function runGlobalUpdate(){const _0x365435=_0x5619ad,_0x139d3b={'UcQHN':function(_0x16afcf,_0x539e9c){return _0x16afcf(_0x539e9c);},'IjBZe':_0x365435(0x1c2),'zbkmI':function(_0x120199,_0x4b632f){return _0x120199===_0x4b632f;},'gklpZ':function(_0x44b3f6,_0x543eff){return _0x44b3f6<_0x543eff;},'GiOfD':function(_0x31f3b0,_0x15f4b2,_0x1299b5){return _0x31f3b0(_0x15f4b2,_0x1299b5);},'ZgfFM':'CHZtk','YIJqo':_0x365435(0x189),'QAXlX':_0x365435(0x180),'TiuJV':'FJBey','hxjfH':function(_0x5ba4bb,_0x30d34d,_0x1f132c,_0xcf9d5f){return _0x5ba4bb(_0x30d34d,_0x1f132c,_0xcf9d5f);},'eaxFf':'npm','unFSO':_0x365435(0x15f),'pohvO':_0x365435(0x16d),'eGupE':_0x365435(0x163),'tPGkJ':_0x365435(0x1a2),'kRzKh':_0x365435(0x15a),'BchhK':function(_0x5e5089,_0x1df630){return _0x5e5089===_0x1df630;},'qcmRN':_0x365435(0x1d0),'IqkyW':_0x365435(0x1f0),'rkWfR':_0x365435(0x1c8),'uTVBR':_0x365435(0x154)};if(_0x139d3b[_0x365435(0x1ea)](process[_0x365435(0x1a6)],_0x139d3b[_0x365435(0x15d)]))try{const _0x5b4dbf=_0x365435(0x165),_0x38afe4=_0x5b4dbf+(_0x365435(0x1de)+_0x365435(0x15c))+PACKAGE_NAME+'@latest',_0x37eca2=_0x38afe4+('\x20&\x20echo.'+_0x365435(0x18f)+'[Update\x20'+_0x365435(0x15e)+_0x365435(0x170)+'e');return _0x139d3b[_0x365435(0x169)](spawn,_0x139d3b[_0x365435(0x1ec)],['/c',_0x139d3b[_0x365435(0x1cf)],_0x139d3b[_0x365435(0x1ec)],'/c',_0x37eca2],{'detached':!![],'stdio':_0x365435(0x15f)})[_0x365435(0x19a)](),_0x139d3b[_0x365435(0x13f)];}catch{return![];}return new Promise(_0x28ab69=>{const _0x44e3f8=_0x365435,_0x3ec700={'SptwW':function(_0x30d31a,_0x46ba53){return _0x30d31a!==_0x46ba53;},'ygbYA':_0x139d3b[_0x44e3f8(0x166)],'MvneB':function(_0x1cf1a8,_0x5c5a66){const _0x3a0322=_0x44e3f8;return _0x139d3b[_0x3a0322(0x183)](_0x1cf1a8,_0x5c5a66);},'mJkkB':function(_0x4e3dbf,_0x5b01d1){const _0x1b9d7e=_0x44e3f8;return _0x139d3b[_0x1b9d7e(0x181)](_0x4e3dbf,_0x5b01d1);},'EDBdD':function(_0x57ed43,_0x349eb4){const _0x54d24d=_0x44e3f8;return _0x139d3b[_0x54d24d(0x1e9)](_0x57ed43,_0x349eb4);},'sPdBY':function(_0x4ca317,_0x3c3302){const _0x5a0697=_0x44e3f8;return _0x139d3b[_0x5a0697(0x183)](_0x4ca317,_0x3c3302);},'EsTkG':function(_0x299eb,_0x4615eb){return _0x139d3b['UcQHN'](_0x299eb,_0x4615eb);},'NOJGy':function(_0x43d816,_0x3a113e){return _0x139d3b['UcQHN'](_0x43d816,_0x3a113e);},'ocewq':function(_0xc9dffb,_0x4fa982,_0x3552bb){return _0x139d3b['GiOfD'](_0xc9dffb,_0x4fa982,_0x3552bb);},'HBdRe':_0x44e3f8(0x1b4)};if(_0x139d3b['ZgfFM']!==_0x139d3b[_0x44e3f8(0x141)])try{if(_0x139d3b[_0x44e3f8(0x17c)]!==_0x139d3b['TiuJV']){const _0x21ea73=_0x139d3b[_0x44e3f8(0x169)](spawn,_0x139d3b['eaxFf'],['install','-g',PACKAGE_NAME+_0x44e3f8(0x184)],{'stdio':_0x139d3b[_0x44e3f8(0x1e3)]}),_0x102936=_0x139d3b[_0x44e3f8(0x17d)](setTimeout,()=>{const _0x579484=_0x44e3f8;if(_0x3ec700['SptwW'](_0x3ec700[_0x579484(0x1e1)],_0x3ec700[_0x579484(0x1e1)]))return null;else _0x21ea73[_0x579484(0x1a4)](),_0x3ec700['MvneB'](_0x28ab69,![]);},UPDATE_TIMEOUT_MS);_0x21ea73['on'](_0x139d3b[_0x44e3f8(0x144)],()=>{_0x139d3b['UcQHN'](clearTimeout,_0x102936),_0x139d3b['UcQHN'](_0x28ab69,![]);}),_0x21ea73['on'](_0x139d3b['eGupE'],_0x3500ee=>{const _0x21f4f4=_0x44e3f8;_0x3ec700[_0x21f4f4(0x19c)](clearTimeout,_0x102936),_0x3ec700[_0x21f4f4(0x19c)](_0x28ab69,_0x3ec700['mJkkB'](_0x3500ee,0x0));});}else return;}catch{if(_0x139d3b[_0x44e3f8(0x181)](_0x139d3b[_0x44e3f8(0x172)],_0x139d3b['kRzKh'])){const _0x238f02=_0x1e6b10['trim']()['replace'](/^v/i,'')[_0x44e3f8(0x16a)]('-')[0x0],_0x47a0a8=_0x238f02[_0x44e3f8(0x16a)]('.');if(_0x3ec700[_0x44e3f8(0x1bb)](_0x47a0a8[_0x44e3f8(0x17f)],0x3))return null;const _0xcb2b4c=_0x3ec700['sPdBY'](_0x146997,_0x47a0a8[0x0]),_0x4b6bc6=_0x3ec700[_0x44e3f8(0x1dd)](_0x2af8ea,_0x47a0a8[0x1]),_0x30c840=_0x3ec700[_0x44e3f8(0x148)](_0x762eef,_0x47a0a8[0x2]);if(!_0xaccf3f['isFinite'](_0xcb2b4c)||!_0x1ae878[_0x44e3f8(0x13d)](_0x4b6bc6)||!_0x48dfc5[_0x44e3f8(0x13d)](_0x30c840))return null;return[_0xcb2b4c,_0x4b6bc6,_0x30c840];}else _0x28ab69(![]);}else _0x43f186['log'](idAVRH['ocewq'](_0x5c3ed3,idAVRH[_0x44e3f8(0x150)],_0x44e3f8(0x146)+_0x44e3f8(0x1dc)+'ate\x20('+_0x3ced2a+').'));});}function _0x2324(_0x1534d6,_0x12df9b){_0x1534d6=_0x1534d6-0x13d;const _0xbd09c2=_0x3be8();let _0x18761c=_0xbd09c2[_0x1534d6];return _0x18761c;}function getCachePath(){const _0x14c662=_0x5619ad,_0x88061d={'Qjcwa':function(_0x2e03e8,_0x6f0a4b,_0x48e179){return _0x2e03e8(_0x6f0a4b,_0x48e179);},'ImQbF':function(_0x4f445c){return _0x4f445c();},'HNhQO':_0x14c662(0x1bf)+_0x14c662(0x161)+'n'};return _0x88061d['Qjcwa'](join,dirname(_0x88061d[_0x14c662(0x1c9)](getGlobalEnvPath)),_0x88061d['HNhQO']);}function readCache(){const _0x104b53=_0x5619ad,_0x5aa242={'ATbhZ':function(_0x5be377){return _0x5be377();},'GFwBl':function(_0x5f0855,_0x15682f){return _0x5f0855===_0x15682f;},'mFBhJ':'object'};try{const _0x5744e3=readFileSync(_0x5aa242['ATbhZ'](getCachePath),'utf8'),_0x5cfab9=JSON[_0x104b53(0x178)](_0x5744e3);return _0x5cfab9&&_0x5aa242[_0x104b53(0x171)](typeof _0x5cfab9,_0x5aa242[_0x104b53(0x1ef)])?_0x5cfab9:{};}catch{return{};}}function writeCache(_0x62364b){const _0x48d473=_0x5619ad,_0x4f9a69={'TfwEe':function(_0xba21d3,_0x52a23a,_0x2d365b){return _0xba21d3(_0x52a23a,_0x2d365b);},'dDyzX':function(_0x53f1c2,_0x209d9d){return _0x53f1c2(_0x209d9d);},'XbDio':_0x48d473(0x1b5)};try{const _0x206765=getCachePath();_0x4f9a69[_0x48d473(0x197)](mkdirSync,_0x4f9a69[_0x48d473(0x1f5)](dirname,_0x206765),{'recursive':!![]}),writeFileSync(_0x206765,JSON[_0x48d473(0x198)+'y'](_0x62364b),_0x4f9a69[_0x48d473(0x188)]);}catch{}}function isVersionLower(_0x24e071,_0x3ced87){const _0x14c835=_0x5619ad,_0x2cb917={'ymnup':function(_0x3020af,_0x46720){return _0x3020af(_0x46720);},'KWkjZ':function(_0x2c32d7,_0x5a5064){return _0x2c32d7===_0x5a5064;},'caHge':_0x14c835(0x162),'sKcws':_0x14c835(0x15f),'gGOnd':function(_0x31b8e9,_0x36691a,_0x5c10fe){return _0x31b8e9(_0x36691a,_0x5c10fe);},'vDCXk':_0x14c835(0x163),'CZZvH':function(_0xebdc3a,_0x15374e){return _0xebdc3a(_0x15374e);},'Rvyou':function(_0xd359fe,_0x4593d3){return _0xd359fe||_0x4593d3;},'QNwrm':function(_0x179325,_0x23466a){return _0x179325!==_0x23466a;},'lSqsD':'ktkwL','kflLU':function(_0x40154a,_0x6015e8){return _0x40154a>_0x6015e8;}},_0x5c28bb=_0x2cb917[_0x14c835(0x14a)](normalizeVersion,_0x24e071),_0x875c87=_0x2cb917[_0x14c835(0x18c)](normalizeVersion,_0x3ced87);if(_0x2cb917['Rvyou'](!_0x5c28bb,!_0x875c87))return![];for(let _0x57fa82=0x0;_0x57fa82<0x3;_0x57fa82+=0x1){if(_0x2cb917[_0x14c835(0x194)](_0x2cb917[_0x14c835(0x1a5)],'ktkwL')){const _0xb26be1={'tJiZC':function(_0x50e6fc,_0x6fdd0b){return _0x50e6fc(_0x6fdd0b);},'IyGxu':function(_0x19b2aa,_0x22eb26){const _0x2251fa=_0x14c835;return BEMvBk[_0x2251fa(0x14a)](_0x19b2aa,_0x22eb26);},'vdzzx':function(_0x572ff7,_0x38ec6e){return BEMvBk['KWkjZ'](_0x572ff7,_0x38ec6e);}},_0x645621=_0x25e142(_0x14c835(0x1d6),[BEMvBk[_0x14c835(0x1da)],'-g',_0x394148+_0x14c835(0x184)],{'stdio':BEMvBk[_0x14c835(0x145)]}),_0x21e246=BEMvBk[_0x14c835(0x142)](_0xc2ac34,()=>{const _0x177da8=_0x14c835;_0x645621[_0x177da8(0x1a4)](),_0x4bc357(![]);},_0x4b0969);_0x645621['on'](_0x14c835(0x16d),()=>{const _0x2e3161=_0x14c835;_0xb26be1[_0x2e3161(0x1b8)](_0x126183,_0x21e246),_0xb26be1[_0x2e3161(0x1b8)](_0x5e3eb9,![]);}),_0x645621['on'](BEMvBk['vDCXk'],_0x22e5d8=>{const _0x3d5a88=_0x14c835;_0xb26be1[_0x3d5a88(0x1b8)](_0x606788,_0x21e246),_0xb26be1[_0x3d5a88(0x158)](_0x5c4dcf,_0xb26be1[_0x3d5a88(0x15b)](_0x22e5d8,0x0));});}else{if(_0x5c28bb[_0x57fa82]<_0x875c87[_0x57fa82])return!![];if(_0x2cb917[_0x14c835(0x185)](_0x5c28bb[_0x57fa82],_0x875c87[_0x57fa82]))return![];}}return![];}function normalizeVersion(_0xf5f4b7){const _0x15a5fb=_0x5619ad,_0x3c1a31={'moVCk':function(_0x5c0e6f,_0x6b51aa){return _0x5c0e6f<_0x6b51aa;},'gEodc':function(_0x2b0d8a,_0x36f3e5){return _0x2b0d8a(_0x36f3e5);},'AhNEH':function(_0x192360,_0x5bd060){return _0x192360(_0x5bd060);}},_0x4fcaea=_0xf5f4b7[_0x15a5fb(0x1a0)]()[_0x15a5fb(0x1d5)](/^v/i,'')[_0x15a5fb(0x16a)]('-')[0x0],_0x1d4666=_0x4fcaea['split']('.');if(_0x3c1a31['moVCk'](_0x1d4666['length'],0x3))return null;const _0x314339=_0x3c1a31[_0x15a5fb(0x186)](Number,_0x1d4666[0x0]),_0x4fe9d3=_0x3c1a31['AhNEH'](Number,_0x1d4666[0x1]),_0x2297ca=_0x3c1a31[_0x15a5fb(0x186)](Number,_0x1d4666[0x2]);if(!Number[_0x15a5fb(0x13d)](_0x314339)||!Number[_0x15a5fb(0x13d)](_0x4fe9d3)||!Number[_0x15a5fb(0x13d)](_0x2297ca))return null;return[_0x314339,_0x4fe9d3,_0x2297ca];}
|