@ericknovaes56/gemit-cli 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -0
- package/dist-secure/config.js +1 -0
- package/dist-secure/index.js +2 -0
- package/dist-secure/llm.js +1 -0
- package/package.json +47 -0
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# gemit-cli
|
|
2
|
+
|
|
3
|
+
CLI para sugerir mensagens de commit e nomes de branch com IA.
|
|
4
|
+
|
|
5
|
+
## Instalação
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g gemit-cli
|
|
9
|
+
```
|
|
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`
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
gemit init
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Opcionalmente, para usar `.env` local no projeto atual:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
gemit init --local
|
|
27
|
+
```
|
|
28
|
+
|
|
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
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
gemit commit
|
|
47
|
+
```
|
|
48
|
+
|
|
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.
|
|
55
|
+
|
|
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
|
+
```
|
|
@@ -0,0 +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);}}
|
|
@@ -0,0 +1,2 @@
|
|
|
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);});
|
|
@@ -0,0 +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)]();}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ericknovaes56/gemit-cli",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
|
|
5
|
+
"main": "dist-secure/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"gemit": "dist-secure/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist-secure/**/*",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "tsx index.ts",
|
|
15
|
+
"build": "tsc -p tsconfig.json",
|
|
16
|
+
"build:secure": "npm run build && node scripts/build-secure.mjs",
|
|
17
|
+
"prepack": "npm run build:secure",
|
|
18
|
+
"start": "node dist/index.js",
|
|
19
|
+
"start:secure": "node dist-secure/index.js",
|
|
20
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"git",
|
|
24
|
+
"commit",
|
|
25
|
+
"branch",
|
|
26
|
+
"cli",
|
|
27
|
+
"ai",
|
|
28
|
+
"conventional-commits"
|
|
29
|
+
],
|
|
30
|
+
"author": "",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"type": "module",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@langchain/anthropic": "^1.3.25",
|
|
35
|
+
"@langchain/core": "^1.1.34",
|
|
36
|
+
"@langchain/google-genai": "^2.1.26",
|
|
37
|
+
"@langchain/openai": "^1.3.0",
|
|
38
|
+
"commander": "^14.0.3",
|
|
39
|
+
"dotenv": "^17.3.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "^25.5.0",
|
|
43
|
+
"javascript-obfuscator": "^5.3.0",
|
|
44
|
+
"tsx": "^4.21.0",
|
|
45
|
+
"typescript": "^5.9.3"
|
|
46
|
+
}
|
|
47
|
+
}
|