@sleep2agi/agent-network 2.3.0-preview.20 → 2.3.0-preview.21

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.
@@ -1 +1 @@
1
- const a0_0x55cde3=a0_0x589e;(function(_0x34ab43,_0x4d699b){const _0x179371=a0_0x589e,_0x1e9ffb=_0x34ab43();while(!![]){try{const _0x22f423=-parseInt(_0x179371(0x118))/0x1*(parseInt(_0x179371(0x11a))/0x2)+parseInt(_0x179371(0xe6))/0x3+-parseInt(_0x179371(0x122))/0x4+parseInt(_0x179371(0xe5))/0x5*(-parseInt(_0x179371(0xe8))/0x6)+parseInt(_0x179371(0x105))/0x7+-parseInt(_0x179371(0xf6))/0x8*(-parseInt(_0x179371(0x111))/0x9)+-parseInt(_0x179371(0x120))/0xa*(-parseInt(_0x179371(0xf8))/0xb);if(_0x22f423===_0x4d699b)break;else _0x1e9ffb['push'](_0x1e9ffb['shift']());}catch(_0x3042d0){_0x1e9ffb['push'](_0x1e9ffb['shift']());}}}(a0_0x580f,0x1fb82));import{EventEmitter as a0_0x110646}from'events';function a0_0x589e(_0x8845a1,_0x7706fc){_0x8845a1=_0x8845a1-0xd9;const _0x580f6f=a0_0x580f();let _0x589e4e=_0x580f6f[_0x8845a1];return _0x589e4e;}import{hostname as a0_0x516d2b}from'os';class T extends a0_0x110646{[a0_0x55cde3(0xe4)];['alias'];['token'];[a0_0x55cde3(0x11c)];[a0_0x55cde3(0x128)];['heartbeatInterval'];[a0_0x55cde3(0x113)];[a0_0x55cde3(0x112)];[a0_0x55cde3(0xde)];[a0_0x55cde3(0x11f)]=!0x1;constructor(_0x20d196){const _0x97b7f2=a0_0x55cde3;super();if(this[_0x97b7f2(0xe4)]=_0x20d196[_0x97b7f2(0xe4)][_0x97b7f2(0xec)](/\/$/,''),this[_0x97b7f2(0xda)]=_0x20d196['alias'],this[_0x97b7f2(0x12f)]=_0x20d196[_0x97b7f2(0x12f)],this[_0x97b7f2(0x11c)]=_0x20d196[_0x97b7f2(0x11c)]||'sdk',this['resumeId']=_0x97b7f2(0xfb)+_0x20d196[_0x97b7f2(0xda)]+'-'+Date[_0x97b7f2(0x108)]()[_0x97b7f2(0x110)](0x24),this[_0x97b7f2(0xe7)]=_0x20d196['heartbeatInterval']??0x2bf20,this[_0x97b7f2(0x113)]=_0x20d196['reconnectDelay']??0xbb8,_0x20d196[_0x97b7f2(0x10e)]!==!0x1)this[_0x97b7f2(0xff)]();}[a0_0x55cde3(0xea)](_0x4d400b){const _0x2a060a=a0_0x55cde3;console['log']('['+new Date()[_0x2a060a(0x130)]()[_0x2a060a(0x10b)](0x0,0x8)+_0x2a060a(0xdf)+this['alias']+']\x20'+_0x4d400b);}async[a0_0x55cde3(0xf2)](_0x50263e,_0x3d5af2){const _0x2c6380=a0_0x55cde3;let _0x574dd1={'Content-Type':_0x2c6380(0xfc),'Accept':'application/json,\x20text/event-stream'};if(this[_0x2c6380(0x12f)])_0x574dd1[_0x2c6380(0x106)]=_0x2c6380(0x11e)+this[_0x2c6380(0x12f)];let _0x14cd17=await(await fetch(this['url']+'/mcp',{'method':_0x2c6380(0xdb),'headers':_0x574dd1,'body':JSON[_0x2c6380(0x12d)]({'jsonrpc':'2.0','id':Date['now'](),'method':_0x2c6380(0x126),'params':{'name':_0x50263e,'arguments':_0x3d5af2}})}))[_0x2c6380(0x10c)](),_0x58e80b=_0x14cd17[_0x2c6380(0x119)](/data: (.+)/),_0xa3fc2a=_0x58e80b?JSON[_0x2c6380(0x100)](_0x58e80b[0x1]):JSON[_0x2c6380(0x100)](_0x14cd17),_0xb93a77=_0xa3fc2a?.[_0x2c6380(0xd9)]?.[_0x2c6380(0xfd)]?.[0x0]?.[_0x2c6380(0x10c)];return _0xb93a77?JSON['parse'](_0xb93a77):_0xa3fc2a;}async[a0_0x55cde3(0xff)](){const _0x4ccc1b=a0_0x55cde3;if(this['running'])return;this[_0x4ccc1b(0x11f)]=!0x0,await this[_0x4ccc1b(0x116)](_0x4ccc1b(0xdc)),this['log'](_0x4ccc1b(0xe0)),this[_0x4ccc1b(0x112)]=setInterval(()=>{const _0x4c4899=_0x4ccc1b;this[_0x4c4899(0x116)](_0x4c4899(0xdc))[_0x4c4899(0x101)](_0x51f1f8=>this['log'](_0x4c4899(0x12b)+_0x51f1f8['message']));},this['heartbeatInterval']),this['connectSSE']();}async[a0_0x55cde3(0xe3)](){const _0x106350=a0_0x55cde3;if(this[_0x106350(0x11f)]=!0x1,this['sseAbort']?.[_0x106350(0x124)](),this[_0x106350(0x112)])clearInterval(this[_0x106350(0x112)]);await this[_0x106350(0x116)](_0x106350(0xfa))[_0x106350(0x101)](()=>{}),this[_0x106350(0xea)](_0x106350(0xef));}async[a0_0x55cde3(0x114)](_0x15ca60,_0x28fbe6,_0x708890=a0_0x55cde3(0xf0)){const _0x542bed=a0_0x55cde3;return this[_0x542bed(0xf2)](_0x542bed(0xeb),{'alias':_0x15ca60,'task':_0x28fbe6,'priority':_0x708890,'from_session':this[_0x542bed(0xda)]});}async['message'](_0x37aaa4,_0x18879a){const _0x45a738=a0_0x55cde3;return this[_0x45a738(0xf2)](_0x45a738(0xe1),{'alias':_0x37aaa4,'message':_0x18879a,'from_session':this[_0x45a738(0xda)]});}async[a0_0x55cde3(0x11b)](_0x1e9792,_0x30acd6,_0x30e135=a0_0x55cde3(0x121)){const _0x452690=a0_0x55cde3;return this[_0x452690(0xf2)]('send_reply',{'in_reply_to':_0x1e9792,'text':_0x30acd6,'status':_0x30e135});}async[a0_0x55cde3(0x116)](_0x183a43,_0x285b1b){const _0x2f5ce3=a0_0x55cde3;return this[_0x2f5ce3(0xf2)](_0x2f5ce3(0xe9),{'resume_id':this[_0x2f5ce3(0x128)],'alias':this[_0x2f5ce3(0xda)],'status':_0x183a43,'server':a0_0x516d2b(),'hostname':a0_0x516d2b(),'agent':this[_0x2f5ce3(0x11c)],'project_dir':process[_0x2f5ce3(0x109)](),..._0x285b1b});}async[a0_0x55cde3(0xe2)](){const _0x277278=a0_0x55cde3;return this[_0x277278(0xf2)](_0x277278(0x12e),{});}async['broadcast'](_0x310472,_0x4dbcde){const _0x2af210=a0_0x55cde3;return this['call']('broadcast',{'message':_0x310472,'filter_server':_0x4dbcde?.[_0x2af210(0x104)],'filter_status':_0x4dbcde?.['status']});}async['connectSSE'](){const _0x206796=a0_0x55cde3;let _0x18fb45=encodeURIComponent(this['alias']),_0xd86e98=this[_0x206796(0xe4)]+_0x206796(0x107)+_0x18fb45,_0x6fce87=this[_0x206796(0x113)];while(this[_0x206796(0x11f)]){try{this['sseAbort']=new AbortController();let _0x49c727={'Accept':'text/event-stream'};if(this[_0x206796(0x12f)])_0x49c727[_0x206796(0x106)]=_0x206796(0x11e)+this[_0x206796(0x12f)];let _0x9bea0=await fetch(_0xd86e98,{'headers':_0x49c727,'signal':this[_0x206796(0xde)][_0x206796(0xf7)]});if(!_0x9bea0['ok']||!_0x9bea0['body']){this['log'](_0x206796(0xf4)+_0x9bea0[_0x206796(0x116)]),await this['sleep'](_0x6fce87),_0x6fce87=Math[_0x206796(0x12a)](_0x6fce87*1.5,0xea60);continue;}_0x6fce87=this[_0x206796(0x113)];let _0x296aa3=_0x9bea0['body'][_0x206796(0x10f)](),_0x38afe7=new TextDecoder(),_0x5b9cee='';while(this[_0x206796(0x11f)]){let {done:_0x90a0b8,value:_0x504e6d}=await _0x296aa3['read']();if(_0x90a0b8)break;_0x5b9cee+=_0x38afe7['decode'](_0x504e6d,{'stream':!0x0});let _0x461f6a=_0x5b9cee[_0x206796(0x11d)]('\x0a');_0x5b9cee=_0x461f6a[_0x206796(0x125)]()||'';for(let _0x551549 of _0x461f6a){if(!_0x551549[_0x206796(0x102)](_0x206796(0x123)))continue;try{let _0x2bcfd4=JSON[_0x206796(0x100)](_0x551549[_0x206796(0x10b)](0x6));if(_0x2bcfd4[_0x206796(0xee)]===_0x206796(0x10a)){this[_0x206796(0xea)]('SSE\x20connected'),this['emit']('connected');continue;}if(_0x2bcfd4[_0x206796(0xee)]===_0x206796(0xed)||_0x2bcfd4[_0x206796(0xee)]===_0x206796(0xf1)||_0x2bcfd4[_0x206796(0xee)]==='broadcast')await this[_0x206796(0x129)]();}catch{}}}}catch(_0x416da7){if(_0x416da7[_0x206796(0x115)]===_0x206796(0xf9))break;this[_0x206796(0xfe)]('error',_0x416da7),this[_0x206796(0xea)](_0x206796(0x10d)+_0x416da7[_0x206796(0xf3)]);}if(this[_0x206796(0x11f)])this[_0x206796(0xfe)](_0x206796(0xef)),this[_0x206796(0xea)](_0x206796(0x103)+_0x6fce87/0x3e8+_0x206796(0x117)),await this[_0x206796(0x12c)](_0x6fce87),_0x6fce87=Math[_0x206796(0x12a)](_0x6fce87*1.5,0xea60);}}async[a0_0x55cde3(0x129)](){const _0x2f4501=a0_0x55cde3;try{let _0x1519e7=(await this['call'](_0x2f4501(0x127),{'alias':this[_0x2f4501(0xda)],'limit':0xa}))?.['messages']||[];for(let _0x143a67 of _0x1519e7)await this['call'](_0x2f4501(0xf5),{'alias':this[_0x2f4501(0xda)],'message_id':_0x143a67['id']}),this[_0x2f4501(0xea)]('←\x20'+_0x143a67[_0x2f4501(0xdd)]+':\x20'+_0x143a67['content']['slice'](0x0,0x3c)),this[_0x2f4501(0xfe)]('task',_0x143a67),this[_0x2f4501(0xfe)]('message',_0x143a67);}catch(_0x1ab703){this[_0x2f4501(0xea)]('inbox\x20error:\x20'+_0x1ab703[_0x2f4501(0xf3)]);}}['sleep'](_0x191799){return new Promise(_0x509928=>setTimeout(_0x509928,_0x191799));}}var $=T;function a0_0x580f(){const _0x3cd159=['toString','1997019XsCKrI','heartbeatTimer','reconnectDelay','send','name','status','s...','12916ngSRCu','match','12ltcYJm','reply','agent','split','Bearer\x20','running','30WhPICY','completed','999016nKrBZf','data:\x20','abort','pop','tools/call','get_inbox','resumeId','processInbox','min','heartbeat\x20failed:\x20','sleep','stringify','get_all_status','token','toTimeString','result','alias','POST','idle','from_session','sseAbort',']\x20[commhub:','registered','send_message','getAllStatus','disconnect','url','265QDIvPn','495633cDTNhN','heartbeatInterval','10002CRzHdr','report_status','log','send_task','replace','new_task','type','disconnected','normal','new_message','call','message','SSE\x20failed:\x20','ack_inbox','8kiBdUi','signal','340648nUdqUP','AbortError','offline','sdk-','application/json','content','emit','connect','parse','catch','startsWith','SSE\x20reconnecting\x20in\x20','server','458619qXnxOw','Authorization','/events/','now','cwd','connected','slice','text','SSE\x20error:\x20','autoConnect','getReader'];a0_0x580f=function(){return _0x3cd159;};return a0_0x580f();}export{$ as default,T as CommHub};
1
+ const a0_0x1f50c6=a0_0x4ee1;function a0_0x4ee1(_0x2809d3,_0x3799ca){_0x2809d3=_0x2809d3-0x120;const _0x1f8847=a0_0x1f88();let _0x4ee1fb=_0x1f8847[_0x2809d3];return _0x4ee1fb;}(function(_0x167052,_0x5f3ad0){const _0x2664f2=a0_0x4ee1,_0x124bd5=_0x167052();while(!![]){try{const _0x1c3dd2=-parseInt(_0x2664f2(0x126))/0x1+-parseInt(_0x2664f2(0x162))/0x2+parseInt(_0x2664f2(0x124))/0x3+-parseInt(_0x2664f2(0x140))/0x4*(-parseInt(_0x2664f2(0x15a))/0x5)+-parseInt(_0x2664f2(0x165))/0x6+parseInt(_0x2664f2(0x14f))/0x7*(parseInt(_0x2664f2(0x130))/0x8)+parseInt(_0x2664f2(0x159))/0x9*(-parseInt(_0x2664f2(0x143))/0xa);if(_0x1c3dd2===_0x5f3ad0)break;else _0x124bd5['push'](_0x124bd5['shift']());}catch(_0x16d6a2){_0x124bd5['push'](_0x124bd5['shift']());}}}(a0_0x1f88,0xd8c74));import{EventEmitter as a0_0x3a8bbc}from'events';import{hostname as a0_0x331afb}from'os';class T extends a0_0x3a8bbc{['url'];['alias'];[a0_0x1f50c6(0x12e)];[a0_0x1f50c6(0x170)];[a0_0x1f50c6(0x142)];[a0_0x1f50c6(0x129)];[a0_0x1f50c6(0x132)];[a0_0x1f50c6(0x122)];[a0_0x1f50c6(0x123)];['running']=!0x1;constructor(_0x3e04aa){const _0x22b43f=a0_0x1f50c6;super();if(this[_0x22b43f(0x14a)]=_0x3e04aa['url'][_0x22b43f(0x163)](/\/$/,''),this['alias']=_0x3e04aa[_0x22b43f(0x12f)],this[_0x22b43f(0x12e)]=_0x3e04aa['token'],this[_0x22b43f(0x170)]=_0x3e04aa[_0x22b43f(0x170)]||_0x22b43f(0x139),this['resumeId']='sdk-'+_0x3e04aa['alias']+'-'+Date['now']()[_0x22b43f(0x16d)](0x24),this[_0x22b43f(0x129)]=_0x3e04aa['heartbeatInterval']??0x2bf20,this[_0x22b43f(0x132)]=_0x3e04aa[_0x22b43f(0x132)]??0xbb8,_0x3e04aa['autoConnect']!==!0x1)this[_0x22b43f(0x171)]();}[a0_0x1f50c6(0x120)](_0x251ee8){const _0x27f1f2=a0_0x1f50c6;console['log']('['+new Date()[_0x27f1f2(0x14d)]()[_0x27f1f2(0x131)](0x0,0x8)+_0x27f1f2(0x167)+this['alias']+']\x20'+_0x251ee8);}async[a0_0x1f50c6(0x15c)](_0x15d7fa,_0x5053a8){const _0x35ab40=a0_0x1f50c6;let _0x5b7acb={'Content-Type':'application/json','Accept':_0x35ab40(0x156)};if(this[_0x35ab40(0x12e)])_0x5b7acb[_0x35ab40(0x15e)]=_0x35ab40(0x172)+this[_0x35ab40(0x12e)];let _0xe9da6f=await(await fetch(this[_0x35ab40(0x14a)]+_0x35ab40(0x136),{'method':_0x35ab40(0x13d),'headers':_0x5b7acb,'body':JSON['stringify']({'jsonrpc':_0x35ab40(0x121),'id':Date['now'](),'method':_0x35ab40(0x151),'params':{'name':_0x15d7fa,'arguments':_0x5053a8}})}))[_0x35ab40(0x12d)](),_0x5b5403=_0xe9da6f[_0x35ab40(0x13b)](/data: (.+)/),_0x1c12dd=_0x5b5403?JSON['parse'](_0x5b5403[0x1]):JSON[_0x35ab40(0x137)](_0xe9da6f),_0x2e3450=_0x1c12dd?.[_0x35ab40(0x155)]?.['content']?.[0x0]?.[_0x35ab40(0x12d)];return _0x2e3450?JSON[_0x35ab40(0x137)](_0x2e3450):_0x1c12dd;}async[a0_0x1f50c6(0x171)](){const _0x300348=a0_0x1f50c6;if(this['running'])return;this[_0x300348(0x154)]=!0x0,await this[_0x300348(0x161)]('idle'),this[_0x300348(0x120)](_0x300348(0x15f)),this[_0x300348(0x122)]=setInterval(()=>{const _0x3c59c4=_0x300348;this[_0x3c59c4(0x161)](_0x3c59c4(0x12a))[_0x3c59c4(0x14c)](_0xd326dc=>this[_0x3c59c4(0x120)](_0x3c59c4(0x16e)+_0xd326dc['message']));},this[_0x300348(0x129)]),this[_0x300348(0x128)]();}async['disconnect'](){const _0x2a2d8b=a0_0x1f50c6;if(this['running']=!0x1,this[_0x2a2d8b(0x123)]?.[_0x2a2d8b(0x157)](),this['heartbeatTimer'])clearInterval(this[_0x2a2d8b(0x122)]);await this[_0x2a2d8b(0x161)]('offline')[_0x2a2d8b(0x14c)](()=>{}),this['log']('disconnected');}async['send'](_0x48589b,_0x3ddc58,_0x325cde=a0_0x1f50c6(0x150)){const _0xc933=a0_0x1f50c6;return this[_0xc933(0x15c)](_0xc933(0x16c),{'alias':_0x48589b,'task':_0x3ddc58,'priority':_0x325cde,'from_session':this['alias']});}async['message'](_0x250c83,_0x5292dc){const _0x481cab=a0_0x1f50c6;return this['call'](_0x481cab(0x16b),{'alias':_0x250c83,'message':_0x5292dc,'from_session':this[_0x481cab(0x12f)]});}async[a0_0x1f50c6(0x149)](_0x53a517,_0x2f8b4d,_0x5ba494='completed'){const _0x34c163=a0_0x1f50c6;return this[_0x34c163(0x15c)](_0x34c163(0x164),{'in_reply_to':_0x53a517,'text':_0x2f8b4d,'status':_0x5ba494});}async['status'](_0x4fd77c,_0x2e121f){const _0xeabaa6=a0_0x1f50c6;return this[_0xeabaa6(0x15c)](_0xeabaa6(0x138),{'resume_id':this[_0xeabaa6(0x142)],'alias':this[_0xeabaa6(0x12f)],'status':_0x4fd77c,'server':a0_0x331afb(),'hostname':a0_0x331afb(),'agent':this[_0xeabaa6(0x170)],'project_dir':process[_0xeabaa6(0x168)](),..._0x2e121f});}async['getAllStatus'](){const _0x227a65=a0_0x1f50c6;return this[_0x227a65(0x15c)](_0x227a65(0x158),{});}async[a0_0x1f50c6(0x144)](_0x1889d0,_0x3e42bd){const _0x2b53c7=a0_0x1f50c6;return this[_0x2b53c7(0x15c)](_0x2b53c7(0x144),{'message':_0x1889d0,'filter_server':_0x3e42bd?.[_0x2b53c7(0x135)],'filter_status':_0x3e42bd?.['status']});}async[a0_0x1f50c6(0x128)](){const _0x12f622=a0_0x1f50c6;let _0x317d88=encodeURIComponent(this[_0x12f622(0x12f)]),_0x1c71a5=this[_0x12f622(0x14a)]+'/events/'+_0x317d88,_0xcccd39=this[_0x12f622(0x132)];while(this[_0x12f622(0x154)]){try{this[_0x12f622(0x123)]=new AbortController();let _0x7e7e18={'Accept':_0x12f622(0x13a)};if(this[_0x12f622(0x12e)])_0x7e7e18[_0x12f622(0x15e)]=_0x12f622(0x172)+this[_0x12f622(0x12e)];let _0x5d99d8=await fetch(_0x1c71a5,{'headers':_0x7e7e18,'signal':this[_0x12f622(0x123)][_0x12f622(0x152)]});if(!_0x5d99d8['ok']||!_0x5d99d8[_0x12f622(0x16a)]){this[_0x12f622(0x120)]('SSE\x20failed:\x20'+_0x5d99d8[_0x12f622(0x161)]),await this[_0x12f622(0x146)](_0xcccd39),_0xcccd39=Math[_0x12f622(0x145)](_0xcccd39*1.5,0xea60);continue;}_0xcccd39=this[_0x12f622(0x132)];let _0x3c11fb=_0x5d99d8[_0x12f622(0x16a)][_0x12f622(0x13f)](),_0x38dd15=new TextDecoder(),_0x2a53da='';while(this['running']){let {done:_0x1d283f,value:_0x5d447b}=await _0x3c11fb['read']();if(_0x1d283f)break;_0x2a53da+=_0x38dd15[_0x12f622(0x13e)](_0x5d447b,{'stream':!0x0});let _0x4cdf56=_0x2a53da['split']('\x0a');_0x2a53da=_0x4cdf56[_0x12f622(0x15b)]()||'';for(let _0x237e5a of _0x4cdf56){if(!_0x237e5a['startsWith'](_0x12f622(0x133)))continue;try{let _0x6bfb3a=JSON[_0x12f622(0x137)](_0x237e5a[_0x12f622(0x131)](0x6));if(_0x6bfb3a[_0x12f622(0x148)]===_0x12f622(0x134)){this[_0x12f622(0x120)]('SSE\x20connected'),this[_0x12f622(0x125)](_0x12f622(0x134));continue;}if(_0x6bfb3a['type']==='new_task'||_0x6bfb3a['type']===_0x12f622(0x13c)||_0x6bfb3a[_0x12f622(0x148)]===_0x12f622(0x144))await this[_0x12f622(0x147)]();}catch{}}}}catch(_0x471d1b){if(_0x471d1b[_0x12f622(0x14e)]===_0x12f622(0x160))break;this[_0x12f622(0x125)](_0x12f622(0x12b),_0x471d1b),this['log'](_0x12f622(0x12c)+_0x471d1b[_0x12f622(0x14b)]);}if(this['running'])this['emit'](_0x12f622(0x169)),this[_0x12f622(0x120)](_0x12f622(0x141)+_0xcccd39/0x3e8+_0x12f622(0x16f)),await this[_0x12f622(0x146)](_0xcccd39),_0xcccd39=Math['min'](_0xcccd39*1.5,0xea60);}}async['processInbox'](){const _0x39ef4c=a0_0x1f50c6;try{let _0x2dfaf2=(await this[_0x39ef4c(0x15c)](_0x39ef4c(0x127),{'alias':this[_0x39ef4c(0x12f)],'limit':0xa}))?.['messages']||[];for(let _0x27005a of _0x2dfaf2)await this[_0x39ef4c(0x15c)](_0x39ef4c(0x15d),{'alias':this[_0x39ef4c(0x12f)],'message_id':_0x27005a['id']}),this[_0x39ef4c(0x120)]('←\x20'+_0x27005a[_0x39ef4c(0x166)]+':\x20'+_0x27005a[_0x39ef4c(0x153)][_0x39ef4c(0x131)](0x0,0x3c)),this[_0x39ef4c(0x125)]('task',_0x27005a),this[_0x39ef4c(0x125)](_0x39ef4c(0x14b),_0x27005a);}catch(_0x9f5f99){this[_0x39ef4c(0x120)]('inbox\x20error:\x20'+_0x9f5f99[_0x39ef4c(0x14b)]);}}['sleep'](_0xcb1bd3){return new Promise(_0x301af2=>setTimeout(_0x301af2,_0xcb1bd3));}}var $=T;export{$ as default,T as CommHub};function a0_0x1f88(){const _0x255ea8=['idle','error','SSE\x20error:\x20','text','token','alias','520280IgPZKY','slice','reconnectDelay','data:\x20','connected','server','/mcp','parse','report_status','sdk','text/event-stream','match','new_message','POST','decode','getReader','28uWeIAD','SSE\x20reconnecting\x20in\x20','resumeId','2527320noabwo','broadcast','min','sleep','processInbox','type','reply','url','message','catch','toTimeString','name','147vQnzmD','normal','tools/call','signal','content','running','result','application/json,\x20text/event-stream','abort','get_all_status','18OfRXfI','988170xuOMbC','pop','call','ack_inbox','Authorization','registered','AbortError','status','372378QfoHVJ','replace','send_reply','1033560ZwTilC','from_session',']\x20[commhub:','cwd','disconnected','body','send_message','send_task','toString','heartbeat\x20failed:\x20','s...','agent','connect','Bearer\x20','log','2.0','heartbeatTimer','sseAbort','2105607YIIVww','emit','1699205QyjICq','get_inbox','connectSSE','heartbeatInterval'];a0_0x1f88=function(){return _0x255ea8;};return a0_0x1f88();}