trimprompt 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  It intercepts common shell tool executions, strips ANSI coloring, removes redundant boilerplate, collapses duplicate logs, and applies specialized filters for `git`, `npm`/`pnpm`/`yarn`, `pytest`, `jest`, `pip`, and more—all before the outputs reach your AI agent's context window.
6
6
 
7
+ ![TrimPrompt Local Developer Dashboard](dashboard.png)
8
+
7
9
  ---
8
10
 
9
11
  ## Features
package/cache.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x33ca43=a0_0x4f4f;(function(_0x465de0,_0x5cc751){const _0x36f622=a0_0x4f4f,_0x47e33b=_0x465de0();while(!![]){try{const _0x4cfa08=parseInt(_0x36f622(0xaa))/0x1*(parseInt(_0x36f622(0xc5))/0x2)+parseInt(_0x36f622(0x9b))/0x3+-parseInt(_0x36f622(0x97))/0x4+-parseInt(_0x36f622(0x8c))/0x5+parseInt(_0x36f622(0x92))/0x6*(parseInt(_0x36f622(0xbd))/0x7)+parseInt(_0x36f622(0xb4))/0x8*(-parseInt(_0x36f622(0x99))/0x9)+-parseInt(_0x36f622(0xc0))/0xa*(-parseInt(_0x36f622(0xb8))/0xb);if(_0x4cfa08===_0x5cc751)break;else _0x47e33b['push'](_0x47e33b['shift']());}catch(_0x472df8){_0x47e33b['push'](_0x47e33b['shift']());}}}(a0_0x542a,0x4f89b));var __createBinding=this&&this[a0_0x33ca43(0xb3)]||(Object[a0_0x33ca43(0x91)]?function(_0x964a1b,_0xb59926,_0x49f131,_0x413d31){const _0x519a55=a0_0x33ca43;if(_0x413d31===undefined)_0x413d31=_0x49f131;var _0x2027d1=Object[_0x519a55(0x8d)](_0xb59926,_0x49f131);(!_0x2027d1||('get'in _0x2027d1?!_0xb59926['__esModule']:_0x2027d1[_0x519a55(0xb9)]||_0x2027d1[_0x519a55(0x93)]))&&(_0x2027d1={'enumerable':!![],'get':function(){return _0xb59926[_0x49f131];}}),Object[_0x519a55(0x80)](_0x964a1b,_0x413d31,_0x2027d1);}:function(_0x384cb8,_0x39b91b,_0x5b7c29,_0x58595e){if(_0x58595e===undefined)_0x58595e=_0x5b7c29;_0x384cb8[_0x58595e]=_0x39b91b[_0x5b7c29];}),__setModuleDefault=this&&this[a0_0x33ca43(0x98)]||(Object[a0_0x33ca43(0x91)]?function(_0x2a09ce,_0x3b72a1){const _0x17741f=a0_0x33ca43;Object[_0x17741f(0x80)](_0x2a09ce,_0x17741f(0xad),{'enumerable':!![],'value':_0x3b72a1});}:function(_0x2f13f6,_0x46e819){const _0x18bed0=a0_0x33ca43;_0x2f13f6[_0x18bed0(0xad)]=_0x46e819;}),__importStar=this&&this['__importStar']||(function(){var _0x5b6a11=function(_0x3da987){return _0x5b6a11=Object['getOwnPropertyNames']||function(_0x2df84c){const _0x12f991=a0_0x4f4f;var _0x5c1dcd=[];for(var _0x3ee7b3 in _0x2df84c)if(Object[_0x12f991(0xae)][_0x12f991(0x83)]['call'](_0x2df84c,_0x3ee7b3))_0x5c1dcd[_0x5c1dcd['length']]=_0x3ee7b3;return _0x5c1dcd;},_0x5b6a11(_0x3da987);};return function(_0x11c1cc){const _0x57384b=a0_0x4f4f;if(_0x11c1cc&&_0x11c1cc[_0x57384b(0xaf)])return _0x11c1cc;var _0x2e9f88={};if(_0x11c1cc!=null){for(var _0x52b289=_0x5b6a11(_0x11c1cc),_0x4d1531=0x0;_0x4d1531<_0x52b289['length'];_0x4d1531++)if(_0x52b289[_0x4d1531]!==_0x57384b(0xad))__createBinding(_0x2e9f88,_0x11c1cc,_0x52b289[_0x4d1531]);}return __setModuleDefault(_0x2e9f88,_0x11c1cc),_0x2e9f88;};}());function a0_0x4f4f(_0x273a40,_0x5b9f48){const _0x542a0e=a0_0x542a();return a0_0x4f4f=function(_0x4f4fba,_0x59ef46){_0x4f4fba=_0x4f4fba-0x80;let _0x435efd=_0x542a0e[_0x4f4fba];return _0x435efd;},a0_0x4f4f(_0x273a40,_0x5b9f48);}Object[a0_0x33ca43(0x80)](exports,a0_0x33ca43(0xaf),{'value':!![]}),exports['dedup']=dedup;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x33ca43(0xc6))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x33ca43(0xa0))),CACHE_DIR=path[a0_0x33ca43(0x85)](os[a0_0x33ca43(0x94)](),'.trimprompt'),CACHE_FILE=path[a0_0x33ca43(0x85)](CACHE_DIR,a0_0x33ca43(0x9a)),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(_0x55ca62){const _0x4a4535=a0_0x33ca43,_0x566735=_0x55ca62[_0x4a4535(0x95)]()[_0x4a4535(0x82)]();if(_0x566735[_0x4a4535(0xbe)](/^(cat|head|tail|read|bat)\s/))return _0x4a4535(0x89);if(_0x566735[_0x4a4535(0x9f)](_0x4a4535(0xa7))||_0x566735[_0x4a4535(0x9f)](_0x4a4535(0xbf)))return _0x4a4535(0xbb);if(_0x566735['includes'](_0x4a4535(0xa8))||_0x566735['includes'](_0x4a4535(0x8a)))return _0x4a4535(0xb5);if(_0x566735['includes'](_0x4a4535(0xac))||_0x566735[_0x4a4535(0x9f)](_0x4a4535(0xa4)))return _0x4a4535(0xb6);if(_0x566735[_0x4a4535(0xbe)](/^(ls|dir)(\s|$)/)||_0x566735[_0x4a4535(0x9f)](_0x4a4535(0x86))||_0x566735['endsWith']('\x20ls'))return'ls';if(_0x566735['match'](/^tree(\s|$)/)||_0x566735[_0x4a4535(0x9f)]('\x20tree\x20')||_0x566735['endsWith'](_0x4a4535(0xa1)))return _0x4a4535(0x88);if(_0x566735[_0x4a4535(0xbe)](/docker\s+ps/))return _0x4a4535(0xc7);if(_0x566735[_0x4a4535(0xbe)](/docker\s+images/))return'docker-images';if(_0x566735[_0x4a4535(0x9f)](_0x4a4535(0xb7))||_0x566735[_0x4a4535(0x9f)](_0x4a4535(0x9d)))return'kubectl';if(_0x566735[_0x4a4535(0x9f)]('ruff\x20check')||_0x566735['includes'](_0x4a4535(0xc1)))return'ruff';if(_0x566735[_0x4a4535(0x9f)](_0x4a4535(0x84)))return'go-vet';return'';}function md5(_0x2109ea){const _0x26e1aa=a0_0x33ca43;return crypto[_0x26e1aa(0xa9)](_0x26e1aa(0xa6))[_0x26e1aa(0x96)](_0x2109ea)['digest'](_0x26e1aa(0xc3));}function a0_0x542a(){const _0x342b37=['round','[cached\x20—\x20unchanged\x20since\x20','length','create','6VgKUcS','configurable','homedir','trim','update','2399760DstMaR','__setModuleDefault','459KypOyb','cache.json','322836bCcIyz','\x20chars','kubectl\x20describe','stringify','includes','crypto','\x20tree','\x20lines','docker','yadm\x20show','\x20entries','md5','git\x20status','git\x20log','createHash','67061PWfFGS','readFileSync','git\x20show','default','prototype','__esModule','cwd','writeFileSync','timestamp','__createBinding','100840ARreml','git-log','git-show','kubectl\x20get','949828ThIvBc','writable','parse','git-status','\x20lines,\x20','3283406HZPpsx','match','yadm\x20status','70zNLKBw','ruff\x20','sort','hex','mkdirSync','18XWxlKN','path','docker-ps','utf8','defineProperty','startsWith','toLowerCase','hasOwnProperty','go\x20vet','join','\x20ls\x20','existsSync','tree','file','yadm\x20log','split','1080365UKaQwy','getOwnPropertyDescriptor'];a0_0x542a=function(){return _0x342b37;};return a0_0x542a();}function loadStore(){const _0x5f5cf8=a0_0x33ca43;try{if(fs[_0x5f5cf8(0x87)](CACHE_FILE))return JSON[_0x5f5cf8(0xba)](fs[_0x5f5cf8(0xab)](CACHE_FILE,_0x5f5cf8(0xc8)));}catch{}return{};}function saveStore(_0x2e7a6){const _0x58b638=a0_0x33ca43;try{if(!fs[_0x58b638(0x87)](CACHE_DIR))fs[_0x58b638(0xc4)](CACHE_DIR,{'recursive':!![]});const _0x2b82f9=Object['keys'](_0x2e7a6);if(_0x2b82f9[_0x58b638(0x90)]>MAX_ENTRIES){const _0x45c7bf=_0x2b82f9[_0x58b638(0xc2)]((_0xbfd448,_0x3dcb37)=>_0x2e7a6[_0xbfd448][_0x58b638(0xb2)]-_0x2e7a6[_0x3dcb37]['timestamp']);for(const _0x464183 of _0x45c7bf['slice'](0x0,_0x2b82f9['length']-MAX_ENTRIES)){delete _0x2e7a6[_0x464183];}}fs[_0x58b638(0xb1)](CACHE_FILE,JSON[_0x58b638(0x9e)](_0x2e7a6),_0x58b638(0xc8));}catch{}}function buildSummary(_0x17f248,_0x7c18dd){const _0x54be7a=a0_0x33ca43,_0x4ad531=_0x17f248[_0x54be7a(0x8b)]('\x0a')['length'],_0x37ff04=_0x17f248[_0x54be7a(0x90)];if(_0x7c18dd===_0x54be7a(0x89))return _0x4ad531+_0x54be7a(0xbc)+_0x37ff04+_0x54be7a(0x9c);if(_0x7c18dd===_0x54be7a(0xbb))return _0x4ad531+_0x54be7a(0xa2);if(_0x7c18dd===_0x54be7a(0xb5))return _0x4ad531+_0x54be7a(0xa5);if(_0x7c18dd[_0x54be7a(0x81)](_0x54be7a(0xa3)))return _0x4ad531+'\x20lines';return _0x4ad531+_0x54be7a(0xbc)+_0x37ff04+_0x54be7a(0x9c);}function dedup(_0x5f0aa4,_0x49f066){const _0x24af73=a0_0x33ca43;try{const _0x1d6641=classifyCommand(_0x5f0aa4);if(!_0x1d6641)return null;const _0x5ac6b6=TTL_SECONDS[_0x1d6641];if(!_0x5ac6b6)return null;const _0x349563=process[_0x24af73(0xb0)](),_0x493503=md5(_0x349563+'::'+_0x5f0aa4[_0x24af73(0x95)]()),_0x4d9ff6=md5(_0x49f066),_0x664428=Date['now'](),_0x124f78=loadStore(),_0x350627=_0x124f78[_0x493503];if(_0x350627&&_0x350627['hash']===_0x4d9ff6&&_0x664428-_0x350627['timestamp']<_0x5ac6b6*0x3e8){const _0x25dc25=Math[_0x24af73(0x8e)]((_0x664428-_0x350627[_0x24af73(0xb2)])/0x3e8);return _0x24af73(0x8f)+_0x25dc25+'s\x20ago,\x20'+_0x350627['summary']+']';}_0x124f78[_0x493503]={'hash':_0x4d9ff6,'summary':buildSummary(_0x49f066,_0x1d6641),'timestamp':_0x664428,'chars':_0x49f066['length']},saveStore(_0x124f78);}catch{}return null;}
1
+ 'use strict';const a0_0x513148=a0_0xfe81;(function(_0x4cb4a4,_0xc24184){const _0xcd7652=a0_0xfe81,_0x5ad16b=_0x4cb4a4();while(!![]){try{const _0x2eb3f6=-parseInt(_0xcd7652(0xbf))/0x1+-parseInt(_0xcd7652(0xc4))/0x2+-parseInt(_0xcd7652(0xaf))/0x3+-parseInt(_0xcd7652(0x91))/0x4+parseInt(_0xcd7652(0x95))/0x5+-parseInt(_0xcd7652(0xc3))/0x6*(-parseInt(_0xcd7652(0xa7))/0x7)+parseInt(_0xcd7652(0xc9))/0x8;if(_0x2eb3f6===_0xc24184)break;else _0x5ad16b['push'](_0x5ad16b['shift']());}catch(_0x201a2d){_0x5ad16b['push'](_0x5ad16b['shift']());}}}(a0_0x4de1,0x1c930));function a0_0x4de1(){const _0x570c43=['timestamp','length','129863ehYDTJ','summary','digest','docker-images','7122wcmeZs','176800wUFoqY','dedup','docker-ps','hex','now','2885920zHVqYr','git-status','toLowerCase','call','includes','round','createHash','__setModuleDefault','kubectl','readFileSync','git-show','slice','sort','docker','join','utf8','mkdirSync','git\x20status','243584HBEfuU','\x20lines,\x20','hash','match','1145775PQvhLb','homedir','\x20ls\x20','stringify','[cached\x20—\x20unchanged\x20since\x20','split','update','s\x20ago,\x20','\x20chars','keys','defineProperty','\x20ls','existsSync','yadm\x20show','.trimprompt','create','writeFileSync','ruff\x20','126PtXpVV','ruff','ruff\x20check','__esModule','tree','go\x20vet','crypto','parse','645186XQhfWo','__createBinding','get','git\x20log','yadm\x20log','\x20tree\x20','default','\x20entries','hasOwnProperty','md5','trim','yadm\x20status','prototype','git-log'];a0_0x4de1=function(){return _0x570c43;};return a0_0x4de1();}function a0_0xfe81(_0x4ce3f5,_0x35eee0){_0x4ce3f5=_0x4ce3f5-0x91;const _0x4de172=a0_0x4de1();let _0xfe81fe=_0x4de172[_0x4ce3f5];return _0xfe81fe;}var __createBinding=this&&this[a0_0x513148(0xb0)]||(Object[a0_0x513148(0xa4)]?function(_0x2076ca,_0x401510,_0x5128dc,_0x30dba6){const _0x1a1be5=a0_0x513148;if(_0x30dba6===undefined)_0x30dba6=_0x5128dc;var _0x2c00c3=Object['getOwnPropertyDescriptor'](_0x401510,_0x5128dc);(!_0x2c00c3||(_0x1a1be5(0xb1)in _0x2c00c3?!_0x401510[_0x1a1be5(0xaa)]:_0x2c00c3['writable']||_0x2c00c3['configurable']))&&(_0x2c00c3={'enumerable':!![],'get':function(){return _0x401510[_0x5128dc];}}),Object[_0x1a1be5(0x9f)](_0x2076ca,_0x30dba6,_0x2c00c3);}:function(_0x5042a2,_0x395562,_0x279568,_0x314c00){if(_0x314c00===undefined)_0x314c00=_0x279568;_0x5042a2[_0x314c00]=_0x395562[_0x279568];}),__setModuleDefault=this&&this[a0_0x513148(0xd0)]||(Object[a0_0x513148(0xa4)]?function(_0x3d4fac,_0x2e67ac){const _0x5d5462=a0_0x513148;Object[_0x5d5462(0x9f)](_0x3d4fac,'default',{'enumerable':!![],'value':_0x2e67ac});}:function(_0x329f9c,_0x116d1d){const _0x2ff24e=a0_0x513148;_0x329f9c[_0x2ff24e(0xb5)]=_0x116d1d;}),__importStar=this&&this['__importStar']||(function(){var _0x4c94a9=function(_0x2614f5){return _0x4c94a9=Object['getOwnPropertyNames']||function(_0xd62738){const _0x206bb5=a0_0xfe81;var _0x4d74a5=[];for(var _0x1e4a98 in _0xd62738)if(Object[_0x206bb5(0xbb)][_0x206bb5(0xb7)][_0x206bb5(0xcc)](_0xd62738,_0x1e4a98))_0x4d74a5[_0x4d74a5[_0x206bb5(0xbe)]]=_0x1e4a98;return _0x4d74a5;},_0x4c94a9(_0x2614f5);};return function(_0x2bb2b5){const _0x597e7d=a0_0xfe81;if(_0x2bb2b5&&_0x2bb2b5[_0x597e7d(0xaa)])return _0x2bb2b5;var _0x1f341f={};if(_0x2bb2b5!=null){for(var _0xc7bfbb=_0x4c94a9(_0x2bb2b5),_0x3ef9fd=0x0;_0x3ef9fd<_0xc7bfbb['length'];_0x3ef9fd++)if(_0xc7bfbb[_0x3ef9fd]!==_0x597e7d(0xb5))__createBinding(_0x1f341f,_0x2bb2b5,_0xc7bfbb[_0x3ef9fd]);}return __setModuleDefault(_0x1f341f,_0x2bb2b5),_0x1f341f;};}());Object[a0_0x513148(0x9f)](exports,'__esModule',{'value':!![]}),exports[a0_0x513148(0xc5)]=dedup;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),crypto=__importStar(require(a0_0x513148(0xad))),CACHE_DIR=path[a0_0x513148(0xd7)](os[a0_0x513148(0x96)](),a0_0x513148(0xa3)),CACHE_FILE=path[a0_0x513148(0xd7)](CACHE_DIR,'cache.json'),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(_0x2d3f4d){const _0x421692=a0_0x513148,_0xb0a19d=_0x2d3f4d[_0x421692(0xb9)]()[_0x421692(0xcb)]();if(_0xb0a19d[_0x421692(0x94)](/^(cat|head|tail|read|bat)\s/))return'file';if(_0xb0a19d['includes'](_0x421692(0xda))||_0xb0a19d['includes'](_0x421692(0xba)))return _0x421692(0xca);if(_0xb0a19d[_0x421692(0xcd)](_0x421692(0xb2))||_0xb0a19d[_0x421692(0xcd)](_0x421692(0xb3)))return _0x421692(0xbc);if(_0xb0a19d[_0x421692(0xcd)]('git\x20show')||_0xb0a19d['includes'](_0x421692(0xa2)))return _0x421692(0xd3);if(_0xb0a19d['match'](/^(ls|dir)(\s|$)/)||_0xb0a19d[_0x421692(0xcd)](_0x421692(0x97))||_0xb0a19d['endsWith'](_0x421692(0xa0)))return'ls';if(_0xb0a19d[_0x421692(0x94)](/^tree(\s|$)/)||_0xb0a19d[_0x421692(0xcd)](_0x421692(0xb4))||_0xb0a19d['endsWith']('\x20tree'))return _0x421692(0xab);if(_0xb0a19d[_0x421692(0x94)](/docker\s+ps/))return _0x421692(0xc6);if(_0xb0a19d['match'](/docker\s+images/))return _0x421692(0xc2);if(_0xb0a19d[_0x421692(0xcd)]('kubectl\x20get')||_0xb0a19d[_0x421692(0xcd)]('kubectl\x20describe'))return _0x421692(0xd1);if(_0xb0a19d[_0x421692(0xcd)](_0x421692(0xa9))||_0xb0a19d[_0x421692(0xcd)](_0x421692(0xa6)))return _0x421692(0xa8);if(_0xb0a19d[_0x421692(0xcd)](_0x421692(0xac)))return'go-vet';return'';}function md5(_0x243e53){const _0x500357=a0_0x513148;return crypto[_0x500357(0xcf)](_0x500357(0xb8))[_0x500357(0x9b)](_0x243e53)[_0x500357(0xc1)](_0x500357(0xc7));}function loadStore(){const _0x8d5676=a0_0x513148;try{if(fs['existsSync'](CACHE_FILE))return JSON[_0x8d5676(0xae)](fs[_0x8d5676(0xd2)](CACHE_FILE,_0x8d5676(0xd8)));}catch{}return{};}function saveStore(_0x455314){const _0x1bc31d=a0_0x513148;try{if(!fs[_0x1bc31d(0xa1)](CACHE_DIR))fs[_0x1bc31d(0xd9)](CACHE_DIR,{'recursive':!![]});const _0x5b42e4=Object[_0x1bc31d(0x9e)](_0x455314);if(_0x5b42e4['length']>MAX_ENTRIES){const _0x2300da=_0x5b42e4[_0x1bc31d(0xd5)]((_0x5a8d58,_0x44d828)=>_0x455314[_0x5a8d58][_0x1bc31d(0xbd)]-_0x455314[_0x44d828]['timestamp']);for(const _0x436a62 of _0x2300da[_0x1bc31d(0xd4)](0x0,_0x5b42e4[_0x1bc31d(0xbe)]-MAX_ENTRIES)){delete _0x455314[_0x436a62];}}fs[_0x1bc31d(0xa5)](CACHE_FILE,JSON[_0x1bc31d(0x98)](_0x455314),_0x1bc31d(0xd8));}catch{}}function buildSummary(_0x5d1cb2,_0x3cd5da){const _0x3e2675=a0_0x513148,_0x47df78=_0x5d1cb2[_0x3e2675(0x9a)]('\x0a')[_0x3e2675(0xbe)],_0x33bbf5=_0x5d1cb2[_0x3e2675(0xbe)];if(_0x3cd5da==='file')return _0x47df78+_0x3e2675(0x92)+_0x33bbf5+'\x20chars';if(_0x3cd5da===_0x3e2675(0xca))return _0x47df78+'\x20lines';if(_0x3cd5da===_0x3e2675(0xbc))return _0x47df78+_0x3e2675(0xb6);if(_0x3cd5da['startsWith'](_0x3e2675(0xd6)))return _0x47df78+'\x20lines';return _0x47df78+'\x20lines,\x20'+_0x33bbf5+_0x3e2675(0x9d);}function dedup(_0x273bce,_0xf9d837){const _0x1e0458=a0_0x513148;try{const _0x47279b=classifyCommand(_0x273bce);if(!_0x47279b)return null;const _0x1fef8b=TTL_SECONDS[_0x47279b];if(!_0x1fef8b)return null;const _0x2c816a=process['cwd'](),_0x397f49=md5(_0x2c816a+'::'+_0x273bce[_0x1e0458(0xb9)]()),_0x4b4871=md5(_0xf9d837),_0x592606=Date[_0x1e0458(0xc8)](),_0x29b7b3=loadStore(),_0x43745b=_0x29b7b3[_0x397f49];if(_0x43745b&&_0x43745b[_0x1e0458(0x93)]===_0x4b4871&&_0x592606-_0x43745b[_0x1e0458(0xbd)]<_0x1fef8b*0x3e8){const _0x3941e5=Math[_0x1e0458(0xce)]((_0x592606-_0x43745b[_0x1e0458(0xbd)])/0x3e8);return _0x1e0458(0x99)+_0x3941e5+_0x1e0458(0x9c)+_0x43745b[_0x1e0458(0xc0)]+']';}_0x29b7b3[_0x397f49]={'hash':_0x4b4871,'summary':buildSummary(_0xf9d837,_0x47279b),'timestamp':_0x592606,'chars':_0xf9d837['length']},saveStore(_0x29b7b3);}catch{}return null;}
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a0_0x210b40=a0_0x8c99;(function(_0x423daf,_0x48eb70){const _0x573e43=a0_0x8c99,_0x84915a=_0x423daf();while(!![]){try{const _0x17bd8e=-parseInt(_0x573e43(0xdc))/0x1+parseInt(_0x573e43(0xfa))/0x2*(-parseInt(_0x573e43(0xa6))/0x3)+parseInt(_0x573e43(0xb9))/0x4*(-parseInt(_0x573e43(0x8f))/0x5)+-parseInt(_0x573e43(0x93))/0x6+parseInt(_0x573e43(0x68))/0x7+-parseInt(_0x573e43(0xf8))/0x8*(-parseInt(_0x573e43(0xc4))/0x9)+-parseInt(_0x573e43(0xec))/0xa*(-parseInt(_0x573e43(0xc2))/0xb);if(_0x17bd8e===_0x48eb70)break;else _0x84915a['push'](_0x84915a['shift']());}catch(_0x1e3fd7){_0x84915a['push'](_0x84915a['shift']());}}}(a0_0x33ba,0xe1532));function a0_0x8c99(_0x5863c6,_0x111905){const _0x33ba20=a0_0x33ba();return a0_0x8c99=function(_0x8c99ad,_0x228d41){_0x8c99ad=_0x8c99ad-0x67;let _0xcb0838=_0x33ba20[_0x8c99ad];return _0xcb0838;},a0_0x8c99(_0x5863c6,_0x111905);}var __createBinding=this&&this[a0_0x210b40(0xdf)]||(Object[a0_0x210b40(0xf0)]?function(_0x7405f5,_0x262cb3,_0x3129fc,_0x1c15e0){const _0x479e8a=a0_0x210b40;if(_0x1c15e0===undefined)_0x1c15e0=_0x3129fc;var _0x33882b=Object[_0x479e8a(0xc1)](_0x262cb3,_0x3129fc);(!_0x33882b||(_0x479e8a(0xe3)in _0x33882b?!_0x262cb3['__esModule']:_0x33882b[_0x479e8a(0xe7)]||_0x33882b[_0x479e8a(0xef)]))&&(_0x33882b={'enumerable':!![],'get':function(){return _0x262cb3[_0x3129fc];}}),Object[_0x479e8a(0x86)](_0x7405f5,_0x1c15e0,_0x33882b);}:function(_0x25bcae,_0xf025c4,_0x2b7ecc,_0x111ba8){if(_0x111ba8===undefined)_0x111ba8=_0x2b7ecc;_0x25bcae[_0x111ba8]=_0xf025c4[_0x2b7ecc];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x210b40(0xf0)]?function(_0x4b3871,_0x1166fc){const _0x4cfc60=a0_0x210b40;Object[_0x4cfc60(0x86)](_0x4b3871,_0x4cfc60(0x105),{'enumerable':!![],'value':_0x1166fc});}:function(_0x1670d1,_0xff892b){const _0x1f3ac9=a0_0x210b40;_0x1670d1[_0x1f3ac9(0x105)]=_0xff892b;}),__importStar=this&&this[a0_0x210b40(0xae)]||(function(){var _0x527123=function(_0x3f267a){const _0x222995=a0_0x8c99;return _0x527123=Object[_0x222995(0xbd)]||function(_0x371edb){const _0x11a78f=_0x222995;var _0x23b23f=[];for(var _0x3da2d2 in _0x371edb)if(Object['prototype'][_0x11a78f(0xa2)][_0x11a78f(0x7b)](_0x371edb,_0x3da2d2))_0x23b23f[_0x23b23f[_0x11a78f(0x74)]]=_0x3da2d2;return _0x23b23f;},_0x527123(_0x3f267a);};return function(_0xbe9b1a){const _0x14e8b0=a0_0x8c99;if(_0xbe9b1a&&_0xbe9b1a[_0x14e8b0(0xaa)])return _0xbe9b1a;var _0x1529e7={};if(_0xbe9b1a!=null){for(var _0x4d09c1=_0x527123(_0xbe9b1a),_0x226ad8=0x0;_0x226ad8<_0x4d09c1[_0x14e8b0(0x74)];_0x226ad8++)if(_0x4d09c1[_0x226ad8]!=='default')__createBinding(_0x1529e7,_0xbe9b1a,_0x4d09c1[_0x226ad8]);}return __setModuleDefault(_0x1529e7,_0xbe9b1a),_0x1529e7;};}());Object['defineProperty'](exports,a0_0x210b40(0xaa),{'value':!![]});const commander_1=require(a0_0x210b40(0x7a)),executor_1=require(a0_0x210b40(0x6b)),filters_1=require(a0_0x210b40(0x76)),tracker_1=require('./tracker'),cache_1=require(a0_0x210b40(0xf2)),shims_1=require(a0_0x210b40(0xca)),dashboard_1=require(a0_0x210b40(0xed)),program=new commander_1[(a0_0x210b40(0x81))]();function a0_0x33ba(){const _0x262bbb=['getConfig','\x20=\x20','Config\x20set\x20','install\x20or\x20uninstall','-10','stats','set','1.0.0','config\x20parameter\x20name','1609971RcYdVH','Reduction\x20Rate:\x20\x20\x20\x20','exitCode','__createBinding','model_name','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','description','get','args','compressed_cost_usd','action','writable','catch','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','Install\x20or\x20uninstall\x20system\x20command\x20shims','total_tokens_saved','1656840zDOnqE','./dashboard','error','configurable','create','savings_percentage','./cache','uninstallShims','<key>','--help','--branch','shims','15968IcbQJl','mcp','95818OpVDiP','yarn','false','Arguments\x20for\x20the\x20target\x20MCP\x20server','Port\x20to\x20run\x20the\x20dashboard\x20on','tracker','executeCommand','true','<commandLine>','argv','=============================================\x0a','default','exit','write','-p,\x20--port\x20<number>','then','3237038ChCZCQ','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','./executor','claude-3-5-sonnet','--version','push','TRIMPROMPT_DISABLED','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','help','<action>','node','length','Show\x20token\x20and\x20cost\x20savings\x20summary','./filters','-sb','-m,\x20--model\x20<string>','modelcontextprotocol','commander','call','includes','trim','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','env','\x20(before\x20Shave)','Command','@modelcontextprotocol/','alias','command','stderr','defineProperty','startsWith','mcp-proxy','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','toLocaleString','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','port','uninstall','redaction_enabled','370BFFeKd','win32','startDashboard','model','9813378VofcCZ','npx','[server-args...]','name','message','=============================================','test','compressOutput','toFixed','--porcelain','--format','version','\x20USD','Error:\x20Value\x20required\x20for\x20set\x20action','log','hasOwnProperty','money_saved_usd','status','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','6lGsrlV','config','slice','value\x20to\x20set','__esModule','some','-50','mcp-server','__importStar','--max-count','yadm','cmd','toLowerCase','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','server-mcp','argument','dashboard','stdout','--no-merges','368LigDIr','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','Start\x20the\x20local\x20developer\x20dashboard','./mcp','getOwnPropertyNames','join','platform','raw_cost_usd','getOwnPropertyDescriptor','198StpoUh','--merges','3726UFQsHU','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','pnpm','resolve','every','Command\x20line\x20to\x20evaluate','./shims','proxy','\x20(after\x20Shave)','Estimated\x20Cost:\x20\x20\x20\x20$','bun','total_compressed_tokens','npm','parse','total_raw_tokens'];a0_0x33ba=function(){return _0x262bbb;};return a0_0x33ba();}function isDisabled(){const _0x43aa3c=a0_0x210b40;return process[_0x43aa3c(0x7f)][_0x43aa3c(0x6f)]==='1';}function adjustCommandArgs(_0x168b73,_0x1a7da5){const _0x585998=a0_0x210b40,_0x1542ad=_0x168b73['toLowerCase']();if(_0x1542ad==='git'||_0x1542ad===_0x585998(0xb0)){const _0x3891ae=_0x1a7da5[0x0];if(_0x3891ae===_0x585998(0xa4)){const _0x397612=_0x1a7da5[_0x585998(0xa8)](0x1),_0x477a55=_0x397612[_0x585998(0x74)]===0x0||_0x397612[_0x585998(0xc8)](_0x4071ba=>{const _0x7d1764=_0x585998;return _0x4071ba==='-b'||_0x4071ba===_0x7d1764(0xf6)||_0x4071ba===_0x7d1764(0x77)||_0x4071ba==='-bs'||_0x4071ba==='-s'||_0x4071ba==='--short';});if(_0x477a55)return{'cmd':_0x168b73,'args':[_0x585998(0xa4),_0x585998(0x9c),'-b']};}else{if(_0x3891ae===_0x585998(0xa1)){const _0x46b0ac=_0x1a7da5['slice'](0x1),_0x142441=_0x46b0ac['some'](_0x5618aa=>_0x5618aa[_0x585998(0x87)]('--oneline')||_0x5618aa['startsWith']('--pretty')||_0x5618aa[_0x585998(0x87)](_0x585998(0x9d))),_0x3275d2=_0x46b0ac[_0x585998(0xab)](_0x47690e=>_0x47690e[_0x585998(0x87)]('-')&&/^\d+$/[_0x585998(0x99)](_0x47690e[_0x585998(0xa8)](0x1))||_0x47690e==='-n'||_0x47690e['startsWith'](_0x585998(0xaf))),_0x5c2fc1=[..._0x1a7da5];if(!_0x142441){const _0x55d3ea=_0x585998(0xb3);_0x5c2fc1[_0x585998(0x6e)](process[_0x585998(0xbf)]===_0x585998(0x90)?'\x22'+_0x55d3ea+'\x22':_0x55d3ea);}!_0x3275d2&&(_0x142441?_0x5c2fc1['push'](_0x585998(0xac)):_0x5c2fc1['push'](_0x585998(0xd7)));const _0x111de7=_0x46b0ac[_0x585998(0xab)](_0x439b43=>_0x439b43===_0x585998(0xc3)||_0x439b43===_0x585998(0xb8)||_0x439b43['startsWith']('--min-parents'));return!_0x111de7&&!_0x3275d2&&_0x5c2fc1[_0x585998(0x6e)](_0x585998(0xb8)),{'cmd':_0x168b73,'args':_0x5c2fc1};}}}return{'cmd':_0x168b73,'args':_0x1a7da5};}function isMcpServerExecution(_0x44cc22,_0x1bd11a){const _0x4b1880=a0_0x210b40,_0x546079=_0x44cc22[_0x4b1880(0xb2)](),_0x645600=_0x1bd11a['join']('\x20')['toLowerCase']();if(_0x546079[_0x4b1880(0x7c)]('mcp')&&(_0x546079[_0x4b1880(0x7c)]('server')||_0x546079[_0x4b1880(0x7c)](_0x4b1880(0xcb))))return!![];if(_0x546079===_0x4b1880(0x94)||_0x546079===_0x4b1880(0x73)||_0x546079===_0x4b1880(0xce)||_0x546079===_0x4b1880(0xd0)||_0x546079===_0x4b1880(0xc6)||_0x546079===_0x4b1880(0xfb)){if(_0x645600['includes'](_0x4b1880(0x82))||_0x645600[_0x4b1880(0x7c)](_0x4b1880(0x79))||_0x645600[_0x4b1880(0x7c)](_0x4b1880(0xad))||_0x645600[_0x4b1880(0x7c)]('server-mcp'))return!![];}if(_0x1bd11a[_0x4b1880(0xab)](_0x236de4=>{const _0x4ce0e7=_0x4b1880,_0x40957f=_0x236de4[_0x4ce0e7(0xb2)]();return _0x40957f[_0x4ce0e7(0x7c)](_0x4ce0e7(0xad))||_0x40957f[_0x4ce0e7(0x7c)](_0x4ce0e7(0xb4))||_0x40957f['includes']('@modelcontextprotocol/')||_0x40957f===_0x4ce0e7(0x88)||_0x40957f===_0x4ce0e7(0xf9);}))return!![];return![];}async function runProxy(_0x3f1d59){const _0x4d7795=a0_0x210b40;if(_0x3f1d59[_0x4d7795(0x74)]===0x0){program[_0x4d7795(0x71)]();return;}const _0x57a61f=_0x3f1d59[0x0],_0x967974=_0x3f1d59[_0x4d7795(0xa8)](0x1),_0x2be615=_0x3f1d59[_0x4d7795(0xbe)]('\x20');if(isDisabled()){const _0x3cb922=await(0x0,executor_1[_0x4d7795(0x100)])(_0x57a61f,_0x967974);process[_0x4d7795(0xb7)][_0x4d7795(0x107)](_0x3cb922[_0x4d7795(0xb7)]),process[_0x4d7795(0x85)][_0x4d7795(0x107)](_0x3cb922[_0x4d7795(0x85)]),process[_0x4d7795(0x106)](_0x3cb922[_0x4d7795(0xde)]);}if(isMcpServerExecution(_0x57a61f,_0x967974)){console[_0x4d7795(0xee)](_0x4d7795(0x7e));const {runMcpProxy:_0x102a5c}=await Promise[_0x4d7795(0xc7)]()[_0x4d7795(0x67)](()=>__importStar(require(_0x4d7795(0xbc))));_0x102a5c(_0x57a61f,_0x967974);return;}const _0x1c4900=adjustCommandArgs(_0x57a61f,_0x967974),_0x473665=await(0x0,executor_1[_0x4d7795(0x100)])(_0x1c4900[_0x4d7795(0xb1)],_0x1c4900[_0x4d7795(0xe4)]),_0x2c9dbe=(0x0,filters_1[_0x4d7795(0x9a)])(_0x2be615,_0x473665[_0x4d7795(0xb7)],_0x473665[_0x4d7795(0x85)],tracker_1['tracker'][_0x4d7795(0xd3)]()[_0x4d7795(0x8e)]),_0x572a3e=_0x473665['stdout']+(_0x473665[_0x4d7795(0x85)][_0x4d7795(0x7d)]()[_0x4d7795(0x74)]>0x0?'\x0a'+_0x473665['stderr']:''),_0x500568=_0x2c9dbe[_0x4d7795(0x74)]<_0x572a3e[_0x4d7795(0x74)]?_0x2c9dbe:_0x572a3e,_0x3ad8d9=_0x473665[_0x4d7795(0xde)]===0x0?(0x0,cache_1['dedup'])(_0x2be615,_0x500568):null,_0x4ee253=_0x3ad8d9||_0x500568;tracker_1[_0x4d7795(0xff)]['logExecution'](_0x2be615,_0x572a3e,_0x4ee253,_0x473665[_0x4d7795(0xde)]),_0x473665[_0x4d7795(0xde)]===0x0?process['stdout'][_0x4d7795(0x107)](_0x4ee253+'\x0a'):(process[_0x4d7795(0xb7)][_0x4d7795(0x107)](_0x2c9dbe+'\x0a'),_0x473665['stderr']['trim']()[_0x4d7795(0x74)]>0x0&&!_0x2c9dbe[_0x4d7795(0x7c)](_0x473665[_0x4d7795(0x85)][_0x4d7795(0x7d)]())&&process[_0x4d7795(0x85)]['write'](_0x473665[_0x4d7795(0x85)]+'\x0a')),process['exit'](_0x473665[_0x4d7795(0xde)]);}program[a0_0x210b40(0x96)](a0_0x210b40(0x7d))[a0_0x210b40(0xe2)](a0_0x210b40(0xc5))['version'](a0_0x210b40(0xda)),program[a0_0x210b40(0x84)]('ui')['alias'](a0_0x210b40(0xb6))[a0_0x210b40(0xe2)](a0_0x210b40(0xbb))['option'](a0_0x210b40(0x108),a0_0x210b40(0xfe),'4000')[a0_0x210b40(0xe6)](_0x49a0b0=>{const _0x3e1326=a0_0x210b40,_0x2f44b9=parseInt(_0x49a0b0[_0x3e1326(0x8c)],0xa);(0x0,dashboard_1[_0x3e1326(0x91)])(_0x2f44b9);}),program['command'](a0_0x210b40(0xd8))[a0_0x210b40(0xe2)](a0_0x210b40(0x75))['option'](a0_0x210b40(0x78),a0_0x210b40(0x70),a0_0x210b40(0x6c))[a0_0x210b40(0xe6)](_0x5cade0=>{const _0x2deea8=a0_0x210b40,_0x3b69c6=tracker_1[_0x2deea8(0xff)]['getStatsSummary'](_0x5cade0[_0x2deea8(0x92)]);console[_0x2deea8(0xa1)]('\x0a============================================='),console['log'](_0x2deea8(0x89)),console['log'](_0x2deea8(0x98)),console['log']('Model\x20Context:\x20\x20\x20\x20\x20'+_0x3b69c6[_0x2deea8(0xe0)]),console[_0x2deea8(0xa1)](_0x2deea8(0xa5)+_0x3b69c6[_0x2deea8(0xd2)][_0x2deea8(0x8a)]()),console[_0x2deea8(0xa1)]('Compressed:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b69c6[_0x2deea8(0xcf)][_0x2deea8(0x8a)]()),console[_0x2deea8(0xa1)](_0x2deea8(0x6a)+_0x3b69c6[_0x2deea8(0xeb)]['toLocaleString']()),console[_0x2deea8(0xa1)](_0x2deea8(0xdd)+_0x3b69c6[_0x2deea8(0xf1)]+'%'),console[_0x2deea8(0xa1)](_0x2deea8(0xcd)+_0x3b69c6[_0x2deea8(0xc0)][_0x2deea8(0x9b)](0x4)+_0x2deea8(0x80)),console['log'](_0x2deea8(0xe1)+_0x3b69c6[_0x2deea8(0xe5)][_0x2deea8(0x9b)](0x4)+_0x2deea8(0xcc)),console[_0x2deea8(0xa1)]('---------------------------------------------'),console[_0x2deea8(0xa1)](_0x2deea8(0x69)+_0x3b69c6[_0x2deea8(0xa3)]['toFixed'](0x4)+_0x2deea8(0x9f)),console['log'](_0x2deea8(0x104));}),program[a0_0x210b40(0x84)](a0_0x210b40(0xa7))[a0_0x210b40(0xe2)]('Manage\x20local\x20configuration\x20parameters')[a0_0x210b40(0xb5)](a0_0x210b40(0x72),'get\x20or\x20set')[a0_0x210b40(0xb5)](a0_0x210b40(0xf4),a0_0x210b40(0xdb))[a0_0x210b40(0xb5)]('[value]',a0_0x210b40(0xa9))[a0_0x210b40(0xe6)]((_0x1162b7,_0x2657e9,_0x4b16bf)=>{const _0xcef1b=a0_0x210b40;if(_0x1162b7==='get'){const _0x182853=tracker_1[_0xcef1b(0xff)][_0xcef1b(0xd3)]();console[_0xcef1b(0xa1)](_0x2657e9+':\x20'+_0x182853[_0x2657e9]);}else{if(_0x1162b7===_0xcef1b(0xd9)){_0x4b16bf===undefined&&(console[_0xcef1b(0xee)](_0xcef1b(0xa0)),process[_0xcef1b(0x106)](0x1));let _0x11dcea=_0x4b16bf;if(_0x4b16bf===_0xcef1b(0x101))_0x11dcea=!![];if(_0x4b16bf===_0xcef1b(0xfc))_0x11dcea=![];if(/^\d+$/['test'](_0x4b16bf))_0x11dcea=parseInt(_0x4b16bf,0xa);tracker_1[_0xcef1b(0xff)]['setConfig'](_0x2657e9,_0x11dcea),console[_0xcef1b(0xa1)](_0xcef1b(0xd5)+_0x2657e9+_0xcef1b(0xd4)+_0x4b16bf);}else console[_0xcef1b(0xee)](_0xcef1b(0x8b)),process[_0xcef1b(0x106)](0x1);}}),program['command'](a0_0x210b40(0xf7))[a0_0x210b40(0xe2)](a0_0x210b40(0xea))['argument'](a0_0x210b40(0x72),a0_0x210b40(0xd6))[a0_0x210b40(0xe6)](_0x39899a=>{const _0x59ba59=a0_0x210b40;if(_0x39899a==='install'){const _0x4eb93f=(0x0,shims_1['installShims'])();console[_0x59ba59(0xa1)](_0x4eb93f[_0x59ba59(0x97)]);}else{if(_0x39899a===_0x59ba59(0x8d)){const _0x373ef4=(0x0,shims_1[_0x59ba59(0xf3)])();console[_0x59ba59(0xa1)](_0x373ef4['message']);}else console['error']('Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall'),process[_0x59ba59(0x106)](0x1);}}),program[a0_0x210b40(0x84)]('rewrite')[a0_0x210b40(0xe2)]('Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line')[a0_0x210b40(0xb5)](a0_0x210b40(0x102),a0_0x210b40(0xc9))[a0_0x210b40(0xe6)](_0xa8e9a8=>{const _0x3cb003=a0_0x210b40;if(isDisabled()){console[_0x3cb003(0xa1)](_0xa8e9a8);return;}const _0x16530b=(0x0,filters_1['rewriteCommand'])(_0xa8e9a8);console[_0x3cb003(0xa1)](_0x16530b);}),program[a0_0x210b40(0x84)](a0_0x210b40(0x88))[a0_0x210b40(0x83)](a0_0x210b40(0xf9))[a0_0x210b40(0xe2)](a0_0x210b40(0xe9))[a0_0x210b40(0xb5)]('<server-command>','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server')[a0_0x210b40(0xb5)](a0_0x210b40(0x95),a0_0x210b40(0xfd))[a0_0x210b40(0xe6)](async(_0x35b163,_0x3f1116)=>{const _0x35ab48=a0_0x210b40,{runMcpProxy:_0xc95b44}=await Promise[_0x35ab48(0xc7)]()[_0x35ab48(0x67)](()=>__importStar(require('./mcp')));_0xc95b44(_0x35b163,_0x3f1116);});const args=process[a0_0x210b40(0x103)][a0_0x210b40(0xa8)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x210b40(0xb6),a0_0x210b40(0xd8),'config',a0_0x210b40(0xf7),'rewrite','mcp-proxy',a0_0x210b40(0xf9),a0_0x210b40(0x71),a0_0x210b40(0xf5),'-h',a0_0x210b40(0x9e),a0_0x210b40(0x6d),'-v'];firstArg&&!subcommands[a0_0x210b40(0x7c)](firstArg)?runProxy(args)[a0_0x210b40(0xe8)](_0x505592=>{const _0x1ca938=a0_0x210b40;console['error'](_0x1ca938(0xba)+_0x505592[_0x1ca938(0x97)]),process[_0x1ca938(0x106)](0x1);}):program[a0_0x210b40(0xd1)](process['argv']);
2
+ 'use strict';const a0_0x197887=a0_0x35aa;(function(_0x4dbb29,_0x5db5ab){const _0x5495a6=a0_0x35aa,_0x33acf3=_0x4dbb29();while(!![]){try{const _0x59a8b4=parseInt(_0x5495a6(0x10f))/0x1+-parseInt(_0x5495a6(0xa4))/0x2+-parseInt(_0x5495a6(0xe1))/0x3*(-parseInt(_0x5495a6(0xc6))/0x4)+-parseInt(_0x5495a6(0x92))/0x5+parseInt(_0x5495a6(0x116))/0x6*(parseInt(_0x5495a6(0xdc))/0x7)+parseInt(_0x5495a6(0xef))/0x8+parseInt(_0x5495a6(0xdd))/0x9*(parseInt(_0x5495a6(0xa8))/0xa);if(_0x59a8b4===_0x5db5ab)break;else _0x33acf3['push'](_0x33acf3['shift']());}catch(_0x161cc1){_0x33acf3['push'](_0x33acf3['shift']());}}}(a0_0xb595,0x5e91f));var __createBinding=this&&this[a0_0x197887(0xdf)]||(Object[a0_0x197887(0x104)]?function(_0x4744ec,_0x55e229,_0x50dfa6,_0x153e76){const _0x26df68=a0_0x197887;if(_0x153e76===undefined)_0x153e76=_0x50dfa6;var _0x1e716a=Object[_0x26df68(0x8e)](_0x55e229,_0x50dfa6);(!_0x1e716a||(_0x26df68(0x119)in _0x1e716a?!_0x55e229[_0x26df68(0x95)]:_0x1e716a['writable']||_0x1e716a[_0x26df68(0xe4)]))&&(_0x1e716a={'enumerable':!![],'get':function(){return _0x55e229[_0x50dfa6];}}),Object['defineProperty'](_0x4744ec,_0x153e76,_0x1e716a);}:function(_0x572d42,_0x2af6d0,_0x1ecbc5,_0x3f43ae){if(_0x3f43ae===undefined)_0x3f43ae=_0x1ecbc5;_0x572d42[_0x3f43ae]=_0x2af6d0[_0x1ecbc5];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x197887(0x104)]?function(_0x433f24,_0x59d478){const _0x305a6e=a0_0x197887;Object[_0x305a6e(0x108)](_0x433f24,_0x305a6e(0xe0),{'enumerable':!![],'value':_0x59d478});}:function(_0x56c8fd,_0x4f7180){const _0x391986=a0_0x197887;_0x56c8fd[_0x391986(0xe0)]=_0x4f7180;}),__importStar=this&&this[a0_0x197887(0x109)]||(function(){var _0x3a9e70=function(_0x441f6e){const _0x3d0be6=a0_0x35aa;return _0x3a9e70=Object[_0x3d0be6(0xa5)]||function(_0x2053c4){const _0x21a014=_0x3d0be6;var _0x3d360e=[];for(var _0x2cf294 in _0x2053c4)if(Object['prototype'][_0x21a014(0xb4)]['call'](_0x2053c4,_0x2cf294))_0x3d360e[_0x3d360e[_0x21a014(0x8d)]]=_0x2cf294;return _0x3d360e;},_0x3a9e70(_0x441f6e);};return function(_0x54d915){const _0x42f129=a0_0x35aa;if(_0x54d915&&_0x54d915[_0x42f129(0x95)])return _0x54d915;var _0x3a72da={};if(_0x54d915!=null){for(var _0x8cab7b=_0x3a9e70(_0x54d915),_0x4f0ee5=0x0;_0x4f0ee5<_0x8cab7b[_0x42f129(0x8d)];_0x4f0ee5++)if(_0x8cab7b[_0x4f0ee5]!==_0x42f129(0xe0))__createBinding(_0x3a72da,_0x54d915,_0x8cab7b[_0x4f0ee5]);}return __setModuleDefault(_0x3a72da,_0x54d915),_0x3a72da;};}());Object[a0_0x197887(0x108)](exports,'__esModule',{'value':!![]});const commander_1=require(a0_0x197887(0x110)),executor_1=require(a0_0x197887(0xc7)),filters_1=require(a0_0x197887(0xb5)),tracker_1=require(a0_0x197887(0x11e)),cache_1=require('./cache'),shims_1=require('./shims'),dashboard_1=require('./dashboard'),program=new commander_1['Command']();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x21cff9,_0x5eab0c){const _0x2d9204=a0_0x197887,_0x50265d=_0x21cff9[_0x2d9204(0xfe)]();if(_0x50265d===_0x2d9204(0x100)||_0x50265d==='yadm'){const _0x4ccc44=_0x5eab0c[0x0];if(_0x4ccc44===_0x2d9204(0xcc)){const _0x5904a7=_0x5eab0c['slice'](0x1),_0x300a5c=_0x5904a7[_0x2d9204(0x8d)]===0x0||_0x5904a7[_0x2d9204(0x9f)](_0x3eefbf=>{const _0x4e6ae8=_0x2d9204;return _0x3eefbf==='-b'||_0x3eefbf===_0x4e6ae8(0x8f)||_0x3eefbf==='-sb'||_0x3eefbf==='-bs'||_0x3eefbf==='-s'||_0x3eefbf===_0x4e6ae8(0x11c);});if(_0x300a5c)return{'cmd':_0x21cff9,'args':[_0x2d9204(0xcc),'--porcelain','-b']};}else{if(_0x4ccc44===_0x2d9204(0x102)){const _0x46a465=_0x5eab0c[_0x2d9204(0xdb)](0x1),_0x4e0b16=_0x46a465[_0x2d9204(0x118)](_0x1f083e=>_0x1f083e[_0x2d9204(0xac)](_0x2d9204(0xd5))||_0x1f083e['startsWith'](_0x2d9204(0xad))||_0x1f083e[_0x2d9204(0xac)](_0x2d9204(0x113))),_0x6e7fa4=_0x46a465[_0x2d9204(0x118)](_0x7cec99=>_0x7cec99[_0x2d9204(0xac)]('-')&&/^\d+$/[_0x2d9204(0xb1)](_0x7cec99[_0x2d9204(0xdb)](0x1))||_0x7cec99==='-n'||_0x7cec99['startsWith']('--max-count')),_0xb7a8a2=[..._0x5eab0c];if(!_0x4e0b16){const _0x1c41f3=_0x2d9204(0xa0);_0xb7a8a2['push'](process[_0x2d9204(0xfa)]===_0x2d9204(0xc4)?'\x22'+_0x1c41f3+'\x22':_0x1c41f3);}!_0x6e7fa4&&(_0x4e0b16?_0xb7a8a2[_0x2d9204(0x11f)](_0x2d9204(0xf8)):_0xb7a8a2[_0x2d9204(0x11f)](_0x2d9204(0x93)));const _0x28f1dd=_0x46a465[_0x2d9204(0x118)](_0x42ac3e=>_0x42ac3e===_0x2d9204(0x9b)||_0x42ac3e==='--no-merges'||_0x42ac3e['startsWith'](_0x2d9204(0xe6)));return!_0x28f1dd&&!_0x6e7fa4&&_0xb7a8a2[_0x2d9204(0x11f)]('--no-merges'),{'cmd':_0x21cff9,'args':_0xb7a8a2};}}}return{'cmd':_0x21cff9,'args':_0x5eab0c};}function isMcpServerExecution(_0x5e1f39,_0x594b3c){const _0x4ab30d=a0_0x197887,_0xc70daa=_0x5e1f39[_0x4ab30d(0xfe)](),_0x2d601f=_0x594b3c[_0x4ab30d(0x10e)]('\x20')[_0x4ab30d(0xfe)]();if(_0xc70daa['includes']('mcp')&&(_0xc70daa[_0x4ab30d(0xa9)](_0x4ab30d(0x103))||_0xc70daa[_0x4ab30d(0xa9)](_0x4ab30d(0xd8))))return!![];if(_0xc70daa===_0x4ab30d(0xa3)||_0xc70daa===_0x4ab30d(0xee)||_0xc70daa===_0x4ab30d(0xe5)||_0xc70daa===_0x4ab30d(0xd6)||_0xc70daa===_0x4ab30d(0x114)||_0xc70daa==='yarn'){if(_0x2d601f[_0x4ab30d(0xa9)]('@modelcontextprotocol/')||_0x2d601f[_0x4ab30d(0xa9)]('modelcontextprotocol')||_0x2d601f[_0x4ab30d(0xa9)]('mcp-server')||_0x2d601f[_0x4ab30d(0xa9)]('server-mcp'))return!![];}if(_0x594b3c[_0x4ab30d(0x118)](_0x513e66=>{const _0x20280f=_0x4ab30d,_0x8f9aee=_0x513e66[_0x20280f(0xfe)]();return _0x8f9aee['includes']('mcp-server')||_0x8f9aee[_0x20280f(0xa9)](_0x20280f(0xe2))||_0x8f9aee[_0x20280f(0xa9)](_0x20280f(0xf4))||_0x8f9aee==='mcp-proxy'||_0x8f9aee===_0x20280f(0xb2);}))return!![];return![];}function a0_0x35aa(_0x569500,_0x3c7148){_0x569500=_0x569500-0x8d;const _0xb595c9=a0_0xb595();let _0x35aa38=_0xb595c9[_0x569500];return _0x35aa38;}async function runProxy(_0xd2920c){const _0xb99fc1=a0_0x197887;if(_0xd2920c[_0xb99fc1(0x8d)]===0x0){program[_0xb99fc1(0xea)]();return;}const _0x1ff3e8=_0xd2920c[0x0],_0x441a88=_0xd2920c[_0xb99fc1(0xdb)](0x1),_0x98ac57=_0xd2920c[_0xb99fc1(0x10e)]('\x20');if(isDisabled()){const _0x1b17d4=await(0x0,executor_1['executeCommand'])(_0x1ff3e8,_0x441a88);process['stdout'][_0xb99fc1(0x111)](_0x1b17d4[_0xb99fc1(0xe7)]),process[_0xb99fc1(0xf0)][_0xb99fc1(0x111)](_0x1b17d4[_0xb99fc1(0xf0)]),process[_0xb99fc1(0xbf)](_0x1b17d4[_0xb99fc1(0x94)]);}if(isMcpServerExecution(_0x1ff3e8,_0x441a88)){console[_0xb99fc1(0xd0)](_0xb99fc1(0xf1));const {runMcpProxy:_0x2728bb}=await Promise['resolve']()[_0xb99fc1(0x10b)](()=>__importStar(require(_0xb99fc1(0xf2))));_0x2728bb(_0x1ff3e8,_0x441a88);return;}const _0x5e4741=adjustCommandArgs(_0x1ff3e8,_0x441a88),_0x27545d=await(0x0,executor_1[_0xb99fc1(0xeb)])(_0x5e4741[_0xb99fc1(0xb9)],_0x5e4741[_0xb99fc1(0x112)]),_0xd237bd=(0x0,filters_1['compressOutput'])(_0x98ac57,_0x27545d[_0xb99fc1(0xe7)],_0x27545d[_0xb99fc1(0xf0)],tracker_1[_0xb99fc1(0xbb)][_0xb99fc1(0xa1)]()[_0xb99fc1(0xc8)]),_0x35fae0=_0x27545d[_0xb99fc1(0xe7)]+(_0x27545d[_0xb99fc1(0xf0)][_0xb99fc1(0xce)]()[_0xb99fc1(0x8d)]>0x0?'\x0a'+_0x27545d[_0xb99fc1(0xf0)]:''),_0x243670=_0xd237bd[_0xb99fc1(0x8d)]<_0x35fae0['length']?_0xd237bd:_0x35fae0,_0x3081a7=_0x27545d['exitCode']===0x0?(0x0,cache_1[_0xb99fc1(0x96)])(_0x98ac57,_0x243670):null,_0x4fdecd=_0x3081a7||_0x243670;tracker_1[_0xb99fc1(0xbb)][_0xb99fc1(0xd4)](_0x98ac57,_0x35fae0,_0x4fdecd,_0x27545d[_0xb99fc1(0x94)]),_0x27545d[_0xb99fc1(0x94)]===0x0?process[_0xb99fc1(0xe7)][_0xb99fc1(0x111)](_0x4fdecd+'\x0a'):(process[_0xb99fc1(0xe7)][_0xb99fc1(0x111)](_0xd237bd+'\x0a'),_0x27545d[_0xb99fc1(0xf0)][_0xb99fc1(0xce)]()[_0xb99fc1(0x8d)]>0x0&&!_0xd237bd['includes'](_0x27545d[_0xb99fc1(0xf0)][_0xb99fc1(0xce)]())&&process[_0xb99fc1(0xf0)][_0xb99fc1(0x111)](_0x27545d[_0xb99fc1(0xf0)]+'\x0a')),process[_0xb99fc1(0xbf)](_0x27545d[_0xb99fc1(0x94)]);}program[a0_0x197887(0x97)](a0_0x197887(0xce))[a0_0x197887(0x107)]('TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%')[a0_0x197887(0x11b)](a0_0x197887(0xec)),program[a0_0x197887(0xc2)]('ui')['alias']('dashboard')[a0_0x197887(0x107)]('Start\x20the\x20local\x20developer\x20dashboard')[a0_0x197887(0xe3)](a0_0x197887(0xa6),a0_0x197887(0xbc),a0_0x197887(0xd2))['action'](_0x15cff1=>{const _0x3b4f04=a0_0x197887,_0x49bb7a=parseInt(_0x15cff1[_0x3b4f04(0xde)],0xa);(0x0,dashboard_1['startDashboard'])(_0x49bb7a);}),program[a0_0x197887(0xc2)](a0_0x197887(0xfb))[a0_0x197887(0x107)](a0_0x197887(0xf9))['option'](a0_0x197887(0x98),a0_0x197887(0xd7),a0_0x197887(0x11a))[a0_0x197887(0xf3)](_0x272a81=>{const _0x3f65c6=a0_0x197887,_0x26f026=tracker_1['tracker']['getStatsSummary'](_0x272a81[_0x3f65c6(0xb3)]);console['log'](_0x3f65c6(0x91)),console[_0x3f65c6(0x102)](_0x3f65c6(0xe9)),console[_0x3f65c6(0x102)](_0x3f65c6(0x10a)),console['log']('Model\x20Context:\x20\x20\x20\x20\x20'+_0x26f026[_0x3f65c6(0xbd)]),console['log'](_0x3f65c6(0xfc)+_0x26f026[_0x3f65c6(0x9a)][_0x3f65c6(0xc5)]()),console[_0x3f65c6(0x102)](_0x3f65c6(0x106)+_0x26f026[_0x3f65c6(0xf6)][_0x3f65c6(0xc5)]()),console[_0x3f65c6(0x102)](_0x3f65c6(0xda)+_0x26f026['total_tokens_saved']['toLocaleString']()),console[_0x3f65c6(0x102)](_0x3f65c6(0xd9)+_0x26f026['savings_percentage']+'%'),console[_0x3f65c6(0x102)](_0x3f65c6(0xfd)+_0x26f026['raw_cost_usd']['toFixed'](0x4)+'\x20(before\x20Shave)'),console['log']('Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$'+_0x26f026['compressed_cost_usd']['toFixed'](0x4)+'\x20(after\x20Shave)'),console['log']('---------------------------------------------'),console[_0x3f65c6(0x102)]('Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$'+_0x26f026[_0x3f65c6(0x9e)][_0x3f65c6(0xb6)](0x4)+_0x3f65c6(0x11d)),console[_0x3f65c6(0x102)](_0x3f65c6(0xf5));}),program['command'](a0_0x197887(0x115))[a0_0x197887(0x107)]('Manage\x20local\x20configuration\x20parameters')[a0_0x197887(0xd1)](a0_0x197887(0xff),a0_0x197887(0xc9))[a0_0x197887(0xd1)](a0_0x197887(0xe8),'config\x20parameter\x20name')[a0_0x197887(0xd1)](a0_0x197887(0xcb),'value\x20to\x20set')[a0_0x197887(0xf3)]((_0x1fdec7,_0x4e4e7d,_0x445374)=>{const _0x2a9768=a0_0x197887;if(_0x1fdec7===_0x2a9768(0x119)){const _0x5aa921=tracker_1[_0x2a9768(0xbb)]['getConfig']();console['log'](_0x4e4e7d+':\x20'+_0x5aa921[_0x4e4e7d]);}else{if(_0x1fdec7===_0x2a9768(0xcf)){_0x445374===undefined&&(console[_0x2a9768(0xd0)]('Error:\x20Value\x20required\x20for\x20set\x20action'),process[_0x2a9768(0xbf)](0x1));let _0x2bb3c2=_0x445374;if(_0x445374===_0x2a9768(0x105))_0x2bb3c2=!![];if(_0x445374===_0x2a9768(0xae))_0x2bb3c2=![];if(/^\d+$/[_0x2a9768(0xb1)](_0x445374))_0x2bb3c2=parseInt(_0x445374,0xa);tracker_1[_0x2a9768(0xbb)][_0x2a9768(0xca)](_0x4e4e7d,_0x2bb3c2),console[_0x2a9768(0x102)](_0x2a9768(0xab)+_0x4e4e7d+_0x2a9768(0xed)+_0x445374);}else console[_0x2a9768(0xd0)](_0x2a9768(0xc3)),process[_0x2a9768(0xbf)](0x1);}}),program[a0_0x197887(0xc2)](a0_0x197887(0xc1))[a0_0x197887(0x107)](a0_0x197887(0xa7))[a0_0x197887(0xd1)](a0_0x197887(0xff),a0_0x197887(0xd3))[a0_0x197887(0xf3)](_0x216d01=>{const _0x2ffb63=a0_0x197887;if(_0x216d01===_0x2ffb63(0xaf)){const _0x51703d=(0x0,shims_1['installShims'])();console[_0x2ffb63(0x102)](_0x51703d[_0x2ffb63(0x90)]);}else{if(_0x216d01===_0x2ffb63(0x101)){const _0x595b3c=(0x0,shims_1['uninstallShims'])();console[_0x2ffb63(0x102)](_0x595b3c[_0x2ffb63(0x90)]);}else console[_0x2ffb63(0xd0)](_0x2ffb63(0xb8)),process[_0x2ffb63(0xbf)](0x1);}}),program[a0_0x197887(0xc2)](a0_0x197887(0xaa))[a0_0x197887(0x107)](a0_0x197887(0x99))[a0_0x197887(0xd1)](a0_0x197887(0x10d),'Command\x20line\x20to\x20evaluate')['action'](_0x437fe8=>{const _0x3fa131=a0_0x197887;if(isDisabled()){console[_0x3fa131(0x102)](_0x437fe8);return;}const _0x27eb5c=(0x0,filters_1[_0x3fa131(0xbe)])(_0x437fe8);console[_0x3fa131(0x102)](_0x27eb5c);}),program[a0_0x197887(0xc2)](a0_0x197887(0xa2))[a0_0x197887(0xb0)](a0_0x197887(0xb2))[a0_0x197887(0x107)](a0_0x197887(0xf7))[a0_0x197887(0xd1)]('<server-command>',a0_0x197887(0xba))[a0_0x197887(0xd1)]('[server-args...]',a0_0x197887(0xc0))[a0_0x197887(0xf3)](async(_0x4695db,_0x4fa425)=>{const _0x397f42=a0_0x197887,{runMcpProxy:_0x552743}=await Promise['resolve']()[_0x397f42(0x10b)](()=>__importStar(require(_0x397f42(0xf2))));_0x552743(_0x4695db,_0x4fa425);});function a0_0xb595(){const _0x9464b7=['mcp','model','hasOwnProperty','./filters','toFixed','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','cmd','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','tracker','Port\x20to\x20run\x20the\x20dashboard\x20on','model_name','rewriteCommand','exit','Arguments\x20for\x20the\x20target\x20MCP\x20server','shims','command','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','win32','toLocaleString','1997524XMlYkV','./executor','redaction_enabled','get\x20or\x20set','setConfig','[value]','status','dashboard','trim','set','error','argument','4000','install\x20or\x20uninstall','logExecution','--oneline','npm','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','proxy','Reduction\x20Rate:\x20\x20\x20\x20','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','slice','225253QSYocn','1832436XTTRQP','port','__createBinding','default','3hFVBKR','server-mcp','option','configurable','bun','--min-parents','stdout','<key>','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','help','executeCommand','1.0.0','\x20=\x20','node','2995696MjMyoe','stderr','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','./mcp','action','@modelcontextprotocol/','=============================================\x0a','total_compressed_tokens','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','-50','Show\x20token\x20and\x20cost\x20savings\x20summary','platform','stats','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','Estimated\x20Cost:\x20\x20\x20\x20$','toLowerCase','<action>','git','uninstall','log','server','create','true','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','description','defineProperty','__importStar','=============================================','then','--version','<commandLine>','join','119997LyikZm','commander','write','args','--format','pnpm','config','66LCbNkR','argv','some','get','claude-3-5-sonnet','version','--short','\x20USD','./tracker','push','length','getOwnPropertyDescriptor','--branch','message','\x0a=============================================','3434635ToRXRC','-10','exitCode','__esModule','dedup','name','-m,\x20--model\x20<string>','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','total_raw_tokens','--merges','catch','parse','money_saved_usd','every','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','getConfig','mcp-proxy','npx','1361462veOLhw','getOwnPropertyNames','-p,\x20--port\x20<number>','Install\x20or\x20uninstall\x20system\x20command\x20shims','20yLqLom','includes','rewrite','Config\x20set\x20','startsWith','--pretty','false','install','alias','test'];a0_0xb595=function(){return _0x9464b7;};return a0_0xb595();}const args=process[a0_0x197887(0x117)][a0_0x197887(0xdb)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x197887(0xcd),'stats','config',a0_0x197887(0xc1),a0_0x197887(0xaa),a0_0x197887(0xa2),a0_0x197887(0xb2),a0_0x197887(0xea),'--help','-h',a0_0x197887(0x11b),a0_0x197887(0x10c),'-v'];firstArg&&!subcommands['includes'](firstArg)?runProxy(args)[a0_0x197887(0x9c)](_0xd0200c=>{const _0x98d98a=a0_0x197887;console[_0x98d98a(0xd0)](_0x98d98a(0xb7)+_0xd0200c['message']),process[_0x98d98a(0xbf)](0x1);}):program[a0_0x197887(0x9d)](process[a0_0x197887(0x117)]);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x118e26=a0_0x3bec;(function(_0x17142d,_0x3a2ae5){const _0x79814f=a0_0x3bec,_0x13c3bb=_0x17142d();while(!![]){try{const _0x56996f=parseInt(_0x79814f(0x157))/0x1*(-parseInt(_0x79814f(0x13a))/0x2)+-parseInt(_0x79814f(0x147))/0x3*(-parseInt(_0x79814f(0x12f))/0x4)+parseInt(_0x79814f(0x12d))/0x5+parseInt(_0x79814f(0x132))/0x6+parseInt(_0x79814f(0x144))/0x7*(-parseInt(_0x79814f(0x15c))/0x8)+parseInt(_0x79814f(0x14e))/0x9*(-parseInt(_0x79814f(0x159))/0xa)+-parseInt(_0x79814f(0x150))/0xb*(-parseInt(_0x79814f(0x162))/0xc);if(_0x56996f===_0x3a2ae5)break;else _0x13c3bb['push'](_0x13c3bb['shift']());}catch(_0x496c84){_0x13c3bb['push'](_0x13c3bb['shift']());}}}(a0_0x4182,0xb8055));function a0_0x3bec(_0x3c624c,_0xa001fc){const _0x4182f4=a0_0x4182();return a0_0x3bec=function(_0x3bec30,_0x292286){_0x3bec30=_0x3bec30-0x127;let _0x2a0592=_0x4182f4[_0x3bec30];return _0x2a0592;},a0_0x3bec(_0x3c624c,_0xa001fc);}var __createBinding=this&&this[a0_0x118e26(0x135)]||(Object[a0_0x118e26(0x15e)]?function(_0x48cb4c,_0x5c70ea,_0x10355e,_0x16cf5b){const _0x4f010e=a0_0x118e26;if(_0x16cf5b===undefined)_0x16cf5b=_0x10355e;var _0x107563=Object[_0x4f010e(0x161)](_0x5c70ea,_0x10355e);(!_0x107563||(_0x4f010e(0x15a)in _0x107563?!_0x5c70ea[_0x4f010e(0x148)]:_0x107563[_0x4f010e(0x14a)]||_0x107563[_0x4f010e(0x149)]))&&(_0x107563={'enumerable':!![],'get':function(){return _0x5c70ea[_0x10355e];}}),Object['defineProperty'](_0x48cb4c,_0x16cf5b,_0x107563);}:function(_0x1a9adc,_0x124c45,_0x3c69ca,_0x4b2df0){if(_0x4b2df0===undefined)_0x4b2df0=_0x3c69ca;_0x1a9adc[_0x4b2df0]=_0x124c45[_0x3c69ca];}),__setModuleDefault=this&&this[a0_0x118e26(0x164)]||(Object[a0_0x118e26(0x15e)]?function(_0x9785f4,_0x4f2571){const _0x15339f=a0_0x118e26;Object[_0x15339f(0x152)](_0x9785f4,_0x15339f(0x138),{'enumerable':!![],'value':_0x4f2571});}:function(_0x10ca5b,_0x407cbf){_0x10ca5b['default']=_0x407cbf;}),__importStar=this&&this[a0_0x118e26(0x163)]||(function(){var _0x4476a4=function(_0x152c79){return _0x4476a4=Object['getOwnPropertyNames']||function(_0x373c00){const _0xc7fe82=a0_0x3bec;var _0xf58944=[];for(var _0x44548a in _0x373c00)if(Object[_0xc7fe82(0x127)][_0xc7fe82(0x153)][_0xc7fe82(0x14f)](_0x373c00,_0x44548a))_0xf58944[_0xf58944[_0xc7fe82(0x13f)]]=_0x44548a;return _0xf58944;},_0x4476a4(_0x152c79);};return function(_0x51601a){const _0x927833=a0_0x3bec;if(_0x51601a&&_0x51601a[_0x927833(0x148)])return _0x51601a;var _0x3a0f9d={};if(_0x51601a!=null){for(var _0x34e7ff=_0x4476a4(_0x51601a),_0x48f13c=0x0;_0x48f13c<_0x34e7ff[_0x927833(0x13f)];_0x48f13c++)if(_0x34e7ff[_0x48f13c]!==_0x927833(0x138))__createBinding(_0x3a0f9d,_0x51601a,_0x34e7ff[_0x48f13c]);}return __setModuleDefault(_0x3a0f9d,_0x51601a),_0x3a0f9d;};}()),__importDefault=this&&this[a0_0x118e26(0x137)]||function(_0x52dbaf){const _0x5362d4=a0_0x118e26;return _0x52dbaf&&_0x52dbaf[_0x5362d4(0x148)]?_0x52dbaf:{'default':_0x52dbaf};};Object[a0_0x118e26(0x152)](exports,a0_0x118e26(0x148),{'value':!![]}),exports[a0_0x118e26(0x151)]=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x118e26(0x14c))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x118e26(0x139))),tracker_1=require(a0_0x118e26(0x146)),app=(0x0,express_1[a0_0x118e26(0x138)])(),baseDir=path[a0_0x118e26(0x13d)](os[a0_0x118e26(0x12b)](),a0_0x118e26(0x154)),logsDir=path[a0_0x118e26(0x13d)](baseDir,'logs');app[a0_0x118e26(0x15a)]('/',(_0x3ee927,_0x422a6e)=>{const _0x493f10=a0_0x118e26,_0x500d39=path[_0x493f10(0x13d)](__dirname,_0x493f10(0x160));fs['existsSync'](_0x500d39)?_0x422a6e[_0x493f10(0x13e)](_0x500d39):_0x422a6e[_0x493f10(0x13e)](path[_0x493f10(0x13d)](__dirname,_0x493f10(0x141)));}),app[a0_0x118e26(0x15a)](a0_0x118e26(0x128),(_0x14b672,_0x593390)=>{const _0x1c6f4c=a0_0x118e26,_0x8bfd96=_0x14b672[_0x1c6f4c(0x136)]['model']||'auto',_0x269b7f=tracker_1[_0x1c6f4c(0x13c)][_0x1c6f4c(0x145)](_0x8bfd96);_0x593390[_0x1c6f4c(0x15f)](_0x269b7f);}),app[a0_0x118e26(0x15a)](a0_0x118e26(0x133),(_0x19839a,_0x566520)=>{const _0x2be329=a0_0x118e26,_0x564a4a=tracker_1[_0x2be329(0x13c)]['getLogs']();_0x566520['json'](_0x564a4a);}),app[a0_0x118e26(0x15a)](a0_0x118e26(0x12e),(_0x527a8a,_0x2fcf93)=>{const _0x4c9ddd=a0_0x118e26,_0x38514d=_0x527a8a[_0x4c9ddd(0x14b)]['id'],_0x292eec=path[_0x4c9ddd(0x13d)](logsDir,_0x38514d+_0x4c9ddd(0x14d)),_0x5e4b12=path[_0x4c9ddd(0x13d)](logsDir,_0x38514d+_0x4c9ddd(0x131));let _0x3a1822=_0x4c9ddd(0x13b),_0x45c5bb=_0x4c9ddd(0x12a);try{fs[_0x4c9ddd(0x155)](_0x292eec)&&(_0x3a1822=fs[_0x4c9ddd(0x134)](_0x292eec,'utf8')),fs[_0x4c9ddd(0x155)](_0x5e4b12)&&(_0x45c5bb=fs[_0x4c9ddd(0x134)](_0x5e4b12,_0x4c9ddd(0x156)));}catch(_0x1764f1){}_0x2fcf93[_0x4c9ddd(0x15f)]({'id':_0x38514d,'raw':_0x3a1822,'compressed':_0x45c5bb});});function a0_0x4182(){const _0x424025=['.trimprompt','existsSync','utf8','8437gMkccP','error','10SEhQJo','get','log','112NyhSbp','[TrimPrompt]\x20Dashboard\x20error:\x20','create','json','index.html','getOwnPropertyDescriptor','84OHPDgp','__importStar','__setModuleDefault','prototype','/api/stats/summary','message','Compressed\x20output\x20log\x20file\x20not\x20found.','homedir','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','2015430LbrqXI','/api/stats/inspect/:id','4gpVOJM','code','.comp.txt','2557632nIgxcy','/api/stats/history','readFileSync','__createBinding','query','__importDefault','default','open','264BWRYYy','Raw\x20output\x20log\x20file\x20not\x20found.','tracker','join','sendFile','length','catch','../src/index.html','listen','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','134883QGQZEN','getStatsSummary','./tracker','21303tohpIA','__esModule','configurable','writable','params','path','.raw.txt','6775839NcfhKf','call','3227103ZNZHGg','startDashboard','defineProperty','hasOwnProperty'];a0_0x4182=function(){return _0x424025;};return a0_0x4182();}function startDashboard(_0x12de14=0xfa0){const _0x287592=a0_0x118e26;let _0x27b464=_0x12de14;const _0x43c16d=app[_0x287592(0x142)](_0x27b464,()=>{const _0x5809b2=_0x287592,_0x5efeb0='http://localhost:'+_0x27b464;console[_0x5809b2(0x15b)](_0x5809b2(0x12c)+_0x5efeb0),console[_0x5809b2(0x15b)](_0x5809b2(0x143)),(0x0,open_1['default'])(_0x5efeb0)[_0x5809b2(0x140)](()=>{});});_0x43c16d['on'](_0x287592(0x158),_0x520896=>{const _0x352d63=_0x287592;_0x520896[_0x352d63(0x130)]==='EADDRINUSE'?startDashboard(_0x27b464+0x1):console['error'](_0x352d63(0x15d)+_0x520896[_0x352d63(0x129)]);});}
1
+ 'use strict';const a0_0x3c217b=a0_0x28d5;function a0_0x3d11(){const _0x1d0ddd=['logs','getLogs','2400766DgAiKj','create','error','/api/stats/history','hasOwnProperty','path','Compressed\x20output\x20log\x20file\x20not\x20found.','log','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','__esModule','defineProperty','Raw\x20output\x20log\x20file\x20not\x20found.','tracker','EADDRINUSE','model','.raw.txt','prototype','message','open','917CBXjhU','639708nYmKSc','existsSync','length','utf8','catch','express','get','getStatsSummary','__importStar','startDashboard','homedir','http://localhost:','join','1496152xZMaCn','writable','index.html','.trimprompt','params','json','sendFile','getOwnPropertyNames','328jnFfpu','code','query','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','__importDefault','call','374839PnuSRg','703866TAtpGh','./tracker','default','[TrimPrompt]\x20Dashboard\x20error:\x20','3989105mLNfst','getOwnPropertyDescriptor','/api/stats/summary','readFileSync'];a0_0x3d11=function(){return _0x1d0ddd;};return a0_0x3d11();}(function(_0xf265ff,_0x230f74){const _0x13db7c=a0_0x28d5,_0x488e55=_0xf265ff();while(!![]){try{const _0x59213c=parseInt(_0x13db7c(0x97))/0x1+parseInt(_0x13db7c(0xa2))/0x2+parseInt(_0x13db7c(0x98))/0x3+-parseInt(_0x13db7c(0x89))/0x4+-parseInt(_0x13db7c(0x9c))/0x5+parseInt(_0x13db7c(0xb6))/0x6+-parseInt(_0x13db7c(0xb5))/0x7*(parseInt(_0x13db7c(0x91))/0x8);if(_0x59213c===_0x230f74)break;else _0x488e55['push'](_0x488e55['shift']());}catch(_0x2525da){_0x488e55['push'](_0x488e55['shift']());}}}(a0_0x3d11,0xb47a0));var __createBinding=this&&this['__createBinding']||(Object[a0_0x3c217b(0xa3)]?function(_0x5bc3b3,_0xfcdcc9,_0x548ac1,_0x4a41c7){const _0x1a026a=a0_0x3c217b;if(_0x4a41c7===undefined)_0x4a41c7=_0x548ac1;var _0x5ecd6b=Object[_0x1a026a(0x9d)](_0xfcdcc9,_0x548ac1);(!_0x5ecd6b||('get'in _0x5ecd6b?!_0xfcdcc9['__esModule']:_0x5ecd6b[_0x1a026a(0x8a)]||_0x5ecd6b['configurable']))&&(_0x5ecd6b={'enumerable':!![],'get':function(){return _0xfcdcc9[_0x548ac1];}}),Object['defineProperty'](_0x5bc3b3,_0x4a41c7,_0x5ecd6b);}:function(_0x393423,_0x465235,_0x1b5bcc,_0x28ba6f){if(_0x28ba6f===undefined)_0x28ba6f=_0x1b5bcc;_0x393423[_0x28ba6f]=_0x465235[_0x1b5bcc];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3c217b(0xa3)]?function(_0x155ad6,_0x2bf78d){Object['defineProperty'](_0x155ad6,'default',{'enumerable':!![],'value':_0x2bf78d});}:function(_0x53e6d9,_0x51d0b1){const _0x1a8237=a0_0x3c217b;_0x53e6d9[_0x1a8237(0x9a)]=_0x51d0b1;}),__importStar=this&&this[a0_0x3c217b(0x84)]||(function(){var _0x58ced8=function(_0x54e25f){const _0x47e05d=a0_0x28d5;return _0x58ced8=Object[_0x47e05d(0x90)]||function(_0x496ef8){const _0x29e1a2=_0x47e05d;var _0x11e071=[];for(var _0x543571 in _0x496ef8)if(Object[_0x29e1a2(0xb2)][_0x29e1a2(0xa6)][_0x29e1a2(0x96)](_0x496ef8,_0x543571))_0x11e071[_0x11e071[_0x29e1a2(0xb8)]]=_0x543571;return _0x11e071;},_0x58ced8(_0x54e25f);};return function(_0x4d3588){const _0x3dbe1b=a0_0x28d5;if(_0x4d3588&&_0x4d3588[_0x3dbe1b(0xab)])return _0x4d3588;var _0x3933c5={};if(_0x4d3588!=null){for(var _0x2b48ee=_0x58ced8(_0x4d3588),_0x4d769e=0x0;_0x4d769e<_0x2b48ee[_0x3dbe1b(0xb8)];_0x4d769e++)if(_0x2b48ee[_0x4d769e]!==_0x3dbe1b(0x9a))__createBinding(_0x3933c5,_0x4d3588,_0x2b48ee[_0x4d769e]);}return __setModuleDefault(_0x3933c5,_0x4d3588),_0x3933c5;};}()),__importDefault=this&&this[a0_0x3c217b(0x95)]||function(_0x2b7b4d){const _0xbf3000=a0_0x3c217b;return _0x2b7b4d&&_0x2b7b4d[_0xbf3000(0xab)]?_0x2b7b4d:{'default':_0x2b7b4d};};function a0_0x28d5(_0x445fe5,_0x250b92){_0x445fe5=_0x445fe5-0x84;const _0x3d1186=a0_0x3d11();let _0x28d579=_0x3d1186[_0x445fe5];return _0x28d579;}Object[a0_0x3c217b(0xac)](exports,a0_0x3c217b(0xab),{'value':!![]}),exports[a0_0x3c217b(0x85)]=startDashboard;const express_1=__importDefault(require(a0_0x3c217b(0xbb))),path=__importStar(require(a0_0x3c217b(0xa7))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x3c217b(0xb4))),tracker_1=require(a0_0x3c217b(0x99)),app=(0x0,express_1[a0_0x3c217b(0x9a)])(),baseDir=path[a0_0x3c217b(0x88)](os[a0_0x3c217b(0x86)](),a0_0x3c217b(0x8c)),logsDir=path[a0_0x3c217b(0x88)](baseDir,a0_0x3c217b(0xa0));app[a0_0x3c217b(0xbc)]('/',(_0x4c6221,_0x4ddb1c)=>{const _0x1167aa=a0_0x3c217b,_0x3fae84=path[_0x1167aa(0x88)](__dirname,_0x1167aa(0x8b));fs['existsSync'](_0x3fae84)?_0x4ddb1c[_0x1167aa(0x8f)](_0x3fae84):_0x4ddb1c[_0x1167aa(0x8f)](path[_0x1167aa(0x88)](__dirname,'../src/index.html'));}),app['get'](a0_0x3c217b(0x9e),(_0x18261f,_0x284bd5)=>{const _0xb88240=a0_0x3c217b,_0x4da666=_0x18261f[_0xb88240(0x93)][_0xb88240(0xb0)]||'auto',_0x331b28=tracker_1[_0xb88240(0xae)][_0xb88240(0xbd)](_0x4da666);_0x284bd5['json'](_0x331b28);}),app[a0_0x3c217b(0xbc)](a0_0x3c217b(0xa5),(_0x2de906,_0x1fc0be)=>{const _0x56748b=a0_0x3c217b,_0x2c24b0=tracker_1[_0x56748b(0xae)][_0x56748b(0xa1)]();_0x1fc0be[_0x56748b(0x8e)](_0x2c24b0);}),app[a0_0x3c217b(0xbc)]('/api/stats/inspect/:id',(_0x2bb558,_0x3e36e5)=>{const _0x1067a2=a0_0x3c217b,_0x134a2a=_0x2bb558[_0x1067a2(0x8d)]['id'],_0xe892e3=path[_0x1067a2(0x88)](logsDir,_0x134a2a+_0x1067a2(0xb1)),_0x2648c2=path[_0x1067a2(0x88)](logsDir,_0x134a2a+'.comp.txt');let _0x405964=_0x1067a2(0xad),_0x102767=_0x1067a2(0xa8);try{fs['existsSync'](_0xe892e3)&&(_0x405964=fs['readFileSync'](_0xe892e3,_0x1067a2(0xb9))),fs[_0x1067a2(0xb7)](_0x2648c2)&&(_0x102767=fs[_0x1067a2(0x9f)](_0x2648c2,_0x1067a2(0xb9)));}catch(_0x376373){}_0x3e36e5[_0x1067a2(0x8e)]({'id':_0x134a2a,'raw':_0x405964,'compressed':_0x102767});});function startDashboard(_0x51f502=0xfa0){const _0x71d2ea=a0_0x3c217b;let _0x3d5e31=_0x51f502;const _0x433317=app['listen'](_0x3d5e31,()=>{const _0x3a31e4=a0_0x28d5,_0x591bc4=_0x3a31e4(0x87)+_0x3d5e31;console[_0x3a31e4(0xa9)](_0x3a31e4(0xaa)+_0x591bc4),console['log'](_0x3a31e4(0x94)),(0x0,open_1[_0x3a31e4(0x9a)])(_0x591bc4)[_0x3a31e4(0xba)](()=>{});});_0x433317['on'](_0x71d2ea(0xa4),_0x17a610=>{const _0x1e1248=_0x71d2ea;_0x17a610[_0x1e1248(0x92)]===_0x1e1248(0xaf)?startDashboard(_0x3d5e31+0x1):console['error'](_0x1e1248(0x9b)+_0x17a610[_0x1e1248(0xb3)]);});}
package/dashboard.png ADDED
Binary file
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x170a64=a0_0x6f4a;(function(_0x399030,_0x488fc1){var _0x409481=a0_0x6f4a,_0x11b612=_0x399030();while(!![]){try{var _0x91d5cf=-parseInt(_0x409481(0xd2))/0x1*(parseInt(_0x409481(0xd3))/0x2)+parseInt(_0x409481(0xd4))/0x3+-parseInt(_0x409481(0xdd))/0x4+parseInt(_0x409481(0xda))/0x5+parseInt(_0x409481(0xb9))/0x6+-parseInt(_0x409481(0xc0))/0x7+parseInt(_0x409481(0xb7))/0x8;if(_0x91d5cf===_0x488fc1)break;else _0x11b612['push'](_0x11b612['shift']());}catch(_0x18da6c){_0x11b612['push'](_0x11b612['shift']());}}}(a0_0x24fb,0x8cbe6));function a0_0x6f4a(_0x2200c0,_0x530e4c){var _0x24fb97=a0_0x24fb();return a0_0x6f4a=function(_0x6f4a0f,_0xe89048){_0x6f4a0f=_0x6f4a0f-0xb3;var _0x146dee=_0x24fb97[_0x6f4a0f];return _0x146dee;},a0_0x6f4a(_0x2200c0,_0x530e4c);}var __createBinding=this&&this[a0_0x170a64(0xc6)]||(Object[a0_0x170a64(0xc9)]?function(_0x5b025e,_0x27ea31,_0x10f3dd,_0x32cb4b){var _0x501bb2=a0_0x170a64;if(_0x32cb4b===undefined)_0x32cb4b=_0x10f3dd;var _0x4232de=Object[_0x501bb2(0xde)](_0x27ea31,_0x10f3dd);(!_0x4232de||(_0x501bb2(0xbc)in _0x4232de?!_0x27ea31[_0x501bb2(0xc3)]:_0x4232de[_0x501bb2(0xd1)]||_0x4232de[_0x501bb2(0xb4)]))&&(_0x4232de={'enumerable':!![],'get':function(){return _0x27ea31[_0x10f3dd];}}),Object[_0x501bb2(0xbf)](_0x5b025e,_0x32cb4b,_0x4232de);}:function(_0x3abf20,_0x440357,_0x36c1b2,_0x37c9aa){if(_0x37c9aa===undefined)_0x37c9aa=_0x36c1b2;_0x3abf20[_0x37c9aa]=_0x440357[_0x36c1b2];}),__setModuleDefault=this&&this[a0_0x170a64(0xe0)]||(Object[a0_0x170a64(0xc9)]?function(_0x44c0b4,_0x309d0a){var _0x4c2db4=a0_0x170a64;Object[_0x4c2db4(0xbf)](_0x44c0b4,_0x4c2db4(0xd9),{'enumerable':!![],'value':_0x309d0a});}:function(_0x405a53,_0x5dcf8b){var _0x7799f1=a0_0x170a64;_0x405a53[_0x7799f1(0xd9)]=_0x5dcf8b;}),__importStar=this&&this[a0_0x170a64(0xc5)]||(function(){var _0x35edd7=function(_0x4c293f){var _0xbbc29a=a0_0x6f4a;return _0x35edd7=Object[_0xbbc29a(0xca)]||function(_0x5b0141){var _0x313926=_0xbbc29a,_0x2b53b2=[];for(var _0x32c951 in _0x5b0141)if(Object[_0x313926(0xbe)][_0x313926(0xcd)][_0x313926(0xcb)](_0x5b0141,_0x32c951))_0x2b53b2[_0x2b53b2['length']]=_0x32c951;return _0x2b53b2;},_0x35edd7(_0x4c293f);};return function(_0xb8862a){var _0x4df4a5=a0_0x6f4a;if(_0xb8862a&&_0xb8862a[_0x4df4a5(0xc3)])return _0xb8862a;var _0x172fd1={};if(_0xb8862a!=null){for(var _0x5733dc=_0x35edd7(_0xb8862a),_0x75885=0x0;_0x75885<_0x5733dc[_0x4df4a5(0xba)];_0x75885++)if(_0x5733dc[_0x75885]!==_0x4df4a5(0xd9))__createBinding(_0x172fd1,_0xb8862a,_0x5733dc[_0x75885]);}return __setModuleDefault(_0x172fd1,_0xb8862a),_0x172fd1;};}());Object[a0_0x170a64(0xbf)](exports,'__esModule',{'value':!![]}),exports[a0_0x170a64(0xc2)]=executeCommand;const child_process_1=require(a0_0x170a64(0xc8)),path=__importStar(require(a0_0x170a64(0xb8))),os=__importStar(require('os'));function executeCommand(_0x4076b2,_0xe2dc4){return new Promise(_0x40720c=>{var _0x2380b5=a0_0x6f4a;const _0x4429b0=path[_0x2380b5(0xd0)](os[_0x2380b5(0xb5)](),_0x2380b5(0xe1),_0x2380b5(0xd5)),_0x3ab0c2=(process[_0x2380b5(0xdc)][_0x2380b5(0xd6)]||'')[_0x2380b5(0xdb)](path['delimiter'])['filter'](_0x41aa30=>_0x41aa30[_0x2380b5(0xc1)]()[_0x2380b5(0xc4)]()!==_0x4429b0[_0x2380b5(0xc4)]())[_0x2380b5(0xd0)](path[_0x2380b5(0xb3)]),_0x16d7f4={...process['env'],'PATH':_0x3ab0c2,'TRIMPROMPT_DISABLED':'1'},_0x23d11a=(0x0,child_process_1['spawn'])(_0x4076b2,_0xe2dc4,{'stdio':[_0x2380b5(0xbb),_0x2380b5(0xcc),_0x2380b5(0xcc)],'shell':!![],'env':_0x16d7f4});let _0x531a1c='',_0x13701e='';_0x23d11a[_0x2380b5(0xd8)]?.['on']('data',_0x9883d6=>{_0x531a1c+=_0x9883d6['toString']();}),_0x23d11a[_0x2380b5(0xd7)]?.['on'](_0x2380b5(0xb6),_0x2af729=>{var _0x293cdf=_0x2380b5;_0x13701e+=_0x2af729[_0x293cdf(0xbd)]();}),_0x23d11a['on'](_0x2380b5(0xdf),_0xfb51fe=>{var _0xe31ea4=_0x2380b5;_0x40720c({'exitCode':0x1,'stdout':'','stderr':_0xe31ea4(0xc7)+_0x4076b2+_0xe31ea4(0xce)+_0xfb51fe['message']});}),_0x23d11a['on'](_0x2380b5(0xcf),_0x947990=>{_0x40720c({'exitCode':_0x947990??0x0,'stdout':_0x531a1c,'stderr':_0x13701e});});});}function a0_0x24fb(){var _0x1d2921=['PATH','stderr','stdout','default','4190130IYnzZa','split','env','2962284YJDYWG','getOwnPropertyDescriptor','error','__setModuleDefault','.trimprompt','delimiter','configurable','homedir','data','1277456wqCPUb','path','6203508NfeFds','length','inherit','get','toString','prototype','defineProperty','550928wCFcvA','trim','executeCommand','__esModule','toLowerCase','__importStar','__createBinding','Failed\x20to\x20spawn\x20command\x20\x22','child_process','create','getOwnPropertyNames','call','pipe','hasOwnProperty','\x22:\x20','close','join','writable','952613vAKUwc','2RiPwhQ','950244keNySl','shims'];a0_0x24fb=function(){return _0x1d2921;};return a0_0x24fb();}
1
+ 'use strict';var a0_0x3c27e3=a0_0x4c62;(function(_0x2d2cf9,_0x3ee9dd){var _0x504056=a0_0x4c62,_0x5454e5=_0x2d2cf9();while(!![]){try{var _0x5d275a=-parseInt(_0x504056(0x1ee))/0x1+-parseInt(_0x504056(0x211))/0x2*(parseInt(_0x504056(0x1fc))/0x3)+-parseInt(_0x504056(0x1f4))/0x4+-parseInt(_0x504056(0x202))/0x5+-parseInt(_0x504056(0x1f5))/0x6+-parseInt(_0x504056(0x208))/0x7+parseInt(_0x504056(0x20f))/0x8*(parseInt(_0x504056(0x1f3))/0x9);if(_0x5d275a===_0x3ee9dd)break;else _0x5454e5['push'](_0x5454e5['shift']());}catch(_0x385cd2){_0x5454e5['push'](_0x5454e5['shift']());}}}(a0_0x44ec,0xa5612));function a0_0x44ec(){var _0x2d8465=['join','defineProperty','5729171lwpNYe','pipe','split','create','default','stderr','homedir','10984HdhKYg','call','1974502dwnXqb','path','length','233060tLfEgn','child_process','\x22:\x20','executeCommand','toString','32301WjcEze','2998592YxmjGc','3975432vPCFyQ','getOwnPropertyNames','get','writable','toLowerCase','delimiter','filter','3iOAkLx','message','stdout','__importStar','getOwnPropertyDescriptor','data','3996595eKiTGn','__setModuleDefault','__esModule','error'];a0_0x44ec=function(){return _0x2d8465;};return a0_0x44ec();}var __createBinding=this&&this['__createBinding']||(Object[a0_0x3c27e3(0x20b)]?function(_0x30f1f9,_0x15e3ff,_0x155b36,_0x5950dc){var _0x3c8174=a0_0x3c27e3;if(_0x5950dc===undefined)_0x5950dc=_0x155b36;var _0x45a733=Object[_0x3c8174(0x200)](_0x15e3ff,_0x155b36);(!_0x45a733||(_0x3c8174(0x1f7)in _0x45a733?!_0x15e3ff[_0x3c8174(0x204)]:_0x45a733[_0x3c8174(0x1f8)]||_0x45a733['configurable']))&&(_0x45a733={'enumerable':!![],'get':function(){return _0x15e3ff[_0x155b36];}}),Object[_0x3c8174(0x207)](_0x30f1f9,_0x5950dc,_0x45a733);}:function(_0x743b8d,_0x4f8035,_0x53c27e,_0x2bf8f2){if(_0x2bf8f2===undefined)_0x2bf8f2=_0x53c27e;_0x743b8d[_0x2bf8f2]=_0x4f8035[_0x53c27e];}),__setModuleDefault=this&&this[a0_0x3c27e3(0x203)]||(Object[a0_0x3c27e3(0x20b)]?function(_0x351879,_0x5a453e){var _0x1b686f=a0_0x3c27e3;Object[_0x1b686f(0x207)](_0x351879,_0x1b686f(0x20c),{'enumerable':!![],'value':_0x5a453e});}:function(_0x54b3ca,_0x2af0d4){var _0x1e0c65=a0_0x3c27e3;_0x54b3ca[_0x1e0c65(0x20c)]=_0x2af0d4;}),__importStar=this&&this[a0_0x3c27e3(0x1ff)]||(function(){var _0x3ce031=function(_0x3fd827){var _0x3f1098=a0_0x4c62;return _0x3ce031=Object[_0x3f1098(0x1f6)]||function(_0x544c03){var _0x1ece56=_0x3f1098,_0x35f472=[];for(var _0x208c1d in _0x544c03)if(Object['prototype']['hasOwnProperty'][_0x1ece56(0x210)](_0x544c03,_0x208c1d))_0x35f472[_0x35f472['length']]=_0x208c1d;return _0x35f472;},_0x3ce031(_0x3fd827);};return function(_0x3e9dda){var _0x4aba59=a0_0x4c62;if(_0x3e9dda&&_0x3e9dda[_0x4aba59(0x204)])return _0x3e9dda;var _0x438ce7={};if(_0x3e9dda!=null){for(var _0x478af5=_0x3ce031(_0x3e9dda),_0x25d583=0x0;_0x25d583<_0x478af5[_0x4aba59(0x1ed)];_0x25d583++)if(_0x478af5[_0x25d583]!=='default')__createBinding(_0x438ce7,_0x3e9dda,_0x478af5[_0x25d583]);}return __setModuleDefault(_0x438ce7,_0x3e9dda),_0x438ce7;};}());function a0_0x4c62(_0x3e9f77,_0x22048e){_0x3e9f77=_0x3e9f77-0x1ec;var _0x44ecd9=a0_0x44ec();var _0x4c62cb=_0x44ecd9[_0x3e9f77];return _0x4c62cb;}Object[a0_0x3c27e3(0x207)](exports,a0_0x3c27e3(0x204),{'value':!![]}),exports[a0_0x3c27e3(0x1f1)]=executeCommand;const child_process_1=require(a0_0x3c27e3(0x1ef)),path=__importStar(require(a0_0x3c27e3(0x1ec))),os=__importStar(require('os'));function executeCommand(_0x3422aa,_0x308f8c){return new Promise(_0x3fb883=>{var _0x476067=a0_0x4c62;const _0x4ea00f=path[_0x476067(0x206)](os[_0x476067(0x20e)](),'.trimprompt','shims'),_0xe4a18c=(process.env.PATH||'')[_0x476067(0x20a)](path[_0x476067(0x1fa)])[_0x476067(0x1fb)](_0x44339d=>_0x44339d['trim']()[_0x476067(0x1f9)]()!==_0x4ea00f[_0x476067(0x1f9)]())[_0x476067(0x206)](path[_0x476067(0x1fa)]),_0x1fc7a5={...process.env,'PATH':_0xe4a18c,'TRIMPROMPT_DISABLED':'1'},_0x1c702b=(0x0,child_process_1['spawn'])(_0x3422aa,_0x308f8c,{'stdio':['inherit',_0x476067(0x209),_0x476067(0x209)],'shell':!![],'env':_0x1fc7a5});let _0x1afd4e='',_0x2d24b6='';_0x1c702b[_0x476067(0x1fe)]?.['on'](_0x476067(0x201),_0x5d8721=>{var _0x185726=_0x476067;_0x1afd4e+=_0x5d8721[_0x185726(0x1f2)]();}),_0x1c702b[_0x476067(0x20d)]?.['on']('data',_0x4663b=>{var _0x2446c0=_0x476067;_0x2d24b6+=_0x4663b[_0x2446c0(0x1f2)]();}),_0x1c702b['on'](_0x476067(0x205),_0x1f4b29=>{var _0x5a8cf9=_0x476067;_0x3fb883({'exitCode':0x1,'stdout':'','stderr':'Failed\x20to\x20spawn\x20command\x20\x22'+_0x3422aa+_0x5a8cf9(0x1f0)+_0x1f4b29[_0x5a8cf9(0x1fd)]});}),_0x1c702b['on']('close',_0x711696=>{_0x3fb883({'exitCode':_0x711696??0x0,'stdout':_0x1afd4e,'stderr':_0x2d24b6});});});}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1d4278=a0_0x4355;(function(_0x9997bc,_0x22c005){const _0x42140b=a0_0x4355,_0x105098=_0x9997bc();while(!![]){try{const _0x4322ad=parseInt(_0x42140b(0x1de))/0x1*(parseInt(_0x42140b(0x20d))/0x2)+-parseInt(_0x42140b(0x208))/0x3*(parseInt(_0x42140b(0x1f2))/0x4)+parseInt(_0x42140b(0x1dc))/0x5+-parseInt(_0x42140b(0x1fe))/0x6+-parseInt(_0x42140b(0x209))/0x7*(parseInt(_0x42140b(0x1e5))/0x8)+parseInt(_0x42140b(0x1f9))/0x9+-parseInt(_0x42140b(0x1dd))/0xa*(-parseInt(_0x42140b(0x1ff))/0xb);if(_0x4322ad===_0x22c005)break;else _0x105098['push'](_0x105098['shift']());}catch(_0xbc3d4f){_0x105098['push'](_0x105098['shift']());}}}(a0_0x1867,0x416ab));Object[a0_0x1d4278(0x1e7)](exports,a0_0x1d4278(0x1f6),{'value':!![]}),exports[a0_0x1d4278(0x1f1)]=filterDockerPs,exports[a0_0x1d4278(0x204)]=filterDockerImages,exports[a0_0x1d4278(0x1f8)]=filterDockerLogs,exports[a0_0x1d4278(0x20a)]=filterKubectl,exports[a0_0x1d4278(0x1e9)]=filterRuff;function filterDockerPs(_0x375f93){const _0x48803a=a0_0x1d4278,_0x21d58a=_0x375f93[_0x48803a(0x1ec)]('\x0a')[_0x48803a(0x207)](_0x4554f5=>_0x4554f5[_0x48803a(0x205)]()['length']>0x0);if(_0x21d58a[_0x48803a(0x1f5)]===0x0)return _0x48803a(0x1ea);if(_0x21d58a[_0x48803a(0x1f5)]<=0xa)return _0x375f93[_0x48803a(0x205)]();const _0xf61e8d=_0x21d58a[0x0],_0x18618a=_0x21d58a[_0x48803a(0x1e0)](0x1),_0x24726b=[];_0x24726b[_0x48803a(0x200)]('Containers:\x20'+_0x18618a[_0x48803a(0x1f5)]+_0x48803a(0x1db)),_0x24726b[_0x48803a(0x200)]('');for(const _0x1891c2 of _0x18618a){const _0x17681e=_0x1891c2[_0x48803a(0x1ec)](/\s{2,}/);if(_0x17681e[_0x48803a(0x1f5)]>=0x5){const _0x4b275a=_0x17681e[0x0][_0x48803a(0x1f3)](0x0,0xc),_0x548359=_0x17681e[0x1],_0x2127d3=_0x17681e[_0x17681e['length']-0x2]||'',_0x45c406=_0x17681e[_0x17681e['length']-0x1]||'';_0x24726b['push']('\x20\x20'+_0x4b275a+'\x20\x20'+_0x548359+'\x20\x20'+_0x2127d3+'\x20\x20'+_0x45c406);}else _0x24726b[_0x48803a(0x200)]('\x20\x20'+_0x1891c2['trim']());}return _0x24726b['join']('\x0a');}function filterDockerImages(_0x22ecce){const _0x187ebd=a0_0x1d4278,_0x153ff9=_0x22ecce['split']('\x0a')[_0x187ebd(0x207)](_0xa8411a=>_0xa8411a[_0x187ebd(0x205)]()[_0x187ebd(0x1f5)]>0x0);if(_0x153ff9[_0x187ebd(0x1f5)]<=0x1)return _0x187ebd(0x1f4);if(_0x153ff9[_0x187ebd(0x1f5)]<=0xf)return _0x22ecce[_0x187ebd(0x205)]();const _0x22c52d=_0x153ff9[_0x187ebd(0x1e0)](0x1),_0x466f3d=[_0x187ebd(0x1e2)+_0x22c52d['length']+_0x187ebd(0x1db)];_0x466f3d[_0x187ebd(0x200)]('');const _0x1cb5c8=_0x22c52d[_0x187ebd(0x1e0)](0x0,0x14);for(const _0x2d02f7 of _0x1cb5c8){const _0x4ce1e0=_0x2d02f7[_0x187ebd(0x1ec)](/\s{2,}/);if(_0x4ce1e0[_0x187ebd(0x1f5)]>=0x3){const _0x2c8e3a=_0x4ce1e0[0x0],_0x126da2=_0x4ce1e0[0x1],_0x52074b=_0x4ce1e0[_0x4ce1e0[_0x187ebd(0x1f5)]-0x1]||'';_0x466f3d[_0x187ebd(0x200)]('\x20\x20'+_0x2c8e3a+':'+_0x126da2+'\x20\x20'+_0x52074b);}else _0x466f3d['push']('\x20\x20'+_0x2d02f7[_0x187ebd(0x205)]());}return _0x22c52d[_0x187ebd(0x1f5)]>0x14&&_0x466f3d[_0x187ebd(0x200)](_0x187ebd(0x1df)+(_0x22c52d[_0x187ebd(0x1f5)]-0x14)+_0x187ebd(0x1eb)),_0x466f3d[_0x187ebd(0x1fb)]('\x0a');}function a0_0x4355(_0x2fe41e,_0x2b04a9){const _0x186712=a0_0x1867();return a0_0x4355=function(_0x435595,_0x51e19d){_0x435595=_0x435595-0x1d9;let _0x4aba97=_0x186712[_0x435595];return _0x4aba97;},a0_0x4355(_0x2fe41e,_0x2b04a9);}function filterDockerLogs(_0x227c72){const _0x4ff651=a0_0x1d4278,_0xa807c6=_0x227c72['split']('\x0a');if(_0xa807c6['length']<=0x32)return _0x227c72;const _0x10298e=[];return _0x10298e[_0x4ff651(0x200)](..._0xa807c6['slice'](0x0,0x14)),_0x10298e['push'](_0x4ff651(0x1e8)+(_0xa807c6['length']-0x28)+'\x20lines\x20truncated]\x20...\x0a'),_0x10298e['push'](..._0xa807c6[_0x4ff651(0x1e0)](-0x14)),_0x10298e[_0x4ff651(0x200)]('\x0a('+_0xa807c6[_0x4ff651(0x1f5)]+_0x4ff651(0x1e4)),_0x10298e[_0x4ff651(0x1fb)]('\x0a');}function filterKubectl(_0x19e45f,_0xdff667){const _0x8954a1=a0_0x1d4278,_0x4b4185=_0x19e45f['split']('\x0a')[_0x8954a1(0x207)](_0x2fbbf2=>_0x2fbbf2[_0x8954a1(0x205)]()['length']>0x0);if(_0x4b4185[_0x8954a1(0x1f5)]===0x0)return _0x8954a1(0x1fd);if(_0x4b4185[_0x8954a1(0x1f5)]<=0x14)return _0x19e45f[_0x8954a1(0x205)]();if(_0xdff667===_0x8954a1(0x1fa)){const _0x3f6563=_0x4b4185[0x0],_0x241c7=_0x4b4185[_0x8954a1(0x1e0)](0x1),_0x1fc06d=[_0x241c7['length']+_0x8954a1(0x1f7),'',_0x3f6563];return _0x241c7[_0x8954a1(0x1f5)]<=0x1e?_0x1fc06d[_0x8954a1(0x200)](..._0x241c7):(_0x1fc06d[_0x8954a1(0x200)](..._0x241c7['slice'](0x0,0x19)),_0x1fc06d[_0x8954a1(0x200)](_0x8954a1(0x20b)+(_0x241c7[_0x8954a1(0x1f5)]-0x19)+_0x8954a1(0x1e3))),_0x1fc06d[_0x8954a1(0x1fb)]('\x0a');}if(_0xdff667==='describe'){const _0x17de73=[];let _0x2cafab=![],_0xf46faa=0x0;for(const _0x75c3c5 of _0x4b4185){if(_0x75c3c5[_0x8954a1(0x202)]('Events:')){_0x2cafab=!![],_0x17de73[_0x8954a1(0x200)](_0x75c3c5);continue;}if(_0x2cafab){_0xf46faa++;if(_0xf46faa<=0x5)_0x17de73[_0x8954a1(0x200)](_0x75c3c5);}else _0x17de73[_0x8954a1(0x200)](_0x75c3c5);}return _0xf46faa>0x5&&_0x17de73[_0x8954a1(0x200)](_0x8954a1(0x1df)+(_0xf46faa-0x5)+_0x8954a1(0x20c)),_0x17de73[_0x8954a1(0x1fb)]('\x0a');}if(_0xdff667==='logs')return filterDockerLogs(_0x19e45f);const _0x2c70ee=_0x4b4185[_0x8954a1(0x1e0)](0x0,0x1e);return _0x4b4185[_0x8954a1(0x1f5)]>0x1e&&_0x2c70ee[_0x8954a1(0x200)]('...\x20+'+(_0x4b4185['length']-0x1e)+_0x8954a1(0x1f0)),_0x2c70ee['join']('\x0a');}function filterRuff(_0x522948){const _0xc6b8d8=a0_0x1d4278,_0x2ed919=_0x522948['split']('\x0a')[_0xc6b8d8(0x207)](_0xef828c=>_0xef828c[_0xc6b8d8(0x205)]()[_0xc6b8d8(0x1f5)]>0x0);if(_0x2ed919[_0xc6b8d8(0x1f5)]===0x0)return _0xc6b8d8(0x1e6);if(_0x522948['includes'](_0xc6b8d8(0x1ef))||_0x522948[_0xc6b8d8(0x201)](_0xc6b8d8(0x1d9)))return'Ruff:\x20all\x20checks\x20passed';const _0x3e29db=_0x522948[_0xc6b8d8(0x1e1)](/Found (\d+) error/),_0x316de5=_0x3e29db?parseInt(_0x3e29db[0x1]):_0x2ed919[_0xc6b8d8(0x1f5)],_0x312c26={},_0x2c4e14=[];for(const _0x496f20 of _0x2ed919){const _0x5951d7=_0x496f20['match'](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x5951d7){const _0x28b7b1=_0x5951d7[0x1],_0x3c07c3=_0x28b7b1[_0xc6b8d8(0x1ec)](':')[0x0];if(!_0x312c26[_0x3c07c3])_0x312c26[_0x3c07c3]=[];_0x312c26[_0x3c07c3][_0xc6b8d8(0x200)](_0x496f20);}else _0x2c4e14[_0xc6b8d8(0x200)](_0x496f20);}const _0x5ca009=Object[_0xc6b8d8(0x206)](_0x312c26);if(_0x5ca009['length']===0x0){if(_0x2ed919[_0xc6b8d8(0x1f5)]<=0x14)return _0x522948[_0xc6b8d8(0x205)]();return _0x2ed919[_0xc6b8d8(0x1e0)](0x0,0xf)[_0xc6b8d8(0x1fb)]('\x0a')+(_0xc6b8d8(0x1da)+(_0x2ed919['length']-0xf)+_0xc6b8d8(0x1ee));}const _0x359055=['Ruff:\x20'+_0x316de5+_0xc6b8d8(0x1ed)+_0x5ca009[_0xc6b8d8(0x1f5)]+'\x20files'];_0x359055[_0xc6b8d8(0x200)]('');const _0x78259d=0xa;for(const _0x167158 of _0x5ca009['slice'](0x0,_0x78259d)){const _0x6c3f5e=_0x312c26[_0x167158];if(_0x6c3f5e[_0xc6b8d8(0x1f5)]<=0x3){for(const _0x2cb27d of _0x6c3f5e)_0x359055['push']('\x20\x20'+_0x2cb27d);}else _0x359055[_0xc6b8d8(0x200)]('\x20\x20'+_0x6c3f5e[0x0]),_0x359055['push'](_0xc6b8d8(0x203)+_0x6c3f5e['length']+_0xc6b8d8(0x1ed)+_0x167158+')');}return _0x5ca009[_0xc6b8d8(0x1f5)]>_0x78259d&&_0x359055['push'](_0xc6b8d8(0x1df)+(_0x5ca009[_0xc6b8d8(0x1f5)]-_0x78259d)+_0xc6b8d8(0x1fc)),_0x359055['join']('\x0a');}function a0_0x1867(){const _0xbeaf42=['All\x20checks\x20passed','\x20more\x20lines','filterDockerPs','36MYbaFd','substring','No\x20images\x20found','length','__esModule','\x20resources\x20found','filterDockerLogs','508176pUQVym','get','join','\x20more\x20files','No\x20resources\x20found','379392btJplJ','2527767mPMYmL','push','includes','startsWith','\x20\x20...\x20(','filterDockerImages','trim','keys','filter','178197FKYHpZ','20167FvTdpH','filterKubectl','...\x20+','\x20more\x20events','282630GdvHaI','Found\x200\x20error','\x0a...\x20+','\x20total','1203855plwRFr','30LqxqkX','1jpGSQM','\x20\x20...\x20+','slice','match','Docker\x20images:\x20','\x20more\x20resources','\x20log\x20lines\x20total)','728UNmuXD','Ruff:\x20no\x20issues\x20found','defineProperty','\x0a...\x20[','filterRuff','No\x20containers\x20running','\x20more\x20images','split','\x20issues\x20in\x20','\x20more'];a0_0x1867=function(){return _0xbeaf42;};return a0_0x1867();}
1
+ 'use strict';const a0_0x12181b=a0_0x4c5e;(function(_0x4377e7,_0x49fbd3){const _0x1130a9=a0_0x4c5e,_0x2c0482=_0x4377e7();while(!![]){try{const _0xf6ffe0=parseInt(_0x1130a9(0xc7))/0x1*(parseInt(_0x1130a9(0xb4))/0x2)+-parseInt(_0x1130a9(0xd6))/0x3*(-parseInt(_0x1130a9(0xd3))/0x4)+parseInt(_0x1130a9(0xd2))/0x5*(parseInt(_0x1130a9(0xd8))/0x6)+parseInt(_0x1130a9(0xc6))/0x7*(parseInt(_0x1130a9(0xe1))/0x8)+-parseInt(_0x1130a9(0xcd))/0x9*(-parseInt(_0x1130a9(0xe3))/0xa)+parseInt(_0x1130a9(0xc1))/0xb+-parseInt(_0x1130a9(0xbd))/0xc;if(_0xf6ffe0===_0x49fbd3)break;else _0x2c0482['push'](_0x2c0482['shift']());}catch(_0x3b1964){_0x2c0482['push'](_0x2c0482['shift']());}}}(a0_0x46d2,0x95da7));function a0_0x46d2(){const _0xd0c6da=['Found\x200\x20error','join','\x20resources\x20found','includes','\x20\x20...\x20(','All\x20checks\x20passed','Containers:\x20','40317876HVPQih','\x20more\x20resources','startsWith','\x20total','10063790jBjwdS','logs','\x20more','\x20issues\x20in\x20','No\x20containers\x20running','28wEKUsN','839OAeVNN','defineProperty','filterDockerPs','filter','slice','trim','14085lbSCxo','push','substring','filterRuff','keys','239650ZZeTdA','72ivsRam','...\x20+','Docker\x20images:\x20','192057wumBQn','\x20more\x20lines','48JTjNwV','__esModule','length','\x0a...\x20[','split','get','filterDockerLogs','\x20\x20...\x20+','describe','1738400cyXieH','No\x20resources\x20found','1470HrxSGm','\x20more\x20files','filterKubectl','\x20more\x20images','\x20lines\x20truncated]\x20...\x0a','match','1010oDvDKa','\x20files'];a0_0x46d2=function(){return _0xd0c6da;};return a0_0x46d2();}Object[a0_0x12181b(0xc8)](exports,a0_0x12181b(0xd9),{'value':!![]}),exports[a0_0x12181b(0xc9)]=filterDockerPs,exports['filterDockerImages']=filterDockerImages,exports[a0_0x12181b(0xde)]=filterDockerLogs,exports[a0_0x12181b(0xe5)]=filterKubectl,exports[a0_0x12181b(0xd0)]=filterRuff;function a0_0x4c5e(_0x39738d,_0x3aa394){_0x39738d=_0x39738d-0xb3;const _0x46d2d2=a0_0x46d2();let _0x4c5e9a=_0x46d2d2[_0x39738d];return _0x4c5e9a;}function filterDockerPs(_0x51789e){const _0x718ea2=a0_0x12181b,_0x58f20d=_0x51789e[_0x718ea2(0xdc)]('\x0a')[_0x718ea2(0xca)](_0x5a1159=>_0x5a1159[_0x718ea2(0xcc)]()[_0x718ea2(0xda)]>0x0);if(_0x58f20d[_0x718ea2(0xda)]===0x0)return _0x718ea2(0xc5);if(_0x58f20d[_0x718ea2(0xda)]<=0xa)return _0x51789e[_0x718ea2(0xcc)]();const _0x59dee2=_0x58f20d[0x0],_0xe0d508=_0x58f20d['slice'](0x1),_0x586d95=[];_0x586d95[_0x718ea2(0xce)](_0x718ea2(0xbc)+_0xe0d508['length']+_0x718ea2(0xc0)),_0x586d95['push']('');for(const _0x264f7a of _0xe0d508){const _0xf53075=_0x264f7a['split'](/\s{2,}/);if(_0xf53075['length']>=0x5){const _0x9f5189=_0xf53075[0x0][_0x718ea2(0xcf)](0x0,0xc),_0x2454ab=_0xf53075[0x1],_0x3d0883=_0xf53075[_0xf53075[_0x718ea2(0xda)]-0x2]||'',_0x5d1c69=_0xf53075[_0xf53075[_0x718ea2(0xda)]-0x1]||'';_0x586d95[_0x718ea2(0xce)]('\x20\x20'+_0x9f5189+'\x20\x20'+_0x2454ab+'\x20\x20'+_0x3d0883+'\x20\x20'+_0x5d1c69);}else _0x586d95['push']('\x20\x20'+_0x264f7a[_0x718ea2(0xcc)]());}return _0x586d95[_0x718ea2(0xb7)]('\x0a');}function filterDockerImages(_0x4fa8b5){const _0x1cdb67=a0_0x12181b,_0x5af4de=_0x4fa8b5['split']('\x0a')['filter'](_0x103fb4=>_0x103fb4['trim']()[_0x1cdb67(0xda)]>0x0);if(_0x5af4de[_0x1cdb67(0xda)]<=0x1)return'No\x20images\x20found';if(_0x5af4de[_0x1cdb67(0xda)]<=0xf)return _0x4fa8b5[_0x1cdb67(0xcc)]();const _0x19be32=_0x5af4de[_0x1cdb67(0xcb)](0x1),_0x52f953=[_0x1cdb67(0xd5)+_0x19be32[_0x1cdb67(0xda)]+_0x1cdb67(0xc0)];_0x52f953[_0x1cdb67(0xce)]('');const _0x191249=_0x19be32['slice'](0x0,0x14);for(const _0x35d6ae of _0x191249){const _0x4d9bed=_0x35d6ae[_0x1cdb67(0xdc)](/\s{2,}/);if(_0x4d9bed[_0x1cdb67(0xda)]>=0x3){const _0x7c2ba5=_0x4d9bed[0x0],_0x425b3f=_0x4d9bed[0x1],_0x3a313d=_0x4d9bed[_0x4d9bed[_0x1cdb67(0xda)]-0x1]||'';_0x52f953['push']('\x20\x20'+_0x7c2ba5+':'+_0x425b3f+'\x20\x20'+_0x3a313d);}else _0x52f953[_0x1cdb67(0xce)]('\x20\x20'+_0x35d6ae['trim']());}return _0x19be32[_0x1cdb67(0xda)]>0x14&&_0x52f953['push']('\x20\x20...\x20+'+(_0x19be32['length']-0x14)+_0x1cdb67(0xe6)),_0x52f953['join']('\x0a');}function filterDockerLogs(_0x2083e1){const _0x3369fa=a0_0x12181b,_0x343940=_0x2083e1['split']('\x0a');if(_0x343940[_0x3369fa(0xda)]<=0x32)return _0x2083e1;const _0x56f71a=[];return _0x56f71a[_0x3369fa(0xce)](..._0x343940[_0x3369fa(0xcb)](0x0,0x14)),_0x56f71a['push'](_0x3369fa(0xdb)+(_0x343940[_0x3369fa(0xda)]-0x28)+_0x3369fa(0xe7)),_0x56f71a[_0x3369fa(0xce)](..._0x343940[_0x3369fa(0xcb)](-0x14)),_0x56f71a['push']('\x0a('+_0x343940[_0x3369fa(0xda)]+'\x20log\x20lines\x20total)'),_0x56f71a[_0x3369fa(0xb7)]('\x0a');}function filterKubectl(_0x574bae,_0x55f4d5){const _0x164770=a0_0x12181b,_0x3d83cc=_0x574bae['split']('\x0a')[_0x164770(0xca)](_0x109742=>_0x109742[_0x164770(0xcc)]()[_0x164770(0xda)]>0x0);if(_0x3d83cc[_0x164770(0xda)]===0x0)return _0x164770(0xe2);if(_0x3d83cc[_0x164770(0xda)]<=0x14)return _0x574bae[_0x164770(0xcc)]();if(_0x55f4d5===_0x164770(0xdd)){const _0x2e8648=_0x3d83cc[0x0],_0x1ba23b=_0x3d83cc[_0x164770(0xcb)](0x1),_0x4e21cb=[_0x1ba23b[_0x164770(0xda)]+_0x164770(0xb8),'',_0x2e8648];return _0x1ba23b[_0x164770(0xda)]<=0x1e?_0x4e21cb[_0x164770(0xce)](..._0x1ba23b):(_0x4e21cb['push'](..._0x1ba23b[_0x164770(0xcb)](0x0,0x19)),_0x4e21cb[_0x164770(0xce)](_0x164770(0xd4)+(_0x1ba23b['length']-0x19)+_0x164770(0xbe))),_0x4e21cb['join']('\x0a');}if(_0x55f4d5===_0x164770(0xe0)){const _0x2a5fe8=[];let _0x1f8a0e=![],_0x549dfc=0x0;for(const _0x5c671e of _0x3d83cc){if(_0x5c671e[_0x164770(0xbf)]('Events:')){_0x1f8a0e=!![],_0x2a5fe8[_0x164770(0xce)](_0x5c671e);continue;}if(_0x1f8a0e){_0x549dfc++;if(_0x549dfc<=0x5)_0x2a5fe8[_0x164770(0xce)](_0x5c671e);}else _0x2a5fe8[_0x164770(0xce)](_0x5c671e);}return _0x549dfc>0x5&&_0x2a5fe8[_0x164770(0xce)](_0x164770(0xdf)+(_0x549dfc-0x5)+'\x20more\x20events'),_0x2a5fe8[_0x164770(0xb7)]('\x0a');}if(_0x55f4d5===_0x164770(0xc2))return filterDockerLogs(_0x574bae);const _0x4b3ce1=_0x3d83cc[_0x164770(0xcb)](0x0,0x1e);return _0x3d83cc[_0x164770(0xda)]>0x1e&&_0x4b3ce1[_0x164770(0xce)]('...\x20+'+(_0x3d83cc[_0x164770(0xda)]-0x1e)+_0x164770(0xd7)),_0x4b3ce1[_0x164770(0xb7)]('\x0a');}function filterRuff(_0x163a77){const _0x3240f5=a0_0x12181b,_0xe6d758=_0x163a77[_0x3240f5(0xdc)]('\x0a')[_0x3240f5(0xca)](_0x5a2e1a=>_0x5a2e1a['trim']()[_0x3240f5(0xda)]>0x0);if(_0xe6d758[_0x3240f5(0xda)]===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0x163a77[_0x3240f5(0xb9)](_0x3240f5(0xbb))||_0x163a77[_0x3240f5(0xb9)](_0x3240f5(0xb6)))return'Ruff:\x20all\x20checks\x20passed';const _0x5e5cb6=_0x163a77[_0x3240f5(0xb3)](/Found (\d+) error/),_0x57d8f=_0x5e5cb6?parseInt(_0x5e5cb6[0x1]):_0xe6d758[_0x3240f5(0xda)],_0x3faa9f={},_0x568a3f=[];for(const _0x29bcdd of _0xe6d758){const _0x27a042=_0x29bcdd[_0x3240f5(0xb3)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x27a042){const _0x3b2e6d=_0x27a042[0x1],_0x56b6df=_0x3b2e6d[_0x3240f5(0xdc)](':')[0x0];if(!_0x3faa9f[_0x56b6df])_0x3faa9f[_0x56b6df]=[];_0x3faa9f[_0x56b6df][_0x3240f5(0xce)](_0x29bcdd);}else _0x568a3f[_0x3240f5(0xce)](_0x29bcdd);}const _0x2c721e=Object[_0x3240f5(0xd1)](_0x3faa9f);if(_0x2c721e['length']===0x0){if(_0xe6d758[_0x3240f5(0xda)]<=0x14)return _0x163a77[_0x3240f5(0xcc)]();return _0xe6d758[_0x3240f5(0xcb)](0x0,0xf)[_0x3240f5(0xb7)]('\x0a')+('\x0a...\x20+'+(_0xe6d758[_0x3240f5(0xda)]-0xf)+_0x3240f5(0xc3));}const _0x2e6f26=['Ruff:\x20'+_0x57d8f+_0x3240f5(0xc4)+_0x2c721e[_0x3240f5(0xda)]+_0x3240f5(0xb5)];_0x2e6f26[_0x3240f5(0xce)]('');const _0x3015f3=0xa;for(const _0x1800d2 of _0x2c721e[_0x3240f5(0xcb)](0x0,_0x3015f3)){const _0xad2264=_0x3faa9f[_0x1800d2];if(_0xad2264[_0x3240f5(0xda)]<=0x3){for(const _0x5e1d9e of _0xad2264)_0x2e6f26['push']('\x20\x20'+_0x5e1d9e);}else _0x2e6f26[_0x3240f5(0xce)]('\x20\x20'+_0xad2264[0x0]),_0x2e6f26[_0x3240f5(0xce)](_0x3240f5(0xba)+_0xad2264['length']+_0x3240f5(0xc4)+_0x1800d2+')');}return _0x2c721e['length']>_0x3015f3&&_0x2e6f26[_0x3240f5(0xce)](_0x3240f5(0xdf)+(_0x2c721e[_0x3240f5(0xda)]-_0x3015f3)+_0x3240f5(0xe4)),_0x2e6f26[_0x3240f5(0xb7)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x1b2122=a0_0x1ef3;(function(_0x4030eb,_0x3c6bc1){const _0x2fbaa1=a0_0x1ef3,_0x31f617=_0x4030eb();while(!![]){try{const _0x4ccc77=parseInt(_0x2fbaa1(0x188))/0x1+-parseInt(_0x2fbaa1(0x18f))/0x2+parseInt(_0x2fbaa1(0x189))/0x3+-parseInt(_0x2fbaa1(0x19c))/0x4+parseInt(_0x2fbaa1(0x196))/0x5+-parseInt(_0x2fbaa1(0x18d))/0x6+parseInt(_0x2fbaa1(0x18e))/0x7;if(_0x4ccc77===_0x3c6bc1)break;else _0x31f617['push'](_0x31f617['shift']());}catch(_0x87393a){_0x31f617['push'](_0x31f617['shift']());}}}(a0_0x2232,0xa4a54));Object[a0_0x1b2122(0x199)](exports,a0_0x1b2122(0x19b),{'value':!![]}),exports[a0_0x1b2122(0x190)]=stripAnsi,exports[a0_0x1b2122(0x18c)]=collapseDuplicates,exports[a0_0x1b2122(0x198)]=softTruncate;function a0_0x1ef3(_0xd5f8a4,_0x1894f1){const _0x223201=a0_0x2232();return a0_0x1ef3=function(_0x1ef347,_0x1e7669){_0x1ef347=_0x1ef347-0x188;let _0x476545=_0x223201[_0x1ef347];return _0x476545;},a0_0x1ef3(_0xd5f8a4,_0x1894f1);}function stripAnsi(_0x373203){const _0x3f5ed3=a0_0x1b2122,_0x671085=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x373203[_0x3f5ed3(0x192)](_0x671085,'');}function a0_0x2232(){const _0x35b22b=['1312918yZDsgG','stripAnsi','slice','replace','push','\x0a...\x20[TrimPrompt:\x20Truncated\x20','\x20characters\x20of\x20output]\x20...\x0a','1627310WKFaAc','\x20[x','softTruncate','defineProperty','length','__esModule','3802508ZHlLec','754535jScgWY','3481275FKUzhl','split','join','collapseDuplicates','1815552FvwjRo','2405508wamnWR'];a0_0x2232=function(){return _0x35b22b;};return a0_0x2232();}function collapseDuplicates(_0x312e21){const _0x2b0d0b=a0_0x1b2122,_0x3903ac=_0x312e21[_0x2b0d0b(0x18a)]('\x0a');if(_0x3903ac[_0x2b0d0b(0x19a)]<=0x1)return _0x312e21;const _0x4a41e1=[];let _0x4a98c2=_0x3903ac[0x0],_0x1c0635=0x1;for(let _0x346b0f=0x1;_0x346b0f<_0x3903ac[_0x2b0d0b(0x19a)];_0x346b0f++){const _0x2d551c=_0x3903ac[_0x346b0f];_0x2d551c===_0x4a98c2&&_0x2d551c['trim']()['length']>0x0?_0x1c0635++:(_0x1c0635>0x1?_0x4a41e1[_0x2b0d0b(0x193)](_0x4a98c2+_0x2b0d0b(0x197)+_0x1c0635+']'):_0x4a41e1['push'](_0x4a98c2),_0x4a98c2=_0x2d551c,_0x1c0635=0x1);}return _0x1c0635>0x1?_0x4a41e1[_0x2b0d0b(0x193)](_0x4a98c2+'\x20[x'+_0x1c0635+']'):_0x4a41e1[_0x2b0d0b(0x193)](_0x4a98c2),_0x4a41e1[_0x2b0d0b(0x18b)]('\x0a');}function softTruncate(_0x574ee0,_0x31a9c6=0x4e20){const _0x1d3447=a0_0x1b2122;if(_0x574ee0[_0x1d3447(0x19a)]<=_0x31a9c6)return _0x574ee0;const _0x7f47ef=_0x574ee0[_0x1d3447(0x18a)]('\x0a');if(_0x7f47ef['length']<=0xc8)return _0x574ee0;const _0x5b5856=0x32,_0x367b26=0x96,_0x3b027a=_0x7f47ef[_0x1d3447(0x191)](0x0,_0x5b5856),_0x497d2e=_0x7f47ef[_0x1d3447(0x191)](_0x7f47ef[_0x1d3447(0x19a)]-_0x367b26),_0x488be5=_0x574ee0[_0x1d3447(0x19a)]-(_0x3b027a['join']('\x0a')[_0x1d3447(0x19a)]+_0x497d2e[_0x1d3447(0x18b)]('\x0a')[_0x1d3447(0x19a)]);return[..._0x3b027a,_0x1d3447(0x194)+_0x488be5+_0x1d3447(0x195),..._0x497d2e][_0x1d3447(0x18b)]('\x0a');}
1
+ 'use strict';const a0_0x3baf76=a0_0x42c4;(function(_0x9797ce,_0x45c0f7){const _0x5cdd03=a0_0x42c4,_0x2b244c=_0x9797ce();while(!![]){try{const _0x21d5da=-parseInt(_0x5cdd03(0x80))/0x1*(-parseInt(_0x5cdd03(0x78))/0x2)+-parseInt(_0x5cdd03(0x79))/0x3*(parseInt(_0x5cdd03(0x7d))/0x4)+parseInt(_0x5cdd03(0x86))/0x5+parseInt(_0x5cdd03(0x8e))/0x6*(-parseInt(_0x5cdd03(0x8f))/0x7)+parseInt(_0x5cdd03(0x7b))/0x8+parseInt(_0x5cdd03(0x8b))/0x9+parseInt(_0x5cdd03(0x8d))/0xa;if(_0x21d5da===_0x45c0f7)break;else _0x2b244c['push'](_0x2b244c['shift']());}catch(_0x550726){_0x2b244c['push'](_0x2b244c['shift']());}}}(a0_0x2345,0x93cff));function a0_0x42c4(_0x29b161,_0x5d4603){_0x29b161=_0x29b161-0x78;const _0x234551=a0_0x2345();let _0x42c4ce=_0x234551[_0x29b161];return _0x42c4ce;}Object[a0_0x3baf76(0x8c)](exports,a0_0x3baf76(0x85),{'value':!![]}),exports[a0_0x3baf76(0x87)]=stripAnsi,exports[a0_0x3baf76(0x83)]=collapseDuplicates,exports[a0_0x3baf76(0x8a)]=softTruncate;function stripAnsi(_0x454d0c){const _0xa89d1f=a0_0x3baf76,_0x2eadb8=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x454d0c[_0xa89d1f(0x88)](_0x2eadb8,'');}function a0_0x2345(){const _0x4dcc39=['63YQeAKa','length','slice','collapseDuplicates','\x20characters\x20of\x20output]\x20...\x0a','__esModule','448215xgZPfp','stripAnsi','replace','join','softTruncate','882891pmwxjB','defineProperty','1765550DOUqGb','282jYdbRc','99673VPYpjU','27548CaFlgJ','3ClAzbb','split','6996328YPKLJV','\x20[x','3327712qDubxV','push','trim'];a0_0x2345=function(){return _0x4dcc39;};return a0_0x2345();}function collapseDuplicates(_0x300b73){const _0x54e525=a0_0x3baf76,_0x1995ff=_0x300b73['split']('\x0a');if(_0x1995ff[_0x54e525(0x81)]<=0x1)return _0x300b73;const _0xf0ca66=[];let _0x3a8fff=_0x1995ff[0x0],_0x1d90f7=0x1;for(let _0x4f56ad=0x1;_0x4f56ad<_0x1995ff[_0x54e525(0x81)];_0x4f56ad++){const _0xcf6782=_0x1995ff[_0x4f56ad];_0xcf6782===_0x3a8fff&&_0xcf6782[_0x54e525(0x7f)]()[_0x54e525(0x81)]>0x0?_0x1d90f7++:(_0x1d90f7>0x1?_0xf0ca66[_0x54e525(0x7e)](_0x3a8fff+_0x54e525(0x7c)+_0x1d90f7+']'):_0xf0ca66['push'](_0x3a8fff),_0x3a8fff=_0xcf6782,_0x1d90f7=0x1);}return _0x1d90f7>0x1?_0xf0ca66[_0x54e525(0x7e)](_0x3a8fff+'\x20[x'+_0x1d90f7+']'):_0xf0ca66['push'](_0x3a8fff),_0xf0ca66['join']('\x0a');}function softTruncate(_0xc658e4,_0x32ef08=0x4e20){const _0x28948a=a0_0x3baf76;if(_0xc658e4[_0x28948a(0x81)]<=_0x32ef08)return _0xc658e4;const _0x803628=_0xc658e4[_0x28948a(0x7a)]('\x0a');if(_0x803628[_0x28948a(0x81)]<=0xc8)return _0xc658e4;const _0x23ccc4=0x32,_0x4b5434=0x96,_0x282b22=_0x803628['slice'](0x0,_0x23ccc4),_0x23b17e=_0x803628[_0x28948a(0x82)](_0x803628[_0x28948a(0x81)]-_0x4b5434),_0x4db735=_0xc658e4[_0x28948a(0x81)]-(_0x282b22[_0x28948a(0x89)]('\x0a')['length']+_0x23b17e[_0x28948a(0x89)]('\x0a')[_0x28948a(0x81)]);return[..._0x282b22,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x4db735+_0x28948a(0x84),..._0x23b17e][_0x28948a(0x89)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5b637e=a0_0x39d7;(function(_0x262d3e,_0x317a33){const _0x4ce6df=a0_0x39d7,_0x5114a2=_0x262d3e();while(!![]){try{const _0x4f2eb8=parseInt(_0x4ce6df(0xb3))/0x1+parseInt(_0x4ce6df(0x9f))/0x2*(parseInt(_0x4ce6df(0xaa))/0x3)+-parseInt(_0x4ce6df(0x82))/0x4*(parseInt(_0x4ce6df(0x90))/0x5)+-parseInt(_0x4ce6df(0x9d))/0x6*(-parseInt(_0x4ce6df(0x8a))/0x7)+-parseInt(_0x4ce6df(0xa5))/0x8*(parseInt(_0x4ce6df(0xa2))/0x9)+parseInt(_0x4ce6df(0xab))/0xa*(-parseInt(_0x4ce6df(0x8b))/0xb)+parseInt(_0x4ce6df(0xb1))/0xc*(parseInt(_0x4ce6df(0xa4))/0xd);if(_0x4f2eb8===_0x317a33)break;else _0x5114a2['push'](_0x5114a2['shift']());}catch(_0x4da96a){_0x5114a2['push'](_0x5114a2['shift']());}}}(a0_0x5274,0xb2a07));function a0_0x39d7(_0x16e4ba,_0x5f4806){const _0x5274bf=a0_0x5274();return a0_0x39d7=function(_0x39d7e8,_0x4f2644){_0x39d7e8=_0x39d7e8-0x82;let _0x277c31=_0x5274bf[_0x39d7e8];return _0x277c31;},a0_0x39d7(_0x16e4ba,_0x5f4806);}var __createBinding=this&&this[a0_0x5b637e(0x85)]||(Object[a0_0x5b637e(0xa8)]?function(_0x10c7ab,_0x209c77,_0x3ce5dd,_0x484506){const _0x3d8fad=a0_0x5b637e;if(_0x484506===undefined)_0x484506=_0x3ce5dd;var _0x284784=Object[_0x3d8fad(0x9c)](_0x209c77,_0x3ce5dd);(!_0x284784||(_0x3d8fad(0x88)in _0x284784?!_0x209c77[_0x3d8fad(0xa9)]:_0x284784[_0x3d8fad(0x8e)]||_0x284784[_0x3d8fad(0xac)]))&&(_0x284784={'enumerable':!![],'get':function(){return _0x209c77[_0x3ce5dd];}}),Object[_0x3d8fad(0x9b)](_0x10c7ab,_0x484506,_0x284784);}:function(_0x1be252,_0x3aad0e,_0x651c23,_0x11687a){if(_0x11687a===undefined)_0x11687a=_0x651c23;_0x1be252[_0x11687a]=_0x3aad0e[_0x651c23];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5b637e(0xa8)]?function(_0x199793,_0x4c0d3a){const _0x25cc7c=a0_0x5b637e;Object[_0x25cc7c(0x9b)](_0x199793,_0x25cc7c(0xa3),{'enumerable':!![],'value':_0x4c0d3a});}:function(_0x2292b4,_0x932dbe){const _0x147863=a0_0x5b637e;_0x2292b4[_0x147863(0xa3)]=_0x932dbe;}),__importStar=this&&this['__importStar']||(function(){var _0x302c66=function(_0x571f0b){return _0x302c66=Object['getOwnPropertyNames']||function(_0x5ea430){const _0x169170=a0_0x39d7;var _0x5da90f=[];for(var _0x584f9a in _0x5ea430)if(Object[_0x169170(0x97)]['hasOwnProperty'][_0x169170(0x93)](_0x5ea430,_0x584f9a))_0x5da90f[_0x5da90f[_0x169170(0x86)]]=_0x584f9a;return _0x5da90f;},_0x302c66(_0x571f0b);};return function(_0x2999c3){const _0x2c2b82=a0_0x39d7;if(_0x2999c3&&_0x2999c3[_0x2c2b82(0xa9)])return _0x2999c3;var _0x3e25fa={};if(_0x2999c3!=null){for(var _0x2e5ae0=_0x302c66(_0x2999c3),_0x15e337=0x0;_0x15e337<_0x2e5ae0[_0x2c2b82(0x86)];_0x15e337++)if(_0x2e5ae0[_0x15e337]!==_0x2c2b82(0xa3))__createBinding(_0x3e25fa,_0x2999c3,_0x2e5ae0[_0x15e337]);}return __setModuleDefault(_0x3e25fa,_0x2999c3),_0x3e25fa;};}());Object[a0_0x5b637e(0x9b)](exports,a0_0x5b637e(0xa9),{'value':!![]}),exports[a0_0x5b637e(0x9e)]=filterGitStatus,exports['filterGitLog']=filterGitLog,exports[a0_0x5b637e(0x91)]=filterGitDiff;function a0_0x5274(){const _0x1ab778=['73125kYmxFs','default','13kJiXnN','152cQioJt','basename','\x20untracked\x20files)','create','__esModule','12gsCjMh','1137320xORbeW','configurable','replace','[file]\x20','trim','\x20(+','16607928kGmJhb','unknown_file','502734tQfktZ','dirname','split','diff\x20--git','map','join','substring','slice','4aOYZlZ','\x20\x20...\x20+','---','__createBinding','length','entries','get','No\x20modifications','970781IIYCOq','44toBgBz','\x0aUntracked\x20files:','\x20\x20??\x20','writable','/\x20(','4808585KNwgLm','filterGitDiff','---END---','call','filter','\x20more\x20modifications','+++','prototype','\x20lines\x20of\x20description)','\x0aChanges:','push','defineProperty','getOwnPropertyDescriptor','6oUJwUp','filterGitStatus','138632VZPqSP','startsWith','path'];a0_0x5274=function(){return _0x1ab778;};return a0_0x5274();}const path=__importStar(require(a0_0x5b637e(0xa1)));function filterGitStatus(_0x4a9ccb){const _0x105ffa=a0_0x5b637e,_0x4d44b5=_0x4a9ccb[_0x105ffa(0xb5)]('\x0a')[_0x105ffa(0xb7)](_0x38d477=>_0x38d477[_0x105ffa(0xaf)]())[_0x105ffa(0x94)](_0xcaae3d=>_0xcaae3d['length']>0x0);if(_0x4d44b5[_0x105ffa(0x86)]===0x0)return'Clean\x20working\x20tree';const _0x4b2964=[],_0x4cf351=[],_0x561a2c=[];for(const _0x33b8b3 of _0x4d44b5){if(_0x33b8b3[_0x105ffa(0xa0)]('##')){const _0x5b1330=_0x33b8b3[_0x105ffa(0xad)](/^##\s*/,'');_0x4b2964['push']('*\x20Branch:\x20'+_0x5b1330);}else _0x33b8b3[_0x105ffa(0xa0)]('??')?_0x4cf351[_0x105ffa(0x9a)](_0x33b8b3[_0x105ffa(0xb9)](0x3)[_0x105ffa(0xaf)]()):_0x561a2c[_0x105ffa(0x9a)](_0x33b8b3);}_0x561a2c[_0x105ffa(0x86)]>0x0&&(_0x4b2964[_0x105ffa(0x9a)](_0x105ffa(0x99)),_0x4b2964[_0x105ffa(0x9a)](..._0x561a2c[_0x105ffa(0xb7)](_0x2280f1=>'\x20\x20'+_0x2280f1)));if(_0x4cf351['length']>0x0){_0x4b2964['push'](_0x105ffa(0x8c));const _0x4685bb={},_0x28e901=[];for(const _0x45c822 of _0x4cf351){const _0x127cde=path[_0x105ffa(0xb4)](_0x45c822);_0x127cde==='.'||_0x127cde===''?_0x28e901[_0x105ffa(0x9a)](_0x45c822):(!_0x4685bb[_0x127cde]&&(_0x4685bb[_0x127cde]=[]),_0x4685bb[_0x127cde][_0x105ffa(0x9a)](path[_0x105ffa(0xa6)](_0x45c822)));}for(const [_0x1dd43f,_0x1aeea2]of Object[_0x105ffa(0x87)](_0x4685bb)){if(_0x1aeea2[_0x105ffa(0x86)]>0x5)_0x4b2964[_0x105ffa(0x9a)]('\x20\x20??\x20'+_0x1dd43f+_0x105ffa(0x8f)+_0x1aeea2[_0x105ffa(0x86)]+_0x105ffa(0xa7));else for(const _0x55c18f of _0x1aeea2){_0x4b2964[_0x105ffa(0x9a)](_0x105ffa(0x8d)+path['join'](_0x1dd43f,_0x55c18f));}}for(const _0xcd6fe2 of _0x28e901){_0x4b2964['push'](_0x105ffa(0x8d)+_0xcd6fe2);}}return _0x4b2964[_0x105ffa(0xb8)]('\x0a');}function filterGitLog(_0x1c7524){const _0x33a0e2=a0_0x5b637e,_0x493d5b=_0x1c7524[_0x33a0e2(0xb5)](_0x33a0e2(0x92))[_0x33a0e2(0xb7)](_0x1a59ef=>_0x1a59ef['trim']())['filter'](_0x3c7bb6=>_0x3c7bb6[_0x33a0e2(0x86)]>0x0);if(_0x493d5b[_0x33a0e2(0x86)]===0x0)return _0x1c7524;const _0x2b4318=[];for(const _0x5106f5 of _0x493d5b){const _0xefecb0=_0x5106f5[_0x33a0e2(0xb5)]('\x0a'),_0x460987=_0xefecb0[0x0]||'',_0x5494a4=_0xefecb0[_0x33a0e2(0xba)](0x1)[_0x33a0e2(0xb7)](_0x2d008b=>_0x2d008b['trim']())[_0x33a0e2(0x94)](_0x1f30e1=>_0x1f30e1[_0x33a0e2(0x86)]>0x0);_0x2b4318['push']('-\x20'+_0x460987),_0x5494a4[_0x33a0e2(0x86)]>0x0&&(_0x2b4318[_0x33a0e2(0x9a)]('\x20\x20'+_0x5494a4[0x0]),_0x5494a4[_0x33a0e2(0x86)]>0x1&&_0x2b4318[_0x33a0e2(0x9a)]('\x20\x20...\x20(+'+(_0x5494a4[_0x33a0e2(0x86)]-0x1)+_0x33a0e2(0x98)));}return _0x2b4318[_0x33a0e2(0xb8)]('\x0a');}function filterGitDiff(_0xaf08b0){const _0x5e988b=a0_0x5b637e,_0xa3fe5f=_0xaf08b0[_0x5e988b(0xb5)]('\x0a'),_0x4d0573=[];let _0x495368='',_0x26c50a=0x0,_0x4d6b2d=0x0,_0x4738ba=[];const _0x48a6f0=()=>{const _0x1fdc91=_0x5e988b;if(_0x495368&&(_0x26c50a>0x0||_0x4d6b2d>0x0)){_0x4d0573[_0x1fdc91(0x9a)](_0x1fdc91(0xae)+_0x495368+_0x1fdc91(0xb0)+_0x26c50a+'\x20-'+_0x4d6b2d+')');const _0xc579e4=0xa,_0x2a594c=_0x4738ba['slice'](0x0,_0xc579e4);for(const _0x560b5f of _0x2a594c){_0x4d0573[_0x1fdc91(0x9a)]('\x20\x20'+_0x560b5f);}const _0x2b0326=_0x26c50a+_0x4d6b2d-_0xc579e4;_0x2b0326>0x0&&_0x4d0573[_0x1fdc91(0x9a)](_0x1fdc91(0x83)+_0x2b0326+_0x1fdc91(0x95));}_0x26c50a=0x0,_0x4d6b2d=0x0,_0x4738ba=[];};for(const _0x631dd9 of _0xa3fe5f){if(_0x631dd9['startsWith'](_0x5e988b(0xb6))){_0x48a6f0();const _0x3a5a3b=_0x631dd9['match'](/\sb\/(.+)$/);_0x495368=_0x3a5a3b?_0x3a5a3b[0x1]:_0x5e988b(0xb2);}else{if(_0x631dd9[_0x5e988b(0xa0)]('+')&&!_0x631dd9[_0x5e988b(0xa0)](_0x5e988b(0x96)))_0x26c50a++,_0x4738ba[_0x5e988b(0x9a)](_0x631dd9);else _0x631dd9[_0x5e988b(0xa0)]('-')&&!_0x631dd9['startsWith'](_0x5e988b(0x84))&&(_0x4d6b2d++,_0x4738ba[_0x5e988b(0x9a)](_0x631dd9));}}_0x48a6f0();const _0xbc130f=_0x4d0573[_0x5e988b(0xb8)]('\x0a');return _0xbc130f[_0x5e988b(0x86)]>0x0?_0xbc130f:_0x5e988b(0x89);}
1
+ 'use strict';const a0_0x5d27c4=a0_0x2724;(function(_0x4ef282,_0x42e539){const _0x5e856c=a0_0x2724,_0x286fd0=_0x4ef282();while(!![]){try{const _0x22b9a4=parseInt(_0x5e856c(0x1d1))/0x1*(-parseInt(_0x5e856c(0x1bf))/0x2)+parseInt(_0x5e856c(0x1c4))/0x3*(-parseInt(_0x5e856c(0x1e5))/0x4)+parseInt(_0x5e856c(0x1e8))/0x5+-parseInt(_0x5e856c(0x1e6))/0x6*(parseInt(_0x5e856c(0x1ef))/0x7)+parseInt(_0x5e856c(0x1d9))/0x8+-parseInt(_0x5e856c(0x1c0))/0x9*(-parseInt(_0x5e856c(0x1b9))/0xa)+parseInt(_0x5e856c(0x1d8))/0xb*(parseInt(_0x5e856c(0x1c9))/0xc);if(_0x22b9a4===_0x42e539)break;else _0x286fd0['push'](_0x286fd0['shift']());}catch(_0x542f16){_0x286fd0['push'](_0x286fd0['shift']());}}}(a0_0x5653,0xcd261));function a0_0x2724(_0x6a134a,_0x4aa6ff){_0x6a134a=_0x6a134a-0x1b6;const _0x56537c=a0_0x5653();let _0x2724f1=_0x56537c[_0x6a134a];return _0x2724f1;}var __createBinding=this&&this[a0_0x5d27c4(0x1ec)]||(Object[a0_0x5d27c4(0x1b8)]?function(_0x14b2d0,_0x3ca20d,_0x262ae0,_0x5cfcd0){const _0x44d8c9=a0_0x5d27c4;if(_0x5cfcd0===undefined)_0x5cfcd0=_0x262ae0;var _0x2f4594=Object[_0x44d8c9(0x1bd)](_0x3ca20d,_0x262ae0);(!_0x2f4594||(_0x44d8c9(0x1bb)in _0x2f4594?!_0x3ca20d[_0x44d8c9(0x1d7)]:_0x2f4594[_0x44d8c9(0x1c8)]||_0x2f4594['configurable']))&&(_0x2f4594={'enumerable':!![],'get':function(){return _0x3ca20d[_0x262ae0];}}),Object['defineProperty'](_0x14b2d0,_0x5cfcd0,_0x2f4594);}:function(_0x53e23a,_0x5ef0b7,_0x30f06b,_0x28fc35){if(_0x28fc35===undefined)_0x28fc35=_0x30f06b;_0x53e23a[_0x28fc35]=_0x5ef0b7[_0x30f06b];}),__setModuleDefault=this&&this[a0_0x5d27c4(0x1dd)]||(Object[a0_0x5d27c4(0x1b8)]?function(_0x4016f8,_0x548181){const _0x49df6d=a0_0x5d27c4;Object[_0x49df6d(0x1de)](_0x4016f8,_0x49df6d(0x1da),{'enumerable':!![],'value':_0x548181});}:function(_0x553104,_0x2e8f02){_0x553104['default']=_0x2e8f02;}),__importStar=this&&this[a0_0x5d27c4(0x1cf)]||(function(){var _0x4105bf=function(_0x5b6799){const _0x17685e=a0_0x2724;return _0x4105bf=Object[_0x17685e(0x1d5)]||function(_0x128ca1){const _0x35b8a8=_0x17685e;var _0x472230=[];for(var _0x3d552c in _0x128ca1)if(Object[_0x35b8a8(0x1cd)][_0x35b8a8(0x1c3)]['call'](_0x128ca1,_0x3d552c))_0x472230[_0x472230['length']]=_0x3d552c;return _0x472230;},_0x4105bf(_0x5b6799);};return function(_0x298772){const _0x5377c2=a0_0x2724;if(_0x298772&&_0x298772[_0x5377c2(0x1d7)])return _0x298772;var _0x5997d0={};if(_0x298772!=null){for(var _0x112ed8=_0x4105bf(_0x298772),_0x40d85e=0x0;_0x40d85e<_0x112ed8[_0x5377c2(0x1d4)];_0x40d85e++)if(_0x112ed8[_0x40d85e]!=='default')__createBinding(_0x5997d0,_0x298772,_0x112ed8[_0x40d85e]);}return __setModuleDefault(_0x5997d0,_0x298772),_0x5997d0;};}());Object['defineProperty'](exports,a0_0x5d27c4(0x1d7),{'value':!![]}),exports[a0_0x5d27c4(0x1d3)]=filterGitStatus,exports[a0_0x5d27c4(0x1c1)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x5d27c4(0x1c5)));function a0_0x5653(){const _0x7da946=['*\x20Branch:\x20','\x0aUntracked\x20files:','__setModuleDefault','defineProperty','\x20\x20??\x20','No\x20modifications','---','unknown_file','join','startsWith','48WpIIeN','210678fSHlSF','[file]\x20','2100700gLBSqt','\x0aChanges:','split','map','__createBinding','/\x20(','\x20more\x20modifications','287DEmdxo','slice','basename','---END---','create','50ovQJZm','match','get','\x20untracked\x20files)','getOwnPropertyDescriptor','dirname','146OnDcAK','1668717XQXZxK','filterGitLog','trim','hasOwnProperty','162264TIRelk','path','substring','entries','writable','18832992YZKKTu','diff\x20--git','Clean\x20working\x20tree','\x20lines\x20of\x20description)','prototype','replace','__importStar','filter','2957uMSqVZ','\x20\x20...\x20(+','filterGitStatus','length','getOwnPropertyNames','push','__esModule','11HyBkSi','1825744yjpFga','default'];a0_0x5653=function(){return _0x7da946;};return a0_0x5653();}function filterGitStatus(_0xc4fab2){const _0x20c73f=a0_0x5d27c4,_0x1ce0f5=_0xc4fab2[_0x20c73f(0x1ea)]('\x0a')[_0x20c73f(0x1eb)](_0x2349f1=>_0x2349f1[_0x20c73f(0x1c2)]())['filter'](_0x474f13=>_0x474f13[_0x20c73f(0x1d4)]>0x0);if(_0x1ce0f5[_0x20c73f(0x1d4)]===0x0)return _0x20c73f(0x1cb);const _0xc7df16=[],_0x13c61e=[],_0x3e25ab=[];for(const _0x32ba67 of _0x1ce0f5){if(_0x32ba67[_0x20c73f(0x1e4)]('##')){const _0x53acad=_0x32ba67[_0x20c73f(0x1ce)](/^##\s*/,'');_0xc7df16[_0x20c73f(0x1d6)](_0x20c73f(0x1db)+_0x53acad);}else _0x32ba67[_0x20c73f(0x1e4)]('??')?_0x13c61e[_0x20c73f(0x1d6)](_0x32ba67[_0x20c73f(0x1c6)](0x3)['trim']()):_0x3e25ab['push'](_0x32ba67);}_0x3e25ab[_0x20c73f(0x1d4)]>0x0&&(_0xc7df16[_0x20c73f(0x1d6)](_0x20c73f(0x1e9)),_0xc7df16[_0x20c73f(0x1d6)](..._0x3e25ab[_0x20c73f(0x1eb)](_0x90f8b7=>'\x20\x20'+_0x90f8b7)));if(_0x13c61e[_0x20c73f(0x1d4)]>0x0){_0xc7df16[_0x20c73f(0x1d6)](_0x20c73f(0x1dc));const _0x5b4210={},_0x48b32e=[];for(const _0x4bb595 of _0x13c61e){const _0x310098=path[_0x20c73f(0x1be)](_0x4bb595);_0x310098==='.'||_0x310098===''?_0x48b32e[_0x20c73f(0x1d6)](_0x4bb595):(!_0x5b4210[_0x310098]&&(_0x5b4210[_0x310098]=[]),_0x5b4210[_0x310098][_0x20c73f(0x1d6)](path[_0x20c73f(0x1b6)](_0x4bb595)));}for(const [_0x2dab3d,_0x3fec9f]of Object[_0x20c73f(0x1c7)](_0x5b4210)){if(_0x3fec9f[_0x20c73f(0x1d4)]>0x5)_0xc7df16['push'](_0x20c73f(0x1df)+_0x2dab3d+_0x20c73f(0x1ed)+_0x3fec9f['length']+_0x20c73f(0x1bc));else for(const _0x34e0aa of _0x3fec9f){_0xc7df16[_0x20c73f(0x1d6)](_0x20c73f(0x1df)+path[_0x20c73f(0x1e3)](_0x2dab3d,_0x34e0aa));}}for(const _0x577092 of _0x48b32e){_0xc7df16[_0x20c73f(0x1d6)](_0x20c73f(0x1df)+_0x577092);}}return _0xc7df16['join']('\x0a');}function filterGitLog(_0x168df3){const _0x47af02=a0_0x5d27c4,_0x14a3d2=_0x168df3[_0x47af02(0x1ea)](_0x47af02(0x1b7))['map'](_0x5dc617=>_0x5dc617[_0x47af02(0x1c2)]())[_0x47af02(0x1d0)](_0x2baea2=>_0x2baea2['length']>0x0);if(_0x14a3d2[_0x47af02(0x1d4)]===0x0)return _0x168df3;const _0x5abc12=[];for(const _0x3cb16c of _0x14a3d2){const _0x577390=_0x3cb16c[_0x47af02(0x1ea)]('\x0a'),_0x5618e0=_0x577390[0x0]||'',_0x5bc3e7=_0x577390['slice'](0x1)['map'](_0x131c5d=>_0x131c5d[_0x47af02(0x1c2)]())[_0x47af02(0x1d0)](_0x40c53e=>_0x40c53e['length']>0x0);_0x5abc12[_0x47af02(0x1d6)]('-\x20'+_0x5618e0),_0x5bc3e7[_0x47af02(0x1d4)]>0x0&&(_0x5abc12[_0x47af02(0x1d6)]('\x20\x20'+_0x5bc3e7[0x0]),_0x5bc3e7[_0x47af02(0x1d4)]>0x1&&_0x5abc12[_0x47af02(0x1d6)](_0x47af02(0x1d2)+(_0x5bc3e7[_0x47af02(0x1d4)]-0x1)+_0x47af02(0x1cc)));}return _0x5abc12[_0x47af02(0x1e3)]('\x0a');}function filterGitDiff(_0x42ce0a){const _0x21c410=a0_0x5d27c4,_0x54ca16=_0x42ce0a[_0x21c410(0x1ea)]('\x0a'),_0x2cbd50=[];let _0x2ab5a4='',_0x18538a=0x0,_0x590232=0x0,_0x31571c=[];const _0x3a2b29=()=>{const _0x38ef09=_0x21c410;if(_0x2ab5a4&&(_0x18538a>0x0||_0x590232>0x0)){_0x2cbd50[_0x38ef09(0x1d6)](_0x38ef09(0x1e7)+_0x2ab5a4+'\x20(+'+_0x18538a+'\x20-'+_0x590232+')');const _0x552a08=0xa,_0x5a1981=_0x31571c[_0x38ef09(0x1f0)](0x0,_0x552a08);for(const _0x23423e of _0x5a1981){_0x2cbd50['push']('\x20\x20'+_0x23423e);}const _0x580c3d=_0x18538a+_0x590232-_0x552a08;_0x580c3d>0x0&&_0x2cbd50['push']('\x20\x20...\x20+'+_0x580c3d+_0x38ef09(0x1ee));}_0x18538a=0x0,_0x590232=0x0,_0x31571c=[];};for(const _0x50f1a2 of _0x54ca16){if(_0x50f1a2[_0x21c410(0x1e4)](_0x21c410(0x1ca))){_0x3a2b29();const _0x2456e0=_0x50f1a2[_0x21c410(0x1ba)](/\sb\/(.+)$/);_0x2ab5a4=_0x2456e0?_0x2456e0[0x1]:_0x21c410(0x1e2);}else{if(_0x50f1a2[_0x21c410(0x1e4)]('+')&&!_0x50f1a2[_0x21c410(0x1e4)]('+++'))_0x18538a++,_0x31571c[_0x21c410(0x1d6)](_0x50f1a2);else _0x50f1a2[_0x21c410(0x1e4)]('-')&&!_0x50f1a2[_0x21c410(0x1e4)](_0x21c410(0x1e1))&&(_0x590232++,_0x31571c[_0x21c410(0x1d6)](_0x50f1a2));}}_0x3a2b29();const _0x1f1dfc=_0x2cbd50['join']('\x0a');return _0x1f1dfc[_0x21c410(0x1d4)]>0x0?_0x1f1dfc:_0x21c410(0x1e0);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x57483e=a0_0xb762;(function(_0x3e4550,_0x29087d){const _0x4f09da=a0_0xb762,_0x1bc523=_0x3e4550();while(!![]){try{const _0x26e8f4=parseInt(_0x4f09da(0x177))/0x1+parseInt(_0x4f09da(0x173))/0x2*(parseInt(_0x4f09da(0x170))/0x3)+parseInt(_0x4f09da(0x18b))/0x4*(parseInt(_0x4f09da(0x17e))/0x5)+-parseInt(_0x4f09da(0x189))/0x6*(parseInt(_0x4f09da(0x165))/0x7)+-parseInt(_0x4f09da(0x181))/0x8*(-parseInt(_0x4f09da(0x17d))/0x9)+-parseInt(_0x4f09da(0x17b))/0xa+-parseInt(_0x4f09da(0x168))/0xb;if(_0x26e8f4===_0x29087d)break;else _0x1bc523['push'](_0x1bc523['shift']());}catch(_0x30f53a){_0x1bc523['push'](_0x1bc523['shift']());}}}(a0_0x4a00,0x5d3b3));function a0_0xb762(_0x45e27f,_0x33117f){const _0x4a001b=a0_0x4a00();return a0_0xb762=function(_0xb76294,_0x2b9aaf){_0xb76294=_0xb76294-0x163;let _0x8549df=_0x4a001b[_0xb76294];return _0x8549df;},a0_0xb762(_0x45e27f,_0x33117f);}function a0_0x4a00(){const _0x1fa196=['466058SSZEfd','===\x20RUN','Go\x20test:\x20','length','576240BPKtQE','\x20issues\x20found','32985cNIXDN','165UgkpHu','...\x20+','\x20skipped','280IPSLXZ','filter','slice','push','trim','Go\x20vet:\x20no\x20issues\x20found','min','startsWith','604776PgxROR','\x20\x20...\x20+','31976anrNmm','\x20passed','__esModule','42wlvTMx','\x20\x20\x20\x20','Go\x20vet:\x20','4713335qQsPMF','PASS','Go\x20test:\x20no\x20test\x20files','Go\x20test:\x20all\x20tests\x20passed','match','lines','\x20more\x20lines','\x0aFailures:','447UATuXX','includes','FAIL','8250DuzNro','\x20passed,\x20','join','\x20more\x20failures'];a0_0x4a00=function(){return _0x1fa196;};return a0_0x4a00();}Object['defineProperty'](exports,a0_0x57483e(0x164),{'value':!![]}),exports['filterGoTest']=filterGoTest,exports['filterGoVet']=filterGoVet;function filterGoTest(_0x390047){const _0x32f2c4=a0_0x57483e,_0x44cd25=_0x390047['split']('\x0a');let _0x520c40=0x0,_0x252bc8=0x0,_0x4cd948=0x0;const _0xf7ae24=[],_0x2a1d40=[];let _0x2b56fd=null;for(const _0x485fc2 of _0x44cd25){const _0x53a6be=_0x485fc2['trim'](),_0x2d7402=_0x53a6be[_0x32f2c4(0x16c)](/^ok\s+\S+\s+[\d.]+s/);if(_0x2d7402){_0x2a1d40[_0x32f2c4(0x184)](_0x53a6be);continue;}const _0x1f6251=_0x53a6be[_0x32f2c4(0x16c)](/^FAIL\s+\S+/);if(_0x1f6251){_0x2a1d40['push'](_0x53a6be);continue;}const _0x364143=_0x53a6be[_0x32f2c4(0x16c)](/^--- PASS:/);if(_0x364143){_0x520c40++;continue;}const _0x4179f9=_0x53a6be[_0x32f2c4(0x16c)](/^--- FAIL:\s+(\S+)/);if(_0x4179f9){if(_0x2b56fd)_0xf7ae24['push'](_0x2b56fd);_0x2b56fd={'name':_0x4179f9[0x1],'lines':[]},_0x252bc8++;continue;}if(_0x53a6be[_0x32f2c4(0x188)]('---\x20SKIP:')){_0x4cd948++;continue;}_0x2b56fd&&_0x53a6be[_0x32f2c4(0x17a)]>0x0&&!_0x53a6be[_0x32f2c4(0x188)]('===\x20RUN')&&_0x2b56fd[_0x32f2c4(0x16d)][_0x32f2c4(0x184)](_0x485fc2),_0x53a6be[_0x32f2c4(0x188)](_0x32f2c4(0x178))&&(_0x2b56fd&&(_0xf7ae24[_0x32f2c4(0x184)](_0x2b56fd),_0x2b56fd=null));}if(_0x2b56fd)_0xf7ae24[_0x32f2c4(0x184)](_0x2b56fd);if(_0x520c40===0x0&&_0x252bc8===0x0&&_0x4cd948===0x0){if(_0x390047['includes'](_0x32f2c4(0x169))&&!_0x390047[_0x32f2c4(0x171)](_0x32f2c4(0x172)))return _0x32f2c4(0x16b);if(_0x390047['includes']('no\x20test\x20files'))return _0x32f2c4(0x16a);return _0x390047;}if(_0x252bc8===0x0){const _0x1a6360=[_0x32f2c4(0x179)+_0x520c40+_0x32f2c4(0x163)];if(_0x4cd948>0x0)_0x1a6360[_0x32f2c4(0x184)](_0x4cd948+_0x32f2c4(0x180));return _0x1a6360[_0x32f2c4(0x175)](',\x20');}const _0x4230e8=[_0x32f2c4(0x179)+_0x520c40+_0x32f2c4(0x174)+_0x252bc8+'\x20failed,\x20'+_0x4cd948+_0x32f2c4(0x180)];if(_0xf7ae24[_0x32f2c4(0x17a)]>0x0){_0x4230e8[_0x32f2c4(0x184)](_0x32f2c4(0x16f));const _0x1fc23d=0x3;for(let _0x21be57=0x0;_0x21be57<Math[_0x32f2c4(0x187)](_0xf7ae24[_0x32f2c4(0x17a)],_0x1fc23d);_0x21be57++){const _0x225dab=_0xf7ae24[_0x21be57];_0x4230e8[_0x32f2c4(0x184)]('\x20\x20'+(_0x21be57+0x1)+'.\x20'+_0x225dab['name']);for(const _0x2fc0fd of _0x225dab[_0x32f2c4(0x16d)][_0x32f2c4(0x183)](0x0,0x5)){_0x4230e8['push'](_0x32f2c4(0x166)+_0x2fc0fd[_0x32f2c4(0x185)]());}_0x225dab[_0x32f2c4(0x16d)]['length']>0x5&&_0x4230e8[_0x32f2c4(0x184)]('\x20\x20\x20\x20...\x20+'+(_0x225dab[_0x32f2c4(0x16d)][_0x32f2c4(0x17a)]-0x5)+_0x32f2c4(0x16e));}_0xf7ae24[_0x32f2c4(0x17a)]>_0x1fc23d&&_0x4230e8[_0x32f2c4(0x184)](_0x32f2c4(0x18a)+(_0xf7ae24[_0x32f2c4(0x17a)]-_0x1fc23d)+_0x32f2c4(0x176));}return _0x4230e8[_0x32f2c4(0x175)]('\x0a');}function filterGoVet(_0x33cd4b){const _0x282e1b=a0_0x57483e,_0x24ac33=_0x33cd4b['split']('\x0a')[_0x282e1b(0x182)](_0x18afe5=>_0x18afe5[_0x282e1b(0x185)]()[_0x282e1b(0x17a)]>0x0);if(_0x24ac33[_0x282e1b(0x17a)]===0x0)return _0x282e1b(0x186);if(_0x24ac33[_0x282e1b(0x17a)]<=0x14)return _0x33cd4b[_0x282e1b(0x185)]();const _0x3ad3c0=[_0x282e1b(0x167)+_0x24ac33['length']+_0x282e1b(0x17c)];return _0x3ad3c0[_0x282e1b(0x184)](..._0x24ac33['slice'](0x0,0xa)),_0x24ac33[_0x282e1b(0x17a)]>0xa&&_0x3ad3c0[_0x282e1b(0x184)](_0x282e1b(0x17f)+(_0x24ac33[_0x282e1b(0x17a)]-0xa)+'\x20more\x20issues'),_0x3ad3c0['join']('\x0a');}
1
+ 'use strict';const a0_0x4f4c96=a0_0x57c2;(function(_0x1e53c4,_0x38f8c9){const _0x1c902e=a0_0x57c2,_0x5c7034=_0x1e53c4();while(!![]){try{const _0x25390e=-parseInt(_0x1c902e(0xda))/0x1*(-parseInt(_0x1c902e(0xfa))/0x2)+-parseInt(_0x1c902e(0x100))/0x3*(parseInt(_0x1c902e(0xf0))/0x4)+parseInt(_0x1c902e(0xeb))/0x5+-parseInt(_0x1c902e(0xec))/0x6*(parseInt(_0x1c902e(0xea))/0x7)+parseInt(_0x1c902e(0xf1))/0x8*(parseInt(_0x1c902e(0xe6))/0x9)+parseInt(_0x1c902e(0xfc))/0xa*(-parseInt(_0x1c902e(0xfd))/0xb)+parseInt(_0x1c902e(0x101))/0xc;if(_0x25390e===_0x38f8c9)break;else _0x5c7034['push'](_0x5c7034['shift']());}catch(_0xfe738f){_0x5c7034['push'](_0x5c7034['shift']());}}}(a0_0x13b9,0xa516e));function a0_0x57c2(_0x506112,_0x152bb1){_0x506112=_0x506112-0xd8;const _0x13b96a=a0_0x13b9();let _0x57c29c=_0x13b96a[_0x506112];return _0x57c29c;}Object[a0_0x4f4c96(0xe9)](exports,a0_0x4f4c96(0xe1),{'value':!![]}),exports[a0_0x4f4c96(0xef)]=filterGoTest,exports[a0_0x4f4c96(0xe2)]=filterGoVet;function a0_0x13b9(){const _0x341aec=['Go\x20test:\x20','743694vngEbU','5958024VCMHIM','length','lines','\x20\x20\x20\x20...\x20+','FAIL','\x20passed,\x20','includes','353258wsDuNv','match','\x20more\x20lines','\x0aFailures:','===\x20RUN','Go\x20test:\x20all\x20tests\x20passed','startsWith','__esModule','filterGoVet','slice','\x20skipped','join','407457iJsDiw','---\x20SKIP:','push','defineProperty','1537676iJBmxn','554845FVDumt','6SsmlNb','min','Go\x20vet:\x20','filterGoTest','4RSItQX','24ABhIvk','\x20passed','...\x20+','\x20more\x20failures','\x20issues\x20found','Go\x20vet:\x20no\x20issues\x20found','no\x20test\x20files','trim','\x20\x20\x20\x20','6YFMtDl','\x20\x20...\x20+','60BuCUQl','1208702xJVzLO','PASS'];a0_0x13b9=function(){return _0x341aec;};return a0_0x13b9();}function filterGoTest(_0x51d9fa){const _0x49a154=a0_0x4f4c96,_0x41853c=_0x51d9fa['split']('\x0a');let _0x19ba49=0x0,_0xe52994=0x0,_0x33d2c8=0x0;const _0xfc6739=[],_0x3d8a02=[];let _0x267178=null;for(const _0x1a5d34 of _0x41853c){const _0x139967=_0x1a5d34[_0x49a154(0xf8)](),_0x3f5c6e=_0x139967[_0x49a154(0xdb)](/^ok\s+\S+\s+[\d.]+s/);if(_0x3f5c6e){_0x3d8a02['push'](_0x139967);continue;}const _0x23325b=_0x139967[_0x49a154(0xdb)](/^FAIL\s+\S+/);if(_0x23325b){_0x3d8a02[_0x49a154(0xe8)](_0x139967);continue;}const _0xd710cc=_0x139967[_0x49a154(0xdb)](/^--- PASS:/);if(_0xd710cc){_0x19ba49++;continue;}const _0x438d63=_0x139967[_0x49a154(0xdb)](/^--- FAIL:\s+(\S+)/);if(_0x438d63){if(_0x267178)_0xfc6739[_0x49a154(0xe8)](_0x267178);_0x267178={'name':_0x438d63[0x1],'lines':[]},_0xe52994++;continue;}if(_0x139967[_0x49a154(0xe0)](_0x49a154(0xe7))){_0x33d2c8++;continue;}_0x267178&&_0x139967[_0x49a154(0x102)]>0x0&&!_0x139967[_0x49a154(0xe0)](_0x49a154(0xde))&&_0x267178[_0x49a154(0x103)]['push'](_0x1a5d34),_0x139967[_0x49a154(0xe0)]('===\x20RUN')&&(_0x267178&&(_0xfc6739[_0x49a154(0xe8)](_0x267178),_0x267178=null));}if(_0x267178)_0xfc6739[_0x49a154(0xe8)](_0x267178);if(_0x19ba49===0x0&&_0xe52994===0x0&&_0x33d2c8===0x0){if(_0x51d9fa[_0x49a154(0xd9)](_0x49a154(0xfe))&&!_0x51d9fa[_0x49a154(0xd9)](_0x49a154(0x105)))return _0x49a154(0xdf);if(_0x51d9fa[_0x49a154(0xd9)](_0x49a154(0xf7)))return'Go\x20test:\x20no\x20test\x20files';return _0x51d9fa;}if(_0xe52994===0x0){const _0x1b170f=[_0x49a154(0xff)+_0x19ba49+_0x49a154(0xf2)];if(_0x33d2c8>0x0)_0x1b170f[_0x49a154(0xe8)](_0x33d2c8+_0x49a154(0xe4));return _0x1b170f[_0x49a154(0xe5)](',\x20');}const _0x48d3c5=[_0x49a154(0xff)+_0x19ba49+_0x49a154(0xd8)+_0xe52994+'\x20failed,\x20'+_0x33d2c8+_0x49a154(0xe4)];if(_0xfc6739[_0x49a154(0x102)]>0x0){_0x48d3c5[_0x49a154(0xe8)](_0x49a154(0xdd));const _0x109ff0=0x3;for(let _0x32b67f=0x0;_0x32b67f<Math[_0x49a154(0xed)](_0xfc6739['length'],_0x109ff0);_0x32b67f++){const _0x5495db=_0xfc6739[_0x32b67f];_0x48d3c5[_0x49a154(0xe8)]('\x20\x20'+(_0x32b67f+0x1)+'.\x20'+_0x5495db['name']);for(const _0x194bc5 of _0x5495db['lines']['slice'](0x0,0x5)){_0x48d3c5['push'](_0x49a154(0xf9)+_0x194bc5[_0x49a154(0xf8)]());}_0x5495db[_0x49a154(0x103)]['length']>0x5&&_0x48d3c5[_0x49a154(0xe8)](_0x49a154(0x104)+(_0x5495db[_0x49a154(0x103)][_0x49a154(0x102)]-0x5)+_0x49a154(0xdc));}_0xfc6739[_0x49a154(0x102)]>_0x109ff0&&_0x48d3c5[_0x49a154(0xe8)](_0x49a154(0xfb)+(_0xfc6739[_0x49a154(0x102)]-_0x109ff0)+_0x49a154(0xf4));}return _0x48d3c5[_0x49a154(0xe5)]('\x0a');}function filterGoVet(_0x45d2e2){const _0x45de28=a0_0x4f4c96,_0x342bde=_0x45d2e2['split']('\x0a')['filter'](_0x55618d=>_0x55618d[_0x45de28(0xf8)]()['length']>0x0);if(_0x342bde[_0x45de28(0x102)]===0x0)return _0x45de28(0xf6);if(_0x342bde['length']<=0x14)return _0x45d2e2[_0x45de28(0xf8)]();const _0x100ec8=[_0x45de28(0xee)+_0x342bde[_0x45de28(0x102)]+_0x45de28(0xf5)];return _0x100ec8[_0x45de28(0xe8)](..._0x342bde[_0x45de28(0xe3)](0x0,0xa)),_0x342bde[_0x45de28(0x102)]>0xa&&_0x100ec8[_0x45de28(0xe8)](_0x45de28(0xf3)+(_0x342bde[_0x45de28(0x102)]-0xa)+'\x20more\x20issues'),_0x100ec8['join']('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x25fee4=a0_0x37b6;(function(_0x44f208,_0x331882){const _0x3054a9=a0_0x37b6,_0x40f88f=_0x44f208();while(!![]){try{const _0x33ca02=parseInt(_0x3054a9(0x10b))/0x1*(-parseInt(_0x3054a9(0x107))/0x2)+-parseInt(_0x3054a9(0x12f))/0x3+-parseInt(_0x3054a9(0xdf))/0x4*(parseInt(_0x3054a9(0x122))/0x5)+parseInt(_0x3054a9(0x137))/0x6+parseInt(_0x3054a9(0xe9))/0x7*(parseInt(_0x3054a9(0x120))/0x8)+parseInt(_0x3054a9(0x124))/0x9+parseInt(_0x3054a9(0x10a))/0xa;if(_0x33ca02===_0x331882)break;else _0x40f88f['push'](_0x40f88f['shift']());}catch(_0x23d595){_0x40f88f['push'](_0x40f88f['shift']());}}}(a0_0x1151,0x8a239));function a0_0x1151(){const _0x3155a3=['4pZfVeO','vitest','trim\x20npx','trim\x20go','filterJestVitest','npm\x20i\x20','toLowerCase','./generic','trim\x20pnpm','./git','291739ySezAC','trim\x20ls','rewriteCommand','\x20tree\x20','trim\x20pip','ruff\x20','../redactor','filterPipInstall','trim\x20npm','ruff\x20check','cargo\x20check','softTruncate','filterRuff','yadm\x20status','startsWith','defineProperty','length','filterTree','yadm\x20log','pnpm\x20install','jest','git\x20show','npm\x20test','collapseDuplicates','go\x20vet','trim\x20docker','filterGrep','trim\x20read','cargo\x20clippy','__esModule','663892RFJksQ','kubectl','git\x20diff','7511520ErbdVJ','1xEUxpk','trim\x20tree','test','redact','cargo\x20test','pattern','cargo\x20build','./devops','filterCargoBuild','filterDockerLogs','filterGoTest','trim\x20gh','npm\x20i','compressOutput','trim','filterPytest','./rust','match','\x20tree','filterDockerPs','pip3\x20install','200cpRMxC','endsWith','5587255WjBxNE','get','4552263MHwter','stripAnsi','trim\x20','includes','\x20ls\x20','filterNpmInstall','\x20ls','git\x20status','trim\x20glab','./shell','./js','1894230fCbXAi','yarn\x20test','trim\x20pytest','trim\x20find','./go','pytest','trim\x20git','trim\x20kubectl','2086440LBkXJw'];a0_0x1151=function(){return _0x3155a3;};return a0_0x1151();}Object[a0_0x25fee4(0xf8)](exports,a0_0x25fee4(0x106),{'value':!![]}),exports[a0_0x25fee4(0x118)]=compressOutput,exports[a0_0x25fee4(0xeb)]=rewriteCommand;const generic_1=require(a0_0x25fee4(0xe6)),git_1=require(a0_0x25fee4(0xe8)),python_1=require('./python'),js_1=require(a0_0x25fee4(0x12e)),shell_1=require(a0_0x25fee4(0x12d)),rust_1=require(a0_0x25fee4(0x11b)),go_1=require(a0_0x25fee4(0x133)),devops_1=require(a0_0x25fee4(0x112)),redactor_1=require(a0_0x25fee4(0xef));function compressOutput(_0x58d414,_0x4a2dd7,_0x34553c,_0x264684=!![]){const _0x4fbc70=a0_0x25fee4,_0x43817c=_0x58d414[_0x4fbc70(0x119)]();let _0x526022=_0x4a2dd7;_0x34553c['trim']()[_0x4fbc70(0xf9)]>0x0&&(_0x526022=_0x4a2dd7+'\x0a'+_0x34553c);let _0x5ed440=(0x0,generic_1[_0x4fbc70(0x125)])(_0x526022);_0x264684&&(_0x5ed440=redactor_1['redactor'][_0x4fbc70(0x10e)](_0x5ed440));const _0x27080a=_0x43817c[_0x4fbc70(0xe5)]();try{if(_0x27080a['includes'](_0x4fbc70(0x12b))||_0x27080a['includes'](_0x4fbc70(0xf6)))return(0x0,git_1['filterGitStatus'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)]('git\x20log')||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xfb)))return(0x0,git_1['filterGitLog'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x109))||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xfe))||_0x27080a['includes']('yadm\x20diff'))return(0x0,git_1['filterGitDiff'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x134))||_0x27080a[_0x4fbc70(0x11c)](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x4fbc70(0x11a)])(_0x5ed440);if(_0x27080a['includes']('pip\x20install')||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x11f)))return(0x0,python_1[_0x4fbc70(0xf0)])(_0x5ed440);if(_0x27080a['includes'](_0x4fbc70(0xf2))||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xee)))return(0x0,devops_1[_0x4fbc70(0xf5)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)]('npm\x20install')||_0x27080a['includes'](_0x4fbc70(0xe4))||_0x27080a[_0x4fbc70(0x121)](_0x4fbc70(0x117))||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xfc))||_0x27080a[_0x4fbc70(0x127)]('yarn\x20install'))return(0x0,js_1[_0x4fbc70(0x129)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xfd))||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xe0)))return(0x0,js_1['filterJestVitest'])(_0x5ed440);if(_0x27080a['includes'](_0x4fbc70(0xff))||_0x27080a[_0x4fbc70(0x127)]('pnpm\x20test')||_0x27080a['includes'](_0x4fbc70(0x130))||_0x27080a['includes']('npm\x20run\x20test'))return(0x0,js_1[_0x4fbc70(0xe3)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x10f)))return(0x0,rust_1['filterCargoTest'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x111))||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xf3))||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x105)))return(0x0,rust_1[_0x4fbc70(0x113)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)]('go\x20test'))return(0x0,go_1[_0x4fbc70(0x115)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x101)))return(0x0,go_1['filterGoVet'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x11c)](/docker\s+ps/))return(0x0,devops_1[_0x4fbc70(0x11e)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x11c)](/docker\s+images/))return(0x0,devops_1['filterDockerImages'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x11c)](/docker\s+logs/))return(0x0,devops_1[_0x4fbc70(0x114)])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0x108))){const _0x12687b=_0x27080a[_0x4fbc70(0x11c)](/kubectl\s+(get|logs|describe|apply)/),_0x228421=_0x12687b?_0x12687b[0x1]:_0x4fbc70(0x123);return(0x0,devops_1['filterKubectl'])(_0x5ed440,_0x228421);}if(_0x27080a['match'](/^(ls|dir)(\s|$)/)||_0x27080a['includes'](_0x4fbc70(0x128))||_0x27080a[_0x4fbc70(0x121)](_0x4fbc70(0x12a)))return(0x0,shell_1['filterLs'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x11c)](/^tree(\s|$)/)||_0x27080a[_0x4fbc70(0x127)](_0x4fbc70(0xec))||_0x27080a['endsWith'](_0x4fbc70(0x11d)))return(0x0,shell_1[_0x4fbc70(0xfa)])(_0x5ed440);if(_0x27080a['match'](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1['filterCat'])(_0x5ed440);if(_0x27080a[_0x4fbc70(0x11c)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1[_0x4fbc70(0x103)])(_0x5ed440);}catch(_0x37159e){}return _0x5ed440=(0x0,generic_1[_0x4fbc70(0x100)])(_0x5ed440),_0x5ed440=(0x0,generic_1[_0x4fbc70(0xf4)])(_0x5ed440,0x4e20),_0x5ed440;}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_0x25fee4(0x135)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x25fee4(0x116)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x25fee4(0x12c)},{'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_0x25fee4(0xe7)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x25fee4(0xf1)},{'pattern':/^npx\s+/,'prefix':a0_0x25fee4(0xe1)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x25fee4(0x104)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x25fee4(0xea)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x25fee4(0x10c)},{'pattern':/^find\s+/,'prefix':a0_0x25fee4(0x132)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x25fee4(0x102)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x25fee4(0x136)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x25fee4(0x131)},{'pattern':/^ruff\s+(check|format)/,'prefix':'trim\x20ruff'},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x25fee4(0xed)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x25fee4(0xe2)}];function a0_0x37b6(_0xc7ed59,_0x13b11f){const _0x11510e=a0_0x1151();return a0_0x37b6=function(_0x37b6a5,_0x305ab6){_0x37b6a5=_0x37b6a5-0xdf;let _0x4dc948=_0x11510e[_0x37b6a5];return _0x4dc948;},a0_0x37b6(_0xc7ed59,_0x13b11f);}function rewriteCommand(_0x491f64){const _0x3c426e=a0_0x25fee4,_0xbbd38f=_0x491f64[_0x3c426e(0x119)]();if(_0xbbd38f[_0x3c426e(0xf7)](_0x3c426e(0x126)))return _0xbbd38f;for(const _0xe2a02 of REWRITE_RULES){if(_0xe2a02[_0x3c426e(0x110)][_0x3c426e(0x10d)](_0xbbd38f))return'trim\x20'+_0xbbd38f;}return _0xbbd38f;}
1
+ 'use strict';const a0_0x4113fa=a0_0x1b75;function a0_0x4348(){const _0x7186d5=['git\x20show','trim\x20','2426787ZBxGKI','9415600zWcHAF','filterJestVitest','npm\x20run\x20test','kubectl','includes','filterGoTest','trim\x20grep','trim\x20ls','yadm\x20status','trim\x20npm','match','defineProperty','test','trim\x20npx','trim\x20git','filterCat','redact','628937pSWPNo','cargo\x20clippy','trim','trim\x20glab','\x20tree','yadm\x20log','./git','14VwelQr','\x20tree\x20','../redactor','pnpm\x20install','get','pip3\x20install','go\x20test','endsWith','filterDockerLogs','ruff\x20','15EaBCYA','rewriteCommand','18907239cmbWxp','length','ruff\x20check','toLowerCase','filterTree','filterCargoTest','vitest','72OljVxe','trim\x20ruff','trim\x20cargo','./rust','filterDockerImages','cargo\x20test','go\x20vet','npm\x20i','filterGitDiff','trim\x20pytest','compressOutput','jest','filterLs','./python','110JicYjq','trim\x20go','startsWith','452AJHdnr','filterPytest','./generic','544599bBBSNL','2YmQphn','1233762gVKmOK','trim\x20read','trim\x20pnpm','./shell','git\x20status','trim\x20kubectl','./go','7Jqvhxa','git\x20log','pnpm\x20test','git\x20diff','3261ZVwjmJ','pip\x20install','yarn\x20test','cargo\x20check'];a0_0x4348=function(){return _0x7186d5;};return a0_0x4348();}(function(_0x2d681c,_0x50965c){const _0x33d297=a0_0x1b75,_0x721994=_0x2d681c();while(!![]){try{const _0x1b4ec1=-parseInt(_0x33d297(0xf1))/0x1*(parseInt(_0x33d297(0xcd))/0x2)+-parseInt(_0x33d297(0xd9))/0x3*(parseInt(_0x33d297(0xc9))/0x4)+-parseInt(_0x33d297(0xaf))/0x5*(parseInt(_0x33d297(0xce))/0x6)+parseInt(_0x33d297(0xd5))/0x7*(-parseInt(_0x33d297(0xe0))/0x8)+-parseInt(_0x33d297(0xcc))/0x9*(-parseInt(_0x33d297(0xc6))/0xa)+parseInt(_0x33d297(0xdf))/0xb*(parseInt(_0x33d297(0xb8))/0xc)+-parseInt(_0x33d297(0xb1))/0xd*(-parseInt(_0x33d297(0xf8))/0xe);if(_0x1b4ec1===_0x50965c)break;else _0x721994['push'](_0x721994['shift']());}catch(_0x5220fc){_0x721994['push'](_0x721994['shift']());}}}(a0_0x4348,0xdb44f));Object[a0_0x4113fa(0xeb)](exports,'__esModule',{'value':!![]}),exports[a0_0x4113fa(0xc2)]=compressOutput,exports[a0_0x4113fa(0xb0)]=rewriteCommand;const generic_1=require(a0_0x4113fa(0xcb)),git_1=require(a0_0x4113fa(0xf7)),python_1=require(a0_0x4113fa(0xc5)),js_1=require('./js'),shell_1=require(a0_0x4113fa(0xd1)),rust_1=require(a0_0x4113fa(0xbb)),go_1=require(a0_0x4113fa(0xd4)),devops_1=require('./devops'),redactor_1=require(a0_0x4113fa(0xfa));function compressOutput(_0x5ee0d4,_0x20eead,_0x2bd8c2,_0x3878c6=!![]){const _0x3f71e4=a0_0x4113fa,_0x2cdede=_0x5ee0d4['trim']();let _0x575a6d=_0x20eead;_0x2bd8c2[_0x3f71e4(0xf3)]()[_0x3f71e4(0xb2)]>0x0&&(_0x575a6d=_0x20eead+'\x0a'+_0x2bd8c2);let _0x2caf14=(0x0,generic_1['stripAnsi'])(_0x575a6d);_0x3878c6&&(_0x2caf14=redactor_1['redactor'][_0x3f71e4(0xf0)](_0x2caf14));const _0x41db33=_0x2cdede[_0x3f71e4(0xb4)]();try{if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xd2))||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xe8)))return(0x0,git_1['filterGitStatus'])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xd6))||_0x41db33['includes'](_0x3f71e4(0xf6)))return(0x0,git_1['filterGitLog'])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xd8))||_0x41db33['includes'](_0x3f71e4(0xdd))||_0x41db33[_0x3f71e4(0xe4)]('yadm\x20diff'))return(0x0,git_1[_0x3f71e4(0xc0)])(_0x2caf14);if(_0x41db33['includes']('pytest')||_0x41db33[_0x3f71e4(0xea)](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x3f71e4(0xca)])(_0x2caf14);if(_0x41db33['includes'](_0x3f71e4(0xda))||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xfd)))return(0x0,python_1['filterPipInstall'])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xb3))||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xae)))return(0x0,devops_1['filterRuff'])(_0x2caf14);if(_0x41db33['includes']('npm\x20install')||_0x41db33[_0x3f71e4(0xe4)]('npm\x20i\x20')||_0x41db33['endsWith'](_0x3f71e4(0xbf))||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xfb))||_0x41db33['includes']('yarn\x20install'))return(0x0,js_1['filterNpmInstall'])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xc3))||_0x41db33['includes'](_0x3f71e4(0xb7)))return(0x0,js_1[_0x3f71e4(0xe1)])(_0x2caf14);if(_0x41db33['includes']('npm\x20test')||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xd7))||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xdb))||_0x41db33['includes'](_0x3f71e4(0xe2)))return(0x0,js_1[_0x3f71e4(0xe1)])(_0x2caf14);if(_0x41db33['includes'](_0x3f71e4(0xbd)))return(0x0,rust_1[_0x3f71e4(0xb6)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)]('cargo\x20build')||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xdc))||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xf2)))return(0x0,rust_1['filterCargoBuild'])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xfe)))return(0x0,go_1[_0x3f71e4(0xe5)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xbe)))return(0x0,go_1['filterGoVet'])(_0x2caf14);if(_0x41db33['match'](/docker\s+ps/))return(0x0,devops_1['filterDockerPs'])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xea)](/docker\s+images/))return(0x0,devops_1[_0x3f71e4(0xbc)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xea)](/docker\s+logs/))return(0x0,devops_1[_0x3f71e4(0xad)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xe3))){const _0x1f0883=_0x41db33['match'](/kubectl\s+(get|logs|describe|apply)/),_0x3e8758=_0x1f0883?_0x1f0883[0x1]:_0x3f71e4(0xfc);return(0x0,devops_1['filterKubectl'])(_0x2caf14,_0x3e8758);}if(_0x41db33[_0x3f71e4(0xea)](/^(ls|dir)(\s|$)/)||_0x41db33['includes']('\x20ls\x20')||_0x41db33[_0x3f71e4(0xac)]('\x20ls'))return(0x0,shell_1[_0x3f71e4(0xc4)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xea)](/^tree(\s|$)/)||_0x41db33[_0x3f71e4(0xe4)](_0x3f71e4(0xf9))||_0x41db33['endsWith'](_0x3f71e4(0xf5)))return(0x0,shell_1[_0x3f71e4(0xb5)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xea)](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1[_0x3f71e4(0xef)])(_0x2caf14);if(_0x41db33[_0x3f71e4(0xea)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1['filterGrep'])(_0x2caf14);}catch(_0x27b0fa){}return _0x2caf14=(0x0,generic_1['collapseDuplicates'])(_0x2caf14),_0x2caf14=(0x0,generic_1['softTruncate'])(_0x2caf14,0x4e20),_0x2caf14;}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_0x4113fa(0xee)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x4113fa(0xf4)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x4113fa(0xba)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x4113fa(0xd0)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x4113fa(0xe9)},{'pattern':/^npx\s+/,'prefix':a0_0x4113fa(0xed)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x4113fa(0xcf)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x4113fa(0xe6)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x4113fa(0xe7)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x4113fa(0xd3)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x4113fa(0xc1)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x4113fa(0xb9)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x4113fa(0xc7)}];function a0_0x1b75(_0x349408,_0x527dd2){_0x349408=_0x349408-0xac;const _0x4348b8=a0_0x4348();let _0x1b751b=_0x4348b8[_0x349408];return _0x1b751b;}function rewriteCommand(_0x43abe0){const _0x265a69=a0_0x4113fa,_0x321614=_0x43abe0[_0x265a69(0xf3)]();if(_0x321614[_0x265a69(0xc8)]('trim\x20'))return _0x321614;for(const _0x1b01b7 of REWRITE_RULES){if(_0x1b01b7['pattern'][_0x265a69(0xec)](_0x321614))return _0x265a69(0xde)+_0x321614;}return _0x321614;}