trimprompt 1.0.44 → 1.0.45

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/cache-manager.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5a4648=a0_0x1bbc;(function(_0x3d6f42,_0x11e5cc){const _0x57878f=a0_0x1bbc,_0x1d88a5=_0x3d6f42();while(!![]){try{const _0xe1181c=-parseInt(_0x57878f(0x13d))/0x1+-parseInt(_0x57878f(0x145))/0x2*(-parseInt(_0x57878f(0x16b))/0x3)+parseInt(_0x57878f(0x15c))/0x4*(-parseInt(_0x57878f(0x179))/0x5)+-parseInt(_0x57878f(0x162))/0x6*(parseInt(_0x57878f(0x13e))/0x7)+-parseInt(_0x57878f(0x16e))/0x8*(parseInt(_0x57878f(0x168))/0x9)+-parseInt(_0x57878f(0x148))/0xa+-parseInt(_0x57878f(0x147))/0xb*(-parseInt(_0x57878f(0x150))/0xc);if(_0xe1181c===_0x11e5cc)break;else _0x1d88a5['push'](_0x1d88a5['shift']());}catch(_0x4dfdc1){_0x1d88a5['push'](_0x1d88a5['shift']());}}}(a0_0x3f3a,0x889a8));var __createBinding=this&&this[a0_0x5a4648(0x151)]||(Object[a0_0x5a4648(0x167)]?function(_0x5122b1,_0x2c9eb9,_0x4da103,_0x35abd4){const _0x214f90=a0_0x5a4648;if(_0x35abd4===undefined)_0x35abd4=_0x4da103;var _0x4ccf3c=Object['getOwnPropertyDescriptor'](_0x2c9eb9,_0x4da103);(!_0x4ccf3c||(_0x214f90(0x142)in _0x4ccf3c?!_0x2c9eb9[_0x214f90(0x16f)]:_0x4ccf3c[_0x214f90(0x155)]||_0x4ccf3c[_0x214f90(0x158)]))&&(_0x4ccf3c={'enumerable':!![],'get':function(){return _0x2c9eb9[_0x4da103];}}),Object[_0x214f90(0x154)](_0x5122b1,_0x35abd4,_0x4ccf3c);}:function(_0x367b2a,_0x2b0b8b,_0x2449a2,_0x4782b4){if(_0x4782b4===undefined)_0x4782b4=_0x2449a2;_0x367b2a[_0x4782b4]=_0x2b0b8b[_0x2449a2];}),__setModuleDefault=this&&this[a0_0x5a4648(0x160)]||(Object[a0_0x5a4648(0x167)]?function(_0x1343b5,_0x1f1742){const _0x30e97f=a0_0x5a4648;Object['defineProperty'](_0x1343b5,_0x30e97f(0x177),{'enumerable':!![],'value':_0x1f1742});}:function(_0x58cea1,_0x2f27b7){const _0x136c97=a0_0x5a4648;_0x58cea1[_0x136c97(0x177)]=_0x2f27b7;}),__importStar=this&&this[a0_0x5a4648(0x141)]||(function(){var _0x2986c1=function(_0x420973){const _0x360686=a0_0x1bbc;return _0x2986c1=Object[_0x360686(0x161)]||function(_0x3791c9){const _0x48b21e=_0x360686;var _0x3f0ba1=[];for(var _0xab1e69 in _0x3791c9)if(Object[_0x48b21e(0x15e)][_0x48b21e(0x13f)]['call'](_0x3791c9,_0xab1e69))_0x3f0ba1[_0x3f0ba1[_0x48b21e(0x152)]]=_0xab1e69;return _0x3f0ba1;},_0x2986c1(_0x420973);};return function(_0x45b332){const _0x5993dd=a0_0x1bbc;if(_0x45b332&&_0x45b332[_0x5993dd(0x16f)])return _0x45b332;var _0x2772cf={};if(_0x45b332!=null){for(var _0x195d5f=_0x2986c1(_0x45b332),_0x2d4fa4=0x0;_0x2d4fa4<_0x195d5f[_0x5993dd(0x152)];_0x2d4fa4++)if(_0x195d5f[_0x2d4fa4]!=='default')__createBinding(_0x2772cf,_0x45b332,_0x195d5f[_0x2d4fa4]);}return __setModuleDefault(_0x2772cf,_0x45b332),_0x2772cf;};}());Object['defineProperty'](exports,a0_0x5a4648(0x16f),{'value':!![]}),exports[a0_0x5a4648(0x15f)]=saveChunk,exports['retrieveChunk']=retrieveChunk,exports[a0_0x5a4648(0x176)]=enforceEvictionPolicy;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5a4648(0x175))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x5a4648(0x172))),baseDir=path[a0_0x5a4648(0x166)](os['homedir'](),a0_0x5a4648(0x140)),cacheDir=path[a0_0x5a4648(0x166)](baseDir,a0_0x5a4648(0x178)),MAX_CACHE_BYTES=0x1f4*0x400*0x400,TTL_MS=0xe*0x18*0x3c*0x3c*0x3e8;function ensureCacheDir(){const _0x38e8ea=a0_0x5a4648;!fs[_0x38e8ea(0x14f)](cacheDir)&&fs[_0x38e8ea(0x15b)](cacheDir,{'recursive':!![]});}function a0_0x3f3a(){const _0x15071e=['parse','crypto','readFileSync','writeFileSync','path','enforceEvictionPolicy','default','cache','5390hddoKX','152715NedEYD','7ILOtxi','hasOwnProperty','.trimprompt','__importStar','get','size','digest','10ooLwwM','hex','4988698YqZpkw','7405570xMGKWj','getTime','update','last_accessed_at','birthtime','createHash','isDirectory','existsSync','60ByaSgw','__createBinding','length','readdirSync','defineProperty','writable','.json','mtime','configurable','created_at','toISOString','mkdirSync','80ODCchD','substring','prototype','saveChunk','__setModuleDefault','getOwnPropertyNames','5629620vGjSZR','utf8','now','statSync','join','create','801iaPLhP','lastAccessed','unlinkSync','557211JpNYfS','stringify','push','70440NyWBhk','__esModule','endsWith'];a0_0x3f3a=function(){return _0x15071e;};return a0_0x3f3a();}function saveChunk(_0x1001dc,_0x137bde,_0x137f29,_0x28f4d2){const _0x17df3d=a0_0x5a4648;ensureCacheDir();const _0x6260a3=crypto[_0x17df3d(0x14d)]('sha256')[_0x17df3d(0x14a)](_0x137f29)[_0x17df3d(0x144)](_0x17df3d(0x146))[_0x17df3d(0x15d)](0x0,0x8),_0x445e2f='tp_chk_'+_0x6260a3,_0x5eb184=path[_0x17df3d(0x166)](cacheDir,_0x1001dc);!fs['existsSync'](_0x5eb184)&&fs[_0x17df3d(0x15b)](_0x5eb184,{'recursive':!![]});const _0x4898e5=path[_0x17df3d(0x166)](_0x5eb184,_0x445e2f+_0x17df3d(0x156)),_0x4cf641=new Date()[_0x17df3d(0x15a)](),_0x194993=Math['ceil'](_0x137f29[_0x17df3d(0x152)]/0x4),_0x232af7=Math['ceil'](_0x28f4d2['length']/0x4),_0x24b194={'chunk_id':_0x445e2f,'session_id':_0x1001dc,'agent_key':_0x137bde,'raw_tokens':_0x194993,'compressed_tokens':_0x232af7,'created_at':_0x4cf641,'last_accessed_at':_0x4cf641,'summary':_0x28f4d2,'raw_payload':_0x137f29};return fs[_0x17df3d(0x174)](_0x4898e5,JSON[_0x17df3d(0x16c)](_0x24b194,null,0x2),'utf8'),enforceEvictionPolicy(),_0x24b194;}function a0_0x1bbc(_0x27266e,_0x392991){_0x27266e=_0x27266e-0x13d;const _0x3f3ac0=a0_0x3f3a();let _0x1bbc96=_0x3f3ac0[_0x27266e];return _0x1bbc96;}function retrieveChunk(_0x4af2c8){const _0x2e11cb=a0_0x5a4648;ensureCacheDir();try{const _0xf6de33=fs[_0x2e11cb(0x153)](cacheDir);for(const _0x2a0917 of _0xf6de33){const _0x3b7b49=path[_0x2e11cb(0x166)](cacheDir,_0x2a0917);if(fs['statSync'](_0x3b7b49)['isDirectory']()){const _0x1f02a1=path[_0x2e11cb(0x166)](_0x3b7b49,_0x4af2c8+'.json');if(fs[_0x2e11cb(0x14f)](_0x1f02a1)){const _0x336bfc=fs['readFileSync'](_0x1f02a1,_0x2e11cb(0x163)),_0x1e5f8c=JSON[_0x2e11cb(0x171)](_0x336bfc);return _0x1e5f8c[_0x2e11cb(0x14b)]=new Date()[_0x2e11cb(0x15a)](),fs[_0x2e11cb(0x174)](_0x1f02a1,JSON[_0x2e11cb(0x16c)](_0x1e5f8c,null,0x2),'utf8'),_0x1e5f8c;}}}}catch{}return null;}function enforceEvictionPolicy(){const _0x7bfc58=a0_0x5a4648;ensureCacheDir();try{const _0x183c82=Date[_0x7bfc58(0x164)]();let _0x17e49e=0x0;const _0x284d2c=[],_0x72d555=fs[_0x7bfc58(0x153)](cacheDir);for(const _0xf5881b of _0x72d555){const _0x4579e2=path[_0x7bfc58(0x166)](cacheDir,_0xf5881b);if(fs[_0x7bfc58(0x165)](_0x4579e2)[_0x7bfc58(0x14e)]()){const _0x455114=fs['readdirSync'](_0x4579e2);for(const _0x320cd1 of _0x455114){if(_0x320cd1[_0x7bfc58(0x170)](_0x7bfc58(0x156))){const _0x4ce186=path[_0x7bfc58(0x166)](_0x4579e2,_0x320cd1),_0x81bfc0=fs[_0x7bfc58(0x165)](_0x4ce186);try{const _0xcaef38=JSON[_0x7bfc58(0x171)](fs[_0x7bfc58(0x173)](_0x4ce186,_0x7bfc58(0x163))),_0xc6eb50=new Date(_0xcaef38[_0x7bfc58(0x159)]||_0x81bfc0[_0x7bfc58(0x14c)])[_0x7bfc58(0x149)](),_0x28c56a=new Date(_0xcaef38['last_accessed_at']||_0x81bfc0[_0x7bfc58(0x157)])[_0x7bfc58(0x149)]();if(_0x183c82-_0xc6eb50>TTL_MS){fs['unlinkSync'](_0x4ce186);continue;}_0x17e49e+=_0x81bfc0[_0x7bfc58(0x143)],_0x284d2c[_0x7bfc58(0x16d)]({'path':_0x4ce186,'size':_0x81bfc0[_0x7bfc58(0x143)],'lastAccessed':_0x28c56a,'createdAt':_0xc6eb50});}catch{fs[_0x7bfc58(0x16a)](_0x4ce186);}}}}}if(_0x17e49e>MAX_CACHE_BYTES){_0x284d2c['sort']((_0x59fc9a,_0x5a9cc7)=>_0x59fc9a[_0x7bfc58(0x169)]-_0x5a9cc7[_0x7bfc58(0x169)]);for(const _0x15678c of _0x284d2c){if(_0x17e49e<=MAX_CACHE_BYTES*0.8)break;try{fs[_0x7bfc58(0x16a)](_0x15678c['path']),_0x17e49e-=_0x15678c[_0x7bfc58(0x143)];}catch{}}}}catch{}}
1
+ 'use strict';function a0_0x1785(){const _0x3a719a=['get','hex','7794768wiLsYb','7257WRwbRr','defineProperty','readFileSync','7UcGdcJ','last_accessed_at','existsSync','created_at','create','homedir','push','toISOString','getTime','path','crypto','__createBinding','unlinkSync','createHash','cache','hasOwnProperty','tp_chk_','configurable','parse','46946TxtxSl','6816Gfhilp','utf8','12803990nzCctB','getOwnPropertyNames','__setModuleDefault','1109300kBOajZ','mkdirSync','stringify','size','__esModule','ceil','mtime','3564WZLiUw','6097818vDkGpQ','lastAccessed','enforceEvictionPolicy','writeFileSync','9RWNNpc','now','prototype','5pEbGvJ','birthtime','isDirectory','886LBWerv','readdirSync','.json','statSync','endsWith','substring','__importStar','length','retrieveChunk','join','default','update','sort'];a0_0x1785=function(){return _0x3a719a;};return a0_0x1785();}const a0_0x471e0a=a0_0x19d4;(function(_0x1f2f05,_0xa8740d){const _0x562cae=a0_0x19d4,_0x5b4694=_0x1f2f05();while(!![]){try{const _0x396568=parseInt(_0x562cae(0x198))/0x1+parseInt(_0x562cae(0x1b0))/0x2*(-parseInt(_0x562cae(0x182))/0x3)+parseInt(_0x562cae(0x19e))/0x4+-parseInt(_0x562cae(0x1ad))/0x5*(parseInt(_0x562cae(0x1a6))/0x6)+-parseInt(_0x562cae(0x185))/0x7*(-parseInt(_0x562cae(0x181))/0x8)+parseInt(_0x562cae(0x1aa))/0x9*(parseInt(_0x562cae(0x19b))/0xa)+parseInt(_0x562cae(0x1a5))/0xb*(parseInt(_0x562cae(0x199))/0xc);if(_0x396568===_0xa8740d)break;else _0x5b4694['push'](_0x5b4694['shift']());}catch(_0x2900bf){_0x5b4694['push'](_0x5b4694['shift']());}}}(a0_0x1785,0xa4d38));var __createBinding=this&&this[a0_0x471e0a(0x190)]||(Object[a0_0x471e0a(0x189)]?function(_0x3abfd0,_0x568263,_0x3a9689,_0x2a4978){const _0xce073e=a0_0x471e0a;if(_0x2a4978===undefined)_0x2a4978=_0x3a9689;var _0x9c0ac9=Object['getOwnPropertyDescriptor'](_0x568263,_0x3a9689);(!_0x9c0ac9||(_0xce073e(0x17f)in _0x9c0ac9?!_0x568263[_0xce073e(0x1a2)]:_0x9c0ac9['writable']||_0x9c0ac9[_0xce073e(0x196)]))&&(_0x9c0ac9={'enumerable':!![],'get':function(){return _0x568263[_0x3a9689];}}),Object[_0xce073e(0x183)](_0x3abfd0,_0x2a4978,_0x9c0ac9);}:function(_0x1d79d4,_0xb74d5b,_0x4e2008,_0xb41c9d){if(_0xb41c9d===undefined)_0xb41c9d=_0x4e2008;_0x1d79d4[_0xb41c9d]=_0xb74d5b[_0x4e2008];}),__setModuleDefault=this&&this[a0_0x471e0a(0x19d)]||(Object['create']?function(_0x5a6abe,_0x39639a){const _0x5593be=a0_0x471e0a;Object[_0x5593be(0x183)](_0x5a6abe,_0x5593be(0x17c),{'enumerable':!![],'value':_0x39639a});}:function(_0x4eea9c,_0x18b92f){const _0x5f3010=a0_0x471e0a;_0x4eea9c[_0x5f3010(0x17c)]=_0x18b92f;}),__importStar=this&&this[a0_0x471e0a(0x178)]||(function(){var _0x5e8057=function(_0x9e2799){const _0x44327e=a0_0x19d4;return _0x5e8057=Object[_0x44327e(0x19c)]||function(_0x28f2a1){const _0x8c6a21=_0x44327e;var _0x151d16=[];for(var _0x4eff38 in _0x28f2a1)if(Object[_0x8c6a21(0x1ac)][_0x8c6a21(0x194)]['call'](_0x28f2a1,_0x4eff38))_0x151d16[_0x151d16[_0x8c6a21(0x179)]]=_0x4eff38;return _0x151d16;},_0x5e8057(_0x9e2799);};return function(_0x4a87b1){const _0x176f74=a0_0x19d4;if(_0x4a87b1&&_0x4a87b1[_0x176f74(0x1a2)])return _0x4a87b1;var _0x62453a={};if(_0x4a87b1!=null){for(var _0x1e90cf=_0x5e8057(_0x4a87b1),_0x333674=0x0;_0x333674<_0x1e90cf[_0x176f74(0x179)];_0x333674++)if(_0x1e90cf[_0x333674]!==_0x176f74(0x17c))__createBinding(_0x62453a,_0x4a87b1,_0x1e90cf[_0x333674]);}return __setModuleDefault(_0x62453a,_0x4a87b1),_0x62453a;};}());Object[a0_0x471e0a(0x183)](exports,'__esModule',{'value':!![]}),exports['saveChunk']=saveChunk,exports[a0_0x471e0a(0x17a)]=retrieveChunk,exports[a0_0x471e0a(0x1a8)]=enforceEvictionPolicy;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x471e0a(0x18e))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x471e0a(0x18f))),baseDir=path[a0_0x471e0a(0x17b)](os[a0_0x471e0a(0x18a)](),'.trimprompt'),cacheDir=path[a0_0x471e0a(0x17b)](baseDir,a0_0x471e0a(0x193)),MAX_CACHE_BYTES=0x1f4*0x400*0x400,TTL_MS=0xe*0x18*0x3c*0x3c*0x3e8;function ensureCacheDir(){const _0x2e5dc3=a0_0x471e0a;!fs[_0x2e5dc3(0x187)](cacheDir)&&fs['mkdirSync'](cacheDir,{'recursive':!![]});}function saveChunk(_0x24d66d,_0x479662,_0x13301b,_0x55853d){const _0x1d076f=a0_0x471e0a;ensureCacheDir();const _0x3e6df9=crypto[_0x1d076f(0x192)]('sha256')[_0x1d076f(0x17d)](_0x13301b)['digest'](_0x1d076f(0x180))[_0x1d076f(0x177)](0x0,0x8),_0xb8761d=_0x1d076f(0x195)+_0x3e6df9,_0x3c7799=path[_0x1d076f(0x17b)](cacheDir,_0x24d66d);!fs[_0x1d076f(0x187)](_0x3c7799)&&fs[_0x1d076f(0x19f)](_0x3c7799,{'recursive':!![]});const _0x3475e5=path[_0x1d076f(0x17b)](_0x3c7799,_0xb8761d+_0x1d076f(0x174)),_0x57287e=new Date()[_0x1d076f(0x18c)](),_0x550360=Math[_0x1d076f(0x1a3)](_0x13301b[_0x1d076f(0x179)]/0x4),_0x228783=Math[_0x1d076f(0x1a3)](_0x55853d[_0x1d076f(0x179)]/0x4),_0x1dfd9b={'chunk_id':_0xb8761d,'session_id':_0x24d66d,'agent_key':_0x479662,'raw_tokens':_0x550360,'compressed_tokens':_0x228783,'created_at':_0x57287e,'last_accessed_at':_0x57287e,'summary':_0x55853d,'raw_payload':_0x13301b};return fs['writeFileSync'](_0x3475e5,JSON[_0x1d076f(0x1a0)](_0x1dfd9b,null,0x2),_0x1d076f(0x19a)),enforceEvictionPolicy(),_0x1dfd9b;}function a0_0x19d4(_0x35f7e1,_0x1c3a17){_0x35f7e1=_0x35f7e1-0x174;const _0x1785bd=a0_0x1785();let _0x19d445=_0x1785bd[_0x35f7e1];return _0x19d445;}function retrieveChunk(_0x41627e){const _0x3fc6e2=a0_0x471e0a;ensureCacheDir();try{const _0x1bca66=fs[_0x3fc6e2(0x1b1)](cacheDir);for(const _0x1894e5 of _0x1bca66){const _0xfc9c1f=path[_0x3fc6e2(0x17b)](cacheDir,_0x1894e5);if(fs[_0x3fc6e2(0x175)](_0xfc9c1f)[_0x3fc6e2(0x1af)]()){const _0x427cfb=path[_0x3fc6e2(0x17b)](_0xfc9c1f,_0x41627e+_0x3fc6e2(0x174));if(fs['existsSync'](_0x427cfb)){const _0x2d5a9e=fs[_0x3fc6e2(0x184)](_0x427cfb,_0x3fc6e2(0x19a)),_0x2fed70=JSON[_0x3fc6e2(0x197)](_0x2d5a9e);return _0x2fed70[_0x3fc6e2(0x186)]=new Date()[_0x3fc6e2(0x18c)](),fs[_0x3fc6e2(0x1a9)](_0x427cfb,JSON['stringify'](_0x2fed70,null,0x2),_0x3fc6e2(0x19a)),_0x2fed70;}}}}catch{}return null;}function enforceEvictionPolicy(){const _0x315725=a0_0x471e0a;ensureCacheDir();try{const _0x3fd340=Date[_0x315725(0x1ab)]();let _0x36834d=0x0;const _0x14df1a=[],_0x3a603c=fs[_0x315725(0x1b1)](cacheDir);for(const _0xe81f7e of _0x3a603c){const _0x2fa1fd=path[_0x315725(0x17b)](cacheDir,_0xe81f7e);if(fs[_0x315725(0x175)](_0x2fa1fd)[_0x315725(0x1af)]()){const _0x411248=fs[_0x315725(0x1b1)](_0x2fa1fd);for(const _0x44bddf of _0x411248){if(_0x44bddf[_0x315725(0x176)]('.json')){const _0x3b147d=path[_0x315725(0x17b)](_0x2fa1fd,_0x44bddf),_0x4dcdc3=fs[_0x315725(0x175)](_0x3b147d);try{const _0x32da19=JSON[_0x315725(0x197)](fs[_0x315725(0x184)](_0x3b147d,_0x315725(0x19a))),_0x5bac74=new Date(_0x32da19[_0x315725(0x188)]||_0x4dcdc3[_0x315725(0x1ae)])[_0x315725(0x18d)](),_0x5192c2=new Date(_0x32da19[_0x315725(0x186)]||_0x4dcdc3[_0x315725(0x1a4)])[_0x315725(0x18d)]();if(_0x3fd340-_0x5bac74>TTL_MS){fs[_0x315725(0x191)](_0x3b147d);continue;}_0x36834d+=_0x4dcdc3['size'],_0x14df1a[_0x315725(0x18b)]({'path':_0x3b147d,'size':_0x4dcdc3['size'],'lastAccessed':_0x5192c2,'createdAt':_0x5bac74});}catch{fs[_0x315725(0x191)](_0x3b147d);}}}}}if(_0x36834d>MAX_CACHE_BYTES){_0x14df1a[_0x315725(0x17e)]((_0x351159,_0xf5e48c)=>_0x351159[_0x315725(0x1a7)]-_0xf5e48c[_0x315725(0x1a7)]);for(const _0x36a5fc of _0x14df1a){if(_0x36834d<=MAX_CACHE_BYTES*0.8)break;try{fs[_0x315725(0x191)](_0x36a5fc[_0x315725(0x18e)]),_0x36834d-=_0x36a5fc[_0x315725(0x1a1)];}catch{}}}}catch{}}
package/cache.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3070fe=a0_0x4866;(function(_0xdeb4a4,_0x3b33c5){const _0x9759d2=a0_0x4866,_0xfe9d07=_0xdeb4a4();while(!![]){try{const _0x245ab2=-parseInt(_0x9759d2(0xd3))/0x1*(parseInt(_0x9759d2(0xcd))/0x2)+-parseInt(_0x9759d2(0xc0))/0x3+-parseInt(_0x9759d2(0xbd))/0x4*(-parseInt(_0x9759d2(0xa1))/0x5)+parseInt(_0x9759d2(0xa2))/0x6+parseInt(_0x9759d2(0xb3))/0x7+parseInt(_0x9759d2(0xa7))/0x8+-parseInt(_0x9759d2(0xd2))/0x9;if(_0x245ab2===_0x3b33c5)break;else _0xfe9d07['push'](_0xfe9d07['shift']());}catch(_0x44bae9){_0xfe9d07['push'](_0xfe9d07['shift']());}}}(a0_0xa845,0xbbc42));var __createBinding=this&&this[a0_0x3070fe(0xab)]||(Object[a0_0x3070fe(0xa0)]?function(_0x4bf297,_0x4dad18,_0x46ba2c,_0x1de444){const _0x2a3810=a0_0x3070fe;if(_0x1de444===undefined)_0x1de444=_0x46ba2c;var _0x485a5e=Object['getOwnPropertyDescriptor'](_0x4dad18,_0x46ba2c);(!_0x485a5e||(_0x2a3810(0xbb)in _0x485a5e?!_0x4dad18[_0x2a3810(0x9d)]:_0x485a5e[_0x2a3810(0xc9)]||_0x485a5e[_0x2a3810(0xb2)]))&&(_0x485a5e={'enumerable':!![],'get':function(){return _0x4dad18[_0x46ba2c];}}),Object['defineProperty'](_0x4bf297,_0x1de444,_0x485a5e);}:function(_0x4ef7c6,_0x426866,_0x3a9a6b,_0x344d4d){if(_0x344d4d===undefined)_0x344d4d=_0x3a9a6b;_0x4ef7c6[_0x344d4d]=_0x426866[_0x3a9a6b];}),__setModuleDefault=this&&this[a0_0x3070fe(0xc2)]||(Object['create']?function(_0x4c8bd7,_0x2da313){const _0x570033=a0_0x3070fe;Object[_0x570033(0x98)](_0x4c8bd7,_0x570033(0xb9),{'enumerable':!![],'value':_0x2da313});}:function(_0xe41172,_0x2fa789){const _0x379c13=a0_0x3070fe;_0xe41172[_0x379c13(0xb9)]=_0x2fa789;}),__importStar=this&&this[a0_0x3070fe(0xd1)]||(function(){var _0x429068=function(_0x49c4f2){return _0x429068=Object['getOwnPropertyNames']||function(_0x21d015){const _0x344763=a0_0x4866;var _0x1492a3=[];for(var _0x5da38f in _0x21d015)if(Object[_0x344763(0x91)]['hasOwnProperty']['call'](_0x21d015,_0x5da38f))_0x1492a3[_0x1492a3[_0x344763(0xb6)]]=_0x5da38f;return _0x1492a3;},_0x429068(_0x49c4f2);};return function(_0x3b1b33){const _0x1807db=a0_0x4866;if(_0x3b1b33&&_0x3b1b33['__esModule'])return _0x3b1b33;var _0x4ba43b={};if(_0x3b1b33!=null){for(var _0x2a3573=_0x429068(_0x3b1b33),_0x4fec40=0x0;_0x4fec40<_0x2a3573[_0x1807db(0xb6)];_0x4fec40++)if(_0x2a3573[_0x4fec40]!==_0x1807db(0xb9))__createBinding(_0x4ba43b,_0x3b1b33,_0x2a3573[_0x4fec40]);}return __setModuleDefault(_0x4ba43b,_0x3b1b33),_0x4ba43b;};}());Object[a0_0x3070fe(0x98)](exports,a0_0x3070fe(0x9d),{'value':!![]}),exports[a0_0x3070fe(0xb1)]=dedup;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3070fe(0xad))),os=__importStar(require('os')),crypto=__importStar(require('crypto')),CACHE_DIR=path[a0_0x3070fe(0x92)](os['homedir'](),a0_0x3070fe(0x90)),CACHE_FILE=path[a0_0x3070fe(0x92)](CACHE_DIR,a0_0x3070fe(0x95)),MAX_ENTRIES=0x12c,TTL_SECONDS={'file':0x78,'git-status':0x1e,'git-log':0x3c,'git-show':0xe10,'ls':0x3c,'tree':0x3c,'docker-ps':0x1e,'docker-images':0x3c,'kubectl':0x1e,'ruff':0x3c,'go-vet':0x3c};function classifyCommand(_0x1cc3a0){const _0x2b871f=a0_0x3070fe,_0x194b22=_0x1cc3a0[_0x2b871f(0xcb)]()[_0x2b871f(0x99)]();if(_0x194b22[_0x2b871f(0x9f)](/^(cat|head|tail|read|bat)\s/))return _0x2b871f(0xa6);if(_0x194b22['includes']('git\x20status')||_0x194b22['includes'](_0x2b871f(0xac)))return _0x2b871f(0xb5);if(_0x194b22[_0x2b871f(0xc1)](_0x2b871f(0xcf))||_0x194b22[_0x2b871f(0xc1)](_0x2b871f(0x9a)))return _0x2b871f(0xba);if(_0x194b22[_0x2b871f(0xc1)](_0x2b871f(0x9c))||_0x194b22['includes']('yadm\x20show'))return'git-show';if(_0x194b22[_0x2b871f(0x9f)](/^(ls|dir)(\s|$)/)||_0x194b22['includes'](_0x2b871f(0xaf))||_0x194b22[_0x2b871f(0xca)](_0x2b871f(0x8e)))return'ls';if(_0x194b22[_0x2b871f(0x9f)](/^tree(\s|$)/)||_0x194b22['includes'](_0x2b871f(0xb7))||_0x194b22[_0x2b871f(0xca)](_0x2b871f(0xd0)))return _0x2b871f(0xc5);if(_0x194b22[_0x2b871f(0x9f)](/docker\s+ps/))return'docker-ps';if(_0x194b22[_0x2b871f(0x9f)](/docker\s+images/))return'docker-images';if(_0x194b22[_0x2b871f(0xc1)]('kubectl\x20get')||_0x194b22[_0x2b871f(0xc1)](_0x2b871f(0x8f)))return _0x2b871f(0xa3);if(_0x194b22[_0x2b871f(0xc1)](_0x2b871f(0xbc))||_0x194b22[_0x2b871f(0xc1)]('ruff\x20'))return'ruff';if(_0x194b22[_0x2b871f(0xc1)](_0x2b871f(0xa5)))return _0x2b871f(0xc7);return'';}function a0_0x4866(_0x4f0dc9,_0x46bbd2){_0x4f0dc9=_0x4f0dc9-0x8e;const _0xa84536=a0_0xa845();let _0x486670=_0xa84536[_0x4f0dc9];return _0x486670;}function md5(_0x4747c4){const _0x422955=a0_0x3070fe;return crypto[_0x422955(0xd4)](_0x422955(0xb4))[_0x422955(0x96)](_0x4747c4)[_0x422955(0xa8)]('hex');}function loadStore(){const _0x2ca9bc=a0_0x3070fe;try{if(fs['existsSync'](CACHE_FILE))return JSON[_0x2ca9bc(0xa4)](fs[_0x2ca9bc(0xd5)](CACHE_FILE,'utf8'));}catch{}return{};}function saveStore(_0x5b71cc){const _0x37eef3=a0_0x3070fe;try{if(!fs[_0x37eef3(0xd6)](CACHE_DIR))fs[_0x37eef3(0x9e)](CACHE_DIR,{'recursive':!![]});const _0x599258=Object['keys'](_0x5b71cc);if(_0x599258[_0x37eef3(0xb6)]>MAX_ENTRIES){const _0x7f6e53=_0x599258[_0x37eef3(0xa9)]((_0x44d877,_0xc6dda7)=>_0x5b71cc[_0x44d877]['timestamp']-_0x5b71cc[_0xc6dda7][_0x37eef3(0xbf)]);for(const _0x56a198 of _0x7f6e53[_0x37eef3(0xc6)](0x0,_0x599258[_0x37eef3(0xb6)]-MAX_ENTRIES)){delete _0x5b71cc[_0x56a198];}}fs[_0x37eef3(0xd7)](CACHE_FILE,JSON['stringify'](_0x5b71cc),_0x37eef3(0xcc));}catch{}}function buildSummary(_0x4289da,_0x56cd83){const _0x80c41c=a0_0x3070fe,_0x29fbe6=_0x4289da[_0x80c41c(0x93)]('\x0a')[_0x80c41c(0xb6)],_0x3f1a21=_0x4289da[_0x80c41c(0xb6)];if(_0x56cd83===_0x80c41c(0xa6))return _0x29fbe6+_0x80c41c(0xb8)+_0x3f1a21+'\x20chars';if(_0x56cd83===_0x80c41c(0xb5))return _0x29fbe6+_0x80c41c(0xc4);if(_0x56cd83===_0x80c41c(0xba))return _0x29fbe6+_0x80c41c(0x9b);if(_0x56cd83[_0x80c41c(0x94)]('docker'))return _0x29fbe6+_0x80c41c(0xc4);return _0x29fbe6+_0x80c41c(0xb8)+_0x3f1a21+_0x80c41c(0xce);}function dedup(_0x3bdeb3,_0x64c56d){const _0x381b0a=a0_0x3070fe;try{const _0x678656=classifyCommand(_0x3bdeb3);if(!_0x678656)return null;const _0x5eec6a=TTL_SECONDS[_0x678656];if(!_0x5eec6a)return null;const _0x11e363=process[_0x381b0a(0x97)](),_0x24cdaa=md5(_0x11e363+'::'+_0x3bdeb3['trim']()),_0x41d2a9=md5(_0x64c56d),_0x41e28e=Date[_0x381b0a(0xbe)](),_0x169660=loadStore(),_0x10224f=_0x169660[_0x24cdaa];if(_0x10224f&&_0x10224f[_0x381b0a(0xc3)]===_0x41d2a9&&_0x41e28e-_0x10224f[_0x381b0a(0xbf)]<_0x5eec6a*0x3e8){const _0x776eaf=Math[_0x381b0a(0xc8)]((_0x41e28e-_0x10224f[_0x381b0a(0xbf)])/0x3e8);return _0x381b0a(0xaa)+_0x776eaf+_0x381b0a(0xae)+_0x10224f[_0x381b0a(0xb0)]+']';}_0x169660[_0x24cdaa]={'hash':_0x41d2a9,'summary':buildSummary(_0x64c56d,_0x678656),'timestamp':_0x41e28e,'chars':_0x64c56d[_0x381b0a(0xb6)]},saveStore(_0x169660);}catch{}return null;}function a0_0xa845(){const _0x39c535=['4011376huoeWD','digest','sort','[cached\x20—\x20unchanged\x20since\x20','__createBinding','yadm\x20status','path','s\x20ago,\x20','\x20ls\x20','summary','dedup','configurable','3518480sIBtjn','md5','git-status','length','\x20tree\x20','\x20lines,\x20','default','git-log','get','ruff\x20check','20KUMKZp','now','timestamp','206091rBNfvb','includes','__setModuleDefault','hash','\x20lines','tree','slice','go-vet','round','writable','endsWith','trim','utf8','64igvpjt','\x20chars','git\x20log','\x20tree','__importStar','13274703dKBOJq','26074ybfKkY','createHash','readFileSync','existsSync','writeFileSync','\x20ls','kubectl\x20describe','.trimprompt','prototype','join','split','startsWith','cache.json','update','cwd','defineProperty','toLowerCase','yadm\x20log','\x20entries','git\x20show','__esModule','mkdirSync','match','create','875440PRDMbF','7605720ypTAmK','kubectl','parse','go\x20vet','file'];a0_0xa845=function(){return _0x39c535;};return a0_0xa845();}
1
+ 'use strict';const a0_0x5caef3=a0_0xc6d1;(function(_0x10efd9,_0x121e13){const _0x377ed6=a0_0xc6d1,_0x38cc97=_0x10efd9();while(!![]){try{const _0x2654ce=-parseInt(_0x377ed6(0x217))/0x1*(parseInt(_0x377ed6(0x1d8))/0x2)+parseInt(_0x377ed6(0x1d4))/0x3+parseInt(_0x377ed6(0x1d7))/0x4*(-parseInt(_0x377ed6(0x218))/0x5)+-parseInt(_0x377ed6(0x1e4))/0x6*(-parseInt(_0x377ed6(0x1ea))/0x7)+-parseInt(_0x377ed6(0x1e7))/0x8+-parseInt(_0x377ed6(0x1e3))/0x9+parseInt(_0x377ed6(0x1f5))/0xa;if(_0x2654ce===_0x121e13)break;else _0x38cc97['push'](_0x38cc97['shift']());}catch(_0x53d63d){_0x38cc97['push'](_0x38cc97['shift']());}}}(a0_0xc356,0xc4e26));var __createBinding=this&&this[a0_0x5caef3(0x21b)]||(Object['create']?function(_0xeaf867,_0x779d5c,_0x1c17e0,_0x267f27){const _0x27a942=a0_0x5caef3;if(_0x267f27===undefined)_0x267f27=_0x1c17e0;var _0x5db730=Object['getOwnPropertyDescriptor'](_0x779d5c,_0x1c17e0);(!_0x5db730||(_0x27a942(0x1d2)in _0x5db730?!_0x779d5c[_0x27a942(0x1f4)]:_0x5db730[_0x27a942(0x220)]||_0x5db730[_0x27a942(0x211)]))&&(_0x5db730={'enumerable':!![],'get':function(){return _0x779d5c[_0x1c17e0];}}),Object[_0x27a942(0x216)](_0xeaf867,_0x267f27,_0x5db730);}:function(_0x353714,_0x2077da,_0x2814c1,_0x3448b9){if(_0x3448b9===undefined)_0x3448b9=_0x2814c1;_0x353714[_0x3448b9]=_0x2077da[_0x2814c1];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5caef3(0x20b)]?function(_0x3b53ed,_0x5a0d26){Object['defineProperty'](_0x3b53ed,'default',{'enumerable':!![],'value':_0x5a0d26});}:function(_0x34b6f0,_0x25af2d){const _0x2e566c=a0_0x5caef3;_0x34b6f0[_0x2e566c(0x20c)]=_0x25af2d;}),__importStar=this&&this['__importStar']||(function(){var _0x1b63f0=function(_0x226054){const _0x19f4b1=a0_0xc6d1;return _0x1b63f0=Object[_0x19f4b1(0x222)]||function(_0x5347f8){const _0x263251=_0x19f4b1;var _0x41ac3c=[];for(var _0x2488a4 in _0x5347f8)if(Object[_0x263251(0x205)][_0x263251(0x1e5)][_0x263251(0x20d)](_0x5347f8,_0x2488a4))_0x41ac3c[_0x41ac3c[_0x263251(0x1f0)]]=_0x2488a4;return _0x41ac3c;},_0x1b63f0(_0x226054);};return function(_0x4fcf1d){const _0x4864ce=a0_0xc6d1;if(_0x4fcf1d&&_0x4fcf1d[_0x4864ce(0x1f4)])return _0x4fcf1d;var _0x2e5d39={};if(_0x4fcf1d!=null){for(var _0x26240e=_0x1b63f0(_0x4fcf1d),_0x585eab=0x0;_0x585eab<_0x26240e['length'];_0x585eab++)if(_0x26240e[_0x585eab]!=='default')__createBinding(_0x2e5d39,_0x4fcf1d,_0x26240e[_0x585eab]);}return __setModuleDefault(_0x2e5d39,_0x4fcf1d),_0x2e5d39;};}());Object['defineProperty'](exports,a0_0x5caef3(0x1f4),{'value':!![]}),exports[a0_0x5caef3(0x21a)]=dedup;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5caef3(0x221))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x5caef3(0x1e8))),CACHE_DIR=path[a0_0x5caef3(0x1fd)](os['homedir'](),a0_0x5caef3(0x1fe)),CACHE_FILE=path[a0_0x5caef3(0x1fd)](CACHE_DIR,a0_0x5caef3(0x1db)),MAX_ENTRIES=0x12c,TTL_SECONDS={'file':0x78,'git-status':0x1e,'git-log':0x3c,'git-show':0xe10,'ls':0x3c,'tree':0x3c,'docker-ps':0x1e,'docker-images':0x3c,'kubectl':0x1e,'ruff':0x3c,'go-vet':0x3c};function classifyCommand(_0x319eec){const _0x42941c=a0_0x5caef3,_0x3b59b8=_0x319eec[_0x42941c(0x1ee)]()['toLowerCase']();if(_0x3b59b8['match'](/^(cat|head|tail|read|bat)\s/))return _0x42941c(0x1fa);if(_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x206))||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x223)))return _0x42941c(0x1f1);if(_0x3b59b8['includes'](_0x42941c(0x1ff))||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1e1)))return _0x42941c(0x20e);if(_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1d6))||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x213)))return _0x42941c(0x20f);if(_0x3b59b8['match'](/^(ls|dir)(\s|$)/)||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1eb))||_0x3b59b8[_0x42941c(0x204)](_0x42941c(0x210)))return'ls';if(_0x3b59b8[_0x42941c(0x1f9)](/^tree(\s|$)/)||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1df))||_0x3b59b8[_0x42941c(0x204)](_0x42941c(0x1e2)))return _0x42941c(0x1f8);if(_0x3b59b8[_0x42941c(0x1f9)](/docker\s+ps/))return _0x42941c(0x21d);if(_0x3b59b8['match'](/docker\s+images/))return _0x42941c(0x1e6);if(_0x3b59b8[_0x42941c(0x203)]('kubectl\x20get')||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1f6)))return _0x42941c(0x20a);if(_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1f2))||_0x3b59b8[_0x42941c(0x203)](_0x42941c(0x1dd)))return _0x42941c(0x21e);if(_0x3b59b8['includes']('go\x20vet'))return _0x42941c(0x1fc);return'';}function md5(_0x1520f1){const _0x18322d=a0_0x5caef3;return crypto[_0x18322d(0x1e0)](_0x18322d(0x1dc))[_0x18322d(0x209)](_0x1520f1)[_0x18322d(0x215)](_0x18322d(0x1f7));}function a0_0xc6d1(_0x371fe4,_0x42098e){_0x371fe4=_0x371fe4-0x1d2;const _0xc356e2=a0_0xc356();let _0xc6d16e=_0xc356e2[_0x371fe4];return _0xc6d16e;}function loadStore(){const _0x59c059=a0_0x5caef3;try{if(fs['existsSync'](CACHE_FILE))return JSON[_0x59c059(0x207)](fs[_0x59c059(0x1fb)](CACHE_FILE,_0x59c059(0x1d3)));}catch{}return{};}function saveStore(_0x30cedb){const _0x371aa6=a0_0x5caef3;try{if(!fs[_0x371aa6(0x208)](CACHE_DIR))fs[_0x371aa6(0x21f)](CACHE_DIR,{'recursive':!![]});const _0x251ad8=Object[_0x371aa6(0x1de)](_0x30cedb);if(_0x251ad8[_0x371aa6(0x1f0)]>MAX_ENTRIES){const _0x168893=_0x251ad8['sort']((_0x580496,_0x58d262)=>_0x30cedb[_0x580496][_0x371aa6(0x1ef)]-_0x30cedb[_0x58d262][_0x371aa6(0x1ef)]);for(const _0x44eede of _0x168893[_0x371aa6(0x1ec)](0x0,_0x251ad8['length']-MAX_ENTRIES)){delete _0x30cedb[_0x44eede];}}fs[_0x371aa6(0x21c)](CACHE_FILE,JSON[_0x371aa6(0x201)](_0x30cedb),_0x371aa6(0x1d3));}catch{}}function buildSummary(_0x1e0f33,_0xc917a3){const _0x3aaf4f=a0_0x5caef3,_0x367a22=_0x1e0f33[_0x3aaf4f(0x1da)]('\x0a')[_0x3aaf4f(0x1f0)],_0x2ebc3e=_0x1e0f33[_0x3aaf4f(0x1f0)];if(_0xc917a3===_0x3aaf4f(0x1fa))return _0x367a22+_0x3aaf4f(0x1f3)+_0x2ebc3e+_0x3aaf4f(0x212);if(_0xc917a3===_0x3aaf4f(0x1f1))return _0x367a22+_0x3aaf4f(0x214);if(_0xc917a3===_0x3aaf4f(0x20e))return _0x367a22+_0x3aaf4f(0x224);if(_0xc917a3['startsWith']('docker'))return _0x367a22+_0x3aaf4f(0x214);return _0x367a22+'\x20lines,\x20'+_0x2ebc3e+_0x3aaf4f(0x212);}function a0_0xc356(){const _0x5a7f44=['\x20tree','14149962zyMumS','30nRJXqV','hasOwnProperty','docker-images','1442416tRndgk','crypto','cwd','1428469qFChva','\x20ls\x20','slice','[cached\x20—\x20unchanged\x20since\x20','trim','timestamp','length','git-status','ruff\x20check','\x20lines,\x20','__esModule','9613500jOqVJB','kubectl\x20describe','hex','tree','match','file','readFileSync','go-vet','join','.trimprompt','git\x20log','now','stringify','round','includes','endsWith','prototype','git\x20status','parse','existsSync','update','kubectl','create','default','call','git-log','git-show','\x20ls','configurable','\x20chars','yadm\x20show','\x20lines','digest','defineProperty','29YiJcTg','5zgynfc','summary','dedup','__createBinding','writeFileSync','docker-ps','ruff','mkdirSync','writable','path','getOwnPropertyNames','yadm\x20status','\x20entries','get','utf8','3038289bnsDAU','s\x20ago,\x20','git\x20show','224564oYSjcl','26162OUhQlo','hash','split','cache.json','md5','ruff\x20','keys','\x20tree\x20','createHash','yadm\x20log'];a0_0xc356=function(){return _0x5a7f44;};return a0_0xc356();}function dedup(_0x365d1e,_0x443ee6){const _0x5e62e7=a0_0x5caef3;try{const _0x6b84ca=classifyCommand(_0x365d1e);if(!_0x6b84ca)return null;const _0x5696bf=TTL_SECONDS[_0x6b84ca];if(!_0x5696bf)return null;const _0x46e706=process[_0x5e62e7(0x1e9)](),_0x1e8dde=md5(_0x46e706+'::'+_0x365d1e[_0x5e62e7(0x1ee)]()),_0x407b7a=md5(_0x443ee6),_0x980378=Date[_0x5e62e7(0x200)](),_0x4be4e8=loadStore(),_0x47eb8b=_0x4be4e8[_0x1e8dde];if(_0x47eb8b&&_0x47eb8b[_0x5e62e7(0x1d9)]===_0x407b7a&&_0x980378-_0x47eb8b[_0x5e62e7(0x1ef)]<_0x5696bf*0x3e8){const _0x43301a=Math[_0x5e62e7(0x202)]((_0x980378-_0x47eb8b['timestamp'])/0x3e8);return _0x5e62e7(0x1ed)+_0x43301a+_0x5e62e7(0x1d5)+_0x47eb8b[_0x5e62e7(0x219)]+']';}_0x4be4e8[_0x1e8dde]={'hash':_0x407b7a,'summary':buildSummary(_0x443ee6,_0x6b84ca),'timestamp':_0x980378,'chars':_0x443ee6['length']},saveStore(_0x4be4e8);}catch{}return null;}
package/ccr.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2e31a3=a0_0x16f2;(function(_0xa81249,_0x2e6707){const _0x57e8c3=a0_0x16f2,_0x532d47=_0xa81249();while(!![]){try{const _0x31b389=-parseInt(_0x57e8c3(0x13b))/0x1+-parseInt(_0x57e8c3(0x14f))/0x2+parseInt(_0x57e8c3(0x149))/0x3*(parseInt(_0x57e8c3(0x162))/0x4)+parseInt(_0x57e8c3(0x150))/0x5*(-parseInt(_0x57e8c3(0x14a))/0x6)+parseInt(_0x57e8c3(0x141))/0x7+parseInt(_0x57e8c3(0x134))/0x8+parseInt(_0x57e8c3(0x143))/0x9;if(_0x31b389===_0x2e6707)break;else _0x532d47['push'](_0x532d47['shift']());}catch(_0x3a2040){_0x532d47['push'](_0x532d47['shift']());}}}(a0_0x3b87,0x93d6e));var __createBinding=this&&this[a0_0x2e31a3(0x14e)]||(Object['create']?function(_0x48df5c,_0x40893d,_0x2f5b85,_0xfbb945){const _0x19abb7=a0_0x2e31a3;if(_0xfbb945===undefined)_0xfbb945=_0x2f5b85;var _0x1557fd=Object[_0x19abb7(0x14b)](_0x40893d,_0x2f5b85);(!_0x1557fd||(_0x19abb7(0x12e)in _0x1557fd?!_0x40893d[_0x19abb7(0x131)]:_0x1557fd['writable']||_0x1557fd['configurable']))&&(_0x1557fd={'enumerable':!![],'get':function(){return _0x40893d[_0x2f5b85];}}),Object[_0x19abb7(0x124)](_0x48df5c,_0xfbb945,_0x1557fd);}:function(_0x77dfb5,_0x5cf5d5,_0x2da7cb,_0xbbf5bf){if(_0xbbf5bf===undefined)_0xbbf5bf=_0x2da7cb;_0x77dfb5[_0xbbf5bf]=_0x5cf5d5[_0x2da7cb];}),__setModuleDefault=this&&this[a0_0x2e31a3(0x13c)]||(Object[a0_0x2e31a3(0x12d)]?function(_0x400f1d,_0x51c75d){const _0x239ef3=a0_0x2e31a3;Object[_0x239ef3(0x124)](_0x400f1d,_0x239ef3(0x158),{'enumerable':!![],'value':_0x51c75d});}:function(_0x17ef0e,_0x4144f5){_0x17ef0e['default']=_0x4144f5;}),__importStar=this&&this[a0_0x2e31a3(0x153)]||(function(){var _0x142f18=function(_0x1b596a){const _0x206f70=a0_0x16f2;return _0x142f18=Object[_0x206f70(0x139)]||function(_0x2d6108){const _0x1b9d0e=_0x206f70;var _0x2736d2=[];for(var _0x49ef31 in _0x2d6108)if(Object['prototype'][_0x1b9d0e(0x15b)][_0x1b9d0e(0x12b)](_0x2d6108,_0x49ef31))_0x2736d2[_0x2736d2[_0x1b9d0e(0x14c)]]=_0x49ef31;return _0x2736d2;},_0x142f18(_0x1b596a);};return function(_0x523926){const _0x5cac28=a0_0x16f2;if(_0x523926&&_0x523926[_0x5cac28(0x131)])return _0x523926;var _0x15e42e={};if(_0x523926!=null){for(var _0x245e56=_0x142f18(_0x523926),_0x213098=0x0;_0x213098<_0x245e56[_0x5cac28(0x14c)];_0x213098++)if(_0x245e56[_0x213098]!==_0x5cac28(0x158))__createBinding(_0x15e42e,_0x523926,_0x245e56[_0x213098]);}return __setModuleDefault(_0x15e42e,_0x523926),_0x15e42e;};}());function a0_0x3b87(){const _0x14678f=['.java','.trimprompt','.tsx','startsWith','.py','pop','crypto','defineProperty','existsSync','split','interface','createHash','function','hex','call','skeletonize','create','get','def\x20','class\x20','__esModule','writeFileSync','push','1302648gOJZfL','.go','import','var','update','getOwnPropertyNames','let','350617ucGqUC','__setModuleDefault','\x22\x22\x22','export','match','md5','4688432uDfVIn','join','10765062VyItWc','trim','\x20lines\x20collapsed\x20to\x20save\x20tokens]\x20...\x0a','substring','includes','runCcr','9RKOOqp','6141204zSrLzZ','getOwnPropertyDescriptor','length','slice','__createBinding','2107238rYlFWf','5lLGXnn','.rs','endsWith','__importStar','from\x20','path','replace','type','default','\x27\x27\x27','.\x20To\x20read\x20the\x20full\x20raw\x20content,\x20run\x20the\x20shell\x20command:\x20trim\x20retrieve\x20','hasOwnProperty','.jsx','const','#\x20...\x20[collapsed]','extname','digest','import\x20','1339460VYhVjb','utf8','.ts',']\x0a\x0a'];a0_0x3b87=function(){return _0x14678f;};return a0_0x3b87();}Object[a0_0x2e31a3(0x124)](exports,a0_0x2e31a3(0x131),{'value':!![]}),exports[a0_0x2e31a3(0x12c)]=skeletonize,exports[a0_0x2e31a3(0x148)]=runCcr;const crypto=__importStar(require(a0_0x2e31a3(0x123))),fs=__importStar(require('fs')),path=__importStar(require(a0_0x2e31a3(0x155))),os=__importStar(require('os'));function a0_0x16f2(_0x17c099,_0x13d157){_0x17c099=_0x17c099-0x11b;const _0x3b87c3=a0_0x3b87();let _0x16f265=_0x3b87c3[_0x17c099];return _0x16f265;}function skeletonize(_0x59a5e1,_0x102dfc){const _0x239999=a0_0x2e31a3,_0x2d07ab=path[_0x239999(0x15f)](_0x102dfc[_0x239999(0x126)]('\x20')[_0x239999(0x122)]()||'')['toLowerCase'](),_0x269a5b=_0x59a5e1['split']('\x0a'),_0xcbf814=[];if(_0x2d07ab===_0x239999(0x121)){let _0x20197d=![],_0x19f4e8='';for(let _0x814797=0x0;_0x814797<_0x269a5b[_0x239999(0x14c)];_0x814797++){const _0x5312ef=_0x269a5b[_0x814797],_0x1b558c=_0x5312ef['trim'](),_0x308faf=_0x5312ef[_0x239999(0x14c)]-_0x5312ef['trimStart']()[_0x239999(0x14c)];if(!_0x20197d&&(_0x1b558c['startsWith'](_0x239999(0x13d))||_0x1b558c[_0x239999(0x120)](_0x239999(0x159)))){_0x20197d=!![],_0x19f4e8=_0x1b558c[_0x239999(0x146)](0x0,0x3),_0xcbf814[_0x239999(0x133)](_0x5312ef);_0x1b558c[_0x239999(0x152)](_0x19f4e8)&&_0x1b558c[_0x239999(0x14c)]>0x3&&(_0x20197d=![]);continue;}if(_0x20197d){_0xcbf814[_0x239999(0x133)](_0x5312ef);_0x1b558c[_0x239999(0x152)](_0x19f4e8)&&(_0x20197d=![]);continue;}if(_0x1b558c[_0x239999(0x120)](_0x239999(0x161))||_0x1b558c[_0x239999(0x120)](_0x239999(0x154))||_0x1b558c[_0x239999(0x120)](_0x239999(0x130))||_0x1b558c[_0x239999(0x120)](_0x239999(0x12f))||_0x1b558c['startsWith']('@')||_0x1b558c[_0x239999(0x120)]('#')||_0x1b558c[_0x239999(0x14c)]===0x0)_0xcbf814[_0x239999(0x133)](_0x5312ef);else{const _0x776046=_0xcbf814[_0xcbf814[_0x239999(0x14c)]-0x1]||'';if(!_0x776046[_0x239999(0x144)]()[_0x239999(0x152)](_0x239999(0x15e))){const _0x22dcfa='\x20'['repeat'](_0x308faf);_0xcbf814[_0x239999(0x133)](_0x22dcfa+_0x239999(0x15e));}}}return _0xcbf814['join']('\x0a');}if(['.js',_0x239999(0x11b),_0x239999(0x15c),_0x239999(0x11f),_0x239999(0x135),_0x239999(0x151),_0x239999(0x11d),'.c','.cpp','.h'][_0x239999(0x147)](_0x2d07ab)){let _0x3d5010=0x0;for(let _0x3b0b0b=0x0;_0x3b0b0b<_0x269a5b[_0x239999(0x14c)];_0x3b0b0b++){const _0x3ae79f=_0x269a5b[_0x3b0b0b],_0x334148=_0x3ae79f['trim'](),_0x8c8f15=(_0x334148[_0x239999(0x13f)](/\{/g)||[])['length'],_0x3f15a5=(_0x334148[_0x239999(0x13f)](/\}/g)||[])[_0x239999(0x14c)];if(_0x3d5010===0x0)(_0x334148[_0x239999(0x120)](_0x239999(0x136))||_0x334148[_0x239999(0x120)](_0x239999(0x13e))||_0x334148['startsWith'](_0x239999(0x15d))||_0x334148[_0x239999(0x120)](_0x239999(0x13a))||_0x334148[_0x239999(0x120)](_0x239999(0x137))||_0x334148[_0x239999(0x120)]('class')||_0x334148[_0x239999(0x120)](_0x239999(0x129))||_0x334148[_0x239999(0x120)](_0x239999(0x127))||_0x334148[_0x239999(0x120)](_0x239999(0x157))||_0x334148[_0x239999(0x120)]('package')||_0x334148[_0x239999(0x120)]('fn')||_0x334148[_0x239999(0x120)]('pub')||_0x334148[_0x239999(0x14c)]===0x0||_0x334148[_0x239999(0x120)]('//')||_0x334148[_0x239999(0x120)]('/*')||_0x334148[_0x239999(0x120)]('*'))&&_0xcbf814[_0x239999(0x133)](_0x3ae79f),_0x8c8f15>_0x3f15a5&&(_0x3d5010+=_0x8c8f15-_0x3f15a5);else{const _0x239448=_0x3d5010+_0x8c8f15-_0x3f15a5;if(_0x239448<=0x0){const _0x1a537b=_0x3ae79f[_0x239999(0x13f)](/^\s*/)?.[0x0]||'';_0xcbf814[_0x239999(0x133)](_0x1a537b+'//\x20...\x20[collapsed]'),_0xcbf814[_0x239999(0x133)](_0x3ae79f),_0x3d5010=0x0;}else _0x3d5010=_0x239448;}}return _0xcbf814[_0x239999(0x142)]('\x0a');}if(_0x269a5b[_0x239999(0x14c)]<=0x64)return _0x59a5e1;return[..._0x269a5b[_0x239999(0x14d)](0x0,0x1e),'\x0a...\x20['+(_0x269a5b['length']-0x32)+_0x239999(0x145),..._0x269a5b[_0x239999(0x14d)](-0x14)][_0x239999(0x142)]('\x0a');}function runCcr(_0x5b7c18,_0x4bcc32){const _0x4184e7=a0_0x2e31a3,_0x1d7a37=_0x4bcc32[_0x4184e7(0x156)](/\\/g,'/'),_0x8682b2='tp_'+crypto[_0x4184e7(0x128)](_0x4184e7(0x140))[_0x4184e7(0x138)](_0x5b7c18)[_0x4184e7(0x160)](_0x4184e7(0x12a))[_0x4184e7(0x146)](0x0,0xa),_0x5d243d=path[_0x4184e7(0x142)](os['homedir'](),_0x4184e7(0x11e)),_0x3a0f1f=path[_0x4184e7(0x142)](_0x5d243d,'ccr');!fs[_0x4184e7(0x125)](_0x3a0f1f)&&fs['mkdirSync'](_0x3a0f1f,{'recursive':!![]});fs[_0x4184e7(0x132)](path[_0x4184e7(0x142)](_0x3a0f1f,_0x8682b2+'.txt'),_0x5b7c18,_0x4184e7(0x163));const _0x4d0400=skeletonize(_0x5b7c18,_0x1d7a37);return'[TrimPrompt:\x20CCR\x20Active.\x20Body\x20of\x20functions\x20collapsed\x20to\x20save\x20tokens.\x20Hash:\x20'+_0x8682b2+_0x4184e7(0x15a)+_0x8682b2+_0x4184e7(0x11c)+_0x4d0400;}
1
+ 'use strict';const a0_0x36d7d5=a0_0x2835;(function(_0x5ad3de,_0x40db75){const _0x464b66=a0_0x2835,_0x1bd8f9=_0x5ad3de();while(!![]){try{const _0x22faec=parseInt(_0x464b66(0x191))/0x1+parseInt(_0x464b66(0x1ba))/0x2*(parseInt(_0x464b66(0x1a3))/0x3)+-parseInt(_0x464b66(0x1a9))/0x4+parseInt(_0x464b66(0x188))/0x5+parseInt(_0x464b66(0x19b))/0x6+-parseInt(_0x464b66(0x1b0))/0x7+parseInt(_0x464b66(0x1a2))/0x8*(parseInt(_0x464b66(0x1a8))/0x9);if(_0x22faec===_0x40db75)break;else _0x1bd8f9['push'](_0x1bd8f9['shift']());}catch(_0x41ded9){_0x1bd8f9['push'](_0x1bd8f9['shift']());}}}(a0_0x52ee,0x2fb4d));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x263712,_0x45a80d,_0x404363,_0x26cdaf){const _0xa91cd2=a0_0x2835;if(_0x26cdaf===undefined)_0x26cdaf=_0x404363;var _0x550680=Object[_0xa91cd2(0x19f)](_0x45a80d,_0x404363);(!_0x550680||('get'in _0x550680?!_0x45a80d[_0xa91cd2(0x199)]:_0x550680[_0xa91cd2(0x1b7)]||_0x550680[_0xa91cd2(0x198)]))&&(_0x550680={'enumerable':!![],'get':function(){return _0x45a80d[_0x404363];}}),Object[_0xa91cd2(0x1a1)](_0x263712,_0x26cdaf,_0x550680);}:function(_0x2a4b32,_0x9e8f93,_0x4ec71c,_0x5745e7){if(_0x5745e7===undefined)_0x5745e7=_0x4ec71c;_0x2a4b32[_0x5745e7]=_0x9e8f93[_0x4ec71c];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x19cb83,_0x5f1724){const _0x335ac0=a0_0x2835;Object[_0x335ac0(0x1a1)](_0x19cb83,'default',{'enumerable':!![],'value':_0x5f1724});}:function(_0x3a87a0,_0x3ca53a){const _0x214f72=a0_0x2835;_0x3a87a0[_0x214f72(0x17c)]=_0x3ca53a;}),__importStar=this&&this['__importStar']||(function(){var _0x1d6840=function(_0x4c24c6){const _0x34b71a=a0_0x2835;return _0x1d6840=Object[_0x34b71a(0x179)]||function(_0x9201af){const _0x30f73f=_0x34b71a;var _0x11d0e3=[];for(var _0x33ce3b in _0x9201af)if(Object[_0x30f73f(0x1b5)][_0x30f73f(0x1b2)][_0x30f73f(0x1c4)](_0x9201af,_0x33ce3b))_0x11d0e3[_0x11d0e3[_0x30f73f(0x1c3)]]=_0x33ce3b;return _0x11d0e3;},_0x1d6840(_0x4c24c6);};return function(_0x16d3ee){const _0x239bf7=a0_0x2835;if(_0x16d3ee&&_0x16d3ee[_0x239bf7(0x199)])return _0x16d3ee;var _0x4eb1d2={};if(_0x16d3ee!=null){for(var _0x5e2efe=_0x1d6840(_0x16d3ee),_0xe91274=0x0;_0xe91274<_0x5e2efe['length'];_0xe91274++)if(_0x5e2efe[_0xe91274]!==_0x239bf7(0x17c))__createBinding(_0x4eb1d2,_0x16d3ee,_0x5e2efe[_0xe91274]);}return __setModuleDefault(_0x4eb1d2,_0x16d3ee),_0x4eb1d2;};}());Object[a0_0x36d7d5(0x1a1)](exports,a0_0x36d7d5(0x199),{'value':!![]}),exports[a0_0x36d7d5(0x1a6)]=skeletonize,exports[a0_0x36d7d5(0x18f)]=runCcr;const crypto=__importStar(require('crypto')),fs=__importStar(require('fs')),path=__importStar(require(a0_0x36d7d5(0x18b))),os=__importStar(require('os'));function a0_0x2835(_0x21b2b9,_0x839b97){_0x21b2b9=_0x21b2b9-0x179;const _0x52ee93=a0_0x52ee();let _0x2835eb=_0x52ee93[_0x21b2b9];return _0x2835eb;}function a0_0x52ee(){const _0x25c16a=['2406495IEfzWk','\x0a...\x20[','hasOwnProperty','pub','\x22\x22\x22','prototype','.js','writable','substring','.cpp','4IUGdAD','.tsx','createHash','.go','md5','\x27\x27\x27','const','ccr','//\x20...\x20[collapsed]','length','call','tp_','trim','getOwnPropertyNames','.txt','package','default','homedir','.py','mkdirSync','type','import\x20','.rs','split','join','writeFileSync','slice','.jsx','407685tDlpLP','.java','#\x20...\x20[collapsed]','path','replace','includes','.ts','runCcr','toLowerCase','286772UZtkJF','var','let','export','[TrimPrompt:\x20CCR\x20Active.\x20Body\x20of\x20functions\x20collapsed\x20to\x20save\x20tokens.\x20Hash:\x20','pop','repeat','configurable','__esModule','function','976326QuPReX','class','endsWith','extname','getOwnPropertyDescriptor','existsSync','defineProperty','418184IivgFT','201561SiKuQK','\x20lines\x20collapsed\x20to\x20save\x20tokens]\x20...\x0a','import','skeletonize','match','36jnvWeu','1341224vQktJB','startsWith',']\x0a\x0a','from\x20','trimStart','class\x20','push'];a0_0x52ee=function(){return _0x25c16a;};return a0_0x52ee();}function skeletonize(_0x2bbd13,_0x286552){const _0x2f188f=a0_0x36d7d5,_0x26761b=path[_0x2f188f(0x19e)](_0x286552[_0x2f188f(0x183)]('\x20')[_0x2f188f(0x196)]()||'')[_0x2f188f(0x190)](),_0x4c2a4d=_0x2bbd13['split']('\x0a'),_0x42d632=[];if(_0x26761b===_0x2f188f(0x17e)){let _0x359853=![],_0x41ee0c='';for(let _0x1c9194=0x0;_0x1c9194<_0x4c2a4d[_0x2f188f(0x1c3)];_0x1c9194++){const _0x590632=_0x4c2a4d[_0x1c9194],_0x317c1e=_0x590632[_0x2f188f(0x1c6)](),_0xb62b95=_0x590632[_0x2f188f(0x1c3)]-_0x590632[_0x2f188f(0x1ad)]()[_0x2f188f(0x1c3)];if(!_0x359853&&(_0x317c1e[_0x2f188f(0x1aa)](_0x2f188f(0x1b4))||_0x317c1e[_0x2f188f(0x1aa)](_0x2f188f(0x1bf)))){_0x359853=!![],_0x41ee0c=_0x317c1e[_0x2f188f(0x1b8)](0x0,0x3),_0x42d632[_0x2f188f(0x1af)](_0x590632);_0x317c1e[_0x2f188f(0x19d)](_0x41ee0c)&&_0x317c1e[_0x2f188f(0x1c3)]>0x3&&(_0x359853=![]);continue;}if(_0x359853){_0x42d632[_0x2f188f(0x1af)](_0x590632);_0x317c1e[_0x2f188f(0x19d)](_0x41ee0c)&&(_0x359853=![]);continue;}if(_0x317c1e[_0x2f188f(0x1aa)](_0x2f188f(0x181))||_0x317c1e[_0x2f188f(0x1aa)](_0x2f188f(0x1ac))||_0x317c1e['startsWith'](_0x2f188f(0x1ae))||_0x317c1e['startsWith']('def\x20')||_0x317c1e[_0x2f188f(0x1aa)]('@')||_0x317c1e[_0x2f188f(0x1aa)]('#')||_0x317c1e[_0x2f188f(0x1c3)]===0x0)_0x42d632[_0x2f188f(0x1af)](_0x590632);else{const _0x4975dd=_0x42d632[_0x42d632[_0x2f188f(0x1c3)]-0x1]||'';if(!_0x4975dd[_0x2f188f(0x1c6)]()[_0x2f188f(0x19d)](_0x2f188f(0x18a))){const _0x57d016='\x20'[_0x2f188f(0x197)](_0xb62b95);_0x42d632[_0x2f188f(0x1af)](_0x57d016+'#\x20...\x20[collapsed]');}}}return _0x42d632['join']('\x0a');}if([_0x2f188f(0x1b6),_0x2f188f(0x18e),_0x2f188f(0x187),_0x2f188f(0x1bb),_0x2f188f(0x1bd),_0x2f188f(0x182),_0x2f188f(0x189),'.c',_0x2f188f(0x1b9),'.h'][_0x2f188f(0x18d)](_0x26761b)){let _0x376a65=0x0;for(let _0x3ae3f6=0x0;_0x3ae3f6<_0x4c2a4d[_0x2f188f(0x1c3)];_0x3ae3f6++){const _0x344737=_0x4c2a4d[_0x3ae3f6],_0x201da3=_0x344737['trim'](),_0x4b3615=(_0x201da3[_0x2f188f(0x1a7)](/\{/g)||[])[_0x2f188f(0x1c3)],_0x535802=(_0x201da3[_0x2f188f(0x1a7)](/\}/g)||[])[_0x2f188f(0x1c3)];if(_0x376a65===0x0)(_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x1a5))||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x194))||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x1c0))||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x193))||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x192))||_0x201da3['startsWith'](_0x2f188f(0x19c))||_0x201da3['startsWith'](_0x2f188f(0x19a))||_0x201da3[_0x2f188f(0x1aa)]('interface')||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x180))||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x17b))||_0x201da3['startsWith']('fn')||_0x201da3[_0x2f188f(0x1aa)](_0x2f188f(0x1b3))||_0x201da3['length']===0x0||_0x201da3[_0x2f188f(0x1aa)]('//')||_0x201da3[_0x2f188f(0x1aa)]('/*')||_0x201da3[_0x2f188f(0x1aa)]('*'))&&_0x42d632[_0x2f188f(0x1af)](_0x344737),_0x4b3615>_0x535802&&(_0x376a65+=_0x4b3615-_0x535802);else{const _0x5574e9=_0x376a65+_0x4b3615-_0x535802;if(_0x5574e9<=0x0){const _0x4293a4=_0x344737[_0x2f188f(0x1a7)](/^\s*/)?.[0x0]||'';_0x42d632['push'](_0x4293a4+_0x2f188f(0x1c2)),_0x42d632['push'](_0x344737),_0x376a65=0x0;}else _0x376a65=_0x5574e9;}}return _0x42d632[_0x2f188f(0x184)]('\x0a');}if(_0x4c2a4d['length']<=0x64)return _0x2bbd13;return[..._0x4c2a4d[_0x2f188f(0x186)](0x0,0x1e),_0x2f188f(0x1b1)+(_0x4c2a4d[_0x2f188f(0x1c3)]-0x32)+_0x2f188f(0x1a4),..._0x4c2a4d[_0x2f188f(0x186)](-0x14)][_0x2f188f(0x184)]('\x0a');}function runCcr(_0x1ce5e7,_0x861ec3){const _0x23bea9=a0_0x36d7d5,_0x3582c5=_0x861ec3[_0x23bea9(0x18c)](/\\/g,'/'),_0x8ac1b6=_0x23bea9(0x1c5)+crypto[_0x23bea9(0x1bc)](_0x23bea9(0x1be))['update'](_0x1ce5e7)['digest']('hex')[_0x23bea9(0x1b8)](0x0,0xa),_0x42d9aa=path[_0x23bea9(0x184)](os[_0x23bea9(0x17d)](),'.trimprompt'),_0x399ec3=path[_0x23bea9(0x184)](_0x42d9aa,_0x23bea9(0x1c1));!fs[_0x23bea9(0x1a0)](_0x399ec3)&&fs[_0x23bea9(0x17f)](_0x399ec3,{'recursive':!![]});fs[_0x23bea9(0x185)](path['join'](_0x399ec3,_0x8ac1b6+_0x23bea9(0x17a)),_0x1ce5e7,'utf8');const _0x3b71a0=skeletonize(_0x1ce5e7,_0x3582c5);return _0x23bea9(0x195)+_0x8ac1b6+'.\x20To\x20read\x20the\x20full\x20raw\x20content,\x20run\x20the\x20shell\x20command:\x20trim\x20retrieve\x20'+_0x8ac1b6+_0x23bea9(0x1ab)+_0x3b71a0;}
package/cli.js CHANGED
@@ -162,7 +162,7 @@ async function runProxy(args) {
162
162
  process.exit(result.exitCode);
163
163
  }
