trimprompt 1.0.41 → 1.0.42

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/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0xef503e=a0_0x31d8;(function(_0x47d854,_0x16b06b){var _0x48ef74=a0_0x31d8,_0x3b1361=_0x47d854();while(!![]){try{var _0x3dd0c9=-parseInt(_0x48ef74(0x133))/0x1+-parseInt(_0x48ef74(0x118))/0x2*(-parseInt(_0x48ef74(0x123))/0x3)+-parseInt(_0x48ef74(0x128))/0x4*(parseInt(_0x48ef74(0x117))/0x5)+parseInt(_0x48ef74(0x12e))/0x6*(-parseInt(_0x48ef74(0x122))/0x7)+-parseInt(_0x48ef74(0x141))/0x8+parseInt(_0x48ef74(0x11e))/0x9+parseInt(_0x48ef74(0x125))/0xa;if(_0x3dd0c9===_0x16b06b)break;else _0x3b1361['push'](_0x3b1361['shift']());}catch(_0x516e98){_0x3b1361['push'](_0x3b1361['shift']());}}}(a0_0x2870,0x5c5ac));function a0_0x2870(){var _0x4d278f=['includes','470705FjYmSU','writable','__esModule','error','shims','default','spawn','close','length','data','\x22:\x20','stderr','toLowerCase','__importStar','504352KbTXTn','get','join','__setModuleDefault','80VgkxSu','942934EBimnW','create','child_process','pipe','executeCommand','filter','2194758DQwbWb','stdout','.trimprompt','path','1202908HaDkgF','3BeFTZl','prototype','12801920rYpeHx','trim','message','99028iQpynH','toString','defineProperty','delimiter','map','split','24PrzHfA','hasOwnProperty','__createBinding','homedir'];a0_0x2870=function(){return _0x4d278f;};return a0_0x2870();}function a0_0x31d8(_0x4d303d,_0x431655){_0x4d303d=_0x4d303d-0x115;var _0x2870a1=a0_0x2870();var _0x31d8b3=_0x2870a1[_0x4d303d];return _0x31d8b3;}var __createBinding=this&&this[a0_0xef503e(0x130)]||(Object[a0_0xef503e(0x119)]?function(_0x4ae06f,_0x2567db,_0x4fd708,_0x387f17){var _0x1020de=a0_0xef503e;if(_0x387f17===undefined)_0x387f17=_0x4fd708;var _0x2281e2=Object['getOwnPropertyDescriptor'](_0x2567db,_0x4fd708);(!_0x2281e2||(_0x1020de(0x142)in _0x2281e2?!_0x2567db[_0x1020de(0x135)]:_0x2281e2[_0x1020de(0x134)]||_0x2281e2['configurable']))&&(_0x2281e2={'enumerable':!![],'get':function(){return _0x2567db[_0x4fd708];}}),Object[_0x1020de(0x12a)](_0x4ae06f,_0x387f17,_0x2281e2);}:function(_0x32eb89,_0x5c615,_0x166308,_0x384ec6){if(_0x384ec6===undefined)_0x384ec6=_0x166308;_0x32eb89[_0x384ec6]=_0x5c615[_0x166308];}),__setModuleDefault=this&&this[a0_0xef503e(0x116)]||(Object[a0_0xef503e(0x119)]?function(_0xf1a866,_0x3021c5){var _0x2e4ced=a0_0xef503e;Object['defineProperty'](_0xf1a866,_0x2e4ced(0x138),{'enumerable':!![],'value':_0x3021c5});}:function(_0xd144f8,_0x2df3d1){_0xd144f8['default']=_0x2df3d1;}),__importStar=this&&this[a0_0xef503e(0x140)]||(function(){var _0x3fce4d=function(_0x398952){return _0x3fce4d=Object['getOwnPropertyNames']||function(_0xf80cc2){var _0x3634b6=a0_0x31d8,_0x489403=[];for(var _0x401c8a in _0xf80cc2)if(Object[_0x3634b6(0x124)][_0x3634b6(0x12f)]['call'](_0xf80cc2,_0x401c8a))_0x489403[_0x489403[_0x3634b6(0x13b)]]=_0x401c8a;return _0x489403;},_0x3fce4d(_0x398952);};return function(_0x83115f){var _0x4ffe85=a0_0x31d8;if(_0x83115f&&_0x83115f[_0x4ffe85(0x135)])return _0x83115f;var _0x321d19={};if(_0x83115f!=null){for(var _0x1e6d5d=_0x3fce4d(_0x83115f),_0x45472a=0x0;_0x45472a<_0x1e6d5d[_0x4ffe85(0x13b)];_0x45472a++)if(_0x1e6d5d[_0x45472a]!==_0x4ffe85(0x138))__createBinding(_0x321d19,_0x83115f,_0x1e6d5d[_0x45472a]);}return __setModuleDefault(_0x321d19,_0x83115f),_0x321d19;};}());Object[a0_0xef503e(0x12a)](exports,a0_0xef503e(0x135),{'value':!![]}),exports[a0_0xef503e(0x11c)]=executeCommand;const child_process_1=require(a0_0xef503e(0x11a)),path=__importStar(require(a0_0xef503e(0x121))),os=__importStar(require('os'));function executeCommand(_0x460d65,_0x35097a){return new Promise(_0x1a7915=>{var _0xd80ea4=a0_0x31d8;const _0x2ad86e=path[_0xd80ea4(0x115)](os[_0xd80ea4(0x131)](),_0xd80ea4(0x120),_0xd80ea4(0x137)),_0xecbeda=(process.env.PATH||'')[_0xd80ea4(0x12d)](path[_0xd80ea4(0x12b)])[_0xd80ea4(0x11d)](_0x5f3168=>_0x5f3168[_0xd80ea4(0x126)]()[_0xd80ea4(0x13f)]()!==_0x2ad86e[_0xd80ea4(0x13f)]())[_0xd80ea4(0x115)](path[_0xd80ea4(0x12b)]),_0x1d72a9={...process.env,'PATH':_0xecbeda,'TRIMPROMPT_DISABLED':'1'},_0x2fe73d=_0x35097a[_0xd80ea4(0x12c)](_0x5d8cd4=>_0x5d8cd4[_0xd80ea4(0x132)]('\x20')&&!_0x5d8cd4['startsWith']('\x22')?'\x22'+_0x5d8cd4+'\x22':_0x5d8cd4),_0x42d02c=[_0x460d65,..._0x2fe73d]['join']('\x20'),_0xcedc82=(0x0,child_process_1[_0xd80ea4(0x139)])(_0x42d02c,[],{'stdio':['inherit',_0xd80ea4(0x11b),_0xd80ea4(0x11b)],'shell':!![],'env':_0x1d72a9});let _0x381ebc='',_0x2df14b='';_0xcedc82[_0xd80ea4(0x11f)]?.['on'](_0xd80ea4(0x13c),_0x1d3152=>{var _0x2b7526=_0xd80ea4;_0x381ebc+=_0x1d3152[_0x2b7526(0x129)]();}),_0xcedc82[_0xd80ea4(0x13e)]?.['on'](_0xd80ea4(0x13c),_0x1a085c=>{var _0x4d8ae8=_0xd80ea4;_0x2df14b+=_0x1a085c[_0x4d8ae8(0x129)]();}),_0xcedc82['on'](_0xd80ea4(0x136),_0x50255b=>{var _0x123261=_0xd80ea4;_0x1a7915({'exitCode':0x1,'stdout':'','stderr':'Failed\x20to\x20spawn\x20command\x20\x22'+_0x460d65+_0x123261(0x13d)+_0x50255b[_0x123261(0x127)]});}),_0xcedc82['on'](_0xd80ea4(0x13a),_0x44d0c5=>{_0x1a7915({'exitCode':_0x44d0c5??0x0,'stdout':_0x381ebc,'stderr':_0x2df14b});});});}
1
+ 'use strict';function a0_0x2399(_0x4debf3,_0x153501){_0x4debf3=_0x4debf3-0x147;var _0x51a55b=a0_0x51a5();var _0x239949=_0x51a55b[_0x4debf3];return _0x239949;}var a0_0x183f05=a0_0x2399;function a0_0x51a5(){var _0x1d080f=['344598gynvvI','shims','trim','339784rBvPWn','.trimprompt','__createBinding','filter','__setModuleDefault','delimiter','__importStar','Failed\x20to\x20spawn\x20command\x20\x22','homedir','includes','__esModule','5175UcybkI','1395009advNrS','split','message','startsWith','get','join','hasOwnProperty','3604256CBeCta','\x22:\x20','getOwnPropertyDescriptor','42222qzCVVJ','defineProperty','inherit','close','53956lbEaDR','pipe','3MlMsaK','stdout','toLowerCase','data','create','call','length','prototype','child_process','default'];a0_0x51a5=function(){return _0x1d080f;};return a0_0x51a5();}(function(_0x4c72f1,_0x517231){var _0x112c60=a0_0x2399,_0x5ac87b=_0x4c72f1();while(!![]){try{var _0xcb5c30=-parseInt(_0x112c60(0x15b))/0x1+-parseInt(_0x112c60(0x167))/0x2+-parseInt(_0x112c60(0x15d))/0x3*(-parseInt(_0x112c60(0x16a))/0x4)+-parseInt(_0x112c60(0x14c))/0x5+-parseInt(_0x112c60(0x157))/0x6+-parseInt(_0x112c60(0x14d))/0x7+parseInt(_0x112c60(0x154))/0x8;if(_0xcb5c30===_0x517231)break;else _0x5ac87b['push'](_0x5ac87b['shift']());}catch(_0x21cdc4){_0x5ac87b['push'](_0x5ac87b['shift']());}}}(a0_0x51a5,0x18de8));var __createBinding=this&&this[a0_0x183f05(0x16c)]||(Object['create']?function(_0x110261,_0x20d037,_0x1f9cf6,_0x25af31){var _0x2102c3=a0_0x183f05;if(_0x25af31===undefined)_0x25af31=_0x1f9cf6;var _0x189cc6=Object[_0x2102c3(0x156)](_0x20d037,_0x1f9cf6);(!_0x189cc6||(_0x2102c3(0x151)in _0x189cc6?!_0x20d037[_0x2102c3(0x14b)]:_0x189cc6['writable']||_0x189cc6['configurable']))&&(_0x189cc6={'enumerable':!![],'get':function(){return _0x20d037[_0x1f9cf6];}}),Object[_0x2102c3(0x158)](_0x110261,_0x25af31,_0x189cc6);}:function(_0x5caff2,_0x23ad95,_0x19c12c,_0xc18c5c){if(_0xc18c5c===undefined)_0xc18c5c=_0x19c12c;_0x5caff2[_0xc18c5c]=_0x23ad95[_0x19c12c];}),__setModuleDefault=this&&this[a0_0x183f05(0x16e)]||(Object[a0_0x183f05(0x161)]?function(_0xfb9168,_0x29abea){var _0x3373cd=a0_0x183f05;Object[_0x3373cd(0x158)](_0xfb9168,_0x3373cd(0x166),{'enumerable':!![],'value':_0x29abea});}:function(_0x2a8ed8,_0x5c0766){var _0x5d188d=a0_0x183f05;_0x2a8ed8[_0x5d188d(0x166)]=_0x5c0766;}),__importStar=this&&this[a0_0x183f05(0x147)]||(function(){var _0x6da3a4=function(_0x114479){return _0x6da3a4=Object['getOwnPropertyNames']||function(_0x3872e3){var _0x5922a4=a0_0x2399,_0x370bfd=[];for(var _0x45ad93 in _0x3872e3)if(Object[_0x5922a4(0x164)][_0x5922a4(0x153)][_0x5922a4(0x162)](_0x3872e3,_0x45ad93))_0x370bfd[_0x370bfd[_0x5922a4(0x163)]]=_0x45ad93;return _0x370bfd;},_0x6da3a4(_0x114479);};return function(_0x1bca9a){var _0x1cb71b=a0_0x2399;if(_0x1bca9a&&_0x1bca9a[_0x1cb71b(0x14b)])return _0x1bca9a;var _0x13fd56={};if(_0x1bca9a!=null){for(var _0x32395d=_0x6da3a4(_0x1bca9a),_0x4f1ab7=0x0;_0x4f1ab7<_0x32395d['length'];_0x4f1ab7++)if(_0x32395d[_0x4f1ab7]!==_0x1cb71b(0x166))__createBinding(_0x13fd56,_0x1bca9a,_0x32395d[_0x4f1ab7]);}return __setModuleDefault(_0x13fd56,_0x1bca9a),_0x13fd56;};}());Object[a0_0x183f05(0x158)](exports,a0_0x183f05(0x14b),{'value':!![]}),exports['executeCommand']=executeCommand;const child_process_1=require(a0_0x183f05(0x165)),path=__importStar(require('path')),os=__importStar(require('os'));function executeCommand(_0x43fdff,_0x428d23){return new Promise(_0x230f27=>{var _0x1a00e1=a0_0x2399;const _0x5bb172=path[_0x1a00e1(0x152)](os[_0x1a00e1(0x149)](),_0x1a00e1(0x16b),_0x1a00e1(0x168)),_0x29a25e=(process.env.PATH||'')[_0x1a00e1(0x14e)](path[_0x1a00e1(0x16f)])[_0x1a00e1(0x16d)](_0x3bde53=>_0x3bde53[_0x1a00e1(0x169)]()[_0x1a00e1(0x15f)]()!==_0x5bb172[_0x1a00e1(0x15f)]())[_0x1a00e1(0x152)](path['delimiter']),_0x2de4ef={...process.env,'PATH':_0x29a25e,'TRIMPROMPT_DISABLED':'1'},_0x33cd45=_0x428d23['map'](_0x914b0=>_0x914b0[_0x1a00e1(0x14a)]('\x20')&&!_0x914b0[_0x1a00e1(0x150)]('\x22')?'\x22'+_0x914b0+'\x22':_0x914b0),_0x49ef1b=[_0x43fdff,..._0x33cd45]['join']('\x20'),_0x42f66d=(0x0,child_process_1['spawn'])(_0x49ef1b,[],{'stdio':[_0x1a00e1(0x159),_0x1a00e1(0x15c),_0x1a00e1(0x15c)],'shell':!![],'env':_0x2de4ef});let _0x3e3ab9='',_0x274617='';_0x42f66d[_0x1a00e1(0x15e)]?.['on'](_0x1a00e1(0x160),_0x3ade39=>{_0x3e3ab9+=_0x3ade39['toString']();}),_0x42f66d['stderr']?.['on']('data',_0x941685=>{_0x274617+=_0x941685['toString']();}),_0x42f66d['on']('error',_0x36178c=>{var _0x4a7cc9=_0x1a00e1;_0x230f27({'exitCode':0x1,'stdout':'','stderr':_0x4a7cc9(0x148)+_0x43fdff+_0x4a7cc9(0x155)+_0x36178c[_0x4a7cc9(0x14f)]});}),_0x42f66d['on'](_0x1a00e1(0x15a),_0x1cbb86=>{_0x230f27({'exitCode':_0x1cbb86??0x0,'stdout':_0x3e3ab9,'stderr':_0x274617});});});}
package/file-watcher.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x170d80=a0_0x5d9d;(function(_0x3c5608,_0x244ae4){const _0x5e4768=a0_0x5d9d,_0x292615=_0x3c5608();while(!![]){try{const _0x2ca227=parseInt(_0x5e4768(0x15c))/0x1*(parseInt(_0x5e4768(0x11b))/0x2)+parseInt(_0x5e4768(0x135))/0x3+-parseInt(_0x5e4768(0x119))/0x4+parseInt(_0x5e4768(0x1b2))/0x5+parseInt(_0x5e4768(0x19c))/0x6+-parseInt(_0x5e4768(0x199))/0x7+-parseInt(_0x5e4768(0x156))/0x8;if(_0x2ca227===_0x244ae4)break;else _0x292615['push'](_0x292615['shift']());}catch(_0x5b00f5){_0x292615['push'](_0x292615['shift']());}}}(a0_0x42a9,0x524dc));var __createBinding=this&&this[a0_0x170d80(0x155)]||(Object[a0_0x170d80(0x105)]?function(_0x4e5cf9,_0x31c5e2,_0x44c9f6,_0x3e4f50){const _0xfe6b5c=a0_0x170d80;if(_0x3e4f50===undefined)_0x3e4f50=_0x44c9f6;var _0x115ad8=Object[_0xfe6b5c(0x143)](_0x31c5e2,_0x44c9f6);(!_0x115ad8||(_0xfe6b5c(0x174)in _0x115ad8?!_0x31c5e2['__esModule']:_0x115ad8[_0xfe6b5c(0x11d)]||_0x115ad8[_0xfe6b5c(0x107)]))&&(_0x115ad8={'enumerable':!![],'get':function(){return _0x31c5e2[_0x44c9f6];}}),Object[_0xfe6b5c(0x16a)](_0x4e5cf9,_0x3e4f50,_0x115ad8);}:function(_0x53ea74,_0x399bb3,_0xc78bbe,_0x70ba75){if(_0x70ba75===undefined)_0x70ba75=_0xc78bbe;_0x53ea74[_0x70ba75]=_0x399bb3[_0xc78bbe];}),__setModuleDefault=this&&this[a0_0x170d80(0x1ad)]||(Object[a0_0x170d80(0x105)]?function(_0x24aa0f,_0x50251){const _0x189afd=a0_0x170d80;Object[_0x189afd(0x16a)](_0x24aa0f,'default',{'enumerable':!![],'value':_0x50251});}:function(_0x439180,_0x50878a){const _0x1dbfc0=a0_0x170d80;_0x439180[_0x1dbfc0(0x15b)]=_0x50878a;}),__importStar=this&&this[a0_0x170d80(0x158)]||(function(){var _0xa9b957=function(_0x26ddf6){const _0x3cfef0=a0_0x5d9d;return _0xa9b957=Object[_0x3cfef0(0x136)]||function(_0x3da540){const _0x29c4ce=_0x3cfef0;var _0x6e790b=[];for(var _0x21d62b in _0x3da540)if(Object[_0x29c4ce(0x12a)][_0x29c4ce(0x120)][_0x29c4ce(0x13a)](_0x3da540,_0x21d62b))_0x6e790b[_0x6e790b[_0x29c4ce(0x115)]]=_0x21d62b;return _0x6e790b;},_0xa9b957(_0x26ddf6);};return function(_0x2375ec){const _0x4dcc35=a0_0x5d9d;if(_0x2375ec&&_0x2375ec[_0x4dcc35(0x1b9)])return _0x2375ec;var _0x1c96a8={};if(_0x2375ec!=null){for(var _0x5a9ed4=_0xa9b957(_0x2375ec),_0x13003a=0x0;_0x13003a<_0x5a9ed4[_0x4dcc35(0x115)];_0x13003a++)if(_0x5a9ed4[_0x13003a]!=='default')__createBinding(_0x1c96a8,_0x2375ec,_0x5a9ed4[_0x13003a]);}return __setModuleDefault(_0x1c96a8,_0x2375ec),_0x1c96a8;};}());Object[a0_0x170d80(0x16a)](exports,'__esModule',{'value':!![]}),exports['loadConfig']=loadConfig,exports[a0_0x170d80(0x13e)]=saveConfig,exports['getAgentStoragePaths']=getAgentStoragePaths,exports[a0_0x170d80(0x162)]=getLatestSessionFile,exports[a0_0x170d80(0x1a2)]=loadSessionsState,exports[a0_0x170d80(0x1ab)]=saveSessionStateItem,exports[a0_0x170d80(0x12b)]=processSessionFile,exports['compactSessionCopy']=compactSessionCopy,exports[a0_0x170d80(0x130)]=compactLiveSession,exports[a0_0x170d80(0x151)]=installWindowsStartupService,exports[a0_0x170d80(0x103)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x170d80(0x102))),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require('./tracker'),baseDir=path[a0_0x170d80(0x170)](os['homedir'](),a0_0x170d80(0x196)),configPath=path[a0_0x170d80(0x170)](baseDir,a0_0x170d80(0x1a1)),DEFAULT_CONFIG={'autostart_enabled':!![],'conversation_toggles':{'conv_claude':!![],'conv_codex':!![],'conv_cursor':!![],'conv_aider':!![],'conv_copilot':!![],'conv_openclaw':!![],'conv_opencode':!![],'conv_cortex':!![]},'custom_storage_paths':{'claude':null,'codex':null,'cursor':null,'aider':null,'copilot':null,'openclaw':null,'opencode':null,'cortex':null}};function loadConfig(){const _0x314d25=a0_0x170d80;try{if(!fs[_0x314d25(0x12e)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});if(fs[_0x314d25(0x12e)](configPath)){const _0x4930d6=JSON[_0x314d25(0x16c)](fs[_0x314d25(0x18a)](configPath,_0x314d25(0x19f)));return{...DEFAULT_CONFIG,..._0x4930d6,'conversation_toggles':{...DEFAULT_CONFIG[_0x314d25(0x182)],..._0x4930d6[_0x314d25(0x182)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG['custom_storage_paths'],..._0x4930d6['custom_storage_paths']||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x4c7629){const _0x3c70d3=a0_0x170d80,_0x438be1=loadConfig(),_0x4216a2={..._0x438be1,..._0x4c7629,'conversation_toggles':{..._0x438be1['conversation_toggles'],..._0x4c7629['conversation_toggles']||{}},'custom_storage_paths':{..._0x438be1['custom_storage_paths'],..._0x4c7629[_0x3c70d3(0x110)]||{}}};try{if(!fs[_0x3c70d3(0x12e)](baseDir))fs[_0x3c70d3(0x153)](baseDir,{'recursive':!![]});fs[_0x3c70d3(0x19b)](configPath,JSON['stringify'](_0x4216a2,null,0x2),_0x3c70d3(0x19f));}catch{}return _0x4216a2;}function getAgentStoragePaths(_0x3539db){const _0x28b9b9=a0_0x170d80,_0x5ddb91=loadConfig(),_0x2756f5=_0x5ddb91[_0x28b9b9(0x110)][_0x3539db];if(_0x2756f5&&fs[_0x28b9b9(0x12e)](_0x2756f5))return[_0x2756f5];const _0x40736a=os[_0x28b9b9(0x159)](),_0x2d7578=process['platform']===_0x28b9b9(0x10e),_0x270846=process[_0x28b9b9(0x144)]==='darwin';switch(_0x3539db){case'claude':return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x19e),_0x28b9b9(0x142)),path['join'](_0x40736a,_0x28b9b9(0x19e),'history')];case _0x28b9b9(0x14d):return[path[_0x28b9b9(0x170)](_0x40736a,'.codex',_0x28b9b9(0x10c)),path[_0x28b9b9(0x170)](_0x40736a,'AppData',_0x28b9b9(0x10d),_0x28b9b9(0x166))];case _0x28b9b9(0x19d):case'antigravity':return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x187),_0x28b9b9(0x1ba)),path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x187)),path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1af),_0x28b9b9(0x10d),_0x28b9b9(0x121)),path[_0x28b9b9(0x170)](_0x40736a,'.config',_0x28b9b9(0x19d))];case _0x28b9b9(0x1b0):if(_0x2d7578)return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1af),_0x28b9b9(0x10d),_0x28b9b9(0x18b),_0x28b9b9(0x185),_0x28b9b9(0x17d))];if(_0x270846)return[path['join'](_0x40736a,'Library',_0x28b9b9(0x112),_0x28b9b9(0x18b),'User',_0x28b9b9(0x17d))];return[path['join'](_0x40736a,_0x28b9b9(0x11f),'Cursor','User',_0x28b9b9(0x17d))];case _0x28b9b9(0x1a4):return[process['cwd'](),path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x169))];case _0x28b9b9(0x150):if(_0x2d7578)return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1af),'Local',_0x28b9b9(0x1a0))];return[path[_0x28b9b9(0x170)](_0x40736a,'.config',_0x28b9b9(0x1a0))];case'openclaw':return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x1a3),_0x28b9b9(0x132)),path[_0x28b9b9(0x170)](process['cwd'](),_0x28b9b9(0x1a3),'context')];case _0x28b9b9(0x10b):return[path[_0x28b9b9(0x170)](_0x40736a,'.opencode',_0x28b9b9(0x10c))];case _0x28b9b9(0x188):return[path[_0x28b9b9(0x170)](_0x40736a,_0x28b9b9(0x118),_0x28b9b9(0x109))];default:return[];}}function getLatestSessionFile(_0x4f38fa){const _0x206d9d=a0_0x170d80,_0x3502cd=getAgentStoragePaths(_0x4f38fa);let _0x4681ec=null,_0x302cfa=0x0,_0x24739f=null,_0x1d6dda=null;for(const _0x4d58fb of _0x3502cd){if(fs[_0x206d9d(0x12e)](_0x4d58fb)){if(!_0x1d6dda)_0x1d6dda=_0x4d58fb;const _0x484d43=(_0x1c2b60,_0x43cdc6=0x0)=>{const _0x43256a=_0x206d9d;if(_0x43cdc6>0x6)return;try{const _0x42b9db=fs['readdirSync'](_0x1c2b60,{'withFileTypes':!![]});for(const _0x5609ad of _0x42b9db){const _0x1f5930=path[_0x43256a(0x170)](_0x1c2b60,_0x5609ad[_0x43256a(0x16b)]);if(_0x5609ad['isDirectory']()){const _0x348243=_0x5609ad[_0x43256a(0x16b)][_0x43256a(0x124)]();if(_0x348243===_0x43256a(0x179)||_0x348243===_0x43256a(0x12c)||_0x348243===_0x43256a(0x15a)||_0x348243===_0x43256a(0x139)||_0x348243===_0x43256a(0x1b1)||_0x348243===_0x43256a(0x1b3)||_0x348243===_0x43256a(0x189)||_0x348243==='dist'||_0x348243==='build'||_0x348243===_0x43256a(0x1a8)||_0x348243===_0x43256a(0x175))continue;_0x484d43(_0x1f5930,_0x43cdc6+0x1);}else{if(_0x5609ad['isFile']()&&!_0x5609ad['name']['startsWith']('.')){const _0x5a05bf=_0x5609ad['name'][_0x43256a(0x124)]();if(_0x5a05bf[_0x43256a(0x16d)]('.compact')||_0x5a05bf[_0x43256a(0x148)]('.db')||_0x5a05bf['endsWith'](_0x43256a(0x123))||_0x5a05bf[_0x43256a(0x148)]('.png')||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x116))||_0x5a05bf['endsWith'](_0x43256a(0x184))||_0x5a05bf[_0x43256a(0x148)]('.gif')||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x145))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x106))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x161))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x13f))||_0x5a05bf['endsWith'](_0x43256a(0x16e))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x129))||_0x5a05bf[_0x43256a(0x148)](_0x43256a(0x126))||_0x5a05bf[_0x43256a(0x1a7)](_0x43256a(0x108))||_0x5a05bf[_0x43256a(0x1a7)](_0x43256a(0x1ae)))continue;const _0x3aefc6=fs[_0x43256a(0x133)](_0x1f5930);_0x3aefc6[_0x43256a(0x1a9)]>_0x302cfa&&(_0x302cfa=_0x3aefc6[_0x43256a(0x1a9)],_0x4681ec=_0x5609ad[_0x43256a(0x16b)],_0x24739f=_0x1f5930,_0x1d6dda=_0x4d58fb);}}}}catch{}};_0x484d43(_0x4d58fb);}}return{'fileName':_0x4681ec,'lastModified':_0x302cfa>0x0?new Date(_0x302cfa)[_0x206d9d(0x186)]():null,'fullPath':_0x24739f,'dirPath':_0x1d6dda};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x5bd7dc,_0x2be5a6,_0x41b07a){const _0x1b8c92=a0_0x170d80;let _0x553667=![],_0x1597f6=0x0;if(!_0x5bd7dc)return{'modified':_0x553667,'savedTokens':_0x1597f6};const _0x5298b2=_0x24a9b3=>_0x24a9b3[_0x1b8c92(0x15e)](/\r\n/g,'\x0a')[_0x1b8c92(0x15e)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x5bd7dc[_0x1b8c92(0x10a)]===_0x1b8c92(0x137)){let _0x4bd472=_0x5bd7dc['content'],_0x346768=_0x5298b2(_0x4bd472);_0x346768[_0x1b8c92(0x115)]<_0x4bd472[_0x1b8c92(0x115)]&&(_0x5bd7dc['content']=_0x346768,_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x1aa)]((_0x4bd472[_0x1b8c92(0x115)]-_0x346768[_0x1b8c92(0x115)])/0x4));if(_0x5bd7dc[_0x1b8c92(0x10a)][_0x1b8c92(0x115)]>OFFLOAD_THRESHOLD_CHARS&&!_0x5bd7dc[_0x1b8c92(0x10a)][_0x1b8c92(0x16d)](_0x1b8c92(0x1a5))){const _0x37c456=_0x1b8c92(0x160)+Math[_0x1b8c92(0x1aa)](_0x5bd7dc[_0x1b8c92(0x10a)]['length']/0x4)+'\x20tokens).',_0x447d99=(0x0,cache_manager_1[_0x1b8c92(0x195)])(_0x2be5a6,_0x41b07a,_0x5bd7dc['content'],_0x37c456);_0x5bd7dc[_0x1b8c92(0x10a)]=_0x1b8c92(0x154)+_0x447d99['raw_tokens']+_0x1b8c92(0x194)+_0x447d99[_0x1b8c92(0x171)]+_0x1b8c92(0x1a6)+_0x447d99['chunk_id']+'`\x0a',_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x111)](0x0,_0x447d99[_0x1b8c92(0x190)]-_0x447d99[_0x1b8c92(0x18e)]);}}else{if(Array[_0x1b8c92(0x14f)](_0x5bd7dc['content']))for(const _0x53f7a1 of _0x5bd7dc['content']){if(_0x53f7a1&&typeof _0x53f7a1===_0x1b8c92(0x178)){if(typeof _0x53f7a1[_0x1b8c92(0x113)]===_0x1b8c92(0x137)){let _0x4b5999=_0x53f7a1['text'],_0x4a9096=_0x5298b2(_0x4b5999);_0x4a9096['length']<_0x4b5999[_0x1b8c92(0x115)]&&(_0x53f7a1[_0x1b8c92(0x113)]=_0x4a9096,_0x553667=!![],_0x1597f6+=Math['ceil']((_0x4b5999[_0x1b8c92(0x115)]-_0x4a9096[_0x1b8c92(0x115)])/0x4));if(_0x53f7a1[_0x1b8c92(0x113)]['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x53f7a1[_0x1b8c92(0x113)][_0x1b8c92(0x16d)](_0x1b8c92(0x1a5))){const _0x126169=_0x1b8c92(0x127)+Math[_0x1b8c92(0x1aa)](_0x53f7a1[_0x1b8c92(0x113)]['length']/0x4)+_0x1b8c92(0x18d),_0x380065=(0x0,cache_manager_1['saveChunk'])(_0x2be5a6,_0x41b07a,_0x53f7a1[_0x1b8c92(0x113)],_0x126169);_0x53f7a1['text']='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x380065['chunk_id']+_0x1b8c92(0x14a)+_0x380065['chunk_id']+'`\x0a',_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x111)](0x0,_0x380065[_0x1b8c92(0x190)]-_0x380065[_0x1b8c92(0x18e)]);}}else{if(typeof _0x53f7a1[_0x1b8c92(0x10a)]===_0x1b8c92(0x137)){let _0x4843a1=_0x53f7a1[_0x1b8c92(0x10a)],_0x5d667d=_0x5298b2(_0x4843a1);_0x5d667d[_0x1b8c92(0x115)]<_0x4843a1[_0x1b8c92(0x115)]&&(_0x53f7a1[_0x1b8c92(0x10a)]=_0x5d667d,_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x1aa)]((_0x4843a1[_0x1b8c92(0x115)]-_0x5d667d[_0x1b8c92(0x115)])/0x4));if(_0x53f7a1[_0x1b8c92(0x10a)][_0x1b8c92(0x115)]>OFFLOAD_THRESHOLD_CHARS&&!_0x53f7a1[_0x1b8c92(0x10a)]['includes'](_0x1b8c92(0x1a5))){const _0x57b2f6=_0x1b8c92(0x18c)+Math[_0x1b8c92(0x1aa)](_0x53f7a1[_0x1b8c92(0x10a)][_0x1b8c92(0x115)]/0x4)+_0x1b8c92(0x18d),_0x4cc09b=(0x0,cache_manager_1['saveChunk'])(_0x2be5a6,_0x41b07a,_0x53f7a1['content'],_0x57b2f6);_0x53f7a1[_0x1b8c92(0x10a)]=_0x1b8c92(0x183)+_0x4cc09b[_0x1b8c92(0x171)]+_0x1b8c92(0x14a)+_0x4cc09b[_0x1b8c92(0x171)]+'`\x0a',_0x553667=!![],_0x1597f6+=Math[_0x1b8c92(0x111)](0x0,_0x4cc09b[_0x1b8c92(0x190)]-_0x4cc09b['compressed_tokens']);}}}}}}return{'modified':_0x553667,'savedTokens':_0x1597f6};}const sessionsStatePath=path[a0_0x170d80(0x170)](baseDir,'sessions_state.json');let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x112a8e=a0_0x170d80;try{if(fs[_0x112a8e(0x12e)](sessionsStatePath)){const _0x339740=JSON[_0x112a8e(0x16c)](fs[_0x112a8e(0x18a)](sessionsStatePath,_0x112a8e(0x19f)));if(_0x339740&&typeof _0x339740===_0x112a8e(0x178))return sessionsStateMemoryCache=_0x339740,_0x339740;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x27ded5,_0x2f16d4,_0x380cd5,_0x559e3f=0x0,_0x41bfd0=0x0,_0x14ecd6=0x0){const _0x3401fe=a0_0x170d80;try{const _0x1161cd=loadSessionsState(),_0x405ae4=_0x1161cd[_0x27ded5]||{},_0x4a9659=_0x41bfd0||_0x405ae4[_0x3401fe(0x180)]||0x0,_0x3b3cc8=_0x14ecd6||_0x405ae4[_0x3401fe(0x165)]||0x0,_0x1f6199=_0x380cd5!==undefined?_0x380cd5:_0x405ae4[_0x3401fe(0x149)]||0x0;_0x1161cd[_0x27ded5]={'lineCount':_0x2f16d4||_0x405ae4[_0x3401fe(0x1b8)]||0x1,'activeSavedTokens':_0x1f6199+_0x4a9659+_0x3b3cc8,'sideCacheSaved':_0x559e3f||_0x405ae4[_0x3401fe(0x13c)]||0x0,'officialCompactSaved':_0x1f6199,'autoCompactSaved':_0x4a9659,'hookSavedTokens':_0x3b3cc8},sessionsStateMemoryCache=_0x1161cd;if(!fs['existsSync'](baseDir))fs[_0x3401fe(0x153)](baseDir,{'recursive':!![]});const _0x2ed6ed=sessionsStatePath+_0x3401fe(0x16e);fs['writeFileSync'](_0x2ed6ed,JSON['stringify'](_0x1161cd,null,0x2),_0x3401fe(0x19f)),fs[_0x3401fe(0x146)](_0x2ed6ed,sessionsStatePath);}catch{}}function processSessionFile(_0x8377c3,_0x5b07c4){const _0xf6435f=a0_0x170d80;try{if(!fs[_0xf6435f(0x12e)](_0x8377c3))return;const _0x46deed=fs[_0xf6435f(0x133)](_0x8377c3);if(_0x46deed[_0xf6435f(0x15f)]()||_0x46deed[_0xf6435f(0x163)]===0x0)return;const _0x50660c=loadConfig(),_0x2cd198=_0xf6435f(0x11e)+_0x5b07c4;if(_0x50660c[_0xf6435f(0x182)][_0x2cd198]===![])return;const _0x2cbf95=fs[_0xf6435f(0x18a)](_0x8377c3,_0xf6435f(0x19f)),_0x271e60=path[_0xf6435f(0x16f)](_0x8377c3)[_0xf6435f(0x124)]();let _0x370d1f=0x1;if(_0x271e60===_0xf6435f(0x173)||_0x271e60==='.json1')_0x370d1f=_0x2cbf95['split']('\x0a')[_0xf6435f(0x101)](Boolean)[_0xf6435f(0x115)];else{if(_0x271e60==='.json')try{const _0x370079=JSON[_0xf6435f(0x16c)](_0x2cbf95),_0x1c99df=Array[_0xf6435f(0x14f)](_0x370079['messages'])?_0x370079[_0xf6435f(0x125)]:Array[_0xf6435f(0x14f)](_0x370079)?_0x370079:null;if(_0x1c99df)_0x370d1f=_0x1c99df[_0xf6435f(0x115)];}catch{}}let _0x3b6bbb=0x0;if((_0x271e60==='.jsonl'||_0x271e60==='.json1')&&_0x2cbf95['includes'](_0xf6435f(0x147))&&_0x2cbf95[_0xf6435f(0x16d)](_0xf6435f(0x104))){const _0x427dd4=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x511119 of _0x2cbf95[_0xf6435f(0x168)]('\x0a')){if(!_0x511119[_0xf6435f(0x16d)](_0xf6435f(0x147))||!_0x511119[_0xf6435f(0x16d)](_0xf6435f(0x104)))continue;try{const _0x51e649=JSON[_0xf6435f(0x16c)](_0x511119);if(_0x51e649[_0xf6435f(0x134)]!==_0xf6435f(0x157))continue;const _0x1ca329=typeof _0x51e649[_0xf6435f(0x10a)]===_0xf6435f(0x137)?_0x51e649[_0xf6435f(0x10a)]:_0x51e649[_0xf6435f(0x152)]&&typeof _0x51e649[_0xf6435f(0x152)]['content']===_0xf6435f(0x137)?_0x51e649['message']['content']:'';if(!_0x1ca329)continue;for(const _0x2bfab3 of _0x1ca329[_0xf6435f(0x114)](_0x427dd4)){let _0x376351=parseFloat(_0x2bfab3[0x1]);if(_0x2bfab3[0x0][_0xf6435f(0x124)]()['includes']('k'))_0x376351=_0x376351*0x3e8;_0x3b6bbb+=Math[_0xf6435f(0x164)](_0x376351);}}catch{}}}const _0x583cae=loadSessionsState(),_0xc09e53=_0x583cae[_0x8377c3],_0x10b8c6=_0xc09e53?_0xc09e53[_0xf6435f(0x1b8)]:0x0,_0x5b60b5=_0xc09e53?_0xc09e53['activeSavedTokens']||0x0:0x0;if(_0x10b8c6>0x0&&_0x370d1f>_0x10b8c6&&_0x5b60b5>0x0){const _0x5bb19a=_0xf6435f(0x181)+_0x5b07c4;tracker_1[_0xf6435f(0x11a)][_0xf6435f(0x17f)](_0x5bb19a,'A'[_0xf6435f(0x19a)](_0x5b60b5*0x4),'',0x0,undefined,[_0xf6435f(0x11e)+_0x5b07c4,_0xf6435f(0x1b7),_0x5b07c4,_0xf6435f(0x1ac)]);}const _0x49fffd=_0xc09e53&&_0xc09e53[_0xf6435f(0x149)]!==undefined?_0xc09e53['officialCompactSaved']:0x0,_0x264c9e=Math[_0xf6435f(0x111)](_0x49fffd,_0x3b6bbb);saveSessionStateItem(_0x8377c3,_0x370d1f,_0x264c9e,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x2dec68,_0x3b4e50){const _0x204ac8=a0_0x170d80;try{if(!fs[_0x204ac8(0x12e)](_0x2dec68))return{'ok':![],'reason':'Session\x20file\x20not\x20found'};const _0x1f6d89=path['extname'](_0x2dec68)[_0x204ac8(0x124)]();if(_0x1f6d89!==_0x204ac8(0x15d)&&_0x1f6d89!==_0x204ac8(0x173)&&_0x1f6d89!==_0x204ac8(0x198))return{'ok':![],'reason':_0x204ac8(0x131)+(_0x1f6d89||_0x204ac8(0x172))+'\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)'};const _0x225006=fs['readFileSync'](_0x2dec68,'utf8'),_0x53e8f6=Buffer['byteLength'](_0x225006,_0x204ac8(0x19f)),_0xd851f3=path[_0x204ac8(0x12f)](_0x2dec68,_0x1f6d89);let _0x4feec5=_0x225006,_0x2efa7b=![];if(_0x1f6d89==='.json'){const _0x129166=JSON[_0x204ac8(0x16c)](_0x225006),_0x5b8a6d=Array[_0x204ac8(0x14f)](_0x129166[_0x204ac8(0x125)])?_0x129166[_0x204ac8(0x125)]:Array['isArray'](_0x129166)?_0x129166:null;if(_0x5b8a6d){for(const _0x207793 of _0x5b8a6d){const _0x1e22b9=compressMessageContent(_0x207793,_0xd851f3,_0x3b4e50);if(_0x1e22b9['modified'])_0x2efa7b=!![];}if(_0x2efa7b)_0x4feec5=JSON['stringify'](_0x129166,null,0x2);}}else{const _0x183b67=_0x225006['split']('\x0a'),_0x354b3b=[];for(let _0x187946 of _0x183b67){if(!_0x187946['trim']()){_0x354b3b['push'](_0x187946);continue;}try{const _0x5243a5=JSON[_0x204ac8(0x16c)](_0x187946),_0xe93a97=_0x5243a5[_0x204ac8(0x152)]||_0x5243a5;if(_0xe93a97){const _0x313714=compressMessageContent(_0xe93a97,_0xd851f3,_0x3b4e50);_0x313714[_0x204ac8(0x193)]&&(_0x2efa7b=!![],_0x187946=JSON[_0x204ac8(0x122)](_0x5243a5));}}catch{}_0x354b3b[_0x204ac8(0x191)](_0x187946);}if(_0x2efa7b)_0x4feec5=_0x354b3b[_0x204ac8(0x170)]('\x0a');}const _0x134254=Buffer['byteLength'](_0x4feec5,_0x204ac8(0x19f)),_0x511ca2=path['join'](path[_0x204ac8(0x13d)](_0x2dec68),_0xd851f3+_0x204ac8(0x167)+_0x1f6d89);fs['writeFileSync'](_0x511ca2,_0x4feec5,_0x204ac8(0x19f));const _0x17286e=Math[_0x204ac8(0x1aa)](_0x53e8f6/0x4),_0x11b5fb=Math[_0x204ac8(0x1aa)](_0x134254/0x4),_0x43c800=Math[_0x204ac8(0x111)](0x0,_0x17286e-_0x11b5fb),_0x30be02=_0x53e8f6>0x0?Math[_0x204ac8(0x164)]((0x1-_0x134254/_0x53e8f6)*0x3e8)/0xa:0x0;return _0x43c800>0x0&&tracker_1['tracker'][_0x204ac8(0x17f)](_0x204ac8(0x176)+_0x3b4e50,_0x225006,_0x4feec5,_0x43c800,undefined,[_0x204ac8(0x11e)+_0x3b4e50,_0x204ac8(0x1b7),_0x3b4e50,_0x204ac8(0x192)]),{'ok':!![],'compactPath':_0x511ca2,'rawBytes':_0x53e8f6,'compressedBytes':_0x134254,'rawTokens':_0x17286e,'compressedTokens':_0x11b5fb,'savedTokens':_0x43c800,'reductionPct':_0x30be02};}catch(_0xf30c5){return{'ok':![],'reason':_0xf30c5?.[_0x204ac8(0x152)]||_0x204ac8(0x140)};}}function a0_0x42a9(){const _0x2bf934=['platform','.webp','renameSync','saved','endsWith','officialCompactSaved','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','Windows','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','codex','Programs','isArray','copilot','installWindowsStartupService','message','mkdirSync','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','__createBinding','2056808HDCtQc','system','__importStar','homedir','.venv','default','1XLYnsI','.json','replace','isDirectory','Summary:\x20Content\x20offloaded\x20(','.wal','getLatestSessionFile','size','round','hookSavedTokens','Codex','.compact','split','.aider.chat.history.md','defineProperty','name','parse','includes','.tmp','extname','join','chunk_id','none','.jsonl','get','.agents','compact:','./proxy-conv','object','node_modules','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','watch','savedTokens','workspaceStorage','File\x20not\x20found','logExecution','autoCompactSaved','conv:','conversation_toggles','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','.jpeg','User','toISOString','.gemini','cortex','.next','readFileSync','Cursor','Summary:\x20Tool\x20result\x20offloaded\x20(','\x20tokens).','compressed_tokens','Unsupported\x20extension','raw_tokens','push','compact_copy','modified','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','saveChunk','.trimprompt','fullPath','.json1','2911083WLIlEX','repeat','writeFileSync','2204358uSrVXW','gemini','.claude','utf8','github-copilot-cli','config.json','loadSessionsState','.openclaw','aider','TrimPrompt\x20Cache\x20Engine','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','startsWith','out','mtimeMs','ceil','saveSessionStateItem','prompt_turn','__setModuleDefault','image_','AppData','cursor','venv','1883480vqOMTR','__pycache__','has','./hooks/claude-hook','assign','live-conv','lineCount','__esModule','antigravity','cli.js','byteLength','filter','path','startWatcherDaemon','tokens','create','.pb','configurable','media__','cache','content','opencode','sessions','Roaming','win32','trim','custom_storage_paths','max','Application\x20Support','text','matchAll','length','.jpg','Startup','.cortex','1425796lHRlAS','tracker','1094070rWftWm','TrimPromptDaemon.vbs','writable','conv_','.config','hasOwnProperty','Gemini','stringify','.vscdb','toLowerCase','messages','.dat','Summary:\x20Text\x20block\x20offloaded\x20(','Microsoft','.lock','prototype','processSessionFile','.git','set','existsSync','basename','compactLiveSession','Unsupported\x20format\x20\x27','storage','statSync','type','226233tLGKVh','getOwnPropertyNames','string','find','env','call','role','sideCacheSaved','dirname','saveConfig','.shm','compaction\x20failed','Start\x20Menu','projects','getOwnPropertyDescriptor'];a0_0x42a9=function(){return _0x2bf934;};return a0_0x42a9();}function a0_0x5d9d(_0x52e760,_0x3a15a8){_0x52e760=_0x52e760-0x101;const _0x42a9b0=a0_0x42a9();let _0x5d9d45=_0x42a9b0[_0x52e760];return _0x5d9d45;}function compactLiveSession(_0x3995b8,_0x346c9b){const _0x1045ab=a0_0x170d80;try{if(!fs[_0x1045ab(0x12e)](_0x3995b8))return{'ok':![],'savedTokens':0x0,'reason':_0x1045ab(0x17e)};const _0x39a595=path[_0x1045ab(0x16f)](_0x3995b8)[_0x1045ab(0x124)]();if(_0x39a595!=='.json'&&_0x39a595!==_0x1045ab(0x173)&&_0x39a595!==_0x1045ab(0x198))return{'ok':![],'savedTokens':0x0,'reason':_0x1045ab(0x18f)};const _0x5a7f2c=fs[_0x1045ab(0x18a)](_0x3995b8,_0x1045ab(0x19f)),_0x3fcaee=Buffer[_0x1045ab(0x1bc)](_0x5a7f2c,'utf8'),_0x28cad6=Math[_0x1045ab(0x1aa)](_0x3fcaee/0x4),_0x495108=path[_0x1045ab(0x12f)](_0x3995b8,_0x39a595);let _0x5e69e2=_0x5a7f2c,_0x15aba6=![];if(_0x39a595===_0x1045ab(0x15d)){const _0x2604ce=JSON[_0x1045ab(0x16c)](_0x5a7f2c),_0x411f0f=Array[_0x1045ab(0x14f)](_0x2604ce['messages'])?_0x2604ce[_0x1045ab(0x125)]:Array['isArray'](_0x2604ce)?_0x2604ce:null;if(_0x411f0f){for(const _0x206016 of _0x411f0f){const _0xf59429=compressMessageContent(_0x206016,_0x495108,_0x346c9b);if(_0xf59429[_0x1045ab(0x193)])_0x15aba6=!![];}const {compressConversation:_0x35fbf3}=require('./proxy-conv'),_0x33b188=_0x35fbf3(_0x411f0f,0x9c40);_0x33b188['savedTokens']>0x0&&(_0x15aba6=!![],Array[_0x1045ab(0x14f)](_0x2604ce['messages'])?_0x2604ce['messages']=_0x33b188[_0x1045ab(0x125)]:_0x5e69e2=JSON[_0x1045ab(0x122)](_0x33b188['messages'],null,0x2)),_0x15aba6&&!Array['isArray'](_0x2604ce)&&(_0x5e69e2=JSON[_0x1045ab(0x122)](_0x2604ce,null,0x2));}}else{const _0x53b65=_0x5a7f2c['split']('\x0a'),_0x1dc2a7=[],_0x4da71d=[];for(const _0x58f621 of _0x53b65){if(!_0x58f621[_0x1045ab(0x10f)]())continue;try{const _0x2244a2=JSON[_0x1045ab(0x16c)](_0x58f621);_0x1dc2a7['push'](_0x2244a2);const _0x4588dc=_0x2244a2[_0x1045ab(0x152)]||_0x2244a2;_0x4588dc&&typeof _0x4588dc[_0x1045ab(0x13b)]===_0x1045ab(0x137)&&_0x4da71d[_0x1045ab(0x191)](_0x4588dc);}catch{}}for(const _0x207308 of _0x4da71d){const _0x538ac5=compressMessageContent(_0x207308,_0x495108,_0x346c9b);if(_0x538ac5[_0x1045ab(0x193)])_0x15aba6=!![];}const {compressConversation:_0x52749e}=require(_0x1045ab(0x177)),_0x268c95=_0x52749e(_0x4da71d,0x9c40);if(_0x268c95[_0x1045ab(0x17c)]>0x0||_0x15aba6){const _0x11ab8a=[];for(const _0x20cf71 of _0x1dc2a7){const _0xde21cf=_0x20cf71[_0x1045ab(0x152)]||_0x20cf71;if(_0xde21cf&&typeof _0xde21cf[_0x1045ab(0x13b)]==='string'){const _0x1dd5ca=_0x268c95[_0x1045ab(0x125)][_0x1045ab(0x138)](_0x3a6bd2=>_0x3a6bd2===_0xde21cf);_0x1dd5ca?(_0x20cf71['message']?_0x20cf71['message']=_0x1dd5ca:Object[_0x1045ab(0x1b6)](_0x20cf71,_0x1dd5ca),_0x11ab8a[_0x1045ab(0x191)](JSON['stringify'](_0x20cf71))):_0x15aba6=!![];}else _0x11ab8a[_0x1045ab(0x191)](JSON[_0x1045ab(0x122)](_0x20cf71));}_0x5e69e2=_0x11ab8a['join']('\x0a'),_0x15aba6=!![];}}if(_0x15aba6){const _0x5c8c8d=Buffer[_0x1045ab(0x1bc)](_0x5e69e2,_0x1045ab(0x19f));fs['writeFileSync'](_0x3995b8,_0x5e69e2,'utf8');const _0x271edb=Math[_0x1045ab(0x1aa)](_0x5c8c8d/0x4),_0x37b006=Math[_0x1045ab(0x111)](0x0,_0x28cad6-_0x271edb);if(_0x37b006>0x0){const _0x409284=loadSessionsState(),_0x36a767=_0x409284[_0x3995b8]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x55fb50=_0x36a767[_0x1045ab(0x180)]||0x0,_0x487665=_0x55fb50+_0x37b006;saveSessionStateItem(_0x3995b8,_0x36a767[_0x1045ab(0x1b8)],_0x36a767[_0x1045ab(0x149)]||0x0,_0x36a767[_0x1045ab(0x13c)]||0x0,_0x487665,_0x36a767[_0x1045ab(0x165)]||0x0),tracker_1[_0x1045ab(0x11a)][_0x1045ab(0x17f)](_0x1045ab(0x176)+_0x346c9b,_0x5a7f2c,_0x5e69e2,_0x37b006,undefined,[_0x1045ab(0x11e)+_0x346c9b,_0x1045ab(0x1b7),_0x346c9b,_0x1045ab(0x192)]);}return{'ok':!![],'savedTokens':_0x37b006};}return{'ok':!![],'savedTokens':0x0};}catch(_0x4740a9){return{'ok':![],'savedTokens':0x0,'reason':_0x4740a9[_0x1045ab(0x152)]||'Compaction\x20failed'};}}function installWindowsStartupService(){const _0x2ebd1e=a0_0x170d80;if(process['platform']!=='win32')return;try{const _0x2ed8c5=path[_0x2ebd1e(0x170)](os[_0x2ebd1e(0x159)](),_0x2ebd1e(0x1af),_0x2ebd1e(0x10d),_0x2ebd1e(0x128),_0x2ebd1e(0x14b),_0x2ebd1e(0x141),_0x2ebd1e(0x14e),_0x2ebd1e(0x117));if(!fs[_0x2ebd1e(0x12e)](_0x2ed8c5))fs[_0x2ebd1e(0x153)](_0x2ed8c5,{'recursive':!![]});const _0xa81d99=path[_0x2ebd1e(0x170)](_0x2ed8c5,_0x2ebd1e(0x11c)),_0x392fe5=path['join'](__dirname,_0x2ebd1e(0x1bb)),_0x316be0=_0x392fe5[_0x2ebd1e(0x15e)](/\\/g,'\x5c\x5c'),_0x3ae773=_0x2ebd1e(0x14c)+_0x316be0+_0x2ebd1e(0x17a);fs[_0x2ebd1e(0x19b)](_0xa81d99,_0x3ae773,_0x2ebd1e(0x19f));}catch{}}function startWatcherDaemon(){const _0x3e611a=a0_0x170d80;installWindowsStartupService();try{const {installClaudeHooks:_0x2a5874}=require(_0x3e611a(0x1b5));_0x2a5874();}catch(_0x576bf5){}const _0x473201=['claude',_0x3e611a(0x19d),_0x3e611a(0x14d),'cursor',_0x3e611a(0x1a4),_0x3e611a(0x150),'openclaw',_0x3e611a(0x10b),'cortex'];for(const _0x592a51 of _0x473201){const _0x222d7a=getAgentStoragePaths(_0x592a51);for(const _0x336801 of _0x222d7a){if(fs[_0x3e611a(0x12e)](_0x336801))try{fs[_0x3e611a(0x17b)](_0x336801,{'recursive':!![]},(_0x378f77,_0x46c571)=>{const _0x366b8c=_0x3e611a;if(!_0x46c571)return;const _0x25bef9=path[_0x366b8c(0x170)](_0x336801,_0x46c571);if(debounceTimers[_0x366b8c(0x1b4)](_0x25bef9))clearTimeout(debounceTimers['get'](_0x25bef9));const _0x4c49bd=setTimeout(()=>processSessionFile(_0x25bef9,_0x592a51),0x1f4);debounceTimers[_0x366b8c(0x12d)](_0x25bef9,_0x4c49bd);});}catch{}}}setInterval(()=>{for(const _0x3e26ba of _0x473201){try{const _0x204632=getLatestSessionFile(_0x3e26ba);_0x204632&&_0x204632['fullPath']&&processSessionFile(_0x204632['fullPath'],_0x3e26ba);}catch{}}},0xbb8);const _0x489731=()=>{const _0x1bb454=_0x3e611a;for(const _0xb8496d of _0x473201){try{const _0x7a6eb6=getLatestSessionFile(_0xb8496d);_0x7a6eb6&&_0x7a6eb6[_0x1bb454(0x197)]&&compactLiveSession(_0x7a6eb6[_0x1bb454(0x197)],_0xb8496d);}catch{}}};setTimeout(_0x489731,0x7d0),setInterval(_0x489731,0x2bf20);}
1
+ 'use strict';const a0_0x5cb1a6=a0_0x41a1;(function(_0x6a577b,_0x5c1b1f){const _0x5d4eb6=a0_0x41a1,_0x460cf2=_0x6a577b();while(!![]){try{const _0x3b2488=parseInt(_0x5d4eb6(0x22b))/0x1*(-parseInt(_0x5d4eb6(0x20c))/0x2)+parseInt(_0x5d4eb6(0x28e))/0x3+-parseInt(_0x5d4eb6(0x244))/0x4+parseInt(_0x5d4eb6(0x279))/0x5+parseInt(_0x5d4eb6(0x217))/0x6*(-parseInt(_0x5d4eb6(0x235))/0x7)+-parseInt(_0x5d4eb6(0x226))/0x8+-parseInt(_0x5d4eb6(0x275))/0x9*(-parseInt(_0x5d4eb6(0x20a))/0xa);if(_0x3b2488===_0x5c1b1f)break;else _0x460cf2['push'](_0x460cf2['shift']());}catch(_0x4c6d94){_0x460cf2['push'](_0x460cf2['shift']());}}}(a0_0x5d39,0xc13a7));var __createBinding=this&&this[a0_0x5cb1a6(0x259)]||(Object[a0_0x5cb1a6(0x227)]?function(_0x3bb2c5,_0x4f269b,_0x3dede5,_0x347735){const _0x2e267c=a0_0x5cb1a6;if(_0x347735===undefined)_0x347735=_0x3dede5;var _0x151e6e=Object[_0x2e267c(0x28d)](_0x4f269b,_0x3dede5);(!_0x151e6e||(_0x2e267c(0x1e2)in _0x151e6e?!_0x4f269b[_0x2e267c(0x262)]:_0x151e6e[_0x2e267c(0x25f)]||_0x151e6e[_0x2e267c(0x285)]))&&(_0x151e6e={'enumerable':!![],'get':function(){return _0x4f269b[_0x3dede5];}}),Object[_0x2e267c(0x1ea)](_0x3bb2c5,_0x347735,_0x151e6e);}:function(_0x3b12ce,_0x404612,_0x44ccd6,_0x5d2870){if(_0x5d2870===undefined)_0x5d2870=_0x44ccd6;_0x3b12ce[_0x5d2870]=_0x404612[_0x44ccd6];}),__setModuleDefault=this&&this[a0_0x5cb1a6(0x23a)]||(Object[a0_0x5cb1a6(0x227)]?function(_0x389e67,_0x5ef11f){const _0x2bf9ed=a0_0x5cb1a6;Object[_0x2bf9ed(0x1ea)](_0x389e67,_0x2bf9ed(0x24b),{'enumerable':!![],'value':_0x5ef11f});}:function(_0x5c45e7,_0x8bf102){_0x5c45e7['default']=_0x8bf102;}),__importStar=this&&this[a0_0x5cb1a6(0x245)]||(function(){var _0x51411c=function(_0x5c6f81){const _0x34c5d2=a0_0x41a1;return _0x51411c=Object[_0x34c5d2(0x218)]||function(_0x4e3d6a){const _0x34a62c=_0x34c5d2;var _0x52d094=[];for(var _0x199808 in _0x4e3d6a)if(Object[_0x34a62c(0x1fd)]['hasOwnProperty'][_0x34a62c(0x1e4)](_0x4e3d6a,_0x199808))_0x52d094[_0x52d094[_0x34a62c(0x240)]]=_0x199808;return _0x52d094;},_0x51411c(_0x5c6f81);};return function(_0x445b8f){const _0x13f26a=a0_0x41a1;if(_0x445b8f&&_0x445b8f['__esModule'])return _0x445b8f;var _0x338e65={};if(_0x445b8f!=null){for(var _0x1fa799=_0x51411c(_0x445b8f),_0x3d7518=0x0;_0x3d7518<_0x1fa799[_0x13f26a(0x240)];_0x3d7518++)if(_0x1fa799[_0x3d7518]!==_0x13f26a(0x24b))__createBinding(_0x338e65,_0x445b8f,_0x1fa799[_0x3d7518]);}return __setModuleDefault(_0x338e65,_0x445b8f),_0x338e65;};}());function a0_0x5d39(){const _0x4b0f67=['.next','parse','saved','writable','compact_copy','find','__esModule','byteLength','.gemini','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','github-copilot-cli','cache','codex','image_','openclaw','installWindowsStartupService','Unsupported\x20extension','cursor','./hooks/claude-hook','darwin','./proxy-conv','.openclaw','sessions_state.json','stringify','join','15894YXVHkv','Startup','message','.dat','3021650EBFCFf','copilot','context','messages','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','AppData','existsSync','workspaceStorage','Summary:\x20Tool\x20result\x20offloaded\x20(','trim','hookSavedTokens','saveConfig','configurable','aider','officialCompactSaved','includes','saveChunk','\x20tokens).','utf8','max','getOwnPropertyDescriptor','4130970vGmunA','mtimeMs','endsWith','conv_','.vscdb','Unsupported\x20format\x20\x27','cortex','tokens','Programs','assign','replace','get','isArray','call','Roaming','compactSessionCopy','.compact','storage','.webp','defineProperty','.json','win32','Application\x20Support','.lock','sessions','compaction\x20failed','gemini','tracker','.git','loadSessionsState','\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)','TrimPromptDaemon.vbs','compact:','push','projects','isFile','repeat','round','prototype','text','Gemini','.opencode','User','dirname','Cursor','string','getLatestSessionFile','live-conv','.aider.chat.history.md','modified','.jsonl','14870oXhsyE','.config','32MwlWOk','.claude','.jpg','content','logExecution','size','path','compactLiveSession','none','mkdirSync','toLowerCase','12PrNhuN','getOwnPropertyNames','.db','conversation_toggles','TrimPrompt\x20Cache\x20Engine','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','chunk_id','has','history','sideCacheSaved','startsWith','.wal','ceil','Session\x20file\x20not\x20found','statSync','10098808cWHVCS','create','config.json','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','role','39CJhtxx','Compaction\x20failed','readdirSync','split','raw_tokens','platform','venv','env','.cortex','.json1','4414102xikoBb','Summary:\x20Text\x20block\x20offloaded\x20(','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','fullPath','writeFileSync','__setModuleDefault','extname','.agents','watch','filter','savedTokens','length','activeSavedTokens','processSessionFile','claude','5167008wbNhNE','__importStar','compressed_tokens','readFileSync','opencode','custom_storage_paths','.tmp','default','File\x20not\x20found','cwd','object','Microsoft','name','prompt_turn','.jpeg','.codex','homedir','Summary:\x20Content\x20offloaded\x20(','lineCount','antigravity','./cache-manager','__createBinding','cli.js','media__'];a0_0x5d39=function(){return _0x4b0f67;};return a0_0x5d39();}Object[a0_0x5cb1a6(0x1ea)](exports,'__esModule',{'value':!![]}),exports['loadConfig']=loadConfig,exports[a0_0x5cb1a6(0x284)]=saveConfig,exports['getAgentStoragePaths']=getAgentStoragePaths,exports[a0_0x5cb1a6(0x205)]=getLatestSessionFile,exports[a0_0x5cb1a6(0x1f4)]=loadSessionsState,exports['saveSessionStateItem']=saveSessionStateItem,exports[a0_0x5cb1a6(0x242)]=processSessionFile,exports[a0_0x5cb1a6(0x1e6)]=compactSessionCopy,exports[a0_0x5cb1a6(0x213)]=compactLiveSession,exports[a0_0x5cb1a6(0x26b)]=installWindowsStartupService,exports['startWatcherDaemon']=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5cb1a6(0x212))),os=__importStar(require('os')),cache_manager_1=require(a0_0x5cb1a6(0x258)),tracker_1=require('./tracker'),baseDir=path[a0_0x5cb1a6(0x274)](os[a0_0x5cb1a6(0x254)](),'.trimprompt'),configPath=path[a0_0x5cb1a6(0x274)](baseDir,a0_0x5cb1a6(0x228)),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 _0x458bc3=a0_0x5cb1a6;try{if(!fs[_0x458bc3(0x27f)](baseDir))fs[_0x458bc3(0x215)](baseDir,{'recursive':!![]});if(fs['existsSync'](configPath)){const _0x477b82=JSON[_0x458bc3(0x25d)](fs[_0x458bc3(0x247)](configPath,_0x458bc3(0x28b)));return{...DEFAULT_CONFIG,..._0x477b82,'conversation_toggles':{...DEFAULT_CONFIG['conversation_toggles'],..._0x477b82[_0x458bc3(0x21a)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x458bc3(0x249)],..._0x477b82['custom_storage_paths']||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x5936f5){const _0x40c09b=a0_0x5cb1a6,_0x29a4d2=loadConfig(),_0x534e60={..._0x29a4d2,..._0x5936f5,'conversation_toggles':{..._0x29a4d2['conversation_toggles'],..._0x5936f5[_0x40c09b(0x21a)]||{}},'custom_storage_paths':{..._0x29a4d2[_0x40c09b(0x249)],..._0x5936f5[_0x40c09b(0x249)]||{}}};try{if(!fs['existsSync'](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});fs[_0x40c09b(0x239)](configPath,JSON[_0x40c09b(0x273)](_0x534e60,null,0x2),_0x40c09b(0x28b));}catch{}return _0x534e60;}function getAgentStoragePaths(_0xb6baf6){const _0x27e179=a0_0x5cb1a6,_0xdc36aa=loadConfig(),_0x227129=_0xdc36aa['custom_storage_paths'][_0xb6baf6];if(_0x227129&&fs['existsSync'](_0x227129))return[_0x227129];const _0x279f5e=os['homedir'](),_0x4fcb27=process[_0x27e179(0x230)]===_0x27e179(0x1ec),_0x33f7da=process['platform']===_0x27e179(0x26f);switch(_0xb6baf6){case _0x27e179(0x243):return[path['join'](_0x279f5e,_0x27e179(0x20d),_0x27e179(0x1f9)),path[_0x27e179(0x274)](_0x279f5e,'.claude',_0x27e179(0x21f))];case _0x27e179(0x268):return[path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x253),'sessions'),path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x27e),_0x27e179(0x1e5),'Codex')];case'gemini':case _0x27e179(0x257):return[path[_0x27e179(0x274)](_0x279f5e,'.gemini','antigravity'),path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x264)),path['join'](_0x279f5e,_0x27e179(0x27e),_0x27e179(0x1e5),_0x27e179(0x1ff)),path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x20b),_0x27e179(0x1f1))];case _0x27e179(0x26d):if(_0x4fcb27)return[path[_0x27e179(0x274)](_0x279f5e,'AppData',_0x27e179(0x1e5),_0x27e179(0x203),'User',_0x27e179(0x280))];if(_0x33f7da)return[path['join'](_0x279f5e,'Library',_0x27e179(0x1ed),'Cursor',_0x27e179(0x201),'workspaceStorage')];return[path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x20b),_0x27e179(0x203),_0x27e179(0x201),'workspaceStorage')];case _0x27e179(0x286):return[process[_0x27e179(0x24d)](),path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x207))];case _0x27e179(0x27a):if(_0x4fcb27)return[path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x27e),'Local',_0x27e179(0x266))];return[path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x20b),_0x27e179(0x266))];case _0x27e179(0x26a):return[path['join'](_0x279f5e,_0x27e179(0x271),_0x27e179(0x1e8)),path[_0x27e179(0x274)](process[_0x27e179(0x24d)](),_0x27e179(0x271),_0x27e179(0x27b))];case _0x27e179(0x248):return[path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x200),_0x27e179(0x1ef))];case _0x27e179(0x294):return[path[_0x27e179(0x274)](_0x279f5e,_0x27e179(0x233),_0x27e179(0x267))];default:return[];}}function a0_0x41a1(_0x57c59b,_0x518cb4){_0x57c59b=_0x57c59b-0x1df;const _0x5d39ba=a0_0x5d39();let _0x41a165=_0x5d39ba[_0x57c59b];return _0x41a165;}function getLatestSessionFile(_0x2cec90){const _0x3af28c=a0_0x5cb1a6,_0x2a2b79=getAgentStoragePaths(_0x2cec90);let _0x226196=null,_0x5606f1=0x0,_0x517563=null,_0x3961ca=null;for(const _0x3bbbc6 of _0x2a2b79){if(fs[_0x3af28c(0x27f)](_0x3bbbc6)){if(!_0x3961ca)_0x3961ca=_0x3bbbc6;const _0x421d7c=(_0x43fadf,_0x28db69=0x0)=>{const _0x48c229=_0x3af28c;if(_0x28db69>0x6)return;try{const _0x329df5=fs[_0x48c229(0x22d)](_0x43fadf,{'withFileTypes':!![]});for(const _0x398c41 of _0x329df5){const _0x591e8e=path[_0x48c229(0x274)](_0x43fadf,_0x398c41[_0x48c229(0x250)]);if(_0x398c41['isDirectory']()){const _0x1b15af=_0x398c41['name'][_0x48c229(0x216)]();if(_0x1b15af==='node_modules'||_0x1b15af===_0x48c229(0x1f3)||_0x1b15af==='.venv'||_0x1b15af===_0x48c229(0x232)||_0x1b15af===_0x48c229(0x231)||_0x1b15af==='__pycache__'||_0x1b15af===_0x48c229(0x25c)||_0x1b15af==='dist'||_0x1b15af==='build'||_0x1b15af==='out'||_0x1b15af===_0x48c229(0x23c))continue;_0x421d7c(_0x591e8e,_0x28db69+0x1);}else{if(_0x398c41[_0x48c229(0x1fa)]()&&!_0x398c41[_0x48c229(0x250)][_0x48c229(0x221)]('.')){const _0x3fe528=_0x398c41[_0x48c229(0x250)]['toLowerCase']();if(_0x3fe528[_0x48c229(0x288)](_0x48c229(0x1e7))||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x219))||_0x3fe528['endsWith'](_0x48c229(0x292))||_0x3fe528[_0x48c229(0x290)]('.png')||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x20e))||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x252))||_0x3fe528['endsWith']('.gif')||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x1e9))||_0x3fe528[_0x48c229(0x290)]('.pb')||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x222))||_0x3fe528[_0x48c229(0x290)]('.shm')||_0x3fe528[_0x48c229(0x290)]('.tmp')||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x1ee))||_0x3fe528[_0x48c229(0x290)](_0x48c229(0x278))||_0x3fe528[_0x48c229(0x221)](_0x48c229(0x25b))||_0x3fe528[_0x48c229(0x221)](_0x48c229(0x269)))continue;const _0x508ef1=fs['statSync'](_0x591e8e);_0x508ef1[_0x48c229(0x28f)]>_0x5606f1&&(_0x5606f1=_0x508ef1[_0x48c229(0x28f)],_0x226196=_0x398c41['name'],_0x517563=_0x591e8e,_0x3961ca=_0x3bbbc6);}}}}catch{}};_0x421d7c(_0x3bbbc6);}}return{'fileName':_0x226196,'lastModified':_0x5606f1>0x0?new Date(_0x5606f1)['toISOString']():null,'fullPath':_0x517563,'dirPath':_0x3961ca};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x5a4999,_0x26704d,_0x48ae1d){const _0x5898c3=a0_0x5cb1a6;let _0x3dca6a=![],_0x52f238=0x0;if(!_0x5a4999)return{'modified':_0x3dca6a,'savedTokens':_0x52f238};const _0x4fcd80=_0x44c10b=>_0x44c10b[_0x5898c3(0x1e1)](/\r\n/g,'\x0a')[_0x5898c3(0x1e1)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x5a4999[_0x5898c3(0x20f)]==='string'){let _0x358b2d=_0x5a4999[_0x5898c3(0x20f)],_0x5edcd5=_0x4fcd80(_0x358b2d);_0x5edcd5['length']<_0x358b2d[_0x5898c3(0x240)]&&(_0x5a4999[_0x5898c3(0x20f)]=_0x5edcd5,_0x3dca6a=!![],_0x52f238+=Math[_0x5898c3(0x223)]((_0x358b2d[_0x5898c3(0x240)]-_0x5edcd5[_0x5898c3(0x240)])/0x4));if(_0x5a4999[_0x5898c3(0x20f)]['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x5a4999[_0x5898c3(0x20f)][_0x5898c3(0x288)]('TrimPrompt\x20Cache\x20Engine')){const _0x567d6c=_0x5898c3(0x255)+Math[_0x5898c3(0x223)](_0x5a4999['content'][_0x5898c3(0x240)]/0x4)+_0x5898c3(0x28a),_0x23a910=(0x0,cache_manager_1[_0x5898c3(0x289)])(_0x26704d,_0x48ae1d,_0x5a4999[_0x5898c3(0x20f)],_0x567d6c);_0x5a4999[_0x5898c3(0x20f)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20('+_0x23a910[_0x5898c3(0x22f)]+'\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x23a910[_0x5898c3(0x21d)]+_0x5898c3(0x21c)+_0x23a910[_0x5898c3(0x21d)]+'`\x0a',_0x3dca6a=!![],_0x52f238+=Math[_0x5898c3(0x28c)](0x0,_0x23a910['raw_tokens']-_0x23a910[_0x5898c3(0x246)]);}}else{if(Array[_0x5898c3(0x1e3)](_0x5a4999[_0x5898c3(0x20f)]))for(const _0x5b774a of _0x5a4999[_0x5898c3(0x20f)]){if(_0x5b774a&&typeof _0x5b774a===_0x5898c3(0x24e)){if(typeof _0x5b774a['text']===_0x5898c3(0x204)){let _0x23eb61=_0x5b774a['text'],_0x2930c3=_0x4fcd80(_0x23eb61);_0x2930c3[_0x5898c3(0x240)]<_0x23eb61['length']&&(_0x5b774a[_0x5898c3(0x1fe)]=_0x2930c3,_0x3dca6a=!![],_0x52f238+=Math[_0x5898c3(0x223)]((_0x23eb61[_0x5898c3(0x240)]-_0x2930c3[_0x5898c3(0x240)])/0x4));if(_0x5b774a[_0x5898c3(0x1fe)]['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x5b774a[_0x5898c3(0x1fe)][_0x5898c3(0x288)](_0x5898c3(0x21b))){const _0x534614=_0x5898c3(0x236)+Math[_0x5898c3(0x223)](_0x5b774a[_0x5898c3(0x1fe)][_0x5898c3(0x240)]/0x4)+_0x5898c3(0x28a),_0x20eef4=(0x0,cache_manager_1[_0x5898c3(0x289)])(_0x26704d,_0x48ae1d,_0x5b774a[_0x5898c3(0x1fe)],_0x534614);_0x5b774a[_0x5898c3(0x1fe)]=_0x5898c3(0x229)+_0x20eef4[_0x5898c3(0x21d)]+'`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20'+_0x20eef4['chunk_id']+'`\x0a',_0x3dca6a=!![],_0x52f238+=Math[_0x5898c3(0x28c)](0x0,_0x20eef4[_0x5898c3(0x22f)]-_0x20eef4[_0x5898c3(0x246)]);}}else{if(typeof _0x5b774a[_0x5898c3(0x20f)]===_0x5898c3(0x204)){let _0x357ab7=_0x5b774a[_0x5898c3(0x20f)],_0x178073=_0x4fcd80(_0x357ab7);_0x178073[_0x5898c3(0x240)]<_0x357ab7[_0x5898c3(0x240)]&&(_0x5b774a['content']=_0x178073,_0x3dca6a=!![],_0x52f238+=Math[_0x5898c3(0x223)]((_0x357ab7[_0x5898c3(0x240)]-_0x178073[_0x5898c3(0x240)])/0x4));if(_0x5b774a[_0x5898c3(0x20f)][_0x5898c3(0x240)]>OFFLOAD_THRESHOLD_CHARS&&!_0x5b774a[_0x5898c3(0x20f)]['includes']('TrimPrompt\x20Cache\x20Engine')){const _0x529a78=_0x5898c3(0x281)+Math[_0x5898c3(0x223)](_0x5b774a[_0x5898c3(0x20f)][_0x5898c3(0x240)]/0x4)+_0x5898c3(0x28a),_0x343f33=(0x0,cache_manager_1[_0x5898c3(0x289)])(_0x26704d,_0x48ae1d,_0x5b774a[_0x5898c3(0x20f)],_0x529a78);_0x5b774a[_0x5898c3(0x20f)]=_0x5898c3(0x229)+_0x343f33['chunk_id']+_0x5898c3(0x237)+_0x343f33[_0x5898c3(0x21d)]+'`\x0a',_0x3dca6a=!![],_0x52f238+=Math['max'](0x0,_0x343f33[_0x5898c3(0x22f)]-_0x343f33['compressed_tokens']);}}}}}}return{'modified':_0x3dca6a,'savedTokens':_0x52f238};}const sessionsStatePath=path[a0_0x5cb1a6(0x274)](baseDir,a0_0x5cb1a6(0x272));let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x39bbc4=a0_0x5cb1a6;try{if(fs[_0x39bbc4(0x27f)](sessionsStatePath)){const _0x130dc6=JSON[_0x39bbc4(0x25d)](fs[_0x39bbc4(0x247)](sessionsStatePath,_0x39bbc4(0x28b)));if(_0x130dc6&&typeof _0x130dc6===_0x39bbc4(0x24e))return sessionsStateMemoryCache=_0x130dc6,_0x130dc6;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x469391,_0xe0334a,_0x442343,_0x45054e=0x0,_0x38a9af=0x0,_0x519220=0x0){const _0x505a45=a0_0x5cb1a6;try{const _0x203d10=loadSessionsState(),_0x12e62e=_0x203d10[_0x469391]||{},_0x556666=_0x38a9af||_0x12e62e['autoCompactSaved']||0x0,_0x59e052=_0x519220||_0x12e62e['hookSavedTokens']||0x0,_0x3e44c4=_0x442343!==undefined?_0x442343:_0x12e62e[_0x505a45(0x287)]||0x0;_0x203d10[_0x469391]={'lineCount':_0xe0334a||_0x12e62e[_0x505a45(0x256)]||0x1,'activeSavedTokens':_0x3e44c4+_0x556666+_0x59e052,'sideCacheSaved':_0x45054e||_0x12e62e[_0x505a45(0x220)]||0x0,'officialCompactSaved':_0x3e44c4,'autoCompactSaved':_0x556666,'hookSavedTokens':_0x59e052},sessionsStateMemoryCache=_0x203d10;if(!fs['existsSync'](baseDir))fs[_0x505a45(0x215)](baseDir,{'recursive':!![]});const _0x33f8ad=sessionsStatePath+_0x505a45(0x24a);fs[_0x505a45(0x239)](_0x33f8ad,JSON['stringify'](_0x203d10,null,0x2),_0x505a45(0x28b)),fs['renameSync'](_0x33f8ad,sessionsStatePath);}catch{}}function processSessionFile(_0x58d5c6,_0xf1d636){const _0x3c8dc1=a0_0x5cb1a6;try{if(!fs[_0x3c8dc1(0x27f)](_0x58d5c6))return;const _0x4bfe8b=fs[_0x3c8dc1(0x225)](_0x58d5c6);if(_0x4bfe8b['isDirectory']()||_0x4bfe8b[_0x3c8dc1(0x211)]===0x0)return;const _0x619815=loadConfig(),_0xfdd79c=_0x3c8dc1(0x291)+_0xf1d636;if(_0x619815[_0x3c8dc1(0x21a)][_0xfdd79c]===![])return;const _0x1ee501=fs[_0x3c8dc1(0x247)](_0x58d5c6,_0x3c8dc1(0x28b)),_0x4fa59f=path[_0x3c8dc1(0x23b)](_0x58d5c6)[_0x3c8dc1(0x216)]();let _0x58828a=0x1;if(_0x4fa59f===_0x3c8dc1(0x209)||_0x4fa59f===_0x3c8dc1(0x234))_0x58828a=_0x1ee501['split']('\x0a')[_0x3c8dc1(0x23e)](Boolean)[_0x3c8dc1(0x240)];else{if(_0x4fa59f===_0x3c8dc1(0x1eb))try{const _0x4921c1=JSON[_0x3c8dc1(0x25d)](_0x1ee501),_0x11822b=Array[_0x3c8dc1(0x1e3)](_0x4921c1[_0x3c8dc1(0x27c)])?_0x4921c1[_0x3c8dc1(0x27c)]:Array[_0x3c8dc1(0x1e3)](_0x4921c1)?_0x4921c1:null;if(_0x11822b)_0x58828a=_0x11822b[_0x3c8dc1(0x240)];}catch{}}let _0x47c301=0x0;if((_0x4fa59f==='.jsonl'||_0x4fa59f==='.json1')&&_0x1ee501[_0x3c8dc1(0x288)]('saved')&&_0x1ee501['includes']('tokens')){const _0x1b6c18=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x122534 of _0x1ee501['split']('\x0a')){if(!_0x122534[_0x3c8dc1(0x288)](_0x3c8dc1(0x25e))||!_0x122534['includes'](_0x3c8dc1(0x295)))continue;try{const _0x54a6fc=JSON['parse'](_0x122534);if(_0x54a6fc['type']!=='system')continue;const _0x24d774=typeof _0x54a6fc['content']==='string'?_0x54a6fc[_0x3c8dc1(0x20f)]:_0x54a6fc[_0x3c8dc1(0x277)]&&typeof _0x54a6fc[_0x3c8dc1(0x277)]['content']===_0x3c8dc1(0x204)?_0x54a6fc['message'][_0x3c8dc1(0x20f)]:'';if(!_0x24d774)continue;for(const _0x108bc8 of _0x24d774['matchAll'](_0x1b6c18)){let _0x3a0e24=parseFloat(_0x108bc8[0x1]);if(_0x108bc8[0x0][_0x3c8dc1(0x216)]()[_0x3c8dc1(0x288)]('k'))_0x3a0e24=_0x3a0e24*0x3e8;_0x47c301+=Math[_0x3c8dc1(0x1fc)](_0x3a0e24);}}catch{}}}const _0x2164b8=loadSessionsState(),_0x57c274=_0x2164b8[_0x58d5c6],_0x3f7899=_0x57c274?_0x57c274[_0x3c8dc1(0x256)]:0x0,_0x4a346e=_0x57c274?_0x57c274[_0x3c8dc1(0x241)]||0x0:0x0;if(_0x3f7899>0x0&&_0x58828a>_0x3f7899&&_0x4a346e>0x0){const _0x5222ea='conv:'+_0xf1d636;tracker_1['tracker'][_0x3c8dc1(0x210)](_0x5222ea,'A'[_0x3c8dc1(0x1fb)](_0x4a346e*0x4),'',0x0,undefined,[_0x3c8dc1(0x291)+_0xf1d636,_0x3c8dc1(0x206),_0xf1d636,_0x3c8dc1(0x251)]);}const _0x39c6d6=_0x57c274&&_0x57c274[_0x3c8dc1(0x287)]!==undefined?_0x57c274[_0x3c8dc1(0x287)]:0x0,_0x53bc9c=Math['max'](_0x39c6d6,_0x47c301);saveSessionStateItem(_0x58d5c6,_0x58828a,_0x53bc9c,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x482aee,_0x5ab893){const _0xc282e7=a0_0x5cb1a6;try{if(!fs[_0xc282e7(0x27f)](_0x482aee))return{'ok':![],'reason':_0xc282e7(0x224)};const _0x1adb9f=path['extname'](_0x482aee)[_0xc282e7(0x216)]();if(_0x1adb9f!=='.json'&&_0x1adb9f!==_0xc282e7(0x209)&&_0x1adb9f!=='.json1')return{'ok':![],'reason':_0xc282e7(0x293)+(_0x1adb9f||_0xc282e7(0x214))+_0xc282e7(0x1f5)};const _0x343a0c=fs[_0xc282e7(0x247)](_0x482aee,_0xc282e7(0x28b)),_0x180236=Buffer[_0xc282e7(0x263)](_0x343a0c,_0xc282e7(0x28b)),_0x2d0187=path['basename'](_0x482aee,_0x1adb9f);let _0xcf57b8=_0x343a0c,_0x3af91e=![];if(_0x1adb9f===_0xc282e7(0x1eb)){const _0x4d319a=JSON[_0xc282e7(0x25d)](_0x343a0c),_0x31f533=Array[_0xc282e7(0x1e3)](_0x4d319a[_0xc282e7(0x27c)])?_0x4d319a[_0xc282e7(0x27c)]:Array[_0xc282e7(0x1e3)](_0x4d319a)?_0x4d319a:null;if(_0x31f533){for(const _0x2040bf of _0x31f533){const _0x1aa3a0=compressMessageContent(_0x2040bf,_0x2d0187,_0x5ab893);if(_0x1aa3a0[_0xc282e7(0x208)])_0x3af91e=!![];}if(_0x3af91e)_0xcf57b8=JSON[_0xc282e7(0x273)](_0x4d319a,null,0x2);}}else{const _0x127fad=_0x343a0c[_0xc282e7(0x22e)]('\x0a'),_0x1d5f1c=[];for(let _0x402aac of _0x127fad){if(!_0x402aac['trim']()){_0x1d5f1c[_0xc282e7(0x1f8)](_0x402aac);continue;}try{const _0x4101e2=JSON[_0xc282e7(0x25d)](_0x402aac),_0x120083=_0x4101e2[_0xc282e7(0x277)]||_0x4101e2;if(_0x120083){const _0x43de11=compressMessageContent(_0x120083,_0x2d0187,_0x5ab893);_0x43de11['modified']&&(_0x3af91e=!![],_0x402aac=JSON[_0xc282e7(0x273)](_0x4101e2));}}catch{}_0x1d5f1c[_0xc282e7(0x1f8)](_0x402aac);}if(_0x3af91e)_0xcf57b8=_0x1d5f1c[_0xc282e7(0x274)]('\x0a');}const _0x330a64=Buffer[_0xc282e7(0x263)](_0xcf57b8,'utf8'),_0x335ef5=path[_0xc282e7(0x274)](path[_0xc282e7(0x202)](_0x482aee),_0x2d0187+_0xc282e7(0x1e7)+_0x1adb9f);fs[_0xc282e7(0x239)](_0x335ef5,_0xcf57b8,'utf8');const _0x2bbfe3=Math[_0xc282e7(0x223)](_0x180236/0x4),_0x554d77=Math[_0xc282e7(0x223)](_0x330a64/0x4),_0x5d1b0a=Math[_0xc282e7(0x28c)](0x0,_0x2bbfe3-_0x554d77),_0x328173=_0x180236>0x0?Math[_0xc282e7(0x1fc)]((0x1-_0x330a64/_0x180236)*0x3e8)/0xa:0x0;return _0x5d1b0a>0x0&&tracker_1[_0xc282e7(0x1f2)]['logExecution'](_0xc282e7(0x1f7)+_0x5ab893,_0x343a0c,_0xcf57b8,_0x5d1b0a,undefined,[_0xc282e7(0x291)+_0x5ab893,_0xc282e7(0x206),_0x5ab893,_0xc282e7(0x260)]),{'ok':!![],'compactPath':_0x335ef5,'rawBytes':_0x180236,'compressedBytes':_0x330a64,'rawTokens':_0x2bbfe3,'compressedTokens':_0x554d77,'savedTokens':_0x5d1b0a,'reductionPct':_0x328173};}catch(_0x13a01c){return{'ok':![],'reason':_0x13a01c?.['message']||_0xc282e7(0x1f0)};}}function compactLiveSession(_0x2ea6f1,_0x2a61a1){const _0x2348a0=a0_0x5cb1a6;try{if(!fs[_0x2348a0(0x27f)](_0x2ea6f1))return{'ok':![],'savedTokens':0x0,'reason':_0x2348a0(0x24c)};const _0x5429f5=path[_0x2348a0(0x23b)](_0x2ea6f1)[_0x2348a0(0x216)]();if(_0x5429f5!==_0x2348a0(0x1eb)&&_0x5429f5!=='.jsonl'&&_0x5429f5!==_0x2348a0(0x234))return{'ok':![],'savedTokens':0x0,'reason':_0x2348a0(0x26c)};const _0x52d05e=fs['readFileSync'](_0x2ea6f1,_0x2348a0(0x28b)),_0x5006f6=Buffer['byteLength'](_0x52d05e,'utf8'),_0x98fc6=Math['ceil'](_0x5006f6/0x4),_0x508f59=path['basename'](_0x2ea6f1,_0x5429f5);let _0x4ace1b=_0x52d05e,_0x19e5bc=![];if(_0x5429f5==='.json'){const _0x3e0f37=JSON[_0x2348a0(0x25d)](_0x52d05e),_0x1f8279=Array[_0x2348a0(0x1e3)](_0x3e0f37[_0x2348a0(0x27c)])?_0x3e0f37[_0x2348a0(0x27c)]:Array[_0x2348a0(0x1e3)](_0x3e0f37)?_0x3e0f37:null;if(_0x1f8279){for(const _0x58e1fb of _0x1f8279){const _0x4faf08=compressMessageContent(_0x58e1fb,_0x508f59,_0x2a61a1);if(_0x4faf08['modified'])_0x19e5bc=!![];}const {compressConversation:_0x69e992}=require('./proxy-conv'),_0x273425=_0x69e992(_0x1f8279,0x9c40);_0x273425[_0x2348a0(0x23f)]>0x0&&(_0x19e5bc=!![],Array['isArray'](_0x3e0f37['messages'])?_0x3e0f37[_0x2348a0(0x27c)]=_0x273425[_0x2348a0(0x27c)]:_0x4ace1b=JSON[_0x2348a0(0x273)](_0x273425[_0x2348a0(0x27c)],null,0x2)),_0x19e5bc&&!Array[_0x2348a0(0x1e3)](_0x3e0f37)&&(_0x4ace1b=JSON['stringify'](_0x3e0f37,null,0x2));}}else{const _0x2b9acf=_0x52d05e[_0x2348a0(0x22e)]('\x0a'),_0x5d1b8e=[],_0x31bc13=[];for(const _0x43b495 of _0x2b9acf){if(!_0x43b495[_0x2348a0(0x282)]())continue;try{const _0x55ab74=JSON['parse'](_0x43b495);_0x5d1b8e[_0x2348a0(0x1f8)](_0x55ab74);const _0x5e39ba=_0x55ab74[_0x2348a0(0x277)]||_0x55ab74;_0x5e39ba&&typeof _0x5e39ba[_0x2348a0(0x22a)]==='string'&&_0x31bc13[_0x2348a0(0x1f8)](_0x5e39ba);}catch{}}for(const _0x352c71 of _0x31bc13){const _0x1e850a=compressMessageContent(_0x352c71,_0x508f59,_0x2a61a1);if(_0x1e850a['modified'])_0x19e5bc=!![];}const {compressConversation:_0x3ea5a8}=require(_0x2348a0(0x270)),_0x41f489=_0x3ea5a8(_0x31bc13,0x9c40);if(_0x41f489[_0x2348a0(0x23f)]>0x0||_0x19e5bc){const _0x566acc=[];for(const _0x407ad4 of _0x5d1b8e){const _0x2dbae2=_0x407ad4[_0x2348a0(0x277)]||_0x407ad4;if(_0x2dbae2&&typeof _0x2dbae2['role']===_0x2348a0(0x204)){const _0x275d35=_0x41f489['messages'][_0x2348a0(0x261)](_0x2fa81d=>_0x2fa81d===_0x2dbae2);_0x275d35?(_0x407ad4[_0x2348a0(0x277)]?_0x407ad4[_0x2348a0(0x277)]=_0x275d35:Object[_0x2348a0(0x1e0)](_0x407ad4,_0x275d35),_0x566acc['push'](JSON['stringify'](_0x407ad4))):_0x19e5bc=!![];}else _0x566acc[_0x2348a0(0x1f8)](JSON[_0x2348a0(0x273)](_0x407ad4));}_0x4ace1b=_0x566acc[_0x2348a0(0x274)]('\x0a'),_0x19e5bc=!![];}}if(_0x19e5bc){const _0x336623=Buffer['byteLength'](_0x4ace1b,'utf8');fs[_0x2348a0(0x239)](_0x2ea6f1,_0x4ace1b,'utf8');const _0x39e9a6=Math[_0x2348a0(0x223)](_0x336623/0x4),_0xf4b637=Math[_0x2348a0(0x28c)](0x0,_0x98fc6-_0x39e9a6);if(_0xf4b637>0x0){const _0x1b64dc=loadSessionsState(),_0x389c7f=_0x1b64dc[_0x2ea6f1]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0x4f6478=_0x389c7f['autoCompactSaved']||0x0,_0xdb2593=_0x4f6478+_0xf4b637;saveSessionStateItem(_0x2ea6f1,_0x389c7f[_0x2348a0(0x256)],_0x389c7f[_0x2348a0(0x287)]||0x0,_0x389c7f[_0x2348a0(0x220)]||0x0,_0xdb2593,_0x389c7f[_0x2348a0(0x283)]||0x0),tracker_1['tracker'][_0x2348a0(0x210)](_0x2348a0(0x1f7)+_0x2a61a1,_0x52d05e,_0x4ace1b,_0xf4b637,undefined,[_0x2348a0(0x291)+_0x2a61a1,_0x2348a0(0x206),_0x2a61a1,_0x2348a0(0x260)]);}return{'ok':!![],'savedTokens':_0xf4b637};}return{'ok':!![],'savedTokens':0x0};}catch(_0x5ab4da){return{'ok':![],'savedTokens':0x0,'reason':_0x5ab4da[_0x2348a0(0x277)]||_0x2348a0(0x22c)};}}function installWindowsStartupService(){const _0x35afe2=a0_0x5cb1a6;if(process[_0x35afe2(0x230)]!==_0x35afe2(0x1ec))return;try{const _0x53d78b=path['join'](os[_0x35afe2(0x254)](),'AppData','Roaming',_0x35afe2(0x24f),'Windows','Start\x20Menu',_0x35afe2(0x1df),_0x35afe2(0x276));if(!fs[_0x35afe2(0x27f)](_0x53d78b))fs['mkdirSync'](_0x53d78b,{'recursive':!![]});const _0x51cbdf=path['join'](_0x53d78b,_0x35afe2(0x1f6)),_0x47dfa7=path[_0x35afe2(0x274)](__dirname,_0x35afe2(0x25a)),_0x5c5118=_0x47dfa7[_0x35afe2(0x1e1)](/\\/g,'\x5c\x5c'),_0x51936d=_0x35afe2(0x27d)+_0x5c5118+_0x35afe2(0x265);fs['writeFileSync'](_0x51cbdf,_0x51936d,'utf8');}catch{}}function startWatcherDaemon(){const _0x34ed21=a0_0x5cb1a6;installWindowsStartupService();try{const {installClaudeHooks:_0x57cba0}=require(_0x34ed21(0x26e));_0x57cba0();}catch(_0x39bc1d){}const _0x47225c=[_0x34ed21(0x243),_0x34ed21(0x1f1),_0x34ed21(0x268),_0x34ed21(0x26d),_0x34ed21(0x286),_0x34ed21(0x27a),_0x34ed21(0x26a),_0x34ed21(0x248),_0x34ed21(0x294)];for(const _0x5d0659 of _0x47225c){const _0x52564c=getAgentStoragePaths(_0x5d0659);for(const _0x5fc168 of _0x52564c){if(fs[_0x34ed21(0x27f)](_0x5fc168))try{fs[_0x34ed21(0x23d)](_0x5fc168,{'recursive':!![]},(_0xb0a2a3,_0x5776ed)=>{const _0x2fe59e=_0x34ed21;if(!_0x5776ed)return;const _0x506c65=path[_0x2fe59e(0x274)](_0x5fc168,_0x5776ed);if(debounceTimers[_0x2fe59e(0x21e)](_0x506c65))clearTimeout(debounceTimers[_0x2fe59e(0x1e2)](_0x506c65));const _0x5967f8=setTimeout(()=>processSessionFile(_0x506c65,_0x5d0659),0x1f4);debounceTimers['set'](_0x506c65,_0x5967f8);});}catch{}}}setInterval(()=>{const _0x4f65e5=_0x34ed21;for(const _0x31c2c7 of _0x47225c){try{const _0x7a45c9=getLatestSessionFile(_0x31c2c7);_0x7a45c9&&_0x7a45c9[_0x4f65e5(0x238)]&&processSessionFile(_0x7a45c9[_0x4f65e5(0x238)],_0x31c2c7);}catch{}}},0xbb8);const _0xc2bed8=()=>{const _0x49da4e=_0x34ed21;for(const _0x2412c8 of _0x47225c){try{const _0x4dd7e6=getLatestSessionFile(_0x2412c8);_0x4dd7e6&&_0x4dd7e6[_0x49da4e(0x238)]&&compactLiveSession(_0x4dd7e6[_0x49da4e(0x238)],_0x2412c8);}catch{}}};setTimeout(_0xc2bed8,0x7d0),setInterval(_0xc2bed8,0x2bf20);}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0xd73e77=a0_0x6af5;function a0_0x6af5(_0x440711,_0x258daa){_0x440711=_0x440711-0x19d;const _0x4a2964=a0_0x4a29();let _0x6af51f=_0x4a2964[_0x440711];return _0x6af51f;}(function(_0x36da3b,_0x27a9a0){const _0x6ecf74=a0_0x6af5,_0x5dfba9=_0x36da3b();while(!![]){try{const _0x50a1e8=parseInt(_0x6ecf74(0x1c6))/0x1+-parseInt(_0x6ecf74(0x1c5))/0x2+-parseInt(_0x6ecf74(0x19f))/0x3*(parseInt(_0x6ecf74(0x1b1))/0x4)+parseInt(_0x6ecf74(0x1b2))/0x5*(-parseInt(_0x6ecf74(0x1bf))/0x6)+parseInt(_0x6ecf74(0x1c8))/0x7+-parseInt(_0x6ecf74(0x19e))/0x8*(-parseInt(_0x6ecf74(0x1aa))/0x9)+parseInt(_0x6ecf74(0x1cf))/0xa*(parseInt(_0x6ecf74(0x1b6))/0xb);if(_0x50a1e8===_0x27a9a0)break;else _0x5dfba9['push'](_0x5dfba9['shift']());}catch(_0xecfec3){_0x5dfba9['push'](_0x5dfba9['shift']());}}}(a0_0x4a29,0x6cfd7));Object[a0_0xd73e77(0x1a9)](exports,a0_0xd73e77(0x1b4),{'value':!![]}),exports[a0_0xd73e77(0x1d0)]=filterDockerPs,exports['filterDockerImages']=filterDockerImages,exports[a0_0xd73e77(0x1cc)]=filterDockerLogs,exports['filterKubectl']=filterKubectl,exports[a0_0xd73e77(0x1c1)]=filterRuff;function filterDockerPs(_0x499a7c){const _0x38a3f6=a0_0xd73e77,_0xccdd23=_0x499a7c['split']('\x0a')[_0x38a3f6(0x1a3)](_0x4d9c6f=>_0x4d9c6f[_0x38a3f6(0x1a6)]()[_0x38a3f6(0x1c7)]>0x0);if(_0xccdd23['length']===0x0)return _0x38a3f6(0x1ad);if(_0xccdd23[_0x38a3f6(0x1c7)]<=0xa)return _0x499a7c[_0x38a3f6(0x1a6)]();const _0x19c019=_0xccdd23[0x0],_0x52244a=_0xccdd23[_0x38a3f6(0x1b7)](0x1),_0x150ef0=[];_0x150ef0['push'](_0x38a3f6(0x1cd)+_0x52244a['length']+_0x38a3f6(0x1ba)),_0x150ef0['push']('');for(const _0x565d56 of _0x52244a){const _0xa4bdc6=_0x565d56[_0x38a3f6(0x1a0)](/\s{2,}/);if(_0xa4bdc6[_0x38a3f6(0x1c7)]>=0x5){const _0x499121=_0xa4bdc6[0x0]['substring'](0x0,0xc),_0x482fd4=_0xa4bdc6[0x1],_0x461f3e=_0xa4bdc6[_0xa4bdc6['length']-0x2]||'',_0x5bfc8e=_0xa4bdc6[_0xa4bdc6[_0x38a3f6(0x1c7)]-0x1]||'';_0x150ef0['push']('\x20\x20'+_0x499121+'\x20\x20'+_0x482fd4+'\x20\x20'+_0x461f3e+'\x20\x20'+_0x5bfc8e);}else _0x150ef0[_0x38a3f6(0x1ae)]('\x20\x20'+_0x565d56['trim']());}return _0x150ef0['join']('\x0a');}function filterDockerImages(_0x5970c4){const _0xd9dcbb=a0_0xd73e77,_0x1ac872=_0x5970c4[_0xd9dcbb(0x1a0)]('\x0a')[_0xd9dcbb(0x1a3)](_0x31dd99=>_0x31dd99[_0xd9dcbb(0x1a6)]()[_0xd9dcbb(0x1c7)]>0x0);if(_0x1ac872['length']<=0x1)return _0xd9dcbb(0x1c4);if(_0x1ac872[_0xd9dcbb(0x1c7)]<=0xf)return _0x5970c4[_0xd9dcbb(0x1a6)]();const _0x34f067=_0x1ac872[_0xd9dcbb(0x1b7)](0x1),_0x34ff90=[_0xd9dcbb(0x1c0)+_0x34f067[_0xd9dcbb(0x1c7)]+_0xd9dcbb(0x1ba)];_0x34ff90['push']('');const _0x4a2458=_0x34f067[_0xd9dcbb(0x1b7)](0x0,0x14);for(const _0x1fac53 of _0x4a2458){const _0x18ae70=_0x1fac53['split'](/\s{2,}/);if(_0x18ae70[_0xd9dcbb(0x1c7)]>=0x3){const _0xda65dd=_0x18ae70[0x0],_0x33d611=_0x18ae70[0x1],_0x1e1f65=_0x18ae70[_0x18ae70[_0xd9dcbb(0x1c7)]-0x1]||'';_0x34ff90[_0xd9dcbb(0x1ae)]('\x20\x20'+_0xda65dd+':'+_0x33d611+'\x20\x20'+_0x1e1f65);}else _0x34ff90[_0xd9dcbb(0x1ae)]('\x20\x20'+_0x1fac53[_0xd9dcbb(0x1a6)]());}return _0x34f067[_0xd9dcbb(0x1c7)]>0x14&&_0x34ff90[_0xd9dcbb(0x1ae)](_0xd9dcbb(0x1ab)+(_0x34f067[_0xd9dcbb(0x1c7)]-0x14)+_0xd9dcbb(0x1c9)),_0x34ff90['join']('\x0a');}function a0_0x4a29(){const _0x3cd547=['\x20\x20...\x20+','\x20more\x20events','No\x20containers\x20running','push','startsWith','\x20more\x20resources','402772PWkfJZ','5aVpfCL','...\x20+','__esModule','logs','957ngkuNv','slice','No\x20resources\x20found','keys','\x20total','Ruff:\x20','join','Found\x200\x20error','match','5242206Ctyoaz','Docker\x20images:\x20','filterRuff','\x20lines\x20truncated]\x20...\x0a','get','No\x20images\x20found','343796dJVJzk','173066OfoUid','length','5596703EvxwXF','\x20more\x20images','includes','All\x20checks\x20passed','filterDockerLogs','Containers:\x20','\x20more\x20files','31590eWuFws','filterDockerPs','Ruff:\x20all\x20checks\x20passed','\x20\x20...\x20(','4504MOnxjV','9uAsnJj','split','describe','\x0a...\x20[','filter','\x20more','\x0a...\x20+','trim','\x20resources\x20found','\x20issues\x20in\x20','defineProperty','8739bhsAOA'];a0_0x4a29=function(){return _0x3cd547;};return a0_0x4a29();}function filterDockerLogs(_0x4a1222){const _0x29fe6a=a0_0xd73e77,_0x49bc63=_0x4a1222[_0x29fe6a(0x1a0)]('\x0a');if(_0x49bc63['length']<=0x32)return _0x4a1222;const _0x15987a=[];return _0x15987a[_0x29fe6a(0x1ae)](..._0x49bc63[_0x29fe6a(0x1b7)](0x0,0x14)),_0x15987a['push'](_0x29fe6a(0x1a2)+(_0x49bc63[_0x29fe6a(0x1c7)]-0x28)+_0x29fe6a(0x1c2)),_0x15987a['push'](..._0x49bc63['slice'](-0x14)),_0x15987a[_0x29fe6a(0x1ae)]('\x0a('+_0x49bc63['length']+'\x20log\x20lines\x20total)'),_0x15987a[_0x29fe6a(0x1bc)]('\x0a');}function filterKubectl(_0x1a9edf,_0x49d326){const _0x5af4c5=a0_0xd73e77,_0x21feab=_0x1a9edf[_0x5af4c5(0x1a0)]('\x0a')[_0x5af4c5(0x1a3)](_0x54c4a4=>_0x54c4a4[_0x5af4c5(0x1a6)]()[_0x5af4c5(0x1c7)]>0x0);if(_0x21feab[_0x5af4c5(0x1c7)]===0x0)return _0x5af4c5(0x1b8);if(_0x21feab['length']<=0x14)return _0x1a9edf['trim']();if(_0x49d326===_0x5af4c5(0x1c3)){const _0x461b4b=_0x21feab[0x0],_0x21f5ec=_0x21feab[_0x5af4c5(0x1b7)](0x1),_0x46b195=[_0x21f5ec[_0x5af4c5(0x1c7)]+_0x5af4c5(0x1a7),'',_0x461b4b];return _0x21f5ec[_0x5af4c5(0x1c7)]<=0x1e?_0x46b195[_0x5af4c5(0x1ae)](..._0x21f5ec):(_0x46b195[_0x5af4c5(0x1ae)](..._0x21f5ec['slice'](0x0,0x19)),_0x46b195['push'](_0x5af4c5(0x1b3)+(_0x21f5ec[_0x5af4c5(0x1c7)]-0x19)+_0x5af4c5(0x1b0))),_0x46b195[_0x5af4c5(0x1bc)]('\x0a');}if(_0x49d326===_0x5af4c5(0x1a1)){const _0x599884=[];let _0x4be136=![],_0x59ecf1=0x0;for(const _0x463dac of _0x21feab){if(_0x463dac[_0x5af4c5(0x1af)]('Events:')){_0x4be136=!![],_0x599884[_0x5af4c5(0x1ae)](_0x463dac);continue;}if(_0x4be136){_0x59ecf1++;if(_0x59ecf1<=0x5)_0x599884[_0x5af4c5(0x1ae)](_0x463dac);}else _0x599884[_0x5af4c5(0x1ae)](_0x463dac);}return _0x59ecf1>0x5&&_0x599884['push'](_0x5af4c5(0x1ab)+(_0x59ecf1-0x5)+_0x5af4c5(0x1ac)),_0x599884[_0x5af4c5(0x1bc)]('\x0a');}if(_0x49d326===_0x5af4c5(0x1b5))return filterDockerLogs(_0x1a9edf);const _0x108613=_0x21feab[_0x5af4c5(0x1b7)](0x0,0x1e);return _0x21feab[_0x5af4c5(0x1c7)]>0x1e&&_0x108613['push'](_0x5af4c5(0x1b3)+(_0x21feab[_0x5af4c5(0x1c7)]-0x1e)+'\x20more\x20lines'),_0x108613[_0x5af4c5(0x1bc)]('\x0a');}function filterRuff(_0x25db6b){const _0x298e2c=a0_0xd73e77,_0x4cd732=_0x25db6b[_0x298e2c(0x1a0)]('\x0a')[_0x298e2c(0x1a3)](_0x5860e4=>_0x5860e4[_0x298e2c(0x1a6)]()[_0x298e2c(0x1c7)]>0x0);if(_0x4cd732['length']===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0x25db6b[_0x298e2c(0x1ca)](_0x298e2c(0x1cb))||_0x25db6b[_0x298e2c(0x1ca)](_0x298e2c(0x1bd)))return _0x298e2c(0x1d1);const _0x166121=_0x25db6b[_0x298e2c(0x1be)](/Found (\d+) error/),_0x45da11=_0x166121?parseInt(_0x166121[0x1]):_0x4cd732['length'],_0x62061c={},_0x572579=[];for(const _0x2a7a45 of _0x4cd732){const _0x3fd3f0=_0x2a7a45[_0x298e2c(0x1be)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x3fd3f0){const _0x7f6a33=_0x3fd3f0[0x1],_0x49adab=_0x7f6a33[_0x298e2c(0x1a0)](':')[0x0];if(!_0x62061c[_0x49adab])_0x62061c[_0x49adab]=[];_0x62061c[_0x49adab][_0x298e2c(0x1ae)](_0x2a7a45);}else _0x572579[_0x298e2c(0x1ae)](_0x2a7a45);}const _0x324f9a=Object[_0x298e2c(0x1b9)](_0x62061c);if(_0x324f9a[_0x298e2c(0x1c7)]===0x0){if(_0x4cd732[_0x298e2c(0x1c7)]<=0x14)return _0x25db6b[_0x298e2c(0x1a6)]();return _0x4cd732['slice'](0x0,0xf)[_0x298e2c(0x1bc)]('\x0a')+(_0x298e2c(0x1a5)+(_0x4cd732[_0x298e2c(0x1c7)]-0xf)+_0x298e2c(0x1a4));}const _0x1f36df=[_0x298e2c(0x1bb)+_0x45da11+_0x298e2c(0x1a8)+_0x324f9a[_0x298e2c(0x1c7)]+'\x20files'];_0x1f36df[_0x298e2c(0x1ae)]('');const _0x4f8194=0xa;for(const _0xd01a22 of _0x324f9a['slice'](0x0,_0x4f8194)){const _0x2dbff4=_0x62061c[_0xd01a22];if(_0x2dbff4['length']<=0x3){for(const _0x9b81d of _0x2dbff4)_0x1f36df[_0x298e2c(0x1ae)]('\x20\x20'+_0x9b81d);}else _0x1f36df[_0x298e2c(0x1ae)]('\x20\x20'+_0x2dbff4[0x0]),_0x1f36df[_0x298e2c(0x1ae)](_0x298e2c(0x19d)+_0x2dbff4[_0x298e2c(0x1c7)]+_0x298e2c(0x1a8)+_0xd01a22+')');}return _0x324f9a['length']>_0x4f8194&&_0x1f36df[_0x298e2c(0x1ae)](_0x298e2c(0x1ab)+(_0x324f9a[_0x298e2c(0x1c7)]-_0x4f8194)+_0x298e2c(0x1ce)),_0x1f36df[_0x298e2c(0x1bc)]('\x0a');}
1
+ 'use strict';const a0_0x2d9015=a0_0x56eb;(function(_0xfee13,_0x4aebe0){const _0x13ed71=a0_0x56eb,_0x31b0d1=_0xfee13();while(!![]){try{const _0x4f7c88=-parseInt(_0x13ed71(0xe5))/0x1+parseInt(_0x13ed71(0xed))/0x2+-parseInt(_0x13ed71(0xce))/0x3*(parseInt(_0x13ed71(0xe1))/0x4)+-parseInt(_0x13ed71(0xd5))/0x5*(-parseInt(_0x13ed71(0xf5))/0x6)+-parseInt(_0x13ed71(0xca))/0x7*(-parseInt(_0x13ed71(0xf1))/0x8)+parseInt(_0x13ed71(0xfc))/0x9*(-parseInt(_0x13ed71(0xf2))/0xa)+-parseInt(_0x13ed71(0xe0))/0xb;if(_0x4f7c88===_0x4aebe0)break;else _0x31b0d1['push'](_0x31b0d1['shift']());}catch(_0x4091e0){_0x31b0d1['push'](_0x31b0d1['shift']());}}}(a0_0x547e,0x2bfa3));Object[a0_0x2d9015(0xcc)](exports,a0_0x2d9015(0xd4),{'value':!![]}),exports['filterDockerPs']=filterDockerPs,exports[a0_0x2d9015(0xde)]=filterDockerImages,exports[a0_0x2d9015(0xea)]=filterDockerLogs,exports[a0_0x2d9015(0xe2)]=filterKubectl,exports[a0_0x2d9015(0xfb)]=filterRuff;function filterDockerPs(_0x3a51bf){const _0x110f3c=a0_0x2d9015,_0x222463=_0x3a51bf[_0x110f3c(0xec)]('\x0a')[_0x110f3c(0xdd)](_0x3a3353=>_0x3a3353['trim']()[_0x110f3c(0xd1)]>0x0);if(_0x222463[_0x110f3c(0xd1)]===0x0)return'No\x20containers\x20running';if(_0x222463[_0x110f3c(0xd1)]<=0xa)return _0x3a51bf['trim']();const _0x50d02a=_0x222463[0x0],_0x299771=_0x222463[_0x110f3c(0xf6)](0x1),_0x4c439a=[];_0x4c439a[_0x110f3c(0xd9)](_0x110f3c(0xe3)+_0x299771[_0x110f3c(0xd1)]+_0x110f3c(0xdb)),_0x4c439a[_0x110f3c(0xd9)]('');for(const _0x4bceae of _0x299771){const _0xfaaca6=_0x4bceae[_0x110f3c(0xec)](/\s{2,}/);if(_0xfaaca6[_0x110f3c(0xd1)]>=0x5){const _0x403d30=_0xfaaca6[0x0]['substring'](0x0,0xc),_0x15f4ef=_0xfaaca6[0x1],_0x4d3208=_0xfaaca6[_0xfaaca6[_0x110f3c(0xd1)]-0x2]||'',_0x2a8676=_0xfaaca6[_0xfaaca6['length']-0x1]||'';_0x4c439a['push']('\x20\x20'+_0x403d30+'\x20\x20'+_0x15f4ef+'\x20\x20'+_0x4d3208+'\x20\x20'+_0x2a8676);}else _0x4c439a[_0x110f3c(0xd9)]('\x20\x20'+_0x4bceae[_0x110f3c(0xeb)]());}return _0x4c439a[_0x110f3c(0xf9)]('\x0a');}function a0_0x56eb(_0x2de6a2,_0x286edd){_0x2de6a2=_0x2de6a2-0xca;const _0x547ebc=a0_0x547e();let _0x56ebad=_0x547ebc[_0x2de6a2];return _0x56ebad;}function filterDockerImages(_0x30215d){const _0x5b6b2b=a0_0x2d9015,_0x112d81=_0x30215d['split']('\x0a')[_0x5b6b2b(0xdd)](_0x56a2ca=>_0x56a2ca[_0x5b6b2b(0xeb)]()[_0x5b6b2b(0xd1)]>0x0);if(_0x112d81[_0x5b6b2b(0xd1)]<=0x1)return _0x5b6b2b(0xe6);if(_0x112d81[_0x5b6b2b(0xd1)]<=0xf)return _0x30215d[_0x5b6b2b(0xeb)]();const _0xb72c98=_0x112d81[_0x5b6b2b(0xf6)](0x1),_0x548139=[_0x5b6b2b(0xd0)+_0xb72c98[_0x5b6b2b(0xd1)]+_0x5b6b2b(0xdb)];_0x548139[_0x5b6b2b(0xd9)]('');const _0x156866=_0xb72c98[_0x5b6b2b(0xf6)](0x0,0x14);for(const _0x9cae54 of _0x156866){const _0x5ef4d3=_0x9cae54[_0x5b6b2b(0xec)](/\s{2,}/);if(_0x5ef4d3[_0x5b6b2b(0xd1)]>=0x3){const _0x56a4d1=_0x5ef4d3[0x0],_0x441591=_0x5ef4d3[0x1],_0x236379=_0x5ef4d3[_0x5ef4d3[_0x5b6b2b(0xd1)]-0x1]||'';_0x548139[_0x5b6b2b(0xd9)]('\x20\x20'+_0x56a4d1+':'+_0x441591+'\x20\x20'+_0x236379);}else _0x548139[_0x5b6b2b(0xd9)]('\x20\x20'+_0x9cae54[_0x5b6b2b(0xeb)]());}return _0xb72c98['length']>0x14&&_0x548139[_0x5b6b2b(0xd9)](_0x5b6b2b(0xf7)+(_0xb72c98[_0x5b6b2b(0xd1)]-0x14)+_0x5b6b2b(0xcf)),_0x548139[_0x5b6b2b(0xf9)]('\x0a');}function filterDockerLogs(_0x51ca1b){const _0x25e93d=a0_0x2d9015,_0x1c436c=_0x51ca1b[_0x25e93d(0xec)]('\x0a');if(_0x1c436c['length']<=0x32)return _0x51ca1b;const _0x3a51fc=[];return _0x3a51fc['push'](..._0x1c436c[_0x25e93d(0xf6)](0x0,0x14)),_0x3a51fc['push'](_0x25e93d(0xd2)+(_0x1c436c[_0x25e93d(0xd1)]-0x28)+_0x25e93d(0xf8)),_0x3a51fc['push'](..._0x1c436c[_0x25e93d(0xf6)](-0x14)),_0x3a51fc[_0x25e93d(0xd9)]('\x0a('+_0x1c436c[_0x25e93d(0xd1)]+_0x25e93d(0xe9)),_0x3a51fc[_0x25e93d(0xf9)]('\x0a');}function a0_0x547e(){const _0x50b065=['\x20more\x20images','Docker\x20images:\x20','length','\x0a...\x20[','All\x20checks\x20passed','__esModule','578070gucvhT','Found\x200\x20error','\x20resources\x20found','startsWith','push','\x20issues\x20in\x20','\x20total','Events:','filter','filterDockerImages','\x20files','3968525WPMYaj','12psSIAN','filterKubectl','Containers:\x20','includes','73461lAiqWb','No\x20images\x20found','Ruff:\x20','\x20more\x20files','\x20log\x20lines\x20total)','filterDockerLogs','trim','split','148340esExRv','\x20\x20...\x20(','\x20more\x20lines','Ruff:\x20no\x20issues\x20found','4216JrbQxv','910xcspWL','describe','logs','18XgiVLz','slice','\x20\x20...\x20+','\x20lines\x20truncated]\x20...\x0a','join','...\x20+','filterRuff','4554eGDNQb','\x20more\x20events','match','4151VOpNMa','\x20more\x20resources','defineProperty','No\x20resources\x20found','73110mkZBUM'];a0_0x547e=function(){return _0x50b065;};return a0_0x547e();}function filterKubectl(_0x33717d,_0xcb0f18){const _0x437888=a0_0x2d9015,_0x37b957=_0x33717d['split']('\x0a')['filter'](_0x1711c8=>_0x1711c8[_0x437888(0xeb)]()['length']>0x0);if(_0x37b957['length']===0x0)return _0x437888(0xcd);if(_0x37b957['length']<=0x14)return _0x33717d[_0x437888(0xeb)]();if(_0xcb0f18==='get'){const _0x4e7177=_0x37b957[0x0],_0x3a90de=_0x37b957[_0x437888(0xf6)](0x1),_0x266193=[_0x3a90de[_0x437888(0xd1)]+_0x437888(0xd7),'',_0x4e7177];return _0x3a90de[_0x437888(0xd1)]<=0x1e?_0x266193['push'](..._0x3a90de):(_0x266193[_0x437888(0xd9)](..._0x3a90de[_0x437888(0xf6)](0x0,0x19)),_0x266193[_0x437888(0xd9)](_0x437888(0xfa)+(_0x3a90de[_0x437888(0xd1)]-0x19)+_0x437888(0xcb))),_0x266193[_0x437888(0xf9)]('\x0a');}if(_0xcb0f18===_0x437888(0xf3)){const _0x216904=[];let _0x47832f=![],_0x3575e2=0x0;for(const _0x2a1fc2 of _0x37b957){if(_0x2a1fc2[_0x437888(0xd8)](_0x437888(0xdc))){_0x47832f=!![],_0x216904[_0x437888(0xd9)](_0x2a1fc2);continue;}if(_0x47832f){_0x3575e2++;if(_0x3575e2<=0x5)_0x216904[_0x437888(0xd9)](_0x2a1fc2);}else _0x216904['push'](_0x2a1fc2);}return _0x3575e2>0x5&&_0x216904[_0x437888(0xd9)](_0x437888(0xf7)+(_0x3575e2-0x5)+_0x437888(0xfd)),_0x216904[_0x437888(0xf9)]('\x0a');}if(_0xcb0f18===_0x437888(0xf4))return filterDockerLogs(_0x33717d);const _0x21dc9c=_0x37b957['slice'](0x0,0x1e);return _0x37b957[_0x437888(0xd1)]>0x1e&&_0x21dc9c[_0x437888(0xd9)]('...\x20+'+(_0x37b957[_0x437888(0xd1)]-0x1e)+_0x437888(0xef)),_0x21dc9c[_0x437888(0xf9)]('\x0a');}function filterRuff(_0xeeba69){const _0x260915=a0_0x2d9015,_0x3dcce0=_0xeeba69[_0x260915(0xec)]('\x0a')[_0x260915(0xdd)](_0x2c66a6=>_0x2c66a6['trim']()[_0x260915(0xd1)]>0x0);if(_0x3dcce0['length']===0x0)return _0x260915(0xf0);if(_0xeeba69[_0x260915(0xe4)](_0x260915(0xd3))||_0xeeba69['includes'](_0x260915(0xd6)))return'Ruff:\x20all\x20checks\x20passed';const _0x4ac925=_0xeeba69[_0x260915(0xfe)](/Found (\d+) error/),_0x2bc18a=_0x4ac925?parseInt(_0x4ac925[0x1]):_0x3dcce0['length'],_0xcb7f3a={},_0x3664db=[];for(const _0xd10078 of _0x3dcce0){const _0x2b1a84=_0xd10078[_0x260915(0xfe)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x2b1a84){const _0xae8106=_0x2b1a84[0x1],_0x596146=_0xae8106[_0x260915(0xec)](':')[0x0];if(!_0xcb7f3a[_0x596146])_0xcb7f3a[_0x596146]=[];_0xcb7f3a[_0x596146][_0x260915(0xd9)](_0xd10078);}else _0x3664db[_0x260915(0xd9)](_0xd10078);}const _0x46e04a=Object['keys'](_0xcb7f3a);if(_0x46e04a[_0x260915(0xd1)]===0x0){if(_0x3dcce0[_0x260915(0xd1)]<=0x14)return _0xeeba69['trim']();return _0x3dcce0[_0x260915(0xf6)](0x0,0xf)['join']('\x0a')+('\x0a...\x20+'+(_0x3dcce0[_0x260915(0xd1)]-0xf)+'\x20more');}const _0x6be765=[_0x260915(0xe7)+_0x2bc18a+'\x20issues\x20in\x20'+_0x46e04a['length']+_0x260915(0xdf)];_0x6be765[_0x260915(0xd9)]('');const _0x4051b2=0xa;for(const _0x308a3a of _0x46e04a['slice'](0x0,_0x4051b2)){const _0x58dfbb=_0xcb7f3a[_0x308a3a];if(_0x58dfbb[_0x260915(0xd1)]<=0x3){for(const _0x4eeb61 of _0x58dfbb)_0x6be765[_0x260915(0xd9)]('\x20\x20'+_0x4eeb61);}else _0x6be765[_0x260915(0xd9)]('\x20\x20'+_0x58dfbb[0x0]),_0x6be765[_0x260915(0xd9)](_0x260915(0xee)+_0x58dfbb[_0x260915(0xd1)]+_0x260915(0xda)+_0x308a3a+')');}return _0x46e04a[_0x260915(0xd1)]>_0x4051b2&&_0x6be765[_0x260915(0xd9)]('\x20\x20...\x20+'+(_0x46e04a[_0x260915(0xd1)]-_0x4051b2)+_0x260915(0xe8)),_0x6be765[_0x260915(0xf9)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x50da5e=a0_0x21e2;(function(_0x4ba4fc,_0x5c0476){const _0x110450=a0_0x21e2,_0x50933a=_0x4ba4fc();while(!![]){try{const _0xa62240=parseInt(_0x110450(0x11b))/0x1+parseInt(_0x110450(0x10a))/0x2+-parseInt(_0x110450(0x122))/0x3*(-parseInt(_0x110450(0xfd))/0x4)+-parseInt(_0x110450(0x11c))/0x5+-parseInt(_0x110450(0x11a))/0x6+-parseInt(_0x110450(0x111))/0x7*(parseInt(_0x110450(0x112))/0x8)+parseInt(_0x110450(0x117))/0x9*(-parseInt(_0x110450(0x104))/0xa);if(_0xa62240===_0x5c0476)break;else _0x50933a['push'](_0x50933a['shift']());}catch(_0x11680c){_0x50933a['push'](_0x50933a['shift']());}}}(a0_0x3832,0xb9779));Object[a0_0x50da5e(0x10b)](exports,a0_0x50da5e(0xf9),{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x50da5e(0x114)]=collapseDuplicates,exports[a0_0x50da5e(0x128)]=collapseWhitespace,exports['stripComments']=stripComments,exports[a0_0x50da5e(0x101)]=smartCrushJson,exports['softTruncate']=softTruncate;function stripAnsi(_0x5913b7){const _0x48ac5d=a0_0x50da5e,_0x22b60b=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x5913b7[_0x48ac5d(0xfc)](_0x22b60b,'');}function a0_0x3832(){const _0x4ddb5e=['9BfCEnJ','funding','dev','5169138xyGgLG','571952WqQYlv','4613060TctQrk','test','\x0a\x0a\x0a','stringify','\x20fields,\x20showing\x20','\x20more\x20rows','556455oHhxSE','slice','sha','min','push','startsWith','collapseWhitespace','\x20items,\x20','keys','parse','repository','__esModule','split','engines','replace','28jxHTYj','map','bugs','includes','smartCrushJson','signature','length','4228190WfEHbq','trim','join','\x20key\x20fields)','object','\x20characters\x20of\x20output]\x20...\x0a','2341488SZLLEp','defineProperty','substring','resolved','checksum','toLowerCase','...\x20+','40096SOGSAa','104hIGQsk','hash','collapseDuplicates','\x0a...\x20[TrimPrompt:\x20Truncated\x20','\x20[x'];a0_0x3832=function(){return _0x4ddb5e;};return a0_0x3832();}function collapseDuplicates(_0x40b842){const _0x5273e1=a0_0x50da5e,_0x5c2869=_0x40b842[_0x5273e1(0xfa)]('\x0a');if(_0x5c2869['length']<=0x1)return _0x40b842;const _0x98105=[];let _0x38298f=_0x5c2869[0x0],_0x465036=0x1;for(let _0x40c3f4=0x1;_0x40c3f4<_0x5c2869[_0x5273e1(0x103)];_0x40c3f4++){const _0x3c237a=_0x5c2869[_0x40c3f4];_0x3c237a===_0x38298f&&_0x3c237a[_0x5273e1(0x105)]()[_0x5273e1(0x103)]>0x0?_0x465036++:(_0x465036>0x1?_0x98105[_0x5273e1(0x126)](_0x38298f+'\x20[x'+_0x465036+']'):_0x98105[_0x5273e1(0x126)](_0x38298f),_0x38298f=_0x3c237a,_0x465036=0x1);}return _0x465036>0x1?_0x98105[_0x5273e1(0x126)](_0x38298f+_0x5273e1(0x116)+_0x465036+']'):_0x98105['push'](_0x38298f),_0x98105[_0x5273e1(0x106)]('\x0a');}function collapseWhitespace(_0x54ebf1){const _0x84d5a6=a0_0x50da5e;let _0x26f14c=_0x54ebf1[_0x84d5a6(0xfc)](/[ \t]+$/gm,'');return _0x26f14c=_0x26f14c[_0x84d5a6(0xfc)](/\n{4,}/g,_0x84d5a6(0x11e)),_0x26f14c;}function stripComments(_0x1d20a3,_0x30f4b4){const _0x439d6e=a0_0x50da5e;if(!_0x30f4b4)return _0x1d20a3;const _0x5a114e=_0x1d20a3['split']('\x0a');if(_0x5a114e[_0x439d6e(0x103)]<=0x96)return _0x1d20a3;const _0xca0bb5={'.ts':/^\s*\/\//,'.js':/^\s*\/\//,'.tsx':/^\s*\/\//,'.jsx':/^\s*\/\//,'.py':/^\s*#(?!!)/,'.rb':/^\s*#(?!!)/,'.sh':/^\s*#(?!!)/,'.go':/^\s*\/\//,'.rs':/^\s*\/\//,'.java':/^\s*\/\//,'.c':/^\s*\/\//,'.cpp':/^\s*\/\//,'.cs':/^\s*\/\//,'.swift':/^\s*\/\//,'.kt':/^\s*\/\//,'.yaml':/^\s*#(?!!)/,'.yml':/^\s*#(?!!)/},_0x47b890=_0xca0bb5[_0x30f4b4[_0x439d6e(0x10f)]()];if(!_0x47b890)return _0x1d20a3;const _0x5a94b8=_0x5a114e['filter'](_0x356249=>!_0x47b890[_0x439d6e(0x11d)](_0x356249));return _0x5a94b8[_0x439d6e(0x106)]('\x0a');}function a0_0x21e2(_0x329323,_0x5a0bba){_0x329323=_0x329323-0xf9;const _0x38324d=a0_0x3832();let _0x21e2e1=_0x38324d[_0x329323];return _0x21e2e1;}function smartCrushJson(_0x5f12bf){const _0x13641a=a0_0x50da5e;try{const _0x380c03=_0x5f12bf[_0x13641a(0x105)]();if(!_0x380c03[_0x13641a(0x127)]('['))return null;const _0x5cd2c2=JSON[_0x13641a(0x12b)](_0x380c03);if(!Array['isArray'](_0x5cd2c2)||_0x5cd2c2[_0x13641a(0x103)]<0x3)return null;if(typeof _0x5cd2c2[0x0]!==_0x13641a(0x108)||_0x5cd2c2[0x0]===null)return null;const _0x47f705=Object[_0x13641a(0x12a)](_0x5cd2c2[0x0]);if(_0x47f705[_0x13641a(0x103)]===0x0)return null;const _0x28c8e7=_0x47f705['filter'](_0x422b9b=>{const _0x5be42d=_0x13641a,_0x12f7ad=_0x422b9b[_0x5be42d(0x10f)]();return!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x10d))&&!_0x12f7ad[_0x5be42d(0x100)]('integrity')&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x124))&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x113))&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x10e))&&!_0x12f7ad[_0x5be42d(0x100)](_0x5be42d(0x102))&&!_0x12f7ad['includes'](_0x5be42d(0x119))&&_0x12f7ad!==_0x5be42d(0x118)&&_0x12f7ad!==_0x5be42d(0xfb)&&_0x12f7ad!==_0x5be42d(0xff)&&_0x12f7ad!==_0x5be42d(0x12c);})[_0x13641a(0x123)](0x0,0x6);if(_0x28c8e7['length']===0x0)return null;const _0x3f3c16=[];_0x3f3c16['push'](_0x28c8e7['join']('|'));const _0x1a33ea=0x1e;for(let _0x519240=0x0;_0x519240<Math[_0x13641a(0x125)](_0x5cd2c2[_0x13641a(0x103)],_0x1a33ea);_0x519240++){const _0x473682=_0x28c8e7[_0x13641a(0xfe)](_0x5715dd=>{const _0x41db0a=_0x13641a,_0x5cc465=_0x5cd2c2[_0x519240][_0x5715dd];if(_0x5cc465===null||_0x5cc465===undefined)return'';if(typeof _0x5cc465===_0x41db0a(0x108))return JSON[_0x41db0a(0x11f)](_0x5cc465)[_0x41db0a(0x10c)](0x0,0x28);return String(_0x5cc465)[_0x41db0a(0x10c)](0x0,0x3c);});_0x3f3c16[_0x13641a(0x126)](_0x473682['join']('|'));}_0x5cd2c2['length']>_0x1a33ea&&_0x3f3c16[_0x13641a(0x126)](_0x13641a(0x110)+(_0x5cd2c2[_0x13641a(0x103)]-_0x1a33ea)+_0x13641a(0x121));_0x3f3c16[_0x13641a(0x126)]('\x0a('+_0x5cd2c2[_0x13641a(0x103)]+_0x13641a(0x129)+_0x47f705[_0x13641a(0x103)]+_0x13641a(0x120)+_0x28c8e7['length']+_0x13641a(0x107));const _0x5a2c3e=_0x3f3c16[_0x13641a(0x106)]('\x0a');if(_0x5a2c3e[_0x13641a(0x103)]<_0x380c03[_0x13641a(0x103)])return _0x5a2c3e;return null;}catch{return null;}}function softTruncate(_0x4f03c2,_0x29966e=0x4e20){const _0x1b7a46=a0_0x50da5e;if(_0x4f03c2[_0x1b7a46(0x103)]<=_0x29966e)return _0x4f03c2;const _0x150a19=_0x4f03c2[_0x1b7a46(0xfa)]('\x0a');if(_0x150a19[_0x1b7a46(0x103)]<=0xc8)return _0x4f03c2;const _0x37c910=0x32,_0x14b6e9=0x96,_0xa11924=_0x150a19['slice'](0x0,_0x37c910),_0x1d3594=_0x150a19[_0x1b7a46(0x123)](_0x150a19['length']-_0x14b6e9),_0x5bc1b9=_0x4f03c2[_0x1b7a46(0x103)]-(_0xa11924['join']('\x0a')['length']+_0x1d3594['join']('\x0a')[_0x1b7a46(0x103)]);return[..._0xa11924,_0x1b7a46(0x115)+_0x5bc1b9+_0x1b7a46(0x109),..._0x1d3594][_0x1b7a46(0x106)]('\x0a');}
1
+ 'use strict';const a0_0x3ebd86=a0_0x6065;(function(_0x57f31b,_0x2a9190){const _0x54ddef=a0_0x6065,_0x244674=_0x57f31b();while(!![]){try{const _0x420086=-parseInt(_0x54ddef(0x18e))/0x1*(parseInt(_0x54ddef(0x198))/0x2)+-parseInt(_0x54ddef(0x188))/0x3+parseInt(_0x54ddef(0x191))/0x4+parseInt(_0x54ddef(0x192))/0x5+-parseInt(_0x54ddef(0x1ab))/0x6+parseInt(_0x54ddef(0x1b1))/0x7*(parseInt(_0x54ddef(0x1a0))/0x8)+parseInt(_0x54ddef(0x195))/0x9;if(_0x420086===_0x2a9190)break;else _0x244674['push'](_0x244674['shift']());}catch(_0x188a78){_0x244674['push'](_0x244674['shift']());}}}(a0_0x31b7,0xd6abf));function a0_0x6065(_0x50076a,_0x5ebec7){_0x50076a=_0x50076a-0x186;const _0x31b769=a0_0x31b7();let _0x6065b8=_0x31b769[_0x50076a];return _0x6065b8;}Object[a0_0x3ebd86(0x1a9)](exports,'__esModule',{'value':!![]}),exports[a0_0x3ebd86(0x1ae)]=stripAnsi,exports[a0_0x3ebd86(0x187)]=collapseDuplicates,exports[a0_0x3ebd86(0x197)]=collapseWhitespace,exports['stripComments']=stripComments,exports[a0_0x3ebd86(0x19c)]=smartCrushJson,exports[a0_0x3ebd86(0x190)]=softTruncate;function a0_0x31b7(){const _0x1a9dac=['\x20items,\x20','map','stripAnsi','repository','sha','7014945GkKWiU','stringify','...\x20+','length','trim','dev','collapseDuplicates','3587040ZBjeQD','\x20key\x20fields)','\x20[x','checksum','join','funding','8kfdgGU','slice','softTruncate','277156USjjvS','5915625PkZspL','startsWith','includes','1405062NvqjXS','engines','collapseWhitespace','12134sYSnHh','replace','substring','push','smartCrushJson','min','split','object','8HLYPku','resolved','filter','\x0a...\x20[TrimPrompt:\x20Truncated\x20','\x20characters\x20of\x20output]\x20...\x0a','integrity','parse','hash','toLowerCase','defineProperty','test','1722936ulbnCE'];a0_0x31b7=function(){return _0x1a9dac;};return a0_0x31b7();}function stripAnsi(_0x50a48d){const _0x1da695=a0_0x3ebd86,_0x2a61af=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x50a48d[_0x1da695(0x199)](_0x2a61af,'');}function collapseDuplicates(_0x29299b){const _0x553330=a0_0x3ebd86,_0x395997=_0x29299b['split']('\x0a');if(_0x395997[_0x553330(0x1b4)]<=0x1)return _0x29299b;const _0x419968=[];let _0x320474=_0x395997[0x0],_0x4e4bf8=0x1;for(let _0x4ded94=0x1;_0x4ded94<_0x395997['length'];_0x4ded94++){const _0x309d45=_0x395997[_0x4ded94];_0x309d45===_0x320474&&_0x309d45[_0x553330(0x1b5)]()[_0x553330(0x1b4)]>0x0?_0x4e4bf8++:(_0x4e4bf8>0x1?_0x419968['push'](_0x320474+_0x553330(0x18a)+_0x4e4bf8+']'):_0x419968['push'](_0x320474),_0x320474=_0x309d45,_0x4e4bf8=0x1);}return _0x4e4bf8>0x1?_0x419968[_0x553330(0x19b)](_0x320474+_0x553330(0x18a)+_0x4e4bf8+']'):_0x419968[_0x553330(0x19b)](_0x320474),_0x419968[_0x553330(0x18c)]('\x0a');}function collapseWhitespace(_0x5095d5){const _0x4d6dc3=a0_0x3ebd86;let _0x1e1352=_0x5095d5[_0x4d6dc3(0x199)](/[ \t]+$/gm,'');return _0x1e1352=_0x1e1352[_0x4d6dc3(0x199)](/\n{4,}/g,'\x0a\x0a\x0a'),_0x1e1352;}function stripComments(_0x5c7288,_0x10cea5){const _0x5b8e66=a0_0x3ebd86;if(!_0x10cea5)return _0x5c7288;const _0x54aeb6=_0x5c7288['split']('\x0a');if(_0x54aeb6[_0x5b8e66(0x1b4)]<=0x96)return _0x5c7288;const _0x5096be={'.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*#(?!!)/},_0xb3d9d9=_0x5096be[_0x10cea5[_0x5b8e66(0x1a8)]()];if(!_0xb3d9d9)return _0x5c7288;const _0x5c9ab9=_0x54aeb6[_0x5b8e66(0x1a2)](_0x152a73=>!_0xb3d9d9[_0x5b8e66(0x1aa)](_0x152a73));return _0x5c9ab9[_0x5b8e66(0x18c)]('\x0a');}function smartCrushJson(_0x116b01){const _0x10af19=a0_0x3ebd86;try{const _0x5bbb50=_0x116b01['trim']();if(!_0x5bbb50[_0x10af19(0x193)]('['))return null;const _0x696172=JSON[_0x10af19(0x1a6)](_0x5bbb50);if(!Array['isArray'](_0x696172)||_0x696172['length']<0x3)return null;if(typeof _0x696172[0x0]!==_0x10af19(0x19f)||_0x696172[0x0]===null)return null;const _0x58bbaa=Object['keys'](_0x696172[0x0]);if(_0x58bbaa['length']===0x0)return null;const _0x2019ee=_0x58bbaa['filter'](_0x220270=>{const _0x1adfae=_0x10af19,_0x4024be=_0x220270[_0x1adfae(0x1a8)]();return!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x1a1))&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x1a5))&&!_0x4024be['includes'](_0x1adfae(0x1b0))&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x1a7))&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x18b))&&!_0x4024be[_0x1adfae(0x194)]('signature')&&!_0x4024be[_0x1adfae(0x194)](_0x1adfae(0x186))&&_0x4024be!==_0x1adfae(0x18d)&&_0x4024be!==_0x1adfae(0x196)&&_0x4024be!=='bugs'&&_0x4024be!==_0x1adfae(0x1af);})['slice'](0x0,0x6);if(_0x2019ee['length']===0x0)return null;const _0x451472=[];_0x451472[_0x10af19(0x19b)](_0x2019ee[_0x10af19(0x18c)]('|'));const _0x3e58b6=0x1e;for(let _0x24beed=0x0;_0x24beed<Math[_0x10af19(0x19d)](_0x696172[_0x10af19(0x1b4)],_0x3e58b6);_0x24beed++){const _0x5b2385=_0x2019ee[_0x10af19(0x1ad)](_0x3d53e8=>{const _0x8e77c6=_0x10af19,_0x54e2d1=_0x696172[_0x24beed][_0x3d53e8];if(_0x54e2d1===null||_0x54e2d1===undefined)return'';if(typeof _0x54e2d1===_0x8e77c6(0x19f))return JSON[_0x8e77c6(0x1b2)](_0x54e2d1)[_0x8e77c6(0x19a)](0x0,0x28);return String(_0x54e2d1)[_0x8e77c6(0x19a)](0x0,0x3c);});_0x451472['push'](_0x5b2385[_0x10af19(0x18c)]('|'));}_0x696172[_0x10af19(0x1b4)]>_0x3e58b6&&_0x451472[_0x10af19(0x19b)](_0x10af19(0x1b3)+(_0x696172[_0x10af19(0x1b4)]-_0x3e58b6)+'\x20more\x20rows');_0x451472[_0x10af19(0x19b)]('\x0a('+_0x696172[_0x10af19(0x1b4)]+_0x10af19(0x1ac)+_0x58bbaa[_0x10af19(0x1b4)]+'\x20fields,\x20showing\x20'+_0x2019ee[_0x10af19(0x1b4)]+_0x10af19(0x189));const _0x23bee4=_0x451472['join']('\x0a');if(_0x23bee4[_0x10af19(0x1b4)]<_0x5bbb50[_0x10af19(0x1b4)])return _0x23bee4;return null;}catch{return null;}}function softTruncate(_0x10e2e0,_0x51bb0f=0x4e20){const _0x23c208=a0_0x3ebd86;if(_0x10e2e0['length']<=_0x51bb0f)return _0x10e2e0;const _0x20dd58=_0x10e2e0[_0x23c208(0x19e)]('\x0a');if(_0x20dd58[_0x23c208(0x1b4)]<=0xc8)return _0x10e2e0;const _0x95f6a8=0x32,_0x3ce41f=0x96,_0xf806dc=_0x20dd58['slice'](0x0,_0x95f6a8),_0x44046f=_0x20dd58[_0x23c208(0x18f)](_0x20dd58[_0x23c208(0x1b4)]-_0x3ce41f),_0x247134=_0x10e2e0[_0x23c208(0x1b4)]-(_0xf806dc[_0x23c208(0x18c)]('\x0a')['length']+_0x44046f['join']('\x0a')[_0x23c208(0x1b4)]);return[..._0xf806dc,_0x23c208(0x1a3)+_0x247134+_0x23c208(0x1a4),..._0x44046f][_0x23c208(0x18c)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4aea8d=a0_0x2e48;(function(_0x48d62a,_0xb565b6){const _0x1804bb=a0_0x2e48,_0x90e21e=_0x48d62a();while(!![]){try{const _0x13467e=parseInt(_0x1804bb(0x1de))/0x1*(-parseInt(_0x1804bb(0x1f1))/0x2)+parseInt(_0x1804bb(0x207))/0x3*(-parseInt(_0x1804bb(0x208))/0x4)+parseInt(_0x1804bb(0x1e1))/0x5*(-parseInt(_0x1804bb(0x1fb))/0x6)+parseInt(_0x1804bb(0x1ed))/0x7*(-parseInt(_0x1804bb(0x1f5))/0x8)+-parseInt(_0x1804bb(0x1dc))/0x9*(-parseInt(_0x1804bb(0x200))/0xa)+parseInt(_0x1804bb(0x1e6))/0xb*(-parseInt(_0x1804bb(0x1d6))/0xc)+parseInt(_0x1804bb(0x1f3))/0xd*(parseInt(_0x1804bb(0x1f4))/0xe);if(_0x13467e===_0xb565b6)break;else _0x90e21e['push'](_0x90e21e['shift']());}catch(_0x21565d){_0x90e21e['push'](_0x90e21e['shift']());}}}(a0_0x3b47,0x38ee0));var __createBinding=this&&this[a0_0x4aea8d(0x1e8)]||(Object[a0_0x4aea8d(0x203)]?function(_0x5135c4,_0x311540,_0x187b7f,_0x48cebe){const _0x4014c5=a0_0x4aea8d;if(_0x48cebe===undefined)_0x48cebe=_0x187b7f;var _0xcfd554=Object[_0x4014c5(0x1e4)](_0x311540,_0x187b7f);(!_0xcfd554||(_0x4014c5(0x1d4)in _0xcfd554?!_0x311540[_0x4014c5(0x1f6)]:_0xcfd554[_0x4014c5(0x1d5)]||_0xcfd554['configurable']))&&(_0xcfd554={'enumerable':!![],'get':function(){return _0x311540[_0x187b7f];}}),Object['defineProperty'](_0x5135c4,_0x48cebe,_0xcfd554);}:function(_0x39f50b,_0x3333f2,_0x469cd5,_0x430627){if(_0x430627===undefined)_0x430627=_0x469cd5;_0x39f50b[_0x430627]=_0x3333f2[_0x469cd5];}),__setModuleDefault=this&&this[a0_0x4aea8d(0x1ef)]||(Object[a0_0x4aea8d(0x203)]?function(_0x59589d,_0x4ccabb){const _0x277059=a0_0x4aea8d;Object[_0x277059(0x1ec)](_0x59589d,'default',{'enumerable':!![],'value':_0x4ccabb});}:function(_0xd76b83,_0x511d76){const _0x48614b=a0_0x4aea8d;_0xd76b83[_0x48614b(0x1db)]=_0x511d76;}),__importStar=this&&this['__importStar']||(function(){var _0x47ff1a=function(_0x369ad9){return _0x47ff1a=Object['getOwnPropertyNames']||function(_0x2cc2ad){const _0x356958=a0_0x2e48;var _0x3a7d0c=[];for(var _0x54355e in _0x2cc2ad)if(Object['prototype']['hasOwnProperty'][_0x356958(0x1e2)](_0x2cc2ad,_0x54355e))_0x3a7d0c[_0x3a7d0c[_0x356958(0x1f8)]]=_0x54355e;return _0x3a7d0c;},_0x47ff1a(_0x369ad9);};return function(_0x4f76e0){const _0x5b92b8=a0_0x2e48;if(_0x4f76e0&&_0x4f76e0[_0x5b92b8(0x1f6)])return _0x4f76e0;var _0x12fdc2={};if(_0x4f76e0!=null){for(var _0x260de5=_0x47ff1a(_0x4f76e0),_0x1c82a2=0x0;_0x1c82a2<_0x260de5[_0x5b92b8(0x1f8)];_0x1c82a2++)if(_0x260de5[_0x1c82a2]!=='default')__createBinding(_0x12fdc2,_0x4f76e0,_0x260de5[_0x1c82a2]);}return __setModuleDefault(_0x12fdc2,_0x4f76e0),_0x12fdc2;};}());Object[a0_0x4aea8d(0x1ec)](exports,a0_0x4aea8d(0x1f6),{'value':!![]}),exports[a0_0x4aea8d(0x1f0)]=filterGitStatus,exports[a0_0x4aea8d(0x1fa)]=filterGitLog,exports[a0_0x4aea8d(0x1e0)]=filterGitDiff;function a0_0x3b47(){const _0x3ca148=['[file]\x20','push','basename','\x20untracked\x20files)','4026670ZucRKZ','\x20more\x20modifications','\x20\x20...\x20+','create','diff\x20--git','\x0aUntracked\x20files:','entries','309FjhYOU','3408RVwMKq','\x0aChanges:','\x20(+','\x20\x20...\x20(+','trim','get','writable','12cWaaPs','substring','\x20lines\x20of\x20description)','*\x20Branch:\x20','map','default','9asDVSJ','dirname','4013hdFidI','path','filterGitDiff','9005mGYYUQ','call','replace','getOwnPropertyDescriptor','split','732413XdhZUe','No\x20modifications','__createBinding','match','join','startsWith','defineProperty','14ZiMuoy','filter','__setModuleDefault','filterGitStatus','180nGpNId','\x20\x20??\x20','13yZoOyZ','12904388PMbJoY','1049368sPDezb','__esModule','Clean\x20working\x20tree','length','slice','filterGitLog','1044dvPgIs'];a0_0x3b47=function(){return _0x3ca148;};return a0_0x3b47();}const path=__importStar(require(a0_0x4aea8d(0x1df)));function filterGitStatus(_0xe059ff){const _0x15a657=a0_0x4aea8d,_0x438b15=_0xe059ff[_0x15a657(0x1e5)]('\x0a')[_0x15a657(0x1da)](_0x43c6f1=>_0x43c6f1[_0x15a657(0x1d3)]())[_0x15a657(0x1ee)](_0x5943c2=>_0x5943c2[_0x15a657(0x1f8)]>0x0);if(_0x438b15[_0x15a657(0x1f8)]===0x0)return _0x15a657(0x1f7);const _0x40ad6c=[],_0x393a9b=[],_0x11d927=[];for(const _0x4f843f of _0x438b15){if(_0x4f843f['startsWith']('##')){const _0x43afa0=_0x4f843f[_0x15a657(0x1e3)](/^##\s*/,'');_0x40ad6c['push'](_0x15a657(0x1d9)+_0x43afa0);}else _0x4f843f[_0x15a657(0x1eb)]('??')?_0x393a9b[_0x15a657(0x1fd)](_0x4f843f[_0x15a657(0x1d7)](0x3)['trim']()):_0x11d927[_0x15a657(0x1fd)](_0x4f843f);}_0x11d927['length']>0x0&&(_0x40ad6c['push'](_0x15a657(0x209)),_0x40ad6c['push'](..._0x11d927[_0x15a657(0x1da)](_0x2c01b6=>'\x20\x20'+_0x2c01b6)));if(_0x393a9b[_0x15a657(0x1f8)]>0x0){_0x40ad6c[_0x15a657(0x1fd)](_0x15a657(0x205));const _0x12c5b3={},_0x5672a0=[];for(const _0x3dcf59 of _0x393a9b){const _0x5cdac1=path[_0x15a657(0x1dd)](_0x3dcf59);_0x5cdac1==='.'||_0x5cdac1===''?_0x5672a0[_0x15a657(0x1fd)](_0x3dcf59):(!_0x12c5b3[_0x5cdac1]&&(_0x12c5b3[_0x5cdac1]=[]),_0x12c5b3[_0x5cdac1][_0x15a657(0x1fd)](path[_0x15a657(0x1fe)](_0x3dcf59)));}for(const [_0x416f22,_0x5730f8]of Object[_0x15a657(0x206)](_0x12c5b3)){if(_0x5730f8['length']>0x5)_0x40ad6c[_0x15a657(0x1fd)](_0x15a657(0x1f2)+_0x416f22+'/\x20('+_0x5730f8['length']+_0x15a657(0x1ff));else for(const _0x347ea6 of _0x5730f8){_0x40ad6c[_0x15a657(0x1fd)]('\x20\x20??\x20'+path[_0x15a657(0x1ea)](_0x416f22,_0x347ea6));}}for(const _0x38ba33 of _0x5672a0){_0x40ad6c[_0x15a657(0x1fd)](_0x15a657(0x1f2)+_0x38ba33);}}return _0x40ad6c['join']('\x0a');}function filterGitLog(_0x399387){const _0x84685a=a0_0x4aea8d,_0x347c75=_0x399387[_0x84685a(0x1e5)]('---END---')[_0x84685a(0x1da)](_0x49cacb=>_0x49cacb['trim']())['filter'](_0x53b65d=>_0x53b65d[_0x84685a(0x1f8)]>0x0);if(_0x347c75[_0x84685a(0x1f8)]===0x0)return _0x399387;const _0x3117a4=[];for(const _0x53c515 of _0x347c75){const _0x4590ea=_0x53c515[_0x84685a(0x1e5)]('\x0a'),_0x587404=_0x4590ea[0x0]||'',_0x41fd4c=_0x4590ea[_0x84685a(0x1f9)](0x1)[_0x84685a(0x1da)](_0x3d17a2=>_0x3d17a2['trim']())[_0x84685a(0x1ee)](_0x1c5ba9=>_0x1c5ba9['length']>0x0);_0x3117a4[_0x84685a(0x1fd)]('-\x20'+_0x587404),_0x41fd4c[_0x84685a(0x1f8)]>0x0&&(_0x3117a4[_0x84685a(0x1fd)]('\x20\x20'+_0x41fd4c[0x0]),_0x41fd4c[_0x84685a(0x1f8)]>0x1&&_0x3117a4[_0x84685a(0x1fd)](_0x84685a(0x20b)+(_0x41fd4c[_0x84685a(0x1f8)]-0x1)+_0x84685a(0x1d8)));}return _0x3117a4[_0x84685a(0x1ea)]('\x0a');}function a0_0x2e48(_0x27a52b,_0x533ef5){_0x27a52b=_0x27a52b-0x1d3;const _0x3b47a8=a0_0x3b47();let _0x2e4898=_0x3b47a8[_0x27a52b];return _0x2e4898;}function filterGitDiff(_0x33c057){const _0x2bc670=a0_0x4aea8d,_0x3d7e23=_0x33c057[_0x2bc670(0x1e5)]('\x0a'),_0x1677cf=[];let _0x75702='',_0x2c07f3=0x0,_0x951640=0x0,_0x40e4f8=[];const _0x2d0427=()=>{const _0x4d29e3=_0x2bc670;if(_0x75702&&(_0x2c07f3>0x0||_0x951640>0x0)){_0x1677cf[_0x4d29e3(0x1fd)](_0x4d29e3(0x1fc)+_0x75702+_0x4d29e3(0x20a)+_0x2c07f3+'\x20-'+_0x951640+')');const _0x3a6602=0xa,_0xa147f7=_0x40e4f8['slice'](0x0,_0x3a6602);for(const _0x58d552 of _0xa147f7){_0x1677cf[_0x4d29e3(0x1fd)]('\x20\x20'+_0x58d552);}const _0x23e071=_0x2c07f3+_0x951640-_0x3a6602;_0x23e071>0x0&&_0x1677cf['push'](_0x4d29e3(0x202)+_0x23e071+_0x4d29e3(0x201));}_0x2c07f3=0x0,_0x951640=0x0,_0x40e4f8=[];};for(const _0x722506 of _0x3d7e23){if(_0x722506['startsWith'](_0x2bc670(0x204))){_0x2d0427();const _0x226cfd=_0x722506[_0x2bc670(0x1e9)](/\sb\/(.+)$/);_0x75702=_0x226cfd?_0x226cfd[0x1]:'unknown_file';}else{if(_0x722506['startsWith']('+')&&!_0x722506[_0x2bc670(0x1eb)]('+++'))_0x2c07f3++,_0x40e4f8[_0x2bc670(0x1fd)](_0x722506);else _0x722506['startsWith']('-')&&!_0x722506['startsWith']('---')&&(_0x951640++,_0x40e4f8[_0x2bc670(0x1fd)](_0x722506));}}_0x2d0427();const _0x409518=_0x1677cf[_0x2bc670(0x1ea)]('\x0a');return _0x409518[_0x2bc670(0x1f8)]>0x0?_0x409518:_0x2bc670(0x1e7);}
1
+ 'use strict';const a0_0x1d3380=a0_0x4f4e;function a0_0x369e(){const _0x2ecb45=['\x20\x20...\x20(+','99fgeOIO','\x20lines\x20of\x20description)','configurable','1953904oxFaNJ','[file]\x20','1726431rDUDzj','basename','push','1656IMnqXQ','\x0aChanges:','slice','filterGitStatus','defineProperty','20GPKZBY','8QGXkOx','2237191KVfXuJ','\x20more\x20modifications','---','prototype','substring','path','trim','split','Clean\x20working\x20tree','\x20untracked\x20files)','__setModuleDefault','dirname','+++','default','map','\x20\x20??\x20','filter','\x20(+','__importStar','entries','__createBinding','getOwnPropertyDescriptor','45730rfjXNX','startsWith','3351nGXHTn','2780JRMmba','*\x20Branch:\x20','unknown_file','getOwnPropertyNames','create','length','13814rsTLcm','48EiMTlS','__esModule','\x20\x20...\x20+','join','No\x20modifications','/\x20(','diff\x20--git'];a0_0x369e=function(){return _0x2ecb45;};return a0_0x369e();}(function(_0xf81185,_0x30f818){const _0x39fb38=a0_0x4f4e,_0x49b0e8=_0xf81185();while(!![]){try{const _0x195f27=-parseInt(_0x39fb38(0x1cd))/0x1*(-parseInt(_0x39fb38(0x1ed))/0x2)+parseInt(_0x39fb38(0x1e6))/0x3*(parseInt(_0x39fb38(0x1cc))/0x4)+-parseInt(_0x39fb38(0x1e7))/0x5*(parseInt(_0x39fb38(0x1c7))/0x6)+-parseInt(_0x39fb38(0x1fb))/0x7+-parseInt(_0x39fb38(0x1f9))/0x8+-parseInt(_0x39fb38(0x1f6))/0x9*(parseInt(_0x39fb38(0x1e4))/0xa)+parseInt(_0x39fb38(0x1ce))/0xb*(parseInt(_0x39fb38(0x1ee))/0xc);if(_0x195f27===_0x30f818)break;else _0x49b0e8['push'](_0x49b0e8['shift']());}catch(_0x11e83d){_0x49b0e8['push'](_0x49b0e8['shift']());}}}(a0_0x369e,0x2be17));var __createBinding=this&&this[a0_0x1d3380(0x1e2)]||(Object[a0_0x1d3380(0x1eb)]?function(_0x1740e4,_0x305c19,_0x50aa70,_0x10d043){const _0x421cad=a0_0x1d3380;if(_0x10d043===undefined)_0x10d043=_0x50aa70;var _0x3f00b6=Object[_0x421cad(0x1e3)](_0x305c19,_0x50aa70);(!_0x3f00b6||('get'in _0x3f00b6?!_0x305c19['__esModule']:_0x3f00b6['writable']||_0x3f00b6[_0x421cad(0x1f8)]))&&(_0x3f00b6={'enumerable':!![],'get':function(){return _0x305c19[_0x50aa70];}}),Object[_0x421cad(0x1cb)](_0x1740e4,_0x10d043,_0x3f00b6);}:function(_0x58df25,_0xb85dc0,_0x13f5b7,_0x3e2600){if(_0x3e2600===undefined)_0x3e2600=_0x13f5b7;_0x58df25[_0x3e2600]=_0xb85dc0[_0x13f5b7];}),__setModuleDefault=this&&this[a0_0x1d3380(0x1d8)]||(Object[a0_0x1d3380(0x1eb)]?function(_0x78ee65,_0x537761){const _0x3455a2=a0_0x1d3380;Object[_0x3455a2(0x1cb)](_0x78ee65,_0x3455a2(0x1db),{'enumerable':!![],'value':_0x537761});}:function(_0x3921b7,_0x45900a){_0x3921b7['default']=_0x45900a;}),__importStar=this&&this[a0_0x1d3380(0x1e0)]||(function(){var _0xadfad3=function(_0x234200){const _0x201f8e=a0_0x4f4e;return _0xadfad3=Object[_0x201f8e(0x1ea)]||function(_0x453eb8){const _0x50f47f=_0x201f8e;var _0x4e53b9=[];for(var _0x544126 in _0x453eb8)if(Object[_0x50f47f(0x1d1)]['hasOwnProperty']['call'](_0x453eb8,_0x544126))_0x4e53b9[_0x4e53b9[_0x50f47f(0x1ec)]]=_0x544126;return _0x4e53b9;},_0xadfad3(_0x234200);};return function(_0x5680db){const _0x457e0b=a0_0x4f4e;if(_0x5680db&&_0x5680db[_0x457e0b(0x1ef)])return _0x5680db;var _0x263200={};if(_0x5680db!=null){for(var _0x5f00bf=_0xadfad3(_0x5680db),_0x33c58a=0x0;_0x33c58a<_0x5f00bf[_0x457e0b(0x1ec)];_0x33c58a++)if(_0x5f00bf[_0x33c58a]!==_0x457e0b(0x1db))__createBinding(_0x263200,_0x5680db,_0x5f00bf[_0x33c58a]);}return __setModuleDefault(_0x263200,_0x5680db),_0x263200;};}());Object['defineProperty'](exports,a0_0x1d3380(0x1ef),{'value':!![]}),exports[a0_0x1d3380(0x1ca)]=filterGitStatus,exports['filterGitLog']=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x1d3380(0x1d3)));function filterGitStatus(_0xc0e3f4){const _0x28528a=a0_0x1d3380,_0x48da27=_0xc0e3f4[_0x28528a(0x1d5)]('\x0a')[_0x28528a(0x1dc)](_0x36ac8d=>_0x36ac8d[_0x28528a(0x1d4)]())['filter'](_0x1dcabc=>_0x1dcabc['length']>0x0);if(_0x48da27[_0x28528a(0x1ec)]===0x0)return _0x28528a(0x1d6);const _0x31df23=[],_0x35304f=[],_0xe8871f=[];for(const _0x1725e4 of _0x48da27){if(_0x1725e4[_0x28528a(0x1e5)]('##')){const _0x178249=_0x1725e4['replace'](/^##\s*/,'');_0x31df23['push'](_0x28528a(0x1e8)+_0x178249);}else _0x1725e4[_0x28528a(0x1e5)]('??')?_0x35304f['push'](_0x1725e4[_0x28528a(0x1d2)](0x3)[_0x28528a(0x1d4)]()):_0xe8871f['push'](_0x1725e4);}_0xe8871f[_0x28528a(0x1ec)]>0x0&&(_0x31df23[_0x28528a(0x1fd)](_0x28528a(0x1c8)),_0x31df23[_0x28528a(0x1fd)](..._0xe8871f[_0x28528a(0x1dc)](_0xa11a21=>'\x20\x20'+_0xa11a21)));if(_0x35304f[_0x28528a(0x1ec)]>0x0){_0x31df23[_0x28528a(0x1fd)]('\x0aUntracked\x20files:');const _0x500b2f={},_0x4b1ef9=[];for(const _0xdd71a of _0x35304f){const _0x3e0720=path[_0x28528a(0x1d9)](_0xdd71a);_0x3e0720==='.'||_0x3e0720===''?_0x4b1ef9['push'](_0xdd71a):(!_0x500b2f[_0x3e0720]&&(_0x500b2f[_0x3e0720]=[]),_0x500b2f[_0x3e0720][_0x28528a(0x1fd)](path[_0x28528a(0x1fc)](_0xdd71a)));}for(const [_0x22c2d8,_0x2a6be2]of Object[_0x28528a(0x1e1)](_0x500b2f)){if(_0x2a6be2[_0x28528a(0x1ec)]>0x5)_0x31df23[_0x28528a(0x1fd)](_0x28528a(0x1dd)+_0x22c2d8+_0x28528a(0x1f3)+_0x2a6be2[_0x28528a(0x1ec)]+_0x28528a(0x1d7));else for(const _0x47f3e3 of _0x2a6be2){_0x31df23['push'](_0x28528a(0x1dd)+path[_0x28528a(0x1f1)](_0x22c2d8,_0x47f3e3));}}for(const _0x34e088 of _0x4b1ef9){_0x31df23[_0x28528a(0x1fd)](_0x28528a(0x1dd)+_0x34e088);}}return _0x31df23['join']('\x0a');}function filterGitLog(_0x585d2e){const _0x5ed42a=a0_0x1d3380,_0x25a164=_0x585d2e['split']('---END---')['map'](_0x1375e5=>_0x1375e5[_0x5ed42a(0x1d4)]())['filter'](_0x352ad1=>_0x352ad1['length']>0x0);if(_0x25a164['length']===0x0)return _0x585d2e;const _0x5d2056=[];for(const _0x4d0f7f of _0x25a164){const _0x18f40d=_0x4d0f7f[_0x5ed42a(0x1d5)]('\x0a'),_0x2db5fe=_0x18f40d[0x0]||'',_0x5627e3=_0x18f40d[_0x5ed42a(0x1c9)](0x1)[_0x5ed42a(0x1dc)](_0x403b32=>_0x403b32[_0x5ed42a(0x1d4)]())[_0x5ed42a(0x1de)](_0x1a4a5f=>_0x1a4a5f[_0x5ed42a(0x1ec)]>0x0);_0x5d2056['push']('-\x20'+_0x2db5fe),_0x5627e3[_0x5ed42a(0x1ec)]>0x0&&(_0x5d2056[_0x5ed42a(0x1fd)]('\x20\x20'+_0x5627e3[0x0]),_0x5627e3[_0x5ed42a(0x1ec)]>0x1&&_0x5d2056[_0x5ed42a(0x1fd)](_0x5ed42a(0x1f5)+(_0x5627e3[_0x5ed42a(0x1ec)]-0x1)+_0x5ed42a(0x1f7)));}return _0x5d2056[_0x5ed42a(0x1f1)]('\x0a');}function a0_0x4f4e(_0x771280,_0x550ea0){_0x771280=_0x771280-0x1c7;const _0x369e40=a0_0x369e();let _0x4f4e76=_0x369e40[_0x771280];return _0x4f4e76;}function filterGitDiff(_0x2d8a38){const _0x3bb7fa=a0_0x1d3380,_0x4354c6=_0x2d8a38[_0x3bb7fa(0x1d5)]('\x0a'),_0x3b1f01=[];let _0x5abc1c='',_0x5cdce5=0x0,_0x20653f=0x0,_0x2d4796=[];const _0x4bcd45=()=>{const _0x1be134=_0x3bb7fa;if(_0x5abc1c&&(_0x5cdce5>0x0||_0x20653f>0x0)){_0x3b1f01['push'](_0x1be134(0x1fa)+_0x5abc1c+_0x1be134(0x1df)+_0x5cdce5+'\x20-'+_0x20653f+')');const _0x45909e=0xa,_0x1c375b=_0x2d4796[_0x1be134(0x1c9)](0x0,_0x45909e);for(const _0x5d5b2b of _0x1c375b){_0x3b1f01[_0x1be134(0x1fd)]('\x20\x20'+_0x5d5b2b);}const _0x5ec2af=_0x5cdce5+_0x20653f-_0x45909e;_0x5ec2af>0x0&&_0x3b1f01[_0x1be134(0x1fd)](_0x1be134(0x1f0)+_0x5ec2af+_0x1be134(0x1cf));}_0x5cdce5=0x0,_0x20653f=0x0,_0x2d4796=[];};for(const _0x1d73ed of _0x4354c6){if(_0x1d73ed[_0x3bb7fa(0x1e5)](_0x3bb7fa(0x1f4))){_0x4bcd45();const _0x131eb1=_0x1d73ed['match'](/\sb\/(.+)$/);_0x5abc1c=_0x131eb1?_0x131eb1[0x1]:_0x3bb7fa(0x1e9);}else{if(_0x1d73ed[_0x3bb7fa(0x1e5)]('+')&&!_0x1d73ed[_0x3bb7fa(0x1e5)](_0x3bb7fa(0x1da)))_0x5cdce5++,_0x2d4796[_0x3bb7fa(0x1fd)](_0x1d73ed);else _0x1d73ed[_0x3bb7fa(0x1e5)]('-')&&!_0x1d73ed['startsWith'](_0x3bb7fa(0x1d0))&&(_0x20653f++,_0x2d4796[_0x3bb7fa(0x1fd)](_0x1d73ed));}}_0x4bcd45();const _0x5a01b1=_0x3b1f01[_0x3bb7fa(0x1f1)]('\x0a');return _0x5a01b1[_0x3bb7fa(0x1ec)]>0x0?_0x5a01b1:_0x3bb7fa(0x1f2);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x316b93=a0_0x47c2;(function(_0x511ec8,_0x175ea4){const _0x59d754=a0_0x47c2,_0x25d2be=_0x511ec8();while(!![]){try{const _0x4fb72e=-parseInt(_0x59d754(0xc5))/0x1*(-parseInt(_0x59d754(0xa5))/0x2)+-parseInt(_0x59d754(0xb9))/0x3*(parseInt(_0x59d754(0xab))/0x4)+parseInt(_0x59d754(0xbb))/0x5+parseInt(_0x59d754(0xaf))/0x6*(-parseInt(_0x59d754(0xa6))/0x7)+parseInt(_0x59d754(0xa3))/0x8+parseInt(_0x59d754(0xbd))/0x9+-parseInt(_0x59d754(0xb8))/0xa*(parseInt(_0x59d754(0xc6))/0xb);if(_0x4fb72e===_0x175ea4)break;else _0x25d2be['push'](_0x25d2be['shift']());}catch(_0x23f624){_0x25d2be['push'](_0x25d2be['shift']());}}}(a0_0x4da5,0x4184f));Object[a0_0x316b93(0xad)](exports,a0_0x316b93(0xb3),{'value':!![]}),exports['filterGoTest']=filterGoTest,exports[a0_0x316b93(0x9f)]=filterGoVet;function a0_0x4da5(){const _0xc2318c=['trim','name','lines','3711088InmQwo','Go\x20test:\x20no\x20test\x20files','2VijexP','343ZtinSd','\x20passed,\x20','---\x20SKIP:','Go\x20test:\x20all\x20tests\x20passed','includes','12psoYya','...\x20+','defineProperty','\x20passed','19602QcKnvz','startsWith','===\x20RUN','min','__esModule','slice','\x20\x20\x20\x20...\x20+','PASS','\x20\x20...\x20+','40IeCIgV','252375xURJdn','Go\x20vet:\x20no\x20issues\x20found','449845AEvREb','\x20failed,\x20','2285739okkAEd','length','match','\x20skipped','push','filter','split','join','128627jTSxAB','702977cphuBo','Go\x20test:\x20','\x20more\x20issues','\x20more\x20lines','filterGoVet'];a0_0x4da5=function(){return _0xc2318c;};return a0_0x4da5();}function a0_0x47c2(_0x2977b,_0x3713e3){_0x2977b=_0x2977b-0x9c;const _0x4da523=a0_0x4da5();let _0x47c239=_0x4da523[_0x2977b];return _0x47c239;}function filterGoTest(_0x3e9c05){const _0x5e155b=a0_0x316b93,_0xeac7e4=_0x3e9c05[_0x5e155b(0xc3)]('\x0a');let _0x14e469=0x0,_0x46670d=0x0,_0x4fc139=0x0;const _0x58bc97=[],_0x3397a1=[];let _0x107f48=null;for(const _0x598699 of _0xeac7e4){const _0x480091=_0x598699[_0x5e155b(0xa0)](),_0x3bf102=_0x480091[_0x5e155b(0xbf)](/^ok\s+\S+\s+[\d.]+s/);if(_0x3bf102){_0x3397a1[_0x5e155b(0xc1)](_0x480091);continue;}const _0x47f6d6=_0x480091['match'](/^FAIL\s+\S+/);if(_0x47f6d6){_0x3397a1[_0x5e155b(0xc1)](_0x480091);continue;}const _0x27fd4d=_0x480091[_0x5e155b(0xbf)](/^--- PASS:/);if(_0x27fd4d){_0x14e469++;continue;}const _0x59ec8a=_0x480091[_0x5e155b(0xbf)](/^--- FAIL:\s+(\S+)/);if(_0x59ec8a){if(_0x107f48)_0x58bc97[_0x5e155b(0xc1)](_0x107f48);_0x107f48={'name':_0x59ec8a[0x1],'lines':[]},_0x46670d++;continue;}if(_0x480091[_0x5e155b(0xb0)](_0x5e155b(0xa8))){_0x4fc139++;continue;}_0x107f48&&_0x480091[_0x5e155b(0xbe)]>0x0&&!_0x480091[_0x5e155b(0xb0)](_0x5e155b(0xb1))&&_0x107f48[_0x5e155b(0xa2)][_0x5e155b(0xc1)](_0x598699),_0x480091[_0x5e155b(0xb0)](_0x5e155b(0xb1))&&(_0x107f48&&(_0x58bc97[_0x5e155b(0xc1)](_0x107f48),_0x107f48=null));}if(_0x107f48)_0x58bc97[_0x5e155b(0xc1)](_0x107f48);if(_0x14e469===0x0&&_0x46670d===0x0&&_0x4fc139===0x0){if(_0x3e9c05[_0x5e155b(0xaa)](_0x5e155b(0xb6))&&!_0x3e9c05[_0x5e155b(0xaa)]('FAIL'))return _0x5e155b(0xa9);if(_0x3e9c05[_0x5e155b(0xaa)]('no\x20test\x20files'))return _0x5e155b(0xa4);return _0x3e9c05;}if(_0x46670d===0x0){const _0xa75425=[_0x5e155b(0x9c)+_0x14e469+_0x5e155b(0xae)];if(_0x4fc139>0x0)_0xa75425['push'](_0x4fc139+_0x5e155b(0xc0));return _0xa75425[_0x5e155b(0xc4)](',\x20');}const _0x135d1b=[_0x5e155b(0x9c)+_0x14e469+_0x5e155b(0xa7)+_0x46670d+_0x5e155b(0xbc)+_0x4fc139+_0x5e155b(0xc0)];if(_0x58bc97[_0x5e155b(0xbe)]>0x0){_0x135d1b[_0x5e155b(0xc1)]('\x0aFailures:');const _0x30e900=0x3;for(let _0x1ee5d7=0x0;_0x1ee5d7<Math[_0x5e155b(0xb2)](_0x58bc97[_0x5e155b(0xbe)],_0x30e900);_0x1ee5d7++){const _0x507ed6=_0x58bc97[_0x1ee5d7];_0x135d1b[_0x5e155b(0xc1)]('\x20\x20'+(_0x1ee5d7+0x1)+'.\x20'+_0x507ed6[_0x5e155b(0xa1)]);for(const _0x4ee789 of _0x507ed6['lines'][_0x5e155b(0xb4)](0x0,0x5)){_0x135d1b['push']('\x20\x20\x20\x20'+_0x4ee789[_0x5e155b(0xa0)]());}_0x507ed6[_0x5e155b(0xa2)][_0x5e155b(0xbe)]>0x5&&_0x135d1b[_0x5e155b(0xc1)](_0x5e155b(0xb5)+(_0x507ed6[_0x5e155b(0xa2)]['length']-0x5)+_0x5e155b(0x9e));}_0x58bc97['length']>_0x30e900&&_0x135d1b[_0x5e155b(0xc1)](_0x5e155b(0xb7)+(_0x58bc97[_0x5e155b(0xbe)]-_0x30e900)+'\x20more\x20failures');}return _0x135d1b[_0x5e155b(0xc4)]('\x0a');}function filterGoVet(_0x402439){const _0x2a6170=a0_0x316b93,_0x50e1e1=_0x402439['split']('\x0a')[_0x2a6170(0xc2)](_0xc72212=>_0xc72212[_0x2a6170(0xa0)]()[_0x2a6170(0xbe)]>0x0);if(_0x50e1e1['length']===0x0)return _0x2a6170(0xba);if(_0x50e1e1[_0x2a6170(0xbe)]<=0x14)return _0x402439[_0x2a6170(0xa0)]();const _0x20eac4=['Go\x20vet:\x20'+_0x50e1e1['length']+'\x20issues\x20found'];return _0x20eac4['push'](..._0x50e1e1[_0x2a6170(0xb4)](0x0,0xa)),_0x50e1e1[_0x2a6170(0xbe)]>0xa&&_0x20eac4['push'](_0x2a6170(0xac)+(_0x50e1e1[_0x2a6170(0xbe)]-0xa)+_0x2a6170(0x9d)),_0x20eac4[_0x2a6170(0xc4)]('\x0a');}
1
+ 'use strict';function a0_0x51fe(_0x105442,_0x3b7968){_0x105442=_0x105442-0x1b8;const _0x50f160=a0_0x50f1();let _0x51fe6b=_0x50f160[_0x105442];return _0x51fe6b;}const a0_0x4a6118=a0_0x51fe;(function(_0x354d66,_0x576a2b){const _0x22a4c6=a0_0x51fe,_0x730062=_0x354d66();while(!![]){try{const _0x2a1849=parseInt(_0x22a4c6(0x1b9))/0x1*(parseInt(_0x22a4c6(0x1d8))/0x2)+-parseInt(_0x22a4c6(0x1c0))/0x3+-parseInt(_0x22a4c6(0x1c7))/0x4+-parseInt(_0x22a4c6(0x1c6))/0x5+-parseInt(_0x22a4c6(0x1e2))/0x6*(-parseInt(_0x22a4c6(0x1d6))/0x7)+parseInt(_0x22a4c6(0x1e0))/0x8+-parseInt(_0x22a4c6(0x1bf))/0x9*(-parseInt(_0x22a4c6(0x1c4))/0xa);if(_0x2a1849===_0x576a2b)break;else _0x730062['push'](_0x730062['shift']());}catch(_0x4c542c){_0x730062['push'](_0x730062['shift']());}}}(a0_0x50f1,0x72830));Object[a0_0x4a6118(0x1d9)](exports,'__esModule',{'value':!![]}),exports[a0_0x4a6118(0x1cb)]=filterGoTest,exports['filterGoVet']=filterGoVet;function a0_0x50f1(){const _0x4ce9e6=['\x20\x20\x20\x20','push','trim','PASS','match','5747440icglfx','\x20more\x20failures','50574qQSYvj','includes','5hvSekl','startsWith','lines','split','slice','\x20more\x20issues','40923QbtbWm','1329252ZNZONh','Go\x20vet:\x20','Go\x20test:\x20','\x20issues\x20found','2180MIQabF','\x20skipped','834210BvyWOE','2969348amWstV','Go\x20test:\x20no\x20test\x20files','\x20failed,\x20','\x0aFailures:','filterGoTest','FAIL','\x20passed','Go\x20test:\x20all\x20tests\x20passed','\x20\x20...\x20+','===\x20RUN','\x20passed,\x20','join','min','length','\x20more\x20lines','91xvMLLN','---\x20SKIP:','820LnvqoY','defineProperty','filter'];a0_0x50f1=function(){return _0x4ce9e6;};return a0_0x50f1();}function filterGoTest(_0x4d6e37){const _0x3c1451=a0_0x4a6118,_0x6b193e=_0x4d6e37[_0x3c1451(0x1bc)]('\x0a');let _0x16e369=0x0,_0x28dbb8=0x0,_0x9f05cd=0x0;const _0x2d6d6c=[],_0x49a0b2=[];let _0x1f6524=null;for(const _0xb53f3f of _0x6b193e){const _0x17a0ca=_0xb53f3f['trim'](),_0xf01596=_0x17a0ca[_0x3c1451(0x1df)](/^ok\s+\S+\s+[\d.]+s/);if(_0xf01596){_0x49a0b2['push'](_0x17a0ca);continue;}const _0x3a90ea=_0x17a0ca[_0x3c1451(0x1df)](/^FAIL\s+\S+/);if(_0x3a90ea){_0x49a0b2['push'](_0x17a0ca);continue;}const _0x140810=_0x17a0ca[_0x3c1451(0x1df)](/^--- PASS:/);if(_0x140810){_0x16e369++;continue;}const _0x28e60a=_0x17a0ca['match'](/^--- FAIL:\s+(\S+)/);if(_0x28e60a){if(_0x1f6524)_0x2d6d6c[_0x3c1451(0x1dc)](_0x1f6524);_0x1f6524={'name':_0x28e60a[0x1],'lines':[]},_0x28dbb8++;continue;}if(_0x17a0ca[_0x3c1451(0x1ba)](_0x3c1451(0x1d7))){_0x9f05cd++;continue;}_0x1f6524&&_0x17a0ca[_0x3c1451(0x1d4)]>0x0&&!_0x17a0ca[_0x3c1451(0x1ba)]('===\x20RUN')&&_0x1f6524['lines'][_0x3c1451(0x1dc)](_0xb53f3f),_0x17a0ca['startsWith'](_0x3c1451(0x1d0))&&(_0x1f6524&&(_0x2d6d6c[_0x3c1451(0x1dc)](_0x1f6524),_0x1f6524=null));}if(_0x1f6524)_0x2d6d6c[_0x3c1451(0x1dc)](_0x1f6524);if(_0x16e369===0x0&&_0x28dbb8===0x0&&_0x9f05cd===0x0){if(_0x4d6e37[_0x3c1451(0x1b8)](_0x3c1451(0x1de))&&!_0x4d6e37[_0x3c1451(0x1b8)](_0x3c1451(0x1cc)))return _0x3c1451(0x1ce);if(_0x4d6e37[_0x3c1451(0x1b8)]('no\x20test\x20files'))return _0x3c1451(0x1c8);return _0x4d6e37;}if(_0x28dbb8===0x0){const _0x183441=[_0x3c1451(0x1c2)+_0x16e369+_0x3c1451(0x1cd)];if(_0x9f05cd>0x0)_0x183441[_0x3c1451(0x1dc)](_0x9f05cd+_0x3c1451(0x1c5));return _0x183441[_0x3c1451(0x1d2)](',\x20');}const _0x5f3bb0=[_0x3c1451(0x1c2)+_0x16e369+_0x3c1451(0x1d1)+_0x28dbb8+_0x3c1451(0x1c9)+_0x9f05cd+_0x3c1451(0x1c5)];if(_0x2d6d6c[_0x3c1451(0x1d4)]>0x0){_0x5f3bb0[_0x3c1451(0x1dc)](_0x3c1451(0x1ca));const _0x230d4d=0x3;for(let _0x2eba37=0x0;_0x2eba37<Math[_0x3c1451(0x1d3)](_0x2d6d6c[_0x3c1451(0x1d4)],_0x230d4d);_0x2eba37++){const _0x33f57b=_0x2d6d6c[_0x2eba37];_0x5f3bb0[_0x3c1451(0x1dc)]('\x20\x20'+(_0x2eba37+0x1)+'.\x20'+_0x33f57b['name']);for(const _0x4961c7 of _0x33f57b[_0x3c1451(0x1bb)]['slice'](0x0,0x5)){_0x5f3bb0[_0x3c1451(0x1dc)](_0x3c1451(0x1db)+_0x4961c7[_0x3c1451(0x1dd)]());}_0x33f57b[_0x3c1451(0x1bb)][_0x3c1451(0x1d4)]>0x5&&_0x5f3bb0[_0x3c1451(0x1dc)]('\x20\x20\x20\x20...\x20+'+(_0x33f57b[_0x3c1451(0x1bb)][_0x3c1451(0x1d4)]-0x5)+_0x3c1451(0x1d5));}_0x2d6d6c['length']>_0x230d4d&&_0x5f3bb0[_0x3c1451(0x1dc)](_0x3c1451(0x1cf)+(_0x2d6d6c[_0x3c1451(0x1d4)]-_0x230d4d)+_0x3c1451(0x1e1));}return _0x5f3bb0[_0x3c1451(0x1d2)]('\x0a');}function filterGoVet(_0x5367e6){const _0x27701d=a0_0x4a6118,_0x1eae87=_0x5367e6[_0x27701d(0x1bc)]('\x0a')[_0x27701d(0x1da)](_0x6c5ea6=>_0x6c5ea6[_0x27701d(0x1dd)]()[_0x27701d(0x1d4)]>0x0);if(_0x1eae87['length']===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x1eae87[_0x27701d(0x1d4)]<=0x14)return _0x5367e6[_0x27701d(0x1dd)]();const _0xe4010e=[_0x27701d(0x1c1)+_0x1eae87[_0x27701d(0x1d4)]+_0x27701d(0x1c3)];return _0xe4010e[_0x27701d(0x1dc)](..._0x1eae87[_0x27701d(0x1bd)](0x0,0xa)),_0x1eae87['length']>0xa&&_0xe4010e[_0x27701d(0x1dc)]('...\x20+'+(_0x1eae87[_0x27701d(0x1d4)]-0xa)+_0x27701d(0x1be)),_0xe4010e['join']('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x2e24(){const _0xfc0270=['rewriteCommand','trim\x20find','yarn\x20test','trim\x20read','trim\x20tree','filterGitLog','filterNpmInstall','400jWXYkK','compressOutput','[minified\x20file]','redact','2IqgbOn','startsWith','trim\x20go','[lock\x20file]','filterDockerImages','match','ruff\x20check','npm\x20i','filterCargoTest','git\x20show','text','cargo\x20build','trim\x20glab','pytest','secretsFound','length','includes','redactor','./git','jest','git\x20diff','tracker','trim\x20','endsWith','trim\x20pytest','./rust','test','4568883HiEPMg','secretTypes','filterCargoBuild','cargo\x20test','npm\x20test','trim\x20npm','vitest','ruff\x20','filterFind','pip\x20install','kubectl','355766rRfsxc','6zDQwGN','cargo\x20check','push','10cuzJfL','trim\x20ruff','../redactor','filterLs','./shell','\x20ls','trim\x20cargo','whitespace','trim\x20pnpm','filterGitStatus','softTruncate','defineProperty','npm\x20i\x20','523975EQuzqz','trim','[binary','trim\x20kubectl','lastRedactAudit','git\x20log','yadm\x20log','filterTree','some','./devops','trim\x20ls','trim\x20pip','lastFeatures','yadm\x20diff','go\x20vet','npm\x20install','pattern','2705017wwpVeV','ansi_strip','./go','trim\x20npx','trim\x20git','\x20ls\x20','collapseDuplicates','pip3\x20install','redactWithAudit','getConfig','726090HMCGrj','3204XhrFPd','./generic','./python','yarn\x20install','trim\x20gh','cargo\x20clippy','npm\x20run\x20test','filterDockerLogs','collapseWhitespace','trim\x20grep','filter','1325188udqmRF','lock','[code\x20skeleton]','filterRuff','filterGoVet','pnpm\x20install','toLowerCase'];a0_0x2e24=function(){return _0xfc0270;};return a0_0x2e24();}const a0_0x422d3a=a0_0x25f7;(function(_0x346278,_0x28669d){const _0x17c20d=a0_0x25f7,_0x487fd7=_0x346278();while(!![]){try{const _0x361cf9=-parseInt(_0x17c20d(0x167))/0x1*(-parseInt(_0x17c20d(0x141))/0x2)+parseInt(_0x17c20d(0x193))/0x3+parseInt(_0x17c20d(0x12f))/0x4+parseInt(_0x17c20d(0x178))/0x5+-parseInt(_0x17c20d(0x168))/0x6*(parseInt(_0x17c20d(0x189))/0x7)+parseInt(_0x17c20d(0x13d))/0x8*(-parseInt(_0x17c20d(0x194))/0x9)+-parseInt(_0x17c20d(0x16b))/0xa*(parseInt(_0x17c20d(0x15c))/0xb);if(_0x361cf9===_0x28669d)break;else _0x487fd7['push'](_0x487fd7['shift']());}catch(_0x1a1c5b){_0x487fd7['push'](_0x487fd7['shift']());}}}(a0_0x2e24,0x34520));Object[a0_0x422d3a(0x176)](exports,'__esModule',{'value':!![]}),exports['lastFeatures']=exports[a0_0x422d3a(0x17c)]=void 0x0,exports[a0_0x422d3a(0x13e)]=compressOutput,exports[a0_0x422d3a(0x136)]=rewriteCommand;const generic_1=require(a0_0x422d3a(0x195)),git_1=require(a0_0x422d3a(0x153)),python_1=require(a0_0x422d3a(0x196)),js_1=require('./js'),shell_1=require(a0_0x422d3a(0x16f)),rust_1=require(a0_0x422d3a(0x15a)),go_1=require(a0_0x422d3a(0x18b)),devops_1=require(a0_0x422d3a(0x181)),redactor_1=require(a0_0x422d3a(0x16d)),tracker_1=require('../tracker');function a0_0x25f7(_0x315bcd,_0x27ab4b){_0x315bcd=_0x315bcd-0x12a;const _0x2e2410=a0_0x2e24();let _0x25f7a4=_0x2e2410[_0x315bcd];return _0x25f7a4;}exports['lastRedactAudit']={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x422d3a(0x184)]=[];function isFeatureEnabled(_0x288687){const _0x2ec89b=a0_0x422d3a;try{const _0x5482f8=tracker_1[_0x2ec89b(0x156)][_0x2ec89b(0x192)](),_0x8da899=_0x5482f8['features_enabled'];if(!_0x8da899||_0x8da899[_0x288687]===undefined)return!![];return _0x8da899[_0x288687]!==![];}catch{return!![];}}function compressOutput(_0x10429,_0x4c256a,_0x469175,_0x3b2ea4=!![]){const _0x4925b9=a0_0x422d3a,_0x4d319f=_0x10429[_0x4925b9(0x179)]();let _0x1265ef=_0x4c256a;_0x469175[_0x4925b9(0x179)]()[_0x4925b9(0x150)]>0x0&&(_0x1265ef=_0x4c256a+'\x0a'+_0x469175);let _0x23e482=isFeatureEnabled(_0x4925b9(0x18a))?(0x0,generic_1['stripAnsi'])(_0x1265ef):_0x1265ef;const _0x2557a5=[];if(_0x23e482[_0x4925b9(0x150)]<_0x1265ef[_0x4925b9(0x150)])_0x2557a5['push'](_0x4925b9(0x18a));const _0x5839d4=(_0x291e67,_0x23d784)=>{const _0x2f6f10=_0x4925b9;return _0x2557a5[_0x2f6f10(0x16a)](_0x291e67),exports[_0x2f6f10(0x184)]=_0x2557a5,_0x23d784;};if(_0x3b2ea4&&isFeatureEnabled(_0x4925b9(0x140))){const _0x3e08a7=redactor_1[_0x4925b9(0x152)][_0x4925b9(0x191)](_0x23e482);_0x23e482=_0x3e08a7[_0x4925b9(0x14b)],exports['lastRedactAudit']={'secretsFound':_0x3e08a7[_0x4925b9(0x14f)],'secretTypes':_0x3e08a7[_0x4925b9(0x15d)]};if(_0x3e08a7['secretsFound']>0x0)_0x2557a5[_0x4925b9(0x16a)]('redact');}else exports[_0x4925b9(0x17c)]={'secretsFound':0x0,'secretTypes':[]};const _0x4ee5b9=_0x4d319f[_0x4925b9(0x135)](),_0x10af7f=isFeatureEnabled(_0x4925b9(0x12e));try{if(_0x10af7f){if(_0x4ee5b9['includes']('git\x20status')||_0x4ee5b9[_0x4925b9(0x151)]('yadm\x20status'))return _0x5839d4(_0x4925b9(0x12e),(0x0,git_1[_0x4925b9(0x174)])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x17d))||_0x4ee5b9['includes'](_0x4925b9(0x17e)))return _0x5839d4(_0x4925b9(0x12e),(0x0,git_1[_0x4925b9(0x13b)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x155))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x14a))||_0x4ee5b9['includes'](_0x4925b9(0x185)))return _0x5839d4('filter',(0x0,git_1['filterGitDiff'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x14e))||_0x4ee5b9[_0x4925b9(0x146)](/python3?\s+-m\s+pytest/))return _0x5839d4(_0x4925b9(0x12e),(0x0,python_1['filterPytest'])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x165))||_0x4ee5b9['includes'](_0x4925b9(0x190)))return _0x5839d4('filter',(0x0,python_1['filterPipInstall'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x147))||_0x4ee5b9['includes'](_0x4925b9(0x163)))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1[_0x4925b9(0x132)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x187))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x177))||_0x4ee5b9[_0x4925b9(0x158)](_0x4925b9(0x148))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x134))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x197)))return _0x5839d4(_0x4925b9(0x12e),(0x0,js_1[_0x4925b9(0x13c)])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x154))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x162)))return _0x5839d4(_0x4925b9(0x12e),(0x0,js_1['filterJestVitest'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x160))||_0x4ee5b9[_0x4925b9(0x151)]('pnpm\x20test')||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x138))||_0x4ee5b9['includes'](_0x4925b9(0x12a)))return _0x5839d4(_0x4925b9(0x12e),(0x0,js_1['filterJestVitest'])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x15f)))return _0x5839d4(_0x4925b9(0x12e),(0x0,rust_1[_0x4925b9(0x149)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x14c))||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x169))||_0x4ee5b9['includes'](_0x4925b9(0x199)))return _0x5839d4(_0x4925b9(0x12e),(0x0,rust_1[_0x4925b9(0x15e)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)]('go\x20test'))return _0x5839d4(_0x4925b9(0x12e),(0x0,go_1['filterGoTest'])(_0x23e482));if(_0x4ee5b9['includes'](_0x4925b9(0x186)))return _0x5839d4(_0x4925b9(0x12e),(0x0,go_1[_0x4925b9(0x133)])(_0x23e482));if(_0x4ee5b9['match'](/docker\s+ps/))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1['filterDockerPs'])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x146)](/docker\s+images/))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1[_0x4925b9(0x145)])(_0x23e482));if(_0x4ee5b9['match'](/docker\s+logs/))return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1[_0x4925b9(0x12b)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x166))){const _0x4e8a12=_0x4ee5b9[_0x4925b9(0x146)](/kubectl\s+(get|logs|describe|apply)/),_0x321378=_0x4e8a12?_0x4e8a12[0x1]:'get';return _0x5839d4(_0x4925b9(0x12e),(0x0,devops_1['filterKubectl'])(_0x23e482,_0x321378));}if(_0x4ee5b9[_0x4925b9(0x146)](/^(ls|dir)(\s|$)/)||_0x4ee5b9[_0x4925b9(0x151)](_0x4925b9(0x18e))||_0x4ee5b9[_0x4925b9(0x158)](_0x4925b9(0x170)))return _0x5839d4(_0x4925b9(0x12e),(0x0,shell_1[_0x4925b9(0x16e)])(_0x23e482));if(_0x4ee5b9[_0x4925b9(0x146)](/^tree(\s|$)/)||_0x4ee5b9['includes']('\x20tree\x20')||_0x4ee5b9[_0x4925b9(0x158)]('\x20tree'))return _0x5839d4(_0x4925b9(0x12e),(0x0,shell_1[_0x4925b9(0x17f)])(_0x23e482));if(_0x4ee5b9['match'](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x436562=(0x0,shell_1['filterCat'])(_0x23e482,_0x4d319f);if(_0x436562[_0x4925b9(0x151)](_0x4925b9(0x144)))_0x2557a5[_0x4925b9(0x16a)](_0x4925b9(0x130));else{if(_0x436562[_0x4925b9(0x151)](_0x4925b9(0x17a))||_0x436562[_0x4925b9(0x151)](_0x4925b9(0x13f)))_0x2557a5[_0x4925b9(0x16a)]('binary');else{if(_0x436562['includes'](_0x4925b9(0x131)))_0x2557a5[_0x4925b9(0x16a)]('skeleton');else{if(_0x436562[_0x4925b9(0x151)]('|\x20')&&_0x436562['includes']('---')&&_0x436562['length']<_0x23e482[_0x4925b9(0x150)]*0.5)_0x2557a5[_0x4925b9(0x16a)]('json_crusher');else{if(_0x436562[_0x4925b9(0x151)]('lines\x20truncated'))_0x2557a5['push'](_0x4925b9(0x12e));}}}}if(_0x436562[_0x4925b9(0x150)]<_0x23e482[_0x4925b9(0x150)]&&!_0x2557a5[_0x4925b9(0x180)](_0xe30441=>_0xe30441!==_0x4925b9(0x18a)&&_0xe30441!=='redact'))_0x2557a5[_0x4925b9(0x16a)](_0x4925b9(0x12e));return exports[_0x4925b9(0x184)]=_0x2557a5,_0x436562;}if(_0x4ee5b9['match'](/^find(\s|$)/))return _0x5839d4('filter',(0x0,shell_1[_0x4925b9(0x164)])(_0x23e482));if(_0x4ee5b9['match'](/^(grep|rg|ripgrep)(\s|$)/))return _0x5839d4(_0x4925b9(0x12e),(0x0,shell_1['filterGrep'])(_0x23e482));}}catch(_0x2b3a09){}return isFeatureEnabled(_0x4925b9(0x172))&&(_0x23e482=(0x0,generic_1[_0x4925b9(0x12c)])(_0x23e482),_0x2557a5[_0x4925b9(0x16a)]('whitespace')),_0x23e482=(0x0,generic_1[_0x4925b9(0x18f)])(_0x23e482),_0x23e482=(0x0,generic_1[_0x4925b9(0x175)])(_0x23e482,0x4e20),exports[_0x4925b9(0x184)]=_0x2557a5,_0x23e482;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x422d3a(0x18d)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x422d3a(0x198)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x422d3a(0x14d)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x422d3a(0x171)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x422d3a(0x173)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x422d3a(0x161)},{'pattern':/^npx\s+/,'prefix':a0_0x422d3a(0x18c)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x422d3a(0x139)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x422d3a(0x12d)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x422d3a(0x182)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x422d3a(0x13a)},{'pattern':/^find\s+/,'prefix':a0_0x422d3a(0x137)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':'trim\x20docker'},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x422d3a(0x17b)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x422d3a(0x159)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x422d3a(0x16c)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x422d3a(0x183)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x422d3a(0x143)}];function rewriteCommand(_0x419f5e){const _0xa0fa9e=a0_0x422d3a,_0x1a1f7f=_0x419f5e[_0xa0fa9e(0x179)]();if(_0x1a1f7f[_0xa0fa9e(0x142)](_0xa0fa9e(0x157)))return _0x1a1f7f;for(const _0x94e93c of REWRITE_RULES){if(_0x94e93c[_0xa0fa9e(0x188)][_0xa0fa9e(0x15b)](_0x1a1f7f))return _0xa0fa9e(0x157)+_0x1a1f7f;}return _0x1a1f7f;}
1
+ 'use strict';const a0_0x435292=a0_0x257b;(function(_0x18c151,_0x579bd3){const _0x3abecd=a0_0x257b,_0x170069=_0x18c151();while(!![]){try{const _0x551e75=parseInt(_0x3abecd(0x258))/0x1*(-parseInt(_0x3abecd(0x246))/0x2)+-parseInt(_0x3abecd(0x242))/0x3+-parseInt(_0x3abecd(0x1ff))/0x4*(-parseInt(_0x3abecd(0x20d))/0x5)+-parseInt(_0x3abecd(0x235))/0x6+-parseInt(_0x3abecd(0x234))/0x7*(-parseInt(_0x3abecd(0x203))/0x8)+-parseInt(_0x3abecd(0x250))/0x9*(parseInt(_0x3abecd(0x21d))/0xa)+parseInt(_0x3abecd(0x221))/0xb;if(_0x551e75===_0x579bd3)break;else _0x170069['push'](_0x170069['shift']());}catch(_0x30f41b){_0x170069['push'](_0x170069['shift']());}}}(a0_0x101d,0x7ef85));Object[a0_0x435292(0x217)](exports,a0_0x435292(0x1ef),{'value':!![]}),exports['lastFeatures']=exports[a0_0x435292(0x22a)]=void 0x0,exports[a0_0x435292(0x241)]=compressOutput,exports[a0_0x435292(0x230)]=rewriteCommand;const generic_1=require(a0_0x435292(0x233)),git_1=require(a0_0x435292(0x220)),python_1=require(a0_0x435292(0x20f)),js_1=require(a0_0x435292(0x23b)),shell_1=require('./shell'),rust_1=require(a0_0x435292(0x215)),go_1=require(a0_0x435292(0x21e)),devops_1=require(a0_0x435292(0x208)),redactor_1=require('../redactor'),tracker_1=require('../tracker');exports[a0_0x435292(0x22a)]={'secretsFound':0x0,'secretTypes':[]},exports[a0_0x435292(0x1f9)]=[];function isFeatureEnabled(_0x432c78){const _0x10deb9=a0_0x435292;try{const _0xcbf01a=tracker_1[_0x10deb9(0x24f)][_0x10deb9(0x257)](),_0x287b20=_0xcbf01a['features_enabled'];if(!_0x287b20||_0x287b20[_0x432c78]===undefined)return!![];return _0x287b20[_0x432c78]!==![];}catch{return!![];}}function compressOutput(_0x3e8902,_0x2a37b9,_0x3bb29c,_0x219d42=!![]){const _0x4c2663=a0_0x435292,_0x298a55=_0x3e8902[_0x4c2663(0x228)]();let _0x264969=_0x2a37b9;_0x3bb29c[_0x4c2663(0x228)]()[_0x4c2663(0x207)]>0x0&&(_0x264969=_0x2a37b9+'\x0a'+_0x3bb29c);let _0x302439=isFeatureEnabled(_0x4c2663(0x216))?(0x0,generic_1[_0x4c2663(0x205)])(_0x264969):_0x264969;const _0x187491=[];if(_0x302439['length']<_0x264969[_0x4c2663(0x207)])_0x187491['push']('ansi_strip');const _0x2579b3=(_0x8a3ef8,_0x8ac28a)=>{const _0x37bfc7=_0x4c2663;return _0x187491[_0x37bfc7(0x23d)](_0x8a3ef8),exports[_0x37bfc7(0x1f9)]=_0x187491,_0x8ac28a;};if(_0x219d42&&isFeatureEnabled('redact')){const _0x57c443=redactor_1[_0x4c2663(0x23e)][_0x4c2663(0x251)](_0x302439);_0x302439=_0x57c443['text'],exports[_0x4c2663(0x22a)]={'secretsFound':_0x57c443[_0x4c2663(0x21a)],'secretTypes':_0x57c443[_0x4c2663(0x1f0)]};if(_0x57c443['secretsFound']>0x0)_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x21c));}else exports[_0x4c2663(0x22a)]={'secretsFound':0x0,'secretTypes':[]};const _0x31b0b2=_0x298a55[_0x4c2663(0x20c)](),_0x3d3f80=isFeatureEnabled(_0x4c2663(0x1f8));try{if(_0x3d3f80){if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x204))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1ee)))return _0x2579b3('filter',(0x0,git_1[_0x4c2663(0x227)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x212))||_0x31b0b2[_0x4c2663(0x200)]('yadm\x20log'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,git_1['filterGitLog'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x210))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x23f))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x21f)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,git_1['filterGitDiff'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22e))||_0x31b0b2['match'](/python3?\s+-m\s+pytest/))return _0x2579b3(_0x4c2663(0x1f8),(0x0,python_1[_0x4c2663(0x224)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1f1))||_0x31b0b2['includes'](_0x4c2663(0x1f6)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,python_1[_0x4c2663(0x238)])(_0x302439));if(_0x31b0b2['includes']('ruff\x20check')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x226)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,devops_1['filterRuff'])(_0x302439));if(_0x31b0b2['includes']('npm\x20install')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22f))||_0x31b0b2['endsWith'](_0x4c2663(0x248))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x20b))||_0x31b0b2[_0x4c2663(0x200)]('yarn\x20install'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1['filterNpmInstall'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x240))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x252)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1[_0x4c2663(0x1f4)])(_0x302439));if(_0x31b0b2['includes'](_0x4c2663(0x23c))||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x245))||_0x31b0b2['includes']('yarn\x20test')||_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x231)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,js_1[_0x4c2663(0x1f4)])(_0x302439));if(_0x31b0b2['includes'](_0x4c2663(0x206)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,rust_1[_0x4c2663(0x229)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1fb))||_0x31b0b2['includes'](_0x4c2663(0x211))||_0x31b0b2['includes']('cargo\x20clippy'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,rust_1[_0x4c2663(0x218)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)]('go\x20test'))return _0x2579b3(_0x4c2663(0x1f8),(0x0,go_1['filterGoTest'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x22b)))return _0x2579b3(_0x4c2663(0x1f8),(0x0,go_1['filterGoVet'])(_0x302439));if(_0x31b0b2['match'](/docker\s+ps/))return _0x2579b3('filter',(0x0,devops_1[_0x4c2663(0x247)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/docker\s+images/))return _0x2579b3('filter',(0x0,devops_1[_0x4c2663(0x24e)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/docker\s+logs/))return _0x2579b3('filter',(0x0,devops_1['filterDockerLogs'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x200)](_0x4c2663(0x1fc))){const _0x273380=_0x31b0b2[_0x4c2663(0x24d)](/kubectl\s+(get|logs|describe|apply)/),_0x2c2050=_0x273380?_0x273380[0x1]:_0x4c2663(0x20e);return _0x2579b3(_0x4c2663(0x1f8),(0x0,devops_1[_0x4c2663(0x236)])(_0x302439,_0x2c2050));}if(_0x31b0b2[_0x4c2663(0x24d)](/^(ls|dir)(\s|$)/)||_0x31b0b2['includes'](_0x4c2663(0x22d))||_0x31b0b2[_0x4c2663(0x243)](_0x4c2663(0x219)))return _0x2579b3('filter',(0x0,shell_1[_0x4c2663(0x24c)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^tree(\s|$)/)||_0x31b0b2[_0x4c2663(0x200)]('\x20tree\x20')||_0x31b0b2['endsWith']('\x20tree'))return _0x2579b3('filter',(0x0,shell_1[_0x4c2663(0x209)])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^(cat|head|tail|read|bat)(\s|$)/)){const _0x24e0a3=(0x0,shell_1['filterCat'])(_0x302439,_0x298a55);if(_0x24e0a3[_0x4c2663(0x200)](_0x4c2663(0x20a)))_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x1f5));else{if(_0x24e0a3['includes'](_0x4c2663(0x256))||_0x24e0a3[_0x4c2663(0x200)]('[minified\x20file]'))_0x187491[_0x4c2663(0x23d)]('binary');else{if(_0x24e0a3['includes'](_0x4c2663(0x1f7)))_0x187491[_0x4c2663(0x23d)]('skeleton');else{if(_0x24e0a3[_0x4c2663(0x200)]('|\x20')&&_0x24e0a3['includes'](_0x4c2663(0x1fa))&&_0x24e0a3[_0x4c2663(0x207)]<_0x302439[_0x4c2663(0x207)]*0.5)_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x21b));else{if(_0x24e0a3[_0x4c2663(0x200)]('lines\x20truncated'))_0x187491['push'](_0x4c2663(0x1f8));}}}}if(_0x24e0a3['length']<_0x302439[_0x4c2663(0x207)]&&!_0x187491[_0x4c2663(0x237)](_0x4ca836=>_0x4ca836!==_0x4c2663(0x216)&&_0x4ca836!==_0x4c2663(0x21c)))_0x187491[_0x4c2663(0x23d)](_0x4c2663(0x1f8));return exports['lastFeatures']=_0x187491,_0x24e0a3;}if(_0x31b0b2[_0x4c2663(0x24d)](/^find(\s|$)/))return _0x2579b3('filter',(0x0,shell_1['filterFind'])(_0x302439));if(_0x31b0b2[_0x4c2663(0x24d)](/^(grep|rg|ripgrep)(\s|$)/))return _0x2579b3(_0x4c2663(0x1f8),(0x0,shell_1[_0x4c2663(0x23a)])(_0x302439));}}catch(_0x2c5e37){}return isFeatureEnabled(_0x4c2663(0x1fd))&&(_0x302439=(0x0,generic_1[_0x4c2663(0x1fe)])(_0x302439),_0x187491['push'](_0x4c2663(0x1fd))),_0x302439=(0x0,generic_1[_0x4c2663(0x232)])(_0x302439),_0x302439=(0x0,generic_1[_0x4c2663(0x1f3)])(_0x302439,0x4e20),exports[_0x4c2663(0x1f9)]=_0x187491,_0x302439;}function a0_0x257b(_0x4d53a,_0x59d846){_0x4d53a=_0x4d53a-0x1ee;const _0x101d04=a0_0x101d();let _0x257b43=_0x101d04[_0x4d53a];return _0x257b43;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x435292(0x254)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x435292(0x24a)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x435292(0x22c)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x435292(0x244)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x435292(0x255)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x435292(0x213)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x435292(0x1f2)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x435292(0x201)},{'pattern':/^find\s+/,'prefix':a0_0x435292(0x202)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x435292(0x249)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x435292(0x239)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x435292(0x253)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x435292(0x24b)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x435292(0x222)},{'pattern':/^go\s+(test|build|vet)/,'prefix':'trim\x20go'}];function a0_0x101d(){const _0xd14b47=['pip3\x20install','[code\x20skeleton]','filter','lastFeatures','---','cargo\x20build','kubectl','whitespace','collapseWhitespace','56UfIdfn','includes','trim\x20tree','trim\x20find','680SURsGQ','git\x20status','stripAnsi','cargo\x20test','length','./devops','filterTree','[lock\x20file]','pnpm\x20install','toLowerCase','144465KpkIiS','get','./python','git\x20diff','cargo\x20check','git\x20log','trim\x20read','pattern','./rust','ansi_strip','defineProperty','filterCargoBuild','\x20ls','secretsFound','json_crusher','redact','15440LPlNOA','./go','yadm\x20diff','./git','13796684UowLze','trim\x20pip','test','filterPytest','trim\x20','ruff\x20','filterGitStatus','trim','filterCargoTest','lastRedactAudit','go\x20vet','trim\x20cargo','\x20ls\x20','pytest','npm\x20i\x20','rewriteCommand','npm\x20run\x20test','collapseDuplicates','./generic','81046ZtjAxu','2587446wEsqbY','filterKubectl','some','filterPipInstall','trim\x20kubectl','filterGrep','./js','npm\x20test','push','redactor','git\x20show','jest','compressOutput','2052666iWaTnD','endsWith','trim\x20pnpm','pnpm\x20test','8EtGRvM','filterDockerPs','npm\x20i','trim\x20docker','trim\x20glab','trim\x20ruff','filterLs','match','filterDockerImages','tracker','2763EeKkqP','redactWithAudit','vitest','trim\x20pytest','trim\x20git','trim\x20npm','[binary','getConfig','133334wbLLmk','startsWith','yadm\x20status','__esModule','secretTypes','pip\x20install','trim\x20ls','softTruncate','filterJestVitest','lock'];a0_0x101d=function(){return _0xd14b47;};return a0_0x101d();}function rewriteCommand(_0x58f2c2){const _0x3f9819=a0_0x435292,_0x12a849=_0x58f2c2[_0x3f9819(0x228)]();if(_0x12a849[_0x3f9819(0x259)](_0x3f9819(0x225)))return _0x12a849;for(const _0xdc38fb of REWRITE_RULES){if(_0xdc38fb[_0x3f9819(0x214)][_0x3f9819(0x223)](_0x12a849))return'trim\x20'+_0x12a849;}return _0x12a849;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x533ae0=a0_0x3076;function a0_0x4e8d(){const _0x1e1fd9=['Tests:','Test\x20Runner:\x20','startsWith','9726030yHLJHH','length','push','50033960pFZoQn','2621956uuhrGd','1570371pmLhkv','trim','\x20passed','added\x20','2272581oHaklD','56vJPiOt','join','all','\x0aFailures:','found\x20','396879VQGiVo','FAIL','FAIL\x20\x20','Test\x20Files:','match','slice','Test\x20Suites:','filterJestVitest','replace','includes','6BHkAzr','2PLeKmj','\x20\x20...\x20(','1916622VBuLyW','audited\x20','removed\x20','filterNpmInstall'];a0_0x4e8d=function(){return _0x1e1fd9;};return a0_0x4e8d();}(function(_0x4fcbfa,_0x13e4af){const _0x1d39a1=a0_0x3076,_0xe60b9b=_0x4fcbfa();while(!![]){try{const _0x715d7b=-parseInt(_0x1d39a1(0x1a0))/0x1+parseInt(_0x1d39a1(0x1b5))/0x2*(parseInt(_0x1d39a1(0x1a4))/0x3)+-parseInt(_0x1d39a1(0x1c2))/0x4+-parseInt(_0x1d39a1(0x1be))/0x5*(parseInt(_0x1d39a1(0x1b4))/0x6)+-parseInt(_0x1d39a1(0x1aa))/0x7*(parseInt(_0x1d39a1(0x1a5))/0x8)+-parseInt(_0x1d39a1(0x1b7))/0x9+parseInt(_0x1d39a1(0x1c1))/0xa;if(_0x715d7b===_0x13e4af)break;else _0xe60b9b['push'](_0xe60b9b['shift']());}catch(_0x6db29f){_0xe60b9b['push'](_0xe60b9b['shift']());}}}(a0_0x4e8d,0xef434));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x533ae0(0x1ba)]=filterNpmInstall,exports[a0_0x533ae0(0x1b1)]=filterJestVitest;function filterNpmInstall(_0x3144d5){const _0x9b7d64=a0_0x533ae0,_0x5564ff=_0x3144d5[_0x9b7d64(0x1b2)](/\r/g,'\x0a'),_0x43bf26=_0x5564ff['split']('\x0a'),_0x2feb11=[];for(const _0x5d70a5 of _0x43bf26){const _0x4b571f=_0x5d70a5[_0x9b7d64(0x1a1)]();(_0x4b571f[_0x9b7d64(0x1b3)](_0x9b7d64(0x1a3))||_0x4b571f[_0x9b7d64(0x1b3)](_0x9b7d64(0x1b9))||_0x4b571f[_0x9b7d64(0x1b3)](_0x9b7d64(0x1b8))||_0x4b571f[_0x9b7d64(0x1b3)]('up\x20to\x20date')||_0x4b571f['includes'](_0x9b7d64(0x1a9)))&&(!_0x4b571f[_0x9b7d64(0x1b3)]('%')&&!_0x4b571f[_0x9b7d64(0x1bd)]('⠋')&&!_0x4b571f['startsWith']('⠙')&&_0x2feb11[_0x9b7d64(0x1c0)](_0x4b571f));}const _0x498d4a=_0x2feb11[_0x9b7d64(0x1a6)]('\x0a')[_0x9b7d64(0x1a1)]();return _0x498d4a[_0x9b7d64(0x1bf)]>0x0?_0x498d4a:'NPM:\x20Packages\x20verified/installed\x20successfully';}function a0_0x3076(_0x198b81,_0x5e3c08){_0x198b81=_0x198b81-0x1a0;const _0x4e8de9=a0_0x4e8d();let _0x3076a8=_0x4e8de9[_0x198b81];return _0x3076a8;}function filterJestVitest(_0x114e47){const _0x4d23ca=a0_0x533ae0,_0xed8381=_0x114e47['split']('\x0a');let _0x51ae58=0x0,_0xb4c817=0x0,_0x4054fa=0x0;const _0x463c42=[];let _0x654b30=![];for(const _0x997b99 of _0xed8381){const _0x2a4440=_0x997b99[_0x4d23ca(0x1a1)]();if(_0x2a4440[_0x4d23ca(0x1bd)]('Tests:')||_0x2a4440['includes'](_0x4d23ca(0x1ad))){const _0x2f9e08=_0x2a4440[_0x4d23ca(0x1ae)](/(\d+)\s+passed/),_0x331a34=_0x2a4440['match'](/(\d+)\s+failed/),_0x5c55fc=_0x2a4440[_0x4d23ca(0x1ae)](/(\d+)\s+total/);if(_0x2f9e08)_0x51ae58=parseInt(_0x2f9e08[0x1]);if(_0x331a34)_0xb4c817=parseInt(_0x331a34[0x1]);if(_0x5c55fc)_0x4054fa=parseInt(_0x5c55fc[0x1]);continue;}(_0x2a4440[_0x4d23ca(0x1bd)]('❯')||_0x2a4440[_0x4d23ca(0x1bd)]('●')||_0x2a4440['startsWith'](_0x4d23ca(0x1ac)))&&(_0x654b30=!![]),_0x654b30&&(_0x2a4440['length']>0x0&&!_0x2a4440['startsWith'](_0x4d23ca(0x1b0))&&!_0x2a4440[_0x4d23ca(0x1bd)](_0x4d23ca(0x1bb))&&_0x463c42[_0x4d23ca(0x1c0)](_0x997b99));}if(_0x4054fa===0x0&&_0x51ae58===0x0&&_0xb4c817===0x0){if(_0x114e47[_0x4d23ca(0x1b3)]('PASS')&&!_0x114e47[_0x4d23ca(0x1b3)](_0x4d23ca(0x1ab))){const _0x59574a=_0x114e47[_0x4d23ca(0x1ae)](/(\d+)\s+passed/),_0x34e931=_0x59574a?_0x59574a[0x1]:_0x4d23ca(0x1a7);return _0x4d23ca(0x1bc)+_0x34e931+_0x4d23ca(0x1a2);}return _0x114e47;}if(_0xb4c817===0x0&&_0x51ae58>0x0)return _0x4d23ca(0x1bc)+_0x51ae58+_0x4d23ca(0x1a2);const _0x5a9fbf=['Test\x20Runner:\x20'+_0x51ae58+'\x20passed,\x20'+_0xb4c817+'\x20failed\x20('+_0x4054fa+'\x20total)'];if(_0x463c42['length']>0x0){_0x5a9fbf[_0x4d23ca(0x1c0)](_0x4d23ca(0x1a8));const _0x5aca26=0x19,_0x4c7045=_0x463c42[_0x4d23ca(0x1af)](0x0,_0x5aca26);for(const _0x93e075 of _0x4c7045){_0x5a9fbf[_0x4d23ca(0x1c0)]('\x20\x20'+_0x93e075);}_0x463c42[_0x4d23ca(0x1bf)]>_0x5aca26&&_0x5a9fbf[_0x4d23ca(0x1c0)](_0x4d23ca(0x1b6)+(_0x463c42[_0x4d23ca(0x1bf)]-_0x5aca26)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x5a9fbf[_0x4d23ca(0x1a6)]('\x0a');}
1
+ 'use strict';const a0_0x47ceb8=a0_0x3b87;(function(_0x19cff3,_0xded03c){const _0x5c2692=a0_0x3b87,_0x2ac90e=_0x19cff3();while(!![]){try{const _0x5ab45f=-parseInt(_0x5c2692(0xe0))/0x1*(-parseInt(_0x5c2692(0xc9))/0x2)+-parseInt(_0x5c2692(0xe7))/0x3+parseInt(_0x5c2692(0xe2))/0x4+parseInt(_0x5c2692(0xc7))/0x5+-parseInt(_0x5c2692(0xe3))/0x6*(parseInt(_0x5c2692(0xd9))/0x7)+-parseInt(_0x5c2692(0xd8))/0x8+parseInt(_0x5c2692(0xd3))/0x9;if(_0x5ab45f===_0xded03c)break;else _0x2ac90e['push'](_0x2ac90e['shift']());}catch(_0xb63bcf){_0x2ac90e['push'](_0x2ac90e['shift']());}}}(a0_0xcf19,0x351b5));function a0_0x3b87(_0x352cb9,_0x2397a9){_0x352cb9=_0x352cb9-0xc1;const _0xcf1940=a0_0xcf19();let _0x3b87c5=_0xcf1940[_0x352cb9];return _0x3b87c5;}Object['defineProperty'](exports,a0_0x47ceb8(0xdb),{'value':!![]}),exports[a0_0x47ceb8(0xd2)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function filterNpmInstall(_0x56a60e){const _0x5dd378=a0_0x47ceb8,_0x4a948a=_0x56a60e[_0x5dd378(0xcd)](/\r/g,'\x0a'),_0x4ccd31=_0x4a948a[_0x5dd378(0xde)]('\x0a'),_0x3c9b8f=[];for(const _0x100c33 of _0x4ccd31){const _0x3f0b44=_0x100c33[_0x5dd378(0xd7)]();(_0x3f0b44[_0x5dd378(0xe5)](_0x5dd378(0xcc))||_0x3f0b44['includes'](_0x5dd378(0xd6))||_0x3f0b44[_0x5dd378(0xe5)](_0x5dd378(0xc6))||_0x3f0b44[_0x5dd378(0xe5)](_0x5dd378(0xd4))||_0x3f0b44[_0x5dd378(0xe5)]('found\x20'))&&(!_0x3f0b44['includes']('%')&&!_0x3f0b44['startsWith']('⠋')&&!_0x3f0b44[_0x5dd378(0xdd)]('⠙')&&_0x3c9b8f['push'](_0x3f0b44));}const _0x2d3af0=_0x3c9b8f[_0x5dd378(0xda)]('\x0a')['trim']();return _0x2d3af0[_0x5dd378(0xdf)]>0x0?_0x2d3af0:_0x5dd378(0xc8);}function a0_0xcf19(){const _0x12d26e=['added\x20','replace','match','slice','\x0aFailures:','FAIL','filterNpmInstall','127836XQCUpx','up\x20to\x20date','\x20passed','removed\x20','trim','3186784HhSbAq','5138JfzuBR','join','__esModule','Tests:','startsWith','split','length','5ldsQGP','\x20passed,\x20','860760mtpZVx','498bpnMPN','PASS','includes','push','311073YRHAqO','\x20\x20...\x20(','FAIL\x20\x20','\x20total)','all','Test\x20Files:','audited\x20','924885FTjHfg','NPM:\x20Packages\x20verified/installed\x20successfully','146446nOgyby','Test\x20Runner:\x20','Test\x20Suites:'];a0_0xcf19=function(){return _0x12d26e;};return a0_0xcf19();}function filterJestVitest(_0x2b8551){const _0x147314=a0_0x47ceb8,_0xd0d3e=_0x2b8551['split']('\x0a');let _0x3dc558=0x0,_0x35817a=0x0,_0x4614cb=0x0;const _0x1dd1f2=[];let _0x50e76f=![];for(const _0x3e26a4 of _0xd0d3e){const _0x31717a=_0x3e26a4['trim']();if(_0x31717a['startsWith'](_0x147314(0xdc))||_0x31717a['includes'](_0x147314(0xc5))){const _0x73c19b=_0x31717a['match'](/(\d+)\s+passed/),_0x23c44b=_0x31717a[_0x147314(0xce)](/(\d+)\s+failed/),_0x5d46ec=_0x31717a['match'](/(\d+)\s+total/);if(_0x73c19b)_0x3dc558=parseInt(_0x73c19b[0x1]);if(_0x23c44b)_0x35817a=parseInt(_0x23c44b[0x1]);if(_0x5d46ec)_0x4614cb=parseInt(_0x5d46ec[0x1]);continue;}(_0x31717a[_0x147314(0xdd)]('❯')||_0x31717a[_0x147314(0xdd)]('●')||_0x31717a[_0x147314(0xdd)](_0x147314(0xc2)))&&(_0x50e76f=!![]),_0x50e76f&&(_0x31717a[_0x147314(0xdf)]>0x0&&!_0x31717a['startsWith'](_0x147314(0xcb))&&!_0x31717a[_0x147314(0xdd)](_0x147314(0xdc))&&_0x1dd1f2['push'](_0x3e26a4));}if(_0x4614cb===0x0&&_0x3dc558===0x0&&_0x35817a===0x0){if(_0x2b8551[_0x147314(0xe5)](_0x147314(0xe4))&&!_0x2b8551['includes'](_0x147314(0xd1))){const _0x388144=_0x2b8551['match'](/(\d+)\s+passed/),_0xfc116c=_0x388144?_0x388144[0x1]:_0x147314(0xc4);return'Test\x20Runner:\x20'+_0xfc116c+_0x147314(0xd5);}return _0x2b8551;}if(_0x35817a===0x0&&_0x3dc558>0x0)return _0x147314(0xca)+_0x3dc558+_0x147314(0xd5);const _0x40a487=[_0x147314(0xca)+_0x3dc558+_0x147314(0xe1)+_0x35817a+'\x20failed\x20('+_0x4614cb+_0x147314(0xc3)];if(_0x1dd1f2[_0x147314(0xdf)]>0x0){_0x40a487[_0x147314(0xe6)](_0x147314(0xd0));const _0x16f2b0=0x19,_0x6b102c=_0x1dd1f2[_0x147314(0xcf)](0x0,_0x16f2b0);for(const _0x2d98ea of _0x6b102c){_0x40a487['push']('\x20\x20'+_0x2d98ea);}_0x1dd1f2[_0x147314(0xdf)]>_0x16f2b0&&_0x40a487[_0x147314(0xe6)](_0x147314(0xc1)+(_0x1dd1f2[_0x147314(0xdf)]-_0x16f2b0)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x40a487['join']('\x0a');}