@ericknovaes56/gemit-cli 1.1.3 → 1.2.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/README.md +3 -0
- package/dist-secure/cli-version.js +1 -1
- package/dist-secure/commands/branch.js +1 -1
- package/dist-secure/commands/changelog.js +1 -0
- package/dist-secure/commands/commit.js +1 -1
- package/dist-secure/commands/config.js +1 -1
- package/dist-secure/commands/log.js +1 -0
- package/dist-secure/commands/pr.js +1 -0
- 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/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,6 +26,9 @@ gemit init --local
|
|
|
26
26
|
gemit # sugere commit (padrão)
|
|
27
27
|
gemit commit # sugere commit
|
|
28
28
|
gemit branch "texto" # sugere branch
|
|
29
|
+
gemit pr # gera título + descrição de PR
|
|
30
|
+
gemit log # resume o trabalho do branch
|
|
31
|
+
gemit changelog # gera changelog em changelogs/nome-data.md
|
|
29
32
|
gemit doctor # verifica configuração
|
|
30
33
|
gemit -v # versão
|
|
31
34
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa4826d,_0x45848f){const _0x4f6ba9=_0x20a8,_0x4d6eb1=_0xa4826d();while(!![]){try{const _0x1526f4=parseInt(_0x4f6ba9(0x13f))/0x1+-parseInt(_0x4f6ba9(0x150))/0x2*(-parseInt(_0x4f6ba9(0x13c))/0x3)+-parseInt(_0x4f6ba9(0x146))/0x4+-parseInt(_0x4f6ba9(0x143))/0x5+parseInt(_0x4f6ba9(0x155))/0x6*(parseInt(_0x4f6ba9(0x141))/0x7)+parseInt(_0x4f6ba9(0x14a))/0x8*(parseInt(_0x4f6ba9(0x153))/0x9)+-parseInt(_0x4f6ba9(0x147))/0xa;if(_0x1526f4===_0x45848f)break;else _0x4d6eb1['push'](_0x4d6eb1['shift']());}catch(_0x2e4bc5){_0x4d6eb1['push'](_0x4d6eb1['shift']());}}}(_0x2e79,0xe587a));const _0x2d322f=(function(){let _0x2f8244=!![];return function(_0x33f69e,_0xd06214){const _0xa8a497=_0x2f8244?function(){const _0x39a382=_0x20a8;if(_0xd06214){const _0x38be24=_0xd06214[_0x39a382(0x151)](_0x33f69e,arguments);return _0xd06214=null,_0x38be24;}}:function(){};return _0x2f8244=![],_0xa8a497;};}()),_0x32100e=_0x2d322f(this,function(){const _0x2211a7=_0x20a8,_0x1a5c7f={'XfHKQ':_0x2211a7(0x13a)+_0x2211a7(0x157)};return _0x32100e[_0x2211a7(0x149)]()[_0x2211a7(0x142)](_0x1a5c7f[_0x2211a7(0x154)])[_0x2211a7(0x149)]()[_0x2211a7(0x14e)+_0x2211a7(0x14f)](_0x32100e)[_0x2211a7(0x142)](_0x1a5c7f['XfHKQ']);});_0x32100e();import{basename,dirname,join}from'path';import{readFileSync}from'fs';function _0x20a8(_0x3f6d81,_0x354c76){_0x3f6d81=_0x3f6d81-0x139;const _0x366349=_0x2e79();let _0x32100e=_0x366349[_0x3f6d81];return _0x32100e;}function _0x2e79(){const _0x5a42f0=['yBRYt','eGBoL','239848BxktdL','ure','7IsANca','search','2993930xIcYIT','json','cOKWe','2545524UnEBoB','4061130yVxhzQ','utf8','toString','27112WpctKt','GagVc','mqruz','ABwcP','construc','tor','2dFbMZd','apply','0.0.0','1161XLLOBw','XfHKQ','1136004vccvpV','LJdBz','+)+$','package.','(((.+)+)','aCyVr','5145213oHXHOT'];_0x2e79=function(){return _0x5a42f0;};return _0x2e79();}import{fileURLToPath}from'url';export function getCliVersion(){const _0x22ec1e=_0x20a8,_0x89e28a={'GagVc':function(_0x156352,_0x2596a4){return _0x156352(_0x2596a4);},'aCyVr':function(_0x2f5a37,_0x4e9512){return _0x2f5a37(_0x4e9512);},'eGBoL':'dist','IdiWg':function(_0x2d2e3a,_0x411d9a){return _0x2d2e3a===_0x411d9a;},'LJdBz':function(_0x393c2a,_0x511266){return _0x393c2a(_0x511266);},'UxVvC':function(_0x3abd27,_0x588f3a,_0x48105a,_0x32a663){return _0x3abd27(_0x588f3a,_0x48105a,_0x32a663);},'cOKWe':function(_0x5e4405,_0x960302,_0x1cf9a4){return _0x5e4405(_0x960302,_0x1cf9a4);},'ABwcP':_0x22ec1e(0x139)+_0x22ec1e(0x144),'yBRYt':_0x22ec1e(0x148),'mqruz':_0x22ec1e(0x152)};try{const _0x1c1f5f=fileURLToPath(import.meta.url),_0x49b0e9=_0x89e28a[_0x22ec1e(0x14b)](dirname,_0x1c1f5f),_0x26029a=_0x89e28a[_0x22ec1e(0x13b)](basename,_0x49b0e9)===_0x89e28a[_0x22ec1e(0x13e)]||_0x89e28a['IdiWg'](_0x89e28a[_0x22ec1e(0x156)](basename,_0x49b0e9),'dist-sec'+_0x22ec1e(0x140))?_0x89e28a['UxVvC'](join,_0x49b0e9,'..',_0x22ec1e(0x139)+'json'):_0x89e28a[_0x22ec1e(0x145)](join,_0x49b0e9,_0x89e28a[_0x22ec1e(0x14d)]),_0x2f8456=_0x89e28a[_0x22ec1e(0x145)](readFileSync,_0x26029a,_0x89e28a[_0x22ec1e(0x13d)]),_0x33d6ea=JSON['parse'](_0x2f8456);return _0x33d6ea['version']||_0x89e28a[_0x22ec1e(0x14c)];}catch{return _0x89e28a[_0x22ec1e(0x14c)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x112cfa,_0x9f91a){const _0x47b8d6=_0x4d53,_0x2eb0a8=_0x112cfa();while(!![]){try{const _0x56397e=parseInt(_0x47b8d6(0xe1))/0x1+-parseInt(_0x47b8d6(0xfc))/0x2*(-parseInt(_0x47b8d6(0x131))/0x3)+parseInt(_0x47b8d6(0x124))/0x4*(-parseInt(_0x47b8d6(0xfd))/0x5)+-parseInt(_0x47b8d6(0x12b))/0x6+parseInt(_0x47b8d6(0x120))/0x7+parseInt(_0x47b8d6(0xdf))/0x8+-parseInt(_0x47b8d6(0xea))/0x9;if(_0x56397e===_0x9f91a)break;else _0x2eb0a8['push'](_0x2eb0a8['shift']());}catch(_0x4a2467){_0x2eb0a8['push'](_0x2eb0a8['shift']());}}}(_0x1d6a,0x3b19f));const _0x59bf4a=(function(){let _0x3c115e=!![];return function(_0x445676,_0x3b6eeb){const _0x32787e=_0x3c115e?function(){const _0x477ed4=_0x4d53;if(_0x3b6eeb){const _0x235b72=_0x3b6eeb[_0x477ed4(0x121)](_0x445676,arguments);return _0x3b6eeb=null,_0x235b72;}}:function(){};return _0x3c115e=![],_0x32787e;};}()),_0x89ddc8=_0x59bf4a(this,function(){const _0x5f02b6=_0x4d53,_0x1809df={'yqfAx':'(((.+)+)'+_0x5f02b6(0x11a)};return _0x89ddc8[_0x5f02b6(0xf4)]()[_0x5f02b6(0x12c)](_0x5f02b6(0x137)+'+)+$')[_0x5f02b6(0xf4)]()[_0x5f02b6(0xe3)+_0x5f02b6(0x113)](_0x89ddc8)['search'](_0x1809df['yqfAx']);});_0x89ddc8();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,section,style,ui,warn,withProgress}from'../ui.js';function _0x1d6a(){const _0x35d665=['1307466YnoSnC','search','was\x20not\x20','Return\x20O','xists:\x20','EfdEd','76881QkHLBm','ription:','VRjMJ','types:\x20f','case-des','te\x20branc','(((.+)+)','inking\x20a','1874816DVYgid','efactor,','164552GrJZqw','ame\x20in\x20E','construc','normaliz','feature\x20','cription','sRaHW','\x20\x20-\x20Maxi','ranch\x20wi','1902357jCSnfm','\x0a\x20\x20','git\x20bran','UiHys','lRXlC','/n):\x20','inherit','NLY\x20the\x20','h\x20name.','SUGGESTE','toString','nglish\x0a\x0a','o\x20genera','name?\x20(y','feat/','th:\x2050\x20c','sting\x20re','includes','30BnhxwB','1800275dyeHXo','\x20\x20\x20\x20Desc','nrTZe','eHYmi',',\x20chore,','iOWHw','sponse..','es:\x0a\x20\x20\x20\x20','mSRmo','\x0a\x20\x20\x20\x20Gen','ch\x20name\x20','DyaqT','branch\x20n','HVDJf','Allowed\x20','replace','eat,\x20fix','lready\x20e','\x20branch.','for\x20the\x20','CANCELED','slice','tor','invoke','-\x20Format','mHcho','D\x20BRANCH','ase','Create\x20b','+)+$',':\x20<type>','jxLrj','KQTay','\x0a\x20\x20\x20\x20','jWWnR','1736763XEmflQ','apply','dsPmj','/<kebab-','4palxOr','hLtPy','d\x20below.','NFD','mWIPM','\x20docs,\x20r','Failed\x20t'];_0x1d6a=function(){return _0x35d665;};return _0x1d6a();}function _0x4d53(_0x58890b,_0x1a80a2){_0x58890b=_0x58890b-0xde;const _0x5558c0=_0x1d6a();let _0x89ddc8=_0x5558c0[_0x58890b];return _0x89ddc8;}function sanitizeBranchName(_0x403f30){const _0x2af4f2=_0x4d53,_0x56f392={'nrTZe':_0x2af4f2(0x127),'FADTr':function(_0x137707,_0x4a7720){return _0x137707||_0x4a7720;},'otIlo':'feat/upd'+'ate','VRjMJ':function(_0x5840c9,_0x56dcb9){return _0x5840c9===_0x56dcb9;},'yGmrN':_0x2af4f2(0x105),'DyaqT':'XmncY'},_0x33c9eb=_0x403f30[_0x2af4f2(0xe4)+'e'](_0x56f392['nrTZe'])['replace'](/[\u0300-\u036f]/g,'')['toLowerC'+_0x2af4f2(0x118)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x2af4f2(0x10c)](/-{2,}/g,'-')[_0x2af4f2(0x10c)](/\/{2,}/g,'/')[_0x2af4f2(0x10c)](/^-+|-+$/g,'')['replace'](/^\/+|\/+$/g,''),_0x245b6a=_0x33c9eb[_0x2af4f2(0x112)](0x0,0x32)[_0x2af4f2(0x10c)](/\/+$/g,'')[_0x2af4f2(0x10c)](/-+$/g,''),_0x3f08b3=_0x245b6a||_0x56f392['otIlo'];if(!_0x3f08b3[_0x2af4f2(0xfb)]('/')){if(_0x56f392[_0x2af4f2(0x133)](_0x56f392['yGmrN'],_0x56f392[_0x2af4f2(0x108)])){const _0x26bffd=_0x3c801e[_0x2af4f2(0xe4)+'e'](_0x56f392[_0x2af4f2(0xff)])[_0x2af4f2(0x10c)](/[\u0300-\u036f]/g,'')['toLowerC'+_0x2af4f2(0x118)]()[_0x2af4f2(0x10c)](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x2af4f2(0x10c)](/\/{2,}/g,'/')[_0x2af4f2(0x10c)](/^-+|-+$/g,'')[_0x2af4f2(0x10c)](/^\/+|\/+$/g,''),_0x41467a=_0x26bffd[_0x2af4f2(0x112)](0x0,0x32)[_0x2af4f2(0x10c)](/\/+$/g,'')[_0x2af4f2(0x10c)](/-+$/g,''),_0xfe9a71=_0x56f392['FADTr'](_0x41467a,_0x56f392['otIlo']);if(!_0xfe9a71[_0x2af4f2(0xfb)]('/'))return _0x2af4f2(0xf8)+_0xfe9a71;return _0xfe9a71;}else return _0x2af4f2(0xf8)+_0x3f08b3;}return _0x3f08b3;}function getLLM(){const _0x1e4880=_0x4d53,_0x1eb3a5={'dsPmj':function(_0x9f6ff3){return _0x9f6ff3();},'JFLuR':function(_0x5c7cb8,_0x4b2729){return _0x5c7cb8 instanceof _0x4b2729;},'mWIPM':function(_0x24061b,_0x51867c){return _0x24061b(_0x51867c);}};try{return _0x1eb3a5[_0x1e4880(0x122)](createLLM);}catch(_0x58ea16){const _0x717369=_0x1eb3a5['JFLuR'](_0x58ea16,Error)?_0x58ea16['message']:_0x1eb3a5[_0x1e4880(0x128)](String,_0x58ea16);failAndExit(_0x717369);}}export async function suggestBranch(_0x153da8){const _0x16e532=_0x4d53,_0x13c766={'UiHys':function(_0x39a52c){return _0x39a52c();},'iOWHw':'AI\x20is\x20th'+_0x16e532(0xde)+'nd\x20reque'+_0x16e532(0xfa)+_0x16e532(0x103)+'.','lRXlC':function(_0x4d2993,_0x3c5e32){return _0x4d2993(_0x3c5e32);},'eHYmi':function(_0x9e1b7,_0x5a4ce3){return _0x9e1b7(_0x5a4ce3);},'fhlSs':_0x16e532(0x12a)+_0x16e532(0xf6)+_0x16e532(0x136)+_0x16e532(0xf2),'mHcho':function(_0x3ceb78,_0x3023d6){return _0x3ceb78(_0x3023d6);},'jWWnR':function(_0x175b4d,_0x30b3b7){return _0x175b4d(_0x30b3b7);},'hLtPy':_0x16e532(0x119)+_0x16e532(0xe9)+'th\x20this\x20'+_0x16e532(0xf7)+_0x16e532(0xef),'HVDJf':function(_0x2e277c,_0x238bff){return _0x2e277c(_0x238bff);},'jisgs':_0x16e532(0x111),'KQTay':function(_0x4bd166,_0x19e606,_0x56288a,_0x43facc){return _0x4bd166(_0x19e606,_0x56288a,_0x43facc);},'gYdvS':'git','jxLrj':'checkout','sRaHW':_0x16e532(0xf0),'EfdEd':'Failed\x20t'+'o\x20create'+_0x16e532(0x10f)};_0x13c766[_0x16e532(0xed)](getGitStatus);const _0x1a15da=getLLM(),_0x295639=_0x16e532(0x106)+'erate\x20a\x20'+_0x16e532(0xec)+_0x16e532(0x107)+_0x16e532(0x110)+_0x16e532(0xe5)+'describe'+_0x16e532(0x126)+'\x0a\x20\x20\x20\x20Rul'+_0x16e532(0x104)+_0x16e532(0x115)+_0x16e532(0x11b)+_0x16e532(0x123)+_0x16e532(0x135)+_0x16e532(0xe6)+'>\x0a\x20\x20\x20\x20-\x20'+_0x16e532(0x10b)+_0x16e532(0x134)+_0x16e532(0x10d)+_0x16e532(0x101)+_0x16e532(0x129)+_0x16e532(0xe0)+'\x20test\x0a\x20\x20'+_0x16e532(0xe8)+'mum\x20leng'+_0x16e532(0xf9)+'haracter'+'s\x0a\x20\x20\x20\x20-\x20'+_0x16e532(0x12e)+_0x16e532(0xf1)+_0x16e532(0x109)+_0x16e532(0xe2)+_0x16e532(0xf5)+_0x16e532(0xfe)+_0x16e532(0x132)+_0x16e532(0x11e)+_0x153da8+_0x16e532(0xeb),_0x5b4b19=await withProgress(_0x13c766[_0x16e532(0x102)],()=>_0x1a15da[_0x16e532(0x114)](_0x295639)),_0x4e058c=_0x13c766[_0x16e532(0xee)](extractMessageText,_0x5b4b19['content']),_0x49a300=sanitizeBranchName(_0x4e058c);!_0x49a300&&_0x13c766[_0x16e532(0x100)](failAndExit,_0x13c766['fhlSs']);_0x13c766[_0x16e532(0x116)](branchExists,_0x49a300)&&_0x13c766['lRXlC'](failAndExit,'Branch\x20a'+_0x16e532(0x10e)+_0x16e532(0x12f)+_0x49a300);section(_0x16e532(0xf3)+_0x16e532(0x117)),console['log'](style(_0x49a300,ui['bold'])),console['log']();const _0x49aee8=await _0x13c766[_0x16e532(0x11f)](askConfirmation,_0x13c766[_0x16e532(0x125)]);if(!_0x49aee8){console['log'](_0x13c766[_0x16e532(0x10a)](warn,_0x13c766['jisgs'])+('\x20Branch\x20'+_0x16e532(0x12d)+'created.'));return;}try{_0x13c766[_0x16e532(0x11d)](execFileSync,_0x13c766['gYdvS'],[_0x13c766[_0x16e532(0x11c)],'-b',_0x49a300],{'stdio':_0x13c766[_0x16e532(0xe7)]});}catch{failAndExit(_0x13c766[_0x16e532(0x130)]);}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x177e1e,_0x4b5a38){const _0x29ffca=_0x3478,_0x300cc9=_0x177e1e();while(!![]){try{const _0xeee9f4=parseInt(_0x29ffca(0x1f6))/0x1*(-parseInt(_0x29ffca(0x208))/0x2)+parseInt(_0x29ffca(0x20e))/0x3+-parseInt(_0x29ffca(0x1f5))/0x4+-parseInt(_0x29ffca(0x259))/0x5*(parseInt(_0x29ffca(0x214))/0x6)+-parseInt(_0x29ffca(0x240))/0x7*(parseInt(_0x29ffca(0x209))/0x8)+parseInt(_0x29ffca(0x25a))/0x9*(parseInt(_0x29ffca(0x243))/0xa)+parseInt(_0x29ffca(0x20a))/0xb*(parseInt(_0x29ffca(0x229))/0xc);if(_0xeee9f4===_0x4b5a38)break;else _0x300cc9['push'](_0x300cc9['shift']());}catch(_0x5bbc44){_0x300cc9['push'](_0x300cc9['shift']());}}}(_0x1e66,0xcbe41));const _0x2739a8=(function(){let _0x1ddb0e=!![];return function(_0x493206,_0x28521f){const _0x4557f3=_0x1ddb0e?function(){const _0x20f1cb=_0x3478;if(_0x28521f){const _0xa8bae0=_0x28521f[_0x20f1cb(0x1ee)](_0x493206,arguments);return _0x28521f=null,_0xa8bae0;}}:function(){};return _0x1ddb0e=![],_0x4557f3;};}()),_0x5b4238=_0x2739a8(this,function(){const _0x1c3b50=_0x3478,_0x34f6bd={'eDWlO':_0x1c3b50(0x251)+'+)+$'};return _0x5b4238[_0x1c3b50(0x24b)]()['search'](_0x1c3b50(0x251)+_0x1c3b50(0x245))['toString']()[_0x1c3b50(0x24f)+_0x1c3b50(0x20b)](_0x5b4238)[_0x1c3b50(0x217)](_0x34f6bd[_0x1c3b50(0x25d)]);});_0x5b4238();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,section,withProgress}from'../ui.js';function getLLM(){const _0x44e66c=_0x3478,_0x55a65b={'WZoHv':_0x44e66c(0x251)+_0x44e66c(0x245),'hujFs':function(_0xe4f330){return _0xe4f330();},'limBq':function(_0x5562b4,_0x440701){return _0x5562b4===_0x440701;},'AqfKE':_0x44e66c(0x24e),'HWbzK':function(_0x44e03d,_0x16023b){return _0x44e03d instanceof _0x16023b;},'WWHSD':function(_0x2745d9,_0x42a83d){return _0x2745d9(_0x42a83d);}};try{return _0x55a65b[_0x44e66c(0x206)](createLLM);}catch(_0x461262){if(_0x55a65b[_0x44e66c(0x204)](_0x55a65b[_0x44e66c(0x23c)],_0x44e66c(0x24e))){const _0x58dafa=_0x55a65b[_0x44e66c(0x1f8)](_0x461262,Error)?_0x461262[_0x44e66c(0x22a)]:_0x55a65b['WWHSD'](String,_0x461262);_0x55a65b[_0x44e66c(0x23d)](failAndExit,_0x58dafa);}else return _0x4c3b7b['toString']()['search'](EMXwtV[_0x44e66c(0x236)])[_0x44e66c(0x24b)]()['construc'+_0x44e66c(0x20b)](_0x4a7fe2)[_0x44e66c(0x217)](EMXwtV[_0x44e66c(0x236)]);}}function _0x3478(_0x5c3280,_0x31e157){_0x5c3280=_0x5c3280-0x1ee;const _0x430f47=_0x1e66();let _0x5b4238=_0x430f47[_0x5c3280];return _0x5b4238;}function sanitizeName(_0x9000a3){const _0x56dbb8=_0x3478,_0x52510a={'XKXsK':function(_0x24797b,_0x5a1dc4){return _0x24797b||_0x5a1dc4;},'ZhLBD':'changelo'+'g'},_0x5650f2=_0x9000a3['normaliz'+'e'](_0x56dbb8(0x256))[_0x56dbb8(0x1fc)](/[\u0300-\u036f]/g,'')[_0x56dbb8(0x25e)+_0x56dbb8(0x239)]()[_0x56dbb8(0x1fc)](/[^a-z0-9-]+/g,'-')[_0x56dbb8(0x1fc)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return _0x52510a['XKXsK'](_0x5650f2,_0x52510a['ZhLBD']);}function _0x1e66(){const _0x46c2dc=['e)\x0a-\x20Inc','2424GuKiEy','message','invoke','lua\x20uma\x20','rtugues\x20','a\x20curta\x20','\x20|\x20','e\x20commit','toISOStr','ezTPL','ywzaG','hash','o\x20genera','WZoHv','elog\x20con','Regras:\x0a','ase','rvIZa','utf8','AqfKE','WWHSD','xseie','CLGAL','84GWutVD','tors,\x20Do','esumo\x20cu','10bRTWrI','MqVQK','+)+$','FtLff','slice','de\x20hashe','map','tent.','toString','\x20File\x20sa','\x20(Featur','crkiP','construc','l\x0a-\x20Estr','(((.+)+)','LtmLr','changelo','ing','ved:\x20','NFD','te\x20mudan','HTvBm','110985WzctOQ','11125179ckHNrQ','s,\x20Refac','rico\x20de\x20','eDWlO','toLowerC','apply','te\x20chang','No\x20commi','\x20changel','\x20tipo\x20de','Failed\x20t','length','2944468tvLfeP','8BChTBr','do\x20Brasi','HWbzK','\x20mudanca','\x20to\x20gene','AI\x20is\x20ge','replace','\x0aCrie\x20um','kLvsh','coes\x20por','spxdM','rto\x20e\x20se','TED','og...','limBq','HdJHd','hujFs','.md','320160lKDwIM','183232ECcTYE','58399mIHpbx','tor','es,\x20Fixe','trim','3852990EIzyZN','XnLWH','nMqqR','rkdown\x20c','itulo,\x20r','cjjZo','126qFUlmW','log','ts\x20found','search','unknown-','secao\x20\x22C','POATy','nerating','TPoCA','content','no\x20histo','date','rate\x20cha','s\x20e\x20assu','ommits\x22\x20','ngelog.','cs,\x20Chor','subject','CHANGELO','body'];_0x1e66=function(){return _0x46c2dc;};return _0x1e66();}function formatDateForFile(_0x3101b1){const _0x2b141f=_0x3478;return _0x3101b1[_0x2b141f(0x231)+_0x2b141f(0x254)]()[_0x2b141f(0x247)](0x0,0xa);}function buildCommitHistoryPrompt(){const _0x502683=_0x3478,_0x43e046={'UHcnr':function(_0x476fcb,_0x1345a1){return _0x476fcb(_0x1345a1);},'kLvsh':_0x502683(0x218)+_0x502683(0x21f),'ywzaG':_0x502683(0x218)+'author','EQeiV':function(_0x309f36,_0x370492){return _0x309f36(_0x370492);},'HTvBm':function(_0x4cf789,_0xf6b8e8){return _0x4cf789===_0xf6b8e8;},'nMqqR':'UwxeT','xseie':_0x502683(0x1f0)+_0x502683(0x216)+_0x502683(0x1fa)+_0x502683(0x220)+_0x502683(0x223)},_0x545563=_0x43e046['EQeiV'](getCommitHistory,0x96);return _0x43e046[_0x502683(0x258)](_0x545563[_0x502683(0x1f4)],0x0)&&(_0x43e046['HTvBm'](_0x43e046[_0x502683(0x210)],_0x43e046[_0x502683(0x210)])?failAndExit(_0x43e046[_0x502683(0x23e)]):_0x43e046['UHcnr'](_0x1e7752,_0x502683(0x1f3)+_0x502683(0x235)+_0x502683(0x1ef)+_0x502683(0x237)+_0x502683(0x24a))),_0x545563[_0x502683(0x249)](_0x1bff91=>{const _0xe7e553=_0x502683,_0x3390bf=_0x1bff91[_0xe7e553(0x227)]?'\x20|\x20body:'+'\x20'+_0x1bff91[_0xe7e553(0x227)][_0xe7e553(0x1fc)](/\s+/g,'\x20')[_0xe7e553(0x20d)]():'',_0x170d02=_0x1bff91[_0xe7e553(0x21f)]||_0x43e046[_0xe7e553(0x1fe)],_0xee57ac=_0x1bff91['author']||_0x43e046[_0xe7e553(0x233)];return'-\x20'+_0x170d02+_0xe7e553(0x22f)+_0x1bff91[_0xe7e553(0x234)][_0xe7e553(0x247)](0x0,0x7)+_0xe7e553(0x22f)+_0xee57ac+_0xe7e553(0x22f)+_0x1bff91[_0xe7e553(0x225)]+_0x3390bf;})['join']('\x0a');}export async function generateChangelog(_0x31a893){const _0x32f6cc=_0x3478,_0x548cd1={'XnLWH':function(_0x4afc97){return _0x4afc97();},'MqVQK':function(_0x1211a8){return _0x1211a8();},'cjjZo':function(_0x16d5de){return _0x16d5de();},'FtXGR':function(_0x84af25,_0x34a3e9){return _0x84af25(_0x34a3e9);},'uOgmw':function(_0x4e0e4e,_0x2cf3e4){return _0x4e0e4e||_0x2cf3e4;},'TPoCA':function(_0x27151e){return _0x27151e();},'HdJHd':function(_0x378f8d,_0x441b38,_0x4bce84){return _0x378f8d(_0x441b38,_0x4bce84);},'spxdM':_0x32f6cc(0x1fb)+_0x32f6cc(0x21b)+_0x32f6cc(0x1f1)+_0x32f6cc(0x203),'rlzsu':function(_0xc19a28,_0x45b80a){return _0xc19a28(_0x45b80a);},'POATy':function(_0x2ed6bd,_0x3a8ab4){return _0x2ed6bd(_0x3a8ab4);},'LtmLr':_0x32f6cc(0x253)+'gs','FtLff':function(_0x3c71b7,_0x2f25ac,_0x3d4b78){return _0x3c71b7(_0x2f25ac,_0x3d4b78);},'ezTPL':function(_0x23aa44,_0x49ae23,_0xde0ae2,_0x20688c){return _0x23aa44(_0x49ae23,_0xde0ae2,_0x20688c);},'oPlwq':_0x32f6cc(0x23b),'rvIZa':_0x32f6cc(0x226)+'G\x20GENERA'+_0x32f6cc(0x202),'CLGAL':function(_0x5a18e1,_0x2dd5d3){return _0x5a18e1(_0x2dd5d3);}};_0x548cd1[_0x32f6cc(0x20f)](getGitStatus);const _0x21ea9d=_0x548cd1[_0x32f6cc(0x244)](getLLM),_0xb474e1=_0x548cd1[_0x32f6cc(0x213)](getCurrentBranch),_0x389350=_0x548cd1['FtXGR'](sanitizeName,_0x548cd1['uOgmw'](_0x31a893,_0xb474e1)['trim']()),_0x15c9c7=formatDateForFile(new Date()),_0x3c487b=_0x389350+'-'+_0x15c9c7+_0x32f6cc(0x207),_0x47a6a0=_0x548cd1[_0x32f6cc(0x21c)](buildCommitHistoryPrompt),_0xf62bb2=(_0x32f6cc(0x1fd)+'\x20CHANGEL'+'OG\x20em\x20ma'+_0x32f6cc(0x211)+'om\x20base\x20'+_0x32f6cc(0x21e)+_0x32f6cc(0x25c)+'commits\x20'+'abaixo.\x0a'+_0x32f6cc(0x238)+'-\x20Respon'+'da\x20em\x20po'+_0x32f6cc(0x22d)+_0x32f6cc(0x1f7)+_0x32f6cc(0x250)+'utura:\x20t'+_0x32f6cc(0x212)+_0x32f6cc(0x242)+_0x32f6cc(0x201)+_0x32f6cc(0x1ff)+_0x32f6cc(0x1f2)+_0x32f6cc(0x1f9)+_0x32f6cc(0x24d)+_0x32f6cc(0x20c)+_0x32f6cc(0x25b)+_0x32f6cc(0x241)+_0x32f6cc(0x224)+_0x32f6cc(0x228)+_0x32f6cc(0x22c)+_0x32f6cc(0x219)+_0x32f6cc(0x222)+'com\x20list'+_0x32f6cc(0x22e)+_0x32f6cc(0x248)+_0x32f6cc(0x221)+'ntos\x0a-\x20N'+'ao\x20inven'+_0x32f6cc(0x257)+'cas\x0a\x0aHis'+'torico\x20d'+_0x32f6cc(0x230)+'s:\x0a'+_0x47a6a0+'\x0a')[_0x32f6cc(0x20d)](),_0x57dfa9=await _0x548cd1[_0x32f6cc(0x205)](withProgress,_0x548cd1[_0x32f6cc(0x200)],()=>_0x21ea9d[_0x32f6cc(0x22b)](_0xf62bb2)),_0x3df273=_0x548cd1['rlzsu'](extractMessageText,_0x57dfa9[_0x32f6cc(0x21d)]);!_0x3df273&&_0x548cd1[_0x32f6cc(0x21a)](failAndExit,'Failed\x20t'+_0x32f6cc(0x235)+_0x32f6cc(0x1ef)+_0x32f6cc(0x237)+_0x32f6cc(0x24a));const _0x4b4e26=_0x548cd1[_0x32f6cc(0x205)](join,process['cwd'](),_0x548cd1[_0x32f6cc(0x252)]),_0x43816b=join(_0x4b4e26,_0x3c487b);_0x548cd1[_0x32f6cc(0x246)](mkdirSync,_0x4b4e26,{'recursive':!![]}),_0x548cd1[_0x32f6cc(0x232)](writeFileSync,_0x43816b,_0x3df273[_0x32f6cc(0x20d)]()+'\x0a',_0x548cd1['oPlwq']),section(_0x548cd1[_0x32f6cc(0x23a)]),console[_0x32f6cc(0x215)](_0x548cd1[_0x32f6cc(0x23f)](ok,'OK')+(_0x32f6cc(0x24c)+_0x32f6cc(0x255))+_0x43816b),console[_0x32f6cc(0x215)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55565c,_0x571ff4){const _0x713c3a=_0x298f,_0x36b5c2=_0x55565c();while(!![]){try{const _0x170254=parseInt(_0x713c3a(0xa6))/0x1*(-parseInt(_0x713c3a(0x102))/0x2)+-parseInt(_0x713c3a(0xf5))/0x3*(parseInt(_0x713c3a(0xb6))/0x4)+-parseInt(_0x713c3a(0xd0))/0x5*(-parseInt(_0x713c3a(0xa8))/0x6)+parseInt(_0x713c3a(0xcf))/0x7+parseInt(_0x713c3a(0xd2))/0x8+-parseInt(_0x713c3a(0x9d))/0x9*(-parseInt(_0x713c3a(0xcc))/0xa)+parseInt(_0x713c3a(0xb7))/0xb*(-parseInt(_0x713c3a(0xa7))/0xc);if(_0x170254===_0x571ff4)break;else _0x36b5c2['push'](_0x36b5c2['shift']());}catch(_0x4ac1b8){_0x36b5c2['push'](_0x36b5c2['shift']());}}}(_0x538c,0x9976d));const _0x543f83=(function(){const _0x5a4bd5=_0x298f,_0x5cb839={'eIURC':function(_0x1c0302,_0xdcaeda){return _0x1c0302!==_0xdcaeda;},'pgFtd':_0x5a4bd5(0xa2),'RdwyN':'CBpVi','FQfGp':function(_0x2a5ebc,_0x28e1c1){return _0x2a5ebc(_0x28e1c1);},'dXmKA':'SKIPPED'};let _0x51c312=!![];return function(_0x154281,_0x4f3d3e){const _0x58e39d={'Plsmq':function(_0x4f727a,_0x1a9f02){const _0x2a0415=_0x298f;return _0x5cb839[_0x2a0415(0xfc)](_0x4f727a,_0x1a9f02);},'ruthL':_0x5cb839['dXmKA']},_0x1514db=_0x51c312?function(){const _0x3e9c56=_0x298f;if(_0x5cb839[_0x3e9c56(0xe4)](_0x5cb839['pgFtd'],_0x5cb839[_0x3e9c56(0xe3)])){if(_0x4f3d3e){const _0x426353=_0x4f3d3e[_0x3e9c56(0xf4)](_0x154281,arguments);return _0x4f3d3e=null,_0x426353;}}else{_0x15e87f['log'](_0x58e39d[_0x3e9c56(0xd7)](_0x50f865,_0x58e39d['ruthL'])+(_0x3e9c56(0xb3)+_0x3e9c56(0xaf)+_0x3e9c56(0xee)+_0x3e9c56(0xac)+_0x3e9c56(0xf9)+'lable.'));return;}}:function(){};return _0x51c312=![],_0x1514db;};}()),_0x106f8c=_0x543f83(this,function(){const _0x4275cd=_0x298f;return _0x106f8c[_0x4275cd(0xf0)]()[_0x4275cd(0x92)](_0x4275cd(0xdc)+_0x4275cd(0x100))[_0x4275cd(0xf0)]()['construc'+_0x4275cd(0xe5)](_0x106f8c)['search'](_0x4275cd(0xdc)+_0x4275cd(0x100));});_0x106f8c();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getUpstreamInfo}from'../git.js';function _0x538c(){const _0x1eba41=['EZuPG','mmits.\x0a\x20','RCtyg','orQUv','onfigure','Push\x20cur','toString','ve\x20stage','\x20Push\x20co','branch','apply','9nzkuOo','gaEHz','eam\x20foun','GajKW','not\x20avai','f\x20you\x20ha','\x22\x20now?\x20(','FQfGp','and\x20upst','nd\x20reque','sting\x20re','+)+$','am?\x20(y/N','302234YwJIIE','QbNUt','OmBPV','\x20commit.','aBijZ','remote','message','t\x20messag','ns.\x0a\x0a\x20\x20\x20','ge\x20using','search','sponse..','o\x20create','OiPvj','zfuJr','GNurD','\x20\x20\x20Retur','push','CANCELED','stream','commit','11106567VDOnBt','mpleted\x20','TgtgN','ZVJwP','fullName','BTbdT','inherit','uBZmW','content','3dweeWl','1138224glVCqK','250656YcHiIp','\x22\x20and\x20se','lable.','invoke','d.\x20Push\x20','construc','th\x20no\x20ex','remote\x20c','bold','s\x20messag','e\x20a\x20comm','\x20No\x20git\x20','nch\x20\x22','\x0a\x20\x20','606340FOwFeJ','253PWRifg','git','jYFLS','kuata','IozJd','\x20Convent','Failed\x20t','he\x20commi','TtLWV','TvuVN','JDvon','t\x20upstre','is\x20git\x20s','\x22\x20to\x20\x22','e?\x20(Y/n)','\x20Check\x20i','planatio','uXcBU','o\x20genera','KguXH','ed\x20on\x20th','10UyyHTL','tatus/di','--set-up','1342509cgIoQI','150wvTlsY','ream\x20con','8313288uvHfte','AI\x20is\x20th','d\x20files.','figured\x20','rent\x20bra','Plsmq','ePWWq','SKIPPED','PcXWE','inking\x20a','(((.+)+)','e\x20in\x20Eng','efgpy','log','lish,\x20wi','n\x20ONLY\x20t','Commit\x20u','RdwyN','eIURC','tor','was\x20not\x20','\x0a\x20\x20\x20\x20Bas','o\x20push\x20\x22','pbKFK'];_0x538c=function(){return _0x1eba41;};return _0x538c();}function _0x298f(_0x45e3b4,_0x1e9ecb){_0x45e3b4=_0x45e3b4-0x89;const _0x7a6454=_0x538c();let _0x106f8c=_0x7a6454[_0x45e3b4];return _0x106f8c;}import{failAndExit,ok,section,style,warn,ui,withProgress}from'../ui.js';function getLLM(){const _0x59b9c0=_0x298f,_0x34ae5f={'KguXH':function(_0x16e948){return _0x16e948();},'IozJd':function(_0x5754b5,_0x1a930a){return _0x5754b5 instanceof _0x1a930a;},'TgtgN':function(_0x5eae5a,_0x5e3ce1){return _0x5eae5a(_0x5e3ce1);}};try{return _0x34ae5f[_0x59b9c0(0xca)](createLLM);}catch(_0x173af9){const _0x2515d8=_0x34ae5f[_0x59b9c0(0xbb)](_0x173af9,Error)?_0x173af9[_0x59b9c0(0x8e)]:_0x34ae5f[_0x59b9c0(0x9f)](String,_0x173af9);failAndExit(_0x2515d8);}}async function maybePushCurrentBranch(){const _0xb4e7a3=_0x298f,_0x33cc8f={'ePWWq':function(_0x25a315,_0x38599){return _0x25a315(_0x38599);},'efgpy':_0xb4e7a3(0xbd)+_0xb4e7a3(0x94)+_0xb4e7a3(0x8b)+'\x20Check\x20i'+_0xb4e7a3(0xfa)+_0xb4e7a3(0xf1)+_0xb4e7a3(0xd4),'HTpzM':function(_0x2d71d0){return _0x2d71d0();},'zfuJr':function(_0x3e07da,_0x3df488,_0x59b7b1,_0x3638c7){return _0x3e07da(_0x3df488,_0x59b7b1,_0x3638c7);},'jYFLS':_0xb4e7a3(0xb8),'Jutpd':_0xb4e7a3(0x99),'PcXWE':_0xb4e7a3(0xa3),'TvuVN':function(_0x594119,_0x3a551d){return _0x594119(_0x3a551d);},'OiPvj':_0xb4e7a3(0xd9),'qcQci':_0xb4e7a3(0x97),'uBZmW':_0xb4e7a3(0xf6),'ZVJwP':function(_0x463205,_0x3e1563){return _0x463205(_0x3e1563);}},_0x48e549=getCurrentBranch(),_0x2b32ce=_0x33cc8f['HTpzM'](getUpstreamInfo);if(_0x2b32ce){const _0x3f6a69=await _0x33cc8f[_0xb4e7a3(0xd8)](askConfirmation,_0xb4e7a3(0xef)+_0xb4e7a3(0xd6)+_0xb4e7a3(0xb4)+_0x48e549+_0xb4e7a3(0xc4)+_0x2b32ce[_0xb4e7a3(0xa1)]+(_0xb4e7a3(0xfb)+'y/N):\x20'));if(!_0x3f6a69)return;try{_0x33cc8f['zfuJr'](execFileSync,_0x33cc8f[_0xb4e7a3(0xb9)],[_0x33cc8f['Jutpd'],_0x2b32ce[_0xb4e7a3(0x8d)],_0x48e549+':'+_0x2b32ce[_0xb4e7a3(0xf3)]],{'stdio':_0x33cc8f[_0xb4e7a3(0xda)]}),console[_0xb4e7a3(0xdf)](ok('OK')+(_0xb4e7a3(0xf2)+_0xb4e7a3(0x9e)+'to\x20')+_0x2b32ce[_0xb4e7a3(0xa1)]+'.');}catch{_0x33cc8f['TvuVN'](failAndExit,_0xb4e7a3(0xbd)+'o\x20push\x20t'+'o\x20'+_0x2b32ce[_0xb4e7a3(0xa1)]+'.');}return;}const _0x2c04b3=getDefaultRemote();if(!_0x2c04b3){console[_0xb4e7a3(0xdf)](warn(_0x33cc8f[_0xb4e7a3(0x95)])+(_0xb4e7a3(0xb3)+_0xb4e7a3(0xaf)+'onfigure'+_0xb4e7a3(0xac)+_0xb4e7a3(0xf9)+_0xb4e7a3(0xaa)));return;}const _0x30b63e=await askConfirmation('No\x20upstr'+_0xb4e7a3(0xf7)+'d.\x20Push\x20'+'\x22'+_0x48e549+'\x22\x20to\x20\x22'+_0x2c04b3+'/'+_0x48e549+(_0xb4e7a3(0xa9)+_0xb4e7a3(0xc2)+_0xb4e7a3(0x101)+'):\x20'));if(!_0x30b63e){if(_0x33cc8f['qcQci']===_0x33cc8f[_0xb4e7a3(0xa4)])_0x33cc8f['ePWWq'](_0x2c538c,_0x33cc8f[_0xb4e7a3(0xde)]);else return;}try{_0x33cc8f[_0xb4e7a3(0x96)](execFileSync,_0x33cc8f[_0xb4e7a3(0xb9)],[_0x33cc8f['Jutpd'],_0xb4e7a3(0xce)+_0xb4e7a3(0x9b),_0x2c04b3,_0x48e549],{'stdio':_0x33cc8f[_0xb4e7a3(0xda)]}),console['log'](_0x33cc8f[_0xb4e7a3(0xc0)](ok,'OK')+(_0xb4e7a3(0xf2)+_0xb4e7a3(0x9e)+_0xb4e7a3(0xfd)+_0xb4e7a3(0xd1)+_0xb4e7a3(0xd5)+'(')+_0x2c04b3+'/'+_0x48e549+').');}catch{_0x33cc8f[_0xb4e7a3(0xa0)](failAndExit,'Failed\x20t'+_0xb4e7a3(0xe8)+_0x48e549+'\x22\x20to\x20\x22'+_0x2c04b3+'\x22.');}}export async function generateCommit(){const _0x83f88c=_0x298f,_0x24cef4={'OmBPV':_0x83f88c(0xdc)+_0x83f88c(0x100),'JDvon':function(_0x48020c){return _0x48020c();},'orQUv':function(_0x24e768){return _0x24e768();},'aBijZ':function(_0x5ecf59,_0x342d68,_0x5d7311){return _0x5ecf59(_0x342d68,_0x5d7311);},'QbNUt':_0x83f88c(0xd3)+_0x83f88c(0xdb)+_0x83f88c(0xfe)+_0x83f88c(0xff)+_0x83f88c(0x93)+'.','GajKW':function(_0x2fe1c1,_0x517302){return _0x2fe1c1(_0x517302);},'EZuPG':'Failed\x20t'+_0x83f88c(0xc9)+'te\x20commi'+_0x83f88c(0x8f)+'e.','pbKFK':_0x83f88c(0xe2)+'sing\x20thi'+_0x83f88c(0xb1)+_0x83f88c(0xc5)+':\x20','eXcTA':function(_0x3e2e78,_0x2cca35,_0xc11bfe,_0x1af4bf){return _0x3e2e78(_0x2cca35,_0xc11bfe,_0x1af4bf);},'kapzr':_0x83f88c(0xb8),'odaMb':_0x83f88c(0x9c),'RCtyg':_0x83f88c(0xa3),'DxqAq':function(_0x544f08,_0x2d041d){return _0x544f08!==_0x2d041d;},'uXcBU':_0x83f88c(0xba),'TtLWV':_0x83f88c(0xbd)+'o\x20create'+'\x20commit.'+_0x83f88c(0xc6)+_0x83f88c(0xfa)+_0x83f88c(0xf1)+_0x83f88c(0xd4)},_0x306175=_0x24cef4[_0x83f88c(0xc1)](getLLM),_0x30af2=_0x24cef4[_0x83f88c(0xed)](getGitStatus),_0x16d0a7=_0x83f88c(0xe7)+_0x83f88c(0xcb)+_0x83f88c(0xc3)+_0x83f88c(0xcd)+'ff,\x20writ'+_0x83f88c(0xb2)+'it\x20messa'+_0x83f88c(0x91)+_0x83f88c(0xbc)+'ional\x20Co'+_0x83f88c(0xeb)+_0x83f88c(0x98)+_0x83f88c(0xe1)+_0x83f88c(0xbe)+_0x83f88c(0x8f)+_0x83f88c(0xdd)+_0x83f88c(0xe0)+_0x83f88c(0xae)+_0x83f88c(0xc7)+_0x83f88c(0x90)+'\x20'+_0x30af2+_0x83f88c(0xb5),_0x27ccf9=await _0x24cef4[_0x83f88c(0x8c)](withProgress,_0x24cef4[_0x83f88c(0x89)],()=>_0x306175[_0x83f88c(0xab)](_0x16d0a7)),_0x11a8ba=_0x24cef4['GajKW'](extractMessageText,_0x27ccf9[_0x83f88c(0xa5)]);!_0x11a8ba&&_0x24cef4[_0x83f88c(0xf8)](failAndExit,_0x24cef4[_0x83f88c(0xea)]);_0x24cef4[_0x83f88c(0xf8)](section,'SUGGESTE'+'D\x20COMMIT'),console[_0x83f88c(0xdf)](style(_0x11a8ba,ui[_0x83f88c(0xb0)])),console[_0x83f88c(0xdf)]();const _0x1a8160=await _0x24cef4[_0x83f88c(0x8c)](askConfirmation,_0x24cef4[_0x83f88c(0xe9)],{'defaultYes':!![]});if(!_0x1a8160){console[_0x83f88c(0xdf)](_0x24cef4['GajKW'](warn,_0x83f88c(0x9a))+('\x20Commit\x20'+_0x83f88c(0xe6)+'created.'));return;}try{_0x24cef4['eXcTA'](execFileSync,_0x24cef4['kapzr'],[_0x24cef4['odaMb'],'-m',_0x11a8ba],{'stdio':_0x24cef4[_0x83f88c(0xec)]});}catch{if(_0x24cef4['DxqAq'](_0x24cef4[_0x83f88c(0xc8)],_0x24cef4[_0x83f88c(0xc8)]))return _0x1bcd74[_0x83f88c(0xf0)]()[_0x83f88c(0x92)](ZTMduq['OmBPV'])[_0x83f88c(0xf0)]()[_0x83f88c(0xad)+'tor'](_0x11814e)[_0x83f88c(0x92)](ZTMduq[_0x83f88c(0x8a)]);else _0x24cef4['GajKW'](failAndExit,_0x24cef4[_0x83f88c(0xbf)]);}await _0x24cef4[_0x83f88c(0xc1)](maybePushCurrentBranch);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3b17(){const _0x1e6c27=['L=\x22','LpoFy','rdmnf','IDER=\x22','ase','1506QfhJdG','26878643CxVunc','missing/','xuVcw','nceled.','set','nv\x20\x20\x20\x20\x20\x20','GOOGLE_A','le]:\x20','ILiHi','uWMRw','6268864prTSYs','DusRx','PzVKy','8BifCwK','toLowerC','PI_KEY','\x20exists.','(((.+)+)','huXmD','LLM_PROV','anthropi','local','265235JdFacu','search','L\x20\x20\x20\x20\x20\x20','Model\x20[','GEMINI_A','ini','Y=\x22','claude-3','ANTHROPI','JHtDM','9502587zpsHfn','PZSLY','eZAIz','PI_KEY=\x22','eDcAQ','GlsnO','RciUD','QXbLb','log','164940iIwcdE','join','Invalid\x20','VyuNQ','WuoNs','iYgUs','C_API_KE','t-latest','xVgcf','wWWaA','RwyFt','enai,\x20or','\x20global)','ogle,\x20op','vypuN','invalid','found','API_KEY','JkLTR','YiJFp','.5-flash','Pxnrx','provider','-5-sonne','12prqhzL','vgyZN','6tBLEMR','\x20Configu','\x20(google','+)+$','missing','toString','LLM_MODE','.\x20Use\x20go','ZFYKS','.env','DIAGNOST','/openai/','TNzPE','NjXcQ','YGJCk','FtyAr','OPENAI_A','utf8','IDER\x20\x20\x20','4270bPumgp','openai','fwIux','6GroOCv','BfAcV','Global\x20.','\x20Overwri','adlrQ','9204NYUVRu','google','jHwNw','uiNvK','\x20already','UtTZH','not\x20foun','qOcHI','xorNu','EAMQQ','JnRmX','BhvwC','ic.','FrTmb','GnLuF','tCFKN','Provider','te?\x20(y/n'];_0x3b17=function(){return _0x1e6c27;};return _0x3b17();}(function(_0x233179,_0x2c6906){const _0x32d1bd=_0x3db0,_0x204e50=_0x233179();while(!![]){try{const _0x5c36ab=parseInt(_0x32d1bd(0x1d4))/0x1*(-parseInt(_0x32d1bd(0x217))/0x2)+parseInt(_0x32d1bd(0x1bd))/0x3*(-parseInt(_0x32d1bd(0x21c))/0x4)+-parseInt(_0x32d1bd(0x214))/0x5*(parseInt(_0x32d1bd(0x201))/0x6)+-parseInt(_0x32d1bd(0x1c8))/0x7+-parseInt(_0x32d1bd(0x1cb))/0x8*(-parseInt(_0x32d1bd(0x1de))/0x9)+-parseInt(_0x32d1bd(0x1e7))/0xa+parseInt(_0x32d1bd(0x1be))/0xb*(parseInt(_0x32d1bd(0x1ff))/0xc);if(_0x5c36ab===_0x2c6906)break;else _0x204e50['push'](_0x204e50['shift']());}catch(_0x1d2fa5){_0x204e50['push'](_0x204e50['shift']());}}}(_0x3b17,0x9b301));const _0x5c0223=(function(){let _0x2c03fc=!![];return function(_0x93e98c,_0xa22a47){const _0x42030f=_0x2c03fc?function(){if(_0xa22a47){const _0x334ef9=_0xa22a47['apply'](_0x93e98c,arguments);return _0xa22a47=null,_0x334ef9;}}:function(){};return _0x2c03fc=![],_0x42030f;};}()),_0x2408e8=_0x5c0223(this,function(){const _0x3f320b=_0x3db0,_0x1694a1={'xorNu':_0x3f320b(0x1cf)+_0x3f320b(0x204)};return _0x2408e8[_0x3f320b(0x206)]()[_0x3f320b(0x1d5)]('(((.+)+)'+_0x3f320b(0x204))[_0x3f320b(0x206)]()['construc'+'tor'](_0x2408e8)[_0x3f320b(0x1d5)](_0x1694a1[_0x3f320b(0x224)]);});_0x2408e8();import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{failAndExit,section,ok,warn,bad}from'../ui.js';function _0x3db0(_0x3198ef,_0x3b4eb1){_0x3198ef=_0x3198ef-0x1b2;const _0x348a44=_0x3b17();let _0x2408e8=_0x348a44[_0x3198ef];return _0x2408e8;}function getProviderKeyName(_0x391733){const _0x51b148=_0x3db0,_0x1e8b31={'DusRx':function(_0x1769a2,_0x18bb9a){return _0x1769a2===_0x18bb9a;},'EUzOM':'google','gPygv':_0x51b148(0x1c4)+_0x51b148(0x1cd),'Teqlq':'openai','tCFKN':_0x51b148(0x211)+'PI_KEY','GLlUg':'ANTHROPI'+'C_API_KE'+'Y'};if(_0x1e8b31[_0x51b148(0x1c9)](_0x391733,_0x1e8b31['EUzOM']))return _0x1e8b31['gPygv'];if(_0x1e8b31[_0x51b148(0x1c9)](_0x391733,_0x1e8b31['Teqlq']))return _0x1e8b31[_0x51b148(0x1b5)];return _0x1e8b31['GLlUg'];}export async function initConfig(_0x479307={}){const _0x1dd4bd=_0x3db0,_0x4ffebc={'qOcHI':'.env','FrTmb':function(_0x5da97a){return _0x5da97a();},'adlrQ':function(_0x432b80,_0x4e4aa3){return _0x432b80(_0x4e4aa3);},'jdPab':'Setup\x20ca'+_0x1dd4bd(0x1c1),'UtTZH':_0x1dd4bd(0x1b6)+_0x1dd4bd(0x203)+_0x1dd4bd(0x20c)+'anthropi'+'c)\x20[goog'+_0x1dd4bd(0x1c5),'YoFIt':function(_0x2f898b,_0x5e5f09){return _0x2f898b||_0x5e5f09;},'eDcAQ':'google','BhvwC':function(_0x4eeab2,_0x3230e8){return _0x4eeab2!==_0x3230e8;},'tsnmB':_0x1dd4bd(0x215),'vgyZN':function(_0x228150,_0x461edc){return _0x228150!==_0x461edc;},'eZAIz':_0x1dd4bd(0x1d2)+'c','VyuNQ':_0x1dd4bd(0x1e9)+_0x1dd4bd(0x1fd)+_0x1dd4bd(0x208)+_0x1dd4bd(0x1f4)+_0x1dd4bd(0x1f2)+'\x20anthrop'+_0x1dd4bd(0x1b2),'RwyFt':function(_0x2798ca,_0x36b475){return _0x2798ca===_0x36b475;},'JnRmX':'gemini-2'+_0x1dd4bd(0x1fb),'uWMRw':'gpt-4o-m'+_0x1dd4bd(0x1d9),'zrtXp':_0x1dd4bd(0x1db)+_0x1dd4bd(0x1fe)+_0x1dd4bd(0x1ee),'huXmD':function(_0x5d3432,_0x1caae0){return _0x5d3432(_0x1caae0);},'mUbty':_0x1dd4bd(0x1d8)+'PI_KEY=\x22'+'\x22','GlsnO':function(_0x5b0dd7,_0x1bf3b5){return _0x5b0dd7===_0x1bf3b5;},'xVgcf':function(_0x1ce68c,_0x547fcc,_0x21fc90){return _0x1ce68c(_0x547fcc,_0x21fc90);},'wWWaA':function(_0x5d3d06,_0x1d9cf3){return _0x5d3d06(_0x1d9cf3);},'JkLTR':_0x1dd4bd(0x212)},_0x111a26=_0x479307[_0x1dd4bd(0x1d3)]?_0x4ffebc[_0x1dd4bd(0x223)]:_0x4ffebc[_0x1dd4bd(0x1b3)](getGlobalEnvPath);if(_0x4ffebc[_0x1dd4bd(0x21b)](existsSync,_0x111a26)){const _0xae9b55=await askConfirmation(_0x111a26+(_0x1dd4bd(0x220)+_0x1dd4bd(0x1ce)+_0x1dd4bd(0x21a)+_0x1dd4bd(0x1b7)+'):\x20'));if(!_0xae9b55){console[_0x1dd4bd(0x1e6)](_0x4ffebc['jdPab']);return;}}const _0x388699=await _0x4ffebc[_0x1dd4bd(0x21b)](askInput,_0x4ffebc[_0x1dd4bd(0x221)]),_0x2e6e17=_0x4ffebc['YoFIt'](_0x388699,_0x4ffebc['eDcAQ'])[_0x1dd4bd(0x1cc)+_0x1dd4bd(0x1bc)]();_0x4ffebc['BhvwC'](_0x2e6e17,_0x4ffebc[_0x1dd4bd(0x1e2)])&&_0x4ffebc[_0x1dd4bd(0x227)](_0x2e6e17,_0x4ffebc['tsnmB'])&&_0x4ffebc[_0x1dd4bd(0x200)](_0x2e6e17,_0x4ffebc[_0x1dd4bd(0x1e0)])&&_0x4ffebc[_0x1dd4bd(0x21b)](failAndExit,_0x4ffebc[_0x1dd4bd(0x1ea)]);const _0x12c374=_0x2e6e17,_0x489aed=_0x4ffebc['RwyFt'](_0x12c374,_0x4ffebc[_0x1dd4bd(0x1e2)])?_0x4ffebc[_0x1dd4bd(0x226)]:_0x12c374===_0x1dd4bd(0x215)?_0x4ffebc[_0x1dd4bd(0x1c7)]:_0x4ffebc['zrtXp'],_0xd26165=await _0x4ffebc[_0x1dd4bd(0x21b)](askInput,_0x1dd4bd(0x1d7)+_0x489aed+']:\x20')||_0x489aed,_0x18a953=_0x4ffebc[_0x1dd4bd(0x1d0)](getProviderKeyName,_0x12c374),_0x18576c=await askInput(_0x18a953+':\x20'),_0x26aef2=[_0x1dd4bd(0x1d1)+_0x1dd4bd(0x1bb)+_0x12c374+'\x22',_0x1dd4bd(0x207)+_0x1dd4bd(0x1b8)+_0xd26165+'\x22','',_0x1dd4bd(0x1c4)+_0x1dd4bd(0x1e1)+(_0x4ffebc[_0x1dd4bd(0x1f1)](_0x12c374,_0x4ffebc[_0x1dd4bd(0x1e2)])?_0x18576c:'')+'\x22',_0x4ffebc['mUbty'],_0x1dd4bd(0x211)+_0x1dd4bd(0x1e1)+(_0x4ffebc[_0x1dd4bd(0x1f1)](_0x12c374,_0x1dd4bd(0x215))?_0x18576c:'')+'\x22',_0x1dd4bd(0x1dc)+_0x1dd4bd(0x1ed)+_0x1dd4bd(0x1da)+(_0x4ffebc[_0x1dd4bd(0x1e3)](_0x12c374,_0x4ffebc['eZAIz'])?_0x18576c:'')+'\x22',''][_0x1dd4bd(0x1e8)]('\x0a');_0x4ffebc[_0x1dd4bd(0x1ef)](mkdirSync,_0x4ffebc[_0x1dd4bd(0x1f0)](dirname,_0x111a26),{'recursive':!![]}),writeFileSync(_0x111a26,_0x26aef2,_0x4ffebc[_0x1dd4bd(0x1f9)]),console[_0x1dd4bd(0x1e6)](ok('OK')+(_0x1dd4bd(0x202)+'ration\x20s'+'aved\x20to\x20')+_0x111a26+'.');}export function doctorConfig(){const _0x2c4696=_0x3db0,_0x334b74={'cIQiH':function(_0x522217){return _0x522217();},'JHtDM':_0x2c4696(0x20a),'YiJFp':function(_0x35f794,_0xde6cac){return _0x35f794(_0xde6cac);},'AoYkC':function(_0x17c845,_0xf63fef){return _0x17c845===_0xf63fef;},'Pxnrx':_0x2c4696(0x21d),'xuVcw':function(_0x3d4db9,_0x55928b){return _0x3d4db9===_0x55928b;},'fwIux':_0x2c4696(0x215),'WuoNs':_0x2c4696(0x1d2)+'c','ZFYKS':function(_0x1aabd4,_0x457784){return _0x1aabd4(_0x457784);},'PZSLY':function(_0x3a8d3e,_0x1d0a4e){return _0x3a8d3e===_0x1d0a4e;},'RciUD':function(_0x5cc2dc,_0x1a96c6){return _0x5cc2dc===_0x1a96c6;},'Acjyz':function(_0x33ea2c,_0x5778e9){return _0x33ea2c===_0x5778e9;},'LpoFy':_0x2c4696(0x1f8),'QXbLb':function(_0x1bf105,_0x22bdab){return _0x1bf105(_0x22bdab);},'BfAcV':_0x2c4696(0x20b)+'ICS','CoXcI':function(_0x13cc46,_0x34ef46){return _0x13cc46(_0x34ef46);},'ILiHi':_0x2c4696(0x205),'uiNvK':'found\x20(o'+'verrides'+_0x2c4696(0x1f3),'iYgUs':function(_0x1b6c16,_0x34cd5b){return _0x1b6c16(_0x34cd5b);},'YGJCk':_0x2c4696(0x222)+'d','vypuN':function(_0x555019,_0x26c9ef){return _0x555019(_0x26c9ef);},'GnLuF':function(_0xc023e4,_0x466771){return _0xc023e4(_0x466771);},'mOEkZ':_0x2c4696(0x1c2),'jHwNw':function(_0x24ba64,_0x49958b){return _0x24ba64(_0x49958b);},'FtyAr':function(_0xb4f40f,_0x126b6a){return _0xb4f40f(_0x126b6a);},'TNzPE':function(_0x3ced10,_0x4d7515){return _0x3ced10||_0x4d7515;},'PzVKy':function(_0x5dd6a2,_0x5c9b43){return _0x5dd6a2!==_0x5c9b43;},'NjXcQ':'eFOIK','rdmnf':_0x2c4696(0x225)},_0x523d37=_0x334b74['cIQiH'](getGlobalEnvPath),_0x227ebb=_0x334b74[_0x2c4696(0x1dd)],_0x24b602=existsSync(_0x227ebb),_0x559ab6=_0x334b74['YiJFp'](existsSync,_0x523d37),_0x3b8b88=(process.env.LLM_PROVIDER||'')[_0x2c4696(0x1cc)+_0x2c4696(0x1bc)](),_0x3835b2=process.env.LLM_MODEL||'',_0x5dd962=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x3ad25c=process.env.OPENAI_API_KEY||'',_0x181d53=process.env.ANTHROPIC_API_KEY||'',_0x44bc9c=_0x334b74['AoYkC'](_0x3b8b88,_0x334b74[_0x2c4696(0x1fc)])||_0x334b74[_0x2c4696(0x1c0)](_0x3b8b88,_0x334b74[_0x2c4696(0x216)])||_0x334b74['xuVcw'](_0x3b8b88,_0x334b74[_0x2c4696(0x1eb)]),_0x1fb639=_0x334b74['ZFYKS'](Boolean,_0x3835b2),_0x3be004=_0x334b74[_0x2c4696(0x1df)](_0x3b8b88,_0x2c4696(0x21d))?_0x5dd962:_0x334b74[_0x2c4696(0x1e4)](_0x3b8b88,_0x334b74['fwIux'])?_0x3ad25c:_0x334b74['Acjyz'](_0x3b8b88,_0x334b74['WuoNs'])?_0x181d53:'',_0x30c4fe=_0x44bc9c?_0x334b74[_0x2c4696(0x209)](getProviderKeyName,_0x3b8b88):_0x334b74[_0x2c4696(0x1b9)],_0x4b8187=_0x334b74[_0x2c4696(0x1e5)](Boolean,_0x3be004);section(_0x334b74[_0x2c4696(0x218)]),console[_0x2c4696(0x1e6)](_0x2c4696(0x219)+'env\x20path'+'\x20'+_0x523d37),console[_0x2c4696(0x1e6)](_0x2c4696(0x219)+'env\x20\x20\x20\x20\x20'+'\x20'+(_0x559ab6?_0x334b74['CoXcI'](ok,_0x2c4696(0x1f7)):_0x334b74[_0x2c4696(0x1fa)](warn,_0x334b74['ILiHi']))),console[_0x2c4696(0x1e6)]('Local\x20.e'+_0x2c4696(0x1c3)+'\x20'+(_0x24b602?warn(_0x334b74[_0x2c4696(0x21f)]):_0x334b74['iYgUs'](ok,_0x334b74[_0x2c4696(0x20f)]))),console[_0x2c4696(0x1e6)](),console[_0x2c4696(0x1e6)](_0x2c4696(0x1d1)+_0x2c4696(0x213)+(_0x44bc9c?ok('ok'):bad(_0x2c4696(0x1bf)+_0x2c4696(0x1f6)))),console['log']('LLM_MODE'+_0x2c4696(0x1d6)+(_0x1fb639?_0x334b74[_0x2c4696(0x1e5)](ok,'ok'):_0x334b74[_0x2c4696(0x1f5)](bad,_0x334b74['ILiHi']))),console[_0x2c4696(0x1e6)](_0x30c4fe['padEnd'](0xe,'\x20')+'\x20'+(_0x4b8187?_0x334b74[_0x2c4696(0x1f5)](ok,'ok'):bad(_0x334b74['ILiHi']))),console[_0x2c4696(0x1e6)](_0x2c4696(0x1c4)+'PI_KEY\x20'+(_0x5dd962?_0x334b74[_0x2c4696(0x1b4)](ok,_0x334b74['mOEkZ']):_0x334b74[_0x2c4696(0x1ec)](warn,_0x334b74[_0x2c4696(0x1c6)]))),console[_0x2c4696(0x1e6)](_0x2c4696(0x211)+'PI_KEY\x20'+(_0x3ad25c?_0x334b74[_0x2c4696(0x209)](ok,_0x2c4696(0x1c2)):_0x334b74[_0x2c4696(0x21e)](warn,_0x334b74[_0x2c4696(0x1c6)]))),console[_0x2c4696(0x1e6)](_0x2c4696(0x1dc)+_0x2c4696(0x1ed)+'Y\x20'+(_0x181d53?_0x334b74[_0x2c4696(0x1f5)](ok,'set'):_0x334b74[_0x2c4696(0x210)](warn,_0x334b74['ILiHi']))),console[_0x2c4696(0x1e6)]();if(_0x334b74[_0x2c4696(0x20d)](!_0x44bc9c,!_0x1fb639)||!_0x4b8187){if(_0x334b74[_0x2c4696(0x1ca)](_0x334b74[_0x2c4696(0x20e)],_0x334b74[_0x2c4696(0x1ba)]))process['exitCode']=0x1;else return _0x2c4696(0x1c4)+_0x2c4696(0x1cd);}}
|
|
1
|
+
(function(_0x3c7b56,_0x54689d){const _0x16a317=_0x3304,_0x53af6e=_0x3c7b56();while(!![]){try{const _0x241fc9=-parseInt(_0x16a317(0x1cf))/0x1*(-parseInt(_0x16a317(0x1d3))/0x2)+-parseInt(_0x16a317(0x1fe))/0x3*(parseInt(_0x16a317(0x1d8))/0x4)+parseInt(_0x16a317(0x19d))/0x5*(parseInt(_0x16a317(0x203))/0x6)+parseInt(_0x16a317(0x1bb))/0x7+-parseInt(_0x16a317(0x1bf))/0x8+parseInt(_0x16a317(0x199))/0x9*(-parseInt(_0x16a317(0x1ce))/0xa)+parseInt(_0x16a317(0x206))/0xb;if(_0x241fc9===_0x54689d)break;else _0x53af6e['push'](_0x53af6e['shift']());}catch(_0xc170ab){_0x53af6e['push'](_0x53af6e['shift']());}}}(_0x2946,0x3b25f));const _0x2c1049=(function(){const _0x31312e=_0x3304,_0x11da91={'WqQGq':'Setup\x20ca'+'nceled.','PpZDc':function(_0x511708,_0x5354db){return _0x511708===_0x5354db;},'ZtMkq':'YgIsc','myQth':_0x31312e(0x1af)};let _0x948c27=!![];return function(_0x462121,_0x22942c){const _0x39944a=_0x31312e,_0x47c1b7={'tsRWt':_0x11da91[_0x39944a(0x1b2)],'zXwhW':function(_0x1d1877,_0xfd6009){const _0x227769=_0x39944a;return _0x11da91[_0x227769(0x1e1)](_0x1d1877,_0xfd6009);},'sDdeK':_0x11da91[_0x39944a(0x193)],'ddADh':_0x11da91[_0x39944a(0x1ae)]},_0x3097d7=_0x948c27?function(){const _0x4aad51=_0x39944a;if(_0x47c1b7[_0x4aad51(0x1c6)](_0x47c1b7['sDdeK'],_0x47c1b7[_0x4aad51(0x198)])){_0x56cf7a['log'](_0x47c1b7[_0x4aad51(0x1e6)]);return;}else{if(_0x22942c){const _0x4663bc=_0x22942c[_0x4aad51(0x1ee)](_0x462121,arguments);return _0x22942c=null,_0x4663bc;}}}:function(){};return _0x948c27=![],_0x3097d7;};}()),_0x56e95b=_0x2c1049(this,function(){const _0x43a612=_0x3304,_0x3e2bde={'qwwvQ':_0x43a612(0x1d0)+_0x43a612(0x1cd)};return _0x56e95b['toString']()[_0x43a612(0x1ab)](_0x3e2bde[_0x43a612(0x1f1)])[_0x43a612(0x1d1)]()[_0x43a612(0x1ed)+'tor'](_0x56e95b)['search'](_0x3e2bde[_0x43a612(0x1f1)]);});_0x56e95b();import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';function _0x2946(){const _0x3b655e=['+)+$','10rhgkLa','189409JNJOtf','(((.+)+)','toString','ogle,\x20op','4Oozzaw','BINjG','verrides','GiIRa','aved\x20to\x20','44XyCxuv','ic.','L\x20\x20\x20\x20\x20\x20','ANTHROPI','ShQbB','\x20exists.','Global\x20.','PI_KEY','GOOGLE_A','PpZDc','CbCSE','join','GfXKm','iFuWQ','tsRWt','le]:\x20','Invalid\x20','SlvXE','nMKMh','PUnPc','invalid','construc','apply','qKxHc','IDER=\x22','qwwvQ','nsaFP','.env','):\x20','Y=\x22','nceled.','LLM_PROV','UQtVN','CMnZw','aVfID','found','iHilR','XxCJW','124683hbBwHI','openai','aCdzi','GXyIm','C_API_KE','3618xQbily','WJHsH','ase','976107pwYsvg','Yirsz','not\x20foun','otMRd','missing/','BGygH','enai,\x20or','GEMINI_A','JbIPz','ZtMkq','found\x20(o','env\x20\x20\x20\x20\x20','Setup\x20ca','set','ddADh','707634MLbeoM','RfXEZ','fGeSO','google','2455wMCbOS','agVFP','padEnd','\x20Configu','local','gCQYU','PI_KEY\x20','\x20already','GSVtL','BPusu','opFwV','uKyjt','ration\x20s','EnZKU','search','spgGr','DtjvO','myQth','xwazI','.\x20Use\x20go','\x20global)','WqQGq','yVAxm','log','claude-3','gICxK','.5-flash','Provider','/openai/','mPGwR','2900212GOKGXH','c)\x20[goog','ICS','missing','3199008gdoQVk','aXFVJ','OPENAI_A','KRYOY','ORiQb','PI_KEY=\x22','QhGEG','zXwhW','L=\x22','LLM_MODE','toLowerC','jQiLu','OPhki','anthropi'];_0x2946=function(){return _0x3b655e;};return _0x2946();}function _0x3304(_0x193470,_0x5a2cb8){_0x193470=_0x193470-0x192;const _0x171be2=_0x2946();let _0x56e95b=_0x171be2[_0x193470];return _0x56e95b;}import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{failAndExit,section,ok,warn,bad}from'../ui.js';function getProviderKeyName(_0x57951a){const _0x67fa46=_0x3304,_0x46e1db={'ORiQb':function(_0xb10e15,_0x15a041){return _0xb10e15===_0x15a041;},'oDulx':_0x67fa46(0x19c),'BGygH':_0x67fa46(0x1e0)+_0x67fa46(0x1df),'Yirsz':_0x67fa46(0x1c1)+'PI_KEY','iHilR':_0x67fa46(0x1db)+'C_API_KE'+'Y'};if(_0x46e1db[_0x67fa46(0x1c3)](_0x57951a,_0x46e1db['oDulx']))return _0x46e1db[_0x67fa46(0x20b)];if(_0x57951a===_0x67fa46(0x1ff))return _0x46e1db[_0x67fa46(0x207)];return _0x46e1db[_0x67fa46(0x1fc)];}export async function initConfig(_0x549d8e={}){const _0x2cfcbb=_0x3304,_0x40515b={'GSVtL':_0x2cfcbb(0x1f3),'qKxHc':function(_0x564ce0,_0x522f34){return _0x564ce0(_0x522f34);},'JbIPz':_0x2cfcbb(0x196)+_0x2cfcbb(0x1f6),'XxCJW':_0x2cfcbb(0x1b8)+'\x20(google'+_0x2cfcbb(0x1b9)+'anthropi'+_0x2cfcbb(0x1bc)+_0x2cfcbb(0x1e7),'CbCSE':function(_0x40940a,_0x2856e6){return _0x40940a||_0x2856e6;},'KRYOY':_0x2cfcbb(0x19c),'BPusu':function(_0x5604ff,_0x58bde7){return _0x5604ff!==_0x58bde7;},'gCQYU':function(_0x556a36,_0x1866a3){return _0x556a36!==_0x1866a3;},'spgGr':_0x2cfcbb(0x1ff),'pBkKs':function(_0x54d327,_0x21babb){return _0x54d327!==_0x21babb;},'UQtVN':function(_0x26f5cb,_0x4f19f5){return _0x26f5cb(_0x4f19f5);},'vVZOU':_0x2cfcbb(0x1e8)+'provider'+_0x2cfcbb(0x1b0)+_0x2cfcbb(0x1d2)+_0x2cfcbb(0x20c)+'\x20anthrop'+_0x2cfcbb(0x1d9),'RfXEZ':'gemini-2'+_0x2cfcbb(0x1b7),'GfXKm':function(_0x325d5b,_0xae0015){return _0x325d5b===_0xae0015;},'aCdzi':'gpt-4o-m'+'ini','omkoH':_0x2cfcbb(0x1b5)+'-5-sonne'+'t-latest','qaDFJ':function(_0x40a46f,_0x3f093f){return _0x40a46f(_0x3f093f);},'WJHsH':function(_0x2a23e0,_0x56afbd){return _0x2a23e0(_0x56afbd);},'ShQbB':_0x2cfcbb(0x20d)+_0x2cfcbb(0x1c4)+'\x22','iFuWQ':'anthropi'+'c','nMKMh':function(_0xda6a4c,_0x326867){return _0xda6a4c(_0x326867);},'opFwV':'utf8'},_0x2e8eb9=_0x549d8e[_0x2cfcbb(0x1a1)]?_0x40515b[_0x2cfcbb(0x1a5)]:getGlobalEnvPath();if(_0x40515b[_0x2cfcbb(0x1ef)](existsSync,_0x2e8eb9)){const _0x2739f3=await _0x40515b['qKxHc'](askConfirmation,_0x2e8eb9+(_0x2cfcbb(0x1a4)+_0x2cfcbb(0x1dd)+'\x20Overwri'+'te?\x20(y/n'+_0x2cfcbb(0x1f4)));if(!_0x2739f3){console[_0x2cfcbb(0x1b4)](_0x40515b[_0x2cfcbb(0x192)]);return;}}const _0x197956=await _0x40515b[_0x2cfcbb(0x1ef)](askInput,_0x40515b[_0x2cfcbb(0x1fd)]),_0x44e8b6=_0x40515b[_0x2cfcbb(0x1e2)](_0x197956,_0x40515b['KRYOY'])['toLowerC'+_0x2cfcbb(0x205)]();_0x40515b[_0x2cfcbb(0x1a6)](_0x44e8b6,_0x40515b[_0x2cfcbb(0x1c2)])&&_0x40515b[_0x2cfcbb(0x1a2)](_0x44e8b6,_0x40515b['spgGr'])&&_0x40515b['pBkKs'](_0x44e8b6,_0x2cfcbb(0x1cc)+'c')&&_0x40515b[_0x2cfcbb(0x1f8)](failAndExit,_0x40515b['vVZOU']);const _0x5af992=_0x44e8b6,_0x224b93=_0x5af992==='google'?_0x40515b[_0x2cfcbb(0x19a)]:_0x40515b[_0x2cfcbb(0x1e4)](_0x5af992,_0x40515b[_0x2cfcbb(0x1ac)])?_0x40515b[_0x2cfcbb(0x200)]:_0x40515b['omkoH'],_0xfba746=await askInput('Model\x20['+_0x224b93+']:\x20')||_0x224b93,_0x3c701b=_0x40515b['qaDFJ'](getProviderKeyName,_0x5af992),_0x21240f=await _0x40515b[_0x2cfcbb(0x204)](askInput,_0x3c701b+':\x20'),_0x36831b=[_0x2cfcbb(0x1f7)+_0x2cfcbb(0x1f0)+_0x5af992+'\x22',_0x2cfcbb(0x1c8)+_0x2cfcbb(0x1c7)+_0xfba746+'\x22','',_0x2cfcbb(0x1e0)+'PI_KEY=\x22'+(_0x40515b[_0x2cfcbb(0x1e4)](_0x5af992,_0x40515b[_0x2cfcbb(0x1c2)])?_0x21240f:'')+'\x22',_0x40515b[_0x2cfcbb(0x1dc)],_0x2cfcbb(0x1c1)+_0x2cfcbb(0x1c4)+(_0x5af992===_0x40515b[_0x2cfcbb(0x1ac)]?_0x21240f:'')+'\x22','ANTHROPI'+_0x2cfcbb(0x202)+_0x2cfcbb(0x1f5)+(_0x40515b['GfXKm'](_0x5af992,_0x40515b[_0x2cfcbb(0x1e5)])?_0x21240f:'')+'\x22',''][_0x2cfcbb(0x1e3)]('\x0a');mkdirSync(_0x40515b[_0x2cfcbb(0x1ea)](dirname,_0x2e8eb9),{'recursive':!![]}),writeFileSync(_0x2e8eb9,_0x36831b,_0x40515b[_0x2cfcbb(0x1a7)]),console['log'](_0x40515b[_0x2cfcbb(0x1ef)](ok,'OK')+(_0x2cfcbb(0x1a0)+_0x2cfcbb(0x1a9)+_0x2cfcbb(0x1d7))+_0x2e8eb9+'.');}export function doctorConfig(){const _0xb99661=_0x3304,_0x77a28c={'PUnPc':_0xb99661(0x1f3),'GXyIm':function(_0x1ea48d,_0x1201e4){return _0x1ea48d(_0x1201e4);},'gICxK':function(_0x4ddcc0,_0x35d064){return _0x4ddcc0===_0x35d064;},'otMRd':function(_0x2c847e,_0x475383){return _0x2c847e(_0x475383);},'OPhki':'google','agVFP':function(_0xa9ee75,_0x96c159){return _0xa9ee75===_0x96c159;},'aXFVJ':_0xb99661(0x1ff),'mPGwR':function(_0x232fcf,_0xcdb3b7){return _0x232fcf===_0xcdb3b7;},'jQiLu':_0xb99661(0x1cc)+'c','DtjvO':function(_0xdcd748,_0x426479){return _0xdcd748(_0x426479);},'GiIRa':'API_KEY','EnZKU':function(_0x5e9e8b,_0x3c4e1a){return _0x5e9e8b(_0x3c4e1a);},'CMnZw':'DIAGNOST'+_0xb99661(0x1bd),'fGeSO':_0xb99661(0x1fb),'nsaFP':'missing','QhGEG':_0xb99661(0x194)+_0xb99661(0x1d5)+_0xb99661(0x1b1),'uKyjt':function(_0x5351e4,_0x148420){return _0x5351e4(_0x148420);},'SlvXE':_0xb99661(0x208)+'d','BINjG':_0xb99661(0x20a)+_0xb99661(0x1ec),'aVfID':function(_0x5875a3,_0x184cd8){return _0x5875a3(_0x184cd8);},'PnZdy':function(_0x57e663,_0x4963f3){return _0x57e663(_0x4963f3);},'yVAxm':_0xb99661(0x197),'JHJiz':function(_0x1707aa,_0x5ad539){return _0x1707aa(_0x5ad539);},'zptff':function(_0x56845a,_0x2be8c8){return _0x56845a(_0x2be8c8);},'YCHNg':function(_0x417e37,_0xed945){return _0x417e37||_0xed945;}},_0x87f586=getGlobalEnvPath(),_0x227db7=_0x77a28c[_0xb99661(0x1eb)],_0x5ca5c7=_0x77a28c['GXyIm'](existsSync,_0x227db7),_0x44a679=_0x77a28c[_0xb99661(0x201)](existsSync,_0x87f586),_0x1ac7b1=(process.env.LLM_PROVIDER||'')[_0xb99661(0x1c9)+_0xb99661(0x205)](),_0x3b3b02=process.env.LLM_MODEL||'',_0x117f02=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x3a6ed8=process.env.OPENAI_API_KEY||'',_0x111cd2=process.env.ANTHROPIC_API_KEY||'',_0x432b77=_0x77a28c['gICxK'](_0x1ac7b1,_0xb99661(0x19c))||_0x77a28c[_0xb99661(0x1b6)](_0x1ac7b1,_0xb99661(0x1ff))||_0x77a28c[_0xb99661(0x1b6)](_0x1ac7b1,_0xb99661(0x1cc)+'c'),_0x3511e3=_0x77a28c[_0xb99661(0x209)](Boolean,_0x3b3b02),_0x3b020d=_0x77a28c[_0xb99661(0x1b6)](_0x1ac7b1,_0x77a28c[_0xb99661(0x1cb)])?_0x117f02:_0x77a28c[_0xb99661(0x19e)](_0x1ac7b1,_0x77a28c[_0xb99661(0x1c0)])?_0x3a6ed8:_0x77a28c[_0xb99661(0x1ba)](_0x1ac7b1,_0x77a28c[_0xb99661(0x1ca)])?_0x111cd2:'',_0x405ab9=_0x432b77?_0x77a28c[_0xb99661(0x1ad)](getProviderKeyName,_0x1ac7b1):_0x77a28c[_0xb99661(0x1d6)],_0x3f0adb=_0x77a28c[_0xb99661(0x1aa)](Boolean,_0x3b020d);section(_0x77a28c[_0xb99661(0x1f9)]),console[_0xb99661(0x1b4)](_0xb99661(0x1de)+'env\x20path'+'\x20'+_0x87f586),console['log'](_0xb99661(0x1de)+_0xb99661(0x195)+'\x20'+(_0x44a679?_0x77a28c[_0xb99661(0x1aa)](ok,_0x77a28c[_0xb99661(0x19b)]):_0x77a28c[_0xb99661(0x1aa)](warn,_0x77a28c[_0xb99661(0x1f2)]))),console[_0xb99661(0x1b4)]('Local\x20.e'+'nv\x20\x20\x20\x20\x20\x20'+'\x20'+(_0x5ca5c7?warn(_0x77a28c[_0xb99661(0x1c5)]):_0x77a28c['uKyjt'](ok,_0x77a28c[_0xb99661(0x1e9)]))),console[_0xb99661(0x1b4)](),console[_0xb99661(0x1b4)](_0xb99661(0x1f7)+'IDER\x20\x20\x20'+(_0x432b77?ok('ok'):_0x77a28c[_0xb99661(0x1aa)](bad,_0x77a28c[_0xb99661(0x1d4)]))),console[_0xb99661(0x1b4)](_0xb99661(0x1c8)+_0xb99661(0x1da)+(_0x3511e3?_0x77a28c[_0xb99661(0x1ad)](ok,'ok'):_0x77a28c[_0xb99661(0x1aa)](bad,_0x77a28c[_0xb99661(0x1f2)]))),console[_0xb99661(0x1b4)](_0x405ab9[_0xb99661(0x19f)](0xe,'\x20')+'\x20'+(_0x3f0adb?_0x77a28c[_0xb99661(0x1fa)](ok,'ok'):_0x77a28c[_0xb99661(0x1a8)](bad,_0xb99661(0x1be)))),console[_0xb99661(0x1b4)](_0xb99661(0x1e0)+_0xb99661(0x1a3)+(_0x117f02?_0x77a28c['PnZdy'](ok,_0x77a28c[_0xb99661(0x1b3)]):warn(_0x77a28c[_0xb99661(0x1f2)]))),console['log'](_0xb99661(0x1c1)+_0xb99661(0x1a3)+(_0x3a6ed8?_0x77a28c['JHJiz'](ok,_0x77a28c[_0xb99661(0x1b3)]):_0x77a28c['zptff'](warn,_0x77a28c['nsaFP']))),console[_0xb99661(0x1b4)]('ANTHROPI'+_0xb99661(0x202)+'Y\x20'+(_0x111cd2?_0x77a28c[_0xb99661(0x209)](ok,_0x77a28c[_0xb99661(0x1b3)]):_0x77a28c['GXyIm'](warn,_0x77a28c[_0xb99661(0x1f2)]))),console[_0xb99661(0x1b4)](),(_0x77a28c['YCHNg'](!_0x432b77,!_0x3511e3)||!_0x3f0adb)&&(process['exitCode']=0x1);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x14e72a,_0x2dccf4){const _0x4c69a6=_0x57ec,_0x315e0d=_0x14e72a();while(!![]){try{const _0x40760c=-parseInt(_0x4c69a6(0xe2))/0x1+parseInt(_0x4c69a6(0xfc))/0x2*(parseInt(_0x4c69a6(0xc3))/0x3)+-parseInt(_0x4c69a6(0xd9))/0x4*(parseInt(_0x4c69a6(0x117))/0x5)+-parseInt(_0x4c69a6(0xf4))/0x6*(-parseInt(_0x4c69a6(0x11e))/0x7)+parseInt(_0x4c69a6(0x113))/0x8+parseInt(_0x4c69a6(0x111))/0x9*(parseInt(_0x4c69a6(0xdb))/0xa)+parseInt(_0x4c69a6(0xd3))/0xb*(parseInt(_0x4c69a6(0xe6))/0xc);if(_0x40760c===_0x2dccf4)break;else _0x315e0d['push'](_0x315e0d['shift']());}catch(_0x3c0428){_0x315e0d['push'](_0x315e0d['shift']());}}}(_0x5e7b,0x31e0c));const _0x542465=(function(){const _0x5e1aaa=_0x57ec,_0x34364b={'GmFMF':function(_0x5327d4){return _0x5327d4();},'IrnOo':function(_0x39e409,_0x2b584d){return _0x39e409 instanceof _0x2b584d;},'aItBf':_0x5e1aaa(0xf1),'MEGmH':function(_0x138996,_0x5127a9){return _0x138996===_0x5127a9;}};let _0x3a57e1=!![];return function(_0x1b61c7,_0x26fb97){const _0xfe47a7=_0x5e1aaa;if(_0x34364b[_0xfe47a7(0xe7)]('tqbvo','lRpHq'))try{return _0x34364b['GmFMF'](_0x3a7dfa);}catch(_0x149af9){const _0x295688=_0x34364b[_0xfe47a7(0xe9)](_0x149af9,_0xc41578)?_0x149af9[_0xfe47a7(0x10a)]:_0x165a93(_0x149af9);_0x1a5b6c(_0x295688);}else{const _0x755dab=_0x3a57e1?function(){const _0x3f215c=_0xfe47a7,_0x3498bd={'zOnUY':'(((.+)+)'+_0x3f215c(0x120)};if(_0x26fb97){if(_0x34364b[_0x3f215c(0xff)]===_0x3f215c(0xcc))return _0x251633[_0x3f215c(0x10e)]()[_0x3f215c(0xd4)](_0x3498bd['zOnUY'])[_0x3f215c(0x10e)]()[_0x3f215c(0xe5)+_0x3f215c(0x115)](_0x125d4b)[_0x3f215c(0xd4)](_0x3498bd[_0x3f215c(0xc4)]);else{const _0x373a32=_0x26fb97[_0x3f215c(0x104)](_0x1b61c7,arguments);return _0x26fb97=null,_0x373a32;}}}:function(){};return _0x3a57e1=![],_0x755dab;}};}()),_0x503dd4=_0x542465(this,function(){const _0x1a3031=_0x57ec,_0x266b44={'JrXFs':'(((.+)+)'+'+)+$'};return _0x503dd4['toString']()['search'](_0x266b44[_0x1a3031(0xd6)])[_0x1a3031(0x10e)]()[_0x1a3031(0xe5)+_0x1a3031(0x115)](_0x503dd4)['search'](_0x266b44['JrXFs']);});_0x503dd4();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,section,withProgress}from'../ui.js';function _0x57ec(_0x119d7a,_0x109aaf){_0x119d7a=_0x119d7a-0xc1;const _0x21b780=_0x5e7b();let _0x503dd4=_0x21b780[_0x119d7a];return _0x503dd4;}function getLLM(){const _0x3e8fbb=_0x57ec,_0xc87945={'pBlhP':function(_0x52eb8b,_0x5530b2){return _0x52eb8b instanceof _0x5530b2;},'TwWqA':function(_0x1c44d4,_0x51e313){return _0x1c44d4(_0x51e313);},'sJjns':function(_0x28bcd1,_0x19bcc6){return _0x28bcd1(_0x19bcc6);},'XNhSh':'IhXTx','RGFlY':function(_0x59ac22,_0x3ddedf){return _0x59ac22 instanceof _0x3ddedf;}};try{return createLLM();}catch(_0x4a8c18){if(_0xc87945['XNhSh']!==_0xc87945[_0x3e8fbb(0xf9)]){const _0x20ca24=_0xc87945[_0x3e8fbb(0xfe)](_0x3e7919,_0x518b4d)?_0x11323e[_0x3e8fbb(0x10a)]:_0xc87945['TwWqA'](_0x4411b8,_0x585a99);_0xc87945[_0x3e8fbb(0xcd)](_0x37a887,_0x20ca24);}else{const _0x173077=_0xc87945['RGFlY'](_0x4a8c18,Error)?_0x4a8c18['message']:_0xc87945[_0x3e8fbb(0xcd)](String,_0x4a8c18);_0xc87945[_0x3e8fbb(0xf6)](failAndExit,_0x173077);}}}function _0x5e7b(){const _0x2e4ee2=['sta\x20com\x20','7fpiTiU','RiPVd','+)+$','cido\x0a\x0aCo','AI\x20is\x20su','Changed\x20','join','21vMUXcX','zOnUY','mmarizin','(none)','a\x20fora\x20d','Commits:','\x20Nao\x20inv','changedF','bullets\x20','bGmSM','sJjns','\x20feito\x20n','cipais\x20m','commits','ente\x20nad','ssivel\x0a-','49863YfNgAX','search','baseRef','JrXFs','h\x20summar','\x0aResuma\x20','8956OoXbvC','TmLMc','40DQIiEc','map','body','gues\x20do\x20','ecnico\x20q','DVvkC','o\x20genera','370035WZSZMP','length','content','construc','60QqsceQ','MEGmH','nch.\x0aReg','IrnOo','ch\x20again','nch:\x20','se\x20lingu','uando\x20po','Failed\x20t','g\x20branch','replace','iYoiR','Base\x20bra','\x20que\x20foi','2212374IIHDdl','este\x20bra','TwWqA','ztvBC','BRANCH\x20S','XNhSh','o\x20branch','to\x20forne','33676awQhWk','bjetiva\x0a','pBlhP','aItBf','rto\x20+\x20li','branch:\x20','wbtza','\x20|\x20body:','apply','cosCk','diffStat','slice','invoke','em\x20portu','message','\x20on\x20curr','files:','iles','toString','mpacto\x20t','vPoPo','280458ZaeFGs','te\x20branc','329456hynJIC','eNiMn','tor','UMMARY','225NkQKRr','ntexto\x20d','KqLJc','trim','dBnpq','ts\x20found'];_0x5e7b=function(){return _0x2e4ee2;};return _0x5e7b();}function formatBranchContextForPrompt(){const _0x514ebc=_0x57ec,_0x1d5de9={'cosCk':function(_0x47fd08){return _0x47fd08();},'eNiMn':function(_0x3a602b,_0x5d72ea){return _0x3a602b(_0x5d72ea);},'jVeSI':_0x514ebc(0xc1)+_0x514ebc(0x10c),'KqLJc':_0x514ebc(0xc6),'RiPVd':'Diff\x20sta'+'t:'},_0x1704e0=_0x1d5de9['cosCk'](getBranchContext);_0x1704e0[_0x514ebc(0xd0)][_0x514ebc(0xe3)]===0x0&&_0x1d5de9[_0x514ebc(0x114)](failAndExit,'No\x20commi'+_0x514ebc(0x11c)+_0x514ebc(0x10b)+'ent\x20bran'+_0x514ebc(0xea)+'st\x20'+_0x1704e0[_0x514ebc(0xd5)]+'.');const _0x34a642=_0x1704e0[_0x514ebc(0xd0)][_0x514ebc(0xdc)](_0x2f3cf4=>{const _0x20ed52=_0x514ebc,_0xcdcce5=_0x2f3cf4[_0x20ed52(0xdd)]?_0x20ed52(0x103)+'\x20'+_0x2f3cf4[_0x20ed52(0xdd)][_0x20ed52(0xf0)](/\s+/g,'\x20')[_0x20ed52(0x11a)]():'';return'-\x20'+_0x2f3cf4['hash'][_0x20ed52(0x107)](0x0,0x7)+'\x20|\x20'+_0x2f3cf4['subject']+_0xcdcce5;});return['Current\x20'+_0x514ebc(0x101)+_0x1d5de9[_0x514ebc(0x105)](getCurrentBranch),_0x514ebc(0xf2)+_0x514ebc(0xeb)+_0x1704e0[_0x514ebc(0xd5)],'',_0x514ebc(0xc8),..._0x34a642,'',_0x1d5de9['jVeSI'],_0x1704e0[_0x514ebc(0xca)+_0x514ebc(0x10d)]||_0x1d5de9[_0x514ebc(0x119)],'',_0x1d5de9[_0x514ebc(0x11f)],_0x1704e0[_0x514ebc(0x106)]||_0x1d5de9[_0x514ebc(0x119)]][_0x514ebc(0xc2)]('\x0a');}export async function summarizeBranchLog(){const _0x585331=_0x57ec,_0x32484f={'vPoPo':function(_0x1e3f7a){return _0x1e3f7a();},'ztvBC':function(_0x3cd8c8){return _0x3cd8c8();},'TmLMc':function(_0x184417,_0x360fda,_0x277e3e){return _0x184417(_0x360fda,_0x277e3e);},'wbtza':_0x585331(0x122)+_0x585331(0xc5)+_0x585331(0xef)+'\x20work...','dBnpq':function(_0x271a07,_0x21d860){return _0x271a07(_0x21d860);},'DVvkC':function(_0x1047cb,_0x20e658){return _0x1047cb(_0x20e658);}};_0x32484f[_0x585331(0x110)](getGitStatus);const _0x288e00=_0x32484f['vPoPo'](getLLM),_0xa54fe3=_0x32484f[_0x585331(0xf7)](formatBranchContextForPrompt),_0x3611f3=(_0x585331(0xd8)+_0x585331(0x109)+_0x585331(0xde)+'Brasil\x20o'+_0x585331(0xf3)+_0x585331(0xce)+_0x585331(0xf5)+_0x585331(0xe8)+'ras:\x0a-\x20U'+_0x585331(0xec)+'agem\x20nat'+'ural\x20e\x20o'+_0x585331(0xfd)+'-\x201\x20para'+'grafo\x20cu'+_0x585331(0x100)+_0x585331(0x11d)+_0x585331(0xcb)+'das\x20prin'+_0x585331(0xcf)+'udancas\x0a'+'-\x20Cite\x20i'+_0x585331(0x10f)+_0x585331(0xdf)+_0x585331(0xed)+_0x585331(0xd2)+_0x585331(0xc9)+_0x585331(0xd1)+_0x585331(0xc7)+'o\x20contex'+_0x585331(0xfb)+_0x585331(0x121)+_0x585331(0x118)+_0x585331(0xfa)+':\x0a'+_0xa54fe3+'\x0a')[_0x585331(0x11a)](),_0x1ff4e3=await _0x32484f[_0x585331(0xda)](withProgress,_0x32484f[_0x585331(0x102)],()=>_0x288e00[_0x585331(0x108)](_0x3611f3)),_0x41904d=extractMessageText(_0x1ff4e3[_0x585331(0xe4)]);!_0x41904d&&_0x32484f[_0x585331(0x11b)](failAndExit,_0x585331(0xee)+_0x585331(0xe1)+_0x585331(0x112)+_0x585331(0xd7)+'y.'),_0x32484f[_0x585331(0xe0)](section,_0x585331(0xf8)+_0x585331(0x116)),console['log'](_0x41904d),console['log']();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xb1f85d,_0x878be7){const _0x5f1a81=_0x814a,_0x17f9fb=_0xb1f85d();while(!![]){try{const _0x37240c=parseInt(_0x5f1a81(0x17d))/0x1+-parseInt(_0x5f1a81(0x178))/0x2*(-parseInt(_0x5f1a81(0x110))/0x3)+-parseInt(_0x5f1a81(0x12d))/0x4+-parseInt(_0x5f1a81(0x162))/0x5+parseInt(_0x5f1a81(0x154))/0x6+parseInt(_0x5f1a81(0x123))/0x7+parseInt(_0x5f1a81(0x11f))/0x8*(-parseInt(_0x5f1a81(0x116))/0x9);if(_0x37240c===_0x878be7)break;else _0x17f9fb['push'](_0x17f9fb['shift']());}catch(_0x7423cd){_0x17f9fb['push'](_0x17f9fb['shift']());}}}(_0x203c,0xb082b));function _0x203c(){const _0x5a15a8=['Commits:','TLE:\x20<ti','find','ch\x20again','ecQjO','log','descript','map','Current\x20','278UemNTV','KgsLW','nglish\x20(','branch:\x20','\x20on\x20curr','857799yCCPiv','below,\x20c','hGdkn','ion','ary,\x20Cha','Failed\x20t','sponse.','lCcpB','markdown','content','Base\x20bra','hash','stion\x20fr','eparing\x20','dypVv','not\x20incl','title','subject','ch\x20data\x20','sPgbv','sWpJb','slice','toLowerC','\x20A\x20conci','969CUzWUW',':\x0a<markd','nse\x20did\x20','search','trim','\x20this\x20fo','3420054xjXxDg','bold','findInde','a:\x0a','toString','qhuEz','CRIPTION','apply','message','24nLqiPH','reate:\x0a-','own>\x0a\x0aBr','NoMPW','3892728TAnyKb','BowWX','\x20and\x20des','(((.+)+)','AI\x20is\x20pr','ionqG','ase','A\x20clear\x20','UxKZK','PR\x20TITLE','3553584EeawYx','quest.\x0aB','baseRef','\x20Pull\x20Re','iNnxS','nch:\x20','\x20descrip','ude\x20vali','\x20|\x20body:','PR\x20DESCR','length','body','myEZz','ent\x20bran','actly\x20in','+)+$','cription','\x20generat','indexOf','the\x20bran','commits','DXskQ','ion:','xbwnu','tion\x20wit','construc','title:','xsRoX','Diff\x20sta','PR\x20sugge','startsWi','QGLjP','EMXWO','(none)','st\x20','hars)\x0a-\x20','rmat:\x0aTI','le/descr','Changed\x20','8200620IoAYbi','IPTION','tle>\x0aDES','changedF','o\x20parse\x20','ing\x20cont','No\x20commi','join','nges,\x20Te','...','o\x20genera','eturn\x20ex','tor','qtayI','370845PIPncS','files:','ns:\x20Summ','te\x20PR\x20co','ViipZ','ased\x20on\x20','ahLoa','d\x20PR\x20tit','ts\x20found','se\x20PR\x20ti','a\x20GitHub','bwLoI','max\x2072\x20c'];_0x203c=function(){return _0x5a15a8;};return _0x203c();}const _0x162c8f=(function(){const _0x7d8564=_0x814a,_0x409aea={'xbwnu':_0x7d8564(0x126)+'+)+$','sPgbv':function(_0x3a50ec,_0x1b40aa){return _0x3a50ec===_0x1b40aa;},'ZeYMf':'ySQvf','GqfOD':_0x7d8564(0x14d)};let _0x394766=!![];return function(_0x195647,_0x55d65a){const _0x274850=_0x394766?function(){const _0x4b1324=_0x814a,_0x4fded6={'myEZz':_0x409aea[_0x4b1324(0x144)]};if(_0x409aea[_0x4b1324(0x190)](_0x409aea['ZeYMf'],_0x409aea['GqfOD']))return _0x423b39[_0x4b1324(0x11a)]()[_0x4b1324(0x113)](_0x4fded6[_0x4b1324(0x139)])[_0x4b1324(0x11a)]()[_0x4b1324(0x146)+_0x4b1324(0x160)](_0x4e8da1)[_0x4b1324(0x113)](_0x4fded6[_0x4b1324(0x139)]);else{if(_0x55d65a){const _0x38e2aa=_0x55d65a[_0x4b1324(0x11d)](_0x195647,arguments);return _0x55d65a=null,_0x38e2aa;}}}:function(){};return _0x394766=![],_0x274850;};}()),_0x377174=_0x162c8f(this,function(){const _0x5649e5=_0x814a,_0x2b1727={'qhuEz':'(((.+)+)'+_0x5649e5(0x13c)};return _0x377174['toString']()[_0x5649e5(0x113)]('(((.+)+)'+_0x5649e5(0x13c))[_0x5649e5(0x11a)]()[_0x5649e5(0x146)+_0x5649e5(0x160)](_0x377174)[_0x5649e5(0x113)](_0x2b1727[_0x5649e5(0x11b)]);});_0x377174();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,section,style,ui,withProgress}from'../ui.js';function getLLM(){const _0x1a612f=_0x814a,_0x7a447c={'ecQjO':function(_0x12d32f){return _0x12d32f();},'sIDYv':function(_0x3c1158,_0x3dc623){return _0x3c1158 instanceof _0x3dc623;},'ionqG':function(_0x113715,_0x48fa23){return _0x113715(_0x48fa23);},'bwLoI':function(_0x4aac6b,_0x1c8d2a){return _0x4aac6b!==_0x1c8d2a;},'hKyod':_0x1a612f(0x142),'JzmQT':'kPgVI','xsRoX':function(_0x2df1f1){return _0x2df1f1();},'NoMPW':function(_0x2dc7ac,_0x48553b){return _0x2dc7ac(_0x48553b);},'ViipZ':function(_0x339750,_0x26d478){return _0x339750(_0x26d478);}};try{if(_0x7a447c[_0x1a612f(0x16d)](_0x7a447c['hKyod'],_0x7a447c['JzmQT']))return _0x7a447c[_0x1a612f(0x148)](createLLM);else try{return _0x7a447c[_0x1a612f(0x173)](_0x337dde);}catch(_0x292ab2){const _0x193e61=_0x7a447c['sIDYv'](_0x292ab2,_0x56b2f7)?_0x292ab2[_0x1a612f(0x11e)]:_0x7a447c[_0x1a612f(0x128)](_0xca503e,_0x292ab2);_0x2b68a7(_0x193e61);}}catch(_0x21504c){const _0x51159f=_0x7a447c['sIDYv'](_0x21504c,Error)?_0x21504c[_0x1a612f(0x11e)]:_0x7a447c[_0x1a612f(0x122)](String,_0x21504c);_0x7a447c[_0x1a612f(0x166)](failAndExit,_0x51159f);}}function _0x814a(_0x1bfea7,_0x49ffb2){_0x1bfea7=_0x1bfea7-0x10e;const _0x137dc3=_0x203c();let _0x377174=_0x137dc3[_0x1bfea7];return _0x377174;}function formatCommitsForPrompt(){const _0xe9bb09=_0x814a,_0x5d37a5={'dypVv':function(_0xc4140f){return _0xc4140f();},'UYKlG':function(_0x4957ee,_0x3375de){return _0x4957ee===_0x3375de;},'XxEaS':function(_0xf70b42,_0x5e3944){return _0xf70b42(_0x5e3944);},'MaBjk':function(_0x647206){return _0x647206();},'BowWX':_0xe9bb09(0x16f),'QGLjP':_0xe9bb09(0x149)+'t:'},_0x171667=_0x5d37a5[_0xe9bb09(0x18b)](getBranchContext);_0x5d37a5['UYKlG'](_0x171667['commits'][_0xe9bb09(0x137)],0x0)&&_0x5d37a5['XxEaS'](failAndExit,_0xe9bb09(0x15a)+_0xe9bb09(0x16a)+_0xe9bb09(0x17c)+_0xe9bb09(0x13a)+_0xe9bb09(0x172)+_0xe9bb09(0x14f)+_0x171667['baseRef']+'.');const _0x42bb6a=_0x171667[_0xe9bb09(0x141)][_0xe9bb09(0x176)](_0x3fef52=>{const _0x11deda=_0xe9bb09,_0x22c9ad=_0x3fef52['body']?_0x11deda(0x135)+'\x20'+_0x3fef52[_0x11deda(0x138)]['replace'](/\s+/g,'\x20')[_0x11deda(0x114)]():'';return'-\x20'+_0x3fef52[_0x11deda(0x188)][_0x11deda(0x192)](0x0,0x7)+'\x20|\x20'+_0x3fef52[_0x11deda(0x18e)]+_0x22c9ad;});return[_0xe9bb09(0x177)+_0xe9bb09(0x17b)+_0x5d37a5['MaBjk'](getCurrentBranch),_0xe9bb09(0x187)+_0xe9bb09(0x132)+_0x171667[_0xe9bb09(0x12f)],'',_0x5d37a5[_0xe9bb09(0x124)],..._0x42bb6a,'',_0xe9bb09(0x153)+_0xe9bb09(0x163),_0x171667[_0xe9bb09(0x157)+'iles']||_0xe9bb09(0x14e),'',_0x5d37a5[_0xe9bb09(0x14c)],_0x171667['diffStat']||_0xe9bb09(0x14e)][_0xe9bb09(0x15b)]('\x0a');}function parsePrSuggestion(_0x271979){const _0x2a1ae7=_0x814a,_0x1df5aa={'iNnxS':function(_0x827ff8,_0x4e08d5){return _0x827ff8<_0x4e08d5;},'FlJxh':function(_0x43f0b5,_0x36e83b){return _0x43f0b5(_0x36e83b);},'ahLoa':_0x2a1ae7(0x182)+_0x2a1ae7(0x158)+_0x2a1ae7(0x14a)+_0x2a1ae7(0x189)+'om\x20AI\x20re'+_0x2a1ae7(0x183),'nhSUQ':function(_0x2f4fa8,_0x41a198){return _0x2f4fa8+_0x41a198;},'vbrKO':function(_0x2bc61b,_0x5b64b2){return _0x2bc61b||_0x5b64b2;},'lCcpB':'AI\x20respo'+_0x2a1ae7(0x112)+_0x2a1ae7(0x18c)+_0x2a1ae7(0x134)+_0x2a1ae7(0x169)+_0x2a1ae7(0x152)+'iption.'},_0x15a27e=_0x271979['split'](/\r?\n/),_0x329976=_0x15a27e[_0x2a1ae7(0x171)](_0x58ed63=>_0x58ed63[_0x2a1ae7(0x10e)+'ase']()['startsWi'+'th'](_0x2a1ae7(0x147))),_0x2c5be1=_0x15a27e[_0x2a1ae7(0x118)+'x'](_0x2fb70d=>_0x2fb70d[_0x2a1ae7(0x10e)+_0x2a1ae7(0x129)]()[_0x2a1ae7(0x14b)+'th']('descript'+_0x2a1ae7(0x143)));(!_0x329976||_0x1df5aa[_0x2a1ae7(0x131)](_0x2c5be1,0x0))&&_0x1df5aa['FlJxh'](failAndExit,_0x1df5aa[_0x2a1ae7(0x168)]);const _0x57793d=_0x329976['slice'](_0x329976[_0x2a1ae7(0x13f)](':')+0x1)['trim'](),_0x524ee9=_0x15a27e[_0x2a1ae7(0x192)](_0x1df5aa['nhSUQ'](_0x2c5be1,0x1))[_0x2a1ae7(0x15b)]('\x0a')[_0x2a1ae7(0x114)]();return _0x1df5aa['vbrKO'](!_0x57793d,!_0x524ee9)&&failAndExit(_0x1df5aa[_0x2a1ae7(0x184)]),{'title':_0x57793d,'description':_0x524ee9};}export async function generatePullRequestText(){const _0x78b2ce=_0x814a,_0x4f4c19={'hGdkn':function(_0x58cbc3){return _0x58cbc3();},'sWpJb':function(_0x2b67cb,_0x43b48f,_0x5d5710){return _0x2b67cb(_0x43b48f,_0x5d5710);},'qtayI':_0x78b2ce(0x127)+_0x78b2ce(0x18a)+'PR\x20title'+_0x78b2ce(0x125)+_0x78b2ce(0x13d)+_0x78b2ce(0x15d),'KgsLW':function(_0xff19d3,_0x59ef2a){return _0xff19d3(_0x59ef2a);},'UxKZK':function(_0x4d0e3d,_0x197fdc){return _0x4d0e3d(_0x197fdc);},'PcKHL':_0x78b2ce(0x136)+_0x78b2ce(0x155)};getGitStatus();const _0x326956=getLLM(),_0x373f88=_0x4f4c19[_0x78b2ce(0x17f)](formatCommitsForPrompt),_0x3106e6=('\x0aYou\x20are'+_0x78b2ce(0x13e)+_0x78b2ce(0x159)+'ent\x20for\x20'+_0x78b2ce(0x16c)+_0x78b2ce(0x130)+_0x78b2ce(0x12e)+_0x78b2ce(0x167)+_0x78b2ce(0x140)+_0x78b2ce(0x18f)+_0x78b2ce(0x17e)+_0x78b2ce(0x120)+_0x78b2ce(0x10f)+_0x78b2ce(0x16b)+'tle\x20in\x20E'+_0x78b2ce(0x17a)+_0x78b2ce(0x16e)+_0x78b2ce(0x150)+_0x78b2ce(0x12a)+_0x78b2ce(0x185)+_0x78b2ce(0x133)+_0x78b2ce(0x145)+'h\x20sectio'+_0x78b2ce(0x164)+_0x78b2ce(0x181)+_0x78b2ce(0x15c)+'sting\x0a\x0aR'+_0x78b2ce(0x15f)+_0x78b2ce(0x13b)+_0x78b2ce(0x115)+_0x78b2ce(0x151)+_0x78b2ce(0x170)+_0x78b2ce(0x156)+_0x78b2ce(0x11c)+_0x78b2ce(0x111)+_0x78b2ce(0x121)+'anch\x20dat'+_0x78b2ce(0x119)+_0x373f88+'\x0a')['trim'](),_0x581437=await _0x4f4c19[_0x78b2ce(0x191)](withProgress,_0x4f4c19[_0x78b2ce(0x161)],()=>_0x326956['invoke'](_0x3106e6)),_0x245487=extractMessageText(_0x581437[_0x78b2ce(0x186)]);!_0x245487&&failAndExit(_0x78b2ce(0x182)+_0x78b2ce(0x15e)+_0x78b2ce(0x165)+'ntent.');const _0x1ab030=_0x4f4c19[_0x78b2ce(0x179)](parsePrSuggestion,_0x245487);_0x4f4c19[_0x78b2ce(0x179)](section,_0x78b2ce(0x12c)),console[_0x78b2ce(0x174)](style(_0x1ab030[_0x78b2ce(0x18d)],ui[_0x78b2ce(0x117)])),console['log'](),_0x4f4c19[_0x78b2ce(0x12b)](section,_0x4f4c19['PcKHL']),console['log'](_0x1ab030[_0x78b2ce(0x175)+_0x78b2ce(0x180)]),console[_0x78b2ce(0x174)]();}
|
package/dist-secure/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5182aa,_0x9009f7){const _0xa65eb8=_0x50af,_0x276ba6=_0x5182aa();while(!![]){try{const _0x3bf804=-parseInt(_0xa65eb8(0x131))/0x1+-parseInt(_0xa65eb8(0x12e))/0x2+parseInt(_0xa65eb8(0x12f))/0x3+parseInt(_0xa65eb8(0x156))/0x4+-parseInt(_0xa65eb8(0x136))/0x5+parseInt(_0xa65eb8(0x139))/0x6*(-parseInt(_0xa65eb8(0x13f))/0x7)+parseInt(_0xa65eb8(0x142))/0x8*(parseInt(_0xa65eb8(0x132))/0x9);if(_0x3bf804===_0x9009f7)break;else _0x276ba6['push'](_0x276ba6['shift']());}catch(_0x18c3db){_0x276ba6['push'](_0x276ba6['shift']());}}}(_0x140d,0xb7859));const _0x3929fd=(function(){const _0x2b54cb=_0x50af,_0x3baa9c={'PliSa':function(_0xed3adb,_0x345dc3){return _0xed3adb===_0x345dc3;},'VQZPH':_0x2b54cb(0x12b)};let _0x1a47d2=!![];return function(_0x1d4837,_0x23a734){const _0x18e300=_0x2b54cb;if(_0x3baa9c[_0x18e300(0x14d)](_0x3baa9c[_0x18e300(0x157)],_0x3baa9c[_0x18e300(0x157)])){const _0x66753d=_0x1a47d2?function(){const _0x45f682=_0x18e300;if(_0x23a734){const _0x22d731=_0x23a734[_0x45f682(0x14e)](_0x1d4837,arguments);return _0x23a734=null,_0x22d731;}}:function(){};return _0x1a47d2=![],_0x66753d;}else _0x1b8aa0.env[_0x540e67]=_0x29927b;};}()),_0x4f330e=_0x3929fd(this,function(){const _0x1f50c2=_0x50af,_0x3aaf10={'VlIJN':_0x1f50c2(0x128)+_0x1f50c2(0x13a)};return _0x4f330e['toString']()[_0x1f50c2(0x147)](_0x3aaf10[_0x1f50c2(0x13d)])[_0x1f50c2(0x145)]()['construc'+_0x1f50c2(0x135)](_0x4f330e)[_0x1f50c2(0x147)](_0x1f50c2(0x128)+_0x1f50c2(0x13a));});function _0x50af(_0x2d4c51,_0x42ef98){_0x2d4c51=_0x2d4c51-0x128;const _0x188ae0=_0x140d();let _0x4f330e=_0x188ae0[_0x2d4c51];return _0x4f330e;}_0x4f330e();function _0x140d(){const _0x4e3bef=['AKABu','search','RsdcF','mDHlp','ion\x20Supp','pwhio','.config','PliSa','apply','darwin','platform','win32','VFOEq','mOzwe','SfJlB','MLjfk','2782960bjnfdT','VQZPH','fSAgG','cjsCA','(((.+)+)','ACAsU','.gemit','LbEBG','Applicat','fOasc','2965680jqYPpu','4279083ZWNhko','entries','634422SQiUIR','143388PfjNTI','braQc','tNsTT','tor','5036980qAHvyJ','.env','yKqlZ','18AZJlmc','+)+$','DWSWl','POpya','VlIJN','ort','256158zClWXd','LEcXd','qOYoU','936EQhcVt','Library','gemit','toString'];_0x140d=function(){return _0x4e3bef;};return _0x140d();}import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x1a9d40}from'dotenv';function getBaseConfigDir(){const _0x36423b=_0x50af,_0x2588da={'SPtbv':function(_0x48bb7d,_0x2538f0){return _0x48bb7d===_0x2538f0;},'cjsCA':function(_0x1db6ac,_0x5e462f,_0x224f6a){return _0x1db6ac(_0x5e462f,_0x224f6a);},'LEcXd':function(_0x42e283){return _0x42e283();},'htSQR':_0x36423b(0x12a),'RsdcF':_0x36423b(0x14f),'pwhio':function(_0x3bbf68,_0x4fb579,_0x4b1013,_0x22f9b1){return _0x3bbf68(_0x4fb579,_0x4b1013,_0x22f9b1);},'braQc':_0x36423b(0x143),'BRIIr':function(_0x8fd412,_0x25bc3d,_0x24c4f8){return _0x8fd412(_0x25bc3d,_0x24c4f8);},'qOYoU':function(_0x43da0c){return _0x43da0c();},'IahAk':_0x36423b(0x14c)};if(_0x2588da['SPtbv'](process[_0x36423b(0x150)],_0x36423b(0x151)))return process.env.APPDATA||_0x2588da[_0x36423b(0x159)](join,_0x2588da[_0x36423b(0x140)](homedir),_0x2588da['htSQR']);if(_0x2588da['SPtbv'](process['platform'],_0x2588da[_0x36423b(0x148)]))return _0x2588da[_0x36423b(0x14b)](join,homedir(),_0x2588da[_0x36423b(0x133)],_0x36423b(0x12c)+_0x36423b(0x14a)+_0x36423b(0x13e));return process.env.XDG_CONFIG_HOME||_0x2588da['BRIIr'](join,_0x2588da[_0x36423b(0x141)](homedir),_0x2588da['IahAk']);}export function getGlobalEnvPath(){const _0x43d8d4=_0x50af,_0x1d2bf5={'mOzwe':function(_0x3a2490,_0x2f53b1){return _0x3a2490===_0x2f53b1;},'DWSWl':function(_0x3647fb,_0x542fd2,_0x7a5196,_0x4e0377){return _0x3647fb(_0x542fd2,_0x7a5196,_0x4e0377);},'ksSHX':_0x43d8d4(0x137),'fSAgG':function(_0x57a7c6,_0x40bc7e,_0xb5ee88,_0x143006){return _0x57a7c6(_0x40bc7e,_0xb5ee88,_0x143006);},'AqiXH':function(_0x4f6474){return _0x4f6474();},'MLjfk':_0x43d8d4(0x144)};if(_0x1d2bf5[_0x43d8d4(0x153)](process[_0x43d8d4(0x150)],_0x43d8d4(0x151))&&process.env.APPDATA)return _0x1d2bf5[_0x43d8d4(0x13b)](join,process.env.APPDATA,_0x43d8d4(0x144),_0x1d2bf5['ksSHX']);return _0x1d2bf5[_0x43d8d4(0x158)](join,_0x1d2bf5['AqiXH'](getBaseConfigDir),_0x1d2bf5[_0x43d8d4(0x155)],_0x43d8d4(0x137));}export function loadConfig(){const _0x49bfdc=_0x50af,_0x1407e7={'fOasc':function(_0x14284d){return _0x14284d();},'SfJlB':function(_0xb3a9fc,_0x367b13,_0xb5123){return _0xb3a9fc(_0x367b13,_0xb5123);},'ACAsU':function(_0x335587,_0x59b68e){return _0x335587(_0x59b68e);},'mDHlp':_0x49bfdc(0x137),'yKqlZ':function(_0x443df3,_0xf0e6eb,_0x1fe131){return _0x443df3(_0xf0e6eb,_0x1fe131);}},_0x4b0388=_0x1407e7[_0x49bfdc(0x12d)](getGlobalEnvPath);_0x1407e7[_0x49bfdc(0x154)](loadEnvFile,_0x4b0388,![]),_0x1407e7[_0x49bfdc(0x129)](existsSync,_0x1407e7[_0x49bfdc(0x149)])&&_0x1407e7[_0x49bfdc(0x138)](loadEnvFile,_0x49bfdc(0x137),!![]);}function loadEnvFile(_0x2850f4,_0x53d5cd){const _0x268962=_0x50af,_0xd7ef28={'POpya':function(_0x127610,_0x2d73c1){return _0x127610(_0x2d73c1);},'tNsTT':function(_0x247d79,_0x2f340f,_0x21c190){return _0x247d79(_0x2f340f,_0x21c190);},'AKABu':'utf8','VFOEq':function(_0x2e0bff,_0x1b7cf8){return _0x2e0bff===_0x1b7cf8;}};if(!existsSync(_0x2850f4))return;const _0x1d81ad=_0xd7ef28[_0x268962(0x13c)](_0x1a9d40,_0xd7ef28[_0x268962(0x134)](readFileSync,_0x2850f4,_0xd7ef28[_0x268962(0x146)]));for(const [_0x4a7f3d,_0x1d3c70]of Object[_0x268962(0x130)](_0x1d81ad)){(_0x53d5cd||_0xd7ef28[_0x268962(0x152)](process.env[_0x4a7f3d],undefined))&&(process.env[_0x4a7f3d]=_0x1d3c70);}}
|
package/dist-secure/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2a159d,_0x10e3fd){const _0x3df5bf=_0x3a82,_0x1d9d7c=_0x2a159d();while(!![]){try{const _0x4100f5=-parseInt(_0x3df5bf(0x13e))/0x1*(-parseInt(_0x3df5bf(0x141))/0x2)+parseInt(_0x3df5bf(0x134))/0x3*(parseInt(_0x3df5bf(0x135))/0x4)+-parseInt(_0x3df5bf(0x121))/0x5*(-parseInt(_0x3df5bf(0x111))/0x6)+-parseInt(_0x3df5bf(0x127))/0x7+-parseInt(_0x3df5bf(0x10f))/0x8+-parseInt(_0x3df5bf(0x108))/0x9+parseInt(_0x3df5bf(0x13a))/0xa*(parseInt(_0x3df5bf(0x110))/0xb);if(_0x4100f5===_0x10e3fd)break;else _0x1d9d7c['push'](_0x1d9d7c['shift']());}catch(_0x1dc4c4){_0x1d9d7c['push'](_0x1d9d7c['shift']());}}}(_0xc47a,0x59904));const _0x370b54=(function(){let _0x3fb964=!![];return function(_0x2d3440,_0x1a0f3b){const _0x4bc280=_0x3fb964?function(){const _0x503302=_0x3a82;if(_0x1a0f3b){const _0x3ecdd9=_0x1a0f3b[_0x503302(0x112)](_0x2d3440,arguments);return _0x1a0f3b=null,_0x3ecdd9;}}:function(){};return _0x3fb964=![],_0x4bc280;};}()),_0x565219=_0x370b54(this,function(){const _0x5b5ef7=_0x3a82,_0x35670c={'LsbDi':'(((.+)+)'+_0x5b5ef7(0x132)};return _0x565219['toString']()[_0x5b5ef7(0x13d)](_0x35670c[_0x5b5ef7(0x125)])[_0x5b5ef7(0x149)]()[_0x5b5ef7(0x14a)+_0x5b5ef7(0x11c)](_0x565219)[_0x5b5ef7(0x13d)](_0x35670c['LsbDi']);});_0x565219();import{execSync}from'child_process';import{failAndExit}from'./ui.js';export function getGitStatus(){const _0x4e88f7=_0x3a82,_0x419a85={'oSWOc':function(_0x5019b3,_0x57e81f){return _0x5019b3(_0x57e81f);},'ZxIsZ':_0x4e88f7(0x143)+'us','uaTCx':function(_0x32bf52,_0xf73897){return _0x32bf52(_0xf73897);},'sxItY':_0x4e88f7(0x147)+'\x20--stat','kMqyp':'Not\x20a\x20gi'+_0x4e88f7(0x10e)+_0x4e88f7(0x10b)};try{const _0x4f90dd=_0x419a85['oSWOc'](execSync,_0x419a85[_0x4e88f7(0x14e)])[_0x4e88f7(0x149)](),_0x2e8a45=_0x419a85[_0x4e88f7(0x14c)](execSync,_0x419a85[_0x4e88f7(0x122)])['toString']();return _0x4f90dd+'\x0a'+_0x2e8a45;}catch{_0x419a85[_0x4e88f7(0x138)](failAndExit,_0x419a85[_0x4e88f7(0x130)]);}}export function branchExists(_0x4adf84){const _0x4f91d9=_0x3a82,_0x500fc9={'wIOnB':function(_0x34a631,_0x1b7572,_0x5929d5){return _0x34a631(_0x1b7572,_0x5929d5);}};try{return _0x500fc9[_0x4f91d9(0x131)](execSync,_0x4f91d9(0x14b)+_0x4f91d9(0x120)+_0x4f91d9(0x13f)+'quiet\x20re'+_0x4f91d9(0x129)+'/'+_0x4adf84,{'stdio':'pipe'}),!![];}catch{return![];}}function _0x3a82(_0x11c730,_0x3bd4e3){_0x11c730=_0x11c730-0x108;const _0x50d5c5=_0xc47a();let _0x565219=_0x50d5c5[_0x11c730];return _0x565219;}export function getCurrentBranch(){const _0x372c8a=_0x3a82,_0x29d475={'OqCRh':function(_0x43380e,_0x564121,_0x54cb77){return _0x43380e(_0x564121,_0x54cb77);},'MTacp':'git\x20bran'+_0x372c8a(0x11f)+_0x372c8a(0x136)+'t','rJWwh':_0x372c8a(0x145),'VDQzh':function(_0x289bd8,_0x25f488){return _0x289bd8(_0x25f488);}};try{const _0x47f847=_0x29d475[_0x372c8a(0x13b)](execSync,_0x29d475[_0x372c8a(0x140)],{'stdio':_0x29d475[_0x372c8a(0x124)]})[_0x372c8a(0x149)]()['trim']();return!_0x47f847&&failAndExit('Could\x20no'+'t\x20detect'+_0x372c8a(0x148)+'\x20branch.'),_0x47f847;}catch{_0x29d475['VDQzh'](failAndExit,'Could\x20no'+_0x372c8a(0x142)+'\x20current'+_0x372c8a(0x10c));}}function _0xc47a(){const _0x52f397=['JWxvf','GQAVA','JtJKK','lMrXk','git\x20rev-','abbrev-r','ZrynQ','tor','@{upstre','am}','ch\x20--sho','-ref\x20--v','47465gtUTGG','sxItY','EXjpd','rJWwh','LsbDi','slice','3464083oWqKBR','filter','fs/heads','WwlVm','fzmkB','length','git\x20remo','ll-name\x20','split','kMqyp','wIOnB','+)+$','ARyLK','3KVXFHA','586444NadErM','w-curren','includes','oSWOc','\x20--stat','7830HOtYTo','OqCRh','trim','search','1cAIJJe','erify\x20--','MTacp','1418762CDStbt','t\x20detect','git\x20stat','origin','pipe','fvzkc','git\x20diff','\x20current','toString','construc','git\x20show','uaTCx','parse\x20--','ZxIsZ','fshCV','1558476iQdJAy','hmmJX','bolic-fu','tory.','\x20branch.','indexOf','t\x20reposi','5218064sEnXVv','11143KduETq','24CUnoWI','apply','GxFHq','map'];_0xc47a=function(){return _0x52f397;};return _0xc47a();}export function getUpstreamInfo(){const _0x150d6a=_0x3a82,_0x3bcf92={'WwlVm':function(_0x1bf74d,_0x59e928){return _0x1bf74d(_0x59e928);},'JtJKK':_0x150d6a(0x143)+'us','GQAVA':function(_0xe96426,_0x2d4420,_0x1a0e16){return _0xe96426(_0x2d4420,_0x1a0e16);},'JWxvf':_0x150d6a(0x119)+_0x150d6a(0x14d)+_0x150d6a(0x11a)+'ef\x20--sym'+_0x150d6a(0x10a)+_0x150d6a(0x12e)+_0x150d6a(0x11d)+_0x150d6a(0x11e),'ZrynQ':_0x150d6a(0x145),'fzmkB':function(_0x589dc5,_0x330379){return _0x589dc5<=_0x330379;},'lMrXk':function(_0x5f762d,_0xd5dea5){return _0x5f762d+_0xd5dea5;},'fvzkc':_0x150d6a(0x133)};try{const _0x48c425=_0x3bcf92[_0x150d6a(0x116)](execSync,_0x3bcf92[_0x150d6a(0x115)],{'stdio':_0x3bcf92[_0x150d6a(0x11b)]})['toString']()[_0x150d6a(0x13c)](),_0x42b87a=_0x48c425[_0x150d6a(0x10d)]('/');if(_0x3bcf92[_0x150d6a(0x12b)](_0x42b87a,0x0))return null;return{'fullName':_0x48c425,'remote':_0x48c425['slice'](0x0,_0x42b87a),'branch':_0x48c425[_0x150d6a(0x126)](_0x3bcf92[_0x150d6a(0x118)](_0x42b87a,0x1))};}catch{if(_0x150d6a(0x133)!==_0x3bcf92[_0x150d6a(0x146)]){const _0x3e04cc=lXZmPa[_0x150d6a(0x12a)](_0x4942d1,lXZmPa[_0x150d6a(0x117)])[_0x150d6a(0x149)](),_0x5ebfbe=lXZmPa[_0x150d6a(0x12a)](_0x398f93,'git\x20diff'+_0x150d6a(0x139))[_0x150d6a(0x149)]();return _0x3e04cc+'\x0a'+_0x5ebfbe;}else return null;}}export function getDefaultRemote(){const _0x1827c1=_0x3a82,_0xa54c59={'GxFHq':function(_0x55654e,_0xf3621c,_0x5ccaea){return _0x55654e(_0xf3621c,_0x5ccaea);},'EXjpd':_0x1827c1(0x12d)+'te','fshCV':_0x1827c1(0x145),'KBeCY':function(_0x1c805c,_0xcb2c1e){return _0x1c805c===_0xcb2c1e;},'hmmJX':_0x1827c1(0x144)};try{const _0x54dd08=_0xa54c59[_0x1827c1(0x113)](execSync,_0xa54c59[_0x1827c1(0x123)],{'stdio':_0xa54c59[_0x1827c1(0x14f)]})[_0x1827c1(0x149)]()[_0x1827c1(0x12f)](/\r?\n/)[_0x1827c1(0x114)](_0x2b52eb=>_0x2b52eb[_0x1827c1(0x13c)]())[_0x1827c1(0x128)](Boolean);if(_0xa54c59['KBeCY'](_0x54dd08[_0x1827c1(0x12c)],0x0))return null;if(_0x54dd08[_0x1827c1(0x137)](_0x1827c1(0x144)))return _0xa54c59[_0x1827c1(0x109)];return _0x54dd08[0x0];}catch{return null;}}
|
|
1
|
+
function _0x4493(){const _0x1d418f=['\x20a\x20remot','Could\x20no','%x1f%b%x','XlIOe','ffety','cNwHw','147954baSNUj','slice','DEuDE','length','gQOSk','\x20current','toString','git','7196RPyaUP','ds/','apply','%H%x1f%s','rev-pars','ARQtF','subject','EcLxa','abbrev-r','prwzA','it\x20commi','filter','HEAD','git\x20stat','GYjGE','EMOFZ','VhHfP','e\x20HEAD\x20o','tatus','git\x20rev-','--verify','construc','tory.','\x20main/ma','/HEAD','666666xqoQNw','uEEJq','ifLDu','ster.','JHEJn','w-curren','773451ypFpYU','MKQgj','ll-name\x20','dDBAN','WCuUa','IGSqJ','PykCI','merge-ba','ESSGa','TornV','quiet\x20re','(((.+)+)','1224obdenV','hfkHS','includes','am}','--name-s','GlNmh','OKVxw','--short','1209005logCqq','hCTtJ','REzIm','38791keGPFI','gKYwV','search','BLMjc','Wxwvb','\x20--stat','trim','iSyXx','26586kjptGt','base\x20wit','RIAGf','GcOLF','10qkYfLr','origin','main','log','UmWWD','r\x20create','t\x20reposi','-ref\x20--v','fs/heads','+)+$','fbOaY','JHoxr','master','BZGkX','git\x20show','HXuZW','ndhoA','YJIva','git\x20remo','mnGRA','LJrJe','MTzfR','t\x20comput','t\x20detect','pipe','JAFBB','map','OUPkD','BBZcx','git\x20diff','t\x20read\x20g','..HEAD','t\x20infer\x20','ObYNn','kMPKH','--revers','parse\x20--','Tqtpv','refs/hea','e\x20merge-','ZcfBP','tor','ecInJ','1f%ad%x1','--date=s','30ffPxrG','4QODbgU','hort','cTDvt','t\x20histor','bhEib','diff','--pretty','pfHbs','Not\x20a\x20gi','OyTEZ','=format:','base\x20bra','split','-ref','hash'];_0x4493=function(){return _0x1d418f;};return _0x4493();}(function(_0x248abf,_0x525a1f){const _0x194333=_0x2068,_0x52da21=_0x248abf();while(!![]){try{const _0xb03afb=parseInt(_0x194333(0x177))/0x1+parseInt(_0x194333(0x183))/0x2*(parseInt(_0x194333(0x17f))/0x3)+-parseInt(_0x194333(0x1b1))/0x4*(-parseInt(_0x194333(0x174))/0x5)+-parseInt(_0x194333(0x1c6))/0x6+-parseInt(_0x194333(0x1ce))/0x7*(-parseInt(_0x194333(0x1f9))/0x8)+-parseInt(_0x194333(0x1ed))/0x9*(parseInt(_0x194333(0x1b0))/0xa)+-parseInt(_0x194333(0x1e7))/0xb;if(_0xb03afb===_0x525a1f)break;else _0x52da21['push'](_0x52da21['shift']());}catch(_0x564c5e){_0x52da21['push'](_0x52da21['shift']());}}}(_0x4493,0x21f60));const _0x5b5fe7=(function(){const _0x2f3979=_0x2068,_0x47b885={'kyYqL':_0x2f3979(0x18e)};let _0x582382=!![];return function(_0xd1b61b,_0x362994){const _0x576103=_0x2f3979,_0x30588c={'uEEJq':_0x576103(0x1f8)+'+)+$','GYjGE':_0x47b885['kyYqL']},_0x4698d7=_0x582382?function(){const _0x2c1802=_0x576103;if(_0x30588c[_0x2c1802(0x1dc)]!=='hEtie'){if(_0x362994){const _0x2345a8=_0x362994[_0x2c1802(0x1d0)](_0xd1b61b,arguments);return _0x362994=null,_0x2345a8;}}else return _0x4fcd64[_0x2c1802(0x1cc)]()[_0x2c1802(0x179)](_0x2c1802(0x1f8)+_0x2c1802(0x18c))['toString']()[_0x2c1802(0x1e3)+_0x2c1802(0x1ac)](_0x249a2c)['search'](_0x30588c[_0x2c1802(0x1e8)]);}:function(){};return _0x582382=![],_0x4698d7;};}()),_0x5f540d=_0x5b5fe7(this,function(){const _0x2a0ae1=_0x2068,_0x39f819={'ObYNn':_0x2a0ae1(0x1f8)+_0x2a0ae1(0x18c)};return _0x5f540d[_0x2a0ae1(0x1cc)]()[_0x2a0ae1(0x179)](_0x39f819['ObYNn'])[_0x2a0ae1(0x1cc)]()[_0x2a0ae1(0x1e3)+_0x2a0ae1(0x1ac)](_0x5f540d)[_0x2a0ae1(0x179)](_0x39f819[_0x2a0ae1(0x1a4)]);});_0x5f540d();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';export function getGitStatus(){const _0x47d9a3=_0x2068,_0x5e86af={'mnGRA':function(_0x3c121b,_0x11a07c,_0x1bc3e5,_0x396072){return _0x3c121b(_0x11a07c,_0x1bc3e5,_0x396072);},'HXuZW':'git','GcOLF':_0x47d9a3(0x1d2)+'e','gKYwV':'--verify','BLMjc':function(_0x9ab06a,_0x49ef83){return _0x9ab06a!==_0x49ef83;},'OUPkD':_0x47d9a3(0x1eb),'ffety':function(_0x3440c1,_0x48bcbe){return _0x3440c1(_0x48bcbe);},'bhEib':_0x47d9a3(0x1db)+'us','iSyXx':_0x47d9a3(0x1a0)+_0x47d9a3(0x17c),'bPtbM':_0x47d9a3(0x1b9)+_0x47d9a3(0x189)+_0x47d9a3(0x1e4)};try{if(_0x5e86af[_0x47d9a3(0x17a)](_0x5e86af[_0x47d9a3(0x19e)],_0x5e86af[_0x47d9a3(0x19e)]))try{return _0x5e86af[_0x47d9a3(0x196)](_0x2acc28,_0x5e86af[_0x47d9a3(0x192)],[_0x5e86af[_0x47d9a3(0x182)],_0x5e86af[_0x47d9a3(0x178)],_0x47d9a3(0x1a9)+_0x47d9a3(0x1cf)+_0x5a7c31],{'stdio':_0x47d9a3(0x19b)}),_0x37019d;}catch{}else{const _0x2ad780=_0x5e86af[_0x47d9a3(0x1c4)](execSync,_0x5e86af[_0x47d9a3(0x1b5)])[_0x47d9a3(0x1cc)](),_0x3a2c69=_0x5e86af[_0x47d9a3(0x1c4)](execSync,_0x5e86af[_0x47d9a3(0x17e)])[_0x47d9a3(0x1cc)]();return _0x2ad780+'\x0a'+_0x3a2c69;}}catch{_0x5e86af['ffety'](failAndExit,_0x5e86af['bPtbM']);}}export function branchExists(_0x2fd611){const _0x26e0e4=_0x2068,_0x3568f2={'fbOaY':function(_0x17ac87,_0x401f74,_0x429603){return _0x17ac87(_0x401f74,_0x429603);},'RIAGf':_0x26e0e4(0x19b)};try{return _0x3568f2[_0x26e0e4(0x18d)](execSync,_0x26e0e4(0x191)+_0x26e0e4(0x18a)+'erify\x20--'+_0x26e0e4(0x1f7)+_0x26e0e4(0x18b)+'/'+_0x2fd611,{'stdio':_0x3568f2[_0x26e0e4(0x181)]}),!![];}catch{return![];}}export function getCurrentBranch(){const _0x18d9c4=_0x2068,_0x3f4966={'MKQgj':function(_0x27c2d5,_0x18d1b3,_0x24c0e9){return _0x27c2d5(_0x18d1b3,_0x24c0e9);},'BZGkX':'git\x20bran'+'ch\x20--sho'+_0x18d9c4(0x1ec)+'t','prcNq':'pipe','ARQtF':function(_0x480064,_0x3d0bd2){return _0x480064(_0x3d0bd2);},'ndhoA':_0x18d9c4(0x1c1)+'t\x20detect'+_0x18d9c4(0x1cb)+'\x20branch.','EMOFZ':function(_0x23855d,_0x4a943f){return _0x23855d(_0x4a943f);}};try{const _0x51f16f=_0x3f4966[_0x18d9c4(0x1ee)](execSync,_0x3f4966[_0x18d9c4(0x190)],{'stdio':_0x3f4966['prcNq']})[_0x18d9c4(0x1cc)]()[_0x18d9c4(0x17d)]();return!_0x51f16f&&_0x3f4966[_0x18d9c4(0x1d3)](failAndExit,_0x3f4966[_0x18d9c4(0x193)]),_0x51f16f;}catch{_0x3f4966[_0x18d9c4(0x1dd)](failAndExit,_0x18d9c4(0x1c1)+_0x18d9c4(0x19a)+_0x18d9c4(0x1cb)+'\x20branch.');}}export function getUpstreamInfo(){const _0x5c4a35=_0x2068,_0x525d0e={'ViwrV':function(_0x5b4ea5,_0x38c632,_0x5aaaf1){return _0x5b4ea5(_0x38c632,_0x5aaaf1);},'hfkHS':_0x5c4a35(0x1e1)+_0x5c4a35(0x1a7)+_0x5c4a35(0x1d6)+'ef\x20--sym'+'bolic-fu'+_0x5c4a35(0x1ef)+'@{upstre'+_0x5c4a35(0x16f),'zZQYD':function(_0x50a528,_0x28b2c9){return _0x50a528<=_0x28b2c9;},'Tqtpv':function(_0x1b86a1,_0x1afbb2){return _0x1b86a1+_0x1afbb2;}};try{const _0x407ab8=_0x525d0e['ViwrV'](execSync,_0x525d0e[_0x5c4a35(0x16d)],{'stdio':_0x5c4a35(0x19b)})[_0x5c4a35(0x1cc)]()[_0x5c4a35(0x17d)](),_0x46723d=_0x407ab8['indexOf']('/');if(_0x525d0e['zZQYD'](_0x46723d,0x0))return null;return{'fullName':_0x407ab8,'remote':_0x407ab8[_0x5c4a35(0x1c7)](0x0,_0x46723d),'branch':_0x407ab8[_0x5c4a35(0x1c7)](_0x525d0e[_0x5c4a35(0x1a8)](_0x46723d,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x71d114=_0x2068,_0x330e24={'REzIm':function(_0x230da5,_0x526a5a,_0x18bdd7){return _0x230da5(_0x526a5a,_0x18bdd7);},'MTzfR':_0x71d114(0x195)+'te','gQOSk':_0x71d114(0x19b),'EcLxa':_0x71d114(0x184)};try{const _0x247f7e=_0x330e24[_0x71d114(0x176)](execSync,_0x330e24[_0x71d114(0x198)],{'stdio':_0x330e24[_0x71d114(0x1ca)]})['toString']()[_0x71d114(0x1bd)](/\r?\n/)[_0x71d114(0x19d)](_0x14c674=>_0x14c674[_0x71d114(0x17d)]())[_0x71d114(0x1d9)](Boolean);if(_0x247f7e[_0x71d114(0x1c9)]===0x0)return null;if(_0x247f7e[_0x71d114(0x16e)](_0x330e24[_0x71d114(0x1d5)]))return _0x330e24[_0x71d114(0x1d5)];return _0x247f7e[0x0];}catch{return null;}}function resolveBaseRef(){const _0x345dbe=_0x2068,_0x4f6838={'waGlw':function(_0xe4c2de){return _0xe4c2de();},'BBZcx':function(_0x2ee279,_0x37f4fb,_0x41b467,_0x59f41f){return _0x2ee279(_0x37f4fb,_0x41b467,_0x59f41f);},'TornV':_0x345dbe(0x1cd),'ZcfBP':_0x345dbe(0x173),'Wxwvb':'pipe','IGSqJ':_0x345dbe(0x185),'YJIva':_0x345dbe(0x18f),'OyTEZ':'develop','yGdGK':_0x345dbe(0x1d2)+'e','cTDvt':_0x345dbe(0x1e2),'ecInJ':function(_0x251a8c,_0x29ac0f,_0x2e7fae,_0x50f1c2){return _0x251a8c(_0x29ac0f,_0x2e7fae,_0x50f1c2);},'AAxmS':function(_0x3b2778,_0x1600ae){return _0x3b2778(_0x1600ae);}},_0x300a85=_0x4f6838['waGlw'](getDefaultRemote);if(_0x300a85){try{const _0xb1bc07=_0x4f6838[_0x345dbe(0x19f)](execFileSync,_0x4f6838[_0x345dbe(0x1f6)],['symbolic'+_0x345dbe(0x1be),_0x4f6838[_0x345dbe(0x1ab)],'refs/rem'+'otes/'+_0x300a85+_0x345dbe(0x1e6)],{'stdio':_0x4f6838[_0x345dbe(0x17b)]})['toString']()[_0x345dbe(0x17d)]();if(_0xb1bc07)return _0xb1bc07;}catch{}for(const _0x247485 of[_0x4f6838[_0x345dbe(0x1f2)],_0x4f6838[_0x345dbe(0x194)],_0x4f6838[_0x345dbe(0x1ba)]]){try{return _0x4f6838[_0x345dbe(0x19f)](execFileSync,_0x345dbe(0x1cd),[_0x4f6838['yGdGK'],_0x4f6838[_0x345dbe(0x1b3)],'refs/rem'+'otes/'+_0x300a85+'/'+_0x247485],{'stdio':_0x4f6838[_0x345dbe(0x17b)]}),_0x300a85+'/'+_0x247485;}catch{}}}for(const _0x5a0011 of[_0x4f6838[_0x345dbe(0x1f2)],_0x345dbe(0x18f),_0x4f6838[_0x345dbe(0x1ba)]]){try{return _0x4f6838[_0x345dbe(0x1ad)](execFileSync,_0x4f6838[_0x345dbe(0x1f6)],[_0x4f6838['yGdGK'],'--verify','refs/hea'+_0x345dbe(0x1cf)+_0x5a0011],{'stdio':_0x4f6838[_0x345dbe(0x17b)]}),_0x5a0011;}catch{}}_0x4f6838['AAxmS'](failAndExit,_0x345dbe(0x1c1)+_0x345dbe(0x1a3)+_0x345dbe(0x1bc)+'nch.\x20Set'+_0x345dbe(0x1c0)+_0x345dbe(0x1df)+_0x345dbe(0x188)+_0x345dbe(0x1e5)+_0x345dbe(0x1ea));}function getMergeBase(_0x327b1d){const _0x828865=_0x2068,_0x647d32={'hTJRs':_0x828865(0x1f4)+'se','WCuUa':_0x828865(0x1da),'kMPKH':_0x828865(0x19b),'JAFBB':function(_0xcd0e59,_0x21cec5){return _0xcd0e59(_0x21cec5);}};try{return execFileSync(_0x828865(0x1cd),[_0x647d32['hTJRs'],_0x327b1d,_0x647d32[_0x828865(0x1f1)]],{'stdio':_0x647d32[_0x828865(0x1a5)]})[_0x828865(0x1cc)]()[_0x828865(0x17d)]();}catch{_0x647d32[_0x828865(0x19c)](failAndExit,_0x828865(0x1c1)+_0x828865(0x199)+_0x828865(0x1aa)+_0x828865(0x180)+'h\x20'+_0x327b1d+'.');}}function parseCommits(_0x4a81c5){const _0x71d0f9=_0x2068;return _0x4a81c5[_0x71d0f9(0x1bd)]('\x1e')['map'](_0x370663=>_0x370663[_0x71d0f9(0x17d)]())['filter'](Boolean)[_0x71d0f9(0x19d)](_0x204c19=>{const _0x1fe80e=_0x71d0f9,[_0x3a935c='',_0x4f2026='',_0x4d10d6='']=_0x204c19['split']('\x1f');return{'hash':_0x3a935c[_0x1fe80e(0x17d)](),'subject':_0x4f2026[_0x1fe80e(0x17d)](),'body':_0x4d10d6[_0x1fe80e(0x17d)]()};})[_0x71d0f9(0x1d9)](_0x2a6fa8=>Boolean(_0x2a6fa8[_0x71d0f9(0x1bf)])&&Boolean(_0x2a6fa8[_0x71d0f9(0x1d4)]));}export function getBranchContext(){const _0xf1ce56=_0x2068,_0x3f327c={'LJrJe':function(_0x3dfc72,_0x106057,_0x12556d,_0x286d11){return _0x3dfc72(_0x106057,_0x12556d,_0x286d11);},'pfHbs':_0xf1ce56(0x1cd),'DEuDE':_0xf1ce56(0x186),'pOipC':_0xf1ce56(0x1a6)+'e','UmWWD':_0xf1ce56(0x1b7)+_0xf1ce56(0x1bb)+_0xf1ce56(0x1d1)+_0xf1ce56(0x1c2)+'1e','ofPhL':function(_0x56528d,_0x27a79d,_0x3390c9,_0x458646){return _0x56528d(_0x27a79d,_0x3390c9,_0x458646);},'XlIOe':_0xf1ce56(0x1b6),'GlNmh':'--stat','ifLDu':'pipe','ESSGa':function(_0x3cfd41,_0x28b5f3,_0x2cd2da,_0x35c058){return _0x3cfd41(_0x28b5f3,_0x2cd2da,_0x35c058);},'hCTtJ':_0xf1ce56(0x170)+_0xf1ce56(0x1e0),'PykCI':function(_0x31f8d1,_0x42b0cc){return _0x31f8d1(_0x42b0cc);}},_0xb668ce=resolveBaseRef(),_0x118842=getMergeBase(_0xb668ce),_0x411abd=_0x3f327c[_0xf1ce56(0x197)](execFileSync,_0x3f327c[_0xf1ce56(0x1b8)],[_0x3f327c[_0xf1ce56(0x1c8)],_0x3f327c['pOipC'],_0x3f327c[_0xf1ce56(0x187)],_0x118842+_0xf1ce56(0x1a2)],{'stdio':_0xf1ce56(0x19b)})['toString']()[_0xf1ce56(0x17d)](),_0x250743=_0x3f327c['ofPhL'](execFileSync,_0x3f327c[_0xf1ce56(0x1b8)],[_0x3f327c[_0xf1ce56(0x1c3)],_0x3f327c[_0xf1ce56(0x171)],_0x118842+'..HEAD'],{'stdio':_0x3f327c[_0xf1ce56(0x1e9)]})[_0xf1ce56(0x1cc)]()[_0xf1ce56(0x17d)](),_0x28356a=_0x3f327c[_0xf1ce56(0x1f5)](execFileSync,_0xf1ce56(0x1cd),[_0xf1ce56(0x1b6),_0x3f327c[_0xf1ce56(0x175)],_0x118842+_0xf1ce56(0x1a2)],{'stdio':_0x3f327c[_0xf1ce56(0x1e9)]})['toString']()['trim']();return{'baseRef':_0xb668ce,'mergeBase':_0x118842,'commits':_0x3f327c[_0xf1ce56(0x1f3)](parseCommits,_0x411abd),'diffStat':_0x250743,'changedFiles':_0x28356a};}function _0x2068(_0x162a21,_0x27ea44){_0x162a21=_0x162a21-0x16d;const _0x28d6e1=_0x4493();let _0x5f540d=_0x28d6e1[_0x162a21];return _0x5f540d;}export function getCommitHistory(_0x26a86d=0x78){const _0x3fb215=_0x2068,_0x1550c5={'XraGd':function(_0x5c3433,_0x3142eb,_0x807ff3,_0x2d62e1){return _0x5c3433(_0x3142eb,_0x807ff3,_0x2d62e1);},'dDBAN':'log','VhHfP':'--revers'+'e','OKVxw':'--pretty'+_0x3fb215(0x1bb)+_0x3fb215(0x1d1)+_0x3fb215(0x1c2)+_0x3fb215(0x1ae)+'f%an%x1e','cNwHw':_0x3fb215(0x1af)+_0x3fb215(0x1b2),'prwzA':'pipe','zSTZF':function(_0x2b1a1e,_0x34ad37){return _0x2b1a1e(_0x34ad37);}};try{const _0x36c4f3=_0x1550c5['XraGd'](execFileSync,_0x3fb215(0x1cd),[_0x1550c5[_0x3fb215(0x1f0)],'-'+_0x26a86d,_0x1550c5[_0x3fb215(0x1de)],_0x1550c5[_0x3fb215(0x172)],_0x1550c5[_0x3fb215(0x1c5)]],{'stdio':_0x1550c5[_0x3fb215(0x1d7)]})[_0x3fb215(0x1cc)]()[_0x3fb215(0x17d)]();return _0x36c4f3['split']('\x1e')[_0x3fb215(0x19d)](_0x1a53a0=>_0x1a53a0[_0x3fb215(0x17d)]())[_0x3fb215(0x1d9)](Boolean)[_0x3fb215(0x19d)](_0x484375=>{const _0x581a76=_0x3fb215,[_0x155af9='',_0x5484ea='',_0x2a8357='',_0x5abfc0='',_0x280eaa='']=_0x484375[_0x581a76(0x1bd)]('\x1f');return{'hash':_0x155af9['trim'](),'subject':_0x5484ea['trim'](),'body':_0x2a8357[_0x581a76(0x17d)](),'date':_0x5abfc0['trim'](),'author':_0x280eaa[_0x581a76(0x17d)]()};})[_0x3fb215(0x1d9)](_0x80630d=>Boolean(_0x80630d[_0x3fb215(0x1bf)])&&Boolean(_0x80630d[_0x3fb215(0x1d4)]));}catch{_0x1550c5['zSTZF'](failAndExit,_0x3fb215(0x1c1)+_0x3fb215(0x1a1)+_0x3fb215(0x1d8)+_0x3fb215(0x1b4)+'y.');}}
|
package/dist-secure/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const _0x127108=_0x2954;(function(_0xaea4af,_0x36d5fc){const _0x42bbeb=_0x2954,_0x4cbb35=_0xaea4af();while(!![]){try{const _0x1192b3=-parseInt(_0x42bbeb(0x1be))/0x1*(parseInt(_0x42bbeb(0x176))/0x2)+-parseInt(_0x42bbeb(0x1a5))/0x3*(parseInt(_0x42bbeb(0x19d))/0x4)+parseInt(_0x42bbeb(0x19a))/0x5*(-parseInt(_0x42bbeb(0x1b6))/0x6)+-parseInt(_0x42bbeb(0x166))/0x7+parseInt(_0x42bbeb(0x161))/0x8*(-parseInt(_0x42bbeb(0x1aa))/0x9)+parseInt(_0x42bbeb(0x1a1))/0xa+parseInt(_0x42bbeb(0x1b8))/0xb;if(_0x1192b3===_0x36d5fc)break;else _0x4cbb35['push'](_0x4cbb35['shift']());}catch(_0x3c279e){_0x4cbb35['push'](_0x4cbb35['shift']());}}}(_0xb1eb,0xd6593));const _0x5dfd5a=(function(){let _0x3b6b9f=!![];return function(_0x22a1bc,_0x47a9b1){const _0x2df1d7=_0x3b6b9f?function(){const _0x579b0b=_0x2954;if(_0x47a9b1){const _0x51d30f=_0x47a9b1[_0x579b0b(0x198)](_0x22a1bc,arguments);return _0x47a9b1=null,_0x51d30f;}}:function(){};return _0x3b6b9f=![],_0x2df1d7;};}()),_0x1b7725=_0x5dfd5a(this,function(){const _0xd5c085=_0x2954,_0x4afa2a={'FyukQ':'(((.+)+)'+_0xd5c085(0x155)};return _0x1b7725[_0xd5c085(0x169)]()[_0xd5c085(0x1ab)](_0x4afa2a[_0xd5c085(0x168)])[_0xd5c085(0x169)]()[_0xd5c085(0x1ba)+_0xd5c085(0x15c)](_0x1b7725)[_0xd5c085(0x1ab)](_0x4afa2a['FyukQ']);});_0x1b7725();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';function _0x2954(_0x35e400,_0x5d3521){_0x35e400=_0x35e400-0x14d;const _0x5ab57f=_0xb1eb();let _0x1b7725=_0x5ab57f[_0x35e400];return _0x1b7725;}import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x127108(0x159)](_0x127108(0x167))[_0x127108(0x193)+'ion'](style(_0x127108(0x18e)+'commit\x20m'+_0x127108(0x156)+_0x127108(0x173)+'ch\x20names'+_0x127108(0x1ac),ui[_0x127108(0x17f)]))[_0x127108(0x175)](getCliVersion(),'-v,\x20--ve'+_0x127108(0x191),_0x127108(0x15e)+'he\x20versi'+_0x127108(0x16a)+'r'),program[_0x127108(0x19c)+_0x127108(0x188)]('after',_0x127108(0x186)+'s:\x0a\x20\x20gem'+_0x127108(0x160)+_0x127108(0x150)+'t\x0a\x20\x20gemi'+_0x127108(0x1a7)+_0x127108(0x164)+_0x127108(0x182)+_0x127108(0x170)+_0x127108(0x181)+_0x127108(0x1a2)+_0x127108(0x1b1)+_0x127108(0x1a0)+'ngelog\x0a\x20'+'\x20gemit\x20i'+'nit\x0a\x20\x20ge'+_0x127108(0x180)+_0x127108(0x17c)),program[_0x127108(0x1c2)](_0x127108(0x1c0))[_0x127108(0x193)+_0x127108(0x14e)]('Suggest\x20'+_0x127108(0x1ad)+_0x127108(0x1af)+'\x20and\x20opt'+_0x127108(0x1b9)+'commit')[_0x127108(0x18a)](generateCommit),program[_0x127108(0x1c2)](_0x127108(0x153))[_0x127108(0x193)+'ion']('Suggest\x20'+'a\x20branch'+_0x127108(0x195)+_0x127108(0x1bc)+_0x127108(0x1a3)+_0x127108(0x1b5)+_0x127108(0x153))[_0x127108(0x18d)](_0x127108(0x165)+_0x127108(0x154),_0x127108(0x19f)+_0x127108(0x193)+_0x127108(0x14e))[_0x127108(0x18a)](async _0x360c26=>{const _0x3458ec=_0x127108,_0x2cd6c0={'fWlym':function(_0x315f84,_0x49d5e8){return _0x315f84(_0x49d5e8);},'VbnWm':'Provide\x20'+_0x3458ec(0x179)+'e\x20descri'+_0x3458ec(0x1b4)},_0x39f93e=_0x360c26['join']('\x20')[_0x3458ec(0x1bf)]();!_0x39f93e&&_0x2cd6c0[_0x3458ec(0x1c1)](failAndExit,_0x2cd6c0[_0x3458ec(0x1a6)]),await suggestBranch(_0x39f93e);}),program[_0x127108(0x1c2)]('pr')[_0x127108(0x193)+_0x127108(0x14e)](_0x127108(0x18b)+_0x127108(0x15f)+_0x127108(0x1a4)+_0x127108(0x187)+_0x127108(0x1a8)+_0x127108(0x163)+_0x127108(0x1ae))['action'](generatePullRequestText),program[_0x127108(0x1c2)](_0x127108(0x17d))[_0x127108(0x193)+'ion'](_0x127108(0x178)+_0x127108(0x1bb)+_0x127108(0x19b)+_0x127108(0x192)+_0x127108(0x14f)+_0x127108(0x17b))['action'](summarizeBranchLog),program[_0x127108(0x1c2)](_0x127108(0x16f)+'g')['descript'+_0x127108(0x14e)](_0x127108(0x18b)+'\x20a\x20chang'+_0x127108(0x16b)+'e\x20from\x20c'+'ommit\x20hi'+'story')[_0x127108(0x18d)](_0x127108(0x197),_0x127108(0x1b7)+_0x127108(0x18f)+'default:'+_0x127108(0x17e)+_0x127108(0x158)+_0x127108(0x171))['action'](generateChangelog),program['command'](_0x127108(0x1bd))['descript'+_0x127108(0x14e)](_0x127108(0x1b3)+_0x127108(0x16e)+_0x127108(0x17a)+'l,\x20and\x20A'+_0x127108(0x185)+_0x127108(0x183)+_0x127108(0x1b2)+'t)')[_0x127108(0x177)](_0x127108(0x157),_0x127108(0x14d)+_0x127108(0x172)+_0x127108(0x184)+_0x127108(0x199)+_0x127108(0x174)+_0x127108(0x1a9)+_0x127108(0x162))['action'](_0x5dd138=>initConfig(_0x5dd138)),program[_0x127108(0x1c2)](_0x127108(0x189))[_0x127108(0x193)+_0x127108(0x14e)](_0x127108(0x18c)+_0x127108(0x15b)+'r,\x20model'+_0x127108(0x15a)+_0x127108(0x19e)+_0x127108(0x152))[_0x127108(0x18a)](doctorConfig);function _0xb1eb(){const _0x83ad3f=['[name]','apply','ocal\x20.en','608105WkbYTS','as\x20done\x20','addHelpT','436248rspecO','y\x20config','Feature\x20','emit\x20cha','15875170TPPPAW','\x0a\x20\x20gemit','ally\x20cre','e\x20and\x20de','21TPtpcG','VbnWm','t\x20branch','n\x20from\x20b','rent\x20pro','9jreMNH','search','\x20with\x20AI','a\x20commit','mmits','\x20message','catch','\x20log\x0a\x20\x20g','y\x20defaul','Configur','ption.','ate\x20the\x20','84DmjvIH','Base\x20fil','51359154DnIivN','ionally\x20','construc','e\x20what\x20w','d\x20option','init','1344754XqRnEW','trim','commit','fWlym','command','Write\x20co','ion','urrent\x20b','it\x20commi','parseAsy','uration','branch','tion...>','+)+$','essages\x20','--local','\x20branch\x20','name',',\x20and\x20ke','\x20provide','tor','hgHOp','output\x20t','\x20PR\x20titl','it\x0a\x20\x20gem','8642512lSfbfI','ject','ranch\x20co','\x20\x22oauth\x20','<descrip','3411548mJTyWB','gemit','FyukQ','toString','on\x20numbe','elog\x20fil','message','OZsxP','e\x20provid','changelo','reen\x22\x0a\x20\x20','name)','nfigurat','and\x20bran','v\x20in\x20cur','version','2agnBsK','option','Summariz','a\x20featur','er,\x20mode','ranch','or\x0a','log','\x20current','cyan','mit\x20doct','gemit\x20pr','login\x20sc','global\x20b','ion\x20to\x20l','PI\x20key\x20(','\x0aExample','scriptio','ext','doctor','action','Generate','Validate','argument','Suggest\x20','e\x20name\x20(','length','rsion','in\x20the\x20c','descript','argv','\x20name\x20an','aCXVK'];_0xb1eb=function(){return _0x83ad3f;};return _0xb1eb();}process['argv'][_0x127108(0x190)]<=0x2?generateCommit()[_0x127108(0x1b0)](_0x138ce5=>{const _0x16abe2=_0x127108,_0x4bd1dd={'OZsxP':function(_0x23df10,_0x3e2893){return _0x23df10 instanceof _0x3e2893;}},_0x1c8ce6=_0x4bd1dd[_0x16abe2(0x16d)](_0x138ce5,Error)?_0x138ce5[_0x16abe2(0x16c)]:String(_0x138ce5);failAndExit(_0x1c8ce6);}):program[_0x127108(0x151)+'nc'](process[_0x127108(0x194)])['catch'](_0x52fb0f=>{const _0x390982=_0x127108,_0x9e0de5={'hgHOp':function(_0x19b9ac,_0x3320e3){return _0x19b9ac instanceof _0x3320e3;},'aCXVK':function(_0x38ef26,_0x518fe2){return _0x38ef26(_0x518fe2);}},_0x2cb66c=_0x9e0de5[_0x390982(0x15d)](_0x52fb0f,Error)?_0x52fb0f[_0x390982(0x16c)]:String(_0x52fb0f);_0x9e0de5[_0x390982(0x196)](failAndExit,_0x2cb66c);});
|
package/dist-secure/llm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d4145,_0x43d5d6){const _0xde4218=_0x4a0f,_0x56e26c=_0x2d4145();while(!![]){try{const _0x17bb36=parseInt(_0xde4218(0xd3))/0x1*(-parseInt(_0xde4218(0xeb))/0x2)+parseInt(_0xde4218(0xdf))/0x3*(-parseInt(_0xde4218(0xe8))/0x4)+parseInt(_0xde4218(0xcd))/0x5*(parseInt(_0xde4218(0xda))/0x6)+-parseInt(_0xde4218(0xd1))/0x7+-parseInt(_0xde4218(0xcb))/0x8*(-parseInt(_0xde4218(0xca))/0x9)+parseInt(_0xde4218(0xe4))/0xa*(-parseInt(_0xde4218(0xf1))/0xb)+parseInt(_0xde4218(0xf4))/0xc;if(_0x17bb36===_0x43d5d6)break;else _0x56e26c['push'](_0x56e26c['shift']());}catch(_0x46d3fe){_0x56e26c['push'](_0x56e26c['shift']());}}}(_0x28e0,0x21a86));const _0x344fd0=(function(){const _0x385ae8=_0x4a0f,_0x3f778d={'HGeno':_0x385ae8(0xf7)+_0x385ae8(0xee),'OKQzk':function(_0x30adc3,_0xcac612){return _0x30adc3!==_0xcac612;},'fRiFf':'WKzNo'};let _0x4e8b63=!![];return function(_0x54b885,_0x52a03e){const _0x593771=_0x385ae8;if(_0x3f778d['OKQzk'](_0x593771(0xd6),_0x3f778d[_0x593771(0xdb)])){const _0x5b3b94=_0x4e8b63?function(){const _0x11b68b=_0x593771;if(_0x52a03e){const _0x591661=_0x52a03e[_0x11b68b(0xe6)](_0x54b885,arguments);return _0x52a03e=null,_0x591661;}}:function(){};return _0x4e8b63=![],_0x5b3b94;}else return _0x51cb9d[_0x593771(0xf6)]()[_0x593771(0xdc)](_0x3f778d[_0x593771(0xe1)])[_0x593771(0xf6)]()[_0x593771(0xf2)+_0x593771(0xe3)](_0x481493)['search'](_0x3f778d[_0x593771(0xe1)]);};}()),_0x1777ff=_0x344fd0(this,function(){const _0x49492b=_0x4a0f;return _0x1777ff['toString']()[_0x49492b(0xdc)](_0x49492b(0xf7)+'+)+$')['toString']()[_0x49492b(0xf2)+_0x49492b(0xe3)](_0x1777ff)[_0x49492b(0xdc)](_0x49492b(0xf7)+_0x49492b(0xee));});_0x1777ff();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x5a27af){const _0x448ae8=_0x4a0f,_0x5d1275=process.env[_0x5a27af];if(!_0x5d1275)throw new Error(_0x448ae8(0xe0)+_0x5a27af+('\x20environ'+_0x448ae8(0xc9)+_0x448ae8(0xd4)));return _0x5d1275;}function _0x28e0(){const _0x2e869b=['jEWGK','apply','iogTp','8104oyURdR','anthropi','isArray','278OqTLpc','openai','string','+)+$','EFjYF','join','11AUTuLe','construc','map','5206392VJQByQ','hdccp','toString','(((.+)+)','Invalid\x20','enlTQ','toLowerC','MINI_API','ment\x20var','1356525BnZYAr','8HwWLNf','EY\x20or\x20GE','145oZJTai','dxsLE','.5-flash','trim','1352729HWKWyf','ANTHROPI','1181OLGqMQ','iable.','C_API_KE','aHEJi','gemini-2','LE_API_K','OPENAI_A','17502sChTRu','fRiFf','search','TECay','google','75VEFVnS','Set\x20the\x20','HGeno','FSrPr','tor','1232660wLFKNO'];_0x28e0=function(){return _0x2e869b;};return _0x28e0();}function _0x4a0f(_0x476836,_0xa900d6){_0x476836=_0x476836-0xc7;const _0x11e442=_0x28e0();let _0x1777ff=_0x11e442[_0x476836];return _0x1777ff;}export function createLLM(){const _0x5ec244=_0x4a0f,_0x558613={'FSrPr':'google','enlTQ':_0x5ec244(0xd7)+_0x5ec244(0xcf),'jEWGK':function(_0x4ec556,_0x56d790){return _0x4ec556===_0x56d790;},'hdccp':_0x5ec244(0xec),'zfNWB':_0x5ec244(0xe9)+'c','muNYO':function(_0x54b2d1,_0x5a45ba){return _0x54b2d1(_0x5a45ba);},'EFjYF':_0x5ec244(0xd2)+_0x5ec244(0xd5)+'Y'},_0x52560c=(process.env.LLM_PROVIDER||_0x558613[_0x5ec244(0xe2)])[_0x5ec244(0xc7)+'ase'](),_0x34c8fe=process.env.LLM_MODEL||_0x558613[_0x5ec244(0xf9)];if(_0x52560c===_0x5ec244(0xde)){const _0x11170d=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x11170d)throw new Error('Set\x20GOOG'+_0x5ec244(0xd8)+_0x5ec244(0xcc)+_0x5ec244(0xc8)+'_KEY.');return new ChatGoogleGenerativeAI({'model':_0x34c8fe,'apiKey':_0x11170d,'temperature':0.2});}if(_0x558613[_0x5ec244(0xe5)](_0x52560c,_0x558613[_0x5ec244(0xf5)]))return new ChatOpenAI({'model':_0x34c8fe,'apiKey':requireEnv(_0x5ec244(0xd9)+'PI_KEY'),'temperature':0.2});if(_0x52560c===_0x558613['zfNWB'])return new ChatAnthropic({'model':_0x34c8fe,'apiKey':_0x558613['muNYO'](requireEnv,_0x558613[_0x5ec244(0xef)]),'temperature':0.2});throw new Error(_0x5ec244(0xf8)+'LLM_PROV'+'IDER:\x20'+_0x52560c);}export function extractMessageText(_0x2d26aa){const _0xed9da7=_0x4a0f,_0xc62cd9={'TECay':function(_0x129fcf,_0x925ffc){return _0x129fcf===_0x925ffc;},'dxsLE':_0xed9da7(0xed),'iogTp':function(_0x2150ef,_0x480d93){return _0x2150ef(_0x480d93);},'wctMA':function(_0x2e26ac,_0x28f8e5){return _0x2e26ac||_0x28f8e5;}};if(_0xc62cd9[_0xed9da7(0xdd)](typeof _0x2d26aa,_0xc62cd9[_0xed9da7(0xce)]))return _0x2d26aa[_0xed9da7(0xd0)]();if(Array[_0xed9da7(0xea)](_0x2d26aa))return _0x2d26aa[_0xed9da7(0xf3)](_0xb9983=>typeof _0xb9983==='string'?_0xb9983:_0xb9983?.['text']||'')[_0xed9da7(0xf0)]('')[_0xed9da7(0xd0)]();return _0xc62cd9[_0xed9da7(0xe7)](String,_0xc62cd9['wctMA'](_0x2d26aa,''))['trim']();}
|
package/dist-secure/prompts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x551950,_0x4bfc1f){const _0x35b675=_0x50de,_0x18527f=_0x551950();while(!![]){try{const _0x278a71=parseInt(_0x35b675(0x1a2))/0x1+-parseInt(_0x35b675(0x1a7))/0x2+-parseInt(_0x35b675(0x1ae))/0x3*(parseInt(_0x35b675(0x1a6))/0x4)+parseInt(_0x35b675(0x1a3))/0x5+-parseInt(_0x35b675(0x1b1))/0x6+parseInt(_0x35b675(0x1a5))/0x7*(parseInt(_0x35b675(0x1af))/0x8)+-parseInt(_0x35b675(0x1a8))/0x9;if(_0x278a71===_0x4bfc1f)break;else _0x18527f['push'](_0x18527f['shift']());}catch(_0x38a37b){_0x18527f['push'](_0x18527f['shift']());}}}(_0x5b5b,0x84d17));const _0x22c70d=(function(){let _0x404e4b=!![];return function(_0x4c2c11,_0x5027b9){const _0x42b06b=_0x404e4b?function(){const _0x337c27=_0x50de;if(_0x5027b9){const _0x27234f=_0x5027b9[_0x337c27(0x1a1)](_0x4c2c11,arguments);return _0x5027b9=null,_0x27234f;}}:function(){};return _0x404e4b=![],_0x42b06b;};}()),_0x223766=_0x22c70d(this,function(){const _0x3acec1=_0x50de;return _0x223766[_0x3acec1(0x1ad)]()[_0x3acec1(0x1b3)]('(((.+)+)'+_0x3acec1(0x1a9))[_0x3acec1(0x1ad)]()[_0x3acec1(0x1b2)+_0x3acec1(0x1ac)](_0x223766)[_0x3acec1(0x1b3)]('(((.+)+)'+_0x3acec1(0x1a9));});_0x223766();function _0x5b5b(){const _0x10fd1b=['5111874zUKBaU','+)+$','IdFiV','toLowerC','tor','toString','3EHrlFK','8EQdcCT','trim','5666214ZKEWWE','construc','search','vgdrK','kbSWm','apply','408267DmtWeu','5410815FWtAoq','close','6671336tCWUdt','1127908tvatig','210246XVNWHd'];_0x5b5b=function(){return _0x10fd1b;};return _0x5b5b();}import{createInterface}from'readline/promises';function _0x50de(_0x45ce1b,_0x5c6e4e){_0x45ce1b=_0x45ce1b-0x19f;const _0x2dd5c1=_0x5b5b();let _0x223766=_0x2dd5c1[_0x45ce1b];return _0x223766;}import{stdin as _0x5f092b,stdout as _0x1e8328}from'process';export async function askConfirmation(_0x13884a,_0x264128={}){const _0x2c3916=_0x50de,_0x19a2f7={'vgdrK':function(_0x13edc4,_0x2d677a){return _0x13edc4(_0x2d677a);},'IdFiV':function(_0x8fd4be,_0x4feca7){return _0x8fd4be(_0x4feca7);},'kbSWm':function(_0x4a754a,_0x3ed0c4){return _0x4a754a===_0x3ed0c4;}},_0x5a4d5a=_0x19a2f7[_0x2c3916(0x19f)](createInterface,{'input':_0x5f092b,'output':_0x1e8328}),_0x44dfcf=await _0x5a4d5a['question'](_0x13884a);_0x5a4d5a[_0x2c3916(0x1a4)]();const _0xbe4896=_0x44dfcf[_0x2c3916(0x1b0)]()[_0x2c3916(0x1ab)+'ase']();if(!_0xbe4896)return _0x19a2f7[_0x2c3916(0x1aa)](Boolean,_0x264128['defaultY'+'es']);return _0x19a2f7[_0x2c3916(0x1a0)](_0xbe4896,'y');}export async function askInput(_0xebbec){const _0x3d461a=_0x50de,_0x22f7ee={'kZEei':function(_0x42448b,_0x1aae31){return _0x42448b(_0x1aae31);}},_0x374074=_0x22f7ee['kZEei'](createInterface,{'input':_0x5f092b,'output':_0x1e8328}),_0x56f2c5=await _0x374074['question'](_0xebbec);return _0x374074[_0x3d461a(0x1a4)](),_0x56f2c5[_0x3d461a(0x1b0)]();}
|
package/dist-secure/ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x4317aa=_0x56dc;function _0x4b8b(){const _0x182432=['apply','22950780HjWXhv','53366fCbguQ','pwLTX','JMWnl','uKEaH','sPibU','\x1b[31m','eXXXR','5nzGXhE','lNbGX','qpPPR','2376105twnDzp','toString','jCArh','161ueiDYf','construc','\x0d\x1b[2K','\x1b[1m','QLmuV','log','2868680UcjIIA','dim','--------','MMMox','\x1b[33m','Btdfi','\x1b[0m','join','vciRu','error','147594XdRNCL','green','rrueX','RnGjK','bold','reset','stdout','search','DLpJa','+)+$','isTTY','QmYWQ','DSjKP','ERROR','\x1b[2m','yellow','cyan','XXopL','\x1b[36m','9TXikjl','lyeHG','length','2922676iQJYzr','(((.+)+)','yQsyy','exit','3374370ZkWdoA','write','red'];_0x4b8b=function(){return _0x182432;};return _0x4b8b();}(function(_0x3c8fd9,_0x597a84){const _0x152468=_0x56dc,_0x135b69=_0x3c8fd9();while(!![]){try{const _0x1c6d29=parseInt(_0x152468(0x193))/0x1*(parseInt(_0x152468(0x19f))/0x2)+-parseInt(_0x152468(0x1a9))/0x3+-parseInt(_0x152468(0x196))/0x4*(parseInt(_0x152468(0x1a6))/0x5)+-parseInt(_0x152468(0x1bc))/0x6*(parseInt(_0x152468(0x1ac))/0x7)+parseInt(_0x152468(0x1b2))/0x8+-parseInt(_0x152468(0x19a))/0x9+parseInt(_0x152468(0x19e))/0xa;if(_0x1c6d29===_0x597a84)break;else _0x135b69['push'](_0x135b69['shift']());}catch(_0x54669b){_0x135b69['push'](_0x135b69['shift']());}}}(_0x4b8b,0x6913f));const _0x13f831=(function(){let _0x305ec9=!![];return function(_0x461d93,_0x1b60a3){const _0x826e60=_0x305ec9?function(){const _0x544e12=_0x56dc;if(_0x1b60a3){const _0x1fc35e=_0x1b60a3[_0x544e12(0x19d)](_0x461d93,arguments);return _0x1b60a3=null,_0x1fc35e;}}:function(){};return _0x305ec9=![],_0x826e60;};}()),_0xf7ed2=_0x13f831(this,function(){const _0x252add=_0x56dc,_0x5ef667={'YdcrY':_0x252add(0x197)+_0x252add(0x189)};return _0xf7ed2[_0x252add(0x1aa)]()[_0x252add(0x187)]('(((.+)+)'+_0x252add(0x189))[_0x252add(0x1aa)]()[_0x252add(0x1ad)+'tor'](_0xf7ed2)['search'](_0x5ef667['YdcrY']);});_0xf7ed2();export const ui={'reset':_0x4317aa(0x1b8),'bold':_0x4317aa(0x1af),'dim':_0x4317aa(0x18e),'cyan':_0x4317aa(0x192),'green':'\x1b[32m','yellow':_0x4317aa(0x1b6),'red':_0x4317aa(0x1a4)};export function style(_0x1e3bba,..._0x12c2a3){const _0x2569ce=_0x4317aa;return''+_0x12c2a3[_0x2569ce(0x1b9)]('')+_0x1e3bba+ui['reset'];}export function divider(){const _0x35c5c3=_0x4317aa,_0x13a94d={'MMMox':function(_0x26291f,_0x8071b3,_0x38bfbc){return _0x26291f(_0x8071b3,_0x38bfbc);},'jCArh':_0x35c5c3(0x1b4)+_0x35c5c3(0x1b4)+_0x35c5c3(0x1b4)+'--------'+'--------'+'--------'+'--'};console[_0x35c5c3(0x1b1)](_0x13a94d[_0x35c5c3(0x1b5)](style,_0x13a94d[_0x35c5c3(0x1ab)],ui[_0x35c5c3(0x1b3)]));}export function section(_0x28bc78){const _0x254bf0=_0x4317aa,_0x54ffda={'QLmuV':function(_0x343f98){return _0x343f98();},'rrueX':function(_0x5d8e98,_0x43c5b9,_0x4dbdcd,_0x5cb216){return _0x5d8e98(_0x43c5b9,_0x4dbdcd,_0x5cb216);},'XXopL':function(_0x13ceb1){return _0x13ceb1();}};_0x54ffda[_0x254bf0(0x1b0)](divider),console[_0x254bf0(0x1b1)](_0x54ffda[_0x254bf0(0x1be)](style,_0x28bc78,ui[_0x254bf0(0x1c0)],ui['cyan'])),_0x54ffda[_0x254bf0(0x191)](divider);}function _0x56dc(_0x5b5d54,_0xe8f720){_0x5b5d54=_0x5b5d54-0x186;const _0x1fbbfd=_0x4b8b();let _0xf7ed2=_0x1fbbfd[_0x5b5d54];return _0xf7ed2;}export function ok(_0x56c065){const _0x58b5b9=_0x4317aa,_0x382766={'qpPPR':function(_0x5820df,_0x1b0ea0,_0x1b9cc9,_0x2b3587){return _0x5820df(_0x1b0ea0,_0x1b9cc9,_0x2b3587);}};return _0x382766[_0x58b5b9(0x1a8)](style,_0x56c065,ui[_0x58b5b9(0x1bd)],ui['bold']);}export function warn(_0x416964){const _0xc0e236=_0x4317aa;return style(_0x416964,ui[_0xc0e236(0x18f)],ui[_0xc0e236(0x1c0)]);}export function bad(_0x4869ed){const _0x4da192=_0x4317aa,_0x50b176={'uKEaH':function(_0x4ebc8b,_0x38f29e,_0x2f7eed,_0x32e765){return _0x4ebc8b(_0x38f29e,_0x2f7eed,_0x32e765);}};return _0x50b176[_0x4da192(0x1a2)](style,_0x4869ed,ui[_0x4da192(0x19c)],ui[_0x4da192(0x1c0)]);}export function failAndExit(_0x7805a){const _0x3370f0=_0x4317aa,_0x597e29={'yQsyy':function(_0x1a7912,_0x2a8f00){return _0x1a7912(_0x2a8f00);},'lNbGX':_0x3370f0(0x18d)};console[_0x3370f0(0x1bb)](_0x597e29[_0x3370f0(0x198)](bad,_0x597e29[_0x3370f0(0x1a7)])+'\x20'+_0x7805a),process[_0x3370f0(0x199)](0x1);}export async function withProgress(_0x5a50c3,_0x130cd5){const _0x8f48df=_0x4317aa,_0x30b9be={'vciRu':function(_0xf0b02d,_0x5aa387){return _0xf0b02d(_0x5aa387);},'DSjKP':_0x8f48df(0x18d),'RnGjK':function(_0x6b56d1,_0x2486d3){return _0x6b56d1!==_0x2486d3;},'JMWnl':'CbAnA','Btdfi':function(_0x393a13,_0x424a45){return _0x393a13%_0x424a45;},'DLpJa':function(_0xbccad5,_0x2194ba,_0x5c0168){return _0xbccad5(_0x2194ba,_0x5c0168);},'QmYWQ':function(_0x3f2a36){return _0x3f2a36();},'pwLTX':function(_0x4bf40c,_0x51f3e5,_0x3a6cc7){return _0x4bf40c(_0x51f3e5,_0x3a6cc7);},'eXXXR':function(_0x25c05f,_0xd39618){return _0x25c05f===_0xd39618;},'ZWXss':_0x8f48df(0x194),'sPibU':'nARoR','YnrwS':_0x8f48df(0x1ae)};if(!process['stdout'][_0x8f48df(0x18a)])return console['log'](_0x5a50c3),_0x30b9be[_0x8f48df(0x18b)](_0x130cd5);const _0x177168=['|','/','-','\x5c'];let _0x67ce80=0x0;const _0x25ac0a=()=>{const _0x44ca82=_0x8f48df;if(_0x30b9be[_0x44ca82(0x1bf)](_0x30b9be[_0x44ca82(0x1a1)],_0x30b9be[_0x44ca82(0x1a1)]))_0x9fc651[_0x44ca82(0x1bb)](unEvxI['vciRu'](_0x2ead70,unEvxI[_0x44ca82(0x18c)])+'\x20'+_0x1eb2cb),_0x4dd07a[_0x44ca82(0x199)](0x1);else{const _0x476c4f=_0x177168[_0x30b9be[_0x44ca82(0x1b7)](_0x67ce80,_0x177168[_0x44ca82(0x195)])];process[_0x44ca82(0x186)][_0x44ca82(0x19b)]('\x0d'+_0x30b9be[_0x44ca82(0x188)](style,_0x476c4f,ui[_0x44ca82(0x190)])+'\x20'+_0x5a50c3),_0x67ce80+=0x1;}};_0x30b9be['QmYWQ'](_0x25ac0a);const _0x3d6910=_0x30b9be[_0x8f48df(0x1a0)](setInterval,_0x25ac0a,0x78);try{if(_0x30b9be[_0x8f48df(0x1a5)](_0x30b9be['ZWXss'],_0x30b9be[_0x8f48df(0x1a3)]))return''+_0x19848c[_0x8f48df(0x1b9)]('')+_0x50e1c7+_0x5b5ffa[_0x8f48df(0x1c1)];else{const _0x361ed4=await _0x130cd5();return clearInterval(_0x3d6910),process['stdout'][_0x8f48df(0x19b)](_0x30b9be['YnrwS']),console[_0x8f48df(0x1b1)](_0x30b9be['vciRu'](ok,'OK')+'\x20'+_0x5a50c3),_0x361ed4;}}catch(_0x378d3a){clearInterval(_0x3d6910),process['stdout'][_0x8f48df(0x19b)](_0x8f48df(0x1ae)),console[_0x8f48df(0x1b1)](_0x30b9be[_0x8f48df(0x1ba)](bad,_0x30b9be[_0x8f48df(0x18c)])+'\x20'+_0x5a50c3);throw _0x378d3a;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ericknovaes56/gemit-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
|
|
5
5
|
"main": "dist-secure/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"ai",
|
|
28
28
|
"conventional-commits"
|
|
29
29
|
],
|
|
30
|
-
"author": "",
|
|
30
|
+
"author": "erick novaes56",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"type": "module",
|
|
33
33
|
"dependencies": {
|