trimprompt 1.0.34 → 1.0.36

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/file-watcher.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x19419e=a0_0x799b;(function(_0x3f1be8,_0x29242f){const _0x580b94=a0_0x799b,_0x3fb8d8=_0x3f1be8();while(!![]){try{const _0x379d4f=parseInt(_0x580b94(0x1f7))/0x1+-parseInt(_0x580b94(0x19e))/0x2+-parseInt(_0x580b94(0x1f3))/0x3+parseInt(_0x580b94(0x1b7))/0x4*(-parseInt(_0x580b94(0x203))/0x5)+parseInt(_0x580b94(0x1ae))/0x6*(-parseInt(_0x580b94(0x1a7))/0x7)+-parseInt(_0x580b94(0x1f8))/0x8+parseInt(_0x580b94(0x202))/0x9;if(_0x379d4f===_0x29242f)break;else _0x3fb8d8['push'](_0x3fb8d8['shift']());}catch(_0x39d3f1){_0x3fb8d8['push'](_0x3fb8d8['shift']());}}}(a0_0x23f4,0xb3e41));var __createBinding=this&&this[a0_0x19419e(0x199)]||(Object[a0_0x19419e(0x1f4)]?function(_0x1d9428,_0x299f45,_0x15b8c7,_0x241a6d){const _0x54b920=a0_0x19419e;if(_0x241a6d===undefined)_0x241a6d=_0x15b8c7;var _0x399f14=Object[_0x54b920(0x1d9)](_0x299f45,_0x15b8c7);(!_0x399f14||(_0x54b920(0x1e0)in _0x399f14?!_0x299f45[_0x54b920(0x19d)]:_0x399f14[_0x54b920(0x22e)]||_0x399f14[_0x54b920(0x1a4)]))&&(_0x399f14={'enumerable':!![],'get':function(){return _0x299f45[_0x15b8c7];}}),Object[_0x54b920(0x1ea)](_0x1d9428,_0x241a6d,_0x399f14);}:function(_0x54b573,_0x53cf74,_0x5cbf39,_0x1ce9fa){if(_0x1ce9fa===undefined)_0x1ce9fa=_0x5cbf39;_0x54b573[_0x1ce9fa]=_0x53cf74[_0x5cbf39];}),__setModuleDefault=this&&this[a0_0x19419e(0x1bb)]||(Object['create']?function(_0x2e5fb4,_0x434be9){const _0x294ca9=a0_0x19419e;Object[_0x294ca9(0x1ea)](_0x2e5fb4,_0x294ca9(0x230),{'enumerable':!![],'value':_0x434be9});}:function(_0x17a662,_0x5aee82){_0x17a662['default']=_0x5aee82;}),__importStar=this&&this[a0_0x19419e(0x19c)]||(function(){var _0x14c194=function(_0x49f43f){const _0xa8ecd9=a0_0x799b;return _0x14c194=Object[_0xa8ecd9(0x19b)]||function(_0x17e8b3){const _0x342c4d=_0xa8ecd9;var _0x4d089e=[];for(var _0x193b3e in _0x17e8b3)if(Object[_0x342c4d(0x246)][_0x342c4d(0x251)][_0x342c4d(0x1ee)](_0x17e8b3,_0x193b3e))_0x4d089e[_0x4d089e[_0x342c4d(0x248)]]=_0x193b3e;return _0x4d089e;},_0x14c194(_0x49f43f);};return function(_0x8e7a3c){const _0x1efadc=a0_0x799b;if(_0x8e7a3c&&_0x8e7a3c[_0x1efadc(0x19d)])return _0x8e7a3c;var _0x59e9ec={};if(_0x8e7a3c!=null){for(var _0x1a7288=_0x14c194(_0x8e7a3c),_0x462d34=0x0;_0x462d34<_0x1a7288[_0x1efadc(0x248)];_0x462d34++)if(_0x1a7288[_0x462d34]!==_0x1efadc(0x230))__createBinding(_0x59e9ec,_0x8e7a3c,_0x1a7288[_0x462d34]);}return __setModuleDefault(_0x59e9ec,_0x8e7a3c),_0x59e9ec;};}());Object['defineProperty'](exports,a0_0x19419e(0x19d),{'value':!![]}),exports[a0_0x19419e(0x1af)]=loadConfig,exports[a0_0x19419e(0x1d0)]=saveConfig,exports[a0_0x19419e(0x214)]=getAgentStoragePaths,exports[a0_0x19419e(0x1ff)]=getLatestSessionFile,exports[a0_0x19419e(0x220)]=loadSessionsState,exports[a0_0x19419e(0x237)]=saveSessionStateItem,exports[a0_0x19419e(0x236)]=processSessionFile,exports[a0_0x19419e(0x254)]=compactSessionCopy,exports[a0_0x19419e(0x1b2)]=compactLiveSession,exports[a0_0x19419e(0x233)]=installWindowsStartupService,exports[a0_0x19419e(0x1f1)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require(a0_0x19419e(0x219)),baseDir=path[a0_0x19419e(0x20f)](os[a0_0x19419e(0x1b0)](),'.trimprompt'),configPath=path['join'](baseDir,a0_0x19419e(0x1e8)),DEFAULT_CONFIG={'autostart_enabled':!![],'conversation_toggles':{'conv_claude':!![],'conv_codex':!![],'conv_cursor':!![],'conv_aider':!![],'conv_copilot':!![],'conv_openclaw':!![],'conv_opencode':!![],'conv_cortex':!![]},'custom_storage_paths':{'claude':null,'codex':null,'cursor':null,'aider':null,'copilot':null,'openclaw':null,'opencode':null,'cortex':null}};function a0_0x799b(_0x55c360,_0x1240ef){_0x55c360=_0x55c360-0x195;const _0x23f4b8=a0_0x23f4();let _0x799b0e=_0x23f4b8[_0x55c360];return _0x799b0e;}function loadConfig(){const _0x13d142=a0_0x19419e;try{if(!fs[_0x13d142(0x1c9)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});if(fs['existsSync'](configPath)){const _0x2b0c74=JSON[_0x13d142(0x1e2)](fs[_0x13d142(0x19a)](configPath,_0x13d142(0x1f0)));return{...DEFAULT_CONFIG,..._0x2b0c74,'conversation_toggles':{...DEFAULT_CONFIG[_0x13d142(0x1c6)],..._0x2b0c74[_0x13d142(0x1c6)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG['custom_storage_paths'],..._0x2b0c74[_0x13d142(0x1c2)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x3a0244){const _0x288e67=a0_0x19419e,_0x4abd3b=loadConfig(),_0x5a8066={..._0x4abd3b,..._0x3a0244,'conversation_toggles':{..._0x4abd3b['conversation_toggles'],..._0x3a0244[_0x288e67(0x1c6)]||{}},'custom_storage_paths':{..._0x4abd3b[_0x288e67(0x1c2)],..._0x3a0244[_0x288e67(0x1c2)]||{}}};try{if(!fs[_0x288e67(0x1c9)](baseDir))fs[_0x288e67(0x22b)](baseDir,{'recursive':!![]});fs[_0x288e67(0x22c)](configPath,JSON[_0x288e67(0x21f)](_0x5a8066,null,0x2),_0x288e67(0x1f0));}catch{}return _0x5a8066;}function getAgentStoragePaths(_0x7da94e){const _0x4ac033=a0_0x19419e,_0x18a7aa=loadConfig(),_0x167f63=_0x18a7aa[_0x4ac033(0x1c2)][_0x7da94e];if(_0x167f63&&fs['existsSync'](_0x167f63))return[_0x167f63];const _0x53ec10=os[_0x4ac033(0x1b0)](),_0x222abb=process['platform']==='win32',_0x1e8189=process[_0x4ac033(0x213)]===_0x4ac033(0x1a2);switch(_0x7da94e){case _0x4ac033(0x206):return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1b9),'projects'),path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1b9),_0x4ac033(0x1ba))];case'codex':return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1cd),_0x4ac033(0x24b)),path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1ca),_0x4ac033(0x21c),_0x4ac033(0x205))];case _0x4ac033(0x1a9):case _0x4ac033(0x196):return[path[_0x4ac033(0x20f)](_0x53ec10,'.gemini',_0x4ac033(0x196)),path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1e1)),path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1ca),'Roaming',_0x4ac033(0x22f)),path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x223),_0x4ac033(0x1a9))];case'cursor':if(_0x222abb)return[path['join'](_0x53ec10,_0x4ac033(0x1ca),'Roaming',_0x4ac033(0x240),_0x4ac033(0x232),_0x4ac033(0x247))];if(_0x1e8189)return[path[_0x4ac033(0x20f)](_0x53ec10,'Library',_0x4ac033(0x1a1),_0x4ac033(0x240),'User',_0x4ac033(0x247))];return[path['join'](_0x53ec10,_0x4ac033(0x223),_0x4ac033(0x240),_0x4ac033(0x232),'workspaceStorage')];case _0x4ac033(0x1fa):return[process[_0x4ac033(0x1e5)](),path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x20b))];case _0x4ac033(0x1b4):if(_0x222abb)return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x1ca),_0x4ac033(0x1df),_0x4ac033(0x1ab))];return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x223),'github-copilot-cli')];case _0x4ac033(0x259):return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x23a),_0x4ac033(0x238)),path['join'](process[_0x4ac033(0x1e5)](),_0x4ac033(0x23a),_0x4ac033(0x21a))];case _0x4ac033(0x1a3):return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x231),_0x4ac033(0x24b))];case _0x4ac033(0x1ac):return[path[_0x4ac033(0x20f)](_0x53ec10,_0x4ac033(0x225),_0x4ac033(0x256))];default:return[];}}function getLatestSessionFile(_0x11deb6){const _0x13669e=a0_0x19419e,_0x57045a=getAgentStoragePaths(_0x11deb6);let _0x555857=null,_0x43037d=0x0,_0x334236=null,_0x4d19ee=null;for(const _0x4499c3 of _0x57045a){if(fs[_0x13669e(0x1c9)](_0x4499c3)){if(!_0x4d19ee)_0x4d19ee=_0x4499c3;const _0x23aa76=(_0x65db8a,_0x25484e=0x0)=>{const _0x6e84b2=_0x13669e;if(_0x25484e>0x6)return;try{const _0x41b8e4=fs[_0x6e84b2(0x1e3)](_0x65db8a,{'withFileTypes':!![]});for(const _0x22483b of _0x41b8e4){const _0xdc23=path[_0x6e84b2(0x20f)](_0x65db8a,_0x22483b[_0x6e84b2(0x211)]);if(_0x22483b[_0x6e84b2(0x20a)]()){const _0x3b291c=_0x22483b['name'][_0x6e84b2(0x1b8)]();if(_0x3b291c==='node_modules'||_0x3b291c===_0x6e84b2(0x210)||_0x3b291c==='.venv'||_0x3b291c==='env'||_0x3b291c===_0x6e84b2(0x23f)||_0x3b291c==='__pycache__'||_0x3b291c===_0x6e84b2(0x1c5)||_0x3b291c==='dist'||_0x3b291c===_0x6e84b2(0x1b5)||_0x3b291c===_0x6e84b2(0x1d1)||_0x3b291c===_0x6e84b2(0x1ef))continue;_0x23aa76(_0xdc23,_0x25484e+0x1);}else{if(_0x22483b[_0x6e84b2(0x22d)]()&&!_0x22483b['name'][_0x6e84b2(0x23e)]('.')){const _0x122747=_0x22483b['name'][_0x6e84b2(0x1b8)]();if(_0x122747[_0x6e84b2(0x209)](_0x6e84b2(0x1de))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x1be))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x224))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x20c))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x1ec))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x221))||_0x122747[_0x6e84b2(0x1d8)]('.gif')||_0x122747['endsWith'](_0x6e84b2(0x1e9))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x1f6))||_0x122747['endsWith'](_0x6e84b2(0x1a0))||_0x122747['endsWith'](_0x6e84b2(0x1f5))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x250))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x239))||_0x122747[_0x6e84b2(0x1d8)](_0x6e84b2(0x24f))||_0x122747[_0x6e84b2(0x23e)](_0x6e84b2(0x23c))||_0x122747[_0x6e84b2(0x23e)](_0x6e84b2(0x1dd)))continue;const _0x17bfd8=fs[_0x6e84b2(0x1dc)](_0xdc23);_0x17bfd8[_0x6e84b2(0x200)]>_0x43037d&&(_0x43037d=_0x17bfd8[_0x6e84b2(0x200)],_0x555857=_0x22483b[_0x6e84b2(0x211)],_0x334236=_0xdc23,_0x4d19ee=_0x4499c3);}}}}catch{}};_0x23aa76(_0x4499c3);}}return{'fileName':_0x555857,'lastModified':_0x43037d>0x0?new Date(_0x43037d)[_0x13669e(0x1cc)]():null,'fullPath':_0x334236,'dirPath':_0x4d19ee};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x1b0791,_0x3abd55,_0x31651a){const _0x48cf98=a0_0x19419e;let _0xdc2a71=![],_0x15dd48=0x0;if(!_0x1b0791)return{'modified':_0xdc2a71,'savedTokens':_0x15dd48};const _0x1d9cc7=_0x2bfb93=>_0x2bfb93[_0x48cf98(0x1bc)](/\r\n/g,'\x0a')[_0x48cf98(0x1bc)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x1b0791[_0x48cf98(0x249)]==='string'){let _0x149cb2=_0x1b0791[_0x48cf98(0x249)],_0x12480d=_0x1d9cc7(_0x149cb2);_0x12480d[_0x48cf98(0x248)]<_0x149cb2[_0x48cf98(0x248)]&&(_0x1b0791['content']=_0x12480d,_0xdc2a71=!![],_0x15dd48+=Math[_0x48cf98(0x244)]((_0x149cb2[_0x48cf98(0x248)]-_0x12480d[_0x48cf98(0x248)])/0x4));if(_0x1b0791[_0x48cf98(0x249)][_0x48cf98(0x248)]>OFFLOAD_THRESHOLD_CHARS&&!_0x1b0791[_0x48cf98(0x249)][_0x48cf98(0x209)](_0x48cf98(0x1ce))){const _0x172376=_0x48cf98(0x1c1)+Math[_0x48cf98(0x244)](_0x1b0791[_0x48cf98(0x249)]['length']/0x4)+_0x48cf98(0x1db),_0x3a7515=(0x0,cache_manager_1[_0x48cf98(0x227)])(_0x3abd55,_0x31651a,_0x1b0791[_0x48cf98(0x249)],_0x172376);_0x1b0791[_0x48cf98(0x249)]=_0x48cf98(0x24a)+_0x3a7515[_0x48cf98(0x1fe)]+_0x48cf98(0x1c4)+_0x3a7515[_0x48cf98(0x217)]+_0x48cf98(0x24d)+_0x3a7515['chunk_id']+'`\x0a',_0xdc2a71=!![],_0x15dd48+=Math[_0x48cf98(0x216)](0x0,_0x3a7515[_0x48cf98(0x1fe)]-_0x3a7515[_0x48cf98(0x257)]);}}else{if(Array[_0x48cf98(0x22a)](_0x1b0791[_0x48cf98(0x249)]))for(const _0x80aff of _0x1b0791['content']){if(_0x80aff&&typeof _0x80aff===_0x48cf98(0x212)){if(typeof _0x80aff[_0x48cf98(0x1d3)]===_0x48cf98(0x1d2)){let _0x356c4c=_0x80aff[_0x48cf98(0x1d3)],_0x565edf=_0x1d9cc7(_0x356c4c);_0x565edf['length']<_0x356c4c[_0x48cf98(0x248)]&&(_0x80aff[_0x48cf98(0x1d3)]=_0x565edf,_0xdc2a71=!![],_0x15dd48+=Math[_0x48cf98(0x244)]((_0x356c4c[_0x48cf98(0x248)]-_0x565edf['length'])/0x4));if(_0x80aff['text']['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x80aff[_0x48cf98(0x1d3)]['includes'](_0x48cf98(0x1ce))){const _0x335d9c=_0x48cf98(0x245)+Math[_0x48cf98(0x244)](_0x80aff[_0x48cf98(0x1d3)]['length']/0x4)+_0x48cf98(0x1db),_0x2adfba=(0x0,cache_manager_1[_0x48cf98(0x227)])(_0x3abd55,_0x31651a,_0x80aff['text'],_0x335d9c);_0x80aff['text']=_0x48cf98(0x208)+_0x2adfba[_0x48cf98(0x217)]+_0x48cf98(0x1c7)+_0x2adfba[_0x48cf98(0x217)]+'`\x0a',_0xdc2a71=!![],_0x15dd48+=Math[_0x48cf98(0x216)](0x0,_0x2adfba['raw_tokens']-_0x2adfba[_0x48cf98(0x257)]);}}else{if(typeof _0x80aff['content']===_0x48cf98(0x1d2)){let _0x104ae6=_0x80aff[_0x48cf98(0x249)],_0x5061b2=_0x1d9cc7(_0x104ae6);_0x5061b2[_0x48cf98(0x248)]<_0x104ae6['length']&&(_0x80aff[_0x48cf98(0x249)]=_0x5061b2,_0xdc2a71=!![],_0x15dd48+=Math[_0x48cf98(0x244)]((_0x104ae6[_0x48cf98(0x248)]-_0x5061b2[_0x48cf98(0x248)])/0x4));if(_0x80aff['content']['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x80aff[_0x48cf98(0x249)][_0x48cf98(0x209)](_0x48cf98(0x1ce))){const _0x4156ac=_0x48cf98(0x1b1)+Math[_0x48cf98(0x244)](_0x80aff[_0x48cf98(0x249)][_0x48cf98(0x248)]/0x4)+'\x20tokens).',_0x191344=(0x0,cache_manager_1[_0x48cf98(0x227)])(_0x3abd55,_0x31651a,_0x80aff[_0x48cf98(0x249)],_0x4156ac);_0x80aff[_0x48cf98(0x249)]=_0x48cf98(0x208)+_0x191344[_0x48cf98(0x217)]+'`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20'+_0x191344[_0x48cf98(0x217)]+'`\x0a',_0xdc2a71=!![],_0x15dd48+=Math['max'](0x0,_0x191344[_0x48cf98(0x1fe)]-_0x191344[_0x48cf98(0x257)]);}}}}}}return{'modified':_0xdc2a71,'savedTokens':_0x15dd48};}const sessionsStatePath=path[a0_0x19419e(0x20f)](baseDir,a0_0x19419e(0x215));let sessionsStateMemoryCache=null;function a0_0x23f4(){const _0x14263e=['compressed_tokens','prompt_turn','openclaw','messages','antigravity','split','tokens','__createBinding','readFileSync','getOwnPropertyNames','__importStar','__esModule','2942876gtWdCT','system','.wal','Application\x20Support','darwin','opencode','configurable','matchAll','compact_copy','120701UDmhLg','push','gemini','live-conv','github-copilot-cli','cortex','repeat','408SLravG','loadConfig','homedir','Summary:\x20Tool\x20result\x20offloaded\x20(','compactLiveSession','byteLength','copilot','build','type','4921196uWxmzT','toLowerCase','.claude','history','__setModuleDefault','replace','modified','.db','autoCompactSaved','set','Summary:\x20Content\x20offloaded\x20(','custom_storage_paths','conv_','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','.next','conversation_toggles','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','lineCount','existsSync','AppData','./proxy-conv','toISOString','.codex','TrimPrompt\x20Cache\x20Engine','activeSavedTokens','saveConfig','out','string','text','.json','officialCompactSaved','cursor','role','endsWith','getOwnPropertyDescriptor','./hooks/claude-hook','\x20tokens).','statSync','image_','.compact','Local','get','.gemini','parse','readdirSync','TrimPromptDaemon.vbs','cwd','basename','renameSync','config.json','.webp','defineProperty','Microsoft','.jpg','cli.js','call','.agents','utf8','startWatcherDaemon','Windows','2841774QraGzn','create','.shm','.pb','999475UdvjYd','900784odoGcw','find','aider','compaction\x20failed','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','message','raw_tokens','getLatestSessionFile','mtimeMs','logExecution','42043275UxNxEb','5kLgmMw','savedTokens','Codex','claude','size','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','includes','isDirectory','.aider.chat.history.md','.png','.jsonl','has','join','.git','name','object','platform','getAgentStoragePaths','sessions_state.json','max','chunk_id','codex','./tracker','context','saved','Roaming','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','hookSavedTokens','stringify','loadSessionsState','.jpeg','filter','.config','.vscdb','.cortex','assign','saveChunk','dirname','.json1','isArray','mkdirSync','writeFileSync','isFile','writable','Gemini','default','.opencode','User','installWindowsStartupService','tracker','compact:','processSessionFile','saveSessionStateItem','storage','.lock','.openclaw','none','media__','Startup','startsWith','venv','Cursor','fullPath','Unsupported\x20extension','sideCacheSaved','ceil','Summary:\x20Text\x20block\x20offloaded\x20(','prototype','workspaceStorage','length','content','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','sessions','watch','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','Programs','.dat','.tmp','hasOwnProperty','extname','round','compactSessionCopy','trim','cache'];a0_0x23f4=function(){return _0x14263e;};return a0_0x23f4();}function loadSessionsState(){const _0x36be39=a0_0x19419e;try{if(fs[_0x36be39(0x1c9)](sessionsStatePath)){const _0x77e2db=JSON[_0x36be39(0x1e2)](fs[_0x36be39(0x19a)](sessionsStatePath,'utf8'));if(_0x77e2db&&typeof _0x77e2db==='object')return sessionsStateMemoryCache=_0x77e2db,_0x77e2db;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x55f74e,_0x2f1d01,_0x42e22d,_0x29727e=0x0,_0x49bcd0=0x0,_0x892f0=0x0){const _0x5a5338=a0_0x19419e;try{const _0xa443a8=loadSessionsState(),_0x2552f3=_0xa443a8[_0x55f74e]||{},_0x4c3f41=_0x49bcd0||_0x2552f3[_0x5a5338(0x1bf)]||0x0,_0x2d0886=_0x892f0||_0x2552f3['hookSavedTokens']||0x0,_0x5699a0=_0x42e22d!==undefined?_0x42e22d:_0x2552f3['officialCompactSaved']||0x0;_0xa443a8[_0x55f74e]={'lineCount':_0x2f1d01||_0x2552f3[_0x5a5338(0x1c8)]||0x1,'activeSavedTokens':_0x5699a0+_0x4c3f41+_0x2d0886,'sideCacheSaved':_0x29727e||_0x2552f3[_0x5a5338(0x243)]||0x0,'officialCompactSaved':_0x5699a0,'autoCompactSaved':_0x4c3f41,'hookSavedTokens':_0x2d0886},sessionsStateMemoryCache=_0xa443a8;if(!fs[_0x5a5338(0x1c9)](baseDir))fs[_0x5a5338(0x22b)](baseDir,{'recursive':!![]});const _0x5967d1=sessionsStatePath+'.tmp';fs['writeFileSync'](_0x5967d1,JSON[_0x5a5338(0x21f)](_0xa443a8,null,0x2),'utf8'),fs[_0x5a5338(0x1e7)](_0x5967d1,sessionsStatePath);}catch{}}function processSessionFile(_0xec5c54,_0x5736b3){const _0x579a1a=a0_0x19419e;try{if(!fs[_0x579a1a(0x1c9)](_0xec5c54))return;const _0x302365=fs[_0x579a1a(0x1dc)](_0xec5c54);if(_0x302365[_0x579a1a(0x20a)]()||_0x302365[_0x579a1a(0x207)]===0x0)return;const _0x4ea476=loadConfig(),_0x140c95=_0x579a1a(0x1c3)+_0x5736b3;if(_0x4ea476[_0x579a1a(0x1c6)][_0x140c95]===![])return;const _0x1d0ea5=fs[_0x579a1a(0x19a)](_0xec5c54,_0x579a1a(0x1f0)),_0x590a19=path[_0x579a1a(0x252)](_0xec5c54)[_0x579a1a(0x1b8)]();let _0x171aa9=0x1;if(_0x590a19==='.jsonl'||_0x590a19===_0x579a1a(0x229))_0x171aa9=_0x1d0ea5['split']('\x0a')[_0x579a1a(0x222)](Boolean)['length'];else{if(_0x590a19===_0x579a1a(0x1d4))try{const _0x302b49=JSON[_0x579a1a(0x1e2)](_0x1d0ea5),_0x420e50=Array[_0x579a1a(0x22a)](_0x302b49[_0x579a1a(0x195)])?_0x302b49[_0x579a1a(0x195)]:Array[_0x579a1a(0x22a)](_0x302b49)?_0x302b49:null;if(_0x420e50)_0x171aa9=_0x420e50[_0x579a1a(0x248)];}catch{}}let _0x43e5fd=0x0;if((_0x590a19===_0x579a1a(0x20d)||_0x590a19===_0x579a1a(0x229))&&_0x1d0ea5[_0x579a1a(0x209)]('saved')&&_0x1d0ea5[_0x579a1a(0x209)](_0x579a1a(0x198))){const _0x470ab4=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x58961c of _0x1d0ea5[_0x579a1a(0x197)]('\x0a')){if(!_0x58961c['includes'](_0x579a1a(0x21b))||!_0x58961c[_0x579a1a(0x209)](_0x579a1a(0x198)))continue;try{const _0x1fea2b=JSON[_0x579a1a(0x1e2)](_0x58961c);if(_0x1fea2b[_0x579a1a(0x1b6)]!==_0x579a1a(0x19f))continue;const _0xb22a1e=typeof _0x1fea2b[_0x579a1a(0x249)]===_0x579a1a(0x1d2)?_0x1fea2b[_0x579a1a(0x249)]:_0x1fea2b[_0x579a1a(0x1fd)]&&typeof _0x1fea2b[_0x579a1a(0x1fd)]['content']==='string'?_0x1fea2b[_0x579a1a(0x1fd)][_0x579a1a(0x249)]:'';if(!_0xb22a1e)continue;for(const _0x25fd15 of _0xb22a1e[_0x579a1a(0x1a5)](_0x470ab4)){let _0x4e2e08=parseFloat(_0x25fd15[0x1]);if(_0x25fd15[0x0][_0x579a1a(0x1b8)]()[_0x579a1a(0x209)]('k'))_0x4e2e08=_0x4e2e08*0x3e8;_0x43e5fd+=Math['round'](_0x4e2e08);}}catch{}}}const _0x40178a=loadSessionsState(),_0x3e4cb8=_0x40178a[_0xec5c54],_0xd00f35=_0x3e4cb8?_0x3e4cb8[_0x579a1a(0x1c8)]:0x0,_0x5364da=_0x3e4cb8?_0x3e4cb8[_0x579a1a(0x1cf)]||0x0:0x0;if(_0xd00f35>0x0&&_0x171aa9>_0xd00f35&&_0x5364da>0x0){const _0x37d718='conv:'+_0x5736b3;tracker_1[_0x579a1a(0x234)][_0x579a1a(0x201)](_0x37d718,'A'[_0x579a1a(0x1ad)](_0x5364da*0x4),'',0x0,undefined,[_0x579a1a(0x1c3)+_0x5736b3,_0x579a1a(0x1aa),_0x5736b3,_0x579a1a(0x258)]);}const _0x35adbc=_0x3e4cb8&&_0x3e4cb8['officialCompactSaved']!==undefined?_0x3e4cb8[_0x579a1a(0x1d5)]:0x0,_0x3acfe9=Math[_0x579a1a(0x216)](_0x35adbc,_0x43e5fd);saveSessionStateItem(_0xec5c54,_0x171aa9,_0x3acfe9,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x447e00,_0x13399a){const _0x23dc86=a0_0x19419e;try{if(!fs[_0x23dc86(0x1c9)](_0x447e00))return{'ok':![],'reason':'Session\x20file\x20not\x20found'};const _0x6be111=path[_0x23dc86(0x252)](_0x447e00)['toLowerCase']();if(_0x6be111!=='.json'&&_0x6be111!==_0x23dc86(0x20d)&&_0x6be111!==_0x23dc86(0x229))return{'ok':![],'reason':'Unsupported\x20format\x20\x27'+(_0x6be111||_0x23dc86(0x23b))+'\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)'};const _0x34d46e=fs[_0x23dc86(0x19a)](_0x447e00,_0x23dc86(0x1f0)),_0x471ccf=Buffer[_0x23dc86(0x1b3)](_0x34d46e,_0x23dc86(0x1f0)),_0x80b725=path['basename'](_0x447e00,_0x6be111);let _0x187713=_0x34d46e,_0x20686a=![];if(_0x6be111===_0x23dc86(0x1d4)){const _0x2ecebc=JSON[_0x23dc86(0x1e2)](_0x34d46e),_0x3c5a66=Array[_0x23dc86(0x22a)](_0x2ecebc[_0x23dc86(0x195)])?_0x2ecebc[_0x23dc86(0x195)]:Array['isArray'](_0x2ecebc)?_0x2ecebc:null;if(_0x3c5a66){for(const _0x5a1938 of _0x3c5a66){const _0x5179ed=compressMessageContent(_0x5a1938,_0x80b725,_0x13399a);if(_0x5179ed[_0x23dc86(0x1bd)])_0x20686a=!![];}if(_0x20686a)_0x187713=JSON[_0x23dc86(0x21f)](_0x2ecebc,null,0x2);}}else{const _0x5ef0de=_0x34d46e[_0x23dc86(0x197)]('\x0a'),_0x4f552b=[];for(let _0x4e69d0 of _0x5ef0de){if(!_0x4e69d0[_0x23dc86(0x255)]()){_0x4f552b['push'](_0x4e69d0);continue;}try{const _0x231550=JSON[_0x23dc86(0x1e2)](_0x4e69d0),_0x179928=_0x231550[_0x23dc86(0x1fd)]||_0x231550;if(_0x179928){const _0x1991e9=compressMessageContent(_0x179928,_0x80b725,_0x13399a);_0x1991e9[_0x23dc86(0x1bd)]&&(_0x20686a=!![],_0x4e69d0=JSON[_0x23dc86(0x21f)](_0x231550));}}catch{}_0x4f552b[_0x23dc86(0x1a8)](_0x4e69d0);}if(_0x20686a)_0x187713=_0x4f552b[_0x23dc86(0x20f)]('\x0a');}const _0x4dfe25=Buffer[_0x23dc86(0x1b3)](_0x187713,_0x23dc86(0x1f0)),_0x3eaa3a=path[_0x23dc86(0x20f)](path[_0x23dc86(0x228)](_0x447e00),_0x80b725+'.compact'+_0x6be111);fs[_0x23dc86(0x22c)](_0x3eaa3a,_0x187713,_0x23dc86(0x1f0));const _0x30ca71=Math[_0x23dc86(0x244)](_0x471ccf/0x4),_0x162256=Math[_0x23dc86(0x244)](_0x4dfe25/0x4),_0x47ffa8=Math['max'](0x0,_0x30ca71-_0x162256),_0x160fc4=_0x471ccf>0x0?Math[_0x23dc86(0x253)]((0x1-_0x4dfe25/_0x471ccf)*0x3e8)/0xa:0x0;return _0x47ffa8>0x0&&tracker_1['tracker'][_0x23dc86(0x201)]('compact:'+_0x13399a,_0x34d46e,_0x187713,_0x47ffa8,undefined,[_0x23dc86(0x1c3)+_0x13399a,'live-conv',_0x13399a,_0x23dc86(0x1a6)]),{'ok':!![],'compactPath':_0x3eaa3a,'rawBytes':_0x471ccf,'compressedBytes':_0x4dfe25,'rawTokens':_0x30ca71,'compressedTokens':_0x162256,'savedTokens':_0x47ffa8,'reductionPct':_0x160fc4};}catch(_0x299a1d){return{'ok':![],'reason':_0x299a1d?.['message']||_0x23dc86(0x1fb)};}}function compactLiveSession(_0x294cb7,_0x49cc01){const _0x516305=a0_0x19419e;try{if(!fs['existsSync'](_0x294cb7))return{'ok':![],'savedTokens':0x0,'reason':'File\x20not\x20found'};const _0x4b5028=path[_0x516305(0x252)](_0x294cb7)['toLowerCase']();if(_0x4b5028!==_0x516305(0x1d4)&&_0x4b5028!==_0x516305(0x20d)&&_0x4b5028!==_0x516305(0x229))return{'ok':![],'savedTokens':0x0,'reason':_0x516305(0x242)};const _0x3da27a=fs[_0x516305(0x19a)](_0x294cb7,_0x516305(0x1f0)),_0x4926da=Buffer[_0x516305(0x1b3)](_0x3da27a,'utf8'),_0x51a6d3=Math[_0x516305(0x244)](_0x4926da/0x4),_0x38f8e7=path[_0x516305(0x1e6)](_0x294cb7,_0x4b5028);let _0x30bd59=_0x3da27a,_0x321519=![];if(_0x4b5028===_0x516305(0x1d4)){const _0x1007e2=JSON[_0x516305(0x1e2)](_0x3da27a),_0x533f36=Array['isArray'](_0x1007e2['messages'])?_0x1007e2[_0x516305(0x195)]:Array[_0x516305(0x22a)](_0x1007e2)?_0x1007e2:null;if(_0x533f36){for(const _0x193b4d of _0x533f36){const _0xfbed88=compressMessageContent(_0x193b4d,_0x38f8e7,_0x49cc01);if(_0xfbed88['modified'])_0x321519=!![];}const {compressConversation:_0x6d04c}=require(_0x516305(0x1cb)),_0x34c091=_0x6d04c(_0x533f36,0x9c40);_0x34c091['savedTokens']>0x0&&(_0x321519=!![],Array[_0x516305(0x22a)](_0x1007e2[_0x516305(0x195)])?_0x1007e2[_0x516305(0x195)]=_0x34c091['messages']:_0x30bd59=JSON[_0x516305(0x21f)](_0x34c091[_0x516305(0x195)],null,0x2)),_0x321519&&!Array['isArray'](_0x1007e2)&&(_0x30bd59=JSON[_0x516305(0x21f)](_0x1007e2,null,0x2));}}else{const _0x58a0c3=_0x3da27a[_0x516305(0x197)]('\x0a'),_0x35b37a=[],_0xfb756d=[];for(const _0x2d9b3f of _0x58a0c3){if(!_0x2d9b3f[_0x516305(0x255)]())continue;try{const _0x29ced0=JSON[_0x516305(0x1e2)](_0x2d9b3f);_0x35b37a['push'](_0x29ced0);const _0x4d34ba=_0x29ced0[_0x516305(0x1fd)]||_0x29ced0;_0x4d34ba&&typeof _0x4d34ba['role']==='string'&&_0xfb756d[_0x516305(0x1a8)](_0x4d34ba);}catch{}}for(const _0x264867 of _0xfb756d){const _0x256893=compressMessageContent(_0x264867,_0x38f8e7,_0x49cc01);if(_0x256893[_0x516305(0x1bd)])_0x321519=!![];}const {compressConversation:_0x42eef1}=require(_0x516305(0x1cb)),_0x27f793=_0x42eef1(_0xfb756d,0x9c40);if(_0x27f793[_0x516305(0x204)]>0x0||_0x321519){const _0x71ed77=[];for(const _0x13f03d of _0x35b37a){const _0x5e308d=_0x13f03d['message']||_0x13f03d;if(_0x5e308d&&typeof _0x5e308d[_0x516305(0x1d7)]===_0x516305(0x1d2)){const _0xb12c0a=_0x27f793['messages'][_0x516305(0x1f9)](_0x2d2bbe=>_0x2d2bbe===_0x5e308d);_0xb12c0a?(_0x13f03d[_0x516305(0x1fd)]?_0x13f03d['message']=_0xb12c0a:Object[_0x516305(0x226)](_0x13f03d,_0xb12c0a),_0x71ed77['push'](JSON['stringify'](_0x13f03d))):_0x321519=!![];}else _0x71ed77['push'](JSON[_0x516305(0x21f)](_0x13f03d));}_0x30bd59=_0x71ed77[_0x516305(0x20f)]('\x0a'),_0x321519=!![];}}if(_0x321519){const _0x2cf736=Buffer[_0x516305(0x1b3)](_0x30bd59,_0x516305(0x1f0));fs[_0x516305(0x22c)](_0x294cb7,_0x30bd59,'utf8');const _0x4f2d63=Math[_0x516305(0x244)](_0x2cf736/0x4),_0x47386d=Math[_0x516305(0x216)](0x0,_0x51a6d3-_0x4f2d63);if(_0x47386d>0x0){const _0x2e8217=loadSessionsState(),_0x433b75=_0x2e8217[_0x294cb7]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x1e3823=_0x433b75[_0x516305(0x1bf)]||0x0,_0x4318ea=_0x1e3823+_0x47386d;saveSessionStateItem(_0x294cb7,_0x433b75['lineCount'],_0x433b75[_0x516305(0x1d5)]||0x0,_0x433b75['sideCacheSaved']||0x0,_0x4318ea,_0x433b75[_0x516305(0x21e)]||0x0),tracker_1['tracker'][_0x516305(0x201)](_0x516305(0x235)+_0x49cc01,_0x3da27a,_0x30bd59,_0x47386d,undefined,[_0x516305(0x1c3)+_0x49cc01,_0x516305(0x1aa),_0x49cc01,_0x516305(0x1a6)]);}return{'ok':!![],'savedTokens':_0x47386d};}return{'ok':!![],'savedTokens':0x0};}catch(_0x2e00c7){return{'ok':![],'savedTokens':0x0,'reason':_0x2e00c7[_0x516305(0x1fd)]||'Compaction\x20failed'};}}function installWindowsStartupService(){const _0x50c7c1=a0_0x19419e;if(process[_0x50c7c1(0x213)]!=='win32')return;try{const _0x24fc87=path[_0x50c7c1(0x20f)](os[_0x50c7c1(0x1b0)](),_0x50c7c1(0x1ca),_0x50c7c1(0x21c),_0x50c7c1(0x1eb),_0x50c7c1(0x1f2),'Start\x20Menu',_0x50c7c1(0x24e),_0x50c7c1(0x23d));if(!fs[_0x50c7c1(0x1c9)](_0x24fc87))fs[_0x50c7c1(0x22b)](_0x24fc87,{'recursive':!![]});const _0x205533=path[_0x50c7c1(0x20f)](_0x24fc87,_0x50c7c1(0x1e4)),_0x435e20=path[_0x50c7c1(0x20f)](__dirname,_0x50c7c1(0x1ed)),_0x23bc8c=_0x435e20[_0x50c7c1(0x1bc)](/\\/g,'\x5c\x5c'),_0x41a010=_0x50c7c1(0x21d)+_0x23bc8c+_0x50c7c1(0x1fc);fs[_0x50c7c1(0x22c)](_0x205533,_0x41a010,'utf8');}catch{}}function startWatcherDaemon(){const _0x55b9e7=a0_0x19419e;installWindowsStartupService();try{const {installClaudeHooks:_0x47bdb0}=require(_0x55b9e7(0x1da));_0x47bdb0();}catch(_0x461317){}const _0x320dbc=[_0x55b9e7(0x206),_0x55b9e7(0x1a9),_0x55b9e7(0x218),_0x55b9e7(0x1d6),_0x55b9e7(0x1fa),_0x55b9e7(0x1b4),_0x55b9e7(0x259),_0x55b9e7(0x1a3),_0x55b9e7(0x1ac)];for(const _0x5269c2 of _0x320dbc){const _0x1c0a53=getAgentStoragePaths(_0x5269c2);for(const _0x572f8a of _0x1c0a53){if(fs[_0x55b9e7(0x1c9)](_0x572f8a))try{fs[_0x55b9e7(0x24c)](_0x572f8a,{'recursive':!![]},(_0x5bcdba,_0x4356b1)=>{const _0x481d1c=_0x55b9e7;if(!_0x4356b1)return;const _0xa6bc84=path[_0x481d1c(0x20f)](_0x572f8a,_0x4356b1);if(debounceTimers[_0x481d1c(0x20e)](_0xa6bc84))clearTimeout(debounceTimers['get'](_0xa6bc84));const _0x42419e=setTimeout(()=>processSessionFile(_0xa6bc84,_0x5269c2),0x1f4);debounceTimers[_0x481d1c(0x1c0)](_0xa6bc84,_0x42419e);});}catch{}}}setInterval(()=>{const _0x16f569=_0x55b9e7;for(const _0xb7b81c of _0x320dbc){try{const _0x10e837=getLatestSessionFile(_0xb7b81c);_0x10e837&&_0x10e837[_0x16f569(0x241)]&&processSessionFile(_0x10e837[_0x16f569(0x241)],_0xb7b81c);}catch{}}},0xbb8);const _0x1ee2ce=()=>{const _0x52873f=_0x55b9e7;for(const _0x29fd6d of _0x320dbc){try{const _0x2a431c=getLatestSessionFile(_0x29fd6d);_0x2a431c&&_0x2a431c['fullPath']&&compactLiveSession(_0x2a431c[_0x52873f(0x241)],_0x29fd6d);}catch{}}};setTimeout(_0x1ee2ce,0x7d0),setInterval(_0x1ee2ce,0x2bf20);}
1
+ 'use strict';const a0_0x1eccfc=a0_0x1fa3;(function(_0x3b8ad5,_0x49c718){const _0x5ccbdb=a0_0x1fa3,_0x1c19af=_0x3b8ad5();while(!![]){try{const _0x1f7458=-parseInt(_0x5ccbdb(0x1ec))/0x1+parseInt(_0x5ccbdb(0x241))/0x2*(-parseInt(_0x5ccbdb(0x27d))/0x3)+-parseInt(_0x5ccbdb(0x228))/0x4*(-parseInt(_0x5ccbdb(0x1f6))/0x5)+parseInt(_0x5ccbdb(0x26b))/0x6+parseInt(_0x5ccbdb(0x268))/0x7*(-parseInt(_0x5ccbdb(0x22d))/0x8)+-parseInt(_0x5ccbdb(0x243))/0x9*(parseInt(_0x5ccbdb(0x1fe))/0xa)+parseInt(_0x5ccbdb(0x224))/0xb;if(_0x1f7458===_0x49c718)break;else _0x1c19af['push'](_0x1c19af['shift']());}catch(_0x50fc50){_0x1c19af['push'](_0x1c19af['shift']());}}}(a0_0x187c,0xa2eb8));function a0_0x1fa3(_0x512080,_0x811c09){_0x512080=_0x512080-0x1e2;const _0x187cc0=a0_0x187c();let _0x1fa3b2=_0x187cc0[_0x512080];return _0x1fa3b2;}var __createBinding=this&&this[a0_0x1eccfc(0x273)]||(Object[a0_0x1eccfc(0x281)]?function(_0x4e27a5,_0xbf3493,_0x4dd7c2,_0x1f28b1){const _0x452e3b=a0_0x1eccfc;if(_0x1f28b1===undefined)_0x1f28b1=_0x4dd7c2;var _0x10e9f8=Object[_0x452e3b(0x242)](_0xbf3493,_0x4dd7c2);(!_0x10e9f8||(_0x452e3b(0x29b)in _0x10e9f8?!_0xbf3493['__esModule']:_0x10e9f8[_0x452e3b(0x1f5)]||_0x10e9f8[_0x452e3b(0x1f4)]))&&(_0x10e9f8={'enumerable':!![],'get':function(){return _0xbf3493[_0x4dd7c2];}}),Object['defineProperty'](_0x4e27a5,_0x1f28b1,_0x10e9f8);}:function(_0x322050,_0x156f3e,_0x4159ef,_0x50f90c){if(_0x50f90c===undefined)_0x50f90c=_0x4159ef;_0x322050[_0x50f90c]=_0x156f3e[_0x4159ef];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1eccfc(0x281)]?function(_0x5ca41f,_0x57e1d0){const _0x5c0961=a0_0x1eccfc;Object['defineProperty'](_0x5ca41f,_0x5c0961(0x297),{'enumerable':!![],'value':_0x57e1d0});}:function(_0x4202d3,_0xee872c){const _0x4b9a97=a0_0x1eccfc;_0x4202d3[_0x4b9a97(0x297)]=_0xee872c;}),__importStar=this&&this[a0_0x1eccfc(0x211)]||(function(){var _0x4b142c=function(_0x4cc29f){const _0x1ceeb9=a0_0x1fa3;return _0x4b142c=Object[_0x1ceeb9(0x24c)]||function(_0x5e2fda){const _0x4595cd=_0x1ceeb9;var _0x271240=[];for(var _0x250a22 in _0x5e2fda)if(Object[_0x4595cd(0x1ea)][_0x4595cd(0x27a)][_0x4595cd(0x222)](_0x5e2fda,_0x250a22))_0x271240[_0x271240[_0x4595cd(0x22c)]]=_0x250a22;return _0x271240;},_0x4b142c(_0x4cc29f);};return function(_0x5183bc){const _0x42f9da=a0_0x1fa3;if(_0x5183bc&&_0x5183bc['__esModule'])return _0x5183bc;var _0x4c5bf3={};if(_0x5183bc!=null){for(var _0x231c5e=_0x4b142c(_0x5183bc),_0x190460=0x0;_0x190460<_0x231c5e[_0x42f9da(0x22c)];_0x190460++)if(_0x231c5e[_0x190460]!==_0x42f9da(0x297))__createBinding(_0x4c5bf3,_0x5183bc,_0x231c5e[_0x190460]);}return __setModuleDefault(_0x4c5bf3,_0x5183bc),_0x4c5bf3;};}());Object[a0_0x1eccfc(0x24f)](exports,a0_0x1eccfc(0x225),{'value':!![]}),exports[a0_0x1eccfc(0x266)]=loadConfig,exports[a0_0x1eccfc(0x289)]=saveConfig,exports[a0_0x1eccfc(0x26e)]=getAgentStoragePaths,exports[a0_0x1eccfc(0x29e)]=getLatestSessionFile,exports[a0_0x1eccfc(0x23d)]=loadSessionsState,exports[a0_0x1eccfc(0x1fa)]=saveSessionStateItem,exports[a0_0x1eccfc(0x1e4)]=processSessionFile,exports[a0_0x1eccfc(0x21e)]=compactSessionCopy,exports[a0_0x1eccfc(0x271)]=compactLiveSession,exports[a0_0x1eccfc(0x238)]=installWindowsStartupService,exports['startWatcherDaemon']=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1eccfc(0x279))),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require(a0_0x1eccfc(0x219)),baseDir=path[a0_0x1eccfc(0x23c)](os[a0_0x1eccfc(0x233)](),a0_0x1eccfc(0x28d)),configPath=path['join'](baseDir,a0_0x1eccfc(0x245)),DEFAULT_CONFIG={'autostart_enabled':!![],'conversation_toggles':{'conv_claude':!![],'conv_codex':!![],'conv_cursor':!![],'conv_aider':!![],'conv_copilot':!![],'conv_openclaw':!![],'conv_opencode':!![],'conv_cortex':!![]},'custom_storage_paths':{'claude':null,'codex':null,'cursor':null,'aider':null,'copilot':null,'openclaw':null,'opencode':null,'cortex':null}};function loadConfig(){const _0x3fe86c=a0_0x1eccfc;try{if(!fs['existsSync'](baseDir))fs[_0x3fe86c(0x275)](baseDir,{'recursive':!![]});if(fs[_0x3fe86c(0x28b)](configPath)){const _0x5180f8=JSON[_0x3fe86c(0x248)](fs[_0x3fe86c(0x274)](configPath,'utf8'));return{...DEFAULT_CONFIG,..._0x5180f8,'conversation_toggles':{...DEFAULT_CONFIG[_0x3fe86c(0x200)],..._0x5180f8[_0x3fe86c(0x200)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x3fe86c(0x258)],..._0x5180f8[_0x3fe86c(0x258)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x4f35a0){const _0x9f73a5=a0_0x1eccfc,_0x6f23f=loadConfig(),_0x1cd67e={..._0x6f23f,..._0x4f35a0,'conversation_toggles':{..._0x6f23f[_0x9f73a5(0x200)],..._0x4f35a0[_0x9f73a5(0x200)]||{}},'custom_storage_paths':{..._0x6f23f[_0x9f73a5(0x258)],..._0x4f35a0['custom_storage_paths']||{}}};try{if(!fs[_0x9f73a5(0x28b)](baseDir))fs[_0x9f73a5(0x275)](baseDir,{'recursive':!![]});fs['writeFileSync'](configPath,JSON[_0x9f73a5(0x26d)](_0x1cd67e,null,0x2),'utf8');}catch{}return _0x1cd67e;}function getAgentStoragePaths(_0x360bc7){const _0x4a52e1=a0_0x1eccfc,_0x22d4e8=loadConfig(),_0x2e23b4=_0x22d4e8['custom_storage_paths'][_0x360bc7];if(_0x2e23b4&&fs[_0x4a52e1(0x28b)](_0x2e23b4))return[_0x2e23b4];const _0x291797=os['homedir'](),_0x1bc9ba=process[_0x4a52e1(0x247)]==='win32',_0x4a1d81=process[_0x4a52e1(0x247)]==='darwin';switch(_0x360bc7){case _0x4a52e1(0x208):return[path[_0x4a52e1(0x23c)](_0x291797,'.claude',_0x4a52e1(0x235)),path[_0x4a52e1(0x23c)](_0x291797,'.claude',_0x4a52e1(0x254))];case _0x4a52e1(0x269):return[path['join'](_0x291797,'.codex',_0x4a52e1(0x257)),path['join'](_0x291797,_0x4a52e1(0x21c),_0x4a52e1(0x265),_0x4a52e1(0x231))];case _0x4a52e1(0x1fc):case _0x4a52e1(0x263):return[path[_0x4a52e1(0x23c)](_0x291797,_0x4a52e1(0x239),_0x4a52e1(0x263)),path[_0x4a52e1(0x23c)](_0x291797,_0x4a52e1(0x239)),path['join'](_0x291797,_0x4a52e1(0x21c),_0x4a52e1(0x265),_0x4a52e1(0x1f1)),path['join'](_0x291797,_0x4a52e1(0x1f8),_0x4a52e1(0x1fc))];case'cursor':if(_0x1bc9ba)return[path[_0x4a52e1(0x23c)](_0x291797,_0x4a52e1(0x21c),'Roaming',_0x4a52e1(0x1e9),_0x4a52e1(0x20d),_0x4a52e1(0x291))];if(_0x4a1d81)return[path[_0x4a52e1(0x23c)](_0x291797,'Library',_0x4a52e1(0x207),_0x4a52e1(0x1e9),'User',_0x4a52e1(0x291))];return[path[_0x4a52e1(0x23c)](_0x291797,_0x4a52e1(0x1f8),_0x4a52e1(0x1e9),_0x4a52e1(0x20d),_0x4a52e1(0x291))];case _0x4a52e1(0x299):return[process['cwd'](),path[_0x4a52e1(0x23c)](_0x291797,_0x4a52e1(0x287))];case'copilot':if(_0x1bc9ba)return[path[_0x4a52e1(0x23c)](_0x291797,_0x4a52e1(0x21c),'Local',_0x4a52e1(0x28f))];return[path[_0x4a52e1(0x23c)](_0x291797,'.config','github-copilot-cli')];case _0x4a52e1(0x20f):return[path['join'](_0x291797,_0x4a52e1(0x23b),_0x4a52e1(0x218)),path[_0x4a52e1(0x23c)](process['cwd'](),_0x4a52e1(0x23b),_0x4a52e1(0x234))];case _0x4a52e1(0x210):return[path[_0x4a52e1(0x23c)](_0x291797,'.opencode',_0x4a52e1(0x257))];case'cortex':return[path['join'](_0x291797,_0x4a52e1(0x217),_0x4a52e1(0x288))];default:return[];}}function getLatestSessionFile(_0x60939f){const _0x1c9b1c=a0_0x1eccfc,_0x2c1662=getAgentStoragePaths(_0x60939f);let _0xd918b9=null,_0x5dba1f=0x0,_0x20ec8c=null,_0x5ab1d8=null;for(const _0x1fe9b0 of _0x2c1662){if(fs['existsSync'](_0x1fe9b0)){if(!_0x5ab1d8)_0x5ab1d8=_0x1fe9b0;const _0x2312e9=(_0x2eb9f6,_0x5b8bd5=0x0)=>{const _0x47e789=a0_0x1fa3;if(_0x5b8bd5>0x6)return;try{const _0x40a98e=fs[_0x47e789(0x2a2)](_0x2eb9f6,{'withFileTypes':!![]});for(const _0x554b8c of _0x40a98e){const _0x30652f=path['join'](_0x2eb9f6,_0x554b8c[_0x47e789(0x2a1)]);if(_0x554b8c[_0x47e789(0x249)]()){const _0x2727ed=_0x554b8c[_0x47e789(0x2a1)][_0x47e789(0x280)]();if(_0x2727ed===_0x47e789(0x22e)||_0x2727ed===_0x47e789(0x1eb)||_0x2727ed===_0x47e789(0x295)||_0x2727ed===_0x47e789(0x252)||_0x2727ed===_0x47e789(0x22f)||_0x2727ed===_0x47e789(0x246)||_0x2727ed===_0x47e789(0x227)||_0x2727ed===_0x47e789(0x24e)||_0x2727ed===_0x47e789(0x293)||_0x2727ed===_0x47e789(0x250)||_0x2727ed===_0x47e789(0x232))continue;_0x2312e9(_0x30652f,_0x5b8bd5+0x1);}else{if(_0x554b8c['isFile']()&&!_0x554b8c[_0x47e789(0x2a1)][_0x47e789(0x27f)]('.')){const _0x57520e=_0x554b8c['name'][_0x47e789(0x280)]();if(_0x57520e['includes'](_0x47e789(0x204))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x230))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x22b))||_0x57520e['endsWith'](_0x47e789(0x20e))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x256))||_0x57520e[_0x47e789(0x26a)]('.jpeg')||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x264))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x267))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x284))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x253))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x1f3))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x24d))||_0x57520e[_0x47e789(0x26a)](_0x47e789(0x28c))||_0x57520e[_0x47e789(0x26a)]('.dat')||_0x57520e[_0x47e789(0x27f)](_0x47e789(0x24a))||_0x57520e[_0x47e789(0x27f)](_0x47e789(0x28a)))continue;const _0x39852c=fs[_0x47e789(0x209)](_0x30652f);_0x39852c[_0x47e789(0x292)]>_0x5dba1f&&(_0x5dba1f=_0x39852c[_0x47e789(0x292)],_0xd918b9=_0x554b8c[_0x47e789(0x2a1)],_0x20ec8c=_0x30652f,_0x5ab1d8=_0x1fe9b0);}}}}catch{}};_0x2312e9(_0x1fe9b0);}}return{'fileName':_0xd918b9,'lastModified':_0x5dba1f>0x0?new Date(_0x5dba1f)[_0x1c9b1c(0x2a0)]():null,'fullPath':_0x20ec8c,'dirPath':_0x5ab1d8};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x2a45c8,_0x55534c,_0x491a06){const _0x117e5b=a0_0x1eccfc;let _0x44c771=![],_0x58c29a=0x0;if(!_0x2a45c8)return{'modified':_0x44c771,'savedTokens':_0x58c29a};const _0x401ad0=_0x1860d7=>_0x1860d7[_0x117e5b(0x214)](/\r\n/g,'\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');if(typeof _0x2a45c8[_0x117e5b(0x277)]==='string'){let _0xbe76a5=_0x2a45c8[_0x117e5b(0x277)],_0x4bd22d=_0x401ad0(_0xbe76a5);_0x4bd22d[_0x117e5b(0x22c)]<_0xbe76a5[_0x117e5b(0x22c)]&&(_0x2a45c8[_0x117e5b(0x277)]=_0x4bd22d,_0x44c771=!![],_0x58c29a+=Math[_0x117e5b(0x23f)]((_0xbe76a5[_0x117e5b(0x22c)]-_0x4bd22d[_0x117e5b(0x22c)])/0x4));if(_0x2a45c8['content'][_0x117e5b(0x22c)]>OFFLOAD_THRESHOLD_CHARS&&!_0x2a45c8[_0x117e5b(0x277)][_0x117e5b(0x20b)](_0x117e5b(0x1f7))){const _0x3f8fe1=_0x117e5b(0x221)+Math['ceil'](_0x2a45c8[_0x117e5b(0x277)][_0x117e5b(0x22c)]/0x4)+_0x117e5b(0x255),_0x5583ca=(0x0,cache_manager_1[_0x117e5b(0x1fb)])(_0x55534c,_0x491a06,_0x2a45c8['content'],_0x3f8fe1);_0x2a45c8[_0x117e5b(0x277)]=_0x117e5b(0x22a)+_0x5583ca[_0x117e5b(0x21d)]+_0x117e5b(0x27b)+_0x5583ca[_0x117e5b(0x2a4)]+_0x117e5b(0x1f0)+_0x5583ca['chunk_id']+'`\x0a',_0x44c771=!![],_0x58c29a+=Math[_0x117e5b(0x29c)](0x0,_0x5583ca['raw_tokens']-_0x5583ca[_0x117e5b(0x1e5)]);}}else{if(Array[_0x117e5b(0x28e)](_0x2a45c8[_0x117e5b(0x277)]))for(const _0x1169c2 of _0x2a45c8['content']){if(_0x1169c2&&typeof _0x1169c2===_0x117e5b(0x278)){if(typeof _0x1169c2['text']===_0x117e5b(0x296)){let _0x91c64=_0x1169c2[_0x117e5b(0x25f)],_0x462a60=_0x401ad0(_0x91c64);_0x462a60['length']<_0x91c64[_0x117e5b(0x22c)]&&(_0x1169c2[_0x117e5b(0x25f)]=_0x462a60,_0x44c771=!![],_0x58c29a+=Math[_0x117e5b(0x23f)]((_0x91c64[_0x117e5b(0x22c)]-_0x462a60[_0x117e5b(0x22c)])/0x4));if(_0x1169c2[_0x117e5b(0x25f)][_0x117e5b(0x22c)]>OFFLOAD_THRESHOLD_CHARS&&!_0x1169c2['text'][_0x117e5b(0x20b)](_0x117e5b(0x1f7))){const _0xdf2297=_0x117e5b(0x1e3)+Math[_0x117e5b(0x23f)](_0x1169c2[_0x117e5b(0x25f)]['length']/0x4)+'\x20tokens).',_0x3a94ff=(0x0,cache_manager_1[_0x117e5b(0x1fb)])(_0x55534c,_0x491a06,_0x1169c2[_0x117e5b(0x25f)],_0xdf2297);_0x1169c2['text']='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x3a94ff[_0x117e5b(0x2a4)]+_0x117e5b(0x25c)+_0x3a94ff[_0x117e5b(0x2a4)]+'`\x0a',_0x44c771=!![],_0x58c29a+=Math['max'](0x0,_0x3a94ff[_0x117e5b(0x21d)]-_0x3a94ff[_0x117e5b(0x1e5)]);}}else{if(typeof _0x1169c2[_0x117e5b(0x277)]===_0x117e5b(0x296)){let _0x56b965=_0x1169c2[_0x117e5b(0x277)],_0x36368a=_0x401ad0(_0x56b965);_0x36368a[_0x117e5b(0x22c)]<_0x56b965[_0x117e5b(0x22c)]&&(_0x1169c2['content']=_0x36368a,_0x44c771=!![],_0x58c29a+=Math[_0x117e5b(0x23f)]((_0x56b965[_0x117e5b(0x22c)]-_0x36368a['length'])/0x4));if(_0x1169c2[_0x117e5b(0x277)][_0x117e5b(0x22c)]>OFFLOAD_THRESHOLD_CHARS&&!_0x1169c2['content'][_0x117e5b(0x20b)](_0x117e5b(0x1f7))){const _0x257f00='Summary:\x20Tool\x20result\x20offloaded\x20('+Math[_0x117e5b(0x23f)](_0x1169c2['content']['length']/0x4)+_0x117e5b(0x255),_0x15db4a=(0x0,cache_manager_1['saveChunk'])(_0x55534c,_0x491a06,_0x1169c2[_0x117e5b(0x277)],_0x257f00);_0x1169c2['content']=_0x117e5b(0x25a)+_0x15db4a[_0x117e5b(0x2a4)]+_0x117e5b(0x25c)+_0x15db4a[_0x117e5b(0x2a4)]+'`\x0a',_0x44c771=!![],_0x58c29a+=Math[_0x117e5b(0x29c)](0x0,_0x15db4a[_0x117e5b(0x21d)]-_0x15db4a[_0x117e5b(0x1e5)]);}}}}}}return{'modified':_0x44c771,'savedTokens':_0x58c29a};}const sessionsStatePath=path[a0_0x1eccfc(0x23c)](baseDir,a0_0x1eccfc(0x1f9));let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x45eb31=a0_0x1eccfc;try{if(fs[_0x45eb31(0x28b)](sessionsStatePath)){const _0x8dc0bf=JSON[_0x45eb31(0x248)](fs['readFileSync'](sessionsStatePath,_0x45eb31(0x202)));if(_0x8dc0bf&&typeof _0x8dc0bf==='object')return sessionsStateMemoryCache=_0x8dc0bf,_0x8dc0bf;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x2e78b2,_0x1b08cd,_0x4cd9a4,_0x5ade72=0x0,_0x1d5513=0x0,_0x2c8336=0x0){const _0x4b6a6f=a0_0x1eccfc;try{const _0x44e32b=loadSessionsState(),_0x5c27a0=_0x44e32b[_0x2e78b2]||{},_0x3824c8=_0x1d5513||_0x5c27a0[_0x4b6a6f(0x1ff)]||0x0,_0x1bf683=_0x2c8336||_0x5c27a0[_0x4b6a6f(0x1e7)]||0x0,_0x3361d9=_0x4cd9a4!==undefined?_0x4cd9a4:_0x5c27a0['officialCompactSaved']||0x0;_0x44e32b[_0x2e78b2]={'lineCount':_0x1b08cd||_0x5c27a0['lineCount']||0x1,'activeSavedTokens':_0x3361d9+_0x3824c8+_0x1bf683,'sideCacheSaved':_0x5ade72||_0x5c27a0[_0x4b6a6f(0x206)]||0x0,'officialCompactSaved':_0x3361d9,'autoCompactSaved':_0x3824c8,'hookSavedTokens':_0x1bf683},sessionsStateMemoryCache=_0x44e32b;if(!fs[_0x4b6a6f(0x28b)](baseDir))fs[_0x4b6a6f(0x275)](baseDir,{'recursive':!![]});const _0x33ee0b=sessionsStatePath+_0x4b6a6f(0x24d);fs[_0x4b6a6f(0x251)](_0x33ee0b,JSON[_0x4b6a6f(0x26d)](_0x44e32b,null,0x2),_0x4b6a6f(0x202)),fs['renameSync'](_0x33ee0b,sessionsStatePath);}catch{}}function processSessionFile(_0x97c5b9,_0x30757b){const _0x473471=a0_0x1eccfc;try{if(!fs[_0x473471(0x28b)](_0x97c5b9))return;const _0x26ba75=fs[_0x473471(0x209)](_0x97c5b9);if(_0x26ba75[_0x473471(0x249)]()||_0x26ba75[_0x473471(0x213)]===0x0)return;const _0x2d7a6e=loadConfig(),_0x4be9e5=_0x473471(0x276)+_0x30757b;if(_0x2d7a6e['conversation_toggles'][_0x4be9e5]===![])return;const _0x4bf4e8=fs['readFileSync'](_0x97c5b9,_0x473471(0x202)),_0x271f15=path[_0x473471(0x203)](_0x97c5b9)[_0x473471(0x280)]();let _0x45d9a1=0x1;if(_0x271f15===_0x473471(0x25e)||_0x271f15===_0x473471(0x261))_0x45d9a1=_0x4bf4e8[_0x473471(0x24b)]('\x0a')[_0x473471(0x262)](Boolean)['length'];else{if(_0x271f15===_0x473471(0x270))try{const _0xd8e240=JSON[_0x473471(0x248)](_0x4bf4e8),_0x2febd5=Array[_0x473471(0x28e)](_0xd8e240['messages'])?_0xd8e240[_0x473471(0x23a)]:Array[_0x473471(0x28e)](_0xd8e240)?_0xd8e240:null;if(_0x2febd5)_0x45d9a1=_0x2febd5[_0x473471(0x22c)];}catch{}}let _0x3b2a4b=0x0;if((_0x271f15===_0x473471(0x25e)||_0x271f15===_0x473471(0x261))&&_0x4bf4e8[_0x473471(0x20b)](_0x473471(0x20a))&&_0x4bf4e8['includes'](_0x473471(0x20c))){const _0x51f95d=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x1ec24f of _0x4bf4e8[_0x473471(0x24b)]('\x0a')){if(!_0x1ec24f[_0x473471(0x20b)](_0x473471(0x20a))||!_0x1ec24f[_0x473471(0x20b)](_0x473471(0x20c)))continue;try{const _0x498443=JSON[_0x473471(0x248)](_0x1ec24f);if(_0x498443[_0x473471(0x244)]!==_0x473471(0x21f))continue;const _0x3d17c4=typeof _0x498443[_0x473471(0x277)]===_0x473471(0x296)?_0x498443[_0x473471(0x277)]:_0x498443['message']&&typeof _0x498443[_0x473471(0x1fd)][_0x473471(0x277)]===_0x473471(0x296)?_0x498443['message'][_0x473471(0x277)]:'';if(!_0x3d17c4)continue;for(const _0x162a89 of _0x3d17c4[_0x473471(0x29d)](_0x51f95d)){let _0x2cec16=parseFloat(_0x162a89[0x1]);if(_0x162a89[0x0][_0x473471(0x280)]()[_0x473471(0x20b)]('k'))_0x2cec16=_0x2cec16*0x3e8;_0x3b2a4b+=Math[_0x473471(0x1f2)](_0x2cec16);}}catch{}}}const _0x2aa381=loadSessionsState(),_0xa2e90a=_0x2aa381[_0x97c5b9],_0x5ea7ac=_0xa2e90a?_0xa2e90a[_0x473471(0x212)]:0x0,_0x4612ce=_0xa2e90a?_0xa2e90a['activeSavedTokens']||0x0:0x0;if(_0x5ea7ac>0x0&&_0x45d9a1>_0x5ea7ac&&_0x4612ce>0x0){const _0x3adb2e=_0x473471(0x21b)+_0x30757b;tracker_1['tracker']['logExecution'](_0x3adb2e,'A'[_0x473471(0x27e)](_0x4612ce*0x4),'',0x0,undefined,[_0x473471(0x276)+_0x30757b,_0x473471(0x29f),_0x30757b,_0x473471(0x215)]);}const _0x345b76=_0xa2e90a&&_0xa2e90a['officialCompactSaved']!==undefined?_0xa2e90a[_0x473471(0x298)]:0x0,_0x38409f=Math[_0x473471(0x29c)](_0x345b76,_0x3b2a4b);saveSessionStateItem(_0x97c5b9,_0x45d9a1,_0x38409f,0x0,0x0,0x0);}catch{}}function a0_0x187c(){const _0x3c38d1=['.compact','logExecution','sideCacheSaved','Application\x20Support','claude','statSync','saved','includes','tokens','User','.png','openclaw','opencode','__importStar','lineCount','size','replace','prompt_turn','Unsupported\x20format\x20\x27','.cortex','storage','./tracker','cli.js','conv:','AppData','raw_tokens','compactSessionCopy','system','trim','Summary:\x20Content\x20offloaded\x20(','call','Startup','39680619zughjf','__esModule','none','.next','276088XIsiCK','modified','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','.vscdb','length','3964976CBeEks','node_modules','venv','.db','Codex','.agents','homedir','context','projects','TrimPromptDaemon.vbs','tracker','installWindowsStartupService','.gemini','messages','.openclaw','join','loadSessionsState','find','ceil','fullPath','10duDPwU','getOwnPropertyDescriptor','82035kozaEe','type','config.json','__pycache__','platform','parse','isDirectory','media__','split','getOwnPropertyNames','.tmp','dist','defineProperty','out','writeFileSync','env','.wal','history','\x20tokens).','.jpg','sessions','custom_storage_paths','push','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','dirname','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','assign','.jsonl','text','compact:','.json1','filter','antigravity','.gif','Roaming','loadConfig','.webp','14HyBndd','codex','endsWith','2319120NrZGfl','role','stringify','getAgentStoragePaths','Windows','.json','compactLiveSession','savedTokens','__createBinding','readFileSync','mkdirSync','conv_','content','object','path','hasOwnProperty','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','Unsupported\x20extension','745629TyoQLj','repeat','startsWith','toLowerCase','create','win32','\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)','.pb','watch','Microsoft','.aider.chat.history.md','cache','saveConfig','image_','existsSync','.lock','.trimprompt','isArray','github-copilot-cli','Start\x20Menu','workspaceStorage','mtimeMs','build','byteLength','.venv','string','default','officialCompactSaved','aider','Compaction\x20failed','get','max','matchAll','getLatestSessionFile','live-conv','toISOString','name','readdirSync','Programs','chunk_id','cursor','Summary:\x20Text\x20block\x20offloaded\x20(','processSessionFile','compressed_tokens','./proxy-conv','hookSavedTokens','Session\x20file\x20not\x20found','Cursor','prototype','.git','1189055vwhrSP','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','cortex','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','Gemini','round','.shm','configurable','writable','75GfSKGk','TrimPrompt\x20Cache\x20Engine','.config','sessions_state.json','saveSessionStateItem','saveChunk','gemini','message','1030klNgrD','autoCompactSaved','conversation_toggles','File\x20not\x20found','utf8','extname'];a0_0x187c=function(){return _0x3c38d1;};return a0_0x187c();}function compactSessionCopy(_0x391bfd,_0x3f99f8){const _0x50f235=a0_0x1eccfc;try{if(!fs[_0x50f235(0x28b)](_0x391bfd))return{'ok':![],'reason':_0x50f235(0x1e8)};const _0x4dce8b=path[_0x50f235(0x203)](_0x391bfd)['toLowerCase']();if(_0x4dce8b!==_0x50f235(0x270)&&_0x4dce8b!==_0x50f235(0x25e)&&_0x4dce8b!==_0x50f235(0x261))return{'ok':![],'reason':_0x50f235(0x216)+(_0x4dce8b||_0x50f235(0x226))+_0x50f235(0x283)};const _0x165802=fs[_0x50f235(0x274)](_0x391bfd,_0x50f235(0x202)),_0x19a79a=Buffer[_0x50f235(0x294)](_0x165802,_0x50f235(0x202)),_0x448e18=path['basename'](_0x391bfd,_0x4dce8b);let _0x135cea=_0x165802,_0x11ae89=![];if(_0x4dce8b==='.json'){const _0x163e01=JSON[_0x50f235(0x248)](_0x165802),_0x581285=Array[_0x50f235(0x28e)](_0x163e01['messages'])?_0x163e01[_0x50f235(0x23a)]:Array[_0x50f235(0x28e)](_0x163e01)?_0x163e01:null;if(_0x581285){for(const _0x556abb of _0x581285){const _0x2a237f=compressMessageContent(_0x556abb,_0x448e18,_0x3f99f8);if(_0x2a237f[_0x50f235(0x229)])_0x11ae89=!![];}if(_0x11ae89)_0x135cea=JSON['stringify'](_0x163e01,null,0x2);}}else{const _0x2256e9=_0x165802[_0x50f235(0x24b)]('\x0a'),_0x2558a6=[];for(let _0x1fc01c of _0x2256e9){if(!_0x1fc01c['trim']()){_0x2558a6[_0x50f235(0x259)](_0x1fc01c);continue;}try{const _0x1dd0f7=JSON[_0x50f235(0x248)](_0x1fc01c),_0x1ff18f=_0x1dd0f7[_0x50f235(0x1fd)]||_0x1dd0f7;if(_0x1ff18f){const _0x547e00=compressMessageContent(_0x1ff18f,_0x448e18,_0x3f99f8);_0x547e00[_0x50f235(0x229)]&&(_0x11ae89=!![],_0x1fc01c=JSON[_0x50f235(0x26d)](_0x1dd0f7));}}catch{}_0x2558a6[_0x50f235(0x259)](_0x1fc01c);}if(_0x11ae89)_0x135cea=_0x2558a6[_0x50f235(0x23c)]('\x0a');}const _0x26da68=Buffer[_0x50f235(0x294)](_0x135cea,_0x50f235(0x202)),_0x4894c8=path[_0x50f235(0x23c)](path[_0x50f235(0x25b)](_0x391bfd),_0x448e18+_0x50f235(0x204)+_0x4dce8b);fs[_0x50f235(0x251)](_0x4894c8,_0x135cea,_0x50f235(0x202));const _0x195ce0=Math[_0x50f235(0x23f)](_0x19a79a/0x4),_0x1b5ba5=Math['ceil'](_0x26da68/0x4),_0x198e3b=Math['max'](0x0,_0x195ce0-_0x1b5ba5),_0x39f1fc=_0x19a79a>0x0?Math[_0x50f235(0x1f2)]((0x1-_0x26da68/_0x19a79a)*0x3e8)/0xa:0x0;return _0x198e3b>0x0&&tracker_1[_0x50f235(0x237)][_0x50f235(0x205)](_0x50f235(0x260)+_0x3f99f8,_0x165802,_0x135cea,_0x198e3b,undefined,['conv_'+_0x3f99f8,'live-conv',_0x3f99f8,'compact_copy']),{'ok':!![],'compactPath':_0x4894c8,'rawBytes':_0x19a79a,'compressedBytes':_0x26da68,'rawTokens':_0x195ce0,'compressedTokens':_0x1b5ba5,'savedTokens':_0x198e3b,'reductionPct':_0x39f1fc};}catch(_0x5a0f47){return{'ok':![],'reason':_0x5a0f47?.[_0x50f235(0x1fd)]||'compaction\x20failed'};}}function compactLiveSession(_0x17b10e,_0x3bc95f){const _0x11f832=a0_0x1eccfc;try{if(!fs[_0x11f832(0x28b)](_0x17b10e))return{'ok':![],'savedTokens':0x0,'reason':_0x11f832(0x201)};const _0xe0df7b=path[_0x11f832(0x203)](_0x17b10e)[_0x11f832(0x280)]();if(_0xe0df7b!==_0x11f832(0x270)&&_0xe0df7b!=='.jsonl'&&_0xe0df7b!==_0x11f832(0x261))return{'ok':![],'savedTokens':0x0,'reason':_0x11f832(0x27c)};const _0x5c4a1a=fs[_0x11f832(0x274)](_0x17b10e,_0x11f832(0x202)),_0xcd4899=Buffer[_0x11f832(0x294)](_0x5c4a1a,_0x11f832(0x202)),_0x426e66=Math['ceil'](_0xcd4899/0x4),_0x4c14eb=path['basename'](_0x17b10e,_0xe0df7b);let _0x57d176=_0x5c4a1a,_0x4d4448=![];if(_0xe0df7b===_0x11f832(0x270)){const _0x14acb2=JSON['parse'](_0x5c4a1a),_0x3a7736=Array[_0x11f832(0x28e)](_0x14acb2['messages'])?_0x14acb2['messages']:Array['isArray'](_0x14acb2)?_0x14acb2:null;if(_0x3a7736){for(const _0x19e515 of _0x3a7736){const _0x1bd5ef=compressMessageContent(_0x19e515,_0x4c14eb,_0x3bc95f);if(_0x1bd5ef[_0x11f832(0x229)])_0x4d4448=!![];}const {compressConversation:_0x4e0ab9}=require(_0x11f832(0x1e6)),_0x34302f=_0x4e0ab9(_0x3a7736,0x9c40);_0x34302f[_0x11f832(0x272)]>0x0&&(_0x4d4448=!![],Array['isArray'](_0x14acb2[_0x11f832(0x23a)])?_0x14acb2['messages']=_0x34302f[_0x11f832(0x23a)]:_0x57d176=JSON[_0x11f832(0x26d)](_0x34302f['messages'],null,0x2)),_0x4d4448&&!Array[_0x11f832(0x28e)](_0x14acb2)&&(_0x57d176=JSON[_0x11f832(0x26d)](_0x14acb2,null,0x2));}}else{const _0x82b8fe=_0x5c4a1a[_0x11f832(0x24b)]('\x0a'),_0x3404ea=[],_0x10217e=[];for(const _0x5df68f of _0x82b8fe){if(!_0x5df68f[_0x11f832(0x220)]())continue;try{const _0x3ab952=JSON[_0x11f832(0x248)](_0x5df68f);_0x3404ea[_0x11f832(0x259)](_0x3ab952);const _0x28e27f=_0x3ab952[_0x11f832(0x1fd)]||_0x3ab952;_0x28e27f&&typeof _0x28e27f[_0x11f832(0x26c)]===_0x11f832(0x296)&&_0x10217e[_0x11f832(0x259)](_0x28e27f);}catch{}}for(const _0x168409 of _0x10217e){const _0x353275=compressMessageContent(_0x168409,_0x4c14eb,_0x3bc95f);if(_0x353275['modified'])_0x4d4448=!![];}const {compressConversation:_0x40bb34}=require(_0x11f832(0x1e6)),_0x259747=_0x40bb34(_0x10217e,0x9c40);if(_0x259747[_0x11f832(0x272)]>0x0||_0x4d4448){const _0x5867b4=[];for(const _0x515567 of _0x3404ea){const _0x17d15f=_0x515567[_0x11f832(0x1fd)]||_0x515567;if(_0x17d15f&&typeof _0x17d15f['role']===_0x11f832(0x296)){const _0x5142fc=_0x259747[_0x11f832(0x23a)][_0x11f832(0x23e)](_0x36e3fd=>_0x36e3fd===_0x17d15f);_0x5142fc?(_0x515567[_0x11f832(0x1fd)]?_0x515567['message']=_0x5142fc:Object[_0x11f832(0x25d)](_0x515567,_0x5142fc),_0x5867b4[_0x11f832(0x259)](JSON[_0x11f832(0x26d)](_0x515567))):_0x4d4448=!![];}else _0x5867b4[_0x11f832(0x259)](JSON[_0x11f832(0x26d)](_0x515567));}_0x57d176=_0x5867b4[_0x11f832(0x23c)]('\x0a'),_0x4d4448=!![];}}if(_0x4d4448){const _0xf3d9e3=Buffer[_0x11f832(0x294)](_0x57d176,_0x11f832(0x202));fs[_0x11f832(0x251)](_0x17b10e,_0x57d176,_0x11f832(0x202));const _0x20327d=Math[_0x11f832(0x23f)](_0xf3d9e3/0x4),_0x286e42=Math[_0x11f832(0x29c)](0x0,_0x426e66-_0x20327d);if(_0x286e42>0x0){const _0x5216c5=loadSessionsState(),_0x56acf6=_0x5216c5[_0x17b10e]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x27f60d=_0x56acf6['autoCompactSaved']||0x0,_0x14fb0d=_0x27f60d+_0x286e42;saveSessionStateItem(_0x17b10e,_0x56acf6[_0x11f832(0x212)],_0x56acf6['officialCompactSaved']||0x0,_0x56acf6[_0x11f832(0x206)]||0x0,_0x14fb0d,_0x56acf6[_0x11f832(0x1e7)]||0x0),tracker_1[_0x11f832(0x237)][_0x11f832(0x205)]('compact:'+_0x3bc95f,_0x5c4a1a,_0x57d176,_0x286e42,undefined,[_0x11f832(0x276)+_0x3bc95f,_0x11f832(0x29f),_0x3bc95f,'compact_copy']);}return{'ok':!![],'savedTokens':_0x286e42};}return{'ok':!![],'savedTokens':0x0};}catch(_0x2c2662){return{'ok':![],'savedTokens':0x0,'reason':_0x2c2662[_0x11f832(0x1fd)]||_0x11f832(0x29a)};}}function installWindowsStartupService(){const _0x5d72fe=a0_0x1eccfc;if(process[_0x5d72fe(0x247)]!==_0x5d72fe(0x282))return;try{const _0x310f55=path[_0x5d72fe(0x23c)](os[_0x5d72fe(0x233)](),_0x5d72fe(0x21c),_0x5d72fe(0x265),_0x5d72fe(0x286),_0x5d72fe(0x26f),_0x5d72fe(0x290),_0x5d72fe(0x2a3),_0x5d72fe(0x223));if(!fs[_0x5d72fe(0x28b)](_0x310f55))fs[_0x5d72fe(0x275)](_0x310f55,{'recursive':!![]});const _0x3539b7=path[_0x5d72fe(0x23c)](_0x310f55,_0x5d72fe(0x236)),_0x161428=path[_0x5d72fe(0x23c)](__dirname,_0x5d72fe(0x21a)),_0xbf604f=_0x161428['replace'](/\\/g,'\x5c\x5c'),_0x34f6a8=_0x5d72fe(0x1ee)+_0xbf604f+_0x5d72fe(0x1ed);fs[_0x5d72fe(0x251)](_0x3539b7,_0x34f6a8,_0x5d72fe(0x202));}catch{}}function startWatcherDaemon(){const _0x4d5002=a0_0x1eccfc;installWindowsStartupService();try{const {installClaudeHooks:_0x1fc2ba}=require('./hooks/claude-hook');_0x1fc2ba();}catch(_0x46a82b){}const _0x235df6=[_0x4d5002(0x208),_0x4d5002(0x1fc),_0x4d5002(0x269),_0x4d5002(0x1e2),_0x4d5002(0x299),'copilot',_0x4d5002(0x20f),_0x4d5002(0x210),_0x4d5002(0x1ef)];for(const _0x49bdf0 of _0x235df6){const _0x4bd3ca=getAgentStoragePaths(_0x49bdf0);for(const _0x264911 of _0x4bd3ca){if(fs['existsSync'](_0x264911))try{fs[_0x4d5002(0x285)](_0x264911,{'recursive':!![]},(_0x5bd522,_0x1f373d)=>{const _0x3a9e5d=_0x4d5002;if(!_0x1f373d)return;const _0x5471e4=path[_0x3a9e5d(0x23c)](_0x264911,_0x1f373d);if(debounceTimers['has'](_0x5471e4))clearTimeout(debounceTimers[_0x3a9e5d(0x29b)](_0x5471e4));const _0x18ab68=setTimeout(()=>processSessionFile(_0x5471e4,_0x49bdf0),0x1f4);debounceTimers['set'](_0x5471e4,_0x18ab68);});}catch{}}}setInterval(()=>{const _0x4fb276=_0x4d5002;for(const _0x4e55fb of _0x235df6){try{const _0x50c057=getLatestSessionFile(_0x4e55fb);_0x50c057&&_0x50c057[_0x4fb276(0x240)]&&processSessionFile(_0x50c057['fullPath'],_0x4e55fb);}catch{}}},0xbb8);const _0x435414=()=>{const _0x5349d1=_0x4d5002;for(const _0x56b80f of _0x235df6){try{const _0x134a53=getLatestSessionFile(_0x56b80f);_0x134a53&&_0x134a53[_0x5349d1(0x240)]&&compactLiveSession(_0x134a53[_0x5349d1(0x240)],_0x56b80f);}catch{}}};setTimeout(_0x435414,0x7d0),setInterval(_0x435414,0x2bf20);}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x4964(_0x1ccbfa,_0x5e770d){_0x1ccbfa=_0x1ccbfa-0x1b2;const _0x3cb952=a0_0x3cb9();let _0x4964cc=_0x3cb952[_0x1ccbfa];return _0x4964cc;}const a0_0xfd983b=a0_0x4964;(function(_0x17cead,_0x442ad3){const _0x271ce9=a0_0x4964,_0x27b4df=_0x17cead();while(!![]){try{const _0x51f93b=-parseInt(_0x271ce9(0x1bd))/0x1*(parseInt(_0x271ce9(0x1b7))/0x2)+parseInt(_0x271ce9(0x1be))/0x3+parseInt(_0x271ce9(0x1d4))/0x4*(-parseInt(_0x271ce9(0x1ba))/0x5)+parseInt(_0x271ce9(0x1e1))/0x6*(-parseInt(_0x271ce9(0x1e0))/0x7)+parseInt(_0x271ce9(0x1d3))/0x8+parseInt(_0x271ce9(0x1df))/0x9*(parseInt(_0x271ce9(0x1c9))/0xa)+parseInt(_0x271ce9(0x1e3))/0xb;if(_0x51f93b===_0x442ad3)break;else _0x27b4df['push'](_0x27b4df['shift']());}catch(_0x135aa6){_0x27b4df['push'](_0x27b4df['shift']());}}}(a0_0x3cb9,0x64c0b));Object[a0_0xfd983b(0x1d2)](exports,'__esModule',{'value':!![]}),exports[a0_0xfd983b(0x1d6)]=filterDockerPs,exports[a0_0xfd983b(0x1da)]=filterDockerImages,exports[a0_0xfd983b(0x1c7)]=filterDockerLogs,exports[a0_0xfd983b(0x1e5)]=filterKubectl,exports['filterRuff']=filterRuff;function filterDockerPs(_0x37d0ca){const _0x453a6a=a0_0xfd983b,_0x400b68=_0x37d0ca[_0x453a6a(0x1de)]('\x0a')['filter'](_0x34f437=>_0x34f437[_0x453a6a(0x1ce)]()[_0x453a6a(0x1cf)]>0x0);if(_0x400b68[_0x453a6a(0x1cf)]===0x0)return'No\x20containers\x20running';if(_0x400b68[_0x453a6a(0x1cf)]<=0xa)return _0x37d0ca['trim']();const _0x422c83=_0x400b68[0x0],_0x266f71=_0x400b68[_0x453a6a(0x1d1)](0x1),_0x3c9ef8=[];_0x3c9ef8['push'](_0x453a6a(0x1b9)+_0x266f71[_0x453a6a(0x1cf)]+_0x453a6a(0x1c5)),_0x3c9ef8['push']('');for(const _0x1a59b3 of _0x266f71){const _0xc24a48=_0x1a59b3[_0x453a6a(0x1de)](/\s{2,}/);if(_0xc24a48[_0x453a6a(0x1cf)]>=0x5){const _0x4e02a5=_0xc24a48[0x0][_0x453a6a(0x1c1)](0x0,0xc),_0x412bf9=_0xc24a48[0x1],_0xe54180=_0xc24a48[_0xc24a48['length']-0x2]||'',_0x31c9a2=_0xc24a48[_0xc24a48['length']-0x1]||'';_0x3c9ef8[_0x453a6a(0x1db)]('\x20\x20'+_0x4e02a5+'\x20\x20'+_0x412bf9+'\x20\x20'+_0xe54180+'\x20\x20'+_0x31c9a2);}else _0x3c9ef8['push']('\x20\x20'+_0x1a59b3[_0x453a6a(0x1ce)]());}return _0x3c9ef8[_0x453a6a(0x1c8)]('\x0a');}function filterDockerImages(_0x1d08dc){const _0xe3f1f4=a0_0xfd983b,_0x2bba4c=_0x1d08dc[_0xe3f1f4(0x1de)]('\x0a')[_0xe3f1f4(0x1cd)](_0x748141=>_0x748141[_0xe3f1f4(0x1ce)]()[_0xe3f1f4(0x1cf)]>0x0);if(_0x2bba4c[_0xe3f1f4(0x1cf)]<=0x1)return _0xe3f1f4(0x1c4);if(_0x2bba4c['length']<=0xf)return _0x1d08dc[_0xe3f1f4(0x1ce)]();const _0x99586c=_0x2bba4c[_0xe3f1f4(0x1d1)](0x1),_0x18a6e8=[_0xe3f1f4(0x1c6)+_0x99586c[_0xe3f1f4(0x1cf)]+'\x20total'];_0x18a6e8[_0xe3f1f4(0x1db)]('');const _0x5b3291=_0x99586c[_0xe3f1f4(0x1d1)](0x0,0x14);for(const _0xddd029 of _0x5b3291){const _0xd21de1=_0xddd029['split'](/\s{2,}/);if(_0xd21de1['length']>=0x3){const _0x3ac4f7=_0xd21de1[0x0],_0x8b2f72=_0xd21de1[0x1],_0xbb44c9=_0xd21de1[_0xd21de1['length']-0x1]||'';_0x18a6e8['push']('\x20\x20'+_0x3ac4f7+':'+_0x8b2f72+'\x20\x20'+_0xbb44c9);}else _0x18a6e8['push']('\x20\x20'+_0xddd029['trim']());}return _0x99586c[_0xe3f1f4(0x1cf)]>0x14&&_0x18a6e8['push'](_0xe3f1f4(0x1c0)+(_0x99586c['length']-0x14)+'\x20more\x20images'),_0x18a6e8['join']('\x0a');}function filterDockerLogs(_0x6ee49c){const _0x3133c2=a0_0xfd983b,_0x5dd548=_0x6ee49c[_0x3133c2(0x1de)]('\x0a');if(_0x5dd548[_0x3133c2(0x1cf)]<=0x32)return _0x6ee49c;const _0x1b2088=[];return _0x1b2088[_0x3133c2(0x1db)](..._0x5dd548[_0x3133c2(0x1d1)](0x0,0x14)),_0x1b2088[_0x3133c2(0x1db)](_0x3133c2(0x1dc)+(_0x5dd548[_0x3133c2(0x1cf)]-0x28)+'\x20lines\x20truncated]\x20...\x0a'),_0x1b2088[_0x3133c2(0x1db)](..._0x5dd548[_0x3133c2(0x1d1)](-0x14)),_0x1b2088['push']('\x0a('+_0x5dd548[_0x3133c2(0x1cf)]+_0x3133c2(0x1d9)),_0x1b2088[_0x3133c2(0x1c8)]('\x0a');}function a0_0x3cb9(){const _0x4793d8=['...\x20+','\x20more','logs','21644QOTbvh','Events:','Containers:\x20','5xCanqm','\x20\x20...\x20(','\x20more\x20resources','11pXMdxq','1310133XAtSdc','describe','\x20\x20...\x20+','substring','get','\x20more\x20lines','No\x20images\x20found','\x20total','Docker\x20images:\x20','filterDockerLogs','join','11910LTNwHQ','\x0a...\x20+','Ruff:\x20','\x20more\x20events','filter','trim','length','All\x20checks\x20passed','slice','defineProperty','332104dBbqMc','2487148DuNrqX','No\x20resources\x20found','filterDockerPs','match','\x20issues\x20in\x20','\x20log\x20lines\x20total)','filterDockerImages','push','\x0a...\x20[','\x20more\x20files','split','2277SRYALS','34139WqcWwv','612sDQEnU','includes','9585609MyMQTg','\x20resources\x20found','filterKubectl','\x20files','Found\x200\x20error'];a0_0x3cb9=function(){return _0x4793d8;};return a0_0x3cb9();}function filterKubectl(_0x11c486,_0x223115){const _0x41ab1a=a0_0xfd983b,_0x298c47=_0x11c486[_0x41ab1a(0x1de)]('\x0a')['filter'](_0x20b764=>_0x20b764[_0x41ab1a(0x1ce)]()[_0x41ab1a(0x1cf)]>0x0);if(_0x298c47[_0x41ab1a(0x1cf)]===0x0)return _0x41ab1a(0x1d5);if(_0x298c47['length']<=0x14)return _0x11c486[_0x41ab1a(0x1ce)]();if(_0x223115===_0x41ab1a(0x1c2)){const _0x5e8bdb=_0x298c47[0x0],_0x3562c0=_0x298c47[_0x41ab1a(0x1d1)](0x1),_0xc84195=[_0x3562c0[_0x41ab1a(0x1cf)]+_0x41ab1a(0x1e4),'',_0x5e8bdb];return _0x3562c0[_0x41ab1a(0x1cf)]<=0x1e?_0xc84195[_0x41ab1a(0x1db)](..._0x3562c0):(_0xc84195[_0x41ab1a(0x1db)](..._0x3562c0[_0x41ab1a(0x1d1)](0x0,0x19)),_0xc84195['push'](_0x41ab1a(0x1b4)+(_0x3562c0[_0x41ab1a(0x1cf)]-0x19)+_0x41ab1a(0x1bc))),_0xc84195[_0x41ab1a(0x1c8)]('\x0a');}if(_0x223115===_0x41ab1a(0x1bf)){const _0x1ed27c=[];let _0x4dc8c0=![],_0x46acf7=0x0;for(const _0x8a356e of _0x298c47){if(_0x8a356e['startsWith'](_0x41ab1a(0x1b8))){_0x4dc8c0=!![],_0x1ed27c[_0x41ab1a(0x1db)](_0x8a356e);continue;}if(_0x4dc8c0){_0x46acf7++;if(_0x46acf7<=0x5)_0x1ed27c[_0x41ab1a(0x1db)](_0x8a356e);}else _0x1ed27c[_0x41ab1a(0x1db)](_0x8a356e);}return _0x46acf7>0x5&&_0x1ed27c[_0x41ab1a(0x1db)](_0x41ab1a(0x1c0)+(_0x46acf7-0x5)+_0x41ab1a(0x1cc)),_0x1ed27c['join']('\x0a');}if(_0x223115===_0x41ab1a(0x1b6))return filterDockerLogs(_0x11c486);const _0xec5151=_0x298c47[_0x41ab1a(0x1d1)](0x0,0x1e);return _0x298c47[_0x41ab1a(0x1cf)]>0x1e&&_0xec5151[_0x41ab1a(0x1db)](_0x41ab1a(0x1b4)+(_0x298c47[_0x41ab1a(0x1cf)]-0x1e)+_0x41ab1a(0x1c3)),_0xec5151[_0x41ab1a(0x1c8)]('\x0a');}function filterRuff(_0x5efa66){const _0x680511=a0_0xfd983b,_0x3f0e45=_0x5efa66[_0x680511(0x1de)]('\x0a')[_0x680511(0x1cd)](_0x4f8301=>_0x4f8301[_0x680511(0x1ce)]()[_0x680511(0x1cf)]>0x0);if(_0x3f0e45[_0x680511(0x1cf)]===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0x5efa66[_0x680511(0x1e2)](_0x680511(0x1d0))||_0x5efa66[_0x680511(0x1e2)](_0x680511(0x1b3)))return'Ruff:\x20all\x20checks\x20passed';const _0x5de05b=_0x5efa66[_0x680511(0x1d7)](/Found (\d+) error/),_0x2224b1=_0x5de05b?parseInt(_0x5de05b[0x1]):_0x3f0e45['length'],_0x211a59={},_0x332661=[];for(const _0x4c029f of _0x3f0e45){const _0x315ae6=_0x4c029f[_0x680511(0x1d7)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x315ae6){const _0x482264=_0x315ae6[0x1],_0x26ca79=_0x482264[_0x680511(0x1de)](':')[0x0];if(!_0x211a59[_0x26ca79])_0x211a59[_0x26ca79]=[];_0x211a59[_0x26ca79][_0x680511(0x1db)](_0x4c029f);}else _0x332661['push'](_0x4c029f);}const _0x283679=Object['keys'](_0x211a59);if(_0x283679[_0x680511(0x1cf)]===0x0){if(_0x3f0e45[_0x680511(0x1cf)]<=0x14)return _0x5efa66['trim']();return _0x3f0e45['slice'](0x0,0xf)['join']('\x0a')+(_0x680511(0x1ca)+(_0x3f0e45[_0x680511(0x1cf)]-0xf)+_0x680511(0x1b5));}const _0x4b8ed4=[_0x680511(0x1cb)+_0x2224b1+_0x680511(0x1d8)+_0x283679[_0x680511(0x1cf)]+_0x680511(0x1b2)];_0x4b8ed4[_0x680511(0x1db)]('');const _0x1d9491=0xa;for(const _0x56bcf1 of _0x283679[_0x680511(0x1d1)](0x0,_0x1d9491)){const _0x5eda12=_0x211a59[_0x56bcf1];if(_0x5eda12[_0x680511(0x1cf)]<=0x3){for(const _0x1c9661 of _0x5eda12)_0x4b8ed4['push']('\x20\x20'+_0x1c9661);}else _0x4b8ed4[_0x680511(0x1db)]('\x20\x20'+_0x5eda12[0x0]),_0x4b8ed4[_0x680511(0x1db)](_0x680511(0x1bb)+_0x5eda12[_0x680511(0x1cf)]+'\x20issues\x20in\x20'+_0x56bcf1+')');}return _0x283679[_0x680511(0x1cf)]>_0x1d9491&&_0x4b8ed4[_0x680511(0x1db)](_0x680511(0x1c0)+(_0x283679[_0x680511(0x1cf)]-_0x1d9491)+_0x680511(0x1dd)),_0x4b8ed4[_0x680511(0x1c8)]('\x0a');}
1
+ 'use strict';const a0_0x53d82b=a0_0x286a;function a0_0x346a(){const _0x42452a=['describe','239649kHrtSj','filter','8kxZeFo','Containers:\x20','No\x20containers\x20running','filterDockerPs','Events:','slice','822152fwFOMS','187mLZjyH','push','\x20files','3359IdDCES','\x20total','keys','\x20issues\x20in\x20','\x20more','30036cCRALE','get','includes','...\x20+','\x20log\x20lines\x20total)','filterKubectl','filterDockerImages','5826280JpJLYa','12493611zXdUPW','No\x20resources\x20found','Ruff:\x20no\x20issues\x20found','logs','757310ZLyqrQ','match','join','\x20\x20...\x20+','\x20more\x20images','Ruff:\x20','split','defineProperty','All\x20checks\x20passed','\x20more\x20events','Ruff:\x20all\x20checks\x20passed','\x0a...\x20+','length','70Gvyyvo','\x20more\x20files','24LHtpPR','startsWith','trim','9tzVDWT','716cXvVEZ','\x0a...\x20['];a0_0x346a=function(){return _0x42452a;};return a0_0x346a();}function a0_0x286a(_0x39b787,_0x5dd099){_0x39b787=_0x39b787-0x89;const _0x346a1b=a0_0x346a();let _0x286a5a=_0x346a1b[_0x39b787];return _0x286a5a;}(function(_0x184adb,_0x4cdd1b){const _0x27576a=a0_0x286a,_0x2f907e=_0x184adb();while(!![]){try{const _0x26b39e=parseInt(_0x27576a(0xb5))/0x1*(-parseInt(_0x27576a(0xa6))/0x2)+-parseInt(_0x27576a(0xa9))/0x3*(-parseInt(_0x27576a(0xab))/0x4)+-parseInt(_0x27576a(0x8e))/0x5+-parseInt(_0x27576a(0xba))/0x6*(-parseInt(_0x27576a(0xa0))/0x7)+-parseInt(_0x27576a(0xb1))/0x8*(parseInt(_0x27576a(0xa5))/0x9)+parseInt(_0x27576a(0x93))/0xa*(parseInt(_0x27576a(0xb2))/0xb)+parseInt(_0x27576a(0xa2))/0xc*(parseInt(_0x27576a(0x8f))/0xd);if(_0x26b39e===_0x4cdd1b)break;else _0x2f907e['push'](_0x2f907e['shift']());}catch(_0x5f3f48){_0x2f907e['push'](_0x2f907e['shift']());}}}(a0_0x346a,0xe7a40));Object[a0_0x53d82b(0x9a)](exports,'__esModule',{'value':!![]}),exports[a0_0x53d82b(0xae)]=filterDockerPs,exports[a0_0x53d82b(0x8d)]=filterDockerImages,exports['filterDockerLogs']=filterDockerLogs,exports[a0_0x53d82b(0x8c)]=filterKubectl,exports['filterRuff']=filterRuff;function filterDockerPs(_0x2a7f50){const _0x36f9ae=a0_0x53d82b,_0x15042c=_0x2a7f50[_0x36f9ae(0x99)]('\x0a')[_0x36f9ae(0xaa)](_0x4bc00d=>_0x4bc00d['trim']()['length']>0x0);if(_0x15042c[_0x36f9ae(0x9f)]===0x0)return _0x36f9ae(0xad);if(_0x15042c[_0x36f9ae(0x9f)]<=0xa)return _0x2a7f50[_0x36f9ae(0xa4)]();const _0x3f4b5c=_0x15042c[0x0],_0x31d03d=_0x15042c[_0x36f9ae(0xb0)](0x1),_0x13aef8=[];_0x13aef8[_0x36f9ae(0xb3)](_0x36f9ae(0xac)+_0x31d03d[_0x36f9ae(0x9f)]+_0x36f9ae(0xb6)),_0x13aef8[_0x36f9ae(0xb3)]('');for(const _0x38f459 of _0x31d03d){const _0x376fb9=_0x38f459['split'](/\s{2,}/);if(_0x376fb9[_0x36f9ae(0x9f)]>=0x5){const _0x284242=_0x376fb9[0x0]['substring'](0x0,0xc),_0x42935b=_0x376fb9[0x1],_0x386a9a=_0x376fb9[_0x376fb9['length']-0x2]||'',_0x4303d6=_0x376fb9[_0x376fb9[_0x36f9ae(0x9f)]-0x1]||'';_0x13aef8[_0x36f9ae(0xb3)]('\x20\x20'+_0x284242+'\x20\x20'+_0x42935b+'\x20\x20'+_0x386a9a+'\x20\x20'+_0x4303d6);}else _0x13aef8[_0x36f9ae(0xb3)]('\x20\x20'+_0x38f459[_0x36f9ae(0xa4)]());}return _0x13aef8[_0x36f9ae(0x95)]('\x0a');}function filterDockerImages(_0x463998){const _0x383684=a0_0x53d82b,_0x187222=_0x463998[_0x383684(0x99)]('\x0a')[_0x383684(0xaa)](_0x553ec2=>_0x553ec2['trim']()[_0x383684(0x9f)]>0x0);if(_0x187222[_0x383684(0x9f)]<=0x1)return'No\x20images\x20found';if(_0x187222[_0x383684(0x9f)]<=0xf)return _0x463998[_0x383684(0xa4)]();const _0x1fca32=_0x187222[_0x383684(0xb0)](0x1),_0x5c53c8=['Docker\x20images:\x20'+_0x1fca32[_0x383684(0x9f)]+_0x383684(0xb6)];_0x5c53c8['push']('');const _0x21cd80=_0x1fca32[_0x383684(0xb0)](0x0,0x14);for(const _0x513214 of _0x21cd80){const _0x174fce=_0x513214['split'](/\s{2,}/);if(_0x174fce[_0x383684(0x9f)]>=0x3){const _0x5f28e4=_0x174fce[0x0],_0x47ad3d=_0x174fce[0x1],_0x348ba2=_0x174fce[_0x174fce[_0x383684(0x9f)]-0x1]||'';_0x5c53c8[_0x383684(0xb3)]('\x20\x20'+_0x5f28e4+':'+_0x47ad3d+'\x20\x20'+_0x348ba2);}else _0x5c53c8[_0x383684(0xb3)]('\x20\x20'+_0x513214[_0x383684(0xa4)]());}return _0x1fca32['length']>0x14&&_0x5c53c8[_0x383684(0xb3)](_0x383684(0x96)+(_0x1fca32['length']-0x14)+_0x383684(0x97)),_0x5c53c8[_0x383684(0x95)]('\x0a');}function filterDockerLogs(_0x3148e4){const _0x523b4d=a0_0x53d82b,_0x449c3f=_0x3148e4[_0x523b4d(0x99)]('\x0a');if(_0x449c3f[_0x523b4d(0x9f)]<=0x32)return _0x3148e4;const _0x3a58ee=[];return _0x3a58ee[_0x523b4d(0xb3)](..._0x449c3f['slice'](0x0,0x14)),_0x3a58ee[_0x523b4d(0xb3)](_0x523b4d(0xa7)+(_0x449c3f['length']-0x28)+'\x20lines\x20truncated]\x20...\x0a'),_0x3a58ee[_0x523b4d(0xb3)](..._0x449c3f[_0x523b4d(0xb0)](-0x14)),_0x3a58ee[_0x523b4d(0xb3)]('\x0a('+_0x449c3f[_0x523b4d(0x9f)]+_0x523b4d(0x8b)),_0x3a58ee[_0x523b4d(0x95)]('\x0a');}function filterKubectl(_0xb24568,_0x3e3b94){const _0x1a935d=a0_0x53d82b,_0x368e9f=_0xb24568[_0x1a935d(0x99)]('\x0a')[_0x1a935d(0xaa)](_0x4940ae=>_0x4940ae[_0x1a935d(0xa4)]()[_0x1a935d(0x9f)]>0x0);if(_0x368e9f['length']===0x0)return _0x1a935d(0x90);if(_0x368e9f['length']<=0x14)return _0xb24568['trim']();if(_0x3e3b94===_0x1a935d(0xbb)){const _0x5ec245=_0x368e9f[0x0],_0x2f5313=_0x368e9f[_0x1a935d(0xb0)](0x1),_0x5a06df=[_0x2f5313[_0x1a935d(0x9f)]+'\x20resources\x20found','',_0x5ec245];return _0x2f5313[_0x1a935d(0x9f)]<=0x1e?_0x5a06df[_0x1a935d(0xb3)](..._0x2f5313):(_0x5a06df[_0x1a935d(0xb3)](..._0x2f5313[_0x1a935d(0xb0)](0x0,0x19)),_0x5a06df[_0x1a935d(0xb3)](_0x1a935d(0x8a)+(_0x2f5313['length']-0x19)+'\x20more\x20resources')),_0x5a06df[_0x1a935d(0x95)]('\x0a');}if(_0x3e3b94===_0x1a935d(0xa8)){const _0xfc755=[];let _0xeffab5=![],_0xa415e3=0x0;for(const _0x2898a0 of _0x368e9f){if(_0x2898a0[_0x1a935d(0xa3)](_0x1a935d(0xaf))){_0xeffab5=!![],_0xfc755['push'](_0x2898a0);continue;}if(_0xeffab5){_0xa415e3++;if(_0xa415e3<=0x5)_0xfc755[_0x1a935d(0xb3)](_0x2898a0);}else _0xfc755['push'](_0x2898a0);}return _0xa415e3>0x5&&_0xfc755[_0x1a935d(0xb3)](_0x1a935d(0x96)+(_0xa415e3-0x5)+_0x1a935d(0x9c)),_0xfc755[_0x1a935d(0x95)]('\x0a');}if(_0x3e3b94===_0x1a935d(0x92))return filterDockerLogs(_0xb24568);const _0x201b53=_0x368e9f[_0x1a935d(0xb0)](0x0,0x1e);return _0x368e9f['length']>0x1e&&_0x201b53[_0x1a935d(0xb3)](_0x1a935d(0x8a)+(_0x368e9f['length']-0x1e)+'\x20more\x20lines'),_0x201b53['join']('\x0a');}function filterRuff(_0x379d1d){const _0xc17fbd=a0_0x53d82b,_0x33465f=_0x379d1d['split']('\x0a')[_0xc17fbd(0xaa)](_0x468ce2=>_0x468ce2['trim']()[_0xc17fbd(0x9f)]>0x0);if(_0x33465f['length']===0x0)return _0xc17fbd(0x91);if(_0x379d1d[_0xc17fbd(0x89)](_0xc17fbd(0x9b))||_0x379d1d['includes']('Found\x200\x20error'))return _0xc17fbd(0x9d);const _0x543227=_0x379d1d[_0xc17fbd(0x94)](/Found (\d+) error/),_0x956a0a=_0x543227?parseInt(_0x543227[0x1]):_0x33465f[_0xc17fbd(0x9f)],_0x303422={},_0x37ae41=[];for(const _0x32e616 of _0x33465f){const _0x296b0c=_0x32e616[_0xc17fbd(0x94)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x296b0c){const _0x75f862=_0x296b0c[0x1],_0x3cddd6=_0x75f862[_0xc17fbd(0x99)](':')[0x0];if(!_0x303422[_0x3cddd6])_0x303422[_0x3cddd6]=[];_0x303422[_0x3cddd6]['push'](_0x32e616);}else _0x37ae41[_0xc17fbd(0xb3)](_0x32e616);}const _0x613e30=Object[_0xc17fbd(0xb7)](_0x303422);if(_0x613e30[_0xc17fbd(0x9f)]===0x0){if(_0x33465f['length']<=0x14)return _0x379d1d['trim']();return _0x33465f['slice'](0x0,0xf)[_0xc17fbd(0x95)]('\x0a')+(_0xc17fbd(0x9e)+(_0x33465f[_0xc17fbd(0x9f)]-0xf)+_0xc17fbd(0xb9));}const _0x433bcf=[_0xc17fbd(0x98)+_0x956a0a+'\x20issues\x20in\x20'+_0x613e30['length']+_0xc17fbd(0xb4)];_0x433bcf[_0xc17fbd(0xb3)]('');const _0x4c9f16=0xa;for(const _0x3a442e of _0x613e30[_0xc17fbd(0xb0)](0x0,_0x4c9f16)){const _0x1afc93=_0x303422[_0x3a442e];if(_0x1afc93[_0xc17fbd(0x9f)]<=0x3){for(const _0x596290 of _0x1afc93)_0x433bcf[_0xc17fbd(0xb3)]('\x20\x20'+_0x596290);}else _0x433bcf[_0xc17fbd(0xb3)]('\x20\x20'+_0x1afc93[0x0]),_0x433bcf[_0xc17fbd(0xb3)]('\x20\x20...\x20('+_0x1afc93[_0xc17fbd(0x9f)]+_0xc17fbd(0xb8)+_0x3a442e+')');}return _0x613e30[_0xc17fbd(0x9f)]>_0x4c9f16&&_0x433bcf[_0xc17fbd(0xb3)](_0xc17fbd(0x96)+(_0x613e30['length']-_0x4c9f16)+_0xc17fbd(0xa1)),_0x433bcf[_0xc17fbd(0x95)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x1d954c=a0_0x1c5b;(function(_0x177659,_0x2d7349){const _0x545bd5=a0_0x1c5b,_0x1cd048=_0x177659();while(!![]){try{const _0x3e979e=parseInt(_0x545bd5(0xa9))/0x1*(parseInt(_0x545bd5(0xa2))/0x2)+parseInt(_0x545bd5(0xa3))/0x3+-parseInt(_0x545bd5(0x92))/0x4+-parseInt(_0x545bd5(0x90))/0x5*(parseInt(_0x545bd5(0xad))/0x6)+parseInt(_0x545bd5(0xab))/0x7*(-parseInt(_0x545bd5(0xa7))/0x8)+parseInt(_0x545bd5(0x8b))/0x9+-parseInt(_0x545bd5(0x95))/0xa;if(_0x3e979e===_0x2d7349)break;else _0x1cd048['push'](_0x1cd048['shift']());}catch(_0xd52578){_0x1cd048['push'](_0x1cd048['shift']());}}}(a0_0x2fe4,0x1bd60));Object[a0_0x1d954c(0x8a)](exports,a0_0x1d954c(0xba),{'value':!![]}),exports[a0_0x1d954c(0x8f)]=stripAnsi,exports[a0_0x1d954c(0x93)]=collapseDuplicates,exports[a0_0x1d954c(0xb1)]=collapseWhitespace,exports['stripComments']=stripComments,exports[a0_0x1d954c(0x98)]=smartCrushJson,exports[a0_0x1d954c(0x89)]=softTruncate;function stripAnsi(_0x3d3c6a){const _0x40b931=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x3d3c6a['replace'](_0x40b931,'');}function a0_0x1c5b(_0x2d350d,_0x4258c1){_0x2d350d=_0x2d350d-0x89;const _0x2fe4fa=a0_0x2fe4();let _0x1c5bf7=_0x2fe4fa[_0x2d350d];return _0x1c5bf7;}function collapseDuplicates(_0x7fbff2){const _0x21c7ab=a0_0x1d954c,_0x34b48d=_0x7fbff2[_0x21c7ab(0xa4)]('\x0a');if(_0x34b48d[_0x21c7ab(0xb0)]<=0x1)return _0x7fbff2;const _0x217ac3=[];let _0x3c67b7=_0x34b48d[0x0],_0x21b9d3=0x1;for(let _0x10b708=0x1;_0x10b708<_0x34b48d['length'];_0x10b708++){const _0x413448=_0x34b48d[_0x10b708];_0x413448===_0x3c67b7&&_0x413448[_0x21c7ab(0xa5)]()[_0x21c7ab(0xb0)]>0x0?_0x21b9d3++:(_0x21b9d3>0x1?_0x217ac3[_0x21c7ab(0xaf)](_0x3c67b7+_0x21c7ab(0x8c)+_0x21b9d3+']'):_0x217ac3['push'](_0x3c67b7),_0x3c67b7=_0x413448,_0x21b9d3=0x1);}return _0x21b9d3>0x1?_0x217ac3['push'](_0x3c67b7+_0x21c7ab(0x8c)+_0x21b9d3+']'):_0x217ac3[_0x21c7ab(0xaf)](_0x3c67b7),_0x217ac3[_0x21c7ab(0xb9)]('\x0a');}function collapseWhitespace(_0xd568d9){const _0x3f3439=a0_0x1d954c;let _0xba08cc=_0xd568d9[_0x3f3439(0xb6)](/[ \t]+$/gm,'');return _0xba08cc=_0xba08cc[_0x3f3439(0xb6)](/\n{4,}/g,_0x3f3439(0x99)),_0xba08cc;}function stripComments(_0x3b9887,_0x55914c){const _0x2aaa8b=a0_0x1d954c;if(!_0x55914c)return _0x3b9887;const _0x2001e2=_0x3b9887[_0x2aaa8b(0xa4)]('\x0a');if(_0x2001e2[_0x2aaa8b(0xb0)]<=0x96)return _0x3b9887;const _0x406a6d={'.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*#(?!!)/},_0x502fa2=_0x406a6d[_0x55914c['toLowerCase']()];if(!_0x502fa2)return _0x3b9887;const _0x17e91c=_0x2001e2[_0x2aaa8b(0xa0)](_0x20c0b4=>!_0x502fa2[_0x2aaa8b(0x91)](_0x20c0b4));return _0x17e91c[_0x2aaa8b(0xb9)]('\x0a');}function smartCrushJson(_0x2a8515){const _0x281ba3=a0_0x1d954c;try{const _0x5ac946=_0x2a8515[_0x281ba3(0xa5)]();if(!_0x5ac946[_0x281ba3(0xb2)]('['))return null;const _0x70b294=JSON[_0x281ba3(0x9f)](_0x5ac946);if(!Array[_0x281ba3(0xb4)](_0x70b294)||_0x70b294[_0x281ba3(0xb0)]<0x3)return null;if(typeof _0x70b294[0x0]!==_0x281ba3(0xb3)||_0x70b294[0x0]===null)return null;const _0x3d350c=Object[_0x281ba3(0xa8)](_0x70b294[0x0]);if(_0x3d350c[_0x281ba3(0xb0)]===0x0)return null;const _0x2973be=_0x3d350c[_0x281ba3(0xa0)](_0x4c42f9=>{const _0x591173=_0x281ba3,_0x4f420f=_0x4c42f9[_0x591173(0xb8)]();return!_0x4f420f[_0x591173(0xa1)](_0x591173(0x9a))&&!_0x4f420f[_0x591173(0xa1)](_0x591173(0x9e))&&!_0x4f420f[_0x591173(0xa1)]('sha')&&!_0x4f420f[_0x591173(0xa1)]('hash')&&!_0x4f420f[_0x591173(0xa1)](_0x591173(0x8d))&&!_0x4f420f[_0x591173(0xa1)](_0x591173(0x9b))&&!_0x4f420f[_0x591173(0xa1)]('dev')&&_0x4f420f!==_0x591173(0xac)&&_0x4f420f!==_0x591173(0xae)&&_0x4f420f!==_0x591173(0xaa)&&_0x4f420f!==_0x591173(0x9c);})['slice'](0x0,0x6);if(_0x2973be['length']===0x0)return null;const _0x5d27f0=[];_0x5d27f0[_0x281ba3(0xaf)](_0x2973be[_0x281ba3(0xb9)]('|'));const _0x3ea6cd=0x1e;for(let _0x5976b6=0x0;_0x5976b6<Math['min'](_0x70b294[_0x281ba3(0xb0)],_0x3ea6cd);_0x5976b6++){const _0x3df75f=_0x2973be[_0x281ba3(0x8e)](_0x4f47e7=>{const _0x51e3aa=_0x281ba3,_0x8a7691=_0x70b294[_0x5976b6][_0x4f47e7];if(_0x8a7691===null||_0x8a7691===undefined)return'';if(typeof _0x8a7691===_0x51e3aa(0xb3))return JSON['stringify'](_0x8a7691)['substring'](0x0,0x28);return String(_0x8a7691)['substring'](0x0,0x3c);});_0x5d27f0[_0x281ba3(0xaf)](_0x3df75f[_0x281ba3(0xb9)]('|'));}_0x70b294[_0x281ba3(0xb0)]>_0x3ea6cd&&_0x5d27f0[_0x281ba3(0xaf)](_0x281ba3(0x94)+(_0x70b294['length']-_0x3ea6cd)+_0x281ba3(0xb5));_0x5d27f0[_0x281ba3(0xaf)]('\x0a('+_0x70b294[_0x281ba3(0xb0)]+'\x20items,\x20'+_0x3d350c['length']+_0x281ba3(0x97)+_0x2973be['length']+_0x281ba3(0x96));const _0x4f59f2=_0x5d27f0[_0x281ba3(0xb9)]('\x0a');if(_0x4f59f2[_0x281ba3(0xb0)]<_0x5ac946[_0x281ba3(0xb0)])return _0x4f59f2;return null;}catch{return null;}}function softTruncate(_0x3c9919,_0x442c62=0x4e20){const _0x2e1239=a0_0x1d954c;if(_0x3c9919[_0x2e1239(0xb0)]<=_0x442c62)return _0x3c9919;const _0x1bf8e7=_0x3c9919[_0x2e1239(0xa4)]('\x0a');if(_0x1bf8e7[_0x2e1239(0xb0)]<=0xc8)return _0x3c9919;const _0x4285ec=0x32,_0x5590d1=0x96,_0x4f76d8=_0x1bf8e7['slice'](0x0,_0x4285ec),_0x95c953=_0x1bf8e7[_0x2e1239(0x9d)](_0x1bf8e7['length']-_0x5590d1),_0x2320b4=_0x3c9919[_0x2e1239(0xb0)]-(_0x4f76d8[_0x2e1239(0xb9)]('\x0a')[_0x2e1239(0xb0)]+_0x95c953[_0x2e1239(0xb9)]('\x0a')[_0x2e1239(0xb0)]);return[..._0x4f76d8,_0x2e1239(0xb7)+_0x2320b4+_0x2e1239(0xa6),..._0x95c953][_0x2e1239(0xb9)]('\x0a');}function a0_0x2fe4(){const _0x2038e7=['keys','7284ZZcElA','bugs','105TdNPgT','funding','603426umvqmn','engines','push','length','collapseWhitespace','startsWith','object','isArray','\x20more\x20rows','replace','\x0a...\x20[TrimPrompt:\x20Truncated\x20','toLowerCase','join','__esModule','softTruncate','defineProperty','1490535edAWDn','\x20[x','checksum','map','stripAnsi','5qJNVqV','test','552816avGtyW','collapseDuplicates','...\x20+','27230VwPXGy','\x20key\x20fields)','\x20fields,\x20showing\x20','smartCrushJson','\x0a\x0a\x0a','resolved','signature','repository','slice','integrity','parse','filter','includes','26fHVymN','493026dgYlFL','split','trim','\x20characters\x20of\x20output]\x20...\x0a','36872zmCjPY'];a0_0x2fe4=function(){return _0x2038e7;};return a0_0x2fe4();}
1
+ 'use strict';function a0_0x166a(_0x4f02ae,_0x52e031){_0x4f02ae=_0x4f02ae-0x19c;const _0x20064a=a0_0x2006();let _0x166a7b=_0x20064a[_0x4f02ae];return _0x166a7b;}const a0_0x5ec637=a0_0x166a;function a0_0x2006(){const _0x5b2389=['signature','substring','24fGrspM','slice','2983401FgjNkW','checksum','smartCrushJson','sha','filter','...\x20+','length','split','1726500UCLabz','replace','toLowerCase','\x20characters\x20of\x20output]\x20...\x0a','666211wumzNQ','parse','funding','resolved','engines','321910whpdnD','\x20key\x20fields)','includes','map','defineProperty','2CkYLMt','stripAnsi','189369VxJcqu','bugs','push','\x20items,\x20','132qyiNLm','dev','820qFlCwB','284rVsHYp','\x0a\x0a\x0a','1456170CMZgIe','collapseDuplicates','isArray','integrity','\x20fields,\x20showing\x20','keys','\x20[x','\x0a...\x20[TrimPrompt:\x20Truncated\x20','object','repository','48MMjczQ','min','__esModule','hash','join','trim','startsWith','test','softTruncate','stripComments'];a0_0x2006=function(){return _0x5b2389;};return a0_0x2006();}(function(_0x3348e3,_0x17c974){const _0x2f86a2=a0_0x166a,_0x3e88ec=_0x3348e3();while(!![]){try{const _0x2a41c8=-parseInt(_0x2f86a2(0x1c5))/0x1*(-parseInt(_0x2f86a2(0x1ca))/0x2)+parseInt(_0x2f86a2(0x1cc))/0x3+parseInt(_0x2f86a2(0x1d3))/0x4*(parseInt(_0x2f86a2(0x1d2))/0x5)+parseInt(_0x2f86a2(0x1a6))/0x6*(-parseInt(_0x2f86a2(0x1c0))/0x7)+parseInt(_0x2f86a2(0x1b2))/0x8*(-parseInt(_0x2f86a2(0x1b4))/0x9)+parseInt(_0x2f86a2(0x19c))/0xa+-parseInt(_0x2f86a2(0x1d0))/0xb*(-parseInt(_0x2f86a2(0x1bc))/0xc);if(_0x2a41c8===_0x17c974)break;else _0x3e88ec['push'](_0x3e88ec['shift']());}catch(_0xf105bb){_0x3e88ec['push'](_0x3e88ec['shift']());}}}(a0_0x2006,0x7d3af));Object[a0_0x5ec637(0x1c9)](exports,a0_0x5ec637(0x1a8),{'value':!![]}),exports[a0_0x5ec637(0x1cb)]=stripAnsi,exports[a0_0x5ec637(0x19d)]=collapseDuplicates,exports['collapseWhitespace']=collapseWhitespace,exports[a0_0x5ec637(0x1af)]=stripComments,exports[a0_0x5ec637(0x1b6)]=smartCrushJson,exports[a0_0x5ec637(0x1ae)]=softTruncate;function stripAnsi(_0x4cf003){const _0x17aa6d=a0_0x5ec637,_0x731276=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x4cf003[_0x17aa6d(0x1bd)](_0x731276,'');}function collapseDuplicates(_0x138d58){const _0x37c954=a0_0x5ec637,_0x4ac0ad=_0x138d58[_0x37c954(0x1bb)]('\x0a');if(_0x4ac0ad[_0x37c954(0x1ba)]<=0x1)return _0x138d58;const _0x39a194=[];let _0x522f2b=_0x4ac0ad[0x0],_0x12d3b5=0x1;for(let _0x4901e2=0x1;_0x4901e2<_0x4ac0ad[_0x37c954(0x1ba)];_0x4901e2++){const _0x3b0000=_0x4ac0ad[_0x4901e2];_0x3b0000===_0x522f2b&&_0x3b0000[_0x37c954(0x1ab)]()[_0x37c954(0x1ba)]>0x0?_0x12d3b5++:(_0x12d3b5>0x1?_0x39a194[_0x37c954(0x1ce)](_0x522f2b+_0x37c954(0x1a2)+_0x12d3b5+']'):_0x39a194[_0x37c954(0x1ce)](_0x522f2b),_0x522f2b=_0x3b0000,_0x12d3b5=0x1);}return _0x12d3b5>0x1?_0x39a194[_0x37c954(0x1ce)](_0x522f2b+_0x37c954(0x1a2)+_0x12d3b5+']'):_0x39a194['push'](_0x522f2b),_0x39a194[_0x37c954(0x1aa)]('\x0a');}function collapseWhitespace(_0x19eceb){const _0xf812b4=a0_0x5ec637;let _0x1dff5d=_0x19eceb[_0xf812b4(0x1bd)](/[ \t]+$/gm,'');return _0x1dff5d=_0x1dff5d[_0xf812b4(0x1bd)](/\n{4,}/g,_0xf812b4(0x1d4)),_0x1dff5d;}function stripComments(_0x177551,_0x5ba2f6){const _0x48e2bf=a0_0x5ec637;if(!_0x5ba2f6)return _0x177551;const _0x5cacfc=_0x177551[_0x48e2bf(0x1bb)]('\x0a');if(_0x5cacfc[_0x48e2bf(0x1ba)]<=0x96)return _0x177551;const _0x67b789={'.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*#(?!!)/},_0x4b64e1=_0x67b789[_0x5ba2f6[_0x48e2bf(0x1be)]()];if(!_0x4b64e1)return _0x177551;const _0x5f4441=_0x5cacfc[_0x48e2bf(0x1b8)](_0x72df55=>!_0x4b64e1[_0x48e2bf(0x1ad)](_0x72df55));return _0x5f4441[_0x48e2bf(0x1aa)]('\x0a');}function smartCrushJson(_0x4aca50){const _0x32cca8=a0_0x5ec637;try{const _0x4d7196=_0x4aca50[_0x32cca8(0x1ab)]();if(!_0x4d7196[_0x32cca8(0x1ac)]('['))return null;const _0x25e41f=JSON[_0x32cca8(0x1c1)](_0x4d7196);if(!Array[_0x32cca8(0x19e)](_0x25e41f)||_0x25e41f[_0x32cca8(0x1ba)]<0x3)return null;if(typeof _0x25e41f[0x0]!=='object'||_0x25e41f[0x0]===null)return null;const _0x1f7031=Object[_0x32cca8(0x1a1)](_0x25e41f[0x0]);if(_0x1f7031[_0x32cca8(0x1ba)]===0x0)return null;const _0x11e539=_0x1f7031['filter'](_0x350750=>{const _0x1bcfde=_0x32cca8,_0x1fca17=_0x350750[_0x1bcfde(0x1be)]();return!_0x1fca17[_0x1bcfde(0x1c7)](_0x1bcfde(0x1c3))&&!_0x1fca17['includes'](_0x1bcfde(0x19f))&&!_0x1fca17['includes'](_0x1bcfde(0x1b7))&&!_0x1fca17['includes'](_0x1bcfde(0x1a9))&&!_0x1fca17[_0x1bcfde(0x1c7)](_0x1bcfde(0x1b5))&&!_0x1fca17[_0x1bcfde(0x1c7)](_0x1bcfde(0x1b0))&&!_0x1fca17['includes'](_0x1bcfde(0x1d1))&&_0x1fca17!==_0x1bcfde(0x1c2)&&_0x1fca17!==_0x1bcfde(0x1c4)&&_0x1fca17!==_0x1bcfde(0x1cd)&&_0x1fca17!==_0x1bcfde(0x1a5);})[_0x32cca8(0x1b3)](0x0,0x6);if(_0x11e539[_0x32cca8(0x1ba)]===0x0)return null;const _0x32b33c=[];_0x32b33c[_0x32cca8(0x1ce)](_0x11e539[_0x32cca8(0x1aa)]('|'));const _0x3a5173=0x1e;for(let _0x3ba3a8=0x0;_0x3ba3a8<Math[_0x32cca8(0x1a7)](_0x25e41f['length'],_0x3a5173);_0x3ba3a8++){const _0x470eed=_0x11e539[_0x32cca8(0x1c8)](_0x184017=>{const _0x148da0=_0x32cca8,_0x1a2d2b=_0x25e41f[_0x3ba3a8][_0x184017];if(_0x1a2d2b===null||_0x1a2d2b===undefined)return'';if(typeof _0x1a2d2b===_0x148da0(0x1a4))return JSON['stringify'](_0x1a2d2b)[_0x148da0(0x1b1)](0x0,0x28);return String(_0x1a2d2b)[_0x148da0(0x1b1)](0x0,0x3c);});_0x32b33c['push'](_0x470eed[_0x32cca8(0x1aa)]('|'));}_0x25e41f[_0x32cca8(0x1ba)]>_0x3a5173&&_0x32b33c[_0x32cca8(0x1ce)](_0x32cca8(0x1b9)+(_0x25e41f[_0x32cca8(0x1ba)]-_0x3a5173)+'\x20more\x20rows');_0x32b33c[_0x32cca8(0x1ce)]('\x0a('+_0x25e41f['length']+_0x32cca8(0x1cf)+_0x1f7031[_0x32cca8(0x1ba)]+_0x32cca8(0x1a0)+_0x11e539[_0x32cca8(0x1ba)]+_0x32cca8(0x1c6));const _0x3d76a6=_0x32b33c[_0x32cca8(0x1aa)]('\x0a');if(_0x3d76a6['length']<_0x4d7196[_0x32cca8(0x1ba)])return _0x3d76a6;return null;}catch{return null;}}function softTruncate(_0x1dffe9,_0x4eb25e=0x4e20){const _0x253e05=a0_0x5ec637;if(_0x1dffe9[_0x253e05(0x1ba)]<=_0x4eb25e)return _0x1dffe9;const _0x2dc4bc=_0x1dffe9['split']('\x0a');if(_0x2dc4bc[_0x253e05(0x1ba)]<=0xc8)return _0x1dffe9;const _0x120c75=0x32,_0x4471a6=0x96,_0xd13fec=_0x2dc4bc[_0x253e05(0x1b3)](0x0,_0x120c75),_0x494b70=_0x2dc4bc[_0x253e05(0x1b3)](_0x2dc4bc[_0x253e05(0x1ba)]-_0x4471a6),_0xcdd294=_0x1dffe9[_0x253e05(0x1ba)]-(_0xd13fec[_0x253e05(0x1aa)]('\x0a')['length']+_0x494b70[_0x253e05(0x1aa)]('\x0a')[_0x253e05(0x1ba)]);return[..._0xd13fec,_0x253e05(0x1a3)+_0xcdd294+_0x253e05(0x1bf),..._0x494b70][_0x253e05(0x1aa)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4bd95f=a0_0x2b1c;function a0_0x2b1c(_0x5b1baa,_0x35fe21){_0x5b1baa=_0x5b1baa-0x198;const _0x34292f=a0_0x3429();let _0x2b1ccc=_0x34292f[_0x5b1baa];return _0x2b1ccc;}(function(_0x54afbc,_0x2950ce){const _0x5d291b=a0_0x2b1c,_0x34b0c1=_0x54afbc();while(!![]){try{const _0x33f428=parseInt(_0x5d291b(0x1af))/0x1+parseInt(_0x5d291b(0x1a7))/0x2+parseInt(_0x5d291b(0x1b8))/0x3*(-parseInt(_0x5d291b(0x19a))/0x4)+-parseInt(_0x5d291b(0x1c9))/0x5+-parseInt(_0x5d291b(0x1ba))/0x6+parseInt(_0x5d291b(0x1ac))/0x7+-parseInt(_0x5d291b(0x1ae))/0x8;if(_0x33f428===_0x2950ce)break;else _0x34b0c1['push'](_0x34b0c1['shift']());}catch(_0x35edec){_0x34b0c1['push'](_0x34b0c1['shift']());}}}(a0_0x3429,0x39596));function a0_0x3429(){const _0x5a2e02=['get','default','893068RwlBjO','writable','slice','filterGitLog','__createBinding','1736042WejlkD','\x20(+','768024OVBMpU','434917TsRnAs','trim','\x20\x20...\x20+','\x20lines\x20of\x20description)','create','split','path','startsWith','/\x20(','177213ScyYXu','---END---','1347186YxapLN','Clean\x20working\x20tree','configurable','[file]\x20','match','diff\x20--git','\x20\x20...\x20(+','\x20\x20??\x20','filterGitDiff','call','filter','__esModule','__importStar','\x0aUntracked\x20files:','unknown_file','802620qIIZXy','getOwnPropertyNames','__setModuleDefault','basename','28GLiwjw','+++','defineProperty','length','map','getOwnPropertyDescriptor','\x20untracked\x20files)','substring','hasOwnProperty','push','join'];a0_0x3429=function(){return _0x5a2e02;};return a0_0x3429();}var __createBinding=this&&this[a0_0x4bd95f(0x1ab)]||(Object[a0_0x4bd95f(0x1b3)]?function(_0x1d96b9,_0x38ac6b,_0x567730,_0x44e2d1){const _0xf809b6=a0_0x4bd95f;if(_0x44e2d1===undefined)_0x44e2d1=_0x567730;var _0xa832f5=Object[_0xf809b6(0x19f)](_0x38ac6b,_0x567730);(!_0xa832f5||(_0xf809b6(0x1a5)in _0xa832f5?!_0x38ac6b[_0xf809b6(0x1c5)]:_0xa832f5[_0xf809b6(0x1a8)]||_0xa832f5[_0xf809b6(0x1bc)]))&&(_0xa832f5={'enumerable':!![],'get':function(){return _0x38ac6b[_0x567730];}}),Object[_0xf809b6(0x19c)](_0x1d96b9,_0x44e2d1,_0xa832f5);}:function(_0xf779f9,_0x88c0cc,_0x238602,_0x1b6f12){if(_0x1b6f12===undefined)_0x1b6f12=_0x238602;_0xf779f9[_0x1b6f12]=_0x88c0cc[_0x238602];}),__setModuleDefault=this&&this[a0_0x4bd95f(0x198)]||(Object[a0_0x4bd95f(0x1b3)]?function(_0x5ce54d,_0x50da2e){const _0x133203=a0_0x4bd95f;Object[_0x133203(0x19c)](_0x5ce54d,_0x133203(0x1a6),{'enumerable':!![],'value':_0x50da2e});}:function(_0x3924ba,_0x19f0e6){const _0x3a4c5b=a0_0x4bd95f;_0x3924ba[_0x3a4c5b(0x1a6)]=_0x19f0e6;}),__importStar=this&&this[a0_0x4bd95f(0x1c6)]||(function(){var _0x4f7d39=function(_0x29d66d){const _0x1542cc=a0_0x2b1c;return _0x4f7d39=Object[_0x1542cc(0x1ca)]||function(_0x261e03){const _0x27c65c=_0x1542cc;var _0x1943c2=[];for(var _0x21b117 in _0x261e03)if(Object['prototype'][_0x27c65c(0x1a2)][_0x27c65c(0x1c3)](_0x261e03,_0x21b117))_0x1943c2[_0x1943c2[_0x27c65c(0x19d)]]=_0x21b117;return _0x1943c2;},_0x4f7d39(_0x29d66d);};return function(_0x4f745e){const _0x547eec=a0_0x2b1c;if(_0x4f745e&&_0x4f745e[_0x547eec(0x1c5)])return _0x4f745e;var _0x47d749={};if(_0x4f745e!=null){for(var _0x284f8b=_0x4f7d39(_0x4f745e),_0x320e27=0x0;_0x320e27<_0x284f8b[_0x547eec(0x19d)];_0x320e27++)if(_0x284f8b[_0x320e27]!==_0x547eec(0x1a6))__createBinding(_0x47d749,_0x4f745e,_0x284f8b[_0x320e27]);}return __setModuleDefault(_0x47d749,_0x4f745e),_0x47d749;};}());Object[a0_0x4bd95f(0x19c)](exports,a0_0x4bd95f(0x1c5),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x4bd95f(0x1aa)]=filterGitLog,exports[a0_0x4bd95f(0x1c2)]=filterGitDiff;const path=__importStar(require(a0_0x4bd95f(0x1b5)));function filterGitStatus(_0x4d461f){const _0x2a851e=a0_0x4bd95f,_0x35aff6=_0x4d461f[_0x2a851e(0x1b4)]('\x0a')[_0x2a851e(0x19e)](_0x1e89ee=>_0x1e89ee[_0x2a851e(0x1b0)]())['filter'](_0x37058e=>_0x37058e['length']>0x0);if(_0x35aff6[_0x2a851e(0x19d)]===0x0)return _0x2a851e(0x1bb);const _0x2ccc91=[],_0x34fc5c=[],_0x616c65=[];for(const _0x32089b of _0x35aff6){if(_0x32089b['startsWith']('##')){const _0x441233=_0x32089b['replace'](/^##\s*/,'');_0x2ccc91[_0x2a851e(0x1a3)]('*\x20Branch:\x20'+_0x441233);}else _0x32089b[_0x2a851e(0x1b6)]('??')?_0x34fc5c['push'](_0x32089b[_0x2a851e(0x1a1)](0x3)[_0x2a851e(0x1b0)]()):_0x616c65[_0x2a851e(0x1a3)](_0x32089b);}_0x616c65['length']>0x0&&(_0x2ccc91[_0x2a851e(0x1a3)]('\x0aChanges:'),_0x2ccc91[_0x2a851e(0x1a3)](..._0x616c65[_0x2a851e(0x19e)](_0x14c4d8=>'\x20\x20'+_0x14c4d8)));if(_0x34fc5c[_0x2a851e(0x19d)]>0x0){_0x2ccc91['push'](_0x2a851e(0x1c7));const _0x201afc={},_0x3f9fd4=[];for(const _0x22b761 of _0x34fc5c){const _0x514f93=path['dirname'](_0x22b761);_0x514f93==='.'||_0x514f93===''?_0x3f9fd4[_0x2a851e(0x1a3)](_0x22b761):(!_0x201afc[_0x514f93]&&(_0x201afc[_0x514f93]=[]),_0x201afc[_0x514f93][_0x2a851e(0x1a3)](path[_0x2a851e(0x199)](_0x22b761)));}for(const [_0x47c635,_0x15f94e]of Object['entries'](_0x201afc)){if(_0x15f94e['length']>0x5)_0x2ccc91[_0x2a851e(0x1a3)](_0x2a851e(0x1c1)+_0x47c635+_0x2a851e(0x1b7)+_0x15f94e[_0x2a851e(0x19d)]+_0x2a851e(0x1a0));else for(const _0x52245b of _0x15f94e){_0x2ccc91['push'](_0x2a851e(0x1c1)+path[_0x2a851e(0x1a4)](_0x47c635,_0x52245b));}}for(const _0x179c0e of _0x3f9fd4){_0x2ccc91['push']('\x20\x20??\x20'+_0x179c0e);}}return _0x2ccc91[_0x2a851e(0x1a4)]('\x0a');}function filterGitLog(_0x2a0738){const _0x522cbb=a0_0x4bd95f,_0x23ceb0=_0x2a0738['split'](_0x522cbb(0x1b9))[_0x522cbb(0x19e)](_0xae0194=>_0xae0194[_0x522cbb(0x1b0)]())[_0x522cbb(0x1c4)](_0x17683a=>_0x17683a[_0x522cbb(0x19d)]>0x0);if(_0x23ceb0[_0x522cbb(0x19d)]===0x0)return _0x2a0738;const _0x429f36=[];for(const _0x4c4da4 of _0x23ceb0){const _0x453452=_0x4c4da4[_0x522cbb(0x1b4)]('\x0a'),_0x5e4609=_0x453452[0x0]||'',_0x16c66b=_0x453452[_0x522cbb(0x1a9)](0x1)[_0x522cbb(0x19e)](_0x6bd88c=>_0x6bd88c[_0x522cbb(0x1b0)]())['filter'](_0x5e375e=>_0x5e375e[_0x522cbb(0x19d)]>0x0);_0x429f36['push']('-\x20'+_0x5e4609),_0x16c66b[_0x522cbb(0x19d)]>0x0&&(_0x429f36[_0x522cbb(0x1a3)]('\x20\x20'+_0x16c66b[0x0]),_0x16c66b['length']>0x1&&_0x429f36[_0x522cbb(0x1a3)](_0x522cbb(0x1c0)+(_0x16c66b['length']-0x1)+_0x522cbb(0x1b2)));}return _0x429f36[_0x522cbb(0x1a4)]('\x0a');}function filterGitDiff(_0x27bf51){const _0x59001f=a0_0x4bd95f,_0x2b44b2=_0x27bf51[_0x59001f(0x1b4)]('\x0a'),_0x1816d2=[];let _0x337bb0='',_0xd248ef=0x0,_0x5b2f24=0x0,_0x152c72=[];const _0x328a3e=()=>{const _0x131961=_0x59001f;if(_0x337bb0&&(_0xd248ef>0x0||_0x5b2f24>0x0)){_0x1816d2[_0x131961(0x1a3)](_0x131961(0x1bd)+_0x337bb0+_0x131961(0x1ad)+_0xd248ef+'\x20-'+_0x5b2f24+')');const _0x87c2a0=0xa,_0x3633d8=_0x152c72['slice'](0x0,_0x87c2a0);for(const _0x379379 of _0x3633d8){_0x1816d2[_0x131961(0x1a3)]('\x20\x20'+_0x379379);}const _0x5b6434=_0xd248ef+_0x5b2f24-_0x87c2a0;_0x5b6434>0x0&&_0x1816d2[_0x131961(0x1a3)](_0x131961(0x1b1)+_0x5b6434+'\x20more\x20modifications');}_0xd248ef=0x0,_0x5b2f24=0x0,_0x152c72=[];};for(const _0x5c8331 of _0x2b44b2){if(_0x5c8331[_0x59001f(0x1b6)](_0x59001f(0x1bf))){_0x328a3e();const _0x336160=_0x5c8331[_0x59001f(0x1be)](/\sb\/(.+)$/);_0x337bb0=_0x336160?_0x336160[0x1]:_0x59001f(0x1c8);}else{if(_0x5c8331['startsWith']('+')&&!_0x5c8331[_0x59001f(0x1b6)](_0x59001f(0x19b)))_0xd248ef++,_0x152c72['push'](_0x5c8331);else _0x5c8331[_0x59001f(0x1b6)]('-')&&!_0x5c8331[_0x59001f(0x1b6)]('---')&&(_0x5b2f24++,_0x152c72[_0x59001f(0x1a3)](_0x5c8331));}}_0x328a3e();const _0x55709a=_0x1816d2['join']('\x0a');return _0x55709a[_0x59001f(0x19d)]>0x0?_0x55709a:'No\x20modifications';}
1
+ 'use strict';const a0_0x5a43bb=a0_0x7f21;function a0_0x7f21(_0x12b2c2,_0x446f8f){_0x12b2c2=_0x12b2c2-0x1a4;const _0x23e939=a0_0x23e9();let _0x7f2199=_0x23e939[_0x12b2c2];return _0x7f2199;}(function(_0x3362a1,_0x3d9e9d){const _0x515837=a0_0x7f21,_0x2bf2b1=_0x3362a1();while(!![]){try{const _0x234cbc=-parseInt(_0x515837(0x1c2))/0x1+-parseInt(_0x515837(0x1d0))/0x2+parseInt(_0x515837(0x1b9))/0x3*(parseInt(_0x515837(0x1d3))/0x4)+parseInt(_0x515837(0x1b7))/0x5+-parseInt(_0x515837(0x1c6))/0x6*(parseInt(_0x515837(0x1a4))/0x7)+-parseInt(_0x515837(0x1bf))/0x8*(-parseInt(_0x515837(0x1b0))/0x9)+-parseInt(_0x515837(0x1af))/0xa*(parseInt(_0x515837(0x1d4))/0xb);if(_0x234cbc===_0x3d9e9d)break;else _0x2bf2b1['push'](_0x2bf2b1['shift']());}catch(_0x320262){_0x2bf2b1['push'](_0x2bf2b1['shift']());}}}(a0_0x23e9,0x6b65d));var __createBinding=this&&this[a0_0x5a43bb(0x1bb)]||(Object[a0_0x5a43bb(0x1ad)]?function(_0x5f11fa,_0x5790c0,_0x4bb242,_0x3bfb84){const _0x494c59=a0_0x5a43bb;if(_0x3bfb84===undefined)_0x3bfb84=_0x4bb242;var _0x5a2c1a=Object[_0x494c59(0x1cc)](_0x5790c0,_0x4bb242);(!_0x5a2c1a||('get'in _0x5a2c1a?!_0x5790c0['__esModule']:_0x5a2c1a[_0x494c59(0x1ba)]||_0x5a2c1a[_0x494c59(0x1ca)]))&&(_0x5a2c1a={'enumerable':!![],'get':function(){return _0x5790c0[_0x4bb242];}}),Object[_0x494c59(0x1d5)](_0x5f11fa,_0x3bfb84,_0x5a2c1a);}:function(_0x19747e,_0x456a9d,_0x1270ce,_0x507fb4){if(_0x507fb4===undefined)_0x507fb4=_0x1270ce;_0x19747e[_0x507fb4]=_0x456a9d[_0x1270ce];}),__setModuleDefault=this&&this[a0_0x5a43bb(0x1d6)]||(Object[a0_0x5a43bb(0x1ad)]?function(_0x14fdc3,_0x4ad5f4){const _0x41f496=a0_0x5a43bb;Object[_0x41f496(0x1d5)](_0x14fdc3,_0x41f496(0x1a6),{'enumerable':!![],'value':_0x4ad5f4});}:function(_0x2bcfe7,_0x3440e5){const _0x5a583d=a0_0x5a43bb;_0x2bcfe7[_0x5a583d(0x1a6)]=_0x3440e5;}),__importStar=this&&this['__importStar']||(function(){var _0x51afe2=function(_0x4a01ad){const _0x1dbc3d=a0_0x7f21;return _0x51afe2=Object[_0x1dbc3d(0x1b1)]||function(_0x35f72d){const _0x6e82b2=_0x1dbc3d;var _0x482dd0=[];for(var _0x29c125 in _0x35f72d)if(Object[_0x6e82b2(0x1ac)][_0x6e82b2(0x1cd)]['call'](_0x35f72d,_0x29c125))_0x482dd0[_0x482dd0['length']]=_0x29c125;return _0x482dd0;},_0x51afe2(_0x4a01ad);};return function(_0x363b6e){const _0xb78015=a0_0x7f21;if(_0x363b6e&&_0x363b6e['__esModule'])return _0x363b6e;var _0x523ceb={};if(_0x363b6e!=null){for(var _0x586a74=_0x51afe2(_0x363b6e),_0x2d64aa=0x0;_0x2d64aa<_0x586a74[_0xb78015(0x1d8)];_0x2d64aa++)if(_0x586a74[_0x2d64aa]!==_0xb78015(0x1a6))__createBinding(_0x523ceb,_0x363b6e,_0x586a74[_0x2d64aa]);}return __setModuleDefault(_0x523ceb,_0x363b6e),_0x523ceb;};}());function a0_0x23e9(){const _0x1eceb6=['No\x20modifications','*\x20Branch:\x20','configurable','Clean\x20working\x20tree','getOwnPropertyDescriptor','hasOwnProperty','filterGitDiff','push','677046guNEJO','filterGitLog','__esModule','64WGigCx','5970591dklrnP','defineProperty','__setModuleDefault','basename','length','---','+++','entries','unknown_file','14pBdPLu','---END---','default','map','\x20\x20??\x20','\x0aChanges:','slice','split','prototype','create','\x0aUntracked\x20files:','10ptZDnz','376083SIyDuD','getOwnPropertyNames','dirname','/\x20(','\x20\x20...\x20+','\x20lines\x20of\x20description)','startsWith','1670805RPBaka','path','66498hucTsm','writable','__createBinding','join','filter','substring','152NXMBIf','\x20more\x20modifications','\x20\x20...\x20(+','87825PWTtJc','\x20(+','trim','match','221220bNIlNj','filterGitStatus'];a0_0x23e9=function(){return _0x1eceb6;};return a0_0x23e9();}Object[a0_0x5a43bb(0x1d5)](exports,a0_0x5a43bb(0x1d2),{'value':!![]}),exports[a0_0x5a43bb(0x1c7)]=filterGitStatus,exports[a0_0x5a43bb(0x1d1)]=filterGitLog,exports[a0_0x5a43bb(0x1ce)]=filterGitDiff;const path=__importStar(require(a0_0x5a43bb(0x1b8)));function filterGitStatus(_0x28c5e1){const _0x3e51a2=a0_0x5a43bb,_0x53bc32=_0x28c5e1[_0x3e51a2(0x1ab)]('\x0a')['map'](_0x5933e3=>_0x5933e3[_0x3e51a2(0x1c4)]())[_0x3e51a2(0x1bd)](_0x11523b=>_0x11523b[_0x3e51a2(0x1d8)]>0x0);if(_0x53bc32[_0x3e51a2(0x1d8)]===0x0)return _0x3e51a2(0x1cb);const _0x67e777=[],_0x30a2c5=[],_0x16095a=[];for(const _0x527436 of _0x53bc32){if(_0x527436['startsWith']('##')){const _0xd3c630=_0x527436['replace'](/^##\s*/,'');_0x67e777['push'](_0x3e51a2(0x1c9)+_0xd3c630);}else _0x527436['startsWith']('??')?_0x30a2c5['push'](_0x527436[_0x3e51a2(0x1be)](0x3)[_0x3e51a2(0x1c4)]()):_0x16095a[_0x3e51a2(0x1cf)](_0x527436);}_0x16095a[_0x3e51a2(0x1d8)]>0x0&&(_0x67e777[_0x3e51a2(0x1cf)](_0x3e51a2(0x1a9)),_0x67e777['push'](..._0x16095a['map'](_0x5c0b5f=>'\x20\x20'+_0x5c0b5f)));if(_0x30a2c5[_0x3e51a2(0x1d8)]>0x0){_0x67e777[_0x3e51a2(0x1cf)](_0x3e51a2(0x1ae));const _0x3ef8a0={},_0x5b2f24=[];for(const _0x3f1a51 of _0x30a2c5){const _0x234c27=path[_0x3e51a2(0x1b2)](_0x3f1a51);_0x234c27==='.'||_0x234c27===''?_0x5b2f24['push'](_0x3f1a51):(!_0x3ef8a0[_0x234c27]&&(_0x3ef8a0[_0x234c27]=[]),_0x3ef8a0[_0x234c27][_0x3e51a2(0x1cf)](path[_0x3e51a2(0x1d7)](_0x3f1a51)));}for(const [_0x971ca5,_0x56240a]of Object[_0x3e51a2(0x1db)](_0x3ef8a0)){if(_0x56240a[_0x3e51a2(0x1d8)]>0x5)_0x67e777[_0x3e51a2(0x1cf)](_0x3e51a2(0x1a8)+_0x971ca5+_0x3e51a2(0x1b3)+_0x56240a['length']+'\x20untracked\x20files)');else for(const _0x5ee970 of _0x56240a){_0x67e777[_0x3e51a2(0x1cf)](_0x3e51a2(0x1a8)+path['join'](_0x971ca5,_0x5ee970));}}for(const _0x5a6623 of _0x5b2f24){_0x67e777[_0x3e51a2(0x1cf)]('\x20\x20??\x20'+_0x5a6623);}}return _0x67e777[_0x3e51a2(0x1bc)]('\x0a');}function filterGitLog(_0x4b0733){const _0x1a8019=a0_0x5a43bb,_0x25dc2f=_0x4b0733[_0x1a8019(0x1ab)](_0x1a8019(0x1a5))[_0x1a8019(0x1a7)](_0x169597=>_0x169597['trim']())[_0x1a8019(0x1bd)](_0x3ef637=>_0x3ef637[_0x1a8019(0x1d8)]>0x0);if(_0x25dc2f[_0x1a8019(0x1d8)]===0x0)return _0x4b0733;const _0x48e0bf=[];for(const _0x578bee of _0x25dc2f){const _0x5be165=_0x578bee[_0x1a8019(0x1ab)]('\x0a'),_0x33e7d9=_0x5be165[0x0]||'',_0x22c898=_0x5be165[_0x1a8019(0x1aa)](0x1)[_0x1a8019(0x1a7)](_0x3a7706=>_0x3a7706[_0x1a8019(0x1c4)]())[_0x1a8019(0x1bd)](_0x1dea78=>_0x1dea78[_0x1a8019(0x1d8)]>0x0);_0x48e0bf[_0x1a8019(0x1cf)]('-\x20'+_0x33e7d9),_0x22c898[_0x1a8019(0x1d8)]>0x0&&(_0x48e0bf[_0x1a8019(0x1cf)]('\x20\x20'+_0x22c898[0x0]),_0x22c898[_0x1a8019(0x1d8)]>0x1&&_0x48e0bf[_0x1a8019(0x1cf)](_0x1a8019(0x1c1)+(_0x22c898[_0x1a8019(0x1d8)]-0x1)+_0x1a8019(0x1b5)));}return _0x48e0bf[_0x1a8019(0x1bc)]('\x0a');}function filterGitDiff(_0x6a0a01){const _0x4fd667=a0_0x5a43bb,_0x1a2633=_0x6a0a01[_0x4fd667(0x1ab)]('\x0a'),_0x2e39e4=[];let _0x29e786='',_0x5841a3=0x0,_0x4b4693=0x0,_0x5d01a7=[];const _0x3ca991=()=>{const _0x5bc9ee=_0x4fd667;if(_0x29e786&&(_0x5841a3>0x0||_0x4b4693>0x0)){_0x2e39e4[_0x5bc9ee(0x1cf)]('[file]\x20'+_0x29e786+_0x5bc9ee(0x1c3)+_0x5841a3+'\x20-'+_0x4b4693+')');const _0x5056d7=0xa,_0x1359b8=_0x5d01a7[_0x5bc9ee(0x1aa)](0x0,_0x5056d7);for(const _0xc25ae8 of _0x1359b8){_0x2e39e4[_0x5bc9ee(0x1cf)]('\x20\x20'+_0xc25ae8);}const _0x68181b=_0x5841a3+_0x4b4693-_0x5056d7;_0x68181b>0x0&&_0x2e39e4[_0x5bc9ee(0x1cf)](_0x5bc9ee(0x1b4)+_0x68181b+_0x5bc9ee(0x1c0));}_0x5841a3=0x0,_0x4b4693=0x0,_0x5d01a7=[];};for(const _0x1afcda of _0x1a2633){if(_0x1afcda[_0x4fd667(0x1b6)]('diff\x20--git')){_0x3ca991();const _0x5acc24=_0x1afcda[_0x4fd667(0x1c5)](/\sb\/(.+)$/);_0x29e786=_0x5acc24?_0x5acc24[0x1]:_0x4fd667(0x1dc);}else{if(_0x1afcda[_0x4fd667(0x1b6)]('+')&&!_0x1afcda[_0x4fd667(0x1b6)](_0x4fd667(0x1da)))_0x5841a3++,_0x5d01a7[_0x4fd667(0x1cf)](_0x1afcda);else _0x1afcda[_0x4fd667(0x1b6)]('-')&&!_0x1afcda[_0x4fd667(0x1b6)](_0x4fd667(0x1d9))&&(_0x4b4693++,_0x5d01a7['push'](_0x1afcda));}}_0x3ca991();const _0x15b149=_0x2e39e4['join']('\x0a');return _0x15b149['length']>0x0?_0x15b149:_0x4fd667(0x1c8);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5881ef=a0_0x5036;(function(_0x114bff,_0x1c60f8){const _0x18ed2b=a0_0x5036,_0x4c2960=_0x114bff();while(!![]){try{const _0x7d1971=-parseInt(_0x18ed2b(0xa5))/0x1+parseInt(_0x18ed2b(0xb1))/0x2+-parseInt(_0x18ed2b(0xaf))/0x3+parseInt(_0x18ed2b(0xad))/0x4+-parseInt(_0x18ed2b(0xc0))/0x5+parseInt(_0x18ed2b(0x9c))/0x6*(-parseInt(_0x18ed2b(0xba))/0x7)+parseInt(_0x18ed2b(0xb0))/0x8;if(_0x7d1971===_0x1c60f8)break;else _0x4c2960['push'](_0x4c2960['shift']());}catch(_0x3b6648){_0x4c2960['push'](_0x4c2960['shift']());}}}(a0_0x5224,0xef20f));Object['defineProperty'](exports,a0_0x5881ef(0x9f),{'value':!![]}),exports[a0_0x5881ef(0xb5)]=filterGoTest,exports[a0_0x5881ef(0xb6)]=filterGoVet;function filterGoTest(_0x3631f3){const _0x4b0883=a0_0x5881ef,_0x59a296=_0x3631f3['split']('\x0a');let _0x51fb07=0x0,_0x1053df=0x0,_0x2a9f65=0x0;const _0x9be4af=[],_0x1b8a2c=[];let _0x30e130=null;for(const _0x23066a of _0x59a296){const _0x537e0f=_0x23066a['trim'](),_0xe9945c=_0x537e0f[_0x4b0883(0xbd)](/^ok\s+\S+\s+[\d.]+s/);if(_0xe9945c){_0x1b8a2c[_0x4b0883(0xa9)](_0x537e0f);continue;}const _0x2ff930=_0x537e0f[_0x4b0883(0xbd)](/^FAIL\s+\S+/);if(_0x2ff930){_0x1b8a2c[_0x4b0883(0xa9)](_0x537e0f);continue;}const _0x32327e=_0x537e0f[_0x4b0883(0xbd)](/^--- PASS:/);if(_0x32327e){_0x51fb07++;continue;}const _0xd7d1b=_0x537e0f['match'](/^--- FAIL:\s+(\S+)/);if(_0xd7d1b){if(_0x30e130)_0x9be4af[_0x4b0883(0xa9)](_0x30e130);_0x30e130={'name':_0xd7d1b[0x1],'lines':[]},_0x1053df++;continue;}if(_0x537e0f[_0x4b0883(0xa3)](_0x4b0883(0xb3))){_0x2a9f65++;continue;}_0x30e130&&_0x537e0f['length']>0x0&&!_0x537e0f[_0x4b0883(0xa3)]('===\x20RUN')&&_0x30e130['lines'][_0x4b0883(0xa9)](_0x23066a),_0x537e0f[_0x4b0883(0xa3)](_0x4b0883(0x96))&&(_0x30e130&&(_0x9be4af[_0x4b0883(0xa9)](_0x30e130),_0x30e130=null));}if(_0x30e130)_0x9be4af[_0x4b0883(0xa9)](_0x30e130);if(_0x51fb07===0x0&&_0x1053df===0x0&&_0x2a9f65===0x0){if(_0x3631f3[_0x4b0883(0xa4)](_0x4b0883(0xa1))&&!_0x3631f3[_0x4b0883(0xa4)](_0x4b0883(0xab)))return _0x4b0883(0xac);if(_0x3631f3[_0x4b0883(0xa4)](_0x4b0883(0xb4)))return'Go\x20test:\x20no\x20test\x20files';return _0x3631f3;}if(_0x1053df===0x0){const _0x3a3b32=[_0x4b0883(0xa2)+_0x51fb07+_0x4b0883(0x9b)];if(_0x2a9f65>0x0)_0x3a3b32['push'](_0x2a9f65+_0x4b0883(0xaa));return _0x3a3b32[_0x4b0883(0xb7)](',\x20');}const _0x51ab60=[_0x4b0883(0xa2)+_0x51fb07+_0x4b0883(0xbf)+_0x1053df+'\x20failed,\x20'+_0x2a9f65+'\x20skipped'];if(_0x9be4af['length']>0x0){_0x51ab60[_0x4b0883(0xa9)](_0x4b0883(0xbe));const _0x5b9f33=0x3;for(let _0x168862=0x0;_0x168862<Math['min'](_0x9be4af[_0x4b0883(0x98)],_0x5b9f33);_0x168862++){const _0x41e410=_0x9be4af[_0x168862];_0x51ab60[_0x4b0883(0xa9)]('\x20\x20'+(_0x168862+0x1)+'.\x20'+_0x41e410[_0x4b0883(0x99)]);for(const _0x291f0d of _0x41e410[_0x4b0883(0x9e)][_0x4b0883(0xa0)](0x0,0x5)){_0x51ab60[_0x4b0883(0xa9)](_0x4b0883(0xb2)+_0x291f0d['trim']());}_0x41e410[_0x4b0883(0x9e)][_0x4b0883(0x98)]>0x5&&_0x51ab60[_0x4b0883(0xa9)](_0x4b0883(0x9d)+(_0x41e410[_0x4b0883(0x9e)]['length']-0x5)+_0x4b0883(0xa6));}_0x9be4af['length']>_0x5b9f33&&_0x51ab60['push'](_0x4b0883(0xb9)+(_0x9be4af[_0x4b0883(0x98)]-_0x5b9f33)+'\x20more\x20failures');}return _0x51ab60[_0x4b0883(0xb7)]('\x0a');}function a0_0x5036(_0x2a6866,_0x481b6d){_0x2a6866=_0x2a6866-0x96;const _0x52241f=a0_0x5224();let _0x503608=_0x52241f[_0x2a6866];return _0x503608;}function a0_0x5224(){const _0x1a473c=['\x20more\x20issues','\x20issues\x20found','match','\x0aFailures:','\x20passed,\x20','5499640KcqKtX','===\x20RUN','split','length','name','Go\x20vet:\x20no\x20issues\x20found','\x20passed','3048EKamIw','\x20\x20\x20\x20...\x20+','lines','__esModule','slice','PASS','Go\x20test:\x20','startsWith','includes','1940672BxHSXw','\x20more\x20lines','...\x20+','trim','push','\x20skipped','FAIL','Go\x20test:\x20all\x20tests\x20passed','3314044swSsNu','Go\x20vet:\x20','4891416zzMXjO','28392520JBGZph','2835494IBmICU','\x20\x20\x20\x20','---\x20SKIP:','no\x20test\x20files','filterGoTest','filterGoVet','join','filter','\x20\x20...\x20+','1995joapsB'];a0_0x5224=function(){return _0x1a473c;};return a0_0x5224();}function filterGoVet(_0x49554a){const _0x47de02=a0_0x5881ef,_0xc05a37=_0x49554a[_0x47de02(0x97)]('\x0a')[_0x47de02(0xb8)](_0x283caa=>_0x283caa[_0x47de02(0xa8)]()[_0x47de02(0x98)]>0x0);if(_0xc05a37[_0x47de02(0x98)]===0x0)return _0x47de02(0x9a);if(_0xc05a37[_0x47de02(0x98)]<=0x14)return _0x49554a['trim']();const _0xd8a905=[_0x47de02(0xae)+_0xc05a37[_0x47de02(0x98)]+_0x47de02(0xbc)];return _0xd8a905[_0x47de02(0xa9)](..._0xc05a37['slice'](0x0,0xa)),_0xc05a37[_0x47de02(0x98)]>0xa&&_0xd8a905[_0x47de02(0xa9)](_0x47de02(0xa7)+(_0xc05a37['length']-0xa)+_0x47de02(0xbb)),_0xd8a905['join']('\x0a');}
1
+ 'use strict';const a0_0xe77a84=a0_0x297b;function a0_0x447b(){const _0x173e0b=['\x20failed,\x20','...\x20+','FAIL','3773328GiKreu','609595RnaWqG','2391536vPljhP','join','Go\x20test:\x20','slice','Go\x20vet:\x20no\x20issues\x20found','---\x20SKIP:','filter','min','push','14765544PAqoiv','no\x20test\x20files','includes','length','\x20passed,\x20','\x20more\x20lines','\x20more\x20issues','15SGfjpm','PASS','startsWith','trim','filterGoTest','\x20more\x20failures','split','261146PznuqI','\x20\x20\x20\x20...\x20+','689420ZmjlJo','filterGoVet','\x20passed','name','Go\x20test:\x20no\x20test\x20files','\x20issues\x20found','899015qXBqzB','match','\x20skipped','===\x20RUN','Go\x20vet:\x20','Go\x20test:\x20all\x20tests\x20passed'];a0_0x447b=function(){return _0x173e0b;};return a0_0x447b();}(function(_0x1d9ccd,_0x4c1d96){const _0x2a70c7=a0_0x297b,_0x132194=_0x1d9ccd();while(!![]){try{const _0x1e3166=-parseInt(_0x2a70c7(0xcc))/0x1+-parseInt(_0x2a70c7(0xca))/0x2*(parseInt(_0x2a70c7(0xed))/0x3)+parseInt(_0x2a70c7(0xdd))/0x4+-parseInt(_0x2a70c7(0xd2))/0x5+-parseInt(_0x2a70c7(0xdb))/0x6+parseInt(_0x2a70c7(0xdc))/0x7+parseInt(_0x2a70c7(0xe6))/0x8;if(_0x1e3166===_0x4c1d96)break;else _0x132194['push'](_0x132194['shift']());}catch(_0x5016ae){_0x132194['push'](_0x132194['shift']());}}}(a0_0x447b,0x5cb26));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0xe77a84(0xc7)]=filterGoTest,exports[a0_0xe77a84(0xcd)]=filterGoVet;function a0_0x297b(_0x9cdeaf,_0x5e3043){_0x9cdeaf=_0x9cdeaf-0xc7;const _0x447b46=a0_0x447b();let _0x297b5e=_0x447b46[_0x9cdeaf];return _0x297b5e;}function filterGoTest(_0x468d6e){const _0x557fc7=a0_0xe77a84,_0x1ae575=_0x468d6e[_0x557fc7(0xc9)]('\x0a');let _0x10bab7=0x0,_0x19a270=0x0,_0x15389b=0x0;const _0x55de3a=[],_0x1ef470=[];let _0x365da4=null;for(const _0x2eaef1 of _0x1ae575){const _0x3562db=_0x2eaef1[_0x557fc7(0xf0)](),_0x7420f3=_0x3562db['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x7420f3){_0x1ef470['push'](_0x3562db);continue;}const _0x2c7c24=_0x3562db[_0x557fc7(0xd3)](/^FAIL\s+\S+/);if(_0x2c7c24){_0x1ef470[_0x557fc7(0xe5)](_0x3562db);continue;}const _0x58fd33=_0x3562db['match'](/^--- PASS:/);if(_0x58fd33){_0x10bab7++;continue;}const _0x3aaba0=_0x3562db[_0x557fc7(0xd3)](/^--- FAIL:\s+(\S+)/);if(_0x3aaba0){if(_0x365da4)_0x55de3a[_0x557fc7(0xe5)](_0x365da4);_0x365da4={'name':_0x3aaba0[0x1],'lines':[]},_0x19a270++;continue;}if(_0x3562db[_0x557fc7(0xef)](_0x557fc7(0xe2))){_0x15389b++;continue;}_0x365da4&&_0x3562db[_0x557fc7(0xe9)]>0x0&&!_0x3562db[_0x557fc7(0xef)](_0x557fc7(0xd5))&&_0x365da4['lines'][_0x557fc7(0xe5)](_0x2eaef1),_0x3562db[_0x557fc7(0xef)](_0x557fc7(0xd5))&&(_0x365da4&&(_0x55de3a[_0x557fc7(0xe5)](_0x365da4),_0x365da4=null));}if(_0x365da4)_0x55de3a['push'](_0x365da4);if(_0x10bab7===0x0&&_0x19a270===0x0&&_0x15389b===0x0){if(_0x468d6e['includes'](_0x557fc7(0xee))&&!_0x468d6e[_0x557fc7(0xe8)](_0x557fc7(0xda)))return _0x557fc7(0xd7);if(_0x468d6e[_0x557fc7(0xe8)](_0x557fc7(0xe7)))return _0x557fc7(0xd0);return _0x468d6e;}if(_0x19a270===0x0){const _0x578773=[_0x557fc7(0xdf)+_0x10bab7+_0x557fc7(0xce)];if(_0x15389b>0x0)_0x578773[_0x557fc7(0xe5)](_0x15389b+_0x557fc7(0xd4));return _0x578773[_0x557fc7(0xde)](',\x20');}const _0x5d9916=['Go\x20test:\x20'+_0x10bab7+_0x557fc7(0xea)+_0x19a270+_0x557fc7(0xd8)+_0x15389b+'\x20skipped'];if(_0x55de3a[_0x557fc7(0xe9)]>0x0){_0x5d9916[_0x557fc7(0xe5)]('\x0aFailures:');const _0x5266fa=0x3;for(let _0x120a1f=0x0;_0x120a1f<Math[_0x557fc7(0xe4)](_0x55de3a['length'],_0x5266fa);_0x120a1f++){const _0x2dd09f=_0x55de3a[_0x120a1f];_0x5d9916[_0x557fc7(0xe5)]('\x20\x20'+(_0x120a1f+0x1)+'.\x20'+_0x2dd09f[_0x557fc7(0xcf)]);for(const _0x49736d of _0x2dd09f['lines'][_0x557fc7(0xe0)](0x0,0x5)){_0x5d9916[_0x557fc7(0xe5)]('\x20\x20\x20\x20'+_0x49736d[_0x557fc7(0xf0)]());}_0x2dd09f['lines']['length']>0x5&&_0x5d9916[_0x557fc7(0xe5)](_0x557fc7(0xcb)+(_0x2dd09f['lines'][_0x557fc7(0xe9)]-0x5)+_0x557fc7(0xeb));}_0x55de3a[_0x557fc7(0xe9)]>_0x5266fa&&_0x5d9916[_0x557fc7(0xe5)]('\x20\x20...\x20+'+(_0x55de3a[_0x557fc7(0xe9)]-_0x5266fa)+_0x557fc7(0xc8));}return _0x5d9916[_0x557fc7(0xde)]('\x0a');}function filterGoVet(_0x22227d){const _0xb1f432=a0_0xe77a84,_0x168875=_0x22227d['split']('\x0a')[_0xb1f432(0xe3)](_0x5a34ec=>_0x5a34ec[_0xb1f432(0xf0)]()[_0xb1f432(0xe9)]>0x0);if(_0x168875[_0xb1f432(0xe9)]===0x0)return _0xb1f432(0xe1);if(_0x168875[_0xb1f432(0xe9)]<=0x14)return _0x22227d[_0xb1f432(0xf0)]();const _0x3d54cc=[_0xb1f432(0xd6)+_0x168875[_0xb1f432(0xe9)]+_0xb1f432(0xd1)];return _0x3d54cc[_0xb1f432(0xe5)](..._0x168875['slice'](0x0,0xa)),_0x168875['length']>0xa&&_0x3d54cc[_0xb1f432(0xe5)](_0xb1f432(0xd9)+(_0x168875['length']-0xa)+_0xb1f432(0xec)),_0x3d54cc['join']('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x2248(){const _0x2d4078=['lock','897928MtPRRm','npm\x20i\x20','trim\x20pip','filterGoVet','redactWithAudit','filterGitStatus','npm\x20test','cargo\x20clippy','trim\x20kubectl','./js','trim\x20git','filterPipInstall','pattern','filterCargoBuild','./git','6210JYFkQJ','getConfig','tracker','trim\x20pytest','trim','trim\x20npx','__esModule','filterFind','filterCargoTest','whitespace','length','collapseWhitespace','yadm\x20diff','cargo\x20build','trim\x20grep','trim\x20npm','11179mNcvIl','160182cTzkAg','skeleton','trim\x20gh','[lock\x20file]','match','cargo\x20test','pytest','filterGoTest','lines\x20truncated','trim\x20glab','trim\x20ls','./devops','git\x20status','filterGitLog','filterKubectl','push','includes','git\x20log','trim\x20pnpm','ansi_strip','filterDockerLogs','pip\x20install','../redactor','trim\x20tree','filterLs','1487332uDclOQ','lastRedactAudit','redact','ruff\x20check','\x20ls','../tracker','3770QKoMUn','filterDockerImages','yadm\x20log','18kLvDpz','808386mUUbkS','pnpm\x20test','4mqQftA','npm\x20run\x20test','1593220TgsezY','yarn\x20install','softTruncate','json_crusher','filterJestVitest','vitest','filterNpmInstall','kubectl','[minified\x20file]','pnpm\x20install','14MQMIZJ','startsWith','trim\x20go','ruff\x20','collapseDuplicates','text','trim\x20cargo','yarn\x20test','secretTypes','endsWith','\x20tree','lastFeatures','npm\x20install','compressOutput','features_enabled','npm\x20i','trim\x20','[binary','./python','filterCat','filterGitDiff','filter','some','---','defineProperty','cargo\x20check','\x20ls\x20','git\x20show','redactor','secretsFound'];a0_0x2248=function(){return _0x2d4078;};return a0_0x2248();}const a0_0x1c2412=a0_0x1400;(function(_0x141c05,_0x4e18c1){const _0x9df500=a0_0x1400,_0x485e99=_0x141c05();while(!![]){try{const _0x2748d9=parseInt(_0x9df500(0x117))/0x1*(-parseInt(_0x9df500(0x13a))/0x2)+-parseInt(_0x9df500(0x118))/0x3*(parseInt(_0x9df500(0x13d))/0x4)+parseInt(_0x9df500(0x13f))/0x5+-parseInt(_0x9df500(0x13b))/0x6*(parseInt(_0x9df500(0x149))/0x7)+-parseInt(_0x9df500(0xf8))/0x8+parseInt(_0x9df500(0x107))/0x9*(parseInt(_0x9df500(0x137))/0xa)+parseInt(_0x9df500(0x131))/0xb;if(_0x2748d9===_0x4e18c1)break;else _0x485e99['push'](_0x485e99['shift']());}catch(_0x10385e){_0x485e99['push'](_0x485e99['shift']());}}}(a0_0x2248,0x2b866));Object[a0_0x1c2412(0x161)](exports,a0_0x1c2412(0x10d),{'value':!![]}),exports[a0_0x1c2412(0x154)]=exports[a0_0x1c2412(0x132)]=void 0x0,exports[a0_0x1c2412(0x156)]=compressOutput,exports['rewriteCommand']=rewriteCommand;const generic_1=require('./generic'),git_1=require(a0_0x1c2412(0x106)),python_1=require(a0_0x1c2412(0x15b)),js_1=require(a0_0x1c2412(0x101)),shell_1=require('./shell'),rust_1=require('./rust'),go_1=require('./go'),devops_1=require(a0_0x1c2412(0x123)),redactor_1=require(a0_0x1c2412(0x12e)),tracker_1=require(a0_0x1c2412(0x136));exports[a0_0x1c2412(0x132)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x1c2412(0x154)]=[];function isFeatureEnabled(_0xf1d99b){const _0x14f45c=a0_0x1c2412;try{const _0x2959ee=tracker_1[_0x14f45c(0x109)][_0x14f45c(0x108)](),_0x1d8446=_0x2959ee[_0x14f45c(0x157)];if(!_0x1d8446||_0x1d8446[_0xf1d99b]===undefined)return!![];return _0x1d8446[_0xf1d99b]!==![];}catch{return!![];}}function compressOutput(_0x1c4412,_0x209252,_0x1e301d,_0x582300=!![]){const _0x20a4cc=a0_0x1c2412,_0x48a2d7=_0x1c4412['trim']();let _0x58df7f=_0x209252;_0x1e301d[_0x20a4cc(0x10b)]()[_0x20a4cc(0x111)]>0x0&&(_0x58df7f=_0x209252+'\x0a'+_0x1e301d);let _0x575921=isFeatureEnabled(_0x20a4cc(0x12b))?(0x0,generic_1['stripAnsi'])(_0x58df7f):_0x58df7f;const _0xc77eb3=[];if(_0x575921[_0x20a4cc(0x111)]<_0x58df7f[_0x20a4cc(0x111)])_0xc77eb3['push'](_0x20a4cc(0x12b));const _0x1f76c2=(_0x318921,_0x520a03)=>{const _0x178856=_0x20a4cc;return _0xc77eb3['push'](_0x318921),exports[_0x178856(0x154)]=_0xc77eb3,_0x520a03;};if(_0x582300&&isFeatureEnabled(_0x20a4cc(0x133))){const _0x372eb0=redactor_1[_0x20a4cc(0x165)][_0x20a4cc(0xfc)](_0x575921);_0x575921=_0x372eb0[_0x20a4cc(0x14e)],exports[_0x20a4cc(0x132)]={'secretsFound':_0x372eb0[_0x20a4cc(0x166)],'secretTypes':_0x372eb0[_0x20a4cc(0x151)]};if(_0x372eb0[_0x20a4cc(0x166)]>0x0)_0xc77eb3[_0x20a4cc(0x127)]('redact');}else exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]};const _0x497eb4=_0x48a2d7['toLowerCase'](),_0x2305bb=isFeatureEnabled(_0x20a4cc(0x15e));try{if(_0x2305bb){if(_0x497eb4['includes'](_0x20a4cc(0x124))||_0x497eb4[_0x20a4cc(0x128)]('yadm\x20status'))return _0x1f76c2('filter',(0x0,git_1[_0x20a4cc(0xfd)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x129))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x139)))return _0x1f76c2('filter',(0x0,git_1[_0x20a4cc(0x125)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)]('git\x20diff')||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x164))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x113)))return _0x1f76c2('filter',(0x0,git_1[_0x20a4cc(0x15d)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x11e))||_0x497eb4[_0x20a4cc(0x11c)](/python3?\s+-m\s+pytest/))return _0x1f76c2('filter',(0x0,python_1['filterPytest'])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x12d))||_0x497eb4[_0x20a4cc(0x128)]('pip3\x20install'))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,python_1[_0x20a4cc(0x103)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x134))||_0x497eb4['includes'](_0x20a4cc(0x14c)))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,devops_1['filterRuff'])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x155))||_0x497eb4['includes'](_0x20a4cc(0xf9))||_0x497eb4['endsWith'](_0x20a4cc(0x158))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x148))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x140)))return _0x1f76c2('filter',(0x0,js_1[_0x20a4cc(0x145)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)]('jest')||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x144)))return _0x1f76c2('filter',(0x0,js_1[_0x20a4cc(0x143)])(_0x575921));if(_0x497eb4['includes'](_0x20a4cc(0xfe))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x13c))||_0x497eb4['includes'](_0x20a4cc(0x150))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x13e)))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,js_1[_0x20a4cc(0x143)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x11d)))return _0x1f76c2('filter',(0x0,rust_1[_0x20a4cc(0x10f)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x114))||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x162))||_0x497eb4['includes'](_0x20a4cc(0xff)))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,rust_1[_0x20a4cc(0x105)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)]('go\x20test'))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,go_1[_0x20a4cc(0x11f)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)]('go\x20vet'))return _0x1f76c2('filter',(0x0,go_1[_0x20a4cc(0xfb)])(_0x575921));if(_0x497eb4['match'](/docker\s+ps/))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,devops_1['filterDockerPs'])(_0x575921));if(_0x497eb4[_0x20a4cc(0x11c)](/docker\s+images/))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,devops_1[_0x20a4cc(0x138)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x11c)](/docker\s+logs/))return _0x1f76c2('filter',(0x0,devops_1[_0x20a4cc(0x12c)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x146))){const _0x4715ab=_0x497eb4[_0x20a4cc(0x11c)](/kubectl\s+(get|logs|describe|apply)/),_0x5c0add=_0x4715ab?_0x4715ab[0x1]:'get';return _0x1f76c2(_0x20a4cc(0x15e),(0x0,devops_1[_0x20a4cc(0x126)])(_0x575921,_0x5c0add));}if(_0x497eb4[_0x20a4cc(0x11c)](/^(ls|dir)(\s|$)/)||_0x497eb4[_0x20a4cc(0x128)](_0x20a4cc(0x163))||_0x497eb4[_0x20a4cc(0x152)](_0x20a4cc(0x135)))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,shell_1[_0x20a4cc(0x130)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x11c)](/^tree(\s|$)/)||_0x497eb4[_0x20a4cc(0x128)]('\x20tree\x20')||_0x497eb4['endsWith'](_0x20a4cc(0x153)))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,shell_1['filterTree'])(_0x575921));if(_0x497eb4[_0x20a4cc(0x11c)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x43c18a=(0x0,shell_1[_0x20a4cc(0x15c)])(_0x575921,_0x48a2d7);if(_0x43c18a[_0x20a4cc(0x128)](_0x20a4cc(0x11b)))_0xc77eb3[_0x20a4cc(0x127)](_0x20a4cc(0x167));else{if(_0x43c18a[_0x20a4cc(0x128)](_0x20a4cc(0x15a))||_0x43c18a['includes'](_0x20a4cc(0x147)))_0xc77eb3['push']('binary');else{if(_0x43c18a[_0x20a4cc(0x128)]('[code\x20skeleton]'))_0xc77eb3[_0x20a4cc(0x127)](_0x20a4cc(0x119));else{if(_0x43c18a[_0x20a4cc(0x128)]('|\x20')&&_0x43c18a['includes'](_0x20a4cc(0x160))&&_0x43c18a[_0x20a4cc(0x111)]<_0x575921['length']*0.5)_0xc77eb3[_0x20a4cc(0x127)](_0x20a4cc(0x142));else{if(_0x43c18a[_0x20a4cc(0x128)](_0x20a4cc(0x120)))_0xc77eb3[_0x20a4cc(0x127)](_0x20a4cc(0x15e));}}}}if(_0x43c18a[_0x20a4cc(0x111)]<_0x575921[_0x20a4cc(0x111)]&&!_0xc77eb3[_0x20a4cc(0x15f)](_0x25892f=>_0x25892f!==_0x20a4cc(0x12b)&&_0x25892f!==_0x20a4cc(0x133)))_0xc77eb3[_0x20a4cc(0x127)](_0x20a4cc(0x15e));return exports[_0x20a4cc(0x154)]=_0xc77eb3,_0x43c18a;}if(_0x497eb4[_0x20a4cc(0x11c)](/^find(\s|$)/))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,shell_1[_0x20a4cc(0x10e)])(_0x575921));if(_0x497eb4[_0x20a4cc(0x11c)](/^(grep|rg|ripgrep)(\s|$)/))return _0x1f76c2(_0x20a4cc(0x15e),(0x0,shell_1['filterGrep'])(_0x575921));}}catch(_0x536276){}return isFeatureEnabled(_0x20a4cc(0x110))&&(_0x575921=(0x0,generic_1[_0x20a4cc(0x112)])(_0x575921),_0xc77eb3[_0x20a4cc(0x127)](_0x20a4cc(0x110))),_0x575921=(0x0,generic_1[_0x20a4cc(0x14d)])(_0x575921),_0x575921=(0x0,generic_1[_0x20a4cc(0x141)])(_0x575921,0x4e20),exports[_0x20a4cc(0x154)]=_0xc77eb3,_0x575921;}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_0x1c2412(0x102)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x1c2412(0x11a)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x1c2412(0x121)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x1c2412(0x14f)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x1c2412(0x12a)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x1c2412(0x116)},{'pattern':/^npx\s+/,'prefix':a0_0x1c2412(0x10c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x1c2412(0x115)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x1c2412(0x122)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x1c2412(0x12f)},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x1c2412(0x100)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x1c2412(0x10a)},{'pattern':/^ruff\s+(check|format)/,'prefix':'trim\x20ruff'},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x1c2412(0xfa)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x1c2412(0x14b)}];function a0_0x1400(_0x296e42,_0x55931e){_0x296e42=_0x296e42-0xf8;const _0x2248ab=a0_0x2248();let _0x1400e0=_0x2248ab[_0x296e42];return _0x1400e0;}function rewriteCommand(_0x543955){const _0x1d1b83=a0_0x1c2412,_0x49abc3=_0x543955['trim']();if(_0x49abc3[_0x1d1b83(0x14a)](_0x1d1b83(0x159)))return _0x49abc3;for(const _0x14169f of REWRITE_RULES){if(_0x14169f[_0x1d1b83(0x104)]['test'](_0x49abc3))return'trim\x20'+_0x49abc3;}return _0x49abc3;}
1
+ 'use strict';const a0_0x5b53fa=a0_0x1fea;(function(_0x2ee08e,_0x27c3c1){const _0x246fd7=a0_0x1fea,_0x26e15a=_0x2ee08e();while(!![]){try{const _0x45a087=parseInt(_0x246fd7(0x20d))/0x1+-parseInt(_0x246fd7(0x1cf))/0x2*(-parseInt(_0x246fd7(0x1d2))/0x3)+-parseInt(_0x246fd7(0x1e0))/0x4+-parseInt(_0x246fd7(0x215))/0x5*(parseInt(_0x246fd7(0x1eb))/0x6)+-parseInt(_0x246fd7(0x1ae))/0x7*(-parseInt(_0x246fd7(0x1d0))/0x8)+parseInt(_0x246fd7(0x210))/0x9+-parseInt(_0x246fd7(0x1ff))/0xa*(parseInt(_0x246fd7(0x1f1))/0xb);if(_0x45a087===_0x27c3c1)break;else _0x26e15a['push'](_0x26e15a['shift']());}catch(_0x1845ad){_0x26e15a['push'](_0x26e15a['shift']());}}}(a0_0x3c2d,0xd8449));Object[a0_0x5b53fa(0x1ef)](exports,'__esModule',{'value':!![]}),exports[a0_0x5b53fa(0x1f7)]=exports[a0_0x5b53fa(0x1c3)]=void 0x0,exports[a0_0x5b53fa(0x1c0)]=compressOutput,exports['rewriteCommand']=rewriteCommand;const generic_1=require(a0_0x5b53fa(0x1b6)),git_1=require(a0_0x5b53fa(0x1bd)),python_1=require(a0_0x5b53fa(0x1e6)),js_1=require(a0_0x5b53fa(0x212)),shell_1=require(a0_0x5b53fa(0x1f2)),rust_1=require('./rust'),go_1=require('./go'),devops_1=require(a0_0x5b53fa(0x1dd)),redactor_1=require('../redactor'),tracker_1=require(a0_0x5b53fa(0x20b));exports[a0_0x5b53fa(0x1c3)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x5b53fa(0x1f7)]=[];function isFeatureEnabled(_0x373ae8){const _0xf96cba=a0_0x5b53fa;try{const _0x443221=tracker_1[_0xf96cba(0x1f0)][_0xf96cba(0x1df)](),_0x13be10=_0x443221[_0xf96cba(0x1c1)];if(!_0x13be10||_0x13be10[_0x373ae8]===undefined)return!![];return _0x13be10[_0x373ae8]!==![];}catch{return!![];}}function a0_0x3c2d(){const _0x4375c0=['collapseDuplicates','filterKubectl','npm\x20i\x20','./git','trim\x20docker','cargo\x20check','compressOutput','features_enabled','redactor','lastRedactAudit','pnpm\x20install','filterFind','filterGoVet','json_crusher','yarn\x20install','trim\x20pnpm','npm\x20test','filterGrep','trim\x20npx','trim\x20kubectl','stripAnsi','582WHFbgi','112mlGNww','trim\x20go','15669WTcdqR','trim\x20git','trim\x20read','whitespace','text','push','softTruncate','filterCargoBuild','includes','pip\x20install','get','./devops','trim\x20find','getConfig','2504360pEdxri','---','filter','filterJestVitest','pnpm\x20test','ruff\x20','./python','trim\x20ruff','pytest','go\x20test','endsWith','36tdbGhJ','trim\x20grep','filterPipInstall','yadm\x20log','defineProperty','tracker','11RDjOhi','./shell','redact','[lock\x20file]','redactWithAudit','filterNpmInstall','lastFeatures','trim\x20','trim','filterDockerLogs','git\x20diff','[binary','trim\x20cargo','filterDockerImages','8177090PXURHc','trim\x20npm','cargo\x20build','filterLs','length','jest','[code\x20skeleton]','filterCat','startsWith','git\x20show','trim\x20ls','trim\x20glab','../tracker','[minified\x20file]','565394zOyOwf','yadm\x20status','vitest','5363793dqHeBl','filterGitDiff','./js','collapseWhitespace','trim\x20tree','530420WzGnxj','match','ansi_strip','kubectl','skeleton','secretsFound','142436mkWhGs','git\x20log','filterGitLog','trim\x20pytest','filterRuff','trim\x20pip','yarn\x20test','go\x20vet','./generic','toLowerCase','\x20ls\x20','git\x20status'];a0_0x3c2d=function(){return _0x4375c0;};return a0_0x3c2d();}function compressOutput(_0x2bf5b1,_0x3ee989,_0x2c8d2e,_0x49d903=!![]){const _0x3f5371=a0_0x5b53fa,_0x3df028=_0x2bf5b1[_0x3f5371(0x1f9)]();let _0x3ad58c=_0x3ee989;_0x2c8d2e[_0x3f5371(0x1f9)]()['length']>0x0&&(_0x3ad58c=_0x3ee989+'\x0a'+_0x2c8d2e);let _0x3d4043=isFeatureEnabled(_0x3f5371(0x217))?(0x0,generic_1[_0x3f5371(0x1ce)])(_0x3ad58c):_0x3ad58c;const _0x542f37=[];if(_0x3d4043[_0x3f5371(0x203)]<_0x3ad58c[_0x3f5371(0x203)])_0x542f37['push'](_0x3f5371(0x217));const _0x9c9521=(_0x52b2f1,_0x59aa38)=>{const _0x331c38=_0x3f5371;return _0x542f37[_0x331c38(0x1d7)](_0x52b2f1),exports[_0x331c38(0x1f7)]=_0x542f37,_0x59aa38;};if(_0x49d903&&isFeatureEnabled(_0x3f5371(0x1f3))){const _0x363eab=redactor_1[_0x3f5371(0x1c2)][_0x3f5371(0x1f5)](_0x3d4043);_0x3d4043=_0x363eab[_0x3f5371(0x1d6)],exports[_0x3f5371(0x1c3)]={'secretsFound':_0x363eab[_0x3f5371(0x1ad)],'secretTypes':_0x363eab['secretTypes']};if(_0x363eab['secretsFound']>0x0)_0x542f37[_0x3f5371(0x1d7)](_0x3f5371(0x1f3));}else exports[_0x3f5371(0x1c3)]={'secretsFound':0x0,'secretTypes':[]};const _0x5c68bf=_0x3df028[_0x3f5371(0x1b7)](),_0x2c764c=isFeatureEnabled(_0x3f5371(0x1e2));try{if(_0x2c764c){if(_0x5c68bf['includes'](_0x3f5371(0x1b9))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x20e)))return _0x9c9521('filter',(0x0,git_1['filterGitStatus'])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1af))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1ee)))return _0x9c9521('filter',(0x0,git_1[_0x3f5371(0x1b0)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1fb))||_0x5c68bf['includes'](_0x3f5371(0x208))||_0x5c68bf[_0x3f5371(0x1da)]('yadm\x20diff'))return _0x9c9521(_0x3f5371(0x1e2),(0x0,git_1[_0x3f5371(0x211)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1e8))||_0x5c68bf[_0x3f5371(0x216)](/python3?\s+-m\s+pytest/))return _0x9c9521('filter',(0x0,python_1['filterPytest'])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1db))||_0x5c68bf[_0x3f5371(0x1da)]('pip3\x20install'))return _0x9c9521('filter',(0x0,python_1[_0x3f5371(0x1ed)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)]('ruff\x20check')||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1e5)))return _0x9c9521(_0x3f5371(0x1e2),(0x0,devops_1[_0x3f5371(0x1b2)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)]('npm\x20install')||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1bc))||_0x5c68bf['endsWith']('npm\x20i')||_0x5c68bf['includes'](_0x3f5371(0x1c4))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1c8)))return _0x9c9521(_0x3f5371(0x1e2),(0x0,js_1[_0x3f5371(0x1f6)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x204))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x20f)))return _0x9c9521(_0x3f5371(0x1e2),(0x0,js_1['filterJestVitest'])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1ca))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1e4))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1b4))||_0x5c68bf[_0x3f5371(0x1da)]('npm\x20run\x20test'))return _0x9c9521(_0x3f5371(0x1e2),(0x0,js_1[_0x3f5371(0x1e3)])(_0x3d4043));if(_0x5c68bf['includes']('cargo\x20test'))return _0x9c9521(_0x3f5371(0x1e2),(0x0,rust_1['filterCargoTest'])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x201))||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1bf))||_0x5c68bf[_0x3f5371(0x1da)]('cargo\x20clippy'))return _0x9c9521(_0x3f5371(0x1e2),(0x0,rust_1[_0x3f5371(0x1d9)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1e9)))return _0x9c9521(_0x3f5371(0x1e2),(0x0,go_1['filterGoTest'])(_0x3d4043));if(_0x5c68bf['includes'](_0x3f5371(0x1b5)))return _0x9c9521(_0x3f5371(0x1e2),(0x0,go_1[_0x3f5371(0x1c6)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x216)](/docker\s+ps/))return _0x9c9521(_0x3f5371(0x1e2),(0x0,devops_1['filterDockerPs'])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x216)](/docker\s+images/))return _0x9c9521(_0x3f5371(0x1e2),(0x0,devops_1[_0x3f5371(0x1fe)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x216)](/docker\s+logs/))return _0x9c9521(_0x3f5371(0x1e2),(0x0,devops_1[_0x3f5371(0x1fa)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1ab))){const _0x2f0cdf=_0x5c68bf[_0x3f5371(0x216)](/kubectl\s+(get|logs|describe|apply)/),_0x42223b=_0x2f0cdf?_0x2f0cdf[0x1]:_0x3f5371(0x1dc);return _0x9c9521(_0x3f5371(0x1e2),(0x0,devops_1[_0x3f5371(0x1bb)])(_0x3d4043,_0x42223b));}if(_0x5c68bf[_0x3f5371(0x216)](/^(ls|dir)(\s|$)/)||_0x5c68bf[_0x3f5371(0x1da)](_0x3f5371(0x1b8))||_0x5c68bf[_0x3f5371(0x1ea)]('\x20ls'))return _0x9c9521(_0x3f5371(0x1e2),(0x0,shell_1[_0x3f5371(0x202)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x216)](/^tree(\s|$)/)||_0x5c68bf[_0x3f5371(0x1da)]('\x20tree\x20')||_0x5c68bf[_0x3f5371(0x1ea)]('\x20tree'))return _0x9c9521(_0x3f5371(0x1e2),(0x0,shell_1['filterTree'])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x216)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x4300c8=(0x0,shell_1[_0x3f5371(0x206)])(_0x3d4043,_0x3df028);if(_0x4300c8[_0x3f5371(0x1da)](_0x3f5371(0x1f4)))_0x542f37[_0x3f5371(0x1d7)]('lock');else{if(_0x4300c8[_0x3f5371(0x1da)](_0x3f5371(0x1fc))||_0x4300c8[_0x3f5371(0x1da)](_0x3f5371(0x20c)))_0x542f37[_0x3f5371(0x1d7)]('binary');else{if(_0x4300c8['includes'](_0x3f5371(0x205)))_0x542f37[_0x3f5371(0x1d7)](_0x3f5371(0x1ac));else{if(_0x4300c8['includes']('|\x20')&&_0x4300c8[_0x3f5371(0x1da)](_0x3f5371(0x1e1))&&_0x4300c8['length']<_0x3d4043[_0x3f5371(0x203)]*0.5)_0x542f37[_0x3f5371(0x1d7)](_0x3f5371(0x1c7));else{if(_0x4300c8[_0x3f5371(0x1da)]('lines\x20truncated'))_0x542f37['push'](_0x3f5371(0x1e2));}}}}if(_0x4300c8[_0x3f5371(0x203)]<_0x3d4043[_0x3f5371(0x203)]&&!_0x542f37['some'](_0x11efec=>_0x11efec!==_0x3f5371(0x217)&&_0x11efec!==_0x3f5371(0x1f3)))_0x542f37[_0x3f5371(0x1d7)]('filter');return exports['lastFeatures']=_0x542f37,_0x4300c8;}if(_0x5c68bf[_0x3f5371(0x216)](/^find(\s|$)/))return _0x9c9521(_0x3f5371(0x1e2),(0x0,shell_1[_0x3f5371(0x1c5)])(_0x3d4043));if(_0x5c68bf[_0x3f5371(0x216)](/^(grep|rg|ripgrep)(\s|$)/))return _0x9c9521('filter',(0x0,shell_1[_0x3f5371(0x1cb)])(_0x3d4043));}}catch(_0xeae8c3){}return isFeatureEnabled('whitespace')&&(_0x3d4043=(0x0,generic_1[_0x3f5371(0x213)])(_0x3d4043),_0x542f37[_0x3f5371(0x1d7)](_0x3f5371(0x1d5))),_0x3d4043=(0x0,generic_1[_0x3f5371(0x1ba)])(_0x3d4043),_0x3d4043=(0x0,generic_1[_0x3f5371(0x1d8)])(_0x3d4043,0x4e20),exports[_0x3f5371(0x1f7)]=_0x542f37,_0x3d4043;}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_0x5b53fa(0x1d3)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x5b53fa(0x20a)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x5b53fa(0x1fd)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x5b53fa(0x1c9)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x5b53fa(0x200)},{'pattern':/^npx\s+/,'prefix':a0_0x5b53fa(0x1cc)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x5b53fa(0x1d4)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x5b53fa(0x1ec)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x5b53fa(0x209)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x5b53fa(0x214)},{'pattern':/^find\s+/,'prefix':a0_0x5b53fa(0x1de)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x5b53fa(0x1be)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x5b53fa(0x1cd)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x5b53fa(0x1b1)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x5b53fa(0x1e7)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x5b53fa(0x1b3)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x5b53fa(0x1d1)}];function a0_0x1fea(_0x4d5b26,_0x31cdf2){_0x4d5b26=_0x4d5b26-0x1ab;const _0x3c2de6=a0_0x3c2d();let _0x1fea74=_0x3c2de6[_0x4d5b26];return _0x1fea74;}function rewriteCommand(_0x3be6f4){const _0x44e764=a0_0x5b53fa,_0xd70594=_0x3be6f4[_0x44e764(0x1f9)]();if(_0xd70594[_0x44e764(0x207)](_0x44e764(0x1f8)))return _0xd70594;for(const _0x493b85 of REWRITE_RULES){if(_0x493b85['pattern']['test'](_0xd70594))return'trim\x20'+_0xd70594;}return _0xd70594;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x409b(_0x44942d,_0x13be9b){_0x44942d=_0x44942d-0xc3;const _0x2d5e24=a0_0x2d5e();let _0x409b21=_0x2d5e24[_0x44942d];return _0x409b21;}const a0_0x95a2da=a0_0x409b;function a0_0x2d5e(){const _0x24f7a3=['4249vIfPct','removed\x20','added\x20','Tests:','found\x20','__esModule','PASS','11889GlEijA','305xkExRu','trim','includes','all','filterJestVitest','audited\x20','629256gVenxJ','filterNpmInstall','join','NPM:\x20Packages\x20verified/installed\x20successfully','Test\x20Runner:\x20','\x20passed','\x0aFailures:','slice','split','\x20lines\x20of\x20trace\x20details\x20truncated)','1898128RLsqLX','2634cgqrBj','Test\x20Files:','replace','878769pWvMJp','FAIL','length','push','137512aInBhO','startsWith','25388rPbnzL','up\x20to\x20date','Test\x20Suites:','match','4430GJFqSw'];a0_0x2d5e=function(){return _0x24f7a3;};return a0_0x2d5e();}(function(_0x2f05ec,_0x1f4aa3){const _0x461270=a0_0x409b,_0x42b8b6=_0x2f05ec();while(!![]){try{const _0x2ae56c=parseInt(_0x461270(0xe2))/0x1+-parseInt(_0x461270(0xd0))/0x2+-parseInt(_0x461270(0xde))/0x3+-parseInt(_0x461270(0xe4))/0x4*(parseInt(_0x461270(0xca))/0x5)+parseInt(_0x461270(0xdb))/0x6*(parseInt(_0x461270(0xe9))/0x7)+parseInt(_0x461270(0xda))/0x8+parseInt(_0x461270(0xc9))/0x9*(parseInt(_0x461270(0xe8))/0xa);if(_0x2ae56c===_0x1f4aa3)break;else _0x42b8b6['push'](_0x42b8b6['shift']());}catch(_0x50b220){_0x42b8b6['push'](_0x42b8b6['shift']());}}}(a0_0x2d5e,0x38938));Object['defineProperty'](exports,a0_0x95a2da(0xc7),{'value':!![]}),exports[a0_0x95a2da(0xd1)]=filterNpmInstall,exports[a0_0x95a2da(0xce)]=filterJestVitest;function filterNpmInstall(_0x5bee8a){const _0x5bc5a9=a0_0x95a2da,_0x1351bc=_0x5bee8a[_0x5bc5a9(0xdd)](/\r/g,'\x0a'),_0x4be4f4=_0x1351bc[_0x5bc5a9(0xd8)]('\x0a'),_0x2ea20d=[];for(const _0x30056d of _0x4be4f4){const _0xeeefc2=_0x30056d[_0x5bc5a9(0xcb)]();(_0xeeefc2[_0x5bc5a9(0xcc)](_0x5bc5a9(0xc4))||_0xeeefc2[_0x5bc5a9(0xcc)](_0x5bc5a9(0xc3))||_0xeeefc2[_0x5bc5a9(0xcc)](_0x5bc5a9(0xcf))||_0xeeefc2[_0x5bc5a9(0xcc)](_0x5bc5a9(0xe5))||_0xeeefc2[_0x5bc5a9(0xcc)](_0x5bc5a9(0xc6)))&&(!_0xeeefc2[_0x5bc5a9(0xcc)]('%')&&!_0xeeefc2[_0x5bc5a9(0xe3)]('⠋')&&!_0xeeefc2['startsWith']('⠙')&&_0x2ea20d[_0x5bc5a9(0xe1)](_0xeeefc2));}const _0x55dee6=_0x2ea20d[_0x5bc5a9(0xd2)]('\x0a')['trim']();return _0x55dee6[_0x5bc5a9(0xe0)]>0x0?_0x55dee6:_0x5bc5a9(0xd3);}function filterJestVitest(_0x3857b4){const _0x83605e=a0_0x95a2da,_0x34b7e9=_0x3857b4[_0x83605e(0xd8)]('\x0a');let _0x1cdfad=0x0,_0xc2d0a3=0x0,_0xa416d7=0x0;const _0xa2e9c6=[];let _0x5b53a6=![];for(const _0x4219b1 of _0x34b7e9){const _0x470897=_0x4219b1[_0x83605e(0xcb)]();if(_0x470897[_0x83605e(0xe3)](_0x83605e(0xc5))||_0x470897[_0x83605e(0xcc)](_0x83605e(0xdc))){const _0x5ada20=_0x470897[_0x83605e(0xe7)](/(\d+)\s+passed/),_0x4ca1e5=_0x470897[_0x83605e(0xe7)](/(\d+)\s+failed/),_0x5e2968=_0x470897[_0x83605e(0xe7)](/(\d+)\s+total/);if(_0x5ada20)_0x1cdfad=parseInt(_0x5ada20[0x1]);if(_0x4ca1e5)_0xc2d0a3=parseInt(_0x4ca1e5[0x1]);if(_0x5e2968)_0xa416d7=parseInt(_0x5e2968[0x1]);continue;}(_0x470897['startsWith']('❯')||_0x470897['startsWith']('●')||_0x470897[_0x83605e(0xe3)]('FAIL\x20\x20'))&&(_0x5b53a6=!![]),_0x5b53a6&&(_0x470897['length']>0x0&&!_0x470897['startsWith'](_0x83605e(0xe6))&&!_0x470897[_0x83605e(0xe3)](_0x83605e(0xc5))&&_0xa2e9c6[_0x83605e(0xe1)](_0x4219b1));}if(_0xa416d7===0x0&&_0x1cdfad===0x0&&_0xc2d0a3===0x0){if(_0x3857b4[_0x83605e(0xcc)](_0x83605e(0xc8))&&!_0x3857b4[_0x83605e(0xcc)](_0x83605e(0xdf))){const _0x1eb801=_0x3857b4[_0x83605e(0xe7)](/(\d+)\s+passed/),_0x20b196=_0x1eb801?_0x1eb801[0x1]:_0x83605e(0xcd);return'Test\x20Runner:\x20'+_0x20b196+'\x20passed';}return _0x3857b4;}if(_0xc2d0a3===0x0&&_0x1cdfad>0x0)return _0x83605e(0xd4)+_0x1cdfad+_0x83605e(0xd5);const _0x356ce8=[_0x83605e(0xd4)+_0x1cdfad+'\x20passed,\x20'+_0xc2d0a3+'\x20failed\x20('+_0xa416d7+'\x20total)'];if(_0xa2e9c6[_0x83605e(0xe0)]>0x0){_0x356ce8[_0x83605e(0xe1)](_0x83605e(0xd6));const _0x313070=0x19,_0xdc57c=_0xa2e9c6[_0x83605e(0xd7)](0x0,_0x313070);for(const _0x38151f of _0xdc57c){_0x356ce8[_0x83605e(0xe1)]('\x20\x20'+_0x38151f);}_0xa2e9c6[_0x83605e(0xe0)]>_0x313070&&_0x356ce8['push']('\x20\x20...\x20('+(_0xa2e9c6[_0x83605e(0xe0)]-_0x313070)+_0x83605e(0xd9));}return _0x356ce8[_0x83605e(0xd2)]('\x0a');}
1
+ 'use strict';const a0_0xded206=a0_0x49f1;(function(_0x895d78,_0x78aa66){const _0x1d09f1=a0_0x49f1,_0x1dcf9d=_0x895d78();while(!![]){try{const _0x5ab481=-parseInt(_0x1d09f1(0xe5))/0x1*(parseInt(_0x1d09f1(0xdc))/0x2)+parseInt(_0x1d09f1(0xc7))/0x3*(-parseInt(_0x1d09f1(0xcc))/0x4)+-parseInt(_0x1d09f1(0xe0))/0x5+parseInt(_0x1d09f1(0xd3))/0x6+parseInt(_0x1d09f1(0xc2))/0x7+-parseInt(_0x1d09f1(0xd7))/0x8*(-parseInt(_0x1d09f1(0xbe))/0x9)+-parseInt(_0x1d09f1(0xd6))/0xa*(parseInt(_0x1d09f1(0xe2))/0xb);if(_0x5ab481===_0x78aa66)break;else _0x1dcf9d['push'](_0x1dcf9d['shift']());}catch(_0x23ff7b){_0x1dcf9d['push'](_0x1dcf9d['shift']());}}}(a0_0x393b,0x7dfb7));function a0_0x393b(){const _0x33572e=['trim','defineProperty','\x20total)','33345ENvizm','all','2500894oPwCZX','push','Tests:','971CVOqmW','\x20passed','audited\x20','72vCOYHk','Test\x20Runner:\x20','FAIL\x20\x20','length','6955690GKdnQg','\x20\x20...\x20(','FAIL','join','NPM:\x20Packages\x20verified/installed\x20successfully','1170AKeUlc','removed\x20','includes','match','\x20failed\x20(','124fLwnRT','up\x20to\x20date','__esModule','startsWith','split','\x20lines\x20of\x20trace\x20details\x20truncated)','added\x20','2335032vxLMMT','replace','PASS','70PhSAYF','885184UvoFPD','Test\x20Files:','filterNpmInstall','filterJestVitest','\x0aFailures:','292aOCZVR'];a0_0x393b=function(){return _0x33572e;};return a0_0x393b();}Object[a0_0xded206(0xde)](exports,a0_0xded206(0xce),{'value':!![]}),exports[a0_0xded206(0xd9)]=filterNpmInstall,exports[a0_0xded206(0xda)]=filterJestVitest;function filterNpmInstall(_0xecd040){const _0x9edb63=a0_0xded206,_0x242a4b=_0xecd040[_0x9edb63(0xd4)](/\r/g,'\x0a'),_0x492617=_0x242a4b[_0x9edb63(0xd0)]('\x0a'),_0x58ec83=[];for(const _0x4084b2 of _0x492617){const _0x3ff3f9=_0x4084b2[_0x9edb63(0xdd)]();(_0x3ff3f9[_0x9edb63(0xc9)](_0x9edb63(0xd2))||_0x3ff3f9[_0x9edb63(0xc9)](_0x9edb63(0xc8))||_0x3ff3f9[_0x9edb63(0xc9)](_0x9edb63(0xbd))||_0x3ff3f9['includes'](_0x9edb63(0xcd))||_0x3ff3f9[_0x9edb63(0xc9)]('found\x20'))&&(!_0x3ff3f9['includes']('%')&&!_0x3ff3f9[_0x9edb63(0xcf)]('⠋')&&!_0x3ff3f9[_0x9edb63(0xcf)]('⠙')&&_0x58ec83[_0x9edb63(0xe3)](_0x3ff3f9));}const _0x4e8d24=_0x58ec83[_0x9edb63(0xc5)]('\x0a')[_0x9edb63(0xdd)]();return _0x4e8d24[_0x9edb63(0xc1)]>0x0?_0x4e8d24:_0x9edb63(0xc6);}function a0_0x49f1(_0x2588dd,_0x4b0291){_0x2588dd=_0x2588dd-0xbc;const _0x393b5f=a0_0x393b();let _0x49f1c3=_0x393b5f[_0x2588dd];return _0x49f1c3;}function filterJestVitest(_0x51b10c){const _0x44fdce=a0_0xded206,_0x488be2=_0x51b10c[_0x44fdce(0xd0)]('\x0a');let _0x133bbf=0x0,_0x3df2e9=0x0,_0xc4a51a=0x0;const _0x3d625c=[];let _0x5df5d5=![];for(const _0x50941b of _0x488be2){const _0x10db8e=_0x50941b[_0x44fdce(0xdd)]();if(_0x10db8e[_0x44fdce(0xcf)](_0x44fdce(0xe4))||_0x10db8e['includes'](_0x44fdce(0xd8))){const _0x89b1cb=_0x10db8e[_0x44fdce(0xca)](/(\d+)\s+passed/),_0x27c70a=_0x10db8e[_0x44fdce(0xca)](/(\d+)\s+failed/),_0x593384=_0x10db8e[_0x44fdce(0xca)](/(\d+)\s+total/);if(_0x89b1cb)_0x133bbf=parseInt(_0x89b1cb[0x1]);if(_0x27c70a)_0x3df2e9=parseInt(_0x27c70a[0x1]);if(_0x593384)_0xc4a51a=parseInt(_0x593384[0x1]);continue;}(_0x10db8e['startsWith']('❯')||_0x10db8e[_0x44fdce(0xcf)]('●')||_0x10db8e[_0x44fdce(0xcf)](_0x44fdce(0xc0)))&&(_0x5df5d5=!![]),_0x5df5d5&&(_0x10db8e['length']>0x0&&!_0x10db8e[_0x44fdce(0xcf)]('Test\x20Suites:')&&!_0x10db8e[_0x44fdce(0xcf)](_0x44fdce(0xe4))&&_0x3d625c[_0x44fdce(0xe3)](_0x50941b));}if(_0xc4a51a===0x0&&_0x133bbf===0x0&&_0x3df2e9===0x0){if(_0x51b10c[_0x44fdce(0xc9)](_0x44fdce(0xd5))&&!_0x51b10c[_0x44fdce(0xc9)](_0x44fdce(0xc4))){const _0x2f958d=_0x51b10c[_0x44fdce(0xca)](/(\d+)\s+passed/),_0x2bf35f=_0x2f958d?_0x2f958d[0x1]:_0x44fdce(0xe1);return _0x44fdce(0xbf)+_0x2bf35f+_0x44fdce(0xbc);}return _0x51b10c;}if(_0x3df2e9===0x0&&_0x133bbf>0x0)return'Test\x20Runner:\x20'+_0x133bbf+'\x20passed';const _0xd54553=['Test\x20Runner:\x20'+_0x133bbf+'\x20passed,\x20'+_0x3df2e9+_0x44fdce(0xcb)+_0xc4a51a+_0x44fdce(0xdf)];if(_0x3d625c[_0x44fdce(0xc1)]>0x0){_0xd54553[_0x44fdce(0xe3)](_0x44fdce(0xdb));const _0x554b33=0x19,_0x301bd4=_0x3d625c['slice'](0x0,_0x554b33);for(const _0x55873d of _0x301bd4){_0xd54553[_0x44fdce(0xe3)]('\x20\x20'+_0x55873d);}_0x3d625c[_0x44fdce(0xc1)]>_0x554b33&&_0xd54553['push'](_0x44fdce(0xc3)+(_0x3d625c[_0x44fdce(0xc1)]-_0x554b33)+_0x44fdce(0xd1));}return _0xd54553[_0x44fdce(0xc5)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x156009=a0_0xba9f;(function(_0xa1cc72,_0x2880df){const _0x3f0cf4=a0_0xba9f,_0x41f13d=_0xa1cc72();while(!![]){try{const _0xf4f68b=parseInt(_0x3f0cf4(0x6a))/0x1*(parseInt(_0x3f0cf4(0x6b))/0x2)+-parseInt(_0x3f0cf4(0x87))/0x3+parseInt(_0x3f0cf4(0x7f))/0x4+-parseInt(_0x3f0cf4(0x74))/0x5*(-parseInt(_0x3f0cf4(0x85))/0x6)+-parseInt(_0x3f0cf4(0x8e))/0x7*(-parseInt(_0x3f0cf4(0x7c))/0x8)+-parseInt(_0x3f0cf4(0x82))/0x9+parseInt(_0x3f0cf4(0x90))/0xa*(-parseInt(_0x3f0cf4(0x93))/0xb);if(_0xf4f68b===_0x2880df)break;else _0x41f13d['push'](_0x41f13d['shift']());}catch(_0x7fc1d5){_0x41f13d['push'](_0x41f13d['shift']());}}}(a0_0x1b5e,0xda03a));function a0_0x1b5e(){const _0x4e80f6=['length','\x20xpassed\x20(warning!)','6QsReRK','startsWith','3093261lgKomf','Requirement\x20already\x20satisfied','join','\x20failed','filterPytest','Pytest:\x20','filter','7MDHhmY','includes','2929690NLrOsu','\x20passed','===\x20FAILURES\x20===','77VxUOrj','replace','split','\x20\x20...\x20+','1uqCEtl','1806594nzZWGN','\x0aFailures:','failed','defineProperty','slice','trim','===\x20short\x20test\x20summary\x20info\x20===','___','\x20skipped','5349695eLLBBK','Using\x20cached','push','\x20xfailed','\x20\x20\x20\x20...\x20(','Collecting','match','\x20lines\x20of\x20stacktrace\x20truncated)','7689312Dofisu','Successfully\x20installed','passed','4711040MUimUW','.\x20[FAIL]\x20','.py:','1235736XrqNhE'];a0_0x1b5e=function(){return _0x4e80f6;};return a0_0x1b5e();}function a0_0xba9f(_0x41d845,_0x297df8){_0x41d845=_0x41d845-0x67;const _0x1b5ea3=a0_0x1b5e();let _0xba9fa1=_0x1b5ea3[_0x41d845];return _0xba9fa1;}Object[a0_0x156009(0x6e)](exports,'__esModule',{'value':!![]}),exports[a0_0x156009(0x8b)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x1fc548){const _0x4b6b9c=a0_0x156009,_0x5ef9b6=_0x1fc548[_0x4b6b9c(0x68)]('\x0a');let _0x1044b0=0x0,_0x498ed9=0x0,_0x467523=0x0,_0x481c0c=0x0,_0x4e7fa4=0x0;const _0x499a46=[];let _0x11954a=[],_0x39c487=![];for(const _0xc0a4ef of _0x5ef9b6){const _0x5607b7=_0xc0a4ef['trim']();if(_0x5607b7['startsWith'](_0x4b6b9c(0x92))||_0x5607b7['startsWith']('===\x20ERRORS\x20===')){_0x39c487=!![];continue;}else(_0x5607b7[_0x4b6b9c(0x86)](_0x4b6b9c(0x71))||_0x5607b7['startsWith']('===')&&_0x5607b7[_0x4b6b9c(0x8f)](_0x4b6b9c(0x7e)))&&(_0x39c487=![],_0x11954a[_0x4b6b9c(0x83)]>0x0&&(_0x499a46[_0x4b6b9c(0x76)](_0x11954a),_0x11954a=[]));if(_0x39c487){if(_0x5607b7[_0x4b6b9c(0x86)](_0x4b6b9c(0x72)))_0x11954a['length']>0x0&&(_0x499a46['push'](_0x11954a),_0x11954a=[]),_0x11954a[_0x4b6b9c(0x76)](_0x5607b7);else _0x5607b7['length']>0x0&&_0x11954a[_0x4b6b9c(0x76)](_0xc0a4ef);continue;}if(_0x5607b7[_0x4b6b9c(0x86)]('===')&&_0x5607b7['includes']('\x20in\x20')){const _0x5dd694=_0x5607b7[_0x4b6b9c(0x7a)](/(\d+)\s+passed/),_0x1b97c2=_0x5607b7['match'](/(\d+)\s+failed/),_0x4500a9=_0x5607b7[_0x4b6b9c(0x7a)](/(\d+)\s+skipped/),_0x10b9d9=_0x5607b7[_0x4b6b9c(0x7a)](/(\d+)\s+xfailed/),_0x365c00=_0x5607b7[_0x4b6b9c(0x7a)](/(\d+)\s+xpassed/);if(_0x5dd694)_0x1044b0=parseInt(_0x5dd694[0x1]);if(_0x1b97c2)_0x498ed9=parseInt(_0x1b97c2[0x1]);if(_0x4500a9)_0x467523=parseInt(_0x4500a9[0x1]);if(_0x10b9d9)_0x481c0c=parseInt(_0x10b9d9[0x1]);if(_0x365c00)_0x4e7fa4=parseInt(_0x365c00[0x1]);}}_0x11954a['length']>0x0&&_0x499a46[_0x4b6b9c(0x76)](_0x11954a);if(_0x1044b0===0x0&&_0x498ed9===0x0&&_0x467523===0x0&&_0x481c0c===0x0&&_0x4e7fa4===0x0){if(_0x1fc548[_0x4b6b9c(0x8f)](_0x4b6b9c(0x7e))&&!_0x1fc548['includes'](_0x4b6b9c(0x6d)))return'Pytest:\x20All\x20tests\x20passed';return _0x1fc548;}if(_0x498ed9===0x0&&_0x1044b0>0x0&&_0x467523===0x0&&_0x481c0c===0x0&&_0x4e7fa4===0x0)return _0x4b6b9c(0x8c)+_0x1044b0+'\x20passed';const _0x3422e5=[];_0x3422e5['push'](_0x4b6b9c(0x8c)+_0x1044b0+_0x4b6b9c(0x91));if(_0x498ed9>0x0)_0x3422e5[_0x4b6b9c(0x76)](_0x498ed9+_0x4b6b9c(0x8a));if(_0x467523>0x0)_0x3422e5[_0x4b6b9c(0x76)](_0x467523+_0x4b6b9c(0x73));if(_0x481c0c>0x0)_0x3422e5['push'](_0x481c0c+_0x4b6b9c(0x77));if(_0x4e7fa4>0x0)_0x3422e5[_0x4b6b9c(0x76)](_0x4e7fa4+_0x4b6b9c(0x84));const _0x27b0b0=[_0x3422e5[_0x4b6b9c(0x89)](',\x20')];if(_0x499a46[_0x4b6b9c(0x83)]>0x0){_0x27b0b0[_0x4b6b9c(0x76)](_0x4b6b9c(0x6c));const _0x45196b=0x3,_0x30a02d=_0x499a46[_0x4b6b9c(0x6f)](0x0,_0x45196b);for(let _0x17110f=0x0;_0x17110f<_0x30a02d[_0x4b6b9c(0x83)];_0x17110f++){const _0x2e38a9=_0x30a02d[_0x17110f],_0x1ed29a=_0x2e38a9[0x0][_0x4b6b9c(0x67)](/_/g,'')[_0x4b6b9c(0x70)]();_0x27b0b0[_0x4b6b9c(0x76)]('\x20\x20'+(_0x17110f+0x1)+_0x4b6b9c(0x80)+_0x1ed29a);const _0x18109a=_0x2e38a9['slice'](0x1),_0x200a58=_0x18109a[_0x4b6b9c(0x8d)](_0x1f3526=>{const _0x37126c=_0x4b6b9c,_0x817dc3=_0x1f3526[_0x37126c(0x70)]();return _0x817dc3[_0x37126c(0x86)]('>')||_0x817dc3[_0x37126c(0x86)]('E\x20\x20\x20')||_0x817dc3[_0x37126c(0x8f)](_0x37126c(0x81))||_0x817dc3['includes']('AssertionError:');});for(const _0x1a5c4b of _0x200a58['slice'](0x0,0x8)){_0x27b0b0[_0x4b6b9c(0x76)]('\x20\x20\x20\x20'+_0x1a5c4b);}_0x200a58[_0x4b6b9c(0x83)]>0x8&&_0x27b0b0[_0x4b6b9c(0x76)](_0x4b6b9c(0x78)+(_0x200a58[_0x4b6b9c(0x83)]-0x8)+_0x4b6b9c(0x7b));}_0x499a46[_0x4b6b9c(0x83)]>_0x45196b&&_0x27b0b0[_0x4b6b9c(0x76)](_0x4b6b9c(0x69)+(_0x499a46['length']-_0x45196b)+'\x20more\x20failures\x20truncated');}return _0x27b0b0['join']('\x0a');}function filterPipInstall(_0x2e738e){const _0x18939d=a0_0x156009,_0x482009=_0x2e738e[_0x18939d(0x68)]('\x0a'),_0x130f65=[];for(const _0x4f31d3 of _0x482009){const _0x22938a=_0x4f31d3['trim']();_0x22938a[_0x18939d(0x86)](_0x18939d(0x7d))&&_0x130f65[_0x18939d(0x76)](_0x22938a);}if(_0x130f65['length']>0x0)return _0x130f65[_0x18939d(0x89)]('\x0a');return _0x482009['filter'](_0x3a58b5=>{const _0x23ce5e=_0x18939d,_0x18e3b7=_0x3a58b5[_0x23ce5e(0x70)]();return!_0x18e3b7[_0x23ce5e(0x86)](_0x23ce5e(0x79))&&!_0x18e3b7[_0x23ce5e(0x86)]('Downloading')&&!_0x18e3b7[_0x23ce5e(0x8f)](_0x23ce5e(0x75))&&!_0x18e3b7[_0x23ce5e(0x86)](_0x23ce5e(0x88));})[_0x18939d(0x89)]('\x0a')[_0x18939d(0x70)]();}
1
+ 'use strict';const a0_0x1f7a6e=a0_0x377e;(function(_0x4bb28b,_0x216643){const _0x37b8e6=a0_0x377e,_0x505776=_0x4bb28b();while(!![]){try{const _0x21c2ad=-parseInt(_0x37b8e6(0x156))/0x1*(parseInt(_0x37b8e6(0x172))/0x2)+parseInt(_0x37b8e6(0x150))/0x3+-parseInt(_0x37b8e6(0x159))/0x4+parseInt(_0x37b8e6(0x16e))/0x5*(-parseInt(_0x37b8e6(0x154))/0x6)+parseInt(_0x37b8e6(0x162))/0x7*(parseInt(_0x37b8e6(0x14c))/0x8)+parseInt(_0x37b8e6(0x17a))/0x9+-parseInt(_0x37b8e6(0x168))/0xa*(-parseInt(_0x37b8e6(0x165))/0xb);if(_0x21c2ad===_0x216643)break;else _0x505776['push'](_0x505776['shift']());}catch(_0xea44e2){_0x505776['push'](_0x505776['shift']());}}}(a0_0x3bd9,0x387c0));function a0_0x377e(_0x40f649,_0x547b07){_0x40f649=_0x40f649-0x14c;const _0x3bd9fa=a0_0x3bd9();let _0x377eb3=_0x3bd9fa[_0x40f649];return _0x377eb3;}function a0_0x3bd9(){const _0x496bca=['AssertionError:','\x20more\x20failures\x20truncated','\x20passed','Using\x20cached','Pytest:\x20','\x0aFailures:','346932RqRhvy','5592ILrFCf','match','\x20\x20\x20\x20','===\x20FAILURES\x20===','1281243JSgUtn','slice','defineProperty','===','865038nQCoMs','\x20skipped','23wiHQbG','.\x20[FAIL]\x20','trim','1360472YCgvDH','replace','filterPytest','filter','\x20lines\x20of\x20stacktrace\x20truncated)','join','startsWith','Collecting','Requirement\x20already\x20satisfied','819shtZcd','===\x20short\x20test\x20summary\x20info\x20===','includes','1071169qJwXVB','\x20\x20...\x20+','.py:','20gBtclk','passed','length','push','Downloading','\x20in\x20','5liRJDo','split','\x20\x20\x20\x20...\x20(','___','2306nMNrYK','E\x20\x20\x20'];a0_0x3bd9=function(){return _0x496bca;};return a0_0x3bd9();}Object[a0_0x1f7a6e(0x152)](exports,'__esModule',{'value':!![]}),exports[a0_0x1f7a6e(0x15b)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x2483e7){const _0x3f8427=a0_0x1f7a6e,_0x3919b9=_0x2483e7[_0x3f8427(0x16f)]('\x0a');let _0x12ac80=0x0,_0x53a60a=0x0,_0x7acf0e=0x0,_0x501ee9=0x0,_0x3fa47b=0x0;const _0x58ad9b=[];let _0x3cdc02=[],_0x219dd8=![];for(const _0x4b690a of _0x3919b9){const _0x4ac85e=_0x4b690a[_0x3f8427(0x158)]();if(_0x4ac85e[_0x3f8427(0x15f)](_0x3f8427(0x14f))||_0x4ac85e[_0x3f8427(0x15f)]('===\x20ERRORS\x20===')){_0x219dd8=!![];continue;}else(_0x4ac85e[_0x3f8427(0x15f)](_0x3f8427(0x163))||_0x4ac85e[_0x3f8427(0x15f)](_0x3f8427(0x153))&&_0x4ac85e['includes'](_0x3f8427(0x169)))&&(_0x219dd8=![],_0x3cdc02[_0x3f8427(0x16a)]>0x0&&(_0x58ad9b[_0x3f8427(0x16b)](_0x3cdc02),_0x3cdc02=[]));if(_0x219dd8){if(_0x4ac85e[_0x3f8427(0x15f)](_0x3f8427(0x171)))_0x3cdc02[_0x3f8427(0x16a)]>0x0&&(_0x58ad9b[_0x3f8427(0x16b)](_0x3cdc02),_0x3cdc02=[]),_0x3cdc02[_0x3f8427(0x16b)](_0x4ac85e);else _0x4ac85e[_0x3f8427(0x16a)]>0x0&&_0x3cdc02['push'](_0x4b690a);continue;}if(_0x4ac85e[_0x3f8427(0x15f)](_0x3f8427(0x153))&&_0x4ac85e[_0x3f8427(0x164)](_0x3f8427(0x16d))){const _0x30a8c3=_0x4ac85e['match'](/(\d+)\s+passed/),_0x422c4b=_0x4ac85e[_0x3f8427(0x14d)](/(\d+)\s+failed/),_0x2181ac=_0x4ac85e['match'](/(\d+)\s+skipped/),_0x5a39cf=_0x4ac85e[_0x3f8427(0x14d)](/(\d+)\s+xfailed/),_0x343db0=_0x4ac85e[_0x3f8427(0x14d)](/(\d+)\s+xpassed/);if(_0x30a8c3)_0x12ac80=parseInt(_0x30a8c3[0x1]);if(_0x422c4b)_0x53a60a=parseInt(_0x422c4b[0x1]);if(_0x2181ac)_0x7acf0e=parseInt(_0x2181ac[0x1]);if(_0x5a39cf)_0x501ee9=parseInt(_0x5a39cf[0x1]);if(_0x343db0)_0x3fa47b=parseInt(_0x343db0[0x1]);}}_0x3cdc02['length']>0x0&&_0x58ad9b[_0x3f8427(0x16b)](_0x3cdc02);if(_0x12ac80===0x0&&_0x53a60a===0x0&&_0x7acf0e===0x0&&_0x501ee9===0x0&&_0x3fa47b===0x0){if(_0x2483e7[_0x3f8427(0x164)](_0x3f8427(0x169))&&!_0x2483e7[_0x3f8427(0x164)]('failed'))return'Pytest:\x20All\x20tests\x20passed';return _0x2483e7;}if(_0x53a60a===0x0&&_0x12ac80>0x0&&_0x7acf0e===0x0&&_0x501ee9===0x0&&_0x3fa47b===0x0)return _0x3f8427(0x178)+_0x12ac80+_0x3f8427(0x176);const _0x427624=[];_0x427624[_0x3f8427(0x16b)]('Pytest:\x20'+_0x12ac80+_0x3f8427(0x176));if(_0x53a60a>0x0)_0x427624[_0x3f8427(0x16b)](_0x53a60a+'\x20failed');if(_0x7acf0e>0x0)_0x427624[_0x3f8427(0x16b)](_0x7acf0e+_0x3f8427(0x155));if(_0x501ee9>0x0)_0x427624[_0x3f8427(0x16b)](_0x501ee9+'\x20xfailed');if(_0x3fa47b>0x0)_0x427624[_0x3f8427(0x16b)](_0x3fa47b+'\x20xpassed\x20(warning!)');const _0x282e5=[_0x427624[_0x3f8427(0x15e)](',\x20')];if(_0x58ad9b['length']>0x0){_0x282e5[_0x3f8427(0x16b)](_0x3f8427(0x179));const _0x35255f=0x3,_0x456039=_0x58ad9b[_0x3f8427(0x151)](0x0,_0x35255f);for(let _0x1c1954=0x0;_0x1c1954<_0x456039[_0x3f8427(0x16a)];_0x1c1954++){const _0x566880=_0x456039[_0x1c1954],_0x251816=_0x566880[0x0][_0x3f8427(0x15a)](/_/g,'')[_0x3f8427(0x158)]();_0x282e5['push']('\x20\x20'+(_0x1c1954+0x1)+_0x3f8427(0x157)+_0x251816);const _0x292a8d=_0x566880[_0x3f8427(0x151)](0x1),_0x48ff61=_0x292a8d['filter'](_0x19ce17=>{const _0x327b06=_0x3f8427,_0x838847=_0x19ce17[_0x327b06(0x158)]();return _0x838847['startsWith']('>')||_0x838847[_0x327b06(0x15f)](_0x327b06(0x173))||_0x838847[_0x327b06(0x164)](_0x327b06(0x167))||_0x838847[_0x327b06(0x164)](_0x327b06(0x174));});for(const _0xf193e3 of _0x48ff61['slice'](0x0,0x8)){_0x282e5[_0x3f8427(0x16b)](_0x3f8427(0x14e)+_0xf193e3);}_0x48ff61[_0x3f8427(0x16a)]>0x8&&_0x282e5[_0x3f8427(0x16b)](_0x3f8427(0x170)+(_0x48ff61[_0x3f8427(0x16a)]-0x8)+_0x3f8427(0x15d));}_0x58ad9b[_0x3f8427(0x16a)]>_0x35255f&&_0x282e5[_0x3f8427(0x16b)](_0x3f8427(0x166)+(_0x58ad9b[_0x3f8427(0x16a)]-_0x35255f)+_0x3f8427(0x175));}return _0x282e5['join']('\x0a');}function filterPipInstall(_0x92f0f6){const _0x471ced=a0_0x1f7a6e,_0x5cd7a2=_0x92f0f6[_0x471ced(0x16f)]('\x0a'),_0x2fa573=[];for(const _0xf47f75 of _0x5cd7a2){const _0x53d6b7=_0xf47f75[_0x471ced(0x158)]();_0x53d6b7[_0x471ced(0x15f)]('Successfully\x20installed')&&_0x2fa573[_0x471ced(0x16b)](_0x53d6b7);}if(_0x2fa573[_0x471ced(0x16a)]>0x0)return _0x2fa573[_0x471ced(0x15e)]('\x0a');return _0x5cd7a2[_0x471ced(0x15c)](_0x30ac89=>{const _0x6e092c=_0x471ced,_0x119cb0=_0x30ac89['trim']();return!_0x119cb0['startsWith'](_0x6e092c(0x160))&&!_0x119cb0[_0x6e092c(0x15f)](_0x6e092c(0x16c))&&!_0x119cb0[_0x6e092c(0x164)](_0x6e092c(0x177))&&!_0x119cb0[_0x6e092c(0x15f)](_0x6e092c(0x161));})['join']('\x0a')[_0x471ced(0x158)]();}