trimprompt 1.0.18 → 1.0.20
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/index.html +5 -1
- package/mcp.js +1 -1
- package/package.json +2 -2
- 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';const a0_0xc8bf81=a0_0x58c4;(function(_0x539ca,_0x267ed7){const _0xb6fe9=a0_0x58c4,_0x497e31=_0x539ca();while(!![]){try{const _0x3a96e4=parseInt(_0xb6fe9(0x18d))/0x1+parseInt(_0xb6fe9(0x189))/0x2*(parseInt(_0xb6fe9(0x1ab))/0x3)+parseInt(_0xb6fe9(0x1af))/0x4*(-parseInt(_0xb6fe9(0x187))/0x5)+-parseInt(_0xb6fe9(0x18b))/0x6+parseInt(_0xb6fe9(0x18c))/0x7*(parseInt(_0xb6fe9(0x1ae))/0x8)+parseInt(_0xb6fe9(0x198))/0x9+-parseInt(_0xb6fe9(0x1b4))/0xa;if(_0x3a96e4===_0x267ed7)break;else _0x497e31['push'](_0x497e31['shift']());}catch(_0x19f7e6){_0x497e31['push'](_0x497e31['shift']());}}}(a0_0x348e,0x5d2a0));Object[a0_0xc8bf81(0x193)](exports,a0_0xc8bf81(0x1a4),{'value':!![]}),exports[a0_0xc8bf81(0x19f)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function a0_0x348e(){const _0x1bb14c=['Successfully\x20installed','===\x20ERRORS\x20===','\x20\x20\x20\x20...\x20(','includes','2955uXcTrx','===\x20FAILURES\x20===','split','232XqsqAu','40wewjbh','===','Using\x20cached','slice','Downloading','3816410vSAZrS','failed','\x0aFailures:','307355UmkWrF','\x20more\x20failures\x20truncated','838TmcMsf','Collecting','1905408WNRtQq','96887yShOSI','683175kupmhN','\x20passed','\x20in\x20','length','match','Requirement\x20already\x20satisfied','defineProperty','push','startsWith','\x20skipped','filter','1784160qtYdfO','\x20\x20\x20\x20','trim','.\x20[FAIL]\x20','.py:','===\x20short\x20test\x20summary\x20info\x20===','___','filterPytest','replace','\x20xpassed\x20(warning!)','Pytest:\x20All\x20tests\x20passed','join','__esModule','\x20xfailed','Pytest:\x20'];a0_0x348e=function(){return _0x1bb14c;};return a0_0x348e();}function a0_0x58c4(_0x3aa4b1,_0x19aa35){_0x3aa4b1=_0x3aa4b1-0x185;const _0x348e2d=a0_0x348e();let _0x58c4b7=_0x348e2d[_0x3aa4b1];return _0x58c4b7;}function filterPytest(_0x9d068f){const _0x541df9=a0_0xc8bf81,_0x1f7e6a=_0x9d068f[_0x541df9(0x1ad)]('\x0a');let _0x50ebab=0x0,_0x24e83b=0x0,_0x281f7c=0x0,_0x27ebd5=0x0,_0x17ad6d=0x0;const _0xe7f50e=[];let _0x6328ad=[],_0x9010b2=![];for(const _0x6eaddc of _0x1f7e6a){const _0x377e1d=_0x6eaddc[_0x541df9(0x19a)]();if(_0x377e1d[_0x541df9(0x195)](_0x541df9(0x1ac))||_0x377e1d['startsWith'](_0x541df9(0x1a8))){_0x9010b2=!![];continue;}else(_0x377e1d[_0x541df9(0x195)](_0x541df9(0x19d))||_0x377e1d[_0x541df9(0x195)](_0x541df9(0x1b0))&&_0x377e1d[_0x541df9(0x1aa)]('passed'))&&(_0x9010b2=![],_0x6328ad['length']>0x0&&(_0xe7f50e[_0x541df9(0x194)](_0x6328ad),_0x6328ad=[]));if(_0x9010b2){if(_0x377e1d[_0x541df9(0x195)](_0x541df9(0x19e)))_0x6328ad[_0x541df9(0x190)]>0x0&&(_0xe7f50e[_0x541df9(0x194)](_0x6328ad),_0x6328ad=[]),_0x6328ad[_0x541df9(0x194)](_0x377e1d);else _0x377e1d['length']>0x0&&_0x6328ad[_0x541df9(0x194)](_0x6eaddc);continue;}if(_0x377e1d[_0x541df9(0x195)]('===')&&_0x377e1d[_0x541df9(0x1aa)](_0x541df9(0x18f))){const _0x258f0e=_0x377e1d[_0x541df9(0x191)](/(\d+)\s+passed/),_0x155bfb=_0x377e1d[_0x541df9(0x191)](/(\d+)\s+failed/),_0x338c0f=_0x377e1d[_0x541df9(0x191)](/(\d+)\s+skipped/),_0x598477=_0x377e1d[_0x541df9(0x191)](/(\d+)\s+xfailed/),_0x9ecf80=_0x377e1d[_0x541df9(0x191)](/(\d+)\s+xpassed/);if(_0x258f0e)_0x50ebab=parseInt(_0x258f0e[0x1]);if(_0x155bfb)_0x24e83b=parseInt(_0x155bfb[0x1]);if(_0x338c0f)_0x281f7c=parseInt(_0x338c0f[0x1]);if(_0x598477)_0x27ebd5=parseInt(_0x598477[0x1]);if(_0x9ecf80)_0x17ad6d=parseInt(_0x9ecf80[0x1]);}}_0x6328ad['length']>0x0&&_0xe7f50e['push'](_0x6328ad);if(_0x50ebab===0x0&&_0x24e83b===0x0&&_0x281f7c===0x0&&_0x27ebd5===0x0&&_0x17ad6d===0x0){if(_0x9d068f['includes']('passed')&&!_0x9d068f[_0x541df9(0x1aa)](_0x541df9(0x185)))return _0x541df9(0x1a2);return _0x9d068f;}if(_0x24e83b===0x0&&_0x50ebab>0x0&&_0x281f7c===0x0&&_0x27ebd5===0x0&&_0x17ad6d===0x0)return _0x541df9(0x1a6)+_0x50ebab+'\x20passed';const _0x33be53=[];_0x33be53['push'](_0x541df9(0x1a6)+_0x50ebab+_0x541df9(0x18e));if(_0x24e83b>0x0)_0x33be53[_0x541df9(0x194)](_0x24e83b+'\x20failed');if(_0x281f7c>0x0)_0x33be53['push'](_0x281f7c+_0x541df9(0x196));if(_0x27ebd5>0x0)_0x33be53[_0x541df9(0x194)](_0x27ebd5+_0x541df9(0x1a5));if(_0x17ad6d>0x0)_0x33be53['push'](_0x17ad6d+_0x541df9(0x1a1));const _0x2cf59b=[_0x33be53[_0x541df9(0x1a3)](',\x20')];if(_0xe7f50e[_0x541df9(0x190)]>0x0){_0x2cf59b[_0x541df9(0x194)](_0x541df9(0x186));const _0x48715c=0x3,_0x452cd8=_0xe7f50e[_0x541df9(0x1b2)](0x0,_0x48715c);for(let _0x5c699f=0x0;_0x5c699f<_0x452cd8[_0x541df9(0x190)];_0x5c699f++){const _0xfdd428=_0x452cd8[_0x5c699f],_0x6edf29=_0xfdd428[0x0][_0x541df9(0x1a0)](/_/g,'')['trim']();_0x2cf59b['push']('\x20\x20'+(_0x5c699f+0x1)+_0x541df9(0x19b)+_0x6edf29);const _0xda6baf=_0xfdd428[_0x541df9(0x1b2)](0x1),_0x23d0d5=_0xda6baf['filter'](_0x102b2a=>{const _0x18e041=_0x541df9,_0x41f9e5=_0x102b2a['trim']();return _0x41f9e5[_0x18e041(0x195)]('>')||_0x41f9e5[_0x18e041(0x195)]('E\x20\x20\x20')||_0x41f9e5[_0x18e041(0x1aa)](_0x18e041(0x19c))||_0x41f9e5[_0x18e041(0x1aa)]('AssertionError:');});for(const _0x57d3f7 of _0x23d0d5[_0x541df9(0x1b2)](0x0,0x8)){_0x2cf59b[_0x541df9(0x194)](_0x541df9(0x199)+_0x57d3f7);}_0x23d0d5[_0x541df9(0x190)]>0x8&&_0x2cf59b[_0x541df9(0x194)](_0x541df9(0x1a9)+(_0x23d0d5[_0x541df9(0x190)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0xe7f50e[_0x541df9(0x190)]>_0x48715c&&_0x2cf59b[_0x541df9(0x194)]('\x20\x20...\x20+'+(_0xe7f50e[_0x541df9(0x190)]-_0x48715c)+_0x541df9(0x188));}return _0x2cf59b[_0x541df9(0x1a3)]('\x0a');}function filterPipInstall(_0x1c2fd1){const _0x411261=a0_0xc8bf81,_0x3a005f=_0x1c2fd1['split']('\x0a'),_0x2a8b15=[];for(const _0x490c35 of _0x3a005f){const _0x487bd8=_0x490c35[_0x411261(0x19a)]();_0x487bd8['startsWith'](_0x411261(0x1a7))&&_0x2a8b15[_0x411261(0x194)](_0x487bd8);}if(_0x2a8b15[_0x411261(0x190)]>0x0)return _0x2a8b15[_0x411261(0x1a3)]('\x0a');return _0x3a005f[_0x411261(0x197)](_0x1c6df1=>{const _0x412446=_0x411261,_0x4ada28=_0x1c6df1[_0x412446(0x19a)]();return!_0x4ada28['startsWith'](_0x412446(0x18a))&&!_0x4ada28['startsWith'](_0x412446(0x1b3))&&!_0x4ada28[_0x412446(0x1aa)](_0x412446(0x1b1))&&!_0x4ada28[_0x412446(0x195)](_0x412446(0x192));})[_0x411261(0x1a3)]('\x0a')[_0x411261(0x19a)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x2836bd=a0_0x51d9;function a0_0x14f7(){const _0x306b6a=['match','replace','\x20errors,\x20','panicked','right:','36197Bhtjwi','length','thread','test\x20result:','trim','join','\x20passed','\x20failed,\x20','__esModule','\x20\x20...\x20+','2697840IeVNPQ','\x20\x20\x20\x20','Cargo\x20test:\x20','\x20ignored','filterCargoBuild','\x20crates,\x20','error[','push','4676640WEShaV','1347518BwJnYs','warning:','Cargo\x20test:\x20all\x20tests\x20passed','\x20more\x20failures','20MLVqLS','endsWith','includes','left:','split','\x20----','failures:','1pPHjHQ','filter','Cargo:\x20compiled\x20','466119sbcRtg','slice','8440344KnTDUr','\x20more\x20errors','Compiling\x20','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','min','\x0aFailures:','624MhimBK','defineProperty','5720685YuSaHw','12GYMaeF','startsWith','\x20warnings'];a0_0x14f7=function(){return _0x306b6a;};return a0_0x14f7();}(function(_0x5c494d,_0x1c0c6f){const _0x34b71a=a0_0x51d9,_0x126cb9=_0x5c494d();while(!![]){try{const _0xc10858=-parseInt(_0x34b71a(0x19f))/0x1*(-parseInt(_0x34b71a(0x194))/0x2)+parseInt(_0x34b71a(0x1a2))/0x3*(parseInt(_0x34b71a(0x1ad))/0x4)+parseInt(_0x34b71a(0x1ac))/0x5+parseInt(_0x34b71a(0x193))/0x6+parseInt(_0x34b71a(0x181))/0x7*(-parseInt(_0x34b71a(0x1aa))/0x8)+-parseInt(_0x34b71a(0x18b))/0x9+-parseInt(_0x34b71a(0x198))/0xa*(parseInt(_0x34b71a(0x1a4))/0xb);if(_0xc10858===_0x1c0c6f)break;else _0x126cb9['push'](_0x126cb9['shift']());}catch(_0x2d6a9e){_0x126cb9['push'](_0x126cb9['shift']());}}}(a0_0x14f7,0xc9995));function a0_0x51d9(_0xd9f429,_0x1adf1f){_0xd9f429=_0xd9f429-0x17e;const _0x14f707=a0_0x14f7();let _0x51d962=_0x14f707[_0xd9f429];return _0x51d962;}Object[a0_0x2836bd(0x1ab)](exports,a0_0x2836bd(0x189),{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports[a0_0x2836bd(0x18f)]=filterCargoBuild;function filterCargoTest(_0x5196f1){const _0x430293=a0_0x2836bd,_0x484d98=_0x5196f1[_0x430293(0x19c)]('\x0a');let _0x50553b=0x0,_0x44dc1d=0x0,_0x55b098=0x0,_0x475211=0x0;const _0xc1ede3=[];let _0x667db2=![],_0x385960=[];for(const _0x22ffde of _0x484d98){const _0x2bf835=_0x22ffde['trim'](),_0x5c2712=_0x2bf835[_0x430293(0x1b0)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x5c2712){_0x50553b+=parseInt(_0x5c2712[0x2]),_0x44dc1d+=parseInt(_0x5c2712[0x3]),_0x55b098+=parseInt(_0x5c2712[0x4]),_0x475211+=parseInt(_0x5c2712[0x5]);continue;}if(_0x2bf835==='failures:'||_0x2bf835==='----\x20failures\x20----'){_0x667db2=!![];continue;}if(_0x667db2){if(_0x2bf835[_0x430293(0x1ae)]('----\x20')&&_0x2bf835[_0x430293(0x199)](_0x430293(0x19d))){if(_0x385960['length']>0x0)_0xc1ede3[_0x430293(0x192)](_0x385960[_0x430293(0x186)]('\x0a'));_0x385960=[_0x2bf835[_0x430293(0x1b1)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x2bf835===_0x430293(0x19e)||_0x2bf835['startsWith'](_0x430293(0x184))){if(_0x385960['length']>0x0)_0xc1ede3[_0x430293(0x192)](_0x385960['join']('\x0a'));_0x385960=[],_0x667db2=![];}else _0x2bf835['length']>0x0&&_0x385960['push'](_0x22ffde);}}}if(_0x385960[_0x430293(0x182)]>0x0)_0xc1ede3[_0x430293(0x192)](_0x385960[_0x430293(0x186)]('\x0a'));if(_0x50553b===0x0&&_0x44dc1d===0x0&&_0x55b098===0x0){if(_0x5196f1[_0x430293(0x19a)]('test\x20result:\x20ok'))return _0x430293(0x196);return _0x5196f1;}if(_0x44dc1d===0x0){const _0xbbff0c=[_0x430293(0x18d)+_0x50553b+_0x430293(0x187)];if(_0x55b098>0x0)_0xbbff0c[_0x430293(0x192)](_0x55b098+_0x430293(0x18e));return _0xbbff0c[_0x430293(0x186)](',\x20');}const _0x3ed23b=[_0x430293(0x18d)+_0x50553b+'\x20passed,\x20'+_0x44dc1d+_0x430293(0x188)+_0x55b098+'\x20ignored'];if(_0xc1ede3[_0x430293(0x182)]>0x0){_0x3ed23b[_0x430293(0x192)](_0x430293(0x1a9));const _0x4cb0fd=0x3;for(let _0x82918f=0x0;_0x82918f<Math[_0x430293(0x1a8)](_0xc1ede3[_0x430293(0x182)],_0x4cb0fd);_0x82918f++){const _0x2a1e0d=_0xc1ede3[_0x82918f][_0x430293(0x19c)]('\x0a');_0x3ed23b[_0x430293(0x192)]('\x20\x20'+(_0x82918f+0x1)+'.\x20'+_0x2a1e0d[0x0]);const _0x3e02e3=_0x2a1e0d[_0x430293(0x1a3)](0x1),_0x1c4348=_0x3e02e3[_0x430293(0x1a0)](_0x418465=>_0x418465[_0x430293(0x185)]()['startsWith'](_0x430293(0x183))||_0x418465[_0x430293(0x19a)](_0x430293(0x17f))||_0x418465[_0x430293(0x19a)]('assert')||_0x418465[_0x430293(0x19a)](_0x430293(0x19b))||_0x418465[_0x430293(0x19a)](_0x430293(0x180)));for(const _0x259b5e of _0x1c4348[_0x430293(0x1a3)](0x0,0x5)){_0x3ed23b[_0x430293(0x192)](_0x430293(0x18c)+_0x259b5e[_0x430293(0x185)]());}}_0xc1ede3[_0x430293(0x182)]>_0x4cb0fd&&_0x3ed23b[_0x430293(0x192)](_0x430293(0x18a)+(_0xc1ede3['length']-_0x4cb0fd)+_0x430293(0x197));}return _0x3ed23b[_0x430293(0x186)]('\x0a');}function filterCargoBuild(_0x3ac9a8){const _0x3c36d5=a0_0x2836bd,_0xbf4efa=_0x3ac9a8[_0x3c36d5(0x19c)]('\x0a'),_0x431f1e=[],_0x9c4245=[];let _0x4f1d6e=0x0;for(const _0x22ea59 of _0xbf4efa){const _0x3ac58f=_0x22ea59[_0x3c36d5(0x185)]();if(_0x3ac58f['startsWith'](_0x3c36d5(0x1a6)))_0x4f1d6e++;else{if(_0x3ac58f['startsWith']('warning[')||_0x3ac58f[_0x3c36d5(0x1ae)](_0x3c36d5(0x195)))_0x431f1e[_0x3c36d5(0x192)](_0x3ac58f);else{if(_0x3ac58f[_0x3c36d5(0x1ae)](_0x3c36d5(0x191))||_0x3ac58f[_0x3c36d5(0x1ae)]('error:'))_0x9c4245['push'](_0x3ac58f);}}}if(_0x9c4245['length']===0x0&&_0x431f1e[_0x3c36d5(0x182)]===0x0)return _0x4f1d6e>0x0?_0x3c36d5(0x1a1)+_0x4f1d6e+'\x20crates\x20successfully':_0x3ac9a8['trim']();const _0x4a6464=[];if(_0x9c4245[_0x3c36d5(0x182)]>0x0){_0x4a6464[_0x3c36d5(0x192)]('Cargo:\x20'+_0x9c4245[_0x3c36d5(0x182)]+_0x3c36d5(0x17e)+_0x431f1e[_0x3c36d5(0x182)]+_0x3c36d5(0x1af)),_0x4a6464[_0x3c36d5(0x192)]('\x0aErrors:');for(const _0x2c715f of _0x9c4245[_0x3c36d5(0x1a3)](0x0,0x5))_0x4a6464['push']('\x20\x20'+_0x2c715f);if(_0x9c4245['length']>0x5)_0x4a6464['push'](_0x3c36d5(0x18a)+(_0x9c4245['length']-0x5)+_0x3c36d5(0x1a5));}else _0x4a6464[_0x3c36d5(0x192)]('Cargo:\x20compiled\x20'+_0x4f1d6e+_0x3c36d5(0x190)+_0x431f1e[_0x3c36d5(0x182)]+_0x3c36d5(0x1af));if(_0x431f1e[_0x3c36d5(0x182)]>0x0&&_0x431f1e[_0x3c36d5(0x182)]<=0x5){_0x4a6464[_0x3c36d5(0x192)]('\x0aWarnings:');for(const _0x11ade9 of _0x431f1e)_0x4a6464['push']('\x20\x20'+_0x11ade9);}else _0x431f1e[_0x3c36d5(0x182)]>0x5&&_0x4a6464[_0x3c36d5(0x192)]('\x0a('+_0x431f1e[_0x3c36d5(0x182)]+_0x3c36d5(0x1a7));return _0x4a6464['join']('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x463c99=a0_0x132c;(function(_0xf80008,_0x1c33ce){const _0x2b98c4=a0_0x132c,_0x163eeb=_0xf80008();while(!![]){try{const _0x3947f3=parseInt(_0x2b98c4(0x108))/0x1*(-parseInt(_0x2b98c4(0x115))/0x2)+-parseInt(_0x2b98c4(0x11a))/0x3+-parseInt(_0x2b98c4(0x114))/0x4+-parseInt(_0x2b98c4(0xf7))/0x5+parseInt(_0x2b98c4(0x156))/0x6+-parseInt(_0x2b98c4(0x109))/0x7*(parseInt(_0x2b98c4(0x140))/0x8)+parseInt(_0x2b98c4(0x129))/0x9;if(_0x3947f3===_0x1c33ce)break;else _0x163eeb['push'](_0x163eeb['shift']());}catch(_0x2141b1){_0x163eeb['push'](_0x163eeb['shift']());}}}(a0_0x3861,0x331a8));var __createBinding=this&&this[a0_0x463c99(0x113)]||(Object[a0_0x463c99(0x123)]?function(_0x1a8e66,_0xd74fe1,_0x478de0,_0x1cf191){const _0x5bfbfd=a0_0x463c99;if(_0x1cf191===undefined)_0x1cf191=_0x478de0;var _0x25ef4b=Object[_0x5bfbfd(0x10d)](_0xd74fe1,_0x478de0);(!_0x25ef4b||('get'in _0x25ef4b?!_0xd74fe1['__esModule']:_0x25ef4b[_0x5bfbfd(0xfe)]||_0x25ef4b[_0x5bfbfd(0x158)]))&&(_0x25ef4b={'enumerable':!![],'get':function(){return _0xd74fe1[_0x478de0];}}),Object['defineProperty'](_0x1a8e66,_0x1cf191,_0x25ef4b);}:function(_0x5265e6,_0x3942d1,_0x4426fd,_0x5d28bb){if(_0x5d28bb===undefined)_0x5d28bb=_0x4426fd;_0x5265e6[_0x5d28bb]=_0x3942d1[_0x4426fd];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x463c99(0x123)]?function(_0x469b05,_0x4be778){const _0x32c127=a0_0x463c99;Object[_0x32c127(0x128)](_0x469b05,_0x32c127(0x15d),{'enumerable':!![],'value':_0x4be778});}:function(_0x4eab6b,_0x10e541){const _0x53a3a1=a0_0x463c99;_0x4eab6b[_0x53a3a1(0x15d)]=_0x10e541;}),__importStar=this&&this[a0_0x463c99(0x133)]||(function(){var _0x355d05=function(_0x3d995a){const _0x35f6ee=a0_0x132c;return _0x355d05=Object[_0x35f6ee(0xf5)]||function(_0x1a4d46){const _0x3098ec=_0x35f6ee;var _0x45700d=[];for(var _0x5a4b8b in _0x1a4d46)if(Object[_0x3098ec(0x151)][_0x3098ec(0x15a)][_0x3098ec(0x157)](_0x1a4d46,_0x5a4b8b))_0x45700d[_0x45700d[_0x3098ec(0x12f)]]=_0x5a4b8b;return _0x45700d;},_0x355d05(_0x3d995a);};return function(_0x5e3930){const _0x1244d3=a0_0x132c;if(_0x5e3930&&_0x5e3930[_0x1244d3(0x110)])return _0x5e3930;var _0xcf1dac={};if(_0x5e3930!=null){for(var _0xddedc9=_0x355d05(_0x5e3930),_0xcbe05a=0x0;_0xcbe05a<_0xddedc9['length'];_0xcbe05a++)if(_0xddedc9[_0xcbe05a]!=='default')__createBinding(_0xcf1dac,_0x5e3930,_0xddedc9[_0xcbe05a]);}return __setModuleDefault(_0xcf1dac,_0x5e3930),_0xcf1dac;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x463c99(0x122)]=filterLs,exports[a0_0x463c99(0x14d)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x463c99(0x126)]=filterGrep,exports[a0_0x463c99(0x143)]=filterFind;function a0_0x132c(_0x13c811,_0x54291b){_0x13c811=_0x13c811-0xee;const _0x3861ac=a0_0x3861();let _0x132c8d=_0x3861ac[_0x13c811];return _0x132c8d;}const path=__importStar(require('path')),LOCK_FILES=['package-lock.json',a0_0x463c99(0x147),'pnpm-lock.yaml','Cargo.lock',a0_0x463c99(0x13d),a0_0x463c99(0x154),a0_0x463c99(0x131),a0_0x463c99(0x148),'bun.lockb'],BINARY_EXTENSIONS=[a0_0x463c99(0x127),a0_0x463c99(0x125),'.map',a0_0x463c99(0x12e),a0_0x463c99(0x111),a0_0x463c99(0x144),a0_0x463c99(0xfd),'.gif',a0_0x463c99(0x13b),a0_0x463c99(0x150),a0_0x463c99(0x124),a0_0x463c99(0x120),a0_0x463c99(0x15c),a0_0x463c99(0xfc),'.tar.gz',a0_0x463c99(0x117),a0_0x463c99(0xf8),a0_0x463c99(0x102),'.7z','.rar',a0_0x463c99(0x136),a0_0x463c99(0x12a),a0_0x463c99(0x135),a0_0x463c99(0x10f),'.bin','.dat',a0_0x463c99(0x112),a0_0x463c99(0x116),'.sqlite3',a0_0x463c99(0x119),a0_0x463c99(0x141),a0_0x463c99(0x146),a0_0x463c99(0xf9),'.otf',a0_0x463c99(0x14c),'.mp4',a0_0x463c99(0x13c),a0_0x463c99(0x139),a0_0x463c99(0x103),a0_0x463c99(0x137),'.pyc','.pyo','.class','.o','.obj'];function extractFilename(_0x15368d){const _0x5c0c0b=a0_0x463c99,_0x53ae74=_0x15368d[_0x5c0c0b(0x105)]()['split'](/\s+/);for(let _0x2f3f6d=0x1;_0x2f3f6d<_0x53ae74[_0x5c0c0b(0x12f)];_0x2f3f6d++){if(!_0x53ae74[_0x2f3f6d][_0x5c0c0b(0x106)]('-'))return _0x53ae74[_0x2f3f6d];}return null;}function filterLockFile(_0x268766,_0x285b06){const _0x87b1a0=a0_0x463c99;try{const _0x5f0f2e=path[_0x87b1a0(0x11d)](_0x285b06)[_0x87b1a0(0xf4)]();if(!LOCK_FILES[_0x87b1a0(0xfa)](_0x246c86=>_0x5f0f2e===_0x246c86[_0x87b1a0(0xf4)]()))return null;const _0x2be71b=_0x268766[_0x87b1a0(0x12f)];let _0x2a69ed=0x0;if(_0x5f0f2e==='package-lock.json')try{const _0xccd4f0=JSON[_0x87b1a0(0xff)](_0x268766);_0x2a69ed=Object['keys'](_0xccd4f0[_0x87b1a0(0x13f)]||_0xccd4f0[_0x87b1a0(0x12b)]||{})['length'];}catch{_0x2a69ed=(_0x268766[_0x87b1a0(0x11b)](/"resolved":/g)||[])['length'];}else{if(_0x5f0f2e===_0x87b1a0(0x147))_0x2a69ed=(_0x268766['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x87b1a0(0x12f)];else{if(_0x5f0f2e==='cargo.lock'||_0x5f0f2e===_0x87b1a0(0x154))_0x2a69ed=(_0x268766['match'](/\[\[package\]\]/g)||[])['length'];else{if(_0x5f0f2e===_0x87b1a0(0x13d))_0x2a69ed=Math['floor'](_0x268766[_0x87b1a0(0x152)]('\x0a')[_0x87b1a0(0x159)](_0x5bbfd8=>_0x5bbfd8['trim']())[_0x87b1a0(0x12f)]/0x2);else{if(_0x5f0f2e===_0x87b1a0(0x131))try{_0x2a69ed=JSON[_0x87b1a0(0xff)](_0x268766)[_0x87b1a0(0x13f)]?.[_0x87b1a0(0x12f)]||0x0;}catch{}else _0x5f0f2e===_0x87b1a0(0xf1)?_0x2a69ed=(_0x268766[_0x87b1a0(0x11b)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x2a69ed=_0x268766[_0x87b1a0(0x152)]('\x0a')[_0x87b1a0(0x159)](_0x3722c0=>_0x3722c0[_0x87b1a0(0x105)]())[_0x87b1a0(0x12f)];}}}}return _0x87b1a0(0x10c)+path['basename'](_0x285b06)+':\x20'+_0x2a69ed+_0x87b1a0(0xef)+_0x2be71b[_0x87b1a0(0x145)]()+'\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)';}catch{return null;}}function filterBinaryOrMinified(_0x3e61d7,_0x289469){const _0x3c2f0b=a0_0x463c99;try{if(_0x289469){const _0x3a578e=_0x289469[_0x3c2f0b(0xf4)]();for(const _0x591ddb of BINARY_EXTENSIONS){if(_0x3a578e[_0x3c2f0b(0x11c)](_0x591ddb))return _0x3c2f0b(0x11f)+path[_0x3c2f0b(0x11d)](_0x289469)+',\x20'+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0xf2)+_0x591ddb+_0x3c2f0b(0x134);}}const _0x95a269=_0x3e61d7[_0x3c2f0b(0x14b)](0x0,0x3e8);let _0x537792=0x0;for(let _0x598bd0=0x0;_0x598bd0<_0x95a269['length'];_0x598bd0++){if(_0x95a269[_0x3c2f0b(0x12d)](_0x598bd0)===0x0)_0x537792++;}if(_0x537792>0x0)return'[binary\x20file]\x20'+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0x14f);let _0xa27247=0x0;for(let _0xafc6fe=0x0;_0xafc6fe<_0x95a269['length'];_0xafc6fe++){const _0x1ba881=_0x95a269[_0x3c2f0b(0x12d)](_0xafc6fe);if(_0x1ba881<0x20&&_0x1ba881!==0xa&&_0x1ba881!==0xd&&_0x1ba881!==0x9)_0xa27247++;}if(_0x95a269[_0x3c2f0b(0x12f)]>0x64&&_0xa27247>_0x95a269[_0x3c2f0b(0x12f)]*0.1)return _0x3c2f0b(0xfb)+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0xf6);const _0x1cc27c=_0x3e61d7['split']('\x0a');if(_0x1cc27c[_0x3c2f0b(0x12f)]<=0x3&&_0x3e61d7[_0x3c2f0b(0x12f)]>0x1388)return _0x3c2f0b(0x14e)+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0x132)+_0x1cc27c['length']+_0x3c2f0b(0x10e);return null;}catch{return null;}}function filterJsonMinify(_0x4b14c4){const _0xc12f5f=a0_0x463c99;try{const _0x387d0c=_0x4b14c4[_0xc12f5f(0x105)]();if(!_0x387d0c[_0xc12f5f(0x106)]('{')&&!_0x387d0c[_0xc12f5f(0x106)]('['))return null;const _0x57f58e=_0x387d0c[_0xc12f5f(0x152)]('\x0a');if(_0x57f58e[_0xc12f5f(0x12f)]<=0x14)return null;const _0x226064=JSON[_0xc12f5f(0xff)](_0x387d0c),_0x5de18e=JSON['stringify'](_0x226064);if(_0x5de18e[_0xc12f5f(0x12f)]<_0x387d0c['length'])return _0x5de18e;return null;}catch{return null;}}function a0_0x3861(){const _0x323510=['filterLs','create','.webp','.min.css','filterGrep','.min.js','defineProperty','13481892VRLyDc','.dll','dependencies','total\x20','charCodeAt','.wasm','length','push','composer.lock','\x20chars\x20across\x20','__importStar','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','.so','.exe','.webm','\x20more\x20matches','.avi','\x20files\x20found\x20across\x20','.ico','.wav','go.sum','\x20matches\x20in\x20this\x20file)','packages','88144UWLlxS','.woff2','/\x20(','filterFind','.jpg','toLocaleString','.ttf','yarn.lock','Gemfile.lock','\x20matches\x20across\x20','\x20more\x20directories','substring','.mp3','filterTree','[minified\x20file]\x20','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.bmp','prototype','split','slice','poetry.lock','includes','574692pzkeko','call','configurable','filter','hasOwnProperty','\x20lines\x20truncated]\x20...\x0a','.pdf','default','entries','\x20dependencies,\x20','\x20more\x20files\x20with\x20matches','pnpm-lock.yaml','\x20chars,\x20type:\x20','dirname','toLowerCase','getOwnPropertyNames','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','1363295KFeXRy','.gz','.eot','some','[binary\x20file]\x20','.zip','.jpeg','writable','parse','keys','Empty\x20directory','.bz2','.mov','indexOf','trim','startsWith','...\x20+','1MEetrw','203xGbuhr','join','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','[lock\x20file]\x20','getOwnPropertyDescriptor','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','.dylib','__esModule','.png','.sqlite','__createBinding','1370488xYEXhO','550742fXBGnu','.db','.tgz','\x0a...\x20[','.woff','522828uMKPES','match','endsWith','basename','\x20files)','[binary/minified\x20file]\x20','.svg','\x20more\x20files'];a0_0x3861=function(){return _0x323510;};return a0_0x3861();}function filterLs(_0x4bfb18){const _0x3e80b5=a0_0x463c99,_0x531ab9=_0x4bfb18[_0x3e80b5(0x152)]('\x0a')[_0x3e80b5(0x159)](_0x1cf225=>_0x1cf225[_0x3e80b5(0x105)]()[_0x3e80b5(0x12f)]>0x0);if(_0x531ab9['length']===0x0)return _0x3e80b5(0x101);if(_0x531ab9['length']<=0x1e)return _0x4bfb18[_0x3e80b5(0x105)]();const _0x2296bf=[],_0x2b0b83=[];for(const _0x1b041d of _0x531ab9){const _0x1c207a=_0x1b041d[_0x3e80b5(0x105)]();if(_0x1c207a['startsWith'](_0x3e80b5(0x12c))||_0x1c207a['startsWith']('d')&&_0x1c207a[_0x3e80b5(0x155)]('..'))continue;_0x1c207a['endsWith']('/')||_0x1c207a['startsWith']('d')&&_0x1c207a[_0x3e80b5(0x155)]('\x20')?_0x2296bf[_0x3e80b5(0x130)](_0x1c207a):_0x2b0b83[_0x3e80b5(0x130)](_0x1c207a);}const _0x547dc0=[];return _0x2296bf[_0x3e80b5(0x12f)]>0x0&&(_0x2296bf[_0x3e80b5(0x12f)]<=0xf?_0x547dc0[_0x3e80b5(0x130)](..._0x2296bf):(_0x547dc0[_0x3e80b5(0x130)](..._0x2296bf[_0x3e80b5(0x153)](0x0,0xa)),_0x547dc0[_0x3e80b5(0x130)](_0x3e80b5(0x107)+(_0x2296bf['length']-0xa)+'\x20more\x20directories'))),_0x2b0b83[_0x3e80b5(0x12f)]>0x0&&(_0x2b0b83[_0x3e80b5(0x12f)]<=0x14?_0x547dc0[_0x3e80b5(0x130)](..._0x2b0b83):(_0x547dc0[_0x3e80b5(0x130)](..._0x2b0b83[_0x3e80b5(0x153)](0x0,0xf)),_0x547dc0[_0x3e80b5(0x130)]('...\x20+'+(_0x2b0b83[_0x3e80b5(0x12f)]-0xf)+_0x3e80b5(0x121)))),_0x547dc0[_0x3e80b5(0x130)]('\x0a('+_0x2296bf[_0x3e80b5(0x12f)]+'\x20directories,\x20'+_0x2b0b83[_0x3e80b5(0x12f)]+_0x3e80b5(0x11e)),_0x547dc0[_0x3e80b5(0x10a)]('\x0a');}function filterTree(_0x3cff21){const _0x2821a7=a0_0x463c99,_0x3b52da=_0x3cff21['split']('\x0a');if(_0x3b52da[_0x2821a7(0x12f)]<=0x32)return _0x3cff21[_0x2821a7(0x105)]();const _0x1d355f=[];let _0x36bb38=0x0,_0x14035b=0x0,_0x3ab1dc=0x0;for(const _0x889dc8 of _0x3b52da){const _0x38c171=_0x889dc8[_0x2821a7(0x11b)](/(\d+)\s+director/),_0x4a2ea2=_0x889dc8[_0x2821a7(0x11b)](/(\d+)\s+file/);if(_0x38c171)_0x3ab1dc=parseInt(_0x38c171[0x1]);if(_0x4a2ea2)_0x14035b=parseInt(_0x4a2ea2[0x1]);const _0x2103d3=(_0x889dc8[_0x2821a7(0x11b)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x2103d3<=0x4&&(_0x1d355f[_0x2821a7(0x130)](_0x889dc8),_0x36bb38++);}return _0x3b52da[_0x2821a7(0x12f)]>_0x1d355f[_0x2821a7(0x12f)]&&_0x1d355f['push']('\x0a...\x20('+_0x3ab1dc+'\x20directories,\x20'+_0x14035b+_0x2821a7(0x10b)),_0x1d355f['join']('\x0a');}function filterCat(_0x11110e,_0x1999d2=''){const _0x2a49b6=a0_0x463c99,_0x5fc5c7=extractFilename(_0x1999d2);try{if(_0x5fc5c7){const _0x3d1638=filterLockFile(_0x11110e,_0x5fc5c7);if(_0x3d1638)return _0x3d1638;}const _0x56289b=filterBinaryOrMinified(_0x11110e,_0x5fc5c7);if(_0x56289b)return _0x56289b;const _0x25c922=filterJsonMinify(_0x11110e);if(_0x25c922)return _0x25c922;}catch{}const _0x3e82b2=_0x11110e[_0x2a49b6(0x152)]('\x0a');if(_0x3e82b2['length']<=0x64)return _0x11110e;const _0x133c55=[];return _0x133c55[_0x2a49b6(0x130)](..._0x3e82b2[_0x2a49b6(0x153)](0x0,0x32)),_0x133c55['push'](_0x2a49b6(0x118)+(_0x3e82b2['length']-0x50)+_0x2a49b6(0x15b)),_0x133c55['push'](..._0x3e82b2[_0x2a49b6(0x153)](-0x1e)),_0x133c55[_0x2a49b6(0x130)]('\x0a('+_0x3e82b2[_0x2a49b6(0x12f)]+'\x20lines\x20total)'),_0x133c55['join']('\x0a');}function filterGrep(_0x34a37b){const _0x3f068f=a0_0x463c99,_0x2972f1=_0x34a37b[_0x3f068f(0x152)]('\x0a')[_0x3f068f(0x159)](_0x42d154=>_0x42d154[_0x3f068f(0x105)]()[_0x3f068f(0x12f)]>0x0);if(_0x2972f1[_0x3f068f(0x12f)]===0x0)return'No\x20matches\x20found';if(_0x2972f1[_0x3f068f(0x12f)]<=0x32)return _0x34a37b[_0x3f068f(0x105)]();const _0x5c883d={},_0x2700e3=[];for(const _0x18f30b of _0x2972f1){const _0x4ac99a=_0x18f30b[_0x3f068f(0x104)](':');if(_0x4ac99a>0x0&&_0x4ac99a<0xc8){const _0x8f97f3=_0x18f30b['substring'](0x0,_0x4ac99a);if(_0x8f97f3[_0x3f068f(0x155)]('/')||_0x8f97f3[_0x3f068f(0x155)]('\x5c')||_0x8f97f3['includes']('.')){if(!_0x5c883d[_0x8f97f3])_0x5c883d[_0x8f97f3]=[];_0x5c883d[_0x8f97f3][_0x3f068f(0x130)](_0x18f30b[_0x3f068f(0x14b)](_0x4ac99a+0x1)['trim']());continue;}}_0x2700e3[_0x3f068f(0x130)](_0x18f30b);}const _0x3b6581=[],_0x3985f0=Object[_0x3f068f(0x100)](_0x5c883d);if(_0x3985f0[_0x3f068f(0x12f)]>0x0){const _0x51f7dc=0x14,_0x426e42=_0x3985f0[_0x3f068f(0x153)](0x0,_0x51f7dc);for(const _0x26a33e of _0x426e42){const _0x45d7ab=_0x5c883d[_0x26a33e];if(_0x45d7ab['length']<=0x3)for(const _0xac47cb of _0x45d7ab){_0x3b6581[_0x3f068f(0x130)](_0x26a33e+':\x20'+_0xac47cb);}else _0x3b6581[_0x3f068f(0x130)](_0x26a33e+':\x20'+_0x45d7ab[0x0]),_0x3b6581['push'](_0x26a33e+':\x20...\x20('+_0x45d7ab[_0x3f068f(0x12f)]+_0x3f068f(0x13e));}_0x3985f0['length']>_0x51f7dc&&_0x3b6581['push']('...\x20+'+(_0x3985f0[_0x3f068f(0x12f)]-_0x51f7dc)+_0x3f068f(0xf0));}if(_0x2700e3[_0x3f068f(0x12f)]>0x0){const _0x45dce8=0x1e;_0x3b6581['push'](..._0x2700e3[_0x3f068f(0x153)](0x0,_0x45dce8)),_0x2700e3[_0x3f068f(0x12f)]>_0x45dce8&&_0x3b6581[_0x3f068f(0x130)](_0x3f068f(0x107)+(_0x2700e3[_0x3f068f(0x12f)]-_0x45dce8)+_0x3f068f(0x138));}const _0x5d4cd5=_0x2972f1[_0x3f068f(0x12f)];return _0x3b6581[_0x3f068f(0x130)]('\x0a('+_0x5d4cd5+_0x3f068f(0x149)+(_0x3985f0[_0x3f068f(0x12f)]||'?')+_0x3f068f(0x11e)),_0x3b6581['join']('\x0a');}function filterFind(_0x2a93f2){const _0x4b9ec2=a0_0x463c99,_0x4e385c=_0x2a93f2[_0x4b9ec2(0x152)]('\x0a')[_0x4b9ec2(0x159)](_0x172bd8=>_0x172bd8[_0x4b9ec2(0x105)]()[_0x4b9ec2(0x12f)]>0x0);if(_0x4e385c[_0x4b9ec2(0x12f)]===0x0)return'No\x20files\x20found';if(_0x4e385c['length']<=0x32)return _0x2a93f2['trim']();const _0x2ed8d2={};for(const _0xb117f4 of _0x4e385c){const _0x5258f7=path[_0x4b9ec2(0xf3)](_0xb117f4[_0x4b9ec2(0x105)]())||'.';_0x2ed8d2[_0x5258f7]=(_0x2ed8d2[_0x5258f7]||0x0)+0x1;}const _0x32e6fb=Object[_0x4b9ec2(0xee)](_0x2ed8d2)['sort']((_0x59e5eb,_0x301b76)=>_0x301b76[0x1]-_0x59e5eb[0x1]),_0x532ba6=[_0x4e385c[_0x4b9ec2(0x12f)]+_0x4b9ec2(0x13a)+_0x32e6fb[_0x4b9ec2(0x12f)]+'\x20directories',''],_0x27b883=0x1e;for(const [_0x49dac2,_0xa96def]of _0x32e6fb[_0x4b9ec2(0x153)](0x0,_0x27b883)){_0x532ba6[_0x4b9ec2(0x130)]('\x20\x20'+_0x49dac2+_0x4b9ec2(0x142)+_0xa96def+_0x4b9ec2(0x11e));}return _0x32e6fb[_0x4b9ec2(0x12f)]>_0x27b883&&_0x532ba6[_0x4b9ec2(0x130)]('\x20\x20...\x20+'+(_0x32e6fb[_0x4b9ec2(0x12f)]-_0x27b883)+_0x4b9ec2(0x14a)),_0x532ba6[_0x4b9ec2(0x10a)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x2fc984=a0_0x2578;(function(_0x933ff9,_0x17ea80){const _0x1bf9fb=a0_0x2578,_0x8c3524=_0x933ff9();while(!![]){try{const _0x45d817=parseInt(_0x1bf9fb(0x116))/0x1+-parseInt(_0x1bf9fb(0x142))/0x2*(-parseInt(_0x1bf9fb(0xd9))/0x3)+-parseInt(_0x1bf9fb(0x107))/0x4*(parseInt(_0x1bf9fb(0xde))/0x5)+-parseInt(_0x1bf9fb(0xed))/0x6+parseInt(_0x1bf9fb(0x115))/0x7*(parseInt(_0x1bf9fb(0xff))/0x8)+-parseInt(_0x1bf9fb(0xfc))/0x9*(-parseInt(_0x1bf9fb(0x143))/0xa)+parseInt(_0x1bf9fb(0x103))/0xb;if(_0x45d817===_0x17ea80)break;else _0x8c3524['push'](_0x8c3524['shift']());}catch(_0x4d167b){_0x8c3524['push'](_0x8c3524['shift']());}}}(a0_0x5372,0x68002));function a0_0x2578(_0x29ebb9,_0x39676a){_0x29ebb9=_0x29ebb9-0xce;const _0x5372b0=a0_0x5372();let _0x257820=_0x5372b0[_0x29ebb9];return _0x257820;}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x4ddc05,_0x34d4b3,_0x38afee,_0x5cc669){const _0x593c19=a0_0x2578;if(_0x5cc669===undefined)_0x5cc669=_0x38afee;var _0x110b3f=Object[_0x593c19(0xe5)](_0x34d4b3,_0x38afee);(!_0x110b3f||(_0x593c19(0xf5)in _0x110b3f?!_0x34d4b3[_0x593c19(0x11d)]:_0x110b3f[_0x593c19(0x13f)]||_0x110b3f['configurable']))&&(_0x110b3f={'enumerable':!![],'get':function(){return _0x34d4b3[_0x38afee];}}),Object[_0x593c19(0xee)](_0x4ddc05,_0x5cc669,_0x110b3f);}:function(_0x23ca4d,_0x3d2406,_0x2759b3,_0x31847d){if(_0x31847d===undefined)_0x31847d=_0x2759b3;_0x23ca4d[_0x31847d]=_0x3d2406[_0x2759b3];}),__setModuleDefault=this&&this[a0_0x2fc984(0xfb)]||(Object[a0_0x2fc984(0xdb)]?function(_0x3fad02,_0x4798be){const _0x3ca9e2=a0_0x2fc984;Object['defineProperty'](_0x3fad02,_0x3ca9e2(0x10b),{'enumerable':!![],'value':_0x4798be});}:function(_0x1c21e2,_0x4f7e1a){const _0x5879ed=a0_0x2fc984;_0x1c21e2[_0x5879ed(0x10b)]=_0x4f7e1a;}),__importStar=this&&this[a0_0x2fc984(0x108)]||(function(){var _0x4034d9=function(_0x530b2f){const _0x28025d=a0_0x2578;return _0x4034d9=Object[_0x28025d(0xe6)]||function(_0x5323fc){const _0xd8800e=_0x28025d;var _0x359ffe=[];for(var _0x3c7f47 in _0x5323fc)if(Object[_0xd8800e(0x140)][_0xd8800e(0xe7)][_0xd8800e(0x11b)](_0x5323fc,_0x3c7f47))_0x359ffe[_0x359ffe[_0xd8800e(0x13a)]]=_0x3c7f47;return _0x359ffe;},_0x4034d9(_0x530b2f);};return function(_0x229a05){const _0x1f6a68=a0_0x2578;if(_0x229a05&&_0x229a05[_0x1f6a68(0x11d)])return _0x229a05;var _0xe4dace={};if(_0x229a05!=null){for(var _0x1010d5=_0x4034d9(_0x229a05),_0xc8c3db=0x0;_0xc8c3db<_0x1010d5[_0x1f6a68(0x13a)];_0xc8c3db++)if(_0x1010d5[_0xc8c3db]!==_0x1f6a68(0x10b))__createBinding(_0xe4dace,_0x229a05,_0x1010d5[_0xc8c3db]);}return __setModuleDefault(_0xe4dace,_0x229a05),_0xe4dace;};}());Object[a0_0x2fc984(0xee)](exports,'__esModule',{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x2fc984(0x10d)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x2fc984(0x106)]=filterGrep,exports[a0_0x2fc984(0xec)]=filterFind;const path=__importStar(require(a0_0x2fc984(0x11c))),LOCK_FILES=[a0_0x2fc984(0x141),a0_0x2fc984(0xf7),a0_0x2fc984(0x124),a0_0x2fc984(0xfe),'go.sum',a0_0x2fc984(0x125),a0_0x2fc984(0x12e),a0_0x2fc984(0x133),a0_0x2fc984(0x121)],BINARY_EXTENSIONS=[a0_0x2fc984(0xf1),a0_0x2fc984(0x137),a0_0x2fc984(0xcf),a0_0x2fc984(0x131),a0_0x2fc984(0xd7),a0_0x2fc984(0xe8),a0_0x2fc984(0xea),a0_0x2fc984(0xe4),a0_0x2fc984(0x111),'.bmp',a0_0x2fc984(0x112),a0_0x2fc984(0x10c),'.pdf',a0_0x2fc984(0xfa),a0_0x2fc984(0xd6),a0_0x2fc984(0x13b),a0_0x2fc984(0x11a),'.bz2',a0_0x2fc984(0x105),a0_0x2fc984(0x12c),a0_0x2fc984(0x100),'.dll',a0_0x2fc984(0xdc),a0_0x2fc984(0xdf),a0_0x2fc984(0x139),a0_0x2fc984(0xf6),a0_0x2fc984(0xe9),a0_0x2fc984(0x138),'.sqlite3',a0_0x2fc984(0x122),a0_0x2fc984(0x102),a0_0x2fc984(0x10f),a0_0x2fc984(0xd5),a0_0x2fc984(0xef),a0_0x2fc984(0xd8),a0_0x2fc984(0x10e),a0_0x2fc984(0x10a),a0_0x2fc984(0x101),a0_0x2fc984(0xd4),a0_0x2fc984(0x119),'.pyc',a0_0x2fc984(0x11e),a0_0x2fc984(0x132),'.o',a0_0x2fc984(0x12b)];function extractFilename(_0x224cb6){const _0xa54967=a0_0x2fc984,_0x517f13=_0x224cb6['trim']()[_0xa54967(0xf9)](/\s+/);for(let _0x7a0e73=0x1;_0x7a0e73<_0x517f13[_0xa54967(0x13a)];_0x7a0e73++){if(!_0x517f13[_0x7a0e73][_0xa54967(0x13c)]('-'))return _0x517f13[_0x7a0e73];}return null;}function filterLockFile(_0x33a83f,_0x444da0){const _0x231ee7=a0_0x2fc984;try{const _0x72f60b=path[_0x231ee7(0xf8)](_0x444da0)[_0x231ee7(0x136)]();if(!LOCK_FILES[_0x231ee7(0xf0)](_0x22f50e=>_0x72f60b===_0x22f50e[_0x231ee7(0x136)]()))return null;const _0x2ae9c6=_0x33a83f[_0x231ee7(0x13a)];let _0x369743=0x0;if(_0x72f60b===_0x231ee7(0x141))try{const _0x6651e8=JSON[_0x231ee7(0x109)](_0x33a83f);_0x369743=Object['keys'](_0x6651e8['packages']||_0x6651e8[_0x231ee7(0xd3)]||{})['length'];}catch{_0x369743=(_0x33a83f['match'](/"resolved":/g)||[])['length'];}else{if(_0x72f60b==='yarn.lock')_0x369743=(_0x33a83f[_0x231ee7(0x123)](/^"?[^#\s][^:]*:$/gm)||[])[_0x231ee7(0x13a)];else{if(_0x72f60b===_0x231ee7(0x13d)||_0x72f60b===_0x231ee7(0x125))_0x369743=(_0x33a83f[_0x231ee7(0x123)](/\[\[package\]\]/g)||[])[_0x231ee7(0x13a)];else{if(_0x72f60b==='go.sum')_0x369743=Math['floor'](_0x33a83f[_0x231ee7(0xf9)]('\x0a')['filter'](_0x8f5784=>_0x8f5784[_0x231ee7(0x12d)]())[_0x231ee7(0x13a)]/0x2);else{if(_0x72f60b==='composer.lock')try{_0x369743=JSON['parse'](_0x33a83f)['packages']?.[_0x231ee7(0x13a)]||0x0;}catch{}else _0x72f60b===_0x231ee7(0x124)?_0x369743=(_0x33a83f[_0x231ee7(0x123)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x369743=_0x33a83f[_0x231ee7(0xf9)]('\x0a')[_0x231ee7(0x12f)](_0x1eb366=>_0x1eb366[_0x231ee7(0x12d)]())[_0x231ee7(0x13a)];}}}}return _0x231ee7(0x114)+path['basename'](_0x444da0)+':\x20'+_0x369743+'\x20dependencies,\x20'+_0x2ae9c6[_0x231ee7(0xe3)]()+_0x231ee7(0xf4);}catch{return null;}}function a0_0x5372(){const _0x3575fd=['includes','/\x20(','.obj','.rar','trim','composer.lock','filter','\x20\x20...\x20+','.wasm','.class','Gemfile.lock','push','\x20directories','toLowerCase','.min.css','.db','.bin','length','.tgz','startsWith','cargo.lock','[binary\x20file]\x20','writable','prototype','package-lock.json','125418rSoLOa','5260IvcvBj','\x20chars,\x20type:\x20','\x20chars\x20across\x20','.map','indexOf','\x20lines\x20truncated]\x20...\x0a','substring','dependencies','.mov','.eot','.tar.gz','.png','.mp3','12lecdmq',':\x20...\x20(','create','.so','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','75CKghcH','.dylib','...\x20+','join','charCodeAt','toLocaleString','.gif','getOwnPropertyDescriptor','getOwnPropertyNames','hasOwnProperty','.jpg','.sqlite','.jpeg','\x20matches\x20in\x20this\x20file)','filterFind','4476090yeOUGi','defineProperty','.otf','some','.min.js','\x20files)','slice','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','get','.dat','yarn.lock','basename','split','.zip','__setModuleDefault','13887lDNVzL','keys','Cargo.lock','80408FVezul','.exe','.avi','.woff2','4610485scqFHW','No\x20files\x20found','.7z','filterGrep','164508BjuwCZ','__importStar','parse','.wav','default','.svg','filterTree','.mp4','.ttf','total\x20','.ico','.webp','\x20more\x20matches','[lock\x20file]\x20','70NWxBSc','206807fjYkQP','[binary/minified\x20file]\x20','\x20directories,\x20','.webm','.gz','call','path','__esModule','.pyo','\x20matches\x20across\x20','No\x20matches\x20found','bun.lockb','.woff','match','pnpm-lock.yaml','poetry.lock','\x20more\x20directories','\x20lines\x20total)','\x20more\x20files\x20with\x20matches'];a0_0x5372=function(){return _0x3575fd;};return a0_0x5372();}function filterBinaryOrMinified(_0x925fbe,_0x413021){const _0x3c509e=a0_0x2fc984;try{if(_0x413021){const _0x2ca8eb=_0x413021[_0x3c509e(0x136)]();for(const _0x523f72 of BINARY_EXTENSIONS){if(_0x2ca8eb['endsWith'](_0x523f72))return _0x3c509e(0x117)+path[_0x3c509e(0xf8)](_0x413021)+',\x20'+_0x925fbe[_0x3c509e(0x13a)][_0x3c509e(0xe3)]()+_0x3c509e(0x144)+_0x523f72+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x17264c=_0x925fbe[_0x3c509e(0xd2)](0x0,0x3e8);let _0x2fbada=0x0;for(let _0x44c8f3=0x0;_0x44c8f3<_0x17264c['length'];_0x44c8f3++){if(_0x17264c[_0x3c509e(0xe2)](_0x44c8f3)===0x0)_0x2fbada++;}if(_0x2fbada>0x0)return'[binary\x20file]\x20'+_0x925fbe['length'][_0x3c509e(0xe3)]()+_0x3c509e(0xdd);let _0x11cce6=0x0;for(let _0x3d9546=0x0;_0x3d9546<_0x17264c[_0x3c509e(0x13a)];_0x3d9546++){const _0x49de79=_0x17264c['charCodeAt'](_0x3d9546);if(_0x49de79<0x20&&_0x49de79!==0xa&&_0x49de79!==0xd&&_0x49de79!==0x9)_0x11cce6++;}if(_0x17264c[_0x3c509e(0x13a)]>0x64&&_0x11cce6>_0x17264c['length']*0.1)return _0x3c509e(0x13e)+_0x925fbe['length'][_0x3c509e(0xe3)]()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x4ba6bc=_0x925fbe[_0x3c509e(0xf9)]('\x0a');if(_0x4ba6bc[_0x3c509e(0x13a)]<=0x3&&_0x925fbe['length']>0x1388)return'[minified\x20file]\x20'+_0x925fbe['length']['toLocaleString']()+_0x3c509e(0xce)+_0x4ba6bc['length']+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0x4f78e1){const _0x22bb5e=a0_0x2fc984;try{const _0x5ebfcd=_0x4f78e1[_0x22bb5e(0x12d)]();if(!_0x5ebfcd[_0x22bb5e(0x13c)]('{')&&!_0x5ebfcd[_0x22bb5e(0x13c)]('['))return null;const _0x495edf=_0x5ebfcd[_0x22bb5e(0xf9)]('\x0a');if(_0x495edf[_0x22bb5e(0x13a)]<=0x14)return null;const _0x1087db=JSON['parse'](_0x5ebfcd),_0xabaa1e=JSON['stringify'](_0x1087db);if(_0xabaa1e['length']<_0x5ebfcd[_0x22bb5e(0x13a)])return _0xabaa1e;return null;}catch{return null;}}function filterLs(_0x15b5c2){const _0x33ee12=a0_0x2fc984,_0x117998=_0x15b5c2[_0x33ee12(0xf9)]('\x0a')['filter'](_0xe026c=>_0xe026c[_0x33ee12(0x12d)]()[_0x33ee12(0x13a)]>0x0);if(_0x117998[_0x33ee12(0x13a)]===0x0)return'Empty\x20directory';if(_0x117998[_0x33ee12(0x13a)]<=0x1e)return _0x15b5c2[_0x33ee12(0x12d)]();const _0x220ecb=[],_0x2f4912=[];for(const _0xd64af6 of _0x117998){const _0x2d7c25=_0xd64af6['trim']();if(_0x2d7c25['startsWith'](_0x33ee12(0x110))||_0x2d7c25['startsWith']('d')&&_0x2d7c25[_0x33ee12(0x129)]('..'))continue;_0x2d7c25['endsWith']('/')||_0x2d7c25[_0x33ee12(0x13c)]('d')&&_0x2d7c25[_0x33ee12(0x129)]('\x20')?_0x220ecb[_0x33ee12(0x134)](_0x2d7c25):_0x2f4912['push'](_0x2d7c25);}const _0x2f18dd=[];return _0x220ecb[_0x33ee12(0x13a)]>0x0&&(_0x220ecb[_0x33ee12(0x13a)]<=0xf?_0x2f18dd[_0x33ee12(0x134)](..._0x220ecb):(_0x2f18dd[_0x33ee12(0x134)](..._0x220ecb[_0x33ee12(0xf3)](0x0,0xa)),_0x2f18dd[_0x33ee12(0x134)]('...\x20+'+(_0x220ecb['length']-0xa)+_0x33ee12(0x126)))),_0x2f4912[_0x33ee12(0x13a)]>0x0&&(_0x2f4912[_0x33ee12(0x13a)]<=0x14?_0x2f18dd[_0x33ee12(0x134)](..._0x2f4912):(_0x2f18dd[_0x33ee12(0x134)](..._0x2f4912[_0x33ee12(0xf3)](0x0,0xf)),_0x2f18dd[_0x33ee12(0x134)](_0x33ee12(0xe0)+(_0x2f4912[_0x33ee12(0x13a)]-0xf)+'\x20more\x20files'))),_0x2f18dd[_0x33ee12(0x134)]('\x0a('+_0x220ecb[_0x33ee12(0x13a)]+_0x33ee12(0x118)+_0x2f4912[_0x33ee12(0x13a)]+_0x33ee12(0xf2)),_0x2f18dd[_0x33ee12(0xe1)]('\x0a');}function filterTree(_0x39dc98){const _0x4e7232=a0_0x2fc984,_0x595d07=_0x39dc98[_0x4e7232(0xf9)]('\x0a');if(_0x595d07[_0x4e7232(0x13a)]<=0x32)return _0x39dc98[_0x4e7232(0x12d)]();const _0x558365=[];let _0x3d3dd0=0x0,_0x18430b=0x0,_0x11f1c7=0x0;for(const _0x3952e0 of _0x595d07){const _0x27397c=_0x3952e0['match'](/(\d+)\s+director/),_0x5269d3=_0x3952e0[_0x4e7232(0x123)](/(\d+)\s+file/);if(_0x27397c)_0x11f1c7=parseInt(_0x27397c[0x1]);if(_0x5269d3)_0x18430b=parseInt(_0x5269d3[0x1]);const _0x317f84=(_0x3952e0[_0x4e7232(0x123)](/^[│├└\s─]+/)||[''])[0x0][_0x4e7232(0x13a)];_0x317f84<=0x4&&(_0x558365['push'](_0x3952e0),_0x3d3dd0++);}return _0x595d07[_0x4e7232(0x13a)]>_0x558365['length']&&_0x558365['push']('\x0a...\x20('+_0x11f1c7+_0x4e7232(0x118)+_0x18430b+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x558365[_0x4e7232(0xe1)]('\x0a');}function filterCat(_0x5ee372,_0x3a3b21=''){const _0x4f8b15=a0_0x2fc984,_0x1da7dd=extractFilename(_0x3a3b21);try{if(_0x1da7dd){const _0x319c7d=filterLockFile(_0x5ee372,_0x1da7dd);if(_0x319c7d)return _0x319c7d;}const _0x581abe=filterBinaryOrMinified(_0x5ee372,_0x1da7dd);if(_0x581abe)return _0x581abe;const _0x65ce52=filterJsonMinify(_0x5ee372);if(_0x65ce52)return _0x65ce52;}catch{}const _0x151099=_0x5ee372[_0x4f8b15(0xf9)]('\x0a');if(_0x151099['length']<=0x64)return _0x5ee372;const _0x3ab214=[];return _0x3ab214[_0x4f8b15(0x134)](..._0x151099[_0x4f8b15(0xf3)](0x0,0x32)),_0x3ab214[_0x4f8b15(0x134)]('\x0a...\x20['+(_0x151099[_0x4f8b15(0x13a)]-0x50)+_0x4f8b15(0xd1)),_0x3ab214[_0x4f8b15(0x134)](..._0x151099[_0x4f8b15(0xf3)](-0x1e)),_0x3ab214[_0x4f8b15(0x134)]('\x0a('+_0x151099[_0x4f8b15(0x13a)]+_0x4f8b15(0x127)),_0x3ab214[_0x4f8b15(0xe1)]('\x0a');}function filterGrep(_0x45ec78){const _0x4761b5=a0_0x2fc984,_0x63ef77=_0x45ec78['split']('\x0a')[_0x4761b5(0x12f)](_0x4636a3=>_0x4636a3[_0x4761b5(0x12d)]()[_0x4761b5(0x13a)]>0x0);if(_0x63ef77[_0x4761b5(0x13a)]===0x0)return _0x4761b5(0x120);if(_0x63ef77[_0x4761b5(0x13a)]<=0x32)return _0x45ec78[_0x4761b5(0x12d)]();const _0x1bd79b={},_0x2f8c0d=[];for(const _0x5031b4 of _0x63ef77){const _0x176b59=_0x5031b4[_0x4761b5(0xd0)](':');if(_0x176b59>0x0&&_0x176b59<0xc8){const _0x254cb9=_0x5031b4[_0x4761b5(0xd2)](0x0,_0x176b59);if(_0x254cb9['includes']('/')||_0x254cb9[_0x4761b5(0x129)]('\x5c')||_0x254cb9[_0x4761b5(0x129)]('.')){if(!_0x1bd79b[_0x254cb9])_0x1bd79b[_0x254cb9]=[];_0x1bd79b[_0x254cb9][_0x4761b5(0x134)](_0x5031b4[_0x4761b5(0xd2)](_0x176b59+0x1)['trim']());continue;}}_0x2f8c0d[_0x4761b5(0x134)](_0x5031b4);}const _0x5d343e=[],_0x19d0c8=Object[_0x4761b5(0xfd)](_0x1bd79b);if(_0x19d0c8[_0x4761b5(0x13a)]>0x0){const _0x11082d=0x14,_0x2a6a3b=_0x19d0c8['slice'](0x0,_0x11082d);for(const _0x295a8b of _0x2a6a3b){const _0x1f464b=_0x1bd79b[_0x295a8b];if(_0x1f464b[_0x4761b5(0x13a)]<=0x3)for(const _0x1ed0e4 of _0x1f464b){_0x5d343e[_0x4761b5(0x134)](_0x295a8b+':\x20'+_0x1ed0e4);}else _0x5d343e[_0x4761b5(0x134)](_0x295a8b+':\x20'+_0x1f464b[0x0]),_0x5d343e['push'](_0x295a8b+_0x4761b5(0xda)+_0x1f464b[_0x4761b5(0x13a)]+_0x4761b5(0xeb));}_0x19d0c8[_0x4761b5(0x13a)]>_0x11082d&&_0x5d343e[_0x4761b5(0x134)]('...\x20+'+(_0x19d0c8[_0x4761b5(0x13a)]-_0x11082d)+_0x4761b5(0x128));}if(_0x2f8c0d['length']>0x0){const _0x1007a6=0x1e;_0x5d343e[_0x4761b5(0x134)](..._0x2f8c0d[_0x4761b5(0xf3)](0x0,_0x1007a6)),_0x2f8c0d[_0x4761b5(0x13a)]>_0x1007a6&&_0x5d343e[_0x4761b5(0x134)](_0x4761b5(0xe0)+(_0x2f8c0d[_0x4761b5(0x13a)]-_0x1007a6)+_0x4761b5(0x113));}const _0x196221=_0x63ef77[_0x4761b5(0x13a)];return _0x5d343e['push']('\x0a('+_0x196221+_0x4761b5(0x11f)+(_0x19d0c8[_0x4761b5(0x13a)]||'?')+_0x4761b5(0xf2)),_0x5d343e[_0x4761b5(0xe1)]('\x0a');}function filterFind(_0x233dc8){const _0xb4d383=a0_0x2fc984,_0x5e863c=_0x233dc8[_0xb4d383(0xf9)]('\x0a')[_0xb4d383(0x12f)](_0x23ce28=>_0x23ce28[_0xb4d383(0x12d)]()[_0xb4d383(0x13a)]>0x0);if(_0x5e863c[_0xb4d383(0x13a)]===0x0)return _0xb4d383(0x104);if(_0x5e863c[_0xb4d383(0x13a)]<=0x32)return _0x233dc8[_0xb4d383(0x12d)]();const _0x1307c6={};for(const _0x174b84 of _0x5e863c){const _0x36bdc6=path['dirname'](_0x174b84[_0xb4d383(0x12d)]())||'.';_0x1307c6[_0x36bdc6]=(_0x1307c6[_0x36bdc6]||0x0)+0x1;}const _0xfd7c70=Object['entries'](_0x1307c6)['sort']((_0x701cc3,_0x42d011)=>_0x42d011[0x1]-_0x701cc3[0x1]),_0x22a93b=[_0x5e863c['length']+'\x20files\x20found\x20across\x20'+_0xfd7c70[_0xb4d383(0x13a)]+_0xb4d383(0x135),''],_0x2de1cd=0x1e;for(const [_0x31175a,_0x420e27]of _0xfd7c70[_0xb4d383(0xf3)](0x0,_0x2de1cd)){_0x22a93b[_0xb4d383(0x134)]('\x20\x20'+_0x31175a+_0xb4d383(0x12a)+_0x420e27+_0xb4d383(0xf2));}return _0xfd7c70['length']>_0x2de1cd&&_0x22a93b[_0xb4d383(0x134)](_0xb4d383(0x130)+(_0xfd7c70[_0xb4d383(0x13a)]-_0x2de1cd)+_0xb4d383(0x126)),_0x22a93b[_0xb4d383(0xe1)]('\x0a');}
|
package/index.html
CHANGED
|
@@ -648,7 +648,11 @@
|
|
|
648
648
|
if (!chartCanvas) return;
|
|
649
649
|
|
|
650
650
|
if (savingsChart) {
|
|
651
|
-
savingsChart.
|
|
651
|
+
savingsChart.data.labels = labels.length > 0 ? labels : ['No Data'];
|
|
652
|
+
savingsChart.data.datasets[0].data = originalCostData.length > 0 ? originalCostData : [0];
|
|
653
|
+
savingsChart.data.datasets[1].data = shavedCostData.length > 0 ? shavedCostData : [0];
|
|
654
|
+
savingsChart.update('none');
|
|
655
|
+
return;
|
|
652
656
|
}
|
|
653
657
|
|
|
654
658
|
savingsChart = new Chart(chartCanvas, {
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0xc6fde3=a0_0x42a7;(function(_0x5af09b,_0x251305){const _0x1e54e3=a0_0x42a7,_0x40635b=_0x5af09b();while(!![]){try{const _0x3dde20=-parseInt(_0x1e54e3(0x14e))/0x1+-parseInt(_0x1e54e3(0x123))/0x2*(-parseInt(_0x1e54e3(0x153))/0x3)+-parseInt(_0x1e54e3(0x131))/0x4+-parseInt(_0x1e54e3(0x144))/0x5+-parseInt(_0x1e54e3(0x13c))/0x6*(-parseInt(_0x1e54e3(0x12c))/0x7)+-parseInt(_0x1e54e3(0x14b))/0x8*(parseInt(_0x1e54e3(0x137))/0x9)+parseInt(_0x1e54e3(0x124))/0xa;if(_0x3dde20===_0x251305)break;else _0x40635b['push'](_0x40635b['shift']());}catch(_0x113a91){_0x40635b['push'](_0x40635b['shift']());}}}(a0_0x1e90,0xebab0));var __createBinding=this&&this[a0_0xc6fde3(0x142)]||(Object['create']?function(_0x55551c,_0x336599,_0x1d7e8f,_0x40fc5f){const _0x4f333b=a0_0xc6fde3;if(_0x40fc5f===undefined)_0x40fc5f=_0x1d7e8f;var _0xfa0040=Object[_0x4f333b(0x14c)](_0x336599,_0x1d7e8f);(!_0xfa0040||(_0x4f333b(0x12b)in _0xfa0040?!_0x336599[_0x4f333b(0x14f)]:_0xfa0040['writable']||_0xfa0040[_0x4f333b(0x146)]))&&(_0xfa0040={'enumerable':!![],'get':function(){return _0x336599[_0x1d7e8f];}}),Object[_0x4f333b(0x145)](_0x55551c,_0x40fc5f,_0xfa0040);}:function(_0x489b2a,_0x15f15e,_0x278c4e,_0x5c80f3){if(_0x5c80f3===undefined)_0x5c80f3=_0x278c4e;_0x489b2a[_0x5c80f3]=_0x15f15e[_0x278c4e];}),__setModuleDefault=this&&this[a0_0xc6fde3(0x129)]||(Object[a0_0xc6fde3(0x13a)]?function(_0xa864d1,_0x1a4960){const _0x24f672=a0_0xc6fde3;Object[_0x24f672(0x145)](_0xa864d1,'default',{'enumerable':!![],'value':_0x1a4960});}:function(_0x1e784f,_0x530efe){const _0x1e57c2=a0_0xc6fde3;_0x1e784f[_0x1e57c2(0x14d)]=_0x530efe;}),__importStar=this&&this['__importStar']||(function(){var _0xa29c3f=function(_0x26850f){return _0xa29c3f=Object['getOwnPropertyNames']||function(_0x21155e){const _0x28dc45=a0_0x42a7;var _0x59ee13=[];for(var _0x380f41 in _0x21155e)if(Object['prototype'][_0x28dc45(0x12f)][_0x28dc45(0x152)](_0x21155e,_0x380f41))_0x59ee13[_0x59ee13['length']]=_0x380f41;return _0x59ee13;},_0xa29c3f(_0x26850f);};return function(_0x5a547f){const _0x1bcc87=a0_0x42a7;if(_0x5a547f&&_0x5a547f[_0x1bcc87(0x14f)])return _0x5a547f;var _0x138d17={};if(_0x5a547f!=null){for(var _0x56f851=_0xa29c3f(_0x5a547f),_0x57f55c=0x0;_0x57f55c<_0x56f851[_0x1bcc87(0x12d)];_0x57f55c++)if(_0x56f851[_0x57f55c]!==_0x1bcc87(0x14d))__createBinding(_0x138d17,_0x5a547f,_0x56f851[_0x57f55c]);}return __setModuleDefault(_0x138d17,_0x5a547f),_0x138d17;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['runMcpProxy']=runMcpProxy;const child_process_1=require(a0_0xc6fde3(0x147)),readline=__importStar(require(a0_0xc6fde3(0x126))),filters_1=require(a0_0xc6fde3(0x141)),tracker_1=require(a0_0xc6fde3(0x127));function a0_0x42a7(_0x4b777e,_0x12eec9){_0x4b777e=_0x4b777e-0x123;const _0x1e90aa=a0_0x1e90();let _0x42a723=_0x1e90aa[_0x4b777e];return _0x42a723;}function runMcpProxy(_0x30b962,_0xca42fa){const _0xdc2c5d=a0_0xc6fde3,_0x2dc95f=(0x0,child_process_1[_0xdc2c5d(0x13e)])(_0x30b962,_0xca42fa,{'stdio':['pipe',_0xdc2c5d(0x139),_0xdc2c5d(0x134)]});process[_0xdc2c5d(0x128)][_0xdc2c5d(0x139)](_0x2dc95f[_0xdc2c5d(0x128)]);const _0x25b338=readline[_0xdc2c5d(0x148)]({'input':_0x2dc95f[_0xdc2c5d(0x158)],'terminal':![]});_0x25b338['on'](_0xdc2c5d(0x150),_0x46c9db=>{const _0x52df84=_0xdc2c5d;try{const _0x5b4432=JSON[_0x52df84(0x138)](_0x46c9db);if(_0x5b4432&&_0x5b4432['jsonrpc']===_0x52df84(0x159)&&_0x5b4432['id']!==undefined&&_0x5b4432[_0x52df84(0x13d)]&&Array[_0x52df84(0x136)](_0x5b4432[_0x52df84(0x13d)][_0x52df84(0x130)])){let _0x142d5c=![];for(const _0x3a792c of _0x5b4432[_0x52df84(0x13d)][_0x52df84(0x130)]){if(_0x3a792c[_0x52df84(0x155)]===_0x52df84(0x12e)&&typeof _0x3a792c[_0x52df84(0x12e)]===_0x52df84(0x14a)&&_0x3a792c[_0x52df84(0x12e)][_0x52df84(0x157)]()[_0x52df84(0x12d)]>0x0){const _0x38d3da=_0x3a792c[_0x52df84(0x12e)],_0x4ed233=(0x0,filters_1[_0x52df84(0x135)])(_0x52df84(0x154),_0x38d3da,'',tracker_1['tracker'][_0x52df84(0x156)]()[_0x52df84(0x125)]);tracker_1['tracker'][_0x52df84(0x133)](_0x52df84(0x132)+_0x5b4432['id']+')',_0x38d3da,_0x4ed233,0x0),_0x3a792c[_0x52df84(0x12e)]=_0x4ed233,_0x142d5c=!![];}}_0x142d5c?process[_0x52df84(0x158)]['write'](JSON[_0x52df84(0x151)](_0x5b4432)+'\x0a'):process[_0x52df84(0x158)][_0x52df84(0x13b)](_0x46c9db+'\x0a');}else process['stdout']['write'](_0x46c9db+'\x0a');}catch{process['stdout'][_0x52df84(0x13b)](_0x46c9db+'\x0a');}}),_0x2dc95f['on'](_0xdc2c5d(0x149),_0x24d8b6=>{const _0x59cbb4=_0xdc2c5d;process[_0x59cbb4(0x143)](_0x24d8b6||0x0);}),_0x2dc95f['on'](_0xdc2c5d(0x12a),_0x1dc36b=>{const _0x13e199=_0xdc2c5d;console[_0x13e199(0x12a)](_0x13e199(0x13f)+_0x1dc36b[_0x13e199(0x140)]),process[_0x13e199(0x143)](0x1);});}function a0_0x1e90(){const _0x2bab8f=['redaction_enabled','readline','./tracker','stdin','__setModuleDefault','error','get','183806BbVUqB','length','text','hasOwnProperty','content','1247180ZEccoS','mcp\x20tool\x20(id:\x20','logExecution','inherit','compressOutput','isArray','63uRiJfW','parse','pipe','create','write','342yivMfF','result','spawn','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','message','./filters','__createBinding','exit','6523895uvVobC','defineProperty','configurable','child_process','createInterface','close','string','327864OWLhMT','getOwnPropertyDescriptor','default','972264bNDecZ','__esModule','line','stringify','call','879NOXRaV','mcp-tool-call','type','getConfig','trim','stdout','2.0','12782sTmRVY','4717460LcBuJM'];a0_0x1e90=function(){return _0x2bab8f;};return a0_0x1e90();}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trimprompt",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "TrimPrompt.
|
|
3
|
+
"version": "1.0.20",
|
|
4
|
+
"description": "TrimPrompt — Save 80% on LLM tokens. Zero-config CLI proxy for AI coding agents",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"trim": "cli.js"
|
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x390c48=a0_0x33f5;(function(_0x1f73b9,_0xd5537a){const _0x289969=a0_0x33f5,_0x577b8b=_0x1f73b9();while(!![]){try{const _0x307613=-parseInt(_0x289969(0x1ad))/0x1*(-parseInt(_0x289969(0x1b3))/0x2)+parseInt(_0x289969(0x1b4))/0x3+-parseInt(_0x289969(0x199))/0x4+parseInt(_0x289969(0x197))/0x5+-parseInt(_0x289969(0x1a8))/0x6+parseInt(_0x289969(0x1b2))/0x7*(-parseInt(_0x289969(0x1c8))/0x8)+parseInt(_0x289969(0x1b6))/0x9;if(_0x307613===_0xd5537a)break;else _0x577b8b['push'](_0x577b8b['shift']());}catch(_0x5581af){_0x577b8b['push'](_0x577b8b['shift']());}}}(a0_0x26b0,0xe9f44));Object['defineProperty'](exports,a0_0x390c48(0x1b8),{'value':!![]}),exports[a0_0x390c48(0x19e)]=exports[a0_0x390c48(0x19f)]=void 0x0;function a0_0x33f5(_0x1aafb6,_0x344a1b){_0x1aafb6=_0x1aafb6-0x197;const _0x26b025=a0_0x26b0();let _0x33f5a6=_0x26b025[_0x1aafb6];return _0x33f5a6;}function a0_0x26b0(){const _0x16beb8=['redactor','Redactor','bearer','\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22','jwt','[REDACTED_SENDGRID_KEY]','includes','[REDACTED_AZURE_CONNECTION]','aws_secret','match','8065944riIcBN','IPv4\x20Address\x20(non-local)','Generic\x20API\x20Key/Secret/Password','db_connection','GitHub\x20Token','1166653NZDyrs','text','email','rules','Basic\x20[REDACTED_AUTH]','4694242HemLzR','2LPEeXm','3358026LfMaok','redactWithAudit','8547669mXwCVM','[REDACTED_IP]','__esModule','azure_conn','regex','Private\x20Key\x20Block','OpenAI\x20API\x20Key','loadDefaultRules','type','replace','[REDACTED_AWS_KEY]','length','[REDACTED_DB_CONNECTION]','stripe_key','redact','[REDACTED_SLACK_TOKEN]','Basic\x20Auth','Anthropic\x20API\x20Key','16znETEX','Azure\x20Connection\x20String','alert','[REDACTED_TWILIO_KEY]','Twilio\x20Key','replacement','ip_address','gcp_key','Bearer\x20Token','$1=[REDACTED_AWS_SECRET]','Bearer\x20[REDACTED_TOKEN]','2712695rNjKDJ','AWS\x20Secret\x20Key','537852DIDQhs','push','generic_credential','Database\x20Connection\x20String','Stripe\x20Key'];a0_0x26b0=function(){return _0x16beb8;};return a0_0x26b0();}class Redactor{[a0_0x390c48(0x1b0)]=[];constructor(){const _0x24085e=a0_0x390c48;this[_0x24085e(0x1bd)]();}['loadDefaultRules'](){const _0xf18596=a0_0x390c48;this[_0xf18596(0x1b0)]=[{'name':'AWS\x20Access\x20Key','type':'aws_key','regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0xf18596(0x1c0)},{'name':_0xf18596(0x198),'type':_0xf18596(0x1a6),'regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':_0xf18596(0x1d1)},{'name':'GCP\x20Service\x20Account\x20Key','type':_0xf18596(0x1cf),'regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':_0xf18596(0x1a1)},{'name':_0xf18596(0x1c9),'type':_0xf18596(0x1b9),'regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':_0xf18596(0x1a5)},{'name':_0xf18596(0x1c7),'type':'anthropic_key','regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':'[REDACTED_ANTHROPIC_KEY]'},{'name':_0xf18596(0x1bc),'type':'openai_key','regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':'[REDACTED_OPENAI_KEY]'},{'name':_0xf18596(0x1ac),'type':'github_token','regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':'[REDACTED_GITHUB_TOKEN]'},{'name':'Slack\x20Token','type':'slack_token','regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':_0xf18596(0x1c5)},{'name':_0xf18596(0x19d),'type':_0xf18596(0x1c3),'regex':/\b(sk_live_[A-Za-z0-9]{24,}|sk_test_[A-Za-z0-9]{24,}|rk_live_[A-Za-z0-9]{24,}|rk_test_[A-Za-z0-9]{24,})\b/g,'replacement':'[REDACTED_STRIPE_KEY]'},{'name':_0xf18596(0x1cc),'type':'twilio_key','regex':/\bSK[0-9a-f]{32}\b/g,'replacement':_0xf18596(0x1cb)},{'name':'SendGrid\x20Key','type':'sendgrid_key','regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':_0xf18596(0x1a3)},{'name':_0xf18596(0x1bb),'type':'private_key','regex':/-----BEGIN\s+(RSA|EC|DSA|ED25519|OPENSSH|PGP)?\s*PRIVATE KEY-----[\s\S]*?-----END\s+(RSA|EC|DSA|ED25519|OPENSSH|PGP)?\s*PRIVATE KEY-----/g,'replacement':'[REDACTED_PRIVATE_KEY]'},{'name':'JWT\x20Token','type':_0xf18596(0x1a2),'regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':'[REDACTED_JWT]'},{'name':_0xf18596(0x1d0),'type':_0xf18596(0x1a0),'regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':_0xf18596(0x1d2)},{'name':_0xf18596(0x1c6),'type':'basic_auth','regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':_0xf18596(0x1b1)},{'name':_0xf18596(0x19c),'type':_0xf18596(0x1ab),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0xf18596(0x1c2)},{'name':_0xf18596(0x1aa),'type':_0xf18596(0x19b),'regex':/(api[_-]?key|secret[_-]?key|password|passwd|auth[_-]?token|private[_-]?key|access[_-]?token|refresh[_-]?token|client[_-]?secret)[\s:="']+[A-Za-z0-9_\-./+=]{16,}/gi,'replacement':'$1=[REDACTED_CREDENTIAL]'},{'name':_0xf18596(0x1a9),'type':_0xf18596(0x1ce),'regex':/\b(?!127\.0\.0\.1|0\.0\.0\.0|255\.255\.255\.0|10\.\d|172\.(1[6-9]|2\d|3[01])\.|192\.168\.)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0xf18596(0x1b7),'alert':![]},{'name':'Email\x20Address','type':_0xf18596(0x1af),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':'[REDACTED_EMAIL]','alert':![]}];}[a0_0x390c48(0x1c4)](_0x156bfb){const _0xce5614=a0_0x390c48;return this[_0xce5614(0x1b5)](_0x156bfb)[_0xce5614(0x1ae)];}[a0_0x390c48(0x1b5)](_0x352028){const _0x1bbc99=a0_0x390c48;let _0x517d7b=_0x352028,_0x2f3178=0x0;const _0x5f3ea2=[];for(const _0x4836d7 of this['rules']){const _0xb822fb=_0x517d7b[_0x1bbc99(0x1a7)](_0x4836d7[_0x1bbc99(0x1ba)]);_0xb822fb&&_0xb822fb[_0x1bbc99(0x1c1)]>0x0&&(_0x4836d7[_0x1bbc99(0x1ca)]!==![]&&(_0x2f3178+=_0xb822fb['length'],!_0x5f3ea2[_0x1bbc99(0x1a4)](_0x4836d7[_0x1bbc99(0x1be)])&&_0x5f3ea2[_0x1bbc99(0x19a)](_0x4836d7[_0x1bbc99(0x1be)])),_0x517d7b=_0x517d7b[_0x1bbc99(0x1bf)](_0x4836d7[_0x1bbc99(0x1ba)],_0x4836d7[_0x1bbc99(0x1cd)]));}return{'text':_0x517d7b,'secretsFound':_0x2f3178,'secretTypes':_0x5f3ea2};}}exports[a0_0x390c48(0x19f)]=Redactor,exports[a0_0x390c48(0x19e)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a0_0x24d498=a0_0xb06f;(function(_0x3795cc,_0x66eebe){const _0x58f866=a0_0xb06f,_0x5bc7bc=_0x3795cc();while(!![]){try{const _0x13681a=parseInt(_0x58f866(0x154))/0x1+parseInt(_0x58f866(0x14e))/0x2+parseInt(_0x58f866(0x155))/0x3*(-parseInt(_0x58f866(0x14b))/0x4)+-parseInt(_0x58f866(0x153))/0x5+-parseInt(_0x58f866(0x148))/0x6+-parseInt(_0x58f866(0x15d))/0x7+-parseInt(_0x58f866(0x150))/0x8*(-parseInt(_0x58f866(0x149))/0x9);if(_0x13681a===_0x66eebe)break;else _0x5bc7bc['push'](_0x5bc7bc['shift']());}catch(_0x208b06){_0x5bc7bc['push'](_0x5bc7bc['shift']());}}}(a0_0x1205,0x807e8));function a0_0x1205(){const _0x5132d1=['test_db.py\x20PASS\x0a','1520260XCRrpK','Optimizing\x20assets...\x0a','4000MRskID','docker\x20build\x20.','All\x20303\x20tests\x20passed\x20in\x204.22s.','4268155lTEkWc','971201Rpdfkq','3qasoCt','[INFO]\x20Building\x20modules...\x0a','log','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','repeat','__esModule','gemini-1-5-pro','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','1661240OQFQbr','Successfully\x20built\x20image.','test_api.py\x20PASS\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','tracker','defineProperty','Compilation\x20Output:\x0a','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','test_auth.py\x20PASS\x0a','claude-3-opus','logExecution','npm\x20run\x20build','303606qtvfMr','6435Eptgth','pytest\x20tests/app','1683868IRvWuT','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'];a0_0x1205=function(){return _0x5132d1;};return a0_0x1205();}function a0_0xb06f(_0x4f5fa7,_0x4aea90){_0x4f5fa7=_0x4f5fa7-0x147;const _0x120574=a0_0x1205();let _0xb06fda=_0x120574[_0x4f5fa7];return _0xb06fda;}Object[a0_0x24d498(0x162)](exports,a0_0x24d498(0x15a),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x24d498(0x157)]('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process.env.TRIMPROMPT_MODEL=a0_0x24d498(0x166),tracker_1[a0_0x24d498(0x161)][a0_0x24d498(0x167)](a0_0x24d498(0x147),a0_0x24d498(0x163)+a0_0x24d498(0x156)+a0_0x24d498(0x14f)+a0_0x24d498(0x164)[a0_0x24d498(0x159)](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1[a0_0x24d498(0x161)][a0_0x24d498(0x167)](a0_0x24d498(0x14a),'Test\x20suite\x20run\x20starting...\x0a'+a0_0x24d498(0x165)+a0_0x24d498(0x14d)+a0_0x24d498(0x15f)[a0_0x24d498(0x159)](0x12c)+a0_0x24d498(0x152),a0_0x24d498(0x158),0x0),process.env.TRIMPROMPT_MODEL=a0_0x24d498(0x15b),tracker_1[a0_0x24d498(0x161)][a0_0x24d498(0x167)](a0_0x24d498(0x151),'Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a'+a0_0x24d498(0x160)+a0_0x24d498(0x15c)+a0_0x24d498(0x14c)+'added\x201420\x20packages\x20in\x2014s\x0a'['repeat'](0x3)+a0_0x24d498(0x15e),'docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x24d498(0x157)]('Database\x20successfully\x20seeded!');
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x34de10=a0_0x672b;function a0_0x3962(){const _0x5107a9=['some','TrimPrompt\x20Shims\x20PATH','default','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','uninstallShims','pip3','@echo\x20off','readdirSync','shims','4354aOfqaw','.zshrc','New-Item\x20-Path\x20\x27','tree','length','prototype','\x20\x20trim\x20','trim.cmd','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','-NoProfile','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','$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);','\x20@args\x20}\x20else\x20{\x20&\x20','toLowerCase','\x27,\x20\x27User\x27)','if\x20exist\x20\x22','$PROFILE.CurrentUserCurrentHost','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','__createBinding','\x0a#\x20','\x20&\x20','message','2822082MzgGnL','chmodSync','getOwnPropertyNames','readFileSync','dirname','Failed\x20to\x20install\x20shims:\x20','\x20\x22$@\x22;\x20fi\x0a','homedir','$PROFILE.CurrentUserAllHosts','unlinkSync','read','create','__importStar','-Command',';=%\x22','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','4eSswCu','existsSync','rmdirSync','git','119779yHwDIo','yarn','filter','split','call','powershell.exe','replace','includes',';%PATH%\x22','.profile','\x20@args\x20}\x0a','\x20\x20set\x20\x22PATH=%PATH:','mkdirSync','join','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22',':$PATH\x22\x0a','writable','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','npx','powershell','.cmd','installShims','[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.','powershell\x20-NoProfile\x20-Command\x20\x22','Failed\x20to\x20uninstall\x20shims:\x20','24cUvXSL','51057890wnnGSz','win32',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','792yDCQGZ','utf8','.trimprompt','getOwnPropertyDescriptor','map','pytest','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','\x20commands.\x0a\x0a','ignore','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','__esModule','755','writeFileSync','docker','\x20-NoProfile\x20-Command\x20\x22','.bash_profile','push','pipe','2270097aDoTsG','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','ruff','.ps1','pwsh','export\x20PATH=\x22','3424465BzKznS','defineProperty','execFileSync','.bashrc','trim','cat','Remove-ItemProperty\x20-Path\x20\x27','pip','14JLwyzM','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','npm','__setModuleDefault','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','\x0aexport\x20PATH=\x22','5xGdCzE','execSync','Set-ItemProperty\x20-Path\x20\x27','70220cUYedv','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','\x20%*','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','1864qwUlZJ'];a0_0x3962=function(){return _0x5107a9;};return a0_0x3962();}(function(_0x493785,_0x59808a){const _0x24f908=a0_0x672b,_0x598f12=_0x493785();while(!![]){try{const _0x43d361=-parseInt(_0x24f908(0xda))/0x1*(parseInt(_0x24f908(0x99))/0x2)+parseInt(_0x24f908(0x8b))/0x3*(-parseInt(_0x24f908(0xd6))/0x4)+parseInt(_0x24f908(0x9f))/0x5*(-parseInt(_0x24f908(0xc6))/0x6)+-parseInt(_0x24f908(0xb0))/0x7*(parseInt(_0x24f908(0xa6))/0x8)+-parseInt(_0x24f908(0xf7))/0x9*(parseInt(_0x24f908(0xa2))/0xa)+parseInt(_0x24f908(0x91))/0xb*(-parseInt(_0x24f908(0xf3))/0xc)+parseInt(_0x24f908(0xf4))/0xd;if(_0x43d361===_0x59808a)break;else _0x598f12['push'](_0x598f12['shift']());}catch(_0x50c1de){_0x598f12['push'](_0x598f12['shift']());}}}(a0_0x3962,0x7457b));var __createBinding=this&&this[a0_0x34de10(0xc2)]||(Object[a0_0x34de10(0xd1)]?function(_0x2b380a,_0x229553,_0x402b43,_0x4a2f06){const _0x31dc97=a0_0x34de10;if(_0x4a2f06===undefined)_0x4a2f06=_0x402b43;var _0x129e09=Object[_0x31dc97(0xfa)](_0x229553,_0x402b43);(!_0x129e09||('get'in _0x129e09?!_0x229553[_0x31dc97(0x101)]:_0x129e09[_0x31dc97(0xea)]||_0x129e09['configurable']))&&(_0x129e09={'enumerable':!![],'get':function(){return _0x229553[_0x402b43];}}),Object[_0x31dc97(0x92)](_0x2b380a,_0x4a2f06,_0x129e09);}:function(_0x58460c,_0x446d15,_0x11fdfc,_0x30cb80){if(_0x30cb80===undefined)_0x30cb80=_0x11fdfc;_0x58460c[_0x30cb80]=_0x446d15[_0x11fdfc];}),__setModuleDefault=this&&this[a0_0x34de10(0x9c)]||(Object[a0_0x34de10(0xd1)]?function(_0xe1612c,_0x136520){const _0x1b69db=a0_0x34de10;Object[_0x1b69db(0x92)](_0xe1612c,'default',{'enumerable':!![],'value':_0x136520});}:function(_0x6effc1,_0x12afdf){_0x6effc1['default']=_0x12afdf;}),__importStar=this&&this[a0_0x34de10(0xd2)]||(function(){var _0x155ceb=function(_0x271edf){const _0x1f7a49=a0_0x672b;return _0x155ceb=Object[_0x1f7a49(0xc8)]||function(_0x584130){const _0x32095b=_0x1f7a49;var _0x5c0586=[];for(var _0x585bd3 in _0x584130)if(Object[_0x32095b(0xb5)]['hasOwnProperty'][_0x32095b(0xde)](_0x584130,_0x585bd3))_0x5c0586[_0x5c0586[_0x32095b(0xb4)]]=_0x585bd3;return _0x5c0586;},_0x155ceb(_0x271edf);};return function(_0x43a7c8){const _0x136727=a0_0x672b;if(_0x43a7c8&&_0x43a7c8[_0x136727(0x101)])return _0x43a7c8;var _0x219d09={};if(_0x43a7c8!=null){for(var _0x5c59bf=_0x155ceb(_0x43a7c8),_0xe4bbbf=0x0;_0xe4bbbf<_0x5c59bf[_0x136727(0xb4)];_0xe4bbbf++)if(_0x5c59bf[_0xe4bbbf]!==_0x136727(0xa9))__createBinding(_0x219d09,_0x43a7c8,_0x5c59bf[_0xe4bbbf]);}return __setModuleDefault(_0x219d09,_0x43a7c8),_0x219d09;};}());Object[a0_0x34de10(0x92)](exports,a0_0x34de10(0x101),{'value':!![]}),exports[a0_0x34de10(0xef)]=installShims,exports[a0_0x34de10(0xab)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x34de10(0xb3),a0_0x34de10(0x96),a0_0x34de10(0xd0),'grep','rg',a0_0x34de10(0x8d),a0_0x34de10(0xd9),'gh','glab','cargo','npm','pnpm',a0_0x34de10(0xec),a0_0x34de10(0xdb),'kubectl',a0_0x34de10(0x86),a0_0x34de10(0xfc),a0_0x34de10(0x98),a0_0x34de10(0xac),'go','find'],PROFILE_MARKER=a0_0x34de10(0xa8);function getExecSync(){const _0x5b8b36=a0_0x34de10;return require('child_process')[_0x5b8b36(0xa0)];}function getExecFileSync(){const _0x5b3856=a0_0x34de10;return require('child_process')[_0x5b3856(0x93)];}function ensureProfileContains(_0x5d4e19,_0xd0304,_0x275a56){const _0x3dbb76=a0_0x34de10;try{const _0x21936d=path[_0x3dbb76(0xca)](_0x5d4e19);!fs['existsSync'](_0x21936d)&&fs[_0x3dbb76(0xe6)](_0x21936d,{'recursive':!![]});if(fs[_0x3dbb76(0xd7)](_0x5d4e19)){const _0x1da21e=fs[_0x3dbb76(0xc9)](_0x5d4e19,'utf8');if(_0x1da21e[_0x3dbb76(0xe1)](_0xd0304))return;fs['appendFileSync'](_0x5d4e19,_0x275a56,'utf8');}else fs[_0x3dbb76(0x103)](_0x5d4e19,_0x275a56,_0x3dbb76(0xf8));}catch{}}function a0_0x672b(_0x29dd27,_0x491702){_0x29dd27=_0x29dd27-0x86;const _0x3962ce=a0_0x3962();let _0x672ba5=_0x3962ce[_0x29dd27];return _0x672ba5;}function removeProfileBlock(_0x4e395f,_0x363644){const _0xe3339c=a0_0x34de10;try{if(!fs['existsSync'](_0x4e395f))return;const _0x4d93f5=fs[_0xe3339c(0xc9)](_0x4e395f,'utf8');if(!_0x4d93f5[_0xe3339c(0xe1)](_0x363644))return;const _0xe63ed5=_0x4d93f5[_0xe3339c(0xdd)]('\x0a'),_0x2efebe=[];let _0xa2f6a8=![];for(let _0x1637d8=0x0;_0x1637d8<_0xe63ed5['length'];_0x1637d8++){if(_0xe63ed5[_0x1637d8][_0xe3339c(0xe1)](_0x363644)){_0xa2f6a8=!![];continue;}if(_0xa2f6a8){_0xa2f6a8=![];continue;}_0x2efebe[_0xe3339c(0x89)](_0xe63ed5[_0x1637d8]);}const _0x261118=_0x2efebe[_0xe3339c(0xe7)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0xe3339c(0x103)](_0x4e395f,_0x261118,'utf8');}catch{}}function collectPowerShellProfiles(){const _0x1fc654=a0_0x34de10,_0x2073f5=getExecSync(),_0x36af75=[],_0x108cf2=[[_0x1fc654(0xed),_0x1fc654(0xc0)],[_0x1fc654(0xed),_0x1fc654(0xce)]];try{_0x2073f5(_0x1fc654(0xa3),{'stdio':_0x1fc654(0xff)}),_0x108cf2['push']([_0x1fc654(0x8f),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x460545,_0xbc44c]of _0x108cf2){try{const _0x4e0f56=_0x2073f5(_0x460545+_0x1fc654(0x87)+_0xbc44c+'\x22',{'encoding':_0x1fc654(0xf8)})[_0x1fc654(0x95)]();_0x4e0f56&&!_0x36af75[_0x1fc654(0xa7)](_0x956b3e=>_0x956b3e[_0x1fc654(0xbd)]()===_0x4e0f56[_0x1fc654(0xbd)]())&&_0x36af75[_0x1fc654(0x89)](_0x4e0f56);}catch{}}return _0x36af75;}function getBashProfilesWindows(){const _0x3e3b47=a0_0x34de10,_0x1679b7=os[_0x3e3b47(0xcd)]();return[_0x3e3b47(0x94),'.bash_profile'][_0x3e3b47(0xfb)](_0x3b49db=>path['join'](_0x1679b7,_0x3b49db));}function getBroadcastCommand(){const _0x3f470c=a0_0x34de10;return _0x3f470c(0xbb);}function installShims(){const _0x29b51f=a0_0x34de10,_0x3b38b2=path[_0x29b51f(0xe7)](os['homedir'](),_0x29b51f(0xf9),_0x29b51f(0xaf));try{!fs[_0x29b51f(0xd7)](_0x3b38b2)&&fs['mkdirSync'](_0x3b38b2,{'recursive':!![]});const _0x44e037=os['platform']()===_0x29b51f(0xf5);for(const _0x24eb20 of SHIMMED_COMMANDS){if(_0x44e037){const _0x277be5=path[_0x29b51f(0xe7)](_0x3b38b2,_0x24eb20+_0x29b51f(0xee)),_0xa68bd7=process.env.APPDATA?path['join'](process.env.APPDATA,_0x29b51f(0x9b)):'',_0x4437fc=_0xa68bd7?'if\x20exist\x20\x22'+path[_0x29b51f(0xe7)](_0xa68bd7,_0x29b51f(0xb7))+'\x22':_0x29b51f(0xe8),_0x513792=[_0x29b51f(0xad),_0x4437fc+'\x20(',_0x29b51f(0xb6)+_0x24eb20+'\x20%*',')\x20else\x20(',_0x29b51f(0xe5)+_0x3b38b2+_0x29b51f(0xd4),'\x20\x20'+_0x24eb20+_0x29b51f(0xa4),')']['join']('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x277be5,_0x513792,_0x29b51f(0xf8));const _0x3f0fa6=path[_0x29b51f(0xe7)](_0x3b38b2,_0x24eb20+_0x29b51f(0x8e)),_0x241527=_0x29b51f(0x9a)+_0x24eb20+_0x29b51f(0xbc)+_0x24eb20+_0x29b51f(0xe4);fs[_0x29b51f(0x103)](_0x3f0fa6,_0x241527,_0x29b51f(0xf8));const _0x47188c=path[_0x29b51f(0xe7)](_0x3b38b2,_0x24eb20),_0x55c017=_0x3b38b2[_0x29b51f(0xe0)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x37805b,_0x400105)=>'/'+_0x400105[_0x29b51f(0xbd)]()),_0x38cea1=_0x29b51f(0xb8)+_0x24eb20+_0x29b51f(0x8c)+_0x55c017+_0x29b51f(0xf6)+_0x24eb20+_0x29b51f(0xcc);fs[_0x29b51f(0x103)](_0x47188c,_0x38cea1,_0x29b51f(0xf8));}else{const _0x48adc3=path[_0x29b51f(0xe7)](_0x3b38b2,_0x24eb20),_0x2e11c6=_0x29b51f(0xb8)+_0x24eb20+'\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'+_0x24eb20+_0x29b51f(0xcc);fs[_0x29b51f(0x103)](_0x48adc3,_0x2e11c6,_0x29b51f(0xf8)),fs[_0x29b51f(0xc7)](_0x48adc3,_0x29b51f(0x102));}}let _0x18cbbe=![],_0xac421d='';if(_0x44e037)try{const _0x50b3a7=getExecSync(),_0x292234=_0x29b51f(0xc3)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x3b38b2+';\x22\x20+\x20$env:PATH\x0a',_0x5a4b97=collectPowerShellProfiles();for(const _0x5a025d of _0x5a4b97){ensureProfileContains(_0x5a025d,_0x3b38b2,_0x292234);}try{const _0x1d02f1=getExecFileSync(),_0x12ef94=_0x29b51f(0xbf)+_0x3b38b2+'\x22\x20set\x20\x22PATH='+_0x3b38b2+_0x29b51f(0xe2),_0x321fd6=_0x29b51f(0x9d);let _0x464872='';try{const _0x449908=_0x29b51f(0xeb)+_0x321fd6+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x464872=_0x1d02f1(_0x29b51f(0xdf),['-NoProfile','-Command',_0x449908],{'encoding':_0x29b51f(0xf8),'stdio':['pipe',_0x29b51f(0x8a),'ignore']})[_0x29b51f(0x95)]();}catch{}if(!_0x464872[_0x29b51f(0xe1)](_0x3b38b2)){const _0x402dd1=_0x464872?_0x464872+_0x29b51f(0xc4)+_0x12ef94:_0x12ef94,_0x337f4d=_0x29b51f(0xb2)+_0x321fd6+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x321fd6+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x402dd1+'\x27';_0x1d02f1('powershell.exe',[_0x29b51f(0xb9),_0x29b51f(0xd3),_0x337f4d],{'stdio':_0x29b51f(0xff)});}}catch{}try{const _0x56b4f3=_0x3b38b2[_0x29b51f(0xe0)](/\\/g,'/')[_0x29b51f(0xe0)](/^([A-Za-z]):/,(_0x325bd6,_0x30bc97)=>'/'+_0x30bc97['toLowerCase']()),_0x17405e=_0x29b51f(0xc3)+PROFILE_MARKER+_0x29b51f(0x9e)+_0x56b4f3+_0x29b51f(0xe9),_0x31a342=getBashProfilesWindows();let _0x25d120=![];for(const _0x4375b1 of _0x31a342){fs[_0x29b51f(0xd7)](_0x4375b1)&&(ensureProfileContains(_0x4375b1,_0x56b4f3,_0x17405e),_0x25d120=!![]);}!_0x25d120&&ensureProfileContains(_0x31a342[0x0],_0x56b4f3,_0x17405e);}catch{}const _0x560a85=_0x29b51f(0xa5),_0x17b168=_0x50b3a7(_0x29b51f(0xf1)+_0x560a85+'\x22',{'encoding':'utf8','stdio':[_0x29b51f(0x8a),_0x29b51f(0x8a),'ignore']})['trim']();if(!_0x17b168['includes'](_0x3b38b2)){const _0x3c8892=_0x3b38b2+';'+_0x17b168,_0x14e2d6=_0x3c8892[_0x29b51f(0xe0)](/'/g,'\x27\x27'),_0x12877d=_0x29b51f(0xfd)+_0x14e2d6+_0x29b51f(0xbe);_0x50b3a7(_0x29b51f(0xf1)+_0x12877d+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x2832c7=path['join'](process.env.APPDATA||'',_0x29b51f(0x9b),'trim.ps1');if(fs[_0x29b51f(0xd7)](_0x2832c7))try{fs['unlinkSync'](_0x2832c7);}catch{}_0x18cbbe=!![];}catch(_0x564aa3){_0xac421d=_0x29b51f(0xc1)+_0x3b38b2;}else try{const _0x51b845=_0x29b51f(0x90)+_0x3b38b2+':$PATH\x22\x0a',_0x15f132=os[_0x29b51f(0xcd)](),_0x57c28a=['.bashrc',_0x29b51f(0xb1),_0x29b51f(0x88),_0x29b51f(0xe3)];let _0x5e461b=![];for(const _0x5ce0c9 of _0x57c28a){const _0x2803e9=path[_0x29b51f(0xe7)](_0x15f132,_0x5ce0c9);fs[_0x29b51f(0xd7)](_0x2803e9)&&(ensureProfileContains(_0x2803e9,_0x3b38b2,_0x29b51f(0xc3)+PROFILE_MARKER+'\x0a'+_0x51b845),_0x5e461b=!![]);}if(!_0x5e461b){const _0x227532=path[_0x29b51f(0xe7)](_0x15f132,_0x29b51f(0x94));ensureProfileContains(_0x227532,_0x3b38b2,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x51b845);}_0x18cbbe=!![];}catch(_0x396ce9){_0xac421d='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x3b38b2+':$PATH\x22';}const _0x64a38a=_0x29b51f(0xaa)+SHIMMED_COMMANDS[_0x29b51f(0xb4)]+_0x29b51f(0xfe),_0xbb4e05=_0x18cbbe?_0x64a38a+_0x29b51f(0xf0):_0x64a38a+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0xac421d;return{'success':!![],'pathDir':_0x3b38b2,'message':_0xbb4e05};}catch(_0x3dea22){return{'success':![],'pathDir':_0x3b38b2,'message':_0x29b51f(0xcb)+_0x3dea22[_0x29b51f(0xc5)]};}}function uninstallShims(){const _0x4c2022=a0_0x34de10,_0x14ce9c=path['join'](os[_0x4c2022(0xcd)](),'.trimprompt','shims'),_0x182909=os['platform']()===_0x4c2022(0xf5);try{if(_0x182909){const _0x35c388=getExecSync();try{const _0xaa356b=getExecFileSync(),_0x5346fd=_0x4c2022(0x9d),_0x19dd46=_0x4c2022(0xeb)+_0x5346fd+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x5d8c98=_0xaa356b(_0x4c2022(0xdf),[_0x4c2022(0xb9),_0x4c2022(0xd3),_0x19dd46],{'encoding':_0x4c2022(0xf8),'stdio':[_0x4c2022(0x8a),_0x4c2022(0x8a),'ignore']})[_0x4c2022(0x95)]();if(_0x5d8c98[_0x4c2022(0xe1)](_0x14ce9c)){const _0x54ec5c=_0x5d8c98['split'](_0x4c2022(0xc4))[_0x4c2022(0xdc)](_0x233714=>!_0x233714[_0x4c2022(0xe1)](_0x14ce9c));if(_0x54ec5c[_0x4c2022(0xb4)]===0x0){const _0x5654ef=_0x4c2022(0x97)+_0x5346fd+_0x4c2022(0xba);_0xaa356b(_0x4c2022(0xdf),['-NoProfile',_0x4c2022(0xd3),_0x5654ef],{'stdio':_0x4c2022(0xff)});}else{const _0x21a54b=_0x54ec5c['join'](_0x4c2022(0xc4)),_0x20cd04=_0x4c2022(0xa1)+_0x5346fd+_0x4c2022(0xd5)+_0x21a54b+'\x27';_0xaa356b('powershell.exe',[_0x4c2022(0xb9),_0x4c2022(0xd3),_0x20cd04],{'stdio':'ignore'});}}}catch{}try{const _0x15bbda=collectPowerShellProfiles();for(const _0x51d28c of _0x15bbda){removeProfileBlock(_0x51d28c,PROFILE_MARKER);}}catch{}try{for(const _0x5b9220 of getBashProfilesWindows()){removeProfileBlock(_0x5b9220,PROFILE_MARKER);}}catch{}try{const _0xf1c5f9=_0x4c2022(0xa5),_0x3cf850=_0x35c388(_0x4c2022(0xf1)+_0xf1c5f9+'\x22',{'encoding':'utf8','stdio':[_0x4c2022(0x8a),_0x4c2022(0x8a),_0x4c2022(0xff)]})['trim']();if(_0x3cf850[_0x4c2022(0xe1)](_0x14ce9c)){const _0x35707b=_0x3cf850[_0x4c2022(0xdd)](';')[_0x4c2022(0xdc)](_0x50698b=>_0x50698b[_0x4c2022(0x95)]()[_0x4c2022(0xbd)]()!==_0x14ce9c[_0x4c2022(0xbd)]())[_0x4c2022(0xe7)](';'),_0x4cb46d=_0x35707b[_0x4c2022(0xe0)](/'/g,'\x27\x27'),_0x464c5f=_0x4c2022(0xfd)+_0x4cb46d+_0x4c2022(0xbe);_0x35c388(_0x4c2022(0xf1)+_0x464c5f+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x4c2022(0xff)});}}catch{}}else{const _0x1082e9=os[_0x4c2022(0xcd)](),_0x32a110=[_0x4c2022(0x94),'.zshrc',_0x4c2022(0x88),_0x4c2022(0xe3)];for(const _0x543935 of _0x32a110){removeProfileBlock(path[_0x4c2022(0xe7)](_0x1082e9,_0x543935),PROFILE_MARKER);}}if(fs[_0x4c2022(0xd7)](_0x14ce9c)){const _0x124e0a=fs[_0x4c2022(0xae)](_0x14ce9c);for(const _0x57945f of _0x124e0a){fs[_0x4c2022(0xcf)](path[_0x4c2022(0xe7)](_0x14ce9c,_0x57945f));}fs[_0x4c2022(0xd8)](_0x14ce9c);}return{'success':!![],'message':_0x4c2022(0x100)};}catch(_0x18c758){return{'success':![],'message':_0x4c2022(0xf2)+_0x18c758['message']};}}
|
|
1
|
+
'use strict';const a0_0x370065=a0_0x1b8e;(function(_0x38d90b,_0x17f24e){const _0x458022=a0_0x1b8e,_0x3ad971=_0x38d90b();while(!![]){try{const _0x67fa30=-parseInt(_0x458022(0xcb))/0x1*(parseInt(_0x458022(0xe2))/0x2)+-parseInt(_0x458022(0x97))/0x3*(parseInt(_0x458022(0x9e))/0x4)+parseInt(_0x458022(0x81))/0x5*(-parseInt(_0x458022(0xbf))/0x6)+parseInt(_0x458022(0xac))/0x7*(parseInt(_0x458022(0x70))/0x8)+-parseInt(_0x458022(0xa1))/0x9+parseInt(_0x458022(0xbb))/0xa*(parseInt(_0x458022(0xe3))/0xb)+parseInt(_0x458022(0x7b))/0xc*(parseInt(_0x458022(0xc5))/0xd);if(_0x67fa30===_0x17f24e)break;else _0x3ad971['push'](_0x3ad971['shift']());}catch(_0x15be6d){_0x3ad971['push'](_0x3ad971['shift']());}}}(a0_0x4566,0x8905c));var __createBinding=this&&this[a0_0x370065(0xcf)]||(Object['create']?function(_0x56b233,_0xb4dacb,_0x3bd987,_0x46eefd){const _0x169935=a0_0x370065;if(_0x46eefd===undefined)_0x46eefd=_0x3bd987;var _0x292654=Object[_0x169935(0xbe)](_0xb4dacb,_0x3bd987);(!_0x292654||(_0x169935(0x87)in _0x292654?!_0xb4dacb[_0x169935(0x6d)]:_0x292654[_0x169935(0xd6)]||_0x292654['configurable']))&&(_0x292654={'enumerable':!![],'get':function(){return _0xb4dacb[_0x3bd987];}}),Object['defineProperty'](_0x56b233,_0x46eefd,_0x292654);}:function(_0x50f0ff,_0x2bbdf0,_0x51c79e,_0x3c9d98){if(_0x3c9d98===undefined)_0x3c9d98=_0x51c79e;_0x50f0ff[_0x3c9d98]=_0x2bbdf0[_0x51c79e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x4b2e00,_0x50bbc7){const _0x92daf8=a0_0x370065;Object[_0x92daf8(0x88)](_0x4b2e00,_0x92daf8(0xb8),{'enumerable':!![],'value':_0x50bbc7});}:function(_0x2f4e24,_0x53b3f3){const _0x554127=a0_0x370065;_0x2f4e24[_0x554127(0xb8)]=_0x53b3f3;}),__importStar=this&&this[a0_0x370065(0xd0)]||(function(){var _0x2a098f=function(_0x34535f){return _0x2a098f=Object['getOwnPropertyNames']||function(_0x364b04){const _0x2b2237=a0_0x1b8e;var _0x17a3b5=[];for(var _0x1cbd1c in _0x364b04)if(Object[_0x2b2237(0xe6)][_0x2b2237(0x7f)][_0x2b2237(0x99)](_0x364b04,_0x1cbd1c))_0x17a3b5[_0x17a3b5[_0x2b2237(0xca)]]=_0x1cbd1c;return _0x17a3b5;},_0x2a098f(_0x34535f);};return function(_0x1a7b08){const _0x4c310f=a0_0x1b8e;if(_0x1a7b08&&_0x1a7b08[_0x4c310f(0x6d)])return _0x1a7b08;var _0x1686cc={};if(_0x1a7b08!=null){for(var _0x1759e9=_0x2a098f(_0x1a7b08),_0x5c6912=0x0;_0x5c6912<_0x1759e9['length'];_0x5c6912++)if(_0x1759e9[_0x5c6912]!==_0x4c310f(0xb8))__createBinding(_0x1686cc,_0x1a7b08,_0x1759e9[_0x5c6912]);}return __setModuleDefault(_0x1686cc,_0x1a7b08),_0x1686cc;};}());Object[a0_0x370065(0x88)](exports,a0_0x370065(0x6d),{'value':!![]}),exports[a0_0x370065(0x6e)]=installShims,exports[a0_0x370065(0x92)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x370065(0xc9))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x370065(0xe9),a0_0x370065(0xc6),a0_0x370065(0xa6),'grep','rg',a0_0x370065(0x79),a0_0x370065(0xb4),'gh',a0_0x370065(0x7a),a0_0x370065(0x7d),a0_0x370065(0xa4),'pnpm',a0_0x370065(0x9f),a0_0x370065(0xdd),'kubectl',a0_0x370065(0x75),a0_0x370065(0xc0),'pip',a0_0x370065(0x8d),'go',a0_0x370065(0xd2)],PROFILE_MARKER=a0_0x370065(0xa3);function getExecSync(){const _0x33c397=a0_0x370065;return require(_0x33c397(0x9a))[_0x33c397(0xab)];}function getExecFileSync(){const _0x2c048a=a0_0x370065;return require(_0x2c048a(0x9a))['execFileSync'];}function ensureProfileContains(_0x3d2d82,_0x131424,_0x199fba){const _0x57f0ef=a0_0x370065;try{const _0x39e661=path[_0x57f0ef(0xd9)](_0x3d2d82);!fs[_0x57f0ef(0x80)](_0x39e661)&&fs[_0x57f0ef(0xce)](_0x39e661,{'recursive':!![]});if(fs[_0x57f0ef(0x80)](_0x3d2d82)){const _0x18fe0b=fs[_0x57f0ef(0xd1)](_0x3d2d82,_0x57f0ef(0xa2));if(_0x18fe0b['includes'](_0x131424))return;fs['appendFileSync'](_0x3d2d82,_0x199fba,_0x57f0ef(0xa2));}else fs['writeFileSync'](_0x3d2d82,_0x199fba,_0x57f0ef(0xa2));}catch{}}function removeProfileBlock(_0x2a9dbc,_0x43e2dc){const _0x124304=a0_0x370065;try{if(!fs[_0x124304(0x80)](_0x2a9dbc))return;const _0x5c4100=fs['readFileSync'](_0x2a9dbc,_0x124304(0xa2));if(!_0x5c4100['includes'](_0x43e2dc))return;const _0x571569=_0x5c4100['split']('\x0a'),_0x984bb9=[];let _0x41989f=![];for(let _0xf28bf9=0x0;_0xf28bf9<_0x571569[_0x124304(0xca)];_0xf28bf9++){if(_0x571569[_0xf28bf9]['includes'](_0x43e2dc)){_0x41989f=!![];continue;}if(_0x41989f){_0x41989f=![];continue;}_0x984bb9[_0x124304(0x6f)](_0x571569[_0xf28bf9]);}const _0x170d89=_0x984bb9['join']('\x0a')[_0x124304(0x7e)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x2a9dbc,_0x170d89,_0x124304(0xa2));}catch{}}function a0_0x4566(){const _0x4d8516=['pipe','\x22\x20set\x20\x22PATH=','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','get','defineProperty','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.',';%PATH%\x22','win32','Remove-ItemProperty\x20-Path\x20\x27','pip3','.trimprompt','Set-ItemProperty\x20-Path\x20\x27','writeFileSync','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','uninstallShims',')\x20else\x20(','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','\x20\x20set\x20\x22PATH=%PATH:','$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);','213912oihGyh','trim.ps1','call','child_process','ignore','join','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','52vaFHNI','npx','includes','7897482wuZzqa','utf8','TrimPrompt\x20Shims\x20PATH','npm','pwsh','read',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','.cmd','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','\x20\x22$@\x22;\x20fi\x0a','execSync','21CeDEsg','.bash_profile','powershell','\x0a#\x20','unlinkSync',':$PATH\x22','.bashrc','\x20-NoProfile\x20-Command\x20\x22','git','rmdirSync','powershell.exe','if\x20exist\x20\x22','default','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','$PROFILE.CurrentUserAllHosts','729730hLXplj','message','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','getOwnPropertyDescriptor','138achESK','pytest','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','toLowerCase','filter','$PROFILE.CurrentUserCurrentHost','344656uAjesN','cat','split','homedir','path','length','149vdZNzf','platform','trim','mkdirSync','__createBinding','__importStar','readFileSync','find','.zshrc','\x20commands.\x0a\x0a','-Command','writable','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','\x20@args\x20}\x20else\x20{\x20&\x20','dirname','powershell\x20-NoProfile\x20-Command\x20\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','[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.','yarn','readdirSync',';\x22\x20+\x20$env:PATH\x0a','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','5582KQTwKO','77rdPRaz',':$PATH\x22\x0a','-NoProfile','prototype','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','New-Item\x20-Path\x20\x27','tree','@echo\x20off','__esModule','installShims','push','1246264aozWvb','\x20%*','.profile','755','\x27,\x20\x27User\x27)','docker','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x0aexport\x20PATH=\x22','map','ruff','glab','852FmUPoF','Failed\x20to\x20uninstall\x20shims:\x20','cargo','replace','hasOwnProperty','existsSync','17165zKifVt','shims','trim.cmd'];a0_0x4566=function(){return _0x4d8516;};return a0_0x4566();}function collectPowerShellProfiles(){const _0x661122=a0_0x370065,_0x8eface=getExecSync(),_0x434830=[],_0x142b2e=[['powershell',_0x661122(0xc4)],[_0x661122(0xae),_0x661122(0xba)]];try{_0x8eface(_0x661122(0x94),{'stdio':_0x661122(0x9b)}),_0x142b2e[_0x661122(0x6f)]([_0x661122(0xa5),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x856b6,_0x2c5136]of _0x142b2e){try{const _0x5778f6=_0x8eface(_0x856b6+_0x661122(0xb3)+_0x2c5136+'\x22',{'encoding':_0x661122(0xa2)})[_0x661122(0xcd)]();_0x5778f6&&!_0x434830['some'](_0x3a4875=>_0x3a4875[_0x661122(0xc2)]()===_0x5778f6[_0x661122(0xc2)]())&&_0x434830[_0x661122(0x6f)](_0x5778f6);}catch{}}return _0x434830;}function getBashProfilesWindows(){const _0x1a0944=a0_0x370065,_0x34c202=os['homedir']();return[_0x1a0944(0xb2),_0x1a0944(0xad)][_0x1a0944(0x78)](_0x4a81a5=>path[_0x1a0944(0x9c)](_0x34c202,_0x4a81a5));}function getBroadcastCommand(){const _0xb0cf14=a0_0x370065;return _0xb0cf14(0x96);}function a0_0x1b8e(_0x4a3307,_0x5438ae){_0x4a3307=_0x4a3307-0x6c;const _0x4566d7=a0_0x4566();let _0x1b8e32=_0x4566d7[_0x4a3307];return _0x1b8e32;}function installShims(){const _0x48191c=a0_0x370065,_0x56694e=path[_0x48191c(0x9c)](os[_0x48191c(0xc8)](),_0x48191c(0x8e),_0x48191c(0x82));try{!fs[_0x48191c(0x80)](_0x56694e)&&fs[_0x48191c(0xce)](_0x56694e,{'recursive':!![]});const _0x9c82f8=os[_0x48191c(0xcc)]()===_0x48191c(0x8b);for(const _0x3d9ae6 of SHIMMED_COMMANDS){if(_0x9c82f8){const _0x4a399b=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6+_0x48191c(0xa8)),_0x1a1c63=process.env.APPDATA?path[_0x48191c(0x9c)](process.env.APPDATA,'npm'):'',_0x93d599=_0x1a1c63?_0x48191c(0xb7)+path['join'](_0x1a1c63,_0x48191c(0x83))+'\x22':_0x48191c(0xa9),_0x5f486a=[_0x48191c(0x6c),_0x93d599+'\x20(','\x20\x20trim\x20'+_0x3d9ae6+_0x48191c(0x71),_0x48191c(0x93),_0x48191c(0x95)+_0x56694e+';=%\x22','\x20\x20'+_0x3d9ae6+'\x20%*',')'][_0x48191c(0x9c)]('\x0d\x0a')+'\x0d\x0a';fs[_0x48191c(0x90)](_0x4a399b,_0x5f486a,_0x48191c(0xa2));const _0x35a9f2=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6+'.ps1'),_0x41f389=_0x48191c(0xc1)+_0x3d9ae6+_0x48191c(0xd8)+_0x3d9ae6+'\x20@args\x20}\x0a';fs[_0x48191c(0x90)](_0x35a9f2,_0x41f389,_0x48191c(0xa2));const _0xc4add3=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6),_0x2377ae=_0x56694e[_0x48191c(0x7e)](/\\/g,'/')[_0x48191c(0x7e)](/^([A-Za-z]):/,(_0x367c37,_0x264c4c)=>'/'+_0x264c4c['toLowerCase']()),_0x3c2ea8='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x3d9ae6+_0x48191c(0xd7)+_0x2377ae+_0x48191c(0xa7)+_0x3d9ae6+_0x48191c(0xaa);fs['writeFileSync'](_0xc4add3,_0x3c2ea8,_0x48191c(0xa2));}else{const _0x47f65f=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6),_0x27329f=_0x48191c(0x9d)+_0x3d9ae6+'\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'+_0x3d9ae6+_0x48191c(0xaa);fs[_0x48191c(0x90)](_0x47f65f,_0x27329f,'utf8'),fs['chmodSync'](_0x47f65f,_0x48191c(0x73));}}let _0x445e2a=![],_0x46f9bd='';if(_0x9c82f8)try{const _0x4882af=getExecSync(),_0x2c476f='\x0a#\x20'+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x56694e+_0x48191c(0xdf),_0x3af852=collectPowerShellProfiles();for(const _0x1e1a5f of _0x3af852){ensureProfileContains(_0x1e1a5f,_0x56694e,_0x2c476f);}try{const _0x5570d3=getExecFileSync(),_0x3b65e3=_0x48191c(0xb7)+_0x56694e+_0x48191c(0x85)+_0x56694e+_0x48191c(0x8a),_0x3bfac3=_0x48191c(0xb9);let _0x1451a6='';try{const _0x1b91d0=_0x48191c(0x91)+_0x3bfac3+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x1451a6=_0x5570d3(_0x48191c(0xb6),['-NoProfile',_0x48191c(0xd5),_0x1b91d0],{'encoding':_0x48191c(0xa2),'stdio':[_0x48191c(0x84),_0x48191c(0x84),'ignore']})[_0x48191c(0xcd)]();}catch{}if(!_0x1451a6['includes'](_0x56694e)){const _0x5643ac=_0x1451a6?_0x1451a6+'\x20&\x20'+_0x3b65e3:_0x3b65e3,_0x402281=_0x48191c(0xe8)+_0x3bfac3+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x3bfac3+_0x48191c(0xe7)+_0x5643ac+'\x27';_0x5570d3('powershell.exe',[_0x48191c(0xe5),_0x48191c(0xd5),_0x402281],{'stdio':'ignore'});}}catch{}try{const _0x15f23f=_0x56694e[_0x48191c(0x7e)](/\\/g,'/')[_0x48191c(0x7e)](/^([A-Za-z]):/,(_0x45f5a7,_0x22850b)=>'/'+_0x22850b['toLowerCase']()),_0x48dc57=_0x48191c(0xaf)+PROFILE_MARKER+_0x48191c(0x77)+_0x15f23f+':$PATH\x22\x0a',_0x181db4=getBashProfilesWindows();let _0x18ce3c=![];for(const _0x3a8f26 of _0x181db4){fs['existsSync'](_0x3a8f26)&&(ensureProfileContains(_0x3a8f26,_0x15f23f,_0x48dc57),_0x18ce3c=!![]);}!_0x18ce3c&&ensureProfileContains(_0x181db4[0x0],_0x15f23f,_0x48dc57);}catch{}const _0x3e3664=_0x48191c(0xdb),_0xf2e8cb=_0x4882af('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x3e3664+'\x22',{'encoding':_0x48191c(0xa2),'stdio':['pipe',_0x48191c(0x84),_0x48191c(0x9b)]})[_0x48191c(0xcd)]();if(!_0xf2e8cb['includes'](_0x56694e)){const _0x11b023=_0x56694e+';'+_0xf2e8cb,_0x5bba0d=_0x11b023[_0x48191c(0x7e)](/'/g,'\x27\x27'),_0x5b7b2a='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x5bba0d+_0x48191c(0x74);_0x4882af('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x5b7b2a+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x48191c(0x9b)});}const _0x386cbf=path['join'](process.env.APPDATA||'',_0x48191c(0xa4),_0x48191c(0x98));if(fs['existsSync'](_0x386cbf))try{fs[_0x48191c(0xb0)](_0x386cbf);}catch{}_0x445e2a=!![];}catch(_0x476b43){_0x46f9bd=_0x48191c(0xe0)+_0x56694e;}else try{const _0x17259f='export\x20PATH=\x22'+_0x56694e+_0x48191c(0xe4),_0x26d75d=os[_0x48191c(0xc8)](),_0x415947=[_0x48191c(0xb2),_0x48191c(0xd3),'.bash_profile','.profile'];let _0x8c9870=![];for(const _0x855653 of _0x415947){const _0x196314=path['join'](_0x26d75d,_0x855653);fs[_0x48191c(0x80)](_0x196314)&&(ensureProfileContains(_0x196314,_0x56694e,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x17259f),_0x8c9870=!![]);}if(!_0x8c9870){const _0x37dd62=path[_0x48191c(0x9c)](_0x26d75d,_0x48191c(0xb2));ensureProfileContains(_0x37dd62,_0x56694e,_0x48191c(0xaf)+PROFILE_MARKER+'\x0a'+_0x17259f);}_0x445e2a=!![];}catch(_0x14c732){_0x46f9bd=_0x48191c(0xe1)+_0x56694e+_0x48191c(0xb1);}const _0x19cd0a='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x48191c(0xca)]+_0x48191c(0xd4),_0x3ce50c=_0x445e2a?_0x19cd0a+_0x48191c(0xdc):_0x19cd0a+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x46f9bd;return{'success':!![],'pathDir':_0x56694e,'message':_0x3ce50c};}catch(_0x4a30b1){return{'success':![],'pathDir':_0x56694e,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x4a30b1[_0x48191c(0xbc)]};}}function uninstallShims(){const _0xd88f05=a0_0x370065,_0x5e6fce=path[_0xd88f05(0x9c)](os['homedir'](),'.trimprompt',_0xd88f05(0x82)),_0x4c4bf1=os[_0xd88f05(0xcc)]()===_0xd88f05(0x8b);try{if(_0x4c4bf1){const _0x582231=getExecSync();try{const _0x3ad249=getExecFileSync(),_0x5c217e=_0xd88f05(0xb9),_0x59c374=_0xd88f05(0x91)+_0x5c217e+_0xd88f05(0xbd),_0x1cd015=_0x3ad249(_0xd88f05(0xb6),['-NoProfile',_0xd88f05(0xd5),_0x59c374],{'encoding':_0xd88f05(0xa2),'stdio':['pipe',_0xd88f05(0x84),_0xd88f05(0x9b)]})[_0xd88f05(0xcd)]();if(_0x1cd015[_0xd88f05(0xa0)](_0x5e6fce)){const _0x38d91d=_0x1cd015['split']('\x20&\x20')[_0xd88f05(0xc3)](_0x58164e=>!_0x58164e[_0xd88f05(0xa0)](_0x5e6fce));if(_0x38d91d[_0xd88f05(0xca)]===0x0){const _0x4664d2=_0xd88f05(0x8c)+_0x5c217e+_0xd88f05(0x76);_0x3ad249(_0xd88f05(0xb6),[_0xd88f05(0xe5),_0xd88f05(0xd5),_0x4664d2],{'stdio':'ignore'});}else{const _0x45c48a=_0x38d91d[_0xd88f05(0x9c)]('\x20&\x20'),_0x59afd4=_0xd88f05(0x8f)+_0x5c217e+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x45c48a+'\x27';_0x3ad249(_0xd88f05(0xb6),['-NoProfile',_0xd88f05(0xd5),_0x59afd4],{'stdio':_0xd88f05(0x9b)});}}}catch{}try{const _0x2e633b=collectPowerShellProfiles();for(const _0x21bfad of _0x2e633b){removeProfileBlock(_0x21bfad,PROFILE_MARKER);}}catch{}try{for(const _0x11c4ea of getBashProfilesWindows()){removeProfileBlock(_0x11c4ea,PROFILE_MARKER);}}catch{}try{const _0x1df123='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x3b2d86=_0x582231(_0xd88f05(0xda)+_0x1df123+'\x22',{'encoding':_0xd88f05(0xa2),'stdio':[_0xd88f05(0x84),_0xd88f05(0x84),'ignore']})[_0xd88f05(0xcd)]();if(_0x3b2d86['includes'](_0x5e6fce)){const _0x435949=_0x3b2d86[_0xd88f05(0xc7)](';')['filter'](_0x3ebec6=>_0x3ebec6[_0xd88f05(0xcd)]()[_0xd88f05(0xc2)]()!==_0x5e6fce[_0xd88f05(0xc2)]())[_0xd88f05(0x9c)](';'),_0x17c0a3=_0x435949[_0xd88f05(0x7e)](/'/g,'\x27\x27'),_0x13d3ab=_0xd88f05(0x86)+_0x17c0a3+_0xd88f05(0x74);_0x582231(_0xd88f05(0xda)+_0x13d3ab+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0xd88f05(0x9b)});}}catch{}}else{const _0xc83450=os[_0xd88f05(0xc8)](),_0x5090e6=[_0xd88f05(0xb2),_0xd88f05(0xd3),_0xd88f05(0xad),_0xd88f05(0x72)];for(const _0x3f0a29 of _0x5090e6){removeProfileBlock(path['join'](_0xc83450,_0x3f0a29),PROFILE_MARKER);}}if(fs[_0xd88f05(0x80)](_0x5e6fce)){const _0x167ada=fs[_0xd88f05(0xde)](_0x5e6fce);for(const _0x3b65db of _0x167ada){fs[_0xd88f05(0xb0)](path[_0xd88f05(0x9c)](_0x5e6fce,_0x3b65db));}fs[_0xd88f05(0xb5)](_0x5e6fce);}return{'success':!![],'message':_0xd88f05(0x89)};}catch(_0x1b053e){return{'success':![],'message':_0xd88f05(0x7c)+_0x1b053e[_0xd88f05(0xbc)]};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x34f5(_0x58b56b,_0xe4ab22){_0x58b56b=_0x58b56b-0x1b1;const _0x35afdc=a0_0x35af();let _0x34f5c7=_0x35afdc[_0x58b56b];return _0x34f5c7;}const a0_0x1bed78=a0_0x34f5;(function(_0x2dbba7,_0x154bcc){const _0x5450c4=a0_0x34f5,_0x4f7148=_0x2dbba7();while(!![]){try{const _0x112095=-parseInt(_0x5450c4(0x1c5))/0x1*(-parseInt(_0x5450c4(0x1ed))/0x2)+-parseInt(_0x5450c4(0x1c7))/0x3*(-parseInt(_0x5450c4(0x1e2))/0x4)+parseInt(_0x5450c4(0x1bd))/0x5*(parseInt(_0x5450c4(0x1cf))/0x6)+parseInt(_0x5450c4(0x1ef))/0x7+parseInt(_0x5450c4(0x1e4))/0x8+parseInt(_0x5450c4(0x1e0))/0x9*(-parseInt(_0x5450c4(0x1c6))/0xa)+-parseInt(_0x5450c4(0x1b7))/0xb;if(_0x112095===_0x154bcc)break;else _0x4f7148['push'](_0x4f7148['shift']());}catch(_0x1a970b){_0x4f7148['push'](_0x4f7148['shift']());}}}(a0_0x35af,0xbaaf5));function a0_0x35af(){const _0x4c9428=['Completed\x203\x20of\x203\x20assets\x20successfully.','11497905xFAMdV','npm\x20run\x20lint:\x20✖\x202\x20warnings','4MIsMay','raw','4271136EwUjAY','git\x20log\x20-n\x205','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','path','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','stats.json','now','62rvwpik','floor','8247624akAshz','length','.trimprompt','homedir','defineProperty','gpt-4o','gemini-1-5-pro','timestamp','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','21960301AlEnXp','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','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','random','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','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','5bfphBa','npm\x20run\x20lint','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','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','cmd','gemini-1-5-flash','claude-3-opus','tracker','32203RMvhKd','10cZafZN','202881KIfhEQ','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','logExecution','./tracker','toISOString','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','npm\x20install\x20lodash\x20express\x20uuid\x20react','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','7563318QcPCUJ','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','log','comp','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','gpt-4o-mini','stringify','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','pip\x20install\x20tensorflow\x20pandas\x20numpy','kubectl\x20get\x20pods\x20-n\x20production','exitCode','getLogs','join','repeat'];a0_0x35af=function(){return _0x4c9428;};return a0_0x35af();}Object[a0_0x1bed78(0x1f3)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x1bed78(0x1ca));console[a0_0x1bed78(0x1d2)](a0_0x1bed78(0x1b6));const models=['claude-3-5-sonnet',a0_0x1bed78(0x1b1),a0_0x1bed78(0x1d6),a0_0x1bed78(0x1b2),a0_0x1bed78(0x1c2),a0_0x1bed78(0x1c3)],commands=[{'cmd':'git\x20diff\x20main','raw':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a'[a0_0x1bed78(0x1de)](0x32),'comp':a0_0x1bed78(0x1d8),'exitCode':0x0},{'cmd':'cargo\x20test','raw':'running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a'+'test\x20tests::test_case_'[a0_0x1bed78(0x1de)](0x28)+a0_0x1bed78(0x1c8),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x1bed78(0x1cd),'raw':a0_0x1bed78(0x1cc)+a0_0x1bed78(0x1d0)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x1bed78(0x1b5),'exitCode':0x0},{'cmd':'aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+a0_0x1bed78(0x1ce)+a0_0x1bed78(0x1d1)+a0_0x1bed78(0x1df),'comp':a0_0x1bed78(0x1b4),'exitCode':0x0},{'cmd':a0_0x1bed78(0x1da),'raw':a0_0x1bed78(0x1b9)+'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'+'trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a'+a0_0x1bed78(0x1b8)+a0_0x1bed78(0x1d5),'comp':a0_0x1bed78(0x1bc),'exitCode':0x0},{'cmd':a0_0x1bed78(0x1d9),'raw':a0_0x1bed78(0x1bb)+a0_0x1bed78(0x1e7)+a0_0x1bed78(0x1e6),'comp':a0_0x1bed78(0x1ea),'exitCode':0x0},{'cmd':a0_0x1bed78(0x1e5),'raw':a0_0x1bed78(0x1bf)+'commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0x1bed78(0x1be),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x1bed78(0x1e9)+a0_0x1bed78(0x1d4),'comp':a0_0x1bed78(0x1e1),'exitCode':0x0}],startTime=Date[a0_0x1bed78(0x1ec)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math[a0_0x1bed78(0x1ee)](Math[a0_0x1bed78(0x1ba)]()*commands[a0_0x1bed78(0x1f0)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x1bed78(0x1cb)](),log=tracker_1[a0_0x1bed78(0x1c4)][a0_0x1bed78(0x1c9)](commandItem[a0_0x1bed78(0x1c1)],commandItem[a0_0x1bed78(0x1e3)],commandItem[a0_0x1bed78(0x1d3)],commandItem[a0_0x1bed78(0x1db)]),logs=tracker_1[a0_0x1bed78(0x1c4)][a0_0x1bed78(0x1dc)]();logs[a0_0x1bed78(0x1f0)]>0x0&&(logs[logs[a0_0x1bed78(0x1f0)]-0x1][a0_0x1bed78(0x1b3)]=timestamp,require('fs')['writeFileSync'](require(a0_0x1bed78(0x1e8))[a0_0x1bed78(0x1dd)](require('os')[a0_0x1bed78(0x1f2)](),a0_0x1bed78(0x1f1),a0_0x1bed78(0x1eb)),JSON[a0_0x1bed78(0x1d7)](logs,null,0x2),'utf8'));}console[a0_0x1bed78(0x1d2)](a0_0x1bed78(0x1c0));
|
package/sync.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x137c32=a0_0x24c9;(function(_0x36855a,_0x588089){const _0x3aac6b=a0_0x24c9,_0x359f55=_0x36855a();while(!![]){try{const _0x524b11=parseInt(_0x3aac6b(0x12a))/0x1*(-parseInt(_0x3aac6b(0x148))/0x2)+parseInt(_0x3aac6b(0x14d))/0x3*(parseInt(_0x3aac6b(0x115))/0x4)+-parseInt(_0x3aac6b(0x11d))/0x5+-parseInt(_0x3aac6b(0x141))/0x6+parseInt(_0x3aac6b(0x125))/0x7*(parseInt(_0x3aac6b(0x122))/0x8)+-parseInt(_0x3aac6b(0x153))/0x9*(parseInt(_0x3aac6b(0x114))/0xa)+parseInt(_0x3aac6b(0x129))/0xb;if(_0x524b11===_0x588089)break;else _0x359f55['push'](_0x359f55['shift']());}catch(_0x5b48b6){_0x359f55['push'](_0x359f55['shift']());}}}(a0_0x2446,0x4f2ee));var __createBinding=this&&this[a0_0x137c32(0x149)]||(Object[a0_0x137c32(0x152)]?function(_0x3a2e00,_0x4ead35,_0x486f2e,_0x50ebcc){const _0x487af6=a0_0x137c32;if(_0x50ebcc===undefined)_0x50ebcc=_0x486f2e;var _0x8fa19f=Object[_0x487af6(0x10b)](_0x4ead35,_0x486f2e);(!_0x8fa19f||('get'in _0x8fa19f?!_0x4ead35[_0x487af6(0x159)]:_0x8fa19f['writable']||_0x8fa19f[_0x487af6(0x116)]))&&(_0x8fa19f={'enumerable':!![],'get':function(){return _0x4ead35[_0x486f2e];}}),Object[_0x487af6(0x117)](_0x3a2e00,_0x50ebcc,_0x8fa19f);}:function(_0x4efe66,_0x55268d,_0x483a88,_0x26e173){if(_0x26e173===undefined)_0x26e173=_0x483a88;_0x4efe66[_0x26e173]=_0x55268d[_0x483a88];}),__setModuleDefault=this&&this[a0_0x137c32(0x138)]||(Object[a0_0x137c32(0x152)]?function(_0x1709a6,_0x378889){Object['defineProperty'](_0x1709a6,'default',{'enumerable':!![],'value':_0x378889});}:function(_0x5ce3af,_0x2a25cd){const _0x14b16f=a0_0x137c32;_0x5ce3af[_0x14b16f(0x110)]=_0x2a25cd;}),__importStar=this&&this[a0_0x137c32(0x107)]||(function(){var _0x4d9c2f=function(_0x844961){return _0x4d9c2f=Object['getOwnPropertyNames']||function(_0x3c989a){const _0x5a0ae3=a0_0x24c9;var _0x276e50=[];for(var _0x19482d in _0x3c989a)if(Object[_0x5a0ae3(0x12f)]['hasOwnProperty'][_0x5a0ae3(0x137)](_0x3c989a,_0x19482d))_0x276e50[_0x276e50[_0x5a0ae3(0x15f)]]=_0x19482d;return _0x276e50;},_0x4d9c2f(_0x844961);};return function(_0x3dddb0){const _0x578d06=a0_0x24c9;if(_0x3dddb0&&_0x3dddb0[_0x578d06(0x159)])return _0x3dddb0;var _0x3a7722={};if(_0x3dddb0!=null){for(var _0x35bf45=_0x4d9c2f(_0x3dddb0),_0x1c8632=0x0;_0x1c8632<_0x35bf45[_0x578d06(0x15f)];_0x1c8632++)if(_0x35bf45[_0x1c8632]!==_0x578d06(0x110))__createBinding(_0x3a7722,_0x3dddb0,_0x35bf45[_0x1c8632]);}return __setModuleDefault(_0x3a7722,_0x3dddb0),_0x3a7722;};}());Object[a0_0x137c32(0x117)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x137c32(0x11c))),os=__importStar(require('os')),http=__importStar(require(a0_0x137c32(0x10d))),https=__importStar(require(a0_0x137c32(0x13a))),url_1=require(a0_0x137c32(0x135)),_cfg=[a0_0x137c32(0x104),a0_0x137c32(0x14a),a0_0x137c32(0x154),a0_0x137c32(0x113)]['join'](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x137c32(0x13f),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x137c32(0x15e),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x137c32(0x128),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x137c32(0x106),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path[a0_0x137c32(0x130)](os['homedir'](),a0_0x137c32(0x112)),configPath=path[a0_0x137c32(0x130)](baseDir,a0_0x137c32(0x14c)),statsPath=path[a0_0x137c32(0x130)](baseDir,a0_0x137c32(0x139)),dailySyncPath=path[a0_0x137c32(0x130)](baseDir,a0_0x137c32(0x158));function getTodayDate(){const _0x5d9907=a0_0x137c32;return new Date()[_0x5d9907(0x13d)]()[_0x5d9907(0x140)]('T')[0x0];}function a0_0x24c9(_0x61391,_0x23904c){_0x61391=_0x61391-0x104;const _0x2446d9=a0_0x2446();let _0x24c91f=_0x2446d9[_0x61391];return _0x24c91f;}function getDeveloperIdentity(){const _0x1569e3=a0_0x137c32;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x2cced4}=require(_0x1569e3(0x13c)),_0x19da6b=_0x2cced4(_0x1569e3(0x121),{'stdio':[_0x1569e3(0x161),_0x1569e3(0x118),_0x1569e3(0x161)]})['toString']()[_0x1569e3(0x10f)]();if(_0x19da6b&&_0x19da6b[_0x1569e3(0x14f)]('@'))return _0x19da6b;}catch{}try{const _0x153993=os[_0x1569e3(0x123)]()['username'];if(_0x153993)return _0x153993;}catch{}return _0x1569e3(0x15d);}function hasAlreadySyncedToday(){const _0x3ef609=a0_0x137c32;try{if(!fs[_0x3ef609(0x147)](dailySyncPath))return![];const _0x3b3a09=JSON[_0x3ef609(0x126)](fs[_0x3ef609(0x108)](dailySyncPath,_0x3ef609(0x10e)));return _0x3b3a09['last_sync_date']===getTodayDate();}catch{return![];}}function a0_0x2446(){const _0x199788=['create','23256HIUTQr','.up.railway.app','port','tokens_saved','startsWith','daily_sync.json','__esModule','estimated_compressed_tokens','pathname','raw','anonymous','Claude\x203\x20Opus','length','end','ignore','synced','input_price_1m','error','https://','unlinkSync','Gemini\x201.5\x20Pro','__importStar','readFileSync','https:','count','getOwnPropertyDescriptor','logs','http','utf8','trim','default','filter','.trimprompt','/api/telemetry','1110kQxHoy','40148jUizDc','configurable','defineProperty','pipe','push','command','write','path','61255rMDKbV','hostname','catch','entries','git\x20config\x20user.email','8lagQgM','userInfo','POST','1031177jjvPZT','parse','ai_detected','GPT-4o','8389128lIEqHX','8781CoTFFR','toFixed','model_used','claude-3-5-sonnet','search','prototype','join','destroy','request','stringify','byteLength','url','telemetry_url','call','__setModuleDefault','stats.json','https','slice','child_process','toISOString','statusCode','Claude\x203.5\x20Sonnet','split','1313346flWEeC','writeFileSync','executions','.comp.txt','protocol','from','existsSync','132AwBjpD','__createBinding','trimp-production','add','config.json','153HMLtxe','timestamp','includes','.raw.txt','URL'];a0_0x2446=function(){return _0x199788;};return a0_0x2446();}function markSyncedToday(){const _0x2e6bce=a0_0x137c32;try{const _0x3f998d={'last_sync_date':getTodayDate()};fs[_0x2e6bce(0x142)](dailySyncPath,JSON[_0x2e6bce(0x133)](_0x3f998d,null,0x2),_0x2e6bce(0x10e));}catch{}}function postTelemetry(_0x588925,_0x389cc8){return new Promise(_0x486b88=>{const _0x4ee10e=a0_0x24c9;try{const _0x2a456d=new url_1[(_0x4ee10e(0x151))](_0x588925),_0x33e45b=JSON[_0x4ee10e(0x133)](_0x389cc8),_0x47c566={'hostname':_0x2a456d[_0x4ee10e(0x11e)],'port':_0x2a456d[_0x4ee10e(0x155)]||(_0x2a456d[_0x4ee10e(0x145)]===_0x4ee10e(0x109)?0x1bb:0x50),'path':_0x2a456d[_0x4ee10e(0x15b)]+_0x2a456d[_0x4ee10e(0x12e)],'method':_0x4ee10e(0x124),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x4ee10e(0x134)](_0x33e45b)},'timeout':0x1f40},_0x5209a7=_0x2a456d[_0x4ee10e(0x145)]==='https:'?https:http,_0x5bd38a=_0x5209a7[_0x4ee10e(0x132)](_0x47c566,_0x5ea928=>{const _0x1b598e=_0x4ee10e;_0x486b88(!!(_0x5ea928[_0x1b598e(0x13e)]&&_0x5ea928[_0x1b598e(0x13e)]>=0xc8&&_0x5ea928[_0x1b598e(0x13e)]<0x12c));});_0x5bd38a['on'](_0x4ee10e(0x164),()=>_0x486b88(![])),_0x5bd38a['on']('timeout',()=>{const _0x1f4d3b=_0x4ee10e;_0x5bd38a[_0x1f4d3b(0x131)](),_0x486b88(![]);}),_0x5bd38a[_0x4ee10e(0x11b)](_0x33e45b),_0x5bd38a[_0x4ee10e(0x160)]();}catch{_0x486b88(![]);}});}function buildDailyPayload(_0x45ac9e){const _0x1ceb51=a0_0x137c32,_0xc67200=getTodayDate(),_0x4c0fd1=_0x45ac9e[_0x1ceb51(0x111)](_0x2c1349=>_0x2c1349[_0x1ceb51(0x14e)][_0x1ceb51(0x157)](_0xc67200)),_0x4e733b=_0x4c0fd1['length']>0x0?_0x4c0fd1:_0x45ac9e,_0x3c464f=_0x4e733b[_0x1ceb51(0x111)](_0x39d69b=>_0x39d69b[_0x1ceb51(0x127)]!==![]);let _0x250c9e=0x0,_0x5bf232=0x0,_0x47ff4f=0x0,_0x2f51b7=0x0;const _0x3b8dd5=new Set(),_0x50d276={};for(const _0x3e6715 of _0x3c464f){_0x250c9e+=_0x3e6715['estimated_raw_tokens'],_0x5bf232+=_0x3e6715[_0x1ceb51(0x15a)],_0x47ff4f+=_0x3e6715[_0x1ceb51(0x156)],_0x3b8dd5[_0x1ceb51(0x14b)](_0x3e6715[_0x1ceb51(0x12c)]);const _0x5dad72=PRICING[_0x3e6715[_0x1ceb51(0x12c)]]||PRICING[_0x1ceb51(0x12d)];_0x2f51b7+=_0x3e6715[_0x1ceb51(0x156)]*_0x5dad72[_0x1ceb51(0x163)]/0xf4240;const _0x354143=_0x3e6715[_0x1ceb51(0x11a)]||'unknown';if(!_0x50d276[_0x354143])_0x50d276[_0x354143]={'raw':0x0,'comp':0x0,'count':0x0};_0x50d276[_0x354143][_0x1ceb51(0x15c)]+=_0x3e6715['estimated_raw_tokens'],_0x50d276[_0x354143]['comp']+=_0x3e6715['estimated_compressed_tokens'],_0x50d276[_0x354143]['count']+=0x1;}const _0x5b4aad=Object[_0x1ceb51(0x120)](_0x50d276)['map'](([_0x58d14c,_0x22de60])=>({'command':_0x58d14c,'percentage':_0x22de60[_0x1ceb51(0x15c)]>0x0?Math['round']((_0x22de60[_0x1ceb51(0x15c)]-_0x22de60['comp'])/_0x22de60[_0x1ceb51(0x15c)]*0x64):0x0,'executions':_0x22de60[_0x1ceb51(0x10a)]}))['sort']((_0x535b1b,_0x3f26f6)=>_0x3f26f6[_0x1ceb51(0x143)]-_0x535b1b[_0x1ceb51(0x143)])[_0x1ceb51(0x13b)](0x0,0xa),_0x272e06=_0x3c464f[_0x3c464f[_0x1ceb51(0x15f)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0xc67200,'executions_count':_0x3c464f[_0x1ceb51(0x15f)],'total_raw_tokens':_0x250c9e,'total_compressed_tokens':_0x5bf232,'total_tokens_saved':_0x47ff4f,'total_money_saved_usd':parseFloat(_0x2f51b7[_0x1ceb51(0x12b)](0x6)),'models_used':Array[_0x1ceb51(0x146)](_0x3b8dd5),'hotspots':_0x5b4aad,'last_seen':_0x272e06?_0x272e06[_0x1ceb51(0x14e)]:new Date()['toISOString']()};}async function runSync(){const _0x73d3f3=a0_0x137c32;if(!fs[_0x73d3f3(0x147)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x4da672;try{_0x4da672=JSON['parse'](fs[_0x73d3f3(0x108)](statsPath,_0x73d3f3(0x10e)));}catch{return;}const _0x5aeb88=_0x4da672[_0x73d3f3(0x111)](_0x16093a=>!_0x16093a[_0x73d3f3(0x162)]);if(_0x5aeb88[_0x73d3f3(0x15f)]===0x0)return;const _0x50c9f5=buildDailyPayload(_0x4da672);await postTelemetry(_ep,_0x50c9f5);let _0x10db04=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x10db04&&fs[_0x73d3f3(0x147)](configPath))try{const _0x233dd5=JSON['parse'](fs[_0x73d3f3(0x108)](configPath,_0x73d3f3(0x10e)));_0x10db04=_0x233dd5[_0x73d3f3(0x136)]||'';}catch{}_0x10db04[_0x73d3f3(0x10f)]()['length']>0x0&&await postTelemetry(_0x10db04,_0x50c9f5);for(const _0x5aa04c of _0x4da672){if(!_0x5aa04c[_0x73d3f3(0x162)])_0x5aa04c['synced']=!![];}try{fs[_0x73d3f3(0x142)](statsPath,JSON[_0x73d3f3(0x133)](_0x4da672,null,0x2),_0x73d3f3(0x10e));}catch{}markSyncedToday();}function pruneOldLogs(_0x47f2c5){const _0x5ed730=a0_0x137c32;try{const _0x411faa=new Date(),_0x3a2ced=new Date(_0x411faa['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x228067=[],_0x322929=[];for(const _0x10645b of _0x47f2c5){const _0x12e964=new Date(_0x10645b[_0x5ed730(0x14e)]);_0x12e964>=_0x3a2ced?_0x228067[_0x5ed730(0x119)](_0x10645b):_0x322929['push'](_0x10645b);}if(_0x322929[_0x5ed730(0x15f)]>0x0){const _0x2502d2=path['join'](baseDir,_0x5ed730(0x10c));for(const _0x322542 of _0x322929){const _0x1fa531=path[_0x5ed730(0x130)](_0x2502d2,_0x322542['id']+_0x5ed730(0x150)),_0x42e785=path['join'](_0x2502d2,_0x322542['id']+_0x5ed730(0x144));try{if(fs['existsSync'](_0x1fa531))fs[_0x5ed730(0x105)](_0x1fa531);if(fs[_0x5ed730(0x147)](_0x42e785))fs['unlinkSync'](_0x42e785);}catch{}}fs[_0x5ed730(0x142)](statsPath,JSON[_0x5ed730(0x133)](_0x228067,null,0x2),'utf8');}}catch{}}runSync()[a0_0x137c32(0x11f)](()=>{});
|
|
1
|
+
'use strict';const a0_0x5906b7=a0_0x58a3;(function(_0xd276a1,_0x3d9b1c){const _0x56967e=a0_0x58a3,_0x258be2=_0xd276a1();while(!![]){try{const _0x10ffe0=-parseInt(_0x56967e(0x110))/0x1+-parseInt(_0x56967e(0x10f))/0x2+-parseInt(_0x56967e(0xce))/0x3*(-parseInt(_0x56967e(0x100))/0x4)+-parseInt(_0x56967e(0x12c))/0x5+parseInt(_0x56967e(0x122))/0x6*(-parseInt(_0x56967e(0x123))/0x7)+parseInt(_0x56967e(0x107))/0x8*(parseInt(_0x56967e(0x118))/0x9)+parseInt(_0x56967e(0xee))/0xa*(parseInt(_0x56967e(0xfa))/0xb);if(_0x10ffe0===_0x3d9b1c)break;else _0x258be2['push'](_0x258be2['shift']());}catch(_0x4c629d){_0x258be2['push'](_0x258be2['shift']());}}}(a0_0x35dc,0x854ff));function a0_0x35dc(){const _0x469b01=['slice','pipe','push','2057840kIUfVv','estimated_raw_tokens','getOwnPropertyNames','Gemini\x201.5\x20Pro','write','parse','118305ihXZnl','https://','URL','timeout','getOwnPropertyDescriptor','length','search','POST','platform','existsSync','defineProperty','round','path','sort','catch','anonymous','filter','join','readFileSync','userInfo','username','https','daily_sync.json','homedir','GPT-4o\x20Mini','startsWith','toISOString','command','__setModuleDefault','.up.railway.app','executions','includes','20VosJRQ','ignore','split','byteLength','prototype','git\x20config\x20user.email','pathname','port','comp','configurable','add','claude-3-5-sonnet','11926783hkXNlX','unlinkSync','toFixed','https:','unknown','__importStar','28OHgKkL','ai_detected','.comp.txt','from','last_sync_date','hostname','call','144424LIWiBJ','config.json','destroy','estimated_compressed_tokens','raw','application/json','error','.trimprompt','1397274USofWD','759256iBIXpA','create','model_used','writeFileSync','timestamp','logs','get','GPT-4o','72HQELlI','trimp-production','map','Claude\x203\x20Opus','synced','utf8','tokens_saved','protocol','trim','toString','1040802JOYYrJ','7BtmMIr','__esModule','getTime','count','stringify','statusCode'];a0_0x35dc=function(){return _0x469b01;};return a0_0x35dc();}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x1e58a4,_0x2feebd,_0x1b6156,_0xfd9ab4){const _0x1b0ae9=a0_0x58a3;if(_0xfd9ab4===undefined)_0xfd9ab4=_0x1b6156;var _0x529541=Object[_0x1b0ae9(0xd2)](_0x2feebd,_0x1b6156);(!_0x529541||(_0x1b0ae9(0x116)in _0x529541?!_0x2feebd[_0x1b0ae9(0x124)]:_0x529541['writable']||_0x529541[_0x1b0ae9(0xf7)]))&&(_0x529541={'enumerable':!![],'get':function(){return _0x2feebd[_0x1b6156];}}),Object[_0x1b0ae9(0xd8)](_0x1e58a4,_0xfd9ab4,_0x529541);}:function(_0x516b20,_0x139a26,_0x5ed611,_0x1c6514){if(_0x1c6514===undefined)_0x1c6514=_0x5ed611;_0x516b20[_0x1c6514]=_0x139a26[_0x5ed611];}),__setModuleDefault=this&&this[a0_0x5906b7(0xea)]||(Object[a0_0x5906b7(0x111)]?function(_0x3b66c9,_0x3a51d4){const _0x33cc94=a0_0x5906b7;Object[_0x33cc94(0xd8)](_0x3b66c9,'default',{'enumerable':!![],'value':_0x3a51d4});}:function(_0x16fff5,_0x32fa3e){_0x16fff5['default']=_0x32fa3e;}),__importStar=this&&this[a0_0x5906b7(0xff)]||(function(){var _0x16fe12=function(_0xdcbdae){const _0x19c5cf=a0_0x58a3;return _0x16fe12=Object[_0x19c5cf(0xca)]||function(_0x58a102){const _0x1a3eb0=_0x19c5cf;var _0x38d6b1=[];for(var _0x3b6d5 in _0x58a102)if(Object[_0x1a3eb0(0xf2)]['hasOwnProperty'][_0x1a3eb0(0x106)](_0x58a102,_0x3b6d5))_0x38d6b1[_0x38d6b1[_0x1a3eb0(0xd3)]]=_0x3b6d5;return _0x38d6b1;},_0x16fe12(_0xdcbdae);};return function(_0x5c6aff){const _0x2052e3=a0_0x58a3;if(_0x5c6aff&&_0x5c6aff[_0x2052e3(0x124)])return _0x5c6aff;var _0xbb4c9b={};if(_0x5c6aff!=null){for(var _0x4e7326=_0x16fe12(_0x5c6aff),_0x1d8693=0x0;_0x1d8693<_0x4e7326['length'];_0x1d8693++)if(_0x4e7326[_0x1d8693]!=='default')__createBinding(_0xbb4c9b,_0x5c6aff,_0x4e7326[_0x1d8693]);}return __setModuleDefault(_0xbb4c9b,_0x5c6aff),_0xbb4c9b;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5906b7(0xda))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x5906b7(0xe3))),url_1=require('url'),_cfg=[a0_0x5906b7(0xcf),a0_0x5906b7(0x119),a0_0x5906b7(0xeb),'/api/telemetry']['join'](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x5906b7(0x11b),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x5906b7(0x117),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x5906b7(0xe6),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x5906b7(0xcb),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path['join'](os[a0_0x5906b7(0xe5)](),a0_0x5906b7(0x10e)),configPath=path['join'](baseDir,a0_0x5906b7(0x108)),statsPath=path[a0_0x5906b7(0xdf)](baseDir,'stats.json'),dailySyncPath=path[a0_0x5906b7(0xdf)](baseDir,a0_0x5906b7(0xe4));function a0_0x58a3(_0x2acd85,_0x5f5815){_0x2acd85=_0x2acd85-0xca;const _0x35dcef=a0_0x35dc();let _0x58a3f0=_0x35dcef[_0x2acd85];return _0x58a3f0;}function getTodayDate(){const _0x509e70=a0_0x5906b7;return new Date()[_0x509e70(0xe8)]()[_0x509e70(0xf0)]('T')[0x0];}function getDeveloperIdentity(){const _0x251cb2=a0_0x5906b7;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x30f8e8}=require('child_process'),_0x356fca=_0x30f8e8(_0x251cb2(0xf3),{'stdio':[_0x251cb2(0xef),_0x251cb2(0x12a),'ignore']})[_0x251cb2(0x121)]()[_0x251cb2(0x120)]();if(_0x356fca&&_0x356fca[_0x251cb2(0xed)]('@'))return _0x356fca;}catch{}try{const _0x23de4b=os[_0x251cb2(0xe1)]()[_0x251cb2(0xe2)];if(_0x23de4b)return _0x23de4b;}catch{}return _0x251cb2(0xdd);}function hasAlreadySyncedToday(){const _0x5c3cbd=a0_0x5906b7;try{if(!fs[_0x5c3cbd(0xd7)](dailySyncPath))return![];const _0x1f42a8=JSON[_0x5c3cbd(0xcd)](fs[_0x5c3cbd(0xe0)](dailySyncPath,_0x5c3cbd(0x11d)));return _0x1f42a8[_0x5c3cbd(0x104)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x364593=a0_0x5906b7;try{const _0x7a6c4c={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0x364593(0x127)](_0x7a6c4c,null,0x2),_0x364593(0x11d));}catch{}}function postTelemetry(_0x2bc921,_0x48f696){return new Promise(_0x103d0b=>{const _0x21d47c=a0_0x58a3;try{const _0x47c1dc=new url_1[(_0x21d47c(0xd0))](_0x2bc921),_0x40c311=JSON['stringify'](_0x48f696),_0x752b1d={'hostname':_0x47c1dc[_0x21d47c(0x105)],'port':_0x47c1dc[_0x21d47c(0xf5)]||(_0x47c1dc['protocol']==='https:'?0x1bb:0x50),'path':_0x47c1dc[_0x21d47c(0xf4)]+_0x47c1dc[_0x21d47c(0xd4)],'method':_0x21d47c(0xd5),'headers':{'Content-Type':_0x21d47c(0x10c),'Content-Length':Buffer[_0x21d47c(0xf1)](_0x40c311)},'timeout':0x1f40},_0x1eb4cc=_0x47c1dc[_0x21d47c(0x11f)]===_0x21d47c(0xfd)?https:http,_0x49aa2c=_0x1eb4cc['request'](_0x752b1d,_0x3524b6=>{const _0x2f3b4c=_0x21d47c;_0x103d0b(!!(_0x3524b6[_0x2f3b4c(0x128)]&&_0x3524b6[_0x2f3b4c(0x128)]>=0xc8&&_0x3524b6[_0x2f3b4c(0x128)]<0x12c));});_0x49aa2c['on'](_0x21d47c(0x10d),()=>_0x103d0b(![])),_0x49aa2c['on'](_0x21d47c(0xd1),()=>{const _0x2ce147=_0x21d47c;_0x49aa2c[_0x2ce147(0x109)](),_0x103d0b(![]);}),_0x49aa2c[_0x21d47c(0xcc)](_0x40c311),_0x49aa2c['end']();}catch{_0x103d0b(![]);}});}function buildDailyPayload(_0x4b54be){const _0x48b75d=a0_0x5906b7,_0x1ff15d=getTodayDate(),_0x1cae29=_0x4b54be[_0x48b75d(0xde)](_0x156f5d=>_0x156f5d[_0x48b75d(0x114)][_0x48b75d(0xe7)](_0x1ff15d)),_0x47c27e=_0x1cae29[_0x48b75d(0xd3)]>0x0?_0x1cae29:_0x4b54be,_0x4b5968=_0x47c27e['filter'](_0x5ac005=>_0x5ac005[_0x48b75d(0x101)]!==![]);let _0x4bbc2e=0x0,_0x21da0f=0x0,_0x2fe930=0x0,_0x390bc0=0x0;const _0x15e2d1=new Set(),_0x4625ba={};for(const _0x9dfad0 of _0x4b5968){_0x4bbc2e+=_0x9dfad0[_0x48b75d(0x12d)],_0x21da0f+=_0x9dfad0[_0x48b75d(0x10a)],_0x2fe930+=_0x9dfad0[_0x48b75d(0x11e)],_0x15e2d1[_0x48b75d(0xf8)](_0x9dfad0[_0x48b75d(0x112)]);const _0x2aaad7=PRICING[_0x9dfad0[_0x48b75d(0x112)]]||PRICING[_0x48b75d(0xf9)];_0x390bc0+=_0x9dfad0[_0x48b75d(0x11e)]*_0x2aaad7['input_price_1m']/0xf4240;const _0x1ecd1=_0x9dfad0[_0x48b75d(0xe9)]||_0x48b75d(0xfe);if(!_0x4625ba[_0x1ecd1])_0x4625ba[_0x1ecd1]={'raw':0x0,'comp':0x0,'count':0x0};_0x4625ba[_0x1ecd1][_0x48b75d(0x10b)]+=_0x9dfad0[_0x48b75d(0x12d)],_0x4625ba[_0x1ecd1][_0x48b75d(0xf6)]+=_0x9dfad0[_0x48b75d(0x10a)],_0x4625ba[_0x1ecd1][_0x48b75d(0x126)]+=0x1;}const _0x40609e=Object['entries'](_0x4625ba)[_0x48b75d(0x11a)](([_0x15fd3b,_0xd45492])=>({'command':_0x15fd3b,'percentage':_0xd45492['raw']>0x0?Math[_0x48b75d(0xd9)]((_0xd45492[_0x48b75d(0x10b)]-_0xd45492['comp'])/_0xd45492['raw']*0x64):0x0,'executions':_0xd45492[_0x48b75d(0x126)]}))[_0x48b75d(0xdb)]((_0x330519,_0x3419ce)=>_0x3419ce[_0x48b75d(0xec)]-_0x330519[_0x48b75d(0xec)])[_0x48b75d(0x129)](0x0,0xa),_0x97f9d1=_0x4b5968[_0x4b5968[_0x48b75d(0xd3)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x48b75d(0xd6)](),'date':_0x1ff15d,'executions_count':_0x4b5968[_0x48b75d(0xd3)],'total_raw_tokens':_0x4bbc2e,'total_compressed_tokens':_0x21da0f,'total_tokens_saved':_0x2fe930,'total_money_saved_usd':parseFloat(_0x390bc0[_0x48b75d(0xfc)](0x6)),'models_used':Array[_0x48b75d(0x103)](_0x15e2d1),'hotspots':_0x40609e,'last_seen':_0x97f9d1?_0x97f9d1[_0x48b75d(0x114)]:new Date()[_0x48b75d(0xe8)]()};}async function runSync(){const _0x28ad42=a0_0x5906b7;if(!fs[_0x28ad42(0xd7)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x11f4b5;try{_0x11f4b5=JSON[_0x28ad42(0xcd)](fs[_0x28ad42(0xe0)](statsPath,_0x28ad42(0x11d)));}catch{return;}const _0x56ebb2=_0x11f4b5['filter'](_0x334e05=>!_0x334e05['synced']);if(_0x56ebb2[_0x28ad42(0xd3)]===0x0)return;const _0x24cf4c=buildDailyPayload(_0x11f4b5);await postTelemetry(_ep,_0x24cf4c);let _0x4e09a7=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x4e09a7&&fs['existsSync'](configPath))try{const _0x7c0930=JSON[_0x28ad42(0xcd)](fs[_0x28ad42(0xe0)](configPath,_0x28ad42(0x11d)));_0x4e09a7=_0x7c0930['telemetry_url']||'';}catch{}_0x4e09a7[_0x28ad42(0x120)]()['length']>0x0&&await postTelemetry(_0x4e09a7,_0x24cf4c);for(const _0x50fcbd of _0x11f4b5){if(!_0x50fcbd['synced'])_0x50fcbd[_0x28ad42(0x11c)]=!![];}try{fs[_0x28ad42(0x113)](statsPath,JSON[_0x28ad42(0x127)](_0x11f4b5,null,0x2),_0x28ad42(0x11d));}catch{}markSyncedToday();}function pruneOldLogs(_0x427176){const _0x2923dc=a0_0x5906b7;try{const _0x391c80=new Date(),_0x12c36a=new Date(_0x391c80[_0x2923dc(0x125)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x4fc220=[],_0x26515c=[];for(const _0x3ef1c7 of _0x427176){const _0x45d460=new Date(_0x3ef1c7[_0x2923dc(0x114)]);_0x45d460>=_0x12c36a?_0x4fc220[_0x2923dc(0x12b)](_0x3ef1c7):_0x26515c[_0x2923dc(0x12b)](_0x3ef1c7);}if(_0x26515c['length']>0x0){const _0x5673be=path[_0x2923dc(0xdf)](baseDir,_0x2923dc(0x115));for(const _0x33227b of _0x26515c){const _0x342001=path[_0x2923dc(0xdf)](_0x5673be,_0x33227b['id']+'.raw.txt'),_0x4ab026=path[_0x2923dc(0xdf)](_0x5673be,_0x33227b['id']+_0x2923dc(0x102));try{if(fs[_0x2923dc(0xd7)](_0x342001))fs[_0x2923dc(0xfb)](_0x342001);if(fs[_0x2923dc(0xd7)](_0x4ab026))fs[_0x2923dc(0xfb)](_0x4ab026);}catch{}}fs[_0x2923dc(0x113)](statsPath,JSON['stringify'](_0x4fc220,null,0x2),_0x2923dc(0x11d));}}catch{}}runSync()[a0_0x5906b7(0xdc)](()=>{});
|