trimprompt 1.0.16 → 1.0.17
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 +43 -2
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x34c37f=a0_0x3842;(function(_0x47bf09,_0x11aa21){const _0x55b2b5=a0_0x3842,_0x381a09=_0x47bf09();while(!![]){try{const _0x5dc841=parseInt(_0x55b2b5(0x1d8))/0x1+parseInt(_0x55b2b5(0x1c9))/0x2+parseInt(_0x55b2b5(0x1d0))/0x3+-parseInt(_0x55b2b5(0x1d7))/0x4*(-parseInt(_0x55b2b5(0x1c0))/0x5)+parseInt(_0x55b2b5(0x1c6))/0x6*(-parseInt(_0x55b2b5(0x1d2))/0x7)+-parseInt(_0x55b2b5(0x1db))/0x8*(parseInt(_0x55b2b5(0x1c7))/0x9)+-parseInt(_0x55b2b5(0x1bf))/0xa;if(_0x5dc841===_0x11aa21)break;else _0x381a09['push'](_0x381a09['shift']());}catch(_0x414c09){_0x381a09['push'](_0x381a09['shift']());}}}(a0_0x318a,0x64210));function a0_0x318a(){const _0x379e27=['Test\x20Runner:\x20','NPM:\x20Packages\x20verified/installed\x20successfully','defineProperty','match','replace','2954150nrXylX','915SyVkQQ','PASS','added\x20','split','__esModule','up\x20to\x20date','4632rIZkta','477iwKRjc','removed\x20','41980ApExLu','length','Tests:','includes','trim','join','Test\x20Files:','1540122LuutbD','filterJestVitest','644DXuKEY','\x20\x20...\x20(','startsWith','FAIL\x20\x20','filterNpmInstall','13788fkfKSb','27717XPKFdb','push','\x20passed,\x20','62840LAGlbM','\x20failed\x20(','\x20passed','audited\x20'];a0_0x318a=function(){return _0x379e27;};return a0_0x318a();}Object[a0_0x34c37f(0x1bc)](exports,a0_0x34c37f(0x1c4),{'value':!![]}),exports[a0_0x34c37f(0x1d6)]=filterNpmInstall,exports[a0_0x34c37f(0x1d1)]=filterJestVitest;function filterNpmInstall(_0x500429){const _0x429c87=a0_0x34c37f,_0x28cc30=_0x500429[_0x429c87(0x1be)](/\r/g,'\x0a'),_0x4e80a9=_0x28cc30[_0x429c87(0x1c3)]('\x0a'),_0x394843=[];for(const _0x2d6870 of _0x4e80a9){const _0x183a38=_0x2d6870[_0x429c87(0x1cd)]();(_0x183a38[_0x429c87(0x1cc)](_0x429c87(0x1c2))||_0x183a38['includes'](_0x429c87(0x1c8))||_0x183a38[_0x429c87(0x1cc)](_0x429c87(0x1de))||_0x183a38['includes'](_0x429c87(0x1c5))||_0x183a38[_0x429c87(0x1cc)]('found\x20'))&&(!_0x183a38[_0x429c87(0x1cc)]('%')&&!_0x183a38[_0x429c87(0x1d4)]('⠋')&&!_0x183a38['startsWith']('⠙')&&_0x394843[_0x429c87(0x1d9)](_0x183a38));}const _0xec1b6b=_0x394843['join']('\x0a')[_0x429c87(0x1cd)]();return _0xec1b6b[_0x429c87(0x1ca)]>0x0?_0xec1b6b:_0x429c87(0x1bb);}function a0_0x3842(_0x1e7449,_0x14a30a){const _0x318a78=a0_0x318a();return a0_0x3842=function(_0x3842c3,_0x35c8ac){_0x3842c3=_0x3842c3-0x1ba;let _0x36dfdb=_0x318a78[_0x3842c3];return _0x36dfdb;},a0_0x3842(_0x1e7449,_0x14a30a);}function filterJestVitest(_0x28050e){const _0x27193c=a0_0x34c37f,_0x5645e3=_0x28050e[_0x27193c(0x1c3)]('\x0a');let _0x3a94c0=0x0,_0x44b6fe=0x0,_0x46bd7a=0x0;const _0x55f621=[];let _0x507821=![];for(const _0x94ef9 of _0x5645e3){const _0x421fb2=_0x94ef9[_0x27193c(0x1cd)]();if(_0x421fb2[_0x27193c(0x1d4)](_0x27193c(0x1cb))||_0x421fb2['includes'](_0x27193c(0x1cf))){const _0x32ff5e=_0x421fb2[_0x27193c(0x1bd)](/(\d+)\s+passed/),_0xdcca98=_0x421fb2[_0x27193c(0x1bd)](/(\d+)\s+failed/),_0x3e9e4c=_0x421fb2[_0x27193c(0x1bd)](/(\d+)\s+total/);if(_0x32ff5e)_0x3a94c0=parseInt(_0x32ff5e[0x1]);if(_0xdcca98)_0x44b6fe=parseInt(_0xdcca98[0x1]);if(_0x3e9e4c)_0x46bd7a=parseInt(_0x3e9e4c[0x1]);continue;}(_0x421fb2['startsWith']('❯')||_0x421fb2[_0x27193c(0x1d4)]('●')||_0x421fb2[_0x27193c(0x1d4)](_0x27193c(0x1d5)))&&(_0x507821=!![]),_0x507821&&(_0x421fb2[_0x27193c(0x1ca)]>0x0&&!_0x421fb2['startsWith']('Test\x20Suites:')&&!_0x421fb2[_0x27193c(0x1d4)](_0x27193c(0x1cb))&&_0x55f621['push'](_0x94ef9));}if(_0x46bd7a===0x0&&_0x3a94c0===0x0&&_0x44b6fe===0x0){if(_0x28050e[_0x27193c(0x1cc)](_0x27193c(0x1c1))&&!_0x28050e['includes']('FAIL')){const _0x41895e=_0x28050e[_0x27193c(0x1bd)](/(\d+)\s+passed/),_0x1c66c3=_0x41895e?_0x41895e[0x1]:'all';return _0x27193c(0x1ba)+_0x1c66c3+_0x27193c(0x1dd);}return _0x28050e;}if(_0x44b6fe===0x0&&_0x3a94c0>0x0)return _0x27193c(0x1ba)+_0x3a94c0+_0x27193c(0x1dd);const _0x46dc0d=[_0x27193c(0x1ba)+_0x3a94c0+_0x27193c(0x1da)+_0x44b6fe+_0x27193c(0x1dc)+_0x46bd7a+'\x20total)'];if(_0x55f621[_0x27193c(0x1ca)]>0x0){_0x46dc0d[_0x27193c(0x1d9)]('\x0aFailures:');const _0xa8152a=0x19,_0x49e141=_0x55f621['slice'](0x0,_0xa8152a);for(const _0x52a8e2 of _0x49e141){_0x46dc0d[_0x27193c(0x1d9)]('\x20\x20'+_0x52a8e2);}_0x55f621['length']>_0xa8152a&&_0x46dc0d[_0x27193c(0x1d9)](_0x27193c(0x1d3)+(_0x55f621[_0x27193c(0x1ca)]-_0xa8152a)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x46dc0d[_0x27193c(0x1ce)]('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x19b21a=a0_0x5249;(function(_0x4294c6,_0x25b147){const _0x119d0d=a0_0x5249,_0x168274=_0x4294c6();while(!![]){try{const _0x3f8597=parseInt(_0x119d0d(0x1f8))/0x1*(-parseInt(_0x119d0d(0x202))/0x2)+parseInt(_0x119d0d(0x1ee))/0x3+-parseInt(_0x119d0d(0x1e7))/0x4+parseInt(_0x119d0d(0x212))/0x5+parseInt(_0x119d0d(0x1f2))/0x6*(parseInt(_0x119d0d(0x20d))/0x7)+parseInt(_0x119d0d(0x20b))/0x8*(parseInt(_0x119d0d(0x1f6))/0x9)+parseInt(_0x119d0d(0x1ea))/0xa*(-parseInt(_0x119d0d(0x1ec))/0xb);if(_0x3f8597===_0x25b147)break;else _0x168274['push'](_0x168274['shift']());}catch(_0x776b9){_0x168274['push'](_0x168274['shift']());}}}(a0_0x5a86,0x646fb));function a0_0x5249(_0x1c0ff0,_0x242fd2){const _0x5a8694=a0_0x5a86();return a0_0x5249=function(_0x524907,_0x403cdb){_0x524907=_0x524907-0x1e4;let _0x4bdb1f=_0x5a8694[_0x524907];return _0x4bdb1f;},a0_0x5249(_0x1c0ff0,_0x242fd2);}Object[a0_0x19b21a(0x214)](exports,a0_0x19b21a(0x200),{'value':!![]}),exports[a0_0x19b21a(0x1e9)]=filterPytest,exports[a0_0x19b21a(0x1f5)]=filterPipInstall;function filterPytest(_0x4e2376){const _0x1cf00b=a0_0x19b21a,_0x267a1d=_0x4e2376[_0x1cf00b(0x1f4)]('\x0a');let _0x505952=0x0,_0x27cd42=0x0,_0x5f39f8=0x0,_0x2c3cfa=0x0,_0x298727=0x0;const _0x2d8d73=[];let _0x435f0c=[],_0x46ab21=![];for(const _0x327286 of _0x267a1d){const _0x3888cd=_0x327286[_0x1cf00b(0x205)]();if(_0x3888cd[_0x1cf00b(0x1f3)](_0x1cf00b(0x211))||_0x3888cd[_0x1cf00b(0x1f3)]('===\x20ERRORS\x20===')){_0x46ab21=!![];continue;}else(_0x3888cd['startsWith'](_0x1cf00b(0x208))||_0x3888cd['startsWith'](_0x1cf00b(0x215))&&_0x3888cd[_0x1cf00b(0x1e5)]('passed'))&&(_0x46ab21=![],_0x435f0c[_0x1cf00b(0x1f7)]>0x0&&(_0x2d8d73['push'](_0x435f0c),_0x435f0c=[]));if(_0x46ab21){if(_0x3888cd['startsWith'](_0x1cf00b(0x210)))_0x435f0c['length']>0x0&&(_0x2d8d73[_0x1cf00b(0x1ff)](_0x435f0c),_0x435f0c=[]),_0x435f0c[_0x1cf00b(0x1ff)](_0x3888cd);else _0x3888cd[_0x1cf00b(0x1f7)]>0x0&&_0x435f0c[_0x1cf00b(0x1ff)](_0x327286);continue;}if(_0x3888cd['startsWith'](_0x1cf00b(0x215))&&_0x3888cd[_0x1cf00b(0x1e5)](_0x1cf00b(0x1fa))){const _0x3d70d8=_0x3888cd[_0x1cf00b(0x1e8)](/(\d+)\s+passed/),_0x1ecb1a=_0x3888cd['match'](/(\d+)\s+failed/),_0x492fb3=_0x3888cd[_0x1cf00b(0x1e8)](/(\d+)\s+skipped/),_0x5f0146=_0x3888cd[_0x1cf00b(0x1e8)](/(\d+)\s+xfailed/),_0x4de646=_0x3888cd[_0x1cf00b(0x1e8)](/(\d+)\s+xpassed/);if(_0x3d70d8)_0x505952=parseInt(_0x3d70d8[0x1]);if(_0x1ecb1a)_0x27cd42=parseInt(_0x1ecb1a[0x1]);if(_0x492fb3)_0x5f39f8=parseInt(_0x492fb3[0x1]);if(_0x5f0146)_0x2c3cfa=parseInt(_0x5f0146[0x1]);if(_0x4de646)_0x298727=parseInt(_0x4de646[0x1]);}}_0x435f0c[_0x1cf00b(0x1f7)]>0x0&&_0x2d8d73[_0x1cf00b(0x1ff)](_0x435f0c);if(_0x505952===0x0&&_0x27cd42===0x0&&_0x5f39f8===0x0&&_0x2c3cfa===0x0&&_0x298727===0x0){if(_0x4e2376[_0x1cf00b(0x1e5)]('passed')&&!_0x4e2376[_0x1cf00b(0x1e5)](_0x1cf00b(0x206)))return _0x1cf00b(0x204);return _0x4e2376;}if(_0x27cd42===0x0&&_0x505952>0x0&&_0x5f39f8===0x0&&_0x2c3cfa===0x0&&_0x298727===0x0)return'Pytest:\x20'+_0x505952+'\x20passed';const _0x334ed7=[];_0x334ed7[_0x1cf00b(0x1ff)]('Pytest:\x20'+_0x505952+_0x1cf00b(0x1f0));if(_0x27cd42>0x0)_0x334ed7[_0x1cf00b(0x1ff)](_0x27cd42+_0x1cf00b(0x1eb));if(_0x5f39f8>0x0)_0x334ed7['push'](_0x5f39f8+_0x1cf00b(0x20e));if(_0x2c3cfa>0x0)_0x334ed7[_0x1cf00b(0x1ff)](_0x2c3cfa+_0x1cf00b(0x207));if(_0x298727>0x0)_0x334ed7[_0x1cf00b(0x1ff)](_0x298727+_0x1cf00b(0x20c));const _0x57ff21=[_0x334ed7[_0x1cf00b(0x209)](',\x20')];if(_0x2d8d73['length']>0x0){_0x57ff21['push'](_0x1cf00b(0x1e4));const _0x36d958=0x3,_0x2322aa=_0x2d8d73[_0x1cf00b(0x1ed)](0x0,_0x36d958);for(let _0x2dcaed=0x0;_0x2dcaed<_0x2322aa[_0x1cf00b(0x1f7)];_0x2dcaed++){const _0x553527=_0x2322aa[_0x2dcaed],_0x3b7546=_0x553527[0x0][_0x1cf00b(0x1f9)](/_/g,'')['trim']();_0x57ff21['push']('\x20\x20'+(_0x2dcaed+0x1)+'.\x20[FAIL]\x20'+_0x3b7546);const _0x1d872e=_0x553527['slice'](0x1),_0x4556fa=_0x1d872e['filter'](_0x414662=>{const _0x59404d=_0x1cf00b,_0x5e6a03=_0x414662[_0x59404d(0x205)]();return _0x5e6a03[_0x59404d(0x1f3)]('>')||_0x5e6a03[_0x59404d(0x1f3)]('E\x20\x20\x20')||_0x5e6a03[_0x59404d(0x1e5)](_0x59404d(0x1ef))||_0x5e6a03[_0x59404d(0x1e5)](_0x59404d(0x1fe));});for(const _0x377d15 of _0x4556fa[_0x1cf00b(0x1ed)](0x0,0x8)){_0x57ff21['push'](_0x1cf00b(0x1fb)+_0x377d15);}_0x4556fa[_0x1cf00b(0x1f7)]>0x8&&_0x57ff21[_0x1cf00b(0x1ff)](_0x1cf00b(0x201)+(_0x4556fa[_0x1cf00b(0x1f7)]-0x8)+_0x1cf00b(0x203));}_0x2d8d73['length']>_0x36d958&&_0x57ff21[_0x1cf00b(0x1ff)](_0x1cf00b(0x1f1)+(_0x2d8d73[_0x1cf00b(0x1f7)]-_0x36d958)+'\x20more\x20failures\x20truncated');}return _0x57ff21[_0x1cf00b(0x209)]('\x0a');}function filterPipInstall(_0x450018){const _0x5d06a9=a0_0x19b21a,_0x26a96a=_0x450018[_0x5d06a9(0x1f4)]('\x0a'),_0x1ceeb1=[];for(const _0x5b2444 of _0x26a96a){const _0x25d29f=_0x5b2444[_0x5d06a9(0x205)]();_0x25d29f[_0x5d06a9(0x1f3)](_0x5d06a9(0x1fd))&&_0x1ceeb1[_0x5d06a9(0x1ff)](_0x25d29f);}if(_0x1ceeb1[_0x5d06a9(0x1f7)]>0x0)return _0x1ceeb1['join']('\x0a');return _0x26a96a[_0x5d06a9(0x1e6)](_0x1bc814=>{const _0x5702b0=_0x5d06a9,_0x3353f7=_0x1bc814[_0x5702b0(0x205)]();return!_0x3353f7[_0x5702b0(0x1f3)](_0x5702b0(0x1fc))&&!_0x3353f7[_0x5702b0(0x1f3)](_0x5702b0(0x20f))&&!_0x3353f7[_0x5702b0(0x1e5)](_0x5702b0(0x20a))&&!_0x3353f7[_0x5702b0(0x1f3)](_0x5702b0(0x213));})[_0x5d06a9(0x209)]('\x0a')['trim']();}function a0_0x5a86(){const _0x3b038d=['\x20skipped','Downloading','___','===\x20FAILURES\x20===','3595795bMMijy','Requirement\x20already\x20satisfied','defineProperty','===','\x0aFailures:','includes','filter','1201296pazjEt','match','filterPytest','2440MSZSvO','\x20failed','63811JcLkOs','slice','1680519GSEoRP','.py:','\x20passed','\x20\x20...\x20+','474YkajgO','startsWith','split','filterPipInstall','9kaqeVP','length','8399bykhgB','replace','\x20in\x20','\x20\x20\x20\x20','Collecting','Successfully\x20installed','AssertionError:','push','__esModule','\x20\x20\x20\x20...\x20(','94bqBsDN','\x20lines\x20of\x20stacktrace\x20truncated)','Pytest:\x20All\x20tests\x20passed','trim','failed','\x20xfailed','===\x20short\x20test\x20summary\x20info\x20===','join','Using\x20cached','5689144pXFxBs','\x20xpassed\x20(warning!)','47089spKftA'];a0_0x5a86=function(){return _0x3b038d;};return a0_0x5a86();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x11f07c=a0_0x4d4f;(function(_0x292acf,_0x2e724c){const _0x340736=a0_0x4d4f,_0x46afca=_0x292acf();while(!![]){try{const _0x2a01c2=parseInt(_0x340736(0x173))/0x1*(-parseInt(_0x340736(0x16b))/0x2)+-parseInt(_0x340736(0x193))/0x3+-parseInt(_0x340736(0x17f))/0x4+parseInt(_0x340736(0x171))/0x5+parseInt(_0x340736(0x17c))/0x6+parseInt(_0x340736(0x178))/0x7*(parseInt(_0x340736(0x175))/0x8)+parseInt(_0x340736(0x186))/0x9*(parseInt(_0x340736(0x183))/0xa);if(_0x2a01c2===_0x2e724c)break;else _0x46afca['push'](_0x46afca['shift']());}catch(_0x2aa241){_0x46afca['push'](_0x46afca['shift']());}}}(a0_0x252b,0xa9cbf));Object[a0_0x11f07c(0x18d)](exports,'__esModule',{'value':!![]}),exports[a0_0x11f07c(0x179)]=filterCargoTest,exports[a0_0x11f07c(0x168)]=filterCargoBuild;function a0_0x252b(){const _0x32af9f=['error:','62392XjNoYj','startsWith','----\x20failures\x20----','427NbVPBe','filterCargoTest','left:','includes','5996766zhiZsa','Cargo:\x20compiled\x20','min','380008bUsumF','right:','warning:','replace','10nSyzzv','\x20\x20\x20\x20','\x20\x20...\x20+','2976543kSmtqE','\x20warnings','\x20crates\x20successfully','assert','thread','\x0aWarnings:','length','defineProperty','test\x20result:\x20ok','split','\x20more\x20failures','\x20more\x20errors','trim','2225796IiotqI','\x20----','slice','\x20ignored','error[','push','\x20passed','panicked','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','filterCargoBuild','join','failures:','498470VfvNjB','Cargo\x20test:\x20','\x20crates,\x20','\x0aErrors:','\x20passed,\x20','filter','2370995eHpedD','\x20errors,\x20','3mYtqgI'];a0_0x252b=function(){return _0x32af9f;};return a0_0x252b();}function filterCargoTest(_0x54cb35){const _0x54766d=a0_0x11f07c,_0x5f32e2=_0x54cb35['split']('\x0a');let _0xab5060=0x0,_0x5e54b7=0x0,_0x15c5f9=0x0,_0x2ee218=0x0;const _0x1baa9a=[];let _0x3b0b74=![],_0x2f9f5c=[];for(const _0x182766 of _0x5f32e2){const _0x392075=_0x182766['trim'](),_0x39c959=_0x392075['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x39c959){_0xab5060+=parseInt(_0x39c959[0x2]),_0x5e54b7+=parseInt(_0x39c959[0x3]),_0x15c5f9+=parseInt(_0x39c959[0x4]),_0x2ee218+=parseInt(_0x39c959[0x5]);continue;}if(_0x392075===_0x54766d(0x16a)||_0x392075===_0x54766d(0x177)){_0x3b0b74=!![];continue;}if(_0x3b0b74){if(_0x392075['startsWith']('----\x20')&&_0x392075['endsWith'](_0x54766d(0x194))){if(_0x2f9f5c[_0x54766d(0x18c)]>0x0)_0x1baa9a['push'](_0x2f9f5c[_0x54766d(0x169)]('\x0a'));_0x2f9f5c=[_0x392075[_0x54766d(0x182)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x392075===_0x54766d(0x16a)||_0x392075[_0x54766d(0x176)]('test\x20result:')){if(_0x2f9f5c[_0x54766d(0x18c)]>0x0)_0x1baa9a['push'](_0x2f9f5c[_0x54766d(0x169)]('\x0a'));_0x2f9f5c=[],_0x3b0b74=![];}else _0x392075[_0x54766d(0x18c)]>0x0&&_0x2f9f5c[_0x54766d(0x164)](_0x182766);}}}if(_0x2f9f5c[_0x54766d(0x18c)]>0x0)_0x1baa9a[_0x54766d(0x164)](_0x2f9f5c[_0x54766d(0x169)]('\x0a'));if(_0xab5060===0x0&&_0x5e54b7===0x0&&_0x15c5f9===0x0){if(_0x54cb35[_0x54766d(0x17b)](_0x54766d(0x18e)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x54cb35;}if(_0x5e54b7===0x0){const _0x663ded=[_0x54766d(0x16c)+_0xab5060+_0x54766d(0x165)];if(_0x15c5f9>0x0)_0x663ded['push'](_0x15c5f9+_0x54766d(0x196));return _0x663ded[_0x54766d(0x169)](',\x20');}const _0x18bfba=[_0x54766d(0x16c)+_0xab5060+_0x54766d(0x16f)+_0x5e54b7+'\x20failed,\x20'+_0x15c5f9+_0x54766d(0x196)];if(_0x1baa9a[_0x54766d(0x18c)]>0x0){_0x18bfba[_0x54766d(0x164)]('\x0aFailures:');const _0x30918a=0x3;for(let _0x315985=0x0;_0x315985<Math[_0x54766d(0x17e)](_0x1baa9a[_0x54766d(0x18c)],_0x30918a);_0x315985++){const _0x1167cd=_0x1baa9a[_0x315985][_0x54766d(0x18f)]('\x0a');_0x18bfba[_0x54766d(0x164)]('\x20\x20'+(_0x315985+0x1)+'.\x20'+_0x1167cd[0x0]);const _0x5bc0f9=_0x1167cd['slice'](0x1),_0x4c785d=_0x5bc0f9[_0x54766d(0x170)](_0x14f325=>_0x14f325['trim']()[_0x54766d(0x176)](_0x54766d(0x18a))||_0x14f325[_0x54766d(0x17b)](_0x54766d(0x166))||_0x14f325[_0x54766d(0x17b)](_0x54766d(0x189))||_0x14f325[_0x54766d(0x17b)](_0x54766d(0x17a))||_0x14f325[_0x54766d(0x17b)](_0x54766d(0x180)));for(const _0x2461ab of _0x4c785d[_0x54766d(0x195)](0x0,0x5)){_0x18bfba[_0x54766d(0x164)](_0x54766d(0x184)+_0x2461ab[_0x54766d(0x192)]());}}_0x1baa9a['length']>_0x30918a&&_0x18bfba[_0x54766d(0x164)](_0x54766d(0x185)+(_0x1baa9a[_0x54766d(0x18c)]-_0x30918a)+_0x54766d(0x190));}return _0x18bfba[_0x54766d(0x169)]('\x0a');}function a0_0x4d4f(_0x3e8c09,_0x37d41c){const _0x252b11=a0_0x252b();return a0_0x4d4f=function(_0x4d4fd9,_0x2cf679){_0x4d4fd9=_0x4d4fd9-0x163;let _0x4d6002=_0x252b11[_0x4d4fd9];return _0x4d6002;},a0_0x4d4f(_0x3e8c09,_0x37d41c);}function filterCargoBuild(_0x4e8fc0){const _0x58ff1b=a0_0x11f07c,_0x1a9dfb=_0x4e8fc0[_0x58ff1b(0x18f)]('\x0a'),_0x24a448=[],_0x2e88a7=[];let _0x419ee1=0x0;for(const _0x71915f of _0x1a9dfb){const _0x286fb=_0x71915f[_0x58ff1b(0x192)]();if(_0x286fb['startsWith']('Compiling\x20'))_0x419ee1++;else{if(_0x286fb[_0x58ff1b(0x176)]('warning[')||_0x286fb[_0x58ff1b(0x176)](_0x58ff1b(0x181)))_0x24a448[_0x58ff1b(0x164)](_0x286fb);else{if(_0x286fb[_0x58ff1b(0x176)](_0x58ff1b(0x163))||_0x286fb[_0x58ff1b(0x176)](_0x58ff1b(0x174)))_0x2e88a7[_0x58ff1b(0x164)](_0x286fb);}}}if(_0x2e88a7['length']===0x0&&_0x24a448[_0x58ff1b(0x18c)]===0x0)return _0x419ee1>0x0?_0x58ff1b(0x17d)+_0x419ee1+_0x58ff1b(0x188):_0x4e8fc0[_0x58ff1b(0x192)]();const _0x5f5634=[];if(_0x2e88a7[_0x58ff1b(0x18c)]>0x0){_0x5f5634[_0x58ff1b(0x164)]('Cargo:\x20'+_0x2e88a7[_0x58ff1b(0x18c)]+_0x58ff1b(0x172)+_0x24a448['length']+_0x58ff1b(0x187)),_0x5f5634['push'](_0x58ff1b(0x16e));for(const _0x3c9a3b of _0x2e88a7[_0x58ff1b(0x195)](0x0,0x5))_0x5f5634[_0x58ff1b(0x164)]('\x20\x20'+_0x3c9a3b);if(_0x2e88a7[_0x58ff1b(0x18c)]>0x5)_0x5f5634['push'](_0x58ff1b(0x185)+(_0x2e88a7[_0x58ff1b(0x18c)]-0x5)+_0x58ff1b(0x191));}else _0x5f5634[_0x58ff1b(0x164)]('Cargo:\x20compiled\x20'+_0x419ee1+_0x58ff1b(0x16d)+_0x24a448[_0x58ff1b(0x18c)]+_0x58ff1b(0x187));if(_0x24a448[_0x58ff1b(0x18c)]>0x0&&_0x24a448[_0x58ff1b(0x18c)]<=0x5){_0x5f5634[_0x58ff1b(0x164)](_0x58ff1b(0x18b));for(const _0x310dd1 of _0x24a448)_0x5f5634[_0x58ff1b(0x164)]('\x20\x20'+_0x310dd1);}else _0x24a448[_0x58ff1b(0x18c)]>0x5&&_0x5f5634[_0x58ff1b(0x164)]('\x0a('+_0x24a448['length']+_0x58ff1b(0x167));return _0x5f5634['join']('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x205ce1=a0_0x57eb;(function(_0x1ad4b2,_0x537009){const _0x3df0b7=a0_0x57eb,_0x95ed6c=_0x1ad4b2();while(!![]){try{const _0x2a6c88=parseInt(_0x3df0b7(0x148))/0x1*(parseInt(_0x3df0b7(0x14f))/0x2)+-parseInt(_0x3df0b7(0x15b))/0x3*(parseInt(_0x3df0b7(0x146))/0x4)+parseInt(_0x3df0b7(0x155))/0x5*(parseInt(_0x3df0b7(0x15d))/0x6)+parseInt(_0x3df0b7(0x13b))/0x7*(parseInt(_0x3df0b7(0x14a))/0x8)+parseInt(_0x3df0b7(0x143))/0x9+parseInt(_0x3df0b7(0x140))/0xa*(-parseInt(_0x3df0b7(0x167))/0xb)+-parseInt(_0x3df0b7(0x14c))/0xc;if(_0x2a6c88===_0x537009)break;else _0x95ed6c['push'](_0x95ed6c['shift']());}catch(_0x5e3451){_0x95ed6c['push'](_0x95ed6c['shift']());}}}(a0_0x4a68,0xe7869));Object[a0_0x205ce1(0x152)](exports,a0_0x205ce1(0x13f),{'value':!![]}),exports[a0_0x205ce1(0x149)]=filterLs,exports[a0_0x205ce1(0x14b)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x205ce1(0x160)]=filterGrep;function a0_0x4a68(){const _0x328747=['total\x20','__esModule','10JuQCJj','keys','\x0a...\x20(','6518925LYOwpW','\x20lines\x20total)','\x20matches\x20across\x20','60044VoJTwI','\x20files)','1983IYkNQE','filterLs','16vrewGe','filterTree','270600OgsWgM','substring',':\x20...\x20(','1396JDvRAs','includes','\x20more\x20directories','defineProperty','push','startsWith','5htteap','length','split','\x20directories,\x20','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','filter','105NYGabF','...\x20+','1107048vmSKpy','trim','\x20lines\x20truncated]\x20...\x0a','filterGrep','indexOf','endsWith','match','Empty\x20directory','\x20matches\x20in\x20this\x20file)','join','14226201nKycCU','\x20more\x20files\x20with\x20matches','\x20more\x20files','1738058SRFLps','\x0a...\x20[','slice'];a0_0x4a68=function(){return _0x328747;};return a0_0x4a68();}function filterLs(_0x4fac90){const _0x19ab3d=a0_0x205ce1,_0x1bf2f2=_0x4fac90['split']('\x0a')[_0x19ab3d(0x15a)](_0xe82a24=>_0xe82a24['trim']()[_0x19ab3d(0x156)]>0x0);if(_0x1bf2f2[_0x19ab3d(0x156)]===0x0)return _0x19ab3d(0x164);if(_0x1bf2f2[_0x19ab3d(0x156)]<=0x1e)return _0x4fac90[_0x19ab3d(0x15e)]();const _0x5142d1=[],_0x5ae0e4=[];for(const _0x3b8598 of _0x1bf2f2){const _0x50c789=_0x3b8598[_0x19ab3d(0x15e)]();if(_0x50c789[_0x19ab3d(0x154)](_0x19ab3d(0x13e))||_0x50c789[_0x19ab3d(0x154)]('d')&&_0x50c789[_0x19ab3d(0x150)]('..'))continue;_0x50c789[_0x19ab3d(0x162)]('/')||_0x50c789[_0x19ab3d(0x154)]('d')&&_0x50c789[_0x19ab3d(0x150)]('\x20')?_0x5142d1[_0x19ab3d(0x153)](_0x50c789):_0x5ae0e4[_0x19ab3d(0x153)](_0x50c789);}const _0x108323=[];return _0x5142d1[_0x19ab3d(0x156)]>0x0&&(_0x5142d1[_0x19ab3d(0x156)]<=0xf?_0x108323[_0x19ab3d(0x153)](..._0x5142d1):(_0x108323[_0x19ab3d(0x153)](..._0x5142d1['slice'](0x0,0xa)),_0x108323['push'](_0x19ab3d(0x15c)+(_0x5142d1[_0x19ab3d(0x156)]-0xa)+_0x19ab3d(0x151)))),_0x5ae0e4[_0x19ab3d(0x156)]>0x0&&(_0x5ae0e4[_0x19ab3d(0x156)]<=0x14?_0x108323['push'](..._0x5ae0e4):(_0x108323[_0x19ab3d(0x153)](..._0x5ae0e4['slice'](0x0,0xf)),_0x108323['push'](_0x19ab3d(0x15c)+(_0x5ae0e4[_0x19ab3d(0x156)]-0xf)+_0x19ab3d(0x169)))),_0x108323['push']('\x0a('+_0x5142d1[_0x19ab3d(0x156)]+_0x19ab3d(0x158)+_0x5ae0e4[_0x19ab3d(0x156)]+_0x19ab3d(0x147)),_0x108323['join']('\x0a');}function filterTree(_0x41913b){const _0x32af87=a0_0x205ce1,_0x3c4af3=_0x41913b[_0x32af87(0x157)]('\x0a');if(_0x3c4af3[_0x32af87(0x156)]<=0x32)return _0x41913b['trim']();const _0x5c8221=[];let _0x47b121=0x0,_0x3d6144=0x0,_0x136d13=0x0;for(const _0x4ed572 of _0x3c4af3){const _0x24c299=_0x4ed572[_0x32af87(0x163)](/(\d+)\s+director/),_0x22a755=_0x4ed572[_0x32af87(0x163)](/(\d+)\s+file/);if(_0x24c299)_0x136d13=parseInt(_0x24c299[0x1]);if(_0x22a755)_0x3d6144=parseInt(_0x22a755[0x1]);const _0x3ee55f=(_0x4ed572['match'](/^[│├└\s─]+/)||[''])[0x0][_0x32af87(0x156)];_0x3ee55f<=0x4&&(_0x5c8221['push'](_0x4ed572),_0x47b121++);}return _0x3c4af3['length']>_0x5c8221[_0x32af87(0x156)]&&_0x5c8221[_0x32af87(0x153)](_0x32af87(0x142)+_0x136d13+_0x32af87(0x158)+_0x3d6144+_0x32af87(0x159)),_0x5c8221[_0x32af87(0x166)]('\x0a');}function filterCat(_0x396934){const _0xe2f31b=a0_0x205ce1,_0x10fd9f=_0x396934[_0xe2f31b(0x157)]('\x0a');if(_0x10fd9f['length']<=0x64)return _0x396934;const _0x1aa819=[];return _0x1aa819[_0xe2f31b(0x153)](..._0x10fd9f[_0xe2f31b(0x13d)](0x0,0x32)),_0x1aa819[_0xe2f31b(0x153)](_0xe2f31b(0x13c)+(_0x10fd9f['length']-0x50)+_0xe2f31b(0x15f)),_0x1aa819[_0xe2f31b(0x153)](..._0x10fd9f[_0xe2f31b(0x13d)](-0x1e)),_0x1aa819[_0xe2f31b(0x153)]('\x0a('+_0x10fd9f[_0xe2f31b(0x156)]+_0xe2f31b(0x144)),_0x1aa819[_0xe2f31b(0x166)]('\x0a');}function a0_0x57eb(_0x63bd1f,_0x43b6f2){const _0x4a6811=a0_0x4a68();return a0_0x57eb=function(_0x57eb6c,_0x3e02e5){_0x57eb6c=_0x57eb6c-0x13b;let _0x395c1b=_0x4a6811[_0x57eb6c];return _0x395c1b;},a0_0x57eb(_0x63bd1f,_0x43b6f2);}function filterGrep(_0xf5f62b){const _0x203c79=a0_0x205ce1,_0x322b22=_0xf5f62b[_0x203c79(0x157)]('\x0a')[_0x203c79(0x15a)](_0x546593=>_0x546593[_0x203c79(0x15e)]()[_0x203c79(0x156)]>0x0);if(_0x322b22['length']===0x0)return'No\x20matches\x20found';if(_0x322b22[_0x203c79(0x156)]<=0x32)return _0xf5f62b[_0x203c79(0x15e)]();const _0x3b0f1a={},_0xda6e68=[];for(const _0x179727 of _0x322b22){const _0x30449c=_0x179727[_0x203c79(0x161)](':');if(_0x30449c>0x0&&_0x30449c<0xc8){const _0x2db86b=_0x179727[_0x203c79(0x14d)](0x0,_0x30449c);if(_0x2db86b[_0x203c79(0x150)]('/')||_0x2db86b[_0x203c79(0x150)]('\x5c')||_0x2db86b[_0x203c79(0x150)]('.')){if(!_0x3b0f1a[_0x2db86b])_0x3b0f1a[_0x2db86b]=[];_0x3b0f1a[_0x2db86b][_0x203c79(0x153)](_0x179727[_0x203c79(0x14d)](_0x30449c+0x1)[_0x203c79(0x15e)]());continue;}}_0xda6e68[_0x203c79(0x153)](_0x179727);}const _0x1c3848=[],_0xa064b6=Object[_0x203c79(0x141)](_0x3b0f1a);if(_0xa064b6[_0x203c79(0x156)]>0x0){const _0x31ea89=0x14,_0x3b020a=_0xa064b6[_0x203c79(0x13d)](0x0,_0x31ea89);for(const _0x526a5d of _0x3b020a){const _0x13a941=_0x3b0f1a[_0x526a5d];if(_0x13a941[_0x203c79(0x156)]<=0x3)for(const _0xdbbe4a of _0x13a941){_0x1c3848[_0x203c79(0x153)](_0x526a5d+':\x20'+_0xdbbe4a);}else _0x1c3848[_0x203c79(0x153)](_0x526a5d+':\x20'+_0x13a941[0x0]),_0x1c3848[_0x203c79(0x153)](_0x526a5d+_0x203c79(0x14e)+_0x13a941[_0x203c79(0x156)]+_0x203c79(0x165));}_0xa064b6[_0x203c79(0x156)]>_0x31ea89&&_0x1c3848[_0x203c79(0x153)]('...\x20+'+(_0xa064b6[_0x203c79(0x156)]-_0x31ea89)+_0x203c79(0x168));}if(_0xda6e68[_0x203c79(0x156)]>0x0){const _0x1f1727=0x1e;_0x1c3848[_0x203c79(0x153)](..._0xda6e68[_0x203c79(0x13d)](0x0,_0x1f1727)),_0xda6e68[_0x203c79(0x156)]>_0x1f1727&&_0x1c3848[_0x203c79(0x153)](_0x203c79(0x15c)+(_0xda6e68[_0x203c79(0x156)]-_0x1f1727)+'\x20more\x20matches');}const _0x317f4c=_0x322b22[_0x203c79(0x156)];return _0x1c3848[_0x203c79(0x153)]('\x0a('+_0x317f4c+_0x203c79(0x145)+(_0xa064b6['length']||'?')+_0x203c79(0x147)),_0x1c3848[_0x203c79(0x166)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x3256c1=a0_0x1f9a;function a0_0x1f9a(_0x13bf29,_0x37b1b0){const _0x277cb6=a0_0x277c();return a0_0x1f9a=function(_0x1f9af1,_0x282273){_0x1f9af1=_0x1f9af1-0xf9;let _0x3b2c82=_0x277cb6[_0x1f9af1];return _0x3b2c82;},a0_0x1f9a(_0x13bf29,_0x37b1b0);}(function(_0x499661,_0x190dd8){const _0x364fe9=a0_0x1f9a,_0x5e9b46=_0x499661();while(!![]){try{const _0x19a72b=-parseInt(_0x364fe9(0x107))/0x1*(parseInt(_0x364fe9(0xfa))/0x2)+-parseInt(_0x364fe9(0x123))/0x3+-parseInt(_0x364fe9(0x169))/0x4+parseInt(_0x364fe9(0x10a))/0x5*(-parseInt(_0x364fe9(0x147))/0x6)+parseInt(_0x364fe9(0x126))/0x7*(-parseInt(_0x364fe9(0x170))/0x8)+-parseInt(_0x364fe9(0x13c))/0x9+parseInt(_0x364fe9(0x119))/0xa;if(_0x19a72b===_0x190dd8)break;else _0x5e9b46['push'](_0x5e9b46['shift']());}catch(_0x3908c7){_0x5e9b46['push'](_0x5e9b46['shift']());}}}(a0_0x277c,0x96edb));var __createBinding=this&&this[a0_0x3256c1(0x110)]||(Object[a0_0x3256c1(0x139)]?function(_0x21b531,_0x5467dd,_0x1d02a0,_0x578c8e){const _0x554e64=a0_0x3256c1;if(_0x578c8e===undefined)_0x578c8e=_0x1d02a0;var _0x2f2df8=Object['getOwnPropertyDescriptor'](_0x5467dd,_0x1d02a0);(!_0x2f2df8||('get'in _0x2f2df8?!_0x5467dd[_0x554e64(0x160)]:_0x2f2df8[_0x554e64(0x159)]||_0x2f2df8[_0x554e64(0x125)]))&&(_0x2f2df8={'enumerable':!![],'get':function(){return _0x5467dd[_0x1d02a0];}}),Object['defineProperty'](_0x21b531,_0x578c8e,_0x2f2df8);}:function(_0x2be923,_0x1749be,_0x3f8779,_0x7c7d4b){if(_0x7c7d4b===undefined)_0x7c7d4b=_0x3f8779;_0x2be923[_0x7c7d4b]=_0x1749be[_0x3f8779];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3256c1(0x139)]?function(_0x11102f,_0x468b93){const _0x504d2d=a0_0x3256c1;Object['defineProperty'](_0x11102f,_0x504d2d(0x154),{'enumerable':!![],'value':_0x468b93});}:function(_0x4dda82,_0x4c30e6){const _0x20fd9a=a0_0x3256c1;_0x4dda82[_0x20fd9a(0x154)]=_0x4c30e6;}),__importStar=this&&this['__importStar']||(function(){var _0xb74bb2=function(_0x146dd6){return _0xb74bb2=Object['getOwnPropertyNames']||function(_0x5e7eb3){const _0x5c594a=a0_0x1f9a;var _0x54d612=[];for(var _0x18b70f in _0x5e7eb3)if(Object[_0x5c594a(0x164)]['hasOwnProperty'][_0x5c594a(0x14b)](_0x5e7eb3,_0x18b70f))_0x54d612[_0x54d612[_0x5c594a(0x124)]]=_0x18b70f;return _0x54d612;},_0xb74bb2(_0x146dd6);};return function(_0x446515){const _0x3fc3e9=a0_0x1f9a;if(_0x446515&&_0x446515[_0x3fc3e9(0x160)])return _0x446515;var _0x3bd55f={};if(_0x446515!=null){for(var _0x41bd68=_0xb74bb2(_0x446515),_0x373c04=0x0;_0x373c04<_0x41bd68[_0x3fc3e9(0x124)];_0x373c04++)if(_0x41bd68[_0x373c04]!==_0x3fc3e9(0x154))__createBinding(_0x3bd55f,_0x446515,_0x41bd68[_0x373c04]);}return __setModuleDefault(_0x3bd55f,_0x446515),_0x3bd55f;};}());Object['defineProperty'](exports,a0_0x3256c1(0x160),{'value':!![]}),exports[a0_0x3256c1(0x132)]=filterLs,exports[a0_0x3256c1(0x16a)]=filterTree,exports[a0_0x3256c1(0x157)]=filterCat,exports[a0_0x3256c1(0x16c)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x3256c1(0x12c))),LOCK_FILES=[a0_0x3256c1(0x102),a0_0x3256c1(0x11a),a0_0x3256c1(0x16d),'Cargo.lock',a0_0x3256c1(0xfc),a0_0x3256c1(0x156),a0_0x3256c1(0x13d),a0_0x3256c1(0x103),'bun.lockb'],BINARY_EXTENSIONS=[a0_0x3256c1(0x171),a0_0x3256c1(0x106),a0_0x3256c1(0x10f),a0_0x3256c1(0x166),a0_0x3256c1(0x13f),'.jpg',a0_0x3256c1(0x16e),a0_0x3256c1(0x14d),a0_0x3256c1(0x12b),'.bmp',a0_0x3256c1(0x11d),a0_0x3256c1(0x148),a0_0x3256c1(0x150),a0_0x3256c1(0x149),a0_0x3256c1(0x15f),a0_0x3256c1(0x109),'.gz',a0_0x3256c1(0x104),a0_0x3256c1(0x15b),'.rar',a0_0x3256c1(0x133),a0_0x3256c1(0x11e),a0_0x3256c1(0x129),a0_0x3256c1(0x144),a0_0x3256c1(0x10e),'.dat',a0_0x3256c1(0x13b),a0_0x3256c1(0x134),a0_0x3256c1(0x14a),a0_0x3256c1(0x152),a0_0x3256c1(0x127),a0_0x3256c1(0x153),'.eot',a0_0x3256c1(0x14c),a0_0x3256c1(0x155),a0_0x3256c1(0x172),a0_0x3256c1(0x13a),a0_0x3256c1(0x10c),a0_0x3256c1(0x118),a0_0x3256c1(0xf9),a0_0x3256c1(0x16b),a0_0x3256c1(0x15a),'.class','.o',a0_0x3256c1(0x140)];function extractFilename(_0x418e3c){const _0x352065=a0_0x3256c1,_0x1d4e05=_0x418e3c[_0x352065(0x111)]()[_0x352065(0x116)](/\s+/);for(let _0x172aa6=0x1;_0x172aa6<_0x1d4e05['length'];_0x172aa6++){if(!_0x1d4e05[_0x172aa6][_0x352065(0x12e)]('-'))return _0x1d4e05[_0x172aa6];}return null;}function filterLockFile(_0x350fbe,_0x47d96c){const _0x33f438=a0_0x3256c1;try{const _0x20cc67=path['basename'](_0x47d96c)[_0x33f438(0x130)]();if(!LOCK_FILES[_0x33f438(0x121)](_0x357560=>_0x20cc67===_0x357560[_0x33f438(0x130)]()))return null;const _0x1aa12b=_0x350fbe[_0x33f438(0x124)];let _0x15fdd7=0x0;if(_0x20cc67===_0x33f438(0x102))try{const _0x3f05e8=JSON[_0x33f438(0x12a)](_0x350fbe);_0x15fdd7=Object['keys'](_0x3f05e8[_0x33f438(0x10d)]||_0x3f05e8[_0x33f438(0x11c)]||{})[_0x33f438(0x124)];}catch{_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/"resolved":/g)||[])[_0x33f438(0x124)];}else{if(_0x20cc67===_0x33f438(0x11a))_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/^"?[^#\s][^:]*:$/gm)||[])[_0x33f438(0x124)];else{if(_0x20cc67===_0x33f438(0x112)||_0x20cc67===_0x33f438(0x156))_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/\[\[package\]\]/g)||[])['length'];else{if(_0x20cc67==='go.sum')_0x15fdd7=Math['floor'](_0x350fbe[_0x33f438(0x116)]('\x0a')[_0x33f438(0x137)](_0x2cacfb=>_0x2cacfb[_0x33f438(0x111)]())['length']/0x2);else{if(_0x20cc67===_0x33f438(0x13d))try{_0x15fdd7=JSON['parse'](_0x350fbe)[_0x33f438(0x10d)]?.[_0x33f438(0x124)]||0x0;}catch{}else _0x20cc67==='pnpm-lock.yaml'?_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x15fdd7=_0x350fbe[_0x33f438(0x116)]('\x0a')[_0x33f438(0x137)](_0x5f1f74=>_0x5f1f74[_0x33f438(0x111)]())[_0x33f438(0x124)];}}}}return _0x33f438(0x168)+path[_0x33f438(0x138)](_0x47d96c)+':\x20'+_0x15fdd7+_0x33f438(0x131)+_0x1aa12b['toLocaleString']()+'\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)';}catch{return null;}}function filterBinaryOrMinified(_0x219c40,_0x8c7317){const _0x580add=a0_0x3256c1;try{if(_0x8c7317){const _0xe99bf=_0x8c7317[_0x580add(0x130)]();for(const _0x1a149f of BINARY_EXTENSIONS){if(_0xe99bf[_0x580add(0x108)](_0x1a149f))return _0x580add(0xfb)+path['basename'](_0x8c7317)+',\x20'+_0x219c40['length'][_0x580add(0x151)]()+_0x580add(0x146)+_0x1a149f+_0x580add(0x13e);}}const _0x230e1a=_0x219c40[_0x580add(0x120)](0x0,0x3e8);let _0x2b0541=0x0;for(let _0x3ccee2=0x0;_0x3ccee2<_0x230e1a[_0x580add(0x124)];_0x3ccee2++){if(_0x230e1a[_0x580add(0x161)](_0x3ccee2)===0x0)_0x2b0541++;}if(_0x2b0541>0x0)return _0x580add(0x141)+_0x219c40[_0x580add(0x124)][_0x580add(0x151)]()+_0x580add(0x128);let _0x31787b=0x0;for(let _0x15f4ff=0x0;_0x15f4ff<_0x230e1a[_0x580add(0x124)];_0x15f4ff++){const _0x4b4e3e=_0x230e1a[_0x580add(0x161)](_0x15f4ff);if(_0x4b4e3e<0x20&&_0x4b4e3e!==0xa&&_0x4b4e3e!==0xd&&_0x4b4e3e!==0x9)_0x31787b++;}if(_0x230e1a[_0x580add(0x124)]>0x64&&_0x31787b>_0x230e1a[_0x580add(0x124)]*0.1)return _0x580add(0x141)+_0x219c40[_0x580add(0x124)][_0x580add(0x151)]()+_0x580add(0x167);const _0x9e811e=_0x219c40[_0x580add(0x116)]('\x0a');if(_0x9e811e[_0x580add(0x124)]<=0x3&&_0x219c40[_0x580add(0x124)]>0x1388)return'[minified\x20file]\x20'+_0x219c40[_0x580add(0x124)][_0x580add(0x151)]()+'\x20chars\x20across\x20'+_0x9e811e[_0x580add(0x124)]+_0x580add(0x135);return null;}catch{return null;}}function filterJsonMinify(_0x30d80d){const _0x4da59e=a0_0x3256c1;try{const _0x20a27b=_0x30d80d[_0x4da59e(0x111)]();if(!_0x20a27b[_0x4da59e(0x12e)]('{')&&!_0x20a27b[_0x4da59e(0x12e)]('['))return null;const _0x486226=_0x20a27b[_0x4da59e(0x116)]('\x0a');if(_0x486226[_0x4da59e(0x124)]<=0x14)return null;const _0x1be5e6=JSON['parse'](_0x20a27b),_0x7a108b=JSON[_0x4da59e(0x105)](_0x1be5e6);if(_0x7a108b['length']<_0x20a27b['length'])return _0x7a108b;return null;}catch{return null;}}function filterLs(_0xcef9db){const _0x3aff8c=a0_0x3256c1,_0x223095=_0xcef9db[_0x3aff8c(0x116)]('\x0a')[_0x3aff8c(0x137)](_0x1dc212=>_0x1dc212[_0x3aff8c(0x111)]()['length']>0x0);if(_0x223095[_0x3aff8c(0x124)]===0x0)return _0x3aff8c(0x145);if(_0x223095['length']<=0x1e)return _0xcef9db[_0x3aff8c(0x111)]();const _0x2eb7cb=[],_0x139883=[];for(const _0x563e9b of _0x223095){const _0xe59226=_0x563e9b['trim']();if(_0xe59226[_0x3aff8c(0x12e)](_0x3aff8c(0x143))||_0xe59226[_0x3aff8c(0x12e)]('d')&&_0xe59226[_0x3aff8c(0x15e)]('..'))continue;_0xe59226[_0x3aff8c(0x108)]('/')||_0xe59226[_0x3aff8c(0x12e)]('d')&&_0xe59226[_0x3aff8c(0x15e)]('\x20')?_0x2eb7cb[_0x3aff8c(0x163)](_0xe59226):_0x139883[_0x3aff8c(0x163)](_0xe59226);}const _0x16b558=[];return _0x2eb7cb['length']>0x0&&(_0x2eb7cb[_0x3aff8c(0x124)]<=0xf?_0x16b558[_0x3aff8c(0x163)](..._0x2eb7cb):(_0x16b558['push'](..._0x2eb7cb[_0x3aff8c(0x165)](0x0,0xa)),_0x16b558[_0x3aff8c(0x163)](_0x3aff8c(0x113)+(_0x2eb7cb[_0x3aff8c(0x124)]-0xa)+_0x3aff8c(0xfe)))),_0x139883[_0x3aff8c(0x124)]>0x0&&(_0x139883[_0x3aff8c(0x124)]<=0x14?_0x16b558[_0x3aff8c(0x163)](..._0x139883):(_0x16b558[_0x3aff8c(0x163)](..._0x139883[_0x3aff8c(0x165)](0x0,0xf)),_0x16b558[_0x3aff8c(0x163)]('...\x20+'+(_0x139883[_0x3aff8c(0x124)]-0xf)+'\x20more\x20files'))),_0x16b558['push']('\x0a('+_0x2eb7cb[_0x3aff8c(0x124)]+_0x3aff8c(0x101)+_0x139883[_0x3aff8c(0x124)]+_0x3aff8c(0xfd)),_0x16b558[_0x3aff8c(0xff)]('\x0a');}function filterTree(_0x36def3){const _0x355138=a0_0x3256c1,_0x2813e4=_0x36def3[_0x355138(0x116)]('\x0a');if(_0x2813e4['length']<=0x32)return _0x36def3[_0x355138(0x111)]();const _0x53da57=[];let _0x9fee55=0x0,_0x280bb3=0x0,_0x397666=0x0;for(const _0x1ff9dd of _0x2813e4){const _0xc7d2bb=_0x1ff9dd['match'](/(\d+)\s+director/),_0x17f980=_0x1ff9dd[_0x355138(0x100)](/(\d+)\s+file/);if(_0xc7d2bb)_0x397666=parseInt(_0xc7d2bb[0x1]);if(_0x17f980)_0x280bb3=parseInt(_0x17f980[0x1]);const _0x5999ca=(_0x1ff9dd[_0x355138(0x100)](/^[│├└\s─]+/)||[''])[0x0][_0x355138(0x124)];_0x5999ca<=0x4&&(_0x53da57[_0x355138(0x163)](_0x1ff9dd),_0x9fee55++);}return _0x2813e4[_0x355138(0x124)]>_0x53da57[_0x355138(0x124)]&&_0x53da57[_0x355138(0x163)](_0x355138(0x12d)+_0x397666+_0x355138(0x101)+_0x280bb3+_0x355138(0x14f)),_0x53da57[_0x355138(0xff)]('\x0a');}function filterCat(_0x41c489,_0x442590=''){const _0x48bb32=a0_0x3256c1,_0x2440d6=extractFilename(_0x442590);try{if(_0x2440d6){const _0x49a1ac=filterLockFile(_0x41c489,_0x2440d6);if(_0x49a1ac)return _0x49a1ac;}const _0x6c2264=filterBinaryOrMinified(_0x41c489,_0x2440d6);if(_0x6c2264)return _0x6c2264;const _0x32973a=filterJsonMinify(_0x41c489);if(_0x32973a)return _0x32973a;}catch{}const _0xaa631c=_0x41c489[_0x48bb32(0x116)]('\x0a');if(_0xaa631c[_0x48bb32(0x124)]<=0x64)return _0x41c489;const _0x5e68b1=[];return _0x5e68b1[_0x48bb32(0x163)](..._0xaa631c[_0x48bb32(0x165)](0x0,0x32)),_0x5e68b1[_0x48bb32(0x163)]('\x0a...\x20['+(_0xaa631c[_0x48bb32(0x124)]-0x50)+_0x48bb32(0x136)),_0x5e68b1[_0x48bb32(0x163)](..._0xaa631c[_0x48bb32(0x165)](-0x1e)),_0x5e68b1[_0x48bb32(0x163)]('\x0a('+_0xaa631c[_0x48bb32(0x124)]+_0x48bb32(0x122)),_0x5e68b1[_0x48bb32(0xff)]('\x0a');}function a0_0x277c(){const _0x31686c=['.wav','.sqlite','3372300lRNcgO','composer.lock','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','.png','.obj','[binary\x20file]\x20','\x20files\x20found\x20across\x20','total\x20','.dylib','Empty\x20directory','\x20chars,\x20type:\x20','6426018uVHkzc','.svg','.zip','.sqlite3','call','.otf','.gif','\x20\x20...\x20+','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.pdf','toLocaleString','.woff','.ttf','default','.mp3','poetry.lock','filterCat',':\x20...\x20(','writable','.pyo','.7z','\x20more\x20matches','\x20more\x20files\x20with\x20matches','includes','.tar.gz','__esModule','charCodeAt','keys','push','prototype','slice','.wasm','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','[lock\x20file]\x20','3161572HtDEwQ','filterTree','.pyc','filterGrep','pnpm-lock.yaml','.jpeg','\x20matches\x20in\x20this\x20file)','200RVeHPk','.min.js','.mp4','.webm','320956IhcDsn','[binary/minified\x20file]\x20','go.sum','\x20files)','\x20more\x20directories','join','match','\x20directories,\x20','package-lock.json','Gemfile.lock','.bz2','stringify','.min.css','6gEwAne','endsWith','.tgz','5VgrhDb','\x20directories','.avi','packages','.bin','.map','__createBinding','trim','cargo.lock','...\x20+','sort','\x20matches\x20across\x20','split','entries','.mov','49237370hdwjUl','yarn.lock','dirname','dependencies','.webp','.dll','No\x20files\x20found','substring','some','\x20lines\x20total)','2831535cEaqDq','length','configurable','45563HHVYVl','.woff2','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.so','parse','.ico','path','\x0a...\x20(','startsWith','/\x20(','toLowerCase','\x20dependencies,\x20','filterLs','.exe','.db','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','\x20lines\x20truncated]\x20...\x0a','filter','basename','create'];a0_0x277c=function(){return _0x31686c;};return a0_0x277c();}function filterGrep(_0x170566){const _0x141bb5=a0_0x3256c1,_0x58a95b=_0x170566[_0x141bb5(0x116)]('\x0a')[_0x141bb5(0x137)](_0x507581=>_0x507581['trim']()[_0x141bb5(0x124)]>0x0);if(_0x58a95b[_0x141bb5(0x124)]===0x0)return'No\x20matches\x20found';if(_0x58a95b[_0x141bb5(0x124)]<=0x32)return _0x170566[_0x141bb5(0x111)]();const _0xefeba={},_0x23c4c9=[];for(const _0xb5997b of _0x58a95b){const _0x18536b=_0xb5997b['indexOf'](':');if(_0x18536b>0x0&&_0x18536b<0xc8){const _0x45cb51=_0xb5997b[_0x141bb5(0x120)](0x0,_0x18536b);if(_0x45cb51['includes']('/')||_0x45cb51['includes']('\x5c')||_0x45cb51[_0x141bb5(0x15e)]('.')){if(!_0xefeba[_0x45cb51])_0xefeba[_0x45cb51]=[];_0xefeba[_0x45cb51]['push'](_0xb5997b[_0x141bb5(0x120)](_0x18536b+0x1)[_0x141bb5(0x111)]());continue;}}_0x23c4c9[_0x141bb5(0x163)](_0xb5997b);}const _0x39e3fe=[],_0x595b9f=Object[_0x141bb5(0x162)](_0xefeba);if(_0x595b9f['length']>0x0){const _0x49e204=0x14,_0x10a71f=_0x595b9f['slice'](0x0,_0x49e204);for(const _0x12d276 of _0x10a71f){const _0x286429=_0xefeba[_0x12d276];if(_0x286429[_0x141bb5(0x124)]<=0x3)for(const _0x353762 of _0x286429){_0x39e3fe[_0x141bb5(0x163)](_0x12d276+':\x20'+_0x353762);}else _0x39e3fe[_0x141bb5(0x163)](_0x12d276+':\x20'+_0x286429[0x0]),_0x39e3fe[_0x141bb5(0x163)](_0x12d276+_0x141bb5(0x158)+_0x286429[_0x141bb5(0x124)]+_0x141bb5(0x16f));}_0x595b9f['length']>_0x49e204&&_0x39e3fe['push'](_0x141bb5(0x113)+(_0x595b9f['length']-_0x49e204)+_0x141bb5(0x15d));}if(_0x23c4c9[_0x141bb5(0x124)]>0x0){const _0x2647b9=0x1e;_0x39e3fe[_0x141bb5(0x163)](..._0x23c4c9[_0x141bb5(0x165)](0x0,_0x2647b9)),_0x23c4c9[_0x141bb5(0x124)]>_0x2647b9&&_0x39e3fe[_0x141bb5(0x163)](_0x141bb5(0x113)+(_0x23c4c9['length']-_0x2647b9)+_0x141bb5(0x15c));}const _0x358ba2=_0x58a95b['length'];return _0x39e3fe[_0x141bb5(0x163)]('\x0a('+_0x358ba2+_0x141bb5(0x115)+(_0x595b9f[_0x141bb5(0x124)]||'?')+_0x141bb5(0xfd)),_0x39e3fe[_0x141bb5(0xff)]('\x0a');}function filterFind(_0x5dccae){const _0x39dc08=a0_0x3256c1,_0x4c9865=_0x5dccae[_0x39dc08(0x116)]('\x0a')['filter'](_0x780f18=>_0x780f18[_0x39dc08(0x111)]()[_0x39dc08(0x124)]>0x0);if(_0x4c9865[_0x39dc08(0x124)]===0x0)return _0x39dc08(0x11f);if(_0x4c9865[_0x39dc08(0x124)]<=0x32)return _0x5dccae[_0x39dc08(0x111)]();const _0x2f3189={};for(const _0x44925b of _0x4c9865){const _0x2ae297=path[_0x39dc08(0x11b)](_0x44925b[_0x39dc08(0x111)]())||'.';_0x2f3189[_0x2ae297]=(_0x2f3189[_0x2ae297]||0x0)+0x1;}const _0x90bcba=Object[_0x39dc08(0x117)](_0x2f3189)[_0x39dc08(0x114)]((_0x4d9744,_0x21eef2)=>_0x21eef2[0x1]-_0x4d9744[0x1]),_0x5596fb=[_0x4c9865[_0x39dc08(0x124)]+_0x39dc08(0x142)+_0x90bcba[_0x39dc08(0x124)]+_0x39dc08(0x10b),''],_0x29bc8a=0x1e;for(const [_0x4905c2,_0x2bf013]of _0x90bcba[_0x39dc08(0x165)](0x0,_0x29bc8a)){_0x5596fb[_0x39dc08(0x163)]('\x20\x20'+_0x4905c2+_0x39dc08(0x12f)+_0x2bf013+'\x20files)');}return _0x90bcba[_0x39dc08(0x124)]>_0x29bc8a&&_0x5596fb[_0x39dc08(0x163)](_0x39dc08(0x14e)+(_0x90bcba[_0x39dc08(0x124)]-_0x29bc8a)+_0x39dc08(0xfe)),_0x5596fb['join']('\x0a');}
|
package/index.html
CHANGED
|
@@ -525,6 +525,8 @@
|
|
|
525
525
|
<h3 id="modal-command-title">Command Inspector</h3>
|
|
526
526
|
<button class="btn-close" onclick="closeModal()">×</button>
|
|
527
527
|
</div>
|
|
528
|
+
<div id="inspect-info-bar" style="display:none; padding:10px 20px; background:rgba(16,185,129,0.08); border-bottom:1px solid rgba(16,185,129,0.15); font-size:13px; color:#94A3B8; display:flex; gap:20px; flex-wrap:wrap;">
|
|
529
|
+
</div>
|
|
528
530
|
<div class="diff-views">
|
|
529
531
|
<div class="diff-column">
|
|
530
532
|
<div class="diff-title">Raw Command Output</div>
|
|
@@ -799,11 +801,39 @@
|
|
|
799
801
|
}
|
|
800
802
|
}
|
|
801
803
|
|
|
804
|
+
function detectFilterType(raw, compressed, command) {
|
|
805
|
+
const rawLen = raw.length;
|
|
806
|
+
const compLen = compressed.length;
|
|
807
|
+
const pct = rawLen > 0 ? Math.round((1 - compLen / rawLen) * 100) : 0;
|
|
808
|
+
const tags = [];
|
|
809
|
+
|
|
810
|
+
if (compLen < rawLen && rawLen > 100) {
|
|
811
|
+
if (compressed.includes('lock file') || compressed.includes('dependencies'))
|
|
812
|
+
tags.push({ label: 'Lock file detected', color: '#FAC775' });
|
|
813
|
+
else if (compressed.includes('minified') || compressed.includes('binary file') || compressed.includes('not human-readable'))
|
|
814
|
+
tags.push({ label: 'Binary / minified', color: '#F09595' });
|
|
815
|
+
else if (rawLen > 500 && compLen < rawLen * 0.7 && raw.trimStart().startsWith('{'))
|
|
816
|
+
tags.push({ label: 'JSON minified', color: '#85B7EB' });
|
|
817
|
+
else if (compressed.includes('directories') && compressed.includes('files'))
|
|
818
|
+
tags.push({ label: 'Path grouping', color: '#AFA9EC' });
|
|
819
|
+
else if (compressed.includes('[file]') && compressed.includes('+'))
|
|
820
|
+
tags.push({ label: 'Diff condensed', color: '#85B7EB' });
|
|
821
|
+
else if (compressed.includes('lines total') || compressed.includes('lines truncated'))
|
|
822
|
+
tags.push({ label: 'File truncated', color: '#AFA9EC' });
|
|
823
|
+
else if (compressed.includes('* Branch:'))
|
|
824
|
+
tags.push({ label: 'Git status formatted', color: '#5DCAA5' });
|
|
825
|
+
else if (pct > 10)
|
|
826
|
+
tags.push({ label: 'Compressed', color: '#5DCAA5' });
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
return { pct, rawLen, compLen, tags };
|
|
830
|
+
}
|
|
831
|
+
|
|
802
832
|
async function inspectDiff(id, command) {
|
|
803
833
|
try {
|
|
804
834
|
document.getElementById('modal-command-title').innerText = `Inspector: trim ${command}`;
|
|
805
|
-
document.getElementById('diff-raw').innerText = 'Loading
|
|
806
|
-
document.getElementById('diff-comp').innerText = 'Loading
|
|
835
|
+
document.getElementById('diff-raw').innerText = 'Loading...';
|
|
836
|
+
document.getElementById('diff-comp').innerText = 'Loading...';
|
|
807
837
|
document.getElementById('diff-modal').style.display = 'flex';
|
|
808
838
|
|
|
809
839
|
const response = await fetch(`/api/stats/inspect/${id}`);
|
|
@@ -811,6 +841,17 @@
|
|
|
811
841
|
|
|
812
842
|
document.getElementById('diff-raw').innerText = data.raw;
|
|
813
843
|
document.getElementById('diff-comp').innerText = data.compressed;
|
|
844
|
+
|
|
845
|
+
const info = detectFilterType(data.raw, data.compressed, command);
|
|
846
|
+
const bar = document.getElementById('inspect-info-bar');
|
|
847
|
+
let html = `<span>Raw: <strong>${info.rawLen.toLocaleString()}</strong> chars</span>`;
|
|
848
|
+
html += `<span>Compressed: <strong>${info.compLen.toLocaleString()}</strong> chars</span>`;
|
|
849
|
+
html += `<span>Savings: <strong style="color:#10B981">${info.pct}%</strong></span>`;
|
|
850
|
+
info.tags.forEach(t => {
|
|
851
|
+
html += `<span style="background:${t.color}22; color:${t.color}; padding:2px 10px; border-radius:4px; font-size:12px; font-weight:500;">${t.label}</span>`;
|
|
852
|
+
});
|
|
853
|
+
bar.innerHTML = html;
|
|
854
|
+
bar.style.display = 'flex';
|
|
814
855
|
} catch (err) {
|
|
815
856
|
console.error('Failed to load diff logs', err);
|
|
816
857
|
}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x27e515=a0_0x593a;(function(_0x9f42f9,_0x666828){const _0x4afdc9=a0_0x593a,_0x2bf2fd=_0x9f42f9();while(!![]){try{const _0x4ca9d2=parseInt(_0x4afdc9(0x106))/0x1+-parseInt(_0x4afdc9(0x101))/0x2*(-parseInt(_0x4afdc9(0x10a))/0x3)+-parseInt(_0x4afdc9(0x117))/0x4+-parseInt(_0x4afdc9(0x112))/0x5+-parseInt(_0x4afdc9(0x129))/0x6+parseInt(_0x4afdc9(0x111))/0x7*(parseInt(_0x4afdc9(0x102))/0x8)+-parseInt(_0x4afdc9(0x125))/0x9;if(_0x4ca9d2===_0x666828)break;else _0x2bf2fd['push'](_0x2bf2fd['shift']());}catch(_0x17d2fd){_0x2bf2fd['push'](_0x2bf2fd['shift']());}}}(a0_0xdf9c,0x5a331));function a0_0x593a(_0x7d3e13,_0x3dfa9c){const _0xdf9ce5=a0_0xdf9c();return a0_0x593a=function(_0x593a53,_0x3f7316){_0x593a53=_0x593a53-0xf8;let _0x142cf5=_0xdf9ce5[_0x593a53];return _0x142cf5;},a0_0x593a(_0x7d3e13,_0x3dfa9c);}var __createBinding=this&&this[a0_0x27e515(0x123)]||(Object['create']?function(_0x195dec,_0x117e1,_0x1ce832,_0x38a17a){const _0x2852e5=a0_0x27e515;if(_0x38a17a===undefined)_0x38a17a=_0x1ce832;var _0x5c2413=Object[_0x2852e5(0x11a)](_0x117e1,_0x1ce832);(!_0x5c2413||(_0x2852e5(0x113)in _0x5c2413?!_0x117e1[_0x2852e5(0xfd)]:_0x5c2413['writable']||_0x5c2413['configurable']))&&(_0x5c2413={'enumerable':!![],'get':function(){return _0x117e1[_0x1ce832];}}),Object[_0x2852e5(0x11b)](_0x195dec,_0x38a17a,_0x5c2413);}:function(_0x431c82,_0x31e2b4,_0x264faf,_0x2d340e){if(_0x2d340e===undefined)_0x2d340e=_0x264faf;_0x431c82[_0x2d340e]=_0x31e2b4[_0x264faf];}),__setModuleDefault=this&&this[a0_0x27e515(0x100)]||(Object[a0_0x27e515(0x11c)]?function(_0x400d23,_0x610e25){const _0x1ad031=a0_0x27e515;Object['defineProperty'](_0x400d23,_0x1ad031(0x115),{'enumerable':!![],'value':_0x610e25});}:function(_0x598486,_0x5e56a4){const _0x382598=a0_0x27e515;_0x598486[_0x382598(0x115)]=_0x5e56a4;}),__importStar=this&&this[a0_0x27e515(0x105)]||(function(){var _0x5e9813=function(_0x175dbc){const _0x577649=a0_0x593a;return _0x5e9813=Object[_0x577649(0xfe)]||function(_0x460f0b){const _0x2273c8=_0x577649;var _0x351785=[];for(var _0x5428bf in _0x460f0b)if(Object[_0x2273c8(0x11f)]['hasOwnProperty'][_0x2273c8(0x103)](_0x460f0b,_0x5428bf))_0x351785[_0x351785[_0x2273c8(0x11d)]]=_0x5428bf;return _0x351785;},_0x5e9813(_0x175dbc);};return function(_0x16296f){const _0x5a37f2=a0_0x593a;if(_0x16296f&&_0x16296f[_0x5a37f2(0xfd)])return _0x16296f;var _0x5acc97={};if(_0x16296f!=null){for(var _0x494d93=_0x5e9813(_0x16296f),_0x585862=0x0;_0x585862<_0x494d93[_0x5a37f2(0x11d)];_0x585862++)if(_0x494d93[_0x585862]!==_0x5a37f2(0x115))__createBinding(_0x5acc97,_0x16296f,_0x494d93[_0x585862]);}return __setModuleDefault(_0x5acc97,_0x16296f),_0x5acc97;};}());Object[a0_0x27e515(0x11b)](exports,a0_0x27e515(0xfd),{'value':!![]}),exports[a0_0x27e515(0x114)]=runMcpProxy;const child_process_1=require('child_process'),readline=__importStar(require(a0_0x27e515(0x127))),filters_1=require('./filters'),tracker_1=require(a0_0x27e515(0x116));function a0_0xdf9c(){const _0x1a9313=['call','trim','__importStar','464231qaGtzI','result','redaction_enabled','mcp-tool-call','78bdcqGg','text','string','content','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','stringify','stdin','301ODySdv','1282390QNVyFH','get','runMcpProxy','default','./tracker','1183176AxwswS','jsonrpc','pipe','getOwnPropertyDescriptor','defineProperty','create','length','createInterface','prototype','stdout','tracker','exit','__createBinding','write','1695114dSRtxs','inherit','readline','error','182322QhpwiW','message','mcp\x20tool\x20(id:\x20','close','spawn','parse','type','__esModule','getOwnPropertyNames','logExecution','__setModuleDefault','18018eleegj','82232iwSDZI'];a0_0xdf9c=function(){return _0x1a9313;};return a0_0xdf9c();}function runMcpProxy(_0x2d5135,_0x8f822b){const _0x198043=a0_0x27e515,_0x21e4fb=(0x0,child_process_1[_0x198043(0xfa)])(_0x2d5135,_0x8f822b,{'stdio':[_0x198043(0x119),'pipe',_0x198043(0x126)]});process[_0x198043(0x110)][_0x198043(0x119)](_0x21e4fb['stdin']);const _0xf464e1=readline[_0x198043(0x11e)]({'input':_0x21e4fb[_0x198043(0x120)],'terminal':![]});_0xf464e1['on']('line',_0x6520d8=>{const _0x21c263=_0x198043;try{const _0x130e08=JSON[_0x21c263(0xfb)](_0x6520d8);if(_0x130e08&&_0x130e08[_0x21c263(0x118)]==='2.0'&&_0x130e08['id']!==undefined&&_0x130e08[_0x21c263(0x107)]&&Array['isArray'](_0x130e08[_0x21c263(0x107)][_0x21c263(0x10d)])){let _0xe8e944=![];for(const _0x405cb2 of _0x130e08['result'][_0x21c263(0x10d)]){if(_0x405cb2[_0x21c263(0xfc)]===_0x21c263(0x10b)&&typeof _0x405cb2['text']===_0x21c263(0x10c)&&_0x405cb2[_0x21c263(0x10b)][_0x21c263(0x104)]()['length']>0x0){const _0x217c4a=_0x405cb2[_0x21c263(0x10b)],_0x52b641=(0x0,filters_1['compressOutput'])(_0x21c263(0x109),_0x217c4a,'',tracker_1[_0x21c263(0x121)]['getConfig']()[_0x21c263(0x108)]);tracker_1[_0x21c263(0x121)][_0x21c263(0xff)](_0x21c263(0xf8)+_0x130e08['id']+')',_0x217c4a,_0x52b641,0x0),_0x405cb2['text']=_0x52b641,_0xe8e944=!![];}}_0xe8e944?process['stdout'][_0x21c263(0x124)](JSON[_0x21c263(0x10f)](_0x130e08)+'\x0a'):process[_0x21c263(0x120)][_0x21c263(0x124)](_0x6520d8+'\x0a');}else process['stdout']['write'](_0x6520d8+'\x0a');}catch{process[_0x21c263(0x120)]['write'](_0x6520d8+'\x0a');}}),_0x21e4fb['on'](_0x198043(0xf9),_0x509b73=>{const _0x4e750c=_0x198043;process[_0x4e750c(0x122)](_0x509b73||0x0);}),_0x21e4fb['on'](_0x198043(0x128),_0x5e056a=>{const _0x52168e=_0x198043;console['error'](_0x52168e(0x10e)+_0x5e056a[_0x52168e(0x12a)]),process[_0x52168e(0x122)](0x1);});}
|
package/package.json
CHANGED
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x1ba115=a0_0x52c4;(function(_0x208093,_0x423ebc){const _0x36dcce=a0_0x52c4,_0x387efe=_0x208093();while(!![]){try{const _0x146cbe=-parseInt(_0x36dcce(0xf3))/0x1+-parseInt(_0x36dcce(0x100))/0x2*(-parseInt(_0x36dcce(0xf8))/0x3)+parseInt(_0x36dcce(0x101))/0x4+-parseInt(_0x36dcce(0x105))/0x5+parseInt(_0x36dcce(0xf1))/0x6+parseInt(_0x36dcce(0x102))/0x7*(parseInt(_0x36dcce(0xff))/0x8)+-parseInt(_0x36dcce(0xfc))/0x9;if(_0x146cbe===_0x423ebc)break;else _0x387efe['push'](_0x387efe['shift']());}catch(_0x1902af){_0x387efe['push'](_0x387efe['shift']());}}}(a0_0x203b,0xe1c20));Object[a0_0x1ba115(0xf0)](exports,'__esModule',{'value':!![]}),exports[a0_0x1ba115(0xfd)]=exports['Redactor']=void 0x0;function a0_0x203b(){const _0xe92d6b=['redactor','replace','88OhwbFM','1595814BKhXjy','6902636mUQhen','509341pzvzdD','[REDACTED_IP]','loadDefaultRules','2536075vZaSbF','defineProperty','4336746iZhsfi','Redactor','548096bnPxPq','redact','regex','rules','Email\x20Address','3cvRybF','$1:\x20[REDACTED_CREDENTIAL]','[REDACTED_DB_CONNECTION_STRING]','Database\x20Connection\x20String','18600615CmXMOU'];a0_0x203b=function(){return _0xe92d6b;};return a0_0x203b();}function a0_0x52c4(_0x47df46,_0x12cde3){const _0x203bc0=a0_0x203b();return a0_0x52c4=function(_0x52c42c,_0xf032d){_0x52c42c=_0x52c42c-0xf0;let _0x1e450e=_0x203bc0[_0x52c42c];return _0x1e450e;},a0_0x52c4(_0x47df46,_0x12cde3);}class Redactor{[a0_0x1ba115(0xf6)]=[];constructor(){const _0x1a9ae4=a0_0x1ba115;this[_0x1a9ae4(0x104)]();}['loadDefaultRules'](){const _0x12ed91=a0_0x1ba115;this[_0x12ed91(0xf6)]=[{'name':_0x12ed91(0xfb),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x12ed91(0xfa)},{'name':'API\x20Key\x20or\x20Password','regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x12ed91(0xf9)},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x12ed91(0x103)},{'name':_0x12ed91(0xf7),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':'[REDACTED_EMAIL]'}];}[a0_0x1ba115(0xf4)](_0x1f5927){const _0x29816f=a0_0x1ba115;let _0x1643c5=_0x1f5927;for(const _0x4cde90 of this[_0x29816f(0xf6)]){_0x1643c5=_0x1643c5[_0x29816f(0xfe)](_0x4cde90[_0x29816f(0xf5)],_0x4cde90['replacement']);}return _0x1643c5;}}exports[a0_0x1ba115(0xf2)]=Redactor,exports[a0_0x1ba115(0xfd)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x4ee597=a0_0x2742;(function(_0x2339f4,_0x2da179){const _0xb65f8e=a0_0x2742,_0x22e859=_0x2339f4();while(!![]){try{const _0x5e5520=parseInt(_0xb65f8e(0xda))/0x1*(parseInt(_0xb65f8e(0xd3))/0x2)+-parseInt(_0xb65f8e(0xc1))/0x3*(parseInt(_0xb65f8e(0xcb))/0x4)+parseInt(_0xb65f8e(0xd7))/0x5*(-parseInt(_0xb65f8e(0xdb))/0x6)+parseInt(_0xb65f8e(0xd1))/0x7+parseInt(_0xb65f8e(0xb8))/0x8+parseInt(_0xb65f8e(0xc5))/0x9+-parseInt(_0xb65f8e(0xb6))/0xa;if(_0x5e5520===_0x2da179)break;else _0x22e859['push'](_0x22e859['shift']());}catch(_0x19a5c4){_0x22e859['push'](_0x22e859['shift']());}}}(a0_0x2e22,0x8d20d));function a0_0x2e22(){const _0x82a58f=['Compilation\x20Output:\x0a','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','All\x20303\x20tests\x20passed\x20in\x204.22s.','gemini-1-5-pro','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','1684788wJkgxn','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','Test\x20suite\x20run\x20starting...\x0a','__esModule','2287152cUsPHC','test_api.py\x20PASS\x0a','log','added\x201420\x20packages\x20in\x2014s\x0a','logExecution','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','4ZEidVN','Successfully\x20built\x20image.','gpt-4o','repeat','defineProperty','tracker','1535604bHCPCq','pytest\x20tests/app','2onmlCQ','test_auth.py\x20PASS\x0a','TRIMPROMPT_MODEL','./tracker','5JtkpDW','docker\x20build\x20.','Step\x201/10\x20:\x20FROM\x20node:20\x0a','1047247AHKfBj','2238594XkVUxx','9097340UqjCvK','claude-3-opus','7213944sfmJbh'];a0_0x2e22=function(){return _0x82a58f;};return a0_0x2e22();}Object[a0_0x4ee597(0xcf)](exports,a0_0x4ee597(0xc4),{'value':!![]});const tracker_1=require(a0_0x4ee597(0xd6));function a0_0x2742(_0x531128,_0x571efc){const _0x2e2201=a0_0x2e22();return a0_0x2742=function(_0x27421b,_0x2cfbf2){_0x27421b=_0x27421b-0xb6;let _0x183023=_0x2e2201[_0x27421b];return _0x183023;},a0_0x2742(_0x531128,_0x571efc);}console[a0_0x4ee597(0xc7)](a0_0x4ee597(0xbd)),process['env'][a0_0x4ee597(0xd5)]=a0_0x4ee597(0xb7),tracker_1[a0_0x4ee597(0xd0)][a0_0x4ee597(0xc9)]('npm\x20run\x20build',a0_0x4ee597(0xb9)+'[INFO]\x20Building\x20modules...\x0a'+'Optimizing\x20assets...\x0a'+a0_0x4ee597(0xc0)[a0_0x4ee597(0xce)](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process['env']['TRIMPROMPT_MODEL']=a0_0x4ee597(0xcd),tracker_1[a0_0x4ee597(0xd0)]['logExecution'](a0_0x4ee597(0xd2),a0_0x4ee597(0xc3)+a0_0x4ee597(0xd4)+'test_db.py\x20PASS\x0a'+a0_0x4ee597(0xc6)['repeat'](0x12c)+a0_0x4ee597(0xbb),a0_0x4ee597(0xba),0x0),process['env'][a0_0x4ee597(0xd5)]=a0_0x4ee597(0xbc),tracker_1[a0_0x4ee597(0xd0)][a0_0x4ee597(0xc9)](a0_0x4ee597(0xd8),a0_0x4ee597(0xca)+a0_0x4ee597(0xd9)+a0_0x4ee597(0xc2)+a0_0x4ee597(0xbe)+a0_0x4ee597(0xc8)[a0_0x4ee597(0xce)](0x3)+a0_0x4ee597(0xcc),a0_0x4ee597(0xbf),0x0),console[a0_0x4ee597(0xc7)]('Database\x20successfully\x20seeded!');
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x1758bc=a0_0x40f3;(function(_0x411317,_0x184834){const _0x72df36=a0_0x40f3,_0x52f624=_0x411317();while(!![]){try{const _0x1ac1de=-parseInt(_0x72df36(0x1a4))/0x1+parseInt(_0x72df36(0x15e))/0x2*(-parseInt(_0x72df36(0x178))/0x3)+parseInt(_0x72df36(0x16f))/0x4*(-parseInt(_0x72df36(0x197))/0x5)+-parseInt(_0x72df36(0x1b6))/0x6*(parseInt(_0x72df36(0x16c))/0x7)+parseInt(_0x72df36(0x1c3))/0x8*(-parseInt(_0x72df36(0x18a))/0x9)+parseInt(_0x72df36(0x162))/0xa+-parseInt(_0x72df36(0x198))/0xb*(-parseInt(_0x72df36(0x190))/0xc);if(_0x1ac1de===_0x184834)break;else _0x52f624['push'](_0x52f624['shift']());}catch(_0x476356){_0x52f624['push'](_0x52f624['shift']());}}}(a0_0x3386,0xbd346));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1758bc(0x19d)]?function(_0x3134a8,_0x2fc564,_0x229f26,_0x21353c){const _0x417b13=a0_0x1758bc;if(_0x21353c===undefined)_0x21353c=_0x229f26;var _0x1be1cc=Object[_0x417b13(0x167)](_0x2fc564,_0x229f26);(!_0x1be1cc||(_0x417b13(0x18e)in _0x1be1cc?!_0x2fc564[_0x417b13(0x183)]:_0x1be1cc['writable']||_0x1be1cc[_0x417b13(0x179)]))&&(_0x1be1cc={'enumerable':!![],'get':function(){return _0x2fc564[_0x229f26];}}),Object['defineProperty'](_0x3134a8,_0x21353c,_0x1be1cc);}:function(_0x1aec97,_0x14acf0,_0x317b78,_0x1e5250){if(_0x1e5250===undefined)_0x1e5250=_0x317b78;_0x1aec97[_0x1e5250]=_0x14acf0[_0x317b78];}),__setModuleDefault=this&&this[a0_0x1758bc(0x194)]||(Object[a0_0x1758bc(0x19d)]?function(_0x55918a,_0x1381db){const _0x1df4ba=a0_0x1758bc;Object[_0x1df4ba(0x17a)](_0x55918a,_0x1df4ba(0x1d4),{'enumerable':!![],'value':_0x1381db});}:function(_0x3c9319,_0x25ac3e){const _0x7d4aef=a0_0x1758bc;_0x3c9319[_0x7d4aef(0x1d4)]=_0x25ac3e;}),__importStar=this&&this[a0_0x1758bc(0x1d0)]||(function(){var _0x4489fd=function(_0x401c7f){const _0x5e3779=a0_0x40f3;return _0x4489fd=Object[_0x5e3779(0x186)]||function(_0x302e11){const _0x2de767=_0x5e3779;var _0x3898a5=[];for(var _0x1a17ad in _0x302e11)if(Object[_0x2de767(0x1b7)][_0x2de767(0x161)]['call'](_0x302e11,_0x1a17ad))_0x3898a5[_0x3898a5[_0x2de767(0x184)]]=_0x1a17ad;return _0x3898a5;},_0x4489fd(_0x401c7f);};return function(_0x5d8d83){const _0x39f908=a0_0x40f3;if(_0x5d8d83&&_0x5d8d83['__esModule'])return _0x5d8d83;var _0x59b2fd={};if(_0x5d8d83!=null){for(var _0x38c314=_0x4489fd(_0x5d8d83),_0x17b1ed=0x0;_0x17b1ed<_0x38c314[_0x39f908(0x184)];_0x17b1ed++)if(_0x38c314[_0x17b1ed]!=='default')__createBinding(_0x59b2fd,_0x5d8d83,_0x38c314[_0x17b1ed]);}return __setModuleDefault(_0x59b2fd,_0x5d8d83),_0x59b2fd;};}());Object['defineProperty'](exports,a0_0x1758bc(0x183),{'value':!![]}),exports['installShims']=installShims,exports['uninstallShims']=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1758bc(0x1bb))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x1758bc(0x1c8),a0_0x1758bc(0x1d1),a0_0x1758bc(0x19c),a0_0x1758bc(0x171),'rg',a0_0x1758bc(0x16e),a0_0x1758bc(0x15c),'gh',a0_0x1758bc(0x189),a0_0x1758bc(0x1c2),'npm',a0_0x1758bc(0x1c7),'npx','yarn','kubectl','docker',a0_0x1758bc(0x1b3),a0_0x1758bc(0x1ba),a0_0x1758bc(0x1b8),'go'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function a0_0x3386(){const _0x517ecd=['powershell.exe','Failed\x20to\x20install\x20shims:\x20','\x0aexport\x20PATH=\x22','readFileSync','trim','existsSync','\x0a#\x20','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','pytest','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','pwsh','250398fzebPf','prototype','pip3','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','pip','path','\x20\x20set\x20\x22PATH=%PATH:','dirname','\x0a$env:PATH\x20=\x20\x22','\x22\x20set\x20\x22PATH=','\x20-NoProfile\x20-Command\x20\x22','\x20commands.\x0a\x0a','cargo','84152sMgYBS','\x20@args\x20}\x20else\x20{\x20&\x20','.cmd','$PROFILE.CurrentUserCurrentHost','pnpm','tree','push','includes','message',';=%\x22','child_process','\x20\x22$@\x22;\x20fi\x0a','rmdirSync','__importStar','cat','appendFileSync','trim.cmd','default','.bash_profile','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','\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','New-Item\x20-Path\x20\x27','git','powershell\x20-NoProfile\x20-Command\x20\x22','682034FHeNYy','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','execFileSync','hasOwnProperty','15370480fdYmau',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','pipe','unlinkSync','\x20&\x20','getOwnPropertyDescriptor','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','Remove-ItemProperty\x20-Path\x20\x27','execSync','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','42AHdFgK','.zshrc','ruff','4tVVZqq','platform','grep',':$PATH\x22',')\x20else\x20(','@echo\x20off','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','utf8','join','9NSZxDL','configurable','defineProperty','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','\x27,\x20\x27User\x27)','-Command','Set-ItemProperty\x20-Path\x20\x27','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','.profile','writeFileSync','if\x20exist\x20\x22','__esModule','length','npm','getOwnPropertyNames','shims','-NoProfile','glab','117ZtQFjI','\x20%*','some','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','get','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','33555048PWyweT','.trimprompt','env','export\x20PATH=\x22','__setModuleDefault','755','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','6622960DsMWsw','11gzeHFR','homedir','toLowerCase','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','read','create','split','.bashrc','filter','\x20\x20trim\x20','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','mkdirSync','823532KXnYwD','replace','\x20@args\x20}\x0a','win32','Failed\x20to\x20uninstall\x20shims:\x20','ignore','APPDATA'];a0_0x3386=function(){return _0x517ecd;};return a0_0x3386();}function getExecSync(){const _0x2643f2=a0_0x1758bc;return require(_0x2643f2(0x1cd))[_0x2643f2(0x16a)];}function getExecFileSync(){const _0x42851c=a0_0x1758bc;return require('child_process')[_0x42851c(0x160)];}function ensureProfileContains(_0x2cccf9,_0x10d752,_0x14f7d0){const _0x599856=a0_0x1758bc;try{const _0x41c0ff=path[_0x599856(0x1bd)](_0x2cccf9);!fs[_0x599856(0x1b0)](_0x41c0ff)&&fs['mkdirSync'](_0x41c0ff,{'recursive':!![]});if(fs['existsSync'](_0x2cccf9)){const _0xb45ac0=fs[_0x599856(0x1ae)](_0x2cccf9,'utf8');if(_0xb45ac0[_0x599856(0x1ca)](_0x10d752))return;fs[_0x599856(0x1d2)](_0x2cccf9,_0x14f7d0,'utf8');}else fs[_0x599856(0x181)](_0x2cccf9,_0x14f7d0,_0x599856(0x176));}catch{}}function removeProfileBlock(_0xeb2463,_0xfaea34){const _0x54facc=a0_0x1758bc;try{if(!fs[_0x54facc(0x1b0)](_0xeb2463))return;const _0xf3bd31=fs[_0x54facc(0x1ae)](_0xeb2463,_0x54facc(0x176));if(!_0xf3bd31[_0x54facc(0x1ca)](_0xfaea34))return;const _0x35e923=_0xf3bd31['split']('\x0a'),_0x58b820=[];let _0x51a025=![];for(let _0x4d19f6=0x0;_0x4d19f6<_0x35e923[_0x54facc(0x184)];_0x4d19f6++){if(_0x35e923[_0x4d19f6]['includes'](_0xfaea34)){_0x51a025=!![];continue;}if(_0x51a025){_0x51a025=![];continue;}_0x58b820[_0x54facc(0x1c9)](_0x35e923[_0x4d19f6]);}const _0x381054=_0x58b820[_0x54facc(0x177)]('\x0a')[_0x54facc(0x1a5)](/\n{3,}/g,'\x0a\x0a');fs[_0x54facc(0x181)](_0xeb2463,_0x381054,_0x54facc(0x176));}catch{}}function collectPowerShellProfiles(){const _0x1ee638=a0_0x1758bc,_0x4421ce=getExecSync(),_0x539f58=[],_0x27a579=[['powershell',_0x1ee638(0x1c6)],['powershell','$PROFILE.CurrentUserAllHosts']];try{_0x4421ce(_0x1ee638(0x18f),{'stdio':'ignore'}),_0x27a579[_0x1ee638(0x1c9)]([_0x1ee638(0x1b5),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x173ac8,_0x5b83a1]of _0x27a579){try{const _0x42a7cd=_0x4421ce(_0x173ac8+_0x1ee638(0x1c0)+_0x5b83a1+'\x22',{'encoding':'utf8'})[_0x1ee638(0x1af)]();_0x42a7cd&&!_0x539f58[_0x1ee638(0x18c)](_0x4c0a52=>_0x4c0a52['toLowerCase']()===_0x42a7cd[_0x1ee638(0x19a)]())&&_0x539f58[_0x1ee638(0x1c9)](_0x42a7cd);}catch{}}return _0x539f58;}function getBashProfilesWindows(){const _0x2a2dc6=a0_0x1758bc,_0x341d11=os[_0x2a2dc6(0x199)]();return[_0x2a2dc6(0x19f),_0x2a2dc6(0x1d5)]['map'](_0x4d6ed9=>path['join'](_0x341d11,_0x4d6ed9));}function a0_0x40f3(_0x282712,_0x21937c){const _0x338670=a0_0x3386();return a0_0x40f3=function(_0x40f37c,_0x190cca){_0x40f37c=_0x40f37c-0x15c;let _0x2391bb=_0x338670[_0x40f37c];return _0x2391bb;},a0_0x40f3(_0x282712,_0x21937c);}function getBroadcastCommand(){const _0x1403aa=a0_0x1758bc;return _0x1403aa(0x17f);}function installShims(){const _0x5a88eb=a0_0x1758bc,_0x3f4ab9=path[_0x5a88eb(0x177)](os[_0x5a88eb(0x199)](),_0x5a88eb(0x191),'shims');try{!fs[_0x5a88eb(0x1b0)](_0x3f4ab9)&&fs[_0x5a88eb(0x1a3)](_0x3f4ab9,{'recursive':!![]});const _0x431102=os['platform']()==='win32';for(const _0x1ac508 of SHIMMED_COMMANDS){if(_0x431102){const _0x1637de=path[_0x5a88eb(0x177)](_0x3f4ab9,_0x1ac508+_0x5a88eb(0x1c5)),_0x1da052=process[_0x5a88eb(0x192)][_0x5a88eb(0x1aa)]?path[_0x5a88eb(0x177)](process[_0x5a88eb(0x192)]['APPDATA'],_0x5a88eb(0x185)):'',_0x15c4c6=_0x1da052?_0x5a88eb(0x182)+path['join'](_0x1da052,_0x5a88eb(0x1d3))+'\x22':_0x5a88eb(0x1b2),_0x2ce9c9=[_0x5a88eb(0x174),_0x15c4c6+'\x20(',_0x5a88eb(0x1a1)+_0x1ac508+_0x5a88eb(0x18b),_0x5a88eb(0x173),_0x5a88eb(0x1bc)+_0x3f4ab9+_0x5a88eb(0x1cc),'\x20\x20'+_0x1ac508+_0x5a88eb(0x18b),')']['join']('\x0d\x0a')+'\x0d\x0a';fs[_0x5a88eb(0x181)](_0x1637de,_0x2ce9c9,'utf8');const _0x3ce799=path['join'](_0x3f4ab9,_0x1ac508+'.ps1'),_0x3ed521='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0x1ac508+_0x5a88eb(0x1c4)+_0x1ac508+_0x5a88eb(0x1a6);fs[_0x5a88eb(0x181)](_0x3ce799,_0x3ed521,_0x5a88eb(0x176));const _0x13195e=path[_0x5a88eb(0x177)](_0x3f4ab9,_0x1ac508),_0x434e34=_0x3f4ab9[_0x5a88eb(0x1a5)](/\\/g,'/')[_0x5a88eb(0x1a5)](/^([A-Za-z]):/,(_0x40983b,_0x4fa32f)=>'/'+_0x4fa32f[_0x5a88eb(0x19a)]()),_0x42f267='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x1ac508+_0x5a88eb(0x1d6)+_0x434e34+_0x5a88eb(0x163)+_0x1ac508+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x5a88eb(0x181)](_0x13195e,_0x42f267,_0x5a88eb(0x176));}else{const _0x4bc5fd=path[_0x5a88eb(0x177)](_0x3f4ab9,_0x1ac508),_0x1ec10f=_0x5a88eb(0x1b4)+_0x1ac508+_0x5a88eb(0x1d7)+_0x1ac508+_0x5a88eb(0x1ce);fs[_0x5a88eb(0x181)](_0x4bc5fd,_0x1ec10f,_0x5a88eb(0x176)),fs['chmodSync'](_0x4bc5fd,_0x5a88eb(0x195));}}let _0x2919dc=![],_0x2672b8='';if(_0x431102)try{const _0x2d7a68=getExecSync(),_0x2520f4='\x0a#\x20'+PROFILE_MARKER+_0x5a88eb(0x1be)+_0x3f4ab9+';\x22\x20+\x20$env:PATH\x0a',_0x20a0b9=collectPowerShellProfiles();for(const _0x188071 of _0x20a0b9){ensureProfileContains(_0x188071,_0x3f4ab9,_0x2520f4);}try{const _0x56f6e2=getExecFileSync(),_0x46f1c0=_0x5a88eb(0x182)+_0x3f4ab9+_0x5a88eb(0x1bf)+_0x3f4ab9+';%PATH%\x22',_0x13154d='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x5d56c3='';try{const _0x4dfb0b='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x13154d+_0x5a88eb(0x17b);_0x5d56c3=_0x56f6e2(_0x5a88eb(0x1ab),['-NoProfile','-Command',_0x4dfb0b],{'encoding':_0x5a88eb(0x176),'stdio':[_0x5a88eb(0x164),'pipe','ignore']})[_0x5a88eb(0x1af)]();}catch{}if(!_0x5d56c3[_0x5a88eb(0x1ca)](_0x3f4ab9)){const _0x1f3ad2=_0x5d56c3?_0x5d56c3+'\x20&\x20'+_0x46f1c0:_0x46f1c0,_0x1c5725=_0x5a88eb(0x1d8)+_0x13154d+_0x5a88eb(0x1a2)+_0x13154d+_0x5a88eb(0x196)+_0x1f3ad2+'\x27';_0x56f6e2(_0x5a88eb(0x1ab),['-NoProfile',_0x5a88eb(0x17d),_0x1c5725],{'stdio':'ignore'});}}catch{}try{const _0x1986f0=_0x3f4ab9[_0x5a88eb(0x1a5)](/\\/g,'/')[_0x5a88eb(0x1a5)](/^([A-Za-z]):/,(_0x4646e3,_0x256265)=>'/'+_0x256265[_0x5a88eb(0x19a)]()),_0x4aa090=_0x5a88eb(0x1b1)+PROFILE_MARKER+_0x5a88eb(0x1ad)+_0x1986f0+':$PATH\x22\x0a',_0x431bd8=getBashProfilesWindows();let _0x3161e6=![];for(const _0x1e33e4 of _0x431bd8){fs[_0x5a88eb(0x1b0)](_0x1e33e4)&&(ensureProfileContains(_0x1e33e4,_0x1986f0,_0x4aa090),_0x3161e6=!![]);}!_0x3161e6&&ensureProfileContains(_0x431bd8[0x0],_0x1986f0,_0x4aa090);}catch{}const _0xbebe99=_0x5a88eb(0x16b),_0x491722=_0x2d7a68(_0x5a88eb(0x15d)+_0xbebe99+'\x22',{'encoding':_0x5a88eb(0x176),'stdio':[_0x5a88eb(0x164),_0x5a88eb(0x164),_0x5a88eb(0x1a9)]})[_0x5a88eb(0x1af)]();if(!_0x491722[_0x5a88eb(0x1ca)](_0x3f4ab9)){const _0x8e1237=_0x3f4ab9+';'+_0x491722,_0x16d087=_0x8e1237[_0x5a88eb(0x1a5)](/'/g,'\x27\x27'),_0x5a9411='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x16d087+_0x5a88eb(0x17c);_0x2d7a68(_0x5a88eb(0x15d)+_0x5a9411+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x5c1d15=path[_0x5a88eb(0x177)](process[_0x5a88eb(0x192)][_0x5a88eb(0x1aa)]||'',_0x5a88eb(0x185),'trim.ps1');if(fs[_0x5a88eb(0x1b0)](_0x5c1d15))try{fs[_0x5a88eb(0x165)](_0x5c1d15);}catch{}_0x2919dc=!![];}catch(_0x43f097){_0x2672b8=_0x5a88eb(0x18d)+_0x3f4ab9;}else try{const _0x15d0d6=_0x5a88eb(0x193)+_0x3f4ab9+':$PATH\x22\x0a',_0x5e62cb=os[_0x5a88eb(0x199)](),_0x1511dc=[_0x5a88eb(0x19f),'.zshrc',_0x5a88eb(0x1d5),'.profile'];let _0x59f551=![];for(const _0x484a95 of _0x1511dc){const _0x3bf63f=path['join'](_0x5e62cb,_0x484a95);fs[_0x5a88eb(0x1b0)](_0x3bf63f)&&(ensureProfileContains(_0x3bf63f,_0x3f4ab9,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x15d0d6),_0x59f551=!![]);}if(!_0x59f551){const _0x1afd61=path[_0x5a88eb(0x177)](_0x5e62cb,_0x5a88eb(0x19f));ensureProfileContains(_0x1afd61,_0x3f4ab9,_0x5a88eb(0x1b1)+PROFILE_MARKER+'\x0a'+_0x15d0d6);}_0x2919dc=!![];}catch(_0x26dbb3){_0x2672b8=_0x5a88eb(0x15f)+_0x3f4ab9+_0x5a88eb(0x172);}const _0x5d1e95='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS['length']+_0x5a88eb(0x1c1),_0x12c797=_0x2919dc?_0x5d1e95+'[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.':_0x5d1e95+_0x5a88eb(0x19b)+_0x2672b8;return{'success':!![],'pathDir':_0x3f4ab9,'message':_0x12c797};}catch(_0x4edc3f){return{'success':![],'pathDir':_0x3f4ab9,'message':_0x5a88eb(0x1ac)+_0x4edc3f[_0x5a88eb(0x1cb)]};}}function uninstallShims(){const _0x5a85b1=a0_0x1758bc,_0x4586db=path['join'](os[_0x5a85b1(0x199)](),_0x5a85b1(0x191),_0x5a85b1(0x187)),_0x4fd8e2=os[_0x5a85b1(0x170)]()===_0x5a85b1(0x1a7);try{if(_0x4fd8e2){const _0x28c2eb=getExecSync();try{const _0x5889f4=getExecFileSync(),_0xe6714c=_0x5a85b1(0x175),_0x365270='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0xe6714c+_0x5a85b1(0x17b),_0x333807=_0x5889f4('powershell.exe',[_0x5a85b1(0x188),_0x5a85b1(0x17d),_0x365270],{'encoding':'utf8','stdio':[_0x5a85b1(0x164),_0x5a85b1(0x164),_0x5a85b1(0x1a9)]})['trim']();if(_0x333807[_0x5a85b1(0x1ca)](_0x4586db)){const _0x1034b2=_0x333807[_0x5a85b1(0x19e)](_0x5a85b1(0x166))[_0x5a85b1(0x1a0)](_0x4654eb=>!_0x4654eb[_0x5a85b1(0x1ca)](_0x4586db));if(_0x1034b2[_0x5a85b1(0x184)]===0x0){const _0x3dbded=_0x5a85b1(0x169)+_0xe6714c+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue';_0x5889f4(_0x5a85b1(0x1ab),[_0x5a85b1(0x188),_0x5a85b1(0x17d),_0x3dbded],{'stdio':_0x5a85b1(0x1a9)});}else{const _0x25fd47=_0x1034b2[_0x5a85b1(0x177)](_0x5a85b1(0x166)),_0xff452e=_0x5a85b1(0x17e)+_0xe6714c+_0x5a85b1(0x196)+_0x25fd47+'\x27';_0x5889f4(_0x5a85b1(0x1ab),[_0x5a85b1(0x188),_0x5a85b1(0x17d),_0xff452e],{'stdio':_0x5a85b1(0x1a9)});}}}catch{}try{const _0x3ac9f2=collectPowerShellProfiles();for(const _0x57bd2c of _0x3ac9f2){removeProfileBlock(_0x57bd2c,PROFILE_MARKER);}}catch{}try{for(const _0x2bd5ae of getBashProfilesWindows()){removeProfileBlock(_0x2bd5ae,PROFILE_MARKER);}}catch{}try{const _0x1c25c1=_0x5a85b1(0x16b),_0x4cc674=_0x28c2eb('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1c25c1+'\x22',{'encoding':_0x5a85b1(0x176),'stdio':[_0x5a85b1(0x164),_0x5a85b1(0x164),_0x5a85b1(0x1a9)]})[_0x5a85b1(0x1af)]();if(_0x4cc674[_0x5a85b1(0x1ca)](_0x4586db)){const _0x1e5f9d=_0x4cc674['split'](';')['filter'](_0x4da931=>_0x4da931[_0x5a85b1(0x1af)]()['toLowerCase']()!==_0x4586db[_0x5a85b1(0x19a)]())['join'](';'),_0x5956fa=_0x1e5f9d['replace'](/'/g,'\x27\x27'),_0x5d5c03=_0x5a85b1(0x1b9)+_0x5956fa+'\x27,\x20\x27User\x27)';_0x28c2eb(_0x5a85b1(0x15d)+_0x5d5c03+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x5a85b1(0x1a9)});}}catch{}}else{const _0x420ad3=os[_0x5a85b1(0x199)](),_0x15f53a=[_0x5a85b1(0x19f),_0x5a85b1(0x16d),_0x5a85b1(0x1d5),_0x5a85b1(0x180)];for(const _0x40189d of _0x15f53a){removeProfileBlock(path[_0x5a85b1(0x177)](_0x420ad3,_0x40189d),PROFILE_MARKER);}}if(fs[_0x5a85b1(0x1b0)](_0x4586db)){const _0x138b4b=fs['readdirSync'](_0x4586db);for(const _0x1ec76d of _0x138b4b){fs[_0x5a85b1(0x165)](path[_0x5a85b1(0x177)](_0x4586db,_0x1ec76d));}fs[_0x5a85b1(0x1cf)](_0x4586db);}return{'success':!![],'message':_0x5a85b1(0x168)};}catch(_0x4383ed){return{'success':![],'message':_0x5a85b1(0x1a8)+_0x4383ed['message']};}}
|
|
1
|
+
'use strict';const a0_0x870ec9=a0_0xe760;(function(_0x55214e,_0x5ad90a){const _0x487ee2=a0_0xe760,_0x42281d=_0x55214e();while(!![]){try{const _0x90275a=parseInt(_0x487ee2(0x190))/0x1+-parseInt(_0x487ee2(0x15b))/0x2+-parseInt(_0x487ee2(0x187))/0x3+-parseInt(_0x487ee2(0x183))/0x4*(-parseInt(_0x487ee2(0x16b))/0x5)+parseInt(_0x487ee2(0x13f))/0x6+parseInt(_0x487ee2(0x193))/0x7*(parseInt(_0x487ee2(0x142))/0x8)+-parseInt(_0x487ee2(0x18e))/0x9;if(_0x90275a===_0x5ad90a)break;else _0x42281d['push'](_0x42281d['shift']());}catch(_0xa6d329){_0x42281d['push'](_0x42281d['shift']());}}}(a0_0x22af,0x41d64));var __createBinding=this&&this[a0_0x870ec9(0x136)]||(Object[a0_0x870ec9(0x166)]?function(_0x41b25a,_0x184a71,_0x2ebc06,_0xe03afe){const _0x36e094=a0_0x870ec9;if(_0xe03afe===undefined)_0xe03afe=_0x2ebc06;var _0x3af931=Object[_0x36e094(0x17c)](_0x184a71,_0x2ebc06);(!_0x3af931||(_0x36e094(0x13e)in _0x3af931?!_0x184a71['__esModule']:_0x3af931[_0x36e094(0x144)]||_0x3af931['configurable']))&&(_0x3af931={'enumerable':!![],'get':function(){return _0x184a71[_0x2ebc06];}}),Object[_0x36e094(0x180)](_0x41b25a,_0xe03afe,_0x3af931);}:function(_0x4e16fb,_0x12ec29,_0x33dcb9,_0x642841){if(_0x642841===undefined)_0x642841=_0x33dcb9;_0x4e16fb[_0x642841]=_0x12ec29[_0x33dcb9];}),__setModuleDefault=this&&this[a0_0x870ec9(0x160)]||(Object[a0_0x870ec9(0x166)]?function(_0x4de3f8,_0x33bb1c){Object['defineProperty'](_0x4de3f8,'default',{'enumerable':!![],'value':_0x33bb1c});}:function(_0x583b3f,_0x48d297){const _0x163b05=a0_0x870ec9;_0x583b3f[_0x163b05(0x132)]=_0x48d297;}),__importStar=this&&this[a0_0x870ec9(0x143)]||(function(){var _0x2fd0af=function(_0xbfab57){const _0x443627=a0_0xe760;return _0x2fd0af=Object[_0x443627(0x173)]||function(_0x153c86){const _0x5a7630=_0x443627;var _0x19cb87=[];for(var _0x48a92e in _0x153c86)if(Object['prototype'][_0x5a7630(0x172)][_0x5a7630(0x15c)](_0x153c86,_0x48a92e))_0x19cb87[_0x19cb87['length']]=_0x48a92e;return _0x19cb87;},_0x2fd0af(_0xbfab57);};return function(_0x322a27){const _0x101bc8=a0_0xe760;if(_0x322a27&&_0x322a27[_0x101bc8(0x134)])return _0x322a27;var _0x51dd2f={};if(_0x322a27!=null){for(var _0x2210ba=_0x2fd0af(_0x322a27),_0x246da6=0x0;_0x246da6<_0x2210ba[_0x101bc8(0x14f)];_0x246da6++)if(_0x2210ba[_0x246da6]!==_0x101bc8(0x132))__createBinding(_0x51dd2f,_0x322a27,_0x2210ba[_0x246da6]);}return __setModuleDefault(_0x51dd2f,_0x322a27),_0x51dd2f;};}());Object['defineProperty'](exports,a0_0x870ec9(0x134),{'value':!![]}),exports[a0_0x870ec9(0x175)]=installShims,exports[a0_0x870ec9(0x1a6)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x870ec9(0x171))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x870ec9(0x186),a0_0x870ec9(0x188),'read',a0_0x870ec9(0x1a5),'rg','ruff','git','gh',a0_0x870ec9(0x15f),'cargo',a0_0x870ec9(0x184),a0_0x870ec9(0x165),a0_0x870ec9(0x140),a0_0x870ec9(0x162),a0_0x870ec9(0x18f),'docker','pytest',a0_0x870ec9(0x139),a0_0x870ec9(0x151),'go',a0_0x870ec9(0x152)],PROFILE_MARKER=a0_0x870ec9(0x14d);function a0_0xe760(_0x107f54,_0x3330bd){const _0x22afa3=a0_0x22af();return a0_0xe760=function(_0xe760c7,_0x411fcf){_0xe760c7=_0xe760c7-0x131;let _0x5c7b80=_0x22afa3[_0xe760c7];return _0x5c7b80;},a0_0xe760(_0x107f54,_0x3330bd);}function getExecSync(){const _0x24d06f=a0_0x870ec9;return require(_0x24d06f(0x18d))['execSync'];}function a0_0x22af(){const _0x265e82=['hasOwnProperty','getOwnPropertyNames','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','installShims','split','APPDATA','\x20commands.\x0a\x0a','trim.cmd','\x22\x20set\x20\x22PATH=','powershell','getOwnPropertyDescriptor','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','755','defineProperty','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',';\x22\x20+\x20$env:PATH\x0a','32MZjmQq','npm',':$PATH\x22\x0a','tree','1384485ZXgixw','cat','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','env',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','.trimprompt','child_process','2214063lYcusj','kubectl','457084CquylD','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','unlinkSync','66955TBiDYw','pwsh','powershell\x20-NoProfile\x20-Command\x20\x22','Remove-ItemProperty\x20-Path\x20\x27','.zshrc',':$PATH\x22','\x20&\x20','execFileSync','readdirSync','dirname','.bash_profile','platform','-Command','@echo\x20off','replace','push','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',';%PATH%\x22','grep','uninstallShims','-NoProfile','existsSync','default','toLowerCase','__esModule','ignore','__createBinding','\x0a$env:PATH\x20=\x20\x22','pipe','pip','powershell.exe','rmdirSync','message','trim','get','2615076OItyfG','npx','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','376YUMfNX','__importStar','writable','homedir','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','filter','export\x20PATH=\x22','\x20@args\x20}\x20else\x20{\x20&\x20','chmodSync','.ps1','[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.','TrimPrompt\x20Shims\x20PATH','Failed\x20to\x20install\x20shims:\x20','length','\x20\x20trim\x20','pip3','find','.profile','join','$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);','win32','\x20\x22$@\x22;\x20fi\x0a','.bashrc','utf8','readFileSync','933446rRzxnJ','call','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\x20%*','glab','__setModuleDefault','\x27,\x20\x27User\x27)','yarn','$PROFILE.CurrentUserAllHosts','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','pnpm','create','writeFileSync','map','Failed\x20to\x20uninstall\x20shims:\x20','if\x20exist\x20\x22','63380GfIjha','appendFileSync','\x0a#\x20','includes','mkdirSync','some','path'];a0_0x22af=function(){return _0x265e82;};return a0_0x22af();}function getExecFileSync(){const _0x358e2b=a0_0x870ec9;return require(_0x358e2b(0x18d))[_0x358e2b(0x19a)];}function ensureProfileContains(_0x2b2084,_0xe1eec6,_0x3e05a7){const _0x5f4dfa=a0_0x870ec9;try{const _0x114ef0=path[_0x5f4dfa(0x19c)](_0x2b2084);!fs[_0x5f4dfa(0x131)](_0x114ef0)&&fs[_0x5f4dfa(0x16f)](_0x114ef0,{'recursive':!![]});if(fs[_0x5f4dfa(0x131)](_0x2b2084)){const _0x3d1704=fs[_0x5f4dfa(0x15a)](_0x2b2084,_0x5f4dfa(0x159));if(_0x3d1704['includes'](_0xe1eec6))return;fs[_0x5f4dfa(0x16c)](_0x2b2084,_0x3e05a7,_0x5f4dfa(0x159));}else fs[_0x5f4dfa(0x167)](_0x2b2084,_0x3e05a7,'utf8');}catch{}}function removeProfileBlock(_0x3e12bb,_0x460a71){const _0xb02d26=a0_0x870ec9;try{if(!fs[_0xb02d26(0x131)](_0x3e12bb))return;const _0x5f1982=fs['readFileSync'](_0x3e12bb,_0xb02d26(0x159));if(!_0x5f1982['includes'](_0x460a71))return;const _0xcbe420=_0x5f1982[_0xb02d26(0x176)]('\x0a'),_0x2b195a=[];let _0x3b396f=![];for(let _0x38d467=0x0;_0x38d467<_0xcbe420[_0xb02d26(0x14f)];_0x38d467++){if(_0xcbe420[_0x38d467][_0xb02d26(0x16e)](_0x460a71)){_0x3b396f=!![];continue;}if(_0x3b396f){_0x3b396f=![];continue;}_0x2b195a[_0xb02d26(0x1a2)](_0xcbe420[_0x38d467]);}const _0x184e16=_0x2b195a[_0xb02d26(0x154)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0xb02d26(0x167)](_0x3e12bb,_0x184e16,'utf8');}catch{}}function collectPowerShellProfiles(){const _0x296abc=a0_0x870ec9,_0x28f251=getExecSync(),_0x3a6bef=[],_0x2c8b45=[[_0x296abc(0x17b),'$PROFILE.CurrentUserCurrentHost'],[_0x296abc(0x17b),_0x296abc(0x163)]];try{_0x28f251(_0x296abc(0x1a3),{'stdio':_0x296abc(0x135)}),_0x2c8b45[_0x296abc(0x1a2)]([_0x296abc(0x194),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x3d43be,_0x2dbccf]of _0x2c8b45){try{const _0x303c56=_0x28f251(_0x3d43be+'\x20-NoProfile\x20-Command\x20\x22'+_0x2dbccf+'\x22',{'encoding':_0x296abc(0x159)})[_0x296abc(0x13d)]();_0x303c56&&!_0x3a6bef[_0x296abc(0x170)](_0x5acc45=>_0x5acc45[_0x296abc(0x133)]()===_0x303c56[_0x296abc(0x133)]())&&_0x3a6bef[_0x296abc(0x1a2)](_0x303c56);}catch{}}return _0x3a6bef;}function getBashProfilesWindows(){const _0xfcf9c=a0_0x870ec9,_0xc27a7=os[_0xfcf9c(0x145)]();return['.bashrc',_0xfcf9c(0x19d)][_0xfcf9c(0x168)](_0x325a48=>path[_0xfcf9c(0x154)](_0xc27a7,_0x325a48));}function getBroadcastCommand(){const _0x346bb3=a0_0x870ec9;return _0x346bb3(0x155);}function installShims(){const _0x23b424=a0_0x870ec9,_0x1cb80e=path[_0x23b424(0x154)](os[_0x23b424(0x145)](),_0x23b424(0x18c),'shims');try{!fs[_0x23b424(0x131)](_0x1cb80e)&&fs['mkdirSync'](_0x1cb80e,{'recursive':!![]});const _0x1114cb=os[_0x23b424(0x19e)]()===_0x23b424(0x156);for(const _0x24cb39 of SHIMMED_COMMANDS){if(_0x1114cb){const _0xb61c1b=path['join'](_0x1cb80e,_0x24cb39+'.cmd'),_0x278381=process[_0x23b424(0x18a)][_0x23b424(0x177)]?path[_0x23b424(0x154)](process['env'][_0x23b424(0x177)],_0x23b424(0x184)):'',_0x4ae98e=_0x278381?'if\x20exist\x20\x22'+path[_0x23b424(0x154)](_0x278381,_0x23b424(0x179))+'\x22':_0x23b424(0x17d),_0x24a0ce=[_0x23b424(0x1a0),_0x4ae98e+'\x20(',_0x23b424(0x150)+_0x24cb39+'\x20%*',')\x20else\x20(','\x20\x20set\x20\x22PATH=%PATH:'+_0x1cb80e+';=%\x22','\x20\x20'+_0x24cb39+_0x23b424(0x15e),')']['join']('\x0d\x0a')+'\x0d\x0a';fs[_0x23b424(0x167)](_0xb61c1b,_0x24a0ce,_0x23b424(0x159));const _0x35269e=path[_0x23b424(0x154)](_0x1cb80e,_0x24cb39+_0x23b424(0x14b)),_0xc04b94='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0x24cb39+_0x23b424(0x149)+_0x24cb39+'\x20@args\x20}\x0a';fs[_0x23b424(0x167)](_0x35269e,_0xc04b94,_0x23b424(0x159));const _0x11cc02=path[_0x23b424(0x154)](_0x1cb80e,_0x24cb39),_0x5e20fe=_0x1cb80e[_0x23b424(0x1a1)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x1825e5,_0x164422)=>'/'+_0x164422['toLowerCase']()),_0x5522bf=_0x23b424(0x174)+_0x24cb39+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|'+_0x5e20fe+_0x23b424(0x18b)+_0x24cb39+_0x23b424(0x157);fs['writeFileSync'](_0x11cc02,_0x5522bf,_0x23b424(0x159));}else{const _0x2ae4fe=path['join'](_0x1cb80e,_0x24cb39),_0x374586=_0x23b424(0x174)+_0x24cb39+'\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'+_0x24cb39+_0x23b424(0x157);fs[_0x23b424(0x167)](_0x2ae4fe,_0x374586,_0x23b424(0x159)),fs[_0x23b424(0x14a)](_0x2ae4fe,_0x23b424(0x17f));}}let _0x1de45d=![],_0x28ef0d='';if(_0x1114cb)try{const _0x4b30cf=getExecSync(),_0x587bc2='\x0a#\x20'+PROFILE_MARKER+_0x23b424(0x137)+_0x1cb80e+_0x23b424(0x182),_0x1bfe2f=collectPowerShellProfiles();for(const _0x3f7ecb of _0x1bfe2f){ensureProfileContains(_0x3f7ecb,_0x1cb80e,_0x587bc2);}try{const _0x54d733=getExecFileSync(),_0x2df779=_0x23b424(0x16a)+_0x1cb80e+_0x23b424(0x17a)+_0x1cb80e+_0x23b424(0x1a4),_0x37891f=_0x23b424(0x191);let _0x8fd7='';try{const _0x85471=_0x23b424(0x164)+_0x37891f+_0x23b424(0x181);_0x8fd7=_0x54d733(_0x23b424(0x13a),[_0x23b424(0x1a7),_0x23b424(0x19f),_0x85471],{'encoding':'utf8','stdio':[_0x23b424(0x138),'pipe',_0x23b424(0x135)]})[_0x23b424(0x13d)]();}catch{}if(!_0x8fd7['includes'](_0x1cb80e)){const _0x268b9e=_0x8fd7?_0x8fd7+'\x20&\x20'+_0x2df779:_0x2df779,_0x19ea3c='New-Item\x20-Path\x20\x27'+_0x37891f+_0x23b424(0x141)+_0x37891f+_0x23b424(0x15d)+_0x268b9e+'\x27';_0x54d733(_0x23b424(0x13a),[_0x23b424(0x1a7),_0x23b424(0x19f),_0x19ea3c],{'stdio':'ignore'});}}catch{}try{const _0x528736=_0x1cb80e[_0x23b424(0x1a1)](/\\/g,'/')[_0x23b424(0x1a1)](/^([A-Za-z]):/,(_0x52b752,_0x418abc)=>'/'+_0x418abc[_0x23b424(0x133)]()),_0x16f8ce=_0x23b424(0x16d)+PROFILE_MARKER+'\x0aexport\x20PATH=\x22'+_0x528736+_0x23b424(0x185),_0x48c6c5=getBashProfilesWindows();let _0x376e51=![];for(const _0x1046bc of _0x48c6c5){fs[_0x23b424(0x131)](_0x1046bc)&&(ensureProfileContains(_0x1046bc,_0x528736,_0x16f8ce),_0x376e51=!![]);}!_0x376e51&&ensureProfileContains(_0x48c6c5[0x0],_0x528736,_0x16f8ce);}catch{}const _0x4bb40b=_0x23b424(0x189),_0x30beca=_0x4b30cf(_0x23b424(0x195)+_0x4bb40b+'\x22',{'encoding':_0x23b424(0x159),'stdio':[_0x23b424(0x138),_0x23b424(0x138),'ignore']})[_0x23b424(0x13d)]();if(!_0x30beca[_0x23b424(0x16e)](_0x1cb80e)){const _0x2b387a=_0x1cb80e+';'+_0x30beca,_0x9aedb=_0x2b387a[_0x23b424(0x1a1)](/'/g,'\x27\x27'),_0x161025='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x9aedb+'\x27,\x20\x27User\x27)';_0x4b30cf(_0x23b424(0x195)+_0x161025+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x23b424(0x135)});}const _0xdd6a05=path[_0x23b424(0x154)](process[_0x23b424(0x18a)][_0x23b424(0x177)]||'','npm','trim.ps1');if(fs[_0x23b424(0x131)](_0xdd6a05))try{fs[_0x23b424(0x192)](_0xdd6a05);}catch{}_0x1de45d=!![];}catch(_0xb09b89){_0x28ef0d='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x1cb80e;}else try{const _0x450607=_0x23b424(0x148)+_0x1cb80e+':$PATH\x22\x0a',_0x45187d=os[_0x23b424(0x145)](),_0x3e00a8=[_0x23b424(0x158),_0x23b424(0x197),_0x23b424(0x19d),_0x23b424(0x153)];let _0x209447=![];for(const _0x328263 of _0x3e00a8){const _0x1bf547=path['join'](_0x45187d,_0x328263);fs['existsSync'](_0x1bf547)&&(ensureProfileContains(_0x1bf547,_0x1cb80e,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x450607),_0x209447=!![]);}if(!_0x209447){const _0x4cd083=path[_0x23b424(0x154)](_0x45187d,_0x23b424(0x158));ensureProfileContains(_0x4cd083,_0x1cb80e,_0x23b424(0x16d)+PROFILE_MARKER+'\x0a'+_0x450607);}_0x1de45d=!![];}catch(_0x305686){_0x28ef0d=_0x23b424(0x17e)+_0x1cb80e+_0x23b424(0x198);}const _0x4aed0e='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x23b424(0x14f)]+_0x23b424(0x178),_0x1e2e16=_0x1de45d?_0x4aed0e+_0x23b424(0x14c):_0x4aed0e+_0x23b424(0x146)+_0x28ef0d;return{'success':!![],'pathDir':_0x1cb80e,'message':_0x1e2e16};}catch(_0x15ec90){return{'success':![],'pathDir':_0x1cb80e,'message':_0x23b424(0x14e)+_0x15ec90[_0x23b424(0x13c)]};}}function uninstallShims(){const _0x1e4da0=a0_0x870ec9,_0x175269=path['join'](os[_0x1e4da0(0x145)](),_0x1e4da0(0x18c),'shims'),_0x1370d3=os[_0x1e4da0(0x19e)]()==='win32';try{if(_0x1370d3){const _0x20a48e=getExecSync();try{const _0x24cbde=getExecFileSync(),_0x32cc02='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x5499d3=_0x1e4da0(0x164)+_0x32cc02+_0x1e4da0(0x181),_0x5fcaf4=_0x24cbde(_0x1e4da0(0x13a),[_0x1e4da0(0x1a7),_0x1e4da0(0x19f),_0x5499d3],{'encoding':_0x1e4da0(0x159),'stdio':[_0x1e4da0(0x138),_0x1e4da0(0x138),_0x1e4da0(0x135)]})[_0x1e4da0(0x13d)]();if(_0x5fcaf4[_0x1e4da0(0x16e)](_0x175269)){const _0x21d402=_0x5fcaf4[_0x1e4da0(0x176)](_0x1e4da0(0x199))[_0x1e4da0(0x147)](_0x39b101=>!_0x39b101[_0x1e4da0(0x16e)](_0x175269));if(_0x21d402[_0x1e4da0(0x14f)]===0x0){const _0x7f14c7=_0x1e4da0(0x196)+_0x32cc02+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue';_0x24cbde('powershell.exe',[_0x1e4da0(0x1a7),_0x1e4da0(0x19f),_0x7f14c7],{'stdio':_0x1e4da0(0x135)});}else{const _0x4480ef=_0x21d402[_0x1e4da0(0x154)]('\x20&\x20'),_0x48d286='Set-ItemProperty\x20-Path\x20\x27'+_0x32cc02+_0x1e4da0(0x15d)+_0x4480ef+'\x27';_0x24cbde(_0x1e4da0(0x13a),[_0x1e4da0(0x1a7),'-Command',_0x48d286],{'stdio':_0x1e4da0(0x135)});}}}catch{}try{const _0x38afc9=collectPowerShellProfiles();for(const _0x255f38 of _0x38afc9){removeProfileBlock(_0x255f38,PROFILE_MARKER);}}catch{}try{for(const _0x41db72 of getBashProfilesWindows()){removeProfileBlock(_0x41db72,PROFILE_MARKER);}}catch{}try{const _0x63e178=_0x1e4da0(0x189),_0x20a7e8=_0x20a48e(_0x1e4da0(0x195)+_0x63e178+'\x22',{'encoding':'utf8','stdio':[_0x1e4da0(0x138),_0x1e4da0(0x138),_0x1e4da0(0x135)]})[_0x1e4da0(0x13d)]();if(_0x20a7e8[_0x1e4da0(0x16e)](_0x175269)){const _0x2e1f82=_0x20a7e8['split'](';')['filter'](_0x577a5c=>_0x577a5c[_0x1e4da0(0x13d)]()['toLowerCase']()!==_0x175269[_0x1e4da0(0x133)]())[_0x1e4da0(0x154)](';'),_0x36a5ea=_0x2e1f82[_0x1e4da0(0x1a1)](/'/g,'\x27\x27'),_0x51edae='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x36a5ea+_0x1e4da0(0x161);_0x20a48e(_0x1e4da0(0x195)+_0x51edae+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x1e4da0(0x135)});}}catch{}}else{const _0x508673=os['homedir'](),_0x17b481=['.bashrc',_0x1e4da0(0x197),_0x1e4da0(0x19d),_0x1e4da0(0x153)];for(const _0x5f17b1 of _0x17b481){removeProfileBlock(path[_0x1e4da0(0x154)](_0x508673,_0x5f17b1),PROFILE_MARKER);}}if(fs['existsSync'](_0x175269)){const _0x550af6=fs[_0x1e4da0(0x19b)](_0x175269);for(const _0x151eae of _0x550af6){fs[_0x1e4da0(0x192)](path[_0x1e4da0(0x154)](_0x175269,_0x151eae));}fs[_0x1e4da0(0x13b)](_0x175269);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x112008){return{'success':![],'message':_0x1e4da0(0x169)+_0x112008[_0x1e4da0(0x13c)]};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x28c850=a0_0x146c;(function(_0x128d73,_0x2e1a64){const _0x2f6fa0=a0_0x146c,_0x208783=_0x128d73();while(!![]){try{const _0x44ee6c=parseInt(_0x2f6fa0(0x102))/0x1+parseInt(_0x2f6fa0(0x107))/0x2*(parseInt(_0x2f6fa0(0xfd))/0x3)+parseInt(_0x2f6fa0(0x10c))/0x4+parseInt(_0x2f6fa0(0x106))/0x5+parseInt(_0x2f6fa0(0xf5))/0x6+-parseInt(_0x2f6fa0(0xd4))/0x7+-parseInt(_0x2f6fa0(0xec))/0x8*(parseInt(_0x2f6fa0(0xf1))/0x9);if(_0x44ee6c===_0x2e1a64)break;else _0x208783['push'](_0x208783['shift']());}catch(_0x45a844){_0x208783['push'](_0x208783['shift']());}}}(a0_0x3820,0xb6b82));Object[a0_0x28c850(0xf7)](exports,a0_0x28c850(0xe8),{'value':!![]});const tracker_1=require('./tracker');console['log'](a0_0x28c850(0x103));function a0_0x146c(_0x575fd5,_0x538013){const _0x382095=a0_0x3820();return a0_0x146c=function(_0x146c5b,_0x405c78){_0x146c5b=_0x146c5b-0xd1;let _0x25822c=_0x382095[_0x146c5b];return _0x25822c;},a0_0x146c(_0x575fd5,_0x538013);}const models=['claude-3-5-sonnet','gpt-4o',a0_0x28c850(0x110),a0_0x28c850(0xd3),a0_0x28c850(0xf8),a0_0x28c850(0xfa)],commands=[{'cmd':a0_0x28c850(0xe9),'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_0x28c850(0xe3)](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x28c850(0x105),'raw':a0_0x28c850(0xfe)+a0_0x28c850(0xff)[a0_0x28c850(0xe3)](0x28)+a0_0x28c850(0x10d),'comp':a0_0x28c850(0xdd),'exitCode':0x0},{'cmd':a0_0x28c850(0xd8),'raw':a0_0x28c850(0x10b)+a0_0x28c850(0x111)+a0_0x28c850(0xd5),'comp':a0_0x28c850(0xd1),'exitCode':0x0},{'cmd':a0_0x28c850(0xd6),'raw':a0_0x28c850(0xd9)+'upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a'+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x28c850(0xf3),'comp':a0_0x28c850(0xea),'exitCode':0x0},{'cmd':'kubectl\x20get\x20pods\x20-n\x20production','raw':a0_0x28c850(0x10e)+a0_0x28c850(0x101)+'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_0x28c850(0x108)+a0_0x28c850(0xe1),'comp':a0_0x28c850(0xe4),'exitCode':0x0},{'cmd':a0_0x28c850(0xde),'raw':'Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a'+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+a0_0x28c850(0x104),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':'git\x20log\x20-n\x205','raw':a0_0x28c850(0xf6)+a0_0x28c850(0xf4),'comp':a0_0x28c850(0xef),'exitCode':0x0},{'cmd':a0_0x28c850(0xe2),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x28c850(0xf0)+a0_0x28c850(0xdc),'comp':a0_0x28c850(0xe5),'exitCode':0x0}],startTime=Date[a0_0x28c850(0xf2)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x28c850(0xeb)]],commandItem=commands[Math['floor'](Math[a0_0x28c850(0xd2)]()*commands[a0_0x28c850(0xeb)])];process[a0_0x28c850(0xdb)]['TRIMPROMPT_MODEL']=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x28c850(0x10a)](),log=tracker_1[a0_0x28c850(0xfc)][a0_0x28c850(0xe6)](commandItem[a0_0x28c850(0x109)],commandItem['raw'],commandItem['comp'],commandItem[a0_0x28c850(0xf9)]),logs=tracker_1[a0_0x28c850(0xfc)][a0_0x28c850(0xed)]();logs[a0_0x28c850(0xeb)]>0x0&&(logs[logs[a0_0x28c850(0xeb)]-0x1][a0_0x28c850(0xfb)]=timestamp,require('fs')[a0_0x28c850(0x10f)](require('path')[a0_0x28c850(0xdf)](require('os')[a0_0x28c850(0xe0)](),'.trimprompt',a0_0x28c850(0xda)),JSON[a0_0x28c850(0xee)](logs,null,0x2),a0_0x28c850(0x100)));}console[a0_0x28c850(0xd7)](a0_0x28c850(0xe7));function a0_0x3820(){const _0x39a8e2=['27202408BAFTSO','getLogs','stringify','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','9hVuPBk','now','Completed\x203\x20of\x203\x20assets\x20successfully.','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','2799894zMecBM','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','defineProperty','gemini-1-5-flash','exitCode','claude-3-opus','timestamp','tracker','3468cWcsRP','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','test\x20tests::test_case_','utf8','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','1082953QBvGxQ','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','cargo\x20test','2245935kiWUHh','2020JOIQNr','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','cmd','toISOString','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','4945704GEWlCu','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','writeFileSync','gpt-4o-mini','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','random','gemini-1-5-pro','1778392GqIkUp','found\x200\x20vulnerabilities\x0a','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','log','npm\x20install\x20lodash\x20express\x20uuid\x20react','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','stats.json','env','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','cargo\x20test:\x2045\x20passed,\x200\x20failed.','pip\x20install\x20tensorflow\x20pandas\x20numpy','join','homedir','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','npm\x20run\x20lint','repeat','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','npm\x20run\x20lint:\x20✖\x202\x20warnings','logExecution','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','__esModule','git\x20diff\x20main','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','length'];a0_0x3820=function(){return _0x39a8e2;};return a0_0x3820();}
|