trimprompt 1.0.39 → 1.0.40

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_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);}
1
+ 'use strict';function a0_0x9cf7(_0x3e89d2,_0x186e7e){const _0x45d0ab=a0_0x45d0();return a0_0x9cf7=function(_0x9cf76d,_0x1206ec){_0x9cf76d=_0x9cf76d-0xa2;let _0x52001e=_0x45d0ab[_0x9cf76d];return _0x52001e;},a0_0x9cf7(_0x3e89d2,_0x186e7e);}const a0_0x2308b9=a0_0x9cf7;(function(_0x1da694,_0x15dac7){const _0x43ce9d=a0_0x9cf7,_0x5c7986=_0x1da694();while(!![]){try{const _0x2408d1=-parseInt(_0x43ce9d(0xff))/0x1*(parseInt(_0x43ce9d(0x111))/0x2)+-parseInt(_0x43ce9d(0x144))/0x3+parseInt(_0x43ce9d(0xdf))/0x4*(-parseInt(_0x43ce9d(0xb3))/0x5)+parseInt(_0x43ce9d(0x154))/0x6+-parseInt(_0x43ce9d(0x133))/0x7+-parseInt(_0x43ce9d(0x12e))/0x8*(parseInt(_0x43ce9d(0xd9))/0x9)+parseInt(_0x43ce9d(0xa5))/0xa;if(_0x2408d1===_0x15dac7)break;else _0x5c7986['push'](_0x5c7986['shift']());}catch(_0x44c266){_0x5c7986['push'](_0x5c7986['shift']());}}}(a0_0x45d0,0x587da));var __createBinding=this&&this['__createBinding']||(Object[a0_0x2308b9(0xc3)]?function(_0x52320c,_0x1ee573,_0x325a1f,_0x2f78b0){const _0x12ed2a=a0_0x2308b9;if(_0x2f78b0===undefined)_0x2f78b0=_0x325a1f;var _0x40f310=Object[_0x12ed2a(0xcc)](_0x1ee573,_0x325a1f);(!_0x40f310||('get'in _0x40f310?!_0x1ee573['__esModule']:_0x40f310['writable']||_0x40f310[_0x12ed2a(0xfe)]))&&(_0x40f310={'enumerable':!![],'get':function(){return _0x1ee573[_0x325a1f];}}),Object[_0x12ed2a(0xd7)](_0x52320c,_0x2f78b0,_0x40f310);}:function(_0x37beaf,_0x57cc73,_0x26d3f8,_0x2a3929){if(_0x2a3929===undefined)_0x2a3929=_0x26d3f8;_0x37beaf[_0x2a3929]=_0x57cc73[_0x26d3f8];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x2308b9(0xc3)]?function(_0x54f5ea,_0x2e5479){const _0x3a4e7b=a0_0x2308b9;Object['defineProperty'](_0x54f5ea,_0x3a4e7b(0x126),{'enumerable':!![],'value':_0x2e5479});}:function(_0x356663,_0x23cc98){_0x356663['default']=_0x23cc98;}),__importStar=this&&this['__importStar']||(function(){var _0x488a9d=function(_0x1cfc31){return _0x488a9d=Object['getOwnPropertyNames']||function(_0x540662){const _0x4f3494=a0_0x9cf7;var _0xcbd586=[];for(var _0x4ef673 in _0x540662)if(Object[_0x4f3494(0xa3)][_0x4f3494(0xf4)][_0x4f3494(0x156)](_0x540662,_0x4ef673))_0xcbd586[_0xcbd586[_0x4f3494(0x12b)]]=_0x4ef673;return _0xcbd586;},_0x488a9d(_0x1cfc31);};return function(_0x30b5d3){const _0x3bdfc0=a0_0x9cf7;if(_0x30b5d3&&_0x30b5d3[_0x3bdfc0(0xf7)])return _0x30b5d3;var _0x439518={};if(_0x30b5d3!=null){for(var _0x2eec2f=_0x488a9d(_0x30b5d3),_0x8deed0=0x0;_0x8deed0<_0x2eec2f[_0x3bdfc0(0x12b)];_0x8deed0++)if(_0x2eec2f[_0x8deed0]!=='default')__createBinding(_0x439518,_0x30b5d3,_0x2eec2f[_0x8deed0]);}return __setModuleDefault(_0x439518,_0x30b5d3),_0x439518;};}());Object[a0_0x2308b9(0xd7)](exports,a0_0x2308b9(0xf7),{'value':!![]}),exports[a0_0x2308b9(0xdb)]=loadConfig,exports[a0_0x2308b9(0xfa)]=saveConfig,exports[a0_0x2308b9(0xb8)]=getAgentStoragePaths,exports[a0_0x2308b9(0x11e)]=getLatestSessionFile,exports[a0_0x2308b9(0x13d)]=loadSessionsState,exports[a0_0x2308b9(0x135)]=saveSessionStateItem,exports[a0_0x2308b9(0xf6)]=processSessionFile,exports['compactSessionCopy']=compactSessionCopy,exports[a0_0x2308b9(0xe6)]=compactLiveSession,exports[a0_0x2308b9(0x13a)]=installWindowsStartupService,exports[a0_0x2308b9(0xa2)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),cache_manager_1=require(a0_0x2308b9(0xc8)),tracker_1=require(a0_0x2308b9(0x14a)),baseDir=path[a0_0x2308b9(0x146)](os[a0_0x2308b9(0xbb)](),a0_0x2308b9(0xb4)),configPath=path['join'](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 _0x2e7958=a0_0x2308b9;try{if(!fs[_0x2e7958(0x14e)](baseDir))fs[_0x2e7958(0xb5)](baseDir,{'recursive':!![]});if(fs[_0x2e7958(0x14e)](configPath)){const _0x14df02=JSON['parse'](fs['readFileSync'](configPath,_0x2e7958(0x11b)));return{...DEFAULT_CONFIG,..._0x14df02,'conversation_toggles':{...DEFAULT_CONFIG[_0x2e7958(0xae)],..._0x14df02[_0x2e7958(0xae)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x2e7958(0xcf)],..._0x14df02[_0x2e7958(0xcf)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0xa79187){const _0x312ec6=a0_0x2308b9,_0x413362=loadConfig(),_0xff65ed={..._0x413362,..._0xa79187,'conversation_toggles':{..._0x413362[_0x312ec6(0xae)],..._0xa79187[_0x312ec6(0xae)]||{}},'custom_storage_paths':{..._0x413362[_0x312ec6(0xcf)],..._0xa79187[_0x312ec6(0xcf)]||{}}};try{if(!fs['existsSync'](baseDir))fs[_0x312ec6(0xb5)](baseDir,{'recursive':!![]});fs[_0x312ec6(0xd8)](configPath,JSON['stringify'](_0xff65ed,null,0x2),_0x312ec6(0x11b));}catch{}return _0xff65ed;}function getAgentStoragePaths(_0x47bb21){const _0x2fca2b=a0_0x2308b9,_0x39f9ca=loadConfig(),_0x6ceab9=_0x39f9ca['custom_storage_paths'][_0x47bb21];if(_0x6ceab9&&fs[_0x2fca2b(0x14e)](_0x6ceab9))return[_0x6ceab9];const _0x260540=os[_0x2fca2b(0xbb)](),_0x3c82e0=process[_0x2fca2b(0x117)]===_0x2fca2b(0xea),_0x4fed27=process[_0x2fca2b(0x117)]===_0x2fca2b(0x122);switch(_0x47bb21){case'claude':return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0xa7),_0x2fca2b(0x147)),path['join'](_0x260540,'.claude',_0x2fca2b(0x158))];case'codex':return[path['join'](_0x260540,_0x2fca2b(0xba),_0x2fca2b(0xf2)),path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0x13c),'Roaming',_0x2fca2b(0xce))];case _0x2fca2b(0xf1):case'antigravity':return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0xfc),'antigravity'),path[_0x2fca2b(0x146)](_0x260540,'.gemini'),path['join'](_0x260540,'AppData',_0x2fca2b(0xbd),_0x2fca2b(0x113)),path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0xbc),'gemini')];case _0x2fca2b(0x115):if(_0x3c82e0)return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0x13c),_0x2fca2b(0xbd),_0x2fca2b(0x125),_0x2fca2b(0xc6),_0x2fca2b(0x128))];if(_0x4fed27)return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0xb1),_0x2fca2b(0xfd),_0x2fca2b(0x125),_0x2fca2b(0xc6),'workspaceStorage')];return[path['join'](_0x260540,_0x2fca2b(0xbc),_0x2fca2b(0x125),'User',_0x2fca2b(0x128))];case _0x2fca2b(0x116):return[process[_0x2fca2b(0x120)](),path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0xe9))];case'copilot':if(_0x3c82e0)return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0x13c),_0x2fca2b(0xec),_0x2fca2b(0xd0))];return[path[_0x2fca2b(0x146)](_0x260540,'.config',_0x2fca2b(0xd0))];case _0x2fca2b(0x102):return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0x145),'storage'),path['join'](process[_0x2fca2b(0x120)](),_0x2fca2b(0x145),'context')];case _0x2fca2b(0x143):return[path[_0x2fca2b(0x146)](_0x260540,_0x2fca2b(0xaa),_0x2fca2b(0xf2))];case _0x2fca2b(0xc4):return[path['join'](_0x260540,_0x2fca2b(0x10a),_0x2fca2b(0x123))];default:return[];}}function getLatestSessionFile(_0x3400ca){const _0x16ddb0=a0_0x2308b9,_0x2b1ca3=getAgentStoragePaths(_0x3400ca);let _0x4e15a3=null,_0x31586d=0x0,_0xd47150=null,_0x4573bf=null;for(const _0x474cdc of _0x2b1ca3){if(fs[_0x16ddb0(0x14e)](_0x474cdc)){if(!_0x4573bf)_0x4573bf=_0x474cdc;const _0x4452b1=(_0x3b6ed9,_0x326fde=0x0)=>{const _0x50ec82=_0x16ddb0;if(_0x326fde>0x6)return;try{const _0x37d9a0=fs[_0x50ec82(0x15c)](_0x3b6ed9,{'withFileTypes':!![]});for(const _0x203876 of _0x37d9a0){const _0x53d092=path[_0x50ec82(0x146)](_0x3b6ed9,_0x203876[_0x50ec82(0x10b)]);if(_0x203876[_0x50ec82(0x153)]()){const _0x435316=_0x203876[_0x50ec82(0x10b)][_0x50ec82(0x11f)]();if(_0x435316===_0x50ec82(0xc7)||_0x435316===_0x50ec82(0xda)||_0x435316===_0x50ec82(0x159)||_0x435316===_0x50ec82(0x119)||_0x435316===_0x50ec82(0xac)||_0x435316===_0x50ec82(0x13b)||_0x435316==='.next'||_0x435316===_0x50ec82(0xde)||_0x435316==='build'||_0x435316===_0x50ec82(0x10c)||_0x435316===_0x50ec82(0xb6))continue;_0x4452b1(_0x53d092,_0x326fde+0x1);}else{if(_0x203876[_0x50ec82(0x13e)]()&&!_0x203876[_0x50ec82(0x10b)][_0x50ec82(0xed)]('.')){const _0x3b594a=_0x203876[_0x50ec82(0x10b)][_0x50ec82(0x11f)]();if(_0x3b594a[_0x50ec82(0xa9)](_0x50ec82(0xe7))||_0x3b594a['endsWith']('.db')||_0x3b594a[_0x50ec82(0xc5)](_0x50ec82(0xe1))||_0x3b594a['endsWith']('.png')||_0x3b594a['endsWith'](_0x50ec82(0xc1))||_0x3b594a['endsWith'](_0x50ec82(0x152))||_0x3b594a['endsWith'](_0x50ec82(0xdd))||_0x3b594a[_0x50ec82(0xc5)](_0x50ec82(0x138))||_0x3b594a[_0x50ec82(0xc5)]('.pb')||_0x3b594a['endsWith'](_0x50ec82(0xe4))||_0x3b594a[_0x50ec82(0xc5)](_0x50ec82(0x108))||_0x3b594a['endsWith'](_0x50ec82(0xb0))||_0x3b594a[_0x50ec82(0xc5)](_0x50ec82(0x101))||_0x3b594a[_0x50ec82(0xc5)]('.dat')||_0x3b594a[_0x50ec82(0xed)]('media__')||_0x3b594a[_0x50ec82(0xed)](_0x50ec82(0x14c)))continue;const _0x2acd1e=fs[_0x50ec82(0x141)](_0x53d092);_0x2acd1e['mtimeMs']>_0x31586d&&(_0x31586d=_0x2acd1e[_0x50ec82(0xee)],_0x4e15a3=_0x203876['name'],_0xd47150=_0x53d092,_0x4573bf=_0x474cdc);}}}}catch{}};_0x4452b1(_0x474cdc);}}return{'fileName':_0x4e15a3,'lastModified':_0x31586d>0x0?new Date(_0x31586d)[_0x16ddb0(0x14b)]():null,'fullPath':_0xd47150,'dirPath':_0x4573bf};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0xa55f4b,_0x4a73da,_0x3d0a85){const _0x425e94=a0_0x2308b9;let _0x15bda4=![],_0x4361f4=0x0;if(!_0xa55f4b)return{'modified':_0x15bda4,'savedTokens':_0x4361f4};const _0x47fa40=_0x15e527=>_0x15e527['replace'](/\r\n/g,'\x0a')[_0x425e94(0x15a)](/\n{3,}/g,'\x0a\x0a');if(typeof _0xa55f4b['content']==='string'){let _0x38c622=_0xa55f4b[_0x425e94(0x11d)],_0x173560=_0x47fa40(_0x38c622);_0x173560[_0x425e94(0x12b)]<_0x38c622['length']&&(_0xa55f4b[_0x425e94(0x11d)]=_0x173560,_0x15bda4=!![],_0x4361f4+=Math['ceil']((_0x38c622['length']-_0x173560[_0x425e94(0x12b)])/0x4));if(_0xa55f4b['content']['length']>OFFLOAD_THRESHOLD_CHARS&&!_0xa55f4b[_0x425e94(0x11d)][_0x425e94(0xa9)](_0x425e94(0x13f))){const _0x349777=_0x425e94(0xb7)+Math[_0x425e94(0xbf)](_0xa55f4b[_0x425e94(0x11d)][_0x425e94(0x12b)]/0x4)+_0x425e94(0x10d),_0x555c10=(0x0,cache_manager_1[_0x425e94(0x114)])(_0x4a73da,_0x3d0a85,_0xa55f4b[_0x425e94(0x11d)],_0x349777);_0xa55f4b['content']=_0x425e94(0x142)+_0x555c10[_0x425e94(0x148)]+'\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x555c10[_0x425e94(0xe8)]+'`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20'+_0x555c10['chunk_id']+'`\x0a',_0x15bda4=!![],_0x4361f4+=Math[_0x425e94(0xe2)](0x0,_0x555c10[_0x425e94(0x148)]-_0x555c10[_0x425e94(0x107)]);}}else{if(Array[_0x425e94(0x10e)](_0xa55f4b[_0x425e94(0x11d)]))for(const _0x280ff2 of _0xa55f4b[_0x425e94(0x11d)]){if(_0x280ff2&&typeof _0x280ff2===_0x425e94(0x109)){if(typeof _0x280ff2[_0x425e94(0x15b)]===_0x425e94(0xf0)){let _0x38c16f=_0x280ff2[_0x425e94(0x15b)],_0x4af2c6=_0x47fa40(_0x38c16f);_0x4af2c6[_0x425e94(0x12b)]<_0x38c16f[_0x425e94(0x12b)]&&(_0x280ff2[_0x425e94(0x15b)]=_0x4af2c6,_0x15bda4=!![],_0x4361f4+=Math['ceil']((_0x38c16f[_0x425e94(0x12b)]-_0x4af2c6[_0x425e94(0x12b)])/0x4));if(_0x280ff2[_0x425e94(0x15b)][_0x425e94(0x12b)]>OFFLOAD_THRESHOLD_CHARS&&!_0x280ff2[_0x425e94(0x15b)][_0x425e94(0xa9)]('TrimPrompt\x20Cache\x20Engine')){const _0x222042=_0x425e94(0x131)+Math[_0x425e94(0xbf)](_0x280ff2[_0x425e94(0x15b)][_0x425e94(0x12b)]/0x4)+_0x425e94(0x10d),_0x206936=(0x0,cache_manager_1[_0x425e94(0x114)])(_0x4a73da,_0x3d0a85,_0x280ff2['text'],_0x222042);_0x280ff2[_0x425e94(0x15b)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x206936[_0x425e94(0xe8)]+_0x425e94(0x15f)+_0x206936[_0x425e94(0xe8)]+'`\x0a',_0x15bda4=!![],_0x4361f4+=Math[_0x425e94(0xe2)](0x0,_0x206936[_0x425e94(0x148)]-_0x206936['compressed_tokens']);}}else{if(typeof _0x280ff2[_0x425e94(0x11d)]===_0x425e94(0xf0)){let _0x1b2c90=_0x280ff2[_0x425e94(0x11d)],_0x137106=_0x47fa40(_0x1b2c90);_0x137106['length']<_0x1b2c90[_0x425e94(0x12b)]&&(_0x280ff2['content']=_0x137106,_0x15bda4=!![],_0x4361f4+=Math[_0x425e94(0xbf)]((_0x1b2c90[_0x425e94(0x12b)]-_0x137106[_0x425e94(0x12b)])/0x4));if(_0x280ff2[_0x425e94(0x11d)][_0x425e94(0x12b)]>OFFLOAD_THRESHOLD_CHARS&&!_0x280ff2[_0x425e94(0x11d)][_0x425e94(0xa9)]('TrimPrompt\x20Cache\x20Engine')){const _0x3a392b=_0x425e94(0xe3)+Math[_0x425e94(0xbf)](_0x280ff2[_0x425e94(0x11d)][_0x425e94(0x12b)]/0x4)+_0x425e94(0x10d),_0x5b82d1=(0x0,cache_manager_1[_0x425e94(0x114)])(_0x4a73da,_0x3d0a85,_0x280ff2[_0x425e94(0x11d)],_0x3a392b);_0x280ff2[_0x425e94(0x11d)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x5b82d1[_0x425e94(0xe8)]+_0x425e94(0x15f)+_0x5b82d1['chunk_id']+'`\x0a',_0x15bda4=!![],_0x4361f4+=Math[_0x425e94(0xe2)](0x0,_0x5b82d1[_0x425e94(0x148)]-_0x5b82d1[_0x425e94(0x107)]);}}}}}}return{'modified':_0x15bda4,'savedTokens':_0x4361f4};}const sessionsStatePath=path['join'](baseDir,a0_0x2308b9(0xb9));let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x53ccec=a0_0x2308b9;try{if(fs[_0x53ccec(0x14e)](sessionsStatePath)){const _0x5f3e9a=JSON[_0x53ccec(0xc9)](fs['readFileSync'](sessionsStatePath,'utf8'));if(_0x5f3e9a&&typeof _0x5f3e9a==='object')return sessionsStateMemoryCache=_0x5f3e9a,_0x5f3e9a;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x457a4f,_0x509d10,_0x21a1b6,_0x1da7ff=0x0,_0x3827b0=0x0,_0x446618=0x0){const _0x2d024=a0_0x2308b9;try{const _0x1464d8=loadSessionsState(),_0x9af73d=_0x1464d8[_0x457a4f]||{},_0x4cd8c3=_0x3827b0||_0x9af73d[_0x2d024(0x124)]||0x0,_0x4ae1df=_0x446618||_0x9af73d[_0x2d024(0xd5)]||0x0,_0x39de04=_0x21a1b6!==undefined?_0x21a1b6:_0x9af73d[_0x2d024(0x140)]||0x0;_0x1464d8[_0x457a4f]={'lineCount':_0x509d10||_0x9af73d['lineCount']||0x1,'activeSavedTokens':_0x39de04+_0x4cd8c3+_0x4ae1df,'sideCacheSaved':_0x1da7ff||_0x9af73d[_0x2d024(0xcb)]||0x0,'officialCompactSaved':_0x39de04,'autoCompactSaved':_0x4cd8c3,'hookSavedTokens':_0x4ae1df},sessionsStateMemoryCache=_0x1464d8;if(!fs[_0x2d024(0x14e)](baseDir))fs[_0x2d024(0xb5)](baseDir,{'recursive':!![]});const _0x5efeb5=sessionsStatePath+_0x2d024(0xb0);fs['writeFileSync'](_0x5efeb5,JSON[_0x2d024(0xc2)](_0x1464d8,null,0x2),'utf8'),fs[_0x2d024(0x155)](_0x5efeb5,sessionsStatePath);}catch{}}function a0_0x45d0(){const _0x2d1ba3=['.compact','chunk_id','.aider.chat.history.md','win32','extname','Local','startsWith','mtimeMs','savedTokens','string','gemini','sessions','byteLength','hasOwnProperty','none','processSessionFile','__esModule','Compaction\x20failed','Startup','saveConfig','matchAll','.gemini','Application\x20Support','configurable','2057MBrrDE','TrimPromptDaemon.vbs','.lock','openclaw','saved','readFileSync','claude','./hooks/claude-hook','compressed_tokens','.shm','object','.cortex','name','out','\x20tokens).','isArray','push','./proxy-conv','134mopFWX','.jsonl','Gemini','saveChunk','cursor','aider','platform','prompt_turn','env','role','utf8','lineCount','content','getLatestSessionFile','toLowerCase','cwd','trim','darwin','cache','autoCompactSaved','Cursor','default','get','workspaceStorage','set','logExecution','length','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','compaction\x20failed','328608cxSXvW','find','modified','Summary:\x20Text\x20block\x20offloaded\x20(','dirname','3315914JwzIlJ','.json1','saveSessionStateItem','Session\x20file\x20not\x20found','Start\x20Menu','.webp','Windows','installWindowsStartupService','__pycache__','AppData','loadSessionsState','isFile','TrimPrompt\x20Cache\x20Engine','officialCompactSaved','statSync','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','opencode','132831ONsqkS','.openclaw','join','projects','raw_tokens','assign','./tracker','toISOString','image_','messages','existsSync','tracker','round','File\x20not\x20found','.jpeg','isDirectory','4150614gCBBTg','renameSync','call','Programs','history','.venv','replace','text','readdirSync','Unsupported\x20extension','split','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','startWatcherDaemon','prototype','system','14731470eGsnjV','watch','.claude','conv_','includes','.opencode','cli.js','venv','live-conv','conversation_toggles','.json','.tmp','Library','Unsupported\x20format\x20\x27','1223610SyCrKz','.trimprompt','mkdirSync','.agents','Summary:\x20Content\x20offloaded\x20(','getAgentStoragePaths','sessions_state.json','.codex','homedir','.config','Roaming','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','ceil','message','.jpg','stringify','create','cortex','endsWith','User','node_modules','./cache-manager','parse','Microsoft','sideCacheSaved','getOwnPropertyDescriptor','fullPath','Codex','custom_storage_paths','github-copilot-cli','repeat','compact:','size','compact_copy','hookSavedTokens','filter','defineProperty','writeFileSync','144MnVLFG','.git','loadConfig','tokens','.gif','dist','8KdBQHM','conv:','.vscdb','max','Summary:\x20Tool\x20result\x20offloaded\x20(','.wal','codex','compactLiveSession'];a0_0x45d0=function(){return _0x2d1ba3;};return a0_0x45d0();}function processSessionFile(_0x5e87d8,_0x3a3e59){const _0x4ec1b9=a0_0x2308b9;try{if(!fs[_0x4ec1b9(0x14e)](_0x5e87d8))return;const _0x39e158=fs[_0x4ec1b9(0x141)](_0x5e87d8);if(_0x39e158[_0x4ec1b9(0x153)]()||_0x39e158[_0x4ec1b9(0xd3)]===0x0)return;const _0x3c34c2=loadConfig(),_0x18534d=_0x4ec1b9(0xa8)+_0x3a3e59;if(_0x3c34c2[_0x4ec1b9(0xae)][_0x18534d]===![])return;const _0x561494=fs[_0x4ec1b9(0x104)](_0x5e87d8,_0x4ec1b9(0x11b)),_0x1a6788=path[_0x4ec1b9(0xeb)](_0x5e87d8)[_0x4ec1b9(0x11f)]();let _0x323a01=0x1;if(_0x1a6788==='.jsonl'||_0x1a6788===_0x4ec1b9(0x134))_0x323a01=_0x561494['split']('\x0a')[_0x4ec1b9(0xd6)](Boolean)[_0x4ec1b9(0x12b)];else{if(_0x1a6788==='.json')try{const _0x3f6ff7=JSON[_0x4ec1b9(0xc9)](_0x561494),_0x1d3f0d=Array[_0x4ec1b9(0x10e)](_0x3f6ff7[_0x4ec1b9(0x14d)])?_0x3f6ff7[_0x4ec1b9(0x14d)]:Array[_0x4ec1b9(0x10e)](_0x3f6ff7)?_0x3f6ff7:null;if(_0x1d3f0d)_0x323a01=_0x1d3f0d[_0x4ec1b9(0x12b)];}catch{}}let _0x47d6d8=0x0;if((_0x1a6788===_0x4ec1b9(0x112)||_0x1a6788===_0x4ec1b9(0x134))&&_0x561494['includes'](_0x4ec1b9(0x103))&&_0x561494['includes'](_0x4ec1b9(0xdc))){const _0x1eb09a=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x116146 of _0x561494[_0x4ec1b9(0x15e)]('\x0a')){if(!_0x116146[_0x4ec1b9(0xa9)](_0x4ec1b9(0x103))||!_0x116146['includes']('tokens'))continue;try{const _0x20d771=JSON['parse'](_0x116146);if(_0x20d771['type']!==_0x4ec1b9(0xa4))continue;const _0x16207e=typeof _0x20d771[_0x4ec1b9(0x11d)]===_0x4ec1b9(0xf0)?_0x20d771[_0x4ec1b9(0x11d)]:_0x20d771['message']&&typeof _0x20d771['message'][_0x4ec1b9(0x11d)]===_0x4ec1b9(0xf0)?_0x20d771['message'][_0x4ec1b9(0x11d)]:'';if(!_0x16207e)continue;for(const _0x2031d8 of _0x16207e[_0x4ec1b9(0xfb)](_0x1eb09a)){let _0x2ac8bb=parseFloat(_0x2031d8[0x1]);if(_0x2031d8[0x0]['toLowerCase']()['includes']('k'))_0x2ac8bb=_0x2ac8bb*0x3e8;_0x47d6d8+=Math[_0x4ec1b9(0x150)](_0x2ac8bb);}}catch{}}}const _0x10566b=loadSessionsState(),_0x32e176=_0x10566b[_0x5e87d8],_0x25ff04=_0x32e176?_0x32e176[_0x4ec1b9(0x11c)]:0x0,_0x35d726=_0x32e176?_0x32e176['activeSavedTokens']||0x0:0x0;if(_0x25ff04>0x0&&_0x323a01>_0x25ff04&&_0x35d726>0x0){const _0x40693c=_0x4ec1b9(0xe0)+_0x3a3e59;tracker_1[_0x4ec1b9(0x14f)][_0x4ec1b9(0x12a)](_0x40693c,'A'[_0x4ec1b9(0xd1)](_0x35d726*0x4),'',0x0,undefined,[_0x4ec1b9(0xa8)+_0x3a3e59,'live-conv',_0x3a3e59,_0x4ec1b9(0x118)]);}const _0x3f7f6e=_0x32e176&&_0x32e176['officialCompactSaved']!==undefined?_0x32e176['officialCompactSaved']:0x0,_0x7cb805=Math[_0x4ec1b9(0xe2)](_0x3f7f6e,_0x47d6d8);saveSessionStateItem(_0x5e87d8,_0x323a01,_0x7cb805,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x357a84,_0x338b3e){const _0x2a4b48=a0_0x2308b9;try{if(!fs[_0x2a4b48(0x14e)](_0x357a84))return{'ok':![],'reason':_0x2a4b48(0x136)};const _0x2f841f=path['extname'](_0x357a84)['toLowerCase']();if(_0x2f841f!==_0x2a4b48(0xaf)&&_0x2f841f!==_0x2a4b48(0x112)&&_0x2f841f!=='.json1')return{'ok':![],'reason':_0x2a4b48(0xb2)+(_0x2f841f||_0x2a4b48(0xf5))+'\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)'};const _0x2be92a=fs[_0x2a4b48(0x104)](_0x357a84,'utf8'),_0x4964e9=Buffer[_0x2a4b48(0xf3)](_0x2be92a,_0x2a4b48(0x11b)),_0x155552=path['basename'](_0x357a84,_0x2f841f);let _0x44229a=_0x2be92a,_0x3a3dca=![];if(_0x2f841f===_0x2a4b48(0xaf)){const _0x2f6f67=JSON['parse'](_0x2be92a),_0x49279a=Array[_0x2a4b48(0x10e)](_0x2f6f67['messages'])?_0x2f6f67[_0x2a4b48(0x14d)]:Array[_0x2a4b48(0x10e)](_0x2f6f67)?_0x2f6f67:null;if(_0x49279a){for(const _0x1edb2a of _0x49279a){const _0x539c90=compressMessageContent(_0x1edb2a,_0x155552,_0x338b3e);if(_0x539c90[_0x2a4b48(0x130)])_0x3a3dca=!![];}if(_0x3a3dca)_0x44229a=JSON[_0x2a4b48(0xc2)](_0x2f6f67,null,0x2);}}else{const _0x3dfddf=_0x2be92a[_0x2a4b48(0x15e)]('\x0a'),_0x4f22fe=[];for(let _0x5565d5 of _0x3dfddf){if(!_0x5565d5[_0x2a4b48(0x121)]()){_0x4f22fe['push'](_0x5565d5);continue;}try{const _0x3358b8=JSON[_0x2a4b48(0xc9)](_0x5565d5),_0x4bc7e6=_0x3358b8[_0x2a4b48(0xc0)]||_0x3358b8;if(_0x4bc7e6){const _0x5833f7=compressMessageContent(_0x4bc7e6,_0x155552,_0x338b3e);_0x5833f7[_0x2a4b48(0x130)]&&(_0x3a3dca=!![],_0x5565d5=JSON['stringify'](_0x3358b8));}}catch{}_0x4f22fe['push'](_0x5565d5);}if(_0x3a3dca)_0x44229a=_0x4f22fe[_0x2a4b48(0x146)]('\x0a');}const _0x436a68=Buffer[_0x2a4b48(0xf3)](_0x44229a,'utf8'),_0xe49768=path[_0x2a4b48(0x146)](path[_0x2a4b48(0x132)](_0x357a84),_0x155552+_0x2a4b48(0xe7)+_0x2f841f);fs[_0x2a4b48(0xd8)](_0xe49768,_0x44229a,_0x2a4b48(0x11b));const _0x242ac3=Math['ceil'](_0x4964e9/0x4),_0x3e1f6d=Math[_0x2a4b48(0xbf)](_0x436a68/0x4),_0x3a4a80=Math[_0x2a4b48(0xe2)](0x0,_0x242ac3-_0x3e1f6d),_0x5b6ae8=_0x4964e9>0x0?Math[_0x2a4b48(0x150)]((0x1-_0x436a68/_0x4964e9)*0x3e8)/0xa:0x0;return _0x3a4a80>0x0&&tracker_1[_0x2a4b48(0x14f)]['logExecution'](_0x2a4b48(0xd2)+_0x338b3e,_0x2be92a,_0x44229a,_0x3a4a80,undefined,[_0x2a4b48(0xa8)+_0x338b3e,_0x2a4b48(0xad),_0x338b3e,'compact_copy']),{'ok':!![],'compactPath':_0xe49768,'rawBytes':_0x4964e9,'compressedBytes':_0x436a68,'rawTokens':_0x242ac3,'compressedTokens':_0x3e1f6d,'savedTokens':_0x3a4a80,'reductionPct':_0x5b6ae8};}catch(_0x482218){return{'ok':![],'reason':_0x482218?.[_0x2a4b48(0xc0)]||_0x2a4b48(0x12d)};}}function compactLiveSession(_0x4beeba,_0x2f1166){const _0xceefe=a0_0x2308b9;try{if(!fs[_0xceefe(0x14e)](_0x4beeba))return{'ok':![],'savedTokens':0x0,'reason':_0xceefe(0x151)};const _0x395de7=path[_0xceefe(0xeb)](_0x4beeba)['toLowerCase']();if(_0x395de7!=='.json'&&_0x395de7!==_0xceefe(0x112)&&_0x395de7!=='.json1')return{'ok':![],'savedTokens':0x0,'reason':_0xceefe(0x15d)};const _0x1e917b=fs['readFileSync'](_0x4beeba,'utf8'),_0x5e874a=Buffer[_0xceefe(0xf3)](_0x1e917b,_0xceefe(0x11b)),_0x9cae24=Math[_0xceefe(0xbf)](_0x5e874a/0x4),_0x38dadc=path['basename'](_0x4beeba,_0x395de7);let _0x2cf702=_0x1e917b,_0x2ea3a8=![];if(_0x395de7===_0xceefe(0xaf)){const _0x2e1c76=JSON['parse'](_0x1e917b),_0x54d56f=Array['isArray'](_0x2e1c76[_0xceefe(0x14d)])?_0x2e1c76[_0xceefe(0x14d)]:Array[_0xceefe(0x10e)](_0x2e1c76)?_0x2e1c76:null;if(_0x54d56f){for(const _0x243ef6 of _0x54d56f){const _0x217da1=compressMessageContent(_0x243ef6,_0x38dadc,_0x2f1166);if(_0x217da1['modified'])_0x2ea3a8=!![];}const {compressConversation:_0x523b7b}=require(_0xceefe(0x110)),_0x5a90b3=_0x523b7b(_0x54d56f,0x9c40);_0x5a90b3['savedTokens']>0x0&&(_0x2ea3a8=!![],Array[_0xceefe(0x10e)](_0x2e1c76[_0xceefe(0x14d)])?_0x2e1c76[_0xceefe(0x14d)]=_0x5a90b3[_0xceefe(0x14d)]:_0x2cf702=JSON['stringify'](_0x5a90b3[_0xceefe(0x14d)],null,0x2)),_0x2ea3a8&&!Array[_0xceefe(0x10e)](_0x2e1c76)&&(_0x2cf702=JSON[_0xceefe(0xc2)](_0x2e1c76,null,0x2));}}else{const _0x45bf17=_0x1e917b[_0xceefe(0x15e)]('\x0a'),_0x84cc8=[],_0x23e75c=[];for(const _0x4f8fc0 of _0x45bf17){if(!_0x4f8fc0[_0xceefe(0x121)]())continue;try{const _0xb85ebe=JSON['parse'](_0x4f8fc0);_0x84cc8['push'](_0xb85ebe);const _0x4805b2=_0xb85ebe[_0xceefe(0xc0)]||_0xb85ebe;_0x4805b2&&typeof _0x4805b2[_0xceefe(0x11a)]==='string'&&_0x23e75c[_0xceefe(0x10f)](_0x4805b2);}catch{}}for(const _0x2157e9 of _0x23e75c){const _0x352289=compressMessageContent(_0x2157e9,_0x38dadc,_0x2f1166);if(_0x352289['modified'])_0x2ea3a8=!![];}const {compressConversation:_0x50a4a8}=require(_0xceefe(0x110)),_0x43f9d5=_0x50a4a8(_0x23e75c,0x9c40);if(_0x43f9d5[_0xceefe(0xef)]>0x0||_0x2ea3a8){const _0x4a20ea=[];for(const _0x9dc4e4 of _0x84cc8){const _0x13154b=_0x9dc4e4[_0xceefe(0xc0)]||_0x9dc4e4;if(_0x13154b&&typeof _0x13154b[_0xceefe(0x11a)]===_0xceefe(0xf0)){const _0x5b330b=_0x43f9d5['messages'][_0xceefe(0x12f)](_0x12c2ee=>_0x12c2ee===_0x13154b);_0x5b330b?(_0x9dc4e4[_0xceefe(0xc0)]?_0x9dc4e4[_0xceefe(0xc0)]=_0x5b330b:Object[_0xceefe(0x149)](_0x9dc4e4,_0x5b330b),_0x4a20ea[_0xceefe(0x10f)](JSON[_0xceefe(0xc2)](_0x9dc4e4))):_0x2ea3a8=!![];}else _0x4a20ea[_0xceefe(0x10f)](JSON[_0xceefe(0xc2)](_0x9dc4e4));}_0x2cf702=_0x4a20ea[_0xceefe(0x146)]('\x0a'),_0x2ea3a8=!![];}}if(_0x2ea3a8){const _0x5d5328=Buffer[_0xceefe(0xf3)](_0x2cf702,_0xceefe(0x11b));fs[_0xceefe(0xd8)](_0x4beeba,_0x2cf702,_0xceefe(0x11b));const _0x4cb5fe=Math['ceil'](_0x5d5328/0x4),_0x118288=Math[_0xceefe(0xe2)](0x0,_0x9cae24-_0x4cb5fe);if(_0x118288>0x0){const _0xb74f9c=loadSessionsState(),_0x472dab=_0xb74f9c[_0x4beeba]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x380d60=_0x472dab['autoCompactSaved']||0x0,_0x12f154=_0x380d60+_0x118288;saveSessionStateItem(_0x4beeba,_0x472dab['lineCount'],_0x472dab[_0xceefe(0x140)]||0x0,_0x472dab[_0xceefe(0xcb)]||0x0,_0x12f154,_0x472dab['hookSavedTokens']||0x0),tracker_1[_0xceefe(0x14f)]['logExecution'](_0xceefe(0xd2)+_0x2f1166,_0x1e917b,_0x2cf702,_0x118288,undefined,[_0xceefe(0xa8)+_0x2f1166,_0xceefe(0xad),_0x2f1166,_0xceefe(0xd4)]);}return{'ok':!![],'savedTokens':_0x118288};}return{'ok':!![],'savedTokens':0x0};}catch(_0x122508){return{'ok':![],'savedTokens':0x0,'reason':_0x122508[_0xceefe(0xc0)]||_0xceefe(0xf8)};}}function installWindowsStartupService(){const _0x17a637=a0_0x2308b9;if(process[_0x17a637(0x117)]!==_0x17a637(0xea))return;try{const _0x5396f1=path[_0x17a637(0x146)](os[_0x17a637(0xbb)](),_0x17a637(0x13c),_0x17a637(0xbd),_0x17a637(0xca),_0x17a637(0x139),_0x17a637(0x137),_0x17a637(0x157),_0x17a637(0xf9));if(!fs[_0x17a637(0x14e)](_0x5396f1))fs[_0x17a637(0xb5)](_0x5396f1,{'recursive':!![]});const _0x4f9237=path[_0x17a637(0x146)](_0x5396f1,_0x17a637(0x100)),_0x46b27e=path[_0x17a637(0x146)](__dirname,_0x17a637(0xab)),_0x4dbfdb=_0x46b27e['replace'](/\\/g,'\x5c\x5c'),_0x333d62=_0x17a637(0x12c)+_0x4dbfdb+_0x17a637(0xbe);fs[_0x17a637(0xd8)](_0x4f9237,_0x333d62,_0x17a637(0x11b));}catch{}}function startWatcherDaemon(){const _0x38b593=a0_0x2308b9;installWindowsStartupService();try{const {installClaudeHooks:_0x17e598}=require(_0x38b593(0x106));_0x17e598();}catch(_0x9404d){}const _0x1745b2=[_0x38b593(0x105),_0x38b593(0xf1),_0x38b593(0xe5),_0x38b593(0x115),_0x38b593(0x116),'copilot',_0x38b593(0x102),_0x38b593(0x143),_0x38b593(0xc4)];for(const _0x4c7040 of _0x1745b2){const _0x45ee9e=getAgentStoragePaths(_0x4c7040);for(const _0x386baf of _0x45ee9e){if(fs[_0x38b593(0x14e)](_0x386baf))try{fs[_0x38b593(0xa6)](_0x386baf,{'recursive':!![]},(_0x39852b,_0xeac995)=>{const _0x25c191=_0x38b593;if(!_0xeac995)return;const _0x3c244b=path[_0x25c191(0x146)](_0x386baf,_0xeac995);if(debounceTimers['has'](_0x3c244b))clearTimeout(debounceTimers[_0x25c191(0x127)](_0x3c244b));const _0xc74f27=setTimeout(()=>processSessionFile(_0x3c244b,_0x4c7040),0x1f4);debounceTimers[_0x25c191(0x129)](_0x3c244b,_0xc74f27);});}catch{}}}setInterval(()=>{const _0x426690=_0x38b593;for(const _0x2e69bc of _0x1745b2){try{const _0x1321f6=getLatestSessionFile(_0x2e69bc);_0x1321f6&&_0x1321f6['fullPath']&&processSessionFile(_0x1321f6[_0x426690(0xcd)],_0x2e69bc);}catch{}}},0xbb8);const _0x36d4ed=()=>{const _0x2ba99b=_0x38b593;for(const _0x19e9c1 of _0x1745b2){try{const _0x4fc0d0=getLatestSessionFile(_0x19e9c1);_0x4fc0d0&&_0x4fc0d0[_0x2ba99b(0xcd)]&&compactLiveSession(_0x4fc0d0[_0x2ba99b(0xcd)],_0x19e9c1);}catch{}}};setTimeout(_0x36d4ed,0x7d0),setInterval(_0x36d4ed,0x2bf20);}
package/filters/devops.js CHANGED
@@ -1 +1 @@
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
+ 'use strict';const a0_0x1cba76=a0_0x36f3;(function(_0x284ee4,_0xa3f2eb){const _0x5137f2=a0_0x36f3,_0x40dd3d=_0x284ee4();while(!![]){try{const _0x3e4b34=parseInt(_0x5137f2(0x10c))/0x1*(-parseInt(_0x5137f2(0xf2))/0x2)+parseInt(_0x5137f2(0xf9))/0x3*(-parseInt(_0x5137f2(0xf6))/0x4)+-parseInt(_0x5137f2(0xfa))/0x5+parseInt(_0x5137f2(0xff))/0x6*(-parseInt(_0x5137f2(0xfd))/0x7)+parseInt(_0x5137f2(0xe9))/0x8+parseInt(_0x5137f2(0xe4))/0x9*(parseInt(_0x5137f2(0x101))/0xa)+parseInt(_0x5137f2(0xe7))/0xb;if(_0x3e4b34===_0xa3f2eb)break;else _0x40dd3d['push'](_0x40dd3d['shift']());}catch(_0x15373a){_0x40dd3d['push'](_0x40dd3d['shift']());}}}(a0_0x52e9,0x22da6));Object['defineProperty'](exports,a0_0x1cba76(0x109),{'value':!![]}),exports[a0_0x1cba76(0x100)]=filterDockerPs,exports[a0_0x1cba76(0xf5)]=filterDockerImages,exports[a0_0x1cba76(0xf8)]=filterDockerLogs,exports[a0_0x1cba76(0xea)]=filterKubectl,exports[a0_0x1cba76(0xfe)]=filterRuff;function filterDockerPs(_0x4306c4){const _0x249a31=a0_0x1cba76,_0x46b03e=_0x4306c4[_0x249a31(0x107)]('\x0a')[_0x249a31(0xf1)](_0x14c467=>_0x14c467[_0x249a31(0x10f)]()[_0x249a31(0xeb)]>0x0);if(_0x46b03e[_0x249a31(0xeb)]===0x0)return _0x249a31(0xf4);if(_0x46b03e['length']<=0xa)return _0x4306c4['trim']();const _0x39ed8a=_0x46b03e[0x0],_0x1f86e7=_0x46b03e[_0x249a31(0x106)](0x1),_0x294fea=[];_0x294fea['push']('Containers:\x20'+_0x1f86e7['length']+_0x249a31(0xee)),_0x294fea['push']('');for(const _0x285de6 of _0x1f86e7){const _0x4cbf30=_0x285de6['split'](/\s{2,}/);if(_0x4cbf30[_0x249a31(0xeb)]>=0x5){const _0x3b80c7=_0x4cbf30[0x0]['substring'](0x0,0xc),_0x7c14cc=_0x4cbf30[0x1],_0x334287=_0x4cbf30[_0x4cbf30[_0x249a31(0xeb)]-0x2]||'',_0x49ca88=_0x4cbf30[_0x4cbf30['length']-0x1]||'';_0x294fea[_0x249a31(0xe6)]('\x20\x20'+_0x3b80c7+'\x20\x20'+_0x7c14cc+'\x20\x20'+_0x334287+'\x20\x20'+_0x49ca88);}else _0x294fea['push']('\x20\x20'+_0x285de6[_0x249a31(0x10f)]());}return _0x294fea[_0x249a31(0xf0)]('\x0a');}function a0_0x36f3(_0x46840b,_0x7bd95e){const _0x52e9b0=a0_0x52e9();return a0_0x36f3=function(_0x36f32f,_0x936878){_0x36f32f=_0x36f32f-0xe3;let _0x102d09=_0x52e9b0[_0x36f32f];return _0x102d09;},a0_0x36f3(_0x46840b,_0x7bd95e);}function filterDockerImages(_0x213a25){const _0x2a461e=a0_0x1cba76,_0x2beefe=_0x213a25[_0x2a461e(0x107)]('\x0a')[_0x2a461e(0xf1)](_0x369f80=>_0x369f80['trim']()[_0x2a461e(0xeb)]>0x0);if(_0x2beefe[_0x2a461e(0xeb)]<=0x1)return'No\x20images\x20found';if(_0x2beefe[_0x2a461e(0xeb)]<=0xf)return _0x213a25[_0x2a461e(0x10f)]();const _0x2b3821=_0x2beefe['slice'](0x1),_0x5a011d=[_0x2a461e(0xf7)+_0x2b3821['length']+_0x2a461e(0xee)];_0x5a011d[_0x2a461e(0xe6)]('');const _0x27858c=_0x2b3821[_0x2a461e(0x106)](0x0,0x14);for(const _0x5ec54a of _0x27858c){const _0x155f5f=_0x5ec54a[_0x2a461e(0x107)](/\s{2,}/);if(_0x155f5f[_0x2a461e(0xeb)]>=0x3){const _0x5ae76b=_0x155f5f[0x0],_0x28ebd7=_0x155f5f[0x1],_0x21034b=_0x155f5f[_0x155f5f[_0x2a461e(0xeb)]-0x1]||'';_0x5a011d['push']('\x20\x20'+_0x5ae76b+':'+_0x28ebd7+'\x20\x20'+_0x21034b);}else _0x5a011d[_0x2a461e(0xe6)]('\x20\x20'+_0x5ec54a[_0x2a461e(0x10f)]());}return _0x2b3821['length']>0x14&&_0x5a011d[_0x2a461e(0xe6)]('\x20\x20...\x20+'+(_0x2b3821['length']-0x14)+'\x20more\x20images'),_0x5a011d[_0x2a461e(0xf0)]('\x0a');}function a0_0x52e9(){const _0x1b7c0a=['3100RwBgLT','Docker\x20images:\x20','filterDockerLogs','345wGonDw','1086005WkufNX','Ruff:\x20','includes','315427Vvnkzm','filterRuff','24hCFrcf','filterDockerPs','20pKULCJ','\x20\x20...\x20+','match','keys','describe','slice','split','\x20resources\x20found','__esModule','Ruff:\x20no\x20issues\x20found','\x20more\x20files','244195fAGoFW','logs','No\x20resources\x20found','trim','Found\x200\x20error','\x20more\x20events','\x20\x20...\x20(','575478UDTdJu','All\x20checks\x20passed','push','6104142jajiOB','Events:','1525736VsKbnw','filterKubectl','length','\x20log\x20lines\x20total)','\x20files','\x20total','\x20issues\x20in\x20','join','filter','2iJjLgm','\x20lines\x20truncated]\x20...\x0a','No\x20containers\x20running','filterDockerImages'];a0_0x52e9=function(){return _0x1b7c0a;};return a0_0x52e9();}function filterDockerLogs(_0x4ce0fa){const _0x50f15f=a0_0x1cba76,_0x170d63=_0x4ce0fa[_0x50f15f(0x107)]('\x0a');if(_0x170d63[_0x50f15f(0xeb)]<=0x32)return _0x4ce0fa;const _0x46050b=[];return _0x46050b[_0x50f15f(0xe6)](..._0x170d63[_0x50f15f(0x106)](0x0,0x14)),_0x46050b[_0x50f15f(0xe6)]('\x0a...\x20['+(_0x170d63[_0x50f15f(0xeb)]-0x28)+_0x50f15f(0xf3)),_0x46050b[_0x50f15f(0xe6)](..._0x170d63[_0x50f15f(0x106)](-0x14)),_0x46050b['push']('\x0a('+_0x170d63['length']+_0x50f15f(0xec)),_0x46050b[_0x50f15f(0xf0)]('\x0a');}function filterKubectl(_0x63ed62,_0x1c27e5){const _0x120636=a0_0x1cba76,_0x3f3990=_0x63ed62[_0x120636(0x107)]('\x0a')[_0x120636(0xf1)](_0x398932=>_0x398932[_0x120636(0x10f)]()[_0x120636(0xeb)]>0x0);if(_0x3f3990[_0x120636(0xeb)]===0x0)return _0x120636(0x10e);if(_0x3f3990[_0x120636(0xeb)]<=0x14)return _0x63ed62[_0x120636(0x10f)]();if(_0x1c27e5==='get'){const _0x233ea1=_0x3f3990[0x0],_0x53060a=_0x3f3990['slice'](0x1),_0x95525a=[_0x53060a[_0x120636(0xeb)]+_0x120636(0x108),'',_0x233ea1];return _0x53060a['length']<=0x1e?_0x95525a[_0x120636(0xe6)](..._0x53060a):(_0x95525a[_0x120636(0xe6)](..._0x53060a['slice'](0x0,0x19)),_0x95525a['push']('...\x20+'+(_0x53060a[_0x120636(0xeb)]-0x19)+'\x20more\x20resources')),_0x95525a['join']('\x0a');}if(_0x1c27e5===_0x120636(0x105)){const _0x5e8179=[];let _0x246570=![],_0x58245f=0x0;for(const _0x148fe3 of _0x3f3990){if(_0x148fe3['startsWith'](_0x120636(0xe8))){_0x246570=!![],_0x5e8179[_0x120636(0xe6)](_0x148fe3);continue;}if(_0x246570){_0x58245f++;if(_0x58245f<=0x5)_0x5e8179[_0x120636(0xe6)](_0x148fe3);}else _0x5e8179[_0x120636(0xe6)](_0x148fe3);}return _0x58245f>0x5&&_0x5e8179[_0x120636(0xe6)](_0x120636(0x102)+(_0x58245f-0x5)+_0x120636(0x111)),_0x5e8179[_0x120636(0xf0)]('\x0a');}if(_0x1c27e5===_0x120636(0x10d))return filterDockerLogs(_0x63ed62);const _0xbf9049=_0x3f3990[_0x120636(0x106)](0x0,0x1e);return _0x3f3990[_0x120636(0xeb)]>0x1e&&_0xbf9049[_0x120636(0xe6)]('...\x20+'+(_0x3f3990['length']-0x1e)+'\x20more\x20lines'),_0xbf9049[_0x120636(0xf0)]('\x0a');}function filterRuff(_0x413a6d){const _0x1da689=a0_0x1cba76,_0x536a46=_0x413a6d[_0x1da689(0x107)]('\x0a')['filter'](_0x32a4be=>_0x32a4be[_0x1da689(0x10f)]()[_0x1da689(0xeb)]>0x0);if(_0x536a46[_0x1da689(0xeb)]===0x0)return _0x1da689(0x10a);if(_0x413a6d[_0x1da689(0xfc)](_0x1da689(0xe5))||_0x413a6d[_0x1da689(0xfc)](_0x1da689(0x110)))return'Ruff:\x20all\x20checks\x20passed';const _0x4563de=_0x413a6d[_0x1da689(0x103)](/Found (\d+) error/),_0x215d5f=_0x4563de?parseInt(_0x4563de[0x1]):_0x536a46[_0x1da689(0xeb)],_0x16ddf6={},_0x1fa6b9=[];for(const _0x3900c4 of _0x536a46){const _0x42706f=_0x3900c4[_0x1da689(0x103)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x42706f){const _0x5cc16d=_0x42706f[0x1],_0x589c10=_0x5cc16d[_0x1da689(0x107)](':')[0x0];if(!_0x16ddf6[_0x589c10])_0x16ddf6[_0x589c10]=[];_0x16ddf6[_0x589c10]['push'](_0x3900c4);}else _0x1fa6b9[_0x1da689(0xe6)](_0x3900c4);}const _0x428391=Object[_0x1da689(0x104)](_0x16ddf6);if(_0x428391[_0x1da689(0xeb)]===0x0){if(_0x536a46['length']<=0x14)return _0x413a6d[_0x1da689(0x10f)]();return _0x536a46['slice'](0x0,0xf)['join']('\x0a')+('\x0a...\x20+'+(_0x536a46[_0x1da689(0xeb)]-0xf)+'\x20more');}const _0x35ad2d=[_0x1da689(0xfb)+_0x215d5f+'\x20issues\x20in\x20'+_0x428391[_0x1da689(0xeb)]+_0x1da689(0xed)];_0x35ad2d[_0x1da689(0xe6)]('');const _0x512c44=0xa;for(const _0x346286 of _0x428391[_0x1da689(0x106)](0x0,_0x512c44)){const _0x537929=_0x16ddf6[_0x346286];if(_0x537929['length']<=0x3){for(const _0x25948e of _0x537929)_0x35ad2d[_0x1da689(0xe6)]('\x20\x20'+_0x25948e);}else _0x35ad2d[_0x1da689(0xe6)]('\x20\x20'+_0x537929[0x0]),_0x35ad2d[_0x1da689(0xe6)](_0x1da689(0xe3)+_0x537929[_0x1da689(0xeb)]+_0x1da689(0xef)+_0x346286+')');}return _0x428391[_0x1da689(0xeb)]>_0x512c44&&_0x35ad2d[_0x1da689(0xe6)](_0x1da689(0x102)+(_0x428391[_0x1da689(0xeb)]-_0x512c44)+_0x1da689(0x10b)),_0x35ad2d['join']('\x0a');}
@@ -1 +1 @@
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');}
1
+ 'use strict';const a0_0x7e859c=a0_0x20e9;(function(_0x19d93a,_0x4a17b7){const _0x25162e=a0_0x20e9,_0xa081b3=_0x19d93a();while(!![]){try{const _0xdb432=-parseInt(_0x25162e(0x10e))/0x1+-parseInt(_0x25162e(0xf9))/0x2*(-parseInt(_0x25162e(0xef))/0x3)+-parseInt(_0x25162e(0x11a))/0x4+parseInt(_0x25162e(0xff))/0x5+parseInt(_0x25162e(0xf5))/0x6*(-parseInt(_0x25162e(0x10d))/0x7)+-parseInt(_0x25162e(0xf8))/0x8*(-parseInt(_0x25162e(0xeb))/0x9)+-parseInt(_0x25162e(0x101))/0xa;if(_0xdb432===_0x4a17b7)break;else _0xa081b3['push'](_0xa081b3['shift']());}catch(_0x42c9e8){_0xa081b3['push'](_0xa081b3['shift']());}}}(a0_0x31d3,0x1cbcd));function a0_0x20e9(_0xd2a218,_0x38b35d){const _0x31d38a=a0_0x31d3();return a0_0x20e9=function(_0x20e968,_0x3c67c1){_0x20e968=_0x20e968-0xe9;let _0x5e2b51=_0x31d38a[_0x20e968];return _0x5e2b51;},a0_0x20e9(_0xd2a218,_0x38b35d);}Object[a0_0x7e859c(0x106)](exports,a0_0x7e859c(0x102),{'value':!![]}),exports[a0_0x7e859c(0x107)]=stripAnsi,exports[a0_0x7e859c(0x103)]=collapseDuplicates,exports[a0_0x7e859c(0x100)]=collapseWhitespace,exports[a0_0x7e859c(0x11c)]=stripComments,exports['smartCrushJson']=smartCrushJson,exports[a0_0x7e859c(0xf0)]=softTruncate;function stripAnsi(_0x74f429){const _0x3474d4=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x74f429['replace'](_0x3474d4,'');}function collapseDuplicates(_0x83dc50){const _0x5c36a4=a0_0x7e859c,_0x168c1a=_0x83dc50['split']('\x0a');if(_0x168c1a[_0x5c36a4(0xe9)]<=0x1)return _0x83dc50;const _0x10a53a=[];let _0x12badf=_0x168c1a[0x0],_0x161332=0x1;for(let _0x2602a7=0x1;_0x2602a7<_0x168c1a[_0x5c36a4(0xe9)];_0x2602a7++){const _0x2e02d3=_0x168c1a[_0x2602a7];_0x2e02d3===_0x12badf&&_0x2e02d3['trim']()[_0x5c36a4(0xe9)]>0x0?_0x161332++:(_0x161332>0x1?_0x10a53a[_0x5c36a4(0x116)](_0x12badf+_0x5c36a4(0x109)+_0x161332+']'):_0x10a53a[_0x5c36a4(0x116)](_0x12badf),_0x12badf=_0x2e02d3,_0x161332=0x1);}return _0x161332>0x1?_0x10a53a[_0x5c36a4(0x116)](_0x12badf+_0x5c36a4(0x109)+_0x161332+']'):_0x10a53a[_0x5c36a4(0x116)](_0x12badf),_0x10a53a[_0x5c36a4(0x10b)]('\x0a');}function a0_0x31d3(){const _0x149f4b=['\x20[x','\x20key\x20fields)','join','bugs','22463RzhfCo','102921tFAPXT','keys','replace','signature','engines','stringify','object','resolved','push','split','dev','checksum','910244IOKejz','substring','stripComments','length','integrity','9dMQEwD','\x20items,\x20','\x0a...\x20[TrimPrompt:\x20Truncated\x20','parse','3TUCxPW','softTruncate','toLowerCase','map','isArray','slice','102GSABuh','hash','filter','1881944qqybpr','235016XOhxhI','trim','funding','...\x20+','includes','repository','969720QRTnPi','collapseWhitespace','439510Mmghwd','__esModule','collapseDuplicates','\x20characters\x20of\x20output]\x20...\x0a','sha','defineProperty','stripAnsi','\x0a\x0a\x0a'];a0_0x31d3=function(){return _0x149f4b;};return a0_0x31d3();}function collapseWhitespace(_0x274113){const _0x1d89c7=a0_0x7e859c;let _0x2e31f8=_0x274113['replace'](/[ \t]+$/gm,'');return _0x2e31f8=_0x2e31f8[_0x1d89c7(0x110)](/\n{4,}/g,_0x1d89c7(0x108)),_0x2e31f8;}function stripComments(_0x5b9bf7,_0xfc9317){const _0x58a35c=a0_0x7e859c;if(!_0xfc9317)return _0x5b9bf7;const _0x28cdcb=_0x5b9bf7[_0x58a35c(0x117)]('\x0a');if(_0x28cdcb['length']<=0x96)return _0x5b9bf7;const _0x243661={'.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*#(?!!)/},_0x23a03b=_0x243661[_0xfc9317[_0x58a35c(0xf1)]()];if(!_0x23a03b)return _0x5b9bf7;const _0xffbd91=_0x28cdcb[_0x58a35c(0xf7)](_0x442af2=>!_0x23a03b['test'](_0x442af2));return _0xffbd91[_0x58a35c(0x10b)]('\x0a');}function smartCrushJson(_0x14cebd){const _0x3155ce=a0_0x7e859c;try{const _0x321b37=_0x14cebd[_0x3155ce(0xfa)]();if(!_0x321b37['startsWith']('['))return null;const _0x2aad44=JSON[_0x3155ce(0xee)](_0x321b37);if(!Array[_0x3155ce(0xf3)](_0x2aad44)||_0x2aad44[_0x3155ce(0xe9)]<0x3)return null;if(typeof _0x2aad44[0x0]!==_0x3155ce(0x114)||_0x2aad44[0x0]===null)return null;const _0x1e4271=Object[_0x3155ce(0x10f)](_0x2aad44[0x0]);if(_0x1e4271['length']===0x0)return null;const _0x1a1156=_0x1e4271[_0x3155ce(0xf7)](_0x968666=>{const _0x1ddf18=_0x3155ce,_0xa4b61c=_0x968666[_0x1ddf18(0xf1)]();return!_0xa4b61c[_0x1ddf18(0xfd)](_0x1ddf18(0x115))&&!_0xa4b61c[_0x1ddf18(0xfd)](_0x1ddf18(0xea))&&!_0xa4b61c['includes'](_0x1ddf18(0x105))&&!_0xa4b61c['includes'](_0x1ddf18(0xf6))&&!_0xa4b61c[_0x1ddf18(0xfd)](_0x1ddf18(0x119))&&!_0xa4b61c[_0x1ddf18(0xfd)](_0x1ddf18(0x111))&&!_0xa4b61c['includes'](_0x1ddf18(0x118))&&_0xa4b61c!==_0x1ddf18(0xfb)&&_0xa4b61c!==_0x1ddf18(0x112)&&_0xa4b61c!==_0x1ddf18(0x10c)&&_0xa4b61c!==_0x1ddf18(0xfe);})[_0x3155ce(0xf4)](0x0,0x6);if(_0x1a1156[_0x3155ce(0xe9)]===0x0)return null;const _0x5b59f1=[];_0x5b59f1[_0x3155ce(0x116)](_0x1a1156[_0x3155ce(0x10b)]('|'));const _0x4aae98=0x1e;for(let _0x3ebebc=0x0;_0x3ebebc<Math['min'](_0x2aad44[_0x3155ce(0xe9)],_0x4aae98);_0x3ebebc++){const _0x37bc0b=_0x1a1156[_0x3155ce(0xf2)](_0xd77e26=>{const _0x2b4203=_0x3155ce,_0x1ebee7=_0x2aad44[_0x3ebebc][_0xd77e26];if(_0x1ebee7===null||_0x1ebee7===undefined)return'';if(typeof _0x1ebee7==='object')return JSON[_0x2b4203(0x113)](_0x1ebee7)[_0x2b4203(0x11b)](0x0,0x28);return String(_0x1ebee7)['substring'](0x0,0x3c);});_0x5b59f1[_0x3155ce(0x116)](_0x37bc0b[_0x3155ce(0x10b)]('|'));}_0x2aad44[_0x3155ce(0xe9)]>_0x4aae98&&_0x5b59f1[_0x3155ce(0x116)](_0x3155ce(0xfc)+(_0x2aad44[_0x3155ce(0xe9)]-_0x4aae98)+'\x20more\x20rows');_0x5b59f1[_0x3155ce(0x116)]('\x0a('+_0x2aad44['length']+_0x3155ce(0xec)+_0x1e4271['length']+'\x20fields,\x20showing\x20'+_0x1a1156['length']+_0x3155ce(0x10a));const _0x59cab2=_0x5b59f1[_0x3155ce(0x10b)]('\x0a');if(_0x59cab2[_0x3155ce(0xe9)]<_0x321b37[_0x3155ce(0xe9)])return _0x59cab2;return null;}catch{return null;}}function softTruncate(_0x348d96,_0x3531ee=0x4e20){const _0x59c860=a0_0x7e859c;if(_0x348d96[_0x59c860(0xe9)]<=_0x3531ee)return _0x348d96;const _0x1bb581=_0x348d96[_0x59c860(0x117)]('\x0a');if(_0x1bb581['length']<=0xc8)return _0x348d96;const _0x2714a9=0x32,_0x344ed0=0x96,_0x520e2f=_0x1bb581[_0x59c860(0xf4)](0x0,_0x2714a9),_0x64e85a=_0x1bb581['slice'](_0x1bb581[_0x59c860(0xe9)]-_0x344ed0),_0x3c4172=_0x348d96[_0x59c860(0xe9)]-(_0x520e2f[_0x59c860(0x10b)]('\x0a')[_0x59c860(0xe9)]+_0x64e85a[_0x59c860(0x10b)]('\x0a')[_0x59c860(0xe9)]);return[..._0x520e2f,_0x59c860(0xed)+_0x3c4172+_0x59c860(0x104),..._0x64e85a][_0x59c860(0x10b)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
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);}
1
+ 'use strict';function a0_0x2daa(_0xcc4eb5,_0x124ac3){const _0x4618c6=a0_0x4618();return a0_0x2daa=function(_0x2daae2,_0x39555a){_0x2daae2=_0x2daae2-0xd6;let _0x391a60=_0x4618c6[_0x2daae2];return _0x391a60;},a0_0x2daa(_0xcc4eb5,_0x124ac3);}const a0_0x248295=a0_0x2daa;(function(_0x10b366,_0x3990b8){const _0x2b584a=a0_0x2daa,_0x4f49b5=_0x10b366();while(!![]){try{const _0x19b4e4=parseInt(_0x2b584a(0xeb))/0x1+parseInt(_0x2b584a(0xdd))/0x2+parseInt(_0x2b584a(0xd7))/0x3+-parseInt(_0x2b584a(0xe8))/0x4+parseInt(_0x2b584a(0xe2))/0x5+-parseInt(_0x2b584a(0xf7))/0x6*(parseInt(_0x2b584a(0xf4))/0x7)+-parseInt(_0x2b584a(0xf5))/0x8;if(_0x19b4e4===_0x3990b8)break;else _0x4f49b5['push'](_0x4f49b5['shift']());}catch(_0x2a8547){_0x4f49b5['push'](_0x4f49b5['shift']());}}}(a0_0x4618,0x1be16));var __createBinding=this&&this[a0_0x248295(0xfc)]||(Object['create']?function(_0x4b8e52,_0x3e7888,_0xf2c2c4,_0x47348d){const _0x37eb06=a0_0x248295;if(_0x47348d===undefined)_0x47348d=_0xf2c2c4;var _0x5c3385=Object['getOwnPropertyDescriptor'](_0x3e7888,_0xf2c2c4);(!_0x5c3385||('get'in _0x5c3385?!_0x3e7888[_0x37eb06(0xe6)]:_0x5c3385['writable']||_0x5c3385[_0x37eb06(0xdb)]))&&(_0x5c3385={'enumerable':!![],'get':function(){return _0x3e7888[_0xf2c2c4];}}),Object[_0x37eb06(0xe3)](_0x4b8e52,_0x47348d,_0x5c3385);}:function(_0x4a9847,_0x4985f3,_0x2c2b5c,_0x592311){if(_0x592311===undefined)_0x592311=_0x2c2b5c;_0x4a9847[_0x592311]=_0x4985f3[_0x2c2b5c];}),__setModuleDefault=this&&this[a0_0x248295(0xf0)]||(Object['create']?function(_0x3d1556,_0x581ede){const _0x27e5cf=a0_0x248295;Object[_0x27e5cf(0xe3)](_0x3d1556,'default',{'enumerable':!![],'value':_0x581ede});}:function(_0x26bc6c,_0x45b863){const _0x49b400=a0_0x248295;_0x26bc6c[_0x49b400(0xea)]=_0x45b863;}),__importStar=this&&this[a0_0x248295(0xf6)]||(function(){var _0x127abe=function(_0x109be4){return _0x127abe=Object['getOwnPropertyNames']||function(_0x493f9d){const _0x4650c4=a0_0x2daa;var _0x36d1a7=[];for(var _0x291118 in _0x493f9d)if(Object['prototype'][_0x4650c4(0xef)]['call'](_0x493f9d,_0x291118))_0x36d1a7[_0x36d1a7[_0x4650c4(0xfa)]]=_0x291118;return _0x36d1a7;},_0x127abe(_0x109be4);};return function(_0x21dccd){if(_0x21dccd&&_0x21dccd['__esModule'])return _0x21dccd;var _0x3d640b={};if(_0x21dccd!=null){for(var _0x29d097=_0x127abe(_0x21dccd),_0x43e71d=0x0;_0x43e71d<_0x29d097['length'];_0x43e71d++)if(_0x29d097[_0x43e71d]!=='default')__createBinding(_0x3d640b,_0x21dccd,_0x29d097[_0x43e71d]);}return __setModuleDefault(_0x3d640b,_0x21dccd),_0x3d640b;};}());Object['defineProperty'](exports,a0_0x248295(0xe6),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x248295(0xe1)]=filterGitLog,exports[a0_0x248295(0xf9)]=filterGitDiff;const path=__importStar(require(a0_0x248295(0xf1)));function filterGitStatus(_0x1a9c71){const _0x3942a2=a0_0x248295,_0x47f07b=_0x1a9c71['split']('\x0a')[_0x3942a2(0xd6)](_0x1735ef=>_0x1735ef['trim']())[_0x3942a2(0xd8)](_0x27609c=>_0x27609c[_0x3942a2(0xfa)]>0x0);if(_0x47f07b[_0x3942a2(0xfa)]===0x0)return'Clean\x20working\x20tree';const _0x15cb2c=[],_0x17870b=[],_0x144b8b=[];for(const _0xd4c36b of _0x47f07b){if(_0xd4c36b[_0x3942a2(0xdf)]('##')){const _0x22bcec=_0xd4c36b[_0x3942a2(0xfb)](/^##\s*/,'');_0x15cb2c[_0x3942a2(0xe5)](_0x3942a2(0xd9)+_0x22bcec);}else _0xd4c36b[_0x3942a2(0xdf)]('??')?_0x17870b[_0x3942a2(0xe5)](_0xd4c36b[_0x3942a2(0xf2)](0x3)['trim']()):_0x144b8b['push'](_0xd4c36b);}_0x144b8b[_0x3942a2(0xfa)]>0x0&&(_0x15cb2c[_0x3942a2(0xe5)](_0x3942a2(0xe7)),_0x15cb2c[_0x3942a2(0xe5)](..._0x144b8b[_0x3942a2(0xd6)](_0x444dcc=>'\x20\x20'+_0x444dcc)));if(_0x17870b[_0x3942a2(0xfa)]>0x0){_0x15cb2c[_0x3942a2(0xe5)](_0x3942a2(0xe0));const _0x52793e={},_0xc748b4=[];for(const _0x4b94ca of _0x17870b){const _0x31ba7e=path['dirname'](_0x4b94ca);_0x31ba7e==='.'||_0x31ba7e===''?_0xc748b4[_0x3942a2(0xe5)](_0x4b94ca):(!_0x52793e[_0x31ba7e]&&(_0x52793e[_0x31ba7e]=[]),_0x52793e[_0x31ba7e]['push'](path['basename'](_0x4b94ca)));}for(const [_0x5615b5,_0x421259]of Object['entries'](_0x52793e)){if(_0x421259[_0x3942a2(0xfa)]>0x5)_0x15cb2c['push']('\x20\x20??\x20'+_0x5615b5+_0x3942a2(0xfd)+_0x421259[_0x3942a2(0xfa)]+_0x3942a2(0xfe));else for(const _0x4d4521 of _0x421259){_0x15cb2c[_0x3942a2(0xe5)](_0x3942a2(0xff)+path[_0x3942a2(0xec)](_0x5615b5,_0x4d4521));}}for(const _0x4f391c of _0xc748b4){_0x15cb2c['push']('\x20\x20??\x20'+_0x4f391c);}}return _0x15cb2c[_0x3942a2(0xec)]('\x0a');}function filterGitLog(_0x1ee88f){const _0x1b5fc0=a0_0x248295,_0x63327c=_0x1ee88f[_0x1b5fc0(0xe9)](_0x1b5fc0(0xe4))[_0x1b5fc0(0xd6)](_0x48edbd=>_0x48edbd[_0x1b5fc0(0x100)]())[_0x1b5fc0(0xd8)](_0x25b84b=>_0x25b84b[_0x1b5fc0(0xfa)]>0x0);if(_0x63327c[_0x1b5fc0(0xfa)]===0x0)return _0x1ee88f;const _0x4951c0=[];for(const _0x499814 of _0x63327c){const _0xac2f11=_0x499814[_0x1b5fc0(0xe9)]('\x0a'),_0x2b506a=_0xac2f11[0x0]||'',_0x157e9a=_0xac2f11[_0x1b5fc0(0xda)](0x1)['map'](_0x149799=>_0x149799[_0x1b5fc0(0x100)]())[_0x1b5fc0(0xd8)](_0x4490ce=>_0x4490ce[_0x1b5fc0(0xfa)]>0x0);_0x4951c0['push']('-\x20'+_0x2b506a),_0x157e9a['length']>0x0&&(_0x4951c0[_0x1b5fc0(0xe5)]('\x20\x20'+_0x157e9a[0x0]),_0x157e9a[_0x1b5fc0(0xfa)]>0x1&&_0x4951c0[_0x1b5fc0(0xe5)](_0x1b5fc0(0xf8)+(_0x157e9a[_0x1b5fc0(0xfa)]-0x1)+_0x1b5fc0(0xde)));}return _0x4951c0[_0x1b5fc0(0xec)]('\x0a');}function a0_0x4618(){const _0x1b5f4e=['substring','---','35994KdIvVg','666720wSCaNa','__importStar','174GSyymt','\x20\x20...\x20(+','filterGitDiff','length','replace','__createBinding','/\x20(','\x20untracked\x20files)','\x20\x20??\x20','trim','\x20more\x20modifications','map','391062fqgTpb','filter','*\x20Branch:\x20','slice','configurable','+++','67430DqSfvq','\x20lines\x20of\x20description)','startsWith','\x0aUntracked\x20files:','filterGitLog','1009625VbNOEd','defineProperty','---END---','push','__esModule','\x0aChanges:','903308Tdxkag','split','default','206489FBlSYX','join','\x20(+','\x20\x20...\x20+','hasOwnProperty','__setModuleDefault','path'];a0_0x4618=function(){return _0x1b5f4e;};return a0_0x4618();}function filterGitDiff(_0x3db1f8){const _0x1b29ce=a0_0x248295,_0x718229=_0x3db1f8[_0x1b29ce(0xe9)]('\x0a'),_0x4ffcd8=[];let _0xfc349a='',_0x1c3235=0x0,_0x4131db=0x0,_0x1fcc91=[];const _0x2e3ee6=()=>{const _0x3b07f3=_0x1b29ce;if(_0xfc349a&&(_0x1c3235>0x0||_0x4131db>0x0)){_0x4ffcd8[_0x3b07f3(0xe5)]('[file]\x20'+_0xfc349a+_0x3b07f3(0xed)+_0x1c3235+'\x20-'+_0x4131db+')');const _0x133c62=0xa,_0x4c374d=_0x1fcc91[_0x3b07f3(0xda)](0x0,_0x133c62);for(const _0x50e0f9 of _0x4c374d){_0x4ffcd8['push']('\x20\x20'+_0x50e0f9);}const _0x343e6e=_0x1c3235+_0x4131db-_0x133c62;_0x343e6e>0x0&&_0x4ffcd8[_0x3b07f3(0xe5)](_0x3b07f3(0xee)+_0x343e6e+_0x3b07f3(0x101));}_0x1c3235=0x0,_0x4131db=0x0,_0x1fcc91=[];};for(const _0x283e95 of _0x718229){if(_0x283e95[_0x1b29ce(0xdf)]('diff\x20--git')){_0x2e3ee6();const _0x54ebac=_0x283e95['match'](/\sb\/(.+)$/);_0xfc349a=_0x54ebac?_0x54ebac[0x1]:'unknown_file';}else{if(_0x283e95[_0x1b29ce(0xdf)]('+')&&!_0x283e95['startsWith'](_0x1b29ce(0xdc)))_0x1c3235++,_0x1fcc91['push'](_0x283e95);else _0x283e95['startsWith']('-')&&!_0x283e95[_0x1b29ce(0xdf)](_0x1b29ce(0xf3))&&(_0x4131db++,_0x1fcc91[_0x1b29ce(0xe5)](_0x283e95));}}_0x2e3ee6();const _0x21847c=_0x4ffcd8['join']('\x0a');return _0x21847c[_0x1b29ce(0xfa)]>0x0?_0x21847c:'No\x20modifications';}
package/filters/go.js CHANGED
@@ -1 +1 @@
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();}
1
+ 'use strict';function a0_0x1e5e(_0x13a6bd,_0x2f0d5a){const _0x1824a5=a0_0x1824();return a0_0x1e5e=function(_0x1e5ec1,_0xa0f518){_0x1e5ec1=_0x1e5ec1-0xd7;let _0x46e726=_0x1824a5[_0x1e5ec1];return _0x46e726;},a0_0x1e5e(_0x13a6bd,_0x2f0d5a);}const a0_0x3380fd=a0_0x1e5e;(function(_0x49eb95,_0x2e4d71){const _0x25a532=a0_0x1e5e,_0x1dcdc5=_0x49eb95();while(!![]){try{const _0x3a76aa=parseInt(_0x25a532(0xe0))/0x1+parseInt(_0x25a532(0xdb))/0x2+parseInt(_0x25a532(0xde))/0x3*(parseInt(_0x25a532(0xed))/0x4)+-parseInt(_0x25a532(0xda))/0x5*(parseInt(_0x25a532(0xe1))/0x6)+parseInt(_0x25a532(0xe5))/0x7*(-parseInt(_0x25a532(0xd8))/0x8)+parseInt(_0x25a532(0xd7))/0x9+-parseInt(_0x25a532(0xff))/0xa*(parseInt(_0x25a532(0xf9))/0xb);if(_0x3a76aa===_0x2e4d71)break;else _0x1dcdc5['push'](_0x1dcdc5['shift']());}catch(_0xf7a803){_0x1dcdc5['push'](_0x1dcdc5['shift']());}}}(a0_0x1824,0xa0875));function a0_0x1824(){const _0x3cb1d0=['PASS','startsWith','filter','===\x20RUN','push','1198510OgQhtG','match','4943214nYvzvy','24wPySkp','Go\x20vet:\x20no\x20issues\x20found','4595QZQLam','291556guvvvU','no\x20test\x20files','\x20more\x20failures','129HUPROi','lines','975686jWmKgD','4554ABdrhl','\x20\x20\x20\x20...\x20+','\x20more\x20lines','split','2329348QpLTdZ','slice','\x20passed,\x20','filterGoTest','includes','Go\x20test:\x20no\x20test\x20files','FAIL','\x20issues\x20found','108096JnZiiO','...\x20+','length','Go\x20test:\x20all\x20tests\x20passed','trim','join','\x20\x20...\x20+','\x20more\x20issues','name','\x20skipped','filterGoVet','Go\x20test:\x20','44MqimCc'];a0_0x1824=function(){return _0x3cb1d0;};return a0_0x1824();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x3380fd(0xe8)]=filterGoTest,exports[a0_0x3380fd(0xf7)]=filterGoVet;function filterGoTest(_0xa143dc){const _0x572dad=a0_0x3380fd,_0x30afda=_0xa143dc[_0x572dad(0xe4)]('\x0a');let _0x4b6db4=0x0,_0x22cecd=0x0,_0x57d1e4=0x0;const _0x2bf414=[],_0xfc44a4=[];let _0x30cbae=null;for(const _0x3fa0c0 of _0x30afda){const _0x35cd00=_0x3fa0c0[_0x572dad(0xf1)](),_0x447664=_0x35cd00[_0x572dad(0x100)](/^ok\s+\S+\s+[\d.]+s/);if(_0x447664){_0xfc44a4[_0x572dad(0xfe)](_0x35cd00);continue;}const _0x4ab77c=_0x35cd00[_0x572dad(0x100)](/^FAIL\s+\S+/);if(_0x4ab77c){_0xfc44a4[_0x572dad(0xfe)](_0x35cd00);continue;}const _0x36c869=_0x35cd00[_0x572dad(0x100)](/^--- PASS:/);if(_0x36c869){_0x4b6db4++;continue;}const _0x1f0240=_0x35cd00[_0x572dad(0x100)](/^--- FAIL:\s+(\S+)/);if(_0x1f0240){if(_0x30cbae)_0x2bf414[_0x572dad(0xfe)](_0x30cbae);_0x30cbae={'name':_0x1f0240[0x1],'lines':[]},_0x22cecd++;continue;}if(_0x35cd00[_0x572dad(0xfb)]('---\x20SKIP:')){_0x57d1e4++;continue;}_0x30cbae&&_0x35cd00[_0x572dad(0xef)]>0x0&&!_0x35cd00[_0x572dad(0xfb)](_0x572dad(0xfd))&&_0x30cbae[_0x572dad(0xdf)][_0x572dad(0xfe)](_0x3fa0c0),_0x35cd00[_0x572dad(0xfb)](_0x572dad(0xfd))&&(_0x30cbae&&(_0x2bf414[_0x572dad(0xfe)](_0x30cbae),_0x30cbae=null));}if(_0x30cbae)_0x2bf414[_0x572dad(0xfe)](_0x30cbae);if(_0x4b6db4===0x0&&_0x22cecd===0x0&&_0x57d1e4===0x0){if(_0xa143dc['includes'](_0x572dad(0xfa))&&!_0xa143dc['includes'](_0x572dad(0xeb)))return _0x572dad(0xf0);if(_0xa143dc[_0x572dad(0xe9)](_0x572dad(0xdc)))return _0x572dad(0xea);return _0xa143dc;}if(_0x22cecd===0x0){const _0x205214=[_0x572dad(0xf8)+_0x4b6db4+'\x20passed'];if(_0x57d1e4>0x0)_0x205214[_0x572dad(0xfe)](_0x57d1e4+_0x572dad(0xf6));return _0x205214[_0x572dad(0xf2)](',\x20');}const _0x30e619=[_0x572dad(0xf8)+_0x4b6db4+_0x572dad(0xe7)+_0x22cecd+'\x20failed,\x20'+_0x57d1e4+_0x572dad(0xf6)];if(_0x2bf414['length']>0x0){_0x30e619[_0x572dad(0xfe)]('\x0aFailures:');const _0x355e6d=0x3;for(let _0x4baabc=0x0;_0x4baabc<Math['min'](_0x2bf414['length'],_0x355e6d);_0x4baabc++){const _0x4fc34e=_0x2bf414[_0x4baabc];_0x30e619['push']('\x20\x20'+(_0x4baabc+0x1)+'.\x20'+_0x4fc34e[_0x572dad(0xf5)]);for(const _0x6d6869 of _0x4fc34e['lines'][_0x572dad(0xe6)](0x0,0x5)){_0x30e619['push']('\x20\x20\x20\x20'+_0x6d6869[_0x572dad(0xf1)]());}_0x4fc34e['lines']['length']>0x5&&_0x30e619[_0x572dad(0xfe)](_0x572dad(0xe2)+(_0x4fc34e[_0x572dad(0xdf)]['length']-0x5)+_0x572dad(0xe3));}_0x2bf414[_0x572dad(0xef)]>_0x355e6d&&_0x30e619[_0x572dad(0xfe)](_0x572dad(0xf3)+(_0x2bf414[_0x572dad(0xef)]-_0x355e6d)+_0x572dad(0xdd));}return _0x30e619[_0x572dad(0xf2)]('\x0a');}function filterGoVet(_0x41a37d){const _0xf4c830=a0_0x3380fd,_0xd60349=_0x41a37d[_0xf4c830(0xe4)]('\x0a')[_0xf4c830(0xfc)](_0x76873c=>_0x76873c[_0xf4c830(0xf1)]()[_0xf4c830(0xef)]>0x0);if(_0xd60349[_0xf4c830(0xef)]===0x0)return _0xf4c830(0xd9);if(_0xd60349[_0xf4c830(0xef)]<=0x14)return _0x41a37d['trim']();const _0x2c29d9=['Go\x20vet:\x20'+_0xd60349[_0xf4c830(0xef)]+_0xf4c830(0xec)];return _0x2c29d9[_0xf4c830(0xfe)](..._0xd60349['slice'](0x0,0xa)),_0xd60349[_0xf4c830(0xef)]>0xa&&_0x2c29d9[_0xf4c830(0xfe)](_0xf4c830(0xee)+(_0xd60349['length']-0xa)+_0xf4c830(0xf4)),_0x2c29d9[_0xf4c830(0xf2)]('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
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;}
1
+ 'use strict';const a0_0x13e196=a0_0xbc7d;function a0_0x36b3(){const _0x39a8eb=['pip\x20install','trim\x20go','816lEDqHU','cargo\x20build','softTruncate','cargo\x20test','../tracker','some','getConfig','trim\x20gh','filterPytest','32351fMWiPZ','[minified\x20file]','collapseDuplicates','163452KgCGRf','pnpm\x20test','vitest','npm\x20run\x20test','npm\x20i','cargo\x20clippy','324126JmdQIP','trim','secretsFound','30nikaLC','./go','pnpm\x20install','redactor','filterGoTest','filterNpmInstall','trim\x20pip','2yybIMh','stripAnsi','\x20ls','./shell','filterKubectl','513334RisOuM','filterGitDiff','length','./devops','trim\x20','defineProperty','7VWbrLO','npm\x20test','../redactor','features_enabled','499265goGAFR','trim\x20pnpm','filterDockerPs','push','lastRedactAudit','trim\x20docker','filterTree','text','2729016LxbSPu','includes','filterGitLog','ansi_strip','trim\x20glab','redact','[binary','trim\x20git','compressOutput','./git','filterDockerLogs','filterGoVet','binary','__esModule','pytest','---','match','filterGrep','filterGitStatus','2207742ZczBRx','\x20tree\x20','yadm\x20status','filterCargoTest','filterCat','yarn\x20install','trim\x20npx','trim\x20read','jest','24HAUkkp','git\x20diff','trim\x20grep','filterCargoBuild','startsWith','trim\x20ls','skeleton','go\x20vet','trim\x20kubectl','trim\x20cargo','yadm\x20log','./python','get','git\x20status','git\x20log','lastFeatures','cargo\x20check','pattern','npm\x20install','endsWith','kubectl','yarn\x20test','filter','toLowerCase','\x20ls\x20','trim\x20ruff','trim\x20tree'];a0_0x36b3=function(){return _0x39a8eb;};return a0_0x36b3();}(function(_0x5f3e5e,_0x333c7c){const _0x382113=a0_0xbc7d,_0x1f9349=_0x5f3e5e();while(!![]){try{const _0x106753=parseInt(_0x382113(0xc4))/0x1*(-parseInt(_0x382113(0xbf))/0x2)+parseInt(_0x382113(0xf2))/0x3*(parseInt(_0x382113(0x11b))/0x4)+-parseInt(_0x382113(0xce))/0x5+parseInt(_0x382113(0xe9))/0x6*(parseInt(_0x382113(0xca))/0x7)+parseInt(_0x382113(0xd6))/0x8+-parseInt(_0x382113(0xb5))/0x9*(parseInt(_0x382113(0xb8))/0xa)+-parseInt(_0x382113(0x118))/0xb*(-parseInt(_0x382113(0x10f))/0xc);if(_0x106753===_0x333c7c)break;else _0x1f9349['push'](_0x1f9349['shift']());}catch(_0x543039){_0x1f9349['push'](_0x1f9349['shift']());}}}(a0_0x36b3,0x7dabb));Object[a0_0x13e196(0xc9)](exports,a0_0x13e196(0xe3),{'value':!![]}),exports[a0_0x13e196(0x101)]=exports[a0_0x13e196(0xd2)]=void 0x0,exports[a0_0x13e196(0xde)]=compressOutput,exports['rewriteCommand']=rewriteCommand;const generic_1=require('./generic'),git_1=require(a0_0x13e196(0xdf)),python_1=require(a0_0x13e196(0xfd)),js_1=require('./js'),shell_1=require(a0_0x13e196(0xc2)),rust_1=require('./rust'),go_1=require(a0_0x13e196(0xb9)),devops_1=require(a0_0x13e196(0xc7)),redactor_1=require(a0_0x13e196(0xcc)),tracker_1=require(a0_0x13e196(0x113));exports[a0_0x13e196(0xd2)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x13e196(0x101)]=[];function a0_0xbc7d(_0x4b3612,_0x5b2429){const _0x36b368=a0_0x36b3();return a0_0xbc7d=function(_0xbc7d52,_0x5b9983){_0xbc7d52=_0xbc7d52-0xb4;let _0x1a07ab=_0x36b368[_0xbc7d52];return _0x1a07ab;},a0_0xbc7d(_0x4b3612,_0x5b2429);}function isFeatureEnabled(_0x425a83){const _0x5d393b=a0_0x13e196;try{const _0x415826=tracker_1['tracker'][_0x5d393b(0x115)](),_0x2ac1cd=_0x415826[_0x5d393b(0xcd)];if(!_0x2ac1cd||_0x2ac1cd[_0x425a83]===undefined)return!![];return _0x2ac1cd[_0x425a83]!==![];}catch{return!![];}}function compressOutput(_0x17a6b9,_0x49e5cc,_0x4956ab,_0x39082=!![]){const _0x56deda=a0_0x13e196,_0x55f38e=_0x17a6b9[_0x56deda(0xb6)]();let _0x2d75cb=_0x49e5cc;_0x4956ab[_0x56deda(0xb6)]()[_0x56deda(0xc6)]>0x0&&(_0x2d75cb=_0x49e5cc+'\x0a'+_0x4956ab);let _0x4796d9=isFeatureEnabled(_0x56deda(0xd9))?(0x0,generic_1[_0x56deda(0xc0)])(_0x2d75cb):_0x2d75cb;const _0x1c3f8b=[];if(_0x4796d9[_0x56deda(0xc6)]<_0x2d75cb[_0x56deda(0xc6)])_0x1c3f8b['push'](_0x56deda(0xd9));const _0x596d36=(_0x11b129,_0x3a15d2)=>{const _0x4d4286=_0x56deda;return _0x1c3f8b[_0x4d4286(0xd1)](_0x11b129),exports[_0x4d4286(0x101)]=_0x1c3f8b,_0x3a15d2;};if(_0x39082&&isFeatureEnabled(_0x56deda(0xdb))){const _0x32d6c8=redactor_1[_0x56deda(0xbb)]['redactWithAudit'](_0x4796d9);_0x4796d9=_0x32d6c8[_0x56deda(0xd5)],exports['lastRedactAudit']={'secretsFound':_0x32d6c8[_0x56deda(0xb7)],'secretTypes':_0x32d6c8['secretTypes']};if(_0x32d6c8[_0x56deda(0xb7)]>0x0)_0x1c3f8b[_0x56deda(0xd1)](_0x56deda(0xdb));}else exports[_0x56deda(0xd2)]={'secretsFound':0x0,'secretTypes':[]};const _0x1cfaf0=_0x55f38e[_0x56deda(0x109)](),_0x568033=isFeatureEnabled('filter');try{if(_0x568033){if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xff))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xeb)))return _0x596d36(_0x56deda(0x108),(0x0,git_1[_0x56deda(0xe8)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x100))||_0x1cfaf0['includes'](_0x56deda(0xfc)))return _0x596d36('filter',(0x0,git_1[_0x56deda(0xd8)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xf3))||_0x1cfaf0[_0x56deda(0xd7)]('git\x20show')||_0x1cfaf0[_0x56deda(0xd7)]('yadm\x20diff'))return _0x596d36('filter',(0x0,git_1[_0x56deda(0xc5)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xe4))||_0x1cfaf0['match'](/python3?\s+-m\s+pytest/))return _0x596d36(_0x56deda(0x108),(0x0,python_1[_0x56deda(0x117)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x10d))||_0x1cfaf0[_0x56deda(0xd7)]('pip3\x20install'))return _0x596d36('filter',(0x0,python_1['filterPipInstall'])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)]('ruff\x20check')||_0x1cfaf0[_0x56deda(0xd7)]('ruff\x20'))return _0x596d36('filter',(0x0,devops_1['filterRuff'])(_0x4796d9));if(_0x1cfaf0['includes'](_0x56deda(0x104))||_0x1cfaf0[_0x56deda(0xd7)]('npm\x20i\x20')||_0x1cfaf0['endsWith'](_0x56deda(0x11f))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xba))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xee)))return _0x596d36('filter',(0x0,js_1[_0x56deda(0xbd)])(_0x4796d9));if(_0x1cfaf0['includes'](_0x56deda(0xf1))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x11d)))return _0x596d36(_0x56deda(0x108),(0x0,js_1['filterJestVitest'])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xcb))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x11c))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x107))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x11e)))return _0x596d36(_0x56deda(0x108),(0x0,js_1['filterJestVitest'])(_0x4796d9));if(_0x1cfaf0['includes'](_0x56deda(0x112)))return _0x596d36(_0x56deda(0x108),(0x0,rust_1[_0x56deda(0xec)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x110))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x102))||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xb4)))return _0x596d36(_0x56deda(0x108),(0x0,rust_1[_0x56deda(0xf5)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)]('go\x20test'))return _0x596d36('filter',(0x0,go_1[_0x56deda(0xbc)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xf9)))return _0x596d36('filter',(0x0,go_1[_0x56deda(0xe1)])(_0x4796d9));if(_0x1cfaf0['match'](/docker\s+ps/))return _0x596d36(_0x56deda(0x108),(0x0,devops_1[_0x56deda(0xd0)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xe6)](/docker\s+images/))return _0x596d36(_0x56deda(0x108),(0x0,devops_1['filterDockerImages'])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xe6)](/docker\s+logs/))return _0x596d36(_0x56deda(0x108),(0x0,devops_1[_0x56deda(0xe0)])(_0x4796d9));if(_0x1cfaf0['includes'](_0x56deda(0x106))){const _0x5257b7=_0x1cfaf0['match'](/kubectl\s+(get|logs|describe|apply)/),_0x5e18a7=_0x5257b7?_0x5257b7[0x1]:_0x56deda(0xfe);return _0x596d36(_0x56deda(0x108),(0x0,devops_1[_0x56deda(0xc3)])(_0x4796d9,_0x5e18a7));}if(_0x1cfaf0[_0x56deda(0xe6)](/^(ls|dir)(\s|$)/)||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0x10a))||_0x1cfaf0[_0x56deda(0x105)](_0x56deda(0xc1)))return _0x596d36(_0x56deda(0x108),(0x0,shell_1['filterLs'])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xe6)](/^tree(\s|$)/)||_0x1cfaf0[_0x56deda(0xd7)](_0x56deda(0xea))||_0x1cfaf0[_0x56deda(0x105)]('\x20tree'))return _0x596d36(_0x56deda(0x108),(0x0,shell_1[_0x56deda(0xd4)])(_0x4796d9));if(_0x1cfaf0[_0x56deda(0xe6)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x5046fd=(0x0,shell_1[_0x56deda(0xed)])(_0x4796d9,_0x55f38e);if(_0x5046fd[_0x56deda(0xd7)]('[lock\x20file]'))_0x1c3f8b['push']('lock');else{if(_0x5046fd['includes'](_0x56deda(0xdc))||_0x5046fd[_0x56deda(0xd7)](_0x56deda(0x119)))_0x1c3f8b[_0x56deda(0xd1)](_0x56deda(0xe2));else{if(_0x5046fd[_0x56deda(0xd7)]('[code\x20skeleton]'))_0x1c3f8b['push'](_0x56deda(0xf8));else{if(_0x5046fd[_0x56deda(0xd7)]('|\x20')&&_0x5046fd[_0x56deda(0xd7)](_0x56deda(0xe5))&&_0x5046fd[_0x56deda(0xc6)]<_0x4796d9[_0x56deda(0xc6)]*0.5)_0x1c3f8b[_0x56deda(0xd1)]('json_crusher');else{if(_0x5046fd['includes']('lines\x20truncated'))_0x1c3f8b[_0x56deda(0xd1)]('filter');}}}}if(_0x5046fd[_0x56deda(0xc6)]<_0x4796d9[_0x56deda(0xc6)]&&!_0x1c3f8b[_0x56deda(0x114)](_0x3f1f34=>_0x3f1f34!=='ansi_strip'&&_0x3f1f34!==_0x56deda(0xdb)))_0x1c3f8b[_0x56deda(0xd1)](_0x56deda(0x108));return exports[_0x56deda(0x101)]=_0x1c3f8b,_0x5046fd;}if(_0x1cfaf0[_0x56deda(0xe6)](/^find(\s|$)/))return _0x596d36(_0x56deda(0x108),(0x0,shell_1['filterFind'])(_0x4796d9));if(_0x1cfaf0['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x596d36(_0x56deda(0x108),(0x0,shell_1[_0x56deda(0xe7)])(_0x4796d9));}}catch(_0x3c44c0){}return isFeatureEnabled('whitespace')&&(_0x4796d9=(0x0,generic_1['collapseWhitespace'])(_0x4796d9),_0x1c3f8b[_0x56deda(0xd1)]('whitespace')),_0x4796d9=(0x0,generic_1[_0x56deda(0x11a)])(_0x4796d9),_0x4796d9=(0x0,generic_1[_0x56deda(0x111)])(_0x4796d9,0x4e20),exports[_0x56deda(0x101)]=_0x1c3f8b,_0x4796d9;}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_0x13e196(0xdd)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x13e196(0x116)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x13e196(0xda)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x13e196(0xfb)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x13e196(0xcf)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':'trim\x20npm'},{'pattern':/^npx\s+/,'prefix':a0_0x13e196(0xef)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x13e196(0xf0)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x13e196(0xf4)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x13e196(0xf7)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x13e196(0x10c)},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x13e196(0xd3)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x13e196(0xfa)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':'trim\x20pytest'},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x13e196(0x10b)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x13e196(0xbe)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x13e196(0x10e)}];function rewriteCommand(_0x4e2f3b){const _0x31ef2c=a0_0x13e196,_0x326e98=_0x4e2f3b[_0x31ef2c(0xb6)]();if(_0x326e98[_0x31ef2c(0xf6)](_0x31ef2c(0xc8)))return _0x326e98;for(const _0xf16fa of REWRITE_RULES){if(_0xf16fa[_0x31ef2c(0x103)]['test'](_0x326e98))return _0x31ef2c(0xc8)+_0x326e98;}return _0x326e98;}
package/filters/js.js CHANGED
@@ -1 +1 @@
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');}
1
+ 'use strict';const a0_0x226caa=a0_0x3bde;(function(_0x2d6047,_0x30a3bb){const _0x2d59cf=a0_0x3bde,_0x531c1a=_0x2d6047();while(!![]){try{const _0x543c11=parseInt(_0x2d59cf(0x1d6))/0x1*(-parseInt(_0x2d59cf(0x1e2))/0x2)+parseInt(_0x2d59cf(0x1e5))/0x3+parseInt(_0x2d59cf(0x1e7))/0x4*(-parseInt(_0x2d59cf(0x1e6))/0x5)+-parseInt(_0x2d59cf(0x1d8))/0x6*(-parseInt(_0x2d59cf(0x1ed))/0x7)+parseInt(_0x2d59cf(0x1de))/0x8+-parseInt(_0x2d59cf(0x1e4))/0x9*(parseInt(_0x2d59cf(0x1d5))/0xa)+parseInt(_0x2d59cf(0x1ea))/0xb*(parseInt(_0x2d59cf(0x1cb))/0xc);if(_0x543c11===_0x30a3bb)break;else _0x531c1a['push'](_0x531c1a['shift']());}catch(_0x2ce68b){_0x531c1a['push'](_0x531c1a['shift']());}}}(a0_0x50b6,0x7102f));function a0_0x3bde(_0x17b14e,_0x41438d){const _0x50b65f=a0_0x50b6();return a0_0x3bde=function(_0x3bdeec,_0x219e14){_0x3bdeec=_0x3bdeec-0x1c8;let _0x222c01=_0x50b65f[_0x3bdeec];return _0x222c01;},a0_0x3bde(_0x17b14e,_0x41438d);}Object['defineProperty'](exports,a0_0x226caa(0x1e3),{'value':!![]}),exports['filterNpmInstall']=filterNpmInstall,exports[a0_0x226caa(0x1d1)]=filterJestVitest;function filterNpmInstall(_0x42f724){const _0x5e7ba4=a0_0x226caa,_0x2789a9=_0x42f724[_0x5e7ba4(0x1e9)](/\r/g,'\x0a'),_0x4416f5=_0x2789a9[_0x5e7ba4(0x1da)]('\x0a'),_0x3754ea=[];for(const _0x1a4bc7 of _0x4416f5){const _0x54c48b=_0x1a4bc7[_0x5e7ba4(0x1d0)]();(_0x54c48b[_0x5e7ba4(0x1c8)](_0x5e7ba4(0x1c9))||_0x54c48b['includes'](_0x5e7ba4(0x1db))||_0x54c48b[_0x5e7ba4(0x1c8)](_0x5e7ba4(0x1e8))||_0x54c48b['includes'](_0x5e7ba4(0x1ec))||_0x54c48b[_0x5e7ba4(0x1c8)](_0x5e7ba4(0x1dd)))&&(!_0x54c48b['includes']('%')&&!_0x54c48b[_0x5e7ba4(0x1ca)]('⠋')&&!_0x54c48b[_0x5e7ba4(0x1ca)]('⠙')&&_0x3754ea['push'](_0x54c48b));}const _0x5c3575=_0x3754ea[_0x5e7ba4(0x1d7)]('\x0a')[_0x5e7ba4(0x1d0)]();return _0x5c3575[_0x5e7ba4(0x1d9)]>0x0?_0x5c3575:_0x5e7ba4(0x1cd);}function a0_0x50b6(){const _0x2dfe1e=['1702KWEBNa','__esModule','27hrLgcP','2352972vowoQl','30AsLzQj','525484PsEGJO','audited\x20','replace','5617139vQpXlc','\x20total)','up\x20to\x20date','122066zQEoZg','includes','added\x20','startsWith','12fUcBQO','\x20passed','NPM:\x20Packages\x20verified/installed\x20successfully','all','\x20\x20...\x20(','trim','filterJestVitest','Test\x20Runner:\x20','match','push','1287570OmMxlI','647yczbbt','join','192ekKPle','length','split','removed\x20','Tests:','found\x20','2680000lnNHUu','FAIL','\x20passed,\x20','slice'];a0_0x50b6=function(){return _0x2dfe1e;};return a0_0x50b6();}function filterJestVitest(_0x44447e){const _0x2f610f=a0_0x226caa,_0x31d87e=_0x44447e[_0x2f610f(0x1da)]('\x0a');let _0x138596=0x0,_0x100aab=0x0,_0x46ced3=0x0;const _0x2dc6ec=[];let _0x79ec27=![];for(const _0x5c9656 of _0x31d87e){const _0x570ff0=_0x5c9656[_0x2f610f(0x1d0)]();if(_0x570ff0[_0x2f610f(0x1ca)](_0x2f610f(0x1dc))||_0x570ff0[_0x2f610f(0x1c8)]('Test\x20Files:')){const _0x52924e=_0x570ff0['match'](/(\d+)\s+passed/),_0x4cf17e=_0x570ff0[_0x2f610f(0x1d3)](/(\d+)\s+failed/),_0x1d2950=_0x570ff0['match'](/(\d+)\s+total/);if(_0x52924e)_0x138596=parseInt(_0x52924e[0x1]);if(_0x4cf17e)_0x100aab=parseInt(_0x4cf17e[0x1]);if(_0x1d2950)_0x46ced3=parseInt(_0x1d2950[0x1]);continue;}(_0x570ff0[_0x2f610f(0x1ca)]('❯')||_0x570ff0['startsWith']('●')||_0x570ff0['startsWith']('FAIL\x20\x20'))&&(_0x79ec27=!![]),_0x79ec27&&(_0x570ff0[_0x2f610f(0x1d9)]>0x0&&!_0x570ff0[_0x2f610f(0x1ca)]('Test\x20Suites:')&&!_0x570ff0[_0x2f610f(0x1ca)](_0x2f610f(0x1dc))&&_0x2dc6ec['push'](_0x5c9656));}if(_0x46ced3===0x0&&_0x138596===0x0&&_0x100aab===0x0){if(_0x44447e['includes']('PASS')&&!_0x44447e[_0x2f610f(0x1c8)](_0x2f610f(0x1df))){const _0xb9096b=_0x44447e['match'](/(\d+)\s+passed/),_0x37c1f5=_0xb9096b?_0xb9096b[0x1]:_0x2f610f(0x1ce);return _0x2f610f(0x1d2)+_0x37c1f5+_0x2f610f(0x1cc);}return _0x44447e;}if(_0x100aab===0x0&&_0x138596>0x0)return _0x2f610f(0x1d2)+_0x138596+_0x2f610f(0x1cc);const _0xc9490b=[_0x2f610f(0x1d2)+_0x138596+_0x2f610f(0x1e0)+_0x100aab+'\x20failed\x20('+_0x46ced3+_0x2f610f(0x1eb)];if(_0x2dc6ec[_0x2f610f(0x1d9)]>0x0){_0xc9490b['push']('\x0aFailures:');const _0x26d2fc=0x19,_0x31d814=_0x2dc6ec[_0x2f610f(0x1e1)](0x0,_0x26d2fc);for(const _0x5e263d of _0x31d814){_0xc9490b[_0x2f610f(0x1d4)]('\x20\x20'+_0x5e263d);}_0x2dc6ec['length']>_0x26d2fc&&_0xc9490b[_0x2f610f(0x1d4)](_0x2f610f(0x1cf)+(_0x2dc6ec[_0x2f610f(0x1d9)]-_0x26d2fc)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0xc9490b[_0x2f610f(0x1d7)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
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)]();}
1
+ 'use strict';const a0_0x3c517f=a0_0x1107;(function(_0x42ba2b,_0x12f102){const _0x4a95e8=a0_0x1107,_0x21032a=_0x42ba2b();while(!![]){try{const _0x4b42e8=parseInt(_0x4a95e8(0xbd))/0x1*(parseInt(_0x4a95e8(0xae))/0x2)+parseInt(_0x4a95e8(0xd7))/0x3+-parseInt(_0x4a95e8(0xcf))/0x4*(parseInt(_0x4a95e8(0xcb))/0x5)+parseInt(_0x4a95e8(0xd4))/0x6*(-parseInt(_0x4a95e8(0xaf))/0x7)+-parseInt(_0x4a95e8(0xb9))/0x8+-parseInt(_0x4a95e8(0xc7))/0x9*(-parseInt(_0x4a95e8(0xb2))/0xa)+parseInt(_0x4a95e8(0xd6))/0xb;if(_0x4b42e8===_0x12f102)break;else _0x21032a['push'](_0x21032a['shift']());}catch(_0x592744){_0x21032a['push'](_0x21032a['shift']());}}}(a0_0xb297,0xeb310));function a0_0x1107(_0x597f45,_0x471398){const _0xb297d3=a0_0xb297();return a0_0x1107=function(_0x110768,_0x48997b){_0x110768=_0x110768-0xa7;let _0x1c458b=_0xb297d3[_0x110768];return _0x1c458b;},a0_0x1107(_0x597f45,_0x471398);}function a0_0xb297(){const _0x33ae19=['20660bbUXfC','Successfully\x20installed','Requirement\x20already\x20satisfied','\x20lines\x20of\x20stacktrace\x20truncated)','1032TniJQx','\x20passed','\x20failed','Pytest:\x20All\x20tests\x20passed','startsWith','4294284YPJzEj','filterPipInstall','20256005xwJlfG','4870395aBlXKK','length','===\x20FAILURES\x20===','join','Pytest:\x20','includes','===\x20short\x20test\x20summary\x20info\x20===','\x20in\x20','46HwGLIs','7JQrEkV','===','___','2050rcoZks','AssertionError:','filter','slice','split','\x20xfailed','push','9078808kkTaIq','match','Collecting','\x20more\x20failures\x20truncated','11735bFxfqu','replace','trim','\x20\x20\x20\x20...\x20(','passed','===\x20ERRORS\x20===','defineProperty','Downloading','\x20\x20\x20\x20','.py:','6372DBazlV','\x0aFailures:','\x20xpassed\x20(warning!)','filterPytest'];a0_0xb297=function(){return _0x33ae19;};return a0_0xb297();}Object[a0_0x3c517f(0xc3)](exports,'__esModule',{'value':!![]}),exports[a0_0x3c517f(0xca)]=filterPytest,exports[a0_0x3c517f(0xd5)]=filterPipInstall;function filterPytest(_0x408903){const _0x15e0b4=a0_0x3c517f,_0x4d316e=_0x408903['split']('\x0a');let _0x1bd81c=0x0,_0x1df204=0x0,_0x332ad7=0x0,_0x161792=0x0,_0x2f72a8=0x0;const _0x4462ac=[];let _0x5b83c1=[],_0x549e5a=![];for(const _0x13625a of _0x4d316e){const _0x271703=_0x13625a[_0x15e0b4(0xbf)]();if(_0x271703[_0x15e0b4(0xd3)](_0x15e0b4(0xa8))||_0x271703['startsWith'](_0x15e0b4(0xc2))){_0x549e5a=!![];continue;}else(_0x271703['startsWith'](_0x15e0b4(0xac))||_0x271703['startsWith'](_0x15e0b4(0xb0))&&_0x271703[_0x15e0b4(0xab)](_0x15e0b4(0xc1)))&&(_0x549e5a=![],_0x5b83c1['length']>0x0&&(_0x4462ac['push'](_0x5b83c1),_0x5b83c1=[]));if(_0x549e5a){if(_0x271703[_0x15e0b4(0xd3)](_0x15e0b4(0xb1)))_0x5b83c1[_0x15e0b4(0xa7)]>0x0&&(_0x4462ac[_0x15e0b4(0xb8)](_0x5b83c1),_0x5b83c1=[]),_0x5b83c1[_0x15e0b4(0xb8)](_0x271703);else _0x271703[_0x15e0b4(0xa7)]>0x0&&_0x5b83c1[_0x15e0b4(0xb8)](_0x13625a);continue;}if(_0x271703[_0x15e0b4(0xd3)](_0x15e0b4(0xb0))&&_0x271703[_0x15e0b4(0xab)](_0x15e0b4(0xad))){const _0x43c567=_0x271703[_0x15e0b4(0xba)](/(\d+)\s+passed/),_0x4a0616=_0x271703[_0x15e0b4(0xba)](/(\d+)\s+failed/),_0xdfae57=_0x271703[_0x15e0b4(0xba)](/(\d+)\s+skipped/),_0x198830=_0x271703[_0x15e0b4(0xba)](/(\d+)\s+xfailed/),_0x37c880=_0x271703[_0x15e0b4(0xba)](/(\d+)\s+xpassed/);if(_0x43c567)_0x1bd81c=parseInt(_0x43c567[0x1]);if(_0x4a0616)_0x1df204=parseInt(_0x4a0616[0x1]);if(_0xdfae57)_0x332ad7=parseInt(_0xdfae57[0x1]);if(_0x198830)_0x161792=parseInt(_0x198830[0x1]);if(_0x37c880)_0x2f72a8=parseInt(_0x37c880[0x1]);}}_0x5b83c1['length']>0x0&&_0x4462ac['push'](_0x5b83c1);if(_0x1bd81c===0x0&&_0x1df204===0x0&&_0x332ad7===0x0&&_0x161792===0x0&&_0x2f72a8===0x0){if(_0x408903[_0x15e0b4(0xab)](_0x15e0b4(0xc1))&&!_0x408903[_0x15e0b4(0xab)]('failed'))return _0x15e0b4(0xd2);return _0x408903;}if(_0x1df204===0x0&&_0x1bd81c>0x0&&_0x332ad7===0x0&&_0x161792===0x0&&_0x2f72a8===0x0)return'Pytest:\x20'+_0x1bd81c+_0x15e0b4(0xd0);const _0x2874cf=[];_0x2874cf[_0x15e0b4(0xb8)](_0x15e0b4(0xaa)+_0x1bd81c+_0x15e0b4(0xd0));if(_0x1df204>0x0)_0x2874cf['push'](_0x1df204+_0x15e0b4(0xd1));if(_0x332ad7>0x0)_0x2874cf[_0x15e0b4(0xb8)](_0x332ad7+'\x20skipped');if(_0x161792>0x0)_0x2874cf['push'](_0x161792+_0x15e0b4(0xb7));if(_0x2f72a8>0x0)_0x2874cf[_0x15e0b4(0xb8)](_0x2f72a8+_0x15e0b4(0xc9));const _0x21ca02=[_0x2874cf['join'](',\x20')];if(_0x4462ac[_0x15e0b4(0xa7)]>0x0){_0x21ca02[_0x15e0b4(0xb8)](_0x15e0b4(0xc8));const _0x284e31=0x3,_0xd7413f=_0x4462ac[_0x15e0b4(0xb5)](0x0,_0x284e31);for(let _0x5b3603=0x0;_0x5b3603<_0xd7413f['length'];_0x5b3603++){const _0x5c4a2f=_0xd7413f[_0x5b3603],_0x3e5e3e=_0x5c4a2f[0x0][_0x15e0b4(0xbe)](/_/g,'')[_0x15e0b4(0xbf)]();_0x21ca02['push']('\x20\x20'+(_0x5b3603+0x1)+'.\x20[FAIL]\x20'+_0x3e5e3e);const _0x196346=_0x5c4a2f['slice'](0x1),_0x4396bd=_0x196346[_0x15e0b4(0xb4)](_0x13f162=>{const _0x57440e=_0x15e0b4,_0x4d19cd=_0x13f162[_0x57440e(0xbf)]();return _0x4d19cd[_0x57440e(0xd3)]('>')||_0x4d19cd['startsWith']('E\x20\x20\x20')||_0x4d19cd[_0x57440e(0xab)](_0x57440e(0xc6))||_0x4d19cd['includes'](_0x57440e(0xb3));});for(const _0x742745 of _0x4396bd[_0x15e0b4(0xb5)](0x0,0x8)){_0x21ca02[_0x15e0b4(0xb8)](_0x15e0b4(0xc5)+_0x742745);}_0x4396bd['length']>0x8&&_0x21ca02[_0x15e0b4(0xb8)](_0x15e0b4(0xc0)+(_0x4396bd[_0x15e0b4(0xa7)]-0x8)+_0x15e0b4(0xce));}_0x4462ac[_0x15e0b4(0xa7)]>_0x284e31&&_0x21ca02[_0x15e0b4(0xb8)]('\x20\x20...\x20+'+(_0x4462ac[_0x15e0b4(0xa7)]-_0x284e31)+_0x15e0b4(0xbc));}return _0x21ca02[_0x15e0b4(0xa9)]('\x0a');}function filterPipInstall(_0x3cebd6){const _0x2de8b4=a0_0x3c517f,_0x514f59=_0x3cebd6[_0x2de8b4(0xb6)]('\x0a'),_0xce4b41=[];for(const _0x246048 of _0x514f59){const _0x52a645=_0x246048[_0x2de8b4(0xbf)]();_0x52a645['startsWith'](_0x2de8b4(0xcc))&&_0xce4b41['push'](_0x52a645);}if(_0xce4b41[_0x2de8b4(0xa7)]>0x0)return _0xce4b41[_0x2de8b4(0xa9)]('\x0a');return _0x514f59['filter'](_0x3233ce=>{const _0x136811=_0x2de8b4,_0x2bfb78=_0x3233ce['trim']();return!_0x2bfb78[_0x136811(0xd3)](_0x136811(0xbb))&&!_0x2bfb78[_0x136811(0xd3)](_0x136811(0xc4))&&!_0x2bfb78[_0x136811(0xab)]('Using\x20cached')&&!_0x2bfb78[_0x136811(0xd3)](_0x136811(0xcd));})[_0x2de8b4(0xa9)]('\x0a')[_0x2de8b4(0xbf)]();}