trimprompt 1.0.39 → 1.0.41

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';const a0_0x170d80=a0_0x5d9d;(function(_0x3c5608,_0x244ae4){const _0x5e4768=a0_0x5d9d,_0x292615=_0x3c5608();while(!![]){try{const _0x2ca227=parseInt(_0x5e4768(0x15c))/0x1*(parseInt(_0x5e4768(0x11b))/0x2)+parseInt(_0x5e4768(0x135))/0x3+-parseInt(_0x5e4768(0x119))/0x4+parseInt(_0x5e4768(0x1b2))/0x5+parseInt(_0x5e4768(0x19c))/0x6+-parseInt(_0x5e4768(0x199))/0x7+-parseInt(_0x5e4768(0x156))/0x8;if(_0x2ca227===_0x244ae4)break;else _0x292615['push'](_0x292615['shift']());}catch(_0x5b00f5){_0x292615['push'](_0x292615['shift']());}}}(a0_0x42a9,0x524dc));var __createBinding=this&&this[a0_0x170d80(0x155)]||(Object[a0_0x170d80(0x105)]?function(_0x4e5cf9,_0x31c5e2,_0x44c9f6,_0x3e4f50){const _0xfe6b5c=a0_0x170d80;if(_0x3e4f50===undefined)_0x3e4f50=_0x44c9f6;var _0x115ad8=Object[_0xfe6b5c(0x143)](_0x31c5e2,_0x44c9f6);(!_0x115ad8||(_0xfe6b5c(0x174)in _0x115ad8?!_0x31c5e2['__esModule']:_0x115ad8[_0xfe6b5c(0x11d)]||_0x115ad8[_0xfe6b5c(0x107)]))&&(_0x115ad8={'enumerable':!![],'get':function(){return _0x31c5e2[_0x44c9f6];}}),Object[_0xfe6b5c(0x16a)](_0x4e5cf9,_0x3e4f50,_0x115ad8);}:function(_0x53ea74,_0x399bb3,_0xc78bbe,_0x70ba75){if(_0x70ba75===undefined)_0x70ba75=_0xc78bbe;_0x53ea74[_0x70ba75]=_0x399bb3[_0xc78bbe];}),__setModuleDefault=this&&this[a0_0x170d80(0x1ad)]||(Object[a0_0x170d80(0x105)]?function(_0x24aa0f,_0x50251){const _0x189afd=a0_0x170d80;Object[_0x189afd(0x16a)](_0x24aa0f,'default',{'enumerable':!![],'value':_0x50251});}:function(_0x439180,_0x50878a){const _0x1dbfc0=a0_0x170d80;_0x439180[_0x1dbfc0(0x15b)]=_0x50878a;}),__importStar=this&&this[a0_0x170d80(0x158)]||(function(){var _0xa9b957=function(_0x26ddf6){const _0x3cfef0=a0_0x5d9d;return _0xa9b957=Object[_0x3cfef0(0x136)]||function(_0x3da540){const _0x29c4ce=_0x3cfef0;var _0x6e790b=[];for(var _0x21d62b in _0x3da540)if(Object[_0x29c4ce(0x12a)][_0x29c4ce(0x120)][_0x29c4ce(0x13a)](_0x3da540,_0x21d62b))_0x6e790b[_0x6e790b[_0x29c4ce(0x115)]]=_0x21d62b;return _0x6e790b;},_0xa9b957(_0x26ddf6);};return function(_0x2375ec){const _0x4dcc35=a0_0x5d9d;if(_0x2375ec&&_0x2375ec[_0x4dcc35(0x1b9)])return _0x2375ec;var _0x1c96a8={};if(_0x2375ec!=null){for(var _0x5a9ed4=_0xa9b957(_0x2375ec),_0x13003a=0x0;_0x13003a<_0x5a9ed4[_0x4dcc35(0x115)];_0x13003a++)if(_0x5a9ed4[_0x13003a]!=='default')__createBinding(_0x1c96a8,_0x2375ec,_0x5a9ed4[_0x13003a]);}return __setModuleDefault(_0x1c96a8,_0x2375ec),_0x1c96a8;};}());Object[a0_0x170d80(0x16a)](exports,'__esModule',{'value':!![]}),exports['loadConfig']=loadConfig,exports[a0_0x170d80(0x13e)]=saveConfig,exports['getAgentStoragePaths']=getAgentStoragePaths,exports[a0_0x170d80(0x162)]=getLatestSessionFile,exports[a0_0x170d80(0x1a2)]=loadSessionsState,exports[a0_0x170d80(0x1ab)]=saveSessionStateItem,exports[a0_0x170d80(0x12b)]=processSessionFile,exports['compactSessionCopy']=compactSessionCopy,exports[a0_0x170d80(0x130)]=compactLiveSession,exports[a0_0x170d80(0x151)]=installWindowsStartupService,exports[a0_0x170d80(0x103)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x170d80(0x102))),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require('./tracker'),baseDir=path[a0_0x170d80(0x170)](os['homedir'](),a0_0x170d80(0x196)),configPath=path[a0_0x170d80(0x170)](baseDir,a0_0x170d80(0x1a1)),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 _0x314d25=a0_0x170d80;try{if(!fs[_0x314d25(0x12e)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});if(fs[_0x314d25(0x12e)](configPath)){const _0x4930d6=JSON[_0x314d25(0x16c)](fs[_0x314d25(0x18a)](configPath,_0x314d25(0x19f)));return{...DEFAULT_CONFIG,..._0x4930d6,'conversation_toggles':{...DEFAULT_CONFIG[_0x314d25(0x182)],..._0x4930d6[_0x314d25(0x182)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG['custom_storage_paths'],..._0x4930d6['custom_storage_paths']||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x4c7629){const _0x3c70d3=a0_0x170d80,_0x438be1=loadConfig(),_0x4216a2={..._0x438be1,..._0x4c7629,'conversation_toggles':{..._0x438be1['conversation_toggles'],..._0x4c7629['conversation_toggles']||{}},'custom_storage_paths':{..._0x438be1['custom_storage_paths'],..._0x4c7629[_0x3c70d3(0x110)]||{}}};try{if(!fs[_0x3c70d3(0x12e)](baseDir))fs[_0x3c70d3(0x153)](baseDir,{'recursive':!![]});fs[_0x3c70d3(0x19b)](configPath,JSON['stringify'](_0x4216a2,null,0x2),_0x3c70d3(0x19f));}catch{}return _0x4216a2;}function getAgentStoragePaths(_0x3539db){const _0x28b9b9=a0_0x170d80,_0x5ddb91=loadConfig(),_0x2756f5=_0x5ddb91[_0x28b9b9(0x110)][_0x3539db];if(_0x2756f5&&fs[_0x28b9b9(0x12e)](_0x2756f5))return[_0x2756f5];const _0x40736a=os[_0x28b9b9(0x159)](),_0x2d7578=process['platform']===_0x28b9b9(0x10e),_0x270846=process[_0x28b9b9(0x144)]==='darwin';switch(_0x3539db){case'claude':return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x19e),_0x28b9b9(0x142)),path['join'](_0x40736a,_0x28b9b9(0x19e),'history')];case _0x28b9b9(0x14d):return[path[_0x28b9b9(0x170)](_0x40736a,'.codex',_0x28b9b9(0x10c)),path[_0x28b9b9(0x170)](_0x40736a,'AppData',_0x28b9b9(0x10d),_0x28b9b9(0x166))];case _0x28b9b9(0x19d):case'antigravity':return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x187),_0x28b9b9(0x1ba)),path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x187)),path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1af),_0x28b9b9(0x10d),_0x28b9b9(0x121)),path[_0x28b9b9(0x170)](_0x40736a,'.config',_0x28b9b9(0x19d))];case _0x28b9b9(0x1b0):if(_0x2d7578)return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1af),_0x28b9b9(0x10d),_0x28b9b9(0x18b),_0x28b9b9(0x185),_0x28b9b9(0x17d))];if(_0x270846)return[path['join'](_0x40736a,'Library',_0x28b9b9(0x112),_0x28b9b9(0x18b),'User',_0x28b9b9(0x17d))];return[path['join'](_0x40736a,_0x28b9b9(0x11f),'Cursor','User',_0x28b9b9(0x17d))];case _0x28b9b9(0x1a4):return[process['cwd'](),path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x169))];case _0x28b9b9(0x150):if(_0x2d7578)return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1af),'Local',_0x28b9b9(0x1a0))];return[path[_0x28b9b9(0x170)](_0x40736a,'.config',_0x28b9b9(0x1a0))];case'openclaw':return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1a3),_0x28b9b9(0x132)),path[_0x28b9b9(0x170)](process['cwd'](),_0x28b9b9(0x1a3),'context')];case _0x28b9b9(0x10b):return[path[_0x28b9b9(0x170)](_0x40736a,'.opencode',_0x28b9b9(0x10c))];case _0x28b9b9(0x188):return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x118),_0x28b9b9(0x109))];default:return[];}}function getLatestSessionFile(_0x4f38fa){const _0x206d9d=a0_0x170d80,_0x3502cd=getAgentStoragePaths(_0x4f38fa);let _0x4681ec=null,_0x302cfa=0x0,_0x24739f=null,_0x1d6dda=null;for(const _0x4d58fb of _0x3502cd){if(fs[_0x206d9d(0x12e)](_0x4d58fb)){if(!_0x1d6dda)_0x1d6dda=_0x4d58fb;const _0x484d43=(_0x1c2b60,_0x43cdc6=0x0)=>{const _0x43256a=_0x206d9d;if(_0x43cdc6>0x6)return;try{const _0x42b9db=fs['readdirSync'](_0x1c2b60,{'withFileTypes':!![]});for(const _0x5609ad of _0x42b9db){const _0x1f5930=path[_0x43256a(0x170)](_0x1c2b60,_0x5609ad[_0x43256a(0x16b)]);if(_0x5609ad['isDirectory']()){const _0x348243=_0x5609ad[_0x43256a(0x16b)][_0x43256a(0x124)]();if(_0x348243===_0x43256a(0x179)||_0x348243===_0x43256a(0x12c)||_0x348243===_0x43256a(0x15a)||_0x348243===_0x43256a(0x139)||_0x348243===_0x43256a(0x1b1)||_0x348243===_0x43256a(0x1b3)||_0x348243===_0x43256a(0x189)||_0x348243==='dist'||_0x348243==='build'||_0x348243===_0x43256a(0x1a8)||_0x348243===_0x43256a(0x175))continue;_0x484d43(_0x1f5930,_0x43cdc6+0x1);}else{if(_0x5609ad['isFile']()&&!_0x5609ad['name']['startsWith']('.')){const _0x5a05bf=_0x5609ad['name'][_0x43256a(0x124)]();if(_0x5a05bf[_0x43256a(0x16d)]('.compact')||_0x5a05bf[_0x43256a(0x148)]('.db')||_0x5a05bf['endsWith'](_0x43256a(0x123))||_0x5a05bf[_0x43256a(0x148)]('.png')||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x116))||_0x5a05bf['endsWith'](_0x43256a(0x184))||_0x5a05bf[_0x43256a(0x148)]('.gif')||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x145))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x106))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x161))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x13f))||_0x5a05bf['endsWith'](_0x43256a(0x16e))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x129))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x126))||_0x5a05bf[_0x43256a(0x1a7)](_0x43256a(0x108))||_0x5a05bf[_0x43256a(0x1a7)](_0x43256a(0x1ae)))continue;const _0x3aefc6=fs[_0x43256a(0x133)](_0x1f5930);_0x3aefc6[_0x43256a(0x1a9)]>_0x302cfa&&(_0x302cfa=_0x3aefc6[_0x43256a(0x1a9)],_0x4681ec=_0x5609ad[_0x43256a(0x16b)],_0x24739f=_0x1f5930,_0x1d6dda=_0x4d58fb);}}}}catch{}};_0x484d43(_0x4d58fb);}}return{'fileName':_0x4681ec,'lastModified':_0x302cfa>0x0?new Date(_0x302cfa)[_0x206d9d(0x186)]():null,'fullPath':_0x24739f,'dirPath':_0x1d6dda};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x5bd7dc,_0x2be5a6,_0x41b07a){const _0x1b8c92=a0_0x170d80;let _0x553667=![],_0x1597f6=0x0;if(!_0x5bd7dc)return{'modified':_0x553667,'savedTokens':_0x1597f6};const _0x5298b2=_0x24a9b3=>_0x24a9b3[_0x1b8c92(0x15e)](/\r\n/g,'\x0a')[_0x1b8c92(0x15e)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x5bd7dc[_0x1b8c92(0x10a)]===_0x1b8c92(0x137)){let _0x4bd472=_0x5bd7dc['content'],_0x346768=_0x5298b2(_0x4bd472);_0x346768[_0x1b8c92(0x115)]<_0x4bd472[_0x1b8c92(0x115)]&&(_0x5bd7dc['content']=_0x346768,_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x1aa)]((_0x4bd472[_0x1b8c92(0x115)]-_0x346768[_0x1b8c92(0x115)])/0x4));if(_0x5bd7dc[_0x1b8c92(0x10a)][_0x1b8c92(0x115)]>OFFLOAD_THRESHOLD_CHARS&&!_0x5bd7dc[_0x1b8c92(0x10a)][_0x1b8c92(0x16d)](_0x1b8c92(0x1a5))){const _0x37c456=_0x1b8c92(0x160)+Math[_0x1b8c92(0x1aa)](_0x5bd7dc[_0x1b8c92(0x10a)]['length']/0x4)+'\x20tokens).',_0x447d99=(0x0,cache_manager_1[_0x1b8c92(0x195)])(_0x2be5a6,_0x41b07a,_0x5bd7dc['content'],_0x37c456);_0x5bd7dc[_0x1b8c92(0x10a)]=_0x1b8c92(0x154)+_0x447d99['raw_tokens']+_0x1b8c92(0x194)+_0x447d99[_0x1b8c92(0x171)]+_0x1b8c92(0x1a6)+_0x447d99['chunk_id']+'`\x0a',_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x111)](0x0,_0x447d99[_0x1b8c92(0x190)]-_0x447d99[_0x1b8c92(0x18e)]);}}else{if(Array[_0x1b8c92(0x14f)](_0x5bd7dc['content']))for(const _0x53f7a1 of _0x5bd7dc['content']){if(_0x53f7a1&&typeof _0x53f7a1===_0x1b8c92(0x178)){if(typeof _0x53f7a1[_0x1b8c92(0x113)]===_0x1b8c92(0x137)){let _0x4b5999=_0x53f7a1['text'],_0x4a9096=_0x5298b2(_0x4b5999);_0x4a9096['length']<_0x4b5999[_0x1b8c92(0x115)]&&(_0x53f7a1[_0x1b8c92(0x113)]=_0x4a9096,_0x553667=!![],_0x1597f6+=Math['ceil']((_0x4b5999[_0x1b8c92(0x115)]-_0x4a9096[_0x1b8c92(0x115)])/0x4));if(_0x53f7a1[_0x1b8c92(0x113)]['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x53f7a1[_0x1b8c92(0x113)][_0x1b8c92(0x16d)](_0x1b8c92(0x1a5))){const _0x126169=_0x1b8c92(0x127)+Math[_0x1b8c92(0x1aa)](_0x53f7a1[_0x1b8c92(0x113)]['length']/0x4)+_0x1b8c92(0x18d),_0x380065=(0x0,cache_manager_1['saveChunk'])(_0x2be5a6,_0x41b07a,_0x53f7a1[_0x1b8c92(0x113)],_0x126169);_0x53f7a1['text']='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x380065['chunk_id']+_0x1b8c92(0x14a)+_0x380065['chunk_id']+'`\x0a',_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x111)](0x0,_0x380065[_0x1b8c92(0x190)]-_0x380065[_0x1b8c92(0x18e)]);}}else{if(typeof _0x53f7a1[_0x1b8c92(0x10a)]===_0x1b8c92(0x137)){let _0x4843a1=_0x53f7a1[_0x1b8c92(0x10a)],_0x5d667d=_0x5298b2(_0x4843a1);_0x5d667d[_0x1b8c92(0x115)]<_0x4843a1[_0x1b8c92(0x115)]&&(_0x53f7a1[_0x1b8c92(0x10a)]=_0x5d667d,_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x1aa)]((_0x4843a1[_0x1b8c92(0x115)]-_0x5d667d[_0x1b8c92(0x115)])/0x4));if(_0x53f7a1[_0x1b8c92(0x10a)][_0x1b8c92(0x115)]>OFFLOAD_THRESHOLD_CHARS&&!_0x53f7a1[_0x1b8c92(0x10a)]['includes'](_0x1b8c92(0x1a5))){const _0x57b2f6=_0x1b8c92(0x18c)+Math[_0x1b8c92(0x1aa)](_0x53f7a1[_0x1b8c92(0x10a)][_0x1b8c92(0x115)]/0x4)+_0x1b8c92(0x18d),_0x4cc09b=(0x0,cache_manager_1['saveChunk'])(_0x2be5a6,_0x41b07a,_0x53f7a1['content'],_0x57b2f6);_0x53f7a1[_0x1b8c92(0x10a)]=_0x1b8c92(0x183)+_0x4cc09b[_0x1b8c92(0x171)]+_0x1b8c92(0x14a)+_0x4cc09b[_0x1b8c92(0x171)]+'`\x0a',_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x111)](0x0,_0x4cc09b[_0x1b8c92(0x190)]-_0x4cc09b['compressed_tokens']);}}}}}}return{'modified':_0x553667,'savedTokens':_0x1597f6};}const sessionsStatePath=path[a0_0x170d80(0x170)](baseDir,'sessions_state.json');let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x112a8e=a0_0x170d80;try{if(fs[_0x112a8e(0x12e)](sessionsStatePath)){const _0x339740=JSON[_0x112a8e(0x16c)](fs[_0x112a8e(0x18a)](sessionsStatePath,_0x112a8e(0x19f)));if(_0x339740&&typeof _0x339740===_0x112a8e(0x178))return sessionsStateMemoryCache=_0x339740,_0x339740;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x27ded5,_0x2f16d4,_0x380cd5,_0x559e3f=0x0,_0x41bfd0=0x0,_0x14ecd6=0x0){const _0x3401fe=a0_0x170d80;try{const _0x1161cd=loadSessionsState(),_0x405ae4=_0x1161cd[_0x27ded5]||{},_0x4a9659=_0x41bfd0||_0x405ae4[_0x3401fe(0x180)]||0x0,_0x3b3cc8=_0x14ecd6||_0x405ae4[_0x3401fe(0x165)]||0x0,_0x1f6199=_0x380cd5!==undefined?_0x380cd5:_0x405ae4[_0x3401fe(0x149)]||0x0;_0x1161cd[_0x27ded5]={'lineCount':_0x2f16d4||_0x405ae4[_0x3401fe(0x1b8)]||0x1,'activeSavedTokens':_0x1f6199+_0x4a9659+_0x3b3cc8,'sideCacheSaved':_0x559e3f||_0x405ae4[_0x3401fe(0x13c)]||0x0,'officialCompactSaved':_0x1f6199,'autoCompactSaved':_0x4a9659,'hookSavedTokens':_0x3b3cc8},sessionsStateMemoryCache=_0x1161cd;if(!fs['existsSync'](baseDir))fs[_0x3401fe(0x153)](baseDir,{'recursive':!![]});const _0x2ed6ed=sessionsStatePath+_0x3401fe(0x16e);fs['writeFileSync'](_0x2ed6ed,JSON['stringify'](_0x1161cd,null,0x2),_0x3401fe(0x19f)),fs[_0x3401fe(0x146)](_0x2ed6ed,sessionsStatePath);}catch{}}function processSessionFile(_0x8377c3,_0x5b07c4){const _0xf6435f=a0_0x170d80;try{if(!fs[_0xf6435f(0x12e)](_0x8377c3))return;const _0x46deed=fs[_0xf6435f(0x133)](_0x8377c3);if(_0x46deed[_0xf6435f(0x15f)]()||_0x46deed[_0xf6435f(0x163)]===0x0)return;const _0x50660c=loadConfig(),_0x2cd198=_0xf6435f(0x11e)+_0x5b07c4;if(_0x50660c[_0xf6435f(0x182)][_0x2cd198]===![])return;const _0x2cbf95=fs[_0xf6435f(0x18a)](_0x8377c3,_0xf6435f(0x19f)),_0x271e60=path[_0xf6435f(0x16f)](_0x8377c3)[_0xf6435f(0x124)]();let _0x370d1f=0x1;if(_0x271e60===_0xf6435f(0x173)||_0x271e60==='.json1')_0x370d1f=_0x2cbf95['split']('\x0a')[_0xf6435f(0x101)](Boolean)[_0xf6435f(0x115)];else{if(_0x271e60==='.json')try{const _0x370079=JSON[_0xf6435f(0x16c)](_0x2cbf95),_0x1c99df=Array[_0xf6435f(0x14f)](_0x370079['messages'])?_0x370079[_0xf6435f(0x125)]:Array[_0xf6435f(0x14f)](_0x370079)?_0x370079:null;if(_0x1c99df)_0x370d1f=_0x1c99df[_0xf6435f(0x115)];}catch{}}let _0x3b6bbb=0x0;if((_0x271e60==='.jsonl'||_0x271e60==='.json1')&&_0x2cbf95['includes'](_0xf6435f(0x147))&&_0x2cbf95[_0xf6435f(0x16d)](_0xf6435f(0x104))){const _0x427dd4=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x511119 of _0x2cbf95[_0xf6435f(0x168)]('\x0a')){if(!_0x511119[_0xf6435f(0x16d)](_0xf6435f(0x147))||!_0x511119[_0xf6435f(0x16d)](_0xf6435f(0x104)))continue;try{const _0x51e649=JSON[_0xf6435f(0x16c)](_0x511119);if(_0x51e649[_0xf6435f(0x134)]!==_0xf6435f(0x157))continue;const _0x1ca329=typeof _0x51e649[_0xf6435f(0x10a)]===_0xf6435f(0x137)?_0x51e649[_0xf6435f(0x10a)]:_0x51e649[_0xf6435f(0x152)]&&typeof _0x51e649[_0xf6435f(0x152)]['content']===_0xf6435f(0x137)?_0x51e649['message']['content']:'';if(!_0x1ca329)continue;for(const _0x2bfab3 of _0x1ca329[_0xf6435f(0x114)](_0x427dd4)){let _0x376351=parseFloat(_0x2bfab3[0x1]);if(_0x2bfab3[0x0][_0xf6435f(0x124)]()['includes']('k'))_0x376351=_0x376351*0x3e8;_0x3b6bbb+=Math[_0xf6435f(0x164)](_0x376351);}}catch{}}}const _0x583cae=loadSessionsState(),_0xc09e53=_0x583cae[_0x8377c3],_0x10b8c6=_0xc09e53?_0xc09e53[_0xf6435f(0x1b8)]:0x0,_0x5b60b5=_0xc09e53?_0xc09e53['activeSavedTokens']||0x0:0x0;if(_0x10b8c6>0x0&&_0x370d1f>_0x10b8c6&&_0x5b60b5>0x0){const _0x5bb19a=_0xf6435f(0x181)+_0x5b07c4;tracker_1[_0xf6435f(0x11a)][_0xf6435f(0x17f)](_0x5bb19a,'A'[_0xf6435f(0x19a)](_0x5b60b5*0x4),'',0x0,undefined,[_0xf6435f(0x11e)+_0x5b07c4,_0xf6435f(0x1b7),_0x5b07c4,_0xf6435f(0x1ac)]);}const _0x49fffd=_0xc09e53&&_0xc09e53[_0xf6435f(0x149)]!==undefined?_0xc09e53['officialCompactSaved']:0x0,_0x264c9e=Math[_0xf6435f(0x111)](_0x49fffd,_0x3b6bbb);saveSessionStateItem(_0x8377c3,_0x370d1f,_0x264c9e,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x2dec68,_0x3b4e50){const _0x204ac8=a0_0x170d80;try{if(!fs[_0x204ac8(0x12e)](_0x2dec68))return{'ok':![],'reason':'Session\x20file\x20not\x20found'};const _0x1f6d89=path['extname'](_0x2dec68)[_0x204ac8(0x124)]();if(_0x1f6d89!==_0x204ac8(0x15d)&&_0x1f6d89!==_0x204ac8(0x173)&&_0x1f6d89!==_0x204ac8(0x198))return{'ok':![],'reason':_0x204ac8(0x131)+(_0x1f6d89||_0x204ac8(0x172))+'\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)'};const _0x225006=fs['readFileSync'](_0x2dec68,'utf8'),_0x53e8f6=Buffer['byteLength'](_0x225006,_0x204ac8(0x19f)),_0xd851f3=path[_0x204ac8(0x12f)](_0x2dec68,_0x1f6d89);let _0x4feec5=_0x225006,_0x2efa7b=![];if(_0x1f6d89==='.json'){const _0x129166=JSON[_0x204ac8(0x16c)](_0x225006),_0x5b8a6d=Array[_0x204ac8(0x14f)](_0x129166[_0x204ac8(0x125)])?_0x129166[_0x204ac8(0x125)]:Array['isArray'](_0x129166)?_0x129166:null;if(_0x5b8a6d){for(const _0x207793 of _0x5b8a6d){const _0x1e22b9=compressMessageContent(_0x207793,_0xd851f3,_0x3b4e50);if(_0x1e22b9['modified'])_0x2efa7b=!![];}if(_0x2efa7b)_0x4feec5=JSON['stringify'](_0x129166,null,0x2);}}else{const _0x183b67=_0x225006['split']('\x0a'),_0x354b3b=[];for(let _0x187946 of _0x183b67){if(!_0x187946['trim']()){_0x354b3b['push'](_0x187946);continue;}try{const _0x5243a5=JSON[_0x204ac8(0x16c)](_0x187946),_0xe93a97=_0x5243a5[_0x204ac8(0x152)]||_0x5243a5;if(_0xe93a97){const _0x313714=compressMessageContent(_0xe93a97,_0xd851f3,_0x3b4e50);_0x313714[_0x204ac8(0x193)]&&(_0x2efa7b=!![],_0x187946=JSON[_0x204ac8(0x122)](_0x5243a5));}}catch{}_0x354b3b[_0x204ac8(0x191)](_0x187946);}if(_0x2efa7b)_0x4feec5=_0x354b3b[_0x204ac8(0x170)]('\x0a');}const _0x134254=Buffer['byteLength'](_0x4feec5,_0x204ac8(0x19f)),_0x511ca2=path['join'](path[_0x204ac8(0x13d)](_0x2dec68),_0xd851f3+_0x204ac8(0x167)+_0x1f6d89);fs['writeFileSync'](_0x511ca2,_0x4feec5,_0x204ac8(0x19f));const _0x17286e=Math[_0x204ac8(0x1aa)](_0x53e8f6/0x4),_0x11b5fb=Math[_0x204ac8(0x1aa)](_0x134254/0x4),_0x43c800=Math[_0x204ac8(0x111)](0x0,_0x17286e-_0x11b5fb),_0x30be02=_0x53e8f6>0x0?Math[_0x204ac8(0x164)]((0x1-_0x134254/_0x53e8f6)*0x3e8)/0xa:0x0;return _0x43c800>0x0&&tracker_1['tracker'][_0x204ac8(0x17f)](_0x204ac8(0x176)+_0x3b4e50,_0x225006,_0x4feec5,_0x43c800,undefined,[_0x204ac8(0x11e)+_0x3b4e50,_0x204ac8(0x1b7),_0x3b4e50,_0x204ac8(0x192)]),{'ok':!![],'compactPath':_0x511ca2,'rawBytes':_0x53e8f6,'compressedBytes':_0x134254,'rawTokens':_0x17286e,'compressedTokens':_0x11b5fb,'savedTokens':_0x43c800,'reductionPct':_0x30be02};}catch(_0xf30c5){return{'ok':![],'reason':_0xf30c5?.[_0x204ac8(0x152)]||_0x204ac8(0x140)};}}function a0_0x42a9(){const _0x2bf934=['platform','.webp','renameSync','saved','endsWith','officialCompactSaved','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','Windows','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','codex','Programs','isArray','copilot','installWindowsStartupService','message','mkdirSync','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','__createBinding','2056808HDCtQc','system','__importStar','homedir','.venv','default','1XLYnsI','.json','replace','isDirectory','Summary:\x20Content\x20offloaded\x20(','.wal','getLatestSessionFile','size','round','hookSavedTokens','Codex','.compact','split','.aider.chat.history.md','defineProperty','name','parse','includes','.tmp','extname','join','chunk_id','none','.jsonl','get','.agents','compact:','./proxy-conv','object','node_modules','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','watch','savedTokens','workspaceStorage','File\x20not\x20found','logExecution','autoCompactSaved','conv:','conversation_toggles','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','.jpeg','User','toISOString','.gemini','cortex','.next','readFileSync','Cursor','Summary:\x20Tool\x20result\x20offloaded\x20(','\x20tokens).','compressed_tokens','Unsupported\x20extension','raw_tokens','push','compact_copy','modified','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','saveChunk','.trimprompt','fullPath','.json1','2911083WLIlEX','repeat','writeFileSync','2204358uSrVXW','gemini','.claude','utf8','github-copilot-cli','config.json','loadSessionsState','.openclaw','aider','TrimPrompt\x20Cache\x20Engine','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','startsWith','out','mtimeMs','ceil','saveSessionStateItem','prompt_turn','__setModuleDefault','image_','AppData','cursor','venv','1883480vqOMTR','__pycache__','has','./hooks/claude-hook','assign','live-conv','lineCount','__esModule','antigravity','cli.js','byteLength','filter','path','startWatcherDaemon','tokens','create','.pb','configurable','media__','cache','content','opencode','sessions','Roaming','win32','trim','custom_storage_paths','max','Application\x20Support','text','matchAll','length','.jpg','Startup','.cortex','1425796lHRlAS','tracker','1094070rWftWm','TrimPromptDaemon.vbs','writable','conv_','.config','hasOwnProperty','Gemini','stringify','.vscdb','toLowerCase','messages','.dat','Summary:\x20Text\x20block\x20offloaded\x20(','Microsoft','.lock','prototype','processSessionFile','.git','set','existsSync','basename','compactLiveSession','Unsupported\x20format\x20\x27','storage','statSync','type','226233tLGKVh','getOwnPropertyNames','string','find','env','call','role','sideCacheSaved','dirname','saveConfig','.shm','compaction\x20failed','Start\x20Menu','projects','getOwnPropertyDescriptor'];a0_0x42a9=function(){return _0x2bf934;};return a0_0x42a9();}function a0_0x5d9d(_0x52e760,_0x3a15a8){_0x52e760=_0x52e760-0x101;const _0x42a9b0=a0_0x42a9();let _0x5d9d45=_0x42a9b0[_0x52e760];return _0x5d9d45;}function compactLiveSession(_0x3995b8,_0x346c9b){const _0x1045ab=a0_0x170d80;try{if(!fs[_0x1045ab(0x12e)](_0x3995b8))return{'ok':![],'savedTokens':0x0,'reason':_0x1045ab(0x17e)};const _0x39a595=path[_0x1045ab(0x16f)](_0x3995b8)[_0x1045ab(0x124)]();if(_0x39a595!=='.json'&&_0x39a595!==_0x1045ab(0x173)&&_0x39a595!==_0x1045ab(0x198))return{'ok':![],'savedTokens':0x0,'reason':_0x1045ab(0x18f)};const _0x5a7f2c=fs[_0x1045ab(0x18a)](_0x3995b8,_0x1045ab(0x19f)),_0x3fcaee=Buffer[_0x1045ab(0x1bc)](_0x5a7f2c,'utf8'),_0x28cad6=Math[_0x1045ab(0x1aa)](_0x3fcaee/0x4),_0x495108=path[_0x1045ab(0x12f)](_0x3995b8,_0x39a595);let _0x5e69e2=_0x5a7f2c,_0x15aba6=![];if(_0x39a595===_0x1045ab(0x15d)){const _0x2604ce=JSON[_0x1045ab(0x16c)](_0x5a7f2c),_0x411f0f=Array[_0x1045ab(0x14f)](_0x2604ce['messages'])?_0x2604ce[_0x1045ab(0x125)]:Array['isArray'](_0x2604ce)?_0x2604ce:null;if(_0x411f0f){for(const _0x206016 of _0x411f0f){const _0xf59429=compressMessageContent(_0x206016,_0x495108,_0x346c9b);if(_0xf59429[_0x1045ab(0x193)])_0x15aba6=!![];}const {compressConversation:_0x35fbf3}=require('./proxy-conv'),_0x33b188=_0x35fbf3(_0x411f0f,0x9c40);_0x33b188['savedTokens']>0x0&&(_0x15aba6=!![],Array[_0x1045ab(0x14f)](_0x2604ce['messages'])?_0x2604ce['messages']=_0x33b188[_0x1045ab(0x125)]:_0x5e69e2=JSON[_0x1045ab(0x122)](_0x33b188['messages'],null,0x2)),_0x15aba6&&!Array['isArray'](_0x2604ce)&&(_0x5e69e2=JSON[_0x1045ab(0x122)](_0x2604ce,null,0x2));}}else{const _0x53b65=_0x5a7f2c['split']('\x0a'),_0x1dc2a7=[],_0x4da71d=[];for(const _0x58f621 of _0x53b65){if(!_0x58f621[_0x1045ab(0x10f)]())continue;try{const _0x2244a2=JSON[_0x1045ab(0x16c)](_0x58f621);_0x1dc2a7['push'](_0x2244a2);const _0x4588dc=_0x2244a2[_0x1045ab(0x152)]||_0x2244a2;_0x4588dc&&typeof _0x4588dc[_0x1045ab(0x13b)]===_0x1045ab(0x137)&&_0x4da71d[_0x1045ab(0x191)](_0x4588dc);}catch{}}for(const _0x207308 of _0x4da71d){const _0x538ac5=compressMessageContent(_0x207308,_0x495108,_0x346c9b);if(_0x538ac5[_0x1045ab(0x193)])_0x15aba6=!![];}const {compressConversation:_0x52749e}=require(_0x1045ab(0x177)),_0x268c95=_0x52749e(_0x4da71d,0x9c40);if(_0x268c95[_0x1045ab(0x17c)]>0x0||_0x15aba6){const _0x11ab8a=[];for(const _0x20cf71 of _0x1dc2a7){const _0xde21cf=_0x20cf71[_0x1045ab(0x152)]||_0x20cf71;if(_0xde21cf&&typeof _0xde21cf[_0x1045ab(0x13b)]==='string'){const _0x1dd5ca=_0x268c95[_0x1045ab(0x125)][_0x1045ab(0x138)](_0x3a6bd2=>_0x3a6bd2===_0xde21cf);_0x1dd5ca?(_0x20cf71['message']?_0x20cf71['message']=_0x1dd5ca:Object[_0x1045ab(0x1b6)](_0x20cf71,_0x1dd5ca),_0x11ab8a[_0x1045ab(0x191)](JSON['stringify'](_0x20cf71))):_0x15aba6=!![];}else _0x11ab8a[_0x1045ab(0x191)](JSON[_0x1045ab(0x122)](_0x20cf71));}_0x5e69e2=_0x11ab8a['join']('\x0a'),_0x15aba6=!![];}}if(_0x15aba6){const _0x5c8c8d=Buffer[_0x1045ab(0x1bc)](_0x5e69e2,_0x1045ab(0x19f));fs['writeFileSync'](_0x3995b8,_0x5e69e2,'utf8');const _0x271edb=Math[_0x1045ab(0x1aa)](_0x5c8c8d/0x4),_0x37b006=Math[_0x1045ab(0x111)](0x0,_0x28cad6-_0x271edb);if(_0x37b006>0x0){const _0x409284=loadSessionsState(),_0x36a767=_0x409284[_0x3995b8]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x55fb50=_0x36a767[_0x1045ab(0x180)]||0x0,_0x487665=_0x55fb50+_0x37b006;saveSessionStateItem(_0x3995b8,_0x36a767[_0x1045ab(0x1b8)],_0x36a767[_0x1045ab(0x149)]||0x0,_0x36a767[_0x1045ab(0x13c)]||0x0,_0x487665,_0x36a767[_0x1045ab(0x165)]||0x0),tracker_1[_0x1045ab(0x11a)][_0x1045ab(0x17f)](_0x1045ab(0x176)+_0x346c9b,_0x5a7f2c,_0x5e69e2,_0x37b006,undefined,[_0x1045ab(0x11e)+_0x346c9b,_0x1045ab(0x1b7),_0x346c9b,_0x1045ab(0x192)]);}return{'ok':!![],'savedTokens':_0x37b006};}return{'ok':!![],'savedTokens':0x0};}catch(_0x4740a9){return{'ok':![],'savedTokens':0x0,'reason':_0x4740a9[_0x1045ab(0x152)]||'Compaction\x20failed'};}}function installWindowsStartupService(){const _0x2ebd1e=a0_0x170d80;if(process['platform']!=='win32')return;try{const _0x2ed8c5=path[_0x2ebd1e(0x170)](os[_0x2ebd1e(0x159)](),_0x2ebd1e(0x1af),_0x2ebd1e(0x10d),_0x2ebd1e(0x128),_0x2ebd1e(0x14b),_0x2ebd1e(0x141),_0x2ebd1e(0x14e),_0x2ebd1e(0x117));if(!fs[_0x2ebd1e(0x12e)](_0x2ed8c5))fs[_0x2ebd1e(0x153)](_0x2ed8c5,{'recursive':!![]});const _0xa81d99=path[_0x2ebd1e(0x170)](_0x2ed8c5,_0x2ebd1e(0x11c)),_0x392fe5=path['join'](__dirname,_0x2ebd1e(0x1bb)),_0x316be0=_0x392fe5[_0x2ebd1e(0x15e)](/\\/g,'\x5c\x5c'),_0x3ae773=_0x2ebd1e(0x14c)+_0x316be0+_0x2ebd1e(0x17a);fs[_0x2ebd1e(0x19b)](_0xa81d99,_0x3ae773,_0x2ebd1e(0x19f));}catch{}}function startWatcherDaemon(){const _0x3e611a=a0_0x170d80;installWindowsStartupService();try{const {installClaudeHooks:_0x2a5874}=require(_0x3e611a(0x1b5));_0x2a5874();}catch(_0x576bf5){}const _0x473201=['claude',_0x3e611a(0x19d),_0x3e611a(0x14d),'cursor',_0x3e611a(0x1a4),_0x3e611a(0x150),'openclaw',_0x3e611a(0x10b),'cortex'];for(const _0x592a51 of _0x473201){const _0x222d7a=getAgentStoragePaths(_0x592a51);for(const _0x336801 of _0x222d7a){if(fs[_0x3e611a(0x12e)](_0x336801))try{fs[_0x3e611a(0x17b)](_0x336801,{'recursive':!![]},(_0x378f77,_0x46c571)=>{const _0x366b8c=_0x3e611a;if(!_0x46c571)return;const _0x25bef9=path[_0x366b8c(0x170)](_0x336801,_0x46c571);if(debounceTimers[_0x366b8c(0x1b4)](_0x25bef9))clearTimeout(debounceTimers['get'](_0x25bef9));const _0x4c49bd=setTimeout(()=>processSessionFile(_0x25bef9,_0x592a51),0x1f4);debounceTimers[_0x366b8c(0x12d)](_0x25bef9,_0x4c49bd);});}catch{}}}setInterval(()=>{for(const _0x3e26ba of _0x473201){try{const _0x204632=getLatestSessionFile(_0x3e26ba);_0x204632&&_0x204632['fullPath']&&processSessionFile(_0x204632['fullPath'],_0x3e26ba);}catch{}}},0xbb8);const _0x489731=()=>{const _0x1bb454=_0x3e611a;for(const _0xb8496d of _0x473201){try{const _0x7a6eb6=getLatestSessionFile(_0xb8496d);_0x7a6eb6&&_0x7a6eb6[_0x1bb454(0x197)]&&compactLiveSession(_0x7a6eb6[_0x1bb454(0x197)],_0xb8496d);}catch{}}};setTimeout(_0x489731,0x7d0),setInterval(_0x489731,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_0xd73e77=a0_0x6af5;function a0_0x6af5(_0x440711,_0x258daa){_0x440711=_0x440711-0x19d;const _0x4a2964=a0_0x4a29();let _0x6af51f=_0x4a2964[_0x440711];return _0x6af51f;}(function(_0x36da3b,_0x27a9a0){const _0x6ecf74=a0_0x6af5,_0x5dfba9=_0x36da3b();while(!![]){try{const _0x50a1e8=parseInt(_0x6ecf74(0x1c6))/0x1+-parseInt(_0x6ecf74(0x1c5))/0x2+-parseInt(_0x6ecf74(0x19f))/0x3*(parseInt(_0x6ecf74(0x1b1))/0x4)+parseInt(_0x6ecf74(0x1b2))/0x5*(-parseInt(_0x6ecf74(0x1bf))/0x6)+parseInt(_0x6ecf74(0x1c8))/0x7+-parseInt(_0x6ecf74(0x19e))/0x8*(-parseInt(_0x6ecf74(0x1aa))/0x9)+parseInt(_0x6ecf74(0x1cf))/0xa*(parseInt(_0x6ecf74(0x1b6))/0xb);if(_0x50a1e8===_0x27a9a0)break;else _0x5dfba9['push'](_0x5dfba9['shift']());}catch(_0xecfec3){_0x5dfba9['push'](_0x5dfba9['shift']());}}}(a0_0x4a29,0x6cfd7));Object[a0_0xd73e77(0x1a9)](exports,a0_0xd73e77(0x1b4),{'value':!![]}),exports[a0_0xd73e77(0x1d0)]=filterDockerPs,exports['filterDockerImages']=filterDockerImages,exports[a0_0xd73e77(0x1cc)]=filterDockerLogs,exports['filterKubectl']=filterKubectl,exports[a0_0xd73e77(0x1c1)]=filterRuff;function filterDockerPs(_0x499a7c){const _0x38a3f6=a0_0xd73e77,_0xccdd23=_0x499a7c['split']('\x0a')[_0x38a3f6(0x1a3)](_0x4d9c6f=>_0x4d9c6f[_0x38a3f6(0x1a6)]()[_0x38a3f6(0x1c7)]>0x0);if(_0xccdd23['length']===0x0)return _0x38a3f6(0x1ad);if(_0xccdd23[_0x38a3f6(0x1c7)]<=0xa)return _0x499a7c[_0x38a3f6(0x1a6)]();const _0x19c019=_0xccdd23[0x0],_0x52244a=_0xccdd23[_0x38a3f6(0x1b7)](0x1),_0x150ef0=[];_0x150ef0['push'](_0x38a3f6(0x1cd)+_0x52244a['length']+_0x38a3f6(0x1ba)),_0x150ef0['push']('');for(const _0x565d56 of _0x52244a){const _0xa4bdc6=_0x565d56[_0x38a3f6(0x1a0)](/\s{2,}/);if(_0xa4bdc6[_0x38a3f6(0x1c7)]>=0x5){const _0x499121=_0xa4bdc6[0x0]['substring'](0x0,0xc),_0x482fd4=_0xa4bdc6[0x1],_0x461f3e=_0xa4bdc6[_0xa4bdc6['length']-0x2]||'',_0x5bfc8e=_0xa4bdc6[_0xa4bdc6[_0x38a3f6(0x1c7)]-0x1]||'';_0x150ef0['push']('\x20\x20'+_0x499121+'\x20\x20'+_0x482fd4+'\x20\x20'+_0x461f3e+'\x20\x20'+_0x5bfc8e);}else _0x150ef0[_0x38a3f6(0x1ae)]('\x20\x20'+_0x565d56['trim']());}return _0x150ef0['join']('\x0a');}function filterDockerImages(_0x5970c4){const _0xd9dcbb=a0_0xd73e77,_0x1ac872=_0x5970c4[_0xd9dcbb(0x1a0)]('\x0a')[_0xd9dcbb(0x1a3)](_0x31dd99=>_0x31dd99[_0xd9dcbb(0x1a6)]()[_0xd9dcbb(0x1c7)]>0x0);if(_0x1ac872['length']<=0x1)return _0xd9dcbb(0x1c4);if(_0x1ac872[_0xd9dcbb(0x1c7)]<=0xf)return _0x5970c4[_0xd9dcbb(0x1a6)]();const _0x34f067=_0x1ac872[_0xd9dcbb(0x1b7)](0x1),_0x34ff90=[_0xd9dcbb(0x1c0)+_0x34f067[_0xd9dcbb(0x1c7)]+_0xd9dcbb(0x1ba)];_0x34ff90['push']('');const _0x4a2458=_0x34f067[_0xd9dcbb(0x1b7)](0x0,0x14);for(const _0x1fac53 of _0x4a2458){const _0x18ae70=_0x1fac53['split'](/\s{2,}/);if(_0x18ae70[_0xd9dcbb(0x1c7)]>=0x3){const _0xda65dd=_0x18ae70[0x0],_0x33d611=_0x18ae70[0x1],_0x1e1f65=_0x18ae70[_0x18ae70[_0xd9dcbb(0x1c7)]-0x1]||'';_0x34ff90[_0xd9dcbb(0x1ae)]('\x20\x20'+_0xda65dd+':'+_0x33d611+'\x20\x20'+_0x1e1f65);}else _0x34ff90[_0xd9dcbb(0x1ae)]('\x20\x20'+_0x1fac53[_0xd9dcbb(0x1a6)]());}return _0x34f067[_0xd9dcbb(0x1c7)]>0x14&&_0x34ff90[_0xd9dcbb(0x1ae)](_0xd9dcbb(0x1ab)+(_0x34f067[_0xd9dcbb(0x1c7)]-0x14)+_0xd9dcbb(0x1c9)),_0x34ff90['join']('\x0a');}function a0_0x4a29(){const _0x3cd547=['\x20\x20...\x20+','\x20more\x20events','No\x20containers\x20running','push','startsWith','\x20more\x20resources','402772PWkfJZ','5aVpfCL','...\x20+','__esModule','logs','957ngkuNv','slice','No\x20resources\x20found','keys','\x20total','Ruff:\x20','join','Found\x200\x20error','match','5242206Ctyoaz','Docker\x20images:\x20','filterRuff','\x20lines\x20truncated]\x20...\x0a','get','No\x20images\x20found','343796dJVJzk','173066OfoUid','length','5596703EvxwXF','\x20more\x20images','includes','All\x20checks\x20passed','filterDockerLogs','Containers:\x20','\x20more\x20files','31590eWuFws','filterDockerPs','Ruff:\x20all\x20checks\x20passed','\x20\x20...\x20(','4504MOnxjV','9uAsnJj','split','describe','\x0a...\x20[','filter','\x20more','\x0a...\x20+','trim','\x20resources\x20found','\x20issues\x20in\x20','defineProperty','8739bhsAOA'];a0_0x4a29=function(){return _0x3cd547;};return a0_0x4a29();}function filterDockerLogs(_0x4a1222){const _0x29fe6a=a0_0xd73e77,_0x49bc63=_0x4a1222[_0x29fe6a(0x1a0)]('\x0a');if(_0x49bc63['length']<=0x32)return _0x4a1222;const _0x15987a=[];return _0x15987a[_0x29fe6a(0x1ae)](..._0x49bc63[_0x29fe6a(0x1b7)](0x0,0x14)),_0x15987a['push'](_0x29fe6a(0x1a2)+(_0x49bc63[_0x29fe6a(0x1c7)]-0x28)+_0x29fe6a(0x1c2)),_0x15987a['push'](..._0x49bc63['slice'](-0x14)),_0x15987a[_0x29fe6a(0x1ae)]('\x0a('+_0x49bc63['length']+'\x20log\x20lines\x20total)'),_0x15987a[_0x29fe6a(0x1bc)]('\x0a');}function filterKubectl(_0x1a9edf,_0x49d326){const _0x5af4c5=a0_0xd73e77,_0x21feab=_0x1a9edf[_0x5af4c5(0x1a0)]('\x0a')[_0x5af4c5(0x1a3)](_0x54c4a4=>_0x54c4a4[_0x5af4c5(0x1a6)]()[_0x5af4c5(0x1c7)]>0x0);if(_0x21feab[_0x5af4c5(0x1c7)]===0x0)return _0x5af4c5(0x1b8);if(_0x21feab['length']<=0x14)return _0x1a9edf['trim']();if(_0x49d326===_0x5af4c5(0x1c3)){const _0x461b4b=_0x21feab[0x0],_0x21f5ec=_0x21feab[_0x5af4c5(0x1b7)](0x1),_0x46b195=[_0x21f5ec[_0x5af4c5(0x1c7)]+_0x5af4c5(0x1a7),'',_0x461b4b];return _0x21f5ec[_0x5af4c5(0x1c7)]<=0x1e?_0x46b195[_0x5af4c5(0x1ae)](..._0x21f5ec):(_0x46b195[_0x5af4c5(0x1ae)](..._0x21f5ec['slice'](0x0,0x19)),_0x46b195['push'](_0x5af4c5(0x1b3)+(_0x21f5ec[_0x5af4c5(0x1c7)]-0x19)+_0x5af4c5(0x1b0))),_0x46b195[_0x5af4c5(0x1bc)]('\x0a');}if(_0x49d326===_0x5af4c5(0x1a1)){const _0x599884=[];let _0x4be136=![],_0x59ecf1=0x0;for(const _0x463dac of _0x21feab){if(_0x463dac[_0x5af4c5(0x1af)]('Events:')){_0x4be136=!![],_0x599884[_0x5af4c5(0x1ae)](_0x463dac);continue;}if(_0x4be136){_0x59ecf1++;if(_0x59ecf1<=0x5)_0x599884[_0x5af4c5(0x1ae)](_0x463dac);}else _0x599884[_0x5af4c5(0x1ae)](_0x463dac);}return _0x59ecf1>0x5&&_0x599884['push'](_0x5af4c5(0x1ab)+(_0x59ecf1-0x5)+_0x5af4c5(0x1ac)),_0x599884[_0x5af4c5(0x1bc)]('\x0a');}if(_0x49d326===_0x5af4c5(0x1b5))return filterDockerLogs(_0x1a9edf);const _0x108613=_0x21feab[_0x5af4c5(0x1b7)](0x0,0x1e);return _0x21feab[_0x5af4c5(0x1c7)]>0x1e&&_0x108613['push'](_0x5af4c5(0x1b3)+(_0x21feab[_0x5af4c5(0x1c7)]-0x1e)+'\x20more\x20lines'),_0x108613[_0x5af4c5(0x1bc)]('\x0a');}function filterRuff(_0x25db6b){const _0x298e2c=a0_0xd73e77,_0x4cd732=_0x25db6b[_0x298e2c(0x1a0)]('\x0a')[_0x298e2c(0x1a3)](_0x5860e4=>_0x5860e4[_0x298e2c(0x1a6)]()[_0x298e2c(0x1c7)]>0x0);if(_0x4cd732['length']===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0x25db6b[_0x298e2c(0x1ca)](_0x298e2c(0x1cb))||_0x25db6b[_0x298e2c(0x1ca)](_0x298e2c(0x1bd)))return _0x298e2c(0x1d1);const _0x166121=_0x25db6b[_0x298e2c(0x1be)](/Found (\d+) error/),_0x45da11=_0x166121?parseInt(_0x166121[0x1]):_0x4cd732['length'],_0x62061c={},_0x572579=[];for(const _0x2a7a45 of _0x4cd732){const _0x3fd3f0=_0x2a7a45[_0x298e2c(0x1be)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x3fd3f0){const _0x7f6a33=_0x3fd3f0[0x1],_0x49adab=_0x7f6a33[_0x298e2c(0x1a0)](':')[0x0];if(!_0x62061c[_0x49adab])_0x62061c[_0x49adab]=[];_0x62061c[_0x49adab][_0x298e2c(0x1ae)](_0x2a7a45);}else _0x572579[_0x298e2c(0x1ae)](_0x2a7a45);}const _0x324f9a=Object[_0x298e2c(0x1b9)](_0x62061c);if(_0x324f9a[_0x298e2c(0x1c7)]===0x0){if(_0x4cd732[_0x298e2c(0x1c7)]<=0x14)return _0x25db6b[_0x298e2c(0x1a6)]();return _0x4cd732['slice'](0x0,0xf)[_0x298e2c(0x1bc)]('\x0a')+(_0x298e2c(0x1a5)+(_0x4cd732[_0x298e2c(0x1c7)]-0xf)+_0x298e2c(0x1a4));}const _0x1f36df=[_0x298e2c(0x1bb)+_0x45da11+_0x298e2c(0x1a8)+_0x324f9a[_0x298e2c(0x1c7)]+'\x20files'];_0x1f36df[_0x298e2c(0x1ae)]('');const _0x4f8194=0xa;for(const _0xd01a22 of _0x324f9a['slice'](0x0,_0x4f8194)){const _0x2dbff4=_0x62061c[_0xd01a22];if(_0x2dbff4['length']<=0x3){for(const _0x9b81d of _0x2dbff4)_0x1f36df[_0x298e2c(0x1ae)]('\x20\x20'+_0x9b81d);}else _0x1f36df[_0x298e2c(0x1ae)]('\x20\x20'+_0x2dbff4[0x0]),_0x1f36df[_0x298e2c(0x1ae)](_0x298e2c(0x19d)+_0x2dbff4[_0x298e2c(0x1c7)]+_0x298e2c(0x1a8)+_0xd01a22+')');}return _0x324f9a['length']>_0x4f8194&&_0x1f36df[_0x298e2c(0x1ae)](_0x298e2c(0x1ab)+(_0x324f9a[_0x298e2c(0x1c7)]-_0x4f8194)+_0x298e2c(0x1ce)),_0x1f36df[_0x298e2c(0x1bc)]('\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_0x50da5e=a0_0x21e2;(function(_0x4ba4fc,_0x5c0476){const _0x110450=a0_0x21e2,_0x50933a=_0x4ba4fc();while(!![]){try{const _0xa62240=parseInt(_0x110450(0x11b))/0x1+parseInt(_0x110450(0x10a))/0x2+-parseInt(_0x110450(0x122))/0x3*(-parseInt(_0x110450(0xfd))/0x4)+-parseInt(_0x110450(0x11c))/0x5+-parseInt(_0x110450(0x11a))/0x6+-parseInt(_0x110450(0x111))/0x7*(parseInt(_0x110450(0x112))/0x8)+parseInt(_0x110450(0x117))/0x9*(-parseInt(_0x110450(0x104))/0xa);if(_0xa62240===_0x5c0476)break;else _0x50933a['push'](_0x50933a['shift']());}catch(_0x11680c){_0x50933a['push'](_0x50933a['shift']());}}}(a0_0x3832,0xb9779));Object[a0_0x50da5e(0x10b)](exports,a0_0x50da5e(0xf9),{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x50da5e(0x114)]=collapseDuplicates,exports[a0_0x50da5e(0x128)]=collapseWhitespace,exports['stripComments']=stripComments,exports[a0_0x50da5e(0x101)]=smartCrushJson,exports['softTruncate']=softTruncate;function stripAnsi(_0x5913b7){const _0x48ac5d=a0_0x50da5e,_0x22b60b=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x5913b7[_0x48ac5d(0xfc)](_0x22b60b,'');}function a0_0x3832(){const _0x4ddb5e=['9BfCEnJ','funding','dev','5169138xyGgLG','571952WqQYlv','4613060TctQrk','test','\x0a\x0a\x0a','stringify','\x20fields,\x20showing\x20','\x20more\x20rows','556455oHhxSE','slice','sha','min','push','startsWith','collapseWhitespace','\x20items,\x20','keys','parse','repository','__esModule','split','engines','replace','28jxHTYj','map','bugs','includes','smartCrushJson','signature','length','4228190WfEHbq','trim','join','\x20key\x20fields)','object','\x20characters\x20of\x20output]\x20...\x0a','2341488SZLLEp','defineProperty','substring','resolved','checksum','toLowerCase','...\x20+','40096SOGSAa','104hIGQsk','hash','collapseDuplicates','\x0a...\x20[TrimPrompt:\x20Truncated\x20','\x20[x'];a0_0x3832=function(){return _0x4ddb5e;};return a0_0x3832();}function collapseDuplicates(_0x40b842){const _0x5273e1=a0_0x50da5e,_0x5c2869=_0x40b842[_0x5273e1(0xfa)]('\x0a');if(_0x5c2869['length']<=0x1)return _0x40b842;const _0x98105=[];let _0x38298f=_0x5c2869[0x0],_0x465036=0x1;for(let _0x40c3f4=0x1;_0x40c3f4<_0x5c2869[_0x5273e1(0x103)];_0x40c3f4++){const _0x3c237a=_0x5c2869[_0x40c3f4];_0x3c237a===_0x38298f&&_0x3c237a[_0x5273e1(0x105)]()[_0x5273e1(0x103)]>0x0?_0x465036++:(_0x465036>0x1?_0x98105[_0x5273e1(0x126)](_0x38298f+'\x20[x'+_0x465036+']'):_0x98105[_0x5273e1(0x126)](_0x38298f),_0x38298f=_0x3c237a,_0x465036=0x1);}return _0x465036>0x1?_0x98105[_0x5273e1(0x126)](_0x38298f+_0x5273e1(0x116)+_0x465036+']'):_0x98105['push'](_0x38298f),_0x98105[_0x5273e1(0x106)]('\x0a');}function collapseWhitespace(_0x54ebf1){const _0x84d5a6=a0_0x50da5e;let _0x26f14c=_0x54ebf1[_0x84d5a6(0xfc)](/[ \t]+$/gm,'');return _0x26f14c=_0x26f14c[_0x84d5a6(0xfc)](/\n{4,}/g,_0x84d5a6(0x11e)),_0x26f14c;}function stripComments(_0x1d20a3,_0x30f4b4){const _0x439d6e=a0_0x50da5e;if(!_0x30f4b4)return _0x1d20a3;const _0x5a114e=_0x1d20a3['split']('\x0a');if(_0x5a114e[_0x439d6e(0x103)]<=0x96)return _0x1d20a3;const _0xca0bb5={'.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*#(?!!)/},_0x47b890=_0xca0bb5[_0x30f4b4[_0x439d6e(0x10f)]()];if(!_0x47b890)return _0x1d20a3;const _0x5a94b8=_0x5a114e['filter'](_0x356249=>!_0x47b890[_0x439d6e(0x11d)](_0x356249));return _0x5a94b8[_0x439d6e(0x106)]('\x0a');}function a0_0x21e2(_0x329323,_0x5a0bba){_0x329323=_0x329323-0xf9;const _0x38324d=a0_0x3832();let _0x21e2e1=_0x38324d[_0x329323];return _0x21e2e1;}function smartCrushJson(_0x5f12bf){const _0x13641a=a0_0x50da5e;try{const _0x380c03=_0x5f12bf[_0x13641a(0x105)]();if(!_0x380c03[_0x13641a(0x127)]('['))return null;const _0x5cd2c2=JSON[_0x13641a(0x12b)](_0x380c03);if(!Array['isArray'](_0x5cd2c2)||_0x5cd2c2[_0x13641a(0x103)]<0x3)return null;if(typeof _0x5cd2c2[0x0]!==_0x13641a(0x108)||_0x5cd2c2[0x0]===null)return null;const _0x47f705=Object[_0x13641a(0x12a)](_0x5cd2c2[0x0]);if(_0x47f705[_0x13641a(0x103)]===0x0)return null;const _0x28c8e7=_0x47f705['filter'](_0x422b9b=>{const _0x5be42d=_0x13641a,_0x12f7ad=_0x422b9b[_0x5be42d(0x10f)]();return!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x10d))&&!_0x12f7ad[_0x5be42d(0x100)]('integrity')&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x124))&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x113))&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x10e))&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x102))&&!_0x12f7ad['includes'](_0x5be42d(0x119))&&_0x12f7ad!==_0x5be42d(0x118)&&_0x12f7ad!==_0x5be42d(0xfb)&&_0x12f7ad!==_0x5be42d(0xff)&&_0x12f7ad!==_0x5be42d(0x12c);})[_0x13641a(0x123)](0x0,0x6);if(_0x28c8e7['length']===0x0)return null;const _0x3f3c16=[];_0x3f3c16['push'](_0x28c8e7['join']('|'));const _0x1a33ea=0x1e;for(let _0x519240=0x0;_0x519240<Math[_0x13641a(0x125)](_0x5cd2c2[_0x13641a(0x103)],_0x1a33ea);_0x519240++){const _0x473682=_0x28c8e7[_0x13641a(0xfe)](_0x5715dd=>{const _0x41db0a=_0x13641a,_0x5cc465=_0x5cd2c2[_0x519240][_0x5715dd];if(_0x5cc465===null||_0x5cc465===undefined)return'';if(typeof _0x5cc465===_0x41db0a(0x108))return JSON[_0x41db0a(0x11f)](_0x5cc465)[_0x41db0a(0x10c)](0x0,0x28);return String(_0x5cc465)[_0x41db0a(0x10c)](0x0,0x3c);});_0x3f3c16[_0x13641a(0x126)](_0x473682['join']('|'));}_0x5cd2c2['length']>_0x1a33ea&&_0x3f3c16[_0x13641a(0x126)](_0x13641a(0x110)+(_0x5cd2c2[_0x13641a(0x103)]-_0x1a33ea)+_0x13641a(0x121));_0x3f3c16[_0x13641a(0x126)]('\x0a('+_0x5cd2c2[_0x13641a(0x103)]+_0x13641a(0x129)+_0x47f705[_0x13641a(0x103)]+_0x13641a(0x120)+_0x28c8e7['length']+_0x13641a(0x107));const _0x5a2c3e=_0x3f3c16[_0x13641a(0x106)]('\x0a');if(_0x5a2c3e[_0x13641a(0x103)]<_0x380c03[_0x13641a(0x103)])return _0x5a2c3e;return null;}catch{return null;}}function softTruncate(_0x4f03c2,_0x29966e=0x4e20){const _0x1b7a46=a0_0x50da5e;if(_0x4f03c2[_0x1b7a46(0x103)]<=_0x29966e)return _0x4f03c2;const _0x150a19=_0x4f03c2[_0x1b7a46(0xfa)]('\x0a');if(_0x150a19[_0x1b7a46(0x103)]<=0xc8)return _0x4f03c2;const _0x37c910=0x32,_0x14b6e9=0x96,_0xa11924=_0x150a19['slice'](0x0,_0x37c910),_0x1d3594=_0x150a19[_0x1b7a46(0x123)](_0x150a19['length']-_0x14b6e9),_0x5bc1b9=_0x4f03c2[_0x1b7a46(0x103)]-(_0xa11924['join']('\x0a')['length']+_0x1d3594['join']('\x0a')[_0x1b7a46(0x103)]);return[..._0xa11924,_0x1b7a46(0x115)+_0x5bc1b9+_0x1b7a46(0x109),..._0x1d3594][_0x1b7a46(0x106)]('\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';const a0_0x4aea8d=a0_0x2e48;(function(_0x48d62a,_0xb565b6){const _0x1804bb=a0_0x2e48,_0x90e21e=_0x48d62a();while(!![]){try{const _0x13467e=parseInt(_0x1804bb(0x1de))/0x1*(-parseInt(_0x1804bb(0x1f1))/0x2)+parseInt(_0x1804bb(0x207))/0x3*(-parseInt(_0x1804bb(0x208))/0x4)+parseInt(_0x1804bb(0x1e1))/0x5*(-parseInt(_0x1804bb(0x1fb))/0x6)+parseInt(_0x1804bb(0x1ed))/0x7*(-parseInt(_0x1804bb(0x1f5))/0x8)+-parseInt(_0x1804bb(0x1dc))/0x9*(-parseInt(_0x1804bb(0x200))/0xa)+parseInt(_0x1804bb(0x1e6))/0xb*(-parseInt(_0x1804bb(0x1d6))/0xc)+parseInt(_0x1804bb(0x1f3))/0xd*(parseInt(_0x1804bb(0x1f4))/0xe);if(_0x13467e===_0xb565b6)break;else _0x90e21e['push'](_0x90e21e['shift']());}catch(_0x21565d){_0x90e21e['push'](_0x90e21e['shift']());}}}(a0_0x3b47,0x38ee0));var __createBinding=this&&this[a0_0x4aea8d(0x1e8)]||(Object[a0_0x4aea8d(0x203)]?function(_0x5135c4,_0x311540,_0x187b7f,_0x48cebe){const _0x4014c5=a0_0x4aea8d;if(_0x48cebe===undefined)_0x48cebe=_0x187b7f;var _0xcfd554=Object[_0x4014c5(0x1e4)](_0x311540,_0x187b7f);(!_0xcfd554||(_0x4014c5(0x1d4)in _0xcfd554?!_0x311540[_0x4014c5(0x1f6)]:_0xcfd554[_0x4014c5(0x1d5)]||_0xcfd554['configurable']))&&(_0xcfd554={'enumerable':!![],'get':function(){return _0x311540[_0x187b7f];}}),Object['defineProperty'](_0x5135c4,_0x48cebe,_0xcfd554);}:function(_0x39f50b,_0x3333f2,_0x469cd5,_0x430627){if(_0x430627===undefined)_0x430627=_0x469cd5;_0x39f50b[_0x430627]=_0x3333f2[_0x469cd5];}),__setModuleDefault=this&&this[a0_0x4aea8d(0x1ef)]||(Object[a0_0x4aea8d(0x203)]?function(_0x59589d,_0x4ccabb){const _0x277059=a0_0x4aea8d;Object[_0x277059(0x1ec)](_0x59589d,'default',{'enumerable':!![],'value':_0x4ccabb});}:function(_0xd76b83,_0x511d76){const _0x48614b=a0_0x4aea8d;_0xd76b83[_0x48614b(0x1db)]=_0x511d76;}),__importStar=this&&this['__importStar']||(function(){var _0x47ff1a=function(_0x369ad9){return _0x47ff1a=Object['getOwnPropertyNames']||function(_0x2cc2ad){const _0x356958=a0_0x2e48;var _0x3a7d0c=[];for(var _0x54355e in _0x2cc2ad)if(Object['prototype']['hasOwnProperty'][_0x356958(0x1e2)](_0x2cc2ad,_0x54355e))_0x3a7d0c[_0x3a7d0c[_0x356958(0x1f8)]]=_0x54355e;return _0x3a7d0c;},_0x47ff1a(_0x369ad9);};return function(_0x4f76e0){const _0x5b92b8=a0_0x2e48;if(_0x4f76e0&&_0x4f76e0[_0x5b92b8(0x1f6)])return _0x4f76e0;var _0x12fdc2={};if(_0x4f76e0!=null){for(var _0x260de5=_0x47ff1a(_0x4f76e0),_0x1c82a2=0x0;_0x1c82a2<_0x260de5[_0x5b92b8(0x1f8)];_0x1c82a2++)if(_0x260de5[_0x1c82a2]!=='default')__createBinding(_0x12fdc2,_0x4f76e0,_0x260de5[_0x1c82a2]);}return __setModuleDefault(_0x12fdc2,_0x4f76e0),_0x12fdc2;};}());Object[a0_0x4aea8d(0x1ec)](exports,a0_0x4aea8d(0x1f6),{'value':!![]}),exports[a0_0x4aea8d(0x1f0)]=filterGitStatus,exports[a0_0x4aea8d(0x1fa)]=filterGitLog,exports[a0_0x4aea8d(0x1e0)]=filterGitDiff;function a0_0x3b47(){const _0x3ca148=['[file]\x20','push','basename','\x20untracked\x20files)','4026670ZucRKZ','\x20more\x20modifications','\x20\x20...\x20+','create','diff\x20--git','\x0aUntracked\x20files:','entries','309FjhYOU','3408RVwMKq','\x0aChanges:','\x20(+','\x20\x20...\x20(+','trim','get','writable','12cWaaPs','substring','\x20lines\x20of\x20description)','*\x20Branch:\x20','map','default','9asDVSJ','dirname','4013hdFidI','path','filterGitDiff','9005mGYYUQ','call','replace','getOwnPropertyDescriptor','split','732413XdhZUe','No\x20modifications','__createBinding','match','join','startsWith','defineProperty','14ZiMuoy','filter','__setModuleDefault','filterGitStatus','180nGpNId','\x20\x20??\x20','13yZoOyZ','12904388PMbJoY','1049368sPDezb','__esModule','Clean\x20working\x20tree','length','slice','filterGitLog','1044dvPgIs'];a0_0x3b47=function(){return _0x3ca148;};return a0_0x3b47();}const path=__importStar(require(a0_0x4aea8d(0x1df)));function filterGitStatus(_0xe059ff){const _0x15a657=a0_0x4aea8d,_0x438b15=_0xe059ff[_0x15a657(0x1e5)]('\x0a')[_0x15a657(0x1da)](_0x43c6f1=>_0x43c6f1[_0x15a657(0x1d3)]())[_0x15a657(0x1ee)](_0x5943c2=>_0x5943c2[_0x15a657(0x1f8)]>0x0);if(_0x438b15[_0x15a657(0x1f8)]===0x0)return _0x15a657(0x1f7);const _0x40ad6c=[],_0x393a9b=[],_0x11d927=[];for(const _0x4f843f of _0x438b15){if(_0x4f843f['startsWith']('##')){const _0x43afa0=_0x4f843f[_0x15a657(0x1e3)](/^##\s*/,'');_0x40ad6c['push'](_0x15a657(0x1d9)+_0x43afa0);}else _0x4f843f[_0x15a657(0x1eb)]('??')?_0x393a9b[_0x15a657(0x1fd)](_0x4f843f[_0x15a657(0x1d7)](0x3)['trim']()):_0x11d927[_0x15a657(0x1fd)](_0x4f843f);}_0x11d927['length']>0x0&&(_0x40ad6c['push'](_0x15a657(0x209)),_0x40ad6c['push'](..._0x11d927[_0x15a657(0x1da)](_0x2c01b6=>'\x20\x20'+_0x2c01b6)));if(_0x393a9b[_0x15a657(0x1f8)]>0x0){_0x40ad6c[_0x15a657(0x1fd)](_0x15a657(0x205));const _0x12c5b3={},_0x5672a0=[];for(const _0x3dcf59 of _0x393a9b){const _0x5cdac1=path[_0x15a657(0x1dd)](_0x3dcf59);_0x5cdac1==='.'||_0x5cdac1===''?_0x5672a0[_0x15a657(0x1fd)](_0x3dcf59):(!_0x12c5b3[_0x5cdac1]&&(_0x12c5b3[_0x5cdac1]=[]),_0x12c5b3[_0x5cdac1][_0x15a657(0x1fd)](path[_0x15a657(0x1fe)](_0x3dcf59)));}for(const [_0x416f22,_0x5730f8]of Object[_0x15a657(0x206)](_0x12c5b3)){if(_0x5730f8['length']>0x5)_0x40ad6c[_0x15a657(0x1fd)](_0x15a657(0x1f2)+_0x416f22+'/\x20('+_0x5730f8['length']+_0x15a657(0x1ff));else for(const _0x347ea6 of _0x5730f8){_0x40ad6c[_0x15a657(0x1fd)]('\x20\x20??\x20'+path[_0x15a657(0x1ea)](_0x416f22,_0x347ea6));}}for(const _0x38ba33 of _0x5672a0){_0x40ad6c[_0x15a657(0x1fd)](_0x15a657(0x1f2)+_0x38ba33);}}return _0x40ad6c['join']('\x0a');}function filterGitLog(_0x399387){const _0x84685a=a0_0x4aea8d,_0x347c75=_0x399387[_0x84685a(0x1e5)]('---END---')[_0x84685a(0x1da)](_0x49cacb=>_0x49cacb['trim']())['filter'](_0x53b65d=>_0x53b65d[_0x84685a(0x1f8)]>0x0);if(_0x347c75[_0x84685a(0x1f8)]===0x0)return _0x399387;const _0x3117a4=[];for(const _0x53c515 of _0x347c75){const _0x4590ea=_0x53c515[_0x84685a(0x1e5)]('\x0a'),_0x587404=_0x4590ea[0x0]||'',_0x41fd4c=_0x4590ea[_0x84685a(0x1f9)](0x1)[_0x84685a(0x1da)](_0x3d17a2=>_0x3d17a2['trim']())[_0x84685a(0x1ee)](_0x1c5ba9=>_0x1c5ba9['length']>0x0);_0x3117a4[_0x84685a(0x1fd)]('-\x20'+_0x587404),_0x41fd4c[_0x84685a(0x1f8)]>0x0&&(_0x3117a4[_0x84685a(0x1fd)]('\x20\x20'+_0x41fd4c[0x0]),_0x41fd4c[_0x84685a(0x1f8)]>0x1&&_0x3117a4[_0x84685a(0x1fd)](_0x84685a(0x20b)+(_0x41fd4c[_0x84685a(0x1f8)]-0x1)+_0x84685a(0x1d8)));}return _0x3117a4[_0x84685a(0x1ea)]('\x0a');}function a0_0x2e48(_0x27a52b,_0x533ef5){_0x27a52b=_0x27a52b-0x1d3;const _0x3b47a8=a0_0x3b47();let _0x2e4898=_0x3b47a8[_0x27a52b];return _0x2e4898;}function filterGitDiff(_0x33c057){const _0x2bc670=a0_0x4aea8d,_0x3d7e23=_0x33c057[_0x2bc670(0x1e5)]('\x0a'),_0x1677cf=[];let _0x75702='',_0x2c07f3=0x0,_0x951640=0x0,_0x40e4f8=[];const _0x2d0427=()=>{const _0x4d29e3=_0x2bc670;if(_0x75702&&(_0x2c07f3>0x0||_0x951640>0x0)){_0x1677cf[_0x4d29e3(0x1fd)](_0x4d29e3(0x1fc)+_0x75702+_0x4d29e3(0x20a)+_0x2c07f3+'\x20-'+_0x951640+')');const _0x3a6602=0xa,_0xa147f7=_0x40e4f8['slice'](0x0,_0x3a6602);for(const _0x58d552 of _0xa147f7){_0x1677cf[_0x4d29e3(0x1fd)]('\x20\x20'+_0x58d552);}const _0x23e071=_0x2c07f3+_0x951640-_0x3a6602;_0x23e071>0x0&&_0x1677cf['push'](_0x4d29e3(0x202)+_0x23e071+_0x4d29e3(0x201));}_0x2c07f3=0x0,_0x951640=0x0,_0x40e4f8=[];};for(const _0x722506 of _0x3d7e23){if(_0x722506['startsWith'](_0x2bc670(0x204))){_0x2d0427();const _0x226cfd=_0x722506[_0x2bc670(0x1e9)](/\sb\/(.+)$/);_0x75702=_0x226cfd?_0x226cfd[0x1]:'unknown_file';}else{if(_0x722506['startsWith']('+')&&!_0x722506[_0x2bc670(0x1eb)]('+++'))_0x2c07f3++,_0x40e4f8[_0x2bc670(0x1fd)](_0x722506);else _0x722506['startsWith']('-')&&!_0x722506['startsWith']('---')&&(_0x951640++,_0x40e4f8[_0x2bc670(0x1fd)](_0x722506));}}_0x2d0427();const _0x409518=_0x1677cf[_0x2bc670(0x1ea)]('\x0a');return _0x409518[_0x2bc670(0x1f8)]>0x0?_0x409518:_0x2bc670(0x1e7);}
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';const a0_0x316b93=a0_0x47c2;(function(_0x511ec8,_0x175ea4){const _0x59d754=a0_0x47c2,_0x25d2be=_0x511ec8();while(!![]){try{const _0x4fb72e=-parseInt(_0x59d754(0xc5))/0x1*(-parseInt(_0x59d754(0xa5))/0x2)+-parseInt(_0x59d754(0xb9))/0x3*(parseInt(_0x59d754(0xab))/0x4)+parseInt(_0x59d754(0xbb))/0x5+parseInt(_0x59d754(0xaf))/0x6*(-parseInt(_0x59d754(0xa6))/0x7)+parseInt(_0x59d754(0xa3))/0x8+parseInt(_0x59d754(0xbd))/0x9+-parseInt(_0x59d754(0xb8))/0xa*(parseInt(_0x59d754(0xc6))/0xb);if(_0x4fb72e===_0x175ea4)break;else _0x25d2be['push'](_0x25d2be['shift']());}catch(_0x23f624){_0x25d2be['push'](_0x25d2be['shift']());}}}(a0_0x4da5,0x4184f));Object[a0_0x316b93(0xad)](exports,a0_0x316b93(0xb3),{'value':!![]}),exports['filterGoTest']=filterGoTest,exports[a0_0x316b93(0x9f)]=filterGoVet;function a0_0x4da5(){const _0xc2318c=['trim','name','lines','3711088InmQwo','Go\x20test:\x20no\x20test\x20files','2VijexP','343ZtinSd','\x20passed,\x20','---\x20SKIP:','Go\x20test:\x20all\x20tests\x20passed','includes','12psoYya','...\x20+','defineProperty','\x20passed','19602QcKnvz','startsWith','===\x20RUN','min','__esModule','slice','\x20\x20\x20\x20...\x20+','PASS','\x20\x20...\x20+','40IeCIgV','252375xURJdn','Go\x20vet:\x20no\x20issues\x20found','449845AEvREb','\x20failed,\x20','2285739okkAEd','length','match','\x20skipped','push','filter','split','join','128627jTSxAB','702977cphuBo','Go\x20test:\x20','\x20more\x20issues','\x20more\x20lines','filterGoVet'];a0_0x4da5=function(){return _0xc2318c;};return a0_0x4da5();}function a0_0x47c2(_0x2977b,_0x3713e3){_0x2977b=_0x2977b-0x9c;const _0x4da523=a0_0x4da5();let _0x47c239=_0x4da523[_0x2977b];return _0x47c239;}function filterGoTest(_0x3e9c05){const _0x5e155b=a0_0x316b93,_0xeac7e4=_0x3e9c05[_0x5e155b(0xc3)]('\x0a');let _0x14e469=0x0,_0x46670d=0x0,_0x4fc139=0x0;const _0x58bc97=[],_0x3397a1=[];let _0x107f48=null;for(const _0x598699 of _0xeac7e4){const _0x480091=_0x598699[_0x5e155b(0xa0)](),_0x3bf102=_0x480091[_0x5e155b(0xbf)](/^ok\s+\S+\s+[\d.]+s/);if(_0x3bf102){_0x3397a1[_0x5e155b(0xc1)](_0x480091);continue;}const _0x47f6d6=_0x480091['match'](/^FAIL\s+\S+/);if(_0x47f6d6){_0x3397a1[_0x5e155b(0xc1)](_0x480091);continue;}const _0x27fd4d=_0x480091[_0x5e155b(0xbf)](/^--- PASS:/);if(_0x27fd4d){_0x14e469++;continue;}const _0x59ec8a=_0x480091[_0x5e155b(0xbf)](/^--- FAIL:\s+(\S+)/);if(_0x59ec8a){if(_0x107f48)_0x58bc97[_0x5e155b(0xc1)](_0x107f48);_0x107f48={'name':_0x59ec8a[0x1],'lines':[]},_0x46670d++;continue;}if(_0x480091[_0x5e155b(0xb0)](_0x5e155b(0xa8))){_0x4fc139++;continue;}_0x107f48&&_0x480091[_0x5e155b(0xbe)]>0x0&&!_0x480091[_0x5e155b(0xb0)](_0x5e155b(0xb1))&&_0x107f48[_0x5e155b(0xa2)][_0x5e155b(0xc1)](_0x598699),_0x480091[_0x5e155b(0xb0)](_0x5e155b(0xb1))&&(_0x107f48&&(_0x58bc97[_0x5e155b(0xc1)](_0x107f48),_0x107f48=null));}if(_0x107f48)_0x58bc97[_0x5e155b(0xc1)](_0x107f48);if(_0x14e469===0x0&&_0x46670d===0x0&&_0x4fc139===0x0){if(_0x3e9c05[_0x5e155b(0xaa)](_0x5e155b(0xb6))&&!_0x3e9c05[_0x5e155b(0xaa)]('FAIL'))return _0x5e155b(0xa9);if(_0x3e9c05[_0x5e155b(0xaa)]('no\x20test\x20files'))return _0x5e155b(0xa4);return _0x3e9c05;}if(_0x46670d===0x0){const _0xa75425=[_0x5e155b(0x9c)+_0x14e469+_0x5e155b(0xae)];if(_0x4fc139>0x0)_0xa75425['push'](_0x4fc139+_0x5e155b(0xc0));return _0xa75425[_0x5e155b(0xc4)](',\x20');}const _0x135d1b=[_0x5e155b(0x9c)+_0x14e469+_0x5e155b(0xa7)+_0x46670d+_0x5e155b(0xbc)+_0x4fc139+_0x5e155b(0xc0)];if(_0x58bc97[_0x5e155b(0xbe)]>0x0){_0x135d1b[_0x5e155b(0xc1)]('\x0aFailures:');const _0x30e900=0x3;for(let _0x1ee5d7=0x0;_0x1ee5d7<Math[_0x5e155b(0xb2)](_0x58bc97[_0x5e155b(0xbe)],_0x30e900);_0x1ee5d7++){const _0x507ed6=_0x58bc97[_0x1ee5d7];_0x135d1b[_0x5e155b(0xc1)]('\x20\x20'+(_0x1ee5d7+0x1)+'.\x20'+_0x507ed6[_0x5e155b(0xa1)]);for(const _0x4ee789 of _0x507ed6['lines'][_0x5e155b(0xb4)](0x0,0x5)){_0x135d1b['push']('\x20\x20\x20\x20'+_0x4ee789[_0x5e155b(0xa0)]());}_0x507ed6[_0x5e155b(0xa2)][_0x5e155b(0xbe)]>0x5&&_0x135d1b[_0x5e155b(0xc1)](_0x5e155b(0xb5)+(_0x507ed6[_0x5e155b(0xa2)]['length']-0x5)+_0x5e155b(0x9e));}_0x58bc97['length']>_0x30e900&&_0x135d1b[_0x5e155b(0xc1)](_0x5e155b(0xb7)+(_0x58bc97[_0x5e155b(0xbe)]-_0x30e900)+'\x20more\x20failures');}return _0x135d1b[_0x5e155b(0xc4)]('\x0a');}function filterGoVet(_0x402439){const _0x2a6170=a0_0x316b93,_0x50e1e1=_0x402439['split']('\x0a')[_0x2a6170(0xc2)](_0xc72212=>_0xc72212[_0x2a6170(0xa0)]()[_0x2a6170(0xbe)]>0x0);if(_0x50e1e1['length']===0x0)return _0x2a6170(0xba);if(_0x50e1e1[_0x2a6170(0xbe)]<=0x14)return _0x402439[_0x2a6170(0xa0)]();const _0x20eac4=['Go\x20vet:\x20'+_0x50e1e1['length']+'\x20issues\x20found'];return _0x20eac4['push'](..._0x50e1e1[_0x2a6170(0xb4)](0x0,0xa)),_0x50e1e1[_0x2a6170(0xbe)]>0xa&&_0x20eac4['push'](_0x2a6170(0xac)+(_0x50e1e1[_0x2a6170(0xbe)]-0xa)+_0x2a6170(0x9d)),_0x20eac4[_0x2a6170(0xc4)]('\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';function a0_0x2e24(){const _0xfc0270=['rewriteCommand','trim\x20find','yarn\x20test','trim\x20read','trim\x20tree','filterGitLog','filterNpmInstall','400jWXYkK','compressOutput','[minified\x20file]','redact','2IqgbOn','startsWith','trim\x20go','[lock\x20file]','filterDockerImages','match','ruff\x20check','npm\x20i','filterCargoTest','git\x20show','text','cargo\x20build','trim\x20glab','pytest','secretsFound','length','includes','redactor','./git','jest','git\x20diff','tracker','trim\x20','endsWith','trim\x20pytest','./rust','test','4568883HiEPMg','secretTypes','filterCargoBuild','cargo\x20test','npm\x20test','trim\x20npm','vitest','ruff\x20','filterFind','pip\x20install','kubectl','355766rRfsxc','6zDQwGN','cargo\x20check','push','10cuzJfL','trim\x20ruff','../redactor','filterLs','./shell','\x20ls','trim\x20cargo','whitespace','trim\x20pnpm','filterGitStatus','softTruncate','defineProperty','npm\x20i\x20','523975EQuzqz','trim','[binary','trim\x20kubectl','lastRedactAudit','git\x20log','yadm\x20log','filterTree','some','./devops','trim\x20ls','trim\x20pip','lastFeatures','yadm\x20diff','go\x20vet','npm\x20install','pattern','2705017wwpVeV','ansi_strip','./go','trim\x20npx','trim\x20git','\x20ls\x20','collapseDuplicates','pip3\x20install','redactWithAudit','getConfig','726090HMCGrj','3204XhrFPd','./generic','./python','yarn\x20install','trim\x20gh','cargo\x20clippy','npm\x20run\x20test','filterDockerLogs','collapseWhitespace','trim\x20grep','filter','1325188udqmRF','lock','[code\x20skeleton]','filterRuff','filterGoVet','pnpm\x20install','toLowerCase'];a0_0x2e24=function(){return _0xfc0270;};return a0_0x2e24();}const a0_0x422d3a=a0_0x25f7;(function(_0x346278,_0x28669d){const _0x17c20d=a0_0x25f7,_0x487fd7=_0x346278();while(!![]){try{const _0x361cf9=-parseInt(_0x17c20d(0x167))/0x1*(-parseInt(_0x17c20d(0x141))/0x2)+parseInt(_0x17c20d(0x193))/0x3+parseInt(_0x17c20d(0x12f))/0x4+parseInt(_0x17c20d(0x178))/0x5+-parseInt(_0x17c20d(0x168))/0x6*(parseInt(_0x17c20d(0x189))/0x7)+parseInt(_0x17c20d(0x13d))/0x8*(-parseInt(_0x17c20d(0x194))/0x9)+-parseInt(_0x17c20d(0x16b))/0xa*(parseInt(_0x17c20d(0x15c))/0xb);if(_0x361cf9===_0x28669d)break;else _0x487fd7['push'](_0x487fd7['shift']());}catch(_0x1a1c5b){_0x487fd7['push'](_0x487fd7['shift']());}}}(a0_0x2e24,0x34520));Object[a0_0x422d3a(0x176)](exports,'__esModule',{'value':!![]}),exports['lastFeatures']=exports[a0_0x422d3a(0x17c)]=void 0x0,exports[a0_0x422d3a(0x13e)]=compressOutput,exports[a0_0x422d3a(0x136)]=rewriteCommand;const generic_1=require(a0_0x422d3a(0x195)),git_1=require(a0_0x422d3a(0x153)),python_1=require(a0_0x422d3a(0x196)),js_1=require('./js'),shell_1=require(a0_0x422d3a(0x16f)),rust_1=require(a0_0x422d3a(0x15a)),go_1=require(a0_0x422d3a(0x18b)),devops_1=require(a0_0x422d3a(0x181)),redactor_1=require(a0_0x422d3a(0x16d)),tracker_1=require('../tracker');function a0_0x25f7(_0x315bcd,_0x27ab4b){_0x315bcd=_0x315bcd-0x12a;const _0x2e2410=a0_0x2e24();let _0x25f7a4=_0x2e2410[_0x315bcd];return _0x25f7a4;}exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x422d3a(0x184)]=[];function isFeatureEnabled(_0x288687){const _0x2ec89b=a0_0x422d3a;try{const _0x5482f8=tracker_1[_0x2ec89b(0x156)][_0x2ec89b(0x192)](),_0x8da899=_0x5482f8['features_enabled'];if(!_0x8da899||_0x8da899[_0x288687]===undefined)return!![];return _0x8da899[_0x288687]!==![];}catch{return!![];}}function compressOutput(_0x10429,_0x4c256a,_0x469175,_0x3b2ea4=!![]){const _0x4925b9=a0_0x422d3a,_0x4d319f=_0x10429[_0x4925b9(0x179)]();let _0x1265ef=_0x4c256a;_0x469175[_0x4925b9(0x179)]()[_0x4925b9(0x150)]>0x0&&(_0x1265ef=_0x4c256a+'\x0a'+_0x469175);let _0x23e482=isFeatureEnabled(_0x4925b9(0x18a))?(0x0,generic_1['stripAnsi'])(_0x1265ef):_0x1265ef;const _0x2557a5=[];if(_0x23e482[_0x4925b9(0x150)]<_0x1265ef[_0x4925b9(0x150)])_0x2557a5['push'](_0x4925b9(0x18a));const _0x5839d4=(_0x291e67,_0x23d784)=>{const _0x2f6f10=_0x4925b9;return _0x2557a5[_0x2f6f10(0x16a)](_0x291e67),exports[_0x2f6f10(0x184)]=_0x2557a5,_0x23d784;};if(_0x3b2ea4&&isFeatureEnabled(_0x4925b9(0x140))){const _0x3e08a7=redactor_1[_0x4925b9(0x152)][_0x4925b9(0x191)](_0x23e482);_0x23e482=_0x3e08a7[_0x4925b9(0x14b)],exports['lastRedactAudit']={'secretsFound':_0x3e08a7[_0x4925b9(0x14f)],'secretTypes':_0x3e08a7[_0x4925b9(0x15d)]};if(_0x3e08a7['secretsFound']>0x0)_0x2557a5[_0x4925b9(0x16a)]('redact');}else exports[_0x4925b9(0x17c)]={'secretsFound':0x0,'secretTypes':[]};const _0x4ee5b9=_0x4d319f[_0x4925b9(0x135)](),_0x10af7f=isFeatureEnabled(_0x4925b9(0x12e));try{if(_0x10af7f){if(_0x4ee5b9['includes']('git\x20status')||_0x4ee5b9[_0x4925b9(0x151)]('yadm\x20status'))return _0x5839d4(_0x4925b9(0x12e),(0x0,git_1[_0x4925b9(0x174)])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x17d))||_0x4ee5b9['includes'](_0x4925b9(0x17e)))return _0x5839d4(_0x4925b9(0x12e),(0x0,git_1[_0x4925b9(0x13b)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x155))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x14a))||_0x4ee5b9['includes'](_0x4925b9(0x185)))return _0x5839d4('filter',(0x0,git_1['filterGitDiff'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x14e))||_0x4ee5b9[_0x4925b9(0x146)](/python3?\s+-m\s+pytest/))return _0x5839d4(_0x4925b9(0x12e),(0x0,python_1['filterPytest'])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x165))||_0x4ee5b9['includes'](_0x4925b9(0x190)))return _0x5839d4('filter',(0x0,python_1['filterPipInstall'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x147))||_0x4ee5b9['includes'](_0x4925b9(0x163)))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1[_0x4925b9(0x132)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x187))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x177))||_0x4ee5b9[_0x4925b9(0x158)](_0x4925b9(0x148))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x134))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x197)))return _0x5839d4(_0x4925b9(0x12e),(0x0,js_1[_0x4925b9(0x13c)])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x154))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x162)))return _0x5839d4(_0x4925b9(0x12e),(0x0,js_1['filterJestVitest'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x160))||_0x4ee5b9[_0x4925b9(0x151)]('pnpm\x20test')||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x138))||_0x4ee5b9['includes'](_0x4925b9(0x12a)))return _0x5839d4(_0x4925b9(0x12e),(0x0,js_1['filterJestVitest'])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x15f)))return _0x5839d4(_0x4925b9(0x12e),(0x0,rust_1[_0x4925b9(0x149)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x14c))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x169))||_0x4ee5b9['includes'](_0x4925b9(0x199)))return _0x5839d4(_0x4925b9(0x12e),(0x0,rust_1[_0x4925b9(0x15e)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)]('go\x20test'))return _0x5839d4(_0x4925b9(0x12e),(0x0,go_1['filterGoTest'])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x186)))return _0x5839d4(_0x4925b9(0x12e),(0x0,go_1[_0x4925b9(0x133)])(_0x23e482));if(_0x4ee5b9['match'](/docker\s+ps/))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1['filterDockerPs'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x146)](/docker\s+images/))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1[_0x4925b9(0x145)])(_0x23e482));if(_0x4ee5b9['match'](/docker\s+logs/))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1[_0x4925b9(0x12b)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x166))){const _0x4e8a12=_0x4ee5b9[_0x4925b9(0x146)](/kubectl\s+(get|logs|describe|apply)/),_0x321378=_0x4e8a12?_0x4e8a12[0x1]:'get';return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1['filterKubectl'])(_0x23e482,_0x321378));}if(_0x4ee5b9[_0x4925b9(0x146)](/^(ls|dir)(\s|$)/)||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x18e))||_0x4ee5b9[_0x4925b9(0x158)](_0x4925b9(0x170)))return _0x5839d4(_0x4925b9(0x12e),(0x0,shell_1[_0x4925b9(0x16e)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x146)](/^tree(\s|$)/)||_0x4ee5b9['includes']('\x20tree\x20')||_0x4ee5b9[_0x4925b9(0x158)]('\x20tree'))return _0x5839d4(_0x4925b9(0x12e),(0x0,shell_1[_0x4925b9(0x17f)])(_0x23e482));if(_0x4ee5b9['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x436562=(0x0,shell_1['filterCat'])(_0x23e482,_0x4d319f);if(_0x436562[_0x4925b9(0x151)](_0x4925b9(0x144)))_0x2557a5[_0x4925b9(0x16a)](_0x4925b9(0x130));else{if(_0x436562[_0x4925b9(0x151)](_0x4925b9(0x17a))||_0x436562[_0x4925b9(0x151)](_0x4925b9(0x13f)))_0x2557a5[_0x4925b9(0x16a)]('binary');else{if(_0x436562['includes'](_0x4925b9(0x131)))_0x2557a5[_0x4925b9(0x16a)]('skeleton');else{if(_0x436562[_0x4925b9(0x151)]('|\x20')&&_0x436562['includes']('---')&&_0x436562['length']<_0x23e482[_0x4925b9(0x150)]*0.5)_0x2557a5[_0x4925b9(0x16a)]('json_crusher');else{if(_0x436562[_0x4925b9(0x151)]('lines\x20truncated'))_0x2557a5['push'](_0x4925b9(0x12e));}}}}if(_0x436562[_0x4925b9(0x150)]<_0x23e482[_0x4925b9(0x150)]&&!_0x2557a5[_0x4925b9(0x180)](_0xe30441=>_0xe30441!==_0x4925b9(0x18a)&&_0xe30441!=='redact'))_0x2557a5[_0x4925b9(0x16a)](_0x4925b9(0x12e));return exports[_0x4925b9(0x184)]=_0x2557a5,_0x436562;}if(_0x4ee5b9['match'](/^find(\s|$)/))return _0x5839d4('filter',(0x0,shell_1[_0x4925b9(0x164)])(_0x23e482));if(_0x4ee5b9['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x5839d4(_0x4925b9(0x12e),(0x0,shell_1['filterGrep'])(_0x23e482));}}catch(_0x2b3a09){}return isFeatureEnabled(_0x4925b9(0x172))&&(_0x23e482=(0x0,generic_1[_0x4925b9(0x12c)])(_0x23e482),_0x2557a5[_0x4925b9(0x16a)]('whitespace')),_0x23e482=(0x0,generic_1[_0x4925b9(0x18f)])(_0x23e482),_0x23e482=(0x0,generic_1[_0x4925b9(0x175)])(_0x23e482,0x4e20),exports[_0x4925b9(0x184)]=_0x2557a5,_0x23e482;}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_0x422d3a(0x18d)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x422d3a(0x198)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x422d3a(0x14d)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x422d3a(0x171)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x422d3a(0x173)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x422d3a(0x161)},{'pattern':/^npx\s+/,'prefix':a0_0x422d3a(0x18c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x422d3a(0x139)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x422d3a(0x12d)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x422d3a(0x182)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x422d3a(0x13a)},{'pattern':/^find\s+/,'prefix':a0_0x422d3a(0x137)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x422d3a(0x17b)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x422d3a(0x159)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x422d3a(0x16c)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x422d3a(0x183)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x422d3a(0x143)}];function rewriteCommand(_0x419f5e){const _0xa0fa9e=a0_0x422d3a,_0x1a1f7f=_0x419f5e[_0xa0fa9e(0x179)]();if(_0x1a1f7f[_0xa0fa9e(0x142)](_0xa0fa9e(0x157)))return _0x1a1f7f;for(const _0x94e93c of REWRITE_RULES){if(_0x94e93c[_0xa0fa9e(0x188)][_0xa0fa9e(0x15b)](_0x1a1f7f))return _0xa0fa9e(0x157)+_0x1a1f7f;}return _0x1a1f7f;}
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_0x533ae0=a0_0x3076;function a0_0x4e8d(){const _0x1e1fd9=['Tests:','Test\x20Runner:\x20','startsWith','9726030yHLJHH','length','push','50033960pFZoQn','2621956uuhrGd','1570371pmLhkv','trim','\x20passed','added\x20','2272581oHaklD','56vJPiOt','join','all','\x0aFailures:','found\x20','396879VQGiVo','FAIL','FAIL\x20\x20','Test\x20Files:','match','slice','Test\x20Suites:','filterJestVitest','replace','includes','6BHkAzr','2PLeKmj','\x20\x20...\x20(','1916622VBuLyW','audited\x20','removed\x20','filterNpmInstall'];a0_0x4e8d=function(){return _0x1e1fd9;};return a0_0x4e8d();}(function(_0x4fcbfa,_0x13e4af){const _0x1d39a1=a0_0x3076,_0xe60b9b=_0x4fcbfa();while(!![]){try{const _0x715d7b=-parseInt(_0x1d39a1(0x1a0))/0x1+parseInt(_0x1d39a1(0x1b5))/0x2*(parseInt(_0x1d39a1(0x1a4))/0x3)+-parseInt(_0x1d39a1(0x1c2))/0x4+-parseInt(_0x1d39a1(0x1be))/0x5*(parseInt(_0x1d39a1(0x1b4))/0x6)+-parseInt(_0x1d39a1(0x1aa))/0x7*(parseInt(_0x1d39a1(0x1a5))/0x8)+-parseInt(_0x1d39a1(0x1b7))/0x9+parseInt(_0x1d39a1(0x1c1))/0xa;if(_0x715d7b===_0x13e4af)break;else _0xe60b9b['push'](_0xe60b9b['shift']());}catch(_0x6db29f){_0xe60b9b['push'](_0xe60b9b['shift']());}}}(a0_0x4e8d,0xef434));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x533ae0(0x1ba)]=filterNpmInstall,exports[a0_0x533ae0(0x1b1)]=filterJestVitest;function filterNpmInstall(_0x3144d5){const _0x9b7d64=a0_0x533ae0,_0x5564ff=_0x3144d5[_0x9b7d64(0x1b2)](/\r/g,'\x0a'),_0x43bf26=_0x5564ff['split']('\x0a'),_0x2feb11=[];for(const _0x5d70a5 of _0x43bf26){const _0x4b571f=_0x5d70a5[_0x9b7d64(0x1a1)]();(_0x4b571f[_0x9b7d64(0x1b3)](_0x9b7d64(0x1a3))||_0x4b571f[_0x9b7d64(0x1b3)](_0x9b7d64(0x1b9))||_0x4b571f[_0x9b7d64(0x1b3)](_0x9b7d64(0x1b8))||_0x4b571f[_0x9b7d64(0x1b3)]('up\x20to\x20date')||_0x4b571f['includes'](_0x9b7d64(0x1a9)))&&(!_0x4b571f[_0x9b7d64(0x1b3)]('%')&&!_0x4b571f[_0x9b7d64(0x1bd)]('⠋')&&!_0x4b571f['startsWith']('⠙')&&_0x2feb11[_0x9b7d64(0x1c0)](_0x4b571f));}const _0x498d4a=_0x2feb11[_0x9b7d64(0x1a6)]('\x0a')[_0x9b7d64(0x1a1)]();return _0x498d4a[_0x9b7d64(0x1bf)]>0x0?_0x498d4a:'NPM:\x20Packages\x20verified/installed\x20successfully';}function a0_0x3076(_0x198b81,_0x5e3c08){_0x198b81=_0x198b81-0x1a0;const _0x4e8de9=a0_0x4e8d();let _0x3076a8=_0x4e8de9[_0x198b81];return _0x3076a8;}function filterJestVitest(_0x114e47){const _0x4d23ca=a0_0x533ae0,_0xed8381=_0x114e47['split']('\x0a');let _0x51ae58=0x0,_0xb4c817=0x0,_0x4054fa=0x0;const _0x463c42=[];let _0x654b30=![];for(const _0x997b99 of _0xed8381){const _0x2a4440=_0x997b99[_0x4d23ca(0x1a1)]();if(_0x2a4440[_0x4d23ca(0x1bd)]('Tests:')||_0x2a4440['includes'](_0x4d23ca(0x1ad))){const _0x2f9e08=_0x2a4440[_0x4d23ca(0x1ae)](/(\d+)\s+passed/),_0x331a34=_0x2a4440['match'](/(\d+)\s+failed/),_0x5c55fc=_0x2a4440[_0x4d23ca(0x1ae)](/(\d+)\s+total/);if(_0x2f9e08)_0x51ae58=parseInt(_0x2f9e08[0x1]);if(_0x331a34)_0xb4c817=parseInt(_0x331a34[0x1]);if(_0x5c55fc)_0x4054fa=parseInt(_0x5c55fc[0x1]);continue;}(_0x2a4440[_0x4d23ca(0x1bd)]('❯')||_0x2a4440[_0x4d23ca(0x1bd)]('●')||_0x2a4440['startsWith'](_0x4d23ca(0x1ac)))&&(_0x654b30=!![]),_0x654b30&&(_0x2a4440['length']>0x0&&!_0x2a4440['startsWith'](_0x4d23ca(0x1b0))&&!_0x2a4440[_0x4d23ca(0x1bd)](_0x4d23ca(0x1bb))&&_0x463c42[_0x4d23ca(0x1c0)](_0x997b99));}if(_0x4054fa===0x0&&_0x51ae58===0x0&&_0xb4c817===0x0){if(_0x114e47[_0x4d23ca(0x1b3)]('PASS')&&!_0x114e47[_0x4d23ca(0x1b3)](_0x4d23ca(0x1ab))){const _0x59574a=_0x114e47[_0x4d23ca(0x1ae)](/(\d+)\s+passed/),_0x34e931=_0x59574a?_0x59574a[0x1]:_0x4d23ca(0x1a7);return _0x4d23ca(0x1bc)+_0x34e931+_0x4d23ca(0x1a2);}return _0x114e47;}if(_0xb4c817===0x0&&_0x51ae58>0x0)return _0x4d23ca(0x1bc)+_0x51ae58+_0x4d23ca(0x1a2);const _0x5a9fbf=['Test\x20Runner:\x20'+_0x51ae58+'\x20passed,\x20'+_0xb4c817+'\x20failed\x20('+_0x4054fa+'\x20total)'];if(_0x463c42['length']>0x0){_0x5a9fbf[_0x4d23ca(0x1c0)](_0x4d23ca(0x1a8));const _0x5aca26=0x19,_0x4c7045=_0x463c42[_0x4d23ca(0x1af)](0x0,_0x5aca26);for(const _0x93e075 of _0x4c7045){_0x5a9fbf[_0x4d23ca(0x1c0)]('\x20\x20'+_0x93e075);}_0x463c42[_0x4d23ca(0x1bf)]>_0x5aca26&&_0x5a9fbf[_0x4d23ca(0x1c0)](_0x4d23ca(0x1b6)+(_0x463c42[_0x4d23ca(0x1bf)]-_0x5aca26)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x5a9fbf[_0x4d23ca(0x1a6)]('\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';function a0_0x2c09(){const _0x10c333=['Requirement\x20already\x20satisfied','Using\x20cached','===\x20short\x20test\x20summary\x20info\x20===','passed','7745430sLTyRd','Pytest:\x20All\x20tests\x20passed','Downloading','2091249fkTZDH','\x20xpassed\x20(warning!)','.\x20[FAIL]\x20','\x0aFailures:','failed','___','29838480SyYReO','10EeEQdP','\x20passed','match','2954975AxfImp','\x20skipped','includes','8amCjeb','trim','filter','5574541OyiLCB','\x20\x20\x20\x20...\x20(','push','length','1iSEKBH','startsWith','===\x20FAILURES\x20===','\x20more\x20failures\x20truncated','654006fDBTuD','Successfully\x20installed','replace','\x20\x20\x20\x20','15afGhNP','\x20xfailed','6dZIKED','\x20\x20...\x20+','Pytest:\x20','===','\x20lines\x20of\x20stacktrace\x20truncated)','join','slice','548684ftXIYQ','\x20in\x20','Collecting','split','\x20failed'];a0_0x2c09=function(){return _0x10c333;};return a0_0x2c09();}(function(_0x3a5fee,_0xfd1182){const _0x170321=a0_0x43a8,_0xea21f7=_0x3a5fee();while(!![]){try{const _0x1c8167=-parseInt(_0x170321(0x1ef))/0x1*(parseInt(_0x170321(0x1c2))/0x2)+parseInt(_0x170321(0x1c6))/0x3*(parseInt(_0x170321(0x1cf))/0x4)+-parseInt(_0x170321(0x1e5))/0x5+-parseInt(_0x170321(0x1c8))/0x6*(parseInt(_0x170321(0x1eb))/0x7)+-parseInt(_0x170321(0x1e8))/0x8*(parseInt(_0x170321(0x1db))/0x9)+-parseInt(_0x170321(0x1e2))/0xa*(parseInt(_0x170321(0x1d8))/0xb)+parseInt(_0x170321(0x1e1))/0xc;if(_0x1c8167===_0xfd1182)break;else _0xea21f7['push'](_0xea21f7['shift']());}catch(_0x59906c){_0xea21f7['push'](_0xea21f7['shift']());}}}(a0_0x2c09,0x7f547));function a0_0x43a8(_0xcefed4,_0x3b4160){_0xcefed4=_0xcefed4-0x1c1;const _0x2c09ad=a0_0x2c09();let _0x43a8cb=_0x2c09ad[_0xcefed4];return _0x43a8cb;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['filterPytest']=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x1831aa){const _0x203eee=a0_0x43a8,_0x26088a=_0x1831aa[_0x203eee(0x1d2)]('\x0a');let _0x3deddb=0x0,_0x88785e=0x0,_0x5f437a=0x0,_0x2c0c8b=0x0,_0x277f14=0x0;const _0x436699=[];let _0x556828=[],_0x47f9e7=![];for(const _0xea3e6f of _0x26088a){const _0x110607=_0xea3e6f[_0x203eee(0x1e9)]();if(_0x110607[_0x203eee(0x1f0)](_0x203eee(0x1f1))||_0x110607['startsWith']('===\x20ERRORS\x20===')){_0x47f9e7=!![];continue;}else(_0x110607['startsWith'](_0x203eee(0x1d6))||_0x110607[_0x203eee(0x1f0)](_0x203eee(0x1cb))&&_0x110607[_0x203eee(0x1e7)]('passed'))&&(_0x47f9e7=![],_0x556828[_0x203eee(0x1ee)]>0x0&&(_0x436699[_0x203eee(0x1ed)](_0x556828),_0x556828=[]));if(_0x47f9e7){if(_0x110607[_0x203eee(0x1f0)](_0x203eee(0x1e0)))_0x556828['length']>0x0&&(_0x436699[_0x203eee(0x1ed)](_0x556828),_0x556828=[]),_0x556828[_0x203eee(0x1ed)](_0x110607);else _0x110607[_0x203eee(0x1ee)]>0x0&&_0x556828[_0x203eee(0x1ed)](_0xea3e6f);continue;}if(_0x110607[_0x203eee(0x1f0)]('===')&&_0x110607[_0x203eee(0x1e7)](_0x203eee(0x1d0))){const _0x38edf0=_0x110607['match'](/(\d+)\s+passed/),_0xdcb2=_0x110607['match'](/(\d+)\s+failed/),_0x5bafbe=_0x110607[_0x203eee(0x1e4)](/(\d+)\s+skipped/),_0x2d2d1f=_0x110607[_0x203eee(0x1e4)](/(\d+)\s+xfailed/),_0x4254d5=_0x110607[_0x203eee(0x1e4)](/(\d+)\s+xpassed/);if(_0x38edf0)_0x3deddb=parseInt(_0x38edf0[0x1]);if(_0xdcb2)_0x88785e=parseInt(_0xdcb2[0x1]);if(_0x5bafbe)_0x5f437a=parseInt(_0x5bafbe[0x1]);if(_0x2d2d1f)_0x2c0c8b=parseInt(_0x2d2d1f[0x1]);if(_0x4254d5)_0x277f14=parseInt(_0x4254d5[0x1]);}}_0x556828[_0x203eee(0x1ee)]>0x0&&_0x436699['push'](_0x556828);if(_0x3deddb===0x0&&_0x88785e===0x0&&_0x5f437a===0x0&&_0x2c0c8b===0x0&&_0x277f14===0x0){if(_0x1831aa['includes'](_0x203eee(0x1d7))&&!_0x1831aa['includes'](_0x203eee(0x1df)))return _0x203eee(0x1d9);return _0x1831aa;}if(_0x88785e===0x0&&_0x3deddb>0x0&&_0x5f437a===0x0&&_0x2c0c8b===0x0&&_0x277f14===0x0)return _0x203eee(0x1ca)+_0x3deddb+_0x203eee(0x1e3);const _0x20ff87=[];_0x20ff87[_0x203eee(0x1ed)](_0x203eee(0x1ca)+_0x3deddb+_0x203eee(0x1e3));if(_0x88785e>0x0)_0x20ff87[_0x203eee(0x1ed)](_0x88785e+_0x203eee(0x1d3));if(_0x5f437a>0x0)_0x20ff87[_0x203eee(0x1ed)](_0x5f437a+_0x203eee(0x1e6));if(_0x2c0c8b>0x0)_0x20ff87[_0x203eee(0x1ed)](_0x2c0c8b+_0x203eee(0x1c7));if(_0x277f14>0x0)_0x20ff87['push'](_0x277f14+_0x203eee(0x1dc));const _0x3f6341=[_0x20ff87['join'](',\x20')];if(_0x436699[_0x203eee(0x1ee)]>0x0){_0x3f6341['push'](_0x203eee(0x1de));const _0x2e85ff=0x3,_0x55225d=_0x436699['slice'](0x0,_0x2e85ff);for(let _0x2d60fb=0x0;_0x2d60fb<_0x55225d['length'];_0x2d60fb++){const _0x4bfa2b=_0x55225d[_0x2d60fb],_0x513c09=_0x4bfa2b[0x0][_0x203eee(0x1c4)](/_/g,'')[_0x203eee(0x1e9)]();_0x3f6341[_0x203eee(0x1ed)]('\x20\x20'+(_0x2d60fb+0x1)+_0x203eee(0x1dd)+_0x513c09);const _0x580ea1=_0x4bfa2b[_0x203eee(0x1ce)](0x1),_0x7d4e2=_0x580ea1[_0x203eee(0x1ea)](_0x57d2df=>{const _0x1b47ae=_0x203eee,_0x113bed=_0x57d2df[_0x1b47ae(0x1e9)]();return _0x113bed[_0x1b47ae(0x1f0)]('>')||_0x113bed[_0x1b47ae(0x1f0)]('E\x20\x20\x20')||_0x113bed[_0x1b47ae(0x1e7)]('.py:')||_0x113bed['includes']('AssertionError:');});for(const _0x354afe of _0x7d4e2[_0x203eee(0x1ce)](0x0,0x8)){_0x3f6341[_0x203eee(0x1ed)](_0x203eee(0x1c5)+_0x354afe);}_0x7d4e2[_0x203eee(0x1ee)]>0x8&&_0x3f6341[_0x203eee(0x1ed)](_0x203eee(0x1ec)+(_0x7d4e2[_0x203eee(0x1ee)]-0x8)+_0x203eee(0x1cc));}_0x436699[_0x203eee(0x1ee)]>_0x2e85ff&&_0x3f6341['push'](_0x203eee(0x1c9)+(_0x436699[_0x203eee(0x1ee)]-_0x2e85ff)+_0x203eee(0x1c1));}return _0x3f6341[_0x203eee(0x1cd)]('\x0a');}function filterPipInstall(_0x188b53){const _0x344f6c=a0_0x43a8,_0x4e8872=_0x188b53['split']('\x0a'),_0x1364cb=[];for(const _0x3a37c8 of _0x4e8872){const _0x57fd89=_0x3a37c8[_0x344f6c(0x1e9)]();_0x57fd89[_0x344f6c(0x1f0)](_0x344f6c(0x1c3))&&_0x1364cb[_0x344f6c(0x1ed)](_0x57fd89);}if(_0x1364cb[_0x344f6c(0x1ee)]>0x0)return _0x1364cb[_0x344f6c(0x1cd)]('\x0a');return _0x4e8872[_0x344f6c(0x1ea)](_0x219d34=>{const _0x30ae5d=_0x344f6c,_0x4217ad=_0x219d34[_0x30ae5d(0x1e9)]();return!_0x4217ad[_0x30ae5d(0x1f0)](_0x30ae5d(0x1d1))&&!_0x4217ad[_0x30ae5d(0x1f0)](_0x30ae5d(0x1da))&&!_0x4217ad[_0x30ae5d(0x1e7)](_0x30ae5d(0x1d5))&&!_0x4217ad['startsWith'](_0x30ae5d(0x1d4));})[_0x344f6c(0x1cd)]('\x0a')[_0x344f6c(0x1e9)]();}