gemit-cli 2.1.2 → 2.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/dist-secure/aiPrompts.js +1 -1
- package/dist-secure/cli-version.js +1 -1
- package/dist-secure/commands/add.js +1 -1
- package/dist-secure/commands/branch.js +1 -1
- package/dist-secure/commands/changelog.js +1 -1
- package/dist-secure/commands/commit.js +1 -1
- package/dist-secure/commands/config.js +1 -1
- package/dist-secure/commands/ignore.js +1 -1
- package/dist-secure/commands/log.js +1 -1
- package/dist-secure/commands/pr.js +1 -1
- package/dist-secure/commands/prompts.js +1 -1
- package/dist-secure/commands/release.js +1 -1
- package/dist-secure/commands/review.js +1 -1
- package/dist-secure/commands/squash.js +1 -1
- package/dist-secure/commands/stash.js +1 -1
- package/dist-secure/commands/undo.js +1 -1
- package/dist-secure/config.js +1 -1
- package/dist-secure/git.js +1 -1
- package/dist-secure/index.js +1 -1
- package/dist-secure/llm.js +1 -1
- package/dist-secure/prompts.js +1 -1
- package/dist-secure/ui.js +1 -1
- package/dist-secure/update.js +1 -1
- package/package.json +1 -1
package/dist-secure/aiPrompts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4e3fc1=_0x4aa0;(function(_0x3dfb0b,_0x41799c){const _0x57893e=_0x4aa0,_0x1dfb2c=_0x3dfb0b();while(!![]){try{const _0x304984=-parseInt(_0x57893e(0x270))/0x1*(parseInt(_0x57893e(0x247))/0x2)+-parseInt(_0x57893e(0x138))/0x3*(parseInt(_0x57893e(0x143))/0x4)+-parseInt(_0x57893e(0x200))/0x5+-parseInt(_0x57893e(0x292))/0x6+-parseInt(_0x57893e(0x20a))/0x7+-parseInt(_0x57893e(0x1e1))/0x8+parseInt(_0x57893e(0x197))/0x9;if(_0x304984===_0x41799c)break;else _0x1dfb2c['push'](_0x1dfb2c['shift']());}catch(_0x356f3b){_0x1dfb2c['push'](_0x1dfb2c['shift']());}}}(_0x53ef,0xd1f00));const _0x44ebb6=(function(){const _0x2e3af3=_0x4aa0,_0x2d9019={'KVyFz':function(_0x551585){return _0x551585();},'uWpNT':_0x2e3af3(0x217),'LuUZU':'lBytZ','vTxGB':'eKoEc'};let _0x2eb835=!![];return function(_0xb138b,_0x561235){const _0x548db0=_0x2e3af3,_0x29c773={'pkCtf':function(_0x153fa2){const _0x4afe1c=_0x4aa0;return _0x2d9019[_0x4afe1c(0x191)](_0x153fa2);},'mhHAL':function(_0x12e3e5,_0x3e89be){return _0x12e3e5(_0x3e89be);},'ZiaZx':_0x2d9019[_0x548db0(0x1c3)],'HeKTZ':_0x2d9019['LuUZU'],'fwrJu':_0x2d9019['vTxGB']},_0x516172=_0x2eb835?function(){const _0x5e1c11=_0x548db0;if(_0x561235){if(_0x29c773['HeKTZ']!==_0x29c773['fwrJu']){const _0x1fc515=_0x561235['apply'](_0xb138b,arguments);return _0x561235=null,_0x1fc515;}else{const _0xadae59=_0x29c773[_0x5e1c11(0x121)](_0x12908b);_0x23794b(_0xadae59,{'recursive':!![]});const _0x21cd76=[];for(const _0x50afb6 of _0x10978a){const _0x2b303b=_0x5ddfce(_0xadae59,_0x50afb6+_0x5e1c11(0x1e0));(!_0x29c773[_0x5e1c11(0x2bd)](_0x30e61c,_0x2b303b)||_0x29cda9)&&(_0x3281c5(_0x2b303b,_0x51839c[_0x50afb6]+'\x0a',_0x29c773[_0x5e1c11(0x117)]),_0x21cd76['push'](_0x2b303b));}return _0x21cd76;}}}:function(){};return _0x2eb835=![],_0x516172;};}()),_0x532092=_0x44ebb6(this,function(){const _0x416d4c=_0x4aa0,_0x331055={'uvIku':'(((.+)+)'+_0x416d4c(0x174)};return _0x532092['toString']()[_0x416d4c(0x26b)](_0x331055[_0x416d4c(0x2a6)])['toString']()[_0x416d4c(0x258)+_0x416d4c(0x293)](_0x532092)[_0x416d4c(0x26b)](_0x331055[_0x416d4c(0x2a6)]);});_0x532092();import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{homedir}from'os';import{join}from'path';function _0x4aa0(_0xbf59fb,_0x1050cd){_0xbf59fb=_0xbf59fb-0xff;const _0xbabf33=_0x53ef();let _0x532092=_0xbabf33[_0xbf59fb];return _0x532092;}function _0x53ef(){const _0x2f4267=['unções\x20e','naming\x20a','OBjMK','build,\x20c','ub\x20Pull\x20','y\x20the\x20ch','itespace','ades\x20exi','\x20curto\x20(','ary\x20modu','le\x20(max\x20','ling\x0a\x20\x20\x20','\x0a{{descr','ve\x20from\x20','owing\x20th','me,\x20no\x20e','2–4\x20fras','i,\x20ui,\x20d','):\x20deriv','ontinuad','.txt','302568hzyfJa','platform','\x0aRespond','indicate','o\x20que\x20fo','release/','commit','s\x20genéri','adds\x20or\x20','seção\x20##','\x0a\x20\x20\x20\x20###','rico\x20rec','gelog.co','mit;\x20não','portuguê','ters\x0a-\x20R','uction\x20f','1.\x20Uma\x20f','\x0a\x20\x20\x20\x20cho','staged_f','\x20versão\x20','stentes\x0a','\x0a\x20\x20\x20\x20tes','\x20assunto','ependenc','s\x20a\x20diff','o\x0a-\x20Não\x20','\x20Maximum','\x0a{{commi','contexto','mit\x20hist','6137230FzVpqS','\x0a-\x20Be\x20sp','o\x20contex','flect\x20it','egras:\x0a-','des\x20marc','factor\x20–','\x20bugfix\x20','\x20–\x20new\x20c','a\x20senior','10905146WUNrEV','Request\x20','feat\x20\x20\x20\x20','onfig,\x20d','o\x20invent','s\x20in\x20keb','fix\x20to\x20b','\x20(use\x20on','-\x20Derive','o\x20Brasil','\x20when\x20re','2–5\x20word','ora\x20do\x20c','utf8','e)\x0a-\x20Sco','cription','\x20\x20\x203.\x20Li','efer\x20evi','\x20Git\x20bra','for\x20a\x20Gi','\x0aDESCRIP','adas\x20do\x20','TION:\x0a##','#\x20Commit','}}\x0a\x0aDiff','name\x20the','ist\x20of\x20c','correçõe','ame\x20pref','s\x0a-\x20Retu','t\x20messag','title\x20an','entional','iption:\x20','ranch\x20Gi','\x20hashes\x20','rutura\x20o','s\x20como\x20c','update\x22,','g\x20a\x20GitH','gelog\x20(h','branch','Staged\x20f','egressio','–\x20format','r\x20domain','.gemit','##\x20Adici','rne\x20apen','ic\x20chang','he\x20commi','he\x20diff\x20','en\x20they\x20','\x20affecte','extra\x20co','use\x20as\x20m','lnerabil','auth,\x20ap','branch\x20d','##\x20[Unre','ion\x20ment','757902VrGhZU','\x20modules','ayNuU',':\x0a-\x20Form','inclua\x20c','código;\x20','ionalida','idades\x0a-','n\x0a\x20\x20\x20\x20re','vzXeY','incipais','\x20Commit\x20','paration','rive\x20fro','do\x20branc','\x20perf\x20\x20\x20',':\x20qual\x20e','construc','etected_','eturn\x20ON','w,\x20produ','t\x20e\x20das\x20','ce\x20a\x20PR\x20','trada:\x20f','pository','HXktY','detectad','clearly\x20','ng\x0a\x20\x20\x20\x20d','eepachan','\x20profiss','ta,\x20impe','\x20\x20\x20\x20feat','apabilit','iption}}','ength:\x205','search','descript','ion\x20only','mmentary','\x20steps\x20—','2CRExSW','Format:\x20','onado\x20\x20\x20','rn\x20ONLY\x20','message\x20','\x20Alterad','###\x20Desc','formance','n\x20and\x20de','eature,\x20','\x20over\x20co','t_histor','s,\x20tooli','pe:\x20deri','ipo\x20do\x20b','r\x20releas','\x20or\x20func','cise\x20des','rifiable','LuLQk',',\x20no\x20fil','ehavior\x20','entado\x0a\x20','dence\x20fr','.config','ocs\x20\x20\x20\x20\x20','tyle\x20\x20\x20\x20','only\x20whe','sem\x20pont','ia:\x0a\x20\x20\x20\x20','ile\x20name','win32','nch_cont','\x20type\x20fr','1610298JiuPzQ','tor','om\x20the\x20c','ttps://k','\x20not\x20gen','kdown,\x20s','pe:\x0a\x20\x20\x20\x20','o\x20final\x0a','onclusõe','nte\x0a-\x20Nã','ure/,\x20bu','\x20in\x20impe','diff\x20sta','\x20enginee','a}}','\x20portugu','m\x20engenh','corrects','vos\x20ou\x20f','to\x20verif','uvIku','ting,\x20wh','ent\x20prod','s\x20com\x20os','\x20correçõ','s\x20as\x20que','rete,\x20ve','hore\x20\x20\x20\x20','ing\x0a-\x20Su','elop\x0a\x20\x20\x20','w\x20branch','ua\x20apena','tions\x20mo','HANGELOG','le,\x20dire','\x20Seguran','ullets\x20c','e>:\x20<con','leased]\x20','bject:\x20i','vior\x0a\x20\x20\x20','ra\x20o\x20obj','c\x20and\x20me','mhHAL','erent\x20ty','ith\x20no\x20b','timos\x20{{','replace','nmIcF','gemit','rase\x20de\x20','HJgaE','ab-case,','\x20de\x20comm','ecific:\x20','e\x20branch','ure\x20\x20–\x20n','stá\x20pron','r\x20writin','drão\x20Kee','iles:\x0a{{','se-descr','\x20mudança','s\x20em\x20fun','f\x20or\x20com','ntation\x20','72\x20chars','\x20by\x20area','Library','otfix/,\x20','revendo\x20','ntences\x20','AHXzV','tual\x20dif','es\x20de\x20vu','ler\x20word','tures\x20co','rative\x20m','rFRqM','\x0a\x0a##\x20Cha','ique\x20o\x20t','to\x20para\x20','ersion\x20o','change\x0a\x20','into\x20mai','push','r\x20–\x20code','prompts','tFlow\x20re','\x20entrada','ta:\x0a{{br','\x20tests\x0a\x20','\x20on\x20the\x20','ions\x20a\x20v','\x20stat:\x0a{','g\x20a\x20Conv','ZiaZx','\x20e\x20descr','\x20\x20\x20\x20–\x20te','e\x20mood,\x20','down\x20bod','unless\x20t','\x20Summary','ange\x20is\x20','om\x20the\x20n','rects\x20a\x20','pkCtf','cklist\x20o','e,\x20no\x20tr','t\x20\x20\x20\x20\x20–\x20','e\x20nada\x20f','s\x20de\x20com','0\x20charac','dicionai','e\x20módulo','cações\x20a','f\x20—\x20do\x20n','ules:\x0a-\x20','ode\x20diff','curtos\x20e','ly\x20when\x20','ies,\x20too','only\x0a\x20\x20\x20','lleted\x20l','re\x20\x20\x20\x20–\x20','i\x20implem','\x20ci\x20\x20\x20\x20\x20','hotfix,\x20','s\x0a-\x20Incl','3636UmfqPY','e\x20GitFlo','\x0a-\x20Descr','type}}\x22\x20','D\x20pipeli','LY\x20the\x20b','Applicat','e>):\x20<su','ior\x20resu','\x20behavio','it\x20apena','2664tLpiLa','nges\x0a<bu','#\x20Removi','\x0a-\x20Retur','M-DD\x20(ou','release)','the\x20prim','\x20merged\x20','\x0a<1–3\x20se','alidades','ints\x20onl','eçalho:\x20','UtVqE','ata\x20belo','nalidade','ction:\x20l','changes,','iles}}\x0a\x0a','ado\x20para','Você\x20é\x20u','d\x20a\x20mark','t\x20scope\x20','s\x20de\x20bug','at:\x20<typ','a\x20em\x20por','qaRgM','—\x20YYYY-M','tFlow\x20em','ailing\x20p','bject>\x0a-','ça\x20\x20\x20\x20\x20–','sts\x20only','s\x20técnic','ax\x2072\x20ch','\x20invente','oss-cutt','m)\x20adapt','ontexto\x20','Corrigid','asil.\x0a\x0aR','eiro\x20sên','You\x20are\x20','\x20Start\x20w','b)\x0a\x20\x20Omi','kebab-ca','omplemen','ive\x20o\x20re','sible\x20in','ood>\x0a\x20\x20D','+)+$','p\x20a\x20Chan','do\x20\x20\x20\x20\x20\x20','\x20\x20\x20test\x20','ente\x20(úl','s:\x0a-\x20Cab','.\x0a\x0aRegra','a\x20remoçã','d\x20(e.g.\x20','klcIS','fornecid','ne\x20chang','cumentat','nation,\x20','fences\x0a\x0a','\x20–\x20novas','no\x20code\x20','cas\x20(\x22o\x20','o\x20releva','o\x20–\x20func','\x20\x20–\x20bug\x20','xplanati','eat\x20comm','\x20branch\x0a','ith\x20\x22{{d','mindo\x20o\x20','asil.\x0a\x0aS','rase\x20cur','\x20\x20\x20docs\x20','KVyFz','trim','low,\x20no\x20','m\x20the\x20ac','re\x20to\x20be','\x20\x20\x20–\x20urg','49648734PwdujB','\x20\x20\x20\x202.\x20P','velop\x0a\x20\x20','st\x20affec','arágrafo','toLowerC','sting\x20se','n\x20ONLY\x20t','tch\x20exce','mperativ','atch}}','y\x20echo\x20f','SshSi','etivo\x20do','es\x0a\x20\x20\x20\x20s','MVtaN','das\x0a\x20\x20\x20\x20','ês\x20do\x20Br','rativa,\x20','\x20Cada\x20en','\x20\x22do\x22)\x0a-','pifjG','\x20grouped','\x20\x20releas','into\x20dev','s:\x0a-\x20Tit','\x20types:\x0a','to\x0a-\x20Cit','he\x20code\x20','imit}}\x20c','ceholder',')\x0a-\x20Cate','trabalho','ranch\x20da','on\x20what\x20','\x20specifi','s\x20removi','diff\x20de\x20','\x20(no\x20log','swWhs',',\x20files,','h:\x0a{{bra','r\x20not\x20vi','ua\x20ao\x20fi','uWpNT','\x20total\x20l','y.\x0a\x0aRule','tuguês\x20d','.\x20Título','ctory,\x20o','darwin','etc.)\x0a\x0aC','anch_dat'];_0x53ef=function(){return _0x2f4267;};return _0x53ef();}export const PROMPT_NAMES=[_0x4e3fc1(0x1e7),_0x4e3fc1(0x233),'pr','changelo'+'g','log'];export const DEFAULT_PROMPTS={'commit':'You\x20are\x20'+_0x4e3fc1(0x209)+_0x4e3fc1(0x29f)+'r\x20writin'+_0x4e3fc1(0x116)+_0x4e3fc1(0x22a)+_0x4e3fc1(0x252)+_0x4e3fc1(0x274)+_0x4e3fc1(0x21d)+_0x4e3fc1(0x10f)+_0x4e3fc1(0x25f)+'.\x0a\x0aRules'+_0x4e3fc1(0x24a)+_0x4e3fc1(0x15a)+'e>(<scop'+_0x4e3fc1(0x13f)+_0x4e3fc1(0x160)+_0x4e3fc1(0x16d)+_0x4e3fc1(0x18c)+_0x4e3fc1(0x259)+_0x4e3fc1(0x13b)+_0x4e3fc1(0x11c)+_0x4e3fc1(0x23d)+_0x4e3fc1(0x262)+_0x4e3fc1(0x1e4)+_0x4e3fc1(0x1fa)+_0x4e3fc1(0x2be)+_0x4e3fc1(0x298)+_0x4e3fc1(0x20c)+_0x4e3fc1(0x208)+_0x4e3fc1(0x268)+'y\x20or\x20beh'+'avior\x0a\x20\x20'+'\x20\x20fix\x20\x20\x20'+'\x20\x20\x20–\x20cor'+_0x4e3fc1(0x120)+'bug\x20or\x20r'+_0x4e3fc1(0x235)+_0x4e3fc1(0x24f)+_0x4e3fc1(0x206)+'\x20restruc'+_0x4e3fc1(0x103)+'de\x20witho'+'ut\x20chang'+'ing\x20beha'+_0x4e3fc1(0x2ba)+_0x4e3fc1(0x256)+'\x20\x20–\x20impr'+'oves\x20per'+_0x4e3fc1(0x277)+_0x4e3fc1(0x1f7)+_0x4e3fc1(0x124)+_0x4e3fc1(0x1e9)+_0x4e3fc1(0x2a3)+_0x4e3fc1(0x112)+_0x4e3fc1(0x190)+'\x20\x20\x20\x20–\x20do'+_0x4e3fc1(0x180)+_0x4e3fc1(0x26d)+_0x4e3fc1(0x1f3)+_0x4e3fc1(0x133)+_0x4e3fc1(0x1cf)+_0x4e3fc1(0x20d)+_0x4e3fc1(0x1f9)+_0x4e3fc1(0x130)+_0x4e3fc1(0x1d7)+_0x4e3fc1(0x135)+'\x20\x20–\x20CI/C'+_0x4e3fc1(0x13c)+_0x4e3fc1(0x17f)+_0x4e3fc1(0x1a5)+_0x4e3fc1(0x28a)+_0x4e3fc1(0x236)+_0x4e3fc1(0x2a7)+_0x4e3fc1(0x1d2)+_0x4e3fc1(0x1bd)+_0x4e3fc1(0x23b)+_0x4e3fc1(0x218)+_0x4e3fc1(0x27d)+_0x4e3fc1(0x1d9)+_0x4e3fc1(0x149)+_0x4e3fc1(0x1d5)+_0x4e3fc1(0x2b4)+_0x4e3fc1(0x1c8)+_0x4e3fc1(0x237)+_0x4e3fc1(0x23f)+_0x4e3fc1(0x17c)+_0x4e3fc1(0x243)+_0x4e3fc1(0x1dd)+_0x4e3fc1(0x16e)+_0x4e3fc1(0x158)+_0x4e3fc1(0x28b)+'n\x20the\x20ch'+_0x4e3fc1(0x11e)+'truly\x20cr'+_0x4e3fc1(0x166)+_0x4e3fc1(0x2ae)+_0x4e3fc1(0x2b9)+_0x4e3fc1(0x1a0)+_0x4e3fc1(0x11a)+'lowercas'+_0x4e3fc1(0x123)+_0x4e3fc1(0x15f)+'eriod,\x20m'+_0x4e3fc1(0x164)+'ars\x0a\x20\x20De'+_0x4e3fc1(0x254)+_0x4e3fc1(0x194)+_0x4e3fc1(0x100)+_0x4e3fc1(0x12b)+'ot\x20simpl'+_0x4e3fc1(0x1a2)+_0x4e3fc1(0x28e)+'s\x20as\x20the'+'\x20subject'+_0x4e3fc1(0x146)+_0x4e3fc1(0x19e)+_0x4e3fc1(0x23c)+_0x4e3fc1(0x228)+'e\x20line,\x20'+'no\x20expla'+_0x4e3fc1(0x181)+_0x4e3fc1(0x184)+_0x4e3fc1(0x182)+_0x4e3fc1(0x234)+(_0x4e3fc1(0x2ce)+_0x4e3fc1(0x1f4)+_0x4e3fc1(0x154)+'Short\x20su'+'mmary:\x0a{'+'{summary'+_0x4e3fc1(0x222)+_0x4e3fc1(0x115)+'{diff_st'+'at}}\x0a\x0aPa'+_0x4e3fc1(0x19f)+'rpt:\x0a{{p'+_0x4e3fc1(0x1a1)),'branch':_0x4e3fc1(0x16c)+_0x4e3fc1(0x1cd)+_0x4e3fc1(0x21c)+'nch\x20foll'+_0x4e3fc1(0x1da)+_0x4e3fc1(0x139)+'w\x20conven'+'tion.\x0a\x0aR'+_0x4e3fc1(0x12c)+_0x4e3fc1(0x271)+'<type>/<'+_0x4e3fc1(0x16f)+_0x4e3fc1(0x2cf)+'iption>\x0a'+'-\x20GitFlo'+_0x4e3fc1(0x2b0)+_0x4e3fc1(0x1b1)+_0x4e3fc1(0x267)+_0x4e3fc1(0x2ca)+'ew\x20featu'+_0x4e3fc1(0x195)+'\x20merged\x20'+_0x4e3fc1(0x1af)+_0x4e3fc1(0x2af)+_0x4e3fc1(0x207)+_0x4e3fc1(0x188)+_0x4e3fc1(0x210)+'e\x20merged'+'\x20into\x20de'+_0x4e3fc1(0x199)+'\x20\x20hotfix'+_0x4e3fc1(0x196)+_0x4e3fc1(0x2a8)+_0x4e3fc1(0x1f1)+'ix\x20to\x20be'+_0x4e3fc1(0x14a)+_0x4e3fc1(0x10b)+_0x4e3fc1(0x278)+'velop\x0a\x20\x20'+_0x4e3fc1(0x1ae)+'e\x20\x20–\x20rel'+'ease\x20pre'+_0x4e3fc1(0x253)+_0x4e3fc1(0x211)+_0x4e3fc1(0x12f)+_0x4e3fc1(0x26c)+_0x4e3fc1(0x246)+_0x4e3fc1(0x114)+_0x4e3fc1(0x109)+_0x4e3fc1(0x27f)+'e)\x0a\x20\x20\x20\x20c'+_0x4e3fc1(0x2ad)+'–\x20mainte'+'nance,\x20d'+_0x4e3fc1(0x1f9)+'y\x20update'+_0x4e3fc1(0x27c)+_0x4e3fc1(0x263)+_0x4e3fc1(0x289)+'–\x20docume'+_0x4e3fc1(0x2d3)+_0x4e3fc1(0x131)+'\x20refacto'+_0x4e3fc1(0x10d)+'\x20restruc'+'turing\x20w'+_0x4e3fc1(0x2bf)+_0x4e3fc1(0x285)+_0x4e3fc1(0x10a)+_0x4e3fc1(0x177)+_0x4e3fc1(0x119)+_0x4e3fc1(0x162)+_0x4e3fc1(0x13a)+_0x4e3fc1(0x22b)+_0x4e3fc1(0x215)+_0x4e3fc1(0x20f)+_0x4e3fc1(0x2c6)+_0x4e3fc1(0x1ba)+_0x4e3fc1(0x2bc)+'aningful'+_0x4e3fc1(0x284)+_0x4e3fc1(0x102)+'s\x20(e.g.\x20'+'\x22add\x22,\x20\x22'+_0x4e3fc1(0x230)+_0x4e3fc1(0x1ab)+_0x4e3fc1(0x1fc)+_0x4e3fc1(0x1c4)+_0x4e3fc1(0x26a)+_0x4e3fc1(0x127)+_0x4e3fc1(0x1f0)+_0x4e3fc1(0x25a)+_0x4e3fc1(0x13d)+'ranch\x20na'+_0x4e3fc1(0x1db)+_0x4e3fc1(0x189)+'on\x0a\x0aDesc'+'ription:'+_0x4e3fc1(0x1d8)+_0x4e3fc1(0x269),'pr':_0x4e3fc1(0x16c)+_0x4e3fc1(0x209)+'\x20enginee'+_0x4e3fc1(0x2cc)+_0x4e3fc1(0x231)+_0x4e3fc1(0x1d0)+_0x4e3fc1(0x20b)+_0x4e3fc1(0x21d)+_0x4e3fc1(0x10f)+_0x4e3fc1(0x25f)+'.\x0a\x0aBased'+_0x4e3fc1(0x113)+_0x4e3fc1(0x244)+_0x4e3fc1(0x150)+_0x4e3fc1(0x25b)+_0x4e3fc1(0x25d)+_0x4e3fc1(0x229)+_0x4e3fc1(0x157)+_0x4e3fc1(0x11b)+_0x4e3fc1(0x1c5)+_0x4e3fc1(0x1b0)+_0x4e3fc1(0x1d6)+_0x4e3fc1(0x2d4)+_0x4e3fc1(0x1de)+'e\x20from\x20t'+_0x4e3fc1(0x1b3)+'diff;\x20tr'+_0x4e3fc1(0x18a)+'it\x20messa'+'ges\x20as\x20h'+_0x4e3fc1(0x14d)+'y\x0a\x20\x20Form'+'at:\x20<typ'+_0x4e3fc1(0x2b7)+_0x4e3fc1(0x281)+_0x4e3fc1(0x219)+_0x4e3fc1(0x29d)+_0x4e3fc1(0x104)+_0x4e3fc1(0x173)+'etect\x20th'+_0x4e3fc1(0x2c9)+_0x4e3fc1(0x291)+_0x4e3fc1(0x11f)+_0x4e3fc1(0x226)+'ix\x20(feat'+_0x4e3fc1(0x29c)+'gfix/,\x20h'+_0x4e3fc1(0x2d7)+_0x4e3fc1(0x1e6)+')\x20and\x20re'+_0x4e3fc1(0x203)+_0x4e3fc1(0x201)+_0x4e3fc1(0x2c8)+_0x4e3fc1(0x223)+_0x4e3fc1(0x248)+_0x4e3fc1(0x1bf)+_0x4e3fc1(0x280)+_0x4e3fc1(0x2b2)+_0x4e3fc1(0x19a)+'ted\x0a-\x20Pr'+_0x4e3fc1(0x21b)+_0x4e3fc1(0x287)+_0x4e3fc1(0x294)+_0x4e3fc1(0x12d)+_0x4e3fc1(0x27a)+'mmit\x20mes'+'sages\x20wh'+_0x4e3fc1(0x23e)+'conflict'+'\x0a-\x20Do\x20no'+'t\x20invent'+_0x4e3fc1(0x141)+_0x4e3fc1(0x1c1)+_0x4e3fc1(0x172)+'\x20the\x20dif'+_0x4e3fc1(0x2d2)+_0x4e3fc1(0x1ff)+'ory\x0a-\x20Te'+_0x4e3fc1(0x19d)+_0x4e3fc1(0x152)+'ist\x20conc'+_0x4e3fc1(0x2ac)+_0x4e3fc1(0x282)+_0x4e3fc1(0x26f)+_0x4e3fc1(0x296)+'eric\x20pla'+_0x4e3fc1(0x1b5)+_0x4e3fc1(0x227)+_0x4e3fc1(0x273)+'the\x20stru'+'cture\x20be'+_0x4e3fc1(0x193)+_0x4e3fc1(0x240)+_0x4e3fc1(0x26e)+'\x0a\x0aTITLE:'+'\x20<title>'+_0x4e3fc1(0x21e)+_0x4e3fc1(0x220)+_0x4e3fc1(0x11d)+_0x4e3fc1(0x14b)+_0x4e3fc1(0x2d9)+_0x4e3fc1(0x1b9)+'changed\x20'+'and\x20why>'+_0x4e3fc1(0x106)+_0x4e3fc1(0x144)+_0x4e3fc1(0x132)+_0x4e3fc1(0x224)+'oncrete\x20'+_0x4e3fc1(0x153)+_0x4e3fc1(0x1ad)+_0x4e3fc1(0x2d5)+_0x4e3fc1(0x214)+'levant>\x0a'+'\x0a##\x20Test'+'ing\x0a<che'+_0x4e3fc1(0x122)+'f\x20steps\x20'+_0x4e3fc1(0x2a5)+_0x4e3fc1(0x1d1)+'ange>\x0a\x0aB'+_0x4e3fc1(0x1b8)+_0x4e3fc1(0x111)+_0x4e3fc1(0x1cb)+_0x4e3fc1(0x2a0),'changelog':_0x4e3fc1(0x156)+_0x4e3fc1(0x2a2)+'eiro\x20sên'+'ior\x20gera'+'ndo\x20um\x20C'+_0x4e3fc1(0x2b3)+_0x4e3fc1(0x265)+'ional\x20em'+_0x4e3fc1(0x2a1)+_0x4e3fc1(0x1a8)+_0x4e3fc1(0x18e)+'iga\x20o\x20pa'+_0x4e3fc1(0x2cd)+_0x4e3fc1(0x175)+_0x4e3fc1(0x232)+_0x4e3fc1(0x295)+_0x4e3fc1(0x264)+_0x4e3fc1(0x1ed)+_0x4e3fc1(0x167)+_0x4e3fc1(0x155)+'\x20GitFlow'+_0x4e3fc1(0x17a)+_0x4e3fc1(0x179)+_0x4e3fc1(0x14e)+_0x4e3fc1(0x245)+_0x4e3fc1(0x2b8)+_0x4e3fc1(0x15d)+_0x4e3fc1(0x147)+_0x4e3fc1(0x1f5)+_0x4e3fc1(0x261)+'a\x20nos\x20co'+'mmits\x20de'+'\x20release'+_0x4e3fc1(0x1b6)+'gorias\x20p'+'ermitida'+'s\x20—\x20incl'+_0x4e3fc1(0x2b1)+_0x4e3fc1(0x2ab)+'\x20tiverem'+_0x4e3fc1(0x110)+'s:\x0a\x20\x20\x20\x20#'+_0x4e3fc1(0x239)+_0x4e3fc1(0x272)+_0x4e3fc1(0x183)+'\x20funcion'+_0x4e3fc1(0x14c)+_0x4e3fc1(0x1eb)+_0x4e3fc1(0x275)+'o\x20\x20\x20\x20\x20\x20–'+_0x4e3fc1(0x2d0)+_0x4e3fc1(0x2d1)+'cionalid'+_0x4e3fc1(0x1d3)+_0x4e3fc1(0x1f6)+'\x20\x20\x20\x20###\x20'+_0x4e3fc1(0x169)+'o\x20\x20\x20\x20\x20–\x20'+_0x4e3fc1(0x225)+_0x4e3fc1(0x159)+'s\x0a\x20\x20\x20\x20##'+_0x4e3fc1(0x145)+_0x4e3fc1(0x176)+'–\x20funcio'+_0x4e3fc1(0x151)+_0x4e3fc1(0x1bb)+_0x4e3fc1(0x1a7)+_0x4e3fc1(0x276)+_0x4e3fc1(0x1df)+_0x4e3fc1(0x187)+_0x4e3fc1(0x24d)+_0x4e3fc1(0x205)+'adas\x20par'+_0x4e3fc1(0x17b)+'o\x20futura'+'\x0a\x20\x20\x20\x20###'+_0x4e3fc1(0x2b5)+_0x4e3fc1(0x161)+_0x4e3fc1(0x2aa)+_0x4e3fc1(0x101)+_0x4e3fc1(0x242)+_0x4e3fc1(0x24e)+_0x4e3fc1(0x1aa)+_0x4e3fc1(0x25e)+_0x4e3fc1(0x18f)+_0x4e3fc1(0x266)+_0x4e3fc1(0x1a9)+_0x4e3fc1(0x28c)+_0x4e3fc1(0x299)+_0x4e3fc1(0x212)+'\x20as\x20entr'+_0x4e3fc1(0x21f)+_0x4e3fc1(0x29e)+_0x4e3fc1(0x25c)+'mensagen'+_0x4e3fc1(0x126)+_0x4e3fc1(0x1ee)+_0x4e3fc1(0x165)+_0x4e3fc1(0x2d0)+_0x4e3fc1(0x137)+_0x4e3fc1(0x1c2)+'nal\x20uma\x20'+_0x4e3fc1(0x1ea)+_0x4e3fc1(0x221)+_0x4e3fc1(0x2a9)+_0x4e3fc1(0x22d)+_0x4e3fc1(0x12e)+_0x4e3fc1(0x1f8)+'s\x0a-\x20Reto'+_0x4e3fc1(0x23a)+'as\x20o\x20mar'+_0x4e3fc1(0x297)+'em\x20expli'+_0x4e3fc1(0x12a)+_0x4e3fc1(0x128)+'s\x0a\x0aHistó'+_0x4e3fc1(0x1ec)+_0x4e3fc1(0x178)+_0x4e3fc1(0x2c0)+'commit_l'+_0x4e3fc1(0x1b4)+'ommits):'+_0x4e3fc1(0x1fd)+_0x4e3fc1(0x27b)+'y}}','log':_0x4e3fc1(0x156)+_0x4e3fc1(0x2a2)+_0x4e3fc1(0x16b)+_0x4e3fc1(0x140)+_0x4e3fc1(0x18d)+_0x4e3fc1(0x1b7)+'\x20de\x20um\x20b'+_0x4e3fc1(0x22c)+_0x4e3fc1(0x15e)+_0x4e3fc1(0x2a1)+_0x4e3fc1(0x1a8)+_0x4e3fc1(0x16a)+_0x4e3fc1(0x204)+'\x20Identif'+_0x4e3fc1(0x107)+_0x4e3fc1(0x27e)+'ranch\x20(f'+_0x4e3fc1(0x279)+'bugfix,\x20'+_0x4e3fc1(0x136)+_0x4e3fc1(0x148)+'\x20pelo\x20no'+'me\x20e\x20pel'+_0x4e3fc1(0x202)+'to\x0a-\x20Est'+_0x4e3fc1(0x22e)+'brigatór'+_0x4e3fc1(0x28d)+_0x4e3fc1(0x1f2)+_0x4e3fc1(0x2c4)+_0x4e3fc1(0x1fe)+_0x4e3fc1(0x257)+_0x4e3fc1(0x2bb)+_0x4e3fc1(0x1a4)+_0x4e3fc1(0x18b)+_0x4e3fc1(0x198)+_0x4e3fc1(0x19b)+_0x4e3fc1(0x1d4)+_0x4e3fc1(0x1dc)+'es)\x20desc'+_0x4e3fc1(0x2d8)+_0x4e3fc1(0x1e5)+_0x4e3fc1(0x134)+_0x4e3fc1(0x286)+_0x4e3fc1(0x21a)+'sta\x20de\x20b'+_0x4e3fc1(0x2b6)+'om\x20as\x20pr'+_0x4e3fc1(0x251)+_0x4e3fc1(0x2d0)+_0x4e3fc1(0x163)+'as\x0a-\x20Der'+_0x4e3fc1(0x171)+'sumo\x20do\x20'+_0x4e3fc1(0x1bc)+_0x4e3fc1(0x24c)+_0x4e3fc1(0x241)+'ensagens'+_0x4e3fc1(0x2c7)+_0x4e3fc1(0x142)+_0x4e3fc1(0x22f)+_0x4e3fc1(0x170)+_0x4e3fc1(0x1b2)+_0x4e3fc1(0x129)+'s,\x20arqui'+_0x4e3fc1(0x2a4)+_0x4e3fc1(0x1cc)+'specífic'+'os\x20quand'+_0x4e3fc1(0x186)+_0x4e3fc1(0x29b)+_0x4e3fc1(0x20e)+_0x4e3fc1(0x125)+_0x4e3fc1(0x216)+'ontexto\x20'+_0x4e3fc1(0x17e)+_0x4e3fc1(0x1fb)+_0x4e3fc1(0x24b)+_0x4e3fc1(0x29a)+_0x4e3fc1(0x1e8)+_0x4e3fc1(0x185)+'branch\x20e'+_0x4e3fc1(0x2cb)+_0x4e3fc1(0x108)+'merge\x22,\x20'+_0x4e3fc1(0x1ca)+_0x4e3fc1(0x168)+_0x4e3fc1(0x255)+_0x4e3fc1(0x1c0)+_0x4e3fc1(0x290)+'ext}}'};export function getPromptsDir(){const _0x239954=_0x4e3fc1,_0xebc631={'HXktY':_0x239954(0x28f),'VfTnm':function(_0x3315aa,_0x5eac4e,_0x2a8703,_0x1c6c0b){return _0x3315aa(_0x5eac4e,_0x2a8703,_0x1c6c0b);},'rFRqM':function(_0x347d8a){return _0x347d8a();},'RQEtG':_0x239954(0x238),'OBjMK':function(_0x23b166,_0x3f7c73){return _0x23b166===_0x3f7c73;},'UtVqE':_0x239954(0x1c9),'klcIS':function(_0x3034da,_0x457b79,_0x178cfe,_0x399153,_0x4cfeab,_0x2d4fa6){return _0x3034da(_0x457b79,_0x178cfe,_0x399153,_0x4cfeab,_0x2d4fa6);},'AHXzV':_0x239954(0x2d6),'pifjG':_0x239954(0x10e),'dsGEm':_0x239954(0x288),'MVtaN':_0x239954(0x2c3)};if(process[_0x239954(0x1e2)]===_0xebc631[_0x239954(0x260)])return _0xebc631['VfTnm'](join,process.env.APPDATA||join(_0xebc631[_0x239954(0x105)](homedir),_0xebc631['RQEtG']),'gemit',_0x239954(0x10e));if(_0xebc631[_0x239954(0x1ce)](process[_0x239954(0x1e2)],_0xebc631[_0x239954(0x14f)]))return _0xebc631[_0x239954(0x17d)](join,_0xebc631['rFRqM'](homedir),_0xebc631[_0x239954(0xff)],_0x239954(0x13e)+'ion\x20Supp'+'ort','gemit',_0xebc631[_0x239954(0x1ac)]);return join(process.env.XDG_CONFIG_HOME||join(_0xebc631['rFRqM'](homedir),_0xebc631['dsGEm']),_0xebc631[_0x239954(0x1a6)],_0xebc631[_0x239954(0x1ac)]);}const LANGUAGE_INSTRUCTIONS={'pt-br':{'commit':_0x4e3fc1(0x1e3)+_0x4e3fc1(0x15b)+_0x4e3fc1(0x1c6)+'o\x20Brasil'+'.','branch':_0x4e3fc1(0x1e3)+_0x4e3fc1(0x15b)+_0x4e3fc1(0x1c6)+_0x4e3fc1(0x213)+'.','pr':_0x4e3fc1(0x1e3)+_0x4e3fc1(0x15b)+_0x4e3fc1(0x1c6)+_0x4e3fc1(0x213)+_0x4e3fc1(0x1c7)+_0x4e3fc1(0x118)+'ição\x20em\x20'+_0x4e3fc1(0x1ef)+'s.'}};export function loadPrompt(_0x32b4ce){const _0x4f5e8d=_0x4e3fc1,_0x42631d={'RfOqZ':function(_0x1ee2c7){return _0x1ee2c7();},'vzXeY':function(_0x1854d5,_0x2550c2,_0x290aa2){return _0x1854d5(_0x2550c2,_0x290aa2);},'swWhs':function(_0x499dd5,_0xe47df4){return _0x499dd5(_0xe47df4);},'ayNuU':'utf8'},_0x1b2a63=_0x42631d['RfOqZ'](getPromptsDir),_0x179fb1=_0x42631d[_0x4f5e8d(0x250)](join,_0x1b2a63,_0x32b4ce+'.txt');let _0x5546f7;if(_0x42631d[_0x4f5e8d(0x1be)](existsSync,_0x179fb1)){const _0x3e878c=_0x42631d[_0x4f5e8d(0x250)](readFileSync,_0x179fb1,_0x42631d[_0x4f5e8d(0x249)])[_0x4f5e8d(0x192)]();_0x5546f7=_0x3e878c||DEFAULT_PROMPTS[_0x32b4ce];}else _0x5546f7=DEFAULT_PROMPTS[_0x32b4ce];const _0x499570=(process.env.GEMIT_LANGUAGE||'en')[_0x4f5e8d(0x19c)+'ase']()[_0x4f5e8d(0x192)](),_0x132bdb=LANGUAGE_INSTRUCTIONS[_0x499570];return _0x132bdb?.[_0x32b4ce]&&(_0x5546f7=_0x5546f7+_0x132bdb[_0x32b4ce]),_0x5546f7;}export function interpolate(_0x2db00a,_0x2ba383){const _0x562112=_0x4e3fc1;return _0x2db00a[_0x562112(0x2c1)](/\{\{(\w+)\}\}/g,(_0x5172c5,_0x1f3cc7)=>_0x2ba383[_0x1f3cc7]??'{{'+_0x1f3cc7+'}}');}export function initGlobalPrompts(_0x4f01a5=![]){const _0x5c0ca7=_0x4e3fc1,_0x4b610e={'MKYWn':function(_0xa3815,_0x144ddc){return _0xa3815+_0x144ddc;},'HJgaE':function(_0x432b95){return _0x432b95();},'SshSi':function(_0x359350,_0x4f320b,_0x201d86){return _0x359350(_0x4f320b,_0x201d86);},'oipBw':function(_0x471e67,_0xeca31f){return _0x471e67!==_0xeca31f;},'nmIcF':function(_0x50a65c,_0x438b72){return _0x50a65c(_0x438b72);},'WrqIY':function(_0x321b4f,_0x5a1444,_0x19ca2a,_0x19651b){return _0x321b4f(_0x5a1444,_0x19ca2a,_0x19651b);},'qaRgM':'utf8'},_0x4ccc12=_0x4b610e[_0x5c0ca7(0x2c5)](getPromptsDir);_0x4b610e['SshSi'](mkdirSync,_0x4ccc12,{'recursive':!![]});const _0x327f43=[];for(const _0x1ba1d5 of PROMPT_NAMES){if(_0x4b610e['oipBw'](_0x5c0ca7(0x283),'ymwla')){const _0x2db59b=_0x4b610e[_0x5c0ca7(0x1a3)](join,_0x4ccc12,_0x1ba1d5+'.txt');(!_0x4b610e[_0x5c0ca7(0x2c2)](existsSync,_0x2db59b)||_0x4f01a5)&&(_0x4b610e['WrqIY'](writeFileSync,_0x2db59b,DEFAULT_PROMPTS[_0x1ba1d5]+'\x0a',_0x4b610e[_0x5c0ca7(0x15c)]),_0x327f43[_0x5c0ca7(0x10c)](_0x2db59b));}else _0x255f65=qQHYdy['MKYWn'](_0x2e4be8,_0xf94c7b[_0x4ba64d]);}return _0x327f43;}
|
|
1
|
+
const _0x6341a5=_0x5be0;function _0xa57a(){const _0x41f86f=['rects\x20a\x20','rias\x20per','sumo\x20do\x20','pository','ontexto\x20','ado\x20para','\x20(no\x20log','me,\x20no\x20e','b)\x0a\x20\x20Omi','xplanati','\x0a-\x20Be\x20sp','version}','e\x20\x20–\x20rel','y.\x0a\x0aRule','search','\x20\x20–\x20bug\x20','ut\x20chang','nation,\x20','release/','\x20Maximum','the\x20stru','ies,\x20too','at}}\x0a\x0aPa','ure\x20\x20–\x20n','into\x20dev','\x20curto\x20(','gfix/,\x20h','ist\x20conc','ction:\x20l','branch\x20e','466417sVikEh','tFlow\x20em','uction\x20f','st\x20affec','s\x20contid','Request\x20','a\x20seção\x20','l}}\x0a-\x20To','\x20mudança','change\x0a\x20','859426EYszJZ','ior\x20resu','eno,\x20o\x20c','DprEg','SpDbc','velop\x0a\x20\x20','type}}\x22\x20','a\x20lista\x0a','\x20enginee','diff_sta','tuguês\x20d','no\x20code\x20','iles}}\x0a\x0a','Library','do\x20commi','os\x0a-\x20Ret','\x20grouped','sSJwt','ic\x20chang','.\x0a\x0aRules','ique\x20o\x20t','etivo\x20do','g\x20a\x20Conv','e,\x20no\x20tr','\x20deve\x20se','pe:\x0a\x20\x20\x20\x20',':\x0a-\x20Form','branch\x20d','ints\x20onl','kebab-ca','i\x20implem','to\x0a-\x20Est','MynLR','iles:\x0a{{','cise\x20des','portuguê',')\x20and\x20re','e\x20não\x20es','\x22add\x22,\x20\x22','y\x20the\x20ch','\x20\x20\x20docs\x20','at\x20abaix','ctory,\x20o','nte\x0a-\x20Nã','clearly\x20','LyZDe','s\x20curtos','sible\x20in','cas\x20(\x22o\x20','release)','drão\x20Kee','):\x20deriv','Desconti','w,\x20produ','le,\x20dire','fcIJz','a\x20entrad','y\x0a\x20\x20Form','\x20subject','KmAot','trim','it\x20apena','f\x20—\x20do\x20n','mitidas\x20','o\x20contex','s,\x20arqui','You\x20are\x20','ervalo:\x20','ange_lab','XaFGT','}\x0a\x0aDiff\x20','es\x0a-\x20Cad','\x20\x20\x203.\x20Li','BqKjy','o\x20releva','eat\x20comm','\x20tests\x0a\x20','alidades','s\x0a-\x20Retu','mmit\x20mes','_count}}','rete,\x20ve','commits\x20','\x0a-\x20Do\x20no','e\x20nada\x20f','cription','\x20de\x20um\x20b','90LTiySH','tures\x20co','a}}','-\x20GitFlo','bject>\x0a-','\x20\x20\x20–\x20cor','y\x20or\x20beh','ommits\x20e','\x20\x20–\x20impr','specífic','ion\x20ment','se-descr','on\x20what\x20','fences\x0a\x0a','s:\x0a-\x20Tit','efer\x20evi','etect\x20th','title\x20an','\x20profiss','ing\x0a<che','s\x20as\x20the','its\x20nest','Você\x20é\x20u','t}}','ase','\x20merged\x20','es)\x20desc','mmary:\x0a{','turing\x20w','e)\x0a\x20\x20\x20\x20c','cture\x20be','\x20###\x20Seg','diff;\x20tr','–\x20mainte','{{from_t','ensagens','Format:\x20','y\x20update','om\x20the\x20c','egras:\x0a-','invente\x20','\x20funcion','cionalid','ntences\x20','QyEVt','s\x20(e.g.\x20','###\x20Comm','etc.)\x0a\x0aC','construc','\x20types:\x0a','urança\x20\x20','entado\x0a\x20','ary\x20modu','ist\x20of\x20c','tch\x20exce','\x20on\x20the\x20','le\x20(max\x20','\x20bugfix\x20','o\x20\x20\x20\x20–\x20n','QmomC','do:\x20{{ra','changed\x20','\x20\x20–\x20corr','ntation\x20','os\x20hashe','(((.+)+)','e>:\x20<con','nsbhF','e>):\x20<su','o\x0a-\x20Não\x20','\x20\x20\x20###\x20A','ehavior\x20','tFlow\x20re','sages\x20wh','\x20existen','rifiable','d\x20(e.g.\x20','push','w\x20branch','ength:\x205','t\x20mais\x20r','trabalho','\x20Commit\x20','xzoFe','ription:','for\x20a\x20Gi','sta\x20de\x20b','hOMkK','\x20curta,\x20','gNRaB','message\x20','anch_dat','it\x20messa','o\x20Brasil','803168ZXTOKd','he\x20code\x20','platform','e\x20módulo','n\x20ONLY\x20t','ith\x20\x22{{d','.\x0a\x0aBased','HUtDE','only\x0a\x20\x20\x20','sting\x20se','.txt','ipo\x20do\x20b','cklist\x20o','\x20\x22do\x22)\x0a-','ting,\x20wh','\x20\x20###\x20Re','\x20\x20–\x20CI/C','SSIpR','\x20–\x20new\x20c','t\x20\x20\x20\x20\x20–\x20','ted\x0a-\x20Pr','fornecid','\x20or\x20func','t\x20scope\x20','jlLNX','nch_cont','into\x20mai','\x0a\x20\x20\x20\x20tes','as\x20nos\x20c','\x20perf\x20\x20\x20','corrects','fix\x20to\x20b','e\x20interv','ters\x0a-\x20R','lidades\x20','etected_','orne\x20ape','alo\x20({{r','ecific:\x20','aosqB','+)+$','es\x0a\x20\x20\x20\x20s','staged_f','3589055DRSEzc','unções\x20e','LIIUm','\x20para\x20re','entradas','ional\x20em','ion\x20Supp','e\x20GitFlo','pe:\x20deri','alo\x20de\x20c','h:\x0a{{bra','\x20Start\x20w','ranch\x20na','\x20portugu','eric\x20pla','and\x20why>','\x20Identif','owing\x20th','ory\x0a-\x20Te','reções\x20d','ions\x20a\x20v','ersion\x20o','3qzbAoI','PENAS\x20as','t\x20invent','elop\x0a\x20\x20\x20','ttps://k','}]\x20—\x20use','t\x20messag','asil.\x0a\x0aS','0\x20charac','8312620gjxNMs','código;\x20','brigatór','final\x20um','teja\x20exp','inclua\x20c','TBsZr','conflict','ta:\x0a{{br','utf8','ailing\x20p','\x0a<1–3\x20se','darwin','ne\x20chang','at:\x20<typ','INMQd','XTO\x20DEST','y\x20echo\x20f','\x20restruc','onfig,\x20d','e\x20assunt','diff\x20de\x20','ure/,\x20bu','\x20apenas\x20','\x20steps\x20—','eepachan','its\x20com\x20','he\x20diff\x20','\x0a-\x20Descr','ame\x20pref','\x20\x20\x20\x202.\x20P','low,\x20no\x20','i,\x20ui,\x20d','lowercas','YrDVI','ent\x20prod','eature,\x20','ort','S:\x0a-\x20Doc','ior\x20(tag','rpt:\x0a{{p','e\x20branch','toString','wuuLe','ranch\x20Gi','a\x20em\x20por','moção\x20fu','\x20a\x20data\x20','dence\x20fr','a\x20versão','s\x20técnic','asil.\x0a\x0aR','hotfix,\x20','extra\x20co','s\x20como\x20c','4139160ixsPAz','\x20\x20\x20\x20–\x20fu','ovas\x20fun','toLowerC','incipais','apabilit','iverem\x20e','A\x20RELEAS','\x20\x20releas','gemit','ing\x20beha','–\x20docume','movidas\x0a','ing\x0a-\x20Su','ode\x20diff','<type>/<','ecente\x20d','WKRGz','}}\x0a\x0aDiff','.config','f\x20steps\x20','ile\x20name','ly\x20when\x20','licitame','ges\x20as\x20h','\x20base):\x20','ponto\x20fi','abilidad','ranch\x20da','o\x20invent','iption}}','-\x20Catego','\x20diff\x20st','adds\x20or\x20','eriod,\x20m','\x20stat:\x0a{','alho:\x20##','ior\x20gera','log','ules:\x0a-\x20','m\x20the\x20ac','ve\x20from\x20','tyle\x20\x20\x20\x20','\x0a-\x20Retur','SPHGe','\x20when\x20re','\x20refacto','win32','huYrF','r\x20domain','me\x20e\x20pel',':\x20qual\x20e','gelog.co','merge\x22,\x20','ommits\x20n','tura\x0a\x20\x20\x20','lleted\x20l','\x20\x20\x20test\x20','TsUvm','name\x20the','–\x20format','ling\x0a\x20\x20\x20','FjFQj','ocs\x20\x20\x20\x20\x20','r\x20pequen','as\x0a-\x20Der','Applicat','\x20total\x20l','el}}):\x0a{','arágrafo','stá\x20pron','\x0a-\x20Cabeç','ntervalo','umente\x20A','rn\x20ONLY\x20','ommits\x0a-','o\x20que\x20fo','rative\x20m','eiro\x20sên','TION:\x0a##','\x20\x20\x20–\x20urg','tes\x0a\x20\x20\x20\x20','tal\x20de\x20c','ão\x20anter','\x20bugs\x0a\x20\x20','\x20\x20\x20\x20–\x20te','\x0a\x0aRegras','use\x20as\x20m','ler\x20word','E:\x0a-\x20Nov','re\x20\x20\x20\x20–\x20','hore\x20\x20\x20\x20','mhYZl','otfix/,\x20','rkdown,\x20','r\x20releas','cumentat','nas\x20o\x20ma','indicate','s,\x20tooli','ng\x0a\x20\x20\x20\x20d','\x0aDESCRIP','o\x0a-\x20NÃO\x20','ive\x20o\x20re','\x20branch\x0a','\x20modules','\x20not\x20gen','{{commit','prompts','.\x20Título',',\x20files,','funciona','este\x20int','oves\x20per','eturn\x20ON','iption:\x20','\x20over\x20co','ion\x20only','ix\x20(feat','LTtJP','\x0aRespond','de\x20witho','ext}}','atch}}','vos\x20ou\x20f','only\x20whe','e)\x0a-\x20Sco','\x20GitFlow','ix\x20to\x20be',':\x20{{new_','ora\x20do\x20c','en\x20they\x20','\x20type\x20fr','rase\x20de\x20','ição\x20em\x20','RdMGk','tor','ependenc','ades\x0a\x20\x20\x20','aningful','ês\x20do\x20Br','\x20\x20\x20\x20###\x20','ncionali','history}','ub\x20Pull\x20','ce\x20a\x20PR\x20','ata\x20belo','2–4\x20fras','iga\x20o\x20pa','tion.\x0a\x0aR','m\x20engenh','do\x20branc','###\x20Corr','e>(<scop','\x20\x20hotfix','\x20in\x20impe','1.\x20Uma\x20f','s\x20a\x20diff','e\x20merged','build,\x20c','rutura\x20o','1228118uXFcGf','is\x0a\x0aComm','ranch\x20(f','\x20pelo\x20no','commit','igido\x20\x20\x20','nte\x20nest','bject:\x20i','bug\x20or\x20r','rive\x20fro','9JEVwTk','{summary','ceholder','nance,\x20d','r\x20writin','72\x20chars','stat:\x0a{{','adiciona'];_0xa57a=function(){return _0x41f86f;};return _0xa57a();}(function(_0x8230e1,_0x265365){const _0x463f09=_0x5be0,_0x46d411=_0x8230e1();while(!![]){try{const _0x23be98=parseInt(_0x463f09(0xd6))/0x1+-parseInt(_0x463f09(0x110))/0x2+-parseInt(_0x463f09(0x206))/0x3*(parseInt(_0x463f09(0x1c5))/0x4)+parseInt(_0x463f09(0x1f0))/0x5+parseInt(_0x463f09(0x167))/0x6*(-parseInt(_0x463f09(0x106))/0x7)+-parseInt(_0x463f09(0x246))/0x8+-parseInt(_0x463f09(0xe0))/0x9*(-parseInt(_0x463f09(0x20f))/0xa);if(_0x23be98===_0x265365)break;else _0x46d411['push'](_0x46d411['shift']());}catch(_0x2332ee){_0x46d411['push'](_0x46d411['shift']());}}}(_0xa57a,0x99c42));const _0x2e4cd9=(function(){const _0x263d99=_0x5be0,_0x28a2c7={'QmomC':function(_0x3b1ddb,_0x620c8f,_0x2ec47d,_0x50a91d,_0x5968b9,_0x5eca94){return _0x3b1ddb(_0x620c8f,_0x2ec47d,_0x50a91d,_0x5968b9,_0x5eca94);},'HUtDE':_0x263d99(0x11d),'WKRGz':'gemit','SPHGe':_0x263d99(0x21e)};let _0x26054f=!![];return function(_0xeed3fb,_0x2f7524){const _0x8bd0e7=_0x263d99,_0x318cf9={'bDEkY':function(_0x374689,_0x410d44,_0x1b2c25,_0x4e671d,_0x448434,_0x1a67a5){const _0xd7291d=_0x5be0;return _0x28a2c7[_0xd7291d(0x1a2)](_0x374689,_0x410d44,_0x1b2c25,_0x4e671d,_0x448434,_0x1a67a5);},'fcIJz':_0x28a2c7[_0x8bd0e7(0x1cc)],'FjFQj':_0x8bd0e7(0x288)+_0x8bd0e7(0x1f6)+_0x8bd0e7(0x234),'TBsZr':_0x28a2c7[_0x8bd0e7(0x257)],'KmAot':function(_0x158dac,_0x501e68){return _0x158dac===_0x501e68;},'SSIpR':_0x8bd0e7(0x276),'mhYZl':_0x28a2c7[_0x8bd0e7(0x272)]},_0xdd4b3f=_0x26054f?function(){const _0x2dde7f=_0x8bd0e7;if(_0x2f7524){if(_0x318cf9[_0x2dde7f(0x14b)](_0x318cf9[_0x2dde7f(0x1d6)],_0x318cf9[_0x2dde7f(0x2a2)]))return _0x318cf9['bDEkY'](_0x56497f,_0x46e285(),_0x318cf9[_0x2dde7f(0x147)],_0x318cf9[_0x2dde7f(0x284)],_0x318cf9[_0x2dde7f(0x215)],'prompts');else{const _0x97e926=_0x2f7524['apply'](_0xeed3fb,arguments);return _0x2f7524=null,_0x97e926;}}}:function(){};return _0x26054f=![],_0xdd4b3f;};}()),_0x108f94=_0x2e4cd9(this,function(){const _0x47779a=_0x5be0,_0x27ad52={'aosqB':_0x47779a(0x1a8)+_0x47779a(0x1ed)};return _0x108f94[_0x47779a(0x239)]()['search'](_0x27ad52[_0x47779a(0x1ec)])[_0x47779a(0x239)]()[_0x47779a(0x197)+_0x47779a(0x2ce)](_0x108f94)[_0x47779a(0xf6)](_0x27ad52[_0x47779a(0x1ec)]);});_0x108f94();import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';function _0x5be0(_0x412eec,_0x55d85a){_0x412eec=_0x412eec-0xc8;const _0x4c00e8=_0xa57a();let _0x108f94=_0x4c00e8[_0x412eec];return _0x108f94;}import{homedir}from'os';import{join}from'path';export const PROMPT_NAMES=[_0x6341a5(0xda),'branch','pr','changelo'+'g',_0x6341a5(0x26c)];export const DEFAULT_PROMPTS={'commit':'You\x20are\x20'+'a\x20senior'+_0x6341a5(0x118)+_0x6341a5(0xe4)+_0x6341a5(0x126)+'entional'+_0x6341a5(0x1b9)+_0x6341a5(0x1c1)+'for\x20a\x20Gi'+'tFlow\x20re'+_0x6341a5(0xeb)+_0x6341a5(0x123)+_0x6341a5(0x12a)+_0x6341a5(0x21d)+_0x6341a5(0xce)+_0x6341a5(0x1ab)+_0x6341a5(0x16b)+_0x6341a5(0x1fb)+_0x6341a5(0x1ca)+_0x6341a5(0x1e8)+_0x6341a5(0x116)+'unless\x20t'+_0x6341a5(0x22a)+_0x6341a5(0x13c)+_0x6341a5(0x2a8)+_0x6341a5(0xd2)+'erent\x20ty'+_0x6341a5(0x129)+'feat\x20\x20\x20\x20'+_0x6341a5(0x1d7)+_0x6341a5(0x24b)+_0x6341a5(0x16d)+'avior\x0a\x20\x20'+'\x20\x20fix\x20\x20\x20'+_0x6341a5(0x16c)+_0x6341a5(0xe8)+_0x6341a5(0xde)+'egressio'+'n\x0a\x20\x20\x20\x20re'+'factor\x20–'+_0x6341a5(0x221)+_0x6341a5(0x168)+_0x6341a5(0x2bf)+_0x6341a5(0xf8)+_0x6341a5(0x250)+'vior\x0a\x20\x20\x20'+_0x6341a5(0x1e2)+_0x6341a5(0x16f)+_0x6341a5(0x2b7)+'formance'+_0x6341a5(0x1e0)+_0x6341a5(0x1d8)+_0x6341a5(0x267)+_0x6341a5(0x1e3)+_0x6341a5(0x15c)+_0x6341a5(0x138)+'\x20\x20\x20\x20–\x20do'+_0x6341a5(0x2a6)+_0x6341a5(0x2bb)+'\x0a\x20\x20\x20\x20cho'+_0x6341a5(0x2a0)+_0x6341a5(0xd4)+_0x6341a5(0x222)+'ependenc'+_0x6341a5(0xfd)+_0x6341a5(0x283)+'\x20ci\x20\x20\x20\x20\x20'+_0x6341a5(0x1d5)+'D\x20pipeli'+_0x6341a5(0x21c)+_0x6341a5(0x1ee)+_0x6341a5(0x270)+_0x6341a5(0x282)+_0x6341a5(0x1d3)+'itespace'+_0x6341a5(0xee)+_0x6341a5(0x122)+_0x6341a5(0x2c4)+_0x6341a5(0x1f8)+_0x6341a5(0x26f)+'the\x20prim'+_0x6341a5(0x19b)+_0x6341a5(0x146)+_0x6341a5(0x13a)+_0x6341a5(0x277)+'\x20affecte'+_0x6341a5(0x1b3)+'auth,\x20ap'+_0x6341a5(0x22f)+_0x6341a5(0xf0)+_0x6341a5(0x1dc)+_0x6341a5(0x2c3)+'n\x20the\x20ch'+'ange\x20is\x20'+'truly\x20cr'+'oss-cutt'+_0x6341a5(0x253)+_0x6341a5(0xdd)+'mperativ'+'e\x20mood,\x20'+_0x6341a5(0x230)+_0x6341a5(0x127)+_0x6341a5(0x219)+_0x6341a5(0x268)+'ax\x2072\x20ch'+'ars\x0a\x20\x20De'+_0x6341a5(0xdf)+_0x6341a5(0x26e)+'tual\x20dif'+_0x6341a5(0x14e)+'ot\x20simpl'+_0x6341a5(0x220)+_0x6341a5(0x25b)+_0x6341a5(0x17b)+_0x6341a5(0x14a)+_0x6341a5(0x271)+_0x6341a5(0x1c9)+'he\x20commi'+_0x6341a5(0x20c)+'e\x20line,\x20'+'no\x20expla'+_0x6341a5(0xf9)+_0x6341a5(0x11b)+_0x6341a5(0x174)+'Staged\x20f'+(_0x6341a5(0x131)+_0x6341a5(0x1ef)+_0x6341a5(0x11c)+'Short\x20su'+_0x6341a5(0x182)+_0x6341a5(0xe1)+_0x6341a5(0x258)+_0x6341a5(0x269)+'{diff_st'+_0x6341a5(0xfe)+_0x6341a5(0x19d)+_0x6341a5(0x237)+_0x6341a5(0x2c1)),'branch':_0x6341a5(0x152)+'naming\x20a'+'\x20Git\x20bra'+'nch\x20foll'+_0x6341a5(0x201)+_0x6341a5(0x1f7)+'w\x20conven'+_0x6341a5(0xca)+_0x6341a5(0x26d)+_0x6341a5(0x18b)+_0x6341a5(0x255)+_0x6341a5(0x12d)+_0x6341a5(0x172)+'iption>\x0a'+_0x6341a5(0x16a)+_0x6341a5(0x1b5)+_0x6341a5(0x198)+'\x20\x20\x20\x20feat'+_0x6341a5(0xff)+'ew\x20featu'+'re\x20to\x20be'+_0x6341a5(0x180)+_0x6341a5(0x100)+_0x6341a5(0x209)+_0x6341a5(0x1a0)+_0x6341a5(0xf7)+_0x6341a5(0x1e4)+_0x6341a5(0xd3)+'\x20into\x20de'+_0x6341a5(0x115)+_0x6341a5(0xcf)+_0x6341a5(0x296)+_0x6341a5(0x232)+_0x6341a5(0x108)+_0x6341a5(0x2c6)+_0x6341a5(0x180)+_0x6341a5(0x1df)+'n\x20and\x20de'+_0x6341a5(0x115)+_0x6341a5(0x24e)+_0x6341a5(0xf4)+'ease\x20pre'+'paration'+'\x20(use\x20on'+_0x6341a5(0x25c)+'descript'+_0x6341a5(0x171)+_0x6341a5(0x204)+_0x6341a5(0x205)+_0x6341a5(0x2a5)+_0x6341a5(0x184)+_0x6341a5(0x2a1)+_0x6341a5(0x188)+_0x6341a5(0xe3)+_0x6341a5(0x2cf)+_0x6341a5(0x18c)+_0x6341a5(0x2a9)+_0x6341a5(0x2aa)+_0x6341a5(0x285)+_0x6341a5(0x251)+_0x6341a5(0x1a6)+_0x6341a5(0x1cd)+_0x6341a5(0x274)+'r\x20–\x20code'+_0x6341a5(0x221)+_0x6341a5(0x183)+'ith\x20no\x20b'+_0x6341a5(0x1ae)+_0x6341a5(0x10f)+_0x6341a5(0x27f)+_0x6341a5(0x29b)+'sts\x20only'+_0x6341a5(0x22b)+_0x6341a5(0x2b9)+'2–5\x20word'+'s\x20in\x20keb'+'ab-case,'+'\x20specifi'+'c\x20and\x20me'+_0x6341a5(0x2d1)+',\x20no\x20fil'+_0x6341a5(0x29e)+_0x6341a5(0x194)+_0x6341a5(0x136)+'update\x22,'+_0x6341a5(0x1d2)+_0x6341a5(0xfb)+_0x6341a5(0x289)+_0x6341a5(0x1b6)+_0x6341a5(0x20e)+_0x6341a5(0x1e6)+_0x6341a5(0x2b8)+'LY\x20the\x20b'+_0x6341a5(0x1fc)+_0x6341a5(0xef)+_0x6341a5(0xf1)+'on\x0a\x0aDesc'+_0x6341a5(0x1bb)+'\x0a{{descr'+_0x6341a5(0x264),'pr':_0x6341a5(0x152)+'a\x20senior'+_0x6341a5(0x118)+_0x6341a5(0xe4)+'g\x20a\x20GitH'+_0x6341a5(0x2d6)+_0x6341a5(0x10b)+_0x6341a5(0x1bc)+_0x6341a5(0x1af)+'pository'+_0x6341a5(0x1cb)+_0x6341a5(0x19e)+_0x6341a5(0x12b)+_0x6341a5(0x2d8)+_0x6341a5(0x145)+_0x6341a5(0x2d7)+_0x6341a5(0x178)+'d\x20a\x20mark'+'down\x20bod'+_0x6341a5(0xf5)+_0x6341a5(0x175)+_0x6341a5(0x19f)+_0x6341a5(0xe5)+_0x6341a5(0x143)+'e\x20from\x20t'+_0x6341a5(0x1c6)+_0x6341a5(0x187)+_0x6341a5(0x15b)+_0x6341a5(0x1c3)+_0x6341a5(0x25e)+_0x6341a5(0x12c)+_0x6341a5(0x149)+_0x6341a5(0x21d)+_0x6341a5(0x1a9)+_0x6341a5(0x132)+_0x6341a5(0x165)+_0x6341a5(0xd0)+_0x6341a5(0x293)+'ood>\x0a\x20\x20D'+_0x6341a5(0x177)+_0x6341a5(0x238)+_0x6341a5(0x2ca)+'om\x20the\x20n'+_0x6341a5(0x22c)+_0x6341a5(0x2bc)+_0x6341a5(0x225)+_0x6341a5(0x102)+_0x6341a5(0x2a3)+_0x6341a5(0xfa)+_0x6341a5(0x134)+'flect\x20it'+_0x6341a5(0xf2)+_0x6341a5(0x1eb)+_0x6341a5(0x281)+_0x6341a5(0x2af)+_0x6341a5(0x2b4)+_0x6341a5(0x1db)+'tions\x20mo'+_0x6341a5(0x109)+_0x6341a5(0x1d9)+_0x6341a5(0x176)+_0x6341a5(0x23f)+_0x6341a5(0x18d)+_0x6341a5(0x254)+_0x6341a5(0x2ba)+_0x6341a5(0x15f)+_0x6341a5(0x1b0)+_0x6341a5(0x2c9)+_0x6341a5(0x216)+_0x6341a5(0x163)+_0x6341a5(0x208)+'\x20behavio'+'r\x20not\x20vi'+_0x6341a5(0x13f)+'\x20the\x20dif'+'f\x20or\x20com'+'mit\x20hist'+_0x6341a5(0x202)+_0x6341a5(0x1ce)+_0x6341a5(0x104)+_0x6341a5(0x103)+_0x6341a5(0x161)+_0x6341a5(0x1b2)+_0x6341a5(0x227)+_0x6341a5(0x2b0)+_0x6341a5(0x1fe)+_0x6341a5(0xe2)+_0x6341a5(0x15e)+_0x6341a5(0x290)+_0x6341a5(0xfc)+_0x6341a5(0x185)+_0x6341a5(0x22e)+_0x6341a5(0x244)+'mmentary'+'\x0a\x0aTITLE:'+'\x20<title>'+_0x6341a5(0x2ab)+_0x6341a5(0x295)+'\x20Summary'+_0x6341a5(0x21a)+_0x6341a5(0x192)+_0x6341a5(0x173)+_0x6341a5(0x1a4)+_0x6341a5(0x1ff)+'\x0a\x0a##\x20Cha'+'nges\x0a<bu'+_0x6341a5(0x27e)+_0x6341a5(0x19c)+'oncrete\x20'+'changes,'+_0x6341a5(0x120)+'\x20by\x20area'+_0x6341a5(0x273)+'levant>\x0a'+'\x0a##\x20Test'+_0x6341a5(0x17a)+_0x6341a5(0x1d1)+_0x6341a5(0x25a)+'to\x20verif'+_0x6341a5(0x137)+'ange>\x0a\x0aB'+_0x6341a5(0x262)+_0x6341a5(0x217)+_0x6341a5(0x1c2)+_0x6341a5(0x169),'changelog':_0x6341a5(0x17d)+_0x6341a5(0xcb)+_0x6341a5(0x294)+_0x6341a5(0x26b)+'ndo\x20um\x20C'+'HANGELOG'+_0x6341a5(0x179)+_0x6341a5(0x1f5)+_0x6341a5(0x1fd)+_0x6341a5(0x2d2)+_0x6341a5(0x20d)+_0x6341a5(0xc9)+_0x6341a5(0x142)+'p\x20a\x20Chan'+'gelog\x20(h'+_0x6341a5(0x20a)+_0x6341a5(0x228)+_0x6341a5(0x27a)+'m)\x20adapt'+_0x6341a5(0xed)+_0x6341a5(0x2c5)+'.\x0a\x0aCONTE'+_0x6341a5(0x21f)+_0x6341a5(0x24d)+_0x6341a5(0x29f)+_0x6341a5(0x240)+_0x6341a5(0x2c7)+'version}'+'}\x0a-\x20Vers'+_0x6341a5(0x299)+_0x6341a5(0x236)+_0x6341a5(0x25f)+_0x6341a5(0x189)+'ag}}\x0a-\x20I'+_0x6341a5(0x28e)+'\x20analisa'+_0x6341a5(0x1a3)+'nge_labe'+_0x6341a5(0x10d)+_0x6341a5(0x298)+_0x6341a5(0x27c)+_0x6341a5(0x2b6)+_0x6341a5(0x153)+_0x6341a5(0x2b1)+_0x6341a5(0x160)+_0x6341a5(0x29c)+'\x20CRÍTICA'+_0x6341a5(0x235)+_0x6341a5(0x28f)+_0x6341a5(0x207)+_0x6341a5(0x10e)+_0x6341a5(0x10a)+_0x6341a5(0x1e1)+_0x6341a5(0x16e)+_0x6341a5(0x266)+_0x6341a5(0x139)+_0x6341a5(0x2ac)+'mencione'+'\x20nada\x20qu'+_0x6341a5(0x135)+_0x6341a5(0x213)+_0x6341a5(0x25d)+_0x6341a5(0xdc)+_0x6341a5(0x1e5)+_0x6341a5(0x1f9)+_0x6341a5(0x291)+'\x20Se\x20o\x20nú'+'mero\x20de\x20'+_0x6341a5(0x162)+'for\x20pequ'+_0x6341a5(0x112)+'hangelog'+_0x6341a5(0x128)+_0x6341a5(0x286)+'o\x20—\x20não\x20'+_0x6341a5(0x18f)+_0x6341a5(0x1f4)+_0x6341a5(0x28d)+_0x6341a5(0x26a)+'\x20[{{new_'+_0x6341a5(0xf3)+_0x6341a5(0x20b)+_0x6341a5(0x23e)+_0x6341a5(0x11e)+_0x6341a5(0x1b7)+_0x6341a5(0x256)+_0x6341a5(0x117)+_0x6341a5(0x265)+_0x6341a5(0xe9)+_0x6341a5(0x14f)+'—\x20inclua'+_0x6341a5(0x226)+'as\x20que\x20t'+_0x6341a5(0x24c)+'ntradas\x20'+'reais:\x0a\x20'+_0x6341a5(0x1ad)+'dicionad'+_0x6341a5(0x1a1)+_0x6341a5(0x248)+_0x6341a5(0x191)+_0x6341a5(0x2d0)+'\x20###\x20Alt'+'erado\x20\x20\x20'+'\x20\x20\x20–\x20mud'+'anças\x20em'+_0x6341a5(0x190)+_0x6341a5(0x15d)+_0x6341a5(0x1b1)+_0x6341a5(0x297)+_0x6341a5(0xcd)+_0x6341a5(0xdb)+_0x6341a5(0x1a5)+'eções\x20de'+_0x6341a5(0x29a)+_0x6341a5(0x1d4)+'movido\x20\x20'+_0x6341a5(0x247)+_0x6341a5(0x2d4)+'dades\x20re'+_0x6341a5(0x252)+_0x6341a5(0x2d3)+_0x6341a5(0x144)+'nuado\x20–\x20'+_0x6341a5(0x2b5)+(_0x6341a5(0x1e7)+'marcadas'+_0x6341a5(0x1f3)+_0x6341a5(0x23d)+_0x6341a5(0x27d)+_0x6341a5(0x186)+_0x6341a5(0x199)+_0x6341a5(0x16c)+_0x6341a5(0x203)+'e\x20vulner'+_0x6341a5(0x261)+_0x6341a5(0x157)+_0x6341a5(0x148)+'a:\x20frase'+_0x6341a5(0x1bf)+'imperati'+'va,\x20sem\x20'+_0x6341a5(0x260)+'nal\x0a-\x20In'+'clua\x20ao\x20'+_0x6341a5(0x212)+_0x6341a5(0x10c)+_0x6341a5(0x195)+_0x6341a5(0x229)+_0x6341a5(0x1a7)+_0x6341a5(0x13e)+',\x20datas\x20'+_0x6341a5(0x223)+_0x6341a5(0x11f)+_0x6341a5(0x1e9)+_0x6341a5(0x2a7)+_0x6341a5(0x2a4)+'sem\x20expl'+'icações\x20'+_0x6341a5(0xe7)+_0x6341a5(0xd7)+_0x6341a5(0x17c)+_0x6341a5(0x1e5)+_0x6341a5(0x1ea)+_0x6341a5(0x154)+_0x6341a5(0x28a)+'{commit_'+_0x6341a5(0x2d5)+_0x6341a5(0x156)+_0x6341a5(0xe6)+_0x6341a5(0x119)+_0x6341a5(0x17e)),'log':'Você\x20é\x20u'+_0x6341a5(0xcb)+'eiro\x20sên'+_0x6341a5(0x111)+'mindo\x20o\x20'+_0x6341a5(0x1b8)+_0x6341a5(0x166)+_0x6341a5(0x23b)+_0x6341a5(0x107)+'\x20portugu'+_0x6341a5(0x2d2)+_0x6341a5(0x242)+_0x6341a5(0x18e)+_0x6341a5(0x200)+_0x6341a5(0x124)+_0x6341a5(0x1d0)+_0x6341a5(0xd8)+_0x6341a5(0x233)+'bugfix,\x20'+_0x6341a5(0x243)+_0x6341a5(0x141)+_0x6341a5(0xd9)+_0x6341a5(0x278)+_0x6341a5(0x150)+_0x6341a5(0x12f)+_0x6341a5(0xd5)+_0x6341a5(0x211)+'ia:\x0a\x20\x20\x20\x20'+_0x6341a5(0xd1)+_0x6341a5(0x2cb)+'contexto'+_0x6341a5(0x279)+'ra\x20o\x20obj'+_0x6341a5(0x125)+_0x6341a5(0x2ae)+_0x6341a5(0x22d)+_0x6341a5(0x28b)+_0x6341a5(0x101)+_0x6341a5(0xc8)+_0x6341a5(0x181)+'revendo\x20'+_0x6341a5(0x292)+_0x6341a5(0x12e)+_0x6341a5(0x19a)+_0x6341a5(0x158)+_0x6341a5(0x1bd)+'ullets\x20c'+'om\x20as\x20pr'+_0x6341a5(0x24a)+'\x20mudança'+_0x6341a5(0x241)+_0x6341a5(0x287)+_0x6341a5(0x2ad)+_0x6341a5(0xea)+_0x6341a5(0x224)+_0x6341a5(0x210)+_0x6341a5(0x29d)+_0x6341a5(0x18a)+'\x20de\x20comm'+_0x6341a5(0x14d)+_0x6341a5(0x245)+'omplemen'+'to\x0a-\x20Cit'+_0x6341a5(0x1c8)+_0x6341a5(0x151)+_0x6341a5(0x2c2)+_0x6341a5(0x1f1)+_0x6341a5(0x170)+'os\x20quand'+_0x6341a5(0x15a)+_0x6341a5(0x13b)+_0x6341a5(0x263)+_0x6341a5(0x164)+_0x6341a5(0x2c8)+'ontexto\x20'+_0x6341a5(0x1da)+_0x6341a5(0x1ac)+_0x6341a5(0x214)+'onclusõe'+'s\x20genéri'+_0x6341a5(0x140)+_0x6341a5(0x105)+_0x6341a5(0x28c)+'to\x20para\x20'+_0x6341a5(0x27b)+_0x6341a5(0x196)+_0x6341a5(0xec)+_0x6341a5(0xcc)+_0x6341a5(0x1fa)+_0x6341a5(0x1de)+_0x6341a5(0x2c0)};export function getPromptsDir(){const _0x2bc3d8=_0x6341a5,_0x21c9f6={'fHPfD':function(_0x2aee39,_0x552071){return _0x2aee39+_0x552071;},'xzoFe':function(_0x44a3ac,_0x34eeff){return _0x44a3ac===_0x34eeff;},'LIIUm':function(_0x384ff1,_0x448ffe,_0x32adb6,_0xd0c87f){return _0x384ff1(_0x448ffe,_0x32adb6,_0xd0c87f);},'XaFGT':function(_0x520979,_0x5c6eab,_0x189575){return _0x520979(_0x5c6eab,_0x189575);},'MynLR':function(_0x41aca1){return _0x41aca1();},'RdMGk':'.gemit','LTtJP':_0x2bc3d8(0x24f),'jlLNX':function(_0x36f8a1,_0x3596f0){return _0x36f8a1===_0x3596f0;},'TsUvm':_0x2bc3d8(0x21b),'SpDbc':function(_0x20da40,_0x54a233){return _0x20da40===_0x54a233;},'QyEVt':_0x2bc3d8(0x231),'DprEg':function(_0x8d876b,_0xd4bcd1,_0x794207,_0x5d93db,_0x4ced01,_0x58d4fd){return _0x8d876b(_0xd4bcd1,_0x794207,_0x5d93db,_0x4ced01,_0x58d4fd);},'zkrMy':function(_0x5d0c57){return _0x5d0c57();},'nsbhF':_0x2bc3d8(0x11d),'pOcUy':_0x2bc3d8(0x288)+_0x2bc3d8(0x1f6)+_0x2bc3d8(0x234),'aSzAd':_0x2bc3d8(0x2b2),'wuuLe':_0x2bc3d8(0x259)};if(_0x21c9f6[_0x2bc3d8(0x1ba)](process[_0x2bc3d8(0x1c7)],_0x2bc3d8(0x275)))return _0x21c9f6[_0x2bc3d8(0x1f2)](join,process.env.APPDATA||_0x21c9f6[_0x2bc3d8(0x155)](join,_0x21c9f6[_0x2bc3d8(0x130)](homedir),_0x21c9f6[_0x2bc3d8(0x2cd)]),_0x21c9f6[_0x2bc3d8(0x2bd)],'prompts');if(_0x21c9f6[_0x2bc3d8(0x1dd)](process[_0x2bc3d8(0x1c7)],_0x21c9f6[_0x2bc3d8(0x280)])){if(_0x21c9f6[_0x2bc3d8(0x114)](_0x21c9f6[_0x2bc3d8(0x193)],_0x21c9f6[_0x2bc3d8(0x193)]))return _0x21c9f6[_0x2bc3d8(0x113)](join,_0x21c9f6['zkrMy'](homedir),_0x21c9f6[_0x2bc3d8(0x1aa)],_0x21c9f6['pOcUy'],_0x21c9f6[_0x2bc3d8(0x2bd)],_0x21c9f6['aSzAd']);else _0x3555d0=_0x21c9f6['fHPfD'](_0x2570d8,_0x4876fe[_0x41addf]);}return join(process.env.XDG_CONFIG_HOME||join(homedir(),_0x21c9f6[_0x2bc3d8(0x23a)]),_0x2bc3d8(0x24f),_0x2bc3d8(0x2b2));}const LANGUAGE_INSTRUCTIONS={'pt-br':{'commit':_0x6341a5(0x2be)+_0x6341a5(0x23c)+'tuguês\x20d'+_0x6341a5(0x1c4)+'.','branch':'\x0aRespond'+_0x6341a5(0x23c)+_0x6341a5(0x11a)+'o\x20Brasil'+'.','pr':_0x6341a5(0x2be)+_0x6341a5(0x23c)+_0x6341a5(0x11a)+_0x6341a5(0x1c4)+_0x6341a5(0x2b3)+'\x20e\x20descr'+_0x6341a5(0x2cc)+_0x6341a5(0x133)+'s.'}};export function loadPrompt(_0x49ac91){const _0x3e2455=_0x6341a5,_0x2bb218={'rfDJg':function(_0x1876e8){return _0x1876e8();},'hOMkK':function(_0x15f5cb,_0x927218,_0x242792){return _0x15f5cb(_0x927218,_0x242792);},'gNRaB':function(_0x2574c3,_0x133e90){return _0x2574c3(_0x133e90);},'LyZDe':_0x3e2455(0x218),'DGNzo':function(_0x16da17,_0x5adab2){return _0x16da17+_0x5adab2;}},_0x4ab15d=_0x2bb218['rfDJg'](getPromptsDir),_0xd1be01=_0x2bb218[_0x3e2455(0x1be)](join,_0x4ab15d,_0x49ac91+_0x3e2455(0x1cf));let _0x5bec7b;if(_0x2bb218[_0x3e2455(0x1c0)](existsSync,_0xd1be01)){const _0x9f3059=_0x2bb218['hOMkK'](readFileSync,_0xd1be01,_0x2bb218[_0x3e2455(0x13d)])[_0x3e2455(0x14c)]();_0x5bec7b=_0x9f3059||DEFAULT_PROMPTS[_0x49ac91];}else _0x5bec7b=DEFAULT_PROMPTS[_0x49ac91];const _0x2e258a=(process.env.GEMIT_LANGUAGE||'en')[_0x3e2455(0x249)+_0x3e2455(0x17f)]()['trim'](),_0x2fb50f=LANGUAGE_INSTRUCTIONS[_0x2e258a];return _0x2fb50f?.[_0x49ac91]&&(_0x5bec7b=_0x2bb218['DGNzo'](_0x5bec7b,_0x2fb50f[_0x49ac91])),_0x5bec7b;}export function interpolate(_0xe29dea,_0x26eaaa){return _0xe29dea['replace'](/\{\{(\w+)\}\}/g,(_0x5073a4,_0x516728)=>_0x26eaaa[_0x516728]??'{{'+_0x516728+'}}');}export function initGlobalPrompts(_0x43ee68=![]){const _0x5d0423=_0x6341a5,_0x4e53db={'sSJwt':function(_0x2cf630,_0x1ed628,_0x19703e){return _0x2cf630(_0x1ed628,_0x19703e);},'KEyqD':function(_0x395885,_0xf47eb0,_0x579ddb){return _0x395885(_0xf47eb0,_0x579ddb);},'BqKjy':function(_0x137c72,_0x31c956){return _0x137c72(_0x31c956);}},_0x5ef9a6=getPromptsDir();_0x4e53db[_0x5d0423(0x121)](mkdirSync,_0x5ef9a6,{'recursive':!![]});const _0x29a033=[];for(const _0x170fb8 of PROMPT_NAMES){const _0x355795=_0x4e53db['KEyqD'](join,_0x5ef9a6,_0x170fb8+_0x5d0423(0x1cf));(!_0x4e53db[_0x5d0423(0x159)](existsSync,_0x355795)||_0x43ee68)&&(writeFileSync(_0x355795,DEFAULT_PROMPTS[_0x170fb8]+'\x0a','utf8'),_0x29a033[_0x5d0423(0x1b4)](_0x355795));}return _0x29a033;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c30b8,_0x45a125){const _0x519e49=_0x52b3,_0x364fa1=_0x1c30b8();while(!![]){try{const _0x2f9e9e=-parseInt(_0x519e49(0x106))/0x1*(-parseInt(_0x519e49(0x120))/0x2)+parseInt(_0x519e49(0x119))/0x3+-parseInt(_0x519e49(0x105))/0x4+-parseInt(_0x519e49(0x11e))/0x5*(parseInt(_0x519e49(0x11b))/0x6)+-parseInt(_0x519e49(0x10e))/0x7*(parseInt(_0x519e49(0x10b))/0x8)+-parseInt(_0x519e49(0x109))/0x9*(-parseInt(_0x519e49(0x124))/0xa)+-parseInt(_0x519e49(0x113))/0xb;if(_0x2f9e9e===_0x45a125)break;else _0x364fa1['push'](_0x364fa1['shift']());}catch(_0x5665af){_0x364fa1['push'](_0x364fa1['shift']());}}}(_0x3f7a,0xebfea));const _0x4a9cf7=(function(){let _0x2c922c=!![];return function(_0x359305,_0xcd54d3){const _0x10e839=_0x2c922c?function(){const _0xcb3877=_0x52b3;if(_0xcd54d3){const _0x11e453=_0xcd54d3[_0xcb3877(0x11f)](_0x359305,arguments);return _0xcd54d3=null,_0x11e453;}}:function(){};return _0x2c922c=![],_0x10e839;};}()),_0x461f7c=_0x4a9cf7(this,function(){const _0xb9bcfd=_0x52b3,_0x5e05af={'PhQrq':_0xb9bcfd(0x117)+'+)+$'};return _0x461f7c[_0xb9bcfd(0x10a)]()[_0xb9bcfd(0x10c)](_0x5e05af['PhQrq'])[_0xb9bcfd(0x10a)]()[_0xb9bcfd(0x118)+_0xb9bcfd(0x110)](_0x461f7c)[_0xb9bcfd(0x10c)](_0x5e05af[_0xb9bcfd(0x123)]);});function _0x52b3(_0x1c6275,_0x4f4e36){_0x1c6275=_0x1c6275-0x105;const _0xd1b1af=_0x3f7a();let _0x461f7c=_0xd1b1af[_0x1c6275];return _0x461f7c;}function _0x3f7a(){const _0xd0d13d=['zxUWb','(((.+)+)','construc','4545168HkVlxV','YRAQs','2439996cdKDHB','package.','dist','10IQTlsy','apply','609346djYdZn','UxiZI','ElYUU','PhQrq','1621090zlujrM','4114568ZlvQDy','5swQegJ','version','qbPtL','90ifAhjV','toString','6618152RifpIC','search','GkShL','7gCBmVV','vJiMf','tor','parse','dist-sec','11259974OXkiix','JdLFJ','0.0.0'];_0x3f7a=function(){return _0xd0d13d;};return _0x3f7a();}_0x461f7c();import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x16cd0b=_0x52b3,_0x13bb8b={'qbPtL':function(_0x14d6c9,_0x55d937){return _0x14d6c9(_0x55d937);},'vJiMf':function(_0x45a9c1,_0x330065){return _0x45a9c1===_0x330065;},'zxUWb':_0x16cd0b(0x11d),'GkShL':function(_0x4f0809,_0x37f5ca){return _0x4f0809===_0x37f5ca;},'KEMtt':_0x16cd0b(0x112)+'ure','YRAQs':function(_0x5cd9f4,_0x5aaf43,_0x50581b,_0xb3b435){return _0x5cd9f4(_0x5aaf43,_0x50581b,_0xb3b435);},'wlLuL':_0x16cd0b(0x11c)+'json','JdLFJ':function(_0x44b1d6,_0x5030c8,_0x56af94){return _0x44b1d6(_0x5030c8,_0x56af94);},'ElYUU':function(_0x5eb606,_0x527f81,_0x350117){return _0x5eb606(_0x527f81,_0x350117);},'einmS':'utf8','UxiZI':_0x16cd0b(0x115)};try{const _0x4e3925=_0x13bb8b[_0x16cd0b(0x108)](fileURLToPath,import.meta.url),_0x44784a=dirname(_0x4e3925),_0x45b997=_0x13bb8b[_0x16cd0b(0x10f)](basename(_0x44784a),_0x13bb8b[_0x16cd0b(0x116)])||_0x13bb8b[_0x16cd0b(0x10d)](basename(_0x44784a),_0x13bb8b['KEMtt'])?_0x13bb8b[_0x16cd0b(0x11a)](join,_0x44784a,'..',_0x13bb8b['wlLuL']):_0x13bb8b[_0x16cd0b(0x114)](join,_0x44784a,_0x13bb8b['wlLuL']),_0x5681d2=_0x13bb8b[_0x16cd0b(0x122)](readFileSync,_0x45b997,_0x13bb8b['einmS']),_0x50230f=JSON[_0x16cd0b(0x111)](_0x5681d2);return _0x50230f[_0x16cd0b(0x107)]||_0x13bb8b[_0x16cd0b(0x121)];}catch{return _0x16cd0b(0x115);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1701f7,_0x3f40c6){var _0x1d1f9c=_0x4d0d,_0x46d1cf=_0x1701f7();while(!![]){try{var _0x534d20=-parseInt(_0x1d1f9c(0x115))/0x1*(parseInt(_0x1d1f9c(0x10c))/0x2)+-parseInt(_0x1d1f9c(0x10b))/0x3+-parseInt(_0x1d1f9c(0x108))/0x4*(parseInt(_0x1d1f9c(0x117))/0x5)+parseInt(_0x1d1f9c(0x11b))/0x6+-parseInt(_0x1d1f9c(0x10e))/0x7+parseInt(_0x1d1f9c(0x107))/0x8+parseInt(_0x1d1f9c(0x112))/0x9;if(_0x534d20===_0x3f40c6)break;else _0x46d1cf['push'](_0x46d1cf['shift']());}catch(_0x3f37e0){_0x46d1cf['push'](_0x46d1cf['shift']());}}}(_0x36e5,0xb9b57));var _0x3d450e=(function(){var _0x569ee4=!![];return function(_0x29dd3a,_0x306d10){var _0x2a0ccf=_0x569ee4?function(){if(_0x306d10){var _0x56284a=_0x306d10['apply'](_0x29dd3a,arguments);return _0x306d10=null,_0x56284a;}}:function(){};return _0x569ee4=![],_0x2a0ccf;};}()),_0x1e0813=_0x3d450e(this,function(){var _0x454952=_0x4d0d,_0x546182={'pTaKR':'(((.+)+)'+'+)+$'};return _0x1e0813[_0x454952(0x10d)]()['search'](_0x454952(0x11d)+_0x454952(0x116))[_0x454952(0x10d)]()['construc'+'tor'](_0x1e0813)[_0x454952(0x10a)](_0x546182['pTaKR']);});_0x1e0813();function _0x36e5(){var _0x468a8f=['70665AyiKlq','hgFDy','check','verythin','5922258jDcULb','Use\x20`gem','(((.+)+)','6210280albAVv','184npkZIm','stion\x20fl','search','548403BSljQa','581382xXvIsn','toString','1446354xJxmvh','it\x20add\x20-','ow.','QZrLI','5564322YAUvAr','ntinue\x20t','\x20stage\x20e','2nLtmyu','+)+$'];_0x36e5=function(){return _0x468a8f;};return _0x36e5();}function _0x4d0d(_0xb27760,_0x1f3e76){_0xb27760=_0xb27760-0x107;var _0x58622f=_0x36e5();var _0x1e0813=_0x58622f[_0xb27760];return _0x1e0813;}import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';export async function addAndCommit(_0x43d6ce={}){var _0x37e3fe=_0x4d0d,_0x3dd766={'hgFDy':function(_0x418fea,_0x5c1068){return _0x418fea(_0x5c1068);},'QZrLI':_0x37e3fe(0x11c)+_0x37e3fe(0x10f)+'-all`\x20to'+_0x37e3fe(0x114)+_0x37e3fe(0x11a)+'g\x20and\x20co'+_0x37e3fe(0x113)+'he\x20sugge'+_0x37e3fe(0x109)+_0x37e3fe(0x110)};!_0x43d6ce['all']&&_0x3dd766[_0x37e3fe(0x118)](failAndExit,_0x3dd766[_0x37e3fe(0x111)]),await _0x3dd766['hgFDy'](generateCommit,{'all':!![],'check':_0x3dd766['hgFDy'](Boolean,_0x43d6ce[_0x37e3fe(0x119)])});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x69e624,_0x114031){const _0x5b317a=_0x4971,_0x3f85de=_0x69e624();while(!![]){try{const _0x4b1184=parseInt(_0x5b317a(0xdb))/0x1+-parseInt(_0x5b317a(0xfe))/0x2+parseInt(_0x5b317a(0xd8))/0x3*(-parseInt(_0x5b317a(0xd2))/0x4)+parseInt(_0x5b317a(0xda))/0x5+-parseInt(_0x5b317a(0xd4))/0x6*(-parseInt(_0x5b317a(0x10c))/0x7)+-parseInt(_0x5b317a(0x12a))/0x8+-parseInt(_0x5b317a(0xdc))/0x9;if(_0x4b1184===_0x114031)break;else _0x3f85de['push'](_0x3f85de['shift']());}catch(_0x54da63){_0x3f85de['push'](_0x3f85de['shift']());}}}(_0x58a2,0xeb1ee));const _0x561371=(function(){const _0x11c580=_0x4971,_0x416b06={'HVSjc':_0x11c580(0xfc),'pBnzU':'Branch\x20w'+_0x11c580(0xf3)+_0x11c580(0x123),'mvtrv':function(_0x3604ed,_0x52cb84){return _0x3604ed===_0x52cb84;},'eznfR':_0x11c580(0x104)};let _0x34e2dd=!![];return function(_0x2388b2,_0x599099){const _0x4639eb=_0x11c580,_0x35bc38={'wJhMR':function(_0x25c31d,_0x10d732,_0x1b5606){return _0x25c31d(_0x10d732,_0x1b5606);},'mIedf':_0x416b06['HVSjc'],'wtUYu':_0x416b06[_0x4639eb(0xe0)]};if(_0x416b06[_0x4639eb(0x10e)](_0x416b06['eznfR'],'mqfFB')){const _0xf55fc0=_0x34e2dd?function(){const _0x1dde0e=_0x4639eb;if(_0x599099){const _0x438694=_0x599099[_0x1dde0e(0x124)](_0x2388b2,arguments);return _0x599099=null,_0x438694;}}:function(){};return _0x34e2dd=![],_0xf55fc0;}else{_0x34d329[_0x4639eb(0xed)](_0x35bc38['wJhMR'](_0x1b7517,_0x35bc38['mIedf'],_0x35bc38[_0x4639eb(0xea)]));return;}};}()),_0x518aa5=_0x561371(this,function(){const _0x2855fa=_0x4971,_0x35f36f={'lCHnu':_0x2855fa(0xf7)+_0x2855fa(0xf9)};return _0x518aa5[_0x2855fa(0xfa)]()[_0x2855fa(0x10f)](_0x35f36f[_0x2855fa(0xef)])[_0x2855fa(0xfa)]()[_0x2855fa(0x121)+_0x2855fa(0x107)](_0x518aa5)[_0x2855fa(0x10f)](_0x35f36f['lCHnu']);});_0x518aa5();function _0x4971(_0x16c442,_0x13af5c){_0x16c442=_0x16c442-0xcf;const _0x27c485=_0x58a2();let _0x518aa5=_0x27c485[_0x16c442];return _0x518aa5;}import{execFileSync}from'child_process';import{interpolate,loadPrompt}from'../aiPrompts.js';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0x23c1df){const _0x5de880=_0x4971,_0x3e125a={'eMcyW':_0x5de880(0x128),'JxYVj':function(_0x473990,_0x1df60f){return _0x473990||_0x1df60f;}},_0x56b37b=_0x23c1df[_0x5de880(0xf4)+'e'](_0x3e125a[_0x5de880(0x10b)])[_0x5de880(0x10a)](/[\u0300-\u036f]/g,'')['toLowerC'+_0x5de880(0xdf)]()[_0x5de880(0x10a)](/[^a-z0-9/-]+/g,'-')[_0x5de880(0x10a)](/-{2,}/g,'-')['replace'](/\/{2,}/g,'/')[_0x5de880(0x10a)](/^-+|-+$/g,'')['replace'](/^\/+|\/+$/g,''),_0x452ff1=_0x56b37b[_0x5de880(0x11b)](0x0,0x32)['replace'](/\/+$/g,'')[_0x5de880(0x10a)](/-+$/g,''),_0x36a2df=_0x3e125a[_0x5de880(0xf5)](_0x452ff1,_0x5de880(0xf8)+'ate');if(!_0x36a2df[_0x5de880(0x126)]('/'))return _0x5de880(0xdd)+_0x36a2df;return _0x36a2df;}function getLLM(){const _0x2b98f4=_0x4971,_0x4f0d3a={'HdtkX':function(_0xcaf204,_0x225d64){return _0xcaf204||_0x225d64;},'QSIJW':_0x2b98f4(0xf8)+_0x2b98f4(0x109),'lweQV':function(_0x10d83c,_0x38fc51){return _0x10d83c===_0x38fc51;},'IdxuU':'Huqjk','MYgQU':function(_0x9ecec5){return _0x9ecec5();},'TAPHM':function(_0x9bb81c,_0x2ad598){return _0x9bb81c instanceof _0x2ad598;},'fkhbx':function(_0x28fd89,_0x3a4ff1){return _0x28fd89(_0x3a4ff1);},'lEcRO':function(_0x15220c,_0x49f6d8){return _0x15220c(_0x49f6d8);}};try{if(_0x4f0d3a[_0x2b98f4(0x115)](_0x4f0d3a[_0x2b98f4(0x11f)],'Huqjk'))return _0x4f0d3a['MYgQU'](createLLM);else{const _0x23e56e=_0x4d7aa1[_0x2b98f4(0xf4)+'e']('NFD')[_0x2b98f4(0x10a)](/[\u0300-\u036f]/g,'')[_0x2b98f4(0xd3)+'ase']()[_0x2b98f4(0x10a)](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x2b98f4(0x10a)](/\/{2,}/g,'/')[_0x2b98f4(0x10a)](/^-+|-+$/g,'')[_0x2b98f4(0x10a)](/^\/+|\/+$/g,''),_0x3e0f9f=_0x23e56e[_0x2b98f4(0x11b)](0x0,0x32)[_0x2b98f4(0x10a)](/\/+$/g,'')['replace'](/-+$/g,''),_0x2f1520=lTryGX[_0x2b98f4(0x108)](_0x3e0f9f,lTryGX['QSIJW']);if(!_0x2f1520[_0x2b98f4(0x126)]('/'))return'feat/'+_0x2f1520;return _0x2f1520;}}catch(_0x1ccd1d){const _0xaa0917=_0x4f0d3a[_0x2b98f4(0x120)](_0x1ccd1d,Error)?_0x1ccd1d[_0x2b98f4(0xd1)]:_0x4f0d3a[_0x2b98f4(0xee)](String,_0x1ccd1d);_0x4f0d3a[_0x2b98f4(0x110)](failAndExit,_0xaa0917);}}function _0x58a2(){const _0x6e75e2=['eMcyW','23107KtVCoq','aZrEy','mvtrv','search','lEcRO','RiTWU','inking\x20a','XMclv','ranch\x20fi','lweQV','with\x20mor','kfeEX','our\x20desc','OdtHE','D\x20BRANCH','slice','wsPwL','sponse..','nd\x20reque','IdxuU','TAPHM','construc','gIkBL','reated.','apply','hszPW','includes','mfYqo','NFD','inherit','2076800BQxaeh','or\x20delet','HpmGe','invoke','message','24IGGncP','toLowerC','594gDyzwd','fvHIL','ic\x20detai','e\x20the\x20ex','67197zyUlwk','sting\x20re','8846280yreBdJ','1494153nyfxcC','4157631kulajS','feat/','ls.','ase','pBnzU','IGRFZ','content','Failed\x20t','Branch\x20a','Name','UNglZ','xists:\x20','e\x20specif','eQjWF','wtUYu','Deuef','WgozM','log','fkhbx','lCHnu','\x20branch.','branch','re\x20speci','as\x20not\x20c','normaliz','JxYVj','uyFoz','(((.+)+)','feat/upd','+)+$','toString','AI\x20is\x20th','CANCELED','Try\x20reph','3542402RcRwlW','SiSNC','ranch\x20wi','Branch\x20w','HSGTZ','vtIgJ','mqfFB','checkout','ription\x20','tor','HdtkX','ate','replace'];_0x58a2=function(){return _0x6e75e2;};return _0x58a2();}export async function suggestBranch(_0x5a5869){const _0x147a9f=_0x4971,_0x565f10={'hszPW':_0x147a9f(0xf7)+_0x147a9f(0xf9),'wsPwL':function(_0x318b68){return _0x318b68();},'IGRFZ':function(_0x38bb1d){return _0x38bb1d();},'HSGTZ':function(_0x5c7cf6,_0x596f8b){return _0x5c7cf6(_0x596f8b);},'OBrbl':_0x147a9f(0xf1),'WgozM':function(_0x579535,_0x566a7b,_0x234b01){return _0x579535(_0x566a7b,_0x234b01);},'RiTWU':_0x147a9f(0xfb)+_0x147a9f(0x112)+_0x147a9f(0x11e)+_0x147a9f(0xd9)+_0x147a9f(0x11d)+'.','OdtHE':function(_0x66c81c,_0x2ed10b){return _0x66c81c(_0x2ed10b);},'kfeEX':function(_0x108f02,_0x3ebbfa){return _0x108f02!==_0x3ebbfa;},'UNglZ':_0x147a9f(0xff),'Deuef':function(_0x5570f0,_0x1f53fd,_0x5c6422){return _0x5570f0(_0x1f53fd,_0x5c6422);},'mfYqo':_0x147a9f(0xfd)+'rasing\x20y'+_0x147a9f(0x118)+_0x147a9f(0x106)+_0x147a9f(0x116)+_0x147a9f(0xe8)+_0x147a9f(0xd6)+_0x147a9f(0xde),'fvHIL':function(_0x5ebe97,_0x56efb8){return _0x5ebe97(_0x56efb8);},'uyFoz':function(_0x9218f1,_0x4b14f5,_0x8bfcf8){return _0x9218f1(_0x4b14f5,_0x8bfcf8);},'XMclv':'Use\x20a\x20mo'+_0x147a9f(0xf2)+'fic\x20desc'+'ription\x20'+_0x147a9f(0x12b)+_0x147a9f(0xd7)+'isting\x20b'+_0x147a9f(0x114)+'rst.','eQjWF':function(_0x1bd117,_0x4d1b2a){return _0x1bd117(_0x4d1b2a);},'HpmGe':'Create\x20b'+_0x147a9f(0x100)+'th\x20this\x20'+'name?\x20(y'+'/n):\x20','aZrEy':_0x147a9f(0x105),'vtIgJ':_0x147a9f(0x129),'gIkBL':'Failed\x20t'+'o\x20create'+_0x147a9f(0xf0)};_0x565f10[_0x147a9f(0x11c)](getGitStatus);const _0x5761d5=_0x565f10[_0x147a9f(0xe1)](getLLM),_0x3110d1=_0x565f10[_0x147a9f(0x102)](loadPrompt,_0x565f10['OBrbl']),_0x508d5c=_0x565f10[_0x147a9f(0xec)](interpolate,_0x3110d1,{'description':_0x5a5869}),_0xafa3d9=await _0x565f10[_0x147a9f(0xec)](withProgress,_0x565f10[_0x147a9f(0x111)],()=>_0x5761d5[_0x147a9f(0xd0)](_0x508d5c)),_0x2a03da=_0x565f10[_0x147a9f(0x119)](extractMessageText,_0xafa3d9[_0x147a9f(0xe2)]),_0x1d5ea0=_0x565f10[_0x147a9f(0x102)](sanitizeBranchName,_0x2a03da);if(!_0x1d5ea0){if(_0x565f10[_0x147a9f(0x117)](_0x565f10[_0x147a9f(0xe6)],_0x565f10['UNglZ']))return _0x3570fb[_0x147a9f(0xfa)]()[_0x147a9f(0x10f)](lEoVUt['hszPW'])[_0x147a9f(0xfa)]()['construc'+_0x147a9f(0x107)](_0x51e012)[_0x147a9f(0x10f)](lEoVUt[_0x147a9f(0x125)]);else _0x565f10[_0x147a9f(0xeb)](failAndExit,_0x147a9f(0xe3)+'o\x20genera'+'te\x20branc'+'h\x20name.',_0x565f10[_0x147a9f(0x127)]);}_0x565f10[_0x147a9f(0xd5)](branchExists,_0x1d5ea0)&&_0x565f10[_0x147a9f(0xf6)](failAndExit,_0x147a9f(0xe4)+'lready\x20e'+_0x147a9f(0xe7)+_0x1d5ea0,_0x565f10[_0x147a9f(0x113)]);section('SUGGESTE'+_0x147a9f(0x11a)),_0x565f10[_0x147a9f(0x102)](printKeyValues,[{'key':_0x147a9f(0xe5),'value':_0x1d5ea0}]);const _0x23d658=await _0x565f10[_0x147a9f(0xe9)](askConfirmation,_0x565f10[_0x147a9f(0xcf)]);if(!_0x23d658){console['log'](warn(_0x147a9f(0xfc),_0x147a9f(0x101)+_0x147a9f(0xf3)+_0x147a9f(0x123)));return;}try{execFileSync('git',[_0x565f10[_0x147a9f(0x10d)],'-b',_0x1d5ea0],{'stdio':_0x565f10[_0x147a9f(0x103)]});}catch{_0x565f10[_0x147a9f(0x119)](failAndExit,_0x565f10[_0x147a9f(0x122)]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1d2b96,_0x3070ef){const _0x4ae95c=_0x57a5,_0x3af24f=_0x1d2b96();while(!![]){try{const _0x404c63=-parseInt(_0x4ae95c(0x16d))/0x1*(-parseInt(_0x4ae95c(0x196))/0x2)+-parseInt(_0x4ae95c(0x1aa))/0x3*(-parseInt(_0x4ae95c(0x17f))/0x4)+-parseInt(_0x4ae95c(0x1c3))/0x5+parseInt(_0x4ae95c(0x1c2))/0x6*(parseInt(_0x4ae95c(0x16f))/0x7)+-parseInt(_0x4ae95c(0x1a8))/0x8*(parseInt(_0x4ae95c(0x1c1))/0x9)+parseInt(_0x4ae95c(0x17b))/0xa*(parseInt(_0x4ae95c(0x1bf))/0xb)+parseInt(_0x4ae95c(0x190))/0xc;if(_0x404c63===_0x3070ef)break;else _0x3af24f['push'](_0x3af24f['shift']());}catch(_0x5228f7){_0x3af24f['push'](_0x3af24f['shift']());}}}(_0x33c8,0xb5cdf));const _0x568574=(function(){let _0x32c7ee=!![];return function(_0x33c684,_0x2b260f){const _0x2cd6d4=_0x32c7ee?function(){const _0x4805f7=_0x57a5;if(_0x2b260f){const _0x4fec37=_0x2b260f[_0x4805f7(0x17c)](_0x33c684,arguments);return _0x2b260f=null,_0x4fec37;}}:function(){};return _0x32c7ee=![],_0x2cd6d4;};}()),_0x262dd1=_0x568574(this,function(){const _0x1ecbd2=_0x57a5,_0x5f46bd={'brfOa':'(((.+)+)'+_0x1ecbd2(0x1a9)};return _0x262dd1[_0x1ecbd2(0x187)]()[_0x1ecbd2(0x184)](_0x5f46bd[_0x1ecbd2(0x1af)])['toString']()[_0x1ecbd2(0x1c6)+_0x1ecbd2(0x1bd)](_0x262dd1)['search'](_0x5f46bd[_0x1ecbd2(0x1af)]);});_0x262dd1();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{interpolate,loadPrompt}from'../aiPrompts.js';import{createLLM,extractMessageText}from'../llm.js';function _0x33c8(){const _0x529d06=['least\x20on','hash','utf8','parseInt','6oltoMX','etwork\x20c','G\x20GENERA','cEvdK','tent.','og...','lfvEq','te\x20chang','n,\x20then\x20','ngelog.','nerating','unknown-','toISOStr','ositive\x20','jluZl','trim','oSpbi','used','63176VNcItY','+)+$','3nwEoWs','\x20to\x20gene','slice','min','Status','brfOa','\x20Use\x20a\x20p','\x20changel','bmJGZ','subject','date','rreQT','zZKap','diff\x20sta','join','NFD','cwd','LejUL','replace','tor','author','3228951nkAeNa','File','1413QSHkyH','17538hbgTwo','5666655LYqIuN','hwDEy','rate\x20cha','construc','Failed\x20t','changelo','ing','integer.','Hdksz','fbXAW','zRPBN','QFnOv','Make\x20at\x20','iTAoG','aDqia','Commits\x20','fpxtQ','ts\x20found','WJRse','362136MXpOHl','s\x20value.','2933TuqVVy','\x20|\x20','AAEZI','isNaN','normaliz','qQbTD','QFYHK','ase','Overall\x20','CHANGELO','RFJOF','ur\x20API\x20k','10LaeQsv','apply','Check\x20yo','sTuwd','86956NcRKxy','YUrfX','elog\x20con','length','try\x20agai','search','commits','o\x20genera','toString','e\x20commit','QdaYl','No\x20commi','toLowerC','onnectio','\x20reposit','body','ory\x20firs','5896872NEfZTD','Invalid\x20'];_0x33c8=function(){return _0x529d06;};return _0x33c8();}import{getCommitHistory,getCommitRangeDiffStat,getCurrentBranch,getGitStatus}from'../git.js';function _0x57a5(_0x498826,_0x1af61e){_0x498826=_0x498826-0x168;const _0x51f5e2=_0x33c8();let _0x262dd1=_0x51f5e2[_0x498826];return _0x262dd1;}import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x49eb9b=_0x57a5,_0x5c7619={'RFJOF':function(_0x58bd0d){return _0x58bd0d();},'QFnOv':function(_0x175cf8,_0x1adb8c){return _0x175cf8(_0x1adb8c);}};try{return _0x5c7619[_0x49eb9b(0x179)](createLLM);}catch(_0x44f3c5){const _0x472c9e=_0x44f3c5 instanceof Error?_0x44f3c5['message']:String(_0x44f3c5);_0x5c7619[_0x49eb9b(0x1ce)](failAndExit,_0x472c9e);}}function sanitizeName(_0x3a705c){const _0x1b1cce=_0x57a5,_0x411c1e={'QFYHK':_0x1b1cce(0x1b9),'AAEZI':_0x1b1cce(0x1c8)+'g'},_0x2eb9de=_0x3a705c[_0x1b1cce(0x173)+'e'](_0x411c1e[_0x1b1cce(0x175)])[_0x1b1cce(0x1bc)](/[\u0300-\u036f]/g,'')[_0x1b1cce(0x18b)+_0x1b1cce(0x176)]()[_0x1b1cce(0x1bc)](/[^a-z0-9-]+/g,'-')[_0x1b1cce(0x1bc)](/-{2,}/g,'-')[_0x1b1cce(0x1bc)](/^-+|-+$/g,'');return _0x2eb9de||_0x411c1e[_0x1b1cce(0x171)];}function formatDateForFile(_0xcb2a4c){const _0x378ffe=_0x57a5;return _0xcb2a4c[_0x378ffe(0x1a2)+_0x378ffe(0x1c9)]()[_0x378ffe(0x1ac)](0x0,0xa);}function resolveCommitLimit(_0x1180e9){const _0x89df47=_0x57a5,_0x3befb3={'lfvEq':function(_0x5b44ab,_0x4ca1b9,_0x220901){return _0x5b44ab(_0x4ca1b9,_0x220901);},'WJRse':_0x89df47(0x1cf)+_0x89df47(0x192)+_0x89df47(0x188)+'\x20in\x20this'+_0x89df47(0x18d)+'ory\x20firs'+'t.','zRPBN':function(_0x4d1668,_0x203d8b){return _0x4d1668!==_0x203d8b;},'cEvdK':function(_0x5cd4a2,_0x44af95){return _0x5cd4a2<=_0x44af95;},'zZKap':function(_0x15f0fa,_0x36b99c){return _0x15f0fa(_0x36b99c);},'rreQT':_0x89df47(0x191)+'--commit'+_0x89df47(0x16e)+_0x89df47(0x1b0)+_0x89df47(0x1a3)+_0x89df47(0x1ca)},_0x1805d8=_0x1180e9?.[_0x89df47(0x185)]?.[_0x89df47(0x1a5)]();if(!_0x1805d8){if(_0x3befb3[_0x89df47(0x1cd)]('EliTG',_0x89df47(0x1a4)))return DEFAULT_COMMIT_LIMIT;else _0x3befb3[_0x89df47(0x19c)](_0x570fee,_0x89df47(0x18a)+_0x89df47(0x16b)+'\x20to\x20gene'+_0x89df47(0x1c5)+'ngelog.',_0x3befb3[_0x89df47(0x16c)]);}const _0x5ade71=Number[_0x89df47(0x195)](_0x1805d8,0xa);return(Number[_0x89df47(0x172)](_0x5ade71)||_0x3befb3[_0x89df47(0x199)](_0x5ade71,0x0))&&_0x3befb3[_0x89df47(0x1b6)](failAndExit,_0x3befb3[_0x89df47(0x1b5)]),Math[_0x89df47(0x1ad)](_0x5ade71,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x418337){const _0x5e1136=_0x57a5,_0x5d6228={'fpxtQ':_0x5e1136(0x1a1)+'date','FbKsc':_0x5e1136(0x1a1)+_0x5e1136(0x1be),'sTuwd':function(_0x396d84,_0x1076fd){return _0x396d84(_0x1076fd);},'wEzag':function(_0x230956,_0x45bdd7){return _0x230956===_0x45bdd7;},'fbXAW':'No\x20commi'+'ts\x20found'+_0x5e1136(0x1ab)+_0x5e1136(0x1c5)+_0x5e1136(0x19f),'qQbTD':_0x5e1136(0x1cf)+_0x5e1136(0x192)+_0x5e1136(0x188)+'\x20in\x20this'+_0x5e1136(0x18d)+_0x5e1136(0x18f)+'t.'},_0x54ce0d=_0x5d6228[_0x5e1136(0x17e)](getCommitHistory,_0x418337);_0x5d6228['wEzag'](_0x54ce0d[_0x5e1136(0x182)],0x0)&&failAndExit(_0x5d6228[_0x5e1136(0x1cc)],_0x5d6228[_0x5e1136(0x174)]);const _0x18af50=_0x54ce0d['map'](_0x262c10=>{const _0x437658=_0x5e1136,_0xbf8998=_0x262c10['body']?'\x20|\x20body:'+'\x20'+_0x262c10[_0x437658(0x18e)][_0x437658(0x1bc)](/\s+/g,'\x20')[_0x437658(0x1a5)]():'',_0x14d602=_0x262c10[_0x437658(0x1b4)]||_0x5d6228[_0x437658(0x16a)],_0x456f7a=_0x262c10[_0x437658(0x1be)]||_0x5d6228['FbKsc'];return'-\x20'+_0x14d602+_0x437658(0x170)+_0x262c10[_0x437658(0x193)][_0x437658(0x1ac)](0x0,0x7)+_0x437658(0x170)+_0x456f7a+_0x437658(0x170)+_0x262c10[_0x437658(0x1b3)]+_0xbf8998;})[_0x5e1136(0x1b8)]('\x0a'),_0x179e24=_0x5d6228['sTuwd'](getCommitRangeDiffStat,_0x418337);return[_0x18af50,'',_0x5e1136(0x177)+_0x5e1136(0x1b7)+'t:',_0x179e24][_0x5e1136(0x1b8)]('\x0a');}export async function generateChangelog(_0x11d973,_0x79a99d){const _0x28adf7=_0x57a5,_0x4872ad={'OWwIN':function(_0x354140){return _0x354140();},'iTAoG':function(_0x5efd17,_0x1875b8){return _0x5efd17(_0x1875b8);},'QdaYl':function(_0x5ae813,_0x5d5fe2){return _0x5ae813||_0x5d5fe2;},'Hdksz':function(_0x1866dc,_0x341e4d){return _0x1866dc(_0x341e4d);},'LejUL':_0x28adf7(0x1c8)+'g','WxqwL':function(_0x320c1d,_0x326fe1,_0xa6d691){return _0x320c1d(_0x326fe1,_0xa6d691);},'ipvpP':function(_0x374ceb,_0x2d5c0a,_0x5ede75){return _0x374ceb(_0x2d5c0a,_0x5ede75);},'uQnUu':_0x28adf7(0x1c8)+'gs','hwDEy':function(_0x476151,_0x25ba2a,_0x217beb){return _0x476151(_0x25ba2a,_0x217beb);},'oSpbi':_0x28adf7(0x194),'YUrfX':function(_0x56d5cd,_0x30639f){return _0x56d5cd(_0x30639f);},'aDqia':_0x28adf7(0x178)+_0x28adf7(0x198)+'TED','bmJGZ':_0x28adf7(0x1c0)};_0x4872ad['OWwIN'](getGitStatus);const _0x59b8ff=getLLM(),_0x427ed9=_0x4872ad[_0x28adf7(0x1d0)](resolveCommitLimit,_0x79a99d),_0xbcaf1e=getCurrentBranch(),_0x32528c=sanitizeName(_0x4872ad[_0x28adf7(0x189)](_0x11d973,_0xbcaf1e)[_0x28adf7(0x1a5)]()),_0x532334=_0x4872ad[_0x28adf7(0x1d0)](formatDateForFile,new Date()),_0xb2abb7=_0x32528c+'-'+_0x532334+'.md',_0x111a85=_0x4872ad[_0x28adf7(0x1cb)](buildCommitHistoryPrompt,_0x427ed9),_0x3eb6db=loadPrompt(_0x4872ad[_0x28adf7(0x1bb)]),_0x4757f2=_0x4872ad['WxqwL'](interpolate,_0x3eb6db,{'commit_limit':_0x4872ad[_0x28adf7(0x1cb)](String,_0x427ed9),'commit_history':_0x111a85}),_0x53f9dc=await _0x4872ad['ipvpP'](withProgress,'AI\x20is\x20ge'+_0x28adf7(0x1a0)+_0x28adf7(0x1b1)+_0x28adf7(0x19b),()=>_0x59b8ff['invoke'](_0x4757f2)),_0x1f4cc3=_0x4872ad[_0x28adf7(0x1cb)](extractMessageText,_0x53f9dc['content']);!_0x1f4cc3&&failAndExit(_0x28adf7(0x1c7)+_0x28adf7(0x186)+_0x28adf7(0x19d)+_0x28adf7(0x181)+_0x28adf7(0x19a),_0x28adf7(0x17d)+_0x28adf7(0x17a)+'ey\x20and\x20n'+_0x28adf7(0x197)+_0x28adf7(0x18c)+_0x28adf7(0x19e)+_0x28adf7(0x183)+'n.');const _0x1c6c44=join(process[_0x28adf7(0x1ba)](),_0x4872ad['uQnUu']),_0x342bd2=_0x4872ad[_0x28adf7(0x1c4)](join,_0x1c6c44,_0xb2abb7);_0x4872ad[_0x28adf7(0x1c4)](mkdirSync,_0x1c6c44,{'recursive':!![]}),writeFileSync(_0x342bd2,_0x1f4cc3[_0x28adf7(0x1a5)]()+'\x0a',_0x4872ad[_0x28adf7(0x1a6)]),_0x4872ad[_0x28adf7(0x180)](section,_0x4872ad[_0x28adf7(0x168)]),printKeyValues([{'key':_0x28adf7(0x1ae),'value':_0x4872ad['YUrfX'](ok,'OK')},{'key':_0x4872ad[_0x28adf7(0x1b2)],'value':_0x342bd2},{'key':_0x28adf7(0x169)+_0x28adf7(0x1a7),'value':_0x4872ad['iTAoG'](String,_0x427ed9)}]);}
|
|
1
|
+
(function(_0x1d3972,_0x16f5af){const _0x3e2cac=_0x561d,_0x58e07e=_0x1d3972();while(!![]){try{const _0x59739d=-parseInt(_0x3e2cac(0x1c6))/0x1+parseInt(_0x3e2cac(0x1c7))/0x2*(-parseInt(_0x3e2cac(0x202))/0x3)+parseInt(_0x3e2cac(0x210))/0x4*(-parseInt(_0x3e2cac(0x1e4))/0x5)+parseInt(_0x3e2cac(0x1c4))/0x6+parseInt(_0x3e2cac(0x1a7))/0x7+-parseInt(_0x3e2cac(0x1d1))/0x8+parseInt(_0x3e2cac(0x1b9))/0x9;if(_0x59739d===_0x16f5af)break;else _0x58e07e['push'](_0x58e07e['shift']());}catch(_0xf585e7){_0x58e07e['push'](_0x58e07e['shift']());}}}(_0x412f,0x20d7d));const _0x435429=(function(){const _0x10b979=_0x561d,_0x2f42ba={'ZqYvg':function(_0xfed5d6,_0x1472f0){return _0xfed5d6!==_0x1472f0;},'NOuBQ':_0x10b979(0x1b0),'orBNE':_0x10b979(0x205),'vPfwR':_0x10b979(0x1e6)+'g'};let _0x119af4=!![];return function(_0x558360,_0x358bcf){const _0x58e190=_0x10b979,_0x33e9ea={'zJGtI':_0x2f42ba[_0x58e190(0x1c5)]},_0x5cfac8=_0x119af4?function(){const _0x5cb5d6=_0x58e190;if(_0x358bcf){if(_0x2f42ba['ZqYvg'](_0x2f42ba[_0x5cb5d6(0x1f2)],_0x2f42ba[_0x5cb5d6(0x1ea)])){const _0x1da763=_0x358bcf[_0x5cb5d6(0x1e1)](_0x558360,arguments);return _0x358bcf=null,_0x1da763;}else{const _0x50666a=_0x5e8357['normaliz'+'e']('NFD')[_0x5cb5d6(0x218)](/[\u0300-\u036f]/g,'')[_0x5cb5d6(0x1f4)+'ase']()[_0x5cb5d6(0x218)](/[^a-z0-9-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x5cb5d6(0x218)](/^-+|-+$/g,'');return _0x50666a||_0x33e9ea[_0x5cb5d6(0x1dd)];}}}:function(){};return _0x119af4=![],_0x5cfac8;};}()),_0xf5778=_0x435429(this,function(){const _0x5a1a51=_0x561d,_0x4d1ff7={'vxnGL':_0x5a1a51(0x211)+_0x5a1a51(0x209)};return _0xf5778['toString']()['search'](_0x4d1ff7[_0x5a1a51(0x1de)])[_0x5a1a51(0x21b)]()[_0x5a1a51(0x212)+_0x5a1a51(0x21c)](_0xf5778)[_0x5a1a51(0x1ed)](_0x4d1ff7[_0x5a1a51(0x1de)]);});_0xf5778();function _0x561d(_0x38ee81,_0x1006ba){_0x38ee81=_0x38ee81-0x1a7;const _0x237295=_0x412f();let _0xf5778=_0x237295[_0x38ee81];return _0xf5778;}import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{interpolate,loadPrompt}from'../aiPrompts.js';import{createLLM,extractMessageText}from'../llm.js';import{getCommitHistory,getCommitRangeDiffStat,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0xecb55a=_0x561d,_0x9383c6={'ketuI':function(_0x17823f){return _0x17823f();},'vAInB':function(_0x5a7665,_0xb62fa8){return _0x5a7665 instanceof _0xb62fa8;},'oBNvQ':function(_0x38c691,_0x37be44){return _0x38c691(_0x37be44);}};try{return _0x9383c6['ketuI'](createLLM);}catch(_0xcaaac8){const _0x5dee81=_0x9383c6['vAInB'](_0xcaaac8,Error)?_0xcaaac8['message']:String(_0xcaaac8);_0x9383c6[_0xecb55a(0x1d5)](failAndExit,_0x5dee81);}}function sanitizeName(_0x286b47){const _0x339cf4=_0x561d,_0x1c8492={'cfTBG':function(_0x2ea8f6,_0x21e202){return _0x2ea8f6||_0x21e202;}},_0x2edc73=_0x286b47[_0x339cf4(0x1dc)+'e'](_0x339cf4(0x1ab))['replace'](/[\u0300-\u036f]/g,'')[_0x339cf4(0x1f4)+_0x339cf4(0x1f7)]()['replace'](/[^a-z0-9-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x339cf4(0x218)](/^-+|-+$/g,'');return _0x1c8492[_0x339cf4(0x1d6)](_0x2edc73,_0x339cf4(0x1e6)+'g');}function formatDateForFile(_0xda8358){const _0x26fc45=_0x561d;return _0xda8358[_0x26fc45(0x203)+_0x26fc45(0x1a8)]()['slice'](0x0,0xa);}function resolveCommitLimit(_0x5064a3){const _0x457639=_0x561d,_0x14fcd5={'uRRIZ':function(_0x1bdb86,_0x54a47d){return _0x1bdb86===_0x54a47d;},'zUCrX':_0x457639(0x1fc),'TuqvO':function(_0x2db276,_0x1b1312){return _0x2db276<=_0x1b1312;},'liABx':_0x457639(0x1d7)+'--commit'+_0x457639(0x204)+'\x20Use\x20a\x20p'+'ositive\x20'+_0x457639(0x1b6)},_0x1c748f=_0x5064a3?.[_0x457639(0x1e5)]?.['trim']();if(!_0x1c748f)return _0x14fcd5[_0x457639(0x1aa)](_0x457639(0x1cc),_0x14fcd5[_0x457639(0x1b7)])?_0x5a25f5[_0x457639(0x203)+'ing']()['slice'](0x0,0xa):DEFAULT_COMMIT_LIMIT;const _0x1faaea=Number[_0x457639(0x1cf)](_0x1c748f,0xa);return(Number[_0x457639(0x20d)](_0x1faaea)||_0x14fcd5['TuqvO'](_0x1faaea,0x0))&&failAndExit(_0x14fcd5[_0x457639(0x1f6)]),Math[_0x457639(0x1e8)](_0x1faaea,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x1f79d9){const _0x297729=_0x561d,_0x46ef7a={'vlbsk':function(_0x5d334f,_0x54dd9b){return _0x5d334f<=_0x54dd9b;},'kZuVV':_0x297729(0x1d7)+_0x297729(0x1ee)+_0x297729(0x204)+_0x297729(0x207)+_0x297729(0x1e2)+_0x297729(0x1b6),'FAsAM':function(_0x94c07d,_0x234f8a){return _0x94c07d!==_0x234f8a;},'wKFWB':_0x297729(0x1da),'esYEf':_0x297729(0x1ba),'OHtXM':'unknown-'+_0x297729(0x201),'OoonX':_0x297729(0x1bc)+_0x297729(0x206),'bYuFq':function(_0x360e12,_0x388416){return _0x360e12(_0x388416);},'DTkPr':function(_0x1e7265,_0x5b65c4){return _0x1e7265===_0x5b65c4;},'cWsRV':function(_0x2d090a,_0x4cddcf,_0x4aa9f2){return _0x2d090a(_0x4cddcf,_0x4aa9f2);},'bZKDc':_0x297729(0x1f5)+_0x297729(0x20e)+_0x297729(0x1c3)+_0x297729(0x1c0)+_0x297729(0x216),'TzRub':_0x297729(0x1fd)+_0x297729(0x1b2)+_0x297729(0x20a)+_0x297729(0x1c8)+_0x297729(0x1ef)+_0x297729(0x1ca)+'t.','LvVqW':function(_0x470395,_0x3733a0){return _0x470395(_0x3733a0);},'VJTDP':_0x297729(0x1c9)+_0x297729(0x1e3)+'t:'},_0x5150f3=_0x46ef7a[_0x297729(0x1ac)](getCommitHistory,_0x1f79d9);_0x46ef7a['DTkPr'](_0x5150f3[_0x297729(0x1b1)],0x0)&&_0x46ef7a['cWsRV'](failAndExit,_0x46ef7a['bZKDc'],_0x46ef7a[_0x297729(0x1af)]);const _0x4029fa=_0x5150f3[_0x297729(0x1ff)](_0x57a10d=>{const _0x324a10=_0x297729;if(_0x46ef7a[_0x324a10(0x1b5)](_0x46ef7a['wKFWB'],_0x46ef7a[_0x324a10(0x1bf)])){const _0x4934d1=_0x57a10d['body']?'\x20|\x20body:'+'\x20'+_0x57a10d['body'][_0x324a10(0x218)](/\s+/g,'\x20')['trim']():'',_0x6ab896=_0x57a10d[_0x324a10(0x201)]||_0x46ef7a[_0x324a10(0x20f)],_0xdc0cbb=_0x57a10d['author']||_0x46ef7a[_0x324a10(0x1db)];return'-\x20'+_0x6ab896+_0x324a10(0x1f9)+_0x57a10d[_0x324a10(0x1f8)][_0x324a10(0x1c1)](0x0,0x7)+_0x324a10(0x1f9)+_0xdc0cbb+_0x324a10(0x1f9)+_0x57a10d['subject']+_0x4934d1;}else{const _0x363501=_0x344350?.['commits']?.[_0x324a10(0x1d8)]();if(!_0x363501)return _0x1b9aa7;const _0x24d724=_0x1a598e[_0x324a10(0x1cf)](_0x363501,0xa);return(_0xd90216[_0x324a10(0x20d)](_0x24d724)||cLgcJP[_0x324a10(0x1e7)](_0x24d724,0x0))&&_0x3be406(cLgcJP[_0x324a10(0x1ad)]),_0x3eaf16[_0x324a10(0x1e8)](_0x24d724,_0x1aa08b);}})[_0x297729(0x1b4)]('\x0a'),_0x45d5e2=_0x46ef7a['LvVqW'](getCommitRangeDiffStat,_0x1f79d9);return[_0x4029fa,'',_0x46ef7a[_0x297729(0x1e9)],_0x45d5e2][_0x297729(0x1b4)]('\x0a');}function _0x412f(){const _0x1d1694=['4HLIfZi','\x20in\x20this','Overall\x20','ory\x20firs','cGEUf','oISzy','te\x20chang','XebRw','parseInt','EOWYQ','2016544BhPbPB','try\x20agai','o\x20genera','File','oBNvQ','cfTBG','Invalid\x20','trim','ZRBdb','pJjSq','OoonX','normaliz','zJGtI','vxnGL','Failed\x20t','oIgOp','apply','ositive\x20','diff\x20sta','5VmmTjb','commits','changelo','vlbsk','min','VJTDP','orBNE','og...','content','search','--commit','\x20reposit','G\x20GENERA','wDriE','NOuBQ','OivxB','toLowerC','No\x20commi','liABx','ase','hash','\x20|\x20','n,\x20then\x20','used','yjpZd','Make\x20at\x20','Hencb','map','nerating','date','292317RGHFSK','toISOStr','s\x20value.','yQOvV','author','\x20Use\x20a\x20p','elog\x20con','+)+$','e\x20commit','cwd','ZASrU','isNaN','ts\x20found','OHtXM','962384NrKYGq','(((.+)+)','construc','yIvkv','tent.','PdGHm','ngelog.','Check\x20yo','replace','EcaBL','etwork\x20c','toString','tor','1187368OKMOXj','ing','onnectio','uRRIZ','NFD','bYuFq','kZuVV','VLVkG','TzRub','QZBVT','length','least\x20on','SwimN','join','FAsAM','integer.','zUCrX','xUopv','5352912dTGuDS','mHcun','ZdDIR','unknown-','ey\x20and\x20n','\x20changel','esYEf','rate\x20cha','slice','.md','\x20to\x20gene','1128786NXnxSI','vPfwR','130456BDeFkO'];_0x412f=function(){return _0x1d1694;};return _0x412f();}export async function generateChangelog(_0x273d0c,_0x439cf4){const _0x583024=_0x561d,_0x2aabdb={'OivxB':function(_0x238dbf){return _0x238dbf();},'EOWYQ':function(_0x5ba95c,_0x15aece){return _0x5ba95c(_0x15aece);},'PdGHm':function(_0xe0ca07){return _0xe0ca07();},'wDriE':function(_0x339202,_0x6758e2){return _0x339202(_0x6758e2);},'cGEUf':_0x583024(0x1e6)+'g','oIgOp':function(_0xcf39bd,_0x497e5f){return _0xcf39bd(_0x497e5f);},'ZASrU':function(_0x18e666,_0x1a46c0,_0x5453fa){return _0x18e666(_0x1a46c0,_0x5453fa);},'ZRBdb':'AI\x20is\x20ge'+_0x583024(0x200)+_0x583024(0x1be)+_0x583024(0x1eb),'VLVkG':_0x583024(0x1df)+_0x583024(0x1d3)+_0x583024(0x1cd)+_0x583024(0x208)+_0x583024(0x214),'Hencb':_0x583024(0x217)+'ur\x20API\x20k'+_0x583024(0x1bd)+_0x583024(0x21a)+_0x583024(0x1a9)+_0x583024(0x1fa)+_0x583024(0x1d2)+'n.','XebRw':function(_0x2454e3,_0x32367e,_0x3171e3){return _0x2454e3(_0x32367e,_0x3171e3);},'EcaBL':_0x583024(0x1e6)+'gs','ZFuEo':function(_0x472eee,_0x3bb5a5,_0x3b90d0){return _0x472eee(_0x3bb5a5,_0x3b90d0);},'ZdDIR':function(_0x356dfb,_0x24f634,_0x23b46c,_0x5d9342){return _0x356dfb(_0x24f634,_0x23b46c,_0x5d9342);},'xUopv':'utf8','yIvkv':function(_0x28cd08,_0x240416){return _0x28cd08(_0x240416);},'SwimN':'Status','yvGSV':_0x583024(0x1d4)};_0x2aabdb[_0x583024(0x1f3)](getGitStatus);const _0x344f8a=_0x2aabdb['OivxB'](getLLM),_0x3b78bd=_0x2aabdb[_0x583024(0x1d0)](resolveCommitLimit,_0x439cf4),_0x259a95=_0x2aabdb[_0x583024(0x215)](getCurrentBranch),_0xa21fa5=_0x2aabdb[_0x583024(0x1f1)](sanitizeName,(_0x273d0c||_0x259a95)[_0x583024(0x1d8)]()),_0x69590d=_0x2aabdb[_0x583024(0x1f1)](formatDateForFile,new Date()),_0x20cb54=_0xa21fa5+'-'+_0x69590d+_0x583024(0x1c2),_0x3e3888=_0x2aabdb[_0x583024(0x1f1)](buildCommitHistoryPrompt,_0x3b78bd),_0x53804d=loadPrompt(_0x2aabdb[_0x583024(0x1cb)]),_0x123962=interpolate(_0x53804d,{'commit_limit':_0x2aabdb[_0x583024(0x1e0)](String,_0x3b78bd),'commit_history':_0x3e3888}),_0x5c1733=await _0x2aabdb[_0x583024(0x20c)](withProgress,_0x2aabdb[_0x583024(0x1d9)],()=>_0x344f8a['invoke'](_0x123962)),_0x502b7a=extractMessageText(_0x5c1733[_0x583024(0x1ec)]);!_0x502b7a&&failAndExit(_0x2aabdb[_0x583024(0x1ae)],_0x2aabdb[_0x583024(0x1fe)]);const _0x2020b1=_0x2aabdb[_0x583024(0x1ce)](join,process[_0x583024(0x20b)](),_0x2aabdb[_0x583024(0x219)]),_0x458f2b=_0x2aabdb['XebRw'](join,_0x2020b1,_0x20cb54);_0x2aabdb['ZFuEo'](mkdirSync,_0x2020b1,{'recursive':!![]}),_0x2aabdb[_0x583024(0x1bb)](writeFileSync,_0x458f2b,_0x502b7a[_0x583024(0x1d8)]()+'\x0a',_0x2aabdb[_0x583024(0x1b8)]),_0x2aabdb[_0x583024(0x213)](section,'CHANGELO'+_0x583024(0x1f0)+'TED'),_0x2aabdb[_0x583024(0x1d0)](printKeyValues,[{'key':_0x2aabdb[_0x583024(0x1b3)],'value':_0x2aabdb[_0x583024(0x1f1)](ok,'OK')},{'key':_0x2aabdb['yvGSV'],'value':_0x458f2b},{'key':'Commits\x20'+_0x583024(0x1fb),'value':_0x2aabdb[_0x583024(0x1d0)](String,_0x3b78bd)}]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2fe0eb,_0x1ada67){const _0x4a0374=_0x463b,_0x44157b=_0x2fe0eb();while(!![]){try{const _0x3c3ed1=parseInt(_0x4a0374(0x21c))/0x1+-parseInt(_0x4a0374(0x229))/0x2*(-parseInt(_0x4a0374(0x226))/0x3)+-parseInt(_0x4a0374(0x1ec))/0x4*(-parseInt(_0x4a0374(0x19e))/0x5)+parseInt(_0x4a0374(0x196))/0x6+-parseInt(_0x4a0374(0x1f7))/0x7+parseInt(_0x4a0374(0x1fd))/0x8*(-parseInt(_0x4a0374(0x117))/0x9)+-parseInt(_0x4a0374(0x130))/0xa;if(_0x3c3ed1===_0x1ada67)break;else _0x44157b['push'](_0x44157b['shift']());}catch(_0x1c38f4){_0x44157b['push'](_0x44157b['shift']());}}}(_0x2664,0xebe9f));const _0x3cc874=(function(){let _0x3e6883=!![];return function(_0x2409af,_0x3bac70){const _0x635924=_0x3e6883?function(){if(_0x3bac70){const _0x60c234=_0x3bac70['apply'](_0x2409af,arguments);return _0x3bac70=null,_0x60c234;}}:function(){};return _0x3e6883=![],_0x635924;};}()),_0x26549c=_0x3cc874(this,function(){const _0x219f4b=_0x463b,_0x4a865a={'ZoSZz':_0x219f4b(0x16b)+_0x219f4b(0x13f)};return _0x26549c[_0x219f4b(0x1c1)]()[_0x219f4b(0x1e6)](_0x4a865a[_0x219f4b(0x251)])[_0x219f4b(0x1c1)]()[_0x219f4b(0x17b)+_0x219f4b(0x223)](_0x26549c)[_0x219f4b(0x1e6)](_0x219f4b(0x16b)+_0x219f4b(0x13f));});_0x26549c();function _0x463b(_0x148624,_0x127cd1){_0x148624=_0x148624-0x112;const _0x5ebe4f=_0x2664();let _0x26549c=_0x5ebe4f[_0x148624];return _0x26549c;}import{execFileSync}from'child_process';import{interpolate,loadPrompt}from'../aiPrompts.js';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,style,ui,warn,warnBlock,withProgress}from'../ui.js';const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x504dc5=_0x463b,_0x4b60d9={'VQsEu':function(_0x487e4e){return _0x487e4e();},'dDgKL':function(_0x572770,_0x46afd1){return _0x572770(_0x46afd1);},'kbRXd':function(_0x2634a9,_0xc0d472){return _0x2634a9(_0xc0d472);}};try{return _0x4b60d9['VQsEu'](createLLM);}catch(_0x26a9c9){const _0x3d9d01=_0x26a9c9 instanceof Error?_0x26a9c9[_0x504dc5(0x1eb)]:_0x4b60d9['dDgKL'](String,_0x26a9c9);_0x4b60d9[_0x504dc5(0x204)](failAndExit,_0x3d9d01);}}function countByStatus(_0x10d98d){const _0x5979db=_0x463b,_0x14ef73={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x20df0c of _0x10d98d[_0x5979db(0x213)]){if(_0x20df0c['status'][_0x5979db(0x188)+'th']('A')){_0x14ef73['added']+=0x1;continue;}if(_0x20df0c[_0x5979db(0x1de)][_0x5979db(0x188)+'th']('M')){_0x14ef73[_0x5979db(0x185)]+=0x1;continue;}if(_0x20df0c[_0x5979db(0x1de)][_0x5979db(0x188)+'th']('D')){_0x14ef73[_0x5979db(0x14d)]+=0x1;continue;}if(_0x20df0c[_0x5979db(0x1de)][_0x5979db(0x188)+'th']('R')){_0x14ef73['renamed']+=0x1;continue;}_0x14ef73['other']+=0x1;}return _0x14ef73;}function detectCommitType(_0x5ed64c){const _0x877744=_0x463b,_0x513494={'MclFJ':function(_0x528a2d,_0x2db19b){return _0x528a2d(_0x2db19b);},'fQkRl':function(_0x44a7c4,_0x2e521d){return _0x44a7c4>_0x2e521d;},'qMSoF':'docs','vDvVV':_0x877744(0x17e),'Vysut':function(_0x1fb0fb,_0x1445f3){return _0x1fb0fb===_0x1445f3;},'OqTTE':function(_0x3be4ca,_0x5a4f4c){return _0x3be4ca===_0x5a4f4c;},'qGWpT':function(_0x2dc7d8,_0x20e608){return _0x2dc7d8>=_0x20e608;},'TRYrj':'feat','TxRMJ':function(_0xf21da6,_0x310c2b){return _0xf21da6<=_0x310c2b;},'fDLev':_0x877744(0x22f),'ugCBg':'refactor'},_0x1a61e5=_0x5ed64c[_0x877744(0x213)][_0x877744(0x1ca)](_0x3edb45=>_0x3edb45[_0x877744(0x200)][_0x877744(0x156)+_0x877744(0x230)]()),_0x475c19=_0x513494[_0x877744(0x1f8)](countByStatus,_0x5ed64c);if(_0x513494[_0x877744(0x237)](_0x1a61e5[_0x877744(0x1ac)],0x0)&&_0x1a61e5[_0x877744(0x1c9)](_0x5d6063=>/(^|\/)(readme|docs?|changelog)/[_0x877744(0x17e)](_0x5d6063)||_0x5d6063[_0x877744(0x12e)]('.md')))return _0x513494['qMSoF'];if(_0x1a61e5[_0x877744(0x1ac)]>0x0&&_0x1a61e5[_0x877744(0x1c9)](_0x3e9fab=>/(^|\/)(test|tests|__tests__|spec)/['test'](_0x3e9fab)||/\.(spec|test)\./[_0x877744(0x17e)](_0x3e9fab)))return _0x513494[_0x877744(0x15a)];if(_0x513494[_0x877744(0x237)](_0x475c19[_0x877744(0x14d)],0x0)&&_0x513494['Vysut'](_0x475c19[_0x877744(0x1bb)],0x0)&&_0x513494['OqTTE'](_0x475c19['modified'],0x0))return'chore';if(_0x513494[_0x877744(0x186)](_0x475c19[_0x877744(0x1bb)],_0x475c19['modified'])&&_0x475c19['added']>0x0)return _0x513494[_0x877744(0x181)];if(_0x475c19[_0x877744(0x185)]>0x0&&_0x513494[_0x877744(0x201)](_0x5ed64c['metrics'][_0x877744(0x1f4)+'ns'],_0x5ed64c[_0x877744(0x141)]['deletion'+'s']))return _0x513494[_0x877744(0x184)];return _0x513494[_0x877744(0x219)];}function summarizeChanges(_0x5c2502){const _0x2539b8=_0x463b,_0x3b5923={'xkILw':function(_0x5bc0c2,_0x37bf2f){return _0x5bc0c2(_0x37bf2f);},'rKKDt':function(_0x2b294b,_0x432074){return _0x2b294b>_0x432074;},'kytAV':function(_0x107f88,_0x289a6d){return _0x107f88-_0x289a6d;},'lRyTB':function(_0x296e4e,_0x48a6f0){return _0x296e4e||_0x48a6f0;},'GIJUF':_0x2539b8(0x23f)+_0x2539b8(0x1bf)+'ailable.'},_0x1779d6=_0x3b5923[_0x2539b8(0x1b9)](countByStatus,_0x5c2502),_0x57786a=_0x5c2502[_0x2539b8(0x213)][_0x2539b8(0x20d)](0x0,0x3)[_0x2539b8(0x1ca)](_0x1ad244=>_0x1ad244[_0x2539b8(0x200)]),_0x43f9e9=_0x3b5923[_0x2539b8(0x257)](_0x5c2502[_0x2539b8(0x213)]['length'],0x3)?_0x57786a['join'](',\x20')+'\x20+'+_0x3b5923[_0x2539b8(0x17d)](_0x5c2502['files'][_0x2539b8(0x1ac)],0x3)+_0x2539b8(0x142):_0x57786a[_0x2539b8(0x19f)](',\x20');return _0x5c2502[_0x2539b8(0x141)][_0x2539b8(0x1b8)+'t']+(_0x2539b8(0x1cf)+_0x2539b8(0x164))+_0x1779d6['added']+_0x2539b8(0x1f0)+_0x1779d6[_0x2539b8(0x185)]+(_0x2539b8(0x1e8)+_0x2539b8(0x227))+_0x1779d6[_0x2539b8(0x14d)]+(_0x2539b8(0x205)+',\x20')+_0x1779d6[_0x2539b8(0x17a)]+('\x20renamed'+_0x2539b8(0x1e9))+_0x5c2502[_0x2539b8(0x141)][_0x2539b8(0x1f4)+'ns']+(_0x2539b8(0x1b3)+_0x2539b8(0x1e7))+_0x5c2502[_0x2539b8(0x141)][_0x2539b8(0x240)+'s']+(_0x2539b8(0x21a)+'ns.\x20')+_0x3b5923[_0x2539b8(0x1ad)](_0x43f9e9,_0x3b5923[_0x2539b8(0x252)]);}function _0x2664(){const _0xf9568d=['pleted\x20t','Push\x20com','label','n,\x20then\x20','f\x20you\x20ha','emit\x20com','BJbMx','hbkMF','t\x20read\x20l','hanged\x20(','mmit\x20qua','HwuyB','\x22\x20now?\x20(','ted)','SKIPPED','RXmzP','(((.+)+)','aLspv','igured\x20(','New\x20mess','TfXFH','MONEh','files\x20de','onfMK','Last\x20com','it.\x20Make','ere\x20is\x20a','ll\x20chang','t\x20least\x20','aVevr','1.\x20STAGE','renamed','construc','kOrXO','kytAV','test','(could\x20n','all','TRYrj','uQNiw','leaner\x20h','fDLev','modified','qGWpT','Current\x20','startsWi','\x20staged\x20','JegGL','XBuOO','npm.cmd','pIAMh','o\x20push\x20\x22','AI\x20is\x20th','git','r\x20use\x20`g','CHECK','KCRbp','aged\x20dif','it.','221094hhhEUS','xLRGi','etwork\x20c','Commit\x20w','docs','mLSaN','log','--if-pre','43855lvUlPt','join','lity\x20may','AMEND','ast\x20comm','wXJmL','Amending','ed)','\x20failed.','aZGtf','ng\x20into\x20','zEYCA','ed\x20commi','bRQll','length','lRyTB','SjhUA','ITXcH','jVFvt','\x20(Y/n):\x20','sEBdb','\x20inserti','diff)','IUtbD','ZCmgM','trim','fileCoun','xkILw','mCTAf','added','essage?\x20','am?\x20(y/N','HDYoK','paths\x20av','--short','toString','tBkDf','Staged\x20f','mended.','xpvgF','Large\x20st','ey\x20and\x20n','aODOM','every','map','pMHRK','ch\x20sent\x20','pHCtg','Staged\x20a','\x20files\x20c','t\x20upstre','\x20complet','IWAHv','uQFMx','mmit:\x20','age\x20ever','nd\x20upstr','content','o\x20create','Ebesv','Kvsit','l`\x20to\x20st','e\x20trunca','--amend','status','FPCSu','oAgwI','orQcv','commit','vAXQz','invoke','ything.','search','ons,\x20','\x20modifie','),\x20','hDirT','message','572vFecmh','AMENDED','sponse..','inherit','\x20added,\x20','t\x20messag','Push\x20cur','6|4|5','insertio','\x20sure\x20th','\x20for\x20a\x20c','5019987daBtjt','MclFJ','Running\x20','KOFNo','TDAOx','check','239928QAOfvS','Could\x20no','AI\x20is\x20ge','path','TxRMJ','KIsRU','QdGhx','kbRXd','\x20deleted','\x20a\x20bette','-dry-run','snXCv','reated.','f\x20(','able.','multiple','slice','d\x20files.','--set-up','push','pleted\x20a','y/N):\x20','files','platform','OVYZQ','\x20committ','to\x20the\x20A','OlABT','ugCBg','\x20deletio','win32','155585ffFuBo','stage\x20ch','XOlxi','as\x20not\x20a','\x20splitti','eqAsG','\x20mode).','tor','No\x20upstr','age\x20upda','21UJbKGW','d,\x20','\x0a(trunca','180620cptJvL','sHrya','es\x20(git\x20','split','inking\x20a','h\x20this\x20m','fix','ase','No\x20git\x20r','\x20Check\x20i','tgbYL','args','MOtMX','OMlbz','fQkRl','LiIfN','truncate','r\x20messag','yellow','as\x20not\x20c','nch\x20\x22','\x20Abortin','No\x20file\x20','deletion','ot\x20avail','XMWFw','qFwle','nZUgT','2.\x20SUGGE','amend','dryRun','npm','lint','SVhCR','ifoaW','branch','le>`\x20to\x20','I\x20will\x20b','fYnIu','mWGDN','ZoSZz','GIJUF','No\x20commi','iles','\x20be\x20redu','g\x20commit','rKKDt','remote','fullName','diffStat','Run\x20`git','No\x20stage','d\x20commit','):\x20','ed.','36uPhsZK','nerating','te\x20commi','mit\x20mess','ced.','BUdCX','KfKYQ','XiaLi','mit','Consider','gkuyV','zrMvV','Failed\x20t','dim','Message','\x20commits','CANCELED','tmfko','o\x20genera','show','ted.','anges,\x20o','YGruk','endsWith','ToJzv','2754490cZoXXy','sing\x20AI\x20','nfigured','run','patchCha','--pretty','...','KjzoC','CrUTt','zRXZv','sTfcG','HEAD','(Y/n):\x20','EPVHS','SorSQ','+)+$','rev-pars','metrics','\x20more','ot\x20read\x20','QDzEm','yuClX','lZXAZ','sjZQy','3.\x20FINIS','\x20commit.','emote\x20co','onnectio','UQIms','deleted','\x22\x20and\x20se','eam\x20foun','refactor','JfHov','ted\x20—\x20co','eated\x20(-','(none)','DRY\x20RUN','toLowerC','t\x20was\x20cr','rent\x20bra','\x20chars).','vDvVV'];_0x2664=function(){return _0xf9568d;};return _0x2664();}function formatStagedFiles(_0xc2c3f0){const _0x2f2d03=_0x463b;return _0xc2c3f0[_0x2f2d03(0x213)][_0x2f2d03(0x1ca)](_0x4c7323=>'-\x20'+_0x4c7323[_0x2f2d03(0x1de)]+'\x20'+_0x4c7323['path'])['join']('\x0a');}function runOptionalChecks(){const _0x156c48=_0x463b,_0xed72a6={'mLSaN':function(_0x561c2b,_0x1c6be5){return _0x561c2b===_0x1c6be5;},'sUCkX':_0x156c48(0x21b),'UQIms':_0x156c48(0x18c),'MOtMX':_0x156c48(0x248),'HwuyB':_0x156c48(0x249),'OSUQz':_0x156c48(0x133),'nZUgT':_0x156c48(0x19d)+'sent','KOFNo':_0x156c48(0x17e),'TDAOx':function(_0xb585e,_0x42d4d1,_0x4534d5){return _0xb585e(_0x42d4d1,_0x4534d5);},'XmdSK':_0x156c48(0x192),'IoIeU':function(_0x44eb5c,_0x2b7759,_0x575041,_0x5d3ee9){return _0x44eb5c(_0x2b7759,_0x575041,_0x5d3ee9);},'CrUTt':'inherit','EDFEl':function(_0x261978,_0x1b34b0){return _0x261978(_0x1b34b0);}},_0x4da51a=_0xed72a6[_0x156c48(0x19b)](process[_0x156c48(0x214)],_0xed72a6['sUCkX'])?_0xed72a6[_0x156c48(0x14c)]:_0xed72a6[_0x156c48(0x235)],_0x5b8955=[{'label':_0xed72a6[_0x156c48(0x166)],'args':[_0xed72a6['OSUQz'],'lint',_0xed72a6[_0x156c48(0x244)]]},{'label':_0xed72a6[_0x156c48(0x1fa)],'args':[_0xed72a6['OSUQz'],_0xed72a6[_0x156c48(0x1fa)],_0x156c48(0x19d)+'sent']}];for(const _0x1a6a63 of _0x5b8955){console[_0x156c48(0x19c)](_0xed72a6[_0x156c48(0x1fb)](info,_0xed72a6['XmdSK'],_0x156c48(0x1f9)+_0x1a6a63[_0x156c48(0x15d)]+_0x156c48(0x136)));try{_0xed72a6['IoIeU'](execFileSync,_0x4da51a,_0x1a6a63[_0x156c48(0x234)],{'stdio':_0xed72a6[_0x156c48(0x138)]}),console[_0x156c48(0x19c)](_0xed72a6['TDAOx'](ok,'OK',_0x1a6a63['label']+(_0x156c48(0x1d1)+_0x156c48(0x116))));}catch{_0xed72a6['EDFEl'](failAndExit,_0x1a6a63[_0x156c48(0x15d)]+(_0x156c48(0x1a6)+_0x156c48(0x23e)+_0x156c48(0x256)+'.'));}}}async function maybePushCurrentBranch(){const _0x3a89ae=_0x463b,_0x38c1f5={'orQcv':function(_0x206e0c){return _0x206e0c();},'BJbMx':function(_0x691053){return _0x691053();},'SVhCR':function(_0x474d9a,_0x1f0d0b,_0x1b9336,_0x4102b6){return _0x474d9a(_0x1f0d0b,_0x1b9336,_0x4102b6);},'YGruk':_0x3a89ae(0x190),'lZXAZ':_0x3a89ae(0x210),'XMWFw':_0x3a89ae(0x1ef),'KjzoC':function(_0x12efd1,_0x48ed05,_0xccf7fe){return _0x12efd1(_0x48ed05,_0xccf7fe);},'SjhUA':function(_0x4b53b0,_0x48300a){return _0x4b53b0(_0x48300a);},'FPCSu':_0x3a89ae(0x169),'tBkDf':_0x3a89ae(0x231)+_0x3a89ae(0x14a)+_0x3a89ae(0x132)+'.\x20Push\x20n'+_0x3a89ae(0x241)+_0x3a89ae(0x20b),'XiaLi':function(_0x12fc2d,_0x17992b,_0x17481d,_0x73bccf){return _0x12fc2d(_0x17992b,_0x17481d,_0x73bccf);},'pIAMh':function(_0x46b68f,_0xd054e9,_0x1b7c7f){return _0x46b68f(_0xd054e9,_0x1b7c7f);},'JfHov':function(_0x4e47cd,_0x539e9d){return _0x4e47cd(_0x539e9d);}},_0x5edebc=_0x38c1f5[_0x3a89ae(0x1e1)](getCurrentBranch),_0x2ca0a5=_0x38c1f5[_0x3a89ae(0x161)](getUpstreamInfo);if(_0x2ca0a5){const _0x46f75a=await askConfirmation(_0x3a89ae(0x1f2)+_0x3a89ae(0x158)+_0x3a89ae(0x23d)+_0x5edebc+'\x22\x20to\x20\x22'+_0x2ca0a5[_0x3a89ae(0x259)]+(_0x3a89ae(0x167)+_0x3a89ae(0x212)));if(!_0x46f75a)return;try{_0x38c1f5[_0x3a89ae(0x24a)](execFileSync,_0x38c1f5[_0x3a89ae(0x12d)],[_0x38c1f5['lZXAZ'],_0x2ca0a5[_0x3a89ae(0x258)],_0x5edebc+':'+_0x2ca0a5[_0x3a89ae(0x24c)]],{'stdio':_0x38c1f5[_0x3a89ae(0x242)]}),console[_0x3a89ae(0x19c)](_0x38c1f5[_0x3a89ae(0x137)](ok,'OK',_0x3a89ae(0x15c)+_0x3a89ae(0x15b)+'o\x20'+_0x2ca0a5[_0x3a89ae(0x259)]+'.'));}catch{_0x38c1f5['SjhUA'](failAndExit,_0x3a89ae(0x123)+'o\x20push\x20t'+'o\x20'+_0x2ca0a5[_0x3a89ae(0x259)]+'.');}return;}const _0x37851c=getDefaultRemote();if(!_0x37851c){console[_0x3a89ae(0x19c)](_0x38c1f5[_0x3a89ae(0x137)](warn,_0x38c1f5[_0x3a89ae(0x1df)],_0x38c1f5[_0x3a89ae(0x1c2)]));return;}const _0x11997f=await _0x38c1f5[_0x3a89ae(0x1ae)](askConfirmation,_0x3a89ae(0x224)+_0x3a89ae(0x14f)+'d.\x20Push\x20'+'\x22'+_0x5edebc+'\x22\x20to\x20\x22'+_0x37851c+'/'+_0x5edebc+(_0x3a89ae(0x14e)+_0x3a89ae(0x1d0)+_0x3a89ae(0x1bd)+_0x3a89ae(0x115)));if(!_0x11997f)return;try{_0x38c1f5[_0x3a89ae(0x11e)](execFileSync,_0x3a89ae(0x190),[_0x38c1f5[_0x3a89ae(0x146)],_0x3a89ae(0x20f)+'stream',_0x37851c,_0x5edebc],{'stdio':_0x38c1f5[_0x3a89ae(0x242)]}),console[_0x3a89ae(0x19c)](_0x38c1f5[_0x3a89ae(0x18d)](ok,'OK','Push\x20com'+_0x3a89ae(0x211)+_0x3a89ae(0x1d6)+'eam\x20conf'+_0x3a89ae(0x16d)+_0x37851c+'/'+_0x5edebc+').'));}catch{_0x38c1f5[_0x3a89ae(0x151)](failAndExit,_0x3a89ae(0x123)+_0x3a89ae(0x18e)+_0x5edebc+'\x22\x20to\x20\x22'+_0x37851c+'\x22.');}}export async function generateCommit(_0x4898d1={}){const _0x4d7ccd=_0x463b,_0x3e6efa={'tgbYL':function(_0x1c7233){return _0x1c7233();},'xpvgF':function(_0x1bf9de,_0x1c3e2f){return _0x1bf9de(_0x1c3e2f);},'wtuJr':function(_0x26e360){return _0x26e360();},'XOlxi':_0x4d7ccd(0x179),'pHCtg':function(_0x44e41e,_0x55f45e,_0x51416f){return _0x44e41e(_0x55f45e,_0x51416f);},'kOrXO':_0x4d7ccd(0x1ce)+_0x4d7ccd(0x176)+_0x4d7ccd(0x22b)+'add\x20.).','XBuOO':function(_0x3bca43,_0xcc5712){return _0x3bca43===_0xcc5712;},'gkuyV':function(_0x1eba39,_0x1d6f93,_0x4c6213){return _0x1eba39(_0x1d6f93,_0x4c6213);},'JegGL':_0x4d7ccd(0x113)+_0x4d7ccd(0x20e),'gEyTQ':_0x4d7ccd(0x112)+'\x20add\x20<fi'+_0x4d7ccd(0x24d)+_0x4d7ccd(0x21d)+_0x4d7ccd(0x12c)+_0x4d7ccd(0x191)+_0x4d7ccd(0x160)+'mit\x20--al'+_0x4d7ccd(0x1db)+_0x4d7ccd(0x1d5)+_0x4d7ccd(0x1e5),'VkXFs':function(_0x37e258,_0x1dc68e){return _0x37e258>=_0x1dc68e;},'ifoaW':function(_0x3f2be4,_0x59781b){return _0x3f2be4(_0x59781b);},'pMHRK':function(_0xedd2ad,_0x430f29,_0x200bcf){return _0xedd2ad(_0x430f29,_0x200bcf);},'OMlbz':_0x4d7ccd(0x1c3)+_0x4d7ccd(0x254),'sEBdb':function(_0x309a83){return _0x309a83();},'RXmzP':function(_0x1d3617,_0x3a85ed){return _0x1d3617!==_0x3a85ed;},'hDirT':_0x4d7ccd(0x12f),'qkkoa':_0x4d7ccd(0x1b5),'QDzEm':function(_0x37dff6,_0xf4b9fd){return _0x37dff6(_0xf4b9fd);},'LiIfN':_0x4d7ccd(0x1e2),'sTfcG':_0x4d7ccd(0x154),'oAgwI':_0x4d7ccd(0x228)+_0x4d7ccd(0x168),'uQFMx':function(_0xb76066,_0x5ec8a2){return _0xb76066(_0x5ec8a2);},'zEYCA':function(_0x17af73,_0x4f541b,_0x129538){return _0x17af73(_0x4f541b,_0x129538);},'vAXQz':_0x4d7ccd(0x18f)+_0x4d7ccd(0x22d)+'nd\x20reque'+'sting\x20re'+_0x4d7ccd(0x1ee)+'.','mWGDN':_0x4d7ccd(0x123)+_0x4d7ccd(0x129)+_0x4d7ccd(0x119)+_0x4d7ccd(0x1f1)+'e.','OVYZQ':'Check\x20yo'+'ur\x20API\x20k'+_0x4d7ccd(0x1c7)+_0x4d7ccd(0x198)+_0x4d7ccd(0x14b)+_0x4d7ccd(0x15e)+'try\x20agai'+'n.','SorSQ':function(_0x20e616,_0x20cdfd){return _0x20e616(_0x20cdfd);},'nulbu':'Would\x20co'+'mmit\x20the'+'se\x20files','rCDIl':function(_0x44c05c,_0x554aac,_0x49645a){return _0x44c05c(_0x554aac,_0x49645a);},'aLspv':_0x4d7ccd(0x155),'jsGYa':_0x4d7ccd(0x253)+_0x4d7ccd(0x157)+_0x4d7ccd(0x153)+_0x4d7ccd(0x207)+_0x4d7ccd(0x222),'KIsRU':_0x4d7ccd(0x125),'zrMvV':'Commit\x20u'+_0x4d7ccd(0x131)+'message?'+_0x4d7ccd(0x1b1),'OSWzR':_0x4d7ccd(0x127),'HDYoK':_0x4d7ccd(0x190),'fnElM':_0x4d7ccd(0x1ef),'QdGhx':_0x4d7ccd(0x123)+_0x4d7ccd(0x1d8)+_0x4d7ccd(0x149)+_0x4d7ccd(0x232)+_0x4d7ccd(0x15f)+'ve\x20stage'+_0x4d7ccd(0x20e),'xLRGi':_0x4d7ccd(0x148)+'H'};if(_0x4898d1[_0x4d7ccd(0x246)])return _0x3e6efa['tgbYL'](amendLastCommit);const _0x44b7cd=_0x3e6efa['wtuJr'](getLLM);_0x3e6efa[_0x4d7ccd(0x233)](getGitStatus),_0x3e6efa[_0x4d7ccd(0x1c5)](section,_0x3e6efa[_0x4d7ccd(0x21e)]);_0x4898d1[_0x4d7ccd(0x180)]&&(stageAll(),console[_0x4d7ccd(0x19c)](_0x3e6efa[_0x4d7ccd(0x1cd)](ok,'OK',_0x3e6efa[_0x4d7ccd(0x17c)])));const _0x3c7eda=_0x3e6efa[_0x4d7ccd(0x1c5)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x3e6efa[_0x4d7ccd(0x18b)](_0x3c7eda[_0x4d7ccd(0x213)][_0x4d7ccd(0x1ac)],0x0)&&_0x3e6efa[_0x4d7ccd(0x121)](failAndExit,_0x3e6efa[_0x4d7ccd(0x18a)],_0x3e6efa['gEyTQ']);_0x3e6efa['VkXFs'](_0x3c7eda['metrics'][_0x4d7ccd(0x1b8)+'t'],WARN_SPLIT_FILE_COUNT)&&_0x3e6efa[_0x4d7ccd(0x24b)](warnBlock,_0x3c7eda[_0x4d7ccd(0x141)][_0x4d7ccd(0x1b8)+'t']+(_0x4d7ccd(0x189)+_0x4d7ccd(0x171)+'tected.\x20'+_0x4d7ccd(0x120)+_0x4d7ccd(0x220)+_0x4d7ccd(0x1a8)+_0x4d7ccd(0x20c)+_0x4d7ccd(0x126)+_0x4d7ccd(0x1f6)+_0x4d7ccd(0x183)+'istory.'));_0x3e6efa[_0x4d7ccd(0x1cb)](printList,_0x3e6efa[_0x4d7ccd(0x236)],_0x3c7eda[_0x4d7ccd(0x213)]['map'](_0x54d59d=>_0x54d59d[_0x4d7ccd(0x1de)]+'\x20'+_0x54d59d[_0x4d7ccd(0x200)]));_0x4898d1[_0x4d7ccd(0x1fc)]&&(console['log'](),_0x3e6efa[_0x4d7ccd(0x1b2)](runOptionalChecks));const _0xf5a816=summarizeChanges(_0x3c7eda),_0xdbf693=detectCommitType(_0x3c7eda);if(_0x3c7eda[_0x4d7ccd(0x141)][_0x4d7ccd(0x134)+'rs']>WARN_PROMPT_DIFF_CHARS){if(_0x3e6efa[_0x4d7ccd(0x16a)](_0x3e6efa[_0x4d7ccd(0x1ea)],_0x3e6efa['qkkoa']))_0x3e6efa[_0x4d7ccd(0x144)](warnBlock,_0x4d7ccd(0x1c6)+_0x4d7ccd(0x194)+_0x4d7ccd(0x20a)+_0x3c7eda[_0x4d7ccd(0x141)][_0x4d7ccd(0x134)+'rs']+(_0x4d7ccd(0x159)+'\x20The\x20pat'+_0x4d7ccd(0x1cc)+_0x4d7ccd(0x217)+_0x4d7ccd(0x24e)+_0x4d7ccd(0x1dc)+_0x4d7ccd(0x152)+_0x4d7ccd(0x165)+_0x4d7ccd(0x1a0)+_0x4d7ccd(0x255)+_0x4d7ccd(0x11b)));else try{return EdKGll[_0x4d7ccd(0x233)](_0x49d97c);}catch(_0x49bc8c){const _0x4af274=_0x49bc8c instanceof _0x39b317?_0x49bc8c[_0x4d7ccd(0x1eb)]:_0x5b997b(_0x49bc8c);EdKGll[_0x4d7ccd(0x1c5)](_0x2486cc,_0x4af274);}}const _0x3eb8ce=_0x3e6efa[_0x4d7ccd(0x144)](loadPrompt,_0x3e6efa[_0x4d7ccd(0x238)]),_0x56ae4f=interpolate(_0x3eb8ce,{'detected_type':_0xdbf693,'staged_files':_0x3e6efa['QDzEm'](formatStagedFiles,_0x3c7eda),'summary':_0xf5a816,'diff_stat':_0x3c7eda[_0x4d7ccd(0x25a)]||_0x3e6efa[_0x4d7ccd(0x13a)],'patch':''+(_0x3c7eda['patch']||_0x4d7ccd(0x154))+(_0x3c7eda[_0x4d7ccd(0x141)][_0x4d7ccd(0x239)+'d']?_0x3e6efa[_0x4d7ccd(0x1e0)]:'')});_0x3e6efa['uQFMx'](section,_0x4d7ccd(0x245)+'ST');const _0x32742d=await _0x3e6efa[_0x4d7ccd(0x1a9)](withProgress,_0x3e6efa[_0x4d7ccd(0x1e3)],()=>_0x44b7cd[_0x4d7ccd(0x1e4)](_0x56ae4f)),_0x5d0502=_0x3e6efa[_0x4d7ccd(0x1d3)](extractMessageText,_0x32742d[_0x4d7ccd(0x1d7)]);!_0x5d0502&&_0x3e6efa[_0x4d7ccd(0x121)](failAndExit,_0x3e6efa[_0x4d7ccd(0x250)],_0x3e6efa[_0x4d7ccd(0x215)]);_0x3e6efa[_0x4d7ccd(0x13e)](printKeyValues,[{'key':'Suggeste'+_0x4d7ccd(0x114),'value':_0x5d0502}]);if(_0x4898d1[_0x4d7ccd(0x247)]){const _0x58b281=('3|2|0|1|'+_0x4d7ccd(0x1f3))[_0x4d7ccd(0x22c)]('|');let _0x19cc83=0x0;while(!![]){switch(_0x58b281[_0x19cc83++]){case'0':console['log']();continue;case'1':_0x3e6efa['pMHRK'](printList,_0x3e6efa['nulbu'],_0x3c7eda['files'][_0x4d7ccd(0x1ca)](_0x28d94c=>_0x28d94c[_0x4d7ccd(0x1de)]+'\x20'+_0x28d94c['path']));continue;case'2':console['log'](_0x3e6efa['rCDIl'](info,_0x3e6efa[_0x4d7ccd(0x16c)],_0x3e6efa['jsGYa']));continue;case'3':_0x3e6efa[_0x4d7ccd(0x144)](section,_0x3e6efa['aLspv']);continue;case'4':console['log']();continue;case'5':return;case'6':printKeyValues([{'key':_0x3e6efa[_0x4d7ccd(0x202)],'value':_0x5d0502}]);continue;}break;}}console[_0x4d7ccd(0x19c)]();const _0x4419fc=await askConfirmation(_0x3e6efa[_0x4d7ccd(0x122)],{'defaultYes':!![]});if(!_0x4419fc){console['log'](warn(_0x3e6efa['OSWzR'],_0x4d7ccd(0x199)+_0x4d7ccd(0x23c)+_0x4d7ccd(0x209)));return;}try{execFileSync(_0x3e6efa[_0x4d7ccd(0x1be)],[_0x3e6efa[_0x4d7ccd(0x238)],'-m',_0x5d0502],{'stdio':_0x3e6efa['fnElM']});}catch{_0x3e6efa['xpvgF'](failAndExit,_0x3e6efa[_0x4d7ccd(0x203)]);}_0x3e6efa[_0x4d7ccd(0x13e)](section,_0x3e6efa[_0x4d7ccd(0x197)]),await _0x3e6efa['sEBdb'](maybePushCurrentBranch);}async function amendLastCommit(){const _0xa073ff=_0x463b,_0xfef0f3={'KfKYQ':function(_0xc59714){return _0xc59714();},'aAJNr':function(_0x3b3ac4,_0x13d122,_0x29c283,_0x4f7ee5){return _0x3b3ac4(_0x13d122,_0x29c283,_0x4f7ee5);},'sHrya':_0xa073ff(0x190),'BUdCX':_0xa073ff(0x1c0),'Kvsit':function(_0x458921,_0x4f3f24,_0x354f6e,_0x2d6164){return _0x458921(_0x4f3f24,_0x354f6e,_0x2d6164);},'onfMK':_0xa073ff(0x135)+'=%B','fYnIu':'pipe','Ebesv':function(_0x14bd2d,_0x35d94c){return _0x14bd2d(_0x35d94c);},'bRQll':_0xa073ff(0x1fe)+_0xa073ff(0x163)+_0xa073ff(0x1a2)+_0xa073ff(0x174)+_0xa073ff(0x1f5)+_0xa073ff(0x175)+_0xa073ff(0x177)+'one\x20comm'+_0xa073ff(0x195),'EPVHS':function(_0x5f10eb,_0x3e91ca,_0x2ef531,_0x5bb1e1){return _0x5f10eb(_0x3e91ca,_0x2ef531,_0x5bb1e1);},'TfXFH':_0xa073ff(0x12a),'tmfko':_0xa073ff(0x13b),'tzlMt':function(_0x380517,_0x326016){return _0x380517>_0x326016;},'aODOM':function(_0x2344df,_0x4ef1be){return _0x2344df+_0x4ef1be;},'DrPKm':'\x0a(trunca'+_0xa073ff(0x168),'sjZQy':_0xa073ff(0x17f)+_0xa073ff(0x143)+_0xa073ff(0x1b4),'OlABT':function(_0x38fbcd,_0x1a09f6){return _0x38fbcd(_0x1a09f6);},'zRXZv':_0xa073ff(0x173)+_0xa073ff(0x11f),'snXCv':function(_0x39d9ce,_0x5a3077,_0x1d1711){return _0x39d9ce(_0x5a3077,_0x1d1711);},'mCTAf':_0xa073ff(0x187)+_0xa073ff(0x1eb),'hbkMF':function(_0x504725,_0x916b3a,_0x1e0708){return _0x504725(_0x916b3a,_0x1e0708);},'IWAHv':function(_0x38345f,_0x2eedc6){return _0x38345f(_0x2eedc6);},'MONEh':_0xa073ff(0x150),'uQNiw':'(already'+_0xa073ff(0x216)+_0xa073ff(0x1a5),'jVFvt':_0xa073ff(0x1ff)+_0xa073ff(0x118)+_0xa073ff(0x206)+_0xa073ff(0x23a)+'e...','ZCmgM':'Failed\x20t'+'o\x20genera'+'te\x20amend'+_0xa073ff(0x1aa)+_0xa073ff(0x1f1)+'e.','aVevr':'Amend\x20co'+'mmit\x20wit'+_0xa073ff(0x22e)+_0xa073ff(0x1bc)+_0xa073ff(0x13c),'KCRbp':_0xa073ff(0x127),'yuClX':function(_0x3182d1,_0x5613b3){return _0x3182d1!==_0x5613b3;},'nNXAw':_0xa073ff(0x1af),'wVZqY':'SDKIO','eqAsG':function(_0x2b3741,_0x31af12,_0x538c6a,_0x4e4c68){return _0x2b3741(_0x31af12,_0x538c6a,_0x4e4c68);},'aZGtf':_0xa073ff(0x1dd),'pxjpk':_0xa073ff(0x1ef),'wXJmL':_0xa073ff(0x1ed),'qFwle':_0xa073ff(0x173)+_0xa073ff(0x11a)+_0xa073ff(0x225)+_0xa073ff(0x12b)},_0x4cacfd=_0xfef0f3[_0xa073ff(0x11d)](getLLM);let _0x37d58f,_0x40c790;try{_0x37d58f=_0xfef0f3['aAJNr'](execFileSync,_0xfef0f3[_0xa073ff(0x22a)],[_0xa073ff(0x140)+'e',_0xfef0f3[_0xa073ff(0x11c)],_0xa073ff(0x13b)],{'stdio':'pipe'})[_0xa073ff(0x1c1)]()[_0xa073ff(0x1b7)](),_0x40c790=_0xfef0f3[_0xa073ff(0x1da)](execFileSync,_0xfef0f3['sHrya'],['log','-1',_0xfef0f3[_0xa073ff(0x172)]],{'stdio':_0xfef0f3[_0xa073ff(0x24f)]})['toString']()[_0xa073ff(0x1b7)]();}catch{_0xfef0f3['Ebesv'](failAndExit,_0xfef0f3[_0xa073ff(0x1ab)]);}let _0xe5375;try{const _0x3e04ba=_0xfef0f3[_0xa073ff(0x13d)](execFileSync,_0xa073ff(0x190),[_0xfef0f3[_0xa073ff(0x16f)],'--stat',_0xfef0f3[_0xa073ff(0x128)]],{'stdio':_0xfef0f3[_0xa073ff(0x24f)]})[_0xa073ff(0x1c1)]()['trim']();_0xe5375=_0xfef0f3['tzlMt'](_0x3e04ba[_0xa073ff(0x1ac)],MAX_PROMPT_PATCH_CHARS)?_0xfef0f3[_0xa073ff(0x1c8)](_0x3e04ba['slice'](0x0,MAX_PROMPT_PATCH_CHARS),_0xfef0f3['DrPKm']):_0x3e04ba;}catch{_0xe5375=_0xfef0f3[_0xa073ff(0x147)];}_0xfef0f3[_0xa073ff(0x218)](section,_0xa073ff(0x1a1)),_0xfef0f3[_0xa073ff(0x218)](printKeyValues,[{'key':_0xfef0f3[_0xa073ff(0x139)],'value':_0xfef0f3['snXCv'](style,_0x37d58f,ui[_0xa073ff(0x23b)])},{'key':_0xfef0f3[_0xa073ff(0x1ba)],'value':_0xfef0f3[_0xa073ff(0x162)](style,_0x40c790,ui[_0xa073ff(0x124)])}]);const _0x8fc3bd=_0xfef0f3[_0xa073ff(0x1d2)](loadPrompt,_0xa073ff(0x1e2)),_0x261aa6=interpolate(_0x8fc3bd,{'detected_type':_0xfef0f3[_0xa073ff(0x170)],'staged_files':_0xfef0f3[_0xa073ff(0x182)],'summary':_0xa073ff(0x1a4)+'\x20last\x20co'+_0xa073ff(0x1d4)+_0x40c790,'diff_stat':_0xe5375,'patch':_0xe5375}),_0x37e32c=await _0xfef0f3[_0xa073ff(0x208)](withProgress,_0xfef0f3[_0xa073ff(0x1b0)],()=>_0x4cacfd[_0xa073ff(0x1e4)](_0x261aa6)),_0x2faab7=extractMessageText(_0x37e32c[_0xa073ff(0x1d7)]);!_0x2faab7&&_0xfef0f3[_0xa073ff(0x218)](failAndExit,_0xfef0f3[_0xa073ff(0x1b6)]);console['log'](),_0xfef0f3[_0xa073ff(0x1d9)](printKeyValues,[{'key':_0xa073ff(0x16e)+'age','value':_0x2faab7}]),console[_0xa073ff(0x19c)]();const _0x376e22=await _0xfef0f3[_0xa073ff(0x162)](askConfirmation,_0xfef0f3[_0xa073ff(0x178)],{'defaultYes':!![]});if(!_0x376e22){console[_0xa073ff(0x19c)](warn(_0xfef0f3[_0xa073ff(0x193)],'Commit\x20w'+_0xa073ff(0x21f)+_0xa073ff(0x1c4)));return;}try{if(_0xfef0f3[_0xa073ff(0x145)](_0xfef0f3['nNXAw'],_0xfef0f3['wVZqY']))_0xfef0f3[_0xa073ff(0x221)](execFileSync,_0xfef0f3['sHrya'],[_0xa073ff(0x1e2),_0xfef0f3[_0xa073ff(0x1a7)],'-m',_0x2faab7],{'stdio':_0xfef0f3['pxjpk']}),console[_0xa073ff(0x19c)](ok(_0xfef0f3[_0xa073ff(0x1a3)],_0xfef0f3[_0xa073ff(0x243)]));else return _0xa073ff(0x19a);}catch{failAndExit('Failed\x20t'+'o\x20amend\x20'+'commit.');}}
|
|
1
|
+
(function(_0x4ee0a5,_0x49f740){const _0xa44257=_0x1dff,_0x3c873b=_0x4ee0a5();while(!![]){try{const _0x1b3c64=-parseInt(_0xa44257(0x25b))/0x1*(parseInt(_0xa44257(0x34d))/0x2)+parseInt(_0xa44257(0x2ef))/0x3*(-parseInt(_0xa44257(0x215))/0x4)+-parseInt(_0xa44257(0x292))/0x5*(-parseInt(_0xa44257(0x322))/0x6)+parseInt(_0xa44257(0x2fd))/0x7*(-parseInt(_0xa44257(0x291))/0x8)+parseInt(_0xa44257(0x247))/0x9*(parseInt(_0xa44257(0x23b))/0xa)+parseInt(_0xa44257(0x335))/0xb*(parseInt(_0xa44257(0x24f))/0xc)+parseInt(_0xa44257(0x357))/0xd*(parseInt(_0xa44257(0x343))/0xe);if(_0x1b3c64===_0x49f740)break;else _0x3c873b['push'](_0x3c873b['shift']());}catch(_0xcbebe8){_0x3c873b['push'](_0x3c873b['shift']());}}}(_0xe4a0,0x58a1f));const _0x1d3610=(function(){const _0x291d5e=_0x1dff,_0x42f27c={'zcJbl':function(_0x33000c,_0x4452ab,_0x3550a5){return _0x33000c(_0x4452ab,_0x3550a5);},'tGrUi':_0x291d5e(0x334),'KKCYX':_0x291d5e(0x24d)+_0x291d5e(0x212)+_0x291d5e(0x320),'ZMlHY':function(_0x279a22,_0x1f0911){return _0x279a22!==_0x1f0911;},'OeAXp':'hYJmy'};let _0x4c1b80=!![];return function(_0x1b74ff,_0x49710a){const _0x4b128e=_0x291d5e;if(_0x42f27c[_0x4b128e(0x236)]('hYJmy',_0x42f27c[_0x4b128e(0x272)])){_0x3f779e[_0x4b128e(0x27c)](_0x42f27c[_0x4b128e(0x33f)](_0x16b27f,_0x42f27c['tGrUi'],_0x42f27c['KKCYX']));return;}else{const _0x1c04ad=_0x4c1b80?function(){const _0x233934=_0x4b128e;if(_0x49710a){const _0x37d798=_0x49710a[_0x233934(0x34b)](_0x1b74ff,arguments);return _0x49710a=null,_0x37d798;}}:function(){};return _0x4c1b80=![],_0x1c04ad;}};}()),_0x2ac162=_0x1d3610(this,function(){const _0x5d93c0=_0x1dff,_0x4ce69a={'EZymU':_0x5d93c0(0x2d1)+_0x5d93c0(0x2f4)};return _0x2ac162['toString']()[_0x5d93c0(0x1fb)](_0x4ce69a[_0x5d93c0(0x2e5)])['toString']()['construc'+'tor'](_0x2ac162)[_0x5d93c0(0x1fb)]('(((.+)+)'+_0x5d93c0(0x2f4));});_0x2ac162();import{execFileSync}from'child_process';import{interpolate,loadPrompt}from'../aiPrompts.js';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,style,ui,warn,warnBlock,withProgress}from'../ui.js';function _0x1dff(_0x38637c,_0x26e2db){_0x38637c=_0x38637c-0x1eb;const _0x53a967=_0xe4a0();let _0x2ac162=_0x53a967[_0x38637c];return _0x2ac162;}const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x41e33d=_0x1dff,_0x18234b={'ZRqen':function(_0x5a239d,_0x3f9f33){return _0x5a239d instanceof _0x3f9f33;},'GlRkb':function(_0x5da6bf,_0x4ac3ff){return _0x5da6bf(_0x4ac3ff);}};try{return createLLM();}catch(_0x2dd5a1){const _0x4885ff=_0x18234b[_0x41e33d(0x286)](_0x2dd5a1,Error)?_0x2dd5a1[_0x41e33d(0x23e)]:_0x18234b[_0x41e33d(0x313)](String,_0x2dd5a1);failAndExit(_0x4885ff);}}function countByStatus(_0x4964dd){const _0x34fe90=_0x1dff,_0x56f8a8={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x5c3d4e of _0x4964dd[_0x34fe90(0x276)]){if(_0x5c3d4e[_0x34fe90(0x1ee)][_0x34fe90(0x2fe)+'th']('A')){_0x56f8a8[_0x34fe90(0x325)]+=0x1;continue;}if(_0x5c3d4e[_0x34fe90(0x1ee)][_0x34fe90(0x2fe)+'th']('M')){_0x56f8a8['modified']+=0x1;continue;}if(_0x5c3d4e['status'][_0x34fe90(0x2fe)+'th']('D')){_0x56f8a8[_0x34fe90(0x24a)]+=0x1;continue;}if(_0x5c3d4e[_0x34fe90(0x1ee)]['startsWi'+'th']('R')){_0x56f8a8[_0x34fe90(0x30e)]+=0x1;continue;}_0x56f8a8[_0x34fe90(0x1fc)]+=0x1;}return _0x56f8a8;}function _0xe4a0(){const _0x277c45=['mmit:\x20','mfPNu','LYDBv','CANCELED','132PAgXCz','istory.','MBmNM','PrIGO','DRY\x20RUN','ase','):\x20','FOSEf','avBiP','VzODI','zcJbl','Run\x20`git','age\x20upda','QAXxd','6181182bsspvP','\x20commits','diff)','push','\x20chars).','HLqCK','GJzRe','\x20Check\x20i','apply','git','2qZZFkM','\x20inserti','emote\x20co','rsGBb','f\x20(','o\x20genera','RMTgc','NkhhG','t\x20upstre','AhMnU','13QrszVH','every','slice','mxEAR','status','No\x20stage','pleted\x20t','zMTpP','ns.\x20','mit\x20--al','fix','\x20last\x20co','VXTTp','ng\x20into\x20','mmit\x20the','yVCmz','Staged\x20a','search','other','mit','wCAQe','CWgCV','),\x20','h\x20this\x20m','FrcXM','ttZBf','Amend\x20co','nd\x20reque','4|5|3|1|','FbNKx','jdVdE','ch\x20sent\x20','pOGrr','kGGKV','No\x20git\x20r','AoNQg','commit','invoke','CAKIm','ything.','as\x20not\x20c','show','--set-up','44PuvJWI','DLtIK','Current\x20','platform','\x20The\x20pat','vPylO','ve\x20stage','commit.','stream','sazOl','vCFrr','fullName','\x20be\x20redu','DarSU','trim','xqqnL','I\x20will\x20b','SKIPPED','6|2|3|4|','Commit\x20u','ed.','loFQz','map','FuwZz','nrCET','inking\x20a','paths\x20av','sting\x20re','uyYLj','\x20splitti','deletion','vrfHW','r\x20use\x20`g','ZMlHY','\x22\x20to\x20\x22','IEROy','HAbEx','=%B','30UBYlBl','pFkBx','d\x20files.','message','1|5|0','etwork\x20c','hanged\x20(','\x22\x20now?\x20(','\x20staged\x20','(Y/n):\x20','leaner\x20h','ced.','1922841cshDvQ','t\x20read\x20l','\x20complet','deleted','essage?\x20','xalKY','Commit\x20w','Failed\x20t','235308FrRwuS','eam\x20foun','jakWn','mPdEo','AvffD','rent\x20bra','se\x20files','rev-pars','UKywJ','split','wVzMh','ZoSrF','355874qoGgev','branch','ast\x20comm','d.\x20Push\x20','\x20files\x20c','\x20(Y/n):\x20','o\x20push\x20t','message?','label','multiple','No\x20file\x20','Message','one\x20comm','fQdcQ','qMYXN','it.\x20Make','CkXzQ','1.\x20STAGE','run','Consider','ailable.','ClCEd','ere\x20is\x20a','OeAXp','age\x20ever','-dry-run','XTcyX','files','emit\x20com','fileCoun','mended.','e...','EAUfg','log','feat','\x20add\x20<fi','mit\x20mess','it.','Last\x20com','NsKrH','wUgse','OAjYQ','GNnhc','ZRqen','AI\x20is\x20th','Push\x20com','\x20committ','sing\x20AI\x20','sent','drinh','New\x20mess','nerating','e\x20trunca','tected.\x20','4166880AEEZLH','120TgKsHL','ons,\x20','g\x20commit','tlcrW','pipe','NDbyq','lCkRw','dThKP','\x0a(trunca','patchCha','(could\x20n','amCSz','o\x20create','aged\x20dif','0|6|2','Check\x20yo','\x20for\x20a\x20c','content','metrics','ISrZu','am?\x20(y/N','\x20renamed','igured\x20(','...','length','files\x20de','cgTgF','nTkHt','win32','n,\x20then\x20','y/N):\x20','\x20sure\x20th','fpjmu','hfQYZ','ur\x20API\x20k','dzbJN','QDPQm','join','lint','rZbws','cEYZv','check','jcFcA','.md','test','mgBYB','t\x20was\x20cr','mUeOf','all','Tmunz','.\x20Push\x20n','HEAD','args','nd\x20upstr','\x20modifie','sponse..','npm.cmd','HftrL','ot\x20avail','le>`\x20to\x20','fjYgI','eated\x20(-','hVrSY','(((.+)+)','xRBAR','\x20deletio','\x20failed.','kbscV','toString','ll\x20chang','anges,\x20o','truncate','3.\x20FINIS','\x22\x20and\x20se','Would\x20co','onnectio','dNBMS','patch','able.','FaNCF','to\x20the\x20A','modified','hoymB','EZymU','eiNpI','WtFXo','hNRLd','oMvDw','wjDWc','jQMwE','xbKOQ','qxXPF','ted)','156363PJgKgB','yellow','rzoJT','--if-pre','(already','+)+$','chore','oEErw','path','Amending','Could\x20no','npm','SBnSr','cyFhi','7koAnWw','startsWi','\x20a\x20bette','DAxiz','as\x20not\x20a','IdopC','vmLZo','ed\x20commi','KZnHs','add\x20.).','bHyiv','QbVju','MbXcn','(none)','AI\x20is\x20ge','eam\x20conf','--pretty','renamed','f\x20you\x20ha','No\x20commi','mmit\x20qua','No\x20upstr','GlRkb','Epvnn','ed)','oeXmM','remote','ted\x20—\x20co','--short','toLowerC','try\x20agai','oWZpE','\x20more','age','xhPcs','reated.','d\x20commit','123834JJZTEY','\x20commit.','weFln','added','stage\x20ch','--amend','DmbBY','wGogz','IwBCK','rqVsC','\x20mode).','d,\x20','insertio','mmit\x20wit','inherit'];_0xe4a0=function(){return _0x277c45;};return _0xe4a0();}function detectCommitType(_0x40991b){const _0x45b4ac=_0x1dff,_0x531e5a={'DLtIK':_0x45b4ac(0x20c)+_0x45b4ac(0x34f)+'nfigured'+_0x45b4ac(0x2c4)+_0x45b4ac(0x2cc)+_0x45b4ac(0x2e0),'mxEAR':function(_0x555d6b,_0x811101){return _0x555d6b(_0x811101);},'pFkBx':function(_0x130e8f,_0x9892fb){return _0x130e8f>_0x9892fb;},'jdVdE':function(_0x23ddb4,_0x422400){return _0x23ddb4!==_0x422400;},'JNXRO':'KrLDG','xqqnL':'docs','rsGBb':function(_0x1d08ae,_0x1164c4){return _0x1d08ae>_0x1164c4;},'qxXPF':function(_0x237583,_0x323b6f){return _0x237583===_0x323b6f;},'jakWn':_0x45b4ac(0x2f5),'lKdnN':function(_0x104ae3,_0x3cae32){return _0x104ae3>=_0x3cae32;},'bGOnu':_0x45b4ac(0x27d),'cEYZv':function(_0x3eeceb,_0x2e30fe){return _0x3eeceb<=_0x2e30fe;},'hHovx':_0x45b4ac(0x1f4),'VzODI':'refactor'},_0x6a8a69=_0x40991b['files']['map'](_0x5dd76b=>_0x5dd76b['path'][_0x45b4ac(0x31a)+_0x45b4ac(0x33a)]()),_0x5d9010=_0x531e5a[_0x45b4ac(0x1ed)](countByStatus,_0x40991b);if(_0x531e5a['pFkBx'](_0x6a8a69[_0x45b4ac(0x2aa)],0x0)&&_0x6a8a69['every'](_0x76e681=>/(^|\/)(readme|docs?|changelog)/[_0x45b4ac(0x2be)](_0x76e681)||_0x76e681['endsWith'](_0x45b4ac(0x2bd)))){if(_0x531e5a[_0x45b4ac(0x208)](_0x531e5a['JNXRO'],_0x45b4ac(0x2ec)))return _0x531e5a[_0x45b4ac(0x224)];else{_0x2d565c[_0x45b4ac(0x27c)](_0x5b8f3e(_0x45b4ac(0x226),_0x531e5a[_0x45b4ac(0x216)]));return;}}if(_0x6a8a69[_0x45b4ac(0x2aa)]>0x0&&_0x6a8a69[_0x45b4ac(0x1eb)](_0x585c55=>/(^|\/)(test|tests|__tests__|spec)/['test'](_0x585c55)||/\.(spec|test)\./[_0x45b4ac(0x2be)](_0x585c55)))return _0x45b4ac(0x2be);if(_0x531e5a[_0x45b4ac(0x350)](_0x5d9010[_0x45b4ac(0x24a)],0x0)&&_0x531e5a[_0x45b4ac(0x2ed)](_0x5d9010[_0x45b4ac(0x325)],0x0)&&_0x531e5a[_0x45b4ac(0x2ed)](_0x5d9010['modified'],0x0))return _0x531e5a[_0x45b4ac(0x251)];if(_0x531e5a['lKdnN'](_0x5d9010[_0x45b4ac(0x325)],_0x5d9010['modified'])&&_0x531e5a[_0x45b4ac(0x23c)](_0x5d9010[_0x45b4ac(0x325)],0x0))return _0x531e5a['bGOnu'];if(_0x531e5a[_0x45b4ac(0x23c)](_0x5d9010[_0x45b4ac(0x2e3)],0x0)&&_0x531e5a[_0x45b4ac(0x2ba)](_0x40991b[_0x45b4ac(0x2a4)][_0x45b4ac(0x32e)+'ns'],_0x40991b[_0x45b4ac(0x2a4)][_0x45b4ac(0x233)+'s']))return _0x531e5a['hHovx'];return _0x531e5a[_0x45b4ac(0x33e)];}function summarizeChanges(_0x5b83ce){const _0x414108=_0x1dff,_0x306e7a={'BmEMu':function(_0x41bf70,_0x104c0d){return _0x41bf70(_0x104c0d);},'weFln':function(_0x262613,_0x30de03){return _0x262613>_0x30de03;},'hfQYZ':function(_0x3bb098,_0x1c39e9){return _0x3bb098-_0x1c39e9;}},_0x7d08dc=_0x306e7a['BmEMu'](countByStatus,_0x5b83ce),_0x4613a3=_0x5b83ce[_0x414108(0x276)]['slice'](0x0,0x3)[_0x414108(0x22b)](_0x2c0e11=>_0x2c0e11[_0x414108(0x2f7)]),_0x33297e=_0x306e7a[_0x414108(0x324)](_0x5b83ce['files']['length'],0x3)?_0x4613a3[_0x414108(0x2b7)](',\x20')+'\x20+'+_0x306e7a[_0x414108(0x2b3)](_0x5b83ce[_0x414108(0x276)][_0x414108(0x2aa)],0x3)+_0x414108(0x31d):_0x4613a3[_0x414108(0x2b7)](',\x20');return _0x5b83ce[_0x414108(0x2a4)][_0x414108(0x278)+'t']+(_0x414108(0x25f)+_0x414108(0x241))+_0x7d08dc[_0x414108(0x325)]+'\x20added,\x20'+_0x7d08dc['modified']+(_0x414108(0x2c8)+_0x414108(0x32d))+_0x7d08dc[_0x414108(0x24a)]+('\x20deleted'+',\x20')+_0x7d08dc[_0x414108(0x30e)]+(_0x414108(0x2a7)+_0x414108(0x200))+_0x5b83ce[_0x414108(0x2a4)]['insertio'+'ns']+(_0x414108(0x34e)+_0x414108(0x293))+_0x5b83ce[_0x414108(0x2a4)][_0x414108(0x233)+'s']+(_0x414108(0x2d3)+_0x414108(0x1f2))+(_0x33297e||_0x414108(0x265)+_0x414108(0x22f)+_0x414108(0x26f));}function formatStagedFiles(_0x51ce68){const _0x3f9367=_0x1dff;return _0x51ce68['files'][_0x3f9367(0x22b)](_0xfe63cf=>'-\x20'+_0xfe63cf[_0x3f9367(0x1ee)]+'\x20'+_0xfe63cf['path'])[_0x3f9367(0x2b7)]('\x0a');}function runOptionalChecks(){const _0x5cdb56=_0x1dff,_0x3e412={'fjYgI':function(_0x36c27d,_0x3fc6b4,_0x1eacfa,_0x118ec9){return _0x36c27d(_0x3fc6b4,_0x1eacfa,_0x118ec9);},'wGogz':_0x5cdb56(0x34c),'FEoPn':_0x5cdb56(0x213),'QAXxd':'--stat','fQdcQ':_0x5cdb56(0x2c5),'ObBJl':_0x5cdb56(0x296),'mxHZP':function(_0x370f09,_0x2bdf6e){return _0x370f09>_0x2bdf6e;},'FIFwa':function(_0x308194,_0x31dd2a){return _0x308194+_0x31dd2a;},'jcZAm':_0x5cdb56(0x29a)+_0x5cdb56(0x2ee),'bHyiv':function(_0x58c870,_0x1bfd0d){return _0x58c870===_0x1bfd0d;},'GsMcZ':_0x5cdb56(0x2ae),'Epvnn':_0x5cdb56(0x2ca),'KZnHs':_0x5cdb56(0x2fa),'lCkRw':'lint','kGGKV':_0x5cdb56(0x26d),'CAKIm':_0x5cdb56(0x2f2)+_0x5cdb56(0x28b),'HLqCK':_0x5cdb56(0x2be),'IwBCK':function(_0x5d2afd,_0x36df1a,_0x2174c5){return _0x5d2afd(_0x36df1a,_0x2174c5);},'IEROy':'CHECK','mPdEo':function(_0x542dd2,_0x3db06e){return _0x542dd2===_0x3db06e;},'WtFXo':_0x5cdb56(0x2b9),'Ijabl':function(_0x5da92b,_0x981d15,_0x137946){return _0x5da92b(_0x981d15,_0x137946);},'HAbEx':function(_0x3ac408,_0x2b8bc4){return _0x3ac408(_0x2b8bc4);}},_0x450b88=_0x3e412[_0x5cdb56(0x307)](process[_0x5cdb56(0x218)],_0x3e412['GsMcZ'])?_0x3e412[_0x5cdb56(0x314)]:_0x3e412[_0x5cdb56(0x305)],_0x39d71a=[{'label':_0x3e412[_0x5cdb56(0x298)],'args':[_0x3e412[_0x5cdb56(0x20b)],_0x5cdb56(0x2b8),_0x3e412[_0x5cdb56(0x210)]]},{'label':_0x3e412[_0x5cdb56(0x348)],'args':[_0x3e412['kGGKV'],'test',_0x5cdb56(0x2f2)+_0x5cdb56(0x28b)]}];for(const _0x3d0fa2 of _0x39d71a){console[_0x5cdb56(0x27c)](_0x3e412[_0x5cdb56(0x32a)](info,_0x3e412[_0x5cdb56(0x238)],'Running\x20'+_0x3d0fa2[_0x5cdb56(0x263)]+_0x5cdb56(0x2a9)));try{if(_0x3e412[_0x5cdb56(0x252)](_0x3e412[_0x5cdb56(0x2e7)],_0x5cdb56(0x328))){const _0x168179=_0x3e412[_0x5cdb56(0x2ce)](_0x59fb12,_0x3e412[_0x5cdb56(0x329)],[_0x3e412['FEoPn'],_0x3e412[_0x5cdb56(0x342)],_0x3e412[_0x5cdb56(0x268)]],{'stdio':_0x3e412['ObBJl']})[_0x5cdb56(0x2d6)]()['trim']();_0x3f9930=_0x3e412['mxHZP'](_0x168179['length'],_0x10defd)?_0x3e412['FIFwa'](_0x168179[_0x5cdb56(0x1ec)](0x0,_0x42772f),_0x3e412['jcZAm']):_0x168179;}else _0x3e412[_0x5cdb56(0x2ce)](execFileSync,_0x450b88,_0x3d0fa2[_0x5cdb56(0x2c6)],{'stdio':_0x5cdb56(0x330)}),console[_0x5cdb56(0x27c)](_0x3e412['Ijabl'](ok,'OK',_0x3d0fa2[_0x5cdb56(0x263)]+(_0x5cdb56(0x249)+_0x5cdb56(0x229))));}catch{_0x3e412[_0x5cdb56(0x239)](failAndExit,_0x3d0fa2[_0x5cdb56(0x263)]+(_0x5cdb56(0x2d4)+'\x20Abortin'+_0x5cdb56(0x294)+'.'));}}}async function maybePushCurrentBranch(){const _0x33ce53=_0x1dff,_0x4a123b={'cyFhi':'Failed\x20t'+_0x33ce53(0x29e)+_0x33ce53(0x323)+_0x33ce53(0x34a)+_0x33ce53(0x30f)+_0x33ce53(0x21b)+_0x33ce53(0x23d),'dzbJN':function(_0x2b84e9){return _0x2b84e9();},'FbNKx':function(_0x20541b,_0x448a76){return _0x20541b(_0x448a76);},'wCAQe':function(_0x431a45,_0x21185c,_0x489c38,_0x1bb3e0){return _0x431a45(_0x21185c,_0x489c38,_0x1bb3e0);},'VXTTp':_0x33ce53(0x34c),'HxbdS':_0x33ce53(0x346),'FrcXM':_0x33ce53(0x330),'rzoJT':function(_0x3fc7f8,_0x34e284,_0x7ec3cc){return _0x3fc7f8(_0x34e284,_0x7ec3cc);},'amCSz':'teoRM','MBmNM':'SKIPPED','uDjVg':function(_0x5f599e,_0x3345e2,_0x45a45f,_0x1371b9){return _0x5f599e(_0x3345e2,_0x45a45f,_0x1371b9);},'Tmunz':_0x33ce53(0x214)+_0x33ce53(0x21d)},_0x513a5a=_0x4a123b[_0x33ce53(0x2b5)](getCurrentBranch),_0x516d7b=getUpstreamInfo();if(_0x516d7b){const _0x5bf124=await _0x4a123b['FbNKx'](askConfirmation,'Push\x20cur'+_0x33ce53(0x254)+'nch\x20\x22'+_0x513a5a+_0x33ce53(0x237)+_0x516d7b[_0x33ce53(0x220)]+(_0x33ce53(0x242)+_0x33ce53(0x2b0)));if(!_0x5bf124)return;try{_0x4a123b[_0x33ce53(0x1fe)](execFileSync,_0x4a123b[_0x33ce53(0x1f6)],[_0x4a123b['HxbdS'],_0x516d7b[_0x33ce53(0x317)],_0x513a5a+':'+_0x516d7b[_0x33ce53(0x25c)]],{'stdio':_0x4a123b[_0x33ce53(0x202)]}),console[_0x33ce53(0x27c)](_0x4a123b[_0x33ce53(0x2f1)](ok,'OK',_0x33ce53(0x288)+_0x33ce53(0x1f0)+'o\x20'+_0x516d7b[_0x33ce53(0x220)]+'.'));}catch{failAndExit(_0x33ce53(0x24e)+_0x33ce53(0x261)+'o\x20'+_0x516d7b[_0x33ce53(0x220)]+'.');}return;}const _0x38a410=_0x4a123b[_0x33ce53(0x2b5)](getDefaultRemote);if(!_0x38a410){if(_0x4a123b[_0x33ce53(0x29d)]===_0x4a123b[_0x33ce53(0x29d)]){console[_0x33ce53(0x27c)](warn(_0x4a123b[_0x33ce53(0x337)],_0x33ce53(0x20c)+_0x33ce53(0x34f)+'nfigured'+_0x33ce53(0x2c4)+'ot\x20avail'+_0x33ce53(0x2e0)));return;}else _0x43ec8d(_0x4a123b[_0x33ce53(0x2fc)]);}const _0x4ae2ca=await _0x4a123b['FbNKx'](askConfirmation,_0x33ce53(0x312)+_0x33ce53(0x250)+_0x33ce53(0x25e)+'\x22'+_0x513a5a+_0x33ce53(0x237)+_0x38a410+'/'+_0x513a5a+(_0x33ce53(0x2db)+_0x33ce53(0x355)+_0x33ce53(0x2a6)+_0x33ce53(0x33b)));if(!_0x4ae2ca)return;try{_0x4a123b['uDjVg'](execFileSync,_0x33ce53(0x34c),['push',_0x4a123b[_0x33ce53(0x2c3)],_0x38a410,_0x513a5a],{'stdio':_0x4a123b[_0x33ce53(0x202)]}),console[_0x33ce53(0x27c)](_0x4a123b[_0x33ce53(0x2f1)](ok,'OK',_0x33ce53(0x288)+'pleted\x20a'+_0x33ce53(0x2c7)+_0x33ce53(0x30c)+_0x33ce53(0x2a8)+_0x38a410+'/'+_0x513a5a+').'));}catch{_0x4a123b[_0x33ce53(0x207)](failAndExit,'Failed\x20t'+'o\x20push\x20\x22'+_0x513a5a+'\x22\x20to\x20\x22'+_0x38a410+'\x22.');}}export async function generateCommit(_0x16a813={}){const _0x302c1b=_0x1dff,_0x4fbbae={'oeXmM':function(_0x476e9d,_0x15f93b){return _0x476e9d(_0x15f93b);},'wUgse':_0x302c1b(0x2f9)+_0x302c1b(0x248)+_0x302c1b(0x25d)+_0x302c1b(0x26a)+_0x302c1b(0x2b1)+_0x302c1b(0x271)+'t\x20least\x20'+_0x302c1b(0x267)+_0x302c1b(0x280),'fBmIY':_0x302c1b(0x206)+_0x302c1b(0x2a0),'hVrSY':function(_0x1ae860,_0x3e01bc){return _0x1ae860(_0x3e01bc);},'tlcrW':function(_0x480b2a,_0x27b6da,_0x1ce3e9){return _0x480b2a(_0x27b6da,_0x1ce3e9);},'UKywJ':_0x302c1b(0x2dc)+_0x302c1b(0x1f8)+_0x302c1b(0x255),'NDbyq':_0x302c1b(0x339),'PrIGO':function(_0x353176,_0x586241,_0x5d842c){return _0x353176(_0x586241,_0x5d842c);},'mUeOf':_0x302c1b(0x310)+_0x302c1b(0x2c0)+_0x302c1b(0x2cf)+_0x302c1b(0x274)+_0x302c1b(0x32c),'zMTpP':function(_0xea6f1b){return _0xea6f1b();},'vrfHW':function(_0x52e18d,_0x3dcf33){return _0x52e18d instanceof _0x3dcf33;},'QDPQm':function(_0x5229a3){return _0x5229a3();},'RMTgc':function(_0x243690,_0x4b2434){return _0x243690(_0x4b2434);},'CkXzQ':_0x302c1b(0x26c),'ahUyV':function(_0x4f0678,_0xac2e7d){return _0x4f0678===_0xac2e7d;},'JfbKj':_0x302c1b(0x2fb),'hNRLd':'liXJT','qMYXN':function(_0x11d403,_0x4d2eaf){return _0x11d403!==_0x4d2eaf;},'FuwZz':_0x302c1b(0x340)+_0x302c1b(0x27e)+_0x302c1b(0x2cd)+_0x302c1b(0x326)+_0x302c1b(0x2d8)+_0x302c1b(0x235)+_0x302c1b(0x277)+_0x302c1b(0x1f3)+'l`\x20to\x20st'+_0x302c1b(0x273)+_0x302c1b(0x211),'nTkHt':function(_0x44d34a,_0x1c0b4d){return _0x44d34a>=_0x1c0b4d;},'nowuU':function(_0x28f7e9,_0x540915){return _0x28f7e9(_0x540915);},'MbXcn':'Staged\x20f'+'iles','dVSUj':function(_0x520a11){return _0x520a11();},'ttZBf':function(_0x1b87f3,_0x143a54){return _0x1b87f3(_0x143a54);},'mgBYB':function(_0x8437f2,_0x8f8306,_0x4a54d7){return _0x8437f2(_0x8f8306,_0x4a54d7);},'yNwRD':_0x302c1b(0x30a),'hoymB':function(_0x3506b2,_0x4fa782){return _0x3506b2(_0x4fa782);},'wVzMh':'2.\x20SUGGE'+'ST','ClCEd':_0x302c1b(0x287)+_0x302c1b(0x22e)+_0x302c1b(0x205)+_0x302c1b(0x230)+_0x302c1b(0x2c9)+'.','iZhpo':_0x302c1b(0x24e)+_0x302c1b(0x352)+'te\x20commi'+'t\x20messag'+'e.','ZbbMS':_0x302c1b(0x2a1)+_0x302c1b(0x2b4)+'ey\x20and\x20n'+_0x302c1b(0x240)+_0x302c1b(0x2dd)+_0x302c1b(0x2af)+_0x302c1b(0x31b)+'n.','yVCmz':_0x302c1b(0x2ea),'IHcGw':'VELpM','ISrZu':_0x302c1b(0x227)+_0x302c1b(0x23f),'oMvDw':function(_0x8bee2a,_0x490c86,_0x1fb860){return _0x8bee2a(_0x490c86,_0x1fb860);},'CWgCV':function(_0x2dcb7f,_0x5ae9c5,_0x12b033){return _0x2dcb7f(_0x5ae9c5,_0x12b033);},'DAxiz':_0x302c1b(0x228)+_0x302c1b(0x28a)+_0x302c1b(0x262)+_0x302c1b(0x260),'nrCET':_0x302c1b(0x302),'xhPcs':function(_0x31956f,_0x413dce,_0x53c00e){return _0x31956f(_0x413dce,_0x53c00e);},'KnHzz':_0x302c1b(0x334),'PYcJy':_0x302c1b(0x24d)+_0x302c1b(0x212)+_0x302c1b(0x320),'OAjYQ':function(_0x20dcaa,_0x577bfa,_0x3926b1,_0x541cae){return _0x20dcaa(_0x577bfa,_0x3926b1,_0x541cae);},'eiNpI':'git','ZoSrF':_0x302c1b(0x20e),'mfPNu':_0x302c1b(0x2da)+'H'};if(_0x16a813['amend'])return _0x4fbbae['QDPQm'](amendLastCommit);const _0x202433=_0x4fbbae[_0x302c1b(0x2b6)](getLLM);_0x4fbbae[_0x302c1b(0x1f1)](getGitStatus),_0x4fbbae[_0x302c1b(0x353)](section,_0x4fbbae[_0x302c1b(0x26b)]);_0x16a813[_0x302c1b(0x2c2)]&&(_0x4fbbae['ahUyV'](_0x4fbbae['JfbKj'],_0x4fbbae[_0x302c1b(0x2e8)])?_0x4fbbae['oeXmM'](_0x3113cf,_0x4fbbae[_0x302c1b(0x283)]):(_0x4fbbae[_0x302c1b(0x1f1)](stageAll),console['log'](ok('OK',_0x302c1b(0x1fa)+_0x302c1b(0x2d7)+'es\x20(git\x20'+_0x302c1b(0x306)))));const _0x58f520=_0x4fbbae[_0x302c1b(0x316)](getStagedContext,MAX_PROMPT_PATCH_CHARS);if(_0x58f520[_0x302c1b(0x276)]['length']===0x0){if(_0x4fbbae[_0x302c1b(0x269)](_0x302c1b(0x21f),_0x302c1b(0x21f))){const _0x104d4=_0x4fbbae['fBmIY'][_0x302c1b(0x258)]('|');let _0x3cc528=0x0;while(!![]){switch(_0x104d4[_0x3cc528++]){case'0':_0x4fbbae[_0x302c1b(0x2d0)](_0x22beed,[{'key':_0x302c1b(0x266),'value':_0x48ed1a}]);continue;case'1':_0x4fbbae['tlcrW'](_0x5a6521,_0x4fbbae[_0x302c1b(0x257)],_0x30136b[_0x302c1b(0x276)][_0x302c1b(0x22b)](_0x634e0b=>_0x634e0b['status']+'\x20'+_0x634e0b[_0x302c1b(0x2f7)]));continue;case'2':return;case'3':_0x2c32d9[_0x302c1b(0x27c)]();continue;case'4':_0x24b5fa(_0x4fbbae[_0x302c1b(0x297)]);continue;case'5':_0x50e1c5[_0x302c1b(0x27c)](_0x4fbbae[_0x302c1b(0x338)](_0x5b2ac7,_0x4fbbae['NDbyq'],_0x4fbbae[_0x302c1b(0x2c1)]));continue;case'6':_0xda68aa[_0x302c1b(0x27c)]();continue;}break;}}else _0x4fbbae[_0x302c1b(0x295)](failAndExit,_0x302c1b(0x1ef)+'d\x20files.',_0x4fbbae[_0x302c1b(0x22c)]);}_0x4fbbae[_0x302c1b(0x2ad)](_0x58f520['metrics'][_0x302c1b(0x278)+'t'],WARN_SPLIT_FILE_COUNT)&&_0x4fbbae['nowuU'](warnBlock,_0x58f520['metrics'][_0x302c1b(0x278)+'t']+(_0x302c1b(0x243)+_0x302c1b(0x2ab)+_0x302c1b(0x290)+_0x302c1b(0x26e)+_0x302c1b(0x232)+_0x302c1b(0x1f7)+_0x302c1b(0x264)+_0x302c1b(0x344)+_0x302c1b(0x2a2)+'leaner\x20h'+_0x302c1b(0x336)));printList(_0x4fbbae[_0x302c1b(0x309)],_0x58f520[_0x302c1b(0x276)][_0x302c1b(0x22b)](_0x3b3f22=>_0x3b3f22['status']+'\x20'+_0x3b3f22[_0x302c1b(0x2f7)]));_0x16a813[_0x302c1b(0x2bb)]&&(console[_0x302c1b(0x27c)](),_0x4fbbae['dVSUj'](runOptionalChecks));const _0x56e651=_0x4fbbae[_0x302c1b(0x203)](summarizeChanges,_0x58f520),_0x23c69e=_0x4fbbae[_0x302c1b(0x353)](detectCommitType,_0x58f520);_0x58f520[_0x302c1b(0x2a4)][_0x302c1b(0x29b)+'rs']>WARN_PROMPT_DIFF_CHARS&&_0x4fbbae[_0x302c1b(0x353)](warnBlock,'Large\x20st'+_0x302c1b(0x29f)+_0x302c1b(0x351)+_0x58f520[_0x302c1b(0x2a4)][_0x302c1b(0x29b)+'rs']+(_0x302c1b(0x347)+_0x302c1b(0x219)+_0x302c1b(0x209)+_0x302c1b(0x2e2)+_0x302c1b(0x225)+_0x302c1b(0x28f)+_0x302c1b(0x318)+_0x302c1b(0x311)+'lity\x20may'+_0x302c1b(0x221)+_0x302c1b(0x246)));const _0x270eb3=loadPrompt('commit'),_0xba06a=_0x4fbbae[_0x302c1b(0x2bf)](interpolate,_0x270eb3,{'detected_type':_0x23c69e,'staged_files':_0x4fbbae[_0x302c1b(0x316)](formatStagedFiles,_0x58f520),'summary':_0x56e651,'diff_stat':_0x58f520['diffStat']||_0x4fbbae['yNwRD'],'patch':''+(_0x58f520[_0x302c1b(0x2df)]||_0x302c1b(0x30a))+(_0x58f520['metrics'][_0x302c1b(0x2d9)+'d']?'\x0a(trunca'+_0x302c1b(0x2ee):'')});_0x4fbbae[_0x302c1b(0x2e4)](section,_0x4fbbae[_0x302c1b(0x259)]);const _0x1d13a2=await _0x4fbbae[_0x302c1b(0x2bf)](withProgress,_0x4fbbae[_0x302c1b(0x270)],()=>_0x202433[_0x302c1b(0x20f)](_0xba06a)),_0x42d8dd=_0x4fbbae['hoymB'](extractMessageText,_0x1d13a2[_0x302c1b(0x2a3)]);!_0x42d8dd&&_0x4fbbae[_0x302c1b(0x295)](failAndExit,_0x4fbbae['iZhpo'],_0x4fbbae['ZbbMS']);_0x4fbbae[_0x302c1b(0x353)](printKeyValues,[{'key':'Suggeste'+_0x302c1b(0x321),'value':_0x42d8dd}]);if(_0x16a813['dryRun']){if(_0x4fbbae[_0x302c1b(0x1f9)]!==_0x4fbbae['IHcGw']){const _0x2891e2=_0x4fbbae[_0x302c1b(0x2a5)][_0x302c1b(0x258)]('|');let _0x38eff0=0x0;while(!![]){switch(_0x2891e2[_0x38eff0++]){case'0':return;case'1':_0x4fbbae['RMTgc'](printKeyValues,[{'key':'Message','value':_0x42d8dd}]);continue;case'2':console[_0x302c1b(0x27c)](_0x4fbbae[_0x302c1b(0x2e9)](info,_0x4fbbae[_0x302c1b(0x297)],_0x302c1b(0x310)+'t\x20was\x20cr'+_0x302c1b(0x2cf)+_0x302c1b(0x274)+_0x302c1b(0x32c)));continue;case'3':console[_0x302c1b(0x27c)]();continue;case'4':_0x4fbbae[_0x302c1b(0x2bf)](printList,_0x4fbbae[_0x302c1b(0x257)],_0x58f520[_0x302c1b(0x276)][_0x302c1b(0x22b)](_0xbb40eb=>_0xbb40eb[_0x302c1b(0x1ee)]+'\x20'+_0xbb40eb[_0x302c1b(0x2f7)]));continue;case'5':console[_0x302c1b(0x27c)]();continue;case'6':section(_0x4fbbae['NDbyq']);continue;}break;}}else try{return ygAAjF['zMTpP'](_0x408bac);}catch(_0x31c45c){const _0x33927c=ygAAjF[_0x302c1b(0x234)](_0x31c45c,_0x34c912)?_0x31c45c['message']:ygAAjF[_0x302c1b(0x2d0)](_0x104f20,_0x31c45c);ygAAjF[_0x302c1b(0x316)](_0xb3c812,_0x33927c);}}console[_0x302c1b(0x27c)]();const _0x58130b=await _0x4fbbae[_0x302c1b(0x1ff)](askConfirmation,_0x4fbbae[_0x302c1b(0x300)],{'defaultYes':!![]});if(!_0x58130b){if(_0x4fbbae[_0x302c1b(0x269)](_0x4fbbae[_0x302c1b(0x22d)],_0x302c1b(0x302)))_0x4fbbae[_0x302c1b(0x1f1)](_0x27b9f7),_0xad5e3['log'](_0x4fbbae['tlcrW'](_0x4a6fc2,'OK',_0x302c1b(0x1fa)+_0x302c1b(0x2d7)+'es\x20(git\x20'+_0x302c1b(0x306)));else{console[_0x302c1b(0x27c)](_0x4fbbae[_0x302c1b(0x31f)](warn,_0x4fbbae['KnHzz'],_0x4fbbae['PYcJy']));return;}}try{_0x4fbbae[_0x302c1b(0x284)](execFileSync,_0x4fbbae[_0x302c1b(0x2e6)],[_0x4fbbae[_0x302c1b(0x25a)],'-m',_0x42d8dd],{'stdio':_0x302c1b(0x330)});}catch{failAndExit(_0x302c1b(0x24e)+_0x302c1b(0x29e)+_0x302c1b(0x323)+_0x302c1b(0x34a)+_0x302c1b(0x30f)+_0x302c1b(0x21b)+_0x302c1b(0x23d));}_0x4fbbae[_0x302c1b(0x2d0)](section,_0x4fbbae[_0x302c1b(0x332)]),await maybePushCurrentBranch();}async function amendLastCommit(){const _0x30aa2f=_0x1dff,_0x438d3e={'HftrL':function(_0x46042a,_0x514477,_0x520d82,_0x3678e9){return _0x46042a(_0x514477,_0x520d82,_0x3678e9);},'rqVsC':_0x30aa2f(0x34c),'jQMwE':_0x30aa2f(0x256)+'e','NkhhG':_0x30aa2f(0x319),'drinh':_0x30aa2f(0x296),'VlJYZ':function(_0x371582,_0x4f9d2f,_0x549d43,_0x2757d9){return _0x371582(_0x4f9d2f,_0x549d43,_0x2757d9);},'dThKP':function(_0x1bae34,_0x530380){return _0x1bae34(_0x530380);},'loFQz':function(_0x24c30b){return _0x24c30b();},'fpjmu':_0x30aa2f(0x2c5),'pOGrr':function(_0xddb9da,_0xd42136,_0x4062c7,_0x507cb8){return _0xddb9da(_0xd42136,_0x4062c7,_0x507cb8);},'DarSU':_0x30aa2f(0x27c),'dNBMS':_0x30aa2f(0x30d)+_0x30aa2f(0x23a),'CuKqC':function(_0x59833e,_0x540f81){return _0x59833e!==_0x540f81;},'avBiP':function(_0x1ac558,_0x33ee09){return _0x1ac558(_0x33ee09);},'aEHYk':function(_0x3e5151,_0x3ae5a7,_0x26d2b0,_0x10b1d9){return _0x3e5151(_0x3ae5a7,_0x26d2b0,_0x10b1d9);},'ZDYdS':_0x30aa2f(0x213),'LYDBv':'--stat','GNnhc':function(_0x6076a5,_0x3f54ff){return _0x6076a5>_0x3f54ff;},'oWZpE':function(_0x4000a2,_0x31bd8e){return _0x4000a2+_0x31bd8e;},'XTcyX':_0x30aa2f(0x29a)+'ted)','vPylO':_0x30aa2f(0x29c)+'ot\x20read\x20'+_0x30aa2f(0x345),'uyYLj':'AMEND','FOSEf':function(_0x559724,_0x3fbdde){return _0x559724(_0x3fbdde);},'FaNCF':_0x30aa2f(0x281)+_0x30aa2f(0x1fd),'NsKrH':function(_0x386766,_0x3f9829,_0x21b238){return _0x386766(_0x3f9829,_0x21b238);},'gGHqB':_0x30aa2f(0x217)+_0x30aa2f(0x23e),'AoNQg':'refactor','AvffD':_0x30aa2f(0x24e)+'o\x20genera'+'te\x20amend'+_0x30aa2f(0x304)+'t\x20messag'+'e.','RnEwI':_0x30aa2f(0x28d)+_0x30aa2f(0x31e),'AiSMH':_0x30aa2f(0x204)+_0x30aa2f(0x32f)+_0x30aa2f(0x201)+_0x30aa2f(0x24b)+_0x30aa2f(0x244),'GJzRe':_0x30aa2f(0x334),'EAUfg':_0x30aa2f(0x24d)+_0x30aa2f(0x301)+_0x30aa2f(0x279),'cgTgF':_0x30aa2f(0x308),'YePPu':_0x30aa2f(0x24c),'yeijf':function(_0x54c17c,_0x396a28,_0x501504,_0x440611){return _0x54c17c(_0x396a28,_0x501504,_0x440611);},'kbscV':_0x30aa2f(0x20e),'oEErw':_0x30aa2f(0x327),'sazOl':_0x30aa2f(0x330),'xRBAR':'AMENDED','AhMnU':'Last\x20com'+_0x30aa2f(0x27f)+_0x30aa2f(0x341)+'ted.','jlRwS':function(_0xe56055,_0x2d54ce){return _0xe56055(_0x2d54ce);},'vmLZo':'Failed\x20t'+'o\x20amend\x20'+_0x30aa2f(0x21c)},_0x525b04=_0x438d3e[_0x30aa2f(0x22a)](getLLM);let _0x1ef939,_0x1b346e;try{_0x1ef939=execFileSync(_0x438d3e[_0x30aa2f(0x32b)],[_0x438d3e['jQMwE'],_0x438d3e[_0x30aa2f(0x354)],_0x438d3e[_0x30aa2f(0x2b2)]],{'stdio':_0x438d3e[_0x30aa2f(0x28c)]})['toString']()['trim'](),_0x1b346e=_0x438d3e[_0x30aa2f(0x20a)](execFileSync,_0x30aa2f(0x34c),[_0x438d3e[_0x30aa2f(0x222)],'-1',_0x438d3e[_0x30aa2f(0x2de)]],{'stdio':_0x438d3e[_0x30aa2f(0x28c)]})[_0x30aa2f(0x2d6)]()[_0x30aa2f(0x223)]();}catch{_0x438d3e['CuKqC'](_0x30aa2f(0x2bc),_0x30aa2f(0x2bc))?(_0x1b8394=_0x438d3e[_0x30aa2f(0x2cb)](_0x5648df,_0x438d3e[_0x30aa2f(0x32b)],[_0x438d3e[_0x30aa2f(0x2eb)],_0x438d3e['NkhhG'],_0x30aa2f(0x2c5)],{'stdio':_0x438d3e[_0x30aa2f(0x28c)]})[_0x30aa2f(0x2d6)]()['trim'](),_0x5f57d2=_0x438d3e['VlJYZ'](_0x238c89,_0x438d3e[_0x30aa2f(0x32b)],[_0x30aa2f(0x27c),'-1','--pretty'+_0x30aa2f(0x23a)],{'stdio':_0x438d3e[_0x30aa2f(0x28c)]})['toString']()[_0x30aa2f(0x223)]()):_0x438d3e[_0x30aa2f(0x33d)](failAndExit,_0x30aa2f(0x2f9)+'t\x20read\x20l'+_0x30aa2f(0x25d)+_0x30aa2f(0x26a)+_0x30aa2f(0x2b1)+_0x30aa2f(0x271)+'t\x20least\x20'+_0x30aa2f(0x267)+'it.');}let _0x21aacd;try{const _0x220365=_0x438d3e['aEHYk'](execFileSync,_0x438d3e['rqVsC'],[_0x438d3e['ZDYdS'],_0x438d3e[_0x30aa2f(0x333)],_0x438d3e['fpjmu']],{'stdio':_0x438d3e['drinh']})[_0x30aa2f(0x2d6)]()['trim']();_0x21aacd=_0x438d3e[_0x30aa2f(0x285)](_0x220365[_0x30aa2f(0x2aa)],MAX_PROMPT_PATCH_CHARS)?_0x438d3e[_0x30aa2f(0x31c)](_0x220365[_0x30aa2f(0x1ec)](0x0,MAX_PROMPT_PATCH_CHARS),_0x438d3e[_0x30aa2f(0x275)]):_0x220365;}catch{_0x21aacd=_0x438d3e[_0x30aa2f(0x21a)];}_0x438d3e['dThKP'](section,_0x438d3e[_0x30aa2f(0x231)]),_0x438d3e[_0x30aa2f(0x33c)](printKeyValues,[{'key':_0x438d3e[_0x30aa2f(0x2e1)],'value':_0x438d3e[_0x30aa2f(0x282)](style,_0x1ef939,ui[_0x30aa2f(0x2f0)])},{'key':_0x438d3e['gGHqB'],'value':_0x438d3e[_0x30aa2f(0x282)](style,_0x1b346e,ui['dim'])}]);const _0x49d5a2=_0x438d3e[_0x30aa2f(0x33d)](loadPrompt,_0x30aa2f(0x20e)),_0x4cf080=interpolate(_0x49d5a2,{'detected_type':_0x438d3e[_0x30aa2f(0x20d)],'staged_files':_0x30aa2f(0x2f3)+_0x30aa2f(0x289)+_0x30aa2f(0x315),'summary':_0x30aa2f(0x2f8)+_0x30aa2f(0x1f5)+_0x30aa2f(0x331)+_0x1b346e,'diff_stat':_0x21aacd,'patch':_0x21aacd}),_0x1e41c3=await _0x438d3e['NsKrH'](withProgress,_0x30aa2f(0x30b)+_0x30aa2f(0x28e)+_0x30aa2f(0x2ff)+'r\x20messag'+_0x30aa2f(0x27a),()=>_0x525b04[_0x30aa2f(0x20f)](_0x4cf080)),_0x2353f7=extractMessageText(_0x1e41c3[_0x30aa2f(0x2a3)]);!_0x2353f7&&('BqCzs'==='BqCzs'?_0x438d3e[_0x30aa2f(0x33c)](failAndExit,_0x438d3e[_0x30aa2f(0x253)]):fzDdcb[_0x30aa2f(0x299)](_0x4f15db,_0x371e97[_0x30aa2f(0x2a4)]['fileCoun'+'t']+(_0x30aa2f(0x243)+_0x30aa2f(0x2ab)+_0x30aa2f(0x290)+_0x30aa2f(0x26e)+_0x30aa2f(0x232)+_0x30aa2f(0x1f7)+'multiple'+'\x20commits'+_0x30aa2f(0x2a2)+_0x30aa2f(0x245)+_0x30aa2f(0x336))));console['log'](),printKeyValues([{'key':_0x438d3e['RnEwI'],'value':_0x2353f7}]),console['log']();const _0x4c59fb=await _0x438d3e[_0x30aa2f(0x282)](askConfirmation,_0x438d3e['AiSMH'],{'defaultYes':!![]});if(!_0x4c59fb){console[_0x30aa2f(0x27c)](warn(_0x438d3e[_0x30aa2f(0x349)],_0x438d3e[_0x30aa2f(0x27b)]));return;}try{_0x438d3e[_0x30aa2f(0x2ac)]!==_0x438d3e['YePPu']?(_0x438d3e['yeijf'](execFileSync,_0x438d3e['rqVsC'],[_0x438d3e[_0x30aa2f(0x2d5)],_0x438d3e[_0x30aa2f(0x2f6)],'-m',_0x2353f7],{'stdio':_0x438d3e[_0x30aa2f(0x21e)]}),console['log'](_0x438d3e[_0x30aa2f(0x282)](ok,_0x438d3e[_0x30aa2f(0x2d2)],_0x438d3e[_0x30aa2f(0x356)]))):fzDdcb[_0x30aa2f(0x299)](_0x1b1961,_0x30aa2f(0x24e)+_0x30aa2f(0x261)+'o\x20'+_0x3b5083[_0x30aa2f(0x220)]+'.');}catch{_0x438d3e['jlRwS'](failAndExit,_0x438d3e[_0x30aa2f(0x303)]);}}
|