trimprompt 1.0.45 → 1.0.47

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.
@@ -1 +1 @@
1
- 'use strict';const a0_0xce597b=a0_0x12c1;(function(_0x18b230,_0x8b1558){const _0x204657=a0_0x12c1,_0xedea5d=_0x18b230();while(!![]){try{const _0x4b0dba=parseInt(_0x204657(0x18d))/0x1*(-parseInt(_0x204657(0x17e))/0x2)+parseInt(_0x204657(0x191))/0x3*(parseInt(_0x204657(0x19a))/0x4)+-parseInt(_0x204657(0x18b))/0x5*(parseInt(_0x204657(0x1ab))/0x6)+-parseInt(_0x204657(0x185))/0x7*(parseInt(_0x204657(0x1a8))/0x8)+parseInt(_0x204657(0x196))/0x9*(-parseInt(_0x204657(0x1a7))/0xa)+parseInt(_0x204657(0x184))/0xb+parseInt(_0x204657(0x194))/0xc;if(_0x4b0dba===_0x8b1558)break;else _0xedea5d['push'](_0xedea5d['shift']());}catch(_0x19df28){_0xedea5d['push'](_0xedea5d['shift']());}}}(a0_0x44d4,0x3b975));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0xce597b(0x192)]=stripAnsi,exports[a0_0xce597b(0x1aa)]=collapseDuplicates,exports['collapseWhitespace']=collapseWhitespace,exports[a0_0xce597b(0x1a3)]=stripComments,exports['smartCrushJson']=smartCrushJson,exports[a0_0xce597b(0x187)]=softTruncate;function stripAnsi(_0x2b1790){const _0x40c728=a0_0xce597b,_0x4ba5c5=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x2b1790[_0x40c728(0x1ac)](_0x4ba5c5,'');}function a0_0x12c1(_0x20d8ce,_0x5a1c15){_0x20d8ce=_0x20d8ce-0x17d;const _0x44d4ed=a0_0x44d4();let _0x12c12b=_0x44d4ed[_0x20d8ce];return _0x12c12b;}function collapseDuplicates(_0x21eddc){const _0x9b371=a0_0xce597b,_0x43accb=_0x21eddc['split']('\x0a');if(_0x43accb[_0x9b371(0x181)]<=0x1)return _0x21eddc;const _0x337136=[];let _0x3f3d37=_0x43accb[0x0],_0x13a866=0x1;for(let _0x5a9cf2=0x1;_0x5a9cf2<_0x43accb['length'];_0x5a9cf2++){const _0x4817a9=_0x43accb[_0x5a9cf2];_0x4817a9===_0x3f3d37&&_0x4817a9[_0x9b371(0x1a0)]()[_0x9b371(0x181)]>0x0?_0x13a866++:(_0x13a866>0x1?_0x337136['push'](_0x3f3d37+_0x9b371(0x18e)+_0x13a866+']'):_0x337136['push'](_0x3f3d37),_0x3f3d37=_0x4817a9,_0x13a866=0x1);}return _0x13a866>0x1?_0x337136[_0x9b371(0x190)](_0x3f3d37+_0x9b371(0x18e)+_0x13a866+']'):_0x337136['push'](_0x3f3d37),_0x337136[_0x9b371(0x19e)]('\x0a');}function collapseWhitespace(_0x3a9cf4){const _0x1c9c9c=a0_0xce597b;let _0x410aa3=_0x3a9cf4[_0x1c9c9c(0x1ac)](/[ \t]+$/gm,'');return _0x410aa3=_0x410aa3[_0x1c9c9c(0x1ac)](/\n{4,}/g,'\x0a\x0a\x0a'),_0x410aa3;}function a0_0x44d4(){const _0x54c9d8=['\x0a...\x20[TrimPrompt:\x20Truncated\x20','slice','length','repository','\x20characters\x20of\x20output]\x20...\x0a','3512003YVumNI','2980649eVUlXd','toLowerCase','softTruncate','integrity','\x20more\x20rows','dev','65JqUIxK','funding','813kEAKiX','\x20[x','split','push','661809IVHCSW','stripAnsi','parse','10392684ShieFC','keys','45rdEaZg','startsWith','object','signature','4FBKBFL','test','resolved','hash','join','\x20fields,\x20showing\x20','trim','filter','bugs','stripComments','...\x20+','sha','includes','237530GjHSlq','8OKYzsV','substring','collapseDuplicates','174954yicADt','replace','stringify','586uyiqMv'];a0_0x44d4=function(){return _0x54c9d8;};return a0_0x44d4();}function stripComments(_0x2b7e5b,_0x4c44c8){const _0x3d0db9=a0_0xce597b;if(!_0x4c44c8)return _0x2b7e5b;const _0x42e30d=_0x2b7e5b[_0x3d0db9(0x18f)]('\x0a');if(_0x42e30d[_0x3d0db9(0x181)]<=0x96)return _0x2b7e5b;const _0x1e7669={'.ts':/^\s*\/\//,'.js':/^\s*\/\//,'.tsx':/^\s*\/\//,'.jsx':/^\s*\/\//,'.py':/^\s*#(?!!)/,'.rb':/^\s*#(?!!)/,'.sh':/^\s*#(?!!)/,'.go':/^\s*\/\//,'.rs':/^\s*\/\//,'.java':/^\s*\/\//,'.c':/^\s*\/\//,'.cpp':/^\s*\/\//,'.cs':/^\s*\/\//,'.swift':/^\s*\/\//,'.kt':/^\s*\/\//,'.yaml':/^\s*#(?!!)/,'.yml':/^\s*#(?!!)/},_0x47c566=_0x1e7669[_0x4c44c8['toLowerCase']()];if(!_0x47c566)return _0x2b7e5b;const _0x2b28d4=_0x42e30d[_0x3d0db9(0x1a1)](_0xfa3c19=>!_0x47c566[_0x3d0db9(0x19b)](_0xfa3c19));return _0x2b28d4[_0x3d0db9(0x19e)]('\x0a');}function smartCrushJson(_0x15c56d){const _0x4fe073=a0_0xce597b;try{const _0x1a0f58=_0x15c56d[_0x4fe073(0x1a0)]();if(!_0x1a0f58[_0x4fe073(0x197)]('['))return null;const _0x1c31d8=JSON[_0x4fe073(0x193)](_0x1a0f58);if(!Array['isArray'](_0x1c31d8)||_0x1c31d8['length']<0x3)return null;if(typeof _0x1c31d8[0x0]!==_0x4fe073(0x198)||_0x1c31d8[0x0]===null)return null;const _0xbaa195=Object[_0x4fe073(0x195)](_0x1c31d8[0x0]);if(_0xbaa195[_0x4fe073(0x181)]===0x0)return null;const _0x42c9cf=_0xbaa195['filter'](_0x2ea0da=>{const _0x2d185a=_0x4fe073,_0x1bc33d=_0x2ea0da[_0x2d185a(0x186)]();return!_0x1bc33d[_0x2d185a(0x1a6)](_0x2d185a(0x19c))&&!_0x1bc33d['includes'](_0x2d185a(0x188))&&!_0x1bc33d['includes'](_0x2d185a(0x1a5))&&!_0x1bc33d['includes'](_0x2d185a(0x19d))&&!_0x1bc33d['includes']('checksum')&&!_0x1bc33d[_0x2d185a(0x1a6)](_0x2d185a(0x199))&&!_0x1bc33d[_0x2d185a(0x1a6)](_0x2d185a(0x18a))&&_0x1bc33d!==_0x2d185a(0x18c)&&_0x1bc33d!=='engines'&&_0x1bc33d!==_0x2d185a(0x1a2)&&_0x1bc33d!==_0x2d185a(0x182);})[_0x4fe073(0x180)](0x0,0x6);if(_0x42c9cf['length']===0x0)return null;const _0xaae1a7=[];_0xaae1a7[_0x4fe073(0x190)](_0x42c9cf[_0x4fe073(0x19e)]('|'));const _0x4145d3=0x1e;for(let _0x43f9f8=0x0;_0x43f9f8<Math['min'](_0x1c31d8[_0x4fe073(0x181)],_0x4145d3);_0x43f9f8++){const _0x5af8c5=_0x42c9cf['map'](_0x2b2c23=>{const _0x4f20bd=_0x4fe073,_0x2f7969=_0x1c31d8[_0x43f9f8][_0x2b2c23];if(_0x2f7969===null||_0x2f7969===undefined)return'';if(typeof _0x2f7969===_0x4f20bd(0x198))return JSON[_0x4f20bd(0x17d)](_0x2f7969)[_0x4f20bd(0x1a9)](0x0,0x28);return String(_0x2f7969)['substring'](0x0,0x3c);});_0xaae1a7['push'](_0x5af8c5[_0x4fe073(0x19e)]('|'));}_0x1c31d8[_0x4fe073(0x181)]>_0x4145d3&&_0xaae1a7[_0x4fe073(0x190)](_0x4fe073(0x1a4)+(_0x1c31d8[_0x4fe073(0x181)]-_0x4145d3)+_0x4fe073(0x189));_0xaae1a7[_0x4fe073(0x190)]('\x0a('+_0x1c31d8[_0x4fe073(0x181)]+'\x20items,\x20'+_0xbaa195[_0x4fe073(0x181)]+_0x4fe073(0x19f)+_0x42c9cf[_0x4fe073(0x181)]+'\x20key\x20fields)');const _0x4392e8=_0xaae1a7[_0x4fe073(0x19e)]('\x0a');if(_0x4392e8[_0x4fe073(0x181)]<_0x1a0f58[_0x4fe073(0x181)])return _0x4392e8;return null;}catch{return null;}}function softTruncate(_0x582874,_0x5e03c4=0x4e20){const _0x1ff8a5=a0_0xce597b;if(_0x582874[_0x1ff8a5(0x181)]<=_0x5e03c4)return _0x582874;const _0x50a3e5=_0x582874[_0x1ff8a5(0x18f)]('\x0a');if(_0x50a3e5[_0x1ff8a5(0x181)]<=0xc8)return _0x582874;const _0x11d917=0x32,_0x27c877=0x96,_0x4802bb=_0x50a3e5[_0x1ff8a5(0x180)](0x0,_0x11d917),_0x1735d7=_0x50a3e5[_0x1ff8a5(0x180)](_0x50a3e5[_0x1ff8a5(0x181)]-_0x27c877),_0x38264a=_0x582874[_0x1ff8a5(0x181)]-(_0x4802bb['join']('\x0a')[_0x1ff8a5(0x181)]+_0x1735d7[_0x1ff8a5(0x19e)]('\x0a')[_0x1ff8a5(0x181)]);return[..._0x4802bb,_0x1ff8a5(0x17f)+_0x38264a+_0x1ff8a5(0x183),..._0x1735d7][_0x1ff8a5(0x19e)]('\x0a');}
1
+ 'use strict';function a0_0x5549(_0x455370,_0x52ecf6){_0x455370=_0x455370-0x16a;const _0x5c179b=a0_0x5c17();let _0x55491b=_0x5c179b[_0x455370];return _0x55491b;}const a0_0x387e05=a0_0x5549;(function(_0x519f14,_0x2bcba8){const _0x12c2d1=a0_0x5549,_0x221280=_0x519f14();while(!![]){try{const _0x1fd0bd=-parseInt(_0x12c2d1(0x172))/0x1*(-parseInt(_0x12c2d1(0x17a))/0x2)+parseInt(_0x12c2d1(0x179))/0x3*(-parseInt(_0x12c2d1(0x182))/0x4)+-parseInt(_0x12c2d1(0x17c))/0x5+-parseInt(_0x12c2d1(0x170))/0x6+parseInt(_0x12c2d1(0x194))/0x7*(parseInt(_0x12c2d1(0x18c))/0x8)+parseInt(_0x12c2d1(0x174))/0x9+parseInt(_0x12c2d1(0x189))/0xa;if(_0x1fd0bd===_0x2bcba8)break;else _0x221280['push'](_0x221280['shift']());}catch(_0x12653f){_0x221280['push'](_0x221280['shift']());}}}(a0_0x5c17,0x53d8d));Object[a0_0x387e05(0x186)](exports,'__esModule',{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x387e05(0x185)]=collapseDuplicates,exports[a0_0x387e05(0x184)]=collapseWhitespace,exports[a0_0x387e05(0x16c)]=stripComments,exports['smartCrushJson']=smartCrushJson,exports['softTruncate']=softTruncate;function stripAnsi(_0x310c86){const _0x448d1e=a0_0x387e05,_0xc2c221=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x310c86[_0x448d1e(0x192)](_0xc2c221,'');}function collapseDuplicates(_0x3693bf){const _0x30b5a3=a0_0x387e05,_0x5356d3=_0x3693bf[_0x30b5a3(0x188)]('\x0a');if(_0x5356d3[_0x30b5a3(0x18b)]<=0x1)return _0x3693bf;const _0x372c35=[];let _0x587f97=_0x5356d3[0x0],_0x27e1d0=0x1;for(let _0x4881e7=0x1;_0x4881e7<_0x5356d3[_0x30b5a3(0x18b)];_0x4881e7++){const _0x499709=_0x5356d3[_0x4881e7];_0x499709===_0x587f97&&_0x499709[_0x30b5a3(0x16b)]()[_0x30b5a3(0x18b)]>0x0?_0x27e1d0++:(_0x27e1d0>0x1?_0x372c35['push'](_0x587f97+_0x30b5a3(0x18e)+_0x27e1d0+']'):_0x372c35[_0x30b5a3(0x178)](_0x587f97),_0x587f97=_0x499709,_0x27e1d0=0x1);}return _0x27e1d0>0x1?_0x372c35[_0x30b5a3(0x178)](_0x587f97+_0x30b5a3(0x18e)+_0x27e1d0+']'):_0x372c35['push'](_0x587f97),_0x372c35[_0x30b5a3(0x177)]('\x0a');}function collapseWhitespace(_0x3fa46d){const _0x3b9d25=a0_0x387e05;let _0x5668f0=_0x3fa46d[_0x3b9d25(0x192)](/[ \t]+$/gm,'');return _0x5668f0=_0x5668f0[_0x3b9d25(0x192)](/\n{4,}/g,_0x3b9d25(0x190)),_0x5668f0;}function stripComments(_0x2d72b2,_0x3660c1){const _0x33d293=a0_0x387e05;if(!_0x3660c1)return _0x2d72b2;const _0x1504d3=_0x2d72b2[_0x33d293(0x188)]('\x0a');if(_0x1504d3['length']<=0x96)return _0x2d72b2;const _0xdce58c={'.ts':/^\s*\/\//,'.js':/^\s*\/\//,'.tsx':/^\s*\/\//,'.jsx':/^\s*\/\//,'.py':/^\s*#(?!!)/,'.rb':/^\s*#(?!!)/,'.sh':/^\s*#(?!!)/,'.go':/^\s*\/\//,'.rs':/^\s*\/\//,'.java':/^\s*\/\//,'.c':/^\s*\/\//,'.cpp':/^\s*\/\//,'.cs':/^\s*\/\//,'.swift':/^\s*\/\//,'.kt':/^\s*\/\//,'.yaml':/^\s*#(?!!)/,'.yml':/^\s*#(?!!)/},_0x368086=_0xdce58c[_0x3660c1[_0x33d293(0x193)]()];if(!_0x368086)return _0x2d72b2;const _0x3e4a55=_0x1504d3[_0x33d293(0x173)](_0x33327e=>!_0x368086[_0x33d293(0x16a)](_0x33327e));return _0x3e4a55[_0x33d293(0x177)]('\x0a');}function smartCrushJson(_0x2f4207){const _0x18b624=a0_0x387e05;try{const _0x22152f=_0x2f4207[_0x18b624(0x16b)]();if(!_0x22152f[_0x18b624(0x17e)]('['))return null;const _0x507dcd=JSON['parse'](_0x22152f);if(!Array[_0x18b624(0x17d)](_0x507dcd)||_0x507dcd[_0x18b624(0x18b)]<0x3)return null;if(typeof _0x507dcd[0x0]!==_0x18b624(0x17f)||_0x507dcd[0x0]===null)return null;const _0x10193f=Object[_0x18b624(0x18f)](_0x507dcd[0x0]);if(_0x10193f['length']===0x0)return null;const _0x1368ec=_0x10193f[_0x18b624(0x173)](_0x345fbf=>{const _0xaf47bc=_0x18b624,_0x3067e4=_0x345fbf[_0xaf47bc(0x193)]();return!_0x3067e4['includes']('resolved')&&!_0x3067e4['includes']('integrity')&&!_0x3067e4[_0xaf47bc(0x175)](_0xaf47bc(0x17b))&&!_0x3067e4[_0xaf47bc(0x175)](_0xaf47bc(0x16d))&&!_0x3067e4[_0xaf47bc(0x175)](_0xaf47bc(0x187))&&!_0x3067e4['includes']('signature')&&!_0x3067e4[_0xaf47bc(0x175)](_0xaf47bc(0x183))&&_0x3067e4!=='funding'&&_0x3067e4!==_0xaf47bc(0x195)&&_0x3067e4!=='bugs'&&_0x3067e4!==_0xaf47bc(0x18a);})[_0x18b624(0x191)](0x0,0x6);if(_0x1368ec[_0x18b624(0x18b)]===0x0)return null;const _0x2c5cfd=[];_0x2c5cfd['push'](_0x1368ec['join']('|'));const _0x4cd5a1=0x1e;for(let _0x130d36=0x0;_0x130d36<Math[_0x18b624(0x180)](_0x507dcd[_0x18b624(0x18b)],_0x4cd5a1);_0x130d36++){const _0x259e1b=_0x1368ec[_0x18b624(0x16e)](_0x5f4532=>{const _0x2e74bf=_0x18b624,_0x44785f=_0x507dcd[_0x130d36][_0x5f4532];if(_0x44785f===null||_0x44785f===undefined)return'';if(typeof _0x44785f==='object')return JSON[_0x2e74bf(0x176)](_0x44785f)[_0x2e74bf(0x181)](0x0,0x28);return String(_0x44785f)[_0x2e74bf(0x181)](0x0,0x3c);});_0x2c5cfd[_0x18b624(0x178)](_0x259e1b[_0x18b624(0x177)]('|'));}_0x507dcd[_0x18b624(0x18b)]>_0x4cd5a1&&_0x2c5cfd[_0x18b624(0x178)](_0x18b624(0x196)+(_0x507dcd[_0x18b624(0x18b)]-_0x4cd5a1)+_0x18b624(0x16f));_0x2c5cfd['push']('\x0a('+_0x507dcd['length']+_0x18b624(0x171)+_0x10193f['length']+'\x20fields,\x20showing\x20'+_0x1368ec[_0x18b624(0x18b)]+_0x18b624(0x18d));const _0x32c90a=_0x2c5cfd[_0x18b624(0x177)]('\x0a');if(_0x32c90a['length']<_0x22152f[_0x18b624(0x18b)])return _0x32c90a;return null;}catch{return null;}}function a0_0x5c17(){const _0x2dcc59=['collapseWhitespace','collapseDuplicates','defineProperty','checksum','split','2163240meSOTT','repository','length','8kEkMLN','\x20key\x20fields)','\x20[x','keys','\x0a\x0a\x0a','slice','replace','toLowerCase','2194339eYNXll','engines','...\x20+','test','trim','stripComments','hash','map','\x20more\x20rows','2868864OpzkwL','\x20items,\x20','275630zrpFsb','filter','3369915FpgVIG','includes','stringify','join','push','12849iGEmbb','2RMikFI','sha','635015OsLiYy','isArray','startsWith','object','min','substring','216pANDcR','dev'];a0_0x5c17=function(){return _0x2dcc59;};return a0_0x5c17();}function softTruncate(_0x6c247a,_0x4b2442=0x4e20){const _0x49776f=a0_0x387e05;if(_0x6c247a[_0x49776f(0x18b)]<=_0x4b2442)return _0x6c247a;const _0x4c5715=_0x6c247a[_0x49776f(0x188)]('\x0a');if(_0x4c5715[_0x49776f(0x18b)]<=0xc8)return _0x6c247a;const _0x5a3605=0x32,_0x3410a8=0x96,_0x49d885=_0x4c5715[_0x49776f(0x191)](0x0,_0x5a3605),_0x7974a1=_0x4c5715[_0x49776f(0x191)](_0x4c5715['length']-_0x3410a8),_0x3dd044=_0x6c247a[_0x49776f(0x18b)]-(_0x49d885[_0x49776f(0x177)]('\x0a')[_0x49776f(0x18b)]+_0x7974a1[_0x49776f(0x177)]('\x0a')[_0x49776f(0x18b)]);return[..._0x49d885,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x3dd044+'\x20characters\x20of\x20output]\x20...\x0a',..._0x7974a1][_0x49776f(0x177)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x58eea1=a0_0x4742;function a0_0x587f(){const _0x27cf05=['15291216oLmvtC','replace','__esModule','basename','---','filterGitStatus','writable','\x20\x20...\x20(+','__setModuleDefault','slice','[file]\x20','1034055PPYvnz','length','\x20\x20...\x20+','Clean\x20working\x20tree','filter','unknown_file','default','diff\x20--git','30UVkZLw','substring','filterGitLog','call','164212OxsnFf','__createBinding','getOwnPropertyNames','308LNAuOV','__importStar','get','startsWith','dirname','388380KHhxOG','\x20\x20??\x20','match','hasOwnProperty','\x20(+','51672GeaZyC','trim','configurable','push','getOwnPropertyDescriptor','create','---END---','entries','+++','defineProperty','\x20more\x20modifications','\x0aChanges:','map','filterGitDiff','2379448LPFgBi','prototype','split','\x20untracked\x20files)','344528NJSEZX','join'];a0_0x587f=function(){return _0x27cf05;};return a0_0x587f();}(function(_0x55f035,_0x457954){const _0x546118=a0_0x4742,_0x74043a=_0x55f035();while(!![]){try{const _0x1eca78=-parseInt(_0x546118(0x200))/0x1+-parseInt(_0x546118(0x1e7))/0x2+parseInt(_0x546118(0x1f4))/0x3+-parseInt(_0x546118(0x208))/0x4*(parseInt(_0x546118(0x1fc))/0x5)+-parseInt(_0x546118(0x1d5))/0x6*(parseInt(_0x546118(0x203))/0x7)+-parseInt(_0x546118(0x1e3))/0x8+parseInt(_0x546118(0x1e9))/0x9;if(_0x1eca78===_0x457954)break;else _0x74043a['push'](_0x74043a['shift']());}catch(_0xd986bc){_0x74043a['push'](_0x74043a['shift']());}}}(a0_0x587f,0x6d730));var __createBinding=this&&this[a0_0x58eea1(0x201)]||(Object[a0_0x58eea1(0x1da)]?function(_0xb0400e,_0x1d0541,_0x3d59d0,_0x414978){const _0x4151d1=a0_0x58eea1;if(_0x414978===undefined)_0x414978=_0x3d59d0;var _0x4558f3=Object[_0x4151d1(0x1d9)](_0x1d0541,_0x3d59d0);(!_0x4558f3||(_0x4151d1(0x205)in _0x4558f3?!_0x1d0541[_0x4151d1(0x1eb)]:_0x4558f3[_0x4151d1(0x1ef)]||_0x4558f3[_0x4151d1(0x1d7)]))&&(_0x4558f3={'enumerable':!![],'get':function(){return _0x1d0541[_0x3d59d0];}}),Object[_0x4151d1(0x1de)](_0xb0400e,_0x414978,_0x4558f3);}:function(_0x497382,_0x57e10e,_0x14e944,_0x386078){if(_0x386078===undefined)_0x386078=_0x14e944;_0x497382[_0x386078]=_0x57e10e[_0x14e944];}),__setModuleDefault=this&&this[a0_0x58eea1(0x1f1)]||(Object[a0_0x58eea1(0x1da)]?function(_0x31c8cc,_0x479737){const _0x2336b9=a0_0x58eea1;Object[_0x2336b9(0x1de)](_0x31c8cc,_0x2336b9(0x1fa),{'enumerable':!![],'value':_0x479737});}:function(_0x13737d,_0x39a839){_0x13737d['default']=_0x39a839;}),__importStar=this&&this[a0_0x58eea1(0x204)]||(function(){var _0x4afb78=function(_0x197b10){const _0xd39905=a0_0x4742;return _0x4afb78=Object[_0xd39905(0x202)]||function(_0x48a86){const _0x25a7d1=_0xd39905;var _0x2e9d53=[];for(var _0x243d93 in _0x48a86)if(Object[_0x25a7d1(0x1e4)][_0x25a7d1(0x20b)][_0x25a7d1(0x1ff)](_0x48a86,_0x243d93))_0x2e9d53[_0x2e9d53[_0x25a7d1(0x1f5)]]=_0x243d93;return _0x2e9d53;},_0x4afb78(_0x197b10);};return function(_0x5a8a28){const _0x34090d=a0_0x4742;if(_0x5a8a28&&_0x5a8a28[_0x34090d(0x1eb)])return _0x5a8a28;var _0x3bf384={};if(_0x5a8a28!=null){for(var _0x5e5534=_0x4afb78(_0x5a8a28),_0x27158d=0x0;_0x27158d<_0x5e5534[_0x34090d(0x1f5)];_0x27158d++)if(_0x5e5534[_0x27158d]!=='default')__createBinding(_0x3bf384,_0x5a8a28,_0x5e5534[_0x27158d]);}return __setModuleDefault(_0x3bf384,_0x5a8a28),_0x3bf384;};}());function a0_0x4742(_0x152337,_0x4c1e19){_0x152337=_0x152337-0x1d4;const _0x587fb4=a0_0x587f();let _0x474273=_0x587fb4[_0x152337];return _0x474273;}Object[a0_0x58eea1(0x1de)](exports,a0_0x58eea1(0x1eb),{'value':!![]}),exports[a0_0x58eea1(0x1ee)]=filterGitStatus,exports[a0_0x58eea1(0x1fe)]=filterGitLog,exports[a0_0x58eea1(0x1e2)]=filterGitDiff;const path=__importStar(require('path'));function filterGitStatus(_0x5f7a58){const _0xc9a6d2=a0_0x58eea1,_0x502f63=_0x5f7a58[_0xc9a6d2(0x1e5)]('\x0a')['map'](_0x49376d=>_0x49376d[_0xc9a6d2(0x1d6)]())[_0xc9a6d2(0x1f8)](_0x22077a=>_0x22077a[_0xc9a6d2(0x1f5)]>0x0);if(_0x502f63['length']===0x0)return _0xc9a6d2(0x1f7);const _0x515e92=[],_0x500c58=[],_0x3b796e=[];for(const _0x18927b of _0x502f63){if(_0x18927b['startsWith']('##')){const _0x40329d=_0x18927b[_0xc9a6d2(0x1ea)](/^##\s*/,'');_0x515e92[_0xc9a6d2(0x1d8)]('*\x20Branch:\x20'+_0x40329d);}else _0x18927b[_0xc9a6d2(0x206)]('??')?_0x500c58[_0xc9a6d2(0x1d8)](_0x18927b[_0xc9a6d2(0x1fd)](0x3)[_0xc9a6d2(0x1d6)]()):_0x3b796e['push'](_0x18927b);}_0x3b796e[_0xc9a6d2(0x1f5)]>0x0&&(_0x515e92[_0xc9a6d2(0x1d8)](_0xc9a6d2(0x1e0)),_0x515e92['push'](..._0x3b796e[_0xc9a6d2(0x1e1)](_0x5d5717=>'\x20\x20'+_0x5d5717)));if(_0x500c58[_0xc9a6d2(0x1f5)]>0x0){_0x515e92[_0xc9a6d2(0x1d8)]('\x0aUntracked\x20files:');const _0x5edbcd={},_0x273bc8=[];for(const _0x21fc11 of _0x500c58){const _0x2326de=path[_0xc9a6d2(0x207)](_0x21fc11);_0x2326de==='.'||_0x2326de===''?_0x273bc8[_0xc9a6d2(0x1d8)](_0x21fc11):(!_0x5edbcd[_0x2326de]&&(_0x5edbcd[_0x2326de]=[]),_0x5edbcd[_0x2326de]['push'](path[_0xc9a6d2(0x1ec)](_0x21fc11)));}for(const [_0x10cff2,_0x10c9aa]of Object[_0xc9a6d2(0x1dc)](_0x5edbcd)){if(_0x10c9aa[_0xc9a6d2(0x1f5)]>0x5)_0x515e92[_0xc9a6d2(0x1d8)](_0xc9a6d2(0x209)+_0x10cff2+'/\x20('+_0x10c9aa['length']+_0xc9a6d2(0x1e6));else for(const _0x2e5b5e of _0x10c9aa){_0x515e92[_0xc9a6d2(0x1d8)]('\x20\x20??\x20'+path['join'](_0x10cff2,_0x2e5b5e));}}for(const _0x4a7243 of _0x273bc8){_0x515e92['push'](_0xc9a6d2(0x209)+_0x4a7243);}}return _0x515e92[_0xc9a6d2(0x1e8)]('\x0a');}function filterGitLog(_0xe5bd68){const _0x115791=a0_0x58eea1,_0x45a882=_0xe5bd68['split'](_0x115791(0x1db))['map'](_0x1ea066=>_0x1ea066[_0x115791(0x1d6)]())[_0x115791(0x1f8)](_0x5fa13a=>_0x5fa13a['length']>0x0);if(_0x45a882[_0x115791(0x1f5)]===0x0)return _0xe5bd68;const _0x320fb5=[];for(const _0x501dd1 of _0x45a882){const _0x1c0e96=_0x501dd1[_0x115791(0x1e5)]('\x0a'),_0x121b87=_0x1c0e96[0x0]||'',_0x999a91=_0x1c0e96[_0x115791(0x1f2)](0x1)['map'](_0x118c16=>_0x118c16[_0x115791(0x1d6)]())[_0x115791(0x1f8)](_0x128387=>_0x128387[_0x115791(0x1f5)]>0x0);_0x320fb5[_0x115791(0x1d8)]('-\x20'+_0x121b87),_0x999a91[_0x115791(0x1f5)]>0x0&&(_0x320fb5[_0x115791(0x1d8)]('\x20\x20'+_0x999a91[0x0]),_0x999a91[_0x115791(0x1f5)]>0x1&&_0x320fb5['push'](_0x115791(0x1f0)+(_0x999a91[_0x115791(0x1f5)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x320fb5['join']('\x0a');}function filterGitDiff(_0x345986){const _0x57a4fa=a0_0x58eea1,_0x4bc761=_0x345986[_0x57a4fa(0x1e5)]('\x0a'),_0x4ea506=[];let _0xe1dc30='',_0x3cf139=0x0,_0xce03a0=0x0,_0x1a62c8=[];const _0x41fe91=()=>{const _0x49e1b5=_0x57a4fa;if(_0xe1dc30&&(_0x3cf139>0x0||_0xce03a0>0x0)){_0x4ea506[_0x49e1b5(0x1d8)](_0x49e1b5(0x1f3)+_0xe1dc30+_0x49e1b5(0x1d4)+_0x3cf139+'\x20-'+_0xce03a0+')');const _0x2a52a8=0xa,_0x44cbb7=_0x1a62c8['slice'](0x0,_0x2a52a8);for(const _0x374e27 of _0x44cbb7){_0x4ea506[_0x49e1b5(0x1d8)]('\x20\x20'+_0x374e27);}const _0x491148=_0x3cf139+_0xce03a0-_0x2a52a8;_0x491148>0x0&&_0x4ea506[_0x49e1b5(0x1d8)](_0x49e1b5(0x1f6)+_0x491148+_0x49e1b5(0x1df));}_0x3cf139=0x0,_0xce03a0=0x0,_0x1a62c8=[];};for(const _0x599620 of _0x4bc761){if(_0x599620[_0x57a4fa(0x206)](_0x57a4fa(0x1fb))){_0x41fe91();const _0x3e79d0=_0x599620[_0x57a4fa(0x20a)](/\sb\/(.+)$/);_0xe1dc30=_0x3e79d0?_0x3e79d0[0x1]:_0x57a4fa(0x1f9);}else{if(_0x599620[_0x57a4fa(0x206)]('+')&&!_0x599620[_0x57a4fa(0x206)](_0x57a4fa(0x1dd)))_0x3cf139++,_0x1a62c8[_0x57a4fa(0x1d8)](_0x599620);else _0x599620[_0x57a4fa(0x206)]('-')&&!_0x599620[_0x57a4fa(0x206)](_0x57a4fa(0x1ed))&&(_0xce03a0++,_0x1a62c8[_0x57a4fa(0x1d8)](_0x599620));}}_0x41fe91();const _0x31b287=_0x4ea506[_0x57a4fa(0x1e8)]('\x0a');return _0x31b287[_0x57a4fa(0x1f5)]>0x0?_0x31b287:'No\x20modifications';}
1
+ 'use strict';const a0_0x46144c=a0_0xb658;(function(_0x379e5f,_0x4d3367){const _0xcf034f=a0_0xb658,_0x1bed10=_0x379e5f();while(!![]){try{const _0x4e272c=-parseInt(_0xcf034f(0x6f))/0x1*(parseInt(_0xcf034f(0x92))/0x2)+parseInt(_0xcf034f(0x89))/0x3+parseInt(_0xcf034f(0x81))/0x4+parseInt(_0xcf034f(0x74))/0x5+-parseInt(_0xcf034f(0x6e))/0x6+parseInt(_0xcf034f(0x8d))/0x7+-parseInt(_0xcf034f(0x98))/0x8*(parseInt(_0xcf034f(0x7a))/0x9);if(_0x4e272c===_0x4d3367)break;else _0x1bed10['push'](_0x1bed10['shift']());}catch(_0x282fe6){_0x1bed10['push'](_0x1bed10['shift']());}}}(a0_0x488f,0x5d916));var __createBinding=this&&this[a0_0x46144c(0x83)]||(Object['create']?function(_0x337f3e,_0x28b786,_0x3df608,_0x265fc0){const _0x5ca3f6=a0_0x46144c;if(_0x265fc0===undefined)_0x265fc0=_0x3df608;var _0x38a91c=Object[_0x5ca3f6(0x8b)](_0x28b786,_0x3df608);(!_0x38a91c||(_0x5ca3f6(0x7d)in _0x38a91c?!_0x28b786[_0x5ca3f6(0x97)]:_0x38a91c[_0x5ca3f6(0x8e)]||_0x38a91c[_0x5ca3f6(0x91)]))&&(_0x38a91c={'enumerable':!![],'get':function(){return _0x28b786[_0x3df608];}}),Object['defineProperty'](_0x337f3e,_0x265fc0,_0x38a91c);}:function(_0x23c0da,_0x3afc83,_0x55a3c2,_0x5c9f1d){if(_0x5c9f1d===undefined)_0x5c9f1d=_0x55a3c2;_0x23c0da[_0x5c9f1d]=_0x3afc83[_0x55a3c2];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x46144c(0x84)]?function(_0xeccbaa,_0x3215ba){const _0x3add6a=a0_0x46144c;Object[_0x3add6a(0x85)](_0xeccbaa,_0x3add6a(0x8c),{'enumerable':!![],'value':_0x3215ba});}:function(_0x352f80,_0x5bc430){_0x352f80['default']=_0x5bc430;}),__importStar=this&&this[a0_0x46144c(0x82)]||(function(){var _0x2c54fe=function(_0x53621a){const _0x1a45e3=a0_0xb658;return _0x2c54fe=Object[_0x1a45e3(0x78)]||function(_0x609e15){const _0x164856=_0x1a45e3;var _0x4394a2=[];for(var _0x4dba71 in _0x609e15)if(Object[_0x164856(0x7b)][_0x164856(0x88)][_0x164856(0x77)](_0x609e15,_0x4dba71))_0x4394a2[_0x4394a2['length']]=_0x4dba71;return _0x4394a2;},_0x2c54fe(_0x53621a);};return function(_0x17dfd3){const _0xd79f64=a0_0xb658;if(_0x17dfd3&&_0x17dfd3[_0xd79f64(0x97)])return _0x17dfd3;var _0x3ee302={};if(_0x17dfd3!=null){for(var _0x18535d=_0x2c54fe(_0x17dfd3),_0x4b6ec1=0x0;_0x4b6ec1<_0x18535d[_0xd79f64(0x90)];_0x4b6ec1++)if(_0x18535d[_0x4b6ec1]!==_0xd79f64(0x8c))__createBinding(_0x3ee302,_0x17dfd3,_0x18535d[_0x4b6ec1]);}return __setModuleDefault(_0x3ee302,_0x17dfd3),_0x3ee302;};}());Object['defineProperty'](exports,a0_0x46144c(0x97),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x46144c(0x8a)]=filterGitLog,exports[a0_0x46144c(0x9c)]=filterGitDiff;function a0_0xb658(_0x5659f0,_0x43bbe9){_0x5659f0=_0x5659f0-0x6e;const _0x488f29=a0_0x488f();let _0xb65880=_0x488f29[_0x5659f0];return _0xb65880;}function a0_0x488f(){const _0x426784=['slice','split','filter','filterGitDiff','join','unknown_file','\x20untracked\x20files)','4408590gpVDIM','1119cCfcRv','startsWith','/\x20(','---','push','3039185tqOOHl','\x20\x20...\x20(+','trim','call','getOwnPropertyNames','entries','165897SciZVz','prototype','*\x20Branch:\x20','get','substring','path','map','2957984aaFEWo','__importStar','__createBinding','create','defineProperty','replace','---END---','hasOwnProperty','2242692gRfFMt','filterGitLog','getOwnPropertyDescriptor','default','4341260GDLqIM','writable','[file]\x20','length','configurable','1306XRjHsi','\x20more\x20modifications','\x20\x20??\x20','Clean\x20working\x20tree','basename','__esModule','376gWvEDd'];a0_0x488f=function(){return _0x426784;};return a0_0x488f();}const path=__importStar(require(a0_0x46144c(0x7f)));function filterGitStatus(_0x27e7a3){const _0x117630=a0_0x46144c,_0x59471a=_0x27e7a3['split']('\x0a')[_0x117630(0x80)](_0x39ae07=>_0x39ae07[_0x117630(0x76)]())['filter'](_0x47f3d=>_0x47f3d[_0x117630(0x90)]>0x0);if(_0x59471a[_0x117630(0x90)]===0x0)return _0x117630(0x95);const _0x4e11fe=[],_0x273321=[],_0x1203ff=[];for(const _0xb98dc7 of _0x59471a){if(_0xb98dc7['startsWith']('##')){const _0x1cd8b3=_0xb98dc7[_0x117630(0x86)](/^##\s*/,'');_0x4e11fe[_0x117630(0x73)](_0x117630(0x7c)+_0x1cd8b3);}else _0xb98dc7[_0x117630(0x70)]('??')?_0x273321[_0x117630(0x73)](_0xb98dc7[_0x117630(0x7e)](0x3)[_0x117630(0x76)]()):_0x1203ff[_0x117630(0x73)](_0xb98dc7);}_0x1203ff['length']>0x0&&(_0x4e11fe['push']('\x0aChanges:'),_0x4e11fe[_0x117630(0x73)](..._0x1203ff[_0x117630(0x80)](_0x5d3976=>'\x20\x20'+_0x5d3976)));if(_0x273321[_0x117630(0x90)]>0x0){_0x4e11fe[_0x117630(0x73)]('\x0aUntracked\x20files:');const _0x37ad23={},_0xdbf0ef=[];for(const _0x419a19 of _0x273321){const _0x4c7bd4=path['dirname'](_0x419a19);_0x4c7bd4==='.'||_0x4c7bd4===''?_0xdbf0ef['push'](_0x419a19):(!_0x37ad23[_0x4c7bd4]&&(_0x37ad23[_0x4c7bd4]=[]),_0x37ad23[_0x4c7bd4][_0x117630(0x73)](path[_0x117630(0x96)](_0x419a19)));}for(const [_0x155015,_0x5102ab]of Object[_0x117630(0x79)](_0x37ad23)){if(_0x5102ab[_0x117630(0x90)]>0x5)_0x4e11fe[_0x117630(0x73)](_0x117630(0x94)+_0x155015+_0x117630(0x71)+_0x5102ab[_0x117630(0x90)]+_0x117630(0x9f));else for(const _0x4c1f29 of _0x5102ab){_0x4e11fe['push']('\x20\x20??\x20'+path[_0x117630(0x9d)](_0x155015,_0x4c1f29));}}for(const _0x301e5b of _0xdbf0ef){_0x4e11fe['push']('\x20\x20??\x20'+_0x301e5b);}}return _0x4e11fe[_0x117630(0x9d)]('\x0a');}function filterGitLog(_0x56216f){const _0x14f23a=a0_0x46144c,_0x44418e=_0x56216f['split'](_0x14f23a(0x87))['map'](_0x422005=>_0x422005['trim']())[_0x14f23a(0x9b)](_0x3ffbec=>_0x3ffbec[_0x14f23a(0x90)]>0x0);if(_0x44418e['length']===0x0)return _0x56216f;const _0x5a925f=[];for(const _0x2aba40 of _0x44418e){const _0x16db75=_0x2aba40[_0x14f23a(0x9a)]('\x0a'),_0x2c6648=_0x16db75[0x0]||'',_0x37ab58=_0x16db75['slice'](0x1)[_0x14f23a(0x80)](_0xf9247c=>_0xf9247c[_0x14f23a(0x76)]())[_0x14f23a(0x9b)](_0x4bb182=>_0x4bb182[_0x14f23a(0x90)]>0x0);_0x5a925f[_0x14f23a(0x73)]('-\x20'+_0x2c6648),_0x37ab58['length']>0x0&&(_0x5a925f[_0x14f23a(0x73)]('\x20\x20'+_0x37ab58[0x0]),_0x37ab58[_0x14f23a(0x90)]>0x1&&_0x5a925f[_0x14f23a(0x73)](_0x14f23a(0x75)+(_0x37ab58[_0x14f23a(0x90)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x5a925f['join']('\x0a');}function filterGitDiff(_0x494dd9){const _0x1c5d0d=a0_0x46144c,_0x3099d8=_0x494dd9[_0x1c5d0d(0x9a)]('\x0a'),_0x28b004=[];let _0x4a33fc='',_0x1a2816=0x0,_0x35cd0e=0x0,_0x12b54f=[];const _0xf40c11=()=>{const _0x1ee2e2=_0x1c5d0d;if(_0x4a33fc&&(_0x1a2816>0x0||_0x35cd0e>0x0)){_0x28b004['push'](_0x1ee2e2(0x8f)+_0x4a33fc+'\x20(+'+_0x1a2816+'\x20-'+_0x35cd0e+')');const _0x47172e=0xa,_0x445058=_0x12b54f[_0x1ee2e2(0x99)](0x0,_0x47172e);for(const _0x427b5c of _0x445058){_0x28b004[_0x1ee2e2(0x73)]('\x20\x20'+_0x427b5c);}const _0x59eeb7=_0x1a2816+_0x35cd0e-_0x47172e;_0x59eeb7>0x0&&_0x28b004[_0x1ee2e2(0x73)]('\x20\x20...\x20+'+_0x59eeb7+_0x1ee2e2(0x93));}_0x1a2816=0x0,_0x35cd0e=0x0,_0x12b54f=[];};for(const _0x143e47 of _0x3099d8){if(_0x143e47[_0x1c5d0d(0x70)]('diff\x20--git')){_0xf40c11();const _0x35461c=_0x143e47['match'](/\sb\/(.+)$/);_0x4a33fc=_0x35461c?_0x35461c[0x1]:_0x1c5d0d(0x9e);}else{if(_0x143e47[_0x1c5d0d(0x70)]('+')&&!_0x143e47[_0x1c5d0d(0x70)]('+++'))_0x1a2816++,_0x12b54f[_0x1c5d0d(0x73)](_0x143e47);else _0x143e47[_0x1c5d0d(0x70)]('-')&&!_0x143e47[_0x1c5d0d(0x70)](_0x1c5d0d(0x72))&&(_0x35cd0e++,_0x12b54f['push'](_0x143e47));}}_0xf40c11();const _0x8fe38d=_0x28b004[_0x1c5d0d(0x9d)]('\x0a');return _0x8fe38d['length']>0x0?_0x8fe38d:'No\x20modifications';}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x33e4c0=a0_0x274d;(function(_0x2c8865,_0x5af6bd){const _0x23f16f=a0_0x274d,_0x2ff176=_0x2c8865();while(!![]){try{const _0x3f0bae=-parseInt(_0x23f16f(0x1c5))/0x1*(-parseInt(_0x23f16f(0x1bf))/0x2)+-parseInt(_0x23f16f(0x1b6))/0x3*(parseInt(_0x23f16f(0x1d0))/0x4)+-parseInt(_0x23f16f(0x1c2))/0x5*(parseInt(_0x23f16f(0x1cc))/0x6)+parseInt(_0x23f16f(0x1b5))/0x7+parseInt(_0x23f16f(0x1ce))/0x8+parseInt(_0x23f16f(0x1c1))/0x9*(parseInt(_0x23f16f(0x1c3))/0xa)+-parseInt(_0x23f16f(0x1b3))/0xb;if(_0x3f0bae===_0x5af6bd)break;else _0x2ff176['push'](_0x2ff176['shift']());}catch(_0x1a2ffa){_0x2ff176['push'](_0x2ff176['shift']());}}}(a0_0x24da,0xc95ce));Object[a0_0x33e4c0(0x1b7)](exports,'__esModule',{'value':!![]}),exports[a0_0x33e4c0(0x1ca)]=filterGoTest,exports[a0_0x33e4c0(0x1d1)]=filterGoVet;function a0_0x274d(_0x295903,_0x12d55d){_0x295903=_0x295903-0x1b3;const _0x24da6f=a0_0x24da();let _0x274dcf=_0x24da6f[_0x295903];return _0x274dcf;}function a0_0x24da(){const _0x14c00b=['Go\x20test:\x20all\x20tests\x20passed','\x20issues\x20found','split','length','...\x20+','PASS','match','6pLZvmW','name','4761vAzLHN','45hvIQQQ','28370pAWqRP','\x20\x20...\x20+','170624dJWAXH','startsWith','\x20more\x20failures','===\x20RUN','\x20passed,\x20','filterGoTest','\x20failed,\x20','951624PwTTbM','trim','8276264xrXgCM','no\x20test\x20files','4MHJiZc','filterGoVet','\x20skipped','Go\x20vet:\x20','slice','join','push','FAIL','includes','\x20\x20\x20\x20...\x20+','lines','17575602siipgy','Go\x20test:\x20no\x20test\x20files','11497094IFOQyE','2518860qnjpcG','defineProperty'];a0_0x24da=function(){return _0x14c00b;};return a0_0x24da();}function filterGoTest(_0x2dc029){const _0x4cd2f5=a0_0x33e4c0,_0x37ac30=_0x2dc029[_0x4cd2f5(0x1ba)]('\x0a');let _0x41f0be=0x0,_0x6b1c5c=0x0,_0x388883=0x0;const _0x4afca8=[],_0x3e941a=[];let _0x29a9a9=null;for(const _0x49c846 of _0x37ac30){const _0x50c69d=_0x49c846['trim'](),_0x393091=_0x50c69d[_0x4cd2f5(0x1be)](/^ok\s+\S+\s+[\d.]+s/);if(_0x393091){_0x3e941a['push'](_0x50c69d);continue;}const _0x55aec7=_0x50c69d[_0x4cd2f5(0x1be)](/^FAIL\s+\S+/);if(_0x55aec7){_0x3e941a[_0x4cd2f5(0x1d6)](_0x50c69d);continue;}const _0x3a9369=_0x50c69d[_0x4cd2f5(0x1be)](/^--- PASS:/);if(_0x3a9369){_0x41f0be++;continue;}const _0xcf9a0d=_0x50c69d[_0x4cd2f5(0x1be)](/^--- FAIL:\s+(\S+)/);if(_0xcf9a0d){if(_0x29a9a9)_0x4afca8[_0x4cd2f5(0x1d6)](_0x29a9a9);_0x29a9a9={'name':_0xcf9a0d[0x1],'lines':[]},_0x6b1c5c++;continue;}if(_0x50c69d['startsWith']('---\x20SKIP:')){_0x388883++;continue;}_0x29a9a9&&_0x50c69d[_0x4cd2f5(0x1bb)]>0x0&&!_0x50c69d[_0x4cd2f5(0x1c6)](_0x4cd2f5(0x1c8))&&_0x29a9a9['lines']['push'](_0x49c846),_0x50c69d[_0x4cd2f5(0x1c6)](_0x4cd2f5(0x1c8))&&(_0x29a9a9&&(_0x4afca8[_0x4cd2f5(0x1d6)](_0x29a9a9),_0x29a9a9=null));}if(_0x29a9a9)_0x4afca8[_0x4cd2f5(0x1d6)](_0x29a9a9);if(_0x41f0be===0x0&&_0x6b1c5c===0x0&&_0x388883===0x0){if(_0x2dc029[_0x4cd2f5(0x1d8)](_0x4cd2f5(0x1bd))&&!_0x2dc029[_0x4cd2f5(0x1d8)](_0x4cd2f5(0x1d7)))return _0x4cd2f5(0x1b8);if(_0x2dc029[_0x4cd2f5(0x1d8)](_0x4cd2f5(0x1cf)))return _0x4cd2f5(0x1b4);return _0x2dc029;}if(_0x6b1c5c===0x0){const _0x38b45b=['Go\x20test:\x20'+_0x41f0be+'\x20passed'];if(_0x388883>0x0)_0x38b45b[_0x4cd2f5(0x1d6)](_0x388883+_0x4cd2f5(0x1d2));return _0x38b45b[_0x4cd2f5(0x1d5)](',\x20');}const _0x28df76=['Go\x20test:\x20'+_0x41f0be+_0x4cd2f5(0x1c9)+_0x6b1c5c+_0x4cd2f5(0x1cb)+_0x388883+'\x20skipped'];if(_0x4afca8[_0x4cd2f5(0x1bb)]>0x0){_0x28df76[_0x4cd2f5(0x1d6)]('\x0aFailures:');const _0x354bd3=0x3;for(let _0x5cd064=0x0;_0x5cd064<Math['min'](_0x4afca8[_0x4cd2f5(0x1bb)],_0x354bd3);_0x5cd064++){const _0x5ac2f0=_0x4afca8[_0x5cd064];_0x28df76['push']('\x20\x20'+(_0x5cd064+0x1)+'.\x20'+_0x5ac2f0[_0x4cd2f5(0x1c0)]);for(const _0x4c4212 of _0x5ac2f0[_0x4cd2f5(0x1da)][_0x4cd2f5(0x1d4)](0x0,0x5)){_0x28df76['push']('\x20\x20\x20\x20'+_0x4c4212[_0x4cd2f5(0x1cd)]());}_0x5ac2f0[_0x4cd2f5(0x1da)][_0x4cd2f5(0x1bb)]>0x5&&_0x28df76[_0x4cd2f5(0x1d6)](_0x4cd2f5(0x1d9)+(_0x5ac2f0[_0x4cd2f5(0x1da)][_0x4cd2f5(0x1bb)]-0x5)+'\x20more\x20lines');}_0x4afca8[_0x4cd2f5(0x1bb)]>_0x354bd3&&_0x28df76[_0x4cd2f5(0x1d6)](_0x4cd2f5(0x1c4)+(_0x4afca8[_0x4cd2f5(0x1bb)]-_0x354bd3)+_0x4cd2f5(0x1c7));}return _0x28df76[_0x4cd2f5(0x1d5)]('\x0a');}function filterGoVet(_0x13177d){const _0x5d7b86=a0_0x33e4c0,_0x1ce701=_0x13177d[_0x5d7b86(0x1ba)]('\x0a')['filter'](_0x63a66d=>_0x63a66d[_0x5d7b86(0x1cd)]()[_0x5d7b86(0x1bb)]>0x0);if(_0x1ce701[_0x5d7b86(0x1bb)]===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x1ce701[_0x5d7b86(0x1bb)]<=0x14)return _0x13177d[_0x5d7b86(0x1cd)]();const _0x429084=[_0x5d7b86(0x1d3)+_0x1ce701[_0x5d7b86(0x1bb)]+_0x5d7b86(0x1b9)];return _0x429084['push'](..._0x1ce701['slice'](0x0,0xa)),_0x1ce701['length']>0xa&&_0x429084[_0x5d7b86(0x1d6)](_0x5d7b86(0x1bc)+(_0x1ce701[_0x5d7b86(0x1bb)]-0xa)+'\x20more\x20issues'),_0x429084['join']('\x0a');}
1
+ 'use strict';const a0_0x20d19f=a0_0x4b8e;(function(_0x1938bc,_0x24fddf){const _0x15645d=a0_0x4b8e,_0x29a15d=_0x1938bc();while(!![]){try{const _0x3cd8d0=parseInt(_0x15645d(0x1e3))/0x1+-parseInt(_0x15645d(0x1e8))/0x2*(-parseInt(_0x15645d(0x1d6))/0x3)+parseInt(_0x15645d(0x1c6))/0x4+-parseInt(_0x15645d(0x1cd))/0x5+-parseInt(_0x15645d(0x1d3))/0x6+parseInt(_0x15645d(0x1d2))/0x7+parseInt(_0x15645d(0x1d0))/0x8*(-parseInt(_0x15645d(0x1dd))/0x9);if(_0x3cd8d0===_0x24fddf)break;else _0x29a15d['push'](_0x29a15d['shift']());}catch(_0x2d6c54){_0x29a15d['push'](_0x29a15d['shift']());}}}(a0_0x4e64,0x6b302));function a0_0x4b8e(_0x1a3a6e,_0xe49133){_0x1a3a6e=_0x1a3a6e-0x1be;const _0x4e640b=a0_0x4e64();let _0x4b8e1c=_0x4e640b[_0x1a3a6e];return _0x4b8e1c;}Object['defineProperty'](exports,a0_0x20d19f(0x1c7),{'value':!![]}),exports[a0_0x20d19f(0x1e7)]=filterGoTest,exports[a0_0x20d19f(0x1c9)]=filterGoVet;function filterGoTest(_0x2a0801){const _0x5705d4=a0_0x20d19f,_0x1c7701=_0x2a0801['split']('\x0a');let _0x1d9673=0x0,_0x32d28a=0x0,_0x5b74bf=0x0;const _0x3ba336=[],_0x43c900=[];let _0x50a10e=null;for(const _0x545b37 of _0x1c7701){const _0x357f12=_0x545b37[_0x5705d4(0x1c1)](),_0x2418f0=_0x357f12['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x2418f0){_0x43c900[_0x5705d4(0x1c8)](_0x357f12);continue;}const _0x55f905=_0x357f12[_0x5705d4(0x1c0)](/^FAIL\s+\S+/);if(_0x55f905){_0x43c900[_0x5705d4(0x1c8)](_0x357f12);continue;}const _0x5007ef=_0x357f12['match'](/^--- PASS:/);if(_0x5007ef){_0x1d9673++;continue;}const _0x26e048=_0x357f12[_0x5705d4(0x1c0)](/^--- FAIL:\s+(\S+)/);if(_0x26e048){if(_0x50a10e)_0x3ba336[_0x5705d4(0x1c8)](_0x50a10e);_0x50a10e={'name':_0x26e048[0x1],'lines':[]},_0x32d28a++;continue;}if(_0x357f12[_0x5705d4(0x1e1)](_0x5705d4(0x1df))){_0x5b74bf++;continue;}_0x50a10e&&_0x357f12[_0x5705d4(0x1ce)]>0x0&&!_0x357f12[_0x5705d4(0x1e1)](_0x5705d4(0x1c5))&&_0x50a10e[_0x5705d4(0x1ca)][_0x5705d4(0x1c8)](_0x545b37),_0x357f12[_0x5705d4(0x1e1)]('===\x20RUN')&&(_0x50a10e&&(_0x3ba336[_0x5705d4(0x1c8)](_0x50a10e),_0x50a10e=null));}if(_0x50a10e)_0x3ba336[_0x5705d4(0x1c8)](_0x50a10e);if(_0x1d9673===0x0&&_0x32d28a===0x0&&_0x5b74bf===0x0){if(_0x2a0801['includes'](_0x5705d4(0x1cc))&&!_0x2a0801[_0x5705d4(0x1cb)](_0x5705d4(0x1c3)))return _0x5705d4(0x1d4);if(_0x2a0801[_0x5705d4(0x1cb)](_0x5705d4(0x1d7)))return _0x5705d4(0x1d9);return _0x2a0801;}if(_0x32d28a===0x0){const _0x436daa=['Go\x20test:\x20'+_0x1d9673+_0x5705d4(0x1be)];if(_0x5b74bf>0x0)_0x436daa[_0x5705d4(0x1c8)](_0x5b74bf+_0x5705d4(0x1d5));return _0x436daa[_0x5705d4(0x1da)](',\x20');}const _0x2942ab=['Go\x20test:\x20'+_0x1d9673+_0x5705d4(0x1c2)+_0x32d28a+'\x20failed,\x20'+_0x5b74bf+'\x20skipped'];if(_0x3ba336[_0x5705d4(0x1ce)]>0x0){_0x2942ab[_0x5705d4(0x1c8)](_0x5705d4(0x1c4));const _0x39cc65=0x3;for(let _0x3c5fa5=0x0;_0x3c5fa5<Math[_0x5705d4(0x1e4)](_0x3ba336['length'],_0x39cc65);_0x3c5fa5++){const _0xf7d6d7=_0x3ba336[_0x3c5fa5];_0x2942ab[_0x5705d4(0x1c8)]('\x20\x20'+(_0x3c5fa5+0x1)+'.\x20'+_0xf7d6d7[_0x5705d4(0x1db)]);for(const _0x4745f0 of _0xf7d6d7[_0x5705d4(0x1ca)]['slice'](0x0,0x5)){_0x2942ab[_0x5705d4(0x1c8)](_0x5705d4(0x1d1)+_0x4745f0[_0x5705d4(0x1c1)]());}_0xf7d6d7[_0x5705d4(0x1ca)][_0x5705d4(0x1ce)]>0x5&&_0x2942ab[_0x5705d4(0x1c8)](_0x5705d4(0x1bf)+(_0xf7d6d7[_0x5705d4(0x1ca)][_0x5705d4(0x1ce)]-0x5)+_0x5705d4(0x1dc));}_0x3ba336[_0x5705d4(0x1ce)]>_0x39cc65&&_0x2942ab[_0x5705d4(0x1c8)]('\x20\x20...\x20+'+(_0x3ba336['length']-_0x39cc65)+_0x5705d4(0x1e2));}return _0x2942ab['join']('\x0a');}function a0_0x4e64(){const _0x16a3b6=['Go\x20vet:\x20no\x20issues\x20found','slice','filterGoTest','1000772ZRWutv','\x20passed','\x20\x20\x20\x20...\x20+','match','trim','\x20passed,\x20','FAIL','\x0aFailures:','===\x20RUN','2286128elUQUb','__esModule','push','filterGoVet','lines','includes','PASS','1864035DBpdII','length','split','104mIVeZN','\x20\x20\x20\x20','161049KxUKIQ','1713594vPPbIk','Go\x20test:\x20all\x20tests\x20passed','\x20skipped','3erClxg','no\x20test\x20files','\x20issues\x20found','Go\x20test:\x20no\x20test\x20files','join','name','\x20more\x20lines','175185fWEjpG','filter','---\x20SKIP:','\x20more\x20issues','startsWith','\x20more\x20failures','255568kgLRwS','min'];a0_0x4e64=function(){return _0x16a3b6;};return a0_0x4e64();}function filterGoVet(_0x24f90c){const _0x358894=a0_0x20d19f,_0x23eb2c=_0x24f90c[_0x358894(0x1cf)]('\x0a')[_0x358894(0x1de)](_0x45373d=>_0x45373d['trim']()[_0x358894(0x1ce)]>0x0);if(_0x23eb2c[_0x358894(0x1ce)]===0x0)return _0x358894(0x1e5);if(_0x23eb2c[_0x358894(0x1ce)]<=0x14)return _0x24f90c['trim']();const _0x274b31=['Go\x20vet:\x20'+_0x23eb2c[_0x358894(0x1ce)]+_0x358894(0x1d8)];return _0x274b31[_0x358894(0x1c8)](..._0x23eb2c[_0x358894(0x1e6)](0x0,0xa)),_0x23eb2c[_0x358894(0x1ce)]>0xa&&_0x274b31['push']('...\x20+'+(_0x23eb2c[_0x358894(0x1ce)]-0xa)+_0x358894(0x1e0)),_0x274b31['join']('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x566395=a0_0x5eec;(function(_0x33c7b7,_0x50ce74){const _0x175adc=a0_0x5eec,_0x468ae1=_0x33c7b7();while(!![]){try{const _0x476640=parseInt(_0x175adc(0x7d))/0x1+parseInt(_0x175adc(0x82))/0x2+parseInt(_0x175adc(0x8a))/0x3*(-parseInt(_0x175adc(0xdc))/0x4)+parseInt(_0x175adc(0x90))/0x5+-parseInt(_0x175adc(0xe0))/0x6+parseInt(_0x175adc(0xb2))/0x7*(-parseInt(_0x175adc(0xc8))/0x8)+parseInt(_0x175adc(0x9d))/0x9;if(_0x476640===_0x50ce74)break;else _0x468ae1['push'](_0x468ae1['shift']());}catch(_0x306237){_0x468ae1['push'](_0x468ae1['shift']());}}}(a0_0x195d,0x866d4));Object['defineProperty'](exports,a0_0x566395(0x78),{'value':!![]}),exports[a0_0x566395(0x7b)]=exports['lastRedactAudit']=void 0x0,exports[a0_0x566395(0xb6)]=compressOutput,exports[a0_0x566395(0xde)]=rewriteCommand;const generic_1=require(a0_0x566395(0x83)),git_1=require(a0_0x566395(0xd6)),python_1=require(a0_0x566395(0x8b)),js_1=require(a0_0x566395(0xba)),shell_1=require(a0_0x566395(0xa0)),rust_1=require(a0_0x566395(0x84)),go_1=require(a0_0x566395(0xd7)),devops_1=require(a0_0x566395(0x86)),redactor_1=require(a0_0x566395(0xb8)),tracker_1=require(a0_0x566395(0xbe));exports[a0_0x566395(0xbd)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x566395(0x7b)]=[];function isFeatureEnabled(_0x51cbfc){const _0x16ea98=a0_0x566395;try{const _0x2e1796=tracker_1[_0x16ea98(0x93)][_0x16ea98(0xc1)](),_0x3cfc10=_0x2e1796[_0x16ea98(0xb9)];if(!_0x3cfc10||_0x3cfc10[_0x51cbfc]===undefined)return!![];return _0x3cfc10[_0x51cbfc]!==![];}catch{return!![];}}function a0_0x5eec(_0x55a05e,_0x1bcd7e){_0x55a05e=_0x55a05e-0x74;const _0x195d46=a0_0x195d();let _0x5eeca6=_0x195d46[_0x55a05e];return _0x5eeca6;}function compressOutput(_0x2e23a6,_0x252b1b,_0x1c03e4,_0x480a1c=!![]){const _0x32dec1=a0_0x566395,_0x4f37a2=_0x2e23a6['trim']();let _0x2796e3=_0x252b1b;_0x1c03e4[_0x32dec1(0x80)]()[_0x32dec1(0x97)]>0x0&&(_0x2796e3=_0x252b1b+'\x0a'+_0x1c03e4);let _0xffb1c2=isFeatureEnabled(_0x32dec1(0xcb))?(0x0,generic_1['stripAnsi'])(_0x2796e3):_0x2796e3;const _0x4d2bb0=[];if(_0xffb1c2[_0x32dec1(0x97)]<_0x2796e3[_0x32dec1(0x97)])_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xcb));const _0x2cf6d3=(_0x1e7440,_0x2ad23d)=>{const _0x5aaa8a=_0x32dec1;return _0x4d2bb0['push'](_0x1e7440),exports[_0x5aaa8a(0x7b)]=_0x4d2bb0,_0x2ad23d;};if(_0x480a1c&&isFeatureEnabled('redact')){const _0x3c15b3=redactor_1[_0x32dec1(0xb5)][_0x32dec1(0x95)](_0xffb1c2);_0xffb1c2=_0x3c15b3[_0x32dec1(0x96)],exports[_0x32dec1(0xbd)]={'secretsFound':_0x3c15b3['secretsFound'],'secretTypes':_0x3c15b3[_0x32dec1(0x99)]};if(_0x3c15b3[_0x32dec1(0x7f)]>0x0)_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xdd));}else exports[_0x32dec1(0xbd)]={'secretsFound':0x0,'secretTypes':[]};const _0x4d4076=_0x4f37a2['toLowerCase'](),_0x242397=isFeatureEnabled(_0x32dec1(0x9f));try{if(_0x242397){if(_0x4d4076['includes'](_0x32dec1(0xce))||_0x4d4076['includes'](_0x32dec1(0xc3)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1[_0x32dec1(0xd9)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x8d))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd1)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1['filterGitLog'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xc4))||_0x4d4076['includes'](_0x32dec1(0x9e))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xa4)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1[_0x32dec1(0xb3)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('pytest')||_0x4d4076[_0x32dec1(0xb1)](/python3?\s+-m\s+pytest/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,python_1[_0x32dec1(0xc9)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('pip\x20install')||_0x4d4076[_0x32dec1(0xc6)]('pip3\x20install'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,python_1['filterPipInstall'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('ruff\x20check')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x88)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1[_0x32dec1(0xbc)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xb7))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xab))||_0x4d4076['endsWith']('npm\x20i')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xac))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x9b)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1[_0x32dec1(0x8f)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd5))||_0x4d4076[_0x32dec1(0xc6)]('vitest'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1[_0x32dec1(0xaf)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('npm\x20test')||_0x4d4076[_0x32dec1(0xc6)]('pnpm\x20test')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xdb))||_0x4d4076['includes']('npm\x20run\x20test'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1['filterJestVitest'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x92)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,rust_1[_0x32dec1(0xda)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd2))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x7a))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd4)))return _0x2cf6d3('filter',(0x0,rust_1[_0x32dec1(0xa5)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('go\x20test'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,go_1[_0x32dec1(0xbb)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xa6)))return _0x2cf6d3('filter',(0x0,go_1['filterGoVet'])(_0xffb1c2));if(_0x4d4076['match'](/docker\s+ps/))return _0x2cf6d3('filter',(0x0,devops_1[_0x32dec1(0x98)])(_0xffb1c2));if(_0x4d4076['match'](/docker\s+images/))return _0x2cf6d3('filter',(0x0,devops_1[_0x32dec1(0xca)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/docker\s+logs/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1[_0x32dec1(0x89)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x81))){const _0x3eb0ec=_0x4d4076[_0x32dec1(0xb1)](/kubectl\s+(get|logs|describe|apply)/),_0x591ed0=_0x3eb0ec?_0x3eb0ec[0x1]:_0x32dec1(0x85);return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1['filterKubectl'])(_0xffb1c2,_0x591ed0));}if(_0x4d4076[_0x32dec1(0xb1)](/^(ls|dir)(\s|$)/)||_0x4d4076['includes'](_0x32dec1(0xaa))||_0x4d4076[_0x32dec1(0x91)](_0x32dec1(0xc7)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0xa9)])(_0xffb1c2));if(_0x4d4076['match'](/^tree(\s|$)/)||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xb4))||_0x4d4076[_0x32dec1(0x91)]('\x20tree'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0xc5)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x4b8e19=(0x0,shell_1[_0x32dec1(0xe1)])(_0xffb1c2,_0x4f37a2);if(_0x4b8e19[_0x32dec1(0xc6)]('[lock\x20file]'))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xa8));else{if(_0x4b8e19['includes'](_0x32dec1(0x8c))||_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0x8e)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xc2));else{if(_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0xcd)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xa7));else{if(_0x4b8e19[_0x32dec1(0xc6)]('|\x20')&&_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0x74))&&_0x4b8e19[_0x32dec1(0x97)]<_0xffb1c2['length']*0.5)_0x4d2bb0['push'](_0x32dec1(0x87));else{if(_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0xcf)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0x9f));}}}}if(_0x4b8e19['length']<_0xffb1c2['length']&&!_0x4d2bb0[_0x32dec1(0x76)](_0x492a9a=>_0x492a9a!==_0x32dec1(0xcb)&&_0x492a9a!==_0x32dec1(0xdd)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0x9f));return exports[_0x32dec1(0x7b)]=_0x4d2bb0,_0x4b8e19;}if(_0x4d4076[_0x32dec1(0xb1)](/^find(\s|$)/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1['filterFind'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/^(grep|rg|ripgrep)(\s|$)/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0x9a)])(_0xffb1c2));}}catch(_0x43f7f3){}return isFeatureEnabled(_0x32dec1(0xcc))&&(_0xffb1c2=(0x0,generic_1[_0x32dec1(0xa2)])(_0xffb1c2),_0x4d2bb0['push'](_0x32dec1(0xcc))),_0xffb1c2=(0x0,generic_1[_0x32dec1(0x7e)])(_0xffb1c2),_0xffb1c2=(0x0,generic_1[_0x32dec1(0xb0)])(_0xffb1c2,0x4e20),exports[_0x32dec1(0x7b)]=_0x4d2bb0,_0xffb1c2;}function a0_0x195d(){const _0x5ec3b9=['8kaVdsK','filterPytest','filterDockerImages','ansi_strip','whitespace','[code\x20skeleton]','git\x20status','lines\x20truncated','trim\x20pnpm','yadm\x20log','cargo\x20build','trim\x20find','cargo\x20clippy','jest','./git','./go','trim\x20pytest','filterGitStatus','filterCargoTest','yarn\x20test','124ohCMTx','redact','rewriteCommand','trim\x20','3431052IGrtOw','filterCat','---','trim\x20ls','some','test','__esModule','trim\x20read','cargo\x20check','lastFeatures','trim\x20go','1053663BDuDSl','collapseDuplicates','secretsFound','trim','kubectl','1735524wTpdBf','./generic','./rust','get','./devops','json_crusher','ruff\x20','filterDockerLogs','91425kMfaSs','./python','[binary','git\x20log','[minified\x20file]','filterNpmInstall','1349670iREiJh','endsWith','cargo\x20test','tracker','pattern','redactWithAudit','text','length','filterDockerPs','secretTypes','filterGrep','yarn\x20install','trim\x20npx','6757731XKUKOM','git\x20show','filter','./shell','trim\x20kubectl','collapseWhitespace','push','yadm\x20diff','filterCargoBuild','go\x20vet','skeleton','lock','filterLs','\x20ls\x20','npm\x20i\x20','pnpm\x20install','trim\x20ruff','trim\x20git','filterJestVitest','softTruncate','match','6125273KZmpnH','filterGitDiff','\x20tree\x20','redactor','compressOutput','npm\x20install','../redactor','features_enabled','./js','filterGoTest','filterRuff','lastRedactAudit','../tracker','trim\x20docker','startsWith','getConfig','binary','yadm\x20status','git\x20diff','filterTree','includes','\x20ls'];a0_0x195d=function(){return _0x5ec3b9;};return a0_0x195d();}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x566395(0xae)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':'trim\x20cargo'},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x566395(0xd0)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':'trim\x20npm'},{'pattern':/^npx\s+/,'prefix':a0_0x566395(0x9c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x566395(0x79)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x566395(0x75)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x566395(0xd3)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x566395(0xbf)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x566395(0xa1)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x566395(0xd8)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x566395(0xad)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x566395(0x7c)}];function rewriteCommand(_0x484129){const _0x5b0b84=a0_0x566395,_0x52206f=_0x484129[_0x5b0b84(0x80)]();if(_0x52206f[_0x5b0b84(0xc0)](_0x5b0b84(0xdf)))return _0x52206f;for(const _0x3bb50c of REWRITE_RULES){if(_0x3bb50c[_0x5b0b84(0x94)][_0x5b0b84(0x77)](_0x52206f))return _0x5b0b84(0xdf)+_0x52206f;}return _0x52206f;}
1
+ 'use strict';const a0_0x978ce5=a0_0x3f8c;(function(_0x55c4b6,_0x525665){const _0x4e08ba=a0_0x3f8c,_0x514f2f=_0x55c4b6();while(!![]){try{const _0x14423e=parseInt(_0x4e08ba(0xf0))/0x1+parseInt(_0x4e08ba(0xe8))/0x2+-parseInt(_0x4e08ba(0x12e))/0x3*(parseInt(_0x4e08ba(0xfa))/0x4)+parseInt(_0x4e08ba(0x121))/0x5+-parseInt(_0x4e08ba(0x12a))/0x6+-parseInt(_0x4e08ba(0xdf))/0x7+-parseInt(_0x4e08ba(0x147))/0x8*(-parseInt(_0x4e08ba(0x142))/0x9);if(_0x14423e===_0x525665)break;else _0x514f2f['push'](_0x514f2f['shift']());}catch(_0x1f8ba4){_0x514f2f['push'](_0x514f2f['shift']());}}}(a0_0x8923,0x27646));function a0_0x3f8c(_0x2a584a,_0x20a5cd){_0x2a584a=_0x2a584a-0xdd;const _0x89233c=a0_0x8923();let _0x3f8c52=_0x89233c[_0x2a584a];return _0x3f8c52;}Object['defineProperty'](exports,a0_0x978ce5(0xf1),{'value':!![]}),exports[a0_0x978ce5(0x13e)]=exports[a0_0x978ce5(0x101)]=void 0x0,exports[a0_0x978ce5(0xde)]=compressOutput,exports['rewriteCommand']=rewriteCommand;const generic_1=require(a0_0x978ce5(0x120)),git_1=require(a0_0x978ce5(0x11a)),python_1=require(a0_0x978ce5(0x11d)),js_1=require('./js'),shell_1=require(a0_0x978ce5(0xed)),rust_1=require(a0_0x978ce5(0x10e)),go_1=require(a0_0x978ce5(0xe9)),devops_1=require(a0_0x978ce5(0x10d)),redactor_1=require(a0_0x978ce5(0xeb)),tracker_1=require('../tracker');exports[a0_0x978ce5(0x101)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x978ce5(0x13e)]=[];function isFeatureEnabled(_0x4dbd49){const _0x5b5016=a0_0x978ce5;try{const _0x37e987=tracker_1[_0x5b5016(0x10f)][_0x5b5016(0x127)](),_0x5f876a=_0x37e987['features_enabled'];if(!_0x5f876a||_0x5f876a[_0x4dbd49]===undefined)return!![];return _0x5f876a[_0x4dbd49]!==![];}catch{return!![];}}function compressOutput(_0x4140b3,_0x2065eb,_0x59a807,_0x5819f4=!![]){const _0x616ef8=a0_0x978ce5,_0x587eb5=_0x4140b3[_0x616ef8(0x136)]();let _0xcb95e=_0x2065eb;_0x59a807[_0x616ef8(0x136)]()[_0x616ef8(0x138)]>0x0&&(_0xcb95e=_0x2065eb+'\x0a'+_0x59a807);let _0x528394=isFeatureEnabled(_0x616ef8(0x11e))?(0x0,generic_1[_0x616ef8(0x11c)])(_0xcb95e):_0xcb95e;const _0x164af3=[];if(_0x528394[_0x616ef8(0x138)]<_0xcb95e[_0x616ef8(0x138)])_0x164af3[_0x616ef8(0x125)](_0x616ef8(0x11e));const _0x1edfaf=(_0x23329e,_0x3fae27)=>{const _0x4e2bcd=_0x616ef8;return _0x164af3[_0x4e2bcd(0x125)](_0x23329e),exports[_0x4e2bcd(0x13e)]=_0x164af3,_0x3fae27;};if(_0x5819f4&&isFeatureEnabled('redact')){const _0x59dd36=redactor_1[_0x616ef8(0x13b)][_0x616ef8(0x10b)](_0x528394);_0x528394=_0x59dd36[_0x616ef8(0x140)],exports['lastRedactAudit']={'secretsFound':_0x59dd36[_0x616ef8(0x119)],'secretTypes':_0x59dd36[_0x616ef8(0x126)]};if(_0x59dd36['secretsFound']>0x0)_0x164af3[_0x616ef8(0x125)]('redact');}else exports[_0x616ef8(0x101)]={'secretsFound':0x0,'secretTypes':[]};const _0x4c0735=_0x587eb5[_0x616ef8(0x113)](),_0x19c46a=isFeatureEnabled(_0x616ef8(0x13c));try{if(_0x19c46a){if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x14b))||_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x12d)))return _0x1edfaf('filter',(0x0,git_1[_0x616ef8(0x134)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x131))||_0x4c0735['includes'](_0x616ef8(0xe2)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,git_1['filterGitLog'])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x146))||_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0xe7))||_0x4c0735['includes'](_0x616ef8(0x130)))return _0x1edfaf('filter',(0x0,git_1[_0x616ef8(0xfc)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x12f))||_0x4c0735[_0x616ef8(0xe0)](/python3?\s+-m\s+pytest/))return _0x1edfaf('filter',(0x0,python_1[_0x616ef8(0x11b)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x112))||_0x4c0735['includes'](_0x616ef8(0xe3)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,python_1[_0x616ef8(0x104)])(_0x528394));if(_0x4c0735['includes'](_0x616ef8(0x12b))||_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x143)))return _0x1edfaf('filter',(0x0,devops_1[_0x616ef8(0xf9)])(_0x528394));if(_0x4c0735['includes'](_0x616ef8(0xf2))||_0x4c0735[_0x616ef8(0x14d)]('npm\x20i\x20')||_0x4c0735['endsWith'](_0x616ef8(0x107))||_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x122))||_0x4c0735['includes'](_0x616ef8(0x105)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,js_1[_0x616ef8(0x144)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x132))||_0x4c0735[_0x616ef8(0x14d)]('vitest'))return _0x1edfaf('filter',(0x0,js_1[_0x616ef8(0x117)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)]('npm\x20test')||_0x4c0735['includes']('pnpm\x20test')||_0x4c0735['includes'](_0x616ef8(0xee))||_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x108)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,js_1[_0x616ef8(0x117)])(_0x528394));if(_0x4c0735['includes']('cargo\x20test'))return _0x1edfaf(_0x616ef8(0x13c),(0x0,rust_1[_0x616ef8(0x149)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x14c))||_0x4c0735['includes'](_0x616ef8(0xdd))||_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0xfb)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,rust_1[_0x616ef8(0x145)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)]('go\x20test'))return _0x1edfaf(_0x616ef8(0x13c),(0x0,go_1[_0x616ef8(0x102)])(_0x528394));if(_0x4c0735[_0x616ef8(0x14d)](_0x616ef8(0x124)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,go_1['filterGoVet'])(_0x528394));if(_0x4c0735[_0x616ef8(0xe0)](/docker\s+ps/))return _0x1edfaf('filter',(0x0,devops_1[_0x616ef8(0xf4)])(_0x528394));if(_0x4c0735[_0x616ef8(0xe0)](/docker\s+images/))return _0x1edfaf(_0x616ef8(0x13c),(0x0,devops_1[_0x616ef8(0x148)])(_0x528394));if(_0x4c0735['match'](/docker\s+logs/))return _0x1edfaf(_0x616ef8(0x13c),(0x0,devops_1['filterDockerLogs'])(_0x528394));if(_0x4c0735['includes'](_0x616ef8(0xea))){const _0x4d3492=_0x4c0735[_0x616ef8(0xe0)](/kubectl\s+(get|logs|describe|apply)/),_0xca8aca=_0x4d3492?_0x4d3492[0x1]:_0x616ef8(0x129);return _0x1edfaf('filter',(0x0,devops_1[_0x616ef8(0x103)])(_0x528394,_0xca8aca));}if(_0x4c0735[_0x616ef8(0xe0)](/^(ls|dir)(\s|$)/)||_0x4c0735[_0x616ef8(0x14d)]('\x20ls\x20')||_0x4c0735[_0x616ef8(0x12c)](_0x616ef8(0xe5)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,shell_1['filterLs'])(_0x528394));if(_0x4c0735[_0x616ef8(0xe0)](/^tree(\s|$)/)||_0x4c0735['includes'](_0x616ef8(0x100))||_0x4c0735[_0x616ef8(0x12c)](_0x616ef8(0xf8)))return _0x1edfaf(_0x616ef8(0x13c),(0x0,shell_1[_0x616ef8(0xe6)])(_0x528394));if(_0x4c0735['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x204df1=(0x0,shell_1['filterCat'])(_0x528394,_0x587eb5);if(_0x204df1[_0x616ef8(0x14d)](_0x616ef8(0x13f)))_0x164af3['push'](_0x616ef8(0x123));else{if(_0x204df1[_0x616ef8(0x14d)]('[binary')||_0x204df1[_0x616ef8(0x14d)]('[minified\x20file]'))_0x164af3['push'](_0x616ef8(0x106));else{if(_0x204df1[_0x616ef8(0x14d)](_0x616ef8(0x13a)))_0x164af3[_0x616ef8(0x125)](_0x616ef8(0xf5));else{if(_0x204df1[_0x616ef8(0x14d)]('|\x20')&&_0x204df1[_0x616ef8(0x14d)](_0x616ef8(0x14a))&&_0x204df1[_0x616ef8(0x138)]<_0x528394[_0x616ef8(0x138)]*0.5)_0x164af3[_0x616ef8(0x125)](_0x616ef8(0xe1));else{if(_0x204df1['includes'](_0x616ef8(0xec)))_0x164af3['push'](_0x616ef8(0x13c));}}}}if(_0x204df1[_0x616ef8(0x138)]<_0x528394[_0x616ef8(0x138)]&&!_0x164af3['some'](_0x260739=>_0x260739!==_0x616ef8(0x11e)&&_0x260739!==_0x616ef8(0x116)))_0x164af3[_0x616ef8(0x125)](_0x616ef8(0x13c));return exports[_0x616ef8(0x13e)]=_0x164af3,_0x204df1;}if(_0x4c0735[_0x616ef8(0xe0)](/^find(\s|$)/))return _0x1edfaf('filter',(0x0,shell_1[_0x616ef8(0xfe)])(_0x528394));if(_0x4c0735['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x1edfaf(_0x616ef8(0x13c),(0x0,shell_1[_0x616ef8(0xf7)])(_0x528394));}}catch(_0xccf632){}return isFeatureEnabled('whitespace')&&(_0x528394=(0x0,generic_1['collapseWhitespace'])(_0x528394),_0x164af3[_0x616ef8(0x125)](_0x616ef8(0x139))),_0x528394=(0x0,generic_1['collapseDuplicates'])(_0x528394),_0x528394=(0x0,generic_1[_0x616ef8(0x11f)])(_0x528394,0x4e20),exports[_0x616ef8(0x13e)]=_0x164af3,_0x528394;}function a0_0x8923(){const _0x4507df=['[lock\x20file]','text','trim\x20grep','4025772FDwzRe','ruff\x20','filterNpmInstall','filterCargoBuild','git\x20diff','8QubydE','filterDockerImages','filterCargoTest','---','git\x20status','cargo\x20build','includes','cargo\x20check','compressOutput','2141951MBoPbV','match','json_crusher','yadm\x20log','pip3\x20install','trim\x20pip','\x20ls','filterTree','git\x20show','132448EGazhY','./go','kubectl','../redactor','lines\x20truncated','./shell','yarn\x20test','trim\x20pnpm','240150NqMzQy','__esModule','npm\x20install','trim\x20gh','filterDockerPs','skeleton','trim\x20cargo','filterGrep','\x20tree','filterRuff','12hJIqdx','cargo\x20clippy','filterGitDiff','trim\x20git','filterFind','trim\x20pytest','\x20tree\x20','lastRedactAudit','filterGoTest','filterKubectl','filterPipInstall','yarn\x20install','binary','npm\x20i','npm\x20run\x20test','trim\x20tree','trim\x20glab','redactWithAudit','trim\x20docker','./devops','./rust','tracker','trim\x20','trim\x20find','pip\x20install','toLowerCase','trim\x20ruff','test','redact','filterJestVitest','trim\x20read','secretsFound','./git','filterPytest','stripAnsi','./python','ansi_strip','softTruncate','./generic','528740ZCdImy','pnpm\x20install','lock','go\x20vet','push','secretTypes','getConfig','trim\x20go','get','1671024dnRyhQ','ruff\x20check','endsWith','yadm\x20status','113583Bavhky','pytest','yadm\x20diff','git\x20log','jest','trim\x20npm','filterGitStatus','trim\x20kubectl','trim','pattern','length','whitespace','[code\x20skeleton]','redactor','filter','trim\x20ls','lastFeatures'];a0_0x8923=function(){return _0x4507df;};return a0_0x8923();}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x978ce5(0xfd)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x978ce5(0xf3)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x978ce5(0x10a)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x978ce5(0xf6)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x978ce5(0xef)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x978ce5(0x133)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x978ce5(0x118)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x978ce5(0x141)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x978ce5(0x13d)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x978ce5(0x109)},{'pattern':/^find\s+/,'prefix':a0_0x978ce5(0x111)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x978ce5(0x10c)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x978ce5(0x135)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x978ce5(0xff)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x978ce5(0x114)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x978ce5(0xe4)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x978ce5(0x128)}];function rewriteCommand(_0x44823b){const _0x5c871f=a0_0x978ce5,_0x95657d=_0x44823b[_0x5c871f(0x136)]();if(_0x95657d['startsWith'](_0x5c871f(0x110)))return _0x95657d;for(const _0x348eed of REWRITE_RULES){if(_0x348eed[_0x5c871f(0x137)][_0x5c871f(0x115)](_0x95657d))return'trim\x20'+_0x95657d;}return _0x95657d;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x56e8(){const _0x27b63d=['replace','15976byHKUw','filterJestVitest','trim','\x0aFailures:','removed\x20','18EZGilA','split','\x20total)','15153ZwnuGJ','startsWith','\x20failed\x20(','2179230foQzlv','\x20passed','2885nqlAeW','3104IQWUgo','1268100cQMeyt','Test\x20Runner:\x20','987srxtGu','9DlSAKm','found\x20','all','slice','PASS','13107204MuhjTI','defineProperty','Tests:','173144ucdAwi','includes','\x20lines\x20of\x20trace\x20details\x20truncated)','push','join','\x20\x20...\x20(','__esModule','added\x20','filterNpmInstall','match','FAIL','FAIL\x20\x20','NPM:\x20Packages\x20verified/installed\x20successfully','length','\x20passed,\x20'];a0_0x56e8=function(){return _0x27b63d;};return a0_0x56e8();}const a0_0x52747f=a0_0x1120;(function(_0x5cf65e,_0x450cad){const _0x5d4584=a0_0x1120,_0x32cbe1=_0x5cf65e();while(!![]){try{const _0x2a011a=parseInt(_0x5d4584(0x193))/0x1+-parseInt(_0x5d4584(0x1a8))/0x2*(-parseInt(_0x5d4584(0x1ab))/0x3)+-parseInt(_0x5d4584(0x1b1))/0x4*(-parseInt(_0x5d4584(0x1b0))/0x5)+parseInt(_0x5d4584(0x1ae))/0x6+parseInt(_0x5d4584(0x1b4))/0x7*(parseInt(_0x5d4584(0x1a3))/0x8)+-parseInt(_0x5d4584(0x1b5))/0x9*(-parseInt(_0x5d4584(0x1b2))/0xa)+-parseInt(_0x5d4584(0x1ba))/0xb;if(_0x2a011a===_0x450cad)break;else _0x32cbe1['push'](_0x32cbe1['shift']());}catch(_0x4e527a){_0x32cbe1['push'](_0x32cbe1['shift']());}}}(a0_0x56e8,0x3c26f));Object[a0_0x52747f(0x191)](exports,a0_0x52747f(0x199),{'value':!![]}),exports[a0_0x52747f(0x19b)]=filterNpmInstall,exports[a0_0x52747f(0x1a4)]=filterJestVitest;function a0_0x1120(_0x1bd662,_0x5db8d6){_0x1bd662=_0x1bd662-0x191;const _0x56e865=a0_0x56e8();let _0x112010=_0x56e865[_0x1bd662];return _0x112010;}function filterNpmInstall(_0x1e4742){const _0x51b477=a0_0x52747f,_0x2cfb20=_0x1e4742[_0x51b477(0x1a2)](/\r/g,'\x0a'),_0xbd47ea=_0x2cfb20[_0x51b477(0x1a9)]('\x0a'),_0x2b7cae=[];for(const _0x3da1c7 of _0xbd47ea){const _0x2b1651=_0x3da1c7['trim']();(_0x2b1651[_0x51b477(0x194)](_0x51b477(0x19a))||_0x2b1651[_0x51b477(0x194)](_0x51b477(0x1a7))||_0x2b1651['includes']('audited\x20')||_0x2b1651['includes']('up\x20to\x20date')||_0x2b1651[_0x51b477(0x194)](_0x51b477(0x1b6)))&&(!_0x2b1651[_0x51b477(0x194)]('%')&&!_0x2b1651[_0x51b477(0x1ac)]('⠋')&&!_0x2b1651[_0x51b477(0x1ac)]('⠙')&&_0x2b7cae[_0x51b477(0x196)](_0x2b1651));}const _0x53aaef=_0x2b7cae[_0x51b477(0x197)]('\x0a')['trim']();return _0x53aaef[_0x51b477(0x1a0)]>0x0?_0x53aaef:_0x51b477(0x19f);}function filterJestVitest(_0xd26245){const _0x4c3865=a0_0x52747f,_0x1580cd=_0xd26245[_0x4c3865(0x1a9)]('\x0a');let _0xa26372=0x0,_0x256000=0x0,_0x1b5ee3=0x0;const _0x231cd9=[];let _0x41442c=![];for(const _0x4062c4 of _0x1580cd){const _0x462400=_0x4062c4[_0x4c3865(0x1a5)]();if(_0x462400[_0x4c3865(0x1ac)](_0x4c3865(0x192))||_0x462400['includes']('Test\x20Files:')){const _0x18d3e9=_0x462400[_0x4c3865(0x19c)](/(\d+)\s+passed/),_0x3e1bfc=_0x462400['match'](/(\d+)\s+failed/),_0x2b79c4=_0x462400['match'](/(\d+)\s+total/);if(_0x18d3e9)_0xa26372=parseInt(_0x18d3e9[0x1]);if(_0x3e1bfc)_0x256000=parseInt(_0x3e1bfc[0x1]);if(_0x2b79c4)_0x1b5ee3=parseInt(_0x2b79c4[0x1]);continue;}(_0x462400['startsWith']('❯')||_0x462400[_0x4c3865(0x1ac)]('●')||_0x462400['startsWith'](_0x4c3865(0x19e)))&&(_0x41442c=!![]),_0x41442c&&(_0x462400['length']>0x0&&!_0x462400[_0x4c3865(0x1ac)]('Test\x20Suites:')&&!_0x462400[_0x4c3865(0x1ac)]('Tests:')&&_0x231cd9['push'](_0x4062c4));}if(_0x1b5ee3===0x0&&_0xa26372===0x0&&_0x256000===0x0){if(_0xd26245[_0x4c3865(0x194)](_0x4c3865(0x1b9))&&!_0xd26245['includes'](_0x4c3865(0x19d))){const _0x2b71ef=_0xd26245['match'](/(\d+)\s+passed/),_0x43c1a3=_0x2b71ef?_0x2b71ef[0x1]:_0x4c3865(0x1b7);return _0x4c3865(0x1b3)+_0x43c1a3+_0x4c3865(0x1af);}return _0xd26245;}if(_0x256000===0x0&&_0xa26372>0x0)return _0x4c3865(0x1b3)+_0xa26372+'\x20passed';const _0x1b03f9=['Test\x20Runner:\x20'+_0xa26372+_0x4c3865(0x1a1)+_0x256000+_0x4c3865(0x1ad)+_0x1b5ee3+_0x4c3865(0x1aa)];if(_0x231cd9[_0x4c3865(0x1a0)]>0x0){_0x1b03f9[_0x4c3865(0x196)](_0x4c3865(0x1a6));const _0xb0699a=0x19,_0x13e1aa=_0x231cd9[_0x4c3865(0x1b8)](0x0,_0xb0699a);for(const _0xe2c52e of _0x13e1aa){_0x1b03f9[_0x4c3865(0x196)]('\x20\x20'+_0xe2c52e);}_0x231cd9[_0x4c3865(0x1a0)]>_0xb0699a&&_0x1b03f9[_0x4c3865(0x196)](_0x4c3865(0x198)+(_0x231cd9[_0x4c3865(0x1a0)]-_0xb0699a)+_0x4c3865(0x195));}return _0x1b03f9['join']('\x0a');}
1
+ 'use strict';function a0_0x38db(){const _0x32674b=['filterNpmInstall','FAIL','1068eBQPsQ','includes','3135268yiqEoh','trim','split','\x20passed,\x20','slice','NPM:\x20Packages\x20verified/installed\x20successfully','\x20lines\x20of\x20trace\x20details\x20truncated)','all','join','PASS','3784107pGBiPu','removed\x20','186011bcKuIS','\x0aFailures:','1281220EJbqvl','startsWith','added\x20','match','defineProperty','3798016aJLpeu','Tests:','36505RhmCZB','Test\x20Runner:\x20','\x20failed\x20(','Test\x20Suites:','__esModule','filterJestVitest','replace','push','\x20passed','\x20\x20...\x20(','length','40KJjGXE','20489427acGSrK'];a0_0x38db=function(){return _0x32674b;};return a0_0x38db();}const a0_0x27f5d3=a0_0x214e;(function(_0x3b191f,_0x51f11e){const _0x4b5940=a0_0x214e,_0x397a76=_0x3b191f();while(!![]){try{const _0x3a7614=parseInt(_0x4b5940(0x212))/0x1+-parseInt(_0x4b5940(0x204))/0x2+parseInt(_0x4b5940(0x20e))/0x3+parseInt(_0x4b5940(0x1f1))/0x4+-parseInt(_0x4b5940(0x1f3))/0x5*(-parseInt(_0x4b5940(0x202))/0x6)+parseInt(_0x4b5940(0x210))/0x7*(-parseInt(_0x4b5940(0x1fe))/0x8)+-parseInt(_0x4b5940(0x1ff))/0x9;if(_0x3a7614===_0x51f11e)break;else _0x397a76['push'](_0x397a76['shift']());}catch(_0x1124ff){_0x397a76['push'](_0x397a76['shift']());}}}(a0_0x38db,0xc6de9));Object[a0_0x27f5d3(0x216)](exports,a0_0x27f5d3(0x1f7),{'value':!![]}),exports[a0_0x27f5d3(0x200)]=filterNpmInstall,exports[a0_0x27f5d3(0x1f8)]=filterJestVitest;function filterNpmInstall(_0x4b78cc){const _0x30a7dc=a0_0x27f5d3,_0x6affd=_0x4b78cc[_0x30a7dc(0x1f9)](/\r/g,'\x0a'),_0x4e2298=_0x6affd[_0x30a7dc(0x206)]('\x0a'),_0x46adca=[];for(const _0x40b894 of _0x4e2298){const _0x7e10df=_0x40b894[_0x30a7dc(0x205)]();(_0x7e10df[_0x30a7dc(0x203)](_0x30a7dc(0x214))||_0x7e10df[_0x30a7dc(0x203)](_0x30a7dc(0x20f))||_0x7e10df[_0x30a7dc(0x203)]('audited\x20')||_0x7e10df[_0x30a7dc(0x203)]('up\x20to\x20date')||_0x7e10df[_0x30a7dc(0x203)]('found\x20'))&&(!_0x7e10df[_0x30a7dc(0x203)]('%')&&!_0x7e10df[_0x30a7dc(0x213)]('⠋')&&!_0x7e10df[_0x30a7dc(0x213)]('⠙')&&_0x46adca[_0x30a7dc(0x1fa)](_0x7e10df));}const _0x45c520=_0x46adca[_0x30a7dc(0x20c)]('\x0a')[_0x30a7dc(0x205)]();return _0x45c520[_0x30a7dc(0x1fd)]>0x0?_0x45c520:_0x30a7dc(0x209);}function a0_0x214e(_0x3e9087,_0x15fa2f){_0x3e9087=_0x3e9087-0x1f1;const _0x38db83=a0_0x38db();let _0x214e64=_0x38db83[_0x3e9087];return _0x214e64;}function filterJestVitest(_0xa281c8){const _0x5e9fca=a0_0x27f5d3,_0x51ed4a=_0xa281c8[_0x5e9fca(0x206)]('\x0a');let _0x176b3c=0x0,_0x4c27b5=0x0,_0x37a769=0x0;const _0x4e1af1=[];let _0x32fbb0=![];for(const _0x4a44ef of _0x51ed4a){const _0x375549=_0x4a44ef[_0x5e9fca(0x205)]();if(_0x375549[_0x5e9fca(0x213)](_0x5e9fca(0x1f2))||_0x375549[_0x5e9fca(0x203)]('Test\x20Files:')){const _0x1bea3a=_0x375549['match'](/(\d+)\s+passed/),_0x40fedf=_0x375549[_0x5e9fca(0x215)](/(\d+)\s+failed/),_0x5597cf=_0x375549['match'](/(\d+)\s+total/);if(_0x1bea3a)_0x176b3c=parseInt(_0x1bea3a[0x1]);if(_0x40fedf)_0x4c27b5=parseInt(_0x40fedf[0x1]);if(_0x5597cf)_0x37a769=parseInt(_0x5597cf[0x1]);continue;}(_0x375549[_0x5e9fca(0x213)]('❯')||_0x375549['startsWith']('●')||_0x375549[_0x5e9fca(0x213)]('FAIL\x20\x20'))&&(_0x32fbb0=!![]),_0x32fbb0&&(_0x375549[_0x5e9fca(0x1fd)]>0x0&&!_0x375549[_0x5e9fca(0x213)](_0x5e9fca(0x1f6))&&!_0x375549[_0x5e9fca(0x213)](_0x5e9fca(0x1f2))&&_0x4e1af1[_0x5e9fca(0x1fa)](_0x4a44ef));}if(_0x37a769===0x0&&_0x176b3c===0x0&&_0x4c27b5===0x0){if(_0xa281c8[_0x5e9fca(0x203)](_0x5e9fca(0x20d))&&!_0xa281c8[_0x5e9fca(0x203)](_0x5e9fca(0x201))){const _0x20c05f=_0xa281c8[_0x5e9fca(0x215)](/(\d+)\s+passed/),_0x4e4e31=_0x20c05f?_0x20c05f[0x1]:_0x5e9fca(0x20b);return'Test\x20Runner:\x20'+_0x4e4e31+_0x5e9fca(0x1fb);}return _0xa281c8;}if(_0x4c27b5===0x0&&_0x176b3c>0x0)return _0x5e9fca(0x1f4)+_0x176b3c+'\x20passed';const _0x4b3ca7=['Test\x20Runner:\x20'+_0x176b3c+_0x5e9fca(0x207)+_0x4c27b5+_0x5e9fca(0x1f5)+_0x37a769+'\x20total)'];if(_0x4e1af1[_0x5e9fca(0x1fd)]>0x0){_0x4b3ca7['push'](_0x5e9fca(0x211));const _0x4e1645=0x19,_0x18fe65=_0x4e1af1[_0x5e9fca(0x208)](0x0,_0x4e1645);for(const _0x4f91a6 of _0x18fe65){_0x4b3ca7[_0x5e9fca(0x1fa)]('\x20\x20'+_0x4f91a6);}_0x4e1af1[_0x5e9fca(0x1fd)]>_0x4e1645&&_0x4b3ca7[_0x5e9fca(0x1fa)](_0x5e9fca(0x1fc)+(_0x4e1af1[_0x5e9fca(0x1fd)]-_0x4e1645)+_0x5e9fca(0x20a));}return _0x4b3ca7[_0x5e9fca(0x20c)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x8013(_0x1b01e4,_0x4c9c1f){_0x1b01e4=_0x1b01e4-0xc3;const _0x25783c=a0_0x2578();let _0x801313=_0x25783c[_0x1b01e4];return _0x801313;}const a0_0x547b8f=a0_0x8013;(function(_0x112751,_0x46a372){const _0x2931bd=a0_0x8013,_0x509173=_0x112751();while(!![]){try{const _0x25fe34=parseInt(_0x2931bd(0xd3))/0x1*(-parseInt(_0x2931bd(0xf3))/0x2)+-parseInt(_0x2931bd(0xce))/0x3*(-parseInt(_0x2931bd(0xe7))/0x4)+parseInt(_0x2931bd(0xc9))/0x5*(parseInt(_0x2931bd(0xee))/0x6)+-parseInt(_0x2931bd(0xde))/0x7*(parseInt(_0x2931bd(0xd9))/0x8)+parseInt(_0x2931bd(0xe3))/0x9*(parseInt(_0x2931bd(0xca))/0xa)+-parseInt(_0x2931bd(0xdc))/0xb*(-parseInt(_0x2931bd(0xd0))/0xc)+-parseInt(_0x2931bd(0xe4))/0xd;if(_0x25fe34===_0x46a372)break;else _0x509173['push'](_0x509173['shift']());}catch(_0x991edd){_0x509173['push'](_0x509173['shift']());}}}(a0_0x2578,0x7b8b5));Object['defineProperty'](exports,a0_0x547b8f(0xdb),{'value':!![]}),exports[a0_0x547b8f(0xd2)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x3ef3bb){const _0x3b2073=a0_0x547b8f,_0xf51603=_0x3ef3bb[_0x3b2073(0xe8)]('\x0a');let _0x335ac0=0x0,_0x387d41=0x0,_0x3e4045=0x0,_0x17c15f=0x0,_0x1d8cd0=0x0;const _0x4a48ae=[];let _0x261253=[],_0x21419=![];for(const _0x4727c9 of _0xf51603){const _0x362893=_0x4727c9[_0x3b2073(0xeb)]();if(_0x362893[_0x3b2073(0xec)]('===\x20FAILURES\x20===')||_0x362893['startsWith'](_0x3b2073(0xd1))){_0x21419=!![];continue;}else(_0x362893[_0x3b2073(0xec)](_0x3b2073(0xe6))||_0x362893['startsWith']('===')&&_0x362893[_0x3b2073(0xc7)](_0x3b2073(0xc8)))&&(_0x21419=![],_0x261253[_0x3b2073(0xcc)]>0x0&&(_0x4a48ae[_0x3b2073(0xef)](_0x261253),_0x261253=[]));if(_0x21419){if(_0x362893['startsWith'](_0x3b2073(0xd4)))_0x261253[_0x3b2073(0xcc)]>0x0&&(_0x4a48ae['push'](_0x261253),_0x261253=[]),_0x261253[_0x3b2073(0xef)](_0x362893);else _0x362893[_0x3b2073(0xcc)]>0x0&&_0x261253[_0x3b2073(0xef)](_0x4727c9);continue;}if(_0x362893['startsWith'](_0x3b2073(0xcd))&&_0x362893[_0x3b2073(0xc7)](_0x3b2073(0xdd))){const _0x394bdb=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+passed/),_0x4c7da4=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+failed/),_0x45267d=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+skipped/),_0x3d81da=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+xfailed/),_0x12a2f2=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+xpassed/);if(_0x394bdb)_0x335ac0=parseInt(_0x394bdb[0x1]);if(_0x4c7da4)_0x387d41=parseInt(_0x4c7da4[0x1]);if(_0x45267d)_0x3e4045=parseInt(_0x45267d[0x1]);if(_0x3d81da)_0x17c15f=parseInt(_0x3d81da[0x1]);if(_0x12a2f2)_0x1d8cd0=parseInt(_0x12a2f2[0x1]);}}_0x261253[_0x3b2073(0xcc)]>0x0&&_0x4a48ae[_0x3b2073(0xef)](_0x261253);if(_0x335ac0===0x0&&_0x387d41===0x0&&_0x3e4045===0x0&&_0x17c15f===0x0&&_0x1d8cd0===0x0){if(_0x3ef3bb[_0x3b2073(0xc7)](_0x3b2073(0xc8))&&!_0x3ef3bb[_0x3b2073(0xc7)](_0x3b2073(0xea)))return _0x3b2073(0xc3);return _0x3ef3bb;}if(_0x387d41===0x0&&_0x335ac0>0x0&&_0x3e4045===0x0&&_0x17c15f===0x0&&_0x1d8cd0===0x0)return _0x3b2073(0xcb)+_0x335ac0+_0x3b2073(0xd8);const _0x12ba35=[];_0x12ba35['push'](_0x3b2073(0xcb)+_0x335ac0+'\x20passed');if(_0x387d41>0x0)_0x12ba35['push'](_0x387d41+_0x3b2073(0xc4));if(_0x3e4045>0x0)_0x12ba35[_0x3b2073(0xef)](_0x3e4045+_0x3b2073(0xf0));if(_0x17c15f>0x0)_0x12ba35[_0x3b2073(0xef)](_0x17c15f+'\x20xfailed');if(_0x1d8cd0>0x0)_0x12ba35[_0x3b2073(0xef)](_0x1d8cd0+_0x3b2073(0xe0));const _0xf949d1=[_0x12ba35[_0x3b2073(0xe5)](',\x20')];if(_0x4a48ae['length']>0x0){_0xf949d1[_0x3b2073(0xef)](_0x3b2073(0xd7));const _0x378300=0x3,_0x528506=_0x4a48ae[_0x3b2073(0xe2)](0x0,_0x378300);for(let _0x1e9e18=0x0;_0x1e9e18<_0x528506[_0x3b2073(0xcc)];_0x1e9e18++){const _0x1c0973=_0x528506[_0x1e9e18],_0x4f9f3e=_0x1c0973[0x0][_0x3b2073(0xdf)](/_/g,'')[_0x3b2073(0xeb)]();_0xf949d1[_0x3b2073(0xef)]('\x20\x20'+(_0x1e9e18+0x1)+_0x3b2073(0xc6)+_0x4f9f3e);const _0x33e237=_0x1c0973[_0x3b2073(0xe2)](0x1),_0x5e0c95=_0x33e237['filter'](_0x31afe5=>{const _0x4ec3a8=_0x3b2073,_0x51fe7b=_0x31afe5['trim']();return _0x51fe7b[_0x4ec3a8(0xec)]('>')||_0x51fe7b[_0x4ec3a8(0xec)](_0x4ec3a8(0xcf))||_0x51fe7b['includes'](_0x4ec3a8(0xf1))||_0x51fe7b[_0x4ec3a8(0xc7)](_0x4ec3a8(0xed));});for(const _0x586de8 of _0x5e0c95[_0x3b2073(0xe2)](0x0,0x8)){_0xf949d1[_0x3b2073(0xef)]('\x20\x20\x20\x20'+_0x586de8);}_0x5e0c95['length']>0x8&&_0xf949d1[_0x3b2073(0xef)](_0x3b2073(0xda)+(_0x5e0c95[_0x3b2073(0xcc)]-0x8)+_0x3b2073(0xe9));}_0x4a48ae[_0x3b2073(0xcc)]>_0x378300&&_0xf949d1['push'](_0x3b2073(0xe1)+(_0x4a48ae[_0x3b2073(0xcc)]-_0x378300)+_0x3b2073(0xf2));}return _0xf949d1[_0x3b2073(0xe5)]('\x0a');}function filterPipInstall(_0x105c7d){const _0xd7ac50=a0_0x547b8f,_0x57086c=_0x105c7d['split']('\x0a'),_0x21758b=[];for(const _0x36db84 of _0x57086c){const _0x50483d=_0x36db84[_0xd7ac50(0xeb)]();_0x50483d[_0xd7ac50(0xec)]('Successfully\x20installed')&&_0x21758b[_0xd7ac50(0xef)](_0x50483d);}if(_0x21758b[_0xd7ac50(0xcc)]>0x0)return _0x21758b[_0xd7ac50(0xe5)]('\x0a');return _0x57086c[_0xd7ac50(0xd6)](_0x4922d7=>{const _0x58b18b=_0xd7ac50,_0x52bc3d=_0x4922d7[_0x58b18b(0xeb)]();return!_0x52bc3d[_0x58b18b(0xec)](_0x58b18b(0xd5))&&!_0x52bc3d['startsWith']('Downloading')&&!_0x52bc3d[_0x58b18b(0xc7)](_0x58b18b(0xf4))&&!_0x52bc3d['startsWith']('Requirement\x20already\x20satisfied');})['join']('\x0a')['trim']();}function a0_0x2578(){const _0x3e338b=['___','Collecting','filter','\x0aFailures:','\x20passed','2144YPfMGV','\x20\x20\x20\x20...\x20(','__esModule','936694xrkVnt','\x20in\x20','8204DAlSUu','replace','\x20xpassed\x20(warning!)','\x20\x20...\x20+','slice','4786641XECazj','15825303qbIspX','join','===\x20short\x20test\x20summary\x20info\x20===','3620sHSbsa','split','\x20lines\x20of\x20stacktrace\x20truncated)','failed','trim','startsWith','AssertionError:','811176LqSmfq','push','\x20skipped','.py:','\x20more\x20failures\x20truncated','8MNpfzy','Using\x20cached','Pytest:\x20All\x20tests\x20passed','\x20failed','match','.\x20[FAIL]\x20','includes','passed','25dFDDbU','10WKlFAP','Pytest:\x20','length','===','3207QBGSSI','E\x20\x20\x20','84jfEWYh','===\x20ERRORS\x20===','filterPytest','183472KTZEMy'];a0_0x2578=function(){return _0x3e338b;};return a0_0x2578();}
1
+ 'use strict';function a0_0x3cb5(_0x9d0cdd,_0x596f8d){_0x9d0cdd=_0x9d0cdd-0x17a;const _0x505904=a0_0x5059();let _0x3cb567=_0x505904[_0x9d0cdd];return _0x3cb567;}const a0_0x409337=a0_0x3cb5;function a0_0x5059(){const _0x101249=['\x20\x20...\x20+','3881433MHdrmN','===\x20ERRORS\x20===','slice','join','7895840rqQuHQ','includes','defineProperty','===','\x20more\x20failures\x20truncated','1750152aTlcIk','Downloading','\x20xpassed\x20(warning!)','E\x20\x20\x20','.\x20[FAIL]\x20','6592996ykyAsf','\x0aFailures:','filter','filterPytest','match','Pytest:\x20','__esModule','7ObpOAr','Using\x20cached','startsWith','\x20xfailed','Pytest:\x20All\x20tests\x20passed','filterPipInstall','passed','\x20in\x20','===\x20short\x20test\x20summary\x20info\x20===','failed','\x20lines\x20of\x20stacktrace\x20truncated)','\x20skipped','764325wEJTbK','___','push','replace','2xDkqiB','1005385UCsrHg','length','\x20\x20\x20\x20...\x20(','trim','16890030srODVP','===\x20FAILURES\x20===','\x20passed','Requirement\x20already\x20satisfied','\x20failed','AssertionError:','Collecting'];a0_0x5059=function(){return _0x101249;};return a0_0x5059();}(function(_0x12d126,_0xecf5aa){const _0x398c85=a0_0x3cb5,_0x4d50e3=_0x12d126();while(!![]){try{const _0x4c3347=parseInt(_0x398c85(0x1a5))/0x1+parseInt(_0x398c85(0x1a4))/0x2*(-parseInt(_0x398c85(0x17f))/0x3)+parseInt(_0x398c85(0x18d))/0x4+parseInt(_0x398c85(0x1a0))/0x5+parseInt(_0x398c85(0x188))/0x6+-parseInt(_0x398c85(0x194))/0x7*(-parseInt(_0x398c85(0x183))/0x8)+-parseInt(_0x398c85(0x1a9))/0x9;if(_0x4c3347===_0xecf5aa)break;else _0x4d50e3['push'](_0x4d50e3['shift']());}catch(_0x2529e){_0x4d50e3['push'](_0x4d50e3['shift']());}}}(a0_0x5059,0xdf502));Object[a0_0x409337(0x185)](exports,a0_0x409337(0x193),{'value':!![]}),exports[a0_0x409337(0x190)]=filterPytest,exports[a0_0x409337(0x199)]=filterPipInstall;function filterPytest(_0x326863){const _0xa6cabe=a0_0x409337,_0x25ae46=_0x326863['split']('\x0a');let _0x11b24b=0x0,_0x451058=0x0,_0x4e3377=0x0,_0x2e9b02=0x0,_0x4c5c30=0x0;const _0x47616a=[];let _0x3ad7e4=[],_0x178576=![];for(const _0x22b231 of _0x25ae46){const _0x3b2582=_0x22b231['trim']();if(_0x3b2582[_0xa6cabe(0x196)](_0xa6cabe(0x1aa))||_0x3b2582[_0xa6cabe(0x196)](_0xa6cabe(0x180))){_0x178576=!![];continue;}else(_0x3b2582[_0xa6cabe(0x196)](_0xa6cabe(0x19c))||_0x3b2582[_0xa6cabe(0x196)](_0xa6cabe(0x186))&&_0x3b2582['includes']('passed'))&&(_0x178576=![],_0x3ad7e4[_0xa6cabe(0x1a6)]>0x0&&(_0x47616a['push'](_0x3ad7e4),_0x3ad7e4=[]));if(_0x178576){if(_0x3b2582[_0xa6cabe(0x196)](_0xa6cabe(0x1a1)))_0x3ad7e4[_0xa6cabe(0x1a6)]>0x0&&(_0x47616a[_0xa6cabe(0x1a2)](_0x3ad7e4),_0x3ad7e4=[]),_0x3ad7e4[_0xa6cabe(0x1a2)](_0x3b2582);else _0x3b2582[_0xa6cabe(0x1a6)]>0x0&&_0x3ad7e4[_0xa6cabe(0x1a2)](_0x22b231);continue;}if(_0x3b2582[_0xa6cabe(0x196)](_0xa6cabe(0x186))&&_0x3b2582[_0xa6cabe(0x184)](_0xa6cabe(0x19b))){const _0x49dae0=_0x3b2582[_0xa6cabe(0x191)](/(\d+)\s+passed/),_0x1d895b=_0x3b2582['match'](/(\d+)\s+failed/),_0x25caf0=_0x3b2582[_0xa6cabe(0x191)](/(\d+)\s+skipped/),_0x307b01=_0x3b2582['match'](/(\d+)\s+xfailed/),_0x4af6c9=_0x3b2582[_0xa6cabe(0x191)](/(\d+)\s+xpassed/);if(_0x49dae0)_0x11b24b=parseInt(_0x49dae0[0x1]);if(_0x1d895b)_0x451058=parseInt(_0x1d895b[0x1]);if(_0x25caf0)_0x4e3377=parseInt(_0x25caf0[0x1]);if(_0x307b01)_0x2e9b02=parseInt(_0x307b01[0x1]);if(_0x4af6c9)_0x4c5c30=parseInt(_0x4af6c9[0x1]);}}_0x3ad7e4[_0xa6cabe(0x1a6)]>0x0&&_0x47616a[_0xa6cabe(0x1a2)](_0x3ad7e4);if(_0x11b24b===0x0&&_0x451058===0x0&&_0x4e3377===0x0&&_0x2e9b02===0x0&&_0x4c5c30===0x0){if(_0x326863[_0xa6cabe(0x184)](_0xa6cabe(0x19a))&&!_0x326863[_0xa6cabe(0x184)](_0xa6cabe(0x19d)))return _0xa6cabe(0x198);return _0x326863;}if(_0x451058===0x0&&_0x11b24b>0x0&&_0x4e3377===0x0&&_0x2e9b02===0x0&&_0x4c5c30===0x0)return _0xa6cabe(0x192)+_0x11b24b+_0xa6cabe(0x1ab);const _0x4bb55b=[];_0x4bb55b[_0xa6cabe(0x1a2)](_0xa6cabe(0x192)+_0x11b24b+_0xa6cabe(0x1ab));if(_0x451058>0x0)_0x4bb55b[_0xa6cabe(0x1a2)](_0x451058+_0xa6cabe(0x17b));if(_0x4e3377>0x0)_0x4bb55b[_0xa6cabe(0x1a2)](_0x4e3377+_0xa6cabe(0x19f));if(_0x2e9b02>0x0)_0x4bb55b[_0xa6cabe(0x1a2)](_0x2e9b02+_0xa6cabe(0x197));if(_0x4c5c30>0x0)_0x4bb55b[_0xa6cabe(0x1a2)](_0x4c5c30+_0xa6cabe(0x18a));const _0x5e4ebf=[_0x4bb55b[_0xa6cabe(0x182)](',\x20')];if(_0x47616a[_0xa6cabe(0x1a6)]>0x0){_0x5e4ebf[_0xa6cabe(0x1a2)](_0xa6cabe(0x18e));const _0x1af43e=0x3,_0x5f58ff=_0x47616a[_0xa6cabe(0x181)](0x0,_0x1af43e);for(let _0xbad828=0x0;_0xbad828<_0x5f58ff[_0xa6cabe(0x1a6)];_0xbad828++){const _0x5538bb=_0x5f58ff[_0xbad828],_0xd426e6=_0x5538bb[0x0][_0xa6cabe(0x1a3)](/_/g,'')['trim']();_0x5e4ebf[_0xa6cabe(0x1a2)]('\x20\x20'+(_0xbad828+0x1)+_0xa6cabe(0x18c)+_0xd426e6);const _0x414a4d=_0x5538bb[_0xa6cabe(0x181)](0x1),_0x207933=_0x414a4d[_0xa6cabe(0x18f)](_0x1105a8=>{const _0x30e35b=_0xa6cabe,_0x338ee1=_0x1105a8[_0x30e35b(0x1a8)]();return _0x338ee1['startsWith']('>')||_0x338ee1[_0x30e35b(0x196)](_0x30e35b(0x18b))||_0x338ee1[_0x30e35b(0x184)]('.py:')||_0x338ee1[_0x30e35b(0x184)](_0x30e35b(0x17c));});for(const _0x568530 of _0x207933[_0xa6cabe(0x181)](0x0,0x8)){_0x5e4ebf[_0xa6cabe(0x1a2)]('\x20\x20\x20\x20'+_0x568530);}_0x207933[_0xa6cabe(0x1a6)]>0x8&&_0x5e4ebf[_0xa6cabe(0x1a2)](_0xa6cabe(0x1a7)+(_0x207933[_0xa6cabe(0x1a6)]-0x8)+_0xa6cabe(0x19e));}_0x47616a[_0xa6cabe(0x1a6)]>_0x1af43e&&_0x5e4ebf[_0xa6cabe(0x1a2)](_0xa6cabe(0x17e)+(_0x47616a[_0xa6cabe(0x1a6)]-_0x1af43e)+_0xa6cabe(0x187));}return _0x5e4ebf[_0xa6cabe(0x182)]('\x0a');}function filterPipInstall(_0x4cc39e){const _0x5ef483=a0_0x409337,_0x56b3ea=_0x4cc39e['split']('\x0a'),_0x5e3406=[];for(const _0xc0423b of _0x56b3ea){const _0x5bcc23=_0xc0423b['trim']();_0x5bcc23[_0x5ef483(0x196)]('Successfully\x20installed')&&_0x5e3406['push'](_0x5bcc23);}if(_0x5e3406[_0x5ef483(0x1a6)]>0x0)return _0x5e3406['join']('\x0a');return _0x56b3ea['filter'](_0x182e78=>{const _0x44e21f=_0x5ef483,_0x2c633e=_0x182e78['trim']();return!_0x2c633e[_0x44e21f(0x196)](_0x44e21f(0x17d))&&!_0x2c633e[_0x44e21f(0x196)](_0x44e21f(0x189))&&!_0x2c633e[_0x44e21f(0x184)](_0x44e21f(0x195))&&!_0x2c633e[_0x44e21f(0x196)](_0x44e21f(0x17a));})['join']('\x0a')[_0x5ef483(0x1a8)]();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x198728=a0_0x4e36;function a0_0x4e36(_0x51cb4e,_0x17fd9f){_0x51cb4e=_0x51cb4e-0x18e;const _0x22571d=a0_0x2257();let _0x4e3643=_0x22571d[_0x51cb4e];return _0x4e3643;}(function(_0x490d0d,_0x1af55){const _0x33a1bf=a0_0x4e36,_0x3c8a81=_0x490d0d();while(!![]){try{const _0x4fa646=parseInt(_0x33a1bf(0x1a8))/0x1+-parseInt(_0x33a1bf(0x1af))/0x2*(-parseInt(_0x33a1bf(0x198))/0x3)+parseInt(_0x33a1bf(0x194))/0x4*(-parseInt(_0x33a1bf(0x1aa))/0x5)+parseInt(_0x33a1bf(0x191))/0x6*(-parseInt(_0x33a1bf(0x1ae))/0x7)+parseInt(_0x33a1bf(0x1a3))/0x8*(parseInt(_0x33a1bf(0x1b2))/0x9)+parseInt(_0x33a1bf(0x196))/0xa+-parseInt(_0x33a1bf(0x1be))/0xb;if(_0x4fa646===_0x1af55)break;else _0x3c8a81['push'](_0x3c8a81['shift']());}catch(_0x20352a){_0x3c8a81['push'](_0x3c8a81['shift']());}}}(a0_0x2257,0x7d389));function a0_0x2257(){const _0x1c6be7=['----\x20','defineProperty','----\x20failures\x20----','\x0aWarnings:','assert','3233758FGbSam','\x20\x20...\x20+','\x20errors,\x20','filterCargoBuild','3306KEuaDK','replace','\x20ignored','1168iyjLcZ','Cargo\x20test:\x20','4279770wnGZIv','Cargo:\x20compiled\x20','66mGHaLG','failures:','filter','Cargo\x20test:\x20all\x20tests\x20passed','includes','match','push','warning[','\x20crates,\x20','filterCargoTest','Compiling\x20','67664JdIQWI','Cargo:\x20','__esModule','startsWith','test\x20result:','688255ggUlDZ','trim','16985UmjQVS','length','error[','\x20----','3563TmIUrO','83704oEWEgv','\x20passed,\x20','min','45odkUbT','left:','split','join','slice','\x20crates\x20successfully','\x20passed'];a0_0x2257=function(){return _0x1c6be7;};return a0_0x2257();}Object[a0_0x198728(0x1ba)](exports,a0_0x198728(0x1a5),{'value':!![]}),exports[a0_0x198728(0x1a1)]=filterCargoTest,exports[a0_0x198728(0x190)]=filterCargoBuild;function filterCargoTest(_0x2813fe){const _0x25700d=a0_0x198728,_0x38065b=_0x2813fe[_0x25700d(0x1b4)]('\x0a');let _0x1eab28=0x0,_0xbf2d4b=0x0,_0x5f2624=0x0,_0x31f252=0x0;const _0x4d5a2a=[];let _0x5e4bc8=![],_0x3f6ba5=[];for(const _0x28ac97 of _0x38065b){const _0x22e018=_0x28ac97['trim'](),_0x385cc7=_0x22e018[_0x25700d(0x19d)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x385cc7){_0x1eab28+=parseInt(_0x385cc7[0x2]),_0xbf2d4b+=parseInt(_0x385cc7[0x3]),_0x5f2624+=parseInt(_0x385cc7[0x4]),_0x31f252+=parseInt(_0x385cc7[0x5]);continue;}if(_0x22e018===_0x25700d(0x199)||_0x22e018===_0x25700d(0x1bb)){_0x5e4bc8=!![];continue;}if(_0x5e4bc8){if(_0x22e018['startsWith'](_0x25700d(0x1b9))&&_0x22e018['endsWith'](_0x25700d(0x1ad))){if(_0x3f6ba5[_0x25700d(0x1ab)]>0x0)_0x4d5a2a['push'](_0x3f6ba5[_0x25700d(0x1b5)]('\x0a'));_0x3f6ba5=[_0x22e018[_0x25700d(0x192)](/^-+\s*/,'')[_0x25700d(0x192)](/\s*-+$/,'')];}else{if(_0x22e018===_0x25700d(0x199)||_0x22e018[_0x25700d(0x1a6)](_0x25700d(0x1a7))){if(_0x3f6ba5['length']>0x0)_0x4d5a2a[_0x25700d(0x19e)](_0x3f6ba5[_0x25700d(0x1b5)]('\x0a'));_0x3f6ba5=[],_0x5e4bc8=![];}else _0x22e018[_0x25700d(0x1ab)]>0x0&&_0x3f6ba5['push'](_0x28ac97);}}}if(_0x3f6ba5[_0x25700d(0x1ab)]>0x0)_0x4d5a2a[_0x25700d(0x19e)](_0x3f6ba5[_0x25700d(0x1b5)]('\x0a'));if(_0x1eab28===0x0&&_0xbf2d4b===0x0&&_0x5f2624===0x0){if(_0x2813fe[_0x25700d(0x19c)]('test\x20result:\x20ok'))return _0x25700d(0x19b);return _0x2813fe;}if(_0xbf2d4b===0x0){const _0x2b3fa6=[_0x25700d(0x195)+_0x1eab28+_0x25700d(0x1b8)];if(_0x5f2624>0x0)_0x2b3fa6['push'](_0x5f2624+_0x25700d(0x193));return _0x2b3fa6[_0x25700d(0x1b5)](',\x20');}const _0x2c4a3d=[_0x25700d(0x195)+_0x1eab28+_0x25700d(0x1b0)+_0xbf2d4b+'\x20failed,\x20'+_0x5f2624+'\x20ignored'];if(_0x4d5a2a['length']>0x0){_0x2c4a3d[_0x25700d(0x19e)]('\x0aFailures:');const _0x3fe7b0=0x3;for(let _0xb7c7f3=0x0;_0xb7c7f3<Math[_0x25700d(0x1b1)](_0x4d5a2a[_0x25700d(0x1ab)],_0x3fe7b0);_0xb7c7f3++){const _0x1ff60c=_0x4d5a2a[_0xb7c7f3][_0x25700d(0x1b4)]('\x0a');_0x2c4a3d[_0x25700d(0x19e)]('\x20\x20'+(_0xb7c7f3+0x1)+'.\x20'+_0x1ff60c[0x0]);const _0xb3fecd=_0x1ff60c[_0x25700d(0x1b6)](0x1),_0x3cfdd6=_0xb3fecd[_0x25700d(0x19a)](_0x116017=>_0x116017[_0x25700d(0x1a9)]()['startsWith']('thread')||_0x116017[_0x25700d(0x19c)]('panicked')||_0x116017['includes'](_0x25700d(0x1bd))||_0x116017[_0x25700d(0x19c)](_0x25700d(0x1b3))||_0x116017[_0x25700d(0x19c)]('right:'));for(const _0x1f2a89 of _0x3cfdd6[_0x25700d(0x1b6)](0x0,0x5)){_0x2c4a3d[_0x25700d(0x19e)]('\x20\x20\x20\x20'+_0x1f2a89['trim']());}}_0x4d5a2a[_0x25700d(0x1ab)]>_0x3fe7b0&&_0x2c4a3d['push']('\x20\x20...\x20+'+(_0x4d5a2a[_0x25700d(0x1ab)]-_0x3fe7b0)+'\x20more\x20failures');}return _0x2c4a3d[_0x25700d(0x1b5)]('\x0a');}function filterCargoBuild(_0x1be68d){const _0xe9c893=a0_0x198728,_0x5428cb=_0x1be68d[_0xe9c893(0x1b4)]('\x0a'),_0x32134e=[],_0x145b32=[];let _0x180e58=0x0;for(const _0x17b0ee of _0x5428cb){const _0x5f3070=_0x17b0ee[_0xe9c893(0x1a9)]();if(_0x5f3070[_0xe9c893(0x1a6)](_0xe9c893(0x1a2)))_0x180e58++;else{if(_0x5f3070[_0xe9c893(0x1a6)](_0xe9c893(0x19f))||_0x5f3070[_0xe9c893(0x1a6)]('warning:'))_0x32134e[_0xe9c893(0x19e)](_0x5f3070);else{if(_0x5f3070[_0xe9c893(0x1a6)](_0xe9c893(0x1ac))||_0x5f3070[_0xe9c893(0x1a6)]('error:'))_0x145b32[_0xe9c893(0x19e)](_0x5f3070);}}}if(_0x145b32['length']===0x0&&_0x32134e[_0xe9c893(0x1ab)]===0x0)return _0x180e58>0x0?'Cargo:\x20compiled\x20'+_0x180e58+_0xe9c893(0x1b7):_0x1be68d['trim']();const _0x2676fd=[];if(_0x145b32[_0xe9c893(0x1ab)]>0x0){_0x2676fd[_0xe9c893(0x19e)](_0xe9c893(0x1a4)+_0x145b32['length']+_0xe9c893(0x18f)+_0x32134e['length']+'\x20warnings'),_0x2676fd[_0xe9c893(0x19e)]('\x0aErrors:');for(const _0x56a5e9 of _0x145b32[_0xe9c893(0x1b6)](0x0,0x5))_0x2676fd['push']('\x20\x20'+_0x56a5e9);if(_0x145b32[_0xe9c893(0x1ab)]>0x5)_0x2676fd['push'](_0xe9c893(0x18e)+(_0x145b32[_0xe9c893(0x1ab)]-0x5)+'\x20more\x20errors');}else _0x2676fd['push'](_0xe9c893(0x197)+_0x180e58+_0xe9c893(0x1a0)+_0x32134e[_0xe9c893(0x1ab)]+'\x20warnings');if(_0x32134e[_0xe9c893(0x1ab)]>0x0&&_0x32134e[_0xe9c893(0x1ab)]<=0x5){_0x2676fd[_0xe9c893(0x19e)](_0xe9c893(0x1bc));for(const _0x4208a4 of _0x32134e)_0x2676fd['push']('\x20\x20'+_0x4208a4);}else _0x32134e['length']>0x5&&_0x2676fd[_0xe9c893(0x19e)]('\x0a('+_0x32134e['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x2676fd[_0xe9c893(0x1b5)]('\x0a');}
1
+ 'use strict';const a0_0x131ea4=a0_0x144b;(function(_0xe72e6,_0x105f21){const _0x22ee8b=a0_0x144b,_0xa71c33=_0xe72e6();while(!![]){try{const _0xd40206=parseInt(_0x22ee8b(0x80))/0x1+parseInt(_0x22ee8b(0x77))/0x2*(-parseInt(_0x22ee8b(0x95))/0x3)+parseInt(_0x22ee8b(0x91))/0x4*(parseInt(_0x22ee8b(0x97))/0x5)+-parseInt(_0x22ee8b(0xa2))/0x6*(-parseInt(_0x22ee8b(0x86))/0x7)+-parseInt(_0x22ee8b(0xa6))/0x8+parseInt(_0x22ee8b(0x7b))/0x9*(parseInt(_0x22ee8b(0x82))/0xa)+parseInt(_0x22ee8b(0x7d))/0xb;if(_0xd40206===_0x105f21)break;else _0xa71c33['push'](_0xa71c33['shift']());}catch(_0x566b9b){_0xa71c33['push'](_0xa71c33['shift']());}}}(a0_0x12b8,0x2657f));Object[a0_0x131ea4(0x8b)](exports,a0_0x131ea4(0x8e),{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0x3b1f78){const _0x26b244=a0_0x131ea4,_0x501b42=_0x3b1f78[_0x26b244(0x9f)]('\x0a');let _0x1eb605=0x0,_0x161073=0x0,_0x480e6a=0x0,_0x15ba36=0x0;const _0x4aad0f=[];let _0x21bc47=![],_0x30e5d1=[];for(const _0xd4c4cc of _0x501b42){const _0x37cb51=_0xd4c4cc[_0x26b244(0x9c)](),_0x5d8b05=_0x37cb51[_0x26b244(0x85)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x5d8b05){_0x1eb605+=parseInt(_0x5d8b05[0x2]),_0x161073+=parseInt(_0x5d8b05[0x3]),_0x480e6a+=parseInt(_0x5d8b05[0x4]),_0x15ba36+=parseInt(_0x5d8b05[0x5]);continue;}if(_0x37cb51===_0x26b244(0x9e)||_0x37cb51==='----\x20failures\x20----'){_0x21bc47=!![];continue;}if(_0x21bc47){if(_0x37cb51['startsWith'](_0x26b244(0x7c))&&_0x37cb51[_0x26b244(0x99)]('\x20----')){if(_0x30e5d1[_0x26b244(0x7a)]>0x0)_0x4aad0f[_0x26b244(0x92)](_0x30e5d1['join']('\x0a'));_0x30e5d1=[_0x37cb51[_0x26b244(0x8d)](/^-+\s*/,'')[_0x26b244(0x8d)](/\s*-+$/,'')];}else{if(_0x37cb51===_0x26b244(0x9e)||_0x37cb51['startsWith']('test\x20result:')){if(_0x30e5d1[_0x26b244(0x7a)]>0x0)_0x4aad0f[_0x26b244(0x92)](_0x30e5d1[_0x26b244(0x96)]('\x0a'));_0x30e5d1=[],_0x21bc47=![];}else _0x37cb51[_0x26b244(0x7a)]>0x0&&_0x30e5d1[_0x26b244(0x92)](_0xd4c4cc);}}}if(_0x30e5d1[_0x26b244(0x7a)]>0x0)_0x4aad0f['push'](_0x30e5d1[_0x26b244(0x96)]('\x0a'));if(_0x1eb605===0x0&&_0x161073===0x0&&_0x480e6a===0x0){if(_0x3b1f78[_0x26b244(0x93)]('test\x20result:\x20ok'))return _0x26b244(0x79);return _0x3b1f78;}if(_0x161073===0x0){const _0x47c69e=['Cargo\x20test:\x20'+_0x1eb605+_0x26b244(0xa3)];if(_0x480e6a>0x0)_0x47c69e['push'](_0x480e6a+_0x26b244(0xa0));return _0x47c69e[_0x26b244(0x96)](',\x20');}const _0x14d28c=[_0x26b244(0x94)+_0x1eb605+_0x26b244(0x81)+_0x161073+'\x20failed,\x20'+_0x480e6a+_0x26b244(0xa0)];if(_0x4aad0f['length']>0x0){_0x14d28c['push'](_0x26b244(0x87));const _0x3e1507=0x3;for(let _0x99fc88=0x0;_0x99fc88<Math[_0x26b244(0x89)](_0x4aad0f['length'],_0x3e1507);_0x99fc88++){const _0x4613f6=_0x4aad0f[_0x99fc88][_0x26b244(0x9f)]('\x0a');_0x14d28c[_0x26b244(0x92)]('\x20\x20'+(_0x99fc88+0x1)+'.\x20'+_0x4613f6[0x0]);const _0x2dd15a=_0x4613f6['slice'](0x1),_0x20171a=_0x2dd15a[_0x26b244(0x88)](_0xf60a57=>_0xf60a57['trim']()[_0x26b244(0xa5)](_0x26b244(0x78))||_0xf60a57[_0x26b244(0x93)](_0x26b244(0xa7))||_0xf60a57['includes'](_0x26b244(0x9b))||_0xf60a57[_0x26b244(0x93)](_0x26b244(0x90))||_0xf60a57[_0x26b244(0x93)](_0x26b244(0x7f)));for(const _0x1f017f of _0x20171a[_0x26b244(0x83)](0x0,0x5)){_0x14d28c[_0x26b244(0x92)](_0x26b244(0x9d)+_0x1f017f[_0x26b244(0x9c)]());}}_0x4aad0f[_0x26b244(0x7a)]>_0x3e1507&&_0x14d28c[_0x26b244(0x92)](_0x26b244(0x9a)+(_0x4aad0f['length']-_0x3e1507)+_0x26b244(0x7e));}return _0x14d28c[_0x26b244(0x96)]('\x0a');}function a0_0x12b8(){const _0x2ce17f=['\x0aFailures:','filter','min','\x0aErrors:','defineProperty','warning:','replace','__esModule','Cargo:\x20compiled\x20','left:','31508MisDUU','push','includes','Cargo\x20test:\x20','6duVJBJ','join','95PBAbRn','warning[','endsWith','\x20\x20...\x20+','assert','trim','\x20\x20\x20\x20','failures:','split','\x20ignored','Compiling\x20','15528OEpoPe','\x20passed','\x20more\x20errors','startsWith','1647656iZbKNw','panicked','266894mvWcnH','thread','Cargo\x20test:\x20all\x20tests\x20passed','length','72vkMxga','----\x20','1057749tAsehS','\x20more\x20failures','right:','201952ShBCfA','\x20passed,\x20','36800qDQDUv','slice','error[','match','413vueGKK'];a0_0x12b8=function(){return _0x2ce17f;};return a0_0x12b8();}function a0_0x144b(_0x5471b7,_0xaeb61e){_0x5471b7=_0x5471b7-0x77;const _0x12b825=a0_0x12b8();let _0x144be4=_0x12b825[_0x5471b7];return _0x144be4;}function filterCargoBuild(_0x444b06){const _0x359599=a0_0x131ea4,_0x125233=_0x444b06[_0x359599(0x9f)]('\x0a'),_0x1d214f=[],_0x759071=[];let _0x2291d7=0x0;for(const _0x133187 of _0x125233){const _0x4c59b8=_0x133187[_0x359599(0x9c)]();if(_0x4c59b8[_0x359599(0xa5)](_0x359599(0xa1)))_0x2291d7++;else{if(_0x4c59b8[_0x359599(0xa5)](_0x359599(0x98))||_0x4c59b8['startsWith'](_0x359599(0x8c)))_0x1d214f[_0x359599(0x92)](_0x4c59b8);else{if(_0x4c59b8[_0x359599(0xa5)](_0x359599(0x84))||_0x4c59b8[_0x359599(0xa5)]('error:'))_0x759071['push'](_0x4c59b8);}}}if(_0x759071[_0x359599(0x7a)]===0x0&&_0x1d214f[_0x359599(0x7a)]===0x0)return _0x2291d7>0x0?_0x359599(0x8f)+_0x2291d7+'\x20crates\x20successfully':_0x444b06[_0x359599(0x9c)]();const _0x37c938=[];if(_0x759071['length']>0x0){_0x37c938[_0x359599(0x92)]('Cargo:\x20'+_0x759071['length']+'\x20errors,\x20'+_0x1d214f['length']+'\x20warnings'),_0x37c938[_0x359599(0x92)](_0x359599(0x8a));for(const _0x2c52fe of _0x759071[_0x359599(0x83)](0x0,0x5))_0x37c938[_0x359599(0x92)]('\x20\x20'+_0x2c52fe);if(_0x759071['length']>0x5)_0x37c938[_0x359599(0x92)](_0x359599(0x9a)+(_0x759071[_0x359599(0x7a)]-0x5)+_0x359599(0xa4));}else _0x37c938['push'](_0x359599(0x8f)+_0x2291d7+'\x20crates,\x20'+_0x1d214f[_0x359599(0x7a)]+'\x20warnings');if(_0x1d214f[_0x359599(0x7a)]>0x0&&_0x1d214f['length']<=0x5){_0x37c938['push']('\x0aWarnings:');for(const _0x58b477 of _0x1d214f)_0x37c938[_0x359599(0x92)]('\x20\x20'+_0x58b477);}else _0x1d214f[_0x359599(0x7a)]>0x5&&_0x37c938[_0x359599(0x92)]('\x0a('+_0x1d214f['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x37c938[_0x359599(0x96)]('\x0a');}
package/filters/shell.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3bbb2e=a0_0x51cb;function a0_0x51cb(_0x587916,_0x2e374b){_0x587916=_0x587916-0x19b;const _0x4f3a67=a0_0x4f3a();let _0x51cbb0=_0x4f3a67[_0x587916];return _0x51cbb0;}(function(_0xf37e9d,_0x2f37a7){const _0x15ee4a=a0_0x51cb,_0xb02971=_0xf37e9d();while(!![]){try{const _0x90276a=parseInt(_0x15ee4a(0x200))/0x1+parseInt(_0x15ee4a(0x22a))/0x2*(-parseInt(_0x15ee4a(0x1a8))/0x3)+-parseInt(_0x15ee4a(0x19f))/0x4+parseInt(_0x15ee4a(0x1eb))/0x5*(parseInt(_0x15ee4a(0x222))/0x6)+parseInt(_0x15ee4a(0x21d))/0x7+-parseInt(_0x15ee4a(0x1ac))/0x8*(parseInt(_0x15ee4a(0x1c6))/0x9)+parseInt(_0x15ee4a(0x1c5))/0xa;if(_0x90276a===_0x2f37a7)break;else _0xb02971['push'](_0xb02971['shift']());}catch(_0x47bb6c){_0xb02971['push'](_0xb02971['shift']());}}}(a0_0x4f3a,0xe2f01));var __createBinding=this&&this[a0_0x3bbb2e(0x214)]||(Object[a0_0x3bbb2e(0x203)]?function(_0x25d4d7,_0x522749,_0x5ddad3,_0x5ccaae){const _0x150cef=a0_0x3bbb2e;if(_0x5ccaae===undefined)_0x5ccaae=_0x5ddad3;var _0x150fa6=Object[_0x150cef(0x1b0)](_0x522749,_0x5ddad3);(!_0x150fa6||(_0x150cef(0x1bb)in _0x150fa6?!_0x522749['__esModule']:_0x150fa6['writable']||_0x150fa6['configurable']))&&(_0x150fa6={'enumerable':!![],'get':function(){return _0x522749[_0x5ddad3];}}),Object['defineProperty'](_0x25d4d7,_0x5ccaae,_0x150fa6);}:function(_0x4aa9ec,_0x4ba221,_0x499b6e,_0x2450af){if(_0x2450af===undefined)_0x2450af=_0x499b6e;_0x4aa9ec[_0x2450af]=_0x4ba221[_0x499b6e];}),__setModuleDefault=this&&this[a0_0x3bbb2e(0x1fd)]||(Object['create']?function(_0x41c915,_0x8107a7){const _0xe2e129=a0_0x3bbb2e;Object['defineProperty'](_0x41c915,_0xe2e129(0x1b1),{'enumerable':!![],'value':_0x8107a7});}:function(_0x5c4e82,_0x5e7b6a){const _0x13360f=a0_0x3bbb2e;_0x5c4e82[_0x13360f(0x1b1)]=_0x5e7b6a;}),__importStar=this&&this['__importStar']||(function(){var _0x468ca4=function(_0x1d3429){const _0x45bd7a=a0_0x51cb;return _0x468ca4=Object[_0x45bd7a(0x1a5)]||function(_0x1c9b01){const _0x15ac34=_0x45bd7a;var _0x33c654=[];for(var _0x2a6214 in _0x1c9b01)if(Object[_0x15ac34(0x1c4)]['hasOwnProperty'][_0x15ac34(0x1fe)](_0x1c9b01,_0x2a6214))_0x33c654[_0x33c654[_0x15ac34(0x1e1)]]=_0x2a6214;return _0x33c654;},_0x468ca4(_0x1d3429);};return function(_0x32c951){const _0x201b03=a0_0x51cb;if(_0x32c951&&_0x32c951[_0x201b03(0x1ab)])return _0x32c951;var _0x23331f={};if(_0x32c951!=null){for(var _0x34ba47=_0x468ca4(_0x32c951),_0x25394e=0x0;_0x25394e<_0x34ba47['length'];_0x25394e++)if(_0x34ba47[_0x25394e]!==_0x201b03(0x1b1))__createBinding(_0x23331f,_0x32c951,_0x34ba47[_0x25394e]);}return __setModuleDefault(_0x23331f,_0x32c951),_0x23331f;};}());Object[a0_0x3bbb2e(0x1e7)](exports,a0_0x3bbb2e(0x1ab),{'value':!![]}),exports[a0_0x3bbb2e(0x202)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x3bbb2e(0x1d1)]=filterCat,exports['filterGrep']=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x3bbb2e(0x229))),generic_1=require('./generic'),tracker_1=require(a0_0x3bbb2e(0x19c));function isFeatureEnabled(_0x3f0abf){const _0x13689f=a0_0x3bbb2e;try{const _0x249bd9=tracker_1[_0x13689f(0x1ff)][_0x13689f(0x19e)](),_0x14acf2=_0x249bd9[_0x13689f(0x1ae)];if(!_0x14acf2||_0x14acf2[_0x3f0abf]===undefined)return!![];return _0x14acf2[_0x3f0abf]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x3bbb2e(0x220),a0_0x3bbb2e(0x1c0),a0_0x3bbb2e(0x1ed),a0_0x3bbb2e(0x1b8),a0_0x3bbb2e(0x209),a0_0x3bbb2e(0x206),a0_0x3bbb2e(0x1dc),a0_0x3bbb2e(0x1d9),a0_0x3bbb2e(0x1a2)],BINARY_EXTENSIONS=[a0_0x3bbb2e(0x212),a0_0x3bbb2e(0x1db),a0_0x3bbb2e(0x1a7),'.wasm',a0_0x3bbb2e(0x1cc),a0_0x3bbb2e(0x218),a0_0x3bbb2e(0x1d3),'.gif',a0_0x3bbb2e(0x1f5),a0_0x3bbb2e(0x1af),a0_0x3bbb2e(0x1c3),a0_0x3bbb2e(0x1bc),a0_0x3bbb2e(0x20d),'.zip','.tar.gz',a0_0x3bbb2e(0x211),a0_0x3bbb2e(0x1ee),a0_0x3bbb2e(0x1a9),a0_0x3bbb2e(0x1df),a0_0x3bbb2e(0x1f8),'.exe',a0_0x3bbb2e(0x1fc),a0_0x3bbb2e(0x1fa),a0_0x3bbb2e(0x1e6),a0_0x3bbb2e(0x217),a0_0x3bbb2e(0x1ef),'.sqlite',a0_0x3bbb2e(0x1b3),a0_0x3bbb2e(0x1e2),'.woff',a0_0x3bbb2e(0x226),a0_0x3bbb2e(0x1ba),'.eot',a0_0x3bbb2e(0x1de),'.mp3','.mp4',a0_0x3bbb2e(0x1b9),a0_0x3bbb2e(0x1aa),'.mov',a0_0x3bbb2e(0x20c),a0_0x3bbb2e(0x1a4),a0_0x3bbb2e(0x1d7),'.class','.o','.obj'];function extractFilename(_0x2e7e5c){const _0x58b413=a0_0x3bbb2e,_0x1f2577=_0x2e7e5c[_0x58b413(0x1b7)]()[_0x58b413(0x21f)](/\s+/);for(let _0x52b8db=0x1;_0x52b8db<_0x1f2577[_0x58b413(0x1e1)];_0x52b8db++){if(!_0x1f2577[_0x52b8db][_0x58b413(0x20f)]('-'))return _0x1f2577[_0x52b8db];}return null;}function filterLockFile(_0x1d79e6,_0x7d6f24){const _0x1de630=a0_0x3bbb2e;try{const _0x2e9c66=path[_0x1de630(0x1da)](_0x7d6f24)[_0x1de630(0x20e)]();if(!LOCK_FILES['some'](_0x3f97b8=>_0x2e9c66===_0x3f97b8[_0x1de630(0x20e)]()))return null;const _0x17fcb3=_0x1d79e6[_0x1de630(0x1e1)];let _0x12565e=0x0;if(_0x2e9c66===_0x1de630(0x220))try{const _0x13b0f9=JSON[_0x1de630(0x1f3)](_0x1d79e6);_0x12565e=Object[_0x1de630(0x1e5)](_0x13b0f9['packages']||_0x13b0f9[_0x1de630(0x1bf)]||{})['length'];}catch{_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/"resolved":/g)||[])[_0x1de630(0x1e1)];}else{if(_0x2e9c66===_0x1de630(0x1c0))_0x12565e=(_0x1d79e6['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x1de630(0x1e1)];else{if(_0x2e9c66===_0x1de630(0x1a6)||_0x2e9c66===_0x1de630(0x206))_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/\[\[package\]\]/g)||[])[_0x1de630(0x1e1)];else{if(_0x2e9c66===_0x1de630(0x209))_0x12565e=Math['floor'](_0x1d79e6['split']('\x0a')[_0x1de630(0x1f0)](_0x27acec=>_0x27acec[_0x1de630(0x1b7)]())[_0x1de630(0x1e1)]/0x2);else{if(_0x2e9c66===_0x1de630(0x1dc))try{_0x12565e=JSON[_0x1de630(0x1f3)](_0x1d79e6)[_0x1de630(0x1ad)]?.[_0x1de630(0x1e1)]||0x0;}catch{}else _0x2e9c66===_0x1de630(0x1ed)?_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/^\s{2}['"@a-z]/gm)||[])[_0x1de630(0x1e1)]:_0x12565e=_0x1d79e6[_0x1de630(0x21f)]('\x0a')[_0x1de630(0x1f0)](_0x28b4c8=>_0x28b4c8[_0x1de630(0x1b7)]())['length'];}}}}return _0x1de630(0x210)+path[_0x1de630(0x1da)](_0x7d6f24)+':\x20'+_0x12565e+_0x1de630(0x204)+_0x17fcb3[_0x1de630(0x1ea)]()+_0x1de630(0x1e0);}catch{return null;}}function filterBinaryOrMinified(_0x1735d0,_0x4bff7c){const _0x1b053c=a0_0x3bbb2e;try{if(_0x4bff7c){const _0x2fe146=_0x4bff7c[_0x1b053c(0x20e)]();for(const _0x2aef17 of BINARY_EXTENSIONS){if(_0x2fe146[_0x1b053c(0x1b2)](_0x2aef17))return _0x1b053c(0x1ec)+path[_0x1b053c(0x1da)](_0x4bff7c)+',\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x216)+_0x2aef17+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x1cd85d=_0x1735d0[_0x1b053c(0x1c8)](0x0,0x3e8);let _0x531c59=0x0;for(let _0x2d49b9=0x0;_0x2d49b9<_0x1cd85d[_0x1b053c(0x1e1)];_0x2d49b9++){if(_0x1cd85d[_0x1b053c(0x1d5)](_0x2d49b9)===0x0)_0x531c59++;}if(_0x531c59>0x0)return'[binary\x20file]\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x201);let _0x14417e=0x0;for(let _0x165008=0x0;_0x165008<_0x1cd85d[_0x1b053c(0x1e1)];_0x165008++){const _0x31e79d=_0x1cd85d[_0x1b053c(0x1d5)](_0x165008);if(_0x31e79d<0x20&&_0x31e79d!==0xa&&_0x31e79d!==0xd&&_0x31e79d!==0x9)_0x14417e++;}if(_0x1cd85d[_0x1b053c(0x1e1)]>0x64&&_0x14417e>_0x1cd85d['length']*0.1)return _0x1b053c(0x1ca)+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x21c);const _0x3a169b=_0x1735d0[_0x1b053c(0x21f)]('\x0a');if(_0x3a169b[_0x1b053c(0x1e1)]<=0x3&&_0x1735d0[_0x1b053c(0x1e1)]>0x1388)return'[minified\x20file]\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x1c9)+_0x3a169b[_0x1b053c(0x1e1)]+_0x1b053c(0x1e8);return null;}catch{return null;}}function filterJsonMinify(_0x1969b3){const _0x59175e=a0_0x3bbb2e;try{const _0xcc823e=_0x1969b3[_0x59175e(0x1b7)]();if(!_0xcc823e['startsWith']('{')&&!_0xcc823e[_0x59175e(0x20f)]('['))return null;const _0x5697fb=_0xcc823e['split']('\x0a');if(_0x5697fb[_0x59175e(0x1e1)]<=0x14)return null;const _0x27899a=JSON['parse'](_0xcc823e),_0x168437=JSON['stringify'](_0x27899a);if(_0x168437[_0x59175e(0x1e1)]<_0xcc823e[_0x59175e(0x1e1)])return _0x168437;return null;}catch{return null;}}function filterLs(_0x2fedf9){const _0x3130d1=a0_0x3bbb2e,_0x9b1ca=_0x2fedf9[_0x3130d1(0x21f)]('\x0a')['filter'](_0x23989b=>_0x23989b['trim']()[_0x3130d1(0x1e1)]>0x0);if(_0x9b1ca[_0x3130d1(0x1e1)]===0x0)return _0x3130d1(0x1cd);if(_0x9b1ca[_0x3130d1(0x1e1)]<=0x1e)return _0x2fedf9[_0x3130d1(0x1b7)]();const _0x1b70cb=[],_0x3687a8=[];for(const _0x4af76a of _0x9b1ca){const _0x4341c4=_0x4af76a[_0x3130d1(0x1b7)]();if(_0x4341c4[_0x3130d1(0x20f)](_0x3130d1(0x1a1))||_0x4341c4['startsWith']('d')&&_0x4341c4['includes']('..'))continue;_0x4341c4[_0x3130d1(0x1b2)]('/')||_0x4341c4[_0x3130d1(0x20f)]('d')&&_0x4341c4[_0x3130d1(0x1ce)]('\x20')?_0x1b70cb[_0x3130d1(0x22d)](_0x4341c4):_0x3687a8[_0x3130d1(0x22d)](_0x4341c4);}const _0x2c91a9=[];return _0x1b70cb['length']>0x0&&(_0x1b70cb[_0x3130d1(0x1e1)]<=0xf?_0x2c91a9['push'](..._0x1b70cb):(_0x2c91a9['push'](..._0x1b70cb[_0x3130d1(0x1f4)](0x0,0xa)),_0x2c91a9[_0x3130d1(0x22d)](_0x3130d1(0x213)+(_0x1b70cb['length']-0xa)+_0x3130d1(0x1d6)))),_0x3687a8[_0x3130d1(0x1e1)]>0x0&&(_0x3687a8[_0x3130d1(0x1e1)]<=0x14?_0x2c91a9[_0x3130d1(0x22d)](..._0x3687a8):(_0x2c91a9[_0x3130d1(0x22d)](..._0x3687a8[_0x3130d1(0x1f4)](0x0,0xf)),_0x2c91a9[_0x3130d1(0x22d)](_0x3130d1(0x213)+(_0x3687a8[_0x3130d1(0x1e1)]-0xf)+'\x20more\x20files'))),_0x2c91a9[_0x3130d1(0x22d)]('\x0a('+_0x1b70cb[_0x3130d1(0x1e1)]+_0x3130d1(0x223)+_0x3687a8[_0x3130d1(0x1e1)]+_0x3130d1(0x22b)),_0x2c91a9[_0x3130d1(0x1b5)]('\x0a');}function filterTree(_0x33ad20){const _0x4e0241=a0_0x3bbb2e,_0xe91e37=_0x33ad20[_0x4e0241(0x21f)]('\x0a');if(_0xe91e37[_0x4e0241(0x1e1)]<=0x32)return _0x33ad20['trim']();const _0x46d406=[];let _0xfabd95=0x0,_0x4c03b1=0x0,_0xa30ac0=0x0;for(const _0x5d085e of _0xe91e37){const _0x4793f3=_0x5d085e[_0x4e0241(0x1c1)](/(\d+)\s+director/),_0x12d747=_0x5d085e[_0x4e0241(0x1c1)](/(\d+)\s+file/);if(_0x4793f3)_0xa30ac0=parseInt(_0x4793f3[0x1]);if(_0x12d747)_0x4c03b1=parseInt(_0x12d747[0x1]);const _0x22fc79=(_0x5d085e[_0x4e0241(0x1c1)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x22fc79<=0x4&&(_0x46d406[_0x4e0241(0x22d)](_0x5d085e),_0xfabd95++);}return _0xe91e37[_0x4e0241(0x1e1)]>_0x46d406[_0x4e0241(0x1e1)]&&_0x46d406[_0x4e0241(0x22d)](_0x4e0241(0x1d0)+_0xa30ac0+_0x4e0241(0x223)+_0x4c03b1+_0x4e0241(0x1c2)),_0x46d406[_0x4e0241(0x1b5)]('\x0a');}function a0_0x4f3a(){const _0x2d5666=['.cpp','push','No\x20files\x20found','../tracker','.java','getConfig','3840272sKXlnI','\x20matches\x20across\x20','total\x20','bun.lockb','extname','.pyc','getOwnPropertyNames','cargo.lock','.map','1369986kDewxK','.bz2','.avi','__esModule','520jTygXk','packages','features_enabled','.bmp','getOwnPropertyDescriptor','default','endsWith','.db','@param','join','.cs','trim','Cargo.lock','.wav','.ttf','get','.svg','smartCrushJson','\x20lines\x20total,\x20','dependencies','yarn.lock','match','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.webp','prototype','3866080ONVeVh','202545Nmwbpu','from\x20','substring','\x20chars\x20across\x20','[binary\x20file]\x20','\x20directories','.png','Empty\x20directory','includes','.jsx','\x0a...\x20(','filterCat','.js','.jpeg','#include\x20','charCodeAt','\x20more\x20directories','.pyo','\x20\x20...\x20+','Gemfile.lock','basename','.min.css','composer.lock','@return','.otf','.7z','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','length','.sqlite3','\x20lines)','indexOf','keys','.dylib','defineProperty','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','use\x20','toLocaleString','5qTrVTM','[binary/minified\x20file]\x20','pnpm-lock.yaml','.gz','.dat','filter','.swift','package\x20','parse','slice','.ico','sort','json_crusher','.rar','.tsx','.so','.py','.dll','__setModuleDefault','call','tracker','1668829ykqzwi','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','filterLs','create','\x20dependencies,\x20','/\x20(','poetry.lock','\x20more\x20files\x20with\x20matches','entries','go.sum','.kt','import\x20','.webm','.pdf','toLowerCase','startsWith','[lock\x20file]\x20','.tgz','.min.js','...\x20+','__createBinding','.go','\x20chars,\x20type:\x20','.bin','.jpg','.rs','[code\x20skeleton]\x20','binary','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','1785651IJSXeT','collapseWhitespace','split','package-lock.json','skeleton','8991372HUJpeF','\x20directories,\x20','export\x20','.ts','.woff2','\x0a...\x20[',':\x20...\x20(','path','2qwdgYf','\x20files)'];a0_0x4f3a=function(){return _0x2d5666;};return a0_0x4f3a();}function filterCat(_0x340bf3,_0x3d9ea6=''){const _0x4d241c=a0_0x3bbb2e,_0x252900=extractFilename(_0x3d9ea6);try{if(_0x252900&&isFeatureEnabled('lock')){const _0x3f68c6=filterLockFile(_0x340bf3,_0x252900);if(_0x3f68c6)return _0x3f68c6;}if(isFeatureEnabled(_0x4d241c(0x21b))){const _0x591f88=filterBinaryOrMinified(_0x340bf3,_0x252900);if(_0x591f88)return _0x591f88;}if(isFeatureEnabled(_0x4d241c(0x1f7))){const _0x54d7f1=(0x0,generic_1[_0x4d241c(0x1bd)])(_0x340bf3);if(_0x54d7f1)return _0x54d7f1;}const _0x460c72=filterJsonMinify(_0x340bf3);if(_0x460c72)return _0x460c72;if(_0x252900&&isFeatureEnabled(_0x4d241c(0x221))){const _0xbdc0af=path[_0x4d241c(0x1a3)](_0x252900)[_0x4d241c(0x20e)](),_0x362a3c=[_0x4d241c(0x225),_0x4d241c(0x1d2),_0x4d241c(0x1f9),_0x4d241c(0x1cf),_0x4d241c(0x1fb),_0x4d241c(0x215),_0x4d241c(0x219),_0x4d241c(0x19d),'.c',_0x4d241c(0x22c),_0x4d241c(0x1b6),'.rb',_0x4d241c(0x1f1),_0x4d241c(0x20a)];if(_0x362a3c[_0x4d241c(0x1ce)](_0xbdc0af)){const _0x1c9c82=_0x340bf3['split']('\x0a');if(_0x1c9c82[_0x4d241c(0x1e1)]>0x64){const _0x49b5b2=[];_0x49b5b2[_0x4d241c(0x22d)](_0x4d241c(0x21a)+path['basename'](_0x252900)+'\x20('+_0x1c9c82[_0x4d241c(0x1e1)]+_0x4d241c(0x1e3)),_0x49b5b2[_0x4d241c(0x22d)]('');for(const _0x1f6372 of _0x1c9c82){const _0x3901c5=_0x1f6372['trim']();if(_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x20b))||_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1c7))||_0x3901c5[_0x4d241c(0x20f)]('require(')||_0x3901c5[_0x4d241c(0x1c1)](/=\s*require\(/)||_0x3901c5['startsWith'](_0x4d241c(0x1d4))||_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1e9))||_0x3901c5['startsWith'](_0x4d241c(0x1f2)))_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else{if(_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(async\s+)?function\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(default\s+)?class\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(type|interface|enum)\s+/)||_0x3901c5['match'](/^(async\s+)?def\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^func\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^type\s+\w+\s+(struct|interface)/)||_0x3901c5[_0x4d241c(0x1c1)](/^(pub\s+)?(async\s+)?fn\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(public|private|protected|static)\s+/))_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else{if(_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x224))&&!_0x3901c5[_0x4d241c(0x1ce)]('=>')&&_0x3901c5[_0x4d241c(0x1e1)]<0x78)_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else _0x3901c5[_0x4d241c(0x20f)]('@')&&!_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1b4))&&!_0x3901c5['startsWith'](_0x4d241c(0x1dd))&&_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);}}}_0x49b5b2[_0x4d241c(0x22d)](''),_0x49b5b2[_0x4d241c(0x22d)]('('+_0x1c9c82[_0x4d241c(0x1e1)]+_0x4d241c(0x1be)+(_0x49b5b2['length']-0x2)+'\x20structural\x20lines\x20shown)');const _0x258a8b=_0x49b5b2[_0x4d241c(0x1b5)]('\x0a');if(_0x258a8b['length']<_0x340bf3[_0x4d241c(0x1e1)])return _0x258a8b;}}}}catch{}let _0x58bc58=(0x0,generic_1[_0x4d241c(0x21e)])(_0x340bf3);if(_0x252900){const _0x2461dc=path[_0x4d241c(0x1a3)](_0x252900)[_0x4d241c(0x20e)]();_0x58bc58=(0x0,generic_1['stripComments'])(_0x58bc58,_0x2461dc);}const _0xd5a151=_0x58bc58[_0x4d241c(0x21f)]('\x0a');if(_0xd5a151[_0x4d241c(0x1e1)]<=0x64)return _0x58bc58;const _0x1af40e=[];return _0x1af40e[_0x4d241c(0x22d)](..._0xd5a151[_0x4d241c(0x1f4)](0x0,0x32)),_0x1af40e[_0x4d241c(0x22d)](_0x4d241c(0x227)+(_0xd5a151[_0x4d241c(0x1e1)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x1af40e['push'](..._0xd5a151[_0x4d241c(0x1f4)](-0x1e)),_0x1af40e[_0x4d241c(0x22d)]('\x0a('+_0xd5a151[_0x4d241c(0x1e1)]+'\x20lines\x20total)'),_0x1af40e[_0x4d241c(0x1b5)]('\x0a');}function filterGrep(_0x2a60ee){const _0x1942ba=a0_0x3bbb2e,_0x51a5c8=_0x2a60ee[_0x1942ba(0x21f)]('\x0a')['filter'](_0x5ae434=>_0x5ae434[_0x1942ba(0x1b7)]()['length']>0x0);if(_0x51a5c8[_0x1942ba(0x1e1)]===0x0)return'No\x20matches\x20found';if(_0x51a5c8[_0x1942ba(0x1e1)]<=0x32)return _0x2a60ee[_0x1942ba(0x1b7)]();const _0x59187d={},_0x2d601a=[];for(const _0x254232 of _0x51a5c8){const _0x143a8a=_0x254232[_0x1942ba(0x1e4)](':');if(_0x143a8a>0x0&&_0x143a8a<0xc8){const _0x4425a6=_0x254232[_0x1942ba(0x1c8)](0x0,_0x143a8a);if(_0x4425a6[_0x1942ba(0x1ce)]('/')||_0x4425a6[_0x1942ba(0x1ce)]('\x5c')||_0x4425a6[_0x1942ba(0x1ce)]('.')){if(!_0x59187d[_0x4425a6])_0x59187d[_0x4425a6]=[];_0x59187d[_0x4425a6]['push'](_0x254232[_0x1942ba(0x1c8)](_0x143a8a+0x1)[_0x1942ba(0x1b7)]());continue;}}_0x2d601a[_0x1942ba(0x22d)](_0x254232);}const _0x477448=[],_0xd95a09=Object['keys'](_0x59187d);if(_0xd95a09[_0x1942ba(0x1e1)]>0x0){const _0x352dbc=0x14,_0x5c1b75=_0xd95a09[_0x1942ba(0x1f4)](0x0,_0x352dbc);for(const _0x29d6ad of _0x5c1b75){const _0x3b300c=_0x59187d[_0x29d6ad];if(_0x3b300c['length']<=0x3)for(const _0x435077 of _0x3b300c){_0x477448['push'](_0x29d6ad+':\x20'+_0x435077);}else _0x477448['push'](_0x29d6ad+':\x20'+_0x3b300c[0x0]),_0x477448[_0x1942ba(0x22d)](_0x29d6ad+_0x1942ba(0x228)+_0x3b300c[_0x1942ba(0x1e1)]+'\x20matches\x20in\x20this\x20file)');}_0xd95a09['length']>_0x352dbc&&_0x477448['push'](_0x1942ba(0x213)+(_0xd95a09['length']-_0x352dbc)+_0x1942ba(0x207));}if(_0x2d601a['length']>0x0){const _0x2c99d9=0x1e;_0x477448[_0x1942ba(0x22d)](..._0x2d601a['slice'](0x0,_0x2c99d9)),_0x2d601a['length']>_0x2c99d9&&_0x477448[_0x1942ba(0x22d)]('...\x20+'+(_0x2d601a[_0x1942ba(0x1e1)]-_0x2c99d9)+'\x20more\x20matches');}const _0x204440=_0x51a5c8[_0x1942ba(0x1e1)];return _0x477448['push']('\x0a('+_0x204440+_0x1942ba(0x1a0)+(_0xd95a09[_0x1942ba(0x1e1)]||'?')+'\x20files)'),_0x477448[_0x1942ba(0x1b5)]('\x0a');}function filterFind(_0x2bdd15){const _0x1870d5=a0_0x3bbb2e,_0x5aca96=_0x2bdd15['split']('\x0a')[_0x1870d5(0x1f0)](_0x3686bb=>_0x3686bb[_0x1870d5(0x1b7)]()[_0x1870d5(0x1e1)]>0x0);if(_0x5aca96[_0x1870d5(0x1e1)]===0x0)return _0x1870d5(0x19b);if(_0x5aca96[_0x1870d5(0x1e1)]<=0x32)return _0x2bdd15[_0x1870d5(0x1b7)]();const _0x2f875a={};for(const _0x4ab304 of _0x5aca96){const _0xe9e03a=path['dirname'](_0x4ab304[_0x1870d5(0x1b7)]())||'.';_0x2f875a[_0xe9e03a]=(_0x2f875a[_0xe9e03a]||0x0)+0x1;}const _0x274c64=Object[_0x1870d5(0x208)](_0x2f875a)[_0x1870d5(0x1f6)]((_0x59276a,_0x123d8e)=>_0x123d8e[0x1]-_0x59276a[0x1]),_0x37e982=[_0x5aca96[_0x1870d5(0x1e1)]+'\x20files\x20found\x20across\x20'+_0x274c64['length']+_0x1870d5(0x1cb),''],_0x2a00c1=0x1e;for(const [_0x5aab65,_0x290acf]of _0x274c64[_0x1870d5(0x1f4)](0x0,_0x2a00c1)){_0x37e982[_0x1870d5(0x22d)]('\x20\x20'+_0x5aab65+_0x1870d5(0x205)+_0x290acf+_0x1870d5(0x22b));}return _0x274c64['length']>_0x2a00c1&&_0x37e982[_0x1870d5(0x22d)](_0x1870d5(0x1d8)+(_0x274c64['length']-_0x2a00c1)+_0x1870d5(0x1d6)),_0x37e982[_0x1870d5(0x1b5)]('\x0a');}
1
+ 'use strict';const a0_0x2ee26c=a0_0x4f5a;(function(_0x2cf8c4,_0x1ff88c){const _0x108b4d=a0_0x4f5a,_0x5b183e=_0x2cf8c4();while(!![]){try{const _0x48eae4=parseInt(_0x108b4d(0x15b))/0x1*(-parseInt(_0x108b4d(0xf0))/0x2)+-parseInt(_0x108b4d(0x154))/0x3+parseInt(_0x108b4d(0x160))/0x4+parseInt(_0x108b4d(0x16b))/0x5+-parseInt(_0x108b4d(0x14b))/0x6+parseInt(_0x108b4d(0x150))/0x7*(-parseInt(_0x108b4d(0x113))/0x8)+parseInt(_0x108b4d(0x105))/0x9;if(_0x48eae4===_0x1ff88c)break;else _0x5b183e['push'](_0x5b183e['shift']());}catch(_0x3a6980){_0x5b183e['push'](_0x5b183e['shift']());}}}(a0_0x1c12,0xb9081));var __createBinding=this&&this[a0_0x2ee26c(0x131)]||(Object['create']?function(_0x5e8bb9,_0x419a7c,_0x4f2516,_0x229f91){const _0x52a795=a0_0x2ee26c;if(_0x229f91===undefined)_0x229f91=_0x4f2516;var _0x595354=Object['getOwnPropertyDescriptor'](_0x419a7c,_0x4f2516);(!_0x595354||(_0x52a795(0x110)in _0x595354?!_0x419a7c[_0x52a795(0x162)]:_0x595354['writable']||_0x595354[_0x52a795(0x15e)]))&&(_0x595354={'enumerable':!![],'get':function(){return _0x419a7c[_0x4f2516];}}),Object[_0x52a795(0x11c)](_0x5e8bb9,_0x229f91,_0x595354);}:function(_0x52320f,_0x4b4bd0,_0x4539c5,_0x5a0954){if(_0x5a0954===undefined)_0x5a0954=_0x4539c5;_0x52320f[_0x5a0954]=_0x4b4bd0[_0x4539c5];}),__setModuleDefault=this&&this[a0_0x2ee26c(0x124)]||(Object[a0_0x2ee26c(0x16f)]?function(_0x88d381,_0x858101){const _0x55900c=a0_0x2ee26c;Object[_0x55900c(0x11c)](_0x88d381,_0x55900c(0x142),{'enumerable':!![],'value':_0x858101});}:function(_0x50e815,_0x451378){const _0x1dc109=a0_0x2ee26c;_0x50e815[_0x1dc109(0x142)]=_0x451378;}),__importStar=this&&this[a0_0x2ee26c(0x123)]||(function(){var _0x5b8adb=function(_0x2570b8){const _0x36e1e9=a0_0x4f5a;return _0x5b8adb=Object[_0x36e1e9(0x129)]||function(_0x3474f0){const _0xcbbe4d=_0x36e1e9;var _0xe87823=[];for(var _0x278179 in _0x3474f0)if(Object[_0xcbbe4d(0x17b)][_0xcbbe4d(0x153)][_0xcbbe4d(0x11b)](_0x3474f0,_0x278179))_0xe87823[_0xe87823[_0xcbbe4d(0x166)]]=_0x278179;return _0xe87823;},_0x5b8adb(_0x2570b8);};return function(_0x484892){const _0x275df9=a0_0x4f5a;if(_0x484892&&_0x484892[_0x275df9(0x162)])return _0x484892;var _0x355ad1={};if(_0x484892!=null){for(var _0x47817a=_0x5b8adb(_0x484892),_0x224333=0x0;_0x224333<_0x47817a[_0x275df9(0x166)];_0x224333++)if(_0x47817a[_0x224333]!==_0x275df9(0x142))__createBinding(_0x355ad1,_0x484892,_0x47817a[_0x224333]);}return __setModuleDefault(_0x355ad1,_0x484892),_0x355ad1;};}());Object[a0_0x2ee26c(0x11c)](exports,a0_0x2ee26c(0x162),{'value':!![]}),exports[a0_0x2ee26c(0x13a)]=filterLs,exports['filterTree']=filterTree,exports['filterCat']=filterCat,exports[a0_0x2ee26c(0xf6)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require('path')),generic_1=require(a0_0x2ee26c(0x135)),tracker_1=require('../tracker');function isFeatureEnabled(_0x19e1fd){const _0x535561=a0_0x2ee26c;try{const _0x545992=tracker_1[_0x535561(0xee)][_0x535561(0x169)](),_0x328885=_0x545992[_0x535561(0x171)];if(!_0x328885||_0x328885[_0x19e1fd]===undefined)return!![];return _0x328885[_0x19e1fd]!==![];}catch{return!![];}}const LOCK_FILES=['package-lock.json',a0_0x2ee26c(0x107),a0_0x2ee26c(0x132),a0_0x2ee26c(0x144),a0_0x2ee26c(0xeb),a0_0x2ee26c(0x174),a0_0x2ee26c(0x127),a0_0x2ee26c(0x15d),a0_0x2ee26c(0x13f)],BINARY_EXTENSIONS=[a0_0x2ee26c(0xf3),'.min.css',a0_0x2ee26c(0x11e),a0_0x2ee26c(0x143),a0_0x2ee26c(0x10e),a0_0x2ee26c(0x114),a0_0x2ee26c(0x16c),a0_0x2ee26c(0xf5),a0_0x2ee26c(0x101),'.bmp',a0_0x2ee26c(0x103),a0_0x2ee26c(0x100),'.pdf',a0_0x2ee26c(0x102),a0_0x2ee26c(0xfb),a0_0x2ee26c(0x108),a0_0x2ee26c(0x14e),'.bz2',a0_0x2ee26c(0x178),'.rar',a0_0x2ee26c(0x177),a0_0x2ee26c(0x11d),a0_0x2ee26c(0x12d),'.dylib',a0_0x2ee26c(0x179),'.dat','.sqlite',a0_0x2ee26c(0xf8),'.sqlite3',a0_0x2ee26c(0x112),a0_0x2ee26c(0x14a),'.ttf',a0_0x2ee26c(0x10f),'.otf',a0_0x2ee26c(0x175),a0_0x2ee26c(0x13b),a0_0x2ee26c(0x15a),a0_0x2ee26c(0x159),a0_0x2ee26c(0x165),a0_0x2ee26c(0x134),a0_0x2ee26c(0x128),a0_0x2ee26c(0xef),a0_0x2ee26c(0x130),'.o',a0_0x2ee26c(0x14f)];function extractFilename(_0x2c6f2d){const _0x4176f7=a0_0x2ee26c,_0x4a0ca6=_0x2c6f2d['trim']()[_0x4176f7(0x115)](/\s+/);for(let _0x35ff11=0x1;_0x35ff11<_0x4a0ca6[_0x4176f7(0x166)];_0x35ff11++){if(!_0x4a0ca6[_0x35ff11]['startsWith']('-'))return _0x4a0ca6[_0x35ff11];}return null;}function filterLockFile(_0x13cab2,_0x4f43ae){const _0x3d14ef=a0_0x2ee26c;try{const _0x69ccd2=path[_0x3d14ef(0x16e)](_0x4f43ae)[_0x3d14ef(0xfc)]();if(!LOCK_FILES[_0x3d14ef(0x173)](_0xf0aa08=>_0x69ccd2===_0xf0aa08[_0x3d14ef(0xfc)]()))return null;const _0xa280cd=_0x13cab2[_0x3d14ef(0x166)];let _0x1035e8=0x0;if(_0x69ccd2===_0x3d14ef(0x141))try{const _0xf21a49=JSON[_0x3d14ef(0x109)](_0x13cab2);_0x1035e8=Object[_0x3d14ef(0x176)](_0xf21a49[_0x3d14ef(0x148)]||_0xf21a49[_0x3d14ef(0x12e)]||{})['length'];}catch{_0x1035e8=(_0x13cab2[_0x3d14ef(0x17a)](/"resolved":/g)||[])[_0x3d14ef(0x166)];}else{if(_0x69ccd2==='yarn.lock')_0x1035e8=(_0x13cab2[_0x3d14ef(0x17a)](/^"?[^#\s][^:]*:$/gm)||[])[_0x3d14ef(0x166)];else{if(_0x69ccd2===_0x3d14ef(0x10a)||_0x69ccd2===_0x3d14ef(0x174))_0x1035e8=(_0x13cab2[_0x3d14ef(0x17a)](/\[\[package\]\]/g)||[])['length'];else{if(_0x69ccd2==='go.sum')_0x1035e8=Math[_0x3d14ef(0x164)](_0x13cab2[_0x3d14ef(0x115)]('\x0a')[_0x3d14ef(0xf1)](_0x17c72f=>_0x17c72f['trim']())[_0x3d14ef(0x166)]/0x2);else{if(_0x69ccd2==='composer.lock')try{_0x1035e8=JSON[_0x3d14ef(0x109)](_0x13cab2)[_0x3d14ef(0x148)]?.[_0x3d14ef(0x166)]||0x0;}catch{}else _0x69ccd2===_0x3d14ef(0x132)?_0x1035e8=(_0x13cab2['match'](/^\s{2}['"@a-z]/gm)||[])[_0x3d14ef(0x166)]:_0x1035e8=_0x13cab2[_0x3d14ef(0x115)]('\x0a')[_0x3d14ef(0xf1)](_0x371105=>_0x371105[_0x3d14ef(0x10d)]())[_0x3d14ef(0x166)];}}}}return _0x3d14ef(0x122)+path[_0x3d14ef(0x16e)](_0x4f43ae)+':\x20'+_0x1035e8+_0x3d14ef(0x170)+_0xa280cd[_0x3d14ef(0x12c)]()+_0x3d14ef(0x16d);}catch{return null;}}function filterBinaryOrMinified(_0x5b0d49,_0x328246){const _0x273ec5=a0_0x2ee26c;try{if(_0x328246){const _0x48333f=_0x328246['toLowerCase']();for(const _0x281d3f of BINARY_EXTENSIONS){if(_0x48333f[_0x273ec5(0x118)](_0x281d3f))return _0x273ec5(0x138)+path[_0x273ec5(0x16e)](_0x328246)+',\x20'+_0x5b0d49[_0x273ec5(0x166)][_0x273ec5(0x12c)]()+_0x273ec5(0x17e)+_0x281d3f+_0x273ec5(0x146);}}const _0x2d3dd5=_0x5b0d49[_0x273ec5(0xec)](0x0,0x3e8);let _0x5de70d=0x0;for(let _0x55fadb=0x0;_0x55fadb<_0x2d3dd5['length'];_0x55fadb++){if(_0x2d3dd5['charCodeAt'](_0x55fadb)===0x0)_0x5de70d++;}if(_0x5de70d>0x0)return _0x273ec5(0x13c)+_0x5b0d49['length'][_0x273ec5(0x12c)]()+_0x273ec5(0xed);let _0x7d18cb=0x0;for(let _0xa727d2=0x0;_0xa727d2<_0x2d3dd5[_0x273ec5(0x166)];_0xa727d2++){const _0x3a556b=_0x2d3dd5['charCodeAt'](_0xa727d2);if(_0x3a556b<0x20&&_0x3a556b!==0xa&&_0x3a556b!==0xd&&_0x3a556b!==0x9)_0x7d18cb++;}if(_0x2d3dd5[_0x273ec5(0x166)]>0x64&&_0x7d18cb>_0x2d3dd5['length']*0.1)return'[binary\x20file]\x20'+_0x5b0d49[_0x273ec5(0x166)][_0x273ec5(0x12c)]()+_0x273ec5(0x12f);const _0x910322=_0x5b0d49[_0x273ec5(0x115)]('\x0a');if(_0x910322[_0x273ec5(0x166)]<=0x3&&_0x5b0d49['length']>0x1388)return _0x273ec5(0x119)+_0x5b0d49[_0x273ec5(0x166)][_0x273ec5(0x12c)]()+_0x273ec5(0x155)+_0x910322[_0x273ec5(0x166)]+_0x273ec5(0x11f);return null;}catch{return null;}}function filterJsonMinify(_0x304baf){const _0x273a5f=a0_0x2ee26c;try{const _0x499be3=_0x304baf[_0x273a5f(0x10d)]();if(!_0x499be3[_0x273a5f(0x17d)]('{')&&!_0x499be3[_0x273a5f(0x17d)]('['))return null;const _0x164169=_0x499be3[_0x273a5f(0x115)]('\x0a');if(_0x164169[_0x273a5f(0x166)]<=0x14)return null;const _0x21e740=JSON[_0x273a5f(0x109)](_0x499be3),_0x9ecf66=JSON[_0x273a5f(0x121)](_0x21e740);if(_0x9ecf66[_0x273a5f(0x166)]<_0x499be3['length'])return _0x9ecf66;return null;}catch{return null;}}function filterLs(_0x4bc56b){const _0x71033b=a0_0x2ee26c,_0x2c5e39=_0x4bc56b[_0x71033b(0x115)]('\x0a')['filter'](_0x3f927e=>_0x3f927e[_0x71033b(0x10d)]()[_0x71033b(0x166)]>0x0);if(_0x2c5e39[_0x71033b(0x166)]===0x0)return _0x71033b(0x106);if(_0x2c5e39[_0x71033b(0x166)]<=0x1e)return _0x4bc56b[_0x71033b(0x10d)]();const _0x1211fe=[],_0xdc9621=[];for(const _0x54212f of _0x2c5e39){const _0x1eea6b=_0x54212f[_0x71033b(0x10d)]();if(_0x1eea6b[_0x71033b(0x17d)]('total\x20')||_0x1eea6b[_0x71033b(0x17d)]('d')&&_0x1eea6b[_0x71033b(0xfa)]('..'))continue;_0x1eea6b[_0x71033b(0x118)]('/')||_0x1eea6b[_0x71033b(0x17d)]('d')&&_0x1eea6b['includes']('\x20')?_0x1211fe[_0x71033b(0x172)](_0x1eea6b):_0xdc9621[_0x71033b(0x172)](_0x1eea6b);}const _0x503e67=[];return _0x1211fe[_0x71033b(0x166)]>0x0&&(_0x1211fe[_0x71033b(0x166)]<=0xf?_0x503e67[_0x71033b(0x172)](..._0x1211fe):(_0x503e67[_0x71033b(0x172)](..._0x1211fe[_0x71033b(0x15f)](0x0,0xa)),_0x503e67[_0x71033b(0x172)](_0x71033b(0x116)+(_0x1211fe[_0x71033b(0x166)]-0xa)+'\x20more\x20directories'))),_0xdc9621['length']>0x0&&(_0xdc9621[_0x71033b(0x166)]<=0x14?_0x503e67[_0x71033b(0x172)](..._0xdc9621):(_0x503e67[_0x71033b(0x172)](..._0xdc9621['slice'](0x0,0xf)),_0x503e67[_0x71033b(0x172)]('...\x20+'+(_0xdc9621['length']-0xf)+'\x20more\x20files'))),_0x503e67[_0x71033b(0x172)]('\x0a('+_0x1211fe[_0x71033b(0x166)]+_0x71033b(0x16a)+_0xdc9621[_0x71033b(0x166)]+_0x71033b(0x17c)),_0x503e67['join']('\x0a');}function filterTree(_0x3cf8b5){const _0x6d9e09=a0_0x2ee26c,_0x52b94b=_0x3cf8b5[_0x6d9e09(0x115)]('\x0a');if(_0x52b94b[_0x6d9e09(0x166)]<=0x32)return _0x3cf8b5[_0x6d9e09(0x10d)]();const _0x3b65d0=[];let _0x46247d=0x0,_0x3010cf=0x0,_0x1ccbc0=0x0;for(const _0x1d37b7 of _0x52b94b){const _0x4368d7=_0x1d37b7[_0x6d9e09(0x17a)](/(\d+)\s+director/),_0x3433c9=_0x1d37b7[_0x6d9e09(0x17a)](/(\d+)\s+file/);if(_0x4368d7)_0x1ccbc0=parseInt(_0x4368d7[0x1]);if(_0x3433c9)_0x3010cf=parseInt(_0x3433c9[0x1]);const _0x42cbcb=(_0x1d37b7[_0x6d9e09(0x17a)](/^[│├└\s─]+/)||[''])[0x0][_0x6d9e09(0x166)];_0x42cbcb<=0x4&&(_0x3b65d0[_0x6d9e09(0x172)](_0x1d37b7),_0x46247d++);}return _0x52b94b['length']>_0x3b65d0['length']&&_0x3b65d0['push'](_0x6d9e09(0xf7)+_0x1ccbc0+_0x6d9e09(0x16a)+_0x3010cf+_0x6d9e09(0x156)),_0x3b65d0['join']('\x0a');}function filterCat(_0x444a66,_0x821c04=''){const _0x172486=a0_0x2ee26c,_0x22706b=extractFilename(_0x821c04);try{if(_0x22706b&&isFeatureEnabled('lock')){const _0x229fcd=filterLockFile(_0x444a66,_0x22706b);if(_0x229fcd)return _0x229fcd;}if(isFeatureEnabled(_0x172486(0x145))){const _0x58b16c=filterBinaryOrMinified(_0x444a66,_0x22706b);if(_0x58b16c)return _0x58b16c;}if(isFeatureEnabled(_0x172486(0x14d))){const _0x44fcbc=(0x0,generic_1['smartCrushJson'])(_0x444a66);if(_0x44fcbc)return _0x44fcbc;}const _0x562cd8=filterJsonMinify(_0x444a66);if(_0x562cd8)return _0x562cd8;if(_0x22706b&&isFeatureEnabled(_0x172486(0x15c))){const _0x551824=path[_0x172486(0xff)](_0x22706b)[_0x172486(0xfc)](),_0x36f17c=['.ts',_0x172486(0x126),_0x172486(0x163),_0x172486(0x11a),'.py','.go',_0x172486(0x133),_0x172486(0x157),'.c',_0x172486(0x152),'.cs','.rb',_0x172486(0xf2),'.kt'];if(_0x36f17c[_0x172486(0xfa)](_0x551824)){const _0x560bb0=_0x444a66[_0x172486(0x115)]('\x0a');if(_0x560bb0[_0x172486(0x166)]>0x64){const _0x367073=[];_0x367073[_0x172486(0x172)](_0x172486(0x117)+path[_0x172486(0x16e)](_0x22706b)+'\x20('+_0x560bb0[_0x172486(0x166)]+'\x20lines)'),_0x367073[_0x172486(0x172)]('');for(const _0x4448a0 of _0x560bb0){const _0x1cabff=_0x4448a0['trim']();if(_0x1cabff[_0x172486(0x17d)](_0x172486(0x137))||_0x1cabff[_0x172486(0x17d)](_0x172486(0xf9))||_0x1cabff[_0x172486(0x17d)](_0x172486(0x13e))||_0x1cabff['match'](/=\s*require\(/)||_0x1cabff[_0x172486(0x17d)](_0x172486(0x125))||_0x1cabff['startsWith'](_0x172486(0x14c))||_0x1cabff[_0x172486(0x17d)](_0x172486(0x151)))_0x367073[_0x172486(0x172)](_0x4448a0);else{if(_0x1cabff['match'](/^(export\s+)?(async\s+)?function\s+/)||_0x1cabff['match'](/^(export\s+)?(default\s+)?class\s+/)||_0x1cabff[_0x172486(0x17a)](/^(export\s+)?(type|interface|enum)\s+/)||_0x1cabff[_0x172486(0x17a)](/^(async\s+)?def\s+/)||_0x1cabff['match'](/^func\s+/)||_0x1cabff[_0x172486(0x17a)](/^type\s+\w+\s+(struct|interface)/)||_0x1cabff['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x1cabff['match'](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x1cabff[_0x172486(0x17a)](/^(public|private|protected|static)\s+/))_0x367073['push'](_0x4448a0);else{if(_0x1cabff[_0x172486(0x17d)](_0x172486(0x167))&&!_0x1cabff[_0x172486(0xfa)]('=>')&&_0x1cabff['length']<0x78)_0x367073['push'](_0x4448a0);else _0x1cabff['startsWith']('@')&&!_0x1cabff[_0x172486(0x17d)]('@param')&&!_0x1cabff[_0x172486(0x17d)]('@return')&&_0x367073['push'](_0x4448a0);}}}_0x367073[_0x172486(0x172)](''),_0x367073['push']('('+_0x560bb0['length']+_0x172486(0x12a)+(_0x367073[_0x172486(0x166)]-0x2)+_0x172486(0x120));const _0x435f7c=_0x367073[_0x172486(0xfe)]('\x0a');if(_0x435f7c['length']<_0x444a66['length'])return _0x435f7c;}}}}catch{}let _0x23ac9d=(0x0,generic_1['collapseWhitespace'])(_0x444a66);if(_0x22706b){const _0x8a8cb1=path[_0x172486(0xff)](_0x22706b)[_0x172486(0xfc)]();_0x23ac9d=(0x0,generic_1['stripComments'])(_0x23ac9d,_0x8a8cb1);}const _0x38b02c=_0x23ac9d[_0x172486(0x115)]('\x0a');if(_0x38b02c[_0x172486(0x166)]<=0x64)return _0x23ac9d;const _0x33bb25=[];return _0x33bb25[_0x172486(0x172)](..._0x38b02c[_0x172486(0x15f)](0x0,0x32)),_0x33bb25['push'](_0x172486(0x12b)+(_0x38b02c['length']-0x50)+_0x172486(0x136)),_0x33bb25[_0x172486(0x172)](..._0x38b02c[_0x172486(0x15f)](-0x1e)),_0x33bb25[_0x172486(0x172)]('\x0a('+_0x38b02c[_0x172486(0x166)]+_0x172486(0xfd)),_0x33bb25[_0x172486(0xfe)]('\x0a');}function a0_0x1c12(){const _0xc437ba=['length','export\x20','dirname','getConfig','\x20directories,\x20','4859425avGBIF','.jpeg','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','basename','create','\x20dependencies,\x20','features_enabled','push','some','poetry.lock','.mp3','keys','.exe','.7z','.bin','match','prototype','\x20files)','startsWith','\x20chars,\x20type:\x20','go.sum','substring','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','tracker','.pyo','2vWWiLe','filter','.swift','.min.js','entries','.gif','filterGrep','\x0a...\x20(','.db','from\x20','includes','.tar.gz','toLowerCase','\x20lines\x20total)','join','extname','.svg','.ico','.zip','.webp','\x20files\x20found\x20across\x20','9903924icjjBA','Empty\x20directory','yarn.lock','.tgz','parse','cargo.lock','\x20\x20...\x20+','\x20more\x20directories','trim','.png','.eot','get','No\x20files\x20found','.woff','56DAGVtG','.jpg','split','...\x20+','[code\x20skeleton]\x20','endsWith','[minified\x20file]\x20','.jsx','call','defineProperty','.dll','.map','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','\x20structural\x20lines\x20shown)','stringify','[lock\x20file]\x20','__importStar','__setModuleDefault','#include\x20','.js','composer.lock','.pyc','getOwnPropertyNames','\x20lines\x20total,\x20','\x0a...\x20[','toLocaleString','.so','dependencies','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','.class','__createBinding','pnpm-lock.yaml','.rs','.webm','./generic','\x20lines\x20truncated]\x20...\x0a','import\x20','[binary/minified\x20file]\x20',':\x20...\x20(','filterLs','.mp4','[binary\x20file]\x20','\x20more\x20files\x20with\x20matches','require(','bun.lockb','indexOf','package-lock.json','default','.wasm','Cargo.lock','binary','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','/\x20(','packages','No\x20matches\x20found','.woff2','5276370ZlLJzR','use\x20','json_crusher','.gz','.obj','638904bsrZNt','package\x20','.cpp','hasOwnProperty','2918076WPDXLZ','\x20chars\x20across\x20','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.java','\x20matches\x20in\x20this\x20file)','.avi','.wav','122489GtOzAb','skeleton','Gemfile.lock','configurable','slice','5196192famTDU','\x20directories','__esModule','.tsx','floor','.mov'];a0_0x1c12=function(){return _0xc437ba;};return a0_0x1c12();}function filterGrep(_0x59099d){const _0x4ac22d=a0_0x2ee26c,_0x292825=_0x59099d[_0x4ac22d(0x115)]('\x0a')[_0x4ac22d(0xf1)](_0x3d515c=>_0x3d515c[_0x4ac22d(0x10d)]()[_0x4ac22d(0x166)]>0x0);if(_0x292825[_0x4ac22d(0x166)]===0x0)return _0x4ac22d(0x149);if(_0x292825[_0x4ac22d(0x166)]<=0x32)return _0x59099d[_0x4ac22d(0x10d)]();const _0x5806f1={},_0x48be11=[];for(const _0x5e5fe5 of _0x292825){const _0x4a9c98=_0x5e5fe5[_0x4ac22d(0x140)](':');if(_0x4a9c98>0x0&&_0x4a9c98<0xc8){const _0x15b01d=_0x5e5fe5[_0x4ac22d(0xec)](0x0,_0x4a9c98);if(_0x15b01d[_0x4ac22d(0xfa)]('/')||_0x15b01d[_0x4ac22d(0xfa)]('\x5c')||_0x15b01d[_0x4ac22d(0xfa)]('.')){if(!_0x5806f1[_0x15b01d])_0x5806f1[_0x15b01d]=[];_0x5806f1[_0x15b01d][_0x4ac22d(0x172)](_0x5e5fe5[_0x4ac22d(0xec)](_0x4a9c98+0x1)[_0x4ac22d(0x10d)]());continue;}}_0x48be11[_0x4ac22d(0x172)](_0x5e5fe5);}const _0x3c8f15=[],_0x17b07f=Object[_0x4ac22d(0x176)](_0x5806f1);if(_0x17b07f['length']>0x0){const _0x3a2de0=0x14,_0x5efdbf=_0x17b07f['slice'](0x0,_0x3a2de0);for(const _0x2de96d of _0x5efdbf){const _0x5441ee=_0x5806f1[_0x2de96d];if(_0x5441ee['length']<=0x3)for(const _0x8dbd7 of _0x5441ee){_0x3c8f15[_0x4ac22d(0x172)](_0x2de96d+':\x20'+_0x8dbd7);}else _0x3c8f15[_0x4ac22d(0x172)](_0x2de96d+':\x20'+_0x5441ee[0x0]),_0x3c8f15[_0x4ac22d(0x172)](_0x2de96d+_0x4ac22d(0x139)+_0x5441ee[_0x4ac22d(0x166)]+_0x4ac22d(0x158));}_0x17b07f[_0x4ac22d(0x166)]>_0x3a2de0&&_0x3c8f15[_0x4ac22d(0x172)]('...\x20+'+(_0x17b07f[_0x4ac22d(0x166)]-_0x3a2de0)+_0x4ac22d(0x13d));}if(_0x48be11[_0x4ac22d(0x166)]>0x0){const _0x156ac9=0x1e;_0x3c8f15[_0x4ac22d(0x172)](..._0x48be11[_0x4ac22d(0x15f)](0x0,_0x156ac9)),_0x48be11[_0x4ac22d(0x166)]>_0x156ac9&&_0x3c8f15[_0x4ac22d(0x172)](_0x4ac22d(0x116)+(_0x48be11['length']-_0x156ac9)+'\x20more\x20matches');}const _0x5c8684=_0x292825[_0x4ac22d(0x166)];return _0x3c8f15['push']('\x0a('+_0x5c8684+'\x20matches\x20across\x20'+(_0x17b07f[_0x4ac22d(0x166)]||'?')+_0x4ac22d(0x17c)),_0x3c8f15[_0x4ac22d(0xfe)]('\x0a');}function a0_0x4f5a(_0x307747,_0x15a1b3){_0x307747=_0x307747-0xeb;const _0x1c1201=a0_0x1c12();let _0x4f5ad4=_0x1c1201[_0x307747];return _0x4f5ad4;}function filterFind(_0x439d0f){const _0x5ea1d0=a0_0x2ee26c,_0x14a41=_0x439d0f[_0x5ea1d0(0x115)]('\x0a')['filter'](_0x1f9fbf=>_0x1f9fbf['trim']()[_0x5ea1d0(0x166)]>0x0);if(_0x14a41[_0x5ea1d0(0x166)]===0x0)return _0x5ea1d0(0x111);if(_0x14a41[_0x5ea1d0(0x166)]<=0x32)return _0x439d0f['trim']();const _0x21480e={};for(const _0x416b94 of _0x14a41){const _0x5c3696=path[_0x5ea1d0(0x168)](_0x416b94['trim']())||'.';_0x21480e[_0x5c3696]=(_0x21480e[_0x5c3696]||0x0)+0x1;}const _0x407b3f=Object[_0x5ea1d0(0xf4)](_0x21480e)['sort']((_0x43dc7b,_0x140ce7)=>_0x140ce7[0x1]-_0x43dc7b[0x1]),_0x550071=[_0x14a41['length']+_0x5ea1d0(0x104)+_0x407b3f[_0x5ea1d0(0x166)]+_0x5ea1d0(0x161),''],_0xe706d=0x1e;for(const [_0x18bf54,_0x537ce6]of _0x407b3f[_0x5ea1d0(0x15f)](0x0,_0xe706d)){_0x550071[_0x5ea1d0(0x172)]('\x20\x20'+_0x18bf54+_0x5ea1d0(0x147)+_0x537ce6+_0x5ea1d0(0x17c));}return _0x407b3f[_0x5ea1d0(0x166)]>_0xe706d&&_0x550071['push'](_0x5ea1d0(0x10b)+(_0x407b3f['length']-_0xe706d)+_0x5ea1d0(0x10c)),_0x550071[_0x5ea1d0(0xfe)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';var a0_0x136be2=a0_0x1a94;(function(_0x1edf5b,_0x432286){var _0x2d04f3=a0_0x1a94,_0x33a9a1=_0x1edf5b();while(!![]){try{var _0x4316e7=parseInt(_0x2d04f3(0x1aa))/0x1+parseInt(_0x2d04f3(0x1b1))/0x2*(-parseInt(_0x2d04f3(0x19a))/0x3)+parseInt(_0x2d04f3(0x1a1))/0x4+-parseInt(_0x2d04f3(0x1b9))/0x5+-parseInt(_0x2d04f3(0x1bd))/0x6*(parseInt(_0x2d04f3(0x1a5))/0x7)+-parseInt(_0x2d04f3(0x1bc))/0x8+parseInt(_0x2d04f3(0x19b))/0x9*(parseInt(_0x2d04f3(0x1b5))/0xa);if(_0x4316e7===_0x432286)break;else _0x33a9a1['push'](_0x33a9a1['shift']());}catch(_0x59b83d){_0x33a9a1['push'](_0x33a9a1['shift']());}}}(a0_0x4ea6,0x21679));var __createBinding=this&&this[a0_0x136be2(0x1a9)]||(Object[a0_0x136be2(0x1ae)]?function(_0x20c79e,_0x2e2f46,_0x3c9c58,_0x8b0d9a){var _0x559574=a0_0x136be2;if(_0x8b0d9a===undefined)_0x8b0d9a=_0x3c9c58;var _0x2554ad=Object[_0x559574(0x1b2)](_0x2e2f46,_0x3c9c58);(!_0x2554ad||(_0x559574(0x1ba)in _0x2554ad?!_0x2e2f46[_0x559574(0x1b4)]:_0x2554ad[_0x559574(0x1af)]||_0x2554ad[_0x559574(0x1ab)]))&&(_0x2554ad={'enumerable':!![],'get':function(){return _0x2e2f46[_0x3c9c58];}}),Object[_0x559574(0x1a3)](_0x20c79e,_0x8b0d9a,_0x2554ad);}:function(_0x4fff70,_0x27b44e,_0x2679ac,_0x1c8cec){if(_0x1c8cec===undefined)_0x1c8cec=_0x2679ac;_0x4fff70[_0x1c8cec]=_0x27b44e[_0x2679ac];}),__setModuleDefault=this&&this[a0_0x136be2(0x1a2)]||(Object['create']?function(_0x517497,_0x3818e1){var _0x235297=a0_0x136be2;Object[_0x235297(0x1a3)](_0x517497,_0x235297(0x1a8),{'enumerable':!![],'value':_0x3818e1});}:function(_0x22df64,_0x1f5c5e){var _0xd01412=a0_0x136be2;_0x22df64[_0xd01412(0x1a8)]=_0x1f5c5e;}),__importStar=this&&this[a0_0x136be2(0x1ac)]||(function(){var _0x57aad7=function(_0x3a050e){return _0x57aad7=Object['getOwnPropertyNames']||function(_0xcafbad){var _0x4ac908=a0_0x1a94,_0x39225e=[];for(var _0x3fd957 in _0xcafbad)if(Object[_0x4ac908(0x1a4)][_0x4ac908(0x1bb)][_0x4ac908(0x1a0)](_0xcafbad,_0x3fd957))_0x39225e[_0x39225e[_0x4ac908(0x1b8)]]=_0x3fd957;return _0x39225e;},_0x57aad7(_0x3a050e);};return function(_0x598281){var _0x2fb463=a0_0x1a94;if(_0x598281&&_0x598281[_0x2fb463(0x1b4)])return _0x598281;var _0xae4789={};if(_0x598281!=null){for(var _0x1d5233=_0x57aad7(_0x598281),_0x3aeee4=0x0;_0x3aeee4<_0x1d5233['length'];_0x3aeee4++)if(_0x1d5233[_0x3aeee4]!==_0x2fb463(0x1a8))__createBinding(_0xae4789,_0x598281,_0x1d5233[_0x3aeee4]);}return __setModuleDefault(_0xae4789,_0x598281),_0xae4789;};}());Object[a0_0x136be2(0x1a3)](exports,a0_0x136be2(0x1b4),{'value':!![]}),exports[a0_0x136be2(0x1b0)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x136be2(0x1ad))),os=__importStar(require('os'));function a0_0x4ea6(){var _0x5c4681=['72dcDqaZ','51lupEIS','5949aeyEtT','join','//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a','post_tool_use.js','existsSync','call','861600Gtcdba','__setModuleDefault','defineProperty','prototype','113603lGLWam','.claude','homedir','default','__createBinding','7365ElGqHe','configurable','__importStar','path','create','writable','installClaudeHooks','6960Fiacjk','getOwnPropertyDescriptor','utf8','__esModule','6850TywsiZ','mkdirSync','writeFileSync','length','1178330slZURG','get','hasOwnProperty','393208pXwcoT'];a0_0x4ea6=function(){return _0x5c4681;};return a0_0x4ea6();}function a0_0x1a94(_0x24a24d,_0x2b56bc){_0x24a24d=_0x24a24d-0x19a;var _0x4ea6d2=a0_0x4ea6();var _0x1a948a=_0x4ea6d2[_0x24a24d];return _0x1a948a;}function installClaudeHooks(){var _0xb34c08=a0_0x136be2;try{const _0x4a580f=path['join'](os[_0xb34c08(0x1a7)](),_0xb34c08(0x1a6),'hooks');!fs[_0xb34c08(0x19f)](_0x4a580f)&&fs[_0xb34c08(0x1b6)](_0x4a580f,{'recursive':!![]});const _0x593876=path[_0xb34c08(0x19c)](_0x4a580f,_0xb34c08(0x19e)),_0x488eb6=_0xb34c08(0x19d);fs[_0xb34c08(0x1b7)](_0x593876,_0x488eb6,_0xb34c08(0x1b3));}catch(_0x668533){}}
1
+ 'use strict';var a0_0x16077d=a0_0x247d;(function(_0x5d8c31,_0x1f03c6){var _0x125218=a0_0x247d,_0x2dec9f=_0x5d8c31();while(!![]){try{var _0x4eb144=parseInt(_0x125218(0x152))/0x1*(-parseInt(_0x125218(0x14a))/0x2)+-parseInt(_0x125218(0x14b))/0x3+-parseInt(_0x125218(0x139))/0x4+-parseInt(_0x125218(0x138))/0x5+-parseInt(_0x125218(0x14e))/0x6*(-parseInt(_0x125218(0x146))/0x7)+-parseInt(_0x125218(0x147))/0x8+parseInt(_0x125218(0x154))/0x9*(parseInt(_0x125218(0x142))/0xa);if(_0x4eb144===_0x1f03c6)break;else _0x2dec9f['push'](_0x2dec9f['shift']());}catch(_0x290bb8){_0x2dec9f['push'](_0x2dec9f['shift']());}}}(a0_0x3a77,0x723f5));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x34b124,_0x3de6e2,_0x4e7fba,_0x4bcb6c){var _0x24ef41=a0_0x247d;if(_0x4bcb6c===undefined)_0x4bcb6c=_0x4e7fba;var _0x3f9d95=Object[_0x24ef41(0x136)](_0x3de6e2,_0x4e7fba);(!_0x3f9d95||(_0x24ef41(0x140)in _0x3f9d95?!_0x3de6e2[_0x24ef41(0x14f)]:_0x3f9d95[_0x24ef41(0x14d)]||_0x3f9d95['configurable']))&&(_0x3f9d95={'enumerable':!![],'get':function(){return _0x3de6e2[_0x4e7fba];}}),Object[_0x24ef41(0x145)](_0x34b124,_0x4bcb6c,_0x3f9d95);}:function(_0x5c244e,_0x19700b,_0x434278,_0x5a3633){if(_0x5a3633===undefined)_0x5a3633=_0x434278;_0x5c244e[_0x5a3633]=_0x19700b[_0x434278];}),__setModuleDefault=this&&this[a0_0x16077d(0x14c)]||(Object[a0_0x16077d(0x149)]?function(_0x2f104a,_0x1f1753){var _0x166a56=a0_0x16077d;Object[_0x166a56(0x145)](_0x2f104a,_0x166a56(0x13f),{'enumerable':!![],'value':_0x1f1753});}:function(_0x4d6e0b,_0x4fa465){_0x4d6e0b['default']=_0x4fa465;}),__importStar=this&&this['__importStar']||(function(){var _0x10a0bd=function(_0x54bb01){var _0x47119a=a0_0x247d;return _0x10a0bd=Object[_0x47119a(0x137)]||function(_0x548439){var _0x56239c=_0x47119a,_0x4f28bd=[];for(var _0xecc10 in _0x548439)if(Object[_0x56239c(0x13a)]['hasOwnProperty'][_0x56239c(0x144)](_0x548439,_0xecc10))_0x4f28bd[_0x4f28bd[_0x56239c(0x13d)]]=_0xecc10;return _0x4f28bd;},_0x10a0bd(_0x54bb01);};return function(_0x563f00){var _0x4aa902=a0_0x247d;if(_0x563f00&&_0x563f00[_0x4aa902(0x14f)])return _0x563f00;var _0x29b2da={};if(_0x563f00!=null){for(var _0x5f033f=_0x10a0bd(_0x563f00),_0x425b36=0x0;_0x425b36<_0x5f033f['length'];_0x425b36++)if(_0x5f033f[_0x425b36]!=='default')__createBinding(_0x29b2da,_0x563f00,_0x5f033f[_0x425b36]);}return __setModuleDefault(_0x29b2da,_0x563f00),_0x29b2da;};}());function a0_0x247d(_0x4e9b98,_0x5ac640){_0x4e9b98=_0x4e9b98-0x135;var _0x3a7708=a0_0x3a77();var _0x247dbf=_0x3a7708[_0x4e9b98];return _0x247dbf;}function a0_0x3a77(){var _0x134aa7=['writeFileSync','default','get','join','30DvgBDv','//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a','call','defineProperty','2286452BwthOQ','1750936BniRuG','post_tool_use.js','create','285586iClRdu','1317924WKuvOL','__setModuleDefault','writable','6GROluC','__esModule','homedir','installClaudeHooks','1daLJmY','.claude','5400252oPfFuM','mkdirSync','getOwnPropertyDescriptor','getOwnPropertyNames','2670665HDtwvK','1294648KoAKSd','prototype','path','utf8','length'];a0_0x3a77=function(){return _0x134aa7;};return a0_0x3a77();}Object['defineProperty'](exports,a0_0x16077d(0x14f),{'value':!![]}),exports[a0_0x16077d(0x151)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x16077d(0x13b))),os=__importStar(require('os'));function installClaudeHooks(){var _0x4bfdee=a0_0x16077d;try{const _0x4e6773=path[_0x4bfdee(0x141)](os[_0x4bfdee(0x150)](),_0x4bfdee(0x153),'hooks');!fs['existsSync'](_0x4e6773)&&fs[_0x4bfdee(0x135)](_0x4e6773,{'recursive':!![]});const _0x56da73=path[_0x4bfdee(0x141)](_0x4e6773,_0x4bfdee(0x148)),_0x578321=_0x4bfdee(0x143);fs[_0x4bfdee(0x13e)](_0x56da73,_0x578321,_0x4bfdee(0x13c));}catch(_0x202f26){}}