@ericknovaes56/gemit-cli 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,78 +1,40 @@
1
- # gemit-cli
1
+ # gemit-cli
2
2
 
3
3
  CLI para sugerir mensagens de commit e nomes de branch com IA.
4
4
 
5
5
  ## Instalação
6
6
 
7
7
  ```bash
8
- npm install -g gemit-cli
8
+ npm install -g @ericknovaes56/gemit-cli
9
9
  ```
10
10
 
11
- ## Configuração (global)
12
-
13
- O `gemit init` salva a configuração global, para funcionar em qualquer projeto.
14
-
15
- - Windows: `%APPDATA%\gemit\.env`
16
- - macOS: `~/Library/Application Support/gemit/.env`
17
- - Linux: `$XDG_CONFIG_HOME/gemit/.env` ou `~/.config/gemit/.env`
11
+ ## Configuração
18
12
 
19
13
  ```bash
20
14
  gemit init
21
15
  ```
22
16
 
23
- Opcionalmente, para usar `.env` local no projeto atual:
17
+ Opcional (somente no projeto atual):
24
18
 
25
19
  ```bash
26
20
  gemit init --local
27
21
  ```
28
22
 
29
- ## Comandos
30
-
31
- ### Ver versão
32
-
33
- ```bash
34
- gemit -v
35
- ```
36
-
37
- ### Sugerir commit (padrão)
38
-
39
- ```bash
40
- gemit
41
- ```
42
-
43
- ou
23
+ ## Uso
44
24
 
45
25
  ```bash
46
- gemit commit
26
+ gemit # sugere commit (padrão)
27
+ gemit commit # sugere commit
28
+ gemit branch "texto" # sugere branch
29
+ gemit pr # gera título + descrição de PR
30
+ gemit log # resume o trabalho do branch
31
+ gemit changelog # gera changelog em changelogs/nome-data.md
32
+ gemit doctor # verifica configuração
33
+ gemit -v # versão
47
34
  ```
48
35
 
49
- Fluxo:
50
-
51
- 1. Mostra progresso da IA durante a requisição.
52
- 2. Sugere a mensagem de commit.
53
- 3. Pergunta se deve criar o commit.
54
- 4. Após o commit, pergunta se deve fazer `git push` (padrão `N`), detectando branch local e upstream remoto.
36
+ ## Provedores suportados
55
37
 
