trimprompt 1.0.45 → 1.0.46
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 +28 -0
- 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_0x581629=a0_0x249a;(function(_0x47a537,_0x3edf23){const _0x4c7e2e=a0_0x249a,_0x330b44=_0x47a537();while(!![]){try{const _0x319a37=-parseInt(_0x4c7e2e(0x1cb))/0x1+parseInt(_0x4c7e2e(0x1c7))/0x2+parseInt(_0x4c7e2e(0x1c6))/0x3+parseInt(_0x4c7e2e(0x1c8))/0x4*(-parseInt(_0x4c7e2e(0x1b9))/0x5)+parseInt(_0x4c7e2e(0x1b8))/0x6*(-parseInt(_0x4c7e2e(0x1ad))/0x7)+parseInt(_0x4c7e2e(0x1cf))/0x8+parseInt(_0x4c7e2e(0x1a6))/0x9*(parseInt(_0x4c7e2e(0x1b4))/0xa);if(_0x319a37===_0x3edf23)break;else _0x330b44['push'](_0x330b44['shift']());}catch(_0x1285de){_0x330b44['push'](_0x330b44['shift']());}}}(a0_0x16cd,0x90c67));Object[a0_0x581629(0x1b1)](exports,a0_0x581629(0x1c3),{'value':!![]}),exports[a0_0x581629(0x1c5)]=stripAnsi,exports[a0_0x581629(0x1d6)]=collapseDuplicates,exports[a0_0x581629(0x1b0)]=collapseWhitespace,exports[a0_0x581629(0x1d4)]=stripComments,exports[a0_0x581629(0x1cc)]=smartCrushJson,exports[a0_0x581629(0x1bf)]=softTruncate;function a0_0x16cd(){const _0x1b7930=['sha','repository','join','test','749rDunle','\x0a...\x20[TrimPrompt:\x20Truncated\x20','trim','collapseWhitespace','defineProperty','keys','length','10630RBHCXq','\x20items,\x20','signature','stringify','51474vdGeVZ','615HBZEBU','\x0a\x0a\x0a','engines','\x20more\x20rows','split','substring','softTruncate','filter','object','min','__esModule','isArray','stripAnsi','1350510DLTpwL','1125558uyOJYl','30964caMgLJ','replace','includes','367192crJnRE','smartCrushJson','push','\x20characters\x20of\x20output]\x20...\x0a','8917560uisVce','resolved','hash','slice','dev','stripComments','map','collapseDuplicates','\x20fields,\x20showing\x20','bugs','\x20[x','...\x20+','toLowerCase','parse','5949nooixR','startsWith','checksum'];a0_0x16cd=function(){return _0x1b7930;};return a0_0x16cd();}function stripAnsi(_0x4fd938){const _0x267069=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x4fd938['replace'](_0x267069,'');}function collapseDuplicates(_0x34328e){const _0x47fb03=a0_0x581629,_0x4f1591=_0x34328e[_0x47fb03(0x1bd)]('\x0a');if(_0x4f1591[_0x47fb03(0x1b3)]<=0x1)return _0x34328e;const _0xdaf6f8=[];let _0x21a3e1=_0x4f1591[0x0],_0x207813=0x1;for(let _0x484fe7=0x1;_0x484fe7<_0x4f1591[_0x47fb03(0x1b3)];_0x484fe7++){const _0x2350ee=_0x4f1591[_0x484fe7];_0x2350ee===_0x21a3e1&&_0x2350ee[_0x47fb03(0x1af)]()[_0x47fb03(0x1b3)]>0x0?_0x207813++:(_0x207813>0x1?_0xdaf6f8[_0x47fb03(0x1cd)](_0x21a3e1+'\x20[x'+_0x207813+']'):_0xdaf6f8[_0x47fb03(0x1cd)](_0x21a3e1),_0x21a3e1=_0x2350ee,_0x207813=0x1);}return _0x207813>0x1?_0xdaf6f8[_0x47fb03(0x1cd)](_0x21a3e1+_0x47fb03(0x1d9)+_0x207813+']'):_0xdaf6f8[_0x47fb03(0x1cd)](_0x21a3e1),_0xdaf6f8['join']('\x0a');}function a0_0x249a(_0x20d83f,_0x5bbb3c){_0x20d83f=_0x20d83f-0x1a3;const _0x16cdd5=a0_0x16cd();let _0x249a86=_0x16cdd5[_0x20d83f];return _0x249a86;}function collapseWhitespace(_0x4b7655){const _0x4432ee=a0_0x581629;let _0x4d746b=_0x4b7655[_0x4432ee(0x1c9)](/[ \t]+$/gm,'');return _0x4d746b=_0x4d746b[_0x4432ee(0x1c9)](/\n{4,}/g,_0x4432ee(0x1ba)),_0x4d746b;}function stripComments(_0x3ce726,_0x2b2cb6){const _0x16ce85=a0_0x581629;if(!_0x2b2cb6)return _0x3ce726;const _0xc8f14e=_0x3ce726[_0x16ce85(0x1bd)]('\x0a');if(_0xc8f14e[_0x16ce85(0x1b3)]<=0x96)return _0x3ce726;const _0x1e948e={'.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*#(?!!)/},_0x3eb486=_0x1e948e[_0x2b2cb6[_0x16ce85(0x1a4)]()];if(!_0x3eb486)return _0x3ce726;const _0xf910f7=_0xc8f14e['filter'](_0x43b704=>!_0x3eb486[_0x16ce85(0x1ac)](_0x43b704));return _0xf910f7[_0x16ce85(0x1ab)]('\x0a');}function smartCrushJson(_0xccdfd0){const _0x4cb1f2=a0_0x581629;try{const _0x398b1f=_0xccdfd0[_0x4cb1f2(0x1af)]();if(!_0x398b1f[_0x4cb1f2(0x1a7)]('['))return null;const _0x13b91e=JSON[_0x4cb1f2(0x1a5)](_0x398b1f);if(!Array[_0x4cb1f2(0x1c4)](_0x13b91e)||_0x13b91e[_0x4cb1f2(0x1b3)]<0x3)return null;if(typeof _0x13b91e[0x0]!=='object'||_0x13b91e[0x0]===null)return null;const _0x411b60=Object[_0x4cb1f2(0x1b2)](_0x13b91e[0x0]);if(_0x411b60[_0x4cb1f2(0x1b3)]===0x0)return null;const _0x5ab19f=_0x411b60[_0x4cb1f2(0x1c0)](_0x4531af=>{const _0x4a0d30=_0x4cb1f2,_0x115aa3=_0x4531af['toLowerCase']();return!_0x115aa3['includes'](_0x4a0d30(0x1d0))&&!_0x115aa3[_0x4a0d30(0x1ca)]('integrity')&&!_0x115aa3[_0x4a0d30(0x1ca)](_0x4a0d30(0x1a9))&&!_0x115aa3['includes'](_0x4a0d30(0x1d1))&&!_0x115aa3[_0x4a0d30(0x1ca)](_0x4a0d30(0x1a8))&&!_0x115aa3[_0x4a0d30(0x1ca)](_0x4a0d30(0x1b6))&&!_0x115aa3[_0x4a0d30(0x1ca)](_0x4a0d30(0x1d3))&&_0x115aa3!=='funding'&&_0x115aa3!==_0x4a0d30(0x1bb)&&_0x115aa3!==_0x4a0d30(0x1d8)&&_0x115aa3!==_0x4a0d30(0x1aa);})[_0x4cb1f2(0x1d2)](0x0,0x6);if(_0x5ab19f[_0x4cb1f2(0x1b3)]===0x0)return null;const _0x4db6af=[];_0x4db6af[_0x4cb1f2(0x1cd)](_0x5ab19f[_0x4cb1f2(0x1ab)]('|'));const _0x3e7bbd=0x1e;for(let _0x3866d0=0x0;_0x3866d0<Math[_0x4cb1f2(0x1c2)](_0x13b91e[_0x4cb1f2(0x1b3)],_0x3e7bbd);_0x3866d0++){const _0x315745=_0x5ab19f[_0x4cb1f2(0x1d5)](_0x56fdbf=>{const _0x4ba5c9=_0x4cb1f2,_0x93f64c=_0x13b91e[_0x3866d0][_0x56fdbf];if(_0x93f64c===null||_0x93f64c===undefined)return'';if(typeof _0x93f64c===_0x4ba5c9(0x1c1))return JSON[_0x4ba5c9(0x1b7)](_0x93f64c)[_0x4ba5c9(0x1be)](0x0,0x28);return String(_0x93f64c)[_0x4ba5c9(0x1be)](0x0,0x3c);});_0x4db6af['push'](_0x315745[_0x4cb1f2(0x1ab)]('|'));}_0x13b91e['length']>_0x3e7bbd&&_0x4db6af[_0x4cb1f2(0x1cd)](_0x4cb1f2(0x1a3)+(_0x13b91e[_0x4cb1f2(0x1b3)]-_0x3e7bbd)+_0x4cb1f2(0x1bc));_0x4db6af['push']('\x0a('+_0x13b91e['length']+_0x4cb1f2(0x1b5)+_0x411b60[_0x4cb1f2(0x1b3)]+_0x4cb1f2(0x1d7)+_0x5ab19f[_0x4cb1f2(0x1b3)]+'\x20key\x20fields)');const _0x415de7=_0x4db6af[_0x4cb1f2(0x1ab)]('\x0a');if(_0x415de7[_0x4cb1f2(0x1b3)]<_0x398b1f[_0x4cb1f2(0x1b3)])return _0x415de7;return null;}catch{return null;}}function softTruncate(_0x18b8a9,_0x34879b=0x4e20){const _0x358fcc=a0_0x581629;if(_0x18b8a9[_0x358fcc(0x1b3)]<=_0x34879b)return _0x18b8a9;const _0x180d4b=_0x18b8a9['split']('\x0a');if(_0x180d4b[_0x358fcc(0x1b3)]<=0xc8)return _0x18b8a9;const _0x5d04c3=0x32,_0x4cf47d=0x96,_0x168eb0=_0x180d4b[_0x358fcc(0x1d2)](0x0,_0x5d04c3),_0x3d7b00=_0x180d4b[_0x358fcc(0x1d2)](_0x180d4b[_0x358fcc(0x1b3)]-_0x4cf47d),_0x54a1b4=_0x18b8a9['length']-(_0x168eb0[_0x358fcc(0x1ab)]('\x0a')[_0x358fcc(0x1b3)]+_0x3d7b00[_0x358fcc(0x1ab)]('\x0a')[_0x358fcc(0x1b3)]);return[..._0x168eb0,_0x358fcc(0x1ae)+_0x54a1b4+_0x358fcc(0x1ce),..._0x3d7b00][_0x358fcc(0x1ab)]('\x0a');}
|
package/filters/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x25e068=a0_0x1207;(function(_0x6ad6d8,_0xa06fb8){const _0x47e4df=a0_0x1207,_0x1c2ae8=_0x6ad6d8();while(!![]){try{const _0x234f21=parseInt(_0x47e4df(0xd0))/0x1+-parseInt(_0x47e4df(0xd4))/0x2+-parseInt(_0x47e4df(0xf5))/0x3*(-parseInt(_0x47e4df(0xdd))/0x4)+-parseInt(_0x47e4df(0xf3))/0x5+parseInt(_0x47e4df(0xf1))/0x6*(parseInt(_0x47e4df(0xe4))/0x7)+-parseInt(_0x47e4df(0xe3))/0x8*(parseInt(_0x47e4df(0xec))/0x9)+parseInt(_0x47e4df(0xf4))/0xa*(parseInt(_0x47e4df(0xee))/0xb);if(_0x234f21===_0xa06fb8)break;else _0x1c2ae8['push'](_0x1c2ae8['shift']());}catch(_0x30b245){_0x1c2ae8['push'](_0x1c2ae8['shift']());}}}(a0_0x2e2e,0x69929));function a0_0x1207(_0x1654ab,_0x50201a){_0x1654ab=_0x1654ab-0xca;const _0x2e2eb7=a0_0x2e2e();let _0x120724=_0x2e2eb7[_0x1654ab];return _0x120724;}var __createBinding=this&&this[a0_0x25e068(0xdf)]||(Object[a0_0x25e068(0xcf)]?function(_0x5d8c8e,_0x5b7c88,_0x26e825,_0x516438){const _0x5c5762=a0_0x25e068;if(_0x516438===undefined)_0x516438=_0x26e825;var _0x1647f6=Object[_0x5c5762(0xd5)](_0x5b7c88,_0x26e825);(!_0x1647f6||(_0x5c5762(0xf7)in _0x1647f6?!_0x5b7c88[_0x5c5762(0xd8)]:_0x1647f6[_0x5c5762(0xd2)]||_0x1647f6[_0x5c5762(0xfa)]))&&(_0x1647f6={'enumerable':!![],'get':function(){return _0x5b7c88[_0x26e825];}}),Object['defineProperty'](_0x5d8c8e,_0x516438,_0x1647f6);}:function(_0x43e96e,_0x29882a,_0x74ddc3,_0x2d7160){if(_0x2d7160===undefined)_0x2d7160=_0x74ddc3;_0x43e96e[_0x2d7160]=_0x29882a[_0x74ddc3];}),__setModuleDefault=this&&this[a0_0x25e068(0xe6)]||(Object[a0_0x25e068(0xcf)]?function(_0x2e71ec,_0x35c351){const _0x5c80d5=a0_0x25e068;Object[_0x5c80d5(0xdc)](_0x2e71ec,_0x5c80d5(0xe1),{'enumerable':!![],'value':_0x35c351});}:function(_0x15d33c,_0x557995){_0x15d33c['default']=_0x557995;}),__importStar=this&&this[a0_0x25e068(0xe0)]||(function(){var _0x4d0a2f=function(_0x35f0ae){const _0x2c2798=a0_0x1207;return _0x4d0a2f=Object[_0x2c2798(0xfb)]||function(_0x2c7a1a){const _0x2c17e6=_0x2c2798;var _0x29bcd4=[];for(var _0x3590b5 in _0x2c7a1a)if(Object['prototype'][_0x2c17e6(0xf0)]['call'](_0x2c7a1a,_0x3590b5))_0x29bcd4[_0x29bcd4[_0x2c17e6(0xf6)]]=_0x3590b5;return _0x29bcd4;},_0x4d0a2f(_0x35f0ae);};return function(_0x5e73b4){const _0x57ea9f=a0_0x1207;if(_0x5e73b4&&_0x5e73b4[_0x57ea9f(0xd8)])return _0x5e73b4;var _0xa4bf1c={};if(_0x5e73b4!=null){for(var _0x2265e0=_0x4d0a2f(_0x5e73b4),_0x1a3388=0x0;_0x1a3388<_0x2265e0[_0x57ea9f(0xf6)];_0x1a3388++)if(_0x2265e0[_0x1a3388]!=='default')__createBinding(_0xa4bf1c,_0x5e73b4,_0x2265e0[_0x1a3388]);}return __setModuleDefault(_0xa4bf1c,_0x5e73b4),_0xa4bf1c;};}());Object[a0_0x25e068(0xdc)](exports,a0_0x25e068(0xd8),{'value':!![]}),exports[a0_0x25e068(0xe5)]=filterGitStatus,exports[a0_0x25e068(0xff)]=filterGitLog,exports[a0_0x25e068(0xd3)]=filterGitDiff;const path=__importStar(require(a0_0x25e068(0xd7)));function filterGitStatus(_0x58f44e){const _0x3e02d6=a0_0x25e068,_0x4eb68c=_0x58f44e[_0x3e02d6(0xfd)]('\x0a')['map'](_0x15b59d=>_0x15b59d[_0x3e02d6(0xcc)]())[_0x3e02d6(0xda)](_0xf5e962=>_0xf5e962[_0x3e02d6(0xf6)]>0x0);if(_0x4eb68c[_0x3e02d6(0xf6)]===0x0)return _0x3e02d6(0xfe);const _0x85b2a0=[],_0x3503bb=[],_0x13210a=[];for(const _0x4c2655 of _0x4eb68c){if(_0x4c2655[_0x3e02d6(0xcd)]('##')){const _0x16859f=_0x4c2655[_0x3e02d6(0xeb)](/^##\s*/,'');_0x85b2a0[_0x3e02d6(0xf9)](_0x3e02d6(0xe2)+_0x16859f);}else _0x4c2655[_0x3e02d6(0xcd)]('??')?_0x3503bb['push'](_0x4c2655[_0x3e02d6(0xdb)](0x3)[_0x3e02d6(0xcc)]()):_0x13210a[_0x3e02d6(0xf9)](_0x4c2655);}_0x13210a[_0x3e02d6(0xf6)]>0x0&&(_0x85b2a0[_0x3e02d6(0xf9)](_0x3e02d6(0xcb)),_0x85b2a0[_0x3e02d6(0xf9)](..._0x13210a['map'](_0x3481a2=>'\x20\x20'+_0x3481a2)));if(_0x3503bb[_0x3e02d6(0xf6)]>0x0){_0x85b2a0[_0x3e02d6(0xf9)]('\x0aUntracked\x20files:');const _0x50b0c8={},_0x507a9a=[];for(const _0x48883c of _0x3503bb){const _0x35a094=path['dirname'](_0x48883c);_0x35a094==='.'||_0x35a094===''?_0x507a9a['push'](_0x48883c):(!_0x50b0c8[_0x35a094]&&(_0x50b0c8[_0x35a094]=[]),_0x50b0c8[_0x35a094][_0x3e02d6(0xf9)](path[_0x3e02d6(0xed)](_0x48883c)));}for(const [_0x528631,_0x2a2057]of Object['entries'](_0x50b0c8)){if(_0x2a2057[_0x3e02d6(0xf6)]>0x5)_0x85b2a0[_0x3e02d6(0xf9)](_0x3e02d6(0xf8)+_0x528631+'/\x20('+_0x2a2057[_0x3e02d6(0xf6)]+_0x3e02d6(0xea));else for(const _0xfbe824 of _0x2a2057){_0x85b2a0[_0x3e02d6(0xf9)](_0x3e02d6(0xf8)+path[_0x3e02d6(0xd1)](_0x528631,_0xfbe824));}}for(const _0x146a6a of _0x507a9a){_0x85b2a0[_0x3e02d6(0xf9)](_0x3e02d6(0xf8)+_0x146a6a);}}return _0x85b2a0['join']('\x0a');}function filterGitLog(_0x2fde59){const _0x30de08=a0_0x25e068,_0x1b901f=_0x2fde59['split'](_0x30de08(0xd9))['map'](_0x12d418=>_0x12d418[_0x30de08(0xcc)]())[_0x30de08(0xda)](_0x1a2a13=>_0x1a2a13[_0x30de08(0xf6)]>0x0);if(_0x1b901f[_0x30de08(0xf6)]===0x0)return _0x2fde59;const _0x39bb29=[];for(const _0x5b96c1 of _0x1b901f){const _0x3d52c7=_0x5b96c1[_0x30de08(0xfd)]('\x0a'),_0x4cdd7d=_0x3d52c7[0x0]||'',_0x128b7a=_0x3d52c7[_0x30de08(0xe8)](0x1)[_0x30de08(0xce)](_0x280cdd=>_0x280cdd[_0x30de08(0xcc)]())[_0x30de08(0xda)](_0x11ad25=>_0x11ad25[_0x30de08(0xf6)]>0x0);_0x39bb29['push']('-\x20'+_0x4cdd7d),_0x128b7a['length']>0x0&&(_0x39bb29[_0x30de08(0xf9)]('\x20\x20'+_0x128b7a[0x0]),_0x128b7a[_0x30de08(0xf6)]>0x1&&_0x39bb29['push'](_0x30de08(0xf2)+(_0x128b7a['length']-0x1)+_0x30de08(0xef)));}return _0x39bb29[_0x30de08(0xd1)]('\x0a');}function filterGitDiff(_0x189748){const _0x1e5a6a=a0_0x25e068,_0x461543=_0x189748[_0x1e5a6a(0xfd)]('\x0a'),_0x5a81b5=[];let _0x13faa5='',_0x2bb35b=0x0,_0x5f3ff9=0x0,_0x147b20=[];const _0x314e93=()=>{const _0x48963a=_0x1e5a6a;if(_0x13faa5&&(_0x2bb35b>0x0||_0x5f3ff9>0x0)){_0x5a81b5[_0x48963a(0xf9)](_0x48963a(0xe7)+_0x13faa5+'\x20(+'+_0x2bb35b+'\x20-'+_0x5f3ff9+')');const _0x2d39fa=0xa,_0x238f38=_0x147b20['slice'](0x0,_0x2d39fa);for(const _0x5a7236 of _0x238f38){_0x5a81b5[_0x48963a(0xf9)]('\x20\x20'+_0x5a7236);}const _0x1cba91=_0x2bb35b+_0x5f3ff9-_0x2d39fa;_0x1cba91>0x0&&_0x5a81b5['push'](_0x48963a(0xd6)+_0x1cba91+_0x48963a(0xde));}_0x2bb35b=0x0,_0x5f3ff9=0x0,_0x147b20=[];};for(const _0x3ace93 of _0x461543){if(_0x3ace93[_0x1e5a6a(0xcd)](_0x1e5a6a(0xca))){_0x314e93();const _0x50622c=_0x3ace93[_0x1e5a6a(0xe9)](/\sb\/(.+)$/);_0x13faa5=_0x50622c?_0x50622c[0x1]:_0x1e5a6a(0xfc);}else{if(_0x3ace93['startsWith']('+')&&!_0x3ace93[_0x1e5a6a(0xcd)]('+++'))_0x2bb35b++,_0x147b20['push'](_0x3ace93);else _0x3ace93['startsWith']('-')&&!_0x3ace93['startsWith']('---')&&(_0x5f3ff9++,_0x147b20['push'](_0x3ace93));}}_0x314e93();const _0x1a794c=_0x5a81b5[_0x1e5a6a(0xd1)]('\x0a');return _0x1a794c[_0x1e5a6a(0xf6)]>0x0?_0x1a794c:'No\x20modifications';}function a0_0x2e2e(){const _0x42598b=['---END---','filter','substring','defineProperty','1397192hkDvMZ','\x20more\x20modifications','__createBinding','__importStar','default','*\x20Branch:\x20','2430392xfJFUy','2175803PcsDMj','filterGitStatus','__setModuleDefault','[file]\x20','slice','match','\x20untracked\x20files)','replace','9ikpZRh','basename','11aiUGyR','\x20lines\x20of\x20description)','hasOwnProperty','6YdQeeT','\x20\x20...\x20(+','2938185LgyrNm','6155230wcpwwK','3KsdxjX','length','get','\x20\x20??\x20','push','configurable','getOwnPropertyNames','unknown_file','split','Clean\x20working\x20tree','filterGitLog','diff\x20--git','\x0aChanges:','trim','startsWith','map','create','165327cKqkQF','join','writable','filterGitDiff','234232wMiPya','getOwnPropertyDescriptor','\x20\x20...\x20+','path','__esModule'];a0_0x2e2e=function(){return _0x42598b;};return a0_0x2e2e();}
|
package/filters/go.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x38c69e=a0_0x2753;(function(_0x15ccf1,_0x4caa51){const _0x17dd8e=a0_0x2753,_0x856821=_0x15ccf1();while(!![]){try{const _0x5bfc1f=-parseInt(_0x17dd8e(0x117))/0x1+parseInt(_0x17dd8e(0x11f))/0x2*(parseInt(_0x17dd8e(0x129))/0x3)+parseInt(_0x17dd8e(0x119))/0x4*(-parseInt(_0x17dd8e(0x12b))/0x5)+-parseInt(_0x17dd8e(0x120))/0x6*(parseInt(_0x17dd8e(0x115))/0x7)+parseInt(_0x17dd8e(0x10d))/0x8*(-parseInt(_0x17dd8e(0x130))/0x9)+parseInt(_0x17dd8e(0x106))/0xa+-parseInt(_0x17dd8e(0x127))/0xb*(-parseInt(_0x17dd8e(0x111))/0xc);if(_0x5bfc1f===_0x4caa51)break;else _0x856821['push'](_0x856821['shift']());}catch(_0x410aee){_0x856821['push'](_0x856821['shift']());}}}(a0_0x4783,0x21447));function a0_0x4783(){const _0x8839b=['1705530VFDmHb','Go\x20vet:\x20no\x20issues\x20found','match','\x20issues\x20found','length','filterGoTest','split','1404640rEedrX','\x20passed,\x20','join','\x20more\x20failures','4260DcISgJ','no\x20test\x20files','Go\x20test:\x20no\x20test\x20files','startsWith','56NPPegQ','\x20\x20...\x20+','165319iMOBjr','\x20passed','12YzeylU','Go\x20test:\x20','filter','...\x20+','slice','\x20\x20\x20\x20','6wHUNcY','63534wghwgC','Go\x20vet:\x20','\x0aFailures:','\x20more\x20lines','===\x20RUN','\x20skipped','lines','11924UQmXla','includes','33519YsOLve','---\x20SKIP:','45030XigTEw','FAIL','trim','name','push','9TMsxaG','min','Go\x20test:\x20all\x20tests\x20passed'];a0_0x4783=function(){return _0x8839b;};return a0_0x4783();}function a0_0x2753(_0x35ea52,_0xebb95a){_0x35ea52=_0x35ea52-0x104;const _0x47839e=a0_0x4783();let _0x2753b8=_0x47839e[_0x35ea52];return _0x2753b8;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x38c69e(0x10b)]=filterGoTest,exports['filterGoVet']=filterGoVet;function filterGoTest(_0xe5b48b){const _0x374b15=a0_0x38c69e,_0x1ae7d7=_0xe5b48b[_0x374b15(0x10c)]('\x0a');let _0x4aa9a0=0x0,_0x44e79c=0x0,_0xe577f=0x0;const _0x28f7c7=[],_0x365bbb=[];let _0x3b62f9=null;for(const _0x1a359d of _0x1ae7d7){const _0xec5652=_0x1a359d[_0x374b15(0x12d)](),_0x291820=_0xec5652[_0x374b15(0x108)](/^ok\s+\S+\s+[\d.]+s/);if(_0x291820){_0x365bbb[_0x374b15(0x12f)](_0xec5652);continue;}const _0x337c71=_0xec5652['match'](/^FAIL\s+\S+/);if(_0x337c71){_0x365bbb[_0x374b15(0x12f)](_0xec5652);continue;}const _0x1afcd3=_0xec5652[_0x374b15(0x108)](/^--- PASS:/);if(_0x1afcd3){_0x4aa9a0++;continue;}const _0x33a1a5=_0xec5652[_0x374b15(0x108)](/^--- FAIL:\s+(\S+)/);if(_0x33a1a5){if(_0x3b62f9)_0x28f7c7['push'](_0x3b62f9);_0x3b62f9={'name':_0x33a1a5[0x1],'lines':[]},_0x44e79c++;continue;}if(_0xec5652['startsWith'](_0x374b15(0x12a))){_0xe577f++;continue;}_0x3b62f9&&_0xec5652[_0x374b15(0x10a)]>0x0&&!_0xec5652[_0x374b15(0x114)]('===\x20RUN')&&_0x3b62f9[_0x374b15(0x126)][_0x374b15(0x12f)](_0x1a359d),_0xec5652[_0x374b15(0x114)](_0x374b15(0x124))&&(_0x3b62f9&&(_0x28f7c7[_0x374b15(0x12f)](_0x3b62f9),_0x3b62f9=null));}if(_0x3b62f9)_0x28f7c7[_0x374b15(0x12f)](_0x3b62f9);if(_0x4aa9a0===0x0&&_0x44e79c===0x0&&_0xe577f===0x0){if(_0xe5b48b[_0x374b15(0x128)]('PASS')&&!_0xe5b48b[_0x374b15(0x128)](_0x374b15(0x12c)))return _0x374b15(0x105);if(_0xe5b48b[_0x374b15(0x128)](_0x374b15(0x112)))return _0x374b15(0x113);return _0xe5b48b;}if(_0x44e79c===0x0){const _0x4abf69=[_0x374b15(0x11a)+_0x4aa9a0+_0x374b15(0x118)];if(_0xe577f>0x0)_0x4abf69[_0x374b15(0x12f)](_0xe577f+_0x374b15(0x125));return _0x4abf69['join'](',\x20');}const _0x4374bd=['Go\x20test:\x20'+_0x4aa9a0+_0x374b15(0x10e)+_0x44e79c+'\x20failed,\x20'+_0xe577f+_0x374b15(0x125)];if(_0x28f7c7[_0x374b15(0x10a)]>0x0){_0x4374bd[_0x374b15(0x12f)](_0x374b15(0x122));const _0x58cf8a=0x3;for(let _0x60280=0x0;_0x60280<Math[_0x374b15(0x104)](_0x28f7c7[_0x374b15(0x10a)],_0x58cf8a);_0x60280++){const _0x5cb607=_0x28f7c7[_0x60280];_0x4374bd[_0x374b15(0x12f)]('\x20\x20'+(_0x60280+0x1)+'.\x20'+_0x5cb607[_0x374b15(0x12e)]);for(const _0x567431 of _0x5cb607[_0x374b15(0x126)][_0x374b15(0x11d)](0x0,0x5)){_0x4374bd[_0x374b15(0x12f)](_0x374b15(0x11e)+_0x567431[_0x374b15(0x12d)]());}_0x5cb607[_0x374b15(0x126)]['length']>0x5&&_0x4374bd[_0x374b15(0x12f)]('\x20\x20\x20\x20...\x20+'+(_0x5cb607[_0x374b15(0x126)]['length']-0x5)+_0x374b15(0x123));}_0x28f7c7['length']>_0x58cf8a&&_0x4374bd[_0x374b15(0x12f)](_0x374b15(0x116)+(_0x28f7c7[_0x374b15(0x10a)]-_0x58cf8a)+_0x374b15(0x110));}return _0x4374bd[_0x374b15(0x10f)]('\x0a');}function filterGoVet(_0x56c3d4){const _0x4fd06b=a0_0x38c69e,_0x30e616=_0x56c3d4[_0x4fd06b(0x10c)]('\x0a')[_0x4fd06b(0x11b)](_0x23993b=>_0x23993b[_0x4fd06b(0x12d)]()[_0x4fd06b(0x10a)]>0x0);if(_0x30e616[_0x4fd06b(0x10a)]===0x0)return _0x4fd06b(0x107);if(_0x30e616['length']<=0x14)return _0x56c3d4['trim']();const _0x2e4ce7=[_0x4fd06b(0x121)+_0x30e616[_0x4fd06b(0x10a)]+_0x4fd06b(0x109)];return _0x2e4ce7['push'](..._0x30e616['slice'](0x0,0xa)),_0x30e616[_0x4fd06b(0x10a)]>0xa&&_0x2e4ce7[_0x4fd06b(0x12f)](_0x4fd06b(0x11c)+(_0x30e616[_0x4fd06b(0x10a)]-0xa)+'\x20more\x20issues'),_0x2e4ce7[_0x4fd06b(0x10f)]('\x0a');}
|
package/filters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x566395=a0_0x5eec;(function(_0x33c7b7,_0x50ce74){const _0x175adc=a0_0x5eec,_0x468ae1=_0x33c7b7();while(!![]){try{const _0x476640=parseInt(_0x175adc(0x7d))/0x1+parseInt(_0x175adc(0x82))/0x2+parseInt(_0x175adc(0x8a))/0x3*(-parseInt(_0x175adc(0xdc))/0x4)+parseInt(_0x175adc(0x90))/0x5+-parseInt(_0x175adc(0xe0))/0x6+parseInt(_0x175adc(0xb2))/0x7*(-parseInt(_0x175adc(0xc8))/0x8)+parseInt(_0x175adc(0x9d))/0x9;if(_0x476640===_0x50ce74)break;else _0x468ae1['push'](_0x468ae1['shift']());}catch(_0x306237){_0x468ae1['push'](_0x468ae1['shift']());}}}(a0_0x195d,0x866d4));Object['defineProperty'](exports,a0_0x566395(0x78),{'value':!![]}),exports[a0_0x566395(0x7b)]=exports['lastRedactAudit']=void 0x0,exports[a0_0x566395(0xb6)]=compressOutput,exports[a0_0x566395(0xde)]=rewriteCommand;const generic_1=require(a0_0x566395(0x83)),git_1=require(a0_0x566395(0xd6)),python_1=require(a0_0x566395(0x8b)),js_1=require(a0_0x566395(0xba)),shell_1=require(a0_0x566395(0xa0)),rust_1=require(a0_0x566395(0x84)),go_1=require(a0_0x566395(0xd7)),devops_1=require(a0_0x566395(0x86)),redactor_1=require(a0_0x566395(0xb8)),tracker_1=require(a0_0x566395(0xbe));exports[a0_0x566395(0xbd)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x566395(0x7b)]=[];function isFeatureEnabled(_0x51cbfc){const _0x16ea98=a0_0x566395;try{const _0x2e1796=tracker_1[_0x16ea98(0x93)][_0x16ea98(0xc1)](),_0x3cfc10=_0x2e1796[_0x16ea98(0xb9)];if(!_0x3cfc10||_0x3cfc10[_0x51cbfc]===undefined)return!![];return _0x3cfc10[_0x51cbfc]!==![];}catch{return!![];}}function a0_0x5eec(_0x55a05e,_0x1bcd7e){_0x55a05e=_0x55a05e-0x74;const _0x195d46=a0_0x195d();let _0x5eeca6=_0x195d46[_0x55a05e];return _0x5eeca6;}function compressOutput(_0x2e23a6,_0x252b1b,_0x1c03e4,_0x480a1c=!![]){const _0x32dec1=a0_0x566395,_0x4f37a2=_0x2e23a6['trim']();let _0x2796e3=_0x252b1b;_0x1c03e4[_0x32dec1(0x80)]()[_0x32dec1(0x97)]>0x0&&(_0x2796e3=_0x252b1b+'\x0a'+_0x1c03e4);let _0xffb1c2=isFeatureEnabled(_0x32dec1(0xcb))?(0x0,generic_1['stripAnsi'])(_0x2796e3):_0x2796e3;const _0x4d2bb0=[];if(_0xffb1c2[_0x32dec1(0x97)]<_0x2796e3[_0x32dec1(0x97)])_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xcb));const _0x2cf6d3=(_0x1e7440,_0x2ad23d)=>{const _0x5aaa8a=_0x32dec1;return _0x4d2bb0['push'](_0x1e7440),exports[_0x5aaa8a(0x7b)]=_0x4d2bb0,_0x2ad23d;};if(_0x480a1c&&isFeatureEnabled('redact')){const _0x3c15b3=redactor_1[_0x32dec1(0xb5)][_0x32dec1(0x95)](_0xffb1c2);_0xffb1c2=_0x3c15b3[_0x32dec1(0x96)],exports[_0x32dec1(0xbd)]={'secretsFound':_0x3c15b3['secretsFound'],'secretTypes':_0x3c15b3[_0x32dec1(0x99)]};if(_0x3c15b3[_0x32dec1(0x7f)]>0x0)_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xdd));}else exports[_0x32dec1(0xbd)]={'secretsFound':0x0,'secretTypes':[]};const _0x4d4076=_0x4f37a2['toLowerCase'](),_0x242397=isFeatureEnabled(_0x32dec1(0x9f));try{if(_0x242397){if(_0x4d4076['includes'](_0x32dec1(0xce))||_0x4d4076['includes'](_0x32dec1(0xc3)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1[_0x32dec1(0xd9)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x8d))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd1)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1['filterGitLog'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xc4))||_0x4d4076['includes'](_0x32dec1(0x9e))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xa4)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1[_0x32dec1(0xb3)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('pytest')||_0x4d4076[_0x32dec1(0xb1)](/python3?\s+-m\s+pytest/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,python_1[_0x32dec1(0xc9)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('pip\x20install')||_0x4d4076[_0x32dec1(0xc6)]('pip3\x20install'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,python_1['filterPipInstall'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('ruff\x20check')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x88)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1[_0x32dec1(0xbc)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xb7))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xab))||_0x4d4076['endsWith']('npm\x20i')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xac))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x9b)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1[_0x32dec1(0x8f)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd5))||_0x4d4076[_0x32dec1(0xc6)]('vitest'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1[_0x32dec1(0xaf)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('npm\x20test')||_0x4d4076[_0x32dec1(0xc6)]('pnpm\x20test')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xdb))||_0x4d4076['includes']('npm\x20run\x20test'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1['filterJestVitest'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x92)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,rust_1[_0x32dec1(0xda)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd2))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x7a))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd4)))return _0x2cf6d3('filter',(0x0,rust_1[_0x32dec1(0xa5)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('go\x20test'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,go_1[_0x32dec1(0xbb)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xa6)))return _0x2cf6d3('filter',(0x0,go_1['filterGoVet'])(_0xffb1c2));if(_0x4d4076['match'](/docker\s+ps/))return _0x2cf6d3('filter',(0x0,devops_1[_0x32dec1(0x98)])(_0xffb1c2));if(_0x4d4076['match'](/docker\s+images/))return _0x2cf6d3('filter',(0x0,devops_1[_0x32dec1(0xca)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/docker\s+logs/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1[_0x32dec1(0x89)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x81))){const _0x3eb0ec=_0x4d4076[_0x32dec1(0xb1)](/kubectl\s+(get|logs|describe|apply)/),_0x591ed0=_0x3eb0ec?_0x3eb0ec[0x1]:_0x32dec1(0x85);return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1['filterKubectl'])(_0xffb1c2,_0x591ed0));}if(_0x4d4076[_0x32dec1(0xb1)](/^(ls|dir)(\s|$)/)||_0x4d4076['includes'](_0x32dec1(0xaa))||_0x4d4076[_0x32dec1(0x91)](_0x32dec1(0xc7)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0xa9)])(_0xffb1c2));if(_0x4d4076['match'](/^tree(\s|$)/)||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xb4))||_0x4d4076[_0x32dec1(0x91)]('\x20tree'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0xc5)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x4b8e19=(0x0,shell_1[_0x32dec1(0xe1)])(_0xffb1c2,_0x4f37a2);if(_0x4b8e19[_0x32dec1(0xc6)]('[lock\x20file]'))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xa8));else{if(_0x4b8e19['includes'](_0x32dec1(0x8c))||_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0x8e)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xc2));else{if(_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0xcd)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xa7));else{if(_0x4b8e19[_0x32dec1(0xc6)]('|\x20')&&_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0x74))&&_0x4b8e19[_0x32dec1(0x97)]<_0xffb1c2['length']*0.5)_0x4d2bb0['push'](_0x32dec1(0x87));else{if(_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0xcf)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0x9f));}}}}if(_0x4b8e19['length']<_0xffb1c2['length']&&!_0x4d2bb0[_0x32dec1(0x76)](_0x492a9a=>_0x492a9a!==_0x32dec1(0xcb)&&_0x492a9a!==_0x32dec1(0xdd)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0x9f));return exports[_0x32dec1(0x7b)]=_0x4d2bb0,_0x4b8e19;}if(_0x4d4076[_0x32dec1(0xb1)](/^find(\s|$)/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1['filterFind'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/^(grep|rg|ripgrep)(\s|$)/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0x9a)])(_0xffb1c2));}}catch(_0x43f7f3){}return isFeatureEnabled(_0x32dec1(0xcc))&&(_0xffb1c2=(0x0,generic_1[_0x32dec1(0xa2)])(_0xffb1c2),_0x4d2bb0['push'](_0x32dec1(0xcc))),_0xffb1c2=(0x0,generic_1[_0x32dec1(0x7e)])(_0xffb1c2),_0xffb1c2=(0x0,generic_1[_0x32dec1(0xb0)])(_0xffb1c2,0x4e20),exports[_0x32dec1(0x7b)]=_0x4d2bb0,_0xffb1c2;}function a0_0x195d(){const _0x5ec3b9=['8kaVdsK','filterPytest','filterDockerImages','ansi_strip','whitespace','[code\x20skeleton]','git\x20status','lines\x20truncated','trim\x20pnpm','yadm\x20log','cargo\x20build','trim\x20find','cargo\x20clippy','jest','./git','./go','trim\x20pytest','filterGitStatus','filterCargoTest','yarn\x20test','124ohCMTx','redact','rewriteCommand','trim\x20','3431052IGrtOw','filterCat','---','trim\x20ls','some','test','__esModule','trim\x20read','cargo\x20check','lastFeatures','trim\x20go','1053663BDuDSl','collapseDuplicates','secretsFound','trim','kubectl','1735524wTpdBf','./generic','./rust','get','./devops','json_crusher','ruff\x20','filterDockerLogs','91425kMfaSs','./python','[binary','git\x20log','[minified\x20file]','filterNpmInstall','1349670iREiJh','endsWith','cargo\x20test','tracker','pattern','redactWithAudit','text','length','filterDockerPs','secretTypes','filterGrep','yarn\x20install','trim\x20npx','6757731XKUKOM','git\x20show','filter','./shell','trim\x20kubectl','collapseWhitespace','push','yadm\x20diff','filterCargoBuild','go\x20vet','skeleton','lock','filterLs','\x20ls\x20','npm\x20i\x20','pnpm\x20install','trim\x20ruff','trim\x20git','filterJestVitest','softTruncate','match','6125273KZmpnH','filterGitDiff','\x20tree\x20','redactor','compressOutput','npm\x20install','../redactor','features_enabled','./js','filterGoTest','filterRuff','lastRedactAudit','../tracker','trim\x20docker','startsWith','getConfig','binary','yadm\x20status','git\x20diff','filterTree','includes','\x20ls'];a0_0x195d=function(){return _0x5ec3b9;};return a0_0x195d();}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_0x566395(0xae)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':'trim\x20cargo'},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x566395(0xd0)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':'trim\x20npm'},{'pattern':/^npx\s+/,'prefix':a0_0x566395(0x9c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x566395(0x79)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x566395(0x75)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x566395(0xd3)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x566395(0xbf)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x566395(0xa1)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x566395(0xd8)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x566395(0xad)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x566395(0x7c)}];function rewriteCommand(_0x484129){const _0x5b0b84=a0_0x566395,_0x52206f=_0x484129[_0x5b0b84(0x80)]();if(_0x52206f[_0x5b0b84(0xc0)](_0x5b0b84(0xdf)))return _0x52206f;for(const _0x3bb50c of REWRITE_RULES){if(_0x3bb50c[_0x5b0b84(0x94)][_0x5b0b84(0x77)](_0x52206f))return _0x5b0b84(0xdf)+_0x52206f;}return _0x52206f;}
|
|
1
|
+
'use strict';const a0_0x131d1f=a0_0x5c41;(function(_0x104485,_0x349f23){const _0x5857fe=a0_0x5c41,_0x48e762=_0x104485();while(!![]){try{const _0x29a320=parseInt(_0x5857fe(0x1b8))/0x1*(parseInt(_0x5857fe(0x20e))/0x2)+-parseInt(_0x5857fe(0x1ae))/0x3+-parseInt(_0x5857fe(0x202))/0x4+parseInt(_0x5857fe(0x1b9))/0x5*(parseInt(_0x5857fe(0x1cd))/0x6)+-parseInt(_0x5857fe(0x1fa))/0x7+-parseInt(_0x5857fe(0x209))/0x8+-parseInt(_0x5857fe(0x211))/0x9*(-parseInt(_0x5857fe(0x20c))/0xa);if(_0x29a320===_0x349f23)break;else _0x48e762['push'](_0x48e762['shift']());}catch(_0x322cdb){_0x48e762['push'](_0x48e762['shift']());}}}(a0_0x56d8,0xa2d12));Object[a0_0x131d1f(0x1ea)](exports,a0_0x131d1f(0x1f2),{'value':!![]}),exports[a0_0x131d1f(0x1d9)]=exports['lastRedactAudit']=void 0x0,exports[a0_0x131d1f(0x1cc)]=compressOutput,exports['rewriteCommand']=rewriteCommand;const generic_1=require(a0_0x131d1f(0x1f6)),git_1=require(a0_0x131d1f(0x1b4)),python_1=require(a0_0x131d1f(0x1de)),js_1=require(a0_0x131d1f(0x1cb)),shell_1=require(a0_0x131d1f(0x210)),rust_1=require(a0_0x131d1f(0x1ff)),go_1=require('./go'),devops_1=require(a0_0x131d1f(0x1e1)),redactor_1=require(a0_0x131d1f(0x1ba)),tracker_1=require(a0_0x131d1f(0x1ce));function a0_0x5c41(_0x423840,_0x4c0993){_0x423840=_0x423840-0x1ad;const _0x56d82b=a0_0x56d8();let _0x5c4158=_0x56d82b[_0x423840];return _0x5c4158;}exports[a0_0x131d1f(0x1af)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x131d1f(0x1d9)]=[];function isFeatureEnabled(_0x1a6c79){const _0x41c5c6=a0_0x131d1f;try{const _0x155e88=tracker_1[_0x41c5c6(0x219)][_0x41c5c6(0x1eb)](),_0x24ca0b=_0x155e88[_0x41c5c6(0x1b5)];if(!_0x24ca0b||_0x24ca0b[_0x1a6c79]===undefined)return!![];return _0x24ca0b[_0x1a6c79]!==![];}catch{return!![];}}function compressOutput(_0xeb68b3,_0x36438b,_0x2c2763,_0x3ff10a=!![]){const _0x4d3d1b=a0_0x131d1f,_0x376ef5=_0xeb68b3[_0x4d3d1b(0x1d1)]();let _0x4da9ae=_0x36438b;_0x2c2763[_0x4d3d1b(0x1d1)]()[_0x4d3d1b(0x20b)]>0x0&&(_0x4da9ae=_0x36438b+'\x0a'+_0x2c2763);let _0x1e44f2=isFeatureEnabled(_0x4d3d1b(0x1c6))?(0x0,generic_1[_0x4d3d1b(0x1d6)])(_0x4da9ae):_0x4da9ae;const _0x4ca25d=[];if(_0x1e44f2['length']<_0x4da9ae[_0x4d3d1b(0x20b)])_0x4ca25d[_0x4d3d1b(0x1d3)](_0x4d3d1b(0x1c6));const _0x1ce4d2=(_0x236d58,_0x1b1521)=>{const _0x211800=_0x4d3d1b;return _0x4ca25d[_0x211800(0x1d3)](_0x236d58),exports['lastFeatures']=_0x4ca25d,_0x1b1521;};if(_0x3ff10a&&isFeatureEnabled('redact')){const _0x2ce57c=redactor_1[_0x4d3d1b(0x200)][_0x4d3d1b(0x215)](_0x1e44f2);_0x1e44f2=_0x2ce57c[_0x4d3d1b(0x1b6)],exports[_0x4d3d1b(0x1af)]={'secretsFound':_0x2ce57c[_0x4d3d1b(0x204)],'secretTypes':_0x2ce57c[_0x4d3d1b(0x213)]};if(_0x2ce57c[_0x4d3d1b(0x204)]>0x0)_0x4ca25d[_0x4d3d1b(0x1d3)](_0x4d3d1b(0x1c3));}else exports[_0x4d3d1b(0x1af)]={'secretsFound':0x0,'secretTypes':[]};const _0x2df6f9=_0x376ef5[_0x4d3d1b(0x1b3)](),_0xd881aa=isFeatureEnabled(_0x4d3d1b(0x1d5));try{if(_0xd881aa){if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x206))||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1f4)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,git_1[_0x4d3d1b(0x1e7)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1ca))||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x201)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,git_1[_0x4d3d1b(0x1c7)])(_0x1e44f2));if(_0x2df6f9['includes'](_0x4d3d1b(0x218))||_0x2df6f9['includes']('git\x20show')||_0x2df6f9['includes'](_0x4d3d1b(0x205)))return _0x1ce4d2('filter',(0x0,git_1['filterGitDiff'])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)]('pytest')||_0x2df6f9[_0x4d3d1b(0x1f9)](/python3?\s+-m\s+pytest/))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,python_1['filterPytest'])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x20a))||_0x2df6f9['includes'](_0x4d3d1b(0x1dc)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,python_1[_0x4d3d1b(0x1c9)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1c1))||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1e3)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,devops_1['filterRuff'])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)]('npm\x20install')||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x217))||_0x2df6f9[_0x4d3d1b(0x1ee)](_0x4d3d1b(0x1d4))||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1b2))||_0x2df6f9['includes'](_0x4d3d1b(0x1db)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,js_1[_0x4d3d1b(0x1c2)])(_0x1e44f2));if(_0x2df6f9['includes'](_0x4d3d1b(0x1bb))||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1b0)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,js_1['filterJestVitest'])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1e8))||_0x2df6f9[_0x4d3d1b(0x1fb)]('pnpm\x20test')||_0x2df6f9['includes'](_0x4d3d1b(0x1c5))||_0x2df6f9['includes'](_0x4d3d1b(0x1be)))return _0x1ce4d2('filter',(0x0,js_1[_0x4d3d1b(0x1f3)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x203)))return _0x1ce4d2('filter',(0x0,rust_1[_0x4d3d1b(0x1cf)])(_0x1e44f2));if(_0x2df6f9['includes'](_0x4d3d1b(0x1e9))||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x20d))||_0x2df6f9['includes'](_0x4d3d1b(0x214)))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,rust_1[_0x4d3d1b(0x1ec)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)]('go\x20test'))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,go_1[_0x4d3d1b(0x1da)])(_0x1e44f2));if(_0x2df6f9['includes']('go\x20vet'))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,go_1['filterGoVet'])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1f9)](/docker\s+ps/))return _0x1ce4d2('filter',(0x0,devops_1[_0x4d3d1b(0x1df)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1f9)](/docker\s+images/))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,devops_1[_0x4d3d1b(0x207)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1f9)](/docker\s+logs/))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,devops_1[_0x4d3d1b(0x1bc)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1ef))){const _0x2c9f59=_0x2df6f9[_0x4d3d1b(0x1f9)](/kubectl\s+(get|logs|describe|apply)/),_0x1e1453=_0x2c9f59?_0x2c9f59[0x1]:_0x4d3d1b(0x1fc);return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,devops_1['filterKubectl'])(_0x1e44f2,_0x1e1453));}if(_0x2df6f9[_0x4d3d1b(0x1f9)](/^(ls|dir)(\s|$)/)||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1d2))||_0x2df6f9[_0x4d3d1b(0x1ee)](_0x4d3d1b(0x1d0)))return _0x1ce4d2('filter',(0x0,shell_1[_0x4d3d1b(0x1c4)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1f9)](/^tree(\s|$)/)||_0x2df6f9[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1d7))||_0x2df6f9[_0x4d3d1b(0x1ee)]('\x20tree'))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,shell_1[_0x4d3d1b(0x21c)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1f9)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0xe4a577=(0x0,shell_1[_0x4d3d1b(0x1c0)])(_0x1e44f2,_0x376ef5);if(_0xe4a577[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1ed)))_0x4ca25d[_0x4d3d1b(0x1d3)]('lock');else{if(_0xe4a577[_0x4d3d1b(0x1fb)]('[binary')||_0xe4a577['includes'](_0x4d3d1b(0x1e4)))_0x4ca25d[_0x4d3d1b(0x1d3)](_0x4d3d1b(0x1e2));else{if(_0xe4a577[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x216)))_0x4ca25d[_0x4d3d1b(0x1d3)](_0x4d3d1b(0x21a));else{if(_0xe4a577[_0x4d3d1b(0x1fb)]('|\x20')&&_0xe4a577[_0x4d3d1b(0x1fb)](_0x4d3d1b(0x1bd))&&_0xe4a577[_0x4d3d1b(0x20b)]<_0x1e44f2[_0x4d3d1b(0x20b)]*0.5)_0x4ca25d['push'](_0x4d3d1b(0x1e5));else{if(_0xe4a577[_0x4d3d1b(0x1fb)]('lines\x20truncated'))_0x4ca25d[_0x4d3d1b(0x1d3)](_0x4d3d1b(0x1d5));}}}}if(_0xe4a577[_0x4d3d1b(0x20b)]<_0x1e44f2[_0x4d3d1b(0x20b)]&&!_0x4ca25d[_0x4d3d1b(0x1f7)](_0x37b7d9=>_0x37b7d9!==_0x4d3d1b(0x1c6)&&_0x37b7d9!==_0x4d3d1b(0x1c3)))_0x4ca25d[_0x4d3d1b(0x1d3)]('filter');return exports[_0x4d3d1b(0x1d9)]=_0x4ca25d,_0xe4a577;}if(_0x2df6f9[_0x4d3d1b(0x1f9)](/^find(\s|$)/))return _0x1ce4d2(_0x4d3d1b(0x1d5),(0x0,shell_1[_0x4d3d1b(0x1f0)])(_0x1e44f2));if(_0x2df6f9[_0x4d3d1b(0x1f9)](/^(grep|rg|ripgrep)(\s|$)/))return _0x1ce4d2('filter',(0x0,shell_1['filterGrep'])(_0x1e44f2));}}catch(_0x2479c4){}return isFeatureEnabled('whitespace')&&(_0x1e44f2=(0x0,generic_1['collapseWhitespace'])(_0x1e44f2),_0x4ca25d['push']('whitespace')),_0x1e44f2=(0x0,generic_1[_0x4d3d1b(0x212)])(_0x1e44f2),_0x1e44f2=(0x0,generic_1[_0x4d3d1b(0x1ad)])(_0x1e44f2,0x4e20),exports[_0x4d3d1b(0x1d9)]=_0x4ca25d,_0x1e44f2;}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_0x131d1f(0x1b7)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x131d1f(0x21b)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x131d1f(0x1e6)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x131d1f(0x1fe)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x131d1f(0x1f1)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x131d1f(0x1c8)},{'pattern':/^npx\s+/,'prefix':a0_0x131d1f(0x20f)},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x131d1f(0x1bf)},{'pattern':/^ls(\s|$)/,'prefix':'trim\x20ls'},{'pattern':/^tree(\s|$)/,'prefix':a0_0x131d1f(0x208)},{'pattern':/^find\s+/,'prefix':a0_0x131d1f(0x1d8)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x131d1f(0x1f5)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x131d1f(0x1b1)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x131d1f(0x1e0)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x131d1f(0x1fd)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':'trim\x20go'}];function rewriteCommand(_0x1cf00c){const _0x105f6f=a0_0x131d1f,_0x117fe6=_0x1cf00c['trim']();if(_0x117fe6['startsWith'](_0x105f6f(0x1dd)))return _0x117fe6;for(const _0x1f95ef of REWRITE_RULES){if(_0x1f95ef[_0x105f6f(0x1f8)]['test'](_0x117fe6))return _0x105f6f(0x1dd)+_0x117fe6;}return _0x117fe6;}function a0_0x56d8(){const _0x34855e=['6dDSNIP','../tracker','filterCargoTest','\x20ls','trim','\x20ls\x20','push','npm\x20i','filter','stripAnsi','\x20tree\x20','trim\x20find','lastFeatures','filterGoTest','yarn\x20install','pip3\x20install','trim\x20','./python','filterDockerPs','trim\x20pytest','./devops','binary','ruff\x20','[minified\x20file]','json_crusher','trim\x20glab','filterGitStatus','npm\x20test','cargo\x20build','defineProperty','getConfig','filterCargoBuild','[lock\x20file]','endsWith','kubectl','filterFind','trim\x20pnpm','__esModule','filterJestVitest','yadm\x20status','trim\x20docker','./generic','some','pattern','match','4040575iZakRS','includes','get','trim\x20ruff','trim\x20cargo','./rust','redactor','yadm\x20log','4124368DIVHpn','cargo\x20test','secretsFound','yadm\x20diff','git\x20status','filterDockerImages','trim\x20tree','5416640gnNQCg','pip\x20install','length','40WHqfHo','cargo\x20check','281306ZXpJIG','trim\x20npx','./shell','4792518wMOLYM','collapseDuplicates','secretTypes','cargo\x20clippy','redactWithAudit','[code\x20skeleton]','npm\x20i\x20','git\x20diff','tracker','skeleton','trim\x20gh','filterTree','softTruncate','1394643VUCxcr','lastRedactAudit','vitest','trim\x20kubectl','pnpm\x20install','toLowerCase','./git','features_enabled','text','trim\x20git','3fkmbbe','4326045YBPLbG','../redactor','jest','filterDockerLogs','---','npm\x20run\x20test','trim\x20grep','filterCat','ruff\x20check','filterNpmInstall','redact','filterLs','yarn\x20test','ansi_strip','filterGitLog','trim\x20npm','filterPipInstall','git\x20log','./js','compressOutput'];a0_0x56d8=function(){return _0x34855e;};return a0_0x56d8();}
|
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x339461=a0_0x1e9e;(function(_0x430ea1,_0x5a8ee7){const _0x48cb58=a0_0x1e9e,_0x164385=_0x430ea1();while(!![]){try{const _0x495877=-parseInt(_0x48cb58(0x192))/0x1+parseInt(_0x48cb58(0x184))/0x2+-parseInt(_0x48cb58(0x196))/0x3+-parseInt(_0x48cb58(0x182))/0x4+parseInt(_0x48cb58(0x185))/0x5*(parseInt(_0x48cb58(0x18c))/0x6)+parseInt(_0x48cb58(0x1a1))/0x7+parseInt(_0x48cb58(0x198))/0x8;if(_0x495877===_0x5a8ee7)break;else _0x164385['push'](_0x164385['shift']());}catch(_0x39daf6){_0x164385['push'](_0x164385['shift']());}}}(a0_0x3b72,0x5c546));function a0_0x1e9e(_0x4af4c6,_0x502b88){_0x4af4c6=_0x4af4c6-0x182;const _0x3b7264=a0_0x3b72();let _0x1e9e44=_0x3b7264[_0x4af4c6];return _0x1e9e44;}Object[a0_0x339461(0x1a2)](exports,'__esModule',{'value':!![]}),exports[a0_0x339461(0x19f)]=filterNpmInstall,exports[a0_0x339461(0x199)]=filterJestVitest;function filterNpmInstall(_0x11678c){const _0x46b515=a0_0x339461,_0x293915=_0x11678c[_0x46b515(0x197)](/\r/g,'\x0a'),_0x577805=_0x293915['split']('\x0a'),_0x25b742=[];for(const _0x1a06c1 of _0x577805){const _0x109f6f=_0x1a06c1[_0x46b515(0x194)]();(_0x109f6f[_0x46b515(0x18b)](_0x46b515(0x191))||_0x109f6f[_0x46b515(0x18b)](_0x46b515(0x1a4))||_0x109f6f[_0x46b515(0x18b)](_0x46b515(0x1a0))||_0x109f6f['includes']('up\x20to\x20date')||_0x109f6f[_0x46b515(0x18b)]('found\x20'))&&(!_0x109f6f[_0x46b515(0x18b)]('%')&&!_0x109f6f[_0x46b515(0x19c)]('⠋')&&!_0x109f6f[_0x46b515(0x19c)]('⠙')&&_0x25b742[_0x46b515(0x186)](_0x109f6f));}const _0x93e8cf=_0x25b742[_0x46b515(0x18a)]('\x0a')[_0x46b515(0x194)]();return _0x93e8cf['length']>0x0?_0x93e8cf:_0x46b515(0x195);}function a0_0x3b72(){const _0x1ba950=['1327908fVbECr','replace','7568096ukpfeI','filterJestVitest','FAIL\x20\x20','FAIL','startsWith','\x20\x20...\x20(','match','filterNpmInstall','audited\x20','1451359carCiz','defineProperty','length','removed\x20','\x20lines\x20of\x20trace\x20details\x20truncated)','498864WmPrfU','Test\x20Runner:\x20','716042gBWBOz','1820DJUqdc','push','\x20total)','slice','Tests:','join','includes','246AsqzUY','\x20passed','\x20passed,\x20','\x0aFailures:','Test\x20Suites:','added\x20','580760ESdUOF','all','trim','NPM:\x20Packages\x20verified/installed\x20successfully'];a0_0x3b72=function(){return _0x1ba950;};return a0_0x3b72();}function filterJestVitest(_0x54c544){const _0x4e11fa=a0_0x339461,_0x1e0d5e=_0x54c544['split']('\x0a');let _0x1e53b9=0x0,_0xea29fd=0x0,_0x469308=0x0;const _0x3ac62f=[];let _0x537622=![];for(const _0x3a03ce of _0x1e0d5e){const _0xa56c8c=_0x3a03ce[_0x4e11fa(0x194)]();if(_0xa56c8c[_0x4e11fa(0x19c)](_0x4e11fa(0x189))||_0xa56c8c[_0x4e11fa(0x18b)]('Test\x20Files:')){const _0x274b21=_0xa56c8c[_0x4e11fa(0x19e)](/(\d+)\s+passed/),_0x515a66=_0xa56c8c['match'](/(\d+)\s+failed/),_0x42bd0b=_0xa56c8c[_0x4e11fa(0x19e)](/(\d+)\s+total/);if(_0x274b21)_0x1e53b9=parseInt(_0x274b21[0x1]);if(_0x515a66)_0xea29fd=parseInt(_0x515a66[0x1]);if(_0x42bd0b)_0x469308=parseInt(_0x42bd0b[0x1]);continue;}(_0xa56c8c[_0x4e11fa(0x19c)]('❯')||_0xa56c8c[_0x4e11fa(0x19c)]('●')||_0xa56c8c[_0x4e11fa(0x19c)](_0x4e11fa(0x19a)))&&(_0x537622=!![]),_0x537622&&(_0xa56c8c[_0x4e11fa(0x1a3)]>0x0&&!_0xa56c8c[_0x4e11fa(0x19c)](_0x4e11fa(0x190))&&!_0xa56c8c[_0x4e11fa(0x19c)](_0x4e11fa(0x189))&&_0x3ac62f[_0x4e11fa(0x186)](_0x3a03ce));}if(_0x469308===0x0&&_0x1e53b9===0x0&&_0xea29fd===0x0){if(_0x54c544[_0x4e11fa(0x18b)]('PASS')&&!_0x54c544[_0x4e11fa(0x18b)](_0x4e11fa(0x19b))){const _0x221c72=_0x54c544[_0x4e11fa(0x19e)](/(\d+)\s+passed/),_0x5f3627=_0x221c72?_0x221c72[0x1]:_0x4e11fa(0x193);return'Test\x20Runner:\x20'+_0x5f3627+_0x4e11fa(0x18d);}return _0x54c544;}if(_0xea29fd===0x0&&_0x1e53b9>0x0)return _0x4e11fa(0x183)+_0x1e53b9+_0x4e11fa(0x18d);const _0x5727e7=['Test\x20Runner:\x20'+_0x1e53b9+_0x4e11fa(0x18e)+_0xea29fd+'\x20failed\x20('+_0x469308+_0x4e11fa(0x187)];if(_0x3ac62f['length']>0x0){_0x5727e7[_0x4e11fa(0x186)](_0x4e11fa(0x18f));const _0x362732=0x19,_0x25ef6d=_0x3ac62f[_0x4e11fa(0x188)](0x0,_0x362732);for(const _0x3b9f86 of _0x25ef6d){_0x5727e7[_0x4e11fa(0x186)]('\x20\x20'+_0x3b9f86);}_0x3ac62f[_0x4e11fa(0x1a3)]>_0x362732&&_0x5727e7[_0x4e11fa(0x186)](_0x4e11fa(0x19d)+(_0x3ac62f[_0x4e11fa(0x1a3)]-_0x362732)+_0x4e11fa(0x1a5));}return _0x5727e7[_0x4e11fa(0x18a)]('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x5dbeaf=a0_0x503a;(function(_0x418a78,_0x1c5e03){const _0x3068f6=a0_0x503a,_0x1314b8=_0x418a78();while(!![]){try{const _0x2a0922=-parseInt(_0x3068f6(0xa5))/0x1*(parseInt(_0x3068f6(0xc0))/0x2)+parseInt(_0x3068f6(0xc7))/0x3+-parseInt(_0x3068f6(0xc4))/0x4+-parseInt(_0x3068f6(0xae))/0x5+-parseInt(_0x3068f6(0xad))/0x6*(parseInt(_0x3068f6(0xbf))/0x7)+parseInt(_0x3068f6(0xaf))/0x8+parseInt(_0x3068f6(0xd0))/0x9;if(_0x2a0922===_0x1c5e03)break;else _0x1314b8['push'](_0x1314b8['shift']());}catch(_0x1c572a){_0x1314b8['push'](_0x1314b8['shift']());}}}(a0_0x5637,0x19205));function a0_0x5637(){const _0x302f7d=['defineProperty','filterPipInstall','189351viMbgW','length','failed','Using\x20cached','slice','Pytest:\x20','Collecting','\x20xfailed','___','2150577QEbadg','===\x20ERRORS\x20===','===','AssertionError:','1pGxAmJ','join','\x20more\x20failures\x20truncated','\x20passed','\x20\x20...\x20+','\x20skipped','Successfully\x20installed','E\x20\x20\x20','1057476HXVmlW','22470kVXmBY','1349736xsSpSc','split','trim','===\x20short\x20test\x20summary\x20info\x20===','===\x20FAILURES\x20===','\x20\x20\x20\x20...\x20(','match','\x20\x20\x20\x20','__esModule','filter','.\x20[FAIL]\x20','includes','startsWith','passed','filterPytest','push','7klQgPg','256306RqYomO','Pytest:\x20All\x20tests\x20passed','replace','Requirement\x20already\x20satisfied','235908HLjyRR'];a0_0x5637=function(){return _0x302f7d;};return a0_0x5637();}function a0_0x503a(_0x5ca287,_0x345a4b){_0x5ca287=_0x5ca287-0xa5;const _0x563780=a0_0x5637();let _0x503ace=_0x563780[_0x5ca287];return _0x503ace;}Object[a0_0x5dbeaf(0xc5)](exports,a0_0x5dbeaf(0xb7),{'value':!![]}),exports[a0_0x5dbeaf(0xbd)]=filterPytest,exports[a0_0x5dbeaf(0xc6)]=filterPipInstall;function filterPytest(_0x180e0e){const _0x487c08=a0_0x5dbeaf,_0x1ef7b2=_0x180e0e['split']('\x0a');let _0x5d2c6f=0x0,_0x598908=0x0,_0x2d303c=0x0,_0x30411e=0x0,_0x844710=0x0;const _0x5b4420=[];let _0x59eede=[],_0x4555d8=![];for(const _0xb5354c of _0x1ef7b2){const _0x451ea8=_0xb5354c[_0x487c08(0xb1)]();if(_0x451ea8[_0x487c08(0xbb)](_0x487c08(0xb3))||_0x451ea8[_0x487c08(0xbb)](_0x487c08(0xd1))){_0x4555d8=!![];continue;}else(_0x451ea8[_0x487c08(0xbb)](_0x487c08(0xb2))||_0x451ea8[_0x487c08(0xbb)](_0x487c08(0xd2))&&_0x451ea8['includes'](_0x487c08(0xbc)))&&(_0x4555d8=![],_0x59eede[_0x487c08(0xc8)]>0x0&&(_0x5b4420[_0x487c08(0xbe)](_0x59eede),_0x59eede=[]));if(_0x4555d8){if(_0x451ea8['startsWith'](_0x487c08(0xcf)))_0x59eede[_0x487c08(0xc8)]>0x0&&(_0x5b4420['push'](_0x59eede),_0x59eede=[]),_0x59eede[_0x487c08(0xbe)](_0x451ea8);else _0x451ea8[_0x487c08(0xc8)]>0x0&&_0x59eede[_0x487c08(0xbe)](_0xb5354c);continue;}if(_0x451ea8['startsWith'](_0x487c08(0xd2))&&_0x451ea8[_0x487c08(0xba)]('\x20in\x20')){const _0x378e31=_0x451ea8[_0x487c08(0xb5)](/(\d+)\s+passed/),_0x21f009=_0x451ea8[_0x487c08(0xb5)](/(\d+)\s+failed/),_0x16aafd=_0x451ea8[_0x487c08(0xb5)](/(\d+)\s+skipped/),_0x542946=_0x451ea8['match'](/(\d+)\s+xfailed/),_0x6377a0=_0x451ea8[_0x487c08(0xb5)](/(\d+)\s+xpassed/);if(_0x378e31)_0x5d2c6f=parseInt(_0x378e31[0x1]);if(_0x21f009)_0x598908=parseInt(_0x21f009[0x1]);if(_0x16aafd)_0x2d303c=parseInt(_0x16aafd[0x1]);if(_0x542946)_0x30411e=parseInt(_0x542946[0x1]);if(_0x6377a0)_0x844710=parseInt(_0x6377a0[0x1]);}}_0x59eede['length']>0x0&&_0x5b4420[_0x487c08(0xbe)](_0x59eede);if(_0x5d2c6f===0x0&&_0x598908===0x0&&_0x2d303c===0x0&&_0x30411e===0x0&&_0x844710===0x0){if(_0x180e0e['includes'](_0x487c08(0xbc))&&!_0x180e0e[_0x487c08(0xba)](_0x487c08(0xc9)))return _0x487c08(0xc1);return _0x180e0e;}if(_0x598908===0x0&&_0x5d2c6f>0x0&&_0x2d303c===0x0&&_0x30411e===0x0&&_0x844710===0x0)return _0x487c08(0xcc)+_0x5d2c6f+'\x20passed';const _0x1e9b5c=[];_0x1e9b5c[_0x487c08(0xbe)](_0x487c08(0xcc)+_0x5d2c6f+_0x487c08(0xa8));if(_0x598908>0x0)_0x1e9b5c[_0x487c08(0xbe)](_0x598908+'\x20failed');if(_0x2d303c>0x0)_0x1e9b5c[_0x487c08(0xbe)](_0x2d303c+_0x487c08(0xaa));if(_0x30411e>0x0)_0x1e9b5c[_0x487c08(0xbe)](_0x30411e+_0x487c08(0xce));if(_0x844710>0x0)_0x1e9b5c[_0x487c08(0xbe)](_0x844710+'\x20xpassed\x20(warning!)');const _0x46fb74=[_0x1e9b5c[_0x487c08(0xa6)](',\x20')];if(_0x5b4420[_0x487c08(0xc8)]>0x0){_0x46fb74[_0x487c08(0xbe)]('\x0aFailures:');const _0x5b83a8=0x3,_0x43eaa5=_0x5b4420[_0x487c08(0xcb)](0x0,_0x5b83a8);for(let _0x2d643b=0x0;_0x2d643b<_0x43eaa5[_0x487c08(0xc8)];_0x2d643b++){const _0x11cf06=_0x43eaa5[_0x2d643b],_0x113815=_0x11cf06[0x0][_0x487c08(0xc2)](/_/g,'')[_0x487c08(0xb1)]();_0x46fb74['push']('\x20\x20'+(_0x2d643b+0x1)+_0x487c08(0xb9)+_0x113815);const _0x3c6ea8=_0x11cf06[_0x487c08(0xcb)](0x1),_0x241bd0=_0x3c6ea8[_0x487c08(0xb8)](_0x27f515=>{const _0x3e2ea9=_0x487c08,_0x41b625=_0x27f515['trim']();return _0x41b625['startsWith']('>')||_0x41b625[_0x3e2ea9(0xbb)](_0x3e2ea9(0xac))||_0x41b625['includes']('.py:')||_0x41b625[_0x3e2ea9(0xba)](_0x3e2ea9(0xd3));});for(const _0x2d8d2f of _0x241bd0[_0x487c08(0xcb)](0x0,0x8)){_0x46fb74['push'](_0x487c08(0xb6)+_0x2d8d2f);}_0x241bd0['length']>0x8&&_0x46fb74[_0x487c08(0xbe)](_0x487c08(0xb4)+(_0x241bd0[_0x487c08(0xc8)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x5b4420['length']>_0x5b83a8&&_0x46fb74[_0x487c08(0xbe)](_0x487c08(0xa9)+(_0x5b4420['length']-_0x5b83a8)+_0x487c08(0xa7));}return _0x46fb74[_0x487c08(0xa6)]('\x0a');}function filterPipInstall(_0x354aa0){const _0x523b2a=a0_0x5dbeaf,_0x111583=_0x354aa0[_0x523b2a(0xb0)]('\x0a'),_0xc0133e=[];for(const _0x19ee4c of _0x111583){const _0x3b1662=_0x19ee4c[_0x523b2a(0xb1)]();_0x3b1662[_0x523b2a(0xbb)](_0x523b2a(0xab))&&_0xc0133e[_0x523b2a(0xbe)](_0x3b1662);}if(_0xc0133e[_0x523b2a(0xc8)]>0x0)return _0xc0133e['join']('\x0a');return _0x111583[_0x523b2a(0xb8)](_0x448e36=>{const _0x8922cb=_0x523b2a,_0xac23de=_0x448e36['trim']();return!_0xac23de['startsWith'](_0x8922cb(0xcd))&&!_0xac23de[_0x8922cb(0xbb)]('Downloading')&&!_0xac23de[_0x8922cb(0xba)](_0x8922cb(0xca))&&!_0xac23de[_0x8922cb(0xbb)](_0x8922cb(0xc3));})['join']('\x0a')[_0x523b2a(0xb1)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x6732(){const _0x1a32c2=['643361srFfKm','Cargo\x20test:\x20all\x20tests\x20passed','167898YfuSTu','----\x20','length','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','includes','33435hkmuJu','split','min','filterCargoBuild','thread','25zSTtvs','push','filter','filterCargoTest','join','Cargo\x20test:\x20','421716BjRZRf','warning:','endsWith','\x20warnings','startsWith','Cargo:\x20','\x0aErrors:','736840EECXlm','Cargo:\x20compiled\x20','left:','\x20passed,\x20','\x20\x20...\x20+','\x20passed','\x20\x20\x20\x20','replace','error:','Compiling\x20','failures:','\x20errors,\x20','\x20crates,\x20','\x20more\x20failures','\x20crates\x20successfully','\x20ignored','test\x20result:','\x20failed,\x20','----\x20failures\x20----','17198235tbsalW','assert','error[','test\x20result:\x20ok','right:','slice','__esModule','\x20----','196JCLECp','panicked','trim','\x0aWarnings:','1560188KSBfxP'];a0_0x6732=function(){return _0x1a32c2;};return a0_0x6732();}const a0_0x37b20d=a0_0x2497;(function(_0x4041c1,_0x5ea86e){const _0x8fcff4=a0_0x2497,_0x12318b=_0x4041c1();while(!![]){try{const _0x40aab0=-parseInt(_0x8fcff4(0xc4))/0x1+parseInt(_0x8fcff4(0xc6))/0x2+parseInt(_0x8fcff4(0xcb))/0x3*(-parseInt(_0x8fcff4(0xbf))/0x4)+-parseInt(_0x8fcff4(0xd0))/0x5*(parseInt(_0x8fcff4(0xd6))/0x6)+-parseInt(_0x8fcff4(0xc3))/0x7+parseInt(_0x8fcff4(0xdd))/0x8+parseInt(_0x8fcff4(0xf0))/0x9;if(_0x40aab0===_0x5ea86e)break;else _0x12318b['push'](_0x12318b['shift']());}catch(_0x1847c9){_0x12318b['push'](_0x12318b['shift']());}}}(a0_0x6732,0x4ee75));function a0_0x2497(_0x5059b0,_0x35f5cf){_0x5059b0=_0x5059b0-0xb9;const _0x673241=a0_0x6732();let _0x249740=_0x673241[_0x5059b0];return _0x249740;}Object['defineProperty'](exports,a0_0x37b20d(0xbd),{'value':!![]}),exports[a0_0x37b20d(0xd3)]=filterCargoTest,exports[a0_0x37b20d(0xce)]=filterCargoBuild;function filterCargoTest(_0x5c9a4a){const _0x1908d0=a0_0x37b20d,_0x2fd4e5=_0x5c9a4a[_0x1908d0(0xcc)]('\x0a');let _0xfd6ecb=0x0,_0x3ea4cd=0x0,_0x17c6bc=0x0,_0x2c6cd3=0x0;const _0x5528a6=[];let _0x3c52e7=![],_0x343d77=[];for(const _0x46e32d of _0x2fd4e5){const _0x42e3a2=_0x46e32d[_0x1908d0(0xc1)](),_0x3ab4c7=_0x42e3a2['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x3ab4c7){_0xfd6ecb+=parseInt(_0x3ab4c7[0x2]),_0x3ea4cd+=parseInt(_0x3ab4c7[0x3]),_0x17c6bc+=parseInt(_0x3ab4c7[0x4]),_0x2c6cd3+=parseInt(_0x3ab4c7[0x5]);continue;}if(_0x42e3a2===_0x1908d0(0xe7)||_0x42e3a2===_0x1908d0(0xef)){_0x3c52e7=!![];continue;}if(_0x3c52e7){if(_0x42e3a2[_0x1908d0(0xda)](_0x1908d0(0xc7))&&_0x42e3a2[_0x1908d0(0xd8)](_0x1908d0(0xbe))){if(_0x343d77[_0x1908d0(0xc8)]>0x0)_0x5528a6[_0x1908d0(0xd1)](_0x343d77[_0x1908d0(0xd4)]('\x0a'));_0x343d77=[_0x42e3a2[_0x1908d0(0xe4)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x42e3a2===_0x1908d0(0xe7)||_0x42e3a2[_0x1908d0(0xda)](_0x1908d0(0xed))){if(_0x343d77['length']>0x0)_0x5528a6[_0x1908d0(0xd1)](_0x343d77[_0x1908d0(0xd4)]('\x0a'));_0x343d77=[],_0x3c52e7=![];}else _0x42e3a2[_0x1908d0(0xc8)]>0x0&&_0x343d77['push'](_0x46e32d);}}}if(_0x343d77[_0x1908d0(0xc8)]>0x0)_0x5528a6[_0x1908d0(0xd1)](_0x343d77[_0x1908d0(0xd4)]('\x0a'));if(_0xfd6ecb===0x0&&_0x3ea4cd===0x0&&_0x17c6bc===0x0){if(_0x5c9a4a['includes'](_0x1908d0(0xba)))return _0x1908d0(0xc5);return _0x5c9a4a;}if(_0x3ea4cd===0x0){const _0x1c2a3b=['Cargo\x20test:\x20'+_0xfd6ecb+_0x1908d0(0xe2)];if(_0x17c6bc>0x0)_0x1c2a3b['push'](_0x17c6bc+_0x1908d0(0xec));return _0x1c2a3b[_0x1908d0(0xd4)](',\x20');}const _0x2bb5eb=[_0x1908d0(0xd5)+_0xfd6ecb+_0x1908d0(0xe0)+_0x3ea4cd+_0x1908d0(0xee)+_0x17c6bc+'\x20ignored'];if(_0x5528a6[_0x1908d0(0xc8)]>0x0){_0x2bb5eb[_0x1908d0(0xd1)]('\x0aFailures:');const _0x2093f0=0x3;for(let _0x449a07=0x0;_0x449a07<Math[_0x1908d0(0xcd)](_0x5528a6['length'],_0x2093f0);_0x449a07++){const _0x3e58ba=_0x5528a6[_0x449a07][_0x1908d0(0xcc)]('\x0a');_0x2bb5eb[_0x1908d0(0xd1)]('\x20\x20'+(_0x449a07+0x1)+'.\x20'+_0x3e58ba[0x0]);const _0x4aa6c4=_0x3e58ba[_0x1908d0(0xbc)](0x1),_0x30106e=_0x4aa6c4[_0x1908d0(0xd2)](_0x1e7119=>_0x1e7119[_0x1908d0(0xc1)]()[_0x1908d0(0xda)](_0x1908d0(0xcf))||_0x1e7119[_0x1908d0(0xca)](_0x1908d0(0xc0))||_0x1e7119[_0x1908d0(0xca)](_0x1908d0(0xf1))||_0x1e7119[_0x1908d0(0xca)](_0x1908d0(0xdf))||_0x1e7119[_0x1908d0(0xca)](_0x1908d0(0xbb)));for(const _0x310f15 of _0x30106e[_0x1908d0(0xbc)](0x0,0x5)){_0x2bb5eb[_0x1908d0(0xd1)](_0x1908d0(0xe3)+_0x310f15[_0x1908d0(0xc1)]());}}_0x5528a6[_0x1908d0(0xc8)]>_0x2093f0&&_0x2bb5eb[_0x1908d0(0xd1)](_0x1908d0(0xe1)+(_0x5528a6[_0x1908d0(0xc8)]-_0x2093f0)+_0x1908d0(0xea));}return _0x2bb5eb[_0x1908d0(0xd4)]('\x0a');}function filterCargoBuild(_0x2f7d07){const _0x4a90c5=a0_0x37b20d,_0x5e5dd5=_0x2f7d07[_0x4a90c5(0xcc)]('\x0a'),_0x3c5e38=[],_0x164aee=[];let _0x2eb915=0x0;for(const _0x46e6ef of _0x5e5dd5){const _0x10c4b2=_0x46e6ef['trim']();if(_0x10c4b2[_0x4a90c5(0xda)](_0x4a90c5(0xe6)))_0x2eb915++;else{if(_0x10c4b2[_0x4a90c5(0xda)]('warning[')||_0x10c4b2[_0x4a90c5(0xda)](_0x4a90c5(0xd7)))_0x3c5e38[_0x4a90c5(0xd1)](_0x10c4b2);else{if(_0x10c4b2[_0x4a90c5(0xda)](_0x4a90c5(0xb9))||_0x10c4b2['startsWith'](_0x4a90c5(0xe5)))_0x164aee['push'](_0x10c4b2);}}}if(_0x164aee[_0x4a90c5(0xc8)]===0x0&&_0x3c5e38[_0x4a90c5(0xc8)]===0x0)return _0x2eb915>0x0?_0x4a90c5(0xde)+_0x2eb915+_0x4a90c5(0xeb):_0x2f7d07[_0x4a90c5(0xc1)]();const _0x38aa86=[];if(_0x164aee[_0x4a90c5(0xc8)]>0x0){_0x38aa86[_0x4a90c5(0xd1)](_0x4a90c5(0xdb)+_0x164aee[_0x4a90c5(0xc8)]+_0x4a90c5(0xe8)+_0x3c5e38[_0x4a90c5(0xc8)]+_0x4a90c5(0xd9)),_0x38aa86[_0x4a90c5(0xd1)](_0x4a90c5(0xdc));for(const _0x1fad28 of _0x164aee['slice'](0x0,0x5))_0x38aa86[_0x4a90c5(0xd1)]('\x20\x20'+_0x1fad28);if(_0x164aee[_0x4a90c5(0xc8)]>0x5)_0x38aa86[_0x4a90c5(0xd1)](_0x4a90c5(0xe1)+(_0x164aee['length']-0x5)+'\x20more\x20errors');}else _0x38aa86[_0x4a90c5(0xd1)](_0x4a90c5(0xde)+_0x2eb915+_0x4a90c5(0xe9)+_0x3c5e38[_0x4a90c5(0xc8)]+_0x4a90c5(0xd9));if(_0x3c5e38[_0x4a90c5(0xc8)]>0x0&&_0x3c5e38[_0x4a90c5(0xc8)]<=0x5){_0x38aa86[_0x4a90c5(0xd1)](_0x4a90c5(0xc2));for(const _0x490c69 of _0x3c5e38)_0x38aa86[_0x4a90c5(0xd1)]('\x20\x20'+_0x490c69);}else _0x3c5e38[_0x4a90c5(0xc8)]>0x5&&_0x38aa86[_0x4a90c5(0xd1)]('\x0a('+_0x3c5e38[_0x4a90c5(0xc8)]+_0x4a90c5(0xc9));return _0x38aa86[_0x4a90c5(0xd4)]('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x3bbb2e=a0_0x51cb;function a0_0x51cb(_0x587916,_0x2e374b){_0x587916=_0x587916-0x19b;const _0x4f3a67=a0_0x4f3a();let _0x51cbb0=_0x4f3a67[_0x587916];return _0x51cbb0;}(function(_0xf37e9d,_0x2f37a7){const _0x15ee4a=a0_0x51cb,_0xb02971=_0xf37e9d();while(!![]){try{const _0x90276a=parseInt(_0x15ee4a(0x200))/0x1+parseInt(_0x15ee4a(0x22a))/0x2*(-parseInt(_0x15ee4a(0x1a8))/0x3)+-parseInt(_0x15ee4a(0x19f))/0x4+parseInt(_0x15ee4a(0x1eb))/0x5*(parseInt(_0x15ee4a(0x222))/0x6)+parseInt(_0x15ee4a(0x21d))/0x7+-parseInt(_0x15ee4a(0x1ac))/0x8*(parseInt(_0x15ee4a(0x1c6))/0x9)+parseInt(_0x15ee4a(0x1c5))/0xa;if(_0x90276a===_0x2f37a7)break;else _0xb02971['push'](_0xb02971['shift']());}catch(_0x47bb6c){_0xb02971['push'](_0xb02971['shift']());}}}(a0_0x4f3a,0xe2f01));var __createBinding=this&&this[a0_0x3bbb2e(0x214)]||(Object[a0_0x3bbb2e(0x203)]?function(_0x25d4d7,_0x522749,_0x5ddad3,_0x5ccaae){const _0x150cef=a0_0x3bbb2e;if(_0x5ccaae===undefined)_0x5ccaae=_0x5ddad3;var _0x150fa6=Object[_0x150cef(0x1b0)](_0x522749,_0x5ddad3);(!_0x150fa6||(_0x150cef(0x1bb)in _0x150fa6?!_0x522749['__esModule']:_0x150fa6['writable']||_0x150fa6['configurable']))&&(_0x150fa6={'enumerable':!![],'get':function(){return _0x522749[_0x5ddad3];}}),Object['defineProperty'](_0x25d4d7,_0x5ccaae,_0x150fa6);}:function(_0x4aa9ec,_0x4ba221,_0x499b6e,_0x2450af){if(_0x2450af===undefined)_0x2450af=_0x499b6e;_0x4aa9ec[_0x2450af]=_0x4ba221[_0x499b6e];}),__setModuleDefault=this&&this[a0_0x3bbb2e(0x1fd)]||(Object['create']?function(_0x41c915,_0x8107a7){const _0xe2e129=a0_0x3bbb2e;Object['defineProperty'](_0x41c915,_0xe2e129(0x1b1),{'enumerable':!![],'value':_0x8107a7});}:function(_0x5c4e82,_0x5e7b6a){const _0x13360f=a0_0x3bbb2e;_0x5c4e82[_0x13360f(0x1b1)]=_0x5e7b6a;}),__importStar=this&&this['__importStar']||(function(){var _0x468ca4=function(_0x1d3429){const _0x45bd7a=a0_0x51cb;return _0x468ca4=Object[_0x45bd7a(0x1a5)]||function(_0x1c9b01){const _0x15ac34=_0x45bd7a;var _0x33c654=[];for(var _0x2a6214 in _0x1c9b01)if(Object[_0x15ac34(0x1c4)]['hasOwnProperty'][_0x15ac34(0x1fe)](_0x1c9b01,_0x2a6214))_0x33c654[_0x33c654[_0x15ac34(0x1e1)]]=_0x2a6214;return _0x33c654;},_0x468ca4(_0x1d3429);};return function(_0x32c951){const _0x201b03=a0_0x51cb;if(_0x32c951&&_0x32c951[_0x201b03(0x1ab)])return _0x32c951;var _0x23331f={};if(_0x32c951!=null){for(var _0x34ba47=_0x468ca4(_0x32c951),_0x25394e=0x0;_0x25394e<_0x34ba47['length'];_0x25394e++)if(_0x34ba47[_0x25394e]!==_0x201b03(0x1b1))__createBinding(_0x23331f,_0x32c951,_0x34ba47[_0x25394e]);}return __setModuleDefault(_0x23331f,_0x32c951),_0x23331f;};}());Object[a0_0x3bbb2e(0x1e7)](exports,a0_0x3bbb2e(0x1ab),{'value':!![]}),exports[a0_0x3bbb2e(0x202)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x3bbb2e(0x1d1)]=filterCat,exports['filterGrep']=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x3bbb2e(0x229))),generic_1=require('./generic'),tracker_1=require(a0_0x3bbb2e(0x19c));function isFeatureEnabled(_0x3f0abf){const _0x13689f=a0_0x3bbb2e;try{const _0x249bd9=tracker_1[_0x13689f(0x1ff)][_0x13689f(0x19e)](),_0x14acf2=_0x249bd9[_0x13689f(0x1ae)];if(!_0x14acf2||_0x14acf2[_0x3f0abf]===undefined)return!![];return _0x14acf2[_0x3f0abf]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x3bbb2e(0x220),a0_0x3bbb2e(0x1c0),a0_0x3bbb2e(0x1ed),a0_0x3bbb2e(0x1b8),a0_0x3bbb2e(0x209),a0_0x3bbb2e(0x206),a0_0x3bbb2e(0x1dc),a0_0x3bbb2e(0x1d9),a0_0x3bbb2e(0x1a2)],BINARY_EXTENSIONS=[a0_0x3bbb2e(0x212),a0_0x3bbb2e(0x1db),a0_0x3bbb2e(0x1a7),'.wasm',a0_0x3bbb2e(0x1cc),a0_0x3bbb2e(0x218),a0_0x3bbb2e(0x1d3),'.gif',a0_0x3bbb2e(0x1f5),a0_0x3bbb2e(0x1af),a0_0x3bbb2e(0x1c3),a0_0x3bbb2e(0x1bc),a0_0x3bbb2e(0x20d),'.zip','.tar.gz',a0_0x3bbb2e(0x211),a0_0x3bbb2e(0x1ee),a0_0x3bbb2e(0x1a9),a0_0x3bbb2e(0x1df),a0_0x3bbb2e(0x1f8),'.exe',a0_0x3bbb2e(0x1fc),a0_0x3bbb2e(0x1fa),a0_0x3bbb2e(0x1e6),a0_0x3bbb2e(0x217),a0_0x3bbb2e(0x1ef),'.sqlite',a0_0x3bbb2e(0x1b3),a0_0x3bbb2e(0x1e2),'.woff',a0_0x3bbb2e(0x226),a0_0x3bbb2e(0x1ba),'.eot',a0_0x3bbb2e(0x1de),'.mp3','.mp4',a0_0x3bbb2e(0x1b9),a0_0x3bbb2e(0x1aa),'.mov',a0_0x3bbb2e(0x20c),a0_0x3bbb2e(0x1a4),a0_0x3bbb2e(0x1d7),'.class','.o','.obj'];function extractFilename(_0x2e7e5c){const _0x58b413=a0_0x3bbb2e,_0x1f2577=_0x2e7e5c[_0x58b413(0x1b7)]()[_0x58b413(0x21f)](/\s+/);for(let _0x52b8db=0x1;_0x52b8db<_0x1f2577[_0x58b413(0x1e1)];_0x52b8db++){if(!_0x1f2577[_0x52b8db][_0x58b413(0x20f)]('-'))return _0x1f2577[_0x52b8db];}return null;}function filterLockFile(_0x1d79e6,_0x7d6f24){const _0x1de630=a0_0x3bbb2e;try{const _0x2e9c66=path[_0x1de630(0x1da)](_0x7d6f24)[_0x1de630(0x20e)]();if(!LOCK_FILES['some'](_0x3f97b8=>_0x2e9c66===_0x3f97b8[_0x1de630(0x20e)]()))return null;const _0x17fcb3=_0x1d79e6[_0x1de630(0x1e1)];let _0x12565e=0x0;if(_0x2e9c66===_0x1de630(0x220))try{const _0x13b0f9=JSON[_0x1de630(0x1f3)](_0x1d79e6);_0x12565e=Object[_0x1de630(0x1e5)](_0x13b0f9['packages']||_0x13b0f9[_0x1de630(0x1bf)]||{})['length'];}catch{_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/"resolved":/g)||[])[_0x1de630(0x1e1)];}else{if(_0x2e9c66===_0x1de630(0x1c0))_0x12565e=(_0x1d79e6['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x1de630(0x1e1)];else{if(_0x2e9c66===_0x1de630(0x1a6)||_0x2e9c66===_0x1de630(0x206))_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/\[\[package\]\]/g)||[])[_0x1de630(0x1e1)];else{if(_0x2e9c66===_0x1de630(0x209))_0x12565e=Math['floor'](_0x1d79e6['split']('\x0a')[_0x1de630(0x1f0)](_0x27acec=>_0x27acec[_0x1de630(0x1b7)]())[_0x1de630(0x1e1)]/0x2);else{if(_0x2e9c66===_0x1de630(0x1dc))try{_0x12565e=JSON[_0x1de630(0x1f3)](_0x1d79e6)[_0x1de630(0x1ad)]?.[_0x1de630(0x1e1)]||0x0;}catch{}else _0x2e9c66===_0x1de630(0x1ed)?_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/^\s{2}['"@a-z]/gm)||[])[_0x1de630(0x1e1)]:_0x12565e=_0x1d79e6[_0x1de630(0x21f)]('\x0a')[_0x1de630(0x1f0)](_0x28b4c8=>_0x28b4c8[_0x1de630(0x1b7)]())['length'];}}}}return _0x1de630(0x210)+path[_0x1de630(0x1da)](_0x7d6f24)+':\x20'+_0x12565e+_0x1de630(0x204)+_0x17fcb3[_0x1de630(0x1ea)]()+_0x1de630(0x1e0);}catch{return null;}}function filterBinaryOrMinified(_0x1735d0,_0x4bff7c){const _0x1b053c=a0_0x3bbb2e;try{if(_0x4bff7c){const _0x2fe146=_0x4bff7c[_0x1b053c(0x20e)]();for(const _0x2aef17 of BINARY_EXTENSIONS){if(_0x2fe146[_0x1b053c(0x1b2)](_0x2aef17))return _0x1b053c(0x1ec)+path[_0x1b053c(0x1da)](_0x4bff7c)+',\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x216)+_0x2aef17+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x1cd85d=_0x1735d0[_0x1b053c(0x1c8)](0x0,0x3e8);let _0x531c59=0x0;for(let _0x2d49b9=0x0;_0x2d49b9<_0x1cd85d[_0x1b053c(0x1e1)];_0x2d49b9++){if(_0x1cd85d[_0x1b053c(0x1d5)](_0x2d49b9)===0x0)_0x531c59++;}if(_0x531c59>0x0)return'[binary\x20file]\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x201);let _0x14417e=0x0;for(let _0x165008=0x0;_0x165008<_0x1cd85d[_0x1b053c(0x1e1)];_0x165008++){const _0x31e79d=_0x1cd85d[_0x1b053c(0x1d5)](_0x165008);if(_0x31e79d<0x20&&_0x31e79d!==0xa&&_0x31e79d!==0xd&&_0x31e79d!==0x9)_0x14417e++;}if(_0x1cd85d[_0x1b053c(0x1e1)]>0x64&&_0x14417e>_0x1cd85d['length']*0.1)return _0x1b053c(0x1ca)+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x21c);const _0x3a169b=_0x1735d0[_0x1b053c(0x21f)]('\x0a');if(_0x3a169b[_0x1b053c(0x1e1)]<=0x3&&_0x1735d0[_0x1b053c(0x1e1)]>0x1388)return'[minified\x20file]\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x1c9)+_0x3a169b[_0x1b053c(0x1e1)]+_0x1b053c(0x1e8);return null;}catch{return null;}}function filterJsonMinify(_0x1969b3){const _0x59175e=a0_0x3bbb2e;try{const _0xcc823e=_0x1969b3[_0x59175e(0x1b7)]();if(!_0xcc823e['startsWith']('{')&&!_0xcc823e[_0x59175e(0x20f)]('['))return null;const _0x5697fb=_0xcc823e['split']('\x0a');if(_0x5697fb[_0x59175e(0x1e1)]<=0x14)return null;const _0x27899a=JSON['parse'](_0xcc823e),_0x168437=JSON['stringify'](_0x27899a);if(_0x168437[_0x59175e(0x1e1)]<_0xcc823e[_0x59175e(0x1e1)])return _0x168437;return null;}catch{return null;}}function filterLs(_0x2fedf9){const _0x3130d1=a0_0x3bbb2e,_0x9b1ca=_0x2fedf9[_0x3130d1(0x21f)]('\x0a')['filter'](_0x23989b=>_0x23989b['trim']()[_0x3130d1(0x1e1)]>0x0);if(_0x9b1ca[_0x3130d1(0x1e1)]===0x0)return _0x3130d1(0x1cd);if(_0x9b1ca[_0x3130d1(0x1e1)]<=0x1e)return _0x2fedf9[_0x3130d1(0x1b7)]();const _0x1b70cb=[],_0x3687a8=[];for(const _0x4af76a of _0x9b1ca){const _0x4341c4=_0x4af76a[_0x3130d1(0x1b7)]();if(_0x4341c4[_0x3130d1(0x20f)](_0x3130d1(0x1a1))||_0x4341c4['startsWith']('d')&&_0x4341c4['includes']('..'))continue;_0x4341c4[_0x3130d1(0x1b2)]('/')||_0x4341c4[_0x3130d1(0x20f)]('d')&&_0x4341c4[_0x3130d1(0x1ce)]('\x20')?_0x1b70cb[_0x3130d1(0x22d)](_0x4341c4):_0x3687a8[_0x3130d1(0x22d)](_0x4341c4);}const _0x2c91a9=[];return _0x1b70cb['length']>0x0&&(_0x1b70cb[_0x3130d1(0x1e1)]<=0xf?_0x2c91a9['push'](..._0x1b70cb):(_0x2c91a9['push'](..._0x1b70cb[_0x3130d1(0x1f4)](0x0,0xa)),_0x2c91a9[_0x3130d1(0x22d)](_0x3130d1(0x213)+(_0x1b70cb['length']-0xa)+_0x3130d1(0x1d6)))),_0x3687a8[_0x3130d1(0x1e1)]>0x0&&(_0x3687a8[_0x3130d1(0x1e1)]<=0x14?_0x2c91a9[_0x3130d1(0x22d)](..._0x3687a8):(_0x2c91a9[_0x3130d1(0x22d)](..._0x3687a8[_0x3130d1(0x1f4)](0x0,0xf)),_0x2c91a9[_0x3130d1(0x22d)](_0x3130d1(0x213)+(_0x3687a8[_0x3130d1(0x1e1)]-0xf)+'\x20more\x20files'))),_0x2c91a9[_0x3130d1(0x22d)]('\x0a('+_0x1b70cb[_0x3130d1(0x1e1)]+_0x3130d1(0x223)+_0x3687a8[_0x3130d1(0x1e1)]+_0x3130d1(0x22b)),_0x2c91a9[_0x3130d1(0x1b5)]('\x0a');}function filterTree(_0x33ad20){const _0x4e0241=a0_0x3bbb2e,_0xe91e37=_0x33ad20[_0x4e0241(0x21f)]('\x0a');if(_0xe91e37[_0x4e0241(0x1e1)]<=0x32)return _0x33ad20['trim']();const _0x46d406=[];let _0xfabd95=0x0,_0x4c03b1=0x0,_0xa30ac0=0x0;for(const _0x5d085e of _0xe91e37){const _0x4793f3=_0x5d085e[_0x4e0241(0x1c1)](/(\d+)\s+director/),_0x12d747=_0x5d085e[_0x4e0241(0x1c1)](/(\d+)\s+file/);if(_0x4793f3)_0xa30ac0=parseInt(_0x4793f3[0x1]);if(_0x12d747)_0x4c03b1=parseInt(_0x12d747[0x1]);const _0x22fc79=(_0x5d085e[_0x4e0241(0x1c1)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x22fc79<=0x4&&(_0x46d406[_0x4e0241(0x22d)](_0x5d085e),_0xfabd95++);}return _0xe91e37[_0x4e0241(0x1e1)]>_0x46d406[_0x4e0241(0x1e1)]&&_0x46d406[_0x4e0241(0x22d)](_0x4e0241(0x1d0)+_0xa30ac0+_0x4e0241(0x223)+_0x4c03b1+_0x4e0241(0x1c2)),_0x46d406[_0x4e0241(0x1b5)]('\x0a');}function a0_0x4f3a(){const _0x2d5666=['.cpp','push','No\x20files\x20found','../tracker','.java','getConfig','3840272sKXlnI','\x20matches\x20across\x20','total\x20','bun.lockb','extname','.pyc','getOwnPropertyNames','cargo.lock','.map','1369986kDewxK','.bz2','.avi','__esModule','520jTygXk','packages','features_enabled','.bmp','getOwnPropertyDescriptor','default','endsWith','.db','@param','join','.cs','trim','Cargo.lock','.wav','.ttf','get','.svg','smartCrushJson','\x20lines\x20total,\x20','dependencies','yarn.lock','match','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.webp','prototype','3866080ONVeVh','202545Nmwbpu','from\x20','substring','\x20chars\x20across\x20','[binary\x20file]\x20','\x20directories','.png','Empty\x20directory','includes','.jsx','\x0a...\x20(','filterCat','.js','.jpeg','#include\x20','charCodeAt','\x20more\x20directories','.pyo','\x20\x20...\x20+','Gemfile.lock','basename','.min.css','composer.lock','@return','.otf','.7z','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','length','.sqlite3','\x20lines)','indexOf','keys','.dylib','defineProperty','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','use\x20','toLocaleString','5qTrVTM','[binary/minified\x20file]\x20','pnpm-lock.yaml','.gz','.dat','filter','.swift','package\x20','parse','slice','.ico','sort','json_crusher','.rar','.tsx','.so','.py','.dll','__setModuleDefault','call','tracker','1668829ykqzwi','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','filterLs','create','\x20dependencies,\x20','/\x20(','poetry.lock','\x20more\x20files\x20with\x20matches','entries','go.sum','.kt','import\x20','.webm','.pdf','toLowerCase','startsWith','[lock\x20file]\x20','.tgz','.min.js','...\x20+','__createBinding','.go','\x20chars,\x20type:\x20','.bin','.jpg','.rs','[code\x20skeleton]\x20','binary','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','1785651IJSXeT','collapseWhitespace','split','package-lock.json','skeleton','8991372HUJpeF','\x20directories,\x20','export\x20','.ts','.woff2','\x0a...\x20[',':\x20...\x20(','path','2qwdgYf','\x20files)'];a0_0x4f3a=function(){return _0x2d5666;};return a0_0x4f3a();}function filterCat(_0x340bf3,_0x3d9ea6=''){const _0x4d241c=a0_0x3bbb2e,_0x252900=extractFilename(_0x3d9ea6);try{if(_0x252900&&isFeatureEnabled('lock')){const _0x3f68c6=filterLockFile(_0x340bf3,_0x252900);if(_0x3f68c6)return _0x3f68c6;}if(isFeatureEnabled(_0x4d241c(0x21b))){const _0x591f88=filterBinaryOrMinified(_0x340bf3,_0x252900);if(_0x591f88)return _0x591f88;}if(isFeatureEnabled(_0x4d241c(0x1f7))){const _0x54d7f1=(0x0,generic_1[_0x4d241c(0x1bd)])(_0x340bf3);if(_0x54d7f1)return _0x54d7f1;}const _0x460c72=filterJsonMinify(_0x340bf3);if(_0x460c72)return _0x460c72;if(_0x252900&&isFeatureEnabled(_0x4d241c(0x221))){const _0xbdc0af=path[_0x4d241c(0x1a3)](_0x252900)[_0x4d241c(0x20e)](),_0x362a3c=[_0x4d241c(0x225),_0x4d241c(0x1d2),_0x4d241c(0x1f9),_0x4d241c(0x1cf),_0x4d241c(0x1fb),_0x4d241c(0x215),_0x4d241c(0x219),_0x4d241c(0x19d),'.c',_0x4d241c(0x22c),_0x4d241c(0x1b6),'.rb',_0x4d241c(0x1f1),_0x4d241c(0x20a)];if(_0x362a3c[_0x4d241c(0x1ce)](_0xbdc0af)){const _0x1c9c82=_0x340bf3['split']('\x0a');if(_0x1c9c82[_0x4d241c(0x1e1)]>0x64){const _0x49b5b2=[];_0x49b5b2[_0x4d241c(0x22d)](_0x4d241c(0x21a)+path['basename'](_0x252900)+'\x20('+_0x1c9c82[_0x4d241c(0x1e1)]+_0x4d241c(0x1e3)),_0x49b5b2[_0x4d241c(0x22d)]('');for(const _0x1f6372 of _0x1c9c82){const _0x3901c5=_0x1f6372['trim']();if(_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x20b))||_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1c7))||_0x3901c5[_0x4d241c(0x20f)]('require(')||_0x3901c5[_0x4d241c(0x1c1)](/=\s*require\(/)||_0x3901c5['startsWith'](_0x4d241c(0x1d4))||_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1e9))||_0x3901c5['startsWith'](_0x4d241c(0x1f2)))_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else{if(_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(async\s+)?function\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(default\s+)?class\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(type|interface|enum)\s+/)||_0x3901c5['match'](/^(async\s+)?def\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^func\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^type\s+\w+\s+(struct|interface)/)||_0x3901c5[_0x4d241c(0x1c1)](/^(pub\s+)?(async\s+)?fn\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(public|private|protected|static)\s+/))_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else{if(_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x224))&&!_0x3901c5[_0x4d241c(0x1ce)]('=>')&&_0x3901c5[_0x4d241c(0x1e1)]<0x78)_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else _0x3901c5[_0x4d241c(0x20f)]('@')&&!_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1b4))&&!_0x3901c5['startsWith'](_0x4d241c(0x1dd))&&_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);}}}_0x49b5b2[_0x4d241c(0x22d)](''),_0x49b5b2[_0x4d241c(0x22d)]('('+_0x1c9c82[_0x4d241c(0x1e1)]+_0x4d241c(0x1be)+(_0x49b5b2['length']-0x2)+'\x20structural\x20lines\x20shown)');const _0x258a8b=_0x49b5b2[_0x4d241c(0x1b5)]('\x0a');if(_0x258a8b['length']<_0x340bf3[_0x4d241c(0x1e1)])return _0x258a8b;}}}}catch{}let _0x58bc58=(0x0,generic_1[_0x4d241c(0x21e)])(_0x340bf3);if(_0x252900){const _0x2461dc=path[_0x4d241c(0x1a3)](_0x252900)[_0x4d241c(0x20e)]();_0x58bc58=(0x0,generic_1['stripComments'])(_0x58bc58,_0x2461dc);}const _0xd5a151=_0x58bc58[_0x4d241c(0x21f)]('\x0a');if(_0xd5a151[_0x4d241c(0x1e1)]<=0x64)return _0x58bc58;const _0x1af40e=[];return _0x1af40e[_0x4d241c(0x22d)](..._0xd5a151[_0x4d241c(0x1f4)](0x0,0x32)),_0x1af40e[_0x4d241c(0x22d)](_0x4d241c(0x227)+(_0xd5a151[_0x4d241c(0x1e1)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x1af40e['push'](..._0xd5a151[_0x4d241c(0x1f4)](-0x1e)),_0x1af40e[_0x4d241c(0x22d)]('\x0a('+_0xd5a151[_0x4d241c(0x1e1)]+'\x20lines\x20total)'),_0x1af40e[_0x4d241c(0x1b5)]('\x0a');}function filterGrep(_0x2a60ee){const _0x1942ba=a0_0x3bbb2e,_0x51a5c8=_0x2a60ee[_0x1942ba(0x21f)]('\x0a')['filter'](_0x5ae434=>_0x5ae434[_0x1942ba(0x1b7)]()['length']>0x0);if(_0x51a5c8[_0x1942ba(0x1e1)]===0x0)return'No\x20matches\x20found';if(_0x51a5c8[_0x1942ba(0x1e1)]<=0x32)return _0x2a60ee[_0x1942ba(0x1b7)]();const _0x59187d={},_0x2d601a=[];for(const _0x254232 of _0x51a5c8){const _0x143a8a=_0x254232[_0x1942ba(0x1e4)](':');if(_0x143a8a>0x0&&_0x143a8a<0xc8){const _0x4425a6=_0x254232[_0x1942ba(0x1c8)](0x0,_0x143a8a);if(_0x4425a6[_0x1942ba(0x1ce)]('/')||_0x4425a6[_0x1942ba(0x1ce)]('\x5c')||_0x4425a6[_0x1942ba(0x1ce)]('.')){if(!_0x59187d[_0x4425a6])_0x59187d[_0x4425a6]=[];_0x59187d[_0x4425a6]['push'](_0x254232[_0x1942ba(0x1c8)](_0x143a8a+0x1)[_0x1942ba(0x1b7)]());continue;}}_0x2d601a[_0x1942ba(0x22d)](_0x254232);}const _0x477448=[],_0xd95a09=Object['keys'](_0x59187d);if(_0xd95a09[_0x1942ba(0x1e1)]>0x0){const _0x352dbc=0x14,_0x5c1b75=_0xd95a09[_0x1942ba(0x1f4)](0x0,_0x352dbc);for(const _0x29d6ad of _0x5c1b75){const _0x3b300c=_0x59187d[_0x29d6ad];if(_0x3b300c['length']<=0x3)for(const _0x435077 of _0x3b300c){_0x477448['push'](_0x29d6ad+':\x20'+_0x435077);}else _0x477448['push'](_0x29d6ad+':\x20'+_0x3b300c[0x0]),_0x477448[_0x1942ba(0x22d)](_0x29d6ad+_0x1942ba(0x228)+_0x3b300c[_0x1942ba(0x1e1)]+'\x20matches\x20in\x20this\x20file)');}_0xd95a09['length']>_0x352dbc&&_0x477448['push'](_0x1942ba(0x213)+(_0xd95a09['length']-_0x352dbc)+_0x1942ba(0x207));}if(_0x2d601a['length']>0x0){const _0x2c99d9=0x1e;_0x477448[_0x1942ba(0x22d)](..._0x2d601a['slice'](0x0,_0x2c99d9)),_0x2d601a['length']>_0x2c99d9&&_0x477448[_0x1942ba(0x22d)]('...\x20+'+(_0x2d601a[_0x1942ba(0x1e1)]-_0x2c99d9)+'\x20more\x20matches');}const _0x204440=_0x51a5c8[_0x1942ba(0x1e1)];return _0x477448['push']('\x0a('+_0x204440+_0x1942ba(0x1a0)+(_0xd95a09[_0x1942ba(0x1e1)]||'?')+'\x20files)'),_0x477448[_0x1942ba(0x1b5)]('\x0a');}function filterFind(_0x2bdd15){const _0x1870d5=a0_0x3bbb2e,_0x5aca96=_0x2bdd15['split']('\x0a')[_0x1870d5(0x1f0)](_0x3686bb=>_0x3686bb[_0x1870d5(0x1b7)]()[_0x1870d5(0x1e1)]>0x0);if(_0x5aca96[_0x1870d5(0x1e1)]===0x0)return _0x1870d5(0x19b);if(_0x5aca96[_0x1870d5(0x1e1)]<=0x32)return _0x2bdd15[_0x1870d5(0x1b7)]();const _0x2f875a={};for(const _0x4ab304 of _0x5aca96){const _0xe9e03a=path['dirname'](_0x4ab304[_0x1870d5(0x1b7)]())||'.';_0x2f875a[_0xe9e03a]=(_0x2f875a[_0xe9e03a]||0x0)+0x1;}const _0x274c64=Object[_0x1870d5(0x208)](_0x2f875a)[_0x1870d5(0x1f6)]((_0x59276a,_0x123d8e)=>_0x123d8e[0x1]-_0x59276a[0x1]),_0x37e982=[_0x5aca96[_0x1870d5(0x1e1)]+'\x20files\x20found\x20across\x20'+_0x274c64['length']+_0x1870d5(0x1cb),''],_0x2a00c1=0x1e;for(const [_0x5aab65,_0x290acf]of _0x274c64[_0x1870d5(0x1f4)](0x0,_0x2a00c1)){_0x37e982[_0x1870d5(0x22d)]('\x20\x20'+_0x5aab65+_0x1870d5(0x205)+_0x290acf+_0x1870d5(0x22b));}return _0x274c64['length']>_0x2a00c1&&_0x37e982[_0x1870d5(0x22d)](_0x1870d5(0x1d8)+(_0x274c64['length']-_0x2a00c1)+_0x1870d5(0x1d6)),_0x37e982[_0x1870d5(0x1b5)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x384783=a0_0x142a;(function(_0xcc6790,_0xa5c45d){const _0x5eaf29=a0_0x142a,_0x26b513=_0xcc6790();while(!![]){try{const _0x2fe05a=parseInt(_0x5eaf29(0xa7))/0x1*(parseInt(_0x5eaf29(0x7f))/0x2)+-parseInt(_0x5eaf29(0xcc))/0x3+parseInt(_0x5eaf29(0x91))/0x4*(-parseInt(_0x5eaf29(0xb0))/0x5)+-parseInt(_0x5eaf29(0xeb))/0x6*(-parseInt(_0x5eaf29(0xc1))/0x7)+parseInt(_0x5eaf29(0xad))/0x8+parseInt(_0x5eaf29(0x8e))/0x9+-parseInt(_0x5eaf29(0x99))/0xa;if(_0x2fe05a===_0xa5c45d)break;else _0x26b513['push'](_0x26b513['shift']());}catch(_0x1846f0){_0x26b513['push'](_0x26b513['shift']());}}}(a0_0x553d,0x675b1));function a0_0x553d(){const _0x42b653=['.tsx','.eot','\x20more\x20directories','.tgz','\x0a...\x20[','\x20dependencies,\x20','hasOwnProperty','\x20more\x20matches','binary','443690njuRAA','.dll','trim','\x20lines\x20total)','\x20\x20...\x20+','collapseWhitespace','create','\x20lines)','No\x20files\x20found','.woff2','.exe','.otf','composer.lock','./generic','@param','2905173YiLonr','startsWith','some','332eiGoBw','/\x20(','.min.js','features_enabled','.jpeg','configurable','json_crusher','.obj','2910730LcXWAy','filterGrep','.dylib','\x20more\x20files','filter','defineProperty','smartCrushJson','.cpp','.map','call','[minified\x20file]\x20','slice','indexOf','match','3kMqHyw','\x20matches\x20across\x20',':\x20...\x20(','split','.mov','push','3259368hVUSkF','@return','.dat','17505Vifdje','No\x20matches\x20found','lock','.class','../tracker','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','.pyo','includes','Gemfile.lock','dirname','.jsx','.gif','\x20files\x20found\x20across\x20','yarn.lock','length','dependencies','packages','665476YyFCxv','\x20more\x20files\x20with\x20matches','package-lock.json','.webp','from\x20','poetry.lock','\x20lines\x20total,\x20','.py','__setModuleDefault','endsWith','.js','1742664UYVCfF','keys','getOwnPropertyDescriptor','default','\x0a...\x20(','get','.ico','extname','bun.lockb','__esModule','import\x20','\x20directories,\x20','stringify','.db','pnpm-lock.yaml','__importStar','join','.pyc','.zip','.java','\x20structural\x20lines\x20shown)','.wasm','parse','.bmp','#include\x20','.gz','.ts','Empty\x20directory','.mp3','skeleton','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','12xgLZVf','export\x20','.jpg','sort','[binary\x20file]\x20','__createBinding','.bz2','substring','Cargo.lock','writable','use\x20','\x20lines\x20truncated]\x20...\x0a','.ttf','[lock\x20file]\x20','.svg','.rar','.so','.rb','\x20files)','toLocaleString','toLowerCase','getOwnPropertyNames','.tar.gz','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','.bin','go.sum','\x20chars,\x20type:\x20','basename','package\x20','filterTree','...\x20+','[binary/minified\x20file]\x20','charCodeAt','[code\x20skeleton]\x20'];a0_0x553d=function(){return _0x42b653;};return a0_0x553d();}var __createBinding=this&&this[a0_0x384783(0xf0)]||(Object[a0_0x384783(0x85)]?function(_0x4b0232,_0x3891c6,_0x1b9d9c,_0x47eef2){const _0x1fe04b=a0_0x384783;if(_0x47eef2===undefined)_0x47eef2=_0x1b9d9c;var _0x19f1ca=Object[_0x1fe04b(0xce)](_0x3891c6,_0x1b9d9c);(!_0x19f1ca||(_0x1fe04b(0xd1)in _0x19f1ca?!_0x3891c6[_0x1fe04b(0xd5)]:_0x19f1ca[_0x1fe04b(0xf4)]||_0x19f1ca[_0x1fe04b(0x96)]))&&(_0x19f1ca={'enumerable':!![],'get':function(){return _0x3891c6[_0x1b9d9c];}}),Object[_0x1fe04b(0x9e)](_0x4b0232,_0x47eef2,_0x19f1ca);}:function(_0x58ccb0,_0x246b48,_0x184036,_0x16a4e0){if(_0x16a4e0===undefined)_0x16a4e0=_0x184036;_0x58ccb0[_0x16a4e0]=_0x246b48[_0x184036];}),__setModuleDefault=this&&this[a0_0x384783(0xc9)]||(Object[a0_0x384783(0x85)]?function(_0x36c4f4,_0x233e52){const _0x2e7114=a0_0x384783;Object[_0x2e7114(0x9e)](_0x36c4f4,_0x2e7114(0xcf),{'enumerable':!![],'value':_0x233e52});}:function(_0x61177e,_0x651855){_0x61177e['default']=_0x651855;}),__importStar=this&&this[a0_0x384783(0xdb)]||(function(){var _0x46046b=function(_0x2ea7ee){const _0x2b47f1=a0_0x142a;return _0x46046b=Object[_0x2b47f1(0x69)]||function(_0x4ffb62){const _0x301514=_0x2b47f1;var _0x184ad3=[];for(var _0x5919fa in _0x4ffb62)if(Object['prototype'][_0x301514(0x7c)][_0x301514(0xa2)](_0x4ffb62,_0x5919fa))_0x184ad3[_0x184ad3[_0x301514(0xbe)]]=_0x5919fa;return _0x184ad3;},_0x46046b(_0x2ea7ee);};return function(_0x1809cd){const _0x5516fb=a0_0x142a;if(_0x1809cd&&_0x1809cd['__esModule'])return _0x1809cd;var _0x2cac5d={};if(_0x1809cd!=null){for(var _0x2531ac=_0x46046b(_0x1809cd),_0x531ded=0x0;_0x531ded<_0x2531ac[_0x5516fb(0xbe)];_0x531ded++)if(_0x2531ac[_0x531ded]!==_0x5516fb(0xcf))__createBinding(_0x2cac5d,_0x1809cd,_0x2531ac[_0x531ded]);}return __setModuleDefault(_0x2cac5d,_0x1809cd),_0x2cac5d;};}());Object[a0_0x384783(0x9e)](exports,a0_0x384783(0xd5),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x384783(0x71)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x384783(0x9a)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require('path')),generic_1=require(a0_0x384783(0x8c)),tracker_1=require(a0_0x384783(0xb4));function isFeatureEnabled(_0x39084b){const _0x272f42=a0_0x384783;try{const _0x305710=tracker_1['tracker']['getConfig'](),_0x157d1b=_0x305710[_0x272f42(0x94)];if(!_0x157d1b||_0x157d1b[_0x39084b]===undefined)return!![];return _0x157d1b[_0x39084b]!==![];}catch{return!![];}}const LOCK_FILES=['package-lock.json',a0_0x384783(0xbd),a0_0x384783(0xda),a0_0x384783(0xf3),'go.sum','poetry.lock',a0_0x384783(0x8b),a0_0x384783(0xb8),a0_0x384783(0xd4)],BINARY_EXTENSIONS=[a0_0x384783(0x93),'.min.css',a0_0x384783(0xa1),a0_0x384783(0xe1),'.png',a0_0x384783(0xed),a0_0x384783(0x95),a0_0x384783(0xbb),a0_0x384783(0xd2),a0_0x384783(0xe3),a0_0x384783(0xc4),a0_0x384783(0xf9),'.pdf',a0_0x384783(0xde),a0_0x384783(0x6a),a0_0x384783(0x79),a0_0x384783(0xe5),a0_0x384783(0xf1),'.7z',a0_0x384783(0xfa),a0_0x384783(0x89),a0_0x384783(0x80),a0_0x384783(0xfb),a0_0x384783(0x9b),a0_0x384783(0x6c),a0_0x384783(0xaf),'.sqlite',a0_0x384783(0xd9),'.sqlite3','.woff',a0_0x384783(0x88),a0_0x384783(0xf7),a0_0x384783(0x77),a0_0x384783(0x8a),a0_0x384783(0xe8),'.mp4','.wav','.avi',a0_0x384783(0xab),'.webm',a0_0x384783(0xdd),a0_0x384783(0xb6),a0_0x384783(0xb3),'.o',a0_0x384783(0x98)];function extractFilename(_0x38e12c){const _0x3c7fa7=a0_0x384783,_0x5b9be6=_0x38e12c[_0x3c7fa7(0x81)]()['split'](/\s+/);for(let _0x431797=0x1;_0x431797<_0x5b9be6[_0x3c7fa7(0xbe)];_0x431797++){if(!_0x5b9be6[_0x431797]['startsWith']('-'))return _0x5b9be6[_0x431797];}return null;}function filterLockFile(_0x59b25c,_0x1c0715){const _0xf2d300=a0_0x384783;try{const _0x507eb4=path[_0xf2d300(0x6f)](_0x1c0715)[_0xf2d300(0x68)]();if(!LOCK_FILES[_0xf2d300(0x90)](_0x5c254d=>_0x507eb4===_0x5c254d[_0xf2d300(0x68)]()))return null;const _0x540931=_0x59b25c[_0xf2d300(0xbe)];let _0x171044=0x0;if(_0x507eb4===_0xf2d300(0xc3))try{const _0x32d19f=JSON[_0xf2d300(0xe2)](_0x59b25c);_0x171044=Object['keys'](_0x32d19f[_0xf2d300(0xc0)]||_0x32d19f[_0xf2d300(0xbf)]||{})[_0xf2d300(0xbe)];}catch{_0x171044=(_0x59b25c[_0xf2d300(0xa6)](/"resolved":/g)||[])[_0xf2d300(0xbe)];}else{if(_0x507eb4==='yarn.lock')_0x171044=(_0x59b25c['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0xf2d300(0xbe)];else{if(_0x507eb4==='cargo.lock'||_0x507eb4===_0xf2d300(0xc6))_0x171044=(_0x59b25c[_0xf2d300(0xa6)](/\[\[package\]\]/g)||[])['length'];else{if(_0x507eb4===_0xf2d300(0x6d))_0x171044=Math['floor'](_0x59b25c[_0xf2d300(0xaa)]('\x0a')[_0xf2d300(0x9d)](_0x5d4d93=>_0x5d4d93['trim']())['length']/0x2);else{if(_0x507eb4===_0xf2d300(0x8b))try{_0x171044=JSON[_0xf2d300(0xe2)](_0x59b25c)[_0xf2d300(0xc0)]?.[_0xf2d300(0xbe)]||0x0;}catch{}else _0x507eb4==='pnpm-lock.yaml'?_0x171044=(_0x59b25c[_0xf2d300(0xa6)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x171044=_0x59b25c[_0xf2d300(0xaa)]('\x0a')[_0xf2d300(0x9d)](_0xa349ba=>_0xa349ba[_0xf2d300(0x81)]())['length'];}}}}return _0xf2d300(0xf8)+path[_0xf2d300(0x6f)](_0x1c0715)+':\x20'+_0x171044+_0xf2d300(0x7b)+_0x540931[_0xf2d300(0x67)]()+_0xf2d300(0x6b);}catch{return null;}}function filterBinaryOrMinified(_0x34a0a4,_0x167055){const _0x2b505f=a0_0x384783;try{if(_0x167055){const _0x4e7d0a=_0x167055[_0x2b505f(0x68)]();for(const _0xf5f0b2 of BINARY_EXTENSIONS){if(_0x4e7d0a[_0x2b505f(0xca)](_0xf5f0b2))return _0x2b505f(0x73)+path[_0x2b505f(0x6f)](_0x167055)+',\x20'+_0x34a0a4['length']['toLocaleString']()+_0x2b505f(0x6e)+_0xf5f0b2+_0x2b505f(0xb5);}}const _0x322a02=_0x34a0a4[_0x2b505f(0xf2)](0x0,0x3e8);let _0x5c8e7c=0x0;for(let _0x106f4b=0x0;_0x106f4b<_0x322a02[_0x2b505f(0xbe)];_0x106f4b++){if(_0x322a02['charCodeAt'](_0x106f4b)===0x0)_0x5c8e7c++;}if(_0x5c8e7c>0x0)return _0x2b505f(0xef)+_0x34a0a4['length'][_0x2b505f(0x67)]()+'\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)';let _0x5ef691=0x0;for(let _0x27f41d=0x0;_0x27f41d<_0x322a02['length'];_0x27f41d++){const _0x1c7353=_0x322a02[_0x2b505f(0x74)](_0x27f41d);if(_0x1c7353<0x20&&_0x1c7353!==0xa&&_0x1c7353!==0xd&&_0x1c7353!==0x9)_0x5ef691++;}if(_0x322a02['length']>0x64&&_0x5ef691>_0x322a02[_0x2b505f(0xbe)]*0.1)return _0x2b505f(0xef)+_0x34a0a4[_0x2b505f(0xbe)][_0x2b505f(0x67)]()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x36fb5b=_0x34a0a4[_0x2b505f(0xaa)]('\x0a');if(_0x36fb5b['length']<=0x3&&_0x34a0a4[_0x2b505f(0xbe)]>0x1388)return _0x2b505f(0xa3)+_0x34a0a4[_0x2b505f(0xbe)]['toLocaleString']()+'\x20chars\x20across\x20'+_0x36fb5b['length']+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0x1bc5b3){const _0x17dea9=a0_0x384783;try{const _0x2593e0=_0x1bc5b3['trim']();if(!_0x2593e0['startsWith']('{')&&!_0x2593e0['startsWith']('['))return null;const _0x3a3df7=_0x2593e0[_0x17dea9(0xaa)]('\x0a');if(_0x3a3df7[_0x17dea9(0xbe)]<=0x14)return null;const _0x1fb6b2=JSON[_0x17dea9(0xe2)](_0x2593e0),_0x57db35=JSON[_0x17dea9(0xd8)](_0x1fb6b2);if(_0x57db35[_0x17dea9(0xbe)]<_0x2593e0[_0x17dea9(0xbe)])return _0x57db35;return null;}catch{return null;}}function filterLs(_0x43668b){const _0x54e2a6=a0_0x384783,_0x323997=_0x43668b['split']('\x0a')[_0x54e2a6(0x9d)](_0x3f4f91=>_0x3f4f91[_0x54e2a6(0x81)]()['length']>0x0);if(_0x323997['length']===0x0)return _0x54e2a6(0xe7);if(_0x323997['length']<=0x1e)return _0x43668b[_0x54e2a6(0x81)]();const _0x2149c0=[],_0x227d4a=[];for(const _0x6ef66a of _0x323997){const _0x313eb5=_0x6ef66a['trim']();if(_0x313eb5[_0x54e2a6(0x8f)]('total\x20')||_0x313eb5[_0x54e2a6(0x8f)]('d')&&_0x313eb5[_0x54e2a6(0xb7)]('..'))continue;_0x313eb5[_0x54e2a6(0xca)]('/')||_0x313eb5[_0x54e2a6(0x8f)]('d')&&_0x313eb5[_0x54e2a6(0xb7)]('\x20')?_0x2149c0[_0x54e2a6(0xac)](_0x313eb5):_0x227d4a[_0x54e2a6(0xac)](_0x313eb5);}const _0x3edec4=[];return _0x2149c0['length']>0x0&&(_0x2149c0[_0x54e2a6(0xbe)]<=0xf?_0x3edec4['push'](..._0x2149c0):(_0x3edec4[_0x54e2a6(0xac)](..._0x2149c0[_0x54e2a6(0xa4)](0x0,0xa)),_0x3edec4[_0x54e2a6(0xac)](_0x54e2a6(0x72)+(_0x2149c0['length']-0xa)+_0x54e2a6(0x78)))),_0x227d4a[_0x54e2a6(0xbe)]>0x0&&(_0x227d4a[_0x54e2a6(0xbe)]<=0x14?_0x3edec4[_0x54e2a6(0xac)](..._0x227d4a):(_0x3edec4['push'](..._0x227d4a[_0x54e2a6(0xa4)](0x0,0xf)),_0x3edec4[_0x54e2a6(0xac)](_0x54e2a6(0x72)+(_0x227d4a[_0x54e2a6(0xbe)]-0xf)+_0x54e2a6(0x9c)))),_0x3edec4[_0x54e2a6(0xac)]('\x0a('+_0x2149c0[_0x54e2a6(0xbe)]+'\x20directories,\x20'+_0x227d4a[_0x54e2a6(0xbe)]+_0x54e2a6(0x66)),_0x3edec4['join']('\x0a');}function filterTree(_0x2f4d9d){const _0x2cf119=a0_0x384783,_0x37bd39=_0x2f4d9d['split']('\x0a');if(_0x37bd39[_0x2cf119(0xbe)]<=0x32)return _0x2f4d9d[_0x2cf119(0x81)]();const _0x426023=[];let _0x136c07=0x0,_0x100357=0x0,_0x3abaf3=0x0;for(const _0x1cf94e of _0x37bd39){const _0x401516=_0x1cf94e['match'](/(\d+)\s+director/),_0x1bc922=_0x1cf94e[_0x2cf119(0xa6)](/(\d+)\s+file/);if(_0x401516)_0x3abaf3=parseInt(_0x401516[0x1]);if(_0x1bc922)_0x100357=parseInt(_0x1bc922[0x1]);const _0x10a7ae=(_0x1cf94e[_0x2cf119(0xa6)](/^[│├└\s─]+/)||[''])[0x0][_0x2cf119(0xbe)];_0x10a7ae<=0x4&&(_0x426023[_0x2cf119(0xac)](_0x1cf94e),_0x136c07++);}return _0x37bd39[_0x2cf119(0xbe)]>_0x426023[_0x2cf119(0xbe)]&&_0x426023['push'](_0x2cf119(0xd0)+_0x3abaf3+_0x2cf119(0xd7)+_0x100357+_0x2cf119(0xea)),_0x426023['join']('\x0a');}function filterCat(_0x3ff10c,_0x555d3b=''){const _0x394768=a0_0x384783,_0x180be6=extractFilename(_0x555d3b);try{if(_0x180be6&&isFeatureEnabled(_0x394768(0xb2))){const _0x232334=filterLockFile(_0x3ff10c,_0x180be6);if(_0x232334)return _0x232334;}if(isFeatureEnabled(_0x394768(0x7e))){const _0x1da608=filterBinaryOrMinified(_0x3ff10c,_0x180be6);if(_0x1da608)return _0x1da608;}if(isFeatureEnabled(_0x394768(0x97))){const _0x1f1bbb=(0x0,generic_1[_0x394768(0x9f)])(_0x3ff10c);if(_0x1f1bbb)return _0x1f1bbb;}const _0x28a8bf=filterJsonMinify(_0x3ff10c);if(_0x28a8bf)return _0x28a8bf;if(_0x180be6&&isFeatureEnabled(_0x394768(0xe9))){const _0x4b4f31=path['extname'](_0x180be6)[_0x394768(0x68)](),_0x13db08=[_0x394768(0xe6),_0x394768(0xcb),_0x394768(0x76),_0x394768(0xba),_0x394768(0xc8),'.go','.rs',_0x394768(0xdf),'.c',_0x394768(0xa0),'.cs',_0x394768(0x65),'.swift','.kt'];if(_0x13db08[_0x394768(0xb7)](_0x4b4f31)){const _0x24a6f1=_0x3ff10c[_0x394768(0xaa)]('\x0a');if(_0x24a6f1['length']>0x64){const _0x1c75e6=[];_0x1c75e6[_0x394768(0xac)](_0x394768(0x75)+path['basename'](_0x180be6)+'\x20('+_0x24a6f1['length']+_0x394768(0x86)),_0x1c75e6[_0x394768(0xac)]('');for(const _0x572513 of _0x24a6f1){const _0x324d4f=_0x572513[_0x394768(0x81)]();if(_0x324d4f[_0x394768(0x8f)](_0x394768(0xd6))||_0x324d4f['startsWith'](_0x394768(0xc5))||_0x324d4f[_0x394768(0x8f)]('require(')||_0x324d4f[_0x394768(0xa6)](/=\s*require\(/)||_0x324d4f['startsWith'](_0x394768(0xe4))||_0x324d4f['startsWith'](_0x394768(0xf5))||_0x324d4f[_0x394768(0x8f)](_0x394768(0x70)))_0x1c75e6[_0x394768(0xac)](_0x572513);else{if(_0x324d4f[_0x394768(0xa6)](/^(export\s+)?(async\s+)?function\s+/)||_0x324d4f['match'](/^(export\s+)?(default\s+)?class\s+/)||_0x324d4f['match'](/^(export\s+)?(type|interface|enum)\s+/)||_0x324d4f[_0x394768(0xa6)](/^(async\s+)?def\s+/)||_0x324d4f[_0x394768(0xa6)](/^func\s+/)||_0x324d4f[_0x394768(0xa6)](/^type\s+\w+\s+(struct|interface)/)||_0x324d4f['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x324d4f[_0x394768(0xa6)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x324d4f[_0x394768(0xa6)](/^(public|private|protected|static)\s+/))_0x1c75e6['push'](_0x572513);else{if(_0x324d4f[_0x394768(0x8f)](_0x394768(0xec))&&!_0x324d4f['includes']('=>')&&_0x324d4f[_0x394768(0xbe)]<0x78)_0x1c75e6[_0x394768(0xac)](_0x572513);else _0x324d4f[_0x394768(0x8f)]('@')&&!_0x324d4f[_0x394768(0x8f)](_0x394768(0x8d))&&!_0x324d4f[_0x394768(0x8f)](_0x394768(0xae))&&_0x1c75e6[_0x394768(0xac)](_0x572513);}}}_0x1c75e6[_0x394768(0xac)](''),_0x1c75e6['push']('('+_0x24a6f1[_0x394768(0xbe)]+_0x394768(0xc7)+(_0x1c75e6[_0x394768(0xbe)]-0x2)+_0x394768(0xe0));const _0x4830f8=_0x1c75e6[_0x394768(0xdc)]('\x0a');if(_0x4830f8[_0x394768(0xbe)]<_0x3ff10c[_0x394768(0xbe)])return _0x4830f8;}}}}catch{}let _0xfdc06b=(0x0,generic_1[_0x394768(0x84)])(_0x3ff10c);if(_0x180be6){const _0x18b88a=path[_0x394768(0xd3)](_0x180be6)[_0x394768(0x68)]();_0xfdc06b=(0x0,generic_1['stripComments'])(_0xfdc06b,_0x18b88a);}const _0x24a5a8=_0xfdc06b[_0x394768(0xaa)]('\x0a');if(_0x24a5a8[_0x394768(0xbe)]<=0x64)return _0xfdc06b;const _0xece6b8=[];return _0xece6b8[_0x394768(0xac)](..._0x24a5a8[_0x394768(0xa4)](0x0,0x32)),_0xece6b8[_0x394768(0xac)](_0x394768(0x7a)+(_0x24a5a8['length']-0x50)+_0x394768(0xf6)),_0xece6b8['push'](..._0x24a5a8[_0x394768(0xa4)](-0x1e)),_0xece6b8['push']('\x0a('+_0x24a5a8[_0x394768(0xbe)]+_0x394768(0x82)),_0xece6b8[_0x394768(0xdc)]('\x0a');}function a0_0x142a(_0x44eb77,_0x225b03){_0x44eb77=_0x44eb77-0x65;const _0x553d54=a0_0x553d();let _0x142a60=_0x553d54[_0x44eb77];return _0x142a60;}function filterGrep(_0xf56894){const _0x3c0627=a0_0x384783,_0x4098a4=_0xf56894[_0x3c0627(0xaa)]('\x0a')[_0x3c0627(0x9d)](_0x187ca9=>_0x187ca9[_0x3c0627(0x81)]()[_0x3c0627(0xbe)]>0x0);if(_0x4098a4[_0x3c0627(0xbe)]===0x0)return _0x3c0627(0xb1);if(_0x4098a4[_0x3c0627(0xbe)]<=0x32)return _0xf56894[_0x3c0627(0x81)]();const _0x1c35d3={},_0x1bd95f=[];for(const _0x17de6b of _0x4098a4){const _0x25e7d8=_0x17de6b[_0x3c0627(0xa5)](':');if(_0x25e7d8>0x0&&_0x25e7d8<0xc8){const _0xf9b702=_0x17de6b[_0x3c0627(0xf2)](0x0,_0x25e7d8);if(_0xf9b702[_0x3c0627(0xb7)]('/')||_0xf9b702[_0x3c0627(0xb7)]('\x5c')||_0xf9b702['includes']('.')){if(!_0x1c35d3[_0xf9b702])_0x1c35d3[_0xf9b702]=[];_0x1c35d3[_0xf9b702][_0x3c0627(0xac)](_0x17de6b[_0x3c0627(0xf2)](_0x25e7d8+0x1)[_0x3c0627(0x81)]());continue;}}_0x1bd95f['push'](_0x17de6b);}const _0x479d39=[],_0xb8361e=Object[_0x3c0627(0xcd)](_0x1c35d3);if(_0xb8361e[_0x3c0627(0xbe)]>0x0){const _0x21d55c=0x14,_0x43630c=_0xb8361e[_0x3c0627(0xa4)](0x0,_0x21d55c);for(const _0x11acfd of _0x43630c){const _0x54ccea=_0x1c35d3[_0x11acfd];if(_0x54ccea[_0x3c0627(0xbe)]<=0x3)for(const _0x5afd7f of _0x54ccea){_0x479d39[_0x3c0627(0xac)](_0x11acfd+':\x20'+_0x5afd7f);}else _0x479d39[_0x3c0627(0xac)](_0x11acfd+':\x20'+_0x54ccea[0x0]),_0x479d39['push'](_0x11acfd+_0x3c0627(0xa9)+_0x54ccea['length']+'\x20matches\x20in\x20this\x20file)');}_0xb8361e[_0x3c0627(0xbe)]>_0x21d55c&&_0x479d39['push'](_0x3c0627(0x72)+(_0xb8361e['length']-_0x21d55c)+_0x3c0627(0xc2));}if(_0x1bd95f[_0x3c0627(0xbe)]>0x0){const _0x2ce511=0x1e;_0x479d39[_0x3c0627(0xac)](..._0x1bd95f[_0x3c0627(0xa4)](0x0,_0x2ce511)),_0x1bd95f[_0x3c0627(0xbe)]>_0x2ce511&&_0x479d39[_0x3c0627(0xac)](_0x3c0627(0x72)+(_0x1bd95f[_0x3c0627(0xbe)]-_0x2ce511)+_0x3c0627(0x7d));}const _0x3e9bce=_0x4098a4[_0x3c0627(0xbe)];return _0x479d39[_0x3c0627(0xac)]('\x0a('+_0x3e9bce+_0x3c0627(0xa8)+(_0xb8361e[_0x3c0627(0xbe)]||'?')+_0x3c0627(0x66)),_0x479d39['join']('\x0a');}function filterFind(_0x7dae79){const _0x2616bc=a0_0x384783,_0x3c4abf=_0x7dae79[_0x2616bc(0xaa)]('\x0a')['filter'](_0x377c54=>_0x377c54[_0x2616bc(0x81)]()['length']>0x0);if(_0x3c4abf[_0x2616bc(0xbe)]===0x0)return _0x2616bc(0x87);if(_0x3c4abf[_0x2616bc(0xbe)]<=0x32)return _0x7dae79[_0x2616bc(0x81)]();const _0x33b6a2={};for(const _0xb7782e of _0x3c4abf){const _0x30b7b7=path[_0x2616bc(0xb9)](_0xb7782e['trim']())||'.';_0x33b6a2[_0x30b7b7]=(_0x33b6a2[_0x30b7b7]||0x0)+0x1;}const _0x129d79=Object['entries'](_0x33b6a2)[_0x2616bc(0xee)]((_0x26ae0c,_0x13c509)=>_0x13c509[0x1]-_0x26ae0c[0x1]),_0x411c13=[_0x3c4abf['length']+_0x2616bc(0xbc)+_0x129d79['length']+'\x20directories',''],_0x139688=0x1e;for(const [_0x126096,_0x32b6bc]of _0x129d79[_0x2616bc(0xa4)](0x0,_0x139688)){_0x411c13[_0x2616bc(0xac)]('\x20\x20'+_0x126096+_0x2616bc(0x92)+_0x32b6bc+_0x2616bc(0x66));}return _0x129d79[_0x2616bc(0xbe)]>_0x139688&&_0x411c13[_0x2616bc(0xac)](_0x2616bc(0x83)+(_0x129d79[_0x2616bc(0xbe)]-_0x139688)+_0x2616bc(0x78)),_0x411c13[_0x2616bc(0xdc)]('\x0a');}
|
package/hooks/claude-hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x136be2=a0_0x1a94;(function(_0x1edf5b,_0x432286){var _0x2d04f3=a0_0x1a94,_0x33a9a1=_0x1edf5b();while(!![]){try{var _0x4316e7=parseInt(_0x2d04f3(0x1aa))/0x1+parseInt(_0x2d04f3(0x1b1))/0x2*(-parseInt(_0x2d04f3(0x19a))/0x3)+parseInt(_0x2d04f3(0x1a1))/0x4+-parseInt(_0x2d04f3(0x1b9))/0x5+-parseInt(_0x2d04f3(0x1bd))/0x6*(parseInt(_0x2d04f3(0x1a5))/0x7)+-parseInt(_0x2d04f3(0x1bc))/0x8+parseInt(_0x2d04f3(0x19b))/0x9*(parseInt(_0x2d04f3(0x1b5))/0xa);if(_0x4316e7===_0x432286)break;else _0x33a9a1['push'](_0x33a9a1['shift']());}catch(_0x59b83d){_0x33a9a1['push'](_0x33a9a1['shift']());}}}(a0_0x4ea6,0x21679));var __createBinding=this&&this[a0_0x136be2(0x1a9)]||(Object[a0_0x136be2(0x1ae)]?function(_0x20c79e,_0x2e2f46,_0x3c9c58,_0x8b0d9a){var _0x559574=a0_0x136be2;if(_0x8b0d9a===undefined)_0x8b0d9a=_0x3c9c58;var _0x2554ad=Object[_0x559574(0x1b2)](_0x2e2f46,_0x3c9c58);(!_0x2554ad||(_0x559574(0x1ba)in _0x2554ad?!_0x2e2f46[_0x559574(0x1b4)]:_0x2554ad[_0x559574(0x1af)]||_0x2554ad[_0x559574(0x1ab)]))&&(_0x2554ad={'enumerable':!![],'get':function(){return _0x2e2f46[_0x3c9c58];}}),Object[_0x559574(0x1a3)](_0x20c79e,_0x8b0d9a,_0x2554ad);}:function(_0x4fff70,_0x27b44e,_0x2679ac,_0x1c8cec){if(_0x1c8cec===undefined)_0x1c8cec=_0x2679ac;_0x4fff70[_0x1c8cec]=_0x27b44e[_0x2679ac];}),__setModuleDefault=this&&this[a0_0x136be2(0x1a2)]||(Object['create']?function(_0x517497,_0x3818e1){var _0x235297=a0_0x136be2;Object[_0x235297(0x1a3)](_0x517497,_0x235297(0x1a8),{'enumerable':!![],'value':_0x3818e1});}:function(_0x22df64,_0x1f5c5e){var _0xd01412=a0_0x136be2;_0x22df64[_0xd01412(0x1a8)]=_0x1f5c5e;}),__importStar=this&&this[a0_0x136be2(0x1ac)]||(function(){var _0x57aad7=function(_0x3a050e){return _0x57aad7=Object['getOwnPropertyNames']||function(_0xcafbad){var _0x4ac908=a0_0x1a94,_0x39225e=[];for(var _0x3fd957 in _0xcafbad)if(Object[_0x4ac908(0x1a4)][_0x4ac908(0x1bb)][_0x4ac908(0x1a0)](_0xcafbad,_0x3fd957))_0x39225e[_0x39225e[_0x4ac908(0x1b8)]]=_0x3fd957;return _0x39225e;},_0x57aad7(_0x3a050e);};return function(_0x598281){var _0x2fb463=a0_0x1a94;if(_0x598281&&_0x598281[_0x2fb463(0x1b4)])return _0x598281;var _0xae4789={};if(_0x598281!=null){for(var _0x1d5233=_0x57aad7(_0x598281),_0x3aeee4=0x0;_0x3aeee4<_0x1d5233['length'];_0x3aeee4++)if(_0x1d5233[_0x3aeee4]!==_0x2fb463(0x1a8))__createBinding(_0xae4789,_0x598281,_0x1d5233[_0x3aeee4]);}return __setModuleDefault(_0xae4789,_0x598281),_0xae4789;};}());Object[a0_0x136be2(0x1a3)](exports,a0_0x136be2(0x1b4),{'value':!![]}),exports[a0_0x136be2(0x1b0)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x136be2(0x1ad))),os=__importStar(require('os'));function a0_0x4ea6(){var _0x5c4681=['72dcDqaZ','51lupEIS','5949aeyEtT','join','//\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','post_tool_use.js','existsSync','call','861600Gtcdba','__setModuleDefault','defineProperty','prototype','113603lGLWam','.claude','homedir','default','__createBinding','7365ElGqHe','configurable','__importStar','path','create','writable','installClaudeHooks','6960Fiacjk','getOwnPropertyDescriptor','utf8','__esModule','6850TywsiZ','mkdirSync','writeFileSync','length','1178330slZURG','get','hasOwnProperty','393208pXwcoT'];a0_0x4ea6=function(){return _0x5c4681;};return a0_0x4ea6();}function a0_0x1a94(_0x24a24d,_0x2b56bc){_0x24a24d=_0x24a24d-0x19a;var _0x4ea6d2=a0_0x4ea6();var _0x1a948a=_0x4ea6d2[_0x24a24d];return _0x1a948a;}function installClaudeHooks(){var _0xb34c08=a0_0x136be2;try{const _0x4a580f=path['join'](os[_0xb34c08(0x1a7)](),_0xb34c08(0x1a6),'hooks');!fs[_0xb34c08(0x19f)](_0x4a580f)&&fs[_0xb34c08(0x1b6)](_0x4a580f,{'recursive':!![]});const _0x593876=path[_0xb34c08(0x19c)](_0x4a580f,_0xb34c08(0x19e)),_0x488eb6=_0xb34c08(0x19d);fs[_0xb34c08(0x1b7)](_0x593876,_0x488eb6,_0xb34c08(0x1b3));}catch(_0x668533){}}
|
|
1
|
+
'use strict';function a0_0x4314(_0x4ba0b0,_0x941df2){_0x4ba0b0=_0x4ba0b0-0x99;var _0x180a32=a0_0x180a();var _0x431495=_0x180a32[_0x4ba0b0];return _0x431495;}var a0_0x128c01=a0_0x4314;(function(_0x2c8b9e,_0x283460){var _0x3cece4=a0_0x4314,_0x4aacfe=_0x2c8b9e();while(!![]){try{var _0x2d6bb5=parseInt(_0x3cece4(0x9f))/0x1+-parseInt(_0x3cece4(0xaf))/0x2*(-parseInt(_0x3cece4(0xa3))/0x3)+parseInt(_0x3cece4(0xa2))/0x4*(-parseInt(_0x3cece4(0xa9))/0x5)+parseInt(_0x3cece4(0xae))/0x6+-parseInt(_0x3cece4(0xb7))/0x7+-parseInt(_0x3cece4(0x9b))/0x8*(-parseInt(_0x3cece4(0xa7))/0x9)+-parseInt(_0x3cece4(0xb6))/0xa;if(_0x2d6bb5===_0x283460)break;else _0x4aacfe['push'](_0x4aacfe['shift']());}catch(_0x49d517){_0x4aacfe['push'](_0x4aacfe['shift']());}}}(a0_0x180a,0xd93ec));var __createBinding=this&&this[a0_0x128c01(0x9c)]||(Object[a0_0x128c01(0xac)]?function(_0x437d36,_0x350a82,_0x551dab,_0x76ffae){var _0x1b7c12=a0_0x128c01;if(_0x76ffae===undefined)_0x76ffae=_0x551dab;var _0x19d384=Object[_0x1b7c12(0xb2)](_0x350a82,_0x551dab);(!_0x19d384||('get'in _0x19d384?!_0x350a82[_0x1b7c12(0xa4)]:_0x19d384[_0x1b7c12(0x9d)]||_0x19d384[_0x1b7c12(0xa8)]))&&(_0x19d384={'enumerable':!![],'get':function(){return _0x350a82[_0x551dab];}}),Object[_0x1b7c12(0xaa)](_0x437d36,_0x76ffae,_0x19d384);}:function(_0x2a590e,_0x1d9388,_0x30c1ff,_0x142292){if(_0x142292===undefined)_0x142292=_0x30c1ff;_0x2a590e[_0x142292]=_0x1d9388[_0x30c1ff];}),__setModuleDefault=this&&this[a0_0x128c01(0xb1)]||(Object[a0_0x128c01(0xac)]?function(_0x250170,_0xe9e2d6){var _0x1aaad1=a0_0x128c01;Object['defineProperty'](_0x250170,_0x1aaad1(0xba),{'enumerable':!![],'value':_0xe9e2d6});}:function(_0x57a69a,_0xd0a310){var _0x1bd643=a0_0x128c01;_0x57a69a[_0x1bd643(0xba)]=_0xd0a310;}),__importStar=this&&this[a0_0x128c01(0xb8)]||(function(){var _0x56a8c1=function(_0x322277){var _0x4e083f=a0_0x4314;return _0x56a8c1=Object[_0x4e083f(0xb5)]||function(_0x431e55){var _0x51a2a5=_0x4e083f,_0x20c9d8=[];for(var _0x3dcc7a in _0x431e55)if(Object[_0x51a2a5(0xb3)][_0x51a2a5(0xa6)][_0x51a2a5(0xa5)](_0x431e55,_0x3dcc7a))_0x20c9d8[_0x20c9d8[_0x51a2a5(0xb0)]]=_0x3dcc7a;return _0x20c9d8;},_0x56a8c1(_0x322277);};return function(_0x1c67f6){var _0x117301=a0_0x4314;if(_0x1c67f6&&_0x1c67f6[_0x117301(0xa4)])return _0x1c67f6;var _0x37baaf={};if(_0x1c67f6!=null){for(var _0x1d98a9=_0x56a8c1(_0x1c67f6),_0x292536=0x0;_0x292536<_0x1d98a9['length'];_0x292536++)if(_0x1d98a9[_0x292536]!==_0x117301(0xba))__createBinding(_0x37baaf,_0x1c67f6,_0x1d98a9[_0x292536]);}return __setModuleDefault(_0x37baaf,_0x1c67f6),_0x37baaf;};}());Object['defineProperty'](exports,a0_0x128c01(0xa4),{'value':!![]}),exports[a0_0x128c01(0xb9)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x128c01(0xad))),os=__importStar(require('os'));function installClaudeHooks(){var _0x40bd95=a0_0x128c01;try{const _0x518bed=path[_0x40bd95(0x9a)](os[_0x40bd95(0xa0)](),'.claude',_0x40bd95(0xa1));!fs[_0x40bd95(0xab)](_0x518bed)&&fs[_0x40bd95(0x9e)](_0x518bed,{'recursive':!![]});const _0x44396e=path['join'](_0x518bed,'post_tool_use.js'),_0x44a22d=_0x40bd95(0xb4);fs[_0x40bd95(0x99)](_0x44396e,_0x44a22d,_0x40bd95(0xbb));}catch(_0x167424){}}function a0_0x180a(){var _0x3f8ebb=['create','path','288618MYpNGa','3338814gFYtZn','length','__setModuleDefault','getOwnPropertyDescriptor','prototype','//\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','getOwnPropertyNames','20540810LxZoLI','606109idUFTJ','__importStar','installClaudeHooks','default','utf8','writeFileSync','join','10757056QRSpnK','__createBinding','writable','mkdirSync','997445SzHwCm','homedir','hooks','374212EyqQXk','3FxqMhp','__esModule','call','hasOwnProperty','9OKhzHx','configurable','55mPIiEy','defineProperty','existsSync'];a0_0x180a=function(){return _0x3f8ebb;};return a0_0x180a();}
|