gemit-cli 1.5.2

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 ADDED
@@ -0,0 +1,36 @@
1
+ # gemit-cli
2
+
3
+ CLI para sugerir mensagens de commit e nomes de branch com IA.
4
+
5
+ ## Instalação
6
+
7
+ ```bash
8
+ npm install -g @ericknovaes56/gemit-cli
9
+ ```
10
+
11
+ ## Configuração
12
+
13
+ ```bash
14
+ gemit init
15
+ ```
16
+
17
+ ## Uso
18
+
19
+ ```bash
20
+ gemit # sugere commit usando arquivos staged
21
+ gemit commit --all # git add . + fluxo de commit em 4 passos
22
+ gemit commit --check # roda lint/test (se existirem) antes do commit
23
+ gemit add --all # equivalente a git add . + sugestão de commit
24
+ gemit branch "texto" # sugere branch
25
+ gemit pr # gera título + descrição de PR
26
+ gemit log # resume o trabalho do branch
27
+ gemit changelog # gera changelog em changelogs/nome-data.md
28
+ gemit doctor # verifica configuração
29
+ gemit -v # versão
30
+ ```
31
+
32
+ ## Provedores suportados
33
+
34
+ - `google`
35
+ - `openai`
36
+ - `anthropic`
@@ -0,0 +1 @@
1
+ (function(_0x2b86ce,_0x2f0055){const _0x21fcc7=_0x4d45,_0x37453c=_0x2b86ce();while(!![]){try{const _0x3ca7bb=parseInt(_0x21fcc7(0xaa))/0x1+parseInt(_0x21fcc7(0x93))/0x2*(-parseInt(_0x21fcc7(0x9a))/0x3)+-parseInt(_0x21fcc7(0x92))/0x4+parseInt(_0x21fcc7(0xa7))/0x5+parseInt(_0x21fcc7(0x9d))/0x6*(-parseInt(_0x21fcc7(0x99))/0x7)+parseInt(_0x21fcc7(0x94))/0x8+-parseInt(_0x21fcc7(0x95))/0x9*(-parseInt(_0x21fcc7(0xa2))/0xa);if(_0x3ca7bb===_0x2f0055)break;else _0x37453c['push'](_0x37453c['shift']());}catch(_0x4be071){_0x37453c['push'](_0x37453c['shift']());}}}(_0xc728,0x2dc6a));const _0xaeb76c=(function(){let _0x2855ed=!![];return function(_0x52a7c6,_0x4f6552){const _0x276e89=_0x2855ed?function(){const _0x28193a=_0x4d45;if(_0x4f6552){const _0x5721bd=_0x4f6552[_0x28193a(0xa8)](_0x52a7c6,arguments);return _0x4f6552=null,_0x5721bd;}}:function(){};return _0x2855ed=![],_0x276e89;};}()),_0xf54d6=_0xaeb76c(this,function(){const _0x26c13a=_0x4d45,_0x4adbe3={'MOQlN':_0x26c13a(0xab)+_0x26c13a(0xa0)};return _0xf54d6[_0x26c13a(0xa4)]()['search'](_0x4adbe3[_0x26c13a(0xa3)])[_0x26c13a(0xa4)]()['construc'+_0x26c13a(0xa9)](_0xf54d6)[_0x26c13a(0x9e)](_0x4adbe3[_0x26c13a(0xa3)]);});function _0x4d45(_0xb33e68,_0x495cdc){_0xb33e68=_0xb33e68-0x90;const _0x401b25=_0xc728();let _0xf54d6=_0x401b25[_0xb33e68];return _0xf54d6;}_0xf54d6();function _0xc728(){const _0x3a282b=['935000fIGFiJ','1359ttLAHs','json','FBbXz','0.0.0','7rMghqu','3MAKBiU','YtNxP','dist','876954nUAoSo','search','NAsGo','+)+$','Fskwp','2140DSEBSk','MOQlN','toString','zHOuD','dist-sec','1055920XcQTyC','apply','tor','330615hISWGm','(((.+)+)','MgHUa','parse','488840WNNIBh','470242vnubqZ'];_0xc728=function(){return _0x3a282b;};return _0xc728();}import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x5f3e0e=_0x4d45,_0x1c2fa4={'JCnAu':function(_0x1a6375,_0x17a616){return _0x1a6375(_0x17a616);},'FBbXz':function(_0x44bebd,_0x54e08b){return _0x44bebd===_0x54e08b;},'MgHUa':function(_0x932972,_0x45d2da){return _0x932972(_0x45d2da);},'NAsGo':_0x5f3e0e(0xa6)+'ure','zHOuD':'package.'+_0x5f3e0e(0x96),'YtNxP':function(_0x9d5442,_0x280511,_0x3f1d00){return _0x9d5442(_0x280511,_0x3f1d00);},'Fskwp':'utf8'};try{const _0x5b9fdf=fileURLToPath(import.meta.url),_0x5c4960=_0x1c2fa4['JCnAu'](dirname,_0x5b9fdf),_0x554f59=_0x1c2fa4[_0x5f3e0e(0x97)](_0x1c2fa4[_0x5f3e0e(0x90)](basename,_0x5c4960),_0x5f3e0e(0x9c))||_0x1c2fa4['JCnAu'](basename,_0x5c4960)===_0x1c2fa4[_0x5f3e0e(0x9f)]?join(_0x5c4960,'..',_0x1c2fa4[_0x5f3e0e(0xa5)]):join(_0x5c4960,_0x1c2fa4[_0x5f3e0e(0xa5)]),_0x30bd16=_0x1c2fa4[_0x5f3e0e(0x9b)](readFileSync,_0x554f59,_0x1c2fa4[_0x5f3e0e(0xa1)]),_0x39c46f=JSON[_0x5f3e0e(0x91)](_0x30bd16);return _0x39c46f['version']||_0x5f3e0e(0x98);}catch{return _0x5f3e0e(0x98);}}
@@ -0,0 +1 @@
1
+ function _0x5f99(_0x56632e,_0x474ed0){_0x56632e=_0x56632e-0x69;var _0x3fe08d=_0x9033();var _0x1f8768=_0x3fe08d[_0x56632e];return _0x1f8768;}(function(_0x39dfad,_0x3e3a21){var _0x3fd16a=_0x5f99,_0x48c11c=_0x39dfad();while(!![]){try{var _0x531b91=-parseInt(_0x3fd16a(0x71))/0x1+-parseInt(_0x3fd16a(0x82))/0x2*(parseInt(_0x3fd16a(0x6d))/0x3)+parseInt(_0x3fd16a(0x7d))/0x4+parseInt(_0x3fd16a(0x6e))/0x5+-parseInt(_0x3fd16a(0x69))/0x6*(-parseInt(_0x3fd16a(0x7c))/0x7)+parseInt(_0x3fd16a(0x6c))/0x8*(-parseInt(_0x3fd16a(0x77))/0x9)+-parseInt(_0x3fd16a(0x7b))/0xa*(-parseInt(_0x3fd16a(0x81))/0xb);if(_0x531b91===_0x3e3a21)break;else _0x48c11c['push'](_0x48c11c['shift']());}catch(_0x2ad602){_0x48c11c['push'](_0x48c11c['shift']());}}}(_0x9033,0x1cb08));var _0x106cc3=(function(){var _0x48223d=!![];return function(_0x2c1deb,_0x2a56f8){var _0x4a7da0=_0x48223d?function(){var _0x295ebe=_0x5f99;if(_0x2a56f8){var _0x1fffba=_0x2a56f8[_0x295ebe(0x7f)](_0x2c1deb,arguments);return _0x2a56f8=null,_0x1fffba;}}:function(){};return _0x48223d=![],_0x4a7da0;};}()),_0x1f8768=_0x106cc3(this,function(){var _0x20f2e4=_0x5f99;return _0x1f8768[_0x20f2e4(0x72)]()[_0x20f2e4(0x78)]('(((.+)+)'+_0x20f2e4(0x7a))[_0x20f2e4(0x72)]()['construc'+_0x20f2e4(0x70)](_0x1f8768)['search'](_0x20f2e4(0x6f)+_0x20f2e4(0x7a));});function _0x9033(){var _0x412494=['he\x20sugge','ZVdJO','396pTpetN','search','ntinue\x20t','+)+$','10qtUkDD','1125649KujnAV','76288YoSsAf','ow.','apply','it\x20add\x20-','3046923uArzEA','884mzTHus','check','6MrKuVm','all','g\x20and\x20co','5544CFhUXv','1545prIPIs','539905VeLYHk','(((.+)+)','tor','189219mHLyde','toString','\x20stage\x20e','stion\x20fl'];_0x9033=function(){return _0x412494;};return _0x9033();}_0x1f8768();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';export async function addAndCommit(_0x19428e={}){var _0x4eebee=_0x5f99,_0x41a8cb={'IZgDq':function(_0x53c92e,_0xad5d75){return _0x53c92e(_0xad5d75);},'ZVdJO':'Use\x20`gem'+_0x4eebee(0x80)+'-all`\x20to'+_0x4eebee(0x73)+'verythin'+_0x4eebee(0x6b)+_0x4eebee(0x79)+_0x4eebee(0x75)+_0x4eebee(0x74)+_0x4eebee(0x7e)};!_0x19428e[_0x4eebee(0x6a)]&&_0x41a8cb['IZgDq'](failAndExit,_0x41a8cb[_0x4eebee(0x76)]),await generateCommit({'all':!![],'check':_0x41a8cb['IZgDq'](Boolean,_0x19428e[_0x4eebee(0x83)])});}
@@ -0,0 +1 @@
1
+ (function(_0x3764ee,_0x581cb1){const _0x145526=_0x5860,_0x58c054=_0x3764ee();while(!![]){try{const _0x482832=-parseInt(_0x145526(0x178))/0x1+-parseInt(_0x145526(0x17d))/0x2*(-parseInt(_0x145526(0x147))/0x3)+-parseInt(_0x145526(0x177))/0x4+parseInt(_0x145526(0x14f))/0x5*(-parseInt(_0x145526(0x123))/0x6)+parseInt(_0x145526(0x138))/0x7*(-parseInt(_0x145526(0x168))/0x8)+-parseInt(_0x145526(0x141))/0x9+parseInt(_0x145526(0x139))/0xa;if(_0x482832===_0x581cb1)break;else _0x58c054['push'](_0x58c054['shift']());}catch(_0x3e82e1){_0x58c054['push'](_0x58c054['shift']());}}}(_0x5814,0x57615));function _0x5860(_0x285376,_0x4769d4){_0x285376=_0x285376-0x11e;const _0x590fbd=_0x5814();let _0x4edc62=_0x590fbd[_0x285376];return _0x4edc62;}const _0x43cd58=(function(){const _0x337f35=_0x5860,_0x4d7d95={'yBlqq':function(_0x4fed90,_0x5f393d){return _0x4fed90!==_0x5f393d;},'LMPWU':_0x337f35(0x13b)};let _0xc3ace8=!![];return function(_0x8aef94,_0xec2555){const _0x36c8f4=_0x337f35;if(_0x4d7d95[_0x36c8f4(0x171)](_0x4d7d95[_0x36c8f4(0x17c)],_0x4d7d95[_0x36c8f4(0x17c)]))return _0x36c8f4(0x14c)+_0x3b8fe8;else{const _0x4ca9e1=_0xc3ace8?function(){const _0x552ad1=_0x36c8f4;if(_0xec2555){const _0x32d205=_0xec2555[_0x552ad1(0x12b)](_0x8aef94,arguments);return _0xec2555=null,_0x32d205;}}:function(){};return _0xc3ace8=![],_0x4ca9e1;}};}()),_0x4edc62=_0x43cd58(this,function(){const _0x2e0bb2=_0x5860;return _0x4edc62['toString']()[_0x2e0bb2(0x172)](_0x2e0bb2(0x13a)+_0x2e0bb2(0x14a))[_0x2e0bb2(0x129)]()['construc'+_0x2e0bb2(0x12e)](_0x4edc62)[_0x2e0bb2(0x172)](_0x2e0bb2(0x13a)+_0x2e0bb2(0x14a));});_0x4edc62();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';function _0x5814(){const _0x47ab6d=['te\x20branc','h\x20name.','LMPWU','34dwVqzM','ALgmP','es:\x0a\x20\x20\x20\x20','\x0a\x20\x20\x20\x20Rul','inherit','th\x20this\x20','inking\x20a','18bpHnpH','\x0a\x20\x20','\x0a\x20\x20\x20\x20','Create\x20b','/<kebab-','ranch\x20wi','toString','\x20\x20-\x20Maxi','apply','name?\x20(y','kCSvM','tor','zOHEl','log','slice','created.','/n):\x20','toLowerC','TBKbL','sponse..','\x20Branch\x20','7VMjLZR','22524270RrXqRH','(((.+)+)','pWgnf','efactor,','WGWBk','\x20test\x0a\x20\x20','BrUCU','\x20branch.','5248233ZZKflm',':\x20<type>','replace','D\x20BRANCH','feat/upd','content','1851lzmufU','feature\x20','aRyCn','+)+$','Allowed\x20','feat/','types:\x20f','branch\x20n','790140FxFJTI','case-des','dxBYp','o\x20genera','ase','NFD','CANCELED','th:\x2050\x20c','Branch\x20a','OVqCt','ch\x20name\x20','aekKN','checkout','-\x20Format','\x20\x20\x20\x20Desc','Return\x20O','o\x20create','pWRUf','EhaSk',',\x20chore,','invoke','for\x20the\x20','ame\x20in\x20E','UIERc','WjZMT','3648488ImSoEC','message','cription','nglish\x0a\x0a','mum\x20leng','>\x0a\x20\x20\x20\x20-\x20','nCdkB','MpbEB','\x20docs,\x20r','yBlqq','search','sJITd','ate','NLY\x20the\x20','Failed\x20t','1095568jOXSzu','117833wzEHUC','nd\x20reque'];_0x5814=function(){return _0x47ab6d;};return _0x5814();}import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,section,style,ui,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0x2503ff){const _0x40b97f=_0x5860,_0x52ec1b={'BrUCU':_0x40b97f(0x154),'OVqCt':function(_0x3a05b4,_0xf11d2d){return _0x3a05b4||_0xf11d2d;}},_0x28a1dd=_0x2503ff['normaliz'+'e'](_0x52ec1b[_0x40b97f(0x13f)])[_0x40b97f(0x143)](/[\u0300-\u036f]/g,'')[_0x40b97f(0x134)+_0x40b97f(0x153)]()[_0x40b97f(0x143)](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')['replace'](/\/{2,}/g,'/')[_0x40b97f(0x143)](/^-+|-+$/g,'')[_0x40b97f(0x143)](/^\/+|\/+$/g,''),_0x20e938=_0x28a1dd[_0x40b97f(0x131)](0x0,0x32)[_0x40b97f(0x143)](/\/+$/g,'')['replace'](/-+$/g,''),_0x255393=_0x52ec1b[_0x40b97f(0x158)](_0x20e938,_0x40b97f(0x145)+_0x40b97f(0x174));if(!_0x255393['includes']('/'))return _0x40b97f(0x14c)+_0x255393;return _0x255393;}function getLLM(){const _0x2d5dfe=_0x5860,_0x404774={'nCdkB':function(_0x37f257){return _0x37f257();},'dxBYp':function(_0x533db6,_0x2ef212){return _0x533db6(_0x2ef212);}};try{return _0x404774[_0x2d5dfe(0x16e)](createLLM);}catch(_0x93e844){const _0x5ab516=_0x93e844 instanceof Error?_0x93e844[_0x2d5dfe(0x169)]:String(_0x93e844);_0x404774[_0x2d5dfe(0x151)](failAndExit,_0x5ab516);}}export async function suggestBranch(_0x23266f){const _0x572c85=_0x5860,_0x47722a={'EhaSk':function(_0x830e5f){return _0x830e5f();},'WjZMT':function(_0x402733){return _0x402733();},'zOHEl':function(_0x311e31,_0x4c5f70){return _0x311e31(_0x4c5f70);},'TBKbL':'Failed\x20t'+_0x572c85(0x152)+_0x572c85(0x17a)+_0x572c85(0x17b),'yEMgL':function(_0x16c401,_0x5f4aa2){return _0x16c401(_0x5f4aa2);},'UIERc':'SUGGESTE'+_0x572c85(0x144),'kCSvM':function(_0x33cf80,_0x13a4d7,_0x5c19fd){return _0x33cf80(_0x13a4d7,_0x5c19fd);},'pWRUf':function(_0x352b36,_0x3ac08e){return _0x352b36(_0x3ac08e);},'aekKN':_0x572c85(0x155),'MpbEB':'git','WGWBk':_0x572c85(0x120),'hhUIr':function(_0xbe1d16,_0x4ef704){return _0xbe1d16!==_0x4ef704;},'aRyCn':_0x572c85(0x173),'IYfux':'ybktO','rOhiO':function(_0x2a30c0,_0x322da9){return _0x2a30c0(_0x322da9);},'ALgmP':_0x572c85(0x176)+_0x572c85(0x15f)+_0x572c85(0x140)};_0x47722a[_0x572c85(0x161)](getGitStatus);const _0x53e013=_0x47722a[_0x572c85(0x167)](getLLM),_0x3f1eb1='\x0a\x20\x20\x20\x20Gen'+'erate\x20a\x20'+'git\x20bran'+_0x572c85(0x159)+_0x572c85(0x164)+_0x572c85(0x148)+'describe'+'d\x20below.'+_0x572c85(0x11f)+_0x572c85(0x11e)+_0x572c85(0x15c)+_0x572c85(0x142)+_0x572c85(0x127)+_0x572c85(0x150)+_0x572c85(0x16a)+_0x572c85(0x16d)+_0x572c85(0x14b)+_0x572c85(0x14d)+'eat,\x20fix'+_0x572c85(0x162)+_0x572c85(0x170)+_0x572c85(0x13c)+_0x572c85(0x13e)+_0x572c85(0x12a)+_0x572c85(0x16c)+_0x572c85(0x156)+'haracter'+'s\x0a\x20\x20\x20\x20-\x20'+_0x572c85(0x15e)+_0x572c85(0x175)+_0x572c85(0x14e)+_0x572c85(0x165)+_0x572c85(0x16b)+_0x572c85(0x15d)+'ription:'+_0x572c85(0x125)+_0x23266f+_0x572c85(0x124),_0x1674dd=await withProgress('AI\x20is\x20th'+_0x572c85(0x122)+_0x572c85(0x179)+'sting\x20re'+_0x572c85(0x136)+'.',()=>_0x53e013[_0x572c85(0x163)](_0x3f1eb1)),_0x3851b6=_0x47722a['zOHEl'](extractMessageText,_0x1674dd[_0x572c85(0x146)]),_0x22814b=_0x47722a[_0x572c85(0x12f)](sanitizeBranchName,_0x3851b6);!_0x22814b&&_0x47722a[_0x572c85(0x12f)](failAndExit,_0x47722a[_0x572c85(0x135)]);_0x47722a[_0x572c85(0x12f)](branchExists,_0x22814b)&&_0x47722a['yEMgL'](failAndExit,_0x572c85(0x157)+'lready\x20e'+'xists:\x20'+_0x22814b);_0x47722a[_0x572c85(0x12f)](section,_0x47722a[_0x572c85(0x166)]),console['log'](_0x47722a[_0x572c85(0x12d)](style,_0x22814b,ui['bold'])),console[_0x572c85(0x130)]();const _0x4344cd=await _0x47722a['zOHEl'](askConfirmation,_0x572c85(0x126)+_0x572c85(0x128)+_0x572c85(0x121)+_0x572c85(0x12c)+_0x572c85(0x133));if(!_0x4344cd){console['log'](_0x47722a[_0x572c85(0x160)](warn,_0x47722a[_0x572c85(0x15a)])+(_0x572c85(0x137)+'was\x20not\x20'+_0x572c85(0x132)));return;}try{execFileSync(_0x47722a[_0x572c85(0x16f)],[_0x572c85(0x15b),'-b',_0x22814b],{'stdio':_0x47722a[_0x572c85(0x13d)]});}catch{if(_0x47722a['hhUIr'](_0x47722a[_0x572c85(0x149)],_0x47722a['IYfux']))_0x47722a['rOhiO'](failAndExit,_0x47722a[_0x572c85(0x17e)]);else return _0x8f58e6();}}
@@ -0,0 +1 @@
1
+ (function(_0x172bd8,_0x221450){const _0x230f15=_0x2585,_0x66eedc=_0x172bd8();while(!![]){try{const _0x282a4f=parseInt(_0x230f15(0x194))/0x1*(-parseInt(_0x230f15(0x1b8))/0x2)+-parseInt(_0x230f15(0x179))/0x3+-parseInt(_0x230f15(0x1af))/0x4*(parseInt(_0x230f15(0x1a0))/0x5)+parseInt(_0x230f15(0x19d))/0x6+-parseInt(_0x230f15(0x186))/0x7+-parseInt(_0x230f15(0x1b4))/0x8*(parseInt(_0x230f15(0x173))/0x9)+-parseInt(_0x230f15(0x14f))/0xa*(-parseInt(_0x230f15(0x17a))/0xb);if(_0x282a4f===_0x221450)break;else _0x66eedc['push'](_0x66eedc['shift']());}catch(_0x117b81){_0x66eedc['push'](_0x66eedc['shift']());}}}(_0x48fc,0xcf69a));const _0x59a5d=(function(){let _0x31fe97=!![];return function(_0x51a655,_0x52f1b9){const _0x51d8ab=_0x31fe97?function(){if(_0x52f1b9){const _0x260fcb=_0x52f1b9['apply'](_0x51a655,arguments);return _0x52f1b9=null,_0x260fcb;}}:function(){};return _0x31fe97=![],_0x51d8ab;};}()),_0x48b8be=_0x59a5d(this,function(){const _0x47fc93=_0x2585,_0x3aef65={'DUwYP':_0x47fc93(0x15e)+'+)+$'};return _0x48b8be[_0x47fc93(0x164)]()[_0x47fc93(0x158)](_0x3aef65[_0x47fc93(0x172)])[_0x47fc93(0x164)]()['construc'+_0x47fc93(0x18d)](_0x48b8be)[_0x47fc93(0x158)](_0x3aef65[_0x47fc93(0x172)]);});_0x48b8be();function _0x48fc(){const _0x58c0e2=['jCzdM','5547108guhWJU','G\x20GENERA','coes\x20por','unknown-','s\x20e\x20assu','655192wfUbBq','xMOTt','bvsDB','ommits\x22\x20','8WFWkjH','replace','QGZqO','o\x20genera','subject','ao\x20inven','hxrHO','20PWnLrA','\x20(Featur','NFD','Regras:\x0a','itulo,\x20r','ntos\x0a-\x20N','log','elog\x20con','date','search','de\x20hashe','CHANGELO','slice','\x20File\x20sa','-\x20Respon','(((.+)+)','No\x20commi','xMSeC','author','Uesod','s:\x0a','toString','ngelog.','om\x20base\x20','\x20mudanca','AI\x20is\x20ge','do\x20Brasi','frKBg','a\x20curta\x20','zwGes','.md','\x20to\x20gene','auiur','CpXcl','rto\x20e\x20se','DUwYP','135sHEzzT','cs,\x20Chor','NnptV','changelo','toISOStr','jlWCU','3138090vxWDdd','20275684lAYjgJ','\x20|\x20','map','body','rtugues\x20','invoke','aDAhO','utf8','rate\x20cha','yWVwO','secao\x20\x22C','ase','2546376TgwIjo','hash','nerating','Failed\x20t','bldYD','\x20CHANGEL','TneFe','tor','content','\x20|\x20body:','join','trim','\x20changel','com\x20list','48262ZgPsDG','te\x20chang','torico\x20d','AEOmP','message','xKzQf','no\x20histo','te\x20mudan','es,\x20Fixe','8287092nCyKiO','\x20tipo\x20de','tent.','5pWeSwY','lua\x20uma\x20','GZAiI','Tcyxe','mBcKh','normaliz','\x0aCrie\x20um','FqRiE','da\x20em\x20po','ts\x20found','hgaMb','length','esumo\x20cu','SLQPk'];_0x48fc=function(){return _0x58c0e2;};return _0x48fc();}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 _0x3d90ea=_0x2585,_0x3e0ff5={'jCzdM':function(_0x45c5de,_0x11a90c){return _0x45c5de(_0x11a90c);},'pfErR':_0x3d90ea(0x15f)+_0x3d90ea(0x1a9)+_0x3d90ea(0x16e)+_0x3d90ea(0x182)+_0x3d90ea(0x165),'bldYD':function(_0x5736fe){return _0x5736fe();},'xKzQf':function(_0x3b3500,_0x5cb5ce){return _0x3b3500!==_0x5cb5ce;},'xOLiz':_0x3d90ea(0x197),'bvsDB':function(_0x524e5b,_0x84f477){return _0x524e5b instanceof _0x84f477;},'GZAiI':function(_0x104465,_0x1cffb4){return _0x104465(_0x1cffb4);}};try{return _0x3e0ff5[_0x3d90ea(0x18a)](createLLM);}catch(_0x41948a){if(_0x3e0ff5[_0x3d90ea(0x199)](_0x3d90ea(0x1a3),_0x3e0ff5['xOLiz'])){const _0x1f688a=_0x3e0ff5[_0x3d90ea(0x1b6)](_0x41948a,Error)?_0x41948a[_0x3d90ea(0x198)]:_0x3e0ff5[_0x3d90ea(0x1a2)](String,_0x41948a);failAndExit(_0x1f688a);}else _0x3e0ff5[_0x3d90ea(0x1ae)](_0x4220eb,_0x3e0ff5['pfErR']);}}function sanitizeName(_0x4fb365){const _0x394879=_0x2585,_0x247582={'jlWCU':_0x394879(0x151),'aBXlq':_0x394879(0x176)+'g'},_0x14efb1=_0x4fb365[_0x394879(0x1a5)+'e'](_0x247582[_0x394879(0x178)])[_0x394879(0x1b9)](/[\u0300-\u036f]/g,'')['toLowerC'+_0x394879(0x185)]()[_0x394879(0x1b9)](/[^a-z0-9-]+/g,'-')[_0x394879(0x1b9)](/-{2,}/g,'-')[_0x394879(0x1b9)](/^-+|-+$/g,'');return _0x14efb1||_0x247582['aBXlq'];}function _0x2585(_0x326d61,_0x5c822f){_0x326d61=_0x326d61-0x14d;const _0x1af0cd=_0x48fc();let _0x48b8be=_0x1af0cd[_0x326d61];return _0x48b8be;}function formatDateForFile(_0x2f5e17){const _0x590796=_0x2585;return _0x2f5e17[_0x590796(0x177)+'ing']()[_0x590796(0x15b)](0x0,0xa);}function buildCommitHistoryPrompt(){const _0x22b69b=_0x2585,_0x16a6b7={'CpXcl':_0x22b69b(0x1b2)+_0x22b69b(0x157),'xMOTt':_0x22b69b(0x1b2)+_0x22b69b(0x161),'QGZqO':function(_0x2e2998,_0x26c743){return _0x2e2998(_0x26c743);},'NnptV':function(_0x2855d4,_0x1a486d){return _0x2855d4===_0x1a486d;},'auiur':function(_0x2224ab,_0x575703){return _0x2224ab(_0x575703);},'MdEhm':'No\x20commi'+_0x22b69b(0x1a9)+_0x22b69b(0x16e)+_0x22b69b(0x182)+_0x22b69b(0x165)},_0x5045a7=_0x16a6b7[_0x22b69b(0x1ba)](getCommitHistory,0x96);return _0x16a6b7[_0x22b69b(0x175)](_0x5045a7[_0x22b69b(0x1ab)],0x0)&&_0x16a6b7[_0x22b69b(0x16f)](failAndExit,_0x16a6b7['MdEhm']),_0x5045a7[_0x22b69b(0x17c)](_0x55c472=>{const _0x2c53d7=_0x22b69b,_0xb0a9e0=_0x55c472['body']?_0x2c53d7(0x18f)+'\x20'+_0x55c472[_0x2c53d7(0x17d)][_0x2c53d7(0x1b9)](/\s+/g,'\x20')[_0x2c53d7(0x191)]():'',_0xb5339d=_0x55c472[_0x2c53d7(0x157)]||_0x16a6b7[_0x2c53d7(0x170)],_0x17eb33=_0x55c472[_0x2c53d7(0x161)]||_0x16a6b7[_0x2c53d7(0x1b5)];return'-\x20'+_0xb5339d+_0x2c53d7(0x17b)+_0x55c472[_0x2c53d7(0x187)][_0x2c53d7(0x15b)](0x0,0x7)+_0x2c53d7(0x17b)+_0x17eb33+_0x2c53d7(0x17b)+_0x55c472[_0x2c53d7(0x1bc)]+_0xb0a9e0;})[_0x22b69b(0x190)]('\x0a');}export async function generateChangelog(_0x3e3e7f){const _0x5bf1e5=_0x2585,_0x11efdd={'FqRiE':function(_0xb21eac){return _0xb21eac();},'ayvxM':function(_0x3cea74){return _0x3cea74();},'hgaMb':function(_0x2a6842,_0x10c692){return _0x2a6842(_0x10c692);},'XGJks':function(_0x19a65f,_0x2ae068){return _0x19a65f||_0x2ae068;},'hxrHO':function(_0x298e9b){return _0x298e9b();},'xMSeC':function(_0x598acf,_0x5e7718,_0x31e68b){return _0x598acf(_0x5e7718,_0x31e68b);},'sVkJD':_0x5bf1e5(0x168)+_0x5bf1e5(0x188)+_0x5bf1e5(0x192)+'og...','frKBg':function(_0x45242d,_0x28254d){return _0x45242d(_0x28254d);},'zwGes':_0x5bf1e5(0x189)+_0x5bf1e5(0x1bb)+_0x5bf1e5(0x195)+_0x5bf1e5(0x156)+_0x5bf1e5(0x19f),'aDAhO':_0x5bf1e5(0x176)+'gs','TneFe':function(_0x14e6c2,_0x1705dd,_0x1d2d39){return _0x14e6c2(_0x1705dd,_0x1d2d39);},'Uesod':function(_0x55f997,_0x3d6b62,_0x1ff7b1){return _0x55f997(_0x3d6b62,_0x1ff7b1);},'SLQPk':function(_0x588c68,_0x5c472f,_0x1c1873,_0x27b765){return _0x588c68(_0x5c472f,_0x1c1873,_0x27b765);},'mBcKh':_0x5bf1e5(0x181),'yWVwO':_0x5bf1e5(0x15a)+_0x5bf1e5(0x1b0)+'TED'};_0x11efdd[_0x5bf1e5(0x1a7)](getGitStatus);const _0x4d208e=_0x11efdd['ayvxM'](getLLM),_0x4e8253=_0x11efdd[_0x5bf1e5(0x1a7)](getCurrentBranch),_0x92c9d5=_0x11efdd[_0x5bf1e5(0x1aa)](sanitizeName,_0x11efdd['XGJks'](_0x3e3e7f,_0x4e8253)[_0x5bf1e5(0x191)]()),_0x5c3712=formatDateForFile(new Date()),_0x55c1f6=_0x92c9d5+'-'+_0x5c3712+_0x5bf1e5(0x16d),_0xc2b9db=_0x11efdd[_0x5bf1e5(0x14e)](buildCommitHistoryPrompt),_0x689341=(_0x5bf1e5(0x1a6)+_0x5bf1e5(0x18b)+'OG\x20em\x20ma'+'rkdown\x20c'+_0x5bf1e5(0x166)+_0x5bf1e5(0x19a)+'rico\x20de\x20'+'commits\x20'+'abaixo.\x0a'+_0x5bf1e5(0x152)+_0x5bf1e5(0x15d)+_0x5bf1e5(0x1a8)+_0x5bf1e5(0x17e)+_0x5bf1e5(0x169)+'l\x0a-\x20Estr'+'utura:\x20t'+_0x5bf1e5(0x153)+_0x5bf1e5(0x1ac)+_0x5bf1e5(0x171)+_0x5bf1e5(0x1b1)+_0x5bf1e5(0x19e)+_0x5bf1e5(0x167)+_0x5bf1e5(0x150)+_0x5bf1e5(0x19c)+'s,\x20Refac'+'tors,\x20Do'+_0x5bf1e5(0x174)+'e)\x0a-\x20Inc'+_0x5bf1e5(0x1a1)+_0x5bf1e5(0x184)+_0x5bf1e5(0x1b7)+_0x5bf1e5(0x193)+_0x5bf1e5(0x16b)+_0x5bf1e5(0x159)+_0x5bf1e5(0x1b3)+_0x5bf1e5(0x154)+_0x5bf1e5(0x14d)+_0x5bf1e5(0x19b)+'cas\x0a\x0aHis'+_0x5bf1e5(0x196)+'e\x20commit'+_0x5bf1e5(0x163)+_0xc2b9db+'\x0a')[_0x5bf1e5(0x191)](),_0x18cb9c=await _0x11efdd[_0x5bf1e5(0x160)](withProgress,_0x11efdd['sVkJD'],()=>_0x4d208e[_0x5bf1e5(0x17f)](_0x689341)),_0x25f0de=_0x11efdd[_0x5bf1e5(0x16a)](extractMessageText,_0x18cb9c[_0x5bf1e5(0x18e)]);!_0x25f0de&&failAndExit(_0x11efdd[_0x5bf1e5(0x16c)]);const _0x414aae=join(process['cwd'](),_0x11efdd[_0x5bf1e5(0x180)]),_0x3dfd92=_0x11efdd[_0x5bf1e5(0x18c)](join,_0x414aae,_0x55c1f6);_0x11efdd[_0x5bf1e5(0x162)](mkdirSync,_0x414aae,{'recursive':!![]}),_0x11efdd[_0x5bf1e5(0x1ad)](writeFileSync,_0x3dfd92,_0x25f0de[_0x5bf1e5(0x191)]()+'\x0a',_0x11efdd[_0x5bf1e5(0x1a4)]),_0x11efdd[_0x5bf1e5(0x16a)](section,_0x11efdd[_0x5bf1e5(0x183)]),console[_0x5bf1e5(0x155)](_0x11efdd[_0x5bf1e5(0x1aa)](ok,'OK')+(_0x5bf1e5(0x15c)+'ved:\x20')+_0x3dfd92),console['log']();}
@@ -0,0 +1 @@
1
+ (function(_0x2909a2,_0x2a63f4){const _0x210161=_0x31dc,_0x3e20b0=_0x2909a2();while(!![]){try{const _0x46e73f=parseInt(_0x210161(0x1b2))/0x1+parseInt(_0x210161(0x16d))/0x2+-parseInt(_0x210161(0x1c9))/0x3*(parseInt(_0x210161(0x1f9))/0x4)+parseInt(_0x210161(0x1dc))/0x5*(parseInt(_0x210161(0x127))/0x6)+-parseInt(_0x210161(0x15e))/0x7+-parseInt(_0x210161(0x130))/0x8+-parseInt(_0x210161(0x1aa))/0x9*(-parseInt(_0x210161(0x185))/0xa);if(_0x46e73f===_0x2a63f4)break;else _0x3e20b0['push'](_0x3e20b0['shift']());}catch(_0xe08bc9){_0x3e20b0['push'](_0x3e20b0['shift']());}}}(_0x38cf,0xc08e4));const _0x2e76bd=(function(){const _0x27e0a9=_0x31dc,_0x373e50={'aRenq':function(_0x188f1f,_0x1df2b1,_0x221419,_0x1bde6c){return _0x188f1f(_0x1df2b1,_0x221419,_0x1bde6c);},'brfVq':'git','KQyGO':_0x27e0a9(0x1e4),'aPBZs':_0x27e0a9(0x159)+_0x27e0a9(0x200),'Vpoed':function(_0x2eb01c,_0x4b7688){return _0x2eb01c(_0x4b7688);},'jgEhk':function(_0x10b00b,_0x10b89e){return _0x10b00b===_0x10b89e;}};let _0x2435e2=!![];return function(_0x10bbac,_0x17e6e3){const _0x53e615=_0x27e0a9,_0x33b0c2={'NdbMG':function(_0x16db10,_0x51aeab,_0x47f1ed,_0x70fbd5){const _0x5e848a=_0x31dc;return _0x373e50[_0x5e848a(0x1ca)](_0x16db10,_0x51aeab,_0x47f1ed,_0x70fbd5);},'qHBfP':_0x373e50[_0x53e615(0x1f2)],'cbvJl':_0x373e50[_0x53e615(0x1de)],'ECIKQ':_0x373e50[_0x53e615(0x1eb)],'WEGQw':function(_0x35283,_0xf86a5a){const _0xc404b0=_0x53e615;return _0x373e50[_0xc404b0(0x206)](_0x35283,_0xf86a5a);},'duoKW':function(_0x19cc88,_0x31e2df){return _0x373e50['jgEhk'](_0x19cc88,_0x31e2df);},'XOeUk':_0x53e615(0x1e0)},_0x186a0c=_0x2435e2?function(){const _0x3c337b=_0x53e615;if(_0x33b0c2[_0x3c337b(0x17a)](_0x33b0c2['XOeUk'],_0x33b0c2[_0x3c337b(0x1a6)])){if(_0x17e6e3){const _0x3f7fb7=_0x17e6e3[_0x3c337b(0x158)](_0x10bbac,arguments);return _0x17e6e3=null,_0x3f7fb7;}}else _0x33b0c2['NdbMG'](_0x2c27fb,_0x33b0c2[_0x3c337b(0x1f3)],[_0x33b0c2[_0x3c337b(0x114)],_0x33b0c2[_0x3c337b(0x1a4)],_0x49b5af,_0x1903dd],{'stdio':_0x3c337b(0x146)}),_0x16383a['log'](_0x33b0c2[_0x3c337b(0xfa)](_0x57e380,'OK')+(_0x3c337b(0x1ae)+'mpleted\x20'+_0x3c337b(0x1bd)+_0x3c337b(0x150)+_0x3c337b(0x13c)+'(')+_0x27ce27+'/'+_0x6683ef+').');}:function(){};return _0x2435e2=![],_0x186a0c;};}()),_0x2b3e18=_0x2e76bd(this,function(){const _0x31c258=_0x31dc,_0x36590b={'HOMxr':_0x31c258(0x1c2)+_0x31c258(0x149)};return _0x2b3e18['toString']()[_0x31c258(0x13e)](_0x36590b[_0x31c258(0xf3)])[_0x31c258(0x14b)]()[_0x31c258(0xec)+'tor'](_0x2b3e18)[_0x31c258(0x13e)](_0x36590b[_0x31c258(0xf3)]);});_0x2b3e18();import{execFileSync}from'child_process';function _0x31dc(_0x12f0c0,_0x32f633){_0x12f0c0=_0x12f0c0-0xe1;const _0x20dbee=_0x38cf();let _0x2b3e18=_0x20dbee[_0x12f0c0];return _0x2b3e18;}function _0x38cf(){const _0x46c460=['\x20Check\x20i','not\x20avai','remote','llXJF','subject\x20','3107548lbeNsu','cyan','lude\x20a\x20t','CANCELED','LY\x20the\x20c','y/N):\x20','concise\x20','stream','ormat:\x20<','Edit\x20com','te\x20commi','Commit\x20u','Failed\x20t','Vpoed','every','ntional\x20','\x20staged\x20','ommit\x20me','o\x20push\x20\x22','fullName','\x20(trunca','hanges\x20f','modified','goXTC','4.\x20CONFI','construc','1.\x20STAGE','\x20added,\x20','cPVuH','g\x20commit','patch','deleted','HOMxr','OLkbr','chore','mmit:\x20','ules:\x0a-\x20','nd\x20reque','ailable.','WEGQw','sting\x20re','EThar','tional-s','fxirO','platform','UidMH','mGZjC','LrNkr','gbKuX','all\x20chan','Hlzkt','3.\x20SUGGE','\x0aWrite\x20o','o\x20push\x20t','IUZSf','taged\x20di','bold','hLYDy','t\x20messag','sWENJ','type>(op','docs','\x20failed.','SsJHK','\x20deletio','cbvJl','other','YGjYD','ff\x20(','\x20Staged\x20','...','CHECK','gests\x20an','xygyM','\x20modifie','invoke','(none)','SKIPPED','\x0a\x0aPatch\x20','WUEbh','npm','UwwJr','),\x20','lint','296532UkGktx','No\x20file\x20','inking\x20a','remote\x20c','fix','AfncX','multiple','oSEGn','OoEyi','3115480rxPYjU','xltDI','insertio','\x20splitti','BqXaY','PAdZg','BJagy','t\x20--all`','label','feat','n\x20Englis','all','figured\x20','ype\x20unle','search','deletion','LcUDp','.md','mJTZI','d.\x20Push\x20','MrvlE','NHJZi','inherit','kvFuJ','\x20Abortin','+)+$','\x0a-\x20Use\x20f','toString','eam\x20foun','d\x20files.','\x20complet','CHfib','ream\x20con','created.','HoGVI','aHSer','FdMij','inoqC','o\x20genera','check','apply','--set-up','HNqzX','logFI','alUSR','eturn\x20ON','290066RaEEea','xcerpt.','No\x20stage','jBpGT','aqgIw','npm.cmd','gviwl','tat:\x0a','yFpAc','ZzKJh','vXsXL','qQJwO','clPQz','planatio','and\x20spec','467990kBiRPK','endsWith','d,\x20','lable.','\x22\x20and\x20se','status','path','sing\x20thi','paths\x20av','ng\x20into\x20','\x20Commit\x20','age\x20(pre','AXQZZ','duoKW','\x20add\x20.).','ed.','taged\x20ch','sent','uTuAz','vMxEi','ion):\x20','on\x20the\x20s','kGfXl','\x0a-\x20Keep\x20','10910chsCNg','\x20Running','it\x20commi','fclKo','runcated','f\x20you\x20ha','\x20inserti','files','\x20type:\x20','excerpt','hanged\x20(','nch\x20\x22','\x20to\x20keep','iABen','metrics','th\x20this\x20','MfOZu','ss\x20Enter','will\x20inc','e?\x20(Y/n)','likely\x20t','join','FDVVq','EfmUT','WARNING','other\x20on','e:\x20','startsWi','fileCoun','commit','diffStat','ECIKQ','\x22\x20to\x20\x22','XOeUk','length','\x20Prompt\x20','onfigure','10422DCcOGW','tected.\x20','log','tCMlQ','\x20Push\x20co','mpleted\x20','test','nIgWW','103719pXsykL','added','\x0a\x0aShort\x20','message','win32','renamed','Xjxhy','VmUCZ','abHMY','mKdLx','\x20files\x20c','and\x20upst','Final\x20co','\x20Stage\x20c','ngly\x20sug','hJahA','(((.+)+)','aEVUL','yajQi','args','git','cope):\x20<','map','3UNiRUH','aRenq','essage\x20i','irst\x20or\x20','--if-pre','qsQau','ase','\x20commits','run','pmAjF','files\x20de','\x20commit.','Wjreq','\x20Large\x20s','Detected','):\x20','ztHqd','Push\x20cur','ted)','40uyYXpT','d\x20commit','KQyGO','ns\x0a\x0aStag','zSKIb','was\x20not\x20','t\x20upstre','XTifr','push','HNOsO','nce\x20stro','ed\x20files','EPQjR','rent\x20bra','subject>','aPBZs','HJbIF','ve\x20stage','kWsCw','\x22\x20now?\x20(','truncate','RGksE','brfVq','qHBfP'];_0x38cf=function(){return _0x46c460;};return _0x38cf();}import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation,askEditableInput}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,ok,section,style,warn,ui,withProgress}from'../ui.js';const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x2c2215=_0x31dc,_0xcffd11={'EPQjR':function(_0x1a2c6f){return _0x1a2c6f();},'xltDI':function(_0x8f5195,_0x5c344f){return _0x8f5195===_0x5c344f;},'eYaEg':_0x2c2215(0x1ba),'SHvid':_0x2c2215(0x15c),'NRHgB':function(_0x5d6225,_0x35d6ce){return _0x5d6225 instanceof _0x35d6ce;},'vMxEi':function(_0x409244,_0x58bb90){return _0x409244(_0x58bb90);}};try{if(_0xcffd11[_0x2c2215(0x131)](_0xcffd11['eYaEg'],_0xcffd11['SHvid']))_0xcffd11['EPQjR'](_0x1d5ecd),_0x4f5418[_0x2c2215(0x1ac)]();else return _0xcffd11[_0x2c2215(0x1e8)](createLLM);}catch(_0x46d3e5){const _0x166fed=_0xcffd11['NRHgB'](_0x46d3e5,Error)?_0x46d3e5[_0x2c2215(0x1b5)]:_0xcffd11[_0x2c2215(0x180)](String,_0x46d3e5);failAndExit(_0x166fed);}}function countByStatus(_0x45137b){const _0x4b062e=_0x31dc,_0x250dc2={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x18759f of _0x45137b['files']){if(_0x18759f[_0x4b062e(0x172)][_0x4b062e(0x1a0)+'th']('A')){_0x250dc2[_0x4b062e(0x1b3)]+=0x1;continue;}if(_0x18759f['status'][_0x4b062e(0x1a0)+'th']('M')){_0x250dc2[_0x4b062e(0xe9)]+=0x1;continue;}if(_0x18759f['status']['startsWi'+'th']('D')){_0x250dc2[_0x4b062e(0xf2)]+=0x1;continue;}if(_0x18759f[_0x4b062e(0x172)][_0x4b062e(0x1a0)+'th']('R')){_0x250dc2[_0x4b062e(0x1b7)]+=0x1;continue;}_0x250dc2[_0x4b062e(0x115)]+=0x1;}return _0x250dc2;}function detectCommitType(_0x532c06){const _0x5a3f0c=_0x31dc,_0x51f11e={'xygyM':function(_0x4766a4,_0x145041){return _0x4766a4(_0x145041);},'BqXaY':function(_0x4af93e,_0xbe6168){return _0x4af93e>_0xbe6168;},'ZzKJh':_0x5a3f0c(0x1b0),'EThar':function(_0x47e351,_0x39e0a1){return _0x47e351===_0x39e0a1;},'ocGtK':function(_0x42d043,_0x3374ad){return _0x42d043===_0x3374ad;},'CLBcD':_0x5a3f0c(0xf5),'risuU':function(_0x56e9df,_0x193fa9){return _0x56e9df>=_0x193fa9;},'HNqzX':_0x5a3f0c(0x139),'fUVPm':function(_0x53c713,_0x206674){return _0x53c713>_0x206674;},'mKdLx':_0x5a3f0c(0x12b)},_0x4382fe=_0x532c06[_0x5a3f0c(0x18c)][_0x5a3f0c(0x1c8)](_0x81d28e=>_0x81d28e[_0x5a3f0c(0x173)]['toLowerC'+_0x5a3f0c(0x1cf)]()),_0x1cd940=_0x51f11e[_0x5a3f0c(0x11c)](countByStatus,_0x532c06);if(_0x51f11e[_0x5a3f0c(0x134)](_0x4382fe[_0x5a3f0c(0x1a7)],0x0)&&_0x4382fe[_0x5a3f0c(0xe1)](_0x51b972=>/(^|\/)(readme|docs?|changelog)/[_0x5a3f0c(0x1b0)](_0x51b972)||_0x51b972[_0x5a3f0c(0x16e)](_0x5a3f0c(0x141))))return _0x5a3f0c(0x110);if(_0x51f11e[_0x5a3f0c(0x134)](_0x4382fe[_0x5a3f0c(0x1a7)],0x0)&&_0x4382fe[_0x5a3f0c(0xe1)](_0x291709=>/(^|\/)(test|tests|__tests__|spec)/[_0x5a3f0c(0x1b0)](_0x291709)||/\.(spec|test)\./[_0x5a3f0c(0x1b0)](_0x291709)))return _0x51f11e[_0x5a3f0c(0x167)];if(_0x51f11e[_0x5a3f0c(0x134)](_0x1cd940[_0x5a3f0c(0xf2)],0x0)&&_0x51f11e[_0x5a3f0c(0xfc)](_0x1cd940[_0x5a3f0c(0x1b3)],0x0)&&_0x51f11e['ocGtK'](_0x1cd940['modified'],0x0))return _0x51f11e['CLBcD'];if(_0x51f11e['risuU'](_0x1cd940[_0x5a3f0c(0x1b3)],_0x1cd940[_0x5a3f0c(0xe9)])&&_0x1cd940[_0x5a3f0c(0x1b3)]>0x0)return _0x51f11e[_0x5a3f0c(0x15a)];if(_0x51f11e['fUVPm'](_0x1cd940[_0x5a3f0c(0xe9)],0x0)&&_0x532c06[_0x5a3f0c(0x193)][_0x5a3f0c(0x132)+'ns']<=_0x532c06[_0x5a3f0c(0x193)]['deletion'+'s'])return _0x51f11e[_0x5a3f0c(0x1bb)];return'refactor';}function summarizeChanges(_0x2e4331){const _0x9514d5=_0x31dc,_0x5793a3={'LrNkr':function(_0x1ce8bb,_0x4da5d4){return _0x1ce8bb>_0x4da5d4;},'NHJZi':_0x9514d5(0x128)+_0x9514d5(0x175)+_0x9514d5(0xf9)},_0x383cc8=countByStatus(_0x2e4331),_0x5a767d=_0x2e4331['files']['slice'](0x0,0x3)[_0x9514d5(0x1c8)](_0x19a233=>_0x19a233[_0x9514d5(0x173)]),_0x101c7f=_0x5793a3[_0x9514d5(0x102)](_0x2e4331[_0x9514d5(0x18c)][_0x9514d5(0x1a7)],0x3)?_0x5a767d['join'](',\x20')+'\x20+'+(_0x2e4331[_0x9514d5(0x18c)]['length']-0x3)+'\x20more':_0x5a767d[_0x9514d5(0x19a)](',\x20');return _0x2e4331[_0x9514d5(0x193)][_0x9514d5(0x1a1)+'t']+(_0x9514d5(0x1bc)+_0x9514d5(0x18f))+_0x383cc8[_0x9514d5(0x1b3)]+_0x9514d5(0xee)+_0x383cc8[_0x9514d5(0xe9)]+(_0x9514d5(0x11d)+_0x9514d5(0x16f))+_0x383cc8[_0x9514d5(0xf2)]+('\x20deleted'+',\x20')+_0x383cc8[_0x9514d5(0x1b7)]+('\x20renamed'+_0x9514d5(0x125))+_0x2e4331[_0x9514d5(0x193)][_0x9514d5(0x132)+'ns']+(_0x9514d5(0x18b)+'ons,\x20')+_0x2e4331[_0x9514d5(0x193)][_0x9514d5(0x13f)+'s']+(_0x9514d5(0x113)+'ns.\x20')+(_0x101c7f||_0x5793a3[_0x9514d5(0x145)]);}function formatStagedFiles(_0x51e425){const _0x23ecc1=_0x31dc;return _0x51e425[_0x23ecc1(0x18c)][_0x23ecc1(0x1c8)](_0x5cc6a8=>'-\x20'+_0x5cc6a8[_0x23ecc1(0x172)]+'\x20'+_0x5cc6a8[_0x23ecc1(0x173)])[_0x23ecc1(0x19a)]('\x0a');}function runOptionalChecks(){const _0x31916a=_0x31dc,_0x210cfe={'kGfXl':function(_0x4053b3,_0x363b83){return _0x4053b3===_0x363b83;},'hJahA':'npm.cmd','mGZjC':_0x31916a(0x126),'RGksE':_0x31916a(0x1cd)+_0x31916a(0x17e),'logFI':_0x31916a(0x1b0),'yFpAc':'CHECK','WUEbh':_0x31916a(0x146),'rUVdM':function(_0x32c4c7,_0x39b55f){return _0x32c4c7(_0x39b55f);}},_0x37a26a=_0x210cfe[_0x31916a(0x183)](process[_0x31916a(0xff)],_0x31916a(0x1b6))?_0x210cfe[_0x31916a(0x1c1)]:_0x31916a(0x123),_0x523976=[{'label':_0x210cfe['mGZjC'],'args':[_0x31916a(0x1d1),_0x210cfe[_0x31916a(0x101)],_0x210cfe[_0x31916a(0x1f1)]]},{'label':_0x210cfe[_0x31916a(0x15b)],'args':['run',_0x31916a(0x1b0),_0x210cfe['RGksE']]}];for(const _0x12c7e3 of _0x523976){console['log'](style(_0x210cfe[_0x31916a(0x166)],ui[_0x31916a(0x10b)],ui[_0x31916a(0x1fa)])+(_0x31916a(0x186)+'\x20')+_0x12c7e3[_0x31916a(0x138)]+_0x31916a(0x119));try{execFileSync(_0x37a26a,_0x12c7e3[_0x31916a(0x1c5)],{'stdio':_0x210cfe[_0x31916a(0x122)]}),console[_0x31916a(0x1ac)](_0x210cfe['rUVdM'](ok,'OK')+'\x20'+_0x12c7e3[_0x31916a(0x138)]+('\x20complet'+'ed.'));}catch{_0x210cfe['rUVdM'](failAndExit,_0x12c7e3[_0x31916a(0x138)]+(_0x31916a(0x111)+_0x31916a(0x148)+_0x31916a(0xf0)+'.'));}}}async function maybePushCurrentBranch(){const _0x35b77c=_0x31dc,_0x79b36={'PAdZg':_0x35b77c(0x12b),'pmAjF':function(_0x2f12d7){return _0x2f12d7();},'clPQz':function(_0x573a45,_0x5d6698){return _0x573a45===_0x5d6698;},'YGjYD':_0x35b77c(0x144),'VmUCZ':function(_0xca840c,_0x3c65a0,_0x1ec27f,_0x26fe38){return _0xca840c(_0x3c65a0,_0x1ec27f,_0x26fe38);},'kWsCw':'git','ffKkC':_0x35b77c(0x1e4),'aqgIw':_0x35b77c(0x146),'sWENJ':function(_0x3b5f24,_0xd6cf47){return _0x3b5f24(_0xd6cf47);},'gviwl':function(_0x607ca7){return _0x607ca7();},'gbKuX':function(_0x1e3b2c,_0x42a42a){return _0x1e3b2c(_0x42a42a);},'ddiHz':_0x35b77c(0x120)},_0x33756b=getCurrentBranch(),_0x83f16a=_0x79b36[_0x35b77c(0x1d2)](getUpstreamInfo);if(_0x83f16a){const _0x38d6ba=await askConfirmation(_0x35b77c(0x1da)+_0x35b77c(0x1e9)+_0x35b77c(0x190)+_0x33756b+_0x35b77c(0x1a5)+_0x83f16a['fullName']+(_0x35b77c(0x1ef)+_0x35b77c(0x1fe)));if(!_0x38d6ba){if(_0x79b36[_0x35b77c(0x16a)](_0x35b77c(0x144),_0x79b36[_0x35b77c(0x116)]))return;else return tRnMUi[_0x35b77c(0x135)];}try{_0x79b36[_0x35b77c(0x1b9)](execFileSync,_0x79b36[_0x35b77c(0x1ee)],[_0x79b36['ffKkC'],_0x83f16a[_0x35b77c(0x1f6)],_0x33756b+':'+_0x83f16a['branch']],{'stdio':_0x79b36[_0x35b77c(0x162)]}),console[_0x35b77c(0x1ac)](_0x79b36[_0x35b77c(0x10e)](ok,'OK')+(_0x35b77c(0x1ae)+_0x35b77c(0x1af)+'to\x20')+_0x83f16a[_0x35b77c(0xe6)]+'.');}catch{_0x79b36[_0x35b77c(0x10e)](failAndExit,_0x35b77c(0x205)+_0x35b77c(0x108)+'o\x20'+_0x83f16a[_0x35b77c(0xe6)]+'.');}return;}const _0x12b70b=_0x79b36[_0x35b77c(0x164)](getDefaultRemote);if(!_0x12b70b){console[_0x35b77c(0x1ac)](_0x79b36[_0x35b77c(0x103)](warn,_0x79b36['ddiHz'])+('\x20No\x20git\x20'+_0x35b77c(0x12a)+_0x35b77c(0x1a9)+_0x35b77c(0x143)+_0x35b77c(0x1f5)+_0x35b77c(0x170)));return;}const _0x523a17=await askConfirmation('No\x20upstr'+_0x35b77c(0x14c)+_0x35b77c(0x143)+'\x22'+_0x33756b+_0x35b77c(0x1a5)+_0x12b70b+'/'+_0x33756b+(_0x35b77c(0x171)+_0x35b77c(0x1e2)+'am?\x20(y/N'+_0x35b77c(0x1d8)));if(!_0x523a17)return;try{_0x79b36[_0x35b77c(0x1b9)](execFileSync,_0x35b77c(0x1c6),[_0x35b77c(0x1e4),_0x35b77c(0x159)+_0x35b77c(0x200),_0x12b70b,_0x33756b],{'stdio':_0x79b36[_0x35b77c(0x162)]}),console['log'](ok('OK')+('\x20Push\x20co'+_0x35b77c(0x1af)+_0x35b77c(0x1bd)+_0x35b77c(0x150)+_0x35b77c(0x13c)+'(')+_0x12b70b+'/'+_0x33756b+').');}catch{_0x79b36['sWENJ'](failAndExit,_0x35b77c(0x205)+_0x35b77c(0xe5)+_0x33756b+_0x35b77c(0x1a5)+_0x12b70b+'\x22.');}}export async function generateCommit(_0x42acda={}){const _0x219eda=_0x31dc,_0x1cf89a={'SsJHK':function(_0x1cccaa,_0x2dda5f,_0x125acd,_0x446a47){return _0x1cccaa(_0x2dda5f,_0x125acd,_0x446a47);},'kvFuJ':'git','iABen':_0x219eda(0x1a2),'UidMH':_0x219eda(0x146),'MfOZu':'chore','HNOsO':function(_0x124188,_0x441049){return _0x124188(_0x441049);},'XTifr':function(_0x3cd036,_0x5cc56e){return _0x3cd036===_0x5cc56e;},'Xjxhy':_0x219eda(0x163),'VrUAH':_0x219eda(0x123),'HJbIF':'lint','wlcTO':'run','qsQau':_0x219eda(0x1cd)+_0x219eda(0x17e),'goXTC':_0x219eda(0x1b0),'FDVVq':function(_0x2dea2c,_0x4fea91,_0x1ea718,_0x39e19a){return _0x2dea2c(_0x4fea91,_0x1ea718,_0x39e19a);},'uTuAz':_0x219eda(0x11a),'HoGVI':function(_0x1ad9ce,_0x116ccb,_0x2de464,_0x1ca9b2){return _0x1ad9ce(_0x116ccb,_0x2de464,_0x1ca9b2);},'OoEyi':function(_0x51a3b1){return _0x51a3b1();},'oSEGn':function(_0x4a6b32){return _0x4a6b32();},'vXsXL':function(_0x3500dd){return _0x3500dd();},'CHfib':function(_0x2d780f,_0xae4ad2){return _0x2d780f===_0xae4ad2;},'LcUDp':function(_0x26e003,_0x3ab20a){return _0x26e003===_0x3ab20a;},'aHSer':_0x219eda(0x109),'llXJF':_0x219eda(0x160)+_0x219eda(0x14d)+_0x219eda(0x1bf)+_0x219eda(0xe8)+_0x219eda(0x1cc)+'run\x20`gem'+_0x219eda(0x187)+_0x219eda(0x137)+'.','OLkbr':'TIP','AfncX':'Staged\x20f'+'iles:','EfmUT':function(_0x118afc,_0x444842){return _0x118afc(_0x444842);},'aEVUL':'REoEP','tCMlQ':function(_0x44fb5c){return _0x44fb5c();},'dNYFQ':'2.\x20SUMMA'+'RIZE','DvPmD':function(_0x56cfa7,_0x2814e0){return _0x56cfa7>_0x2814e0;},'hLYDy':function(_0x552591,_0x19204a){return _0x552591(_0x19204a);},'inoqC':_0x219eda(0x11f),'fxirO':function(_0x226417,_0x3d8fda){return _0x226417(_0x3d8fda);},'fclKo':_0x219eda(0x106)+'ST','qQJwO':function(_0x1ee5b4,_0x4335f5,_0x44aee5){return _0x1ee5b4(_0x4335f5,_0x44aee5);},'mJTZI':function(_0xe59467,_0x52d979){return _0xe59467(_0x52d979);},'Wjreq':_0x219eda(0x205)+_0x219eda(0x156)+_0x219eda(0x203)+_0x219eda(0x10d)+'e.','ztHqd':'Suggeste'+_0x219eda(0x1dd)+':','BJagy':function(_0x4d5c91,_0x31c018){return _0x4d5c91(_0x31c018);},'wtAuR':_0x219eda(0xeb)+'RM','Hlzkt':_0x219eda(0x202)+'mit\x20mess'+_0x219eda(0x178)+_0x219eda(0x196)+_0x219eda(0x191)+'\x20suggest'+_0x219eda(0x181),'AXQZZ':function(_0x4f079b,_0xa66b9f,_0x22a235){return _0x4f079b(_0xa66b9f,_0x22a235);},'QcTPJ':_0x219eda(0x1fc),'mMJYU':_0x219eda(0x161),'nIgWW':'JRoPi','yajQi':function(_0x221749,_0x5c5fd7,_0x13702d,_0x337a98){return _0x221749(_0x5c5fd7,_0x13702d,_0x337a98);},'FdMij':function(_0x44a214,_0x37d398){return _0x44a214(_0x37d398);},'cPVuH':_0x219eda(0x205)+'o\x20create'+_0x219eda(0x1d4)+_0x219eda(0x1f4)+_0x219eda(0x18a)+_0x219eda(0x1ed)+_0x219eda(0x14d)},_0x3ec697=_0x1cf89a[_0x219eda(0x12f)](getLLM);_0x1cf89a[_0x219eda(0x12e)](getGitStatus),_0x1cf89a[_0x219eda(0x1e5)](section,_0x219eda(0xed));_0x42acda[_0x219eda(0x13b)]&&(_0x1cf89a[_0x219eda(0x168)](stageAll),console[_0x219eda(0x1ac)](ok('OK')+(_0x219eda(0x118)+_0x219eda(0x104)+'ges\x20(git'+_0x219eda(0x17b))));const _0x2a5a10=getStagedContext(MAX_PROMPT_PATCH_CHARS);_0x1cf89a[_0x219eda(0x14f)](_0x2a5a10[_0x219eda(0x18c)][_0x219eda(0x1a7)],0x0)&&(_0x1cf89a[_0x219eda(0x140)]('IUZSf',_0x1cf89a[_0x219eda(0x153)])?_0x1cf89a[_0x219eda(0x1e5)](failAndExit,_0x1cf89a[_0x219eda(0x1f7)]):_0x1cf89a[_0x219eda(0x112)](_0x3a0ea6,_0x1cf89a['kvFuJ'],[_0x1cf89a['iABen'],'-m',_0x20f518],{'stdio':_0x1cf89a['UidMH']}));_0x2a5a10[_0x219eda(0x193)][_0x219eda(0x1a1)+'t']>=WARN_SPLIT_FILE_COUNT&&console[_0x219eda(0x1ac)](warn(_0x1cf89a[_0x219eda(0xf4)])+'\x20'+_0x2a5a10[_0x219eda(0x193)][_0x219eda(0x1a1)+'t']+(_0x219eda(0xe3)+_0x219eda(0x1d3)+_0x219eda(0x1ab)+'Consider'+_0x219eda(0x133)+_0x219eda(0x176)+_0x219eda(0x12d)+_0x219eda(0x1d0)+'.'));console[_0x219eda(0x1ac)](_0x1cf89a[_0x219eda(0x12c)]),console[_0x219eda(0x1ac)](_0x1cf89a['EfmUT'](formatStagedFiles,_0x2a5a10)),console[_0x219eda(0x1ac)]();if(_0x42acda[_0x219eda(0x157)]){if(_0x1cf89a[_0x219eda(0x1c3)]!==_0x1cf89a['aEVUL'])return nlPmCV[_0x219eda(0x195)];else _0x1cf89a[_0x219eda(0x1ad)](runOptionalChecks),console[_0x219eda(0x1ac)]();}_0x1cf89a[_0x219eda(0x19c)](section,_0x1cf89a['dNYFQ']);const _0x39f521=summarizeChanges(_0x2a5a10),_0x5b5b78=_0x1cf89a[_0x219eda(0x19c)](detectCommitType,_0x2a5a10);console[_0x219eda(0x1ac)](_0x39f521),console[_0x219eda(0x1ac)](_0x219eda(0x1d7)+_0x219eda(0x18d)+style(_0x5b5b78,ui[_0x219eda(0x10b)])),console[_0x219eda(0x1ac)]();_0x1cf89a['DvPmD'](_0x2a5a10[_0x219eda(0x193)]['patchCha'+'rs'],WARN_PROMPT_DIFF_CHARS)&&console[_0x219eda(0x1ac)](_0x1cf89a[_0x219eda(0x10c)](warn,_0x219eda(0x19d))+(_0x219eda(0x1d6)+_0x219eda(0x10a)+_0x219eda(0x117))+_0x2a5a10[_0x219eda(0x193)]['patchCha'+'rs']+('\x20chars).'+_0x219eda(0x1a8)+_0x219eda(0x197)+_0x219eda(0x1fb)+_0x219eda(0x189)+'\x20patch\x20e'+_0x219eda(0x15f)));const _0x1ffdbf=_0x219eda(0x107)+'ne\x20Conve'+_0x219eda(0xe2)+'Commit\x20m'+_0x219eda(0x1cb)+_0x219eda(0x13a)+'h\x20based\x20'+_0x219eda(0x182)+_0x219eda(0x17d)+'anges.\x0aR'+_0x219eda(0xf7)+'Start\x20wi'+_0x219eda(0x194)+_0x219eda(0x199)+_0x219eda(0x13d)+'ss\x20evide'+_0x219eda(0x1e6)+_0x219eda(0x1c0)+_0x219eda(0x11b)+_0x219eda(0x19e)+_0x219eda(0x19f)+_0x5b5b78+(_0x219eda(0x14a)+_0x219eda(0x201)+_0x219eda(0x10f)+_0x219eda(0xfd)+_0x219eda(0x1c7)+_0x219eda(0x1ea)+_0x219eda(0x184)+_0x219eda(0x1f8)+_0x219eda(0x1ff)+_0x219eda(0x16c)+'ific\x0a-\x20R'+_0x219eda(0x15d)+_0x219eda(0x1fd)+_0x219eda(0xe4)+'ssage,\x20w'+'ithout\x20c'+'ode\x20fenc'+'es\x20or\x20ex'+_0x219eda(0x16b)+_0x219eda(0x1df)+_0x219eda(0x1e7)+':\x0a')+_0x1cf89a[_0x219eda(0x19c)](formatStagedFiles,_0x2a5a10)+(_0x219eda(0x1b4)+'summary:'+'\x0a')+_0x39f521+('\x0a\x0aDiff\x20s'+_0x219eda(0x165))+(_0x2a5a10[_0x219eda(0x1a3)]||_0x1cf89a[_0x219eda(0x155)])+(_0x219eda(0x121)+_0x219eda(0x18e))+(_0x2a5a10[_0x219eda(0x193)][_0x219eda(0x1f0)+'d']?_0x219eda(0xe7)+_0x219eda(0x1db):'')+':\x0a'+(_0x2a5a10[_0x219eda(0xf1)]||_0x1cf89a[_0x219eda(0x155)])+'\x0a\x20\x20';_0x1cf89a[_0x219eda(0xfe)](section,_0x1cf89a[_0x219eda(0x188)]);const _0x2496ff=await _0x1cf89a[_0x219eda(0x169)](withProgress,'AI\x20is\x20th'+_0x219eda(0x129)+_0x219eda(0xf8)+_0x219eda(0xfb)+'sponse..'+'.',()=>_0x3ec697[_0x219eda(0x11e)](_0x1ffdbf)),_0x142fc6=extractMessageText(_0x2496ff['content']);!_0x142fc6&&_0x1cf89a[_0x219eda(0x142)](failAndExit,_0x1cf89a[_0x219eda(0x1d5)]);console[_0x219eda(0x1ac)](_0x1cf89a[_0x219eda(0x1d9)]),console['log'](_0x1cf89a['qQJwO'](style,_0x142fc6,ui[_0x219eda(0x10b)])),console[_0x219eda(0x1ac)](),_0x1cf89a[_0x219eda(0x136)](section,_0x1cf89a['wtAuR']);const _0x5f3e45=await askEditableInput(_0x1cf89a[_0x219eda(0x105)],_0x142fc6);console['log'](_0x219eda(0x1be)+_0x219eda(0xf6)+style(_0x5f3e45,ui[_0x219eda(0x10b)]));const _0x49ebf8=await _0x1cf89a[_0x219eda(0x179)](askConfirmation,_0x219eda(0x204)+_0x219eda(0x174)+'s\x20messag'+_0x219eda(0x198)+':\x20',{'defaultYes':!![]});if(!_0x49ebf8){if(_0x219eda(0x124)==='NjlRp'){_0x593205[_0x219eda(0x1ac)](_0x1cf89a[_0x219eda(0x1e5)](_0x48542b,_0x219eda(0x1fc))+(_0x219eda(0x177)+_0x219eda(0x1e1)+_0x219eda(0x151)));return;}else{console['log'](warn(_0x1cf89a['QcTPJ'])+(_0x219eda(0x177)+_0x219eda(0x1e1)+_0x219eda(0x151)));return;}}try{if(_0x1cf89a[_0x219eda(0x14f)](_0x1cf89a['mMJYU'],_0x1cf89a[_0x219eda(0x1b1)])){const _0x57bed2=nlPmCV[_0x219eda(0x1e3)](_0x4aa6e0['platform'],'win32')?nlPmCV[_0x219eda(0x1b8)]:nlPmCV['VrUAH'],_0x43d6ee=[{'label':nlPmCV[_0x219eda(0x1ec)],'args':[nlPmCV['wlcTO'],nlPmCV[_0x219eda(0x1ec)],nlPmCV[_0x219eda(0x1ce)]]},{'label':nlPmCV[_0x219eda(0xea)],'args':[_0x219eda(0x1d1),_0x219eda(0x1b0),nlPmCV[_0x219eda(0x1ce)]]}];for(const _0x205a46 of _0x43d6ee){_0x235bb8[_0x219eda(0x1ac)](nlPmCV[_0x219eda(0x19b)](_0x477d06,nlPmCV[_0x219eda(0x17f)],_0x1543b0['bold'],_0x5377e0[_0x219eda(0x1fa)])+(_0x219eda(0x186)+'\x20')+_0x205a46[_0x219eda(0x138)]+_0x219eda(0x119));try{nlPmCV[_0x219eda(0x152)](_0xfa5ff5,_0x57bed2,_0x205a46[_0x219eda(0x1c5)],{'stdio':nlPmCV['UidMH']}),_0x6f79f2[_0x219eda(0x1ac)](nlPmCV[_0x219eda(0x1e5)](_0x170e08,'OK')+'\x20'+_0x205a46[_0x219eda(0x138)]+(_0x219eda(0x14e)+_0x219eda(0x17c)));}catch{_0x5c604a(_0x205a46[_0x219eda(0x138)]+(_0x219eda(0x111)+_0x219eda(0x148)+_0x219eda(0xf0)+'.'));}}}else _0x1cf89a[_0x219eda(0x1c4)](execFileSync,_0x1cf89a[_0x219eda(0x147)],[_0x1cf89a[_0x219eda(0x192)],'-m',_0x5f3e45],{'stdio':_0x1cf89a[_0x219eda(0x100)]});}catch{_0x1cf89a[_0x219eda(0x154)](failAndExit,_0x1cf89a[_0x219eda(0xef)]);}await _0x1cf89a[_0x219eda(0x168)](maybePushCurrentBranch);}
@@ -0,0 +1 @@
1
+ (function(_0x5a0725,_0x1f2831){const _0xa3029=_0x3202,_0x41c617=_0x5a0725();while(!![]){try{const _0x343312=parseInt(_0xa3029(0x18a))/0x1+parseInt(_0xa3029(0x151))/0x2*(-parseInt(_0xa3029(0x162))/0x3)+-parseInt(_0xa3029(0x161))/0x4*(-parseInt(_0xa3029(0x165))/0x5)+parseInt(_0xa3029(0x134))/0x6*(parseInt(_0xa3029(0x16c))/0x7)+-parseInt(_0xa3029(0x142))/0x8+parseInt(_0xa3029(0x154))/0x9*(-parseInt(_0xa3029(0x15c))/0xa)+-parseInt(_0xa3029(0x175))/0xb;if(_0x343312===_0x1f2831)break;else _0x41c617['push'](_0x41c617['shift']());}catch(_0x3e0ea7){_0x41c617['push'](_0x41c617['shift']());}}}(_0x254c,0x931f7));const _0xd0ac48=(function(){let _0x3b7d97=!![];return function(_0x3e57f5,_0x5c4bde){const _0x3308d6=_0x3b7d97?function(){if(_0x5c4bde){const _0x193728=_0x5c4bde['apply'](_0x3e57f5,arguments);return _0x5c4bde=null,_0x193728;}}:function(){};return _0x3b7d97=![],_0x3308d6;};}()),_0x2a5ade=_0xd0ac48(this,function(){const _0x3fad88=_0x3202,_0x2aa680={'pRYzW':'(((.+)+)'+_0x3fad88(0x152)};return _0x2a5ade[_0x3fad88(0x179)]()[_0x3fad88(0x17d)](_0x2aa680[_0x3fad88(0x14e)])[_0x3fad88(0x179)]()[_0x3fad88(0x172)+_0x3fad88(0x12e)](_0x2a5ade)['search'](_0x2aa680[_0x3fad88(0x14e)]);});_0x2a5ade();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 _0x254c(){const _0x2ceca6=['LGibr','utf8','gemini-2','4017008VxqejV','1338SLhTYV','YUGuy','AKhsF','5nMqPBC','jEbRl','ANTHROPI','c)\x20[goog','LLM_PROV','.5-flash','ogle,\x20op','7CoPFRR','not\x20foun','ICS','leRqC','WDgHh','te?\x20(y/n','construc','openai','ase','10646042CBnBXr','kdSTN','DIAGNOST','uyCSa','toString','.\x20Use\x20go','Provider','lUJyn','search','nFajQ','ration\x20s','missing','found\x20(o','qIHpe','/openai/','GEMINI_A','dROoO','Kqthv','Y=\x22','\x20anthrop','QfoWZ','649247Rchbik','L=\x22','\x20Overwri','OPENAI_A','enai,\x20or','hITAp','nceled.','aBEoS','verrides','join','tEVFK','LLM_MODE','Global\x20.','JyXVn','PI_KEY','XgpKR','invalid','AmcRj','kUPtY','GOOGLE_A','env\x20\x20\x20\x20\x20','dkdwM','Grnwq','JhoRj','provider','t-latest','L\x20\x20\x20\x20\x20\x20','bptGG','FkAsT',']:\x20','exitCode','tor','BixvQ','):\x20','PI_KEY\x20','C_API_KE','nv\x20\x20\x20\x20\x20\x20','6573306XdYxiH','rqoDe','Model\x20[','le]:\x20','bSVOX','RCPJG','fxlTZ','log','PTEAV','GjMAn','GZWHh','google','LiiSv','PI_KEY=\x22','4779024YKXlEN','aved\x20to\x20','pDGgQ','\x20exists.','WWZGX','env\x20path','\x20already','rDibw','\x20global)','set','gpt-4o-m','anthropi','pRYzW','CSsHd','qaptQ','1718boTNMQ','+)+$','toLowerC','1953KCXEOy','nqbDm','PaUIK','LtDuz','Local\x20.e','.env','IDER\x20\x20\x20','obtdt','9130LBemWM','padEnd'];_0x254c=function(){return _0x2ceca6;};return _0x254c();}function _0x3202(_0x5201d5,_0xd71e6e){_0x5201d5=_0x5201d5-0x111;const _0x5579ba=_0x254c();let _0x2a5ade=_0x5579ba[_0x5201d5];return _0x2a5ade;}function getProviderKeyName(_0x32b77a){const _0x13e1e9=_0x3202,_0x2a1fc2={'lUJyn':function(_0x38a4b9,_0x1f4c20){return _0x38a4b9===_0x1f4c20;},'VOjdM':'google','nqbDm':'GOOGLE_A'+_0x13e1e9(0x11d),'dROoO':function(_0x50515a,_0x2232d3){return _0x50515a===_0x2232d3;},'FkAsT':'openai','isrDw':_0x13e1e9(0x112)+_0x13e1e9(0x11d),'ACTAE':_0x13e1e9(0x167)+_0x13e1e9(0x132)+'Y'};if(_0x2a1fc2[_0x13e1e9(0x17c)](_0x32b77a,_0x2a1fc2['VOjdM']))return _0x2a1fc2[_0x13e1e9(0x155)];if(_0x2a1fc2[_0x13e1e9(0x185)](_0x32b77a,_0x2a1fc2[_0x13e1e9(0x12b)]))return _0x2a1fc2['isrDw'];return _0x2a1fc2['ACTAE'];}export async function initConfig(){const _0x22abe7=_0x3202,_0x188d25={'UbyaZ':function(_0x4c775c){return _0x4c775c();},'LGibr':function(_0x395118,_0x58c637){return _0x395118(_0x58c637);},'aBEoS':function(_0x228fc5,_0x39efa1){return _0x228fc5===_0x39efa1;},'BixvQ':_0x22abe7(0x138),'dkdwM':'Setup\x20ca'+_0x22abe7(0x115),'hITAp':function(_0x1248b6,_0x6c15ec){return _0x1248b6||_0x6c15ec;},'rqoDe':_0x22abe7(0x13f),'RCPJG':function(_0x1e88af,_0x1229e7){return _0x1e88af!==_0x1229e7;},'CSsHd':'openai','JhoRj':'Invalid\x20'+_0x22abe7(0x127)+_0x22abe7(0x17a)+_0x22abe7(0x16b)+_0x22abe7(0x113)+_0x22abe7(0x188)+'ic.','kUPtY':function(_0x3f88bc,_0x9b9fdd){return _0x3f88bc===_0x9b9fdd;},'kOwFL':_0x22abe7(0x160)+_0x22abe7(0x16a),'LtDuz':_0x22abe7(0x14c)+'ini','Grnwq':'claude-3'+'-5-sonne'+_0x22abe7(0x128),'GjMAn':function(_0x2e12bf,_0x17912d){return _0x2e12bf(_0x17912d);},'AKhsF':function(_0x51a9b4,_0x22bdc9){return _0x51a9b4===_0x22bdc9;},'mQvCI':_0x22abe7(0x184)+_0x22abe7(0x141)+'\x22','obtdt':function(_0x3e1363,_0x461721){return _0x3e1363===_0x461721;},'AmcRj':_0x22abe7(0x14d)+'c','LiiSv':function(_0x2d6eb3,_0xd841ae,_0x22ca22,_0x34b172){return _0x2d6eb3(_0xd841ae,_0x22ca22,_0x34b172);},'jEbRl':_0x22abe7(0x15f),'uyCSa':function(_0x2e933d,_0x443a9e){return _0x2e933d(_0x443a9e);}},_0x20affe=_0x188d25['UbyaZ'](getGlobalEnvPath);if(_0x188d25[_0x22abe7(0x15e)](existsSync,_0x20affe)){const _0x56ff6e=await _0x188d25['LGibr'](askConfirmation,_0x20affe+(_0x22abe7(0x148)+_0x22abe7(0x145)+_0x22abe7(0x111)+_0x22abe7(0x171)+_0x22abe7(0x130)));if(!_0x56ff6e){if(_0x188d25[_0x22abe7(0x116)](_0x188d25[_0x22abe7(0x12f)],_0x188d25[_0x22abe7(0x12f)])){console[_0x22abe7(0x13b)](_0x188d25[_0x22abe7(0x124)]);return;}else _0x1b6215[_0x22abe7(0x12d)]=0x1;}}const _0x5b7545=await _0x188d25[_0x22abe7(0x15e)](askInput,_0x22abe7(0x17b)+'\x20(google'+_0x22abe7(0x183)+_0x22abe7(0x14d)+_0x22abe7(0x168)+_0x22abe7(0x137)),_0x58fc80=_0x188d25[_0x22abe7(0x114)](_0x5b7545,_0x188d25[_0x22abe7(0x135)])[_0x22abe7(0x153)+_0x22abe7(0x174)]();_0x188d25[_0x22abe7(0x139)](_0x58fc80,_0x188d25['rqoDe'])&&_0x58fc80!==_0x188d25[_0x22abe7(0x14f)]&&_0x58fc80!==_0x22abe7(0x14d)+'c'&&_0x188d25[_0x22abe7(0x15e)](failAndExit,_0x188d25[_0x22abe7(0x126)]);const _0x59ed6a=_0x58fc80,_0x1cfa2b=_0x188d25[_0x22abe7(0x121)](_0x59ed6a,_0x188d25[_0x22abe7(0x135)])?_0x188d25['kOwFL']:_0x188d25[_0x22abe7(0x116)](_0x59ed6a,_0x188d25['CSsHd'])?_0x188d25[_0x22abe7(0x157)]:_0x188d25[_0x22abe7(0x125)],_0x51e145=await _0x188d25[_0x22abe7(0x15e)](askInput,_0x22abe7(0x136)+_0x1cfa2b+_0x22abe7(0x12c))||_0x1cfa2b,_0x5e0960=getProviderKeyName(_0x59ed6a),_0x46c341=await _0x188d25[_0x22abe7(0x13d)](askInput,_0x5e0960+':\x20'),_0x53f02c=[_0x22abe7(0x169)+'IDER=\x22'+_0x59ed6a+'\x22','LLM_MODE'+_0x22abe7(0x18b)+_0x51e145+'\x22','','GOOGLE_A'+'PI_KEY=\x22'+(_0x188d25[_0x22abe7(0x164)](_0x59ed6a,_0x188d25[_0x22abe7(0x135)])?_0x46c341:'')+'\x22',_0x188d25['mQvCI'],_0x22abe7(0x112)+_0x22abe7(0x141)+(_0x188d25[_0x22abe7(0x15b)](_0x59ed6a,_0x188d25['CSsHd'])?_0x46c341:'')+'\x22',_0x22abe7(0x167)+'C_API_KE'+_0x22abe7(0x187)+(_0x59ed6a===_0x188d25[_0x22abe7(0x120)]?_0x46c341:'')+'\x22',''][_0x22abe7(0x118)]('\x0a');mkdirSync(_0x188d25[_0x22abe7(0x15e)](dirname,_0x20affe),{'recursive':!![]}),_0x188d25[_0x22abe7(0x140)](writeFileSync,_0x20affe,_0x53f02c,_0x188d25[_0x22abe7(0x166)]),console[_0x22abe7(0x13b)](_0x188d25[_0x22abe7(0x178)](ok,'OK')+('\x20Configu'+_0x22abe7(0x17f)+_0x22abe7(0x143))+_0x20affe+'.');}export function doctorConfig(){const _0x58a90b=_0x3202,_0x432420={'tEVFK':_0x58a90b(0x159),'qIHpe':function(_0x2e7669,_0x533250){return _0x2e7669(_0x533250);},'JyXVn':function(_0x4300f4,_0x4a215b){return _0x4300f4===_0x4a215b;},'YUGuy':'google','leRqC':'openai','Kqthv':_0x58a90b(0x14d)+'c','nFajQ':function(_0x50c8dc,_0x2d50a1){return _0x50c8dc(_0x2d50a1);},'rDibw':function(_0x349648,_0xe9aba8){return _0x349648===_0xe9aba8;},'XgpKR':function(_0x375302,_0x1e7c7a){return _0x375302(_0x1e7c7a);},'GZWHh':'API_KEY','pDGgQ':_0x58a90b(0x177)+_0x58a90b(0x16e),'WDgHh':function(_0x34ded4,_0xa234f6){return _0x34ded4(_0xa234f6);},'WWZGX':_0x58a90b(0x180),'fxlTZ':_0x58a90b(0x181)+_0x58a90b(0x117)+_0x58a90b(0x14a),'qaptQ':function(_0x1b6e82,_0x26f234){return _0x1b6e82(_0x26f234);},'bptGG':'missing/'+_0x58a90b(0x11f),'kdSTN':function(_0x5bab1b,_0x191316){return _0x5bab1b(_0x191316);},'QfoWZ':_0x58a90b(0x14b),'PaUIK':function(_0xa9aa8e,_0x5a1a96){return _0xa9aa8e(_0x5a1a96);},'GiPBs':function(_0x298f73,_0x372515){return _0x298f73(_0x372515);},'PTEAV':function(_0x1b3fb3,_0xa7a2e7){return _0x1b3fb3||_0xa7a2e7;}},_0x423434=getGlobalEnvPath(),_0xf35a10=_0x432420[_0x58a90b(0x119)],_0xcb006c=existsSync(_0xf35a10),_0x305198=_0x432420[_0x58a90b(0x182)](existsSync,_0x423434),_0xe655ef=(process.env.LLM_PROVIDER||'')[_0x58a90b(0x153)+_0x58a90b(0x174)](),_0x5a589=process.env.LLM_MODEL||'',_0xaa5ded=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x45e308=process.env.OPENAI_API_KEY||'',_0x35e07e=process.env.ANTHROPIC_API_KEY||'',_0x5a3b71=_0x432420['JyXVn'](_0xe655ef,_0x432420[_0x58a90b(0x163)])||_0xe655ef===_0x432420[_0x58a90b(0x16f)]||_0x432420[_0x58a90b(0x11c)](_0xe655ef,_0x432420[_0x58a90b(0x186)]),_0x4b0245=_0x432420[_0x58a90b(0x17e)](Boolean,_0x5a589),_0x504b4b=_0x432420[_0x58a90b(0x149)](_0xe655ef,_0x432420[_0x58a90b(0x163)])?_0xaa5ded:_0xe655ef===_0x58a90b(0x173)?_0x45e308:_0xe655ef===_0x432420[_0x58a90b(0x186)]?_0x35e07e:'',_0xe08b22=_0x5a3b71?_0x432420[_0x58a90b(0x11e)](getProviderKeyName,_0xe655ef):_0x432420[_0x58a90b(0x13e)],_0x5c3f52=Boolean(_0x504b4b);_0x432420[_0x58a90b(0x17e)](section,_0x432420[_0x58a90b(0x144)]),console[_0x58a90b(0x13b)](_0x58a90b(0x11b)+_0x58a90b(0x147)+'\x20'+_0x423434),console[_0x58a90b(0x13b)](_0x58a90b(0x11b)+_0x58a90b(0x123)+'\x20'+(_0x305198?_0x432420['WDgHh'](ok,'found'):_0x432420[_0x58a90b(0x182)](warn,_0x432420[_0x58a90b(0x146)]))),console['log'](_0x58a90b(0x158)+_0x58a90b(0x133)+'\x20'+(_0xcb006c?_0x432420[_0x58a90b(0x182)](warn,_0x432420[_0x58a90b(0x13a)]):ok(_0x58a90b(0x16d)+'d'))),console['log'](),console[_0x58a90b(0x13b)](_0x58a90b(0x169)+_0x58a90b(0x15a)+(_0x5a3b71?_0x432420[_0x58a90b(0x150)](ok,'ok'):_0x432420['qIHpe'](bad,_0x432420[_0x58a90b(0x12a)]))),console[_0x58a90b(0x13b)](_0x58a90b(0x11a)+_0x58a90b(0x129)+(_0x4b0245?_0x432420['qaptQ'](ok,'ok'):_0x432420['XgpKR'](bad,_0x432420[_0x58a90b(0x146)]))),console[_0x58a90b(0x13b)](_0xe08b22[_0x58a90b(0x15d)](0xe,'\x20')+'\x20'+(_0x5c3f52?_0x432420[_0x58a90b(0x176)](ok,'ok'):_0x432420[_0x58a90b(0x11e)](bad,_0x432420[_0x58a90b(0x146)]))),console[_0x58a90b(0x13b)](_0x58a90b(0x122)+_0x58a90b(0x131)+(_0xaa5ded?_0x432420[_0x58a90b(0x170)](ok,_0x58a90b(0x14b)):warn(_0x432420['WWZGX']))),console[_0x58a90b(0x13b)](_0x58a90b(0x112)+_0x58a90b(0x131)+(_0x45e308?_0x432420[_0x58a90b(0x17e)](ok,_0x432420[_0x58a90b(0x189)]):_0x432420[_0x58a90b(0x156)](warn,_0x432420[_0x58a90b(0x146)]))),console['log'](_0x58a90b(0x167)+_0x58a90b(0x132)+'Y\x20'+(_0x35e07e?ok('set'):_0x432420['GiPBs'](warn,_0x432420[_0x58a90b(0x146)]))),console[_0x58a90b(0x13b)](),(_0x432420[_0x58a90b(0x13c)](!_0x5a3b71,!_0x4b0245)||!_0x5c3f52)&&(process[_0x58a90b(0x12d)]=0x1);}
@@ -0,0 +1 @@
1
+ function _0x26db(_0x167c7d,_0x144e01){_0x167c7d=_0x167c7d-0x9a;const _0xf14f13=_0x146a();let _0x3f7836=_0xf14f13[_0x167c7d];return _0x3f7836;}(function(_0xc44e2d,_0x421b31){const _0x518f67=_0x26db,_0xe987de=_0xc44e2d();while(!![]){try{const _0x874c0=parseInt(_0x518f67(0xe3))/0x1+-parseInt(_0x518f67(0xa7))/0x2*(-parseInt(_0x518f67(0xec))/0x3)+-parseInt(_0x518f67(0xd0))/0x4*(parseInt(_0x518f67(0xb7))/0x5)+-parseInt(_0x518f67(0xce))/0x6*(parseInt(_0x518f67(0xad))/0x7)+-parseInt(_0x518f67(0xbc))/0x8*(-parseInt(_0x518f67(0xda))/0x9)+-parseInt(_0x518f67(0xef))/0xa*(-parseInt(_0x518f67(0xbe))/0xb)+parseInt(_0x518f67(0x9e))/0xc*(-parseInt(_0x518f67(0xe2))/0xd);if(_0x874c0===_0x421b31)break;else _0xe987de['push'](_0xe987de['shift']());}catch(_0x308453){_0xe987de['push'](_0xe987de['shift']());}}}(_0x146a,0x285ea));const _0x2ab386=(function(){let _0x2118e0=!![];return function(_0x1ac5bf,_0x4e923d){const _0x3af3a3=_0x2118e0?function(){if(_0x4e923d){const _0x348d33=_0x4e923d['apply'](_0x1ac5bf,arguments);return _0x4e923d=null,_0x348d33;}}:function(){};return _0x2118e0=![],_0x3af3a3;};}()),_0x3f7836=_0x2ab386(this,function(){const _0x432714=_0x26db,_0x22676c={'XKVXj':_0x432714(0xb0)+_0x432714(0xe5)};return _0x3f7836[_0x432714(0xd5)]()[_0x432714(0x9b)](_0x22676c[_0x432714(0xae)])[_0x432714(0xd5)]()[_0x432714(0xde)+'tor'](_0x3f7836)[_0x432714(0x9b)](_0x432714(0xb0)+'+)+$');});_0x3f7836();function _0x146a(){const _0x46357d=['ecnico\x20q','AI\x20is\x20su','ch\x20again','ural\x20e\x20o','Diff\x20sta','baseRef','o\x20genera','body','a\x20fora\x20d','ras:\x0a-\x20U','rzzZK','zNAQH','No\x20commi','commits','nch:\x20','814134Llnbdw','\x0aResuma\x20','476wvOgkZ','BRANCH\x20S','\x20feito\x20n','Current\x20','to\x20forne','toString','dmTwg','cjrFf','o\x20branch','este\x20bra','72xjmcyl','uando\x20po','RgyXg','OauBz','construc','mpacto\x20t','content','ecHCI','52IKwexV','236912rapTXQ','das\x20prin','+)+$','Failed\x20t','nch.\x0aReg','Commits:','files:','iles','sta\x20com\x20','3IhGKkQ','grafo\x20cu','OSXFU','4910qBucnN','ente\x20nad','rsyws','hash','message','uWwAs','FkutQ','ntexto\x20d','ent\x20bran','cido\x0a\x0aCo','udancas\x0a','log','search','map','bjetiva\x0a','878364hnFxXp','gues\x20do\x20','em\x20portu','PuOzs','sfcKo','rto\x20+\x20li','yVsfp','subqH','jsLxu','352294fXUvHD','o\x20contex','subject','branch:\x20','bullets\x20','invoke','7lnukuT','XKVXj','JMphh','(((.+)+)','trim','zJfwq','\x20on\x20curr','te\x20branc','length','ts\x20found','3880ndiVCe','GPwcM','\x20Nao\x20inv','\x20que\x20foi','-\x20Cite\x20i','141528tTWUsw','diffStat','2948AGbfaM'];_0x146a=function(){return _0x46357d;};return _0x146a();}import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,section,withProgress}from'../ui.js';function getLLM(){const _0x4ab556=_0x26db,_0x3a48a1={'wYxzm':function(_0xe672b){return _0xe672b();},'subqH':function(_0x53a397,_0x5af3a4){return _0x53a397 instanceof _0x5af3a4;},'jsLxu':function(_0x317010,_0x481baa){return _0x317010(_0x481baa);}};try{return _0x3a48a1['wYxzm'](createLLM);}catch(_0x802823){const _0x2b7a3d=_0x3a48a1[_0x4ab556(0xa5)](_0x802823,Error)?_0x802823[_0x4ab556(0xf3)]:_0x3a48a1[_0x4ab556(0xa6)](String,_0x802823);_0x3a48a1[_0x4ab556(0xa6)](failAndExit,_0x2b7a3d);}}function formatBranchContextForPrompt(){const _0x3a79fc=_0x26db,_0x1f5564={'ecHCI':function(_0x4ad1f9,_0x316d44){return _0x4ad1f9(_0x316d44);},'FkutQ':_0x3a79fc(0xd6),'cjrFf':_0x3a79fc(0xf4),'GPwcM':function(_0x54fe0b){return _0x54fe0b();},'PuOzs':function(_0x5da9a7,_0x31dc9c){return _0x5da9a7===_0x31dc9c;},'OiNcM':function(_0x3adc9c,_0xf8f2fe){return _0x3adc9c(_0xf8f2fe);},'rzzZK':_0x3a79fc(0xe8),'JMphh':'Changed\x20'+_0x3a79fc(0xe9),'zNAQH':'(none)','rsyws':_0x3a79fc(0xc3)+'t:'},_0x33f604=_0x1f5564[_0x3a79fc(0xb8)](getBranchContext);_0x1f5564[_0x3a79fc(0xa1)](_0x33f604[_0x3a79fc(0xcc)][_0x3a79fc(0xb5)],0x0)&&_0x1f5564['OiNcM'](failAndExit,_0x3a79fc(0xcb)+_0x3a79fc(0xb6)+_0x3a79fc(0xb3)+_0x3a79fc(0xf7)+_0x3a79fc(0xc1)+'st\x20'+_0x33f604[_0x3a79fc(0xc4)]+'.');const _0x5ee5ce=_0x33f604['commits'][_0x3a79fc(0x9c)](_0x1b654a=>{const _0x3e17d1=_0x3a79fc,_0x2a5d73={'bPSSN':function(_0x5d6da7,_0x1ce146){return _0x5d6da7 instanceof _0x1ce146;},'OSXFU':function(_0x1ba57c,_0x1dd1fe){const _0x4b0b50=_0x26db;return _0x1f5564[_0x4b0b50(0xe1)](_0x1ba57c,_0x1dd1fe);},'RgyXg':function(_0x235106,_0x131100){return _0x1f5564['ecHCI'](_0x235106,_0x131100);}};if(_0x1f5564[_0x3e17d1(0xf5)]!==_0x1f5564[_0x3e17d1(0xd7)]){const _0x36b2b6=_0x1b654a[_0x3e17d1(0xc6)]?'\x20|\x20body:'+'\x20'+_0x1b654a[_0x3e17d1(0xc6)]['replace'](/\s+/g,'\x20')[_0x3e17d1(0xb1)]():'';return'-\x20'+_0x1b654a[_0x3e17d1(0xf2)]['slice'](0x0,0x7)+'\x20|\x20'+_0x1b654a[_0x3e17d1(0xa9)]+_0x36b2b6;}else{const _0x5da38d=yXbQOA['bPSSN'](_0xb0fe09,_0x47ab42)?_0x27adae['message']:yXbQOA[_0x3e17d1(0xee)](_0x10d71b,_0x9d80d8);yXbQOA[_0x3e17d1(0xdc)](_0xd4efa7,_0x5da38d);}});return[_0x3a79fc(0xd3)+_0x3a79fc(0xaa)+_0x1f5564['GPwcM'](getCurrentBranch),'Base\x20bra'+_0x3a79fc(0xcd)+_0x33f604[_0x3a79fc(0xc4)],'',_0x1f5564[_0x3a79fc(0xc9)],..._0x5ee5ce,'',_0x1f5564[_0x3a79fc(0xaf)],_0x33f604['changedF'+_0x3a79fc(0xea)]||_0x1f5564[_0x3a79fc(0xca)],'',_0x1f5564[_0x3a79fc(0xf1)],_0x33f604[_0x3a79fc(0xbd)]||_0x1f5564[_0x3a79fc(0xca)]]['join']('\x0a');}export async function summarizeBranchLog(){const _0x38911c=_0x26db,_0x1b0f2b={'zJfwq':function(_0x50c7ee){return _0x50c7ee();},'OauBz':function(_0x34adf7){return _0x34adf7();},'lDOAu':_0x38911c(0xc0)+'mmarizin'+'g\x20branch'+'\x20work...','sfcKo':function(_0x3abee0,_0x27ddfe){return _0x3abee0(_0x27ddfe);},'yVsfp':function(_0x35fa7e,_0x12c622){return _0x35fa7e(_0x12c622);},'TmXNC':_0x38911c(0xd1)+'UMMARY'};_0x1b0f2b[_0x38911c(0xb2)](getGitStatus);const _0x42b55a=_0x1b0f2b[_0x38911c(0xdd)](getLLM),_0x4a722b=_0x1b0f2b[_0x38911c(0xdd)](formatBranchContextForPrompt),_0x2d1be7=(_0x38911c(0xcf)+_0x38911c(0xa0)+_0x38911c(0x9f)+'Brasil\x20o'+_0x38911c(0xba)+_0x38911c(0xd2)+_0x38911c(0xd9)+_0x38911c(0xe7)+_0x38911c(0xc8)+'se\x20lingu'+'agem\x20nat'+_0x38911c(0xc2)+_0x38911c(0x9d)+'-\x201\x20para'+_0x38911c(0xed)+_0x38911c(0xa3)+_0x38911c(0xeb)+_0x38911c(0xab)+_0x38911c(0xe4)+'cipais\x20m'+_0x38911c(0xf9)+_0x38911c(0xbb)+_0x38911c(0xdf)+_0x38911c(0xbf)+_0x38911c(0xdb)+'ssivel\x0a-'+_0x38911c(0xb9)+_0x38911c(0xf0)+_0x38911c(0xc7)+_0x38911c(0xa8)+_0x38911c(0xd4)+_0x38911c(0xf8)+_0x38911c(0xf6)+_0x38911c(0xd8)+':\x0a'+_0x4a722b+'\x0a')[_0x38911c(0xb1)](),_0xb2b808=await withProgress(_0x1b0f2b['lDOAu'],()=>_0x42b55a[_0x38911c(0xac)](_0x2d1be7)),_0x9432df=_0x1b0f2b[_0x38911c(0xa2)](extractMessageText,_0xb2b808[_0x38911c(0xe0)]);!_0x9432df&&_0x1b0f2b[_0x38911c(0xa4)](failAndExit,_0x38911c(0xe6)+_0x38911c(0xc5)+_0x38911c(0xb4)+'h\x20summar'+'y.'),section(_0x1b0f2b['TmXNC']),console[_0x38911c(0x9a)](_0x9432df),console['log']();}
@@ -0,0 +1 @@
1
+ function _0x4880(){const _0x4bf68a=['body','iles','actly\x20in','Uadvg','find','toString','log','descript','sting\x0a\x0aR','Failed\x20t','656045bpPuqs','Changed\x20','Current\x20','\x20generat','oPMJa','33RYpEKw','\x20descrip','reate:\x0a-','PR\x20title','subject','commits','tor','below,\x20c','\x20and\x20des','title','WZIdo','4XBLtfo','\x20|\x20body:','own>\x0a\x0aBr','tJMPP','2007033lRDkQR','tle>\x0aDES','bold','6590xQmMBZ','ns:\x20Summ','tion\x20wit','272086oOBiky','nges,\x20Te','eparing\x20','ary,\x20Cha','ion','(none)','join','(((.+)+)','a\x20GitHub','slice','tle\x20in\x20E',':\x0a<markd','st\x20','le/descr','se\x20PR\x20ti','AI\x20is\x20pr','title:','om\x20AI\x20re','PR\x20TITLE','usqdl','message','\x20|\x20','12974337smkcqO','SXmzl','max\x2072\x20c','ldGwM','hash','ion:','trim','1746KiNAeH','FBLzj','7fgLWHA','mCaqg','+)+$','...','ts\x20found','12CJGpjn','AkbCv','ased\x20on\x20','map','yMPIr','Base\x20bra','PR\x20sugge','search','cription','CRIPTION','749913oxwDzk','xmJau','rmat:\x0aTI','IPTION','findInde','kjPDm','iption.','tpSKQ','ch\x20again','length','vainF','aTjUc','d\x20PR\x20tit','te\x20PR\x20co','o\x20parse\x20','No\x20commi','\x20this\x20fo','split','gRzTF','diffStat','stion\x20fr','qXIMP','16cpPbgC','\x20on\x20curr','baseRef','content','4482730dQrZuF','ase','hars)\x0a-\x20','TGexv','replace','nse\x20did\x20','indexOf','\x0aYou\x20are','nglish\x20(','NsrSh','files:','ch\x20data\x20','ntent.','startsWi','the\x20bran','quest.\x0aB','eturn\x20ex','ent\x20for\x20','toLowerC','AI\x20respo','branch:\x20'];_0x4880=function(){return _0x4bf68a;};return _0x4880();}(function(_0x2c4739,_0x102f4d){const _0xdcd1ac=_0x28fa,_0x272df5=_0x2c4739();while(!![]){try{const _0x122bcb=parseInt(_0xdcd1ac(0x1d8))/0x1*(parseInt(_0xdcd1ac(0x1b9))/0x2)+parseInt(_0xdcd1ac(0x1e7))/0x3*(parseInt(_0xdcd1ac(0x1af))/0x4)+-parseInt(_0xdcd1ac(0x1b6))/0x5*(-parseInt(_0xdcd1ac(0x1d6))/0x6)+-parseInt(_0xdcd1ac(0x1b3))/0x7*(parseInt(_0xdcd1ac(0x1fd))/0x8)+-parseInt(_0xdcd1ac(0x1cf))/0x9+-parseInt(_0xdcd1ac(0x201))/0xa*(-parseInt(_0xdcd1ac(0x1a4))/0xb)+parseInt(_0xdcd1ac(0x1dd))/0xc*(parseInt(_0xdcd1ac(0x19f))/0xd);if(_0x122bcb===_0x102f4d)break;else _0x272df5['push'](_0x272df5['shift']());}catch(_0xd059d4){_0x272df5['push'](_0x272df5['shift']());}}}(_0x4880,0xebdaf));function _0x28fa(_0x54c2c1,_0x3787b8){_0x54c2c1=_0x54c2c1-0x187;const _0x2d7565=_0x4880();let _0xdf5dfc=_0x2d7565[_0x54c2c1];return _0xdf5dfc;}const _0xdf0073=(function(){let _0x666a23=!![];return function(_0xa6daa8,_0x3099c6){const _0x1b68aa=_0x666a23?function(){if(_0x3099c6){const _0x3bac95=_0x3099c6['apply'](_0xa6daa8,arguments);return _0x3099c6=null,_0x3bac95;}}:function(){};return _0x666a23=![],_0x1b68aa;};}()),_0xdf5dfc=_0xdf0073(this,function(){const _0x212fcc=_0x28fa,_0x563732={'Uadvg':_0x212fcc(0x1c0)+_0x212fcc(0x1da)};return _0xdf5dfc[_0x212fcc(0x19a)]()[_0x212fcc(0x1e4)](_0x212fcc(0x1c0)+_0x212fcc(0x1da))[_0x212fcc(0x19a)]()['construc'+_0x212fcc(0x1aa)](_0xdf5dfc)[_0x212fcc(0x1e4)](_0x563732[_0x212fcc(0x198)]);});_0xdf5dfc();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 _0x40c198=_0x28fa,_0x311086={'NsrSh':function(_0x484d7d,_0x3e1db9){return _0x484d7d(_0x3e1db9);}};try{return createLLM();}catch(_0x1298de){const _0x462698=_0x1298de instanceof Error?_0x1298de[_0x40c198(0x1cd)]:_0x311086[_0x40c198(0x189)](String,_0x1298de);failAndExit(_0x462698);}}function formatCommitsForPrompt(){const _0x50288f=_0x28fa,_0x290cf8={'UKkvy':function(_0x29c49d,_0x185dd1){return _0x29c49d===_0x185dd1;},'xmJau':function(_0x27894d,_0x300a41){return _0x27894d(_0x300a41);},'oPMJa':function(_0x3e65f1){return _0x3e65f1();},'aTjUc':'Commits:','gRzTF':_0x50288f(0x1a0)+_0x50288f(0x18a),'FBLzj':_0x50288f(0x1be),'qXIMP':'Diff\x20sta'+'t:'},_0x5e90e3=getBranchContext();_0x290cf8['UKkvy'](_0x5e90e3[_0x50288f(0x1a9)][_0x50288f(0x1f0)],0x0)&&_0x290cf8[_0x50288f(0x1e8)](failAndExit,_0x50288f(0x1f6)+_0x50288f(0x1dc)+_0x50288f(0x1fe)+'ent\x20bran'+_0x50288f(0x1ef)+_0x50288f(0x1c5)+_0x5e90e3[_0x50288f(0x1ff)]+'.');const _0x1775d3=_0x5e90e3[_0x50288f(0x1a9)][_0x50288f(0x1e0)](_0x3367c6=>{const _0x4ca51d=_0x50288f,_0x2af804=_0x3367c6[_0x4ca51d(0x195)]?_0x4ca51d(0x1b0)+'\x20'+_0x3367c6[_0x4ca51d(0x195)][_0x4ca51d(0x205)](/\s+/g,'\x20')[_0x4ca51d(0x1d5)]():'';return'-\x20'+_0x3367c6[_0x4ca51d(0x1d3)][_0x4ca51d(0x1c2)](0x0,0x7)+_0x4ca51d(0x1ce)+_0x3367c6[_0x4ca51d(0x1a8)]+_0x2af804;});return[_0x50288f(0x1a1)+_0x50288f(0x194)+_0x290cf8[_0x50288f(0x1a3)](getCurrentBranch),_0x50288f(0x1e2)+'nch:\x20'+_0x5e90e3['baseRef'],'',_0x290cf8[_0x50288f(0x1f2)],..._0x1775d3,'',_0x290cf8[_0x50288f(0x1f9)],_0x5e90e3['changedF'+_0x50288f(0x196)]||_0x290cf8[_0x50288f(0x1d7)],'',_0x290cf8[_0x50288f(0x1fc)],_0x5e90e3[_0x50288f(0x1fa)]||_0x290cf8[_0x50288f(0x1d7)]][_0x50288f(0x1bf)]('\x0a');}function parsePrSuggestion(_0x916833){const _0x40f4d0=_0x28fa,_0xe942b1={'kjPDm':function(_0x158d33,_0x2b98a9){return _0x158d33(_0x2b98a9);},'vainF':function(_0x2ebb1a,_0x5a200d){return _0x2ebb1a+_0x5a200d;},'yMPIr':function(_0x68377,_0x5f5270){return _0x68377||_0x5f5270;},'TGexv':function(_0xeab270,_0x13eb86){return _0xeab270(_0x13eb86);},'mCaqg':_0x40f4d0(0x193)+_0x40f4d0(0x206)+'not\x20incl'+'ude\x20vali'+_0x40f4d0(0x1f3)+_0x40f4d0(0x1c6)+_0x40f4d0(0x1ed)},_0x418c33=_0x916833[_0x40f4d0(0x1f8)](/\r?\n/),_0x5ab7d6=_0x418c33[_0x40f4d0(0x199)](_0x1c0e40=>_0x1c0e40[_0x40f4d0(0x192)+_0x40f4d0(0x202)]()[_0x40f4d0(0x18d)+'th'](_0x40f4d0(0x1c9))),_0x338491=_0x418c33[_0x40f4d0(0x1eb)+'x'](_0x2fa6a3=>_0x2fa6a3[_0x40f4d0(0x192)+_0x40f4d0(0x202)]()[_0x40f4d0(0x18d)+'th'](_0x40f4d0(0x19c)+_0x40f4d0(0x1d4)));(!_0x5ab7d6||_0x338491<0x0)&&_0xe942b1[_0x40f4d0(0x1ec)](failAndExit,'Failed\x20t'+_0x40f4d0(0x1f5)+_0x40f4d0(0x1e3)+_0x40f4d0(0x1fb)+_0x40f4d0(0x1ca)+'sponse.');const _0x52a01c=_0x5ab7d6[_0x40f4d0(0x1c2)](_0xe942b1[_0x40f4d0(0x1f1)](_0x5ab7d6[_0x40f4d0(0x207)](':'),0x1))['trim'](),_0x5040e7=_0x418c33['slice'](_0xe942b1[_0x40f4d0(0x1f1)](_0x338491,0x1))['join']('\x0a')[_0x40f4d0(0x1d5)]();return _0xe942b1[_0x40f4d0(0x1e1)](!_0x52a01c,!_0x5040e7)&&_0xe942b1[_0x40f4d0(0x204)](failAndExit,_0xe942b1[_0x40f4d0(0x1d9)]),{'title':_0x52a01c,'description':_0x5040e7};}export async function generatePullRequestText(){const _0x2320bf=_0x28fa,_0x8e4c27={'WZIdo':function(_0x2a44eb){return _0x2a44eb();},'AkbCv':function(_0x3737b0,_0x2e7eb9,_0x4e1f79){return _0x3737b0(_0x2e7eb9,_0x4e1f79);},'usqdl':_0x2320bf(0x1c8)+_0x2320bf(0x1bb)+_0x2320bf(0x1a7)+_0x2320bf(0x1ac)+_0x2320bf(0x1e5)+_0x2320bf(0x1db),'tpSKQ':function(_0x1dbc88,_0x239641){return _0x1dbc88(_0x239641);},'SXmzl':_0x2320bf(0x19e)+'o\x20genera'+_0x2320bf(0x1f4)+_0x2320bf(0x18c),'HkABp':_0x2320bf(0x1cb),'ldGwM':function(_0x2f78ef,_0x10b87d,_0x1127f2){return _0x2f78ef(_0x10b87d,_0x1127f2);},'tJMPP':'PR\x20DESCR'+_0x2320bf(0x1ea)};_0x8e4c27['WZIdo'](getGitStatus);const _0x1df553=_0x8e4c27['WZIdo'](getLLM),_0x4b6a93=_0x8e4c27[_0x2320bf(0x1ae)](formatCommitsForPrompt),_0xdb1be4=(_0x2320bf(0x187)+_0x2320bf(0x1a2)+'ing\x20cont'+_0x2320bf(0x191)+_0x2320bf(0x1c1)+'\x20Pull\x20Re'+_0x2320bf(0x18f)+_0x2320bf(0x1df)+_0x2320bf(0x18e)+_0x2320bf(0x18b)+_0x2320bf(0x1ab)+_0x2320bf(0x1a6)+'\x20A\x20conci'+_0x2320bf(0x1c7)+_0x2320bf(0x1c3)+_0x2320bf(0x188)+_0x2320bf(0x1d1)+_0x2320bf(0x203)+'A\x20clear\x20'+'markdown'+_0x2320bf(0x1a5)+_0x2320bf(0x1b8)+'h\x20sectio'+_0x2320bf(0x1b7)+_0x2320bf(0x1bc)+_0x2320bf(0x1ba)+_0x2320bf(0x19d)+_0x2320bf(0x190)+_0x2320bf(0x197)+_0x2320bf(0x1f7)+_0x2320bf(0x1e9)+'TLE:\x20<ti'+_0x2320bf(0x1b4)+_0x2320bf(0x1e6)+_0x2320bf(0x1c4)+_0x2320bf(0x1b1)+'anch\x20dat'+'a:\x0a'+_0x4b6a93+'\x0a')[_0x2320bf(0x1d5)](),_0x525686=await _0x8e4c27[_0x2320bf(0x1de)](withProgress,_0x8e4c27[_0x2320bf(0x1cc)],()=>_0x1df553['invoke'](_0xdb1be4)),_0x5dee0a=extractMessageText(_0x525686[_0x2320bf(0x200)]);!_0x5dee0a&&_0x8e4c27[_0x2320bf(0x1ee)](failAndExit,_0x8e4c27[_0x2320bf(0x1d0)]);const _0x125bbf=parsePrSuggestion(_0x5dee0a);_0x8e4c27[_0x2320bf(0x1ee)](section,_0x8e4c27['HkABp']),console[_0x2320bf(0x19b)](_0x8e4c27[_0x2320bf(0x1d2)](style,_0x125bbf[_0x2320bf(0x1ad)],ui[_0x2320bf(0x1b5)])),console['log'](),_0x8e4c27[_0x2320bf(0x1ee)](section,_0x8e4c27[_0x2320bf(0x1b2)]),console[_0x2320bf(0x19b)](_0x125bbf['descript'+_0x2320bf(0x1bd)]),console[_0x2320bf(0x19b)]();}
@@ -0,0 +1 @@
1
+ (function(_0x49a95f,_0x38c9b6){const _0x4a7ce4=_0xf85c,_0x184731=_0x49a95f();while(!![]){try{const _0x5f80cc=parseInt(_0x4a7ce4(0x112))/0x1*(parseInt(_0x4a7ce4(0x137))/0x2)+-parseInt(_0x4a7ce4(0x143))/0x3*(parseInt(_0x4a7ce4(0x132))/0x4)+parseInt(_0x4a7ce4(0x10d))/0x5+-parseInt(_0x4a7ce4(0x130))/0x6*(-parseInt(_0x4a7ce4(0x145))/0x7)+parseInt(_0x4a7ce4(0x126))/0x8+parseInt(_0x4a7ce4(0x128))/0x9+parseInt(_0x4a7ce4(0x116))/0xa*(-parseInt(_0x4a7ce4(0x135))/0xb);if(_0x5f80cc===_0x38c9b6)break;else _0x184731['push'](_0x184731['shift']());}catch(_0x19221b){_0x184731['push'](_0x184731['shift']());}}}(_0x4c34,0x68494));const _0x3b86e8=(function(){let _0x2000c0=!![];return function(_0x2b3bed,_0x5b81e1){const _0x3106d2=_0x2000c0?function(){const _0x212188=_0xf85c;if(_0x5b81e1){const _0x7c60c3=_0x5b81e1[_0x212188(0x11a)](_0x2b3bed,arguments);return _0x5b81e1=null,_0x7c60c3;}}:function(){};return _0x2000c0=![],_0x3106d2;};}()),_0x26625d=_0x3b86e8(this,function(){const _0x14a8aa=_0xf85c,_0x450c17={'NPqjn':'(((.+)+)'+_0x14a8aa(0x13f)};return _0x26625d['toString']()[_0x14a8aa(0x124)](_0x450c17[_0x14a8aa(0x120)])[_0x14a8aa(0x136)]()['construc'+_0x14a8aa(0x127)](_0x26625d)['search'](_0x14a8aa(0x113)+_0x14a8aa(0x13f));});_0x26625d();function _0xf85c(_0x33f19f,_0x3a2bed){_0x33f19f=_0x33f19f-0x107;const _0x2a1aef=_0x4c34();let _0x26625d=_0x2a1aef[_0x33f19f];return _0x26625d;}import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x2a87b6}from'dotenv';function getBaseConfigDir(){const _0x2ab212=_0xf85c,_0x43eb26={'oPRJP':function(_0x327311,_0x9fd143,_0x446a42,_0x2c2b38){return _0x327311(_0x9fd143,_0x446a42,_0x2c2b38);},'yOAqj':_0x2ab212(0x133),'VnMOL':'.env','VKPAb':function(_0x4abfd1,_0x11b1b8){return _0x4abfd1===_0x11b1b8;},'dzcCY':function(_0x560395,_0x123b64){return _0x560395!==_0x123b64;},'QWSRU':_0x2ab212(0x12b),'DJRxe':_0x2ab212(0x111),'ypLkF':function(_0x34b1b8,_0x5788a8,_0x2a363a){return _0x34b1b8(_0x5788a8,_0x2a363a);},'lhVyM':function(_0x3a861e){return _0x3a861e();},'kvFXb':_0x2ab212(0x148),'Fhani':_0x2ab212(0x110),'asXqy':function(_0x4461f8,_0x33869f,_0x180385,_0x2c9269){return _0x4461f8(_0x33869f,_0x180385,_0x2c9269);},'LpJMD':function(_0x49bd39){return _0x49bd39();},'rciJi':_0x2ab212(0x142),'feZPl':function(_0x25c03b){return _0x25c03b();}};if(_0x43eb26[_0x2ab212(0x141)](process[_0x2ab212(0x119)],'win32'))return _0x43eb26[_0x2ab212(0x12d)](_0x43eb26[_0x2ab212(0x13b)],_0x43eb26[_0x2ab212(0x10b)])?process.env.APPDATA||_0x43eb26[_0x2ab212(0x115)](join,_0x43eb26[_0x2ab212(0x117)](homedir),_0x43eb26[_0x2ab212(0x144)]):_0x43eb26[_0x2ab212(0x138)](_0x52c4b2,_0x52951b.env.APPDATA,_0x43eb26[_0x2ab212(0x13c)],_0x43eb26[_0x2ab212(0x118)]);if(_0x43eb26['VKPAb'](process[_0x2ab212(0x119)],_0x43eb26[_0x2ab212(0x146)]))return _0x43eb26[_0x2ab212(0x10e)](join,_0x43eb26[_0x2ab212(0x10f)](homedir),_0x43eb26['rciJi'],_0x2ab212(0x11e)+_0x2ab212(0x114)+_0x2ab212(0x140));return process.env.XDG_CONFIG_HOME||_0x43eb26[_0x2ab212(0x115)](join,_0x43eb26[_0x2ab212(0x139)](homedir),_0x2ab212(0x10a));}function _0x4c34(){const _0x9bd5f4=['qqVjr','.env','dzcCY','wFMIU','win32','6lordIb','uiMhJ','4RFzGEy','gemit','RMksY','4285721LPXcSr','toString','1541156kbMAwy','oPRJP','feZPl','jgxcj','QWSRU','yOAqj','kQSsf','wbyhY','+)+$','ort','VKPAb','Library','2504100NbWBHl','kvFXb','2997596jfZoAi','Fhani','nqJlq','.gemit','XaxoI','XsuBk','FFQKu','.config','DJRxe','yTfFE','861045dzzBuc','asXqy','LpJMD','darwin','VTOwL','1wTvkAT','(((.+)+)','ion\x20Supp','ypLkF','30NAXeGN','lhVyM','VnMOL','platform','apply','jrNhy','kaZpk','SElVi','Applicat','entries','NPqjn','EuClC','Gwjrn','MRbRx','search','mHooo','4334912VGgtRB','tor','4660290SqAyyr','OYOne','xgHoC'];_0x4c34=function(){return _0x9bd5f4;};return _0x4c34();}export function getGlobalEnvPath(){const _0x5200bc=_0xf85c,_0x2b984f={'TkVeL':function(_0x3cf6c8,_0x23309c){return _0x3cf6c8===_0x23309c;},'kztHU':_0x5200bc(0x12f),'MRbRx':function(_0xa21e40,_0x224343,_0x20f03b,_0x471473){return _0xa21e40(_0x224343,_0x20f03b,_0x471473);},'EuClC':_0x5200bc(0x12c),'diRTa':function(_0x4d8bdc){return _0x4d8bdc();},'jVtnM':_0x5200bc(0x133)};if(_0x2b984f['TkVeL'](process[_0x5200bc(0x119)],_0x2b984f['kztHU'])&&process.env.APPDATA)return _0x2b984f[_0x5200bc(0x123)](join,process.env.APPDATA,'gemit',_0x2b984f[_0x5200bc(0x121)]);return join(_0x2b984f['diRTa'](getBaseConfigDir),_0x2b984f['jVtnM'],_0x2b984f[_0x5200bc(0x121)]);}export function loadConfig(){const _0x7c0d21=_0xf85c,_0x4c1663={'wqDqz':function(_0x4d019a,_0x446265){return _0x4d019a(_0x446265);},'kQSsf':_0x7c0d21(0x12c),'jrNhy':function(_0x51bcc3,_0x5d3073,_0x4c5345){return _0x51bcc3(_0x5d3073,_0x4c5345);},'uiMhJ':function(_0x506a95,_0x4720f9){return _0x506a95!==_0x4720f9;},'yTfFE':_0x7c0d21(0x147)},_0x30f215=getGlobalEnvPath();_0x4c1663[_0x7c0d21(0x11b)](loadEnvFile,_0x30f215,![]);if(existsSync(_0x7c0d21(0x12c))){if(_0x4c1663[_0x7c0d21(0x131)](_0x7c0d21(0x147),_0x4c1663[_0x7c0d21(0x10c)])){const _0x9b2370=_0x206f1a();_0x2385fc(_0x9b2370,![]),_0x4c1663['wqDqz'](_0xcb156e,_0x4c1663['kQSsf'])&&_0x4c1663[_0x7c0d21(0x11b)](_0x40295c,_0x4c1663[_0x7c0d21(0x13d)],!![]);}else loadEnvFile(_0x4c1663[_0x7c0d21(0x13d)],!![]);}}function loadEnvFile(_0x37d16d,_0x489b1b){const _0x37ec32=_0xf85c,_0x1c1665={'xgHoC':function(_0x28fa4e,_0x2cc2c7,_0xb17427){return _0x28fa4e(_0x2cc2c7,_0xb17427);},'RMksY':_0x37ec32(0x148),'wFMIU':_0x37ec32(0x12f),'FFQKu':function(_0x15b8cf,_0xfc79a4,_0x22c8e4,_0x5c5206){return _0x15b8cf(_0xfc79a4,_0x22c8e4,_0x5c5206);},'Gwjrn':_0x37ec32(0x12c),'cfGsh':_0x37ec32(0x133),'mHooo':function(_0x36458d,_0x5dfa81){return _0x36458d(_0x5dfa81);},'jgxcj':_0x37ec32(0x107),'pDiOf':function(_0x1ea70d,_0x25f1ea){return _0x1ea70d(_0x25f1ea);},'SElVi':function(_0x5501b5,_0x22e64c,_0x68affb){return _0x5501b5(_0x22e64c,_0x68affb);},'XsuBk':function(_0x2d0824,_0x3ec804){return _0x2d0824!==_0x3ec804;},'kaZpk':_0x37ec32(0x129)};if(!_0x1c1665[_0x37ec32(0x125)](existsSync,_0x37d16d)){if(_0x37ec32(0x13e)!==_0x1c1665[_0x37ec32(0x13a)])return;else return _0x25fa66.env.APPDATA||Jxjqds[_0x37ec32(0x12a)](_0x5b78fa,_0x5e5588(),Jxjqds[_0x37ec32(0x134)]);}const _0xc189d4=_0x1c1665['pDiOf'](_0x2a87b6,_0x1c1665[_0x37ec32(0x11d)](readFileSync,_0x37d16d,'utf8'));for(const [_0x343537,_0x25400f]of Object[_0x37ec32(0x11f)](_0xc189d4)){if(_0x1c1665[_0x37ec32(0x108)](_0x37ec32(0x129),_0x1c1665[_0x37ec32(0x11c)])){if(_0x1731d3[_0x37ec32(0x119)]===Jxjqds[_0x37ec32(0x12e)]&&_0xbed365.env.APPDATA)return Jxjqds['FFQKu'](_0x1aa23b,_0x3bef62.env.APPDATA,_0x37ec32(0x133),Jxjqds[_0x37ec32(0x122)]);return Jxjqds[_0x37ec32(0x109)](_0x584414,_0xe1776c(),Jxjqds['cfGsh'],Jxjqds[_0x37ec32(0x122)]);}else(_0x489b1b||process.env[_0x343537]===undefined)&&(process.env[_0x343537]=_0x25400f);}}
@@ -0,0 +1 @@
1
+ (function(_0x485f50,_0x12fcaf){const _0x278533=_0x4598,_0x21acb9=_0x485f50();while(!![]){try{const _0xfa843=-parseInt(_0x278533(0x1f1))/0x1*(-parseInt(_0x278533(0x1e7))/0x2)+-parseInt(_0x278533(0x1b0))/0x3*(-parseInt(_0x278533(0x209))/0x4)+parseInt(_0x278533(0x202))/0x5*(parseInt(_0x278533(0x1cd))/0x6)+parseInt(_0x278533(0x1c7))/0x7*(parseInt(_0x278533(0x1af))/0x8)+parseInt(_0x278533(0x1f8))/0x9*(-parseInt(_0x278533(0x1f9))/0xa)+parseInt(_0x278533(0x1cc))/0xb*(parseInt(_0x278533(0x169))/0xc)+-parseInt(_0x278533(0x203))/0xd;if(_0xfa843===_0x12fcaf)break;else _0x21acb9['push'](_0x21acb9['shift']());}catch(_0x3a2274){_0x21acb9['push'](_0x21acb9['shift']());}}}(_0x5ee3,0x74636));const _0x290153=(function(){let _0xa0c5c=!![];return function(_0x448e4f,_0x80e1c3){const _0x1903a9=_0xa0c5c?function(){const _0x9e18cb=_0x4598;if(_0x80e1c3){const _0x1fc444=_0x80e1c3[_0x9e18cb(0x20e)](_0x448e4f,arguments);return _0x80e1c3=null,_0x1fc444;}}:function(){};return _0xa0c5c=![],_0x1903a9;};}()),_0x5544f2=_0x290153(this,function(){const _0x403c2c=_0x4598,_0x49b0b3={'YEMQI':_0x403c2c(0x184)+'+)+$'};return _0x5544f2[_0x403c2c(0x1dd)]()['search'](_0x49b0b3['YEMQI'])[_0x403c2c(0x1dd)]()[_0x403c2c(0x1a8)+'tor'](_0x5544f2)[_0x403c2c(0x1ba)](_0x49b0b3[_0x403c2c(0x1b3)]);});_0x5544f2();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x228acf){const _0x54fe48=_0x4598,_0x2ef6a5={'blTHk':function(_0x5eea3d,_0x1ca724,_0x96f0cd,_0x32b721){return _0x5eea3d(_0x1ca724,_0x96f0cd,_0x32b721);},'PcpBL':_0x54fe48(0x1a5),'qEluP':_0x54fe48(0x182)};return _0x2ef6a5[_0x54fe48(0x17e)](execFileSync,_0x2ef6a5[_0x54fe48(0x194)],_0x228acf,{'stdio':_0x2ef6a5[_0x54fe48(0x1b8)]})[_0x54fe48(0x1dd)]();}function _0x5ee3(){const _0x1afc95=['fuMTG','length','git','t\x20histor','develop','construc','Not\x20a\x20gi','uwcnO','qvVCw','--pretty','%H%x1f%s','r\x20create','8aLueTG','6XvlLeK','vzQkp','wMiLw','YEMQI','status','-ref\x20--v','MFrZA','1f%ad%x1','qEluP','tatus','search','it\x20commi','log','dd\x20.','zZzjZ','trim','\x20branch.','/HEAD','tory.','fs/heads','rCKEg','o\x20stage\x20','vXadA','527695NpmwNb','XsPQb','quiet\x20re','iLBhE','FvYiZ','22HBcHVc','996SGbhOj','xVWNb','includes','cEsnh','--cached','--numsta','AEWuY','f%an%x1e','-ref','subject','vncTN','..HEAD','qGgQR','w-curren','=format:','erify\x20--','toString','FRhZz','mzsVm','origin','HhXof','RaAdq','iphOJ','bolic-fu','@{upstre','VVEBT','254lYgzKS','t\x20detect','Nktbu','\x20changes','--date=s','jtqqe','FsuPE','e\x20HEAD\x20o','WZdRt','UWAxs','2189wNsRwA','diff','main','jMEmI','HJOLG','e\x20merge-','pwoSS','9ghZbKV','746490gqjCVp','map','KYYgB','--verify','--short','INZwl','abbrev-r','indexOf','t\x20infer\x20','905oGPSJT','12746071vnpIuf','filter','BMOoV','szDYe','YuyHf','refs/hea','729288OeCzxv','inherit','lBYRV','csajn','uVAgC','apply','hort','hash','QvHcX','gCTvh','xVooN','mBdEN','OdPsV','gbPuJ','nxyew','oKXSs','VEEFJ','th\x20git\x20a','fKHBu','\x20main/ma','\x20current','tgBdW','ch\x20--sho','HEAD','am}','master','XeZOP','ds/','ymbHA','4702584zHCwAC','IGbQZ','parse\x20--','fTcQM','xlJju','NrgLk','--revers','git\x20rev-','base\x20wit','Could\x20no','base\x20bra','NUtxv','nch.\x20Set','Oifzr','--stat','otes/','refs/rem','pPxaC','ef\x20--sym','MJMmx','xEBgp','blTHk','XZeJw','vBmBj','\x20a\x20remot','pipe','%x1f%b%x','(((.+)+)','qyGZm','split','ygvNt','parseInt','lzoQj','git\x20show','git\x20bran','add','xTpQg','slice','ubNYX','kScKH','RVbQf','ghcsA','git\x20remo','PcpBL','TVqug','lgDob','Failed\x20t','aDBcN','NoCIK','t\x20staged','nqsxz','XRwmV','htozp','--name-s','Chxai','files\x20wi','XVKsZ','FqlHq'];_0x5ee3=function(){return _0x1afc95;};return _0x5ee3();}export function getGitStatus(){const _0x1e9d0a=_0x4598,_0x5ea441={'fKHBu':function(_0x4004e6,_0x3b92cb){return _0x4004e6(_0x3b92cb);},'XVKsZ':_0x1e9d0a(0x1f2),'IGbQZ':'--stat'};try{const _0xc6aa44=_0x5ea441[_0x1e9d0a(0x21b)](runGit,[_0x1e9d0a(0x1b4)]),_0x5ecdf4=_0x5ea441[_0x1e9d0a(0x21b)](runGit,[_0x5ea441[_0x1e9d0a(0x1a1)],_0x5ea441[_0x1e9d0a(0x16a)]]);return _0xc6aa44+'\x0a'+_0x5ecdf4;}catch{failAndExit(_0x1e9d0a(0x1a9)+'t\x20reposi'+_0x1e9d0a(0x1c2));}}function _0x4598(_0x2ecb61,_0x55901c){_0x2ecb61=_0x2ecb61-0x161;const _0x3529d9=_0x5ee3();let _0x5544f2=_0x3529d9[_0x2ecb61];return _0x5544f2;}export function branchExists(_0x29a6ca){const _0x53918d=_0x4598,_0x2d742a={'xVooN':function(_0x4fcda8,_0xcd5626,_0x367f5c){return _0x4fcda8(_0xcd5626,_0x367f5c);},'WZdRt':_0x53918d(0x182)};try{return _0x2d742a[_0x53918d(0x213)](execSync,_0x53918d(0x18a)+_0x53918d(0x1b5)+_0x53918d(0x1dc)+_0x53918d(0x1c9)+_0x53918d(0x1c3)+'/'+_0x29a6ca,{'stdio':_0x2d742a[_0x53918d(0x1ef)]}),!![];}catch{return![];}}export function getCurrentBranch(){const _0x1cf996=_0x4598,_0x2e8c9f={'Oifzr':_0x1cf996(0x182),'vXadA':function(_0x3af0b7,_0x99cdc6,_0x4fbf4e){return _0x3af0b7(_0x99cdc6,_0x4fbf4e);},'qyGZm':function(_0x4b7fb2,_0x1e84ed){return _0x4b7fb2(_0x1e84ed);},'kScKH':'Could\x20no'+_0x1cf996(0x1e8)+_0x1cf996(0x21d)+_0x1cf996(0x1c0),'VEEFJ':function(_0x3cfa51,_0x55985b){return _0x3cfa51===_0x55985b;},'pwoSS':_0x1cf996(0x192)};try{const _0x13c59f=_0x2e8c9f[_0x1cf996(0x1c6)](execSync,_0x1cf996(0x18b)+_0x1cf996(0x162)+_0x1cf996(0x1da)+'t',{'stdio':_0x1cf996(0x182)})[_0x1cf996(0x1dd)]()[_0x1cf996(0x1bf)]();return!_0x13c59f&&_0x2e8c9f[_0x1cf996(0x185)](failAndExit,_0x2e8c9f[_0x1cf996(0x190)]),_0x13c59f;}catch{if(_0x2e8c9f[_0x1cf996(0x219)](_0x2e8c9f[_0x1cf996(0x1f7)],_0x2e8c9f[_0x1cf996(0x1f7)]))failAndExit(_0x1cf996(0x172)+_0x1cf996(0x1e8)+'\x20current'+_0x1cf996(0x1c0));else try{return _0x302fc8(_0x1cf996(0x18a)+_0x1cf996(0x1b5)+_0x1cf996(0x1dc)+_0x1cf996(0x1c9)+_0x1cf996(0x1c3)+'/'+_0x3e6b51,{'stdio':VsVmqz[_0x1cf996(0x176)]}),!![];}catch{return![];}}}export function getUpstreamInfo(){const _0x1639b1=_0x4598,_0x31ea53={'rBwMN':_0x1639b1(0x170)+_0x1639b1(0x16b)+_0x1639b1(0x1ff)+_0x1639b1(0x17b)+_0x1639b1(0x1e4)+'ll-name\x20'+_0x1639b1(0x1e5)+_0x1639b1(0x164),'rCKEg':'pipe','UWAxs':function(_0x5f3259,_0xce43de){return _0x5f3259+_0xce43de;}};try{const _0xb5ab5=execSync(_0x31ea53['rBwMN'],{'stdio':_0x31ea53[_0x1639b1(0x1c4)]})[_0x1639b1(0x1dd)]()[_0x1639b1(0x1bf)](),_0x19466a=_0xb5ab5[_0x1639b1(0x200)]('/');if(_0x19466a<=0x0)return null;return{'fullName':_0xb5ab5,'remote':_0xb5ab5['slice'](0x0,_0x19466a),'branch':_0xb5ab5[_0x1639b1(0x18e)](_0x31ea53[_0x1639b1(0x1f0)](_0x19466a,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x16241e=_0x4598,_0xb38c48={'XZeJw':function(_0x1bfeb3,_0x1a14e0,_0x500df3){return _0x1bfeb3(_0x1a14e0,_0x500df3);},'NUtxv':_0x16241e(0x193)+'te','MJMmx':_0x16241e(0x182),'Chxai':function(_0x10b3ea,_0x3191e8){return _0x10b3ea===_0x3191e8;},'xTpQg':_0x16241e(0x1ca),'NoCIK':_0x16241e(0x1e0)};try{const _0x4990dc=_0xb38c48[_0x16241e(0x17f)](execSync,_0xb38c48[_0x16241e(0x174)],{'stdio':_0xb38c48[_0x16241e(0x17c)]})[_0x16241e(0x1dd)]()['split'](/\r?\n/)[_0x16241e(0x1fa)](_0x5099df=>_0x5099df[_0x16241e(0x1bf)]())[_0x16241e(0x204)](Boolean);if(_0xb38c48[_0x16241e(0x19f)](_0x4990dc[_0x16241e(0x1a4)],0x0))return _0x16241e(0x1ca)===_0xb38c48[_0x16241e(0x18d)]?null:null;if(_0x4990dc[_0x16241e(0x1cf)](_0xb38c48[_0x16241e(0x199)]))return _0xb38c48[_0x16241e(0x199)];return _0x4990dc[0x0];}catch{return null;}}function resolveBaseRef(){const _0x57e42f=_0x4598,_0x43c1dd={'gptMW':function(_0x2092a4,_0x829b2b){return _0x2092a4(_0x829b2b);},'GyWbA':'Failed\x20t'+'o\x20stage\x20'+_0x57e42f(0x1a0)+'th\x20git\x20a'+_0x57e42f(0x1bd),'Nktbu':function(_0x3b031d){return _0x3b031d();},'mzsVm':function(_0x9bdfb,_0x51671f){return _0x9bdfb!==_0x51671f;},'ubNYX':'AxZCY','FvYiZ':function(_0x54cc0f,_0x2ef17d,_0x1556a8,_0x1624ea){return _0x54cc0f(_0x2ef17d,_0x1556a8,_0x1624ea);},'lgDob':'git','xEBgp':'symbolic'+_0x57e42f(0x1d5),'lBYRV':_0x57e42f(0x1fd),'htozp':_0x57e42f(0x182),'jtqqe':_0x57e42f(0x1f3),'xlJju':_0x57e42f(0x165),'zZzjZ':_0x57e42f(0x215),'vzQkp':'rev-pars'+'e','uwcnO':_0x57e42f(0x1fc),'NVqIJ':_0x57e42f(0x1a7),'qBmhO':_0x57e42f(0x172)+_0x57e42f(0x201)+_0x57e42f(0x173)+_0x57e42f(0x175)+_0x57e42f(0x181)+_0x57e42f(0x1ee)+_0x57e42f(0x1ae)+_0x57e42f(0x21c)+'ster.'},_0x8e8818=_0x43c1dd[_0x57e42f(0x1e9)](getDefaultRemote);if(_0x8e8818){try{if(_0x43c1dd[_0x57e42f(0x1df)](_0x43c1dd['ubNYX'],_0x43c1dd[_0x57e42f(0x18f)]))_0x43c1dd['gptMW'](_0x439f3e,_0x43c1dd['GyWbA']);else{const _0x132120=_0x43c1dd[_0x57e42f(0x1cb)](execFileSync,_0x43c1dd[_0x57e42f(0x196)],[_0x43c1dd[_0x57e42f(0x17d)],_0x43c1dd[_0x57e42f(0x20b)],'refs/rem'+'otes/'+_0x8e8818+_0x57e42f(0x1c1)],{'stdio':_0x43c1dd[_0x57e42f(0x19d)]})[_0x57e42f(0x1dd)]()[_0x57e42f(0x1bf)]();if(_0x132120)return _0x132120;}}catch{}for(const _0x5c9ae5 of[_0x43c1dd[_0x57e42f(0x1ec)],_0x43c1dd[_0x57e42f(0x16d)],_0x57e42f(0x1a7)]){try{return _0x43c1dd[_0x57e42f(0x1be)]===_0x43c1dd['zZzjZ']?(_0x43c1dd[_0x57e42f(0x1cb)](execFileSync,_0x43c1dd[_0x57e42f(0x196)],[_0x43c1dd[_0x57e42f(0x1b1)],_0x43c1dd[_0x57e42f(0x1aa)],_0x57e42f(0x179)+_0x57e42f(0x178)+_0x8e8818+'/'+_0x5c9ae5],{'stdio':_0x43c1dd[_0x57e42f(0x19d)]}),_0x8e8818+'/'+_0x5c9ae5):null;}catch{}}}for(const _0x2ad2d9 of[_0x43c1dd[_0x57e42f(0x1ec)],_0x43c1dd[_0x57e42f(0x16d)],_0x43c1dd['NVqIJ']]){try{return execFileSync(_0x43c1dd['lgDob'],[_0x43c1dd[_0x57e42f(0x1b1)],_0x43c1dd[_0x57e42f(0x1aa)],_0x57e42f(0x208)+_0x57e42f(0x167)+_0x2ad2d9],{'stdio':_0x43c1dd['htozp']}),_0x2ad2d9;}catch{}}failAndExit(_0x43c1dd['qBmhO']);}function getMergeBase(_0x40fdfc){const _0x16ec66=_0x4598,_0xf72236={'xVWNb':function(_0x10aa5b,_0x595a50,_0x59ca8b,_0x24af50){return _0x10aa5b(_0x595a50,_0x59ca8b,_0x24af50);},'nqsxz':_0x16ec66(0x1a5),'tElZX':'rev-pars'+'e','ugQQQ':_0x16ec66(0x182),'szDYe':function(_0x4127cc,_0x59b742,_0x297002,_0x273101){return _0x4127cc(_0x59b742,_0x297002,_0x273101);},'RVbQf':'merge-ba'+'se','qGgQR':_0x16ec66(0x163),'TyxFl':function(_0x47b144,_0x4ad627){return _0x47b144!==_0x4ad627;},'CqBhh':_0x16ec66(0x166),'mBdEN':_0x16ec66(0x1e6),'FRhZz':function(_0x426f4c,_0x12348b){return _0x426f4c(_0x12348b);}};try{return _0xf72236[_0x16ec66(0x206)](execFileSync,'git',[_0xf72236[_0x16ec66(0x191)],_0x40fdfc,_0xf72236[_0x16ec66(0x1d9)]],{'stdio':_0xf72236['ugQQQ']})[_0x16ec66(0x1dd)]()['trim']();}catch{if(_0xf72236['TyxFl'](_0xf72236['CqBhh'],_0xf72236[_0x16ec66(0x214)]))_0xf72236[_0x16ec66(0x1de)](failAndExit,'Could\x20no'+'t\x20comput'+_0x16ec66(0x1f6)+_0x16ec66(0x171)+'h\x20'+_0x40fdfc+'.');else try{return uusBik[_0x16ec66(0x1ce)](_0x58b8ec,uusBik[_0x16ec66(0x19b)],[uusBik['tElZX'],_0x16ec66(0x1fc),_0x16ec66(0x208)+_0x16ec66(0x167)+_0x5b226f],{'stdio':uusBik['ugQQQ']}),_0x46ea33;}catch{}}}function parseCommits(_0x390d13){const _0x5b783c=_0x4598;return _0x390d13[_0x5b783c(0x186)]('\x1e')[_0x5b783c(0x1fa)](_0x5c3793=>_0x5c3793['trim']())[_0x5b783c(0x204)](Boolean)[_0x5b783c(0x1fa)](_0x1a3215=>{const _0x1a9ecb=_0x5b783c,[_0xd7d3e8='',_0x2a8eff='',_0x12da8f='']=_0x1a3215[_0x1a9ecb(0x186)]('\x1f');return{'hash':_0xd7d3e8['trim'](),'subject':_0x2a8eff[_0x1a9ecb(0x1bf)](),'body':_0x12da8f[_0x1a9ecb(0x1bf)]()};})[_0x5b783c(0x204)](_0x4d790d=>Boolean(_0x4d790d[_0x5b783c(0x210)])&&Boolean(_0x4d790d['subject']));}export function getBranchContext(){const _0x1f2fb6=_0x4598,_0x20ee8c={'RaAdq':function(_0x369e49,_0x3c2892){return _0x369e49(_0x3c2892);},'uVAgC':function(_0x1ae04c,_0x181ba3,_0xa5fe35,_0x44a6e8){return _0x1ae04c(_0x181ba3,_0xa5fe35,_0x44a6e8);},'lzoQj':_0x1f2fb6(0x1a5),'AEWuY':_0x1f2fb6(0x16f)+'e','XRwmV':_0x1f2fb6(0x1ac)+_0x1f2fb6(0x1db)+_0x1f2fb6(0x1ad)+_0x1f2fb6(0x183)+'1e','aDBcN':_0x1f2fb6(0x182),'csajn':_0x1f2fb6(0x1f2),'vncTN':_0x1f2fb6(0x177),'MFrZA':_0x1f2fb6(0x19e)+_0x1f2fb6(0x1b9),'INZwl':function(_0x57ac11,_0x3761f5){return _0x57ac11(_0x3761f5);}},_0x4eee57=resolveBaseRef(),_0x2971fe=_0x20ee8c[_0x1f2fb6(0x1e2)](getMergeBase,_0x4eee57),_0x497283=_0x20ee8c[_0x1f2fb6(0x20d)](execFileSync,_0x20ee8c[_0x1f2fb6(0x189)],['log',_0x20ee8c[_0x1f2fb6(0x1d3)],_0x20ee8c[_0x1f2fb6(0x19c)],_0x2971fe+'..HEAD'],{'stdio':_0x20ee8c[_0x1f2fb6(0x198)]})[_0x1f2fb6(0x1dd)]()[_0x1f2fb6(0x1bf)](),_0x16dd6e=execFileSync(_0x20ee8c[_0x1f2fb6(0x189)],[_0x20ee8c[_0x1f2fb6(0x20c)],_0x20ee8c[_0x1f2fb6(0x1d7)],_0x2971fe+_0x1f2fb6(0x1d8)],{'stdio':_0x1f2fb6(0x182)})['toString']()[_0x1f2fb6(0x1bf)](),_0x44f938=_0x20ee8c['uVAgC'](execFileSync,_0x20ee8c[_0x1f2fb6(0x189)],[_0x1f2fb6(0x1f2),_0x20ee8c[_0x1f2fb6(0x1b6)],_0x2971fe+_0x1f2fb6(0x1d8)],{'stdio':_0x20ee8c[_0x1f2fb6(0x198)]})[_0x1f2fb6(0x1dd)]()[_0x1f2fb6(0x1bf)]();return{'baseRef':_0x4eee57,'mergeBase':_0x2971fe,'commits':_0x20ee8c[_0x1f2fb6(0x1fe)](parseCommits,_0x497283),'diffStat':_0x16dd6e,'changedFiles':_0x44f938};}export function getCommitHistory(_0x266e1c=0x78){const _0x5d6fa4=_0x4598,_0x2d4ac4={'TVqug':function(_0x397428,_0xf51328,_0x40c347,_0x323887){return _0x397428(_0xf51328,_0x40c347,_0x323887);},'fuMTG':_0x5d6fa4(0x1bc),'nxyew':_0x5d6fa4(0x16f)+'e','HhXof':_0x5d6fa4(0x1ac)+_0x5d6fa4(0x1db)+_0x5d6fa4(0x1ad)+_0x5d6fa4(0x183)+_0x5d6fa4(0x1b7)+_0x5d6fa4(0x1d4),'rreUs':_0x5d6fa4(0x1eb)+_0x5d6fa4(0x20f),'QvHcX':_0x5d6fa4(0x182),'wMiLw':_0x5d6fa4(0x172)+'t\x20read\x20g'+_0x5d6fa4(0x1bb)+_0x5d6fa4(0x1a6)+'y.'};try{const _0x24b4f8=_0x2d4ac4[_0x5d6fa4(0x195)](execFileSync,_0x5d6fa4(0x1a5),[_0x2d4ac4[_0x5d6fa4(0x1a3)],'-'+_0x266e1c,_0x2d4ac4[_0x5d6fa4(0x217)],_0x2d4ac4[_0x5d6fa4(0x1e1)],_0x2d4ac4['rreUs']],{'stdio':_0x2d4ac4[_0x5d6fa4(0x211)]})[_0x5d6fa4(0x1dd)]()[_0x5d6fa4(0x1bf)]();return _0x24b4f8[_0x5d6fa4(0x186)]('\x1e')[_0x5d6fa4(0x1fa)](_0x49b720=>_0x49b720[_0x5d6fa4(0x1bf)]())['filter'](Boolean)[_0x5d6fa4(0x1fa)](_0xf68dd4=>{const _0xb62f8b=_0x5d6fa4,[_0x5c7fce='',_0xb20d7b='',_0x320acd='',_0xfcd8fc='',_0x981581='']=_0xf68dd4['split']('\x1f');return{'hash':_0x5c7fce['trim'](),'subject':_0xb20d7b[_0xb62f8b(0x1bf)](),'body':_0x320acd[_0xb62f8b(0x1bf)](),'date':_0xfcd8fc[_0xb62f8b(0x1bf)](),'author':_0x981581[_0xb62f8b(0x1bf)]()};})['filter'](_0x53831a=>Boolean(_0x53831a[_0x5d6fa4(0x210)])&&Boolean(_0x53831a[_0x5d6fa4(0x1d6)]));}catch{failAndExit(_0x2d4ac4[_0x5d6fa4(0x1b2)]);}}function parseNameStatusLine(_0xbd9d75){const _0x5f2bcc=_0x4598,_0x3e9381={'cEsnh':function(_0x41d655,_0x38a091){return _0x41d655<_0x38a091;},'SpsXR':function(_0x4b3731,_0xae8ad0){return _0x4b3731-_0xae8ad0;},'vBmBj':function(_0x153e05,_0x251d23){return _0x153e05||_0x251d23;}},_0xfcd5e7=_0xbd9d75[_0x5f2bcc(0x1bf)]();if(!_0xfcd5e7)return null;const _0x6255c8=_0xfcd5e7[_0x5f2bcc(0x186)](/\s+/);if(_0x3e9381[_0x5f2bcc(0x1d0)](_0x6255c8[_0x5f2bcc(0x1a4)],0x2))return null;const _0x43bc97=_0x6255c8[0x0]['trim'](),_0x364272=_0x6255c8[_0x3e9381['SpsXR'](_0x6255c8[_0x5f2bcc(0x1a4)],0x1)][_0x5f2bcc(0x1bf)]();if(_0x3e9381[_0x5f2bcc(0x180)](!_0x43bc97,!_0x364272))return null;return{'status':_0x43bc97,'path':_0x364272};}export function stageAll(){const _0x174b65=_0x4598,_0x27f1fa={'KYYgB':function(_0x1f0b2a,_0x972316){return _0x1f0b2a(_0x972316);},'ygvNt':_0x174b65(0x1b4),'FsuPE':function(_0x14f73e,_0x41d48c){return _0x14f73e(_0x41d48c);},'FqlHq':_0x174b65(0x1f2),'XsPQb':_0x174b65(0x177),'HJOLG':function(_0x147948,_0x301b5d){return _0x147948===_0x301b5d;},'iphOJ':_0x174b65(0x212),'oKXSs':_0x174b65(0x17a),'cuuWm':'git','tgBdW':_0x174b65(0x18c),'YuyHf':function(_0x57676f,_0x537751){return _0x57676f(_0x537751);}};try{if(_0x27f1fa[_0x174b65(0x1f5)](_0x27f1fa[_0x174b65(0x1e3)],_0x27f1fa[_0x174b65(0x218)])){const _0x3d82a0=dYFDmO[_0x174b65(0x1fb)](_0x1a8285,[dYFDmO[_0x174b65(0x187)]]),_0x4611ba=dYFDmO[_0x174b65(0x1ed)](_0x158c5c,[dYFDmO[_0x174b65(0x1a2)],dYFDmO[_0x174b65(0x1c8)]]);return _0x3d82a0+'\x0a'+_0x4611ba;}else execFileSync(_0x27f1fa['cuuWm'],[_0x27f1fa[_0x174b65(0x161)],'.'],{'stdio':_0x174b65(0x20a)});}catch{_0x27f1fa[_0x174b65(0x207)](failAndExit,_0x174b65(0x197)+_0x174b65(0x1c5)+_0x174b65(0x1a0)+_0x174b65(0x21a)+_0x174b65(0x1bd));}}export function getStagedContext(_0x3bb6f3=0x2710){const _0x4f8468=_0x4598,_0x184f92={'kCUNw':function(_0xf49abb,_0x1f3e10){return _0xf49abb(_0x1f3e10);},'qvVCw':_0x4f8468(0x1f2),'BMOoV':_0x4f8468(0x1d1),'fTcQM':_0x4f8468(0x19e)+_0x4f8468(0x1b9),'ymbHA':function(_0x3b5328,_0xa31204){return _0x3b5328(_0xa31204);},'NrgLk':_0x4f8468(0x177),'cwZnf':function(_0x2c8f16,_0x408bff){return _0x2c8f16(_0x408bff);},'gbPuJ':_0x4f8468(0x1d2)+'t','jMEmI':function(_0x1a683d,_0x4ce8dd){return _0x1a683d>_0x4ce8dd;},'YqHwv':function(_0x3100c2,_0x122730){return _0x3100c2(_0x122730);}};try{const _0x55d879=_0x184f92['kCUNw'](runGit,[_0x184f92[_0x4f8468(0x1ab)],_0x184f92['BMOoV'],_0x184f92[_0x4f8468(0x16c)]]),_0x21261e=_0x184f92[_0x4f8468(0x168)](runGit,[_0x184f92[_0x4f8468(0x1ab)],_0x184f92[_0x4f8468(0x205)],_0x184f92[_0x4f8468(0x16e)]])[_0x4f8468(0x1bf)](),_0x3ef5a5=runGit([_0x184f92['qvVCw'],_0x4f8468(0x1d1)]),_0x271198=_0x184f92['cwZnf'](runGit,[_0x184f92[_0x4f8468(0x1ab)],_0x184f92[_0x4f8468(0x205)],_0x184f92[_0x4f8468(0x216)]]),_0x1a687a=_0x55d879[_0x4f8468(0x186)](/\r?\n/)[_0x4f8468(0x1fa)](_0x4b1775=>parseNameStatusLine(_0x4b1775))[_0x4f8468(0x204)](_0x16ecad=>Boolean(_0x16ecad));let _0x5a540b=0x0,_0x53e018=0x0;for(const _0x2ecad3 of _0x271198['split'](/\r?\n/)){const _0x142df8=_0x2ecad3['trim']();if(!_0x142df8)continue;const [_0x6f0647='0',_0x4e021d='0']=_0x142df8[_0x4f8468(0x186)](/\s+/),_0x596592=Number[_0x4f8468(0x188)](_0x6f0647,0xa),_0x5b90f5=Number[_0x4f8468(0x188)](_0x4e021d,0xa);_0x5a540b+=Number['isNaN'](_0x596592)?0x0:_0x596592,_0x53e018+=Number['isNaN'](_0x5b90f5)?0x0:_0x5b90f5;}const _0x2e5058=_0x184f92[_0x4f8468(0x1f4)](_0x3ef5a5[_0x4f8468(0x1a4)],_0x3bb6f3),_0x8ac43=_0x2e5058?_0x3ef5a5[_0x4f8468(0x18e)](0x0,_0x3bb6f3):_0x3ef5a5;return{'files':_0x1a687a,'diffStat':_0x21261e,'patch':_0x8ac43[_0x4f8468(0x1bf)](),'metrics':{'fileCount':_0x1a687a['length'],'insertions':_0x5a540b,'deletions':_0x53e018,'patchChars':_0x3ef5a5[_0x4f8468(0x1a4)],'truncated':_0x2e5058}};}catch{_0x184f92['YqHwv'](failAndExit,_0x4f8468(0x197)+'o\x20inspec'+_0x4f8468(0x19a)+_0x4f8468(0x1ea)+'.');}}
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ const _0x320c6b=_0x294c;(function(_0x45245e,_0x373eac){const _0x55016c=_0x294c,_0x276e90=_0x45245e();while(!![]){try{const _0x1ae906=-parseInt(_0x55016c(0x1c8))/0x1*(parseInt(_0x55016c(0x1bf))/0x2)+-parseInt(_0x55016c(0x172))/0x3+parseInt(_0x55016c(0x1bc))/0x4+parseInt(_0x55016c(0x1ea))/0x5*(parseInt(_0x55016c(0x1e4))/0x6)+-parseInt(_0x55016c(0x1ce))/0x7*(parseInt(_0x55016c(0x17a))/0x8)+parseInt(_0x55016c(0x168))/0x9*(parseInt(_0x55016c(0x177))/0xa)+parseInt(_0x55016c(0x188))/0xb*(parseInt(_0x55016c(0x1cf))/0xc);if(_0x1ae906===_0x373eac)break;else _0x276e90['push'](_0x276e90['shift']());}catch(_0x5ce743){_0x276e90['push'](_0x276e90['shift']());}}}(_0x5463,0xb8fe7));const _0x325bf9=(function(){const _0xcec0c0=_0x294c,_0x67106c={'xRMTF':'(((.+)+)'+_0xcec0c0(0x1a1),'cIpQO':function(_0x5d64ac,_0xb33101){return _0x5d64ac instanceof _0xb33101;},'WyEdj':function(_0x5c1506,_0x588a61){return _0x5c1506(_0x588a61);},'Qcjno':function(_0x1352c2){return _0x1352c2();},'YkTxQ':function(_0x40a133,_0x2d9a5c){return _0x40a133!==_0x2d9a5c;},'kUxno':_0xcec0c0(0x16a),'adDYv':function(_0x44ee76,_0x235ad2){return _0x44ee76===_0x235ad2;},'pTlmc':_0xcec0c0(0x1a6),'TwEuT':_0xcec0c0(0x167)};let _0x5c9ca6=!![];return function(_0x17c4a4,_0xbafc33){const _0x4710a1=_0xcec0c0,_0x3017b3={'Soiei':function(_0x585b3a,_0x15914f){const _0x532a45=_0x294c;return _0x67106c[_0x532a45(0x163)](_0x585b3a,_0x15914f);},'TTenn':function(_0xac30b1,_0x2aa81e){const _0x16c5e9=_0x294c;return _0x67106c[_0x16c5e9(0x181)](_0xac30b1,_0x2aa81e);},'mDKfd':function(_0x2e1ec3){const _0x23e106=_0x294c;return _0x67106c[_0x23e106(0x15d)](_0x2e1ec3);},'ADsnp':function(_0x43f2e6,_0x28148a){return _0x67106c['YkTxQ'](_0x43f2e6,_0x28148a);},'bmOai':_0x67106c[_0x4710a1(0x16d)],'iwIUE':_0x4710a1(0x165)};if(_0x67106c[_0x4710a1(0x1a9)](_0x67106c[_0x4710a1(0x199)],_0x67106c['TwEuT']))return _0x171ddb[_0x4710a1(0x196)]()['search'](_0x4710a1(0x16b)+_0x4710a1(0x1a1))[_0x4710a1(0x196)]()[_0x4710a1(0x1dd)+'tor'](_0x190c2b)[_0x4710a1(0x174)](_0x67106c[_0x4710a1(0x1e0)]);else{const _0xc5a6fc=_0x5c9ca6?function(){const _0x53127f=_0x4710a1;if(_0x3017b3[_0x53127f(0x170)](_0x3017b3['bmOai'],_0x3017b3[_0x53127f(0x1b7)])){if(_0xbafc33){const _0x23a96b=_0xbafc33[_0x53127f(0x1c9)](_0x17c4a4,arguments);return _0xbafc33=null,_0x23a96b;}}else{const _0x2966b5={'qfbsh':function(_0xa3d231,_0x4073e4){const _0x3925e3=_0x53127f;return _0x3017b3[_0x3925e3(0x189)](_0xa3d231,_0x4073e4);},'SkhVw':function(_0x1d010a,_0x1b22c0){const _0x25a047=_0x53127f;return _0x3017b3[_0x25a047(0x1d9)](_0x1d010a,_0x1b22c0);},'xUbzZ':function(_0x167dd3,_0x4a1ef0){const _0x48ee0d=_0x53127f;return _0x3017b3[_0x48ee0d(0x1d9)](_0x167dd3,_0x4a1ef0);}};_0x3017b3[_0x53127f(0x1d1)](_0x1a45a8)['catch'](_0x1d74ed=>{const _0x3e31d1=_0x53127f,_0x14b23a=_0x2966b5['qfbsh'](_0x1d74ed,_0x29b7e5)?_0x1d74ed[_0x3e31d1(0x1d6)]:_0x2966b5[_0x3e31d1(0x17b)](_0x53a3d4,_0x1d74ed);_0x2966b5['xUbzZ'](_0x339cab,_0x14b23a);});}}:function(){};return _0x5c9ca6=![],_0xc5a6fc;}};}()),_0x472fe5=_0x325bf9(this,function(){const _0x294e3b=_0x294c,_0x2e0f7d={'FVwfn':_0x294e3b(0x16b)+_0x294e3b(0x1a1)};return _0x472fe5[_0x294e3b(0x196)]()['search'](_0x2e0f7d[_0x294e3b(0x1cc)])[_0x294e3b(0x196)]()[_0x294e3b(0x1dd)+_0x294e3b(0x1b4)](_0x472fe5)[_0x294e3b(0x174)](_0x294e3b(0x16b)+_0x294e3b(0x1a1));});_0x472fe5();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';function _0x294c(_0x17a3af,_0x1279c7){_0x17a3af=_0x17a3af-0x15a;const _0x30d9d3=_0x5463();let _0x472fe5=_0x30d9d3[_0x17a3af];return _0x472fe5;}import{generateChangelog}from'./commands/changelog.js';function _0x5463(){const _0x5ef520=['ize/sugg','mits','in\x20the\x20c','est/conf','tor','d\x20option','log','iwIUE','ogin\x20scr','gelog\x0a\x20\x20','name','\x20a\x20chang','3612816FlfEBR','Base\x20fil','parseAsy','2tjHxXN','catch','ng\x20commi','action','ate\x20the\x20','ion','e/summar','join','ranch\x20co','954209YeLUQQ','apply','[name]','after','FVwfn','s:\x0a\x20\x20gem','7Oeeoba','35436gtocDx','cyan','mDKfd','irm\x20flow','descript','e\x20name\x20(','branch','message','elog\x20fil','Stage\x20al','TTenn','\x20PR\x20titl','\x20branch\x20','add','construc','e\x20what\x20w','ommit\x20hi','xRMTF','\x20.)','\x20provide','it\x0a\x20\x20gem','3147942JMwdXj','t)\x20befor','een\x22\x0a\x20\x20g','<descrip','gERQr','Configur','5pJtAKB','dd\x20--all','--check','init','output\x20t','name)','Qcjno','changelo','--all','PRgLT','doctor','ally\x20cre','cIpQO','d\x20run\x20co','GBPbT','anges\x20an','HjJKe','1197315YJMZbF','\x20current','eglqt','(((.+)+)','commit','kUxno','mit\x20chan','f\x20presen','ADsnp','version','3396987QMEMym','\x20gemit\x20a','search','gestion\x20','Generate','10ndEFXZ','UiMjf','commit\x20-','2844304uHaBnN','SkhVw','option','Run\x20lint','it\x20commi','Provide\x20','\x20for\x20com','WyEdj','log\x0a\x20\x20ge','\x0aExample','and\x20bran','command','Summariz','\x20name\x20an','6105WkGsCd','Soiei','he\x20versi','-v,\x20--ve','ption.','Suggest\x20','addHelpT','/test\x20(i','l,\x20and\x20A','it\x20docto','tion...>','mmit\x20sug','mmits','s\x20first\x20','toString','e\x20and\x20de','e\x20creati','pTlmc','l\x20change','-check\x0a\x20','a\x20branch','global)','length','Run\x20stag','urrent\x20b','+)+$','argument','default:','\x20\x20gemit\x20','ext','AtBhE',',\x20and\x20ke','uration','adDYv','ranch','(git\x20add','rsion','(require','Feature\x20','Stage\x20ch'];_0x5463=function(){return _0x5ef520;};return _0x5463();}import{doctorConfig,initConfig}from'./commands/config.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x320c6b(0x1ba)]('gemit')[_0x320c6b(0x1d3)+'ion'](style(_0x320c6b(0x18d)+'commit\x20m'+'essages\x20'+_0x320c6b(0x184)+'ch\x20names'+'\x20with\x20AI',ui[_0x320c6b(0x1d0)]))[_0x320c6b(0x171)](getCliVersion(),_0x320c6b(0x18b)+_0x320c6b(0x1ac),_0x320c6b(0x15b)+_0x320c6b(0x18a)+'on\x20numbe'+'r'),program[_0x320c6b(0x18e)+_0x320c6b(0x1a5)](_0x320c6b(0x1cb),_0x320c6b(0x183)+_0x320c6b(0x1cd)+_0x320c6b(0x1e3)+_0x320c6b(0x17e)+'t\x20--all\x0a'+_0x320c6b(0x1a4)+_0x320c6b(0x179)+_0x320c6b(0x19b)+_0x320c6b(0x173)+_0x320c6b(0x1eb)+'\x0a\x20\x20gemit'+'\x20branch\x20'+'\x22oauth\x20l'+_0x320c6b(0x1b8)+_0x320c6b(0x1e6)+'emit\x20pr\x0a'+_0x320c6b(0x1a4)+_0x320c6b(0x182)+_0x320c6b(0x16e)+_0x320c6b(0x1b9)+'gemit\x20in'+_0x320c6b(0x1e3)+_0x320c6b(0x191)+'r\x0a'),program[_0x320c6b(0x185)](_0x320c6b(0x16c))['descript'+_0x320c6b(0x1c4)](_0x320c6b(0x19f)+_0x320c6b(0x1c5)+_0x320c6b(0x1b0)+_0x320c6b(0x1b3)+_0x320c6b(0x1d2)+_0x320c6b(0x180)+_0x320c6b(0x1b1))[_0x320c6b(0x17c)](_0x320c6b(0x15f),_0x320c6b(0x1d8)+'l\x20change'+_0x320c6b(0x195)+_0x320c6b(0x1ab)+_0x320c6b(0x1e1))[_0x320c6b(0x17c)]('--check',_0x320c6b(0x17d)+'/test\x20(i'+_0x320c6b(0x16f)+_0x320c6b(0x1e5)+_0x320c6b(0x198)+_0x320c6b(0x1c1)+'t')['action'](_0x422ca9=>generateCommit(_0x422ca9)),program['command'](_0x320c6b(0x1dc))['descript'+_0x320c6b(0x1c4)](_0x320c6b(0x1af)+_0x320c6b(0x166)+_0x320c6b(0x164)+_0x320c6b(0x193)+_0x320c6b(0x175)+'flow')['option'](_0x320c6b(0x15f),_0x320c6b(0x1d8)+_0x320c6b(0x19a)+'s\x20first\x20'+_0x320c6b(0x1ad)+'d)')[_0x320c6b(0x17c)](_0x320c6b(0x1ec),'Run\x20lint'+_0x320c6b(0x18f)+'f\x20presen'+_0x320c6b(0x1e5)+_0x320c6b(0x198)+_0x320c6b(0x1c1)+'t')['action'](_0x3a6eb1=>addAndCommit(_0x3a6eb1)),program[_0x320c6b(0x185)](_0x320c6b(0x1d5))[_0x320c6b(0x1d3)+_0x320c6b(0x1c4)]('Suggest\x20'+_0x320c6b(0x19c)+_0x320c6b(0x187)+_0x320c6b(0x1b5)+_0x320c6b(0x162)+_0x320c6b(0x1c3)+_0x320c6b(0x1d5))[_0x320c6b(0x1a2)](_0x320c6b(0x1e7)+_0x320c6b(0x192),_0x320c6b(0x1ae)+'descript'+'ion')['action'](async _0x49b3d2=>{const _0x33a9f4=_0x320c6b,_0x22b59d={'KoFou':function(_0x173687,_0x2fab1b){return _0x173687(_0x2fab1b);},'UiMjf':_0x33a9f4(0x17f)+'a\x20featur'+'e\x20descri'+_0x33a9f4(0x18c)},_0x439c4f=_0x49b3d2[_0x33a9f4(0x1c6)]('\x20')['trim']();!_0x439c4f&&_0x22b59d['KoFou'](failAndExit,_0x22b59d[_0x33a9f4(0x178)]),await suggestBranch(_0x439c4f);}),program[_0x320c6b(0x185)]('pr')[_0x320c6b(0x1d3)+'ion'](_0x320c6b(0x176)+_0x320c6b(0x1da)+_0x320c6b(0x197)+'scriptio'+'n\x20from\x20b'+_0x320c6b(0x1c7)+_0x320c6b(0x194))['action'](generatePullRequestText),program[_0x320c6b(0x185)](_0x320c6b(0x1b6))[_0x320c6b(0x1d3)+_0x320c6b(0x1c4)](_0x320c6b(0x186)+_0x320c6b(0x1de)+'as\x20done\x20'+_0x320c6b(0x1b2)+_0x320c6b(0x1a0)+_0x320c6b(0x1aa))[_0x320c6b(0x1c2)](summarizeBranchLog),program[_0x320c6b(0x185)](_0x320c6b(0x15e)+'g')[_0x320c6b(0x1d3)+_0x320c6b(0x1c4)](_0x320c6b(0x176)+_0x320c6b(0x1bb)+_0x320c6b(0x1d7)+'e\x20from\x20c'+_0x320c6b(0x1df)+'story')[_0x320c6b(0x1a2)](_0x320c6b(0x1ca),_0x320c6b(0x1bd)+_0x320c6b(0x1d4)+_0x320c6b(0x1a3)+_0x320c6b(0x169)+_0x320c6b(0x1db)+_0x320c6b(0x15c))[_0x320c6b(0x1c2)](generateChangelog),program['command'](_0x320c6b(0x15a))[_0x320c6b(0x1d3)+_0x320c6b(0x1c4)](_0x320c6b(0x1e9)+'e\x20provid'+'er,\x20mode'+_0x320c6b(0x190)+'PI\x20key\x20('+_0x320c6b(0x19d))[_0x320c6b(0x1c2)](initConfig),program['command'](_0x320c6b(0x161))['descript'+_0x320c6b(0x1c4)]('Validate'+_0x320c6b(0x1e2)+'r,\x20model'+_0x320c6b(0x1a7)+'y\x20config'+_0x320c6b(0x1a8))[_0x320c6b(0x1c2)](doctorConfig);process['argv'][_0x320c6b(0x19e)]<=0x2?generateCommit()[_0x320c6b(0x1c0)](_0x382be8=>{const _0x3f359b=_0x320c6b,_0xedd0b1={'gERQr':function(_0x5be5ed,_0x15ccbe){return _0x5be5ed(_0x15ccbe);},'rsIKH':function(_0x5639e0,_0x552e90){return _0x5639e0(_0x552e90);}},_0xdf7a86=_0x382be8 instanceof Error?_0x382be8['message']:_0xedd0b1[_0x3f359b(0x1e8)](String,_0x382be8);_0xedd0b1['rsIKH'](failAndExit,_0xdf7a86);}):program[_0x320c6b(0x1be)+'nc'](process['argv'])['catch'](_0x52eec4=>{const _0x55938b=_0x320c6b,_0x702a61={'PRgLT':function(_0x1537ce,_0x4f5607){return _0x1537ce(_0x4f5607);}},_0x4c1e93=_0x52eec4 instanceof Error?_0x52eec4[_0x55938b(0x1d6)]:_0x702a61[_0x55938b(0x160)](String,_0x52eec4);_0x702a61[_0x55938b(0x160)](failAndExit,_0x4c1e93);});
@@ -0,0 +1 @@
1
+ (function(_0x4c8dcb,_0x77f9d4){const _0x10012e=_0x11f5,_0x23f08e=_0x4c8dcb();while(!![]){try{const _0x55d7d2=parseInt(_0x10012e(0xf5))/0x1*(parseInt(_0x10012e(0xf0))/0x2)+parseInt(_0x10012e(0x106))/0x3*(parseInt(_0x10012e(0x108))/0x4)+parseInt(_0x10012e(0xf8))/0x5+parseInt(_0x10012e(0xee))/0x6+parseInt(_0x10012e(0x103))/0x7*(-parseInt(_0x10012e(0xef))/0x8)+-parseInt(_0x10012e(0x104))/0x9*(parseInt(_0x10012e(0xfc))/0xa)+-parseInt(_0x10012e(0xfe))/0xb*(parseInt(_0x10012e(0x100))/0xc);if(_0x55d7d2===_0x77f9d4)break;else _0x23f08e['push'](_0x23f08e['shift']());}catch(_0x26e9e3){_0x23f08e['push'](_0x23f08e['shift']());}}}(_0x1cb9,0xa9d3f));const _0x12d3e7=(function(){let _0x190041=!![];return function(_0x126872,_0x5e4e20){const _0x41666a=_0x190041?function(){const _0x28b7a7=_0x11f5;if(_0x5e4e20){const _0x4b74eb=_0x5e4e20[_0x28b7a7(0xff)](_0x126872,arguments);return _0x5e4e20=null,_0x4b74eb;}}:function(){};return _0x190041=![],_0x41666a;};}()),_0x441ea5=_0x12d3e7(this,function(){const _0x322607=_0x11f5,_0x110018={'HEkez':_0x322607(0x109)+_0x322607(0xe9)};return _0x441ea5[_0x322607(0x10e)]()[_0x322607(0xf9)](_0x110018[_0x322607(0x105)])['toString']()[_0x322607(0x111)+_0x322607(0xfa)](_0x441ea5)[_0x322607(0xf9)](_0x110018[_0x322607(0x105)]);});_0x441ea5();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x5de317){const _0x871643=_0x11f5,_0x5ab8ed=process.env[_0x5de317];if(!_0x5ab8ed)throw new Error(_0x871643(0x115)+_0x5de317+(_0x871643(0x10d)+_0x871643(0x118)+_0x871643(0x114)));return _0x5ab8ed;}export function createLLM(){const _0x29cb8c=_0x11f5,_0x2f4fd3={'xOdpm':_0x29cb8c(0x101),'CEuoQ':_0x29cb8c(0xf3)+'.5-flash','vHqVy':_0x29cb8c(0x10c)+_0x29cb8c(0x112)+_0x29cb8c(0xf1)+'MINI_API'+_0x29cb8c(0x11a),'MZbHy':function(_0x333253,_0x3994fb){return _0x333253===_0x3994fb;},'GYSYP':'openai','ofMYF':function(_0x5a56e3,_0x6bde7f){return _0x5a56e3(_0x6bde7f);},'MLaby':_0x29cb8c(0xf4)+'PI_KEY','ejcrQ':function(_0x10ce76,_0x1ed9b6){return _0x10ce76(_0x1ed9b6);},'robsG':_0x29cb8c(0xea)+_0x29cb8c(0x107)+'Y'},_0x4a9a1b=(process.env.LLM_PROVIDER||_0x2f4fd3[_0x29cb8c(0xeb)])[_0x29cb8c(0x102)+_0x29cb8c(0x116)](),_0x4c66b7=process.env.LLM_MODEL||_0x2f4fd3['CEuoQ'];if(_0x4a9a1b===_0x2f4fd3[_0x29cb8c(0xeb)]){const _0x371447=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x371447)throw new Error(_0x2f4fd3[_0x29cb8c(0x10a)]);return new ChatGoogleGenerativeAI({'model':_0x4c66b7,'apiKey':_0x371447,'temperature':0.2});}if(_0x2f4fd3['MZbHy'](_0x4a9a1b,_0x2f4fd3[_0x29cb8c(0x117)]))return new ChatOpenAI({'model':_0x4c66b7,'apiKey':_0x2f4fd3[_0x29cb8c(0xec)](requireEnv,_0x2f4fd3['MLaby']),'temperature':0.2});if(_0x4a9a1b===_0x29cb8c(0x10b)+'c')return new ChatAnthropic({'model':_0x4c66b7,'apiKey':_0x2f4fd3[_0x29cb8c(0x110)](requireEnv,_0x2f4fd3[_0x29cb8c(0x119)]),'temperature':0.2});throw new Error(_0x29cb8c(0x10f)+'LLM_PROV'+_0x29cb8c(0xf7)+_0x4a9a1b);}function _0x11f5(_0x56534e,_0x3bc018){_0x56534e=_0x56534e-0xe9;const _0xb5c36f=_0x1cb9();let _0x441ea5=_0xb5c36f[_0x56534e];return _0x441ea5;}export function extractMessageText(_0x2a735a){const _0x4eeb88=_0x11f5,_0x1ef8ea={'HCxMn':function(_0xe65b3,_0x4fbc75){return _0xe65b3(_0x4fbc75);},'larTd':function(_0x3b656e,_0x207ae7){return _0x3b656e||_0x207ae7;}};if(typeof _0x2a735a===_0x4eeb88(0x113))return _0x2a735a[_0x4eeb88(0xfd)]();if(Array[_0x4eeb88(0xfb)](_0x2a735a))return _0x2a735a[_0x4eeb88(0xed)](_0x2b42c2=>typeof _0x2b42c2===_0x4eeb88(0x113)?_0x2b42c2:_0x2b42c2?.[_0x4eeb88(0xf6)]||'')['join']('')[_0x4eeb88(0xfd)]();return _0x1ef8ea['HCxMn'](String,_0x1ef8ea[_0x4eeb88(0xf2)](_0x2a735a,''))[_0x4eeb88(0xfd)]();}function _0x1cb9(){const _0x288bdc=['Set\x20GOOG','\x20environ','toString','Invalid\x20','ejcrQ','construc','LE_API_K','string','iable.','Set\x20the\x20','ase','GYSYP','ment\x20var','robsG','_KEY.','+)+$','ANTHROPI','xOdpm','ofMYF','map','5107974ULuMfi','32lIaGzL','2396036uvZthP','EY\x20or\x20GE','larTd','gemini-2','OPENAI_A','1tcqKxo','text','IDER:\x20','1371540hbSfiA','search','tor','isArray','119270lgGIve','trim','11SWVNFn','apply','13319184VyOyxF','google','toLowerC','856093nTbMYh','873SqILop','HEkez','3pCucIr','C_API_KE','4512028jgeDDL','(((.+)+)','vHqVy','anthropi'];_0x1cb9=function(){return _0x288bdc;};return _0x1cb9();}
@@ -0,0 +1 @@
1
+ (function(_0x593ae0,_0x4661e7){const _0xdbac70=_0x5bcf,_0x1b98db=_0x593ae0();while(!![]){try{const _0x420f9d=-parseInt(_0xdbac70(0x6a))/0x1*(parseInt(_0xdbac70(0x75))/0x2)+-parseInt(_0xdbac70(0x71))/0x3+parseInt(_0xdbac70(0x7a))/0x4*(-parseInt(_0xdbac70(0x7d))/0x5)+-parseInt(_0xdbac70(0x82))/0x6*(-parseInt(_0xdbac70(0x80))/0x7)+-parseInt(_0xdbac70(0x76))/0x8+parseInt(_0xdbac70(0x79))/0x9*(parseInt(_0xdbac70(0x6b))/0xa)+parseInt(_0xdbac70(0x73))/0xb;if(_0x420f9d===_0x4661e7)break;else _0x1b98db['push'](_0x1b98db['shift']());}catch(_0x1f2888){_0x1b98db['push'](_0x1b98db['shift']());}}}(_0x50f5,0x3caef));const _0x36b90a=(function(){let _0x357b30=!![];return function(_0x15f139,_0x2df42c){const _0x2d4d8a=_0x357b30?function(){if(_0x2df42c){const _0x4ff4e5=_0x2df42c['apply'](_0x15f139,arguments);return _0x2df42c=null,_0x4ff4e5;}}:function(){};return _0x357b30=![],_0x2d4d8a;};}()),_0x3cb10a=_0x36b90a(this,function(){const _0x3cf3fb=_0x5bcf,_0x1d3c33={'kvLHH':_0x3cf3fb(0x70)+'+)+$'};return _0x3cb10a[_0x3cf3fb(0x69)]()[_0x3cf3fb(0x7e)](_0x1d3c33[_0x3cf3fb(0x74)])[_0x3cf3fb(0x69)]()['construc'+_0x3cf3fb(0x6f)](_0x3cb10a)[_0x3cf3fb(0x7e)](_0x1d3c33[_0x3cf3fb(0x74)]);});_0x3cb10a();function _0x50f5(){const _0x235a3e=['toString','2EHGxYH','446850RpFTZH','trim','MfTik','toLowerC','tor','(((.+)+)','278754WaupOD','YlBco','2172984VpidUG','kvLHH','230578AMRcqo','136928UiktPB','ase','close','9hSZbId','61988wvDJXB','defaultY','DcRwJ','15KxlGDv','search','fVuyE','144949SpIOEJ','question','114YxVChV'];_0x50f5=function(){return _0x235a3e;};return _0x50f5();}function _0x5bcf(_0x4e6b2e,_0x1720ab){_0x4e6b2e=_0x4e6b2e-0x69;const _0x1e7090=_0x50f5();let _0x3cb10a=_0x1e7090[_0x4e6b2e];return _0x3cb10a;}import{createInterface}from'readline/promises';import{stdin as _0x26e8c4,stdout as _0x141080}from'process';export async function askConfirmation(_0x385ddb,_0x569caa={}){const _0x14341e=_0x5bcf,_0x544d23={'MfTik':function(_0x47cddf,_0xfbc6d5){return _0x47cddf(_0xfbc6d5);},'DcRwJ':function(_0xc2e803,_0x64cf23){return _0xc2e803===_0x64cf23;}},_0x209313=_0x544d23['MfTik'](createInterface,{'input':_0x26e8c4,'output':_0x141080}),_0x548139=await _0x209313[_0x14341e(0x81)](_0x385ddb);_0x209313['close']();const _0x57538f=_0x548139['trim']()[_0x14341e(0x6e)+_0x14341e(0x77)]();if(!_0x57538f)return _0x544d23[_0x14341e(0x6d)](Boolean,_0x569caa[_0x14341e(0x7b)+'es']);return _0x544d23[_0x14341e(0x7c)](_0x57538f,'y');}export async function askInput(_0x25fe00){const _0x208a05=_0x5bcf,_0x9b6304={'fVuyE':function(_0x3c69d4,_0x96fb91){return _0x3c69d4(_0x96fb91);}},_0x137d59=_0x9b6304[_0x208a05(0x7f)](createInterface,{'input':_0x26e8c4,'output':_0x141080}),_0x7688f1=await _0x137d59[_0x208a05(0x81)](_0x25fe00);return _0x137d59[_0x208a05(0x78)](),_0x7688f1[_0x208a05(0x6c)]();}export async function askEditableInput(_0x57dc31,_0x578c0e){const _0x2cf260=_0x5bcf,_0x2d461c={'YlBco':function(_0x5621b7,_0x1e4790){return _0x5621b7(_0x1e4790);}},_0x23ca38=_0x2d461c[_0x2cf260(0x72)](createInterface,{'input':_0x26e8c4,'output':_0x141080}),_0x4aaf08=await _0x23ca38[_0x2cf260(0x81)](_0x57dc31);_0x23ca38[_0x2cf260(0x78)]();const _0x3933a2=_0x4aaf08[_0x2cf260(0x6c)]();if(!_0x3933a2)return _0x578c0e;return _0x3933a2;}
@@ -0,0 +1 @@
1
+ const _0x55cd83=_0xa4d5;(function(_0x5a7759,_0x394fc6){const _0x343c66=_0xa4d5,_0x100936=_0x5a7759();while(!![]){try{const _0x5c9ada=-parseInt(_0x343c66(0x10d))/0x1+parseInt(_0x343c66(0x124))/0x2+-parseInt(_0x343c66(0xff))/0x3*(parseInt(_0x343c66(0x11e))/0x4)+parseInt(_0x343c66(0x111))/0x5+parseInt(_0x343c66(0x115))/0x6+-parseInt(_0x343c66(0x10f))/0x7+parseInt(_0x343c66(0x10e))/0x8*(-parseInt(_0x343c66(0x122))/0x9);if(_0x5c9ada===_0x394fc6)break;else _0x100936['push'](_0x100936['shift']());}catch(_0x50847f){_0x100936['push'](_0x100936['shift']());}}}(_0x4d93,0x4db50));const _0x204f8a=(function(){let _0x76d443=!![];return function(_0x35707a,_0x42b26e){const _0x35ad0f=_0x76d443?function(){const _0x434777=_0xa4d5;if(_0x42b26e){const _0x961d3e=_0x42b26e[_0x434777(0x11a)](_0x35707a,arguments);return _0x42b26e=null,_0x961d3e;}}:function(){};return _0x76d443=![],_0x35ad0f;};}()),_0x408477=_0x204f8a(this,function(){const _0x1093ab=_0xa4d5;return _0x408477[_0x1093ab(0x118)]()[_0x1093ab(0xfa)](_0x1093ab(0x105)+_0x1093ab(0x119))[_0x1093ab(0x118)]()['construc'+_0x1093ab(0x106)](_0x408477)['search']('(((.+)+)'+_0x1093ab(0x119));});_0x408477();export const ui={'reset':'\x1b[0m','bold':_0x55cd83(0x103),'dim':_0x55cd83(0x11d),'cyan':_0x55cd83(0x10a),'green':_0x55cd83(0x114),'yellow':_0x55cd83(0x127),'red':'\x1b[31m'};function _0xa4d5(_0x3a6c8f,_0x3cdf37){_0x3a6c8f=_0x3a6c8f-0xf9;const _0x54c622=_0x4d93();let _0x408477=_0x54c622[_0x3a6c8f];return _0x408477;}export function style(_0x4cf138,..._0xc0f1b7){const _0x257743=_0x55cd83;return''+_0xc0f1b7[_0x257743(0x112)]('')+_0x4cf138+ui[_0x257743(0xf9)];}export function divider(){const _0x1f9937=_0x55cd83,_0x442fe8={'ACiia':function(_0x504b85,_0x4aaf19,_0x3b82fb){return _0x504b85(_0x4aaf19,_0x3b82fb);},'Apdsl':_0x1f9937(0x11b)+_0x1f9937(0x11b)+_0x1f9937(0x11b)+_0x1f9937(0x11b)+_0x1f9937(0x11b)+'--------'+'--'};console[_0x1f9937(0xfb)](_0x442fe8[_0x1f9937(0xfd)](style,_0x442fe8[_0x1f9937(0x125)],ui[_0x1f9937(0x10b)]));}export function section(_0x7d823c){const _0x10de49=_0x55cd83,_0x126c93={'dlKFs':function(_0x18063){return _0x18063();},'jfNmf':function(_0x12dee5,_0x43de4b,_0x41d62d,_0x152961){return _0x12dee5(_0x43de4b,_0x41d62d,_0x152961);}};_0x126c93[_0x10de49(0x113)](divider),console[_0x10de49(0xfb)](_0x126c93[_0x10de49(0x101)](style,_0x7d823c,ui[_0x10de49(0x121)],ui[_0x10de49(0x110)])),_0x126c93['dlKFs'](divider);}export function ok(_0x21ab0d){const _0x7a3fe7=_0x55cd83,_0x389198={'YcLFo':function(_0x566e6a,_0x4489b3,_0x30c74c,_0x49b14a){return _0x566e6a(_0x4489b3,_0x30c74c,_0x49b14a);}};return _0x389198[_0x7a3fe7(0x128)](style,_0x21ab0d,ui[_0x7a3fe7(0x102)],ui[_0x7a3fe7(0x121)]);}export function warn(_0x1038bf){const _0x1f470e=_0x55cd83,_0x4cd4fa={'UaTsT':function(_0x192cab,_0xd0db43,_0x5d4898,_0x1cb68e){return _0x192cab(_0xd0db43,_0x5d4898,_0x1cb68e);}};return _0x4cd4fa[_0x1f470e(0xfe)](style,_0x1038bf,ui[_0x1f470e(0xfc)],ui[_0x1f470e(0x121)]);}export function bad(_0x586473){const _0x365906=_0x55cd83,_0x4dd59a={'UjOew':function(_0xe62262,_0x3271b8,_0x355110,_0x5ec861){return _0xe62262(_0x3271b8,_0x355110,_0x5ec861);}};return _0x4dd59a[_0x365906(0x12a)](style,_0x586473,ui[_0x365906(0x117)],ui[_0x365906(0x121)]);}function _0x4d93(){const _0x158a7c=['stdout','LkOHW','\x0d\x1b[2K','\x1b[36m','dim','isTTY','187196RqCUza','293168ozJczb','393834mzImXr','cyan','2598935IkAhtL','join','dlKFs','\x1b[32m','2389518eHNtVG','xBbdB','red','toString','+)+$','apply','--------','oyiWA','\x1b[2m','1247916sbIdXq','write','Qaaqz','bold','144zSroZN','length','1084042pOUYtr','Apdsl','CZvQA','\x1b[33m','YcLFo','ERROR','UjOew','reset','search','log','yellow','ACiia','UaTsT','3UGMVhw','error','jfNmf','green','\x1b[1m','exit','(((.+)+)','tor'];_0x4d93=function(){return _0x158a7c;};return _0x4d93();}export function failAndExit(_0x5c8e7a){const _0x296993=_0x55cd83,_0x43fb02={'Qaaqz':function(_0x130764,_0x47dfba){return _0x130764(_0x47dfba);}};console[_0x296993(0x100)](_0x43fb02[_0x296993(0x120)](bad,_0x296993(0x129))+'\x20'+_0x5c8e7a),process[_0x296993(0x104)](0x1);}export async function withProgress(_0xd047e6,_0x3e12df){const _0x560fae=_0x55cd83,_0x5e2cf6={'oyiWA':function(_0x4d4df6){return _0x4d4df6();},'nhicF':function(_0x2f245a,_0x50a68e,_0x63ac93){return _0x2f245a(_0x50a68e,_0x63ac93);},'CZvQA':function(_0x34bce3,_0x51bd74){return _0x34bce3(_0x51bd74);},'xBbdB':function(_0x51431f,_0x4f5109){return _0x51431f(_0x4f5109);},'LkOHW':function(_0x2a2eff,_0xe23541){return _0x2a2eff(_0xe23541);},'PWUhe':function(_0x9791da,_0xcf79c5){return _0x9791da(_0xcf79c5);}};if(!process['stdout'][_0x560fae(0x10c)])return console[_0x560fae(0xfb)](_0xd047e6),_0x3e12df();const _0x25bc8a=['|','/','-','\x5c'];let _0x26c67a=0x0;const _0x26239c=()=>{const _0x467db8=_0x560fae,_0x5e93f2=_0x25bc8a[_0x26c67a%_0x25bc8a[_0x467db8(0x123)]];process['stdout'][_0x467db8(0x11f)]('\x0d'+style(_0x5e93f2,ui[_0x467db8(0x110)])+'\x20'+_0xd047e6),_0x26c67a+=0x1;};_0x5e2cf6[_0x560fae(0x11c)](_0x26239c);const _0x3eef6b=_0x5e2cf6['nhicF'](setInterval,_0x26239c,0x78);try{const _0x1f14af=await _0x5e2cf6[_0x560fae(0x11c)](_0x3e12df);return _0x5e2cf6[_0x560fae(0x126)](clearInterval,_0x3eef6b),process[_0x560fae(0x107)][_0x560fae(0x11f)](_0x560fae(0x109)),console[_0x560fae(0xfb)](_0x5e2cf6[_0x560fae(0x116)](ok,'OK')+'\x20'+_0xd047e6),_0x1f14af;}catch(_0x339b16){_0x5e2cf6[_0x560fae(0x108)](clearInterval,_0x3eef6b),process[_0x560fae(0x107)]['write'](_0x560fae(0x109)),console[_0x560fae(0xfb)](_0x5e2cf6['PWUhe'](bad,_0x560fae(0x129))+'\x20'+_0xd047e6);throw _0x339b16;}}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "gemit-cli",
3
+ "version": "1.5.2",
4
+ "description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
5
+ "main": "dist-secure/index.js",
6
+ "bin": {
7
+ "gemit": "dist-secure/index.js"
8
+ },
9
+ "files": [
10
+ "dist-secure/**/*",
11
+ "README.md"
12
+ ],
13
+ "scripts": {
14
+ "dev": "tsx src/index.ts",
15
+ "build": "tsc -p tsconfig.json",
16
+ "build:secure": "npm run build && node scripts/build-secure.mjs",
17
+ "prepack": "npm run build:secure",
18
+ "start": "node dist/index.js",
19
+ "start:secure": "node dist-secure/index.js",
20
+ "test": "echo \"Error: no test specified\" && exit 1"
21
+ },
22
+ "keywords": [
23
+ "git",
24
+ "commit",
25
+ "branch",
26
+ "cli",
27
+ "ai",
28
+ "conventional-commits"
29
+ ],
30
+ "author": "erick novaes56",
31
+ "license": "ISC",
32
+ "type": "module",
33
+ "dependencies": {
34
+ "@langchain/anthropic": "^1.3.25",
35
+ "@langchain/core": "^1.1.34",
36
+ "@langchain/google-genai": "^2.1.26",
37
+ "@langchain/openai": "^1.3.0",
38
+ "commander": "^14.0.3",
39
+ "dotenv": "^17.3.1"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^25.5.0",
43
+ "javascript-obfuscator": "^5.3.0",
44
+ "tsx": "^4.21.0",
45
+ "typescript": "^5.9.3"
46
+ }
47
+ }