trimprompt 1.0.37 → 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_0x382bb0=a0_0x95d6;(function(_0x3676a0,_0xefe9ba){const _0x22e6cb=a0_0x95d6,_0x46f4a4=_0x3676a0();while(!![]){try{const _0x118455=-parseInt(_0x22e6cb(0x1f0))/0x1+-parseInt(_0x22e6cb(0x1dc))/0x2*(parseInt(_0x22e6cb(0x22a))/0x3)+parseInt(_0x22e6cb(0x178))/0x4+parseInt(_0x22e6cb(0x18d))/0x5+-parseInt(_0x22e6cb(0x180))/0x6*(-parseInt(_0x22e6cb(0x1bd))/0x7)+parseInt(_0x22e6cb(0x1a6))/0x8*(-parseInt(_0x22e6cb(0x1bb))/0x9)+parseInt(_0x22e6cb(0x216))/0xa;if(_0x118455===_0xefe9ba)break;else _0x46f4a4['push'](_0x46f4a4['shift']());}catch(_0x22d3de){_0x46f4a4['push'](_0x46f4a4['shift']());}}}(a0_0x1700,0xcde4a));var __createBinding=this&&this[a0_0x382bb0(0x18f)]||(Object['create']?function(_0xf620fe,_0x98542b,_0x388ea0,_0x17b16d){const _0x2938c8=a0_0x382bb0;if(_0x17b16d===undefined)_0x17b16d=_0x388ea0;var _0x36d1d0=Object[_0x2938c8(0x1ad)](_0x98542b,_0x388ea0);(!_0x36d1d0||('get'in _0x36d1d0?!_0x98542b[_0x2938c8(0x17f)]:_0x36d1d0[_0x2938c8(0x1bf)]||_0x36d1d0[_0x2938c8(0x188)]))&&(_0x36d1d0={'enumerable':!![],'get':function(){return _0x98542b[_0x388ea0];}}),Object[_0x2938c8(0x233)](_0xf620fe,_0x17b16d,_0x36d1d0);}:function(_0x164e56,_0x302ead,_0x143120,_0x4e4e75){if(_0x4e4e75===undefined)_0x4e4e75=_0x143120;_0x164e56[_0x4e4e75]=_0x302ead[_0x143120];}),__setModuleDefault=this&&this[a0_0x382bb0(0x1d5)]||(Object['create']?function(_0x46baba,_0x4f074a){const _0x37af76=a0_0x382bb0;Object['defineProperty'](_0x46baba,_0x37af76(0x1f3),{'enumerable':!![],'value':_0x4f074a});}:function(_0x5298fb,_0x4a3192){_0x5298fb['default']=_0x4a3192;}),__importStar=this&&this[a0_0x382bb0(0x1e2)]||(function(){var _0x1b1ff1=function(_0x13e554){const _0x21459e=a0_0x95d6;return _0x1b1ff1=Object[_0x21459e(0x191)]||function(_0x27b3ab){const _0x257a47=_0x21459e;var _0xc3f42=[];for(var _0x21a119 in _0x27b3ab)if(Object[_0x257a47(0x1c9)]['hasOwnProperty'][_0x257a47(0x1a4)](_0x27b3ab,_0x21a119))_0xc3f42[_0xc3f42['length']]=_0x21a119;return _0xc3f42;},_0x1b1ff1(_0x13e554);};return function(_0x502d43){const _0x4ea7cf=a0_0x95d6;if(_0x502d43&&_0x502d43[_0x4ea7cf(0x17f)])return _0x502d43;var _0x53d037={};if(_0x502d43!=null){for(var _0x1a6bcf=_0x1b1ff1(_0x502d43),_0x55f383=0x0;_0x55f383<_0x1a6bcf[_0x4ea7cf(0x222)];_0x55f383++)if(_0x1a6bcf[_0x55f383]!=='default')__createBinding(_0x53d037,_0x502d43,_0x1a6bcf[_0x55f383]);}return __setModuleDefault(_0x53d037,_0x502d43),_0x53d037;};}());function a0_0x1700(){const _0x412f9d=['stringify','image_','Unsupported\x20format\x20\x27','build','node_modules','1458109ntRRbr','writeFileSync','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','default','.lock','platform','renameSync','filter','compaction\x20failed','type','saveSessionStateItem','matchAll','\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)','existsSync','object','lineCount','system','venv','User','Startup','Microsoft','.openclaw','replace','watch','out','startsWith','Roaming','parse','compact:','tracker','raw_tokens','saveChunk','modified','.jpeg','gemini','trim','.venv','history','2550090IxLcVu','live-conv','processSessionFile','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','.json','ceil','saveConfig','round','.aider.chat.history.md','cursor','dirname','get','length','File\x20not\x20found','.trimprompt','sideCacheSaved','.wal','.shm','storage','endsWith','3yshsKC','compact_copy','toLowerCase','text','loadSessionsState','cli.js','find','installWindowsStartupService','utf8','defineProperty','Summary:\x20Tool\x20result\x20offloaded\x20(','autoCompactSaved','set','4695000wzHaFe','sessions','TrimPrompt\x20Cache\x20Engine','github-copilot-cli','split','Library','codex','__esModule','1985262ihfqNs','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','./hooks/claude-hook','opencode','.jsonl','size','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','Summary:\x20Text\x20block\x20offloaded\x20(','configurable','officialCompactSaved','conversation_toggles','isDirectory','push','3851640KGCbMG','compressed_tokens','__createBinding','assign','getOwnPropertyNames','hookSavedTokens','content','mtimeMs','conv:','readFileSync','.config','.json1','.next','openclaw','logExecution','cwd','dist','Cursor','config.json','.webp','.tmp','conv_','Gemini','call','Session\x20file\x20not\x20found','1788664wRHlgk','\x20tokens).','.gemini','projects','.vscdb','loadConfig','join','getOwnPropertyDescriptor','tokens','string','byteLength','.png','toISOString','homedir','saved','env','Windows','copilot','context','AppData','name','45pfIXOz','readdirSync','35LlVBVx','Application\x20Support','writable','has','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','max','Start\x20Menu','includes','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','chunk_id','win32','path','prototype','compactLiveSession','.db','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','messages','claude','workspaceStorage','antigravity','prompt_turn','role','statSync','./proxy-conv','__setModuleDefault','.jpg','message','mkdirSync','TrimPromptDaemon.vbs','./tracker','custom_storage_paths','868220HqUQCT','.compact','basename','savedTokens','Codex','.codex','__importStar','Unsupported\x20extension','Compaction\x20failed','fullPath','.agents','cortex','Local','aider','isArray'];a0_0x1700=function(){return _0x412f9d;};return a0_0x1700();}Object[a0_0x382bb0(0x233)](exports,a0_0x382bb0(0x17f),{'value':!![]}),exports[a0_0x382bb0(0x1ab)]=loadConfig,exports[a0_0x382bb0(0x21c)]=saveConfig,exports['getAgentStoragePaths']=getAgentStoragePaths,exports['getLatestSessionFile']=getLatestSessionFile,exports[a0_0x382bb0(0x22e)]=loadSessionsState,exports[a0_0x382bb0(0x1fa)]=saveSessionStateItem,exports[a0_0x382bb0(0x218)]=processSessionFile,exports['compactSessionCopy']=compactSessionCopy,exports[a0_0x382bb0(0x1ca)]=compactLiveSession,exports[a0_0x382bb0(0x231)]=installWindowsStartupService,exports['startWatcherDaemon']=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x382bb0(0x1c8))),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require(a0_0x382bb0(0x1da)),baseDir=path[a0_0x382bb0(0x1ac)](os['homedir'](),a0_0x382bb0(0x224)),configPath=path[a0_0x382bb0(0x1ac)](baseDir,a0_0x382bb0(0x19f)),DEFAULT_CONFIG={'autostart_enabled':!![],'conversation_toggles':{'conv_claude':!![],'conv_codex':!![],'conv_cursor':!![],'conv_aider':!![],'conv_copilot':!![],'conv_openclaw':!![],'conv_opencode':!![],'conv_cortex':!![]},'custom_storage_paths':{'claude':null,'codex':null,'cursor':null,'aider':null,'copilot':null,'openclaw':null,'opencode':null,'cortex':null}};function a0_0x95d6(_0x3efb21,_0x35fba5){const _0x17000b=a0_0x1700();return a0_0x95d6=function(_0x95d6a1,_0xc0e85a){_0x95d6a1=_0x95d6a1-0x175;let _0x336d82=_0x17000b[_0x95d6a1];return _0x336d82;},a0_0x95d6(_0x3efb21,_0x35fba5);}function loadConfig(){const _0x319779=a0_0x382bb0;try{if(!fs[_0x319779(0x1fd)](baseDir))fs[_0x319779(0x1d8)](baseDir,{'recursive':!![]});if(fs[_0x319779(0x1fd)](configPath)){const _0x499bd6=JSON[_0x319779(0x20b)](fs['readFileSync'](configPath,_0x319779(0x232)));return{...DEFAULT_CONFIG,..._0x499bd6,'conversation_toggles':{...DEFAULT_CONFIG[_0x319779(0x18a)],..._0x499bd6[_0x319779(0x18a)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG['custom_storage_paths'],..._0x499bd6[_0x319779(0x1db)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0xe7c82e){const _0x34a5f2=a0_0x382bb0,_0xb2e93c=loadConfig(),_0x4d7af4={..._0xb2e93c,..._0xe7c82e,'conversation_toggles':{..._0xb2e93c[_0x34a5f2(0x18a)],..._0xe7c82e[_0x34a5f2(0x18a)]||{}},'custom_storage_paths':{..._0xb2e93c[_0x34a5f2(0x1db)],..._0xe7c82e['custom_storage_paths']||{}}};try{if(!fs[_0x34a5f2(0x1fd)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});fs[_0x34a5f2(0x1f1)](configPath,JSON['stringify'](_0x4d7af4,null,0x2),_0x34a5f2(0x232));}catch{}return _0x4d7af4;}function getAgentStoragePaths(_0x528273){const _0x532681=a0_0x382bb0,_0x45ffbd=loadConfig(),_0x261dbe=_0x45ffbd[_0x532681(0x1db)][_0x528273];if(_0x261dbe&&fs[_0x532681(0x1fd)](_0x261dbe))return[_0x261dbe];const _0x280dba=os[_0x532681(0x1b3)](),_0x45c6b1=process[_0x532681(0x1f5)]===_0x532681(0x1c7),_0x15239c=process[_0x532681(0x1f5)]==='darwin';switch(_0x528273){case _0x532681(0x1ce):return[path[_0x532681(0x1ac)](_0x280dba,'.claude',_0x532681(0x1a9)),path[_0x532681(0x1ac)](_0x280dba,'.claude',_0x532681(0x215))];case _0x532681(0x17e):return[path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x1e1),_0x532681(0x179)),path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x1b9),_0x532681(0x20a),_0x532681(0x1e0))];case'gemini':case'antigravity':return[path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x1a8),_0x532681(0x1d0)),path[_0x532681(0x1ac)](_0x280dba,'.gemini'),path['join'](_0x280dba,'AppData','Roaming',_0x532681(0x1a3)),path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x197),_0x532681(0x212))];case _0x532681(0x21f):if(_0x45c6b1)return[path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x1b9),'Roaming','Cursor',_0x532681(0x202),_0x532681(0x1cf))];if(_0x15239c)return[path['join'](_0x280dba,_0x532681(0x17d),_0x532681(0x1be),_0x532681(0x19e),_0x532681(0x202),_0x532681(0x1cf))];return[path['join'](_0x280dba,_0x532681(0x197),'Cursor',_0x532681(0x202),_0x532681(0x1cf))];case _0x532681(0x1e9):return[process[_0x532681(0x19c)](),path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x21e))];case _0x532681(0x1b7):if(_0x45c6b1)return[path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x1b9),_0x532681(0x1e8),_0x532681(0x17b))];return[path[_0x532681(0x1ac)](_0x280dba,_0x532681(0x197),_0x532681(0x17b))];case _0x532681(0x19a):return[path[_0x532681(0x1ac)](_0x280dba,'.openclaw',_0x532681(0x228)),path[_0x532681(0x1ac)](process[_0x532681(0x19c)](),_0x532681(0x205),_0x532681(0x1b8))];case _0x532681(0x183):return[path[_0x532681(0x1ac)](_0x280dba,'.opencode',_0x532681(0x179))];case'cortex':return[path[_0x532681(0x1ac)](_0x280dba,'.cortex','cache')];default:return[];}}function getLatestSessionFile(_0x3f2eba){const _0x5110d2=a0_0x382bb0,_0x4d6968=getAgentStoragePaths(_0x3f2eba);let _0x5a7170=null,_0x3e526e=0x0,_0x3e45f8=null,_0x261f11=null;for(const _0x2a4052 of _0x4d6968){if(fs[_0x5110d2(0x1fd)](_0x2a4052)){if(!_0x261f11)_0x261f11=_0x2a4052;const _0x36e945=(_0x39a661,_0x41be5e=0x0)=>{const _0x197080=_0x5110d2;if(_0x41be5e>0x6)return;try{const _0x118f2d=fs[_0x197080(0x1bc)](_0x39a661,{'withFileTypes':!![]});for(const _0x257988 of _0x118f2d){const _0x4e9b53=path[_0x197080(0x1ac)](_0x39a661,_0x257988[_0x197080(0x1ba)]);if(_0x257988[_0x197080(0x18b)]()){const _0x3b4a61=_0x257988[_0x197080(0x1ba)][_0x197080(0x22c)]();if(_0x3b4a61===_0x197080(0x1ef)||_0x3b4a61==='.git'||_0x3b4a61===_0x197080(0x214)||_0x3b4a61===_0x197080(0x1b5)||_0x3b4a61===_0x197080(0x201)||_0x3b4a61==='__pycache__'||_0x3b4a61===_0x197080(0x199)||_0x3b4a61===_0x197080(0x19d)||_0x3b4a61===_0x197080(0x1ee)||_0x3b4a61===_0x197080(0x208)||_0x3b4a61===_0x197080(0x1e6))continue;_0x36e945(_0x4e9b53,_0x41be5e+0x1);}else{if(_0x257988['isFile']()&&!_0x257988[_0x197080(0x1ba)][_0x197080(0x209)]('.')){const _0x6c118c=_0x257988['name'][_0x197080(0x22c)]();if(_0x6c118c['includes'](_0x197080(0x1dd))||_0x6c118c[_0x197080(0x229)](_0x197080(0x1cb))||_0x6c118c['endsWith'](_0x197080(0x1aa))||_0x6c118c[_0x197080(0x229)](_0x197080(0x1b1))||_0x6c118c['endsWith'](_0x197080(0x1d6))||_0x6c118c['endsWith'](_0x197080(0x211))||_0x6c118c[_0x197080(0x229)]('.gif')||_0x6c118c[_0x197080(0x229)](_0x197080(0x1a0))||_0x6c118c[_0x197080(0x229)]('.pb')||_0x6c118c[_0x197080(0x229)](_0x197080(0x226))||_0x6c118c[_0x197080(0x229)](_0x197080(0x227))||_0x6c118c['endsWith'](_0x197080(0x1a1))||_0x6c118c[_0x197080(0x229)](_0x197080(0x1f4))||_0x6c118c[_0x197080(0x229)]('.dat')||_0x6c118c[_0x197080(0x209)]('media__')||_0x6c118c[_0x197080(0x209)](_0x197080(0x1ec)))continue;const _0x2ec454=fs[_0x197080(0x1d3)](_0x4e9b53);_0x2ec454[_0x197080(0x194)]>_0x3e526e&&(_0x3e526e=_0x2ec454[_0x197080(0x194)],_0x5a7170=_0x257988[_0x197080(0x1ba)],_0x3e45f8=_0x4e9b53,_0x261f11=_0x2a4052);}}}}catch{}};_0x36e945(_0x2a4052);}}return{'fileName':_0x5a7170,'lastModified':_0x3e526e>0x0?new Date(_0x3e526e)[_0x5110d2(0x1b2)]():null,'fullPath':_0x3e45f8,'dirPath':_0x261f11};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x512a7c,_0x351f00,_0x7fa6bd){const _0x45b131=a0_0x382bb0;let _0x56ca60=![],_0x3071fd=0x0;if(!_0x512a7c)return{'modified':_0x56ca60,'savedTokens':_0x3071fd};const _0x4c5ef0=_0x27b5a5=>_0x27b5a5[_0x45b131(0x206)](/\r\n/g,'\x0a')[_0x45b131(0x206)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x512a7c[_0x45b131(0x193)]===_0x45b131(0x1af)){let _0x50c361=_0x512a7c[_0x45b131(0x193)],_0x417ec0=_0x4c5ef0(_0x50c361);_0x417ec0[_0x45b131(0x222)]<_0x50c361['length']&&(_0x512a7c[_0x45b131(0x193)]=_0x417ec0,_0x56ca60=!![],_0x3071fd+=Math['ceil']((_0x50c361[_0x45b131(0x222)]-_0x417ec0[_0x45b131(0x222)])/0x4));if(_0x512a7c['content']['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x512a7c[_0x45b131(0x193)][_0x45b131(0x1c4)]('TrimPrompt\x20Cache\x20Engine')){const _0x2fac02='Summary:\x20Content\x20offloaded\x20('+Math[_0x45b131(0x21b)](_0x512a7c['content'][_0x45b131(0x222)]/0x4)+_0x45b131(0x1a7),_0x271856=(0x0,cache_manager_1['saveChunk'])(_0x351f00,_0x7fa6bd,_0x512a7c['content'],_0x2fac02);_0x512a7c[_0x45b131(0x193)]=_0x45b131(0x186)+_0x271856[_0x45b131(0x20e)]+_0x45b131(0x219)+_0x271856[_0x45b131(0x1c6)]+_0x45b131(0x1c1)+_0x271856[_0x45b131(0x1c6)]+'`\x0a',_0x56ca60=!![],_0x3071fd+=Math[_0x45b131(0x1c2)](0x0,_0x271856[_0x45b131(0x20e)]-_0x271856[_0x45b131(0x18e)]);}}else{if(Array[_0x45b131(0x1ea)](_0x512a7c[_0x45b131(0x193)]))for(const _0x44f2e3 of _0x512a7c[_0x45b131(0x193)]){if(_0x44f2e3&&typeof _0x44f2e3===_0x45b131(0x1fe)){if(typeof _0x44f2e3['text']==='string'){let _0x36a5ec=_0x44f2e3[_0x45b131(0x22d)],_0x12a83d=_0x4c5ef0(_0x36a5ec);_0x12a83d[_0x45b131(0x222)]<_0x36a5ec[_0x45b131(0x222)]&&(_0x44f2e3[_0x45b131(0x22d)]=_0x12a83d,_0x56ca60=!![],_0x3071fd+=Math['ceil']((_0x36a5ec['length']-_0x12a83d['length'])/0x4));if(_0x44f2e3[_0x45b131(0x22d)][_0x45b131(0x222)]>OFFLOAD_THRESHOLD_CHARS&&!_0x44f2e3[_0x45b131(0x22d)][_0x45b131(0x1c4)]('TrimPrompt\x20Cache\x20Engine')){const _0x4cd6fc=_0x45b131(0x187)+Math[_0x45b131(0x21b)](_0x44f2e3[_0x45b131(0x22d)]['length']/0x4)+_0x45b131(0x1a7),_0x3c6cbc=(0x0,cache_manager_1[_0x45b131(0x20f)])(_0x351f00,_0x7fa6bd,_0x44f2e3[_0x45b131(0x22d)],_0x4cd6fc);_0x44f2e3['text']=_0x45b131(0x1cc)+_0x3c6cbc['chunk_id']+'`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20'+_0x3c6cbc[_0x45b131(0x1c6)]+'`\x0a',_0x56ca60=!![],_0x3071fd+=Math[_0x45b131(0x1c2)](0x0,_0x3c6cbc[_0x45b131(0x20e)]-_0x3c6cbc[_0x45b131(0x18e)]);}}else{if(typeof _0x44f2e3[_0x45b131(0x193)]===_0x45b131(0x1af)){let _0x193871=_0x44f2e3[_0x45b131(0x193)],_0x2a2050=_0x4c5ef0(_0x193871);_0x2a2050['length']<_0x193871[_0x45b131(0x222)]&&(_0x44f2e3[_0x45b131(0x193)]=_0x2a2050,_0x56ca60=!![],_0x3071fd+=Math[_0x45b131(0x21b)]((_0x193871[_0x45b131(0x222)]-_0x2a2050['length'])/0x4));if(_0x44f2e3[_0x45b131(0x193)][_0x45b131(0x222)]>OFFLOAD_THRESHOLD_CHARS&&!_0x44f2e3['content'][_0x45b131(0x1c4)](_0x45b131(0x17a))){const _0x28796d=_0x45b131(0x175)+Math[_0x45b131(0x21b)](_0x44f2e3['content'][_0x45b131(0x222)]/0x4)+_0x45b131(0x1a7),_0x1d9431=(0x0,cache_manager_1['saveChunk'])(_0x351f00,_0x7fa6bd,_0x44f2e3[_0x45b131(0x193)],_0x28796d);_0x44f2e3[_0x45b131(0x193)]=_0x45b131(0x1cc)+_0x1d9431[_0x45b131(0x1c6)]+_0x45b131(0x181)+_0x1d9431[_0x45b131(0x1c6)]+'`\x0a',_0x56ca60=!![],_0x3071fd+=Math[_0x45b131(0x1c2)](0x0,_0x1d9431['raw_tokens']-_0x1d9431[_0x45b131(0x18e)]);}}}}}}return{'modified':_0x56ca60,'savedTokens':_0x3071fd};}const sessionsStatePath=path[a0_0x382bb0(0x1ac)](baseDir,'sessions_state.json');let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x23707f=a0_0x382bb0;try{if(fs[_0x23707f(0x1fd)](sessionsStatePath)){const _0x2905f9=JSON['parse'](fs[_0x23707f(0x196)](sessionsStatePath,'utf8'));if(_0x2905f9&&typeof _0x2905f9===_0x23707f(0x1fe))return sessionsStateMemoryCache=_0x2905f9,_0x2905f9;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x2a7268,_0x49e7d5,_0x371c60,_0x336239=0x0,_0x2824bf=0x0,_0xb6d647=0x0){const _0x3a86e0=a0_0x382bb0;try{const _0x269d0f=loadSessionsState(),_0x15b296=_0x269d0f[_0x2a7268]||{},_0x1e90c9=_0x2824bf||_0x15b296[_0x3a86e0(0x176)]||0x0,_0x2fb7f7=_0xb6d647||_0x15b296[_0x3a86e0(0x192)]||0x0,_0xa5eea5=_0x371c60!==undefined?_0x371c60:_0x15b296[_0x3a86e0(0x189)]||0x0;_0x269d0f[_0x2a7268]={'lineCount':_0x49e7d5||_0x15b296[_0x3a86e0(0x1ff)]||0x1,'activeSavedTokens':_0xa5eea5+_0x1e90c9+_0x2fb7f7,'sideCacheSaved':_0x336239||_0x15b296['sideCacheSaved']||0x0,'officialCompactSaved':_0xa5eea5,'autoCompactSaved':_0x1e90c9,'hookSavedTokens':_0x2fb7f7},sessionsStateMemoryCache=_0x269d0f;if(!fs[_0x3a86e0(0x1fd)](baseDir))fs[_0x3a86e0(0x1d8)](baseDir,{'recursive':!![]});const _0x1b1a8e=sessionsStatePath+'.tmp';fs['writeFileSync'](_0x1b1a8e,JSON[_0x3a86e0(0x1eb)](_0x269d0f,null,0x2),_0x3a86e0(0x232)),fs[_0x3a86e0(0x1f6)](_0x1b1a8e,sessionsStatePath);}catch{}}function processSessionFile(_0x2a772d,_0x58435b){const _0x3a5ff6=a0_0x382bb0;try{if(!fs[_0x3a5ff6(0x1fd)](_0x2a772d))return;const _0x580319=fs[_0x3a5ff6(0x1d3)](_0x2a772d);if(_0x580319[_0x3a5ff6(0x18b)]()||_0x580319[_0x3a5ff6(0x185)]===0x0)return;const _0xade511=loadConfig(),_0x19153e=_0x3a5ff6(0x1a2)+_0x58435b;if(_0xade511[_0x3a5ff6(0x18a)][_0x19153e]===![])return;const _0x4f2dc4=fs[_0x3a5ff6(0x196)](_0x2a772d,_0x3a5ff6(0x232)),_0x151f00=path['extname'](_0x2a772d)[_0x3a5ff6(0x22c)]();let _0x4e7f81=0x1;if(_0x151f00==='.jsonl'||_0x151f00==='.json1')_0x4e7f81=_0x4f2dc4[_0x3a5ff6(0x17c)]('\x0a')[_0x3a5ff6(0x1f7)](Boolean)[_0x3a5ff6(0x222)];else{if(_0x151f00===_0x3a5ff6(0x21a))try{const _0x1fea34=JSON[_0x3a5ff6(0x20b)](_0x4f2dc4),_0x93045d=Array[_0x3a5ff6(0x1ea)](_0x1fea34[_0x3a5ff6(0x1cd)])?_0x1fea34['messages']:Array[_0x3a5ff6(0x1ea)](_0x1fea34)?_0x1fea34:null;if(_0x93045d)_0x4e7f81=_0x93045d['length'];}catch{}}let _0x3ee969=0x0;if((_0x151f00===_0x3a5ff6(0x184)||_0x151f00===_0x3a5ff6(0x198))&&_0x4f2dc4['includes'](_0x3a5ff6(0x1b4))&&_0x4f2dc4['includes'](_0x3a5ff6(0x1ae))){const _0x26f8b3=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x51bf19 of _0x4f2dc4[_0x3a5ff6(0x17c)]('\x0a')){if(!_0x51bf19[_0x3a5ff6(0x1c4)](_0x3a5ff6(0x1b4))||!_0x51bf19[_0x3a5ff6(0x1c4)](_0x3a5ff6(0x1ae)))continue;try{const _0x18e3ea=JSON[_0x3a5ff6(0x20b)](_0x51bf19);if(_0x18e3ea[_0x3a5ff6(0x1f9)]!==_0x3a5ff6(0x200))continue;const _0x5b4a6d=typeof _0x18e3ea[_0x3a5ff6(0x193)]===_0x3a5ff6(0x1af)?_0x18e3ea['content']:_0x18e3ea[_0x3a5ff6(0x1d7)]&&typeof _0x18e3ea[_0x3a5ff6(0x1d7)][_0x3a5ff6(0x193)]==='string'?_0x18e3ea['message'][_0x3a5ff6(0x193)]:'';if(!_0x5b4a6d)continue;for(const _0x25b1ce of _0x5b4a6d[_0x3a5ff6(0x1fb)](_0x26f8b3)){let _0x541681=parseFloat(_0x25b1ce[0x1]);if(_0x25b1ce[0x0][_0x3a5ff6(0x22c)]()[_0x3a5ff6(0x1c4)]('k'))_0x541681=_0x541681*0x3e8;_0x3ee969+=Math['round'](_0x541681);}}catch{}}}const _0x1183df=loadSessionsState(),_0x5e79fc=_0x1183df[_0x2a772d],_0x5d7323=_0x5e79fc?_0x5e79fc[_0x3a5ff6(0x1ff)]:0x0,_0x439b4f=_0x5e79fc?_0x5e79fc['activeSavedTokens']||0x0:0x0;if(_0x5d7323>0x0&&_0x4e7f81>_0x5d7323&&_0x439b4f>0x0){const _0x183d94=_0x3a5ff6(0x195)+_0x58435b;tracker_1[_0x3a5ff6(0x20d)][_0x3a5ff6(0x19b)](_0x183d94,'A'['repeat'](_0x439b4f*0x4),'',0x0,undefined,[_0x3a5ff6(0x1a2)+_0x58435b,_0x3a5ff6(0x217),_0x58435b,_0x3a5ff6(0x1d1)]);}const _0x10a1f9=_0x5e79fc&&_0x5e79fc['officialCompactSaved']!==undefined?_0x5e79fc['officialCompactSaved']:0x0,_0x317d26=Math[_0x3a5ff6(0x1c2)](_0x10a1f9,_0x3ee969);saveSessionStateItem(_0x2a772d,_0x4e7f81,_0x317d26,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x815db1,_0x49edc1){const _0x4206b1=a0_0x382bb0;try{if(!fs[_0x4206b1(0x1fd)](_0x815db1))return{'ok':![],'reason':_0x4206b1(0x1a5)};const _0x1c1ba2=path['extname'](_0x815db1)[_0x4206b1(0x22c)]();if(_0x1c1ba2!==_0x4206b1(0x21a)&&_0x1c1ba2!==_0x4206b1(0x184)&&_0x1c1ba2!==_0x4206b1(0x198))return{'ok':![],'reason':_0x4206b1(0x1ed)+(_0x1c1ba2||'none')+_0x4206b1(0x1fc)};const _0x4f56d7=fs[_0x4206b1(0x196)](_0x815db1,_0x4206b1(0x232)),_0x564e3b=Buffer['byteLength'](_0x4f56d7,_0x4206b1(0x232)),_0x1d56b6=path['basename'](_0x815db1,_0x1c1ba2);let _0x5a0d75=_0x4f56d7,_0x4477db=![];if(_0x1c1ba2===_0x4206b1(0x21a)){const _0x5a4b6a=JSON[_0x4206b1(0x20b)](_0x4f56d7),_0xd5c27=Array[_0x4206b1(0x1ea)](_0x5a4b6a[_0x4206b1(0x1cd)])?_0x5a4b6a['messages']:Array[_0x4206b1(0x1ea)](_0x5a4b6a)?_0x5a4b6a:null;if(_0xd5c27){for(const _0x177810 of _0xd5c27){const _0x162090=compressMessageContent(_0x177810,_0x1d56b6,_0x49edc1);if(_0x162090[_0x4206b1(0x210)])_0x4477db=!![];}if(_0x4477db)_0x5a0d75=JSON['stringify'](_0x5a4b6a,null,0x2);}}else{const _0x2c144b=_0x4f56d7[_0x4206b1(0x17c)]('\x0a'),_0x192fad=[];for(let _0x26b3f9 of _0x2c144b){if(!_0x26b3f9[_0x4206b1(0x213)]()){_0x192fad[_0x4206b1(0x18c)](_0x26b3f9);continue;}try{const _0x3b1113=JSON[_0x4206b1(0x20b)](_0x26b3f9),_0x59b950=_0x3b1113[_0x4206b1(0x1d7)]||_0x3b1113;if(_0x59b950){const _0x52b47f=compressMessageContent(_0x59b950,_0x1d56b6,_0x49edc1);_0x52b47f['modified']&&(_0x4477db=!![],_0x26b3f9=JSON[_0x4206b1(0x1eb)](_0x3b1113));}}catch{}_0x192fad[_0x4206b1(0x18c)](_0x26b3f9);}if(_0x4477db)_0x5a0d75=_0x192fad[_0x4206b1(0x1ac)]('\x0a');}const _0x5eb7ab=Buffer[_0x4206b1(0x1b0)](_0x5a0d75,_0x4206b1(0x232)),_0x53a73f=path['join'](path[_0x4206b1(0x220)](_0x815db1),_0x1d56b6+_0x4206b1(0x1dd)+_0x1c1ba2);fs[_0x4206b1(0x1f1)](_0x53a73f,_0x5a0d75,'utf8');const _0x11e3c9=Math[_0x4206b1(0x21b)](_0x564e3b/0x4),_0x4901da=Math[_0x4206b1(0x21b)](_0x5eb7ab/0x4),_0x35b508=Math[_0x4206b1(0x1c2)](0x0,_0x11e3c9-_0x4901da),_0x108878=_0x564e3b>0x0?Math[_0x4206b1(0x21d)]((0x1-_0x5eb7ab/_0x564e3b)*0x3e8)/0xa:0x0;return _0x35b508>0x0&&tracker_1[_0x4206b1(0x20d)]['logExecution'](_0x4206b1(0x20c)+_0x49edc1,_0x4f56d7,_0x5a0d75,_0x35b508,undefined,['conv_'+_0x49edc1,_0x4206b1(0x217),_0x49edc1,_0x4206b1(0x22b)]),{'ok':!![],'compactPath':_0x53a73f,'rawBytes':_0x564e3b,'compressedBytes':_0x5eb7ab,'rawTokens':_0x11e3c9,'compressedTokens':_0x4901da,'savedTokens':_0x35b508,'reductionPct':_0x108878};}catch(_0x301f90){return{'ok':![],'reason':_0x301f90?.[_0x4206b1(0x1d7)]||_0x4206b1(0x1f8)};}}function compactLiveSession(_0x2c3e47,_0x37f930){const _0x37e00b=a0_0x382bb0;try{if(!fs[_0x37e00b(0x1fd)](_0x2c3e47))return{'ok':![],'savedTokens':0x0,'reason':_0x37e00b(0x223)};const _0x2f5665=path['extname'](_0x2c3e47)[_0x37e00b(0x22c)]();if(_0x2f5665!==_0x37e00b(0x21a)&&_0x2f5665!==_0x37e00b(0x184)&&_0x2f5665!==_0x37e00b(0x198))return{'ok':![],'savedTokens':0x0,'reason':_0x37e00b(0x1e3)};const _0x573af8=fs[_0x37e00b(0x196)](_0x2c3e47,_0x37e00b(0x232)),_0x341b78=Buffer['byteLength'](_0x573af8,'utf8'),_0x592879=Math[_0x37e00b(0x21b)](_0x341b78/0x4),_0x3a9f83=path[_0x37e00b(0x1de)](_0x2c3e47,_0x2f5665);let _0x283001=_0x573af8,_0x3a30e1=![];if(_0x2f5665==='.json'){const _0x41d6af=JSON[_0x37e00b(0x20b)](_0x573af8),_0x3182ba=Array[_0x37e00b(0x1ea)](_0x41d6af['messages'])?_0x41d6af[_0x37e00b(0x1cd)]:Array[_0x37e00b(0x1ea)](_0x41d6af)?_0x41d6af:null;if(_0x3182ba){for(const _0x18e1ec of _0x3182ba){const _0x5e0e5e=compressMessageContent(_0x18e1ec,_0x3a9f83,_0x37f930);if(_0x5e0e5e[_0x37e00b(0x210)])_0x3a30e1=!![];}const {compressConversation:_0x3f5ef8}=require(_0x37e00b(0x1d4)),_0x46b339=_0x3f5ef8(_0x3182ba,0x9c40);_0x46b339[_0x37e00b(0x1df)]>0x0&&(_0x3a30e1=!![],Array[_0x37e00b(0x1ea)](_0x41d6af[_0x37e00b(0x1cd)])?_0x41d6af[_0x37e00b(0x1cd)]=_0x46b339[_0x37e00b(0x1cd)]:_0x283001=JSON[_0x37e00b(0x1eb)](_0x46b339['messages'],null,0x2)),_0x3a30e1&&!Array[_0x37e00b(0x1ea)](_0x41d6af)&&(_0x283001=JSON[_0x37e00b(0x1eb)](_0x41d6af,null,0x2));}}else{const _0x1ed316=_0x573af8[_0x37e00b(0x17c)]('\x0a'),_0x72a0c4=[],_0x24b035=[];for(const _0x417ad4 of _0x1ed316){if(!_0x417ad4[_0x37e00b(0x213)]())continue;try{const _0x5e47e0=JSON[_0x37e00b(0x20b)](_0x417ad4);_0x72a0c4[_0x37e00b(0x18c)](_0x5e47e0);const _0x172cc6=_0x5e47e0[_0x37e00b(0x1d7)]||_0x5e47e0;_0x172cc6&&typeof _0x172cc6['role']==='string'&&_0x24b035[_0x37e00b(0x18c)](_0x172cc6);}catch{}}for(const _0xe4de16 of _0x24b035){const _0x25e56e=compressMessageContent(_0xe4de16,_0x3a9f83,_0x37f930);if(_0x25e56e['modified'])_0x3a30e1=!![];}const {compressConversation:_0x472571}=require('./proxy-conv'),_0x5e5ae8=_0x472571(_0x24b035,0x9c40);if(_0x5e5ae8[_0x37e00b(0x1df)]>0x0||_0x3a30e1){const _0x3c78a9=[];for(const _0x5c1a9a of _0x72a0c4){const _0x54e1e6=_0x5c1a9a[_0x37e00b(0x1d7)]||_0x5c1a9a;if(_0x54e1e6&&typeof _0x54e1e6[_0x37e00b(0x1d2)]===_0x37e00b(0x1af)){const _0x25d2c8=_0x5e5ae8[_0x37e00b(0x1cd)][_0x37e00b(0x230)](_0x193ebb=>_0x193ebb===_0x54e1e6);_0x25d2c8?(_0x5c1a9a['message']?_0x5c1a9a[_0x37e00b(0x1d7)]=_0x25d2c8:Object[_0x37e00b(0x190)](_0x5c1a9a,_0x25d2c8),_0x3c78a9[_0x37e00b(0x18c)](JSON[_0x37e00b(0x1eb)](_0x5c1a9a))):_0x3a30e1=!![];}else _0x3c78a9[_0x37e00b(0x18c)](JSON['stringify'](_0x5c1a9a));}_0x283001=_0x3c78a9[_0x37e00b(0x1ac)]('\x0a'),_0x3a30e1=!![];}}if(_0x3a30e1){const _0xcdf24e=Buffer[_0x37e00b(0x1b0)](_0x283001,_0x37e00b(0x232));fs[_0x37e00b(0x1f1)](_0x2c3e47,_0x283001,_0x37e00b(0x232));const _0x12ca54=Math[_0x37e00b(0x21b)](_0xcdf24e/0x4),_0x5206a5=Math['max'](0x0,_0x592879-_0x12ca54);if(_0x5206a5>0x0){const _0x44c21e=loadSessionsState(),_0x47e67f=_0x44c21e[_0x2c3e47]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x1cd026=_0x47e67f['autoCompactSaved']||0x0,_0x15b86f=_0x1cd026+_0x5206a5;saveSessionStateItem(_0x2c3e47,_0x47e67f[_0x37e00b(0x1ff)],_0x47e67f[_0x37e00b(0x189)]||0x0,_0x47e67f[_0x37e00b(0x225)]||0x0,_0x15b86f,_0x47e67f[_0x37e00b(0x192)]||0x0),tracker_1['tracker'][_0x37e00b(0x19b)](_0x37e00b(0x20c)+_0x37f930,_0x573af8,_0x283001,_0x5206a5,undefined,[_0x37e00b(0x1a2)+_0x37f930,_0x37e00b(0x217),_0x37f930,_0x37e00b(0x22b)]);}return{'ok':!![],'savedTokens':_0x5206a5};}return{'ok':!![],'savedTokens':0x0};}catch(_0x480b40){return{'ok':![],'savedTokens':0x0,'reason':_0x480b40['message']||_0x37e00b(0x1e4)};}}function installWindowsStartupService(){const _0x449da3=a0_0x382bb0;if(process[_0x449da3(0x1f5)]!==_0x449da3(0x1c7))return;try{const _0xf00404=path['join'](os[_0x449da3(0x1b3)](),_0x449da3(0x1b9),'Roaming',_0x449da3(0x204),_0x449da3(0x1b6),_0x449da3(0x1c3),'Programs',_0x449da3(0x203));if(!fs['existsSync'](_0xf00404))fs[_0x449da3(0x1d8)](_0xf00404,{'recursive':!![]});const _0x3c935c=path[_0x449da3(0x1ac)](_0xf00404,_0x449da3(0x1d9)),_0x35901b=path[_0x449da3(0x1ac)](__dirname,_0x449da3(0x22f)),_0x19d6e5=_0x35901b['replace'](/\\/g,'\x5c\x5c'),_0x4cd1b0=_0x449da3(0x1c5)+_0x19d6e5+_0x449da3(0x1f2);fs[_0x449da3(0x1f1)](_0x3c935c,_0x4cd1b0,_0x449da3(0x232));}catch{}}function startWatcherDaemon(){const _0x6baf5a=a0_0x382bb0;installWindowsStartupService();try{const {installClaudeHooks:_0x329e4b}=require(_0x6baf5a(0x182));_0x329e4b();}catch(_0x30ac10){}const _0x2da373=[_0x6baf5a(0x1ce),_0x6baf5a(0x212),_0x6baf5a(0x17e),_0x6baf5a(0x21f),_0x6baf5a(0x1e9),_0x6baf5a(0x1b7),_0x6baf5a(0x19a),_0x6baf5a(0x183),_0x6baf5a(0x1e7)];for(const _0x18c21d of _0x2da373){const _0x4cd10f=getAgentStoragePaths(_0x18c21d);for(const _0x19b07e of _0x4cd10f){if(fs[_0x6baf5a(0x1fd)](_0x19b07e))try{fs[_0x6baf5a(0x207)](_0x19b07e,{'recursive':!![]},(_0x183c88,_0x2f3529)=>{const _0x3d91a5=_0x6baf5a;if(!_0x2f3529)return;const _0x213af4=path[_0x3d91a5(0x1ac)](_0x19b07e,_0x2f3529);if(debounceTimers[_0x3d91a5(0x1c0)](_0x213af4))clearTimeout(debounceTimers[_0x3d91a5(0x221)](_0x213af4));const _0x5b1ed0=setTimeout(()=>processSessionFile(_0x213af4,_0x18c21d),0x1f4);debounceTimers[_0x3d91a5(0x177)](_0x213af4,_0x5b1ed0);});}catch{}}}setInterval(()=>{const _0x170562=_0x6baf5a;for(const _0x2c090e of _0x2da373){try{const _0x3f85af=getLatestSessionFile(_0x2c090e);_0x3f85af&&_0x3f85af['fullPath']&&processSessionFile(_0x3f85af[_0x170562(0x1e5)],_0x2c090e);}catch{}}},0xbb8);const _0x12f734=()=>{const _0x375658=_0x6baf5a;for(const _0x50abb2 of _0x2da373){try{const _0x10e155=getLatestSessionFile(_0x50abb2);_0x10e155&&_0x10e155[_0x375658(0x1e5)]&&compactLiveSession(_0x10e155['fullPath'],_0x50abb2);}catch{}}};setTimeout(_0x12f734,0x7d0),setInterval(_0x12f734,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_0x5aee4b=a0_0x4270;function a0_0x4270(_0x6b4fda,_0x15c0d2){const _0x390552=a0_0x3905();return a0_0x4270=function(_0x42702e,_0x6ac40d){_0x42702e=_0x42702e-0x129;let _0x2b2630=_0x390552[_0x42702e];return _0x2b2630;},a0_0x4270(_0x6b4fda,_0x15c0d2);}(function(_0x142d41,_0x90973){const _0x421fff=a0_0x4270,_0x38bae6=_0x142d41();while(!![]){try{const _0x1e547e=-parseInt(_0x421fff(0x13e))/0x1+parseInt(_0x421fff(0x148))/0x2+-parseInt(_0x421fff(0x137))/0x3+-parseInt(_0x421fff(0x13f))/0x4*(-parseInt(_0x421fff(0x152))/0x5)+-parseInt(_0x421fff(0x129))/0x6*(-parseInt(_0x421fff(0x146))/0x7)+parseInt(_0x421fff(0x14c))/0x8*(-parseInt(_0x421fff(0x15b))/0x9)+parseInt(_0x421fff(0x135))/0xa*(-parseInt(_0x421fff(0x139))/0xb);if(_0x1e547e===_0x90973)break;else _0x38bae6['push'](_0x38bae6['shift']());}catch(_0x5c79f0){_0x38bae6['push'](_0x38bae6['shift']());}}}(a0_0x3905,0xde9dd));Object[a0_0x5aee4b(0x14e)](exports,'__esModule',{'value':!![]}),exports[a0_0x5aee4b(0x154)]=filterDockerPs,exports[a0_0x5aee4b(0x12b)]=filterDockerImages,exports[a0_0x5aee4b(0x142)]=filterDockerLogs,exports[a0_0x5aee4b(0x12a)]=filterKubectl,exports[a0_0x5aee4b(0x136)]=filterRuff;function filterDockerPs(_0x928377){const _0x265cb5=a0_0x5aee4b,_0x295736=_0x928377[_0x265cb5(0x14f)]('\x0a')[_0x265cb5(0x133)](_0x39abb9=>_0x39abb9[_0x265cb5(0x155)]()[_0x265cb5(0x158)]>0x0);if(_0x295736[_0x265cb5(0x158)]===0x0)return _0x265cb5(0x15d);if(_0x295736[_0x265cb5(0x158)]<=0xa)return _0x928377['trim']();const _0x548d56=_0x295736[0x0],_0x2200eb=_0x295736[_0x265cb5(0x15c)](0x1),_0x573c7c=[];_0x573c7c[_0x265cb5(0x151)]('Containers:\x20'+_0x2200eb[_0x265cb5(0x158)]+_0x265cb5(0x149)),_0x573c7c[_0x265cb5(0x151)]('');for(const _0x950449 of _0x2200eb){const _0x340dc4=_0x950449[_0x265cb5(0x14f)](/\s{2,}/);if(_0x340dc4[_0x265cb5(0x158)]>=0x5){const _0x3f5d5d=_0x340dc4[0x0][_0x265cb5(0x150)](0x0,0xc),_0x30d8de=_0x340dc4[0x1],_0x5e4a91=_0x340dc4[_0x340dc4[_0x265cb5(0x158)]-0x2]||'',_0x100bfc=_0x340dc4[_0x340dc4[_0x265cb5(0x158)]-0x1]||'';_0x573c7c[_0x265cb5(0x151)]('\x20\x20'+_0x3f5d5d+'\x20\x20'+_0x30d8de+'\x20\x20'+_0x5e4a91+'\x20\x20'+_0x100bfc);}else _0x573c7c[_0x265cb5(0x151)]('\x20\x20'+_0x950449['trim']());}return _0x573c7c[_0x265cb5(0x13b)]('\x0a');}function filterDockerImages(_0x13ba2e){const _0x3e309a=a0_0x5aee4b,_0x28c656=_0x13ba2e[_0x3e309a(0x14f)]('\x0a')['filter'](_0x3cd405=>_0x3cd405[_0x3e309a(0x155)]()[_0x3e309a(0x158)]>0x0);if(_0x28c656[_0x3e309a(0x158)]<=0x1)return _0x3e309a(0x144);if(_0x28c656['length']<=0xf)return _0x13ba2e[_0x3e309a(0x155)]();const _0x13ada4=_0x28c656[_0x3e309a(0x15c)](0x1),_0x4ca691=['Docker\x20images:\x20'+_0x13ada4[_0x3e309a(0x158)]+_0x3e309a(0x149)];_0x4ca691[_0x3e309a(0x151)]('');const _0x56ed08=_0x13ada4[_0x3e309a(0x15c)](0x0,0x14);for(const _0x290b6d of _0x56ed08){const _0x543fe1=_0x290b6d[_0x3e309a(0x14f)](/\s{2,}/);if(_0x543fe1[_0x3e309a(0x158)]>=0x3){const _0x160da5=_0x543fe1[0x0],_0x193562=_0x543fe1[0x1],_0x344e61=_0x543fe1[_0x543fe1['length']-0x1]||'';_0x4ca691[_0x3e309a(0x151)]('\x20\x20'+_0x160da5+':'+_0x193562+'\x20\x20'+_0x344e61);}else _0x4ca691['push']('\x20\x20'+_0x290b6d[_0x3e309a(0x155)]());}return _0x13ada4[_0x3e309a(0x158)]>0x14&&_0x4ca691[_0x3e309a(0x151)](_0x3e309a(0x156)+(_0x13ada4[_0x3e309a(0x158)]-0x14)+_0x3e309a(0x143)),_0x4ca691[_0x3e309a(0x13b)]('\x0a');}function filterDockerLogs(_0x366a04){const _0x53d713=a0_0x5aee4b,_0xb7a06f=_0x366a04['split']('\x0a');if(_0xb7a06f[_0x53d713(0x158)]<=0x32)return _0x366a04;const _0x5c7359=[];return _0x5c7359['push'](..._0xb7a06f[_0x53d713(0x15c)](0x0,0x14)),_0x5c7359[_0x53d713(0x151)](_0x53d713(0x13a)+(_0xb7a06f[_0x53d713(0x158)]-0x28)+'\x20lines\x20truncated]\x20...\x0a'),_0x5c7359[_0x53d713(0x151)](..._0xb7a06f[_0x53d713(0x15c)](-0x14)),_0x5c7359[_0x53d713(0x151)]('\x0a('+_0xb7a06f[_0x53d713(0x158)]+_0x53d713(0x134)),_0x5c7359[_0x53d713(0x13b)]('\x0a');}function filterKubectl(_0x291c49,_0x9fa0c8){const _0xc15668=a0_0x5aee4b,_0x191c36=_0x291c49[_0xc15668(0x14f)]('\x0a')[_0xc15668(0x133)](_0x207f99=>_0x207f99[_0xc15668(0x155)]()[_0xc15668(0x158)]>0x0);if(_0x191c36[_0xc15668(0x158)]===0x0)return _0xc15668(0x131);if(_0x191c36[_0xc15668(0x158)]<=0x14)return _0x291c49[_0xc15668(0x155)]();if(_0x9fa0c8===_0xc15668(0x153)){const _0x1a8a66=_0x191c36[0x0],_0x14ed57=_0x191c36[_0xc15668(0x15c)](0x1),_0x4987f2=[_0x14ed57[_0xc15668(0x158)]+_0xc15668(0x140),'',_0x1a8a66];return _0x14ed57[_0xc15668(0x158)]<=0x1e?_0x4987f2['push'](..._0x14ed57):(_0x4987f2[_0xc15668(0x151)](..._0x14ed57[_0xc15668(0x15c)](0x0,0x19)),_0x4987f2['push']('...\x20+'+(_0x14ed57[_0xc15668(0x158)]-0x19)+_0xc15668(0x15a))),_0x4987f2[_0xc15668(0x13b)]('\x0a');}if(_0x9fa0c8==='describe'){const _0x300722=[];let _0x5a3cbd=![],_0x149a5a=0x0;for(const _0x3f84de of _0x191c36){if(_0x3f84de[_0xc15668(0x14d)](_0xc15668(0x12e))){_0x5a3cbd=!![],_0x300722[_0xc15668(0x151)](_0x3f84de);continue;}if(_0x5a3cbd){_0x149a5a++;if(_0x149a5a<=0x5)_0x300722[_0xc15668(0x151)](_0x3f84de);}else _0x300722[_0xc15668(0x151)](_0x3f84de);}return _0x149a5a>0x5&&_0x300722[_0xc15668(0x151)]('\x20\x20...\x20+'+(_0x149a5a-0x5)+_0xc15668(0x159)),_0x300722[_0xc15668(0x13b)]('\x0a');}if(_0x9fa0c8===_0xc15668(0x13d))return filterDockerLogs(_0x291c49);const _0xb8632e=_0x191c36['slice'](0x0,0x1e);return _0x191c36['length']>0x1e&&_0xb8632e[_0xc15668(0x151)](_0xc15668(0x12f)+(_0x191c36[_0xc15668(0x158)]-0x1e)+_0xc15668(0x14a)),_0xb8632e[_0xc15668(0x13b)]('\x0a');}function filterRuff(_0x1326ce){const _0x3d4747=a0_0x5aee4b,_0x24438a=_0x1326ce[_0x3d4747(0x14f)]('\x0a')[_0x3d4747(0x133)](_0x5ea9e9=>_0x5ea9e9[_0x3d4747(0x155)]()[_0x3d4747(0x158)]>0x0);if(_0x24438a['length']===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0x1326ce[_0x3d4747(0x138)](_0x3d4747(0x145))||_0x1326ce[_0x3d4747(0x138)](_0x3d4747(0x141)))return _0x3d4747(0x12c);const _0x50e4b0=_0x1326ce['match'](/Found (\d+) error/),_0xf7bdc3=_0x50e4b0?parseInt(_0x50e4b0[0x1]):_0x24438a[_0x3d4747(0x158)],_0x31dbc0={},_0x150ee7=[];for(const _0x345ced of _0x24438a){const _0x44df2e=_0x345ced['match'](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x44df2e){const _0x15375e=_0x44df2e[0x1],_0x3b169d=_0x15375e[_0x3d4747(0x14f)](':')[0x0];if(!_0x31dbc0[_0x3b169d])_0x31dbc0[_0x3b169d]=[];_0x31dbc0[_0x3b169d][_0x3d4747(0x151)](_0x345ced);}else _0x150ee7['push'](_0x345ced);}const _0x3e7e8d=Object[_0x3d4747(0x13c)](_0x31dbc0);if(_0x3e7e8d[_0x3d4747(0x158)]===0x0){if(_0x24438a[_0x3d4747(0x158)]<=0x14)return _0x1326ce[_0x3d4747(0x155)]();return _0x24438a[_0x3d4747(0x15c)](0x0,0xf)[_0x3d4747(0x13b)]('\x0a')+(_0x3d4747(0x15e)+(_0x24438a[_0x3d4747(0x158)]-0xf)+_0x3d4747(0x130));}const _0x4c1ed4=[_0x3d4747(0x14b)+_0xf7bdc3+_0x3d4747(0x12d)+_0x3e7e8d[_0x3d4747(0x158)]+_0x3d4747(0x157)];_0x4c1ed4[_0x3d4747(0x151)]('');const _0x263941=0xa;for(const _0x373d49 of _0x3e7e8d['slice'](0x0,_0x263941)){const _0x216472=_0x31dbc0[_0x373d49];if(_0x216472['length']<=0x3){for(const _0x570030 of _0x216472)_0x4c1ed4['push']('\x20\x20'+_0x570030);}else _0x4c1ed4[_0x3d4747(0x151)]('\x20\x20'+_0x216472[0x0]),_0x4c1ed4[_0x3d4747(0x151)](_0x3d4747(0x147)+_0x216472[_0x3d4747(0x158)]+_0x3d4747(0x12d)+_0x373d49+')');}return _0x3e7e8d[_0x3d4747(0x158)]>_0x263941&&_0x4c1ed4[_0x3d4747(0x151)](_0x3d4747(0x156)+(_0x3e7e8d[_0x3d4747(0x158)]-_0x263941)+_0x3d4747(0x132)),_0x4c1ed4[_0x3d4747(0x13b)]('\x0a');}function a0_0x3905(){const _0x1039a6=['216MwnVvm','slice','No\x20containers\x20running','\x0a...\x20+','102VwVHVv','filterKubectl','filterDockerImages','Ruff:\x20all\x20checks\x20passed','\x20issues\x20in\x20','Events:','...\x20+','\x20more','No\x20resources\x20found','\x20more\x20files','filter','\x20log\x20lines\x20total)','16870ZFpIhq','filterRuff','504024fTUJxw','includes','7865MliMgQ','\x0a...\x20[','join','keys','logs','515433QRlhLw','676SpNjiP','\x20resources\x20found','Found\x200\x20error','filterDockerLogs','\x20more\x20images','No\x20images\x20found','All\x20checks\x20passed','734041JHnRtJ','\x20\x20...\x20(','1686066MygycV','\x20total','\x20more\x20lines','Ruff:\x20','211976WVQxye','startsWith','defineProperty','split','substring','push','24015HDUGJL','get','filterDockerPs','trim','\x20\x20...\x20+','\x20files','length','\x20more\x20events','\x20more\x20resources'];a0_0x3905=function(){return _0x1039a6;};return a0_0x3905();}
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_0x293c03=a0_0x49a6;(function(_0x1d9260,_0x3505c8){const _0x23d8ca=a0_0x49a6,_0x27c13e=_0x1d9260();while(!![]){try{const _0x3c76c3=parseInt(_0x23d8ca(0x1b8))/0x1*(-parseInt(_0x23d8ca(0x1cd))/0x2)+parseInt(_0x23d8ca(0x1c9))/0x3*(parseInt(_0x23d8ca(0x1b3))/0x4)+parseInt(_0x23d8ca(0x1aa))/0x5*(-parseInt(_0x23d8ca(0x1b6))/0x6)+-parseInt(_0x23d8ca(0x1bb))/0x7*(parseInt(_0x23d8ca(0x1c0))/0x8)+-parseInt(_0x23d8ca(0x1c4))/0x9+-parseInt(_0x23d8ca(0x1ce))/0xa*(-parseInt(_0x23d8ca(0x1a6))/0xb)+-parseInt(_0x23d8ca(0x1d4))/0xc*(-parseInt(_0x23d8ca(0x1d1))/0xd);if(_0x3c76c3===_0x3505c8)break;else _0x27c13e['push'](_0x27c13e['shift']());}catch(_0x1084db){_0x27c13e['push'](_0x27c13e['shift']());}}}(a0_0x499d,0x75316));Object[a0_0x293c03(0x1d5)](exports,a0_0x293c03(0x1ad),{'value':!![]}),exports[a0_0x293c03(0x1ca)]=stripAnsi,exports[a0_0x293c03(0x1b9)]=collapseDuplicates,exports[a0_0x293c03(0x1ba)]=collapseWhitespace,exports[a0_0x293c03(0x1c2)]=stripComments,exports[a0_0x293c03(0x1c5)]=smartCrushJson,exports[a0_0x293c03(0x1d7)]=softTruncate;function stripAnsi(_0x2d2d41){const _0x54a419=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x2d2d41['replace'](_0x54a419,'');}function collapseDuplicates(_0x5bb1e4){const _0x21cfe3=a0_0x293c03,_0x2fa918=_0x5bb1e4['split']('\x0a');if(_0x2fa918['length']<=0x1)return _0x5bb1e4;const _0x4abd55=[];let _0x5d7de5=_0x2fa918[0x0],_0x55cf12=0x1;for(let _0x21f9a7=0x1;_0x21f9a7<_0x2fa918[_0x21cfe3(0x1c1)];_0x21f9a7++){const _0x1269b6=_0x2fa918[_0x21f9a7];_0x1269b6===_0x5d7de5&&_0x1269b6[_0x21cfe3(0x1ab)]()[_0x21cfe3(0x1c1)]>0x0?_0x55cf12++:(_0x55cf12>0x1?_0x4abd55['push'](_0x5d7de5+_0x21cfe3(0x1cb)+_0x55cf12+']'):_0x4abd55[_0x21cfe3(0x1a7)](_0x5d7de5),_0x5d7de5=_0x1269b6,_0x55cf12=0x1);}return _0x55cf12>0x1?_0x4abd55['push'](_0x5d7de5+_0x21cfe3(0x1cb)+_0x55cf12+']'):_0x4abd55[_0x21cfe3(0x1a7)](_0x5d7de5),_0x4abd55['join']('\x0a');}function collapseWhitespace(_0x39548d){const _0x1e5d19=a0_0x293c03;let _0x53d063=_0x39548d[_0x1e5d19(0x1cf)](/[ \t]+$/gm,'');return _0x53d063=_0x53d063[_0x1e5d19(0x1cf)](/\n{4,}/g,'\x0a\x0a\x0a'),_0x53d063;}function a0_0x49a6(_0x258a6a,_0x530459){const _0x499d39=a0_0x499d();return a0_0x49a6=function(_0x49a6c2,_0x350125){_0x49a6c2=_0x49a6c2-0x1a5;let _0x4b0aa9=_0x499d39[_0x49a6c2];return _0x4b0aa9;},a0_0x49a6(_0x258a6a,_0x530459);}function stripComments(_0x1f71f9,_0x56c882){const _0x1a6a39=a0_0x293c03;if(!_0x56c882)return _0x1f71f9;const _0x11389a=_0x1f71f9[_0x1a6a39(0x1be)]('\x0a');if(_0x11389a[_0x1a6a39(0x1c1)]<=0x96)return _0x1f71f9;const _0xa8bba3={'.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*#(?!!)/},_0x5c426f=_0xa8bba3[_0x56c882[_0x1a6a39(0x1b7)]()];if(!_0x5c426f)return _0x1f71f9;const _0x3ef0ab=_0x11389a[_0x1a6a39(0x1a9)](_0x266412=>!_0x5c426f[_0x1a6a39(0x1d3)](_0x266412));return _0x3ef0ab[_0x1a6a39(0x1a8)]('\x0a');}function smartCrushJson(_0x51ad5e){const _0x313eff=a0_0x293c03;try{const _0x362364=_0x51ad5e[_0x313eff(0x1ab)]();if(!_0x362364['startsWith']('['))return null;const _0x2683da=JSON[_0x313eff(0x1b0)](_0x362364);if(!Array[_0x313eff(0x1b5)](_0x2683da)||_0x2683da['length']<0x3)return null;if(typeof _0x2683da[0x0]!==_0x313eff(0x1af)||_0x2683da[0x0]===null)return null;const _0x531e4d=Object[_0x313eff(0x1c7)](_0x2683da[0x0]);if(_0x531e4d[_0x313eff(0x1c1)]===0x0)return null;const _0x2f2437=_0x531e4d['filter'](_0x59e559=>{const _0xbe46d7=_0x313eff,_0x27606f=_0x59e559[_0xbe46d7(0x1b7)]();return!_0x27606f[_0xbe46d7(0x1ae)]('resolved')&&!_0x27606f[_0xbe46d7(0x1ae)](_0xbe46d7(0x1bc))&&!_0x27606f[_0xbe46d7(0x1ae)](_0xbe46d7(0x1c6))&&!_0x27606f[_0xbe46d7(0x1ae)](_0xbe46d7(0x1d6))&&!_0x27606f['includes'](_0xbe46d7(0x1bf))&&!_0x27606f[_0xbe46d7(0x1ae)](_0xbe46d7(0x1d9))&&!_0x27606f[_0xbe46d7(0x1ae)](_0xbe46d7(0x1b1))&&_0x27606f!=='funding'&&_0x27606f!==_0xbe46d7(0x1b2)&&_0x27606f!=='bugs'&&_0x27606f!=='repository';})[_0x313eff(0x1d8)](0x0,0x6);if(_0x2f2437[_0x313eff(0x1c1)]===0x0)return null;const _0x1088a6=[];_0x1088a6['push'](_0x2f2437[_0x313eff(0x1a8)]('|'));const _0x257ab9=0x1e;for(let _0x2d0b54=0x0;_0x2d0b54<Math[_0x313eff(0x1c3)](_0x2683da['length'],_0x257ab9);_0x2d0b54++){const _0x58ee24=_0x2f2437[_0x313eff(0x1a5)](_0x51796a=>{const _0x4112e6=_0x313eff,_0x17a86f=_0x2683da[_0x2d0b54][_0x51796a];if(_0x17a86f===null||_0x17a86f===undefined)return'';if(typeof _0x17a86f===_0x4112e6(0x1af))return JSON[_0x4112e6(0x1b4)](_0x17a86f)['substring'](0x0,0x28);return String(_0x17a86f)['substring'](0x0,0x3c);});_0x1088a6[_0x313eff(0x1a7)](_0x58ee24[_0x313eff(0x1a8)]('|'));}_0x2683da['length']>_0x257ab9&&_0x1088a6[_0x313eff(0x1a7)](_0x313eff(0x1c8)+(_0x2683da['length']-_0x257ab9)+_0x313eff(0x1cc));_0x1088a6[_0x313eff(0x1a7)]('\x0a('+_0x2683da[_0x313eff(0x1c1)]+_0x313eff(0x1d2)+_0x531e4d['length']+_0x313eff(0x1ac)+_0x2f2437[_0x313eff(0x1c1)]+_0x313eff(0x1bd));const _0x235032=_0x1088a6[_0x313eff(0x1a8)]('\x0a');if(_0x235032[_0x313eff(0x1c1)]<_0x362364[_0x313eff(0x1c1)])return _0x235032;return null;}catch{return null;}}function softTruncate(_0x4e1232,_0x4fe965=0x4e20){const _0x197385=a0_0x293c03;if(_0x4e1232[_0x197385(0x1c1)]<=_0x4fe965)return _0x4e1232;const _0x53e600=_0x4e1232[_0x197385(0x1be)]('\x0a');if(_0x53e600['length']<=0xc8)return _0x4e1232;const _0x16a2b2=0x32,_0x356e51=0x96,_0x57818f=_0x53e600[_0x197385(0x1d8)](0x0,_0x16a2b2),_0x47afb7=_0x53e600[_0x197385(0x1d8)](_0x53e600[_0x197385(0x1c1)]-_0x356e51),_0x2908c5=_0x4e1232['length']-(_0x57818f['join']('\x0a')[_0x197385(0x1c1)]+_0x47afb7[_0x197385(0x1a8)]('\x0a')[_0x197385(0x1c1)]);return[..._0x57818f,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x2908c5+_0x197385(0x1d0),..._0x47afb7][_0x197385(0x1a8)]('\x0a');}function a0_0x499d(){const _0x5df124=['7QRtUxl','integrity','\x20key\x20fields)','split','checksum','4073568AHQpIz','length','stripComments','min','2129877PFAmuj','smartCrushJson','sha','keys','...\x20+','2799924NrcCdN','stripAnsi','\x20[x','\x20more\x20rows','197550etvBWj','36720DpJccp','replace','\x20characters\x20of\x20output]\x20...\x0a','52bYYIFj','\x20items,\x20','test','44676vOHjeJ','defineProperty','hash','softTruncate','slice','signature','map','2123GPeCZb','push','join','filter','13470WMeBns','trim','\x20fields,\x20showing\x20','__esModule','includes','object','parse','dev','engines','4jbSNdz','stringify','isArray','300WFmbUl','toLowerCase','3VsGYwq','collapseDuplicates','collapseWhitespace'];a0_0x499d=function(){return _0x5df124;};return a0_0x499d();}
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_0x3744e8=a0_0x35b0;(function(_0x2a6839,_0x235e1a){const _0x138677=a0_0x35b0,_0x2f8f7c=_0x2a6839();while(!![]){try{const _0x9ebe5b=-parseInt(_0x138677(0x16f))/0x1*(-parseInt(_0x138677(0x161))/0x2)+parseInt(_0x138677(0x176))/0x3*(-parseInt(_0x138677(0x164))/0x4)+parseInt(_0x138677(0x172))/0x5+parseInt(_0x138677(0x15b))/0x6+-parseInt(_0x138677(0x16c))/0x7*(-parseInt(_0x138677(0x184))/0x8)+parseInt(_0x138677(0x15a))/0x9*(-parseInt(_0x138677(0x15d))/0xa)+parseInt(_0x138677(0x166))/0xb;if(_0x9ebe5b===_0x235e1a)break;else _0x2f8f7c['push'](_0x2f8f7c['shift']());}catch(_0x1071b2){_0x2f8f7c['push'](_0x2f8f7c['shift']());}}}(a0_0x14eb,0xe2fa0));function a0_0x14eb(){const _0x1c3dba=['/\x20(','push','\x0aUntracked\x20files:','entries','72JlViFG','10149756kyvtrf','create','1143210HhxTaP','---END---','+++','__esModule','4IVlZTc','\x20\x20...\x20(+','filterGitLog','568280nQUePB','length','723118GPGYTW','startsWith','\x20\x20??\x20','*\x20Branch:\x20','substring','\x20\x20...\x20+','12831QyqENG','join','\x0aChanges:','200098voJrsC','replace','call','3978845XIJeWs','split','\x20more\x20modifications','[file]\x20','24gjrtIf','default','trim','\x20lines\x20of\x20description)','defineProperty','\x20(+','dirname','No\x20modifications','match','map','configurable','filterGitDiff','getOwnPropertyNames','path','120UTalbI','__importStar','---','unknown_file','filter','slice'];a0_0x14eb=function(){return _0x1c3dba;};return a0_0x14eb();}var __createBinding=this&&this['__createBinding']||(Object[a0_0x3744e8(0x15c)]?function(_0x5321f9,_0x125d2d,_0x5b6e38,_0x43d7c6){const _0x5a7815=a0_0x3744e8;if(_0x43d7c6===undefined)_0x43d7c6=_0x5b6e38;var _0x44586b=Object['getOwnPropertyDescriptor'](_0x125d2d,_0x5b6e38);(!_0x44586b||('get'in _0x44586b?!_0x125d2d[_0x5a7815(0x160)]:_0x44586b['writable']||_0x44586b[_0x5a7815(0x180)]))&&(_0x44586b={'enumerable':!![],'get':function(){return _0x125d2d[_0x5b6e38];}}),Object[_0x5a7815(0x17a)](_0x5321f9,_0x43d7c6,_0x44586b);}:function(_0x7c8b6d,_0x1a6606,_0x590037,_0x2be0a5){if(_0x2be0a5===undefined)_0x2be0a5=_0x590037;_0x7c8b6d[_0x2be0a5]=_0x1a6606[_0x590037];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3744e8(0x15c)]?function(_0x2258ba,_0x4de48a){const _0x57d56f=a0_0x3744e8;Object[_0x57d56f(0x17a)](_0x2258ba,_0x57d56f(0x177),{'enumerable':!![],'value':_0x4de48a});}:function(_0x2f76ef,_0x5eaacc){const _0xd2c10=a0_0x3744e8;_0x2f76ef[_0xd2c10(0x177)]=_0x5eaacc;}),__importStar=this&&this[a0_0x3744e8(0x185)]||(function(){var _0x90bee7=function(_0x37e6af){const _0x46f0a5=a0_0x35b0;return _0x90bee7=Object[_0x46f0a5(0x182)]||function(_0x15e1ab){const _0x3d0e16=_0x46f0a5;var _0x2eb231=[];for(var _0xccb3ed in _0x15e1ab)if(Object['prototype']['hasOwnProperty'][_0x3d0e16(0x171)](_0x15e1ab,_0xccb3ed))_0x2eb231[_0x2eb231['length']]=_0xccb3ed;return _0x2eb231;},_0x90bee7(_0x37e6af);};return function(_0x1cffa9){const _0x5deb7e=a0_0x35b0;if(_0x1cffa9&&_0x1cffa9['__esModule'])return _0x1cffa9;var _0xfe870f={};if(_0x1cffa9!=null){for(var _0x1d0a90=_0x90bee7(_0x1cffa9),_0x2070d5=0x0;_0x2070d5<_0x1d0a90[_0x5deb7e(0x165)];_0x2070d5++)if(_0x1d0a90[_0x2070d5]!==_0x5deb7e(0x177))__createBinding(_0xfe870f,_0x1cffa9,_0x1d0a90[_0x2070d5]);}return __setModuleDefault(_0xfe870f,_0x1cffa9),_0xfe870f;};}());function a0_0x35b0(_0x377749,_0x43ed5b){const _0x14eb3d=a0_0x14eb();return a0_0x35b0=function(_0x35b0a9,_0x443eec){_0x35b0a9=_0x35b0a9-0x157;let _0x12c2d5=_0x14eb3d[_0x35b0a9];return _0x12c2d5;},a0_0x35b0(_0x377749,_0x43ed5b);}Object[a0_0x3744e8(0x17a)](exports,a0_0x3744e8(0x160),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x3744e8(0x163)]=filterGitLog,exports[a0_0x3744e8(0x181)]=filterGitDiff;const path=__importStar(require(a0_0x3744e8(0x183)));function filterGitStatus(_0x2d6dbc){const _0x2e0f9b=a0_0x3744e8,_0x5aa4eb=_0x2d6dbc['split']('\x0a')[_0x2e0f9b(0x17f)](_0x39cebd=>_0x39cebd[_0x2e0f9b(0x178)]())['filter'](_0x19bfc7=>_0x19bfc7['length']>0x0);if(_0x5aa4eb['length']===0x0)return'Clean\x20working\x20tree';const _0x1f4cd8=[],_0x343e03=[],_0x4f404b=[];for(const _0x5d13ba of _0x5aa4eb){if(_0x5d13ba[_0x2e0f9b(0x167)]('##')){const _0x805e11=_0x5d13ba[_0x2e0f9b(0x170)](/^##\s*/,'');_0x1f4cd8[_0x2e0f9b(0x157)](_0x2e0f9b(0x169)+_0x805e11);}else _0x5d13ba[_0x2e0f9b(0x167)]('??')?_0x343e03[_0x2e0f9b(0x157)](_0x5d13ba[_0x2e0f9b(0x16a)](0x3)[_0x2e0f9b(0x178)]()):_0x4f404b[_0x2e0f9b(0x157)](_0x5d13ba);}_0x4f404b[_0x2e0f9b(0x165)]>0x0&&(_0x1f4cd8[_0x2e0f9b(0x157)](_0x2e0f9b(0x16e)),_0x1f4cd8[_0x2e0f9b(0x157)](..._0x4f404b['map'](_0x572bac=>'\x20\x20'+_0x572bac)));if(_0x343e03[_0x2e0f9b(0x165)]>0x0){_0x1f4cd8[_0x2e0f9b(0x157)](_0x2e0f9b(0x158));const _0x4aff7c={},_0x3d7072=[];for(const _0xa17393 of _0x343e03){const _0x340992=path[_0x2e0f9b(0x17c)](_0xa17393);_0x340992==='.'||_0x340992===''?_0x3d7072['push'](_0xa17393):(!_0x4aff7c[_0x340992]&&(_0x4aff7c[_0x340992]=[]),_0x4aff7c[_0x340992][_0x2e0f9b(0x157)](path['basename'](_0xa17393)));}for(const [_0x373973,_0x302fe1]of Object[_0x2e0f9b(0x159)](_0x4aff7c)){if(_0x302fe1[_0x2e0f9b(0x165)]>0x5)_0x1f4cd8['push']('\x20\x20??\x20'+_0x373973+_0x2e0f9b(0x18a)+_0x302fe1[_0x2e0f9b(0x165)]+'\x20untracked\x20files)');else for(const _0x335cda of _0x302fe1){_0x1f4cd8[_0x2e0f9b(0x157)](_0x2e0f9b(0x168)+path[_0x2e0f9b(0x16d)](_0x373973,_0x335cda));}}for(const _0xdb3f63 of _0x3d7072){_0x1f4cd8[_0x2e0f9b(0x157)]('\x20\x20??\x20'+_0xdb3f63);}}return _0x1f4cd8[_0x2e0f9b(0x16d)]('\x0a');}function filterGitLog(_0xf83a56){const _0x3fe291=a0_0x3744e8,_0x20abcd=_0xf83a56[_0x3fe291(0x173)](_0x3fe291(0x15e))['map'](_0x2777a6=>_0x2777a6[_0x3fe291(0x178)]())[_0x3fe291(0x188)](_0x4b47f7=>_0x4b47f7[_0x3fe291(0x165)]>0x0);if(_0x20abcd['length']===0x0)return _0xf83a56;const _0x2dbc1e=[];for(const _0x1be71b of _0x20abcd){const _0x5eb6fa=_0x1be71b[_0x3fe291(0x173)]('\x0a'),_0x2155af=_0x5eb6fa[0x0]||'',_0x5b2ec1=_0x5eb6fa[_0x3fe291(0x189)](0x1)['map'](_0x8b93ca=>_0x8b93ca[_0x3fe291(0x178)]())[_0x3fe291(0x188)](_0x4c4a37=>_0x4c4a37[_0x3fe291(0x165)]>0x0);_0x2dbc1e[_0x3fe291(0x157)]('-\x20'+_0x2155af),_0x5b2ec1[_0x3fe291(0x165)]>0x0&&(_0x2dbc1e[_0x3fe291(0x157)]('\x20\x20'+_0x5b2ec1[0x0]),_0x5b2ec1['length']>0x1&&_0x2dbc1e[_0x3fe291(0x157)](_0x3fe291(0x162)+(_0x5b2ec1[_0x3fe291(0x165)]-0x1)+_0x3fe291(0x179)));}return _0x2dbc1e['join']('\x0a');}function filterGitDiff(_0x6b303a){const _0x54a37f=a0_0x3744e8,_0x221743=_0x6b303a[_0x54a37f(0x173)]('\x0a'),_0x306a32=[];let _0x395150='',_0x184475=0x0,_0x3c2512=0x0,_0x4feb77=[];const _0x286411=()=>{const _0xdca8d6=_0x54a37f;if(_0x395150&&(_0x184475>0x0||_0x3c2512>0x0)){_0x306a32[_0xdca8d6(0x157)](_0xdca8d6(0x175)+_0x395150+_0xdca8d6(0x17b)+_0x184475+'\x20-'+_0x3c2512+')');const _0x5e07d1=0xa,_0xe70a4b=_0x4feb77[_0xdca8d6(0x189)](0x0,_0x5e07d1);for(const _0xc5a9b1 of _0xe70a4b){_0x306a32[_0xdca8d6(0x157)]('\x20\x20'+_0xc5a9b1);}const _0x1f73af=_0x184475+_0x3c2512-_0x5e07d1;_0x1f73af>0x0&&_0x306a32['push'](_0xdca8d6(0x16b)+_0x1f73af+_0xdca8d6(0x174));}_0x184475=0x0,_0x3c2512=0x0,_0x4feb77=[];};for(const _0x3f606e of _0x221743){if(_0x3f606e[_0x54a37f(0x167)]('diff\x20--git')){_0x286411();const _0x1db3ea=_0x3f606e[_0x54a37f(0x17e)](/\sb\/(.+)$/);_0x395150=_0x1db3ea?_0x1db3ea[0x1]:_0x54a37f(0x187);}else{if(_0x3f606e[_0x54a37f(0x167)]('+')&&!_0x3f606e[_0x54a37f(0x167)](_0x54a37f(0x15f)))_0x184475++,_0x4feb77[_0x54a37f(0x157)](_0x3f606e);else _0x3f606e[_0x54a37f(0x167)]('-')&&!_0x3f606e[_0x54a37f(0x167)](_0x54a37f(0x186))&&(_0x3c2512++,_0x4feb77[_0x54a37f(0x157)](_0x3f606e));}}_0x286411();const _0x4d457c=_0x306a32[_0x54a37f(0x16d)]('\x0a');return _0x4d457c[_0x54a37f(0x165)]>0x0?_0x4d457c:_0x54a37f(0x17d);}
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_0x4fa050=a0_0x6574;(function(_0x23849d,_0x3f7ce9){const _0xb7e2a9=a0_0x6574,_0x2b1ac3=_0x23849d();while(!![]){try{const _0x57ee08=parseInt(_0xb7e2a9(0xfc))/0x1+parseInt(_0xb7e2a9(0xf6))/0x2+parseInt(_0xb7e2a9(0xe6))/0x3*(parseInt(_0xb7e2a9(0xe1))/0x4)+-parseInt(_0xb7e2a9(0xe5))/0x5+parseInt(_0xb7e2a9(0xed))/0x6*(-parseInt(_0xb7e2a9(0xf9))/0x7)+-parseInt(_0xb7e2a9(0xe7))/0x8*(parseInt(_0xb7e2a9(0xe0))/0x9)+parseInt(_0xb7e2a9(0xe4))/0xa*(parseInt(_0xb7e2a9(0xff))/0xb);if(_0x57ee08===_0x3f7ce9)break;else _0x2b1ac3['push'](_0x2b1ac3['shift']());}catch(_0x45c352){_0x2b1ac3['push'](_0x2b1ac3['shift']());}}}(a0_0x452c,0xb0022));function a0_0x452c(){const _0x496031=['trim','\x20\x20...\x20+','min','defineProperty','length','name','418980qEjnCU','\x0aFailures:','lines','149303eRZuKk','\x20more\x20issues','filter','767271HwcTEZ','includes','\x20skipped','11sBjEPF','Go\x20test:\x20','FAIL','split','===\x20RUN','Go\x20vet:\x20no\x20issues\x20found','no\x20test\x20files','\x20failed,\x20','slice','---\x20SKIP:','3042hdYMCF','182488jcdLPk','match','push','2398540GyzjXv','3345370rssblh','54BASlMN','2712ekvYTq','filterGoVet','Go\x20test:\x20all\x20tests\x20passed','__esModule','filterGoTest','\x20passed','150SqNFgt','\x20\x20\x20\x20...\x20+','join'];a0_0x452c=function(){return _0x496031;};return a0_0x452c();}function a0_0x6574(_0x1eb5bb,_0x5989ff){const _0x452c40=a0_0x452c();return a0_0x6574=function(_0x6574c6,_0x280254){_0x6574c6=_0x6574c6-0xda;let _0x4b448b=_0x452c40[_0x6574c6];return _0x4b448b;},a0_0x6574(_0x1eb5bb,_0x5989ff);}Object[a0_0x4fa050(0xf3)](exports,a0_0x4fa050(0xea),{'value':!![]}),exports[a0_0x4fa050(0xeb)]=filterGoTest,exports[a0_0x4fa050(0xe8)]=filterGoVet;function filterGoTest(_0x5ab0ae){const _0x15ab99=a0_0x4fa050,_0x258fcd=_0x5ab0ae[_0x15ab99(0x102)]('\x0a');let _0x10001b=0x0,_0x4630d5=0x0,_0x5c0094=0x0;const _0x24bb3a=[],_0x4bc6a4=[];let _0x27e6ac=null;for(const _0x52f3c6 of _0x258fcd){const _0x23ff5e=_0x52f3c6['trim'](),_0x11dbe6=_0x23ff5e[_0x15ab99(0xe2)](/^ok\s+\S+\s+[\d.]+s/);if(_0x11dbe6){_0x4bc6a4[_0x15ab99(0xe3)](_0x23ff5e);continue;}const _0x585170=_0x23ff5e['match'](/^FAIL\s+\S+/);if(_0x585170){_0x4bc6a4[_0x15ab99(0xe3)](_0x23ff5e);continue;}const _0x2d840b=_0x23ff5e['match'](/^--- PASS:/);if(_0x2d840b){_0x10001b++;continue;}const _0x19a413=_0x23ff5e['match'](/^--- FAIL:\s+(\S+)/);if(_0x19a413){if(_0x27e6ac)_0x24bb3a[_0x15ab99(0xe3)](_0x27e6ac);_0x27e6ac={'name':_0x19a413[0x1],'lines':[]},_0x4630d5++;continue;}if(_0x23ff5e['startsWith'](_0x15ab99(0xdf))){_0x5c0094++;continue;}_0x27e6ac&&_0x23ff5e[_0x15ab99(0xf4)]>0x0&&!_0x23ff5e['startsWith'](_0x15ab99(0xda))&&_0x27e6ac['lines'][_0x15ab99(0xe3)](_0x52f3c6),_0x23ff5e['startsWith']('===\x20RUN')&&(_0x27e6ac&&(_0x24bb3a[_0x15ab99(0xe3)](_0x27e6ac),_0x27e6ac=null));}if(_0x27e6ac)_0x24bb3a['push'](_0x27e6ac);if(_0x10001b===0x0&&_0x4630d5===0x0&&_0x5c0094===0x0){if(_0x5ab0ae[_0x15ab99(0xfd)]('PASS')&&!_0x5ab0ae[_0x15ab99(0xfd)](_0x15ab99(0x101)))return _0x15ab99(0xe9);if(_0x5ab0ae['includes'](_0x15ab99(0xdc)))return'Go\x20test:\x20no\x20test\x20files';return _0x5ab0ae;}if(_0x4630d5===0x0){const _0x2e583f=[_0x15ab99(0x100)+_0x10001b+_0x15ab99(0xec)];if(_0x5c0094>0x0)_0x2e583f[_0x15ab99(0xe3)](_0x5c0094+_0x15ab99(0xfe));return _0x2e583f[_0x15ab99(0xef)](',\x20');}const _0x9c43d0=['Go\x20test:\x20'+_0x10001b+'\x20passed,\x20'+_0x4630d5+_0x15ab99(0xdd)+_0x5c0094+_0x15ab99(0xfe)];if(_0x24bb3a[_0x15ab99(0xf4)]>0x0){_0x9c43d0[_0x15ab99(0xe3)](_0x15ab99(0xf7));const _0x18aa50=0x3;for(let _0x22280a=0x0;_0x22280a<Math[_0x15ab99(0xf2)](_0x24bb3a[_0x15ab99(0xf4)],_0x18aa50);_0x22280a++){const _0x2168c8=_0x24bb3a[_0x22280a];_0x9c43d0[_0x15ab99(0xe3)]('\x20\x20'+(_0x22280a+0x1)+'.\x20'+_0x2168c8[_0x15ab99(0xf5)]);for(const _0x318017 of _0x2168c8[_0x15ab99(0xf8)][_0x15ab99(0xde)](0x0,0x5)){_0x9c43d0[_0x15ab99(0xe3)]('\x20\x20\x20\x20'+_0x318017[_0x15ab99(0xf0)]());}_0x2168c8[_0x15ab99(0xf8)][_0x15ab99(0xf4)]>0x5&&_0x9c43d0[_0x15ab99(0xe3)](_0x15ab99(0xee)+(_0x2168c8[_0x15ab99(0xf8)][_0x15ab99(0xf4)]-0x5)+'\x20more\x20lines');}_0x24bb3a[_0x15ab99(0xf4)]>_0x18aa50&&_0x9c43d0[_0x15ab99(0xe3)](_0x15ab99(0xf1)+(_0x24bb3a[_0x15ab99(0xf4)]-_0x18aa50)+'\x20more\x20failures');}return _0x9c43d0['join']('\x0a');}function filterGoVet(_0x54cc9e){const _0x5a0a17=a0_0x4fa050,_0x33df17=_0x54cc9e['split']('\x0a')[_0x5a0a17(0xfb)](_0x2ae37a=>_0x2ae37a['trim']()[_0x5a0a17(0xf4)]>0x0);if(_0x33df17[_0x5a0a17(0xf4)]===0x0)return _0x5a0a17(0xdb);if(_0x33df17[_0x5a0a17(0xf4)]<=0x14)return _0x54cc9e['trim']();const _0x36b7aa=['Go\x20vet:\x20'+_0x33df17['length']+'\x20issues\x20found'];return _0x36b7aa['push'](..._0x33df17['slice'](0x0,0xa)),_0x33df17['length']>0xa&&_0x36b7aa[_0x5a0a17(0xe3)]('...\x20+'+(_0x33df17['length']-0xa)+_0x5a0a17(0xfa)),_0x36b7aa[_0x5a0a17(0xef)]('\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_0x2030d6=a0_0xf9f4;(function(_0x2e1826,_0x5898d6){const _0x4e331b=a0_0xf9f4,_0x4f2912=_0x2e1826();while(!![]){try{const _0x306c30=parseInt(_0x4e331b(0x1db))/0x1*(parseInt(_0x4e331b(0x1bf))/0x2)+parseInt(_0x4e331b(0x1cf))/0x3+parseInt(_0x4e331b(0x1a3))/0x4+parseInt(_0x4e331b(0x1d9))/0x5+parseInt(_0x4e331b(0x17c))/0x6+-parseInt(_0x4e331b(0x1a6))/0x7+parseInt(_0x4e331b(0x1ba))/0x8*(-parseInt(_0x4e331b(0x19e))/0x9);if(_0x306c30===_0x5898d6)break;else _0x4f2912['push'](_0x4f2912['shift']());}catch(_0x2c14b5){_0x4f2912['push'](_0x4f2912['shift']());}}}(a0_0x309d,0xce0cf));function a0_0x309d(){const _0x503982=['features_enabled','cargo\x20check','pip\x20install','endsWith','lines\x20truncated','1784220kXVfWp','filterCargoTest','1RSmugw','lastRedactAudit','trim\x20read','go\x20vet','[lock\x20file]','\x20ls\x20','filterDockerPs','trim\x20npm','includes','binary','npm\x20run\x20test','trim\x20npx','filterGitStatus','./git','9956016Snkebn','filter','toLowerCase','yarn\x20install','\x20ls','pip3\x20install','stripAnsi','skeleton','go\x20test','filterNpmInstall','cargo\x20test','test','pytest','text','compressOutput','filterKubectl','filterTree','filterLs','trim\x20tree','match','filterJestVitest','[code\x20skeleton]','json_crusher','trim\x20pnpm','npm\x20test','length','ansi_strip','secretsFound','pnpm\x20install','redact','collapseDuplicates','\x20tree\x20','lastFeatures','---','252tyVgpU','trim\x20ruff','trim\x20cargo','secretTypes','__esModule','1814384roSfnW','ruff\x20check','some','325934VpAUJb','yadm\x20status','whitespace','getConfig','./generic','startsWith','rewriteCommand','npm\x20install','trim\x20','git\x20diff','../tracker','push','defineProperty','git\x20log','trim\x20pip','trim','pattern','filterDockerLogs','trim\x20git','[binary','1247144uWJufo','pnpm\x20test','git\x20status','filterCat','trim\x20ls','2232924McXYpr','./shell','filterPipInstall','filterPytest','npm\x20i\x20','./devops','../redactor','trim\x20glab','vitest','yadm\x20log','filterRuff','cargo\x20build','yarn\x20test','filterGoVet','trim\x20go','filterGoTest','5007933NwvnWU','filterGrep','cargo\x20clippy','git\x20show','softTruncate'];a0_0x309d=function(){return _0x503982;};return a0_0x309d();}Object[a0_0x2030d6(0x1b2)](exports,a0_0x2030d6(0x1a2),{'value':!![]}),exports[a0_0x2030d6(0x19c)]=exports[a0_0x2030d6(0x1dc)]=void 0x0,exports[a0_0x2030d6(0x18a)]=compressOutput,exports[a0_0x2030d6(0x1ac)]=rewriteCommand;const generic_1=require(a0_0x2030d6(0x1aa)),git_1=require(a0_0x2030d6(0x17b)),python_1=require('./python'),js_1=require('./js'),shell_1=require(a0_0x2030d6(0x1c0)),rust_1=require('./rust'),go_1=require('./go'),devops_1=require(a0_0x2030d6(0x1c4)),redactor_1=require(a0_0x2030d6(0x1c5)),tracker_1=require(a0_0x2030d6(0x1b0));exports[a0_0x2030d6(0x1dc)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x2030d6(0x19c)]=[];function isFeatureEnabled(_0x50cd1f){const _0x33dc54=a0_0x2030d6;try{const _0x552965=tracker_1['tracker'][_0x33dc54(0x1a9)](),_0x6c07f1=_0x552965[_0x33dc54(0x1d4)];if(!_0x6c07f1||_0x6c07f1[_0x50cd1f]===undefined)return!![];return _0x6c07f1[_0x50cd1f]!==![];}catch{return!![];}}function compressOutput(_0x5e529a,_0x41a2ce,_0x200d75,_0xe6dd44=!![]){const _0x507eb1=a0_0x2030d6,_0x553f59=_0x5e529a[_0x507eb1(0x1b5)]();let _0x35df27=_0x41a2ce;_0x200d75['trim']()[_0x507eb1(0x195)]>0x0&&(_0x35df27=_0x41a2ce+'\x0a'+_0x200d75);let _0x2205ea=isFeatureEnabled(_0x507eb1(0x196))?(0x0,generic_1[_0x507eb1(0x182)])(_0x35df27):_0x35df27;const _0x15fea9=[];if(_0x2205ea[_0x507eb1(0x195)]<_0x35df27[_0x507eb1(0x195)])_0x15fea9[_0x507eb1(0x1b1)]('ansi_strip');const _0x31e64a=(_0x70fb51,_0xa13015)=>{const _0x1249b9=_0x507eb1;return _0x15fea9[_0x1249b9(0x1b1)](_0x70fb51),exports[_0x1249b9(0x19c)]=_0x15fea9,_0xa13015;};if(_0xe6dd44&&isFeatureEnabled(_0x507eb1(0x199))){const _0x5727c9=redactor_1['redactor']['redactWithAudit'](_0x2205ea);_0x2205ea=_0x5727c9[_0x507eb1(0x189)],exports['lastRedactAudit']={'secretsFound':_0x5727c9['secretsFound'],'secretTypes':_0x5727c9[_0x507eb1(0x1a1)]};if(_0x5727c9[_0x507eb1(0x197)]>0x0)_0x15fea9[_0x507eb1(0x1b1)](_0x507eb1(0x199));}else exports[_0x507eb1(0x1dc)]={'secretsFound':0x0,'secretTypes':[]};const _0x4d251d=_0x553f59[_0x507eb1(0x17e)](),_0x1e5d03=isFeatureEnabled(_0x507eb1(0x17d));try{if(_0x1e5d03){if(_0x4d251d['includes'](_0x507eb1(0x1bc))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1a7)))return _0x31e64a(_0x507eb1(0x17d),(0x0,git_1[_0x507eb1(0x17a)])(_0x2205ea));if(_0x4d251d['includes'](_0x507eb1(0x1b3))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1c8)))return _0x31e64a(_0x507eb1(0x17d),(0x0,git_1['filterGitLog'])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1af))||_0x4d251d['includes'](_0x507eb1(0x1d2))||_0x4d251d[_0x507eb1(0x176)]('yadm\x20diff'))return _0x31e64a(_0x507eb1(0x17d),(0x0,git_1['filterGitDiff'])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x188))||_0x4d251d['match'](/python3?\s+-m\s+pytest/))return _0x31e64a(_0x507eb1(0x17d),(0x0,python_1[_0x507eb1(0x1c2)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1d6))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x181)))return _0x31e64a('filter',(0x0,python_1[_0x507eb1(0x1c1)])(_0x2205ea));if(_0x4d251d['includes'](_0x507eb1(0x1a4))||_0x4d251d[_0x507eb1(0x176)]('ruff\x20'))return _0x31e64a('filter',(0x0,devops_1[_0x507eb1(0x1c9)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1ad))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1c3))||_0x4d251d[_0x507eb1(0x1d7)]('npm\x20i')||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x198))||_0x4d251d['includes'](_0x507eb1(0x17f)))return _0x31e64a('filter',(0x0,js_1[_0x507eb1(0x185)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)]('jest')||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1c7)))return _0x31e64a(_0x507eb1(0x17d),(0x0,js_1['filterJestVitest'])(_0x2205ea));if(_0x4d251d['includes'](_0x507eb1(0x194))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1bb))||_0x4d251d['includes'](_0x507eb1(0x1cb))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x178)))return _0x31e64a('filter',(0x0,js_1[_0x507eb1(0x190)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x186)))return _0x31e64a(_0x507eb1(0x17d),(0x0,rust_1[_0x507eb1(0x1da)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1ca))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1d5))||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1d1)))return _0x31e64a(_0x507eb1(0x17d),(0x0,rust_1['filterCargoBuild'])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x184)))return _0x31e64a('filter',(0x0,go_1[_0x507eb1(0x1ce)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1de)))return _0x31e64a('filter',(0x0,go_1[_0x507eb1(0x1cc)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x18f)](/docker\s+ps/))return _0x31e64a(_0x507eb1(0x17d),(0x0,devops_1[_0x507eb1(0x1e1)])(_0x2205ea));if(_0x4d251d['match'](/docker\s+images/))return _0x31e64a(_0x507eb1(0x17d),(0x0,devops_1['filterDockerImages'])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x18f)](/docker\s+logs/))return _0x31e64a('filter',(0x0,devops_1[_0x507eb1(0x1b7)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x176)]('kubectl')){const _0x5676bf=_0x4d251d[_0x507eb1(0x18f)](/kubectl\s+(get|logs|describe|apply)/),_0x5eadf6=_0x5676bf?_0x5676bf[0x1]:'get';return _0x31e64a(_0x507eb1(0x17d),(0x0,devops_1[_0x507eb1(0x18b)])(_0x2205ea,_0x5eadf6));}if(_0x4d251d[_0x507eb1(0x18f)](/^(ls|dir)(\s|$)/)||_0x4d251d[_0x507eb1(0x176)](_0x507eb1(0x1e0))||_0x4d251d[_0x507eb1(0x1d7)](_0x507eb1(0x180)))return _0x31e64a(_0x507eb1(0x17d),(0x0,shell_1[_0x507eb1(0x18d)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x18f)](/^tree(\s|$)/)||_0x4d251d['includes'](_0x507eb1(0x19b))||_0x4d251d[_0x507eb1(0x1d7)]('\x20tree'))return _0x31e64a('filter',(0x0,shell_1[_0x507eb1(0x18c)])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x18f)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x325c92=(0x0,shell_1[_0x507eb1(0x1bd)])(_0x2205ea,_0x553f59);if(_0x325c92[_0x507eb1(0x176)](_0x507eb1(0x1df)))_0x15fea9[_0x507eb1(0x1b1)]('lock');else{if(_0x325c92['includes'](_0x507eb1(0x1b9))||_0x325c92[_0x507eb1(0x176)]('[minified\x20file]'))_0x15fea9['push'](_0x507eb1(0x177));else{if(_0x325c92['includes'](_0x507eb1(0x191)))_0x15fea9['push'](_0x507eb1(0x183));else{if(_0x325c92[_0x507eb1(0x176)]('|\x20')&&_0x325c92[_0x507eb1(0x176)](_0x507eb1(0x19d))&&_0x325c92[_0x507eb1(0x195)]<_0x2205ea[_0x507eb1(0x195)]*0.5)_0x15fea9[_0x507eb1(0x1b1)](_0x507eb1(0x192));else{if(_0x325c92[_0x507eb1(0x176)](_0x507eb1(0x1d8)))_0x15fea9['push'](_0x507eb1(0x17d));}}}}if(_0x325c92[_0x507eb1(0x195)]<_0x2205ea[_0x507eb1(0x195)]&&!_0x15fea9[_0x507eb1(0x1a5)](_0x8a5bab=>_0x8a5bab!==_0x507eb1(0x196)&&_0x8a5bab!==_0x507eb1(0x199)))_0x15fea9['push'](_0x507eb1(0x17d));return exports[_0x507eb1(0x19c)]=_0x15fea9,_0x325c92;}if(_0x4d251d['match'](/^find(\s|$)/))return _0x31e64a(_0x507eb1(0x17d),(0x0,shell_1['filterFind'])(_0x2205ea));if(_0x4d251d[_0x507eb1(0x18f)](/^(grep|rg|ripgrep)(\s|$)/))return _0x31e64a(_0x507eb1(0x17d),(0x0,shell_1[_0x507eb1(0x1d0)])(_0x2205ea));}}catch(_0x50a09b){}return isFeatureEnabled(_0x507eb1(0x1a8))&&(_0x2205ea=(0x0,generic_1['collapseWhitespace'])(_0x2205ea),_0x15fea9[_0x507eb1(0x1b1)](_0x507eb1(0x1a8))),_0x2205ea=(0x0,generic_1[_0x507eb1(0x19a)])(_0x2205ea),_0x2205ea=(0x0,generic_1[_0x507eb1(0x1d3)])(_0x2205ea,0x4e20),exports[_0x507eb1(0x19c)]=_0x15fea9,_0x2205ea;}function a0_0xf9f4(_0x35bfb8,_0x500d32){const _0x309dd7=a0_0x309d();return a0_0xf9f4=function(_0xf9f4ed,_0x499993){_0xf9f4ed=_0xf9f4ed-0x176;let _0x1b9c58=_0x309dd7[_0xf9f4ed];return _0x1b9c58;},a0_0xf9f4(_0x35bfb8,_0x500d32);}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_0x2030d6(0x1b8)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x2030d6(0x1c6)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x2030d6(0x1a0)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x2030d6(0x193)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x2030d6(0x1e2)},{'pattern':/^npx\s+/,'prefix':a0_0x2030d6(0x179)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x2030d6(0x1dd)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x2030d6(0x1be)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x2030d6(0x18e)},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':'trim\x20kubectl'},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':'trim\x20pytest'},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x2030d6(0x19f)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x2030d6(0x1b4)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x2030d6(0x1cd)}];function rewriteCommand(_0x267352){const _0x222127=a0_0x2030d6,_0x11300a=_0x267352[_0x222127(0x1b5)]();if(_0x11300a[_0x222127(0x1ab)](_0x222127(0x1ae)))return _0x11300a;for(const _0xcb3c77 of REWRITE_RULES){if(_0xcb3c77[_0x222127(0x1b6)][_0x222127(0x187)](_0x11300a))return _0x222127(0x1ae)+_0x11300a;}return _0x11300a;}
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_0x5c194b=a0_0x1db4;function a0_0x1db4(_0x35214e,_0x8d57d7){const _0x18f31f=a0_0x18f3();return a0_0x1db4=function(_0x1db430,_0x258806){_0x1db430=_0x1db430-0xcb;let _0xa2256=_0x18f31f[_0x1db430];return _0xa2256;},a0_0x1db4(_0x35214e,_0x8d57d7);}(function(_0x2512fd,_0x374cac){const _0x152a2d=a0_0x1db4,_0x5c37ca=_0x2512fd();while(!![]){try{const _0x5a8fea=-parseInt(_0x152a2d(0xde))/0x1+-parseInt(_0x152a2d(0xce))/0x2*(parseInt(_0x152a2d(0xed))/0x3)+-parseInt(_0x152a2d(0xe9))/0x4*(parseInt(_0x152a2d(0xe2))/0x5)+-parseInt(_0x152a2d(0xe8))/0x6*(parseInt(_0x152a2d(0xd3))/0x7)+-parseInt(_0x152a2d(0xef))/0x8*(-parseInt(_0x152a2d(0xeb))/0x9)+-parseInt(_0x152a2d(0xf2))/0xa*(parseInt(_0x152a2d(0xd2))/0xb)+parseInt(_0x152a2d(0xe5))/0xc;if(_0x5a8fea===_0x374cac)break;else _0x5c37ca['push'](_0x5c37ca['shift']());}catch(_0xe92088){_0x5c37ca['push'](_0x5c37ca['shift']());}}}(a0_0x18f3,0x86758));function a0_0x18f3(){const _0x1b3121=['removed\x20','join','trim','24410STvYUK','FAIL','\x0aFailures:','24782352lyKjkc','defineProperty','\x20passed,\x20','61980XFPvRj','68LDClrP','startsWith','9FknYYX','Test\x20Suites:','389001RvbiOM','audited\x20','5451320JkIBkl','NPM:\x20Packages\x20verified/installed\x20successfully','Test\x20Runner:\x20','2215060YLrlMn','push','Test\x20Files:','\x20\x20...\x20(','split','8ZCQqmM','replace','filterNpmInstall','includes','44tYdDeY','273nSUIsp','length','up\x20to\x20date','found\x20','__esModule','added\x20','\x20lines\x20of\x20trace\x20details\x20truncated)','\x20total)','\x20passed','match','Tests:','305311dfKiwi'];a0_0x18f3=function(){return _0x1b3121;};return a0_0x18f3();}Object[a0_0x5c194b(0xe6)](exports,a0_0x5c194b(0xd7),{'value':!![]}),exports[a0_0x5c194b(0xd0)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function filterNpmInstall(_0xcbc1e){const _0x483013=a0_0x5c194b,_0xc12251=_0xcbc1e[_0x483013(0xcf)](/\r/g,'\x0a'),_0x27a8a2=_0xc12251[_0x483013(0xcd)]('\x0a'),_0x25a450=[];for(const _0x3565ec of _0x27a8a2){const _0x3d69b3=_0x3565ec[_0x483013(0xe1)]();(_0x3d69b3[_0x483013(0xd1)](_0x483013(0xd8))||_0x3d69b3['includes'](_0x483013(0xdf))||_0x3d69b3['includes'](_0x483013(0xee))||_0x3d69b3['includes'](_0x483013(0xd5))||_0x3d69b3['includes'](_0x483013(0xd6)))&&(!_0x3d69b3['includes']('%')&&!_0x3d69b3[_0x483013(0xea)]('⠋')&&!_0x3d69b3[_0x483013(0xea)]('⠙')&&_0x25a450[_0x483013(0xf3)](_0x3d69b3));}const _0x587782=_0x25a450[_0x483013(0xe0)]('\x0a')[_0x483013(0xe1)]();return _0x587782['length']>0x0?_0x587782:_0x483013(0xf0);}function filterJestVitest(_0x34d4fa){const _0x1dd670=a0_0x5c194b,_0x4086d3=_0x34d4fa[_0x1dd670(0xcd)]('\x0a');let _0x50c6d5=0x0,_0x78f18b=0x0,_0x2f0b48=0x0;const _0x4f623f=[];let _0x5d5b4e=![];for(const _0xb3fabd of _0x4086d3){const _0x511cba=_0xb3fabd['trim']();if(_0x511cba[_0x1dd670(0xea)](_0x1dd670(0xdd))||_0x511cba[_0x1dd670(0xd1)](_0x1dd670(0xcb))){const _0x428324=_0x511cba[_0x1dd670(0xdc)](/(\d+)\s+passed/),_0x47579b=_0x511cba[_0x1dd670(0xdc)](/(\d+)\s+failed/),_0x823713=_0x511cba[_0x1dd670(0xdc)](/(\d+)\s+total/);if(_0x428324)_0x50c6d5=parseInt(_0x428324[0x1]);if(_0x47579b)_0x78f18b=parseInt(_0x47579b[0x1]);if(_0x823713)_0x2f0b48=parseInt(_0x823713[0x1]);continue;}(_0x511cba[_0x1dd670(0xea)]('❯')||_0x511cba['startsWith']('●')||_0x511cba[_0x1dd670(0xea)]('FAIL\x20\x20'))&&(_0x5d5b4e=!![]),_0x5d5b4e&&(_0x511cba[_0x1dd670(0xd4)]>0x0&&!_0x511cba[_0x1dd670(0xea)](_0x1dd670(0xec))&&!_0x511cba['startsWith'](_0x1dd670(0xdd))&&_0x4f623f[_0x1dd670(0xf3)](_0xb3fabd));}if(_0x2f0b48===0x0&&_0x50c6d5===0x0&&_0x78f18b===0x0){if(_0x34d4fa[_0x1dd670(0xd1)]('PASS')&&!_0x34d4fa[_0x1dd670(0xd1)](_0x1dd670(0xe3))){const _0x498fde=_0x34d4fa['match'](/(\d+)\s+passed/),_0x28b4f9=_0x498fde?_0x498fde[0x1]:'all';return _0x1dd670(0xf1)+_0x28b4f9+_0x1dd670(0xdb);}return _0x34d4fa;}if(_0x78f18b===0x0&&_0x50c6d5>0x0)return _0x1dd670(0xf1)+_0x50c6d5+'\x20passed';const _0x538391=[_0x1dd670(0xf1)+_0x50c6d5+_0x1dd670(0xe7)+_0x78f18b+'\x20failed\x20('+_0x2f0b48+_0x1dd670(0xda)];if(_0x4f623f['length']>0x0){_0x538391[_0x1dd670(0xf3)](_0x1dd670(0xe4));const _0xc344df=0x19,_0x3d2a60=_0x4f623f['slice'](0x0,_0xc344df);for(const _0x3749f9 of _0x3d2a60){_0x538391['push']('\x20\x20'+_0x3749f9);}_0x4f623f['length']>_0xc344df&&_0x538391[_0x1dd670(0xf3)](_0x1dd670(0xcc)+(_0x4f623f[_0x1dd670(0xd4)]-_0xc344df)+_0x1dd670(0xd9));}return _0x538391['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_0xf3159f=a0_0x2732;(function(_0x455e72,_0x443854){const _0x3051c3=a0_0x2732,_0x57e062=_0x455e72();while(!![]){try{const _0x2a62c0=-parseInt(_0x3051c3(0x185))/0x1*(-parseInt(_0x3051c3(0x184))/0x2)+parseInt(_0x3051c3(0x181))/0x3*(-parseInt(_0x3051c3(0x171))/0x4)+-parseInt(_0x3051c3(0x187))/0x5*(-parseInt(_0x3051c3(0x15e))/0x6)+-parseInt(_0x3051c3(0x16e))/0x7+-parseInt(_0x3051c3(0x15d))/0x8+parseInt(_0x3051c3(0x166))/0x9+-parseInt(_0x3051c3(0x169))/0xa*(-parseInt(_0x3051c3(0x178))/0xb);if(_0x2a62c0===_0x443854)break;else _0x57e062['push'](_0x57e062['shift']());}catch(_0xf48381){_0x57e062['push'](_0x57e062['shift']());}}}(a0_0x5c13,0x9db1d));function a0_0x2732(_0x519dd2,_0x80f33){const _0x5c136e=a0_0x5c13();return a0_0x2732=function(_0x2732fa,_0x313637){_0x2732fa=_0x2732fa-0x15d;let _0xf5431e=_0x5c136e[_0x2732fa];return _0xf5431e;},a0_0x2732(_0x519dd2,_0x80f33);}Object['defineProperty'](exports,a0_0xf3159f(0x175),{'value':!![]}),exports[a0_0xf3159f(0x17e)]=filterPytest,exports[a0_0xf3159f(0x17b)]=filterPipInstall;function filterPytest(_0x4a2923){const _0x6a7801=a0_0xf3159f,_0x286d23=_0x4a2923[_0x6a7801(0x16c)]('\x0a');let _0x441c5d=0x0,_0x3d4c41=0x0,_0x54c561=0x0,_0x1a6aa0=0x0,_0xe89606=0x0;const _0x198d96=[];let _0x7b4992=[],_0x93bf4d=![];for(const _0x3e41ff of _0x286d23){const _0x49df1a=_0x3e41ff['trim']();if(_0x49df1a[_0x6a7801(0x164)](_0x6a7801(0x163))||_0x49df1a['startsWith']('===\x20ERRORS\x20===')){_0x93bf4d=!![];continue;}else(_0x49df1a['startsWith'](_0x6a7801(0x16f))||_0x49df1a[_0x6a7801(0x164)]('===')&&_0x49df1a['includes'](_0x6a7801(0x168)))&&(_0x93bf4d=![],_0x7b4992[_0x6a7801(0x162)]>0x0&&(_0x198d96[_0x6a7801(0x180)](_0x7b4992),_0x7b4992=[]));if(_0x93bf4d){if(_0x49df1a[_0x6a7801(0x164)](_0x6a7801(0x188)))_0x7b4992[_0x6a7801(0x162)]>0x0&&(_0x198d96[_0x6a7801(0x180)](_0x7b4992),_0x7b4992=[]),_0x7b4992[_0x6a7801(0x180)](_0x49df1a);else _0x49df1a[_0x6a7801(0x162)]>0x0&&_0x7b4992[_0x6a7801(0x180)](_0x3e41ff);continue;}if(_0x49df1a[_0x6a7801(0x164)]('===')&&_0x49df1a[_0x6a7801(0x186)](_0x6a7801(0x16b))){const _0x46da13=_0x49df1a[_0x6a7801(0x177)](/(\d+)\s+passed/),_0x56dd9f=_0x49df1a[_0x6a7801(0x177)](/(\d+)\s+failed/),_0x137d0e=_0x49df1a['match'](/(\d+)\s+skipped/),_0x35803f=_0x49df1a[_0x6a7801(0x177)](/(\d+)\s+xfailed/),_0x53e852=_0x49df1a['match'](/(\d+)\s+xpassed/);if(_0x46da13)_0x441c5d=parseInt(_0x46da13[0x1]);if(_0x56dd9f)_0x3d4c41=parseInt(_0x56dd9f[0x1]);if(_0x137d0e)_0x54c561=parseInt(_0x137d0e[0x1]);if(_0x35803f)_0x1a6aa0=parseInt(_0x35803f[0x1]);if(_0x53e852)_0xe89606=parseInt(_0x53e852[0x1]);}}_0x7b4992['length']>0x0&&_0x198d96[_0x6a7801(0x180)](_0x7b4992);if(_0x441c5d===0x0&&_0x3d4c41===0x0&&_0x54c561===0x0&&_0x1a6aa0===0x0&&_0xe89606===0x0){if(_0x4a2923[_0x6a7801(0x186)](_0x6a7801(0x168))&&!_0x4a2923[_0x6a7801(0x186)]('failed'))return _0x6a7801(0x17f);return _0x4a2923;}if(_0x3d4c41===0x0&&_0x441c5d>0x0&&_0x54c561===0x0&&_0x1a6aa0===0x0&&_0xe89606===0x0)return _0x6a7801(0x176)+_0x441c5d+_0x6a7801(0x160);const _0x56746d=[];_0x56746d[_0x6a7801(0x180)]('Pytest:\x20'+_0x441c5d+_0x6a7801(0x160));if(_0x3d4c41>0x0)_0x56746d[_0x6a7801(0x180)](_0x3d4c41+_0x6a7801(0x161));if(_0x54c561>0x0)_0x56746d['push'](_0x54c561+_0x6a7801(0x173));if(_0x1a6aa0>0x0)_0x56746d[_0x6a7801(0x180)](_0x1a6aa0+_0x6a7801(0x17a));if(_0xe89606>0x0)_0x56746d['push'](_0xe89606+_0x6a7801(0x182));const _0x373c64=[_0x56746d[_0x6a7801(0x165)](',\x20')];if(_0x198d96['length']>0x0){_0x373c64[_0x6a7801(0x180)]('\x0aFailures:');const _0x1c5087=0x3,_0x1e5165=_0x198d96[_0x6a7801(0x183)](0x0,_0x1c5087);for(let _0x60fd6b=0x0;_0x60fd6b<_0x1e5165[_0x6a7801(0x162)];_0x60fd6b++){const _0x524249=_0x1e5165[_0x60fd6b],_0x126d32=_0x524249[0x0]['replace'](/_/g,'')['trim']();_0x373c64[_0x6a7801(0x180)]('\x20\x20'+(_0x60fd6b+0x1)+_0x6a7801(0x17d)+_0x126d32);const _0x5dcc21=_0x524249['slice'](0x1),_0x400875=_0x5dcc21[_0x6a7801(0x189)](_0x2f6ce2=>{const _0x59312d=_0x6a7801,_0x48a169=_0x2f6ce2['trim']();return _0x48a169[_0x59312d(0x164)]('>')||_0x48a169[_0x59312d(0x164)](_0x59312d(0x16d))||_0x48a169[_0x59312d(0x186)](_0x59312d(0x15f))||_0x48a169[_0x59312d(0x186)]('AssertionError:');});for(const _0x17e3a9 of _0x400875[_0x6a7801(0x183)](0x0,0x8)){_0x373c64['push'](_0x6a7801(0x174)+_0x17e3a9);}_0x400875[_0x6a7801(0x162)]>0x8&&_0x373c64[_0x6a7801(0x180)](_0x6a7801(0x167)+(_0x400875[_0x6a7801(0x162)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x198d96['length']>_0x1c5087&&_0x373c64['push']('\x20\x20...\x20+'+(_0x198d96['length']-_0x1c5087)+_0x6a7801(0x17c));}return _0x373c64[_0x6a7801(0x165)]('\x0a');}function a0_0x5c13(){const _0x58364b=['Pytest:\x20','match','6775483PemcSZ','Requirement\x20already\x20satisfied','\x20xfailed','filterPipInstall','\x20more\x20failures\x20truncated','.\x20[FAIL]\x20','filterPytest','Pytest:\x20All\x20tests\x20passed','push','9XRliEr','\x20xpassed\x20(warning!)','slice','958ZjFFzi','2627pXIxUt','includes','5fAmQqK','___','filter','trim','4313264OZYhrO','1534590tPtvnH','.py:','\x20passed','\x20failed','length','===\x20FAILURES\x20===','startsWith','join','2147976DTAhix','\x20\x20\x20\x20...\x20(','passed','10URmUGq','Downloading','\x20in\x20','split','E\x20\x20\x20','3326603IqxDHi','===\x20short\x20test\x20summary\x20info\x20===','Successfully\x20installed','944548ySvOdd','Collecting','\x20skipped','\x20\x20\x20\x20','__esModule'];a0_0x5c13=function(){return _0x58364b;};return a0_0x5c13();}function filterPipInstall(_0x4d372b){const _0x347946=a0_0xf3159f,_0x3382f1=_0x4d372b[_0x347946(0x16c)]('\x0a'),_0x506f64=[];for(const _0x238490 of _0x3382f1){const _0x5cce1c=_0x238490[_0x347946(0x18a)]();_0x5cce1c[_0x347946(0x164)](_0x347946(0x170))&&_0x506f64['push'](_0x5cce1c);}if(_0x506f64[_0x347946(0x162)]>0x0)return _0x506f64[_0x347946(0x165)]('\x0a');return _0x3382f1[_0x347946(0x189)](_0x7c2955=>{const _0x5b2529=_0x347946,_0x4f87f1=_0x7c2955[_0x5b2529(0x18a)]();return!_0x4f87f1[_0x5b2529(0x164)](_0x5b2529(0x172))&&!_0x4f87f1[_0x5b2529(0x164)](_0x5b2529(0x16a))&&!_0x4f87f1[_0x5b2529(0x186)]('Using\x20cached')&&!_0x4f87f1[_0x5b2529(0x164)](_0x5b2529(0x179));})['join']('\x0a')[_0x347946(0x18a)]();}
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)]();}