trimprompt 1.0.43 → 1.0.44
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 +25 -1
- 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_0x9db61c=a0_0x4f00;(function(_0x446ca1,_0x446edd){const _0x4fc5eb=a0_0x4f00,_0x317cc1=_0x446ca1();while(!![]){try{const _0x574bda=-parseInt(_0x4fc5eb(0x19c))/0x1+-parseInt(_0x4fc5eb(0x18a))/0x2+parseInt(_0x4fc5eb(0x197))/0x3+-parseInt(_0x4fc5eb(0x1a6))/0x4*(-parseInt(_0x4fc5eb(0x185))/0x5)+-parseInt(_0x4fc5eb(0x192))/0x6*(-parseInt(_0x4fc5eb(0x19a))/0x7)+-parseInt(_0x4fc5eb(0x199))/0x8+-parseInt(_0x4fc5eb(0x1a3))/0x9*(-parseInt(_0x4fc5eb(0x18b))/0xa);if(_0x574bda===_0x446edd)break;else _0x317cc1['push'](_0x317cc1['shift']());}catch(_0x7a33d8){_0x317cc1['push'](_0x317cc1['shift']());}}}(a0_0x1b5a,0x6e60b));Object[a0_0x9db61c(0x186)](exports,'__esModule',{'value':!![]}),exports[a0_0x9db61c(0x198)]=stripAnsi,exports[a0_0x9db61c(0x18e)]=collapseDuplicates,exports['collapseWhitespace']=collapseWhitespace,exports['stripComments']=stripComments,exports[a0_0x9db61c(0x1a0)]=smartCrushJson,exports[a0_0x9db61c(0x189)]=softTruncate;function stripAnsi(_0x57a60a){const _0x3f5748=a0_0x9db61c,_0x4ceb28=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x57a60a[_0x3f5748(0x1aa)](_0x4ceb28,'');}function a0_0x4f00(_0x4d3a64,_0x3a7aa6){_0x4d3a64=_0x4d3a64-0x184;const _0x1b5a98=a0_0x1b5a();let _0x4f00a7=_0x1b5a98[_0x4d3a64];return _0x4f00a7;}function collapseDuplicates(_0xa62772){const _0x2b1a96=a0_0x9db61c,_0x118450=_0xa62772[_0x2b1a96(0x187)]('\x0a');if(_0x118450['length']<=0x1)return _0xa62772;const _0x2abe08=[];let _0x4a9b8f=_0x118450[0x0],_0x1a120=0x1;for(let _0x342d7b=0x1;_0x342d7b<_0x118450[_0x2b1a96(0x195)];_0x342d7b++){const _0xd42a25=_0x118450[_0x342d7b];_0xd42a25===_0x4a9b8f&&_0xd42a25[_0x2b1a96(0x190)]()[_0x2b1a96(0x195)]>0x0?_0x1a120++:(_0x1a120>0x1?_0x2abe08[_0x2b1a96(0x196)](_0x4a9b8f+_0x2b1a96(0x1ae)+_0x1a120+']'):_0x2abe08[_0x2b1a96(0x196)](_0x4a9b8f),_0x4a9b8f=_0xd42a25,_0x1a120=0x1);}return _0x1a120>0x1?_0x2abe08[_0x2b1a96(0x196)](_0x4a9b8f+'\x20[x'+_0x1a120+']'):_0x2abe08[_0x2b1a96(0x196)](_0x4a9b8f),_0x2abe08[_0x2b1a96(0x19f)]('\x0a');}function a0_0x1b5a(){const _0x52f03f=['toLowerCase','min','length','push','1630374mWSalL','stripAnsi','2539544ffWJwZ','266AAgIXC','filter','785549gTrKct','keys','test','join','smartCrushJson','dev','object','504wqeezo','\x20key\x20fields)','\x20more\x20rows','4NCwkFa','integrity','slice','stringify','replace','includes','\x20fields,\x20showing\x20','checksum','\x20[x','hash','parse','resolved','\x0a\x0a\x0a','985305NTmFaw','defineProperty','split','...\x20+','softTruncate','1517700KkKIfK','225510LmPJZe','map','funding','collapseDuplicates','bugs','trim','signature','49038fZRhHP'];a0_0x1b5a=function(){return _0x52f03f;};return a0_0x1b5a();}function collapseWhitespace(_0x1e824d){const _0x4ea612=a0_0x9db61c;let _0x123979=_0x1e824d[_0x4ea612(0x1aa)](/[ \t]+$/gm,'');return _0x123979=_0x123979['replace'](/\n{4,}/g,_0x4ea612(0x184)),_0x123979;}function stripComments(_0x45be20,_0x49574d){const _0x43efe0=a0_0x9db61c;if(!_0x49574d)return _0x45be20;const _0x56ad7d=_0x45be20[_0x43efe0(0x187)]('\x0a');if(_0x56ad7d[_0x43efe0(0x195)]<=0x96)return _0x45be20;const _0x486e07={'.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*#(?!!)/},_0x4740ce=_0x486e07[_0x49574d['toLowerCase']()];if(!_0x4740ce)return _0x45be20;const _0x5a3859=_0x56ad7d['filter'](_0x42914f=>!_0x4740ce[_0x43efe0(0x19e)](_0x42914f));return _0x5a3859[_0x43efe0(0x19f)]('\x0a');}function smartCrushJson(_0x164964){const _0x2641d0=a0_0x9db61c;try{const _0x442a80=_0x164964['trim']();if(!_0x442a80['startsWith']('['))return null;const _0x4a5d4=JSON[_0x2641d0(0x1b0)](_0x442a80);if(!Array['isArray'](_0x4a5d4)||_0x4a5d4['length']<0x3)return null;if(typeof _0x4a5d4[0x0]!==_0x2641d0(0x1a2)||_0x4a5d4[0x0]===null)return null;const _0x3c2f7d=Object[_0x2641d0(0x19d)](_0x4a5d4[0x0]);if(_0x3c2f7d[_0x2641d0(0x195)]===0x0)return null;const _0x11340f=_0x3c2f7d[_0x2641d0(0x19b)](_0x1eac05=>{const _0x285a5b=_0x2641d0,_0x24df9c=_0x1eac05[_0x285a5b(0x193)]();return!_0x24df9c[_0x285a5b(0x1ab)](_0x285a5b(0x1b1))&&!_0x24df9c[_0x285a5b(0x1ab)](_0x285a5b(0x1a7))&&!_0x24df9c[_0x285a5b(0x1ab)]('sha')&&!_0x24df9c[_0x285a5b(0x1ab)](_0x285a5b(0x1af))&&!_0x24df9c['includes'](_0x285a5b(0x1ad))&&!_0x24df9c[_0x285a5b(0x1ab)](_0x285a5b(0x191))&&!_0x24df9c['includes'](_0x285a5b(0x1a1))&&_0x24df9c!==_0x285a5b(0x18d)&&_0x24df9c!=='engines'&&_0x24df9c!==_0x285a5b(0x18f)&&_0x24df9c!=='repository';})[_0x2641d0(0x1a8)](0x0,0x6);if(_0x11340f['length']===0x0)return null;const _0xe57669=[];_0xe57669[_0x2641d0(0x196)](_0x11340f[_0x2641d0(0x19f)]('|'));const _0x4ecbd1=0x1e;for(let _0x131e77=0x0;_0x131e77<Math[_0x2641d0(0x194)](_0x4a5d4[_0x2641d0(0x195)],_0x4ecbd1);_0x131e77++){const _0x1c5ae1=_0x11340f[_0x2641d0(0x18c)](_0x262849=>{const _0x43d3c1=_0x2641d0,_0x510697=_0x4a5d4[_0x131e77][_0x262849];if(_0x510697===null||_0x510697===undefined)return'';if(typeof _0x510697===_0x43d3c1(0x1a2))return JSON[_0x43d3c1(0x1a9)](_0x510697)['substring'](0x0,0x28);return String(_0x510697)['substring'](0x0,0x3c);});_0xe57669[_0x2641d0(0x196)](_0x1c5ae1[_0x2641d0(0x19f)]('|'));}_0x4a5d4[_0x2641d0(0x195)]>_0x4ecbd1&&_0xe57669[_0x2641d0(0x196)](_0x2641d0(0x188)+(_0x4a5d4[_0x2641d0(0x195)]-_0x4ecbd1)+_0x2641d0(0x1a5));_0xe57669['push']('\x0a('+_0x4a5d4[_0x2641d0(0x195)]+'\x20items,\x20'+_0x3c2f7d[_0x2641d0(0x195)]+_0x2641d0(0x1ac)+_0x11340f[_0x2641d0(0x195)]+_0x2641d0(0x1a4));const _0x3bb5f5=_0xe57669[_0x2641d0(0x19f)]('\x0a');if(_0x3bb5f5['length']<_0x442a80[_0x2641d0(0x195)])return _0x3bb5f5;return null;}catch{return null;}}function softTruncate(_0x8f2783,_0x4106c2=0x4e20){const _0x5e91ca=a0_0x9db61c;if(_0x8f2783[_0x5e91ca(0x195)]<=_0x4106c2)return _0x8f2783;const _0x296592=_0x8f2783[_0x5e91ca(0x187)]('\x0a');if(_0x296592['length']<=0xc8)return _0x8f2783;const _0x435dc3=0x32,_0x462edd=0x96,_0x26cd0f=_0x296592['slice'](0x0,_0x435dc3),_0x1783af=_0x296592[_0x5e91ca(0x1a8)](_0x296592[_0x5e91ca(0x195)]-_0x462edd),_0x5fae4c=_0x8f2783[_0x5e91ca(0x195)]-(_0x26cd0f[_0x5e91ca(0x19f)]('\x0a')[_0x5e91ca(0x195)]+_0x1783af[_0x5e91ca(0x19f)]('\x0a')['length']);return[..._0x26cd0f,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x5fae4c+'\x20characters\x20of\x20output]\x20...\x0a',..._0x1783af][_0x5e91ca(0x19f)]('\x0a');}
|
package/filters/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x56127e=a0_0x2508;(function(_0x2dcb62,_0x101abf){const _0x95e300=a0_0x2508,_0x19e91a=_0x2dcb62();while(!![]){try{const _0x1a7146=-parseInt(_0x95e300(0x18e))/0x1+-parseInt(_0x95e300(0x183))/0x2*(parseInt(_0x95e300(0x18d))/0x3)+parseInt(_0x95e300(0x181))/0x4+parseInt(_0x95e300(0x184))/0x5*(parseInt(_0x95e300(0x18b))/0x6)+parseInt(_0x95e300(0x191))/0x7*(parseInt(_0x95e300(0x195))/0x8)+parseInt(_0x95e300(0x19a))/0x9+-parseInt(_0x95e300(0x179))/0xa;if(_0x1a7146===_0x101abf)break;else _0x19e91a['push'](_0x19e91a['shift']());}catch(_0x7a7c9a){_0x19e91a['push'](_0x19e91a['shift']());}}}(a0_0xd0f7,0xcee62));var __createBinding=this&&this[a0_0x56127e(0x174)]||(Object[a0_0x56127e(0x18a)]?function(_0x51cf59,_0x154a29,_0xf0679e,_0x1495c0){const _0x3d7cc1=a0_0x56127e;if(_0x1495c0===undefined)_0x1495c0=_0xf0679e;var _0x4cb871=Object[_0x3d7cc1(0x185)](_0x154a29,_0xf0679e);(!_0x4cb871||(_0x3d7cc1(0x188)in _0x4cb871?!_0x154a29[_0x3d7cc1(0x1a3)]:_0x4cb871[_0x3d7cc1(0x175)]||_0x4cb871[_0x3d7cc1(0x19b)]))&&(_0x4cb871={'enumerable':!![],'get':function(){return _0x154a29[_0xf0679e];}}),Object[_0x3d7cc1(0x1a1)](_0x51cf59,_0x1495c0,_0x4cb871);}:function(_0x4794b5,_0x411536,_0x57908f,_0x38f71b){if(_0x38f71b===undefined)_0x38f71b=_0x57908f;_0x4794b5[_0x38f71b]=_0x411536[_0x57908f];}),__setModuleDefault=this&&this[a0_0x56127e(0x171)]||(Object[a0_0x56127e(0x18a)]?function(_0x3572ff,_0x10129){const _0xeea190=a0_0x56127e;Object[_0xeea190(0x1a1)](_0x3572ff,'default',{'enumerable':!![],'value':_0x10129});}:function(_0x2efd2c,_0x5bf6d5){_0x2efd2c['default']=_0x5bf6d5;}),__importStar=this&&this['__importStar']||(function(){var _0x1fff28=function(_0x4d9c97){const _0xbc7b9f=a0_0x2508;return _0x1fff28=Object[_0xbc7b9f(0x17d)]||function(_0x31e884){const _0x595fbf=_0xbc7b9f;var _0x1a1349=[];for(var _0x563b15 in _0x31e884)if(Object['prototype'][_0x595fbf(0x19e)]['call'](_0x31e884,_0x563b15))_0x1a1349[_0x1a1349['length']]=_0x563b15;return _0x1a1349;},_0x1fff28(_0x4d9c97);};return function(_0x1e7250){const _0x42b2f5=a0_0x2508;if(_0x1e7250&&_0x1e7250[_0x42b2f5(0x1a3)])return _0x1e7250;var _0x75ea59={};if(_0x1e7250!=null){for(var _0x5e4ba9=_0x1fff28(_0x1e7250),_0xef24ee=0x0;_0xef24ee<_0x5e4ba9[_0x42b2f5(0x197)];_0xef24ee++)if(_0x5e4ba9[_0xef24ee]!==_0x42b2f5(0x16e))__createBinding(_0x75ea59,_0x1e7250,_0x5e4ba9[_0xef24ee]);}return __setModuleDefault(_0x75ea59,_0x1e7250),_0x75ea59;};}());function a0_0xd0f7(){const _0x441f58=['\x20lines\x20of\x20description)','\x0aUntracked\x20files:','/\x20(','30067580ryADXr','\x20\x20??\x20','---END---','Clean\x20working\x20tree','getOwnPropertyNames','basename','push','\x20(+','3993652jXjyHa','unknown_file','951098zwbjim','10SPpTZv','getOwnPropertyDescriptor','filterGitLog','\x0aChanges:','get','+++','create','5006580gthAjG','split','3NXtcFF','171802HIUOti','dirname','entries','49FiOnMc','filter','map','startsWith','1160088BMcnpm','filterGitStatus','length','filterGitDiff','\x20more\x20modifications','7372953wVqdep','configurable','path','slice','hasOwnProperty','join','match','defineProperty','replace','__esModule','default','\x20\x20...\x20(+','trim','__setModuleDefault','substring','[file]\x20','__createBinding','writable'];a0_0xd0f7=function(){return _0x441f58;};return a0_0xd0f7();}Object['defineProperty'](exports,a0_0x56127e(0x1a3),{'value':!![]}),exports[a0_0x56127e(0x196)]=filterGitStatus,exports[a0_0x56127e(0x186)]=filterGitLog,exports[a0_0x56127e(0x198)]=filterGitDiff;function a0_0x2508(_0x371c1d,_0x5c9f9c){_0x371c1d=_0x371c1d-0x16e;const _0xd0f773=a0_0xd0f7();let _0x250861=_0xd0f773[_0x371c1d];return _0x250861;}const path=__importStar(require(a0_0x56127e(0x19c)));function filterGitStatus(_0x35159c){const _0x52f9a8=a0_0x56127e,_0x391b08=_0x35159c[_0x52f9a8(0x18c)]('\x0a')['map'](_0x349349=>_0x349349[_0x52f9a8(0x170)]())['filter'](_0x1cbe98=>_0x1cbe98[_0x52f9a8(0x197)]>0x0);if(_0x391b08[_0x52f9a8(0x197)]===0x0)return _0x52f9a8(0x17c);const _0x5f5764=[],_0x54e041=[],_0x41e6a9=[];for(const _0x3ad0c2 of _0x391b08){if(_0x3ad0c2[_0x52f9a8(0x194)]('##')){const _0x32dde9=_0x3ad0c2[_0x52f9a8(0x1a2)](/^##\s*/,'');_0x5f5764['push']('*\x20Branch:\x20'+_0x32dde9);}else _0x3ad0c2[_0x52f9a8(0x194)]('??')?_0x54e041[_0x52f9a8(0x17f)](_0x3ad0c2[_0x52f9a8(0x172)](0x3)[_0x52f9a8(0x170)]()):_0x41e6a9[_0x52f9a8(0x17f)](_0x3ad0c2);}_0x41e6a9['length']>0x0&&(_0x5f5764['push'](_0x52f9a8(0x187)),_0x5f5764[_0x52f9a8(0x17f)](..._0x41e6a9[_0x52f9a8(0x193)](_0x1040b3=>'\x20\x20'+_0x1040b3)));if(_0x54e041['length']>0x0){_0x5f5764[_0x52f9a8(0x17f)](_0x52f9a8(0x177));const _0x341d84={},_0x3e83a4=[];for(const _0x5c4afa of _0x54e041){const _0x25600d=path[_0x52f9a8(0x18f)](_0x5c4afa);_0x25600d==='.'||_0x25600d===''?_0x3e83a4[_0x52f9a8(0x17f)](_0x5c4afa):(!_0x341d84[_0x25600d]&&(_0x341d84[_0x25600d]=[]),_0x341d84[_0x25600d][_0x52f9a8(0x17f)](path[_0x52f9a8(0x17e)](_0x5c4afa)));}for(const [_0x356a74,_0x1c4638]of Object[_0x52f9a8(0x190)](_0x341d84)){if(_0x1c4638[_0x52f9a8(0x197)]>0x5)_0x5f5764[_0x52f9a8(0x17f)](_0x52f9a8(0x17a)+_0x356a74+_0x52f9a8(0x178)+_0x1c4638['length']+'\x20untracked\x20files)');else for(const _0x1d96cb of _0x1c4638){_0x5f5764[_0x52f9a8(0x17f)](_0x52f9a8(0x17a)+path[_0x52f9a8(0x19f)](_0x356a74,_0x1d96cb));}}for(const _0x1c9365 of _0x3e83a4){_0x5f5764[_0x52f9a8(0x17f)](_0x52f9a8(0x17a)+_0x1c9365);}}return _0x5f5764[_0x52f9a8(0x19f)]('\x0a');}function filterGitLog(_0x289269){const _0x151243=a0_0x56127e,_0x576a0d=_0x289269[_0x151243(0x18c)](_0x151243(0x17b))[_0x151243(0x193)](_0x5f2af2=>_0x5f2af2['trim']())[_0x151243(0x192)](_0x1a768b=>_0x1a768b[_0x151243(0x197)]>0x0);if(_0x576a0d['length']===0x0)return _0x289269;const _0x157b8b=[];for(const _0x43ad04 of _0x576a0d){const _0x2b0054=_0x43ad04[_0x151243(0x18c)]('\x0a'),_0x4f6729=_0x2b0054[0x0]||'',_0x4cdccc=_0x2b0054[_0x151243(0x19d)](0x1)[_0x151243(0x193)](_0x2352c3=>_0x2352c3[_0x151243(0x170)]())[_0x151243(0x192)](_0x47531a=>_0x47531a[_0x151243(0x197)]>0x0);_0x157b8b[_0x151243(0x17f)]('-\x20'+_0x4f6729),_0x4cdccc[_0x151243(0x197)]>0x0&&(_0x157b8b['push']('\x20\x20'+_0x4cdccc[0x0]),_0x4cdccc['length']>0x1&&_0x157b8b[_0x151243(0x17f)](_0x151243(0x16f)+(_0x4cdccc['length']-0x1)+_0x151243(0x176)));}return _0x157b8b[_0x151243(0x19f)]('\x0a');}function filterGitDiff(_0x26204e){const _0x30464d=a0_0x56127e,_0x342ed9=_0x26204e[_0x30464d(0x18c)]('\x0a'),_0x204d1a=[];let _0x395d44='',_0x45ee4f=0x0,_0x398b23=0x0,_0xd11091=[];const _0x558f36=()=>{const _0x532adb=_0x30464d;if(_0x395d44&&(_0x45ee4f>0x0||_0x398b23>0x0)){_0x204d1a[_0x532adb(0x17f)](_0x532adb(0x173)+_0x395d44+_0x532adb(0x180)+_0x45ee4f+'\x20-'+_0x398b23+')');const _0xb2db03=0xa,_0x164773=_0xd11091[_0x532adb(0x19d)](0x0,_0xb2db03);for(const _0x4c9548 of _0x164773){_0x204d1a[_0x532adb(0x17f)]('\x20\x20'+_0x4c9548);}const _0x36235c=_0x45ee4f+_0x398b23-_0xb2db03;_0x36235c>0x0&&_0x204d1a[_0x532adb(0x17f)]('\x20\x20...\x20+'+_0x36235c+_0x532adb(0x199));}_0x45ee4f=0x0,_0x398b23=0x0,_0xd11091=[];};for(const _0x1bd23c of _0x342ed9){if(_0x1bd23c[_0x30464d(0x194)]('diff\x20--git')){_0x558f36();const _0x375388=_0x1bd23c[_0x30464d(0x1a0)](/\sb\/(.+)$/);_0x395d44=_0x375388?_0x375388[0x1]:_0x30464d(0x182);}else{if(_0x1bd23c['startsWith']('+')&&!_0x1bd23c['startsWith'](_0x30464d(0x189)))_0x45ee4f++,_0xd11091[_0x30464d(0x17f)](_0x1bd23c);else _0x1bd23c[_0x30464d(0x194)]('-')&&!_0x1bd23c['startsWith']('---')&&(_0x398b23++,_0xd11091[_0x30464d(0x17f)](_0x1bd23c));}}_0x558f36();const _0xb4c70f=_0x204d1a[_0x30464d(0x19f)]('\x0a');return _0xb4c70f[_0x30464d(0x197)]>0x0?_0xb4c70f:'No\x20modifications';}
|
package/filters/go.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x4d2b74=a0_0x177f;(function(_0x402811,_0x543fd8){const _0x2e63fc=a0_0x177f,_0x34e7d5=_0x402811();while(!![]){try{const _0x4208a4=-parseInt(_0x2e63fc(0x132))/0x1+-parseInt(_0x2e63fc(0x136))/0x2*(-parseInt(_0x2e63fc(0x11e))/0x3)+-parseInt(_0x2e63fc(0x12c))/0x4*(-parseInt(_0x2e63fc(0x12b))/0x5)+-parseInt(_0x2e63fc(0x10f))/0x6+-parseInt(_0x2e63fc(0x113))/0x7+parseInt(_0x2e63fc(0x12e))/0x8*(-parseInt(_0x2e63fc(0x122))/0x9)+-parseInt(_0x2e63fc(0x118))/0xa*(-parseInt(_0x2e63fc(0x119))/0xb);if(_0x4208a4===_0x543fd8)break;else _0x34e7d5['push'](_0x34e7d5['shift']());}catch(_0x22b73d){_0x34e7d5['push'](_0x34e7d5['shift']());}}}(a0_0xb8ee,0x564aa));function a0_0xb8ee(){const _0x1ea992=['===\x20RUN','no\x20test\x20files','includes','390725tmcgyG','\x20\x20\x20\x20...\x20+','\x20more\x20failures','min','2FmLrEa','...\x20+','Go\x20test:\x20','lines','trim','\x20issues\x20found','\x20passed,\x20','1765116HPNcBx','\x20more\x20issues','length','\x0aFailures:','1463574TEHQXy','\x20\x20...\x20+','filterGoTest','\x20more\x20lines','\x20skipped','411130WjQiHy','407qBFyzO','slice','startsWith','name','push','1134321ITDPvC','match','Go\x20vet:\x20','split','333nVvEiL','join','Go\x20test:\x20no\x20test\x20files','PASS','\x20passed','__esModule','\x20failed,\x20','Go\x20test:\x20all\x20tests\x20passed','Go\x20vet:\x20no\x20issues\x20found','25RLVpfZ','6884NvpZVi','defineProperty','142800GuUTty'];a0_0xb8ee=function(){return _0x1ea992;};return a0_0xb8ee();}Object[a0_0x4d2b74(0x12d)](exports,a0_0x4d2b74(0x127),{'value':!![]}),exports[a0_0x4d2b74(0x115)]=filterGoTest,exports['filterGoVet']=filterGoVet;function filterGoTest(_0x190524){const _0x2aaada=a0_0x4d2b74,_0x1d401e=_0x190524[_0x2aaada(0x121)]('\x0a');let _0x231c9a=0x0,_0x46fd78=0x0,_0x5d5e28=0x0;const _0x22aede=[],_0xdf3b93=[];let _0x2a5561=null;for(const _0x1eee25 of _0x1d401e){const _0x3e8aac=_0x1eee25['trim'](),_0x14b3aa=_0x3e8aac[_0x2aaada(0x11f)](/^ok\s+\S+\s+[\d.]+s/);if(_0x14b3aa){_0xdf3b93[_0x2aaada(0x11d)](_0x3e8aac);continue;}const _0x1da87a=_0x3e8aac[_0x2aaada(0x11f)](/^FAIL\s+\S+/);if(_0x1da87a){_0xdf3b93[_0x2aaada(0x11d)](_0x3e8aac);continue;}const _0x275960=_0x3e8aac['match'](/^--- PASS:/);if(_0x275960){_0x231c9a++;continue;}const _0x4f9463=_0x3e8aac[_0x2aaada(0x11f)](/^--- FAIL:\s+(\S+)/);if(_0x4f9463){if(_0x2a5561)_0x22aede[_0x2aaada(0x11d)](_0x2a5561);_0x2a5561={'name':_0x4f9463[0x1],'lines':[]},_0x46fd78++;continue;}if(_0x3e8aac[_0x2aaada(0x11b)]('---\x20SKIP:')){_0x5d5e28++;continue;}_0x2a5561&&_0x3e8aac[_0x2aaada(0x111)]>0x0&&!_0x3e8aac['startsWith'](_0x2aaada(0x12f))&&_0x2a5561[_0x2aaada(0x10b)][_0x2aaada(0x11d)](_0x1eee25),_0x3e8aac[_0x2aaada(0x11b)](_0x2aaada(0x12f))&&(_0x2a5561&&(_0x22aede['push'](_0x2a5561),_0x2a5561=null));}if(_0x2a5561)_0x22aede[_0x2aaada(0x11d)](_0x2a5561);if(_0x231c9a===0x0&&_0x46fd78===0x0&&_0x5d5e28===0x0){if(_0x190524[_0x2aaada(0x131)](_0x2aaada(0x125))&&!_0x190524[_0x2aaada(0x131)]('FAIL'))return _0x2aaada(0x129);if(_0x190524['includes'](_0x2aaada(0x130)))return _0x2aaada(0x124);return _0x190524;}if(_0x46fd78===0x0){const _0x4c75f3=[_0x2aaada(0x10a)+_0x231c9a+_0x2aaada(0x126)];if(_0x5d5e28>0x0)_0x4c75f3[_0x2aaada(0x11d)](_0x5d5e28+_0x2aaada(0x117));return _0x4c75f3[_0x2aaada(0x123)](',\x20');}const _0x2fa155=[_0x2aaada(0x10a)+_0x231c9a+_0x2aaada(0x10e)+_0x46fd78+_0x2aaada(0x128)+_0x5d5e28+'\x20skipped'];if(_0x22aede[_0x2aaada(0x111)]>0x0){_0x2fa155[_0x2aaada(0x11d)](_0x2aaada(0x112));const _0x25570c=0x3;for(let _0x2eb06c=0x0;_0x2eb06c<Math[_0x2aaada(0x135)](_0x22aede[_0x2aaada(0x111)],_0x25570c);_0x2eb06c++){const _0x39cde1=_0x22aede[_0x2eb06c];_0x2fa155[_0x2aaada(0x11d)]('\x20\x20'+(_0x2eb06c+0x1)+'.\x20'+_0x39cde1[_0x2aaada(0x11c)]);for(const _0x2b7be0 of _0x39cde1[_0x2aaada(0x10b)][_0x2aaada(0x11a)](0x0,0x5)){_0x2fa155[_0x2aaada(0x11d)]('\x20\x20\x20\x20'+_0x2b7be0[_0x2aaada(0x10c)]());}_0x39cde1[_0x2aaada(0x10b)][_0x2aaada(0x111)]>0x5&&_0x2fa155[_0x2aaada(0x11d)](_0x2aaada(0x133)+(_0x39cde1['lines'][_0x2aaada(0x111)]-0x5)+_0x2aaada(0x116));}_0x22aede[_0x2aaada(0x111)]>_0x25570c&&_0x2fa155['push'](_0x2aaada(0x114)+(_0x22aede['length']-_0x25570c)+_0x2aaada(0x134));}return _0x2fa155[_0x2aaada(0x123)]('\x0a');}function a0_0x177f(_0x544b5f,_0x1ef4fa){_0x544b5f=_0x544b5f-0x109;const _0xb8ee9d=a0_0xb8ee();let _0x177fd5=_0xb8ee9d[_0x544b5f];return _0x177fd5;}function filterGoVet(_0x233004){const _0x1a759c=a0_0x4d2b74,_0x49a510=_0x233004['split']('\x0a')['filter'](_0x33ce1d=>_0x33ce1d[_0x1a759c(0x10c)]()[_0x1a759c(0x111)]>0x0);if(_0x49a510['length']===0x0)return _0x1a759c(0x12a);if(_0x49a510[_0x1a759c(0x111)]<=0x14)return _0x233004[_0x1a759c(0x10c)]();const _0x36f9da=[_0x1a759c(0x120)+_0x49a510[_0x1a759c(0x111)]+_0x1a759c(0x10d)];return _0x36f9da[_0x1a759c(0x11d)](..._0x49a510[_0x1a759c(0x11a)](0x0,0xa)),_0x49a510[_0x1a759c(0x111)]>0xa&&_0x36f9da[_0x1a759c(0x11d)](_0x1a759c(0x109)+(_0x49a510[_0x1a759c(0x111)]-0xa)+_0x1a759c(0x110)),_0x36f9da[_0x1a759c(0x123)]('\x0a');}
|
package/filters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x2556bd=a0_0x6eb8;(function(_0xcc424b,_0x1e9e5b){const _0x21cf66=a0_0x6eb8,_0x2e0dd9=_0xcc424b();while(!![]){try{const _0x39fa09=-parseInt(_0x21cf66(0xac))/0x1*(-parseInt(_0x21cf66(0xd9))/0x2)+-parseInt(_0x21cf66(0xd3))/0x3*(parseInt(_0x21cf66(0xa6))/0x4)+-parseInt(_0x21cf66(0xb6))/0x5*(-parseInt(_0x21cf66(0xaa))/0x6)+-parseInt(_0x21cf66(0x98))/0x7+-parseInt(_0x21cf66(0xc9))/0x8+parseInt(_0x21cf66(0x7b))/0x9*(parseInt(_0x21cf66(0x86))/0xa)+parseInt(_0x21cf66(0x96))/0xb;if(_0x39fa09===_0x1e9e5b)break;else _0x2e0dd9['push'](_0x2e0dd9['shift']());}catch(_0x2d06b3){_0x2e0dd9['push'](_0x2e0dd9['shift']());}}}(a0_0x4de6,0x5016a));Object[a0_0x2556bd(0xca)](exports,'__esModule',{'value':!![]}),exports[a0_0x2556bd(0x9c)]=exports[a0_0x2556bd(0xe4)]=void 0x0,exports[a0_0x2556bd(0xc2)]=compressOutput,exports['rewriteCommand']=rewriteCommand;function a0_0x4de6(){const _0x18ccbe=['jest','510QkMjvn','trim\x20git','[binary','push','match','trim\x20gh','trim\x20cargo','trim\x20pytest','filterGoTest','tracker','filterPipInstall','ruff\x20','cargo\x20check','secretsFound','vitest','\x20tree','1683275rWPZPO','pip\x20install','3042767XPBSHB','../redactor','trim\x20npm','\x20ls\x20','lastFeatures','startsWith','trim\x20find','filterCat','trim\x20docker','includes','trim\x20kubectl','go\x20vet','npm\x20install','trim\x20pip','2336660OcuxaI','filterGrep','filterDockerPs','npm\x20test','257292JwOGtK','npm\x20i','5721BovcUX','filterDockerImages','redactor','secretTypes','trim','endsWith','npm\x20i\x20','binary','./rust','redactWithAudit','70njcJhL','length','trim\x20go','filter','get','[code\x20skeleton]','cargo\x20build','[minified\x20file]','./git','./python','collapseDuplicates','trim\x20','compressOutput','some','./go','trim\x20npx','filterTree','git\x20show','go\x20test','770512NPsaIY','defineProperty','lock','filterDockerLogs','trim\x20pnpm','kubectl','trim\x20tree','./devops','softTruncate','text','3SYtmKi','ansi_strip','filterCargoTest','redact','filterGitDiff','filterCargoBuild','12Ymzpjs','filterJestVitest','yadm\x20diff','trim\x20ls','pattern','whitespace','trim\x20ruff','./shell','trim\x20read','[lock\x20file]','collapseWhitespace','lastRedactAudit','ruff\x20check','filterKubectl','filterPytest','115677VfRGVT','yarn\x20test','toLowerCase','yadm\x20log','pytest','filterRuff','cargo\x20test','git\x20diff','../tracker','getConfig'];a0_0x4de6=function(){return _0x18ccbe;};return a0_0x4de6();}const generic_1=require('./generic'),git_1=require(a0_0x2556bd(0xbe)),python_1=require(a0_0x2556bd(0xbf)),js_1=require('./js'),shell_1=require(a0_0x2556bd(0xe0)),rust_1=require(a0_0x2556bd(0xb4)),go_1=require(a0_0x2556bd(0xc4)),devops_1=require(a0_0x2556bd(0xd0)),redactor_1=require(a0_0x2556bd(0x99)),tracker_1=require(a0_0x2556bd(0x83));exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]},exports['lastFeatures']=[];function a0_0x6eb8(_0x1cc5eb,_0x40f3ec){_0x1cc5eb=_0x1cc5eb-0x7a;const _0x4de6b1=a0_0x4de6();let _0x6eb8ec=_0x4de6b1[_0x1cc5eb];return _0x6eb8ec;}function isFeatureEnabled(_0x5ca0cd){const _0xbb80b2=a0_0x2556bd;try{const _0x153a3b=tracker_1[_0xbb80b2(0x8f)][_0xbb80b2(0x84)](),_0x3914c6=_0x153a3b['features_enabled'];if(!_0x3914c6||_0x3914c6[_0x5ca0cd]===undefined)return!![];return _0x3914c6[_0x5ca0cd]!==![];}catch{return!![];}}function compressOutput(_0x37f552,_0x206e50,_0x494203,_0x463e8c=!![]){const _0x2be638=a0_0x2556bd,_0x2ba419=_0x37f552[_0x2be638(0xb0)]();let _0x393745=_0x206e50;_0x494203[_0x2be638(0xb0)]()[_0x2be638(0xb7)]>0x0&&(_0x393745=_0x206e50+'\x0a'+_0x494203);let _0x5c22a8=isFeatureEnabled('ansi_strip')?(0x0,generic_1['stripAnsi'])(_0x393745):_0x393745;const _0x3f8a2d=[];if(_0x5c22a8[_0x2be638(0xb7)]<_0x393745[_0x2be638(0xb7)])_0x3f8a2d['push']('ansi_strip');const _0x211e99=(_0x187d41,_0x4910c4)=>{const _0x50850e=_0x2be638;return _0x3f8a2d[_0x50850e(0x89)](_0x187d41),exports[_0x50850e(0x9c)]=_0x3f8a2d,_0x4910c4;};if(_0x463e8c&&isFeatureEnabled(_0x2be638(0xd6))){const _0x6d13e2=redactor_1[_0x2be638(0xae)][_0x2be638(0xb5)](_0x5c22a8);_0x5c22a8=_0x6d13e2[_0x2be638(0xd2)],exports['lastRedactAudit']={'secretsFound':_0x6d13e2[_0x2be638(0x93)],'secretTypes':_0x6d13e2[_0x2be638(0xaf)]};if(_0x6d13e2[_0x2be638(0x93)]>0x0)_0x3f8a2d['push'](_0x2be638(0xd6));}else exports[_0x2be638(0xe4)]={'secretsFound':0x0,'secretTypes':[]};const _0xf4bcd6=_0x2ba419[_0x2be638(0x7d)](),_0x2eab44=isFeatureEnabled(_0x2be638(0xb9));try{if(_0x2eab44){if(_0xf4bcd6['includes']('git\x20status')||_0xf4bcd6[_0x2be638(0xa1)]('yadm\x20status'))return _0x211e99(_0x2be638(0xb9),(0x0,git_1['filterGitStatus'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)]('git\x20log')||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x7e)))return _0x211e99(_0x2be638(0xb9),(0x0,git_1['filterGitLog'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x82))||_0xf4bcd6['includes'](_0x2be638(0xc7))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xdb)))return _0x211e99(_0x2be638(0xb9),(0x0,git_1[_0x2be638(0xd7)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x7f))||_0xf4bcd6['match'](/python3?\s+-m\s+pytest/))return _0x211e99('filter',(0x0,python_1[_0x2be638(0x7a)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x97))||_0xf4bcd6[_0x2be638(0xa1)]('pip3\x20install'))return _0x211e99(_0x2be638(0xb9),(0x0,python_1[_0x2be638(0x90)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xe5))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x91)))return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0x80)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xa4))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xb2))||_0xf4bcd6[_0x2be638(0xb1)](_0x2be638(0xab))||_0xf4bcd6[_0x2be638(0xa1)]('pnpm\x20install')||_0xf4bcd6[_0x2be638(0xa1)]('yarn\x20install'))return _0x211e99('filter',(0x0,js_1['filterNpmInstall'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x85))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x94)))return _0x211e99('filter',(0x0,js_1[_0x2be638(0xda)])(_0x5c22a8));if(_0xf4bcd6['includes'](_0x2be638(0xa9))||_0xf4bcd6['includes']('pnpm\x20test')||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x7c))||_0xf4bcd6[_0x2be638(0xa1)]('npm\x20run\x20test'))return _0x211e99(_0x2be638(0xb9),(0x0,js_1[_0x2be638(0xda)])(_0x5c22a8));if(_0xf4bcd6['includes'](_0x2be638(0x81)))return _0x211e99('filter',(0x0,rust_1[_0x2be638(0xd5)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xbc))||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x92))||_0xf4bcd6[_0x2be638(0xa1)]('cargo\x20clippy'))return _0x211e99(_0x2be638(0xb9),(0x0,rust_1[_0x2be638(0xd8)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xc8)))return _0x211e99('filter',(0x0,go_1[_0x2be638(0x8e)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xa3)))return _0x211e99(_0x2be638(0xb9),(0x0,go_1['filterGoVet'])(_0x5c22a8));if(_0xf4bcd6['match'](/docker\s+ps/))return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0xa8)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0x8a)](/docker\s+images/))return _0x211e99('filter',(0x0,devops_1[_0x2be638(0xad)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0x8a)](/docker\s+logs/))return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0xcc)])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0xce))){const _0x20e906=_0xf4bcd6[_0x2be638(0x8a)](/kubectl\s+(get|logs|describe|apply)/),_0x2d747c=_0x20e906?_0x20e906[0x1]:_0x2be638(0xba);return _0x211e99(_0x2be638(0xb9),(0x0,devops_1[_0x2be638(0xe6)])(_0x5c22a8,_0x2d747c));}if(_0xf4bcd6['match'](/^(ls|dir)(\s|$)/)||_0xf4bcd6[_0x2be638(0xa1)](_0x2be638(0x9b))||_0xf4bcd6[_0x2be638(0xb1)]('\x20ls'))return _0x211e99(_0x2be638(0xb9),(0x0,shell_1['filterLs'])(_0x5c22a8));if(_0xf4bcd6['match'](/^tree(\s|$)/)||_0xf4bcd6[_0x2be638(0xa1)]('\x20tree\x20')||_0xf4bcd6[_0x2be638(0xb1)](_0x2be638(0x95)))return _0x211e99(_0x2be638(0xb9),(0x0,shell_1[_0x2be638(0xc6)])(_0x5c22a8));if(_0xf4bcd6['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x3b1529=(0x0,shell_1[_0x2be638(0x9f)])(_0x5c22a8,_0x2ba419);if(_0x3b1529[_0x2be638(0xa1)](_0x2be638(0xe2)))_0x3f8a2d['push'](_0x2be638(0xcb));else{if(_0x3b1529[_0x2be638(0xa1)](_0x2be638(0x88))||_0x3b1529[_0x2be638(0xa1)](_0x2be638(0xbd)))_0x3f8a2d[_0x2be638(0x89)](_0x2be638(0xb3));else{if(_0x3b1529[_0x2be638(0xa1)](_0x2be638(0xbb)))_0x3f8a2d['push']('skeleton');else{if(_0x3b1529['includes']('|\x20')&&_0x3b1529[_0x2be638(0xa1)]('---')&&_0x3b1529[_0x2be638(0xb7)]<_0x5c22a8[_0x2be638(0xb7)]*0.5)_0x3f8a2d[_0x2be638(0x89)]('json_crusher');else{if(_0x3b1529[_0x2be638(0xa1)]('lines\x20truncated'))_0x3f8a2d[_0x2be638(0x89)](_0x2be638(0xb9));}}}}if(_0x3b1529['length']<_0x5c22a8['length']&&!_0x3f8a2d[_0x2be638(0xc3)](_0x51fc49=>_0x51fc49!==_0x2be638(0xd4)&&_0x51fc49!==_0x2be638(0xd6)))_0x3f8a2d['push'](_0x2be638(0xb9));return exports[_0x2be638(0x9c)]=_0x3f8a2d,_0x3b1529;}if(_0xf4bcd6[_0x2be638(0x8a)](/^find(\s|$)/))return _0x211e99(_0x2be638(0xb9),(0x0,shell_1['filterFind'])(_0x5c22a8));if(_0xf4bcd6[_0x2be638(0x8a)](/^(grep|rg|ripgrep)(\s|$)/))return _0x211e99('filter',(0x0,shell_1[_0x2be638(0xa7)])(_0x5c22a8));}}catch(_0xdec7df){}return isFeatureEnabled(_0x2be638(0xde))&&(_0x5c22a8=(0x0,generic_1[_0x2be638(0xe3)])(_0x5c22a8),_0x3f8a2d[_0x2be638(0x89)](_0x2be638(0xde))),_0x5c22a8=(0x0,generic_1[_0x2be638(0xc0)])(_0x5c22a8),_0x5c22a8=(0x0,generic_1[_0x2be638(0xd1)])(_0x5c22a8,0x4e20),exports[_0x2be638(0x9c)]=_0x3f8a2d,_0x5c22a8;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x2556bd(0x87)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x2556bd(0x8b)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x2556bd(0x8c)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x2556bd(0xcd)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x2556bd(0x9a)},{'pattern':/^npx\s+/,'prefix':a0_0x2556bd(0xc5)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x2556bd(0xe1)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x2556bd(0xdc)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x2556bd(0xcf)},{'pattern':/^find\s+/,'prefix':a0_0x2556bd(0x9e)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x2556bd(0xa0)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x2556bd(0xa2)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x2556bd(0x8d)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x2556bd(0xdf)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x2556bd(0xa5)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x2556bd(0xb8)}];function rewriteCommand(_0x8a805){const _0x13bef4=a0_0x2556bd,_0x25218a=_0x8a805[_0x13bef4(0xb0)]();if(_0x25218a[_0x13bef4(0x9d)]('trim\x20'))return _0x25218a;for(const _0x2ffbd9 of REWRITE_RULES){if(_0x2ffbd9[_0x13bef4(0xdd)]['test'](_0x25218a))return _0x13bef4(0xc1)+_0x25218a;}return _0x25218a;}
|
|
1
|
+
'use strict';const a0_0x318435=a0_0x2ed7;(function(_0x2d2387,_0x4f2209){const _0x594f48=a0_0x2ed7,_0x29248f=_0x2d2387();while(!![]){try{const _0x425cf6=parseInt(_0x594f48(0x19d))/0x1+-parseInt(_0x594f48(0x169))/0x2*(-parseInt(_0x594f48(0x16d))/0x3)+parseInt(_0x594f48(0x187))/0x4*(parseInt(_0x594f48(0x1cf))/0x5)+parseInt(_0x594f48(0x1ce))/0x6*(-parseInt(_0x594f48(0x17b))/0x7)+parseInt(_0x594f48(0x172))/0x8+-parseInt(_0x594f48(0x1a4))/0x9*(-parseInt(_0x594f48(0x1c0))/0xa)+-parseInt(_0x594f48(0x1cd))/0xb;if(_0x425cf6===_0x4f2209)break;else _0x29248f['push'](_0x29248f['shift']());}catch(_0x98c726){_0x29248f['push'](_0x29248f['shift']());}}}(a0_0x5f3c,0x58a3e));Object[a0_0x318435(0x1c7)](exports,a0_0x318435(0x1a5),{'value':!![]}),exports[a0_0x318435(0x174)]=exports[a0_0x318435(0x1ca)]=void 0x0,exports['compressOutput']=compressOutput,exports[a0_0x318435(0x1c6)]=rewriteCommand;const generic_1=require(a0_0x318435(0x1d2)),git_1=require('./git'),python_1=require(a0_0x318435(0x1b8)),js_1=require(a0_0x318435(0x1b7)),shell_1=require(a0_0x318435(0x19e)),rust_1=require('./rust'),go_1=require(a0_0x318435(0x1bf)),devops_1=require(a0_0x318435(0x1af)),redactor_1=require(a0_0x318435(0x18b)),tracker_1=require('../tracker');exports[a0_0x318435(0x1ca)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x318435(0x174)]=[];function a0_0x2ed7(_0x6b01f8,_0x3c6b59){_0x6b01f8=_0x6b01f8-0x169;const _0x5f3c0b=a0_0x5f3c();let _0x2ed7b8=_0x5f3c0b[_0x6b01f8];return _0x2ed7b8;}function isFeatureEnabled(_0x20469c){const _0x491716=a0_0x318435;try{const _0x1e2523=tracker_1[_0x491716(0x194)][_0x491716(0x186)](),_0x95b9b9=_0x1e2523[_0x491716(0x1c1)];if(!_0x95b9b9||_0x95b9b9[_0x20469c]===undefined)return!![];return _0x95b9b9[_0x20469c]!==![];}catch{return!![];}}function a0_0x5f3c(){const _0x23926c=['collapseWhitespace','collapseDuplicates','yadm\x20status','match','filter','startsWith','pytest','npm\x20test','getConfig','2171692LWgmdJ','filterGitDiff','yarn\x20test','filterPipInstall','../redactor','redactWithAudit','softTruncate','yarn\x20install','\x20tree','[minified\x20file]','trim\x20cargo','trim\x20tree','filterDockerImages','tracker','filterLs','text','redact','ansi_strip','includes','filterCargoTest','filterJestVitest','pip3\x20install','364925YQAQXh','./shell','filterCargoBuild','length','yadm\x20diff','cargo\x20test','pnpm\x20test','387AJqSgg','__esModule','npm\x20i','filterGoTest','push','endsWith','vitest','npm\x20install','filterCat','\x20ls\x20','trim\x20kubectl','./devops','[code\x20skeleton]','trim\x20pytest','go\x20vet','filterTree','pip\x20install','trim\x20pnpm','trim\x20find','./js','./python','trim\x20npm','trim\x20grep','filterGoVet','secretTypes','some','[binary','./go','34670DXpRfr','features_enabled','kubectl','trim\x20read','trim\x20go','trim','rewriteCommand','defineProperty','trim\x20npx','ruff\x20','lastRedactAudit','test','secretsFound','15740538NsvndT','576102szfqsN','5qAjFoz','whitespace','filterGitStatus','./generic','json_crusher','2NKRayT','[lock\x20file]','trim\x20ls','git\x20log','1055871tjHEFE','skeleton','filterNpmInstall','git\x20diff','pattern','3849272MbBDWV','stripAnsi','lastFeatures','filterGitLog','pnpm\x20install','\x20ls','go\x20test','lines\x20truncated','trim\x20gh','7rzCqih','filterPytest','filterKubectl'];a0_0x5f3c=function(){return _0x23926c;};return a0_0x5f3c();}function compressOutput(_0x21c085,_0x41e071,_0x7c8b54,_0x45a739=!![]){const _0x3bedc1=a0_0x318435,_0x66a309=_0x21c085['trim']();let _0xaafb3b=_0x41e071;_0x7c8b54[_0x3bedc1(0x1c5)]()[_0x3bedc1(0x1a0)]>0x0&&(_0xaafb3b=_0x41e071+'\x0a'+_0x7c8b54);let _0x596e85=isFeatureEnabled('ansi_strip')?(0x0,generic_1[_0x3bedc1(0x173)])(_0xaafb3b):_0xaafb3b;const _0x16a416=[];if(_0x596e85[_0x3bedc1(0x1a0)]<_0xaafb3b['length'])_0x16a416[_0x3bedc1(0x1a8)](_0x3bedc1(0x198));const _0x401192=(_0x7fbc3c,_0x2190cd)=>{const _0x123f09=_0x3bedc1;return _0x16a416[_0x123f09(0x1a8)](_0x7fbc3c),exports[_0x123f09(0x174)]=_0x16a416,_0x2190cd;};if(_0x45a739&&isFeatureEnabled('redact')){const _0x158f72=redactor_1['redactor'][_0x3bedc1(0x18c)](_0x596e85);_0x596e85=_0x158f72[_0x3bedc1(0x196)],exports[_0x3bedc1(0x1ca)]={'secretsFound':_0x158f72['secretsFound'],'secretTypes':_0x158f72[_0x3bedc1(0x1bc)]};if(_0x158f72[_0x3bedc1(0x1cc)]>0x0)_0x16a416[_0x3bedc1(0x1a8)](_0x3bedc1(0x197));}else exports[_0x3bedc1(0x1ca)]={'secretsFound':0x0,'secretTypes':[]};const _0x2a609f=_0x66a309['toLowerCase'](),_0x2bda46=isFeatureEnabled(_0x3bedc1(0x182));try{if(_0x2bda46){if(_0x2a609f['includes']('git\x20status')||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x180)))return _0x401192(_0x3bedc1(0x182),(0x0,git_1[_0x3bedc1(0x1d1)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x16c))||_0x2a609f['includes']('yadm\x20log'))return _0x401192(_0x3bedc1(0x182),(0x0,git_1[_0x3bedc1(0x175)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x170))||_0x2a609f[_0x3bedc1(0x199)]('git\x20show')||_0x2a609f['includes'](_0x3bedc1(0x1a1)))return _0x401192(_0x3bedc1(0x182),(0x0,git_1[_0x3bedc1(0x188)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x184))||_0x2a609f[_0x3bedc1(0x181)](/python3?\s+-m\s+pytest/))return _0x401192('filter',(0x0,python_1[_0x3bedc1(0x17c)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1b4))||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x19c)))return _0x401192(_0x3bedc1(0x182),(0x0,python_1[_0x3bedc1(0x18a)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)]('ruff\x20check')||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1c9)))return _0x401192(_0x3bedc1(0x182),(0x0,devops_1['filterRuff'])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1ab))||_0x2a609f['includes']('npm\x20i\x20')||_0x2a609f[_0x3bedc1(0x1a9)](_0x3bedc1(0x1a6))||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x176))||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x18e)))return _0x401192(_0x3bedc1(0x182),(0x0,js_1[_0x3bedc1(0x16f)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)]('jest')||_0x2a609f['includes'](_0x3bedc1(0x1aa)))return _0x401192(_0x3bedc1(0x182),(0x0,js_1[_0x3bedc1(0x19b)])(_0x596e85));if(_0x2a609f['includes'](_0x3bedc1(0x185))||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1a3))||_0x2a609f['includes'](_0x3bedc1(0x189))||_0x2a609f[_0x3bedc1(0x199)]('npm\x20run\x20test'))return _0x401192(_0x3bedc1(0x182),(0x0,js_1['filterJestVitest'])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1a2)))return _0x401192(_0x3bedc1(0x182),(0x0,rust_1[_0x3bedc1(0x19a)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)]('cargo\x20build')||_0x2a609f['includes']('cargo\x20check')||_0x2a609f[_0x3bedc1(0x199)]('cargo\x20clippy'))return _0x401192(_0x3bedc1(0x182),(0x0,rust_1[_0x3bedc1(0x19f)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x178)))return _0x401192(_0x3bedc1(0x182),(0x0,go_1[_0x3bedc1(0x1a7)])(_0x596e85));if(_0x2a609f['includes'](_0x3bedc1(0x1b2)))return _0x401192(_0x3bedc1(0x182),(0x0,go_1[_0x3bedc1(0x1bb)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x181)](/docker\s+ps/))return _0x401192(_0x3bedc1(0x182),(0x0,devops_1['filterDockerPs'])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x181)](/docker\s+images/))return _0x401192('filter',(0x0,devops_1[_0x3bedc1(0x193)])(_0x596e85));if(_0x2a609f['match'](/docker\s+logs/))return _0x401192(_0x3bedc1(0x182),(0x0,devops_1['filterDockerLogs'])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1c2))){const _0x2dc7ed=_0x2a609f[_0x3bedc1(0x181)](/kubectl\s+(get|logs|describe|apply)/),_0x996196=_0x2dc7ed?_0x2dc7ed[0x1]:'get';return _0x401192(_0x3bedc1(0x182),(0x0,devops_1[_0x3bedc1(0x17d)])(_0x596e85,_0x996196));}if(_0x2a609f['match'](/^(ls|dir)(\s|$)/)||_0x2a609f[_0x3bedc1(0x199)](_0x3bedc1(0x1ad))||_0x2a609f[_0x3bedc1(0x1a9)](_0x3bedc1(0x177)))return _0x401192(_0x3bedc1(0x182),(0x0,shell_1[_0x3bedc1(0x195)])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x181)](/^tree(\s|$)/)||_0x2a609f[_0x3bedc1(0x199)]('\x20tree\x20')||_0x2a609f[_0x3bedc1(0x1a9)](_0x3bedc1(0x18f)))return _0x401192(_0x3bedc1(0x182),(0x0,shell_1[_0x3bedc1(0x1b3)])(_0x596e85));if(_0x2a609f['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0xd67322=(0x0,shell_1[_0x3bedc1(0x1ac)])(_0x596e85,_0x66a309);if(_0xd67322[_0x3bedc1(0x199)](_0x3bedc1(0x16a)))_0x16a416[_0x3bedc1(0x1a8)]('lock');else{if(_0xd67322[_0x3bedc1(0x199)](_0x3bedc1(0x1be))||_0xd67322['includes'](_0x3bedc1(0x190)))_0x16a416['push']('binary');else{if(_0xd67322[_0x3bedc1(0x199)](_0x3bedc1(0x1b0)))_0x16a416[_0x3bedc1(0x1a8)](_0x3bedc1(0x16e));else{if(_0xd67322[_0x3bedc1(0x199)]('|\x20')&&_0xd67322[_0x3bedc1(0x199)]('---')&&_0xd67322[_0x3bedc1(0x1a0)]<_0x596e85['length']*0.5)_0x16a416[_0x3bedc1(0x1a8)](_0x3bedc1(0x1d3));else{if(_0xd67322['includes'](_0x3bedc1(0x179)))_0x16a416['push'](_0x3bedc1(0x182));}}}}if(_0xd67322[_0x3bedc1(0x1a0)]<_0x596e85[_0x3bedc1(0x1a0)]&&!_0x16a416[_0x3bedc1(0x1bd)](_0x54e829=>_0x54e829!=='ansi_strip'&&_0x54e829!=='redact'))_0x16a416[_0x3bedc1(0x1a8)]('filter');return exports[_0x3bedc1(0x174)]=_0x16a416,_0xd67322;}if(_0x2a609f[_0x3bedc1(0x181)](/^find(\s|$)/))return _0x401192('filter',(0x0,shell_1['filterFind'])(_0x596e85));if(_0x2a609f[_0x3bedc1(0x181)](/^(grep|rg|ripgrep)(\s|$)/))return _0x401192(_0x3bedc1(0x182),(0x0,shell_1['filterGrep'])(_0x596e85));}}catch(_0x298101){}return isFeatureEnabled(_0x3bedc1(0x1d0))&&(_0x596e85=(0x0,generic_1[_0x3bedc1(0x17e)])(_0x596e85),_0x16a416['push'](_0x3bedc1(0x1d0))),_0x596e85=(0x0,generic_1[_0x3bedc1(0x17f)])(_0x596e85),_0x596e85=(0x0,generic_1[_0x3bedc1(0x18d)])(_0x596e85,0x4e20),exports[_0x3bedc1(0x174)]=_0x16a416,_0x596e85;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':'trim\x20git'},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x318435(0x17a)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x318435(0x191)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x318435(0x1b5)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x318435(0x1b9)},{'pattern':/^npx\s+/,'prefix':a0_0x318435(0x1c8)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x318435(0x1c3)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x318435(0x1ba)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x318435(0x16b)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x318435(0x192)},{'pattern':/^find\s+/,'prefix':a0_0x318435(0x1b6)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x318435(0x1ae)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x318435(0x1b1)},{'pattern':/^ruff\s+(check|format)/,'prefix':'trim\x20ruff'},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x318435(0x1c4)}];function rewriteCommand(_0x99462f){const _0x4bea1d=a0_0x318435,_0x591bed=_0x99462f[_0x4bea1d(0x1c5)]();if(_0x591bed[_0x4bea1d(0x183)]('trim\x20'))return _0x591bed;for(const _0x4ee06a of REWRITE_RULES){if(_0x4ee06a[_0x4bea1d(0x171)][_0x4bea1d(0x1cb)](_0x591bed))return'trim\x20'+_0x591bed;}return _0x591bed;}
|
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x2305(){const _0x55244f=['Test\x20Runner:\x20','9084040iDIvie','includes','audited\x20','added\x20','2679672uiRKAy','PASS','replace','\x20passed,\x20','trim','defineProperty','31193JEyQGU','length','push','\x20passed','match','join','startsWith','1898768HuatOc','filterNpmInstall','\x20failed\x20(','\x0aFailures:','1294776pgRXhb','Test\x20Files:','up\x20to\x20date','found\x20','3851575WezRLl','Tests:','4OdOxOA','\x20\x20...\x20(','split','FAIL','264540LksqPo','slice'];a0_0x2305=function(){return _0x55244f;};return a0_0x2305();}const a0_0x22e9a2=a0_0x7258;(function(_0x482d16,_0x1edab2){const _0x8d7457=a0_0x7258,_0x740bfb=_0x482d16();while(!![]){try{const _0x5c762a=parseInt(_0x8d7457(0x76))/0x1+-parseInt(_0x8d7457(0x7d))/0x2+parseInt(_0x8d7457(0x70))/0x3*(parseInt(_0x8d7457(0x65))/0x4)+-parseInt(_0x8d7457(0x85))/0x5+-parseInt(_0x8d7457(0x69))/0x6+parseInt(_0x8d7457(0x81))/0x7+parseInt(_0x8d7457(0x6c))/0x8;if(_0x5c762a===_0x1edab2)break;else _0x740bfb['push'](_0x740bfb['shift']());}catch(_0x44627d){_0x740bfb['push'](_0x740bfb['shift']());}}}(a0_0x2305,0x7574d));Object[a0_0x22e9a2(0x75)](exports,'__esModule',{'value':!![]}),exports[a0_0x22e9a2(0x7e)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function a0_0x7258(_0x440b24,_0x1e8738){_0x440b24=_0x440b24-0x65;const _0x230511=a0_0x2305();let _0x72589c=_0x230511[_0x440b24];return _0x72589c;}function filterNpmInstall(_0x44fc54){const _0x29d055=a0_0x22e9a2,_0x336f44=_0x44fc54[_0x29d055(0x72)](/\r/g,'\x0a'),_0x31b68f=_0x336f44[_0x29d055(0x67)]('\x0a'),_0x2e7599=[];for(const _0x39a65a of _0x31b68f){const _0x318266=_0x39a65a['trim']();(_0x318266[_0x29d055(0x6d)](_0x29d055(0x6f))||_0x318266[_0x29d055(0x6d)]('removed\x20')||_0x318266[_0x29d055(0x6d)](_0x29d055(0x6e))||_0x318266['includes'](_0x29d055(0x83))||_0x318266[_0x29d055(0x6d)](_0x29d055(0x84)))&&(!_0x318266[_0x29d055(0x6d)]('%')&&!_0x318266[_0x29d055(0x7c)]('⠋')&&!_0x318266[_0x29d055(0x7c)]('⠙')&&_0x2e7599[_0x29d055(0x78)](_0x318266));}const _0x28c061=_0x2e7599['join']('\x0a')[_0x29d055(0x74)]();return _0x28c061['length']>0x0?_0x28c061:'NPM:\x20Packages\x20verified/installed\x20successfully';}function filterJestVitest(_0x165d73){const _0x43610e=a0_0x22e9a2,_0x4a90d1=_0x165d73['split']('\x0a');let _0x27a366=0x0,_0x5aa45c=0x0,_0xa2c177=0x0;const _0x2aa40b=[];let _0x14fe22=![];for(const _0x221b7a of _0x4a90d1){const _0x5bab03=_0x221b7a[_0x43610e(0x74)]();if(_0x5bab03[_0x43610e(0x7c)](_0x43610e(0x86))||_0x5bab03[_0x43610e(0x6d)](_0x43610e(0x82))){const _0x2748ce=_0x5bab03['match'](/(\d+)\s+passed/),_0x635d7f=_0x5bab03[_0x43610e(0x7a)](/(\d+)\s+failed/),_0x2ae936=_0x5bab03['match'](/(\d+)\s+total/);if(_0x2748ce)_0x27a366=parseInt(_0x2748ce[0x1]);if(_0x635d7f)_0x5aa45c=parseInt(_0x635d7f[0x1]);if(_0x2ae936)_0xa2c177=parseInt(_0x2ae936[0x1]);continue;}(_0x5bab03[_0x43610e(0x7c)]('❯')||_0x5bab03[_0x43610e(0x7c)]('●')||_0x5bab03['startsWith']('FAIL\x20\x20'))&&(_0x14fe22=!![]),_0x14fe22&&(_0x5bab03[_0x43610e(0x77)]>0x0&&!_0x5bab03[_0x43610e(0x7c)]('Test\x20Suites:')&&!_0x5bab03[_0x43610e(0x7c)]('Tests:')&&_0x2aa40b[_0x43610e(0x78)](_0x221b7a));}if(_0xa2c177===0x0&&_0x27a366===0x0&&_0x5aa45c===0x0){if(_0x165d73['includes'](_0x43610e(0x71))&&!_0x165d73[_0x43610e(0x6d)](_0x43610e(0x68))){const _0x2fa6a6=_0x165d73[_0x43610e(0x7a)](/(\d+)\s+passed/),_0x504de8=_0x2fa6a6?_0x2fa6a6[0x1]:'all';return'Test\x20Runner:\x20'+_0x504de8+_0x43610e(0x79);}return _0x165d73;}if(_0x5aa45c===0x0&&_0x27a366>0x0)return _0x43610e(0x6b)+_0x27a366+_0x43610e(0x79);const _0x1a178d=[_0x43610e(0x6b)+_0x27a366+_0x43610e(0x73)+_0x5aa45c+_0x43610e(0x7f)+_0xa2c177+'\x20total)'];if(_0x2aa40b['length']>0x0){_0x1a178d[_0x43610e(0x78)](_0x43610e(0x80));const _0x2c98a2=0x19,_0x47a786=_0x2aa40b[_0x43610e(0x6a)](0x0,_0x2c98a2);for(const _0x2bf8a1 of _0x47a786){_0x1a178d[_0x43610e(0x78)]('\x20\x20'+_0x2bf8a1);}_0x2aa40b[_0x43610e(0x77)]>_0x2c98a2&&_0x1a178d[_0x43610e(0x78)](_0x43610e(0x66)+(_0x2aa40b[_0x43610e(0x77)]-_0x2c98a2)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x1a178d[_0x43610e(0x7b)]('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x2df9b4=a0_0x242e;(function(_0xeae8b5,_0x173e48){const _0x311b89=a0_0x242e,_0x545f4f=_0xeae8b5();while(!![]){try{const _0x443f93=-parseInt(_0x311b89(0x1c8))/0x1+parseInt(_0x311b89(0x1a1))/0x2+parseInt(_0x311b89(0x1bb))/0x3*(-parseInt(_0x311b89(0x1ca))/0x4)+parseInt(_0x311b89(0x1c3))/0x5+parseInt(_0x311b89(0x1a4))/0x6*(parseInt(_0x311b89(0x1a3))/0x7)+-parseInt(_0x311b89(0x1b0))/0x8+parseInt(_0x311b89(0x1a5))/0x9;if(_0x443f93===_0x173e48)break;else _0x545f4f['push'](_0x545f4f['shift']());}catch(_0x464238){_0x545f4f['push'](_0x545f4f['shift']());}}}(a0_0x3c01,0x6941f));function a0_0x3c01(){const _0x3cbf58=['failed','Pytest:\x20','602695RIZtiF','\x20\x20...\x20+','filter','\x0aFailures:','===\x20short\x20test\x20summary\x20info\x20===','192468XYkXIz','defineProperty','417412lWRPxs','295198FiSqkW','includes','3586177syehpw','6oIGwNq','9852210JiYWri','filterPipInstall','Successfully\x20installed','Collecting','split','trim','___','\x20xfailed','__esModule','\x20\x20\x20\x20...\x20(','slice','5838168UaWQtY','Requirement\x20already\x20satisfied','passed','Using\x20cached','E\x20\x20\x20','\x20\x20\x20\x20','\x20passed','filterPytest','length','startsWith','Downloading','15kXcvqI','match','join','\x20xpassed\x20(warning!)','===','push'];a0_0x3c01=function(){return _0x3cbf58;};return a0_0x3c01();}Object[a0_0x2df9b4(0x1c9)](exports,a0_0x2df9b4(0x1ad),{'value':!![]}),exports[a0_0x2df9b4(0x1b7)]=filterPytest,exports[a0_0x2df9b4(0x1a6)]=filterPipInstall;function a0_0x242e(_0x5855a6,_0x58ff5e){_0x5855a6=_0x5855a6-0x1a1;const _0x3c012d=a0_0x3c01();let _0x242ece=_0x3c012d[_0x5855a6];return _0x242ece;}function filterPytest(_0x55ee25){const _0x5de914=a0_0x2df9b4,_0x31baaf=_0x55ee25[_0x5de914(0x1a9)]('\x0a');let _0x5bbc96=0x0,_0x3fb3b7=0x0,_0x2805ab=0x0,_0xbe4c43=0x0,_0x5d1835=0x0;const _0xd15f86=[];let _0x38bbd9=[],_0x1f3be9=![];for(const _0x3600b9 of _0x31baaf){const _0x2f4edb=_0x3600b9[_0x5de914(0x1aa)]();if(_0x2f4edb[_0x5de914(0x1b9)]('===\x20FAILURES\x20===')||_0x2f4edb[_0x5de914(0x1b9)]('===\x20ERRORS\x20===')){_0x1f3be9=!![];continue;}else(_0x2f4edb['startsWith'](_0x5de914(0x1c7))||_0x2f4edb[_0x5de914(0x1b9)]('===')&&_0x2f4edb['includes'](_0x5de914(0x1b2)))&&(_0x1f3be9=![],_0x38bbd9[_0x5de914(0x1b8)]>0x0&&(_0xd15f86[_0x5de914(0x1c0)](_0x38bbd9),_0x38bbd9=[]));if(_0x1f3be9){if(_0x2f4edb['startsWith'](_0x5de914(0x1ab)))_0x38bbd9[_0x5de914(0x1b8)]>0x0&&(_0xd15f86[_0x5de914(0x1c0)](_0x38bbd9),_0x38bbd9=[]),_0x38bbd9[_0x5de914(0x1c0)](_0x2f4edb);else _0x2f4edb[_0x5de914(0x1b8)]>0x0&&_0x38bbd9[_0x5de914(0x1c0)](_0x3600b9);continue;}if(_0x2f4edb[_0x5de914(0x1b9)](_0x5de914(0x1bf))&&_0x2f4edb[_0x5de914(0x1a2)]('\x20in\x20')){const _0x14a26a=_0x2f4edb[_0x5de914(0x1bc)](/(\d+)\s+passed/),_0x5b72c5=_0x2f4edb[_0x5de914(0x1bc)](/(\d+)\s+failed/),_0x519720=_0x2f4edb[_0x5de914(0x1bc)](/(\d+)\s+skipped/),_0x19da32=_0x2f4edb[_0x5de914(0x1bc)](/(\d+)\s+xfailed/),_0x574042=_0x2f4edb[_0x5de914(0x1bc)](/(\d+)\s+xpassed/);if(_0x14a26a)_0x5bbc96=parseInt(_0x14a26a[0x1]);if(_0x5b72c5)_0x3fb3b7=parseInt(_0x5b72c5[0x1]);if(_0x519720)_0x2805ab=parseInt(_0x519720[0x1]);if(_0x19da32)_0xbe4c43=parseInt(_0x19da32[0x1]);if(_0x574042)_0x5d1835=parseInt(_0x574042[0x1]);}}_0x38bbd9['length']>0x0&&_0xd15f86[_0x5de914(0x1c0)](_0x38bbd9);if(_0x5bbc96===0x0&&_0x3fb3b7===0x0&&_0x2805ab===0x0&&_0xbe4c43===0x0&&_0x5d1835===0x0){if(_0x55ee25[_0x5de914(0x1a2)](_0x5de914(0x1b2))&&!_0x55ee25[_0x5de914(0x1a2)](_0x5de914(0x1c1)))return'Pytest:\x20All\x20tests\x20passed';return _0x55ee25;}if(_0x3fb3b7===0x0&&_0x5bbc96>0x0&&_0x2805ab===0x0&&_0xbe4c43===0x0&&_0x5d1835===0x0)return _0x5de914(0x1c2)+_0x5bbc96+_0x5de914(0x1b6);const _0x325364=[];_0x325364['push'](_0x5de914(0x1c2)+_0x5bbc96+_0x5de914(0x1b6));if(_0x3fb3b7>0x0)_0x325364[_0x5de914(0x1c0)](_0x3fb3b7+'\x20failed');if(_0x2805ab>0x0)_0x325364['push'](_0x2805ab+'\x20skipped');if(_0xbe4c43>0x0)_0x325364[_0x5de914(0x1c0)](_0xbe4c43+_0x5de914(0x1ac));if(_0x5d1835>0x0)_0x325364[_0x5de914(0x1c0)](_0x5d1835+_0x5de914(0x1be));const _0x1abd43=[_0x325364[_0x5de914(0x1bd)](',\x20')];if(_0xd15f86[_0x5de914(0x1b8)]>0x0){_0x1abd43[_0x5de914(0x1c0)](_0x5de914(0x1c6));const _0xe2358f=0x3,_0x25f088=_0xd15f86[_0x5de914(0x1af)](0x0,_0xe2358f);for(let _0x361dcd=0x0;_0x361dcd<_0x25f088[_0x5de914(0x1b8)];_0x361dcd++){const _0x14787f=_0x25f088[_0x361dcd],_0x2203cf=_0x14787f[0x0]['replace'](/_/g,'')['trim']();_0x1abd43['push']('\x20\x20'+(_0x361dcd+0x1)+'.\x20[FAIL]\x20'+_0x2203cf);const _0x460e72=_0x14787f[_0x5de914(0x1af)](0x1),_0x126c55=_0x460e72[_0x5de914(0x1c5)](_0x529676=>{const _0x3a04f8=_0x5de914,_0x2ecea5=_0x529676[_0x3a04f8(0x1aa)]();return _0x2ecea5[_0x3a04f8(0x1b9)]('>')||_0x2ecea5['startsWith'](_0x3a04f8(0x1b4))||_0x2ecea5[_0x3a04f8(0x1a2)]('.py:')||_0x2ecea5[_0x3a04f8(0x1a2)]('AssertionError:');});for(const _0x309907 of _0x126c55[_0x5de914(0x1af)](0x0,0x8)){_0x1abd43['push'](_0x5de914(0x1b5)+_0x309907);}_0x126c55[_0x5de914(0x1b8)]>0x8&&_0x1abd43[_0x5de914(0x1c0)](_0x5de914(0x1ae)+(_0x126c55[_0x5de914(0x1b8)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0xd15f86[_0x5de914(0x1b8)]>_0xe2358f&&_0x1abd43[_0x5de914(0x1c0)](_0x5de914(0x1c4)+(_0xd15f86[_0x5de914(0x1b8)]-_0xe2358f)+'\x20more\x20failures\x20truncated');}return _0x1abd43[_0x5de914(0x1bd)]('\x0a');}function filterPipInstall(_0x2fdf38){const _0x2ac46e=a0_0x2df9b4,_0x130be0=_0x2fdf38[_0x2ac46e(0x1a9)]('\x0a'),_0x26bbb2=[];for(const _0x1f0e90 of _0x130be0){const _0xcf5200=_0x1f0e90[_0x2ac46e(0x1aa)]();_0xcf5200[_0x2ac46e(0x1b9)](_0x2ac46e(0x1a7))&&_0x26bbb2['push'](_0xcf5200);}if(_0x26bbb2[_0x2ac46e(0x1b8)]>0x0)return _0x26bbb2['join']('\x0a');return _0x130be0['filter'](_0x508382=>{const _0x2f5304=_0x2ac46e,_0x48ca3e=_0x508382['trim']();return!_0x48ca3e['startsWith'](_0x2f5304(0x1a8))&&!_0x48ca3e[_0x2f5304(0x1b9)](_0x2f5304(0x1ba))&&!_0x48ca3e['includes'](_0x2f5304(0x1b3))&&!_0x48ca3e[_0x2f5304(0x1b9)](_0x2f5304(0x1b1));})[_0x2ac46e(0x1bd)]('\x0a')['trim']();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a0_0x450c1a=a0_0x1abb;(function(_0x2c8e4d,_0x100821){const _0x2360cf=a0_0x1abb,_0x50a0ff=_0x2c8e4d();while(!![]){try{const _0x428c25=parseInt(_0x2360cf(0x15c))/0x1*(-parseInt(_0x2360cf(0x135))/0x2)+parseInt(_0x2360cf(0x147))/0x3*(parseInt(_0x2360cf(0x13d))/0x4)+parseInt(_0x2360cf(0x14b))/0x5*(parseInt(_0x2360cf(0x150))/0x6)+parseInt(_0x2360cf(0x13e))/0x7+-parseInt(_0x2360cf(0x163))/0x8*(-parseInt(_0x2360cf(0x161))/0x9)+-parseInt(_0x2360cf(0x14f))/0xa+-parseInt(_0x2360cf(0x143))/0xb;if(_0x428c25===_0x100821)break;else _0x50a0ff['push'](_0x50a0ff['shift']());}catch(_0x3953c9){_0x50a0ff['push'](_0x50a0ff['shift']());}}}(a0_0x3633,0x47627));function a0_0x3633(){const _0x249b82=['\x0aErrors:','\x20crates,\x20','split','replace','9qsNyOt','\x20more\x20errors','assert','\x20----','left:','36dNCisY','slice','225640WoPqRQ','thread','----\x20','\x20\x20...\x20+','defineProperty','15430NtFXrB','join','includes','Cargo\x20test:\x20','push','trim','\x20passed','\x20crates\x20successfully','1876GIMyDv','2553817LgjUku','Compiling\x20','__esModule','warning:','\x20passed,\x20','1147729WqVKoJ','length','filterCargoBuild','min','243LVHwWn','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','\x20ignored','\x20errors,\x20','10CTBAAe','Cargo:\x20','warning[','startsWith','2087050YqppTT','477690sLIyqU','endsWith','right:','match','Cargo:\x20compiled\x20','test\x20result:','\x20warnings','----\x20failures\x20----'];a0_0x3633=function(){return _0x249b82;};return a0_0x3633();}function a0_0x1abb(_0x11ca80,_0x237fca){_0x11ca80=_0x11ca80-0x133;const _0x363330=a0_0x3633();let _0x1abb9d=_0x363330[_0x11ca80];return _0x1abb9d;}Object[a0_0x450c1a(0x134)](exports,a0_0x450c1a(0x140),{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports[a0_0x450c1a(0x145)]=filterCargoBuild;function filterCargoTest(_0x5c0928){const _0x1e6853=a0_0x450c1a,_0x3fcf2e=_0x5c0928[_0x1e6853(0x15a)]('\x0a');let _0x2e3371=0x0,_0x93c6f9=0x0,_0x4562ea=0x0,_0x1a27ac=0x0;const _0x224f90=[];let _0x44729a=![],_0x1d0928=[];for(const _0x144eb4 of _0x3fcf2e){const _0x4a60fc=_0x144eb4[_0x1e6853(0x13a)](),_0x1453f3=_0x4a60fc[_0x1e6853(0x153)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x1453f3){_0x2e3371+=parseInt(_0x1453f3[0x2]),_0x93c6f9+=parseInt(_0x1453f3[0x3]),_0x4562ea+=parseInt(_0x1453f3[0x4]),_0x1a27ac+=parseInt(_0x1453f3[0x5]);continue;}if(_0x4a60fc==='failures:'||_0x4a60fc===_0x1e6853(0x157)){_0x44729a=!![];continue;}if(_0x44729a){if(_0x4a60fc[_0x1e6853(0x14e)](_0x1e6853(0x165))&&_0x4a60fc[_0x1e6853(0x151)](_0x1e6853(0x15f))){if(_0x1d0928[_0x1e6853(0x144)]>0x0)_0x224f90['push'](_0x1d0928[_0x1e6853(0x136)]('\x0a'));_0x1d0928=[_0x4a60fc['replace'](/^-+\s*/,'')[_0x1e6853(0x15b)](/\s*-+$/,'')];}else{if(_0x4a60fc==='failures:'||_0x4a60fc['startsWith'](_0x1e6853(0x155))){if(_0x1d0928[_0x1e6853(0x144)]>0x0)_0x224f90[_0x1e6853(0x139)](_0x1d0928['join']('\x0a'));_0x1d0928=[],_0x44729a=![];}else _0x4a60fc[_0x1e6853(0x144)]>0x0&&_0x1d0928[_0x1e6853(0x139)](_0x144eb4);}}}if(_0x1d0928['length']>0x0)_0x224f90[_0x1e6853(0x139)](_0x1d0928[_0x1e6853(0x136)]('\x0a'));if(_0x2e3371===0x0&&_0x93c6f9===0x0&&_0x4562ea===0x0){if(_0x5c0928[_0x1e6853(0x137)]('test\x20result:\x20ok'))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x5c0928;}if(_0x93c6f9===0x0){const _0xa6a890=['Cargo\x20test:\x20'+_0x2e3371+_0x1e6853(0x13b)];if(_0x4562ea>0x0)_0xa6a890['push'](_0x4562ea+_0x1e6853(0x149));return _0xa6a890[_0x1e6853(0x136)](',\x20');}const _0x327388=[_0x1e6853(0x138)+_0x2e3371+_0x1e6853(0x142)+_0x93c6f9+'\x20failed,\x20'+_0x4562ea+_0x1e6853(0x149)];if(_0x224f90[_0x1e6853(0x144)]>0x0){_0x327388[_0x1e6853(0x139)]('\x0aFailures:');const _0x2661b8=0x3;for(let _0x24d42c=0x0;_0x24d42c<Math[_0x1e6853(0x146)](_0x224f90['length'],_0x2661b8);_0x24d42c++){const _0x2fcddf=_0x224f90[_0x24d42c]['split']('\x0a');_0x327388[_0x1e6853(0x139)]('\x20\x20'+(_0x24d42c+0x1)+'.\x20'+_0x2fcddf[0x0]);const _0x126388=_0x2fcddf['slice'](0x1),_0x53e915=_0x126388['filter'](_0x275b02=>_0x275b02['trim']()[_0x1e6853(0x14e)](_0x1e6853(0x164))||_0x275b02[_0x1e6853(0x137)]('panicked')||_0x275b02[_0x1e6853(0x137)](_0x1e6853(0x15e))||_0x275b02['includes'](_0x1e6853(0x160))||_0x275b02['includes'](_0x1e6853(0x152)));for(const _0x12ca6e of _0x53e915[_0x1e6853(0x162)](0x0,0x5)){_0x327388[_0x1e6853(0x139)]('\x20\x20\x20\x20'+_0x12ca6e['trim']());}}_0x224f90[_0x1e6853(0x144)]>_0x2661b8&&_0x327388[_0x1e6853(0x139)](_0x1e6853(0x133)+(_0x224f90['length']-_0x2661b8)+'\x20more\x20failures');}return _0x327388[_0x1e6853(0x136)]('\x0a');}function filterCargoBuild(_0x3a8ea2){const _0x29d241=a0_0x450c1a,_0xee19cb=_0x3a8ea2[_0x29d241(0x15a)]('\x0a'),_0x5f0ac7=[],_0x5196c8=[];let _0x59c28d=0x0;for(const _0x8e4477 of _0xee19cb){const _0x1eb5e5=_0x8e4477['trim']();if(_0x1eb5e5[_0x29d241(0x14e)](_0x29d241(0x13f)))_0x59c28d++;else{if(_0x1eb5e5['startsWith'](_0x29d241(0x14d))||_0x1eb5e5['startsWith'](_0x29d241(0x141)))_0x5f0ac7['push'](_0x1eb5e5);else{if(_0x1eb5e5['startsWith']('error[')||_0x1eb5e5[_0x29d241(0x14e)]('error:'))_0x5196c8[_0x29d241(0x139)](_0x1eb5e5);}}}if(_0x5196c8['length']===0x0&&_0x5f0ac7[_0x29d241(0x144)]===0x0)return _0x59c28d>0x0?_0x29d241(0x154)+_0x59c28d+_0x29d241(0x13c):_0x3a8ea2[_0x29d241(0x13a)]();const _0x53e85e=[];if(_0x5196c8[_0x29d241(0x144)]>0x0){_0x53e85e[_0x29d241(0x139)](_0x29d241(0x14c)+_0x5196c8[_0x29d241(0x144)]+_0x29d241(0x14a)+_0x5f0ac7[_0x29d241(0x144)]+'\x20warnings'),_0x53e85e[_0x29d241(0x139)](_0x29d241(0x158));for(const _0xf0c736 of _0x5196c8[_0x29d241(0x162)](0x0,0x5))_0x53e85e[_0x29d241(0x139)]('\x20\x20'+_0xf0c736);if(_0x5196c8[_0x29d241(0x144)]>0x5)_0x53e85e['push'](_0x29d241(0x133)+(_0x5196c8[_0x29d241(0x144)]-0x5)+_0x29d241(0x15d));}else _0x53e85e[_0x29d241(0x139)](_0x29d241(0x154)+_0x59c28d+_0x29d241(0x159)+_0x5f0ac7[_0x29d241(0x144)]+_0x29d241(0x156));if(_0x5f0ac7[_0x29d241(0x144)]>0x0&&_0x5f0ac7[_0x29d241(0x144)]<=0x5){_0x53e85e[_0x29d241(0x139)]('\x0aWarnings:');for(const _0x18a4db of _0x5f0ac7)_0x53e85e['push']('\x20\x20'+_0x18a4db);}else _0x5f0ac7[_0x29d241(0x144)]>0x5&&_0x53e85e[_0x29d241(0x139)]('\x0a('+_0x5f0ac7[_0x29d241(0x144)]+_0x29d241(0x148));return _0x53e85e[_0x29d241(0x136)]('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x41b3bf=a0_0x21cb;(function(_0x7cb930,_0x204251){const _0x22368a=a0_0x21cb,_0x3cf849=_0x7cb930();while(!![]){try{const _0x1324f1=-parseInt(_0x22368a(0x234))/0x1*(parseInt(_0x22368a(0x233))/0x2)+parseInt(_0x22368a(0x208))/0x3+parseInt(_0x22368a(0x261))/0x4+parseInt(_0x22368a(0x242))/0x5+-parseInt(_0x22368a(0x1f2))/0x6+-parseInt(_0x22368a(0x25c))/0x7+parseInt(_0x22368a(0x22e))/0x8*(parseInt(_0x22368a(0x243))/0x9);if(_0x1324f1===_0x204251)break;else _0x3cf849['push'](_0x3cf849['shift']());}catch(_0x492e77){_0x3cf849['push'](_0x3cf849['shift']());}}}(a0_0x41d9,0x32605));function a0_0x21cb(_0x156ea5,_0x401542){_0x156ea5=_0x156ea5-0x1ed;const _0x41d960=a0_0x41d9();let _0x21cb6c=_0x41d960[_0x156ea5];return _0x21cb6c;}var __createBinding=this&&this[a0_0x41b3bf(0x26d)]||(Object[a0_0x41b3bf(0x1ee)]?function(_0x5a6156,_0x9956e6,_0x47a15c,_0x12e636){const _0x386678=a0_0x41b3bf;if(_0x12e636===undefined)_0x12e636=_0x47a15c;var _0x4e9eae=Object[_0x386678(0x272)](_0x9956e6,_0x47a15c);(!_0x4e9eae||(_0x386678(0x20a)in _0x4e9eae?!_0x9956e6[_0x386678(0x1fc)]:_0x4e9eae[_0x386678(0x220)]||_0x4e9eae[_0x386678(0x211)]))&&(_0x4e9eae={'enumerable':!![],'get':function(){return _0x9956e6[_0x47a15c];}}),Object['defineProperty'](_0x5a6156,_0x12e636,_0x4e9eae);}:function(_0x525b02,_0x33a51e,_0x10a856,_0x23128f){if(_0x23128f===undefined)_0x23128f=_0x10a856;_0x525b02[_0x23128f]=_0x33a51e[_0x10a856];}),__setModuleDefault=this&&this[a0_0x41b3bf(0x27b)]||(Object[a0_0x41b3bf(0x1ee)]?function(_0x1c768f,_0x201ad2){const _0x231943=a0_0x41b3bf;Object[_0x231943(0x26e)](_0x1c768f,_0x231943(0x236),{'enumerable':!![],'value':_0x201ad2});}:function(_0x34d27e,_0x5588ca){const _0x15ae58=a0_0x41b3bf;_0x34d27e[_0x15ae58(0x236)]=_0x5588ca;}),__importStar=this&&this[a0_0x41b3bf(0x24d)]||(function(){var _0x95d32d=function(_0x2f2a0d){return _0x95d32d=Object['getOwnPropertyNames']||function(_0x21b649){const _0x2a7c56=a0_0x21cb;var _0x26ee0=[];for(var _0x2ce1ca in _0x21b649)if(Object[_0x2a7c56(0x275)][_0x2a7c56(0x1f9)]['call'](_0x21b649,_0x2ce1ca))_0x26ee0[_0x26ee0[_0x2a7c56(0x260)]]=_0x2ce1ca;return _0x26ee0;},_0x95d32d(_0x2f2a0d);};return function(_0x36286c){const _0xd1b123=a0_0x21cb;if(_0x36286c&&_0x36286c[_0xd1b123(0x1fc)])return _0x36286c;var _0x2f1752={};if(_0x36286c!=null){for(var _0x1cfea8=_0x95d32d(_0x36286c),_0x9f8087=0x0;_0x9f8087<_0x1cfea8[_0xd1b123(0x260)];_0x9f8087++)if(_0x1cfea8[_0x9f8087]!==_0xd1b123(0x236))__createBinding(_0x2f1752,_0x36286c,_0x1cfea8[_0x9f8087]);}return __setModuleDefault(_0x2f1752,_0x36286c),_0x2f1752;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x41b3bf(0x226)]=filterLs,exports[a0_0x41b3bf(0x276)]=filterTree,exports[a0_0x41b3bf(0x1fd)]=filterCat,exports[a0_0x41b3bf(0x27f)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x41b3bf(0x1f8))),generic_1=require(a0_0x41b3bf(0x268)),tracker_1=require('../tracker');function isFeatureEnabled(_0x363f7b){const _0x3cc333=a0_0x41b3bf;try{const _0x4eb3e6=tracker_1[_0x3cc333(0x223)][_0x3cc333(0x1f3)](),_0x5e36dd=_0x4eb3e6['features_enabled'];if(!_0x5e36dd||_0x5e36dd[_0x363f7b]===undefined)return!![];return _0x5e36dd[_0x363f7b]!==![];}catch{return!![];}}function a0_0x41d9(){const _0x2e9775=['pnpm-lock.yaml','.ttf','\x0a...\x20[','[binary\x20file]\x20','.avi','charCodeAt','.js','dirname','__importStar','indexOf','.jsx','go.sum','stringify','composer.lock','extname','\x20lines\x20total,\x20','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','toLowerCase','slice','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','.dat','join','1336741uWKOuy','\x20more\x20files','\x20structural\x20lines\x20shown)','.eot','length','157584bJbwSV','basename','endsWith','.mp4','@return','.tgz','.dll','./generic','match','stripComments','.mp3','Cargo.lock','__createBinding','defineProperty','.svg','export\x20','binary','getOwnPropertyDescriptor','.bz2','.webm','prototype','filterTree','.min.css','trim','.db','Empty\x20directory','__setModuleDefault','startsWith','.rs','.woff','filterGrep','.pyc','.pdf','\x20chars,\x20type:\x20','#include\x20','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.woff2','.png','create','push','.go','poetry.lock','2427648HSLHGL','getConfig','.otf','.rar','...\x20+','No\x20matches\x20found','path','hasOwnProperty','Gemfile.lock','.java','__esModule','filterCat','.gz','No\x20files\x20found','\x20directories,\x20','filter','some','bun.lockb','substring','.bin','yarn.lock','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','569475kgvREJ','@param','get','.jpg','.bmp','\x20more\x20matches','[minified\x20file]\x20','\x20matches\x20in\x20this\x20file)','.gif','configurable','dependencies','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','.7z','\x20\x20...\x20+','packages','.jpeg','.zip','.sqlite3','.webp','.cs','.ts','.min.js','parse','import\x20','writable','\x0a...\x20(','.kt','tracker','package\x20','entries','filterLs','.tsx','[binary/minified\x20file]\x20','split','.tar.gz','use\x20','\x20more\x20directories','includes','6482352AksNtF','\x20lines\x20total)','keys','.dylib','toLocaleString','354vhKSiZ','1401cxDsWh','.ico','default','\x20files)','.rb','\x20files\x20found\x20across\x20','.wasm','.wav','.map','\x20dependencies,\x20','cargo.lock','.py','skeleton','require(','51870ObiNtA','9FAVEJN','\x20matches\x20across\x20'];a0_0x41d9=function(){return _0x2e9775;};return a0_0x41d9();}const LOCK_FILES=['package-lock.json',a0_0x41b3bf(0x206),a0_0x41b3bf(0x245),a0_0x41b3bf(0x26c),a0_0x41b3bf(0x250),a0_0x41b3bf(0x1f1),a0_0x41b3bf(0x252),a0_0x41b3bf(0x1fa),a0_0x41b3bf(0x203)],BINARY_EXTENSIONS=[a0_0x41b3bf(0x21d),a0_0x41b3bf(0x277),a0_0x41b3bf(0x23c),a0_0x41b3bf(0x23a),a0_0x41b3bf(0x1ed),a0_0x41b3bf(0x20b),a0_0x41b3bf(0x217),a0_0x41b3bf(0x210),a0_0x41b3bf(0x235),a0_0x41b3bf(0x20c),a0_0x41b3bf(0x21a),a0_0x41b3bf(0x26f),a0_0x41b3bf(0x281),a0_0x41b3bf(0x218),a0_0x41b3bf(0x22a),a0_0x41b3bf(0x266),a0_0x41b3bf(0x1fe),a0_0x41b3bf(0x273),a0_0x41b3bf(0x214),a0_0x41b3bf(0x1f5),'.exe',a0_0x41b3bf(0x267),'.so',a0_0x41b3bf(0x231),a0_0x41b3bf(0x205),a0_0x41b3bf(0x25a),'.sqlite',a0_0x41b3bf(0x279),a0_0x41b3bf(0x219),a0_0x41b3bf(0x27e),a0_0x41b3bf(0x285),a0_0x41b3bf(0x246),a0_0x41b3bf(0x25f),a0_0x41b3bf(0x1f4),a0_0x41b3bf(0x26b),a0_0x41b3bf(0x264),a0_0x41b3bf(0x23b),a0_0x41b3bf(0x249),'.mov',a0_0x41b3bf(0x274),a0_0x41b3bf(0x280),'.pyo','.class','.o','.obj'];function extractFilename(_0x3c9a9f){const _0x2539c8=a0_0x41b3bf,_0x1cb328=_0x3c9a9f[_0x2539c8(0x278)]()[_0x2539c8(0x229)](/\s+/);for(let _0x327ee3=0x1;_0x327ee3<_0x1cb328[_0x2539c8(0x260)];_0x327ee3++){if(!_0x1cb328[_0x327ee3][_0x2539c8(0x27c)]('-'))return _0x1cb328[_0x327ee3];}return null;}function filterLockFile(_0x515b2c,_0x333f42){const _0x26e748=a0_0x41b3bf;try{const _0x6c11bf=path[_0x26e748(0x262)](_0x333f42)['toLowerCase']();if(!LOCK_FILES[_0x26e748(0x202)](_0xfd6c9b=>_0x6c11bf===_0xfd6c9b[_0x26e748(0x257)]()))return null;const _0x3750f8=_0x515b2c[_0x26e748(0x260)];let _0x59b5c0=0x0;if(_0x6c11bf==='package-lock.json')try{const _0x3e4795=JSON[_0x26e748(0x21e)](_0x515b2c);_0x59b5c0=Object[_0x26e748(0x230)](_0x3e4795[_0x26e748(0x216)]||_0x3e4795[_0x26e748(0x212)]||{})[_0x26e748(0x260)];}catch{_0x59b5c0=(_0x515b2c[_0x26e748(0x269)](/"resolved":/g)||[])[_0x26e748(0x260)];}else{if(_0x6c11bf===_0x26e748(0x206))_0x59b5c0=(_0x515b2c[_0x26e748(0x269)](/^"?[^#\s][^:]*:$/gm)||[])[_0x26e748(0x260)];else{if(_0x6c11bf===_0x26e748(0x23e)||_0x6c11bf===_0x26e748(0x1f1))_0x59b5c0=(_0x515b2c[_0x26e748(0x269)](/\[\[package\]\]/g)||[])[_0x26e748(0x260)];else{if(_0x6c11bf===_0x26e748(0x250))_0x59b5c0=Math['floor'](_0x515b2c['split']('\x0a')[_0x26e748(0x201)](_0x5356c0=>_0x5356c0['trim']())[_0x26e748(0x260)]/0x2);else{if(_0x6c11bf===_0x26e748(0x252))try{_0x59b5c0=JSON[_0x26e748(0x21e)](_0x515b2c)[_0x26e748(0x216)]?.[_0x26e748(0x260)]||0x0;}catch{}else _0x6c11bf===_0x26e748(0x245)?_0x59b5c0=(_0x515b2c['match'](/^\s{2}['"@a-z]/gm)||[])[_0x26e748(0x260)]:_0x59b5c0=_0x515b2c[_0x26e748(0x229)]('\x0a')[_0x26e748(0x201)](_0x1c46d5=>_0x1c46d5[_0x26e748(0x278)]())[_0x26e748(0x260)];}}}}return'[lock\x20file]\x20'+path['basename'](_0x333f42)+':\x20'+_0x59b5c0+_0x26e748(0x23d)+_0x3750f8['toLocaleString']()+_0x26e748(0x213);}catch{return null;}}function filterBinaryOrMinified(_0x31e729,_0x4625df){const _0x466009=a0_0x41b3bf;try{if(_0x4625df){const _0x296a02=_0x4625df[_0x466009(0x257)]();for(const _0x378911 of BINARY_EXTENSIONS){if(_0x296a02[_0x466009(0x263)](_0x378911))return _0x466009(0x228)+path[_0x466009(0x262)](_0x4625df)+',\x20'+_0x31e729['length']['toLocaleString']()+_0x466009(0x282)+_0x378911+_0x466009(0x256);}}const _0x3e8d54=_0x31e729[_0x466009(0x204)](0x0,0x3e8);let _0x1594c4=0x0;for(let _0x36b186=0x0;_0x36b186<_0x3e8d54[_0x466009(0x260)];_0x36b186++){if(_0x3e8d54[_0x466009(0x24a)](_0x36b186)===0x0)_0x1594c4++;}if(_0x1594c4>0x0)return _0x466009(0x248)+_0x31e729[_0x466009(0x260)][_0x466009(0x232)]()+_0x466009(0x207);let _0x5bbf32=0x0;for(let _0x431cb0=0x0;_0x431cb0<_0x3e8d54[_0x466009(0x260)];_0x431cb0++){const _0x4acaa5=_0x3e8d54[_0x466009(0x24a)](_0x431cb0);if(_0x4acaa5<0x20&&_0x4acaa5!==0xa&&_0x4acaa5!==0xd&&_0x4acaa5!==0x9)_0x5bbf32++;}if(_0x3e8d54[_0x466009(0x260)]>0x64&&_0x5bbf32>_0x3e8d54[_0x466009(0x260)]*0.1)return'[binary\x20file]\x20'+_0x31e729[_0x466009(0x260)][_0x466009(0x232)]()+_0x466009(0x255);const _0x366abd=_0x31e729[_0x466009(0x229)]('\x0a');if(_0x366abd['length']<=0x3&&_0x31e729[_0x466009(0x260)]>0x1388)return _0x466009(0x20e)+_0x31e729[_0x466009(0x260)][_0x466009(0x232)]()+'\x20chars\x20across\x20'+_0x366abd[_0x466009(0x260)]+_0x466009(0x259);return null;}catch{return null;}}function filterJsonMinify(_0x5730c7){const _0x5f1e7b=a0_0x41b3bf;try{const _0x553050=_0x5730c7['trim']();if(!_0x553050[_0x5f1e7b(0x27c)]('{')&&!_0x553050[_0x5f1e7b(0x27c)]('['))return null;const _0x462875=_0x553050[_0x5f1e7b(0x229)]('\x0a');if(_0x462875['length']<=0x14)return null;const _0x59c272=JSON[_0x5f1e7b(0x21e)](_0x553050),_0x387fdd=JSON[_0x5f1e7b(0x251)](_0x59c272);if(_0x387fdd[_0x5f1e7b(0x260)]<_0x553050[_0x5f1e7b(0x260)])return _0x387fdd;return null;}catch{return null;}}function filterLs(_0x2066b1){const _0x1ef58a=a0_0x41b3bf,_0xfb454e=_0x2066b1['split']('\x0a')[_0x1ef58a(0x201)](_0x55f2c7=>_0x55f2c7[_0x1ef58a(0x278)]()[_0x1ef58a(0x260)]>0x0);if(_0xfb454e[_0x1ef58a(0x260)]===0x0)return _0x1ef58a(0x27a);if(_0xfb454e['length']<=0x1e)return _0x2066b1[_0x1ef58a(0x278)]();const _0x2a9eea=[],_0xc6172f=[];for(const _0x23cd47 of _0xfb454e){const _0x5dc5f6=_0x23cd47[_0x1ef58a(0x278)]();if(_0x5dc5f6['startsWith']('total\x20')||_0x5dc5f6[_0x1ef58a(0x27c)]('d')&&_0x5dc5f6[_0x1ef58a(0x22d)]('..'))continue;_0x5dc5f6[_0x1ef58a(0x263)]('/')||_0x5dc5f6[_0x1ef58a(0x27c)]('d')&&_0x5dc5f6[_0x1ef58a(0x22d)]('\x20')?_0x2a9eea['push'](_0x5dc5f6):_0xc6172f[_0x1ef58a(0x1ef)](_0x5dc5f6);}const _0x45e706=[];return _0x2a9eea[_0x1ef58a(0x260)]>0x0&&(_0x2a9eea['length']<=0xf?_0x45e706[_0x1ef58a(0x1ef)](..._0x2a9eea):(_0x45e706['push'](..._0x2a9eea[_0x1ef58a(0x258)](0x0,0xa)),_0x45e706[_0x1ef58a(0x1ef)]('...\x20+'+(_0x2a9eea[_0x1ef58a(0x260)]-0xa)+_0x1ef58a(0x22c)))),_0xc6172f[_0x1ef58a(0x260)]>0x0&&(_0xc6172f[_0x1ef58a(0x260)]<=0x14?_0x45e706[_0x1ef58a(0x1ef)](..._0xc6172f):(_0x45e706[_0x1ef58a(0x1ef)](..._0xc6172f[_0x1ef58a(0x258)](0x0,0xf)),_0x45e706[_0x1ef58a(0x1ef)](_0x1ef58a(0x1f6)+(_0xc6172f[_0x1ef58a(0x260)]-0xf)+_0x1ef58a(0x25d)))),_0x45e706[_0x1ef58a(0x1ef)]('\x0a('+_0x2a9eea[_0x1ef58a(0x260)]+_0x1ef58a(0x200)+_0xc6172f[_0x1ef58a(0x260)]+_0x1ef58a(0x237)),_0x45e706[_0x1ef58a(0x25b)]('\x0a');}function filterTree(_0x106110){const _0x4834f0=a0_0x41b3bf,_0x519d87=_0x106110[_0x4834f0(0x229)]('\x0a');if(_0x519d87[_0x4834f0(0x260)]<=0x32)return _0x106110[_0x4834f0(0x278)]();const _0x43beec=[];let _0x371dad=0x0,_0x44d5e8=0x0,_0x129841=0x0;for(const _0x2b7c45 of _0x519d87){const _0x46fb49=_0x2b7c45[_0x4834f0(0x269)](/(\d+)\s+director/),_0x3cd02a=_0x2b7c45['match'](/(\d+)\s+file/);if(_0x46fb49)_0x129841=parseInt(_0x46fb49[0x1]);if(_0x3cd02a)_0x44d5e8=parseInt(_0x3cd02a[0x1]);const _0xe7eb24=(_0x2b7c45[_0x4834f0(0x269)](/^[│├└\s─]+/)||[''])[0x0][_0x4834f0(0x260)];_0xe7eb24<=0x4&&(_0x43beec[_0x4834f0(0x1ef)](_0x2b7c45),_0x371dad++);}return _0x519d87[_0x4834f0(0x260)]>_0x43beec[_0x4834f0(0x260)]&&_0x43beec[_0x4834f0(0x1ef)](_0x4834f0(0x221)+_0x129841+_0x4834f0(0x200)+_0x44d5e8+_0x4834f0(0x284)),_0x43beec[_0x4834f0(0x25b)]('\x0a');}function filterCat(_0x42d126,_0x425de2=''){const _0x992564=a0_0x41b3bf,_0x25c857=extractFilename(_0x425de2);try{if(_0x25c857&&isFeatureEnabled('lock')){const _0x3e7eab=filterLockFile(_0x42d126,_0x25c857);if(_0x3e7eab)return _0x3e7eab;}if(isFeatureEnabled(_0x992564(0x271))){const _0x66254f=filterBinaryOrMinified(_0x42d126,_0x25c857);if(_0x66254f)return _0x66254f;}if(isFeatureEnabled('json_crusher')){const _0x355a43=(0x0,generic_1['smartCrushJson'])(_0x42d126);if(_0x355a43)return _0x355a43;}const _0x51280d=filterJsonMinify(_0x42d126);if(_0x51280d)return _0x51280d;if(_0x25c857&&isFeatureEnabled(_0x992564(0x240))){const _0x1a2af7=path[_0x992564(0x253)](_0x25c857)[_0x992564(0x257)](),_0x23b02e=[_0x992564(0x21c),_0x992564(0x24b),_0x992564(0x227),_0x992564(0x24f),_0x992564(0x23f),_0x992564(0x1f0),_0x992564(0x27d),_0x992564(0x1fb),'.c','.cpp',_0x992564(0x21b),_0x992564(0x238),'.swift',_0x992564(0x222)];if(_0x23b02e[_0x992564(0x22d)](_0x1a2af7)){const _0xf4f91=_0x42d126[_0x992564(0x229)]('\x0a');if(_0xf4f91['length']>0x64){const _0x4d77fe=[];_0x4d77fe[_0x992564(0x1ef)]('[code\x20skeleton]\x20'+path[_0x992564(0x262)](_0x25c857)+'\x20('+_0xf4f91[_0x992564(0x260)]+'\x20lines)'),_0x4d77fe[_0x992564(0x1ef)]('');for(const _0x37c593 of _0xf4f91){const _0x413773=_0x37c593['trim']();if(_0x413773['startsWith'](_0x992564(0x21f))||_0x413773[_0x992564(0x27c)]('from\x20')||_0x413773[_0x992564(0x27c)](_0x992564(0x241))||_0x413773['match'](/=\s*require\(/)||_0x413773[_0x992564(0x27c)](_0x992564(0x283))||_0x413773['startsWith'](_0x992564(0x22b))||_0x413773['startsWith'](_0x992564(0x224)))_0x4d77fe[_0x992564(0x1ef)](_0x37c593);else{if(_0x413773[_0x992564(0x269)](/^(export\s+)?(async\s+)?function\s+/)||_0x413773[_0x992564(0x269)](/^(export\s+)?(default\s+)?class\s+/)||_0x413773[_0x992564(0x269)](/^(export\s+)?(type|interface|enum)\s+/)||_0x413773[_0x992564(0x269)](/^(async\s+)?def\s+/)||_0x413773[_0x992564(0x269)](/^func\s+/)||_0x413773[_0x992564(0x269)](/^type\s+\w+\s+(struct|interface)/)||_0x413773[_0x992564(0x269)](/^(pub\s+)?(async\s+)?fn\s+/)||_0x413773[_0x992564(0x269)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x413773[_0x992564(0x269)](/^(public|private|protected|static)\s+/))_0x4d77fe[_0x992564(0x1ef)](_0x37c593);else{if(_0x413773[_0x992564(0x27c)](_0x992564(0x270))&&!_0x413773['includes']('=>')&&_0x413773['length']<0x78)_0x4d77fe[_0x992564(0x1ef)](_0x37c593);else _0x413773['startsWith']('@')&&!_0x413773[_0x992564(0x27c)](_0x992564(0x209))&&!_0x413773[_0x992564(0x27c)](_0x992564(0x265))&&_0x4d77fe[_0x992564(0x1ef)](_0x37c593);}}}_0x4d77fe[_0x992564(0x1ef)](''),_0x4d77fe[_0x992564(0x1ef)]('('+_0xf4f91[_0x992564(0x260)]+_0x992564(0x254)+(_0x4d77fe[_0x992564(0x260)]-0x2)+_0x992564(0x25e));const _0x44148c=_0x4d77fe['join']('\x0a');if(_0x44148c[_0x992564(0x260)]<_0x42d126[_0x992564(0x260)])return _0x44148c;}}}}catch{}let _0x9514dc=(0x0,generic_1['collapseWhitespace'])(_0x42d126);if(_0x25c857){const _0x4b6d59=path[_0x992564(0x253)](_0x25c857)['toLowerCase']();_0x9514dc=(0x0,generic_1[_0x992564(0x26a)])(_0x9514dc,_0x4b6d59);}const _0x1f2a03=_0x9514dc[_0x992564(0x229)]('\x0a');if(_0x1f2a03[_0x992564(0x260)]<=0x64)return _0x9514dc;const _0x47b184=[];return _0x47b184[_0x992564(0x1ef)](..._0x1f2a03[_0x992564(0x258)](0x0,0x32)),_0x47b184['push'](_0x992564(0x247)+(_0x1f2a03['length']-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x47b184[_0x992564(0x1ef)](..._0x1f2a03[_0x992564(0x258)](-0x1e)),_0x47b184['push']('\x0a('+_0x1f2a03['length']+_0x992564(0x22f)),_0x47b184[_0x992564(0x25b)]('\x0a');}function filterGrep(_0xd903e6){const _0x3e4215=a0_0x41b3bf,_0x2a15b7=_0xd903e6[_0x3e4215(0x229)]('\x0a')[_0x3e4215(0x201)](_0x580c43=>_0x580c43[_0x3e4215(0x278)]()['length']>0x0);if(_0x2a15b7[_0x3e4215(0x260)]===0x0)return _0x3e4215(0x1f7);if(_0x2a15b7[_0x3e4215(0x260)]<=0x32)return _0xd903e6[_0x3e4215(0x278)]();const _0x2c0a33={},_0x4c178d=[];for(const _0x24d253 of _0x2a15b7){const _0x5033bb=_0x24d253[_0x3e4215(0x24e)](':');if(_0x5033bb>0x0&&_0x5033bb<0xc8){const _0x22bd00=_0x24d253[_0x3e4215(0x204)](0x0,_0x5033bb);if(_0x22bd00[_0x3e4215(0x22d)]('/')||_0x22bd00[_0x3e4215(0x22d)]('\x5c')||_0x22bd00[_0x3e4215(0x22d)]('.')){if(!_0x2c0a33[_0x22bd00])_0x2c0a33[_0x22bd00]=[];_0x2c0a33[_0x22bd00]['push'](_0x24d253[_0x3e4215(0x204)](_0x5033bb+0x1)['trim']());continue;}}_0x4c178d[_0x3e4215(0x1ef)](_0x24d253);}const _0x1189c6=[],_0xcb6577=Object[_0x3e4215(0x230)](_0x2c0a33);if(_0xcb6577[_0x3e4215(0x260)]>0x0){const _0x30ca8c=0x14,_0x4a3a55=_0xcb6577[_0x3e4215(0x258)](0x0,_0x30ca8c);for(const _0x413978 of _0x4a3a55){const _0x4bdc3=_0x2c0a33[_0x413978];if(_0x4bdc3['length']<=0x3)for(const _0x1c93d2 of _0x4bdc3){_0x1189c6[_0x3e4215(0x1ef)](_0x413978+':\x20'+_0x1c93d2);}else _0x1189c6[_0x3e4215(0x1ef)](_0x413978+':\x20'+_0x4bdc3[0x0]),_0x1189c6[_0x3e4215(0x1ef)](_0x413978+':\x20...\x20('+_0x4bdc3['length']+_0x3e4215(0x20f));}_0xcb6577[_0x3e4215(0x260)]>_0x30ca8c&&_0x1189c6[_0x3e4215(0x1ef)](_0x3e4215(0x1f6)+(_0xcb6577['length']-_0x30ca8c)+'\x20more\x20files\x20with\x20matches');}if(_0x4c178d[_0x3e4215(0x260)]>0x0){const _0x15c353=0x1e;_0x1189c6[_0x3e4215(0x1ef)](..._0x4c178d[_0x3e4215(0x258)](0x0,_0x15c353)),_0x4c178d[_0x3e4215(0x260)]>_0x15c353&&_0x1189c6[_0x3e4215(0x1ef)]('...\x20+'+(_0x4c178d['length']-_0x15c353)+_0x3e4215(0x20d));}const _0x6e1225=_0x2a15b7[_0x3e4215(0x260)];return _0x1189c6[_0x3e4215(0x1ef)]('\x0a('+_0x6e1225+_0x3e4215(0x244)+(_0xcb6577[_0x3e4215(0x260)]||'?')+_0x3e4215(0x237)),_0x1189c6['join']('\x0a');}function filterFind(_0x4deda4){const _0x43950d=a0_0x41b3bf,_0xf9dc9c=_0x4deda4[_0x43950d(0x229)]('\x0a')[_0x43950d(0x201)](_0x2bd7ac=>_0x2bd7ac[_0x43950d(0x278)]()['length']>0x0);if(_0xf9dc9c[_0x43950d(0x260)]===0x0)return _0x43950d(0x1ff);if(_0xf9dc9c[_0x43950d(0x260)]<=0x32)return _0x4deda4[_0x43950d(0x278)]();const _0x3fc37f={};for(const _0x3cb456 of _0xf9dc9c){const _0x1e5205=path[_0x43950d(0x24c)](_0x3cb456['trim']())||'.';_0x3fc37f[_0x1e5205]=(_0x3fc37f[_0x1e5205]||0x0)+0x1;}const _0x5d6c71=Object[_0x43950d(0x225)](_0x3fc37f)['sort']((_0x4cd6e4,_0x359dee)=>_0x359dee[0x1]-_0x4cd6e4[0x1]),_0x2f8e7b=[_0xf9dc9c[_0x43950d(0x260)]+_0x43950d(0x239)+_0x5d6c71[_0x43950d(0x260)]+'\x20directories',''],_0x2a0f2b=0x1e;for(const [_0x59bfe5,_0x4c25f2]of _0x5d6c71[_0x43950d(0x258)](0x0,_0x2a0f2b)){_0x2f8e7b['push']('\x20\x20'+_0x59bfe5+'/\x20('+_0x4c25f2+_0x43950d(0x237));}return _0x5d6c71[_0x43950d(0x260)]>_0x2a0f2b&&_0x2f8e7b[_0x43950d(0x1ef)](_0x43950d(0x215)+(_0x5d6c71[_0x43950d(0x260)]-_0x2a0f2b)+_0x43950d(0x22c)),_0x2f8e7b['join']('\x0a');}
|
|
1
|
+
'use strict';const a0_0x2e7eac=a0_0x2598;(function(_0x321bee,_0x185909){const _0x534d1a=a0_0x2598,_0x39a435=_0x321bee();while(!![]){try{const _0x144805=parseInt(_0x534d1a(0x16c))/0x1+-parseInt(_0x534d1a(0x1c1))/0x2*(parseInt(_0x534d1a(0x14c))/0x3)+parseInt(_0x534d1a(0x19f))/0x4*(parseInt(_0x534d1a(0x188))/0x5)+parseInt(_0x534d1a(0x1b6))/0x6*(-parseInt(_0x534d1a(0x157))/0x7)+-parseInt(_0x534d1a(0x149))/0x8+-parseInt(_0x534d1a(0x1bb))/0x9+-parseInt(_0x534d1a(0x1cd))/0xa*(-parseInt(_0x534d1a(0x1b3))/0xb);if(_0x144805===_0x185909)break;else _0x39a435['push'](_0x39a435['shift']());}catch(_0x3bd708){_0x39a435['push'](_0x39a435['shift']());}}}(a0_0x1cc0,0xc3d0d));var __createBinding=this&&this[a0_0x2e7eac(0x197)]||(Object[a0_0x2e7eac(0x14a)]?function(_0x409632,_0x5f3456,_0x547bf3,_0x596090){const _0x3471de=a0_0x2e7eac;if(_0x596090===undefined)_0x596090=_0x547bf3;var _0x2098e1=Object[_0x3471de(0x19c)](_0x5f3456,_0x547bf3);(!_0x2098e1||(_0x3471de(0x190)in _0x2098e1?!_0x5f3456['__esModule']:_0x2098e1[_0x3471de(0x15f)]||_0x2098e1['configurable']))&&(_0x2098e1={'enumerable':!![],'get':function(){return _0x5f3456[_0x547bf3];}}),Object['defineProperty'](_0x409632,_0x596090,_0x2098e1);}:function(_0x3b195b,_0x551200,_0x1440ff,_0x1209d7){if(_0x1209d7===undefined)_0x1209d7=_0x1440ff;_0x3b195b[_0x1209d7]=_0x551200[_0x1440ff];}),__setModuleDefault=this&&this[a0_0x2e7eac(0x16a)]||(Object['create']?function(_0x9f88ab,_0x571ff1){const _0x49b9cb=a0_0x2e7eac;Object[_0x49b9cb(0x1c3)](_0x9f88ab,'default',{'enumerable':!![],'value':_0x571ff1});}:function(_0x1c0261,_0x23122a){_0x1c0261['default']=_0x23122a;}),__importStar=this&&this[a0_0x2e7eac(0x172)]||(function(){var _0x472d1d=function(_0x325be2){const _0x5b7b30=a0_0x2598;return _0x472d1d=Object[_0x5b7b30(0x17f)]||function(_0x245d99){const _0x1724b0=_0x5b7b30;var _0x4b8e9a=[];for(var _0x1e2380 in _0x245d99)if(Object[_0x1724b0(0x1c9)][_0x1724b0(0x178)][_0x1724b0(0x154)](_0x245d99,_0x1e2380))_0x4b8e9a[_0x4b8e9a[_0x1724b0(0x17d)]]=_0x1e2380;return _0x4b8e9a;},_0x472d1d(_0x325be2);};return function(_0x5e92b4){const _0x1c68ea=a0_0x2598;if(_0x5e92b4&&_0x5e92b4[_0x1c68ea(0x15c)])return _0x5e92b4;var _0x578d4a={};if(_0x5e92b4!=null){for(var _0x35605e=_0x472d1d(_0x5e92b4),_0x48f144=0x0;_0x48f144<_0x35605e['length'];_0x48f144++)if(_0x35605e[_0x48f144]!==_0x1c68ea(0x18f))__createBinding(_0x578d4a,_0x5e92b4,_0x35605e[_0x48f144]);}return __setModuleDefault(_0x578d4a,_0x5e92b4),_0x578d4a;};}());Object[a0_0x2e7eac(0x1c3)](exports,a0_0x2e7eac(0x15c),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x2e7eac(0x198)]=filterTree,exports[a0_0x2e7eac(0x1a1)]=filterCat,exports['filterGrep']=filterGrep,exports[a0_0x2e7eac(0x162)]=filterFind;const path=__importStar(require('path')),generic_1=require(a0_0x2e7eac(0x176)),tracker_1=require(a0_0x2e7eac(0x185));function a0_0x1cc0(){const _0x8133af=['filter','Cargo.lock','packages','__setModuleDefault','push','685721KHyeFn','includes','.dll','\x0a...\x20[','.js','@param','__importStar','\x20matches\x20in\x20this\x20file)','\x20files\x20found\x20across\x20','.rar','./generic','charCodeAt','hasOwnProperty','[code\x20skeleton]\x20','.jsx','package-lock.json','slice','length','keys','getOwnPropertyNames','go.sum','\x20lines\x20total)','.wav','some','\x20files)','../tracker','#include\x20','.pyc','430085USMbTm','...\x20+','\x20matches\x20across\x20','.bin','/\x20(','\x20lines\x20total,\x20','\x20chars\x20across\x20','default','get','cargo.lock','.wasm','.eot','toLocaleString','[minified\x20file]\x20','.gz','__createBinding','filterTree','.mov','.pdf','composer.lock','getOwnPropertyDescriptor','\x20more\x20directories','sort','24bOuPhh','.tar.gz','filterCat','endsWith','stringify','from\x20','\x0a...\x20(','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','startsWith','poetry.lock','.sqlite','tracker','smartCrushJson','.woff','join','match','.bz2','\x20lines\x20truncated]\x20...\x0a','use\x20','.tsx','913UpqmlX','[binary/minified\x20file]\x20','\x20chars,\x20type:\x20','804YyAFlP','.dylib','parse','binary','\x20lines)','4698747AxyiiG','.avi','.obj','\x20directories','.pyo','.webm','1013250yNhKhn','pnpm-lock.yaml','defineProperty','.7z','.svg','.cpp','extname','indexOf','prototype','.webp','.swift','toLowerCase','358610vgDyCe','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','stripComments','entries','basename','.mp4','substring','\x20directories,\x20','@return','dependencies','floor','\x20structural\x20lines\x20shown)','.mp3','.otf','.map','.rs','6929408TtMIpY','create','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','6huYyzF','split','features_enabled','.woff2','No\x20files\x20found','.kt','.db','[lock\x20file]\x20','call','[binary\x20file]\x20','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','50918MAdYEg','.jpeg','.so','\x20more\x20files\x20with\x20matches','\x20more\x20files','__esModule','trim','yarn.lock','writable','.zip','.ttf','filterFind','.java','.ts','export\x20','.ico'];a0_0x1cc0=function(){return _0x8133af;};return a0_0x1cc0();}function isFeatureEnabled(_0x34f140){const _0x52a38b=a0_0x2e7eac;try{const _0x3aba01=tracker_1[_0x52a38b(0x1aa)]['getConfig'](),_0x428137=_0x3aba01[_0x52a38b(0x14e)];if(!_0x428137||_0x428137[_0x34f140]===undefined)return!![];return _0x428137[_0x34f140]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x2e7eac(0x17b),'yarn.lock',a0_0x2e7eac(0x1c2),a0_0x2e7eac(0x168),a0_0x2e7eac(0x180),'poetry.lock',a0_0x2e7eac(0x19b),'Gemfile.lock','bun.lockb'],BINARY_EXTENSIONS=['.min.js','.min.css',a0_0x2e7eac(0x147),a0_0x2e7eac(0x192),'.png','.jpg',a0_0x2e7eac(0x158),'.gif',a0_0x2e7eac(0x166),'.bmp',a0_0x2e7eac(0x1ca),a0_0x2e7eac(0x1c5),a0_0x2e7eac(0x19a),a0_0x2e7eac(0x160),a0_0x2e7eac(0x1a0),'.tgz',a0_0x2e7eac(0x196),a0_0x2e7eac(0x1af),a0_0x2e7eac(0x1c4),a0_0x2e7eac(0x175),'.exe',a0_0x2e7eac(0x16e),a0_0x2e7eac(0x159),a0_0x2e7eac(0x1b7),a0_0x2e7eac(0x18b),'.dat',a0_0x2e7eac(0x1a9),a0_0x2e7eac(0x152),'.sqlite3',a0_0x2e7eac(0x1ac),a0_0x2e7eac(0x14f),a0_0x2e7eac(0x161),a0_0x2e7eac(0x193),a0_0x2e7eac(0x146),a0_0x2e7eac(0x145),a0_0x2e7eac(0x1d2),a0_0x2e7eac(0x182),a0_0x2e7eac(0x1bc),a0_0x2e7eac(0x199),a0_0x2e7eac(0x1c0),a0_0x2e7eac(0x187),a0_0x2e7eac(0x1bf),'.class','.o',a0_0x2e7eac(0x1bd)];function extractFilename(_0x8d29e8){const _0xb55a10=a0_0x2e7eac,_0x3269d4=_0x8d29e8['trim']()['split'](/\s+/);for(let _0x4b27d0=0x1;_0x4b27d0<_0x3269d4[_0xb55a10(0x17d)];_0x4b27d0++){if(!_0x3269d4[_0x4b27d0][_0xb55a10(0x1a7)]('-'))return _0x3269d4[_0x4b27d0];}return null;}function a0_0x2598(_0x3ae449,_0xc0dfc6){_0x3ae449=_0x3ae449-0x145;const _0x1cc083=a0_0x1cc0();let _0x2598ac=_0x1cc083[_0x3ae449];return _0x2598ac;}function filterLockFile(_0x2bdd9b,_0x535e44){const _0x2177c9=a0_0x2e7eac;try{const _0x4ab5ae=path[_0x2177c9(0x1d1)](_0x535e44)[_0x2177c9(0x1cc)]();if(!LOCK_FILES[_0x2177c9(0x183)](_0x2b46f4=>_0x4ab5ae===_0x2b46f4[_0x2177c9(0x1cc)]()))return null;const _0x3d7f93=_0x2bdd9b[_0x2177c9(0x17d)];let _0x3a3a02=0x0;if(_0x4ab5ae===_0x2177c9(0x17b))try{const _0x4f5e36=JSON[_0x2177c9(0x1b8)](_0x2bdd9b);_0x3a3a02=Object[_0x2177c9(0x17e)](_0x4f5e36[_0x2177c9(0x169)]||_0x4f5e36[_0x2177c9(0x1d6)]||{})['length'];}catch{_0x3a3a02=(_0x2bdd9b[_0x2177c9(0x1ae)](/"resolved":/g)||[])[_0x2177c9(0x17d)];}else{if(_0x4ab5ae===_0x2177c9(0x15e))_0x3a3a02=(_0x2bdd9b[_0x2177c9(0x1ae)](/^"?[^#\s][^:]*:$/gm)||[])[_0x2177c9(0x17d)];else{if(_0x4ab5ae===_0x2177c9(0x191)||_0x4ab5ae===_0x2177c9(0x1a8))_0x3a3a02=(_0x2bdd9b[_0x2177c9(0x1ae)](/\[\[package\]\]/g)||[])[_0x2177c9(0x17d)];else{if(_0x4ab5ae===_0x2177c9(0x180))_0x3a3a02=Math[_0x2177c9(0x1d7)](_0x2bdd9b['split']('\x0a')[_0x2177c9(0x167)](_0x49cff2=>_0x49cff2[_0x2177c9(0x15d)]())[_0x2177c9(0x17d)]/0x2);else{if(_0x4ab5ae===_0x2177c9(0x19b))try{_0x3a3a02=JSON[_0x2177c9(0x1b8)](_0x2bdd9b)['packages']?.[_0x2177c9(0x17d)]||0x0;}catch{}else _0x4ab5ae==='pnpm-lock.yaml'?_0x3a3a02=(_0x2bdd9b[_0x2177c9(0x1ae)](/^\s{2}['"@a-z]/gm)||[])[_0x2177c9(0x17d)]:_0x3a3a02=_0x2bdd9b['split']('\x0a')[_0x2177c9(0x167)](_0x3be14f=>_0x3be14f['trim']())[_0x2177c9(0x17d)];}}}}return _0x2177c9(0x153)+path[_0x2177c9(0x1d1)](_0x535e44)+':\x20'+_0x3a3a02+'\x20dependencies,\x20'+_0x3d7f93[_0x2177c9(0x194)]()+_0x2177c9(0x156);}catch{return null;}}function filterBinaryOrMinified(_0x5bda69,_0x4feecf){const _0x7ab4a3=a0_0x2e7eac;try{if(_0x4feecf){const _0x126e0d=_0x4feecf[_0x7ab4a3(0x1cc)]();for(const _0x3eb5da of BINARY_EXTENSIONS){if(_0x126e0d['endsWith'](_0x3eb5da))return _0x7ab4a3(0x1b4)+path[_0x7ab4a3(0x1d1)](_0x4feecf)+',\x20'+_0x5bda69[_0x7ab4a3(0x17d)][_0x7ab4a3(0x194)]()+_0x7ab4a3(0x1b5)+_0x3eb5da+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x2f9472=_0x5bda69[_0x7ab4a3(0x1d3)](0x0,0x3e8);let _0x46a85a=0x0;for(let _0x28ca77=0x0;_0x28ca77<_0x2f9472['length'];_0x28ca77++){if(_0x2f9472[_0x7ab4a3(0x177)](_0x28ca77)===0x0)_0x46a85a++;}if(_0x46a85a>0x0)return _0x7ab4a3(0x155)+_0x5bda69[_0x7ab4a3(0x17d)][_0x7ab4a3(0x194)]()+'\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)';let _0x5486f6=0x0;for(let _0x3d818e=0x0;_0x3d818e<_0x2f9472[_0x7ab4a3(0x17d)];_0x3d818e++){const _0x3aafba=_0x2f9472[_0x7ab4a3(0x177)](_0x3d818e);if(_0x3aafba<0x20&&_0x3aafba!==0xa&&_0x3aafba!==0xd&&_0x3aafba!==0x9)_0x5486f6++;}if(_0x2f9472['length']>0x64&&_0x5486f6>_0x2f9472['length']*0.1)return'[binary\x20file]\x20'+_0x5bda69[_0x7ab4a3(0x17d)]['toLocaleString']()+_0x7ab4a3(0x14b);const _0xf2fbdd=_0x5bda69[_0x7ab4a3(0x14d)]('\x0a');if(_0xf2fbdd['length']<=0x3&&_0x5bda69[_0x7ab4a3(0x17d)]>0x1388)return _0x7ab4a3(0x195)+_0x5bda69['length'][_0x7ab4a3(0x194)]()+_0x7ab4a3(0x18e)+_0xf2fbdd[_0x7ab4a3(0x17d)]+_0x7ab4a3(0x1a6);return null;}catch{return null;}}function filterJsonMinify(_0x49a283){const _0x5698d7=a0_0x2e7eac;try{const _0x1f0c2d=_0x49a283[_0x5698d7(0x15d)]();if(!_0x1f0c2d[_0x5698d7(0x1a7)]('{')&&!_0x1f0c2d[_0x5698d7(0x1a7)]('['))return null;const _0x5733da=_0x1f0c2d[_0x5698d7(0x14d)]('\x0a');if(_0x5733da[_0x5698d7(0x17d)]<=0x14)return null;const _0x51d8c6=JSON[_0x5698d7(0x1b8)](_0x1f0c2d),_0x570974=JSON[_0x5698d7(0x1a3)](_0x51d8c6);if(_0x570974['length']<_0x1f0c2d[_0x5698d7(0x17d)])return _0x570974;return null;}catch{return null;}}function filterLs(_0x16093c){const _0x14b5af=a0_0x2e7eac,_0x28308b=_0x16093c['split']('\x0a')[_0x14b5af(0x167)](_0x165b14=>_0x165b14[_0x14b5af(0x15d)]()['length']>0x0);if(_0x28308b[_0x14b5af(0x17d)]===0x0)return'Empty\x20directory';if(_0x28308b[_0x14b5af(0x17d)]<=0x1e)return _0x16093c[_0x14b5af(0x15d)]();const _0x337623=[],_0x460dd2=[];for(const _0x6eccec of _0x28308b){const _0x1f06de=_0x6eccec[_0x14b5af(0x15d)]();if(_0x1f06de[_0x14b5af(0x1a7)]('total\x20')||_0x1f06de[_0x14b5af(0x1a7)]('d')&&_0x1f06de['includes']('..'))continue;_0x1f06de[_0x14b5af(0x1a2)]('/')||_0x1f06de[_0x14b5af(0x1a7)]('d')&&_0x1f06de['includes']('\x20')?_0x337623[_0x14b5af(0x16b)](_0x1f06de):_0x460dd2[_0x14b5af(0x16b)](_0x1f06de);}const _0x18efb8=[];return _0x337623[_0x14b5af(0x17d)]>0x0&&(_0x337623['length']<=0xf?_0x18efb8[_0x14b5af(0x16b)](..._0x337623):(_0x18efb8['push'](..._0x337623['slice'](0x0,0xa)),_0x18efb8[_0x14b5af(0x16b)](_0x14b5af(0x189)+(_0x337623[_0x14b5af(0x17d)]-0xa)+_0x14b5af(0x19d)))),_0x460dd2[_0x14b5af(0x17d)]>0x0&&(_0x460dd2['length']<=0x14?_0x18efb8[_0x14b5af(0x16b)](..._0x460dd2):(_0x18efb8[_0x14b5af(0x16b)](..._0x460dd2[_0x14b5af(0x17c)](0x0,0xf)),_0x18efb8[_0x14b5af(0x16b)](_0x14b5af(0x189)+(_0x460dd2['length']-0xf)+_0x14b5af(0x15b)))),_0x18efb8[_0x14b5af(0x16b)]('\x0a('+_0x337623[_0x14b5af(0x17d)]+_0x14b5af(0x1d4)+_0x460dd2[_0x14b5af(0x17d)]+_0x14b5af(0x184)),_0x18efb8[_0x14b5af(0x1ad)]('\x0a');}function filterTree(_0x43a58d){const _0x2ccd48=a0_0x2e7eac,_0x83e919=_0x43a58d[_0x2ccd48(0x14d)]('\x0a');if(_0x83e919['length']<=0x32)return _0x43a58d[_0x2ccd48(0x15d)]();const _0x57a559=[];let _0x7d1bf9=0x0,_0x65ea6c=0x0,_0x2e9ead=0x0;for(const _0x221909 of _0x83e919){const _0x1ef72b=_0x221909[_0x2ccd48(0x1ae)](/(\d+)\s+director/),_0x4ee26a=_0x221909[_0x2ccd48(0x1ae)](/(\d+)\s+file/);if(_0x1ef72b)_0x2e9ead=parseInt(_0x1ef72b[0x1]);if(_0x4ee26a)_0x65ea6c=parseInt(_0x4ee26a[0x1]);const _0x24aa2c=(_0x221909['match'](/^[│├└\s─]+/)||[''])[0x0][_0x2ccd48(0x17d)];_0x24aa2c<=0x4&&(_0x57a559[_0x2ccd48(0x16b)](_0x221909),_0x7d1bf9++);}return _0x83e919[_0x2ccd48(0x17d)]>_0x57a559['length']&&_0x57a559[_0x2ccd48(0x16b)](_0x2ccd48(0x1a5)+_0x2e9ead+_0x2ccd48(0x1d4)+_0x65ea6c+_0x2ccd48(0x1ce)),_0x57a559[_0x2ccd48(0x1ad)]('\x0a');}function filterCat(_0x3d9f37,_0x6e7faa=''){const _0x42a340=a0_0x2e7eac,_0x429ab2=extractFilename(_0x6e7faa);try{if(_0x429ab2&&isFeatureEnabled('lock')){const _0x398980=filterLockFile(_0x3d9f37,_0x429ab2);if(_0x398980)return _0x398980;}if(isFeatureEnabled(_0x42a340(0x1b9))){const _0x37e733=filterBinaryOrMinified(_0x3d9f37,_0x429ab2);if(_0x37e733)return _0x37e733;}if(isFeatureEnabled('json_crusher')){const _0x19844f=(0x0,generic_1[_0x42a340(0x1ab)])(_0x3d9f37);if(_0x19844f)return _0x19844f;}const _0x9d67ce=filterJsonMinify(_0x3d9f37);if(_0x9d67ce)return _0x9d67ce;if(_0x429ab2&&isFeatureEnabled('skeleton')){const _0x27c1e3=path[_0x42a340(0x1c7)](_0x429ab2)['toLowerCase'](),_0xb0fe99=[_0x42a340(0x164),_0x42a340(0x170),_0x42a340(0x1b2),_0x42a340(0x17a),'.py','.go',_0x42a340(0x148),_0x42a340(0x163),'.c',_0x42a340(0x1c6),'.cs','.rb',_0x42a340(0x1cb),_0x42a340(0x151)];if(_0xb0fe99['includes'](_0x27c1e3)){const _0x5987cc=_0x3d9f37[_0x42a340(0x14d)]('\x0a');if(_0x5987cc[_0x42a340(0x17d)]>0x64){const _0x5176f8=[];_0x5176f8['push'](_0x42a340(0x179)+path[_0x42a340(0x1d1)](_0x429ab2)+'\x20('+_0x5987cc['length']+_0x42a340(0x1ba)),_0x5176f8['push']('');for(const _0x1f2b67 of _0x5987cc){const _0x3d8df2=_0x1f2b67[_0x42a340(0x15d)]();if(_0x3d8df2[_0x42a340(0x1a7)]('import\x20')||_0x3d8df2['startsWith'](_0x42a340(0x1a4))||_0x3d8df2[_0x42a340(0x1a7)]('require(')||_0x3d8df2['match'](/=\s*require\(/)||_0x3d8df2[_0x42a340(0x1a7)](_0x42a340(0x186))||_0x3d8df2[_0x42a340(0x1a7)](_0x42a340(0x1b1))||_0x3d8df2['startsWith']('package\x20'))_0x5176f8['push'](_0x1f2b67);else{if(_0x3d8df2[_0x42a340(0x1ae)](/^(export\s+)?(async\s+)?function\s+/)||_0x3d8df2['match'](/^(export\s+)?(default\s+)?class\s+/)||_0x3d8df2[_0x42a340(0x1ae)](/^(export\s+)?(type|interface|enum)\s+/)||_0x3d8df2[_0x42a340(0x1ae)](/^(async\s+)?def\s+/)||_0x3d8df2['match'](/^func\s+/)||_0x3d8df2[_0x42a340(0x1ae)](/^type\s+\w+\s+(struct|interface)/)||_0x3d8df2['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x3d8df2[_0x42a340(0x1ae)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x3d8df2[_0x42a340(0x1ae)](/^(public|private|protected|static)\s+/))_0x5176f8[_0x42a340(0x16b)](_0x1f2b67);else{if(_0x3d8df2['startsWith'](_0x42a340(0x165))&&!_0x3d8df2['includes']('=>')&&_0x3d8df2[_0x42a340(0x17d)]<0x78)_0x5176f8[_0x42a340(0x16b)](_0x1f2b67);else _0x3d8df2[_0x42a340(0x1a7)]('@')&&!_0x3d8df2['startsWith'](_0x42a340(0x171))&&!_0x3d8df2[_0x42a340(0x1a7)](_0x42a340(0x1d5))&&_0x5176f8[_0x42a340(0x16b)](_0x1f2b67);}}}_0x5176f8['push'](''),_0x5176f8[_0x42a340(0x16b)]('('+_0x5987cc['length']+_0x42a340(0x18d)+(_0x5176f8[_0x42a340(0x17d)]-0x2)+_0x42a340(0x1d8));const _0x191b89=_0x5176f8[_0x42a340(0x1ad)]('\x0a');if(_0x191b89[_0x42a340(0x17d)]<_0x3d9f37['length'])return _0x191b89;}}}}catch{}let _0x1128a4=(0x0,generic_1['collapseWhitespace'])(_0x3d9f37);if(_0x429ab2){const _0x17046f=path['extname'](_0x429ab2)['toLowerCase']();_0x1128a4=(0x0,generic_1[_0x42a340(0x1cf)])(_0x1128a4,_0x17046f);}const _0x5065fd=_0x1128a4['split']('\x0a');if(_0x5065fd['length']<=0x64)return _0x1128a4;const _0x5d7ade=[];return _0x5d7ade[_0x42a340(0x16b)](..._0x5065fd[_0x42a340(0x17c)](0x0,0x32)),_0x5d7ade['push'](_0x42a340(0x16f)+(_0x5065fd[_0x42a340(0x17d)]-0x50)+_0x42a340(0x1b0)),_0x5d7ade[_0x42a340(0x16b)](..._0x5065fd[_0x42a340(0x17c)](-0x1e)),_0x5d7ade[_0x42a340(0x16b)]('\x0a('+_0x5065fd['length']+_0x42a340(0x181)),_0x5d7ade[_0x42a340(0x1ad)]('\x0a');}function filterGrep(_0x2b81b0){const _0x3c3e37=a0_0x2e7eac,_0x148b0d=_0x2b81b0[_0x3c3e37(0x14d)]('\x0a')[_0x3c3e37(0x167)](_0x28c268=>_0x28c268[_0x3c3e37(0x15d)]()[_0x3c3e37(0x17d)]>0x0);if(_0x148b0d['length']===0x0)return'No\x20matches\x20found';if(_0x148b0d[_0x3c3e37(0x17d)]<=0x32)return _0x2b81b0['trim']();const _0x4160c0={},_0x6c2aa5=[];for(const _0x5ec18e of _0x148b0d){const _0x5d61b6=_0x5ec18e[_0x3c3e37(0x1c8)](':');if(_0x5d61b6>0x0&&_0x5d61b6<0xc8){const _0x202a52=_0x5ec18e['substring'](0x0,_0x5d61b6);if(_0x202a52['includes']('/')||_0x202a52['includes']('\x5c')||_0x202a52[_0x3c3e37(0x16d)]('.')){if(!_0x4160c0[_0x202a52])_0x4160c0[_0x202a52]=[];_0x4160c0[_0x202a52]['push'](_0x5ec18e[_0x3c3e37(0x1d3)](_0x5d61b6+0x1)[_0x3c3e37(0x15d)]());continue;}}_0x6c2aa5[_0x3c3e37(0x16b)](_0x5ec18e);}const _0xc8a604=[],_0xd72b4a=Object[_0x3c3e37(0x17e)](_0x4160c0);if(_0xd72b4a[_0x3c3e37(0x17d)]>0x0){const _0x268b85=0x14,_0x11f12a=_0xd72b4a[_0x3c3e37(0x17c)](0x0,_0x268b85);for(const _0x65b136 of _0x11f12a){const _0x1f1234=_0x4160c0[_0x65b136];if(_0x1f1234[_0x3c3e37(0x17d)]<=0x3)for(const _0x5bcdda of _0x1f1234){_0xc8a604[_0x3c3e37(0x16b)](_0x65b136+':\x20'+_0x5bcdda);}else _0xc8a604['push'](_0x65b136+':\x20'+_0x1f1234[0x0]),_0xc8a604['push'](_0x65b136+':\x20...\x20('+_0x1f1234['length']+_0x3c3e37(0x173));}_0xd72b4a[_0x3c3e37(0x17d)]>_0x268b85&&_0xc8a604['push'](_0x3c3e37(0x189)+(_0xd72b4a[_0x3c3e37(0x17d)]-_0x268b85)+_0x3c3e37(0x15a));}if(_0x6c2aa5['length']>0x0){const _0x5948ed=0x1e;_0xc8a604['push'](..._0x6c2aa5[_0x3c3e37(0x17c)](0x0,_0x5948ed)),_0x6c2aa5[_0x3c3e37(0x17d)]>_0x5948ed&&_0xc8a604[_0x3c3e37(0x16b)](_0x3c3e37(0x189)+(_0x6c2aa5[_0x3c3e37(0x17d)]-_0x5948ed)+'\x20more\x20matches');}const _0x5ee13a=_0x148b0d[_0x3c3e37(0x17d)];return _0xc8a604['push']('\x0a('+_0x5ee13a+_0x3c3e37(0x18a)+(_0xd72b4a[_0x3c3e37(0x17d)]||'?')+'\x20files)'),_0xc8a604[_0x3c3e37(0x1ad)]('\x0a');}function filterFind(_0x2d6320){const _0x5ecdb3=a0_0x2e7eac,_0x271551=_0x2d6320[_0x5ecdb3(0x14d)]('\x0a')['filter'](_0x26a9ed=>_0x26a9ed['trim']()[_0x5ecdb3(0x17d)]>0x0);if(_0x271551['length']===0x0)return _0x5ecdb3(0x150);if(_0x271551[_0x5ecdb3(0x17d)]<=0x32)return _0x2d6320['trim']();const _0x12a0f9={};for(const _0xc2c740 of _0x271551){const _0xa9e0a5=path['dirname'](_0xc2c740[_0x5ecdb3(0x15d)]())||'.';_0x12a0f9[_0xa9e0a5]=(_0x12a0f9[_0xa9e0a5]||0x0)+0x1;}const _0x5f11ea=Object[_0x5ecdb3(0x1d0)](_0x12a0f9)[_0x5ecdb3(0x19e)]((_0xef7bd2,_0x204053)=>_0x204053[0x1]-_0xef7bd2[0x1]),_0x4ed9f9=[_0x271551[_0x5ecdb3(0x17d)]+_0x5ecdb3(0x174)+_0x5f11ea['length']+_0x5ecdb3(0x1be),''],_0x1dba1e=0x1e;for(const [_0x4141ec,_0x22661d]of _0x5f11ea[_0x5ecdb3(0x17c)](0x0,_0x1dba1e)){_0x4ed9f9['push']('\x20\x20'+_0x4141ec+_0x5ecdb3(0x18c)+_0x22661d+'\x20files)');}return _0x5f11ea[_0x5ecdb3(0x17d)]>_0x1dba1e&&_0x4ed9f9[_0x5ecdb3(0x16b)]('\x20\x20...\x20+'+(_0x5f11ea[_0x5ecdb3(0x17d)]-_0x1dba1e)+_0x5ecdb3(0x19d)),_0x4ed9f9[_0x5ecdb3(0x1ad)]('\x0a');}
|
package/hooks/claude-hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var a0_0x32a588=a0_0xefe8;(function(_0x33b589,_0x1d017e){var _0x4d64f8=a0_0xefe8,_0x269fda=_0x33b589();while(!![]){try{var _0x5ae5cd=parseInt(_0x4d64f8(0x7f))/0x1*(parseInt(_0x4d64f8(0x91))/0x2)+-parseInt(_0x4d64f8(0x94))/0x3*(parseInt(_0x4d64f8(0x8e))/0x4)+parseInt(_0x4d64f8(0x93))/0x5*(-parseInt(_0x4d64f8(0x92))/0x6)+-parseInt(_0x4d64f8(0x85))/0x7+-parseInt(_0x4d64f8(0x8a))/0x8+-parseInt(_0x4d64f8(0x7e))/0x9*(parseInt(_0x4d64f8(0x75))/0xa)+parseInt(_0x4d64f8(0x7a))/0xb;if(_0x5ae5cd===_0x1d017e)break;else _0x269fda['push'](_0x269fda['shift']());}catch(_0x20dcf6){_0x269fda['push'](_0x269fda['shift']());}}}(a0_0x5bed,0xb01c0));function a0_0xefe8(_0x58f642,_0x1bb120){_0x58f642=_0x58f642-0x74;var _0x5bed8c=a0_0x5bed();var _0xefe88c=_0x5bed8c[_0x58f642];return _0xefe88c;}var __createBinding=this&&this['__createBinding']||(Object[a0_0x32a588(0x7c)]?function(_0x4b8564,_0x5cdaf4,_0x55196f,_0x46d90a){var _0x4ecd63=a0_0x32a588;if(_0x46d90a===undefined)_0x46d90a=_0x55196f;var _0x32a5df=Object[_0x4ecd63(0x7b)](_0x5cdaf4,_0x55196f);(!_0x32a5df||('get'in _0x32a5df?!_0x5cdaf4[_0x4ecd63(0x7d)]:_0x32a5df[_0x4ecd63(0x86)]||_0x32a5df['configurable']))&&(_0x32a5df={'enumerable':!![],'get':function(){return _0x5cdaf4[_0x55196f];}}),Object[_0x4ecd63(0x8b)](_0x4b8564,_0x46d90a,_0x32a5df);}:function(_0x419b43,_0x545b46,_0x4d83ce,_0x3eae72){if(_0x3eae72===undefined)_0x3eae72=_0x4d83ce;_0x419b43[_0x3eae72]=_0x545b46[_0x4d83ce];}),__setModuleDefault=this&&this[a0_0x32a588(0x90)]||(Object[a0_0x32a588(0x7c)]?function(_0x5bd32b,_0x529661){Object['defineProperty'](_0x5bd32b,'default',{'enumerable':!![],'value':_0x529661});}:function(_0x352e02,_0x3a8e5){_0x352e02['default']=_0x3a8e5;}),__importStar=this&&this[a0_0x32a588(0x74)]||(function(){var _0x2f9080=function(_0x523e81){var _0x4f6e38=a0_0xefe8;return _0x2f9080=Object[_0x4f6e38(0x82)]||function(_0x4e35a4){var _0x4b4a4a=_0x4f6e38,_0x575b6d=[];for(var _0x336542 in _0x4e35a4)if(Object[_0x4b4a4a(0x77)][_0x4b4a4a(0x79)][_0x4b4a4a(0x83)](_0x4e35a4,_0x336542))_0x575b6d[_0x575b6d['length']]=_0x336542;return _0x575b6d;},_0x2f9080(_0x523e81);};return function(_0x311609){var _0x2087c5=a0_0xefe8;if(_0x311609&&_0x311609[_0x2087c5(0x7d)])return _0x311609;var _0x1bcbfe={};if(_0x311609!=null){for(var _0x2dc1ac=_0x2f9080(_0x311609),_0x10722d=0x0;_0x10722d<_0x2dc1ac[_0x2087c5(0x81)];_0x10722d++)if(_0x2dc1ac[_0x10722d]!==_0x2087c5(0x84))__createBinding(_0x1bcbfe,_0x311609,_0x2dc1ac[_0x10722d]);}return __setModuleDefault(_0x1bcbfe,_0x311609),_0x1bcbfe;};}());function a0_0x5bed(){var _0x11e736=['post_tool_use.js','hasOwnProperty','39506489JrToxL','getOwnPropertyDescriptor','create','__esModule','81feprOX','1031523WCkSxm','existsSync','length','getOwnPropertyNames','call','default','9337426TMGtdm','writable','join','hooks','utf8','9169472BvGWOk','defineProperty','homedir','path','724qSZYUf','.claude','__setModuleDefault','2BedACV','306BVSCyJ','13190pXVQmi','4407paSLul','__importStar','1134610gZNYIv','writeFileSync','prototype'];a0_0x5bed=function(){return _0x11e736;};return a0_0x5bed();}Object[a0_0x32a588(0x8b)](exports,a0_0x32a588(0x7d),{'value':!![]}),exports['installClaudeHooks']=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x32a588(0x8d))),os=__importStar(require('os'));function installClaudeHooks(){var _0x3f6f2b=a0_0x32a588;try{const _0x512756=path[_0x3f6f2b(0x87)](os[_0x3f6f2b(0x8c)](),_0x3f6f2b(0x8f),_0x3f6f2b(0x88));!fs[_0x3f6f2b(0x80)](_0x512756)&&fs['mkdirSync'](_0x512756,{'recursive':!![]});const _0x51740f=path[_0x3f6f2b(0x87)](_0x512756,_0x3f6f2b(0x78)),_0x4aae9b='//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a';fs[_0x3f6f2b(0x76)](_0x51740f,_0x4aae9b,_0x3f6f2b(0x89));}catch(_0x27223c){}}
|
|
1
|
+
'use strict';var a0_0x4ab647=a0_0x1288;(function(_0x3cbf55,_0x40dc5a){var _0x5826e4=a0_0x1288,_0x5d52d9=_0x3cbf55();while(!![]){try{var _0x1f6055=parseInt(_0x5826e4(0xab))/0x1*(-parseInt(_0x5826e4(0x9e))/0x2)+parseInt(_0x5826e4(0xa8))/0x3+-parseInt(_0x5826e4(0x95))/0x4+-parseInt(_0x5826e4(0x97))/0x5*(parseInt(_0x5826e4(0x9b))/0x6)+-parseInt(_0x5826e4(0xa4))/0x7*(-parseInt(_0x5826e4(0xa3))/0x8)+parseInt(_0x5826e4(0xaf))/0x9*(-parseInt(_0x5826e4(0xae))/0xa)+-parseInt(_0x5826e4(0x9f))/0xb*(-parseInt(_0x5826e4(0xa1))/0xc);if(_0x1f6055===_0x40dc5a)break;else _0x5d52d9['push'](_0x5d52d9['shift']());}catch(_0x451be6){_0x5d52d9['push'](_0x5d52d9['shift']());}}}(a0_0x12fc,0x35082));function a0_0x1288(_0x5c3c84,_0x5dc6d4){_0x5c3c84=_0x5c3c84-0x8f;var _0x12fc8e=a0_0x12fc();var _0x1288f8=_0x12fc8e[_0x5c3c84];return _0x1288f8;}var __createBinding=this&&this[a0_0x4ab647(0xa7)]||(Object[a0_0x4ab647(0x93)]?function(_0x3fd63c,_0x593ca5,_0x2244a0,_0x19f4da){var _0x35c44f=a0_0x4ab647;if(_0x19f4da===undefined)_0x19f4da=_0x2244a0;var _0x1210c5=Object[_0x35c44f(0xa0)](_0x593ca5,_0x2244a0);(!_0x1210c5||(_0x35c44f(0xa5)in _0x1210c5?!_0x593ca5[_0x35c44f(0x98)]:_0x1210c5['writable']||_0x1210c5[_0x35c44f(0x90)]))&&(_0x1210c5={'enumerable':!![],'get':function(){return _0x593ca5[_0x2244a0];}}),Object['defineProperty'](_0x3fd63c,_0x19f4da,_0x1210c5);}:function(_0x124cfd,_0xc1a191,_0x3c938a,_0x598e61){if(_0x598e61===undefined)_0x598e61=_0x3c938a;_0x124cfd[_0x598e61]=_0xc1a191[_0x3c938a];}),__setModuleDefault=this&&this[a0_0x4ab647(0x9d)]||(Object[a0_0x4ab647(0x93)]?function(_0x3c3904,_0x1aec00){var _0x19be98=a0_0x4ab647;Object[_0x19be98(0x91)](_0x3c3904,_0x19be98(0x8f),{'enumerable':!![],'value':_0x1aec00});}:function(_0x402ea9,_0x181b5f){var _0x197bb2=a0_0x4ab647;_0x402ea9[_0x197bb2(0x8f)]=_0x181b5f;}),__importStar=this&&this['__importStar']||(function(){var _0x34e4cc=function(_0x5b7ebd){var _0x3cb6a7=a0_0x1288;return _0x34e4cc=Object[_0x3cb6a7(0x99)]||function(_0x337729){var _0x98d2f8=_0x3cb6a7,_0xf6bbf0=[];for(var _0x2b1692 in _0x337729)if(Object[_0x98d2f8(0xa9)][_0x98d2f8(0x92)]['call'](_0x337729,_0x2b1692))_0xf6bbf0[_0xf6bbf0[_0x98d2f8(0xad)]]=_0x2b1692;return _0xf6bbf0;},_0x34e4cc(_0x5b7ebd);};return function(_0x174c00){var _0x5e7c39=a0_0x1288;if(_0x174c00&&_0x174c00[_0x5e7c39(0x98)])return _0x174c00;var _0x211395={};if(_0x174c00!=null){for(var _0x5844d2=_0x34e4cc(_0x174c00),_0x41f48e=0x0;_0x41f48e<_0x5844d2['length'];_0x41f48e++)if(_0x5844d2[_0x41f48e]!==_0x5e7c39(0x8f))__createBinding(_0x211395,_0x174c00,_0x5844d2[_0x41f48e]);}return __setModuleDefault(_0x211395,_0x174c00),_0x211395;};}());Object[a0_0x4ab647(0x91)](exports,'__esModule',{'value':!![]}),exports[a0_0x4ab647(0x96)]=installClaudeHooks;function a0_0x12fc(){var _0x553ce3=['__esModule','getOwnPropertyNames','homedir','55218JLrZcx','existsSync','__setModuleDefault','2AVnAhF','2685672FaAwNS','getOwnPropertyDescriptor','36fJmEqa','//\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','616jTguTf','3878wNgaCI','get','post_tool_use.js','__createBinding','1186476hqJTAE','prototype','writeFileSync','53503YXxHcy','.claude','length','10fmgrNV','720945CrbDAL','default','configurable','defineProperty','hasOwnProperty','create','join','1585768ramwlL','installClaudeHooks','230zkaanY'];a0_0x12fc=function(){return _0x553ce3;};return a0_0x12fc();}const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os'));function installClaudeHooks(){var _0x54afe9=a0_0x4ab647;try{const _0x1a8294=path[_0x54afe9(0x94)](os[_0x54afe9(0x9a)](),_0x54afe9(0xac),'hooks');!fs[_0x54afe9(0x9c)](_0x1a8294)&&fs['mkdirSync'](_0x1a8294,{'recursive':!![]});const _0x31cf4b=path[_0x54afe9(0x94)](_0x1a8294,_0x54afe9(0xa6)),_0x28b526=_0x54afe9(0xa2);fs[_0x54afe9(0xaa)](_0x31cf4b,_0x28b526,'utf8');}catch(_0x205d4e){}}
|