trimprompt 1.0.28 → 1.0.29
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/api-proxy.js +1 -1
- package/cache.js +1 -1
- package/ccr.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/index.html +1 -2
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/proxy-conv.js +1 -1
- package/proxy-daemon.js +1 -1
- package/proxy-resp.js +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/traffic-interceptor.js +1 -1
package/filters/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x3c6066=a0_0x5e7a;function a0_0x171b(){const _0x312d16=['\x20\x20...\x20(+','unknown_file','\x20\x20??\x20','default','10374lPDqWy','+++','slice','entries','getOwnPropertyDescriptor','__esModule','length','__importStar','match','push','\x20lines\x20of\x20description)','276608tMaTsB','writable','substring','replace','split','map','*\x20Branch:\x20','__setModuleDefault','get','\x0aUntracked\x20files:','33244830yuXHQT','735746LZhwex','create','filterGitLog','1260PRApVN','\x20untracked\x20files)','path','No\x20modifications','getOwnPropertyNames','1221081OjNzmA','call','startsWith','filterGitStatus','\x20\x20...\x20+','dirname','/\x20(','filter','4wHYoeM','\x20(+','defineProperty','---','\x0aChanges:','3632555sCsIvR','1157870vPaVFN','hasOwnProperty','27niLsEH','join','prototype','trim'];a0_0x171b=function(){return _0x312d16;};return a0_0x171b();}(function(_0x2ad4f9,_0x244f86){const _0x4c7b3d=a0_0x5e7a,_0x5d350d=_0x2ad4f9();while(!![]){try{const _0x1c249e=-parseInt(_0x4c7b3d(0xcf))/0x1+-parseInt(_0x4c7b3d(0xe5))/0x2+-parseInt(_0x4c7b3d(0xd7))/0x3+parseInt(_0x4c7b3d(0xdf))/0x4*(-parseInt(_0x4c7b3d(0xe4))/0x5)+parseInt(_0x4c7b3d(0xef))/0x6*(-parseInt(_0x4c7b3d(0xd2))/0x7)+-parseInt(_0x4c7b3d(0xc4))/0x8*(parseInt(_0x4c7b3d(0xe7))/0x9)+parseInt(_0x4c7b3d(0xce))/0xa;if(_0x1c249e===_0x244f86)break;else _0x5d350d['push'](_0x5d350d['shift']());}catch(_0x39c7cd){_0x5d350d['push'](_0x5d350d['shift']());}}}(a0_0x171b,0x70a04));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x2bacd8,_0x2b78e3,_0x3322f7,_0x1e3d31){const _0x231ee3=a0_0x5e7a;if(_0x1e3d31===undefined)_0x1e3d31=_0x3322f7;var _0xd20fe2=Object[_0x231ee3(0xbd)](_0x2b78e3,_0x3322f7);(!_0xd20fe2||(_0x231ee3(0xcc)in _0xd20fe2?!_0x2b78e3['__esModule']:_0xd20fe2[_0x231ee3(0xc5)]||_0xd20fe2['configurable']))&&(_0xd20fe2={'enumerable':!![],'get':function(){return _0x2b78e3[_0x3322f7];}}),Object[_0x231ee3(0xe1)](_0x2bacd8,_0x1e3d31,_0xd20fe2);}:function(_0x24e632,_0x3a5b96,_0x2eea4f,_0x40a4a2){if(_0x40a4a2===undefined)_0x40a4a2=_0x2eea4f;_0x24e632[_0x40a4a2]=_0x3a5b96[_0x2eea4f];}),__setModuleDefault=this&&this[a0_0x3c6066(0xcb)]||(Object[a0_0x3c6066(0xd0)]?function(_0x5f17be,_0x213c89){const _0x7c7c4f=a0_0x3c6066;Object[_0x7c7c4f(0xe1)](_0x5f17be,_0x7c7c4f(0xee),{'enumerable':!![],'value':_0x213c89});}:function(_0x5816b9,_0x34e496){const _0x5e7be4=a0_0x3c6066;_0x5816b9[_0x5e7be4(0xee)]=_0x34e496;}),__importStar=this&&this[a0_0x3c6066(0xc0)]||(function(){var _0x13125c=function(_0x4c442b){const _0x1bb4f3=a0_0x5e7a;return _0x13125c=Object[_0x1bb4f3(0xd6)]||function(_0x3a1558){const _0x16310b=_0x1bb4f3;var _0x42b1aa=[];for(var _0x57dc98 in _0x3a1558)if(Object[_0x16310b(0xe9)][_0x16310b(0xe6)][_0x16310b(0xd8)](_0x3a1558,_0x57dc98))_0x42b1aa[_0x42b1aa[_0x16310b(0xbf)]]=_0x57dc98;return _0x42b1aa;},_0x13125c(_0x4c442b);};return function(_0x1c176c){const _0x428a2d=a0_0x5e7a;if(_0x1c176c&&_0x1c176c[_0x428a2d(0xbe)])return _0x1c176c;var _0x118968={};if(_0x1c176c!=null){for(var _0x1761d5=_0x13125c(_0x1c176c),_0x3f57b9=0x0;_0x3f57b9<_0x1761d5[_0x428a2d(0xbf)];_0x3f57b9++)if(_0x1761d5[_0x3f57b9]!==_0x428a2d(0xee))__createBinding(_0x118968,_0x1c176c,_0x1761d5[_0x3f57b9]);}return __setModuleDefault(_0x118968,_0x1c176c),_0x118968;};}());Object[a0_0x3c6066(0xe1)](exports,a0_0x3c6066(0xbe),{'value':!![]}),exports[a0_0x3c6066(0xda)]=filterGitStatus,exports[a0_0x3c6066(0xd1)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x3c6066(0xd4)));function filterGitStatus(_0x28454a){const _0x528b24=a0_0x3c6066,_0x53f82a=_0x28454a[_0x528b24(0xc8)]('\x0a')[_0x528b24(0xc9)](_0x4b8720=>_0x4b8720[_0x528b24(0xea)]())[_0x528b24(0xde)](_0x4386d3=>_0x4386d3[_0x528b24(0xbf)]>0x0);if(_0x53f82a[_0x528b24(0xbf)]===0x0)return'Clean\x20working\x20tree';const _0x4852f0=[],_0x3a38d0=[],_0x566f54=[];for(const _0x488552 of _0x53f82a){if(_0x488552['startsWith']('##')){const _0xb7326c=_0x488552[_0x528b24(0xc7)](/^##\s*/,'');_0x4852f0['push'](_0x528b24(0xca)+_0xb7326c);}else _0x488552[_0x528b24(0xd9)]('??')?_0x3a38d0[_0x528b24(0xc2)](_0x488552[_0x528b24(0xc6)](0x3)['trim']()):_0x566f54['push'](_0x488552);}_0x566f54[_0x528b24(0xbf)]>0x0&&(_0x4852f0[_0x528b24(0xc2)](_0x528b24(0xe3)),_0x4852f0['push'](..._0x566f54[_0x528b24(0xc9)](_0x47cb78=>'\x20\x20'+_0x47cb78)));if(_0x3a38d0[_0x528b24(0xbf)]>0x0){_0x4852f0[_0x528b24(0xc2)](_0x528b24(0xcd));const _0x2de506={},_0x5c6d9b=[];for(const _0x3bac18 of _0x3a38d0){const _0x1961c9=path[_0x528b24(0xdc)](_0x3bac18);_0x1961c9==='.'||_0x1961c9===''?_0x5c6d9b[_0x528b24(0xc2)](_0x3bac18):(!_0x2de506[_0x1961c9]&&(_0x2de506[_0x1961c9]=[]),_0x2de506[_0x1961c9][_0x528b24(0xc2)](path['basename'](_0x3bac18)));}for(const [_0x1f12c9,_0x20bb6a]of Object[_0x528b24(0xf2)](_0x2de506)){if(_0x20bb6a[_0x528b24(0xbf)]>0x5)_0x4852f0[_0x528b24(0xc2)](_0x528b24(0xed)+_0x1f12c9+_0x528b24(0xdd)+_0x20bb6a[_0x528b24(0xbf)]+_0x528b24(0xd3));else for(const _0x3821f1 of _0x20bb6a){_0x4852f0[_0x528b24(0xc2)]('\x20\x20??\x20'+path['join'](_0x1f12c9,_0x3821f1));}}for(const _0x1dd8a5 of _0x5c6d9b){_0x4852f0['push'](_0x528b24(0xed)+_0x1dd8a5);}}return _0x4852f0[_0x528b24(0xe8)]('\x0a');}function a0_0x5e7a(_0x2ae9f7,_0x4f7849){_0x2ae9f7=_0x2ae9f7-0xbd;const _0x171b4d=a0_0x171b();let _0x5e7a90=_0x171b4d[_0x2ae9f7];return _0x5e7a90;}function filterGitLog(_0x59e184){const _0x2aa616=a0_0x3c6066,_0xae9075=_0x59e184[_0x2aa616(0xc8)]('---END---')[_0x2aa616(0xc9)](_0x35afdd=>_0x35afdd[_0x2aa616(0xea)]())[_0x2aa616(0xde)](_0x11c643=>_0x11c643[_0x2aa616(0xbf)]>0x0);if(_0xae9075['length']===0x0)return _0x59e184;const _0x17e772=[];for(const _0x950ecb of _0xae9075){const _0x2ac287=_0x950ecb[_0x2aa616(0xc8)]('\x0a'),_0x161c3a=_0x2ac287[0x0]||'',_0x23a11f=_0x2ac287[_0x2aa616(0xf1)](0x1)[_0x2aa616(0xc9)](_0x5a48de=>_0x5a48de['trim']())[_0x2aa616(0xde)](_0x5a780a=>_0x5a780a[_0x2aa616(0xbf)]>0x0);_0x17e772[_0x2aa616(0xc2)]('-\x20'+_0x161c3a),_0x23a11f[_0x2aa616(0xbf)]>0x0&&(_0x17e772[_0x2aa616(0xc2)]('\x20\x20'+_0x23a11f[0x0]),_0x23a11f[_0x2aa616(0xbf)]>0x1&&_0x17e772[_0x2aa616(0xc2)](_0x2aa616(0xeb)+(_0x23a11f[_0x2aa616(0xbf)]-0x1)+_0x2aa616(0xc3)));}return _0x17e772['join']('\x0a');}function filterGitDiff(_0x40d73b){const _0x54790c=a0_0x3c6066,_0x27b12d=_0x40d73b['split']('\x0a'),_0x324364=[];let _0x59e74c='',_0x5987b4=0x0,_0x58ffba=0x0,_0x282555=[];const _0xf01a9a=()=>{const _0x5687f0=a0_0x5e7a;if(_0x59e74c&&(_0x5987b4>0x0||_0x58ffba>0x0)){_0x324364[_0x5687f0(0xc2)]('[file]\x20'+_0x59e74c+_0x5687f0(0xe0)+_0x5987b4+'\x20-'+_0x58ffba+')');const _0x235365=0xa,_0x21e945=_0x282555['slice'](0x0,_0x235365);for(const _0x47da65 of _0x21e945){_0x324364[_0x5687f0(0xc2)]('\x20\x20'+_0x47da65);}const _0x5261d0=_0x5987b4+_0x58ffba-_0x235365;_0x5261d0>0x0&&_0x324364['push'](_0x5687f0(0xdb)+_0x5261d0+'\x20more\x20modifications');}_0x5987b4=0x0,_0x58ffba=0x0,_0x282555=[];};for(const _0x394db7 of _0x27b12d){if(_0x394db7['startsWith']('diff\x20--git')){_0xf01a9a();const _0x210e24=_0x394db7[_0x54790c(0xc1)](/\sb\/(.+)$/);_0x59e74c=_0x210e24?_0x210e24[0x1]:_0x54790c(0xec);}else{if(_0x394db7[_0x54790c(0xd9)]('+')&&!_0x394db7[_0x54790c(0xd9)](_0x54790c(0xf0)))_0x5987b4++,_0x282555[_0x54790c(0xc2)](_0x394db7);else _0x394db7[_0x54790c(0xd9)]('-')&&!_0x394db7['startsWith'](_0x54790c(0xe2))&&(_0x58ffba++,_0x282555[_0x54790c(0xc2)](_0x394db7));}}_0xf01a9a();const _0x46d4ec=_0x324364[_0x54790c(0xe8)]('\x0a');return _0x46d4ec['length']>0x0?_0x46d4ec:_0x54790c(0xd5);}
|
package/filters/go.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x3bb2(_0x5a61fe,_0x5581c3){_0x5a61fe=_0x5a61fe-0xf4;const _0x5b3f68=a0_0x5b3f();let _0x3bb2e5=_0x5b3f68[_0x5a61fe];return _0x3bb2e5;}const a0_0x55b430=a0_0x3bb2;(function(_0x4e7d5a,_0x34dcc2){const _0x4bf1f6=a0_0x3bb2,_0x5e8ab3=_0x4e7d5a();while(!![]){try{const _0x394aaa=-parseInt(_0x4bf1f6(0x109))/0x1+parseInt(_0x4bf1f6(0x105))/0x2+parseInt(_0x4bf1f6(0x110))/0x3*(parseInt(_0x4bf1f6(0x117))/0x4)+parseInt(_0x4bf1f6(0x10d))/0x5*(-parseInt(_0x4bf1f6(0x10c))/0x6)+-parseInt(_0x4bf1f6(0x112))/0x7*(parseInt(_0x4bf1f6(0x10a))/0x8)+-parseInt(_0x4bf1f6(0xfa))/0x9+parseInt(_0x4bf1f6(0xf5))/0xa;if(_0x394aaa===_0x34dcc2)break;else _0x5e8ab3['push'](_0x5e8ab3['shift']());}catch(_0x5697a8){_0x5e8ab3['push'](_0x5e8ab3['shift']());}}}(a0_0x5b3f,0x54cec));Object[a0_0x55b430(0x10e)](exports,a0_0x55b430(0x111),{'value':!![]}),exports[a0_0x55b430(0xf7)]=filterGoTest,exports['filterGoVet']=filterGoVet;function a0_0x5b3f(){const _0x477fab=['trim','match','1040218PwfcdU','push','\x20\x20\x20\x20...\x20+','\x20\x20\x20\x20','141208GCaecx','40dPCblM','startsWith','765174uttJTy','20hVKXwU','defineProperty','split','3beWSWh','__esModule','621838xiEqMC','Go\x20test:\x20no\x20test\x20files','\x20skipped','slice','length','1029464uSuCZt','\x20failed,\x20','---\x20SKIP:','\x20more\x20issues','===\x20RUN','13101080VjRkrd','filter','filterGoTest','lines','\x20more\x20failures','5802453PzPoQO','\x20passed','join','Go\x20test:\x20','name','\x20issues\x20found','min','includes','\x20passed,\x20'];a0_0x5b3f=function(){return _0x477fab;};return a0_0x5b3f();}function filterGoTest(_0x690bbc){const _0x4f8496=a0_0x55b430,_0x4a2aa5=_0x690bbc[_0x4f8496(0x10f)]('\x0a');let _0x23b2ce=0x0,_0x4b8c6e=0x0,_0x1a1245=0x0;const _0x4a21f2=[],_0x106d13=[];let _0x25265c=null;for(const _0x920b27 of _0x4a2aa5){const _0x19275a=_0x920b27['trim'](),_0x24dbdd=_0x19275a['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x24dbdd){_0x106d13['push'](_0x19275a);continue;}const _0x15bd40=_0x19275a[_0x4f8496(0x104)](/^FAIL\s+\S+/);if(_0x15bd40){_0x106d13[_0x4f8496(0x106)](_0x19275a);continue;}const _0x43a2e1=_0x19275a[_0x4f8496(0x104)](/^--- PASS:/);if(_0x43a2e1){_0x23b2ce++;continue;}const _0x13bd4c=_0x19275a['match'](/^--- FAIL:\s+(\S+)/);if(_0x13bd4c){if(_0x25265c)_0x4a21f2[_0x4f8496(0x106)](_0x25265c);_0x25265c={'name':_0x13bd4c[0x1],'lines':[]},_0x4b8c6e++;continue;}if(_0x19275a[_0x4f8496(0x10b)](_0x4f8496(0x119))){_0x1a1245++;continue;}_0x25265c&&_0x19275a[_0x4f8496(0x116)]>0x0&&!_0x19275a[_0x4f8496(0x10b)]('===\x20RUN')&&_0x25265c[_0x4f8496(0xf8)][_0x4f8496(0x106)](_0x920b27),_0x19275a[_0x4f8496(0x10b)](_0x4f8496(0xf4))&&(_0x25265c&&(_0x4a21f2['push'](_0x25265c),_0x25265c=null));}if(_0x25265c)_0x4a21f2['push'](_0x25265c);if(_0x23b2ce===0x0&&_0x4b8c6e===0x0&&_0x1a1245===0x0){if(_0x690bbc['includes']('PASS')&&!_0x690bbc[_0x4f8496(0x101)]('FAIL'))return'Go\x20test:\x20all\x20tests\x20passed';if(_0x690bbc[_0x4f8496(0x101)]('no\x20test\x20files'))return _0x4f8496(0x113);return _0x690bbc;}if(_0x4b8c6e===0x0){const _0x10ccfc=[_0x4f8496(0xfd)+_0x23b2ce+_0x4f8496(0xfb)];if(_0x1a1245>0x0)_0x10ccfc[_0x4f8496(0x106)](_0x1a1245+_0x4f8496(0x114));return _0x10ccfc['join'](',\x20');}const _0x234281=[_0x4f8496(0xfd)+_0x23b2ce+_0x4f8496(0x102)+_0x4b8c6e+_0x4f8496(0x118)+_0x1a1245+_0x4f8496(0x114)];if(_0x4a21f2[_0x4f8496(0x116)]>0x0){_0x234281[_0x4f8496(0x106)]('\x0aFailures:');const _0x46499c=0x3;for(let _0x472513=0x0;_0x472513<Math[_0x4f8496(0x100)](_0x4a21f2[_0x4f8496(0x116)],_0x46499c);_0x472513++){const _0x38509c=_0x4a21f2[_0x472513];_0x234281[_0x4f8496(0x106)]('\x20\x20'+(_0x472513+0x1)+'.\x20'+_0x38509c[_0x4f8496(0xfe)]);for(const _0x1ccc7f of _0x38509c[_0x4f8496(0xf8)][_0x4f8496(0x115)](0x0,0x5)){_0x234281[_0x4f8496(0x106)](_0x4f8496(0x108)+_0x1ccc7f[_0x4f8496(0x103)]());}_0x38509c[_0x4f8496(0xf8)][_0x4f8496(0x116)]>0x5&&_0x234281[_0x4f8496(0x106)](_0x4f8496(0x107)+(_0x38509c[_0x4f8496(0xf8)][_0x4f8496(0x116)]-0x5)+'\x20more\x20lines');}_0x4a21f2[_0x4f8496(0x116)]>_0x46499c&&_0x234281['push']('\x20\x20...\x20+'+(_0x4a21f2['length']-_0x46499c)+_0x4f8496(0xf9));}return _0x234281[_0x4f8496(0xfc)]('\x0a');}function filterGoVet(_0x2500e7){const _0x1916b7=a0_0x55b430,_0x3ccdfa=_0x2500e7[_0x1916b7(0x10f)]('\x0a')[_0x1916b7(0xf6)](_0x106961=>_0x106961[_0x1916b7(0x103)]()['length']>0x0);if(_0x3ccdfa[_0x1916b7(0x116)]===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x3ccdfa[_0x1916b7(0x116)]<=0x14)return _0x2500e7[_0x1916b7(0x103)]();const _0x3c81a4=['Go\x20vet:\x20'+_0x3ccdfa[_0x1916b7(0x116)]+_0x1916b7(0xff)];return _0x3c81a4['push'](..._0x3ccdfa['slice'](0x0,0xa)),_0x3ccdfa[_0x1916b7(0x116)]>0xa&&_0x3c81a4['push']('...\x20+'+(_0x3ccdfa[_0x1916b7(0x116)]-0xa)+_0x1916b7(0x11a)),_0x3c81a4[_0x1916b7(0xfc)]('\x0a');}
|
package/filters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x7c7992=a0_0x5940;(function(_0x2634ec,_0x3d3fd5){const _0x1bce72=a0_0x5940,_0x2dc58f=_0x2634ec();while(!![]){try{const _0x5a731a=parseInt(_0x1bce72(0x12e))/0x1+parseInt(_0x1bce72(0x10a))/0x2+-parseInt(_0x1bce72(0x154))/0x3+parseInt(_0x1bce72(0x117))/0x4*(-parseInt(_0x1bce72(0x129))/0x5)+parseInt(_0x1bce72(0xfd))/0x6*(-parseInt(_0x1bce72(0x13d))/0x7)+-parseInt(_0x1bce72(0x13f))/0x8*(parseInt(_0x1bce72(0x14d))/0x9)+-parseInt(_0x1bce72(0x137))/0xa*(-parseInt(_0x1bce72(0x15f))/0xb);if(_0x5a731a===_0x3d3fd5)break;else _0x2dc58f['push'](_0x2dc58f['shift']());}catch(_0x3441b4){_0x2dc58f['push'](_0x2dc58f['shift']());}}}(a0_0x1b72,0x23a46));Object['defineProperty'](exports,a0_0x7c7992(0x144),{'value':!![]}),exports['lastFeatures']=exports[a0_0x7c7992(0x118)]=void 0x0,exports['compressOutput']=compressOutput,exports[a0_0x7c7992(0x101)]=rewriteCommand;const generic_1=require(a0_0x7c7992(0x16f)),git_1=require(a0_0x7c7992(0x124)),python_1=require('./python'),js_1=require(a0_0x7c7992(0x162)),shell_1=require(a0_0x7c7992(0x12a)),rust_1=require('./rust'),go_1=require(a0_0x7c7992(0x106)),devops_1=require(a0_0x7c7992(0x10c)),redactor_1=require('../redactor'),tracker_1=require('../tracker');exports[a0_0x7c7992(0x118)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x7c7992(0x156)]=[];function isFeatureEnabled(_0x4e7dd0){const _0x214d5f=a0_0x7c7992;try{const _0x5c4e17=tracker_1[_0x214d5f(0x138)][_0x214d5f(0x11a)](),_0x3eca46=_0x5c4e17[_0x214d5f(0x108)];if(!_0x3eca46||_0x3eca46[_0x4e7dd0]===undefined)return!![];return _0x3eca46[_0x4e7dd0]!==![];}catch{return!![];}}function a0_0x1b72(){const _0x29542b=['[binary','filterPipInstall','json_crusher','cargo\x20build','pnpm\x20install','filterKubectl','./generic','test','filterCargoTest','306JBbFyq','filterCat','trim','collapseWhitespace','rewriteCommand','yadm\x20status','startsWith','filterGitLog','trim\x20pip','./go','trim\x20cargo','features_enabled','---','534336pxCDTe','[lock\x20file]','./devops','trim\x20find','pytest','npm\x20test','\x20ls\x20','trim\x20pnpm','ruff\x20','\x20ls','[minified\x20file]','filterTree','length','8nphBnu','lastRedactAudit','yadm\x20log','getConfig','vitest','trim\x20git','pattern','kubectl','get','git\x20status','cargo\x20clippy','some','trim\x20ruff','./git','trim\x20read','ruff\x20check','softTruncate','trim\x20docker','40710RvuxuO','./shell','match','trim\x20npx','endsWith','80413JRoeHN','jest','pnpm\x20test','yarn\x20test','filterPytest','yarn\x20install','trim\x20','ansi_strip','filterDockerLogs','310ACtBOy','tracker','cargo\x20test','filterDockerPs','collapseDuplicates','go\x20test','13895FCvkyB','filterFind','216hwTrFQ','trim\x20gh','filter','[code\x20skeleton]','redactWithAudit','__esModule','trim\x20pytest','filterCargoBuild','filterJestVitest','go\x20vet','trim\x20ls','filterGoVet','text','lock','92727jkQAvo','filterGitStatus','npm\x20i','filterNpmInstall','secretsFound','npm\x20i\x20','git\x20show','316518bJEVGb','trim\x20npm','lastFeatures','redact','whitespace','filterLs','trim\x20go','trim\x20glab','pip3\x20install','trim\x20tree','skeleton','106315sAcPAG','filterDockerImages','includes','./js','pip\x20install','yadm\x20diff','push','secretTypes','redactor','trim\x20grep'];a0_0x1b72=function(){return _0x29542b;};return a0_0x1b72();}function a0_0x5940(_0x29608a,_0xcf0e05){_0x29608a=_0x29608a-0xfb;const _0x1b728d=a0_0x1b72();let _0x59407f=_0x1b728d[_0x29608a];return _0x59407f;}function compressOutput(_0x365af2,_0x585e10,_0x33fee3,_0x1f0a4c=!![]){const _0x2cb73e=a0_0x7c7992,_0x57cf5d=_0x365af2['trim']();let _0x18ca5a=_0x585e10;_0x33fee3[_0x2cb73e(0xff)]()['length']>0x0&&(_0x18ca5a=_0x585e10+'\x0a'+_0x33fee3);let _0xf31fb9=isFeatureEnabled(_0x2cb73e(0x135))?(0x0,generic_1['stripAnsi'])(_0x18ca5a):_0x18ca5a;const _0x392367=[];if(_0xf31fb9[_0x2cb73e(0x116)]<_0x18ca5a['length'])_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x135));const _0x52714d=(_0x2ca761,_0x2a4438)=>{const _0x3c9b95=_0x2cb73e;return _0x392367[_0x3c9b95(0x165)](_0x2ca761),exports['lastFeatures']=_0x392367,_0x2a4438;};if(_0x1f0a4c&&isFeatureEnabled(_0x2cb73e(0x157))){const _0x398461=redactor_1[_0x2cb73e(0x167)][_0x2cb73e(0x143)](_0xf31fb9);_0xf31fb9=_0x398461[_0x2cb73e(0x14b)],exports[_0x2cb73e(0x118)]={'secretsFound':_0x398461[_0x2cb73e(0x151)],'secretTypes':_0x398461[_0x2cb73e(0x166)]};if(_0x398461[_0x2cb73e(0x151)]>0x0)_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x157));}else exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]};const _0xc37d87=_0x57cf5d['toLowerCase'](),_0x29f9e8=isFeatureEnabled(_0x2cb73e(0x141));try{if(_0x29f9e8){if(_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x120))||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x102)))return _0x52714d(_0x2cb73e(0x141),(0x0,git_1[_0x2cb73e(0x14e)])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)]('git\x20log')||_0xc37d87['includes'](_0x2cb73e(0x119)))return _0x52714d(_0x2cb73e(0x141),(0x0,git_1[_0x2cb73e(0x104)])(_0xf31fb9));if(_0xc37d87['includes']('git\x20diff')||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x153))||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x164)))return _0x52714d('filter',(0x0,git_1['filterGitDiff'])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x10e))||_0xc37d87[_0x2cb73e(0x12b)](/python3?\s+-m\s+pytest/))return _0x52714d(_0x2cb73e(0x141),(0x0,python_1[_0x2cb73e(0x132)])(_0xf31fb9));if(_0xc37d87['includes'](_0x2cb73e(0x163))||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x15c)))return _0x52714d(_0x2cb73e(0x141),(0x0,python_1[_0x2cb73e(0x16a)])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x126))||_0xc37d87['includes'](_0x2cb73e(0x112)))return _0x52714d('filter',(0x0,devops_1['filterRuff'])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)]('npm\x20install')||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x152))||_0xc37d87[_0x2cb73e(0x12d)](_0x2cb73e(0x14f))||_0xc37d87['includes'](_0x2cb73e(0x16d))||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x133)))return _0x52714d(_0x2cb73e(0x141),(0x0,js_1[_0x2cb73e(0x150)])(_0xf31fb9));if(_0xc37d87['includes'](_0x2cb73e(0x12f))||_0xc37d87['includes'](_0x2cb73e(0x11b)))return _0x52714d('filter',(0x0,js_1[_0x2cb73e(0x147)])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x10f))||_0xc37d87['includes'](_0x2cb73e(0x130))||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x131))||_0xc37d87[_0x2cb73e(0x161)]('npm\x20run\x20test'))return _0x52714d('filter',(0x0,js_1[_0x2cb73e(0x147)])(_0xf31fb9));if(_0xc37d87['includes'](_0x2cb73e(0x139)))return _0x52714d(_0x2cb73e(0x141),(0x0,rust_1[_0x2cb73e(0xfc)])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x16c))||_0xc37d87[_0x2cb73e(0x161)]('cargo\x20check')||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x121)))return _0x52714d(_0x2cb73e(0x141),(0x0,rust_1[_0x2cb73e(0x146)])(_0xf31fb9));if(_0xc37d87['includes'](_0x2cb73e(0x13c)))return _0x52714d(_0x2cb73e(0x141),(0x0,go_1['filterGoTest'])(_0xf31fb9));if(_0xc37d87['includes'](_0x2cb73e(0x148)))return _0x52714d(_0x2cb73e(0x141),(0x0,go_1[_0x2cb73e(0x14a)])(_0xf31fb9));if(_0xc37d87['match'](/docker\s+ps/))return _0x52714d('filter',(0x0,devops_1[_0x2cb73e(0x13a)])(_0xf31fb9));if(_0xc37d87['match'](/docker\s+images/))return _0x52714d(_0x2cb73e(0x141),(0x0,devops_1[_0x2cb73e(0x160)])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x12b)](/docker\s+logs/))return _0x52714d('filter',(0x0,devops_1[_0x2cb73e(0x136)])(_0xf31fb9));if(_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x11e))){const _0x15127e=_0xc37d87[_0x2cb73e(0x12b)](/kubectl\s+(get|logs|describe|apply)/),_0x5add7a=_0x15127e?_0x15127e[0x1]:_0x2cb73e(0x11f);return _0x52714d('filter',(0x0,devops_1[_0x2cb73e(0x16e)])(_0xf31fb9,_0x5add7a));}if(_0xc37d87['match'](/^(ls|dir)(\s|$)/)||_0xc37d87[_0x2cb73e(0x161)](_0x2cb73e(0x110))||_0xc37d87['endsWith'](_0x2cb73e(0x113)))return _0x52714d('filter',(0x0,shell_1[_0x2cb73e(0x159)])(_0xf31fb9));if(_0xc37d87['match'](/^tree(\s|$)/)||_0xc37d87[_0x2cb73e(0x161)]('\x20tree\x20')||_0xc37d87['endsWith']('\x20tree'))return _0x52714d('filter',(0x0,shell_1[_0x2cb73e(0x115)])(_0xf31fb9));if(_0xc37d87['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x5d7104=(0x0,shell_1[_0x2cb73e(0xfe)])(_0xf31fb9,_0x57cf5d);if(_0x5d7104[_0x2cb73e(0x161)](_0x2cb73e(0x10b)))_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x14c));else{if(_0x5d7104[_0x2cb73e(0x161)](_0x2cb73e(0x169))||_0x5d7104[_0x2cb73e(0x161)](_0x2cb73e(0x114)))_0x392367[_0x2cb73e(0x165)]('binary');else{if(_0x5d7104['includes'](_0x2cb73e(0x142)))_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x15e));else{if(_0x5d7104['includes']('|\x20')&&_0x5d7104[_0x2cb73e(0x161)](_0x2cb73e(0x109))&&_0x5d7104[_0x2cb73e(0x116)]<_0xf31fb9[_0x2cb73e(0x116)]*0.5)_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x16b));else{if(_0x5d7104[_0x2cb73e(0x161)]('lines\x20truncated'))_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x141));}}}}if(_0x5d7104['length']<_0xf31fb9[_0x2cb73e(0x116)]&&!_0x392367[_0x2cb73e(0x122)](_0x2ec68f=>_0x2ec68f!==_0x2cb73e(0x135)&&_0x2ec68f!==_0x2cb73e(0x157)))_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x141));return exports['lastFeatures']=_0x392367,_0x5d7104;}if(_0xc37d87[_0x2cb73e(0x12b)](/^find(\s|$)/))return _0x52714d(_0x2cb73e(0x141),(0x0,shell_1[_0x2cb73e(0x13e)])(_0xf31fb9));if(_0xc37d87['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x52714d(_0x2cb73e(0x141),(0x0,shell_1['filterGrep'])(_0xf31fb9));}}catch(_0x52ae41){}return isFeatureEnabled(_0x2cb73e(0x158))&&(_0xf31fb9=(0x0,generic_1[_0x2cb73e(0x100)])(_0xf31fb9),_0x392367[_0x2cb73e(0x165)](_0x2cb73e(0x158))),_0xf31fb9=(0x0,generic_1[_0x2cb73e(0x13b)])(_0xf31fb9),_0xf31fb9=(0x0,generic_1[_0x2cb73e(0x127)])(_0xf31fb9,0x4e20),exports[_0x2cb73e(0x156)]=_0x392367,_0xf31fb9;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x7c7992(0x11c)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x7c7992(0x140)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x7c7992(0x15b)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x7c7992(0x107)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x7c7992(0x111)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x7c7992(0x155)},{'pattern':/^npx\s+/,'prefix':a0_0x7c7992(0x12c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x7c7992(0x125)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x7c7992(0x168)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x7c7992(0x149)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x7c7992(0x15d)},{'pattern':/^find\s+/,'prefix':a0_0x7c7992(0x10d)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x7c7992(0x128)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':'trim\x20kubectl'},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x7c7992(0x145)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x7c7992(0x123)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x7c7992(0x105)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x7c7992(0x15a)}];function rewriteCommand(_0xfd7024){const _0x1322e2=a0_0x7c7992,_0x4b0458=_0xfd7024['trim']();if(_0x4b0458[_0x1322e2(0x103)](_0x1322e2(0x134)))return _0x4b0458;for(const _0x4afe84 of REWRITE_RULES){if(_0x4afe84[_0x1322e2(0x11d)][_0x1322e2(0xfb)](_0x4b0458))return _0x1322e2(0x134)+_0x4b0458;}return _0x4b0458;}
|
|
1
|
+
'use strict';const a0_0x4fad25=a0_0x3abf;function a0_0x3abf(_0x57d98e,_0x512468){_0x57d98e=_0x57d98e-0x191;const _0x3072ff=a0_0x3072();let _0x3abf07=_0x3072ff[_0x57d98e];return _0x3abf07;}(function(_0x565287,_0x1ab17a){const _0xe92a40=a0_0x3abf,_0x2b4af8=_0x565287();while(!![]){try{const _0x407330=parseInt(_0xe92a40(0x1db))/0x1+parseInt(_0xe92a40(0x1ff))/0x2+parseInt(_0xe92a40(0x202))/0x3+-parseInt(_0xe92a40(0x1ee))/0x4*(-parseInt(_0xe92a40(0x1d7))/0x5)+-parseInt(_0xe92a40(0x193))/0x6+-parseInt(_0xe92a40(0x194))/0x7*(parseInt(_0xe92a40(0x1c3))/0x8)+parseInt(_0xe92a40(0x1b7))/0x9;if(_0x407330===_0x1ab17a)break;else _0x2b4af8['push'](_0x2b4af8['shift']());}catch(_0x7a27bc){_0x2b4af8['push'](_0x2b4af8['shift']());}}}(a0_0x3072,0x3bb62));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['lastFeatures']=exports['lastRedactAudit']=void 0x0,exports['compressOutput']=compressOutput,exports[a0_0x4fad25(0x1ab)]=rewriteCommand;const generic_1=require(a0_0x4fad25(0x1e4)),git_1=require(a0_0x4fad25(0x1f0)),python_1=require(a0_0x4fad25(0x1f6)),js_1=require(a0_0x4fad25(0x1d3)),shell_1=require(a0_0x4fad25(0x1f7)),rust_1=require(a0_0x4fad25(0x1d8)),go_1=require(a0_0x4fad25(0x196)),devops_1=require(a0_0x4fad25(0x1d6)),redactor_1=require('../redactor'),tracker_1=require(a0_0x4fad25(0x1de));function a0_0x3072(){const _0x48cbaa=['trim\x20go','collapseWhitespace','get','trim\x20pytest','yarn\x20test','\x20ls','lastRedactAudit','cargo\x20check','trim\x20pip','filterCargoTest','pnpm\x20test','vitest','rewriteCommand','getConfig','lastFeatures','toLowerCase','secretsFound','trim\x20tree','cargo\x20build','ruff\x20','[lock\x20file]','yarn\x20install','filterKubectl','trim\x20','752274qlFRUC','pip\x20install','yadm\x20log','[minified\x20file]','text','test','filterDockerImages','go\x20test','includes','npm\x20i\x20','filterGitDiff','trim\x20ruff','8TRVAJP','filterGitStatus','match','go\x20vet','filterCat','trim\x20pnpm','skeleton','git\x20show','trim\x20cargo','git\x20diff','filterGitLog','trim\x20npm','filterGrep','collapseDuplicates','secretTypes','filter','./js','filterGoVet','filterLs','./devops','925EDgPnC','./rust','redact','trim','217359PqPOzN','pytest','[code\x20skeleton]','../tracker','softTruncate','\x20tree','jest','pip3\x20install','[binary','./generic','some','push','\x20tree\x20','startsWith','\x20ls\x20','yadm\x20status','filterDockerLogs','ruff\x20check','npm\x20test','428SbYMzW','tracker','./git','stripAnsi','npm\x20install','trim\x20ls','length','features_enabled','./python','./shell','endsWith','pattern','filterTree','npm\x20i','ansi_strip','kubectl','trim\x20grep','570060vglIZh','yadm\x20diff','filterGoTest','707364YCrXNr','cargo\x20clippy','filterRuff','2162358sLRMNz','1656109NLEJIH','lines\x20truncated','./go','trim\x20find','filterPipInstall','whitespace','redactor','filterFind','filterJestVitest','trim\x20gh','---'];a0_0x3072=function(){return _0x48cbaa;};return a0_0x3072();}exports[a0_0x4fad25(0x1a5)]={'secretsFound':0x0,'secretTypes':[]},exports['lastFeatures']=[];function isFeatureEnabled(_0x25dbb7){const _0x4e4ce7=a0_0x4fad25;try{const _0x4eca99=tracker_1[_0x4e4ce7(0x1ef)][_0x4e4ce7(0x1ac)](),_0x309d9a=_0x4eca99[_0x4e4ce7(0x1f5)];if(!_0x309d9a||_0x309d9a[_0x25dbb7]===undefined)return!![];return _0x309d9a[_0x25dbb7]!==![];}catch{return!![];}}function compressOutput(_0x3b8568,_0x1debc5,_0x3831ab,_0x5c1dfd=!![]){const _0x32c5fb=a0_0x4fad25,_0x26c138=_0x3b8568[_0x32c5fb(0x1da)]();let _0x42f214=_0x1debc5;_0x3831ab[_0x32c5fb(0x1da)]()[_0x32c5fb(0x1f4)]>0x0&&(_0x42f214=_0x1debc5+'\x0a'+_0x3831ab);let _0x34a232=isFeatureEnabled(_0x32c5fb(0x1fc))?(0x0,generic_1[_0x32c5fb(0x1f1)])(_0x42f214):_0x42f214;const _0x265769=[];if(_0x34a232['length']<_0x42f214[_0x32c5fb(0x1f4)])_0x265769[_0x32c5fb(0x1e6)](_0x32c5fb(0x1fc));const _0x35177d=(_0x4930a1,_0x5390b8)=>{const _0x2ee14b=_0x32c5fb;return _0x265769[_0x2ee14b(0x1e6)](_0x4930a1),exports[_0x2ee14b(0x1ad)]=_0x265769,_0x5390b8;};if(_0x5c1dfd&&isFeatureEnabled(_0x32c5fb(0x1d9))){const _0x3be908=redactor_1[_0x32c5fb(0x19a)]['redactWithAudit'](_0x34a232);_0x34a232=_0x3be908[_0x32c5fb(0x1bb)],exports[_0x32c5fb(0x1a5)]={'secretsFound':_0x3be908['secretsFound'],'secretTypes':_0x3be908[_0x32c5fb(0x1d1)]};if(_0x3be908[_0x32c5fb(0x1af)]>0x0)_0x265769[_0x32c5fb(0x1e6)](_0x32c5fb(0x1d9));}else exports[_0x32c5fb(0x1a5)]={'secretsFound':0x0,'secretTypes':[]};const _0x9715aa=_0x26c138[_0x32c5fb(0x1ae)](),_0x10696c=isFeatureEnabled(_0x32c5fb(0x1d2));try{if(_0x10696c){if(_0x9715aa[_0x32c5fb(0x1bf)]('git\x20status')||_0x9715aa['includes'](_0x32c5fb(0x1ea)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,git_1[_0x32c5fb(0x1c4)])(_0x34a232));if(_0x9715aa['includes']('git\x20log')||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1b9)))return _0x35177d('filter',(0x0,git_1[_0x32c5fb(0x1cd)])(_0x34a232));if(_0x9715aa['includes'](_0x32c5fb(0x1cc))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1ca))||_0x9715aa['includes'](_0x32c5fb(0x200)))return _0x35177d('filter',(0x0,git_1[_0x32c5fb(0x1c1)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1dc))||_0x9715aa[_0x32c5fb(0x1c5)](/python3?\s+-m\s+pytest/))return _0x35177d(_0x32c5fb(0x1d2),(0x0,python_1['filterPytest'])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1b8))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1e2)))return _0x35177d('filter',(0x0,python_1[_0x32c5fb(0x198)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1ec))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1b2)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,devops_1[_0x32c5fb(0x192)])(_0x34a232));if(_0x9715aa['includes'](_0x32c5fb(0x1f2))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1c0))||_0x9715aa[_0x32c5fb(0x1f8)](_0x32c5fb(0x1fb))||_0x9715aa['includes']('pnpm\x20install')||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1b4)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,js_1['filterNpmInstall'])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1e1))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1aa)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,js_1[_0x32c5fb(0x19c)])(_0x34a232));if(_0x9715aa['includes'](_0x32c5fb(0x1ed))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1a9))||_0x9715aa['includes'](_0x32c5fb(0x1a3))||_0x9715aa[_0x32c5fb(0x1bf)]('npm\x20run\x20test'))return _0x35177d('filter',(0x0,js_1[_0x32c5fb(0x19c)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)]('cargo\x20test'))return _0x35177d(_0x32c5fb(0x1d2),(0x0,rust_1[_0x32c5fb(0x1a8)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1b1))||_0x9715aa['includes'](_0x32c5fb(0x1a6))||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x191)))return _0x35177d('filter',(0x0,rust_1['filterCargoBuild'])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1be)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,go_1[_0x32c5fb(0x201)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1c6)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,go_1[_0x32c5fb(0x1d4)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1c5)](/docker\s+ps/))return _0x35177d(_0x32c5fb(0x1d2),(0x0,devops_1['filterDockerPs'])(_0x34a232));if(_0x9715aa['match'](/docker\s+images/))return _0x35177d(_0x32c5fb(0x1d2),(0x0,devops_1[_0x32c5fb(0x1bd)])(_0x34a232));if(_0x9715aa['match'](/docker\s+logs/))return _0x35177d(_0x32c5fb(0x1d2),(0x0,devops_1[_0x32c5fb(0x1eb)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1fd))){const _0x5e022e=_0x9715aa['match'](/kubectl\s+(get|logs|describe|apply)/),_0x2c222a=_0x5e022e?_0x5e022e[0x1]:_0x32c5fb(0x1a1);return _0x35177d(_0x32c5fb(0x1d2),(0x0,devops_1[_0x32c5fb(0x1b5)])(_0x34a232,_0x2c222a));}if(_0x9715aa[_0x32c5fb(0x1c5)](/^(ls|dir)(\s|$)/)||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1e9))||_0x9715aa[_0x32c5fb(0x1f8)](_0x32c5fb(0x1a4)))return _0x35177d(_0x32c5fb(0x1d2),(0x0,shell_1[_0x32c5fb(0x1d5)])(_0x34a232));if(_0x9715aa['match'](/^tree(\s|$)/)||_0x9715aa[_0x32c5fb(0x1bf)](_0x32c5fb(0x1e7))||_0x9715aa[_0x32c5fb(0x1f8)](_0x32c5fb(0x1e0)))return _0x35177d('filter',(0x0,shell_1[_0x32c5fb(0x1fa)])(_0x34a232));if(_0x9715aa[_0x32c5fb(0x1c5)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x49cecf=(0x0,shell_1[_0x32c5fb(0x1c7)])(_0x34a232,_0x26c138);if(_0x49cecf[_0x32c5fb(0x1bf)](_0x32c5fb(0x1b3)))_0x265769[_0x32c5fb(0x1e6)]('lock');else{if(_0x49cecf[_0x32c5fb(0x1bf)](_0x32c5fb(0x1e3))||_0x49cecf[_0x32c5fb(0x1bf)](_0x32c5fb(0x1ba)))_0x265769[_0x32c5fb(0x1e6)]('binary');else{if(_0x49cecf['includes'](_0x32c5fb(0x1dd)))_0x265769[_0x32c5fb(0x1e6)](_0x32c5fb(0x1c9));else{if(_0x49cecf[_0x32c5fb(0x1bf)]('|\x20')&&_0x49cecf['includes'](_0x32c5fb(0x19e))&&_0x49cecf[_0x32c5fb(0x1f4)]<_0x34a232['length']*0.5)_0x265769[_0x32c5fb(0x1e6)]('json_crusher');else{if(_0x49cecf[_0x32c5fb(0x1bf)](_0x32c5fb(0x195)))_0x265769[_0x32c5fb(0x1e6)](_0x32c5fb(0x1d2));}}}}if(_0x49cecf[_0x32c5fb(0x1f4)]<_0x34a232[_0x32c5fb(0x1f4)]&&!_0x265769[_0x32c5fb(0x1e5)](_0x79a57=>_0x79a57!==_0x32c5fb(0x1fc)&&_0x79a57!==_0x32c5fb(0x1d9)))_0x265769['push'](_0x32c5fb(0x1d2));return exports[_0x32c5fb(0x1ad)]=_0x265769,_0x49cecf;}if(_0x9715aa[_0x32c5fb(0x1c5)](/^find(\s|$)/))return _0x35177d(_0x32c5fb(0x1d2),(0x0,shell_1[_0x32c5fb(0x19b)])(_0x34a232));if(_0x9715aa['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x35177d(_0x32c5fb(0x1d2),(0x0,shell_1[_0x32c5fb(0x1cf)])(_0x34a232));}}catch(_0x438572){}return isFeatureEnabled(_0x32c5fb(0x199))&&(_0x34a232=(0x0,generic_1[_0x32c5fb(0x1a0)])(_0x34a232),_0x265769[_0x32c5fb(0x1e6)](_0x32c5fb(0x199))),_0x34a232=(0x0,generic_1[_0x32c5fb(0x1d0)])(_0x34a232),_0x34a232=(0x0,generic_1[_0x32c5fb(0x1df)])(_0x34a232,0x4e20),exports[_0x32c5fb(0x1ad)]=_0x265769,_0x34a232;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':'trim\x20git'},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x4fad25(0x19d)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x4fad25(0x1cb)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x4fad25(0x1c8)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x4fad25(0x1ce)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x4fad25(0x1fe)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x4fad25(0x1f3)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x4fad25(0x1b0)},{'pattern':/^find\s+/,'prefix':a0_0x4fad25(0x197)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':'trim\x20kubectl'},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x4fad25(0x1a2)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x4fad25(0x1c2)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x4fad25(0x1a7)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x4fad25(0x19f)}];function rewriteCommand(_0x3ff7b5){const _0xbbd57a=a0_0x4fad25,_0x47bfa2=_0x3ff7b5['trim']();if(_0x47bfa2[_0xbbd57a(0x1e8)](_0xbbd57a(0x1b6)))return _0x47bfa2;for(const _0x24f27d of REWRITE_RULES){if(_0x24f27d[_0xbbd57a(0x1f9)][_0xbbd57a(0x1bc)](_0x47bfa2))return _0xbbd57a(0x1b6)+_0x47bfa2;}return _0x47bfa2;}
|
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x8e394d=a0_0x2c29;(function(_0x2aa5e0,_0x4c6d4b){const _0x55aafe=a0_0x2c29,_0x48e168=_0x2aa5e0();while(!![]){try{const _0x49b7d7=parseInt(_0x55aafe(0x7b))/0x1+-parseInt(_0x55aafe(0x94))/0x2+parseInt(_0x55aafe(0x8e))/0x3*(-parseInt(_0x55aafe(0x72))/0x4)+-parseInt(_0x55aafe(0x8f))/0x5+parseInt(_0x55aafe(0x92))/0x6*(parseInt(_0x55aafe(0x71))/0x7)+parseInt(_0x55aafe(0x8c))/0x8+-parseInt(_0x55aafe(0x95))/0x9*(-parseInt(_0x55aafe(0x75))/0xa);if(_0x49b7d7===_0x4c6d4b)break;else _0x48e168['push'](_0x48e168['shift']());}catch(_0x5b1012){_0x48e168['push'](_0x48e168['shift']());}}}(a0_0x553a,0x7115d));function a0_0x553a(){const _0x47a7d0=['length','\x20failed\x20(','slice','found\x20','574854rYaCIj','startsWith','Test\x20Runner:\x20','filterJestVitest','__esModule','NPM:\x20Packages\x20verified/installed\x20successfully','audited\x20','join','FAIL\x20\x20','defineProperty','\x20total)','push','Test\x20Files:','\x0aFailures:','Tests:','removed\x20','split','5080752cXnkoO','match','93JtIcKq','3098805XKqQcT','\x20\x20...\x20(','Test\x20Suites:','12XtAnDh','all','1041576YAPQwz','9wmTzyb','\x20passed','includes','\x20passed,\x20','\x20lines\x20of\x20trace\x20details\x20truncated)','trim','1252321foObui','52268SRZspN','up\x20to\x20date','added\x20','4410690CUpSsb','filterNpmInstall'];a0_0x553a=function(){return _0x47a7d0;};return a0_0x553a();}Object[a0_0x8e394d(0x84)](exports,a0_0x8e394d(0x7f),{'value':!![]}),exports[a0_0x8e394d(0x76)]=filterNpmInstall,exports[a0_0x8e394d(0x7e)]=filterJestVitest;function filterNpmInstall(_0xcbc1f6){const _0x265443=a0_0x8e394d,_0x1b4ccc=_0xcbc1f6['replace'](/\r/g,'\x0a'),_0x220a7c=_0x1b4ccc[_0x265443(0x8b)]('\x0a'),_0x123e6b=[];for(const _0x3d4e77 of _0x220a7c){const _0x39b00a=_0x3d4e77[_0x265443(0x70)]();(_0x39b00a[_0x265443(0x6d)](_0x265443(0x74))||_0x39b00a['includes'](_0x265443(0x8a))||_0x39b00a['includes'](_0x265443(0x81))||_0x39b00a[_0x265443(0x6d)](_0x265443(0x73))||_0x39b00a[_0x265443(0x6d)](_0x265443(0x7a)))&&(!_0x39b00a['includes']('%')&&!_0x39b00a[_0x265443(0x7c)]('⠋')&&!_0x39b00a[_0x265443(0x7c)]('⠙')&&_0x123e6b['push'](_0x39b00a));}const _0x4023c1=_0x123e6b[_0x265443(0x82)]('\x0a')['trim']();return _0x4023c1[_0x265443(0x77)]>0x0?_0x4023c1:_0x265443(0x80);}function a0_0x2c29(_0x506c09,_0x4f1754){_0x506c09=_0x506c09-0x6d;const _0x553a4f=a0_0x553a();let _0x2c2902=_0x553a4f[_0x506c09];return _0x2c2902;}function filterJestVitest(_0x2f3689){const _0x277380=a0_0x8e394d,_0x32aaab=_0x2f3689[_0x277380(0x8b)]('\x0a');let _0x56a0eb=0x0,_0x1f8737=0x0,_0x2a6173=0x0;const _0x3ef786=[];let _0x1279c3=![];for(const _0x4e355f of _0x32aaab){const _0x1675ea=_0x4e355f[_0x277380(0x70)]();if(_0x1675ea[_0x277380(0x7c)](_0x277380(0x89))||_0x1675ea[_0x277380(0x6d)](_0x277380(0x87))){const _0x2074cc=_0x1675ea['match'](/(\d+)\s+passed/),_0x927468=_0x1675ea[_0x277380(0x8d)](/(\d+)\s+failed/),_0x28d503=_0x1675ea['match'](/(\d+)\s+total/);if(_0x2074cc)_0x56a0eb=parseInt(_0x2074cc[0x1]);if(_0x927468)_0x1f8737=parseInt(_0x927468[0x1]);if(_0x28d503)_0x2a6173=parseInt(_0x28d503[0x1]);continue;}(_0x1675ea[_0x277380(0x7c)]('❯')||_0x1675ea[_0x277380(0x7c)]('●')||_0x1675ea[_0x277380(0x7c)](_0x277380(0x83)))&&(_0x1279c3=!![]),_0x1279c3&&(_0x1675ea[_0x277380(0x77)]>0x0&&!_0x1675ea[_0x277380(0x7c)](_0x277380(0x91))&&!_0x1675ea[_0x277380(0x7c)](_0x277380(0x89))&&_0x3ef786[_0x277380(0x86)](_0x4e355f));}if(_0x2a6173===0x0&&_0x56a0eb===0x0&&_0x1f8737===0x0){if(_0x2f3689[_0x277380(0x6d)]('PASS')&&!_0x2f3689[_0x277380(0x6d)]('FAIL')){const _0x18f6f8=_0x2f3689['match'](/(\d+)\s+passed/),_0xa0ae15=_0x18f6f8?_0x18f6f8[0x1]:_0x277380(0x93);return _0x277380(0x7d)+_0xa0ae15+'\x20passed';}return _0x2f3689;}if(_0x1f8737===0x0&&_0x56a0eb>0x0)return _0x277380(0x7d)+_0x56a0eb+_0x277380(0x96);const _0xf67dab=['Test\x20Runner:\x20'+_0x56a0eb+_0x277380(0x6e)+_0x1f8737+_0x277380(0x78)+_0x2a6173+_0x277380(0x85)];if(_0x3ef786['length']>0x0){_0xf67dab[_0x277380(0x86)](_0x277380(0x88));const _0x43db5e=0x19,_0x24a38d=_0x3ef786[_0x277380(0x79)](0x0,_0x43db5e);for(const _0x14c5f6 of _0x24a38d){_0xf67dab[_0x277380(0x86)]('\x20\x20'+_0x14c5f6);}_0x3ef786[_0x277380(0x77)]>_0x43db5e&&_0xf67dab[_0x277380(0x86)](_0x277380(0x90)+(_0x3ef786[_0x277380(0x77)]-_0x43db5e)+_0x277380(0x6f));}return _0xf67dab['join']('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x5a8fe4=a0_0x46aa;(function(_0x4aed3e,_0x5ba894){const _0x557360=a0_0x46aa,_0x365737=_0x4aed3e();while(!![]){try{const _0x58f91c=parseInt(_0x557360(0xa6))/0x1*(-parseInt(_0x557360(0x90))/0x2)+parseInt(_0x557360(0x82))/0x3+-parseInt(_0x557360(0x8f))/0x4*(-parseInt(_0x557360(0xa3))/0x5)+-parseInt(_0x557360(0x9d))/0x6+parseInt(_0x557360(0x80))/0x7*(-parseInt(_0x557360(0xa9))/0x8)+parseInt(_0x557360(0x96))/0x9*(-parseInt(_0x557360(0x8a))/0xa)+parseInt(_0x557360(0xa4))/0xb;if(_0x58f91c===_0x5ba894)break;else _0x365737['push'](_0x365737['shift']());}catch(_0x3bbd37){_0x365737['push'](_0x365737['shift']());}}}(a0_0xfed0,0x5ed1b));Object['defineProperty'](exports,a0_0x5a8fe4(0x9a),{'value':!![]}),exports[a0_0x5a8fe4(0x97)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x5795c0){const _0x1ab9a1=a0_0x5a8fe4,_0x18ec43=_0x5795c0[_0x1ab9a1(0x7e)]('\x0a');let _0x566d9d=0x0,_0x16f0d5=0x0,_0x1fc553=0x0,_0x49ee59=0x0,_0x249184=0x0;const _0x279c89=[];let _0x48a8d9=[],_0x57fcf4=![];for(const _0xafd2c2 of _0x18ec43){const _0x354f2d=_0xafd2c2[_0x1ab9a1(0x88)]();if(_0x354f2d[_0x1ab9a1(0x91)](_0x1ab9a1(0x98))||_0x354f2d['startsWith'](_0x1ab9a1(0x9f))){_0x57fcf4=!![];continue;}else(_0x354f2d[_0x1ab9a1(0x91)]('===\x20short\x20test\x20summary\x20info\x20===')||_0x354f2d['startsWith']('===')&&_0x354f2d[_0x1ab9a1(0x7b)]('passed'))&&(_0x57fcf4=![],_0x48a8d9[_0x1ab9a1(0x95)]>0x0&&(_0x279c89[_0x1ab9a1(0x86)](_0x48a8d9),_0x48a8d9=[]));if(_0x57fcf4){if(_0x354f2d[_0x1ab9a1(0x91)](_0x1ab9a1(0x93)))_0x48a8d9[_0x1ab9a1(0x95)]>0x0&&(_0x279c89['push'](_0x48a8d9),_0x48a8d9=[]),_0x48a8d9['push'](_0x354f2d);else _0x354f2d[_0x1ab9a1(0x95)]>0x0&&_0x48a8d9[_0x1ab9a1(0x86)](_0xafd2c2);continue;}if(_0x354f2d['startsWith'](_0x1ab9a1(0x87))&&_0x354f2d[_0x1ab9a1(0x7b)](_0x1ab9a1(0x9e))){const _0x79c8b4=_0x354f2d[_0x1ab9a1(0x94)](/(\d+)\s+passed/),_0x5e410b=_0x354f2d[_0x1ab9a1(0x94)](/(\d+)\s+failed/),_0x5e2b8e=_0x354f2d[_0x1ab9a1(0x94)](/(\d+)\s+skipped/),_0x3d8e1c=_0x354f2d[_0x1ab9a1(0x94)](/(\d+)\s+xfailed/),_0x235069=_0x354f2d[_0x1ab9a1(0x94)](/(\d+)\s+xpassed/);if(_0x79c8b4)_0x566d9d=parseInt(_0x79c8b4[0x1]);if(_0x5e410b)_0x16f0d5=parseInt(_0x5e410b[0x1]);if(_0x5e2b8e)_0x1fc553=parseInt(_0x5e2b8e[0x1]);if(_0x3d8e1c)_0x49ee59=parseInt(_0x3d8e1c[0x1]);if(_0x235069)_0x249184=parseInt(_0x235069[0x1]);}}_0x48a8d9['length']>0x0&&_0x279c89['push'](_0x48a8d9);if(_0x566d9d===0x0&&_0x16f0d5===0x0&&_0x1fc553===0x0&&_0x49ee59===0x0&&_0x249184===0x0){if(_0x5795c0[_0x1ab9a1(0x7b)](_0x1ab9a1(0xa8))&&!_0x5795c0[_0x1ab9a1(0x7b)]('failed'))return _0x1ab9a1(0x85);return _0x5795c0;}if(_0x16f0d5===0x0&&_0x566d9d>0x0&&_0x1fc553===0x0&&_0x49ee59===0x0&&_0x249184===0x0)return'Pytest:\x20'+_0x566d9d+_0x1ab9a1(0x7d);const _0x381f23=[];_0x381f23[_0x1ab9a1(0x86)](_0x1ab9a1(0x8c)+_0x566d9d+_0x1ab9a1(0x7d));if(_0x16f0d5>0x0)_0x381f23['push'](_0x16f0d5+_0x1ab9a1(0xa1));if(_0x1fc553>0x0)_0x381f23['push'](_0x1fc553+_0x1ab9a1(0xa5));if(_0x49ee59>0x0)_0x381f23['push'](_0x49ee59+'\x20xfailed');if(_0x249184>0x0)_0x381f23[_0x1ab9a1(0x86)](_0x249184+_0x1ab9a1(0x99));const _0x33e506=[_0x381f23[_0x1ab9a1(0x9c)](',\x20')];if(_0x279c89[_0x1ab9a1(0x95)]>0x0){_0x33e506[_0x1ab9a1(0x86)](_0x1ab9a1(0x8e));const _0xf45c68=0x3,_0x454015=_0x279c89[_0x1ab9a1(0x8b)](0x0,_0xf45c68);for(let _0x19776a=0x0;_0x19776a<_0x454015[_0x1ab9a1(0x95)];_0x19776a++){const _0x34fa4a=_0x454015[_0x19776a],_0x546e4e=_0x34fa4a[0x0][_0x1ab9a1(0x8d)](/_/g,'')[_0x1ab9a1(0x88)]();_0x33e506['push']('\x20\x20'+(_0x19776a+0x1)+_0x1ab9a1(0x7c)+_0x546e4e);const _0x4009de=_0x34fa4a[_0x1ab9a1(0x8b)](0x1),_0x356808=_0x4009de[_0x1ab9a1(0xa7)](_0x5c1a32=>{const _0x3f9174=_0x1ab9a1,_0x12460c=_0x5c1a32[_0x3f9174(0x88)]();return _0x12460c[_0x3f9174(0x91)]('>')||_0x12460c['startsWith'](_0x3f9174(0x83))||_0x12460c[_0x3f9174(0x7b)](_0x3f9174(0x9b))||_0x12460c[_0x3f9174(0x7b)]('AssertionError:');});for(const _0x48dfe2 of _0x356808[_0x1ab9a1(0x8b)](0x0,0x8)){_0x33e506[_0x1ab9a1(0x86)](_0x1ab9a1(0x89)+_0x48dfe2);}_0x356808[_0x1ab9a1(0x95)]>0x8&&_0x33e506[_0x1ab9a1(0x86)](_0x1ab9a1(0x92)+(_0x356808[_0x1ab9a1(0x95)]-0x8)+_0x1ab9a1(0xa2));}_0x279c89['length']>_0xf45c68&&_0x33e506[_0x1ab9a1(0x86)](_0x1ab9a1(0x81)+(_0x279c89[_0x1ab9a1(0x95)]-_0xf45c68)+'\x20more\x20failures\x20truncated');}return _0x33e506[_0x1ab9a1(0x9c)]('\x0a');}function a0_0x46aa(_0x9b426a,_0x39393c){_0x9b426a=_0x9b426a-0x7b;const _0xfed0bd=a0_0xfed0();let _0x46aa88=_0xfed0bd[_0x9b426a];return _0x46aa88;}function filterPipInstall(_0x4eb4fc){const _0x12f62b=a0_0x5a8fe4,_0x19d663=_0x4eb4fc[_0x12f62b(0x7e)]('\x0a'),_0x14aad6=[];for(const _0x49fd68 of _0x19d663){const _0x331534=_0x49fd68[_0x12f62b(0x88)]();_0x331534[_0x12f62b(0x91)](_0x12f62b(0x7f))&&_0x14aad6[_0x12f62b(0x86)](_0x331534);}if(_0x14aad6[_0x12f62b(0x95)]>0x0)return _0x14aad6[_0x12f62b(0x9c)]('\x0a');return _0x19d663[_0x12f62b(0xa7)](_0x2f7aba=>{const _0x4210d1=_0x12f62b,_0x20b474=_0x2f7aba[_0x4210d1(0x88)]();return!_0x20b474[_0x4210d1(0x91)]('Collecting')&&!_0x20b474[_0x4210d1(0x91)](_0x4210d1(0xa0))&&!_0x20b474[_0x4210d1(0x7b)](_0x4210d1(0x84))&&!_0x20b474['startsWith']('Requirement\x20already\x20satisfied');})[_0x12f62b(0x9c)]('\x0a')[_0x12f62b(0x88)]();}function a0_0xfed0(){const _0x171bd8=['\x20\x20...\x20+','2047401XQtuVO','E\x20\x20\x20','Using\x20cached','Pytest:\x20All\x20tests\x20passed','push','===','trim','\x20\x20\x20\x20','25770IAYSYQ','slice','Pytest:\x20','replace','\x0aFailures:','2487464ZkBpOu','5318azXHzl','startsWith','\x20\x20\x20\x20...\x20(','___','match','length','963ZRDPnK','filterPytest','===\x20FAILURES\x20===','\x20xpassed\x20(warning!)','__esModule','.py:','join','2072466XhNzdK','\x20in\x20','===\x20ERRORS\x20===','Downloading','\x20failed','\x20lines\x20of\x20stacktrace\x20truncated)','5XjwZMX','93830dNZUtm','\x20skipped','71sbdSVN','filter','passed','29560OEOKoh','includes','.\x20[FAIL]\x20','\x20passed','split','Successfully\x20installed','217boQcHZ'];a0_0xfed0=function(){return _0x171bd8;};return a0_0xfed0();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x385f06=a0_0x151e;(function(_0x379fe6,_0x4f59da){const _0x1662cd=a0_0x151e,_0x14e857=_0x379fe6();while(!![]){try{const _0x3d4cf6=parseInt(_0x1662cd(0x10b))/0x1*(parseInt(_0x1662cd(0x10f))/0x2)+-parseInt(_0x1662cd(0x12c))/0x3+-parseInt(_0x1662cd(0x108))/0x4*(parseInt(_0x1662cd(0xf9))/0x5)+parseInt(_0x1662cd(0x107))/0x6+-parseInt(_0x1662cd(0x113))/0x7*(-parseInt(_0x1662cd(0x11c))/0x8)+parseInt(_0x1662cd(0x11f))/0x9+parseInt(_0x1662cd(0x109))/0xa*(-parseInt(_0x1662cd(0x118))/0xb);if(_0x3d4cf6===_0x4f59da)break;else _0x14e857['push'](_0x14e857['shift']());}catch(_0xb7b984){_0x14e857['push'](_0x14e857['shift']());}}}(a0_0x4d4b,0x86849));Object[a0_0x385f06(0x115)](exports,a0_0x385f06(0x116),{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports[a0_0x385f06(0x128)]=filterCargoBuild;function filterCargoTest(_0xec6b6e){const _0x3b27ba=a0_0x385f06,_0x4c2b1b=_0xec6b6e[_0x3b27ba(0xff)]('\x0a');let _0x39a84c=0x0,_0x3b4906=0x0,_0x327e31=0x0,_0x222831=0x0;const _0x361819=[];let _0x13ad8e=![],_0x9a5a80=[];for(const _0x46464b of _0x4c2b1b){const _0x4dfc78=_0x46464b['trim'](),_0x363320=_0x4dfc78[_0x3b27ba(0x12f)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x363320){_0x39a84c+=parseInt(_0x363320[0x2]),_0x3b4906+=parseInt(_0x363320[0x3]),_0x327e31+=parseInt(_0x363320[0x4]),_0x222831+=parseInt(_0x363320[0x5]);continue;}if(_0x4dfc78===_0x3b27ba(0x112)||_0x4dfc78==='----\x20failures\x20----'){_0x13ad8e=!![];continue;}if(_0x13ad8e){if(_0x4dfc78[_0x3b27ba(0x10a)](_0x3b27ba(0x12b))&&_0x4dfc78['endsWith'](_0x3b27ba(0x111))){if(_0x9a5a80[_0x3b27ba(0xf8)]>0x0)_0x361819[_0x3b27ba(0xfb)](_0x9a5a80['join']('\x0a'));_0x9a5a80=[_0x4dfc78['replace'](/^-+\s*/,'')[_0x3b27ba(0xfc)](/\s*-+$/,'')];}else{if(_0x4dfc78===_0x3b27ba(0x112)||_0x4dfc78[_0x3b27ba(0x10a)](_0x3b27ba(0x120))){if(_0x9a5a80[_0x3b27ba(0xf8)]>0x0)_0x361819['push'](_0x9a5a80[_0x3b27ba(0x119)]('\x0a'));_0x9a5a80=[],_0x13ad8e=![];}else _0x4dfc78[_0x3b27ba(0xf8)]>0x0&&_0x9a5a80[_0x3b27ba(0xfb)](_0x46464b);}}}if(_0x9a5a80[_0x3b27ba(0xf8)]>0x0)_0x361819['push'](_0x9a5a80[_0x3b27ba(0x119)]('\x0a'));if(_0x39a84c===0x0&&_0x3b4906===0x0&&_0x327e31===0x0){if(_0xec6b6e[_0x3b27ba(0x126)](_0x3b27ba(0x12a)))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0xec6b6e;}if(_0x3b4906===0x0){const _0x5db8a6=['Cargo\x20test:\x20'+_0x39a84c+_0x3b27ba(0x121)];if(_0x327e31>0x0)_0x5db8a6[_0x3b27ba(0xfb)](_0x327e31+_0x3b27ba(0x103));return _0x5db8a6[_0x3b27ba(0x119)](',\x20');}const _0x1111e9=[_0x3b27ba(0x125)+_0x39a84c+_0x3b27ba(0x11b)+_0x3b4906+_0x3b27ba(0x10c)+_0x327e31+_0x3b27ba(0x103)];if(_0x361819[_0x3b27ba(0xf8)]>0x0){_0x1111e9[_0x3b27ba(0xfb)](_0x3b27ba(0x114));const _0x15dca5=0x3;for(let _0x359913=0x0;_0x359913<Math[_0x3b27ba(0xfe)](_0x361819[_0x3b27ba(0xf8)],_0x15dca5);_0x359913++){const _0x2e3e4d=_0x361819[_0x359913][_0x3b27ba(0xff)]('\x0a');_0x1111e9[_0x3b27ba(0xfb)]('\x20\x20'+(_0x359913+0x1)+'.\x20'+_0x2e3e4d[0x0]);const _0x2f3eb0=_0x2e3e4d[_0x3b27ba(0x101)](0x1),_0x38a27e=_0x2f3eb0[_0x3b27ba(0x127)](_0x52cdba=>_0x52cdba[_0x3b27ba(0x123)]()[_0x3b27ba(0x10a)](_0x3b27ba(0x100))||_0x52cdba[_0x3b27ba(0x126)](_0x3b27ba(0xfa))||_0x52cdba[_0x3b27ba(0x126)](_0x3b27ba(0x129))||_0x52cdba[_0x3b27ba(0x126)](_0x3b27ba(0x110))||_0x52cdba['includes'](_0x3b27ba(0x102)));for(const _0x1fd884 of _0x38a27e['slice'](0x0,0x5)){_0x1111e9[_0x3b27ba(0xfb)](_0x3b27ba(0x10e)+_0x1fd884[_0x3b27ba(0x123)]());}}_0x361819[_0x3b27ba(0xf8)]>_0x15dca5&&_0x1111e9[_0x3b27ba(0xfb)](_0x3b27ba(0xfd)+(_0x361819['length']-_0x15dca5)+_0x3b27ba(0x104));}return _0x1111e9['join']('\x0a');}function a0_0x151e(_0x510612,_0x1e94cf){_0x510612=_0x510612-0xf8;const _0x4d4b0c=a0_0x4d4b();let _0x151ef2=_0x4d4b0c[_0x510612];return _0x151ef2;}function a0_0x4d4b(){const _0x43a1c3=['1738404ZVKvzz','test\x20result:','\x20passed','\x0aErrors:','trim','warning:','Cargo\x20test:\x20','includes','filter','filterCargoBuild','assert','test\x20result:\x20ok','----\x20','975891WcTOqf','Cargo:\x20compiled\x20','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','match','length','235PFNDWt','panicked','push','replace','\x20\x20...\x20+','min','split','thread','slice','right:','\x20ignored','\x20more\x20failures','error[','\x20more\x20errors','6046440MIFkvc','4684OPxqvh','670NFSsLw','startsWith','322589hJCbbd','\x20failed,\x20','\x20errors,\x20','\x20\x20\x20\x20','6LEynyK','left:','\x20----','failures:','7HVXBYC','\x0aFailures:','defineProperty','__esModule','\x20crates\x20successfully','211541nRLIhm','join','\x20warnings','\x20passed,\x20','409064MVEoXm','Cargo:\x20','\x20crates,\x20'];a0_0x4d4b=function(){return _0x43a1c3;};return a0_0x4d4b();}function filterCargoBuild(_0x44854e){const _0x338319=a0_0x385f06,_0x3528c6=_0x44854e[_0x338319(0xff)]('\x0a'),_0x49e7b6=[],_0x35fd5e=[];let _0x4a8468=0x0;for(const _0x1a52c9 of _0x3528c6){const _0x5efec3=_0x1a52c9[_0x338319(0x123)]();if(_0x5efec3[_0x338319(0x10a)]('Compiling\x20'))_0x4a8468++;else{if(_0x5efec3[_0x338319(0x10a)]('warning[')||_0x5efec3[_0x338319(0x10a)](_0x338319(0x124)))_0x49e7b6['push'](_0x5efec3);else{if(_0x5efec3[_0x338319(0x10a)](_0x338319(0x105))||_0x5efec3['startsWith']('error:'))_0x35fd5e[_0x338319(0xfb)](_0x5efec3);}}}if(_0x35fd5e['length']===0x0&&_0x49e7b6[_0x338319(0xf8)]===0x0)return _0x4a8468>0x0?_0x338319(0x12d)+_0x4a8468+_0x338319(0x117):_0x44854e['trim']();const _0x1a3b27=[];if(_0x35fd5e[_0x338319(0xf8)]>0x0){_0x1a3b27[_0x338319(0xfb)](_0x338319(0x11d)+_0x35fd5e['length']+_0x338319(0x10d)+_0x49e7b6[_0x338319(0xf8)]+_0x338319(0x11a)),_0x1a3b27[_0x338319(0xfb)](_0x338319(0x122));for(const _0x31cf47 of _0x35fd5e[_0x338319(0x101)](0x0,0x5))_0x1a3b27[_0x338319(0xfb)]('\x20\x20'+_0x31cf47);if(_0x35fd5e[_0x338319(0xf8)]>0x5)_0x1a3b27['push'](_0x338319(0xfd)+(_0x35fd5e['length']-0x5)+_0x338319(0x106));}else _0x1a3b27[_0x338319(0xfb)](_0x338319(0x12d)+_0x4a8468+_0x338319(0x11e)+_0x49e7b6[_0x338319(0xf8)]+'\x20warnings');if(_0x49e7b6[_0x338319(0xf8)]>0x0&&_0x49e7b6[_0x338319(0xf8)]<=0x5){_0x1a3b27[_0x338319(0xfb)]('\x0aWarnings:');for(const _0x4a8814 of _0x49e7b6)_0x1a3b27[_0x338319(0xfb)]('\x20\x20'+_0x4a8814);}else _0x49e7b6[_0x338319(0xf8)]>0x5&&_0x1a3b27[_0x338319(0xfb)]('\x0a('+_0x49e7b6[_0x338319(0xf8)]+_0x338319(0x12e));return _0x1a3b27[_0x338319(0x119)]('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x1e606d=a0_0x189c;function a0_0x3a7b(){const _0x45e7a7=['get','tracker','Cargo.lock','.tar.gz','join','.go','\x0a...\x20(','.obj','\x20dependencies,\x20','.cpp','sort','.sqlite','stringify','.rar','collapseWhitespace','filterGrep','substring','filterCat','1655448DMTtnK','\x20more\x20matches','go.sum','total\x20','.ico','.java','.7z','endsWith','33nmSURN','match','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','No\x20matches\x20found','defineProperty','/\x20(','getOwnPropertyDescriptor','call','\x20more\x20files','.so','.tsx','[lock\x20file]\x20','dependencies','filterTree','.kt','.rb','basename','758PHMnoW','includes','600wimJge','path','binary','.tgz','length','.swift','...\x20+','3484670dVudxq','[binary\x20file]\x20','bun.lockb','.zip','packages','../tracker','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','__createBinding','\x20lines)','filterFind','use\x20','\x20directories,\x20','.rs','#include\x20','parse','from\x20','yarn.lock','some','.bin','extname','\x20more\x20directories','__setModuleDefault','6oHqUjl','\x20structural\x20lines\x20shown)','.png','getOwnPropertyNames','.bmp','.pyc','.webp','1293501vhxKUX','__importStar','\x20files)','.eot','.min.css','slice','50TnKmBe','filter','features_enabled','poetry.lock','\x20chars\x20across\x20','.avi','create',':\x20...\x20(','entries','hasOwnProperty','./generic','[binary/minified\x20file]\x20','.gif','__esModule','.jpeg','.webm','toLowerCase','.mp3','charCodeAt','composer.lock','pnpm-lock.yaml','.db','.gz','default','179416YvERSt','cargo.lock','\x20more\x20files\x20with\x20matches','stripComments','\x20files\x20found\x20across\x20','trim','\x20lines\x20total)','.woff','keys','\x20directories','\x0a...\x20[','.pyo','.jpg','split','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','Empty\x20directory','.bz2','push','\x20lines\x20total,\x20','package-lock.json','22077QaBlij','.exe','\x20matches\x20in\x20this\x20file)','.mp4','toLocaleString','writable','.jsx','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.min.js','startsWith','.pdf','\x20\x20...\x20+','520JFYtvd','json_crusher','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','880315bWrTtD'];a0_0x3a7b=function(){return _0x45e7a7;};return a0_0x3a7b();}(function(_0x470451,_0x4c6b0d){const _0x4b3ce0=a0_0x189c,_0x3fabdc=_0x470451();while(!![]){try{const _0x368cc4=-parseInt(_0x4b3ce0(0xff))/0x1*(parseInt(_0x4b3ce0(0x163))/0x2)+parseInt(_0x4b3ce0(0xee))/0x3*(parseInt(_0x4b3ce0(0x143))/0x4)+parseInt(_0x4b3ce0(0x166))/0x5*(parseInt(_0x4b3ce0(0x11e))/0x6)+parseInt(_0x4b3ce0(0x108))/0x7+parseInt(_0x4b3ce0(0x101))/0x8*(parseInt(_0x4b3ce0(0x157))/0x9)+parseInt(_0x4b3ce0(0x12b))/0xa*(-parseInt(_0x4b3ce0(0x125))/0xb)+-parseInt(_0x4b3ce0(0xe6))/0xc;if(_0x368cc4===_0x4c6b0d)break;else _0x3fabdc['push'](_0x3fabdc['shift']());}catch(_0x4db336){_0x3fabdc['push'](_0x3fabdc['shift']());}}}(a0_0x3a7b,0x688dd));var __createBinding=this&&this[a0_0x1e606d(0x10f)]||(Object[a0_0x1e606d(0x131)]?function(_0x17aaa9,_0xe85d,_0x51fb94,_0xf20c73){const _0x25ade1=a0_0x1e606d;if(_0xf20c73===undefined)_0xf20c73=_0x51fb94;var _0x38b66a=Object[_0x25ade1(0xf4)](_0xe85d,_0x51fb94);(!_0x38b66a||(_0x25ade1(0x167)in _0x38b66a?!_0xe85d[_0x25ade1(0x138)]:_0x38b66a[_0x25ade1(0x15c)]||_0x38b66a['configurable']))&&(_0x38b66a={'enumerable':!![],'get':function(){return _0xe85d[_0x51fb94];}}),Object['defineProperty'](_0x17aaa9,_0xf20c73,_0x38b66a);}:function(_0x3a89a6,_0x47721c,_0x5fef39,_0x1ba71b){if(_0x1ba71b===undefined)_0x1ba71b=_0x5fef39;_0x3a89a6[_0x1ba71b]=_0x47721c[_0x5fef39];}),__setModuleDefault=this&&this[a0_0x1e606d(0x11d)]||(Object[a0_0x1e606d(0x131)]?function(_0x1bb97b,_0x4da5b1){const _0x389cc3=a0_0x1e606d;Object[_0x389cc3(0xf2)](_0x1bb97b,_0x389cc3(0x142),{'enumerable':!![],'value':_0x4da5b1});}:function(_0x110768,_0x57093f){const _0x469427=a0_0x1e606d;_0x110768[_0x469427(0x142)]=_0x57093f;}),__importStar=this&&this[a0_0x1e606d(0x126)]||(function(){var _0x5cee5c=function(_0x72c234){const _0x344b82=a0_0x189c;return _0x5cee5c=Object[_0x344b82(0x121)]||function(_0xe61937){const _0x1191a2=_0x344b82;var _0xb48932=[];for(var _0x53ffc0 in _0xe61937)if(Object['prototype'][_0x1191a2(0x134)][_0x1191a2(0xf5)](_0xe61937,_0x53ffc0))_0xb48932[_0xb48932['length']]=_0x53ffc0;return _0xb48932;},_0x5cee5c(_0x72c234);};return function(_0x2c01e9){const _0x2c11c1=a0_0x189c;if(_0x2c01e9&&_0x2c01e9['__esModule'])return _0x2c01e9;var _0x935dee={};if(_0x2c01e9!=null){for(var _0x3f0d4c=_0x5cee5c(_0x2c01e9),_0x5965b8=0x0;_0x5965b8<_0x3f0d4c[_0x2c11c1(0x105)];_0x5965b8++)if(_0x3f0d4c[_0x5965b8]!==_0x2c11c1(0x142))__createBinding(_0x935dee,_0x2c01e9,_0x3f0d4c[_0x5965b8]);}return __setModuleDefault(_0x935dee,_0x2c01e9),_0x935dee;};}());function a0_0x189c(_0x320fb3,_0x25f9fa){_0x320fb3=_0x320fb3-0xe6;const _0x3a7bbd=a0_0x3a7b();let _0x189c0f=_0x3a7bbd[_0x320fb3];return _0x189c0f;}Object[a0_0x1e606d(0xf2)](exports,'__esModule',{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x1e606d(0xfb)]=filterTree,exports[a0_0x1e606d(0x178)]=filterCat,exports[a0_0x1e606d(0x176)]=filterGrep,exports[a0_0x1e606d(0x111)]=filterFind;const path=__importStar(require(a0_0x1e606d(0x102))),generic_1=require(a0_0x1e606d(0x135)),tracker_1=require(a0_0x1e606d(0x10d));function isFeatureEnabled(_0x3b8874){const _0x42544a=a0_0x1e606d;try{const _0x33b2be=tracker_1[_0x42544a(0x168)]['getConfig'](),_0x55e410=_0x33b2be[_0x42544a(0x12d)];if(!_0x55e410||_0x55e410[_0x3b8874]===undefined)return!![];return _0x55e410[_0x3b8874]!==![];}catch{return!![];}}const LOCK_FILES=['package-lock.json','yarn.lock',a0_0x1e606d(0x13f),a0_0x1e606d(0x169),a0_0x1e606d(0xe8),'poetry.lock',a0_0x1e606d(0x13e),'Gemfile.lock',a0_0x1e606d(0x10a)],BINARY_EXTENSIONS=[a0_0x1e606d(0x15f),a0_0x1e606d(0x129),'.map','.wasm',a0_0x1e606d(0x120),a0_0x1e606d(0x14f),a0_0x1e606d(0x139),a0_0x1e606d(0x137),a0_0x1e606d(0xea),a0_0x1e606d(0x122),a0_0x1e606d(0x124),'.svg',a0_0x1e606d(0x161),a0_0x1e606d(0x10b),a0_0x1e606d(0x16a),a0_0x1e606d(0x104),a0_0x1e606d(0x141),a0_0x1e606d(0x153),a0_0x1e606d(0xec),a0_0x1e606d(0x174),a0_0x1e606d(0x158),'.dll',a0_0x1e606d(0xf7),'.dylib',a0_0x1e606d(0x11a),'.dat',a0_0x1e606d(0x172),a0_0x1e606d(0x140),'.sqlite3',a0_0x1e606d(0x14a),'.woff2','.ttf',a0_0x1e606d(0x128),'.otf',a0_0x1e606d(0x13c),a0_0x1e606d(0x15a),'.wav',a0_0x1e606d(0x130),'.mov',a0_0x1e606d(0x13a),a0_0x1e606d(0x123),a0_0x1e606d(0x14e),'.class','.o',a0_0x1e606d(0x16e)];function extractFilename(_0xadfcbc){const _0x3499d5=a0_0x1e606d,_0x1b9a52=_0xadfcbc[_0x3499d5(0x148)]()[_0x3499d5(0x150)](/\s+/);for(let _0x5c8951=0x1;_0x5c8951<_0x1b9a52[_0x3499d5(0x105)];_0x5c8951++){if(!_0x1b9a52[_0x5c8951][_0x3499d5(0x160)]('-'))return _0x1b9a52[_0x5c8951];}return null;}function filterLockFile(_0x158b7f,_0x1b27bc){const _0x35aea3=a0_0x1e606d;try{const _0x4c850b=path['basename'](_0x1b27bc)['toLowerCase']();if(!LOCK_FILES[_0x35aea3(0x119)](_0x3f4312=>_0x4c850b===_0x3f4312[_0x35aea3(0x13b)]()))return null;const _0x1e3f5a=_0x158b7f[_0x35aea3(0x105)];let _0x1d5165=0x0;if(_0x4c850b===_0x35aea3(0x156))try{const _0x4eb1c6=JSON['parse'](_0x158b7f);_0x1d5165=Object[_0x35aea3(0x14b)](_0x4eb1c6[_0x35aea3(0x10c)]||_0x4eb1c6[_0x35aea3(0xfa)]||{})[_0x35aea3(0x105)];}catch{_0x1d5165=(_0x158b7f[_0x35aea3(0xef)](/"resolved":/g)||[])[_0x35aea3(0x105)];}else{if(_0x4c850b===_0x35aea3(0x118))_0x1d5165=(_0x158b7f[_0x35aea3(0xef)](/^"?[^#\s][^:]*:$/gm)||[])['length'];else{if(_0x4c850b===_0x35aea3(0x144)||_0x4c850b===_0x35aea3(0x12e))_0x1d5165=(_0x158b7f[_0x35aea3(0xef)](/\[\[package\]\]/g)||[])[_0x35aea3(0x105)];else{if(_0x4c850b===_0x35aea3(0xe8))_0x1d5165=Math['floor'](_0x158b7f[_0x35aea3(0x150)]('\x0a')['filter'](_0x5b3de2=>_0x5b3de2[_0x35aea3(0x148)]())[_0x35aea3(0x105)]/0x2);else{if(_0x4c850b===_0x35aea3(0x13e))try{_0x1d5165=JSON[_0x35aea3(0x116)](_0x158b7f)[_0x35aea3(0x10c)]?.['length']||0x0;}catch{}else _0x4c850b===_0x35aea3(0x13f)?_0x1d5165=(_0x158b7f[_0x35aea3(0xef)](/^\s{2}['"@a-z]/gm)||[])[_0x35aea3(0x105)]:_0x1d5165=_0x158b7f['split']('\x0a')[_0x35aea3(0x12c)](_0xba25c=>_0xba25c[_0x35aea3(0x148)]())[_0x35aea3(0x105)];}}}}return _0x35aea3(0xf9)+path[_0x35aea3(0xfe)](_0x1b27bc)+':\x20'+_0x1d5165+_0x35aea3(0x16f)+_0x1e3f5a[_0x35aea3(0x15b)]()+_0x35aea3(0x151);}catch{return null;}}function filterBinaryOrMinified(_0x3f09d1,_0x3e538a){const _0x417800=a0_0x1e606d;try{if(_0x3e538a){const _0x526b3b=_0x3e538a[_0x417800(0x13b)]();for(const _0x5f53f2 of BINARY_EXTENSIONS){if(_0x526b3b[_0x417800(0xed)](_0x5f53f2))return _0x417800(0x136)+path[_0x417800(0xfe)](_0x3e538a)+',\x20'+_0x3f09d1[_0x417800(0x105)][_0x417800(0x15b)]()+'\x20chars,\x20type:\x20'+_0x5f53f2+_0x417800(0xf0);}}const _0x129cd2=_0x3f09d1[_0x417800(0x177)](0x0,0x3e8);let _0x137b83=0x0;for(let _0x35c5af=0x0;_0x35c5af<_0x129cd2[_0x417800(0x105)];_0x35c5af++){if(_0x129cd2[_0x417800(0x13d)](_0x35c5af)===0x0)_0x137b83++;}if(_0x137b83>0x0)return _0x417800(0x109)+_0x3f09d1[_0x417800(0x105)]['toLocaleString']()+_0x417800(0x165);let _0x212474=0x0;for(let _0x151c56=0x0;_0x151c56<_0x129cd2[_0x417800(0x105)];_0x151c56++){const _0x38062c=_0x129cd2[_0x417800(0x13d)](_0x151c56);if(_0x38062c<0x20&&_0x38062c!==0xa&&_0x38062c!==0xd&&_0x38062c!==0x9)_0x212474++;}if(_0x129cd2[_0x417800(0x105)]>0x64&&_0x212474>_0x129cd2[_0x417800(0x105)]*0.1)return _0x417800(0x109)+_0x3f09d1['length'][_0x417800(0x15b)]()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x314110=_0x3f09d1[_0x417800(0x150)]('\x0a');if(_0x314110[_0x417800(0x105)]<=0x3&&_0x3f09d1[_0x417800(0x105)]>0x1388)return'[minified\x20file]\x20'+_0x3f09d1[_0x417800(0x105)][_0x417800(0x15b)]()+_0x417800(0x12f)+_0x314110[_0x417800(0x105)]+_0x417800(0x10e);return null;}catch{return null;}}function filterJsonMinify(_0x68846){const _0x1e946b=a0_0x1e606d;try{const _0x15e599=_0x68846['trim']();if(!_0x15e599[_0x1e946b(0x160)]('{')&&!_0x15e599[_0x1e946b(0x160)]('['))return null;const _0x6e3527=_0x15e599[_0x1e946b(0x150)]('\x0a');if(_0x6e3527['length']<=0x14)return null;const _0x81ccb=JSON[_0x1e946b(0x116)](_0x15e599),_0xea4ecd=JSON[_0x1e946b(0x173)](_0x81ccb);if(_0xea4ecd[_0x1e946b(0x105)]<_0x15e599[_0x1e946b(0x105)])return _0xea4ecd;return null;}catch{return null;}}function filterLs(_0x182295){const _0x4908e1=a0_0x1e606d,_0x3284fb=_0x182295[_0x4908e1(0x150)]('\x0a')['filter'](_0x66557=>_0x66557[_0x4908e1(0x148)]()[_0x4908e1(0x105)]>0x0);if(_0x3284fb[_0x4908e1(0x105)]===0x0)return _0x4908e1(0x152);if(_0x3284fb[_0x4908e1(0x105)]<=0x1e)return _0x182295[_0x4908e1(0x148)]();const _0xfabc56=[],_0x3bfa95=[];for(const _0x5b9d19 of _0x3284fb){const _0x1d694e=_0x5b9d19[_0x4908e1(0x148)]();if(_0x1d694e['startsWith'](_0x4908e1(0xe9))||_0x1d694e['startsWith']('d')&&_0x1d694e['includes']('..'))continue;_0x1d694e[_0x4908e1(0xed)]('/')||_0x1d694e[_0x4908e1(0x160)]('d')&&_0x1d694e[_0x4908e1(0x100)]('\x20')?_0xfabc56[_0x4908e1(0x154)](_0x1d694e):_0x3bfa95['push'](_0x1d694e);}const _0x303074=[];return _0xfabc56['length']>0x0&&(_0xfabc56[_0x4908e1(0x105)]<=0xf?_0x303074['push'](..._0xfabc56):(_0x303074[_0x4908e1(0x154)](..._0xfabc56[_0x4908e1(0x12a)](0x0,0xa)),_0x303074[_0x4908e1(0x154)](_0x4908e1(0x107)+(_0xfabc56[_0x4908e1(0x105)]-0xa)+_0x4908e1(0x11c)))),_0x3bfa95[_0x4908e1(0x105)]>0x0&&(_0x3bfa95['length']<=0x14?_0x303074[_0x4908e1(0x154)](..._0x3bfa95):(_0x303074['push'](..._0x3bfa95[_0x4908e1(0x12a)](0x0,0xf)),_0x303074[_0x4908e1(0x154)](_0x4908e1(0x107)+(_0x3bfa95[_0x4908e1(0x105)]-0xf)+_0x4908e1(0xf6)))),_0x303074[_0x4908e1(0x154)]('\x0a('+_0xfabc56[_0x4908e1(0x105)]+_0x4908e1(0x113)+_0x3bfa95[_0x4908e1(0x105)]+_0x4908e1(0x127)),_0x303074[_0x4908e1(0x16b)]('\x0a');}function filterTree(_0x2efd26){const _0x25978a=a0_0x1e606d,_0x38050a=_0x2efd26[_0x25978a(0x150)]('\x0a');if(_0x38050a['length']<=0x32)return _0x2efd26[_0x25978a(0x148)]();const _0x44e2e6=[];let _0x40b65e=0x0,_0x3c8a34=0x0,_0x325577=0x0;for(const _0x597137 of _0x38050a){const _0x501218=_0x597137['match'](/(\d+)\s+director/),_0x501290=_0x597137['match'](/(\d+)\s+file/);if(_0x501218)_0x325577=parseInt(_0x501218[0x1]);if(_0x501290)_0x3c8a34=parseInt(_0x501290[0x1]);const _0x444887=(_0x597137[_0x25978a(0xef)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x444887<=0x4&&(_0x44e2e6[_0x25978a(0x154)](_0x597137),_0x40b65e++);}return _0x38050a[_0x25978a(0x105)]>_0x44e2e6[_0x25978a(0x105)]&&_0x44e2e6[_0x25978a(0x154)](_0x25978a(0x16d)+_0x325577+_0x25978a(0x113)+_0x3c8a34+_0x25978a(0x15e)),_0x44e2e6[_0x25978a(0x16b)]('\x0a');}function filterCat(_0x9fd7c7,_0xf6ab64=''){const _0x4a1a72=a0_0x1e606d,_0x21f99b=extractFilename(_0xf6ab64);try{if(_0x21f99b&&isFeatureEnabled('lock')){const _0x4b2079=filterLockFile(_0x9fd7c7,_0x21f99b);if(_0x4b2079)return _0x4b2079;}if(isFeatureEnabled(_0x4a1a72(0x103))){const _0x2a229a=filterBinaryOrMinified(_0x9fd7c7,_0x21f99b);if(_0x2a229a)return _0x2a229a;}if(isFeatureEnabled(_0x4a1a72(0x164))){const _0x460363=(0x0,generic_1['smartCrushJson'])(_0x9fd7c7);if(_0x460363)return _0x460363;}const _0x4c460f=filterJsonMinify(_0x9fd7c7);if(_0x4c460f)return _0x4c460f;if(_0x21f99b&&isFeatureEnabled('skeleton')){const _0x2958f7=path[_0x4a1a72(0x11b)](_0x21f99b)[_0x4a1a72(0x13b)](),_0x1521ee=['.ts','.js',_0x4a1a72(0xf8),_0x4a1a72(0x15d),'.py',_0x4a1a72(0x16c),_0x4a1a72(0x114),_0x4a1a72(0xeb),'.c',_0x4a1a72(0x170),'.cs',_0x4a1a72(0xfd),_0x4a1a72(0x106),_0x4a1a72(0xfc)];if(_0x1521ee['includes'](_0x2958f7)){const _0x3e1716=_0x9fd7c7[_0x4a1a72(0x150)]('\x0a');if(_0x3e1716[_0x4a1a72(0x105)]>0x64){const _0x3ece2b=[];_0x3ece2b[_0x4a1a72(0x154)]('[code\x20skeleton]\x20'+path['basename'](_0x21f99b)+'\x20('+_0x3e1716[_0x4a1a72(0x105)]+_0x4a1a72(0x110)),_0x3ece2b['push']('');for(const _0x54592e of _0x3e1716){const _0x1d76d9=_0x54592e[_0x4a1a72(0x148)]();if(_0x1d76d9[_0x4a1a72(0x160)]('import\x20')||_0x1d76d9[_0x4a1a72(0x160)](_0x4a1a72(0x117))||_0x1d76d9[_0x4a1a72(0x160)]('require(')||_0x1d76d9[_0x4a1a72(0xef)](/=\s*require\(/)||_0x1d76d9['startsWith'](_0x4a1a72(0x115))||_0x1d76d9[_0x4a1a72(0x160)](_0x4a1a72(0x112))||_0x1d76d9[_0x4a1a72(0x160)]('package\x20'))_0x3ece2b[_0x4a1a72(0x154)](_0x54592e);else{if(_0x1d76d9[_0x4a1a72(0xef)](/^(export\s+)?(async\s+)?function\s+/)||_0x1d76d9[_0x4a1a72(0xef)](/^(export\s+)?(default\s+)?class\s+/)||_0x1d76d9[_0x4a1a72(0xef)](/^(export\s+)?(type|interface|enum)\s+/)||_0x1d76d9[_0x4a1a72(0xef)](/^(async\s+)?def\s+/)||_0x1d76d9[_0x4a1a72(0xef)](/^func\s+/)||_0x1d76d9['match'](/^type\s+\w+\s+(struct|interface)/)||_0x1d76d9[_0x4a1a72(0xef)](/^(pub\s+)?(async\s+)?fn\s+/)||_0x1d76d9[_0x4a1a72(0xef)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x1d76d9[_0x4a1a72(0xef)](/^(public|private|protected|static)\s+/))_0x3ece2b['push'](_0x54592e);else{if(_0x1d76d9[_0x4a1a72(0x160)]('export\x20')&&!_0x1d76d9[_0x4a1a72(0x100)]('=>')&&_0x1d76d9[_0x4a1a72(0x105)]<0x78)_0x3ece2b[_0x4a1a72(0x154)](_0x54592e);else _0x1d76d9['startsWith']('@')&&!_0x1d76d9[_0x4a1a72(0x160)]('@param')&&!_0x1d76d9['startsWith']('@return')&&_0x3ece2b[_0x4a1a72(0x154)](_0x54592e);}}}_0x3ece2b[_0x4a1a72(0x154)](''),_0x3ece2b['push']('('+_0x3e1716['length']+_0x4a1a72(0x155)+(_0x3ece2b[_0x4a1a72(0x105)]-0x2)+_0x4a1a72(0x11f));const _0x571545=_0x3ece2b[_0x4a1a72(0x16b)]('\x0a');if(_0x571545[_0x4a1a72(0x105)]<_0x9fd7c7[_0x4a1a72(0x105)])return _0x571545;}}}}catch{}let _0x3aa0c4=(0x0,generic_1[_0x4a1a72(0x175)])(_0x9fd7c7);if(_0x21f99b){const _0x4ca8fc=path['extname'](_0x21f99b)[_0x4a1a72(0x13b)]();_0x3aa0c4=(0x0,generic_1[_0x4a1a72(0x146)])(_0x3aa0c4,_0x4ca8fc);}const _0x13f421=_0x3aa0c4[_0x4a1a72(0x150)]('\x0a');if(_0x13f421[_0x4a1a72(0x105)]<=0x64)return _0x3aa0c4;const _0x53329c=[];return _0x53329c['push'](..._0x13f421[_0x4a1a72(0x12a)](0x0,0x32)),_0x53329c[_0x4a1a72(0x154)](_0x4a1a72(0x14d)+(_0x13f421[_0x4a1a72(0x105)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x53329c[_0x4a1a72(0x154)](..._0x13f421[_0x4a1a72(0x12a)](-0x1e)),_0x53329c[_0x4a1a72(0x154)]('\x0a('+_0x13f421[_0x4a1a72(0x105)]+_0x4a1a72(0x149)),_0x53329c[_0x4a1a72(0x16b)]('\x0a');}function filterGrep(_0x7b831c){const _0x482d79=a0_0x1e606d,_0x4ae74b=_0x7b831c[_0x482d79(0x150)]('\x0a')['filter'](_0x3ebf03=>_0x3ebf03['trim']()[_0x482d79(0x105)]>0x0);if(_0x4ae74b['length']===0x0)return _0x482d79(0xf1);if(_0x4ae74b['length']<=0x32)return _0x7b831c[_0x482d79(0x148)]();const _0xf0482f={},_0x3d9973=[];for(const _0x5c70a3 of _0x4ae74b){const _0x582fbc=_0x5c70a3['indexOf'](':');if(_0x582fbc>0x0&&_0x582fbc<0xc8){const _0x4b8300=_0x5c70a3[_0x482d79(0x177)](0x0,_0x582fbc);if(_0x4b8300['includes']('/')||_0x4b8300[_0x482d79(0x100)]('\x5c')||_0x4b8300['includes']('.')){if(!_0xf0482f[_0x4b8300])_0xf0482f[_0x4b8300]=[];_0xf0482f[_0x4b8300][_0x482d79(0x154)](_0x5c70a3[_0x482d79(0x177)](_0x582fbc+0x1)['trim']());continue;}}_0x3d9973[_0x482d79(0x154)](_0x5c70a3);}const _0x42c7b8=[],_0x3fb95d=Object['keys'](_0xf0482f);if(_0x3fb95d[_0x482d79(0x105)]>0x0){const _0x2b6d39=0x14,_0x55f651=_0x3fb95d[_0x482d79(0x12a)](0x0,_0x2b6d39);for(const _0x172de7 of _0x55f651){const _0x10dec7=_0xf0482f[_0x172de7];if(_0x10dec7['length']<=0x3)for(const _0x40433b of _0x10dec7){_0x42c7b8[_0x482d79(0x154)](_0x172de7+':\x20'+_0x40433b);}else _0x42c7b8['push'](_0x172de7+':\x20'+_0x10dec7[0x0]),_0x42c7b8['push'](_0x172de7+_0x482d79(0x132)+_0x10dec7[_0x482d79(0x105)]+_0x482d79(0x159));}_0x3fb95d[_0x482d79(0x105)]>_0x2b6d39&&_0x42c7b8[_0x482d79(0x154)](_0x482d79(0x107)+(_0x3fb95d[_0x482d79(0x105)]-_0x2b6d39)+_0x482d79(0x145));}if(_0x3d9973[_0x482d79(0x105)]>0x0){const _0x201fbe=0x1e;_0x42c7b8[_0x482d79(0x154)](..._0x3d9973[_0x482d79(0x12a)](0x0,_0x201fbe)),_0x3d9973['length']>_0x201fbe&&_0x42c7b8[_0x482d79(0x154)](_0x482d79(0x107)+(_0x3d9973['length']-_0x201fbe)+_0x482d79(0xe7));}const _0x2c4f02=_0x4ae74b[_0x482d79(0x105)];return _0x42c7b8[_0x482d79(0x154)]('\x0a('+_0x2c4f02+'\x20matches\x20across\x20'+(_0x3fb95d[_0x482d79(0x105)]||'?')+_0x482d79(0x127)),_0x42c7b8[_0x482d79(0x16b)]('\x0a');}function filterFind(_0x25b544){const _0x3ccb99=a0_0x1e606d,_0x1014d7=_0x25b544[_0x3ccb99(0x150)]('\x0a')[_0x3ccb99(0x12c)](_0x1cadb9=>_0x1cadb9[_0x3ccb99(0x148)]()['length']>0x0);if(_0x1014d7[_0x3ccb99(0x105)]===0x0)return'No\x20files\x20found';if(_0x1014d7[_0x3ccb99(0x105)]<=0x32)return _0x25b544[_0x3ccb99(0x148)]();const _0x5f47c8={};for(const _0x1a7cfc of _0x1014d7){const _0x52b148=path['dirname'](_0x1a7cfc[_0x3ccb99(0x148)]())||'.';_0x5f47c8[_0x52b148]=(_0x5f47c8[_0x52b148]||0x0)+0x1;}const _0x51901f=Object[_0x3ccb99(0x133)](_0x5f47c8)[_0x3ccb99(0x171)]((_0x25eb32,_0x121f2d)=>_0x121f2d[0x1]-_0x25eb32[0x1]),_0x1e193f=[_0x1014d7['length']+_0x3ccb99(0x147)+_0x51901f[_0x3ccb99(0x105)]+_0x3ccb99(0x14c),''],_0xefedf4=0x1e;for(const [_0x543dec,_0x429460]of _0x51901f['slice'](0x0,_0xefedf4)){_0x1e193f[_0x3ccb99(0x154)]('\x20\x20'+_0x543dec+_0x3ccb99(0xf3)+_0x429460+'\x20files)');}return _0x51901f[_0x3ccb99(0x105)]>_0xefedf4&&_0x1e193f[_0x3ccb99(0x154)](_0x3ccb99(0x162)+(_0x51901f[_0x3ccb99(0x105)]-_0xefedf4)+_0x3ccb99(0x11c)),_0x1e193f['join']('\x0a');}
|
|
1
|
+
'use strict';const a0_0x2e4863=a0_0x32be;function a0_0xb0c6(){const _0x6ef7b8=['.ico','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','default','Cargo.lock','import\x20','filterFind','defineProperty','.class','hasOwnProperty','go.sum','.avi','\x20files)','poetry.lock','dirname','packages','configurable','.cpp','some','.woff','extname','.zip','1040639KlJLdg','require(','.svg','getOwnPropertyDescriptor','\x20\x20...\x20+','.bmp','pnpm-lock.yaml','.go','.woff2','skeleton','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','@param','split','yarn.lock','collapseWhitespace','composer.lock','.ts','.tar.gz','\x20structural\x20lines\x20shown)','7477677eJDhpE','258671CZthoQ','.jsx','.sqlite3','/\x20(','.db','startsWith','.bz2','\x0a...\x20[','.rs','.jpeg','25293920CLaBvT','.webp','.bin','[lock\x20file]\x20','../tracker','\x0a...\x20(','@return','\x20dependencies,\x20','sort','charCodeAt','./generic','bun.lockb','create','slice','[code\x20skeleton]\x20','234IxYzju','package-lock.json','.cs','\x20more\x20directories','trim','match','stripComments','includes','lock','.tsx','floor','from\x20','Gemfile.lock','endsWith','2BPwVdm','.py','.pyc','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','tracker','\x20files\x20found\x20across\x20','substring','.pdf','getConfig','parse','keys','cargo.lock','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','smartCrushJson','call','[binary\x20file]\x20','total\x20','use\x20','indexOf','basename','package\x20','.gif','toLocaleString','.7z','\x20lines)','...\x20+','524092LDcfOX','\x20directories','.jpg','4128699ferfUt','.dylib','[binary/minified\x20file]\x20','filter','binary','.map','toLowerCase','join','45ekMfue','#include\x20','push','prototype','.pyo','.wav','.min.css','Empty\x20directory','\x20directories,\x20','3674752IrUwnH','length','.min.js','\x20lines\x20total,\x20','.webm','features_enabled','\x20chars,\x20type:\x20','.kt','\x20matches\x20across\x20'];a0_0xb0c6=function(){return _0x6ef7b8;};return a0_0xb0c6();}(function(_0x20c5f8,_0x24314e){const _0x19822a=a0_0x32be,_0x2ea3e3=_0x20c5f8();while(!![]){try{const _0x5b7891=-parseInt(_0x19822a(0x210))/0x1*(parseInt(_0x19822a(0x24b))/0x2)+-parseInt(_0x19822a(0x1e1))/0x3+parseInt(_0x19822a(0x1de))/0x4*(-parseInt(_0x19822a(0x1e9))/0x5)+-parseInt(_0x19822a(0x23d))/0x6*(-parseInt(_0x19822a(0x224))/0x7)+-parseInt(_0x19822a(0x1f2))/0x8+parseInt(_0x19822a(0x223))/0x9+parseInt(_0x19822a(0x22e))/0xa;if(_0x5b7891===_0x24314e)break;else _0x2ea3e3['push'](_0x2ea3e3['shift']());}catch(_0x5b6e07){_0x2ea3e3['push'](_0x2ea3e3['shift']());}}}(a0_0xb0c6,0xb6205));var __createBinding=this&&this['__createBinding']||(Object[a0_0x2e4863(0x23a)]?function(_0x2617c5,_0x517a25,_0xdf40ff,_0x5becb7){const _0x207070=a0_0x2e4863;if(_0x5becb7===undefined)_0x5becb7=_0xdf40ff;var _0x40de00=Object[_0x207070(0x213)](_0x517a25,_0xdf40ff);(!_0x40de00||('get'in _0x40de00?!_0x517a25['__esModule']:_0x40de00['writable']||_0x40de00[_0x207070(0x20a)]))&&(_0x40de00={'enumerable':!![],'get':function(){return _0x517a25[_0xdf40ff];}}),Object[_0x207070(0x201)](_0x2617c5,_0x5becb7,_0x40de00);}:function(_0x108cc5,_0x535357,_0x1095be,_0x53855c){if(_0x53855c===undefined)_0x53855c=_0x1095be;_0x108cc5[_0x53855c]=_0x535357[_0x1095be];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x2e4863(0x23a)]?function(_0x3e5a4d,_0xadb767){Object['defineProperty'](_0x3e5a4d,'default',{'enumerable':!![],'value':_0xadb767});}:function(_0x5a669e,_0xebe28a){const _0x24fc7d=a0_0x2e4863;_0x5a669e[_0x24fc7d(0x1fd)]=_0xebe28a;}),__importStar=this&&this['__importStar']||(function(){var _0x515f39=function(_0x3af293){return _0x515f39=Object['getOwnPropertyNames']||function(_0x5de0ff){const _0x2f27e4=a0_0x32be;var _0xca39f4=[];for(var _0x37ae05 in _0x5de0ff)if(Object[_0x2f27e4(0x1ec)][_0x2f27e4(0x203)][_0x2f27e4(0x1d2)](_0x5de0ff,_0x37ae05))_0xca39f4[_0xca39f4['length']]=_0x37ae05;return _0xca39f4;},_0x515f39(_0x3af293);};return function(_0x70e3b1){const _0x405f38=a0_0x32be;if(_0x70e3b1&&_0x70e3b1['__esModule'])return _0x70e3b1;var _0x15bff2={};if(_0x70e3b1!=null){for(var _0x30e37e=_0x515f39(_0x70e3b1),_0x4c8060=0x0;_0x4c8060<_0x30e37e[_0x405f38(0x1f3)];_0x4c8060++)if(_0x30e37e[_0x4c8060]!==_0x405f38(0x1fd))__createBinding(_0x15bff2,_0x70e3b1,_0x30e37e[_0x4c8060]);}return __setModuleDefault(_0x15bff2,_0x70e3b1),_0x15bff2;};}());Object[a0_0x2e4863(0x201)](exports,'__esModule',{'value':!![]}),exports['filterLs']=filterLs,exports['filterTree']=filterTree,exports['filterCat']=filterCat,exports['filterGrep']=filterGrep,exports[a0_0x2e4863(0x200)]=filterFind;const path=__importStar(require('path')),generic_1=require(a0_0x2e4863(0x238)),tracker_1=require(a0_0x2e4863(0x232));function isFeatureEnabled(_0x345015){const _0xaa1046=a0_0x2e4863;try{const _0x34fcf6=tracker_1[_0xaa1046(0x1c8)][_0xaa1046(0x1cc)](),_0x99ef3b=_0x34fcf6[_0xaa1046(0x1f7)];if(!_0x99ef3b||_0x99ef3b[_0x345015]===undefined)return!![];return _0x99ef3b[_0x345015]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x2e4863(0x23e),'yarn.lock',a0_0x2e4863(0x216),a0_0x2e4863(0x1fe),a0_0x2e4863(0x204),a0_0x2e4863(0x207),a0_0x2e4863(0x21f),a0_0x2e4863(0x249),a0_0x2e4863(0x239)],BINARY_EXTENSIONS=[a0_0x2e4863(0x1f4),a0_0x2e4863(0x1ef),a0_0x2e4863(0x1e6),'.wasm','.png',a0_0x2e4863(0x1e0),a0_0x2e4863(0x22d),a0_0x2e4863(0x1d9),a0_0x2e4863(0x1fb),a0_0x2e4863(0x215),a0_0x2e4863(0x22f),a0_0x2e4863(0x212),a0_0x2e4863(0x1cb),a0_0x2e4863(0x20f),a0_0x2e4863(0x221),'.tgz','.gz',a0_0x2e4863(0x22a),a0_0x2e4863(0x1db),'.rar','.exe','.dll','.so',a0_0x2e4863(0x1e2),a0_0x2e4863(0x230),'.dat','.sqlite',a0_0x2e4863(0x228),a0_0x2e4863(0x226),a0_0x2e4863(0x20d),a0_0x2e4863(0x218),'.ttf','.eot','.otf','.mp3','.mp4',a0_0x2e4863(0x1ee),a0_0x2e4863(0x205),'.mov',a0_0x2e4863(0x1f6),a0_0x2e4863(0x24d),a0_0x2e4863(0x1ed),a0_0x2e4863(0x202),'.o','.obj'];function extractFilename(_0x34cb4d){const _0x2e1d4b=a0_0x2e4863,_0x4fa28d=_0x34cb4d[_0x2e1d4b(0x241)]()[_0x2e1d4b(0x21c)](/\s+/);for(let _0x2e57cf=0x1;_0x2e57cf<_0x4fa28d['length'];_0x2e57cf++){if(!_0x4fa28d[_0x2e57cf][_0x2e1d4b(0x229)]('-'))return _0x4fa28d[_0x2e57cf];}return null;}function a0_0x32be(_0x132c39,_0x37ab29){_0x132c39=_0x132c39-0x1c7;const _0xb0c6d4=a0_0xb0c6();let _0x32be7d=_0xb0c6d4[_0x132c39];return _0x32be7d;}function filterLockFile(_0x4de4d8,_0x208602){const _0x532b2b=a0_0x2e4863;try{const _0x11eec2=path['basename'](_0x208602)['toLowerCase']();if(!LOCK_FILES[_0x532b2b(0x20c)](_0x3be1e9=>_0x11eec2===_0x3be1e9['toLowerCase']()))return null;const _0x2f36d4=_0x4de4d8['length'];let _0x3fef42=0x0;if(_0x11eec2==='package-lock.json')try{const _0x58e98b=JSON[_0x532b2b(0x1cd)](_0x4de4d8);_0x3fef42=Object[_0x532b2b(0x1ce)](_0x58e98b[_0x532b2b(0x209)]||_0x58e98b['dependencies']||{})['length'];}catch{_0x3fef42=(_0x4de4d8[_0x532b2b(0x242)](/"resolved":/g)||[])[_0x532b2b(0x1f3)];}else{if(_0x11eec2===_0x532b2b(0x21d))_0x3fef42=(_0x4de4d8[_0x532b2b(0x242)](/^"?[^#\s][^:]*:$/gm)||[])[_0x532b2b(0x1f3)];else{if(_0x11eec2===_0x532b2b(0x1cf)||_0x11eec2===_0x532b2b(0x207))_0x3fef42=(_0x4de4d8[_0x532b2b(0x242)](/\[\[package\]\]/g)||[])[_0x532b2b(0x1f3)];else{if(_0x11eec2===_0x532b2b(0x204))_0x3fef42=Math[_0x532b2b(0x247)](_0x4de4d8[_0x532b2b(0x21c)]('\x0a')['filter'](_0x54583f=>_0x54583f[_0x532b2b(0x241)]())['length']/0x2);else{if(_0x11eec2===_0x532b2b(0x21f))try{_0x3fef42=JSON['parse'](_0x4de4d8)[_0x532b2b(0x209)]?.['length']||0x0;}catch{}else _0x11eec2===_0x532b2b(0x216)?_0x3fef42=(_0x4de4d8[_0x532b2b(0x242)](/^\s{2}['"@a-z]/gm)||[])[_0x532b2b(0x1f3)]:_0x3fef42=_0x4de4d8[_0x532b2b(0x21c)]('\x0a')[_0x532b2b(0x1e4)](_0x208cec=>_0x208cec[_0x532b2b(0x241)]())[_0x532b2b(0x1f3)];}}}}return _0x532b2b(0x231)+path['basename'](_0x208602)+':\x20'+_0x3fef42+_0x532b2b(0x235)+_0x2f36d4[_0x532b2b(0x1da)]()+_0x532b2b(0x21a);}catch{return null;}}function filterBinaryOrMinified(_0x4caa33,_0x24bac4){const _0x305f30=a0_0x2e4863;try{if(_0x24bac4){const _0x358448=_0x24bac4['toLowerCase']();for(const _0x3eef3e of BINARY_EXTENSIONS){if(_0x358448['endsWith'](_0x3eef3e))return _0x305f30(0x1e3)+path[_0x305f30(0x1d7)](_0x24bac4)+',\x20'+_0x4caa33['length'][_0x305f30(0x1da)]()+_0x305f30(0x1f8)+_0x3eef3e+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x4d420c=_0x4caa33['substring'](0x0,0x3e8);let _0x2f7eae=0x0;for(let _0x13ce0e=0x0;_0x13ce0e<_0x4d420c['length'];_0x13ce0e++){if(_0x4d420c[_0x305f30(0x237)](_0x13ce0e)===0x0)_0x2f7eae++;}if(_0x2f7eae>0x0)return _0x305f30(0x1d3)+_0x4caa33[_0x305f30(0x1f3)][_0x305f30(0x1da)]()+_0x305f30(0x1c7);let _0x56fad1=0x0;for(let _0xe11a6=0x0;_0xe11a6<_0x4d420c['length'];_0xe11a6++){const _0x328c4b=_0x4d420c[_0x305f30(0x237)](_0xe11a6);if(_0x328c4b<0x20&&_0x328c4b!==0xa&&_0x328c4b!==0xd&&_0x328c4b!==0x9)_0x56fad1++;}if(_0x4d420c[_0x305f30(0x1f3)]>0x64&&_0x56fad1>_0x4d420c[_0x305f30(0x1f3)]*0.1)return _0x305f30(0x1d3)+_0x4caa33[_0x305f30(0x1f3)][_0x305f30(0x1da)]()+_0x305f30(0x1d0);const _0x25959b=_0x4caa33[_0x305f30(0x21c)]('\x0a');if(_0x25959b['length']<=0x3&&_0x4caa33[_0x305f30(0x1f3)]>0x1388)return'[minified\x20file]\x20'+_0x4caa33[_0x305f30(0x1f3)][_0x305f30(0x1da)]()+'\x20chars\x20across\x20'+_0x25959b[_0x305f30(0x1f3)]+_0x305f30(0x1fc);return null;}catch{return null;}}function filterJsonMinify(_0x377aeb){const _0x99eeeb=a0_0x2e4863;try{const _0x54b5cc=_0x377aeb[_0x99eeeb(0x241)]();if(!_0x54b5cc[_0x99eeeb(0x229)]('{')&&!_0x54b5cc[_0x99eeeb(0x229)]('['))return null;const _0x170341=_0x54b5cc[_0x99eeeb(0x21c)]('\x0a');if(_0x170341[_0x99eeeb(0x1f3)]<=0x14)return null;const _0x12b6c7=JSON[_0x99eeeb(0x1cd)](_0x54b5cc),_0x355252=JSON['stringify'](_0x12b6c7);if(_0x355252[_0x99eeeb(0x1f3)]<_0x54b5cc['length'])return _0x355252;return null;}catch{return null;}}function filterLs(_0x226e77){const _0x4efc7b=a0_0x2e4863,_0x1ca8dc=_0x226e77[_0x4efc7b(0x21c)]('\x0a')[_0x4efc7b(0x1e4)](_0x2b7c4e=>_0x2b7c4e[_0x4efc7b(0x241)]()[_0x4efc7b(0x1f3)]>0x0);if(_0x1ca8dc['length']===0x0)return _0x4efc7b(0x1f0);if(_0x1ca8dc[_0x4efc7b(0x1f3)]<=0x1e)return _0x226e77[_0x4efc7b(0x241)]();const _0x26976b=[],_0x4a8ff3=[];for(const _0x12cf76 of _0x1ca8dc){const _0x35620a=_0x12cf76['trim']();if(_0x35620a[_0x4efc7b(0x229)](_0x4efc7b(0x1d4))||_0x35620a[_0x4efc7b(0x229)]('d')&&_0x35620a['includes']('..'))continue;_0x35620a[_0x4efc7b(0x24a)]('/')||_0x35620a[_0x4efc7b(0x229)]('d')&&_0x35620a[_0x4efc7b(0x244)]('\x20')?_0x26976b[_0x4efc7b(0x1eb)](_0x35620a):_0x4a8ff3[_0x4efc7b(0x1eb)](_0x35620a);}const _0x24bc11=[];return _0x26976b[_0x4efc7b(0x1f3)]>0x0&&(_0x26976b[_0x4efc7b(0x1f3)]<=0xf?_0x24bc11[_0x4efc7b(0x1eb)](..._0x26976b):(_0x24bc11[_0x4efc7b(0x1eb)](..._0x26976b[_0x4efc7b(0x23b)](0x0,0xa)),_0x24bc11[_0x4efc7b(0x1eb)]('...\x20+'+(_0x26976b['length']-0xa)+_0x4efc7b(0x240)))),_0x4a8ff3[_0x4efc7b(0x1f3)]>0x0&&(_0x4a8ff3[_0x4efc7b(0x1f3)]<=0x14?_0x24bc11[_0x4efc7b(0x1eb)](..._0x4a8ff3):(_0x24bc11['push'](..._0x4a8ff3[_0x4efc7b(0x23b)](0x0,0xf)),_0x24bc11[_0x4efc7b(0x1eb)](_0x4efc7b(0x1dd)+(_0x4a8ff3[_0x4efc7b(0x1f3)]-0xf)+'\x20more\x20files'))),_0x24bc11[_0x4efc7b(0x1eb)]('\x0a('+_0x26976b[_0x4efc7b(0x1f3)]+_0x4efc7b(0x1f1)+_0x4a8ff3[_0x4efc7b(0x1f3)]+_0x4efc7b(0x206)),_0x24bc11[_0x4efc7b(0x1e8)]('\x0a');}function filterTree(_0x278dfe){const _0x55085f=a0_0x2e4863,_0x25d0c7=_0x278dfe[_0x55085f(0x21c)]('\x0a');if(_0x25d0c7[_0x55085f(0x1f3)]<=0x32)return _0x278dfe['trim']();const _0xbc4e67=[];let _0x5a0f2e=0x0,_0x5f4f25=0x0,_0x3ab084=0x0;for(const _0x3771e9 of _0x25d0c7){const _0x14fa64=_0x3771e9[_0x55085f(0x242)](/(\d+)\s+director/),_0x14eb58=_0x3771e9[_0x55085f(0x242)](/(\d+)\s+file/);if(_0x14fa64)_0x3ab084=parseInt(_0x14fa64[0x1]);if(_0x14eb58)_0x5f4f25=parseInt(_0x14eb58[0x1]);const _0x3bcf2f=(_0x3771e9['match'](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x3bcf2f<=0x4&&(_0xbc4e67[_0x55085f(0x1eb)](_0x3771e9),_0x5a0f2e++);}return _0x25d0c7['length']>_0xbc4e67[_0x55085f(0x1f3)]&&_0xbc4e67[_0x55085f(0x1eb)](_0x55085f(0x233)+_0x3ab084+_0x55085f(0x1f1)+_0x5f4f25+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0xbc4e67[_0x55085f(0x1e8)]('\x0a');}function filterCat(_0x5c61cf,_0x21f28c=''){const _0x348aae=a0_0x2e4863,_0x417ec7=extractFilename(_0x21f28c);try{if(_0x417ec7&&isFeatureEnabled(_0x348aae(0x245))){const _0x37518a=filterLockFile(_0x5c61cf,_0x417ec7);if(_0x37518a)return _0x37518a;}if(isFeatureEnabled(_0x348aae(0x1e5))){const _0x11476d=filterBinaryOrMinified(_0x5c61cf,_0x417ec7);if(_0x11476d)return _0x11476d;}if(isFeatureEnabled('json_crusher')){const _0x230bf2=(0x0,generic_1[_0x348aae(0x1d1)])(_0x5c61cf);if(_0x230bf2)return _0x230bf2;}const _0x1e05fa=filterJsonMinify(_0x5c61cf);if(_0x1e05fa)return _0x1e05fa;if(_0x417ec7&&isFeatureEnabled(_0x348aae(0x219))){const _0x482662=path[_0x348aae(0x20e)](_0x417ec7)[_0x348aae(0x1e7)](),_0x4de064=[_0x348aae(0x220),'.js',_0x348aae(0x246),_0x348aae(0x225),_0x348aae(0x24c),_0x348aae(0x217),_0x348aae(0x22c),'.java','.c',_0x348aae(0x20b),_0x348aae(0x23f),'.rb','.swift',_0x348aae(0x1f9)];if(_0x4de064[_0x348aae(0x244)](_0x482662)){const _0x3c561b=_0x5c61cf[_0x348aae(0x21c)]('\x0a');if(_0x3c561b['length']>0x64){const _0x4fe800=[];_0x4fe800['push'](_0x348aae(0x23c)+path[_0x348aae(0x1d7)](_0x417ec7)+'\x20('+_0x3c561b['length']+_0x348aae(0x1dc)),_0x4fe800[_0x348aae(0x1eb)]('');for(const _0x5ea8eb of _0x3c561b){const _0x2f2998=_0x5ea8eb[_0x348aae(0x241)]();if(_0x2f2998[_0x348aae(0x229)](_0x348aae(0x1ff))||_0x2f2998[_0x348aae(0x229)](_0x348aae(0x248))||_0x2f2998['startsWith'](_0x348aae(0x211))||_0x2f2998[_0x348aae(0x242)](/=\s*require\(/)||_0x2f2998[_0x348aae(0x229)](_0x348aae(0x1ea))||_0x2f2998[_0x348aae(0x229)](_0x348aae(0x1d5))||_0x2f2998[_0x348aae(0x229)](_0x348aae(0x1d8)))_0x4fe800[_0x348aae(0x1eb)](_0x5ea8eb);else{if(_0x2f2998['match'](/^(export\s+)?(async\s+)?function\s+/)||_0x2f2998[_0x348aae(0x242)](/^(export\s+)?(default\s+)?class\s+/)||_0x2f2998[_0x348aae(0x242)](/^(export\s+)?(type|interface|enum)\s+/)||_0x2f2998['match'](/^(async\s+)?def\s+/)||_0x2f2998[_0x348aae(0x242)](/^func\s+/)||_0x2f2998[_0x348aae(0x242)](/^type\s+\w+\s+(struct|interface)/)||_0x2f2998['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x2f2998[_0x348aae(0x242)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x2f2998[_0x348aae(0x242)](/^(public|private|protected|static)\s+/))_0x4fe800[_0x348aae(0x1eb)](_0x5ea8eb);else{if(_0x2f2998['startsWith']('export\x20')&&!_0x2f2998[_0x348aae(0x244)]('=>')&&_0x2f2998[_0x348aae(0x1f3)]<0x78)_0x4fe800[_0x348aae(0x1eb)](_0x5ea8eb);else _0x2f2998[_0x348aae(0x229)]('@')&&!_0x2f2998[_0x348aae(0x229)](_0x348aae(0x21b))&&!_0x2f2998['startsWith'](_0x348aae(0x234))&&_0x4fe800[_0x348aae(0x1eb)](_0x5ea8eb);}}}_0x4fe800['push'](''),_0x4fe800['push']('('+_0x3c561b[_0x348aae(0x1f3)]+_0x348aae(0x1f5)+(_0x4fe800['length']-0x2)+_0x348aae(0x222));const _0x5c7360=_0x4fe800[_0x348aae(0x1e8)]('\x0a');if(_0x5c7360['length']<_0x5c61cf[_0x348aae(0x1f3)])return _0x5c7360;}}}}catch{}let _0x70a1e9=(0x0,generic_1[_0x348aae(0x21e)])(_0x5c61cf);if(_0x417ec7){const _0x1ebbd9=path[_0x348aae(0x20e)](_0x417ec7)['toLowerCase']();_0x70a1e9=(0x0,generic_1[_0x348aae(0x243)])(_0x70a1e9,_0x1ebbd9);}const _0x1fe967=_0x70a1e9[_0x348aae(0x21c)]('\x0a');if(_0x1fe967[_0x348aae(0x1f3)]<=0x64)return _0x70a1e9;const _0x4ba194=[];return _0x4ba194[_0x348aae(0x1eb)](..._0x1fe967[_0x348aae(0x23b)](0x0,0x32)),_0x4ba194[_0x348aae(0x1eb)](_0x348aae(0x22b)+(_0x1fe967[_0x348aae(0x1f3)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x4ba194[_0x348aae(0x1eb)](..._0x1fe967[_0x348aae(0x23b)](-0x1e)),_0x4ba194[_0x348aae(0x1eb)]('\x0a('+_0x1fe967[_0x348aae(0x1f3)]+'\x20lines\x20total)'),_0x4ba194['join']('\x0a');}function filterGrep(_0x24ef0e){const _0x10e068=a0_0x2e4863,_0x4d2575=_0x24ef0e[_0x10e068(0x21c)]('\x0a')[_0x10e068(0x1e4)](_0x12f3be=>_0x12f3be['trim']()[_0x10e068(0x1f3)]>0x0);if(_0x4d2575[_0x10e068(0x1f3)]===0x0)return'No\x20matches\x20found';if(_0x4d2575[_0x10e068(0x1f3)]<=0x32)return _0x24ef0e[_0x10e068(0x241)]();const _0x4dc00b={},_0x502294=[];for(const _0x46310e of _0x4d2575){const _0x595b5c=_0x46310e[_0x10e068(0x1d6)](':');if(_0x595b5c>0x0&&_0x595b5c<0xc8){const _0x26583a=_0x46310e[_0x10e068(0x1ca)](0x0,_0x595b5c);if(_0x26583a[_0x10e068(0x244)]('/')||_0x26583a[_0x10e068(0x244)]('\x5c')||_0x26583a['includes']('.')){if(!_0x4dc00b[_0x26583a])_0x4dc00b[_0x26583a]=[];_0x4dc00b[_0x26583a][_0x10e068(0x1eb)](_0x46310e[_0x10e068(0x1ca)](_0x595b5c+0x1)['trim']());continue;}}_0x502294[_0x10e068(0x1eb)](_0x46310e);}const _0x248dd1=[],_0x101d6c=Object[_0x10e068(0x1ce)](_0x4dc00b);if(_0x101d6c[_0x10e068(0x1f3)]>0x0){const _0x5b7e69=0x14,_0x15bf00=_0x101d6c[_0x10e068(0x23b)](0x0,_0x5b7e69);for(const _0x377b98 of _0x15bf00){const _0x279d1a=_0x4dc00b[_0x377b98];if(_0x279d1a[_0x10e068(0x1f3)]<=0x3)for(const _0x204b85 of _0x279d1a){_0x248dd1['push'](_0x377b98+':\x20'+_0x204b85);}else _0x248dd1[_0x10e068(0x1eb)](_0x377b98+':\x20'+_0x279d1a[0x0]),_0x248dd1[_0x10e068(0x1eb)](_0x377b98+':\x20...\x20('+_0x279d1a[_0x10e068(0x1f3)]+'\x20matches\x20in\x20this\x20file)');}_0x101d6c[_0x10e068(0x1f3)]>_0x5b7e69&&_0x248dd1[_0x10e068(0x1eb)]('...\x20+'+(_0x101d6c['length']-_0x5b7e69)+'\x20more\x20files\x20with\x20matches');}if(_0x502294[_0x10e068(0x1f3)]>0x0){const _0x282060=0x1e;_0x248dd1['push'](..._0x502294[_0x10e068(0x23b)](0x0,_0x282060)),_0x502294[_0x10e068(0x1f3)]>_0x282060&&_0x248dd1[_0x10e068(0x1eb)](_0x10e068(0x1dd)+(_0x502294[_0x10e068(0x1f3)]-_0x282060)+'\x20more\x20matches');}const _0x13a8e7=_0x4d2575[_0x10e068(0x1f3)];return _0x248dd1[_0x10e068(0x1eb)]('\x0a('+_0x13a8e7+_0x10e068(0x1fa)+(_0x101d6c[_0x10e068(0x1f3)]||'?')+_0x10e068(0x206)),_0x248dd1[_0x10e068(0x1e8)]('\x0a');}function filterFind(_0x559065){const _0x259105=a0_0x2e4863,_0x50765c=_0x559065[_0x259105(0x21c)]('\x0a')[_0x259105(0x1e4)](_0x4b5926=>_0x4b5926[_0x259105(0x241)]()[_0x259105(0x1f3)]>0x0);if(_0x50765c[_0x259105(0x1f3)]===0x0)return'No\x20files\x20found';if(_0x50765c['length']<=0x32)return _0x559065['trim']();const _0xe80ba0={};for(const _0x4d583d of _0x50765c){const _0xd94f00=path[_0x259105(0x208)](_0x4d583d[_0x259105(0x241)]())||'.';_0xe80ba0[_0xd94f00]=(_0xe80ba0[_0xd94f00]||0x0)+0x1;}const _0x1c18f3=Object['entries'](_0xe80ba0)[_0x259105(0x236)]((_0x195c62,_0x535ce3)=>_0x535ce3[0x1]-_0x195c62[0x1]),_0x494e70=[_0x50765c['length']+_0x259105(0x1c9)+_0x1c18f3[_0x259105(0x1f3)]+_0x259105(0x1df),''],_0x2c19a6=0x1e;for(const [_0x22fea5,_0x15ea79]of _0x1c18f3[_0x259105(0x23b)](0x0,_0x2c19a6)){_0x494e70[_0x259105(0x1eb)]('\x20\x20'+_0x22fea5+_0x259105(0x227)+_0x15ea79+_0x259105(0x206));}return _0x1c18f3[_0x259105(0x1f3)]>_0x2c19a6&&_0x494e70[_0x259105(0x1eb)](_0x259105(0x214)+(_0x1c18f3[_0x259105(0x1f3)]-_0x2c19a6)+_0x259105(0x240)),_0x494e70[_0x259105(0x1e8)]('\x0a');}
|
package/index.html
CHANGED
|
@@ -771,8 +771,7 @@
|
|
|
771
771
|
{ key: 'lock', title: 'Lock file detection', desc: 'package-lock.json, yarn.lock, Cargo.lock, go.sum → summary line', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statSub: 'on lock files', status: 'active' },
|
|
772
772
|
{ key: 'binary', title: 'Binary/minified detection', desc: '.png, .min.js, .wasm, .pdf, 40+ extensions → placeholder', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statSub: 'on binaries', status: 'active' },
|
|
773
773
|
{ key: 'json_crusher', title: 'SmartCrusher (JSON arrays → tables)', desc: 'Arrays of objects compressed to tabular format. Removes resolved/integrity fields', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statSub: 'on JSON arrays', status: 'active' },
|
|
774
|
-
{ key: 'skeleton', title: 'Code skeleton (imports + signatures only)', desc: 'Files over 100 lines → show structure only, collapse bodies', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statSub: 'on large files', status: 'active' }
|
|
775
|
-
{ key: 'ccr', title: 'CCR — Reversible compression', desc: 'Store original in cache, send compressed. Agent can retrieve full via trim retrieve', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statSub: 'deeper compression', status: 'off' },
|
|
774
|
+
{ key: 'skeleton', title: 'Code skeleton (imports + signatures only)', desc: 'Files over 100 lines → show structure only, collapse bodies', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statSub: 'on large files', status: 'active' }
|
|
776
775
|
]},
|
|
777
776
|
{ category: 'S — Security', features: [
|
|
778
777
|
{ key: 'redact', title: 'Secret redaction (20 patterns)', desc: 'AWS keys, API tokens, JWTs, DB strings auto-blocked', badges: ['Claude','Cursor','Copilot','Gemini','Antigravity'], statKey: 'secrets', statSub: 'secrets blocked', status: 'active' },
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a0_0x2b5e(_0x22898f,_0x4d157f){_0x22898f=_0x22898f-0xf7;const _0x40c322=a0_0x40c3();let _0x2b5e6a=_0x40c322[_0x22898f];return _0x2b5e6a;}const a0_0x535df1=a0_0x2b5e;(function(_0x30dabb,_0x3632a7){const _0x27304c=a0_0x2b5e,_0x2b848f=_0x30dabb();while(!![]){try{const _0x271e98=-parseInt(_0x27304c(0x10a))/0x1+parseInt(_0x27304c(0x13d))/0x2*(parseInt(_0x27304c(0x107))/0x3)+-parseInt(_0x27304c(0x138))/0x4*(-parseInt(_0x27304c(0x13b))/0x5)+-parseInt(_0x27304c(0x125))/0x6*(-parseInt(_0x27304c(0x11a))/0x7)+parseInt(_0x27304c(0x102))/0x8*(-parseInt(_0x27304c(0xf9))/0x9)+parseInt(_0x27304c(0xf8))/0xa+-parseInt(_0x27304c(0x105))/0xb;if(_0x271e98===_0x3632a7)break;else _0x2b848f['push'](_0x2b848f['shift']());}catch(_0x254f2a){_0x2b848f['push'](_0x2b848f['shift']());}}}(a0_0x40c3,0x54b91));var __createBinding=this&&this[a0_0x535df1(0x141)]||(Object[a0_0x535df1(0x12f)]?function(_0x4bd6aa,_0x4d5067,_0x3956a9,_0x4c7dbd){const _0x1a6a34=a0_0x535df1;if(_0x4c7dbd===undefined)_0x4c7dbd=_0x3956a9;var _0x1b375a=Object['getOwnPropertyDescriptor'](_0x4d5067,_0x3956a9);(!_0x1b375a||(_0x1a6a34(0xfd)in _0x1b375a?!_0x4d5067[_0x1a6a34(0x131)]:_0x1b375a[_0x1a6a34(0x13f)]||_0x1b375a[_0x1a6a34(0x129)]))&&(_0x1b375a={'enumerable':!![],'get':function(){return _0x4d5067[_0x3956a9];}}),Object[_0x1a6a34(0x135)](_0x4bd6aa,_0x4c7dbd,_0x1b375a);}:function(_0x231d14,_0x405a4a,_0xe0bcf1,_0x4aad46){if(_0x4aad46===undefined)_0x4aad46=_0xe0bcf1;_0x231d14[_0x4aad46]=_0x405a4a[_0xe0bcf1];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x3f58b3,_0x51b592){const _0xbc91f2=a0_0x535df1;Object[_0xbc91f2(0x135)](_0x3f58b3,'default',{'enumerable':!![],'value':_0x51b592});}:function(_0x415f76,_0x234be0){const _0x15e57e=a0_0x535df1;_0x415f76[_0x15e57e(0x127)]=_0x234be0;}),__importStar=this&&this[a0_0x535df1(0x114)]||(function(){var _0xe8a155=function(_0x4eac28){return _0xe8a155=Object['getOwnPropertyNames']||function(_0x1381f3){const _0x2bb5dc=a0_0x2b5e;var _0x3318d6=[];for(var _0x36a098 in _0x1381f3)if(Object[_0x2bb5dc(0x117)][_0x2bb5dc(0x12b)][_0x2bb5dc(0x10f)](_0x1381f3,_0x36a098))_0x3318d6[_0x3318d6['length']]=_0x36a098;return _0x3318d6;},_0xe8a155(_0x4eac28);};return function(_0x22dca4){const _0x339884=a0_0x2b5e;if(_0x22dca4&&_0x22dca4[_0x339884(0x131)])return _0x22dca4;var _0x2c66a7={};if(_0x22dca4!=null){for(var _0x59359d=_0xe8a155(_0x22dca4),_0x29abff=0x0;_0x29abff<_0x59359d[_0x339884(0x130)];_0x29abff++)if(_0x59359d[_0x29abff]!==_0x339884(0x127))__createBinding(_0x2c66a7,_0x22dca4,_0x59359d[_0x29abff]);}return __setModuleDefault(_0x2c66a7,_0x22dca4),_0x2c66a7;};}());Object[a0_0x535df1(0x135)](exports,'__esModule',{'value':!![]}),exports[a0_0x535df1(0x11b)]=runMcpProxy;const child_process_1=require(a0_0x535df1(0x111)),readline=__importStar(require(a0_0x535df1(0x124))),filters_1=require(a0_0x535df1(0x12d)),tracker_1=require(a0_0x535df1(0x116)),proxy_conv_1=require(a0_0x535df1(0x139)),proxy_resp_1=require(a0_0x535df1(0x112));function runMcpProxy(_0x15becd,_0xaefc79){const _0x3fd8cd=a0_0x535df1,_0x18fe65=(0x0,child_process_1[_0x3fd8cd(0x12c)])(_0x15becd,_0xaefc79,{'stdio':[_0x3fd8cd(0x126),_0x3fd8cd(0x126),'inherit']}),_0x5d0d0c=tracker_1[_0x3fd8cd(0xf7)][_0x3fd8cd(0x13e)](),_0x41c36f=_0x5d0d0c[_0x3fd8cd(0x134)]||{},_0xa815c7=_0x41c36f[_0x3fd8cd(0x11f)]!==![],_0x507909=_0x41c36f['resp_optimize']!==![],_0xcf2abc=readline[_0x3fd8cd(0x119)]({'input':process[_0x3fd8cd(0x101)],'terminal':![]});_0xcf2abc['on']('line',_0xc6d1a7=>{const _0x53ef6b=_0x3fd8cd;try{const _0x36def5=JSON[_0x53ef6b(0x13c)](_0xc6d1a7);if(_0x36def5&&_0x36def5[_0x53ef6b(0xfa)]===_0x53ef6b(0x106)&&_0x36def5[_0x53ef6b(0x11c)]&&_0x36def5[_0x53ef6b(0x137)]){const _0xa106c2=_0x36def5[_0x53ef6b(0x137)];if(Array[_0x53ef6b(0x12a)](_0xa106c2['messages'])&&_0xa106c2['messages'][_0x53ef6b(0x130)]>0x0){if(_0xa815c7){const _0x5c402a=(0x0,proxy_conv_1[_0x53ef6b(0xfe)])(_0xa106c2['messages']);(_0x5c402a[_0x53ef6b(0x10d)]>0x0||_0x5c402a[_0x53ef6b(0xfc)]>0x0)&&(_0xa106c2[_0x53ef6b(0x120)]=_0x5c402a[_0x53ef6b(0x120)],tracker_1[_0x53ef6b(0xf7)][_0x53ef6b(0x118)](_0x53ef6b(0x108),_0x5c402a['trimmedCount']+_0x5c402a[_0x53ef6b(0x120)]['length']+_0x53ef6b(0x115),_0x5c402a[_0x53ef6b(0x120)][_0x53ef6b(0x130)]+_0x53ef6b(0x12e)+_0x5c402a[_0x53ef6b(0x10d)]+'\x20trimmed,\x20~'+_0x5c402a[_0x53ef6b(0xfc)]+_0x53ef6b(0x143),0x0,undefined,[_0x53ef6b(0x11f)]));}if(_0x507909){const _0x2a61eb=(0x0,proxy_resp_1[_0x53ef6b(0x10c)])(_0xa106c2[_0x53ef6b(0x120)],_0xa106c2[_0x53ef6b(0x10b)]);if(_0x2a61eb){const _0x35ead5=_0xa106c2['max_tokens']||_0x53ef6b(0x127);_0xa106c2['max_tokens']=_0x2a61eb[_0x53ef6b(0x10b)],tracker_1[_0x53ef6b(0xf7)][_0x53ef6b(0x118)]('proxy:resp-optimize',_0x53ef6b(0x133)+_0x35ead5,_0x53ef6b(0x133)+_0x2a61eb[_0x53ef6b(0x10b)]+'\x20('+_0x2a61eb[_0x53ef6b(0x140)]+')',0x0,undefined,['resp_optimize']);}}}_0x18fe65[_0x53ef6b(0x101)]['write'](JSON['stringify'](_0x36def5)+'\x0a');}else _0x18fe65[_0x53ef6b(0x101)][_0x53ef6b(0x11e)](_0xc6d1a7+'\x0a');}catch{_0x18fe65[_0x53ef6b(0x101)][_0x53ef6b(0x11e)](_0xc6d1a7+'\x0a');}}),_0xcf2abc['on'](_0x3fd8cd(0x121),()=>{const _0x5af35d=_0x3fd8cd;try{_0x18fe65['stdin'][_0x5af35d(0x104)]();}catch{}});const _0x29428f=readline[_0x3fd8cd(0x119)]({'input':_0x18fe65['stdout'],'terminal':![]});_0x29428f['on'](_0x3fd8cd(0x136),_0x1ae918=>{const _0x468543=_0x3fd8cd;try{const _0x3d34bd=JSON['parse'](_0x1ae918);if(_0x3d34bd&&_0x3d34bd[_0x468543(0xfa)]==='2.0'&&_0x3d34bd['id']!==undefined&&_0x3d34bd['result']&&Array[_0x468543(0x12a)](_0x3d34bd[_0x468543(0x100)][_0x468543(0x128)])){let _0x4afeb5=![];for(const _0x3b12d6 of _0x3d34bd[_0x468543(0x100)][_0x468543(0x128)]){if(_0x3b12d6[_0x468543(0x123)]===_0x468543(0x10e)&&typeof _0x3b12d6[_0x468543(0x10e)]===_0x468543(0x11d)&&_0x3b12d6[_0x468543(0x10e)]['trim']()[_0x468543(0x130)]>0x0){const _0x31108e=_0x3b12d6['text'],_0x11773b=(0x0,filters_1[_0x468543(0x13a)])(_0x468543(0xfb),_0x31108e,'',tracker_1['tracker'][_0x468543(0x13e)]()[_0x468543(0x109)]);tracker_1[_0x468543(0xf7)][_0x468543(0x118)](_0x468543(0x142)+_0x3d34bd['id']+')',_0x31108e,_0x11773b,0x0),_0x3b12d6[_0x468543(0x10e)]=_0x11773b,_0x4afeb5=!![];}}_0x4afeb5?process[_0x468543(0x132)][_0x468543(0x11e)](JSON[_0x468543(0x113)](_0x3d34bd)+'\x0a'):process['stdout'][_0x468543(0x11e)](_0x1ae918+'\x0a');}else process[_0x468543(0x132)][_0x468543(0x11e)](_0x1ae918+'\x0a');}catch{process[_0x468543(0x132)][_0x468543(0x11e)](_0x1ae918+'\x0a');}}),_0x18fe65['on'](_0x3fd8cd(0x121),_0x3515ea=>{const _0x1e2573=_0x3fd8cd;process[_0x1e2573(0x110)](_0x3515ea||0x0);}),_0x18fe65['on'](_0x3fd8cd(0xff),_0x5b4070=>{const _0x3364af=_0x3fd8cd;console[_0x3364af(0xff)](_0x3364af(0x103)+_0x5b4070[_0x3364af(0x122)]),process[_0x3364af(0x110)](0x1);});}function a0_0x40c3(){const _0x1a6ec1=['mcp\x20tool\x20(id:\x20','\x20tokens\x20saved)','tracker','3548930nKYQTU','66609srfUei','jsonrpc','mcp-tool-call','savedTokens','get','compressConversation','error','result','stdin','256pQUFiu','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','end','5914909yRobMY','2.0','45gNdOzk','proxy:conv-compress','redaction_enabled','657114MMAMcy','max_tokens','optimizeMaxTokens','trimmedCount','text','call','exit','child_process','./proxy-resp','stringify','__importStar','\x20messages','./tracker','prototype','logExecution','createInterface','3049389TChQDM','runMcpProxy','method','string','write','conv_compress','messages','close','message','type','readline','6gPRHze','pipe','default','content','configurable','isArray','hasOwnProperty','spawn','./filters','\x20messages\x20(','create','length','__esModule','stdout','max_tokens:\x20','features_enabled','defineProperty','line','params','7092cbTVJz','./proxy-conv','compressOutput','1775kikEBh','parse','47834YlUPCE','getConfig','writable','complexity','__createBinding'];a0_0x40c3=function(){return _0x1a6ec1;};return a0_0x40c3();}
|