trimprompt 1.0.42 → 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.
@@ -1 +1 @@
1
- 'use strict';const a0_0x3ebd86=a0_0x6065;(function(_0x57f31b,_0x2a9190){const _0x54ddef=a0_0x6065,_0x244674=_0x57f31b();while(!![]){try{const _0x420086=-parseInt(_0x54ddef(0x18e))/0x1*(parseInt(_0x54ddef(0x198))/0x2)+-parseInt(_0x54ddef(0x188))/0x3+parseInt(_0x54ddef(0x191))/0x4+parseInt(_0x54ddef(0x192))/0x5+-parseInt(_0x54ddef(0x1ab))/0x6+parseInt(_0x54ddef(0x1b1))/0x7*(parseInt(_0x54ddef(0x1a0))/0x8)+parseInt(_0x54ddef(0x195))/0x9;if(_0x420086===_0x2a9190)break;else _0x244674['push'](_0x244674['shift']());}catch(_0x188a78){_0x244674['push'](_0x244674['shift']());}}}(a0_0x31b7,0xd6abf));function a0_0x6065(_0x50076a,_0x5ebec7){_0x50076a=_0x50076a-0x186;const _0x31b769=a0_0x31b7();let _0x6065b8=_0x31b769[_0x50076a];return _0x6065b8;}Object[a0_0x3ebd86(0x1a9)](exports,'__esModule',{'value':!![]}),exports[a0_0x3ebd86(0x1ae)]=stripAnsi,exports[a0_0x3ebd86(0x187)]=collapseDuplicates,exports[a0_0x3ebd86(0x197)]=collapseWhitespace,exports['stripComments']=stripComments,exports[a0_0x3ebd86(0x19c)]=smartCrushJson,exports[a0_0x3ebd86(0x190)]=softTruncate;function a0_0x31b7(){const _0x1a9dac=['\x20items,\x20','map','stripAnsi','repository','sha','7014945GkKWiU','stringify','...\x20+','length','trim','dev','collapseDuplicates','3587040ZBjeQD','\x20key\x20fields)','\x20[x','checksum','join','funding','8kfdgGU','slice','softTruncate','277156USjjvS','5915625PkZspL','startsWith','includes','1405062NvqjXS','engines','collapseWhitespace','12134sYSnHh','replace','substring','push','smartCrushJson','min','split','object','8HLYPku','resolved','filter','\x0a...\x20[TrimPrompt:\x20Truncated\x20','\x20characters\x20of\x20output]\x20...\x0a','integrity','parse','hash','toLowerCase','defineProperty','test','1722936ulbnCE'];a0_0x31b7=function(){return _0x1a9dac;};return a0_0x31b7();}function stripAnsi(_0x50a48d){const _0x1da695=a0_0x3ebd86,_0x2a61af=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x50a48d[_0x1da695(0x199)](_0x2a61af,'');}function collapseDuplicates(_0x29299b){const _0x553330=a0_0x3ebd86,_0x395997=_0x29299b['split']('\x0a');if(_0x395997[_0x553330(0x1b4)]<=0x1)return _0x29299b;const _0x419968=[];let _0x320474=_0x395997[0x0],_0x4e4bf8=0x1;for(let _0x4ded94=0x1;_0x4ded94<_0x395997['length'];_0x4ded94++){const _0x309d45=_0x395997[_0x4ded94];_0x309d45===_0x320474&&_0x309d45[_0x553330(0x1b5)]()[_0x553330(0x1b4)]>0x0?_0x4e4bf8++:(_0x4e4bf8>0x1?_0x419968['push'](_0x320474+_0x553330(0x18a)+_0x4e4bf8+']'):_0x419968['push'](_0x320474),_0x320474=_0x309d45,_0x4e4bf8=0x1);}return _0x4e4bf8>0x1?_0x419968[_0x553330(0x19b)](_0x320474+_0x553330(0x18a)+_0x4e4bf8+']'):_0x419968[_0x553330(0x19b)](_0x320474),_0x419968[_0x553330(0x18c)]('\x0a');}function collapseWhitespace(_0x5095d5){const _0x4d6dc3=a0_0x3ebd86;let _0x1e1352=_0x5095d5[_0x4d6dc3(0x199)](/[ \t]+$/gm,'');return _0x1e1352=_0x1e1352[_0x4d6dc3(0x199)](/\n{4,}/g,'\x0a\x0a\x0a'),_0x1e1352;}function stripComments(_0x5c7288,_0x10cea5){const _0x5b8e66=a0_0x3ebd86;if(!_0x10cea5)return _0x5c7288;const _0x54aeb6=_0x5c7288['split']('\x0a');if(_0x54aeb6[_0x5b8e66(0x1b4)]<=0x96)return _0x5c7288;const _0x5096be={'.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*#(?!!)/},_0xb3d9d9=_0x5096be[_0x10cea5[_0x5b8e66(0x1a8)]()];if(!_0xb3d9d9)return _0x5c7288;const _0x5c9ab9=_0x54aeb6[_0x5b8e66(0x1a2)](_0x152a73=>!_0xb3d9d9[_0x5b8e66(0x1aa)](_0x152a73));return _0x5c9ab9[_0x5b8e66(0x18c)]('\x0a');}function smartCrushJson(_0x116b01){const _0x10af19=a0_0x3ebd86;try{const _0x5bbb50=_0x116b01['trim']();if(!_0x5bbb50[_0x10af19(0x193)]('['))return null;const _0x696172=JSON[_0x10af19(0x1a6)](_0x5bbb50);if(!Array['isArray'](_0x696172)||_0x696172['length']<0x3)return null;if(typeof _0x696172[0x0]!==_0x10af19(0x19f)||_0x696172[0x0]===null)return null;const _0x58bbaa=Object['keys'](_0x696172[0x0]);if(_0x58bbaa['length']===0x0)return null;const _0x2019ee=_0x58bbaa['filter'](_0x220270=>{const _0x1adfae=_0x10af19,_0x4024be=_0x220270[_0x1adfae(0x1a8)]();return!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x1a1))&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x1a5))&&!_0x4024be['includes'](_0x1adfae(0x1b0))&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x1a7))&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x18b))&&!_0x4024be[_0x1adfae(0x194)]('signature')&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x186))&&_0x4024be!==_0x1adfae(0x18d)&&_0x4024be!==_0x1adfae(0x196)&&_0x4024be!=='bugs'&&_0x4024be!==_0x1adfae(0x1af);})['slice'](0x0,0x6);if(_0x2019ee['length']===0x0)return null;const _0x451472=[];_0x451472[_0x10af19(0x19b)](_0x2019ee[_0x10af19(0x18c)]('|'));const _0x3e58b6=0x1e;for(let _0x24beed=0x0;_0x24beed<Math[_0x10af19(0x19d)](_0x696172[_0x10af19(0x1b4)],_0x3e58b6);_0x24beed++){const _0x5b2385=_0x2019ee[_0x10af19(0x1ad)](_0x3d53e8=>{const _0x8e77c6=_0x10af19,_0x54e2d1=_0x696172[_0x24beed][_0x3d53e8];if(_0x54e2d1===null||_0x54e2d1===undefined)return'';if(typeof _0x54e2d1===_0x8e77c6(0x19f))return JSON[_0x8e77c6(0x1b2)](_0x54e2d1)[_0x8e77c6(0x19a)](0x0,0x28);return String(_0x54e2d1)[_0x8e77c6(0x19a)](0x0,0x3c);});_0x451472['push'](_0x5b2385[_0x10af19(0x18c)]('|'));}_0x696172[_0x10af19(0x1b4)]>_0x3e58b6&&_0x451472[_0x10af19(0x19b)](_0x10af19(0x1b3)+(_0x696172[_0x10af19(0x1b4)]-_0x3e58b6)+'\x20more\x20rows');_0x451472[_0x10af19(0x19b)]('\x0a('+_0x696172[_0x10af19(0x1b4)]+_0x10af19(0x1ac)+_0x58bbaa[_0x10af19(0x1b4)]+'\x20fields,\x20showing\x20'+_0x2019ee[_0x10af19(0x1b4)]+_0x10af19(0x189));const _0x23bee4=_0x451472['join']('\x0a');if(_0x23bee4[_0x10af19(0x1b4)]<_0x5bbb50[_0x10af19(0x1b4)])return _0x23bee4;return null;}catch{return null;}}function softTruncate(_0x10e2e0,_0x51bb0f=0x4e20){const _0x23c208=a0_0x3ebd86;if(_0x10e2e0['length']<=_0x51bb0f)return _0x10e2e0;const _0x20dd58=_0x10e2e0[_0x23c208(0x19e)]('\x0a');if(_0x20dd58[_0x23c208(0x1b4)]<=0xc8)return _0x10e2e0;const _0x95f6a8=0x32,_0x3ce41f=0x96,_0xf806dc=_0x20dd58['slice'](0x0,_0x95f6a8),_0x44046f=_0x20dd58[_0x23c208(0x18f)](_0x20dd58[_0x23c208(0x1b4)]-_0x3ce41f),_0x247134=_0x10e2e0[_0x23c208(0x1b4)]-(_0xf806dc[_0x23c208(0x18c)]('\x0a')['length']+_0x44046f['join']('\x0a')[_0x23c208(0x1b4)]);return[..._0xf806dc,_0x23c208(0x1a3)+_0x247134+_0x23c208(0x1a4),..._0x44046f][_0x23c208(0x18c)]('\x0a');}
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 a0_0x1d3380=a0_0x4f4e;function a0_0x369e(){const _0x2ecb45=['\x20\x20...\x20(+','99fgeOIO','\x20lines\x20of\x20description)','configurable','1953904oxFaNJ','[file]\x20','1726431rDUDzj','basename','push','1656IMnqXQ','\x0aChanges:','slice','filterGitStatus','defineProperty','20GPKZBY','8QGXkOx','2237191KVfXuJ','\x20more\x20modifications','---','prototype','substring','path','trim','split','Clean\x20working\x20tree','\x20untracked\x20files)','__setModuleDefault','dirname','+++','default','map','\x20\x20??\x20','filter','\x20(+','__importStar','entries','__createBinding','getOwnPropertyDescriptor','45730rfjXNX','startsWith','3351nGXHTn','2780JRMmba','*\x20Branch:\x20','unknown_file','getOwnPropertyNames','create','length','13814rsTLcm','48EiMTlS','__esModule','\x20\x20...\x20+','join','No\x20modifications','/\x20(','diff\x20--git'];a0_0x369e=function(){return _0x2ecb45;};return a0_0x369e();}(function(_0xf81185,_0x30f818){const _0x39fb38=a0_0x4f4e,_0x49b0e8=_0xf81185();while(!![]){try{const _0x195f27=-parseInt(_0x39fb38(0x1cd))/0x1*(-parseInt(_0x39fb38(0x1ed))/0x2)+parseInt(_0x39fb38(0x1e6))/0x3*(parseInt(_0x39fb38(0x1cc))/0x4)+-parseInt(_0x39fb38(0x1e7))/0x5*(parseInt(_0x39fb38(0x1c7))/0x6)+-parseInt(_0x39fb38(0x1fb))/0x7+-parseInt(_0x39fb38(0x1f9))/0x8+-parseInt(_0x39fb38(0x1f6))/0x9*(parseInt(_0x39fb38(0x1e4))/0xa)+parseInt(_0x39fb38(0x1ce))/0xb*(parseInt(_0x39fb38(0x1ee))/0xc);if(_0x195f27===_0x30f818)break;else _0x49b0e8['push'](_0x49b0e8['shift']());}catch(_0x11e83d){_0x49b0e8['push'](_0x49b0e8['shift']());}}}(a0_0x369e,0x2be17));var __createBinding=this&&this[a0_0x1d3380(0x1e2)]||(Object[a0_0x1d3380(0x1eb)]?function(_0x1740e4,_0x305c19,_0x50aa70,_0x10d043){const _0x421cad=a0_0x1d3380;if(_0x10d043===undefined)_0x10d043=_0x50aa70;var _0x3f00b6=Object[_0x421cad(0x1e3)](_0x305c19,_0x50aa70);(!_0x3f00b6||('get'in _0x3f00b6?!_0x305c19['__esModule']:_0x3f00b6['writable']||_0x3f00b6[_0x421cad(0x1f8)]))&&(_0x3f00b6={'enumerable':!![],'get':function(){return _0x305c19[_0x50aa70];}}),Object[_0x421cad(0x1cb)](_0x1740e4,_0x10d043,_0x3f00b6);}:function(_0x58df25,_0xb85dc0,_0x13f5b7,_0x3e2600){if(_0x3e2600===undefined)_0x3e2600=_0x13f5b7;_0x58df25[_0x3e2600]=_0xb85dc0[_0x13f5b7];}),__setModuleDefault=this&&this[a0_0x1d3380(0x1d8)]||(Object[a0_0x1d3380(0x1eb)]?function(_0x78ee65,_0x537761){const _0x3455a2=a0_0x1d3380;Object[_0x3455a2(0x1cb)](_0x78ee65,_0x3455a2(0x1db),{'enumerable':!![],'value':_0x537761});}:function(_0x3921b7,_0x45900a){_0x3921b7['default']=_0x45900a;}),__importStar=this&&this[a0_0x1d3380(0x1e0)]||(function(){var _0xadfad3=function(_0x234200){const _0x201f8e=a0_0x4f4e;return _0xadfad3=Object[_0x201f8e(0x1ea)]||function(_0x453eb8){const _0x50f47f=_0x201f8e;var _0x4e53b9=[];for(var _0x544126 in _0x453eb8)if(Object[_0x50f47f(0x1d1)]['hasOwnProperty']['call'](_0x453eb8,_0x544126))_0x4e53b9[_0x4e53b9[_0x50f47f(0x1ec)]]=_0x544126;return _0x4e53b9;},_0xadfad3(_0x234200);};return function(_0x5680db){const _0x457e0b=a0_0x4f4e;if(_0x5680db&&_0x5680db[_0x457e0b(0x1ef)])return _0x5680db;var _0x263200={};if(_0x5680db!=null){for(var _0x5f00bf=_0xadfad3(_0x5680db),_0x33c58a=0x0;_0x33c58a<_0x5f00bf[_0x457e0b(0x1ec)];_0x33c58a++)if(_0x5f00bf[_0x33c58a]!==_0x457e0b(0x1db))__createBinding(_0x263200,_0x5680db,_0x5f00bf[_0x33c58a]);}return __setModuleDefault(_0x263200,_0x5680db),_0x263200;};}());Object['defineProperty'](exports,a0_0x1d3380(0x1ef),{'value':!![]}),exports[a0_0x1d3380(0x1ca)]=filterGitStatus,exports['filterGitLog']=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x1d3380(0x1d3)));function filterGitStatus(_0xc0e3f4){const _0x28528a=a0_0x1d3380,_0x48da27=_0xc0e3f4[_0x28528a(0x1d5)]('\x0a')[_0x28528a(0x1dc)](_0x36ac8d=>_0x36ac8d[_0x28528a(0x1d4)]())['filter'](_0x1dcabc=>_0x1dcabc['length']>0x0);if(_0x48da27[_0x28528a(0x1ec)]===0x0)return _0x28528a(0x1d6);const _0x31df23=[],_0x35304f=[],_0xe8871f=[];for(const _0x1725e4 of _0x48da27){if(_0x1725e4[_0x28528a(0x1e5)]('##')){const _0x178249=_0x1725e4['replace'](/^##\s*/,'');_0x31df23['push'](_0x28528a(0x1e8)+_0x178249);}else _0x1725e4[_0x28528a(0x1e5)]('??')?_0x35304f['push'](_0x1725e4[_0x28528a(0x1d2)](0x3)[_0x28528a(0x1d4)]()):_0xe8871f['push'](_0x1725e4);}_0xe8871f[_0x28528a(0x1ec)]>0x0&&(_0x31df23[_0x28528a(0x1fd)](_0x28528a(0x1c8)),_0x31df23[_0x28528a(0x1fd)](..._0xe8871f[_0x28528a(0x1dc)](_0xa11a21=>'\x20\x20'+_0xa11a21)));if(_0x35304f[_0x28528a(0x1ec)]>0x0){_0x31df23[_0x28528a(0x1fd)]('\x0aUntracked\x20files:');const _0x500b2f={},_0x4b1ef9=[];for(const _0xdd71a of _0x35304f){const _0x3e0720=path[_0x28528a(0x1d9)](_0xdd71a);_0x3e0720==='.'||_0x3e0720===''?_0x4b1ef9['push'](_0xdd71a):(!_0x500b2f[_0x3e0720]&&(_0x500b2f[_0x3e0720]=[]),_0x500b2f[_0x3e0720][_0x28528a(0x1fd)](path[_0x28528a(0x1fc)](_0xdd71a)));}for(const [_0x22c2d8,_0x2a6be2]of Object[_0x28528a(0x1e1)](_0x500b2f)){if(_0x2a6be2[_0x28528a(0x1ec)]>0x5)_0x31df23[_0x28528a(0x1fd)](_0x28528a(0x1dd)+_0x22c2d8+_0x28528a(0x1f3)+_0x2a6be2[_0x28528a(0x1ec)]+_0x28528a(0x1d7));else for(const _0x47f3e3 of _0x2a6be2){_0x31df23['push'](_0x28528a(0x1dd)+path[_0x28528a(0x1f1)](_0x22c2d8,_0x47f3e3));}}for(const _0x34e088 of _0x4b1ef9){_0x31df23[_0x28528a(0x1fd)](_0x28528a(0x1dd)+_0x34e088);}}return _0x31df23['join']('\x0a');}function filterGitLog(_0x585d2e){const _0x5ed42a=a0_0x1d3380,_0x25a164=_0x585d2e['split']('---END---')['map'](_0x1375e5=>_0x1375e5[_0x5ed42a(0x1d4)]())['filter'](_0x352ad1=>_0x352ad1['length']>0x0);if(_0x25a164['length']===0x0)return _0x585d2e;const _0x5d2056=[];for(const _0x4d0f7f of _0x25a164){const _0x18f40d=_0x4d0f7f[_0x5ed42a(0x1d5)]('\x0a'),_0x2db5fe=_0x18f40d[0x0]||'',_0x5627e3=_0x18f40d[_0x5ed42a(0x1c9)](0x1)[_0x5ed42a(0x1dc)](_0x403b32=>_0x403b32[_0x5ed42a(0x1d4)]())[_0x5ed42a(0x1de)](_0x1a4a5f=>_0x1a4a5f[_0x5ed42a(0x1ec)]>0x0);_0x5d2056['push']('-\x20'+_0x2db5fe),_0x5627e3[_0x5ed42a(0x1ec)]>0x0&&(_0x5d2056[_0x5ed42a(0x1fd)]('\x20\x20'+_0x5627e3[0x0]),_0x5627e3[_0x5ed42a(0x1ec)]>0x1&&_0x5d2056[_0x5ed42a(0x1fd)](_0x5ed42a(0x1f5)+(_0x5627e3[_0x5ed42a(0x1ec)]-0x1)+_0x5ed42a(0x1f7)));}return _0x5d2056[_0x5ed42a(0x1f1)]('\x0a');}function a0_0x4f4e(_0x771280,_0x550ea0){_0x771280=_0x771280-0x1c7;const _0x369e40=a0_0x369e();let _0x4f4e76=_0x369e40[_0x771280];return _0x4f4e76;}function filterGitDiff(_0x2d8a38){const _0x3bb7fa=a0_0x1d3380,_0x4354c6=_0x2d8a38[_0x3bb7fa(0x1d5)]('\x0a'),_0x3b1f01=[];let _0x5abc1c='',_0x5cdce5=0x0,_0x20653f=0x0,_0x2d4796=[];const _0x4bcd45=()=>{const _0x1be134=_0x3bb7fa;if(_0x5abc1c&&(_0x5cdce5>0x0||_0x20653f>0x0)){_0x3b1f01['push'](_0x1be134(0x1fa)+_0x5abc1c+_0x1be134(0x1df)+_0x5cdce5+'\x20-'+_0x20653f+')');const _0x45909e=0xa,_0x1c375b=_0x2d4796[_0x1be134(0x1c9)](0x0,_0x45909e);for(const _0x5d5b2b of _0x1c375b){_0x3b1f01[_0x1be134(0x1fd)]('\x20\x20'+_0x5d5b2b);}const _0x5ec2af=_0x5cdce5+_0x20653f-_0x45909e;_0x5ec2af>0x0&&_0x3b1f01[_0x1be134(0x1fd)](_0x1be134(0x1f0)+_0x5ec2af+_0x1be134(0x1cf));}_0x5cdce5=0x0,_0x20653f=0x0,_0x2d4796=[];};for(const _0x1d73ed of _0x4354c6){if(_0x1d73ed[_0x3bb7fa(0x1e5)](_0x3bb7fa(0x1f4))){_0x4bcd45();const _0x131eb1=_0x1d73ed['match'](/\sb\/(.+)$/);_0x5abc1c=_0x131eb1?_0x131eb1[0x1]:_0x3bb7fa(0x1e9);}else{if(_0x1d73ed[_0x3bb7fa(0x1e5)]('+')&&!_0x1d73ed[_0x3bb7fa(0x1e5)](_0x3bb7fa(0x1da)))_0x5cdce5++,_0x2d4796[_0x3bb7fa(0x1fd)](_0x1d73ed);else _0x1d73ed[_0x3bb7fa(0x1e5)]('-')&&!_0x1d73ed['startsWith'](_0x3bb7fa(0x1d0))&&(_0x20653f++,_0x2d4796[_0x3bb7fa(0x1fd)](_0x1d73ed));}}_0x4bcd45();const _0x5a01b1=_0x3b1f01[_0x3bb7fa(0x1f1)]('\x0a');return _0x5a01b1[_0x3bb7fa(0x1ec)]>0x0?_0x5a01b1:_0x3bb7fa(0x1f2);}
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';function a0_0x51fe(_0x105442,_0x3b7968){_0x105442=_0x105442-0x1b8;const _0x50f160=a0_0x50f1();let _0x51fe6b=_0x50f160[_0x105442];return _0x51fe6b;}const a0_0x4a6118=a0_0x51fe;(function(_0x354d66,_0x576a2b){const _0x22a4c6=a0_0x51fe,_0x730062=_0x354d66();while(!![]){try{const _0x2a1849=parseInt(_0x22a4c6(0x1b9))/0x1*(parseInt(_0x22a4c6(0x1d8))/0x2)+-parseInt(_0x22a4c6(0x1c0))/0x3+-parseInt(_0x22a4c6(0x1c7))/0x4+-parseInt(_0x22a4c6(0x1c6))/0x5+-parseInt(_0x22a4c6(0x1e2))/0x6*(-parseInt(_0x22a4c6(0x1d6))/0x7)+parseInt(_0x22a4c6(0x1e0))/0x8+-parseInt(_0x22a4c6(0x1bf))/0x9*(-parseInt(_0x22a4c6(0x1c4))/0xa);if(_0x2a1849===_0x576a2b)break;else _0x730062['push'](_0x730062['shift']());}catch(_0x4c542c){_0x730062['push'](_0x730062['shift']());}}}(a0_0x50f1,0x72830));Object[a0_0x4a6118(0x1d9)](exports,'__esModule',{'value':!![]}),exports[a0_0x4a6118(0x1cb)]=filterGoTest,exports['filterGoVet']=filterGoVet;function a0_0x50f1(){const _0x4ce9e6=['\x20\x20\x20\x20','push','trim','PASS','match','5747440icglfx','\x20more\x20failures','50574qQSYvj','includes','5hvSekl','startsWith','lines','split','slice','\x20more\x20issues','40923QbtbWm','1329252ZNZONh','Go\x20vet:\x20','Go\x20test:\x20','\x20issues\x20found','2180MIQabF','\x20skipped','834210BvyWOE','2969348amWstV','Go\x20test:\x20no\x20test\x20files','\x20failed,\x20','\x0aFailures:','filterGoTest','FAIL','\x20passed','Go\x20test:\x20all\x20tests\x20passed','\x20\x20...\x20+','===\x20RUN','\x20passed,\x20','join','min','length','\x20more\x20lines','91xvMLLN','---\x20SKIP:','820LnvqoY','defineProperty','filter'];a0_0x50f1=function(){return _0x4ce9e6;};return a0_0x50f1();}function filterGoTest(_0x4d6e37){const _0x3c1451=a0_0x4a6118,_0x6b193e=_0x4d6e37[_0x3c1451(0x1bc)]('\x0a');let _0x16e369=0x0,_0x28dbb8=0x0,_0x9f05cd=0x0;const _0x2d6d6c=[],_0x49a0b2=[];let _0x1f6524=null;for(const _0xb53f3f of _0x6b193e){const _0x17a0ca=_0xb53f3f['trim'](),_0xf01596=_0x17a0ca[_0x3c1451(0x1df)](/^ok\s+\S+\s+[\d.]+s/);if(_0xf01596){_0x49a0b2['push'](_0x17a0ca);continue;}const _0x3a90ea=_0x17a0ca[_0x3c1451(0x1df)](/^FAIL\s+\S+/);if(_0x3a90ea){_0x49a0b2['push'](_0x17a0ca);continue;}const _0x140810=_0x17a0ca[_0x3c1451(0x1df)](/^--- PASS:/);if(_0x140810){_0x16e369++;continue;}const _0x28e60a=_0x17a0ca['match'](/^--- FAIL:\s+(\S+)/);if(_0x28e60a){if(_0x1f6524)_0x2d6d6c[_0x3c1451(0x1dc)](_0x1f6524);_0x1f6524={'name':_0x28e60a[0x1],'lines':[]},_0x28dbb8++;continue;}if(_0x17a0ca[_0x3c1451(0x1ba)](_0x3c1451(0x1d7))){_0x9f05cd++;continue;}_0x1f6524&&_0x17a0ca[_0x3c1451(0x1d4)]>0x0&&!_0x17a0ca[_0x3c1451(0x1ba)]('===\x20RUN')&&_0x1f6524['lines'][_0x3c1451(0x1dc)](_0xb53f3f),_0x17a0ca['startsWith'](_0x3c1451(0x1d0))&&(_0x1f6524&&(_0x2d6d6c[_0x3c1451(0x1dc)](_0x1f6524),_0x1f6524=null));}if(_0x1f6524)_0x2d6d6c[_0x3c1451(0x1dc)](_0x1f6524);if(_0x16e369===0x0&&_0x28dbb8===0x0&&_0x9f05cd===0x0){if(_0x4d6e37[_0x3c1451(0x1b8)](_0x3c1451(0x1de))&&!_0x4d6e37[_0x3c1451(0x1b8)](_0x3c1451(0x1cc)))return _0x3c1451(0x1ce);if(_0x4d6e37[_0x3c1451(0x1b8)]('no\x20test\x20files'))return _0x3c1451(0x1c8);return _0x4d6e37;}if(_0x28dbb8===0x0){const _0x183441=[_0x3c1451(0x1c2)+_0x16e369+_0x3c1451(0x1cd)];if(_0x9f05cd>0x0)_0x183441[_0x3c1451(0x1dc)](_0x9f05cd+_0x3c1451(0x1c5));return _0x183441[_0x3c1451(0x1d2)](',\x20');}const _0x5f3bb0=[_0x3c1451(0x1c2)+_0x16e369+_0x3c1451(0x1d1)+_0x28dbb8+_0x3c1451(0x1c9)+_0x9f05cd+_0x3c1451(0x1c5)];if(_0x2d6d6c[_0x3c1451(0x1d4)]>0x0){_0x5f3bb0[_0x3c1451(0x1dc)](_0x3c1451(0x1ca));const _0x230d4d=0x3;for(let _0x2eba37=0x0;_0x2eba37<Math[_0x3c1451(0x1d3)](_0x2d6d6c[_0x3c1451(0x1d4)],_0x230d4d);_0x2eba37++){const _0x33f57b=_0x2d6d6c[_0x2eba37];_0x5f3bb0[_0x3c1451(0x1dc)]('\x20\x20'+(_0x2eba37+0x1)+'.\x20'+_0x33f57b['name']);for(const _0x4961c7 of _0x33f57b[_0x3c1451(0x1bb)]['slice'](0x0,0x5)){_0x5f3bb0[_0x3c1451(0x1dc)](_0x3c1451(0x1db)+_0x4961c7[_0x3c1451(0x1dd)]());}_0x33f57b[_0x3c1451(0x1bb)][_0x3c1451(0x1d4)]>0x5&&_0x5f3bb0[_0x3c1451(0x1dc)]('\x20\x20\x20\x20...\x20+'+(_0x33f57b[_0x3c1451(0x1bb)][_0x3c1451(0x1d4)]-0x5)+_0x3c1451(0x1d5));}_0x2d6d6c['length']>_0x230d4d&&_0x5f3bb0[_0x3c1451(0x1dc)](_0x3c1451(0x1cf)+(_0x2d6d6c[_0x3c1451(0x1d4)]-_0x230d4d)+_0x3c1451(0x1e1));}return _0x5f3bb0[_0x3c1451(0x1d2)]('\x0a');}function filterGoVet(_0x5367e6){const _0x27701d=a0_0x4a6118,_0x1eae87=_0x5367e6[_0x27701d(0x1bc)]('\x0a')[_0x27701d(0x1da)](_0x6c5ea6=>_0x6c5ea6[_0x27701d(0x1dd)]()[_0x27701d(0x1d4)]>0x0);if(_0x1eae87['length']===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x1eae87[_0x27701d(0x1d4)]<=0x14)return _0x5367e6[_0x27701d(0x1dd)]();const _0xe4010e=[_0x27701d(0x1c1)+_0x1eae87[_0x27701d(0x1d4)]+_0x27701d(0x1c3)];return _0xe4010e[_0x27701d(0x1dc)](..._0x1eae87[_0x27701d(0x1bd)](0x0,0xa)),_0x1eae87['length']>0xa&&_0xe4010e[_0x27701d(0x1dc)]('...\x20+'+(_0x1eae87[_0x27701d(0x1d4)]-0xa)+_0x27701d(0x1be)),_0xe4010e['join']('\x0a');}
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_0x435292=a0_0x257b;(function(_0x18c151,_0x579bd3){const _0x3abecd=a0_0x257b,_0x170069=_0x18c151();while(!![]){try{const _0x551e75=parseInt(_0x3abecd(0x258))/0x1*(-parseInt(_0x3abecd(0x246))/0x2)+-parseInt(_0x3abecd(0x242))/0x3+-parseInt(_0x3abecd(0x1ff))/0x4*(-parseInt(_0x3abecd(0x20d))/0x5)+-parseInt(_0x3abecd(0x235))/0x6+-parseInt(_0x3abecd(0x234))/0x7*(-parseInt(_0x3abecd(0x203))/0x8)+-parseInt(_0x3abecd(0x250))/0x9*(parseInt(_0x3abecd(0x21d))/0xa)+parseInt(_0x3abecd(0x221))/0xb;if(_0x551e75===_0x579bd3)break;else _0x170069['push'](_0x170069['shift']());}catch(_0x30f41b){_0x170069['push'](_0x170069['shift']());}}}(a0_0x101d,0x7ef85));Object[a0_0x435292(0x217)](exports,a0_0x435292(0x1ef),{'value':!![]}),exports['lastFeatures']=exports[a0_0x435292(0x22a)]=void 0x0,exports[a0_0x435292(0x241)]=compressOutput,exports[a0_0x435292(0x230)]=rewriteCommand;const generic_1=require(a0_0x435292(0x233)),git_1=require(a0_0x435292(0x220)),python_1=require(a0_0x435292(0x20f)),js_1=require(a0_0x435292(0x23b)),shell_1=require('./shell'),rust_1=require(a0_0x435292(0x215)),go_1=require(a0_0x435292(0x21e)),devops_1=require(a0_0x435292(0x208)),redactor_1=require('../redactor'),tracker_1=require('../tracker');exports[a0_0x435292(0x22a)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x435292(0x1f9)]=[];function isFeatureEnabled(_0x432c78){const _0x10deb9=a0_0x435292;try{const _0xcbf01a=tracker_1[_0x10deb9(0x24f)][_0x10deb9(0x257)](),_0x287b20=_0xcbf01a['features_enabled'];if(!_0x287b20||_0x287b20[_0x432c78]===undefined)return!![];return _0x287b20[_0x432c78]!==![];}catch{return!![];}}function compressOutput(_0x3e8902,_0x2a37b9,_0x3bb29c,_0x219d42=!![]){const _0x4c2663=a0_0x435292,_0x298a55=_0x3e8902[_0x4c2663(0x228)]();let _0x264969=_0x2a37b9;_0x3bb29c[_0x4c2663(0x228)]()[_0x4c2663(0x207)]>0x0&&(_0x264969=_0x2a37b9+'\x0a'+_0x3bb29c);let _0x302439=isFeatureEnabled(_0x4c2663(0x216))?(0x0,generic_1[_0x4c2663(0x205)])(_0x264969):_0x264969;const _0x187491=[];if(_0x302439['length']<_0x264969[_0x4c2663(0x207)])_0x187491['push']('ansi_strip');const _0x2579b3=(_0x8a3ef8,_0x8ac28a)=>{const _0x37bfc7=_0x4c2663;return _0x187491[_0x37bfc7(0x23d)](_0x8a3ef8),exports[_0x37bfc7(0x1f9)]=_0x187491,_0x8ac28a;};if(_0x219d42&&isFeatureEnabled('redact')){const _0x57c443=redactor_1[_0x4c2663(0x23e)][_0x4c2663(0x251)](_0x302439);_0x302439=_0x57c443['text'],exports[_0x4c2663(0x22a)]={'secretsFound':_0x57c443[_0x4c2663(0x21a)],'secretTypes':_0x57c443[_0x4c2663(0x1f0)]};if(_0x57c443['secretsFound']>0x0)_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x21c));}else exports[_0x4c2663(0x22a)]={'secretsFound':0x0,'secretTypes':[]};const _0x31b0b2=_0x298a55[_0x4c2663(0x20c)](),_0x3d3f80=isFeatureEnabled(_0x4c2663(0x1f8));try{if(_0x3d3f80){if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x204))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1ee)))return _0x2579b3('filter',(0x0,git_1[_0x4c2663(0x227)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x212))||_0x31b0b2[_0x4c2663(0x200)]('yadm\x20log'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,git_1['filterGitLog'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x210))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x23f))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x21f)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,git_1['filterGitDiff'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22e))||_0x31b0b2['match'](/python3?\s+-m\s+pytest/))return _0x2579b3(_0x4c2663(0x1f8),(0x0,python_1[_0x4c2663(0x224)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1f1))||_0x31b0b2['includes'](_0x4c2663(0x1f6)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,python_1[_0x4c2663(0x238)])(_0x302439));if(_0x31b0b2['includes']('ruff\x20check')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x226)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,devops_1['filterRuff'])(_0x302439));if(_0x31b0b2['includes']('npm\x20install')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22f))||_0x31b0b2['endsWith'](_0x4c2663(0x248))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x20b))||_0x31b0b2[_0x4c2663(0x200)]('yarn\x20install'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1['filterNpmInstall'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x240))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x252)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1[_0x4c2663(0x1f4)])(_0x302439));if(_0x31b0b2['includes'](_0x4c2663(0x23c))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x245))||_0x31b0b2['includes']('yarn\x20test')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x231)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1[_0x4c2663(0x1f4)])(_0x302439));if(_0x31b0b2['includes'](_0x4c2663(0x206)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,rust_1[_0x4c2663(0x229)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1fb))||_0x31b0b2['includes'](_0x4c2663(0x211))||_0x31b0b2['includes']('cargo\x20clippy'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,rust_1[_0x4c2663(0x218)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)]('go\x20test'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,go_1['filterGoTest'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22b)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,go_1['filterGoVet'])(_0x302439));if(_0x31b0b2['match'](/docker\s+ps/))return _0x2579b3('filter',(0x0,devops_1[_0x4c2663(0x247)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/docker\s+images/))return _0x2579b3('filter',(0x0,devops_1[_0x4c2663(0x24e)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/docker\s+logs/))return _0x2579b3('filter',(0x0,devops_1['filterDockerLogs'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1fc))){const _0x273380=_0x31b0b2[_0x4c2663(0x24d)](/kubectl\s+(get|logs|describe|apply)/),_0x2c2050=_0x273380?_0x273380[0x1]:_0x4c2663(0x20e);return _0x2579b3(_0x4c2663(0x1f8),(0x0,devops_1[_0x4c2663(0x236)])(_0x302439,_0x2c2050));}if(_0x31b0b2[_0x4c2663(0x24d)](/^(ls|dir)(\s|$)/)||_0x31b0b2['includes'](_0x4c2663(0x22d))||_0x31b0b2[_0x4c2663(0x243)](_0x4c2663(0x219)))return _0x2579b3('filter',(0x0,shell_1[_0x4c2663(0x24c)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^tree(\s|$)/)||_0x31b0b2[_0x4c2663(0x200)]('\x20tree\x20')||_0x31b0b2['endsWith']('\x20tree'))return _0x2579b3('filter',(0x0,shell_1[_0x4c2663(0x209)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x24e0a3=(0x0,shell_1['filterCat'])(_0x302439,_0x298a55);if(_0x24e0a3[_0x4c2663(0x200)](_0x4c2663(0x20a)))_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x1f5));else{if(_0x24e0a3['includes'](_0x4c2663(0x256))||_0x24e0a3[_0x4c2663(0x200)]('[minified\x20file]'))_0x187491[_0x4c2663(0x23d)]('binary');else{if(_0x24e0a3['includes'](_0x4c2663(0x1f7)))_0x187491[_0x4c2663(0x23d)]('skeleton');else{if(_0x24e0a3[_0x4c2663(0x200)]('|\x20')&&_0x24e0a3['includes'](_0x4c2663(0x1fa))&&_0x24e0a3[_0x4c2663(0x207)]<_0x302439[_0x4c2663(0x207)]*0.5)_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x21b));else{if(_0x24e0a3[_0x4c2663(0x200)]('lines\x20truncated'))_0x187491['push'](_0x4c2663(0x1f8));}}}}if(_0x24e0a3['length']<_0x302439[_0x4c2663(0x207)]&&!_0x187491[_0x4c2663(0x237)](_0x4ca836=>_0x4ca836!==_0x4c2663(0x216)&&_0x4ca836!==_0x4c2663(0x21c)))_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x1f8));return exports['lastFeatures']=_0x187491,_0x24e0a3;}if(_0x31b0b2[_0x4c2663(0x24d)](/^find(\s|$)/))return _0x2579b3('filter',(0x0,shell_1['filterFind'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^(grep|rg|ripgrep)(\s|$)/))return _0x2579b3(_0x4c2663(0x1f8),(0x0,shell_1[_0x4c2663(0x23a)])(_0x302439));}}catch(_0x2c5e37){}return isFeatureEnabled(_0x4c2663(0x1fd))&&(_0x302439=(0x0,generic_1[_0x4c2663(0x1fe)])(_0x302439),_0x187491['push'](_0x4c2663(0x1fd))),_0x302439=(0x0,generic_1[_0x4c2663(0x232)])(_0x302439),_0x302439=(0x0,generic_1[_0x4c2663(0x1f3)])(_0x302439,0x4e20),exports[_0x4c2663(0x1f9)]=_0x187491,_0x302439;}function a0_0x257b(_0x4d53a,_0x59d846){_0x4d53a=_0x4d53a-0x1ee;const _0x101d04=a0_0x101d();let _0x257b43=_0x101d04[_0x4d53a];return _0x257b43;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x435292(0x254)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x435292(0x24a)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x435292(0x22c)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x435292(0x244)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x435292(0x255)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x435292(0x213)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x435292(0x1f2)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x435292(0x201)},{'pattern':/^find\s+/,'prefix':a0_0x435292(0x202)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x435292(0x249)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x435292(0x239)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x435292(0x253)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x435292(0x24b)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x435292(0x222)},{'pattern':/^go\s+(test|build|vet)/,'prefix':'trim\x20go'}];function a0_0x101d(){const _0xd14b47=['pip3\x20install','[code\x20skeleton]','filter','lastFeatures','---','cargo\x20build','kubectl','whitespace','collapseWhitespace','56UfIdfn','includes','trim\x20tree','trim\x20find','680SURsGQ','git\x20status','stripAnsi','cargo\x20test','length','./devops','filterTree','[lock\x20file]','pnpm\x20install','toLowerCase','144465KpkIiS','get','./python','git\x20diff','cargo\x20check','git\x20log','trim\x20read','pattern','./rust','ansi_strip','defineProperty','filterCargoBuild','\x20ls','secretsFound','json_crusher','redact','15440LPlNOA','./go','yadm\x20diff','./git','13796684UowLze','trim\x20pip','test','filterPytest','trim\x20','ruff\x20','filterGitStatus','trim','filterCargoTest','lastRedactAudit','go\x20vet','trim\x20cargo','\x20ls\x20','pytest','npm\x20i\x20','rewriteCommand','npm\x20run\x20test','collapseDuplicates','./generic','81046ZtjAxu','2587446wEsqbY','filterKubectl','some','filterPipInstall','trim\x20kubectl','filterGrep','./js','npm\x20test','push','redactor','git\x20show','jest','compressOutput','2052666iWaTnD','endsWith','trim\x20pnpm','pnpm\x20test','8EtGRvM','filterDockerPs','npm\x20i','trim\x20docker','trim\x20glab','trim\x20ruff','filterLs','match','filterDockerImages','tracker','2763EeKkqP','redactWithAudit','vitest','trim\x20pytest','trim\x20git','trim\x20npm','[binary','getConfig','133334wbLLmk','startsWith','yadm\x20status','__esModule','secretTypes','pip\x20install','trim\x20ls','softTruncate','filterJestVitest','lock'];a0_0x101d=function(){return _0xd14b47;};return a0_0x101d();}function rewriteCommand(_0x58f2c2){const _0x3f9819=a0_0x435292,_0x12a849=_0x58f2c2[_0x3f9819(0x228)]();if(_0x12a849[_0x3f9819(0x259)](_0x3f9819(0x225)))return _0x12a849;for(const _0xdc38fb of REWRITE_RULES){if(_0xdc38fb[_0x3f9819(0x214)][_0x3f9819(0x223)](_0x12a849))return'trim\x20'+_0x12a849;}return _0x12a849;}
1
+ 'use strict';const a0_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 a0_0x47ceb8=a0_0x3b87;(function(_0x19cff3,_0xded03c){const _0x5c2692=a0_0x3b87,_0x2ac90e=_0x19cff3();while(!![]){try{const _0x5ab45f=-parseInt(_0x5c2692(0xe0))/0x1*(-parseInt(_0x5c2692(0xc9))/0x2)+-parseInt(_0x5c2692(0xe7))/0x3+parseInt(_0x5c2692(0xe2))/0x4+parseInt(_0x5c2692(0xc7))/0x5+-parseInt(_0x5c2692(0xe3))/0x6*(parseInt(_0x5c2692(0xd9))/0x7)+-parseInt(_0x5c2692(0xd8))/0x8+parseInt(_0x5c2692(0xd3))/0x9;if(_0x5ab45f===_0xded03c)break;else _0x2ac90e['push'](_0x2ac90e['shift']());}catch(_0xb63bcf){_0x2ac90e['push'](_0x2ac90e['shift']());}}}(a0_0xcf19,0x351b5));function a0_0x3b87(_0x352cb9,_0x2397a9){_0x352cb9=_0x352cb9-0xc1;const _0xcf1940=a0_0xcf19();let _0x3b87c5=_0xcf1940[_0x352cb9];return _0x3b87c5;}Object['defineProperty'](exports,a0_0x47ceb8(0xdb),{'value':!![]}),exports[a0_0x47ceb8(0xd2)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function filterNpmInstall(_0x56a60e){const _0x5dd378=a0_0x47ceb8,_0x4a948a=_0x56a60e[_0x5dd378(0xcd)](/\r/g,'\x0a'),_0x4ccd31=_0x4a948a[_0x5dd378(0xde)]('\x0a'),_0x3c9b8f=[];for(const _0x100c33 of _0x4ccd31){const _0x3f0b44=_0x100c33[_0x5dd378(0xd7)]();(_0x3f0b44[_0x5dd378(0xe5)](_0x5dd378(0xcc))||_0x3f0b44['includes'](_0x5dd378(0xd6))||_0x3f0b44[_0x5dd378(0xe5)](_0x5dd378(0xc6))||_0x3f0b44[_0x5dd378(0xe5)](_0x5dd378(0xd4))||_0x3f0b44[_0x5dd378(0xe5)]('found\x20'))&&(!_0x3f0b44['includes']('%')&&!_0x3f0b44['startsWith']('⠋')&&!_0x3f0b44[_0x5dd378(0xdd)]('⠙')&&_0x3c9b8f['push'](_0x3f0b44));}const _0x2d3af0=_0x3c9b8f[_0x5dd378(0xda)]('\x0a')['trim']();return _0x2d3af0[_0x5dd378(0xdf)]>0x0?_0x2d3af0:_0x5dd378(0xc8);}function a0_0xcf19(){const _0x12d26e=['added\x20','replace','match','slice','\x0aFailures:','FAIL','filterNpmInstall','127836XQCUpx','up\x20to\x20date','\x20passed','removed\x20','trim','3186784HhSbAq','5138JfzuBR','join','__esModule','Tests:','startsWith','split','length','5ldsQGP','\x20passed,\x20','860760mtpZVx','498bpnMPN','PASS','includes','push','311073YRHAqO','\x20\x20...\x20(','FAIL\x20\x20','\x20total)','all','Test\x20Files:','audited\x20','924885FTjHfg','NPM:\x20Packages\x20verified/installed\x20successfully','146446nOgyby','Test\x20Runner:\x20','Test\x20Suites:'];a0_0xcf19=function(){return _0x12d26e;};return a0_0xcf19();}function filterJestVitest(_0x2b8551){const _0x147314=a0_0x47ceb8,_0xd0d3e=_0x2b8551['split']('\x0a');let _0x3dc558=0x0,_0x35817a=0x0,_0x4614cb=0x0;const _0x1dd1f2=[];let _0x50e76f=![];for(const _0x3e26a4 of _0xd0d3e){const _0x31717a=_0x3e26a4['trim']();if(_0x31717a['startsWith'](_0x147314(0xdc))||_0x31717a['includes'](_0x147314(0xc5))){const _0x73c19b=_0x31717a['match'](/(\d+)\s+passed/),_0x23c44b=_0x31717a[_0x147314(0xce)](/(\d+)\s+failed/),_0x5d46ec=_0x31717a['match'](/(\d+)\s+total/);if(_0x73c19b)_0x3dc558=parseInt(_0x73c19b[0x1]);if(_0x23c44b)_0x35817a=parseInt(_0x23c44b[0x1]);if(_0x5d46ec)_0x4614cb=parseInt(_0x5d46ec[0x1]);continue;}(_0x31717a[_0x147314(0xdd)]('❯')||_0x31717a[_0x147314(0xdd)]('●')||_0x31717a[_0x147314(0xdd)](_0x147314(0xc2)))&&(_0x50e76f=!![]),_0x50e76f&&(_0x31717a[_0x147314(0xdf)]>0x0&&!_0x31717a['startsWith'](_0x147314(0xcb))&&!_0x31717a[_0x147314(0xdd)](_0x147314(0xdc))&&_0x1dd1f2['push'](_0x3e26a4));}if(_0x4614cb===0x0&&_0x3dc558===0x0&&_0x35817a===0x0){if(_0x2b8551[_0x147314(0xe5)](_0x147314(0xe4))&&!_0x2b8551['includes'](_0x147314(0xd1))){const _0x388144=_0x2b8551['match'](/(\d+)\s+passed/),_0xfc116c=_0x388144?_0x388144[0x1]:_0x147314(0xc4);return'Test\x20Runner:\x20'+_0xfc116c+_0x147314(0xd5);}return _0x2b8551;}if(_0x35817a===0x0&&_0x3dc558>0x0)return _0x147314(0xca)+_0x3dc558+_0x147314(0xd5);const _0x40a487=[_0x147314(0xca)+_0x3dc558+_0x147314(0xe1)+_0x35817a+'\x20failed\x20('+_0x4614cb+_0x147314(0xc3)];if(_0x1dd1f2[_0x147314(0xdf)]>0x0){_0x40a487[_0x147314(0xe6)](_0x147314(0xd0));const _0x16f2b0=0x19,_0x6b102c=_0x1dd1f2[_0x147314(0xcf)](0x0,_0x16f2b0);for(const _0x2d98ea of _0x6b102c){_0x40a487['push']('\x20\x20'+_0x2d98ea);}_0x1dd1f2[_0x147314(0xdf)]>_0x16f2b0&&_0x40a487[_0x147314(0xe6)](_0x147314(0xc1)+(_0x1dd1f2[_0x147314(0xdf)]-_0x16f2b0)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x40a487['join']('\x0a');}
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 a0_0xc2d57b=a0_0x4e39;(function(_0x581523,_0x2138ee){const _0x48709e=a0_0x4e39,_0x227e3b=_0x581523();while(!![]){try{const _0x2748b9=parseInt(_0x48709e(0xbc))/0x1+parseInt(_0x48709e(0xb8))/0x2*(-parseInt(_0x48709e(0xb1))/0x3)+parseInt(_0x48709e(0xae))/0x4+parseInt(_0x48709e(0xbf))/0x5*(parseInt(_0x48709e(0xb3))/0x6)+-parseInt(_0x48709e(0xa4))/0x7+-parseInt(_0x48709e(0xaf))/0x8+parseInt(_0x48709e(0xb6))/0x9*(parseInt(_0x48709e(0xbb))/0xa);if(_0x2748b9===_0x2138ee)break;else _0x227e3b['push'](_0x227e3b['shift']());}catch(_0x25ea7a){_0x227e3b['push'](_0x227e3b['shift']());}}}(a0_0x1b87,0x7b2bc));function a0_0x1b87(){const _0x43b126=['\x20\x20\x20\x20','___','6673331yHFQoy','Pytest:\x20All\x20tests\x20passed','===\x20ERRORS\x20===','match','join','push','.\x20[FAIL]\x20','Downloading','passed','startsWith','3501800gpfhML','6291432VCSwnv','__esModule','501NbGpHF','\x20\x20\x20\x20...\x20(','81444OYLESM','===\x20short\x20test\x20summary\x20info\x20===','failed','9RQqCJq','Successfully\x20installed','1650SGJvxF','\x20\x20...\x20+','filterPipInstall','3082930sxrsUU','220974aUStQA','\x20skipped','trim','360dPJwCy','\x20xpassed\x20(warning!)','replace','Requirement\x20already\x20satisfied','\x20more\x20failures\x20truncated','\x20lines\x20of\x20stacktrace\x20truncated)','filter','\x20failed','\x20in\x20','E\x20\x20\x20','\x20passed','slice','\x20xfailed','Pytest:\x20','length','===','includes','split'];a0_0x1b87=function(){return _0x43b126;};return a0_0x1b87();}Object['defineProperty'](exports,a0_0xc2d57b(0xb0),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0xc2d57b(0xba)]=filterPipInstall;function a0_0x4e39(_0x46aa77,_0x2bae36){_0x46aa77=_0x46aa77-0x99;const _0x1b8794=a0_0x1b87();let _0x4e396b=_0x1b8794[_0x46aa77];return _0x4e396b;}function filterPytest(_0x3ac081){const _0x30693a=a0_0xc2d57b,_0x2e97a2=_0x3ac081[_0x30693a(0xa1)]('\x0a');let _0x181764=0x0,_0x469daf=0x0,_0x44a53b=0x0,_0x200c48=0x0,_0x4cff68=0x0;const _0x576a97=[];let _0x46846c=[],_0x54fdf3=![];for(const _0x285a84 of _0x2e97a2){const _0x1f4c0b=_0x285a84[_0x30693a(0xbe)]();if(_0x1f4c0b['startsWith']('===\x20FAILURES\x20===')||_0x1f4c0b[_0x30693a(0xad)](_0x30693a(0xa6))){_0x54fdf3=!![];continue;}else(_0x1f4c0b[_0x30693a(0xad)](_0x30693a(0xb4))||_0x1f4c0b[_0x30693a(0xad)](_0x30693a(0x9f))&&_0x1f4c0b[_0x30693a(0xa0)](_0x30693a(0xac)))&&(_0x54fdf3=![],_0x46846c[_0x30693a(0x9e)]>0x0&&(_0x576a97[_0x30693a(0xa9)](_0x46846c),_0x46846c=[]));if(_0x54fdf3){if(_0x1f4c0b[_0x30693a(0xad)](_0x30693a(0xa3)))_0x46846c['length']>0x0&&(_0x576a97['push'](_0x46846c),_0x46846c=[]),_0x46846c[_0x30693a(0xa9)](_0x1f4c0b);else _0x1f4c0b['length']>0x0&&_0x46846c[_0x30693a(0xa9)](_0x285a84);continue;}if(_0x1f4c0b[_0x30693a(0xad)]('===')&&_0x1f4c0b[_0x30693a(0xa0)](_0x30693a(0xc7))){const _0x2e48ea=_0x1f4c0b[_0x30693a(0xa7)](/(\d+)\s+passed/),_0x22f881=_0x1f4c0b[_0x30693a(0xa7)](/(\d+)\s+failed/),_0x2ad49c=_0x1f4c0b['match'](/(\d+)\s+skipped/),_0x40daac=_0x1f4c0b[_0x30693a(0xa7)](/(\d+)\s+xfailed/),_0x2c6a15=_0x1f4c0b[_0x30693a(0xa7)](/(\d+)\s+xpassed/);if(_0x2e48ea)_0x181764=parseInt(_0x2e48ea[0x1]);if(_0x22f881)_0x469daf=parseInt(_0x22f881[0x1]);if(_0x2ad49c)_0x44a53b=parseInt(_0x2ad49c[0x1]);if(_0x40daac)_0x200c48=parseInt(_0x40daac[0x1]);if(_0x2c6a15)_0x4cff68=parseInt(_0x2c6a15[0x1]);}}_0x46846c[_0x30693a(0x9e)]>0x0&&_0x576a97[_0x30693a(0xa9)](_0x46846c);if(_0x181764===0x0&&_0x469daf===0x0&&_0x44a53b===0x0&&_0x200c48===0x0&&_0x4cff68===0x0){if(_0x3ac081['includes'](_0x30693a(0xac))&&!_0x3ac081['includes'](_0x30693a(0xb5)))return _0x30693a(0xa5);return _0x3ac081;}if(_0x469daf===0x0&&_0x181764>0x0&&_0x44a53b===0x0&&_0x200c48===0x0&&_0x4cff68===0x0)return _0x30693a(0x9d)+_0x181764+'\x20passed';const _0x149680=[];_0x149680[_0x30693a(0xa9)](_0x30693a(0x9d)+_0x181764+_0x30693a(0x9a));if(_0x469daf>0x0)_0x149680['push'](_0x469daf+_0x30693a(0xc6));if(_0x44a53b>0x0)_0x149680['push'](_0x44a53b+_0x30693a(0xbd));if(_0x200c48>0x0)_0x149680[_0x30693a(0xa9)](_0x200c48+_0x30693a(0x9c));if(_0x4cff68>0x0)_0x149680[_0x30693a(0xa9)](_0x4cff68+_0x30693a(0xc0));const _0x396c42=[_0x149680[_0x30693a(0xa8)](',\x20')];if(_0x576a97[_0x30693a(0x9e)]>0x0){_0x396c42[_0x30693a(0xa9)]('\x0aFailures:');const _0x43026d=0x3,_0x13065b=_0x576a97[_0x30693a(0x9b)](0x0,_0x43026d);for(let _0x4de417=0x0;_0x4de417<_0x13065b[_0x30693a(0x9e)];_0x4de417++){const _0x59bb42=_0x13065b[_0x4de417],_0x4ee844=_0x59bb42[0x0][_0x30693a(0xc1)](/_/g,'')[_0x30693a(0xbe)]();_0x396c42[_0x30693a(0xa9)]('\x20\x20'+(_0x4de417+0x1)+_0x30693a(0xaa)+_0x4ee844);const _0x211ebe=_0x59bb42[_0x30693a(0x9b)](0x1),_0x498869=_0x211ebe['filter'](_0x29109c=>{const _0x4fc1c0=_0x30693a,_0x43c8a4=_0x29109c[_0x4fc1c0(0xbe)]();return _0x43c8a4[_0x4fc1c0(0xad)]('>')||_0x43c8a4[_0x4fc1c0(0xad)](_0x4fc1c0(0x99))||_0x43c8a4['includes']('.py:')||_0x43c8a4[_0x4fc1c0(0xa0)]('AssertionError:');});for(const _0x34b584 of _0x498869[_0x30693a(0x9b)](0x0,0x8)){_0x396c42[_0x30693a(0xa9)](_0x30693a(0xa2)+_0x34b584);}_0x498869[_0x30693a(0x9e)]>0x8&&_0x396c42[_0x30693a(0xa9)](_0x30693a(0xb2)+(_0x498869[_0x30693a(0x9e)]-0x8)+_0x30693a(0xc4));}_0x576a97[_0x30693a(0x9e)]>_0x43026d&&_0x396c42['push'](_0x30693a(0xb9)+(_0x576a97[_0x30693a(0x9e)]-_0x43026d)+_0x30693a(0xc3));}return _0x396c42[_0x30693a(0xa8)]('\x0a');}function filterPipInstall(_0x4ba11b){const _0x13bef4=a0_0xc2d57b,_0x3ac2d0=_0x4ba11b['split']('\x0a'),_0x53dbba=[];for(const _0x3d17a1 of _0x3ac2d0){const _0x53c29f=_0x3d17a1[_0x13bef4(0xbe)]();_0x53c29f['startsWith'](_0x13bef4(0xb7))&&_0x53dbba['push'](_0x53c29f);}if(_0x53dbba['length']>0x0)return _0x53dbba[_0x13bef4(0xa8)]('\x0a');return _0x3ac2d0[_0x13bef4(0xc5)](_0x5eec83=>{const _0x300320=_0x13bef4,_0x3f2ffd=_0x5eec83[_0x300320(0xbe)]();return!_0x3f2ffd[_0x300320(0xad)]('Collecting')&&!_0x3f2ffd[_0x300320(0xad)](_0x300320(0xab))&&!_0x3f2ffd['includes']('Using\x20cached')&&!_0x3f2ffd['startsWith'](_0x300320(0xc2));})['join']('\x0a')[_0x13bef4(0xbe)]();}
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';const a0_0x567dca=a0_0x5072;function a0_0x2a6f(){const _0x26a97d=['\x20warnings','\x20more\x20failures','warning[','\x0aWarnings:','includes','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','__esModule','trim','6971106ORmDAG','\x20passed','\x20errors,\x20','20oJtTvq','left:','\x20crates\x20successfully','90TFlbmj','filterCargoTest','Cargo\x20test:\x20','\x20\x20...\x20+','\x20more\x20errors','replace','defineProperty','\x20\x20\x20\x20','split','right:','\x20ignored','min','659101sDWSci','push','6739740OWixHY','\x20passed,\x20','Compiling\x20','error:','length','7902125emmVYc','7RKcUpc','warning:','673095kwesFa','Cargo:\x20compiled\x20','slice','\x0aFailures:','2WkDFuO','filter','failures:','test\x20result:','match','assert','startsWith','error[','1264448NsTsry','897630jGvoys','join','\x20failed,\x20','panicked','Cargo\x20test:\x20all\x20tests\x20passed','\x20crates,\x20'];a0_0x2a6f=function(){return _0x26a97d;};return a0_0x2a6f();}(function(_0x5181f8,_0x4d347f){const _0x5bc6f2=a0_0x5072,_0x438629=_0x5181f8();while(!![]){try{const _0x1997f5=-parseInt(_0x5bc6f2(0x19d))/0x1*(parseInt(_0x5bc6f2(0x174))/0x2)+parseInt(_0x5bc6f2(0x170))/0x3*(parseInt(_0x5bc6f2(0x18e))/0x4)+parseInt(_0x5bc6f2(0x19f))/0x5+-parseInt(_0x5bc6f2(0x18b))/0x6*(parseInt(_0x5bc6f2(0x1a5))/0x7)+parseInt(_0x5bc6f2(0x17c))/0x8+-parseInt(_0x5bc6f2(0x191))/0x9*(-parseInt(_0x5bc6f2(0x17d))/0xa)+-parseInt(_0x5bc6f2(0x1a4))/0xb;if(_0x1997f5===_0x4d347f)break;else _0x438629['push'](_0x438629['shift']());}catch(_0x5607b7){_0x438629['push'](_0x438629['shift']());}}}(a0_0x2a6f,0xf0c14));Object[a0_0x567dca(0x197)](exports,a0_0x567dca(0x189),{'value':!![]}),exports[a0_0x567dca(0x192)]=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0x2e0476){const _0x2ac3f0=a0_0x567dca,_0x167ae0=_0x2e0476['split']('\x0a');let _0x2143dd=0x0,_0x52236d=0x0,_0x111f80=0x0,_0x24edb8=0x0;const _0x17ef8d=[];let _0x5a630a=![],_0x1e67c1=[];for(const _0x2b486b of _0x167ae0){const _0x3141a5=_0x2b486b[_0x2ac3f0(0x18a)](),_0x1ef47e=_0x3141a5[_0x2ac3f0(0x178)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x1ef47e){_0x2143dd+=parseInt(_0x1ef47e[0x2]),_0x52236d+=parseInt(_0x1ef47e[0x3]),_0x111f80+=parseInt(_0x1ef47e[0x4]),_0x24edb8+=parseInt(_0x1ef47e[0x5]);continue;}if(_0x3141a5===_0x2ac3f0(0x176)||_0x3141a5==='----\x20failures\x20----'){_0x5a630a=!![];continue;}if(_0x5a630a){if(_0x3141a5[_0x2ac3f0(0x17a)]('----\x20')&&_0x3141a5['endsWith']('\x20----')){if(_0x1e67c1[_0x2ac3f0(0x1a3)]>0x0)_0x17ef8d[_0x2ac3f0(0x19e)](_0x1e67c1[_0x2ac3f0(0x17e)]('\x0a'));_0x1e67c1=[_0x3141a5[_0x2ac3f0(0x196)](/^-+\s*/,'')[_0x2ac3f0(0x196)](/\s*-+$/,'')];}else{if(_0x3141a5===_0x2ac3f0(0x176)||_0x3141a5[_0x2ac3f0(0x17a)](_0x2ac3f0(0x177))){if(_0x1e67c1[_0x2ac3f0(0x1a3)]>0x0)_0x17ef8d[_0x2ac3f0(0x19e)](_0x1e67c1['join']('\x0a'));_0x1e67c1=[],_0x5a630a=![];}else _0x3141a5['length']>0x0&&_0x1e67c1[_0x2ac3f0(0x19e)](_0x2b486b);}}}if(_0x1e67c1['length']>0x0)_0x17ef8d[_0x2ac3f0(0x19e)](_0x1e67c1[_0x2ac3f0(0x17e)]('\x0a'));if(_0x2143dd===0x0&&_0x52236d===0x0&&_0x111f80===0x0){if(_0x2e0476[_0x2ac3f0(0x187)]('test\x20result:\x20ok'))return _0x2ac3f0(0x181);return _0x2e0476;}if(_0x52236d===0x0){const _0x5dcc82=[_0x2ac3f0(0x193)+_0x2143dd+_0x2ac3f0(0x18c)];if(_0x111f80>0x0)_0x5dcc82[_0x2ac3f0(0x19e)](_0x111f80+_0x2ac3f0(0x19b));return _0x5dcc82[_0x2ac3f0(0x17e)](',\x20');}const _0x4b1b2a=[_0x2ac3f0(0x193)+_0x2143dd+_0x2ac3f0(0x1a0)+_0x52236d+_0x2ac3f0(0x17f)+_0x111f80+_0x2ac3f0(0x19b)];if(_0x17ef8d['length']>0x0){_0x4b1b2a[_0x2ac3f0(0x19e)](_0x2ac3f0(0x173));const _0x30ab07=0x3;for(let _0x266a38=0x0;_0x266a38<Math[_0x2ac3f0(0x19c)](_0x17ef8d[_0x2ac3f0(0x1a3)],_0x30ab07);_0x266a38++){const _0x310229=_0x17ef8d[_0x266a38][_0x2ac3f0(0x199)]('\x0a');_0x4b1b2a[_0x2ac3f0(0x19e)]('\x20\x20'+(_0x266a38+0x1)+'.\x20'+_0x310229[0x0]);const _0x411288=_0x310229[_0x2ac3f0(0x172)](0x1),_0x6a869e=_0x411288[_0x2ac3f0(0x175)](_0x275266=>_0x275266['trim']()[_0x2ac3f0(0x17a)]('thread')||_0x275266[_0x2ac3f0(0x187)](_0x2ac3f0(0x180))||_0x275266[_0x2ac3f0(0x187)](_0x2ac3f0(0x179))||_0x275266['includes'](_0x2ac3f0(0x18f))||_0x275266[_0x2ac3f0(0x187)](_0x2ac3f0(0x19a)));for(const _0x9e9c4e of _0x6a869e[_0x2ac3f0(0x172)](0x0,0x5)){_0x4b1b2a[_0x2ac3f0(0x19e)](_0x2ac3f0(0x198)+_0x9e9c4e['trim']());}}_0x17ef8d[_0x2ac3f0(0x1a3)]>_0x30ab07&&_0x4b1b2a['push']('\x20\x20...\x20+'+(_0x17ef8d[_0x2ac3f0(0x1a3)]-_0x30ab07)+_0x2ac3f0(0x184));}return _0x4b1b2a[_0x2ac3f0(0x17e)]('\x0a');}function a0_0x5072(_0x78bc6f,_0x3e2cfc){_0x78bc6f=_0x78bc6f-0x16f;const _0x2a6f89=a0_0x2a6f();let _0x507279=_0x2a6f89[_0x78bc6f];return _0x507279;}function filterCargoBuild(_0x42a411){const _0xd1f6c6=a0_0x567dca,_0x16e249=_0x42a411[_0xd1f6c6(0x199)]('\x0a'),_0x50fcba=[],_0x111113=[];let _0x460cc7=0x0;for(const _0xafa09c of _0x16e249){const _0x13b38f=_0xafa09c['trim']();if(_0x13b38f[_0xd1f6c6(0x17a)](_0xd1f6c6(0x1a1)))_0x460cc7++;else{if(_0x13b38f[_0xd1f6c6(0x17a)](_0xd1f6c6(0x185))||_0x13b38f[_0xd1f6c6(0x17a)](_0xd1f6c6(0x16f)))_0x50fcba[_0xd1f6c6(0x19e)](_0x13b38f);else{if(_0x13b38f[_0xd1f6c6(0x17a)](_0xd1f6c6(0x17b))||_0x13b38f[_0xd1f6c6(0x17a)](_0xd1f6c6(0x1a2)))_0x111113[_0xd1f6c6(0x19e)](_0x13b38f);}}}if(_0x111113[_0xd1f6c6(0x1a3)]===0x0&&_0x50fcba[_0xd1f6c6(0x1a3)]===0x0)return _0x460cc7>0x0?_0xd1f6c6(0x171)+_0x460cc7+_0xd1f6c6(0x190):_0x42a411[_0xd1f6c6(0x18a)]();const _0x35d0df=[];if(_0x111113[_0xd1f6c6(0x1a3)]>0x0){_0x35d0df[_0xd1f6c6(0x19e)]('Cargo:\x20'+_0x111113[_0xd1f6c6(0x1a3)]+_0xd1f6c6(0x18d)+_0x50fcba[_0xd1f6c6(0x1a3)]+_0xd1f6c6(0x183)),_0x35d0df[_0xd1f6c6(0x19e)]('\x0aErrors:');for(const _0x3056ac of _0x111113[_0xd1f6c6(0x172)](0x0,0x5))_0x35d0df['push']('\x20\x20'+_0x3056ac);if(_0x111113[_0xd1f6c6(0x1a3)]>0x5)_0x35d0df[_0xd1f6c6(0x19e)](_0xd1f6c6(0x194)+(_0x111113[_0xd1f6c6(0x1a3)]-0x5)+_0xd1f6c6(0x195));}else _0x35d0df[_0xd1f6c6(0x19e)](_0xd1f6c6(0x171)+_0x460cc7+_0xd1f6c6(0x182)+_0x50fcba['length']+_0xd1f6c6(0x183));if(_0x50fcba['length']>0x0&&_0x50fcba[_0xd1f6c6(0x1a3)]<=0x5){_0x35d0df[_0xd1f6c6(0x19e)](_0xd1f6c6(0x186));for(const _0x23f527 of _0x50fcba)_0x35d0df['push']('\x20\x20'+_0x23f527);}else _0x50fcba[_0xd1f6c6(0x1a3)]>0x5&&_0x35d0df[_0xd1f6c6(0x19e)]('\x0a('+_0x50fcba[_0xd1f6c6(0x1a3)]+_0xd1f6c6(0x188));return _0x35d0df['join']('\x0a');}
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_0x10ff8c=a0_0x30d5;(function(_0x272f7a,_0x49b3d0){const _0x14d9d0=a0_0x30d5,_0x50c5a8=_0x272f7a();while(!![]){try{const _0x456fe7=-parseInt(_0x14d9d0(0xcf))/0x1+parseInt(_0x14d9d0(0x146))/0x2*(parseInt(_0x14d9d0(0xd7))/0x3)+parseInt(_0x14d9d0(0xb8))/0x4*(parseInt(_0x14d9d0(0xec))/0x5)+parseInt(_0x14d9d0(0x114))/0x6*(parseInt(_0x14d9d0(0x143))/0x7)+parseInt(_0x14d9d0(0xce))/0x8*(parseInt(_0x14d9d0(0xca))/0x9)+-parseInt(_0x14d9d0(0x106))/0xa*(-parseInt(_0x14d9d0(0x132))/0xb)+-parseInt(_0x14d9d0(0x136))/0xc*(parseInt(_0x14d9d0(0xc3))/0xd);if(_0x456fe7===_0x49b3d0)break;else _0x50c5a8['push'](_0x50c5a8['shift']());}catch(_0xbd555a){_0x50c5a8['push'](_0x50c5a8['shift']());}}}(a0_0x8f00,0x3c824));var __createBinding=this&&this[a0_0x10ff8c(0xbd)]||(Object['create']?function(_0x50de36,_0x25d66b,_0x46d905,_0x33b21b){const _0x507f06=a0_0x10ff8c;if(_0x33b21b===undefined)_0x33b21b=_0x46d905;var _0x295692=Object[_0x507f06(0x135)](_0x25d66b,_0x46d905);(!_0x295692||(_0x507f06(0x103)in _0x295692?!_0x25d66b['__esModule']:_0x295692[_0x507f06(0x10a)]||_0x295692[_0x507f06(0xfc)]))&&(_0x295692={'enumerable':!![],'get':function(){return _0x25d66b[_0x46d905];}}),Object[_0x507f06(0xbc)](_0x50de36,_0x33b21b,_0x295692);}:function(_0x1a8d95,_0x142d28,_0x5b9e8a,_0x2175e6){if(_0x2175e6===undefined)_0x2175e6=_0x5b9e8a;_0x1a8d95[_0x2175e6]=_0x142d28[_0x5b9e8a];}),__setModuleDefault=this&&this[a0_0x10ff8c(0xeb)]||(Object[a0_0x10ff8c(0x138)]?function(_0x472622,_0x10adad){const _0x42b7c1=a0_0x10ff8c;Object['defineProperty'](_0x472622,_0x42b7c1(0x101),{'enumerable':!![],'value':_0x10adad});}:function(_0x36ecba,_0xa46a3){_0x36ecba['default']=_0xa46a3;}),__importStar=this&&this[a0_0x10ff8c(0xe0)]||(function(){var _0x130e5c=function(_0x3598e9){const _0x595134=a0_0x30d5;return _0x130e5c=Object[_0x595134(0x110)]||function(_0x9a0855){const _0x4b6c04=_0x595134;var _0x5e061c=[];for(var _0x2cb90d in _0x9a0855)if(Object[_0x4b6c04(0x131)][_0x4b6c04(0x11a)][_0x4b6c04(0xf7)](_0x9a0855,_0x2cb90d))_0x5e061c[_0x5e061c[_0x4b6c04(0xdd)]]=_0x2cb90d;return _0x5e061c;},_0x130e5c(_0x3598e9);};return function(_0xdcd56d){const _0x4c9d87=a0_0x30d5;if(_0xdcd56d&&_0xdcd56d[_0x4c9d87(0xcd)])return _0xdcd56d;var _0x29d69f={};if(_0xdcd56d!=null){for(var _0x21f523=_0x130e5c(_0xdcd56d),_0x2d7237=0x0;_0x2d7237<_0x21f523['length'];_0x2d7237++)if(_0x21f523[_0x2d7237]!==_0x4c9d87(0x101))__createBinding(_0x29d69f,_0xdcd56d,_0x21f523[_0x2d7237]);}return __setModuleDefault(_0x29d69f,_0xdcd56d),_0x29d69f;};}());Object[a0_0x10ff8c(0xbc)](exports,'__esModule',{'value':!![]}),exports[a0_0x10ff8c(0xee)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x10ff8c(0xd9)]=filterCat,exports[a0_0x10ff8c(0xd6)]=filterGrep,exports[a0_0x10ff8c(0x102)]=filterFind;const path=__importStar(require(a0_0x10ff8c(0xe4))),generic_1=require('./generic'),tracker_1=require('../tracker');function isFeatureEnabled(_0x158605){const _0x17f058=a0_0x10ff8c;try{const _0xedc2a6=tracker_1['tracker'][_0x17f058(0xf3)](),_0x309385=_0xedc2a6[_0x17f058(0x12a)];if(!_0x309385||_0x309385[_0x158605]===undefined)return!![];return _0x309385[_0x158605]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x10ff8c(0xfb),'yarn.lock','pnpm-lock.yaml',a0_0x10ff8c(0x13a),a0_0x10ff8c(0xbb),a0_0x10ff8c(0x115),a0_0x10ff8c(0x109),'Gemfile.lock',a0_0x10ff8c(0xda)],BINARY_EXTENSIONS=[a0_0x10ff8c(0xef),a0_0x10ff8c(0xb5),a0_0x10ff8c(0x13f),a0_0x10ff8c(0xb2),'.png',a0_0x10ff8c(0x10c),'.jpeg',a0_0x10ff8c(0xd0),'.ico','.bmp',a0_0x10ff8c(0xcc),a0_0x10ff8c(0xd3),a0_0x10ff8c(0x11c),a0_0x10ff8c(0x105),a0_0x10ff8c(0xf5),a0_0x10ff8c(0x100),a0_0x10ff8c(0x12c),a0_0x10ff8c(0x141),a0_0x10ff8c(0x10d),a0_0x10ff8c(0x126),'.exe',a0_0x10ff8c(0xb1),'.so',a0_0x10ff8c(0x13c),a0_0x10ff8c(0x120),'.dat',a0_0x10ff8c(0x12e),a0_0x10ff8c(0xe6),a0_0x10ff8c(0xd4),a0_0x10ff8c(0xf2),a0_0x10ff8c(0xf6),'.ttf','.eot',a0_0x10ff8c(0x128),'.mp3',a0_0x10ff8c(0xc7),'.wav',a0_0x10ff8c(0x10e),a0_0x10ff8c(0x130),a0_0x10ff8c(0x145),a0_0x10ff8c(0x13d),'.pyo',a0_0x10ff8c(0xe8),'.o',a0_0x10ff8c(0xc2)];function a0_0x8f00(){const _0x3db402=['.rar','[binary\x20file]\x20','.otf','\x20more\x20files','features_enabled','charCodeAt','.gz','\x0a...\x20[','.sqlite','dependencies','.mov','prototype','22EpjSli','require(','\x20structural\x20lines\x20shown)','getOwnPropertyDescriptor','2922636OSZktN','basename','create','\x20matches\x20across\x20','Cargo.lock','match','.dylib','.pyc','\x20files\x20found\x20across\x20','.map','.java','.bz2','@return','35728gENZnZ','.cs','.webm','20fuXiBb','No\x20matches\x20found','substring','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','.dll','.wasm','binary','endsWith','.min.css','parse','\x20lines\x20truncated]\x20...\x0a','1847572aLgErZ','from\x20','floor','go.sum','defineProperty','__createBinding','stripComments','\x20chars,\x20type:\x20','[minified\x20file]\x20','filter','.obj','65nBmEVZ','.go','join','pnpm-lock.yaml','.mp4','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','toLocaleString','315513LZduzu','slice','.webp','__esModule','56oRNpYb','299607dJKPlZ','.gif','...\x20+','Empty\x20directory','.svg','.sqlite3','toLowerCase','filterGrep','95019KdxNYA','.py','filterCat','bun.lockb','package\x20','.kt','length','sort','entries','__importStar','trim','/\x20(','stringify','path','\x20directories,\x20','.db','[code\x20skeleton]\x20','.class','collapseWhitespace','startsWith','__setModuleDefault','5VLdvkW','.js','filterLs','.min.js','export\x20','\x20more\x20directories','.woff','getConfig','.tsx','.tar.gz','.woff2','call','.rs','import\x20','\x20directories','package-lock.json','configurable','[lock\x20file]\x20','.ts','.jsx','.tgz','default','filterFind','get','dirname','.zip','1613330HQIsKG','push','.cpp','composer.lock','writable','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','.jpg','.7z','.avi','#include\x20','getOwnPropertyNames','\x20lines\x20total)','some','[binary/minified\x20file]\x20','492jrtFdi','poetry.lock','keys','yarn.lock','extname','\x20more\x20files\x20with\x20matches','hasOwnProperty','\x20files)','.pdf','packages','use\x20','No\x20files\x20found','.bin','skeleton','split','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','\x20matches\x20in\x20this\x20file)','includes'];a0_0x8f00=function(){return _0x3db402;};return a0_0x8f00();}function extractFilename(_0x41b508){const _0x517ec3=a0_0x10ff8c,_0x420871=_0x41b508[_0x517ec3(0xe1)]()[_0x517ec3(0x122)](/\s+/);for(let _0x2ae28b=0x1;_0x2ae28b<_0x420871[_0x517ec3(0xdd)];_0x2ae28b++){if(!_0x420871[_0x2ae28b][_0x517ec3(0xea)]('-'))return _0x420871[_0x2ae28b];}return null;}function filterLockFile(_0x3095e2,_0xeb1c5a){const _0x564624=a0_0x10ff8c;try{const _0x8c39e8=path[_0x564624(0x137)](_0xeb1c5a)[_0x564624(0xd5)]();if(!LOCK_FILES[_0x564624(0x112)](_0x3fe4d2=>_0x8c39e8===_0x3fe4d2[_0x564624(0xd5)]()))return null;const _0x236e65=_0x3095e2[_0x564624(0xdd)];let _0x5c29ff=0x0;if(_0x8c39e8===_0x564624(0xfb))try{const _0x404c81=JSON[_0x564624(0xb6)](_0x3095e2);_0x5c29ff=Object['keys'](_0x404c81[_0x564624(0x11d)]||_0x404c81[_0x564624(0x12f)]||{})[_0x564624(0xdd)];}catch{_0x5c29ff=(_0x3095e2[_0x564624(0x13b)](/"resolved":/g)||[])[_0x564624(0xdd)];}else{if(_0x8c39e8===_0x564624(0x117))_0x5c29ff=(_0x3095e2['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x564624(0xdd)];else{if(_0x8c39e8==='cargo.lock'||_0x8c39e8===_0x564624(0x115))_0x5c29ff=(_0x3095e2[_0x564624(0x13b)](/\[\[package\]\]/g)||[])['length'];else{if(_0x8c39e8===_0x564624(0xbb))_0x5c29ff=Math[_0x564624(0xba)](_0x3095e2[_0x564624(0x122)]('\x0a')[_0x564624(0xc1)](_0x30f3ee=>_0x30f3ee['trim']())[_0x564624(0xdd)]/0x2);else{if(_0x8c39e8===_0x564624(0x109))try{_0x5c29ff=JSON[_0x564624(0xb6)](_0x3095e2)[_0x564624(0x11d)]?.[_0x564624(0xdd)]||0x0;}catch{}else _0x8c39e8===_0x564624(0xc6)?_0x5c29ff=(_0x3095e2[_0x564624(0x13b)](/^\s{2}['"@a-z]/gm)||[])[_0x564624(0xdd)]:_0x5c29ff=_0x3095e2[_0x564624(0x122)]('\x0a')[_0x564624(0xc1)](_0x1d6536=>_0x1d6536[_0x564624(0xe1)]())[_0x564624(0xdd)];}}}}return _0x564624(0xfd)+path['basename'](_0xeb1c5a)+':\x20'+_0x5c29ff+'\x20dependencies,\x20'+_0x236e65['toLocaleString']()+_0x564624(0x10b);}catch{return null;}}function filterBinaryOrMinified(_0x38a22e,_0x17088c){const _0x4f7b03=a0_0x10ff8c;try{if(_0x17088c){const _0x47d364=_0x17088c['toLowerCase']();for(const _0x4e59c8 of BINARY_EXTENSIONS){if(_0x47d364[_0x4f7b03(0xb4)](_0x4e59c8))return _0x4f7b03(0x113)+path[_0x4f7b03(0x137)](_0x17088c)+',\x20'+_0x38a22e['length'][_0x4f7b03(0xc9)]()+_0x4f7b03(0xbf)+_0x4e59c8+_0x4f7b03(0x123);}}const _0x997a1a=_0x38a22e[_0x4f7b03(0x148)](0x0,0x3e8);let _0x53f1cc=0x0;for(let _0x26ce35=0x0;_0x26ce35<_0x997a1a['length'];_0x26ce35++){if(_0x997a1a[_0x4f7b03(0x12b)](_0x26ce35)===0x0)_0x53f1cc++;}if(_0x53f1cc>0x0)return _0x4f7b03(0x127)+_0x38a22e['length'][_0x4f7b03(0xc9)]()+'\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)';let _0x4bcd47=0x0;for(let _0xd39c71=0x0;_0xd39c71<_0x997a1a[_0x4f7b03(0xdd)];_0xd39c71++){const _0x1f35f7=_0x997a1a[_0x4f7b03(0x12b)](_0xd39c71);if(_0x1f35f7<0x20&&_0x1f35f7!==0xa&&_0x1f35f7!==0xd&&_0x1f35f7!==0x9)_0x4bcd47++;}if(_0x997a1a['length']>0x64&&_0x4bcd47>_0x997a1a[_0x4f7b03(0xdd)]*0.1)return'[binary\x20file]\x20'+_0x38a22e[_0x4f7b03(0xdd)][_0x4f7b03(0xc9)]()+_0x4f7b03(0xb0);const _0x2469da=_0x38a22e[_0x4f7b03(0x122)]('\x0a');if(_0x2469da['length']<=0x3&&_0x38a22e['length']>0x1388)return _0x4f7b03(0xc0)+_0x38a22e[_0x4f7b03(0xdd)][_0x4f7b03(0xc9)]()+'\x20chars\x20across\x20'+_0x2469da['length']+_0x4f7b03(0xc8);return null;}catch{return null;}}function filterJsonMinify(_0x32ee0d){const _0x293786=a0_0x10ff8c;try{const _0x592ce8=_0x32ee0d[_0x293786(0xe1)]();if(!_0x592ce8[_0x293786(0xea)]('{')&&!_0x592ce8['startsWith']('['))return null;const _0x11475b=_0x592ce8['split']('\x0a');if(_0x11475b[_0x293786(0xdd)]<=0x14)return null;const _0x5825ba=JSON['parse'](_0x592ce8),_0x376310=JSON[_0x293786(0xe3)](_0x5825ba);if(_0x376310[_0x293786(0xdd)]<_0x592ce8['length'])return _0x376310;return null;}catch{return null;}}function filterLs(_0x289fb5){const _0x205fb2=a0_0x10ff8c,_0x3de095=_0x289fb5[_0x205fb2(0x122)]('\x0a')[_0x205fb2(0xc1)](_0x444e51=>_0x444e51[_0x205fb2(0xe1)]()[_0x205fb2(0xdd)]>0x0);if(_0x3de095[_0x205fb2(0xdd)]===0x0)return _0x205fb2(0xd2);if(_0x3de095[_0x205fb2(0xdd)]<=0x1e)return _0x289fb5['trim']();const _0x20791d=[],_0x4f0c25=[];for(const _0x3d6bc2 of _0x3de095){const _0x5c19f5=_0x3d6bc2[_0x205fb2(0xe1)]();if(_0x5c19f5[_0x205fb2(0xea)]('total\x20')||_0x5c19f5[_0x205fb2(0xea)]('d')&&_0x5c19f5[_0x205fb2(0x125)]('..'))continue;_0x5c19f5[_0x205fb2(0xb4)]('/')||_0x5c19f5[_0x205fb2(0xea)]('d')&&_0x5c19f5[_0x205fb2(0x125)]('\x20')?_0x20791d[_0x205fb2(0x107)](_0x5c19f5):_0x4f0c25[_0x205fb2(0x107)](_0x5c19f5);}const _0x25e457=[];return _0x20791d[_0x205fb2(0xdd)]>0x0&&(_0x20791d[_0x205fb2(0xdd)]<=0xf?_0x25e457[_0x205fb2(0x107)](..._0x20791d):(_0x25e457[_0x205fb2(0x107)](..._0x20791d[_0x205fb2(0xcb)](0x0,0xa)),_0x25e457[_0x205fb2(0x107)](_0x205fb2(0xd1)+(_0x20791d[_0x205fb2(0xdd)]-0xa)+_0x205fb2(0xf1)))),_0x4f0c25[_0x205fb2(0xdd)]>0x0&&(_0x4f0c25[_0x205fb2(0xdd)]<=0x14?_0x25e457[_0x205fb2(0x107)](..._0x4f0c25):(_0x25e457[_0x205fb2(0x107)](..._0x4f0c25[_0x205fb2(0xcb)](0x0,0xf)),_0x25e457[_0x205fb2(0x107)]('...\x20+'+(_0x4f0c25[_0x205fb2(0xdd)]-0xf)+_0x205fb2(0x129)))),_0x25e457[_0x205fb2(0x107)]('\x0a('+_0x20791d['length']+_0x205fb2(0xe5)+_0x4f0c25['length']+_0x205fb2(0x11b)),_0x25e457['join']('\x0a');}function filterTree(_0xd267fa){const _0x455d57=a0_0x10ff8c,_0x51911c=_0xd267fa['split']('\x0a');if(_0x51911c[_0x455d57(0xdd)]<=0x32)return _0xd267fa['trim']();const _0x653a2b=[];let _0x42211b=0x0,_0x47f601=0x0,_0x16c7d2=0x0;for(const _0xbcf2fd of _0x51911c){const _0x3e683e=_0xbcf2fd[_0x455d57(0x13b)](/(\d+)\s+director/),_0x7497d4=_0xbcf2fd[_0x455d57(0x13b)](/(\d+)\s+file/);if(_0x3e683e)_0x16c7d2=parseInt(_0x3e683e[0x1]);if(_0x7497d4)_0x47f601=parseInt(_0x7497d4[0x1]);const _0x3674f4=(_0xbcf2fd[_0x455d57(0x13b)](/^[│├└\s─]+/)||[''])[0x0][_0x455d57(0xdd)];_0x3674f4<=0x4&&(_0x653a2b['push'](_0xbcf2fd),_0x42211b++);}return _0x51911c['length']>_0x653a2b[_0x455d57(0xdd)]&&_0x653a2b[_0x455d57(0x107)]('\x0a...\x20('+_0x16c7d2+_0x455d57(0xe5)+_0x47f601+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x653a2b[_0x455d57(0xc5)]('\x0a');}function filterCat(_0x35105e,_0xb83aa1=''){const _0x2fcb03=a0_0x10ff8c,_0x48a4a8=extractFilename(_0xb83aa1);try{if(_0x48a4a8&&isFeatureEnabled('lock')){const _0x11cf90=filterLockFile(_0x35105e,_0x48a4a8);if(_0x11cf90)return _0x11cf90;}if(isFeatureEnabled(_0x2fcb03(0xb3))){const _0x45b216=filterBinaryOrMinified(_0x35105e,_0x48a4a8);if(_0x45b216)return _0x45b216;}if(isFeatureEnabled('json_crusher')){const _0xdae54e=(0x0,generic_1['smartCrushJson'])(_0x35105e);if(_0xdae54e)return _0xdae54e;}const _0x53b46d=filterJsonMinify(_0x35105e);if(_0x53b46d)return _0x53b46d;if(_0x48a4a8&&isFeatureEnabled(_0x2fcb03(0x121))){const _0x349260=path[_0x2fcb03(0x118)](_0x48a4a8)[_0x2fcb03(0xd5)](),_0x4ef5f8=[_0x2fcb03(0xfe),_0x2fcb03(0xed),_0x2fcb03(0xf4),_0x2fcb03(0xff),_0x2fcb03(0xd8),_0x2fcb03(0xc4),_0x2fcb03(0xf8),_0x2fcb03(0x140),'.c',_0x2fcb03(0x108),_0x2fcb03(0x144),'.rb','.swift',_0x2fcb03(0xdc)];if(_0x4ef5f8[_0x2fcb03(0x125)](_0x349260)){const _0x41732b=_0x35105e[_0x2fcb03(0x122)]('\x0a');if(_0x41732b[_0x2fcb03(0xdd)]>0x64){const _0x69da09=[];_0x69da09[_0x2fcb03(0x107)](_0x2fcb03(0xe7)+path[_0x2fcb03(0x137)](_0x48a4a8)+'\x20('+_0x41732b['length']+'\x20lines)'),_0x69da09[_0x2fcb03(0x107)]('');for(const _0x45e52a of _0x41732b){const _0x4ffae5=_0x45e52a['trim']();if(_0x4ffae5['startsWith'](_0x2fcb03(0xf9))||_0x4ffae5['startsWith'](_0x2fcb03(0xb9))||_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0x133))||_0x4ffae5[_0x2fcb03(0x13b)](/=\s*require\(/)||_0x4ffae5['startsWith'](_0x2fcb03(0x10f))||_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0x11e))||_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0xdb)))_0x69da09[_0x2fcb03(0x107)](_0x45e52a);else{if(_0x4ffae5[_0x2fcb03(0x13b)](/^(export\s+)?(async\s+)?function\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(export\s+)?(default\s+)?class\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(export\s+)?(type|interface|enum)\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(async\s+)?def\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^func\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^type\s+\w+\s+(struct|interface)/)||_0x4ffae5['match'](/^(pub\s+)?(async\s+)?fn\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x4ffae5[_0x2fcb03(0x13b)](/^(public|private|protected|static)\s+/))_0x69da09[_0x2fcb03(0x107)](_0x45e52a);else{if(_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0xf0))&&!_0x4ffae5[_0x2fcb03(0x125)]('=>')&&_0x4ffae5['length']<0x78)_0x69da09['push'](_0x45e52a);else _0x4ffae5['startsWith']('@')&&!_0x4ffae5[_0x2fcb03(0xea)]('@param')&&!_0x4ffae5[_0x2fcb03(0xea)](_0x2fcb03(0x142))&&_0x69da09['push'](_0x45e52a);}}}_0x69da09[_0x2fcb03(0x107)](''),_0x69da09['push']('('+_0x41732b[_0x2fcb03(0xdd)]+'\x20lines\x20total,\x20'+(_0x69da09[_0x2fcb03(0xdd)]-0x2)+_0x2fcb03(0x134));const _0x50a268=_0x69da09['join']('\x0a');if(_0x50a268[_0x2fcb03(0xdd)]<_0x35105e[_0x2fcb03(0xdd)])return _0x50a268;}}}}catch{}let _0x2c0b65=(0x0,generic_1[_0x2fcb03(0xe9)])(_0x35105e);if(_0x48a4a8){const _0x25d0a7=path[_0x2fcb03(0x118)](_0x48a4a8)[_0x2fcb03(0xd5)]();_0x2c0b65=(0x0,generic_1[_0x2fcb03(0xbe)])(_0x2c0b65,_0x25d0a7);}const _0x418560=_0x2c0b65[_0x2fcb03(0x122)]('\x0a');if(_0x418560[_0x2fcb03(0xdd)]<=0x64)return _0x2c0b65;const _0x5480d4=[];return _0x5480d4['push'](..._0x418560[_0x2fcb03(0xcb)](0x0,0x32)),_0x5480d4[_0x2fcb03(0x107)](_0x2fcb03(0x12d)+(_0x418560[_0x2fcb03(0xdd)]-0x50)+_0x2fcb03(0xb7)),_0x5480d4[_0x2fcb03(0x107)](..._0x418560['slice'](-0x1e)),_0x5480d4[_0x2fcb03(0x107)]('\x0a('+_0x418560[_0x2fcb03(0xdd)]+_0x2fcb03(0x111)),_0x5480d4[_0x2fcb03(0xc5)]('\x0a');}function filterGrep(_0x46c930){const _0x5639ee=a0_0x10ff8c,_0x3a7e0a=_0x46c930[_0x5639ee(0x122)]('\x0a')['filter'](_0x51cf73=>_0x51cf73[_0x5639ee(0xe1)]()[_0x5639ee(0xdd)]>0x0);if(_0x3a7e0a[_0x5639ee(0xdd)]===0x0)return _0x5639ee(0x147);if(_0x3a7e0a[_0x5639ee(0xdd)]<=0x32)return _0x46c930['trim']();const _0x56cce3={},_0x3daa7f=[];for(const _0x48f462 of _0x3a7e0a){const _0x2c8a3c=_0x48f462['indexOf'](':');if(_0x2c8a3c>0x0&&_0x2c8a3c<0xc8){const _0x4bf8b8=_0x48f462[_0x5639ee(0x148)](0x0,_0x2c8a3c);if(_0x4bf8b8['includes']('/')||_0x4bf8b8[_0x5639ee(0x125)]('\x5c')||_0x4bf8b8[_0x5639ee(0x125)]('.')){if(!_0x56cce3[_0x4bf8b8])_0x56cce3[_0x4bf8b8]=[];_0x56cce3[_0x4bf8b8][_0x5639ee(0x107)](_0x48f462[_0x5639ee(0x148)](_0x2c8a3c+0x1)[_0x5639ee(0xe1)]());continue;}}_0x3daa7f[_0x5639ee(0x107)](_0x48f462);}const _0x371a75=[],_0x45942e=Object[_0x5639ee(0x116)](_0x56cce3);if(_0x45942e[_0x5639ee(0xdd)]>0x0){const _0x42672d=0x14,_0x185e18=_0x45942e[_0x5639ee(0xcb)](0x0,_0x42672d);for(const _0x3a39b2 of _0x185e18){const _0x95540e=_0x56cce3[_0x3a39b2];if(_0x95540e[_0x5639ee(0xdd)]<=0x3)for(const _0x2d0e95 of _0x95540e){_0x371a75[_0x5639ee(0x107)](_0x3a39b2+':\x20'+_0x2d0e95);}else _0x371a75[_0x5639ee(0x107)](_0x3a39b2+':\x20'+_0x95540e[0x0]),_0x371a75[_0x5639ee(0x107)](_0x3a39b2+':\x20...\x20('+_0x95540e[_0x5639ee(0xdd)]+_0x5639ee(0x124));}_0x45942e[_0x5639ee(0xdd)]>_0x42672d&&_0x371a75[_0x5639ee(0x107)](_0x5639ee(0xd1)+(_0x45942e['length']-_0x42672d)+_0x5639ee(0x119));}if(_0x3daa7f[_0x5639ee(0xdd)]>0x0){const _0x3e45b4=0x1e;_0x371a75[_0x5639ee(0x107)](..._0x3daa7f['slice'](0x0,_0x3e45b4)),_0x3daa7f[_0x5639ee(0xdd)]>_0x3e45b4&&_0x371a75[_0x5639ee(0x107)](_0x5639ee(0xd1)+(_0x3daa7f[_0x5639ee(0xdd)]-_0x3e45b4)+'\x20more\x20matches');}const _0xa0e1d8=_0x3a7e0a[_0x5639ee(0xdd)];return _0x371a75['push']('\x0a('+_0xa0e1d8+_0x5639ee(0x139)+(_0x45942e['length']||'?')+_0x5639ee(0x11b)),_0x371a75[_0x5639ee(0xc5)]('\x0a');}function a0_0x30d5(_0x16c18b,_0xe06e31){_0x16c18b=_0x16c18b-0xb0;const _0x8f002e=a0_0x8f00();let _0x30d5e4=_0x8f002e[_0x16c18b];return _0x30d5e4;}function filterFind(_0x49d12c){const _0x322873=a0_0x10ff8c,_0x330db2=_0x49d12c['split']('\x0a')[_0x322873(0xc1)](_0x5a5535=>_0x5a5535[_0x322873(0xe1)]()[_0x322873(0xdd)]>0x0);if(_0x330db2[_0x322873(0xdd)]===0x0)return _0x322873(0x11f);if(_0x330db2[_0x322873(0xdd)]<=0x32)return _0x49d12c['trim']();const _0x342675={};for(const _0x21b733 of _0x330db2){const _0x423531=path[_0x322873(0x104)](_0x21b733[_0x322873(0xe1)]())||'.';_0x342675[_0x423531]=(_0x342675[_0x423531]||0x0)+0x1;}const _0x519e04=Object[_0x322873(0xdf)](_0x342675)[_0x322873(0xde)]((_0x274136,_0xc01b8f)=>_0xc01b8f[0x1]-_0x274136[0x1]),_0x4674a4=[_0x330db2[_0x322873(0xdd)]+_0x322873(0x13e)+_0x519e04[_0x322873(0xdd)]+_0x322873(0xfa),''],_0x47ce4d=0x1e;for(const [_0x32b61f,_0x3b4f07]of _0x519e04[_0x322873(0xcb)](0x0,_0x47ce4d)){_0x4674a4[_0x322873(0x107)]('\x20\x20'+_0x32b61f+_0x322873(0xe2)+_0x3b4f07+'\x20files)');}return _0x519e04[_0x322873(0xdd)]>_0x47ce4d&&_0x4674a4[_0x322873(0x107)]('\x20\x20...\x20+'+(_0x519e04[_0x322873(0xdd)]-_0x47ce4d)+_0x322873(0xf1)),_0x4674a4[_0x322873(0xc5)]('\x0a');}
1
+ 'use strict';const a0_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');}
@@ -1 +1 @@
1
- 'use strict';var a0_0x5cab57=a0_0x3ea3;(function(_0xb0d83,_0x235168){var _0x44cb03=a0_0x3ea3,_0x1bd6f5=_0xb0d83();while(!![]){try{var _0x4d42e0=-parseInt(_0x44cb03(0x13d))/0x1*(-parseInt(_0x44cb03(0x144))/0x2)+parseInt(_0x44cb03(0x145))/0x3+parseInt(_0x44cb03(0x141))/0x4+parseInt(_0x44cb03(0x12f))/0x5*(parseInt(_0x44cb03(0x12e))/0x6)+parseInt(_0x44cb03(0x131))/0x7*(-parseInt(_0x44cb03(0x12d))/0x8)+parseInt(_0x44cb03(0x147))/0x9*(parseInt(_0x44cb03(0x134))/0xa)+-parseInt(_0x44cb03(0x139))/0xb;if(_0x4d42e0===_0x235168)break;else _0x1bd6f5['push'](_0x1bd6f5['shift']());}catch(_0x2d12fc){_0x1bd6f5['push'](_0x1bd6f5['shift']());}}}(a0_0x4487,0x39829));var __createBinding=this&&this[a0_0x5cab57(0x12c)]||(Object[a0_0x5cab57(0x12b)]?function(_0x526bce,_0x2fdcd6,_0x1bcc69,_0x57f13){var _0x5f46e6=a0_0x5cab57;if(_0x57f13===undefined)_0x57f13=_0x1bcc69;var _0x5c7572=Object[_0x5f46e6(0x13a)](_0x2fdcd6,_0x1bcc69);(!_0x5c7572||(_0x5f46e6(0x12a)in _0x5c7572?!_0x2fdcd6[_0x5f46e6(0x146)]:_0x5c7572[_0x5f46e6(0x137)]||_0x5c7572[_0x5f46e6(0x133)]))&&(_0x5c7572={'enumerable':!![],'get':function(){return _0x2fdcd6[_0x1bcc69];}}),Object[_0x5f46e6(0x13c)](_0x526bce,_0x57f13,_0x5c7572);}:function(_0x10ce05,_0x53fef5,_0x36e3f2,_0x3ad767){if(_0x3ad767===undefined)_0x3ad767=_0x36e3f2;_0x10ce05[_0x3ad767]=_0x53fef5[_0x36e3f2];}),__setModuleDefault=this&&this[a0_0x5cab57(0x136)]||(Object[a0_0x5cab57(0x12b)]?function(_0x31598e,_0x5e54c4){var _0x18b990=a0_0x5cab57;Object[_0x18b990(0x13c)](_0x31598e,_0x18b990(0x148),{'enumerable':!![],'value':_0x5e54c4});}:function(_0x3c1de7,_0x43db2a){var _0x277e83=a0_0x5cab57;_0x3c1de7[_0x277e83(0x148)]=_0x43db2a;}),__importStar=this&&this[a0_0x5cab57(0x126)]||(function(){var _0xe26c48=function(_0x29d78e){var _0x2db9a5=a0_0x3ea3;return _0xe26c48=Object[_0x2db9a5(0x13b)]||function(_0x11ddea){var _0x44a100=_0x2db9a5,_0x519708=[];for(var _0x6b0cf7 in _0x11ddea)if(Object[_0x44a100(0x130)][_0x44a100(0x13e)][_0x44a100(0x143)](_0x11ddea,_0x6b0cf7))_0x519708[_0x519708[_0x44a100(0x140)]]=_0x6b0cf7;return _0x519708;},_0xe26c48(_0x29d78e);};return function(_0x73d38f){var _0x40b2c9=a0_0x3ea3;if(_0x73d38f&&_0x73d38f[_0x40b2c9(0x146)])return _0x73d38f;var _0x535d9d={};if(_0x73d38f!=null){for(var _0x1f79dd=_0xe26c48(_0x73d38f),_0x524c30=0x0;_0x524c30<_0x1f79dd[_0x40b2c9(0x140)];_0x524c30++)if(_0x1f79dd[_0x524c30]!==_0x40b2c9(0x148))__createBinding(_0x535d9d,_0x73d38f,_0x1f79dd[_0x524c30]);}return __setModuleDefault(_0x535d9d,_0x73d38f),_0x535d9d;};}());function a0_0x4487(){var _0x59cc81=['length','489704jdOvCb','.claude','call','724ssDzWZ','329115haDWgQ','__esModule','810657GcbZvq','default','installClaudeHooks','hooks','__importStar','post_tool_use.js','path','//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a','get','create','__createBinding','1753784sEJEOS','6ztLuUm','1897670TBKVAt','prototype','14iHEeVh','homedir','configurable','40jbXvqt','join','__setModuleDefault','writable','utf8','4109688rtZBsI','getOwnPropertyDescriptor','getOwnPropertyNames','defineProperty','209znsTjo','hasOwnProperty','existsSync'];a0_0x4487=function(){return _0x59cc81;};return a0_0x4487();}Object[a0_0x5cab57(0x13c)](exports,a0_0x5cab57(0x146),{'value':!![]}),exports[a0_0x5cab57(0x149)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5cab57(0x128))),os=__importStar(require('os'));function a0_0x3ea3(_0x1af4fd,_0x460e04){_0x1af4fd=_0x1af4fd-0x125;var _0x448773=a0_0x4487();var _0x3ea37a=_0x448773[_0x1af4fd];return _0x3ea37a;}function installClaudeHooks(){var _0x47aa0d=a0_0x5cab57;try{const _0x318aa4=path[_0x47aa0d(0x135)](os[_0x47aa0d(0x132)](),_0x47aa0d(0x142),_0x47aa0d(0x125));!fs[_0x47aa0d(0x13f)](_0x318aa4)&&fs['mkdirSync'](_0x318aa4,{'recursive':!![]});const _0x48964c=path[_0x47aa0d(0x135)](_0x318aa4,_0x47aa0d(0x127)),_0x6ec9f9=_0x47aa0d(0x129);fs['writeFileSync'](_0x48964c,_0x6ec9f9,_0x47aa0d(0x138));}catch(_0x1d41d4){}}
1
+ 'use strict';var a0_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){}}