trimprompt 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cache.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x567a(){const _0x3ef59c=['1339610KKWoys','audited\x20','removed\x20','\x20failed\x20(','__esModule','3305680vCYOaL','\x20lines\x20of\x20trace\x20details\x20truncated)','\x0aFailures:','match','filterJestVitest','split','up\x20to\x20date','all','startsWith','42ARyDlX','includes','\x20passed','PASS','found\x20','1520064BnaMaD','15276Klljcp','trim','replace','738060nszRvo','length','2521184PaPCXE','filterNpmInstall','\x20\x20...\x20(','164YpVYiu','defineProperty','join','FAIL\x20\x20','NPM:\x20Packages\x20verified/installed\x20successfully','Test\x20Suites:','Test\x20Runner:\x20','push','45867KOLwKj','9bUbBbP'];a0_0x567a=function(){return _0x3ef59c;};return a0_0x567a();}const a0_0x33725b=a0_0x166c;(function(_0x23b9f9,_0x3c1eb2){const _0x4417c2=a0_0x166c,_0x36fda5=_0x23b9f9();while(!![]){try{const _0x4957e1=-parseInt(_0x4417c2(0x167))/0x1*(parseInt(_0x4417c2(0x161))/0x2)+-parseInt(_0x4417c2(0x177))/0x3*(-parseInt(_0x4417c2(0x16f))/0x4)+parseInt(_0x4417c2(0x179))/0x5+parseInt(_0x4417c2(0x166))/0x6+-parseInt(_0x4417c2(0x158))/0x7+parseInt(_0x4417c2(0x16c))/0x8+parseInt(_0x4417c2(0x178))/0x9*(-parseInt(_0x4417c2(0x16a))/0xa);if(_0x4957e1===_0x3c1eb2)break;else _0x36fda5['push'](_0x36fda5['shift']());}catch(_0x4d72ec){_0x36fda5['push'](_0x36fda5['shift']());}}}(a0_0x567a,0x919c5));Object[a0_0x33725b(0x170)](exports,a0_0x33725b(0x157),{'value':!![]}),exports[a0_0x33725b(0x16d)]=filterNpmInstall,exports[a0_0x33725b(0x15c)]=filterJestVitest;function filterNpmInstall(_0x39b915){const _0xa8fd0c=a0_0x33725b,_0x37310e=_0x39b915[_0xa8fd0c(0x169)](/\r/g,'\x0a'),_0x1f8c0e=_0x37310e[_0xa8fd0c(0x15d)]('\x0a'),_0x3da862=[];for(const _0x5cab61 of _0x1f8c0e){const _0x179fc9=_0x5cab61['trim']();(_0x179fc9['includes']('added\x20')||_0x179fc9[_0xa8fd0c(0x162)](_0xa8fd0c(0x155))||_0x179fc9[_0xa8fd0c(0x162)](_0xa8fd0c(0x154))||_0x179fc9['includes'](_0xa8fd0c(0x15e))||_0x179fc9[_0xa8fd0c(0x162)](_0xa8fd0c(0x165)))&&(!_0x179fc9[_0xa8fd0c(0x162)]('%')&&!_0x179fc9[_0xa8fd0c(0x160)]('⠋')&&!_0x179fc9[_0xa8fd0c(0x160)]('⠙')&&_0x3da862[_0xa8fd0c(0x176)](_0x179fc9));}const _0x15fa33=_0x3da862[_0xa8fd0c(0x171)]('\x0a')['trim']();return _0x15fa33['length']>0x0?_0x15fa33:_0xa8fd0c(0x173);}function a0_0x166c(_0x329fbb,_0x169a46){_0x329fbb=_0x329fbb-0x154;const _0x567ac1=a0_0x567a();let _0x166cee=_0x567ac1[_0x329fbb];return _0x166cee;}function filterJestVitest(_0x35774d){const _0x5b4c14=a0_0x33725b,_0x4ac21a=_0x35774d[_0x5b4c14(0x15d)]('\x0a');let _0x575332=0x0,_0x4321e6=0x0,_0x26c941=0x0;const _0x4ea2d7=[];let _0x582e34=![];for(const _0x4d6b52 of _0x4ac21a){const _0x5a0ad6=_0x4d6b52[_0x5b4c14(0x168)]();if(_0x5a0ad6[_0x5b4c14(0x160)]('Tests:')||_0x5a0ad6[_0x5b4c14(0x162)]('Test\x20Files:')){const _0x18104a=_0x5a0ad6[_0x5b4c14(0x15b)](/(\d+)\s+passed/),_0x7891aa=_0x5a0ad6[_0x5b4c14(0x15b)](/(\d+)\s+failed/),_0x4058dd=_0x5a0ad6[_0x5b4c14(0x15b)](/(\d+)\s+total/);if(_0x18104a)_0x575332=parseInt(_0x18104a[0x1]);if(_0x7891aa)_0x4321e6=parseInt(_0x7891aa[0x1]);if(_0x4058dd)_0x26c941=parseInt(_0x4058dd[0x1]);continue;}(_0x5a0ad6[_0x5b4c14(0x160)]('❯')||_0x5a0ad6['startsWith']('●')||_0x5a0ad6[_0x5b4c14(0x160)](_0x5b4c14(0x172)))&&(_0x582e34=!![]),_0x582e34&&(_0x5a0ad6['length']>0x0&&!_0x5a0ad6[_0x5b4c14(0x160)](_0x5b4c14(0x174))&&!_0x5a0ad6[_0x5b4c14(0x160)]('Tests:')&&_0x4ea2d7[_0x5b4c14(0x176)](_0x4d6b52));}if(_0x26c941===0x0&&_0x575332===0x0&&_0x4321e6===0x0){if(_0x35774d['includes'](_0x5b4c14(0x164))&&!_0x35774d[_0x5b4c14(0x162)]('FAIL')){const _0x552e82=_0x35774d['match'](/(\d+)\s+passed/),_0x534acc=_0x552e82?_0x552e82[0x1]:_0x5b4c14(0x15f);return'Test\x20Runner:\x20'+_0x534acc+_0x5b4c14(0x163);}return _0x35774d;}if(_0x4321e6===0x0&&_0x575332>0x0)return _0x5b4c14(0x175)+_0x575332+'\x20passed';const _0x126593=['Test\x20Runner:\x20'+_0x575332+'\x20passed,\x20'+_0x4321e6+_0x5b4c14(0x156)+_0x26c941+'\x20total)'];if(_0x4ea2d7[_0x5b4c14(0x16b)]>0x0){_0x126593['push'](_0x5b4c14(0x15a));const _0x2bf76c=0x19,_0x27f3e4=_0x4ea2d7['slice'](0x0,_0x2bf76c);for(const _0x1f898c of _0x27f3e4){_0x126593[_0x5b4c14(0x176)]('\x20\x20'+_0x1f898c);}_0x4ea2d7['length']>_0x2bf76c&&_0x126593[_0x5b4c14(0x176)](_0x5b4c14(0x16e)+(_0x4ea2d7[_0x5b4c14(0x16b)]-_0x2bf76c)+_0x5b4c14(0x159));}return _0x126593[_0x5b4c14(0x171)]('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x27e4(_0x15fbce,_0x5edf5d){_0x15fbce=_0x15fbce-0x12c;const _0x7e0e28=a0_0x7e0e();let _0x27e4e3=_0x7e0e28[_0x15fbce];return _0x27e4e3;}const a0_0x22cc80=a0_0x27e4;function a0_0x7e0e(){const _0x3882d4=['filterPytest','\x20passed','filter','2IhcGOF','===\x20short\x20test\x20summary\x20info\x20===','===\x20FAILURES\x20===','trim','___','Requirement\x20already\x20satisfied','failed','Using\x20cached','5553268kOkAzm','Collecting','defineProperty','===\x20ERRORS\x20===','\x0aFailures:','startsWith','join','length','4eNpsvJ','Downloading','7722063QgIUyB','\x20\x20\x20\x20','\x20more\x20failures\x20truncated','\x20xfailed','\x20xpassed\x20(warning!)','split','slice','includes','10257216PBijNS','784422oUAZFb','\x20\x20...\x20+','.\x20[FAIL]\x20','\x20failed','===','2094970xkmozF','.py:','\x20\x20\x20\x20...\x20(','\x20lines\x20of\x20stacktrace\x20truncated)','415535ewxluE','push','2329016VRIoYe','replace','match'];a0_0x7e0e=function(){return _0x3882d4;};return a0_0x7e0e();}(function(_0x5099e4,_0x2cebbd){const _0x1c9fd6=a0_0x27e4,_0x75ba76=_0x5099e4();while(!![]){try{const _0x43034b=-parseInt(_0x1c9fd6(0x13a))/0x1+-parseInt(_0x1c9fd6(0x142))/0x2*(-parseInt(_0x1c9fd6(0x131))/0x3)+parseInt(_0x1c9fd6(0x152))/0x4*(-parseInt(_0x1c9fd6(0x136))/0x5)+parseInt(_0x1c9fd6(0x130))/0x6+-parseInt(_0x1c9fd6(0x14a))/0x7+-parseInt(_0x1c9fd6(0x13c))/0x8+parseInt(_0x1c9fd6(0x154))/0x9;if(_0x43034b===_0x2cebbd)break;else _0x75ba76['push'](_0x75ba76['shift']());}catch(_0x5765e0){_0x75ba76['push'](_0x75ba76['shift']());}}}(a0_0x7e0e,0xde2d5));Object[a0_0x22cc80(0x14c)](exports,'__esModule',{'value':!![]}),exports[a0_0x22cc80(0x13f)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x4a7636){const _0x39c97c=a0_0x22cc80,_0x2657ba=_0x4a7636[_0x39c97c(0x12d)]('\x0a');let _0x49bc40=0x0,_0x35a1e0=0x0,_0x3a662a=0x0,_0x4a3082=0x0,_0x180961=0x0;const _0x1b750e=[];let _0x55641b=[],_0x30ae47=![];for(const _0x3cf3d9 of _0x2657ba){const _0x31cc1c=_0x3cf3d9['trim']();if(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x144))||_0x31cc1c['startsWith'](_0x39c97c(0x14d))){_0x30ae47=!![];continue;}else(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x143))||_0x31cc1c[_0x39c97c(0x14f)]('===')&&_0x31cc1c[_0x39c97c(0x12f)]('passed'))&&(_0x30ae47=![],_0x55641b['length']>0x0&&(_0x1b750e[_0x39c97c(0x13b)](_0x55641b),_0x55641b=[]));if(_0x30ae47){if(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x146)))_0x55641b[_0x39c97c(0x151)]>0x0&&(_0x1b750e['push'](_0x55641b),_0x55641b=[]),_0x55641b['push'](_0x31cc1c);else _0x31cc1c['length']>0x0&&_0x55641b['push'](_0x3cf3d9);continue;}if(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x135))&&_0x31cc1c[_0x39c97c(0x12f)]('\x20in\x20')){const _0x3eb241=_0x31cc1c[_0x39c97c(0x13e)](/(\d+)\s+passed/),_0x37f9ac=_0x31cc1c['match'](/(\d+)\s+failed/),_0x2ce58d=_0x31cc1c[_0x39c97c(0x13e)](/(\d+)\s+skipped/),_0x55cfd7=_0x31cc1c['match'](/(\d+)\s+xfailed/),_0x14e81d=_0x31cc1c['match'](/(\d+)\s+xpassed/);if(_0x3eb241)_0x49bc40=parseInt(_0x3eb241[0x1]);if(_0x37f9ac)_0x35a1e0=parseInt(_0x37f9ac[0x1]);if(_0x2ce58d)_0x3a662a=parseInt(_0x2ce58d[0x1]);if(_0x55cfd7)_0x4a3082=parseInt(_0x55cfd7[0x1]);if(_0x14e81d)_0x180961=parseInt(_0x14e81d[0x1]);}}_0x55641b[_0x39c97c(0x151)]>0x0&&_0x1b750e[_0x39c97c(0x13b)](_0x55641b);if(_0x49bc40===0x0&&_0x35a1e0===0x0&&_0x3a662a===0x0&&_0x4a3082===0x0&&_0x180961===0x0){if(_0x4a7636[_0x39c97c(0x12f)]('passed')&&!_0x4a7636['includes'](_0x39c97c(0x148)))return'Pytest:\x20All\x20tests\x20passed';return _0x4a7636;}if(_0x35a1e0===0x0&&_0x49bc40>0x0&&_0x3a662a===0x0&&_0x4a3082===0x0&&_0x180961===0x0)return'Pytest:\x20'+_0x49bc40+_0x39c97c(0x140);const _0x166b0d=[];_0x166b0d[_0x39c97c(0x13b)]('Pytest:\x20'+_0x49bc40+_0x39c97c(0x140));if(_0x35a1e0>0x0)_0x166b0d[_0x39c97c(0x13b)](_0x35a1e0+_0x39c97c(0x134));if(_0x3a662a>0x0)_0x166b0d['push'](_0x3a662a+'\x20skipped');if(_0x4a3082>0x0)_0x166b0d[_0x39c97c(0x13b)](_0x4a3082+_0x39c97c(0x157));if(_0x180961>0x0)_0x166b0d[_0x39c97c(0x13b)](_0x180961+_0x39c97c(0x12c));const _0x338383=[_0x166b0d[_0x39c97c(0x150)](',\x20')];if(_0x1b750e[_0x39c97c(0x151)]>0x0){_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x14e));const _0x7ed080=0x3,_0x11e0d1=_0x1b750e[_0x39c97c(0x12e)](0x0,_0x7ed080);for(let _0x577828=0x0;_0x577828<_0x11e0d1['length'];_0x577828++){const _0x48b571=_0x11e0d1[_0x577828],_0x4770bd=_0x48b571[0x0][_0x39c97c(0x13d)](/_/g,'')[_0x39c97c(0x145)]();_0x338383[_0x39c97c(0x13b)]('\x20\x20'+(_0x577828+0x1)+_0x39c97c(0x133)+_0x4770bd);const _0x11df76=_0x48b571[_0x39c97c(0x12e)](0x1),_0x1b0fab=_0x11df76[_0x39c97c(0x141)](_0x3b7e72=>{const _0x559b8d=_0x39c97c,_0x1e29b5=_0x3b7e72[_0x559b8d(0x145)]();return _0x1e29b5['startsWith']('>')||_0x1e29b5[_0x559b8d(0x14f)]('E\x20\x20\x20')||_0x1e29b5[_0x559b8d(0x12f)](_0x559b8d(0x137))||_0x1e29b5[_0x559b8d(0x12f)]('AssertionError:');});for(const _0x5fc798 of _0x1b0fab[_0x39c97c(0x12e)](0x0,0x8)){_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x155)+_0x5fc798);}_0x1b0fab[_0x39c97c(0x151)]>0x8&&_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x138)+(_0x1b0fab[_0x39c97c(0x151)]-0x8)+_0x39c97c(0x139));}_0x1b750e[_0x39c97c(0x151)]>_0x7ed080&&_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x132)+(_0x1b750e['length']-_0x7ed080)+_0x39c97c(0x156));}return _0x338383[_0x39c97c(0x150)]('\x0a');}function filterPipInstall(_0x4a1299){const _0x3c3dc7=a0_0x22cc80,_0x50bd94=_0x4a1299['split']('\x0a'),_0x2b8e92=[];for(const _0x2e0ce2 of _0x50bd94){const _0x2e0fd2=_0x2e0ce2[_0x3c3dc7(0x145)]();_0x2e0fd2[_0x3c3dc7(0x14f)]('Successfully\x20installed')&&_0x2b8e92['push'](_0x2e0fd2);}if(_0x2b8e92[_0x3c3dc7(0x151)]>0x0)return _0x2b8e92['join']('\x0a');return _0x50bd94[_0x3c3dc7(0x141)](_0xbf4a9e=>{const _0x13e899=_0x3c3dc7,_0x5304db=_0xbf4a9e[_0x13e899(0x145)]();return!_0x5304db[_0x13e899(0x14f)](_0x13e899(0x14b))&&!_0x5304db['startsWith'](_0x13e899(0x153))&&!_0x5304db[_0x13e899(0x12f)](_0x13e899(0x149))&&!_0x5304db[_0x13e899(0x14f)](_0x13e899(0x147));})[_0x3c3dc7(0x150)]('\x0a')[_0x3c3dc7(0x145)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x203d(_0x3b3940,_0x358226){_0x3b3940=_0x3b3940-0x18e;const _0x1bc985=a0_0x1bc9();let _0x203dcb=_0x1bc985[_0x3b3940];return _0x203dcb;}function a0_0x1bc9(){const _0x58bd0f=['\x20failed,\x20','----\x20failures\x20----','left:','failures:','16404MrVpZF','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','panicked','2LzClbn','length','Cargo:\x20','warning[','Cargo\x20test:\x20','match','slice','test\x20result:','Cargo\x20test:\x20all\x20tests\x20passed','\x20more\x20errors','includes','5qvwfpA','\x20errors,\x20','\x20\x20\x20\x20','35VEYFnY','652131RSAgHv','938250PZlUOV','filterCargoBuild','Cargo:\x20compiled\x20','endsWith','3410168rNXxzW','\x20passed','defineProperty','962559pcKxUJ','401329OSkSsN','filter','warning:','48BYfxTI','error:','1292110Ygdylb','\x20crates\x20successfully','20053yMqMxM','assert','thread','\x20----','min','\x20warnings','\x0aErrors:','test\x20result:\x20ok','\x20ignored','replace','push','join','right:','split','trim','startsWith','\x20\x20...\x20+','Compiling\x20'];a0_0x1bc9=function(){return _0x58bd0f;};return a0_0x1bc9();}const a0_0x2e5b8d=a0_0x203d;(function(_0xeeb7fb,_0x13f6eb){const _0x31c048=a0_0x203d,_0x58643c=_0xeeb7fb();while(!![]){try{const _0x4c0183=parseInt(_0x31c048(0x1b1))/0x1*(-parseInt(_0x31c048(0x199))/0x2)+-parseInt(_0x31c048(0x1b0))/0x3+parseInt(_0x31c048(0x1ad))/0x4*(-parseInt(_0x31c048(0x1a4))/0x5)+parseInt(_0x31c048(0x1a9))/0x6*(-parseInt(_0x31c048(0x1a7))/0x7)+parseInt(_0x31c048(0x1b4))/0x8*(parseInt(_0x31c048(0x1a8))/0x9)+-parseInt(_0x31c048(0x1b6))/0xa+-parseInt(_0x31c048(0x1b8))/0xb*(-parseInt(_0x31c048(0x196))/0xc);if(_0x4c0183===_0x13f6eb)break;else _0x58643c['push'](_0x58643c['shift']());}catch(_0x1cfd8a){_0x58643c['push'](_0x58643c['shift']());}}}(a0_0x1bc9,0x6ba99));Object[a0_0x2e5b8d(0x1af)](exports,'__esModule',{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports[a0_0x2e5b8d(0x1aa)]=filterCargoBuild;function filterCargoTest(_0x5345e3){const _0xe7190d=a0_0x2e5b8d,_0x5dd453=_0x5345e3['split']('\x0a');let _0x55285c=0x0,_0x316fe6=0x0,_0x2190b0=0x0,_0x387869=0x0;const _0x3b7065=[];let _0x5b02bd=![],_0x380174=[];for(const _0x45df5d of _0x5dd453){const _0x3664b1=_0x45df5d[_0xe7190d(0x18e)](),_0x296460=_0x3664b1[_0xe7190d(0x19e)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x296460){_0x55285c+=parseInt(_0x296460[0x2]),_0x316fe6+=parseInt(_0x296460[0x3]),_0x2190b0+=parseInt(_0x296460[0x4]),_0x387869+=parseInt(_0x296460[0x5]);continue;}if(_0x3664b1===_0xe7190d(0x195)||_0x3664b1===_0xe7190d(0x193)){_0x5b02bd=!![];continue;}if(_0x5b02bd){if(_0x3664b1[_0xe7190d(0x18f)]('----\x20')&&_0x3664b1[_0xe7190d(0x1ac)](_0xe7190d(0x1bb))){if(_0x380174['length']>0x0)_0x3b7065[_0xe7190d(0x1c2)](_0x380174[_0xe7190d(0x1c3)]('\x0a'));_0x380174=[_0x3664b1[_0xe7190d(0x1c1)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x3664b1==='failures:'||_0x3664b1[_0xe7190d(0x18f)](_0xe7190d(0x1a0))){if(_0x380174[_0xe7190d(0x19a)]>0x0)_0x3b7065[_0xe7190d(0x1c2)](_0x380174[_0xe7190d(0x1c3)]('\x0a'));_0x380174=[],_0x5b02bd=![];}else _0x3664b1[_0xe7190d(0x19a)]>0x0&&_0x380174[_0xe7190d(0x1c2)](_0x45df5d);}}}if(_0x380174[_0xe7190d(0x19a)]>0x0)_0x3b7065[_0xe7190d(0x1c2)](_0x380174[_0xe7190d(0x1c3)]('\x0a'));if(_0x55285c===0x0&&_0x316fe6===0x0&&_0x2190b0===0x0){if(_0x5345e3['includes'](_0xe7190d(0x1bf)))return _0xe7190d(0x1a1);return _0x5345e3;}if(_0x316fe6===0x0){const _0xcc7645=['Cargo\x20test:\x20'+_0x55285c+_0xe7190d(0x1ae)];if(_0x2190b0>0x0)_0xcc7645[_0xe7190d(0x1c2)](_0x2190b0+_0xe7190d(0x1c0));return _0xcc7645[_0xe7190d(0x1c3)](',\x20');}const _0x43f5ab=[_0xe7190d(0x19d)+_0x55285c+'\x20passed,\x20'+_0x316fe6+_0xe7190d(0x192)+_0x2190b0+_0xe7190d(0x1c0)];if(_0x3b7065[_0xe7190d(0x19a)]>0x0){_0x43f5ab[_0xe7190d(0x1c2)]('\x0aFailures:');const _0x414355=0x3;for(let _0x1067f6=0x0;_0x1067f6<Math[_0xe7190d(0x1bc)](_0x3b7065[_0xe7190d(0x19a)],_0x414355);_0x1067f6++){const _0x540c69=_0x3b7065[_0x1067f6]['split']('\x0a');_0x43f5ab[_0xe7190d(0x1c2)]('\x20\x20'+(_0x1067f6+0x1)+'.\x20'+_0x540c69[0x0]);const _0x22e2d9=_0x540c69[_0xe7190d(0x19f)](0x1),_0x30661c=_0x22e2d9[_0xe7190d(0x1b2)](_0x55db9d=>_0x55db9d['trim']()['startsWith'](_0xe7190d(0x1ba))||_0x55db9d[_0xe7190d(0x1a3)](_0xe7190d(0x198))||_0x55db9d[_0xe7190d(0x1a3)](_0xe7190d(0x1b9))||_0x55db9d['includes'](_0xe7190d(0x194))||_0x55db9d['includes'](_0xe7190d(0x1c4)));for(const _0x3d8920 of _0x30661c[_0xe7190d(0x19f)](0x0,0x5)){_0x43f5ab[_0xe7190d(0x1c2)](_0xe7190d(0x1a6)+_0x3d8920['trim']());}}_0x3b7065[_0xe7190d(0x19a)]>_0x414355&&_0x43f5ab[_0xe7190d(0x1c2)](_0xe7190d(0x190)+(_0x3b7065['length']-_0x414355)+'\x20more\x20failures');}return _0x43f5ab[_0xe7190d(0x1c3)]('\x0a');}function filterCargoBuild(_0x484112){const _0x5707ad=a0_0x2e5b8d,_0x14eee3=_0x484112[_0x5707ad(0x1c5)]('\x0a'),_0x420db8=[],_0x36dece=[];let _0x504a8d=0x0;for(const _0x14210b of _0x14eee3){const _0x37cc4f=_0x14210b['trim']();if(_0x37cc4f['startsWith'](_0x5707ad(0x191)))_0x504a8d++;else{if(_0x37cc4f[_0x5707ad(0x18f)](_0x5707ad(0x19c))||_0x37cc4f['startsWith'](_0x5707ad(0x1b3)))_0x420db8['push'](_0x37cc4f);else{if(_0x37cc4f[_0x5707ad(0x18f)]('error[')||_0x37cc4f[_0x5707ad(0x18f)](_0x5707ad(0x1b5)))_0x36dece[_0x5707ad(0x1c2)](_0x37cc4f);}}}if(_0x36dece['length']===0x0&&_0x420db8[_0x5707ad(0x19a)]===0x0)return _0x504a8d>0x0?'Cargo:\x20compiled\x20'+_0x504a8d+_0x5707ad(0x1b7):_0x484112['trim']();const _0x28eda4=[];if(_0x36dece[_0x5707ad(0x19a)]>0x0){_0x28eda4[_0x5707ad(0x1c2)](_0x5707ad(0x19b)+_0x36dece[_0x5707ad(0x19a)]+_0x5707ad(0x1a5)+_0x420db8[_0x5707ad(0x19a)]+'\x20warnings'),_0x28eda4['push'](_0x5707ad(0x1be));for(const _0x44371e of _0x36dece[_0x5707ad(0x19f)](0x0,0x5))_0x28eda4['push']('\x20\x20'+_0x44371e);if(_0x36dece[_0x5707ad(0x19a)]>0x5)_0x28eda4['push']('\x20\x20...\x20+'+(_0x36dece[_0x5707ad(0x19a)]-0x5)+_0x5707ad(0x1a2));}else _0x28eda4[_0x5707ad(0x1c2)](_0x5707ad(0x1ab)+_0x504a8d+'\x20crates,\x20'+_0x420db8[_0x5707ad(0x19a)]+_0x5707ad(0x1bd));if(_0x420db8['length']>0x0&&_0x420db8[_0x5707ad(0x19a)]<=0x5){_0x28eda4[_0x5707ad(0x1c2)]('\x0aWarnings:');for(const _0x552ef1 of _0x420db8)_0x28eda4[_0x5707ad(0x1c2)]('\x20\x20'+_0x552ef1);}else _0x420db8[_0x5707ad(0x19a)]>0x5&&_0x28eda4['push']('\x0a('+_0x420db8[_0x5707ad(0x19a)]+_0x5707ad(0x197));return _0x28eda4['join']('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x23b92a=a0_0x258f;(function(_0x55057e,_0x1ca1ea){const _0x5c1fbe=a0_0x258f,_0x132365=_0x55057e();while(!![]){try{const _0x4f4d34=-parseInt(_0x5c1fbe(0x1dd))/0x1+parseInt(_0x5c1fbe(0x1d0))/0x2+-parseInt(_0x5c1fbe(0x226))/0x3*(-parseInt(_0x5c1fbe(0x1f7))/0x4)+-parseInt(_0x5c1fbe(0x215))/0x5*(-parseInt(_0x5c1fbe(0x1d5))/0x6)+-parseInt(_0x5c1fbe(0x1c9))/0x7*(parseInt(_0x5c1fbe(0x1c2))/0x8)+-parseInt(_0x5c1fbe(0x204))/0x9+-parseInt(_0x5c1fbe(0x1f4))/0xa*(parseInt(_0x5c1fbe(0x20d))/0xb);if(_0x4f4d34===_0x1ca1ea)break;else _0x132365['push'](_0x132365['shift']());}catch(_0x280f23){_0x132365['push'](_0x132365['shift']());}}}(a0_0x7d99,0xb9d14));var __createBinding=this&&this[a0_0x23b92a(0x1da)]||(Object[a0_0x23b92a(0x1c0)]?function(_0x505213,_0x5cd45b,_0xd8289,_0x507858){const _0x5a0fe1=a0_0x23b92a;if(_0x507858===undefined)_0x507858=_0xd8289;var _0x1ca004=Object['getOwnPropertyDescriptor'](_0x5cd45b,_0xd8289);(!_0x1ca004||(_0x5a0fe1(0x1cd)in _0x1ca004?!_0x5cd45b[_0x5a0fe1(0x1db)]:_0x1ca004['writable']||_0x1ca004[_0x5a0fe1(0x1bc)]))&&(_0x1ca004={'enumerable':!![],'get':function(){return _0x5cd45b[_0xd8289];}}),Object[_0x5a0fe1(0x20b)](_0x505213,_0x507858,_0x1ca004);}:function(_0x5c222b,_0x41de8a,_0x5cc492,_0x495c61){if(_0x495c61===undefined)_0x495c61=_0x5cc492;_0x5c222b[_0x495c61]=_0x41de8a[_0x5cc492];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x23b92a(0x1c0)]?function(_0x5bd56a,_0x5b16e6){const _0x20a73b=a0_0x23b92a;Object[_0x20a73b(0x20b)](_0x5bd56a,_0x20a73b(0x214),{'enumerable':!![],'value':_0x5b16e6});}:function(_0x4bcc08,_0x5e668d){_0x4bcc08['default']=_0x5e668d;}),__importStar=this&&this[a0_0x23b92a(0x203)]||(function(){var _0x1c2a11=function(_0x38998c){return _0x1c2a11=Object['getOwnPropertyNames']||function(_0x510b75){const _0x19a693=a0_0x258f;var _0xb8285b=[];for(var _0x2701eb in _0x510b75)if(Object['prototype']['hasOwnProperty'][_0x19a693(0x200)](_0x510b75,_0x2701eb))_0xb8285b[_0xb8285b['length']]=_0x2701eb;return _0xb8285b;},_0x1c2a11(_0x38998c);};return function(_0x3e0fd7){const _0x4c0f10=a0_0x258f;if(_0x3e0fd7&&_0x3e0fd7[_0x4c0f10(0x1db)])return _0x3e0fd7;var _0x2d87e6={};if(_0x3e0fd7!=null){for(var _0x2d6763=_0x1c2a11(_0x3e0fd7),_0x494c17=0x0;_0x494c17<_0x2d6763[_0x4c0f10(0x1be)];_0x494c17++)if(_0x2d6763[_0x494c17]!==_0x4c0f10(0x214))__createBinding(_0x2d87e6,_0x3e0fd7,_0x2d6763[_0x494c17]);}return __setModuleDefault(_0x2d87e6,_0x3e0fd7),_0x2d87e6;};}());Object[a0_0x23b92a(0x20b)](exports,'__esModule',{'value':!![]}),exports[a0_0x23b92a(0x1e8)]=filterLs,exports['filterTree']=filterTree,exports['filterCat']=filterCat,exports[a0_0x23b92a(0x223)]=filterGrep,exports[a0_0x23b92a(0x1f3)]=filterFind;function a0_0x7d99(){const _0x2c70c1=['.mov','yarn.lock','filter','endsWith','indexOf','total\x20','\x20chars,\x20type:\x20','filterGrep','trim','Gemfile.lock','12hNevqG','split','toLowerCase','[minified\x20file]\x20','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','packages','.bmp','pnpm-lock.yaml','.sqlite','configurable','sort','length','Cargo.lock','create','dirname','2562792LgDZnQ','entries','.webm','join','.obj','\x20chars\x20across\x20','keys','14PdQCpS','includes','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','\x20matches\x20across\x20','get','bun.lockb','\x20directories','1119862NPWMzX','Empty\x20directory','dependencies','.ico','basename','2334hmECSc','\x20more\x20files','.map','.min.js','\x20directories,\x20','__createBinding','__esModule','.bin','205829nsXooJ','.bz2','\x20dependencies,\x20','go.sum','package-lock.json','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.tgz','\x20more\x20matches','.sqlite3','.dylib','.pyc','filterLs','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','...\x20+','.pyo','\x20more\x20files\x20with\x20matches','.rar','charCodeAt','composer.lock','.wasm','[binary\x20file]\x20','\x20\x20...\x20+','filterFind','227930gFKDAf','toLocaleString','.jpg','504844wtnAFl','floor','.mp3','cargo.lock','.dat','.jpeg','.gif','substring','\x20files)','call','startsWith','poetry.lock','__importStar','656559vgaHJv','parse','.png','.tar.gz','[lock\x20file]\x20','push','some','defineProperty','\x0a...\x20[','110UsLTCb','\x20matches\x20in\x20this\x20file)','\x0a...\x20(','match','[binary/minified\x20file]\x20','.7z','/\x20(','default','10845IdCPvL','\x20more\x20directories','.mp4','.avi','slice','.db','.gz'];a0_0x7d99=function(){return _0x2c70c1;};return a0_0x7d99();}const path=__importStar(require('path')),LOCK_FILES=[a0_0x23b92a(0x1e1),a0_0x23b92a(0x21d),'pnpm-lock.yaml',a0_0x23b92a(0x1bf),a0_0x23b92a(0x1e0),a0_0x23b92a(0x202),'composer.lock',a0_0x23b92a(0x225),a0_0x23b92a(0x1ce)],BINARY_EXTENSIONS=[a0_0x23b92a(0x1d8),'.min.css',a0_0x23b92a(0x1d7),a0_0x23b92a(0x1f0),a0_0x23b92a(0x206),a0_0x23b92a(0x1f6),a0_0x23b92a(0x1fc),a0_0x23b92a(0x1fd),a0_0x23b92a(0x1d3),a0_0x23b92a(0x1b9),'.webp','.svg','.pdf','.zip',a0_0x23b92a(0x207),a0_0x23b92a(0x1e3),a0_0x23b92a(0x21b),a0_0x23b92a(0x1de),a0_0x23b92a(0x212),a0_0x23b92a(0x1ed),'.exe','.dll','.so',a0_0x23b92a(0x1e6),a0_0x23b92a(0x1dc),a0_0x23b92a(0x1fb),a0_0x23b92a(0x1bb),a0_0x23b92a(0x21a),a0_0x23b92a(0x1e5),'.woff','.woff2','.ttf','.eot','.otf',a0_0x23b92a(0x1f9),a0_0x23b92a(0x217),'.wav',a0_0x23b92a(0x218),a0_0x23b92a(0x21c),a0_0x23b92a(0x1c4),a0_0x23b92a(0x1e7),a0_0x23b92a(0x1eb),'.class','.o',a0_0x23b92a(0x1c6)];function extractFilename(_0x48648){const _0x283ded=a0_0x23b92a,_0x1d4e9b=_0x48648[_0x283ded(0x224)]()[_0x283ded(0x227)](/\s+/);for(let _0x55db97=0x1;_0x55db97<_0x1d4e9b[_0x283ded(0x1be)];_0x55db97++){if(!_0x1d4e9b[_0x55db97][_0x283ded(0x201)]('-'))return _0x1d4e9b[_0x55db97];}return null;}function a0_0x258f(_0x5bf774,_0x452e18){_0x5bf774=_0x5bf774-0x1b9;const _0x7d99ac=a0_0x7d99();let _0x258f38=_0x7d99ac[_0x5bf774];return _0x258f38;}function filterLockFile(_0xb8753f,_0x42a98c){const _0x4afca4=a0_0x23b92a;try{const _0xbd928a=path['basename'](_0x42a98c)[_0x4afca4(0x228)]();if(!LOCK_FILES[_0x4afca4(0x20a)](_0x2b2186=>_0xbd928a===_0x2b2186[_0x4afca4(0x228)]()))return null;const _0x46438b=_0xb8753f['length'];let _0xbf8ffe=0x0;if(_0xbd928a===_0x4afca4(0x1e1))try{const _0x2e987a=JSON[_0x4afca4(0x205)](_0xb8753f);_0xbf8ffe=Object[_0x4afca4(0x1c8)](_0x2e987a['packages']||_0x2e987a[_0x4afca4(0x1d2)]||{})[_0x4afca4(0x1be)];}catch{_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/"resolved":/g)||[])[_0x4afca4(0x1be)];}else{if(_0xbd928a===_0x4afca4(0x21d))_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/^"?[^#\s][^:]*:$/gm)||[])[_0x4afca4(0x1be)];else{if(_0xbd928a===_0x4afca4(0x1fa)||_0xbd928a===_0x4afca4(0x202))_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/\[\[package\]\]/g)||[])[_0x4afca4(0x1be)];else{if(_0xbd928a===_0x4afca4(0x1e0))_0xbf8ffe=Math[_0x4afca4(0x1f8)](_0xb8753f[_0x4afca4(0x227)]('\x0a')[_0x4afca4(0x21e)](_0x4e51e2=>_0x4e51e2['trim']())['length']/0x2);else{if(_0xbd928a===_0x4afca4(0x1ef))try{_0xbf8ffe=JSON[_0x4afca4(0x205)](_0xb8753f)[_0x4afca4(0x22b)]?.[_0x4afca4(0x1be)]||0x0;}catch{}else _0xbd928a===_0x4afca4(0x1ba)?_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/^\s{2}['"@a-z]/gm)||[])['length']:_0xbf8ffe=_0xb8753f[_0x4afca4(0x227)]('\x0a')[_0x4afca4(0x21e)](_0x4cc7a7=>_0x4cc7a7['trim']())[_0x4afca4(0x1be)];}}}}return _0x4afca4(0x208)+path['basename'](_0x42a98c)+':\x20'+_0xbf8ffe+_0x4afca4(0x1df)+_0x46438b[_0x4afca4(0x1f5)]()+_0x4afca4(0x22a);}catch{return null;}}function filterBinaryOrMinified(_0x145588,_0x30874d){const _0x3281bc=a0_0x23b92a;try{if(_0x30874d){const _0xdd02b2=_0x30874d[_0x3281bc(0x228)]();for(const _0x55c568 of BINARY_EXTENSIONS){if(_0xdd02b2[_0x3281bc(0x21f)](_0x55c568))return _0x3281bc(0x211)+path[_0x3281bc(0x1d4)](_0x30874d)+',\x20'+_0x145588[_0x3281bc(0x1be)][_0x3281bc(0x1f5)]()+_0x3281bc(0x222)+_0x55c568+_0x3281bc(0x1cb);}}const _0x4f68c2=_0x145588['substring'](0x0,0x3e8);let _0x230ccd=0x0;for(let _0x12a290=0x0;_0x12a290<_0x4f68c2[_0x3281bc(0x1be)];_0x12a290++){if(_0x4f68c2[_0x3281bc(0x1ee)](_0x12a290)===0x0)_0x230ccd++;}if(_0x230ccd>0x0)return _0x3281bc(0x1f1)+_0x145588[_0x3281bc(0x1be)][_0x3281bc(0x1f5)]()+_0x3281bc(0x1e2);let _0x3f9bfb=0x0;for(let _0x37a244=0x0;_0x37a244<_0x4f68c2['length'];_0x37a244++){const _0x14df49=_0x4f68c2['charCodeAt'](_0x37a244);if(_0x14df49<0x20&&_0x14df49!==0xa&&_0x14df49!==0xd&&_0x14df49!==0x9)_0x3f9bfb++;}if(_0x4f68c2[_0x3281bc(0x1be)]>0x64&&_0x3f9bfb>_0x4f68c2[_0x3281bc(0x1be)]*0.1)return _0x3281bc(0x1f1)+_0x145588[_0x3281bc(0x1be)]['toLocaleString']()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x513c98=_0x145588['split']('\x0a');if(_0x513c98[_0x3281bc(0x1be)]<=0x3&&_0x145588[_0x3281bc(0x1be)]>0x1388)return _0x3281bc(0x229)+_0x145588[_0x3281bc(0x1be)][_0x3281bc(0x1f5)]()+_0x3281bc(0x1c7)+_0x513c98[_0x3281bc(0x1be)]+_0x3281bc(0x1e9);return null;}catch{return null;}}function filterJsonMinify(_0xa99b68){const _0xa0087a=a0_0x23b92a;try{const _0xa34217=_0xa99b68[_0xa0087a(0x224)]();if(!_0xa34217[_0xa0087a(0x201)]('{')&&!_0xa34217[_0xa0087a(0x201)]('['))return null;const _0x52411f=_0xa34217[_0xa0087a(0x227)]('\x0a');if(_0x52411f[_0xa0087a(0x1be)]<=0x14)return null;const _0x33954b=JSON[_0xa0087a(0x205)](_0xa34217),_0x3e4c67=JSON['stringify'](_0x33954b);if(_0x3e4c67[_0xa0087a(0x1be)]<_0xa34217['length'])return _0x3e4c67;return null;}catch{return null;}}function filterLs(_0x2ce5cb){const _0x1e297a=a0_0x23b92a,_0x2b5bf8=_0x2ce5cb[_0x1e297a(0x227)]('\x0a')[_0x1e297a(0x21e)](_0x3771b2=>_0x3771b2[_0x1e297a(0x224)]()[_0x1e297a(0x1be)]>0x0);if(_0x2b5bf8[_0x1e297a(0x1be)]===0x0)return _0x1e297a(0x1d1);if(_0x2b5bf8['length']<=0x1e)return _0x2ce5cb[_0x1e297a(0x224)]();const _0x12daac=[],_0x28a5a0=[];for(const _0x4eb671 of _0x2b5bf8){const _0x42e335=_0x4eb671[_0x1e297a(0x224)]();if(_0x42e335[_0x1e297a(0x201)](_0x1e297a(0x221))||_0x42e335[_0x1e297a(0x201)]('d')&&_0x42e335[_0x1e297a(0x1ca)]('..'))continue;_0x42e335[_0x1e297a(0x21f)]('/')||_0x42e335[_0x1e297a(0x201)]('d')&&_0x42e335[_0x1e297a(0x1ca)]('\x20')?_0x12daac['push'](_0x42e335):_0x28a5a0[_0x1e297a(0x209)](_0x42e335);}const _0x76c9dc=[];return _0x12daac[_0x1e297a(0x1be)]>0x0&&(_0x12daac[_0x1e297a(0x1be)]<=0xf?_0x76c9dc[_0x1e297a(0x209)](..._0x12daac):(_0x76c9dc['push'](..._0x12daac[_0x1e297a(0x219)](0x0,0xa)),_0x76c9dc[_0x1e297a(0x209)](_0x1e297a(0x1ea)+(_0x12daac[_0x1e297a(0x1be)]-0xa)+_0x1e297a(0x216)))),_0x28a5a0[_0x1e297a(0x1be)]>0x0&&(_0x28a5a0[_0x1e297a(0x1be)]<=0x14?_0x76c9dc[_0x1e297a(0x209)](..._0x28a5a0):(_0x76c9dc[_0x1e297a(0x209)](..._0x28a5a0[_0x1e297a(0x219)](0x0,0xf)),_0x76c9dc['push'](_0x1e297a(0x1ea)+(_0x28a5a0[_0x1e297a(0x1be)]-0xf)+_0x1e297a(0x1d6)))),_0x76c9dc[_0x1e297a(0x209)]('\x0a('+_0x12daac[_0x1e297a(0x1be)]+_0x1e297a(0x1d9)+_0x28a5a0[_0x1e297a(0x1be)]+_0x1e297a(0x1ff)),_0x76c9dc[_0x1e297a(0x1c5)]('\x0a');}function filterTree(_0x8b812){const _0x2026ce=a0_0x23b92a,_0x2ae37e=_0x8b812[_0x2026ce(0x227)]('\x0a');if(_0x2ae37e['length']<=0x32)return _0x8b812[_0x2026ce(0x224)]();const _0x59de10=[];let _0x4d2dfb=0x0,_0x8582d9=0x0,_0x3e5b41=0x0;for(const _0x130143 of _0x2ae37e){const _0x412bd0=_0x130143[_0x2026ce(0x210)](/(\d+)\s+director/),_0xa8d795=_0x130143[_0x2026ce(0x210)](/(\d+)\s+file/);if(_0x412bd0)_0x3e5b41=parseInt(_0x412bd0[0x1]);if(_0xa8d795)_0x8582d9=parseInt(_0xa8d795[0x1]);const _0x1aa39f=(_0x130143['match'](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x1aa39f<=0x4&&(_0x59de10[_0x2026ce(0x209)](_0x130143),_0x4d2dfb++);}return _0x2ae37e[_0x2026ce(0x1be)]>_0x59de10[_0x2026ce(0x1be)]&&_0x59de10['push'](_0x2026ce(0x20f)+_0x3e5b41+_0x2026ce(0x1d9)+_0x8582d9+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x59de10[_0x2026ce(0x1c5)]('\x0a');}function filterCat(_0x56df4d,_0x4a19b5=''){const _0x400e51=a0_0x23b92a,_0x47598c=extractFilename(_0x4a19b5);try{if(_0x47598c){const _0xbc532e=filterLockFile(_0x56df4d,_0x47598c);if(_0xbc532e)return _0xbc532e;}const _0x3e60b5=filterBinaryOrMinified(_0x56df4d,_0x47598c);if(_0x3e60b5)return _0x3e60b5;const _0x362acb=filterJsonMinify(_0x56df4d);if(_0x362acb)return _0x362acb;}catch{}const _0x4fc394=_0x56df4d[_0x400e51(0x227)]('\x0a');if(_0x4fc394[_0x400e51(0x1be)]<=0x64)return _0x56df4d;const _0x518b05=[];return _0x518b05[_0x400e51(0x209)](..._0x4fc394[_0x400e51(0x219)](0x0,0x32)),_0x518b05[_0x400e51(0x209)](_0x400e51(0x20c)+(_0x4fc394[_0x400e51(0x1be)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x518b05[_0x400e51(0x209)](..._0x4fc394['slice'](-0x1e)),_0x518b05['push']('\x0a('+_0x4fc394[_0x400e51(0x1be)]+'\x20lines\x20total)'),_0x518b05[_0x400e51(0x1c5)]('\x0a');}function filterGrep(_0x108e9f){const _0x4a063b=a0_0x23b92a,_0x4db958=_0x108e9f[_0x4a063b(0x227)]('\x0a')['filter'](_0x4ae932=>_0x4ae932[_0x4a063b(0x224)]()['length']>0x0);if(_0x4db958[_0x4a063b(0x1be)]===0x0)return'No\x20matches\x20found';if(_0x4db958[_0x4a063b(0x1be)]<=0x32)return _0x108e9f[_0x4a063b(0x224)]();const _0x52bf8={},_0x1c15c1=[];for(const _0x13dfdc of _0x4db958){const _0x5cec1b=_0x13dfdc[_0x4a063b(0x220)](':');if(_0x5cec1b>0x0&&_0x5cec1b<0xc8){const _0xc45e09=_0x13dfdc[_0x4a063b(0x1fe)](0x0,_0x5cec1b);if(_0xc45e09['includes']('/')||_0xc45e09[_0x4a063b(0x1ca)]('\x5c')||_0xc45e09[_0x4a063b(0x1ca)]('.')){if(!_0x52bf8[_0xc45e09])_0x52bf8[_0xc45e09]=[];_0x52bf8[_0xc45e09][_0x4a063b(0x209)](_0x13dfdc[_0x4a063b(0x1fe)](_0x5cec1b+0x1)['trim']());continue;}}_0x1c15c1[_0x4a063b(0x209)](_0x13dfdc);}const _0x3ef29c=[],_0x68dcea=Object[_0x4a063b(0x1c8)](_0x52bf8);if(_0x68dcea['length']>0x0){const _0xf0f5bc=0x14,_0x206806=_0x68dcea[_0x4a063b(0x219)](0x0,_0xf0f5bc);for(const _0x32d0dc of _0x206806){const _0x1b6036=_0x52bf8[_0x32d0dc];if(_0x1b6036[_0x4a063b(0x1be)]<=0x3)for(const _0x22e02e of _0x1b6036){_0x3ef29c[_0x4a063b(0x209)](_0x32d0dc+':\x20'+_0x22e02e);}else _0x3ef29c['push'](_0x32d0dc+':\x20'+_0x1b6036[0x0]),_0x3ef29c['push'](_0x32d0dc+':\x20...\x20('+_0x1b6036[_0x4a063b(0x1be)]+_0x4a063b(0x20e));}_0x68dcea[_0x4a063b(0x1be)]>_0xf0f5bc&&_0x3ef29c[_0x4a063b(0x209)](_0x4a063b(0x1ea)+(_0x68dcea[_0x4a063b(0x1be)]-_0xf0f5bc)+_0x4a063b(0x1ec));}if(_0x1c15c1[_0x4a063b(0x1be)]>0x0){const _0x21cd24=0x1e;_0x3ef29c[_0x4a063b(0x209)](..._0x1c15c1['slice'](0x0,_0x21cd24)),_0x1c15c1[_0x4a063b(0x1be)]>_0x21cd24&&_0x3ef29c['push'](_0x4a063b(0x1ea)+(_0x1c15c1['length']-_0x21cd24)+_0x4a063b(0x1e4));}const _0x2707ae=_0x4db958[_0x4a063b(0x1be)];return _0x3ef29c[_0x4a063b(0x209)]('\x0a('+_0x2707ae+_0x4a063b(0x1cc)+(_0x68dcea[_0x4a063b(0x1be)]||'?')+_0x4a063b(0x1ff)),_0x3ef29c[_0x4a063b(0x1c5)]('\x0a');}function filterFind(_0x83ab9e){const _0x17407c=a0_0x23b92a,_0x538f60=_0x83ab9e[_0x17407c(0x227)]('\x0a')[_0x17407c(0x21e)](_0x2cc7b3=>_0x2cc7b3[_0x17407c(0x224)]()[_0x17407c(0x1be)]>0x0);if(_0x538f60[_0x17407c(0x1be)]===0x0)return'No\x20files\x20found';if(_0x538f60[_0x17407c(0x1be)]<=0x32)return _0x83ab9e[_0x17407c(0x224)]();const _0x204c1d={};for(const _0x275ebb of _0x538f60){const _0x8874db=path[_0x17407c(0x1c1)](_0x275ebb['trim']())||'.';_0x204c1d[_0x8874db]=(_0x204c1d[_0x8874db]||0x0)+0x1;}const _0x59e3bb=Object[_0x17407c(0x1c3)](_0x204c1d)[_0x17407c(0x1bd)]((_0x3c8cc3,_0x5c8cca)=>_0x5c8cca[0x1]-_0x3c8cc3[0x1]),_0x99032a=[_0x538f60[_0x17407c(0x1be)]+'\x20files\x20found\x20across\x20'+_0x59e3bb[_0x17407c(0x1be)]+_0x17407c(0x1cf),''],_0x1acde2=0x1e;for(const [_0x163a7,_0x23ce57]of _0x59e3bb[_0x17407c(0x219)](0x0,_0x1acde2)){_0x99032a[_0x17407c(0x209)]('\x20\x20'+_0x163a7+_0x17407c(0x213)+_0x23ce57+_0x17407c(0x1ff));}return _0x59e3bb[_0x17407c(0x1be)]>_0x1acde2&&_0x99032a['push'](_0x17407c(0x1f2)+(_0x59e3bb[_0x17407c(0x1be)]-_0x1acde2)+'\x20more\x20directories'),_0x99032a[_0x17407c(0x1c5)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x140e36=a0_0x522f;function a0_0x105e(){const _0x23629f=['substring','52803oWwisf','4019888VJpDem','.sqlite3','parse','.woff2','.sqlite','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','__esModule','\x20more\x20directories','hasOwnProperty','\x20files)','includes','172AESljW','defineProperty','.zip','default','[binary\x20file]\x20','75108yKOiDm','.avi','.jpeg','poetry.lock','split','...\x20+','[lock\x20file]\x20','.bin','endsWith','__importStar','.pdf','.class','\x20lines\x20truncated]\x20...\x0a','pnpm-lock.yaml','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.so','7siGQZF','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','trim','.dat','217284vDFXkd','.eot','33FtWQfP','\x20matches\x20across\x20','.tgz','\x20dependencies,\x20','getOwnPropertyNames','.ico','\x0a...\x20(','composer.lock','.db','some','\x20files\x20found\x20across\x20','push','/\x20(','.tar.gz','packages','.ttf','.obj','.rar','Gemfile.lock','__setModuleDefault','.exe','.jpg','__createBinding','entries','package-lock.json','filterCat','2924500WrJEeM','\x20directories,\x20','.pyc','configurable','.pyo','.mov','.webm','prototype','get','go.sum','toLowerCase',':\x20...\x20(','charCodeAt','length','path','.min.js','\x20matches\x20in\x20this\x20file)','.map','.gif','filterFind','toLocaleString','sort','.bz2','No\x20files\x20found','\x20more\x20matches','yarn.lock','filter','dirname','.dylib','slice','indexOf','.wasm','cargo.lock','writable','\x20chars\x20across\x20','basename','match','\x20more\x20files','startsWith','52995WjnkOF','.dll','.gz','join','\x20\x20...\x20+','floor','call','keys','filterLs','No\x20matches\x20found','4343805UKWblC','.woff','.wav'];a0_0x105e=function(){return _0x23629f;};return a0_0x105e();}(function(_0x47cb18,_0xdba566){const _0x58620e=a0_0x522f,_0x4c4f13=_0x47cb18();while(!![]){try{const _0x110fda=-parseInt(_0x58620e(0x1ce))/0x1+-parseInt(_0x58620e(0x1df))/0x2*(parseInt(_0x58620e(0x1f5))/0x3)+-parseInt(_0x58620e(0x1da))/0x4*(-parseInt(_0x58620e(0x1c0))/0x5)+parseInt(_0x58620e(0x1f3))/0x6*(-parseInt(_0x58620e(0x1ef))/0x7)+parseInt(_0x58620e(0x1cf))/0x8+-parseInt(_0x58620e(0x1ca))/0x9+parseInt(_0x58620e(0x20f))/0xa;if(_0x110fda===_0xdba566)break;else _0x4c4f13['push'](_0x4c4f13['shift']());}catch(_0x26846d){_0x4c4f13['push'](_0x4c4f13['shift']());}}}(a0_0x105e,0x40ed1));function a0_0x522f(_0x49cc3b,_0x4dd045){_0x49cc3b=_0x49cc3b-0x1aa;const _0x105eaf=a0_0x105e();let _0x522f20=_0x105eaf[_0x49cc3b];return _0x522f20;}var __createBinding=this&&this[a0_0x140e36(0x20b)]||(Object['create']?function(_0x3523ad,_0x5c1eb8,_0x455559,_0x516e61){const _0x35f682=a0_0x140e36;if(_0x516e61===undefined)_0x516e61=_0x455559;var _0x1ffb18=Object['getOwnPropertyDescriptor'](_0x5c1eb8,_0x455559);(!_0x1ffb18||(_0x35f682(0x217)in _0x1ffb18?!_0x5c1eb8[_0x35f682(0x1d5)]:_0x1ffb18[_0x35f682(0x1ba)]||_0x1ffb18[_0x35f682(0x212)]))&&(_0x1ffb18={'enumerable':!![],'get':function(){return _0x5c1eb8[_0x455559];}}),Object['defineProperty'](_0x3523ad,_0x516e61,_0x1ffb18);}:function(_0x187b06,_0x24bdc2,_0x53d7b6,_0xc4ca7d){if(_0xc4ca7d===undefined)_0xc4ca7d=_0x53d7b6;_0x187b06[_0xc4ca7d]=_0x24bdc2[_0x53d7b6];}),__setModuleDefault=this&&this[a0_0x140e36(0x208)]||(Object['create']?function(_0x561619,_0xf7c4d6){const _0x458bf6=a0_0x140e36;Object[_0x458bf6(0x1db)](_0x561619,_0x458bf6(0x1dd),{'enumerable':!![],'value':_0xf7c4d6});}:function(_0xda0c7,_0x37eb47){_0xda0c7['default']=_0x37eb47;}),__importStar=this&&this[a0_0x140e36(0x1e8)]||(function(){var _0x2ed79b=function(_0x28bbfa){const _0x2ac7d8=a0_0x522f;return _0x2ed79b=Object[_0x2ac7d8(0x1f9)]||function(_0x393f95){const _0x4885ab=_0x2ac7d8;var _0x41bddc=[];for(var _0x3905c2 in _0x393f95)if(Object[_0x4885ab(0x216)][_0x4885ab(0x1d7)][_0x4885ab(0x1c6)](_0x393f95,_0x3905c2))_0x41bddc[_0x41bddc[_0x4885ab(0x21c)]]=_0x3905c2;return _0x41bddc;},_0x2ed79b(_0x28bbfa);};return function(_0x437b1d){const _0x5f57b5=a0_0x522f;if(_0x437b1d&&_0x437b1d[_0x5f57b5(0x1d5)])return _0x437b1d;var _0x3f447a={};if(_0x437b1d!=null){for(var _0x39d434=_0x2ed79b(_0x437b1d),_0xd33969=0x0;_0xd33969<_0x39d434['length'];_0xd33969++)if(_0x39d434[_0xd33969]!=='default')__createBinding(_0x3f447a,_0x437b1d,_0x39d434[_0xd33969]);}return __setModuleDefault(_0x3f447a,_0x437b1d),_0x3f447a;};}());Object[a0_0x140e36(0x1db)](exports,a0_0x140e36(0x1d5),{'value':!![]}),exports[a0_0x140e36(0x1c8)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x140e36(0x20e)]=filterCat,exports['filterGrep']=filterGrep,exports[a0_0x140e36(0x1ac)]=filterFind;const path=__importStar(require(a0_0x140e36(0x21d))),LOCK_FILES=[a0_0x140e36(0x20d),a0_0x140e36(0x1b2),a0_0x140e36(0x1ec),'Cargo.lock',a0_0x140e36(0x218),'poetry.lock',a0_0x140e36(0x1fc),a0_0x140e36(0x207),'bun.lockb'],BINARY_EXTENSIONS=[a0_0x140e36(0x21e),'.min.css',a0_0x140e36(0x1aa),a0_0x140e36(0x1b8),'.png',a0_0x140e36(0x20a),a0_0x140e36(0x1e1),a0_0x140e36(0x1ab),a0_0x140e36(0x1fa),'.bmp','.webp','.svg',a0_0x140e36(0x1e9),a0_0x140e36(0x1dc),a0_0x140e36(0x202),a0_0x140e36(0x1f7),a0_0x140e36(0x1c2),a0_0x140e36(0x1af),'.7z',a0_0x140e36(0x206),a0_0x140e36(0x209),a0_0x140e36(0x1c1),a0_0x140e36(0x1ee),a0_0x140e36(0x1b5),a0_0x140e36(0x1e6),a0_0x140e36(0x1f2),a0_0x140e36(0x1d3),a0_0x140e36(0x1fd),a0_0x140e36(0x1d0),a0_0x140e36(0x1cb),a0_0x140e36(0x1d2),a0_0x140e36(0x204),a0_0x140e36(0x1f4),'.otf','.mp3','.mp4',a0_0x140e36(0x1cc),a0_0x140e36(0x1e0),a0_0x140e36(0x214),a0_0x140e36(0x215),a0_0x140e36(0x211),a0_0x140e36(0x213),a0_0x140e36(0x1ea),'.o',a0_0x140e36(0x205)];function extractFilename(_0x54cb82){const _0x5af3aa=a0_0x140e36,_0x10028e=_0x54cb82[_0x5af3aa(0x1f1)]()['split'](/\s+/);for(let _0x40c511=0x1;_0x40c511<_0x10028e[_0x5af3aa(0x21c)];_0x40c511++){if(!_0x10028e[_0x40c511]['startsWith']('-'))return _0x10028e[_0x40c511];}return null;}function filterLockFile(_0x2e5dd1,_0x144529){const _0x413d08=a0_0x140e36;try{const _0x56f4cc=path[_0x413d08(0x1bc)](_0x144529)['toLowerCase']();if(!LOCK_FILES[_0x413d08(0x1fe)](_0x406d37=>_0x56f4cc===_0x406d37[_0x413d08(0x219)]()))return null;const _0x10afc0=_0x2e5dd1[_0x413d08(0x21c)];let _0x1085cd=0x0;if(_0x56f4cc===_0x413d08(0x20d))try{const _0x1d3d09=JSON[_0x413d08(0x1d1)](_0x2e5dd1);_0x1085cd=Object[_0x413d08(0x1c7)](_0x1d3d09[_0x413d08(0x203)]||_0x1d3d09['dependencies']||{})[_0x413d08(0x21c)];}catch{_0x1085cd=(_0x2e5dd1[_0x413d08(0x1bd)](/"resolved":/g)||[])[_0x413d08(0x21c)];}else{if(_0x56f4cc===_0x413d08(0x1b2))_0x1085cd=(_0x2e5dd1['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x413d08(0x21c)];else{if(_0x56f4cc===_0x413d08(0x1b9)||_0x56f4cc===_0x413d08(0x1e2))_0x1085cd=(_0x2e5dd1[_0x413d08(0x1bd)](/\[\[package\]\]/g)||[])['length'];else{if(_0x56f4cc===_0x413d08(0x218))_0x1085cd=Math[_0x413d08(0x1c5)](_0x2e5dd1['split']('\x0a')[_0x413d08(0x1b3)](_0x524e66=>_0x524e66[_0x413d08(0x1f1)]())['length']/0x2);else{if(_0x56f4cc===_0x413d08(0x1fc))try{_0x1085cd=JSON[_0x413d08(0x1d1)](_0x2e5dd1)[_0x413d08(0x203)]?.[_0x413d08(0x21c)]||0x0;}catch{}else _0x56f4cc===_0x413d08(0x1ec)?_0x1085cd=(_0x2e5dd1[_0x413d08(0x1bd)](/^\s{2}['"@a-z]/gm)||[])[_0x413d08(0x21c)]:_0x1085cd=_0x2e5dd1[_0x413d08(0x1e3)]('\x0a')[_0x413d08(0x1b3)](_0x20597b=>_0x20597b[_0x413d08(0x1f1)]())[_0x413d08(0x21c)];}}}}return _0x413d08(0x1e5)+path[_0x413d08(0x1bc)](_0x144529)+':\x20'+_0x1085cd+_0x413d08(0x1f8)+_0x10afc0[_0x413d08(0x1ad)]()+_0x413d08(0x1f0);}catch{return null;}}function filterBinaryOrMinified(_0xc453aa,_0x388752){const _0x4c62cc=a0_0x140e36;try{if(_0x388752){const _0x562aeb=_0x388752[_0x4c62cc(0x219)]();for(const _0x44d9c4 of BINARY_EXTENSIONS){if(_0x562aeb[_0x4c62cc(0x1e7)](_0x44d9c4))return'[binary/minified\x20file]\x20'+path['basename'](_0x388752)+',\x20'+_0xc453aa[_0x4c62cc(0x21c)]['toLocaleString']()+'\x20chars,\x20type:\x20'+_0x44d9c4+_0x4c62cc(0x1d4);}}const _0x3cb590=_0xc453aa['substring'](0x0,0x3e8);let _0xbc5980=0x0;for(let _0x1ff441=0x0;_0x1ff441<_0x3cb590[_0x4c62cc(0x21c)];_0x1ff441++){if(_0x3cb590[_0x4c62cc(0x21b)](_0x1ff441)===0x0)_0xbc5980++;}if(_0xbc5980>0x0)return _0x4c62cc(0x1de)+_0xc453aa[_0x4c62cc(0x21c)][_0x4c62cc(0x1ad)]()+'\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)';let _0x3c6ebf=0x0;for(let _0x34eb8a=0x0;_0x34eb8a<_0x3cb590[_0x4c62cc(0x21c)];_0x34eb8a++){const _0x5cfe1e=_0x3cb590[_0x4c62cc(0x21b)](_0x34eb8a);if(_0x5cfe1e<0x20&&_0x5cfe1e!==0xa&&_0x5cfe1e!==0xd&&_0x5cfe1e!==0x9)_0x3c6ebf++;}if(_0x3cb590[_0x4c62cc(0x21c)]>0x64&&_0x3c6ebf>_0x3cb590[_0x4c62cc(0x21c)]*0.1)return _0x4c62cc(0x1de)+_0xc453aa[_0x4c62cc(0x21c)][_0x4c62cc(0x1ad)]()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x3e7633=_0xc453aa[_0x4c62cc(0x1e3)]('\x0a');if(_0x3e7633[_0x4c62cc(0x21c)]<=0x3&&_0xc453aa[_0x4c62cc(0x21c)]>0x1388)return'[minified\x20file]\x20'+_0xc453aa[_0x4c62cc(0x21c)][_0x4c62cc(0x1ad)]()+_0x4c62cc(0x1bb)+_0x3e7633['length']+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0xc3e1ca){const _0x3984af=a0_0x140e36;try{const _0x38b5bf=_0xc3e1ca[_0x3984af(0x1f1)]();if(!_0x38b5bf[_0x3984af(0x1bf)]('{')&&!_0x38b5bf[_0x3984af(0x1bf)]('['))return null;const _0x401f3c=_0x38b5bf[_0x3984af(0x1e3)]('\x0a');if(_0x401f3c[_0x3984af(0x21c)]<=0x14)return null;const _0x52ed0f=JSON['parse'](_0x38b5bf),_0x55f1f4=JSON['stringify'](_0x52ed0f);if(_0x55f1f4[_0x3984af(0x21c)]<_0x38b5bf[_0x3984af(0x21c)])return _0x55f1f4;return null;}catch{return null;}}function filterLs(_0x389f8c){const _0x4f9066=a0_0x140e36,_0x510e89=_0x389f8c[_0x4f9066(0x1e3)]('\x0a')['filter'](_0x22daf4=>_0x22daf4[_0x4f9066(0x1f1)]()[_0x4f9066(0x21c)]>0x0);if(_0x510e89[_0x4f9066(0x21c)]===0x0)return'Empty\x20directory';if(_0x510e89[_0x4f9066(0x21c)]<=0x1e)return _0x389f8c['trim']();const _0x2fb3c7=[],_0x6f96f1=[];for(const _0x15cf59 of _0x510e89){const _0x26536a=_0x15cf59[_0x4f9066(0x1f1)]();if(_0x26536a[_0x4f9066(0x1bf)]('total\x20')||_0x26536a[_0x4f9066(0x1bf)]('d')&&_0x26536a[_0x4f9066(0x1d9)]('..'))continue;_0x26536a['endsWith']('/')||_0x26536a['startsWith']('d')&&_0x26536a['includes']('\x20')?_0x2fb3c7['push'](_0x26536a):_0x6f96f1[_0x4f9066(0x200)](_0x26536a);}const _0x54412c=[];return _0x2fb3c7['length']>0x0&&(_0x2fb3c7[_0x4f9066(0x21c)]<=0xf?_0x54412c[_0x4f9066(0x200)](..._0x2fb3c7):(_0x54412c[_0x4f9066(0x200)](..._0x2fb3c7['slice'](0x0,0xa)),_0x54412c[_0x4f9066(0x200)](_0x4f9066(0x1e4)+(_0x2fb3c7[_0x4f9066(0x21c)]-0xa)+_0x4f9066(0x1d6)))),_0x6f96f1['length']>0x0&&(_0x6f96f1[_0x4f9066(0x21c)]<=0x14?_0x54412c[_0x4f9066(0x200)](..._0x6f96f1):(_0x54412c['push'](..._0x6f96f1[_0x4f9066(0x1b6)](0x0,0xf)),_0x54412c[_0x4f9066(0x200)]('...\x20+'+(_0x6f96f1[_0x4f9066(0x21c)]-0xf)+_0x4f9066(0x1be)))),_0x54412c['push']('\x0a('+_0x2fb3c7[_0x4f9066(0x21c)]+_0x4f9066(0x210)+_0x6f96f1['length']+_0x4f9066(0x1d8)),_0x54412c['join']('\x0a');}function filterTree(_0x39070b){const _0x117211=a0_0x140e36,_0x2988bc=_0x39070b[_0x117211(0x1e3)]('\x0a');if(_0x2988bc[_0x117211(0x21c)]<=0x32)return _0x39070b[_0x117211(0x1f1)]();const _0x16a8fb=[];let _0x4b9456=0x0,_0x161731=0x0,_0x2fae82=0x0;for(const _0x1fd841 of _0x2988bc){const _0x57d766=_0x1fd841[_0x117211(0x1bd)](/(\d+)\s+director/),_0x35f905=_0x1fd841[_0x117211(0x1bd)](/(\d+)\s+file/);if(_0x57d766)_0x2fae82=parseInt(_0x57d766[0x1]);if(_0x35f905)_0x161731=parseInt(_0x35f905[0x1]);const _0xae9d72=(_0x1fd841[_0x117211(0x1bd)](/^[│├└\s─]+/)||[''])[0x0][_0x117211(0x21c)];_0xae9d72<=0x4&&(_0x16a8fb[_0x117211(0x200)](_0x1fd841),_0x4b9456++);}return _0x2988bc[_0x117211(0x21c)]>_0x16a8fb[_0x117211(0x21c)]&&_0x16a8fb[_0x117211(0x200)](_0x117211(0x1fb)+_0x2fae82+'\x20directories,\x20'+_0x161731+_0x117211(0x1ed)),_0x16a8fb[_0x117211(0x1c3)]('\x0a');}function filterCat(_0xec1a72,_0x36fc80=''){const _0x2da747=a0_0x140e36,_0x44267f=extractFilename(_0x36fc80);try{if(_0x44267f){const _0x5da2a0=filterLockFile(_0xec1a72,_0x44267f);if(_0x5da2a0)return _0x5da2a0;}const _0x592040=filterBinaryOrMinified(_0xec1a72,_0x44267f);if(_0x592040)return _0x592040;const _0x2c06d1=filterJsonMinify(_0xec1a72);if(_0x2c06d1)return _0x2c06d1;}catch{}const _0xfdda0d=_0xec1a72[_0x2da747(0x1e3)]('\x0a');if(_0xfdda0d[_0x2da747(0x21c)]<=0x64)return _0xec1a72;const _0x3219ec=[];return _0x3219ec[_0x2da747(0x200)](..._0xfdda0d[_0x2da747(0x1b6)](0x0,0x32)),_0x3219ec[_0x2da747(0x200)]('\x0a...\x20['+(_0xfdda0d['length']-0x50)+_0x2da747(0x1eb)),_0x3219ec['push'](..._0xfdda0d[_0x2da747(0x1b6)](-0x1e)),_0x3219ec[_0x2da747(0x200)]('\x0a('+_0xfdda0d['length']+'\x20lines\x20total)'),_0x3219ec[_0x2da747(0x1c3)]('\x0a');}function filterGrep(_0x272235){const _0x2a337d=a0_0x140e36,_0x4a3a1d=_0x272235[_0x2a337d(0x1e3)]('\x0a')[_0x2a337d(0x1b3)](_0x1577b7=>_0x1577b7[_0x2a337d(0x1f1)]()[_0x2a337d(0x21c)]>0x0);if(_0x4a3a1d[_0x2a337d(0x21c)]===0x0)return _0x2a337d(0x1c9);if(_0x4a3a1d[_0x2a337d(0x21c)]<=0x32)return _0x272235[_0x2a337d(0x1f1)]();const _0x176f52={},_0x41599e=[];for(const _0x18ec78 of _0x4a3a1d){const _0x511df3=_0x18ec78[_0x2a337d(0x1b7)](':');if(_0x511df3>0x0&&_0x511df3<0xc8){const _0x3a1526=_0x18ec78[_0x2a337d(0x1cd)](0x0,_0x511df3);if(_0x3a1526[_0x2a337d(0x1d9)]('/')||_0x3a1526['includes']('\x5c')||_0x3a1526['includes']('.')){if(!_0x176f52[_0x3a1526])_0x176f52[_0x3a1526]=[];_0x176f52[_0x3a1526][_0x2a337d(0x200)](_0x18ec78[_0x2a337d(0x1cd)](_0x511df3+0x1)[_0x2a337d(0x1f1)]());continue;}}_0x41599e[_0x2a337d(0x200)](_0x18ec78);}const _0x2da29d=[],_0x410dd0=Object['keys'](_0x176f52);if(_0x410dd0[_0x2a337d(0x21c)]>0x0){const _0x3e0200=0x14,_0x47df3e=_0x410dd0[_0x2a337d(0x1b6)](0x0,_0x3e0200);for(const _0x210ed3 of _0x47df3e){const _0x59c39e=_0x176f52[_0x210ed3];if(_0x59c39e[_0x2a337d(0x21c)]<=0x3)for(const _0x3c7ae5 of _0x59c39e){_0x2da29d[_0x2a337d(0x200)](_0x210ed3+':\x20'+_0x3c7ae5);}else _0x2da29d[_0x2a337d(0x200)](_0x210ed3+':\x20'+_0x59c39e[0x0]),_0x2da29d[_0x2a337d(0x200)](_0x210ed3+_0x2a337d(0x21a)+_0x59c39e[_0x2a337d(0x21c)]+_0x2a337d(0x21f));}_0x410dd0['length']>_0x3e0200&&_0x2da29d[_0x2a337d(0x200)]('...\x20+'+(_0x410dd0[_0x2a337d(0x21c)]-_0x3e0200)+'\x20more\x20files\x20with\x20matches');}if(_0x41599e['length']>0x0){const _0x38a151=0x1e;_0x2da29d['push'](..._0x41599e[_0x2a337d(0x1b6)](0x0,_0x38a151)),_0x41599e[_0x2a337d(0x21c)]>_0x38a151&&_0x2da29d[_0x2a337d(0x200)](_0x2a337d(0x1e4)+(_0x41599e[_0x2a337d(0x21c)]-_0x38a151)+_0x2a337d(0x1b1));}const _0x3b921d=_0x4a3a1d[_0x2a337d(0x21c)];return _0x2da29d[_0x2a337d(0x200)]('\x0a('+_0x3b921d+_0x2a337d(0x1f6)+(_0x410dd0['length']||'?')+_0x2a337d(0x1d8)),_0x2da29d['join']('\x0a');}function filterFind(_0x3f3eb8){const _0x56e6da=a0_0x140e36,_0x47d432=_0x3f3eb8[_0x56e6da(0x1e3)]('\x0a')[_0x56e6da(0x1b3)](_0x499fcd=>_0x499fcd[_0x56e6da(0x1f1)]()[_0x56e6da(0x21c)]>0x0);if(_0x47d432['length']===0x0)return _0x56e6da(0x1b0);if(_0x47d432[_0x56e6da(0x21c)]<=0x32)return _0x3f3eb8['trim']();const _0x2f85b0={};for(const _0x4f60ed of _0x47d432){const _0x11d155=path[_0x56e6da(0x1b4)](_0x4f60ed[_0x56e6da(0x1f1)]())||'.';_0x2f85b0[_0x11d155]=(_0x2f85b0[_0x11d155]||0x0)+0x1;}const _0x938998=Object[_0x56e6da(0x20c)](_0x2f85b0)[_0x56e6da(0x1ae)]((_0x3117f9,_0x47a069)=>_0x47a069[0x1]-_0x3117f9[0x1]),_0x525667=[_0x47d432[_0x56e6da(0x21c)]+_0x56e6da(0x1ff)+_0x938998[_0x56e6da(0x21c)]+'\x20directories',''],_0x1328bf=0x1e;for(const [_0x5c76e5,_0x11eeb9]of _0x938998[_0x56e6da(0x1b6)](0x0,_0x1328bf)){_0x525667[_0x56e6da(0x200)]('\x20\x20'+_0x5c76e5+_0x56e6da(0x201)+_0x11eeb9+_0x56e6da(0x1d8));}return _0x938998[_0x56e6da(0x21c)]>_0x1328bf&&_0x525667['push'](_0x56e6da(0x1c4)+(_0x938998[_0x56e6da(0x21c)]-_0x1328bf)+'\x20more\x20directories'),_0x525667[_0x56e6da(0x1c3)]('\x0a');}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a0_0x411a(){const _0x9def2d=['result','5tCIIrJ','defineProperty','__esModule','write','mcp-tool-call','mcp\x20tool\x20(id:\x20','inherit','8MwXThl','getOwnPropertyDescriptor','hasOwnProperty','default','./tracker','trim','create','1345326FPczOv','pipe','tracker','content','runMcpProxy','createInterface','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','347246quSeqJ','type','4003097ujcZuK','message','2894eFJJMo','9345950hDvEtQ','getOwnPropertyNames','stdin','child_process','configurable','string','compressOutput','__setModuleDefault','error','__importStar','getConfig','stdout','jsonrpc','writable','2.0','__createBinding','line','stringify','close','prototype','55532OIyKqf','length','call','4545333pXhruN','isArray','text','39fgqqlM','redaction_enabled','spawn'];a0_0x411a=function(){return _0x9def2d;};return a0_0x411a();}function a0_0x47fe(_0x3d2c16,_0x440d07){_0x3d2c16=_0x3d2c16-0x1e1;const _0x411a22=a0_0x411a();let _0x47fe4a=_0x411a22[_0x3d2c16];return _0x47fe4a;}const a0_0xed1943=a0_0x47fe;(function(_0xd6be5e,_0x1ea798){const _0x379184=a0_0x47fe,_0x160e71=_0xd6be5e();while(!![]){try{const _0x22ac92=parseInt(_0x379184(0x203))/0x1+-parseInt(_0x379184(0x1ff))/0x2+-parseInt(_0x379184(0x1e6))/0x3*(parseInt(_0x379184(0x218))/0x4)+-parseInt(_0x379184(0x1ea))/0x5*(parseInt(_0x379184(0x1f8))/0x6)+parseInt(_0x379184(0x201))/0x7*(-parseInt(_0x379184(0x1f1))/0x8)+parseInt(_0x379184(0x1e3))/0x9+parseInt(_0x379184(0x204))/0xa;if(_0x22ac92===_0x1ea798)break;else _0x160e71['push'](_0x160e71['shift']());}catch(_0x51b32b){_0x160e71['push'](_0x160e71['shift']());}}}(a0_0x411a,0x475ec));var __createBinding=this&&this[a0_0xed1943(0x213)]||(Object[a0_0xed1943(0x1f7)]?function(_0x25fc36,_0x303df1,_0x466eb5,_0x31570){const _0x1a290f=a0_0xed1943;if(_0x31570===undefined)_0x31570=_0x466eb5;var _0x4b3c9f=Object[_0x1a290f(0x1f2)](_0x303df1,_0x466eb5);(!_0x4b3c9f||('get'in _0x4b3c9f?!_0x303df1[_0x1a290f(0x1ec)]:_0x4b3c9f[_0x1a290f(0x211)]||_0x4b3c9f[_0x1a290f(0x208)]))&&(_0x4b3c9f={'enumerable':!![],'get':function(){return _0x303df1[_0x466eb5];}}),Object['defineProperty'](_0x25fc36,_0x31570,_0x4b3c9f);}:function(_0x5ae31c,_0x59c321,_0x1851bf,_0x2b8073){if(_0x2b8073===undefined)_0x2b8073=_0x1851bf;_0x5ae31c[_0x2b8073]=_0x59c321[_0x1851bf];}),__setModuleDefault=this&&this[a0_0xed1943(0x20b)]||(Object['create']?function(_0x15a6ba,_0x2f607d){const _0x2aa2bf=a0_0xed1943;Object[_0x2aa2bf(0x1eb)](_0x15a6ba,_0x2aa2bf(0x1f4),{'enumerable':!![],'value':_0x2f607d});}:function(_0xff119d,_0x35f6b7){_0xff119d['default']=_0x35f6b7;}),__importStar=this&&this[a0_0xed1943(0x20d)]||(function(){var _0x1a3f18=function(_0x466d04){const _0x50cb6f=a0_0x47fe;return _0x1a3f18=Object[_0x50cb6f(0x205)]||function(_0x56da74){const _0x3064b1=_0x50cb6f;var _0x43a204=[];for(var _0x5af62b in _0x56da74)if(Object[_0x3064b1(0x217)][_0x3064b1(0x1f3)][_0x3064b1(0x1e2)](_0x56da74,_0x5af62b))_0x43a204[_0x43a204['length']]=_0x5af62b;return _0x43a204;},_0x1a3f18(_0x466d04);};return function(_0x3fb47b){const _0x5176d8=a0_0x47fe;if(_0x3fb47b&&_0x3fb47b['__esModule'])return _0x3fb47b;var _0x5c202d={};if(_0x3fb47b!=null){for(var _0x2b2e7d=_0x1a3f18(_0x3fb47b),_0x289e00=0x0;_0x289e00<_0x2b2e7d[_0x5176d8(0x1e1)];_0x289e00++)if(_0x2b2e7d[_0x289e00]!==_0x5176d8(0x1f4))__createBinding(_0x5c202d,_0x3fb47b,_0x2b2e7d[_0x289e00]);}return __setModuleDefault(_0x5c202d,_0x3fb47b),_0x5c202d;};}());Object['defineProperty'](exports,a0_0xed1943(0x1ec),{'value':!![]}),exports[a0_0xed1943(0x1fc)]=runMcpProxy;const child_process_1=require(a0_0xed1943(0x207)),readline=__importStar(require('readline')),filters_1=require('./filters'),tracker_1=require(a0_0xed1943(0x1f5));function runMcpProxy(_0x2f2c9f,_0x3ed8ca){const _0x5bcd97=a0_0xed1943,_0x13be94=(0x0,child_process_1[_0x5bcd97(0x1e8)])(_0x2f2c9f,_0x3ed8ca,{'stdio':['pipe',_0x5bcd97(0x1f9),_0x5bcd97(0x1f0)]});process[_0x5bcd97(0x206)][_0x5bcd97(0x1f9)](_0x13be94[_0x5bcd97(0x206)]);const _0x273b60=readline[_0x5bcd97(0x1fd)]({'input':_0x13be94[_0x5bcd97(0x20f)],'terminal':![]});_0x273b60['on'](_0x5bcd97(0x214),_0x4069f1=>{const _0x4ba912=_0x5bcd97;try{const _0x27ea76=JSON['parse'](_0x4069f1);if(_0x27ea76&&_0x27ea76[_0x4ba912(0x210)]===_0x4ba912(0x212)&&_0x27ea76['id']!==undefined&&_0x27ea76['result']&&Array[_0x4ba912(0x1e4)](_0x27ea76[_0x4ba912(0x1e9)][_0x4ba912(0x1fb)])){let _0x45fde9=![];for(const _0x3abed8 of _0x27ea76['result'][_0x4ba912(0x1fb)]){if(_0x3abed8[_0x4ba912(0x200)]==='text'&&typeof _0x3abed8[_0x4ba912(0x1e5)]===_0x4ba912(0x209)&&_0x3abed8[_0x4ba912(0x1e5)][_0x4ba912(0x1f6)]()[_0x4ba912(0x1e1)]>0x0){const _0x1456a6=_0x3abed8[_0x4ba912(0x1e5)],_0x20a02e=(0x0,filters_1[_0x4ba912(0x20a)])(_0x4ba912(0x1ee),_0x1456a6,'',tracker_1[_0x4ba912(0x1fa)][_0x4ba912(0x20e)]()[_0x4ba912(0x1e7)]);tracker_1[_0x4ba912(0x1fa)]['logExecution'](_0x4ba912(0x1ef)+_0x27ea76['id']+')',_0x1456a6,_0x20a02e,0x0),_0x3abed8[_0x4ba912(0x1e5)]=_0x20a02e,_0x45fde9=!![];}}_0x45fde9?process[_0x4ba912(0x20f)]['write'](JSON[_0x4ba912(0x215)](_0x27ea76)+'\x0a'):process[_0x4ba912(0x20f)][_0x4ba912(0x1ed)](_0x4069f1+'\x0a');}else process[_0x4ba912(0x20f)][_0x4ba912(0x1ed)](_0x4069f1+'\x0a');}catch{process[_0x4ba912(0x20f)][_0x4ba912(0x1ed)](_0x4069f1+'\x0a');}}),_0x13be94['on'](_0x5bcd97(0x216),_0x2696b1=>{process['exit'](_0x2696b1||0x0);}),_0x13be94['on'](_0x5bcd97(0x20c),_0x5ad816=>{const _0x2cd4bf=_0x5bcd97;console['error'](_0x2cd4bf(0x1fe)+_0x5ad816[_0x2cd4bf(0x202)]),process['exit'](0x1);});}
|
package/package.json
CHANGED
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x16edc7=a0_0x5ba5;function a0_0x36e4(){const _0x1fb519=['[REDACTED_PRIVATE_KEY]','IPv4\x20Address\x20(non-local)','Basic\x20Auth','Basic\x20[REDACTED_AUTH]','$1=[REDACTED_CREDENTIAL]','aws_secret','JWT\x20Token','2QLxemb','generic_credential','GitHub\x20Token','4706980spjuFU','[REDACTED_JWT]','697330teHPxw','6TFIyvj','[REDACTED_ANTHROPIC_KEY]','rules','openai_key','Redactor','SendGrid\x20Key','Twilio\x20Key','includes','615875FVDSTc','GCP\x20Service\x20Account\x20Key','3411712zBRkzr','sendgrid_key','[REDACTED_EMAIL]','Generic\x20API\x20Key/Secret/Password','Slack\x20Token','$1=[REDACTED_AWS_SECRET]','twilio_key','[REDACTED_IP]','db_connection','[REDACTED_SENDGRID_KEY]','gcp_key','ip_address','Bearer\x20Token','loadDefaultRules','email','[REDACTED_AWS_KEY]','[REDACTED_DB_CONNECTION]','regex','jwt','[REDACTED_SLACK_TOKEN]','AWS\x20Access\x20Key','\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22','1120042bIDtZC','Database\x20Connection\x20String','5196807qwkLKl','defineProperty','Azure\x20Connection\x20String','Email\x20Address','bearer','match','redactor','AWS\x20Secret\x20Key','length','slack_token','type','text','redact','OpenAI\x20API\x20Key','11MvxUtk','384SLplpm','18177LAuPIt','push','Private\x20Key\x20Block','aws_key','private_key','anthropic_key','[REDACTED_TWILIO_KEY]'];a0_0x36e4=function(){return _0x1fb519;};return a0_0x36e4();}(function(_0x4eefa5,_0x5cf546){const _0xa0750b=a0_0x5ba5,_0x1d439d=_0x4eefa5();while(!![]){try{const _0x4a1206=parseInt(_0xa0750b(0x1da))/0x1*(parseInt(_0xa0750b(0x1df))/0x2)+parseInt(_0xa0750b(0x1cc))/0x3*(-parseInt(_0xa0750b(0x1cb))/0x4)+parseInt(_0xa0750b(0x1e8))/0x5*(parseInt(_0xa0750b(0x1e0))/0x6)+parseInt(_0xa0750b(0x200))/0x7+parseInt(_0xa0750b(0x1ea))/0x8+parseInt(_0xa0750b(0x202))/0x9+-parseInt(_0xa0750b(0x1dd))/0xa*(parseInt(_0xa0750b(0x1ca))/0xb);if(_0x4a1206===_0x5cf546)break;else _0x1d439d['push'](_0x1d439d['shift']());}catch(_0x4013b4){_0x1d439d['push'](_0x1d439d['shift']());}}}(a0_0x36e4,0xe38c4));function a0_0x5ba5(_0x2f019d,_0x4b02d4){_0x2f019d=_0x2f019d-0x1c8;const _0x36e494=a0_0x36e4();let _0x5ba594=_0x36e494[_0x2f019d];return _0x5ba594;}Object[a0_0x16edc7(0x203)](exports,'__esModule',{'value':!![]}),exports['redactor']=exports[a0_0x16edc7(0x1e4)]=void 0x0;class Redactor{[a0_0x16edc7(0x1e2)]=[];constructor(){this['loadDefaultRules']();}[a0_0x16edc7(0x1f7)](){const _0x3e9fac=a0_0x16edc7;this['rules']=[{'name':_0x3e9fac(0x1fe),'type':_0x3e9fac(0x1cf),'regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0x3e9fac(0x1f9)},{'name':_0x3e9fac(0x209),'type':_0x3e9fac(0x1d8),'regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':_0x3e9fac(0x1ef)},{'name':_0x3e9fac(0x1e9),'type':_0x3e9fac(0x1f4),'regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':_0x3e9fac(0x1ff)},{'name':_0x3e9fac(0x204),'type':'azure_conn','regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':'[REDACTED_AZURE_CONNECTION]'},{'name':'Anthropic\x20API\x20Key','type':_0x3e9fac(0x1d1),'regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':_0x3e9fac(0x1e1)},{'name':_0x3e9fac(0x1c9),'type':_0x3e9fac(0x1e3),'regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':'[REDACTED_OPENAI_KEY]'},{'name':_0x3e9fac(0x1dc),'type':'github_token','regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':'[REDACTED_GITHUB_TOKEN]'},{'name':_0x3e9fac(0x1ee),'type':_0x3e9fac(0x20b),'regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':_0x3e9fac(0x1fd)},{'name':'Stripe\x20Key','type':'stripe_key','regex':/\b(sk_live_[A-Za-z0-9]{24,}|sk_test_[A-Za-z0-9]{24,}|rk_live_[A-Za-z0-9]{24,}|rk_test_[A-Za-z0-9]{24,})\b/g,'replacement':'[REDACTED_STRIPE_KEY]'},{'name':_0x3e9fac(0x1e6),'type':_0x3e9fac(0x1f0),'regex':/\bSK[0-9a-f]{32}\b/g,'replacement':_0x3e9fac(0x1d2)},{'name':_0x3e9fac(0x1e5),'type':_0x3e9fac(0x1eb),'regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':_0x3e9fac(0x1f3)},{'name':_0x3e9fac(0x1ce),'type':_0x3e9fac(0x1d0),'regex':/-----BEGIN\s+(RSA|EC|DSA|ED25519|OPENSSH|PGP)?\s*PRIVATE KEY-----[\s\S]*?-----END\s+(RSA|EC|DSA|ED25519|OPENSSH|PGP)?\s*PRIVATE KEY-----/g,'replacement':_0x3e9fac(0x1d3)},{'name':_0x3e9fac(0x1d9),'type':_0x3e9fac(0x1fc),'regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':_0x3e9fac(0x1de)},{'name':_0x3e9fac(0x1f6),'type':_0x3e9fac(0x206),'regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':'Bearer\x20[REDACTED_TOKEN]'},{'name':_0x3e9fac(0x1d5),'type':'basic_auth','regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':_0x3e9fac(0x1d6)},{'name':_0x3e9fac(0x201),'type':_0x3e9fac(0x1f2),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x3e9fac(0x1fa)},{'name':_0x3e9fac(0x1ed),'type':_0x3e9fac(0x1db),'regex':/(api[_-]?key|secret[_-]?key|password|passwd|auth[_-]?token|private[_-]?key|access[_-]?token|refresh[_-]?token|client[_-]?secret)[\s:="']+[A-Za-z0-9_\-./+=]{16,}/gi,'replacement':_0x3e9fac(0x1d7)},{'name':_0x3e9fac(0x1d4),'type':_0x3e9fac(0x1f5),'regex':/\b(?!127\.0\.0\.1|0\.0\.0\.0|255\.255\.255\.0|10\.\d|172\.(1[6-9]|2\d|3[01])\.|192\.168\.)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x3e9fac(0x1f1),'alert':![]},{'name':_0x3e9fac(0x205),'type':_0x3e9fac(0x1f8),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x3e9fac(0x1ec),'alert':![]}];}[a0_0x16edc7(0x1c8)](_0x1dae6d){const _0x2e5a96=a0_0x16edc7;return this['redactWithAudit'](_0x1dae6d)[_0x2e5a96(0x20d)];}['redactWithAudit'](_0x56999a){const _0x231e48=a0_0x16edc7;let _0x3f8ccb=_0x56999a,_0x158f36=0x0;const _0x163997=[];for(const _0x369d5a of this[_0x231e48(0x1e2)]){const _0x50ab37=_0x3f8ccb[_0x231e48(0x207)](_0x369d5a['regex']);_0x50ab37&&_0x50ab37[_0x231e48(0x20a)]>0x0&&(_0x369d5a['alert']!==![]&&(_0x158f36+=_0x50ab37[_0x231e48(0x20a)],!_0x163997[_0x231e48(0x1e7)](_0x369d5a[_0x231e48(0x20c)])&&_0x163997[_0x231e48(0x1cd)](_0x369d5a[_0x231e48(0x20c)])),_0x3f8ccb=_0x3f8ccb['replace'](_0x369d5a[_0x231e48(0x1fb)],_0x369d5a['replacement']));}return{'text':_0x3f8ccb,'secretsFound':_0x158f36,'secretTypes':_0x163997};}}exports[a0_0x16edc7(0x1e4)]=Redactor,exports[a0_0x16edc7(0x208)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x583721=a0_0x45e6;function a0_0x45e6(_0x4b05cb,_0x514e2c){_0x4b05cb=_0x4b05cb-0x113;const _0x376d43=a0_0x376d();let _0x45e654=_0x376d43[_0x4b05cb];return _0x45e654;}(function(_0x190759,_0x5b577b){const _0x321e5b=a0_0x45e6,_0x257976=_0x190759();while(!![]){try{const _0x39d2e3=parseInt(_0x321e5b(0x12b))/0x1*(-parseInt(_0x321e5b(0x11e))/0x2)+parseInt(_0x321e5b(0x11f))/0x3+parseInt(_0x321e5b(0x11a))/0x4*(-parseInt(_0x321e5b(0x120))/0x5)+parseInt(_0x321e5b(0x118))/0x6*(parseInt(_0x321e5b(0x130))/0x7)+parseInt(_0x321e5b(0x135))/0x8+-parseInt(_0x321e5b(0x133))/0x9*(parseInt(_0x321e5b(0x128))/0xa)+parseInt(_0x321e5b(0x121))/0xb;if(_0x39d2e3===_0x5b577b)break;else _0x257976['push'](_0x257976['shift']());}catch(_0x4056f0){_0x257976['push'](_0x257976['shift']());}}}(a0_0x376d,0x54151));Object['defineProperty'](exports,a0_0x583721(0x11d),{'value':!![]});const tracker_1=require(a0_0x583721(0x12a));function a0_0x376d(){const _0x4d10f4=['logExecution','All\x20303\x20tests\x20passed\x20in\x204.22s.','log','Successfully\x20built\x20image.','gemini-1-5-pro','pytest\x20tests/app','claude-3-opus','3819306ufsAeo','test_auth.py\x20PASS\x0a','2047316xlhxql','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','__esModule','586BlcOqH','2042361yastaP','5QimBmQ','1592283wNZdkS','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Test\x20suite\x20run\x20starting...\x0a','repeat','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','7990xAracB','docker\x20build\x20.','./tracker','778xWistU','gpt-4o','tracker','Step\x201/10\x20:\x20FROM\x20node:20\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','7sRWpQT','Database\x20successfully\x20seeded!','Compilation\x20Output:\x0a','5085smplTx','added\x201420\x20packages\x20in\x2014s\x0a','588224wzuBWo','Optimizing\x20assets...\x0a'];a0_0x376d=function(){return _0x4d10f4;};return a0_0x376d();}console[a0_0x583721(0x113)](a0_0x583721(0x126)),process.env.TRIMPROMPT_MODEL=a0_0x583721(0x117),tracker_1['tracker']['logExecution']('npm\x20run\x20build',a0_0x583721(0x132)+'[INFO]\x20Building\x20modules...\x0a'+a0_0x583721(0x136)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x583721(0x124)](0x190),a0_0x583721(0x12f),0x0),process.env.TRIMPROMPT_MODEL=a0_0x583721(0x12c),tracker_1[a0_0x583721(0x12d)]['logExecution'](a0_0x583721(0x116),a0_0x583721(0x123)+a0_0x583721(0x119)+'test_db.py\x20PASS\x0a'+'test_api.py\x20PASS\x0a'[a0_0x583721(0x124)](0x12c)+a0_0x583721(0x138),a0_0x583721(0x122),0x0),process.env.TRIMPROMPT_MODEL=a0_0x583721(0x115),tracker_1['tracker'][a0_0x583721(0x137)](a0_0x583721(0x129),a0_0x583721(0x11c)+a0_0x583721(0x12e)+a0_0x583721(0x125)+a0_0x583721(0x127)+a0_0x583721(0x134)['repeat'](0x3)+a0_0x583721(0x114),a0_0x583721(0x11b),0x0),console[a0_0x583721(0x113)](a0_0x583721(0x131));
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x6b55f3=a0_0x52eb;(function(_0x207861,_0x19e0b0){const _0x47a406=a0_0x52eb,_0x3a38ad=_0x207861();while(!![]){try{const _0x449118=-parseInt(_0x47a406(0x17b))/0x1+-parseInt(_0x47a406(0x177))/0x2*(-parseInt(_0x47a406(0x153))/0x3)+parseInt(_0x47a406(0x157))/0x4+-parseInt(_0x47a406(0x154))/0x5+parseInt(_0x47a406(0x19b))/0x6+-parseInt(_0x47a406(0x155))/0x7*(parseInt(_0x47a406(0x14f))/0x8)+-parseInt(_0x47a406(0x15d))/0x9*(parseInt(_0x47a406(0x1b3))/0xa);if(_0x449118===_0x19e0b0)break;else _0x3a38ad['push'](_0x3a38ad['shift']());}catch(_0x469f03){_0x3a38ad['push'](_0x3a38ad['shift']());}}}(a0_0x588f,0x62bc5));var __createBinding=this&&this[a0_0x6b55f3(0x17e)]||(Object['create']?function(_0x5388e6,_0x10c9a6,_0x18b73e,_0x530a19){const _0x4c7505=a0_0x6b55f3;if(_0x530a19===undefined)_0x530a19=_0x18b73e;var _0x4cacdf=Object['getOwnPropertyDescriptor'](_0x10c9a6,_0x18b73e);(!_0x4cacdf||(_0x4c7505(0x16f)in _0x4cacdf?!_0x10c9a6[_0x4c7505(0x161)]:_0x4cacdf[_0x4c7505(0x172)]||_0x4cacdf[_0x4c7505(0x1a9)]))&&(_0x4cacdf={'enumerable':!![],'get':function(){return _0x10c9a6[_0x18b73e];}}),Object[_0x4c7505(0x1c1)](_0x5388e6,_0x530a19,_0x4cacdf);}:function(_0x2430f3,_0x5d9acb,_0x4a42e1,_0x25e8d1){if(_0x25e8d1===undefined)_0x25e8d1=_0x4a42e1;_0x2430f3[_0x25e8d1]=_0x5d9acb[_0x4a42e1];}),__setModuleDefault=this&&this[a0_0x6b55f3(0x19a)]||(Object[a0_0x6b55f3(0x182)]?function(_0x4d0f11,_0x4d3fd9){const _0xf2bfa6=a0_0x6b55f3;Object[_0xf2bfa6(0x1c1)](_0x4d0f11,_0xf2bfa6(0x169),{'enumerable':!![],'value':_0x4d3fd9});}:function(_0x40c2df,_0x6131dc){_0x40c2df['default']=_0x6131dc;}),__importStar=this&&this['__importStar']||(function(){var _0x1aee5c=function(_0x3d5abb){const _0x16d9bd=a0_0x52eb;return _0x1aee5c=Object[_0x16d9bd(0x1c3)]||function(_0x58e076){const _0x3545d4=_0x16d9bd;var _0x152d50=[];for(var _0x54265c in _0x58e076)if(Object[_0x3545d4(0x185)][_0x3545d4(0x15b)][_0x3545d4(0x180)](_0x58e076,_0x54265c))_0x152d50[_0x152d50[_0x3545d4(0x179)]]=_0x54265c;return _0x152d50;},_0x1aee5c(_0x3d5abb);};return function(_0x593da4){const _0x6277c=a0_0x52eb;if(_0x593da4&&_0x593da4[_0x6277c(0x161)])return _0x593da4;var _0x5b38e8={};if(_0x593da4!=null){for(var _0xd4ae1f=_0x1aee5c(_0x593da4),_0xdbc4a=0x0;_0xdbc4a<_0xd4ae1f['length'];_0xdbc4a++)if(_0xd4ae1f[_0xdbc4a]!==_0x6277c(0x169))__createBinding(_0x5b38e8,_0x593da4,_0xd4ae1f[_0xdbc4a]);}return __setModuleDefault(_0x5b38e8,_0x593da4),_0x5b38e8;};}());function a0_0x52eb(_0x3ee980,_0xafd867){_0x3ee980=_0x3ee980-0x14d;const _0x588f82=a0_0x588f();let _0x52eb5d=_0x588f82[_0x3ee980];return _0x52eb5d;}Object[a0_0x6b55f3(0x1c1)](exports,'__esModule',{'value':!![]}),exports['installShims']=installShims,exports[a0_0x6b55f3(0x1ac)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x6b55f3(0x16e))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x6b55f3(0x190),'cat',a0_0x6b55f3(0x19c),a0_0x6b55f3(0x1bc),'rg',a0_0x6b55f3(0x1ae),a0_0x6b55f3(0x17d),'gh',a0_0x6b55f3(0x191),'cargo',a0_0x6b55f3(0x16c),a0_0x6b55f3(0x165),'npx',a0_0x6b55f3(0x196),a0_0x6b55f3(0x1a2),'docker',a0_0x6b55f3(0x184),'pip',a0_0x6b55f3(0x1b6),'go','find'],PROFILE_MARKER=a0_0x6b55f3(0x18b);function getExecSync(){const _0x50b22a=a0_0x6b55f3;return require(_0x50b22a(0x176))[_0x50b22a(0x170)];}function getExecFileSync(){const _0x40aa2d=a0_0x6b55f3;return require('child_process')[_0x40aa2d(0x199)];}function ensureProfileContains(_0x5d00ae,_0x4f2d78,_0x344807){const _0x21d98d=a0_0x6b55f3;try{const _0x405fc4=path[_0x21d98d(0x15e)](_0x5d00ae);!fs[_0x21d98d(0x1a4)](_0x405fc4)&&fs[_0x21d98d(0x178)](_0x405fc4,{'recursive':!![]});if(fs[_0x21d98d(0x1a4)](_0x5d00ae)){const _0x14185e=fs[_0x21d98d(0x1b1)](_0x5d00ae,_0x21d98d(0x1af));if(_0x14185e[_0x21d98d(0x1c0)](_0x4f2d78))return;fs[_0x21d98d(0x1c4)](_0x5d00ae,_0x344807,_0x21d98d(0x1af));}else fs[_0x21d98d(0x1b5)](_0x5d00ae,_0x344807,_0x21d98d(0x1af));}catch{}}function removeProfileBlock(_0x32f509,_0x16801b){const _0x3c8d37=a0_0x6b55f3;try{if(!fs[_0x3c8d37(0x1a4)](_0x32f509))return;const _0x4dc591=fs[_0x3c8d37(0x1b1)](_0x32f509,_0x3c8d37(0x1af));if(!_0x4dc591[_0x3c8d37(0x1c0)](_0x16801b))return;const _0x2d6933=_0x4dc591[_0x3c8d37(0x1a1)]('\x0a'),_0x544c94=[];let _0x285e6c=![];for(let _0x16d863=0x0;_0x16d863<_0x2d6933['length'];_0x16d863++){if(_0x2d6933[_0x16d863][_0x3c8d37(0x1c0)](_0x16801b)){_0x285e6c=!![];continue;}if(_0x285e6c){_0x285e6c=![];continue;}_0x544c94['push'](_0x2d6933[_0x16d863]);}const _0x304dc4=_0x544c94['join']('\x0a')[_0x3c8d37(0x167)](/\n{3,}/g,'\x0a\x0a');fs[_0x3c8d37(0x1b5)](_0x32f509,_0x304dc4,'utf8');}catch{}}function collectPowerShellProfiles(){const _0x4a1bd9=a0_0x6b55f3,_0x403d14=getExecSync(),_0x35af1d=[],_0x24e73e=[['powershell',_0x4a1bd9(0x1be)],[_0x4a1bd9(0x14e),'$PROFILE.CurrentUserAllHosts']];try{_0x403d14('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x4a1bd9(0x15c)}),_0x24e73e[_0x4a1bd9(0x174)]([_0x4a1bd9(0x1b0),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x10b3cd,_0x15ec7a]of _0x24e73e){try{const _0x1cc17f=_0x403d14(_0x10b3cd+_0x4a1bd9(0x1b4)+_0x15ec7a+'\x22',{'encoding':_0x4a1bd9(0x1af)})[_0x4a1bd9(0x1b9)]();_0x1cc17f&&!_0x35af1d[_0x4a1bd9(0x1c5)](_0x200206=>_0x200206[_0x4a1bd9(0x183)]()===_0x1cc17f[_0x4a1bd9(0x183)]())&&_0x35af1d['push'](_0x1cc17f);}catch{}}return _0x35af1d;}function a0_0x588f(){const _0x17066c=['\x20\x22$@\x22;\x20fi\x0a','if\x20exist\x20\x22','26766qIYIMw','2400300wrcDEE','7qgTkTD','[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.','3136592vzIKZk','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','-Command','\x0a#\x20','hasOwnProperty','ignore','319311yJETkY','dirname','platform','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','__esModule','Remove-ItemProperty\x20-Path\x20\x27','.bashrc','New-Item\x20-Path\x20\x27','pnpm','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','replace','rmdirSync','default','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','npm','.bash_profile','path','get','execSync','.ps1','writable','powershell.exe','push','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','child_process','144zWcKpg','mkdirSync','length','trim.ps1','118850EMluay','\x20@args\x20}\x20else\x20{\x20&\x20','git','__createBinding','powershell\x20-NoProfile\x20-Command\x20\x22','call',';\x22\x20+\x20$env:PATH\x0a','create','toLowerCase','pytest','prototype','\x0aexport\x20PATH=\x22','\x27,\x20\x27User\x27)','chmodSync','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','filter','TrimPrompt\x20Shims\x20PATH','unlinkSync','755','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','-NoProfile','tree','glab','readdirSync','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','.profile','map','yarn','win32',';=%\x22','execFileSync','__setModuleDefault','1660626NjoYrc','read','\x20\x20set\x20\x22PATH=%PATH:','.trimprompt','join','\x20&\x20','split','kubectl','pipe','existsSync','message','shims',':$PATH\x22\x0a','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','configurable','\x22\x20set\x20\x22PATH=','\x20%*','uninstallShims','.zshrc','ruff','utf8','pwsh','readFileSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','190zUnQSU','\x20-NoProfile\x20-Command\x20\x22','writeFileSync','pip3','@echo\x20off','homedir','trim','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','trim.cmd','grep','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','$PROFILE.CurrentUserCurrentHost','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','includes','defineProperty','\x20commands.\x0a\x0a','getOwnPropertyNames','appendFileSync','some','Set-ItemProperty\x20-Path\x20\x27','powershell','206968UyeDFT',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'];a0_0x588f=function(){return _0x17066c;};return a0_0x588f();}function getBashProfilesWindows(){const _0x25ddca=a0_0x6b55f3,_0x46d809=os[_0x25ddca(0x1b8)]();return[_0x25ddca(0x163),_0x25ddca(0x16d)][_0x25ddca(0x195)](_0x384c1f=>path['join'](_0x46d809,_0x384c1f));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x48c93f=a0_0x6b55f3,_0x56da90=path[_0x48c93f(0x19f)](os[_0x48c93f(0x1b8)](),_0x48c93f(0x19e),_0x48c93f(0x1a6));try{!fs[_0x48c93f(0x1a4)](_0x56da90)&&fs[_0x48c93f(0x178)](_0x56da90,{'recursive':!![]});const _0xb34ee6=os[_0x48c93f(0x15f)]()===_0x48c93f(0x197);for(const _0x295761 of SHIMMED_COMMANDS){if(_0xb34ee6){const _0x3c6e66=path['join'](_0x56da90,_0x295761+'.cmd'),_0x25ee59=process.env.APPDATA?path[_0x48c93f(0x19f)](process.env.APPDATA,_0x48c93f(0x16c)):'',_0x3d70ad=_0x25ee59?_0x48c93f(0x152)+path[_0x48c93f(0x19f)](_0x25ee59,_0x48c93f(0x1bb))+'\x22':_0x48c93f(0x189),_0xf9c6b7=[_0x48c93f(0x1b7),_0x3d70ad+'\x20(','\x20\x20trim\x20'+_0x295761+'\x20%*',')\x20else\x20(',_0x48c93f(0x19d)+_0x56da90+_0x48c93f(0x198),'\x20\x20'+_0x295761+_0x48c93f(0x1ab),')'][_0x48c93f(0x19f)]('\x0d\x0a')+'\x0d\x0a';fs[_0x48c93f(0x1b5)](_0x3c6e66,_0xf9c6b7,_0x48c93f(0x1af));const _0x3e38f7=path['join'](_0x56da90,_0x295761+_0x48c93f(0x171)),_0x1941ba=_0x48c93f(0x193)+_0x295761+_0x48c93f(0x17c)+_0x295761+'\x20@args\x20}\x0a';fs[_0x48c93f(0x1b5)](_0x3e38f7,_0x1941ba,_0x48c93f(0x1af));const _0x1ef6b9=path['join'](_0x56da90,_0x295761),_0x391a0c=_0x56da90[_0x48c93f(0x167)](/\\/g,'/')[_0x48c93f(0x167)](/^([A-Za-z]):/,(_0x13e04a,_0x458a54)=>'/'+_0x458a54[_0x48c93f(0x183)]()),_0x11589f='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x295761+_0x48c93f(0x175)+_0x391a0c+_0x48c93f(0x150)+_0x295761+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x48c93f(0x1b5)](_0x1ef6b9,_0x11589f,'utf8');}else{const _0x12157f=path[_0x48c93f(0x19f)](_0x56da90,_0x295761),_0x2dc73b=_0x48c93f(0x1bd)+_0x295761+'\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'+_0x295761+_0x48c93f(0x151);fs[_0x48c93f(0x1b5)](_0x12157f,_0x2dc73b,_0x48c93f(0x1af)),fs[_0x48c93f(0x188)](_0x12157f,_0x48c93f(0x18d));}}let _0x3aee66=![],_0x3903f3='';if(_0xb34ee6)try{const _0x1a81df=getExecSync(),_0x592703=_0x48c93f(0x15a)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x56da90+_0x48c93f(0x181),_0xb5911a=collectPowerShellProfiles();for(const _0xd8fb34 of _0xb5911a){ensureProfileContains(_0xd8fb34,_0x56da90,_0x592703);}try{const _0x57d123=getExecFileSync(),_0x481016='if\x20exist\x20\x22'+_0x56da90+_0x48c93f(0x1aa)+_0x56da90+';%PATH%\x22',_0x5e33f7='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x448f49='';try{const _0x15d98e=_0x48c93f(0x16b)+_0x5e33f7+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x448f49=_0x57d123(_0x48c93f(0x173),['-NoProfile',_0x48c93f(0x159),_0x15d98e],{'encoding':_0x48c93f(0x1af),'stdio':['pipe',_0x48c93f(0x1a3),_0x48c93f(0x15c)]})[_0x48c93f(0x1b9)]();}catch{}if(!_0x448f49[_0x48c93f(0x1c0)](_0x56da90)){const _0xc74652=_0x448f49?_0x448f49+_0x48c93f(0x1a0)+_0x481016:_0x481016,_0x569bd8=_0x48c93f(0x164)+_0x5e33f7+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x5e33f7+_0x48c93f(0x160)+_0xc74652+'\x27';_0x57d123(_0x48c93f(0x173),[_0x48c93f(0x18f),_0x48c93f(0x159),_0x569bd8],{'stdio':_0x48c93f(0x15c)});}}catch{}try{const _0x32a997=_0x56da90['replace'](/\\/g,'/')[_0x48c93f(0x167)](/^([A-Za-z]):/,(_0x4a15b9,_0x411a3e)=>'/'+_0x411a3e[_0x48c93f(0x183)]()),_0x588b43=_0x48c93f(0x15a)+PROFILE_MARKER+_0x48c93f(0x186)+_0x32a997+_0x48c93f(0x1a7),_0x43ae67=getBashProfilesWindows();let _0x188a93=![];for(const _0xd31d5 of _0x43ae67){fs['existsSync'](_0xd31d5)&&(ensureProfileContains(_0xd31d5,_0x32a997,_0x588b43),_0x188a93=!![]);}!_0x188a93&&ensureProfileContains(_0x43ae67[0x0],_0x32a997,_0x588b43);}catch{}const _0x2bc2b1=_0x48c93f(0x1ba),_0x44de82=_0x1a81df(_0x48c93f(0x17f)+_0x2bc2b1+'\x22',{'encoding':'utf8','stdio':[_0x48c93f(0x1a3),_0x48c93f(0x1a3),'ignore']})[_0x48c93f(0x1b9)]();if(!_0x44de82[_0x48c93f(0x1c0)](_0x56da90)){const _0x3eff85=_0x56da90+';'+_0x44de82,_0x5e6432=_0x3eff85[_0x48c93f(0x167)](/'/g,'\x27\x27'),_0x54eb7b=_0x48c93f(0x166)+_0x5e6432+_0x48c93f(0x187);_0x1a81df('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x54eb7b+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x212b18=path['join'](process.env.APPDATA||'',_0x48c93f(0x16c),_0x48c93f(0x17a));if(fs['existsSync'](_0x212b18))try{fs[_0x48c93f(0x18c)](_0x212b18);}catch{}_0x3aee66=!![];}catch(_0x430920){_0x3903f3=_0x48c93f(0x16a)+_0x56da90;}else try{const _0x36b58d='export\x20PATH=\x22'+_0x56da90+':$PATH\x22\x0a',_0x5af313=os[_0x48c93f(0x1b8)](),_0x5afb5c=[_0x48c93f(0x163),_0x48c93f(0x1ad),_0x48c93f(0x16d),_0x48c93f(0x194)];let _0x288e6a=![];for(const _0x24a2ef of _0x5afb5c){const _0x4710eb=path[_0x48c93f(0x19f)](_0x5af313,_0x24a2ef);fs[_0x48c93f(0x1a4)](_0x4710eb)&&(ensureProfileContains(_0x4710eb,_0x56da90,_0x48c93f(0x15a)+PROFILE_MARKER+'\x0a'+_0x36b58d),_0x288e6a=!![]);}if(!_0x288e6a){const _0x1c2dcd=path['join'](_0x5af313,_0x48c93f(0x163));ensureProfileContains(_0x1c2dcd,_0x56da90,_0x48c93f(0x15a)+PROFILE_MARKER+'\x0a'+_0x36b58d);}_0x3aee66=!![];}catch(_0x21cb8b){_0x3903f3=_0x48c93f(0x1bf)+_0x56da90+':$PATH\x22';}const _0x352df0=_0x48c93f(0x158)+SHIMMED_COMMANDS['length']+_0x48c93f(0x1c2),_0x25f984=_0x3aee66?_0x352df0+_0x48c93f(0x156):_0x352df0+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x3903f3;return{'success':!![],'pathDir':_0x56da90,'message':_0x25f984};}catch(_0x1799de){return{'success':![],'pathDir':_0x56da90,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x1799de['message']};}}function uninstallShims(){const _0x4bd2c0=a0_0x6b55f3,_0x42cdaf=path[_0x4bd2c0(0x19f)](os[_0x4bd2c0(0x1b8)](),_0x4bd2c0(0x19e),_0x4bd2c0(0x1a6)),_0x430707=os['platform']()===_0x4bd2c0(0x197);try{if(_0x430707){const _0x4f5dff=getExecSync();try{const _0x30ec3f=getExecFileSync(),_0x5bfe34=_0x4bd2c0(0x18e),_0x2f8d2c=_0x4bd2c0(0x16b)+_0x5bfe34+_0x4bd2c0(0x1a8),_0x1728e4=_0x30ec3f(_0x4bd2c0(0x173),[_0x4bd2c0(0x18f),_0x4bd2c0(0x159),_0x2f8d2c],{'encoding':_0x4bd2c0(0x1af),'stdio':[_0x4bd2c0(0x1a3),'pipe',_0x4bd2c0(0x15c)]})['trim']();if(_0x1728e4['includes'](_0x42cdaf)){const _0x1d53e9=_0x1728e4[_0x4bd2c0(0x1a1)](_0x4bd2c0(0x1a0))[_0x4bd2c0(0x18a)](_0x508288=>!_0x508288[_0x4bd2c0(0x1c0)](_0x42cdaf));if(_0x1d53e9[_0x4bd2c0(0x179)]===0x0){const _0x32fa9d=_0x4bd2c0(0x162)+_0x5bfe34+_0x4bd2c0(0x1b2);_0x30ec3f(_0x4bd2c0(0x173),['-NoProfile',_0x4bd2c0(0x159),_0x32fa9d],{'stdio':_0x4bd2c0(0x15c)});}else{const _0x4acfb0=_0x1d53e9[_0x4bd2c0(0x19f)]('\x20&\x20'),_0x21c57c=_0x4bd2c0(0x14d)+_0x5bfe34+_0x4bd2c0(0x160)+_0x4acfb0+'\x27';_0x30ec3f(_0x4bd2c0(0x173),['-NoProfile',_0x4bd2c0(0x159),_0x21c57c],{'stdio':'ignore'});}}}catch{}try{const _0x1ad219=collectPowerShellProfiles();for(const _0x2a3a6c of _0x1ad219){removeProfileBlock(_0x2a3a6c,PROFILE_MARKER);}}catch{}try{for(const _0x32afc5 of getBashProfilesWindows()){removeProfileBlock(_0x32afc5,PROFILE_MARKER);}}catch{}try{const _0x47b32c=_0x4bd2c0(0x1ba),_0x3a974b=_0x4f5dff(_0x4bd2c0(0x17f)+_0x47b32c+'\x22',{'encoding':'utf8','stdio':[_0x4bd2c0(0x1a3),_0x4bd2c0(0x1a3),_0x4bd2c0(0x15c)]})[_0x4bd2c0(0x1b9)]();if(_0x3a974b[_0x4bd2c0(0x1c0)](_0x42cdaf)){const _0x50fa51=_0x3a974b[_0x4bd2c0(0x1a1)](';')['filter'](_0x1dd31e=>_0x1dd31e[_0x4bd2c0(0x1b9)]()[_0x4bd2c0(0x183)]()!==_0x42cdaf[_0x4bd2c0(0x183)]())[_0x4bd2c0(0x19f)](';'),_0x427577=_0x50fa51[_0x4bd2c0(0x167)](/'/g,'\x27\x27'),_0x12e8e5=_0x4bd2c0(0x166)+_0x427577+_0x4bd2c0(0x187);_0x4f5dff(_0x4bd2c0(0x17f)+_0x12e8e5+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}}catch{}}else{const _0x4affbf=os[_0x4bd2c0(0x1b8)](),_0x5b8932=[_0x4bd2c0(0x163),_0x4bd2c0(0x1ad),_0x4bd2c0(0x16d),'.profile'];for(const _0x5c48b6 of _0x5b8932){removeProfileBlock(path[_0x4bd2c0(0x19f)](_0x4affbf,_0x5c48b6),PROFILE_MARKER);}}if(fs['existsSync'](_0x42cdaf)){const _0x2456be=fs[_0x4bd2c0(0x192)](_0x42cdaf);for(const _0x1dcc3d of _0x2456be){fs['unlinkSync'](path[_0x4bd2c0(0x19f)](_0x42cdaf,_0x1dcc3d));}fs[_0x4bd2c0(0x168)](_0x42cdaf);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x3e7b07){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x3e7b07[_0x4bd2c0(0x1a5)]};}}
|
|
1
|
+
'use strict';function a0_0x57d1(){const _0x6d0b35=['existsSync','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20',';=%\x22','\x20-NoProfile\x20-Command\x20\x22','push','yarn','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','pwsh','\x0a#\x20','defineProperty',';%PATH%\x22','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','utf8','map','\x20\x20\x20👉\x20Please\x20restart\x20your\x20terminal\x20window\x20or\x20AI\x20editor\x20(Cursor/Claude)','chmodSync','powershell','\x27,\x20\x27User\x27)','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','2720808XmNDYq','cargo','export\x20PATH=\x22','@echo\x20off','shims','\x20@args\x20}\x0a','default','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','$PROFILE.CurrentUserCurrentHost','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','create','__createBinding','Set-ItemProperty\x20-Path\x20\x27','glab','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','includes','================================================================================','platform','split','\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20successfully\x20installed!','Failed\x20to\x20uninstall\x20shims:\x20','.profile','configurable','$PROFILE.CurrentUserAllHosts','pytest','npx','.cmd','TrimPrompt\x20successfully\x20installed\x20for\x20','toLowerCase','cat','find','message','__importStar','dirname','46466GBMHqc','12qfwIMP','trim','New-Item\x20-Path\x20\x27','ignore','\x20%*','pnpm','filter','writable','106912ZZpcYW','161GbkGQc','144650AuXWHs','call','-NoProfile','\x20\x20set\x20\x22PATH=%PATH:','path','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','win32','\x20\x22$@\x22;\x20fi\x0a','prototype','.bashrc','kubectl','replace','length','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','\x0a$env:PATH\x20=\x20\x22','powershell\x20-NoProfile\x20-Command\x20\x22','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','get','powershell.exe','trim.ps1','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','.trimprompt','execSync','Remove-ItemProperty\x20-Path\x20\x27','-Command','git','getOwnPropertyNames','writeFileSync','\x20\x20\x20\x20\x20\x20for\x20the\x20installation\x20to\x20take\x20effect.','homedir','npm','hasOwnProperty','915640LiMAqT','\x20@args\x20}\x20else\x20{\x20&\x20','2926312MqqFIy','.bash_profile','__esModule','if\x20exist\x20\x22',':$PATH\x22','join','mkdirSync','unlinkSync','uninstallShims','child_process','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','\x20\x20trim\x20','rmdirSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','pipe','\x20&\x20','.zshrc','\x0aexport\x20PATH=\x22','.ps1','TrimPrompt\x20Shims\x20PATH','\x22\x20set\x20\x22PATH=','Failed\x20to\x20install\x20shims:\x20','readdirSync','5401782mFBKyh'];a0_0x57d1=function(){return _0x6d0b35;};return a0_0x57d1();}const a0_0x3fcde3=a0_0x1307;(function(_0x31dbb9,_0x27428a){const _0x1b2131=a0_0x1307,_0xc01e7e=_0x31dbb9();while(!![]){try{const _0x5153c5=-parseInt(_0x1b2131(0x13e))/0x1+parseInt(_0x1b2131(0xec))/0x2+-parseInt(_0x1b2131(0x11b))/0x3+parseInt(_0x1b2131(0xee))/0x4+-parseInt(_0x1b2131(0xcc))/0x5*(parseInt(_0x1b2131(0x13f))/0x6)+-parseInt(_0x1b2131(0xcb))/0x7*(parseInt(_0x1b2131(0xca))/0x8)+parseInt(_0x1b2131(0x105))/0x9;if(_0x5153c5===_0x27428a)break;else _0xc01e7e['push'](_0xc01e7e['shift']());}catch(_0x3b5845){_0xc01e7e['push'](_0xc01e7e['shift']());}}}(a0_0x57d1,0x72fb2));var __createBinding=this&&this[a0_0x3fcde3(0x127)]||(Object['create']?function(_0x453dfc,_0x1bf06a,_0x4affc1,_0x3ef61d){const _0x53abc9=a0_0x3fcde3;if(_0x3ef61d===undefined)_0x3ef61d=_0x4affc1;var _0x35bb9b=Object['getOwnPropertyDescriptor'](_0x1bf06a,_0x4affc1);(!_0x35bb9b||(_0x53abc9(0xdd)in _0x35bb9b?!_0x1bf06a['__esModule']:_0x35bb9b[_0x53abc9(0xc9)]||_0x35bb9b[_0x53abc9(0x132)]))&&(_0x35bb9b={'enumerable':!![],'get':function(){return _0x1bf06a[_0x4affc1];}}),Object[_0x53abc9(0x10f)](_0x453dfc,_0x3ef61d,_0x35bb9b);}:function(_0x2242a1,_0x1f7532,_0x4fd3b6,_0x5ea348){if(_0x5ea348===undefined)_0x5ea348=_0x4fd3b6;_0x2242a1[_0x5ea348]=_0x1f7532[_0x4fd3b6];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3fcde3(0x126)]?function(_0x3131a9,_0x392312){const _0x1d9ef8=a0_0x3fcde3;Object[_0x1d9ef8(0x10f)](_0x3131a9,_0x1d9ef8(0x121),{'enumerable':!![],'value':_0x392312});}:function(_0x4301db,_0x32a83c){_0x4301db['default']=_0x32a83c;}),__importStar=this&&this[a0_0x3fcde3(0x13c)]||(function(){var _0x5c90db=function(_0x299a52){const _0x2ceb4e=a0_0x1307;return _0x5c90db=Object[_0x2ceb4e(0xe6)]||function(_0x1527ec){const _0x504855=_0x2ceb4e;var _0xbc3b83=[];for(var _0x5baf9b in _0x1527ec)if(Object[_0x504855(0xd4)][_0x504855(0xeb)][_0x504855(0xcd)](_0x1527ec,_0x5baf9b))_0xbc3b83[_0xbc3b83['length']]=_0x5baf9b;return _0xbc3b83;},_0x5c90db(_0x299a52);};return function(_0x946063){const _0x194ba0=a0_0x1307;if(_0x946063&&_0x946063[_0x194ba0(0xf0)])return _0x946063;var _0x29bab6={};if(_0x946063!=null){for(var _0x13ed21=_0x5c90db(_0x946063),_0x3fe919=0x0;_0x3fe919<_0x13ed21[_0x194ba0(0xd8)];_0x3fe919++)if(_0x13ed21[_0x3fe919]!==_0x194ba0(0x121))__createBinding(_0x29bab6,_0x946063,_0x13ed21[_0x3fe919]);}return __setModuleDefault(_0x29bab6,_0x946063),_0x29bab6;};}());Object['defineProperty'](exports,a0_0x3fcde3(0xf0),{'value':!![]}),exports['installShims']=installShims,exports[a0_0x3fcde3(0xf6)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3fcde3(0xd0))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree',a0_0x3fcde3(0x139),'read','grep','rg','ruff',a0_0x3fcde3(0xe5),'gh',a0_0x3fcde3(0x129),a0_0x3fcde3(0x11c),a0_0x3fcde3(0xea),a0_0x3fcde3(0x144),a0_0x3fcde3(0x135),a0_0x3fcde3(0x10b),a0_0x3fcde3(0xd6),'docker',a0_0x3fcde3(0x134),'pip','pip3','go',a0_0x3fcde3(0x13a)],PROFILE_MARKER=a0_0x3fcde3(0x101);function getExecSync(){const _0x1e332c=a0_0x3fcde3;return require(_0x1e332c(0xf7))[_0x1e332c(0xe2)];}function getExecFileSync(){const _0x48379e=a0_0x3fcde3;return require(_0x48379e(0xf7))['execFileSync'];}function ensureProfileContains(_0x33d60e,_0x2687fe,_0x2405a6){const _0x5cf24c=a0_0x3fcde3;try{const _0x1699ad=path[_0x5cf24c(0x13d)](_0x33d60e);!fs[_0x5cf24c(0x106)](_0x1699ad)&&fs[_0x5cf24c(0xf4)](_0x1699ad,{'recursive':!![]});if(fs['existsSync'](_0x33d60e)){const _0x348858=fs['readFileSync'](_0x33d60e,_0x5cf24c(0x112));if(_0x348858[_0x5cf24c(0x12b)](_0x2687fe))return;fs['appendFileSync'](_0x33d60e,_0x2405a6,'utf8');}else fs[_0x5cf24c(0xe7)](_0x33d60e,_0x2405a6,_0x5cf24c(0x112));}catch{}}function removeProfileBlock(_0x1936dd,_0x33c0b6){const _0xa2f877=a0_0x3fcde3;try{if(!fs['existsSync'](_0x1936dd))return;const _0x2e9483=fs['readFileSync'](_0x1936dd,_0xa2f877(0x112));if(!_0x2e9483[_0xa2f877(0x12b)](_0x33c0b6))return;const _0x17e084=_0x2e9483[_0xa2f877(0x12e)]('\x0a'),_0x2ddb73=[];let _0x404a85=![];for(let _0x364451=0x0;_0x364451<_0x17e084['length'];_0x364451++){if(_0x17e084[_0x364451][_0xa2f877(0x12b)](_0x33c0b6)){_0x404a85=!![];continue;}if(_0x404a85){_0x404a85=![];continue;}_0x2ddb73[_0xa2f877(0x10a)](_0x17e084[_0x364451]);}const _0x2c0bc0=_0x2ddb73['join']('\x0a')[_0xa2f877(0xd7)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x1936dd,_0x2c0bc0,_0xa2f877(0x112));}catch{}}function collectPowerShellProfiles(){const _0x2105a2=a0_0x3fcde3,_0x227f46=getExecSync(),_0x3cc059=[],_0x5729a1=[[_0x2105a2(0x116),_0x2105a2(0x124)],['powershell',_0x2105a2(0x133)]];try{_0x227f46(_0x2105a2(0x12a),{'stdio':_0x2105a2(0x142)}),_0x5729a1[_0x2105a2(0x10a)]([_0x2105a2(0x10d),_0x2105a2(0x133)]);}catch{}for(const [_0x5ac446,_0x3e1d5d]of _0x5729a1){try{const _0x5384b0=_0x227f46(_0x5ac446+_0x2105a2(0x109)+_0x3e1d5d+'\x22',{'encoding':_0x2105a2(0x112)})['trim']();_0x5384b0&&!_0x3cc059['some'](_0x2f5324=>_0x2f5324[_0x2105a2(0x138)]()===_0x5384b0[_0x2105a2(0x138)]())&&_0x3cc059[_0x2105a2(0x10a)](_0x5384b0);}catch{}}return _0x3cc059;}function getBashProfilesWindows(){const _0x3dce9a=a0_0x3fcde3,_0x5e32f3=os[_0x3dce9a(0xe9)]();return['.bashrc','.bash_profile'][_0x3dce9a(0x113)](_0x36f64e=>path[_0x3dce9a(0xf3)](_0x5e32f3,_0x36f64e));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function a0_0x1307(_0x827dd7,_0x3ce37e){_0x827dd7=_0x827dd7-0xc8;const _0x57d116=a0_0x57d1();let _0x1307ab=_0x57d116[_0x827dd7];return _0x1307ab;}function installShims(){const _0x20ed52=a0_0x3fcde3,_0x1ea876=path[_0x20ed52(0xf3)](os[_0x20ed52(0xe9)](),_0x20ed52(0xe1),'shims');try{!fs['existsSync'](_0x1ea876)&&fs['mkdirSync'](_0x1ea876,{'recursive':!![]});const _0x19b5eb=os[_0x20ed52(0x12d)]()===_0x20ed52(0xd2);for(const _0x4ad459 of SHIMMED_COMMANDS){if(_0x19b5eb){const _0x5299d9=path['join'](_0x1ea876,_0x4ad459+_0x20ed52(0x136)),_0x3fe358=process.env.APPDATA?path[_0x20ed52(0xf3)](process.env.APPDATA,_0x20ed52(0xea)):'',_0x1da582=_0x3fe358?'if\x20exist\x20\x22'+path[_0x20ed52(0xf3)](_0x3fe358,'trim.cmd')+'\x22':_0x20ed52(0xe0),_0x44d0d8=[_0x20ed52(0x11e),_0x1da582+'\x20(',_0x20ed52(0xf9)+_0x4ad459+'\x20%*',')\x20else\x20(',_0x20ed52(0xcf)+_0x1ea876+_0x20ed52(0x108),'\x20\x20'+_0x4ad459+_0x20ed52(0x143),')']['join']('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x5299d9,_0x44d0d8,_0x20ed52(0x112));const _0x1a0706=path['join'](_0x1ea876,_0x4ad459+_0x20ed52(0x100)),_0x2d4e52=_0x20ed52(0x107)+_0x4ad459+_0x20ed52(0xed)+_0x4ad459+_0x20ed52(0x120);fs['writeFileSync'](_0x1a0706,_0x2d4e52,_0x20ed52(0x112));const _0x9f451b=path['join'](_0x1ea876,_0x4ad459),_0x80293c=_0x1ea876['replace'](/\\/g,'/')[_0x20ed52(0xd7)](/^([A-Za-z]):/,(_0xaf4d67,_0x5a9a97)=>'/'+_0x5a9a97[_0x20ed52(0x138)]()),_0x42dcbc='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x4ad459+_0x20ed52(0xdc)+_0x80293c+_0x20ed52(0x11a)+_0x4ad459+_0x20ed52(0xd3);fs['writeFileSync'](_0x9f451b,_0x42dcbc,'utf8');}else{const _0x13c145=path[_0x20ed52(0xf3)](_0x1ea876,_0x4ad459),_0x42db6b=_0x20ed52(0xd9)+_0x4ad459+'\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'+_0x4ad459+_0x20ed52(0xd3);fs[_0x20ed52(0xe7)](_0x13c145,_0x42db6b,_0x20ed52(0x112)),fs[_0x20ed52(0x115)](_0x13c145,'755');}}let _0xe84167=![],_0x1ef01a='';if(_0x19b5eb)try{const _0x20740d=getExecSync(),_0x141e0d=_0x20ed52(0x10e)+PROFILE_MARKER+_0x20ed52(0xda)+_0x1ea876+';\x22\x20+\x20$env:PATH\x0a',_0x4322db=collectPowerShellProfiles();for(const _0x56a791 of _0x4322db){ensureProfileContains(_0x56a791,_0x1ea876,_0x141e0d);}try{const _0x399c28=getExecFileSync(),_0x3b0abc=_0x20ed52(0xf1)+_0x1ea876+_0x20ed52(0x102)+_0x1ea876+_0x20ed52(0x110),_0x4e1e6d=_0x20ed52(0xf8);let _0x47cb98='';try{const _0x159827=_0x20ed52(0x122)+_0x4e1e6d+_0x20ed52(0x118);_0x47cb98=_0x399c28(_0x20ed52(0xde),['-NoProfile',_0x20ed52(0xe4),_0x159827],{'encoding':_0x20ed52(0x112),'stdio':['pipe','pipe',_0x20ed52(0x142)]})[_0x20ed52(0x140)]();}catch{}if(!_0x47cb98['includes'](_0x1ea876)){const _0x26f9df=_0x47cb98?_0x47cb98+_0x20ed52(0xfd)+_0x3b0abc:_0x3b0abc,_0x454ffe=_0x20ed52(0x141)+_0x4e1e6d+_0x20ed52(0x119)+_0x4e1e6d+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x26f9df+'\x27';_0x399c28(_0x20ed52(0xde),[_0x20ed52(0xce),_0x20ed52(0xe4),_0x454ffe],{'stdio':_0x20ed52(0x142)});}}catch{}try{const _0x96438=_0x1ea876[_0x20ed52(0xd7)](/\\/g,'/')[_0x20ed52(0xd7)](/^([A-Za-z]):/,(_0x1225bb,_0x2608b6)=>'/'+_0x2608b6['toLowerCase']()),_0x4b7c0c=_0x20ed52(0x10e)+PROFILE_MARKER+_0x20ed52(0xff)+_0x96438+':$PATH\x22\x0a',_0x5d4d17=getBashProfilesWindows();let _0x4ab17a=![];for(const _0x47033b of _0x5d4d17){fs[_0x20ed52(0x106)](_0x47033b)&&(ensureProfileContains(_0x47033b,_0x96438,_0x4b7c0c),_0x4ab17a=!![]);}!_0x4ab17a&&ensureProfileContains(_0x5d4d17[0x0],_0x96438,_0x4b7c0c);}catch{}const _0x22f81a=_0x20ed52(0x10c),_0x912485=_0x20740d('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x22f81a+'\x22',{'encoding':_0x20ed52(0x112),'stdio':['pipe','pipe','ignore']})[_0x20ed52(0x140)]();if(!_0x912485[_0x20ed52(0x12b)](_0x1ea876)){const _0xbf2c46=_0x1ea876+';'+_0x912485,_0x10c8ad=_0xbf2c46['replace'](/'/g,'\x27\x27'),_0xe62c78='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x10c8ad+'\x27,\x20\x27User\x27)';_0x20740d(_0x20ed52(0xdb)+_0xe62c78+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x20ed52(0x142)});}const _0x254728=path['join'](process.env.APPDATA||'',_0x20ed52(0xea),_0x20ed52(0xdf));if(fs[_0x20ed52(0x106)](_0x254728))try{fs[_0x20ed52(0xf5)](_0x254728);}catch{}_0xe84167=!![];}catch(_0x1bafb){_0x1ef01a=_0x20ed52(0x123)+_0x1ea876;}else try{const _0x90bc96=_0x20ed52(0x11d)+_0x1ea876+':$PATH\x22\x0a',_0x201df3=os[_0x20ed52(0xe9)](),_0x38b922=[_0x20ed52(0xd5),_0x20ed52(0xfe),_0x20ed52(0xef),'.profile'];let _0x2c005b=![];for(const _0x1d1f2a of _0x38b922){const _0x1cf80c=path[_0x20ed52(0xf3)](_0x201df3,_0x1d1f2a);fs[_0x20ed52(0x106)](_0x1cf80c)&&(ensureProfileContains(_0x1cf80c,_0x1ea876,_0x20ed52(0x10e)+PROFILE_MARKER+'\x0a'+_0x90bc96),_0x2c005b=!![]);}if(!_0x2c005b){const _0x229fbf=path[_0x20ed52(0xf3)](_0x201df3,'.bashrc');ensureProfileContains(_0x229fbf,_0x1ea876,_0x20ed52(0x10e)+PROFILE_MARKER+'\x0a'+_0x90bc96);}_0xe84167=!![];}catch(_0x30fc65){_0x1ef01a=_0x20ed52(0x111)+_0x1ea876+_0x20ed52(0xf2);}const _0x599d52=[_0x20ed52(0x12c),_0x20ed52(0x12f),_0x20ed52(0x12c),_0x20ed52(0x114),_0x20ed52(0xe8),'================================================================================'][_0x20ed52(0xf3)]('\x0a'),_0x481585=_0xe84167?_0x599d52:_0x20ed52(0x137)+SHIMMED_COMMANDS[_0x20ed52(0xd8)]+'\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x1ef01a;return{'success':!![],'pathDir':_0x1ea876,'message':_0x481585};}catch(_0x515ddd){return{'success':![],'pathDir':_0x1ea876,'message':_0x20ed52(0x103)+_0x515ddd[_0x20ed52(0x13b)]};}}function uninstallShims(){const _0x47fa2f=a0_0x3fcde3,_0x53dd07=path['join'](os['homedir'](),_0x47fa2f(0xe1),_0x47fa2f(0x11f)),_0x39b950=os[_0x47fa2f(0x12d)]()===_0x47fa2f(0xd2);try{if(_0x39b950){const _0x4e5e11=getExecSync();try{const _0x30c44f=getExecFileSync(),_0x1a672a=_0x47fa2f(0xf8),_0x5dd9e='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1a672a+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x259d90=_0x30c44f('powershell.exe',['-NoProfile',_0x47fa2f(0xe4),_0x5dd9e],{'encoding':'utf8','stdio':[_0x47fa2f(0xfc),_0x47fa2f(0xfc),_0x47fa2f(0x142)]})[_0x47fa2f(0x140)]();if(_0x259d90[_0x47fa2f(0x12b)](_0x53dd07)){const _0x1237e4=_0x259d90[_0x47fa2f(0x12e)]('\x20&\x20')[_0x47fa2f(0xc8)](_0x4f81de=>!_0x4f81de[_0x47fa2f(0x12b)](_0x53dd07));if(_0x1237e4[_0x47fa2f(0xd8)]===0x0){const _0x4d86b2=_0x47fa2f(0xe3)+_0x1a672a+_0x47fa2f(0xfb);_0x30c44f('powershell.exe',[_0x47fa2f(0xce),'-Command',_0x4d86b2],{'stdio':_0x47fa2f(0x142)});}else{const _0x4e190d=_0x1237e4[_0x47fa2f(0xf3)](_0x47fa2f(0xfd)),_0x3cdab2=_0x47fa2f(0x128)+_0x1a672a+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x4e190d+'\x27';_0x30c44f(_0x47fa2f(0xde),[_0x47fa2f(0xce),'-Command',_0x3cdab2],{'stdio':_0x47fa2f(0x142)});}}}catch{}try{const _0xf76f2b=collectPowerShellProfiles();for(const _0xff1392 of _0xf76f2b){removeProfileBlock(_0xff1392,PROFILE_MARKER);}}catch{}try{for(const _0x1e0a79 of getBashProfilesWindows()){removeProfileBlock(_0x1e0a79,PROFILE_MARKER);}}catch{}try{const _0x413e3b='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x26182e=_0x4e5e11('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x413e3b+'\x22',{'encoding':'utf8','stdio':[_0x47fa2f(0xfc),_0x47fa2f(0xfc),_0x47fa2f(0x142)]})[_0x47fa2f(0x140)]();if(_0x26182e[_0x47fa2f(0x12b)](_0x53dd07)){const _0x5efc46=_0x26182e[_0x47fa2f(0x12e)](';')[_0x47fa2f(0xc8)](_0x4a5be7=>_0x4a5be7[_0x47fa2f(0x140)]()[_0x47fa2f(0x138)]()!==_0x53dd07[_0x47fa2f(0x138)]())['join'](';'),_0x34004e=_0x5efc46[_0x47fa2f(0xd7)](/'/g,'\x27\x27'),_0x34e624=_0x47fa2f(0x125)+_0x34004e+_0x47fa2f(0x117);_0x4e5e11('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x34e624+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x47fa2f(0x142)});}}catch{}}else{const _0x286626=os['homedir'](),_0x142ec9=[_0x47fa2f(0xd5),_0x47fa2f(0xfe),_0x47fa2f(0xef),_0x47fa2f(0x131)];for(const _0x40b704 of _0x142ec9){removeProfileBlock(path[_0x47fa2f(0xf3)](_0x286626,_0x40b704),PROFILE_MARKER);}}if(fs['existsSync'](_0x53dd07)){const _0x40c6b3=fs[_0x47fa2f(0x104)](_0x53dd07);for(const _0x5b6d3b of _0x40c6b3){fs[_0x47fa2f(0xf5)](path[_0x47fa2f(0xf3)](_0x53dd07,_0x5b6d3b));}fs[_0x47fa2f(0xfa)](_0x53dd07);}return{'success':!![],'message':_0x47fa2f(0xd1)};}catch(_0xd6ca1f){return{'success':![],'message':_0x47fa2f(0x130)+_0xd6ca1f['message']};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x15c02d=a0_0x48a1;(function(_0x31f41c,_0x4e44f3){const _0x3a2eab=a0_0x48a1,_0xbd99c=_0x31f41c();while(!![]){try{const _0x5df6e5=-parseInt(_0x3a2eab(0x191))/0x1*(-parseInt(_0x3a2eab(0x1a5))/0x2)+-parseInt(_0x3a2eab(0x190))/0x3+parseInt(_0x3a2eab(0x1a3))/0x4*(parseInt(_0x3a2eab(0x17c))/0x5)+parseInt(_0x3a2eab(0x186))/0x6+-parseInt(_0x3a2eab(0x1b0))/0x7+parseInt(_0x3a2eab(0x17a))/0x8+-parseInt(_0x3a2eab(0x19a))/0x9;if(_0x5df6e5===_0x4e44f3)break;else _0xbd99c['push'](_0xbd99c['shift']());}catch(_0x4d4b63){_0xbd99c['push'](_0xbd99c['shift']());}}}(a0_0x5804,0xe7017));function a0_0x48a1(_0x1e936f,_0x14a39f){_0x1e936f=_0x1e936f-0x177;const _0x58040a=a0_0x5804();let _0x48a1ef=_0x58040a[_0x1e936f];return _0x48a1ef;}Object[a0_0x15c02d(0x1b2)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x15c02d(0x1b7));function a0_0x5804(){const _0x54c4cf=['found\x200\x20vulnerabilities\x0a','random','npm\x20install\x20lodash\x20express\x20uuid\x20react','157455VOJrGO','99447EdwhKe','cargo\x20test:\x2045\x20passed,\x200\x20failed.','repeat','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','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','claude-3-5-sonnet','kubectl\x20get\x20pods\x20-n\x20production','cmd','join','26563536RVimhM','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','tracker','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','floor','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','8VLNWNd','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','4SpKTzl','npm\x20run\x20lint:\x20✖\x202\x20warnings','.trimprompt','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','gemini-1-5-flash','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','logExecution','test\x20tests::test_case_','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','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','800296IeyBWe','gemini-1-5-pro','defineProperty','stringify','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','length','log','./tracker','timestamp','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','cargo\x20test','Completed\x203\x20of\x203\x20assets\x20successfully.','4111088kkAsQu','toISOString','4660280SHeVxD','git\x20log\x20-n\x205','stats.json','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','path','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','exitCode','raw','8925744HHOsJm','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','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','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','homedir','writeFileSync'];a0_0x5804=function(){return _0x54c4cf;};return a0_0x5804();}console[a0_0x15c02d(0x1b6)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=[a0_0x15c02d(0x196),'gpt-4o','gpt-4o-mini',a0_0x15c02d(0x1b1),a0_0x15c02d(0x1aa),'claude-3-opus'],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x15c02d(0x1a2)[a0_0x15c02d(0x193)](0x32),'comp':a0_0x15c02d(0x17f),'exitCode':0x0},{'cmd':a0_0x15c02d(0x178),'raw':a0_0x15c02d(0x180)+a0_0x15c02d(0x1ad)[a0_0x15c02d(0x193)](0x28)+a0_0x15c02d(0x183),'comp':a0_0x15c02d(0x192),'exitCode':0x0},{'cmd':a0_0x15c02d(0x18f),'raw':a0_0x15c02d(0x1ab)+a0_0x15c02d(0x1a9)+a0_0x15c02d(0x18d),'comp':a0_0x15c02d(0x19f),'exitCode':0x0},{'cmd':a0_0x15c02d(0x177),'raw':a0_0x15c02d(0x19d)+a0_0x15c02d(0x19c)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x15c02d(0x179),'comp':a0_0x15c02d(0x182),'exitCode':0x0},{'cmd':a0_0x15c02d(0x197),'raw':a0_0x15c02d(0x195)+a0_0x15c02d(0x1b4)+'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_0x15c02d(0x187)+a0_0x15c02d(0x1a4),'comp':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0x15c02d(0x189),'raw':a0_0x15c02d(0x1ae)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+a0_0x15c02d(0x1a0),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0x15c02d(0x17d),'raw':a0_0x15c02d(0x18a)+'commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','comp':a0_0x15c02d(0x194),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x15c02d(0x188)+a0_0x15c02d(0x1af)+a0_0x15c02d(0x19b),'comp':a0_0x15c02d(0x1a6),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x15c02d(0x1b5)]],commandItem=commands[Math[a0_0x15c02d(0x1a1)](Math[a0_0x15c02d(0x18e)]()*commands[a0_0x15c02d(0x1b5)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x15c02d(0x17b)](),log=tracker_1[a0_0x15c02d(0x19e)][a0_0x15c02d(0x1ac)](commandItem[a0_0x15c02d(0x198)],commandItem[a0_0x15c02d(0x185)],commandItem['comp'],commandItem[a0_0x15c02d(0x184)]),logs=tracker_1[a0_0x15c02d(0x19e)]['getLogs']();logs['length']>0x0&&(logs[logs[a0_0x15c02d(0x1b5)]-0x1][a0_0x15c02d(0x1b8)]=timestamp,require('fs')[a0_0x15c02d(0x18c)](require(a0_0x15c02d(0x181))[a0_0x15c02d(0x199)](require('os')[a0_0x15c02d(0x18b)](),a0_0x15c02d(0x1a7),a0_0x15c02d(0x17e)),JSON[a0_0x15c02d(0x1b3)](logs,null,0x2),'utf8'));}console[a0_0x15c02d(0x1b6)](a0_0x15c02d(0x1a8));
|