trimprompt 1.0.15 → 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/favicon.png +0 -0
- 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 +44 -2
- package/mcp.js +1 -1
- package/package.json +2 -2
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
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';const
|
|
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_0x208058=a0_0x22d9;function a0_0x5571(){const _0x1b09cd=['split','564NKdGmp','10719GrDtgU','\x20directories,\x20','filter','15170990TBWfLs','\x20more\x20directories','filterTree','\x20lines\x20total)','startsWith','substring','6TzZgkX','\x0a...\x20(','No\x20matches\x20found','\x0a...\x20[','1166469KDqmAj','filterGrep','\x20files)','includes','push','9054801hcVVbf','1130QyFfHg',':\x20...\x20(','indexOf','endsWith','\x20matches\x20across\x20','total\x20','join','defineProperty','\x20more\x20matches','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','slice','match','filterCat','keys','\x20matches\x20in\x20this\x20file)','trim','5336838OEqeth','Empty\x20directory','...\x20+','263608ygEhIl','__esModule','length','8828ujtbJw'];a0_0x5571=function(){return _0x1b09cd;};return a0_0x5571();}(function(_0x3bb89e,_0x108cc2){const _0x2c58bc=a0_0x22d9,_0x2c6dc1=_0x3bb89e();while(!![]){try{const _0x2c241e=-parseInt(_0x2c58bc(0x10d))/0x1+-parseInt(_0x2c58bc(0xff))/0x2*(parseInt(_0x2c58bc(0x100))/0x3)+parseInt(_0x2c58bc(0xfd))/0x4*(-parseInt(_0x2c58bc(0x113))/0x5)+parseInt(_0x2c58bc(0x109))/0x6*(parseInt(_0x2c58bc(0x112))/0x7)+-parseInt(_0x2c58bc(0xfa))/0x8+parseInt(_0x2c58bc(0xf7))/0x9+parseInt(_0x2c58bc(0x103))/0xa;if(_0x2c241e===_0x108cc2)break;else _0x2c6dc1['push'](_0x2c6dc1['shift']());}catch(_0x14776b){_0x2c6dc1['push'](_0x2c6dc1['shift']());}}}(a0_0x5571,0xaa5ec));Object[a0_0x208058(0x11a)](exports,a0_0x208058(0xfb),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x208058(0x105)]=filterTree,exports[a0_0x208058(0x11f)]=filterCat,exports[a0_0x208058(0x10e)]=filterGrep;function a0_0x22d9(_0x109f9b,_0x44be4b){_0x109f9b=_0x109f9b-0xf6;const _0x5571f6=a0_0x5571();let _0x22d924=_0x5571f6[_0x109f9b];return _0x22d924;}function filterLs(_0x4ced30){const _0x2fa6aa=a0_0x208058,_0x17e787=_0x4ced30[_0x2fa6aa(0xfe)]('\x0a')[_0x2fa6aa(0x102)](_0x32a489=>_0x32a489[_0x2fa6aa(0xf6)]()[_0x2fa6aa(0xfc)]>0x0);if(_0x17e787[_0x2fa6aa(0xfc)]===0x0)return _0x2fa6aa(0xf8);if(_0x17e787[_0x2fa6aa(0xfc)]<=0x1e)return _0x4ced30['trim']();const _0x82dc0a=[],_0x124f81=[];for(const _0x2cf6b9 of _0x17e787){const _0x8de3c8=_0x2cf6b9[_0x2fa6aa(0xf6)]();if(_0x8de3c8['startsWith'](_0x2fa6aa(0x118))||_0x8de3c8[_0x2fa6aa(0x107)]('d')&&_0x8de3c8[_0x2fa6aa(0x110)]('..'))continue;_0x8de3c8[_0x2fa6aa(0x116)]('/')||_0x8de3c8[_0x2fa6aa(0x107)]('d')&&_0x8de3c8['includes']('\x20')?_0x82dc0a[_0x2fa6aa(0x111)](_0x8de3c8):_0x124f81[_0x2fa6aa(0x111)](_0x8de3c8);}const _0x31bad7=[];return _0x82dc0a[_0x2fa6aa(0xfc)]>0x0&&(_0x82dc0a[_0x2fa6aa(0xfc)]<=0xf?_0x31bad7['push'](..._0x82dc0a):(_0x31bad7['push'](..._0x82dc0a[_0x2fa6aa(0x11d)](0x0,0xa)),_0x31bad7[_0x2fa6aa(0x111)](_0x2fa6aa(0xf9)+(_0x82dc0a[_0x2fa6aa(0xfc)]-0xa)+_0x2fa6aa(0x104)))),_0x124f81[_0x2fa6aa(0xfc)]>0x0&&(_0x124f81[_0x2fa6aa(0xfc)]<=0x14?_0x31bad7['push'](..._0x124f81):(_0x31bad7['push'](..._0x124f81['slice'](0x0,0xf)),_0x31bad7[_0x2fa6aa(0x111)](_0x2fa6aa(0xf9)+(_0x124f81[_0x2fa6aa(0xfc)]-0xf)+'\x20more\x20files'))),_0x31bad7[_0x2fa6aa(0x111)]('\x0a('+_0x82dc0a[_0x2fa6aa(0xfc)]+_0x2fa6aa(0x101)+_0x124f81[_0x2fa6aa(0xfc)]+_0x2fa6aa(0x10f)),_0x31bad7[_0x2fa6aa(0x119)]('\x0a');}function filterTree(_0x188d59){const _0x284d25=a0_0x208058,_0x2b988e=_0x188d59[_0x284d25(0xfe)]('\x0a');if(_0x2b988e[_0x284d25(0xfc)]<=0x32)return _0x188d59['trim']();const _0x31eeff=[];let _0x473121=0x0,_0x3b0c18=0x0,_0x1b57cf=0x0;for(const _0x15994a of _0x2b988e){const _0x4c3b82=_0x15994a[_0x284d25(0x11e)](/(\d+)\s+director/),_0x5e8aa6=_0x15994a['match'](/(\d+)\s+file/);if(_0x4c3b82)_0x1b57cf=parseInt(_0x4c3b82[0x1]);if(_0x5e8aa6)_0x3b0c18=parseInt(_0x5e8aa6[0x1]);const _0x538e02=(_0x15994a[_0x284d25(0x11e)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x538e02<=0x4&&(_0x31eeff[_0x284d25(0x111)](_0x15994a),_0x473121++);}return _0x2b988e[_0x284d25(0xfc)]>_0x31eeff[_0x284d25(0xfc)]&&_0x31eeff[_0x284d25(0x111)](_0x284d25(0x10a)+_0x1b57cf+'\x20directories,\x20'+_0x3b0c18+_0x284d25(0x11c)),_0x31eeff['join']('\x0a');}function filterCat(_0x13b25e){const _0x1ad28c=a0_0x208058,_0x11e684=_0x13b25e[_0x1ad28c(0xfe)]('\x0a');if(_0x11e684['length']<=0x64)return _0x13b25e;const _0x86e525=[];return _0x86e525[_0x1ad28c(0x111)](..._0x11e684[_0x1ad28c(0x11d)](0x0,0x32)),_0x86e525['push'](_0x1ad28c(0x10c)+(_0x11e684[_0x1ad28c(0xfc)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x86e525[_0x1ad28c(0x111)](..._0x11e684[_0x1ad28c(0x11d)](-0x1e)),_0x86e525['push']('\x0a('+_0x11e684['length']+_0x1ad28c(0x106)),_0x86e525['join']('\x0a');}function filterGrep(_0x9c0aa2){const _0x31399e=a0_0x208058,_0x1749e1=_0x9c0aa2[_0x31399e(0xfe)]('\x0a')['filter'](_0x221c0c=>_0x221c0c[_0x31399e(0xf6)]()[_0x31399e(0xfc)]>0x0);if(_0x1749e1[_0x31399e(0xfc)]===0x0)return _0x31399e(0x10b);if(_0x1749e1[_0x31399e(0xfc)]<=0x32)return _0x9c0aa2[_0x31399e(0xf6)]();const _0x4f87f9={},_0x27c3c6=[];for(const _0x116d74 of _0x1749e1){const _0x24cd4c=_0x116d74[_0x31399e(0x115)](':');if(_0x24cd4c>0x0&&_0x24cd4c<0xc8){const _0x73e8e2=_0x116d74[_0x31399e(0x108)](0x0,_0x24cd4c);if(_0x73e8e2[_0x31399e(0x110)]('/')||_0x73e8e2['includes']('\x5c')||_0x73e8e2[_0x31399e(0x110)]('.')){if(!_0x4f87f9[_0x73e8e2])_0x4f87f9[_0x73e8e2]=[];_0x4f87f9[_0x73e8e2][_0x31399e(0x111)](_0x116d74[_0x31399e(0x108)](_0x24cd4c+0x1)[_0x31399e(0xf6)]());continue;}}_0x27c3c6[_0x31399e(0x111)](_0x116d74);}const _0x258d38=[],_0x4d9e0f=Object[_0x31399e(0x120)](_0x4f87f9);if(_0x4d9e0f[_0x31399e(0xfc)]>0x0){const _0x5b9f57=0x14,_0x3f311f=_0x4d9e0f['slice'](0x0,_0x5b9f57);for(const _0x297556 of _0x3f311f){const _0x3caa9e=_0x4f87f9[_0x297556];if(_0x3caa9e['length']<=0x3)for(const _0x31e1b1 of _0x3caa9e){_0x258d38[_0x31399e(0x111)](_0x297556+':\x20'+_0x31e1b1);}else _0x258d38[_0x31399e(0x111)](_0x297556+':\x20'+_0x3caa9e[0x0]),_0x258d38[_0x31399e(0x111)](_0x297556+_0x31399e(0x114)+_0x3caa9e[_0x31399e(0xfc)]+_0x31399e(0x121));}_0x4d9e0f['length']>_0x5b9f57&&_0x258d38[_0x31399e(0x111)](_0x31399e(0xf9)+(_0x4d9e0f[_0x31399e(0xfc)]-_0x5b9f57)+'\x20more\x20files\x20with\x20matches');}if(_0x27c3c6['length']>0x0){const _0x1af85d=0x1e;_0x258d38[_0x31399e(0x111)](..._0x27c3c6[_0x31399e(0x11d)](0x0,_0x1af85d)),_0x27c3c6[_0x31399e(0xfc)]>_0x1af85d&&_0x258d38[_0x31399e(0x111)](_0x31399e(0xf9)+(_0x27c3c6[_0x31399e(0xfc)]-_0x1af85d)+_0x31399e(0x11b));}const _0x306f97=_0x1749e1[_0x31399e(0xfc)];return _0x258d38[_0x31399e(0x111)]('\x0a('+_0x306f97+_0x31399e(0x117)+(_0x4d9e0f[_0x31399e(0xfc)]||'?')+_0x31399e(0x10f)),_0x258d38[_0x31399e(0x119)]('\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
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>TrimPrompt.ai - Developer Dashboard</title>
|
|
7
|
+
<link rel="icon" type="image/png" href="favicon.png">
|
|
7
8
|
<!-- Outfit & Inter Fonts -->
|
|
8
9
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
10
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
@@ -524,6 +525,8 @@
|
|
|
524
525
|
<h3 id="modal-command-title">Command Inspector</h3>
|
|
525
526
|
<button class="btn-close" onclick="closeModal()">×</button>
|
|
526
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>
|
|
527
530
|
<div class="diff-views">
|
|
528
531
|
<div class="diff-column">
|
|
529
532
|
<div class="diff-title">Raw Command Output</div>
|
|
@@ -798,11 +801,39 @@
|
|
|
798
801
|
}
|
|
799
802
|
}
|
|
800
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
|
+
|
|
801
832
|
async function inspectDiff(id, command) {
|
|
802
833
|
try {
|
|
803
834
|
document.getElementById('modal-command-title').innerText = `Inspector: trim ${command}`;
|
|
804
|
-
document.getElementById('diff-raw').innerText = 'Loading
|
|
805
|
-
document.getElementById('diff-comp').innerText = 'Loading
|
|
835
|
+
document.getElementById('diff-raw').innerText = 'Loading...';
|
|
836
|
+
document.getElementById('diff-comp').innerText = 'Loading...';
|
|
806
837
|
document.getElementById('diff-modal').style.display = 'flex';
|
|
807
838
|
|
|
808
839
|
const response = await fetch(`/api/stats/inspect/${id}`);
|
|
@@ -810,6 +841,17 @@
|
|
|
810
841
|
|
|
811
842
|
document.getElementById('diff-raw').innerText = data.raw;
|
|
812
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';
|
|
813
855
|
} catch (err) {
|
|
814
856
|
console.error('Failed to load diff logs', err);
|
|
815
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trimprompt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18.0.0"
|
|
27
27
|
},
|
|
28
|
-
"license": "
|
|
28
|
+
"license": "Proprietary"
|
|
29
29
|
}
|
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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_0x1d499c=a0_0x2757;(function(_0x97b226,_0x577956){const _0x47617a=a0_0x2757,_0x56ca2f=_0x97b226();while(!![]){try{const _0x50cc09=-parseInt(_0x47617a(0x12b))/0x1+-parseInt(_0x47617a(0x171))/0x2+parseInt(_0x47617a(0x16e))/0x3*(-parseInt(_0x47617a(0x19b))/0x4)+parseInt(_0x47617a(0x162))/0x5+parseInt(_0x47617a(0x138))/0x6*(-parseInt(_0x47617a(0x166))/0x7)+parseInt(_0x47617a(0x131))/0x8+-parseInt(_0x47617a(0x15b))/0x9*(-parseInt(_0x47617a(0x12f))/0xa);if(_0x50cc09===_0x577956)break;else _0x56ca2f['push'](_0x56ca2f['shift']());}catch(_0x360c1d){_0x56ca2f['push'](_0x56ca2f['shift']());}}}(a0_0x570a,0xa25a9));function a0_0x570a(){const _0x3a1b71=['git','\x20-NoProfile\x20-Command\x20\x22','-Command','uninstallShims','\x20\x20trim\x20','Failed\x20to\x20uninstall\x20shims:\x20','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','kubectl','includes','TrimPrompt\x20Shims\x20PATH','Set-ItemProperty\x20-Path\x20\x27','pipe','\x0a$env:PATH\x20=\x20\x22','dirname','[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.','homedir','replace','.cmd','powershell','755','npm','\x20@args\x20}\x0a','call','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','child_process','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','\x20%*','rmdirSync','ignore','New-Item\x20-Path\x20\x27',';\x22\x20+\x20$env:PATH\x0a','trim.ps1','installShims',';%PATH%\x22','appendFileSync',':$PATH\x22\x0a','toLowerCase','108956vViJPb','execSync','$PROFILE.CurrentUserAllHosts','pip','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','prototype','ruff','some','\x20\x22$@\x22;\x20fi\x0a','1148034rritDF','\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','mkdirSync','unlinkSync','11174630QUDfqq','writeFileSync','4003200dDIVhl','path','__createBinding','pip3','readdirSync','tree','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','3606480mNbuSp','\x0aexport\x20PATH=\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','filter','cargo','win32','powershell.exe','.profile','\x27,\x20\x27User\x27)','-NoProfile','.zshrc','.bash_profile','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','\x22\x20set\x20\x22PATH=','pnpm','existsSync','length','split','trim','readFileSync','trim.cmd','Failed\x20to\x20install\x20shims:\x20','default','@echo\x20off','platform','create','message','\x20\x20set\x20\x22PATH=%PATH:',';=%\x22','\x20@args\x20}\x20else\x20{\x20&\x20','chmodSync',':$PATH\x22','.bashrc','export\x20PATH=\x22','npx','9MOewHH','\x20&\x20','join','configurable','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','5999725LQASFR','__esModule','glab','push','7dnbuKc','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','utf8','.trimprompt','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','getOwnPropertyDescriptor','Remove-ItemProperty\x20-Path\x20\x27','if\x20exist\x20\x22','42ZWaaEK','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','grep','44694ZTIXXw','powershell\x20-NoProfile\x20-Command\x20\x22','execFileSync','\x0a#\x20'];a0_0x570a=function(){return _0x3a1b71;};return a0_0x570a();}var __createBinding=this&&this[a0_0x1d499c(0x133)]||(Object[a0_0x1d499c(0x151)]?function(_0x29bc86,_0x54a57d,_0x11660a,_0x3e1bbb){const _0x194e43=a0_0x1d499c;if(_0x3e1bbb===undefined)_0x3e1bbb=_0x11660a;var _0x497475=Object[_0x194e43(0x16b)](_0x54a57d,_0x11660a);(!_0x497475||('get'in _0x497475?!_0x54a57d['__esModule']:_0x497475['writable']||_0x497475[_0x194e43(0x15e)]))&&(_0x497475={'enumerable':!![],'get':function(){return _0x54a57d[_0x11660a];}}),Object['defineProperty'](_0x29bc86,_0x3e1bbb,_0x497475);}:function(_0x26356c,_0x4167c7,_0x3b3aa1,_0x2bcc15){if(_0x2bcc15===undefined)_0x2bcc15=_0x3b3aa1;_0x26356c[_0x2bcc15]=_0x4167c7[_0x3b3aa1];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1d499c(0x151)]?function(_0x18d3da,_0x386be8){const _0x36b6a8=a0_0x1d499c;Object['defineProperty'](_0x18d3da,_0x36b6a8(0x14e),{'enumerable':!![],'value':_0x386be8});}:function(_0x2f6544,_0x5e20ef){const _0x177751=a0_0x1d499c;_0x2f6544[_0x177751(0x14e)]=_0x5e20ef;}),__importStar=this&&this['__importStar']||(function(){var _0x505007=function(_0x5645ea){return _0x505007=Object['getOwnPropertyNames']||function(_0x15fdef){const _0x12c55e=a0_0x2757;var _0x2715dd=[];for(var _0x5211d3 in _0x15fdef)if(Object[_0x12c55e(0x127)]['hasOwnProperty'][_0x12c55e(0x18b)](_0x15fdef,_0x5211d3))_0x2715dd[_0x2715dd[_0x12c55e(0x148)]]=_0x5211d3;return _0x2715dd;},_0x505007(_0x5645ea);};return function(_0x370068){const _0x53f2ce=a0_0x2757;if(_0x370068&&_0x370068[_0x53f2ce(0x163)])return _0x370068;var _0x5e9454={};if(_0x370068!=null){for(var _0x44eb8a=_0x505007(_0x370068),_0x4c3b87=0x0;_0x4c3b87<_0x44eb8a[_0x53f2ce(0x148)];_0x4c3b87++)if(_0x44eb8a[_0x4c3b87]!==_0x53f2ce(0x14e))__createBinding(_0x5e9454,_0x370068,_0x44eb8a[_0x4c3b87]);}return __setModuleDefault(_0x5e9454,_0x370068),_0x5e9454;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1d499c(0x196)]=installShims,exports[a0_0x1d499c(0x178)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1d499c(0x132))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x1d499c(0x136),'cat','read',a0_0x1d499c(0x170),'rg',a0_0x1d499c(0x128),a0_0x1d499c(0x175),'gh',a0_0x1d499c(0x164),a0_0x1d499c(0x13c),a0_0x1d499c(0x189),a0_0x1d499c(0x146),a0_0x1d499c(0x15a),'yarn',a0_0x1d499c(0x17c),'docker','pytest',a0_0x1d499c(0x19e),a0_0x1d499c(0x134),'go'],PROFILE_MARKER=a0_0x1d499c(0x17e);function getExecSync(){const _0x10bd68=a0_0x1d499c;return require(_0x10bd68(0x18d))[_0x10bd68(0x19c)];}function getExecFileSync(){const _0x24223e=a0_0x1d499c;return require(_0x24223e(0x18d))[_0x24223e(0x173)];}function ensureProfileContains(_0x858477,_0x1bd38c,_0x4a873a){const _0xfd8dd0=a0_0x1d499c;try{const _0x4515de=path[_0xfd8dd0(0x182)](_0x858477);!fs[_0xfd8dd0(0x147)](_0x4515de)&&fs[_0xfd8dd0(0x12d)](_0x4515de,{'recursive':!![]});if(fs[_0xfd8dd0(0x147)](_0x858477)){const _0x1189a5=fs[_0xfd8dd0(0x14b)](_0x858477,'utf8');if(_0x1189a5['includes'](_0x1bd38c))return;fs[_0xfd8dd0(0x198)](_0x858477,_0x4a873a,_0xfd8dd0(0x168));}else fs['writeFileSync'](_0x858477,_0x4a873a,'utf8');}catch{}}function removeProfileBlock(_0x5d253d,_0x267761){const _0x7f9056=a0_0x1d499c;try{if(!fs['existsSync'](_0x5d253d))return;const _0x601aa=fs[_0x7f9056(0x14b)](_0x5d253d,_0x7f9056(0x168));if(!_0x601aa[_0x7f9056(0x17d)](_0x267761))return;const _0x218060=_0x601aa[_0x7f9056(0x149)]('\x0a'),_0x375e0b=[];let _0x13e692=![];for(let _0x4f6b7c=0x0;_0x4f6b7c<_0x218060[_0x7f9056(0x148)];_0x4f6b7c++){if(_0x218060[_0x4f6b7c][_0x7f9056(0x17d)](_0x267761)){_0x13e692=!![];continue;}if(_0x13e692){_0x13e692=![];continue;}_0x375e0b['push'](_0x218060[_0x4f6b7c]);}const _0x3346ae=_0x375e0b[_0x7f9056(0x15d)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x5d253d,_0x3346ae,_0x7f9056(0x168));}catch{}}function collectPowerShellProfiles(){const _0x1b0f75=a0_0x1d499c,_0x3c5d80=getExecSync(),_0x41462f=[],_0x2332ac=[[_0x1b0f75(0x187),'$PROFILE.CurrentUserCurrentHost'],[_0x1b0f75(0x187),_0x1b0f75(0x19d)]];try{_0x3c5d80('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x1b0f75(0x192)}),_0x2332ac[_0x1b0f75(0x165)](['pwsh',_0x1b0f75(0x19d)]);}catch{}for(const [_0x52db05,_0x5aa8a4]of _0x2332ac){try{const _0x37705e=_0x3c5d80(_0x52db05+_0x1b0f75(0x176)+_0x5aa8a4+'\x22',{'encoding':_0x1b0f75(0x168)})[_0x1b0f75(0x14a)]();_0x37705e&&!_0x41462f[_0x1b0f75(0x129)](_0x10ac15=>_0x10ac15[_0x1b0f75(0x19a)]()===_0x37705e[_0x1b0f75(0x19a)]())&&_0x41462f['push'](_0x37705e);}catch{}}return _0x41462f;}function a0_0x2757(_0x352c0f,_0x244a41){_0x352c0f=_0x352c0f-0x126;const _0x570a7a=a0_0x570a();let _0x2757d8=_0x570a7a[_0x352c0f];return _0x2757d8;}function getBashProfilesWindows(){const _0x2eddb5=a0_0x1d499c,_0x147c97=os[_0x2eddb5(0x184)]();return[_0x2eddb5(0x158),_0x2eddb5(0x143)]['map'](_0xdb9529=>path[_0x2eddb5(0x15d)](_0x147c97,_0xdb9529));}function getBroadcastCommand(){const _0x5e3a02=a0_0x1d499c;return _0x5e3a02(0x160);}function installShims(){const _0x3428d1=a0_0x1d499c,_0x4f0e4c=path[_0x3428d1(0x15d)](os[_0x3428d1(0x184)](),_0x3428d1(0x169),'shims');try{!fs[_0x3428d1(0x147)](_0x4f0e4c)&&fs[_0x3428d1(0x12d)](_0x4f0e4c,{'recursive':!![]});const _0x1d42aa=os[_0x3428d1(0x150)]()===_0x3428d1(0x13d);for(const _0xa363b5 of SHIMMED_COMMANDS){if(_0x1d42aa){const _0x5c8432=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5+_0x3428d1(0x186)),_0x28f79c=process.env.APPDATA?path[_0x3428d1(0x15d)](process.env.APPDATA,_0x3428d1(0x189)):'',_0x22f7ea=_0x28f79c?_0x3428d1(0x16d)+path['join'](_0x28f79c,_0x3428d1(0x14c))+'\x22':_0x3428d1(0x137),_0x27311f=[_0x3428d1(0x14f),_0x22f7ea+'\x20(',_0x3428d1(0x179)+_0xa363b5+_0x3428d1(0x190),')\x20else\x20(',_0x3428d1(0x153)+_0x4f0e4c+_0x3428d1(0x154),'\x20\x20'+_0xa363b5+_0x3428d1(0x190),')'][_0x3428d1(0x15d)]('\x0d\x0a')+'\x0d\x0a';fs[_0x3428d1(0x130)](_0x5c8432,_0x27311f,_0x3428d1(0x168));const _0x249907=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5+'.ps1'),_0x414a6='if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0xa363b5+_0x3428d1(0x155)+_0xa363b5+_0x3428d1(0x18a);fs[_0x3428d1(0x130)](_0x249907,_0x414a6,_0x3428d1(0x168));const _0x3c8e23=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5),_0x2c50aa=_0x4f0e4c['replace'](/\\/g,'/')[_0x3428d1(0x185)](/^([A-Za-z]):/,(_0x2fb373,_0x1ed05b)=>'/'+_0x1ed05b[_0x3428d1(0x19a)]()),_0x47925d=_0x3428d1(0x167)+_0xa363b5+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|'+_0x2c50aa+_0x3428d1(0x18f)+_0xa363b5+_0x3428d1(0x12a);fs[_0x3428d1(0x130)](_0x3c8e23,_0x47925d,_0x3428d1(0x168));}else{const _0x362895=path[_0x3428d1(0x15d)](_0x4f0e4c,_0xa363b5),_0x51a16d=_0x3428d1(0x167)+_0xa363b5+_0x3428d1(0x12c)+_0xa363b5+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x3428d1(0x130)](_0x362895,_0x51a16d,_0x3428d1(0x168)),fs[_0x3428d1(0x156)](_0x362895,_0x3428d1(0x188));}}let _0x65de31=![],_0x58c406='';if(_0x1d42aa)try{const _0x3999a2=getExecSync(),_0x1b7cb6='\x0a#\x20'+PROFILE_MARKER+_0x3428d1(0x181)+_0x4f0e4c+_0x3428d1(0x194),_0x3f39bf=collectPowerShellProfiles();for(const _0x159080 of _0x3f39bf){ensureProfileContains(_0x159080,_0x4f0e4c,_0x1b7cb6);}try{const _0x727c76=getExecFileSync(),_0x772a0b=_0x3428d1(0x16d)+_0x4f0e4c+_0x3428d1(0x145)+_0x4f0e4c+_0x3428d1(0x197),_0xfeaed1=_0x3428d1(0x161);let _0x54062d='';try{const _0x4865c3='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0xfeaed1+_0x3428d1(0x16f);_0x54062d=_0x727c76('powershell.exe',[_0x3428d1(0x141),_0x3428d1(0x177),_0x4865c3],{'encoding':_0x3428d1(0x168),'stdio':[_0x3428d1(0x180),'pipe',_0x3428d1(0x192)]})[_0x3428d1(0x14a)]();}catch{}if(!_0x54062d['includes'](_0x4f0e4c)){const _0xcef934=_0x54062d?_0x54062d+'\x20&\x20'+_0x772a0b:_0x772a0b,_0x14b1ec=_0x3428d1(0x193)+_0xfeaed1+_0x3428d1(0x144)+_0xfeaed1+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0xcef934+'\x27';_0x727c76(_0x3428d1(0x13e),[_0x3428d1(0x141),'-Command',_0x14b1ec],{'stdio':_0x3428d1(0x192)});}}catch{}try{const _0x5de264=_0x4f0e4c[_0x3428d1(0x185)](/\\/g,'/')[_0x3428d1(0x185)](/^([A-Za-z]):/,(_0x289537,_0x84c599)=>'/'+_0x84c599[_0x3428d1(0x19a)]()),_0x2c808a=_0x3428d1(0x174)+PROFILE_MARKER+_0x3428d1(0x139)+_0x5de264+_0x3428d1(0x199),_0x1bd705=getBashProfilesWindows();let _0x4a6900=![];for(const _0x89da1f of _0x1bd705){fs[_0x3428d1(0x147)](_0x89da1f)&&(ensureProfileContains(_0x89da1f,_0x5de264,_0x2c808a),_0x4a6900=!![]);}!_0x4a6900&&ensureProfileContains(_0x1bd705[0x0],_0x5de264,_0x2c808a);}catch{}const _0x8c7494=_0x3428d1(0x13a),_0x48688f=_0x3999a2('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x8c7494+'\x22',{'encoding':'utf8','stdio':[_0x3428d1(0x180),_0x3428d1(0x180),'ignore']})['trim']();if(!_0x48688f[_0x3428d1(0x17d)](_0x4f0e4c)){const _0xacb964=_0x4f0e4c+';'+_0x48688f,_0x2aa829=_0xacb964[_0x3428d1(0x185)](/'/g,'\x27\x27'),_0x5570f2=_0x3428d1(0x17b)+_0x2aa829+'\x27,\x20\x27User\x27)';_0x3999a2('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x5570f2+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3428d1(0x192)});}const _0x5b2ecc=path[_0x3428d1(0x15d)](process.env.APPDATA||'','npm',_0x3428d1(0x195));if(fs['existsSync'](_0x5b2ecc))try{fs[_0x3428d1(0x12e)](_0x5b2ecc);}catch{}_0x65de31=!![];}catch(_0x1e1ee3){_0x58c406=_0x3428d1(0x126)+_0x4f0e4c;}else try{const _0x204b81=_0x3428d1(0x159)+_0x4f0e4c+_0x3428d1(0x199),_0x287911=os[_0x3428d1(0x184)](),_0x5e769e=[_0x3428d1(0x158),'.zshrc','.bash_profile',_0x3428d1(0x13f)];let _0x560894=![];for(const _0x29f225 of _0x5e769e){const _0x3ab9b8=path['join'](_0x287911,_0x29f225);fs[_0x3428d1(0x147)](_0x3ab9b8)&&(ensureProfileContains(_0x3ab9b8,_0x4f0e4c,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x204b81),_0x560894=!![]);}if(!_0x560894){const _0x3451ed=path[_0x3428d1(0x15d)](_0x287911,_0x3428d1(0x158));ensureProfileContains(_0x3451ed,_0x4f0e4c,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x204b81);}_0x65de31=!![];}catch(_0x4f62aa){_0x58c406=_0x3428d1(0x18e)+_0x4f0e4c+_0x3428d1(0x157);}const _0x541578='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x3428d1(0x148)]+'\x20commands.\x0a\x0a',_0x390506=_0x65de31?_0x541578+_0x3428d1(0x183):_0x541578+_0x3428d1(0x16a)+_0x58c406;return{'success':!![],'pathDir':_0x4f0e4c,'message':_0x390506};}catch(_0x21a20d){return{'success':![],'pathDir':_0x4f0e4c,'message':_0x3428d1(0x14d)+_0x21a20d[_0x3428d1(0x152)]};}}function uninstallShims(){const _0x13fa15=a0_0x1d499c,_0x48ebf5=path[_0x13fa15(0x15d)](os[_0x13fa15(0x184)](),_0x13fa15(0x169),'shims'),_0x1e6085=os[_0x13fa15(0x150)]()===_0x13fa15(0x13d);try{if(_0x1e6085){const _0x196955=getExecSync();try{const _0x33c578=getExecFileSync(),_0xfd6e96='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x4067af='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0xfd6e96+_0x13fa15(0x16f),_0x3a15af=_0x33c578(_0x13fa15(0x13e),[_0x13fa15(0x141),_0x13fa15(0x177),_0x4067af],{'encoding':_0x13fa15(0x168),'stdio':[_0x13fa15(0x180),_0x13fa15(0x180),_0x13fa15(0x192)]})['trim']();if(_0x3a15af[_0x13fa15(0x17d)](_0x48ebf5)){const _0x342ec8=_0x3a15af['split'](_0x13fa15(0x15c))['filter'](_0x1200cd=>!_0x1200cd[_0x13fa15(0x17d)](_0x48ebf5));if(_0x342ec8[_0x13fa15(0x148)]===0x0){const _0x1bb857=_0x13fa15(0x16c)+_0xfd6e96+_0x13fa15(0x15f);_0x33c578(_0x13fa15(0x13e),[_0x13fa15(0x141),'-Command',_0x1bb857],{'stdio':_0x13fa15(0x192)});}else{const _0x259dca=_0x342ec8['join'](_0x13fa15(0x15c)),_0x49a685=_0x13fa15(0x17f)+_0xfd6e96+_0x13fa15(0x18c)+_0x259dca+'\x27';_0x33c578(_0x13fa15(0x13e),[_0x13fa15(0x141),_0x13fa15(0x177),_0x49a685],{'stdio':_0x13fa15(0x192)});}}}catch{}try{const _0x56a024=collectPowerShellProfiles();for(const _0x355fbf of _0x56a024){removeProfileBlock(_0x355fbf,PROFILE_MARKER);}}catch{}try{for(const _0x16c19c of getBashProfilesWindows()){removeProfileBlock(_0x16c19c,PROFILE_MARKER);}}catch{}try{const _0x411e5d=_0x13fa15(0x13a),_0x28fd2e=_0x196955(_0x13fa15(0x172)+_0x411e5d+'\x22',{'encoding':_0x13fa15(0x168),'stdio':[_0x13fa15(0x180),_0x13fa15(0x180),_0x13fa15(0x192)]})[_0x13fa15(0x14a)]();if(_0x28fd2e[_0x13fa15(0x17d)](_0x48ebf5)){const _0x20e243=_0x28fd2e[_0x13fa15(0x149)](';')[_0x13fa15(0x13b)](_0x3c400e=>_0x3c400e[_0x13fa15(0x14a)]()[_0x13fa15(0x19a)]()!==_0x48ebf5[_0x13fa15(0x19a)]())[_0x13fa15(0x15d)](';'),_0x16f62b=_0x20e243[_0x13fa15(0x185)](/'/g,'\x27\x27'),_0x2b666b=_0x13fa15(0x17b)+_0x16f62b+_0x13fa15(0x140);_0x196955(_0x13fa15(0x172)+_0x2b666b+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x13fa15(0x192)});}}catch{}}else{const _0x42a097=os[_0x13fa15(0x184)](),_0x307a1a=['.bashrc',_0x13fa15(0x142),_0x13fa15(0x143),_0x13fa15(0x13f)];for(const _0x3acb37 of _0x307a1a){removeProfileBlock(path['join'](_0x42a097,_0x3acb37),PROFILE_MARKER);}}if(fs[_0x13fa15(0x147)](_0x48ebf5)){const _0x5d6abe=fs[_0x13fa15(0x135)](_0x48ebf5);for(const _0x328532 of _0x5d6abe){fs[_0x13fa15(0x12e)](path[_0x13fa15(0x15d)](_0x48ebf5,_0x328532));}fs[_0x13fa15(0x191)](_0x48ebf5);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x541908){return{'success':![],'message':_0x13fa15(0x17a)+_0x541908[_0x13fa15(0x152)]};}}
|
|
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';const
|
|
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();}
|