trimprompt 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cache.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x51d131=a0_0x1a40;(function(_0xc14d9e,_0x492655){const _0x34b8f1=a0_0x1a40,_0x4d6f9e=_0xc14d9e();while(!![]){try{const _0x32583f=-parseInt(_0x34b8f1(0xbe))/0x1*(parseInt(_0x34b8f1(0x95))/0x2)+-parseInt(_0x34b8f1(0xc3))/0x3+parseInt(_0x34b8f1(0xc0))/0x4*(-parseInt(_0x34b8f1(0xd4))/0x5)+-parseInt(_0x34b8f1(0xd3))/0x6+parseInt(_0x34b8f1(0xce))/0x7+-parseInt(_0x34b8f1(0x93))/0x8+parseInt(_0x34b8f1(0xd1))/0x9*(parseInt(_0x34b8f1(0xa3))/0xa);if(_0x32583f===_0x492655)break;else _0x4d6f9e['push'](_0x4d6f9e['shift']());}catch(_0x5c2244){_0x4d6f9e['push'](_0x4d6f9e['shift']());}}}(a0_0x1192,0xcfb9e));var __createBinding=this&&this[a0_0x51d131(0x9c)]||(Object[a0_0x51d131(0x9b)]?function(_0x395d4d,_0x2a764f,_0x55ac17,_0x75e8b6){const _0x5c4f3a=a0_0x51d131;if(_0x75e8b6===undefined)_0x75e8b6=_0x55ac17;var _0x578997=Object['getOwnPropertyDescriptor'](_0x2a764f,_0x55ac17);(!_0x578997||(_0x5c4f3a(0xc9)in _0x578997?!_0x2a764f[_0x5c4f3a(0xd2)]:_0x578997[_0x5c4f3a(0xb1)]||_0x578997[_0x5c4f3a(0x97)]))&&(_0x578997={'enumerable':!![],'get':function(){return _0x2a764f[_0x55ac17];}}),Object['defineProperty'](_0x395d4d,_0x75e8b6,_0x578997);}:function(_0x430728,_0x57ed12,_0x463fb6,_0x2f1881){if(_0x2f1881===undefined)_0x2f1881=_0x463fb6;_0x430728[_0x2f1881]=_0x57ed12[_0x463fb6];}),__setModuleDefault=this&&this[a0_0x51d131(0xcc)]||(Object[a0_0x51d131(0x9b)]?function(_0x20df79,_0x581623){const _0x3081ca=a0_0x51d131;Object[_0x3081ca(0xa4)](_0x20df79,_0x3081ca(0x94),{'enumerable':!![],'value':_0x581623});}:function(_0x2593c6,_0x39d1de){const _0x21ad73=a0_0x51d131;_0x2593c6[_0x21ad73(0x94)]=_0x39d1de;}),__importStar=this&&this[a0_0x51d131(0xbb)]||(function(){var _0x487bca=function(_0x5ec0a8){return _0x487bca=Object['getOwnPropertyNames']||function(_0x4868a4){const _0x5c75fb=a0_0x1a40;var _0x2ddd79=[];for(var _0x880625 in _0x4868a4)if(Object[_0x5c75fb(0xd0)]['hasOwnProperty'][_0x5c75fb(0xa9)](_0x4868a4,_0x880625))_0x2ddd79[_0x2ddd79[_0x5c75fb(0xa2)]]=_0x880625;return _0x2ddd79;},_0x487bca(_0x5ec0a8);};return function(_0xe434d){const _0x1baad2=a0_0x1a40;if(_0xe434d&&_0xe434d[_0x1baad2(0xd2)])return _0xe434d;var _0x3a6c1c={};if(_0xe434d!=null){for(var _0x3f4584=_0x487bca(_0xe434d),_0x3c2feb=0x0;_0x3c2feb<_0x3f4584[_0x1baad2(0xa2)];_0x3c2feb++)if(_0x3f4584[_0x3c2feb]!==_0x1baad2(0x94))__createBinding(_0x3a6c1c,_0xe434d,_0x3f4584[_0x3c2feb]);}return __setModuleDefault(_0x3a6c1c,_0xe434d),_0x3a6c1c;};}());function a0_0x1a40(_0x3af42e,_0x5b889d){_0x3af42e=_0x3af42e-0x8b;const _0x11920e=a0_0x1192();let _0x1a403f=_0x11920e[_0x3af42e];return _0x1a403f;}Object[a0_0x51d131(0xa4)](exports,a0_0x51d131(0xd2),{'value':!![]}),exports[a0_0x51d131(0xca)]=dedup;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x51d131(0xaa))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x51d131(0xad))),CACHE_DIR=path[a0_0x51d131(0x92)](os[a0_0x51d131(0xbd)](),'.trimprompt'),CACHE_FILE=path['join'](CACHE_DIR,a0_0x51d131(0x8f)),MAX_ENTRIES=0x12c,TTL_SECONDS={'file':0x78,'git-status':0x1e,'git-log':0x3c,'git-show':0xe10,'ls':0x3c,'tree':0x3c,'docker-ps':0x1e,'docker-images':0x3c,'kubectl':0x1e,'ruff':0x3c,'go-vet':0x3c};function classifyCommand(_0x4e4149){const _0x65057d=a0_0x51d131,_0x10e592=_0x4e4149[_0x65057d(0x8e)]()[_0x65057d(0xb8)]();if(_0x10e592[_0x65057d(0xb5)](/^(cat|head|tail|read|bat)\s/))return _0x65057d(0xaf);if(_0x10e592['includes'](_0x65057d(0xd6))||_0x10e592[_0x65057d(0xb3)](_0x65057d(0x99)))return _0x65057d(0x8c);if(_0x10e592[_0x65057d(0xb3)](_0x65057d(0x9a))||_0x10e592[_0x65057d(0xb3)]('yadm\x20log'))return _0x65057d(0xa5);if(_0x10e592['includes']('git\x20show')||_0x10e592[_0x65057d(0xb3)]('yadm\x20show'))return _0x65057d(0xd7);if(_0x10e592['match'](/^(ls|dir)(\s|$)/)||_0x10e592[_0x65057d(0xb3)](_0x65057d(0xb0))||_0x10e592[_0x65057d(0xa8)](_0x65057d(0xae)))return'ls';if(_0x10e592[_0x65057d(0xb5)](/^tree(\s|$)/)||_0x10e592[_0x65057d(0xb3)]('\x20tree\x20')||_0x10e592['endsWith'](_0x65057d(0xc7)))return _0x65057d(0x90);if(_0x10e592[_0x65057d(0xb5)](/docker\s+ps/))return'docker-ps';if(_0x10e592['match'](/docker\s+images/))return'docker-images';if(_0x10e592[_0x65057d(0xb3)]('kubectl\x20get')||_0x10e592[_0x65057d(0xb3)](_0x65057d(0xac)))return _0x65057d(0xa0);if(_0x10e592[_0x65057d(0xb3)](_0x65057d(0xc2))||_0x10e592[_0x65057d(0xb3)](_0x65057d(0xb4)))return _0x65057d(0x91);if(_0x10e592['includes']('go\x20vet'))return _0x65057d(0xba);return'';}function md5(_0x459683){const _0x3b8a8a=a0_0x51d131;return crypto['createHash'](_0x3b8a8a(0x9d))[_0x3b8a8a(0x8b)](_0x459683)[_0x3b8a8a(0xbc)](_0x3b8a8a(0x8d));}function loadStore(){const _0x129ec4=a0_0x51d131;try{if(fs[_0x129ec4(0x9e)](CACHE_FILE))return JSON[_0x129ec4(0xd5)](fs[_0x129ec4(0xc6)](CACHE_FILE,_0x129ec4(0xa1)));}catch{}return{};}function saveStore(_0x217bdf){const _0x4a5eb3=a0_0x51d131;try{if(!fs[_0x4a5eb3(0x9e)](CACHE_DIR))fs[_0x4a5eb3(0xbf)](CACHE_DIR,{'recursive':!![]});const _0x4d6d96=Object['keys'](_0x217bdf);if(_0x4d6d96[_0x4a5eb3(0xa2)]>MAX_ENTRIES){const _0x5d1a64=_0x4d6d96[_0x4a5eb3(0xcb)]((_0x23d0aa,_0x4e2a11)=>_0x217bdf[_0x23d0aa][_0x4a5eb3(0xcf)]-_0x217bdf[_0x4e2a11]['timestamp']);for(const _0x3c0125 of _0x5d1a64[_0x4a5eb3(0xcd)](0x0,_0x4d6d96[_0x4a5eb3(0xa2)]-MAX_ENTRIES)){delete _0x217bdf[_0x3c0125];}}fs[_0x4a5eb3(0xb2)](CACHE_FILE,JSON[_0x4a5eb3(0xab)](_0x217bdf),_0x4a5eb3(0xa1));}catch{}}function buildSummary(_0x537ffa,_0x139388){const _0x4eb75b=a0_0x51d131,_0x2a9134=_0x537ffa['split']('\x0a')[_0x4eb75b(0xa2)],_0xcccfca=_0x537ffa['length'];if(_0x139388===_0x4eb75b(0xaf))return _0x2a9134+'\x20lines,\x20'+_0xcccfca+'\x20chars';if(_0x139388===_0x4eb75b(0x8c))return _0x2a9134+_0x4eb75b(0xc8);if(_0x139388===_0x4eb75b(0xa5))return _0x2a9134+_0x4eb75b(0xc1);if(_0x139388[_0x4eb75b(0xb6)](_0x4eb75b(0x96)))return _0x2a9134+_0x4eb75b(0xc8);return _0x2a9134+_0x4eb75b(0xb7)+_0xcccfca+_0x4eb75b(0x9f);}function dedup(_0x20e85e,_0x5b25de){const _0x548f85=a0_0x51d131;try{const _0x17a7f4=classifyCommand(_0x20e85e);if(!_0x17a7f4)return null;const _0x2c026a=TTL_SECONDS[_0x17a7f4];if(!_0x2c026a)return null;const _0x3e7ef8=process[_0x548f85(0xb9)](),_0x31d536=md5(_0x3e7ef8+'::'+_0x20e85e[_0x548f85(0x8e)]()),_0x716d3f=md5(_0x5b25de),_0x577874=Date[_0x548f85(0xa6)](),_0x3a7522=loadStore(),_0x3bd9ef=_0x3a7522[_0x31d536];if(_0x3bd9ef&&_0x3bd9ef[_0x548f85(0xa7)]===_0x716d3f&&_0x577874-_0x3bd9ef['timestamp']<_0x2c026a*0x3e8){const _0x289704=Math[_0x548f85(0xc4)]((_0x577874-_0x3bd9ef[_0x548f85(0xcf)])/0x3e8);return'[cached\x20—\x20unchanged\x20since\x20'+_0x289704+_0x548f85(0xc5)+_0x3bd9ef[_0x548f85(0x98)]+']';}_0x3a7522[_0x31d536]={'hash':_0x716d3f,'summary':buildSummary(_0x5b25de,_0x17a7f4),'timestamp':_0x577874,'chars':_0x5b25de['length']},saveStore(_0x3a7522);}catch{}return null;}function a0_0x1192(){const _0x138df9=['startsWith','\x20lines,\x20','toLowerCase','cwd','go-vet','__importStar','digest','homedir','312808crSZZi','mkdirSync','4nLTkkv','\x20entries','ruff\x20check','4093041TiiCLR','round','s\x20ago,\x20','readFileSync','\x20tree','\x20lines','get','dedup','sort','__setModuleDefault','slice','8166473kMshPE','timestamp','prototype','63qUjfWN','__esModule','4379598FyshcK','6570685tbDwFX','parse','git\x20status','git-show','update','git-status','hex','trim','cache.json','tree','ruff','join','12191128PrZKGt','default','2nTBRUK','docker','configurable','summary','yadm\x20status','git\x20log','create','__createBinding','md5','existsSync','\x20chars','kubectl','utf8','length','7041890SbEtnS','defineProperty','git-log','now','hash','endsWith','call','path','stringify','kubectl\x20describe','crypto','\x20ls','file','\x20ls\x20','writable','writeFileSync','includes','ruff\x20','match'];a0_0x1192=function(){return _0x138df9;};return a0_0x1192();}
1
+ 'use strict';const a0_0x77cd5c=a0_0x4be0;(function(_0x4e7649,_0x33998a){const _0x529f06=a0_0x4be0,_0x12177c=_0x4e7649();while(!![]){try{const _0x5ea3a1=-parseInt(_0x529f06(0x1ba))/0x1+-parseInt(_0x529f06(0x1a5))/0x2+-parseInt(_0x529f06(0x191))/0x3*(-parseInt(_0x529f06(0x1af))/0x4)+-parseInt(_0x529f06(0x199))/0x5*(parseInt(_0x529f06(0x197))/0x6)+parseInt(_0x529f06(0x19a))/0x7+-parseInt(_0x529f06(0x17f))/0x8+parseInt(_0x529f06(0x1b6))/0x9;if(_0x5ea3a1===_0x33998a)break;else _0x12177c['push'](_0x12177c['shift']());}catch(_0x4f39eb){_0x12177c['push'](_0x12177c['shift']());}}}(a0_0x51b8,0xac26a));var __createBinding=this&&this['__createBinding']||(Object[a0_0x77cd5c(0x1b0)]?function(_0x3912ef,_0x185dc7,_0x412b5e,_0x3c1f4e){const _0x94484f=a0_0x77cd5c;if(_0x3c1f4e===undefined)_0x3c1f4e=_0x412b5e;var _0x2b1029=Object['getOwnPropertyDescriptor'](_0x185dc7,_0x412b5e);(!_0x2b1029||(_0x94484f(0x195)in _0x2b1029?!_0x185dc7[_0x94484f(0x1a7)]:_0x2b1029[_0x94484f(0x189)]||_0x2b1029[_0x94484f(0x1a0)]))&&(_0x2b1029={'enumerable':!![],'get':function(){return _0x185dc7[_0x412b5e];}}),Object[_0x94484f(0x17a)](_0x3912ef,_0x3c1f4e,_0x2b1029);}:function(_0x5e8d74,_0x33a93f,_0x392bdc,_0xc0e54d){if(_0xc0e54d===undefined)_0xc0e54d=_0x392bdc;_0x5e8d74[_0xc0e54d]=_0x33a93f[_0x392bdc];}),__setModuleDefault=this&&this[a0_0x77cd5c(0x1ac)]||(Object[a0_0x77cd5c(0x1b0)]?function(_0x4455ea,_0x55d015){const _0x42e06a=a0_0x77cd5c;Object[_0x42e06a(0x17a)](_0x4455ea,'default',{'enumerable':!![],'value':_0x55d015});}:function(_0x24ce13,_0x4d9df2){const _0x2b3e4e=a0_0x77cd5c;_0x24ce13[_0x2b3e4e(0x184)]=_0x4d9df2;}),__importStar=this&&this[a0_0x77cd5c(0x1a3)]||(function(){var _0x2d53fb=function(_0x23b48b){const _0x324ed8=a0_0x4be0;return _0x2d53fb=Object[_0x324ed8(0x1b7)]||function(_0x961fdc){const _0x52eceb=_0x324ed8;var _0x537e8b=[];for(var _0x2ea1d9 in _0x961fdc)if(Object[_0x52eceb(0x185)][_0x52eceb(0x18d)][_0x52eceb(0x18e)](_0x961fdc,_0x2ea1d9))_0x537e8b[_0x537e8b['length']]=_0x2ea1d9;return _0x537e8b;},_0x2d53fb(_0x23b48b);};return function(_0x40314f){const _0x3a345a=a0_0x4be0;if(_0x40314f&&_0x40314f['__esModule'])return _0x40314f;var _0x1b3a59={};if(_0x40314f!=null){for(var _0x5ef670=_0x2d53fb(_0x40314f),_0x418188=0x0;_0x418188<_0x5ef670[_0x3a345a(0x188)];_0x418188++)if(_0x5ef670[_0x418188]!=='default')__createBinding(_0x1b3a59,_0x40314f,_0x5ef670[_0x418188]);}return __setModuleDefault(_0x1b3a59,_0x40314f),_0x1b3a59;};}());Object[a0_0x77cd5c(0x17a)](exports,a0_0x77cd5c(0x1a7),{'value':!![]}),exports[a0_0x77cd5c(0x1aa)]=dedup;function a0_0x4be0(_0x3a7abd,_0x2d616d){_0x3a7abd=_0x3a7abd-0x170;const _0x51b88b=a0_0x51b8();let _0x4be038=_0x51b88b[_0x3a7abd];return _0x4be038;}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x77cd5c(0x18c))),os=__importStar(require('os')),crypto=__importStar(require('crypto')),CACHE_DIR=path['join'](os[a0_0x77cd5c(0x1a6)](),a0_0x77cd5c(0x192)),CACHE_FILE=path[a0_0x77cd5c(0x1b8)](CACHE_DIR,a0_0x77cd5c(0x1a2)),MAX_ENTRIES=0x12c,TTL_SECONDS={'file':0x78,'git-status':0x1e,'git-log':0x3c,'git-show':0xe10,'ls':0x3c,'tree':0x3c,'docker-ps':0x1e,'docker-images':0x3c,'kubectl':0x1e,'ruff':0x3c,'go-vet':0x3c};function classifyCommand(_0x3219c6){const _0x404144=a0_0x77cd5c,_0x3468ae=_0x3219c6['trim']()[_0x404144(0x1b5)]();if(_0x3468ae[_0x404144(0x175)](/^(cat|head|tail|read|bat)\s/))return _0x404144(0x176);if(_0x3468ae[_0x404144(0x171)](_0x404144(0x17b))||_0x3468ae[_0x404144(0x171)]('yadm\x20status'))return _0x404144(0x19d);if(_0x3468ae[_0x404144(0x171)](_0x404144(0x181))||_0x3468ae[_0x404144(0x171)](_0x404144(0x1b4)))return _0x404144(0x170);if(_0x3468ae[_0x404144(0x171)](_0x404144(0x1a4))||_0x3468ae['includes']('yadm\x20show'))return _0x404144(0x19b);if(_0x3468ae['match'](/^(ls|dir)(\s|$)/)||_0x3468ae[_0x404144(0x171)](_0x404144(0x19f))||_0x3468ae[_0x404144(0x1a9)](_0x404144(0x19e)))return'ls';if(_0x3468ae[_0x404144(0x175)](/^tree(\s|$)/)||_0x3468ae['includes']('\x20tree\x20')||_0x3468ae[_0x404144(0x1a9)](_0x404144(0x1be)))return _0x404144(0x1b1);if(_0x3468ae[_0x404144(0x175)](/docker\s+ps/))return _0x404144(0x1a8);if(_0x3468ae[_0x404144(0x175)](/docker\s+images/))return _0x404144(0x1b2);if(_0x3468ae[_0x404144(0x171)](_0x404144(0x196))||_0x3468ae[_0x404144(0x171)](_0x404144(0x17c)))return _0x404144(0x198);if(_0x3468ae[_0x404144(0x171)]('ruff\x20check')||_0x3468ae[_0x404144(0x171)]('ruff\x20'))return _0x404144(0x1ae);if(_0x3468ae[_0x404144(0x171)]('go\x20vet'))return'go-vet';return'';}function md5(_0x12dd40){const _0x5b9719=a0_0x77cd5c;return crypto['createHash'](_0x5b9719(0x1bb))[_0x5b9719(0x178)](_0x12dd40)[_0x5b9719(0x1bd)](_0x5b9719(0x1b9));}function loadStore(){const _0xc05ebc=a0_0x77cd5c;try{if(fs[_0xc05ebc(0x173)](CACHE_FILE))return JSON[_0xc05ebc(0x18a)](fs[_0xc05ebc(0x182)](CACHE_FILE,'utf8'));}catch{}return{};}function saveStore(_0x33b9c0){const _0x43fae7=a0_0x77cd5c;try{if(!fs[_0x43fae7(0x173)](CACHE_DIR))fs[_0x43fae7(0x193)](CACHE_DIR,{'recursive':!![]});const _0x1d9f42=Object[_0x43fae7(0x177)](_0x33b9c0);if(_0x1d9f42[_0x43fae7(0x188)]>MAX_ENTRIES){const _0x1ec299=_0x1d9f42[_0x43fae7(0x19c)]((_0x580db6,_0x4ef715)=>_0x33b9c0[_0x580db6][_0x43fae7(0x174)]-_0x33b9c0[_0x4ef715][_0x43fae7(0x174)]);for(const _0x103c50 of _0x1ec299['slice'](0x0,_0x1d9f42[_0x43fae7(0x188)]-MAX_ENTRIES)){delete _0x33b9c0[_0x103c50];}}fs[_0x43fae7(0x179)](CACHE_FILE,JSON[_0x43fae7(0x18b)](_0x33b9c0),_0x43fae7(0x183));}catch{}}function a0_0x51b8(){const _0x589ae7=['startsWith','ruff','36AyjXRt','create','tree','docker-images','\x20entries','yadm\x20log','toLowerCase','2669724zmoSGW','getOwnPropertyNames','join','hex','455177AibRkq','md5','split','digest','\x20tree','git-log','includes','\x20lines','existsSync','timestamp','match','file','keys','update','writeFileSync','defineProperty','git\x20status','kubectl\x20describe','\x20lines,\x20','\x20chars','1674560SKKzLj','[cached\x20—\x20unchanged\x20since\x20','git\x20log','readFileSync','utf8','default','prototype','s\x20ago,\x20','hash','length','writable','parse','stringify','path','hasOwnProperty','call','trim','summary','362214pHYcAb','.trimprompt','mkdirSync','cwd','get','kubectl\x20get','26766jIsAiH','kubectl','895SJsKFy','6815221wNvUiN','git-show','sort','git-status','\x20ls','\x20ls\x20','configurable','round','cache.json','__importStar','git\x20show','377470PglzKE','homedir','__esModule','docker-ps','endsWith','dedup','now','__setModuleDefault'];a0_0x51b8=function(){return _0x589ae7;};return a0_0x51b8();}function buildSummary(_0x98f251,_0x582a47){const _0x50bc81=a0_0x77cd5c,_0x551659=_0x98f251[_0x50bc81(0x1bc)]('\x0a')[_0x50bc81(0x188)],_0x52667c=_0x98f251['length'];if(_0x582a47===_0x50bc81(0x176))return _0x551659+_0x50bc81(0x17d)+_0x52667c+_0x50bc81(0x17e);if(_0x582a47==='git-status')return _0x551659+'\x20lines';if(_0x582a47===_0x50bc81(0x170))return _0x551659+_0x50bc81(0x1b3);if(_0x582a47[_0x50bc81(0x1ad)]('docker'))return _0x551659+_0x50bc81(0x172);return _0x551659+'\x20lines,\x20'+_0x52667c+_0x50bc81(0x17e);}function dedup(_0x1b4848,_0x35ed1d){const _0x429947=a0_0x77cd5c;try{const _0x26f38d=classifyCommand(_0x1b4848);if(!_0x26f38d)return null;const _0x4d3994=TTL_SECONDS[_0x26f38d];if(!_0x4d3994)return null;const _0x3764f5=process[_0x429947(0x194)](),_0x1d4dce=md5(_0x3764f5+'::'+_0x1b4848[_0x429947(0x18f)]()),_0x297f56=md5(_0x35ed1d),_0x338f03=Date[_0x429947(0x1ab)](),_0x2462e1=loadStore(),_0x4d559c=_0x2462e1[_0x1d4dce];if(_0x4d559c&&_0x4d559c[_0x429947(0x187)]===_0x297f56&&_0x338f03-_0x4d559c[_0x429947(0x174)]<_0x4d3994*0x3e8){const _0x36b69e=Math[_0x429947(0x1a1)]((_0x338f03-_0x4d559c[_0x429947(0x174)])/0x3e8);return _0x429947(0x180)+_0x36b69e+_0x429947(0x186)+_0x4d559c[_0x429947(0x190)]+']';}_0x2462e1[_0x1d4dce]={'hash':_0x297f56,'summary':buildSummary(_0x35ed1d,_0x26f38d),'timestamp':_0x338f03,'chars':_0x35ed1d['length']},saveStore(_0x2462e1);}catch{}return null;}
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a0_0x45b8d7=a0_0x4e44;(function(_0x384f50,_0x547ce8){const _0x6643fa=a0_0x4e44,_0x2e6f54=_0x384f50();while(!![]){try{const _0x5d8bed=-parseInt(_0x6643fa(0x164))/0x1*(parseInt(_0x6643fa(0x1ba))/0x2)+parseInt(_0x6643fa(0x177))/0x3*(-parseInt(_0x6643fa(0x16d))/0x4)+parseInt(_0x6643fa(0x191))/0x5+-parseInt(_0x6643fa(0x174))/0x6*(-parseInt(_0x6643fa(0x1d0))/0x7)+-parseInt(_0x6643fa(0x18e))/0x8*(-parseInt(_0x6643fa(0x195))/0x9)+parseInt(_0x6643fa(0x1dc))/0xa+parseInt(_0x6643fa(0x1a0))/0xb;if(_0x5d8bed===_0x547ce8)break;else _0x2e6f54['push'](_0x2e6f54['shift']());}catch(_0x52917c){_0x2e6f54['push'](_0x2e6f54['shift']());}}}(a0_0x4f09,0x4a104));var __createBinding=this&&this['__createBinding']||(Object[a0_0x45b8d7(0x175)]?function(_0x55f436,_0x5bbbc8,_0x35d7eb,_0x50e83c){const _0x359a62=a0_0x45b8d7;if(_0x50e83c===undefined)_0x50e83c=_0x35d7eb;var _0x3f2868=Object['getOwnPropertyDescriptor'](_0x5bbbc8,_0x35d7eb);(!_0x3f2868||(_0x359a62(0x1a1)in _0x3f2868?!_0x5bbbc8[_0x359a62(0x1a9)]:_0x3f2868[_0x359a62(0x1aa)]||_0x3f2868['configurable']))&&(_0x3f2868={'enumerable':!![],'get':function(){return _0x5bbbc8[_0x35d7eb];}}),Object['defineProperty'](_0x55f436,_0x50e83c,_0x3f2868);}:function(_0xf3196a,_0x4eeb60,_0x2445e8,_0x16a83f){if(_0x16a83f===undefined)_0x16a83f=_0x2445e8;_0xf3196a[_0x16a83f]=_0x4eeb60[_0x2445e8];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x5c5d0f,_0x8b1ba2){const _0x457044=a0_0x45b8d7;Object[_0x457044(0x1cf)](_0x5c5d0f,_0x457044(0x1c5),{'enumerable':!![],'value':_0x8b1ba2});}:function(_0x56b928,_0x2c58ab){const _0x43301d=a0_0x45b8d7;_0x56b928[_0x43301d(0x1c5)]=_0x2c58ab;}),__importStar=this&&this[a0_0x45b8d7(0x18c)]||(function(){var _0x4f321c=function(_0xf1f91e){const _0x26d827=a0_0x4e44;return _0x4f321c=Object[_0x26d827(0x158)]||function(_0x592f00){const _0x33d0c2=_0x26d827;var _0x28d9c5=[];for(var _0x52df3f in _0x592f00)if(Object['prototype'][_0x33d0c2(0x16e)]['call'](_0x592f00,_0x52df3f))_0x28d9c5[_0x28d9c5['length']]=_0x52df3f;return _0x28d9c5;},_0x4f321c(_0xf1f91e);};return function(_0x458841){const _0x663c6d=a0_0x4e44;if(_0x458841&&_0x458841[_0x663c6d(0x1a9)])return _0x458841;var _0xc0a542={};if(_0x458841!=null){for(var _0x260ac6=_0x4f321c(_0x458841),_0x336520=0x0;_0x336520<_0x260ac6[_0x663c6d(0x168)];_0x336520++)if(_0x260ac6[_0x336520]!==_0x663c6d(0x1c5))__createBinding(_0xc0a542,_0x458841,_0x260ac6[_0x336520]);}return __setModuleDefault(_0xc0a542,_0x458841),_0xc0a542;};}());function a0_0x4f09(){const _0x361bc5=['[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','slice','option','args','\x0a=============================================','true','toLowerCase','../package.json','--porcelain','mcp-server','yarn','getOwnPropertyNames','catch','proxy','rewrite','install','<commandLine>','stdout','action','installShims','1.0.0','--no-merges','config\x20parameter\x20name','148026gwPQFr','total_raw_tokens','then','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','length','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','includes','status','server-mcp','80qmJJQk','hasOwnProperty','log','argv','<action>','--oneline','cmd','390XuzWDx','create','--short','79923VBKlfG','./mcp','savings_percentage','raw_cost_usd','config','-p,\x20--port\x20<number>','Error:\x20Value\x20required\x20for\x20set\x20action','\x20(after\x20Trim)','startsWith','getStatsSummary','toFixed','port','[value]','server','\x20=\x20','error','Show\x20token\x20and\x20cost\x20savings\x20summary','exitCode','4000','Command\x20line\x20to\x20evaluate','./cache','__importStar','help','3779928vRkyhI','push','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','184310ijkfiH','description','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','---------------------------------------------','9VOjUcW','command','uninstall','\x20USD','mcp-proxy','<server-command>','Install\x20or\x20uninstall\x20system\x20command\x20shims','./dashboard','--max-count','Arguments\x20for\x20the\x20target\x20MCP\x20server','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','701712QwnLxQ','get','-bs','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','-10','setConfig','argument','compressOutput','stderr','__esModule','writable','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','./tracker','total_compressed_tokens','@modelcontextprotocol/','\x20(before\x20Trim)','tracker','commander','stats','shims','=============================================','compressed_cost_usd','<key>','[server-args...]','--merges','./package.json','4VDSsdI','./filters','mcp','parse','value\x20to\x20set','Config\x20set\x20','dashboard','platform','version','every','Command','default','name','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','exit','write','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','model','-50','uninstallShims','defineProperty','31087lQaQBo','lastRedactAudit','./shims','git','startDashboard','rewriteCommand','trim','bun','toLocaleString','message','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','false','2704260WBMMOt','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','=============================================\x0a','redaction_enabled','alias','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','model_name','install\x20or\x20uninstall','dedup','win32','some','--min-parents','__VERSION__','join','Manage\x20local\x20configuration\x20parameters','resolve'];a0_0x4f09=function(){return _0x361bc5;};return a0_0x4f09();}function a0_0x4e44(_0x3d3ef0,_0x982cb){_0x3d3ef0=_0x3d3ef0-0x14c;const _0x4f0953=a0_0x4f09();let _0x4e44ee=_0x4f0953[_0x3d3ef0];return _0x4e44ee;}Object[a0_0x45b8d7(0x1cf)](exports,a0_0x45b8d7(0x1a9),{'value':!![]});const commander_1=require(a0_0x45b8d7(0x1b1)),executor_1=require('./executor'),filters_1=require(a0_0x45b8d7(0x1bb)),tracker_1=require(a0_0x45b8d7(0x1ac)),cache_1=require(a0_0x45b8d7(0x18b)),shims_1=require(a0_0x45b8d7(0x1d2)),dashboard_1=require(a0_0x45b8d7(0x19c)),program=new commander_1[(a0_0x45b8d7(0x1c4))]();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x4dc2f8,_0x296a0e){const _0x16033b=a0_0x45b8d7,_0x222723=_0x4dc2f8[_0x16033b(0x153)]();if(_0x222723===_0x16033b(0x1d3)||_0x222723==='yadm'){const _0x3cd43a=_0x296a0e[0x0];if(_0x3cd43a===_0x16033b(0x16b)){const _0x3e105f=_0x296a0e['slice'](0x1),_0x19f8b7=_0x3e105f[_0x16033b(0x168)]===0x0||_0x3e105f[_0x16033b(0x1c3)](_0x3eb680=>{const _0x4355ac=_0x16033b;return _0x3eb680==='-b'||_0x3eb680==='--branch'||_0x3eb680==='-sb'||_0x3eb680===_0x4355ac(0x1a2)||_0x3eb680==='-s'||_0x3eb680===_0x4355ac(0x176);});if(_0x19f8b7)return{'cmd':_0x4dc2f8,'args':[_0x16033b(0x16b),_0x16033b(0x155),'-b']};}else{if(_0x3cd43a===_0x16033b(0x16f)){const _0x16ae5d=_0x296a0e[_0x16033b(0x14e)](0x1),_0x486519=_0x16ae5d[_0x16033b(0x1e6)](_0x346ef5=>_0x346ef5[_0x16033b(0x17f)](_0x16033b(0x172))||_0x346ef5[_0x16033b(0x17f)]('--pretty')||_0x346ef5['startsWith']('--format')),_0x2d6cbe=_0x16ae5d[_0x16033b(0x1e6)](_0x23959b=>_0x23959b[_0x16033b(0x17f)]('-')&&/^\d+$/['test'](_0x23959b[_0x16033b(0x14e)](0x1))||_0x23959b==='-n'||_0x23959b[_0x16033b(0x17f)](_0x16033b(0x19d))),_0x586ca3=[..._0x296a0e];if(!_0x486519){const _0x2273f9=_0x16033b(0x1cb);_0x586ca3[_0x16033b(0x18f)](process[_0x16033b(0x1c1)]===_0x16033b(0x1e5)?'\x22'+_0x2273f9+'\x22':_0x2273f9);}!_0x2d6cbe&&(_0x486519?_0x586ca3['push'](_0x16033b(0x1cd)):_0x586ca3['push'](_0x16033b(0x1a4)));const _0x5458f3=_0x16ae5d[_0x16033b(0x1e6)](_0x4c6a03=>_0x4c6a03===_0x16033b(0x1b8)||_0x4c6a03===_0x16033b(0x162)||_0x4c6a03[_0x16033b(0x17f)](_0x16033b(0x1e7)));return!_0x5458f3&&!_0x2d6cbe&&_0x586ca3[_0x16033b(0x18f)](_0x16033b(0x162)),{'cmd':_0x4dc2f8,'args':_0x586ca3};}}}return{'cmd':_0x4dc2f8,'args':_0x296a0e};}function isMcpServerExecution(_0xd13c82,_0x4a12d6){const _0x32c501=a0_0x45b8d7,_0x414031=_0xd13c82['toLowerCase'](),_0x4520c4=_0x4a12d6['join']('\x20')['toLowerCase']();if(_0x414031[_0x32c501(0x16a)](_0x32c501(0x1bc))&&(_0x414031[_0x32c501(0x16a)](_0x32c501(0x184))||_0x414031[_0x32c501(0x16a)](_0x32c501(0x15a))))return!![];if(_0x414031==='npx'||_0x414031==='node'||_0x414031===_0x32c501(0x1d7)||_0x414031==='npm'||_0x414031==='pnpm'||_0x414031===_0x32c501(0x157)){if(_0x4520c4[_0x32c501(0x16a)]('@modelcontextprotocol/')||_0x4520c4[_0x32c501(0x16a)]('modelcontextprotocol')||_0x4520c4['includes'](_0x32c501(0x156))||_0x4520c4[_0x32c501(0x16a)](_0x32c501(0x16c)))return!![];}if(_0x4a12d6[_0x32c501(0x1e6)](_0x3a3441=>{const _0x4133da=_0x32c501,_0x51f1fc=_0x3a3441[_0x4133da(0x153)]();return _0x51f1fc[_0x4133da(0x16a)]('mcp-server')||_0x51f1fc['includes']('server-mcp')||_0x51f1fc[_0x4133da(0x16a)](_0x4133da(0x1ae))||_0x51f1fc===_0x4133da(0x199)||_0x51f1fc===_0x4133da(0x1bc);}))return!![];return![];}async function runProxy(_0x3a55b1){const _0x2d1b0d=a0_0x45b8d7;if(_0x3a55b1[_0x2d1b0d(0x168)]===0x0){program['help']();return;}const _0x48d7c9=_0x3a55b1[0x0],_0xd7da63=_0x3a55b1[_0x2d1b0d(0x14e)](0x1),_0x2abe80=_0x3a55b1[_0x2d1b0d(0x1e9)]('\x20');if(isDisabled()){const _0x1915de=await(0x0,executor_1['executeCommand'])(_0x48d7c9,_0xd7da63);process['stdout'][_0x2d1b0d(0x1c9)](_0x1915de[_0x2d1b0d(0x15e)]),process['stderr']['write'](_0x1915de['stderr']),process[_0x2d1b0d(0x1c8)](_0x1915de[_0x2d1b0d(0x188)]);}if(isMcpServerExecution(_0x48d7c9,_0xd7da63)){console[_0x2d1b0d(0x186)](_0x2d1b0d(0x14d));const {runMcpProxy:_0xdbd525}=await Promise['resolve']()[_0x2d1b0d(0x166)](()=>__importStar(require(_0x2d1b0d(0x178))));_0xdbd525(_0x48d7c9,_0xd7da63);return;}const _0x3591ef=adjustCommandArgs(_0x48d7c9,_0xd7da63),_0x1627b9=await(0x0,executor_1['executeCommand'])(_0x3591ef[_0x2d1b0d(0x173)],_0x3591ef[_0x2d1b0d(0x150)]),_0x2756de=(0x0,filters_1[_0x2d1b0d(0x1a7)])(_0x2abe80,_0x1627b9[_0x2d1b0d(0x15e)],_0x1627b9[_0x2d1b0d(0x1a8)],tracker_1[_0x2d1b0d(0x1b0)]['getConfig']()[_0x2d1b0d(0x1df)]),_0x209d2a={...filters_1[_0x2d1b0d(0x1d1)]},_0x547a4a=_0x1627b9['stdout']+(_0x1627b9['stderr'][_0x2d1b0d(0x1d6)]()[_0x2d1b0d(0x168)]>0x0?'\x0a'+_0x1627b9[_0x2d1b0d(0x1a8)]:''),_0x3c89a0=_0x2756de[_0x2d1b0d(0x168)]<_0x547a4a[_0x2d1b0d(0x168)]?_0x2756de:_0x547a4a,_0x1825a8=_0x1627b9[_0x2d1b0d(0x188)]===0x0?(0x0,cache_1[_0x2d1b0d(0x1e4)])(_0x2abe80,_0x3c89a0):null;tracker_1[_0x2d1b0d(0x1b0)]['logExecution'](_0x2abe80,_0x547a4a,_0x1825a8||_0x3c89a0,_0x1627b9[_0x2d1b0d(0x188)],_0x209d2a),_0x1627b9[_0x2d1b0d(0x188)]===0x0?process[_0x2d1b0d(0x15e)][_0x2d1b0d(0x1c9)](_0x3c89a0+'\x0a'):(process[_0x2d1b0d(0x15e)][_0x2d1b0d(0x1c9)](_0x2756de+'\x0a'),_0x1627b9[_0x2d1b0d(0x1a8)][_0x2d1b0d(0x1d6)]()[_0x2d1b0d(0x168)]>0x0&&!_0x2756de[_0x2d1b0d(0x16a)](_0x1627b9['stderr'][_0x2d1b0d(0x1d6)]())&&process['stderr'][_0x2d1b0d(0x1c9)](_0x1627b9['stderr']+'\x0a')),process['exit'](_0x1627b9['exitCode']);}program[a0_0x45b8d7(0x1c6)](a0_0x45b8d7(0x1d6))[a0_0x45b8d7(0x192)](a0_0x45b8d7(0x1ab))[a0_0x45b8d7(0x1c2)](((()=>{const _0x4c263f=a0_0x45b8d7,_0x16cac9='1.0.24';if(_0x16cac9!==_0x4c263f(0x1e8))return _0x16cac9;try{return require(_0x4c263f(0x154))[_0x4c263f(0x1c2)];}catch{try{return require(_0x4c263f(0x1b9))[_0x4c263f(0x1c2)];}catch{return _0x4c263f(0x161);}}})())),program[a0_0x45b8d7(0x196)]('ui')[a0_0x45b8d7(0x1e0)](a0_0x45b8d7(0x1c0))['description']('Start\x20the\x20local\x20developer\x20dashboard')[a0_0x45b8d7(0x14f)](a0_0x45b8d7(0x17c),'Port\x20to\x20run\x20the\x20dashboard\x20on',a0_0x45b8d7(0x189))[a0_0x45b8d7(0x15f)](_0x20510f=>{const _0x36ea1f=a0_0x45b8d7,_0x309453=parseInt(_0x20510f[_0x36ea1f(0x182)],0xa);(0x0,dashboard_1[_0x36ea1f(0x1d4)])(_0x309453);}),program[a0_0x45b8d7(0x196)]('stats')[a0_0x45b8d7(0x192)](a0_0x45b8d7(0x187))[a0_0x45b8d7(0x14f)]('-m,\x20--model\x20<string>','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','claude-3-5-sonnet')[a0_0x45b8d7(0x15f)](_0x2ea50d=>{const _0x2589ab=a0_0x45b8d7,_0x5c0c13=tracker_1[_0x2589ab(0x1b0)][_0x2589ab(0x180)](_0x2ea50d[_0x2589ab(0x1cc)]);console[_0x2589ab(0x16f)](_0x2589ab(0x151)),console[_0x2589ab(0x16f)](_0x2589ab(0x1dd)),console[_0x2589ab(0x16f)](_0x2589ab(0x1b4)),console[_0x2589ab(0x16f)]('Model\x20Context:\x20\x20\x20\x20\x20'+_0x5c0c13[_0x2589ab(0x1e2)]),console[_0x2589ab(0x16f)](_0x2589ab(0x169)+_0x5c0c13[_0x2589ab(0x165)]['toLocaleString']()),console[_0x2589ab(0x16f)]('Compressed:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5c0c13[_0x2589ab(0x1ad)][_0x2589ab(0x1d8)]()),console[_0x2589ab(0x16f)](_0x2589ab(0x193)+_0x5c0c13['total_tokens_saved'][_0x2589ab(0x1d8)]()),console[_0x2589ab(0x16f)]('Reduction\x20Rate:\x20\x20\x20\x20'+_0x5c0c13[_0x2589ab(0x179)]+'%'),console['log']('Estimated\x20Cost:\x20\x20\x20\x20$'+_0x5c0c13[_0x2589ab(0x17a)][_0x2589ab(0x181)](0x4)+_0x2589ab(0x1af)),console[_0x2589ab(0x16f)](_0x2589ab(0x190)+_0x5c0c13[_0x2589ab(0x1b5)]['toFixed'](0x4)+_0x2589ab(0x17e)),console[_0x2589ab(0x16f)](_0x2589ab(0x194)),console[_0x2589ab(0x16f)](_0x2589ab(0x1c7)+_0x5c0c13['money_saved_usd']['toFixed'](0x4)+_0x2589ab(0x198)),console[_0x2589ab(0x16f)](_0x2589ab(0x1de));}),program[a0_0x45b8d7(0x196)](a0_0x45b8d7(0x17b))[a0_0x45b8d7(0x192)](a0_0x45b8d7(0x1ea))['argument'](a0_0x45b8d7(0x171),'get\x20or\x20set')[a0_0x45b8d7(0x1a6)](a0_0x45b8d7(0x1b6),a0_0x45b8d7(0x163))[a0_0x45b8d7(0x1a6)](a0_0x45b8d7(0x183),a0_0x45b8d7(0x1be))['action']((_0x458973,_0x22a205,_0x1b5f89)=>{const _0x2de6fd=a0_0x45b8d7;if(_0x458973===_0x2de6fd(0x1a1)){const _0x5a6dde=tracker_1[_0x2de6fd(0x1b0)]['getConfig']();console[_0x2de6fd(0x16f)](_0x22a205+':\x20'+_0x5a6dde[_0x22a205]);}else{if(_0x458973==='set'){_0x1b5f89===undefined&&(console['error'](_0x2de6fd(0x17d)),process['exit'](0x1));let _0x1a5381=_0x1b5f89;if(_0x1b5f89===_0x2de6fd(0x152))_0x1a5381=!![];if(_0x1b5f89===_0x2de6fd(0x1db))_0x1a5381=![];if(/^\d+$/['test'](_0x1b5f89))_0x1a5381=parseInt(_0x1b5f89,0xa);tracker_1[_0x2de6fd(0x1b0)][_0x2de6fd(0x1a5)](_0x22a205,_0x1a5381),console[_0x2de6fd(0x16f)](_0x2de6fd(0x1bf)+_0x22a205+_0x2de6fd(0x185)+_0x1b5f89);}else console['error'](_0x2de6fd(0x1a3)),process[_0x2de6fd(0x1c8)](0x1);}}),program[a0_0x45b8d7(0x196)](a0_0x45b8d7(0x1b3))[a0_0x45b8d7(0x192)](a0_0x45b8d7(0x19b))[a0_0x45b8d7(0x1a6)](a0_0x45b8d7(0x171),a0_0x45b8d7(0x1e3))[a0_0x45b8d7(0x15f)](_0x1eb905=>{const _0x256329=a0_0x45b8d7;if(_0x1eb905===_0x256329(0x15c)){const _0x29431f=(0x0,shims_1[_0x256329(0x160)])();console[_0x256329(0x16f)](_0x29431f[_0x256329(0x1d9)]);}else{if(_0x1eb905===_0x256329(0x197)){const _0xe1dd80=(0x0,shims_1[_0x256329(0x1ce)])();console[_0x256329(0x16f)](_0xe1dd80[_0x256329(0x1d9)]);}else console[_0x256329(0x186)](_0x256329(0x1da)),process[_0x256329(0x1c8)](0x1);}}),program['command'](a0_0x45b8d7(0x15b))[a0_0x45b8d7(0x192)](a0_0x45b8d7(0x1e1))[a0_0x45b8d7(0x1a6)](a0_0x45b8d7(0x15d),a0_0x45b8d7(0x18a))['action'](_0x2656c0=>{const _0x35d5fa=a0_0x45b8d7;if(isDisabled()){console[_0x35d5fa(0x16f)](_0x2656c0);return;}const _0xa1b943=(0x0,filters_1[_0x35d5fa(0x1d5)])(_0x2656c0);console['log'](_0xa1b943);}),program[a0_0x45b8d7(0x196)](a0_0x45b8d7(0x199))[a0_0x45b8d7(0x1e0)]('mcp')[a0_0x45b8d7(0x192)](a0_0x45b8d7(0x19f))['argument'](a0_0x45b8d7(0x19a),a0_0x45b8d7(0x167))['argument'](a0_0x45b8d7(0x1b7),a0_0x45b8d7(0x19e))[a0_0x45b8d7(0x15f)](async(_0x26dd6e,_0x7843f1)=>{const _0x298250=a0_0x45b8d7,{runMcpProxy:_0x1791cc}=await Promise[_0x298250(0x14c)]()['then'](()=>__importStar(require(_0x298250(0x178))));_0x1791cc(_0x26dd6e,_0x7843f1);});const args=process[a0_0x45b8d7(0x170)]['slice'](0x2),firstArg=args[0x0],subcommands=['ui','dashboard',a0_0x45b8d7(0x1b2),a0_0x45b8d7(0x17b),'shims',a0_0x45b8d7(0x15b),'mcp-proxy',a0_0x45b8d7(0x1bc),a0_0x45b8d7(0x18d),'--help','-h',a0_0x45b8d7(0x1c2),'--version','-v'];firstArg&&!subcommands['includes'](firstArg)?runProxy(args)[a0_0x45b8d7(0x159)](_0x1e82c2=>{const _0x185b0f=a0_0x45b8d7;console[_0x185b0f(0x186)](_0x185b0f(0x1ca)+_0x1e82c2['message']),process[_0x185b0f(0x1c8)](0x1);}):program[a0_0x45b8d7(0x1bd)](process['argv']);
2
+ 'use strict';const a0_0xc849f3=a0_0x23ac;(function(_0x3b07e9,_0x532f73){const _0x258bd1=a0_0x23ac,_0xd6d53f=_0x3b07e9();while(!![]){try{const _0x40fa4c=parseInt(_0x258bd1(0x14c))/0x1*(parseInt(_0x258bd1(0x14f))/0x2)+-parseInt(_0x258bd1(0x179))/0x3+-parseInt(_0x258bd1(0x15f))/0x4*(-parseInt(_0x258bd1(0x13c))/0x5)+-parseInt(_0x258bd1(0x141))/0x6*(parseInt(_0x258bd1(0x10d))/0x7)+parseInt(_0x258bd1(0x15c))/0x8+-parseInt(_0x258bd1(0x133))/0x9+parseInt(_0x258bd1(0x137))/0xa*(parseInt(_0x258bd1(0x17b))/0xb);if(_0x40fa4c===_0x532f73)break;else _0xd6d53f['push'](_0xd6d53f['shift']());}catch(_0x49ba00){_0xd6d53f['push'](_0xd6d53f['shift']());}}}(a0_0x1065,0xa5c72));var __createBinding=this&&this[a0_0xc849f3(0x11c)]||(Object['create']?function(_0x56e6c3,_0x4c85b1,_0x3e7ca9,_0x16bca4){const _0x807e6a=a0_0xc849f3;if(_0x16bca4===undefined)_0x16bca4=_0x3e7ca9;var _0x56ff48=Object[_0x807e6a(0x16e)](_0x4c85b1,_0x3e7ca9);(!_0x56ff48||(_0x807e6a(0x121)in _0x56ff48?!_0x4c85b1[_0x807e6a(0x1a9)]:_0x56ff48['writable']||_0x56ff48[_0x807e6a(0x156)]))&&(_0x56ff48={'enumerable':!![],'get':function(){return _0x4c85b1[_0x3e7ca9];}}),Object['defineProperty'](_0x56e6c3,_0x16bca4,_0x56ff48);}:function(_0x1d43a8,_0x43a34d,_0x7552cf,_0x4cbf85){if(_0x4cbf85===undefined)_0x4cbf85=_0x7552cf;_0x1d43a8[_0x4cbf85]=_0x43a34d[_0x7552cf];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xc849f3(0x192)]?function(_0x49e11d,_0x5507c4){const _0x346d61=a0_0xc849f3;Object[_0x346d61(0x173)](_0x49e11d,_0x346d61(0x1a1),{'enumerable':!![],'value':_0x5507c4});}:function(_0x5ab77e,_0x30fa44){const _0x5d4881=a0_0xc849f3;_0x5ab77e[_0x5d4881(0x1a1)]=_0x30fa44;}),__importStar=this&&this['__importStar']||(function(){var _0x5db5dc=function(_0x2080b8){const _0x531c83=a0_0x23ac;return _0x5db5dc=Object[_0x531c83(0x110)]||function(_0xadc05f){const _0x2aa4f2=_0x531c83;var _0x10f249=[];for(var _0x5543e0 in _0xadc05f)if(Object[_0x2aa4f2(0x127)]['hasOwnProperty']['call'](_0xadc05f,_0x5543e0))_0x10f249[_0x10f249[_0x2aa4f2(0x10f)]]=_0x5543e0;return _0x10f249;},_0x5db5dc(_0x2080b8);};return function(_0x582969){const _0x10979c=a0_0x23ac;if(_0x582969&&_0x582969['__esModule'])return _0x582969;var _0x59ae66={};if(_0x582969!=null){for(var _0x53c127=_0x5db5dc(_0x582969),_0x16e8bc=0x0;_0x16e8bc<_0x53c127[_0x10979c(0x10f)];_0x16e8bc++)if(_0x53c127[_0x16e8bc]!=='default')__createBinding(_0x59ae66,_0x582969,_0x53c127[_0x16e8bc]);}return __setModuleDefault(_0x59ae66,_0x582969),_0x59ae66;};}());Object['defineProperty'](exports,a0_0xc849f3(0x1a9),{'value':!![]});const commander_1=require(a0_0xc849f3(0x122)),executor_1=require(a0_0xc849f3(0x19d)),filters_1=require(a0_0xc849f3(0x136)),tracker_1=require(a0_0xc849f3(0x18e)),cache_1=require('./cache'),shims_1=require(a0_0xc849f3(0x12b)),dashboard_1=require(a0_0xc849f3(0x174)),program=new commander_1[(a0_0xc849f3(0x196))]();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x48bd75,_0x2326f3){const _0x2fa77d=a0_0xc849f3,_0x2c8178=_0x48bd75[_0x2fa77d(0x175)]();if(_0x2c8178==='git'||_0x2c8178===_0x2fa77d(0x18d)){const _0x59b908=_0x2326f3[0x0];if(_0x59b908===_0x2fa77d(0x13d)){const _0x5a5a6c=_0x2326f3['slice'](0x1),_0x153f65=_0x5a5a6c[_0x2fa77d(0x10f)]===0x0||_0x5a5a6c[_0x2fa77d(0x17d)](_0x16d094=>{const _0x4c975c=_0x2fa77d;return _0x16d094==='-b'||_0x16d094===_0x4c975c(0x150)||_0x16d094===_0x4c975c(0x130)||_0x16d094===_0x4c975c(0x152)||_0x16d094==='-s'||_0x16d094===_0x4c975c(0x198);});if(_0x153f65)return{'cmd':_0x48bd75,'args':['status','--porcelain','-b']};}else{if(_0x59b908==='log'){const _0x5ba781=_0x2326f3[_0x2fa77d(0x131)](0x1),_0x2cea5e=_0x5ba781[_0x2fa77d(0x18c)](_0x6c02c0=>_0x6c02c0['startsWith']('--oneline')||_0x6c02c0['startsWith'](_0x2fa77d(0x112))||_0x6c02c0['startsWith'](_0x2fa77d(0x17c))),_0x1e3110=_0x5ba781[_0x2fa77d(0x18c)](_0x553d2c=>_0x553d2c[_0x2fa77d(0x11d)]('-')&&/^\d+$/[_0x2fa77d(0x199)](_0x553d2c[_0x2fa77d(0x131)](0x1))||_0x553d2c==='-n'||_0x553d2c[_0x2fa77d(0x11d)](_0x2fa77d(0x16d))),_0x36ee80=[..._0x2326f3];if(!_0x2cea5e){const _0x3d1a8b=_0x2fa77d(0x193);_0x36ee80['push'](process['platform']===_0x2fa77d(0x146)?'\x22'+_0x3d1a8b+'\x22':_0x3d1a8b);}!_0x1e3110&&(_0x2cea5e?_0x36ee80[_0x2fa77d(0x16b)](_0x2fa77d(0x13f)):_0x36ee80['push'](_0x2fa77d(0x172)));const _0x296efd=_0x5ba781[_0x2fa77d(0x18c)](_0x3bd6d8=>_0x3bd6d8==='--merges'||_0x3bd6d8===_0x2fa77d(0x19c)||_0x3bd6d8[_0x2fa77d(0x11d)](_0x2fa77d(0x189)));return!_0x296efd&&!_0x1e3110&&_0x36ee80[_0x2fa77d(0x16b)](_0x2fa77d(0x19c)),{'cmd':_0x48bd75,'args':_0x36ee80};}}}return{'cmd':_0x48bd75,'args':_0x2326f3};}function isMcpServerExecution(_0x10552b,_0xe45dfa){const _0x221e3b=a0_0xc849f3,_0x2a0f9d=_0x10552b['toLowerCase'](),_0x52ac6a=_0xe45dfa['join']('\x20')[_0x221e3b(0x175)]();if(_0x2a0f9d[_0x221e3b(0x161)](_0x221e3b(0x1aa))&&(_0x2a0f9d['includes'](_0x221e3b(0x160))||_0x2a0f9d[_0x221e3b(0x161)](_0x221e3b(0x165))))return!![];if(_0x2a0f9d===_0x221e3b(0x19e)||_0x2a0f9d===_0x221e3b(0x164)||_0x2a0f9d===_0x221e3b(0x14d)||_0x2a0f9d===_0x221e3b(0x11b)||_0x2a0f9d===_0x221e3b(0x14a)||_0x2a0f9d===_0x221e3b(0x159)){if(_0x52ac6a[_0x221e3b(0x161)](_0x221e3b(0x1a5))||_0x52ac6a[_0x221e3b(0x161)]('modelcontextprotocol')||_0x52ac6a[_0x221e3b(0x161)]('mcp-server')||_0x52ac6a['includes'](_0x221e3b(0x155)))return!![];}if(_0xe45dfa[_0x221e3b(0x18c)](_0x467515=>{const _0x42510f=_0x221e3b,_0x387952=_0x467515[_0x42510f(0x175)]();return _0x387952[_0x42510f(0x161)](_0x42510f(0x12a))||_0x387952[_0x42510f(0x161)](_0x42510f(0x155))||_0x387952[_0x42510f(0x161)](_0x42510f(0x1a5))||_0x387952==='mcp-proxy'||_0x387952===_0x42510f(0x1aa);}))return!![];return![];}async function runProxy(_0x274ce2){const _0x5d3474=a0_0xc849f3;if(_0x274ce2[_0x5d3474(0x10f)]===0x0){program[_0x5d3474(0x190)]();return;}const _0x9d703b=_0x274ce2[0x0],_0x41ad3e=_0x274ce2[_0x5d3474(0x131)](0x1),_0x658d97=_0x274ce2[_0x5d3474(0x15a)]('\x20');if(isDisabled()){const _0x316c2c=await(0x0,executor_1['executeCommand'])(_0x9d703b,_0x41ad3e);process[_0x5d3474(0x117)]['write'](_0x316c2c['stdout']),process[_0x5d3474(0x1ab)][_0x5d3474(0x116)](_0x316c2c[_0x5d3474(0x1ab)]),process[_0x5d3474(0x12d)](_0x316c2c[_0x5d3474(0x191)]);}if(isMcpServerExecution(_0x9d703b,_0x41ad3e)){console[_0x5d3474(0x1a3)](_0x5d3474(0x126));const {runMcpProxy:_0x25cbcf}=await Promise['resolve']()[_0x5d3474(0x1a0)](()=>__importStar(require(_0x5d3474(0x1a8))));_0x25cbcf(_0x9d703b,_0x41ad3e);return;}const _0x433618=adjustCommandArgs(_0x9d703b,_0x41ad3e),_0x474cfb=await(0x0,executor_1[_0x5d3474(0x114)])(_0x433618[_0x5d3474(0x147)],_0x433618['args']),_0x882df2=(0x0,filters_1[_0x5d3474(0x178)])(_0x658d97,_0x474cfb['stdout'],_0x474cfb['stderr'],tracker_1[_0x5d3474(0x176)][_0x5d3474(0x124)]()[_0x5d3474(0x168)]),_0x35ab75={...filters_1[_0x5d3474(0x19b)]},_0x53a408=_0x474cfb['stdout']+(_0x474cfb[_0x5d3474(0x1ab)][_0x5d3474(0x1ae)]()[_0x5d3474(0x10f)]>0x0?'\x0a'+_0x474cfb['stderr']:''),_0x410d3d=_0x882df2[_0x5d3474(0x10f)]<_0x53a408['length']?_0x882df2:_0x53a408,_0x2df8fd=_0x474cfb['exitCode']===0x0?(0x0,cache_1[_0x5d3474(0x15b)])(_0x658d97,_0x410d3d):null;tracker_1[_0x5d3474(0x176)][_0x5d3474(0x181)](_0x658d97,_0x53a408,_0x2df8fd||_0x410d3d,_0x474cfb[_0x5d3474(0x191)],_0x35ab75),_0x474cfb['exitCode']===0x0?process['stdout'][_0x5d3474(0x116)](_0x410d3d+'\x0a'):(process[_0x5d3474(0x117)][_0x5d3474(0x116)](_0x882df2+'\x0a'),_0x474cfb[_0x5d3474(0x1ab)][_0x5d3474(0x1ae)]()[_0x5d3474(0x10f)]>0x0&&!_0x882df2['includes'](_0x474cfb[_0x5d3474(0x1ab)][_0x5d3474(0x1ae)]())&&process[_0x5d3474(0x1ab)][_0x5d3474(0x116)](_0x474cfb['stderr']+'\x0a')),process[_0x5d3474(0x12d)](_0x474cfb[_0x5d3474(0x191)]);}function a0_0x1065(){const _0x5e19ee=['[value]','write','stdout','[server-args...]','total_raw_tokens','\x5c\x5c.\x5cCON','npm','__createBinding','startsWith','__VERSION__','platform','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','get','commander','money_saved_usd','getConfig','writeFileSync','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','prototype','\x20(after\x20Trim)','Install\x20or\x20uninstall\x20system\x20command\x20shims','mcp-server','./shims','Port\x20to\x20run\x20the\x20dashboard\x20on','exit','argument','total_tokens_saved','-sb','slice','toLocaleString','10362726QCEvfR','config','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','./filters','4650gQgYjB','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','Start\x20the\x20local\x20developer\x20dashboard','--help','Model\x20Context:\x20\x20\x20\x20\x20','65WdHkEr','status','raw_cost_usd','-50','<action>','1074NBwcDI','Reduction\x20Rate:\x20\x20\x20\x20','Manage\x20local\x20configuration\x20parameters','description','=============================================\x0a','win32','cmd','alias','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','pnpm','uninstallShims','626458UDIcuu','bun','=============================================','4YkGWjk','--branch','Config\x20set\x20','-bs','Error:\x20Value\x20required\x20for\x20set\x20action','action','server-mcp','configurable','Arguments\x20for\x20the\x20target\x20MCP\x20server','model_name','yarn','join','dedup','7193416wbXjmC','false','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','28232gQWBBH','server','includes','config\x20parameter\x20name','\x20(before\x20Trim)','node','proxy','\x20USD','--version','redaction_enabled','\x0a=============================================','setConfig','push','Estimated\x20Cost:\x20\x20\x20\x20$','--max-count','getOwnPropertyDescriptor','install\x20or\x20uninstall','getStatsSummary','compressed_cost_usd','-10','defineProperty','./dashboard','toLowerCase','tracker','stats','compressOutput','587895PWynmW','Command\x20line\x20to\x20evaluate','13585cuBwjm','--format','every','log','argv','<commandLine>','logExecution','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','parse','-p,\x20--port\x20<number>','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','savings_percentage','dashboard','--min-parents','claude-3-5-sonnet','mcp-proxy','some','yadm','./tracker','option','help','exitCode','create','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','command','Command','message','--short','test','rewrite','lastRedactAudit','--no-merges','./executor','npx','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','then','default','./package.json','error','version','@modelcontextprotocol/','-m,\x20--model\x20<string>','uninstall','./mcp','__esModule','mcp','stderr','toFixed','shims','trim','30961PwmUKY','<server-command>','length','getOwnPropertyNames','value\x20to\x20set','--pretty','<key>','executeCommand'];a0_0x1065=function(){return _0x5e19ee;};return a0_0x1065();}program['name']('trim')[a0_0xc849f3(0x144)]('TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%')[a0_0xc849f3(0x1a4)](((()=>{const _0xadb672=a0_0xc849f3,_0x4c77be='1.0.25';if(_0x4c77be!==_0xadb672(0x11e))return _0x4c77be;try{return require('../package.json')[_0xadb672(0x1a4)];}catch{try{return require(_0xadb672(0x1a2))[_0xadb672(0x1a4)];}catch{return'1.0.0';}}})())),program[a0_0xc849f3(0x195)]('ui')[a0_0xc849f3(0x148)](a0_0xc849f3(0x188))[a0_0xc849f3(0x144)](a0_0xc849f3(0x139))[a0_0xc849f3(0x18f)](a0_0xc849f3(0x185),a0_0xc849f3(0x12c),'4000')[a0_0xc849f3(0x154)](_0x1cb2a7=>{const _0x51632b=parseInt(_0x1cb2a7['port'],0xa);(0x0,dashboard_1['startDashboard'])(_0x51632b);}),program[a0_0xc849f3(0x195)](a0_0xc849f3(0x177))[a0_0xc849f3(0x144)]('Show\x20token\x20and\x20cost\x20savings\x20summary')[a0_0xc849f3(0x18f)](a0_0xc849f3(0x1a6),a0_0xc849f3(0x19f),a0_0xc849f3(0x18a))[a0_0xc849f3(0x154)](_0x1d122b=>{const _0x4db898=a0_0xc849f3,_0x452356=tracker_1[_0x4db898(0x176)][_0x4db898(0x170)](_0x1d122b['model']);console[_0x4db898(0x17e)](_0x4db898(0x169)),console[_0x4db898(0x17e)](_0x4db898(0x182)),console['log'](_0x4db898(0x14e)),console[_0x4db898(0x17e)](_0x4db898(0x13b)+_0x452356[_0x4db898(0x158)]),console[_0x4db898(0x17e)](_0x4db898(0x186)+_0x452356[_0x4db898(0x119)][_0x4db898(0x132)]()),console[_0x4db898(0x17e)](_0x4db898(0x135)+_0x452356['total_compressed_tokens'][_0x4db898(0x132)]()),console[_0x4db898(0x17e)]('Tokens\x20Saved:\x20\x20\x20\x20\x20\x20'+_0x452356[_0x4db898(0x12f)][_0x4db898(0x132)]()),console['log'](_0x4db898(0x142)+_0x452356[_0x4db898(0x187)]+'%'),console[_0x4db898(0x17e)](_0x4db898(0x16c)+_0x452356[_0x4db898(0x13e)][_0x4db898(0x1ac)](0x4)+_0x4db898(0x163)),console[_0x4db898(0x17e)](_0x4db898(0x194)+_0x452356[_0x4db898(0x171)]['toFixed'](0x4)+_0x4db898(0x128)),console['log']('---------------------------------------------'),console[_0x4db898(0x17e)]('Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$'+_0x452356[_0x4db898(0x123)][_0x4db898(0x1ac)](0x4)+_0x4db898(0x166)),console[_0x4db898(0x17e)](_0x4db898(0x145));}),program[a0_0xc849f3(0x195)](a0_0xc849f3(0x134))[a0_0xc849f3(0x144)](a0_0xc849f3(0x143))['argument'](a0_0xc849f3(0x140),'get\x20or\x20set')[a0_0xc849f3(0x12e)](a0_0xc849f3(0x113),a0_0xc849f3(0x162))['argument'](a0_0xc849f3(0x115),a0_0xc849f3(0x111))[a0_0xc849f3(0x154)]((_0x2a1722,_0x4cd662,_0x5e55e9)=>{const _0x756a31=a0_0xc849f3;if(_0x2a1722===_0x756a31(0x121)){const _0x23a58f=tracker_1['tracker'][_0x756a31(0x124)]();console[_0x756a31(0x17e)](_0x4cd662+':\x20'+_0x23a58f[_0x4cd662]);}else{if(_0x2a1722==='set'){_0x5e55e9===undefined&&(console['error'](_0x756a31(0x153)),process['exit'](0x1));let _0x5ac24a=_0x5e55e9;if(_0x5e55e9==='true')_0x5ac24a=!![];if(_0x5e55e9===_0x756a31(0x15d))_0x5ac24a=![];if(/^\d+$/[_0x756a31(0x199)](_0x5e55e9))_0x5ac24a=parseInt(_0x5e55e9,0xa);tracker_1[_0x756a31(0x176)][_0x756a31(0x16a)](_0x4cd662,_0x5ac24a),console['log'](_0x756a31(0x151)+_0x4cd662+'\x20=\x20'+_0x5e55e9);}else console[_0x756a31(0x1a3)](_0x756a31(0x15e)),process['exit'](0x1);}});function printMessage(_0xec4e20){const _0x3cae18=a0_0xc849f3;if(process.env.npm_lifecycle_event==='postinstall')try{const _0x29472a=require('fs'),_0x2e6871=process[_0x3cae18(0x11f)]==='win32'?_0x3cae18(0x11a):'/dev/tty';_0x29472a[_0x3cae18(0x125)](_0x2e6871,'\x0a'+_0xec4e20+'\x0a');return;}catch{}console[_0x3cae18(0x17e)](_0xec4e20);}program[a0_0xc849f3(0x195)](a0_0xc849f3(0x1ad))['description'](a0_0xc849f3(0x129))['argument'](a0_0xc849f3(0x140),a0_0xc849f3(0x16f))[a0_0xc849f3(0x154)](_0x29e8e4=>{const _0x5c0ee5=a0_0xc849f3;if(_0x29e8e4==='install'){const _0x17ee15=(0x0,shims_1['installShims'])();printMessage(_0x17ee15[_0x5c0ee5(0x197)]);}else{if(_0x29e8e4===_0x5c0ee5(0x1a7)){const _0x446cf8=(0x0,shims_1[_0x5c0ee5(0x14b)])();printMessage(_0x446cf8[_0x5c0ee5(0x197)]);}else console['error'](_0x5c0ee5(0x120)),process[_0x5c0ee5(0x12d)](0x1);}}),program[a0_0xc849f3(0x195)]('rewrite')[a0_0xc849f3(0x144)](a0_0xc849f3(0x149))[a0_0xc849f3(0x12e)](a0_0xc849f3(0x180),a0_0xc849f3(0x17a))['action'](_0xb3d558=>{const _0x4f3bdd=a0_0xc849f3;if(isDisabled()){console[_0x4f3bdd(0x17e)](_0xb3d558);return;}const _0x7632c5=(0x0,filters_1['rewriteCommand'])(_0xb3d558);console[_0x4f3bdd(0x17e)](_0x7632c5);}),program[a0_0xc849f3(0x195)](a0_0xc849f3(0x18b))[a0_0xc849f3(0x148)](a0_0xc849f3(0x1aa))[a0_0xc849f3(0x144)](a0_0xc849f3(0x138))['argument'](a0_0xc849f3(0x10e),a0_0xc849f3(0x183))[a0_0xc849f3(0x12e)](a0_0xc849f3(0x118),a0_0xc849f3(0x157))['action'](async(_0x6aa05d,_0x13bb5)=>{const _0x41484a=a0_0xc849f3,{runMcpProxy:_0x5e5675}=await Promise['resolve']()[_0x41484a(0x1a0)](()=>__importStar(require(_0x41484a(0x1a8))));_0x5e5675(_0x6aa05d,_0x13bb5);});const args=process[a0_0xc849f3(0x17f)][a0_0xc849f3(0x131)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0xc849f3(0x188),'stats',a0_0xc849f3(0x134),a0_0xc849f3(0x1ad),a0_0xc849f3(0x19a),a0_0xc849f3(0x18b),a0_0xc849f3(0x1aa),'help',a0_0xc849f3(0x13a),'-h',a0_0xc849f3(0x1a4),a0_0xc849f3(0x167),'-v'];function a0_0x23ac(_0x4a7be2,_0x30ed2d){_0x4a7be2=_0x4a7be2-0x10d;const _0x106537=a0_0x1065();let _0x23ac41=_0x106537[_0x4a7be2];return _0x23ac41;}firstArg&&!subcommands[a0_0xc849f3(0x161)](firstArg)?runProxy(args)['catch'](_0x344da=>{const _0x3d6b31=a0_0xc849f3;console[_0x3d6b31(0x1a3)]('[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20'+_0x344da['message']),process['exit'](0x1);}):program[a0_0xc849f3(0x184)](process[a0_0xc849f3(0x17f)]);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0xa7f2b4=a0_0x260b;(function(_0x2db73b,_0x516d14){const _0x460a7b=a0_0x260b,_0x9a2215=_0x2db73b();while(!![]){try{const _0x36591f=-parseInt(_0x460a7b(0x14e))/0x1+-parseInt(_0x460a7b(0x143))/0x2+-parseInt(_0x460a7b(0x156))/0x3*(-parseInt(_0x460a7b(0x150))/0x4)+parseInt(_0x460a7b(0x138))/0x5+parseInt(_0x460a7b(0x15e))/0x6+parseInt(_0x460a7b(0x13d))/0x7+-parseInt(_0x460a7b(0x14d))/0x8*(parseInt(_0x460a7b(0x154))/0x9);if(_0x36591f===_0x516d14)break;else _0x9a2215['push'](_0x9a2215['shift']());}catch(_0x11af6a){_0x9a2215['push'](_0x9a2215['shift']());}}}(a0_0x441b,0x71bbc));function a0_0x260b(_0x1a4cf1,_0x9aa831){_0x1a4cf1=_0x1a4cf1-0x131;const _0x441be0=a0_0x441b();let _0x260b59=_0x441be0[_0x1a4cf1];return _0x260b59;}var __createBinding=this&&this[a0_0xa7f2b4(0x13f)]||(Object[a0_0xa7f2b4(0x155)]?function(_0x34bad2,_0x26b595,_0x48859a,_0x483e06){const _0x19df2d=a0_0xa7f2b4;if(_0x483e06===undefined)_0x483e06=_0x48859a;var _0x236fec=Object[_0x19df2d(0x166)](_0x26b595,_0x48859a);(!_0x236fec||(_0x19df2d(0x157)in _0x236fec?!_0x26b595[_0x19df2d(0x15a)]:_0x236fec['writable']||_0x236fec['configurable']))&&(_0x236fec={'enumerable':!![],'get':function(){return _0x26b595[_0x48859a];}}),Object[_0x19df2d(0x142)](_0x34bad2,_0x483e06,_0x236fec);}:function(_0x33e621,_0x5c893c,_0x138a77,_0x1365c2){if(_0x1365c2===undefined)_0x1365c2=_0x138a77;_0x33e621[_0x1365c2]=_0x5c893c[_0x138a77];}),__setModuleDefault=this&&this[a0_0xa7f2b4(0x147)]||(Object[a0_0xa7f2b4(0x155)]?function(_0x1c4717,_0x9f740b){const _0x5612aa=a0_0xa7f2b4;Object[_0x5612aa(0x142)](_0x1c4717,_0x5612aa(0x13c),{'enumerable':!![],'value':_0x9f740b});}:function(_0x1cb999,_0x320467){_0x1cb999['default']=_0x320467;}),__importStar=this&&this[a0_0xa7f2b4(0x151)]||(function(){var _0x27379f=function(_0x32ad14){return _0x27379f=Object['getOwnPropertyNames']||function(_0xc43080){const _0x10c9b6=a0_0x260b;var _0x5b8eea=[];for(var _0x5d2358 in _0xc43080)if(Object['prototype'][_0x10c9b6(0x163)][_0x10c9b6(0x14a)](_0xc43080,_0x5d2358))_0x5b8eea[_0x5b8eea['length']]=_0x5d2358;return _0x5b8eea;},_0x27379f(_0x32ad14);};return function(_0xf6b312){const _0x238222=a0_0x260b;if(_0xf6b312&&_0xf6b312['__esModule'])return _0xf6b312;var _0x3d6d8c={};if(_0xf6b312!=null){for(var _0x437cc8=_0x27379f(_0xf6b312),_0x3cc503=0x0;_0x3cc503<_0x437cc8[_0x238222(0x135)];_0x3cc503++)if(_0x437cc8[_0x3cc503]!==_0x238222(0x13c))__createBinding(_0x3d6d8c,_0xf6b312,_0x437cc8[_0x3cc503]);}return __setModuleDefault(_0x3d6d8c,_0xf6b312),_0x3d6d8c;};}()),__importDefault=this&&this[a0_0xa7f2b4(0x144)]||function(_0x128763){const _0x312cf2=a0_0xa7f2b4;return _0x128763&&_0x128763[_0x312cf2(0x15a)]?_0x128763:{'default':_0x128763};};Object[a0_0xa7f2b4(0x142)](exports,a0_0xa7f2b4(0x15a),{'value':!![]}),exports[a0_0xa7f2b4(0x14f)]=startDashboard;const express_1=__importDefault(require(a0_0xa7f2b4(0x162))),path=__importStar(require(a0_0xa7f2b4(0x165))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0xa7f2b4(0x137))),tracker_1=require('./tracker'),app=(0x0,express_1[a0_0xa7f2b4(0x13c)])(),baseDir=path['join'](os[a0_0xa7f2b4(0x161)](),a0_0xa7f2b4(0x153)),logsDir=path[a0_0xa7f2b4(0x134)](baseDir,a0_0xa7f2b4(0x139));app[a0_0xa7f2b4(0x157)]('/',(_0x2d723b,_0x2d0869)=>{const _0x4777ed=a0_0xa7f2b4,_0x32f960=path['join'](__dirname,'index.html');fs[_0x4777ed(0x152)](_0x32f960)?_0x2d0869[_0x4777ed(0x148)](_0x32f960):_0x2d0869['sendFile'](path[_0x4777ed(0x134)](__dirname,'../src/index.html'));}),app[a0_0xa7f2b4(0x157)](a0_0xa7f2b4(0x14c),(_0x1b448c,_0x9c1907)=>{const _0x1795dd=a0_0xa7f2b4,_0x5b4b86=path[_0x1795dd(0x134)](__dirname,'favicon.png');fs[_0x1795dd(0x152)](_0x5b4b86)?_0x9c1907[_0x1795dd(0x148)](_0x5b4b86):_0x9c1907[_0x1795dd(0x148)](path[_0x1795dd(0x134)](__dirname,'../src/favicon.png'));}),app['get'](a0_0xa7f2b4(0x13a),(_0x585ebb,_0x46c951)=>{const _0x49c60c=a0_0xa7f2b4,_0x4ad2c1=_0x585ebb[_0x49c60c(0x145)][_0x49c60c(0x136)]||_0x49c60c(0x146),_0x292d7b=tracker_1[_0x49c60c(0x13e)][_0x49c60c(0x140)](_0x4ad2c1);_0x46c951[_0x49c60c(0x158)](_0x292d7b);}),app[a0_0xa7f2b4(0x157)](a0_0xa7f2b4(0x164),(_0x3c2e48,_0x585597)=>{const _0x2f7d6a=a0_0xa7f2b4,_0x4a0c7c=tracker_1[_0x2f7d6a(0x13e)][_0x2f7d6a(0x15f)]();_0x585597[_0x2f7d6a(0x158)](_0x4a0c7c);}),app[a0_0xa7f2b4(0x157)](a0_0xa7f2b4(0x14b),(_0xf92623,_0x3d9ac4)=>{const _0x1038f7=a0_0xa7f2b4,_0x23d5db=_0xf92623['params']['id'],_0x487f2f=path[_0x1038f7(0x134)](logsDir,_0x23d5db+_0x1038f7(0x15c)),_0x2cab83=path[_0x1038f7(0x134)](logsDir,_0x23d5db+'.comp.txt');let _0xfb7a0d=_0x1038f7(0x131),_0x3f9c5d=_0x1038f7(0x159);try{fs['existsSync'](_0x487f2f)&&(_0xfb7a0d=fs['readFileSync'](_0x487f2f,'utf8')),fs['existsSync'](_0x2cab83)&&(_0x3f9c5d=fs[_0x1038f7(0x149)](_0x2cab83,'utf8'));}catch(_0x5551ea){}_0x3d9ac4[_0x1038f7(0x158)]({'id':_0x23d5db,'raw':_0xfb7a0d,'compressed':_0x3f9c5d});});function startDashboard(_0x4003bb=0xfa0){const _0x6c4ca3=a0_0xa7f2b4;let _0x46073f=_0x4003bb;const _0xbb8b1a=app['listen'](_0x46073f,()=>{const _0x20c5bb=a0_0x260b,_0x2ecd9f=_0x20c5bb(0x13b)+_0x46073f;console[_0x20c5bb(0x15d)]('\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20'+_0x2ecd9f),console[_0x20c5bb(0x15d)](_0x20c5bb(0x141)),process.env.TRIMPROMPT_NO_OPEN!=='1'&&(0x0,open_1['default'])(_0x2ecd9f)['catch'](()=>{});});_0xbb8b1a['on'](_0x6c4ca3(0x160),_0xeabd4a=>{const _0x21e974=_0x6c4ca3;_0xeabd4a[_0x21e974(0x167)]===_0x21e974(0x15b)?startDashboard(_0x46073f+0x1):console['error'](_0x21e974(0x133)+_0xeabd4a[_0x21e974(0x132)]);});}function a0_0x441b(){const _0x271c64=['Raw\x20output\x20log\x20file\x20not\x20found.','message','[TrimPrompt]\x20Dashboard\x20error:\x20','join','length','model','open','1719850DfQTxF','logs','/api/stats/summary','http://localhost:','default','4772243mEkQhL','tracker','__createBinding','getStatsSummary','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','defineProperty','511418gEgkrf','__importDefault','query','auto','__setModuleDefault','sendFile','readFileSync','call','/api/stats/inspect/:id','/favicon.png','112hxGmsd','448873WuZHet','startDashboard','40aBTips','__importStar','existsSync','.trimprompt','732348KOwapL','create','196866wKImeU','get','json','Compressed\x20output\x20log\x20file\x20not\x20found.','__esModule','EADDRINUSE','.raw.txt','log','3766218VKrDlc','getLogs','error','homedir','express','hasOwnProperty','/api/stats/history','path','getOwnPropertyDescriptor','code'];a0_0x441b=function(){return _0x271c64;};return a0_0x441b();}
1
+ 'use strict';const a0_0x9551aa=a0_0x3674;(function(_0x563728,_0x33d24a){const _0x5e21a6=a0_0x3674,_0x5ac536=_0x563728();while(!![]){try{const _0x3011ea=-parseInt(_0x5e21a6(0x15d))/0x1*(parseInt(_0x5e21a6(0x129))/0x2)+-parseInt(_0x5e21a6(0x12e))/0x3*(parseInt(_0x5e21a6(0x12d))/0x4)+-parseInt(_0x5e21a6(0x15b))/0x5+-parseInt(_0x5e21a6(0x137))/0x6+-parseInt(_0x5e21a6(0x151))/0x7+parseInt(_0x5e21a6(0x160))/0x8*(-parseInt(_0x5e21a6(0x141))/0x9)+parseInt(_0x5e21a6(0x158))/0xa*(parseInt(_0x5e21a6(0x124))/0xb);if(_0x3011ea===_0x33d24a)break;else _0x5ac536['push'](_0x5ac536['shift']());}catch(_0x3fc710){_0x5ac536['push'](_0x5ac536['shift']());}}}(a0_0x37ef,0xc2456));function a0_0x3674(_0x4bfea9,_0x57795b){_0x4bfea9=_0x4bfea9-0x124;const _0x37ef4b=a0_0x37ef();let _0x367485=_0x37ef4b[_0x4bfea9];return _0x367485;}var __createBinding=this&&this['__createBinding']||(Object[a0_0x9551aa(0x133)]?function(_0x1e6257,_0x527ce0,_0x1ea42e,_0x548749){const _0x563702=a0_0x9551aa;if(_0x548749===undefined)_0x548749=_0x1ea42e;var _0x433a44=Object[_0x563702(0x132)](_0x527ce0,_0x1ea42e);(!_0x433a44||(_0x563702(0x147)in _0x433a44?!_0x527ce0[_0x563702(0x14c)]:_0x433a44[_0x563702(0x15e)]||_0x433a44[_0x563702(0x155)]))&&(_0x433a44={'enumerable':!![],'get':function(){return _0x527ce0[_0x1ea42e];}}),Object[_0x563702(0x13a)](_0x1e6257,_0x548749,_0x433a44);}:function(_0x1bdcc9,_0x430fd0,_0x24cfce,_0x273073){if(_0x273073===undefined)_0x273073=_0x24cfce;_0x1bdcc9[_0x273073]=_0x430fd0[_0x24cfce];}),__setModuleDefault=this&&this[a0_0x9551aa(0x126)]||(Object['create']?function(_0x38eb0d,_0x545224){const _0x33ae2e=a0_0x9551aa;Object[_0x33ae2e(0x13a)](_0x38eb0d,'default',{'enumerable':!![],'value':_0x545224});}:function(_0x4e3898,_0x51ff08){const _0x375c9e=a0_0x9551aa;_0x4e3898[_0x375c9e(0x136)]=_0x51ff08;}),__importStar=this&&this[a0_0x9551aa(0x140)]||(function(){var _0x2620af=function(_0x3ad6ff){const _0x14c48d=a0_0x3674;return _0x2620af=Object[_0x14c48d(0x145)]||function(_0x4ac098){const _0x26202b=_0x14c48d;var _0x1b211c=[];for(var _0x749afa in _0x4ac098)if(Object[_0x26202b(0x144)]['hasOwnProperty'][_0x26202b(0x14b)](_0x4ac098,_0x749afa))_0x1b211c[_0x1b211c['length']]=_0x749afa;return _0x1b211c;},_0x2620af(_0x3ad6ff);};return function(_0x4324d4){const _0x272f9f=a0_0x3674;if(_0x4324d4&&_0x4324d4[_0x272f9f(0x14c)])return _0x4324d4;var _0x26534b={};if(_0x4324d4!=null){for(var _0xe70a34=_0x2620af(_0x4324d4),_0x4865c8=0x0;_0x4865c8<_0xe70a34[_0x272f9f(0x14a)];_0x4865c8++)if(_0xe70a34[_0x4865c8]!=='default')__createBinding(_0x26534b,_0x4324d4,_0xe70a34[_0x4865c8]);}return __setModuleDefault(_0x26534b,_0x4324d4),_0x26534b;};}()),__importDefault=this&&this[a0_0x9551aa(0x149)]||function(_0x325e32){return _0x325e32&&_0x325e32['__esModule']?_0x325e32:{'default':_0x325e32};};Object[a0_0x9551aa(0x13a)](exports,a0_0x9551aa(0x14c),{'value':!![]}),exports[a0_0x9551aa(0x139)]=startDashboard;const express_1=__importDefault(require(a0_0x9551aa(0x131))),path=__importStar(require(a0_0x9551aa(0x148))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x9551aa(0x156))),tracker_1=require('./tracker'),app=(0x0,express_1[a0_0x9551aa(0x136)])(),baseDir=path[a0_0x9551aa(0x161)](os[a0_0x9551aa(0x143)](),'.trimprompt'),logsDir=path[a0_0x9551aa(0x161)](baseDir,a0_0x9551aa(0x12a));function a0_0x37ef(){const _0xb19aea=['favicon.png','../src/index.html','83236FXKuiA','15ZPJjAn','auto','query','express','getOwnPropertyDescriptor','create','json','Raw\x20output\x20log\x20file\x20not\x20found.','default','5131794xKrCJA','EADDRINUSE','startDashboard','defineProperty','.comp.txt','/api/stats/inspect/:id','tracker','catch','params','__importStar','9qNSywc','log','homedir','prototype','getOwnPropertyNames','sendFile','get','path','__importDefault','length','call','__esModule','existsSync','/favicon.png','/api/stats/summary','readFileSync','6400716vfoVxF','message','.raw.txt','getStatsSummary','configurable','open','index.html','11410dreoZh','utf8','[TrimPrompt]\x20Dashboard\x20error:\x20','6349685HtyszR','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','1jXMnnO','writable','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','8678656ruPxAg','join','57134cgjcnG','code','__setModuleDefault','listen','getLogs','1804238NNCleX','logs'];a0_0x37ef=function(){return _0xb19aea;};return a0_0x37ef();}app[a0_0x9551aa(0x147)]('/',(_0x10759a,_0x1d7188)=>{const _0x18e932=a0_0x9551aa,_0x1eb37d=path['join'](__dirname,_0x18e932(0x157));fs[_0x18e932(0x14d)](_0x1eb37d)?_0x1d7188[_0x18e932(0x146)](_0x1eb37d):_0x1d7188['sendFile'](path[_0x18e932(0x161)](__dirname,_0x18e932(0x12c)));}),app[a0_0x9551aa(0x147)](a0_0x9551aa(0x14e),(_0x2c865f,_0x5a15d0)=>{const _0x17af4f=a0_0x9551aa,_0x3a52da=path['join'](__dirname,_0x17af4f(0x12b));fs[_0x17af4f(0x14d)](_0x3a52da)?_0x5a15d0['sendFile'](_0x3a52da):_0x5a15d0[_0x17af4f(0x146)](path[_0x17af4f(0x161)](__dirname,'../src/favicon.png'));}),app[a0_0x9551aa(0x147)](a0_0x9551aa(0x14f),(_0x33d655,_0x3658a1)=>{const _0x3d865d=a0_0x9551aa,_0x1524db=_0x33d655[_0x3d865d(0x130)]['model']||_0x3d865d(0x12f),_0x53313e=tracker_1[_0x3d865d(0x13d)][_0x3d865d(0x154)](_0x1524db);_0x3658a1[_0x3d865d(0x134)](_0x53313e);}),app[a0_0x9551aa(0x147)]('/api/stats/history',(_0x4f125a,_0x3b34ab)=>{const _0x5e4ef8=a0_0x9551aa,_0x320703=tracker_1[_0x5e4ef8(0x13d)][_0x5e4ef8(0x128)]();_0x3b34ab[_0x5e4ef8(0x134)](_0x320703);}),app[a0_0x9551aa(0x147)](a0_0x9551aa(0x13c),(_0x2a0f4c,_0x44b7e0)=>{const _0x23c416=a0_0x9551aa,_0x5c124b=_0x2a0f4c[_0x23c416(0x13f)]['id'],_0x164f74=path['join'](logsDir,_0x5c124b+_0x23c416(0x153)),_0x24f86a=path[_0x23c416(0x161)](logsDir,_0x5c124b+_0x23c416(0x13b));let _0x300c54=_0x23c416(0x135),_0x1f48c9='Compressed\x20output\x20log\x20file\x20not\x20found.';try{fs[_0x23c416(0x14d)](_0x164f74)&&(_0x300c54=fs['readFileSync'](_0x164f74,_0x23c416(0x159))),fs[_0x23c416(0x14d)](_0x24f86a)&&(_0x1f48c9=fs[_0x23c416(0x150)](_0x24f86a,_0x23c416(0x159)));}catch(_0x38be3b){}_0x44b7e0[_0x23c416(0x134)]({'id':_0x5c124b,'raw':_0x300c54,'compressed':_0x1f48c9});});function startDashboard(_0x4f6b66=0xfa0){const _0x12c005=a0_0x9551aa;let _0x2e6d05=_0x4f6b66;const _0x589c46=app[_0x12c005(0x127)](_0x2e6d05,()=>{const _0x1f4363=_0x12c005,_0x49d389='http://localhost:'+_0x2e6d05;console[_0x1f4363(0x142)](_0x1f4363(0x15c)+_0x49d389),console[_0x1f4363(0x142)](_0x1f4363(0x15f)),process.env.TRIMPROMPT_NO_OPEN!=='1'&&(0x0,open_1['default'])(_0x49d389)[_0x1f4363(0x13e)](()=>{});});_0x589c46['on']('error',_0x5106ba=>{const _0x3d5542=_0x12c005;_0x5106ba[_0x3d5542(0x125)]===_0x3d5542(0x138)?startDashboard(_0x2e6d05+0x1):console['error'](_0x3d5542(0x15a)+_0x5106ba[_0x3d5542(0x152)]);});}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x2b7a35=a0_0x37d8;(function(_0x190e54,_0x1ffdba){var _0x1b06ba=a0_0x37d8,_0x1f2fe4=_0x190e54();while(!![]){try{var _0x3ddbcb=parseInt(_0x1b06ba(0x8f))/0x1+parseInt(_0x1b06ba(0x8b))/0x2*(parseInt(_0x1b06ba(0x75))/0x3)+parseInt(_0x1b06ba(0x6f))/0x4+-parseInt(_0x1b06ba(0x6a))/0x5+-parseInt(_0x1b06ba(0x72))/0x6*(-parseInt(_0x1b06ba(0x6b))/0x7)+parseInt(_0x1b06ba(0x8d))/0x8*(parseInt(_0x1b06ba(0x7d))/0x9)+-parseInt(_0x1b06ba(0x80))/0xa;if(_0x3ddbcb===_0x1ffdba)break;else _0x1f2fe4['push'](_0x1f2fe4['shift']());}catch(_0x3be057){_0x1f2fe4['push'](_0x1f2fe4['shift']());}}}(a0_0x3a46,0x80ccf));var __createBinding=this&&this[a0_0x2b7a35(0x87)]||(Object[a0_0x2b7a35(0x77)]?function(_0x427b3a,_0x20eab4,_0x57f160,_0x3546ea){var _0x52e9ab=a0_0x2b7a35;if(_0x3546ea===undefined)_0x3546ea=_0x57f160;var _0x531a67=Object['getOwnPropertyDescriptor'](_0x20eab4,_0x57f160);(!_0x531a67||(_0x52e9ab(0x91)in _0x531a67?!_0x20eab4[_0x52e9ab(0x8c)]:_0x531a67[_0x52e9ab(0x6d)]||_0x531a67['configurable']))&&(_0x531a67={'enumerable':!![],'get':function(){return _0x20eab4[_0x57f160];}}),Object[_0x52e9ab(0x7e)](_0x427b3a,_0x3546ea,_0x531a67);}:function(_0x610084,_0x26f84f,_0xf67ded,_0x4a1670){if(_0x4a1670===undefined)_0x4a1670=_0xf67ded;_0x610084[_0x4a1670]=_0x26f84f[_0xf67ded];}),__setModuleDefault=this&&this[a0_0x2b7a35(0x69)]||(Object[a0_0x2b7a35(0x77)]?function(_0x5aa905,_0x45a857){var _0x4358eb=a0_0x2b7a35;Object[_0x4358eb(0x7e)](_0x5aa905,_0x4358eb(0x71),{'enumerable':!![],'value':_0x45a857});}:function(_0x4bed4e,_0x4263f1){var _0x4b6a7b=a0_0x2b7a35;_0x4bed4e[_0x4b6a7b(0x71)]=_0x4263f1;}),__importStar=this&&this['__importStar']||(function(){var _0x17ecc4=function(_0x144f73){return _0x17ecc4=Object['getOwnPropertyNames']||function(_0xe3de98){var _0x22b88d=a0_0x37d8,_0x3f64bb=[];for(var _0x35adca in _0xe3de98)if(Object[_0x22b88d(0x79)][_0x22b88d(0x8e)]['call'](_0xe3de98,_0x35adca))_0x3f64bb[_0x3f64bb[_0x22b88d(0x6c)]]=_0x35adca;return _0x3f64bb;},_0x17ecc4(_0x144f73);};return function(_0x5c1bad){var _0x3fd634=a0_0x37d8;if(_0x5c1bad&&_0x5c1bad[_0x3fd634(0x8c)])return _0x5c1bad;var _0x5875de={};if(_0x5c1bad!=null){for(var _0x51fd4e=_0x17ecc4(_0x5c1bad),_0x480875=0x0;_0x480875<_0x51fd4e[_0x3fd634(0x6c)];_0x480875++)if(_0x51fd4e[_0x480875]!==_0x3fd634(0x71))__createBinding(_0x5875de,_0x5c1bad,_0x51fd4e[_0x480875]);}return __setModuleDefault(_0x5875de,_0x5c1bad),_0x5875de;};}());Object['defineProperty'](exports,a0_0x2b7a35(0x8c),{'value':!![]}),exports['executeCommand']=executeCommand;function a0_0x3a46(){var _0x5b0e39=['create','stderr','prototype','data','pipe','delimiter','910530fdeniq','defineProperty','close','10419610CJetdq','split','spawn','\x22:\x20','includes','toLowerCase','path','__createBinding','message','stdout','shims','20166CbgTAJ','__esModule','24FFBDiW','hasOwnProperty','404881JNqQnf','Failed\x20to\x20spawn\x20command\x20\x22','get','.trimprompt','trim','toString','__setModuleDefault','2673190OJyeXu','70lYJQqg','length','writable','inherit','1560552vKSWwn','child_process','default','306942hWBwaC','map','join','147rYdZuI','error'];a0_0x3a46=function(){return _0x5b0e39;};return a0_0x3a46();}function a0_0x37d8(_0x516abd,_0x3359c7){_0x516abd=_0x516abd-0x66;var _0x3a461e=a0_0x3a46();var _0x37d88f=_0x3a461e[_0x516abd];return _0x37d88f;}const child_process_1=require(a0_0x2b7a35(0x70)),path=__importStar(require(a0_0x2b7a35(0x86))),os=__importStar(require('os'));function executeCommand(_0x13bb9a,_0x2c2584){return new Promise(_0x1cc51c=>{var _0x389626=a0_0x37d8;const _0x2fcd1a=path[_0x389626(0x74)](os['homedir'](),_0x389626(0x66),_0x389626(0x8a)),_0x76411d=(process.env.PATH||'')[_0x389626(0x81)](path[_0x389626(0x7c)])['filter'](_0x69eede=>_0x69eede[_0x389626(0x67)]()[_0x389626(0x85)]()!==_0x2fcd1a[_0x389626(0x85)]())[_0x389626(0x74)](path[_0x389626(0x7c)]),_0x40e98d={...process.env,'PATH':_0x76411d,'TRIMPROMPT_DISABLED':'1'},_0xb46eaf=_0x2c2584[_0x389626(0x73)](_0x1ec26c=>_0x1ec26c[_0x389626(0x84)]('\x20')&&!_0x1ec26c['startsWith']('\x22')?'\x22'+_0x1ec26c+'\x22':_0x1ec26c),_0x532831=[_0x13bb9a,..._0xb46eaf][_0x389626(0x74)]('\x20'),_0x2430ab=(0x0,child_process_1[_0x389626(0x82)])(_0x532831,[],{'stdio':[_0x389626(0x6e),_0x389626(0x7b),_0x389626(0x7b)],'shell':!![],'env':_0x40e98d});let _0x396dcc='',_0x383008='';_0x2430ab[_0x389626(0x89)]?.['on'](_0x389626(0x7a),_0x265052=>{var _0x2e5f5c=_0x389626;_0x396dcc+=_0x265052[_0x2e5f5c(0x68)]();}),_0x2430ab[_0x389626(0x78)]?.['on']('data',_0x1e4d80=>{var _0x3a218f=_0x389626;_0x383008+=_0x1e4d80[_0x3a218f(0x68)]();}),_0x2430ab['on'](_0x389626(0x76),_0x33e1f5=>{var _0x312548=_0x389626;_0x1cc51c({'exitCode':0x1,'stdout':'','stderr':_0x312548(0x90)+_0x13bb9a+_0x312548(0x83)+_0x33e1f5[_0x312548(0x88)]});}),_0x2430ab['on'](_0x389626(0x7f),_0x1132ac=>{_0x1cc51c({'exitCode':_0x1132ac??0x0,'stdout':_0x396dcc,'stderr':_0x383008});});});}
1
+ 'use strict';var a0_0x5b4583=a0_0x13c9;(function(_0x1558eb,_0x318ddf){var _0x29e64c=a0_0x13c9,_0x342add=_0x1558eb();while(!![]){try{var _0x194d24=parseInt(_0x29e64c(0x153))/0x1+-parseInt(_0x29e64c(0x155))/0x2+-parseInt(_0x29e64c(0x136))/0x3+-parseInt(_0x29e64c(0x147))/0x4+parseInt(_0x29e64c(0x13f))/0x5*(-parseInt(_0x29e64c(0x14e))/0x6)+-parseInt(_0x29e64c(0x146))/0x7+parseInt(_0x29e64c(0x137))/0x8;if(_0x194d24===_0x318ddf)break;else _0x342add['push'](_0x342add['shift']());}catch(_0x3703b9){_0x342add['push'](_0x342add['shift']());}}}(a0_0x579b,0xd44de));var __createBinding=this&&this[a0_0x5b4583(0x140)]||(Object['create']?function(_0x58e871,_0x56994b,_0x2d33e2,_0x1f3f9d){var _0x571fd4=a0_0x5b4583;if(_0x1f3f9d===undefined)_0x1f3f9d=_0x2d33e2;var _0x12823d=Object[_0x571fd4(0x15a)](_0x56994b,_0x2d33e2);(!_0x12823d||('get'in _0x12823d?!_0x56994b[_0x571fd4(0x134)]:_0x12823d[_0x571fd4(0x13d)]||_0x12823d[_0x571fd4(0x144)]))&&(_0x12823d={'enumerable':!![],'get':function(){return _0x56994b[_0x2d33e2];}}),Object[_0x571fd4(0x141)](_0x58e871,_0x1f3f9d,_0x12823d);}:function(_0x2ec74b,_0x48927b,_0x149ae1,_0x416afd){if(_0x416afd===undefined)_0x416afd=_0x149ae1;_0x2ec74b[_0x416afd]=_0x48927b[_0x149ae1];}),__setModuleDefault=this&&this[a0_0x5b4583(0x133)]||(Object[a0_0x5b4583(0x142)]?function(_0x5e5d10,_0x1d94b4){var _0x3c3894=a0_0x5b4583;Object[_0x3c3894(0x141)](_0x5e5d10,'default',{'enumerable':!![],'value':_0x1d94b4});}:function(_0xfe82b0,_0x1b8771){var _0x310868=a0_0x5b4583;_0xfe82b0[_0x310868(0x148)]=_0x1b8771;}),__importStar=this&&this[a0_0x5b4583(0x154)]||(function(){var _0x592aff=function(_0xe49e03){return _0x592aff=Object['getOwnPropertyNames']||function(_0x4ef38a){var _0x22c2c6=a0_0x13c9,_0x92ef4e=[];for(var _0x4e4538 in _0x4ef38a)if(Object['prototype'][_0x22c2c6(0x13e)]['call'](_0x4ef38a,_0x4e4538))_0x92ef4e[_0x92ef4e[_0x22c2c6(0x150)]]=_0x4e4538;return _0x92ef4e;},_0x592aff(_0xe49e03);};return function(_0x28be80){var _0x199fd5=a0_0x13c9;if(_0x28be80&&_0x28be80[_0x199fd5(0x134)])return _0x28be80;var _0x5490aa={};if(_0x28be80!=null){for(var _0x5d24fe=_0x592aff(_0x28be80),_0x5eb986=0x0;_0x5eb986<_0x5d24fe[_0x199fd5(0x150)];_0x5eb986++)if(_0x5d24fe[_0x5eb986]!==_0x199fd5(0x148))__createBinding(_0x5490aa,_0x28be80,_0x5d24fe[_0x5eb986]);}return __setModuleDefault(_0x5490aa,_0x28be80),_0x5490aa;};}());Object[a0_0x5b4583(0x141)](exports,'__esModule',{'value':!![]}),exports[a0_0x5b4583(0x14b)]=executeCommand;const child_process_1=require(a0_0x5b4583(0x135)),path=__importStar(require(a0_0x5b4583(0x157))),os=__importStar(require('os'));function a0_0x13c9(_0x2a8abd,_0x11184f){_0x2a8abd=_0x2a8abd-0x133;var _0x579b26=a0_0x579b();var _0x13c9e3=_0x579b26[_0x2a8abd];return _0x13c9e3;}function a0_0x579b(){var _0x520557=['error','getOwnPropertyDescriptor','close','toString','data','__setModuleDefault','__esModule','child_process','2013657AKPKld','39229720gLeWrU','includes','stdout','inherit','map','stderr','writable','hasOwnProperty','95wtPbgN','__createBinding','defineProperty','create','spawn','configurable','trim','2220302lCXXUm','5346268nIXVSq','default','join','shims','executeCommand','delimiter','Failed\x20to\x20spawn\x20command\x20\x22','467862jQJNBK','message','length','filter','\x22:\x20','436287kxgWbF','__importStar','1327738ijTjKB','split','path','toLowerCase'];a0_0x579b=function(){return _0x520557;};return a0_0x579b();}function executeCommand(_0x320623,_0x5c9af1){return new Promise(_0x56f777=>{var _0x231ea7=a0_0x13c9;const _0x42b644=path['join'](os['homedir'](),'.trimprompt',_0x231ea7(0x14a)),_0x4d62b0=(process.env.PATH||'')[_0x231ea7(0x156)](path[_0x231ea7(0x14c)])[_0x231ea7(0x151)](_0x3d35bc=>_0x3d35bc[_0x231ea7(0x145)]()[_0x231ea7(0x158)]()!==_0x42b644[_0x231ea7(0x158)]())[_0x231ea7(0x149)](path['delimiter']),_0x364209={...process.env,'PATH':_0x4d62b0,'TRIMPROMPT_DISABLED':'1'},_0x5c6dfe=_0x5c9af1[_0x231ea7(0x13b)](_0x158327=>_0x158327[_0x231ea7(0x138)]('\x20')&&!_0x158327['startsWith']('\x22')?'\x22'+_0x158327+'\x22':_0x158327),_0x16c2e8=[_0x320623,..._0x5c6dfe]['join']('\x20'),_0x53920f=(0x0,child_process_1[_0x231ea7(0x143)])(_0x16c2e8,[],{'stdio':[_0x231ea7(0x13a),'pipe','pipe'],'shell':!![],'env':_0x364209});let _0x4e6b25='',_0x2da597='';_0x53920f[_0x231ea7(0x139)]?.['on'](_0x231ea7(0x15d),_0x2dab23=>{var _0x442467=_0x231ea7;_0x4e6b25+=_0x2dab23[_0x442467(0x15c)]();}),_0x53920f[_0x231ea7(0x13c)]?.['on'](_0x231ea7(0x15d),_0x3fed70=>{_0x2da597+=_0x3fed70['toString']();}),_0x53920f['on'](_0x231ea7(0x159),_0x461ab8=>{var _0x1f1668=_0x231ea7;_0x56f777({'exitCode':0x1,'stdout':'','stderr':_0x1f1668(0x14d)+_0x320623+_0x1f1668(0x152)+_0x461ab8[_0x1f1668(0x14f)]});}),_0x53920f['on'](_0x231ea7(0x15b),_0x1b8b15=>{_0x56f777({'exitCode':_0x1b8b15??0x0,'stdout':_0x4e6b25,'stderr':_0x2da597});});});}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x578279=a0_0x229f;(function(_0x42c298,_0x540105){const _0x3441a2=a0_0x229f,_0x2305af=_0x42c298();while(!![]){try{const _0x33d463=-parseInt(_0x3441a2(0xbc))/0x1*(-parseInt(_0x3441a2(0xb6))/0x2)+-parseInt(_0x3441a2(0xc6))/0x3*(parseInt(_0x3441a2(0xb0))/0x4)+-parseInt(_0x3441a2(0xa9))/0x5+parseInt(_0x3441a2(0xa1))/0x6*(-parseInt(_0x3441a2(0xcb))/0x7)+parseInt(_0x3441a2(0xa2))/0x8+-parseInt(_0x3441a2(0x9d))/0x9+parseInt(_0x3441a2(0xb7))/0xa*(parseInt(_0x3441a2(0xb1))/0xb);if(_0x33d463===_0x540105)break;else _0x2305af['push'](_0x2305af['shift']());}catch(_0x3c4c5a){_0x2305af['push'](_0x2305af['shift']());}}}(a0_0x458e,0xb1d0a));function a0_0x229f(_0x3fe0a9,_0x54c4c8){_0x3fe0a9=_0x3fe0a9-0x98;const _0x458e8f=a0_0x458e();let _0x229f60=_0x458e8f[_0x3fe0a9];return _0x229f60;}Object[a0_0x578279(0xbe)](exports,a0_0x578279(0xae),{'value':!![]}),exports[a0_0x578279(0xac)]=filterDockerPs,exports[a0_0x578279(0xca)]=filterDockerImages,exports['filterDockerLogs']=filterDockerLogs,exports[a0_0x578279(0xb5)]=filterKubectl,exports[a0_0x578279(0xa8)]=filterRuff;function filterDockerPs(_0x3215b5){const _0x155e36=a0_0x578279,_0x1fff74=_0x3215b5[_0x155e36(0xc4)]('\x0a')[_0x155e36(0x9b)](_0xec37e0=>_0xec37e0[_0x155e36(0xbd)]()[_0x155e36(0xb3)]>0x0);if(_0x1fff74[_0x155e36(0xb3)]===0x0)return _0x155e36(0xa7);if(_0x1fff74[_0x155e36(0xb3)]<=0xa)return _0x3215b5[_0x155e36(0xbd)]();const _0x46dfb3=_0x1fff74[0x0],_0x1f85d=_0x1fff74['slice'](0x1),_0x38e9ac=[];_0x38e9ac[_0x155e36(0x9e)](_0x155e36(0xa3)+_0x1f85d[_0x155e36(0xb3)]+'\x20total'),_0x38e9ac['push']('');for(const _0x268d41 of _0x1f85d){const _0x4c3373=_0x268d41[_0x155e36(0xc4)](/\s{2,}/);if(_0x4c3373['length']>=0x5){const _0xb9ee66=_0x4c3373[0x0]['substring'](0x0,0xc),_0x5efd85=_0x4c3373[0x1],_0x234cd9=_0x4c3373[_0x4c3373[_0x155e36(0xb3)]-0x2]||'',_0x1c0eb4=_0x4c3373[_0x4c3373[_0x155e36(0xb3)]-0x1]||'';_0x38e9ac[_0x155e36(0x9e)]('\x20\x20'+_0xb9ee66+'\x20\x20'+_0x5efd85+'\x20\x20'+_0x234cd9+'\x20\x20'+_0x1c0eb4);}else _0x38e9ac[_0x155e36(0x9e)]('\x20\x20'+_0x268d41['trim']());}return _0x38e9ac[_0x155e36(0xc5)]('\x0a');}function filterDockerImages(_0x1853ce){const _0x499dbc=a0_0x578279,_0x3c0cd3=_0x1853ce[_0x499dbc(0xc4)]('\x0a')[_0x499dbc(0x9b)](_0xc4fbc=>_0xc4fbc[_0x499dbc(0xbd)]()[_0x499dbc(0xb3)]>0x0);if(_0x3c0cd3[_0x499dbc(0xb3)]<=0x1)return _0x499dbc(0x9f);if(_0x3c0cd3[_0x499dbc(0xb3)]<=0xf)return _0x1853ce['trim']();const _0x1a8e63=_0x3c0cd3['slice'](0x1),_0x321f7b=[_0x499dbc(0xb8)+_0x1a8e63['length']+_0x499dbc(0xcd)];_0x321f7b[_0x499dbc(0x9e)]('');const _0x4c9e6f=_0x1a8e63[_0x499dbc(0xc0)](0x0,0x14);for(const _0x49374f of _0x4c9e6f){const _0x2931e2=_0x49374f[_0x499dbc(0xc4)](/\s{2,}/);if(_0x2931e2[_0x499dbc(0xb3)]>=0x3){const _0x474123=_0x2931e2[0x0],_0x35ed1b=_0x2931e2[0x1],_0x26ca22=_0x2931e2[_0x2931e2['length']-0x1]||'';_0x321f7b['push']('\x20\x20'+_0x474123+':'+_0x35ed1b+'\x20\x20'+_0x26ca22);}else _0x321f7b[_0x499dbc(0x9e)]('\x20\x20'+_0x49374f[_0x499dbc(0xbd)]());}return _0x1a8e63['length']>0x14&&_0x321f7b[_0x499dbc(0x9e)]('\x20\x20...\x20+'+(_0x1a8e63[_0x499dbc(0xb3)]-0x14)+_0x499dbc(0xc3)),_0x321f7b[_0x499dbc(0xc5)]('\x0a');}function filterDockerLogs(_0x5a68bd){const _0x2935f8=a0_0x578279,_0x2a8d86=_0x5a68bd['split']('\x0a');if(_0x2a8d86[_0x2935f8(0xb3)]<=0x32)return _0x5a68bd;const _0x56d92d=[];return _0x56d92d[_0x2935f8(0x9e)](..._0x2a8d86[_0x2935f8(0xc0)](0x0,0x14)),_0x56d92d[_0x2935f8(0x9e)](_0x2935f8(0xb4)+(_0x2a8d86[_0x2935f8(0xb3)]-0x28)+_0x2935f8(0x9c)),_0x56d92d[_0x2935f8(0x9e)](..._0x2a8d86[_0x2935f8(0xc0)](-0x14)),_0x56d92d['push']('\x0a('+_0x2a8d86['length']+_0x2935f8(0xba)),_0x56d92d['join']('\x0a');}function filterKubectl(_0x1e8cbf,_0x5ea7ef){const _0x3097e0=a0_0x578279,_0x5f031f=_0x1e8cbf[_0x3097e0(0xc4)]('\x0a')[_0x3097e0(0x9b)](_0x46cdc0=>_0x46cdc0['trim']()[_0x3097e0(0xb3)]>0x0);if(_0x5f031f[_0x3097e0(0xb3)]===0x0)return _0x3097e0(0x9a);if(_0x5f031f[_0x3097e0(0xb3)]<=0x14)return _0x1e8cbf['trim']();if(_0x5ea7ef===_0x3097e0(0x98)){const _0x2a5f56=_0x5f031f[0x0],_0xebf193=_0x5f031f['slice'](0x1),_0x40cbe0=[_0xebf193[_0x3097e0(0xb3)]+'\x20resources\x20found','',_0x2a5f56];return _0xebf193[_0x3097e0(0xb3)]<=0x1e?_0x40cbe0[_0x3097e0(0x9e)](..._0xebf193):(_0x40cbe0[_0x3097e0(0x9e)](..._0xebf193['slice'](0x0,0x19)),_0x40cbe0[_0x3097e0(0x9e)](_0x3097e0(0xa4)+(_0xebf193[_0x3097e0(0xb3)]-0x19)+_0x3097e0(0xaf))),_0x40cbe0['join']('\x0a');}if(_0x5ea7ef===_0x3097e0(0xc7)){const _0x30e845=[];let _0x403d3b=![],_0x461df4=0x0;for(const _0x4f71dd of _0x5f031f){if(_0x4f71dd[_0x3097e0(0xc2)](_0x3097e0(0xcc))){_0x403d3b=!![],_0x30e845[_0x3097e0(0x9e)](_0x4f71dd);continue;}if(_0x403d3b){_0x461df4++;if(_0x461df4<=0x5)_0x30e845['push'](_0x4f71dd);}else _0x30e845[_0x3097e0(0x9e)](_0x4f71dd);}return _0x461df4>0x5&&_0x30e845[_0x3097e0(0x9e)](_0x3097e0(0xab)+(_0x461df4-0x5)+_0x3097e0(0xc9)),_0x30e845['join']('\x0a');}if(_0x5ea7ef===_0x3097e0(0xaa))return filterDockerLogs(_0x1e8cbf);const _0x5538f6=_0x5f031f['slice'](0x0,0x1e);return _0x5f031f[_0x3097e0(0xb3)]>0x1e&&_0x5538f6[_0x3097e0(0x9e)]('...\x20+'+(_0x5f031f[_0x3097e0(0xb3)]-0x1e)+_0x3097e0(0xc1)),_0x5538f6[_0x3097e0(0xc5)]('\x0a');}function filterRuff(_0x589fe0){const _0x135753=a0_0x578279,_0x14fb55=_0x589fe0[_0x135753(0xc4)]('\x0a')[_0x135753(0x9b)](_0x52d9ab=>_0x52d9ab[_0x135753(0xbd)]()[_0x135753(0xb3)]>0x0);if(_0x14fb55['length']===0x0)return _0x135753(0xb2);if(_0x589fe0['includes'](_0x135753(0xa6))||_0x589fe0[_0x135753(0xb9)](_0x135753(0xbb)))return _0x135753(0x99);const _0x2a257a=_0x589fe0[_0x135753(0xa5)](/Found (\d+) error/),_0x500f45=_0x2a257a?parseInt(_0x2a257a[0x1]):_0x14fb55[_0x135753(0xb3)],_0x55900e={},_0x4e440f=[];for(const _0x2224b2 of _0x14fb55){const _0xea0f3c=_0x2224b2[_0x135753(0xa5)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0xea0f3c){const _0x554e1b=_0xea0f3c[0x1],_0xbd78b6=_0x554e1b[_0x135753(0xc4)](':')[0x0];if(!_0x55900e[_0xbd78b6])_0x55900e[_0xbd78b6]=[];_0x55900e[_0xbd78b6][_0x135753(0x9e)](_0x2224b2);}else _0x4e440f[_0x135753(0x9e)](_0x2224b2);}const _0x51a362=Object[_0x135753(0xad)](_0x55900e);if(_0x51a362[_0x135753(0xb3)]===0x0){if(_0x14fb55['length']<=0x14)return _0x589fe0['trim']();return _0x14fb55[_0x135753(0xc0)](0x0,0xf)[_0x135753(0xc5)]('\x0a')+('\x0a...\x20+'+(_0x14fb55[_0x135753(0xb3)]-0xf)+'\x20more');}const _0x35b77=[_0x135753(0xc8)+_0x500f45+'\x20issues\x20in\x20'+_0x51a362[_0x135753(0xb3)]+_0x135753(0xbf)];_0x35b77[_0x135753(0x9e)]('');const _0x29adcf=0xa;for(const _0x109d71 of _0x51a362['slice'](0x0,_0x29adcf)){const _0xae83e=_0x55900e[_0x109d71];if(_0xae83e[_0x135753(0xb3)]<=0x3){for(const _0x2a643c of _0xae83e)_0x35b77[_0x135753(0x9e)]('\x20\x20'+_0x2a643c);}else _0x35b77[_0x135753(0x9e)]('\x20\x20'+_0xae83e[0x0]),_0x35b77[_0x135753(0x9e)]('\x20\x20...\x20('+_0xae83e['length']+'\x20issues\x20in\x20'+_0x109d71+')');}return _0x51a362['length']>_0x29adcf&&_0x35b77[_0x135753(0x9e)]('\x20\x20...\x20+'+(_0x51a362[_0x135753(0xb3)]-_0x29adcf)+_0x135753(0xa0)),_0x35b77['join']('\x0a');}function a0_0x458e(){const _0xd7336c=['\x0a...\x20[','filterKubectl','6Byhxcd','20DsBUTJ','Docker\x20images:\x20','includes','\x20log\x20lines\x20total)','Found\x200\x20error','432963CdmEAp','trim','defineProperty','\x20files','slice','\x20more\x20lines','startsWith','\x20more\x20images','split','join','2333052QoJUZx','describe','Ruff:\x20','\x20more\x20events','filterDockerImages','6209EMZgjr','Events:','\x20total','get','Ruff:\x20all\x20checks\x20passed','No\x20resources\x20found','filter','\x20lines\x20truncated]\x20...\x0a','2220885nQSgbf','push','No\x20images\x20found','\x20more\x20files','6756pEmLnr','10035360FDKgGT','Containers:\x20','...\x20+','match','All\x20checks\x20passed','No\x20containers\x20running','filterRuff','5737070uvnACb','logs','\x20\x20...\x20+','filterDockerPs','keys','__esModule','\x20more\x20resources','4kHDEyI','7401053aulUCj','Ruff:\x20no\x20issues\x20found','length'];a0_0x458e=function(){return _0xd7336c;};return a0_0x458e();}
1
+ 'use strict';const a0_0xa028d2=a0_0x300c;(function(_0x234b8c,_0x66846e){const _0x313ad4=a0_0x300c,_0x3fdd9d=_0x234b8c();while(!![]){try{const _0x3a2a40=-parseInt(_0x313ad4(0xaa))/0x1+parseInt(_0x313ad4(0xd0))/0x2*(parseInt(_0x313ad4(0xbf))/0x3)+parseInt(_0x313ad4(0xb9))/0x4*(-parseInt(_0x313ad4(0xb7))/0x5)+-parseInt(_0x313ad4(0xc9))/0x6*(parseInt(_0x313ad4(0xcd))/0x7)+-parseInt(_0x313ad4(0xb1))/0x8+parseInt(_0x313ad4(0xd2))/0x9*(parseInt(_0x313ad4(0xad))/0xa)+parseInt(_0x313ad4(0xb6))/0xb*(parseInt(_0x313ad4(0xb2))/0xc);if(_0x3a2a40===_0x66846e)break;else _0x3fdd9d['push'](_0x3fdd9d['shift']());}catch(_0xd40c30){_0x3fdd9d['push'](_0x3fdd9d['shift']());}}}(a0_0x3c06,0x446c9));Object[a0_0xa028d2(0xb8)](exports,a0_0xa028d2(0xc2),{'value':!![]}),exports[a0_0xa028d2(0xa8)]=filterDockerPs,exports['filterDockerImages']=filterDockerImages,exports['filterDockerLogs']=filterDockerLogs,exports['filterKubectl']=filterKubectl,exports[a0_0xa028d2(0xa4)]=filterRuff;function filterDockerPs(_0x291bac){const _0x51e0e4=a0_0xa028d2,_0x5ec48a=_0x291bac[_0x51e0e4(0xba)]('\x0a')['filter'](_0x2d06d8=>_0x2d06d8[_0x51e0e4(0xab)]()['length']>0x0);if(_0x5ec48a[_0x51e0e4(0xa1)]===0x0)return _0x51e0e4(0xb5);if(_0x5ec48a[_0x51e0e4(0xa1)]<=0xa)return _0x291bac[_0x51e0e4(0xab)]();const _0x1faaab=_0x5ec48a[0x0],_0x33a02d=_0x5ec48a[_0x51e0e4(0xc7)](0x1),_0x1d95ab=[];_0x1d95ab[_0x51e0e4(0xa3)](_0x51e0e4(0xa5)+_0x33a02d[_0x51e0e4(0xa1)]+_0x51e0e4(0xc1)),_0x1d95ab[_0x51e0e4(0xa3)]('');for(const _0xd3d918 of _0x33a02d){const _0x461e8d=_0xd3d918[_0x51e0e4(0xba)](/\s{2,}/);if(_0x461e8d[_0x51e0e4(0xa1)]>=0x5){const _0x1cb9b3=_0x461e8d[0x0][_0x51e0e4(0xb0)](0x0,0xc),_0x2b6711=_0x461e8d[0x1],_0x429f79=_0x461e8d[_0x461e8d[_0x51e0e4(0xa1)]-0x2]||'',_0x432797=_0x461e8d[_0x461e8d[_0x51e0e4(0xa1)]-0x1]||'';_0x1d95ab['push']('\x20\x20'+_0x1cb9b3+'\x20\x20'+_0x2b6711+'\x20\x20'+_0x429f79+'\x20\x20'+_0x432797);}else _0x1d95ab[_0x51e0e4(0xa3)]('\x20\x20'+_0xd3d918[_0x51e0e4(0xab)]());}return _0x1d95ab['join']('\x0a');}function filterDockerImages(_0x375a55){const _0x5c4d51=a0_0xa028d2,_0x9e6215=_0x375a55[_0x5c4d51(0xba)]('\x0a')['filter'](_0x5148fb=>_0x5148fb[_0x5c4d51(0xab)]()[_0x5c4d51(0xa1)]>0x0);if(_0x9e6215['length']<=0x1)return _0x5c4d51(0xd1);if(_0x9e6215[_0x5c4d51(0xa1)]<=0xf)return _0x375a55[_0x5c4d51(0xab)]();const _0x157f75=_0x9e6215[_0x5c4d51(0xc7)](0x1),_0x371f94=[_0x5c4d51(0xae)+_0x157f75[_0x5c4d51(0xa1)]+'\x20total'];_0x371f94['push']('');const _0x2a3ce2=_0x157f75[_0x5c4d51(0xc7)](0x0,0x14);for(const _0x1ed6ed of _0x2a3ce2){const _0x25823b=_0x1ed6ed[_0x5c4d51(0xba)](/\s{2,}/);if(_0x25823b['length']>=0x3){const _0x413263=_0x25823b[0x0],_0x997d91=_0x25823b[0x1],_0x351902=_0x25823b[_0x25823b['length']-0x1]||'';_0x371f94[_0x5c4d51(0xa3)]('\x20\x20'+_0x413263+':'+_0x997d91+'\x20\x20'+_0x351902);}else _0x371f94[_0x5c4d51(0xa3)]('\x20\x20'+_0x1ed6ed[_0x5c4d51(0xab)]());}return _0x157f75['length']>0x14&&_0x371f94[_0x5c4d51(0xa3)](_0x5c4d51(0xc4)+(_0x157f75[_0x5c4d51(0xa1)]-0x14)+_0x5c4d51(0xce)),_0x371f94['join']('\x0a');}function a0_0x3c06(){const _0x4b710b=['join','\x20lines\x20truncated]\x20...\x0a','describe','length','\x20more\x20resources','push','filterRuff','Containers:\x20','\x20more','Ruff:\x20no\x20issues\x20found','filterDockerPs','\x20resources\x20found','237940zeXJeN','trim','match','296250asQaeG','Docker\x20images:\x20','get','substring','4318520MnZmvl','27108EOVZNT','\x20\x20...\x20(','includes','No\x20containers\x20running','4774fVDEEF','45YIVNTj','defineProperty','65836tAepHR','split','\x20more\x20events','startsWith','\x20more\x20files','\x20files','25701EpwOBY','\x20log\x20lines\x20total)','\x20total','__esModule','filter','\x20\x20...\x20+','Ruff:\x20all\x20checks\x20passed','All\x20checks\x20passed','slice','No\x20resources\x20found','6PKdqjN','\x0a...\x20+','\x20issues\x20in\x20','Events:','3736894JTUDqf','\x20more\x20images','...\x20+','122RtwkZi','No\x20images\x20found','72EIUvAc'];a0_0x3c06=function(){return _0x4b710b;};return a0_0x3c06();}function filterDockerLogs(_0x1890da){const _0x16c735=a0_0xa028d2,_0x2791ed=_0x1890da['split']('\x0a');if(_0x2791ed[_0x16c735(0xa1)]<=0x32)return _0x1890da;const _0x1df02a=[];return _0x1df02a[_0x16c735(0xa3)](..._0x2791ed[_0x16c735(0xc7)](0x0,0x14)),_0x1df02a[_0x16c735(0xa3)]('\x0a...\x20['+(_0x2791ed[_0x16c735(0xa1)]-0x28)+_0x16c735(0x9f)),_0x1df02a[_0x16c735(0xa3)](..._0x2791ed['slice'](-0x14)),_0x1df02a['push']('\x0a('+_0x2791ed[_0x16c735(0xa1)]+_0x16c735(0xc0)),_0x1df02a['join']('\x0a');}function filterKubectl(_0x4bace0,_0x351588){const _0x2e6c3d=a0_0xa028d2,_0x3be3be=_0x4bace0['split']('\x0a')['filter'](_0x4ef060=>_0x4ef060[_0x2e6c3d(0xab)]()[_0x2e6c3d(0xa1)]>0x0);if(_0x3be3be[_0x2e6c3d(0xa1)]===0x0)return _0x2e6c3d(0xc8);if(_0x3be3be[_0x2e6c3d(0xa1)]<=0x14)return _0x4bace0[_0x2e6c3d(0xab)]();if(_0x351588===_0x2e6c3d(0xaf)){const _0x15ea4e=_0x3be3be[0x0],_0x3caeb8=_0x3be3be[_0x2e6c3d(0xc7)](0x1),_0x2d995e=[_0x3caeb8[_0x2e6c3d(0xa1)]+_0x2e6c3d(0xa9),'',_0x15ea4e];return _0x3caeb8['length']<=0x1e?_0x2d995e[_0x2e6c3d(0xa3)](..._0x3caeb8):(_0x2d995e[_0x2e6c3d(0xa3)](..._0x3caeb8['slice'](0x0,0x19)),_0x2d995e[_0x2e6c3d(0xa3)](_0x2e6c3d(0xcf)+(_0x3caeb8[_0x2e6c3d(0xa1)]-0x19)+_0x2e6c3d(0xa2))),_0x2d995e[_0x2e6c3d(0xd3)]('\x0a');}if(_0x351588===_0x2e6c3d(0xa0)){const _0x502b32=[];let _0x286b99=![],_0x59171e=0x0;for(const _0x1c2693 of _0x3be3be){if(_0x1c2693[_0x2e6c3d(0xbc)](_0x2e6c3d(0xcc))){_0x286b99=!![],_0x502b32['push'](_0x1c2693);continue;}if(_0x286b99){_0x59171e++;if(_0x59171e<=0x5)_0x502b32[_0x2e6c3d(0xa3)](_0x1c2693);}else _0x502b32[_0x2e6c3d(0xa3)](_0x1c2693);}return _0x59171e>0x5&&_0x502b32[_0x2e6c3d(0xa3)](_0x2e6c3d(0xc4)+(_0x59171e-0x5)+_0x2e6c3d(0xbb)),_0x502b32['join']('\x0a');}if(_0x351588==='logs')return filterDockerLogs(_0x4bace0);const _0x2c3376=_0x3be3be[_0x2e6c3d(0xc7)](0x0,0x1e);return _0x3be3be['length']>0x1e&&_0x2c3376[_0x2e6c3d(0xa3)](_0x2e6c3d(0xcf)+(_0x3be3be[_0x2e6c3d(0xa1)]-0x1e)+'\x20more\x20lines'),_0x2c3376['join']('\x0a');}function a0_0x300c(_0x113467,_0x36b377){_0x113467=_0x113467-0x9f;const _0x3c0631=a0_0x3c06();let _0x300c5e=_0x3c0631[_0x113467];return _0x300c5e;}function filterRuff(_0x21e46e){const _0x10ef51=a0_0xa028d2,_0x3a8587=_0x21e46e['split']('\x0a')[_0x10ef51(0xc3)](_0x149cb5=>_0x149cb5[_0x10ef51(0xab)]()['length']>0x0);if(_0x3a8587[_0x10ef51(0xa1)]===0x0)return _0x10ef51(0xa7);if(_0x21e46e['includes'](_0x10ef51(0xc6))||_0x21e46e[_0x10ef51(0xb4)]('Found\x200\x20error'))return _0x10ef51(0xc5);const _0x54fe0c=_0x21e46e[_0x10ef51(0xac)](/Found (\d+) error/),_0xb40a01=_0x54fe0c?parseInt(_0x54fe0c[0x1]):_0x3a8587[_0x10ef51(0xa1)],_0x6e3519={},_0x3e0817=[];for(const _0x407595 of _0x3a8587){const _0x3484b0=_0x407595[_0x10ef51(0xac)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x3484b0){const _0x3dc295=_0x3484b0[0x1],_0x323d74=_0x3dc295[_0x10ef51(0xba)](':')[0x0];if(!_0x6e3519[_0x323d74])_0x6e3519[_0x323d74]=[];_0x6e3519[_0x323d74][_0x10ef51(0xa3)](_0x407595);}else _0x3e0817[_0x10ef51(0xa3)](_0x407595);}const _0x408199=Object['keys'](_0x6e3519);if(_0x408199[_0x10ef51(0xa1)]===0x0){if(_0x3a8587['length']<=0x14)return _0x21e46e[_0x10ef51(0xab)]();return _0x3a8587[_0x10ef51(0xc7)](0x0,0xf)[_0x10ef51(0xd3)]('\x0a')+(_0x10ef51(0xca)+(_0x3a8587[_0x10ef51(0xa1)]-0xf)+_0x10ef51(0xa6));}const _0x5603d2=['Ruff:\x20'+_0xb40a01+'\x20issues\x20in\x20'+_0x408199[_0x10ef51(0xa1)]+_0x10ef51(0xbe)];_0x5603d2[_0x10ef51(0xa3)]('');const _0x5961fd=0xa;for(const _0x5a8871 of _0x408199[_0x10ef51(0xc7)](0x0,_0x5961fd)){const _0x188f0c=_0x6e3519[_0x5a8871];if(_0x188f0c[_0x10ef51(0xa1)]<=0x3){for(const _0x2ba1ac of _0x188f0c)_0x5603d2[_0x10ef51(0xa3)]('\x20\x20'+_0x2ba1ac);}else _0x5603d2['push']('\x20\x20'+_0x188f0c[0x0]),_0x5603d2[_0x10ef51(0xa3)](_0x10ef51(0xb3)+_0x188f0c[_0x10ef51(0xa1)]+_0x10ef51(0xcb)+_0x5a8871+')');}return _0x408199[_0x10ef51(0xa1)]>_0x5961fd&&_0x5603d2['push']('\x20\x20...\x20+'+(_0x408199[_0x10ef51(0xa1)]-_0x5961fd)+_0x10ef51(0xbd)),_0x5603d2[_0x10ef51(0xd3)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x36a8d9=a0_0x2154;(function(_0x4e97cf,_0x402140){const _0xd40a85=a0_0x2154,_0x181d28=_0x4e97cf();while(!![]){try{const _0x549d3a=-parseInt(_0xd40a85(0x176))/0x1+parseInt(_0xd40a85(0x18c))/0x2+parseInt(_0xd40a85(0x185))/0x3+parseInt(_0xd40a85(0x179))/0x4*(parseInt(_0xd40a85(0x174))/0x5)+parseInt(_0xd40a85(0x18a))/0x6*(parseInt(_0xd40a85(0x188))/0x7)+-parseInt(_0xd40a85(0x184))/0x8*(-parseInt(_0xd40a85(0x18b))/0x9)+parseInt(_0xd40a85(0x17c))/0xa*(-parseInt(_0xd40a85(0x17b))/0xb);if(_0x549d3a===_0x402140)break;else _0x181d28['push'](_0x181d28['shift']());}catch(_0x304318){_0x181d28['push'](_0x181d28['shift']());}}}(a0_0x2d0e,0xa6883));Object[a0_0x36a8d9(0x182)](exports,a0_0x36a8d9(0x187),{'value':!![]}),exports[a0_0x36a8d9(0x17f)]=stripAnsi,exports[a0_0x36a8d9(0x17a)]=collapseDuplicates,exports[a0_0x36a8d9(0x186)]=softTruncate;function stripAnsi(_0x132efa){const _0x2d3ec4=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x132efa['replace'](_0x2d3ec4,'');}function a0_0x2154(_0x448f16,_0x25071d){_0x448f16=_0x448f16-0x174;const _0x2d0e61=a0_0x2d0e();let _0x215428=_0x2d0e61[_0x448f16];return _0x215428;}function collapseDuplicates(_0x40e208){const _0x39b319=a0_0x36a8d9,_0x4ecdf4=_0x40e208[_0x39b319(0x183)]('\x0a');if(_0x4ecdf4[_0x39b319(0x181)]<=0x1)return _0x40e208;const _0x425822=[];let _0x2f97a6=_0x4ecdf4[0x0],_0x32ec57=0x1;for(let _0x1a512b=0x1;_0x1a512b<_0x4ecdf4[_0x39b319(0x181)];_0x1a512b++){const _0x1a9e6f=_0x4ecdf4[_0x1a512b];_0x1a9e6f===_0x2f97a6&&_0x1a9e6f[_0x39b319(0x177)]()[_0x39b319(0x181)]>0x0?_0x32ec57++:(_0x32ec57>0x1?_0x425822['push'](_0x2f97a6+_0x39b319(0x180)+_0x32ec57+']'):_0x425822[_0x39b319(0x175)](_0x2f97a6),_0x2f97a6=_0x1a9e6f,_0x32ec57=0x1);}return _0x32ec57>0x1?_0x425822[_0x39b319(0x175)](_0x2f97a6+_0x39b319(0x180)+_0x32ec57+']'):_0x425822[_0x39b319(0x175)](_0x2f97a6),_0x425822['join']('\x0a');}function softTruncate(_0x5b5382,_0xa39f9b=0x4e20){const _0x22d3af=a0_0x36a8d9;if(_0x5b5382[_0x22d3af(0x181)]<=_0xa39f9b)return _0x5b5382;const _0x1a4db4=_0x5b5382['split']('\x0a');if(_0x1a4db4[_0x22d3af(0x181)]<=0xc8)return _0x5b5382;const _0x400e8e=0x32,_0x2b60e8=0x96,_0x447866=_0x1a4db4[_0x22d3af(0x17e)](0x0,_0x400e8e),_0x895d3f=_0x1a4db4['slice'](_0x1a4db4[_0x22d3af(0x181)]-_0x2b60e8),_0x366add=_0x5b5382[_0x22d3af(0x181)]-(_0x447866[_0x22d3af(0x189)]('\x0a')[_0x22d3af(0x181)]+_0x895d3f['join']('\x0a')[_0x22d3af(0x181)]);return[..._0x447866,_0x22d3af(0x17d)+_0x366add+_0x22d3af(0x178),..._0x895d3f][_0x22d3af(0x189)]('\x0a');}function a0_0x2d0e(){const _0x45add3=['1100881fmheKm','trim','\x20characters\x20of\x20output]\x20...\x0a','328sazRou','collapseDuplicates','344531BvbsoB','290jEsTOi','\x0a...\x20[TrimPrompt:\x20Truncated\x20','slice','stripAnsi','\x20[x','length','defineProperty','split','32kprGWP','436494CdRsSN','softTruncate','__esModule','280dwgZeI','join','45690vkDIkD','2096595XPTTGs','2306026aBRigT','9535ROMFrZ','push'];a0_0x2d0e=function(){return _0x45add3;};return a0_0x2d0e();}
1
+ 'use strict';function a0_0x1abf(){const _0x384adf=['\x20characters\x20of\x20output]\x20...\x0a','1803656zfAIhP','length','247415EmnMaO','1yUKMYg','1052854qVMfJt','push','defineProperty','\x20[x','217470OkDXis','slice','4661670lZwImu','split','261tswKqo','join','66bBtine','replace','stripAnsi','trim','collapseDuplicates','softTruncate','3735160XxAydI','456522raycBk'];a0_0x1abf=function(){return _0x384adf;};return a0_0x1abf();}function a0_0x2a2e(_0x225f2e,_0x59627a){_0x225f2e=_0x225f2e-0x178;const _0x1abf8e=a0_0x1abf();let _0x2a2e36=_0x1abf8e[_0x225f2e];return _0x2a2e36;}const a0_0x437820=a0_0x2a2e;(function(_0x1de0cc,_0x3a4718){const _0x2e9ddf=a0_0x2a2e,_0x3dbe62=_0x1de0cc();while(!![]){try{const _0xa51596=-parseInt(_0x2e9ddf(0x17a))/0x1*(parseInt(_0x2e9ddf(0x17b))/0x2)+-parseInt(_0x2e9ddf(0x18c))/0x3+-parseInt(_0x2e9ddf(0x18e))/0x4+parseInt(_0x2e9ddf(0x181))/0x5+-parseInt(_0x2e9ddf(0x185))/0x6*(parseInt(_0x2e9ddf(0x179))/0x7)+parseInt(_0x2e9ddf(0x18b))/0x8+parseInt(_0x2e9ddf(0x183))/0x9*(parseInt(_0x2e9ddf(0x17f))/0xa);if(_0xa51596===_0x3a4718)break;else _0x3dbe62['push'](_0x3dbe62['shift']());}catch(_0x815b65){_0x3dbe62['push'](_0x3dbe62['shift']());}}}(a0_0x1abf,0x7ce5e));Object[a0_0x437820(0x17d)](exports,'__esModule',{'value':!![]}),exports[a0_0x437820(0x187)]=stripAnsi,exports[a0_0x437820(0x189)]=collapseDuplicates,exports[a0_0x437820(0x18a)]=softTruncate;function stripAnsi(_0x40f963){const _0x1a11b8=a0_0x437820,_0x1999d7=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x40f963[_0x1a11b8(0x186)](_0x1999d7,'');}function collapseDuplicates(_0x384f47){const _0x243b99=a0_0x437820,_0x534ad9=_0x384f47[_0x243b99(0x182)]('\x0a');if(_0x534ad9[_0x243b99(0x178)]<=0x1)return _0x384f47;const _0x3efe20=[];let _0x4f0fe5=_0x534ad9[0x0],_0x5792d3=0x1;for(let _0x4e9b43=0x1;_0x4e9b43<_0x534ad9[_0x243b99(0x178)];_0x4e9b43++){const _0x3c5f5b=_0x534ad9[_0x4e9b43];_0x3c5f5b===_0x4f0fe5&&_0x3c5f5b[_0x243b99(0x188)]()[_0x243b99(0x178)]>0x0?_0x5792d3++:(_0x5792d3>0x1?_0x3efe20[_0x243b99(0x17c)](_0x4f0fe5+_0x243b99(0x17e)+_0x5792d3+']'):_0x3efe20['push'](_0x4f0fe5),_0x4f0fe5=_0x3c5f5b,_0x5792d3=0x1);}return _0x5792d3>0x1?_0x3efe20[_0x243b99(0x17c)](_0x4f0fe5+_0x243b99(0x17e)+_0x5792d3+']'):_0x3efe20[_0x243b99(0x17c)](_0x4f0fe5),_0x3efe20[_0x243b99(0x184)]('\x0a');}function softTruncate(_0x2723dc,_0x345fab=0x4e20){const _0x3279e4=a0_0x437820;if(_0x2723dc['length']<=_0x345fab)return _0x2723dc;const _0x84fad8=_0x2723dc['split']('\x0a');if(_0x84fad8[_0x3279e4(0x178)]<=0xc8)return _0x2723dc;const _0x9a6741=0x32,_0x5717f3=0x96,_0x3471ba=_0x84fad8[_0x3279e4(0x180)](0x0,_0x9a6741),_0x57a704=_0x84fad8[_0x3279e4(0x180)](_0x84fad8[_0x3279e4(0x178)]-_0x5717f3),_0x5aabbb=_0x2723dc[_0x3279e4(0x178)]-(_0x3471ba[_0x3279e4(0x184)]('\x0a')[_0x3279e4(0x178)]+_0x57a704['join']('\x0a')[_0x3279e4(0x178)]);return[..._0x3471ba,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x5aabbb+_0x3279e4(0x18d),..._0x57a704][_0x3279e4(0x184)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1e90d1=a0_0x4d5b;(function(_0x54032e,_0x42d31b){const _0x562f01=a0_0x4d5b,_0x1641da=_0x54032e();while(!![]){try{const _0x494cdd=-parseInt(_0x562f01(0x170))/0x1+-parseInt(_0x562f01(0x185))/0x2+parseInt(_0x562f01(0x162))/0x3*(parseInt(_0x562f01(0x187))/0x4)+parseInt(_0x562f01(0x188))/0x5*(-parseInt(_0x562f01(0x192))/0x6)+parseInt(_0x562f01(0x18e))/0x7*(parseInt(_0x562f01(0x18b))/0x8)+parseInt(_0x562f01(0x182))/0x9*(parseInt(_0x562f01(0x191))/0xa)+parseInt(_0x562f01(0x164))/0xb;if(_0x494cdd===_0x42d31b)break;else _0x1641da['push'](_0x1641da['shift']());}catch(_0x968b5b){_0x1641da['push'](_0x1641da['shift']());}}}(a0_0x1a09,0x73e12));var __createBinding=this&&this[a0_0x1e90d1(0x180)]||(Object[a0_0x1e90d1(0x17e)]?function(_0x2afb0a,_0x21f157,_0x418c9f,_0x43ab97){const _0x42ef74=a0_0x1e90d1;if(_0x43ab97===undefined)_0x43ab97=_0x418c9f;var _0xd9adf4=Object[_0x42ef74(0x161)](_0x21f157,_0x418c9f);(!_0xd9adf4||(_0x42ef74(0x165)in _0xd9adf4?!_0x21f157['__esModule']:_0xd9adf4['writable']||_0xd9adf4[_0x42ef74(0x176)]))&&(_0xd9adf4={'enumerable':!![],'get':function(){return _0x21f157[_0x418c9f];}}),Object[_0x42ef74(0x168)](_0x2afb0a,_0x43ab97,_0xd9adf4);}:function(_0x4a9e55,_0x2aace3,_0x3674d5,_0x6c397b){if(_0x6c397b===undefined)_0x6c397b=_0x3674d5;_0x4a9e55[_0x6c397b]=_0x2aace3[_0x3674d5];}),__setModuleDefault=this&&this[a0_0x1e90d1(0x163)]||(Object['create']?function(_0x2164a5,_0x20710e){const _0x3efe84=a0_0x1e90d1;Object[_0x3efe84(0x168)](_0x2164a5,'default',{'enumerable':!![],'value':_0x20710e});}:function(_0xe7aecc,_0x108483){const _0x3998f8=a0_0x1e90d1;_0xe7aecc[_0x3998f8(0x18a)]=_0x108483;}),__importStar=this&&this['__importStar']||(function(){var _0x72837c=function(_0x2a4655){const _0x2f12f9=a0_0x4d5b;return _0x72837c=Object[_0x2f12f9(0x167)]||function(_0x282d42){const _0x1fd267=_0x2f12f9;var _0x1c40c3=[];for(var _0x3aad4b in _0x282d42)if(Object['prototype'][_0x1fd267(0x166)]['call'](_0x282d42,_0x3aad4b))_0x1c40c3[_0x1c40c3[_0x1fd267(0x16f)]]=_0x3aad4b;return _0x1c40c3;},_0x72837c(_0x2a4655);};return function(_0x356b67){const _0x4a5189=a0_0x4d5b;if(_0x356b67&&_0x356b67[_0x4a5189(0x17a)])return _0x356b67;var _0x4fe3c6={};if(_0x356b67!=null){for(var _0x4cd0b7=_0x72837c(_0x356b67),_0x236bdd=0x0;_0x236bdd<_0x4cd0b7[_0x4a5189(0x16f)];_0x236bdd++)if(_0x4cd0b7[_0x236bdd]!=='default')__createBinding(_0x4fe3c6,_0x356b67,_0x4cd0b7[_0x236bdd]);}return __setModuleDefault(_0x4fe3c6,_0x356b67),_0x4fe3c6;};}());function a0_0x4d5b(_0x3834fa,_0xbb3240){_0x3834fa=_0x3834fa-0x161;const _0x1a090c=a0_0x1a09();let _0x4d5bbf=_0x1a090c[_0x3834fa];return _0x4d5bbf;}function a0_0x1a09(){const _0x36cb92=['getOwnPropertyNames','defineProperty','\x0aUntracked\x20files:','replace','slice','split','+++','[file]\x20','length','843698iXXVSW','filterGitStatus','*\x20Branch:\x20','\x20untracked\x20files)','join','\x20\x20...\x20+','configurable','filter','No\x20modifications','basename','__esModule','Clean\x20working\x20tree','path','match','create','startsWith','__createBinding','---END---','27BkFDVP','\x0aChanges:','filterGitDiff','4616ahHeNq','map','72EMlanc','10AyAeRP','push','default','2153896ezKMej','\x20\x20??\x20','\x20more\x20modifications','7BepalR','trim','substring','471930UZhCoK','2676708qvbwoH','getOwnPropertyDescriptor','89121fThagc','__setModuleDefault','13940762bXQPxq','get','hasOwnProperty'];a0_0x1a09=function(){return _0x36cb92;};return a0_0x1a09();}Object[a0_0x1e90d1(0x168)](exports,'__esModule',{'value':!![]}),exports[a0_0x1e90d1(0x171)]=filterGitStatus,exports['filterGitLog']=filterGitLog,exports[a0_0x1e90d1(0x184)]=filterGitDiff;const path=__importStar(require(a0_0x1e90d1(0x17c)));function filterGitStatus(_0x5d327d){const _0x259a3c=a0_0x1e90d1,_0x1dffc5=_0x5d327d['split']('\x0a')['map'](_0x7f4e07=>_0x7f4e07[_0x259a3c(0x18f)]())[_0x259a3c(0x177)](_0x455a38=>_0x455a38[_0x259a3c(0x16f)]>0x0);if(_0x1dffc5[_0x259a3c(0x16f)]===0x0)return _0x259a3c(0x17b);const _0x401a8a=[],_0x14aea0=[],_0x48413e=[];for(const _0x5573fd of _0x1dffc5){if(_0x5573fd[_0x259a3c(0x17f)]('##')){const _0xee6c34=_0x5573fd[_0x259a3c(0x16a)](/^##\s*/,'');_0x401a8a[_0x259a3c(0x189)](_0x259a3c(0x172)+_0xee6c34);}else _0x5573fd[_0x259a3c(0x17f)]('??')?_0x14aea0[_0x259a3c(0x189)](_0x5573fd[_0x259a3c(0x190)](0x3)[_0x259a3c(0x18f)]()):_0x48413e[_0x259a3c(0x189)](_0x5573fd);}_0x48413e[_0x259a3c(0x16f)]>0x0&&(_0x401a8a[_0x259a3c(0x189)](_0x259a3c(0x183)),_0x401a8a['push'](..._0x48413e[_0x259a3c(0x186)](_0x20ea8e=>'\x20\x20'+_0x20ea8e)));if(_0x14aea0[_0x259a3c(0x16f)]>0x0){_0x401a8a[_0x259a3c(0x189)](_0x259a3c(0x169));const _0x3b7f21={},_0x191200=[];for(const _0xad8429 of _0x14aea0){const _0xd84662=path['dirname'](_0xad8429);_0xd84662==='.'||_0xd84662===''?_0x191200['push'](_0xad8429):(!_0x3b7f21[_0xd84662]&&(_0x3b7f21[_0xd84662]=[]),_0x3b7f21[_0xd84662][_0x259a3c(0x189)](path[_0x259a3c(0x179)](_0xad8429)));}for(const [_0x4dbfc0,_0x3936aa]of Object['entries'](_0x3b7f21)){if(_0x3936aa[_0x259a3c(0x16f)]>0x5)_0x401a8a['push'](_0x259a3c(0x18c)+_0x4dbfc0+'/\x20('+_0x3936aa[_0x259a3c(0x16f)]+_0x259a3c(0x173));else for(const _0x53f49c of _0x3936aa){_0x401a8a[_0x259a3c(0x189)](_0x259a3c(0x18c)+path['join'](_0x4dbfc0,_0x53f49c));}}for(const _0x4c292b of _0x191200){_0x401a8a['push']('\x20\x20??\x20'+_0x4c292b);}}return _0x401a8a[_0x259a3c(0x174)]('\x0a');}function filterGitLog(_0x2505b5){const _0x357377=a0_0x1e90d1,_0x3c7b23=_0x2505b5['split'](_0x357377(0x181))['map'](_0x14afb3=>_0x14afb3[_0x357377(0x18f)]())[_0x357377(0x177)](_0x3d265b=>_0x3d265b[_0x357377(0x16f)]>0x0);if(_0x3c7b23[_0x357377(0x16f)]===0x0)return _0x2505b5;const _0x4aca79=[];for(const _0x4ca73d of _0x3c7b23){const _0x3c3857=_0x4ca73d[_0x357377(0x16c)]('\x0a'),_0xb5fde0=_0x3c3857[0x0]||'',_0x63e240=_0x3c3857[_0x357377(0x16b)](0x1)[_0x357377(0x186)](_0xa9d16d=>_0xa9d16d['trim']())[_0x357377(0x177)](_0x4897b6=>_0x4897b6[_0x357377(0x16f)]>0x0);_0x4aca79[_0x357377(0x189)]('-\x20'+_0xb5fde0),_0x63e240[_0x357377(0x16f)]>0x0&&(_0x4aca79[_0x357377(0x189)]('\x20\x20'+_0x63e240[0x0]),_0x63e240[_0x357377(0x16f)]>0x1&&_0x4aca79[_0x357377(0x189)]('\x20\x20...\x20(+'+(_0x63e240[_0x357377(0x16f)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x4aca79['join']('\x0a');}function filterGitDiff(_0x61720d){const _0x55ced5=a0_0x1e90d1,_0x205526=_0x61720d['split']('\x0a'),_0x2a81b7=[];let _0x5b948a='',_0x4dfc8b=0x0,_0x28ab53=0x0,_0x35634f=[];const _0x43a985=()=>{const _0x1934e0=a0_0x4d5b;if(_0x5b948a&&(_0x4dfc8b>0x0||_0x28ab53>0x0)){_0x2a81b7['push'](_0x1934e0(0x16e)+_0x5b948a+'\x20(+'+_0x4dfc8b+'\x20-'+_0x28ab53+')');const _0x420e95=0xa,_0x4fd26f=_0x35634f[_0x1934e0(0x16b)](0x0,_0x420e95);for(const _0x182aec of _0x4fd26f){_0x2a81b7[_0x1934e0(0x189)]('\x20\x20'+_0x182aec);}const _0x5012a0=_0x4dfc8b+_0x28ab53-_0x420e95;_0x5012a0>0x0&&_0x2a81b7[_0x1934e0(0x189)](_0x1934e0(0x175)+_0x5012a0+_0x1934e0(0x18d));}_0x4dfc8b=0x0,_0x28ab53=0x0,_0x35634f=[];};for(const _0x1999a6 of _0x205526){if(_0x1999a6['startsWith']('diff\x20--git')){_0x43a985();const _0x429a82=_0x1999a6[_0x55ced5(0x17d)](/\sb\/(.+)$/);_0x5b948a=_0x429a82?_0x429a82[0x1]:'unknown_file';}else{if(_0x1999a6[_0x55ced5(0x17f)]('+')&&!_0x1999a6[_0x55ced5(0x17f)](_0x55ced5(0x16d)))_0x4dfc8b++,_0x35634f[_0x55ced5(0x189)](_0x1999a6);else _0x1999a6[_0x55ced5(0x17f)]('-')&&!_0x1999a6[_0x55ced5(0x17f)]('---')&&(_0x28ab53++,_0x35634f[_0x55ced5(0x189)](_0x1999a6));}}_0x43a985();const _0x433296=_0x2a81b7['join']('\x0a');return _0x433296[_0x55ced5(0x16f)]>0x0?_0x433296:_0x55ced5(0x178);}
1
+ 'use strict';const a0_0x3ffdbd=a0_0x3adb;(function(_0x5e3747,_0x55b0af){const _0x471427=a0_0x3adb,_0xfc83d8=_0x5e3747();while(!![]){try{const _0x15f7a9=-parseInt(_0x471427(0x81))/0x1+parseInt(_0x471427(0x90))/0x2+parseInt(_0x471427(0x7b))/0x3*(-parseInt(_0x471427(0x87))/0x4)+parseInt(_0x471427(0x76))/0x5*(parseInt(_0x471427(0x82))/0x6)+parseInt(_0x471427(0x85))/0x7+parseInt(_0x471427(0x84))/0x8*(parseInt(_0x471427(0x8e))/0x9)+-parseInt(_0x471427(0xa6))/0xa;if(_0x15f7a9===_0x55b0af)break;else _0xfc83d8['push'](_0xfc83d8['shift']());}catch(_0x4168b4){_0xfc83d8['push'](_0xfc83d8['shift']());}}}(a0_0x8303,0x4289f));function a0_0x3adb(_0x3cd291,_0xd51272){_0x3cd291=_0x3cd291-0x75;const _0x83034a=a0_0x8303();let _0x3adb04=_0x83034a[_0x3cd291];return _0x3adb04;}var __createBinding=this&&this['__createBinding']||(Object[a0_0x3ffdbd(0x8a)]?function(_0x280b2a,_0x4430d4,_0x44b1da,_0x49b6de){const _0x2565ca=a0_0x3ffdbd;if(_0x49b6de===undefined)_0x49b6de=_0x44b1da;var _0x435f04=Object[_0x2565ca(0xa3)](_0x4430d4,_0x44b1da);(!_0x435f04||(_0x2565ca(0x93)in _0x435f04?!_0x4430d4['__esModule']:_0x435f04['writable']||_0x435f04['configurable']))&&(_0x435f04={'enumerable':!![],'get':function(){return _0x4430d4[_0x44b1da];}}),Object[_0x2565ca(0xa1)](_0x280b2a,_0x49b6de,_0x435f04);}:function(_0x395795,_0x3e2a6f,_0x19e11c,_0x9bc9c8){if(_0x9bc9c8===undefined)_0x9bc9c8=_0x19e11c;_0x395795[_0x9bc9c8]=_0x3e2a6f[_0x19e11c];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3ffdbd(0x8a)]?function(_0x5b4978,_0x3107d7){const _0x2ac302=a0_0x3ffdbd;Object[_0x2ac302(0xa1)](_0x5b4978,_0x2ac302(0x9f),{'enumerable':!![],'value':_0x3107d7});}:function(_0x22277d,_0x2bac30){const _0x3e86b7=a0_0x3ffdbd;_0x22277d[_0x3e86b7(0x9f)]=_0x2bac30;}),__importStar=this&&this['__importStar']||(function(){var _0x551576=function(_0x155e22){const _0x407f38=a0_0x3adb;return _0x551576=Object[_0x407f38(0x77)]||function(_0x16e039){const _0x837dc3=_0x407f38;var _0x1bf43e=[];for(var _0xfe450f in _0x16e039)if(Object[_0x837dc3(0x91)]['hasOwnProperty']['call'](_0x16e039,_0xfe450f))_0x1bf43e[_0x1bf43e[_0x837dc3(0x8f)]]=_0xfe450f;return _0x1bf43e;},_0x551576(_0x155e22);};return function(_0x586872){const _0x5382f8=a0_0x3adb;if(_0x586872&&_0x586872[_0x5382f8(0xa0)])return _0x586872;var _0x4a3366={};if(_0x586872!=null){for(var _0x49b1b9=_0x551576(_0x586872),_0x583204=0x0;_0x583204<_0x49b1b9['length'];_0x583204++)if(_0x49b1b9[_0x583204]!==_0x5382f8(0x9f))__createBinding(_0x4a3366,_0x586872,_0x49b1b9[_0x583204]);}return __setModuleDefault(_0x4a3366,_0x586872),_0x4a3366;};}());function a0_0x8303(){const _0x32152c=['dirname','map','---','373948eSSbYP','12KzayAK','diff\x20--git','1704blkgyS','2820839exNVgM','\x0aChanges:','608XsOljj','match','join','create','basename','\x20\x20??\x20','slice','1143vYoEmO','length','1005044EZpuGI','prototype','\x20(+','get','trim','entries','filter','startsWith','\x0aUntracked\x20files:','\x20\x20...\x20(+','\x20lines\x20of\x20description)','No\x20modifications','Clean\x20working\x20tree','\x20more\x20modifications','split','default','__esModule','defineProperty','path','getOwnPropertyDescriptor','---END---','+++','6873910jUHdTy','filterGitLog','1359390jOIiCo','getOwnPropertyNames','push','substring','/\x20(','2811ORMDur','[file]\x20','\x20\x20...\x20+'];a0_0x8303=function(){return _0x32152c;};return a0_0x8303();}Object[a0_0x3ffdbd(0xa1)](exports,a0_0x3ffdbd(0xa0),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x3ffdbd(0x75)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x3ffdbd(0xa2)));function filterGitStatus(_0x3e74f5){const _0xaa347f=a0_0x3ffdbd,_0x980149=_0x3e74f5['split']('\x0a')[_0xaa347f(0x7f)](_0x4b627c=>_0x4b627c[_0xaa347f(0x94)]())[_0xaa347f(0x96)](_0x51a1d7=>_0x51a1d7[_0xaa347f(0x8f)]>0x0);if(_0x980149[_0xaa347f(0x8f)]===0x0)return _0xaa347f(0x9c);const _0x4f332e=[],_0x34eaf1=[],_0x1173c5=[];for(const _0x35abb7 of _0x980149){if(_0x35abb7[_0xaa347f(0x97)]('##')){const _0x1c3be9=_0x35abb7['replace'](/^##\s*/,'');_0x4f332e[_0xaa347f(0x78)]('*\x20Branch:\x20'+_0x1c3be9);}else _0x35abb7[_0xaa347f(0x97)]('??')?_0x34eaf1['push'](_0x35abb7[_0xaa347f(0x79)](0x3)['trim']()):_0x1173c5[_0xaa347f(0x78)](_0x35abb7);}_0x1173c5[_0xaa347f(0x8f)]>0x0&&(_0x4f332e['push'](_0xaa347f(0x86)),_0x4f332e[_0xaa347f(0x78)](..._0x1173c5[_0xaa347f(0x7f)](_0x35dbec=>'\x20\x20'+_0x35dbec)));if(_0x34eaf1['length']>0x0){_0x4f332e[_0xaa347f(0x78)](_0xaa347f(0x98));const _0x1c8083={},_0x532788=[];for(const _0xa942ec of _0x34eaf1){const _0x289af5=path[_0xaa347f(0x7e)](_0xa942ec);_0x289af5==='.'||_0x289af5===''?_0x532788[_0xaa347f(0x78)](_0xa942ec):(!_0x1c8083[_0x289af5]&&(_0x1c8083[_0x289af5]=[]),_0x1c8083[_0x289af5][_0xaa347f(0x78)](path[_0xaa347f(0x8b)](_0xa942ec)));}for(const [_0x1155fc,_0x17a254]of Object[_0xaa347f(0x95)](_0x1c8083)){if(_0x17a254[_0xaa347f(0x8f)]>0x5)_0x4f332e[_0xaa347f(0x78)](_0xaa347f(0x8c)+_0x1155fc+_0xaa347f(0x7a)+_0x17a254[_0xaa347f(0x8f)]+'\x20untracked\x20files)');else for(const _0x212385 of _0x17a254){_0x4f332e[_0xaa347f(0x78)](_0xaa347f(0x8c)+path[_0xaa347f(0x89)](_0x1155fc,_0x212385));}}for(const _0x4f6200 of _0x532788){_0x4f332e['push'](_0xaa347f(0x8c)+_0x4f6200);}}return _0x4f332e[_0xaa347f(0x89)]('\x0a');}function filterGitLog(_0x346208){const _0x8cdabf=a0_0x3ffdbd,_0x4ac9a5=_0x346208[_0x8cdabf(0x9e)](_0x8cdabf(0xa4))[_0x8cdabf(0x7f)](_0x586245=>_0x586245['trim']())[_0x8cdabf(0x96)](_0x3da267=>_0x3da267[_0x8cdabf(0x8f)]>0x0);if(_0x4ac9a5[_0x8cdabf(0x8f)]===0x0)return _0x346208;const _0x251d79=[];for(const _0x2afdc6 of _0x4ac9a5){const _0xc9895e=_0x2afdc6[_0x8cdabf(0x9e)]('\x0a'),_0x3add02=_0xc9895e[0x0]||'',_0x156bd1=_0xc9895e[_0x8cdabf(0x8d)](0x1)[_0x8cdabf(0x7f)](_0x44f89b=>_0x44f89b[_0x8cdabf(0x94)]())['filter'](_0x343d87=>_0x343d87[_0x8cdabf(0x8f)]>0x0);_0x251d79[_0x8cdabf(0x78)]('-\x20'+_0x3add02),_0x156bd1[_0x8cdabf(0x8f)]>0x0&&(_0x251d79[_0x8cdabf(0x78)]('\x20\x20'+_0x156bd1[0x0]),_0x156bd1[_0x8cdabf(0x8f)]>0x1&&_0x251d79[_0x8cdabf(0x78)](_0x8cdabf(0x99)+(_0x156bd1[_0x8cdabf(0x8f)]-0x1)+_0x8cdabf(0x9a)));}return _0x251d79['join']('\x0a');}function filterGitDiff(_0x6f8c5d){const _0x380a4b=a0_0x3ffdbd,_0x3647ad=_0x6f8c5d['split']('\x0a'),_0x33ea0b=[];let _0x52d3a0='',_0x264a9e=0x0,_0x448a19=0x0,_0xec0e3=[];const _0x4c62a0=()=>{const _0x52cb5d=a0_0x3adb;if(_0x52d3a0&&(_0x264a9e>0x0||_0x448a19>0x0)){_0x33ea0b['push'](_0x52cb5d(0x7c)+_0x52d3a0+_0x52cb5d(0x92)+_0x264a9e+'\x20-'+_0x448a19+')');const _0x3cf6c8=0xa,_0xb69e4=_0xec0e3[_0x52cb5d(0x8d)](0x0,_0x3cf6c8);for(const _0x9e8687 of _0xb69e4){_0x33ea0b[_0x52cb5d(0x78)]('\x20\x20'+_0x9e8687);}const _0x21f7b4=_0x264a9e+_0x448a19-_0x3cf6c8;_0x21f7b4>0x0&&_0x33ea0b[_0x52cb5d(0x78)](_0x52cb5d(0x7d)+_0x21f7b4+_0x52cb5d(0x9d));}_0x264a9e=0x0,_0x448a19=0x0,_0xec0e3=[];};for(const _0x52e868 of _0x3647ad){if(_0x52e868[_0x380a4b(0x97)](_0x380a4b(0x83))){_0x4c62a0();const _0x2be050=_0x52e868[_0x380a4b(0x88)](/\sb\/(.+)$/);_0x52d3a0=_0x2be050?_0x2be050[0x1]:'unknown_file';}else{if(_0x52e868[_0x380a4b(0x97)]('+')&&!_0x52e868['startsWith'](_0x380a4b(0xa5)))_0x264a9e++,_0xec0e3[_0x380a4b(0x78)](_0x52e868);else _0x52e868[_0x380a4b(0x97)]('-')&&!_0x52e868[_0x380a4b(0x97)](_0x380a4b(0x80))&&(_0x448a19++,_0xec0e3['push'](_0x52e868));}}_0x4c62a0();const _0x441ff1=_0x33ea0b[_0x380a4b(0x89)]('\x0a');return _0x441ff1['length']>0x0?_0x441ff1:_0x380a4b(0x9b);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x218f(_0x5689f2,_0x4667f7){_0x5689f2=_0x5689f2-0x187;const _0x179dc6=a0_0x179d();let _0x218f36=_0x179dc6[_0x5689f2];return _0x218f36;}const a0_0x4a2e1b=a0_0x218f;(function(_0x1986bc,_0x53acbb){const _0x1389c2=a0_0x218f,_0x2be5c5=_0x1986bc();while(!![]){try{const _0x54d3f8=parseInt(_0x1389c2(0x19c))/0x1+-parseInt(_0x1389c2(0x198))/0x2+parseInt(_0x1389c2(0x1ae))/0x3+parseInt(_0x1389c2(0x18e))/0x4+parseInt(_0x1389c2(0x1af))/0x5*(-parseInt(_0x1389c2(0x194))/0x6)+parseInt(_0x1389c2(0x18d))/0x7+-parseInt(_0x1389c2(0x1ac))/0x8*(parseInt(_0x1389c2(0x19f))/0x9);if(_0x54d3f8===_0x53acbb)break;else _0x2be5c5['push'](_0x2be5c5['shift']());}catch(_0x27169e){_0x2be5c5['push'](_0x2be5c5['shift']());}}}(a0_0x179d,0xef32b));Object[a0_0x4a2e1b(0x18c)](exports,'__esModule',{'value':!![]}),exports[a0_0x4a2e1b(0x191)]=filterGoTest,exports[a0_0x4a2e1b(0x197)]=filterGoVet;function a0_0x179d(){const _0x2e89b4=['\x20issues\x20found','9cZtSSX','no\x20test\x20files','\x20passed','---\x20SKIP:','lines','Go\x20test:\x20all\x20tests\x20passed','===\x20RUN','FAIL','\x0aFailures:','\x20skipped','\x20\x20\x20\x20...\x20+','split','\x20failed,\x20','4797096TkrDHB','\x20\x20...\x20+','5012484xrjxhh','5flhHFd','\x20more\x20issues','match','push','slice','Go\x20vet:\x20no\x20issues\x20found','Go\x20vet:\x20','length','defineProperty','4765607NuclmB','1680468ZBSqzi','\x20more\x20lines','Go\x20test:\x20no\x20test\x20files','filterGoTest','join','PASS','9738822mvHKhX','trim','\x20passed,\x20','filterGoVet','1119524qtZLyt','startsWith','includes','...\x20+','990545mqrPOd','Go\x20test:\x20'];a0_0x179d=function(){return _0x2e89b4;};return a0_0x179d();}function filterGoTest(_0x24e6df){const _0x420d86=a0_0x4a2e1b,_0x4fbc38=_0x24e6df[_0x420d86(0x1aa)]('\x0a');let _0x54b0ae=0x0,_0x425b82=0x0,_0x31a979=0x0;const _0x104fd5=[],_0x27f91b=[];let _0xfe48a8=null;for(const _0x3849f6 of _0x4fbc38){const _0x3fbcee=_0x3849f6[_0x420d86(0x195)](),_0x3c2b14=_0x3fbcee['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x3c2b14){_0x27f91b['push'](_0x3fbcee);continue;}const _0x20c51a=_0x3fbcee[_0x420d86(0x1b1)](/^FAIL\s+\S+/);if(_0x20c51a){_0x27f91b[_0x420d86(0x187)](_0x3fbcee);continue;}const _0x30d392=_0x3fbcee['match'](/^--- PASS:/);if(_0x30d392){_0x54b0ae++;continue;}const _0x5ce1cf=_0x3fbcee[_0x420d86(0x1b1)](/^--- FAIL:\s+(\S+)/);if(_0x5ce1cf){if(_0xfe48a8)_0x104fd5['push'](_0xfe48a8);_0xfe48a8={'name':_0x5ce1cf[0x1],'lines':[]},_0x425b82++;continue;}if(_0x3fbcee[_0x420d86(0x199)](_0x420d86(0x1a2))){_0x31a979++;continue;}_0xfe48a8&&_0x3fbcee[_0x420d86(0x18b)]>0x0&&!_0x3fbcee['startsWith'](_0x420d86(0x1a5))&&_0xfe48a8[_0x420d86(0x1a3)][_0x420d86(0x187)](_0x3849f6),_0x3fbcee[_0x420d86(0x199)](_0x420d86(0x1a5))&&(_0xfe48a8&&(_0x104fd5[_0x420d86(0x187)](_0xfe48a8),_0xfe48a8=null));}if(_0xfe48a8)_0x104fd5[_0x420d86(0x187)](_0xfe48a8);if(_0x54b0ae===0x0&&_0x425b82===0x0&&_0x31a979===0x0){if(_0x24e6df[_0x420d86(0x19a)](_0x420d86(0x193))&&!_0x24e6df[_0x420d86(0x19a)](_0x420d86(0x1a6)))return _0x420d86(0x1a4);if(_0x24e6df[_0x420d86(0x19a)](_0x420d86(0x1a0)))return _0x420d86(0x190);return _0x24e6df;}if(_0x425b82===0x0){const _0x2859a9=[_0x420d86(0x19d)+_0x54b0ae+_0x420d86(0x1a1)];if(_0x31a979>0x0)_0x2859a9[_0x420d86(0x187)](_0x31a979+_0x420d86(0x1a8));return _0x2859a9[_0x420d86(0x192)](',\x20');}const _0x40e092=[_0x420d86(0x19d)+_0x54b0ae+_0x420d86(0x196)+_0x425b82+_0x420d86(0x1ab)+_0x31a979+_0x420d86(0x1a8)];if(_0x104fd5['length']>0x0){_0x40e092[_0x420d86(0x187)](_0x420d86(0x1a7));const _0x4969ea=0x3;for(let _0x397f50=0x0;_0x397f50<Math['min'](_0x104fd5[_0x420d86(0x18b)],_0x4969ea);_0x397f50++){const _0x91eb46=_0x104fd5[_0x397f50];_0x40e092[_0x420d86(0x187)]('\x20\x20'+(_0x397f50+0x1)+'.\x20'+_0x91eb46['name']);for(const _0x1b291f of _0x91eb46[_0x420d86(0x1a3)][_0x420d86(0x188)](0x0,0x5)){_0x40e092['push']('\x20\x20\x20\x20'+_0x1b291f[_0x420d86(0x195)]());}_0x91eb46[_0x420d86(0x1a3)]['length']>0x5&&_0x40e092[_0x420d86(0x187)](_0x420d86(0x1a9)+(_0x91eb46[_0x420d86(0x1a3)][_0x420d86(0x18b)]-0x5)+_0x420d86(0x18f));}_0x104fd5['length']>_0x4969ea&&_0x40e092[_0x420d86(0x187)](_0x420d86(0x1ad)+(_0x104fd5['length']-_0x4969ea)+'\x20more\x20failures');}return _0x40e092[_0x420d86(0x192)]('\x0a');}function filterGoVet(_0x2296f2){const _0x295117=a0_0x4a2e1b,_0x48bdb3=_0x2296f2[_0x295117(0x1aa)]('\x0a')['filter'](_0x1395b8=>_0x1395b8[_0x295117(0x195)]()['length']>0x0);if(_0x48bdb3[_0x295117(0x18b)]===0x0)return _0x295117(0x189);if(_0x48bdb3[_0x295117(0x18b)]<=0x14)return _0x2296f2[_0x295117(0x195)]();const _0x5272e5=[_0x295117(0x18a)+_0x48bdb3[_0x295117(0x18b)]+_0x295117(0x19e)];return _0x5272e5[_0x295117(0x187)](..._0x48bdb3['slice'](0x0,0xa)),_0x48bdb3[_0x295117(0x18b)]>0xa&&_0x5272e5[_0x295117(0x187)](_0x295117(0x19b)+(_0x48bdb3['length']-0xa)+_0x295117(0x1b0)),_0x5272e5[_0x295117(0x192)]('\x0a');}
1
+ 'use strict';const a0_0x5597bb=a0_0x359d;(function(_0x4e39ee,_0x54611c){const _0x12bbfe=a0_0x359d,_0x13995b=_0x4e39ee();while(!![]){try{const _0x3514e7=parseInt(_0x12bbfe(0xcd))/0x1+parseInt(_0x12bbfe(0xd7))/0x2*(parseInt(_0x12bbfe(0xeb))/0x3)+parseInt(_0x12bbfe(0xe1))/0x4+-parseInt(_0x12bbfe(0xd8))/0x5+-parseInt(_0x12bbfe(0xd6))/0x6*(-parseInt(_0x12bbfe(0xca))/0x7)+-parseInt(_0x12bbfe(0xe6))/0x8+parseInt(_0x12bbfe(0xdf))/0x9;if(_0x3514e7===_0x54611c)break;else _0x13995b['push'](_0x13995b['shift']());}catch(_0x5e055e){_0x13995b['push'](_0x13995b['shift']());}}}(a0_0x38e4,0x69831));function a0_0x38e4(){const _0x15ceb9=['\x0aFailures:','2614374FgNCZH','filterGoTest','501300RlCCcT','PASS','name','filterGoVet','\x20passed,\x20','4496448VSkmpR','__esModule','trim','Go\x20test:\x20','join','1200054KFOXES','\x20\x20\x20\x20...\x20+','\x20passed','push','FAIL','match','===\x20RUN','includes','min','1069383GbICBg','Go\x20test:\x20no\x20test\x20files','\x20more\x20failures','332231vTpvVh','\x20skipped','length','lines','slice','\x20\x20\x20\x20','Go\x20vet:\x20no\x20issues\x20found','startsWith','Go\x20test:\x20all\x20tests\x20passed','6rVSwza','2QfddZe','1532980WdFTUS','\x20failed,\x20','\x20more\x20issues','\x20\x20...\x20+','no\x20test\x20files','\x20more\x20lines'];a0_0x38e4=function(){return _0x15ceb9;};return a0_0x38e4();}Object['defineProperty'](exports,a0_0x5597bb(0xe7),{'value':!![]}),exports[a0_0x5597bb(0xe0)]=filterGoTest,exports[a0_0x5597bb(0xe4)]=filterGoVet;function a0_0x359d(_0x188cb5,_0x306cce){_0x188cb5=_0x188cb5-0xc8;const _0x38e4f=a0_0x38e4();let _0x359d55=_0x38e4f[_0x188cb5];return _0x359d55;}function filterGoTest(_0x17f188){const _0x296827=a0_0x5597bb,_0x262d42=_0x17f188['split']('\x0a');let _0x322b2a=0x0,_0xfb572c=0x0,_0x2843e7=0x0;const _0x23a221=[],_0x16645b=[];let _0x56436c=null;for(const _0x495978 of _0x262d42){const _0x5595a8=_0x495978[_0x296827(0xe8)](),_0xcfdfb=_0x5595a8[_0x296827(0xf0)](/^ok\s+\S+\s+[\d.]+s/);if(_0xcfdfb){_0x16645b[_0x296827(0xee)](_0x5595a8);continue;}const _0x1e7086=_0x5595a8['match'](/^FAIL\s+\S+/);if(_0x1e7086){_0x16645b[_0x296827(0xee)](_0x5595a8);continue;}const _0x1297bd=_0x5595a8['match'](/^--- PASS:/);if(_0x1297bd){_0x322b2a++;continue;}const _0x382918=_0x5595a8[_0x296827(0xf0)](/^--- FAIL:\s+(\S+)/);if(_0x382918){if(_0x56436c)_0x23a221['push'](_0x56436c);_0x56436c={'name':_0x382918[0x1],'lines':[]},_0xfb572c++;continue;}if(_0x5595a8[_0x296827(0xd4)]('---\x20SKIP:')){_0x2843e7++;continue;}_0x56436c&&_0x5595a8[_0x296827(0xcf)]>0x0&&!_0x5595a8[_0x296827(0xd4)](_0x296827(0xf1))&&_0x56436c[_0x296827(0xd0)]['push'](_0x495978),_0x5595a8['startsWith'](_0x296827(0xf1))&&(_0x56436c&&(_0x23a221[_0x296827(0xee)](_0x56436c),_0x56436c=null));}if(_0x56436c)_0x23a221['push'](_0x56436c);if(_0x322b2a===0x0&&_0xfb572c===0x0&&_0x2843e7===0x0){if(_0x17f188[_0x296827(0xc8)](_0x296827(0xe2))&&!_0x17f188[_0x296827(0xc8)](_0x296827(0xef)))return _0x296827(0xd5);if(_0x17f188[_0x296827(0xc8)](_0x296827(0xdc)))return _0x296827(0xcb);return _0x17f188;}if(_0xfb572c===0x0){const _0x4353bd=[_0x296827(0xe9)+_0x322b2a+_0x296827(0xed)];if(_0x2843e7>0x0)_0x4353bd[_0x296827(0xee)](_0x2843e7+_0x296827(0xce));return _0x4353bd[_0x296827(0xea)](',\x20');}const _0x8c2cef=[_0x296827(0xe9)+_0x322b2a+_0x296827(0xe5)+_0xfb572c+_0x296827(0xd9)+_0x2843e7+_0x296827(0xce)];if(_0x23a221['length']>0x0){_0x8c2cef[_0x296827(0xee)](_0x296827(0xde));const _0x5a0a80=0x3;for(let _0xced754=0x0;_0xced754<Math[_0x296827(0xc9)](_0x23a221[_0x296827(0xcf)],_0x5a0a80);_0xced754++){const _0x32d473=_0x23a221[_0xced754];_0x8c2cef['push']('\x20\x20'+(_0xced754+0x1)+'.\x20'+_0x32d473[_0x296827(0xe3)]);for(const _0x3de9b9 of _0x32d473['lines'][_0x296827(0xd1)](0x0,0x5)){_0x8c2cef[_0x296827(0xee)](_0x296827(0xd2)+_0x3de9b9[_0x296827(0xe8)]());}_0x32d473[_0x296827(0xd0)][_0x296827(0xcf)]>0x5&&_0x8c2cef[_0x296827(0xee)](_0x296827(0xec)+(_0x32d473[_0x296827(0xd0)][_0x296827(0xcf)]-0x5)+_0x296827(0xdd));}_0x23a221[_0x296827(0xcf)]>_0x5a0a80&&_0x8c2cef[_0x296827(0xee)](_0x296827(0xdb)+(_0x23a221[_0x296827(0xcf)]-_0x5a0a80)+_0x296827(0xcc));}return _0x8c2cef[_0x296827(0xea)]('\x0a');}function filterGoVet(_0x28c201){const _0x470580=a0_0x5597bb,_0x391391=_0x28c201['split']('\x0a')['filter'](_0x30174e=>_0x30174e['trim']()['length']>0x0);if(_0x391391[_0x470580(0xcf)]===0x0)return _0x470580(0xd3);if(_0x391391[_0x470580(0xcf)]<=0x14)return _0x28c201[_0x470580(0xe8)]();const _0x4fc172=['Go\x20vet:\x20'+_0x391391[_0x470580(0xcf)]+'\x20issues\x20found'];return _0x4fc172['push'](..._0x391391[_0x470580(0xd1)](0x0,0xa)),_0x391391[_0x470580(0xcf)]>0xa&&_0x4fc172[_0x470580(0xee)]('...\x20+'+(_0x391391['length']-0xa)+_0x470580(0xda)),_0x4fc172['join']('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x35ad65=a0_0x5586;(function(_0x53f996,_0x26ec33){const _0x2f887c=a0_0x5586,_0x4848c0=_0x53f996();while(!![]){try{const _0x43f64c=parseInt(_0x2f887c(0x1f7))/0x1+parseInt(_0x2f887c(0x221))/0x2*(-parseInt(_0x2f887c(0x1fb))/0x3)+parseInt(_0x2f887c(0x22f))/0x4*(-parseInt(_0x2f887c(0x22e))/0x5)+-parseInt(_0x2f887c(0x1f9))/0x6*(-parseInt(_0x2f887c(0x243))/0x7)+-parseInt(_0x2f887c(0x1fe))/0x8*(parseInt(_0x2f887c(0x218))/0x9)+-parseInt(_0x2f887c(0x213))/0xa+-parseInt(_0x2f887c(0x214))/0xb;if(_0x43f64c===_0x26ec33)break;else _0x4848c0['push'](_0x4848c0['shift']());}catch(_0x16d0a6){_0x4848c0['push'](_0x4848c0['shift']());}}}(a0_0x1024,0x1d8a6));Object[a0_0x35ad65(0x1ee)](exports,a0_0x35ad65(0x20d),{'value':!![]}),exports['lastRedactAudit']=void 0x0,exports[a0_0x35ad65(0x1eb)]=compressOutput,exports[a0_0x35ad65(0x238)]=rewriteCommand;const generic_1=require(a0_0x35ad65(0x228)),git_1=require(a0_0x35ad65(0x215)),python_1=require('./python'),js_1=require(a0_0x35ad65(0x216)),shell_1=require(a0_0x35ad65(0x1fa)),rust_1=require(a0_0x35ad65(0x1fc)),go_1=require('./go'),devops_1=require('./devops'),redactor_1=require('../redactor');function a0_0x1024(){const _0x1b638d=['filterGitDiff','git\x20log','filterPipInstall','trim\x20pnpm','compressOutput','lastRedactAudit','go\x20test','defineProperty','yadm\x20diff','trim\x20find','filterRuff','trim\x20read','trim\x20glab','jest','pnpm\x20install','filterDockerLogs','224935FVmdUA','filterCat','89406SWvyxb','./shell','38817XVwaLo','./rust','trim\x20gh','667536VMagmT','trim\x20npm','kubectl','\x20tree\x20','vitest','filterDockerImages','yadm\x20log','trim\x20','filterJestVitest','startsWith','npm\x20install','filterTree','filterDockerPs','filterGoVet','includes','__esModule','filterGitStatus','ruff\x20check','pip3\x20install','redactWithAudit','match','307470GWGwPJ','1686597oNPrCh','./git','./js','trim\x20tree','9TryyUx','filterGoTest','test','filterGitLog','pytest','git\x20show','trim\x20grep','filterKubectl','trim','2xoVfMe','yadm\x20status','npm\x20i\x20','filterGrep','trim\x20pytest','trim\x20ruff','trim\x20go','./generic','yarn\x20install','endsWith','filterNpmInstall','collapseDuplicates','stripAnsi','40vdXKsA','16048hrfatz','pattern','pip\x20install','filterPytest','git\x20status','text','go\x20vet','cargo\x20check','softTruncate','rewriteCommand','\x20ls\x20','trim\x20git','trim\x20ls','npm\x20test','ruff\x20','trim\x20npx','length','filterCargoTest','git\x20diff','yarn\x20test','98JZXQpC','filterFind'];a0_0x1024=function(){return _0x1b638d;};return a0_0x1024();}exports[a0_0x35ad65(0x1ec)]={'secretsFound':0x0,'secretTypes':[]};function compressOutput(_0x3a8512,_0x4e86e7,_0x53e6c7,_0x3e7ae8=!![]){const _0x2e94e8=a0_0x35ad65,_0x4d3974=_0x3a8512[_0x2e94e8(0x220)]();let _0x3eb082=_0x4e86e7;_0x53e6c7[_0x2e94e8(0x220)]()[_0x2e94e8(0x23f)]>0x0&&(_0x3eb082=_0x4e86e7+'\x0a'+_0x53e6c7);let _0xed321b=(0x0,generic_1[_0x2e94e8(0x22d)])(_0x3eb082);if(_0x3e7ae8){const _0x41ab29=redactor_1['redactor'][_0x2e94e8(0x211)](_0xed321b);_0xed321b=_0x41ab29[_0x2e94e8(0x234)],exports[_0x2e94e8(0x1ec)]={'secretsFound':_0x41ab29['secretsFound'],'secretTypes':_0x41ab29['secretTypes']};}else exports[_0x2e94e8(0x1ec)]={'secretsFound':0x0,'secretTypes':[]};const _0x3da087=_0x4d3974['toLowerCase']();try{if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x233))||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x222)))return(0x0,git_1[_0x2e94e8(0x20e)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x1e8))||_0x3da087['includes'](_0x2e94e8(0x204)))return(0x0,git_1[_0x2e94e8(0x21b)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x241))||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x21d))||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x1ef)))return(0x0,git_1[_0x2e94e8(0x245)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x21c))||_0x3da087['match'](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x2e94e8(0x232)])(_0xed321b);if(_0x3da087['includes'](_0x2e94e8(0x231))||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x210)))return(0x0,python_1[_0x2e94e8(0x1e9)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x20f))||_0x3da087['includes'](_0x2e94e8(0x23d)))return(0x0,devops_1[_0x2e94e8(0x1f1)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x208))||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x223))||_0x3da087['endsWith']('npm\x20i')||_0x3da087['includes'](_0x2e94e8(0x1f5))||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x229)))return(0x0,js_1[_0x2e94e8(0x22b)])(_0xed321b);if(_0x3da087['includes'](_0x2e94e8(0x1f4))||_0x3da087['includes'](_0x2e94e8(0x202)))return(0x0,js_1[_0x2e94e8(0x206)])(_0xed321b);if(_0x3da087['includes'](_0x2e94e8(0x23c))||_0x3da087[_0x2e94e8(0x20c)]('pnpm\x20test')||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x242))||_0x3da087[_0x2e94e8(0x20c)]('npm\x20run\x20test'))return(0x0,js_1[_0x2e94e8(0x206)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)]('cargo\x20test'))return(0x0,rust_1[_0x2e94e8(0x240)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)]('cargo\x20build')||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x236))||_0x3da087[_0x2e94e8(0x20c)]('cargo\x20clippy'))return(0x0,rust_1['filterCargoBuild'])(_0xed321b);if(_0x3da087['includes'](_0x2e94e8(0x1ed)))return(0x0,go_1[_0x2e94e8(0x219)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x235)))return(0x0,go_1[_0x2e94e8(0x20b)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x212)](/docker\s+ps/))return(0x0,devops_1[_0x2e94e8(0x20a)])(_0xed321b);if(_0x3da087['match'](/docker\s+images/))return(0x0,devops_1[_0x2e94e8(0x203)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x212)](/docker\s+logs/))return(0x0,devops_1[_0x2e94e8(0x1f6)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x200))){const _0x5abcf3=_0x3da087[_0x2e94e8(0x212)](/kubectl\s+(get|logs|describe|apply)/),_0xb1a3b1=_0x5abcf3?_0x5abcf3[0x1]:'get';return(0x0,devops_1[_0x2e94e8(0x21f)])(_0xed321b,_0xb1a3b1);}if(_0x3da087[_0x2e94e8(0x212)](/^(ls|dir)(\s|$)/)||_0x3da087['includes'](_0x2e94e8(0x239))||_0x3da087['endsWith']('\x20ls'))return(0x0,shell_1['filterLs'])(_0xed321b);if(_0x3da087[_0x2e94e8(0x212)](/^tree(\s|$)/)||_0x3da087[_0x2e94e8(0x20c)](_0x2e94e8(0x201))||_0x3da087[_0x2e94e8(0x22a)]('\x20tree'))return(0x0,shell_1[_0x2e94e8(0x209)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x212)](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1[_0x2e94e8(0x1f8)])(_0xed321b,_0x4d3974);if(_0x3da087['match'](/^find(\s|$)/))return(0x0,shell_1[_0x2e94e8(0x244)])(_0xed321b);if(_0x3da087[_0x2e94e8(0x212)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1[_0x2e94e8(0x224)])(_0xed321b);}catch(_0x59fd9e){}return _0xed321b=(0x0,generic_1[_0x2e94e8(0x22c)])(_0xed321b),_0xed321b=(0x0,generic_1[_0x2e94e8(0x237)])(_0xed321b,0x4e20),_0xed321b;}function a0_0x5586(_0x588f,_0x561ffe){_0x588f=_0x588f-0x1e8;const _0x102405=a0_0x1024();let _0x5586bd=_0x102405[_0x588f];return _0x5586bd;}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_0x35ad65(0x23a)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x35ad65(0x1fd)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x35ad65(0x1f3)},{'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_0x35ad65(0x1ea)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x35ad65(0x1ff)},{'pattern':/^npx\s+/,'prefix':a0_0x35ad65(0x23e)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x35ad65(0x1f2)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x35ad65(0x21e)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x35ad65(0x23b)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x35ad65(0x217)},{'pattern':/^find\s+/,'prefix':a0_0x35ad65(0x1f0)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':'trim\x20kubectl'},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x35ad65(0x225)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x35ad65(0x226)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x35ad65(0x227)}];function rewriteCommand(_0x2c2b99){const _0x5e9a22=a0_0x35ad65,_0x2f70c8=_0x2c2b99['trim']();if(_0x2f70c8[_0x5e9a22(0x207)](_0x5e9a22(0x205)))return _0x2f70c8;for(const _0x2ddd9f of REWRITE_RULES){if(_0x2ddd9f[_0x5e9a22(0x230)][_0x5e9a22(0x21a)](_0x2f70c8))return _0x5e9a22(0x205)+_0x2f70c8;}return _0x2f70c8;}
1
+ 'use strict';const a0_0x5c6426=a0_0x2812;(function(_0x356f7c,_0x357d54){const _0x2bf207=a0_0x2812,_0x55bf5e=_0x356f7c();while(!![]){try{const _0x186bb0=parseInt(_0x2bf207(0x1ce))/0x1*(-parseInt(_0x2bf207(0x1d6))/0x2)+parseInt(_0x2bf207(0x1ac))/0x3+parseInt(_0x2bf207(0x1b1))/0x4+parseInt(_0x2bf207(0x1b5))/0x5*(parseInt(_0x2bf207(0x1ae))/0x6)+parseInt(_0x2bf207(0x1ba))/0x7*(-parseInt(_0x2bf207(0x1f2))/0x8)+-parseInt(_0x2bf207(0x1bb))/0x9*(-parseInt(_0x2bf207(0x1df))/0xa)+-parseInt(_0x2bf207(0x1d1))/0xb*(-parseInt(_0x2bf207(0x19e))/0xc);if(_0x186bb0===_0x357d54)break;else _0x55bf5e['push'](_0x55bf5e['shift']());}catch(_0x15adf9){_0x55bf5e['push'](_0x55bf5e['shift']());}}}(a0_0x117e,0x2653a));Object[a0_0x5c6426(0x1b8)](exports,'__esModule',{'value':!![]}),exports[a0_0x5c6426(0x1c2)]=void 0x0,exports[a0_0x5c6426(0x1d8)]=compressOutput,exports[a0_0x5c6426(0x1e1)]=rewriteCommand;const generic_1=require(a0_0x5c6426(0x1bf)),git_1=require(a0_0x5c6426(0x1b4)),python_1=require('./python'),js_1=require('./js'),shell_1=require(a0_0x5c6426(0x1bc)),rust_1=require(a0_0x5c6426(0x1f3)),go_1=require(a0_0x5c6426(0x1b2)),devops_1=require(a0_0x5c6426(0x1cf)),redactor_1=require('../redactor');function a0_0x2812(_0x269786,_0x220534){_0x269786=_0x269786-0x199;const _0x117e81=a0_0x117e();let _0x2812ee=_0x117e81[_0x269786];return _0x2812ee;}exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]};function compressOutput(_0x416194,_0x8556a3,_0x421e97,_0x1affd5=!![]){const _0xa2b060=a0_0x5c6426,_0x223e7e=_0x416194[_0xa2b060(0x1ec)]();let _0x395a41=_0x8556a3;_0x421e97[_0xa2b060(0x1ec)]()[_0xa2b060(0x19a)]>0x0&&(_0x395a41=_0x8556a3+'\x0a'+_0x421e97);let _0x1584b8=(0x0,generic_1[_0xa2b060(0x1a7)])(_0x395a41);if(_0x1affd5){const _0x11a3f5=redactor_1[_0xa2b060(0x1e4)]['redactWithAudit'](_0x1584b8);_0x1584b8=_0x11a3f5[_0xa2b060(0x1e9)],exports[_0xa2b060(0x1c2)]={'secretsFound':_0x11a3f5[_0xa2b060(0x19d)],'secretTypes':_0x11a3f5[_0xa2b060(0x1e5)]};}else exports[_0xa2b060(0x1c2)]={'secretsFound':0x0,'secretTypes':[]};const _0x3e1c7d=_0x223e7e[_0xa2b060(0x1c3)]();try{if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1db))||_0x3e1c7d[_0xa2b060(0x1c7)]('yadm\x20status'))return(0x0,git_1[_0xa2b060(0x1b0)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)]('git\x20log')||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1eb)))return(0x0,git_1[_0xa2b060(0x1bd)])(_0x1584b8);if(_0x3e1c7d['includes']('git\x20diff')||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1f4))||_0x3e1c7d['includes'](_0xa2b060(0x1d0)))return(0x0,git_1[_0xa2b060(0x1f5)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1e2))||_0x3e1c7d[_0xa2b060(0x1e7)](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0xa2b060(0x1c0)])(_0x1584b8);if(_0x3e1c7d['includes'](_0xa2b060(0x1ad))||_0x3e1c7d['includes'](_0xa2b060(0x1a2)))return(0x0,python_1['filterPipInstall'])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x19c))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1b7)))return(0x0,devops_1[_0xa2b060(0x1c8)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1a6))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1b3))||_0x3e1c7d[_0xa2b060(0x1e3)](_0xa2b060(0x1cc))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1f9))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1e0)))return(0x0,js_1['filterNpmInstall'])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1d7))||_0x3e1c7d['includes'](_0xa2b060(0x1c5)))return(0x0,js_1['filterJestVitest'])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1a0))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1ab))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1a3))||_0x3e1c7d['includes'](_0xa2b060(0x19f)))return(0x0,js_1[_0xa2b060(0x1f8)])(_0x1584b8);if(_0x3e1c7d['includes']('cargo\x20test'))return(0x0,rust_1[_0xa2b060(0x1dc)])(_0x1584b8);if(_0x3e1c7d['includes'](_0xa2b060(0x1a1))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x19b))||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1f0)))return(0x0,rust_1[_0xa2b060(0x1ca)])(_0x1584b8);if(_0x3e1c7d['includes'](_0xa2b060(0x1de)))return(0x0,go_1[_0xa2b060(0x1cb)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1c9)))return(0x0,go_1[_0xa2b060(0x1ef)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1e7)](/docker\s+ps/))return(0x0,devops_1[_0xa2b060(0x1f7)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1e7)](/docker\s+images/))return(0x0,devops_1[_0xa2b060(0x199)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1e7)](/docker\s+logs/))return(0x0,devops_1[_0xa2b060(0x1b6)])(_0x1584b8);if(_0x3e1c7d['includes'](_0xa2b060(0x1d4))){const _0x548a4b=_0x3e1c7d['match'](/kubectl\s+(get|logs|describe|apply)/),_0x868f5=_0x548a4b?_0x548a4b[0x1]:_0xa2b060(0x1aa);return(0x0,devops_1['filterKubectl'])(_0x1584b8,_0x868f5);}if(_0x3e1c7d[_0xa2b060(0x1e7)](/^(ls|dir)(\s|$)/)||_0x3e1c7d['includes'](_0xa2b060(0x1dd))||_0x3e1c7d[_0xa2b060(0x1e3)](_0xa2b060(0x1ea)))return(0x0,shell_1[_0xa2b060(0x1be)])(_0x1584b8);if(_0x3e1c7d['match'](/^tree(\s|$)/)||_0x3e1c7d[_0xa2b060(0x1c7)](_0xa2b060(0x1a4))||_0x3e1c7d[_0xa2b060(0x1e3)](_0xa2b060(0x1c1)))return(0x0,shell_1[_0xa2b060(0x1cd)])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1e7)](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1[_0xa2b060(0x1a5)])(_0x1584b8,_0x223e7e);if(_0x3e1c7d['match'](/^find(\s|$)/))return(0x0,shell_1['filterFind'])(_0x1584b8);if(_0x3e1c7d[_0xa2b060(0x1e7)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1[_0xa2b060(0x1f6)])(_0x1584b8);}catch(_0x3b4480){}return _0x1584b8=(0x0,generic_1[_0xa2b060(0x1a8)])(_0x1584b8),_0x1584b8=(0x0,generic_1['softTruncate'])(_0x1584b8,0x4e20),_0x1584b8;}function a0_0x117e(){const _0x4cd823=['664BOpXPg','jest','compressOutput','trim\x20npm','trim\x20','git\x20status','filterCargoTest','\x20ls\x20','go\x20test','10sTJbqs','yarn\x20install','rewriteCommand','pytest','endsWith','redactor','secretTypes','trim\x20ls','match','trim\x20grep','text','\x20ls','yadm\x20log','trim','startsWith','trim\x20docker','filterGoVet','cargo\x20clippy','trim\x20glab','1130696pVsnUf','./rust','git\x20show','filterGitDiff','filterGrep','filterDockerPs','filterJestVitest','pnpm\x20install','filterDockerImages','length','cargo\x20check','ruff\x20check','secretsFound','3522576aNapWM','npm\x20run\x20test','npm\x20test','cargo\x20build','pip3\x20install','yarn\x20test','\x20tree\x20','filterCat','npm\x20install','stripAnsi','collapseDuplicates','trim\x20npx','get','pnpm\x20test','154569YTDogk','pip\x20install','138DXEyxk','trim\x20pnpm','filterGitStatus','214704EfLaXh','./go','npm\x20i\x20','./git','38965UKSCxP','filterDockerLogs','ruff\x20','defineProperty','trim\x20pytest','7FIoDpu','249921wKALAP','./shell','filterGitLog','filterLs','./generic','filterPytest','\x20tree','lastRedactAudit','toLowerCase','trim\x20pip','vitest','test','includes','filterRuff','go\x20vet','filterCargoBuild','filterGoTest','npm\x20i','filterTree','926bqtnWQ','./devops','yadm\x20diff','11mveJrb','trim\x20kubectl','trim\x20find','kubectl','trim\x20ruff'];a0_0x117e=function(){return _0x4cd823;};return a0_0x117e();}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':'trim\x20git'},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x5c6426(0x1f1)},{'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_0x5c6426(0x1af)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x5c6426(0x1d9)},{'pattern':/^npx\s+/,'prefix':a0_0x5c6426(0x1a9)},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x5c6426(0x1e8)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x5c6426(0x1e6)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x5c6426(0x1d3)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x5c6426(0x1ee)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x5c6426(0x1d2)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x5c6426(0x1b9)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x5c6426(0x1d5)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x5c6426(0x1c4)},{'pattern':/^go\s+(test|build|vet)/,'prefix':'trim\x20go'}];function rewriteCommand(_0x53cced){const _0x482627=a0_0x5c6426,_0x2dcfbe=_0x53cced['trim']();if(_0x2dcfbe[_0x482627(0x1ed)]('trim\x20'))return _0x2dcfbe;for(const _0x25181f of REWRITE_RULES){if(_0x25181f['pattern'][_0x482627(0x1c6)](_0x2dcfbe))return _0x482627(0x1da)+_0x2dcfbe;}return _0x2dcfbe;}