trimprompt 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cache-manager.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/file-watcher.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/hooks/claude-hook.js +1 -1
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/postinstall.js +24 -3
- package/proxy-conv.js +1 -1
- package/proxy-resp.js +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/generic.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x1c293d=a0_0x1220;(function(_0x6fcfbc,_0x234632){const _0x44d922=a0_0x1220,_0x3b567a=_0x6fcfbc();while(!![]){try{const _0x32ed41=parseInt(_0x44d922(0x198))/0x1+parseInt(_0x44d922(0x195))/0x2+-parseInt(_0x44d922(0x187))/0x3*(parseInt(_0x44d922(0x1aa))/0x4)+parseInt(_0x44d922(0x1a2))/0x5+parseInt(_0x44d922(0x18d))/0x6+parseInt(_0x44d922(0x194))/0x7+parseInt(_0x44d922(0x180))/0x8*(-parseInt(_0x44d922(0x18e))/0x9);if(_0x32ed41===_0x234632)break;else _0x3b567a['push'](_0x3b567a['shift']());}catch(_0x544299){_0x3b567a['push'](_0x3b567a['shift']());}}}(a0_0x3a4f,0xbb69e));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x1c293d(0x19f)]=collapseDuplicates,exports[a0_0x1c293d(0x1ab)]=collapseWhitespace,exports[a0_0x1c293d(0x19a)]=stripComments,exports[a0_0x1c293d(0x18b)]=smartCrushJson,exports[a0_0x1c293d(0x1a3)]=softTruncate;function stripAnsi(_0x49ea6e){const _0x10e46c=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x49ea6e['replace'](_0x10e46c,'');}function collapseDuplicates(_0xe8c5be){const _0x1f76c9=a0_0x1c293d,_0x50f37e=_0xe8c5be[_0x1f76c9(0x19e)]('\x0a');if(_0x50f37e[_0x1f76c9(0x1a6)]<=0x1)return _0xe8c5be;const _0x449198=[];let _0x46f21f=_0x50f37e[0x0],_0x25faa8=0x1;for(let _0x213cae=0x1;_0x213cae<_0x50f37e['length'];_0x213cae++){const _0x27719b=_0x50f37e[_0x213cae];_0x27719b===_0x46f21f&&_0x27719b[_0x1f76c9(0x185)]()[_0x1f76c9(0x1a6)]>0x0?_0x25faa8++:(_0x25faa8>0x1?_0x449198['push'](_0x46f21f+_0x1f76c9(0x193)+_0x25faa8+']'):_0x449198[_0x1f76c9(0x184)](_0x46f21f),_0x46f21f=_0x27719b,_0x25faa8=0x1);}return _0x25faa8>0x1?_0x449198[_0x1f76c9(0x184)](_0x46f21f+_0x1f76c9(0x193)+_0x25faa8+']'):_0x449198[_0x1f76c9(0x184)](_0x46f21f),_0x449198['join']('\x0a');}function collapseWhitespace(_0x50d8a0){const _0x29bba2=a0_0x1c293d;let _0x44be3d=_0x50d8a0[_0x29bba2(0x183)](/[ \t]+$/gm,'');return _0x44be3d=_0x44be3d[_0x29bba2(0x183)](/\n{4,}/g,_0x29bba2(0x192)),_0x44be3d;}function stripComments(_0x536860,_0x455abe){const _0x397615=a0_0x1c293d;if(!_0x455abe)return _0x536860;const _0x963e72=_0x536860[_0x397615(0x19e)]('\x0a');if(_0x963e72['length']<=0x96)return _0x536860;const _0x9d9cc6={'.ts':/^\s*\/\//,'.js':/^\s*\/\//,'.tsx':/^\s*\/\//,'.jsx':/^\s*\/\//,'.py':/^\s*#(?!!)/,'.rb':/^\s*#(?!!)/,'.sh':/^\s*#(?!!)/,'.go':/^\s*\/\//,'.rs':/^\s*\/\//,'.java':/^\s*\/\//,'.c':/^\s*\/\//,'.cpp':/^\s*\/\//,'.cs':/^\s*\/\//,'.swift':/^\s*\/\//,'.kt':/^\s*\/\//,'.yaml':/^\s*#(?!!)/,'.yml':/^\s*#(?!!)/},_0x20cf52=_0x9d9cc6[_0x455abe[_0x397615(0x1a9)]()];if(!_0x20cf52)return _0x536860;const _0x10d2f3=_0x963e72[_0x397615(0x1a0)](_0x4fd71b=>!_0x20cf52[_0x397615(0x191)](_0x4fd71b));return _0x10d2f3[_0x397615(0x1a7)]('\x0a');}function a0_0x1220(_0x2979fa,_0x36d250){_0x2979fa=_0x2979fa-0x180;const _0x3a4f16=a0_0x3a4f();let _0x12203f=_0x3a4f16[_0x2979fa];return _0x12203f;}function smartCrushJson(_0x3bdf5f){const _0x311345=a0_0x1c293d;try{const _0x305eb4=_0x3bdf5f['trim']();if(!_0x305eb4[_0x311345(0x181)]('['))return null;const _0x519116=JSON['parse'](_0x305eb4);if(!Array[_0x311345(0x18f)](_0x519116)||_0x519116[_0x311345(0x1a6)]<0x3)return null;if(typeof _0x519116[0x0]!==_0x311345(0x1a4)||_0x519116[0x0]===null)return null;const _0x3a3702=Object[_0x311345(0x18a)](_0x519116[0x0]);if(_0x3a3702[_0x311345(0x1a6)]===0x0)return null;const _0x45f2d8=_0x3a3702[_0x311345(0x1a0)](_0x74adc6=>{const _0x27e652=_0x311345,_0xc3c4c9=_0x74adc6[_0x27e652(0x1a9)]();return!_0xc3c4c9['includes']('resolved')&&!_0xc3c4c9[_0x27e652(0x1ac)]('integrity')&&!_0xc3c4c9[_0x27e652(0x1ac)](_0x27e652(0x18c))&&!_0xc3c4c9[_0x27e652(0x1ac)](_0x27e652(0x19c))&&!_0xc3c4c9['includes']('checksum')&&!_0xc3c4c9['includes'](_0x27e652(0x19d))&&!_0xc3c4c9[_0x27e652(0x1ac)](_0x27e652(0x190))&&_0xc3c4c9!==_0x27e652(0x19b)&&_0xc3c4c9!==_0x27e652(0x199)&&_0xc3c4c9!=='bugs'&&_0xc3c4c9!=='repository';})[_0x311345(0x196)](0x0,0x6);if(_0x45f2d8[_0x311345(0x1a6)]===0x0)return null;const _0x1df7a5=[];_0x1df7a5[_0x311345(0x184)](_0x45f2d8[_0x311345(0x1a7)]('|'));const _0x46942a=0x1e;for(let _0x171fa9=0x0;_0x171fa9<Math['min'](_0x519116[_0x311345(0x1a6)],_0x46942a);_0x171fa9++){const _0x5da556=_0x45f2d8[_0x311345(0x186)](_0x7b83de=>{const _0x2a65da=_0x311345,_0x2675e4=_0x519116[_0x171fa9][_0x7b83de];if(_0x2675e4===null||_0x2675e4===undefined)return'';if(typeof _0x2675e4==='object')return JSON[_0x2a65da(0x1a1)](_0x2675e4)[_0x2a65da(0x188)](0x0,0x28);return String(_0x2675e4)[_0x2a65da(0x188)](0x0,0x3c);});_0x1df7a5['push'](_0x5da556[_0x311345(0x1a7)]('|'));}_0x519116[_0x311345(0x1a6)]>_0x46942a&&_0x1df7a5[_0x311345(0x184)](_0x311345(0x189)+(_0x519116[_0x311345(0x1a6)]-_0x46942a)+'\x20more\x20rows');_0x1df7a5['push']('\x0a('+_0x519116[_0x311345(0x1a6)]+_0x311345(0x1a5)+_0x3a3702[_0x311345(0x1a6)]+'\x20fields,\x20showing\x20'+_0x45f2d8[_0x311345(0x1a6)]+_0x311345(0x197));const _0x3a26cf=_0x1df7a5[_0x311345(0x1a7)]('\x0a');if(_0x3a26cf[_0x311345(0x1a6)]<_0x305eb4[_0x311345(0x1a6)])return _0x3a26cf;return null;}catch{return null;}}function a0_0x3a4f(){const _0x454281=['toLowerCase','28IXNStv','collapseWhitespace','includes','16810888AzXFjd','startsWith','\x20characters\x20of\x20output]\x20...\x0a','replace','push','trim','map','235905xLHFsV','substring','...\x20+','keys','smartCrushJson','sha','210168zhNhWg','9maPCAH','isArray','dev','test','\x0a\x0a\x0a','\x20[x','10168564WFGJYL','1375286mVYGgR','slice','\x20key\x20fields)','457366ZPpYzV','engines','stripComments','funding','hash','signature','split','collapseDuplicates','filter','stringify','3933815uaKRYO','softTruncate','object','\x20items,\x20','length','join','\x0a...\x20[TrimPrompt:\x20Truncated\x20'];a0_0x3a4f=function(){return _0x454281;};return a0_0x3a4f();}function softTruncate(_0x14f932,_0x24121c=0x4e20){const _0x30334e=a0_0x1c293d;if(_0x14f932[_0x30334e(0x1a6)]<=_0x24121c)return _0x14f932;const _0xac5137=_0x14f932['split']('\x0a');if(_0xac5137['length']<=0xc8)return _0x14f932;const _0x31c570=0x32,_0x3653dd=0x96,_0x56a881=_0xac5137['slice'](0x0,_0x31c570),_0x1b82c0=_0xac5137[_0x30334e(0x196)](_0xac5137['length']-_0x3653dd),_0x29f20c=_0x14f932[_0x30334e(0x1a6)]-(_0x56a881['join']('\x0a')[_0x30334e(0x1a6)]+_0x1b82c0[_0x30334e(0x1a7)]('\x0a')[_0x30334e(0x1a6)]);return[..._0x56a881,_0x30334e(0x1a8)+_0x29f20c+_0x30334e(0x182),..._0x1b82c0][_0x30334e(0x1a7)]('\x0a');}
|
package/filters/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x34355b=a0_0x2059;(function(_0x1f9d01,_0x5a0c0f){const _0x4c0bf4=a0_0x2059,_0x6a432f=_0x1f9d01();while(!![]){try{const _0x280c8c=-parseInt(_0x4c0bf4(0xfa))/0x1+-parseInt(_0x4c0bf4(0x108))/0x2*(-parseInt(_0x4c0bf4(0x11a))/0x3)+parseInt(_0x4c0bf4(0x103))/0x4*(-parseInt(_0x4c0bf4(0x102))/0x5)+-parseInt(_0x4c0bf4(0x117))/0x6*(-parseInt(_0x4c0bf4(0x129))/0x7)+parseInt(_0x4c0bf4(0x10c))/0x8*(-parseInt(_0x4c0bf4(0x119))/0x9)+parseInt(_0x4c0bf4(0x127))/0xa*(parseInt(_0x4c0bf4(0x104))/0xb)+-parseInt(_0x4c0bf4(0x10e))/0xc;if(_0x280c8c===_0x5a0c0f)break;else _0x6a432f['push'](_0x6a432f['shift']());}catch(_0xc1c504){_0x6a432f['push'](_0x6a432f['shift']());}}}(a0_0x4f81,0x55715));function a0_0x4f81(){const _0x2c6229=['83265MnCqWm','push','length','filter','__esModule','No\x20modifications','configurable','__createBinding','1650QFelYg','6796XRiYDp','2553155dYaCeg','/\x20(','path','\x20(+','310750sYQEEU','getOwnPropertyDescriptor','substring','get','566136IoOXNQ','writable','2256072LSzGtQ','*\x20Branch:\x20','trim','diff\x20--git','slice','create','join','map','---','231690BjlOPX','filterGitDiff','27TsDrrV','12YTbZCl','prototype','dirname','\x20\x20...\x20+','\x20lines\x20of\x20description)','replace','---END---','\x0aUntracked\x20files:','split','basename','[file]\x20','defineProperty','\x0aChanges:','10wyKwJU','filterGitLog','98RCesDn','startsWith','__importStar','call','\x20\x20??\x20'];a0_0x4f81=function(){return _0x2c6229;};return a0_0x4f81();}var __createBinding=this&&this[a0_0x34355b(0x101)]||(Object[a0_0x34355b(0x113)]?function(_0x929efc,_0x141136,_0x29bdb2,_0x3b88ba){const _0x2babc1=a0_0x34355b;if(_0x3b88ba===undefined)_0x3b88ba=_0x29bdb2;var _0x22b809=Object[_0x2babc1(0x109)](_0x141136,_0x29bdb2);(!_0x22b809||(_0x2babc1(0x10b)in _0x22b809?!_0x141136[_0x2babc1(0xfe)]:_0x22b809[_0x2babc1(0x10d)]||_0x22b809[_0x2babc1(0x100)]))&&(_0x22b809={'enumerable':!![],'get':function(){return _0x141136[_0x29bdb2];}}),Object[_0x2babc1(0x125)](_0x929efc,_0x3b88ba,_0x22b809);}:function(_0xead4dd,_0x51ebbc,_0xf7a9d3,_0xa0214b){if(_0xa0214b===undefined)_0xa0214b=_0xf7a9d3;_0xead4dd[_0xa0214b]=_0x51ebbc[_0xf7a9d3];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0xc35c38,_0x422b97){Object['defineProperty'](_0xc35c38,'default',{'enumerable':!![],'value':_0x422b97});}:function(_0x598440,_0x517e65){_0x598440['default']=_0x517e65;}),__importStar=this&&this[a0_0x34355b(0x12b)]||(function(){var _0x3e4a27=function(_0x3f830d){return _0x3e4a27=Object['getOwnPropertyNames']||function(_0x5cfbe7){const _0x35b0a4=a0_0x2059;var _0x39470c=[];for(var _0x2e80be in _0x5cfbe7)if(Object[_0x35b0a4(0x11b)]['hasOwnProperty'][_0x35b0a4(0xf8)](_0x5cfbe7,_0x2e80be))_0x39470c[_0x39470c[_0x35b0a4(0xfc)]]=_0x2e80be;return _0x39470c;},_0x3e4a27(_0x3f830d);};return function(_0x38bdb5){const _0x359b00=a0_0x2059;if(_0x38bdb5&&_0x38bdb5['__esModule'])return _0x38bdb5;var _0x357348={};if(_0x38bdb5!=null){for(var _0x27412b=_0x3e4a27(_0x38bdb5),_0x1bdc2b=0x0;_0x1bdc2b<_0x27412b[_0x359b00(0xfc)];_0x1bdc2b++)if(_0x27412b[_0x1bdc2b]!=='default')__createBinding(_0x357348,_0x38bdb5,_0x27412b[_0x1bdc2b]);}return __setModuleDefault(_0x357348,_0x38bdb5),_0x357348;};}());Object[a0_0x34355b(0x125)](exports,a0_0x34355b(0xfe),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x34355b(0x128)]=filterGitLog,exports[a0_0x34355b(0x118)]=filterGitDiff;function a0_0x2059(_0x503f31,_0x5c3671){_0x503f31=_0x503f31-0xf8;const _0x4f8153=a0_0x4f81();let _0x205908=_0x4f8153[_0x503f31];return _0x205908;}const path=__importStar(require(a0_0x34355b(0x106)));function filterGitStatus(_0xb1ca3e){const _0x5a7522=a0_0x34355b,_0x1516f7=_0xb1ca3e[_0x5a7522(0x122)]('\x0a')[_0x5a7522(0x115)](_0x5ad54e=>_0x5ad54e[_0x5a7522(0x110)]())[_0x5a7522(0xfd)](_0x19cbf9=>_0x19cbf9['length']>0x0);if(_0x1516f7[_0x5a7522(0xfc)]===0x0)return'Clean\x20working\x20tree';const _0x36e508=[],_0xcbaba7=[],_0x47e0a0=[];for(const _0x449ab6 of _0x1516f7){if(_0x449ab6['startsWith']('##')){const _0x4c97a7=_0x449ab6[_0x5a7522(0x11f)](/^##\s*/,'');_0x36e508[_0x5a7522(0xfb)](_0x5a7522(0x10f)+_0x4c97a7);}else _0x449ab6['startsWith']('??')?_0xcbaba7[_0x5a7522(0xfb)](_0x449ab6[_0x5a7522(0x10a)](0x3)[_0x5a7522(0x110)]()):_0x47e0a0[_0x5a7522(0xfb)](_0x449ab6);}_0x47e0a0['length']>0x0&&(_0x36e508[_0x5a7522(0xfb)](_0x5a7522(0x126)),_0x36e508[_0x5a7522(0xfb)](..._0x47e0a0[_0x5a7522(0x115)](_0x32061d=>'\x20\x20'+_0x32061d)));if(_0xcbaba7[_0x5a7522(0xfc)]>0x0){_0x36e508['push'](_0x5a7522(0x121));const _0x4f5784={},_0x533a1c=[];for(const _0x4c4c4a of _0xcbaba7){const _0x141406=path[_0x5a7522(0x11c)](_0x4c4c4a);_0x141406==='.'||_0x141406===''?_0x533a1c[_0x5a7522(0xfb)](_0x4c4c4a):(!_0x4f5784[_0x141406]&&(_0x4f5784[_0x141406]=[]),_0x4f5784[_0x141406]['push'](path[_0x5a7522(0x123)](_0x4c4c4a)));}for(const [_0x2c74ce,_0x867627]of Object['entries'](_0x4f5784)){if(_0x867627[_0x5a7522(0xfc)]>0x5)_0x36e508[_0x5a7522(0xfb)](_0x5a7522(0xf9)+_0x2c74ce+_0x5a7522(0x105)+_0x867627[_0x5a7522(0xfc)]+'\x20untracked\x20files)');else for(const _0x23d01c of _0x867627){_0x36e508[_0x5a7522(0xfb)](_0x5a7522(0xf9)+path['join'](_0x2c74ce,_0x23d01c));}}for(const _0xc0eaec of _0x533a1c){_0x36e508[_0x5a7522(0xfb)](_0x5a7522(0xf9)+_0xc0eaec);}}return _0x36e508[_0x5a7522(0x114)]('\x0a');}function filterGitLog(_0x27370e){const _0x8c9f3=a0_0x34355b,_0x342767=_0x27370e['split'](_0x8c9f3(0x120))[_0x8c9f3(0x115)](_0x1c4e70=>_0x1c4e70['trim']())[_0x8c9f3(0xfd)](_0x2bd45b=>_0x2bd45b[_0x8c9f3(0xfc)]>0x0);if(_0x342767[_0x8c9f3(0xfc)]===0x0)return _0x27370e;const _0x1e9855=[];for(const _0x162339 of _0x342767){const _0x25e271=_0x162339[_0x8c9f3(0x122)]('\x0a'),_0x11e5fd=_0x25e271[0x0]||'',_0x2640e7=_0x25e271[_0x8c9f3(0x112)](0x1)[_0x8c9f3(0x115)](_0x16e604=>_0x16e604[_0x8c9f3(0x110)]())[_0x8c9f3(0xfd)](_0x508342=>_0x508342['length']>0x0);_0x1e9855['push']('-\x20'+_0x11e5fd),_0x2640e7[_0x8c9f3(0xfc)]>0x0&&(_0x1e9855[_0x8c9f3(0xfb)]('\x20\x20'+_0x2640e7[0x0]),_0x2640e7[_0x8c9f3(0xfc)]>0x1&&_0x1e9855['push']('\x20\x20...\x20(+'+(_0x2640e7[_0x8c9f3(0xfc)]-0x1)+_0x8c9f3(0x11e)));}return _0x1e9855[_0x8c9f3(0x114)]('\x0a');}function filterGitDiff(_0x121121){const _0x594f77=a0_0x34355b,_0x843192=_0x121121['split']('\x0a'),_0x96d373=[];let _0x288dd3='',_0x5ea792=0x0,_0x4d4f47=0x0,_0x3e21ca=[];const _0xdbeb96=()=>{const _0x32e7e8=a0_0x2059;if(_0x288dd3&&(_0x5ea792>0x0||_0x4d4f47>0x0)){_0x96d373[_0x32e7e8(0xfb)](_0x32e7e8(0x124)+_0x288dd3+_0x32e7e8(0x107)+_0x5ea792+'\x20-'+_0x4d4f47+')');const _0x522d76=0xa,_0x538873=_0x3e21ca['slice'](0x0,_0x522d76);for(const _0x245c8a of _0x538873){_0x96d373['push']('\x20\x20'+_0x245c8a);}const _0x2757e4=_0x5ea792+_0x4d4f47-_0x522d76;_0x2757e4>0x0&&_0x96d373['push'](_0x32e7e8(0x11d)+_0x2757e4+'\x20more\x20modifications');}_0x5ea792=0x0,_0x4d4f47=0x0,_0x3e21ca=[];};for(const _0xa0ebaa of _0x843192){if(_0xa0ebaa[_0x594f77(0x12a)](_0x594f77(0x111))){_0xdbeb96();const _0x3e6e20=_0xa0ebaa['match'](/\sb\/(.+)$/);_0x288dd3=_0x3e6e20?_0x3e6e20[0x1]:'unknown_file';}else{if(_0xa0ebaa[_0x594f77(0x12a)]('+')&&!_0xa0ebaa[_0x594f77(0x12a)]('+++'))_0x5ea792++,_0x3e21ca['push'](_0xa0ebaa);else _0xa0ebaa[_0x594f77(0x12a)]('-')&&!_0xa0ebaa[_0x594f77(0x12a)](_0x594f77(0x116))&&(_0x4d4f47++,_0x3e21ca[_0x594f77(0xfb)](_0xa0ebaa));}}_0xdbeb96();const _0x1983ef=_0x96d373['join']('\x0a');return _0x1983ef[_0x594f77(0xfc)]>0x0?_0x1983ef:_0x594f77(0xff);}
|
package/filters/go.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0xe1aeee=a0_0x2cfb;(function(_0x5c61aa,_0x106809){const _0x43b6b7=a0_0x2cfb,_0x531f04=_0x5c61aa();while(!![]){try{const _0x25d938=parseInt(_0x43b6b7(0x163))/0x1+parseInt(_0x43b6b7(0x171))/0x2*(parseInt(_0x43b6b7(0x15b))/0x3)+parseInt(_0x43b6b7(0x14f))/0x4+parseInt(_0x43b6b7(0x159))/0x5+parseInt(_0x43b6b7(0x160))/0x6+-parseInt(_0x43b6b7(0x151))/0x7+-parseInt(_0x43b6b7(0x167))/0x8;if(_0x25d938===_0x106809)break;else _0x531f04['push'](_0x531f04['shift']());}catch(_0x9403ef){_0x531f04['push'](_0x531f04['shift']());}}}(a0_0x1b56,0xa8bc8));function a0_0x1b56(){const _0x52785a=['\x20more\x20failures','===\x20RUN','trim','includes','836400osIayo','\x20passed','8718738kllhxW','\x20more\x20lines','filter','\x20passed,\x20','slice','match','\x20skipped','filterGoVet','5757285YUlIKF','defineProperty','1194759oDyQjp','...\x20+','Go\x20test:\x20','FAIL','__esModule','4704336HRXGMP','no\x20test\x20files','filterGoTest','172421KzRRuy','join','push','\x20failed,\x20','9414896eKiVii','split','length','Go\x20test:\x20no\x20test\x20files','\x20\x20\x20\x20','Go\x20vet:\x20no\x20issues\x20found','PASS','lines','\x20\x20\x20\x20...\x20+','\x0aFailures:','4EGFjdl','startsWith'];a0_0x1b56=function(){return _0x52785a;};return a0_0x1b56();}function a0_0x2cfb(_0x16db96,_0x329644){_0x16db96=_0x16db96-0x14a;const _0x1b56b1=a0_0x1b56();let _0x2cfb29=_0x1b56b1[_0x16db96];return _0x2cfb29;}Object[a0_0xe1aeee(0x15a)](exports,a0_0xe1aeee(0x15f),{'value':!![]}),exports[a0_0xe1aeee(0x162)]=filterGoTest,exports[a0_0xe1aeee(0x158)]=filterGoVet;function filterGoTest(_0x546aca){const _0x1369c1=a0_0xe1aeee,_0x31def3=_0x546aca['split']('\x0a');let _0x5c2aae=0x0,_0x1adaab=0x0,_0x135663=0x0;const _0x1e551b=[],_0x5c3ba6=[];let _0x296718=null;for(const _0x51a365 of _0x31def3){const _0x4d310d=_0x51a365[_0x1369c1(0x14d)](),_0x54711f=_0x4d310d['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x54711f){_0x5c3ba6[_0x1369c1(0x165)](_0x4d310d);continue;}const _0x1ea09d=_0x4d310d['match'](/^FAIL\s+\S+/);if(_0x1ea09d){_0x5c3ba6[_0x1369c1(0x165)](_0x4d310d);continue;}const _0x4d4565=_0x4d310d[_0x1369c1(0x156)](/^--- PASS:/);if(_0x4d4565){_0x5c2aae++;continue;}const _0xa11350=_0x4d310d[_0x1369c1(0x156)](/^--- FAIL:\s+(\S+)/);if(_0xa11350){if(_0x296718)_0x1e551b['push'](_0x296718);_0x296718={'name':_0xa11350[0x1],'lines':[]},_0x1adaab++;continue;}if(_0x4d310d[_0x1369c1(0x14a)]('---\x20SKIP:')){_0x135663++;continue;}_0x296718&&_0x4d310d['length']>0x0&&!_0x4d310d['startsWith']('===\x20RUN')&&_0x296718['lines'][_0x1369c1(0x165)](_0x51a365),_0x4d310d[_0x1369c1(0x14a)](_0x1369c1(0x14c))&&(_0x296718&&(_0x1e551b[_0x1369c1(0x165)](_0x296718),_0x296718=null));}if(_0x296718)_0x1e551b[_0x1369c1(0x165)](_0x296718);if(_0x5c2aae===0x0&&_0x1adaab===0x0&&_0x135663===0x0){if(_0x546aca[_0x1369c1(0x14e)](_0x1369c1(0x16d))&&!_0x546aca[_0x1369c1(0x14e)](_0x1369c1(0x15e)))return'Go\x20test:\x20all\x20tests\x20passed';if(_0x546aca['includes'](_0x1369c1(0x161)))return _0x1369c1(0x16a);return _0x546aca;}if(_0x1adaab===0x0){const _0x32c6e3=['Go\x20test:\x20'+_0x5c2aae+_0x1369c1(0x150)];if(_0x135663>0x0)_0x32c6e3[_0x1369c1(0x165)](_0x135663+_0x1369c1(0x157));return _0x32c6e3['join'](',\x20');}const _0x496e95=[_0x1369c1(0x15d)+_0x5c2aae+_0x1369c1(0x154)+_0x1adaab+_0x1369c1(0x166)+_0x135663+'\x20skipped'];if(_0x1e551b['length']>0x0){_0x496e95[_0x1369c1(0x165)](_0x1369c1(0x170));const _0x54c1bc=0x3;for(let _0xe120c7=0x0;_0xe120c7<Math['min'](_0x1e551b['length'],_0x54c1bc);_0xe120c7++){const _0x132ce5=_0x1e551b[_0xe120c7];_0x496e95[_0x1369c1(0x165)]('\x20\x20'+(_0xe120c7+0x1)+'.\x20'+_0x132ce5['name']);for(const _0x49bc0c of _0x132ce5['lines']['slice'](0x0,0x5)){_0x496e95['push'](_0x1369c1(0x16b)+_0x49bc0c[_0x1369c1(0x14d)]());}_0x132ce5[_0x1369c1(0x16e)][_0x1369c1(0x169)]>0x5&&_0x496e95[_0x1369c1(0x165)](_0x1369c1(0x16f)+(_0x132ce5[_0x1369c1(0x16e)][_0x1369c1(0x169)]-0x5)+_0x1369c1(0x152));}_0x1e551b[_0x1369c1(0x169)]>_0x54c1bc&&_0x496e95[_0x1369c1(0x165)]('\x20\x20...\x20+'+(_0x1e551b[_0x1369c1(0x169)]-_0x54c1bc)+_0x1369c1(0x14b));}return _0x496e95[_0x1369c1(0x164)]('\x0a');}function filterGoVet(_0x4427a7){const _0x29fc57=a0_0xe1aeee,_0x4138c3=_0x4427a7[_0x29fc57(0x168)]('\x0a')[_0x29fc57(0x153)](_0x36bb64=>_0x36bb64[_0x29fc57(0x14d)]()[_0x29fc57(0x169)]>0x0);if(_0x4138c3[_0x29fc57(0x169)]===0x0)return _0x29fc57(0x16c);if(_0x4138c3['length']<=0x14)return _0x4427a7['trim']();const _0x183f4c=['Go\x20vet:\x20'+_0x4138c3[_0x29fc57(0x169)]+'\x20issues\x20found'];return _0x183f4c['push'](..._0x4138c3[_0x29fc57(0x155)](0x0,0xa)),_0x4138c3[_0x29fc57(0x169)]>0xa&&_0x183f4c[_0x29fc57(0x165)](_0x29fc57(0x15c)+(_0x4138c3['length']-0xa)+'\x20more\x20issues'),_0x183f4c[_0x29fc57(0x164)]('\x0a');}
|
package/filters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x435292=a0_0x257b;(function(_0x18c151,_0x579bd3){const _0x3abecd=a0_0x257b,_0x170069=_0x18c151();while(!![]){try{const _0x551e75=parseInt(_0x3abecd(0x258))/0x1*(-parseInt(_0x3abecd(0x246))/0x2)+-parseInt(_0x3abecd(0x242))/0x3+-parseInt(_0x3abecd(0x1ff))/0x4*(-parseInt(_0x3abecd(0x20d))/0x5)+-parseInt(_0x3abecd(0x235))/0x6+-parseInt(_0x3abecd(0x234))/0x7*(-parseInt(_0x3abecd(0x203))/0x8)+-parseInt(_0x3abecd(0x250))/0x9*(parseInt(_0x3abecd(0x21d))/0xa)+parseInt(_0x3abecd(0x221))/0xb;if(_0x551e75===_0x579bd3)break;else _0x170069['push'](_0x170069['shift']());}catch(_0x30f41b){_0x170069['push'](_0x170069['shift']());}}}(a0_0x101d,0x7ef85));Object[a0_0x435292(0x217)](exports,a0_0x435292(0x1ef),{'value':!![]}),exports['lastFeatures']=exports[a0_0x435292(0x22a)]=void 0x0,exports[a0_0x435292(0x241)]=compressOutput,exports[a0_0x435292(0x230)]=rewriteCommand;const generic_1=require(a0_0x435292(0x233)),git_1=require(a0_0x435292(0x220)),python_1=require(a0_0x435292(0x20f)),js_1=require(a0_0x435292(0x23b)),shell_1=require('./shell'),rust_1=require(a0_0x435292(0x215)),go_1=require(a0_0x435292(0x21e)),devops_1=require(a0_0x435292(0x208)),redactor_1=require('../redactor'),tracker_1=require('../tracker');exports[a0_0x435292(0x22a)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x435292(0x1f9)]=[];function isFeatureEnabled(_0x432c78){const _0x10deb9=a0_0x435292;try{const _0xcbf01a=tracker_1[_0x10deb9(0x24f)][_0x10deb9(0x257)](),_0x287b20=_0xcbf01a['features_enabled'];if(!_0x287b20||_0x287b20[_0x432c78]===undefined)return!![];return _0x287b20[_0x432c78]!==![];}catch{return!![];}}function compressOutput(_0x3e8902,_0x2a37b9,_0x3bb29c,_0x219d42=!![]){const _0x4c2663=a0_0x435292,_0x298a55=_0x3e8902[_0x4c2663(0x228)]();let _0x264969=_0x2a37b9;_0x3bb29c[_0x4c2663(0x228)]()[_0x4c2663(0x207)]>0x0&&(_0x264969=_0x2a37b9+'\x0a'+_0x3bb29c);let _0x302439=isFeatureEnabled(_0x4c2663(0x216))?(0x0,generic_1[_0x4c2663(0x205)])(_0x264969):_0x264969;const _0x187491=[];if(_0x302439['length']<_0x264969[_0x4c2663(0x207)])_0x187491['push']('ansi_strip');const _0x2579b3=(_0x8a3ef8,_0x8ac28a)=>{const _0x37bfc7=_0x4c2663;return _0x187491[_0x37bfc7(0x23d)](_0x8a3ef8),exports[_0x37bfc7(0x1f9)]=_0x187491,_0x8ac28a;};if(_0x219d42&&isFeatureEnabled('redact')){const _0x57c443=redactor_1[_0x4c2663(0x23e)][_0x4c2663(0x251)](_0x302439);_0x302439=_0x57c443['text'],exports[_0x4c2663(0x22a)]={'secretsFound':_0x57c443[_0x4c2663(0x21a)],'secretTypes':_0x57c443[_0x4c2663(0x1f0)]};if(_0x57c443['secretsFound']>0x0)_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x21c));}else exports[_0x4c2663(0x22a)]={'secretsFound':0x0,'secretTypes':[]};const _0x31b0b2=_0x298a55[_0x4c2663(0x20c)](),_0x3d3f80=isFeatureEnabled(_0x4c2663(0x1f8));try{if(_0x3d3f80){if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x204))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1ee)))return _0x2579b3('filter',(0x0,git_1[_0x4c2663(0x227)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x212))||_0x31b0b2[_0x4c2663(0x200)]('yadm\x20log'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,git_1['filterGitLog'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x210))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x23f))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x21f)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,git_1['filterGitDiff'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22e))||_0x31b0b2['match'](/python3?\s+-m\s+pytest/))return _0x2579b3(_0x4c2663(0x1f8),(0x0,python_1[_0x4c2663(0x224)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1f1))||_0x31b0b2['includes'](_0x4c2663(0x1f6)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,python_1[_0x4c2663(0x238)])(_0x302439));if(_0x31b0b2['includes']('ruff\x20check')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x226)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,devops_1['filterRuff'])(_0x302439));if(_0x31b0b2['includes']('npm\x20install')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22f))||_0x31b0b2['endsWith'](_0x4c2663(0x248))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x20b))||_0x31b0b2[_0x4c2663(0x200)]('yarn\x20install'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1['filterNpmInstall'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x240))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x252)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1[_0x4c2663(0x1f4)])(_0x302439));if(_0x31b0b2['includes'](_0x4c2663(0x23c))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x245))||_0x31b0b2['includes']('yarn\x20test')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x231)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1[_0x4c2663(0x1f4)])(_0x302439));if(_0x31b0b2['includes'](_0x4c2663(0x206)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,rust_1[_0x4c2663(0x229)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1fb))||_0x31b0b2['includes'](_0x4c2663(0x211))||_0x31b0b2['includes']('cargo\x20clippy'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,rust_1[_0x4c2663(0x218)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)]('go\x20test'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,go_1['filterGoTest'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22b)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,go_1['filterGoVet'])(_0x302439));if(_0x31b0b2['match'](/docker\s+ps/))return _0x2579b3('filter',(0x0,devops_1[_0x4c2663(0x247)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/docker\s+images/))return _0x2579b3('filter',(0x0,devops_1[_0x4c2663(0x24e)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/docker\s+logs/))return _0x2579b3('filter',(0x0,devops_1['filterDockerLogs'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1fc))){const _0x273380=_0x31b0b2[_0x4c2663(0x24d)](/kubectl\s+(get|logs|describe|apply)/),_0x2c2050=_0x273380?_0x273380[0x1]:_0x4c2663(0x20e);return _0x2579b3(_0x4c2663(0x1f8),(0x0,devops_1[_0x4c2663(0x236)])(_0x302439,_0x2c2050));}if(_0x31b0b2[_0x4c2663(0x24d)](/^(ls|dir)(\s|$)/)||_0x31b0b2['includes'](_0x4c2663(0x22d))||_0x31b0b2[_0x4c2663(0x243)](_0x4c2663(0x219)))return _0x2579b3('filter',(0x0,shell_1[_0x4c2663(0x24c)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^tree(\s|$)/)||_0x31b0b2[_0x4c2663(0x200)]('\x20tree\x20')||_0x31b0b2['endsWith']('\x20tree'))return _0x2579b3('filter',(0x0,shell_1[_0x4c2663(0x209)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x24e0a3=(0x0,shell_1['filterCat'])(_0x302439,_0x298a55);if(_0x24e0a3[_0x4c2663(0x200)](_0x4c2663(0x20a)))_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x1f5));else{if(_0x24e0a3['includes'](_0x4c2663(0x256))||_0x24e0a3[_0x4c2663(0x200)]('[minified\x20file]'))_0x187491[_0x4c2663(0x23d)]('binary');else{if(_0x24e0a3['includes'](_0x4c2663(0x1f7)))_0x187491[_0x4c2663(0x23d)]('skeleton');else{if(_0x24e0a3[_0x4c2663(0x200)]('|\x20')&&_0x24e0a3['includes'](_0x4c2663(0x1fa))&&_0x24e0a3[_0x4c2663(0x207)]<_0x302439[_0x4c2663(0x207)]*0.5)_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x21b));else{if(_0x24e0a3[_0x4c2663(0x200)]('lines\x20truncated'))_0x187491['push'](_0x4c2663(0x1f8));}}}}if(_0x24e0a3['length']<_0x302439[_0x4c2663(0x207)]&&!_0x187491[_0x4c2663(0x237)](_0x4ca836=>_0x4ca836!==_0x4c2663(0x216)&&_0x4ca836!==_0x4c2663(0x21c)))_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x1f8));return exports['lastFeatures']=_0x187491,_0x24e0a3;}if(_0x31b0b2[_0x4c2663(0x24d)](/^find(\s|$)/))return _0x2579b3('filter',(0x0,shell_1['filterFind'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^(grep|rg|ripgrep)(\s|$)/))return _0x2579b3(_0x4c2663(0x1f8),(0x0,shell_1[_0x4c2663(0x23a)])(_0x302439));}}catch(_0x2c5e37){}return isFeatureEnabled(_0x4c2663(0x1fd))&&(_0x302439=(0x0,generic_1[_0x4c2663(0x1fe)])(_0x302439),_0x187491['push'](_0x4c2663(0x1fd))),_0x302439=(0x0,generic_1[_0x4c2663(0x232)])(_0x302439),_0x302439=(0x0,generic_1[_0x4c2663(0x1f3)])(_0x302439,0x4e20),exports[_0x4c2663(0x1f9)]=_0x187491,_0x302439;}function a0_0x257b(_0x4d53a,_0x59d846){_0x4d53a=_0x4d53a-0x1ee;const _0x101d04=a0_0x101d();let _0x257b43=_0x101d04[_0x4d53a];return _0x257b43;}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_0x435292(0x254)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x435292(0x24a)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x435292(0x22c)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x435292(0x244)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x435292(0x255)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x435292(0x213)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x435292(0x1f2)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x435292(0x201)},{'pattern':/^find\s+/,'prefix':a0_0x435292(0x202)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x435292(0x249)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x435292(0x239)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x435292(0x253)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x435292(0x24b)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x435292(0x222)},{'pattern':/^go\s+(test|build|vet)/,'prefix':'trim\x20go'}];function a0_0x101d(){const _0xd14b47=['pip3\x20install','[code\x20skeleton]','filter','lastFeatures','---','cargo\x20build','kubectl','whitespace','collapseWhitespace','56UfIdfn','includes','trim\x20tree','trim\x20find','680SURsGQ','git\x20status','stripAnsi','cargo\x20test','length','./devops','filterTree','[lock\x20file]','pnpm\x20install','toLowerCase','144465KpkIiS','get','./python','git\x20diff','cargo\x20check','git\x20log','trim\x20read','pattern','./rust','ansi_strip','defineProperty','filterCargoBuild','\x20ls','secretsFound','json_crusher','redact','15440LPlNOA','./go','yadm\x20diff','./git','13796684UowLze','trim\x20pip','test','filterPytest','trim\x20','ruff\x20','filterGitStatus','trim','filterCargoTest','lastRedactAudit','go\x20vet','trim\x20cargo','\x20ls\x20','pytest','npm\x20i\x20','rewriteCommand','npm\x20run\x20test','collapseDuplicates','./generic','81046ZtjAxu','2587446wEsqbY','filterKubectl','some','filterPipInstall','trim\x20kubectl','filterGrep','./js','npm\x20test','push','redactor','git\x20show','jest','compressOutput','2052666iWaTnD','endsWith','trim\x20pnpm','pnpm\x20test','8EtGRvM','filterDockerPs','npm\x20i','trim\x20docker','trim\x20glab','trim\x20ruff','filterLs','match','filterDockerImages','tracker','2763EeKkqP','redactWithAudit','vitest','trim\x20pytest','trim\x20git','trim\x20npm','[binary','getConfig','133334wbLLmk','startsWith','yadm\x20status','__esModule','secretTypes','pip\x20install','trim\x20ls','softTruncate','filterJestVitest','lock'];a0_0x101d=function(){return _0xd14b47;};return a0_0x101d();}function rewriteCommand(_0x58f2c2){const _0x3f9819=a0_0x435292,_0x12a849=_0x58f2c2[_0x3f9819(0x228)]();if(_0x12a849[_0x3f9819(0x259)](_0x3f9819(0x225)))return _0x12a849;for(const _0xdc38fb of REWRITE_RULES){if(_0xdc38fb[_0x3f9819(0x214)][_0x3f9819(0x223)](_0x12a849))return'trim\x20'+_0x12a849;}return _0x12a849;}
|
|
1
|
+
'use strict';const a0_0x2556bd=a0_0x6eb8;(function(_0xcc424b,_0x1e9e5b){const _0x21cf66=a0_0x6eb8,_0x2e0dd9=_0xcc424b();while(!![]){try{const _0x39fa09=-parseInt(_0x21cf66(0xac))/0x1*(-parseInt(_0x21cf66(0xd9))/0x2)+-parseInt(_0x21cf66(0xd3))/0x3*(parseInt(_0x21cf66(0xa6))/0x4)+-parseInt(_0x21cf66(0xb6))/0x5*(-parseInt(_0x21cf66(0xaa))/0x6)+-parseInt(_0x21cf66(0x98))/0x7+-parseInt(_0x21cf66(0xc9))/0x8+parseInt(_0x21cf66(0x7b))/0x9*(parseInt(_0x21cf66(0x86))/0xa)+parseInt(_0x21cf66(0x96))/0xb;if(_0x39fa09===_0x1e9e5b)break;else _0x2e0dd9['push'](_0x2e0dd9['shift']());}catch(_0x2d06b3){_0x2e0dd9['push'](_0x2e0dd9['shift']());}}}(a0_0x4de6,0x5016a));Object[a0_0x2556bd(0xca)](exports,'__esModule',{'value':!![]}),exports[a0_0x2556bd(0x9c)]=exports[a0_0x2556bd(0xe4)]=void 0x0,exports[a0_0x2556bd(0xc2)]=compressOutput,exports['rewriteCommand']=rewriteCommand;function a0_0x4de6(){const _0x18ccbe=['jest','510QkMjvn','trim\x20git','[binary','push','match','trim\x20gh','trim\x20cargo','trim\x20pytest','filterGoTest','tracker','filterPipInstall','ruff\x20','cargo\x20check','secretsFound','vitest','\x20tree','1683275rWPZPO','pip\x20install','3042767XPBSHB','../redactor','trim\x20npm','\x20ls\x20','lastFeatures','startsWith','trim\x20find','filterCat','trim\x20docker','includes','trim\x20kubectl','go\x20vet','npm\x20install','trim\x20pip','2336660OcuxaI','filterGrep','filterDockerPs','npm\x20test','257292JwOGtK','npm\x20i','5721BovcUX','filterDockerImages','redactor','secretTypes','trim','endsWith','npm\x20i\x20','binary','./rust','redactWithAudit','70njcJhL','length','trim\x20go','filter','get','[code\x20skeleton]','cargo\x20build','[minified\x20file]','./git','./python','collapseDuplicates','trim\x20','compressOutput','some','./go','trim\x20npx','filterTree','git\x20show','go\x20test','770512NPsaIY','defineProperty','lock','filterDockerLogs','trim\x20pnpm','kubectl','trim\x20tree','./devops','softTruncate','text','3SYtmKi','ansi_strip','filterCargoTest','redact','filterGitDiff','filterCargoBuild','12Ymzpjs','filterJestVitest','yadm\x20diff','trim\x20ls','pattern','whitespace','trim\x20ruff','./shell','trim\x20read','[lock\x20file]','collapseWhitespace','lastRedactAudit','ruff\x20check','filterKubectl','filterPytest','115677VfRGVT','yarn\x20test','toLowerCase','yadm\x20log','pytest','filterRuff','cargo\x20test','git\x20diff','../tracker','getConfig'];a0_0x4de6=function(){return _0x18ccbe;};return a0_0x4de6();}const generic_1=require('./generic'),git_1=require(a0_0x2556bd(0xbe)),python_1=require(a0_0x2556bd(0xbf)),js_1=require('./js'),shell_1=require(a0_0x2556bd(0xe0)),rust_1=require(a0_0x2556bd(0xb4)),go_1=require(a0_0x2556bd(0xc4)),devops_1=require(a0_0x2556bd(0xd0)),redactor_1=require(a0_0x2556bd(0x99)),tracker_1=require(a0_0x2556bd(0x83));exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]},exports['lastFeatures']=[];function a0_0x6eb8(_0x1cc5eb,_0x40f3ec){_0x1cc5eb=_0x1cc5eb-0x7a;const _0x4de6b1=a0_0x4de6();let _0x6eb8ec=_0x4de6b1[_0x1cc5eb];return _0x6eb8ec;}function isFeatureEnabled(_0x5ca0cd){const _0xbb80b2=a0_0x2556bd;try{const _0x153a3b=tracker_1[_0xbb80b2(0x8f)][_0xbb80b2(0x84)](),_0x3914c6=_0x153a3b['features_enabled'];if(!_0x3914c6||_0x3914c6[_0x5ca0cd]===undefined)return!![];return _0x3914c6[_0x5ca0cd]!==![];}catch{return!![];}}function compressOutput(_0x37f552,_0x206e50,_0x494203,_0x463e8c=!![]){const _0x2be638=a0_0x2556bd,_0x2ba419=_0x37f552[_0x2be638(0xb0)]();let _0x393745=_0x206e50;_0x494203[_0x2be638(0xb0)]()[_0x2be638(0xb7)]>0x0&&(_0x393745=_0x206e50+'\x0a'+_0x494203);let _0x5c22a8=isFeatureEnabled('ansi_strip')?(0x0,generic_1['stripAnsi'])(_0x393745):_0x393745;const _0x3f8a2d=[];if(_0x5c22a8[_0x2be638(0xb7)]<_0x393745[_0x2be638(0xb7)])_0x3f8a2d['push']('ansi_strip');const _0x211e99=(_0x187d41,_0x4910c4)=>{const _0x50850e=_0x2be638;return _0x3f8a2d[_0x50850e(0x89)](_0x187d41),exports[_0x50850e(0x9c)]=_0x3f8a2d,_0x4910c4;};if(_0x463e8c&&isFeatureEnabled(_0x2be638(0xd6))){const _0x6d13e2=redactor_1[_0x2be638(0xae)][_0x2be638(0xb5)](_0x5c22a8);_0x5c22a8=_0x6d13e2[_0x2be638(0xd2)],exports['lastRedactAudit']={'secretsFound':_0x6d13e2[_0x2be638(0x93)],'secretTypes':_0x6d13e2[_0x2be638(0xaf)]};if(_0x6d13e2[_0x2be638(0x93)]>0x0)_0x3f8a2d['push'](_0x2be638(0xd6));}else exports[_0x2be638(0xe4)]={'secretsFound':0x0,'secretTypes':[]};const _0xf4bcd6=_0x2ba419[_0x2be638(0x7d)](),_0x2eab44=isFeatureEnabled(_0x2be638(0xb9));try{if(_0x2eab44){if(_0xf4bcd6['includes']('git\x20status')||_0xf4bcd6[_0x2be638(0xa1)]('yadm\x20status'))return _0x211e99(_0x2be638(0xb9),(0x0,git_1['filterGitStatus'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)]('git\x20log')||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x7e)))return _0x211e99(_0x2be638(0xb9),(0x0,git_1['filterGitLog'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x82))||_0xf4bcd6['includes'](_0x2be638(0xc7))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xdb)))return _0x211e99(_0x2be638(0xb9),(0x0,git_1[_0x2be638(0xd7)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x7f))||_0xf4bcd6['match'](/python3?\s+-m\s+pytest/))return _0x211e99('filter',(0x0,python_1[_0x2be638(0x7a)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x97))||_0xf4bcd6[_0x2be638(0xa1)]('pip3\x20install'))return _0x211e99(_0x2be638(0xb9),(0x0,python_1[_0x2be638(0x90)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xe5))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x91)))return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0x80)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xa4))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xb2))||_0xf4bcd6[_0x2be638(0xb1)](_0x2be638(0xab))||_0xf4bcd6[_0x2be638(0xa1)]('pnpm\x20install')||_0xf4bcd6[_0x2be638(0xa1)]('yarn\x20install'))return _0x211e99('filter',(0x0,js_1['filterNpmInstall'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x85))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x94)))return _0x211e99('filter',(0x0,js_1[_0x2be638(0xda)])(_0x5c22a8));if(_0xf4bcd6['includes'](_0x2be638(0xa9))||_0xf4bcd6['includes']('pnpm\x20test')||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x7c))||_0xf4bcd6[_0x2be638(0xa1)]('npm\x20run\x20test'))return _0x211e99(_0x2be638(0xb9),(0x0,js_1[_0x2be638(0xda)])(_0x5c22a8));if(_0xf4bcd6['includes'](_0x2be638(0x81)))return _0x211e99('filter',(0x0,rust_1[_0x2be638(0xd5)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xbc))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x92))||_0xf4bcd6[_0x2be638(0xa1)]('cargo\x20clippy'))return _0x211e99(_0x2be638(0xb9),(0x0,rust_1[_0x2be638(0xd8)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xc8)))return _0x211e99('filter',(0x0,go_1[_0x2be638(0x8e)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xa3)))return _0x211e99(_0x2be638(0xb9),(0x0,go_1['filterGoVet'])(_0x5c22a8));if(_0xf4bcd6['match'](/docker\s+ps/))return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0xa8)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0x8a)](/docker\s+images/))return _0x211e99('filter',(0x0,devops_1[_0x2be638(0xad)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0x8a)](/docker\s+logs/))return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0xcc)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xce))){const _0x20e906=_0xf4bcd6[_0x2be638(0x8a)](/kubectl\s+(get|logs|describe|apply)/),_0x2d747c=_0x20e906?_0x20e906[0x1]:_0x2be638(0xba);return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0xe6)])(_0x5c22a8,_0x2d747c));}if(_0xf4bcd6['match'](/^(ls|dir)(\s|$)/)||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x9b))||_0xf4bcd6[_0x2be638(0xb1)]('\x20ls'))return _0x211e99(_0x2be638(0xb9),(0x0,shell_1['filterLs'])(_0x5c22a8));if(_0xf4bcd6['match'](/^tree(\s|$)/)||_0xf4bcd6[_0x2be638(0xa1)]('\x20tree\x20')||_0xf4bcd6[_0x2be638(0xb1)](_0x2be638(0x95)))return _0x211e99(_0x2be638(0xb9),(0x0,shell_1[_0x2be638(0xc6)])(_0x5c22a8));if(_0xf4bcd6['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x3b1529=(0x0,shell_1[_0x2be638(0x9f)])(_0x5c22a8,_0x2ba419);if(_0x3b1529[_0x2be638(0xa1)](_0x2be638(0xe2)))_0x3f8a2d['push'](_0x2be638(0xcb));else{if(_0x3b1529[_0x2be638(0xa1)](_0x2be638(0x88))||_0x3b1529[_0x2be638(0xa1)](_0x2be638(0xbd)))_0x3f8a2d[_0x2be638(0x89)](_0x2be638(0xb3));else{if(_0x3b1529[_0x2be638(0xa1)](_0x2be638(0xbb)))_0x3f8a2d['push']('skeleton');else{if(_0x3b1529['includes']('|\x20')&&_0x3b1529[_0x2be638(0xa1)]('---')&&_0x3b1529[_0x2be638(0xb7)]<_0x5c22a8[_0x2be638(0xb7)]*0.5)_0x3f8a2d[_0x2be638(0x89)]('json_crusher');else{if(_0x3b1529[_0x2be638(0xa1)]('lines\x20truncated'))_0x3f8a2d[_0x2be638(0x89)](_0x2be638(0xb9));}}}}if(_0x3b1529['length']<_0x5c22a8['length']&&!_0x3f8a2d[_0x2be638(0xc3)](_0x51fc49=>_0x51fc49!==_0x2be638(0xd4)&&_0x51fc49!==_0x2be638(0xd6)))_0x3f8a2d['push'](_0x2be638(0xb9));return exports[_0x2be638(0x9c)]=_0x3f8a2d,_0x3b1529;}if(_0xf4bcd6[_0x2be638(0x8a)](/^find(\s|$)/))return _0x211e99(_0x2be638(0xb9),(0x0,shell_1['filterFind'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0x8a)](/^(grep|rg|ripgrep)(\s|$)/))return _0x211e99('filter',(0x0,shell_1[_0x2be638(0xa7)])(_0x5c22a8));}}catch(_0xdec7df){}return isFeatureEnabled(_0x2be638(0xde))&&(_0x5c22a8=(0x0,generic_1[_0x2be638(0xe3)])(_0x5c22a8),_0x3f8a2d[_0x2be638(0x89)](_0x2be638(0xde))),_0x5c22a8=(0x0,generic_1[_0x2be638(0xc0)])(_0x5c22a8),_0x5c22a8=(0x0,generic_1[_0x2be638(0xd1)])(_0x5c22a8,0x4e20),exports[_0x2be638(0x9c)]=_0x3f8a2d,_0x5c22a8;}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_0x2556bd(0x87)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x2556bd(0x8b)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x2556bd(0x8c)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x2556bd(0xcd)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x2556bd(0x9a)},{'pattern':/^npx\s+/,'prefix':a0_0x2556bd(0xc5)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x2556bd(0xe1)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x2556bd(0xdc)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x2556bd(0xcf)},{'pattern':/^find\s+/,'prefix':a0_0x2556bd(0x9e)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x2556bd(0xa0)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x2556bd(0xa2)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x2556bd(0x8d)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x2556bd(0xdf)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x2556bd(0xa5)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x2556bd(0xb8)}];function rewriteCommand(_0x8a805){const _0x13bef4=a0_0x2556bd,_0x25218a=_0x8a805[_0x13bef4(0xb0)]();if(_0x25218a[_0x13bef4(0x9d)]('trim\x20'))return _0x25218a;for(const _0x2ffbd9 of REWRITE_RULES){if(_0x2ffbd9[_0x13bef4(0xdd)]['test'](_0x25218a))return _0x13bef4(0xc1)+_0x25218a;}return _0x25218a;}
|
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x4f10a9=a0_0x1fda;function a0_0x1fda(_0x2edaeb,_0x133d03){_0x2edaeb=_0x2edaeb-0x171;const _0x55acfa=a0_0x55ac();let _0x1fda3a=_0x55acfa[_0x2edaeb];return _0x1fda3a;}(function(_0x586842,_0x43fa34){const _0x224037=a0_0x1fda,_0x3c6605=_0x586842();while(!![]){try{const _0x4d549b=-parseInt(_0x224037(0x18c))/0x1*(parseInt(_0x224037(0x17f))/0x2)+parseInt(_0x224037(0x18e))/0x3*(-parseInt(_0x224037(0x198))/0x4)+-parseInt(_0x224037(0x176))/0x5+parseInt(_0x224037(0x197))/0x6+-parseInt(_0x224037(0x184))/0x7+-parseInt(_0x224037(0x183))/0x8*(-parseInt(_0x224037(0x18a))/0x9)+-parseInt(_0x224037(0x194))/0xa*(-parseInt(_0x224037(0x180))/0xb);if(_0x4d549b===_0x43fa34)break;else _0x3c6605['push'](_0x3c6605['shift']());}catch(_0x47ef44){_0x3c6605['push'](_0x3c6605['shift']());}}}(a0_0x55ac,0xd477d));Object[a0_0x4f10a9(0x19a)](exports,a0_0x4f10a9(0x18d),{'value':!![]}),exports[a0_0x4f10a9(0x191)]=filterNpmInstall,exports[a0_0x4f10a9(0x17a)]=filterJestVitest;function filterNpmInstall(_0x4ca7ce){const _0x213b86=a0_0x4f10a9,_0x3cbf87=_0x4ca7ce[_0x213b86(0x185)](/\r/g,'\x0a'),_0x50050d=_0x3cbf87[_0x213b86(0x18b)]('\x0a'),_0x3d431f=[];for(const _0x34a4d3 of _0x50050d){const _0x5bd5ad=_0x34a4d3[_0x213b86(0x179)]();(_0x5bd5ad['includes'](_0x213b86(0x196))||_0x5bd5ad['includes']('removed\x20')||_0x5bd5ad[_0x213b86(0x182)](_0x213b86(0x190))||_0x5bd5ad['includes'](_0x213b86(0x186))||_0x5bd5ad[_0x213b86(0x182)](_0x213b86(0x173)))&&(!_0x5bd5ad[_0x213b86(0x182)]('%')&&!_0x5bd5ad['startsWith']('⠋')&&!_0x5bd5ad[_0x213b86(0x17b)]('⠙')&&_0x3d431f['push'](_0x5bd5ad));}const _0x3913bc=_0x3d431f['join']('\x0a')[_0x213b86(0x179)]();return _0x3913bc[_0x213b86(0x18f)]>0x0?_0x3913bc:_0x213b86(0x17d);}function a0_0x55ac(){const _0x39da0e=['Test\x20Files:','added\x20','7331418zEtNmQ','4RrzRZy','\x20failed\x20(','defineProperty','slice','FAIL\x20\x20','found\x20','FAIL','\x0aFailures:','546635eOQBmP','\x20passed','Tests:','trim','filterJestVitest','startsWith','\x20\x20...\x20(','NPM:\x20Packages\x20verified/installed\x20successfully','match','244RjAycw','11IqOwIc','\x20total)','includes','3049808PQDgfR','2301474wEORcn','replace','up\x20to\x20date','\x20passed,\x20','join','PASS','9VeEpSd','split','4393YkaXfu','__esModule','2264973xGHcFR','length','audited\x20','filterNpmInstall','Test\x20Runner:\x20','push','9961860IPfypJ'];a0_0x55ac=function(){return _0x39da0e;};return a0_0x55ac();}function filterJestVitest(_0x36be2a){const _0x11fa7c=a0_0x4f10a9,_0x14a688=_0x36be2a[_0x11fa7c(0x18b)]('\x0a');let _0x57fc4d=0x0,_0x2eaf0b=0x0,_0x3005ae=0x0;const _0x535e52=[];let _0x7c219b=![];for(const _0x13b0ed of _0x14a688){const _0x44644e=_0x13b0ed[_0x11fa7c(0x179)]();if(_0x44644e['startsWith'](_0x11fa7c(0x178))||_0x44644e[_0x11fa7c(0x182)](_0x11fa7c(0x195))){const _0x35580b=_0x44644e[_0x11fa7c(0x17e)](/(\d+)\s+passed/),_0xc0820f=_0x44644e[_0x11fa7c(0x17e)](/(\d+)\s+failed/),_0x3abb16=_0x44644e['match'](/(\d+)\s+total/);if(_0x35580b)_0x57fc4d=parseInt(_0x35580b[0x1]);if(_0xc0820f)_0x2eaf0b=parseInt(_0xc0820f[0x1]);if(_0x3abb16)_0x3005ae=parseInt(_0x3abb16[0x1]);continue;}(_0x44644e[_0x11fa7c(0x17b)]('❯')||_0x44644e[_0x11fa7c(0x17b)]('●')||_0x44644e[_0x11fa7c(0x17b)](_0x11fa7c(0x172)))&&(_0x7c219b=!![]),_0x7c219b&&(_0x44644e[_0x11fa7c(0x18f)]>0x0&&!_0x44644e[_0x11fa7c(0x17b)]('Test\x20Suites:')&&!_0x44644e['startsWith'](_0x11fa7c(0x178))&&_0x535e52[_0x11fa7c(0x193)](_0x13b0ed));}if(_0x3005ae===0x0&&_0x57fc4d===0x0&&_0x2eaf0b===0x0){if(_0x36be2a[_0x11fa7c(0x182)](_0x11fa7c(0x189))&&!_0x36be2a[_0x11fa7c(0x182)](_0x11fa7c(0x174))){const _0x2652ff=_0x36be2a['match'](/(\d+)\s+passed/),_0x48d40a=_0x2652ff?_0x2652ff[0x1]:'all';return _0x11fa7c(0x192)+_0x48d40a+_0x11fa7c(0x177);}return _0x36be2a;}if(_0x2eaf0b===0x0&&_0x57fc4d>0x0)return _0x11fa7c(0x192)+_0x57fc4d+_0x11fa7c(0x177);const _0x3e2c79=[_0x11fa7c(0x192)+_0x57fc4d+_0x11fa7c(0x187)+_0x2eaf0b+_0x11fa7c(0x199)+_0x3005ae+_0x11fa7c(0x181)];if(_0x535e52['length']>0x0){_0x3e2c79[_0x11fa7c(0x193)](_0x11fa7c(0x175));const _0x5a393d=0x19,_0x37652d=_0x535e52[_0x11fa7c(0x171)](0x0,_0x5a393d);for(const _0x485be7 of _0x37652d){_0x3e2c79['push']('\x20\x20'+_0x485be7);}_0x535e52[_0x11fa7c(0x18f)]>_0x5a393d&&_0x3e2c79['push'](_0x11fa7c(0x17c)+(_0x535e52[_0x11fa7c(0x18f)]-_0x5a393d)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x3e2c79[_0x11fa7c(0x188)]('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x327d11=a0_0x18c3;function a0_0x43bb(){const _0x384061=['6FLlwuM','Downloading','E\x20\x20\x20','passed','===\x20short\x20test\x20summary\x20info\x20===','162935JBYHTq','Pytest:\x20All\x20tests\x20passed','\x20lines\x20of\x20stacktrace\x20truncated)','Collecting','defineProperty','64578ZAawQD','slice','10CPYDHe','4277482yNoIzP','\x20\x20\x20\x20...\x20(','Successfully\x20installed','\x20\x20\x20\x20','filterPytest','match','108976CqfoAW','\x0aFailures:','failed','18JJschX','\x20in\x20','.\x20[FAIL]\x20','5633991beLFQV','14YHXBMO','829275YEgScy','filter','\x20\x20...\x20+','\x20more\x20failures\x20truncated','filterPipInstall','Pytest:\x20','\x20passed','3143784SdUgYS','.py:','split','join','\x20failed','\x20xfailed','___','startsWith','===\x20FAILURES\x20===','push','60DDSCIC','length','trim','includes','===','Using\x20cached'];a0_0x43bb=function(){return _0x384061;};return a0_0x43bb();}(function(_0x107042,_0x51263b){const _0x5243ea=a0_0x18c3,_0x31e3dc=_0x107042();while(!![]){try{const _0x33a7ff=-parseInt(_0x5243ea(0x141))/0x1+-parseInt(_0x5243ea(0x130))/0x2+parseInt(_0x5243ea(0x126))/0x3*(-parseInt(_0x5243ea(0x139))/0x4)+parseInt(_0x5243ea(0x12b))/0x5*(parseInt(_0x5243ea(0x13c))/0x6)+parseInt(_0x5243ea(0x140))/0x7*(-parseInt(_0x5243ea(0x148))/0x8)+parseInt(_0x5243ea(0x13f))/0x9*(parseInt(_0x5243ea(0x132))/0xa)+-parseInt(_0x5243ea(0x133))/0xb*(-parseInt(_0x5243ea(0x152))/0xc);if(_0x33a7ff===_0x51263b)break;else _0x31e3dc['push'](_0x31e3dc['shift']());}catch(_0x57e8b6){_0x31e3dc['push'](_0x31e3dc['shift']());}}}(a0_0x43bb,0xebdb8));function a0_0x18c3(_0x559c76,_0x54cbae){_0x559c76=_0x559c76-0x126;const _0x43bbf7=a0_0x43bb();let _0x18c376=_0x43bbf7[_0x559c76];return _0x18c376;}Object[a0_0x327d11(0x12f)](exports,'__esModule',{'value':!![]}),exports[a0_0x327d11(0x137)]=filterPytest,exports[a0_0x327d11(0x145)]=filterPipInstall;function filterPytest(_0x1886ad){const _0x570b20=a0_0x327d11,_0x1f09c0=_0x1886ad[_0x570b20(0x14a)]('\x0a');let _0x314cfe=0x0,_0x5d1657=0x0,_0x11f987=0x0,_0x3fc269=0x0,_0x2c517f=0x0;const _0x254c54=[];let _0x1be568=[],_0x5ab15a=![];for(const _0x5eb83d of _0x1f09c0){const _0x19430=_0x5eb83d[_0x570b20(0x154)]();if(_0x19430['startsWith'](_0x570b20(0x150))||_0x19430[_0x570b20(0x14f)]('===\x20ERRORS\x20===')){_0x5ab15a=!![];continue;}else(_0x19430[_0x570b20(0x14f)](_0x570b20(0x12a))||_0x19430[_0x570b20(0x14f)]('===')&&_0x19430[_0x570b20(0x155)](_0x570b20(0x129)))&&(_0x5ab15a=![],_0x1be568[_0x570b20(0x153)]>0x0&&(_0x254c54[_0x570b20(0x151)](_0x1be568),_0x1be568=[]));if(_0x5ab15a){if(_0x19430[_0x570b20(0x14f)](_0x570b20(0x14e)))_0x1be568[_0x570b20(0x153)]>0x0&&(_0x254c54[_0x570b20(0x151)](_0x1be568),_0x1be568=[]),_0x1be568[_0x570b20(0x151)](_0x19430);else _0x19430[_0x570b20(0x153)]>0x0&&_0x1be568[_0x570b20(0x151)](_0x5eb83d);continue;}if(_0x19430[_0x570b20(0x14f)](_0x570b20(0x156))&&_0x19430['includes'](_0x570b20(0x13d))){const _0x1d58c1=_0x19430[_0x570b20(0x138)](/(\d+)\s+passed/),_0x2e6cdc=_0x19430[_0x570b20(0x138)](/(\d+)\s+failed/),_0xd9e2c8=_0x19430['match'](/(\d+)\s+skipped/),_0x1687f5=_0x19430[_0x570b20(0x138)](/(\d+)\s+xfailed/),_0x203a7f=_0x19430[_0x570b20(0x138)](/(\d+)\s+xpassed/);if(_0x1d58c1)_0x314cfe=parseInt(_0x1d58c1[0x1]);if(_0x2e6cdc)_0x5d1657=parseInt(_0x2e6cdc[0x1]);if(_0xd9e2c8)_0x11f987=parseInt(_0xd9e2c8[0x1]);if(_0x1687f5)_0x3fc269=parseInt(_0x1687f5[0x1]);if(_0x203a7f)_0x2c517f=parseInt(_0x203a7f[0x1]);}}_0x1be568[_0x570b20(0x153)]>0x0&&_0x254c54[_0x570b20(0x151)](_0x1be568);if(_0x314cfe===0x0&&_0x5d1657===0x0&&_0x11f987===0x0&&_0x3fc269===0x0&&_0x2c517f===0x0){if(_0x1886ad[_0x570b20(0x155)](_0x570b20(0x129))&&!_0x1886ad[_0x570b20(0x155)](_0x570b20(0x13b)))return _0x570b20(0x12c);return _0x1886ad;}if(_0x5d1657===0x0&&_0x314cfe>0x0&&_0x11f987===0x0&&_0x3fc269===0x0&&_0x2c517f===0x0)return'Pytest:\x20'+_0x314cfe+_0x570b20(0x147);const _0x4cb6e5=[];_0x4cb6e5[_0x570b20(0x151)](_0x570b20(0x146)+_0x314cfe+_0x570b20(0x147));if(_0x5d1657>0x0)_0x4cb6e5[_0x570b20(0x151)](_0x5d1657+_0x570b20(0x14c));if(_0x11f987>0x0)_0x4cb6e5[_0x570b20(0x151)](_0x11f987+'\x20skipped');if(_0x3fc269>0x0)_0x4cb6e5[_0x570b20(0x151)](_0x3fc269+_0x570b20(0x14d));if(_0x2c517f>0x0)_0x4cb6e5[_0x570b20(0x151)](_0x2c517f+'\x20xpassed\x20(warning!)');const _0x3f5382=[_0x4cb6e5['join'](',\x20')];if(_0x254c54[_0x570b20(0x153)]>0x0){_0x3f5382[_0x570b20(0x151)](_0x570b20(0x13a));const _0x56db84=0x3,_0x19c2ba=_0x254c54['slice'](0x0,_0x56db84);for(let _0x1b623e=0x0;_0x1b623e<_0x19c2ba[_0x570b20(0x153)];_0x1b623e++){const _0x45d4b6=_0x19c2ba[_0x1b623e],_0x8eb534=_0x45d4b6[0x0]['replace'](/_/g,'')['trim']();_0x3f5382[_0x570b20(0x151)]('\x20\x20'+(_0x1b623e+0x1)+_0x570b20(0x13e)+_0x8eb534);const _0x44671e=_0x45d4b6[_0x570b20(0x131)](0x1),_0x5664e4=_0x44671e[_0x570b20(0x142)](_0x5b5b2e=>{const _0x85f845=_0x570b20,_0x4cfc1a=_0x5b5b2e[_0x85f845(0x154)]();return _0x4cfc1a['startsWith']('>')||_0x4cfc1a[_0x85f845(0x14f)](_0x85f845(0x128))||_0x4cfc1a[_0x85f845(0x155)](_0x85f845(0x149))||_0x4cfc1a[_0x85f845(0x155)]('AssertionError:');});for(const _0x12c37a of _0x5664e4[_0x570b20(0x131)](0x0,0x8)){_0x3f5382[_0x570b20(0x151)](_0x570b20(0x136)+_0x12c37a);}_0x5664e4[_0x570b20(0x153)]>0x8&&_0x3f5382[_0x570b20(0x151)](_0x570b20(0x134)+(_0x5664e4['length']-0x8)+_0x570b20(0x12d));}_0x254c54['length']>_0x56db84&&_0x3f5382[_0x570b20(0x151)](_0x570b20(0x143)+(_0x254c54['length']-_0x56db84)+_0x570b20(0x144));}return _0x3f5382[_0x570b20(0x14b)]('\x0a');}function filterPipInstall(_0x1a38f9){const _0x3f393c=a0_0x327d11,_0x1ad303=_0x1a38f9[_0x3f393c(0x14a)]('\x0a'),_0x48ab86=[];for(const _0x334edc of _0x1ad303){const _0x3f811c=_0x334edc['trim']();_0x3f811c[_0x3f393c(0x14f)](_0x3f393c(0x135))&&_0x48ab86['push'](_0x3f811c);}if(_0x48ab86[_0x3f393c(0x153)]>0x0)return _0x48ab86[_0x3f393c(0x14b)]('\x0a');return _0x1ad303['filter'](_0x5ff9d3=>{const _0x47c4f0=_0x3f393c,_0x1a5ef6=_0x5ff9d3[_0x47c4f0(0x154)]();return!_0x1a5ef6[_0x47c4f0(0x14f)](_0x47c4f0(0x12e))&&!_0x1a5ef6[_0x47c4f0(0x14f)](_0x47c4f0(0x127))&&!_0x1a5ef6['includes'](_0x47c4f0(0x157))&&!_0x1a5ef6[_0x47c4f0(0x14f)]('Requirement\x20already\x20satisfied');})[_0x3f393c(0x14b)]('\x0a')[_0x3f393c(0x154)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x3e52(){const _0x27f4a4=['error:','\x20more\x20failures','push','\x20warnings','\x20\x20\x20\x20','282636uIATxC','212510kSxqRM','startsWith','\x20crates\x20successfully','Cargo:\x20compiled\x20','\x0aErrors:','980512lhHEeN','\x20failed,\x20','Cargo\x20test:\x20all\x20tests\x20passed','length','\x20crates,\x20','endsWith','warning:','\x0aFailures:','match','test\x20result:\x20ok','----\x20','579738mXMTnk','\x20passed','805749tgNTot','min','right:','Cargo:\x20','failures:','warning[','trim','\x20errors,\x20','----\x20failures\x20----','filter','152043ylliCw','8WjgDxx','includes','replace','\x20passed,\x20','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','27jyguGx','\x20more\x20errors','160033YNBTGq','join','Cargo\x20test:\x20','\x0aWarnings:','Compiling\x20','slice','test\x20result:','filterCargoTest','__esModule','thread','assert','split','\x20\x20...\x20+'];a0_0x3e52=function(){return _0x27f4a4;};return a0_0x3e52();}const a0_0x4c0c5b=a0_0x3284;function a0_0x3284(_0xec3b95,_0x23b4be){_0xec3b95=_0xec3b95-0x163;const _0x3e521d=a0_0x3e52();let _0x32840e=_0x3e521d[_0xec3b95];return _0x32840e;}(function(_0x48c175,_0x1182a0){const _0xa5c1d2=a0_0x3284,_0x12bc16=_0x48c175();while(!![]){try{const _0x57c06e=-parseInt(_0xa5c1d2(0x182))/0x1+-parseInt(_0xa5c1d2(0x194))/0x2+-parseInt(_0xa5c1d2(0x17a))/0x3+parseInt(_0xa5c1d2(0x17b))/0x4*(-parseInt(_0xa5c1d2(0x195))/0x5)+parseInt(_0xa5c1d2(0x16e))/0x6+parseInt(_0xa5c1d2(0x170))/0x7+-parseInt(_0xa5c1d2(0x163))/0x8*(-parseInt(_0xa5c1d2(0x180))/0x9);if(_0x57c06e===_0x1182a0)break;else _0x12bc16['push'](_0x12bc16['shift']());}catch(_0x295c31){_0x12bc16['push'](_0x12bc16['shift']());}}}(a0_0x3e52,0x22c32));Object['defineProperty'](exports,a0_0x4c0c5b(0x18a),{'value':!![]}),exports[a0_0x4c0c5b(0x189)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0xb42f70){const _0x246e20=a0_0x4c0c5b,_0x23caf3=_0xb42f70['split']('\x0a');let _0x1ca846=0x0,_0x5a3a31=0x0,_0x46d60c=0x0,_0x2334db=0x0;const _0x3067bb=[];let _0x309d1c=![],_0x58dd49=[];for(const _0x323e85 of _0x23caf3){const _0x5395aa=_0x323e85[_0x246e20(0x176)](),_0x5c4475=_0x5395aa[_0x246e20(0x16b)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x5c4475){_0x1ca846+=parseInt(_0x5c4475[0x2]),_0x5a3a31+=parseInt(_0x5c4475[0x3]),_0x46d60c+=parseInt(_0x5c4475[0x4]),_0x2334db+=parseInt(_0x5c4475[0x5]);continue;}if(_0x5395aa==='failures:'||_0x5395aa===_0x246e20(0x178)){_0x309d1c=!![];continue;}if(_0x309d1c){if(_0x5395aa[_0x246e20(0x196)](_0x246e20(0x16d))&&_0x5395aa[_0x246e20(0x168)]('\x20----')){if(_0x58dd49[_0x246e20(0x166)]>0x0)_0x3067bb[_0x246e20(0x191)](_0x58dd49[_0x246e20(0x183)]('\x0a'));_0x58dd49=[_0x5395aa[_0x246e20(0x17d)](/^-+\s*/,'')[_0x246e20(0x17d)](/\s*-+$/,'')];}else{if(_0x5395aa===_0x246e20(0x174)||_0x5395aa[_0x246e20(0x196)](_0x246e20(0x188))){if(_0x58dd49[_0x246e20(0x166)]>0x0)_0x3067bb[_0x246e20(0x191)](_0x58dd49[_0x246e20(0x183)]('\x0a'));_0x58dd49=[],_0x309d1c=![];}else _0x5395aa['length']>0x0&&_0x58dd49['push'](_0x323e85);}}}if(_0x58dd49[_0x246e20(0x166)]>0x0)_0x3067bb[_0x246e20(0x191)](_0x58dd49[_0x246e20(0x183)]('\x0a'));if(_0x1ca846===0x0&&_0x5a3a31===0x0&&_0x46d60c===0x0){if(_0xb42f70[_0x246e20(0x17c)](_0x246e20(0x16c)))return _0x246e20(0x165);return _0xb42f70;}if(_0x5a3a31===0x0){const _0x5e3fb6=[_0x246e20(0x184)+_0x1ca846+_0x246e20(0x16f)];if(_0x46d60c>0x0)_0x5e3fb6[_0x246e20(0x191)](_0x46d60c+'\x20ignored');return _0x5e3fb6[_0x246e20(0x183)](',\x20');}const _0x44050f=[_0x246e20(0x184)+_0x1ca846+_0x246e20(0x17e)+_0x5a3a31+_0x246e20(0x164)+_0x46d60c+'\x20ignored'];if(_0x3067bb[_0x246e20(0x166)]>0x0){_0x44050f['push'](_0x246e20(0x16a));const _0x2e9360=0x3;for(let _0x5e5383=0x0;_0x5e5383<Math[_0x246e20(0x171)](_0x3067bb[_0x246e20(0x166)],_0x2e9360);_0x5e5383++){const _0x39a892=_0x3067bb[_0x5e5383][_0x246e20(0x18d)]('\x0a');_0x44050f[_0x246e20(0x191)]('\x20\x20'+(_0x5e5383+0x1)+'.\x20'+_0x39a892[0x0]);const _0x24df75=_0x39a892[_0x246e20(0x187)](0x1),_0x2d03f7=_0x24df75[_0x246e20(0x179)](_0x3334bb=>_0x3334bb[_0x246e20(0x176)]()[_0x246e20(0x196)](_0x246e20(0x18b))||_0x3334bb['includes']('panicked')||_0x3334bb['includes'](_0x246e20(0x18c))||_0x3334bb[_0x246e20(0x17c)]('left:')||_0x3334bb[_0x246e20(0x17c)](_0x246e20(0x172)));for(const _0x487b9b of _0x2d03f7['slice'](0x0,0x5)){_0x44050f[_0x246e20(0x191)](_0x246e20(0x193)+_0x487b9b[_0x246e20(0x176)]());}}_0x3067bb['length']>_0x2e9360&&_0x44050f[_0x246e20(0x191)](_0x246e20(0x18e)+(_0x3067bb['length']-_0x2e9360)+_0x246e20(0x190));}return _0x44050f['join']('\x0a');}function filterCargoBuild(_0x4ec1d1){const _0x38cc27=a0_0x4c0c5b,_0x436019=_0x4ec1d1[_0x38cc27(0x18d)]('\x0a'),_0x52c590=[],_0x245635=[];let _0x3cfc84=0x0;for(const _0x30c8e7 of _0x436019){const _0x1c9eb7=_0x30c8e7['trim']();if(_0x1c9eb7[_0x38cc27(0x196)](_0x38cc27(0x186)))_0x3cfc84++;else{if(_0x1c9eb7['startsWith'](_0x38cc27(0x175))||_0x1c9eb7[_0x38cc27(0x196)](_0x38cc27(0x169)))_0x52c590[_0x38cc27(0x191)](_0x1c9eb7);else{if(_0x1c9eb7['startsWith']('error[')||_0x1c9eb7[_0x38cc27(0x196)](_0x38cc27(0x18f)))_0x245635[_0x38cc27(0x191)](_0x1c9eb7);}}}if(_0x245635['length']===0x0&&_0x52c590[_0x38cc27(0x166)]===0x0)return _0x3cfc84>0x0?'Cargo:\x20compiled\x20'+_0x3cfc84+_0x38cc27(0x197):_0x4ec1d1[_0x38cc27(0x176)]();const _0x5b7edb=[];if(_0x245635[_0x38cc27(0x166)]>0x0){_0x5b7edb[_0x38cc27(0x191)](_0x38cc27(0x173)+_0x245635[_0x38cc27(0x166)]+_0x38cc27(0x177)+_0x52c590[_0x38cc27(0x166)]+_0x38cc27(0x192)),_0x5b7edb[_0x38cc27(0x191)](_0x38cc27(0x199));for(const _0x1a14d3 of _0x245635[_0x38cc27(0x187)](0x0,0x5))_0x5b7edb[_0x38cc27(0x191)]('\x20\x20'+_0x1a14d3);if(_0x245635['length']>0x5)_0x5b7edb[_0x38cc27(0x191)](_0x38cc27(0x18e)+(_0x245635['length']-0x5)+_0x38cc27(0x181));}else _0x5b7edb[_0x38cc27(0x191)](_0x38cc27(0x198)+_0x3cfc84+_0x38cc27(0x167)+_0x52c590[_0x38cc27(0x166)]+_0x38cc27(0x192));if(_0x52c590[_0x38cc27(0x166)]>0x0&&_0x52c590[_0x38cc27(0x166)]<=0x5){_0x5b7edb[_0x38cc27(0x191)](_0x38cc27(0x185));for(const _0x3bbccc of _0x52c590)_0x5b7edb[_0x38cc27(0x191)]('\x20\x20'+_0x3bbccc);}else _0x52c590[_0x38cc27(0x166)]>0x5&&_0x5b7edb[_0x38cc27(0x191)]('\x0a('+_0x52c590[_0x38cc27(0x166)]+_0x38cc27(0x17f));return _0x5b7edb[_0x38cc27(0x183)]('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x10ff8c=a0_0x30d5;(function(_0x272f7a,_0x49b3d0){const _0x14d9d0=a0_0x30d5,_0x50c5a8=_0x272f7a();while(!![]){try{const _0x456fe7=-parseInt(_0x14d9d0(0xcf))/0x1+parseInt(_0x14d9d0(0x146))/0x2*(parseInt(_0x14d9d0(0xd7))/0x3)+parseInt(_0x14d9d0(0xb8))/0x4*(parseInt(_0x14d9d0(0xec))/0x5)+parseInt(_0x14d9d0(0x114))/0x6*(parseInt(_0x14d9d0(0x143))/0x7)+parseInt(_0x14d9d0(0xce))/0x8*(parseInt(_0x14d9d0(0xca))/0x9)+-parseInt(_0x14d9d0(0x106))/0xa*(-parseInt(_0x14d9d0(0x132))/0xb)+-parseInt(_0x14d9d0(0x136))/0xc*(parseInt(_0x14d9d0(0xc3))/0xd);if(_0x456fe7===_0x49b3d0)break;else _0x50c5a8['push'](_0x50c5a8['shift']());}catch(_0xbd555a){_0x50c5a8['push'](_0x50c5a8['shift']());}}}(a0_0x8f00,0x3c824));var __createBinding=this&&this[a0_0x10ff8c(0xbd)]||(Object['create']?function(_0x50de36,_0x25d66b,_0x46d905,_0x33b21b){const _0x507f06=a0_0x10ff8c;if(_0x33b21b===undefined)_0x33b21b=_0x46d905;var _0x295692=Object[_0x507f06(0x135)](_0x25d66b,_0x46d905);(!_0x295692||(_0x507f06(0x103)in _0x295692?!_0x25d66b['__esModule']:_0x295692[_0x507f06(0x10a)]||_0x295692[_0x507f06(0xfc)]))&&(_0x295692={'enumerable':!![],'get':function(){return _0x25d66b[_0x46d905];}}),Object[_0x507f06(0xbc)](_0x50de36,_0x33b21b,_0x295692);}:function(_0x1a8d95,_0x142d28,_0x5b9e8a,_0x2175e6){if(_0x2175e6===undefined)_0x2175e6=_0x5b9e8a;_0x1a8d95[_0x2175e6]=_0x142d28[_0x5b9e8a];}),__setModuleDefault=this&&this[a0_0x10ff8c(0xeb)]||(Object[a0_0x10ff8c(0x138)]?function(_0x472622,_0x10adad){const _0x42b7c1=a0_0x10ff8c;Object['defineProperty'](_0x472622,_0x42b7c1(0x101),{'enumerable':!![],'value':_0x10adad});}:function(_0x36ecba,_0xa46a3){_0x36ecba['default']=_0xa46a3;}),__importStar=this&&this[a0_0x10ff8c(0xe0)]||(function(){var _0x130e5c=function(_0x3598e9){const _0x595134=a0_0x30d5;return _0x130e5c=Object[_0x595134(0x110)]||function(_0x9a0855){const _0x4b6c04=_0x595134;var _0x5e061c=[];for(var _0x2cb90d in _0x9a0855)if(Object[_0x4b6c04(0x131)][_0x4b6c04(0x11a)][_0x4b6c04(0xf7)](_0x9a0855,_0x2cb90d))_0x5e061c[_0x5e061c[_0x4b6c04(0xdd)]]=_0x2cb90d;return _0x5e061c;},_0x130e5c(_0x3598e9);};return function(_0xdcd56d){const _0x4c9d87=a0_0x30d5;if(_0xdcd56d&&_0xdcd56d[_0x4c9d87(0xcd)])return _0xdcd56d;var _0x29d69f={};if(_0xdcd56d!=null){for(var _0x21f523=_0x130e5c(_0xdcd56d),_0x2d7237=0x0;_0x2d7237<_0x21f523['length'];_0x2d7237++)if(_0x21f523[_0x2d7237]!==_0x4c9d87(0x101))__createBinding(_0x29d69f,_0xdcd56d,_0x21f523[_0x2d7237]);}return __setModuleDefault(_0x29d69f,_0xdcd56d),_0x29d69f;};}());Object[a0_0x10ff8c(0xbc)](exports,'__esModule',{'value':!![]}),exports[a0_0x10ff8c(0xee)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x10ff8c(0xd9)]=filterCat,exports[a0_0x10ff8c(0xd6)]=filterGrep,exports[a0_0x10ff8c(0x102)]=filterFind;const path=__importStar(require(a0_0x10ff8c(0xe4))),generic_1=require('./generic'),tracker_1=require('../tracker');function isFeatureEnabled(_0x158605){const _0x17f058=a0_0x10ff8c;try{const _0xedc2a6=tracker_1['tracker'][_0x17f058(0xf3)](),_0x309385=_0xedc2a6[_0x17f058(0x12a)];if(!_0x309385||_0x309385[_0x158605]===undefined)return!![];return _0x309385[_0x158605]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x10ff8c(0xfb),'yarn.lock','pnpm-lock.yaml',a0_0x10ff8c(0x13a),a0_0x10ff8c(0xbb),a0_0x10ff8c(0x115),a0_0x10ff8c(0x109),'Gemfile.lock',a0_0x10ff8c(0xda)],BINARY_EXTENSIONS=[a0_0x10ff8c(0xef),a0_0x10ff8c(0xb5),a0_0x10ff8c(0x13f),a0_0x10ff8c(0xb2),'.png',a0_0x10ff8c(0x10c),'.jpeg',a0_0x10ff8c(0xd0),'.ico','.bmp',a0_0x10ff8c(0xcc),a0_0x10ff8c(0xd3),a0_0x10ff8c(0x11c),a0_0x10ff8c(0x105),a0_0x10ff8c(0xf5),a0_0x10ff8c(0x100),a0_0x10ff8c(0x12c),a0_0x10ff8c(0x141),a0_0x10ff8c(0x10d),a0_0x10ff8c(0x126),'.exe',a0_0x10ff8c(0xb1),'.so',a0_0x10ff8c(0x13c),a0_0x10ff8c(0x120),'.dat',a0_0x10ff8c(0x12e),a0_0x10ff8c(0xe6),a0_0x10ff8c(0xd4),a0_0x10ff8c(0xf2),a0_0x10ff8c(0xf6),'.ttf','.eot',a0_0x10ff8c(0x128),'.mp3',a0_0x10ff8c(0xc7),'.wav',a0_0x10ff8c(0x10e),a0_0x10ff8c(0x130),a0_0x10ff8c(0x145),a0_0x10ff8c(0x13d),'.pyo',a0_0x10ff8c(0xe8),'.o',a0_0x10ff8c(0xc2)];function a0_0x8f00(){const _0x3db402=['.rar','[binary\x20file]\x20','.otf','\x20more\x20files','features_enabled','charCodeAt','.gz','\x0a...\x20[','.sqlite','dependencies','.mov','prototype','22EpjSli','require(','\x20structural\x20lines\x20shown)','getOwnPropertyDescriptor','2922636OSZktN','basename','create','\x20matches\x20across\x20','Cargo.lock','match','.dylib','.pyc','\x20files\x20found\x20across\x20','.map','.java','.bz2','@return','35728gENZnZ','.cs','.webm','20fuXiBb','No\x20matches\x20found','substring','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','.dll','.wasm','binary','endsWith','.min.css','parse','\x20lines\x20truncated]\x20...\x0a','1847572aLgErZ','from\x20','floor','go.sum','defineProperty','__createBinding','stripComments','\x20chars,\x20type:\x20','[minified\x20file]\x20','filter','.obj','65nBmEVZ','.go','join','pnpm-lock.yaml','.mp4','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','toLocaleString','315513LZduzu','slice','.webp','__esModule','56oRNpYb','299607dJKPlZ','.gif','...\x20+','Empty\x20directory','.svg','.sqlite3','toLowerCase','filterGrep','95019KdxNYA','.py','filterCat','bun.lockb','package\x20','.kt','length','sort','entries','__importStar','trim','/\x20(','stringify','path','\x20directories,\x20','.db','[code\x20skeleton]\x20','.class','collapseWhitespace','startsWith','__setModuleDefault','5VLdvkW','.js','filterLs','.min.js','export\x20','\x20more\x20directories','.woff','getConfig','.tsx','.tar.gz','.woff2','call','.rs','import\x20','\x20directories','package-lock.json','configurable','[lock\x20file]\x20','.ts','.jsx','.tgz','default','filterFind','get','dirname','.zip','1613330HQIsKG','push','.cpp','composer.lock','writable','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','.jpg','.7z','.avi','#include\x20','getOwnPropertyNames','\x20lines\x20total)','some','[binary/minified\x20file]\x20','492jrtFdi','poetry.lock','keys','yarn.lock','extname','\x20more\x20files\x20with\x20matches','hasOwnProperty','\x20files)','.pdf','packages','use\x20','No\x20files\x20found','.bin','skeleton','split','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','\x20matches\x20in\x20this\x20file)','includes'];a0_0x8f00=function(){return _0x3db402;};return a0_0x8f00();}function extractFilename(_0x41b508){const _0x517ec3=a0_0x10ff8c,_0x420871=_0x41b508[_0x517ec3(0xe1)]()[_0x517ec3(0x122)](/\s+/);for(let _0x2ae28b=0x1;_0x2ae28b<_0x420871[_0x517ec3(0xdd)];_0x2ae28b++){if(!_0x420871[_0x2ae28b][_0x517ec3(0xea)]('-'))return _0x420871[_0x2ae28b];}return null;}function filterLockFile(_0x3095e2,_0xeb1c5a){const _0x564624=a0_0x10ff8c;try{const _0x8c39e8=path[_0x564624(0x137)](_0xeb1c5a)[_0x564624(0xd5)]();if(!LOCK_FILES[_0x564624(0x112)](_0x3fe4d2=>_0x8c39e8===_0x3fe4d2[_0x564624(0xd5)]()))return null;const _0x236e65=_0x3095e2[_0x564624(0xdd)];let _0x5c29ff=0x0;if(_0x8c39e8===_0x564624(0xfb))try{const _0x404c81=JSON[_0x564624(0xb6)](_0x3095e2);_0x5c29ff=Object['keys'](_0x404c81[_0x564624(0x11d)]||_0x404c81[_0x564624(0x12f)]||{})[_0x564624(0xdd)];}catch{_0x5c29ff=(_0x3095e2[_0x564624(0x13b)](/"resolved":/g)||[])[_0x564624(0xdd)];}else{if(_0x8c39e8===_0x564624(0x117))_0x5c29ff=(_0x3095e2['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x564624(0xdd)];else{if(_0x8c39e8==='cargo.lock'||_0x8c39e8===_0x564624(0x115))_0x5c29ff=(_0x3095e2[_0x564624(0x13b)](/\[\[package\]\]/g)||[])['length'];else{if(_0x8c39e8===_0x564624(0xbb))_0x5c29ff=Math[_0x564624(0xba)](_0x3095e2[_0x564624(0x122)]('\x0a')[_0x564624(0xc1)](_0x30f3ee=>_0x30f3ee['trim']())[_0x564624(0xdd)]/0x2);else{if(_0x8c39e8===_0x564624(0x109))try{_0x5c29ff=JSON[_0x564624(0xb6)](_0x3095e2)[_0x564624(0x11d)]?.[_0x564624(0xdd)]||0x0;}catch{}else _0x8c39e8===_0x564624(0xc6)?_0x5c29ff=(_0x3095e2[_0x564624(0x13b)](/^\s{2}['"@a-z]/gm)||[])[_0x564624(0xdd)]:_0x5c29ff=_0x3095e2[_0x564624(0x122)]('\x0a')[_0x564624(0xc1)](_0x1d6536=>_0x1d6536[_0x564624(0xe1)]())[_0x564624(0xdd)];}}}}return _0x564624(0xfd)+path['basename'](_0xeb1c5a)+':\x20'+_0x5c29ff+'\x20dependencies,\x20'+_0x236e65['toLocaleString']()+_0x564624(0x10b);}catch{return null;}}function filterBinaryOrMinified(_0x38a22e,_0x17088c){const _0x4f7b03=a0_0x10ff8c;try{if(_0x17088c){const _0x47d364=_0x17088c['toLowerCase']();for(const _0x4e59c8 of BINARY_EXTENSIONS){if(_0x47d364[_0x4f7b03(0xb4)](_0x4e59c8))return _0x4f7b03(0x113)+path[_0x4f7b03(0x137)](_0x17088c)+',\x20'+_0x38a22e['length'][_0x4f7b03(0xc9)]()+_0x4f7b03(0xbf)+_0x4e59c8+_0x4f7b03(0x123);}}const _0x997a1a=_0x38a22e[_0x4f7b03(0x148)](0x0,0x3e8);let _0x53f1cc=0x0;for(let _0x26ce35=0x0;_0x26ce35<_0x997a1a['length'];_0x26ce35++){if(_0x997a1a[_0x4f7b03(0x12b)](_0x26ce35)===0x0)_0x53f1cc++;}if(_0x53f1cc>0x0)return _0x4f7b03(0x127)+_0x38a22e['length'][_0x4f7b03(0xc9)]()+'\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)';let _0x4bcd47=0x0;for(let _0xd39c71=0x0;_0xd39c71<_0x997a1a[_0x4f7b03(0xdd)];_0xd39c71++){const _0x1f35f7=_0x997a1a[_0x4f7b03(0x12b)](_0xd39c71);if(_0x1f35f7<0x20&&_0x1f35f7!==0xa&&_0x1f35f7!==0xd&&_0x1f35f7!==0x9)_0x4bcd47++;}if(_0x997a1a['length']>0x64&&_0x4bcd47>_0x997a1a[_0x4f7b03(0xdd)]*0.1)return'[binary\x20file]\x20'+_0x38a22e[_0x4f7b03(0xdd)][_0x4f7b03(0xc9)]()+_0x4f7b03(0xb0);const _0x2469da=_0x38a22e[_0x4f7b03(0x122)]('\x0a');if(_0x2469da['length']<=0x3&&_0x38a22e['length']>0x1388)return _0x4f7b03(0xc0)+_0x38a22e[_0x4f7b03(0xdd)][_0x4f7b03(0xc9)]()+'\x20chars\x20across\x20'+_0x2469da['length']+_0x4f7b03(0xc8);return null;}catch{return null;}}function filterJsonMinify(_0x32ee0d){const _0x293786=a0_0x10ff8c;try{const _0x592ce8=_0x32ee0d[_0x293786(0xe1)]();if(!_0x592ce8[_0x293786(0xea)]('{')&&!_0x592ce8['startsWith']('['))return null;const _0x11475b=_0x592ce8['split']('\x0a');if(_0x11475b[_0x293786(0xdd)]<=0x14)return null;const _0x5825ba=JSON['parse'](_0x592ce8),_0x376310=JSON[_0x293786(0xe3)](_0x5825ba);if(_0x376310[_0x293786(0xdd)]<_0x592ce8['length'])return _0x376310;return null;}catch{return null;}}function filterLs(_0x289fb5){const _0x205fb2=a0_0x10ff8c,_0x3de095=_0x289fb5[_0x205fb2(0x122)]('\x0a')[_0x205fb2(0xc1)](_0x444e51=>_0x444e51[_0x205fb2(0xe1)]()[_0x205fb2(0xdd)]>0x0);if(_0x3de095[_0x205fb2(0xdd)]===0x0)return _0x205fb2(0xd2);if(_0x3de095[_0x205fb2(0xdd)]<=0x1e)return _0x289fb5['trim']();const _0x20791d=[],_0x4f0c25=[];for(const _0x3d6bc2 of _0x3de095){const _0x5c19f5=_0x3d6bc2[_0x205fb2(0xe1)]();if(_0x5c19f5[_0x205fb2(0xea)]('total\x20')||_0x5c19f5[_0x205fb2(0xea)]('d')&&_0x5c19f5[_0x205fb2(0x125)]('..'))continue;_0x5c19f5[_0x205fb2(0xb4)]('/')||_0x5c19f5[_0x205fb2(0xea)]('d')&&_0x5c19f5[_0x205fb2(0x125)]('\x20')?_0x20791d[_0x205fb2(0x107)](_0x5c19f5):_0x4f0c25[_0x205fb2(0x107)](_0x5c19f5);}const _0x25e457=[];return _0x20791d[_0x205fb2(0xdd)]>0x0&&(_0x20791d[_0x205fb2(0xdd)]<=0xf?_0x25e457[_0x205fb2(0x107)](..._0x20791d):(_0x25e457[_0x205fb2(0x107)](..._0x20791d[_0x205fb2(0xcb)](0x0,0xa)),_0x25e457[_0x205fb2(0x107)](_0x205fb2(0xd1)+(_0x20791d[_0x205fb2(0xdd)]-0xa)+_0x205fb2(0xf1)))),_0x4f0c25[_0x205fb2(0xdd)]>0x0&&(_0x4f0c25[_0x205fb2(0xdd)]<=0x14?_0x25e457[_0x205fb2(0x107)](..._0x4f0c25):(_0x25e457[_0x205fb2(0x107)](..._0x4f0c25[_0x205fb2(0xcb)](0x0,0xf)),_0x25e457[_0x205fb2(0x107)]('...\x20+'+(_0x4f0c25[_0x205fb2(0xdd)]-0xf)+_0x205fb2(0x129)))),_0x25e457[_0x205fb2(0x107)]('\x0a('+_0x20791d['length']+_0x205fb2(0xe5)+_0x4f0c25['length']+_0x205fb2(0x11b)),_0x25e457['join']('\x0a');}function filterTree(_0xd267fa){const _0x455d57=a0_0x10ff8c,_0x51911c=_0xd267fa['split']('\x0a');if(_0x51911c[_0x455d57(0xdd)]<=0x32)return _0xd267fa['trim']();const _0x653a2b=[];let _0x42211b=0x0,_0x47f601=0x0,_0x16c7d2=0x0;for(const _0xbcf2fd of _0x51911c){const _0x3e683e=_0xbcf2fd[_0x455d57(0x13b)](/(\d+)\s+director/),_0x7497d4=_0xbcf2fd[_0x455d57(0x13b)](/(\d+)\s+file/);if(_0x3e683e)_0x16c7d2=parseInt(_0x3e683e[0x1]);if(_0x7497d4)_0x47f601=parseInt(_0x7497d4[0x1]);const _0x3674f4=(_0xbcf2fd[_0x455d57(0x13b)](/^[│├└\s─]+/)||[''])[0x0][_0x455d57(0xdd)];_0x3674f4<=0x4&&(_0x653a2b['push'](_0xbcf2fd),_0x42211b++);}return _0x51911c['length']>_0x653a2b[_0x455d57(0xdd)]&&_0x653a2b[_0x455d57(0x107)]('\x0a...\x20('+_0x16c7d2+_0x455d57(0xe5)+_0x47f601+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x653a2b[_0x455d57(0xc5)]('\x0a');}function filterCat(_0x35105e,_0xb83aa1=''){const _0x2fcb03=a0_0x10ff8c,_0x48a4a8=extractFilename(_0xb83aa1);try{if(_0x48a4a8&&isFeatureEnabled('lock')){const _0x11cf90=filterLockFile(_0x35105e,_0x48a4a8);if(_0x11cf90)return _0x11cf90;}if(isFeatureEnabled(_0x2fcb03(0xb3))){const _0x45b216=filterBinaryOrMinified(_0x35105e,_0x48a4a8);if(_0x45b216)return _0x45b216;}if(isFeatureEnabled('json_crusher')){const _0xdae54e=(0x0,generic_1['smartCrushJson'])(_0x35105e);if(_0xdae54e)return _0xdae54e;}const _0x53b46d=filterJsonMinify(_0x35105e);if(_0x53b46d)return _0x53b46d;if(_0x48a4a8&&isFeatureEnabled(_0x2fcb03(0x121))){const _0x349260=path[_0x2fcb03(0x118)](_0x48a4a8)[_0x2fcb03(0xd5)](),_0x4ef5f8=[_0x2fcb03(0xfe),_0x2fcb03(0xed),_0x2fcb03(0xf4),_0x2fcb03(0xff),_0x2fcb03(0xd8),_0x2fcb03(0xc4),_0x2fcb03(0xf8),_0x2fcb03(0x140),'.c',_0x2fcb03(0x108),_0x2fcb03(0x144),'.rb','.swift',_0x2fcb03(0xdc)];if(_0x4ef5f8[_0x2fcb03(0x125)](_0x349260)){const _0x41732b=_0x35105e[_0x2fcb03(0x122)]('\x0a');if(_0x41732b[_0x2fcb03(0xdd)]>0x64){const _0x69da09=[];_0x69da09[_0x2fcb03(0x107)](_0x2fcb03(0xe7)+path[_0x2fcb03(0x137)](_0x48a4a8)+'\x20('+_0x41732b['length']+'\x20lines)'),_0x69da09[_0x2fcb03(0x107)]('');for(const _0x45e52a of _0x41732b){const _0x4ffae5=_0x45e52a['trim']();if(_0x4ffae5['startsWith'](_0x2fcb03(0xf9))||_0x4ffae5['startsWith'](_0x2fcb03(0xb9))||_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0x133))||_0x4ffae5[_0x2fcb03(0x13b)](/=\s*require\(/)||_0x4ffae5['startsWith'](_0x2fcb03(0x10f))||_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0x11e))||_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0xdb)))_0x69da09[_0x2fcb03(0x107)](_0x45e52a);else{if(_0x4ffae5[_0x2fcb03(0x13b)](/^(export\s+)?(async\s+)?function\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(export\s+)?(default\s+)?class\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(export\s+)?(type|interface|enum)\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(async\s+)?def\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^func\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^type\s+\w+\s+(struct|interface)/)||_0x4ffae5['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(public|private|protected|static)\s+/))_0x69da09[_0x2fcb03(0x107)](_0x45e52a);else{if(_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0xf0))&&!_0x4ffae5[_0x2fcb03(0x125)]('=>')&&_0x4ffae5['length']<0x78)_0x69da09['push'](_0x45e52a);else _0x4ffae5['startsWith']('@')&&!_0x4ffae5[_0x2fcb03(0xea)]('@param')&&!_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0x142))&&_0x69da09['push'](_0x45e52a);}}}_0x69da09[_0x2fcb03(0x107)](''),_0x69da09['push']('('+_0x41732b[_0x2fcb03(0xdd)]+'\x20lines\x20total,\x20'+(_0x69da09[_0x2fcb03(0xdd)]-0x2)+_0x2fcb03(0x134));const _0x50a268=_0x69da09['join']('\x0a');if(_0x50a268[_0x2fcb03(0xdd)]<_0x35105e[_0x2fcb03(0xdd)])return _0x50a268;}}}}catch{}let _0x2c0b65=(0x0,generic_1[_0x2fcb03(0xe9)])(_0x35105e);if(_0x48a4a8){const _0x25d0a7=path[_0x2fcb03(0x118)](_0x48a4a8)[_0x2fcb03(0xd5)]();_0x2c0b65=(0x0,generic_1[_0x2fcb03(0xbe)])(_0x2c0b65,_0x25d0a7);}const _0x418560=_0x2c0b65[_0x2fcb03(0x122)]('\x0a');if(_0x418560[_0x2fcb03(0xdd)]<=0x64)return _0x2c0b65;const _0x5480d4=[];return _0x5480d4['push'](..._0x418560[_0x2fcb03(0xcb)](0x0,0x32)),_0x5480d4[_0x2fcb03(0x107)](_0x2fcb03(0x12d)+(_0x418560[_0x2fcb03(0xdd)]-0x50)+_0x2fcb03(0xb7)),_0x5480d4[_0x2fcb03(0x107)](..._0x418560['slice'](-0x1e)),_0x5480d4[_0x2fcb03(0x107)]('\x0a('+_0x418560[_0x2fcb03(0xdd)]+_0x2fcb03(0x111)),_0x5480d4[_0x2fcb03(0xc5)]('\x0a');}function filterGrep(_0x46c930){const _0x5639ee=a0_0x10ff8c,_0x3a7e0a=_0x46c930[_0x5639ee(0x122)]('\x0a')['filter'](_0x51cf73=>_0x51cf73[_0x5639ee(0xe1)]()[_0x5639ee(0xdd)]>0x0);if(_0x3a7e0a[_0x5639ee(0xdd)]===0x0)return _0x5639ee(0x147);if(_0x3a7e0a[_0x5639ee(0xdd)]<=0x32)return _0x46c930['trim']();const _0x56cce3={},_0x3daa7f=[];for(const _0x48f462 of _0x3a7e0a){const _0x2c8a3c=_0x48f462['indexOf'](':');if(_0x2c8a3c>0x0&&_0x2c8a3c<0xc8){const _0x4bf8b8=_0x48f462[_0x5639ee(0x148)](0x0,_0x2c8a3c);if(_0x4bf8b8['includes']('/')||_0x4bf8b8[_0x5639ee(0x125)]('\x5c')||_0x4bf8b8[_0x5639ee(0x125)]('.')){if(!_0x56cce3[_0x4bf8b8])_0x56cce3[_0x4bf8b8]=[];_0x56cce3[_0x4bf8b8][_0x5639ee(0x107)](_0x48f462[_0x5639ee(0x148)](_0x2c8a3c+0x1)[_0x5639ee(0xe1)]());continue;}}_0x3daa7f[_0x5639ee(0x107)](_0x48f462);}const _0x371a75=[],_0x45942e=Object[_0x5639ee(0x116)](_0x56cce3);if(_0x45942e[_0x5639ee(0xdd)]>0x0){const _0x42672d=0x14,_0x185e18=_0x45942e[_0x5639ee(0xcb)](0x0,_0x42672d);for(const _0x3a39b2 of _0x185e18){const _0x95540e=_0x56cce3[_0x3a39b2];if(_0x95540e[_0x5639ee(0xdd)]<=0x3)for(const _0x2d0e95 of _0x95540e){_0x371a75[_0x5639ee(0x107)](_0x3a39b2+':\x20'+_0x2d0e95);}else _0x371a75[_0x5639ee(0x107)](_0x3a39b2+':\x20'+_0x95540e[0x0]),_0x371a75[_0x5639ee(0x107)](_0x3a39b2+':\x20...\x20('+_0x95540e[_0x5639ee(0xdd)]+_0x5639ee(0x124));}_0x45942e[_0x5639ee(0xdd)]>_0x42672d&&_0x371a75[_0x5639ee(0x107)](_0x5639ee(0xd1)+(_0x45942e['length']-_0x42672d)+_0x5639ee(0x119));}if(_0x3daa7f[_0x5639ee(0xdd)]>0x0){const _0x3e45b4=0x1e;_0x371a75[_0x5639ee(0x107)](..._0x3daa7f['slice'](0x0,_0x3e45b4)),_0x3daa7f[_0x5639ee(0xdd)]>_0x3e45b4&&_0x371a75[_0x5639ee(0x107)](_0x5639ee(0xd1)+(_0x3daa7f[_0x5639ee(0xdd)]-_0x3e45b4)+'\x20more\x20matches');}const _0xa0e1d8=_0x3a7e0a[_0x5639ee(0xdd)];return _0x371a75['push']('\x0a('+_0xa0e1d8+_0x5639ee(0x139)+(_0x45942e['length']||'?')+_0x5639ee(0x11b)),_0x371a75[_0x5639ee(0xc5)]('\x0a');}function a0_0x30d5(_0x16c18b,_0xe06e31){_0x16c18b=_0x16c18b-0xb0;const _0x8f002e=a0_0x8f00();let _0x30d5e4=_0x8f002e[_0x16c18b];return _0x30d5e4;}function filterFind(_0x49d12c){const _0x322873=a0_0x10ff8c,_0x330db2=_0x49d12c['split']('\x0a')[_0x322873(0xc1)](_0x5a5535=>_0x5a5535[_0x322873(0xe1)]()[_0x322873(0xdd)]>0x0);if(_0x330db2[_0x322873(0xdd)]===0x0)return _0x322873(0x11f);if(_0x330db2[_0x322873(0xdd)]<=0x32)return _0x49d12c['trim']();const _0x342675={};for(const _0x21b733 of _0x330db2){const _0x423531=path[_0x322873(0x104)](_0x21b733[_0x322873(0xe1)]())||'.';_0x342675[_0x423531]=(_0x342675[_0x423531]||0x0)+0x1;}const _0x519e04=Object[_0x322873(0xdf)](_0x342675)[_0x322873(0xde)]((_0x274136,_0xc01b8f)=>_0xc01b8f[0x1]-_0x274136[0x1]),_0x4674a4=[_0x330db2[_0x322873(0xdd)]+_0x322873(0x13e)+_0x519e04[_0x322873(0xdd)]+_0x322873(0xfa),''],_0x47ce4d=0x1e;for(const [_0x32b61f,_0x3b4f07]of _0x519e04[_0x322873(0xcb)](0x0,_0x47ce4d)){_0x4674a4[_0x322873(0x107)]('\x20\x20'+_0x32b61f+_0x322873(0xe2)+_0x3b4f07+'\x20files)');}return _0x519e04[_0x322873(0xdd)]>_0x47ce4d&&_0x4674a4[_0x322873(0x107)]('\x20\x20...\x20+'+(_0x519e04[_0x322873(0xdd)]-_0x47ce4d)+_0x322873(0xf1)),_0x4674a4[_0x322873(0xc5)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x41b3bf=a0_0x21cb;(function(_0x7cb930,_0x204251){const _0x22368a=a0_0x21cb,_0x3cf849=_0x7cb930();while(!![]){try{const _0x1324f1=-parseInt(_0x22368a(0x234))/0x1*(parseInt(_0x22368a(0x233))/0x2)+parseInt(_0x22368a(0x208))/0x3+parseInt(_0x22368a(0x261))/0x4+parseInt(_0x22368a(0x242))/0x5+-parseInt(_0x22368a(0x1f2))/0x6+-parseInt(_0x22368a(0x25c))/0x7+parseInt(_0x22368a(0x22e))/0x8*(parseInt(_0x22368a(0x243))/0x9);if(_0x1324f1===_0x204251)break;else _0x3cf849['push'](_0x3cf849['shift']());}catch(_0x492e77){_0x3cf849['push'](_0x3cf849['shift']());}}}(a0_0x41d9,0x32605));function a0_0x21cb(_0x156ea5,_0x401542){_0x156ea5=_0x156ea5-0x1ed;const _0x41d960=a0_0x41d9();let _0x21cb6c=_0x41d960[_0x156ea5];return _0x21cb6c;}var __createBinding=this&&this[a0_0x41b3bf(0x26d)]||(Object[a0_0x41b3bf(0x1ee)]?function(_0x5a6156,_0x9956e6,_0x47a15c,_0x12e636){const _0x386678=a0_0x41b3bf;if(_0x12e636===undefined)_0x12e636=_0x47a15c;var _0x4e9eae=Object[_0x386678(0x272)](_0x9956e6,_0x47a15c);(!_0x4e9eae||(_0x386678(0x20a)in _0x4e9eae?!_0x9956e6[_0x386678(0x1fc)]:_0x4e9eae[_0x386678(0x220)]||_0x4e9eae[_0x386678(0x211)]))&&(_0x4e9eae={'enumerable':!![],'get':function(){return _0x9956e6[_0x47a15c];}}),Object['defineProperty'](_0x5a6156,_0x12e636,_0x4e9eae);}:function(_0x525b02,_0x33a51e,_0x10a856,_0x23128f){if(_0x23128f===undefined)_0x23128f=_0x10a856;_0x525b02[_0x23128f]=_0x33a51e[_0x10a856];}),__setModuleDefault=this&&this[a0_0x41b3bf(0x27b)]||(Object[a0_0x41b3bf(0x1ee)]?function(_0x1c768f,_0x201ad2){const _0x231943=a0_0x41b3bf;Object[_0x231943(0x26e)](_0x1c768f,_0x231943(0x236),{'enumerable':!![],'value':_0x201ad2});}:function(_0x34d27e,_0x5588ca){const _0x15ae58=a0_0x41b3bf;_0x34d27e[_0x15ae58(0x236)]=_0x5588ca;}),__importStar=this&&this[a0_0x41b3bf(0x24d)]||(function(){var _0x95d32d=function(_0x2f2a0d){return _0x95d32d=Object['getOwnPropertyNames']||function(_0x21b649){const _0x2a7c56=a0_0x21cb;var _0x26ee0=[];for(var _0x2ce1ca in _0x21b649)if(Object[_0x2a7c56(0x275)][_0x2a7c56(0x1f9)]['call'](_0x21b649,_0x2ce1ca))_0x26ee0[_0x26ee0[_0x2a7c56(0x260)]]=_0x2ce1ca;return _0x26ee0;},_0x95d32d(_0x2f2a0d);};return function(_0x36286c){const _0xd1b123=a0_0x21cb;if(_0x36286c&&_0x36286c[_0xd1b123(0x1fc)])return _0x36286c;var _0x2f1752={};if(_0x36286c!=null){for(var _0x1cfea8=_0x95d32d(_0x36286c),_0x9f8087=0x0;_0x9f8087<_0x1cfea8[_0xd1b123(0x260)];_0x9f8087++)if(_0x1cfea8[_0x9f8087]!==_0xd1b123(0x236))__createBinding(_0x2f1752,_0x36286c,_0x1cfea8[_0x9f8087]);}return __setModuleDefault(_0x2f1752,_0x36286c),_0x2f1752;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x41b3bf(0x226)]=filterLs,exports[a0_0x41b3bf(0x276)]=filterTree,exports[a0_0x41b3bf(0x1fd)]=filterCat,exports[a0_0x41b3bf(0x27f)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x41b3bf(0x1f8))),generic_1=require(a0_0x41b3bf(0x268)),tracker_1=require('../tracker');function isFeatureEnabled(_0x363f7b){const _0x3cc333=a0_0x41b3bf;try{const _0x4eb3e6=tracker_1[_0x3cc333(0x223)][_0x3cc333(0x1f3)](),_0x5e36dd=_0x4eb3e6['features_enabled'];if(!_0x5e36dd||_0x5e36dd[_0x363f7b]===undefined)return!![];return _0x5e36dd[_0x363f7b]!==![];}catch{return!![];}}function a0_0x41d9(){const _0x2e9775=['pnpm-lock.yaml','.ttf','\x0a...\x20[','[binary\x20file]\x20','.avi','charCodeAt','.js','dirname','__importStar','indexOf','.jsx','go.sum','stringify','composer.lock','extname','\x20lines\x20total,\x20','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','toLowerCase','slice','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','.dat','join','1336741uWKOuy','\x20more\x20files','\x20structural\x20lines\x20shown)','.eot','length','157584bJbwSV','basename','endsWith','.mp4','@return','.tgz','.dll','./generic','match','stripComments','.mp3','Cargo.lock','__createBinding','defineProperty','.svg','export\x20','binary','getOwnPropertyDescriptor','.bz2','.webm','prototype','filterTree','.min.css','trim','.db','Empty\x20directory','__setModuleDefault','startsWith','.rs','.woff','filterGrep','.pyc','.pdf','\x20chars,\x20type:\x20','#include\x20','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.woff2','.png','create','push','.go','poetry.lock','2427648HSLHGL','getConfig','.otf','.rar','...\x20+','No\x20matches\x20found','path','hasOwnProperty','Gemfile.lock','.java','__esModule','filterCat','.gz','No\x20files\x20found','\x20directories,\x20','filter','some','bun.lockb','substring','.bin','yarn.lock','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','569475kgvREJ','@param','get','.jpg','.bmp','\x20more\x20matches','[minified\x20file]\x20','\x20matches\x20in\x20this\x20file)','.gif','configurable','dependencies','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','.7z','\x20\x20...\x20+','packages','.jpeg','.zip','.sqlite3','.webp','.cs','.ts','.min.js','parse','import\x20','writable','\x0a...\x20(','.kt','tracker','package\x20','entries','filterLs','.tsx','[binary/minified\x20file]\x20','split','.tar.gz','use\x20','\x20more\x20directories','includes','6482352AksNtF','\x20lines\x20total)','keys','.dylib','toLocaleString','354vhKSiZ','1401cxDsWh','.ico','default','\x20files)','.rb','\x20files\x20found\x20across\x20','.wasm','.wav','.map','\x20dependencies,\x20','cargo.lock','.py','skeleton','require(','51870ObiNtA','9FAVEJN','\x20matches\x20across\x20'];a0_0x41d9=function(){return _0x2e9775;};return a0_0x41d9();}const LOCK_FILES=['package-lock.json',a0_0x41b3bf(0x206),a0_0x41b3bf(0x245),a0_0x41b3bf(0x26c),a0_0x41b3bf(0x250),a0_0x41b3bf(0x1f1),a0_0x41b3bf(0x252),a0_0x41b3bf(0x1fa),a0_0x41b3bf(0x203)],BINARY_EXTENSIONS=[a0_0x41b3bf(0x21d),a0_0x41b3bf(0x277),a0_0x41b3bf(0x23c),a0_0x41b3bf(0x23a),a0_0x41b3bf(0x1ed),a0_0x41b3bf(0x20b),a0_0x41b3bf(0x217),a0_0x41b3bf(0x210),a0_0x41b3bf(0x235),a0_0x41b3bf(0x20c),a0_0x41b3bf(0x21a),a0_0x41b3bf(0x26f),a0_0x41b3bf(0x281),a0_0x41b3bf(0x218),a0_0x41b3bf(0x22a),a0_0x41b3bf(0x266),a0_0x41b3bf(0x1fe),a0_0x41b3bf(0x273),a0_0x41b3bf(0x214),a0_0x41b3bf(0x1f5),'.exe',a0_0x41b3bf(0x267),'.so',a0_0x41b3bf(0x231),a0_0x41b3bf(0x205),a0_0x41b3bf(0x25a),'.sqlite',a0_0x41b3bf(0x279),a0_0x41b3bf(0x219),a0_0x41b3bf(0x27e),a0_0x41b3bf(0x285),a0_0x41b3bf(0x246),a0_0x41b3bf(0x25f),a0_0x41b3bf(0x1f4),a0_0x41b3bf(0x26b),a0_0x41b3bf(0x264),a0_0x41b3bf(0x23b),a0_0x41b3bf(0x249),'.mov',a0_0x41b3bf(0x274),a0_0x41b3bf(0x280),'.pyo','.class','.o','.obj'];function extractFilename(_0x3c9a9f){const _0x2539c8=a0_0x41b3bf,_0x1cb328=_0x3c9a9f[_0x2539c8(0x278)]()[_0x2539c8(0x229)](/\s+/);for(let _0x327ee3=0x1;_0x327ee3<_0x1cb328[_0x2539c8(0x260)];_0x327ee3++){if(!_0x1cb328[_0x327ee3][_0x2539c8(0x27c)]('-'))return _0x1cb328[_0x327ee3];}return null;}function filterLockFile(_0x515b2c,_0x333f42){const _0x26e748=a0_0x41b3bf;try{const _0x6c11bf=path[_0x26e748(0x262)](_0x333f42)['toLowerCase']();if(!LOCK_FILES[_0x26e748(0x202)](_0xfd6c9b=>_0x6c11bf===_0xfd6c9b[_0x26e748(0x257)]()))return null;const _0x3750f8=_0x515b2c[_0x26e748(0x260)];let _0x59b5c0=0x0;if(_0x6c11bf==='package-lock.json')try{const _0x3e4795=JSON[_0x26e748(0x21e)](_0x515b2c);_0x59b5c0=Object[_0x26e748(0x230)](_0x3e4795[_0x26e748(0x216)]||_0x3e4795[_0x26e748(0x212)]||{})[_0x26e748(0x260)];}catch{_0x59b5c0=(_0x515b2c[_0x26e748(0x269)](/"resolved":/g)||[])[_0x26e748(0x260)];}else{if(_0x6c11bf===_0x26e748(0x206))_0x59b5c0=(_0x515b2c[_0x26e748(0x269)](/^"?[^#\s][^:]*:$/gm)||[])[_0x26e748(0x260)];else{if(_0x6c11bf===_0x26e748(0x23e)||_0x6c11bf===_0x26e748(0x1f1))_0x59b5c0=(_0x515b2c[_0x26e748(0x269)](/\[\[package\]\]/g)||[])[_0x26e748(0x260)];else{if(_0x6c11bf===_0x26e748(0x250))_0x59b5c0=Math['floor'](_0x515b2c['split']('\x0a')[_0x26e748(0x201)](_0x5356c0=>_0x5356c0['trim']())[_0x26e748(0x260)]/0x2);else{if(_0x6c11bf===_0x26e748(0x252))try{_0x59b5c0=JSON[_0x26e748(0x21e)](_0x515b2c)[_0x26e748(0x216)]?.[_0x26e748(0x260)]||0x0;}catch{}else _0x6c11bf===_0x26e748(0x245)?_0x59b5c0=(_0x515b2c['match'](/^\s{2}['"@a-z]/gm)||[])[_0x26e748(0x260)]:_0x59b5c0=_0x515b2c[_0x26e748(0x229)]('\x0a')[_0x26e748(0x201)](_0x1c46d5=>_0x1c46d5[_0x26e748(0x278)]())[_0x26e748(0x260)];}}}}return'[lock\x20file]\x20'+path['basename'](_0x333f42)+':\x20'+_0x59b5c0+_0x26e748(0x23d)+_0x3750f8['toLocaleString']()+_0x26e748(0x213);}catch{return null;}}function filterBinaryOrMinified(_0x31e729,_0x4625df){const _0x466009=a0_0x41b3bf;try{if(_0x4625df){const _0x296a02=_0x4625df[_0x466009(0x257)]();for(const _0x378911 of BINARY_EXTENSIONS){if(_0x296a02[_0x466009(0x263)](_0x378911))return _0x466009(0x228)+path[_0x466009(0x262)](_0x4625df)+',\x20'+_0x31e729['length']['toLocaleString']()+_0x466009(0x282)+_0x378911+_0x466009(0x256);}}const _0x3e8d54=_0x31e729[_0x466009(0x204)](0x0,0x3e8);let _0x1594c4=0x0;for(let _0x36b186=0x0;_0x36b186<_0x3e8d54[_0x466009(0x260)];_0x36b186++){if(_0x3e8d54[_0x466009(0x24a)](_0x36b186)===0x0)_0x1594c4++;}if(_0x1594c4>0x0)return _0x466009(0x248)+_0x31e729[_0x466009(0x260)][_0x466009(0x232)]()+_0x466009(0x207);let _0x5bbf32=0x0;for(let _0x431cb0=0x0;_0x431cb0<_0x3e8d54[_0x466009(0x260)];_0x431cb0++){const _0x4acaa5=_0x3e8d54[_0x466009(0x24a)](_0x431cb0);if(_0x4acaa5<0x20&&_0x4acaa5!==0xa&&_0x4acaa5!==0xd&&_0x4acaa5!==0x9)_0x5bbf32++;}if(_0x3e8d54[_0x466009(0x260)]>0x64&&_0x5bbf32>_0x3e8d54[_0x466009(0x260)]*0.1)return'[binary\x20file]\x20'+_0x31e729[_0x466009(0x260)][_0x466009(0x232)]()+_0x466009(0x255);const _0x366abd=_0x31e729[_0x466009(0x229)]('\x0a');if(_0x366abd['length']<=0x3&&_0x31e729[_0x466009(0x260)]>0x1388)return _0x466009(0x20e)+_0x31e729[_0x466009(0x260)][_0x466009(0x232)]()+'\x20chars\x20across\x20'+_0x366abd[_0x466009(0x260)]+_0x466009(0x259);return null;}catch{return null;}}function filterJsonMinify(_0x5730c7){const _0x5f1e7b=a0_0x41b3bf;try{const _0x553050=_0x5730c7['trim']();if(!_0x553050[_0x5f1e7b(0x27c)]('{')&&!_0x553050[_0x5f1e7b(0x27c)]('['))return null;const _0x462875=_0x553050[_0x5f1e7b(0x229)]('\x0a');if(_0x462875['length']<=0x14)return null;const _0x59c272=JSON[_0x5f1e7b(0x21e)](_0x553050),_0x387fdd=JSON[_0x5f1e7b(0x251)](_0x59c272);if(_0x387fdd[_0x5f1e7b(0x260)]<_0x553050[_0x5f1e7b(0x260)])return _0x387fdd;return null;}catch{return null;}}function filterLs(_0x2066b1){const _0x1ef58a=a0_0x41b3bf,_0xfb454e=_0x2066b1['split']('\x0a')[_0x1ef58a(0x201)](_0x55f2c7=>_0x55f2c7[_0x1ef58a(0x278)]()[_0x1ef58a(0x260)]>0x0);if(_0xfb454e[_0x1ef58a(0x260)]===0x0)return _0x1ef58a(0x27a);if(_0xfb454e['length']<=0x1e)return _0x2066b1[_0x1ef58a(0x278)]();const _0x2a9eea=[],_0xc6172f=[];for(const _0x23cd47 of _0xfb454e){const _0x5dc5f6=_0x23cd47[_0x1ef58a(0x278)]();if(_0x5dc5f6['startsWith']('total\x20')||_0x5dc5f6[_0x1ef58a(0x27c)]('d')&&_0x5dc5f6[_0x1ef58a(0x22d)]('..'))continue;_0x5dc5f6[_0x1ef58a(0x263)]('/')||_0x5dc5f6[_0x1ef58a(0x27c)]('d')&&_0x5dc5f6[_0x1ef58a(0x22d)]('\x20')?_0x2a9eea['push'](_0x5dc5f6):_0xc6172f[_0x1ef58a(0x1ef)](_0x5dc5f6);}const _0x45e706=[];return _0x2a9eea[_0x1ef58a(0x260)]>0x0&&(_0x2a9eea['length']<=0xf?_0x45e706[_0x1ef58a(0x1ef)](..._0x2a9eea):(_0x45e706['push'](..._0x2a9eea[_0x1ef58a(0x258)](0x0,0xa)),_0x45e706[_0x1ef58a(0x1ef)]('...\x20+'+(_0x2a9eea[_0x1ef58a(0x260)]-0xa)+_0x1ef58a(0x22c)))),_0xc6172f[_0x1ef58a(0x260)]>0x0&&(_0xc6172f[_0x1ef58a(0x260)]<=0x14?_0x45e706[_0x1ef58a(0x1ef)](..._0xc6172f):(_0x45e706[_0x1ef58a(0x1ef)](..._0xc6172f[_0x1ef58a(0x258)](0x0,0xf)),_0x45e706[_0x1ef58a(0x1ef)](_0x1ef58a(0x1f6)+(_0xc6172f[_0x1ef58a(0x260)]-0xf)+_0x1ef58a(0x25d)))),_0x45e706[_0x1ef58a(0x1ef)]('\x0a('+_0x2a9eea[_0x1ef58a(0x260)]+_0x1ef58a(0x200)+_0xc6172f[_0x1ef58a(0x260)]+_0x1ef58a(0x237)),_0x45e706[_0x1ef58a(0x25b)]('\x0a');}function filterTree(_0x106110){const _0x4834f0=a0_0x41b3bf,_0x519d87=_0x106110[_0x4834f0(0x229)]('\x0a');if(_0x519d87[_0x4834f0(0x260)]<=0x32)return _0x106110[_0x4834f0(0x278)]();const _0x43beec=[];let _0x371dad=0x0,_0x44d5e8=0x0,_0x129841=0x0;for(const _0x2b7c45 of _0x519d87){const _0x46fb49=_0x2b7c45[_0x4834f0(0x269)](/(\d+)\s+director/),_0x3cd02a=_0x2b7c45['match'](/(\d+)\s+file/);if(_0x46fb49)_0x129841=parseInt(_0x46fb49[0x1]);if(_0x3cd02a)_0x44d5e8=parseInt(_0x3cd02a[0x1]);const _0xe7eb24=(_0x2b7c45[_0x4834f0(0x269)](/^[│├└\s─]+/)||[''])[0x0][_0x4834f0(0x260)];_0xe7eb24<=0x4&&(_0x43beec[_0x4834f0(0x1ef)](_0x2b7c45),_0x371dad++);}return _0x519d87[_0x4834f0(0x260)]>_0x43beec[_0x4834f0(0x260)]&&_0x43beec[_0x4834f0(0x1ef)](_0x4834f0(0x221)+_0x129841+_0x4834f0(0x200)+_0x44d5e8+_0x4834f0(0x284)),_0x43beec[_0x4834f0(0x25b)]('\x0a');}function filterCat(_0x42d126,_0x425de2=''){const _0x992564=a0_0x41b3bf,_0x25c857=extractFilename(_0x425de2);try{if(_0x25c857&&isFeatureEnabled('lock')){const _0x3e7eab=filterLockFile(_0x42d126,_0x25c857);if(_0x3e7eab)return _0x3e7eab;}if(isFeatureEnabled(_0x992564(0x271))){const _0x66254f=filterBinaryOrMinified(_0x42d126,_0x25c857);if(_0x66254f)return _0x66254f;}if(isFeatureEnabled('json_crusher')){const _0x355a43=(0x0,generic_1['smartCrushJson'])(_0x42d126);if(_0x355a43)return _0x355a43;}const _0x51280d=filterJsonMinify(_0x42d126);if(_0x51280d)return _0x51280d;if(_0x25c857&&isFeatureEnabled(_0x992564(0x240))){const _0x1a2af7=path[_0x992564(0x253)](_0x25c857)[_0x992564(0x257)](),_0x23b02e=[_0x992564(0x21c),_0x992564(0x24b),_0x992564(0x227),_0x992564(0x24f),_0x992564(0x23f),_0x992564(0x1f0),_0x992564(0x27d),_0x992564(0x1fb),'.c','.cpp',_0x992564(0x21b),_0x992564(0x238),'.swift',_0x992564(0x222)];if(_0x23b02e[_0x992564(0x22d)](_0x1a2af7)){const _0xf4f91=_0x42d126[_0x992564(0x229)]('\x0a');if(_0xf4f91['length']>0x64){const _0x4d77fe=[];_0x4d77fe[_0x992564(0x1ef)]('[code\x20skeleton]\x20'+path[_0x992564(0x262)](_0x25c857)+'\x20('+_0xf4f91[_0x992564(0x260)]+'\x20lines)'),_0x4d77fe[_0x992564(0x1ef)]('');for(const _0x37c593 of _0xf4f91){const _0x413773=_0x37c593['trim']();if(_0x413773['startsWith'](_0x992564(0x21f))||_0x413773[_0x992564(0x27c)]('from\x20')||_0x413773[_0x992564(0x27c)](_0x992564(0x241))||_0x413773['match'](/=\s*require\(/)||_0x413773[_0x992564(0x27c)](_0x992564(0x283))||_0x413773['startsWith'](_0x992564(0x22b))||_0x413773['startsWith'](_0x992564(0x224)))_0x4d77fe[_0x992564(0x1ef)](_0x37c593);else{if(_0x413773[_0x992564(0x269)](/^(export\s+)?(async\s+)?function\s+/)||_0x413773[_0x992564(0x269)](/^(export\s+)?(default\s+)?class\s+/)||_0x413773[_0x992564(0x269)](/^(export\s+)?(type|interface|enum)\s+/)||_0x413773[_0x992564(0x269)](/^(async\s+)?def\s+/)||_0x413773[_0x992564(0x269)](/^func\s+/)||_0x413773[_0x992564(0x269)](/^type\s+\w+\s+(struct|interface)/)||_0x413773[_0x992564(0x269)](/^(pub\s+)?(async\s+)?fn\s+/)||_0x413773[_0x992564(0x269)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x413773[_0x992564(0x269)](/^(public|private|protected|static)\s+/))_0x4d77fe[_0x992564(0x1ef)](_0x37c593);else{if(_0x413773[_0x992564(0x27c)](_0x992564(0x270))&&!_0x413773['includes']('=>')&&_0x413773['length']<0x78)_0x4d77fe[_0x992564(0x1ef)](_0x37c593);else _0x413773['startsWith']('@')&&!_0x413773[_0x992564(0x27c)](_0x992564(0x209))&&!_0x413773[_0x992564(0x27c)](_0x992564(0x265))&&_0x4d77fe[_0x992564(0x1ef)](_0x37c593);}}}_0x4d77fe[_0x992564(0x1ef)](''),_0x4d77fe[_0x992564(0x1ef)]('('+_0xf4f91[_0x992564(0x260)]+_0x992564(0x254)+(_0x4d77fe[_0x992564(0x260)]-0x2)+_0x992564(0x25e));const _0x44148c=_0x4d77fe['join']('\x0a');if(_0x44148c[_0x992564(0x260)]<_0x42d126[_0x992564(0x260)])return _0x44148c;}}}}catch{}let _0x9514dc=(0x0,generic_1['collapseWhitespace'])(_0x42d126);if(_0x25c857){const _0x4b6d59=path[_0x992564(0x253)](_0x25c857)['toLowerCase']();_0x9514dc=(0x0,generic_1[_0x992564(0x26a)])(_0x9514dc,_0x4b6d59);}const _0x1f2a03=_0x9514dc[_0x992564(0x229)]('\x0a');if(_0x1f2a03[_0x992564(0x260)]<=0x64)return _0x9514dc;const _0x47b184=[];return _0x47b184[_0x992564(0x1ef)](..._0x1f2a03[_0x992564(0x258)](0x0,0x32)),_0x47b184['push'](_0x992564(0x247)+(_0x1f2a03['length']-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x47b184[_0x992564(0x1ef)](..._0x1f2a03[_0x992564(0x258)](-0x1e)),_0x47b184['push']('\x0a('+_0x1f2a03['length']+_0x992564(0x22f)),_0x47b184[_0x992564(0x25b)]('\x0a');}function filterGrep(_0xd903e6){const _0x3e4215=a0_0x41b3bf,_0x2a15b7=_0xd903e6[_0x3e4215(0x229)]('\x0a')[_0x3e4215(0x201)](_0x580c43=>_0x580c43[_0x3e4215(0x278)]()['length']>0x0);if(_0x2a15b7[_0x3e4215(0x260)]===0x0)return _0x3e4215(0x1f7);if(_0x2a15b7[_0x3e4215(0x260)]<=0x32)return _0xd903e6[_0x3e4215(0x278)]();const _0x2c0a33={},_0x4c178d=[];for(const _0x24d253 of _0x2a15b7){const _0x5033bb=_0x24d253[_0x3e4215(0x24e)](':');if(_0x5033bb>0x0&&_0x5033bb<0xc8){const _0x22bd00=_0x24d253[_0x3e4215(0x204)](0x0,_0x5033bb);if(_0x22bd00[_0x3e4215(0x22d)]('/')||_0x22bd00[_0x3e4215(0x22d)]('\x5c')||_0x22bd00[_0x3e4215(0x22d)]('.')){if(!_0x2c0a33[_0x22bd00])_0x2c0a33[_0x22bd00]=[];_0x2c0a33[_0x22bd00]['push'](_0x24d253[_0x3e4215(0x204)](_0x5033bb+0x1)['trim']());continue;}}_0x4c178d[_0x3e4215(0x1ef)](_0x24d253);}const _0x1189c6=[],_0xcb6577=Object[_0x3e4215(0x230)](_0x2c0a33);if(_0xcb6577[_0x3e4215(0x260)]>0x0){const _0x30ca8c=0x14,_0x4a3a55=_0xcb6577[_0x3e4215(0x258)](0x0,_0x30ca8c);for(const _0x413978 of _0x4a3a55){const _0x4bdc3=_0x2c0a33[_0x413978];if(_0x4bdc3['length']<=0x3)for(const _0x1c93d2 of _0x4bdc3){_0x1189c6[_0x3e4215(0x1ef)](_0x413978+':\x20'+_0x1c93d2);}else _0x1189c6[_0x3e4215(0x1ef)](_0x413978+':\x20'+_0x4bdc3[0x0]),_0x1189c6[_0x3e4215(0x1ef)](_0x413978+':\x20...\x20('+_0x4bdc3['length']+_0x3e4215(0x20f));}_0xcb6577[_0x3e4215(0x260)]>_0x30ca8c&&_0x1189c6[_0x3e4215(0x1ef)](_0x3e4215(0x1f6)+(_0xcb6577['length']-_0x30ca8c)+'\x20more\x20files\x20with\x20matches');}if(_0x4c178d[_0x3e4215(0x260)]>0x0){const _0x15c353=0x1e;_0x1189c6[_0x3e4215(0x1ef)](..._0x4c178d[_0x3e4215(0x258)](0x0,_0x15c353)),_0x4c178d[_0x3e4215(0x260)]>_0x15c353&&_0x1189c6[_0x3e4215(0x1ef)]('...\x20+'+(_0x4c178d['length']-_0x15c353)+_0x3e4215(0x20d));}const _0x6e1225=_0x2a15b7[_0x3e4215(0x260)];return _0x1189c6[_0x3e4215(0x1ef)]('\x0a('+_0x6e1225+_0x3e4215(0x244)+(_0xcb6577[_0x3e4215(0x260)]||'?')+_0x3e4215(0x237)),_0x1189c6['join']('\x0a');}function filterFind(_0x4deda4){const _0x43950d=a0_0x41b3bf,_0xf9dc9c=_0x4deda4[_0x43950d(0x229)]('\x0a')[_0x43950d(0x201)](_0x2bd7ac=>_0x2bd7ac[_0x43950d(0x278)]()['length']>0x0);if(_0xf9dc9c[_0x43950d(0x260)]===0x0)return _0x43950d(0x1ff);if(_0xf9dc9c[_0x43950d(0x260)]<=0x32)return _0x4deda4[_0x43950d(0x278)]();const _0x3fc37f={};for(const _0x3cb456 of _0xf9dc9c){const _0x1e5205=path[_0x43950d(0x24c)](_0x3cb456['trim']())||'.';_0x3fc37f[_0x1e5205]=(_0x3fc37f[_0x1e5205]||0x0)+0x1;}const _0x5d6c71=Object[_0x43950d(0x225)](_0x3fc37f)['sort']((_0x4cd6e4,_0x359dee)=>_0x359dee[0x1]-_0x4cd6e4[0x1]),_0x2f8e7b=[_0xf9dc9c[_0x43950d(0x260)]+_0x43950d(0x239)+_0x5d6c71[_0x43950d(0x260)]+'\x20directories',''],_0x2a0f2b=0x1e;for(const [_0x59bfe5,_0x4c25f2]of _0x5d6c71[_0x43950d(0x258)](0x0,_0x2a0f2b)){_0x2f8e7b['push']('\x20\x20'+_0x59bfe5+'/\x20('+_0x4c25f2+_0x43950d(0x237));}return _0x5d6c71[_0x43950d(0x260)]>_0x2a0f2b&&_0x2f8e7b[_0x43950d(0x1ef)](_0x43950d(0x215)+(_0x5d6c71[_0x43950d(0x260)]-_0x2a0f2b)+_0x43950d(0x22c)),_0x2f8e7b['join']('\x0a');}
|
package/hooks/claude-hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x5cab57=a0_0x3ea3;(function(_0xb0d83,_0x235168){var _0x44cb03=a0_0x3ea3,_0x1bd6f5=_0xb0d83();while(!![]){try{var _0x4d42e0=-parseInt(_0x44cb03(0x13d))/0x1*(-parseInt(_0x44cb03(0x144))/0x2)+parseInt(_0x44cb03(0x145))/0x3+parseInt(_0x44cb03(0x141))/0x4+parseInt(_0x44cb03(0x12f))/0x5*(parseInt(_0x44cb03(0x12e))/0x6)+parseInt(_0x44cb03(0x131))/0x7*(-parseInt(_0x44cb03(0x12d))/0x8)+parseInt(_0x44cb03(0x147))/0x9*(parseInt(_0x44cb03(0x134))/0xa)+-parseInt(_0x44cb03(0x139))/0xb;if(_0x4d42e0===_0x235168)break;else _0x1bd6f5['push'](_0x1bd6f5['shift']());}catch(_0x2d12fc){_0x1bd6f5['push'](_0x1bd6f5['shift']());}}}(a0_0x4487,0x39829));var __createBinding=this&&this[a0_0x5cab57(0x12c)]||(Object[a0_0x5cab57(0x12b)]?function(_0x526bce,_0x2fdcd6,_0x1bcc69,_0x57f13){var _0x5f46e6=a0_0x5cab57;if(_0x57f13===undefined)_0x57f13=_0x1bcc69;var _0x5c7572=Object[_0x5f46e6(0x13a)](_0x2fdcd6,_0x1bcc69);(!_0x5c7572||(_0x5f46e6(0x12a)in _0x5c7572?!_0x2fdcd6[_0x5f46e6(0x146)]:_0x5c7572[_0x5f46e6(0x137)]||_0x5c7572[_0x5f46e6(0x133)]))&&(_0x5c7572={'enumerable':!![],'get':function(){return _0x2fdcd6[_0x1bcc69];}}),Object[_0x5f46e6(0x13c)](_0x526bce,_0x57f13,_0x5c7572);}:function(_0x10ce05,_0x53fef5,_0x36e3f2,_0x3ad767){if(_0x3ad767===undefined)_0x3ad767=_0x36e3f2;_0x10ce05[_0x3ad767]=_0x53fef5[_0x36e3f2];}),__setModuleDefault=this&&this[a0_0x5cab57(0x136)]||(Object[a0_0x5cab57(0x12b)]?function(_0x31598e,_0x5e54c4){var _0x18b990=a0_0x5cab57;Object[_0x18b990(0x13c)](_0x31598e,_0x18b990(0x148),{'enumerable':!![],'value':_0x5e54c4});}:function(_0x3c1de7,_0x43db2a){var _0x277e83=a0_0x5cab57;_0x3c1de7[_0x277e83(0x148)]=_0x43db2a;}),__importStar=this&&this[a0_0x5cab57(0x126)]||(function(){var _0xe26c48=function(_0x29d78e){var _0x2db9a5=a0_0x3ea3;return _0xe26c48=Object[_0x2db9a5(0x13b)]||function(_0x11ddea){var _0x44a100=_0x2db9a5,_0x519708=[];for(var _0x6b0cf7 in _0x11ddea)if(Object[_0x44a100(0x130)][_0x44a100(0x13e)][_0x44a100(0x143)](_0x11ddea,_0x6b0cf7))_0x519708[_0x519708[_0x44a100(0x140)]]=_0x6b0cf7;return _0x519708;},_0xe26c48(_0x29d78e);};return function(_0x73d38f){var _0x40b2c9=a0_0x3ea3;if(_0x73d38f&&_0x73d38f[_0x40b2c9(0x146)])return _0x73d38f;var _0x535d9d={};if(_0x73d38f!=null){for(var _0x1f79dd=_0xe26c48(_0x73d38f),_0x524c30=0x0;_0x524c30<_0x1f79dd[_0x40b2c9(0x140)];_0x524c30++)if(_0x1f79dd[_0x524c30]!==_0x40b2c9(0x148))__createBinding(_0x535d9d,_0x73d38f,_0x1f79dd[_0x524c30]);}return __setModuleDefault(_0x535d9d,_0x73d38f),_0x535d9d;};}());function a0_0x4487(){var _0x59cc81=['length','489704jdOvCb','.claude','call','724ssDzWZ','329115haDWgQ','__esModule','810657GcbZvq','default','installClaudeHooks','hooks','__importStar','post_tool_use.js','path','//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a','get','create','__createBinding','1753784sEJEOS','6ztLuUm','1897670TBKVAt','prototype','14iHEeVh','homedir','configurable','40jbXvqt','join','__setModuleDefault','writable','utf8','4109688rtZBsI','getOwnPropertyDescriptor','getOwnPropertyNames','defineProperty','209znsTjo','hasOwnProperty','existsSync'];a0_0x4487=function(){return _0x59cc81;};return a0_0x4487();}Object[a0_0x5cab57(0x13c)](exports,a0_0x5cab57(0x146),{'value':!![]}),exports[a0_0x5cab57(0x149)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5cab57(0x128))),os=__importStar(require('os'));function a0_0x3ea3(_0x1af4fd,_0x460e04){_0x1af4fd=_0x1af4fd-0x125;var _0x448773=a0_0x4487();var _0x3ea37a=_0x448773[_0x1af4fd];return _0x3ea37a;}function installClaudeHooks(){var _0x47aa0d=a0_0x5cab57;try{const _0x318aa4=path[_0x47aa0d(0x135)](os[_0x47aa0d(0x132)](),_0x47aa0d(0x142),_0x47aa0d(0x125));!fs[_0x47aa0d(0x13f)](_0x318aa4)&&fs['mkdirSync'](_0x318aa4,{'recursive':!![]});const _0x48964c=path[_0x47aa0d(0x135)](_0x318aa4,_0x47aa0d(0x127)),_0x6ec9f9=_0x47aa0d(0x129);fs['writeFileSync'](_0x48964c,_0x6ec9f9,_0x47aa0d(0x138));}catch(_0x1d41d4){}}
|
|
1
|
+
'use strict';var a0_0x32a588=a0_0xefe8;(function(_0x33b589,_0x1d017e){var _0x4d64f8=a0_0xefe8,_0x269fda=_0x33b589();while(!![]){try{var _0x5ae5cd=parseInt(_0x4d64f8(0x7f))/0x1*(parseInt(_0x4d64f8(0x91))/0x2)+-parseInt(_0x4d64f8(0x94))/0x3*(parseInt(_0x4d64f8(0x8e))/0x4)+parseInt(_0x4d64f8(0x93))/0x5*(-parseInt(_0x4d64f8(0x92))/0x6)+-parseInt(_0x4d64f8(0x85))/0x7+-parseInt(_0x4d64f8(0x8a))/0x8+-parseInt(_0x4d64f8(0x7e))/0x9*(parseInt(_0x4d64f8(0x75))/0xa)+parseInt(_0x4d64f8(0x7a))/0xb;if(_0x5ae5cd===_0x1d017e)break;else _0x269fda['push'](_0x269fda['shift']());}catch(_0x20dcf6){_0x269fda['push'](_0x269fda['shift']());}}}(a0_0x5bed,0xb01c0));function a0_0xefe8(_0x58f642,_0x1bb120){_0x58f642=_0x58f642-0x74;var _0x5bed8c=a0_0x5bed();var _0xefe88c=_0x5bed8c[_0x58f642];return _0xefe88c;}var __createBinding=this&&this['__createBinding']||(Object[a0_0x32a588(0x7c)]?function(_0x4b8564,_0x5cdaf4,_0x55196f,_0x46d90a){var _0x4ecd63=a0_0x32a588;if(_0x46d90a===undefined)_0x46d90a=_0x55196f;var _0x32a5df=Object[_0x4ecd63(0x7b)](_0x5cdaf4,_0x55196f);(!_0x32a5df||('get'in _0x32a5df?!_0x5cdaf4[_0x4ecd63(0x7d)]:_0x32a5df[_0x4ecd63(0x86)]||_0x32a5df['configurable']))&&(_0x32a5df={'enumerable':!![],'get':function(){return _0x5cdaf4[_0x55196f];}}),Object[_0x4ecd63(0x8b)](_0x4b8564,_0x46d90a,_0x32a5df);}:function(_0x419b43,_0x545b46,_0x4d83ce,_0x3eae72){if(_0x3eae72===undefined)_0x3eae72=_0x4d83ce;_0x419b43[_0x3eae72]=_0x545b46[_0x4d83ce];}),__setModuleDefault=this&&this[a0_0x32a588(0x90)]||(Object[a0_0x32a588(0x7c)]?function(_0x5bd32b,_0x529661){Object['defineProperty'](_0x5bd32b,'default',{'enumerable':!![],'value':_0x529661});}:function(_0x352e02,_0x3a8e5){_0x352e02['default']=_0x3a8e5;}),__importStar=this&&this[a0_0x32a588(0x74)]||(function(){var _0x2f9080=function(_0x523e81){var _0x4f6e38=a0_0xefe8;return _0x2f9080=Object[_0x4f6e38(0x82)]||function(_0x4e35a4){var _0x4b4a4a=_0x4f6e38,_0x575b6d=[];for(var _0x336542 in _0x4e35a4)if(Object[_0x4b4a4a(0x77)][_0x4b4a4a(0x79)][_0x4b4a4a(0x83)](_0x4e35a4,_0x336542))_0x575b6d[_0x575b6d['length']]=_0x336542;return _0x575b6d;},_0x2f9080(_0x523e81);};return function(_0x311609){var _0x2087c5=a0_0xefe8;if(_0x311609&&_0x311609[_0x2087c5(0x7d)])return _0x311609;var _0x1bcbfe={};if(_0x311609!=null){for(var _0x2dc1ac=_0x2f9080(_0x311609),_0x10722d=0x0;_0x10722d<_0x2dc1ac[_0x2087c5(0x81)];_0x10722d++)if(_0x2dc1ac[_0x10722d]!==_0x2087c5(0x84))__createBinding(_0x1bcbfe,_0x311609,_0x2dc1ac[_0x10722d]);}return __setModuleDefault(_0x1bcbfe,_0x311609),_0x1bcbfe;};}());function a0_0x5bed(){var _0x11e736=['post_tool_use.js','hasOwnProperty','39506489JrToxL','getOwnPropertyDescriptor','create','__esModule','81feprOX','1031523WCkSxm','existsSync','length','getOwnPropertyNames','call','default','9337426TMGtdm','writable','join','hooks','utf8','9169472BvGWOk','defineProperty','homedir','path','724qSZYUf','.claude','__setModuleDefault','2BedACV','306BVSCyJ','13190pXVQmi','4407paSLul','__importStar','1134610gZNYIv','writeFileSync','prototype'];a0_0x5bed=function(){return _0x11e736;};return a0_0x5bed();}Object[a0_0x32a588(0x8b)](exports,a0_0x32a588(0x7d),{'value':!![]}),exports['installClaudeHooks']=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x32a588(0x8d))),os=__importStar(require('os'));function installClaudeHooks(){var _0x3f6f2b=a0_0x32a588;try{const _0x512756=path[_0x3f6f2b(0x87)](os[_0x3f6f2b(0x8c)](),_0x3f6f2b(0x8f),_0x3f6f2b(0x88));!fs[_0x3f6f2b(0x80)](_0x512756)&&fs['mkdirSync'](_0x512756,{'recursive':!![]});const _0x51740f=path[_0x3f6f2b(0x87)](_0x512756,_0x3f6f2b(0x78)),_0x4aae9b='//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a';fs[_0x3f6f2b(0x76)](_0x51740f,_0x4aae9b,_0x3f6f2b(0x89));}catch(_0x27223c){}}
|