164
164
  const PKG_VERSION = (() => {
165
- const version = '1.0.44';
165
+ const version = '1.0.45';
166
166
  if (version !== '__VERSION__')
167
167
  return version;
168
168
  try {
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x55833c=a0_0xfdb5;(function(_0x2ed84b,_0xdd8856){const _0x231e78=a0_0xfdb5,_0x2feb14=_0x2ed84b();while(!![]){try{const _0x461be5=-parseInt(_0x231e78(0x135))/0x1*(-parseInt(_0x231e78(0x118))/0x2)+-parseInt(_0x231e78(0x15d))/0x3*(-parseInt(_0x231e78(0x156))/0x4)+-parseInt(_0x231e78(0x181))/0x5+parseInt(_0x231e78(0x141))/0x6*(-parseInt(_0x231e78(0x134))/0x7)+parseInt(_0x231e78(0x120))/0x8*(parseInt(_0x231e78(0x188))/0x9)+parseInt(_0x231e78(0x18a))/0xa*(parseInt(_0x231e78(0x161))/0xb)+-parseInt(_0x231e78(0x167))/0xc*(parseInt(_0x231e78(0x17e))/0xd);if(_0x461be5===_0xdd8856)break;else _0x2feb14['push'](_0x2feb14['shift']());}catch(_0x824590){_0x2feb14['push'](_0x2feb14['shift']());}}}(a0_0x4eb8,0x2ccfb));function a0_0xfdb5(_0x55d506,_0x5f49c1){_0x55d506=_0x55d506-0x118;const _0x4eb830=a0_0x4eb8();let _0xfdb5d5=_0x4eb830[_0x55d506];return _0xfdb5d5;}function a0_0x4eb8(){const _0x3eead0=['fileName','aider','defineProperty','claude','hasOwnProperty','getConfig','37870DQxVva','1TJTBlm','join','Missing\x20agentKey','lastModified','length','copilot','json','./file-watcher','__createBinding','readFileSync','utf8','logs','330cTzfvE','error','No\x20compressible\x20content\x20found\x20in\x20this\x20session','rawTokens','Directory\x20not\x20found','cli.js','existsSync','cortex','command','path','catch','conv:','watcher','getLogs','/api/config/features','opencode','cursor','/api/stats/history','execPath','call','activeSavedTokens','144dlXHbl','getOwnPropertyNames','getStatsSummary','includes','homedir','explorer\x20\x22','configurable','7191VHxZzL','exit','filter','xdg-open\x20\x22','40667YbmMGf','default','[TrimPrompt]\x20Dashboard\x20error:\x20','ignore','resolve','./tracker','36zOvkTa','child_process','open','/api/stats/summary','getOwnPropertyDescriptor','gemini','.comp.txt','message','/api/agent/compact','timestamp','writable','savedTokens','../src/favicon.png','use','index.html','win32','tracker','compressedTokens','favicon.png','prototype','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','__esModule','slice','120107sFUKXo','compactPath','http://localhost:','72690gyBwFB','now','Compressed\x20output\x20log\x20file\x20not\x20found.','open\x20\x22','__setModuleDefault','EADDRINUSE','listen','10215lkACou','fullPath','150tPkQjy','auto','then','/favicon.png','openclaw','params','SIGTERM','175280JRkBoU','argv','mkdirSync','get','No\x20active\x20session\x20file\x20found','post','platform','.trimprompt','2072lOmhco','darwin','status','features_enabled','reductionPct','/api/config/open-dir','sendFile','body','--headless','kill','log','payload','create','code'];a0_0x4eb8=function(){return _0x3eead0;};return a0_0x4eb8();}var __createBinding=this&&this[a0_0x55833c(0x13d)]||(Object[a0_0x55833c(0x12c)]?function(_0x2fdc54,_0xa8162b,_0x10516b,_0x5d9ca7){const _0x250655=a0_0x55833c;if(_0x5d9ca7===undefined)_0x5d9ca7=_0x10516b;var _0x1773ac=Object[_0x250655(0x16b)](_0xa8162b,_0x10516b);(!_0x1773ac||(_0x250655(0x11b)in _0x1773ac?!_0xa8162b[_0x250655(0x17c)]:_0x1773ac[_0x250655(0x171)]||_0x1773ac[_0x250655(0x15c)]))&&(_0x1773ac={'enumerable':!![],'get':function(){return _0xa8162b[_0x10516b];}}),Object['defineProperty'](_0x2fdc54,_0x5d9ca7,_0x1773ac);}:function(_0xec3ac7,_0xae76de,_0x3a3c3f,_0x160ea1){if(_0x160ea1===undefined)_0x160ea1=_0x3a3c3f;_0xec3ac7[_0x160ea1]=_0xae76de[_0x3a3c3f];}),__setModuleDefault=this&&this[a0_0x55833c(0x185)]||(Object['create']?function(_0x17e692,_0x3bda37){const _0x5470bc=a0_0x55833c;Object[_0x5470bc(0x130)](_0x17e692,_0x5470bc(0x162),{'enumerable':!![],'value':_0x3bda37});}:function(_0x482ccd,_0x395de7){_0x482ccd['default']=_0x395de7;}),__importStar=this&&this['__importStar']||(function(){var _0x2d3933=function(_0x2fff2d){const _0x3853bd=a0_0xfdb5;return _0x2d3933=Object[_0x3853bd(0x157)]||function(_0x57412c){const _0x5b810e=_0x3853bd;var _0x3cad5d=[];for(var _0x3a030a in _0x57412c)if(Object[_0x5b810e(0x17a)][_0x5b810e(0x132)][_0x5b810e(0x154)](_0x57412c,_0x3a030a))_0x3cad5d[_0x3cad5d[_0x5b810e(0x139)]]=_0x3a030a;return _0x3cad5d;},_0x2d3933(_0x2fff2d);};return function(_0x425538){const _0x4e162b=a0_0xfdb5;if(_0x425538&&_0x425538['__esModule'])return _0x425538;var _0x2684a2={};if(_0x425538!=null){for(var _0x3ebf94=_0x2d3933(_0x425538),_0xec4545=0x0;_0xec4545<_0x3ebf94[_0x4e162b(0x139)];_0xec4545++)if(_0x3ebf94[_0xec4545]!==_0x4e162b(0x162))__createBinding(_0x2684a2,_0x425538,_0x3ebf94[_0xec4545]);}return __setModuleDefault(_0x2684a2,_0x425538),_0x2684a2;};}()),__importDefault=this&&this['__importDefault']||function(_0x290e9a){const _0x145cd4=a0_0x55833c;return _0x290e9a&&_0x290e9a[_0x145cd4(0x17c)]?_0x290e9a:{'default':_0x290e9a};};Object[a0_0x55833c(0x130)](exports,a0_0x55833c(0x17c),{'value':!![]}),exports['startDashboard']=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x55833c(0x14a))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x55833c(0x169))),tracker_1=require(a0_0x55833c(0x166)),app=(0x0,express_1['default'])();app[a0_0x55833c(0x174)](express_1['default'][a0_0x55833c(0x13b)]());const baseDir=path[a0_0x55833c(0x136)](os[a0_0x55833c(0x15a)](),a0_0x55833c(0x11f)),logsDir=path[a0_0x55833c(0x136)](baseDir,a0_0x55833c(0x140));let configPayloadCache=null;const CONFIG_CACHE_TTL_MS=0x2710;function invalidateConfigCache(){configPayloadCache=null;}app[a0_0x55833c(0x11b)]('/',(_0x296b2a,_0x2e24ad)=>{const _0x241dc3=a0_0x55833c,_0x51802e=path['join'](__dirname,_0x241dc3(0x175));fs[_0x241dc3(0x147)](_0x51802e)?_0x2e24ad[_0x241dc3(0x126)](_0x51802e):_0x2e24ad[_0x241dc3(0x126)](path['join'](__dirname,'../src/index.html'));}),app['get'](a0_0x55833c(0x18d),(_0x2ff71f,_0x4be61e)=>{const _0x29e5eb=a0_0x55833c,_0x363c60=path[_0x29e5eb(0x136)](__dirname,_0x29e5eb(0x179));fs[_0x29e5eb(0x147)](_0x363c60)?_0x4be61e['sendFile'](_0x363c60):_0x4be61e[_0x29e5eb(0x126)](path[_0x29e5eb(0x136)](__dirname,_0x29e5eb(0x173)));}),app[a0_0x55833c(0x11b)](a0_0x55833c(0x16a),(_0x2ca565,_0x4fce1f)=>{const _0x50045b=a0_0x55833c,_0x335a87=_0x2ca565['query']['model']||_0x50045b(0x18b),_0x4ad24c=tracker_1[_0x50045b(0x177)][_0x50045b(0x158)](_0x335a87);_0x4fce1f[_0x50045b(0x13b)](_0x4ad24c);}),app['get'](a0_0x55833c(0x152),(_0xb4a280,_0x431709)=>{const _0xa35c78=a0_0x55833c,_0x200e81=tracker_1['tracker'][_0xa35c78(0x14e)]();_0x431709[_0xa35c78(0x13b)](_0x200e81[_0xa35c78(0x139)]>0x1f4?_0x200e81[_0xa35c78(0x17d)](-0x1f4):_0x200e81);}),app[a0_0x55833c(0x11b)]('/api/stats/inspect/:id',(_0x50b664,_0x5450f8)=>{const _0x4ef5d1=a0_0x55833c,_0x581407=_0x50b664[_0x4ef5d1(0x18f)]['id'],_0x1ab6b4=path[_0x4ef5d1(0x136)](logsDir,_0x581407+'.raw.txt'),_0xd9de16=path['join'](logsDir,_0x581407+_0x4ef5d1(0x16d));let _0x5ef6b2='Raw\x20output\x20log\x20file\x20not\x20found.',_0x188256=_0x4ef5d1(0x183);try{fs['existsSync'](_0x1ab6b4)&&(_0x5ef6b2=fs[_0x4ef5d1(0x13e)](_0x1ab6b4,_0x4ef5d1(0x13f))),fs[_0x4ef5d1(0x147)](_0xd9de16)&&(_0x188256=fs[_0x4ef5d1(0x13e)](_0xd9de16,'utf8'));}catch(_0x589cdd){}_0x5450f8['json']({'id':_0x581407,'raw':_0x5ef6b2,'compressed':_0x188256});}),app[a0_0x55833c(0x11b)]('/api/config/features',(_0x16af58,_0x4d97c2)=>{const _0x135c70=a0_0x55833c,_0x53a567=tracker_1[_0x135c70(0x177)][_0x135c70(0x133)]();_0x4d97c2['json'](_0x53a567[_0x135c70(0x123)]||{});}),app[a0_0x55833c(0x11d)](a0_0x55833c(0x14f),(_0x2f7276,_0x3ec1e3)=>{const _0x36184a=a0_0x55833c,_0x440701=_0x2f7276['body'];tracker_1['tracker']['setConfig'](_0x36184a(0x123),_0x440701),invalidateConfigCache(),_0x3ec1e3[_0x36184a(0x13b)]({'ok':!![]});}),app[a0_0x55833c(0x11d)](a0_0x55833c(0x16f),async(_0x1b6331,_0x58e57c)=>{const _0x297fe2=a0_0x55833c;try{const {getLatestSessionFile:_0xe90f60,compactSessionCopy:_0x3973b6}=await Promise[_0x297fe2(0x165)]()['then'](()=>__importStar(require(_0x297fe2(0x13c)))),{agentKey:_0x23f8f7}=_0x1b6331[_0x297fe2(0x127)]||{},_0x4e9009=_0x23f8f7||_0x297fe2(0x131),_0x4017e5=_0xe90f60(_0x4e9009);if(_0x4017e5&&_0x4017e5[_0x297fe2(0x189)]&&fs[_0x297fe2(0x147)](_0x4017e5[_0x297fe2(0x189)])){const _0xa48379=_0x3973b6(_0x4017e5[_0x297fe2(0x189)],_0x4e9009);_0xa48379['ok']&&(_0xa48379[_0x297fe2(0x172)]||0x0)>0x0?_0x58e57c['json']({'ok':!![],'fileName':_0x4017e5[_0x297fe2(0x12e)],'tokensSaved':_0xa48379[_0x297fe2(0x172)],'rawTokens':_0xa48379[_0x297fe2(0x144)],'compressedTokens':_0xa48379[_0x297fe2(0x178)],'reductionPct':_0xa48379[_0x297fe2(0x124)],'compactPath':_0xa48379[_0x297fe2(0x17f)]}):_0x58e57c['json']({'ok':![],'message':_0xa48379['reason']||_0x297fe2(0x143)});}else _0x58e57c['json']({'ok':![],'message':_0x297fe2(0x11c)});}catch(_0x1fc59b){_0x58e57c[_0x297fe2(0x122)](0x1f4)[_0x297fe2(0x13b)]({'ok':![],'error':_0x1fc59b[_0x297fe2(0x16e)]});}}),app[a0_0x55833c(0x11b)]('/api/config',async(_0x43db45,_0x9cf2a2)=>{const _0xc6798=a0_0x55833c;if(configPayloadCache&&Date[_0xc6798(0x182)]()-configPayloadCache['at']<CONFIG_CACHE_TTL_MS)return _0x9cf2a2['json'](configPayloadCache[_0xc6798(0x12b)]);const {loadConfig:_0x254a01,getAgentStoragePaths:_0x3839ef,getLatestSessionFile:_0x1ff27d,loadSessionsState:_0x380b9c}=await Promise[_0xc6798(0x165)]()[_0xc6798(0x18c)](()=>__importStar(require(_0xc6798(0x13c)))),_0x6321d5=_0x254a01(),_0x2c0bb9=[_0xc6798(0x131),_0xc6798(0x16c),'codex',_0xc6798(0x151),_0xc6798(0x12f),_0xc6798(0x13a),_0xc6798(0x18e),_0xc6798(0x150),_0xc6798(0x148)],_0xbc4c62={},_0x1cb9e3={},_0x238a9d={},_0x1e9c44=_0x380b9c(),_0x4d0f4b=tracker_1[_0xc6798(0x177)][_0xc6798(0x14e)]()||[];for(const _0xec1755 of _0x2c0bb9){_0xbc4c62[_0xec1755]=_0x3839ef(_0xec1755);const _0x57d702=_0x1ff27d(_0xec1755);if(_0x57d702&&_0x57d702[_0xc6798(0x189)]&&_0x1e9c44[_0x57d702[_0xc6798(0x189)]])_0x57d702[_0xc6798(0x155)]=_0x1e9c44[_0x57d702['fullPath']][_0xc6798(0x155)]||0x0;else{if(_0x57d702)_0x57d702['activeSavedTokens']=0x0;}_0x238a9d[_0xec1755]=_0x57d702;const _0x2e38ba=_0x4d0f4b[_0xc6798(0x15f)](_0x3089bc=>_0x3089bc[_0xc6798(0x149)]&&_0x3089bc[_0xc6798(0x149)][_0xc6798(0x159)](_0xc6798(0x14c)+_0xec1755));_0x2e38ba[_0xc6798(0x139)]>0x0?_0x1cb9e3[_0xec1755]=_0x2e38ba[_0x2e38ba[_0xc6798(0x139)]-0x1][_0xc6798(0x170)]:_0x1cb9e3[_0xec1755]=_0x57d702?_0x57d702[_0xc6798(0x138)]:null;}const _0x3a2e45={..._0x6321d5,'resolvedPaths':_0xbc4c62,'lastActiveTimestamps':_0x1cb9e3,'latestSessions':_0x238a9d};configPayloadCache={'at':Date[_0xc6798(0x182)](),'payload':_0x3a2e45},_0x9cf2a2['json'](_0x3a2e45);}),app[a0_0x55833c(0x11d)](a0_0x55833c(0x125),async(_0x29bc74,_0x3fcd64)=>{const _0x5a435e=a0_0x55833c,{getAgentStoragePaths:_0x1a482f}=await Promise[_0x5a435e(0x165)]()['then'](()=>__importStar(require(_0x5a435e(0x13c)))),{agentKey:_0x2880a2}=_0x29bc74[_0x5a435e(0x127)]||{};if(!_0x2880a2)return _0x3fcd64['status'](0x190)['json']({'error':'Missing\x20agentKey'});const _0x360555=_0x1a482f(_0x2880a2),_0x4097c8=_0x360555['find'](_0x329916=>fs[_0x5a435e(0x147)](_0x329916))||_0x360555[0x0];if(_0x4097c8){if(!fs[_0x5a435e(0x147)](_0x4097c8))try{fs[_0x5a435e(0x11a)](_0x4097c8,{'recursive':!![]});}catch{}const {exec:_0x9b7a1}=await Promise[_0x5a435e(0x165)]()[_0x5a435e(0x18c)](()=>__importStar(require('child_process'))),_0x423a39=process[_0x5a435e(0x11e)]===_0x5a435e(0x176)?_0x5a435e(0x15b)+_0x4097c8+'\x22':process[_0x5a435e(0x11e)]===_0x5a435e(0x121)?_0x5a435e(0x184)+_0x4097c8+'\x22':_0x5a435e(0x160)+_0x4097c8+'\x22';return _0x9b7a1(_0x423a39),_0x3fcd64[_0x5a435e(0x13b)]({'success':!![],'openedPath':_0x4097c8});}_0x3fcd64[_0x5a435e(0x122)](0x194)[_0x5a435e(0x13b)]({'error':_0x5a435e(0x145)});}),app[a0_0x55833c(0x11d)]('/api/config/toggle',async(_0x1b18e4,_0x379560)=>{const _0x1801f0=a0_0x55833c,{saveConfig:_0x3a4fa5}=await Promise[_0x1801f0(0x165)]()[_0x1801f0(0x18c)](()=>__importStar(require(_0x1801f0(0x13c)))),{key:_0x28f285,value:_0x26a8a2}=_0x1b18e4[_0x1801f0(0x127)]||{};if(_0x28f285){const _0x5c9d4c=_0x3a4fa5({'conversation_toggles':{[_0x28f285]:_0x26a8a2}});return invalidateConfigCache(),_0x379560[_0x1801f0(0x13b)](_0x5c9d4c);}_0x379560[_0x1801f0(0x122)](0x190)['json']({'error':'Missing\x20key'});}),app[a0_0x55833c(0x11d)]('/api/config/custom-path',async(_0x3366e3,_0x8c6490)=>{const _0x51f374=a0_0x55833c,{saveConfig:_0x3c78ca}=await Promise['resolve']()['then'](()=>__importStar(require(_0x51f374(0x13c)))),{agentKey:_0x2cd729,path:_0x4821f5}=_0x3366e3[_0x51f374(0x127)]||{};if(_0x2cd729){const _0x34e65e=_0x3c78ca({'custom_storage_paths':{[_0x2cd729]:_0x4821f5||null}});return invalidateConfigCache(),_0x8c6490[_0x51f374(0x13b)](_0x34e65e);}_0x8c6490[_0x51f374(0x122)](0x190)[_0x51f374(0x13b)]({'error':_0x51f374(0x137)});});function startDashboard(_0x1f9060=0xfa0){const _0x18a1cd=a0_0x55833c;let _0x4e1458=_0x1f9060;const _0x90cefb=process[_0x18a1cd(0x119)][_0x18a1cd(0x159)](_0x18a1cd(0x128))||process.env.TRIMPROMPT_HEADLESS==='1',_0x377093=app[_0x18a1cd(0x187)](_0x4e1458,()=>{const _0x3e5472=_0x18a1cd,_0x3980ec=_0x3e5472(0x180)+_0x4e1458;!_0x90cefb&&(console[_0x3e5472(0x12a)](_0x3e5472(0x17b)+_0x3980ec),console[_0x3e5472(0x12a)]('Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.'));try{const {spawn:_0x57afcd}=require(_0x3e5472(0x168)),_0x5813cd=_0x57afcd(process[_0x3e5472(0x153)],[path['join'](__dirname,_0x3e5472(0x146)),_0x3e5472(0x14d),'start'],{'stdio':_0x3e5472(0x164),'windowsHide':!![]}),_0x49777e=()=>{const _0x5cb490=_0x3e5472;try{_0x5813cd[_0x5cb490(0x129)]();}catch{}};process['on'](_0x3e5472(0x15e),_0x49777e),process['on']('SIGINT',()=>{const _0x1becd3=_0x3e5472;_0x49777e(),process[_0x1becd3(0x15e)](0x0);}),process['on'](_0x3e5472(0x190),()=>{const _0x29477c=_0x3e5472;_0x49777e(),process[_0x29477c(0x15e)](0x0);});}catch{}!_0x90cefb&&process.env.TRIMPROMPT_NO_OPEN!=='1'&&(0x0,open_1['default'])(_0x3980ec)[_0x3e5472(0x14b)](()=>{});});_0x377093['on'](_0x18a1cd(0x142),_0x137596=>{const _0x57495d=_0x18a1cd;_0x137596[_0x57495d(0x12d)]===_0x57495d(0x186)?startDashboard(_0x4e1458+0x1):console['error'](_0x57495d(0x163)+_0x137596['message']);});}
1
+ 'use strict';function a0_0x22f3(){const _0x13d5d8=['error','/api/stats/summary','316yEeYMn','sendFile','[TrimPrompt]\x20Dashboard\x20error:\x20','codex','watcher','Missing\x20agentKey','/api/config/features','join','Missing\x20key','./file-watcher','12VOJJZp','defineProperty','resolve','platform','open','utf8','call','.trimprompt','includes','compactPath','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','fullPath','status','compressedTokens','134281JxbXwY','query','ignore','post','open\x20\x22','/favicon.png','get','then','message','__setModuleDefault','reductionPct','catch','code','create','auto','kill','reason','642996tmLZNa','No\x20compressible\x20content\x20found\x20in\x20this\x20session','favicon.png','configurable','logs','log','__createBinding','find','/api/config/open-dir','/api/config/toggle','/api/config/custom-path','769120QdEpPJ','use','features_enabled','.raw.txt','209811VuqplN','slice','20481NQXElL','homedir','existsSync','/api/agent/compact','8hdJcMK','getLogs','body','2ZBAJsQ','1793OnaIaR','getConfig','Directory\x20not\x20found','claude','__esModule','mkdirSync','darwin','explorer\x20\x22','aider','execPath','rawTokens','exit','--headless','.comp.txt','SIGTERM','getOwnPropertyDescriptor','No\x20active\x20session\x20file\x20found','savedTokens','1823540dExyRj','default','length','/api/config','conv:','cursor','activeSavedTokens','http://localhost:','now','json','__importStar','lastModified','tracker','gemini','fileName','Compressed\x20output\x20log\x20file\x20not\x20found.','15396ruWMhY','payload','command','cli.js','../src/index.html','readFileSync','EADDRINUSE','xdg-open\x20\x22','Raw\x20output\x20log\x20file\x20not\x20found.','cortex'];a0_0x22f3=function(){return _0x13d5d8;};return a0_0x22f3();}const a0_0x2c79d7=a0_0x86a5;(function(_0x32c680,_0x7dd7a5){const _0x4e4a27=a0_0x86a5,_0x1605b6=_0x32c680();while(!![]){try{const _0x216d0a=-parseInt(_0x4e4a27(0xd3))/0x1*(-parseInt(_0x4e4a27(0xdc))/0x2)+-parseInt(_0x4e4a27(0xd5))/0x3*(parseInt(_0x4e4a27(0x9b))/0x4)+parseInt(_0x4e4a27(0xef))/0x5+-parseInt(_0x4e4a27(0xa5))/0x6*(-parseInt(_0x4e4a27(0xb3))/0x7)+parseInt(_0x4e4a27(0xd9))/0x8*(parseInt(_0x4e4a27(0xc4))/0x9)+-parseInt(_0x4e4a27(0xcf))/0xa+-parseInt(_0x4e4a27(0xdd))/0xb*(-parseInt(_0x4e4a27(0x8f))/0xc);if(_0x216d0a===_0x7dd7a5)break;else _0x1605b6['push'](_0x1605b6['shift']());}catch(_0x2e2d0a){_0x1605b6['push'](_0x1605b6['shift']());}}}(a0_0x22f3,0x43add));function a0_0x86a5(_0x52706b,_0x4534ab){_0x52706b=_0x52706b-0x85;const _0x22f332=a0_0x22f3();let _0x86a553=_0x22f332[_0x52706b];return _0x86a553;}var __createBinding=this&&this[a0_0x2c79d7(0xca)]||(Object[a0_0x2c79d7(0xc0)]?function(_0x12b16e,_0x39b30a,_0x544214,_0x3802a1){const _0x3f8848=a0_0x2c79d7;if(_0x3802a1===undefined)_0x3802a1=_0x544214;var _0x2eb559=Object[_0x3f8848(0xec)](_0x39b30a,_0x544214);(!_0x2eb559||(_0x3f8848(0xb9)in _0x2eb559?!_0x39b30a['__esModule']:_0x2eb559['writable']||_0x2eb559[_0x3f8848(0xc7)]))&&(_0x2eb559={'enumerable':!![],'get':function(){return _0x39b30a[_0x544214];}}),Object['defineProperty'](_0x12b16e,_0x3802a1,_0x2eb559);}:function(_0x5b2fa5,_0x47c81d,_0x33a992,_0x31703e){if(_0x31703e===undefined)_0x31703e=_0x33a992;_0x5b2fa5[_0x31703e]=_0x47c81d[_0x33a992];}),__setModuleDefault=this&&this[a0_0x2c79d7(0xbc)]||(Object[a0_0x2c79d7(0xc0)]?function(_0x6b5293,_0x3e9de8){const _0x29b312=a0_0x2c79d7;Object[_0x29b312(0xa6)](_0x6b5293,_0x29b312(0xf0),{'enumerable':!![],'value':_0x3e9de8});}:function(_0x298228,_0x2a34dd){const _0x2c7126=a0_0x2c79d7;_0x298228[_0x2c7126(0xf0)]=_0x2a34dd;}),__importStar=this&&this[a0_0x2c79d7(0x89)]||(function(){var _0x19606d=function(_0x814b19){return _0x19606d=Object['getOwnPropertyNames']||function(_0x44b90c){const _0x46f1e3=a0_0x86a5;var _0x401cc4=[];for(var _0x33f18f in _0x44b90c)if(Object['prototype']['hasOwnProperty'][_0x46f1e3(0xab)](_0x44b90c,_0x33f18f))_0x401cc4[_0x401cc4[_0x46f1e3(0xf1)]]=_0x33f18f;return _0x401cc4;},_0x19606d(_0x814b19);};return function(_0x2cf25f){const _0x28eefb=a0_0x86a5;if(_0x2cf25f&&_0x2cf25f[_0x28eefb(0xe1)])return _0x2cf25f;var _0x54d22c={};if(_0x2cf25f!=null){for(var _0x46e5a6=_0x19606d(_0x2cf25f),_0x25cbf0=0x0;_0x25cbf0<_0x46e5a6['length'];_0x25cbf0++)if(_0x46e5a6[_0x25cbf0]!==_0x28eefb(0xf0))__createBinding(_0x54d22c,_0x2cf25f,_0x46e5a6[_0x25cbf0]);}return __setModuleDefault(_0x54d22c,_0x2cf25f),_0x54d22c;};}()),__importDefault=this&&this['__importDefault']||function(_0x1c5ce9){const _0x50e8e0=a0_0x2c79d7;return _0x1c5ce9&&_0x1c5ce9[_0x50e8e0(0xe1)]?_0x1c5ce9:{'default':_0x1c5ce9};};Object['defineProperty'](exports,a0_0x2c79d7(0xe1),{'value':!![]}),exports['startDashboard']=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require('path')),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x2c79d7(0xa9))),tracker_1=require('./tracker'),app=(0x0,express_1[a0_0x2c79d7(0xf0)])();app[a0_0x2c79d7(0xd0)](express_1[a0_0x2c79d7(0xf0)][a0_0x2c79d7(0x88)]());const baseDir=path[a0_0x2c79d7(0xa2)](os[a0_0x2c79d7(0xd6)](),a0_0x2c79d7(0xac)),logsDir=path['join'](baseDir,a0_0x2c79d7(0xc8));let configPayloadCache=null;const CONFIG_CACHE_TTL_MS=0x2710;function invalidateConfigCache(){configPayloadCache=null;}app[a0_0x2c79d7(0xb9)]('/',(_0x40daeb,_0x376e0e)=>{const _0x4377a8=a0_0x2c79d7,_0x13a49c=path[_0x4377a8(0xa2)](__dirname,'index.html');fs[_0x4377a8(0xd7)](_0x13a49c)?_0x376e0e[_0x4377a8(0x9c)](_0x13a49c):_0x376e0e[_0x4377a8(0x9c)](path[_0x4377a8(0xa2)](__dirname,_0x4377a8(0x93)));}),app['get'](a0_0x2c79d7(0xb8),(_0x1e8792,_0x50ac38)=>{const _0x24076f=a0_0x2c79d7,_0x2d8d25=path[_0x24076f(0xa2)](__dirname,_0x24076f(0xc6));fs['existsSync'](_0x2d8d25)?_0x50ac38['sendFile'](_0x2d8d25):_0x50ac38[_0x24076f(0x9c)](path['join'](__dirname,'../src/favicon.png'));}),app['get'](a0_0x2c79d7(0x9a),(_0x5b572e,_0x28b9a1)=>{const _0x3bb840=a0_0x2c79d7,_0x4b7dfa=_0x5b572e[_0x3bb840(0xb4)]['model']||_0x3bb840(0xc1),_0x3a85cb=tracker_1[_0x3bb840(0x8b)]['getStatsSummary'](_0x4b7dfa);_0x28b9a1[_0x3bb840(0x88)](_0x3a85cb);}),app[a0_0x2c79d7(0xb9)]('/api/stats/history',(_0x5c6221,_0x1999cb)=>{const _0x3b6dc9=a0_0x2c79d7,_0x57af72=tracker_1['tracker']['getLogs']();_0x1999cb[_0x3b6dc9(0x88)](_0x57af72['length']>0x1f4?_0x57af72[_0x3b6dc9(0xd4)](-0x1f4):_0x57af72);}),app[a0_0x2c79d7(0xb9)]('/api/stats/inspect/:id',(_0x3231ba,_0x53a93b)=>{const _0x330c61=a0_0x2c79d7,_0x4a1f76=_0x3231ba['params']['id'],_0x4c3c19=path[_0x330c61(0xa2)](logsDir,_0x4a1f76+_0x330c61(0xd2)),_0x2c9a18=path['join'](logsDir,_0x4a1f76+_0x330c61(0xea));let _0x9bb34b=_0x330c61(0x97),_0x46f2ff=_0x330c61(0x8e);try{fs[_0x330c61(0xd7)](_0x4c3c19)&&(_0x9bb34b=fs['readFileSync'](_0x4c3c19,'utf8')),fs[_0x330c61(0xd7)](_0x2c9a18)&&(_0x46f2ff=fs[_0x330c61(0x94)](_0x2c9a18,_0x330c61(0xaa)));}catch(_0x46d62f){}_0x53a93b[_0x330c61(0x88)]({'id':_0x4a1f76,'raw':_0x9bb34b,'compressed':_0x46f2ff});}),app[a0_0x2c79d7(0xb9)](a0_0x2c79d7(0xa1),(_0x170bbb,_0x526442)=>{const _0x1beff6=a0_0x2c79d7,_0x2a1c4c=tracker_1['tracker'][_0x1beff6(0xde)]();_0x526442[_0x1beff6(0x88)](_0x2a1c4c['features_enabled']||{});}),app['post']('/api/config/features',(_0x268d70,_0x44f9a2)=>{const _0x3254ae=a0_0x2c79d7,_0x46553c=_0x268d70['body'];tracker_1[_0x3254ae(0x8b)]['setConfig'](_0x3254ae(0xd1),_0x46553c),invalidateConfigCache(),_0x44f9a2[_0x3254ae(0x88)]({'ok':!![]});}),app['post'](a0_0x2c79d7(0xd8),async(_0x20d1a1,_0x2f1ec0)=>{const _0x59a6dc=a0_0x2c79d7;try{const {getLatestSessionFile:_0x3e4009,compactSessionCopy:_0x1b7690}=await Promise['resolve']()[_0x59a6dc(0xba)](()=>__importStar(require(_0x59a6dc(0xa4)))),{agentKey:_0x34f84a}=_0x20d1a1[_0x59a6dc(0xdb)]||{},_0xda1890=_0x34f84a||_0x59a6dc(0xe0),_0x3d6387=_0x3e4009(_0xda1890);if(_0x3d6387&&_0x3d6387['fullPath']&&fs[_0x59a6dc(0xd7)](_0x3d6387[_0x59a6dc(0xb0)])){const _0x58c2ad=_0x1b7690(_0x3d6387['fullPath'],_0xda1890);_0x58c2ad['ok']&&(_0x58c2ad[_0x59a6dc(0xee)]||0x0)>0x0?_0x2f1ec0['json']({'ok':!![],'fileName':_0x3d6387[_0x59a6dc(0x8d)],'tokensSaved':_0x58c2ad[_0x59a6dc(0xee)],'rawTokens':_0x58c2ad[_0x59a6dc(0xe7)],'compressedTokens':_0x58c2ad[_0x59a6dc(0xb2)],'reductionPct':_0x58c2ad[_0x59a6dc(0xbd)],'compactPath':_0x58c2ad[_0x59a6dc(0xae)]}):_0x2f1ec0[_0x59a6dc(0x88)]({'ok':![],'message':_0x58c2ad[_0x59a6dc(0xc3)]||_0x59a6dc(0xc5)});}else _0x2f1ec0[_0x59a6dc(0x88)]({'ok':![],'message':_0x59a6dc(0xed)});}catch(_0x223f29){_0x2f1ec0[_0x59a6dc(0xb1)](0x1f4)['json']({'ok':![],'error':_0x223f29[_0x59a6dc(0xbb)]});}}),app[a0_0x2c79d7(0xb9)](a0_0x2c79d7(0xf2),async(_0x2ac3dd,_0x5df629)=>{const _0x1c6b09=a0_0x2c79d7;if(configPayloadCache&&Date[_0x1c6b09(0x87)]()-configPayloadCache['at']<CONFIG_CACHE_TTL_MS)return _0x5df629[_0x1c6b09(0x88)](configPayloadCache[_0x1c6b09(0x90)]);const {loadConfig:_0x1a465d,getAgentStoragePaths:_0x44aa1f,getLatestSessionFile:_0x44d41f,loadSessionsState:_0x271186}=await Promise[_0x1c6b09(0xa7)]()[_0x1c6b09(0xba)](()=>__importStar(require('./file-watcher'))),_0x430eb5=_0x1a465d(),_0x5d16e3=[_0x1c6b09(0xe0),_0x1c6b09(0x8c),_0x1c6b09(0x9e),_0x1c6b09(0xf4),_0x1c6b09(0xe5),'copilot','openclaw','opencode',_0x1c6b09(0x98)],_0x26b401={},_0x450e69={},_0x2e10b9={},_0x35151c=_0x271186(),_0x5d6c3e=tracker_1[_0x1c6b09(0x8b)][_0x1c6b09(0xda)]()||[];for(const _0x7e201 of _0x5d16e3){_0x26b401[_0x7e201]=_0x44aa1f(_0x7e201);const _0x42758f=_0x44d41f(_0x7e201);if(_0x42758f&&_0x42758f[_0x1c6b09(0xb0)]&&_0x35151c[_0x42758f[_0x1c6b09(0xb0)]])_0x42758f[_0x1c6b09(0x85)]=_0x35151c[_0x42758f[_0x1c6b09(0xb0)]][_0x1c6b09(0x85)]||0x0;else{if(_0x42758f)_0x42758f['activeSavedTokens']=0x0;}_0x2e10b9[_0x7e201]=_0x42758f;const _0x211f91=_0x5d6c3e['filter'](_0x5e8535=>_0x5e8535[_0x1c6b09(0x91)]&&_0x5e8535[_0x1c6b09(0x91)][_0x1c6b09(0xad)](_0x1c6b09(0xf3)+_0x7e201));_0x211f91[_0x1c6b09(0xf1)]>0x0?_0x450e69[_0x7e201]=_0x211f91[_0x211f91[_0x1c6b09(0xf1)]-0x1]['timestamp']:_0x450e69[_0x7e201]=_0x42758f?_0x42758f[_0x1c6b09(0x8a)]:null;}const _0x310d00={..._0x430eb5,'resolvedPaths':_0x26b401,'lastActiveTimestamps':_0x450e69,'latestSessions':_0x2e10b9};configPayloadCache={'at':Date[_0x1c6b09(0x87)](),'payload':_0x310d00},_0x5df629[_0x1c6b09(0x88)](_0x310d00);}),app['post'](a0_0x2c79d7(0xcc),async(_0x118eb9,_0x1c7c9f)=>{const _0xfd040=a0_0x2c79d7,{getAgentStoragePaths:_0x30f2eb}=await Promise['resolve']()[_0xfd040(0xba)](()=>__importStar(require(_0xfd040(0xa4)))),{agentKey:_0x16384f}=_0x118eb9['body']||{};if(!_0x16384f)return _0x1c7c9f[_0xfd040(0xb1)](0x190)['json']({'error':_0xfd040(0xa0)});const _0x32cb61=_0x30f2eb(_0x16384f),_0x5ac8d5=_0x32cb61[_0xfd040(0xcb)](_0x20a390=>fs[_0xfd040(0xd7)](_0x20a390))||_0x32cb61[0x0];if(_0x5ac8d5){if(!fs[_0xfd040(0xd7)](_0x5ac8d5))try{fs[_0xfd040(0xe2)](_0x5ac8d5,{'recursive':!![]});}catch{}const {exec:_0x1c73f9}=await Promise[_0xfd040(0xa7)]()[_0xfd040(0xba)](()=>__importStar(require('child_process'))),_0xc7642c=process[_0xfd040(0xa8)]==='win32'?_0xfd040(0xe4)+_0x5ac8d5+'\x22':process[_0xfd040(0xa8)]===_0xfd040(0xe3)?_0xfd040(0xb7)+_0x5ac8d5+'\x22':_0xfd040(0x96)+_0x5ac8d5+'\x22';return _0x1c73f9(_0xc7642c),_0x1c7c9f['json']({'success':!![],'openedPath':_0x5ac8d5});}_0x1c7c9f[_0xfd040(0xb1)](0x194)[_0xfd040(0x88)]({'error':_0xfd040(0xdf)});}),app[a0_0x2c79d7(0xb6)](a0_0x2c79d7(0xcd),async(_0x1636ed,_0x69495)=>{const _0x529c27=a0_0x2c79d7,{saveConfig:_0x1221c3}=await Promise[_0x529c27(0xa7)]()['then'](()=>__importStar(require(_0x529c27(0xa4)))),{key:_0x2d9255,value:_0x2eba03}=_0x1636ed[_0x529c27(0xdb)]||{};if(_0x2d9255){const _0x3edf52=_0x1221c3({'conversation_toggles':{[_0x2d9255]:_0x2eba03}});return invalidateConfigCache(),_0x69495[_0x529c27(0x88)](_0x3edf52);}_0x69495[_0x529c27(0xb1)](0x190)[_0x529c27(0x88)]({'error':_0x529c27(0xa3)});}),app[a0_0x2c79d7(0xb6)](a0_0x2c79d7(0xce),async(_0x518fbd,_0x13344f)=>{const _0xbac3d1=a0_0x2c79d7,{saveConfig:_0x77d2b1}=await Promise[_0xbac3d1(0xa7)]()[_0xbac3d1(0xba)](()=>__importStar(require(_0xbac3d1(0xa4)))),{agentKey:_0x50b481,path:_0x6354ac}=_0x518fbd['body']||{};if(_0x50b481){const _0x27c2fa=_0x77d2b1({'custom_storage_paths':{[_0x50b481]:_0x6354ac||null}});return invalidateConfigCache(),_0x13344f[_0xbac3d1(0x88)](_0x27c2fa);}_0x13344f['status'](0x190)[_0xbac3d1(0x88)]({'error':_0xbac3d1(0xa0)});});function startDashboard(_0x1fe3ec=0xfa0){const _0x225ba8=a0_0x2c79d7;let _0x43c6ad=_0x1fe3ec;const _0x5277c1=process['argv'][_0x225ba8(0xad)](_0x225ba8(0xe9))||process.env.TRIMPROMPT_HEADLESS==='1',_0x4d8051=app['listen'](_0x43c6ad,()=>{const _0x37a6e1=_0x225ba8,_0x195aea=_0x37a6e1(0x86)+_0x43c6ad;!_0x5277c1&&(console[_0x37a6e1(0xc9)]('\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20'+_0x195aea),console['log'](_0x37a6e1(0xaf)));try{const {spawn:_0x177c1b}=require('child_process'),_0x2c9d5e=_0x177c1b(process[_0x37a6e1(0xe6)],[path['join'](__dirname,_0x37a6e1(0x92)),_0x37a6e1(0x9f),'start'],{'stdio':_0x37a6e1(0xb5),'windowsHide':!![]}),_0x3917cf=()=>{const _0x110b2e=_0x37a6e1;try{_0x2c9d5e[_0x110b2e(0xc2)]();}catch{}};process['on'](_0x37a6e1(0xe8),_0x3917cf),process['on']('SIGINT',()=>{_0x3917cf(),process['exit'](0x0);}),process['on'](_0x37a6e1(0xeb),()=>{const _0x220c2b=_0x37a6e1;_0x3917cf(),process[_0x220c2b(0xe8)](0x0);});}catch{}!_0x5277c1&&process.env.TRIMPROMPT_NO_OPEN!=='1'&&(0x0,open_1['default'])(_0x195aea)[_0x37a6e1(0xbe)](()=>{});});_0x4d8051['on'](_0x225ba8(0x99),_0x24c3d4=>{const _0x1bc082=_0x225ba8;_0x24c3d4[_0x1bc082(0xbf)]===_0x1bc082(0x95)?startDashboard(_0x43c6ad+0x1):console[_0x1bc082(0x99)](_0x1bc082(0x9d)+_0x24c3d4['message']);});}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x22124f=a0_0x3041;(function(_0x351de1,_0x2da0ba){var _0x425a47=a0_0x3041,_0x4919f1=_0x351de1();while(!![]){try{var _0x131ae0=-parseInt(_0x425a47(0x199))/0x1+parseInt(_0x425a47(0x1ab))/0x2*(-parseInt(_0x425a47(0x1ae))/0x3)+-parseInt(_0x425a47(0x1b3))/0x4*(-parseInt(_0x425a47(0x1a2))/0x5)+parseInt(_0x425a47(0x1b2))/0x6+parseInt(_0x425a47(0x1b9))/0x7*(parseInt(_0x425a47(0x1ad))/0x8)+parseInt(_0x425a47(0x1aa))/0x9+parseInt(_0x425a47(0x198))/0xa*(-parseInt(_0x425a47(0x1bb))/0xb);if(_0x131ae0===_0x2da0ba)break;else _0x4919f1['push'](_0x4919f1['shift']());}catch(_0x3854c7){_0x4919f1['push'](_0x4919f1['shift']());}}}(a0_0x296d,0x3672f));function a0_0x296d(){var _0x292466=['inherit','delimiter','executeCommand','prototype','814239guzotE','18GopcOe','__createBinding','632jVrjiV','109941ZHfefX','.trimprompt','homedir','pipe','985770AfZFVn','4ZVAkbL','__esModule','close','__importStar','call','filter','9149xEDtSK','default','24167QeghdV','shims','join','stderr','toLowerCase','length','data','child_process','toString','10ynhBGe','162863eHBcna','configurable','split','map','startsWith','getOwnPropertyDescriptor','defineProperty','writable','path','1799435GsJEyl','message','hasOwnProperty','\x22:\x20'];a0_0x296d=function(){return _0x292466;};return a0_0x296d();}function a0_0x3041(_0x462c05,_0x15451c){_0x462c05=_0x462c05-0x190;var _0x296d27=a0_0x296d();var _0x304172=_0x296d27[_0x462c05];return _0x304172;}var __createBinding=this&&this[a0_0x22124f(0x1ac)]||(Object['create']?function(_0x1cc297,_0x5f0545,_0x38a38b,_0x5dfa3b){var _0x4e5122=a0_0x22124f;if(_0x5dfa3b===undefined)_0x5dfa3b=_0x38a38b;var _0x2daf77=Object[_0x4e5122(0x19e)](_0x5f0545,_0x38a38b);(!_0x2daf77||('get'in _0x2daf77?!_0x5f0545[_0x4e5122(0x1b4)]:_0x2daf77[_0x4e5122(0x1a0)]||_0x2daf77[_0x4e5122(0x19a)]))&&(_0x2daf77={'enumerable':!![],'get':function(){return _0x5f0545[_0x38a38b];}}),Object[_0x4e5122(0x19f)](_0x1cc297,_0x5dfa3b,_0x2daf77);}:function(_0x2bdf24,_0x1d6bbc,_0x378609,_0x50445a){if(_0x50445a===undefined)_0x50445a=_0x378609;_0x2bdf24[_0x50445a]=_0x1d6bbc[_0x378609];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x1e043a,_0x2ef71b){var _0xaf3b1d=a0_0x22124f;Object[_0xaf3b1d(0x19f)](_0x1e043a,_0xaf3b1d(0x1ba),{'enumerable':!![],'value':_0x2ef71b});}:function(_0x57adfe,_0x55300c){var _0x34b62b=a0_0x22124f;_0x57adfe[_0x34b62b(0x1ba)]=_0x55300c;}),__importStar=this&&this[a0_0x22124f(0x1b6)]||(function(){var _0x38ba5b=function(_0x5486b3){return _0x38ba5b=Object['getOwnPropertyNames']||function(_0xf4f40a){var _0x259460=a0_0x3041,_0x266386=[];for(var _0x326dda in _0xf4f40a)if(Object[_0x259460(0x1a9)][_0x259460(0x1a4)][_0x259460(0x1b7)](_0xf4f40a,_0x326dda))_0x266386[_0x266386[_0x259460(0x194)]]=_0x326dda;return _0x266386;},_0x38ba5b(_0x5486b3);};return function(_0x411c0){var _0x224945=a0_0x3041;if(_0x411c0&&_0x411c0[_0x224945(0x1b4)])return _0x411c0;var _0x303dba={};if(_0x411c0!=null){for(var _0x35dc1c=_0x38ba5b(_0x411c0),_0x55ae7b=0x0;_0x55ae7b<_0x35dc1c[_0x224945(0x194)];_0x55ae7b++)if(_0x35dc1c[_0x55ae7b]!=='default')__createBinding(_0x303dba,_0x411c0,_0x35dc1c[_0x55ae7b]);}return __setModuleDefault(_0x303dba,_0x411c0),_0x303dba;};}());Object[a0_0x22124f(0x19f)](exports,a0_0x22124f(0x1b4),{'value':!![]}),exports[a0_0x22124f(0x1a8)]=executeCommand;const child_process_1=require(a0_0x22124f(0x196)),path=__importStar(require(a0_0x22124f(0x1a1))),os=__importStar(require('os'));function executeCommand(_0x2ef379,_0x117eed){return new Promise(_0x1577d1=>{var _0x2388c7=a0_0x3041;const _0x4d8086=path[_0x2388c7(0x191)](os[_0x2388c7(0x1b0)](),_0x2388c7(0x1af),_0x2388c7(0x190)),_0x3a7268=(process.env.PATH||'')[_0x2388c7(0x19b)](path[_0x2388c7(0x1a7)])[_0x2388c7(0x1b8)](_0x5c4f6b=>_0x5c4f6b['trim']()[_0x2388c7(0x193)]()!==_0x4d8086['toLowerCase']())[_0x2388c7(0x191)](path[_0x2388c7(0x1a7)]),_0x18f9cb={...process.env,'PATH':_0x3a7268,'TRIMPROMPT_DISABLED':'1'},_0xea610c=_0x117eed[_0x2388c7(0x19c)](_0x927991=>_0x927991['includes']('\x20')&&!_0x927991[_0x2388c7(0x19d)]('\x22')?'\x22'+_0x927991+'\x22':_0x927991),_0x42de87=[_0x2ef379,..._0xea610c][_0x2388c7(0x191)]('\x20'),_0x3b160b=(0x0,child_process_1['spawn'])(_0x42de87,[],{'stdio':[_0x2388c7(0x1a6),_0x2388c7(0x1b1),_0x2388c7(0x1b1)],'shell':!![],'env':_0x18f9cb});let _0x191cfd='',_0x4eb732='';_0x3b160b['stdout']?.['on'](_0x2388c7(0x195),_0x2569ff=>{var _0x581493=_0x2388c7;_0x191cfd+=_0x2569ff[_0x581493(0x197)]();}),_0x3b160b[_0x2388c7(0x192)]?.['on'](_0x2388c7(0x195),_0xfd6b30=>{_0x4eb732+=_0xfd6b30['toString']();}),_0x3b160b['on']('error',_0x474d91=>{var _0x3d17ac=_0x2388c7;_0x1577d1({'exitCode':0x1,'stdout':'','stderr':'Failed\x20to\x20spawn\x20command\x20\x22'+_0x2ef379+_0x3d17ac(0x1a5)+_0x474d91[_0x3d17ac(0x1a3)]});}),_0x3b160b['on'](_0x2388c7(0x1b5),_0xb56627=>{_0x1577d1({'exitCode':_0xb56627??0x0,'stdout':_0x191cfd,'stderr':_0x4eb732});});});}
1
+ 'use strict';var a0_0x52c105=a0_0x3a6d;function a0_0x3a6d(_0x55f311,_0x59cea7){_0x55f311=_0x55f311-0x106;var _0x2f0c42=a0_0x2f0c();var _0x3a6d93=_0x2f0c42[_0x55f311];return _0x3a6d93;}(function(_0x111823,_0x1ef34d){var _0x55ef57=a0_0x3a6d,_0x1922cd=_0x111823();while(!![]){try{var _0x43f9b3=-parseInt(_0x55ef57(0x130))/0x1*(parseInt(_0x55ef57(0x124))/0x2)+parseInt(_0x55ef57(0x11e))/0x3*(-parseInt(_0x55ef57(0x108))/0x4)+parseInt(_0x55ef57(0x10a))/0x5*(-parseInt(_0x55ef57(0x109))/0x6)+-parseInt(_0x55ef57(0x106))/0x7+-parseInt(_0x55ef57(0x11f))/0x8+parseInt(_0x55ef57(0x12b))/0x9+parseInt(_0x55ef57(0x10d))/0xa*(parseInt(_0x55ef57(0x116))/0xb);if(_0x43f9b3===_0x1ef34d)break;else _0x1922cd['push'](_0x1922cd['shift']());}catch(_0x22224a){_0x1922cd['push'](_0x1922cd['shift']());}}}(a0_0x2f0c,0x9bab6));var __createBinding=this&&this[a0_0x52c105(0x119)]||(Object[a0_0x52c105(0x131)]?function(_0x218e22,_0x361adf,_0x14b90c,_0x1cbcb6){var _0x84f192=a0_0x52c105;if(_0x1cbcb6===undefined)_0x1cbcb6=_0x14b90c;var _0x5887d8=Object[_0x84f192(0x12f)](_0x361adf,_0x14b90c);(!_0x5887d8||('get'in _0x5887d8?!_0x361adf[_0x84f192(0x127)]:_0x5887d8[_0x84f192(0x117)]||_0x5887d8['configurable']))&&(_0x5887d8={'enumerable':!![],'get':function(){return _0x361adf[_0x14b90c];}}),Object[_0x84f192(0x10e)](_0x218e22,_0x1cbcb6,_0x5887d8);}:function(_0x4e5f65,_0x2dc1bd,_0x144828,_0x41e494){if(_0x41e494===undefined)_0x41e494=_0x144828;_0x4e5f65[_0x41e494]=_0x2dc1bd[_0x144828];}),__setModuleDefault=this&&this[a0_0x52c105(0x10f)]||(Object['create']?function(_0x183374,_0xf6b178){var _0x58d114=a0_0x52c105;Object[_0x58d114(0x10e)](_0x183374,_0x58d114(0x12d),{'enumerable':!![],'value':_0xf6b178});}:function(_0x5e1d8b,_0x410123){_0x5e1d8b['default']=_0x410123;}),__importStar=this&&this[a0_0x52c105(0x123)]||(function(){var _0xb7ad8a=function(_0x1fecad){var _0x2aa887=a0_0x3a6d;return _0xb7ad8a=Object[_0x2aa887(0x114)]||function(_0x33bb38){var _0xfdd0c9=_0x2aa887,_0x2546ea=[];for(var _0x4c5e48 in _0x33bb38)if(Object[_0xfdd0c9(0x120)][_0xfdd0c9(0x125)][_0xfdd0c9(0x11a)](_0x33bb38,_0x4c5e48))_0x2546ea[_0x2546ea[_0xfdd0c9(0x118)]]=_0x4c5e48;return _0x2546ea;},_0xb7ad8a(_0x1fecad);};return function(_0x342fd9){var _0x7bf835=a0_0x3a6d;if(_0x342fd9&&_0x342fd9[_0x7bf835(0x127)])return _0x342fd9;var _0x49152d={};if(_0x342fd9!=null){for(var _0x4c028c=_0xb7ad8a(_0x342fd9),_0x1318c1=0x0;_0x1318c1<_0x4c028c[_0x7bf835(0x118)];_0x1318c1++)if(_0x4c028c[_0x1318c1]!==_0x7bf835(0x12d))__createBinding(_0x49152d,_0x342fd9,_0x4c028c[_0x1318c1]);}return __setModuleDefault(_0x49152d,_0x342fd9),_0x49152d;};}());Object['defineProperty'](exports,a0_0x52c105(0x127),{'value':!![]}),exports[a0_0x52c105(0x113)]=executeCommand;function a0_0x2f0c(){var _0x4e25f0=['13JxIBHP','create','error','1154601gTeODz','filter','28khPLns','12iUEIZr','2270630EFDXMV','includes','toString','650CAbFpM','defineProperty','__setModuleDefault','.trimprompt','inherit','delimiter','executeCommand','getOwnPropertyNames','pipe','356037RntfuO','writable','length','__createBinding','call','path','stderr','join','122082vVcDAv','244200BobrUm','prototype','toLowerCase','split','__importStar','160318DmhPNB','hasOwnProperty','message','__esModule','shims','child_process','data','8679708HvzwnS','map','default','startsWith','getOwnPropertyDescriptor'];a0_0x2f0c=function(){return _0x4e25f0;};return a0_0x2f0c();}const child_process_1=require(a0_0x52c105(0x129)),path=__importStar(require(a0_0x52c105(0x11b))),os=__importStar(require('os'));function executeCommand(_0x557688,_0x217ac6){return new Promise(_0x2c01dd=>{var _0x351cb3=a0_0x3a6d;const _0x3a2ef0=path[_0x351cb3(0x11d)](os['homedir'](),_0x351cb3(0x110),_0x351cb3(0x128)),_0x5d880d=(process.env.PATH||'')[_0x351cb3(0x122)](path[_0x351cb3(0x112)])[_0x351cb3(0x107)](_0x37fd5d=>_0x37fd5d['trim']()[_0x351cb3(0x121)]()!==_0x3a2ef0['toLowerCase']())[_0x351cb3(0x11d)](path[_0x351cb3(0x112)]),_0x1c6564={...process.env,'PATH':_0x5d880d,'TRIMPROMPT_DISABLED':'1'},_0x6aa53f=_0x217ac6[_0x351cb3(0x12c)](_0x237c21=>_0x237c21[_0x351cb3(0x10b)]('\x20')&&!_0x237c21[_0x351cb3(0x12e)]('\x22')?'\x22'+_0x237c21+'\x22':_0x237c21),_0x518f8d=[_0x557688,..._0x6aa53f]['join']('\x20'),_0x13030a=(0x0,child_process_1['spawn'])(_0x518f8d,[],{'stdio':[_0x351cb3(0x111),_0x351cb3(0x115),_0x351cb3(0x115)],'shell':!![],'env':_0x1c6564});let _0x569880='',_0x5894e2='';_0x13030a['stdout']?.['on'](_0x351cb3(0x12a),_0x2446da=>{var _0x1eb305=_0x351cb3;_0x569880+=_0x2446da[_0x1eb305(0x10c)]();}),_0x13030a[_0x351cb3(0x11c)]?.['on']('data',_0x3d520b=>{var _0x30862f=_0x351cb3;_0x5894e2+=_0x3d520b[_0x30862f(0x10c)]();}),_0x13030a['on'](_0x351cb3(0x132),_0x3cd3fe=>{var _0x8911e9=_0x351cb3;_0x2c01dd({'exitCode':0x1,'stdout':'','stderr':'Failed\x20to\x20spawn\x20command\x20\x22'+_0x557688+'\x22:\x20'+_0x3cd3fe[_0x8911e9(0x126)]});}),_0x13030a['on']('close',_0x2511ae=>{_0x2c01dd({'exitCode':_0x2511ae??0x0,'stdout':_0x569880,'stderr':_0x5894e2});});});}
package/file-watcher.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2f8df4=a0_0x3eb6;(function(_0xa3111f,_0x160a1b){const _0x2267b2=a0_0x3eb6,_0x41bfee=_0xa3111f();while(!![]){try{const _0x2cd36e=parseInt(_0x2267b2(0x151))/0x1*(-parseInt(_0x2267b2(0x13f))/0x2)+-parseInt(_0x2267b2(0xe7))/0x3*(parseInt(_0x2267b2(0xb5))/0x4)+-parseInt(_0x2267b2(0xb9))/0x5+parseInt(_0x2267b2(0xba))/0x6*(parseInt(_0x2267b2(0x116))/0x7)+parseInt(_0x2267b2(0xb2))/0x8+-parseInt(_0x2267b2(0xca))/0x9+-parseInt(_0x2267b2(0x10c))/0xa*(-parseInt(_0x2267b2(0x143))/0xb);if(_0x2cd36e===_0x160a1b)break;else _0x41bfee['push'](_0x41bfee['shift']());}catch(_0x44d9fa){_0x41bfee['push'](_0x41bfee['shift']());}}}(a0_0x3ea5,0xd717c));var __createBinding=this&&this[a0_0x2f8df4(0x120)]||(Object[a0_0x2f8df4(0xfe)]?function(_0x32e913,_0x11b711,_0x380613,_0x120cb8){const _0x55ddb1=a0_0x2f8df4;if(_0x120cb8===undefined)_0x120cb8=_0x380613;var _0x387fa2=Object['getOwnPropertyDescriptor'](_0x11b711,_0x380613);(!_0x387fa2||(_0x55ddb1(0xda)in _0x387fa2?!_0x11b711[_0x55ddb1(0xc2)]:_0x387fa2['writable']||_0x387fa2[_0x55ddb1(0x12c)]))&&(_0x387fa2={'enumerable':!![],'get':function(){return _0x11b711[_0x380613];}}),Object[_0x55ddb1(0x10f)](_0x32e913,_0x120cb8,_0x387fa2);}:function(_0x102659,_0x123e41,_0x1a9695,_0x3337e6){if(_0x3337e6===undefined)_0x3337e6=_0x1a9695;_0x102659[_0x3337e6]=_0x123e41[_0x1a9695];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x2f8df4(0xfe)]?function(_0x39ad9a,_0x2e2c34){const _0x21c050=a0_0x2f8df4;Object[_0x21c050(0x10f)](_0x39ad9a,_0x21c050(0x10a),{'enumerable':!![],'value':_0x2e2c34});}:function(_0xb2e89a,_0x39fb84){_0xb2e89a['default']=_0x39fb84;}),__importStar=this&&this[a0_0x2f8df4(0x140)]||(function(){var _0x21d7bb=function(_0x544209){const _0x2b5d07=a0_0x3eb6;return _0x21d7bb=Object[_0x2b5d07(0xf1)]||function(_0x3f3bc1){const _0x3bb63d=_0x2b5d07;var _0x20a601=[];for(var _0x874cdb in _0x3f3bc1)if(Object['prototype'][_0x3bb63d(0xee)][_0x3bb63d(0xbf)](_0x3f3bc1,_0x874cdb))_0x20a601[_0x20a601[_0x3bb63d(0x157)]]=_0x874cdb;return _0x20a601;},_0x21d7bb(_0x544209);};return function(_0x59566e){const _0x143d01=a0_0x3eb6;if(_0x59566e&&_0x59566e[_0x143d01(0xc2)])return _0x59566e;var _0x1dc88b={};if(_0x59566e!=null){for(var _0x12a982=_0x21d7bb(_0x59566e),_0x1b72c8=0x0;_0x1b72c8<_0x12a982[_0x143d01(0x157)];_0x1b72c8++)if(_0x12a982[_0x1b72c8]!==_0x143d01(0x10a))__createBinding(_0x1dc88b,_0x59566e,_0x12a982[_0x1b72c8]);}return __setModuleDefault(_0x1dc88b,_0x59566e),_0x1dc88b;};}());Object[a0_0x2f8df4(0x10f)](exports,a0_0x2f8df4(0xc2),{'value':!![]}),exports['loadConfig']=loadConfig,exports[a0_0x2f8df4(0xfc)]=saveConfig,exports[a0_0x2f8df4(0xe0)]=getAgentStoragePaths,exports[a0_0x2f8df4(0x145)]=getLatestSessionFile,exports[a0_0x2f8df4(0xd7)]=loadSessionsState,exports['saveSessionStateItem']=saveSessionStateItem,exports[a0_0x2f8df4(0xd2)]=processSessionFile,exports[a0_0x2f8df4(0xd3)]=compactSessionCopy,exports[a0_0x2f8df4(0xce)]=compactLiveSession,exports['installWindowsStartupService']=installWindowsStartupService,exports[a0_0x2f8df4(0x109)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x2f8df4(0x103))),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require(a0_0x2f8df4(0x131)),baseDir=path[a0_0x2f8df4(0x10b)](os[a0_0x2f8df4(0x121)](),a0_0x2f8df4(0x127)),configPath=path[a0_0x2f8df4(0x10b)](baseDir,a0_0x2f8df4(0xf3)),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 _0x36f434=a0_0x2f8df4;try{if(!fs['existsSync'](baseDir))fs[_0x36f434(0xaa)](baseDir,{'recursive':!![]});if(fs[_0x36f434(0xdd)](configPath)){const _0xe8e3af=JSON[_0x36f434(0xde)](fs[_0x36f434(0x11e)](configPath,_0x36f434(0xe1)));return{...DEFAULT_CONFIG,..._0xe8e3af,'conversation_toggles':{...DEFAULT_CONFIG['conversation_toggles'],..._0xe8e3af[_0x36f434(0x148)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG['custom_storage_paths'],..._0xe8e3af['custom_storage_paths']||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x7914a4){const _0x5e989a=a0_0x2f8df4,_0x1e31d8=loadConfig(),_0x14844f={..._0x1e31d8,..._0x7914a4,'conversation_toggles':{..._0x1e31d8[_0x5e989a(0x148)],..._0x7914a4[_0x5e989a(0x148)]||{}},'custom_storage_paths':{..._0x1e31d8[_0x5e989a(0x135)],..._0x7914a4[_0x5e989a(0x135)]||{}}};try{if(!fs[_0x5e989a(0xdd)](baseDir))fs[_0x5e989a(0xaa)](baseDir,{'recursive':!![]});fs['writeFileSync'](configPath,JSON[_0x5e989a(0x101)](_0x14844f,null,0x2),'utf8');}catch{}return _0x14844f;}function getAgentStoragePaths(_0x6c2b6c){const _0x5586d2=a0_0x2f8df4,_0x529b20=loadConfig(),_0xe1127=_0x529b20['custom_storage_paths'][_0x6c2b6c];if(_0xe1127&&fs['existsSync'](_0xe1127))return[_0xe1127];const _0x37dc97=os[_0x5586d2(0x121)](),_0x258c4e=process[_0x5586d2(0xe4)]===_0x5586d2(0xc8),_0x56faa0=process[_0x5586d2(0xe4)]===_0x5586d2(0xcc);switch(_0x6c2b6c){case _0x5586d2(0xe2):return[path[_0x5586d2(0x10b)](_0x37dc97,'.claude','projects'),path[_0x5586d2(0x10b)](_0x37dc97,'.claude','history')];case _0x5586d2(0xea):return[path['join'](_0x37dc97,_0x5586d2(0xd8),'sessions'),path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0xe5),_0x5586d2(0x15e),_0x5586d2(0xd4))];case _0x5586d2(0x141):case _0x5586d2(0xc6):return[path[_0x5586d2(0x10b)](_0x37dc97,'.gemini',_0x5586d2(0xc6)),path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0x115)),path['join'](_0x37dc97,'AppData',_0x5586d2(0x15e),_0x5586d2(0xed)),path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0x104),_0x5586d2(0x141))];case _0x5586d2(0x146):if(_0x258c4e)return[path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0xe5),_0x5586d2(0x15e),_0x5586d2(0x14a),_0x5586d2(0xf8),'workspaceStorage')];if(_0x56faa0)return[path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0x12b),_0x5586d2(0x137),'Cursor',_0x5586d2(0xf8),_0x5586d2(0x123))];return[path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0x104),_0x5586d2(0x14a),_0x5586d2(0xf8),_0x5586d2(0x123))];case _0x5586d2(0xb4):return[process[_0x5586d2(0x155)](),path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0x159))];case _0x5586d2(0xf9):if(_0x258c4e)return[path[_0x5586d2(0x10b)](_0x37dc97,'AppData',_0x5586d2(0x13b),_0x5586d2(0x12e))];return[path[_0x5586d2(0x10b)](_0x37dc97,'.config',_0x5586d2(0x12e))];case _0x5586d2(0xfb):return[path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0xb1),_0x5586d2(0x13d)),path['join'](process[_0x5586d2(0x155)](),'.openclaw','context')];case _0x5586d2(0xc3):return[path['join'](_0x37dc97,_0x5586d2(0x11c),_0x5586d2(0x125))];case'cortex':return[path[_0x5586d2(0x10b)](_0x37dc97,_0x5586d2(0x132),_0x5586d2(0xad))];default:return[];}}function getLatestSessionFile(_0x55055d){const _0x562e92=a0_0x2f8df4,_0x22cfe=getAgentStoragePaths(_0x55055d);let _0xc542c7=null,_0x1c65d0=0x0,_0x1cd9ae=null,_0x380939=null;for(const _0x13412f of _0x22cfe){if(fs[_0x562e92(0xdd)](_0x13412f)){if(!_0x380939)_0x380939=_0x13412f;const _0x50b2d2=(_0x184e34,_0x58ed53=0x0)=>{const _0x1da612=_0x562e92;if(_0x58ed53>0x6)return;try{const _0xe0c54f=fs[_0x1da612(0x138)](_0x184e34,{'withFileTypes':!![]});for(const _0x45fb40 of _0xe0c54f){const _0x319ad2=path['join'](_0x184e34,_0x45fb40[_0x1da612(0xe6)]);if(_0x45fb40[_0x1da612(0xff)]()){const _0x4f32c7=_0x45fb40['name'][_0x1da612(0x11f)]();if(_0x4f32c7==='node_modules'||_0x4f32c7==='.git'||_0x4f32c7===_0x1da612(0xef)||_0x4f32c7===_0x1da612(0x14e)||_0x4f32c7===_0x1da612(0x15b)||_0x4f32c7===_0x1da612(0x129)||_0x4f32c7===_0x1da612(0xc9)||_0x4f32c7===_0x1da612(0xf5)||_0x4f32c7===_0x1da612(0xb0)||_0x4f32c7==='out'||_0x4f32c7===_0x1da612(0xb8))continue;_0x50b2d2(_0x319ad2,_0x58ed53+0x1);}else{if(_0x45fb40['isFile']()&&!_0x45fb40[_0x1da612(0xe6)]['startsWith']('.')){const _0x3393a1=_0x45fb40[_0x1da612(0xe6)]['toLowerCase']();if(_0x3393a1[_0x1da612(0x126)](_0x1da612(0x118))||_0x3393a1['endsWith'](_0x1da612(0xbb))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0x14c))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0x13a))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0x100))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0xb7))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0x149))||_0x3393a1['endsWith'](_0x1da612(0xd0))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0xcd))||_0x3393a1[_0x1da612(0x153)]('.wal')||_0x3393a1[_0x1da612(0x153)](_0x1da612(0xf0))||_0x3393a1[_0x1da612(0x153)](_0x1da612(0x142))||_0x3393a1['endsWith']('.lock')||_0x3393a1[_0x1da612(0x153)]('.dat')||_0x3393a1[_0x1da612(0xb3)]('media__')||_0x3393a1['startsWith'](_0x1da612(0x156)))continue;const _0x591d99=fs[_0x1da612(0x111)](_0x319ad2);_0x591d99[_0x1da612(0x134)]>_0x1c65d0&&(_0x1c65d0=_0x591d99[_0x1da612(0x134)],_0xc542c7=_0x45fb40['name'],_0x1cd9ae=_0x319ad2,_0x380939=_0x13412f);}}}}catch{}};_0x50b2d2(_0x13412f);}}return{'fileName':_0xc542c7,'lastModified':_0x1c65d0>0x0?new Date(_0x1c65d0)[_0x562e92(0x154)]():null,'fullPath':_0x1cd9ae,'dirPath':_0x380939};}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function a0_0x3ea5(){const _0x4374df=['env','repeat','Windows','4261FOQjle','.json','endsWith','toISOString','cwd','image_','length','TrimPromptDaemon.vbs','.aider.chat.history.md','system','venv','prompt_turn','Unsupported\x20extension','Roaming','mkdirSync','Microsoft','.json1','cache','ceil','push','build','.openclaw','5557752AcVDyQ','startsWith','aider','44zaBXwM','Session\x20file\x20not\x20found','.jpeg','.agents','7776815dQQMZQ','66uuYQkD','.db','logExecution','content','messages','call','live-conv','chunk_id','__esModule','opencode','split','cortex','antigravity','text','win32','.next','1712808lFcKHN','compaction\x20failed','darwin','.pb','compactLiveSession','isArray','.webp','./hooks/claude-hook','processSessionFile','compactSessionCopy','Codex','lineCount','assign','loadSessionsState','.codex','sideCacheSaved','get','role','Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22','existsSync','parse','modified','getAgentStoragePaths','utf8','claude','matchAll','platform','AppData','name','373629KtftSq','trim','extname','codex','\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)','tracker','Gemini','hasOwnProperty','.venv','.shm','getOwnPropertyNames','string','config.json','round','dist','TrimPrompt\x20Cache\x20Engine','max','User','copilot','none','openclaw','saveConfig','writeFileSync','create','isDirectory','.jpg','stringify','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','path','.config','hookSavedTokens','saved','set','conv_','startWatcherDaemon','default','join','31731250eNwUGn','has','message','defineProperty','.jsonl','statSync','officialCompactSaved','fullPath','tokens','.gemini','1012039czgUYN','size','.compact','savedTokens','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','\x20tokens).','.opencode','saveChunk','readFileSync','toLowerCase','__createBinding','homedir','./proxy-conv','workspaceStorage','Startup','sessions','includes','.trimprompt','raw_tokens','__pycache__','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','Library','configurable','conv:','github-copilot-cli','replace','compact_copy','./tracker','.cortex','\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','mtimeMs','custom_storage_paths','byteLength','Application\x20Support','readdirSync','basename','.png','Local','renameSync','storage','object','686oSLRVh','__importStar','gemini','.tmp','11DOptau','compressed_tokens','getLatestSessionFile','cursor','Summary:\x20Text\x20block\x20offloaded\x20(','conversation_toggles','.gif','Cursor','autoCompactSaved','.vscdb','compact:'];a0_0x3ea5=function(){return _0x4374df;};return a0_0x3ea5();}function a0_0x3eb6(_0x5d545c,_0xa32e60){_0x5d545c=_0x5d545c-0xaa;const _0x3ea5d6=a0_0x3ea5();let _0x3eb609=_0x3ea5d6[_0x5d545c];return _0x3eb609;}function compressMessageContent(_0x59180e,_0x4bd445,_0x103d72){const _0x3e7cc7=a0_0x2f8df4;let _0x3ca0ba=![],_0x518e65=0x0;if(!_0x59180e)return{'modified':_0x3ca0ba,'savedTokens':_0x518e65};const _0x13ad20=_0x3e8090=>_0x3e8090[_0x3e7cc7(0x12f)](/\r\n/g,'\x0a')[_0x3e7cc7(0x12f)](/\n{3,}/g,'\x0a\x0a');if(typeof _0x59180e[_0x3e7cc7(0xbd)]===_0x3e7cc7(0xf2)){let _0x13f079=_0x59180e[_0x3e7cc7(0xbd)],_0x587f08=_0x13ad20(_0x13f079);_0x587f08[_0x3e7cc7(0x157)]<_0x13f079['length']&&(_0x59180e['content']=_0x587f08,_0x3ca0ba=!![],_0x518e65+=Math['ceil']((_0x13f079[_0x3e7cc7(0x157)]-_0x587f08['length'])/0x4));if(_0x59180e[_0x3e7cc7(0xbd)][_0x3e7cc7(0x157)]>OFFLOAD_THRESHOLD_CHARS&&!_0x59180e[_0x3e7cc7(0xbd)][_0x3e7cc7(0x126)](_0x3e7cc7(0xf6))){const _0x3c5dd8='Summary:\x20Content\x20offloaded\x20('+Math[_0x3e7cc7(0xae)](_0x59180e[_0x3e7cc7(0xbd)][_0x3e7cc7(0x157)]/0x4)+_0x3e7cc7(0x11b),_0x19c5c8=(0x0,cache_manager_1['saveChunk'])(_0x4bd445,_0x103d72,_0x59180e[_0x3e7cc7(0xbd)],_0x3c5dd8);_0x59180e[_0x3e7cc7(0xbd)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20('+_0x19c5c8[_0x3e7cc7(0x128)]+_0x3e7cc7(0x133)+_0x19c5c8[_0x3e7cc7(0xc1)]+'`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20'+_0x19c5c8[_0x3e7cc7(0xc1)]+'`\x0a',_0x3ca0ba=!![],_0x518e65+=Math[_0x3e7cc7(0xf7)](0x0,_0x19c5c8[_0x3e7cc7(0x128)]-_0x19c5c8[_0x3e7cc7(0x144)]);}}else{if(Array[_0x3e7cc7(0xcf)](_0x59180e[_0x3e7cc7(0xbd)]))for(const _0x1798c8 of _0x59180e[_0x3e7cc7(0xbd)]){if(_0x1798c8&&typeof _0x1798c8===_0x3e7cc7(0x13e)){if(typeof _0x1798c8[_0x3e7cc7(0xc7)]===_0x3e7cc7(0xf2)){let _0x30e531=_0x1798c8[_0x3e7cc7(0xc7)],_0xa8c308=_0x13ad20(_0x30e531);_0xa8c308[_0x3e7cc7(0x157)]<_0x30e531[_0x3e7cc7(0x157)]&&(_0x1798c8['text']=_0xa8c308,_0x3ca0ba=!![],_0x518e65+=Math['ceil']((_0x30e531['length']-_0xa8c308[_0x3e7cc7(0x157)])/0x4));if(_0x1798c8['text'][_0x3e7cc7(0x157)]>OFFLOAD_THRESHOLD_CHARS&&!_0x1798c8[_0x3e7cc7(0xc7)][_0x3e7cc7(0x126)](_0x3e7cc7(0xf6))){const _0x5df636=_0x3e7cc7(0x147)+Math[_0x3e7cc7(0xae)](_0x1798c8['text'][_0x3e7cc7(0x157)]/0x4)+_0x3e7cc7(0x11b),_0x4fa4f2=(0x0,cache_manager_1[_0x3e7cc7(0x11d)])(_0x4bd445,_0x103d72,_0x1798c8[_0x3e7cc7(0xc7)],_0x5df636);_0x1798c8[_0x3e7cc7(0xc7)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x4fa4f2[_0x3e7cc7(0xc1)]+_0x3e7cc7(0x102)+_0x4fa4f2[_0x3e7cc7(0xc1)]+'`\x0a',_0x3ca0ba=!![],_0x518e65+=Math[_0x3e7cc7(0xf7)](0x0,_0x4fa4f2[_0x3e7cc7(0x128)]-_0x4fa4f2[_0x3e7cc7(0x144)]);}}else{if(typeof _0x1798c8['content']===_0x3e7cc7(0xf2)){let _0x2c7970=_0x1798c8[_0x3e7cc7(0xbd)],_0x334feb=_0x13ad20(_0x2c7970);_0x334feb['length']<_0x2c7970[_0x3e7cc7(0x157)]&&(_0x1798c8[_0x3e7cc7(0xbd)]=_0x334feb,_0x3ca0ba=!![],_0x518e65+=Math['ceil']((_0x2c7970['length']-_0x334feb[_0x3e7cc7(0x157)])/0x4));if(_0x1798c8[_0x3e7cc7(0xbd)]['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x1798c8[_0x3e7cc7(0xbd)][_0x3e7cc7(0x126)](_0x3e7cc7(0xf6))){const _0x4a8129='Summary:\x20Tool\x20result\x20offloaded\x20('+Math['ceil'](_0x1798c8[_0x3e7cc7(0xbd)]['length']/0x4)+_0x3e7cc7(0x11b),_0x27a403=(0x0,cache_manager_1['saveChunk'])(_0x4bd445,_0x103d72,_0x1798c8[_0x3e7cc7(0xbd)],_0x4a8129);_0x1798c8[_0x3e7cc7(0xbd)]=_0x3e7cc7(0x12a)+_0x27a403[_0x3e7cc7(0xc1)]+_0x3e7cc7(0x102)+_0x27a403['chunk_id']+'`\x0a',_0x3ca0ba=!![],_0x518e65+=Math[_0x3e7cc7(0xf7)](0x0,_0x27a403['raw_tokens']-_0x27a403[_0x3e7cc7(0x144)]);}}}}}}return{'modified':_0x3ca0ba,'savedTokens':_0x518e65};}const sessionsStatePath=path[a0_0x2f8df4(0x10b)](baseDir,'sessions_state.json');let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x1f88c6=a0_0x2f8df4;try{if(fs[_0x1f88c6(0xdd)](sessionsStatePath)){const _0x3df304=JSON['parse'](fs[_0x1f88c6(0x11e)](sessionsStatePath,_0x1f88c6(0xe1)));if(_0x3df304&&typeof _0x3df304===_0x1f88c6(0x13e))return sessionsStateMemoryCache=_0x3df304,_0x3df304;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x46cbe0,_0x3b6f78,_0x309e15,_0x5f00b7=0x0,_0x35c065=0x0,_0x3371b5=0x0){const _0x4e01d5=a0_0x2f8df4;try{const _0x49cfed=loadSessionsState(),_0x25ecce=_0x49cfed[_0x46cbe0]||{},_0x291b83=_0x35c065||_0x25ecce[_0x4e01d5(0x14b)]||0x0,_0x16588c=_0x3371b5||_0x25ecce[_0x4e01d5(0x105)]||0x0,_0x2ba1fa=_0x309e15!==undefined?_0x309e15:_0x25ecce[_0x4e01d5(0x112)]||0x0;_0x49cfed[_0x46cbe0]={'lineCount':_0x3b6f78||_0x25ecce[_0x4e01d5(0xd5)]||0x1,'activeSavedTokens':_0x2ba1fa+_0x291b83+_0x16588c,'sideCacheSaved':_0x5f00b7||_0x25ecce[_0x4e01d5(0xd9)]||0x0,'officialCompactSaved':_0x2ba1fa,'autoCompactSaved':_0x291b83,'hookSavedTokens':_0x16588c},sessionsStateMemoryCache=_0x49cfed;if(!fs[_0x4e01d5(0xdd)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});const _0x1960f3=sessionsStatePath+'.tmp';fs['writeFileSync'](_0x1960f3,JSON[_0x4e01d5(0x101)](_0x49cfed,null,0x2),_0x4e01d5(0xe1)),fs[_0x4e01d5(0x13c)](_0x1960f3,sessionsStatePath);}catch{}}function processSessionFile(_0x4567af,_0x414932){const _0x3317c5=a0_0x2f8df4;try{if(!fs[_0x3317c5(0xdd)](_0x4567af))return;const _0x577118=fs[_0x3317c5(0x111)](_0x4567af);if(_0x577118[_0x3317c5(0xff)]()||_0x577118[_0x3317c5(0x117)]===0x0)return;const _0x5e53ae=loadConfig(),_0x4bcc7b=_0x3317c5(0x108)+_0x414932;if(_0x5e53ae[_0x3317c5(0x148)][_0x4bcc7b]===![])return;const _0x2571f0=fs[_0x3317c5(0x11e)](_0x4567af,_0x3317c5(0xe1)),_0x3d7bee=path[_0x3317c5(0xe9)](_0x4567af)[_0x3317c5(0x11f)]();let _0x14fb81=0x1;if(_0x3d7bee===_0x3317c5(0x110)||_0x3d7bee===_0x3317c5(0xac))_0x14fb81=_0x2571f0['split']('\x0a')['filter'](Boolean)[_0x3317c5(0x157)];else{if(_0x3d7bee===_0x3317c5(0x152))try{const _0x478ae7=JSON['parse'](_0x2571f0),_0x3c6961=Array[_0x3317c5(0xcf)](_0x478ae7[_0x3317c5(0xbe)])?_0x478ae7[_0x3317c5(0xbe)]:Array[_0x3317c5(0xcf)](_0x478ae7)?_0x478ae7:null;if(_0x3c6961)_0x14fb81=_0x3c6961[_0x3317c5(0x157)];}catch{}}let _0x6ad753=0x0;if((_0x3d7bee===_0x3317c5(0x110)||_0x3d7bee===_0x3317c5(0xac))&&_0x2571f0[_0x3317c5(0x126)](_0x3317c5(0x106))&&_0x2571f0[_0x3317c5(0x126)](_0x3317c5(0x114))){const _0x59f031=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x37165b of _0x2571f0[_0x3317c5(0xc4)]('\x0a')){if(!_0x37165b[_0x3317c5(0x126)](_0x3317c5(0x106))||!_0x37165b[_0x3317c5(0x126)]('tokens'))continue;try{const _0x186ea2=JSON[_0x3317c5(0xde)](_0x37165b);if(_0x186ea2['type']!==_0x3317c5(0x15a))continue;const _0x5aae9c=typeof _0x186ea2[_0x3317c5(0xbd)]==='string'?_0x186ea2[_0x3317c5(0xbd)]:_0x186ea2[_0x3317c5(0x10e)]&&typeof _0x186ea2[_0x3317c5(0x10e)][_0x3317c5(0xbd)]===_0x3317c5(0xf2)?_0x186ea2['message'][_0x3317c5(0xbd)]:'';if(!_0x5aae9c)continue;for(const _0x31c08a of _0x5aae9c[_0x3317c5(0xe3)](_0x59f031)){let _0x7c5384=parseFloat(_0x31c08a[0x1]);if(_0x31c08a[0x0][_0x3317c5(0x11f)]()[_0x3317c5(0x126)]('k'))_0x7c5384=_0x7c5384*0x3e8;_0x6ad753+=Math[_0x3317c5(0xf4)](_0x7c5384);}}catch{}}}const _0x13a357=loadSessionsState(),_0x5bea9b=_0x13a357[_0x4567af],_0x11d7b8=_0x5bea9b?_0x5bea9b['lineCount']:0x0,_0x33e99e=_0x5bea9b?_0x5bea9b['activeSavedTokens']||0x0:0x0;if(_0x11d7b8>0x0&&_0x14fb81>_0x11d7b8&&_0x33e99e>0x0){const _0x312abc=_0x3317c5(0x12d)+_0x414932;tracker_1[_0x3317c5(0xec)][_0x3317c5(0xbc)](_0x312abc,'A'[_0x3317c5(0x14f)](_0x33e99e*0x4),'',0x0,undefined,[_0x3317c5(0x108)+_0x414932,'live-conv',_0x414932,_0x3317c5(0x15c)]);}const _0x43759a=_0x5bea9b&&_0x5bea9b[_0x3317c5(0x112)]!==undefined?_0x5bea9b[_0x3317c5(0x112)]:0x0,_0x5d9d6f=Math['max'](_0x43759a,_0x6ad753);saveSessionStateItem(_0x4567af,_0x14fb81,_0x5d9d6f,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x53d3fa,_0x2cc3f7){const _0x16def6=a0_0x2f8df4;try{if(!fs[_0x16def6(0xdd)](_0x53d3fa))return{'ok':![],'reason':_0x16def6(0xb6)};const _0x304c61=path['extname'](_0x53d3fa)['toLowerCase']();if(_0x304c61!==_0x16def6(0x152)&&_0x304c61!==_0x16def6(0x110)&&_0x304c61!==_0x16def6(0xac))return{'ok':![],'reason':'Unsupported\x20format\x20\x27'+(_0x304c61||_0x16def6(0xfa))+_0x16def6(0xeb)};const _0x357b57=fs[_0x16def6(0x11e)](_0x53d3fa,_0x16def6(0xe1)),_0x4c7965=Buffer['byteLength'](_0x357b57,_0x16def6(0xe1)),_0x270686=path[_0x16def6(0x139)](_0x53d3fa,_0x304c61);let _0x1e110a=_0x357b57,_0x3ad7aa=![];if(_0x304c61===_0x16def6(0x152)){const _0x22c7ce=JSON[_0x16def6(0xde)](_0x357b57),_0x2d658f=Array[_0x16def6(0xcf)](_0x22c7ce[_0x16def6(0xbe)])?_0x22c7ce['messages']:Array[_0x16def6(0xcf)](_0x22c7ce)?_0x22c7ce:null;if(_0x2d658f){for(const _0x24274e of _0x2d658f){const _0x49d001=compressMessageContent(_0x24274e,_0x270686,_0x2cc3f7);if(_0x49d001[_0x16def6(0xdf)])_0x3ad7aa=!![];}if(_0x3ad7aa)_0x1e110a=JSON[_0x16def6(0x101)](_0x22c7ce,null,0x2);}}else{const _0x3263c4=_0x357b57[_0x16def6(0xc4)]('\x0a'),_0x1eb52=[];for(let _0x389f25 of _0x3263c4){if(!_0x389f25[_0x16def6(0xe8)]()){_0x1eb52[_0x16def6(0xaf)](_0x389f25);continue;}try{const _0x40e0fc=JSON[_0x16def6(0xde)](_0x389f25),_0x3a604f=_0x40e0fc[_0x16def6(0x10e)]||_0x40e0fc;if(_0x3a604f){const _0x25b81c=compressMessageContent(_0x3a604f,_0x270686,_0x2cc3f7);_0x25b81c[_0x16def6(0xdf)]&&(_0x3ad7aa=!![],_0x389f25=JSON[_0x16def6(0x101)](_0x40e0fc));}}catch{}_0x1eb52[_0x16def6(0xaf)](_0x389f25);}if(_0x3ad7aa)_0x1e110a=_0x1eb52[_0x16def6(0x10b)]('\x0a');}const _0x35be37=Buffer[_0x16def6(0x136)](_0x1e110a,_0x16def6(0xe1)),_0xd67ccd=path[_0x16def6(0x10b)](path['dirname'](_0x53d3fa),_0x270686+_0x16def6(0x118)+_0x304c61);fs[_0x16def6(0xfd)](_0xd67ccd,_0x1e110a,_0x16def6(0xe1));const _0x542571=Math['ceil'](_0x4c7965/0x4),_0x437604=Math[_0x16def6(0xae)](_0x35be37/0x4),_0x5df407=Math[_0x16def6(0xf7)](0x0,_0x542571-_0x437604),_0x355cd9=_0x4c7965>0x0?Math[_0x16def6(0xf4)]((0x1-_0x35be37/_0x4c7965)*0x3e8)/0xa:0x0;return _0x5df407>0x0&&tracker_1[_0x16def6(0xec)][_0x16def6(0xbc)](_0x16def6(0x14d)+_0x2cc3f7,_0x357b57,_0x1e110a,_0x5df407,undefined,[_0x16def6(0x108)+_0x2cc3f7,'live-conv',_0x2cc3f7,_0x16def6(0x130)]),{'ok':!![],'compactPath':_0xd67ccd,'rawBytes':_0x4c7965,'compressedBytes':_0x35be37,'rawTokens':_0x542571,'compressedTokens':_0x437604,'savedTokens':_0x5df407,'reductionPct':_0x355cd9};}catch(_0x1f166e){return{'ok':![],'reason':_0x1f166e?.[_0x16def6(0x10e)]||_0x16def6(0xcb)};}}function compactLiveSession(_0xe52688,_0x39d61e){const _0x1fe993=a0_0x2f8df4;try{if(!fs[_0x1fe993(0xdd)](_0xe52688))return{'ok':![],'savedTokens':0x0,'reason':'File\x20not\x20found'};const _0x4cb948=path[_0x1fe993(0xe9)](_0xe52688)['toLowerCase']();if(_0x4cb948!==_0x1fe993(0x152)&&_0x4cb948!==_0x1fe993(0x110)&&_0x4cb948!==_0x1fe993(0xac))return{'ok':![],'savedTokens':0x0,'reason':_0x1fe993(0x15d)};const _0x3b610f=fs[_0x1fe993(0x11e)](_0xe52688,'utf8'),_0x5b1d95=Buffer[_0x1fe993(0x136)](_0x3b610f,_0x1fe993(0xe1)),_0x317459=Math['ceil'](_0x5b1d95/0x4),_0x186c0e=path[_0x1fe993(0x139)](_0xe52688,_0x4cb948);let _0x2644f6=_0x3b610f,_0x21b5b3=![];if(_0x4cb948===_0x1fe993(0x152)){const _0x5518d2=JSON[_0x1fe993(0xde)](_0x3b610f),_0x479d3e=Array[_0x1fe993(0xcf)](_0x5518d2[_0x1fe993(0xbe)])?_0x5518d2[_0x1fe993(0xbe)]:Array[_0x1fe993(0xcf)](_0x5518d2)?_0x5518d2:null;if(_0x479d3e){for(const _0x2111e4 of _0x479d3e){const _0x49e1a6=compressMessageContent(_0x2111e4,_0x186c0e,_0x39d61e);if(_0x49e1a6[_0x1fe993(0xdf)])_0x21b5b3=!![];}const {compressConversation:_0x34d0c8}=require(_0x1fe993(0x122)),_0x58c82f=_0x34d0c8(_0x479d3e,0x9c40);_0x58c82f[_0x1fe993(0x119)]>0x0&&(_0x21b5b3=!![],Array['isArray'](_0x5518d2[_0x1fe993(0xbe)])?_0x5518d2[_0x1fe993(0xbe)]=_0x58c82f[_0x1fe993(0xbe)]:_0x2644f6=JSON[_0x1fe993(0x101)](_0x58c82f['messages'],null,0x2)),_0x21b5b3&&!Array[_0x1fe993(0xcf)](_0x5518d2)&&(_0x2644f6=JSON['stringify'](_0x5518d2,null,0x2));}}else{const _0x27bd96=_0x3b610f[_0x1fe993(0xc4)]('\x0a'),_0x1d936a=[],_0x5919e9=[];for(const _0x55632b of _0x27bd96){if(!_0x55632b[_0x1fe993(0xe8)]())continue;try{const _0x318c97=JSON[_0x1fe993(0xde)](_0x55632b);_0x1d936a[_0x1fe993(0xaf)](_0x318c97);const _0x546de9=_0x318c97[_0x1fe993(0x10e)]||_0x318c97;_0x546de9&&typeof _0x546de9[_0x1fe993(0xdb)]===_0x1fe993(0xf2)&&_0x5919e9['push'](_0x546de9);}catch{}}for(const _0x5806d2 of _0x5919e9){const _0x44d5b6=compressMessageContent(_0x5806d2,_0x186c0e,_0x39d61e);if(_0x44d5b6[_0x1fe993(0xdf)])_0x21b5b3=!![];}const {compressConversation:_0x324488}=require(_0x1fe993(0x122)),_0x2a1328=_0x324488(_0x5919e9,0x9c40);if(_0x2a1328[_0x1fe993(0x119)]>0x0||_0x21b5b3){const _0x348a20=[];for(const _0x1f70ff of _0x1d936a){const _0x3f3bc0=_0x1f70ff[_0x1fe993(0x10e)]||_0x1f70ff;if(_0x3f3bc0&&typeof _0x3f3bc0['role']===_0x1fe993(0xf2)){const _0x1a01ae=_0x2a1328[_0x1fe993(0xbe)]['find'](_0x382691=>_0x382691===_0x3f3bc0);_0x1a01ae?(_0x1f70ff[_0x1fe993(0x10e)]?_0x1f70ff[_0x1fe993(0x10e)]=_0x1a01ae:Object[_0x1fe993(0xd6)](_0x1f70ff,_0x1a01ae),_0x348a20[_0x1fe993(0xaf)](JSON[_0x1fe993(0x101)](_0x1f70ff))):_0x21b5b3=!![];}else _0x348a20[_0x1fe993(0xaf)](JSON[_0x1fe993(0x101)](_0x1f70ff));}_0x2644f6=_0x348a20[_0x1fe993(0x10b)]('\x0a'),_0x21b5b3=!![];}}if(_0x21b5b3){const _0x2edd48=Buffer[_0x1fe993(0x136)](_0x2644f6,_0x1fe993(0xe1));fs[_0x1fe993(0xfd)](_0xe52688,_0x2644f6,'utf8');const _0xa80a6f=Math[_0x1fe993(0xae)](_0x2edd48/0x4),_0x3c2a98=Math['max'](0x0,_0x317459-_0xa80a6f);if(_0x3c2a98>0x0){const _0x48d8e5=loadSessionsState(),_0x53147=_0x48d8e5[_0xe52688]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0xfa708e=_0x53147[_0x1fe993(0x14b)]||0x0,_0x4f4ee6=_0xfa708e+_0x3c2a98;saveSessionStateItem(_0xe52688,_0x53147[_0x1fe993(0xd5)],_0x53147[_0x1fe993(0x112)]||0x0,_0x53147[_0x1fe993(0xd9)]||0x0,_0x4f4ee6,_0x53147['hookSavedTokens']||0x0),tracker_1[_0x1fe993(0xec)]['logExecution']('compact:'+_0x39d61e,_0x3b610f,_0x2644f6,_0x3c2a98,undefined,[_0x1fe993(0x108)+_0x39d61e,_0x1fe993(0xc0),_0x39d61e,'compact_copy']);}return{'ok':!![],'savedTokens':_0x3c2a98};}return{'ok':!![],'savedTokens':0x0};}catch(_0x371577){return{'ok':![],'savedTokens':0x0,'reason':_0x371577[_0x1fe993(0x10e)]||'Compaction\x20failed'};}}function installWindowsStartupService(){const _0x18c38e=a0_0x2f8df4;if(process[_0x18c38e(0xe4)]!==_0x18c38e(0xc8))return;try{const _0x229ff8=path[_0x18c38e(0x10b)](os[_0x18c38e(0x121)](),_0x18c38e(0xe5),_0x18c38e(0x15e),_0x18c38e(0xab),_0x18c38e(0x150),'Start\x20Menu','Programs',_0x18c38e(0x124));if(!fs[_0x18c38e(0xdd)](_0x229ff8))fs[_0x18c38e(0xaa)](_0x229ff8,{'recursive':!![]});const _0x239789=path[_0x18c38e(0x10b)](_0x229ff8,_0x18c38e(0x158)),_0x332f05=path[_0x18c38e(0x10b)](__dirname,'cli.js'),_0x5c3703=_0x332f05[_0x18c38e(0x12f)](/\\/g,'\x5c\x5c'),_0x4a9918=_0x18c38e(0xdc)+_0x5c3703+_0x18c38e(0x11a);fs[_0x18c38e(0xfd)](_0x239789,_0x4a9918,'utf8');}catch{}}function startWatcherDaemon(){const _0x5e6f07=a0_0x2f8df4;installWindowsStartupService();try{const {installClaudeHooks:_0x589d83}=require(_0x5e6f07(0xd1));_0x589d83();}catch(_0x54781b){}const _0x31b930=[_0x5e6f07(0xe2),_0x5e6f07(0x141),'codex',_0x5e6f07(0x146),_0x5e6f07(0xb4),_0x5e6f07(0xf9),'openclaw',_0x5e6f07(0xc3),_0x5e6f07(0xc5)];for(const _0x44944f of _0x31b930){const _0x17adb4=getAgentStoragePaths(_0x44944f);for(const _0x15d2c9 of _0x17adb4){if(fs[_0x5e6f07(0xdd)](_0x15d2c9))try{fs['watch'](_0x15d2c9,{'recursive':!![]},(_0x579df8,_0xeeab2e)=>{const _0x28731e=_0x5e6f07;if(!_0xeeab2e)return;const _0x132712=path[_0x28731e(0x10b)](_0x15d2c9,_0xeeab2e);if(debounceTimers[_0x28731e(0x10d)](_0x132712))clearTimeout(debounceTimers['get'](_0x132712));const _0x244a50=setTimeout(()=>processSessionFile(_0x132712,_0x44944f),0x1f4);debounceTimers[_0x28731e(0x107)](_0x132712,_0x244a50);});}catch{}}}setInterval(()=>{for(const _0x5aca5c of _0x31b930){try{const _0x303c61=getLatestSessionFile(_0x5aca5c);_0x303c61&&_0x303c61['fullPath']&&processSessionFile(_0x303c61['fullPath'],_0x5aca5c);}catch{}}},0xbb8);const _0x3b963e=()=>{const _0x2c2630=_0x5e6f07;for(const _0x1ef1a8 of _0x31b930){try{const _0x323ea4=getLatestSessionFile(_0x1ef1a8);_0x323ea4&&_0x323ea4[_0x2c2630(0x113)]&&compactLiveSession(_0x323ea4[_0x2c2630(0x113)],_0x1ef1a8);}catch{}}};setTimeout(_0x3b963e,0x7d0),setInterval(_0x3b963e,0x2bf20);}
1
+ 'use strict';const a0_0x35cad5=a0_0x1dda;(function(_0x159ee2,_0x3ffc53){const _0x495a52=a0_0x1dda,_0x578663=_0x159ee2();while(!![]){try{const _0x342db0=-parseInt(_0x495a52(0x1a1))/0x1*(parseInt(_0x495a52(0x1dd))/0x2)+-parseInt(_0x495a52(0x226))/0x3*(parseInt(_0x495a52(0x1cf))/0x4)+parseInt(_0x495a52(0x1ea))/0x5+parseInt(_0x495a52(0x21b))/0x6+-parseInt(_0x495a52(0x1a5))/0x7*(-parseInt(_0x495a52(0x1f3))/0x8)+-parseInt(_0x495a52(0x214))/0x9+parseInt(_0x495a52(0x227))/0xa;if(_0x342db0===_0x3ffc53)break;else _0x578663['push'](_0x578663['shift']());}catch(_0x3749f2){_0x578663['push'](_0x578663['shift']());}}}(a0_0x10d0,0x72fdd));function a0_0x1dda(_0x3f66d4,_0x41f921){_0x3f66d4=_0x3f66d4-0x18a;const _0x10d04b=a0_0x10d0();let _0x1dda01=_0x10d04b[_0x3f66d4];return _0x1dda01;}var __createBinding=this&&this[a0_0x35cad5(0x221)]||(Object[a0_0x35cad5(0x1d9)]?function(_0x2a115d,_0x7f1922,_0x297732,_0x159921){const _0x1104a9=a0_0x35cad5;if(_0x159921===undefined)_0x159921=_0x297732;var _0x6f9a1e=Object[_0x1104a9(0x1c7)](_0x7f1922,_0x297732);(!_0x6f9a1e||(_0x1104a9(0x1b7)in _0x6f9a1e?!_0x7f1922[_0x1104a9(0x1bc)]:_0x6f9a1e[_0x1104a9(0x19d)]||_0x6f9a1e['configurable']))&&(_0x6f9a1e={'enumerable':!![],'get':function(){return _0x7f1922[_0x297732];}}),Object['defineProperty'](_0x2a115d,_0x159921,_0x6f9a1e);}:function(_0x49689c,_0x5c15c7,_0x54e5a6,_0x25cf36){if(_0x25cf36===undefined)_0x25cf36=_0x54e5a6;_0x49689c[_0x25cf36]=_0x5c15c7[_0x54e5a6];}),__setModuleDefault=this&&this[a0_0x35cad5(0x18b)]||(Object[a0_0x35cad5(0x1d9)]?function(_0x1a5493,_0x4e1867){const _0x32623b=a0_0x35cad5;Object[_0x32623b(0x216)](_0x1a5493,_0x32623b(0x21a),{'enumerable':!![],'value':_0x4e1867});}:function(_0x5c45d1,_0x53d1d8){const _0x1c451e=a0_0x35cad5;_0x5c45d1[_0x1c451e(0x21a)]=_0x53d1d8;}),__importStar=this&&this[a0_0x35cad5(0x20f)]||(function(){var _0x3ad53d=function(_0x1a85d4){const _0x1a8feb=a0_0x1dda;return _0x3ad53d=Object[_0x1a8feb(0x1f8)]||function(_0x445f7c){const _0x58d397=_0x1a8feb;var _0x46752e=[];for(var _0x256e80 in _0x445f7c)if(Object[_0x58d397(0x1cc)][_0x58d397(0x201)]['call'](_0x445f7c,_0x256e80))_0x46752e[_0x46752e[_0x58d397(0x1d7)]]=_0x256e80;return _0x46752e;},_0x3ad53d(_0x1a85d4);};return function(_0x4d551f){const _0x4ff52b=a0_0x1dda;if(_0x4d551f&&_0x4d551f[_0x4ff52b(0x1bc)])return _0x4d551f;var _0x6b477a={};if(_0x4d551f!=null){for(var _0x3170a6=_0x3ad53d(_0x4d551f),_0x471dc7=0x0;_0x471dc7<_0x3170a6[_0x4ff52b(0x1d7)];_0x471dc7++)if(_0x3170a6[_0x471dc7]!==_0x4ff52b(0x21a))__createBinding(_0x6b477a,_0x4d551f,_0x3170a6[_0x471dc7]);}return __setModuleDefault(_0x6b477a,_0x4d551f),_0x6b477a;};}());Object[a0_0x35cad5(0x216)](exports,a0_0x35cad5(0x1bc),{'value':!![]}),exports[a0_0x35cad5(0x22d)]=loadConfig,exports[a0_0x35cad5(0x1d4)]=saveConfig,exports['getAgentStoragePaths']=getAgentStoragePaths,exports['getLatestSessionFile']=getLatestSessionFile,exports['loadSessionsState']=loadSessionsState,exports['saveSessionStateItem']=saveSessionStateItem,exports['processSessionFile']=processSessionFile,exports[a0_0x35cad5(0x1e6)]=compactSessionCopy,exports[a0_0x35cad5(0x1dc)]=compactLiveSession,exports['installWindowsStartupService']=installWindowsStartupService,exports[a0_0x35cad5(0x229)]=startWatcherDaemon;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x35cad5(0x20d))),os=__importStar(require('os')),cache_manager_1=require('./cache-manager'),tracker_1=require('./tracker'),baseDir=path[a0_0x35cad5(0x18a)](os[a0_0x35cad5(0x196)](),'.trimprompt'),configPath=path[a0_0x35cad5(0x18a)](baseDir,'config.json'),DEFAULT_CONFIG={'autostart_enabled':!![],'conversation_toggles':{'conv_claude':!![],'conv_codex':!![],'conv_cursor':!![],'conv_aider':!![],'conv_copilot':!![],'conv_openclaw':!![],'conv_opencode':!![],'conv_cortex':!![]},'custom_storage_paths':{'claude':null,'codex':null,'cursor':null,'aider':null,'copilot':null,'openclaw':null,'opencode':null,'cortex':null}};function loadConfig(){const _0x40bef6=a0_0x35cad5;try{if(!fs['existsSync'](baseDir))fs[_0x40bef6(0x223)](baseDir,{'recursive':!![]});if(fs['existsSync'](configPath)){const _0x2659c5=JSON[_0x40bef6(0x18d)](fs['readFileSync'](configPath,'utf8'));return{...DEFAULT_CONFIG,..._0x2659c5,'conversation_toggles':{...DEFAULT_CONFIG[_0x40bef6(0x20a)],..._0x2659c5[_0x40bef6(0x20a)]||{}},'custom_storage_paths':{...DEFAULT_CONFIG[_0x40bef6(0x1c4)],..._0x2659c5[_0x40bef6(0x1c4)]||{}}};}}catch{}return DEFAULT_CONFIG;}function saveConfig(_0x58c2a8){const _0x52fce4=a0_0x35cad5,_0x12bec1=loadConfig(),_0x58cadb={..._0x12bec1,..._0x58c2a8,'conversation_toggles':{..._0x12bec1[_0x52fce4(0x20a)],..._0x58c2a8[_0x52fce4(0x20a)]||{}},'custom_storage_paths':{..._0x12bec1[_0x52fce4(0x1c4)],..._0x58c2a8['custom_storage_paths']||{}}};try{if(!fs[_0x52fce4(0x1c3)](baseDir))fs[_0x52fce4(0x223)](baseDir,{'recursive':!![]});fs['writeFileSync'](configPath,JSON['stringify'](_0x58cadb,null,0x2),_0x52fce4(0x194));}catch{}return _0x58cadb;}function getAgentStoragePaths(_0x48dc70){const _0x3d4728=a0_0x35cad5,_0x13a816=loadConfig(),_0x200e34=_0x13a816[_0x3d4728(0x1c4)][_0x48dc70];if(_0x200e34&&fs[_0x3d4728(0x1c3)](_0x200e34))return[_0x200e34];const _0x2e0eb2=os[_0x3d4728(0x196)](),_0x231b63=process[_0x3d4728(0x228)]===_0x3d4728(0x1fe),_0x48ec30=process[_0x3d4728(0x228)]===_0x3d4728(0x1e9);switch(_0x48dc70){case _0x3d4728(0x1b1):return[path[_0x3d4728(0x18a)](_0x2e0eb2,'.claude',_0x3d4728(0x1aa)),path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x231),'history')];case'codex':return[path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x206),_0x3d4728(0x1bb)),path[_0x3d4728(0x18a)](_0x2e0eb2,'AppData',_0x3d4728(0x202),_0x3d4728(0x198))];case _0x3d4728(0x22e):case _0x3d4728(0x1c8):return[path['join'](_0x2e0eb2,_0x3d4728(0x1df),_0x3d4728(0x1c8)),path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x1df)),path['join'](_0x2e0eb2,_0x3d4728(0x1af),'Roaming',_0x3d4728(0x1d8)),path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x218),_0x3d4728(0x22e))];case _0x3d4728(0x1c5):if(_0x231b63)return[path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x1af),_0x3d4728(0x202),_0x3d4728(0x1e3),_0x3d4728(0x1ff),'workspaceStorage')];if(_0x48ec30)return[path[_0x3d4728(0x18a)](_0x2e0eb2,'Library',_0x3d4728(0x217),'Cursor',_0x3d4728(0x1ff),_0x3d4728(0x1a4))];return[path['join'](_0x2e0eb2,'.config',_0x3d4728(0x1e3),'User',_0x3d4728(0x1a4))];case _0x3d4728(0x1b4):return[process[_0x3d4728(0x1e4)](),path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x19a))];case'copilot':if(_0x231b63)return[path[_0x3d4728(0x18a)](_0x2e0eb2,'AppData','Local','github-copilot-cli')];return[path['join'](_0x2e0eb2,'.config',_0x3d4728(0x1b5))];case _0x3d4728(0x1fa):return[path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x1a6),_0x3d4728(0x1c9)),path[_0x3d4728(0x18a)](process[_0x3d4728(0x1e4)](),_0x3d4728(0x1a6),_0x3d4728(0x1ae))];case'opencode':return[path[_0x3d4728(0x18a)](_0x2e0eb2,_0x3d4728(0x21d),_0x3d4728(0x1bb))];case _0x3d4728(0x1b3):return[path['join'](_0x2e0eb2,_0x3d4728(0x211),_0x3d4728(0x1ec))];default:return[];}}function getLatestSessionFile(_0x1bcdd8){const _0x53cc89=a0_0x35cad5,_0x52de27=getAgentStoragePaths(_0x1bcdd8);let _0x5a22c5=null,_0x349880=0x0,_0x3b14bb=null,_0x2e1655=null;for(const _0xedc41f of _0x52de27){if(fs[_0x53cc89(0x1c3)](_0xedc41f)){if(!_0x2e1655)_0x2e1655=_0xedc41f;const _0x9b00d5=(_0xfc9a6a,_0x48f6d1=0x0)=>{const _0x530b60=_0x53cc89;if(_0x48f6d1>0x6)return;try{const _0xf63d4a=fs['readdirSync'](_0xfc9a6a,{'withFileTypes':!![]});for(const _0x39a833 of _0xf63d4a){const _0x1295c4=path[_0x530b60(0x18a)](_0xfc9a6a,_0x39a833[_0x530b60(0x1ad)]);if(_0x39a833[_0x530b60(0x22f)]()){const _0x5bb6c4=_0x39a833[_0x530b60(0x1ad)]['toLowerCase']();if(_0x5bb6c4===_0x530b60(0x1e8)||_0x5bb6c4==='.git'||_0x5bb6c4===_0x530b60(0x1d2)||_0x5bb6c4===_0x530b60(0x1a2)||_0x5bb6c4==='venv'||_0x5bb6c4==='__pycache__'||_0x5bb6c4===_0x530b60(0x192)||_0x5bb6c4===_0x530b60(0x1a9)||_0x5bb6c4===_0x530b60(0x19e)||_0x5bb6c4==='out'||_0x5bb6c4===_0x530b60(0x224))continue;_0x9b00d5(_0x1295c4,_0x48f6d1+0x1);}else{if(_0x39a833[_0x530b60(0x18e)]()&&!_0x39a833[_0x530b60(0x1ad)][_0x530b60(0x19f)]('.')){const _0x35d3e9=_0x39a833['name'][_0x530b60(0x205)]();if(_0x35d3e9[_0x530b60(0x19b)](_0x530b60(0x1fb))||_0x35d3e9[_0x530b60(0x21f)](_0x530b60(0x222))||_0x35d3e9[_0x530b60(0x21f)](_0x530b60(0x22a))||_0x35d3e9[_0x530b60(0x21f)]('.png')||_0x35d3e9[_0x530b60(0x21f)](_0x530b60(0x20b))||_0x35d3e9['endsWith']('.jpeg')||_0x35d3e9[_0x530b60(0x21f)]('.gif')||_0x35d3e9[_0x530b60(0x21f)]('.webp')||_0x35d3e9[_0x530b60(0x21f)]('.pb')||_0x35d3e9[_0x530b60(0x21f)](_0x530b60(0x1cd))||_0x35d3e9[_0x530b60(0x21f)](_0x530b60(0x1bf))||_0x35d3e9[_0x530b60(0x21f)](_0x530b60(0x18f))||_0x35d3e9[_0x530b60(0x21f)]('.lock')||_0x35d3e9['endsWith'](_0x530b60(0x1f4))||_0x35d3e9[_0x530b60(0x19f)](_0x530b60(0x1bd))||_0x35d3e9[_0x530b60(0x19f)](_0x530b60(0x1c2)))continue;const _0x2fc54e=fs[_0x530b60(0x1ce)](_0x1295c4);_0x2fc54e[_0x530b60(0x1d5)]>_0x349880&&(_0x349880=_0x2fc54e[_0x530b60(0x1d5)],_0x5a22c5=_0x39a833[_0x530b60(0x1ad)],_0x3b14bb=_0x1295c4,_0x2e1655=_0xedc41f);}}}}catch{}};_0x9b00d5(_0xedc41f);}}return{'fileName':_0x5a22c5,'lastModified':_0x349880>0x0?new Date(_0x349880)['toISOString']():null,'fullPath':_0x3b14bb,'dirPath':_0x2e1655};}function a0_0x10d0(){const _0x3a6344=['copilot','./proxy-conv','role','Summary:\x20Text\x20block\x20offloaded\x20(','string','compressed_tokens','./hooks/claude-hook','join','__setModuleDefault','max','parse','isFile','.tmp','watch','raw_tokens','.next','cli.js','utf8','Summary:\x20Content\x20offloaded\x20(','homedir','hookSavedTokens','Codex','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`','.aider.chat.history.md','includes','compact_copy','writable','build','startsWith','autoCompactSaved','1sxubkP','env','Windows','workspaceStorage','150325MbHuQQ','.openclaw','Start\x20Menu','`\x0a>\x20Retrieve\x20with:\x20`trim\x20retrieve\x20','dist','projects','.json1','repeat','name','context','AppData','conv_','claude','system','cortex','aider','github-copilot-cli','opencode','get','message','tokens','tracker','sessions','__esModule','media__','readFileSync','.shm','renameSync','\x22\x20&\x20\x22\x22\x22\x20ui\x20--headless\x22,\x200,\x20False\x0a','image_','existsSync','custom_storage_paths','cursor','size','getOwnPropertyDescriptor','antigravity','storage','codex','basename','prototype','.wal','statSync','428psrECc','ceil','TrimPrompt\x20Cache\x20Engine','.venv','\x27\x20—\x20only\x20JSON/JSONL\x20sessions\x20can\x20be\x20compacted\x20(binary\x20.pb/.db\x20stores\x20are\x20not\x20supported)','saveConfig','mtimeMs','Unsupported\x20format\x20\x27','length','Gemini','create','object','matchAll','compactLiveSession','775448HLnXKa','TrimPromptDaemon.vbs','.gemini','chunk_id','modified','Microsoft','Cursor','cwd','byteLength','compactSessionCopy','\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20The\x20raw\x20content\x20of\x20this\x20step\x20(','node_modules','darwin','3032115gBUYiM','activeSavedTokens','cache','push','savedTokens','live-conv','.jsonl','split','stringify','88KZSiAy','.dat','assign','logExecution','text','getOwnPropertyNames','isArray','openclaw','.compact','Programs','none','win32','User','.json','hasOwnProperty','Roaming','saveChunk','extname','toLowerCase','.codex','filter','officialCompactSaved','lineCount','conversation_toggles','.jpg','round','path','Startup','__importStar','messages','.cortex','content','Unsupported\x20extension','3585348xUuXwq','writeFileSync','defineProperty','Application\x20Support','.config','saved','default','3049824ktGAZJ','compact:','.opencode','fullPath','endsWith','find','__createBinding','.db','mkdirSync','.agents','sessions_state.json','2889dHDfSR','91900VAQvmO','platform','startWatcherDaemon','.vscdb','type','`\x0a>\x20If\x20required,\x20execute:\x20`trim\x20retrieve\x20','loadConfig','gemini','isDirectory','Session\x20file\x20not\x20found','.claude','\x20tokens).','trim'];a0_0x10d0=function(){return _0x3a6344;};return a0_0x10d0();}const debounceTimers=new Map(),lastLoggedTimes=new Map(),OFFLOAD_THRESHOLD_CHARS=0x7d0;function compressMessageContent(_0x27be64,_0x1a3954,_0x2e9915){const _0x581343=a0_0x35cad5;let _0x2f0845=![],_0x2a22a0=0x0;if(!_0x27be64)return{'modified':_0x2f0845,'savedTokens':_0x2a22a0};const _0x339f39=_0x5c57f4=>_0x5c57f4['replace'](/\r\n/g,'\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');if(typeof _0x27be64[_0x581343(0x212)]===_0x581343(0x238)){let _0x3a1a39=_0x27be64['content'],_0x4fbec9=_0x339f39(_0x3a1a39);_0x4fbec9['length']<_0x3a1a39[_0x581343(0x1d7)]&&(_0x27be64[_0x581343(0x212)]=_0x4fbec9,_0x2f0845=!![],_0x2a22a0+=Math[_0x581343(0x1d0)]((_0x3a1a39[_0x581343(0x1d7)]-_0x4fbec9[_0x581343(0x1d7)])/0x4));if(_0x27be64['content']['length']>OFFLOAD_THRESHOLD_CHARS&&!_0x27be64[_0x581343(0x212)]['includes'](_0x581343(0x1d1))){const _0x483f3b=_0x581343(0x195)+Math[_0x581343(0x1d0)](_0x27be64[_0x581343(0x212)][_0x581343(0x1d7)]/0x4)+_0x581343(0x232),_0x3877ed=(0x0,cache_manager_1[_0x581343(0x203)])(_0x1a3954,_0x2e9915,_0x27be64['content'],_0x483f3b);_0x27be64[_0x581343(0x212)]=_0x581343(0x1e7)+_0x3877ed[_0x581343(0x191)]+'\x20tokens)\x20was\x20moved\x20to\x20local\x20side-cache.\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x3877ed[_0x581343(0x1e0)]+_0x581343(0x22c)+_0x3877ed[_0x581343(0x1e0)]+'`\x0a',_0x2f0845=!![],_0x2a22a0+=Math[_0x581343(0x18c)](0x0,_0x3877ed[_0x581343(0x191)]-_0x3877ed[_0x581343(0x239)]);}}else{if(Array['isArray'](_0x27be64[_0x581343(0x212)]))for(const _0x5e1a16 of _0x27be64[_0x581343(0x212)]){if(_0x5e1a16&&typeof _0x5e1a16===_0x581343(0x1da)){if(typeof _0x5e1a16[_0x581343(0x1f7)]===_0x581343(0x238)){let _0x4049bb=_0x5e1a16['text'],_0x3b9b2d=_0x339f39(_0x4049bb);_0x3b9b2d[_0x581343(0x1d7)]<_0x4049bb[_0x581343(0x1d7)]&&(_0x5e1a16['text']=_0x3b9b2d,_0x2f0845=!![],_0x2a22a0+=Math[_0x581343(0x1d0)]((_0x4049bb[_0x581343(0x1d7)]-_0x3b9b2d[_0x581343(0x1d7)])/0x4));if(_0x5e1a16[_0x581343(0x1f7)][_0x581343(0x1d7)]>OFFLOAD_THRESHOLD_CHARS&&!_0x5e1a16[_0x581343(0x1f7)]['includes'](_0x581343(0x1d1))){const _0x39e908=_0x581343(0x237)+Math['ceil'](_0x5e1a16[_0x581343(0x1f7)][_0x581343(0x1d7)]/0x4)+'\x20tokens).',_0x19f349=(0x0,cache_manager_1[_0x581343(0x203)])(_0x1a3954,_0x2e9915,_0x5e1a16[_0x581343(0x1f7)],_0x39e908);_0x5e1a16['text']=_0x581343(0x199)+_0x19f349[_0x581343(0x1e0)]+_0x581343(0x1a8)+_0x19f349['chunk_id']+'`\x0a',_0x2f0845=!![],_0x2a22a0+=Math['max'](0x0,_0x19f349[_0x581343(0x191)]-_0x19f349[_0x581343(0x239)]);}}else{if(typeof _0x5e1a16[_0x581343(0x212)]===_0x581343(0x238)){let _0x1b1810=_0x5e1a16['content'],_0x4485cc=_0x339f39(_0x1b1810);_0x4485cc[_0x581343(0x1d7)]<_0x1b1810['length']&&(_0x5e1a16[_0x581343(0x212)]=_0x4485cc,_0x2f0845=!![],_0x2a22a0+=Math[_0x581343(0x1d0)]((_0x1b1810[_0x581343(0x1d7)]-_0x4485cc[_0x581343(0x1d7)])/0x4));if(_0x5e1a16[_0x581343(0x212)][_0x581343(0x1d7)]>OFFLOAD_THRESHOLD_CHARS&&!_0x5e1a16[_0x581343(0x212)]['includes'](_0x581343(0x1d1))){const _0x47b820='Summary:\x20Tool\x20result\x20offloaded\x20('+Math[_0x581343(0x1d0)](_0x5e1a16['content'][_0x581343(0x1d7)]/0x4)+_0x581343(0x232),_0x4e8e86=(0x0,cache_manager_1['saveChunk'])(_0x1a3954,_0x2e9915,_0x5e1a16[_0x581343(0x212)],_0x47b820);_0x5e1a16[_0x581343(0x212)]='\x0a>\x20[!IMPORTANT]\x0a>\x20**[TrimPrompt\x20Cache\x20Engine\x20—\x20Context\x20Offloaded]**\x0a>\x20**Chunk\x20Reference\x20ID:**\x20`'+_0x4e8e86['chunk_id']+_0x581343(0x1a8)+_0x4e8e86[_0x581343(0x1e0)]+'`\x0a',_0x2f0845=!![],_0x2a22a0+=Math['max'](0x0,_0x4e8e86['raw_tokens']-_0x4e8e86[_0x581343(0x239)]);}}}}}}return{'modified':_0x2f0845,'savedTokens':_0x2a22a0};}const sessionsStatePath=path['join'](baseDir,a0_0x35cad5(0x225));let sessionsStateMemoryCache=null;function loadSessionsState(){const _0x264757=a0_0x35cad5;try{if(fs[_0x264757(0x1c3)](sessionsStatePath)){const _0x4a5d56=JSON[_0x264757(0x18d)](fs[_0x264757(0x1be)](sessionsStatePath,_0x264757(0x194)));if(_0x4a5d56&&typeof _0x4a5d56===_0x264757(0x1da))return sessionsStateMemoryCache=_0x4a5d56,_0x4a5d56;}}catch{}return sessionsStateMemoryCache||{};}function saveSessionStateItem(_0x543a40,_0x38aa79,_0x5308e2,_0x282205=0x0,_0x505561=0x0,_0x535dbe=0x0){const _0x1db55c=a0_0x35cad5;try{const _0x7df9f1=loadSessionsState(),_0x56a0cb=_0x7df9f1[_0x543a40]||{},_0x2ae956=_0x505561||_0x56a0cb[_0x1db55c(0x1a0)]||0x0,_0xd37e94=_0x535dbe||_0x56a0cb['hookSavedTokens']||0x0,_0x2f656e=_0x5308e2!==undefined?_0x5308e2:_0x56a0cb[_0x1db55c(0x208)]||0x0;_0x7df9f1[_0x543a40]={'lineCount':_0x38aa79||_0x56a0cb['lineCount']||0x1,'activeSavedTokens':_0x2f656e+_0x2ae956+_0xd37e94,'sideCacheSaved':_0x282205||_0x56a0cb['sideCacheSaved']||0x0,'officialCompactSaved':_0x2f656e,'autoCompactSaved':_0x2ae956,'hookSavedTokens':_0xd37e94},sessionsStateMemoryCache=_0x7df9f1;if(!fs[_0x1db55c(0x1c3)](baseDir))fs[_0x1db55c(0x223)](baseDir,{'recursive':!![]});const _0x135ce9=sessionsStatePath+_0x1db55c(0x18f);fs[_0x1db55c(0x215)](_0x135ce9,JSON[_0x1db55c(0x1f2)](_0x7df9f1,null,0x2),_0x1db55c(0x194)),fs[_0x1db55c(0x1c0)](_0x135ce9,sessionsStatePath);}catch{}}function processSessionFile(_0xcaf209,_0x1e9892){const _0x52e43a=a0_0x35cad5;try{if(!fs[_0x52e43a(0x1c3)](_0xcaf209))return;const _0x3b0f6a=fs[_0x52e43a(0x1ce)](_0xcaf209);if(_0x3b0f6a[_0x52e43a(0x22f)]()||_0x3b0f6a[_0x52e43a(0x1c6)]===0x0)return;const _0x4a5361=loadConfig(),_0x175658=_0x52e43a(0x1b0)+_0x1e9892;if(_0x4a5361['conversation_toggles'][_0x175658]===![])return;const _0x51413c=fs['readFileSync'](_0xcaf209,_0x52e43a(0x194)),_0x3b5cce=path['extname'](_0xcaf209)[_0x52e43a(0x205)]();let _0x763e8f=0x1;if(_0x3b5cce===_0x52e43a(0x1f0)||_0x3b5cce===_0x52e43a(0x1ab))_0x763e8f=_0x51413c[_0x52e43a(0x1f1)]('\x0a')[_0x52e43a(0x207)](Boolean)[_0x52e43a(0x1d7)];else{if(_0x3b5cce===_0x52e43a(0x200))try{const _0x229d49=JSON[_0x52e43a(0x18d)](_0x51413c),_0x329788=Array[_0x52e43a(0x1f9)](_0x229d49[_0x52e43a(0x210)])?_0x229d49[_0x52e43a(0x210)]:Array['isArray'](_0x229d49)?_0x229d49:null;if(_0x329788)_0x763e8f=_0x329788[_0x52e43a(0x1d7)];}catch{}}let _0x3c1397=0x0;if((_0x3b5cce==='.jsonl'||_0x3b5cce===_0x52e43a(0x1ab))&&_0x51413c[_0x52e43a(0x19b)](_0x52e43a(0x219))&&_0x51413c[_0x52e43a(0x19b)](_0x52e43a(0x1b9))){const _0x263881=/(?:Compacted conversation\s*·\s*)?saved\s*([\d\.]+)k?\s*tokens/gi;for(const _0x5c2fca of _0x51413c[_0x52e43a(0x1f1)]('\x0a')){if(!_0x5c2fca[_0x52e43a(0x19b)](_0x52e43a(0x219))||!_0x5c2fca['includes'](_0x52e43a(0x1b9)))continue;try{const _0x23d18c=JSON[_0x52e43a(0x18d)](_0x5c2fca);if(_0x23d18c[_0x52e43a(0x22b)]!==_0x52e43a(0x1b2))continue;const _0x5a0432=typeof _0x23d18c[_0x52e43a(0x212)]===_0x52e43a(0x238)?_0x23d18c[_0x52e43a(0x212)]:_0x23d18c[_0x52e43a(0x1b8)]&&typeof _0x23d18c[_0x52e43a(0x1b8)][_0x52e43a(0x212)]===_0x52e43a(0x238)?_0x23d18c[_0x52e43a(0x1b8)]['content']:'';if(!_0x5a0432)continue;for(const _0x25edc9 of _0x5a0432[_0x52e43a(0x1db)](_0x263881)){let _0x2e2a7c=parseFloat(_0x25edc9[0x1]);if(_0x25edc9[0x0]['toLowerCase']()[_0x52e43a(0x19b)]('k'))_0x2e2a7c=_0x2e2a7c*0x3e8;_0x3c1397+=Math[_0x52e43a(0x20c)](_0x2e2a7c);}}catch{}}}const _0x28a356=loadSessionsState(),_0x4ade72=_0x28a356[_0xcaf209],_0x341e7e=_0x4ade72?_0x4ade72[_0x52e43a(0x209)]:0x0,_0x28ca0b=_0x4ade72?_0x4ade72[_0x52e43a(0x1eb)]||0x0:0x0;if(_0x341e7e>0x0&&_0x763e8f>_0x341e7e&&_0x28ca0b>0x0){const _0x4bac11='conv:'+_0x1e9892;tracker_1[_0x52e43a(0x1ba)][_0x52e43a(0x1f6)](_0x4bac11,'A'[_0x52e43a(0x1ac)](_0x28ca0b*0x4),'',0x0,undefined,[_0x52e43a(0x1b0)+_0x1e9892,_0x52e43a(0x1ef),_0x1e9892,'prompt_turn']);}const _0x28bb3b=_0x4ade72&&_0x4ade72[_0x52e43a(0x208)]!==undefined?_0x4ade72[_0x52e43a(0x208)]:0x0,_0x52fbb6=Math[_0x52e43a(0x18c)](_0x28bb3b,_0x3c1397);saveSessionStateItem(_0xcaf209,_0x763e8f,_0x52fbb6,0x0,0x0,0x0);}catch{}}function compactSessionCopy(_0x323fd9,_0x4053c3){const _0x26c70d=a0_0x35cad5;try{if(!fs[_0x26c70d(0x1c3)](_0x323fd9))return{'ok':![],'reason':_0x26c70d(0x230)};const _0x4107bf=path['extname'](_0x323fd9)[_0x26c70d(0x205)]();if(_0x4107bf!==_0x26c70d(0x200)&&_0x4107bf!==_0x26c70d(0x1f0)&&_0x4107bf!==_0x26c70d(0x1ab))return{'ok':![],'reason':_0x26c70d(0x1d6)+(_0x4107bf||_0x26c70d(0x1fd))+_0x26c70d(0x1d3)};const _0x27aa6e=fs[_0x26c70d(0x1be)](_0x323fd9,_0x26c70d(0x194)),_0x4553fd=Buffer[_0x26c70d(0x1e5)](_0x27aa6e,_0x26c70d(0x194)),_0x11cd0b=path[_0x26c70d(0x1cb)](_0x323fd9,_0x4107bf);let _0x23e1ae=_0x27aa6e,_0x4e18c9=![];if(_0x4107bf==='.json'){const _0x4bcb62=JSON['parse'](_0x27aa6e),_0x8318a1=Array[_0x26c70d(0x1f9)](_0x4bcb62[_0x26c70d(0x210)])?_0x4bcb62[_0x26c70d(0x210)]:Array[_0x26c70d(0x1f9)](_0x4bcb62)?_0x4bcb62:null;if(_0x8318a1){for(const _0x1335cc of _0x8318a1){const _0x1cc2be=compressMessageContent(_0x1335cc,_0x11cd0b,_0x4053c3);if(_0x1cc2be[_0x26c70d(0x1e1)])_0x4e18c9=!![];}if(_0x4e18c9)_0x23e1ae=JSON['stringify'](_0x4bcb62,null,0x2);}}else{const _0x3ffebb=_0x27aa6e['split']('\x0a'),_0x389364=[];for(let _0x5015a1 of _0x3ffebb){if(!_0x5015a1[_0x26c70d(0x233)]()){_0x389364[_0x26c70d(0x1ed)](_0x5015a1);continue;}try{const _0x33c17e=JSON[_0x26c70d(0x18d)](_0x5015a1),_0x1416cc=_0x33c17e[_0x26c70d(0x1b8)]||_0x33c17e;if(_0x1416cc){const _0x3d44b0=compressMessageContent(_0x1416cc,_0x11cd0b,_0x4053c3);_0x3d44b0[_0x26c70d(0x1e1)]&&(_0x4e18c9=!![],_0x5015a1=JSON[_0x26c70d(0x1f2)](_0x33c17e));}}catch{}_0x389364[_0x26c70d(0x1ed)](_0x5015a1);}if(_0x4e18c9)_0x23e1ae=_0x389364[_0x26c70d(0x18a)]('\x0a');}const _0x334276=Buffer[_0x26c70d(0x1e5)](_0x23e1ae,'utf8'),_0x43f901=path[_0x26c70d(0x18a)](path['dirname'](_0x323fd9),_0x11cd0b+_0x26c70d(0x1fb)+_0x4107bf);fs[_0x26c70d(0x215)](_0x43f901,_0x23e1ae,_0x26c70d(0x194));const _0x5227e3=Math[_0x26c70d(0x1d0)](_0x4553fd/0x4),_0x2fd8ac=Math[_0x26c70d(0x1d0)](_0x334276/0x4),_0x4be2b5=Math[_0x26c70d(0x18c)](0x0,_0x5227e3-_0x2fd8ac),_0x465036=_0x4553fd>0x0?Math[_0x26c70d(0x20c)]((0x1-_0x334276/_0x4553fd)*0x3e8)/0xa:0x0;return _0x4be2b5>0x0&&tracker_1[_0x26c70d(0x1ba)][_0x26c70d(0x1f6)]('compact:'+_0x4053c3,_0x27aa6e,_0x23e1ae,_0x4be2b5,undefined,[_0x26c70d(0x1b0)+_0x4053c3,_0x26c70d(0x1ef),_0x4053c3,_0x26c70d(0x19c)]),{'ok':!![],'compactPath':_0x43f901,'rawBytes':_0x4553fd,'compressedBytes':_0x334276,'rawTokens':_0x5227e3,'compressedTokens':_0x2fd8ac,'savedTokens':_0x4be2b5,'reductionPct':_0x465036};}catch(_0x423cc4){return{'ok':![],'reason':_0x423cc4?.[_0x26c70d(0x1b8)]||'compaction\x20failed'};}}function compactLiveSession(_0x5533a4,_0x1ccdfd){const _0x4ab106=a0_0x35cad5;try{if(!fs['existsSync'](_0x5533a4))return{'ok':![],'savedTokens':0x0,'reason':'File\x20not\x20found'};const _0x8f9c32=path[_0x4ab106(0x204)](_0x5533a4)[_0x4ab106(0x205)]();if(_0x8f9c32!=='.json'&&_0x8f9c32!==_0x4ab106(0x1f0)&&_0x8f9c32!==_0x4ab106(0x1ab))return{'ok':![],'savedTokens':0x0,'reason':_0x4ab106(0x213)};const _0x2e6069=fs['readFileSync'](_0x5533a4,_0x4ab106(0x194)),_0x384642=Buffer[_0x4ab106(0x1e5)](_0x2e6069,'utf8'),_0x503198=Math[_0x4ab106(0x1d0)](_0x384642/0x4),_0xe426a2=path[_0x4ab106(0x1cb)](_0x5533a4,_0x8f9c32);let _0x1071ef=_0x2e6069,_0x51163c=![];if(_0x8f9c32===_0x4ab106(0x200)){const _0x4b1764=JSON[_0x4ab106(0x18d)](_0x2e6069),_0x2a1251=Array[_0x4ab106(0x1f9)](_0x4b1764[_0x4ab106(0x210)])?_0x4b1764[_0x4ab106(0x210)]:Array['isArray'](_0x4b1764)?_0x4b1764:null;if(_0x2a1251){for(const _0x45f046 of _0x2a1251){const _0x1d1c11=compressMessageContent(_0x45f046,_0xe426a2,_0x1ccdfd);if(_0x1d1c11[_0x4ab106(0x1e1)])_0x51163c=!![];}const {compressConversation:_0x10416c}=require(_0x4ab106(0x235)),_0x27f567=_0x10416c(_0x2a1251,0x9c40);_0x27f567[_0x4ab106(0x1ee)]>0x0&&(_0x51163c=!![],Array[_0x4ab106(0x1f9)](_0x4b1764[_0x4ab106(0x210)])?_0x4b1764['messages']=_0x27f567[_0x4ab106(0x210)]:_0x1071ef=JSON['stringify'](_0x27f567[_0x4ab106(0x210)],null,0x2)),_0x51163c&&!Array[_0x4ab106(0x1f9)](_0x4b1764)&&(_0x1071ef=JSON[_0x4ab106(0x1f2)](_0x4b1764,null,0x2));}}else{const _0x3eb18f=_0x2e6069['split']('\x0a'),_0x1fe1e4=[],_0x38da74=[];for(const _0x148076 of _0x3eb18f){if(!_0x148076['trim']())continue;try{const _0x27c53e=JSON['parse'](_0x148076);_0x1fe1e4['push'](_0x27c53e);const _0x6896cd=_0x27c53e[_0x4ab106(0x1b8)]||_0x27c53e;_0x6896cd&&typeof _0x6896cd['role']===_0x4ab106(0x238)&&_0x38da74[_0x4ab106(0x1ed)](_0x6896cd);}catch{}}for(const _0x52fadf of _0x38da74){const _0x1b76a1=compressMessageContent(_0x52fadf,_0xe426a2,_0x1ccdfd);if(_0x1b76a1[_0x4ab106(0x1e1)])_0x51163c=!![];}const {compressConversation:_0x299045}=require('./proxy-conv'),_0x487284=_0x299045(_0x38da74,0x9c40);if(_0x487284[_0x4ab106(0x1ee)]>0x0||_0x51163c){const _0x145f8f=[];for(const _0x2fc443 of _0x1fe1e4){const _0x45322b=_0x2fc443['message']||_0x2fc443;if(_0x45322b&&typeof _0x45322b[_0x4ab106(0x236)]==='string'){const _0x1b1297=_0x487284['messages'][_0x4ab106(0x220)](_0x331968=>_0x331968===_0x45322b);_0x1b1297?(_0x2fc443[_0x4ab106(0x1b8)]?_0x2fc443[_0x4ab106(0x1b8)]=_0x1b1297:Object[_0x4ab106(0x1f5)](_0x2fc443,_0x1b1297),_0x145f8f[_0x4ab106(0x1ed)](JSON['stringify'](_0x2fc443))):_0x51163c=!![];}else _0x145f8f['push'](JSON['stringify'](_0x2fc443));}_0x1071ef=_0x145f8f[_0x4ab106(0x18a)]('\x0a'),_0x51163c=!![];}}if(_0x51163c){const _0x1129ed=Buffer[_0x4ab106(0x1e5)](_0x1071ef,_0x4ab106(0x194));fs[_0x4ab106(0x215)](_0x5533a4,_0x1071ef,_0x4ab106(0x194));const _0x490013=Math[_0x4ab106(0x1d0)](_0x1129ed/0x4),_0x572cb3=Math[_0x4ab106(0x18c)](0x0,_0x503198-_0x490013);if(_0x572cb3>0x0){const _0x2f5ccb=loadSessionsState(),_0x1b9ec6=_0x2f5ccb[_0x5533a4]||{'lineCount':0x1,'activeSavedTokens':0x0,'sideCacheSaved':0x0,'officialCompactSaved':0x0,'autoCompactSaved':0x0},_0xc7b4d3=_0x1b9ec6[_0x4ab106(0x1a0)]||0x0,_0x4e096d=_0xc7b4d3+_0x572cb3;saveSessionStateItem(_0x5533a4,_0x1b9ec6[_0x4ab106(0x209)],_0x1b9ec6[_0x4ab106(0x208)]||0x0,_0x1b9ec6['sideCacheSaved']||0x0,_0x4e096d,_0x1b9ec6[_0x4ab106(0x197)]||0x0),tracker_1[_0x4ab106(0x1ba)][_0x4ab106(0x1f6)](_0x4ab106(0x21c)+_0x1ccdfd,_0x2e6069,_0x1071ef,_0x572cb3,undefined,[_0x4ab106(0x1b0)+_0x1ccdfd,_0x4ab106(0x1ef),_0x1ccdfd,_0x4ab106(0x19c)]);}return{'ok':!![],'savedTokens':_0x572cb3};}return{'ok':!![],'savedTokens':0x0};}catch(_0x1dc93e){return{'ok':![],'savedTokens':0x0,'reason':_0x1dc93e[_0x4ab106(0x1b8)]||'Compaction\x20failed'};}}function installWindowsStartupService(){const _0x15ceff=a0_0x35cad5;if(process[_0x15ceff(0x228)]!==_0x15ceff(0x1fe))return;try{const _0x3351d9=path[_0x15ceff(0x18a)](os[_0x15ceff(0x196)](),_0x15ceff(0x1af),_0x15ceff(0x202),_0x15ceff(0x1e2),_0x15ceff(0x1a3),_0x15ceff(0x1a7),_0x15ceff(0x1fc),_0x15ceff(0x20e));if(!fs['existsSync'](_0x3351d9))fs[_0x15ceff(0x223)](_0x3351d9,{'recursive':!![]});const _0x26ccd9=path['join'](_0x3351d9,_0x15ceff(0x1de)),_0x537333=path[_0x15ceff(0x18a)](__dirname,_0x15ceff(0x193)),_0x263dfa=_0x537333['replace'](/\\/g,'\x5c\x5c'),_0x2c5559='Set\x20WshShell\x20=\x20CreateObject(\x22WScript.Shell\x22)\x0aWshShell.Run\x20\x22node\x20\x22\x22\x22\x20&\x20\x22'+_0x263dfa+_0x15ceff(0x1c1);fs['writeFileSync'](_0x26ccd9,_0x2c5559,_0x15ceff(0x194));}catch{}}function startWatcherDaemon(){const _0x102bc8=a0_0x35cad5;installWindowsStartupService();try{const {installClaudeHooks:_0x3009c3}=require(_0x102bc8(0x23a));_0x3009c3();}catch(_0x397b2a){}const _0x24e89e=[_0x102bc8(0x1b1),_0x102bc8(0x22e),_0x102bc8(0x1ca),_0x102bc8(0x1c5),_0x102bc8(0x1b4),_0x102bc8(0x234),_0x102bc8(0x1fa),_0x102bc8(0x1b6),_0x102bc8(0x1b3)];for(const _0x1a3ef9 of _0x24e89e){const _0x5849b9=getAgentStoragePaths(_0x1a3ef9);for(const _0x402c1e of _0x5849b9){if(fs[_0x102bc8(0x1c3)](_0x402c1e))try{fs[_0x102bc8(0x190)](_0x402c1e,{'recursive':!![]},(_0x55e41f,_0x35ed1d)=>{const _0x4de538=_0x102bc8;if(!_0x35ed1d)return;const _0x5b5f21=path[_0x4de538(0x18a)](_0x402c1e,_0x35ed1d);if(debounceTimers['has'](_0x5b5f21))clearTimeout(debounceTimers[_0x4de538(0x1b7)](_0x5b5f21));const _0x1548da=setTimeout(()=>processSessionFile(_0x5b5f21,_0x1a3ef9),0x1f4);debounceTimers['set'](_0x5b5f21,_0x1548da);});}catch{}}}setInterval(()=>{const _0x3d5b5f=_0x102bc8;for(const _0x1a9b52 of _0x24e89e){try{const _0x4b17a5=getLatestSessionFile(_0x1a9b52);_0x4b17a5&&_0x4b17a5[_0x3d5b5f(0x21e)]&&processSessionFile(_0x4b17a5['fullPath'],_0x1a9b52);}catch{}}},0xbb8);const _0x51f09b=()=>{const _0x2c1518=_0x102bc8;for(const _0x3140e0 of _0x24e89e){try{const _0x4b56e4=getLatestSessionFile(_0x3140e0);_0x4b56e4&&_0x4b56e4[_0x2c1518(0x21e)]&&compactLiveSession(_0x4b56e4[_0x2c1518(0x21e)],_0x3140e0);}catch{}}};setTimeout(_0x51f09b,0x7d0),setInterval(_0x51f09b,0x2bf20);}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1de0f4=a0_0x70dc;(function(_0x57916d,_0x556d9e){const _0x315967=a0_0x70dc,_0x5583fa=_0x57916d();while(!![]){try{const _0xf560a8=-parseInt(_0x315967(0x19d))/0x1*(-parseInt(_0x315967(0x1ab))/0x2)+-parseInt(_0x315967(0x196))/0x3+-parseInt(_0x315967(0x191))/0x4*(parseInt(_0x315967(0x19c))/0x5)+-parseInt(_0x315967(0x1bf))/0x6+-parseInt(_0x315967(0x1b5))/0x7*(-parseInt(_0x315967(0x19b))/0x8)+-parseInt(_0x315967(0x19a))/0x9+-parseInt(_0x315967(0x1b1))/0xa*(-parseInt(_0x315967(0x1bd))/0xb);if(_0xf560a8===_0x556d9e)break;else _0x5583fa['push'](_0x5583fa['shift']());}catch(_0x347061){_0x5583fa['push'](_0x5583fa['shift']());}}}(a0_0x369e,0x9d23a));function a0_0x70dc(_0x59d48e,_0x29014d){_0x59d48e=_0x59d48e-0x18d;const _0x369e7d=a0_0x369e();let _0x70dc1c=_0x369e7d[_0x59d48e];return _0x70dc1c;}function a0_0x369e(){const _0x114866=['Found\x200\x20error','Docker\x20images:\x20','\x20more','4QehlkV','\x20more\x20images','filterDockerImages','\x20more\x20lines','...\x20+','2647047AQckoL','All\x20checks\x20passed','__esModule','\x20more\x20files','2239992uuDxcA','5112DgHxAL','1962010BuliCX','330793gdXcCG','\x20more\x20events','\x20\x20...\x20(','filterDockerPs','defineProperty','includes','No\x20resources\x20found','\x20lines\x20truncated]\x20...\x0a','trim','slice','\x20\x20...\x20+','\x20total','length','get','4obKRwZ','Ruff:\x20no\x20issues\x20found','match','push','No\x20images\x20found','describe','1370NUJVwX','startsWith','Events:','split','12537bvdAje','filter','filterKubectl','\x20more\x20resources','Ruff:\x20all\x20checks\x20passed','filterDockerLogs','Containers:\x20','\x20issues\x20in\x20','120329IqkUhy','substring','6824382OlmPKy','join','\x20files'];a0_0x369e=function(){return _0x114866;};return a0_0x369e();}Object[a0_0x1de0f4(0x1a1)](exports,a0_0x1de0f4(0x198),{'value':!![]}),exports[a0_0x1de0f4(0x1a0)]=filterDockerPs,exports[a0_0x1de0f4(0x193)]=filterDockerImages,exports[a0_0x1de0f4(0x1ba)]=filterDockerLogs,exports[a0_0x1de0f4(0x1b7)]=filterKubectl,exports['filterRuff']=filterRuff;function filterDockerPs(_0x53dd11){const _0x4273d2=a0_0x1de0f4,_0x34f87e=_0x53dd11[_0x4273d2(0x1b4)]('\x0a')['filter'](_0x30b3fa=>_0x30b3fa[_0x4273d2(0x1a5)]()[_0x4273d2(0x1a9)]>0x0);if(_0x34f87e[_0x4273d2(0x1a9)]===0x0)return'No\x20containers\x20running';if(_0x34f87e['length']<=0xa)return _0x53dd11['trim']();const _0x202f86=_0x34f87e[0x0],_0xe717c2=_0x34f87e[_0x4273d2(0x1a6)](0x1),_0x46e4c9=[];_0x46e4c9[_0x4273d2(0x1ae)](_0x4273d2(0x1bb)+_0xe717c2['length']+'\x20total'),_0x46e4c9[_0x4273d2(0x1ae)]('');for(const _0x43d9e0 of _0xe717c2){const _0x39af27=_0x43d9e0['split'](/\s{2,}/);if(_0x39af27['length']>=0x5){const _0x263cce=_0x39af27[0x0][_0x4273d2(0x1be)](0x0,0xc),_0x78672c=_0x39af27[0x1],_0x4b9150=_0x39af27[_0x39af27['length']-0x2]||'',_0x182b93=_0x39af27[_0x39af27[_0x4273d2(0x1a9)]-0x1]||'';_0x46e4c9[_0x4273d2(0x1ae)]('\x20\x20'+_0x263cce+'\x20\x20'+_0x78672c+'\x20\x20'+_0x4b9150+'\x20\x20'+_0x182b93);}else _0x46e4c9['push']('\x20\x20'+_0x43d9e0[_0x4273d2(0x1a5)]());}return _0x46e4c9['join']('\x0a');}function filterDockerImages(_0x5e1e95){const _0x548058=a0_0x1de0f4,_0x176bfc=_0x5e1e95[_0x548058(0x1b4)]('\x0a')[_0x548058(0x1b6)](_0x571b31=>_0x571b31[_0x548058(0x1a5)]()['length']>0x0);if(_0x176bfc[_0x548058(0x1a9)]<=0x1)return _0x548058(0x1af);if(_0x176bfc['length']<=0xf)return _0x5e1e95[_0x548058(0x1a5)]();const _0xe5f691=_0x176bfc[_0x548058(0x1a6)](0x1),_0x15a363=[_0x548058(0x18f)+_0xe5f691['length']+_0x548058(0x1a8)];_0x15a363['push']('');const _0x43ef94=_0xe5f691[_0x548058(0x1a6)](0x0,0x14);for(const _0x5e88ac of _0x43ef94){const _0x54e7c8=_0x5e88ac[_0x548058(0x1b4)](/\s{2,}/);if(_0x54e7c8[_0x548058(0x1a9)]>=0x3){const _0x1400fe=_0x54e7c8[0x0],_0x3c4e5f=_0x54e7c8[0x1],_0x393f5b=_0x54e7c8[_0x54e7c8[_0x548058(0x1a9)]-0x1]||'';_0x15a363[_0x548058(0x1ae)]('\x20\x20'+_0x1400fe+':'+_0x3c4e5f+'\x20\x20'+_0x393f5b);}else _0x15a363['push']('\x20\x20'+_0x5e88ac[_0x548058(0x1a5)]());}return _0xe5f691[_0x548058(0x1a9)]>0x14&&_0x15a363[_0x548058(0x1ae)](_0x548058(0x1a7)+(_0xe5f691[_0x548058(0x1a9)]-0x14)+_0x548058(0x192)),_0x15a363[_0x548058(0x1c0)]('\x0a');}function filterDockerLogs(_0x69f0e){const _0x15fd4a=a0_0x1de0f4,_0x5e38c1=_0x69f0e[_0x15fd4a(0x1b4)]('\x0a');if(_0x5e38c1[_0x15fd4a(0x1a9)]<=0x32)return _0x69f0e;const _0xc9d4dd=[];return _0xc9d4dd['push'](..._0x5e38c1[_0x15fd4a(0x1a6)](0x0,0x14)),_0xc9d4dd['push']('\x0a...\x20['+(_0x5e38c1[_0x15fd4a(0x1a9)]-0x28)+_0x15fd4a(0x1a4)),_0xc9d4dd[_0x15fd4a(0x1ae)](..._0x5e38c1[_0x15fd4a(0x1a6)](-0x14)),_0xc9d4dd[_0x15fd4a(0x1ae)]('\x0a('+_0x5e38c1['length']+'\x20log\x20lines\x20total)'),_0xc9d4dd[_0x15fd4a(0x1c0)]('\x0a');}function filterKubectl(_0x21f5a4,_0x19dd2e){const _0x1091a0=a0_0x1de0f4,_0x56e54f=_0x21f5a4[_0x1091a0(0x1b4)]('\x0a')[_0x1091a0(0x1b6)](_0x41fbf6=>_0x41fbf6['trim']()[_0x1091a0(0x1a9)]>0x0);if(_0x56e54f[_0x1091a0(0x1a9)]===0x0)return _0x1091a0(0x1a3);if(_0x56e54f['length']<=0x14)return _0x21f5a4['trim']();if(_0x19dd2e===_0x1091a0(0x1aa)){const _0x2b0182=_0x56e54f[0x0],_0x5bca6f=_0x56e54f[_0x1091a0(0x1a6)](0x1),_0x42f09e=[_0x5bca6f['length']+'\x20resources\x20found','',_0x2b0182];return _0x5bca6f[_0x1091a0(0x1a9)]<=0x1e?_0x42f09e['push'](..._0x5bca6f):(_0x42f09e[_0x1091a0(0x1ae)](..._0x5bca6f[_0x1091a0(0x1a6)](0x0,0x19)),_0x42f09e[_0x1091a0(0x1ae)](_0x1091a0(0x195)+(_0x5bca6f[_0x1091a0(0x1a9)]-0x19)+_0x1091a0(0x1b8))),_0x42f09e['join']('\x0a');}if(_0x19dd2e===_0x1091a0(0x1b0)){const _0x213252=[];let _0x15cd67=![],_0x3e7835=0x0;for(const _0x1f598b of _0x56e54f){if(_0x1f598b[_0x1091a0(0x1b2)](_0x1091a0(0x1b3))){_0x15cd67=!![],_0x213252[_0x1091a0(0x1ae)](_0x1f598b);continue;}if(_0x15cd67){_0x3e7835++;if(_0x3e7835<=0x5)_0x213252[_0x1091a0(0x1ae)](_0x1f598b);}else _0x213252['push'](_0x1f598b);}return _0x3e7835>0x5&&_0x213252['push'](_0x1091a0(0x1a7)+(_0x3e7835-0x5)+_0x1091a0(0x19e)),_0x213252[_0x1091a0(0x1c0)]('\x0a');}if(_0x19dd2e==='logs')return filterDockerLogs(_0x21f5a4);const _0x5aae84=_0x56e54f[_0x1091a0(0x1a6)](0x0,0x1e);return _0x56e54f[_0x1091a0(0x1a9)]>0x1e&&_0x5aae84[_0x1091a0(0x1ae)]('...\x20+'+(_0x56e54f['length']-0x1e)+_0x1091a0(0x194)),_0x5aae84[_0x1091a0(0x1c0)]('\x0a');}function filterRuff(_0x56da77){const _0x499763=a0_0x1de0f4,_0x4bc073=_0x56da77['split']('\x0a')[_0x499763(0x1b6)](_0x2e8471=>_0x2e8471[_0x499763(0x1a5)]()['length']>0x0);if(_0x4bc073[_0x499763(0x1a9)]===0x0)return _0x499763(0x1ac);if(_0x56da77[_0x499763(0x1a2)](_0x499763(0x197))||_0x56da77['includes'](_0x499763(0x18e)))return _0x499763(0x1b9);const _0x6147a7=_0x56da77[_0x499763(0x1ad)](/Found (\d+) error/),_0x30396e=_0x6147a7?parseInt(_0x6147a7[0x1]):_0x4bc073[_0x499763(0x1a9)],_0x1e1b29={},_0x45aa48=[];for(const _0x369fe8 of _0x4bc073){const _0xfeaaf1=_0x369fe8[_0x499763(0x1ad)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0xfeaaf1){const _0x442a78=_0xfeaaf1[0x1],_0x5dac49=_0x442a78[_0x499763(0x1b4)](':')[0x0];if(!_0x1e1b29[_0x5dac49])_0x1e1b29[_0x5dac49]=[];_0x1e1b29[_0x5dac49][_0x499763(0x1ae)](_0x369fe8);}else _0x45aa48[_0x499763(0x1ae)](_0x369fe8);}const _0x108999=Object['keys'](_0x1e1b29);if(_0x108999[_0x499763(0x1a9)]===0x0){if(_0x4bc073[_0x499763(0x1a9)]<=0x14)return _0x56da77['trim']();return _0x4bc073[_0x499763(0x1a6)](0x0,0xf)[_0x499763(0x1c0)]('\x0a')+('\x0a...\x20+'+(_0x4bc073['length']-0xf)+_0x499763(0x190));}const _0x2b5a1d=['Ruff:\x20'+_0x30396e+_0x499763(0x1bc)+_0x108999[_0x499763(0x1a9)]+_0x499763(0x18d)];_0x2b5a1d[_0x499763(0x1ae)]('');const _0x57f257=0xa;for(const _0x300542 of _0x108999[_0x499763(0x1a6)](0x0,_0x57f257)){const _0x289c01=_0x1e1b29[_0x300542];if(_0x289c01[_0x499763(0x1a9)]<=0x3){for(const _0x29a389 of _0x289c01)_0x2b5a1d['push']('\x20\x20'+_0x29a389);}else _0x2b5a1d[_0x499763(0x1ae)]('\x20\x20'+_0x289c01[0x0]),_0x2b5a1d['push'](_0x499763(0x19f)+_0x289c01['length']+'\x20issues\x20in\x20'+_0x300542+')');}return _0x108999['length']>_0x57f257&&_0x2b5a1d[_0x499763(0x1ae)](_0x499763(0x1a7)+(_0x108999[_0x499763(0x1a9)]-_0x57f257)+_0x499763(0x199)),_0x2b5a1d[_0x499763(0x1c0)]('\x0a');}
1
+ 'use strict';const a0_0x521e2a=a0_0x1895;function a0_0x1a63(){const _0x1c2250=['238145qKbyuM','\x20more\x20files','\x20more\x20lines','Found\x200\x20error','160tpSYbl','filterDockerLogs','10yasgdw','Containers:\x20','62cTrwEE','filterKubectl','slice','\x20more\x20events','11442ZUXQbd','Docker\x20images:\x20','36QTjcRk','No\x20containers\x20running','10713156OnJqWP','split','Ruff:\x20all\x20checks\x20passed','\x20files','\x20total','\x20issues\x20in\x20','__esModule','push','22QrNKdT','615104SGXoZf','No\x20images\x20found','No\x20resources\x20found','Events:','All\x20checks\x20passed','\x20more\x20resources','match','filter','\x20log\x20lines\x20total)','includes','substring','\x20more','join','trim','5291220GMDRXf','startsWith','...\x20+','keys','Ruff:\x20no\x20issues\x20found','\x20\x20...\x20+','\x0a...\x20[','length','\x20resources\x20found','89937kaRpJu','\x20\x20...\x20(','599462dYZYfZ','filterRuff'];a0_0x1a63=function(){return _0x1c2250;};return a0_0x1a63();}function a0_0x1895(_0x5ad8ec,_0x700877){_0x5ad8ec=_0x5ad8ec-0xe4;const _0x1a63cc=a0_0x1a63();let _0x18956c=_0x1a63cc[_0x5ad8ec];return _0x18956c;}(function(_0x1f93f6,_0x52bfbe){const _0x536667=a0_0x1895,_0x357626=_0x1f93f6();while(!![]){try{const _0x5b9650=parseInt(_0x536667(0xef))/0x1+parseInt(_0x536667(0xf9))/0x2*(-parseInt(_0x536667(0xfd))/0x3)+-parseInt(_0x536667(0xff))/0x4*(parseInt(_0x536667(0xf1))/0x5)+parseInt(_0x536667(0xe4))/0x6+-parseInt(_0x536667(0x10a))/0x7*(parseInt(_0x536667(0xf5))/0x8)+parseInt(_0x536667(0xed))/0x9*(-parseInt(_0x536667(0xf7))/0xa)+parseInt(_0x536667(0x109))/0xb*(parseInt(_0x536667(0x101))/0xc);if(_0x5b9650===_0x52bfbe)break;else _0x357626['push'](_0x357626['shift']());}catch(_0x19812b){_0x357626['push'](_0x357626['shift']());}}}(a0_0x1a63,0xe88d2));Object['defineProperty'](exports,a0_0x521e2a(0x107),{'value':!![]}),exports['filterDockerPs']=filterDockerPs,exports['filterDockerImages']=filterDockerImages,exports[a0_0x521e2a(0xf6)]=filterDockerLogs,exports[a0_0x521e2a(0xfa)]=filterKubectl,exports[a0_0x521e2a(0xf0)]=filterRuff;function filterDockerPs(_0x46f522){const _0x4068c4=a0_0x521e2a,_0x2d4a64=_0x46f522['split']('\x0a')[_0x4068c4(0x111)](_0x51a315=>_0x51a315[_0x4068c4(0x117)]()[_0x4068c4(0xeb)]>0x0);if(_0x2d4a64[_0x4068c4(0xeb)]===0x0)return _0x4068c4(0x100);if(_0x2d4a64['length']<=0xa)return _0x46f522['trim']();const _0x5b1b9b=_0x2d4a64[0x0],_0x4a658e=_0x2d4a64[_0x4068c4(0xfb)](0x1),_0x5f3fbf=[];_0x5f3fbf['push'](_0x4068c4(0xf8)+_0x4a658e[_0x4068c4(0xeb)]+_0x4068c4(0x105)),_0x5f3fbf[_0x4068c4(0x108)]('');for(const _0x4a176e of _0x4a658e){const _0x599751=_0x4a176e[_0x4068c4(0x102)](/\s{2,}/);if(_0x599751['length']>=0x5){const _0x437c23=_0x599751[0x0][_0x4068c4(0x114)](0x0,0xc),_0x4eda78=_0x599751[0x1],_0xb9004a=_0x599751[_0x599751[_0x4068c4(0xeb)]-0x2]||'',_0x2d4885=_0x599751[_0x599751['length']-0x1]||'';_0x5f3fbf[_0x4068c4(0x108)]('\x20\x20'+_0x437c23+'\x20\x20'+_0x4eda78+'\x20\x20'+_0xb9004a+'\x20\x20'+_0x2d4885);}else _0x5f3fbf['push']('\x20\x20'+_0x4a176e[_0x4068c4(0x117)]());}return _0x5f3fbf[_0x4068c4(0x116)]('\x0a');}function filterDockerImages(_0x2c9e59){const _0x431604=a0_0x521e2a,_0x19bd76=_0x2c9e59[_0x431604(0x102)]('\x0a')[_0x431604(0x111)](_0x6753bc=>_0x6753bc[_0x431604(0x117)]()['length']>0x0);if(_0x19bd76[_0x431604(0xeb)]<=0x1)return _0x431604(0x10b);if(_0x19bd76[_0x431604(0xeb)]<=0xf)return _0x2c9e59['trim']();const _0x33a80d=_0x19bd76[_0x431604(0xfb)](0x1),_0x1af808=[_0x431604(0xfe)+_0x33a80d[_0x431604(0xeb)]+_0x431604(0x105)];_0x1af808[_0x431604(0x108)]('');const _0x2eebd6=_0x33a80d['slice'](0x0,0x14);for(const _0x123963 of _0x2eebd6){const _0x1a88fe=_0x123963[_0x431604(0x102)](/\s{2,}/);if(_0x1a88fe[_0x431604(0xeb)]>=0x3){const _0x381462=_0x1a88fe[0x0],_0x170165=_0x1a88fe[0x1],_0x36ffa0=_0x1a88fe[_0x1a88fe['length']-0x1]||'';_0x1af808[_0x431604(0x108)]('\x20\x20'+_0x381462+':'+_0x170165+'\x20\x20'+_0x36ffa0);}else _0x1af808['push']('\x20\x20'+_0x123963['trim']());}return _0x33a80d['length']>0x14&&_0x1af808[_0x431604(0x108)](_0x431604(0xe9)+(_0x33a80d[_0x431604(0xeb)]-0x14)+'\x20more\x20images'),_0x1af808['join']('\x0a');}function filterDockerLogs(_0x4e8ead){const _0x30b1c1=a0_0x521e2a,_0x550d8c=_0x4e8ead[_0x30b1c1(0x102)]('\x0a');if(_0x550d8c['length']<=0x32)return _0x4e8ead;const _0x1aaedd=[];return _0x1aaedd[_0x30b1c1(0x108)](..._0x550d8c[_0x30b1c1(0xfb)](0x0,0x14)),_0x1aaedd[_0x30b1c1(0x108)](_0x30b1c1(0xea)+(_0x550d8c[_0x30b1c1(0xeb)]-0x28)+'\x20lines\x20truncated]\x20...\x0a'),_0x1aaedd['push'](..._0x550d8c[_0x30b1c1(0xfb)](-0x14)),_0x1aaedd[_0x30b1c1(0x108)]('\x0a('+_0x550d8c[_0x30b1c1(0xeb)]+_0x30b1c1(0x112)),_0x1aaedd[_0x30b1c1(0x116)]('\x0a');}function filterKubectl(_0x3ac682,_0x1fb820){const _0x202dfc=a0_0x521e2a,_0x385875=_0x3ac682[_0x202dfc(0x102)]('\x0a')[_0x202dfc(0x111)](_0x2a3227=>_0x2a3227[_0x202dfc(0x117)]()[_0x202dfc(0xeb)]>0x0);if(_0x385875[_0x202dfc(0xeb)]===0x0)return _0x202dfc(0x10c);if(_0x385875[_0x202dfc(0xeb)]<=0x14)return _0x3ac682[_0x202dfc(0x117)]();if(_0x1fb820==='get'){const _0x45dec5=_0x385875[0x0],_0xf4f99b=_0x385875[_0x202dfc(0xfb)](0x1),_0x1d129b=[_0xf4f99b[_0x202dfc(0xeb)]+_0x202dfc(0xec),'',_0x45dec5];return _0xf4f99b['length']<=0x1e?_0x1d129b[_0x202dfc(0x108)](..._0xf4f99b):(_0x1d129b[_0x202dfc(0x108)](..._0xf4f99b[_0x202dfc(0xfb)](0x0,0x19)),_0x1d129b[_0x202dfc(0x108)](_0x202dfc(0xe6)+(_0xf4f99b[_0x202dfc(0xeb)]-0x19)+_0x202dfc(0x10f))),_0x1d129b[_0x202dfc(0x116)]('\x0a');}if(_0x1fb820==='describe'){const _0x8b8d08=[];let _0x11fa9f=![],_0x3b6e60=0x0;for(const _0x3dae66 of _0x385875){if(_0x3dae66[_0x202dfc(0xe5)](_0x202dfc(0x10d))){_0x11fa9f=!![],_0x8b8d08[_0x202dfc(0x108)](_0x3dae66);continue;}if(_0x11fa9f){_0x3b6e60++;if(_0x3b6e60<=0x5)_0x8b8d08[_0x202dfc(0x108)](_0x3dae66);}else _0x8b8d08['push'](_0x3dae66);}return _0x3b6e60>0x5&&_0x8b8d08[_0x202dfc(0x108)](_0x202dfc(0xe9)+(_0x3b6e60-0x5)+_0x202dfc(0xfc)),_0x8b8d08[_0x202dfc(0x116)]('\x0a');}if(_0x1fb820==='logs')return filterDockerLogs(_0x3ac682);const _0x1c03b5=_0x385875[_0x202dfc(0xfb)](0x0,0x1e);return _0x385875[_0x202dfc(0xeb)]>0x1e&&_0x1c03b5[_0x202dfc(0x108)](_0x202dfc(0xe6)+(_0x385875['length']-0x1e)+_0x202dfc(0xf3)),_0x1c03b5[_0x202dfc(0x116)]('\x0a');}function filterRuff(_0x4ab4f9){const _0x4ff76f=a0_0x521e2a,_0x15866a=_0x4ab4f9[_0x4ff76f(0x102)]('\x0a')[_0x4ff76f(0x111)](_0x384b62=>_0x384b62[_0x4ff76f(0x117)]()['length']>0x0);if(_0x15866a[_0x4ff76f(0xeb)]===0x0)return _0x4ff76f(0xe8);if(_0x4ab4f9[_0x4ff76f(0x113)](_0x4ff76f(0x10e))||_0x4ab4f9[_0x4ff76f(0x113)](_0x4ff76f(0xf4)))return _0x4ff76f(0x103);const _0x52049e=_0x4ab4f9[_0x4ff76f(0x110)](/Found (\d+) error/),_0x5360d4=_0x52049e?parseInt(_0x52049e[0x1]):_0x15866a['length'],_0xf0a3c8={},_0x2a825b=[];for(const _0x1fe530 of _0x15866a){const _0x2f4a27=_0x1fe530[_0x4ff76f(0x110)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x2f4a27){const _0x58a114=_0x2f4a27[0x1],_0x4efbbe=_0x58a114[_0x4ff76f(0x102)](':')[0x0];if(!_0xf0a3c8[_0x4efbbe])_0xf0a3c8[_0x4efbbe]=[];_0xf0a3c8[_0x4efbbe]['push'](_0x1fe530);}else _0x2a825b[_0x4ff76f(0x108)](_0x1fe530);}const _0x49d697=Object[_0x4ff76f(0xe7)](_0xf0a3c8);if(_0x49d697[_0x4ff76f(0xeb)]===0x0){if(_0x15866a[_0x4ff76f(0xeb)]<=0x14)return _0x4ab4f9[_0x4ff76f(0x117)]();return _0x15866a[_0x4ff76f(0xfb)](0x0,0xf)[_0x4ff76f(0x116)]('\x0a')+('\x0a...\x20+'+(_0x15866a[_0x4ff76f(0xeb)]-0xf)+_0x4ff76f(0x115));}const _0x581b23=['Ruff:\x20'+_0x5360d4+_0x4ff76f(0x106)+_0x49d697[_0x4ff76f(0xeb)]+_0x4ff76f(0x104)];_0x581b23[_0x4ff76f(0x108)]('');const _0x581534=0xa;for(const _0x2c8841 of _0x49d697[_0x4ff76f(0xfb)](0x0,_0x581534)){const _0x410e85=_0xf0a3c8[_0x2c8841];if(_0x410e85[_0x4ff76f(0xeb)]<=0x3){for(const _0x20fdfd of _0x410e85)_0x581b23[_0x4ff76f(0x108)]('\x20\x20'+_0x20fdfd);}else _0x581b23[_0x4ff76f(0x108)]('\x20\x20'+_0x410e85[0x0]),_0x581b23['push'](_0x4ff76f(0xee)+_0x410e85['length']+_0x4ff76f(0x106)+_0x2c8841+')');}return _0x49d697[_0x4ff76f(0xeb)]>_0x581534&&_0x581b23['push'](_0x4ff76f(0xe9)+(_0x49d697[_0x4ff76f(0xeb)]-_0x581534)+_0x4ff76f(0xf2)),_0x581b23[_0x4ff76f(0x116)]('\x0a');}