trimprompt 1.0.27 → 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 +7 -12
- 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 -0
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_0x236a9b=a0_0x538f;(function(_0x144966,_0x25bf86){const _0x3a2619=a0_0x538f,_0x4c48b1=_0x144966();while(!![]){try{const _0x22097a=-parseInt(_0x3a2619(0x13a))/0x1*(-parseInt(_0x3a2619(0x114))/0x2)+-parseInt(_0x3a2619(0x10d))/0x3*(-parseInt(_0x3a2619(0xfd))/0x4)+parseInt(_0x3a2619(0x113))/0x5+-parseInt(_0x3a2619(0xfc))/0x6*(parseInt(_0x3a2619(0x110))/0x7)+parseInt(_0x3a2619(0xf5))/0x8+parseInt(_0x3a2619(0x129))/0x9*(-parseInt(_0x3a2619(0x14f))/0xa)+-parseInt(_0x3a2619(0x135))/0xb;if(_0x22097a===_0x25bf86)break;else _0x4c48b1['push'](_0x4c48b1['shift']());}catch(_0x4b672b){_0x4c48b1['push'](_0x4c48b1['shift']());}}}(a0_0x1a6f,0xed38d));function a0_0x1a6f(){const _0x450cce=['json_crusher','filterCat','pnpm\x20install','redactor','startsWith','trim','1229061vwREDH','go\x20vet','ansi_strip','315YoFMhY','pytest','redact','5250355hZjjvz','7466icllkk','trim\x20ls','trim\x20npx','./git','collapseWhitespace','filterLs','kubectl','git\x20status','vitest','./js','go\x20test','yadm\x20status','cargo\x20clippy','\x20tree\x20','ruff\x20','trim\x20kubectl','filter','trim\x20npm','./rust','features_enabled','trim\x20','6841377LpljBk','[lock\x20file]','endsWith','some','lines\x20truncated','binary','pip3\x20install','get','yarn\x20install','filterJestVitest','\x20ls','length','7811925oLADNx','compressOutput','../redactor','filterCargoBuild','filterGitLog','186YIwVCp','match','trim\x20ruff','lastFeatures','redactWithAudit','filterGoTest','softTruncate','trim\x20grep','lock','trim\x20find','[binary','jest','npm\x20i\x20','defineProperty','git\x20log','cargo\x20check','pattern','npm\x20i','rewriteCommand','trim\x20glab','filterKubectl','10xvyPvh','pnpm\x20test','filterNpmInstall','npm\x20install','yarn\x20test','[minified\x20file]','trim\x20cargo','trim\x20git','filterCargoTest','text','\x20tree','lastRedactAudit','4962104VZgECS','trim\x20pnpm','./go','\x20ls\x20','tracker','includes','filterTree','44316PKSQQS','4lFOknP','secretsFound','filterGitStatus','push','trim\x20pip','whitespace','./shell','git\x20show','trim\x20read','yadm\x20log'];a0_0x1a6f=function(){return _0x450cce;};return a0_0x1a6f();}Object[a0_0x236a9b(0x147)](exports,'__esModule',{'value':!![]}),exports[a0_0x236a9b(0x13d)]=exports[a0_0x236a9b(0xf4)]=void 0x0,exports[a0_0x236a9b(0x136)]=compressOutput,exports[a0_0x236a9b(0x14c)]=rewriteCommand;const generic_1=require('./generic'),git_1=require(a0_0x236a9b(0x117)),python_1=require('./python'),js_1=require(a0_0x236a9b(0x11d)),shell_1=require(a0_0x236a9b(0x103)),rust_1=require(a0_0x236a9b(0x126)),go_1=require(a0_0x236a9b(0xf7)),devops_1=require('./devops'),redactor_1=require(a0_0x236a9b(0x137)),tracker_1=require('../tracker');exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x236a9b(0x13d)]=[];function isFeatureEnabled(_0x555ad0){const _0x13bf57=a0_0x236a9b;try{const _0x2202cf=tracker_1[_0x13bf57(0xf9)]['getConfig'](),_0x1cf884=_0x2202cf[_0x13bf57(0x127)];if(!_0x1cf884||_0x1cf884[_0x555ad0]===undefined)return!![];return _0x1cf884[_0x555ad0]!==![];}catch{return!![];}}function compressOutput(_0x3a463d,_0x33c309,_0x17a8b2,_0x51c806=!![]){const _0x40e17=a0_0x236a9b,_0x1da175=_0x3a463d[_0x40e17(0x10c)]();let _0x3dceb8=_0x33c309;_0x17a8b2[_0x40e17(0x10c)]()[_0x40e17(0x134)]>0x0&&(_0x3dceb8=_0x33c309+'\x0a'+_0x17a8b2);let _0x4cdee8=isFeatureEnabled(_0x40e17(0x10f))?(0x0,generic_1['stripAnsi'])(_0x3dceb8):_0x3dceb8;const _0x541fb1=[];if(_0x4cdee8[_0x40e17(0x134)]<_0x3dceb8[_0x40e17(0x134)])_0x541fb1[_0x40e17(0x100)]('ansi_strip');const _0x5117d8=(_0x434b81,_0x402b19)=>{const _0x5b172c=_0x40e17;return _0x541fb1[_0x5b172c(0x100)](_0x434b81),exports['lastFeatures']=_0x541fb1,_0x402b19;};if(_0x51c806&&isFeatureEnabled('redact')){const _0x5b63f6=redactor_1[_0x40e17(0x10a)][_0x40e17(0x13e)](_0x4cdee8);_0x4cdee8=_0x5b63f6[_0x40e17(0xf2)],exports[_0x40e17(0xf4)]={'secretsFound':_0x5b63f6['secretsFound'],'secretTypes':_0x5b63f6['secretTypes']};if(_0x5b63f6[_0x40e17(0xfe)]>0x0)_0x541fb1[_0x40e17(0x100)](_0x40e17(0x112));}else exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]};const _0x9ea65f=_0x1da175['toLowerCase'](),_0x27c3ce=isFeatureEnabled(_0x40e17(0x124));try{if(_0x27c3ce){if(_0x9ea65f['includes'](_0x40e17(0x11b))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x11f)))return _0x5117d8('filter',(0x0,git_1[_0x40e17(0xff)])(_0x4cdee8));if(_0x9ea65f['includes'](_0x40e17(0x148))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x106)))return _0x5117d8(_0x40e17(0x124),(0x0,git_1[_0x40e17(0x139)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)]('git\x20diff')||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x104))||_0x9ea65f['includes']('yadm\x20diff'))return _0x5117d8(_0x40e17(0x124),(0x0,git_1['filterGitDiff'])(_0x4cdee8));if(_0x9ea65f['includes'](_0x40e17(0x111))||_0x9ea65f[_0x40e17(0x13b)](/python3?\s+-m\s+pytest/))return _0x5117d8(_0x40e17(0x124),(0x0,python_1['filterPytest'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)]('pip\x20install')||_0x9ea65f['includes'](_0x40e17(0x12f)))return _0x5117d8(_0x40e17(0x124),(0x0,python_1['filterPipInstall'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)]('ruff\x20check')||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x122)))return _0x5117d8(_0x40e17(0x124),(0x0,devops_1['filterRuff'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0xec))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x146))||_0x9ea65f[_0x40e17(0x12b)](_0x40e17(0x14b))||_0x9ea65f['includes'](_0x40e17(0x109))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x131)))return _0x5117d8(_0x40e17(0x124),(0x0,js_1[_0x40e17(0xeb)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x145))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x11c)))return _0x5117d8(_0x40e17(0x124),(0x0,js_1[_0x40e17(0x132)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)]('npm\x20test')||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x150))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0xed))||_0x9ea65f[_0x40e17(0xfa)]('npm\x20run\x20test'))return _0x5117d8(_0x40e17(0x124),(0x0,js_1[_0x40e17(0x132)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)]('cargo\x20test'))return _0x5117d8('filter',(0x0,rust_1[_0x40e17(0xf1)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0xfa)]('cargo\x20build')||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x149))||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x120)))return _0x5117d8('filter',(0x0,rust_1[_0x40e17(0x138)])(_0x4cdee8));if(_0x9ea65f['includes'](_0x40e17(0x11e)))return _0x5117d8(_0x40e17(0x124),(0x0,go_1[_0x40e17(0x13f)])(_0x4cdee8));if(_0x9ea65f['includes'](_0x40e17(0x10e)))return _0x5117d8(_0x40e17(0x124),(0x0,go_1['filterGoVet'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0x13b)](/docker\s+ps/))return _0x5117d8(_0x40e17(0x124),(0x0,devops_1['filterDockerPs'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0x13b)](/docker\s+images/))return _0x5117d8(_0x40e17(0x124),(0x0,devops_1['filterDockerImages'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0x13b)](/docker\s+logs/))return _0x5117d8(_0x40e17(0x124),(0x0,devops_1['filterDockerLogs'])(_0x4cdee8));if(_0x9ea65f['includes'](_0x40e17(0x11a))){const _0x16e5fc=_0x9ea65f[_0x40e17(0x13b)](/kubectl\s+(get|logs|describe|apply)/),_0x55223a=_0x16e5fc?_0x16e5fc[0x1]:_0x40e17(0x130);return _0x5117d8('filter',(0x0,devops_1[_0x40e17(0x14e)])(_0x4cdee8,_0x55223a));}if(_0x9ea65f[_0x40e17(0x13b)](/^(ls|dir)(\s|$)/)||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0xf8))||_0x9ea65f[_0x40e17(0x12b)](_0x40e17(0x133)))return _0x5117d8('filter',(0x0,shell_1[_0x40e17(0x119)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0x13b)](/^tree(\s|$)/)||_0x9ea65f[_0x40e17(0xfa)](_0x40e17(0x121))||_0x9ea65f[_0x40e17(0x12b)](_0x40e17(0xf3)))return _0x5117d8(_0x40e17(0x124),(0x0,shell_1[_0x40e17(0xfb)])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0x13b)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x6484b3=(0x0,shell_1[_0x40e17(0x108)])(_0x4cdee8,_0x1da175);if(_0x6484b3['includes'](_0x40e17(0x12a)))_0x541fb1[_0x40e17(0x100)](_0x40e17(0x142));else{if(_0x6484b3[_0x40e17(0xfa)](_0x40e17(0x144))||_0x6484b3[_0x40e17(0xfa)](_0x40e17(0xee)))_0x541fb1[_0x40e17(0x100)](_0x40e17(0x12e));else{if(_0x6484b3[_0x40e17(0xfa)]('[code\x20skeleton]'))_0x541fb1[_0x40e17(0x100)]('skeleton');else{if(_0x6484b3[_0x40e17(0xfa)]('|\x20')&&_0x6484b3[_0x40e17(0xfa)]('---')&&_0x6484b3[_0x40e17(0x134)]<_0x4cdee8[_0x40e17(0x134)]*0.5)_0x541fb1['push'](_0x40e17(0x107));else{if(_0x6484b3[_0x40e17(0xfa)](_0x40e17(0x12d)))_0x541fb1[_0x40e17(0x100)]('filter');}}}}if(_0x6484b3['length']<_0x4cdee8[_0x40e17(0x134)]&&!_0x541fb1[_0x40e17(0x12c)](_0xaf9776=>_0xaf9776!==_0x40e17(0x10f)&&_0xaf9776!==_0x40e17(0x112)))_0x541fb1[_0x40e17(0x100)](_0x40e17(0x124));return exports[_0x40e17(0x13d)]=_0x541fb1,_0x6484b3;}if(_0x9ea65f[_0x40e17(0x13b)](/^find(\s|$)/))return _0x5117d8(_0x40e17(0x124),(0x0,shell_1['filterFind'])(_0x4cdee8));if(_0x9ea65f[_0x40e17(0x13b)](/^(grep|rg|ripgrep)(\s|$)/))return _0x5117d8(_0x40e17(0x124),(0x0,shell_1['filterGrep'])(_0x4cdee8));}}catch(_0x9db3c7){}return isFeatureEnabled(_0x40e17(0x102))&&(_0x4cdee8=(0x0,generic_1[_0x40e17(0x118)])(_0x4cdee8),_0x541fb1[_0x40e17(0x100)](_0x40e17(0x102))),_0x4cdee8=(0x0,generic_1['collapseDuplicates'])(_0x4cdee8),_0x4cdee8=(0x0,generic_1[_0x40e17(0x140)])(_0x4cdee8,0x4e20),exports['lastFeatures']=_0x541fb1,_0x4cdee8;}function a0_0x538f(_0x145b67,_0xbd9e86){_0x145b67=_0x145b67-0xeb;const _0x1a6f1a=a0_0x1a6f();let _0x538f6f=_0x1a6f1a[_0x145b67];return _0x538f6f;}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_0x236a9b(0xf0)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x236a9b(0x14d)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x236a9b(0xef)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x236a9b(0xf6)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x236a9b(0x125)},{'pattern':/^npx\s+/,'prefix':a0_0x236a9b(0x116)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x236a9b(0x105)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x236a9b(0x141)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x236a9b(0x115)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x236a9b(0x143)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x236a9b(0x123)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':'trim\x20pytest'},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x236a9b(0x13c)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x236a9b(0x101)},{'pattern':/^go\s+(test|build|vet)/,'prefix':'trim\x20go'}];function rewriteCommand(_0x410729){const _0xb38259=a0_0x236a9b,_0x2a7f91=_0x410729[_0xb38259(0x10c)]();if(_0x2a7f91[_0xb38259(0x10b)](_0xb38259(0x128)))return _0x2a7f91;for(const _0x3afd69 of REWRITE_RULES){if(_0x3afd69[_0xb38259(0x14a)]['test'](_0x2a7f91))return _0xb38259(0x128)+_0x2a7f91;}return _0x2a7f91;}
|
|
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';
|
|
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';
|
|
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_0x2b0a30=a0_0x4144;(function(_0x31137d,_0x505422){const _0x17bb99=a0_0x4144,_0x10e6ae=_0x31137d();while(!![]){try{const _0x5d3931=parseInt(_0x17bb99(0x16f))/0x1+-parseInt(_0x17bb99(0x1d3))/0x2+parseInt(_0x17bb99(0x15c))/0x3+-parseInt(_0x17bb99(0x161))/0x4*(parseInt(_0x17bb99(0x1b2))/0x5)+parseInt(_0x17bb99(0x1c4))/0x6+-parseInt(_0x17bb99(0x168))/0x7+-parseInt(_0x17bb99(0x1a6))/0x8;if(_0x5d3931===_0x505422)break;else _0x10e6ae['push'](_0x10e6ae['shift']());}catch(_0x6ccfe8){_0x10e6ae['push'](_0x10e6ae['shift']());}}}(a0_0xd24e,0xb80be));function a0_0xd24e(){const _0x91cd63=['path','\x20lines\x20truncated]\x20...\x0a','split','.jpg','slice','extname','.tsx','.wav','filterLs','.rb','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','.pyo','getOwnPropertyDescriptor','.gz','.mov','configurable','length','charCodeAt','export\x20','.ttf','[lock\x20file]\x20','trim','.gif','use\x20','writable','.obj','bun.lockb','\x20lines)','defineProperty','No\x20matches\x20found','\x20dependencies,\x20','parse','.dylib','match','packages','startsWith','\x20lines\x20total,\x20','.go','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','\x20more\x20matches','.map','Gemfile.lock','\x20more\x20files','smartCrushJson','\x20\x20...\x20+','composer.lock','955008jkmbwy','.java','require(','indexOf','hasOwnProperty','go.sum','\x20more\x20directories','tracker','keys','endsWith','.jpeg','floor','5ktUZeK','stripComments','poetry.lock','.min.css','\x20files)','filterTree','@param','json_crusher','/\x20(','basename','.bz2','.ts','.bmp','create','...\x20+','skeleton','total\x20','.db','4481136WVuZII','.cs','sort','.ico','dirname','binary','.mp4','getConfig','call','.dat','.otf','.jsx','\x20matches\x20in\x20this\x20file)','.tar.gz','\x20more\x20files\x20with\x20matches','2190686KDFPvw','[minified\x20file]\x20','join','\x20directories,\x20','.js','\x20matches\x20across\x20','.bin','filterCat','.woff','.rar','./generic','../tracker','substring','filterGrep','import\x20','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.swift','push','.so','.7z','package-lock.json','.dll','.webp','\x20chars\x20across\x20',':\x20...\x20(','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','2763261CWvrIY','#include\x20','.sqlite','__esModule','toLocaleString','364972jhZzeW','\x0a...\x20(','.mp3','.sqlite3','Empty\x20directory','includes','toLowerCase','4300282tiBmOY','\x20lines\x20total)','filter','__createBinding','[code\x20skeleton]\x20','pnpm-lock.yaml','No\x20files\x20found','1006199aMCjie','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','\x0a...\x20[','.exe','.rs','\x20chars,\x20type:\x20','default','.woff2','yarn.lock'];a0_0xd24e=function(){return _0x91cd63;};return a0_0xd24e();}var __createBinding=this&&this[a0_0x2b0a30(0x16b)]||(Object[a0_0x2b0a30(0x1bf)]?function(_0x5409b9,_0x3a72a9,_0x4a2256,_0x18b00d){const _0x4a7888=a0_0x2b0a30;if(_0x18b00d===undefined)_0x18b00d=_0x4a2256;var _0xa52ae1=Object[_0x4a7888(0x184)](_0x3a72a9,_0x4a2256);(!_0xa52ae1||('get'in _0xa52ae1?!_0x3a72a9[_0x4a7888(0x15f)]:_0xa52ae1[_0x4a7888(0x190)]||_0xa52ae1[_0x4a7888(0x187)]))&&(_0xa52ae1={'enumerable':!![],'get':function(){return _0x3a72a9[_0x4a2256];}}),Object[_0x4a7888(0x194)](_0x5409b9,_0x18b00d,_0xa52ae1);}:function(_0x3af6ff,_0x12eff8,_0x39cdb9,_0x2f8a01){if(_0x2f8a01===undefined)_0x2f8a01=_0x39cdb9;_0x3af6ff[_0x2f8a01]=_0x12eff8[_0x39cdb9];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x2b0a30(0x1bf)]?function(_0x4d8820,_0x1eab40){const _0x55d450=a0_0x2b0a30;Object[_0x55d450(0x194)](_0x4d8820,'default',{'enumerable':!![],'value':_0x1eab40});}:function(_0x1f186e,_0xaf62fe){const _0x6150b3=a0_0x2b0a30;_0x1f186e[_0x6150b3(0x175)]=_0xaf62fe;}),__importStar=this&&this['__importStar']||(function(){var _0x12816e=function(_0x3a4f17){return _0x12816e=Object['getOwnPropertyNames']||function(_0x520bca){const _0x5a7bc9=a0_0x4144;var _0x5018c2=[];for(var _0xed6921 in _0x520bca)if(Object['prototype'][_0x5a7bc9(0x1aa)][_0x5a7bc9(0x1cc)](_0x520bca,_0xed6921))_0x5018c2[_0x5018c2[_0x5a7bc9(0x188)]]=_0xed6921;return _0x5018c2;},_0x12816e(_0x3a4f17);};return function(_0x480176){const _0x3d06f8=a0_0x4144;if(_0x480176&&_0x480176[_0x3d06f8(0x15f)])return _0x480176;var _0x409ba2={};if(_0x480176!=null){for(var _0x9d6772=_0x12816e(_0x480176),_0x331ec1=0x0;_0x331ec1<_0x9d6772[_0x3d06f8(0x188)];_0x331ec1++)if(_0x9d6772[_0x331ec1]!==_0x3d06f8(0x175))__createBinding(_0x409ba2,_0x480176,_0x9d6772[_0x331ec1]);}return __setModuleDefault(_0x409ba2,_0x480176),_0x409ba2;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x2b0a30(0x180)]=filterLs,exports[a0_0x2b0a30(0x1b7)]=filterTree,exports[a0_0x2b0a30(0x1da)]=filterCat,exports[a0_0x2b0a30(0x14e)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x2b0a30(0x178))),generic_1=require(a0_0x2b0a30(0x1dd)),tracker_1=require(a0_0x2b0a30(0x1de));function isFeatureEnabled(_0x3c8c84){const _0x37aadd=a0_0x2b0a30;try{const _0x31b229=tracker_1[_0x37aadd(0x1ad)][_0x37aadd(0x1cb)](),_0xeeb803=_0x31b229['features_enabled'];if(!_0xeeb803||_0xeeb803[_0x3c8c84]===undefined)return!![];return _0xeeb803[_0x3c8c84]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x2b0a30(0x156),'yarn.lock',a0_0x2b0a30(0x16d),'Cargo.lock','go.sum',a0_0x2b0a30(0x1b4),a0_0x2b0a30(0x1a5),a0_0x2b0a30(0x1a1),a0_0x2b0a30(0x192)],BINARY_EXTENSIONS=['.min.js',a0_0x2b0a30(0x1b5),a0_0x2b0a30(0x1a0),'.wasm','.png',a0_0x2b0a30(0x17b),a0_0x2b0a30(0x1b0),a0_0x2b0a30(0x18e),a0_0x2b0a30(0x1c7),a0_0x2b0a30(0x1be),a0_0x2b0a30(0x158),'.svg','.pdf','.zip',a0_0x2b0a30(0x1d1),'.tgz',a0_0x2b0a30(0x185),a0_0x2b0a30(0x1bc),a0_0x2b0a30(0x155),a0_0x2b0a30(0x1dc),a0_0x2b0a30(0x172),a0_0x2b0a30(0x157),a0_0x2b0a30(0x154),a0_0x2b0a30(0x198),a0_0x2b0a30(0x1d9),a0_0x2b0a30(0x1cd),a0_0x2b0a30(0x15e),a0_0x2b0a30(0x1c3),a0_0x2b0a30(0x164),a0_0x2b0a30(0x1db),a0_0x2b0a30(0x176),a0_0x2b0a30(0x18b),'.eot',a0_0x2b0a30(0x1ce),a0_0x2b0a30(0x163),a0_0x2b0a30(0x1ca),a0_0x2b0a30(0x17f),'.avi',a0_0x2b0a30(0x186),'.webm','.pyc',a0_0x2b0a30(0x183),'.class','.o',a0_0x2b0a30(0x191)];function extractFilename(_0x4ef697){const _0x5c603c=a0_0x2b0a30,_0x52ba4e=_0x4ef697[_0x5c603c(0x18d)]()[_0x5c603c(0x17a)](/\s+/);for(let _0x5dc5ff=0x1;_0x5dc5ff<_0x52ba4e['length'];_0x5dc5ff++){if(!_0x52ba4e[_0x5dc5ff][_0x5c603c(0x19b)]('-'))return _0x52ba4e[_0x5dc5ff];}return null;}function filterLockFile(_0x48a18e,_0x4959db){const _0x51394a=a0_0x2b0a30;try{const _0x1dca25=path['basename'](_0x4959db)[_0x51394a(0x167)]();if(!LOCK_FILES['some'](_0x48c975=>_0x1dca25===_0x48c975[_0x51394a(0x167)]()))return null;const _0x308865=_0x48a18e['length'];let _0x38a49d=0x0;if(_0x1dca25===_0x51394a(0x156))try{const _0x183396=JSON[_0x51394a(0x197)](_0x48a18e);_0x38a49d=Object['keys'](_0x183396[_0x51394a(0x19a)]||_0x183396['dependencies']||{})['length'];}catch{_0x38a49d=(_0x48a18e['match'](/"resolved":/g)||[])[_0x51394a(0x188)];}else{if(_0x1dca25===_0x51394a(0x177))_0x38a49d=(_0x48a18e[_0x51394a(0x199)](/^"?[^#\s][^:]*:$/gm)||[])[_0x51394a(0x188)];else{if(_0x1dca25==='cargo.lock'||_0x1dca25===_0x51394a(0x1b4))_0x38a49d=(_0x48a18e[_0x51394a(0x199)](/\[\[package\]\]/g)||[])[_0x51394a(0x188)];else{if(_0x1dca25===_0x51394a(0x1ab))_0x38a49d=Math[_0x51394a(0x1b1)](_0x48a18e[_0x51394a(0x17a)]('\x0a')[_0x51394a(0x16a)](_0x5a3ac6=>_0x5a3ac6[_0x51394a(0x18d)]())[_0x51394a(0x188)]/0x2);else{if(_0x1dca25===_0x51394a(0x1a5))try{_0x38a49d=JSON[_0x51394a(0x197)](_0x48a18e)[_0x51394a(0x19a)]?.[_0x51394a(0x188)]||0x0;}catch{}else _0x1dca25===_0x51394a(0x16d)?_0x38a49d=(_0x48a18e[_0x51394a(0x199)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x38a49d=_0x48a18e[_0x51394a(0x17a)]('\x0a')[_0x51394a(0x16a)](_0x5797a4=>_0x5797a4['trim']())['length'];}}}}return _0x51394a(0x18c)+path['basename'](_0x4959db)+':\x20'+_0x38a49d+_0x51394a(0x196)+_0x308865[_0x51394a(0x160)]()+_0x51394a(0x15b);}catch{return null;}}function filterBinaryOrMinified(_0xab6e39,_0x44a9b0){const _0x2d9155=a0_0x2b0a30;try{if(_0x44a9b0){const _0x648587=_0x44a9b0['toLowerCase']();for(const _0x54beb6 of BINARY_EXTENSIONS){if(_0x648587[_0x2d9155(0x1af)](_0x54beb6))return'[binary/minified\x20file]\x20'+path[_0x2d9155(0x1bb)](_0x44a9b0)+',\x20'+_0xab6e39['length'][_0x2d9155(0x160)]()+_0x2d9155(0x174)+_0x54beb6+_0x2d9155(0x182);}}const _0x5ac389=_0xab6e39[_0x2d9155(0x14d)](0x0,0x3e8);let _0x30f0fd=0x0;for(let _0x2f76a5=0x0;_0x2f76a5<_0x5ac389[_0x2d9155(0x188)];_0x2f76a5++){if(_0x5ac389[_0x2d9155(0x189)](_0x2f76a5)===0x0)_0x30f0fd++;}if(_0x30f0fd>0x0)return'[binary\x20file]\x20'+_0xab6e39['length']['toLocaleString']()+_0x2d9155(0x19e);let _0x1c9e8e=0x0;for(let _0x423101=0x0;_0x423101<_0x5ac389[_0x2d9155(0x188)];_0x423101++){const _0x4e617c=_0x5ac389[_0x2d9155(0x189)](_0x423101);if(_0x4e617c<0x20&&_0x4e617c!==0xa&&_0x4e617c!==0xd&&_0x4e617c!==0x9)_0x1c9e8e++;}if(_0x5ac389[_0x2d9155(0x188)]>0x64&&_0x1c9e8e>_0x5ac389[_0x2d9155(0x188)]*0.1)return'[binary\x20file]\x20'+_0xab6e39[_0x2d9155(0x188)][_0x2d9155(0x160)]()+_0x2d9155(0x150);const _0x56c24b=_0xab6e39[_0x2d9155(0x17a)]('\x0a');if(_0x56c24b[_0x2d9155(0x188)]<=0x3&&_0xab6e39['length']>0x1388)return _0x2d9155(0x1d4)+_0xab6e39[_0x2d9155(0x188)][_0x2d9155(0x160)]()+_0x2d9155(0x159)+_0x56c24b[_0x2d9155(0x188)]+_0x2d9155(0x170);return null;}catch{return null;}}function filterJsonMinify(_0xaca7a3){const _0x1eec30=a0_0x2b0a30;try{const _0x574eef=_0xaca7a3['trim']();if(!_0x574eef[_0x1eec30(0x19b)]('{')&&!_0x574eef[_0x1eec30(0x19b)]('['))return null;const _0x51d239=_0x574eef[_0x1eec30(0x17a)]('\x0a');if(_0x51d239['length']<=0x14)return null;const _0x285df4=JSON[_0x1eec30(0x197)](_0x574eef),_0x57c8f0=JSON['stringify'](_0x285df4);if(_0x57c8f0['length']<_0x574eef['length'])return _0x57c8f0;return null;}catch{return null;}}function filterLs(_0x5c289e){const _0xd33e0e=a0_0x2b0a30,_0x8d7574=_0x5c289e['split']('\x0a')[_0xd33e0e(0x16a)](_0x2ebdc7=>_0x2ebdc7['trim']()[_0xd33e0e(0x188)]>0x0);if(_0x8d7574[_0xd33e0e(0x188)]===0x0)return _0xd33e0e(0x165);if(_0x8d7574[_0xd33e0e(0x188)]<=0x1e)return _0x5c289e[_0xd33e0e(0x18d)]();const _0x4dbf7e=[],_0x23198f=[];for(const _0x1829d0 of _0x8d7574){const _0x5d507a=_0x1829d0[_0xd33e0e(0x18d)]();if(_0x5d507a[_0xd33e0e(0x19b)](_0xd33e0e(0x1c2))||_0x5d507a['startsWith']('d')&&_0x5d507a['includes']('..'))continue;_0x5d507a[_0xd33e0e(0x1af)]('/')||_0x5d507a[_0xd33e0e(0x19b)]('d')&&_0x5d507a['includes']('\x20')?_0x4dbf7e[_0xd33e0e(0x153)](_0x5d507a):_0x23198f[_0xd33e0e(0x153)](_0x5d507a);}const _0x486823=[];return _0x4dbf7e[_0xd33e0e(0x188)]>0x0&&(_0x4dbf7e['length']<=0xf?_0x486823[_0xd33e0e(0x153)](..._0x4dbf7e):(_0x486823[_0xd33e0e(0x153)](..._0x4dbf7e[_0xd33e0e(0x17c)](0x0,0xa)),_0x486823[_0xd33e0e(0x153)](_0xd33e0e(0x1c0)+(_0x4dbf7e['length']-0xa)+_0xd33e0e(0x1ac)))),_0x23198f[_0xd33e0e(0x188)]>0x0&&(_0x23198f[_0xd33e0e(0x188)]<=0x14?_0x486823[_0xd33e0e(0x153)](..._0x23198f):(_0x486823[_0xd33e0e(0x153)](..._0x23198f[_0xd33e0e(0x17c)](0x0,0xf)),_0x486823['push'](_0xd33e0e(0x1c0)+(_0x23198f[_0xd33e0e(0x188)]-0xf)+_0xd33e0e(0x1a2)))),_0x486823[_0xd33e0e(0x153)]('\x0a('+_0x4dbf7e['length']+_0xd33e0e(0x1d6)+_0x23198f[_0xd33e0e(0x188)]+_0xd33e0e(0x1b6)),_0x486823[_0xd33e0e(0x1d5)]('\x0a');}function filterTree(_0x1da0c1){const _0x4b0fe2=a0_0x2b0a30,_0x101d1c=_0x1da0c1[_0x4b0fe2(0x17a)]('\x0a');if(_0x101d1c[_0x4b0fe2(0x188)]<=0x32)return _0x1da0c1[_0x4b0fe2(0x18d)]();const _0x5bac10=[];let _0xf4b0e6=0x0,_0x4ec856=0x0,_0x840645=0x0;for(const _0x1b5ea4 of _0x101d1c){const _0x36b939=_0x1b5ea4[_0x4b0fe2(0x199)](/(\d+)\s+director/),_0x1cfa1f=_0x1b5ea4[_0x4b0fe2(0x199)](/(\d+)\s+file/);if(_0x36b939)_0x840645=parseInt(_0x36b939[0x1]);if(_0x1cfa1f)_0x4ec856=parseInt(_0x1cfa1f[0x1]);const _0x5b4af8=(_0x1b5ea4[_0x4b0fe2(0x199)](/^[│├└\s─]+/)||[''])[0x0][_0x4b0fe2(0x188)];_0x5b4af8<=0x4&&(_0x5bac10[_0x4b0fe2(0x153)](_0x1b5ea4),_0xf4b0e6++);}return _0x101d1c['length']>_0x5bac10['length']&&_0x5bac10[_0x4b0fe2(0x153)](_0x4b0fe2(0x162)+_0x840645+'\x20directories,\x20'+_0x4ec856+_0x4b0fe2(0x151)),_0x5bac10['join']('\x0a');}function filterCat(_0x1d55f2,_0x5c9283=''){const _0xade677=a0_0x2b0a30,_0x2b0e2f=extractFilename(_0x5c9283);try{if(_0x2b0e2f&&isFeatureEnabled('lock')){const _0x5b75a3=filterLockFile(_0x1d55f2,_0x2b0e2f);if(_0x5b75a3)return _0x5b75a3;}if(isFeatureEnabled(_0xade677(0x1c9))){const _0x23f8c0=filterBinaryOrMinified(_0x1d55f2,_0x2b0e2f);if(_0x23f8c0)return _0x23f8c0;}if(isFeatureEnabled(_0xade677(0x1b9))){const _0x297a3a=(0x0,generic_1[_0xade677(0x1a3)])(_0x1d55f2);if(_0x297a3a)return _0x297a3a;}const _0x18f626=filterJsonMinify(_0x1d55f2);if(_0x18f626)return _0x18f626;if(_0x2b0e2f&&isFeatureEnabled(_0xade677(0x1c1))){const _0x3a668c=path[_0xade677(0x17d)](_0x2b0e2f)[_0xade677(0x167)](),_0x8884c7=[_0xade677(0x1bd),_0xade677(0x1d7),_0xade677(0x17e),_0xade677(0x1cf),'.py',_0xade677(0x19d),_0xade677(0x173),_0xade677(0x1a7),'.c','.cpp',_0xade677(0x1c5),_0xade677(0x181),_0xade677(0x152),'.kt'];if(_0x8884c7['includes'](_0x3a668c)){const _0x5ab27c=_0x1d55f2[_0xade677(0x17a)]('\x0a');if(_0x5ab27c[_0xade677(0x188)]>0x64){const _0x3d18df=[];_0x3d18df['push'](_0xade677(0x16c)+path[_0xade677(0x1bb)](_0x2b0e2f)+'\x20('+_0x5ab27c[_0xade677(0x188)]+_0xade677(0x193)),_0x3d18df[_0xade677(0x153)]('');for(const _0x2da204 of _0x5ab27c){const _0x3ad3c5=_0x2da204['trim']();if(_0x3ad3c5[_0xade677(0x19b)](_0xade677(0x14f))||_0x3ad3c5[_0xade677(0x19b)]('from\x20')||_0x3ad3c5['startsWith'](_0xade677(0x1a8))||_0x3ad3c5[_0xade677(0x199)](/=\s*require\(/)||_0x3ad3c5[_0xade677(0x19b)](_0xade677(0x15d))||_0x3ad3c5[_0xade677(0x19b)](_0xade677(0x18f))||_0x3ad3c5['startsWith']('package\x20'))_0x3d18df[_0xade677(0x153)](_0x2da204);else{if(_0x3ad3c5['match'](/^(export\s+)?(async\s+)?function\s+/)||_0x3ad3c5[_0xade677(0x199)](/^(export\s+)?(default\s+)?class\s+/)||_0x3ad3c5[_0xade677(0x199)](/^(export\s+)?(type|interface|enum)\s+/)||_0x3ad3c5[_0xade677(0x199)](/^(async\s+)?def\s+/)||_0x3ad3c5[_0xade677(0x199)](/^func\s+/)||_0x3ad3c5[_0xade677(0x199)](/^type\s+\w+\s+(struct|interface)/)||_0x3ad3c5['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x3ad3c5[_0xade677(0x199)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x3ad3c5[_0xade677(0x199)](/^(public|private|protected|static)\s+/))_0x3d18df['push'](_0x2da204);else{if(_0x3ad3c5[_0xade677(0x19b)](_0xade677(0x18a))&&!_0x3ad3c5[_0xade677(0x166)]('=>')&&_0x3ad3c5['length']<0x78)_0x3d18df[_0xade677(0x153)](_0x2da204);else _0x3ad3c5[_0xade677(0x19b)]('@')&&!_0x3ad3c5['startsWith'](_0xade677(0x1b8))&&!_0x3ad3c5['startsWith']('@return')&&_0x3d18df['push'](_0x2da204);}}}_0x3d18df[_0xade677(0x153)](''),_0x3d18df[_0xade677(0x153)]('('+_0x5ab27c[_0xade677(0x188)]+_0xade677(0x19c)+(_0x3d18df['length']-0x2)+'\x20structural\x20lines\x20shown)');const _0x10c4da=_0x3d18df['join']('\x0a');if(_0x10c4da['length']<_0x1d55f2[_0xade677(0x188)])return _0x10c4da;}}}}catch{}let _0x81e9ee=(0x0,generic_1['collapseWhitespace'])(_0x1d55f2);if(_0x2b0e2f){const _0x412636=path[_0xade677(0x17d)](_0x2b0e2f)[_0xade677(0x167)]();_0x81e9ee=(0x0,generic_1[_0xade677(0x1b3)])(_0x81e9ee,_0x412636);}const _0x2299b7=_0x81e9ee[_0xade677(0x17a)]('\x0a');if(_0x2299b7[_0xade677(0x188)]<=0x64)return _0x81e9ee;const _0x5e164c=[];return _0x5e164c[_0xade677(0x153)](..._0x2299b7[_0xade677(0x17c)](0x0,0x32)),_0x5e164c[_0xade677(0x153)](_0xade677(0x171)+(_0x2299b7[_0xade677(0x188)]-0x50)+_0xade677(0x179)),_0x5e164c[_0xade677(0x153)](..._0x2299b7[_0xade677(0x17c)](-0x1e)),_0x5e164c['push']('\x0a('+_0x2299b7[_0xade677(0x188)]+_0xade677(0x169)),_0x5e164c[_0xade677(0x1d5)]('\x0a');}function a0_0x4144(_0x656bb5,_0xd769e3){_0x656bb5=_0x656bb5-0x14d;const _0xd24e52=a0_0xd24e();let _0x414401=_0xd24e52[_0x656bb5];return _0x414401;}function filterGrep(_0x2ffd00){const _0x5134f8=a0_0x2b0a30,_0x4f431e=_0x2ffd00[_0x5134f8(0x17a)]('\x0a')[_0x5134f8(0x16a)](_0x1c92ea=>_0x1c92ea[_0x5134f8(0x18d)]()[_0x5134f8(0x188)]>0x0);if(_0x4f431e[_0x5134f8(0x188)]===0x0)return _0x5134f8(0x195);if(_0x4f431e[_0x5134f8(0x188)]<=0x32)return _0x2ffd00[_0x5134f8(0x18d)]();const _0x363bf3={},_0xdc69a=[];for(const _0x1b8709 of _0x4f431e){const _0x17b8f1=_0x1b8709[_0x5134f8(0x1a9)](':');if(_0x17b8f1>0x0&&_0x17b8f1<0xc8){const _0x57d976=_0x1b8709['substring'](0x0,_0x17b8f1);if(_0x57d976[_0x5134f8(0x166)]('/')||_0x57d976['includes']('\x5c')||_0x57d976[_0x5134f8(0x166)]('.')){if(!_0x363bf3[_0x57d976])_0x363bf3[_0x57d976]=[];_0x363bf3[_0x57d976]['push'](_0x1b8709[_0x5134f8(0x14d)](_0x17b8f1+0x1)[_0x5134f8(0x18d)]());continue;}}_0xdc69a[_0x5134f8(0x153)](_0x1b8709);}const _0x2d10a4=[],_0x4d3c8b=Object[_0x5134f8(0x1ae)](_0x363bf3);if(_0x4d3c8b[_0x5134f8(0x188)]>0x0){const _0x463295=0x14,_0x579eee=_0x4d3c8b[_0x5134f8(0x17c)](0x0,_0x463295);for(const _0x2c78f0 of _0x579eee){const _0x44256f=_0x363bf3[_0x2c78f0];if(_0x44256f[_0x5134f8(0x188)]<=0x3)for(const _0x97cac7 of _0x44256f){_0x2d10a4['push'](_0x2c78f0+':\x20'+_0x97cac7);}else _0x2d10a4['push'](_0x2c78f0+':\x20'+_0x44256f[0x0]),_0x2d10a4[_0x5134f8(0x153)](_0x2c78f0+_0x5134f8(0x15a)+_0x44256f['length']+_0x5134f8(0x1d0));}_0x4d3c8b[_0x5134f8(0x188)]>_0x463295&&_0x2d10a4[_0x5134f8(0x153)](_0x5134f8(0x1c0)+(_0x4d3c8b[_0x5134f8(0x188)]-_0x463295)+_0x5134f8(0x1d2));}if(_0xdc69a['length']>0x0){const _0x5db571=0x1e;_0x2d10a4['push'](..._0xdc69a[_0x5134f8(0x17c)](0x0,_0x5db571)),_0xdc69a[_0x5134f8(0x188)]>_0x5db571&&_0x2d10a4[_0x5134f8(0x153)]('...\x20+'+(_0xdc69a['length']-_0x5db571)+_0x5134f8(0x19f));}const _0x165f48=_0x4f431e[_0x5134f8(0x188)];return _0x2d10a4['push']('\x0a('+_0x165f48+_0x5134f8(0x1d8)+(_0x4d3c8b[_0x5134f8(0x188)]||'?')+'\x20files)'),_0x2d10a4[_0x5134f8(0x1d5)]('\x0a');}function filterFind(_0xe15df){const _0x1cfaf0=a0_0x2b0a30,_0x3b8f06=_0xe15df[_0x1cfaf0(0x17a)]('\x0a')[_0x1cfaf0(0x16a)](_0x46c43f=>_0x46c43f[_0x1cfaf0(0x18d)]()[_0x1cfaf0(0x188)]>0x0);if(_0x3b8f06['length']===0x0)return _0x1cfaf0(0x16e);if(_0x3b8f06[_0x1cfaf0(0x188)]<=0x32)return _0xe15df[_0x1cfaf0(0x18d)]();const _0x3d3c8a={};for(const _0x2e4043 of _0x3b8f06){const _0x4744c0=path[_0x1cfaf0(0x1c8)](_0x2e4043[_0x1cfaf0(0x18d)]())||'.';_0x3d3c8a[_0x4744c0]=(_0x3d3c8a[_0x4744c0]||0x0)+0x1;}const _0xe36c3b=Object['entries'](_0x3d3c8a)[_0x1cfaf0(0x1c6)]((_0x10939f,_0x2da746)=>_0x2da746[0x1]-_0x10939f[0x1]),_0x16be58=[_0x3b8f06[_0x1cfaf0(0x188)]+'\x20files\x20found\x20across\x20'+_0xe36c3b[_0x1cfaf0(0x188)]+'\x20directories',''],_0x3a5376=0x1e;for(const [_0x1b26d6,_0x4028dd]of _0xe36c3b['slice'](0x0,_0x3a5376)){_0x16be58[_0x1cfaf0(0x153)]('\x20\x20'+_0x1b26d6+_0x1cfaf0(0x1ba)+_0x4028dd+_0x1cfaf0(0x1b6));}return _0xe36c3b[_0x1cfaf0(0x188)]>_0x3a5376&&_0x16be58['push'](_0x1cfaf0(0x1a4)+(_0xe36c3b['length']-_0x3a5376)+'\x20more\x20directories'),_0x16be58[_0x1cfaf0(0x1d5)]('\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,16 +771,16 @@
|
|
|
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' },
|
|
779
778
|
]},
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
],
|
|
779
|
+
// --- P — Proxy section hidden for now (interceptor not functional yet). Re-enable by uncommenting. ---
|
|
780
|
+
// { category: 'P — Proxy (Universal AI API Compression)', features: [
|
|
781
|
+
// { key: 'conv_compress', title: 'Conversation history compression', desc: 'Score old messages by importance, drop low-value ones. Via trim proxy', badges: ['Claude Code CLI','Codex CLI','Aider','Copilot CLI','SDK / curl'], statSub: 'on conversation', status: 'active' },
|
|
782
|
+
// { key: 'resp_optimize', title: 'Response length optimization', desc: 'Set optimal max_tokens per request based on task complexity. Via trim proxy', badges: ['Claude Code CLI','Codex CLI','Aider','Copilot CLI','SDK / curl'], statSub: 'on output', status: 'active' },
|
|
783
|
+
// ], hasProxyToggle: true },
|
|
784
784
|
];
|
|
785
785
|
|
|
786
786
|
let proxyRunning = false;
|
|
@@ -896,12 +896,7 @@
|
|
|
896
896
|
let html = '';
|
|
897
897
|
|
|
898
898
|
CSA_FEATURES.forEach(cat => {
|
|
899
|
-
|
|
900
|
-
html += `<div class="csa-category" style="display:flex;justify-content:space-between;align-items:center;">${cat.category}<span id="proxy-toggle-area">${lastProxyToggleHtml}</span></div>`;
|
|
901
|
-
html += `<div id="proxy-savings-card">${lastProxySavingsHtml}</div>`;
|
|
902
|
-
} else {
|
|
903
|
-
html += `<div class="csa-category">${cat.category}</div>`;
|
|
904
|
-
}
|
|
899
|
+
html += `<div class="csa-category">${cat.category}</div>`;
|
|
905
900
|
cat.features.forEach(f => {
|
|
906
901
|
const isSoon = f.status === 'soon';
|
|
907
902
|
const isOff = f.status === 'off';
|
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();}
|