trimprompt 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cache-manager.js +1 -1
- package/cache.js +1 -1
- package/ccr.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/file-watcher.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/hooks/claude-hook.js +1 -1
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/postinstall.js +2 -51
- package/proxy-conv.js +1 -1
- package/proxy-resp.js +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/generic.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0xce597b=a0_0x12c1;(function(_0x18b230,_0x8b1558){const _0x204657=a0_0x12c1,_0xedea5d=_0x18b230();while(!![]){try{const _0x4b0dba=parseInt(_0x204657(0x18d))/0x1*(-parseInt(_0x204657(0x17e))/0x2)+parseInt(_0x204657(0x191))/0x3*(parseInt(_0x204657(0x19a))/0x4)+-parseInt(_0x204657(0x18b))/0x5*(parseInt(_0x204657(0x1ab))/0x6)+-parseInt(_0x204657(0x185))/0x7*(parseInt(_0x204657(0x1a8))/0x8)+parseInt(_0x204657(0x196))/0x9*(-parseInt(_0x204657(0x1a7))/0xa)+parseInt(_0x204657(0x184))/0xb+parseInt(_0x204657(0x194))/0xc;if(_0x4b0dba===_0x8b1558)break;else _0xedea5d['push'](_0xedea5d['shift']());}catch(_0x19df28){_0xedea5d['push'](_0xedea5d['shift']());}}}(a0_0x44d4,0x3b975));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0xce597b(0x192)]=stripAnsi,exports[a0_0xce597b(0x1aa)]=collapseDuplicates,exports['collapseWhitespace']=collapseWhitespace,exports[a0_0xce597b(0x1a3)]=stripComments,exports['smartCrushJson']=smartCrushJson,exports[a0_0xce597b(0x187)]=softTruncate;function stripAnsi(_0x2b1790){const _0x40c728=a0_0xce597b,_0x4ba5c5=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x2b1790[_0x40c728(0x1ac)](_0x4ba5c5,'');}function a0_0x12c1(_0x20d8ce,_0x5a1c15){_0x20d8ce=_0x20d8ce-0x17d;const _0x44d4ed=a0_0x44d4();let _0x12c12b=_0x44d4ed[_0x20d8ce];return _0x12c12b;}function collapseDuplicates(_0x21eddc){const _0x9b371=a0_0xce597b,_0x43accb=_0x21eddc['split']('\x0a');if(_0x43accb[_0x9b371(0x181)]<=0x1)return _0x21eddc;const _0x337136=[];let _0x3f3d37=_0x43accb[0x0],_0x13a866=0x1;for(let _0x5a9cf2=0x1;_0x5a9cf2<_0x43accb['length'];_0x5a9cf2++){const _0x4817a9=_0x43accb[_0x5a9cf2];_0x4817a9===_0x3f3d37&&_0x4817a9[_0x9b371(0x1a0)]()[_0x9b371(0x181)]>0x0?_0x13a866++:(_0x13a866>0x1?_0x337136['push'](_0x3f3d37+_0x9b371(0x18e)+_0x13a866+']'):_0x337136['push'](_0x3f3d37),_0x3f3d37=_0x4817a9,_0x13a866=0x1);}return _0x13a866>0x1?_0x337136[_0x9b371(0x190)](_0x3f3d37+_0x9b371(0x18e)+_0x13a866+']'):_0x337136['push'](_0x3f3d37),_0x337136[_0x9b371(0x19e)]('\x0a');}function collapseWhitespace(_0x3a9cf4){const _0x1c9c9c=a0_0xce597b;let _0x410aa3=_0x3a9cf4[_0x1c9c9c(0x1ac)](/[ \t]+$/gm,'');return _0x410aa3=_0x410aa3[_0x1c9c9c(0x1ac)](/\n{4,}/g,'\x0a\x0a\x0a'),_0x410aa3;}function a0_0x44d4(){const _0x54c9d8=['\x0a...\x20[TrimPrompt:\x20Truncated\x20','slice','length','repository','\x20characters\x20of\x20output]\x20...\x0a','3512003YVumNI','2980649eVUlXd','toLowerCase','softTruncate','integrity','\x20more\x20rows','dev','65JqUIxK','funding','813kEAKiX','\x20[x','split','push','661809IVHCSW','stripAnsi','parse','10392684ShieFC','keys','45rdEaZg','startsWith','object','signature','4FBKBFL','test','resolved','hash','join','\x20fields,\x20showing\x20','trim','filter','bugs','stripComments','...\x20+','sha','includes','237530GjHSlq','8OKYzsV','substring','collapseDuplicates','174954yicADt','replace','stringify','586uyiqMv'];a0_0x44d4=function(){return _0x54c9d8;};return a0_0x44d4();}function stripComments(_0x2b7e5b,_0x4c44c8){const _0x3d0db9=a0_0xce597b;if(!_0x4c44c8)return _0x2b7e5b;const _0x42e30d=_0x2b7e5b[_0x3d0db9(0x18f)]('\x0a');if(_0x42e30d[_0x3d0db9(0x181)]<=0x96)return _0x2b7e5b;const _0x1e7669={'.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*#(?!!)/},_0x47c566=_0x1e7669[_0x4c44c8['toLowerCase']()];if(!_0x47c566)return _0x2b7e5b;const _0x2b28d4=_0x42e30d[_0x3d0db9(0x1a1)](_0xfa3c19=>!_0x47c566[_0x3d0db9(0x19b)](_0xfa3c19));return _0x2b28d4[_0x3d0db9(0x19e)]('\x0a');}function smartCrushJson(_0x15c56d){const _0x4fe073=a0_0xce597b;try{const _0x1a0f58=_0x15c56d[_0x4fe073(0x1a0)]();if(!_0x1a0f58[_0x4fe073(0x197)]('['))return null;const _0x1c31d8=JSON[_0x4fe073(0x193)](_0x1a0f58);if(!Array['isArray'](_0x1c31d8)||_0x1c31d8['length']<0x3)return null;if(typeof _0x1c31d8[0x0]!==_0x4fe073(0x198)||_0x1c31d8[0x0]===null)return null;const _0xbaa195=Object[_0x4fe073(0x195)](_0x1c31d8[0x0]);if(_0xbaa195[_0x4fe073(0x181)]===0x0)return null;const _0x42c9cf=_0xbaa195['filter'](_0x2ea0da=>{const _0x2d185a=_0x4fe073,_0x1bc33d=_0x2ea0da[_0x2d185a(0x186)]();return!_0x1bc33d[_0x2d185a(0x1a6)](_0x2d185a(0x19c))&&!_0x1bc33d['includes'](_0x2d185a(0x188))&&!_0x1bc33d['includes'](_0x2d185a(0x1a5))&&!_0x1bc33d['includes'](_0x2d185a(0x19d))&&!_0x1bc33d['includes']('checksum')&&!_0x1bc33d[_0x2d185a(0x1a6)](_0x2d185a(0x199))&&!_0x1bc33d[_0x2d185a(0x1a6)](_0x2d185a(0x18a))&&_0x1bc33d!==_0x2d185a(0x18c)&&_0x1bc33d!=='engines'&&_0x1bc33d!==_0x2d185a(0x1a2)&&_0x1bc33d!==_0x2d185a(0x182);})[_0x4fe073(0x180)](0x0,0x6);if(_0x42c9cf['length']===0x0)return null;const _0xaae1a7=[];_0xaae1a7[_0x4fe073(0x190)](_0x42c9cf[_0x4fe073(0x19e)]('|'));const _0x4145d3=0x1e;for(let _0x43f9f8=0x0;_0x43f9f8<Math['min'](_0x1c31d8[_0x4fe073(0x181)],_0x4145d3);_0x43f9f8++){const _0x5af8c5=_0x42c9cf['map'](_0x2b2c23=>{const _0x4f20bd=_0x4fe073,_0x2f7969=_0x1c31d8[_0x43f9f8][_0x2b2c23];if(_0x2f7969===null||_0x2f7969===undefined)return'';if(typeof _0x2f7969===_0x4f20bd(0x198))return JSON[_0x4f20bd(0x17d)](_0x2f7969)[_0x4f20bd(0x1a9)](0x0,0x28);return String(_0x2f7969)['substring'](0x0,0x3c);});_0xaae1a7['push'](_0x5af8c5[_0x4fe073(0x19e)]('|'));}_0x1c31d8[_0x4fe073(0x181)]>_0x4145d3&&_0xaae1a7[_0x4fe073(0x190)](_0x4fe073(0x1a4)+(_0x1c31d8[_0x4fe073(0x181)]-_0x4145d3)+_0x4fe073(0x189));_0xaae1a7[_0x4fe073(0x190)]('\x0a('+_0x1c31d8[_0x4fe073(0x181)]+'\x20items,\x20'+_0xbaa195[_0x4fe073(0x181)]+_0x4fe073(0x19f)+_0x42c9cf[_0x4fe073(0x181)]+'\x20key\x20fields)');const _0x4392e8=_0xaae1a7[_0x4fe073(0x19e)]('\x0a');if(_0x4392e8[_0x4fe073(0x181)]<_0x1a0f58[_0x4fe073(0x181)])return _0x4392e8;return null;}catch{return null;}}function softTruncate(_0x582874,_0x5e03c4=0x4e20){const _0x1ff8a5=a0_0xce597b;if(_0x582874[_0x1ff8a5(0x181)]<=_0x5e03c4)return _0x582874;const _0x50a3e5=_0x582874[_0x1ff8a5(0x18f)]('\x0a');if(_0x50a3e5[_0x1ff8a5(0x181)]<=0xc8)return _0x582874;const _0x11d917=0x32,_0x27c877=0x96,_0x4802bb=_0x50a3e5[_0x1ff8a5(0x180)](0x0,_0x11d917),_0x1735d7=_0x50a3e5[_0x1ff8a5(0x180)](_0x50a3e5[_0x1ff8a5(0x181)]-_0x27c877),_0x38264a=_0x582874[_0x1ff8a5(0x181)]-(_0x4802bb['join']('\x0a')[_0x1ff8a5(0x181)]+_0x1735d7[_0x1ff8a5(0x19e)]('\x0a')[_0x1ff8a5(0x181)]);return[..._0x4802bb,_0x1ff8a5(0x17f)+_0x38264a+_0x1ff8a5(0x183),..._0x1735d7][_0x1ff8a5(0x19e)]('\x0a');}
|
package/filters/git.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x58eea1=a0_0x4742;function a0_0x587f(){const _0x27cf05=['15291216oLmvtC','replace','__esModule','basename','---','filterGitStatus','writable','\x20\x20...\x20(+','__setModuleDefault','slice','[file]\x20','1034055PPYvnz','length','\x20\x20...\x20+','Clean\x20working\x20tree','filter','unknown_file','default','diff\x20--git','30UVkZLw','substring','filterGitLog','call','164212OxsnFf','__createBinding','getOwnPropertyNames','308LNAuOV','__importStar','get','startsWith','dirname','388380KHhxOG','\x20\x20??\x20','match','hasOwnProperty','\x20(+','51672GeaZyC','trim','configurable','push','getOwnPropertyDescriptor','create','---END---','entries','+++','defineProperty','\x20more\x20modifications','\x0aChanges:','map','filterGitDiff','2379448LPFgBi','prototype','split','\x20untracked\x20files)','344528NJSEZX','join'];a0_0x587f=function(){return _0x27cf05;};return a0_0x587f();}(function(_0x55f035,_0x457954){const _0x546118=a0_0x4742,_0x74043a=_0x55f035();while(!![]){try{const _0x1eca78=-parseInt(_0x546118(0x200))/0x1+-parseInt(_0x546118(0x1e7))/0x2+parseInt(_0x546118(0x1f4))/0x3+-parseInt(_0x546118(0x208))/0x4*(parseInt(_0x546118(0x1fc))/0x5)+-parseInt(_0x546118(0x1d5))/0x6*(parseInt(_0x546118(0x203))/0x7)+-parseInt(_0x546118(0x1e3))/0x8+parseInt(_0x546118(0x1e9))/0x9;if(_0x1eca78===_0x457954)break;else _0x74043a['push'](_0x74043a['shift']());}catch(_0xd986bc){_0x74043a['push'](_0x74043a['shift']());}}}(a0_0x587f,0x6d730));var __createBinding=this&&this[a0_0x58eea1(0x201)]||(Object[a0_0x58eea1(0x1da)]?function(_0xb0400e,_0x1d0541,_0x3d59d0,_0x414978){const _0x4151d1=a0_0x58eea1;if(_0x414978===undefined)_0x414978=_0x3d59d0;var _0x4558f3=Object[_0x4151d1(0x1d9)](_0x1d0541,_0x3d59d0);(!_0x4558f3||(_0x4151d1(0x205)in _0x4558f3?!_0x1d0541[_0x4151d1(0x1eb)]:_0x4558f3[_0x4151d1(0x1ef)]||_0x4558f3[_0x4151d1(0x1d7)]))&&(_0x4558f3={'enumerable':!![],'get':function(){return _0x1d0541[_0x3d59d0];}}),Object[_0x4151d1(0x1de)](_0xb0400e,_0x414978,_0x4558f3);}:function(_0x497382,_0x57e10e,_0x14e944,_0x386078){if(_0x386078===undefined)_0x386078=_0x14e944;_0x497382[_0x386078]=_0x57e10e[_0x14e944];}),__setModuleDefault=this&&this[a0_0x58eea1(0x1f1)]||(Object[a0_0x58eea1(0x1da)]?function(_0x31c8cc,_0x479737){const _0x2336b9=a0_0x58eea1;Object[_0x2336b9(0x1de)](_0x31c8cc,_0x2336b9(0x1fa),{'enumerable':!![],'value':_0x479737});}:function(_0x13737d,_0x39a839){_0x13737d['default']=_0x39a839;}),__importStar=this&&this[a0_0x58eea1(0x204)]||(function(){var _0x4afb78=function(_0x197b10){const _0xd39905=a0_0x4742;return _0x4afb78=Object[_0xd39905(0x202)]||function(_0x48a86){const _0x25a7d1=_0xd39905;var _0x2e9d53=[];for(var _0x243d93 in _0x48a86)if(Object[_0x25a7d1(0x1e4)][_0x25a7d1(0x20b)][_0x25a7d1(0x1ff)](_0x48a86,_0x243d93))_0x2e9d53[_0x2e9d53[_0x25a7d1(0x1f5)]]=_0x243d93;return _0x2e9d53;},_0x4afb78(_0x197b10);};return function(_0x5a8a28){const _0x34090d=a0_0x4742;if(_0x5a8a28&&_0x5a8a28[_0x34090d(0x1eb)])return _0x5a8a28;var _0x3bf384={};if(_0x5a8a28!=null){for(var _0x5e5534=_0x4afb78(_0x5a8a28),_0x27158d=0x0;_0x27158d<_0x5e5534[_0x34090d(0x1f5)];_0x27158d++)if(_0x5e5534[_0x27158d]!=='default')__createBinding(_0x3bf384,_0x5a8a28,_0x5e5534[_0x27158d]);}return __setModuleDefault(_0x3bf384,_0x5a8a28),_0x3bf384;};}());function a0_0x4742(_0x152337,_0x4c1e19){_0x152337=_0x152337-0x1d4;const _0x587fb4=a0_0x587f();let _0x474273=_0x587fb4[_0x152337];return _0x474273;}Object[a0_0x58eea1(0x1de)](exports,a0_0x58eea1(0x1eb),{'value':!![]}),exports[a0_0x58eea1(0x1ee)]=filterGitStatus,exports[a0_0x58eea1(0x1fe)]=filterGitLog,exports[a0_0x58eea1(0x1e2)]=filterGitDiff;const path=__importStar(require('path'));function filterGitStatus(_0x5f7a58){const _0xc9a6d2=a0_0x58eea1,_0x502f63=_0x5f7a58[_0xc9a6d2(0x1e5)]('\x0a')['map'](_0x49376d=>_0x49376d[_0xc9a6d2(0x1d6)]())[_0xc9a6d2(0x1f8)](_0x22077a=>_0x22077a[_0xc9a6d2(0x1f5)]>0x0);if(_0x502f63['length']===0x0)return _0xc9a6d2(0x1f7);const _0x515e92=[],_0x500c58=[],_0x3b796e=[];for(const _0x18927b of _0x502f63){if(_0x18927b['startsWith']('##')){const _0x40329d=_0x18927b[_0xc9a6d2(0x1ea)](/^##\s*/,'');_0x515e92[_0xc9a6d2(0x1d8)]('*\x20Branch:\x20'+_0x40329d);}else _0x18927b[_0xc9a6d2(0x206)]('??')?_0x500c58[_0xc9a6d2(0x1d8)](_0x18927b[_0xc9a6d2(0x1fd)](0x3)[_0xc9a6d2(0x1d6)]()):_0x3b796e['push'](_0x18927b);}_0x3b796e[_0xc9a6d2(0x1f5)]>0x0&&(_0x515e92[_0xc9a6d2(0x1d8)](_0xc9a6d2(0x1e0)),_0x515e92['push'](..._0x3b796e[_0xc9a6d2(0x1e1)](_0x5d5717=>'\x20\x20'+_0x5d5717)));if(_0x500c58[_0xc9a6d2(0x1f5)]>0x0){_0x515e92[_0xc9a6d2(0x1d8)]('\x0aUntracked\x20files:');const _0x5edbcd={},_0x273bc8=[];for(const _0x21fc11 of _0x500c58){const _0x2326de=path[_0xc9a6d2(0x207)](_0x21fc11);_0x2326de==='.'||_0x2326de===''?_0x273bc8[_0xc9a6d2(0x1d8)](_0x21fc11):(!_0x5edbcd[_0x2326de]&&(_0x5edbcd[_0x2326de]=[]),_0x5edbcd[_0x2326de]['push'](path[_0xc9a6d2(0x1ec)](_0x21fc11)));}for(const [_0x10cff2,_0x10c9aa]of Object[_0xc9a6d2(0x1dc)](_0x5edbcd)){if(_0x10c9aa[_0xc9a6d2(0x1f5)]>0x5)_0x515e92[_0xc9a6d2(0x1d8)](_0xc9a6d2(0x209)+_0x10cff2+'/\x20('+_0x10c9aa['length']+_0xc9a6d2(0x1e6));else for(const _0x2e5b5e of _0x10c9aa){_0x515e92[_0xc9a6d2(0x1d8)]('\x20\x20??\x20'+path['join'](_0x10cff2,_0x2e5b5e));}}for(const _0x4a7243 of _0x273bc8){_0x515e92['push'](_0xc9a6d2(0x209)+_0x4a7243);}}return _0x515e92[_0xc9a6d2(0x1e8)]('\x0a');}function filterGitLog(_0xe5bd68){const _0x115791=a0_0x58eea1,_0x45a882=_0xe5bd68['split'](_0x115791(0x1db))['map'](_0x1ea066=>_0x1ea066[_0x115791(0x1d6)]())[_0x115791(0x1f8)](_0x5fa13a=>_0x5fa13a['length']>0x0);if(_0x45a882[_0x115791(0x1f5)]===0x0)return _0xe5bd68;const _0x320fb5=[];for(const _0x501dd1 of _0x45a882){const _0x1c0e96=_0x501dd1[_0x115791(0x1e5)]('\x0a'),_0x121b87=_0x1c0e96[0x0]||'',_0x999a91=_0x1c0e96[_0x115791(0x1f2)](0x1)['map'](_0x118c16=>_0x118c16[_0x115791(0x1d6)]())[_0x115791(0x1f8)](_0x128387=>_0x128387[_0x115791(0x1f5)]>0x0);_0x320fb5[_0x115791(0x1d8)]('-\x20'+_0x121b87),_0x999a91[_0x115791(0x1f5)]>0x0&&(_0x320fb5[_0x115791(0x1d8)]('\x20\x20'+_0x999a91[0x0]),_0x999a91[_0x115791(0x1f5)]>0x1&&_0x320fb5['push'](_0x115791(0x1f0)+(_0x999a91[_0x115791(0x1f5)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x320fb5['join']('\x0a');}function filterGitDiff(_0x345986){const _0x57a4fa=a0_0x58eea1,_0x4bc761=_0x345986[_0x57a4fa(0x1e5)]('\x0a'),_0x4ea506=[];let _0xe1dc30='',_0x3cf139=0x0,_0xce03a0=0x0,_0x1a62c8=[];const _0x41fe91=()=>{const _0x49e1b5=_0x57a4fa;if(_0xe1dc30&&(_0x3cf139>0x0||_0xce03a0>0x0)){_0x4ea506[_0x49e1b5(0x1d8)](_0x49e1b5(0x1f3)+_0xe1dc30+_0x49e1b5(0x1d4)+_0x3cf139+'\x20-'+_0xce03a0+')');const _0x2a52a8=0xa,_0x44cbb7=_0x1a62c8['slice'](0x0,_0x2a52a8);for(const _0x374e27 of _0x44cbb7){_0x4ea506[_0x49e1b5(0x1d8)]('\x20\x20'+_0x374e27);}const _0x491148=_0x3cf139+_0xce03a0-_0x2a52a8;_0x491148>0x0&&_0x4ea506[_0x49e1b5(0x1d8)](_0x49e1b5(0x1f6)+_0x491148+_0x49e1b5(0x1df));}_0x3cf139=0x0,_0xce03a0=0x0,_0x1a62c8=[];};for(const _0x599620 of _0x4bc761){if(_0x599620[_0x57a4fa(0x206)](_0x57a4fa(0x1fb))){_0x41fe91();const _0x3e79d0=_0x599620[_0x57a4fa(0x20a)](/\sb\/(.+)$/);_0xe1dc30=_0x3e79d0?_0x3e79d0[0x1]:_0x57a4fa(0x1f9);}else{if(_0x599620[_0x57a4fa(0x206)]('+')&&!_0x599620[_0x57a4fa(0x206)](_0x57a4fa(0x1dd)))_0x3cf139++,_0x1a62c8[_0x57a4fa(0x1d8)](_0x599620);else _0x599620[_0x57a4fa(0x206)]('-')&&!_0x599620[_0x57a4fa(0x206)](_0x57a4fa(0x1ed))&&(_0xce03a0++,_0x1a62c8[_0x57a4fa(0x1d8)](_0x599620));}}_0x41fe91();const _0x31b287=_0x4ea506[_0x57a4fa(0x1e8)]('\x0a');return _0x31b287[_0x57a4fa(0x1f5)]>0x0?_0x31b287:'No\x20modifications';}
|
package/filters/go.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x33e4c0=a0_0x274d;(function(_0x2c8865,_0x5af6bd){const _0x23f16f=a0_0x274d,_0x2ff176=_0x2c8865();while(!![]){try{const _0x3f0bae=-parseInt(_0x23f16f(0x1c5))/0x1*(-parseInt(_0x23f16f(0x1bf))/0x2)+-parseInt(_0x23f16f(0x1b6))/0x3*(parseInt(_0x23f16f(0x1d0))/0x4)+-parseInt(_0x23f16f(0x1c2))/0x5*(parseInt(_0x23f16f(0x1cc))/0x6)+parseInt(_0x23f16f(0x1b5))/0x7+parseInt(_0x23f16f(0x1ce))/0x8+parseInt(_0x23f16f(0x1c1))/0x9*(parseInt(_0x23f16f(0x1c3))/0xa)+-parseInt(_0x23f16f(0x1b3))/0xb;if(_0x3f0bae===_0x5af6bd)break;else _0x2ff176['push'](_0x2ff176['shift']());}catch(_0x1a2ffa){_0x2ff176['push'](_0x2ff176['shift']());}}}(a0_0x24da,0xc95ce));Object[a0_0x33e4c0(0x1b7)](exports,'__esModule',{'value':!![]}),exports[a0_0x33e4c0(0x1ca)]=filterGoTest,exports[a0_0x33e4c0(0x1d1)]=filterGoVet;function a0_0x274d(_0x295903,_0x12d55d){_0x295903=_0x295903-0x1b3;const _0x24da6f=a0_0x24da();let _0x274dcf=_0x24da6f[_0x295903];return _0x274dcf;}function a0_0x24da(){const _0x14c00b=['Go\x20test:\x20all\x20tests\x20passed','\x20issues\x20found','split','length','...\x20+','PASS','match','6pLZvmW','name','4761vAzLHN','45hvIQQQ','28370pAWqRP','\x20\x20...\x20+','170624dJWAXH','startsWith','\x20more\x20failures','===\x20RUN','\x20passed,\x20','filterGoTest','\x20failed,\x20','951624PwTTbM','trim','8276264xrXgCM','no\x20test\x20files','4MHJiZc','filterGoVet','\x20skipped','Go\x20vet:\x20','slice','join','push','FAIL','includes','\x20\x20\x20\x20...\x20+','lines','17575602siipgy','Go\x20test:\x20no\x20test\x20files','11497094IFOQyE','2518860qnjpcG','defineProperty'];a0_0x24da=function(){return _0x14c00b;};return a0_0x24da();}function filterGoTest(_0x2dc029){const _0x4cd2f5=a0_0x33e4c0,_0x37ac30=_0x2dc029[_0x4cd2f5(0x1ba)]('\x0a');let _0x41f0be=0x0,_0x6b1c5c=0x0,_0x388883=0x0;const _0x4afca8=[],_0x3e941a=[];let _0x29a9a9=null;for(const _0x49c846 of _0x37ac30){const _0x50c69d=_0x49c846['trim'](),_0x393091=_0x50c69d[_0x4cd2f5(0x1be)](/^ok\s+\S+\s+[\d.]+s/);if(_0x393091){_0x3e941a['push'](_0x50c69d);continue;}const _0x55aec7=_0x50c69d[_0x4cd2f5(0x1be)](/^FAIL\s+\S+/);if(_0x55aec7){_0x3e941a[_0x4cd2f5(0x1d6)](_0x50c69d);continue;}const _0x3a9369=_0x50c69d[_0x4cd2f5(0x1be)](/^--- PASS:/);if(_0x3a9369){_0x41f0be++;continue;}const _0xcf9a0d=_0x50c69d[_0x4cd2f5(0x1be)](/^--- FAIL:\s+(\S+)/);if(_0xcf9a0d){if(_0x29a9a9)_0x4afca8[_0x4cd2f5(0x1d6)](_0x29a9a9);_0x29a9a9={'name':_0xcf9a0d[0x1],'lines':[]},_0x6b1c5c++;continue;}if(_0x50c69d['startsWith']('---\x20SKIP:')){_0x388883++;continue;}_0x29a9a9&&_0x50c69d[_0x4cd2f5(0x1bb)]>0x0&&!_0x50c69d[_0x4cd2f5(0x1c6)](_0x4cd2f5(0x1c8))&&_0x29a9a9['lines']['push'](_0x49c846),_0x50c69d[_0x4cd2f5(0x1c6)](_0x4cd2f5(0x1c8))&&(_0x29a9a9&&(_0x4afca8[_0x4cd2f5(0x1d6)](_0x29a9a9),_0x29a9a9=null));}if(_0x29a9a9)_0x4afca8[_0x4cd2f5(0x1d6)](_0x29a9a9);if(_0x41f0be===0x0&&_0x6b1c5c===0x0&&_0x388883===0x0){if(_0x2dc029[_0x4cd2f5(0x1d8)](_0x4cd2f5(0x1bd))&&!_0x2dc029[_0x4cd2f5(0x1d8)](_0x4cd2f5(0x1d7)))return _0x4cd2f5(0x1b8);if(_0x2dc029[_0x4cd2f5(0x1d8)](_0x4cd2f5(0x1cf)))return _0x4cd2f5(0x1b4);return _0x2dc029;}if(_0x6b1c5c===0x0){const _0x38b45b=['Go\x20test:\x20'+_0x41f0be+'\x20passed'];if(_0x388883>0x0)_0x38b45b[_0x4cd2f5(0x1d6)](_0x388883+_0x4cd2f5(0x1d2));return _0x38b45b[_0x4cd2f5(0x1d5)](',\x20');}const _0x28df76=['Go\x20test:\x20'+_0x41f0be+_0x4cd2f5(0x1c9)+_0x6b1c5c+_0x4cd2f5(0x1cb)+_0x388883+'\x20skipped'];if(_0x4afca8[_0x4cd2f5(0x1bb)]>0x0){_0x28df76[_0x4cd2f5(0x1d6)]('\x0aFailures:');const _0x354bd3=0x3;for(let _0x5cd064=0x0;_0x5cd064<Math['min'](_0x4afca8[_0x4cd2f5(0x1bb)],_0x354bd3);_0x5cd064++){const _0x5ac2f0=_0x4afca8[_0x5cd064];_0x28df76['push']('\x20\x20'+(_0x5cd064+0x1)+'.\x20'+_0x5ac2f0[_0x4cd2f5(0x1c0)]);for(const _0x4c4212 of _0x5ac2f0[_0x4cd2f5(0x1da)][_0x4cd2f5(0x1d4)](0x0,0x5)){_0x28df76['push']('\x20\x20\x20\x20'+_0x4c4212[_0x4cd2f5(0x1cd)]());}_0x5ac2f0[_0x4cd2f5(0x1da)][_0x4cd2f5(0x1bb)]>0x5&&_0x28df76[_0x4cd2f5(0x1d6)](_0x4cd2f5(0x1d9)+(_0x5ac2f0[_0x4cd2f5(0x1da)][_0x4cd2f5(0x1bb)]-0x5)+'\x20more\x20lines');}_0x4afca8[_0x4cd2f5(0x1bb)]>_0x354bd3&&_0x28df76[_0x4cd2f5(0x1d6)](_0x4cd2f5(0x1c4)+(_0x4afca8[_0x4cd2f5(0x1bb)]-_0x354bd3)+_0x4cd2f5(0x1c7));}return _0x28df76[_0x4cd2f5(0x1d5)]('\x0a');}function filterGoVet(_0x13177d){const _0x5d7b86=a0_0x33e4c0,_0x1ce701=_0x13177d[_0x5d7b86(0x1ba)]('\x0a')['filter'](_0x63a66d=>_0x63a66d[_0x5d7b86(0x1cd)]()[_0x5d7b86(0x1bb)]>0x0);if(_0x1ce701[_0x5d7b86(0x1bb)]===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x1ce701[_0x5d7b86(0x1bb)]<=0x14)return _0x13177d[_0x5d7b86(0x1cd)]();const _0x429084=[_0x5d7b86(0x1d3)+_0x1ce701[_0x5d7b86(0x1bb)]+_0x5d7b86(0x1b9)];return _0x429084['push'](..._0x1ce701['slice'](0x0,0xa)),_0x1ce701['length']>0xa&&_0x429084[_0x5d7b86(0x1d6)](_0x5d7b86(0x1bc)+(_0x1ce701[_0x5d7b86(0x1bb)]-0xa)+'\x20more\x20issues'),_0x429084['join']('\x0a');}
|
package/filters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;}
|
|
1
|
+
'use strict';const a0_0x566395=a0_0x5eec;(function(_0x33c7b7,_0x50ce74){const _0x175adc=a0_0x5eec,_0x468ae1=_0x33c7b7();while(!![]){try{const _0x476640=parseInt(_0x175adc(0x7d))/0x1+parseInt(_0x175adc(0x82))/0x2+parseInt(_0x175adc(0x8a))/0x3*(-parseInt(_0x175adc(0xdc))/0x4)+parseInt(_0x175adc(0x90))/0x5+-parseInt(_0x175adc(0xe0))/0x6+parseInt(_0x175adc(0xb2))/0x7*(-parseInt(_0x175adc(0xc8))/0x8)+parseInt(_0x175adc(0x9d))/0x9;if(_0x476640===_0x50ce74)break;else _0x468ae1['push'](_0x468ae1['shift']());}catch(_0x306237){_0x468ae1['push'](_0x468ae1['shift']());}}}(a0_0x195d,0x866d4));Object['defineProperty'](exports,a0_0x566395(0x78),{'value':!![]}),exports[a0_0x566395(0x7b)]=exports['lastRedactAudit']=void 0x0,exports[a0_0x566395(0xb6)]=compressOutput,exports[a0_0x566395(0xde)]=rewriteCommand;const generic_1=require(a0_0x566395(0x83)),git_1=require(a0_0x566395(0xd6)),python_1=require(a0_0x566395(0x8b)),js_1=require(a0_0x566395(0xba)),shell_1=require(a0_0x566395(0xa0)),rust_1=require(a0_0x566395(0x84)),go_1=require(a0_0x566395(0xd7)),devops_1=require(a0_0x566395(0x86)),redactor_1=require(a0_0x566395(0xb8)),tracker_1=require(a0_0x566395(0xbe));exports[a0_0x566395(0xbd)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x566395(0x7b)]=[];function isFeatureEnabled(_0x51cbfc){const _0x16ea98=a0_0x566395;try{const _0x2e1796=tracker_1[_0x16ea98(0x93)][_0x16ea98(0xc1)](),_0x3cfc10=_0x2e1796[_0x16ea98(0xb9)];if(!_0x3cfc10||_0x3cfc10[_0x51cbfc]===undefined)return!![];return _0x3cfc10[_0x51cbfc]!==![];}catch{return!![];}}function a0_0x5eec(_0x55a05e,_0x1bcd7e){_0x55a05e=_0x55a05e-0x74;const _0x195d46=a0_0x195d();let _0x5eeca6=_0x195d46[_0x55a05e];return _0x5eeca6;}function compressOutput(_0x2e23a6,_0x252b1b,_0x1c03e4,_0x480a1c=!![]){const _0x32dec1=a0_0x566395,_0x4f37a2=_0x2e23a6['trim']();let _0x2796e3=_0x252b1b;_0x1c03e4[_0x32dec1(0x80)]()[_0x32dec1(0x97)]>0x0&&(_0x2796e3=_0x252b1b+'\x0a'+_0x1c03e4);let _0xffb1c2=isFeatureEnabled(_0x32dec1(0xcb))?(0x0,generic_1['stripAnsi'])(_0x2796e3):_0x2796e3;const _0x4d2bb0=[];if(_0xffb1c2[_0x32dec1(0x97)]<_0x2796e3[_0x32dec1(0x97)])_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xcb));const _0x2cf6d3=(_0x1e7440,_0x2ad23d)=>{const _0x5aaa8a=_0x32dec1;return _0x4d2bb0['push'](_0x1e7440),exports[_0x5aaa8a(0x7b)]=_0x4d2bb0,_0x2ad23d;};if(_0x480a1c&&isFeatureEnabled('redact')){const _0x3c15b3=redactor_1[_0x32dec1(0xb5)][_0x32dec1(0x95)](_0xffb1c2);_0xffb1c2=_0x3c15b3[_0x32dec1(0x96)],exports[_0x32dec1(0xbd)]={'secretsFound':_0x3c15b3['secretsFound'],'secretTypes':_0x3c15b3[_0x32dec1(0x99)]};if(_0x3c15b3[_0x32dec1(0x7f)]>0x0)_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xdd));}else exports[_0x32dec1(0xbd)]={'secretsFound':0x0,'secretTypes':[]};const _0x4d4076=_0x4f37a2['toLowerCase'](),_0x242397=isFeatureEnabled(_0x32dec1(0x9f));try{if(_0x242397){if(_0x4d4076['includes'](_0x32dec1(0xce))||_0x4d4076['includes'](_0x32dec1(0xc3)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1[_0x32dec1(0xd9)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x8d))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd1)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1['filterGitLog'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xc4))||_0x4d4076['includes'](_0x32dec1(0x9e))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xa4)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,git_1[_0x32dec1(0xb3)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('pytest')||_0x4d4076[_0x32dec1(0xb1)](/python3?\s+-m\s+pytest/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,python_1[_0x32dec1(0xc9)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('pip\x20install')||_0x4d4076[_0x32dec1(0xc6)]('pip3\x20install'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,python_1['filterPipInstall'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('ruff\x20check')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x88)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1[_0x32dec1(0xbc)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xb7))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xab))||_0x4d4076['endsWith']('npm\x20i')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xac))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x9b)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1[_0x32dec1(0x8f)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd5))||_0x4d4076[_0x32dec1(0xc6)]('vitest'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1[_0x32dec1(0xaf)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('npm\x20test')||_0x4d4076[_0x32dec1(0xc6)]('pnpm\x20test')||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xdb))||_0x4d4076['includes']('npm\x20run\x20test'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,js_1['filterJestVitest'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x92)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,rust_1[_0x32dec1(0xda)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd2))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x7a))||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xd4)))return _0x2cf6d3('filter',(0x0,rust_1[_0x32dec1(0xa5)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)]('go\x20test'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,go_1[_0x32dec1(0xbb)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xa6)))return _0x2cf6d3('filter',(0x0,go_1['filterGoVet'])(_0xffb1c2));if(_0x4d4076['match'](/docker\s+ps/))return _0x2cf6d3('filter',(0x0,devops_1[_0x32dec1(0x98)])(_0xffb1c2));if(_0x4d4076['match'](/docker\s+images/))return _0x2cf6d3('filter',(0x0,devops_1[_0x32dec1(0xca)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/docker\s+logs/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1[_0x32dec1(0x89)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0x81))){const _0x3eb0ec=_0x4d4076[_0x32dec1(0xb1)](/kubectl\s+(get|logs|describe|apply)/),_0x591ed0=_0x3eb0ec?_0x3eb0ec[0x1]:_0x32dec1(0x85);return _0x2cf6d3(_0x32dec1(0x9f),(0x0,devops_1['filterKubectl'])(_0xffb1c2,_0x591ed0));}if(_0x4d4076[_0x32dec1(0xb1)](/^(ls|dir)(\s|$)/)||_0x4d4076['includes'](_0x32dec1(0xaa))||_0x4d4076[_0x32dec1(0x91)](_0x32dec1(0xc7)))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0xa9)])(_0xffb1c2));if(_0x4d4076['match'](/^tree(\s|$)/)||_0x4d4076[_0x32dec1(0xc6)](_0x32dec1(0xb4))||_0x4d4076[_0x32dec1(0x91)]('\x20tree'))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0xc5)])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x4b8e19=(0x0,shell_1[_0x32dec1(0xe1)])(_0xffb1c2,_0x4f37a2);if(_0x4b8e19[_0x32dec1(0xc6)]('[lock\x20file]'))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xa8));else{if(_0x4b8e19['includes'](_0x32dec1(0x8c))||_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0x8e)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xc2));else{if(_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0xcd)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0xa7));else{if(_0x4b8e19[_0x32dec1(0xc6)]('|\x20')&&_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0x74))&&_0x4b8e19[_0x32dec1(0x97)]<_0xffb1c2['length']*0.5)_0x4d2bb0['push'](_0x32dec1(0x87));else{if(_0x4b8e19[_0x32dec1(0xc6)](_0x32dec1(0xcf)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0x9f));}}}}if(_0x4b8e19['length']<_0xffb1c2['length']&&!_0x4d2bb0[_0x32dec1(0x76)](_0x492a9a=>_0x492a9a!==_0x32dec1(0xcb)&&_0x492a9a!==_0x32dec1(0xdd)))_0x4d2bb0[_0x32dec1(0xa3)](_0x32dec1(0x9f));return exports[_0x32dec1(0x7b)]=_0x4d2bb0,_0x4b8e19;}if(_0x4d4076[_0x32dec1(0xb1)](/^find(\s|$)/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1['filterFind'])(_0xffb1c2));if(_0x4d4076[_0x32dec1(0xb1)](/^(grep|rg|ripgrep)(\s|$)/))return _0x2cf6d3(_0x32dec1(0x9f),(0x0,shell_1[_0x32dec1(0x9a)])(_0xffb1c2));}}catch(_0x43f7f3){}return isFeatureEnabled(_0x32dec1(0xcc))&&(_0xffb1c2=(0x0,generic_1[_0x32dec1(0xa2)])(_0xffb1c2),_0x4d2bb0['push'](_0x32dec1(0xcc))),_0xffb1c2=(0x0,generic_1[_0x32dec1(0x7e)])(_0xffb1c2),_0xffb1c2=(0x0,generic_1[_0x32dec1(0xb0)])(_0xffb1c2,0x4e20),exports[_0x32dec1(0x7b)]=_0x4d2bb0,_0xffb1c2;}function a0_0x195d(){const _0x5ec3b9=['8kaVdsK','filterPytest','filterDockerImages','ansi_strip','whitespace','[code\x20skeleton]','git\x20status','lines\x20truncated','trim\x20pnpm','yadm\x20log','cargo\x20build','trim\x20find','cargo\x20clippy','jest','./git','./go','trim\x20pytest','filterGitStatus','filterCargoTest','yarn\x20test','124ohCMTx','redact','rewriteCommand','trim\x20','3431052IGrtOw','filterCat','---','trim\x20ls','some','test','__esModule','trim\x20read','cargo\x20check','lastFeatures','trim\x20go','1053663BDuDSl','collapseDuplicates','secretsFound','trim','kubectl','1735524wTpdBf','./generic','./rust','get','./devops','json_crusher','ruff\x20','filterDockerLogs','91425kMfaSs','./python','[binary','git\x20log','[minified\x20file]','filterNpmInstall','1349670iREiJh','endsWith','cargo\x20test','tracker','pattern','redactWithAudit','text','length','filterDockerPs','secretTypes','filterGrep','yarn\x20install','trim\x20npx','6757731XKUKOM','git\x20show','filter','./shell','trim\x20kubectl','collapseWhitespace','push','yadm\x20diff','filterCargoBuild','go\x20vet','skeleton','lock','filterLs','\x20ls\x20','npm\x20i\x20','pnpm\x20install','trim\x20ruff','trim\x20git','filterJestVitest','softTruncate','match','6125273KZmpnH','filterGitDiff','\x20tree\x20','redactor','compressOutput','npm\x20install','../redactor','features_enabled','./js','filterGoTest','filterRuff','lastRedactAudit','../tracker','trim\x20docker','startsWith','getConfig','binary','yadm\x20status','git\x20diff','filterTree','includes','\x20ls'];a0_0x195d=function(){return _0x5ec3b9;};return a0_0x195d();}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x566395(0xae)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':'trim\x20cargo'},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x566395(0xd0)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':'trim\x20npm'},{'pattern':/^npx\s+/,'prefix':a0_0x566395(0x9c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x566395(0x79)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x566395(0x75)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x566395(0xd3)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x566395(0xbf)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x566395(0xa1)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x566395(0xd8)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x566395(0xad)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x566395(0x7c)}];function rewriteCommand(_0x484129){const _0x5b0b84=a0_0x566395,_0x52206f=_0x484129[_0x5b0b84(0x80)]();if(_0x52206f[_0x5b0b84(0xc0)](_0x5b0b84(0xdf)))return _0x52206f;for(const _0x3bb50c of REWRITE_RULES){if(_0x3bb50c[_0x5b0b84(0x94)][_0x5b0b84(0x77)](_0x52206f))return _0x5b0b84(0xdf)+_0x52206f;}return _0x52206f;}
|
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a0_0x56e8(){const _0x27b63d=['replace','15976byHKUw','filterJestVitest','trim','\x0aFailures:','removed\x20','18EZGilA','split','\x20total)','15153ZwnuGJ','startsWith','\x20failed\x20(','2179230foQzlv','\x20passed','2885nqlAeW','3104IQWUgo','1268100cQMeyt','Test\x20Runner:\x20','987srxtGu','9DlSAKm','found\x20','all','slice','PASS','13107204MuhjTI','defineProperty','Tests:','173144ucdAwi','includes','\x20lines\x20of\x20trace\x20details\x20truncated)','push','join','\x20\x20...\x20(','__esModule','added\x20','filterNpmInstall','match','FAIL','FAIL\x20\x20','NPM:\x20Packages\x20verified/installed\x20successfully','length','\x20passed,\x20'];a0_0x56e8=function(){return _0x27b63d;};return a0_0x56e8();}const a0_0x52747f=a0_0x1120;(function(_0x5cf65e,_0x450cad){const _0x5d4584=a0_0x1120,_0x32cbe1=_0x5cf65e();while(!![]){try{const _0x2a011a=parseInt(_0x5d4584(0x193))/0x1+-parseInt(_0x5d4584(0x1a8))/0x2*(-parseInt(_0x5d4584(0x1ab))/0x3)+-parseInt(_0x5d4584(0x1b1))/0x4*(-parseInt(_0x5d4584(0x1b0))/0x5)+parseInt(_0x5d4584(0x1ae))/0x6+parseInt(_0x5d4584(0x1b4))/0x7*(parseInt(_0x5d4584(0x1a3))/0x8)+-parseInt(_0x5d4584(0x1b5))/0x9*(-parseInt(_0x5d4584(0x1b2))/0xa)+-parseInt(_0x5d4584(0x1ba))/0xb;if(_0x2a011a===_0x450cad)break;else _0x32cbe1['push'](_0x32cbe1['shift']());}catch(_0x4e527a){_0x32cbe1['push'](_0x32cbe1['shift']());}}}(a0_0x56e8,0x3c26f));Object[a0_0x52747f(0x191)](exports,a0_0x52747f(0x199),{'value':!![]}),exports[a0_0x52747f(0x19b)]=filterNpmInstall,exports[a0_0x52747f(0x1a4)]=filterJestVitest;function a0_0x1120(_0x1bd662,_0x5db8d6){_0x1bd662=_0x1bd662-0x191;const _0x56e865=a0_0x56e8();let _0x112010=_0x56e865[_0x1bd662];return _0x112010;}function filterNpmInstall(_0x1e4742){const _0x51b477=a0_0x52747f,_0x2cfb20=_0x1e4742[_0x51b477(0x1a2)](/\r/g,'\x0a'),_0xbd47ea=_0x2cfb20[_0x51b477(0x1a9)]('\x0a'),_0x2b7cae=[];for(const _0x3da1c7 of _0xbd47ea){const _0x2b1651=_0x3da1c7['trim']();(_0x2b1651[_0x51b477(0x194)](_0x51b477(0x19a))||_0x2b1651[_0x51b477(0x194)](_0x51b477(0x1a7))||_0x2b1651['includes']('audited\x20')||_0x2b1651['includes']('up\x20to\x20date')||_0x2b1651[_0x51b477(0x194)](_0x51b477(0x1b6)))&&(!_0x2b1651[_0x51b477(0x194)]('%')&&!_0x2b1651[_0x51b477(0x1ac)]('⠋')&&!_0x2b1651[_0x51b477(0x1ac)]('⠙')&&_0x2b7cae[_0x51b477(0x196)](_0x2b1651));}const _0x53aaef=_0x2b7cae[_0x51b477(0x197)]('\x0a')['trim']();return _0x53aaef[_0x51b477(0x1a0)]>0x0?_0x53aaef:_0x51b477(0x19f);}function filterJestVitest(_0xd26245){const _0x4c3865=a0_0x52747f,_0x1580cd=_0xd26245[_0x4c3865(0x1a9)]('\x0a');let _0xa26372=0x0,_0x256000=0x0,_0x1b5ee3=0x0;const _0x231cd9=[];let _0x41442c=![];for(const _0x4062c4 of _0x1580cd){const _0x462400=_0x4062c4[_0x4c3865(0x1a5)]();if(_0x462400[_0x4c3865(0x1ac)](_0x4c3865(0x192))||_0x462400['includes']('Test\x20Files:')){const _0x18d3e9=_0x462400[_0x4c3865(0x19c)](/(\d+)\s+passed/),_0x3e1bfc=_0x462400['match'](/(\d+)\s+failed/),_0x2b79c4=_0x462400['match'](/(\d+)\s+total/);if(_0x18d3e9)_0xa26372=parseInt(_0x18d3e9[0x1]);if(_0x3e1bfc)_0x256000=parseInt(_0x3e1bfc[0x1]);if(_0x2b79c4)_0x1b5ee3=parseInt(_0x2b79c4[0x1]);continue;}(_0x462400['startsWith']('❯')||_0x462400[_0x4c3865(0x1ac)]('●')||_0x462400['startsWith'](_0x4c3865(0x19e)))&&(_0x41442c=!![]),_0x41442c&&(_0x462400['length']>0x0&&!_0x462400[_0x4c3865(0x1ac)]('Test\x20Suites:')&&!_0x462400[_0x4c3865(0x1ac)]('Tests:')&&_0x231cd9['push'](_0x4062c4));}if(_0x1b5ee3===0x0&&_0xa26372===0x0&&_0x256000===0x0){if(_0xd26245[_0x4c3865(0x194)](_0x4c3865(0x1b9))&&!_0xd26245['includes'](_0x4c3865(0x19d))){const _0x2b71ef=_0xd26245['match'](/(\d+)\s+passed/),_0x43c1a3=_0x2b71ef?_0x2b71ef[0x1]:_0x4c3865(0x1b7);return _0x4c3865(0x1b3)+_0x43c1a3+_0x4c3865(0x1af);}return _0xd26245;}if(_0x256000===0x0&&_0xa26372>0x0)return _0x4c3865(0x1b3)+_0xa26372+'\x20passed';const _0x1b03f9=['Test\x20Runner:\x20'+_0xa26372+_0x4c3865(0x1a1)+_0x256000+_0x4c3865(0x1ad)+_0x1b5ee3+_0x4c3865(0x1aa)];if(_0x231cd9[_0x4c3865(0x1a0)]>0x0){_0x1b03f9[_0x4c3865(0x196)](_0x4c3865(0x1a6));const _0xb0699a=0x19,_0x13e1aa=_0x231cd9[_0x4c3865(0x1b8)](0x0,_0xb0699a);for(const _0xe2c52e of _0x13e1aa){_0x1b03f9[_0x4c3865(0x196)]('\x20\x20'+_0xe2c52e);}_0x231cd9[_0x4c3865(0x1a0)]>_0xb0699a&&_0x1b03f9[_0x4c3865(0x196)](_0x4c3865(0x198)+(_0x231cd9[_0x4c3865(0x1a0)]-_0xb0699a)+_0x4c3865(0x195));}return _0x1b03f9['join']('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x8013(_0x1b01e4,_0x4c9c1f){_0x1b01e4=_0x1b01e4-0xc3;const _0x25783c=a0_0x2578();let _0x801313=_0x25783c[_0x1b01e4];return _0x801313;}const a0_0x547b8f=a0_0x8013;(function(_0x112751,_0x46a372){const _0x2931bd=a0_0x8013,_0x509173=_0x112751();while(!![]){try{const _0x25fe34=parseInt(_0x2931bd(0xd3))/0x1*(-parseInt(_0x2931bd(0xf3))/0x2)+-parseInt(_0x2931bd(0xce))/0x3*(-parseInt(_0x2931bd(0xe7))/0x4)+parseInt(_0x2931bd(0xc9))/0x5*(parseInt(_0x2931bd(0xee))/0x6)+-parseInt(_0x2931bd(0xde))/0x7*(parseInt(_0x2931bd(0xd9))/0x8)+parseInt(_0x2931bd(0xe3))/0x9*(parseInt(_0x2931bd(0xca))/0xa)+-parseInt(_0x2931bd(0xdc))/0xb*(-parseInt(_0x2931bd(0xd0))/0xc)+-parseInt(_0x2931bd(0xe4))/0xd;if(_0x25fe34===_0x46a372)break;else _0x509173['push'](_0x509173['shift']());}catch(_0x991edd){_0x509173['push'](_0x509173['shift']());}}}(a0_0x2578,0x7b8b5));Object['defineProperty'](exports,a0_0x547b8f(0xdb),{'value':!![]}),exports[a0_0x547b8f(0xd2)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x3ef3bb){const _0x3b2073=a0_0x547b8f,_0xf51603=_0x3ef3bb[_0x3b2073(0xe8)]('\x0a');let _0x335ac0=0x0,_0x387d41=0x0,_0x3e4045=0x0,_0x17c15f=0x0,_0x1d8cd0=0x0;const _0x4a48ae=[];let _0x261253=[],_0x21419=![];for(const _0x4727c9 of _0xf51603){const _0x362893=_0x4727c9[_0x3b2073(0xeb)]();if(_0x362893[_0x3b2073(0xec)]('===\x20FAILURES\x20===')||_0x362893['startsWith'](_0x3b2073(0xd1))){_0x21419=!![];continue;}else(_0x362893[_0x3b2073(0xec)](_0x3b2073(0xe6))||_0x362893['startsWith']('===')&&_0x362893[_0x3b2073(0xc7)](_0x3b2073(0xc8)))&&(_0x21419=![],_0x261253[_0x3b2073(0xcc)]>0x0&&(_0x4a48ae[_0x3b2073(0xef)](_0x261253),_0x261253=[]));if(_0x21419){if(_0x362893['startsWith'](_0x3b2073(0xd4)))_0x261253[_0x3b2073(0xcc)]>0x0&&(_0x4a48ae['push'](_0x261253),_0x261253=[]),_0x261253[_0x3b2073(0xef)](_0x362893);else _0x362893[_0x3b2073(0xcc)]>0x0&&_0x261253[_0x3b2073(0xef)](_0x4727c9);continue;}if(_0x362893['startsWith'](_0x3b2073(0xcd))&&_0x362893[_0x3b2073(0xc7)](_0x3b2073(0xdd))){const _0x394bdb=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+passed/),_0x4c7da4=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+failed/),_0x45267d=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+skipped/),_0x3d81da=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+xfailed/),_0x12a2f2=_0x362893[_0x3b2073(0xc5)](/(\d+)\s+xpassed/);if(_0x394bdb)_0x335ac0=parseInt(_0x394bdb[0x1]);if(_0x4c7da4)_0x387d41=parseInt(_0x4c7da4[0x1]);if(_0x45267d)_0x3e4045=parseInt(_0x45267d[0x1]);if(_0x3d81da)_0x17c15f=parseInt(_0x3d81da[0x1]);if(_0x12a2f2)_0x1d8cd0=parseInt(_0x12a2f2[0x1]);}}_0x261253[_0x3b2073(0xcc)]>0x0&&_0x4a48ae[_0x3b2073(0xef)](_0x261253);if(_0x335ac0===0x0&&_0x387d41===0x0&&_0x3e4045===0x0&&_0x17c15f===0x0&&_0x1d8cd0===0x0){if(_0x3ef3bb[_0x3b2073(0xc7)](_0x3b2073(0xc8))&&!_0x3ef3bb[_0x3b2073(0xc7)](_0x3b2073(0xea)))return _0x3b2073(0xc3);return _0x3ef3bb;}if(_0x387d41===0x0&&_0x335ac0>0x0&&_0x3e4045===0x0&&_0x17c15f===0x0&&_0x1d8cd0===0x0)return _0x3b2073(0xcb)+_0x335ac0+_0x3b2073(0xd8);const _0x12ba35=[];_0x12ba35['push'](_0x3b2073(0xcb)+_0x335ac0+'\x20passed');if(_0x387d41>0x0)_0x12ba35['push'](_0x387d41+_0x3b2073(0xc4));if(_0x3e4045>0x0)_0x12ba35[_0x3b2073(0xef)](_0x3e4045+_0x3b2073(0xf0));if(_0x17c15f>0x0)_0x12ba35[_0x3b2073(0xef)](_0x17c15f+'\x20xfailed');if(_0x1d8cd0>0x0)_0x12ba35[_0x3b2073(0xef)](_0x1d8cd0+_0x3b2073(0xe0));const _0xf949d1=[_0x12ba35[_0x3b2073(0xe5)](',\x20')];if(_0x4a48ae['length']>0x0){_0xf949d1[_0x3b2073(0xef)](_0x3b2073(0xd7));const _0x378300=0x3,_0x528506=_0x4a48ae[_0x3b2073(0xe2)](0x0,_0x378300);for(let _0x1e9e18=0x0;_0x1e9e18<_0x528506[_0x3b2073(0xcc)];_0x1e9e18++){const _0x1c0973=_0x528506[_0x1e9e18],_0x4f9f3e=_0x1c0973[0x0][_0x3b2073(0xdf)](/_/g,'')[_0x3b2073(0xeb)]();_0xf949d1[_0x3b2073(0xef)]('\x20\x20'+(_0x1e9e18+0x1)+_0x3b2073(0xc6)+_0x4f9f3e);const _0x33e237=_0x1c0973[_0x3b2073(0xe2)](0x1),_0x5e0c95=_0x33e237['filter'](_0x31afe5=>{const _0x4ec3a8=_0x3b2073,_0x51fe7b=_0x31afe5['trim']();return _0x51fe7b[_0x4ec3a8(0xec)]('>')||_0x51fe7b[_0x4ec3a8(0xec)](_0x4ec3a8(0xcf))||_0x51fe7b['includes'](_0x4ec3a8(0xf1))||_0x51fe7b[_0x4ec3a8(0xc7)](_0x4ec3a8(0xed));});for(const _0x586de8 of _0x5e0c95[_0x3b2073(0xe2)](0x0,0x8)){_0xf949d1[_0x3b2073(0xef)]('\x20\x20\x20\x20'+_0x586de8);}_0x5e0c95['length']>0x8&&_0xf949d1[_0x3b2073(0xef)](_0x3b2073(0xda)+(_0x5e0c95[_0x3b2073(0xcc)]-0x8)+_0x3b2073(0xe9));}_0x4a48ae[_0x3b2073(0xcc)]>_0x378300&&_0xf949d1['push'](_0x3b2073(0xe1)+(_0x4a48ae[_0x3b2073(0xcc)]-_0x378300)+_0x3b2073(0xf2));}return _0xf949d1[_0x3b2073(0xe5)]('\x0a');}function filterPipInstall(_0x105c7d){const _0xd7ac50=a0_0x547b8f,_0x57086c=_0x105c7d['split']('\x0a'),_0x21758b=[];for(const _0x36db84 of _0x57086c){const _0x50483d=_0x36db84[_0xd7ac50(0xeb)]();_0x50483d[_0xd7ac50(0xec)]('Successfully\x20installed')&&_0x21758b[_0xd7ac50(0xef)](_0x50483d);}if(_0x21758b[_0xd7ac50(0xcc)]>0x0)return _0x21758b[_0xd7ac50(0xe5)]('\x0a');return _0x57086c[_0xd7ac50(0xd6)](_0x4922d7=>{const _0x58b18b=_0xd7ac50,_0x52bc3d=_0x4922d7[_0x58b18b(0xeb)]();return!_0x52bc3d[_0x58b18b(0xec)](_0x58b18b(0xd5))&&!_0x52bc3d['startsWith']('Downloading')&&!_0x52bc3d[_0x58b18b(0xc7)](_0x58b18b(0xf4))&&!_0x52bc3d['startsWith']('Requirement\x20already\x20satisfied');})['join']('\x0a')['trim']();}function a0_0x2578(){const _0x3e338b=['___','Collecting','filter','\x0aFailures:','\x20passed','2144YPfMGV','\x20\x20\x20\x20...\x20(','__esModule','936694xrkVnt','\x20in\x20','8204DAlSUu','replace','\x20xpassed\x20(warning!)','\x20\x20...\x20+','slice','4786641XECazj','15825303qbIspX','join','===\x20short\x20test\x20summary\x20info\x20===','3620sHSbsa','split','\x20lines\x20of\x20stacktrace\x20truncated)','failed','trim','startsWith','AssertionError:','811176LqSmfq','push','\x20skipped','.py:','\x20more\x20failures\x20truncated','8MNpfzy','Using\x20cached','Pytest:\x20All\x20tests\x20passed','\x20failed','match','.\x20[FAIL]\x20','includes','passed','25dFDDbU','10WKlFAP','Pytest:\x20','length','===','3207QBGSSI','E\x20\x20\x20','84jfEWYh','===\x20ERRORS\x20===','filterPytest','183472KTZEMy'];a0_0x2578=function(){return _0x3e338b;};return a0_0x2578();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x198728=a0_0x4e36;function a0_0x4e36(_0x51cb4e,_0x17fd9f){_0x51cb4e=_0x51cb4e-0x18e;const _0x22571d=a0_0x2257();let _0x4e3643=_0x22571d[_0x51cb4e];return _0x4e3643;}(function(_0x490d0d,_0x1af55){const _0x33a1bf=a0_0x4e36,_0x3c8a81=_0x490d0d();while(!![]){try{const _0x4fa646=parseInt(_0x33a1bf(0x1a8))/0x1+-parseInt(_0x33a1bf(0x1af))/0x2*(-parseInt(_0x33a1bf(0x198))/0x3)+parseInt(_0x33a1bf(0x194))/0x4*(-parseInt(_0x33a1bf(0x1aa))/0x5)+parseInt(_0x33a1bf(0x191))/0x6*(-parseInt(_0x33a1bf(0x1ae))/0x7)+parseInt(_0x33a1bf(0x1a3))/0x8*(parseInt(_0x33a1bf(0x1b2))/0x9)+parseInt(_0x33a1bf(0x196))/0xa+-parseInt(_0x33a1bf(0x1be))/0xb;if(_0x4fa646===_0x1af55)break;else _0x3c8a81['push'](_0x3c8a81['shift']());}catch(_0x20352a){_0x3c8a81['push'](_0x3c8a81['shift']());}}}(a0_0x2257,0x7d389));function a0_0x2257(){const _0x1c6be7=['----\x20','defineProperty','----\x20failures\x20----','\x0aWarnings:','assert','3233758FGbSam','\x20\x20...\x20+','\x20errors,\x20','filterCargoBuild','3306KEuaDK','replace','\x20ignored','1168iyjLcZ','Cargo\x20test:\x20','4279770wnGZIv','Cargo:\x20compiled\x20','66mGHaLG','failures:','filter','Cargo\x20test:\x20all\x20tests\x20passed','includes','match','push','warning[','\x20crates,\x20','filterCargoTest','Compiling\x20','67664JdIQWI','Cargo:\x20','__esModule','startsWith','test\x20result:','688255ggUlDZ','trim','16985UmjQVS','length','error[','\x20----','3563TmIUrO','83704oEWEgv','\x20passed,\x20','min','45odkUbT','left:','split','join','slice','\x20crates\x20successfully','\x20passed'];a0_0x2257=function(){return _0x1c6be7;};return a0_0x2257();}Object[a0_0x198728(0x1ba)](exports,a0_0x198728(0x1a5),{'value':!![]}),exports[a0_0x198728(0x1a1)]=filterCargoTest,exports[a0_0x198728(0x190)]=filterCargoBuild;function filterCargoTest(_0x2813fe){const _0x25700d=a0_0x198728,_0x38065b=_0x2813fe[_0x25700d(0x1b4)]('\x0a');let _0x1eab28=0x0,_0xbf2d4b=0x0,_0x5f2624=0x0,_0x31f252=0x0;const _0x4d5a2a=[];let _0x5e4bc8=![],_0x3f6ba5=[];for(const _0x28ac97 of _0x38065b){const _0x22e018=_0x28ac97['trim'](),_0x385cc7=_0x22e018[_0x25700d(0x19d)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x385cc7){_0x1eab28+=parseInt(_0x385cc7[0x2]),_0xbf2d4b+=parseInt(_0x385cc7[0x3]),_0x5f2624+=parseInt(_0x385cc7[0x4]),_0x31f252+=parseInt(_0x385cc7[0x5]);continue;}if(_0x22e018===_0x25700d(0x199)||_0x22e018===_0x25700d(0x1bb)){_0x5e4bc8=!![];continue;}if(_0x5e4bc8){if(_0x22e018['startsWith'](_0x25700d(0x1b9))&&_0x22e018['endsWith'](_0x25700d(0x1ad))){if(_0x3f6ba5[_0x25700d(0x1ab)]>0x0)_0x4d5a2a['push'](_0x3f6ba5[_0x25700d(0x1b5)]('\x0a'));_0x3f6ba5=[_0x22e018[_0x25700d(0x192)](/^-+\s*/,'')[_0x25700d(0x192)](/\s*-+$/,'')];}else{if(_0x22e018===_0x25700d(0x199)||_0x22e018[_0x25700d(0x1a6)](_0x25700d(0x1a7))){if(_0x3f6ba5['length']>0x0)_0x4d5a2a[_0x25700d(0x19e)](_0x3f6ba5[_0x25700d(0x1b5)]('\x0a'));_0x3f6ba5=[],_0x5e4bc8=![];}else _0x22e018[_0x25700d(0x1ab)]>0x0&&_0x3f6ba5['push'](_0x28ac97);}}}if(_0x3f6ba5[_0x25700d(0x1ab)]>0x0)_0x4d5a2a[_0x25700d(0x19e)](_0x3f6ba5[_0x25700d(0x1b5)]('\x0a'));if(_0x1eab28===0x0&&_0xbf2d4b===0x0&&_0x5f2624===0x0){if(_0x2813fe[_0x25700d(0x19c)]('test\x20result:\x20ok'))return _0x25700d(0x19b);return _0x2813fe;}if(_0xbf2d4b===0x0){const _0x2b3fa6=[_0x25700d(0x195)+_0x1eab28+_0x25700d(0x1b8)];if(_0x5f2624>0x0)_0x2b3fa6['push'](_0x5f2624+_0x25700d(0x193));return _0x2b3fa6[_0x25700d(0x1b5)](',\x20');}const _0x2c4a3d=[_0x25700d(0x195)+_0x1eab28+_0x25700d(0x1b0)+_0xbf2d4b+'\x20failed,\x20'+_0x5f2624+'\x20ignored'];if(_0x4d5a2a['length']>0x0){_0x2c4a3d[_0x25700d(0x19e)]('\x0aFailures:');const _0x3fe7b0=0x3;for(let _0xb7c7f3=0x0;_0xb7c7f3<Math[_0x25700d(0x1b1)](_0x4d5a2a[_0x25700d(0x1ab)],_0x3fe7b0);_0xb7c7f3++){const _0x1ff60c=_0x4d5a2a[_0xb7c7f3][_0x25700d(0x1b4)]('\x0a');_0x2c4a3d[_0x25700d(0x19e)]('\x20\x20'+(_0xb7c7f3+0x1)+'.\x20'+_0x1ff60c[0x0]);const _0xb3fecd=_0x1ff60c[_0x25700d(0x1b6)](0x1),_0x3cfdd6=_0xb3fecd[_0x25700d(0x19a)](_0x116017=>_0x116017[_0x25700d(0x1a9)]()['startsWith']('thread')||_0x116017[_0x25700d(0x19c)]('panicked')||_0x116017['includes'](_0x25700d(0x1bd))||_0x116017[_0x25700d(0x19c)](_0x25700d(0x1b3))||_0x116017[_0x25700d(0x19c)]('right:'));for(const _0x1f2a89 of _0x3cfdd6[_0x25700d(0x1b6)](0x0,0x5)){_0x2c4a3d[_0x25700d(0x19e)]('\x20\x20\x20\x20'+_0x1f2a89['trim']());}}_0x4d5a2a[_0x25700d(0x1ab)]>_0x3fe7b0&&_0x2c4a3d['push']('\x20\x20...\x20+'+(_0x4d5a2a[_0x25700d(0x1ab)]-_0x3fe7b0)+'\x20more\x20failures');}return _0x2c4a3d[_0x25700d(0x1b5)]('\x0a');}function filterCargoBuild(_0x1be68d){const _0xe9c893=a0_0x198728,_0x5428cb=_0x1be68d[_0xe9c893(0x1b4)]('\x0a'),_0x32134e=[],_0x145b32=[];let _0x180e58=0x0;for(const _0x17b0ee of _0x5428cb){const _0x5f3070=_0x17b0ee[_0xe9c893(0x1a9)]();if(_0x5f3070[_0xe9c893(0x1a6)](_0xe9c893(0x1a2)))_0x180e58++;else{if(_0x5f3070[_0xe9c893(0x1a6)](_0xe9c893(0x19f))||_0x5f3070[_0xe9c893(0x1a6)]('warning:'))_0x32134e[_0xe9c893(0x19e)](_0x5f3070);else{if(_0x5f3070[_0xe9c893(0x1a6)](_0xe9c893(0x1ac))||_0x5f3070[_0xe9c893(0x1a6)]('error:'))_0x145b32[_0xe9c893(0x19e)](_0x5f3070);}}}if(_0x145b32['length']===0x0&&_0x32134e[_0xe9c893(0x1ab)]===0x0)return _0x180e58>0x0?'Cargo:\x20compiled\x20'+_0x180e58+_0xe9c893(0x1b7):_0x1be68d['trim']();const _0x2676fd=[];if(_0x145b32[_0xe9c893(0x1ab)]>0x0){_0x2676fd[_0xe9c893(0x19e)](_0xe9c893(0x1a4)+_0x145b32['length']+_0xe9c893(0x18f)+_0x32134e['length']+'\x20warnings'),_0x2676fd[_0xe9c893(0x19e)]('\x0aErrors:');for(const _0x56a5e9 of _0x145b32[_0xe9c893(0x1b6)](0x0,0x5))_0x2676fd['push']('\x20\x20'+_0x56a5e9);if(_0x145b32[_0xe9c893(0x1ab)]>0x5)_0x2676fd['push'](_0xe9c893(0x18e)+(_0x145b32[_0xe9c893(0x1ab)]-0x5)+'\x20more\x20errors');}else _0x2676fd['push'](_0xe9c893(0x197)+_0x180e58+_0xe9c893(0x1a0)+_0x32134e[_0xe9c893(0x1ab)]+'\x20warnings');if(_0x32134e[_0xe9c893(0x1ab)]>0x0&&_0x32134e[_0xe9c893(0x1ab)]<=0x5){_0x2676fd[_0xe9c893(0x19e)](_0xe9c893(0x1bc));for(const _0x4208a4 of _0x32134e)_0x2676fd['push']('\x20\x20'+_0x4208a4);}else _0x32134e['length']>0x5&&_0x2676fd[_0xe9c893(0x19e)]('\x0a('+_0x32134e['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x2676fd[_0xe9c893(0x1b5)]('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
'use strict';const a0_0x3bbb2e=a0_0x51cb;function a0_0x51cb(_0x587916,_0x2e374b){_0x587916=_0x587916-0x19b;const _0x4f3a67=a0_0x4f3a();let _0x51cbb0=_0x4f3a67[_0x587916];return _0x51cbb0;}(function(_0xf37e9d,_0x2f37a7){const _0x15ee4a=a0_0x51cb,_0xb02971=_0xf37e9d();while(!![]){try{const _0x90276a=parseInt(_0x15ee4a(0x200))/0x1+parseInt(_0x15ee4a(0x22a))/0x2*(-parseInt(_0x15ee4a(0x1a8))/0x3)+-parseInt(_0x15ee4a(0x19f))/0x4+parseInt(_0x15ee4a(0x1eb))/0x5*(parseInt(_0x15ee4a(0x222))/0x6)+parseInt(_0x15ee4a(0x21d))/0x7+-parseInt(_0x15ee4a(0x1ac))/0x8*(parseInt(_0x15ee4a(0x1c6))/0x9)+parseInt(_0x15ee4a(0x1c5))/0xa;if(_0x90276a===_0x2f37a7)break;else _0xb02971['push'](_0xb02971['shift']());}catch(_0x47bb6c){_0xb02971['push'](_0xb02971['shift']());}}}(a0_0x4f3a,0xe2f01));var __createBinding=this&&this[a0_0x3bbb2e(0x214)]||(Object[a0_0x3bbb2e(0x203)]?function(_0x25d4d7,_0x522749,_0x5ddad3,_0x5ccaae){const _0x150cef=a0_0x3bbb2e;if(_0x5ccaae===undefined)_0x5ccaae=_0x5ddad3;var _0x150fa6=Object[_0x150cef(0x1b0)](_0x522749,_0x5ddad3);(!_0x150fa6||(_0x150cef(0x1bb)in _0x150fa6?!_0x522749['__esModule']:_0x150fa6['writable']||_0x150fa6['configurable']))&&(_0x150fa6={'enumerable':!![],'get':function(){return _0x522749[_0x5ddad3];}}),Object['defineProperty'](_0x25d4d7,_0x5ccaae,_0x150fa6);}:function(_0x4aa9ec,_0x4ba221,_0x499b6e,_0x2450af){if(_0x2450af===undefined)_0x2450af=_0x499b6e;_0x4aa9ec[_0x2450af]=_0x4ba221[_0x499b6e];}),__setModuleDefault=this&&this[a0_0x3bbb2e(0x1fd)]||(Object['create']?function(_0x41c915,_0x8107a7){const _0xe2e129=a0_0x3bbb2e;Object['defineProperty'](_0x41c915,_0xe2e129(0x1b1),{'enumerable':!![],'value':_0x8107a7});}:function(_0x5c4e82,_0x5e7b6a){const _0x13360f=a0_0x3bbb2e;_0x5c4e82[_0x13360f(0x1b1)]=_0x5e7b6a;}),__importStar=this&&this['__importStar']||(function(){var _0x468ca4=function(_0x1d3429){const _0x45bd7a=a0_0x51cb;return _0x468ca4=Object[_0x45bd7a(0x1a5)]||function(_0x1c9b01){const _0x15ac34=_0x45bd7a;var _0x33c654=[];for(var _0x2a6214 in _0x1c9b01)if(Object[_0x15ac34(0x1c4)]['hasOwnProperty'][_0x15ac34(0x1fe)](_0x1c9b01,_0x2a6214))_0x33c654[_0x33c654[_0x15ac34(0x1e1)]]=_0x2a6214;return _0x33c654;},_0x468ca4(_0x1d3429);};return function(_0x32c951){const _0x201b03=a0_0x51cb;if(_0x32c951&&_0x32c951[_0x201b03(0x1ab)])return _0x32c951;var _0x23331f={};if(_0x32c951!=null){for(var _0x34ba47=_0x468ca4(_0x32c951),_0x25394e=0x0;_0x25394e<_0x34ba47['length'];_0x25394e++)if(_0x34ba47[_0x25394e]!==_0x201b03(0x1b1))__createBinding(_0x23331f,_0x32c951,_0x34ba47[_0x25394e]);}return __setModuleDefault(_0x23331f,_0x32c951),_0x23331f;};}());Object[a0_0x3bbb2e(0x1e7)](exports,a0_0x3bbb2e(0x1ab),{'value':!![]}),exports[a0_0x3bbb2e(0x202)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x3bbb2e(0x1d1)]=filterCat,exports['filterGrep']=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x3bbb2e(0x229))),generic_1=require('./generic'),tracker_1=require(a0_0x3bbb2e(0x19c));function isFeatureEnabled(_0x3f0abf){const _0x13689f=a0_0x3bbb2e;try{const _0x249bd9=tracker_1[_0x13689f(0x1ff)][_0x13689f(0x19e)](),_0x14acf2=_0x249bd9[_0x13689f(0x1ae)];if(!_0x14acf2||_0x14acf2[_0x3f0abf]===undefined)return!![];return _0x14acf2[_0x3f0abf]!==![];}catch{return!![];}}const LOCK_FILES=[a0_0x3bbb2e(0x220),a0_0x3bbb2e(0x1c0),a0_0x3bbb2e(0x1ed),a0_0x3bbb2e(0x1b8),a0_0x3bbb2e(0x209),a0_0x3bbb2e(0x206),a0_0x3bbb2e(0x1dc),a0_0x3bbb2e(0x1d9),a0_0x3bbb2e(0x1a2)],BINARY_EXTENSIONS=[a0_0x3bbb2e(0x212),a0_0x3bbb2e(0x1db),a0_0x3bbb2e(0x1a7),'.wasm',a0_0x3bbb2e(0x1cc),a0_0x3bbb2e(0x218),a0_0x3bbb2e(0x1d3),'.gif',a0_0x3bbb2e(0x1f5),a0_0x3bbb2e(0x1af),a0_0x3bbb2e(0x1c3),a0_0x3bbb2e(0x1bc),a0_0x3bbb2e(0x20d),'.zip','.tar.gz',a0_0x3bbb2e(0x211),a0_0x3bbb2e(0x1ee),a0_0x3bbb2e(0x1a9),a0_0x3bbb2e(0x1df),a0_0x3bbb2e(0x1f8),'.exe',a0_0x3bbb2e(0x1fc),a0_0x3bbb2e(0x1fa),a0_0x3bbb2e(0x1e6),a0_0x3bbb2e(0x217),a0_0x3bbb2e(0x1ef),'.sqlite',a0_0x3bbb2e(0x1b3),a0_0x3bbb2e(0x1e2),'.woff',a0_0x3bbb2e(0x226),a0_0x3bbb2e(0x1ba),'.eot',a0_0x3bbb2e(0x1de),'.mp3','.mp4',a0_0x3bbb2e(0x1b9),a0_0x3bbb2e(0x1aa),'.mov',a0_0x3bbb2e(0x20c),a0_0x3bbb2e(0x1a4),a0_0x3bbb2e(0x1d7),'.class','.o','.obj'];function extractFilename(_0x2e7e5c){const _0x58b413=a0_0x3bbb2e,_0x1f2577=_0x2e7e5c[_0x58b413(0x1b7)]()[_0x58b413(0x21f)](/\s+/);for(let _0x52b8db=0x1;_0x52b8db<_0x1f2577[_0x58b413(0x1e1)];_0x52b8db++){if(!_0x1f2577[_0x52b8db][_0x58b413(0x20f)]('-'))return _0x1f2577[_0x52b8db];}return null;}function filterLockFile(_0x1d79e6,_0x7d6f24){const _0x1de630=a0_0x3bbb2e;try{const _0x2e9c66=path[_0x1de630(0x1da)](_0x7d6f24)[_0x1de630(0x20e)]();if(!LOCK_FILES['some'](_0x3f97b8=>_0x2e9c66===_0x3f97b8[_0x1de630(0x20e)]()))return null;const _0x17fcb3=_0x1d79e6[_0x1de630(0x1e1)];let _0x12565e=0x0;if(_0x2e9c66===_0x1de630(0x220))try{const _0x13b0f9=JSON[_0x1de630(0x1f3)](_0x1d79e6);_0x12565e=Object[_0x1de630(0x1e5)](_0x13b0f9['packages']||_0x13b0f9[_0x1de630(0x1bf)]||{})['length'];}catch{_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/"resolved":/g)||[])[_0x1de630(0x1e1)];}else{if(_0x2e9c66===_0x1de630(0x1c0))_0x12565e=(_0x1d79e6['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x1de630(0x1e1)];else{if(_0x2e9c66===_0x1de630(0x1a6)||_0x2e9c66===_0x1de630(0x206))_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/\[\[package\]\]/g)||[])[_0x1de630(0x1e1)];else{if(_0x2e9c66===_0x1de630(0x209))_0x12565e=Math['floor'](_0x1d79e6['split']('\x0a')[_0x1de630(0x1f0)](_0x27acec=>_0x27acec[_0x1de630(0x1b7)]())[_0x1de630(0x1e1)]/0x2);else{if(_0x2e9c66===_0x1de630(0x1dc))try{_0x12565e=JSON[_0x1de630(0x1f3)](_0x1d79e6)[_0x1de630(0x1ad)]?.[_0x1de630(0x1e1)]||0x0;}catch{}else _0x2e9c66===_0x1de630(0x1ed)?_0x12565e=(_0x1d79e6[_0x1de630(0x1c1)](/^\s{2}['"@a-z]/gm)||[])[_0x1de630(0x1e1)]:_0x12565e=_0x1d79e6[_0x1de630(0x21f)]('\x0a')[_0x1de630(0x1f0)](_0x28b4c8=>_0x28b4c8[_0x1de630(0x1b7)]())['length'];}}}}return _0x1de630(0x210)+path[_0x1de630(0x1da)](_0x7d6f24)+':\x20'+_0x12565e+_0x1de630(0x204)+_0x17fcb3[_0x1de630(0x1ea)]()+_0x1de630(0x1e0);}catch{return null;}}function filterBinaryOrMinified(_0x1735d0,_0x4bff7c){const _0x1b053c=a0_0x3bbb2e;try{if(_0x4bff7c){const _0x2fe146=_0x4bff7c[_0x1b053c(0x20e)]();for(const _0x2aef17 of BINARY_EXTENSIONS){if(_0x2fe146[_0x1b053c(0x1b2)](_0x2aef17))return _0x1b053c(0x1ec)+path[_0x1b053c(0x1da)](_0x4bff7c)+',\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x216)+_0x2aef17+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x1cd85d=_0x1735d0[_0x1b053c(0x1c8)](0x0,0x3e8);let _0x531c59=0x0;for(let _0x2d49b9=0x0;_0x2d49b9<_0x1cd85d[_0x1b053c(0x1e1)];_0x2d49b9++){if(_0x1cd85d[_0x1b053c(0x1d5)](_0x2d49b9)===0x0)_0x531c59++;}if(_0x531c59>0x0)return'[binary\x20file]\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x201);let _0x14417e=0x0;for(let _0x165008=0x0;_0x165008<_0x1cd85d[_0x1b053c(0x1e1)];_0x165008++){const _0x31e79d=_0x1cd85d[_0x1b053c(0x1d5)](_0x165008);if(_0x31e79d<0x20&&_0x31e79d!==0xa&&_0x31e79d!==0xd&&_0x31e79d!==0x9)_0x14417e++;}if(_0x1cd85d[_0x1b053c(0x1e1)]>0x64&&_0x14417e>_0x1cd85d['length']*0.1)return _0x1b053c(0x1ca)+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x21c);const _0x3a169b=_0x1735d0[_0x1b053c(0x21f)]('\x0a');if(_0x3a169b[_0x1b053c(0x1e1)]<=0x3&&_0x1735d0[_0x1b053c(0x1e1)]>0x1388)return'[minified\x20file]\x20'+_0x1735d0[_0x1b053c(0x1e1)][_0x1b053c(0x1ea)]()+_0x1b053c(0x1c9)+_0x3a169b[_0x1b053c(0x1e1)]+_0x1b053c(0x1e8);return null;}catch{return null;}}function filterJsonMinify(_0x1969b3){const _0x59175e=a0_0x3bbb2e;try{const _0xcc823e=_0x1969b3[_0x59175e(0x1b7)]();if(!_0xcc823e['startsWith']('{')&&!_0xcc823e[_0x59175e(0x20f)]('['))return null;const _0x5697fb=_0xcc823e['split']('\x0a');if(_0x5697fb[_0x59175e(0x1e1)]<=0x14)return null;const _0x27899a=JSON['parse'](_0xcc823e),_0x168437=JSON['stringify'](_0x27899a);if(_0x168437[_0x59175e(0x1e1)]<_0xcc823e[_0x59175e(0x1e1)])return _0x168437;return null;}catch{return null;}}function filterLs(_0x2fedf9){const _0x3130d1=a0_0x3bbb2e,_0x9b1ca=_0x2fedf9[_0x3130d1(0x21f)]('\x0a')['filter'](_0x23989b=>_0x23989b['trim']()[_0x3130d1(0x1e1)]>0x0);if(_0x9b1ca[_0x3130d1(0x1e1)]===0x0)return _0x3130d1(0x1cd);if(_0x9b1ca[_0x3130d1(0x1e1)]<=0x1e)return _0x2fedf9[_0x3130d1(0x1b7)]();const _0x1b70cb=[],_0x3687a8=[];for(const _0x4af76a of _0x9b1ca){const _0x4341c4=_0x4af76a[_0x3130d1(0x1b7)]();if(_0x4341c4[_0x3130d1(0x20f)](_0x3130d1(0x1a1))||_0x4341c4['startsWith']('d')&&_0x4341c4['includes']('..'))continue;_0x4341c4[_0x3130d1(0x1b2)]('/')||_0x4341c4[_0x3130d1(0x20f)]('d')&&_0x4341c4[_0x3130d1(0x1ce)]('\x20')?_0x1b70cb[_0x3130d1(0x22d)](_0x4341c4):_0x3687a8[_0x3130d1(0x22d)](_0x4341c4);}const _0x2c91a9=[];return _0x1b70cb['length']>0x0&&(_0x1b70cb[_0x3130d1(0x1e1)]<=0xf?_0x2c91a9['push'](..._0x1b70cb):(_0x2c91a9['push'](..._0x1b70cb[_0x3130d1(0x1f4)](0x0,0xa)),_0x2c91a9[_0x3130d1(0x22d)](_0x3130d1(0x213)+(_0x1b70cb['length']-0xa)+_0x3130d1(0x1d6)))),_0x3687a8[_0x3130d1(0x1e1)]>0x0&&(_0x3687a8[_0x3130d1(0x1e1)]<=0x14?_0x2c91a9[_0x3130d1(0x22d)](..._0x3687a8):(_0x2c91a9[_0x3130d1(0x22d)](..._0x3687a8[_0x3130d1(0x1f4)](0x0,0xf)),_0x2c91a9[_0x3130d1(0x22d)](_0x3130d1(0x213)+(_0x3687a8[_0x3130d1(0x1e1)]-0xf)+'\x20more\x20files'))),_0x2c91a9[_0x3130d1(0x22d)]('\x0a('+_0x1b70cb[_0x3130d1(0x1e1)]+_0x3130d1(0x223)+_0x3687a8[_0x3130d1(0x1e1)]+_0x3130d1(0x22b)),_0x2c91a9[_0x3130d1(0x1b5)]('\x0a');}function filterTree(_0x33ad20){const _0x4e0241=a0_0x3bbb2e,_0xe91e37=_0x33ad20[_0x4e0241(0x21f)]('\x0a');if(_0xe91e37[_0x4e0241(0x1e1)]<=0x32)return _0x33ad20['trim']();const _0x46d406=[];let _0xfabd95=0x0,_0x4c03b1=0x0,_0xa30ac0=0x0;for(const _0x5d085e of _0xe91e37){const _0x4793f3=_0x5d085e[_0x4e0241(0x1c1)](/(\d+)\s+director/),_0x12d747=_0x5d085e[_0x4e0241(0x1c1)](/(\d+)\s+file/);if(_0x4793f3)_0xa30ac0=parseInt(_0x4793f3[0x1]);if(_0x12d747)_0x4c03b1=parseInt(_0x12d747[0x1]);const _0x22fc79=(_0x5d085e[_0x4e0241(0x1c1)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x22fc79<=0x4&&(_0x46d406[_0x4e0241(0x22d)](_0x5d085e),_0xfabd95++);}return _0xe91e37[_0x4e0241(0x1e1)]>_0x46d406[_0x4e0241(0x1e1)]&&_0x46d406[_0x4e0241(0x22d)](_0x4e0241(0x1d0)+_0xa30ac0+_0x4e0241(0x223)+_0x4c03b1+_0x4e0241(0x1c2)),_0x46d406[_0x4e0241(0x1b5)]('\x0a');}function a0_0x4f3a(){const _0x2d5666=['.cpp','push','No\x20files\x20found','../tracker','.java','getConfig','3840272sKXlnI','\x20matches\x20across\x20','total\x20','bun.lockb','extname','.pyc','getOwnPropertyNames','cargo.lock','.map','1369986kDewxK','.bz2','.avi','__esModule','520jTygXk','packages','features_enabled','.bmp','getOwnPropertyDescriptor','default','endsWith','.db','@param','join','.cs','trim','Cargo.lock','.wav','.ttf','get','.svg','smartCrushJson','\x20lines\x20total,\x20','dependencies','yarn.lock','match','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.webp','prototype','3866080ONVeVh','202545Nmwbpu','from\x20','substring','\x20chars\x20across\x20','[binary\x20file]\x20','\x20directories','.png','Empty\x20directory','includes','.jsx','\x0a...\x20(','filterCat','.js','.jpeg','#include\x20','charCodeAt','\x20more\x20directories','.pyo','\x20\x20...\x20+','Gemfile.lock','basename','.min.css','composer.lock','@return','.otf','.7z','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','length','.sqlite3','\x20lines)','indexOf','keys','.dylib','defineProperty','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','use\x20','toLocaleString','5qTrVTM','[binary/minified\x20file]\x20','pnpm-lock.yaml','.gz','.dat','filter','.swift','package\x20','parse','slice','.ico','sort','json_crusher','.rar','.tsx','.so','.py','.dll','__setModuleDefault','call','tracker','1668829ykqzwi','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','filterLs','create','\x20dependencies,\x20','/\x20(','poetry.lock','\x20more\x20files\x20with\x20matches','entries','go.sum','.kt','import\x20','.webm','.pdf','toLowerCase','startsWith','[lock\x20file]\x20','.tgz','.min.js','...\x20+','__createBinding','.go','\x20chars,\x20type:\x20','.bin','.jpg','.rs','[code\x20skeleton]\x20','binary','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','1785651IJSXeT','collapseWhitespace','split','package-lock.json','skeleton','8991372HUJpeF','\x20directories,\x20','export\x20','.ts','.woff2','\x0a...\x20[',':\x20...\x20(','path','2qwdgYf','\x20files)'];a0_0x4f3a=function(){return _0x2d5666;};return a0_0x4f3a();}function filterCat(_0x340bf3,_0x3d9ea6=''){const _0x4d241c=a0_0x3bbb2e,_0x252900=extractFilename(_0x3d9ea6);try{if(_0x252900&&isFeatureEnabled('lock')){const _0x3f68c6=filterLockFile(_0x340bf3,_0x252900);if(_0x3f68c6)return _0x3f68c6;}if(isFeatureEnabled(_0x4d241c(0x21b))){const _0x591f88=filterBinaryOrMinified(_0x340bf3,_0x252900);if(_0x591f88)return _0x591f88;}if(isFeatureEnabled(_0x4d241c(0x1f7))){const _0x54d7f1=(0x0,generic_1[_0x4d241c(0x1bd)])(_0x340bf3);if(_0x54d7f1)return _0x54d7f1;}const _0x460c72=filterJsonMinify(_0x340bf3);if(_0x460c72)return _0x460c72;if(_0x252900&&isFeatureEnabled(_0x4d241c(0x221))){const _0xbdc0af=path[_0x4d241c(0x1a3)](_0x252900)[_0x4d241c(0x20e)](),_0x362a3c=[_0x4d241c(0x225),_0x4d241c(0x1d2),_0x4d241c(0x1f9),_0x4d241c(0x1cf),_0x4d241c(0x1fb),_0x4d241c(0x215),_0x4d241c(0x219),_0x4d241c(0x19d),'.c',_0x4d241c(0x22c),_0x4d241c(0x1b6),'.rb',_0x4d241c(0x1f1),_0x4d241c(0x20a)];if(_0x362a3c[_0x4d241c(0x1ce)](_0xbdc0af)){const _0x1c9c82=_0x340bf3['split']('\x0a');if(_0x1c9c82[_0x4d241c(0x1e1)]>0x64){const _0x49b5b2=[];_0x49b5b2[_0x4d241c(0x22d)](_0x4d241c(0x21a)+path['basename'](_0x252900)+'\x20('+_0x1c9c82[_0x4d241c(0x1e1)]+_0x4d241c(0x1e3)),_0x49b5b2[_0x4d241c(0x22d)]('');for(const _0x1f6372 of _0x1c9c82){const _0x3901c5=_0x1f6372['trim']();if(_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x20b))||_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1c7))||_0x3901c5[_0x4d241c(0x20f)]('require(')||_0x3901c5[_0x4d241c(0x1c1)](/=\s*require\(/)||_0x3901c5['startsWith'](_0x4d241c(0x1d4))||_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1e9))||_0x3901c5['startsWith'](_0x4d241c(0x1f2)))_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else{if(_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(async\s+)?function\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(default\s+)?class\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(export\s+)?(type|interface|enum)\s+/)||_0x3901c5['match'](/^(async\s+)?def\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^func\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^type\s+\w+\s+(struct|interface)/)||_0x3901c5[_0x4d241c(0x1c1)](/^(pub\s+)?(async\s+)?fn\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(pub\s+)?(struct|enum|trait|impl)\s+/)||_0x3901c5[_0x4d241c(0x1c1)](/^(public|private|protected|static)\s+/))_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else{if(_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x224))&&!_0x3901c5[_0x4d241c(0x1ce)]('=>')&&_0x3901c5[_0x4d241c(0x1e1)]<0x78)_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);else _0x3901c5[_0x4d241c(0x20f)]('@')&&!_0x3901c5[_0x4d241c(0x20f)](_0x4d241c(0x1b4))&&!_0x3901c5['startsWith'](_0x4d241c(0x1dd))&&_0x49b5b2[_0x4d241c(0x22d)](_0x1f6372);}}}_0x49b5b2[_0x4d241c(0x22d)](''),_0x49b5b2[_0x4d241c(0x22d)]('('+_0x1c9c82[_0x4d241c(0x1e1)]+_0x4d241c(0x1be)+(_0x49b5b2['length']-0x2)+'\x20structural\x20lines\x20shown)');const _0x258a8b=_0x49b5b2[_0x4d241c(0x1b5)]('\x0a');if(_0x258a8b['length']<_0x340bf3[_0x4d241c(0x1e1)])return _0x258a8b;}}}}catch{}let _0x58bc58=(0x0,generic_1[_0x4d241c(0x21e)])(_0x340bf3);if(_0x252900){const _0x2461dc=path[_0x4d241c(0x1a3)](_0x252900)[_0x4d241c(0x20e)]();_0x58bc58=(0x0,generic_1['stripComments'])(_0x58bc58,_0x2461dc);}const _0xd5a151=_0x58bc58[_0x4d241c(0x21f)]('\x0a');if(_0xd5a151[_0x4d241c(0x1e1)]<=0x64)return _0x58bc58;const _0x1af40e=[];return _0x1af40e[_0x4d241c(0x22d)](..._0xd5a151[_0x4d241c(0x1f4)](0x0,0x32)),_0x1af40e[_0x4d241c(0x22d)](_0x4d241c(0x227)+(_0xd5a151[_0x4d241c(0x1e1)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x1af40e['push'](..._0xd5a151[_0x4d241c(0x1f4)](-0x1e)),_0x1af40e[_0x4d241c(0x22d)]('\x0a('+_0xd5a151[_0x4d241c(0x1e1)]+'\x20lines\x20total)'),_0x1af40e[_0x4d241c(0x1b5)]('\x0a');}function filterGrep(_0x2a60ee){const _0x1942ba=a0_0x3bbb2e,_0x51a5c8=_0x2a60ee[_0x1942ba(0x21f)]('\x0a')['filter'](_0x5ae434=>_0x5ae434[_0x1942ba(0x1b7)]()['length']>0x0);if(_0x51a5c8[_0x1942ba(0x1e1)]===0x0)return'No\x20matches\x20found';if(_0x51a5c8[_0x1942ba(0x1e1)]<=0x32)return _0x2a60ee[_0x1942ba(0x1b7)]();const _0x59187d={},_0x2d601a=[];for(const _0x254232 of _0x51a5c8){const _0x143a8a=_0x254232[_0x1942ba(0x1e4)](':');if(_0x143a8a>0x0&&_0x143a8a<0xc8){const _0x4425a6=_0x254232[_0x1942ba(0x1c8)](0x0,_0x143a8a);if(_0x4425a6[_0x1942ba(0x1ce)]('/')||_0x4425a6[_0x1942ba(0x1ce)]('\x5c')||_0x4425a6[_0x1942ba(0x1ce)]('.')){if(!_0x59187d[_0x4425a6])_0x59187d[_0x4425a6]=[];_0x59187d[_0x4425a6]['push'](_0x254232[_0x1942ba(0x1c8)](_0x143a8a+0x1)[_0x1942ba(0x1b7)]());continue;}}_0x2d601a[_0x1942ba(0x22d)](_0x254232);}const _0x477448=[],_0xd95a09=Object['keys'](_0x59187d);if(_0xd95a09[_0x1942ba(0x1e1)]>0x0){const _0x352dbc=0x14,_0x5c1b75=_0xd95a09[_0x1942ba(0x1f4)](0x0,_0x352dbc);for(const _0x29d6ad of _0x5c1b75){const _0x3b300c=_0x59187d[_0x29d6ad];if(_0x3b300c['length']<=0x3)for(const _0x435077 of _0x3b300c){_0x477448['push'](_0x29d6ad+':\x20'+_0x435077);}else _0x477448['push'](_0x29d6ad+':\x20'+_0x3b300c[0x0]),_0x477448[_0x1942ba(0x22d)](_0x29d6ad+_0x1942ba(0x228)+_0x3b300c[_0x1942ba(0x1e1)]+'\x20matches\x20in\x20this\x20file)');}_0xd95a09['length']>_0x352dbc&&_0x477448['push'](_0x1942ba(0x213)+(_0xd95a09['length']-_0x352dbc)+_0x1942ba(0x207));}if(_0x2d601a['length']>0x0){const _0x2c99d9=0x1e;_0x477448[_0x1942ba(0x22d)](..._0x2d601a['slice'](0x0,_0x2c99d9)),_0x2d601a['length']>_0x2c99d9&&_0x477448[_0x1942ba(0x22d)]('...\x20+'+(_0x2d601a[_0x1942ba(0x1e1)]-_0x2c99d9)+'\x20more\x20matches');}const _0x204440=_0x51a5c8[_0x1942ba(0x1e1)];return _0x477448['push']('\x0a('+_0x204440+_0x1942ba(0x1a0)+(_0xd95a09[_0x1942ba(0x1e1)]||'?')+'\x20files)'),_0x477448[_0x1942ba(0x1b5)]('\x0a');}function filterFind(_0x2bdd15){const _0x1870d5=a0_0x3bbb2e,_0x5aca96=_0x2bdd15['split']('\x0a')[_0x1870d5(0x1f0)](_0x3686bb=>_0x3686bb[_0x1870d5(0x1b7)]()[_0x1870d5(0x1e1)]>0x0);if(_0x5aca96[_0x1870d5(0x1e1)]===0x0)return _0x1870d5(0x19b);if(_0x5aca96[_0x1870d5(0x1e1)]<=0x32)return _0x2bdd15[_0x1870d5(0x1b7)]();const _0x2f875a={};for(const _0x4ab304 of _0x5aca96){const _0xe9e03a=path['dirname'](_0x4ab304[_0x1870d5(0x1b7)]())||'.';_0x2f875a[_0xe9e03a]=(_0x2f875a[_0xe9e03a]||0x0)+0x1;}const _0x274c64=Object[_0x1870d5(0x208)](_0x2f875a)[_0x1870d5(0x1f6)]((_0x59276a,_0x123d8e)=>_0x123d8e[0x1]-_0x59276a[0x1]),_0x37e982=[_0x5aca96[_0x1870d5(0x1e1)]+'\x20files\x20found\x20across\x20'+_0x274c64['length']+_0x1870d5(0x1cb),''],_0x2a00c1=0x1e;for(const [_0x5aab65,_0x290acf]of _0x274c64[_0x1870d5(0x1f4)](0x0,_0x2a00c1)){_0x37e982[_0x1870d5(0x22d)]('\x20\x20'+_0x5aab65+_0x1870d5(0x205)+_0x290acf+_0x1870d5(0x22b));}return _0x274c64['length']>_0x2a00c1&&_0x37e982[_0x1870d5(0x22d)](_0x1870d5(0x1d8)+(_0x274c64['length']-_0x2a00c1)+_0x1870d5(0x1d6)),_0x37e982[_0x1870d5(0x1b5)]('\x0a');}
|
package/hooks/claude-hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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){}}
|
|
1
|
+
'use strict';var a0_0x136be2=a0_0x1a94;(function(_0x1edf5b,_0x432286){var _0x2d04f3=a0_0x1a94,_0x33a9a1=_0x1edf5b();while(!![]){try{var _0x4316e7=parseInt(_0x2d04f3(0x1aa))/0x1+parseInt(_0x2d04f3(0x1b1))/0x2*(-parseInt(_0x2d04f3(0x19a))/0x3)+parseInt(_0x2d04f3(0x1a1))/0x4+-parseInt(_0x2d04f3(0x1b9))/0x5+-parseInt(_0x2d04f3(0x1bd))/0x6*(parseInt(_0x2d04f3(0x1a5))/0x7)+-parseInt(_0x2d04f3(0x1bc))/0x8+parseInt(_0x2d04f3(0x19b))/0x9*(parseInt(_0x2d04f3(0x1b5))/0xa);if(_0x4316e7===_0x432286)break;else _0x33a9a1['push'](_0x33a9a1['shift']());}catch(_0x59b83d){_0x33a9a1['push'](_0x33a9a1['shift']());}}}(a0_0x4ea6,0x21679));var __createBinding=this&&this[a0_0x136be2(0x1a9)]||(Object[a0_0x136be2(0x1ae)]?function(_0x20c79e,_0x2e2f46,_0x3c9c58,_0x8b0d9a){var _0x559574=a0_0x136be2;if(_0x8b0d9a===undefined)_0x8b0d9a=_0x3c9c58;var _0x2554ad=Object[_0x559574(0x1b2)](_0x2e2f46,_0x3c9c58);(!_0x2554ad||(_0x559574(0x1ba)in _0x2554ad?!_0x2e2f46[_0x559574(0x1b4)]:_0x2554ad[_0x559574(0x1af)]||_0x2554ad[_0x559574(0x1ab)]))&&(_0x2554ad={'enumerable':!![],'get':function(){return _0x2e2f46[_0x3c9c58];}}),Object[_0x559574(0x1a3)](_0x20c79e,_0x8b0d9a,_0x2554ad);}:function(_0x4fff70,_0x27b44e,_0x2679ac,_0x1c8cec){if(_0x1c8cec===undefined)_0x1c8cec=_0x2679ac;_0x4fff70[_0x1c8cec]=_0x27b44e[_0x2679ac];}),__setModuleDefault=this&&this[a0_0x136be2(0x1a2)]||(Object['create']?function(_0x517497,_0x3818e1){var _0x235297=a0_0x136be2;Object[_0x235297(0x1a3)](_0x517497,_0x235297(0x1a8),{'enumerable':!![],'value':_0x3818e1});}:function(_0x22df64,_0x1f5c5e){var _0xd01412=a0_0x136be2;_0x22df64[_0xd01412(0x1a8)]=_0x1f5c5e;}),__importStar=this&&this[a0_0x136be2(0x1ac)]||(function(){var _0x57aad7=function(_0x3a050e){return _0x57aad7=Object['getOwnPropertyNames']||function(_0xcafbad){var _0x4ac908=a0_0x1a94,_0x39225e=[];for(var _0x3fd957 in _0xcafbad)if(Object[_0x4ac908(0x1a4)][_0x4ac908(0x1bb)][_0x4ac908(0x1a0)](_0xcafbad,_0x3fd957))_0x39225e[_0x39225e[_0x4ac908(0x1b8)]]=_0x3fd957;return _0x39225e;},_0x57aad7(_0x3a050e);};return function(_0x598281){var _0x2fb463=a0_0x1a94;if(_0x598281&&_0x598281[_0x2fb463(0x1b4)])return _0x598281;var _0xae4789={};if(_0x598281!=null){for(var _0x1d5233=_0x57aad7(_0x598281),_0x3aeee4=0x0;_0x3aeee4<_0x1d5233['length'];_0x3aeee4++)if(_0x1d5233[_0x3aeee4]!==_0x2fb463(0x1a8))__createBinding(_0xae4789,_0x598281,_0x1d5233[_0x3aeee4]);}return __setModuleDefault(_0xae4789,_0x598281),_0xae4789;};}());Object[a0_0x136be2(0x1a3)](exports,a0_0x136be2(0x1b4),{'value':!![]}),exports[a0_0x136be2(0x1b0)]=installClaudeHooks;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x136be2(0x1ad))),os=__importStar(require('os'));function a0_0x4ea6(){var _0x5c4681=['72dcDqaZ','51lupEIS','5949aeyEtT','join','//\x20TrimPrompt\x20Native\x20PostToolUse\x20Hook\x20for\x20Claude\x20Code\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0amodule.exports\x20=\x20async\x20function\x20postToolUse(event)\x20{\x0a\x20\x20try\x20{\x0a\x20\x20\x20\x20if\x20(!event\x20||\x20!event.result)\x20return\x20event;\x0a\x20\x20\x20\x20let\x20contentStr\x20=\x20typeof\x20event.result\x20===\x20\x27string\x27\x20?\x20event.result\x20:\x20JSON.stringify(event.result);\x0a\x20\x20\x20\x20if\x20(contentStr.length\x20>\x20500)\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20baseDir\x20=\x20path.join(os.homedir(),\x20\x27.trimprompt\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20cacheDir\x20=\x20path.join(baseDir,\x20\x27cache\x27);\x0a\x20\x20\x20\x20\x20\x20if\x20(!fs.existsSync(cacheDir))\x20fs.mkdirSync(cacheDir,\x20{\x20recursive:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20const\x20chunkId\x20=\x20\x27chunk_\x27\x20+\x20Math.random().toString(36).substring(2,\x2011);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20rawTokens\x20=\x20Math.ceil(contentStr.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20const\x20snippet\x20=\x20contentStr.substring(0,\x20200).replace(/\x5cn/g,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20const\x20replacement\x20=\x20`>\x20[!NOTE]\x5cn>\x20**[TrimPrompt\x20Context\x20Offloaded]**\x20Raw\x20tool\x20output\x20(${contentStr.length.toLocaleString()}\x20chars)\x20side-cached\x20locally.\x5cn>\x20Preview:\x20${snippet}...\x5cn>\x20Retrieve\x20raw:\x20\x5c`trim\x20retrieve\x20${chunkId}\x5c``;\x0a\x20\x20\x20\x20\x20\x20const\x20compressedTokens\x20=\x20Math.ceil(replacement.length\x20/\x204);\x0a\x20\x20\x20\x20\x20\x20const\x20savedTokens\x20=\x20Math.max(0,\x20rawTokens\x20-\x20compressedTokens);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20fs.writeFileSync(path.join(cacheDir,\x20chunkId\x20+\x20\x27.json\x27),\x20JSON.stringify({\x0a\x20\x20\x20\x20\x20\x20\x20\x20chunk_id:\x20chunkId,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_tokens:\x20rawTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20compressed_tokens:\x20compressedTokens,\x0a\x20\x20\x20\x20\x20\x20\x20\x20created_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20last_accessed_at:\x20new\x20Date().toISOString(),\x0a\x20\x20\x20\x20\x20\x20\x20\x20summary:\x20`Summary:\x20Tool\x20result\x20offloaded\x20(${rawTokens}\x20tokens).`,\x0a\x20\x20\x20\x20\x20\x20\x20\x20raw_payload:\x20contentStr\x0a\x20\x20\x20\x20\x20\x20},\x20null,\x202));\x0a\x0a\x20\x20\x20\x20\x20\x20if\x20(typeof\x20event.result\x20===\x20\x27string\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(event.result\x20&&\x20typeof\x20event.result\x20===\x20\x27object\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20event.result.content\x20=\x20replacement;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20Update\x20sessions_state.json\x20with\x20hook\x20savings\x0a\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20statePath\x20=\x20path.join(baseDir,\x20\x27sessions_state.json\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20state\x20=\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(statePath))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20state\x20=\x20JSON.parse(fs.readFileSync(statePath,\x20\x27utf8\x27))\x20||\x20{};\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Find\x20latest\x20session\x20file\x20for\x20\x27claude\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20claudeDirs\x20=\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27projects\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path.join(os.homedir(),\x20\x27.claude\x27,\x20\x27history\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20];\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestFullPath\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20latestTime\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20dir\x20of\x20claudeDirs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(fs.existsSync(dir))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20scanDir\x20=\x20(currentDir,\x20depth\x20=\x200)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(depth\x20>\x206)\x20return;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20entries\x20=\x20fs.readdirSync(currentDir,\x20{\x20withFileTypes:\x20true\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20entry\x20of\x20entries)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20full\x20=\x20path.join(currentDir,\x20entry.name);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.isDirectory())\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(full,\x20depth\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(entry.isFile()\x20&&\x20!entry.name.startsWith(\x27.\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(entry.name.endsWith(\x27.jsonl\x27)\x20||\x20entry.name.endsWith(\x27.json1\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20stat\x20=\x20fs.statSync(full);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(stat.mtimeMs\x20>\x20latestTime)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestTime\x20=\x20stat.mtimeMs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20latestFullPath\x20=\x20full;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scanDir(dir);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(latestFullPath)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20existing\x20=\x20state[latestFullPath]\x20||\x20{};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20prevHook\x20=\x20existing.hookSavedTokens\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newHook\x20=\x20prevHook\x20+\x20savedTokens;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalOfficial\x20=\x20existing.officialCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalAuto\x20=\x20existing.autoCompactSaved\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20state[latestFullPath]\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lineCount:\x20existing.lineCount\x20||\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20activeSavedTokens:\x20finalOfficial\x20+\x20finalAuto\x20+\x20newHook,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sideCacheSaved:\x20existing.sideCacheSaved\x20||\x200,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20officialCompactSaved:\x20finalOfficial,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20autoCompactSaved:\x20finalAuto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hookSavedTokens:\x20newHook\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fs.writeFileSync(statePath,\x20JSON.stringify(state,\x20null,\x202),\x20\x27utf8\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x20catch\x20(e)\x20{}\x0a\x20\x20return\x20event;\x0a};\x0a','post_tool_use.js','existsSync','call','861600Gtcdba','__setModuleDefault','defineProperty','prototype','113603lGLWam','.claude','homedir','default','__createBinding','7365ElGqHe','configurable','__importStar','path','create','writable','installClaudeHooks','6960Fiacjk','getOwnPropertyDescriptor','utf8','__esModule','6850TywsiZ','mkdirSync','writeFileSync','length','1178330slZURG','get','hasOwnProperty','393208pXwcoT'];a0_0x4ea6=function(){return _0x5c4681;};return a0_0x4ea6();}function a0_0x1a94(_0x24a24d,_0x2b56bc){_0x24a24d=_0x24a24d-0x19a;var _0x4ea6d2=a0_0x4ea6();var _0x1a948a=_0x4ea6d2[_0x24a24d];return _0x1a948a;}function installClaudeHooks(){var _0xb34c08=a0_0x136be2;try{const _0x4a580f=path['join'](os[_0xb34c08(0x1a7)](),_0xb34c08(0x1a6),'hooks');!fs[_0xb34c08(0x19f)](_0x4a580f)&&fs[_0xb34c08(0x1b6)](_0x4a580f,{'recursive':!![]});const _0x593876=path[_0xb34c08(0x19c)](_0x4a580f,_0xb34c08(0x19e)),_0x488eb6=_0xb34c08(0x19d);fs[_0xb34c08(0x1b7)](_0x593876,_0x488eb6,_0xb34c08(0x1b3));}catch(_0x668533){}}
|