trimprompt 1.0.41 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cache-manager.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2d3f6a=a0_0x29e8;(function(_0x3e1712,_0x2cac43){const _0x15e328=a0_0x29e8,_0x57763f=_0x3e1712();while(!![]){try{const _0x4122e7=-parseInt(_0x15e328(0x1cc))/0x1+-parseInt(_0x15e328(0x1d6))/0x2*(-parseInt(_0x15e328(0x1f3))/0x3)+parseInt(_0x15e328(0x1f7))/0x4+-parseInt(_0x15e328(0x1c0))/0x5*(parseInt(_0x15e328(0x1e4))/0x6)+-parseInt(_0x15e328(0x1c5))/0x7*(-parseInt(_0x15e328(0x1de))/0x8)+-parseInt(_0x15e328(0x1e7))/0x9*(parseInt(_0x15e328(0x1e6))/0xa)+-parseInt(_0x15e328(0x1c1))/0xb*(-parseInt(_0x15e328(0x1ce))/0xc);if(_0x4122e7===_0x2cac43)break;else _0x57763f['push'](_0x57763f['shift']());}catch(_0x2b1393){_0x57763f['push'](_0x57763f['shift']());}}}(a0_0x17d9,0x55218));function a0_0x29e8(_0x199a77,_0x32e1d9){_0x199a77=_0x199a77-0x1be;const _0x17d941=a0_0x17d9();let _0x29e8d9=_0x17d941[_0x199a77];return _0x29e8d9;}var __createBinding=this&&this[a0_0x2d3f6a(0x1d8)]||(Object[a0_0x2d3f6a(0x1f9)]?function(_0x5568e3,_0x3306fc,_0x40ca20,_0xfaf47f){const _0x56fc2f=a0_0x2d3f6a;if(_0xfaf47f===undefined)_0xfaf47f=_0x40ca20;var _0x123188=Object[_0x56fc2f(0x1c6)](_0x3306fc,_0x40ca20);(!_0x123188||(_0x56fc2f(0x1da)in _0x123188?!_0x3306fc['__esModule']:_0x123188[_0x56fc2f(0x1ca)]||_0x123188[_0x56fc2f(0x1f1)]))&&(_0x123188={'enumerable':!![],'get':function(){return _0x3306fc[_0x40ca20];}}),Object[_0x56fc2f(0x1c7)](_0x5568e3,_0xfaf47f,_0x123188);}:function(_0x2ade32,_0x21cdca,_0x65892,_0x140002){if(_0x140002===undefined)_0x140002=_0x65892;_0x2ade32[_0x140002]=_0x21cdca[_0x65892];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x2d3f6a(0x1f9)]?function(_0x520325,_0x2b7753){Object['defineProperty'](_0x520325,'default',{'enumerable':!![],'value':_0x2b7753});}:function(_0x533fd3,_0x1c663d){const _0x1abe07=a0_0x2d3f6a;_0x533fd3[_0x1abe07(0x1ee)]=_0x1c663d;}),__importStar=this&&this[a0_0x2d3f6a(0x1cd)]||(function(){var _0x45799c=function(_0x1f5c55){const _0x5a84ba=a0_0x29e8;return _0x45799c=Object[_0x5a84ba(0x1be)]||function(_0x1980c6){const _0x22c31c=_0x5a84ba;var _0x5b077a=[];for(var _0x3129b5 in _0x1980c6)if(Object[_0x22c31c(0x1c9)][_0x22c31c(0x1f0)]['call'](_0x1980c6,_0x3129b5))_0x5b077a[_0x5b077a[_0x22c31c(0x1d1)]]=_0x3129b5;return _0x5b077a;},_0x45799c(_0x1f5c55);};return function(_0x1dd359){const _0x250720=a0_0x29e8;if(_0x1dd359&&_0x1dd359['__esModule'])return _0x1dd359;var _0x54d958={};if(_0x1dd359!=null){for(var _0x367c61=_0x45799c(_0x1dd359),_0x57c9cc=0x0;_0x57c9cc<_0x367c61[_0x250720(0x1d1)];_0x57c9cc++)if(_0x367c61[_0x57c9cc]!=='default')__createBinding(_0x54d958,_0x1dd359,_0x367c61[_0x57c9cc]);}return __setModuleDefault(_0x54d958,_0x1dd359),_0x54d958;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['saveChunk']=saveChunk,exports[a0_0x2d3f6a(0x1c8)]=retrieveChunk,exports['enforceEvictionPolicy']=enforceEvictionPolicy;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x2d3f6a(0x1e1))),os=__importStar(require('os')),crypto=__importStar(require('crypto')),baseDir=path[a0_0x2d3f6a(0x1eb)](os[a0_0x2d3f6a(0x1d4)](),'.trimprompt'),cacheDir=path['join'](baseDir,'cache'),MAX_CACHE_BYTES=0x1f4*0x400*0x400,TTL_MS=0xe*0x18*0x3c*0x3c*0x3e8;function ensureCacheDir(){const _0x3e8d95=a0_0x2d3f6a;!fs['existsSync'](cacheDir)&&fs[_0x3e8d95(0x1d5)](cacheDir,{'recursive':!![]});}function saveChunk(_0x1d4053,_0x36d7b4,_0x387235,_0x2cd99c){const _0x25a013=a0_0x2d3f6a;ensureCacheDir();const _0x1577c5=crypto[_0x25a013(0x1bf)]('sha256')[_0x25a013(0x1dd)](_0x387235)[_0x25a013(0x1ea)](_0x25a013(0x1cf))[_0x25a013(0x1e8)](0x0,0x8),_0x276898=_0x25a013(0x1d2)+_0x1577c5,_0x3fb8fa=path[_0x25a013(0x1eb)](cacheDir,_0x1d4053);!fs[_0x25a013(0x1cb)](_0x3fb8fa)&&fs['mkdirSync'](_0x3fb8fa,{'recursive':!![]});const _0x3c8613=path[_0x25a013(0x1eb)](_0x3fb8fa,_0x276898+_0x25a013(0x1f6)),_0x4c069b=new Date()[_0x25a013(0x1e3)](),_0x4d0654=Math[_0x25a013(0x1e9)](_0x387235[_0x25a013(0x1d1)]/0x4),_0x3d2944=Math[_0x25a013(0x1e9)](_0x2cd99c[_0x25a013(0x1d1)]/0x4),_0x575d30={'chunk_id':_0x276898,'session_id':_0x1d4053,'agent_key':_0x36d7b4,'raw_tokens':_0x4d0654,'compressed_tokens':_0x3d2944,'created_at':_0x4c069b,'last_accessed_at':_0x4c069b,'summary':_0x2cd99c,'raw_payload':_0x387235};return fs[_0x25a013(0x1f8)](_0x3c8613,JSON[_0x25a013(0x1c3)](_0x575d30,null,0x2),_0x25a013(0x1d7)),enforceEvictionPolicy(),_0x575d30;}function retrieveChunk(_0x3a90e7){const _0x4a79d9=a0_0x2d3f6a;ensureCacheDir();try{const _0x5d7998=fs[_0x4a79d9(0x1c4)](cacheDir);for(const _0x3cf610 of _0x5d7998){const _0x5682d0=path[_0x4a79d9(0x1eb)](cacheDir,_0x3cf610);if(fs['statSync'](_0x5682d0)['isDirectory']()){const _0x4af4f9=path['join'](_0x5682d0,_0x3a90e7+_0x4a79d9(0x1f6));if(fs[_0x4a79d9(0x1cb)](_0x4af4f9)){const _0x2b6ddb=fs[_0x4a79d9(0x1e5)](_0x4af4f9,_0x4a79d9(0x1d7)),_0xb8d40=JSON[_0x4a79d9(0x1ec)](_0x2b6ddb);return _0xb8d40[_0x4a79d9(0x1f5)]=new Date()[_0x4a79d9(0x1e3)](),fs[_0x4a79d9(0x1f8)](_0x4af4f9,JSON[_0x4a79d9(0x1c3)](_0xb8d40,null,0x2),'utf8'),_0xb8d40;}}}}catch{}return null;}function a0_0x17d9(){const _0x3538bf=['isDirectory','hasOwnProperty','configurable','birthtime','924207oAcpzU','getTime','last_accessed_at','.json','225688dzsgxL','writeFileSync','create','getOwnPropertyNames','createHash','340805ljjuTD','38632AMPlSF','created_at','stringify','readdirSync','91315JTmyjo','getOwnPropertyDescriptor','defineProperty','retrieveChunk','prototype','writable','existsSync','101278RLTpwJ','__importStar','1512ayGWgR','hex','sort','length','tp_chk_','endsWith','homedir','mkdirSync','2bkTWqO','utf8','__createBinding','statSync','get','mtime','unlinkSync','update','48vCUntF','now','size','path','push','toISOString','18XAdmOg','readFileSync','20puaaaV','1038672qvqljq','substring','ceil','digest','join','parse','lastAccessed','default'];a0_0x17d9=function(){return _0x3538bf;};return a0_0x17d9();}function enforceEvictionPolicy(){const _0x4e32bf=a0_0x2d3f6a;ensureCacheDir();try{const _0x198333=Date[_0x4e32bf(0x1df)]();let _0x85b6a7=0x0;const _0x28e117=[],_0x227eee=fs[_0x4e32bf(0x1c4)](cacheDir);for(const _0x1fe40b of _0x227eee){const _0x2084bc=path[_0x4e32bf(0x1eb)](cacheDir,_0x1fe40b);if(fs[_0x4e32bf(0x1d9)](_0x2084bc)[_0x4e32bf(0x1ef)]()){const _0x1674ac=fs['readdirSync'](_0x2084bc);for(const _0x509a5c of _0x1674ac){if(_0x509a5c[_0x4e32bf(0x1d3)](_0x4e32bf(0x1f6))){const _0x4a9571=path[_0x4e32bf(0x1eb)](_0x2084bc,_0x509a5c),_0x19f163=fs[_0x4e32bf(0x1d9)](_0x4a9571);try{const _0x561420=JSON[_0x4e32bf(0x1ec)](fs[_0x4e32bf(0x1e5)](_0x4a9571,_0x4e32bf(0x1d7))),_0xe356e4=new Date(_0x561420[_0x4e32bf(0x1c2)]||_0x19f163[_0x4e32bf(0x1f2)])['getTime'](),_0x3d767c=new Date(_0x561420[_0x4e32bf(0x1f5)]||_0x19f163[_0x4e32bf(0x1db)])[_0x4e32bf(0x1f4)]();if(_0x198333-_0xe356e4>TTL_MS){fs[_0x4e32bf(0x1dc)](_0x4a9571);continue;}_0x85b6a7+=_0x19f163[_0x4e32bf(0x1e0)],_0x28e117[_0x4e32bf(0x1e2)]({'path':_0x4a9571,'size':_0x19f163[_0x4e32bf(0x1e0)],'lastAccessed':_0x3d767c,'createdAt':_0xe356e4});}catch{fs['unlinkSync'](_0x4a9571);}}}}}if(_0x85b6a7>MAX_CACHE_BYTES){_0x28e117[_0x4e32bf(0x1d0)]((_0x3684f1,_0x466fea)=>_0x3684f1['lastAccessed']-_0x466fea[_0x4e32bf(0x1ed)]);for(const _0xa694f3 of _0x28e117){if(_0x85b6a7<=MAX_CACHE_BYTES*0.8)break;try{fs[_0x4e32bf(0x1dc)](_0xa694f3[_0x4e32bf(0x1e1)]),_0x85b6a7-=_0xa694f3[_0x4e32bf(0x1e0)];}catch{}}}}catch{}}
1
+ 'use strict';const a0_0x50c8b1=a0_0x3c53;(function(_0x4c1680,_0x5cd107){const _0x540c12=a0_0x3c53,_0x191b98=_0x4c1680();while(!![]){try{const _0x4cf520=-parseInt(_0x540c12(0x103))/0x1+-parseInt(_0x540c12(0xfc))/0x2*(parseInt(_0x540c12(0xea))/0x3)+parseInt(_0x540c12(0x10d))/0x4*(parseInt(_0x540c12(0x104))/0x5)+-parseInt(_0x540c12(0x101))/0x6*(parseInt(_0x540c12(0x10a))/0x7)+parseInt(_0x540c12(0xec))/0x8+parseInt(_0x540c12(0xfe))/0x9*(-parseInt(_0x540c12(0xed))/0xa)+parseInt(_0x540c12(0xd3))/0xb*(parseInt(_0x540c12(0xf9))/0xc);if(_0x4cf520===_0x5cd107)break;else _0x191b98['push'](_0x191b98['shift']());}catch(_0x17d8dc){_0x191b98['push'](_0x191b98['shift']());}}}(a0_0x1cf0,0xdfa67));function a0_0x1cf0(){const _0x4dd6cb=['__createBinding','length','path','unlinkSync','defineProperty','birthtime','readdirSync','crypto','last_accessed_at','readFileSync','writeFileSync','__setModuleDefault','endsWith','created_at','update','__importStar','5227812ypHegQ','parse','61760RrHdEm','10TWjiFu','existsSync','utf8','mkdirSync','createHash','getOwnPropertyDescriptor','size','saveChunk','.json','.trimprompt','configurable','enforceEvictionPolicy','972HeUlUY','call','toISOString','2LqhTWC','create','6068259mfmpTu','push','cache','5586Dfohgs','digest','172565GNtXZj','115NPoTQv','now','writable','getTime','get','retrieveChunk','4949DLwBqg','stringify','tp_chk_','185828mStJuw','join','isDirectory','default','419287RKQdzY','statSync','ceil','getOwnPropertyNames','__esModule','lastAccessed','mtime'];a0_0x1cf0=function(){return _0x4dd6cb;};return a0_0x1cf0();}var __createBinding=this&&this[a0_0x50c8b1(0xda)]||(Object[a0_0x50c8b1(0xfd)]?function(_0x3c5f9a,_0x334ab4,_0xe0a7a0,_0x22c262){const _0x2e20ca=a0_0x50c8b1;if(_0x22c262===undefined)_0x22c262=_0xe0a7a0;var _0x33bfc7=Object[_0x2e20ca(0xf2)](_0x334ab4,_0xe0a7a0);(!_0x33bfc7||(_0x2e20ca(0x108)in _0x33bfc7?!_0x334ab4[_0x2e20ca(0xd7)]:_0x33bfc7[_0x2e20ca(0x106)]||_0x33bfc7[_0x2e20ca(0xf7)]))&&(_0x33bfc7={'enumerable':!![],'get':function(){return _0x334ab4[_0xe0a7a0];}}),Object[_0x2e20ca(0xde)](_0x3c5f9a,_0x22c262,_0x33bfc7);}:function(_0x2ed834,_0x53b0ee,_0x187d31,_0x952c61){if(_0x952c61===undefined)_0x952c61=_0x187d31;_0x2ed834[_0x952c61]=_0x53b0ee[_0x187d31];}),__setModuleDefault=this&&this[a0_0x50c8b1(0xe5)]||(Object[a0_0x50c8b1(0xfd)]?function(_0x4f37eb,_0x594ba5){const _0x1a98cd=a0_0x50c8b1;Object[_0x1a98cd(0xde)](_0x4f37eb,'default',{'enumerable':!![],'value':_0x594ba5});}:function(_0x45ee30,_0x1544b8){_0x45ee30['default']=_0x1544b8;}),__importStar=this&&this[a0_0x50c8b1(0xe9)]||(function(){var _0x104aad=function(_0xc99fba){const _0x5a1465=a0_0x3c53;return _0x104aad=Object[_0x5a1465(0xd6)]||function(_0x3b245e){const _0x36a8a0=_0x5a1465;var _0x11b391=[];for(var _0x1a9449 in _0x3b245e)if(Object['prototype']['hasOwnProperty'][_0x36a8a0(0xfa)](_0x3b245e,_0x1a9449))_0x11b391[_0x11b391['length']]=_0x1a9449;return _0x11b391;},_0x104aad(_0xc99fba);};return function(_0x196bf6){const _0x323a79=a0_0x3c53;if(_0x196bf6&&_0x196bf6[_0x323a79(0xd7)])return _0x196bf6;var _0x1d93b3={};if(_0x196bf6!=null){for(var _0x208358=_0x104aad(_0x196bf6),_0x5e01ab=0x0;_0x5e01ab<_0x208358[_0x323a79(0xdb)];_0x5e01ab++)if(_0x208358[_0x5e01ab]!==_0x323a79(0x110))__createBinding(_0x1d93b3,_0x196bf6,_0x208358[_0x5e01ab]);}return __setModuleDefault(_0x1d93b3,_0x196bf6),_0x1d93b3;};}());function a0_0x3c53(_0x5a022d,_0x228740){_0x5a022d=_0x5a022d-0xd3;const _0x1cf0ae=a0_0x1cf0();let _0x3c531a=_0x1cf0ae[_0x5a022d];return _0x3c531a;}Object[a0_0x50c8b1(0xde)](exports,a0_0x50c8b1(0xd7),{'value':!![]}),exports[a0_0x50c8b1(0xf4)]=saveChunk,exports[a0_0x50c8b1(0x109)]=retrieveChunk,exports[a0_0x50c8b1(0xf8)]=enforceEvictionPolicy;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x50c8b1(0xdc))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x50c8b1(0xe1))),baseDir=path[a0_0x50c8b1(0x10e)](os['homedir'](),a0_0x50c8b1(0xf6)),cacheDir=path['join'](baseDir,a0_0x50c8b1(0x100)),MAX_CACHE_BYTES=0x1f4*0x400*0x400,TTL_MS=0xe*0x18*0x3c*0x3c*0x3e8;function ensureCacheDir(){const _0x221fca=a0_0x50c8b1;!fs['existsSync'](cacheDir)&&fs[_0x221fca(0xf0)](cacheDir,{'recursive':!![]});}function saveChunk(_0x257376,_0x3e3aaa,_0x9ec95e,_0x397e7e){const _0x4d2cb1=a0_0x50c8b1;ensureCacheDir();const _0x7f44a=crypto[_0x4d2cb1(0xf1)]('sha256')[_0x4d2cb1(0xe8)](_0x9ec95e)[_0x4d2cb1(0x102)]('hex')['substring'](0x0,0x8),_0x4e5f5c=_0x4d2cb1(0x10c)+_0x7f44a,_0x44c58f=path[_0x4d2cb1(0x10e)](cacheDir,_0x257376);!fs['existsSync'](_0x44c58f)&&fs[_0x4d2cb1(0xf0)](_0x44c58f,{'recursive':!![]});const _0x3ba160=path['join'](_0x44c58f,_0x4e5f5c+'.json'),_0x474376=new Date()[_0x4d2cb1(0xfb)](),_0x1b04f0=Math[_0x4d2cb1(0xd5)](_0x9ec95e['length']/0x4),_0xfe4bd2=Math[_0x4d2cb1(0xd5)](_0x397e7e[_0x4d2cb1(0xdb)]/0x4),_0x9f847f={'chunk_id':_0x4e5f5c,'session_id':_0x257376,'agent_key':_0x3e3aaa,'raw_tokens':_0x1b04f0,'compressed_tokens':_0xfe4bd2,'created_at':_0x474376,'last_accessed_at':_0x474376,'summary':_0x397e7e,'raw_payload':_0x9ec95e};return fs[_0x4d2cb1(0xe4)](_0x3ba160,JSON[_0x4d2cb1(0x10b)](_0x9f847f,null,0x2),_0x4d2cb1(0xef)),enforceEvictionPolicy(),_0x9f847f;}function retrieveChunk(_0x296df0){const _0x1e75b3=a0_0x50c8b1;ensureCacheDir();try{const _0x537a0d=fs['readdirSync'](cacheDir);for(const _0x41f289 of _0x537a0d){const _0xb38f42=path['join'](cacheDir,_0x41f289);if(fs[_0x1e75b3(0xd4)](_0xb38f42)[_0x1e75b3(0x10f)]()){const _0x5f281f=path['join'](_0xb38f42,_0x296df0+_0x1e75b3(0xf5));if(fs[_0x1e75b3(0xee)](_0x5f281f)){const _0x48fd33=fs[_0x1e75b3(0xe3)](_0x5f281f,'utf8'),_0x1b32e2=JSON[_0x1e75b3(0xeb)](_0x48fd33);return _0x1b32e2[_0x1e75b3(0xe2)]=new Date()[_0x1e75b3(0xfb)](),fs[_0x1e75b3(0xe4)](_0x5f281f,JSON[_0x1e75b3(0x10b)](_0x1b32e2,null,0x2),_0x1e75b3(0xef)),_0x1b32e2;}}}}catch{}return null;}function enforceEvictionPolicy(){const _0x237e94=a0_0x50c8b1;ensureCacheDir();try{const _0x45960c=Date[_0x237e94(0x105)]();let _0x520d1c=0x0;const _0x2e6e89=[],_0xe51135=fs['readdirSync'](cacheDir);for(const _0x22e24f of _0xe51135){const _0x455e7b=path['join'](cacheDir,_0x22e24f);if(fs[_0x237e94(0xd4)](_0x455e7b)[_0x237e94(0x10f)]()){const _0x57d968=fs[_0x237e94(0xe0)](_0x455e7b);for(const _0x1517b6 of _0x57d968){if(_0x1517b6[_0x237e94(0xe6)](_0x237e94(0xf5))){const _0x3b2db6=path[_0x237e94(0x10e)](_0x455e7b,_0x1517b6),_0xf3cc6=fs[_0x237e94(0xd4)](_0x3b2db6);try{const _0x4785b5=JSON[_0x237e94(0xeb)](fs['readFileSync'](_0x3b2db6,_0x237e94(0xef))),_0x5a4f08=new Date(_0x4785b5[_0x237e94(0xe7)]||_0xf3cc6[_0x237e94(0xdf)])[_0x237e94(0x107)](),_0x150ed0=new Date(_0x4785b5[_0x237e94(0xe2)]||_0xf3cc6[_0x237e94(0xd9)])[_0x237e94(0x107)]();if(_0x45960c-_0x5a4f08>TTL_MS){fs[_0x237e94(0xdd)](_0x3b2db6);continue;}_0x520d1c+=_0xf3cc6[_0x237e94(0xf3)],_0x2e6e89[_0x237e94(0xff)]({'path':_0x3b2db6,'size':_0xf3cc6[_0x237e94(0xf3)],'lastAccessed':_0x150ed0,'createdAt':_0x5a4f08});}catch{fs[_0x237e94(0xdd)](_0x3b2db6);}}}}}if(_0x520d1c>MAX_CACHE_BYTES){_0x2e6e89['sort']((_0x13f084,_0x39d7eb)=>_0x13f084[_0x237e94(0xd8)]-_0x39d7eb[_0x237e94(0xd8)]);for(const _0xb733e4 of _0x2e6e89){if(_0x520d1c<=MAX_CACHE_BYTES*0.8)break;try{fs[_0x237e94(0xdd)](_0xb733e4[_0x237e94(0xdc)]),_0x520d1c-=_0xb733e4[_0x237e94(0xf3)];}catch{}}}}catch{}}
package/cache.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x515325=a0_0x1a97;(function(_0x3fcfa8,_0x2e81b9){const _0x4aedfa=a0_0x1a97,_0x1dae94=_0x3fcfa8();while(!![]){try{const _0x179bce=parseInt(_0x4aedfa(0x164))/0x1*(-parseInt(_0x4aedfa(0x180))/0x2)+parseInt(_0x4aedfa(0x18a))/0x3+parseInt(_0x4aedfa(0x160))/0x4+parseInt(_0x4aedfa(0x188))/0x5*(-parseInt(_0x4aedfa(0x190))/0x6)+-parseInt(_0x4aedfa(0x186))/0x7+parseInt(_0x4aedfa(0x15a))/0x8*(parseInt(_0x4aedfa(0x182))/0x9)+parseInt(_0x4aedfa(0x187))/0xa;if(_0x179bce===_0x2e81b9)break;else _0x1dae94['push'](_0x1dae94['shift']());}catch(_0x2739ff){_0x1dae94['push'](_0x1dae94['shift']());}}}(a0_0x1916,0x58b7b));function a0_0x1a97(_0x2bbf93,_0x3d24ca){_0x2bbf93=_0x2bbf93-0x155;const _0x191609=a0_0x1916();let _0x1a971b=_0x191609[_0x2bbf93];return _0x1a971b;}var __createBinding=this&&this[a0_0x515325(0x165)]||(Object[a0_0x515325(0x19f)]?function(_0x5bd60f,_0x34cebc,_0x24c17d,_0x1bbe07){const _0x20103e=a0_0x515325;if(_0x1bbe07===undefined)_0x1bbe07=_0x24c17d;var _0x490dd3=Object[_0x20103e(0x17e)](_0x34cebc,_0x24c17d);(!_0x490dd3||('get'in _0x490dd3?!_0x34cebc[_0x20103e(0x19d)]:_0x490dd3[_0x20103e(0x19a)]||_0x490dd3['configurable']))&&(_0x490dd3={'enumerable':!![],'get':function(){return _0x34cebc[_0x24c17d];}}),Object['defineProperty'](_0x5bd60f,_0x1bbe07,_0x490dd3);}:function(_0x43e6d8,_0x1e78d5,_0x573ae3,_0x126ebc){if(_0x126ebc===undefined)_0x126ebc=_0x573ae3;_0x43e6d8[_0x126ebc]=_0x1e78d5[_0x573ae3];}),__setModuleDefault=this&&this[a0_0x515325(0x18d)]||(Object[a0_0x515325(0x19f)]?function(_0x38f207,_0x3eb1ad){const _0x530b44=a0_0x515325;Object[_0x530b44(0x179)](_0x38f207,'default',{'enumerable':!![],'value':_0x3eb1ad});}:function(_0x175948,_0xc1954b){const _0x2720c0=a0_0x515325;_0x175948[_0x2720c0(0x1a5)]=_0xc1954b;}),__importStar=this&&this['__importStar']||(function(){var _0x49806a=function(_0x2e112f){const _0x19f5de=a0_0x1a97;return _0x49806a=Object[_0x19f5de(0x168)]||function(_0x17c5f1){const _0x463098=_0x19f5de;var _0x345991=[];for(var _0xedc5e1 in _0x17c5f1)if(Object[_0x463098(0x15e)][_0x463098(0x162)][_0x463098(0x177)](_0x17c5f1,_0xedc5e1))_0x345991[_0x345991[_0x463098(0x1a3)]]=_0xedc5e1;return _0x345991;},_0x49806a(_0x2e112f);};return function(_0x1c43bb){const _0x423071=a0_0x1a97;if(_0x1c43bb&&_0x1c43bb[_0x423071(0x19d)])return _0x1c43bb;var _0x41742a={};if(_0x1c43bb!=null){for(var _0x383160=_0x49806a(_0x1c43bb),_0x137a64=0x0;_0x137a64<_0x383160[_0x423071(0x1a3)];_0x137a64++)if(_0x383160[_0x137a64]!==_0x423071(0x1a5))__createBinding(_0x41742a,_0x1c43bb,_0x383160[_0x137a64]);}return __setModuleDefault(_0x41742a,_0x1c43bb),_0x41742a;};}());function a0_0x1916(){const _0x38c9e6=['prototype','cwd','1016848hYwyLh','createHash','hasOwnProperty','git-status','1kCpWBD','__createBinding','docker-ps','utf8','getOwnPropertyNames','round','ruff\x20check','endsWith','cache.json','docker-images','yadm\x20show','\x20ls','readFileSync','\x20lines','hex','crypto','git-show','digest','split','call','startsWith','defineProperty','writeFileSync','now','git-log','match','getOwnPropertyDescriptor','hash','1354844FGcqfE','\x20ls\x20','351QHMVoC','go\x20vet','timestamp','docker','2943339EvsVxg','9171050AewYaf','301540VnSVMx','git\x20show','1670397QUuhmX','parse','mkdirSync','__setModuleDefault','file','existsSync','30yNOzrD','trim','.trimprompt','update','keys','s\x20ago,\x20','join','tree','includes','toLowerCase','writable','\x20lines,\x20','yadm\x20status','__esModule','kubectl\x20get','create','\x20tree','\x20chars','homedir','length','ruff\x20','default','path','go-vet','slice','summary','md5','7120HveCLu','\x20tree\x20','stringify','\x20entries'];a0_0x1916=function(){return _0x38c9e6;};return a0_0x1916();}Object[a0_0x515325(0x179)](exports,a0_0x515325(0x19d),{'value':!![]}),exports['dedup']=dedup;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x515325(0x155))),os=__importStar(require('os')),crypto=__importStar(require(a0_0x515325(0x173))),CACHE_DIR=path[a0_0x515325(0x196)](os[a0_0x515325(0x1a2)](),a0_0x515325(0x192)),CACHE_FILE=path[a0_0x515325(0x196)](CACHE_DIR,a0_0x515325(0x16c)),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(_0x522250){const _0x1792c4=a0_0x515325,_0x1067b4=_0x522250[_0x1792c4(0x191)]()[_0x1792c4(0x199)]();if(_0x1067b4[_0x1792c4(0x17d)](/^(cat|head|tail|read|bat)\s/))return _0x1792c4(0x18e);if(_0x1067b4[_0x1792c4(0x198)]('git\x20status')||_0x1067b4['includes'](_0x1792c4(0x19c)))return'git-status';if(_0x1067b4[_0x1792c4(0x198)]('git\x20log')||_0x1067b4[_0x1792c4(0x198)]('yadm\x20log'))return'git-log';if(_0x1067b4['includes'](_0x1792c4(0x189))||_0x1067b4['includes'](_0x1792c4(0x16e)))return _0x1792c4(0x174);if(_0x1067b4[_0x1792c4(0x17d)](/^(ls|dir)(\s|$)/)||_0x1067b4[_0x1792c4(0x198)](_0x1792c4(0x181))||_0x1067b4[_0x1792c4(0x16b)](_0x1792c4(0x16f)))return'ls';if(_0x1067b4['match'](/^tree(\s|$)/)||_0x1067b4['includes'](_0x1792c4(0x15b))||_0x1067b4[_0x1792c4(0x16b)](_0x1792c4(0x1a0)))return _0x1792c4(0x197);if(_0x1067b4[_0x1792c4(0x17d)](/docker\s+ps/))return _0x1792c4(0x166);if(_0x1067b4[_0x1792c4(0x17d)](/docker\s+images/))return _0x1792c4(0x16d);if(_0x1067b4[_0x1792c4(0x198)](_0x1792c4(0x19e))||_0x1067b4['includes']('kubectl\x20describe'))return'kubectl';if(_0x1067b4[_0x1792c4(0x198)](_0x1792c4(0x16a))||_0x1067b4['includes'](_0x1792c4(0x1a4)))return'ruff';if(_0x1067b4[_0x1792c4(0x198)](_0x1792c4(0x183)))return _0x1792c4(0x156);return'';}function md5(_0x37b97b){const _0x5ac07c=a0_0x515325;return crypto[_0x5ac07c(0x161)](_0x5ac07c(0x159))[_0x5ac07c(0x193)](_0x37b97b)[_0x5ac07c(0x175)](_0x5ac07c(0x172));}function loadStore(){const _0x5c41e9=a0_0x515325;try{if(fs[_0x5c41e9(0x18f)](CACHE_FILE))return JSON[_0x5c41e9(0x18b)](fs[_0x5c41e9(0x170)](CACHE_FILE,'utf8'));}catch{}return{};}function saveStore(_0x26c7f1){const _0x284e93=a0_0x515325;try{if(!fs[_0x284e93(0x18f)](CACHE_DIR))fs[_0x284e93(0x18c)](CACHE_DIR,{'recursive':!![]});const _0x47e5fe=Object[_0x284e93(0x194)](_0x26c7f1);if(_0x47e5fe[_0x284e93(0x1a3)]>MAX_ENTRIES){const _0x111d8c=_0x47e5fe['sort']((_0xfe3690,_0x44887a)=>_0x26c7f1[_0xfe3690][_0x284e93(0x184)]-_0x26c7f1[_0x44887a][_0x284e93(0x184)]);for(const _0x7bb10c of _0x111d8c[_0x284e93(0x157)](0x0,_0x47e5fe[_0x284e93(0x1a3)]-MAX_ENTRIES)){delete _0x26c7f1[_0x7bb10c];}}fs[_0x284e93(0x17a)](CACHE_FILE,JSON[_0x284e93(0x15c)](_0x26c7f1),_0x284e93(0x167));}catch{}}function buildSummary(_0x40d762,_0x1cae21){const _0xf6cf98=a0_0x515325,_0x1864b1=_0x40d762[_0xf6cf98(0x176)]('\x0a')[_0xf6cf98(0x1a3)],_0x2b2791=_0x40d762['length'];if(_0x1cae21===_0xf6cf98(0x18e))return _0x1864b1+_0xf6cf98(0x19b)+_0x2b2791+_0xf6cf98(0x1a1);if(_0x1cae21===_0xf6cf98(0x163))return _0x1864b1+'\x20lines';if(_0x1cae21===_0xf6cf98(0x17c))return _0x1864b1+_0xf6cf98(0x15d);if(_0x1cae21[_0xf6cf98(0x178)](_0xf6cf98(0x185)))return _0x1864b1+_0xf6cf98(0x171);return _0x1864b1+_0xf6cf98(0x19b)+_0x2b2791+_0xf6cf98(0x1a1);}function dedup(_0x2088be,_0x385e0d){const _0x3481b5=a0_0x515325;try{const _0x5489fc=classifyCommand(_0x2088be);if(!_0x5489fc)return null;const _0x10629b=TTL_SECONDS[_0x5489fc];if(!_0x10629b)return null;const _0x3b0819=process[_0x3481b5(0x15f)](),_0x263620=md5(_0x3b0819+'::'+_0x2088be[_0x3481b5(0x191)]()),_0x8b86bf=md5(_0x385e0d),_0x409550=Date[_0x3481b5(0x17b)](),_0x12c9da=loadStore(),_0x3e5dc4=_0x12c9da[_0x263620];if(_0x3e5dc4&&_0x3e5dc4[_0x3481b5(0x17f)]===_0x8b86bf&&_0x409550-_0x3e5dc4['timestamp']<_0x10629b*0x3e8){const _0x4d4a76=Math[_0x3481b5(0x169)]((_0x409550-_0x3e5dc4[_0x3481b5(0x184)])/0x3e8);return'[cached\x20—\x20unchanged\x20since\x20'+_0x4d4a76+_0x3481b5(0x195)+_0x3e5dc4[_0x3481b5(0x158)]+']';}_0x12c9da[_0x263620]={'hash':_0x8b86bf,'summary':buildSummary(_0x385e0d,_0x5489fc),'timestamp':_0x409550,'chars':_0x385e0d[_0x3481b5(0x1a3)]},saveStore(_0x12c9da);}catch{}return null;}
1
+ 'use strict';const a0_0xa1cc=a0_0x544f;function a0_0x544f(_0x388b4f,_0xa0f40a){_0x388b4f=_0x388b4f-0xe1;const _0x35952f=a0_0x3595();let _0x544fa6=_0x35952f[_0x388b4f];return _0x544fa6;}function a0_0x3595(){const _0x469ece=['436DJSASS','ruff\x20','join','docker','\x20tree','writable','digest','1338975ERGzWQ','.trimprompt','now','endsWith','s\x20ago,\x20','593fqnHGG','docker-images','__importStar','git-log','round','split','\x20lines,\x20','includes','length','4215426LXuZgE','yadm\x20log','path','prototype','kubectl\x20describe','1602461xnDBXG','utf8','8WCdvJk','file','md5','git\x20log','slice','writeFileSync','parse','859692flEZfB','ruff\x20check','__createBinding','default','[cached\x20—\x20unchanged\x20since\x20','\x20lines','summary','create','hex','kubectl','dedup','go\x20vet','cache.json','defineProperty','readFileSync','trim','tree','sort','get','update','toLowerCase','stringify','docker-ps','configurable','yadm\x20status','3941828xVSfcE','timestamp','crypto','match','1242144QueLFT','\x20chars','keys','getOwnPropertyNames','\x20entries','git-status','existsSync','__esModule'];a0_0x3595=function(){return _0x469ece;};return a0_0x3595();}(function(_0x56303f,_0x2898aa){const _0x206bef=a0_0x544f,_0x2ae55a=_0x56303f();while(!![]){try{const _0x5b60fc=-parseInt(_0x206bef(0xfe))/0x1*(parseInt(_0x206bef(0xf2))/0x2)+parseInt(_0x206bef(0x115))/0x3+parseInt(_0x206bef(0xe6))/0x4+-parseInt(_0x206bef(0xf9))/0x5+-parseInt(_0x206bef(0x107))/0x6+parseInt(_0x206bef(0x10c))/0x7*(parseInt(_0x206bef(0x10e))/0x8)+parseInt(_0x206bef(0xea))/0x9;if(_0x5b60fc===_0x2898aa)break;else _0x2ae55a['push'](_0x2ae55a['shift']());}catch(_0x6f1570){_0x2ae55a['push'](_0x2ae55a['shift']());}}}(a0_0x3595,0x83ab8));var __createBinding=this&&this[a0_0xa1cc(0x117)]||(Object['create']?function(_0x10ba53,_0x243153,_0x5eebcf,_0x5e92fb){const _0x4cd807=a0_0xa1cc;if(_0x5e92fb===undefined)_0x5e92fb=_0x5eebcf;var _0x429f36=Object['getOwnPropertyDescriptor'](_0x243153,_0x5eebcf);(!_0x429f36||(_0x4cd807(0x127)in _0x429f36?!_0x243153[_0x4cd807(0xf1)]:_0x429f36[_0x4cd807(0xf7)]||_0x429f36[_0x4cd807(0xe4)]))&&(_0x429f36={'enumerable':!![],'get':function(){return _0x243153[_0x5eebcf];}}),Object[_0x4cd807(0x122)](_0x10ba53,_0x5e92fb,_0x429f36);}:function(_0x4525c7,_0x26c068,_0x51e63b,_0x34908e){if(_0x34908e===undefined)_0x34908e=_0x51e63b;_0x4525c7[_0x34908e]=_0x26c068[_0x51e63b];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xa1cc(0x11c)]?function(_0x5dc3b7,_0x3c846f){const _0x3ff225=a0_0xa1cc;Object['defineProperty'](_0x5dc3b7,_0x3ff225(0x118),{'enumerable':!![],'value':_0x3c846f});}:function(_0xb59d76,_0x4058bf){const _0x31eb57=a0_0xa1cc;_0xb59d76[_0x31eb57(0x118)]=_0x4058bf;}),__importStar=this&&this[a0_0xa1cc(0x100)]||(function(){var _0x5247c9=function(_0x5ee189){const _0x28ea26=a0_0x544f;return _0x5247c9=Object[_0x28ea26(0xed)]||function(_0x4737b7){const _0x1eacf5=_0x28ea26;var _0x20e486=[];for(var _0x5abcbf in _0x4737b7)if(Object[_0x1eacf5(0x10a)]['hasOwnProperty']['call'](_0x4737b7,_0x5abcbf))_0x20e486[_0x20e486[_0x1eacf5(0x106)]]=_0x5abcbf;return _0x20e486;},_0x5247c9(_0x5ee189);};return function(_0x362f13){const _0x47534d=a0_0x544f;if(_0x362f13&&_0x362f13['__esModule'])return _0x362f13;var _0x376b80={};if(_0x362f13!=null){for(var _0x68415f=_0x5247c9(_0x362f13),_0x107e17=0x0;_0x107e17<_0x68415f[_0x47534d(0x106)];_0x107e17++)if(_0x68415f[_0x107e17]!=='default')__createBinding(_0x376b80,_0x362f13,_0x68415f[_0x107e17]);}return __setModuleDefault(_0x376b80,_0x362f13),_0x376b80;};}());Object[a0_0xa1cc(0x122)](exports,a0_0xa1cc(0xf1),{'value':!![]}),exports[a0_0xa1cc(0x11f)]=dedup;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xa1cc(0x109))),os=__importStar(require('os')),crypto=__importStar(require(a0_0xa1cc(0xe8))),CACHE_DIR=path[a0_0xa1cc(0xf4)](os['homedir'](),a0_0xa1cc(0xfa)),CACHE_FILE=path[a0_0xa1cc(0xf4)](CACHE_DIR,a0_0xa1cc(0x121)),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(_0x256120){const _0x8fa944=a0_0xa1cc,_0x37100d=_0x256120[_0x8fa944(0x124)]()[_0x8fa944(0xe1)]();if(_0x37100d['match'](/^(cat|head|tail|read|bat)\s/))return _0x8fa944(0x10f);if(_0x37100d['includes']('git\x20status')||_0x37100d[_0x8fa944(0x105)](_0x8fa944(0xe5)))return'git-status';if(_0x37100d[_0x8fa944(0x105)](_0x8fa944(0x111))||_0x37100d[_0x8fa944(0x105)](_0x8fa944(0x108)))return _0x8fa944(0x101);if(_0x37100d[_0x8fa944(0x105)]('git\x20show')||_0x37100d[_0x8fa944(0x105)]('yadm\x20show'))return'git-show';if(_0x37100d[_0x8fa944(0xe9)](/^(ls|dir)(\s|$)/)||_0x37100d[_0x8fa944(0x105)]('\x20ls\x20')||_0x37100d['endsWith']('\x20ls'))return'ls';if(_0x37100d[_0x8fa944(0xe9)](/^tree(\s|$)/)||_0x37100d['includes']('\x20tree\x20')||_0x37100d[_0x8fa944(0xfc)](_0x8fa944(0xf6)))return _0x8fa944(0x125);if(_0x37100d[_0x8fa944(0xe9)](/docker\s+ps/))return _0x8fa944(0xe3);if(_0x37100d[_0x8fa944(0xe9)](/docker\s+images/))return _0x8fa944(0xff);if(_0x37100d[_0x8fa944(0x105)]('kubectl\x20get')||_0x37100d[_0x8fa944(0x105)](_0x8fa944(0x10b)))return _0x8fa944(0x11e);if(_0x37100d['includes'](_0x8fa944(0x116))||_0x37100d[_0x8fa944(0x105)](_0x8fa944(0xf3)))return'ruff';if(_0x37100d['includes'](_0x8fa944(0x120)))return'go-vet';return'';}function md5(_0xf2266){const _0x20c61e=a0_0xa1cc;return crypto['createHash'](_0x20c61e(0x110))[_0x20c61e(0x128)](_0xf2266)[_0x20c61e(0xf8)](_0x20c61e(0x11d));}function loadStore(){const _0xf155c8=a0_0xa1cc;try{if(fs[_0xf155c8(0xf0)](CACHE_FILE))return JSON[_0xf155c8(0x114)](fs[_0xf155c8(0x123)](CACHE_FILE,_0xf155c8(0x10d)));}catch{}return{};}function saveStore(_0x493d68){const _0x8078e8=a0_0xa1cc;try{if(!fs[_0x8078e8(0xf0)](CACHE_DIR))fs['mkdirSync'](CACHE_DIR,{'recursive':!![]});const _0x4eff2c=Object[_0x8078e8(0xec)](_0x493d68);if(_0x4eff2c[_0x8078e8(0x106)]>MAX_ENTRIES){const _0x310aac=_0x4eff2c[_0x8078e8(0x126)]((_0x5d5bc1,_0x2c7351)=>_0x493d68[_0x5d5bc1][_0x8078e8(0xe7)]-_0x493d68[_0x2c7351][_0x8078e8(0xe7)]);for(const _0x5f5af8 of _0x310aac[_0x8078e8(0x112)](0x0,_0x4eff2c[_0x8078e8(0x106)]-MAX_ENTRIES)){delete _0x493d68[_0x5f5af8];}}fs[_0x8078e8(0x113)](CACHE_FILE,JSON[_0x8078e8(0xe2)](_0x493d68),_0x8078e8(0x10d));}catch{}}function buildSummary(_0x53c6e6,_0x2533be){const _0x1d4c4f=a0_0xa1cc,_0x1ad6df=_0x53c6e6[_0x1d4c4f(0x103)]('\x0a')['length'],_0x187070=_0x53c6e6[_0x1d4c4f(0x106)];if(_0x2533be===_0x1d4c4f(0x10f))return _0x1ad6df+_0x1d4c4f(0x104)+_0x187070+'\x20chars';if(_0x2533be===_0x1d4c4f(0xef))return _0x1ad6df+_0x1d4c4f(0x11a);if(_0x2533be==='git-log')return _0x1ad6df+_0x1d4c4f(0xee);if(_0x2533be['startsWith'](_0x1d4c4f(0xf5)))return _0x1ad6df+_0x1d4c4f(0x11a);return _0x1ad6df+_0x1d4c4f(0x104)+_0x187070+_0x1d4c4f(0xeb);}function dedup(_0x5c61dd,_0x119c9b){const _0xbc345d=a0_0xa1cc;try{const _0x3284a1=classifyCommand(_0x5c61dd);if(!_0x3284a1)return null;const _0x20e0b1=TTL_SECONDS[_0x3284a1];if(!_0x20e0b1)return null;const _0x4d2bbb=process['cwd'](),_0xa1a06a=md5(_0x4d2bbb+'::'+_0x5c61dd[_0xbc345d(0x124)]()),_0x519200=md5(_0x119c9b),_0xd350fa=Date[_0xbc345d(0xfb)](),_0x58f7c5=loadStore(),_0x22c1f5=_0x58f7c5[_0xa1a06a];if(_0x22c1f5&&_0x22c1f5['hash']===_0x519200&&_0xd350fa-_0x22c1f5[_0xbc345d(0xe7)]<_0x20e0b1*0x3e8){const _0x596a58=Math[_0xbc345d(0x102)]((_0xd350fa-_0x22c1f5[_0xbc345d(0xe7)])/0x3e8);return _0xbc345d(0x119)+_0x596a58+_0xbc345d(0xfd)+_0x22c1f5[_0xbc345d(0x11b)]+']';}_0x58f7c5[_0xa1a06a]={'hash':_0x519200,'summary':buildSummary(_0x119c9b,_0x3284a1),'timestamp':_0xd350fa,'chars':_0x119c9b[_0xbc345d(0x106)]},saveStore(_0x58f7c5);}catch{}return null;}
package/ccr.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3fb8c4=a0_0x23ff;(function(_0x46e9be,_0x3bc2a1){const _0x187f4d=a0_0x23ff,_0x5685a1=_0x46e9be();while(!![]){try{const _0x1f18f9=-parseInt(_0x187f4d(0x16c))/0x1*(parseInt(_0x187f4d(0x167))/0x2)+-parseInt(_0x187f4d(0x15f))/0x3+parseInt(_0x187f4d(0x166))/0x4+-parseInt(_0x187f4d(0x161))/0x5*(parseInt(_0x187f4d(0x144))/0x6)+-parseInt(_0x187f4d(0x13a))/0x7*(-parseInt(_0x187f4d(0x134))/0x8)+parseInt(_0x187f4d(0x15a))/0x9+-parseInt(_0x187f4d(0x136))/0xa*(-parseInt(_0x187f4d(0x153))/0xb);if(_0x1f18f9===_0x3bc2a1)break;else _0x5685a1['push'](_0x5685a1['shift']());}catch(_0x413fba){_0x5685a1['push'](_0x5685a1['shift']());}}}(a0_0x354f,0xb1f24));function a0_0x354f(){const _0x3b2666=['join','hex','1192452VeoUcv','push','655cTfuzW','//\x20...\x20[collapsed]','includes','.ts','trim','2611776UtLHjw','68ADEaGl','tp_','\x0a...\x20[','mkdirSync','crypto','39927BaEwFZ','.py','from\x20','toLowerCase','.rs','extname','md5','default','prototype',']\x0a\x0a','let','slice','startsWith','length','match','export','skeletonize','writable','const','package','replace','88APoFFm','.\x20To\x20read\x20the\x20full\x20raw\x20content,\x20run\x20the\x20shell\x20command:\x20trim\x20retrieve\x20','1621850MiEByz','\x27\x27\x27','class','get','272111rLBcwH','__importStar','path','pop','__createBinding','type','digest','defineProperty','trimStart','.js','10110MLvycH','split','pub','configurable','__esModule','var','__setModuleDefault','repeat','substring','.txt','\x20lines\x20collapsed\x20to\x20save\x20tokens]\x20...\x0a','.trimprompt','def\x20','.go','#\x20...\x20[collapsed]','22vNHOEr','call','function','class\x20','create','import\x20','.cpp','11697192pzxIwi','.java','.jsx'];a0_0x354f=function(){return _0x3b2666;};return a0_0x354f();}function a0_0x23ff(_0x11dd0e,_0x4b2e94){_0x11dd0e=_0x11dd0e-0x132;const _0x354f5f=a0_0x354f();let _0x23ffda=_0x354f5f[_0x11dd0e];return _0x23ffda;}var __createBinding=this&&this[a0_0x3fb8c4(0x13e)]||(Object[a0_0x3fb8c4(0x157)]?function(_0xec435a,_0xabcbed,_0x9d23ed,_0x403083){const _0xaffb37=a0_0x3fb8c4;if(_0x403083===undefined)_0x403083=_0x9d23ed;var _0x5dc758=Object['getOwnPropertyDescriptor'](_0xabcbed,_0x9d23ed);(!_0x5dc758||(_0xaffb37(0x139)in _0x5dc758?!_0xabcbed[_0xaffb37(0x148)]:_0x5dc758[_0xaffb37(0x17d)]||_0x5dc758[_0xaffb37(0x147)]))&&(_0x5dc758={'enumerable':!![],'get':function(){return _0xabcbed[_0x9d23ed];}}),Object[_0xaffb37(0x141)](_0xec435a,_0x403083,_0x5dc758);}:function(_0x470258,_0x540347,_0x2de499,_0x22cf41){if(_0x22cf41===undefined)_0x22cf41=_0x2de499;_0x470258[_0x22cf41]=_0x540347[_0x2de499];}),__setModuleDefault=this&&this[a0_0x3fb8c4(0x14a)]||(Object[a0_0x3fb8c4(0x157)]?function(_0x4e32c0,_0x32aa32){const _0x52635d=a0_0x3fb8c4;Object[_0x52635d(0x141)](_0x4e32c0,_0x52635d(0x173),{'enumerable':!![],'value':_0x32aa32});}:function(_0x5a9f1f,_0x43d9d2){const _0x28fae1=a0_0x3fb8c4;_0x5a9f1f[_0x28fae1(0x173)]=_0x43d9d2;}),__importStar=this&&this[a0_0x3fb8c4(0x13b)]||(function(){var _0x3c3ed7=function(_0x5f27e3){return _0x3c3ed7=Object['getOwnPropertyNames']||function(_0x523d46){const _0x392cef=a0_0x23ff;var _0x5ba41e=[];for(var _0x3fcb45 in _0x523d46)if(Object[_0x392cef(0x174)]['hasOwnProperty'][_0x392cef(0x154)](_0x523d46,_0x3fcb45))_0x5ba41e[_0x5ba41e[_0x392cef(0x179)]]=_0x3fcb45;return _0x5ba41e;},_0x3c3ed7(_0x5f27e3);};return function(_0x2ac340){const _0x15bbff=a0_0x23ff;if(_0x2ac340&&_0x2ac340[_0x15bbff(0x148)])return _0x2ac340;var _0x5297c3={};if(_0x2ac340!=null){for(var _0x17f1a5=_0x3c3ed7(_0x2ac340),_0x245036=0x0;_0x245036<_0x17f1a5['length'];_0x245036++)if(_0x17f1a5[_0x245036]!=='default')__createBinding(_0x5297c3,_0x2ac340,_0x17f1a5[_0x245036]);}return __setModuleDefault(_0x5297c3,_0x2ac340),_0x5297c3;};}());Object[a0_0x3fb8c4(0x141)](exports,a0_0x3fb8c4(0x148),{'value':!![]}),exports[a0_0x3fb8c4(0x17c)]=skeletonize,exports['runCcr']=runCcr;const crypto=__importStar(require(a0_0x3fb8c4(0x16b))),fs=__importStar(require('fs')),path=__importStar(require(a0_0x3fb8c4(0x13c))),os=__importStar(require('os'));function skeletonize(_0xe2bdf3,_0x44f1de){const _0x10cf99=a0_0x3fb8c4,_0x4d820f=path[_0x10cf99(0x171)](_0x44f1de[_0x10cf99(0x145)]('\x20')[_0x10cf99(0x13d)]()||'')[_0x10cf99(0x16f)](),_0x17e115=_0xe2bdf3[_0x10cf99(0x145)]('\x0a'),_0x534966=[];if(_0x4d820f===_0x10cf99(0x16d)){let _0xdae8b1=![],_0x573846='';for(let _0x1a8cfe=0x0;_0x1a8cfe<_0x17e115[_0x10cf99(0x179)];_0x1a8cfe++){const _0x12c944=_0x17e115[_0x1a8cfe],_0x1e6b62=_0x12c944[_0x10cf99(0x165)](),_0x425fd3=_0x12c944[_0x10cf99(0x179)]-_0x12c944[_0x10cf99(0x142)]()[_0x10cf99(0x179)];if(!_0xdae8b1&&(_0x1e6b62[_0x10cf99(0x178)]('\x22\x22\x22')||_0x1e6b62[_0x10cf99(0x178)](_0x10cf99(0x137)))){_0xdae8b1=!![],_0x573846=_0x1e6b62[_0x10cf99(0x14c)](0x0,0x3),_0x534966[_0x10cf99(0x160)](_0x12c944);_0x1e6b62['endsWith'](_0x573846)&&_0x1e6b62['length']>0x3&&(_0xdae8b1=![]);continue;}if(_0xdae8b1){_0x534966['push'](_0x12c944);_0x1e6b62['endsWith'](_0x573846)&&(_0xdae8b1=![]);continue;}if(_0x1e6b62[_0x10cf99(0x178)](_0x10cf99(0x158))||_0x1e6b62['startsWith'](_0x10cf99(0x16e))||_0x1e6b62[_0x10cf99(0x178)](_0x10cf99(0x156))||_0x1e6b62['startsWith'](_0x10cf99(0x150))||_0x1e6b62[_0x10cf99(0x178)]('@')||_0x1e6b62['startsWith']('#')||_0x1e6b62['length']===0x0)_0x534966[_0x10cf99(0x160)](_0x12c944);else{const _0x33d6da=_0x534966[_0x534966[_0x10cf99(0x179)]-0x1]||'';if(!_0x33d6da[_0x10cf99(0x165)]()['endsWith'](_0x10cf99(0x152))){const _0x4ec54c='\x20'[_0x10cf99(0x14b)](_0x425fd3);_0x534966[_0x10cf99(0x160)](_0x4ec54c+_0x10cf99(0x152));}}}return _0x534966[_0x10cf99(0x15d)]('\x0a');}if([_0x10cf99(0x143),_0x10cf99(0x164),_0x10cf99(0x15c),'.tsx',_0x10cf99(0x151),_0x10cf99(0x170),_0x10cf99(0x15b),'.c',_0x10cf99(0x159),'.h'][_0x10cf99(0x163)](_0x4d820f)){let _0x4c0381=0x0;for(let _0x574a30=0x0;_0x574a30<_0x17e115[_0x10cf99(0x179)];_0x574a30++){const _0x3c9946=_0x17e115[_0x574a30],_0x279065=_0x3c9946[_0x10cf99(0x165)](),_0x2dfc9d=(_0x279065['match'](/\{/g)||[])[_0x10cf99(0x179)],_0x31dbc5=(_0x279065[_0x10cf99(0x17a)](/\}/g)||[])[_0x10cf99(0x179)];if(_0x4c0381===0x0)(_0x279065[_0x10cf99(0x178)]('import')||_0x279065['startsWith'](_0x10cf99(0x17b))||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x17e))||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x176))||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x149))||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x138))||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x155))||_0x279065[_0x10cf99(0x178)]('interface')||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x13f))||_0x279065['startsWith'](_0x10cf99(0x132))||_0x279065[_0x10cf99(0x178)]('fn')||_0x279065[_0x10cf99(0x178)](_0x10cf99(0x146))||_0x279065[_0x10cf99(0x179)]===0x0||_0x279065[_0x10cf99(0x178)]('//')||_0x279065[_0x10cf99(0x178)]('/*')||_0x279065[_0x10cf99(0x178)]('*'))&&_0x534966[_0x10cf99(0x160)](_0x3c9946),_0x2dfc9d>_0x31dbc5&&(_0x4c0381+=_0x2dfc9d-_0x31dbc5);else{const _0x4449b9=_0x4c0381+_0x2dfc9d-_0x31dbc5;if(_0x4449b9<=0x0){const _0x10b981=_0x3c9946[_0x10cf99(0x17a)](/^\s*/)?.[0x0]||'';_0x534966[_0x10cf99(0x160)](_0x10b981+_0x10cf99(0x162)),_0x534966[_0x10cf99(0x160)](_0x3c9946),_0x4c0381=0x0;}else _0x4c0381=_0x4449b9;}}return _0x534966[_0x10cf99(0x15d)]('\x0a');}if(_0x17e115[_0x10cf99(0x179)]<=0x64)return _0xe2bdf3;return[..._0x17e115[_0x10cf99(0x177)](0x0,0x1e),_0x10cf99(0x169)+(_0x17e115[_0x10cf99(0x179)]-0x32)+_0x10cf99(0x14e),..._0x17e115[_0x10cf99(0x177)](-0x14)][_0x10cf99(0x15d)]('\x0a');}function runCcr(_0x5a5c36,_0xc1ced5){const _0x43246d=a0_0x3fb8c4,_0x3bdde0=_0xc1ced5[_0x43246d(0x133)](/\\/g,'/'),_0x2b17b3=_0x43246d(0x168)+crypto['createHash'](_0x43246d(0x172))['update'](_0x5a5c36)[_0x43246d(0x140)](_0x43246d(0x15e))[_0x43246d(0x14c)](0x0,0xa),_0x547d4b=path[_0x43246d(0x15d)](os['homedir'](),_0x43246d(0x14f)),_0x163355=path[_0x43246d(0x15d)](_0x547d4b,'ccr');!fs['existsSync'](_0x163355)&&fs[_0x43246d(0x16a)](_0x163355,{'recursive':!![]});fs['writeFileSync'](path[_0x43246d(0x15d)](_0x163355,_0x2b17b3+_0x43246d(0x14d)),_0x5a5c36,'utf8');const _0x2f98f1=skeletonize(_0x5a5c36,_0x3bdde0);return'[TrimPrompt:\x20CCR\x20Active.\x20Body\x20of\x20functions\x20collapsed\x20to\x20save\x20tokens.\x20Hash:\x20'+_0x2b17b3+_0x43246d(0x135)+_0x2b17b3+_0x43246d(0x175)+_0x2f98f1;}
1
+ 'use strict';const a0_0x12456a=a0_0x5841;function a0_0x890e(){const _0x2b3ba6=['3927730NvEyNO','class','\x22\x22\x22','length','md5','1467HCgamS','pop','__setModuleDefault','150362dvuvqc','defineProperty','trim','function','utf8','endsWith','substring','__importStar','tp_','push','ccr','replace','export','.ts','writeFileSync','.java','match','def\x20','1371684WfadHT','join',']\x0a\x0a','repeat','.trimprompt','update','hasOwnProperty','.txt','16798430lGFGWG','homedir','create','writable','.cpp','runCcr','pub','package','hex','var','[TrimPrompt:\x20CCR\x20Active.\x20Body\x20of\x20functions\x20collapsed\x20to\x20save\x20tokens.\x20Hash:\x20','import','import\x20','57616RSGvEp','slice','split','interface','default','297606BfOXbN','#\x20...\x20[collapsed]','get','11NWTiQx','9snZcHy','startsWith','configurable','path','__esModule','//\x20...\x20[collapsed]','crypto','.go','.\x20To\x20read\x20the\x20full\x20raw\x20content,\x20run\x20the\x20shell\x20command:\x20trim\x20retrieve\x20','call','mkdirSync','__createBinding','\x20lines\x20collapsed\x20to\x20save\x20tokens]\x20...\x0a','extname','from\x20','.py','createHash','prototype','65ljDBIO','existsSync','trimStart','let','7644994QpugXM','.jsx','.rs','.tsx','digest','class\x20'];a0_0x890e=function(){return _0x2b3ba6;};return a0_0x890e();}(function(_0x3994b3,_0x2eb1d6){const _0x1badd1=a0_0x5841,_0x53c99a=_0x3994b3();while(!![]){try{const _0x4cf9e3=-parseInt(_0x1badd1(0x14f))/0x1*(-parseInt(_0x1badd1(0x174))/0x2)+-parseInt(_0x1badd1(0x150))/0x3*(-parseInt(_0x1badd1(0x186))/0x4)+-parseInt(_0x1badd1(0x162))/0x5*(parseInt(_0x1badd1(0x14c))/0x6)+-parseInt(_0x1badd1(0x166))/0x7+-parseInt(_0x1badd1(0x19b))/0x8*(parseInt(_0x1badd1(0x171))/0x9)+parseInt(_0x1badd1(0x16c))/0xa+parseInt(_0x1badd1(0x18e))/0xb;if(_0x4cf9e3===_0x2eb1d6)break;else _0x53c99a['push'](_0x53c99a['shift']());}catch(_0x52a86a){_0x53c99a['push'](_0x53c99a['shift']());}}}(a0_0x890e,0xd3208));function a0_0x5841(_0x10beb3,_0x3423b3){_0x10beb3=_0x10beb3-0x14b;const _0x890ed1=a0_0x890e();let _0x58410c=_0x890ed1[_0x10beb3];return _0x58410c;}var __createBinding=this&&this[a0_0x12456a(0x15b)]||(Object['create']?function(_0xa9c58c,_0x458326,_0x4454f0,_0x48562a){const _0x5e9e30=a0_0x12456a;if(_0x48562a===undefined)_0x48562a=_0x4454f0;var _0x541020=Object['getOwnPropertyDescriptor'](_0x458326,_0x4454f0);(!_0x541020||(_0x5e9e30(0x14e)in _0x541020?!_0x458326[_0x5e9e30(0x154)]:_0x541020[_0x5e9e30(0x191)]||_0x541020[_0x5e9e30(0x152)]))&&(_0x541020={'enumerable':!![],'get':function(){return _0x458326[_0x4454f0];}}),Object[_0x5e9e30(0x175)](_0xa9c58c,_0x48562a,_0x541020);}:function(_0x484dc3,_0x3a737c,_0x430ddc,_0x345c5f){if(_0x345c5f===undefined)_0x345c5f=_0x430ddc;_0x484dc3[_0x345c5f]=_0x3a737c[_0x430ddc];}),__setModuleDefault=this&&this[a0_0x12456a(0x173)]||(Object[a0_0x12456a(0x190)]?function(_0xc48faa,_0xa94d76){const _0x5777d5=a0_0x12456a;Object[_0x5777d5(0x175)](_0xc48faa,_0x5777d5(0x14b),{'enumerable':!![],'value':_0xa94d76});}:function(_0x29ee14,_0x2aed44){const _0x484969=a0_0x12456a;_0x29ee14[_0x484969(0x14b)]=_0x2aed44;}),__importStar=this&&this[a0_0x12456a(0x17b)]||(function(){var _0x1178c5=function(_0x4e3391){return _0x1178c5=Object['getOwnPropertyNames']||function(_0x4fce28){const _0x438921=a0_0x5841;var _0x5a8c86=[];for(var _0x5afd8f in _0x4fce28)if(Object[_0x438921(0x161)][_0x438921(0x18c)][_0x438921(0x159)](_0x4fce28,_0x5afd8f))_0x5a8c86[_0x5a8c86['length']]=_0x5afd8f;return _0x5a8c86;},_0x1178c5(_0x4e3391);};return function(_0x31eac5){const _0x51a3ca=a0_0x5841;if(_0x31eac5&&_0x31eac5[_0x51a3ca(0x154)])return _0x31eac5;var _0x5c7d3d={};if(_0x31eac5!=null){for(var _0x2da2c2=_0x1178c5(_0x31eac5),_0x39fd01=0x0;_0x39fd01<_0x2da2c2[_0x51a3ca(0x16f)];_0x39fd01++)if(_0x2da2c2[_0x39fd01]!==_0x51a3ca(0x14b))__createBinding(_0x5c7d3d,_0x31eac5,_0x2da2c2[_0x39fd01]);}return __setModuleDefault(_0x5c7d3d,_0x31eac5),_0x5c7d3d;};}());Object[a0_0x12456a(0x175)](exports,a0_0x12456a(0x154),{'value':!![]}),exports['skeletonize']=skeletonize,exports[a0_0x12456a(0x193)]=runCcr;const crypto=__importStar(require(a0_0x12456a(0x156))),fs=__importStar(require('fs')),path=__importStar(require(a0_0x12456a(0x153))),os=__importStar(require('os'));function skeletonize(_0x320d14,_0x6d945d){const _0x38ae3d=a0_0x12456a,_0x52471e=path[_0x38ae3d(0x15d)](_0x6d945d['split']('\x20')[_0x38ae3d(0x172)]()||'')['toLowerCase'](),_0x1d544e=_0x320d14[_0x38ae3d(0x19d)]('\x0a'),_0x2390df=[];if(_0x52471e===_0x38ae3d(0x15f)){let _0x579b16=![],_0xc0bad8='';for(let _0x7c6936=0x0;_0x7c6936<_0x1d544e[_0x38ae3d(0x16f)];_0x7c6936++){const _0x1b6afe=_0x1d544e[_0x7c6936],_0x78b86a=_0x1b6afe[_0x38ae3d(0x176)](),_0x1ad75c=_0x1b6afe[_0x38ae3d(0x16f)]-_0x1b6afe[_0x38ae3d(0x164)]()[_0x38ae3d(0x16f)];if(!_0x579b16&&(_0x78b86a['startsWith'](_0x38ae3d(0x16e))||_0x78b86a['startsWith']('\x27\x27\x27'))){_0x579b16=!![],_0xc0bad8=_0x78b86a[_0x38ae3d(0x17a)](0x0,0x3),_0x2390df[_0x38ae3d(0x17d)](_0x1b6afe);_0x78b86a['endsWith'](_0xc0bad8)&&_0x78b86a['length']>0x3&&(_0x579b16=![]);continue;}if(_0x579b16){_0x2390df[_0x38ae3d(0x17d)](_0x1b6afe);_0x78b86a['endsWith'](_0xc0bad8)&&(_0x579b16=![]);continue;}if(_0x78b86a['startsWith'](_0x38ae3d(0x19a))||_0x78b86a['startsWith'](_0x38ae3d(0x15e))||_0x78b86a[_0x38ae3d(0x151)](_0x38ae3d(0x16b))||_0x78b86a[_0x38ae3d(0x151)](_0x38ae3d(0x185))||_0x78b86a[_0x38ae3d(0x151)]('@')||_0x78b86a[_0x38ae3d(0x151)]('#')||_0x78b86a[_0x38ae3d(0x16f)]===0x0)_0x2390df[_0x38ae3d(0x17d)](_0x1b6afe);else{const _0x426a7c=_0x2390df[_0x2390df[_0x38ae3d(0x16f)]-0x1]||'';if(!_0x426a7c['trim']()[_0x38ae3d(0x179)](_0x38ae3d(0x14d))){const _0x35c704='\x20'[_0x38ae3d(0x189)](_0x1ad75c);_0x2390df[_0x38ae3d(0x17d)](_0x35c704+_0x38ae3d(0x14d));}}}return _0x2390df[_0x38ae3d(0x187)]('\x0a');}if(['.js',_0x38ae3d(0x181),_0x38ae3d(0x167),_0x38ae3d(0x169),_0x38ae3d(0x157),_0x38ae3d(0x168),_0x38ae3d(0x183),'.c',_0x38ae3d(0x192),'.h']['includes'](_0x52471e)){let _0x4cbc8a=0x0;for(let _0x46a12c=0x0;_0x46a12c<_0x1d544e[_0x38ae3d(0x16f)];_0x46a12c++){const _0xea07b6=_0x1d544e[_0x46a12c],_0x58126e=_0xea07b6[_0x38ae3d(0x176)](),_0x559542=(_0x58126e[_0x38ae3d(0x184)](/\{/g)||[])['length'],_0x259496=(_0x58126e['match'](/\}/g)||[])[_0x38ae3d(0x16f)];if(_0x4cbc8a===0x0)(_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x199))||_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x180))||_0x58126e[_0x38ae3d(0x151)]('const')||_0x58126e['startsWith'](_0x38ae3d(0x165))||_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x197))||_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x16d))||_0x58126e['startsWith'](_0x38ae3d(0x177))||_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x19e))||_0x58126e[_0x38ae3d(0x151)]('type')||_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x195))||_0x58126e[_0x38ae3d(0x151)]('fn')||_0x58126e[_0x38ae3d(0x151)](_0x38ae3d(0x194))||_0x58126e[_0x38ae3d(0x16f)]===0x0||_0x58126e['startsWith']('//')||_0x58126e[_0x38ae3d(0x151)]('/*')||_0x58126e[_0x38ae3d(0x151)]('*'))&&_0x2390df[_0x38ae3d(0x17d)](_0xea07b6),_0x559542>_0x259496&&(_0x4cbc8a+=_0x559542-_0x259496);else{const _0x34b05f=_0x4cbc8a+_0x559542-_0x259496;if(_0x34b05f<=0x0){const _0x5f2ef0=_0xea07b6['match'](/^\s*/)?.[0x0]||'';_0x2390df[_0x38ae3d(0x17d)](_0x5f2ef0+_0x38ae3d(0x155)),_0x2390df[_0x38ae3d(0x17d)](_0xea07b6),_0x4cbc8a=0x0;}else _0x4cbc8a=_0x34b05f;}}return _0x2390df[_0x38ae3d(0x187)]('\x0a');}if(_0x1d544e[_0x38ae3d(0x16f)]<=0x64)return _0x320d14;return[..._0x1d544e[_0x38ae3d(0x19c)](0x0,0x1e),'\x0a...\x20['+(_0x1d544e['length']-0x32)+_0x38ae3d(0x15c),..._0x1d544e[_0x38ae3d(0x19c)](-0x14)][_0x38ae3d(0x187)]('\x0a');}function runCcr(_0x4da20a,_0x436e7c){const _0x37de90=a0_0x12456a,_0x51ad18=_0x436e7c[_0x37de90(0x17f)](/\\/g,'/'),_0x1c5f6f=_0x37de90(0x17c)+crypto[_0x37de90(0x160)](_0x37de90(0x170))[_0x37de90(0x18b)](_0x4da20a)[_0x37de90(0x16a)](_0x37de90(0x196))[_0x37de90(0x17a)](0x0,0xa),_0x3a3c95=path['join'](os[_0x37de90(0x18f)](),_0x37de90(0x18a)),_0x516079=path[_0x37de90(0x187)](_0x3a3c95,_0x37de90(0x17e));!fs[_0x37de90(0x163)](_0x516079)&&fs[_0x37de90(0x15a)](_0x516079,{'recursive':!![]});fs[_0x37de90(0x182)](path[_0x37de90(0x187)](_0x516079,_0x1c5f6f+_0x37de90(0x18d)),_0x4da20a,_0x37de90(0x178));const _0x22ebee=skeletonize(_0x4da20a,_0x51ad18);return _0x37de90(0x198)+_0x1c5f6f+_0x37de90(0x158)+_0x1c5f6f+_0x37de90(0x188)+_0x22ebee;}