56
- ### Sugerir branch
57
-
58
- ```bash
59
- gemit branch "descricao da feature"
60
- ```
61
-
62
- ### Diagnóstico de configuração
63
-
64
- ```bash
65
- gemit doctor
66
- ```
67
-
68
- ## Variáveis de ambiente
69
-
70
- ```env
71
- LLM_PROVIDER="google" # google | openai | anthropic
72
- LLM_MODEL="gemini-2.5-flash"
73
-
74
- GOOGLE_API_KEY=""
75
- GEMINI_API_KEY=""
76
- OPENAI_API_KEY=""
77
- ANTHROPIC_API_KEY=""
78
- ```
38
+ - `google`
39
+ - `openai`
40
+ - `anthropic`
@@ -0,0 +1 @@
1
+ (function(_0xa4826d,_0x45848f){const _0x4f6ba9=_0x20a8,_0x4d6eb1=_0xa4826d();while(!![]){try{const _0x1526f4=parseInt(_0x4f6ba9(0x13f))/0x1+-parseInt(_0x4f6ba9(0x150))/0x2*(-parseInt(_0x4f6ba9(0x13c))/0x3)+-parseInt(_0x4f6ba9(0x146))/0x4+-parseInt(_0x4f6ba9(0x143))/0x5+parseInt(_0x4f6ba9(0x155))/0x6*(parseInt(_0x4f6ba9(0x141))/0x7)+parseInt(_0x4f6ba9(0x14a))/0x8*(parseInt(_0x4f6ba9(0x153))/0x9)+-parseInt(_0x4f6ba9(0x147))/0xa;if(_0x1526f4===_0x45848f)break;else _0x4d6eb1['push'](_0x4d6eb1['shift']());}catch(_0x2e4bc5){_0x4d6eb1['push'](_0x4d6eb1['shift']());}}}(_0x2e79,0xe587a));const _0x2d322f=(function(){let _0x2f8244=!![];return function(_0x33f69e,_0xd06214){const _0xa8a497=_0x2f8244?function(){const _0x39a382=_0x20a8;if(_0xd06214){const _0x38be24=_0xd06214[_0x39a382(0x151)](_0x33f69e,arguments);return _0xd06214=null,_0x38be24;}}:function(){};return _0x2f8244=![],_0xa8a497;};}()),_0x32100e=_0x2d322f(this,function(){const _0x2211a7=_0x20a8,_0x1a5c7f={'XfHKQ':_0x2211a7(0x13a)+_0x2211a7(0x157)};return _0x32100e[_0x2211a7(0x149)]()[_0x2211a7(0x142)](_0x1a5c7f[_0x2211a7(0x154)])[_0x2211a7(0x149)]()[_0x2211a7(0x14e)+_0x2211a7(0x14f)](_0x32100e)[_0x2211a7(0x142)](_0x1a5c7f['XfHKQ']);});_0x32100e();import{basename,dirname,join}from'path';import{readFileSync}from'fs';function _0x20a8(_0x3f6d81,_0x354c76){_0x3f6d81=_0x3f6d81-0x139;const _0x366349=_0x2e79();let _0x32100e=_0x366349[_0x3f6d81];return _0x32100e;}function _0x2e79(){const _0x5a42f0=['yBRYt','eGBoL','239848BxktdL','ure','7IsANca','search','2993930xIcYIT','json','cOKWe','2545524UnEBoB','4061130yVxhzQ','utf8','toString','27112WpctKt','GagVc','mqruz','ABwcP','construc','tor','2dFbMZd','apply','0.0.0','1161XLLOBw','XfHKQ','1136004vccvpV','LJdBz','+)+$','package.','(((.+)+)','aCyVr','5145213oHXHOT'];_0x2e79=function(){return _0x5a42f0;};return _0x2e79();}import{fileURLToPath}from'url';export function getCliVersion(){const _0x22ec1e=_0x20a8,_0x89e28a={'GagVc':function(_0x156352,_0x2596a4){return _0x156352(_0x2596a4);},'aCyVr':function(_0x2f5a37,_0x4e9512){return _0x2f5a37(_0x4e9512);},'eGBoL':'dist','IdiWg':function(_0x2d2e3a,_0x411d9a){return _0x2d2e3a===_0x411d9a;},'LJdBz':function(_0x393c2a,_0x511266){return _0x393c2a(_0x511266);},'UxVvC':function(_0x3abd27,_0x588f3a,_0x48105a,_0x32a663){return _0x3abd27(_0x588f3a,_0x48105a,_0x32a663);},'cOKWe':function(_0x5e4405,_0x960302,_0x1cf9a4){return _0x5e4405(_0x960302,_0x1cf9a4);},'ABwcP':_0x22ec1e(0x139)+_0x22ec1e(0x144),'yBRYt':_0x22ec1e(0x148),'mqruz':_0x22ec1e(0x152)};try{const _0x1c1f5f=fileURLToPath(import.meta.url),_0x49b0e9=_0x89e28a[_0x22ec1e(0x14b)](dirname,_0x1c1f5f),_0x26029a=_0x89e28a[_0x22ec1e(0x13b)](basename,_0x49b0e9)===_0x89e28a[_0x22ec1e(0x13e)]||_0x89e28a['IdiWg'](_0x89e28a[_0x22ec1e(0x156)](basename,_0x49b0e9),'dist-sec'+_0x22ec1e(0x140))?_0x89e28a['UxVvC'](join,_0x49b0e9,'..',_0x22ec1e(0x139)+'json'):_0x89e28a[_0x22ec1e(0x145)](join,_0x49b0e9,_0x89e28a[_0x22ec1e(0x14d)]),_0x2f8456=_0x89e28a[_0x22ec1e(0x145)](readFileSync,_0x26029a,_0x89e28a[_0x22ec1e(0x13d)]),_0x33d6ea=JSON['parse'](_0x2f8456);return _0x33d6ea['version']||_0x89e28a[_0x22ec1e(0x14c)];}catch{return _0x89e28a[_0x22ec1e(0x14c)];}}
@@ -0,0 +1 @@
1
+ (function(_0x112cfa,_0x9f91a){const _0x47b8d6=_0x4d53,_0x2eb0a8=_0x112cfa();while(!![]){try{const _0x56397e=parseInt(_0x47b8d6(0xe1))/0x1+-parseInt(_0x47b8d6(0xfc))/0x2*(-parseInt(_0x47b8d6(0x131))/0x3)+parseInt(_0x47b8d6(0x124))/0x4*(-parseInt(_0x47b8d6(0xfd))/0x5)+-parseInt(_0x47b8d6(0x12b))/0x6+parseInt(_0x47b8d6(0x120))/0x7+parseInt(_0x47b8d6(0xdf))/0x8+-parseInt(_0x47b8d6(0xea))/0x9;if(_0x56397e===_0x9f91a)break;else _0x2eb0a8['push'](_0x2eb0a8['shift']());}catch(_0x4a2467){_0x2eb0a8['push'](_0x2eb0a8['shift']());}}}(_0x1d6a,0x3b19f));const _0x59bf4a=(function(){let _0x3c115e=!![];return function(_0x445676,_0x3b6eeb){const _0x32787e=_0x3c115e?function(){const _0x477ed4=_0x4d53;if(_0x3b6eeb){const _0x235b72=_0x3b6eeb[_0x477ed4(0x121)](_0x445676,arguments);return _0x3b6eeb=null,_0x235b72;}}:function(){};return _0x3c115e=![],_0x32787e;};}()),_0x89ddc8=_0x59bf4a(this,function(){const _0x5f02b6=_0x4d53,_0x1809df={'yqfAx':'(((.+)+)'+_0x5f02b6(0x11a)};return _0x89ddc8[_0x5f02b6(0xf4)]()[_0x5f02b6(0x12c)](_0x5f02b6(0x137)+'+)+$')[_0x5f02b6(0xf4)]()[_0x5f02b6(0xe3)+_0x5f02b6(0x113)](_0x89ddc8)['search'](_0x1809df['yqfAx']);});_0x89ddc8();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,section,style,ui,warn,withProgress}from'../ui.js';function _0x1d6a(){const _0x35d665=['1307466YnoSnC','search','was\x20not\x20','Return\x20O','xists:\x20','EfdEd','76881QkHLBm','ription:','VRjMJ','types:\x20f','case-des','te\x20branc','(((.+)+)','inking\x20a','1874816DVYgid','efactor,','164552GrJZqw','ame\x20in\x20E','construc','normaliz','feature\x20','cription','sRaHW','\x20\x20-\x20Maxi','ranch\x20wi','1902357jCSnfm','\x0a\x20\x20','git\x20bran','UiHys','lRXlC','/n):\x20','inherit','NLY\x20the\x20','h\x20name.','SUGGESTE','toString','nglish\x0a\x0a','o\x20genera','name?\x20(y','feat/','th:\x2050\x20c','sting\x20re','includes','30BnhxwB','1800275dyeHXo','\x20\x20\x20\x20Desc','nrTZe','eHYmi',',\x20chore,','iOWHw','sponse..','es:\x0a\x20\x20\x20\x20','mSRmo','\x0a\x20\x20\x20\x20Gen','ch\x20name\x20','DyaqT','branch\x20n','HVDJf','Allowed\x20','replace','eat,\x20fix','lready\x20e','\x20branch.','for\x20the\x20','CANCELED','slice','tor','invoke','-\x20Format','mHcho','D\x20BRANCH','ase','Create\x20b','+)+$',':\x20<type>','jxLrj','KQTay','\x0a\x20\x20\x20\x20','jWWnR','1736763XEmflQ','apply','dsPmj','/<kebab-','4palxOr','hLtPy','d\x20below.','NFD','mWIPM','\x20docs,\x20r','Failed\x20t'];_0x1d6a=function(){return _0x35d665;};return _0x1d6a();}function _0x4d53(_0x58890b,_0x1a80a2){_0x58890b=_0x58890b-0xde;const _0x5558c0=_0x1d6a();let _0x89ddc8=_0x5558c0[_0x58890b];return _0x89ddc8;}function sanitizeBranchName(_0x403f30){const _0x2af4f2=_0x4d53,_0x56f392={'nrTZe':_0x2af4f2(0x127),'FADTr':function(_0x137707,_0x4a7720){return _0x137707||_0x4a7720;},'otIlo':'feat/upd'+'ate','VRjMJ':function(_0x5840c9,_0x56dcb9){return _0x5840c9===_0x56dcb9;},'yGmrN':_0x2af4f2(0x105),'DyaqT':'XmncY'},_0x33c9eb=_0x403f30[_0x2af4f2(0xe4)+'e'](_0x56f392['nrTZe'])['replace'](/[\u0300-\u036f]/g,'')['toLowerC'+_0x2af4f2(0x118)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x2af4f2(0x10c)](/-{2,}/g,'-')[_0x2af4f2(0x10c)](/\/{2,}/g,'/')[_0x2af4f2(0x10c)](/^-+|-+$/g,'')['replace'](/^\/+|\/+$/g,''),_0x245b6a=_0x33c9eb[_0x2af4f2(0x112)](0x0,0x32)[_0x2af4f2(0x10c)](/\/+$/g,'')[_0x2af4f2(0x10c)](/-+$/g,''),_0x3f08b3=_0x245b6a||_0x56f392['otIlo'];if(!_0x3f08b3[_0x2af4f2(0xfb)]('/')){if(_0x56f392[_0x2af4f2(0x133)](_0x56f392['yGmrN'],_0x56f392[_0x2af4f2(0x108)])){const _0x26bffd=_0x3c801e[_0x2af4f2(0xe4)+'e'](_0x56f392[_0x2af4f2(0xff)])[_0x2af4f2(0x10c)](/[\u0300-\u036f]/g,'')['toLowerC'+_0x2af4f2(0x118)]()[_0x2af4f2(0x10c)](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x2af4f2(0x10c)](/\/{2,}/g,'/')[_0x2af4f2(0x10c)](/^-+|-+$/g,'')[_0x2af4f2(0x10c)](/^\/+|\/+$/g,''),_0x41467a=_0x26bffd[_0x2af4f2(0x112)](0x0,0x32)[_0x2af4f2(0x10c)](/\/+$/g,'')[_0x2af4f2(0x10c)](/-+$/g,''),_0xfe9a71=_0x56f392['FADTr'](_0x41467a,_0x56f392['otIlo']);if(!_0xfe9a71[_0x2af4f2(0xfb)]('/'))return _0x2af4f2(0xf8)+_0xfe9a71;return _0xfe9a71;}else return _0x2af4f2(0xf8)+_0x3f08b3;}return _0x3f08b3;}function getLLM(){const _0x1e4880=_0x4d53,_0x1eb3a5={'dsPmj':function(_0x9f6ff3){return _0x9f6ff3();},'JFLuR':function(_0x5c7cb8,_0x4b2729){return _0x5c7cb8 instanceof _0x4b2729;},'mWIPM':function(_0x24061b,_0x51867c){return _0x24061b(_0x51867c);}};try{return _0x1eb3a5[_0x1e4880(0x122)](createLLM);}catch(_0x58ea16){const _0x717369=_0x1eb3a5['JFLuR'](_0x58ea16,Error)?_0x58ea16['message']:_0x1eb3a5[_0x1e4880(0x128)](String,_0x58ea16);failAndExit(_0x717369);}}export async function suggestBranch(_0x153da8){const _0x16e532=_0x4d53,_0x13c766={'UiHys':function(_0x39a52c){return _0x39a52c();},'iOWHw':'AI\x20is\x20th'+_0x16e532(0xde)+'nd\x20reque'+_0x16e532(0xfa)+_0x16e532(0x103)+'.','lRXlC':function(_0x4d2993,_0x3c5e32){return _0x4d2993(_0x3c5e32);},'eHYmi':function(_0x9e1b7,_0x5a4ce3){return _0x9e1b7(_0x5a4ce3);},'fhlSs':_0x16e532(0x12a)+_0x16e532(0xf6)+_0x16e532(0x136)+_0x16e532(0xf2),'mHcho':function(_0x3ceb78,_0x3023d6){return _0x3ceb78(_0x3023d6);},'jWWnR':function(_0x175b4d,_0x30b3b7){return _0x175b4d(_0x30b3b7);},'hLtPy':_0x16e532(0x119)+_0x16e532(0xe9)+'th\x20this\x20'+_0x16e532(0xf7)+_0x16e532(0xef),'HVDJf':function(_0x2e277c,_0x238bff){return _0x2e277c(_0x238bff);},'jisgs':_0x16e532(0x111),'KQTay':function(_0x4bd166,_0x19e606,_0x56288a,_0x43facc){return _0x4bd166(_0x19e606,_0x56288a,_0x43facc);},'gYdvS':'git','jxLrj':'checkout','sRaHW':_0x16e532(0xf0),'EfdEd':'Failed\x20t'+'o\x20create'+_0x16e532(0x10f)};_0x13c766[_0x16e532(0xed)](getGitStatus);const _0x1a15da=getLLM(),_0x295639=_0x16e532(0x106)+'erate\x20a\x20'+_0x16e532(0xec)+_0x16e532(0x107)+_0x16e532(0x110)+_0x16e532(0xe5)+'describe'+_0x16e532(0x126)+'\x0a\x20\x20\x20\x20Rul'+_0x16e532(0x104)+_0x16e532(0x115)+_0x16e532(0x11b)+_0x16e532(0x123)+_0x16e532(0x135)+_0x16e532(0xe6)+'>\x0a\x20\x20\x20\x20-\x20'+_0x16e532(0x10b)+_0x16e532(0x134)+_0x16e532(0x10d)+_0x16e532(0x101)+_0x16e532(0x129)+_0x16e532(0xe0)+'\x20test\x0a\x20\x20'+_0x16e532(0xe8)+'mum\x20leng'+_0x16e532(0xf9)+'haracter'+'s\x0a\x20\x20\x20\x20-\x20'+_0x16e532(0x12e)+_0x16e532(0xf1)+_0x16e532(0x109)+_0x16e532(0xe2)+_0x16e532(0xf5)+_0x16e532(0xfe)+_0x16e532(0x132)+_0x16e532(0x11e)+_0x153da8+_0x16e532(0xeb),_0x5b4b19=await withProgress(_0x13c766[_0x16e532(0x102)],()=>_0x1a15da[_0x16e532(0x114)](_0x295639)),_0x4e058c=_0x13c766[_0x16e532(0xee)](extractMessageText,_0x5b4b19['content']),_0x49a300=sanitizeBranchName(_0x4e058c);!_0x49a300&&_0x13c766[_0x16e532(0x100)](failAndExit,_0x13c766['fhlSs']);_0x13c766[_0x16e532(0x116)](branchExists,_0x49a300)&&_0x13c766['lRXlC'](failAndExit,'Branch\x20a'+_0x16e532(0x10e)+_0x16e532(0x12f)+_0x49a300);section(_0x16e532(0xf3)+_0x16e532(0x117)),console['log'](style(_0x49a300,ui['bold'])),console['log']();const _0x49aee8=await _0x13c766[_0x16e532(0x11f)](askConfirmation,_0x13c766[_0x16e532(0x125)]);if(!_0x49aee8){console['log'](_0x13c766[_0x16e532(0x10a)](warn,_0x13c766['jisgs'])+('\x20Branch\x20'+_0x16e532(0x12d)+'created.'));return;}try{_0x13c766[_0x16e532(0x11d)](execFileSync,_0x13c766['gYdvS'],[_0x13c766[_0x16e532(0x11c)],'-b',_0x49a300],{'stdio':_0x13c766[_0x16e532(0xe7)]});}catch{failAndExit(_0x13c766[_0x16e532(0x130)]);}}
@@ -0,0 +1 @@
1
+ (function(_0x177e1e,_0x4b5a38){const _0x29ffca=_0x3478,_0x300cc9=_0x177e1e();while(!![]){try{const _0xeee9f4=parseInt(_0x29ffca(0x1f6))/0x1*(-parseInt(_0x29ffca(0x208))/0x2)+parseInt(_0x29ffca(0x20e))/0x3+-parseInt(_0x29ffca(0x1f5))/0x4+-parseInt(_0x29ffca(0x259))/0x5*(parseInt(_0x29ffca(0x214))/0x6)+-parseInt(_0x29ffca(0x240))/0x7*(parseInt(_0x29ffca(0x209))/0x8)+parseInt(_0x29ffca(0x25a))/0x9*(parseInt(_0x29ffca(0x243))/0xa)+parseInt(_0x29ffca(0x20a))/0xb*(parseInt(_0x29ffca(0x229))/0xc);if(_0xeee9f4===_0x4b5a38)break;else _0x300cc9['push'](_0x300cc9['shift']());}catch(_0x5bbc44){_0x300cc9['push'](_0x300cc9['shift']());}}}(_0x1e66,0xcbe41));const _0x2739a8=(function(){let _0x1ddb0e=!![];return function(_0x493206,_0x28521f){const _0x4557f3=_0x1ddb0e?function(){const _0x20f1cb=_0x3478;if(_0x28521f){const _0xa8bae0=_0x28521f[_0x20f1cb(0x1ee)](_0x493206,arguments);return _0x28521f=null,_0xa8bae0;}}:function(){};return _0x1ddb0e=![],_0x4557f3;};}()),_0x5b4238=_0x2739a8(this,function(){const _0x1c3b50=_0x3478,_0x34f6bd={'eDWlO':_0x1c3b50(0x251)+'+)+$'};return _0x5b4238[_0x1c3b50(0x24b)]()['search'](_0x1c3b50(0x251)+_0x1c3b50(0x245))['toString']()[_0x1c3b50(0x24f)+_0x1c3b50(0x20b)](_0x5b4238)[_0x1c3b50(0x217)](_0x34f6bd[_0x1c3b50(0x25d)]);});_0x5b4238();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,section,withProgress}from'../ui.js';function getLLM(){const _0x44e66c=_0x3478,_0x55a65b={'WZoHv':_0x44e66c(0x251)+_0x44e66c(0x245),'hujFs':function(_0xe4f330){return _0xe4f330();},'limBq':function(_0x5562b4,_0x440701){return _0x5562b4===_0x440701;},'AqfKE':_0x44e66c(0x24e),'HWbzK':function(_0x44e03d,_0x16023b){return _0x44e03d instanceof _0x16023b;},'WWHSD':function(_0x2745d9,_0x42a83d){return _0x2745d9(_0x42a83d);}};try{return _0x55a65b[_0x44e66c(0x206)](createLLM);}catch(_0x461262){if(_0x55a65b[_0x44e66c(0x204)](_0x55a65b[_0x44e66c(0x23c)],_0x44e66c(0x24e))){const _0x58dafa=_0x55a65b[_0x44e66c(0x1f8)](_0x461262,Error)?_0x461262[_0x44e66c(0x22a)]:_0x55a65b['WWHSD'](String,_0x461262);_0x55a65b[_0x44e66c(0x23d)](failAndExit,_0x58dafa);}else return _0x4c3b7b['toString']()['search'](EMXwtV[_0x44e66c(0x236)])[_0x44e66c(0x24b)]()['construc'+_0x44e66c(0x20b)](_0x4a7fe2)[_0x44e66c(0x217)](EMXwtV[_0x44e66c(0x236)]);}}function _0x3478(_0x5c3280,_0x31e157){_0x5c3280=_0x5c3280-0x1ee;const _0x430f47=_0x1e66();let _0x5b4238=_0x430f47[_0x5c3280];return _0x5b4238;}function sanitizeName(_0x9000a3){const _0x56dbb8=_0x3478,_0x52510a={'XKXsK':function(_0x24797b,_0x5a1dc4){return _0x24797b||_0x5a1dc4;},'ZhLBD':'changelo'+'g'},_0x5650f2=_0x9000a3['normaliz'+'e'](_0x56dbb8(0x256))[_0x56dbb8(0x1fc)](/[\u0300-\u036f]/g,'')[_0x56dbb8(0x25e)+_0x56dbb8(0x239)]()[_0x56dbb8(0x1fc)](/[^a-z0-9-]+/g,'-')[_0x56dbb8(0x1fc)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return _0x52510a['XKXsK'](_0x5650f2,_0x52510a['ZhLBD']);}function _0x1e66(){const _0x46c2dc=['e)\x0a-\x20Inc','2424GuKiEy','message','invoke','lua\x20uma\x20','rtugues\x20','a\x20curta\x20','\x20|\x20','e\x20commit','toISOStr','ezTPL','ywzaG','hash','o\x20genera','WZoHv','elog\x20con','Regras:\x0a','ase','rvIZa','utf8','AqfKE','WWHSD','xseie','CLGAL','84GWutVD','tors,\x20Do','esumo\x20cu','10bRTWrI','MqVQK','+)+$','FtLff','slice','de\x20hashe','map','tent.','toString','\x20File\x20sa','\x20(Featur','crkiP','construc','l\x0a-\x20Estr','(((.+)+)','LtmLr','changelo','ing','ved:\x20','NFD','te\x20mudan','HTvBm','110985WzctOQ','11125179ckHNrQ','s,\x20Refac','rico\x20de\x20','eDWlO','toLowerC','apply','te\x20chang','No\x20commi','\x20changel','\x20tipo\x20de','Failed\x20t','length','2944468tvLfeP','8BChTBr','do\x20Brasi','HWbzK','\x20mudanca','\x20to\x20gene','AI\x20is\x20ge','replace','\x0aCrie\x20um','kLvsh','coes\x20por','spxdM','rto\x20e\x20se','TED','og...','limBq','HdJHd','hujFs','.md','320160lKDwIM','183232ECcTYE','58399mIHpbx','tor','es,\x20Fixe','trim','3852990EIzyZN','XnLWH','nMqqR','rkdown\x20c','itulo,\x20r','cjjZo','126qFUlmW','log','ts\x20found','search','unknown-','secao\x20\x22C','POATy','nerating','TPoCA','content','no\x20histo','date','rate\x20cha','s\x20e\x20assu','ommits\x22\x20','ngelog.','cs,\x20Chor','subject','CHANGELO','body'];_0x1e66=function(){return _0x46c2dc;};return _0x1e66();}function formatDateForFile(_0x3101b1){const _0x2b141f=_0x3478;return _0x3101b1[_0x2b141f(0x231)+_0x2b141f(0x254)]()[_0x2b141f(0x247)](0x0,0xa);}function buildCommitHistoryPrompt(){const _0x502683=_0x3478,_0x43e046={'UHcnr':function(_0x476fcb,_0x1345a1){return _0x476fcb(_0x1345a1);},'kLvsh':_0x502683(0x218)+_0x502683(0x21f),'ywzaG':_0x502683(0x218)+'author','EQeiV':function(_0x309f36,_0x370492){return _0x309f36(_0x370492);},'HTvBm':function(_0x4cf789,_0xf6b8e8){return _0x4cf789===_0xf6b8e8;},'nMqqR':'UwxeT','xseie':_0x502683(0x1f0)+_0x502683(0x216)+_0x502683(0x1fa)+_0x502683(0x220)+_0x502683(0x223)},_0x545563=_0x43e046['EQeiV'](getCommitHistory,0x96);return _0x43e046[_0x502683(0x258)](_0x545563[_0x502683(0x1f4)],0x0)&&(_0x43e046['HTvBm'](_0x43e046[_0x502683(0x210)],_0x43e046[_0x502683(0x210)])?failAndExit(_0x43e046[_0x502683(0x23e)]):_0x43e046['UHcnr'](_0x1e7752,_0x502683(0x1f3)+_0x502683(0x235)+_0x502683(0x1ef)+_0x502683(0x237)+_0x502683(0x24a))),_0x545563[_0x502683(0x249)](_0x1bff91=>{const _0xe7e553=_0x502683,_0x3390bf=_0x1bff91[_0xe7e553(0x227)]?'\x20|\x20body:'+'\x20'+_0x1bff91[_0xe7e553(0x227)][_0xe7e553(0x1fc)](/\s+/g,'\x20')[_0xe7e553(0x20d)]():'',_0x170d02=_0x1bff91[_0xe7e553(0x21f)]||_0x43e046[_0xe7e553(0x1fe)],_0xee57ac=_0x1bff91['author']||_0x43e046[_0xe7e553(0x233)];return'-\x20'+_0x170d02+_0xe7e553(0x22f)+_0x1bff91[_0xe7e553(0x234)][_0xe7e553(0x247)](0x0,0x7)+_0xe7e553(0x22f)+_0xee57ac+_0xe7e553(0x22f)+_0x1bff91[_0xe7e553(0x225)]+_0x3390bf;})['join']('\x0a');}export async function generateChangelog(_0x31a893){const _0x32f6cc=_0x3478,_0x548cd1={'XnLWH':function(_0x4afc97){return _0x4afc97();},'MqVQK':function(_0x1211a8){return _0x1211a8();},'cjjZo':function(_0x16d5de){return _0x16d5de();},'FtXGR':function(_0x84af25,_0x34a3e9){return _0x84af25(_0x34a3e9);},'uOgmw':function(_0x4e0e4e,_0x2cf3e4){return _0x4e0e4e||_0x2cf3e4;},'TPoCA':function(_0x27151e){return _0x27151e();},'HdJHd':function(_0x378f8d,_0x441b38,_0x4bce84){return _0x378f8d(_0x441b38,_0x4bce84);},'spxdM':_0x32f6cc(0x1fb)+_0x32f6cc(0x21b)+_0x32f6cc(0x1f1)+_0x32f6cc(0x203),'rlzsu':function(_0xc19a28,_0x45b80a){return _0xc19a28(_0x45b80a);},'POATy':function(_0x2ed6bd,_0x3a8ab4){return _0x2ed6bd(_0x3a8ab4);},'LtmLr':_0x32f6cc(0x253)+'gs','FtLff':function(_0x3c71b7,_0x2f25ac,_0x3d4b78){return _0x3c71b7(_0x2f25ac,_0x3d4b78);},'ezTPL':function(_0x23aa44,_0x49ae23,_0xde0ae2,_0x20688c){return _0x23aa44(_0x49ae23,_0xde0ae2,_0x20688c);},'oPlwq':_0x32f6cc(0x23b),'rvIZa':_0x32f6cc(0x226)+'G\x20GENERA'+_0x32f6cc(0x202),'CLGAL':function(_0x5a18e1,_0x2dd5d3){return _0x5a18e1(_0x2dd5d3);}};_0x548cd1[_0x32f6cc(0x20f)](getGitStatus);const _0x21ea9d=_0x548cd1[_0x32f6cc(0x244)](getLLM),_0xb474e1=_0x548cd1[_0x32f6cc(0x213)](getCurrentBranch),_0x389350=_0x548cd1['FtXGR'](sanitizeName,_0x548cd1['uOgmw'](_0x31a893,_0xb474e1)['trim']()),_0x15c9c7=formatDateForFile(new Date()),_0x3c487b=_0x389350+'-'+_0x15c9c7+_0x32f6cc(0x207),_0x47a6a0=_0x548cd1[_0x32f6cc(0x21c)](buildCommitHistoryPrompt),_0xf62bb2=(_0x32f6cc(0x1fd)+'\x20CHANGEL'+'OG\x20em\x20ma'+_0x32f6cc(0x211)+'om\x20base\x20'+_0x32f6cc(0x21e)+_0x32f6cc(0x25c)+'commits\x20'+'abaixo.\x0a'+_0x32f6cc(0x238)+'-\x20Respon'+'da\x20em\x20po'+_0x32f6cc(0x22d)+_0x32f6cc(0x1f7)+_0x32f6cc(0x250)+'utura:\x20t'+_0x32f6cc(0x212)+_0x32f6cc(0x242)+_0x32f6cc(0x201)+_0x32f6cc(0x1ff)+_0x32f6cc(0x1f2)+_0x32f6cc(0x1f9)+_0x32f6cc(0x24d)+_0x32f6cc(0x20c)+_0x32f6cc(0x25b)+_0x32f6cc(0x241)+_0x32f6cc(0x224)+_0x32f6cc(0x228)+_0x32f6cc(0x22c)+_0x32f6cc(0x219)+_0x32f6cc(0x222)+'com\x20list'+_0x32f6cc(0x22e)+_0x32f6cc(0x248)+_0x32f6cc(0x221)+'ntos\x0a-\x20N'+'ao\x20inven'+_0x32f6cc(0x257)+'cas\x0a\x0aHis'+'torico\x20d'+_0x32f6cc(0x230)+'s:\x0a'+_0x47a6a0+'\x0a')[_0x32f6cc(0x20d)](),_0x57dfa9=await _0x548cd1[_0x32f6cc(0x205)](withProgress,_0x548cd1[_0x32f6cc(0x200)],()=>_0x21ea9d[_0x32f6cc(0x22b)](_0xf62bb2)),_0x3df273=_0x548cd1['rlzsu'](extractMessageText,_0x57dfa9[_0x32f6cc(0x21d)]);!_0x3df273&&_0x548cd1[_0x32f6cc(0x21a)](failAndExit,'Failed\x20t'+_0x32f6cc(0x235)+_0x32f6cc(0x1ef)+_0x32f6cc(0x237)+_0x32f6cc(0x24a));const _0x4b4e26=_0x548cd1[_0x32f6cc(0x205)](join,process['cwd'](),_0x548cd1[_0x32f6cc(0x252)]),_0x43816b=join(_0x4b4e26,_0x3c487b);_0x548cd1[_0x32f6cc(0x246)](mkdirSync,_0x4b4e26,{'recursive':!![]}),_0x548cd1[_0x32f6cc(0x232)](writeFileSync,_0x43816b,_0x3df273[_0x32f6cc(0x20d)]()+'\x0a',_0x548cd1['oPlwq']),section(_0x548cd1[_0x32f6cc(0x23a)]),console[_0x32f6cc(0x215)](_0x548cd1[_0x32f6cc(0x23f)](ok,'OK')+(_0x32f6cc(0x24c)+_0x32f6cc(0x255))+_0x43816b),console[_0x32f6cc(0x215)]();}
@@ -0,0 +1 @@
1
+ (function(_0x55565c,_0x571ff4){const _0x713c3a=_0x298f,_0x36b5c2=_0x55565c();while(!![]){try{const _0x170254=parseInt(_0x713c3a(0xa6))/0x1*(-parseInt(_0x713c3a(0x102))/0x2)+-parseInt(_0x713c3a(0xf5))/0x3*(parseInt(_0x713c3a(0xb6))/0x4)+-parseInt(_0x713c3a(0xd0))/0x5*(-parseInt(_0x713c3a(0xa8))/0x6)+parseInt(_0x713c3a(0xcf))/0x7+parseInt(_0x713c3a(0xd2))/0x8+-parseInt(_0x713c3a(0x9d))/0x9*(-parseInt(_0x713c3a(0xcc))/0xa)+parseInt(_0x713c3a(0xb7))/0xb*(-parseInt(_0x713c3a(0xa7))/0xc);if(_0x170254===_0x571ff4)break;else _0x36b5c2['push'](_0x36b5c2['shift']());}catch(_0x4ac1b8){_0x36b5c2['push'](_0x36b5c2['shift']());}}}(_0x538c,0x9976d));const _0x543f83=(function(){const _0x5a4bd5=_0x298f,_0x5cb839={'eIURC':function(_0x1c0302,_0xdcaeda){return _0x1c0302!==_0xdcaeda;},'pgFtd':_0x5a4bd5(0xa2),'RdwyN':'CBpVi','FQfGp':function(_0x2a5ebc,_0x28e1c1){return _0x2a5ebc(_0x28e1c1);},'dXmKA':'SKIPPED'};let _0x51c312=!![];return function(_0x154281,_0x4f3d3e){const _0x58e39d={'Plsmq':function(_0x4f727a,_0x1a9f02){const _0x2a0415=_0x298f;return _0x5cb839[_0x2a0415(0xfc)](_0x4f727a,_0x1a9f02);},'ruthL':_0x5cb839['dXmKA']},_0x1514db=_0x51c312?function(){const _0x3e9c56=_0x298f;if(_0x5cb839[_0x3e9c56(0xe4)](_0x5cb839['pgFtd'],_0x5cb839[_0x3e9c56(0xe3)])){if(_0x4f3d3e){const _0x426353=_0x4f3d3e[_0x3e9c56(0xf4)](_0x154281,arguments);return _0x4f3d3e=null,_0x426353;}}else{_0x15e87f['log'](_0x58e39d[_0x3e9c56(0xd7)](_0x50f865,_0x58e39d['ruthL'])+(_0x3e9c56(0xb3)+_0x3e9c56(0xaf)+_0x3e9c56(0xee)+_0x3e9c56(0xac)+_0x3e9c56(0xf9)+'lable.'));return;}}:function(){};return _0x51c312=![],_0x1514db;};}()),_0x106f8c=_0x543f83(this,function(){const _0x4275cd=_0x298f;return _0x106f8c[_0x4275cd(0xf0)]()[_0x4275cd(0x92)](_0x4275cd(0xdc)+_0x4275cd(0x100))[_0x4275cd(0xf0)]()['construc'+_0x4275cd(0xe5)](_0x106f8c)['search'](_0x4275cd(0xdc)+_0x4275cd(0x100));});_0x106f8c();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getUpstreamInfo}from'../git.js';function _0x538c(){const _0x1eba41=['EZuPG','mmits.\x0a\x20','RCtyg','orQUv','onfigure','Push\x20cur','toString','ve\x20stage','\x20Push\x20co','branch','apply','9nzkuOo','gaEHz','eam\x20foun','GajKW','not\x20avai','f\x20you\x20ha','\x22\x20now?\x20(','FQfGp','and\x20upst','nd\x20reque','sting\x20re','+)+$','am?\x20(y/N','302234YwJIIE','QbNUt','OmBPV','\x20commit.','aBijZ','remote','message','t\x20messag','ns.\x0a\x0a\x20\x20\x20','ge\x20using','search','sponse..','o\x20create','OiPvj','zfuJr','GNurD','\x20\x20\x20Retur','push','CANCELED','stream','commit','11106567VDOnBt','mpleted\x20','TgtgN','ZVJwP','fullName','BTbdT','inherit','uBZmW','content','3dweeWl','1138224glVCqK','250656YcHiIp','\x22\x20and\x20se','lable.','invoke','d.\x20Push\x20','construc','th\x20no\x20ex','remote\x20c','bold','s\x20messag','e\x20a\x20comm','\x20No\x20git\x20','nch\x20\x22','\x0a\x20\x20','606340FOwFeJ','253PWRifg','git','jYFLS','kuata','IozJd','\x20Convent','Failed\x20t','he\x20commi','TtLWV','TvuVN','JDvon','t\x20upstre','is\x20git\x20s','\x22\x20to\x20\x22','e?\x20(Y/n)','\x20Check\x20i','planatio','uXcBU','o\x20genera','KguXH','ed\x20on\x20th','10UyyHTL','tatus/di','--set-up','1342509cgIoQI','150wvTlsY','ream\x20con','8313288uvHfte','AI\x20is\x20th','d\x20files.','figured\x20','rent\x20bra','Plsmq','ePWWq','SKIPPED','PcXWE','inking\x20a','(((.+)+)','e\x20in\x20Eng','efgpy','log','lish,\x20wi','n\x20ONLY\x20t','Commit\x20u','RdwyN','eIURC','tor','was\x20not\x20','\x0a\x20\x20\x20\x20Bas','o\x20push\x20\x22','pbKFK'];_0x538c=function(){return _0x1eba41;};return _0x538c();}function _0x298f(_0x45e3b4,_0x1e9ecb){_0x45e3b4=_0x45e3b4-0x89;const _0x7a6454=_0x538c();let _0x106f8c=_0x7a6454[_0x45e3b4];return _0x106f8c;}import{failAndExit,ok,section,style,warn,ui,withProgress}from'../ui.js';function getLLM(){const _0x59b9c0=_0x298f,_0x34ae5f={'KguXH':function(_0x16e948){return _0x16e948();},'IozJd':function(_0x5754b5,_0x1a930a){return _0x5754b5 instanceof _0x1a930a;},'TgtgN':function(_0x5eae5a,_0x5e3ce1){return _0x5eae5a(_0x5e3ce1);}};try{return _0x34ae5f[_0x59b9c0(0xca)](createLLM);}catch(_0x173af9){const _0x2515d8=_0x34ae5f[_0x59b9c0(0xbb)](_0x173af9,Error)?_0x173af9[_0x59b9c0(0x8e)]:_0x34ae5f[_0x59b9c0(0x9f)](String,_0x173af9);failAndExit(_0x2515d8);}}async function maybePushCurrentBranch(){const _0xb4e7a3=_0x298f,_0x33cc8f={'ePWWq':function(_0x25a315,_0x38599){return _0x25a315(_0x38599);},'efgpy':_0xb4e7a3(0xbd)+_0xb4e7a3(0x94)+_0xb4e7a3(0x8b)+'\x20Check\x20i'+_0xb4e7a3(0xfa)+_0xb4e7a3(0xf1)+_0xb4e7a3(0xd4),'HTpzM':function(_0x2d71d0){return _0x2d71d0();},'zfuJr':function(_0x3e07da,_0x3df488,_0x59b7b1,_0x3638c7){return _0x3e07da(_0x3df488,_0x59b7b1,_0x3638c7);},'jYFLS':_0xb4e7a3(0xb8),'Jutpd':_0xb4e7a3(0x99),'PcXWE':_0xb4e7a3(0xa3),'TvuVN':function(_0x594119,_0x3a551d){return _0x594119(_0x3a551d);},'OiPvj':_0xb4e7a3(0xd9),'qcQci':_0xb4e7a3(0x97),'uBZmW':_0xb4e7a3(0xf6),'ZVJwP':function(_0x463205,_0x3e1563){return _0x463205(_0x3e1563);}},_0x48e549=getCurrentBranch(),_0x2b32ce=_0x33cc8f['HTpzM'](getUpstreamInfo);if(_0x2b32ce){const _0x3f6a69=await _0x33cc8f[_0xb4e7a3(0xd8)](askConfirmation,_0xb4e7a3(0xef)+_0xb4e7a3(0xd6)+_0xb4e7a3(0xb4)+_0x48e549+_0xb4e7a3(0xc4)+_0x2b32ce[_0xb4e7a3(0xa1)]+(_0xb4e7a3(0xfb)+'y/N):\x20'));if(!_0x3f6a69)return;try{_0x33cc8f['zfuJr'](execFileSync,_0x33cc8f[_0xb4e7a3(0xb9)],[_0x33cc8f['Jutpd'],_0x2b32ce[_0xb4e7a3(0x8d)],_0x48e549+':'+_0x2b32ce[_0xb4e7a3(0xf3)]],{'stdio':_0x33cc8f[_0xb4e7a3(0xda)]}),console[_0xb4e7a3(0xdf)](ok('OK')+(_0xb4e7a3(0xf2)+_0xb4e7a3(0x9e)+'to\x20')+_0x2b32ce[_0xb4e7a3(0xa1)]+'.');}catch{_0x33cc8f['TvuVN'](failAndExit,_0xb4e7a3(0xbd)+'o\x20push\x20t'+'o\x20'+_0x2b32ce[_0xb4e7a3(0xa1)]+'.');}return;}const _0x2c04b3=getDefaultRemote();if(!_0x2c04b3){console[_0xb4e7a3(0xdf)](warn(_0x33cc8f[_0xb4e7a3(0x95)])+(_0xb4e7a3(0xb3)+_0xb4e7a3(0xaf)+'onfigure'+_0xb4e7a3(0xac)+_0xb4e7a3(0xf9)+_0xb4e7a3(0xaa)));return;}const _0x30b63e=await askConfirmation('No\x20upstr'+_0xb4e7a3(0xf7)+'d.\x20Push\x20'+'\x22'+_0x48e549+'\x22\x20to\x20\x22'+_0x2c04b3+'/'+_0x48e549+(_0xb4e7a3(0xa9)+_0xb4e7a3(0xc2)+_0xb4e7a3(0x101)+'):\x20'));if(!_0x30b63e){if(_0x33cc8f['qcQci']===_0x33cc8f[_0xb4e7a3(0xa4)])_0x33cc8f['ePWWq'](_0x2c538c,_0x33cc8f[_0xb4e7a3(0xde)]);else return;}try{_0x33cc8f[_0xb4e7a3(0x96)](execFileSync,_0x33cc8f[_0xb4e7a3(0xb9)],[_0x33cc8f['Jutpd'],_0xb4e7a3(0xce)+_0xb4e7a3(0x9b),_0x2c04b3,_0x48e549],{'stdio':_0x33cc8f[_0xb4e7a3(0xda)]}),console['log'](_0x33cc8f[_0xb4e7a3(0xc0)](ok,'OK')+(_0xb4e7a3(0xf2)+_0xb4e7a3(0x9e)+_0xb4e7a3(0xfd)+_0xb4e7a3(0xd1)+_0xb4e7a3(0xd5)+'(')+_0x2c04b3+'/'+_0x48e549+').');}catch{_0x33cc8f[_0xb4e7a3(0xa0)](failAndExit,'Failed\x20t'+_0xb4e7a3(0xe8)+_0x48e549+'\x22\x20to\x20\x22'+_0x2c04b3+'\x22.');}}export async function generateCommit(){const _0x83f88c=_0x298f,_0x24cef4={'OmBPV':_0x83f88c(0xdc)+_0x83f88c(0x100),'JDvon':function(_0x48020c){return _0x48020c();},'orQUv':function(_0x24e768){return _0x24e768();},'aBijZ':function(_0x5ecf59,_0x342d68,_0x5d7311){return _0x5ecf59(_0x342d68,_0x5d7311);},'QbNUt':_0x83f88c(0xd3)+_0x83f88c(0xdb)+_0x83f88c(0xfe)+_0x83f88c(0xff)+_0x83f88c(0x93)+'.','GajKW':function(_0x2fe1c1,_0x517302){return _0x2fe1c1(_0x517302);},'EZuPG':'Failed\x20t'+_0x83f88c(0xc9)+'te\x20commi'+_0x83f88c(0x8f)+'e.','pbKFK':_0x83f88c(0xe2)+'sing\x20thi'+_0x83f88c(0xb1)+_0x83f88c(0xc5)+':\x20','eXcTA':function(_0x3e2e78,_0x2cca35,_0xc11bfe,_0x1af4bf){return _0x3e2e78(_0x2cca35,_0xc11bfe,_0x1af4bf);},'kapzr':_0x83f88c(0xb8),'odaMb':_0x83f88c(0x9c),'RCtyg':_0x83f88c(0xa3),'DxqAq':function(_0x544f08,_0x2d041d){return _0x544f08!==_0x2d041d;},'uXcBU':_0x83f88c(0xba),'TtLWV':_0x83f88c(0xbd)+'o\x20create'+'\x20commit.'+_0x83f88c(0xc6)+_0x83f88c(0xfa)+_0x83f88c(0xf1)+_0x83f88c(0xd4)},_0x306175=_0x24cef4[_0x83f88c(0xc1)](getLLM),_0x30af2=_0x24cef4[_0x83f88c(0xed)](getGitStatus),_0x16d0a7=_0x83f88c(0xe7)+_0x83f88c(0xcb)+_0x83f88c(0xc3)+_0x83f88c(0xcd)+'ff,\x20writ'+_0x83f88c(0xb2)+'it\x20messa'+_0x83f88c(0x91)+_0x83f88c(0xbc)+'ional\x20Co'+_0x83f88c(0xeb)+_0x83f88c(0x98)+_0x83f88c(0xe1)+_0x83f88c(0xbe)+_0x83f88c(0x8f)+_0x83f88c(0xdd)+_0x83f88c(0xe0)+_0x83f88c(0xae)+_0x83f88c(0xc7)+_0x83f88c(0x90)+'\x20'+_0x30af2+_0x83f88c(0xb5),_0x27ccf9=await _0x24cef4[_0x83f88c(0x8c)](withProgress,_0x24cef4[_0x83f88c(0x89)],()=>_0x306175[_0x83f88c(0xab)](_0x16d0a7)),_0x11a8ba=_0x24cef4['GajKW'](extractMessageText,_0x27ccf9[_0x83f88c(0xa5)]);!_0x11a8ba&&_0x24cef4[_0x83f88c(0xf8)](failAndExit,_0x24cef4[_0x83f88c(0xea)]);_0x24cef4[_0x83f88c(0xf8)](section,'SUGGESTE'+'D\x20COMMIT'),console[_0x83f88c(0xdf)](style(_0x11a8ba,ui[_0x83f88c(0xb0)])),console[_0x83f88c(0xdf)]();const _0x1a8160=await _0x24cef4[_0x83f88c(0x8c)](askConfirmation,_0x24cef4[_0x83f88c(0xe9)],{'defaultYes':!![]});if(!_0x1a8160){console[_0x83f88c(0xdf)](_0x24cef4['GajKW'](warn,_0x83f88c(0x9a))+('\x20Commit\x20'+_0x83f88c(0xe6)+'created.'));return;}try{_0x24cef4['eXcTA'](execFileSync,_0x24cef4['kapzr'],[_0x24cef4['odaMb'],'-m',_0x11a8ba],{'stdio':_0x24cef4[_0x83f88c(0xec)]});}catch{if(_0x24cef4['DxqAq'](_0x24cef4[_0x83f88c(0xc8)],_0x24cef4[_0x83f88c(0xc8)]))return _0x1bcd74[_0x83f88c(0xf0)]()[_0x83f88c(0x92)](ZTMduq['OmBPV'])[_0x83f88c(0xf0)]()[_0x83f88c(0xad)+'tor'](_0x11814e)[_0x83f88c(0x92)](ZTMduq[_0x83f88c(0x8a)]);else _0x24cef4['GajKW'](failAndExit,_0x24cef4[_0x83f88c(0xbf)]);}await _0x24cef4[_0x83f88c(0xc1)](maybePushCurrentBranch);}
@@ -0,0 +1 @@
1
+ (function(_0x3c7b56,_0x54689d){const _0x16a317=_0x3304,_0x53af6e=_0x3c7b56();while(!![]){try{const _0x241fc9=-parseInt(_0x16a317(0x1cf))/0x1*(-parseInt(_0x16a317(0x1d3))/0x2)+-parseInt(_0x16a317(0x1fe))/0x3*(parseInt(_0x16a317(0x1d8))/0x4)+parseInt(_0x16a317(0x19d))/0x5*(parseInt(_0x16a317(0x203))/0x6)+parseInt(_0x16a317(0x1bb))/0x7+-parseInt(_0x16a317(0x1bf))/0x8+parseInt(_0x16a317(0x199))/0x9*(-parseInt(_0x16a317(0x1ce))/0xa)+parseInt(_0x16a317(0x206))/0xb;if(_0x241fc9===_0x54689d)break;else _0x53af6e['push'](_0x53af6e['shift']());}catch(_0xc170ab){_0x53af6e['push'](_0x53af6e['shift']());}}}(_0x2946,0x3b25f));const _0x2c1049=(function(){const _0x31312e=_0x3304,_0x11da91={'WqQGq':'Setup\x20ca'+'nceled.','PpZDc':function(_0x511708,_0x5354db){return _0x511708===_0x5354db;},'ZtMkq':'YgIsc','myQth':_0x31312e(0x1af)};let _0x948c27=!![];return function(_0x462121,_0x22942c){const _0x39944a=_0x31312e,_0x47c1b7={'tsRWt':_0x11da91[_0x39944a(0x1b2)],'zXwhW':function(_0x1d1877,_0xfd6009){const _0x227769=_0x39944a;return _0x11da91[_0x227769(0x1e1)](_0x1d1877,_0xfd6009);},'sDdeK':_0x11da91[_0x39944a(0x193)],'ddADh':_0x11da91[_0x39944a(0x1ae)]},_0x3097d7=_0x948c27?function(){const _0x4aad51=_0x39944a;if(_0x47c1b7[_0x4aad51(0x1c6)](_0x47c1b7['sDdeK'],_0x47c1b7[_0x4aad51(0x198)])){_0x56cf7a['log'](_0x47c1b7[_0x4aad51(0x1e6)]);return;}else{if(_0x22942c){const _0x4663bc=_0x22942c[_0x4aad51(0x1ee)](_0x462121,arguments);return _0x22942c=null,_0x4663bc;}}}:function(){};return _0x948c27=![],_0x3097d7;};}()),_0x56e95b=_0x2c1049(this,function(){const _0x43a612=_0x3304,_0x3e2bde={'qwwvQ':_0x43a612(0x1d0)+_0x43a612(0x1cd)};return _0x56e95b['toString']()[_0x43a612(0x1ab)](_0x3e2bde[_0x43a612(0x1f1)])[_0x43a612(0x1d1)]()[_0x43a612(0x1ed)+'tor'](_0x56e95b)['search'](_0x3e2bde[_0x43a612(0x1f1)]);});_0x56e95b();import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';function _0x2946(){const _0x3b655e=['+)+$','10rhgkLa','189409JNJOtf','(((.+)+)','toString','ogle,\x20op','4Oozzaw','BINjG','verrides','GiIRa','aved\x20to\x20','44XyCxuv','ic.','L\x20\x20\x20\x20\x20\x20','ANTHROPI','ShQbB','\x20exists.','Global\x20.','PI_KEY','GOOGLE_A','PpZDc','CbCSE','join','GfXKm','iFuWQ','tsRWt','le]:\x20','Invalid\x20','SlvXE','nMKMh','PUnPc','invalid','construc','apply','qKxHc','IDER=\x22','qwwvQ','nsaFP','.env','):\x20','Y=\x22','nceled.','LLM_PROV','UQtVN','CMnZw','aVfID','found','iHilR','XxCJW','124683hbBwHI','openai','aCdzi','GXyIm','C_API_KE','3618xQbily','WJHsH','ase','976107pwYsvg','Yirsz','not\x20foun','otMRd','missing/','BGygH','enai,\x20or','GEMINI_A','JbIPz','ZtMkq','found\x20(o','env\x20\x20\x20\x20\x20','Setup\x20ca','set','ddADh','707634MLbeoM','RfXEZ','fGeSO','google','2455wMCbOS','agVFP','padEnd','\x20Configu','local','gCQYU','PI_KEY\x20','\x20already','GSVtL','BPusu','opFwV','uKyjt','ration\x20s','EnZKU','search','spgGr','DtjvO','myQth','xwazI','.\x20Use\x20go','\x20global)','WqQGq','yVAxm','log','claude-3','gICxK','.5-flash','Provider','/openai/','mPGwR','2900212GOKGXH','c)\x20[goog','ICS','missing','3199008gdoQVk','aXFVJ','OPENAI_A','KRYOY','ORiQb','PI_KEY=\x22','QhGEG','zXwhW','L=\x22','LLM_MODE','toLowerC','jQiLu','OPhki','anthropi'];_0x2946=function(){return _0x3b655e;};return _0x2946();}function _0x3304(_0x193470,_0x5a2cb8){_0x193470=_0x193470-0x192;const _0x171be2=_0x2946();let _0x56e95b=_0x171be2[_0x193470];return _0x56e95b;}import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{failAndExit,section,ok,warn,bad}from'../ui.js';function getProviderKeyName(_0x57951a){const _0x67fa46=_0x3304,_0x46e1db={'ORiQb':function(_0xb10e15,_0x15a041){return _0xb10e15===_0x15a041;},'oDulx':_0x67fa46(0x19c),'BGygH':_0x67fa46(0x1e0)+_0x67fa46(0x1df),'Yirsz':_0x67fa46(0x1c1)+'PI_KEY','iHilR':_0x67fa46(0x1db)+'C_API_KE'+'Y'};if(_0x46e1db[_0x67fa46(0x1c3)](_0x57951a,_0x46e1db['oDulx']))return _0x46e1db[_0x67fa46(0x20b)];if(_0x57951a===_0x67fa46(0x1ff))return _0x46e1db[_0x67fa46(0x207)];return _0x46e1db[_0x67fa46(0x1fc)];}export async function initConfig(_0x549d8e={}){const _0x2cfcbb=_0x3304,_0x40515b={'GSVtL':_0x2cfcbb(0x1f3),'qKxHc':function(_0x564ce0,_0x522f34){return _0x564ce0(_0x522f34);},'JbIPz':_0x2cfcbb(0x196)+_0x2cfcbb(0x1f6),'XxCJW':_0x2cfcbb(0x1b8)+'\x20(google'+_0x2cfcbb(0x1b9)+'anthropi'+_0x2cfcbb(0x1bc)+_0x2cfcbb(0x1e7),'CbCSE':function(_0x40940a,_0x2856e6){return _0x40940a||_0x2856e6;},'KRYOY':_0x2cfcbb(0x19c),'BPusu':function(_0x5604ff,_0x58bde7){return _0x5604ff!==_0x58bde7;},'gCQYU':function(_0x556a36,_0x1866a3){return _0x556a36!==_0x1866a3;},'spgGr':_0x2cfcbb(0x1ff),'pBkKs':function(_0x54d327,_0x21babb){return _0x54d327!==_0x21babb;},'UQtVN':function(_0x26f5cb,_0x4f19f5){return _0x26f5cb(_0x4f19f5);},'vVZOU':_0x2cfcbb(0x1e8)+'provider'+_0x2cfcbb(0x1b0)+_0x2cfcbb(0x1d2)+_0x2cfcbb(0x20c)+'\x20anthrop'+_0x2cfcbb(0x1d9),'RfXEZ':'gemini-2'+_0x2cfcbb(0x1b7),'GfXKm':function(_0x325d5b,_0xae0015){return _0x325d5b===_0xae0015;},'aCdzi':'gpt-4o-m'+'ini','omkoH':_0x2cfcbb(0x1b5)+'-5-sonne'+'t-latest','qaDFJ':function(_0x40a46f,_0x3f093f){return _0x40a46f(_0x3f093f);},'WJHsH':function(_0x2a23e0,_0x56afbd){return _0x2a23e0(_0x56afbd);},'ShQbB':_0x2cfcbb(0x20d)+_0x2cfcbb(0x1c4)+'\x22','iFuWQ':'anthropi'+'c','nMKMh':function(_0xda6a4c,_0x326867){return _0xda6a4c(_0x326867);},'opFwV':'utf8'},_0x2e8eb9=_0x549d8e[_0x2cfcbb(0x1a1)]?_0x40515b[_0x2cfcbb(0x1a5)]:getGlobalEnvPath();if(_0x40515b[_0x2cfcbb(0x1ef)](existsSync,_0x2e8eb9)){const _0x2739f3=await _0x40515b['qKxHc'](askConfirmation,_0x2e8eb9+(_0x2cfcbb(0x1a4)+_0x2cfcbb(0x1dd)+'\x20Overwri'+'te?\x20(y/n'+_0x2cfcbb(0x1f4)));if(!_0x2739f3){console[_0x2cfcbb(0x1b4)](_0x40515b[_0x2cfcbb(0x192)]);return;}}const _0x197956=await _0x40515b[_0x2cfcbb(0x1ef)](askInput,_0x40515b[_0x2cfcbb(0x1fd)]),_0x44e8b6=_0x40515b[_0x2cfcbb(0x1e2)](_0x197956,_0x40515b['KRYOY'])['toLowerC'+_0x2cfcbb(0x205)]();_0x40515b[_0x2cfcbb(0x1a6)](_0x44e8b6,_0x40515b[_0x2cfcbb(0x1c2)])&&_0x40515b[_0x2cfcbb(0x1a2)](_0x44e8b6,_0x40515b['spgGr'])&&_0x40515b['pBkKs'](_0x44e8b6,_0x2cfcbb(0x1cc)+'c')&&_0x40515b[_0x2cfcbb(0x1f8)](failAndExit,_0x40515b['vVZOU']);const _0x5af992=_0x44e8b6,_0x224b93=_0x5af992==='google'?_0x40515b[_0x2cfcbb(0x19a)]:_0x40515b[_0x2cfcbb(0x1e4)](_0x5af992,_0x40515b[_0x2cfcbb(0x1ac)])?_0x40515b[_0x2cfcbb(0x200)]:_0x40515b['omkoH'],_0xfba746=await askInput('Model\x20['+_0x224b93+']:\x20')||_0x224b93,_0x3c701b=_0x40515b['qaDFJ'](getProviderKeyName,_0x5af992),_0x21240f=await _0x40515b[_0x2cfcbb(0x204)](askInput,_0x3c701b+':\x20'),_0x36831b=[_0x2cfcbb(0x1f7)+_0x2cfcbb(0x1f0)+_0x5af992+'\x22',_0x2cfcbb(0x1c8)+_0x2cfcbb(0x1c7)+_0xfba746+'\x22','',_0x2cfcbb(0x1e0)+'PI_KEY=\x22'+(_0x40515b[_0x2cfcbb(0x1e4)](_0x5af992,_0x40515b[_0x2cfcbb(0x1c2)])?_0x21240f:'')+'\x22',_0x40515b[_0x2cfcbb(0x1dc)],_0x2cfcbb(0x1c1)+_0x2cfcbb(0x1c4)+(_0x5af992===_0x40515b[_0x2cfcbb(0x1ac)]?_0x21240f:'')+'\x22','ANTHROPI'+_0x2cfcbb(0x202)+_0x2cfcbb(0x1f5)+(_0x40515b['GfXKm'](_0x5af992,_0x40515b[_0x2cfcbb(0x1e5)])?_0x21240f:'')+'\x22',''][_0x2cfcbb(0x1e3)]('\x0a');mkdirSync(_0x40515b[_0x2cfcbb(0x1ea)](dirname,_0x2e8eb9),{'recursive':!![]}),writeFileSync(_0x2e8eb9,_0x36831b,_0x40515b[_0x2cfcbb(0x1a7)]),console['log'](_0x40515b[_0x2cfcbb(0x1ef)](ok,'OK')+(_0x2cfcbb(0x1a0)+_0x2cfcbb(0x1a9)+_0x2cfcbb(0x1d7))+_0x2e8eb9+'.');}export function doctorConfig(){const _0xb99661=_0x3304,_0x77a28c={'PUnPc':_0xb99661(0x1f3),'GXyIm':function(_0x1ea48d,_0x1201e4){return _0x1ea48d(_0x1201e4);},'gICxK':function(_0x4ddcc0,_0x35d064){return _0x4ddcc0===_0x35d064;},'otMRd':function(_0x2c847e,_0x475383){return _0x2c847e(_0x475383);},'OPhki':'google','agVFP':function(_0xa9ee75,_0x96c159){return _0xa9ee75===_0x96c159;},'aXFVJ':_0xb99661(0x1ff),'mPGwR':function(_0x232fcf,_0xcdb3b7){return _0x232fcf===_0xcdb3b7;},'jQiLu':_0xb99661(0x1cc)+'c','DtjvO':function(_0xdcd748,_0x426479){return _0xdcd748(_0x426479);},'GiIRa':'API_KEY','EnZKU':function(_0x5e9e8b,_0x3c4e1a){return _0x5e9e8b(_0x3c4e1a);},'CMnZw':'DIAGNOST'+_0xb99661(0x1bd),'fGeSO':_0xb99661(0x1fb),'nsaFP':'missing','QhGEG':_0xb99661(0x194)+_0xb99661(0x1d5)+_0xb99661(0x1b1),'uKyjt':function(_0x5351e4,_0x148420){return _0x5351e4(_0x148420);},'SlvXE':_0xb99661(0x208)+'d','BINjG':_0xb99661(0x20a)+_0xb99661(0x1ec),'aVfID':function(_0x5875a3,_0x184cd8){return _0x5875a3(_0x184cd8);},'PnZdy':function(_0x57e663,_0x4963f3){return _0x57e663(_0x4963f3);},'yVAxm':_0xb99661(0x197),'JHJiz':function(_0x1707aa,_0x5ad539){return _0x1707aa(_0x5ad539);},'zptff':function(_0x56845a,_0x2be8c8){return _0x56845a(_0x2be8c8);},'YCHNg':function(_0x417e37,_0xed945){return _0x417e37||_0xed945;}},_0x87f586=getGlobalEnvPath(),_0x227db7=_0x77a28c[_0xb99661(0x1eb)],_0x5ca5c7=_0x77a28c['GXyIm'](existsSync,_0x227db7),_0x44a679=_0x77a28c[_0xb99661(0x201)](existsSync,_0x87f586),_0x1ac7b1=(process.env.LLM_PROVIDER||'')[_0xb99661(0x1c9)+_0xb99661(0x205)](),_0x3b3b02=process.env.LLM_MODEL||'',_0x117f02=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x3a6ed8=process.env.OPENAI_API_KEY||'',_0x111cd2=process.env.ANTHROPIC_API_KEY||'',_0x432b77=_0x77a28c['gICxK'](_0x1ac7b1,_0xb99661(0x19c))||_0x77a28c[_0xb99661(0x1b6)](_0x1ac7b1,_0xb99661(0x1ff))||_0x77a28c[_0xb99661(0x1b6)](_0x1ac7b1,_0xb99661(0x1cc)+'c'),_0x3511e3=_0x77a28c[_0xb99661(0x209)](Boolean,_0x3b3b02),_0x3b020d=_0x77a28c[_0xb99661(0x1b6)](_0x1ac7b1,_0x77a28c[_0xb99661(0x1cb)])?_0x117f02:_0x77a28c[_0xb99661(0x19e)](_0x1ac7b1,_0x77a28c[_0xb99661(0x1c0)])?_0x3a6ed8:_0x77a28c[_0xb99661(0x1ba)](_0x1ac7b1,_0x77a28c[_0xb99661(0x1ca)])?_0x111cd2:'',_0x405ab9=_0x432b77?_0x77a28c[_0xb99661(0x1ad)](getProviderKeyName,_0x1ac7b1):_0x77a28c[_0xb99661(0x1d6)],_0x3f0adb=_0x77a28c[_0xb99661(0x1aa)](Boolean,_0x3b020d);section(_0x77a28c[_0xb99661(0x1f9)]),console[_0xb99661(0x1b4)](_0xb99661(0x1de)+'env\x20path'+'\x20'+_0x87f586),console['log'](_0xb99661(0x1de)+_0xb99661(0x195)+'\x20'+(_0x44a679?_0x77a28c[_0xb99661(0x1aa)](ok,_0x77a28c[_0xb99661(0x19b)]):_0x77a28c[_0xb99661(0x1aa)](warn,_0x77a28c[_0xb99661(0x1f2)]))),console[_0xb99661(0x1b4)]('Local\x20.e'+'nv\x20\x20\x20\x20\x20\x20'+'\x20'+(_0x5ca5c7?warn(_0x77a28c[_0xb99661(0x1c5)]):_0x77a28c['uKyjt'](ok,_0x77a28c[_0xb99661(0x1e9)]))),console[_0xb99661(0x1b4)](),console[_0xb99661(0x1b4)](_0xb99661(0x1f7)+'IDER\x20\x20\x20'+(_0x432b77?ok('ok'):_0x77a28c[_0xb99661(0x1aa)](bad,_0x77a28c[_0xb99661(0x1d4)]))),console[_0xb99661(0x1b4)](_0xb99661(0x1c8)+_0xb99661(0x1da)+(_0x3511e3?_0x77a28c[_0xb99661(0x1ad)](ok,'ok'):_0x77a28c[_0xb99661(0x1aa)](bad,_0x77a28c[_0xb99661(0x1f2)]))),console[_0xb99661(0x1b4)](_0x405ab9[_0xb99661(0x19f)](0xe,'\x20')+'\x20'+(_0x3f0adb?_0x77a28c[_0xb99661(0x1fa)](ok,'ok'):_0x77a28c[_0xb99661(0x1a8)](bad,_0xb99661(0x1be)))),console[_0xb99661(0x1b4)](_0xb99661(0x1e0)+_0xb99661(0x1a3)+(_0x117f02?_0x77a28c['PnZdy'](ok,_0x77a28c[_0xb99661(0x1b3)]):warn(_0x77a28c[_0xb99661(0x1f2)]))),console['log'](_0xb99661(0x1c1)+_0xb99661(0x1a3)+(_0x3a6ed8?_0x77a28c['JHJiz'](ok,_0x77a28c[_0xb99661(0x1b3)]):_0x77a28c['zptff'](warn,_0x77a28c['nsaFP']))),console[_0xb99661(0x1b4)]('ANTHROPI'+_0xb99661(0x202)+'Y\x20'+(_0x111cd2?_0x77a28c[_0xb99661(0x209)](ok,_0x77a28c[_0xb99661(0x1b3)]):_0x77a28c['GXyIm'](warn,_0x77a28c[_0xb99661(0x1f2)]))),console[_0xb99661(0x1b4)](),(_0x77a28c['YCHNg'](!_0x432b77,!_0x3511e3)||!_0x3f0adb)&&(process['exitCode']=0x1);}
@@ -0,0 +1 @@
1
+ (function(_0x14e72a,_0x2dccf4){const _0x4c69a6=_0x57ec,_0x315e0d=_0x14e72a();while(!![]){try{const _0x40760c=-parseInt(_0x4c69a6(0xe2))/0x1+parseInt(_0x4c69a6(0xfc))/0x2*(parseInt(_0x4c69a6(0xc3))/0x3)+-parseInt(_0x4c69a6(0xd9))/0x4*(parseInt(_0x4c69a6(0x117))/0x5)+-parseInt(_0x4c69a6(0xf4))/0x6*(-parseInt(_0x4c69a6(0x11e))/0x7)+parseInt(_0x4c69a6(0x113))/0x8+parseInt(_0x4c69a6(0x111))/0x9*(parseInt(_0x4c69a6(0xdb))/0xa)+parseInt(_0x4c69a6(0xd3))/0xb*(parseInt(_0x4c69a6(0xe6))/0xc);if(_0x40760c===_0x2dccf4)break;else _0x315e0d['push'](_0x315e0d['shift']());}catch(_0x3c0428){_0x315e0d['push'](_0x315e0d['shift']());}}}(_0x5e7b,0x31e0c));const _0x542465=(function(){const _0x5e1aaa=_0x57ec,_0x34364b={'GmFMF':function(_0x5327d4){return _0x5327d4();},'IrnOo':function(_0x39e409,_0x2b584d){return _0x39e409 instanceof _0x2b584d;},'aItBf':_0x5e1aaa(0xf1),'MEGmH':function(_0x138996,_0x5127a9){return _0x138996===_0x5127a9;}};let _0x3a57e1=!![];return function(_0x1b61c7,_0x26fb97){const _0xfe47a7=_0x5e1aaa;if(_0x34364b[_0xfe47a7(0xe7)]('tqbvo','lRpHq'))try{return _0x34364b['GmFMF'](_0x3a7dfa);}catch(_0x149af9){const _0x295688=_0x34364b[_0xfe47a7(0xe9)](_0x149af9,_0xc41578)?_0x149af9[_0xfe47a7(0x10a)]:_0x165a93(_0x149af9);_0x1a5b6c(_0x295688);}else{const _0x755dab=_0x3a57e1?function(){const _0x3f215c=_0xfe47a7,_0x3498bd={'zOnUY':'(((.+)+)'+_0x3f215c(0x120)};if(_0x26fb97){if(_0x34364b[_0x3f215c(0xff)]===_0x3f215c(0xcc))return _0x251633[_0x3f215c(0x10e)]()[_0x3f215c(0xd4)](_0x3498bd['zOnUY'])[_0x3f215c(0x10e)]()[_0x3f215c(0xe5)+_0x3f215c(0x115)](_0x125d4b)[_0x3f215c(0xd4)](_0x3498bd[_0x3f215c(0xc4)]);else{const _0x373a32=_0x26fb97[_0x3f215c(0x104)](_0x1b61c7,arguments);return _0x26fb97=null,_0x373a32;}}}:function(){};return _0x3a57e1=![],_0x755dab;}};}()),_0x503dd4=_0x542465(this,function(){const _0x1a3031=_0x57ec,_0x266b44={'JrXFs':'(((.+)+)'+'+)+$'};return _0x503dd4['toString']()['search'](_0x266b44[_0x1a3031(0xd6)])[_0x1a3031(0x10e)]()[_0x1a3031(0xe5)+_0x1a3031(0x115)](_0x503dd4)['search'](_0x266b44['JrXFs']);});_0x503dd4();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,section,withProgress}from'../ui.js';function _0x57ec(_0x119d7a,_0x109aaf){_0x119d7a=_0x119d7a-0xc1;const _0x21b780=_0x5e7b();let _0x503dd4=_0x21b780[_0x119d7a];return _0x503dd4;}function getLLM(){const _0x3e8fbb=_0x57ec,_0xc87945={'pBlhP':function(_0x52eb8b,_0x5530b2){return _0x52eb8b instanceof _0x5530b2;},'TwWqA':function(_0x1c44d4,_0x51e313){return _0x1c44d4(_0x51e313);},'sJjns':function(_0x28bcd1,_0x19bcc6){return _0x28bcd1(_0x19bcc6);},'XNhSh':'IhXTx','RGFlY':function(_0x59ac22,_0x3ddedf){return _0x59ac22 instanceof _0x3ddedf;}};try{return createLLM();}catch(_0x4a8c18){if(_0xc87945['XNhSh']!==_0xc87945[_0x3e8fbb(0xf9)]){const _0x20ca24=_0xc87945[_0x3e8fbb(0xfe)](_0x3e7919,_0x518b4d)?_0x11323e[_0x3e8fbb(0x10a)]:_0xc87945['TwWqA'](_0x4411b8,_0x585a99);_0xc87945[_0x3e8fbb(0xcd)](_0x37a887,_0x20ca24);}else{const _0x173077=_0xc87945['RGFlY'](_0x4a8c18,Error)?_0x4a8c18['message']:_0xc87945[_0x3e8fbb(0xcd)](String,_0x4a8c18);_0xc87945[_0x3e8fbb(0xf6)](failAndExit,_0x173077);}}}function _0x5e7b(){const _0x2e4ee2=['sta\x20com\x20','7fpiTiU','RiPVd','+)+$','cido\x0a\x0aCo','AI\x20is\x20su','Changed\x20','join','21vMUXcX','zOnUY','mmarizin','(none)','a\x20fora\x20d','Commits:','\x20Nao\x20inv','changedF','bullets\x20','bGmSM','sJjns','\x20feito\x20n','cipais\x20m','commits','ente\x20nad','ssivel\x0a-','49863YfNgAX','search','baseRef','JrXFs','h\x20summar','\x0aResuma\x20','8956OoXbvC','TmLMc','40DQIiEc','map','body','gues\x20do\x20','ecnico\x20q','DVvkC','o\x20genera','370035WZSZMP','length','content','construc','60QqsceQ','MEGmH','nch.\x0aReg','IrnOo','ch\x20again','nch:\x20','se\x20lingu','uando\x20po','Failed\x20t','g\x20branch','replace','iYoiR','Base\x20bra','\x20que\x20foi','2212374IIHDdl','este\x20bra','TwWqA','ztvBC','BRANCH\x20S','XNhSh','o\x20branch','to\x20forne','33676awQhWk','bjetiva\x0a','pBlhP','aItBf','rto\x20+\x20li','branch:\x20','wbtza','\x20|\x20body:','apply','cosCk','diffStat','slice','invoke','em\x20portu','message','\x20on\x20curr','files:','iles','toString','mpacto\x20t','vPoPo','280458ZaeFGs','te\x20branc','329456hynJIC','eNiMn','tor','UMMARY','225NkQKRr','ntexto\x20d','KqLJc','trim','dBnpq','ts\x20found'];_0x5e7b=function(){return _0x2e4ee2;};return _0x5e7b();}function formatBranchContextForPrompt(){const _0x514ebc=_0x57ec,_0x1d5de9={'cosCk':function(_0x47fd08){return _0x47fd08();},'eNiMn':function(_0x3a602b,_0x5d72ea){return _0x3a602b(_0x5d72ea);},'jVeSI':_0x514ebc(0xc1)+_0x514ebc(0x10c),'KqLJc':_0x514ebc(0xc6),'RiPVd':'Diff\x20sta'+'t:'},_0x1704e0=_0x1d5de9['cosCk'](getBranchContext);_0x1704e0[_0x514ebc(0xd0)][_0x514ebc(0xe3)]===0x0&&_0x1d5de9[_0x514ebc(0x114)](failAndExit,'No\x20commi'+_0x514ebc(0x11c)+_0x514ebc(0x10b)+'ent\x20bran'+_0x514ebc(0xea)+'st\x20'+_0x1704e0[_0x514ebc(0xd5)]+'.');const _0x34a642=_0x1704e0[_0x514ebc(0xd0)][_0x514ebc(0xdc)](_0x2f3cf4=>{const _0x20ed52=_0x514ebc,_0xcdcce5=_0x2f3cf4[_0x20ed52(0xdd)]?_0x20ed52(0x103)+'\x20'+_0x2f3cf4[_0x20ed52(0xdd)][_0x20ed52(0xf0)](/\s+/g,'\x20')[_0x20ed52(0x11a)]():'';return'-\x20'+_0x2f3cf4['hash'][_0x20ed52(0x107)](0x0,0x7)+'\x20|\x20'+_0x2f3cf4['subject']+_0xcdcce5;});return['Current\x20'+_0x514ebc(0x101)+_0x1d5de9[_0x514ebc(0x105)](getCurrentBranch),_0x514ebc(0xf2)+_0x514ebc(0xeb)+_0x1704e0[_0x514ebc(0xd5)],'',_0x514ebc(0xc8),..._0x34a642,'',_0x1d5de9['jVeSI'],_0x1704e0[_0x514ebc(0xca)+_0x514ebc(0x10d)]||_0x1d5de9[_0x514ebc(0x119)],'',_0x1d5de9[_0x514ebc(0x11f)],_0x1704e0[_0x514ebc(0x106)]||_0x1d5de9[_0x514ebc(0x119)]][_0x514ebc(0xc2)]('\x0a');}export async function summarizeBranchLog(){const _0x585331=_0x57ec,_0x32484f={'vPoPo':function(_0x1e3f7a){return _0x1e3f7a();},'ztvBC':function(_0x3cd8c8){return _0x3cd8c8();},'TmLMc':function(_0x184417,_0x360fda,_0x277e3e){return _0x184417(_0x360fda,_0x277e3e);},'wbtza':_0x585331(0x122)+_0x585331(0xc5)+_0x585331(0xef)+'\x20work...','dBnpq':function(_0x271a07,_0x21d860){return _0x271a07(_0x21d860);},'DVvkC':function(_0x1047cb,_0x20e658){return _0x1047cb(_0x20e658);}};_0x32484f[_0x585331(0x110)](getGitStatus);const _0x288e00=_0x32484f['vPoPo'](getLLM),_0xa54fe3=_0x32484f[_0x585331(0xf7)](formatBranchContextForPrompt),_0x3611f3=(_0x585331(0xd8)+_0x585331(0x109)+_0x585331(0xde)+'Brasil\x20o'+_0x585331(0xf3)+_0x585331(0xce)+_0x585331(0xf5)+_0x585331(0xe8)+'ras:\x0a-\x20U'+_0x585331(0xec)+'agem\x20nat'+'ural\x20e\x20o'+_0x585331(0xfd)+'-\x201\x20para'+'grafo\x20cu'+_0x585331(0x100)+_0x585331(0x11d)+_0x585331(0xcb)+'das\x20prin'+_0x585331(0xcf)+'udancas\x0a'+'-\x20Cite\x20i'+_0x585331(0x10f)+_0x585331(0xdf)+_0x585331(0xed)+_0x585331(0xd2)+_0x585331(0xc9)+_0x585331(0xd1)+_0x585331(0xc7)+'o\x20contex'+_0x585331(0xfb)+_0x585331(0x121)+_0x585331(0x118)+_0x585331(0xfa)+':\x0a'+_0xa54fe3+'\x0a')[_0x585331(0x11a)](),_0x1ff4e3=await _0x32484f[_0x585331(0xda)](withProgress,_0x32484f[_0x585331(0x102)],()=>_0x288e00[_0x585331(0x108)](_0x3611f3)),_0x41904d=extractMessageText(_0x1ff4e3[_0x585331(0xe4)]);!_0x41904d&&_0x32484f[_0x585331(0x11b)](failAndExit,_0x585331(0xee)+_0x585331(0xe1)+_0x585331(0x112)+_0x585331(0xd7)+'y.'),_0x32484f[_0x585331(0xe0)](section,_0x585331(0xf8)+_0x585331(0x116)),console['log'](_0x41904d),console['log']();}
@@ -0,0 +1 @@
1
+ (function(_0xb1f85d,_0x878be7){const _0x5f1a81=_0x814a,_0x17f9fb=_0xb1f85d();while(!![]){try{const _0x37240c=parseInt(_0x5f1a81(0x17d))/0x1+-parseInt(_0x5f1a81(0x178))/0x2*(-parseInt(_0x5f1a81(0x110))/0x3)+-parseInt(_0x5f1a81(0x12d))/0x4+-parseInt(_0x5f1a81(0x162))/0x5+parseInt(_0x5f1a81(0x154))/0x6+parseInt(_0x5f1a81(0x123))/0x7+parseInt(_0x5f1a81(0x11f))/0x8*(-parseInt(_0x5f1a81(0x116))/0x9);if(_0x37240c===_0x878be7)break;else _0x17f9fb['push'](_0x17f9fb['shift']());}catch(_0x7423cd){_0x17f9fb['push'](_0x17f9fb['shift']());}}}(_0x203c,0xb082b));function _0x203c(){const _0x5a15a8=['Commits:','TLE:\x20<ti','find','ch\x20again','ecQjO','log','descript','map','Current\x20','278UemNTV','KgsLW','nglish\x20(','branch:\x20','\x20on\x20curr','857799yCCPiv','below,\x20c','hGdkn','ion','ary,\x20Cha','Failed\x20t','sponse.','lCcpB','markdown','content','Base\x20bra','hash','stion\x20fr','eparing\x20','dypVv','not\x20incl','title','subject','ch\x20data\x20','sPgbv','sWpJb','slice','toLowerC','\x20A\x20conci','969CUzWUW',':\x0a<markd','nse\x20did\x20','search','trim','\x20this\x20fo','3420054xjXxDg','bold','findInde','a:\x0a','toString','qhuEz','CRIPTION','apply','message','24nLqiPH','reate:\x0a-','own>\x0a\x0aBr','NoMPW','3892728TAnyKb','BowWX','\x20and\x20des','(((.+)+)','AI\x20is\x20pr','ionqG','ase','A\x20clear\x20','UxKZK','PR\x20TITLE','3553584EeawYx','quest.\x0aB','baseRef','\x20Pull\x20Re','iNnxS','nch:\x20','\x20descrip','ude\x20vali','\x20|\x20body:','PR\x20DESCR','length','body','myEZz','ent\x20bran','actly\x20in','+)+$','cription','\x20generat','indexOf','the\x20bran','commits','DXskQ','ion:','xbwnu','tion\x20wit','construc','title:','xsRoX','Diff\x20sta','PR\x20sugge','startsWi','QGLjP','EMXWO','(none)','st\x20','hars)\x0a-\x20','rmat:\x0aTI','le/descr','Changed\x20','8200620IoAYbi','IPTION','tle>\x0aDES','changedF','o\x20parse\x20','ing\x20cont','No\x20commi','join','nges,\x20Te','...','o\x20genera','eturn\x20ex','tor','qtayI','370845PIPncS','files:','ns:\x20Summ','te\x20PR\x20co','ViipZ','ased\x20on\x20','ahLoa','d\x20PR\x20tit','ts\x20found','se\x20PR\x20ti','a\x20GitHub','bwLoI','max\x2072\x20c'];_0x203c=function(){return _0x5a15a8;};return _0x203c();}const _0x162c8f=(function(){const _0x7d8564=_0x814a,_0x409aea={'xbwnu':_0x7d8564(0x126)+'+)+$','sPgbv':function(_0x3a50ec,_0x1b40aa){return _0x3a50ec===_0x1b40aa;},'ZeYMf':'ySQvf','GqfOD':_0x7d8564(0x14d)};let _0x394766=!![];return function(_0x195647,_0x55d65a){const _0x274850=_0x394766?function(){const _0x4b1324=_0x814a,_0x4fded6={'myEZz':_0x409aea[_0x4b1324(0x144)]};if(_0x409aea[_0x4b1324(0x190)](_0x409aea['ZeYMf'],_0x409aea['GqfOD']))return _0x423b39[_0x4b1324(0x11a)]()[_0x4b1324(0x113)](_0x4fded6[_0x4b1324(0x139)])[_0x4b1324(0x11a)]()[_0x4b1324(0x146)+_0x4b1324(0x160)](_0x4e8da1)[_0x4b1324(0x113)](_0x4fded6[_0x4b1324(0x139)]);else{if(_0x55d65a){const _0x38e2aa=_0x55d65a[_0x4b1324(0x11d)](_0x195647,arguments);return _0x55d65a=null,_0x38e2aa;}}}:function(){};return _0x394766=![],_0x274850;};}()),_0x377174=_0x162c8f(this,function(){const _0x5649e5=_0x814a,_0x2b1727={'qhuEz':'(((.+)+)'+_0x5649e5(0x13c)};return _0x377174['toString']()[_0x5649e5(0x113)]('(((.+)+)'+_0x5649e5(0x13c))[_0x5649e5(0x11a)]()[_0x5649e5(0x146)+_0x5649e5(0x160)](_0x377174)[_0x5649e5(0x113)](_0x2b1727[_0x5649e5(0x11b)]);});_0x377174();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,section,style,ui,withProgress}from'../ui.js';function getLLM(){const _0x1a612f=_0x814a,_0x7a447c={'ecQjO':function(_0x12d32f){return _0x12d32f();},'sIDYv':function(_0x3c1158,_0x3dc623){return _0x3c1158 instanceof _0x3dc623;},'ionqG':function(_0x113715,_0x48fa23){return _0x113715(_0x48fa23);},'bwLoI':function(_0x4aac6b,_0x1c8d2a){return _0x4aac6b!==_0x1c8d2a;},'hKyod':_0x1a612f(0x142),'JzmQT':'kPgVI','xsRoX':function(_0x2df1f1){return _0x2df1f1();},'NoMPW':function(_0x2dc7ac,_0x48553b){return _0x2dc7ac(_0x48553b);},'ViipZ':function(_0x339750,_0x26d478){return _0x339750(_0x26d478);}};try{if(_0x7a447c[_0x1a612f(0x16d)](_0x7a447c['hKyod'],_0x7a447c['JzmQT']))return _0x7a447c[_0x1a612f(0x148)](createLLM);else try{return _0x7a447c[_0x1a612f(0x173)](_0x337dde);}catch(_0x292ab2){const _0x193e61=_0x7a447c['sIDYv'](_0x292ab2,_0x56b2f7)?_0x292ab2[_0x1a612f(0x11e)]:_0x7a447c[_0x1a612f(0x128)](_0xca503e,_0x292ab2);_0x2b68a7(_0x193e61);}}catch(_0x21504c){const _0x51159f=_0x7a447c['sIDYv'](_0x21504c,Error)?_0x21504c[_0x1a612f(0x11e)]:_0x7a447c[_0x1a612f(0x122)](String,_0x21504c);_0x7a447c[_0x1a612f(0x166)](failAndExit,_0x51159f);}}function _0x814a(_0x1bfea7,_0x49ffb2){_0x1bfea7=_0x1bfea7-0x10e;const _0x137dc3=_0x203c();let _0x377174=_0x137dc3[_0x1bfea7];return _0x377174;}function formatCommitsForPrompt(){const _0xe9bb09=_0x814a,_0x5d37a5={'dypVv':function(_0xc4140f){return _0xc4140f();},'UYKlG':function(_0x4957ee,_0x3375de){return _0x4957ee===_0x3375de;},'XxEaS':function(_0xf70b42,_0x5e3944){return _0xf70b42(_0x5e3944);},'MaBjk':function(_0x647206){return _0x647206();},'BowWX':_0xe9bb09(0x16f),'QGLjP':_0xe9bb09(0x149)+'t:'},_0x171667=_0x5d37a5[_0xe9bb09(0x18b)](getBranchContext);_0x5d37a5['UYKlG'](_0x171667['commits'][_0xe9bb09(0x137)],0x0)&&_0x5d37a5['XxEaS'](failAndExit,_0xe9bb09(0x15a)+_0xe9bb09(0x16a)+_0xe9bb09(0x17c)+_0xe9bb09(0x13a)+_0xe9bb09(0x172)+_0xe9bb09(0x14f)+_0x171667['baseRef']+'.');const _0x42bb6a=_0x171667[_0xe9bb09(0x141)][_0xe9bb09(0x176)](_0x3fef52=>{const _0x11deda=_0xe9bb09,_0x22c9ad=_0x3fef52['body']?_0x11deda(0x135)+'\x20'+_0x3fef52[_0x11deda(0x138)]['replace'](/\s+/g,'\x20')[_0x11deda(0x114)]():'';return'-\x20'+_0x3fef52[_0x11deda(0x188)][_0x11deda(0x192)](0x0,0x7)+'\x20|\x20'+_0x3fef52[_0x11deda(0x18e)]+_0x22c9ad;});return[_0xe9bb09(0x177)+_0xe9bb09(0x17b)+_0x5d37a5['MaBjk'](getCurrentBranch),_0xe9bb09(0x187)+_0xe9bb09(0x132)+_0x171667[_0xe9bb09(0x12f)],'',_0x5d37a5[_0xe9bb09(0x124)],..._0x42bb6a,'',_0xe9bb09(0x153)+_0xe9bb09(0x163),_0x171667[_0xe9bb09(0x157)+'iles']||_0xe9bb09(0x14e),'',_0x5d37a5[_0xe9bb09(0x14c)],_0x171667['diffStat']||_0xe9bb09(0x14e)][_0xe9bb09(0x15b)]('\x0a');}function parsePrSuggestion(_0x271979){const _0x2a1ae7=_0x814a,_0x1df5aa={'iNnxS':function(_0x827ff8,_0x4e08d5){return _0x827ff8<_0x4e08d5;},'FlJxh':function(_0x43f0b5,_0x36e83b){return _0x43f0b5(_0x36e83b);},'ahLoa':_0x2a1ae7(0x182)+_0x2a1ae7(0x158)+_0x2a1ae7(0x14a)+_0x2a1ae7(0x189)+'om\x20AI\x20re'+_0x2a1ae7(0x183),'nhSUQ':function(_0x2f4fa8,_0x41a198){return _0x2f4fa8+_0x41a198;},'vbrKO':function(_0x2bc61b,_0x5b64b2){return _0x2bc61b||_0x5b64b2;},'lCcpB':'AI\x20respo'+_0x2a1ae7(0x112)+_0x2a1ae7(0x18c)+_0x2a1ae7(0x134)+_0x2a1ae7(0x169)+_0x2a1ae7(0x152)+'iption.'},_0x15a27e=_0x271979['split'](/\r?\n/),_0x329976=_0x15a27e[_0x2a1ae7(0x171)](_0x58ed63=>_0x58ed63[_0x2a1ae7(0x10e)+'ase']()['startsWi'+'th'](_0x2a1ae7(0x147))),_0x2c5be1=_0x15a27e[_0x2a1ae7(0x118)+'x'](_0x2fb70d=>_0x2fb70d[_0x2a1ae7(0x10e)+_0x2a1ae7(0x129)]()[_0x2a1ae7(0x14b)+'th']('descript'+_0x2a1ae7(0x143)));(!_0x329976||_0x1df5aa[_0x2a1ae7(0x131)](_0x2c5be1,0x0))&&_0x1df5aa['FlJxh'](failAndExit,_0x1df5aa[_0x2a1ae7(0x168)]);const _0x57793d=_0x329976['slice'](_0x329976[_0x2a1ae7(0x13f)](':')+0x1)['trim'](),_0x524ee9=_0x15a27e[_0x2a1ae7(0x192)](_0x1df5aa['nhSUQ'](_0x2c5be1,0x1))[_0x2a1ae7(0x15b)]('\x0a')[_0x2a1ae7(0x114)]();return _0x1df5aa['vbrKO'](!_0x57793d,!_0x524ee9)&&failAndExit(_0x1df5aa[_0x2a1ae7(0x184)]),{'title':_0x57793d,'description':_0x524ee9};}export async function generatePullRequestText(){const _0x78b2ce=_0x814a,_0x4f4c19={'hGdkn':function(_0x58cbc3){return _0x58cbc3();},'sWpJb':function(_0x2b67cb,_0x43b48f,_0x5d5710){return _0x2b67cb(_0x43b48f,_0x5d5710);},'qtayI':_0x78b2ce(0x127)+_0x78b2ce(0x18a)+'PR\x20title'+_0x78b2ce(0x125)+_0x78b2ce(0x13d)+_0x78b2ce(0x15d),'KgsLW':function(_0xff19d3,_0x59ef2a){return _0xff19d3(_0x59ef2a);},'UxKZK':function(_0x4d0e3d,_0x197fdc){return _0x4d0e3d(_0x197fdc);},'PcKHL':_0x78b2ce(0x136)+_0x78b2ce(0x155)};getGitStatus();const _0x326956=getLLM(),_0x373f88=_0x4f4c19[_0x78b2ce(0x17f)](formatCommitsForPrompt),_0x3106e6=('\x0aYou\x20are'+_0x78b2ce(0x13e)+_0x78b2ce(0x159)+'ent\x20for\x20'+_0x78b2ce(0x16c)+_0x78b2ce(0x130)+_0x78b2ce(0x12e)+_0x78b2ce(0x167)+_0x78b2ce(0x140)+_0x78b2ce(0x18f)+_0x78b2ce(0x17e)+_0x78b2ce(0x120)+_0x78b2ce(0x10f)+_0x78b2ce(0x16b)+'tle\x20in\x20E'+_0x78b2ce(0x17a)+_0x78b2ce(0x16e)+_0x78b2ce(0x150)+_0x78b2ce(0x12a)+_0x78b2ce(0x185)+_0x78b2ce(0x133)+_0x78b2ce(0x145)+'h\x20sectio'+_0x78b2ce(0x164)+_0x78b2ce(0x181)+_0x78b2ce(0x15c)+'sting\x0a\x0aR'+_0x78b2ce(0x15f)+_0x78b2ce(0x13b)+_0x78b2ce(0x115)+_0x78b2ce(0x151)+_0x78b2ce(0x170)+_0x78b2ce(0x156)+_0x78b2ce(0x11c)+_0x78b2ce(0x111)+_0x78b2ce(0x121)+'anch\x20dat'+_0x78b2ce(0x119)+_0x373f88+'\x0a')['trim'](),_0x581437=await _0x4f4c19[_0x78b2ce(0x191)](withProgress,_0x4f4c19[_0x78b2ce(0x161)],()=>_0x326956['invoke'](_0x3106e6)),_0x245487=extractMessageText(_0x581437[_0x78b2ce(0x186)]);!_0x245487&&failAndExit(_0x78b2ce(0x182)+_0x78b2ce(0x15e)+_0x78b2ce(0x165)+'ntent.');const _0x1ab030=_0x4f4c19[_0x78b2ce(0x179)](parsePrSuggestion,_0x245487);_0x4f4c19[_0x78b2ce(0x179)](section,_0x78b2ce(0x12c)),console[_0x78b2ce(0x174)](style(_0x1ab030[_0x78b2ce(0x18d)],ui[_0x78b2ce(0x117)])),console['log'](),_0x4f4c19[_0x78b2ce(0x12b)](section,_0x4f4c19['PcKHL']),console['log'](_0x1ab030[_0x78b2ce(0x175)+_0x78b2ce(0x180)]),console[_0x78b2ce(0x174)]();}
@@ -1 +1 @@
1
- (function(_0x14badd,_0x4784ba){const _0x1880d4=_0x4cfc,_0x2c4975=_0x14badd();while(!![]){try{const _0x487605=-parseInt(_0x1880d4(0x160))/0x1+-parseInt(_0x1880d4(0x187))/0x2+parseInt(_0x1880d4(0x179))/0x3+parseInt(_0x1880d4(0x18c))/0x4+-parseInt(_0x1880d4(0x188))/0x5+parseInt(_0x1880d4(0x158))/0x6*(parseInt(_0x1880d4(0x159))/0x7)+parseInt(_0x1880d4(0x180))/0x8;if(_0x487605===_0x4784ba)break;else _0x2c4975['push'](_0x2c4975['shift']());}catch(_0x14d191){_0x2c4975['push'](_0x2c4975['shift']());}}}(_0x4495,0xaf4dc));const _0x3e8b18=(function(){const _0xdef0e3=_0x4cfc,_0x7c83cd={'CQcoa':_0xdef0e3(0x15f)+_0xdef0e3(0x15e),'ysFpf':function(_0x103e48,_0x3db96e){return _0x103e48!==_0x3db96e;},'TSlui':'rwPdB','utDjX':function(_0x2b6f30,_0x2fc6d5,_0x412340){return _0x2b6f30(_0x2fc6d5,_0x412340);},'JzbvI':function(_0x1f907f){return _0x1f907f();},'vTDHv':_0xdef0e3(0x17a),'LJPim':function(_0x4ed574,_0x14235a){return _0x4ed574===_0x14235a;},'gjrAg':_0xdef0e3(0x161),'pswII':_0xdef0e3(0x162)};let _0x3332d7=!![];return function(_0x3d8ff2,_0x4beba8){const _0x30f220=_0xdef0e3,_0x2c31bd={'gAkhg':function(_0x373467,_0x380d24,_0x35fd75){return _0x7c83cd['utDjX'](_0x373467,_0x380d24,_0x35fd75);},'ZoPwz':function(_0x586cf0){return _0x7c83cd['JzbvI'](_0x586cf0);},'jVqqU':_0x7c83cd[_0x30f220(0x182)]};if(_0x7c83cd[_0x30f220(0x174)](_0x7c83cd[_0x30f220(0x184)],_0x7c83cd[_0x30f220(0x186)]))return _0x231c81[_0x30f220(0x166)]()[_0x30f220(0x16a)](_0x7c83cd[_0x30f220(0x16c)])[_0x30f220(0x166)]()[_0x30f220(0x173)+'tor'](_0x55554c)[_0x30f220(0x16a)](_0x7c83cd['CQcoa']);else{const _0x3eab76=_0x3332d7?function(){const _0x240df1=_0x30f220;if(_0x7c83cd[_0x240df1(0x168)](_0x7c83cd['TSlui'],_0x240df1(0x185))){if(_0x4beba8){const _0x5c1c7=_0x4beba8[_0x240df1(0x178)](_0x3d8ff2,arguments);return _0x4beba8=null,_0x5c1c7;}}else return _0xcf9b9.env.APPDATA||_0x2c31bd[_0x240df1(0x15d)](_0x1909f5,_0x2c31bd[_0x240df1(0x16f)](_0x21cb77),_0x2c31bd['jVqqU']);}:function(){};return _0x3332d7=![],_0x3eab76;}};}()),_0x25f7b9=_0x3e8b18(this,function(){const _0x5a421b=_0x4cfc,_0x477169={'BWlJy':'(((.+)+)'+_0x5a421b(0x15e)};return _0x25f7b9[_0x5a421b(0x166)]()[_0x5a421b(0x16a)](_0x477169['BWlJy'])[_0x5a421b(0x166)]()[_0x5a421b(0x173)+_0x5a421b(0x16e)](_0x25f7b9)['search'](_0x477169[_0x5a421b(0x17b)]);});_0x25f7b9();import{existsSync,readFileSync}from'fs';function _0x4cfc(_0x176634,_0x482fc7){_0x176634=_0x176634-0x157;const _0x16071b=_0x4495();let _0x25f7b9=_0x16071b[_0x176634];return _0x25f7b9;}import{homedir}from'os';function _0x4495(){const _0x56edfc=['6015290eSjidU','ghkDt','.config','potUb','5603552iFcuqN','tidaj','eYHZy','LBpyx','Eswee','6kdpVJZ','2495913cyXZGS','imKHD','csFZZ','win32','gAkhg','+)+$','(((.+)+)','1152782mbgnjl','tUMiB','nzrim','tjBrt','frzSO','entries','toString','SYIcz','ysFpf','darwin','search','.env','CQcoa','platform','tor','ZoPwz','dDAAK','utf8','gemit','construc','LJPim','QzYnf','Mtyrp','FkGYx','apply','2990940OYWayW','.gemit','BWlJy','WVKSk','ort','QvcIl','Applicat','3275576ufWYwU','qCyBH','vTDHv','QSlcN','gjrAg','DlLSj','pswII','179980RpnwuU'];_0x4495=function(){return _0x56edfc;};return _0x4495();}import{join}from'path';import{parse as _0x33c83d}from'dotenv';function getBaseConfigDir(){const _0x15c843=_0x4cfc,_0x1e995c={'SYIcz':_0x15c843(0x15c),'potUb':function(_0x1ae11c,_0x3f2618,_0x581f9c){return _0x1ae11c(_0x3f2618,_0x581f9c);},'QvcIl':function(_0xcd0d2){return _0xcd0d2();},'WVKSk':_0x15c843(0x17a),'QzYnf':function(_0x16b4c7,_0x2e3446){return _0x16b4c7===_0x2e3446;},'LBpyx':_0x15c843(0x169),'qCyBH':function(_0x5c6978,_0x328e9b,_0x1592aa,_0x4f8539){return _0x5c6978(_0x328e9b,_0x1592aa,_0x4f8539);},'eYHZy':'Library','tjBrt':function(_0x4231fa,_0x518384,_0x2e2fbf){return _0x4231fa(_0x518384,_0x2e2fbf);},'imKHD':function(_0x3a86ba){return _0x3a86ba();},'QNbtv':_0x15c843(0x18a)};if(process[_0x15c843(0x16d)]===_0x1e995c[_0x15c843(0x167)])return process.env.APPDATA||_0x1e995c[_0x15c843(0x18b)](join,_0x1e995c[_0x15c843(0x17e)](homedir),_0x1e995c[_0x15c843(0x17c)]);if(_0x1e995c[_0x15c843(0x175)](process['platform'],_0x1e995c[_0x15c843(0x18f)]))return _0x1e995c[_0x15c843(0x181)](join,_0x1e995c[_0x15c843(0x17e)](homedir),_0x1e995c[_0x15c843(0x18e)],_0x15c843(0x17f)+'ion\x20Supp'+_0x15c843(0x17d));return process.env.XDG_CONFIG_HOME||_0x1e995c[_0x15c843(0x163)](join,_0x1e995c[_0x15c843(0x15a)](homedir),_0x1e995c['QNbtv']);}export function getGlobalEnvPath(){const _0x53442e=_0x4cfc,_0x1a1d1b={'csFZZ':function(_0x54481d,_0xe47bf1){return _0x54481d===_0xe47bf1;},'Eswee':_0x53442e(0x15c),'Mtyrp':_0x53442e(0x16b),'ghkDt':function(_0x534d93,_0x4b01ad,_0x222154,_0x1ae546){return _0x534d93(_0x4b01ad,_0x222154,_0x1ae546);},'tidaj':function(_0x2f3666){return _0x2f3666();}};if(_0x1a1d1b[_0x53442e(0x15b)](process[_0x53442e(0x16d)],_0x1a1d1b[_0x53442e(0x157)])&&process.env.APPDATA)return join(process.env.APPDATA,_0x53442e(0x172),_0x1a1d1b[_0x53442e(0x176)]);return _0x1a1d1b[_0x53442e(0x189)](join,_0x1a1d1b[_0x53442e(0x18d)](getBaseConfigDir),'gemit',_0x1a1d1b[_0x53442e(0x176)]);}export function loadConfig(){const _0x265d77=_0x4cfc,_0x22b3b6={'dDAAK':function(_0xde4c0b){return _0xde4c0b();},'iHPyB':function(_0x307f62,_0x328a45,_0x1eef9d){return _0x307f62(_0x328a45,_0x1eef9d);},'zoSKo':function(_0x7bbc4f,_0x4d033c){return _0x7bbc4f(_0x4d033c);},'frzSO':_0x265d77(0x16b)},_0x4c3a4b=_0x22b3b6[_0x265d77(0x170)](getGlobalEnvPath);_0x22b3b6['iHPyB'](loadEnvFile,_0x4c3a4b,![]),_0x22b3b6['zoSKo'](existsSync,_0x22b3b6['frzSO'])&&loadEnvFile(_0x22b3b6[_0x265d77(0x164)],!![]);}function loadEnvFile(_0x4c0f82,_0x20bd69){const _0x466db2=_0x4cfc,_0x21d4c3={'QSlcN':function(_0x3cb63f,_0x28e491){return _0x3cb63f(_0x28e491);},'FkGYx':function(_0xb9e6e7,_0x5c3d77,_0xc0ead9){return _0xb9e6e7(_0x5c3d77,_0xc0ead9);}};if(!_0x21d4c3[_0x466db2(0x183)](existsSync,_0x4c0f82))return;const _0x53f627=_0x33c83d(_0x21d4c3[_0x466db2(0x177)](readFileSync,_0x4c0f82,_0x466db2(0x171)));for(const [_0x3bd20f,_0xafd4c]of Object[_0x466db2(0x165)](_0x53f627)){(_0x20bd69||process.env[_0x3bd20f]===undefined)&&(process.env[_0x3bd20f]=_0xafd4c);}}
1
+ (function(_0x5182aa,_0x9009f7){const _0xa65eb8=_0x50af,_0x276ba6=_0x5182aa();while(!![]){try{const _0x3bf804=-parseInt(_0xa65eb8(0x131))/0x1+-parseInt(_0xa65eb8(0x12e))/0x2+parseInt(_0xa65eb8(0x12f))/0x3+parseInt(_0xa65eb8(0x156))/0x4+-parseInt(_0xa65eb8(0x136))/0x5+parseInt(_0xa65eb8(0x139))/0x6*(-parseInt(_0xa65eb8(0x13f))/0x7)+parseInt(_0xa65eb8(0x142))/0x8*(parseInt(_0xa65eb8(0x132))/0x9);if(_0x3bf804===_0x9009f7)break;else _0x276ba6['push'](_0x276ba6['shift']());}catch(_0x18c3db){_0x276ba6['push'](_0x276ba6['shift']());}}}(_0x140d,0xb7859));const _0x3929fd=(function(){const _0x2b54cb=_0x50af,_0x3baa9c={'PliSa':function(_0xed3adb,_0x345dc3){return _0xed3adb===_0x345dc3;},'VQZPH':_0x2b54cb(0x12b)};let _0x1a47d2=!![];return function(_0x1d4837,_0x23a734){const _0x18e300=_0x2b54cb;if(_0x3baa9c[_0x18e300(0x14d)](_0x3baa9c[_0x18e300(0x157)],_0x3baa9c[_0x18e300(0x157)])){const _0x66753d=_0x1a47d2?function(){const _0x45f682=_0x18e300;if(_0x23a734){const _0x22d731=_0x23a734[_0x45f682(0x14e)](_0x1d4837,arguments);return _0x23a734=null,_0x22d731;}}:function(){};return _0x1a47d2=![],_0x66753d;}else _0x1b8aa0.env[_0x540e67]=_0x29927b;};}()),_0x4f330e=_0x3929fd(this,function(){const _0x1f50c2=_0x50af,_0x3aaf10={'VlIJN':_0x1f50c2(0x128)+_0x1f50c2(0x13a)};return _0x4f330e['toString']()[_0x1f50c2(0x147)](_0x3aaf10[_0x1f50c2(0x13d)])[_0x1f50c2(0x145)]()['construc'+_0x1f50c2(0x135)](_0x4f330e)[_0x1f50c2(0x147)](_0x1f50c2(0x128)+_0x1f50c2(0x13a));});function _0x50af(_0x2d4c51,_0x42ef98){_0x2d4c51=_0x2d4c51-0x128;const _0x188ae0=_0x140d();let _0x4f330e=_0x188ae0[_0x2d4c51];return _0x4f330e;}_0x4f330e();function _0x140d(){const _0x4e3bef=['AKABu','search','RsdcF','mDHlp','ion\x20Supp','pwhio','.config','PliSa','apply','darwin','platform','win32','VFOEq','mOzwe','SfJlB','MLjfk','2782960bjnfdT','VQZPH','fSAgG','cjsCA','(((.+)+)','ACAsU','.gemit','LbEBG','Applicat','fOasc','2965680jqYPpu','4279083ZWNhko','entries','634422SQiUIR','143388PfjNTI','braQc','tNsTT','tor','5036980qAHvyJ','.env','yKqlZ','18AZJlmc','+)+$','DWSWl','POpya','VlIJN','ort','256158zClWXd','LEcXd','qOYoU','936EQhcVt','Library','gemit','toString'];_0x140d=function(){return _0x4e3bef;};return _0x140d();}import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x1a9d40}from'dotenv';function getBaseConfigDir(){const _0x36423b=_0x50af,_0x2588da={'SPtbv':function(_0x48bb7d,_0x2538f0){return _0x48bb7d===_0x2538f0;},'cjsCA':function(_0x1db6ac,_0x5e462f,_0x224f6a){return _0x1db6ac(_0x5e462f,_0x224f6a);},'LEcXd':function(_0x42e283){return _0x42e283();},'htSQR':_0x36423b(0x12a),'RsdcF':_0x36423b(0x14f),'pwhio':function(_0x3bbf68,_0x4fb579,_0x4b1013,_0x22f9b1){return _0x3bbf68(_0x4fb579,_0x4b1013,_0x22f9b1);},'braQc':_0x36423b(0x143),'BRIIr':function(_0x8fd412,_0x25bc3d,_0x24c4f8){return _0x8fd412(_0x25bc3d,_0x24c4f8);},'qOYoU':function(_0x43da0c){return _0x43da0c();},'IahAk':_0x36423b(0x14c)};if(_0x2588da['SPtbv'](process[_0x36423b(0x150)],_0x36423b(0x151)))return process.env.APPDATA||_0x2588da[_0x36423b(0x159)](join,_0x2588da[_0x36423b(0x140)](homedir),_0x2588da['htSQR']);if(_0x2588da['SPtbv'](process['platform'],_0x2588da[_0x36423b(0x148)]))return _0x2588da[_0x36423b(0x14b)](join,homedir(),_0x2588da[_0x36423b(0x133)],_0x36423b(0x12c)+_0x36423b(0x14a)+_0x36423b(0x13e));return process.env.XDG_CONFIG_HOME||_0x2588da['BRIIr'](join,_0x2588da[_0x36423b(0x141)](homedir),_0x2588da['IahAk']);}export function getGlobalEnvPath(){const _0x43d8d4=_0x50af,_0x1d2bf5={'mOzwe':function(_0x3a2490,_0x2f53b1){return _0x3a2490===_0x2f53b1;},'DWSWl':function(_0x3647fb,_0x542fd2,_0x7a5196,_0x4e0377){return _0x3647fb(_0x542fd2,_0x7a5196,_0x4e0377);},'ksSHX':_0x43d8d4(0x137),'fSAgG':function(_0x57a7c6,_0x40bc7e,_0xb5ee88,_0x143006){return _0x57a7c6(_0x40bc7e,_0xb5ee88,_0x143006);},'AqiXH':function(_0x4f6474){return _0x4f6474();},'MLjfk':_0x43d8d4(0x144)};if(_0x1d2bf5[_0x43d8d4(0x153)](process[_0x43d8d4(0x150)],_0x43d8d4(0x151))&&process.env.APPDATA)return _0x1d2bf5[_0x43d8d4(0x13b)](join,process.env.APPDATA,_0x43d8d4(0x144),_0x1d2bf5['ksSHX']);return _0x1d2bf5[_0x43d8d4(0x158)](join,_0x1d2bf5['AqiXH'](getBaseConfigDir),_0x1d2bf5[_0x43d8d4(0x155)],_0x43d8d4(0x137));}export function loadConfig(){const _0x49bfdc=_0x50af,_0x1407e7={'fOasc':function(_0x14284d){return _0x14284d();},'SfJlB':function(_0xb3a9fc,_0x367b13,_0xb5123){return _0xb3a9fc(_0x367b13,_0xb5123);},'ACAsU':function(_0x335587,_0x59b68e){return _0x335587(_0x59b68e);},'mDHlp':_0x49bfdc(0x137),'yKqlZ':function(_0x443df3,_0xf0e6eb,_0x1fe131){return _0x443df3(_0xf0e6eb,_0x1fe131);}},_0x4b0388=_0x1407e7[_0x49bfdc(0x12d)](getGlobalEnvPath);_0x1407e7[_0x49bfdc(0x154)](loadEnvFile,_0x4b0388,![]),_0x1407e7[_0x49bfdc(0x129)](existsSync,_0x1407e7[_0x49bfdc(0x149)])&&_0x1407e7[_0x49bfdc(0x138)](loadEnvFile,_0x49bfdc(0x137),!![]);}function loadEnvFile(_0x2850f4,_0x53d5cd){const _0x268962=_0x50af,_0xd7ef28={'POpya':function(_0x127610,_0x2d73c1){return _0x127610(_0x2d73c1);},'tNsTT':function(_0x247d79,_0x2f340f,_0x21c190){return _0x247d79(_0x2f340f,_0x21c190);},'AKABu':'utf8','VFOEq':function(_0x2e0bff,_0x1b7cf8){return _0x2e0bff===_0x1b7cf8;}};if(!existsSync(_0x2850f4))return;const _0x1d81ad=_0xd7ef28[_0x268962(0x13c)](_0x1a9d40,_0xd7ef28[_0x268962(0x134)](readFileSync,_0x2850f4,_0xd7ef28[_0x268962(0x146)]));for(const [_0x4a7f3d,_0x1d3c70]of Object[_0x268962(0x130)](_0x1d81ad)){(_0x53d5cd||_0xd7ef28[_0x268962(0x152)](process.env[_0x4a7f3d],undefined))&&(process.env[_0x4a7f3d]=_0x1d3c70);}}
@@ -0,0 +1 @@
1
+ function _0x4493(){const _0x1d418f=['\x20a\x20remot','Could\x20no','%x1f%b%x','XlIOe','ffety','cNwHw','147954baSNUj','slice','DEuDE','length','gQOSk','\x20current','toString','git','7196RPyaUP','ds/','apply','%H%x1f%s','rev-pars','ARQtF','subject','EcLxa','abbrev-r','prwzA','it\x20commi','filter','HEAD','git\x20stat','GYjGE','EMOFZ','VhHfP','e\x20HEAD\x20o','tatus','git\x20rev-','--verify','construc','tory.','\x20main/ma','/HEAD','666666xqoQNw','uEEJq','ifLDu','ster.','JHEJn','w-curren','773451ypFpYU','MKQgj','ll-name\x20','dDBAN','WCuUa','IGSqJ','PykCI','merge-ba','ESSGa','TornV','quiet\x20re','(((.+)+)','1224obdenV','hfkHS','includes','am}','--name-s','GlNmh','OKVxw','--short','1209005logCqq','hCTtJ','REzIm','38791keGPFI','gKYwV','search','BLMjc','Wxwvb','\x20--stat','trim','iSyXx','26586kjptGt','base\x20wit','RIAGf','GcOLF','10qkYfLr','origin','main','log','UmWWD','r\x20create','t\x20reposi','-ref\x20--v','fs/heads','+)+$','fbOaY','JHoxr','master','BZGkX','git\x20show','HXuZW','ndhoA','YJIva','git\x20remo','mnGRA','LJrJe','MTzfR','t\x20comput','t\x20detect','pipe','JAFBB','map','OUPkD','BBZcx','git\x20diff','t\x20read\x20g','..HEAD','t\x20infer\x20','ObYNn','kMPKH','--revers','parse\x20--','Tqtpv','refs/hea','e\x20merge-','ZcfBP','tor','ecInJ','1f%ad%x1','--date=s','30ffPxrG','4QODbgU','hort','cTDvt','t\x20histor','bhEib','diff','--pretty','pfHbs','Not\x20a\x20gi','OyTEZ','=format:','base\x20bra','split','-ref','hash'];_0x4493=function(){return _0x1d418f;};return _0x4493();}(function(_0x248abf,_0x525a1f){const _0x194333=_0x2068,_0x52da21=_0x248abf();while(!![]){try{const _0xb03afb=parseInt(_0x194333(0x177))/0x1+parseInt(_0x194333(0x183))/0x2*(parseInt(_0x194333(0x17f))/0x3)+-parseInt(_0x194333(0x1b1))/0x4*(-parseInt(_0x194333(0x174))/0x5)+-parseInt(_0x194333(0x1c6))/0x6+-parseInt(_0x194333(0x1ce))/0x7*(-parseInt(_0x194333(0x1f9))/0x8)+-parseInt(_0x194333(0x1ed))/0x9*(parseInt(_0x194333(0x1b0))/0xa)+-parseInt(_0x194333(0x1e7))/0xb;if(_0xb03afb===_0x525a1f)break;else _0x52da21['push'](_0x52da21['shift']());}catch(_0x564c5e){_0x52da21['push'](_0x52da21['shift']());}}}(_0x4493,0x21f60));const _0x5b5fe7=(function(){const _0x2f3979=_0x2068,_0x47b885={'kyYqL':_0x2f3979(0x18e)};let _0x582382=!![];return function(_0xd1b61b,_0x362994){const _0x576103=_0x2f3979,_0x30588c={'uEEJq':_0x576103(0x1f8)+'+)+$','GYjGE':_0x47b885['kyYqL']},_0x4698d7=_0x582382?function(){const _0x2c1802=_0x576103;if(_0x30588c[_0x2c1802(0x1dc)]!=='hEtie'){if(_0x362994){const _0x2345a8=_0x362994[_0x2c1802(0x1d0)](_0xd1b61b,arguments);return _0x362994=null,_0x2345a8;}}else return _0x4fcd64[_0x2c1802(0x1cc)]()[_0x2c1802(0x179)](_0x2c1802(0x1f8)+_0x2c1802(0x18c))['toString']()[_0x2c1802(0x1e3)+_0x2c1802(0x1ac)](_0x249a2c)['search'](_0x30588c[_0x2c1802(0x1e8)]);}:function(){};return _0x582382=![],_0x4698d7;};}()),_0x5f540d=_0x5b5fe7(this,function(){const _0x2a0ae1=_0x2068,_0x39f819={'ObYNn':_0x2a0ae1(0x1f8)+_0x2a0ae1(0x18c)};return _0x5f540d[_0x2a0ae1(0x1cc)]()[_0x2a0ae1(0x179)](_0x39f819['ObYNn'])[_0x2a0ae1(0x1cc)]()[_0x2a0ae1(0x1e3)+_0x2a0ae1(0x1ac)](_0x5f540d)[_0x2a0ae1(0x179)](_0x39f819[_0x2a0ae1(0x1a4)]);});_0x5f540d();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';export function getGitStatus(){const _0x47d9a3=_0x2068,_0x5e86af={'mnGRA':function(_0x3c121b,_0x11a07c,_0x1bc3e5,_0x396072){return _0x3c121b(_0x11a07c,_0x1bc3e5,_0x396072);},'HXuZW':'git','GcOLF':_0x47d9a3(0x1d2)+'e','gKYwV':'--verify','BLMjc':function(_0x9ab06a,_0x49ef83){return _0x9ab06a!==_0x49ef83;},'OUPkD':_0x47d9a3(0x1eb),'ffety':function(_0x3440c1,_0x48bcbe){return _0x3440c1(_0x48bcbe);},'bhEib':_0x47d9a3(0x1db)+'us','iSyXx':_0x47d9a3(0x1a0)+_0x47d9a3(0x17c),'bPtbM':_0x47d9a3(0x1b9)+_0x47d9a3(0x189)+_0x47d9a3(0x1e4)};try{if(_0x5e86af[_0x47d9a3(0x17a)](_0x5e86af[_0x47d9a3(0x19e)],_0x5e86af[_0x47d9a3(0x19e)]))try{return _0x5e86af[_0x47d9a3(0x196)](_0x2acc28,_0x5e86af[_0x47d9a3(0x192)],[_0x5e86af[_0x47d9a3(0x182)],_0x5e86af[_0x47d9a3(0x178)],_0x47d9a3(0x1a9)+_0x47d9a3(0x1cf)+_0x5a7c31],{'stdio':_0x47d9a3(0x19b)}),_0x37019d;}catch{}else{const _0x2ad780=_0x5e86af[_0x47d9a3(0x1c4)](execSync,_0x5e86af[_0x47d9a3(0x1b5)])[_0x47d9a3(0x1cc)](),_0x3a2c69=_0x5e86af[_0x47d9a3(0x1c4)](execSync,_0x5e86af[_0x47d9a3(0x17e)])[_0x47d9a3(0x1cc)]();return _0x2ad780+'\x0a'+_0x3a2c69;}}catch{_0x5e86af['ffety'](failAndExit,_0x5e86af['bPtbM']);}}export function branchExists(_0x2fd611){const _0x26e0e4=_0x2068,_0x3568f2={'fbOaY':function(_0x17ac87,_0x401f74,_0x429603){return _0x17ac87(_0x401f74,_0x429603);},'RIAGf':_0x26e0e4(0x19b)};try{return _0x3568f2[_0x26e0e4(0x18d)](execSync,_0x26e0e4(0x191)+_0x26e0e4(0x18a)+'erify\x20--'+_0x26e0e4(0x1f7)+_0x26e0e4(0x18b)+'/'+_0x2fd611,{'stdio':_0x3568f2[_0x26e0e4(0x181)]}),!![];}catch{return![];}}export function getCurrentBranch(){const _0x18d9c4=_0x2068,_0x3f4966={'MKQgj':function(_0x27c2d5,_0x18d1b3,_0x24c0e9){return _0x27c2d5(_0x18d1b3,_0x24c0e9);},'BZGkX':'git\x20bran'+'ch\x20--sho'+_0x18d9c4(0x1ec)+'t','prcNq':'pipe','ARQtF':function(_0x480064,_0x3d0bd2){return _0x480064(_0x3d0bd2);},'ndhoA':_0x18d9c4(0x1c1)+'t\x20detect'+_0x18d9c4(0x1cb)+'\x20branch.','EMOFZ':function(_0x23855d,_0x4a943f){return _0x23855d(_0x4a943f);}};try{const _0x51f16f=_0x3f4966[_0x18d9c4(0x1ee)](execSync,_0x3f4966[_0x18d9c4(0x190)],{'stdio':_0x3f4966['prcNq']})[_0x18d9c4(0x1cc)]()[_0x18d9c4(0x17d)]();return!_0x51f16f&&_0x3f4966[_0x18d9c4(0x1d3)](failAndExit,_0x3f4966[_0x18d9c4(0x193)]),_0x51f16f;}catch{_0x3f4966[_0x18d9c4(0x1dd)](failAndExit,_0x18d9c4(0x1c1)+_0x18d9c4(0x19a)+_0x18d9c4(0x1cb)+'\x20branch.');}}export function getUpstreamInfo(){const _0x5c4a35=_0x2068,_0x525d0e={'ViwrV':function(_0x5b4ea5,_0x38c632,_0x5aaaf1){return _0x5b4ea5(_0x38c632,_0x5aaaf1);},'hfkHS':_0x5c4a35(0x1e1)+_0x5c4a35(0x1a7)+_0x5c4a35(0x1d6)+'ef\x20--sym'+'bolic-fu'+_0x5c4a35(0x1ef)+'@{upstre'+_0x5c4a35(0x16f),'zZQYD':function(_0x50a528,_0x28b2c9){return _0x50a528<=_0x28b2c9;},'Tqtpv':function(_0x1b86a1,_0x1afbb2){return _0x1b86a1+_0x1afbb2;}};try{const _0x407ab8=_0x525d0e['ViwrV'](execSync,_0x525d0e[_0x5c4a35(0x16d)],{'stdio':_0x5c4a35(0x19b)})[_0x5c4a35(0x1cc)]()[_0x5c4a35(0x17d)](),_0x46723d=_0x407ab8['indexOf']('/');if(_0x525d0e['zZQYD'](_0x46723d,0x0))return null;return{'fullName':_0x407ab8,'remote':_0x407ab8[_0x5c4a35(0x1c7)](0x0,_0x46723d),'branch':_0x407ab8[_0x5c4a35(0x1c7)](_0x525d0e[_0x5c4a35(0x1a8)](_0x46723d,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x71d114=_0x2068,_0x330e24={'REzIm':function(_0x230da5,_0x526a5a,_0x18bdd7){return _0x230da5(_0x526a5a,_0x18bdd7);},'MTzfR':_0x71d114(0x195)+'te','gQOSk':_0x71d114(0x19b),'EcLxa':_0x71d114(0x184)};try{const _0x247f7e=_0x330e24[_0x71d114(0x176)](execSync,_0x330e24[_0x71d114(0x198)],{'stdio':_0x330e24[_0x71d114(0x1ca)]})['toString']()[_0x71d114(0x1bd)](/\r?\n/)[_0x71d114(0x19d)](_0x14c674=>_0x14c674[_0x71d114(0x17d)]())[_0x71d114(0x1d9)](Boolean);if(_0x247f7e[_0x71d114(0x1c9)]===0x0)return null;if(_0x247f7e[_0x71d114(0x16e)](_0x330e24[_0x71d114(0x1d5)]))return _0x330e24[_0x71d114(0x1d5)];return _0x247f7e[0x0];}catch{return null;}}function resolveBaseRef(){const _0x345dbe=_0x2068,_0x4f6838={'waGlw':function(_0xe4c2de){return _0xe4c2de();},'BBZcx':function(_0x2ee279,_0x37f4fb,_0x41b467,_0x59f41f){return _0x2ee279(_0x37f4fb,_0x41b467,_0x59f41f);},'TornV':_0x345dbe(0x1cd),'ZcfBP':_0x345dbe(0x173),'Wxwvb':'pipe','IGSqJ':_0x345dbe(0x185),'YJIva':_0x345dbe(0x18f),'OyTEZ':'develop','yGdGK':_0x345dbe(0x1d2)+'e','cTDvt':_0x345dbe(0x1e2),'ecInJ':function(_0x251a8c,_0x29ac0f,_0x2e7fae,_0x50f1c2){return _0x251a8c(_0x29ac0f,_0x2e7fae,_0x50f1c2);},'AAxmS':function(_0x3b2778,_0x1600ae){return _0x3b2778(_0x1600ae);}},_0x300a85=_0x4f6838['waGlw'](getDefaultRemote);if(_0x300a85){try{const _0xb1bc07=_0x4f6838[_0x345dbe(0x19f)](execFileSync,_0x4f6838[_0x345dbe(0x1f6)],['symbolic'+_0x345dbe(0x1be),_0x4f6838[_0x345dbe(0x1ab)],'refs/rem'+'otes/'+_0x300a85+_0x345dbe(0x1e6)],{'stdio':_0x4f6838[_0x345dbe(0x17b)]})['toString']()[_0x345dbe(0x17d)]();if(_0xb1bc07)return _0xb1bc07;}catch{}for(const _0x247485 of[_0x4f6838[_0x345dbe(0x1f2)],_0x4f6838[_0x345dbe(0x194)],_0x4f6838[_0x345dbe(0x1ba)]]){try{return _0x4f6838[_0x345dbe(0x19f)](execFileSync,_0x345dbe(0x1cd),[_0x4f6838['yGdGK'],_0x4f6838[_0x345dbe(0x1b3)],'refs/rem'+'otes/'+_0x300a85+'/'+_0x247485],{'stdio':_0x4f6838[_0x345dbe(0x17b)]}),_0x300a85+'/'+_0x247485;}catch{}}}for(const _0x5a0011 of[_0x4f6838[_0x345dbe(0x1f2)],_0x345dbe(0x18f),_0x4f6838[_0x345dbe(0x1ba)]]){try{return _0x4f6838[_0x345dbe(0x1ad)](execFileSync,_0x4f6838[_0x345dbe(0x1f6)],[_0x4f6838['yGdGK'],'--verify','refs/hea'+_0x345dbe(0x1cf)+_0x5a0011],{'stdio':_0x4f6838[_0x345dbe(0x17b)]}),_0x5a0011;}catch{}}_0x4f6838['AAxmS'](failAndExit,_0x345dbe(0x1c1)+_0x345dbe(0x1a3)+_0x345dbe(0x1bc)+'nch.\x20Set'+_0x345dbe(0x1c0)+_0x345dbe(0x1df)+_0x345dbe(0x188)+_0x345dbe(0x1e5)+_0x345dbe(0x1ea));}function getMergeBase(_0x327b1d){const _0x828865=_0x2068,_0x647d32={'hTJRs':_0x828865(0x1f4)+'se','WCuUa':_0x828865(0x1da),'kMPKH':_0x828865(0x19b),'JAFBB':function(_0xcd0e59,_0x21cec5){return _0xcd0e59(_0x21cec5);}};try{return execFileSync(_0x828865(0x1cd),[_0x647d32['hTJRs'],_0x327b1d,_0x647d32[_0x828865(0x1f1)]],{'stdio':_0x647d32[_0x828865(0x1a5)]})[_0x828865(0x1cc)]()[_0x828865(0x17d)]();}catch{_0x647d32[_0x828865(0x19c)](failAndExit,_0x828865(0x1c1)+_0x828865(0x199)+_0x828865(0x1aa)+_0x828865(0x180)+'h\x20'+_0x327b1d+'.');}}function parseCommits(_0x4a81c5){const _0x71d0f9=_0x2068;return _0x4a81c5[_0x71d0f9(0x1bd)]('\x1e')['map'](_0x370663=>_0x370663[_0x71d0f9(0x17d)]())['filter'](Boolean)[_0x71d0f9(0x19d)](_0x204c19=>{const _0x1fe80e=_0x71d0f9,[_0x3a935c='',_0x4f2026='',_0x4d10d6='']=_0x204c19['split']('\x1f');return{'hash':_0x3a935c[_0x1fe80e(0x17d)](),'subject':_0x4f2026[_0x1fe80e(0x17d)](),'body':_0x4d10d6[_0x1fe80e(0x17d)]()};})[_0x71d0f9(0x1d9)](_0x2a6fa8=>Boolean(_0x2a6fa8[_0x71d0f9(0x1bf)])&&Boolean(_0x2a6fa8[_0x71d0f9(0x1d4)]));}export function getBranchContext(){const _0xf1ce56=_0x2068,_0x3f327c={'LJrJe':function(_0x3dfc72,_0x106057,_0x12556d,_0x286d11){return _0x3dfc72(_0x106057,_0x12556d,_0x286d11);},'pfHbs':_0xf1ce56(0x1cd),'DEuDE':_0xf1ce56(0x186),'pOipC':_0xf1ce56(0x1a6)+'e','UmWWD':_0xf1ce56(0x1b7)+_0xf1ce56(0x1bb)+_0xf1ce56(0x1d1)+_0xf1ce56(0x1c2)+'1e','ofPhL':function(_0x56528d,_0x27a79d,_0x3390c9,_0x458646){return _0x56528d(_0x27a79d,_0x3390c9,_0x458646);},'XlIOe':_0xf1ce56(0x1b6),'GlNmh':'--stat','ifLDu':'pipe','ESSGa':function(_0x3cfd41,_0x28b5f3,_0x2cd2da,_0x35c058){return _0x3cfd41(_0x28b5f3,_0x2cd2da,_0x35c058);},'hCTtJ':_0xf1ce56(0x170)+_0xf1ce56(0x1e0),'PykCI':function(_0x31f8d1,_0x42b0cc){return _0x31f8d1(_0x42b0cc);}},_0xb668ce=resolveBaseRef(),_0x118842=getMergeBase(_0xb668ce),_0x411abd=_0x3f327c[_0xf1ce56(0x197)](execFileSync,_0x3f327c[_0xf1ce56(0x1b8)],[_0x3f327c[_0xf1ce56(0x1c8)],_0x3f327c['pOipC'],_0x3f327c[_0xf1ce56(0x187)],_0x118842+_0xf1ce56(0x1a2)],{'stdio':_0xf1ce56(0x19b)})['toString']()[_0xf1ce56(0x17d)](),_0x250743=_0x3f327c['ofPhL'](execFileSync,_0x3f327c[_0xf1ce56(0x1b8)],[_0x3f327c[_0xf1ce56(0x1c3)],_0x3f327c[_0xf1ce56(0x171)],_0x118842+'..HEAD'],{'stdio':_0x3f327c[_0xf1ce56(0x1e9)]})[_0xf1ce56(0x1cc)]()[_0xf1ce56(0x17d)](),_0x28356a=_0x3f327c[_0xf1ce56(0x1f5)](execFileSync,_0xf1ce56(0x1cd),[_0xf1ce56(0x1b6),_0x3f327c[_0xf1ce56(0x175)],_0x118842+_0xf1ce56(0x1a2)],{'stdio':_0x3f327c[_0xf1ce56(0x1e9)]})['toString']()['trim']();return{'baseRef':_0xb668ce,'mergeBase':_0x118842,'commits':_0x3f327c[_0xf1ce56(0x1f3)](parseCommits,_0x411abd),'diffStat':_0x250743,'changedFiles':_0x28356a};}function _0x2068(_0x162a21,_0x27ea44){_0x162a21=_0x162a21-0x16d;const _0x28d6e1=_0x4493();let _0x5f540d=_0x28d6e1[_0x162a21];return _0x5f540d;}export function getCommitHistory(_0x26a86d=0x78){const _0x3fb215=_0x2068,_0x1550c5={'XraGd':function(_0x5c3433,_0x3142eb,_0x807ff3,_0x2d62e1){return _0x5c3433(_0x3142eb,_0x807ff3,_0x2d62e1);},'dDBAN':'log','VhHfP':'--revers'+'e','OKVxw':'--pretty'+_0x3fb215(0x1bb)+_0x3fb215(0x1d1)+_0x3fb215(0x1c2)+_0x3fb215(0x1ae)+'f%an%x1e','cNwHw':_0x3fb215(0x1af)+_0x3fb215(0x1b2),'prwzA':'pipe','zSTZF':function(_0x2b1a1e,_0x34ad37){return _0x2b1a1e(_0x34ad37);}};try{const _0x36c4f3=_0x1550c5['XraGd'](execFileSync,_0x3fb215(0x1cd),[_0x1550c5[_0x3fb215(0x1f0)],'-'+_0x26a86d,_0x1550c5[_0x3fb215(0x1de)],_0x1550c5[_0x3fb215(0x172)],_0x1550c5[_0x3fb215(0x1c5)]],{'stdio':_0x1550c5[_0x3fb215(0x1d7)]})[_0x3fb215(0x1cc)]()[_0x3fb215(0x17d)]();return _0x36c4f3['split']('\x1e')[_0x3fb215(0x19d)](_0x1a53a0=>_0x1a53a0[_0x3fb215(0x17d)]())[_0x3fb215(0x1d9)](Boolean)[_0x3fb215(0x19d)](_0x484375=>{const _0x581a76=_0x3fb215,[_0x155af9='',_0x5484ea='',_0x2a8357='',_0x5abfc0='',_0x280eaa='']=_0x484375[_0x581a76(0x1bd)]('\x1f');return{'hash':_0x155af9['trim'](),'subject':_0x5484ea['trim'](),'body':_0x2a8357[_0x581a76(0x17d)](),'date':_0x5abfc0['trim'](),'author':_0x280eaa[_0x581a76(0x17d)]()};})[_0x3fb215(0x1d9)](_0x80630d=>Boolean(_0x80630d[_0x3fb215(0x1bf)])&&Boolean(_0x80630d[_0x3fb215(0x1d4)]));}catch{_0x1550c5['zSTZF'](failAndExit,_0x3fb215(0x1c1)+_0x3fb215(0x1a1)+_0x3fb215(0x1d8)+_0x3fb215(0x1b4)+'y.');}}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x163c23=_0x3b03;function _0x3b03(_0x436761,_0xf91f9){_0x436761=_0x436761-0x114;const _0x167fab=_0x5596();let _0x5784fd=_0x167fab[_0x436761];return _0x5784fd;}(function(_0x490f47,_0x3d6c96){const _0x39232a=_0x3b03,_0x417d69=_0x490f47();while(!![]){try{const _0xeb7ba3=parseInt(_0x39232a(0x266))/0x1*(parseInt(_0x39232a(0x1d3))/0x2)+-parseInt(_0x39232a(0x276))/0x3+-parseInt(_0x39232a(0x11c))/0x4*(-parseInt(_0x39232a(0x174))/0x5)+-parseInt(_0x39232a(0x122))/0x6*(parseInt(_0x39232a(0x2a0))/0x7)+-parseInt(_0x39232a(0x187))/0x8*(-parseInt(_0x39232a(0x249))/0x9)+-parseInt(_0x39232a(0x26b))/0xa*(-parseInt(_0x39232a(0x143))/0xb)+-parseInt(_0x39232a(0x1af))/0xc;if(_0xeb7ba3===_0x3d6c96)break;else _0x417d69['push'](_0x417d69['shift']());}catch(_0x20fdbf){_0x417d69['push'](_0x417d69['shift']());}}}(_0x5596,0x483e0));const _0x28ea57=(function(){let _0x2e013f=!![];return function(_0x2332f7,_0x193eaf){const _0x24d010=_0x2e013f?function(){if(_0x193eaf){const _0x12f5cd=_0x193eaf['apply'](_0x2332f7,arguments);return _0x193eaf=null,_0x12f5cd;}}:function(){};return _0x2e013f=![],_0x24d010;};}()),_0x5784fd=_0x28ea57(this,function(){const _0x4a3ba8=_0x3b03;return _0x5784fd[_0x4a3ba8(0x134)]()['search'](_0x4a3ba8(0x1da)+'+)+$')[_0x4a3ba8(0x134)]()[_0x4a3ba8(0x25f)+_0x4a3ba8(0x1b6)](_0x5784fd)[_0x4a3ba8(0x1ae)](_0x4a3ba8(0x1da)+_0x4a3ba8(0x1ef));});_0x5784fd();import{execFileSync,execSync}from'child_process';import{Command}from'commander';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{createInterface}from'readline/promises';import{stdin as _0x255143,stdout as _0x21c04a}from'process';import{basename,dirname,join}from'path';import{fileURLToPath}from'url';import{getGlobalEnvPath,loadConfig}from'./config.js';import{createLLM,extractMessageText}from'./llm.js';const ui={'reset':_0x163c23(0x199),'bold':_0x163c23(0x20b),'dim':'\x1b[2m','cyan':_0x163c23(0x12f),'green':_0x163c23(0x184),'yellow':_0x163c23(0x27c),'red':_0x163c23(0x2bd)};function _0x5596(){const _0x24fff0=['ch\x20name\x20','onfigure','CYWUS','\x20Configu','json','Validate','\x0aExample','stdout','rQAhY','RvcYU','HQajb','was\x20not\x20','sting\x20re','filter','oLDRx','types:\x20f','QZUmN','csmlB','parseAsy','\x20current','QGmHF','t\x20upstre','PcQuB','Write\x20co','oyEgB','kXXLS','version','--local','es:\x0a\x20\x20\x20\x20','NmTyX','HNgBF','xists:\x20','a\x20featur','\x20Check\x20i','includes',',\x20and\x20ke','13945Mzuswi','nsClR','question','D\x20BRANCH','\x0a\x20\x20\x20\x20Rul','Create\x20b','jXkRP','\x20and\x20opt','rsion','remote\x20c','Allowed\x20','GDJfL','AAQxF','pEXIG','MqwFD','stream','\x1b[32m','pXEuL','ion','24yVTZFT','ge\x20using','0.0.0','s\x20messag','-\x20Format','pBhxy','<descrip','PI_KEY','argv','a\x20branch','hRuAz','xIyPq','KBmyc','ERROR','lable.','zsOmz','OHMJl','DIAGNOST','\x1b[0m','ZyijL','Mddfn','rent\x20pro','WbDnE','XJzJr','Setup\x20ca','zMnNl','GEMINI_A','sxvkW','close','y/N):\x20','NBKaX','fullName','IDER\x20\x20\x20','sing\x20thi','n\x20ONLY\x20t','t\x0a\x20\x20gemi','error','\x20--stat','wrOIO','search','8270484sgxdnF','\x0a\x20\x20\x20\x20Bas','write','AMmat','Fzwyj','vETPW','UofLc','tor','y\x20config','th\x20no\x20ex','\x20Push\x20co','sBbNZ','ional\x20Co','zFZDp','reen\x22\x0a\x20\x20','ZWtpn','eam\x20foun','yDLZh','origin','git\x20remo','checkout','OlkGA','RfoYT','PI_KEY\x20','o\x20create','hJOmF','HRbFj','fs/heads','undeJ','-v,\x20--ve','@{upstre','PI_KEY=\x22','Vijiz','CcRKk','replace','EGVNk','93796FIqMRH','rKGJI','frAAe','git\x20rev-','bmBxS','okzDo','AI\x20is\x20th','(((.+)+)','le]:\x20','HKyrP','Failed\x20t','isTTY','WrIbB','\x22\x20to\x20\x22','Not\x20a\x20gi','TmSGz','fUMjT','pipe','\x20commit.','o\x20genera','figured\x20','QkBHd','iIhyC','catch','eYePt','e\x20in\x20Eng','ate','taOLd','+)+$','--------','it\x20docto','th:\x2050\x20c','found','ygCON','bPBzk','abbrev-r','\x20global)','Could\x20no','nd\x20reque','MIMHP','UTgTD','xnBJA','provider','nfigurat','\x0a\x20\x20','l,\x20and\x20A','No\x20upstr','d\x20option','lready\x20e','erate\x20a\x20','QXZSt','gpt-4o-m','t\x20branch','haracter','ogle,\x20op','rLwzP','\x1b[1m','planatio','Global\x20.','git\x20stat','ranch\x20wi','invoke','ocal\x20.en','it\x20messa','SKIPPED','doctor','rsMbj','ject','Y=\x22','DDLxA','aojSQ','openai','r,\x20model','yimjn','branch\x20n','.env','padEnd','missing','trim','GOtSg','ration\x20s','UpRwO','h\x20name.','SxJmk','ate\x20the\x20','iBIpY','mZhSY','drltd','Invalid\x20','output\x20t','YjuUT','lDOjd','zAcWU','and\x20bran','OmgBY','OmmmQ','wuyvk','MafsP','reset','join','case-des','dim','FAnWX','toLowerC','ll-name\x20','e\x20descri','commit','inking\x20a','after','YAKTh','a\x20commit','yellow','\x20anthrop','feat/upd','RGvAW','\x0a\x20\x20\x20\x20','git','tatus/di','1380681VDIdSs','>\x0a\x20\x20\x20\x20-\x20','\x20\x20\x20Retur','o\x20push\x20t','PtZWH','nceled.','addHelpT','name','/<kebab-','\x20docs,\x20r','v\x20in\x20cur','iKiTL','wvKeo','ame\x20in\x20E','is\x20git\x20s','ase','--set-up','it\x0a\x20\x20gem','on\x20numbe','te?\x20(y/n','aOyZl','L\x20\x20\x20\x20\x20\x20','construc','KLbYS','lMIAV','Commit\x20u','Configur','exitCode','\x20\x22oauth\x20','3QYaOop','env\x20\x20\x20\x20\x20','SUGGESTE','LLM_MODE','\x20Convent','3600890ceyDIG','\x20\x20-\x20Maxi','DNgzG','DYrEH','ANTHROPI','ext','Model\x20[','LGFEQ','er,\x20mode','message','efactor,','976992qyMMll','ption.','tion...>','y\x20defaul','YgImm','dist-sec','\x1b[33m','found\x20(o','RHfLu','nch\x20\x22','option','dSTBT','/openai/','ch\x20names','wwhSX','mpleted\x20','essages\x20','claude-3','tory.','thChv','Feature\x20','anthropi','hEgQc','yaqPq','WJEbh','twJHn','zDgEv','bvigT','GOOGLE_A','s\x0a\x20\x20\x20\x20-\x20','C_API_KE','vMSyT','and\x20upst','global\x20b','YGYUt','t\x20messag','google','xGJbC','YzjdT','e?\x20(y/n)','OPENAI_A','sponse..','718361lXKMZk','ICS','ure','git\x20show','Pvlch','Return\x20O','lish,\x20wi','QoiKD','ihSJz','not\x20avai','th\x20this\x20','bolic-fu','PsgqQ','WWZeG','length','GZCmi','w-curren','utf8','OJPsV','ns.\x0a\x0a\x20\x20\x20','command','mum\x20leng','gemit\x20in','\x20branch.','ription:','rent\x20bra','mhwoi','-ref\x20--v','env\x20path','\x1b[31m','log','LLM_PROV','ef\x20--sym','Push\x20cur','):\x20','ff,\x20writ','CANCELED','branch','erify\x20--','he\x20commi','push','Branch\x20a','missing/','Suggest\x20','DEWwR','VOxtu','NLY\x20the\x20','cription','gWvTw','login\x20sc','am}','NkaUi','t\x20reposi','ILJOp','796JyYYMk','ic.','ntugU','\x20exists.','gemini-2','\x20with\x20AI','12qkjDnh','JwZOY','wxnLb','RJYbm','EOvDE','to\x20','iSJPX','remote','red','inherit','parse\x20--','ream\x20con','zYxAl','\x1b[36m','for\x20the\x20','\x22\x20and\x20se','normaliz','oKWNw','toString','slice','not\x20foun','ionally\x20','\x0a\x20\x20\x20\x20Gen','\x20test\x0a\x20\x20','UfPja','descript','created.','GVbRk','bold','WFiFv','action','set','gemit','11IGUNNo','JJfXI','d\x20below.','git\x20bran','e\x20a\x20comm','vKpbQ','enai,\x20or','Provider','te\x20branc','ch\x20--sho','uration','bhcVD','WZLNn'];_0x5596=function(){return _0x24fff0;};return _0x5596();}loadConfig();function style(_0x24e6d8,..._0x565d53){const _0x38dcbf=_0x163c23;return''+_0x565d53[_0x38dcbf(0x236)]('')+_0x24e6d8+ui[_0x38dcbf(0x235)];}function divider(){const _0x4fdd8b=_0x163c23,_0x5d7e22={'UfPja':function(_0x165f8a,_0x4052c5,_0x422a31){return _0x165f8a(_0x4052c5,_0x422a31);},'CcRKk':_0x4fdd8b(0x1f0)+_0x4fdd8b(0x1f0)+_0x4fdd8b(0x1f0)+_0x4fdd8b(0x1f0)+_0x4fdd8b(0x1f0)+_0x4fdd8b(0x1f0)+'--'};console['log'](_0x5d7e22[_0x4fdd8b(0x13a)](style,_0x5d7e22[_0x4fdd8b(0x1d0)],ui[_0x4fdd8b(0x238)]));}function section(_0x2c9a07){const _0x326c32=_0x163c23,_0x2a9301={'XQESl':function(_0x3e042a){return _0x3e042a();},'wvKeo':function(_0x800dfb){return _0x800dfb();}};_0x2a9301['XQESl'](divider),console[_0x326c32(0x2be)](style(_0x2c9a07,ui[_0x326c32(0x13e)],ui['cyan'])),_0x2a9301[_0x326c32(0x255)](divider);}function ok(_0x5f322e){const _0x1a063c=_0x163c23;return style(_0x5f322e,ui['green'],ui[_0x1a063c(0x13e)]);}function warn(_0x85bd41){const _0x5eaf60=_0x163c23;return style(_0x85bd41,ui[_0x5eaf60(0x242)],ui[_0x5eaf60(0x13e)]);}function bad(_0x36ce9e){const _0x441c49=_0x163c23,_0x4b5f6a={'iBIpY':function(_0x578ceb,_0x27691a,_0x5640e7,_0x5b08bd){return _0x578ceb(_0x27691a,_0x5640e7,_0x5b08bd);}};return _0x4b5f6a[_0x441c49(0x228)](style,_0x36ce9e,ui[_0x441c49(0x12a)],ui['bold']);}function failAndExit(_0x5ee166){const _0x351889=_0x163c23,_0x469a5a={'frAAe':function(_0x2b2d57,_0x765da2){return _0x2b2d57(_0x765da2);}};console[_0x351889(0x1ab)](_0x469a5a[_0x351889(0x1d5)](bad,_0x351889(0x194))+'\x20'+_0x5ee166),process['exit'](0x1);}function getCliVersion(){const _0x5663f5=_0x163c23,_0x4a81ce={'QoiKD':function(_0x415708,_0x1ff222){return _0x415708(_0x1ff222);},'vKpbQ':function(_0x4ab474,_0x4ba4b1){return _0x4ab474===_0x4ba4b1;},'MIMHP':_0x5663f5(0x27b)+_0x5663f5(0x2a2),'UofLc':'package.'+_0x5663f5(0x154),'NkaUi':function(_0x368777,_0x3bd0d3,_0x2b350e){return _0x368777(_0x3bd0d3,_0x2b350e);},'WFiFv':_0x5663f5(0x2b1),'QEFmI':'0.0.0'};try{const _0x29e837=_0x4a81ce['QoiKD'](fileURLToPath,import.meta.url),_0x28e0e4=dirname(_0x29e837),_0x36a6c7=_0x4a81ce[_0x5663f5(0x148)](basename(_0x28e0e4),'dist')||_0x4a81ce[_0x5663f5(0x148)](_0x4a81ce[_0x5663f5(0x2a7)](basename,_0x28e0e4),_0x4a81ce[_0x5663f5(0x1fa)])?join(_0x28e0e4,'..',_0x4a81ce['UofLc']):_0x4a81ce[_0x5663f5(0x119)](join,_0x28e0e4,_0x4a81ce[_0x5663f5(0x1b5)]),_0x360278=_0x4a81ce['NkaUi'](readFileSync,_0x36a6c7,_0x4a81ce[_0x5663f5(0x13f)]),_0x1f3cbb=JSON['parse'](_0x360278);return _0x1f3cbb[_0x5663f5(0x16a)]||_0x5663f5(0x189);}catch{return _0x4a81ce['QEFmI'];}}async function withProgress(_0xfa5f7e,_0x405a16){const _0x4d89f7=_0x163c23,_0x45f7d2={'rQAhY':function(_0x5b8daf,_0x3a9940){return _0x5b8daf%_0x3a9940;},'drltd':function(_0x59b445,_0x365051,_0x4d46f9){return _0x59b445(_0x365051,_0x4d46f9);},'SxJmk':function(_0x3f4e79){return _0x3f4e79();},'RTYSP':function(_0x31fc82){return _0x31fc82();},'iSJPX':function(_0x3e08b9,_0x16fd39,_0x32ff72){return _0x3e08b9(_0x16fd39,_0x32ff72);},'GOtSg':function(_0x492c64){return _0x492c64();},'GHERE':function(_0x4be622,_0x6b9790){return _0x4be622(_0x6b9790);},'zFZDp':'\x0d\x1b[2K','FknhL':function(_0x512081,_0x32ae19){return _0x512081(_0x32ae19);},'EOvDE':function(_0x164273,_0x189dfa){return _0x164273(_0x189dfa);}};if(!process['stdout'][_0x4d89f7(0x1de)])return console[_0x4d89f7(0x2be)](_0xfa5f7e),_0x45f7d2[_0x4d89f7(0x226)](_0x405a16);const _0x189f7d=['|','/','-','\x5c'];let _0x1e869f=0x0;const _0x3955f3=()=>{const _0x526f98=_0x4d89f7,_0xb71dc5=_0x189f7d[_0x45f7d2[_0x526f98(0x158)](_0x1e869f,_0x189f7d[_0x526f98(0x2ae)])];process['stdout']['write']('\x0d'+_0x45f7d2[_0x526f98(0x22a)](style,_0xb71dc5,ui['cyan'])+'\x20'+_0xfa5f7e),_0x1e869f+=0x1;};_0x45f7d2['RTYSP'](_0x3955f3);const _0x4d782d=_0x45f7d2[_0x4d89f7(0x128)](setInterval,_0x3955f3,0x78);try{const _0x223f54=await _0x45f7d2[_0x4d89f7(0x222)](_0x405a16);return _0x45f7d2['GHERE'](clearInterval,_0x4d782d),process[_0x4d89f7(0x157)][_0x4d89f7(0x1b1)](_0x45f7d2[_0x4d89f7(0x1bc)]),console[_0x4d89f7(0x2be)](_0x45f7d2['FknhL'](ok,'OK')+'\x20'+_0xfa5f7e),_0x223f54;}catch(_0x3d747c){_0x45f7d2[_0x4d89f7(0x126)](clearInterval,_0x4d782d),process[_0x4d89f7(0x157)][_0x4d89f7(0x1b1)](_0x45f7d2[_0x4d89f7(0x1bc)]),console[_0x4d89f7(0x2be)](bad(_0x4d89f7(0x194))+'\x20'+_0xfa5f7e);throw _0x3d747c;}}function getLLM(){const _0x423abe=_0x163c23,_0x2451ae={'HRbFj':function(_0x2b8255,_0x3a5d95){return _0x2b8255 instanceof _0x3a5d95;},'zDgEv':function(_0x2e65da,_0x30c73d){return _0x2e65da(_0x30c73d);},'ObNXj':function(_0x5435f7,_0x55d9f8){return _0x5435f7(_0x55d9f8);}};try{return createLLM();}catch(_0x4e19b4){const _0x382e5c=_0x2451ae[_0x423abe(0x1c9)](_0x4e19b4,Error)?_0x4e19b4[_0x423abe(0x274)]:_0x2451ae[_0x423abe(0x290)](String,_0x4e19b4);_0x2451ae['ObNXj'](failAndExit,_0x382e5c);}}function getGitStatus(){const _0x306041=_0x163c23,_0x5098a2={'iIhyC':function(_0x191d46,_0x5dd949){return _0x191d46(_0x5dd949);},'lMIAV':function(_0x2fef9a,_0xa71834){return _0x2fef9a===_0xa71834;},'OmgBY':'dist','WbDnE':function(_0x2ddf34,_0x2e5c4b){return _0x2ddf34===_0x2e5c4b;},'TmSGz':_0x306041(0x27b)+_0x306041(0x2a2),'mhwoi':'package.'+_0x306041(0x154),'bAGmg':function(_0x25d0d4,_0x42eb54,_0x5a065d){return _0x25d0d4(_0x42eb54,_0x5a065d);},'XJzJr':function(_0x13ec99,_0x1cd26a,_0x342dbe){return _0x13ec99(_0x1cd26a,_0x342dbe);},'RHfLu':_0x306041(0x2b1),'mSXha':_0x306041(0x189),'gWvTw':'git\x20diff'+'\x20--stat','OmmmQ':function(_0x462fd4,_0x1ebdb1){return _0x462fd4===_0x1ebdb1;},'EGVNk':_0x306041(0x1e3),'YzjdT':function(_0x2bb5ee,_0x5d89d2){return _0x2bb5ee(_0x5d89d2);},'RGvAW':_0x306041(0x1e1)+_0x306041(0x11a)+_0x306041(0x288)};try{const _0x1fd87a=_0x5098a2[_0x306041(0x1e9)](execSync,_0x306041(0x20e)+'us')[_0x306041(0x134)](),_0x41d9bc=_0x5098a2[_0x306041(0x1e9)](execSync,_0x5098a2[_0x306041(0x116)])[_0x306041(0x134)]();return _0x1fd87a+'\x0a'+_0x41d9bc;}catch{if(_0x5098a2[_0x306041(0x232)](_0x5098a2[_0x306041(0x1d2)],'AHrVl'))try{const _0x546e17=_0x1ba2cb(import.meta.url),_0x4c6657=WhCeba[_0x306041(0x1e9)](_0x946675,_0x546e17),_0x32bf42=WhCeba[_0x306041(0x261)](_0x34f940(_0x4c6657),WhCeba[_0x306041(0x231)])||WhCeba[_0x306041(0x19d)](_0x4c6630(_0x4c6657),WhCeba[_0x306041(0x1e2)])?_0xb2e96e(_0x4c6657,'..',WhCeba[_0x306041(0x2ba)]):WhCeba['bAGmg'](_0x1f2c50,_0x4c6657,WhCeba[_0x306041(0x2ba)]),_0x77eaf3=WhCeba[_0x306041(0x19e)](_0x251295,_0x32bf42,WhCeba[_0x306041(0x27e)]),_0xf47c52=_0xd03623['parse'](_0x77eaf3);return _0xf47c52[_0x306041(0x16a)]||WhCeba['mSXha'];}catch{return _0x306041(0x189);}else _0x5098a2[_0x306041(0x29c)](failAndExit,_0x5098a2[_0x306041(0x245)]);}}async function askConfirmation(_0x1d3fc9){const _0x42f9a4=_0x163c23,_0x4fef0f={'nsClR':function(_0x332b0d,_0x405549){return _0x332b0d(_0x405549);},'HKyrP':function(_0x59fb30,_0x435d15){return _0x59fb30===_0x435d15;}},_0x5991a1=_0x4fef0f[_0x42f9a4(0x175)](createInterface,{'input':_0x255143,'output':_0x21c04a}),_0x37b316=await _0x5991a1['question'](_0x1d3fc9);return _0x5991a1[_0x42f9a4(0x1a3)](),_0x4fef0f[_0x42f9a4(0x1dc)](_0x37b316['trim']()[_0x42f9a4(0x23a)+_0x42f9a4(0x258)](),'y');}async function askInput(_0xea0972){const _0x1c0811=_0x163c23,_0x3e47b0=createInterface({'input':_0x255143,'output':_0x21c04a}),_0x18c7b4=await _0x3e47b0[_0x1c0811(0x176)](_0xea0972);return _0x3e47b0['close'](),_0x18c7b4[_0x1c0811(0x221)]();}function branchExists(_0x3a3d3b){const _0x2b4d99=_0x163c23,_0x146ede={'VOxtu':function(_0x3c161b,_0x3ab2a6,_0x5a99f9){return _0x3c161b(_0x3ab2a6,_0x5a99f9);},'sBbNZ':'pipe'};try{return _0x146ede[_0x2b4d99(0x2cd)](execSync,_0x2b4d99(0x2a3)+_0x2b4d99(0x2bb)+_0x2b4d99(0x2c6)+'quiet\x20re'+_0x2b4d99(0x1ca)+'/'+_0x3a3d3b,{'stdio':_0x146ede[_0x2b4d99(0x1ba)]}),!![];}catch{return![];}}function getCurrentBranch(){const _0x111a4c=_0x163c23,_0x2caad1={'okzDo':function(_0x9939d3,_0x11647e,_0x5b70b3){return _0x9939d3(_0x11647e,_0x5b70b3);},'QZUmN':_0x111a4c(0x1e4),'xLoCo':function(_0x3f6432,_0x502a5a){return _0x3f6432(_0x502a5a);},'AAQxF':_0x111a4c(0x1f8)+'t\x20detect'+_0x111a4c(0x163)+_0x111a4c(0x2b7),'wrOIO':function(_0x4c9194,_0x2fe243){return _0x4c9194(_0x2fe243);}};try{const _0x5030f8=_0x2caad1[_0x111a4c(0x1d8)](execSync,_0x111a4c(0x146)+_0x111a4c(0x14c)+_0x111a4c(0x2b0)+'t',{'stdio':_0x2caad1[_0x111a4c(0x160)]})[_0x111a4c(0x134)]()[_0x111a4c(0x221)]();return!_0x5030f8&&_0x2caad1['xLoCo'](failAndExit,_0x2caad1[_0x111a4c(0x180)]),_0x5030f8;}catch{_0x2caad1[_0x111a4c(0x1ad)](failAndExit,_0x2caad1[_0x111a4c(0x180)]);}}function getUpstreamInfo(){const _0x2768e4=_0x163c23,_0x1f47f8={'ILJOp':function(_0x616a2,_0x32823a){return _0x616a2(_0x32823a);},'gKYcR':function(_0x45dc8c,_0x35145f,_0x23e996){return _0x45dc8c(_0x35145f,_0x23e996);},'ZyijL':_0x2768e4(0x1d6)+_0x2768e4(0x12c)+_0x2768e4(0x1f6)+_0x2768e4(0x2c0)+_0x2768e4(0x2ab)+_0x2768e4(0x23b)+_0x2768e4(0x1cd)+_0x2768e4(0x118),'HQajb':_0x2768e4(0x1e4),'aRhZq':function(_0x32a6a4,_0x340492){return _0x32a6a4<=_0x340492;},'jXkRP':function(_0x1be4d4,_0x177e69){return _0x1be4d4!==_0x177e69;},'hEgQc':_0x2768e4(0x1c8)};try{const _0x3bfedc=_0x1f47f8['gKYcR'](execSync,_0x1f47f8[_0x2768e4(0x19a)],{'stdio':_0x1f47f8[_0x2768e4(0x15a)]})[_0x2768e4(0x134)]()[_0x2768e4(0x221)](),_0x10be97=_0x3bfedc['indexOf']('/');if(_0x1f47f8['aRhZq'](_0x10be97,0x0)){if(_0x1f47f8[_0x2768e4(0x17a)]('hJOmF',_0x1f47f8[_0x2768e4(0x28c)]))try{return _0xba6045();}catch(_0x137676){const _0x2b179d=_0x137676 instanceof _0x2b2125?_0x137676[_0x2768e4(0x274)]:_0x4fdefc(_0x137676);zhZvsP[_0x2768e4(0x11b)](_0x9987ef,_0x2b179d);}else return null;}return{'fullName':_0x3bfedc,'remote':_0x3bfedc['slice'](0x0,_0x10be97),'branch':_0x3bfedc[_0x2768e4(0x135)](_0x10be97+0x1)};}catch{return null;}}function getDefaultRemote(){const _0x445967=_0x163c23,_0x2a963b={'GVbRk':function(_0x40e38a,_0x2bdba7){return _0x40e38a(_0x2bdba7);},'lDOjd':'git\x20diff'+_0x445967(0x1ac),'taOLd':_0x445967(0x1fc),'FAnWX':function(_0x66befc,_0x2ff21c,_0x60402a){return _0x66befc(_0x2ff21c,_0x60402a);},'Pvlch':_0x445967(0x1c2)+'te','YAKTh':_0x445967(0x1e4),'DDLxA':function(_0x5edfce,_0x142e2e){return _0x5edfce===_0x142e2e;}};try{if(_0x445967(0x169)===_0x2a963b[_0x445967(0x1ee)]){const _0x128337=BfLkyp[_0x445967(0x13d)](_0x10d2b1,_0x445967(0x20e)+'us')[_0x445967(0x134)](),_0x20ac35=BfLkyp[_0x445967(0x13d)](_0x53a181,BfLkyp[_0x445967(0x22e)])[_0x445967(0x134)]();return _0x128337+'\x0a'+_0x20ac35;}else{const _0x12aed0=_0x2a963b[_0x445967(0x239)](execSync,_0x2a963b[_0x445967(0x2a4)],{'stdio':_0x2a963b[_0x445967(0x240)]})['toString']()['split'](/\r?\n/)['map'](_0x4e1c17=>_0x4e1c17[_0x445967(0x221)]())[_0x445967(0x15d)](Boolean);if(_0x2a963b[_0x445967(0x218)](_0x12aed0[_0x445967(0x2ae)],0x0))return null;if(_0x12aed0[_0x445967(0x172)](_0x445967(0x1c1)))return'origin';return _0x12aed0[0x0];}}catch{return null;}}async function maybePushCurrentBranch(){const _0x5c8ebe=_0x163c23,_0x505dda={'undeJ':_0x5c8ebe(0x247),'GDJfL':_0x5c8ebe(0x259)+_0x5c8ebe(0x183),'zAcWU':_0x5c8ebe(0x12b),'aOyZl':function(_0x1a3aa1,_0x46d172){return _0x1a3aa1(_0x46d172);},'bmBxS':function(_0x146778){return _0x146778();},'ygCON':function(_0x28e2b5,_0x2bd49e){return _0x28e2b5!==_0x2bd49e;},'Mddfn':_0x5c8ebe(0x15e),'Vijiz':function(_0x5a295d,_0x30e671,_0x23c6fe,_0x375175){return _0x5a295d(_0x30e671,_0x23c6fe,_0x375175);},'hRuAz':_0x5c8ebe(0x2c8),'DYrEH':function(_0x13a47b,_0x84c9d7){return _0x13a47b(_0x84c9d7);},'AMmat':_0x5c8ebe(0x229),'QkBHd':_0x5c8ebe(0x213)},_0x5a383a=_0x505dda['bmBxS'](getCurrentBranch),_0x382bd8=_0x505dda[_0x5c8ebe(0x1d7)](getUpstreamInfo);if(_0x382bd8){const _0x128802=await _0x505dda[_0x5c8ebe(0x25d)](askConfirmation,_0x5c8ebe(0x2c1)+_0x5c8ebe(0x2b9)+_0x5c8ebe(0x27f)+_0x5a383a+_0x5c8ebe(0x1e0)+_0x382bd8['fullName']+('\x22\x20now?\x20('+_0x5c8ebe(0x1a4)));if(!_0x128802){if(_0x505dda[_0x5c8ebe(0x1f4)](_0x505dda[_0x5c8ebe(0x19b)],_0x5c8ebe(0x15e)))_0x542a5e(_0x505dda[_0x5c8ebe(0x1cb)],[_0x5c8ebe(0x2c8),_0x505dda[_0x5c8ebe(0x17f)],_0x37ca7e,_0xdf7ba9],{'stdio':_0x505dda[_0x5c8ebe(0x22f)]}),_0x11c4eb[_0x5c8ebe(0x2be)](_0x505dda[_0x5c8ebe(0x25d)](_0x57077e,'OK')+(_0x5c8ebe(0x1b9)+_0x5c8ebe(0x285)+_0x5c8ebe(0x296)+_0x5c8ebe(0x12d)+_0x5c8ebe(0x1e7)+'(')+_0x540e78+'/'+_0x374d51+').');else return;}try{_0x505dda[_0x5c8ebe(0x1cf)](execFileSync,'git',[_0x505dda[_0x5c8ebe(0x191)],_0x382bd8[_0x5c8ebe(0x129)],_0x5a383a+':'+_0x382bd8['branch']],{'stdio':_0x505dda['zAcWU']}),console[_0x5c8ebe(0x2be)](_0x505dda['DYrEH'](ok,'OK')+('\x20Push\x20co'+_0x5c8ebe(0x285)+_0x5c8ebe(0x127))+_0x382bd8[_0x5c8ebe(0x1a6)]+'.');}catch{_0x505dda[_0x5c8ebe(0x26e)](failAndExit,_0x5c8ebe(0x1dd)+_0x5c8ebe(0x24c)+'o\x20'+_0x382bd8['fullName']+'.');}return;}const _0x4112f6=_0x505dda[_0x5c8ebe(0x1d7)](getDefaultRemote);if(!_0x4112f6){if(_0x505dda[_0x5c8ebe(0x1f4)](_0x505dda[_0x5c8ebe(0x1b2)],_0x5c8ebe(0x229)))return![];else{console[_0x5c8ebe(0x2be)](_0x505dda[_0x5c8ebe(0x26e)](warn,_0x505dda[_0x5c8ebe(0x1e8)])+('\x20No\x20git\x20'+_0x5c8ebe(0x17d)+_0x5c8ebe(0x151)+'d.\x20Push\x20'+_0x5c8ebe(0x2a9)+_0x5c8ebe(0x195)));return;}}const _0x4aa90d=await _0x505dda['DYrEH'](askConfirmation,_0x5c8ebe(0x201)+_0x5c8ebe(0x1bf)+'d.\x20Push\x20'+'\x22'+_0x5a383a+_0x5c8ebe(0x1e0)+_0x4112f6+'/'+_0x5a383a+(_0x5c8ebe(0x131)+_0x5c8ebe(0x165)+'am?\x20(y/N'+_0x5c8ebe(0x2c2)));if(!_0x4aa90d)return;try{_0x505dda['Vijiz'](execFileSync,_0x5c8ebe(0x247),[_0x505dda[_0x5c8ebe(0x191)],_0x505dda[_0x5c8ebe(0x17f)],_0x4112f6,_0x5a383a],{'stdio':_0x505dda[_0x5c8ebe(0x22f)]}),console[_0x5c8ebe(0x2be)](_0x505dda['aOyZl'](ok,'OK')+(_0x5c8ebe(0x1b9)+_0x5c8ebe(0x285)+'and\x20upst'+_0x5c8ebe(0x12d)+_0x5c8ebe(0x1e7)+'(')+_0x4112f6+'/'+_0x5a383a+').');}catch{_0x505dda[_0x5c8ebe(0x25d)](failAndExit,_0x5c8ebe(0x1dd)+'o\x20push\x20\x22'+_0x5a383a+_0x5c8ebe(0x1e0)+_0x4112f6+'\x22.');}}function sanitizeBranchName(_0x29e7b2){const _0x4e2f08=_0x163c23,_0x3d865c={'YGYUt':'NFD','zMnNl':_0x4e2f08(0x244)+_0x4e2f08(0x1ed)},_0x5f2beb=_0x29e7b2[_0x4e2f08(0x132)+'e'](_0x3d865c[_0x4e2f08(0x298)])['replace'](/[\u0300-\u036f]/g,'')[_0x4e2f08(0x23a)+_0x4e2f08(0x258)]()[_0x4e2f08(0x1d1)](/[^a-z0-9/-]+/g,'-')[_0x4e2f08(0x1d1)](/-{2,}/g,'-')[_0x4e2f08(0x1d1)](/\/{2,}/g,'/')['replace'](/^-+|-+$/g,'')[_0x4e2f08(0x1d1)](/^\/+|\/+$/g,''),_0x25d36b=_0x5f2beb[_0x4e2f08(0x135)](0x0,0x32)[_0x4e2f08(0x1d1)](/\/+$/g,'')[_0x4e2f08(0x1d1)](/-+$/g,''),_0xd7b5d6=_0x25d36b||_0x3d865c[_0x4e2f08(0x1a0)];if(!_0xd7b5d6[_0x4e2f08(0x172)]('/'))return'feat/'+_0xd7b5d6;return _0xd7b5d6;}async function generateCommit(){const _0x5784f9=_0x163c23,_0x57d6fd={'zsOmz':_0x5784f9(0x19f)+_0x5784f9(0x24e),'BfLqk':function(_0x2183c9){return _0x2183c9();},'xGJbC':function(_0x5bbcd){return _0x5bbcd();},'PcQuB':function(_0x3a76bd,_0x504feb,_0x1d86f2){return _0x3a76bd(_0x504feb,_0x1d86f2);},'oKWNw':_0x5784f9(0x1d9)+'inking\x20a'+_0x5784f9(0x1f9)+_0x5784f9(0x15c)+_0x5784f9(0x29f)+'.','DNgzG':function(_0x3994ad,_0x2bd346){return _0x3994ad(_0x2bd346);},'thChv':_0x5784f9(0x1dd)+_0x5784f9(0x1e6)+'te\x20commi'+_0x5784f9(0x299)+'e.','uioZg':_0x5784f9(0x268)+'D\x20COMMIT','Oqijj':_0x5784f9(0x262)+_0x5784f9(0x1a8)+_0x5784f9(0x18a)+_0x5784f9(0x29d)+':\x20','rsMbj':function(_0x39020d,_0x366652){return _0x39020d(_0x366652);},'YJOrT':_0x5784f9(0x2c4),'kiZOQ':function(_0x2418f1,_0x2a2d7d,_0x17fd7a,_0x1754cf){return _0x2418f1(_0x2a2d7d,_0x17fd7a,_0x1754cf);},'bvigT':'inherit','zQKlr':_0x5784f9(0x1a2),'UTgTD':_0x5784f9(0x28f),'WJEbh':_0x5784f9(0x1dd)+_0x5784f9(0x1c7)+_0x5784f9(0x1e5)+_0x5784f9(0x171)+'f\x20you\x20ha'+'ve\x20stage'+'d\x20files.','CYWUS':function(_0x4cc3b){return _0x4cc3b();}},_0x52c6be=_0x57d6fd['BfLqk'](getLLM),_0x57c94f=_0x57d6fd[_0x5784f9(0x29b)](getGitStatus),_0x539d09=_0x5784f9(0x1b0)+'ed\x20on\x20th'+_0x5784f9(0x257)+_0x5784f9(0x248)+_0x5784f9(0x2c3)+_0x5784f9(0x147)+_0x5784f9(0x212)+_0x5784f9(0x188)+_0x5784f9(0x26a)+_0x5784f9(0x1bb)+'mmits.\x0a\x20'+_0x5784f9(0x24b)+_0x5784f9(0x1a9)+_0x5784f9(0x2c7)+_0x5784f9(0x299)+_0x5784f9(0x1ec)+_0x5784f9(0x2a6)+_0x5784f9(0x1b8)+_0x5784f9(0x20c)+_0x5784f9(0x2b3)+'\x20'+_0x57c94f+_0x5784f9(0x1ff),_0x47120f=await _0x57d6fd[_0x5784f9(0x166)](withProgress,_0x57d6fd[_0x5784f9(0x133)],()=>_0x52c6be[_0x5784f9(0x210)](_0x539d09)),_0x26d399=_0x57d6fd[_0x5784f9(0x26d)](extractMessageText,_0x47120f['content']);!_0x26d399&&_0x57d6fd[_0x5784f9(0x26d)](failAndExit,_0x57d6fd[_0x5784f9(0x289)]);section(_0x57d6fd['uioZg']),console[_0x5784f9(0x2be)](_0x57d6fd[_0x5784f9(0x166)](style,_0x26d399,ui[_0x5784f9(0x13e)])),console[_0x5784f9(0x2be)]();const _0x148969=await _0x57d6fd['DNgzG'](askConfirmation,_0x57d6fd['Oqijj']);if(!_0x148969){console[_0x5784f9(0x2be)](_0x57d6fd[_0x5784f9(0x215)](warn,_0x57d6fd['YJOrT'])+('\x20Commit\x20'+_0x5784f9(0x15b)+_0x5784f9(0x13c)));return;}try{_0x57d6fd['kiZOQ'](execFileSync,_0x5784f9(0x247),[_0x5784f9(0x23d),'-m',_0x26d399],{'stdio':_0x57d6fd[_0x5784f9(0x291)]});}catch{if(_0x57d6fd['zQKlr']===_0x57d6fd[_0x5784f9(0x1fb)]){_0x315cd3[_0x5784f9(0x2be)](_0x57d6fd[_0x5784f9(0x196)]);return;}else _0x57d6fd[_0x5784f9(0x215)](failAndExit,_0x57d6fd[_0x5784f9(0x28e)]);}await _0x57d6fd[_0x5784f9(0x152)](maybePushCurrentBranch);}async function suggestBranch(_0x5b2538){const _0x2a507c=_0x163c23,_0x292902={'GZCmi':function(_0x5e86ee){return _0x5e86ee();},'wwhSX':function(_0x13dec5,_0x4d5714,_0x2a449a){return _0x13dec5(_0x4d5714,_0x2a449a);},'vETPW':_0x2a507c(0x1d9)+_0x2a507c(0x23e)+_0x2a507c(0x1f9)+_0x2a507c(0x15c)+_0x2a507c(0x29f)+'.','NmTyX':function(_0x4d7927,_0x396b08){return _0x4d7927(_0x396b08);},'xIyPq':_0x2a507c(0x1dd)+_0x2a507c(0x1e6)+_0x2a507c(0x14b)+_0x2a507c(0x225),'OHMJl':function(_0x31b866,_0x5ed6a1){return _0x31b866(_0x5ed6a1);},'DEWwR':function(_0x578bea,_0x430764){return _0x578bea(_0x430764);},'Fzwyj':_0x2a507c(0x268)+_0x2a507c(0x177),'XSKnJ':_0x2a507c(0x179)+_0x2a507c(0x20f)+_0x2a507c(0x2aa)+'name?\x20(y'+'/n):\x20','bPBzk':_0x2a507c(0x2c4),'dSTBT':_0x2a507c(0x247),'yBYpt':_0x2a507c(0x1c3),'UpRwO':_0x2a507c(0x12b),'zYxAl':function(_0x2f24d7,_0x455cc5){return _0x2f24d7(_0x455cc5);},'yaqPq':_0x2a507c(0x1dd)+_0x2a507c(0x1c7)+_0x2a507c(0x2b7)};_0x292902['GZCmi'](getGitStatus);const _0x51654d=_0x292902[_0x2a507c(0x2af)](getLLM),_0x2bd7e2=_0x2a507c(0x138)+_0x2a507c(0x204)+_0x2a507c(0x146)+_0x2a507c(0x150)+_0x2a507c(0x130)+'feature\x20'+'describe'+_0x2a507c(0x145)+_0x2a507c(0x178)+_0x2a507c(0x16c)+_0x2a507c(0x18b)+':\x20<type>'+_0x2a507c(0x251)+_0x2a507c(0x237)+_0x2a507c(0x115)+_0x2a507c(0x24a)+_0x2a507c(0x17e)+_0x2a507c(0x15f)+'eat,\x20fix'+',\x20chore,'+_0x2a507c(0x252)+_0x2a507c(0x275)+_0x2a507c(0x139)+_0x2a507c(0x26c)+_0x2a507c(0x2b5)+_0x2a507c(0x1f2)+_0x2a507c(0x208)+_0x2a507c(0x293)+_0x2a507c(0x2a5)+_0x2a507c(0x114)+_0x2a507c(0x21d)+_0x2a507c(0x256)+'nglish\x0a\x0a'+'\x20\x20\x20\x20Desc'+_0x2a507c(0x2b8)+_0x2a507c(0x246)+_0x5b2538+_0x2a507c(0x1ff),_0x2a47cc=await _0x292902[_0x2a507c(0x284)](withProgress,_0x292902[_0x2a507c(0x1b4)],()=>_0x51654d[_0x2a507c(0x210)](_0x2bd7e2)),_0x5b5183=_0x292902[_0x2a507c(0x16d)](extractMessageText,_0x2a47cc['content']),_0x33adf6=sanitizeBranchName(_0x5b5183);!_0x33adf6&&_0x292902[_0x2a507c(0x16d)](failAndExit,_0x292902[_0x2a507c(0x192)]);_0x292902[_0x2a507c(0x197)](branchExists,_0x33adf6)&&_0x292902[_0x2a507c(0x2cc)](failAndExit,_0x2a507c(0x2c9)+_0x2a507c(0x203)+_0x2a507c(0x16f)+_0x33adf6);section(_0x292902[_0x2a507c(0x1b3)]),console[_0x2a507c(0x2be)](style(_0x33adf6,ui[_0x2a507c(0x13e)])),console[_0x2a507c(0x2be)]();const _0x185afb=await _0x292902[_0x2a507c(0x16d)](askConfirmation,_0x292902['XSKnJ']);if(!_0x185afb){console[_0x2a507c(0x2be)](_0x292902['DEWwR'](warn,_0x292902[_0x2a507c(0x1f5)])+('\x20Branch\x20'+_0x2a507c(0x15b)+_0x2a507c(0x13c)));return;}try{execFileSync(_0x292902[_0x2a507c(0x281)],[_0x292902['yBYpt'],'-b',_0x33adf6],{'stdio':_0x292902[_0x2a507c(0x224)]});}catch{_0x292902[_0x2a507c(0x12e)](failAndExit,_0x292902[_0x2a507c(0x28d)]);}}function getProviderKeyName(_0xf1b868){const _0x392f8a=_0x163c23,_0xfa0e9b={'HNgBF':function(_0x566daf,_0x862d82){return _0x566daf===_0x862d82;},'RvcYU':'openai','PtZWH':'OPENAI_A'+_0x392f8a(0x18e),'szHJI':_0x392f8a(0x26f)+_0x392f8a(0x294)+'Y'};if(_0xfa0e9b[_0x392f8a(0x16e)](_0xf1b868,_0x392f8a(0x29a)))return'GOOGLE_A'+'PI_KEY';if(_0xf1b868===_0xfa0e9b[_0x392f8a(0x159)])return _0xfa0e9b[_0x392f8a(0x24d)];return _0xfa0e9b['szHJI'];}async function initConfig(_0x567596={}){const _0x3e981a=_0x163c23,_0x4b3d3f={'LGFEQ':function(_0x5a1cf4){return _0x5a1cf4();},'csmlB':function(_0x365bd8,_0x169352){return _0x365bd8(_0x169352);},'KLbYS':function(_0xd051d3,_0x19b842){return _0xd051d3(_0x19b842);},'OJPsV':_0x3e981a(0x19f)+'nceled.','WTzJV':_0x3e981a(0x14a)+'\x20(google'+_0x3e981a(0x282)+_0x3e981a(0x28b)+'c)\x20[goog'+_0x3e981a(0x1db),'oyEgB':function(_0x531f81,_0x3986c1){return _0x531f81||_0x3986c1;},'MqwFD':function(_0x44f8f5,_0xa4feb4){return _0x44f8f5!==_0xa4feb4;},'yimjn':_0x3e981a(0x29a),'KBmyc':function(_0x3563ff,_0x11d97a){return _0x3563ff!==_0x11d97a;},'JwZOY':_0x3e981a(0x21a),'eYePt':function(_0x474f86,_0x537dc5){return _0x474f86!==_0x537dc5;},'rLwzP':_0x3e981a(0x28b)+'c','pBhxy':_0x3e981a(0x22b)+_0x3e981a(0x1fd)+'.\x20Use\x20go'+_0x3e981a(0x209)+_0x3e981a(0x149)+_0x3e981a(0x243)+_0x3e981a(0x11d),'iKiTL':_0x3e981a(0x120)+'.5-flash','YjuUT':_0x3e981a(0x206)+'ini','ihSJz':_0x3e981a(0x287)+'-5-sonne'+'t-latest','bhcVD':function(_0x13b35f,_0x10dbba){return _0x13b35f(_0x10dbba);},'jeTbA':function(_0x48d279,_0x2c4e67){return _0x48d279===_0x2c4e67;},'MafsP':function(_0x262d5c,_0x14de5a){return _0x262d5c===_0x14de5a;},'yDLZh':function(_0x1fc9a6,_0x5b146b,_0x4146b5){return _0x1fc9a6(_0x5b146b,_0x4146b5);},'NBKaX':function(_0x15f3c6,_0x180a87){return _0x15f3c6(_0x180a87);}},_0x6c47bc=_0x567596['local']?_0x3e981a(0x21e):_0x4b3d3f[_0x3e981a(0x272)](getGlobalEnvPath);if(_0x4b3d3f[_0x3e981a(0x161)](existsSync,_0x6c47bc)){const _0x126e1b=await _0x4b3d3f[_0x3e981a(0x260)](askConfirmation,_0x6c47bc+('\x20already'+_0x3e981a(0x11f)+'\x20Overwri'+_0x3e981a(0x25c)+_0x3e981a(0x2c2)));if(!_0x126e1b){console[_0x3e981a(0x2be)](_0x4b3d3f[_0x3e981a(0x2b2)]);return;}}const _0x2a948d=await _0x4b3d3f[_0x3e981a(0x161)](askInput,_0x4b3d3f['WTzJV']),_0x2bf113=_0x4b3d3f[_0x3e981a(0x168)](_0x2a948d,_0x3e981a(0x29a))[_0x3e981a(0x23a)+_0x3e981a(0x258)]();_0x4b3d3f[_0x3e981a(0x182)](_0x2bf113,_0x4b3d3f[_0x3e981a(0x21c)])&&_0x4b3d3f[_0x3e981a(0x193)](_0x2bf113,_0x4b3d3f[_0x3e981a(0x123)])&&_0x4b3d3f[_0x3e981a(0x1eb)](_0x2bf113,_0x4b3d3f[_0x3e981a(0x20a)])&&_0x4b3d3f[_0x3e981a(0x260)](failAndExit,_0x4b3d3f[_0x3e981a(0x18c)]);const _0x2b0d93=_0x2bf113,_0x179471=_0x2b0d93===_0x4b3d3f[_0x3e981a(0x21c)]?_0x4b3d3f[_0x3e981a(0x254)]:_0x2b0d93==='openai'?_0x4b3d3f[_0x3e981a(0x22d)]:_0x4b3d3f[_0x3e981a(0x2a8)],_0x10c58f=await askInput(_0x3e981a(0x271)+_0x179471+']:\x20')||_0x179471,_0x1a00d6=_0x4b3d3f[_0x3e981a(0x161)](getProviderKeyName,_0x2b0d93),_0x494d78=await _0x4b3d3f[_0x3e981a(0x14e)](askInput,_0x1a00d6+':\x20'),_0x57595e=[_0x3e981a(0x2bf)+'IDER=\x22'+_0x2b0d93+'\x22',_0x3e981a(0x269)+'L=\x22'+_0x10c58f+'\x22','',_0x3e981a(0x292)+'PI_KEY=\x22'+(_0x4b3d3f['jeTbA'](_0x2b0d93,'google')?_0x494d78:'')+'\x22',_0x3e981a(0x1a1)+'PI_KEY=\x22'+'\x22',_0x3e981a(0x29e)+_0x3e981a(0x1ce)+(_0x4b3d3f[_0x3e981a(0x234)](_0x2b0d93,_0x4b3d3f[_0x3e981a(0x123)])?_0x494d78:'')+'\x22',_0x3e981a(0x26f)+_0x3e981a(0x294)+_0x3e981a(0x217)+(_0x4b3d3f['MafsP'](_0x2b0d93,_0x4b3d3f[_0x3e981a(0x20a)])?_0x494d78:'')+'\x22',''][_0x3e981a(0x236)]('\x0a');_0x4b3d3f[_0x3e981a(0x1c0)](mkdirSync,_0x4b3d3f[_0x3e981a(0x1a5)](dirname,_0x6c47bc),{'recursive':!![]}),writeFileSync(_0x6c47bc,_0x57595e,'utf8'),console[_0x3e981a(0x2be)](_0x4b3d3f[_0x3e981a(0x260)](ok,'OK')+(_0x3e981a(0x153)+_0x3e981a(0x223)+'aved\x20to\x20')+_0x6c47bc+'.');}function doctorConfig(){const _0x327dc9=_0x163c23,_0x4af1d4={'YgImm':function(_0x35056d){return _0x35056d();},'WZLNn':_0x327dc9(0x21e),'wxnLb':function(_0x27a3cf,_0xa37c32){return _0x27a3cf(_0xa37c32);},'toCbL':function(_0x239cc5,_0x2bf4b7){return _0x239cc5(_0x2bf4b7);},'QXZSt':function(_0x1fbf5f,_0x18bc73){return _0x1fbf5f===_0x18bc73;},'JJfXI':_0x327dc9(0x21a),'pEXIG':'anthropi'+'c','vMSyT':_0x327dc9(0x29a),'QGmHF':function(_0x43386e,_0x2f461a){return _0x43386e(_0x2f461a);},'VqRvc':'API_KEY','zQJDW':_0x327dc9(0x198)+_0x327dc9(0x2a1),'oaoep':_0x327dc9(0x1f3),'WrIbB':function(_0x41eb44,_0x5e2c1b){return _0x41eb44(_0x5e2c1b);},'PsgqQ':'missing','wuyvk':_0x327dc9(0x27d)+'verrides'+_0x327dc9(0x1f7),'ZWtpn':_0x327dc9(0x136)+'d','RJYbm':function(_0x2ba121,_0x5e9004){return _0x2ba121(_0x5e9004);},'JIBpt':function(_0x344df6,_0x5cb47c){return _0x344df6(_0x5cb47c);},'Xuloh':function(_0x55e831,_0x5abf1a){return _0x55e831(_0x5abf1a);},'pXEuL':_0x327dc9(0x141),'rKGJI':function(_0x2d5cc9,_0x2f59a0){return _0x2d5cc9(_0x2f59a0);},'aojSQ':function(_0x364780,_0xd650f8){return _0x364780(_0xd650f8);},'OlkGA':function(_0x23ed50,_0x39918c){return _0x23ed50||_0x39918c;}},_0x465065=_0x4af1d4[_0x327dc9(0x27a)](getGlobalEnvPath),_0x4ab7cb=_0x4af1d4[_0x327dc9(0x14f)],_0x5b6506=_0x4af1d4[_0x327dc9(0x124)](existsSync,_0x4ab7cb),_0x122940=_0x4af1d4['toCbL'](existsSync,_0x465065),_0x50ee06=(process.env.LLM_PROVIDER||'')[_0x327dc9(0x23a)+_0x327dc9(0x258)](),_0x140d0e=process.env.LLM_MODEL||'',_0x2ae23a=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x159d77=process.env.OPENAI_API_KEY||'',_0x23ef40=process.env.ANTHROPIC_API_KEY||'',_0x1571f0=_0x4af1d4['QXZSt'](_0x50ee06,_0x327dc9(0x29a))||_0x50ee06===_0x4af1d4[_0x327dc9(0x144)]||_0x4af1d4[_0x327dc9(0x205)](_0x50ee06,_0x4af1d4[_0x327dc9(0x181)]),_0x21c007=_0x4af1d4[_0x327dc9(0x124)](Boolean,_0x140d0e),_0x58f3dd=_0x4af1d4['QXZSt'](_0x50ee06,_0x4af1d4[_0x327dc9(0x295)])?_0x2ae23a:_0x4af1d4[_0x327dc9(0x205)](_0x50ee06,_0x4af1d4[_0x327dc9(0x144)])?_0x159d77:_0x4af1d4[_0x327dc9(0x205)](_0x50ee06,_0x4af1d4['pEXIG'])?_0x23ef40:'',_0x33b112=_0x1571f0?_0x4af1d4['QGmHF'](getProviderKeyName,_0x50ee06):_0x4af1d4['VqRvc'],_0x3720c7=Boolean(_0x58f3dd);_0x4af1d4[_0x327dc9(0x164)](section,_0x4af1d4['zQJDW']),console[_0x327dc9(0x2be)]('Global\x20.'+_0x327dc9(0x2bc)+'\x20'+_0x465065),console['log'](_0x327dc9(0x20d)+_0x327dc9(0x267)+'\x20'+(_0x122940?_0x4af1d4['toCbL'](ok,_0x4af1d4['oaoep']):_0x4af1d4[_0x327dc9(0x1df)](warn,_0x4af1d4[_0x327dc9(0x2ac)]))),console[_0x327dc9(0x2be)]('Local\x20.e'+'nv\x20\x20\x20\x20\x20\x20'+'\x20'+(_0x5b6506?warn(_0x4af1d4[_0x327dc9(0x233)]):_0x4af1d4[_0x327dc9(0x1df)](ok,_0x4af1d4[_0x327dc9(0x1be)]))),console[_0x327dc9(0x2be)](),console[_0x327dc9(0x2be)]('LLM_PROV'+_0x327dc9(0x1a7)+(_0x1571f0?_0x4af1d4[_0x327dc9(0x125)](ok,'ok'):_0x4af1d4['wxnLb'](bad,_0x327dc9(0x2ca)+'invalid'))),console[_0x327dc9(0x2be)]('LLM_MODE'+_0x327dc9(0x25e)+(_0x21c007?_0x4af1d4[_0x327dc9(0x1df)](ok,'ok'):_0x4af1d4[_0x327dc9(0x164)](bad,_0x4af1d4[_0x327dc9(0x2ac)]))),console[_0x327dc9(0x2be)](_0x33b112[_0x327dc9(0x21f)](0xe,'\x20')+'\x20'+(_0x3720c7?_0x4af1d4[_0x327dc9(0x1df)](ok,'ok'):_0x4af1d4['JIBpt'](bad,_0x4af1d4[_0x327dc9(0x2ac)]))),console['log'](_0x327dc9(0x292)+_0x327dc9(0x1c6)+(_0x2ae23a?_0x4af1d4['Xuloh'](ok,_0x4af1d4[_0x327dc9(0x185)]):_0x4af1d4[_0x327dc9(0x1d4)](warn,_0x4af1d4[_0x327dc9(0x2ac)]))),console[_0x327dc9(0x2be)](_0x327dc9(0x29e)+'PI_KEY\x20'+(_0x159d77?_0x4af1d4[_0x327dc9(0x219)](ok,_0x4af1d4[_0x327dc9(0x185)]):warn(_0x327dc9(0x220)))),console[_0x327dc9(0x2be)](_0x327dc9(0x26f)+_0x327dc9(0x294)+'Y\x20'+(_0x23ef40?_0x4af1d4[_0x327dc9(0x1d4)](ok,_0x4af1d4['pXEuL']):warn(_0x4af1d4[_0x327dc9(0x2ac)]))),console[_0x327dc9(0x2be)](),(_0x4af1d4[_0x327dc9(0x1c4)](!_0x1571f0,!_0x21c007)||!_0x3720c7)&&(process[_0x327dc9(0x264)]=0x1);}const program=new Command();program[_0x163c23(0x250)](_0x163c23(0x142))[_0x163c23(0x13b)+_0x163c23(0x186)](style(_0x163c23(0x2cb)+'commit\x20m'+_0x163c23(0x286)+_0x163c23(0x230)+_0x163c23(0x283)+_0x163c23(0x121),ui['cyan']))['version'](getCliVersion(),_0x163c23(0x1cc)+_0x163c23(0x17c),_0x163c23(0x22c)+'he\x20versi'+_0x163c23(0x25b)+'r'),program[_0x163c23(0x24f)+_0x163c23(0x270)](_0x163c23(0x23f),_0x163c23(0x156)+'s:\x0a\x20\x20gem'+_0x163c23(0x25a)+'it\x20commi'+_0x163c23(0x1aa)+_0x163c23(0x207)+_0x163c23(0x265)+_0x163c23(0x117)+_0x163c23(0x1bd)+_0x163c23(0x2b6)+_0x163c23(0x25a)+_0x163c23(0x1f1)+'r\x0a'),program[_0x163c23(0x2b4)](_0x163c23(0x23d))[_0x163c23(0x13b)+_0x163c23(0x186)](_0x163c23(0x2cb)+_0x163c23(0x241)+'\x20message'+_0x163c23(0x17b)+_0x163c23(0x137)+_0x163c23(0x23d))['action'](generateCommit),program[_0x163c23(0x2b4)]('branch')[_0x163c23(0x13b)+'ion'](_0x163c23(0x2cb)+_0x163c23(0x190)+'\x20name\x20an'+_0x163c23(0x202)+'ally\x20cre'+_0x163c23(0x227)+_0x163c23(0x2c5))['argument'](_0x163c23(0x18d)+_0x163c23(0x278),_0x163c23(0x28a)+_0x163c23(0x13b)+_0x163c23(0x186))['action'](async _0x4f4340=>{const _0x2b6376=_0x163c23,_0x477ea4={'ntugU':'Provide\x20'+_0x2b6376(0x170)+_0x2b6376(0x23c)+_0x2b6376(0x277),'CQEvq':function(_0x14e219,_0x5f1d94){return _0x14e219(_0x5f1d94);}},_0x168584=_0x4f4340[_0x2b6376(0x236)]('\x20')[_0x2b6376(0x221)]();!_0x168584&&failAndExit(_0x477ea4[_0x2b6376(0x11e)]),await _0x477ea4['CQEvq'](suggestBranch,_0x168584);}),program[_0x163c23(0x2b4)]('init')[_0x163c23(0x13b)+'ion'](_0x163c23(0x263)+'e\x20provid'+_0x163c23(0x273)+_0x163c23(0x200)+'PI\x20key\x20('+_0x163c23(0x297)+_0x163c23(0x279)+'t)')[_0x163c23(0x280)](_0x163c23(0x16b),_0x163c23(0x167)+_0x163c23(0x1fe)+'ion\x20to\x20l'+_0x163c23(0x211)+_0x163c23(0x253)+_0x163c23(0x19c)+_0x163c23(0x216))[_0x163c23(0x140)](_0x10a6d0=>initConfig(_0x10a6d0)),program[_0x163c23(0x2b4)](_0x163c23(0x214))[_0x163c23(0x13b)+_0x163c23(0x186)](_0x163c23(0x155)+'\x20provide'+_0x163c23(0x21b)+_0x163c23(0x173)+_0x163c23(0x1b7)+_0x163c23(0x14d))[_0x163c23(0x140)](doctorConfig);process['argv']['length']<=0x2?generateCommit()[_0x163c23(0x1ea)](_0x2388ca=>{const _0x4559cf=_0x163c23,_0x15927c={'ohNHq':function(_0x4b0260,_0x94a48e){return _0x4b0260 instanceof _0x94a48e;},'WWZeG':function(_0x43916a,_0x1ad8ec){return _0x43916a(_0x1ad8ec);}},_0x316014=_0x15927c['ohNHq'](_0x2388ca,Error)?_0x2388ca[_0x4559cf(0x274)]:_0x15927c[_0x4559cf(0x2ad)](String,_0x2388ca);_0x15927c[_0x4559cf(0x2ad)](failAndExit,_0x316014);}):program[_0x163c23(0x162)+'nc'](process[_0x163c23(0x18f)])[_0x163c23(0x1ea)](_0x6a96a5=>{const _0x44025f=_0x163c23,_0x3df1bf={'RfoYT':function(_0x490f6d,_0x355bab){return _0x490f6d(_0x355bab);}},_0x5ac169=_0x6a96a5 instanceof Error?_0x6a96a5[_0x44025f(0x274)]:_0x3df1bf[_0x44025f(0x1c5)](String,_0x6a96a5);_0x3df1bf[_0x44025f(0x1c5)](failAndExit,_0x5ac169);});
2
+ const _0x127108=_0x2954;(function(_0xaea4af,_0x36d5fc){const _0x42bbeb=_0x2954,_0x4cbb35=_0xaea4af();while(!![]){try{const _0x1192b3=-parseInt(_0x42bbeb(0x1be))/0x1*(parseInt(_0x42bbeb(0x176))/0x2)+-parseInt(_0x42bbeb(0x1a5))/0x3*(parseInt(_0x42bbeb(0x19d))/0x4)+parseInt(_0x42bbeb(0x19a))/0x5*(-parseInt(_0x42bbeb(0x1b6))/0x6)+-parseInt(_0x42bbeb(0x166))/0x7+parseInt(_0x42bbeb(0x161))/0x8*(-parseInt(_0x42bbeb(0x1aa))/0x9)+parseInt(_0x42bbeb(0x1a1))/0xa+parseInt(_0x42bbeb(0x1b8))/0xb;if(_0x1192b3===_0x36d5fc)break;else _0x4cbb35['push'](_0x4cbb35['shift']());}catch(_0x3c279e){_0x4cbb35['push'](_0x4cbb35['shift']());}}}(_0xb1eb,0xd6593));const _0x5dfd5a=(function(){let _0x3b6b9f=!![];return function(_0x22a1bc,_0x47a9b1){const _0x2df1d7=_0x3b6b9f?function(){const _0x579b0b=_0x2954;if(_0x47a9b1){const _0x51d30f=_0x47a9b1[_0x579b0b(0x198)](_0x22a1bc,arguments);return _0x47a9b1=null,_0x51d30f;}}:function(){};return _0x3b6b9f=![],_0x2df1d7;};}()),_0x1b7725=_0x5dfd5a(this,function(){const _0xd5c085=_0x2954,_0x4afa2a={'FyukQ':'(((.+)+)'+_0xd5c085(0x155)};return _0x1b7725[_0xd5c085(0x169)]()[_0xd5c085(0x1ab)](_0x4afa2a[_0xd5c085(0x168)])[_0xd5c085(0x169)]()[_0xd5c085(0x1ba)+_0xd5c085(0x15c)](_0x1b7725)[_0xd5c085(0x1ab)](_0x4afa2a['FyukQ']);});_0x1b7725();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';function _0x2954(_0x35e400,_0x5d3521){_0x35e400=_0x35e400-0x14d;const _0x5ab57f=_0xb1eb();let _0x1b7725=_0x5ab57f[_0x35e400];return _0x1b7725;}import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x127108(0x159)](_0x127108(0x167))[_0x127108(0x193)+'ion'](style(_0x127108(0x18e)+'commit\x20m'+_0x127108(0x156)+_0x127108(0x173)+'ch\x20names'+_0x127108(0x1ac),ui[_0x127108(0x17f)]))[_0x127108(0x175)](getCliVersion(),'-v,\x20--ve'+_0x127108(0x191),_0x127108(0x15e)+'he\x20versi'+_0x127108(0x16a)+'r'),program[_0x127108(0x19c)+_0x127108(0x188)]('after',_0x127108(0x186)+'s:\x0a\x20\x20gem'+_0x127108(0x160)+_0x127108(0x150)+'t\x0a\x20\x20gemi'+_0x127108(0x1a7)+_0x127108(0x164)+_0x127108(0x182)+_0x127108(0x170)+_0x127108(0x181)+_0x127108(0x1a2)+_0x127108(0x1b1)+_0x127108(0x1a0)+'ngelog\x0a\x20'+'\x20gemit\x20i'+'nit\x0a\x20\x20ge'+_0x127108(0x180)+_0x127108(0x17c)),program[_0x127108(0x1c2)](_0x127108(0x1c0))[_0x127108(0x193)+_0x127108(0x14e)]('Suggest\x20'+_0x127108(0x1ad)+_0x127108(0x1af)+'\x20and\x20opt'+_0x127108(0x1b9)+'commit')[_0x127108(0x18a)](generateCommit),program[_0x127108(0x1c2)](_0x127108(0x153))[_0x127108(0x193)+'ion']('Suggest\x20'+'a\x20branch'+_0x127108(0x195)+_0x127108(0x1bc)+_0x127108(0x1a3)+_0x127108(0x1b5)+_0x127108(0x153))[_0x127108(0x18d)](_0x127108(0x165)+_0x127108(0x154),_0x127108(0x19f)+_0x127108(0x193)+_0x127108(0x14e))[_0x127108(0x18a)](async _0x360c26=>{const _0x3458ec=_0x127108,_0x2cd6c0={'fWlym':function(_0x315f84,_0x49d5e8){return _0x315f84(_0x49d5e8);},'VbnWm':'Provide\x20'+_0x3458ec(0x179)+'e\x20descri'+_0x3458ec(0x1b4)},_0x39f93e=_0x360c26['join']('\x20')[_0x3458ec(0x1bf)]();!_0x39f93e&&_0x2cd6c0[_0x3458ec(0x1c1)](failAndExit,_0x2cd6c0[_0x3458ec(0x1a6)]),await suggestBranch(_0x39f93e);}),program[_0x127108(0x1c2)]('pr')[_0x127108(0x193)+_0x127108(0x14e)](_0x127108(0x18b)+_0x127108(0x15f)+_0x127108(0x1a4)+_0x127108(0x187)+_0x127108(0x1a8)+_0x127108(0x163)+_0x127108(0x1ae))['action'](generatePullRequestText),program[_0x127108(0x1c2)](_0x127108(0x17d))[_0x127108(0x193)+'ion'](_0x127108(0x178)+_0x127108(0x1bb)+_0x127108(0x19b)+_0x127108(0x192)+_0x127108(0x14f)+_0x127108(0x17b))['action'](summarizeBranchLog),program[_0x127108(0x1c2)](_0x127108(0x16f)+'g')['descript'+_0x127108(0x14e)](_0x127108(0x18b)+'\x20a\x20chang'+_0x127108(0x16b)+'e\x20from\x20c'+'ommit\x20hi'+'story')[_0x127108(0x18d)](_0x127108(0x197),_0x127108(0x1b7)+_0x127108(0x18f)+'default:'+_0x127108(0x17e)+_0x127108(0x158)+_0x127108(0x171))['action'](generateChangelog),program['command'](_0x127108(0x1bd))['descript'+_0x127108(0x14e)](_0x127108(0x1b3)+_0x127108(0x16e)+_0x127108(0x17a)+'l,\x20and\x20A'+_0x127108(0x185)+_0x127108(0x183)+_0x127108(0x1b2)+'t)')[_0x127108(0x177)](_0x127108(0x157),_0x127108(0x14d)+_0x127108(0x172)+_0x127108(0x184)+_0x127108(0x199)+_0x127108(0x174)+_0x127108(0x1a9)+_0x127108(0x162))['action'](_0x5dd138=>initConfig(_0x5dd138)),program[_0x127108(0x1c2)](_0x127108(0x189))[_0x127108(0x193)+_0x127108(0x14e)](_0x127108(0x18c)+_0x127108(0x15b)+'r,\x20model'+_0x127108(0x15a)+_0x127108(0x19e)+_0x127108(0x152))[_0x127108(0x18a)](doctorConfig);function _0xb1eb(){const _0x83ad3f=['[name]','apply','ocal\x20.en','608105WkbYTS','as\x20done\x20','addHelpT','436248rspecO','y\x20config','Feature\x20','emit\x20cha','15875170TPPPAW','\x0a\x20\x20gemit','ally\x20cre','e\x20and\x20de','21TPtpcG','VbnWm','t\x20branch','n\x20from\x20b','rent\x20pro','9jreMNH','search','\x20with\x20AI','a\x20commit','mmits','\x20message','catch','\x20log\x0a\x20\x20g','y\x20defaul','Configur','ption.','ate\x20the\x20','84DmjvIH','Base\x20fil','51359154DnIivN','ionally\x20','construc','e\x20what\x20w','d\x20option','init','1344754XqRnEW','trim','commit','fWlym','command','Write\x20co','ion','urrent\x20b','it\x20commi','parseAsy','uration','branch','tion...>','+)+$','essages\x20','--local','\x20branch\x20','name',',\x20and\x20ke','\x20provide','tor','hgHOp','output\x20t','\x20PR\x20titl','it\x0a\x20\x20gem','8642512lSfbfI','ject','ranch\x20co','\x20\x22oauth\x20','<descrip','3411548mJTyWB','gemit','FyukQ','toString','on\x20numbe','elog\x20fil','message','OZsxP','e\x20provid','changelo','reen\x22\x0a\x20\x20','name)','nfigurat','and\x20bran','v\x20in\x20cur','version','2agnBsK','option','Summariz','a\x20featur','er,\x20mode','ranch','or\x0a','log','\x20current','cyan','mit\x20doct','gemit\x20pr','login\x20sc','global\x20b','ion\x20to\x20l','PI\x20key\x20(','\x0aExample','scriptio','ext','doctor','action','Generate','Validate','argument','Suggest\x20','e\x20name\x20(','length','rsion','in\x20the\x20c','descript','argv','\x20name\x20an','aCXVK'];_0xb1eb=function(){return _0x83ad3f;};return _0xb1eb();}process['argv'][_0x127108(0x190)]<=0x2?generateCommit()[_0x127108(0x1b0)](_0x138ce5=>{const _0x16abe2=_0x127108,_0x4bd1dd={'OZsxP':function(_0x23df10,_0x3e2893){return _0x23df10 instanceof _0x3e2893;}},_0x1c8ce6=_0x4bd1dd[_0x16abe2(0x16d)](_0x138ce5,Error)?_0x138ce5[_0x16abe2(0x16c)]:String(_0x138ce5);failAndExit(_0x1c8ce6);}):program[_0x127108(0x151)+'nc'](process[_0x127108(0x194)])['catch'](_0x52fb0f=>{const _0x390982=_0x127108,_0x9e0de5={'hgHOp':function(_0x19b9ac,_0x3320e3){return _0x19b9ac instanceof _0x3320e3;},'aCXVK':function(_0x38ef26,_0x518fe2){return _0x38ef26(_0x518fe2);}},_0x2cb66c=_0x9e0de5[_0x390982(0x15d)](_0x52fb0f,Error)?_0x52fb0f[_0x390982(0x16c)]:String(_0x52fb0f);_0x9e0de5[_0x390982(0x196)](failAndExit,_0x2cb66c);});
@@ -1 +1 @@
1
- (function(_0x3c9c3b,_0x1595cf){const _0x4a41d9=_0x3eeb,_0xb58d45=_0x3c9c3b();while(!![]){try{const _0x585b77=-parseInt(_0x4a41d9(0xa2))/0x1+parseInt(_0x4a41d9(0xab))/0x2+parseInt(_0x4a41d9(0x9d))/0x3*(parseInt(_0x4a41d9(0xa6))/0x4)+-parseInt(_0x4a41d9(0x9b))/0x5+-parseInt(_0x4a41d9(0x9c))/0x6*(parseInt(_0x4a41d9(0xbe))/0x7)+parseInt(_0x4a41d9(0xb2))/0x8*(-parseInt(_0x4a41d9(0xa1))/0x9)+-parseInt(_0x4a41d9(0xbb))/0xa*(-parseInt(_0x4a41d9(0x95))/0xb);if(_0x585b77===_0x1595cf)break;else _0xb58d45['push'](_0xb58d45['shift']());}catch(_0x75625){_0xb58d45['push'](_0xb58d45['shift']());}}}(_0x4f63,0x97232));const _0x51628b=(function(){let _0x5308a4=!![];return function(_0x4e79f8,_0x499f1e){const _0x507b41=_0x5308a4?function(){const _0x528190=_0x3eeb;if(_0x499f1e){const _0x34ed1b=_0x499f1e[_0x528190(0xb7)](_0x4e79f8,arguments);return _0x499f1e=null,_0x34ed1b;}}:function(){};return _0x5308a4=![],_0x507b41;};}()),_0x1b9837=_0x51628b(this,function(){const _0x351e6d=_0x3eeb,_0x2d99e8={'DROkG':_0x351e6d(0x9a)+_0x351e6d(0x91)};return _0x1b9837[_0x351e6d(0xbc)]()[_0x351e6d(0xac)](_0x2d99e8[_0x351e6d(0xa7)])[_0x351e6d(0xbc)]()[_0x351e6d(0xa4)+'tor'](_0x1b9837)[_0x351e6d(0xac)](_0x2d99e8[_0x351e6d(0xa7)]);});_0x1b9837();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function _0x4f63(){const _0x9a91ef=['LE_API_K','construc','bUKCN','641636zsniVR','DROkG','ANTHROPI','fsLST','trim','599428GgyNxC','search','UQaev','text','\x20environ','mcmAe','string','64bLalYc','openai','_KEY.','Set\x20GOOG','C_API_KE','apply','EY\x20or\x20GE','IDER:\x20','map','10IjvSTT','toString','Invalid\x20','240107QGpVHh','google','LLM_PROV','dlTvJ','zJoLe','iqXtK','.5-flash','MINI_API','PdIes','join','PReEV','ase','+)+$','iable.','Set\x20the\x20','isArray','20832075zbgbKv','xlOcl','ZbQho','ExJTS','anthropi','(((.+)+)','4196090OQtbLo','108QzxXmP','9mMASCn','toLowerC','gemini-2','SzTLM','95346wWeaBM','514320zYhUjv'];_0x4f63=function(){return _0x9a91ef;};return _0x4f63();}function requireEnv(_0x2e292f){const _0x36840a=_0x3eeb,_0x2dd386=process.env[_0x2e292f];if(!_0x2dd386)throw new Error(_0x36840a(0x93)+_0x2e292f+(_0x36840a(0xaf)+'ment\x20var'+_0x36840a(0x92)));return _0x2dd386;}export function createLLM(){const _0x24d4c9=_0x3eeb,_0x577995={'zJoLe':_0x24d4c9(0xb5)+_0x24d4c9(0xa3)+_0x24d4c9(0xb8)+_0x24d4c9(0xc5)+_0x24d4c9(0xb4),'xlOcl':_0x24d4c9(0xbf),'UQaev':_0x24d4c9(0x9f)+_0x24d4c9(0xc4),'PReEV':function(_0x36d47,_0x4ffdd2){return _0x36d47===_0x4ffdd2;},'ZbQho':function(_0x24a800,_0x264968){return _0x24a800!==_0x264968;},'dlTvJ':_0x24d4c9(0xc6),'mcmAe':function(_0x1d8ee6,_0x3284cd){return _0x1d8ee6(_0x3284cd);},'bUKCN':'OPENAI_A'+'PI_KEY','fsLST':function(_0x294ee8,_0x48c288){return _0x294ee8===_0x48c288;},'ExJTS':_0x24d4c9(0x99)+'c','kiNel':_0x24d4c9(0xa8)+_0x24d4c9(0xb6)+'Y'},_0x493365=(process.env.LLM_PROVIDER||_0x577995['xlOcl'])[_0x24d4c9(0x9e)+_0x24d4c9(0x90)](),_0x3ebc3b=process.env.LLM_MODEL||_0x577995[_0x24d4c9(0xad)];if(_0x577995['PReEV'](_0x493365,_0x577995[_0x24d4c9(0x96)])){if(_0x577995[_0x24d4c9(0x97)](_0x577995[_0x24d4c9(0xc1)],_0x577995[_0x24d4c9(0xc1)]))throw new _0x50f681(_0x577995[_0x24d4c9(0xc2)]);else{const _0x3fdc80=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x3fdc80)throw new Error(_0x24d4c9(0xb5)+'LE_API_K'+_0x24d4c9(0xb8)+'MINI_API'+_0x24d4c9(0xb4));return new ChatGoogleGenerativeAI({'model':_0x3ebc3b,'apiKey':_0x3fdc80,'temperature':0.2});}}if(_0x577995[_0x24d4c9(0x8f)](_0x493365,_0x24d4c9(0xb3)))return new ChatOpenAI({'model':_0x3ebc3b,'apiKey':_0x577995[_0x24d4c9(0xb0)](requireEnv,_0x577995[_0x24d4c9(0xa5)]),'temperature':0.2});if(_0x577995[_0x24d4c9(0xa9)](_0x493365,_0x577995[_0x24d4c9(0x98)]))return new ChatAnthropic({'model':_0x3ebc3b,'apiKey':requireEnv(_0x577995['kiNel']),'temperature':0.2});throw new Error(_0x24d4c9(0xbd)+_0x24d4c9(0xc0)+_0x24d4c9(0xb9)+_0x493365);}function _0x3eeb(_0xb1cd3,_0xa107ec){_0xb1cd3=_0xb1cd3-0x8e;const _0x2240fa=_0x4f63();let _0x1b9837=_0x2240fa[_0xb1cd3];return _0x1b9837;}export function extractMessageText(_0xccebb7){const _0x3b48aa=_0x3eeb,_0x350119={'iqXtK':function(_0x442514,_0x5cabe8){return _0x442514===_0x5cabe8;},'SzTLM':_0x3b48aa(0xb1),'ULbjl':function(_0x17acc0,_0x3d1955){return _0x17acc0(_0x3d1955);},'vNPCK':function(_0x945f15,_0xa166e){return _0x945f15||_0xa166e;}};if(_0x350119[_0x3b48aa(0xc3)](typeof _0xccebb7,_0x350119[_0x3b48aa(0xa0)]))return _0xccebb7[_0x3b48aa(0xaa)]();if(Array[_0x3b48aa(0x94)](_0xccebb7))return _0xccebb7[_0x3b48aa(0xba)](_0x454eb7=>typeof _0x454eb7==='string'?_0x454eb7:_0x454eb7?.[_0x3b48aa(0xae)]||'')[_0x3b48aa(0x8e)]('')[_0x3b48aa(0xaa)]();return _0x350119['ULbjl'](String,_0x350119['vNPCK'](_0xccebb7,''))[_0x3b48aa(0xaa)]();}
1
+ (function(_0x2d4145,_0x43d5d6){const _0xde4218=_0x4a0f,_0x56e26c=_0x2d4145();while(!![]){try{const _0x17bb36=parseInt(_0xde4218(0xd3))/0x1*(-parseInt(_0xde4218(0xeb))/0x2)+parseInt(_0xde4218(0xdf))/0x3*(-parseInt(_0xde4218(0xe8))/0x4)+parseInt(_0xde4218(0xcd))/0x5*(parseInt(_0xde4218(0xda))/0x6)+-parseInt(_0xde4218(0xd1))/0x7+-parseInt(_0xde4218(0xcb))/0x8*(-parseInt(_0xde4218(0xca))/0x9)+parseInt(_0xde4218(0xe4))/0xa*(-parseInt(_0xde4218(0xf1))/0xb)+parseInt(_0xde4218(0xf4))/0xc;if(_0x17bb36===_0x43d5d6)break;else _0x56e26c['push'](_0x56e26c['shift']());}catch(_0x46d3fe){_0x56e26c['push'](_0x56e26c['shift']());}}}(_0x28e0,0x21a86));const _0x344fd0=(function(){const _0x385ae8=_0x4a0f,_0x3f778d={'HGeno':_0x385ae8(0xf7)+_0x385ae8(0xee),'OKQzk':function(_0x30adc3,_0xcac612){return _0x30adc3!==_0xcac612;},'fRiFf':'WKzNo'};let _0x4e8b63=!![];return function(_0x54b885,_0x52a03e){const _0x593771=_0x385ae8;if(_0x3f778d['OKQzk'](_0x593771(0xd6),_0x3f778d[_0x593771(0xdb)])){const _0x5b3b94=_0x4e8b63?function(){const _0x11b68b=_0x593771;if(_0x52a03e){const _0x591661=_0x52a03e[_0x11b68b(0xe6)](_0x54b885,arguments);return _0x52a03e=null,_0x591661;}}:function(){};return _0x4e8b63=![],_0x5b3b94;}else return _0x51cb9d[_0x593771(0xf6)]()[_0x593771(0xdc)](_0x3f778d[_0x593771(0xe1)])[_0x593771(0xf6)]()[_0x593771(0xf2)+_0x593771(0xe3)](_0x481493)['search'](_0x3f778d[_0x593771(0xe1)]);};}()),_0x1777ff=_0x344fd0(this,function(){const _0x49492b=_0x4a0f;return _0x1777ff['toString']()[_0x49492b(0xdc)](_0x49492b(0xf7)+'+)+$')['toString']()[_0x49492b(0xf2)+_0x49492b(0xe3)](_0x1777ff)[_0x49492b(0xdc)](_0x49492b(0xf7)+_0x49492b(0xee));});_0x1777ff();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x5a27af){const _0x448ae8=_0x4a0f,_0x5d1275=process.env[_0x5a27af];if(!_0x5d1275)throw new Error(_0x448ae8(0xe0)+_0x5a27af+('\x20environ'+_0x448ae8(0xc9)+_0x448ae8(0xd4)));return _0x5d1275;}function _0x28e0(){const _0x2e869b=['jEWGK','apply','iogTp','8104oyURdR','anthropi','isArray','278OqTLpc','openai','string','+)+$','EFjYF','join','11AUTuLe','construc','map','5206392VJQByQ','hdccp','toString','(((.+)+)','Invalid\x20','enlTQ','toLowerC','MINI_API','ment\x20var','1356525BnZYAr','8HwWLNf','EY\x20or\x20GE','145oZJTai','dxsLE','.5-flash','trim','1352729HWKWyf','ANTHROPI','1181OLGqMQ','iable.','C_API_KE','aHEJi','gemini-2','LE_API_K','OPENAI_A','17502sChTRu','fRiFf','search','TECay','google','75VEFVnS','Set\x20the\x20','HGeno','FSrPr','tor','1232660wLFKNO'];_0x28e0=function(){return _0x2e869b;};return _0x28e0();}function _0x4a0f(_0x476836,_0xa900d6){_0x476836=_0x476836-0xc7;const _0x11e442=_0x28e0();let _0x1777ff=_0x11e442[_0x476836];return _0x1777ff;}export function createLLM(){const _0x5ec244=_0x4a0f,_0x558613={'FSrPr':'google','enlTQ':_0x5ec244(0xd7)+_0x5ec244(0xcf),'jEWGK':function(_0x4ec556,_0x56d790){return _0x4ec556===_0x56d790;},'hdccp':_0x5ec244(0xec),'zfNWB':_0x5ec244(0xe9)+'c','muNYO':function(_0x54b2d1,_0x5a45ba){return _0x54b2d1(_0x5a45ba);},'EFjYF':_0x5ec244(0xd2)+_0x5ec244(0xd5)+'Y'},_0x52560c=(process.env.LLM_PROVIDER||_0x558613[_0x5ec244(0xe2)])[_0x5ec244(0xc7)+'ase'](),_0x34c8fe=process.env.LLM_MODEL||_0x558613[_0x5ec244(0xf9)];if(_0x52560c===_0x5ec244(0xde)){const _0x11170d=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x11170d)throw new Error('Set\x20GOOG'+_0x5ec244(0xd8)+_0x5ec244(0xcc)+_0x5ec244(0xc8)+'_KEY.');return new ChatGoogleGenerativeAI({'model':_0x34c8fe,'apiKey':_0x11170d,'temperature':0.2});}if(_0x558613[_0x5ec244(0xe5)](_0x52560c,_0x558613[_0x5ec244(0xf5)]))return new ChatOpenAI({'model':_0x34c8fe,'apiKey':requireEnv(_0x5ec244(0xd9)+'PI_KEY'),'temperature':0.2});if(_0x52560c===_0x558613['zfNWB'])return new ChatAnthropic({'model':_0x34c8fe,'apiKey':_0x558613['muNYO'](requireEnv,_0x558613[_0x5ec244(0xef)]),'temperature':0.2});throw new Error(_0x5ec244(0xf8)+'LLM_PROV'+'IDER:\x20'+_0x52560c);}export function extractMessageText(_0x2d26aa){const _0xed9da7=_0x4a0f,_0xc62cd9={'TECay':function(_0x129fcf,_0x925ffc){return _0x129fcf===_0x925ffc;},'dxsLE':_0xed9da7(0xed),'iogTp':function(_0x2150ef,_0x480d93){return _0x2150ef(_0x480d93);},'wctMA':function(_0x2e26ac,_0x28f8e5){return _0x2e26ac||_0x28f8e5;}};if(_0xc62cd9[_0xed9da7(0xdd)](typeof _0x2d26aa,_0xc62cd9[_0xed9da7(0xce)]))return _0x2d26aa[_0xed9da7(0xd0)]();if(Array[_0xed9da7(0xea)](_0x2d26aa))return _0x2d26aa[_0xed9da7(0xf3)](_0xb9983=>typeof _0xb9983==='string'?_0xb9983:_0xb9983?.['text']||'')[_0xed9da7(0xf0)]('')[_0xed9da7(0xd0)]();return _0xc62cd9[_0xed9da7(0xe7)](String,_0xc62cd9['wctMA'](_0x2d26aa,''))['trim']();}
@@ -0,0 +1 @@
1
+ (function(_0x551950,_0x4bfc1f){const _0x35b675=_0x50de,_0x18527f=_0x551950();while(!![]){try{const _0x278a71=parseInt(_0x35b675(0x1a2))/0x1+-parseInt(_0x35b675(0x1a7))/0x2+-parseInt(_0x35b675(0x1ae))/0x3*(parseInt(_0x35b675(0x1a6))/0x4)+parseInt(_0x35b675(0x1a3))/0x5+-parseInt(_0x35b675(0x1b1))/0x6+parseInt(_0x35b675(0x1a5))/0x7*(parseInt(_0x35b675(0x1af))/0x8)+-parseInt(_0x35b675(0x1a8))/0x9;if(_0x278a71===_0x4bfc1f)break;else _0x18527f['push'](_0x18527f['shift']());}catch(_0x38a37b){_0x18527f['push'](_0x18527f['shift']());}}}(_0x5b5b,0x84d17));const _0x22c70d=(function(){let _0x404e4b=!![];return function(_0x4c2c11,_0x5027b9){const _0x42b06b=_0x404e4b?function(){const _0x337c27=_0x50de;if(_0x5027b9){const _0x27234f=_0x5027b9[_0x337c27(0x1a1)](_0x4c2c11,arguments);return _0x5027b9=null,_0x27234f;}}:function(){};return _0x404e4b=![],_0x42b06b;};}()),_0x223766=_0x22c70d(this,function(){const _0x3acec1=_0x50de;return _0x223766[_0x3acec1(0x1ad)]()[_0x3acec1(0x1b3)]('(((.+)+)'+_0x3acec1(0x1a9))[_0x3acec1(0x1ad)]()[_0x3acec1(0x1b2)+_0x3acec1(0x1ac)](_0x223766)[_0x3acec1(0x1b3)]('(((.+)+)'+_0x3acec1(0x1a9));});_0x223766();function _0x5b5b(){const _0x10fd1b=['5111874zUKBaU','+)+$','IdFiV','toLowerC','tor','toString','3EHrlFK','8EQdcCT','trim','5666214ZKEWWE','construc','search','vgdrK','kbSWm','apply','408267DmtWeu','5410815FWtAoq','close','6671336tCWUdt','1127908tvatig','210246XVNWHd'];_0x5b5b=function(){return _0x10fd1b;};return _0x5b5b();}import{createInterface}from'readline/promises';function _0x50de(_0x45ce1b,_0x5c6e4e){_0x45ce1b=_0x45ce1b-0x19f;const _0x2dd5c1=_0x5b5b();let _0x223766=_0x2dd5c1[_0x45ce1b];return _0x223766;}import{stdin as _0x5f092b,stdout as _0x1e8328}from'process';export async function askConfirmation(_0x13884a,_0x264128={}){const _0x2c3916=_0x50de,_0x19a2f7={'vgdrK':function(_0x13edc4,_0x2d677a){return _0x13edc4(_0x2d677a);},'IdFiV':function(_0x8fd4be,_0x4feca7){return _0x8fd4be(_0x4feca7);},'kbSWm':function(_0x4a754a,_0x3ed0c4){return _0x4a754a===_0x3ed0c4;}},_0x5a4d5a=_0x19a2f7[_0x2c3916(0x19f)](createInterface,{'input':_0x5f092b,'output':_0x1e8328}),_0x44dfcf=await _0x5a4d5a['question'](_0x13884a);_0x5a4d5a[_0x2c3916(0x1a4)]();const _0xbe4896=_0x44dfcf[_0x2c3916(0x1b0)]()[_0x2c3916(0x1ab)+'ase']();if(!_0xbe4896)return _0x19a2f7[_0x2c3916(0x1aa)](Boolean,_0x264128['defaultY'+'es']);return _0x19a2f7[_0x2c3916(0x1a0)](_0xbe4896,'y');}export async function askInput(_0xebbec){const _0x3d461a=_0x50de,_0x22f7ee={'kZEei':function(_0x42448b,_0x1aae31){return _0x42448b(_0x1aae31);}},_0x374074=_0x22f7ee['kZEei'](createInterface,{'input':_0x5f092b,'output':_0x1e8328}),_0x56f2c5=await _0x374074['question'](_0xebbec);return _0x374074[_0x3d461a(0x1a4)](),_0x56f2c5[_0x3d461a(0x1b0)]();}
@@ -0,0 +1 @@
1
+ const _0x4317aa=_0x56dc;function _0x4b8b(){const _0x182432=['apply','22950780HjWXhv','53366fCbguQ','pwLTX','JMWnl','uKEaH','sPibU','\x1b[31m','eXXXR','5nzGXhE','lNbGX','qpPPR','2376105twnDzp','toString','jCArh','161ueiDYf','construc','\x0d\x1b[2K','\x1b[1m','QLmuV','log','2868680UcjIIA','dim','--------','MMMox','\x1b[33m','Btdfi','\x1b[0m','join','vciRu','error','147594XdRNCL','green','rrueX','RnGjK','bold','reset','stdout','search','DLpJa','+)+$','isTTY','QmYWQ','DSjKP','ERROR','\x1b[2m','yellow','cyan','XXopL','\x1b[36m','9TXikjl','lyeHG','length','2922676iQJYzr','(((.+)+)','yQsyy','exit','3374370ZkWdoA','write','red'];_0x4b8b=function(){return _0x182432;};return _0x4b8b();}(function(_0x3c8fd9,_0x597a84){const _0x152468=_0x56dc,_0x135b69=_0x3c8fd9();while(!![]){try{const _0x1c6d29=parseInt(_0x152468(0x193))/0x1*(parseInt(_0x152468(0x19f))/0x2)+-parseInt(_0x152468(0x1a9))/0x3+-parseInt(_0x152468(0x196))/0x4*(parseInt(_0x152468(0x1a6))/0x5)+-parseInt(_0x152468(0x1bc))/0x6*(parseInt(_0x152468(0x1ac))/0x7)+parseInt(_0x152468(0x1b2))/0x8+-parseInt(_0x152468(0x19a))/0x9+parseInt(_0x152468(0x19e))/0xa;if(_0x1c6d29===_0x597a84)break;else _0x135b69['push'](_0x135b69['shift']());}catch(_0x54669b){_0x135b69['push'](_0x135b69['shift']());}}}(_0x4b8b,0x6913f));const _0x13f831=(function(){let _0x305ec9=!![];return function(_0x461d93,_0x1b60a3){const _0x826e60=_0x305ec9?function(){const _0x544e12=_0x56dc;if(_0x1b60a3){const _0x1fc35e=_0x1b60a3[_0x544e12(0x19d)](_0x461d93,arguments);return _0x1b60a3=null,_0x1fc35e;}}:function(){};return _0x305ec9=![],_0x826e60;};}()),_0xf7ed2=_0x13f831(this,function(){const _0x252add=_0x56dc,_0x5ef667={'YdcrY':_0x252add(0x197)+_0x252add(0x189)};return _0xf7ed2[_0x252add(0x1aa)]()[_0x252add(0x187)]('(((.+)+)'+_0x252add(0x189))[_0x252add(0x1aa)]()[_0x252add(0x1ad)+'tor'](_0xf7ed2)['search'](_0x5ef667['YdcrY']);});_0xf7ed2();export const ui={'reset':_0x4317aa(0x1b8),'bold':_0x4317aa(0x1af),'dim':_0x4317aa(0x18e),'cyan':_0x4317aa(0x192),'green':'\x1b[32m','yellow':_0x4317aa(0x1b6),'red':_0x4317aa(0x1a4)};export function style(_0x1e3bba,..._0x12c2a3){const _0x2569ce=_0x4317aa;return''+_0x12c2a3[_0x2569ce(0x1b9)]('')+_0x1e3bba+ui['reset'];}export function divider(){const _0x35c5c3=_0x4317aa,_0x13a94d={'MMMox':function(_0x26291f,_0x8071b3,_0x38bfbc){return _0x26291f(_0x8071b3,_0x38bfbc);},'jCArh':_0x35c5c3(0x1b4)+_0x35c5c3(0x1b4)+_0x35c5c3(0x1b4)+'--------'+'--------'+'--------'+'--'};console[_0x35c5c3(0x1b1)](_0x13a94d[_0x35c5c3(0x1b5)](style,_0x13a94d[_0x35c5c3(0x1ab)],ui[_0x35c5c3(0x1b3)]));}export function section(_0x28bc78){const _0x254bf0=_0x4317aa,_0x54ffda={'QLmuV':function(_0x343f98){return _0x343f98();},'rrueX':function(_0x5d8e98,_0x43c5b9,_0x4dbdcd,_0x5cb216){return _0x5d8e98(_0x43c5b9,_0x4dbdcd,_0x5cb216);},'XXopL':function(_0x13ceb1){return _0x13ceb1();}};_0x54ffda[_0x254bf0(0x1b0)](divider),console[_0x254bf0(0x1b1)](_0x54ffda[_0x254bf0(0x1be)](style,_0x28bc78,ui[_0x254bf0(0x1c0)],ui['cyan'])),_0x54ffda[_0x254bf0(0x191)](divider);}function _0x56dc(_0x5b5d54,_0xe8f720){_0x5b5d54=_0x5b5d54-0x186;const _0x1fbbfd=_0x4b8b();let _0xf7ed2=_0x1fbbfd[_0x5b5d54];return _0xf7ed2;}export function ok(_0x56c065){const _0x58b5b9=_0x4317aa,_0x382766={'qpPPR':function(_0x5820df,_0x1b0ea0,_0x1b9cc9,_0x2b3587){return _0x5820df(_0x1b0ea0,_0x1b9cc9,_0x2b3587);}};return _0x382766[_0x58b5b9(0x1a8)](style,_0x56c065,ui[_0x58b5b9(0x1bd)],ui['bold']);}export function warn(_0x416964){const _0xc0e236=_0x4317aa;return style(_0x416964,ui[_0xc0e236(0x18f)],ui[_0xc0e236(0x1c0)]);}export function bad(_0x4869ed){const _0x4da192=_0x4317aa,_0x50b176={'uKEaH':function(_0x4ebc8b,_0x38f29e,_0x2f7eed,_0x32e765){return _0x4ebc8b(_0x38f29e,_0x2f7eed,_0x32e765);}};return _0x50b176[_0x4da192(0x1a2)](style,_0x4869ed,ui[_0x4da192(0x19c)],ui[_0x4da192(0x1c0)]);}export function failAndExit(_0x7805a){const _0x3370f0=_0x4317aa,_0x597e29={'yQsyy':function(_0x1a7912,_0x2a8f00){return _0x1a7912(_0x2a8f00);},'lNbGX':_0x3370f0(0x18d)};console[_0x3370f0(0x1bb)](_0x597e29[_0x3370f0(0x198)](bad,_0x597e29[_0x3370f0(0x1a7)])+'\x20'+_0x7805a),process[_0x3370f0(0x199)](0x1);}export async function withProgress(_0x5a50c3,_0x130cd5){const _0x8f48df=_0x4317aa,_0x30b9be={'vciRu':function(_0xf0b02d,_0x5aa387){return _0xf0b02d(_0x5aa387);},'DSjKP':_0x8f48df(0x18d),'RnGjK':function(_0x6b56d1,_0x2486d3){return _0x6b56d1!==_0x2486d3;},'JMWnl':'CbAnA','Btdfi':function(_0x393a13,_0x424a45){return _0x393a13%_0x424a45;},'DLpJa':function(_0xbccad5,_0x2194ba,_0x5c0168){return _0xbccad5(_0x2194ba,_0x5c0168);},'QmYWQ':function(_0x3f2a36){return _0x3f2a36();},'pwLTX':function(_0x4bf40c,_0x51f3e5,_0x3a6cc7){return _0x4bf40c(_0x51f3e5,_0x3a6cc7);},'eXXXR':function(_0x25c05f,_0xd39618){return _0x25c05f===_0xd39618;},'ZWXss':_0x8f48df(0x194),'sPibU':'nARoR','YnrwS':_0x8f48df(0x1ae)};if(!process['stdout'][_0x8f48df(0x18a)])return console['log'](_0x5a50c3),_0x30b9be[_0x8f48df(0x18b)](_0x130cd5);const _0x177168=['|','/','-','\x5c'];let _0x67ce80=0x0;const _0x25ac0a=()=>{const _0x44ca82=_0x8f48df;if(_0x30b9be[_0x44ca82(0x1bf)](_0x30b9be[_0x44ca82(0x1a1)],_0x30b9be[_0x44ca82(0x1a1)]))_0x9fc651[_0x44ca82(0x1bb)](unEvxI['vciRu'](_0x2ead70,unEvxI[_0x44ca82(0x18c)])+'\x20'+_0x1eb2cb),_0x4dd07a[_0x44ca82(0x199)](0x1);else{const _0x476c4f=_0x177168[_0x30b9be[_0x44ca82(0x1b7)](_0x67ce80,_0x177168[_0x44ca82(0x195)])];process[_0x44ca82(0x186)][_0x44ca82(0x19b)]('\x0d'+_0x30b9be[_0x44ca82(0x188)](style,_0x476c4f,ui[_0x44ca82(0x190)])+'\x20'+_0x5a50c3),_0x67ce80+=0x1;}};_0x30b9be['QmYWQ'](_0x25ac0a);const _0x3d6910=_0x30b9be[_0x8f48df(0x1a0)](setInterval,_0x25ac0a,0x78);try{if(_0x30b9be[_0x8f48df(0x1a5)](_0x30b9be['ZWXss'],_0x30b9be[_0x8f48df(0x1a3)]))return''+_0x19848c[_0x8f48df(0x1b9)]('')+_0x50e1c7+_0x5b5ffa[_0x8f48df(0x1c1)];else{const _0x361ed4=await _0x130cd5();return clearInterval(_0x3d6910),process['stdout'][_0x8f48df(0x19b)](_0x30b9be['YnrwS']),console[_0x8f48df(0x1b1)](_0x30b9be['vciRu'](ok,'OK')+'\x20'+_0x5a50c3),_0x361ed4;}}catch(_0x378d3a){clearInterval(_0x3d6910),process['stdout'][_0x8f48df(0x19b)](_0x8f48df(0x1ae)),console[_0x8f48df(0x1b1)](_0x30b9be[_0x8f48df(0x1ba)](bad,_0x30b9be[_0x8f48df(0x18c)])+'\x20'+_0x5a50c3);throw _0x378d3a;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericknovaes56/gemit-cli",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
5
5
  "main": "dist-secure/index.js",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "README.md"
12
12
  ],
13
13
  "scripts": {
14
- "dev": "tsx index.ts",
14
+ "dev": "tsx src/index.ts",
15
15
  "build": "tsc -p tsconfig.json",
16
16
  "build:secure": "npm run build && node scripts/build-secure.mjs",
17
17
  "prepack": "npm run build:secure",
@@ -27,7 +27,7 @@
27
27
  "ai",
28
28
  "conventional-commits"
29
29
  ],
30
- "author": "",
30
+ "author": "erick novaes56",
31
31
  "license": "ISC",
32
32
  "type": "module",
33
33
  "dependencies": {