@sleep2agi/agent-network 2.3.0-preview.30 → 2.3.0-preview.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function a0_0x10ba(_0x162cd1,_0x5b48b5){_0x162cd1=_0x162cd1-0x110;const _0x1b967f=a0_0x1b96();let _0x10ba4c=_0x1b967f[_0x162cd1];return _0x10ba4c;}const a0_0x42d0a8=a0_0x10ba;(function(_0x13073e,_0x22ec33){const _0x1a0b32=a0_0x10ba,_0x1b2cfe=_0x13073e();while(!![]){try{const _0x4d7453=parseInt(_0x1a0b32(0x153))/0x1*(parseInt(_0x1a0b32(0x164))/0x2)+-parseInt(_0x1a0b32(0x156))/0x3*(parseInt(_0x1a0b32(0x136))/0x4)+-parseInt(_0x1a0b32(0x15c))/0x5*(parseInt(_0x1a0b32(0x118))/0x6)+-parseInt(_0x1a0b32(0x131))/0x7*(parseInt(_0x1a0b32(0x15f))/0x8)+-parseInt(_0x1a0b32(0x122))/0x9+parseInt(_0x1a0b32(0x140))/0xa+parseInt(_0x1a0b32(0x14e))/0xb*(parseInt(_0x1a0b32(0x112))/0xc);if(_0x4d7453===_0x22ec33)break;else _0x1b2cfe['push'](_0x1b2cfe['shift']());}catch(_0x315eed){_0x1b2cfe['push'](_0x1b2cfe['shift']());}}}(a0_0x1b96,0xabf29));import{EventEmitter as a0_0x336085}from'events';function a0_0x1b96(){const _0x3c4ea6=['error','call','agent','type','sdk','heartbeatInterval','38654tAVqZK','name','message','/mcp','getAllStatus','62569rreYxH','startsWith','pop','22674TGZHtt','getReader','get_all_status','slice','report_status','task','2925985NmcHeT','normal','get_inbox','48mbuQjx','running','from_session',']\x20[commhub:','broadcast','2zpEbpg','SSE\x20error:\x20','idle','connectSSE','/events/','parse','POST','text','5316pNweNr','heartbeatTimer','min','registered','catch','log','6gvUbrH','alias','completed','autoConnect','signal','processInbox','tools/call','connected','offline','new_task','2393136xIsEup','resumeId','server','toTimeString','disconnected','disconnect','reconnectDelay','send_task','sseAbort','now','sleep','split','text/event-stream','SSE\x20reconnecting\x20in\x20','send','650545neTgCO','Bearer\x20','data:\x20','toString','SSE\x20connected','244WDAEHu','application/json,\x20text/event-stream','url','new_message','SSE\x20failed:\x20','emit','result','cwd','token','Authorization','9547750irdpVP','s...','connect','abort','ack_inbox','status','send_reply','2.0'];a0_0x1b96=function(){return _0x3c4ea6;};return a0_0x1b96();}import{hostname as a0_0x31b1e7}from'os';class T extends a0_0x336085{['url'];[a0_0x42d0a8(0x119)];['token'];['agent'];[a0_0x42d0a8(0x123)];[a0_0x42d0a8(0x14d)];[a0_0x42d0a8(0x128)];['heartbeatTimer'];[a0_0x42d0a8(0x12a)];[a0_0x42d0a8(0x160)]=!0x1;constructor(_0x113442){const _0x1a2606=a0_0x42d0a8;super();if(this[_0x1a2606(0x138)]=_0x113442[_0x1a2606(0x138)]['replace'](/\/$/,''),this['alias']=_0x113442[_0x1a2606(0x119)],this[_0x1a2606(0x13e)]=_0x113442['token'],this[_0x1a2606(0x14a)]=_0x113442['agent']||_0x1a2606(0x14c),this[_0x1a2606(0x123)]='sdk-'+_0x113442['alias']+'-'+Date[_0x1a2606(0x12b)]()[_0x1a2606(0x134)](0x24),this[_0x1a2606(0x14d)]=_0x113442[_0x1a2606(0x14d)]??0x2bf20,this[_0x1a2606(0x128)]=_0x113442[_0x1a2606(0x128)]??0xbb8,_0x113442[_0x1a2606(0x11b)]!==!0x1)this[_0x1a2606(0x142)]();}['log'](_0x31190a){const _0x13b5f0=a0_0x42d0a8;console[_0x13b5f0(0x117)]('['+new Date()[_0x13b5f0(0x125)]()[_0x13b5f0(0x159)](0x0,0x8)+_0x13b5f0(0x162)+this['alias']+']\x20'+_0x31190a);}async[a0_0x42d0a8(0x149)](_0x6649bd,_0x2b887c){const _0x3986cc=a0_0x42d0a8;let _0x36bb42={'Content-Type':'application/json','Accept':_0x3986cc(0x137)};if(this[_0x3986cc(0x13e)])_0x36bb42['Authorization']='Bearer\x20'+this['token'];let _0x5e7ba3=await(await fetch(this[_0x3986cc(0x138)]+_0x3986cc(0x151),{'method':_0x3986cc(0x110),'headers':_0x36bb42,'body':JSON['stringify']({'jsonrpc':_0x3986cc(0x147),'id':Date[_0x3986cc(0x12b)](),'method':_0x3986cc(0x11e),'params':{'name':_0x6649bd,'arguments':_0x2b887c}})}))[_0x3986cc(0x111)](),_0x223473=_0x5e7ba3['match'](/data: (.+)/),_0x1077ab=_0x223473?JSON[_0x3986cc(0x169)](_0x223473[0x1]):JSON['parse'](_0x5e7ba3),_0x4ebe38=_0x1077ab?.[_0x3986cc(0x13c)]?.['content']?.[0x0]?.[_0x3986cc(0x111)];return _0x4ebe38?JSON[_0x3986cc(0x169)](_0x4ebe38):_0x1077ab;}async[a0_0x42d0a8(0x142)](){const _0x386288=a0_0x42d0a8;if(this[_0x386288(0x160)])return;this[_0x386288(0x160)]=!0x0,await this[_0x386288(0x145)](_0x386288(0x166)),this['log'](_0x386288(0x115)),this['heartbeatTimer']=setInterval(()=>{const _0x48f991=_0x386288;this[_0x48f991(0x145)](_0x48f991(0x166))[_0x48f991(0x116)](_0x353f7f=>this['log']('heartbeat\x20failed:\x20'+_0x353f7f[_0x48f991(0x150)]));},this[_0x386288(0x14d)]),this[_0x386288(0x167)]();}async[a0_0x42d0a8(0x127)](){const _0x1210e3=a0_0x42d0a8;if(this[_0x1210e3(0x160)]=!0x1,this[_0x1210e3(0x12a)]?.[_0x1210e3(0x143)](),this[_0x1210e3(0x113)])clearInterval(this[_0x1210e3(0x113)]);await this[_0x1210e3(0x145)](_0x1210e3(0x120))[_0x1210e3(0x116)](()=>{}),this[_0x1210e3(0x117)](_0x1210e3(0x126));}async[a0_0x42d0a8(0x130)](_0x588a4c,_0x210d3e,_0x23dd45=a0_0x42d0a8(0x15d)){const _0x2d543c=a0_0x42d0a8;return this[_0x2d543c(0x149)](_0x2d543c(0x129),{'alias':_0x588a4c,'task':_0x210d3e,'priority':_0x23dd45,'from_session':this['alias']});}async['message'](_0x2544cb,_0x7fefb6){const _0x373ef3=a0_0x42d0a8;return this['call']('send_message',{'alias':_0x2544cb,'message':_0x7fefb6,'from_session':this[_0x373ef3(0x119)]});}async['reply'](_0x91fce8,_0x3a7a51,_0xc85abd=a0_0x42d0a8(0x11a)){const _0x4f12dc=a0_0x42d0a8;return this[_0x4f12dc(0x149)](_0x4f12dc(0x146),{'in_reply_to':_0x91fce8,'text':_0x3a7a51,'status':_0xc85abd});}async[a0_0x42d0a8(0x145)](_0x33b60e,_0x40a785){const _0x2895ba=a0_0x42d0a8;return this['call'](_0x2895ba(0x15a),{'resume_id':this[_0x2895ba(0x123)],'alias':this[_0x2895ba(0x119)],'status':_0x33b60e,'server':a0_0x31b1e7(),'hostname':a0_0x31b1e7(),'agent':this['agent'],'project_dir':process[_0x2895ba(0x13d)](),..._0x40a785});}async[a0_0x42d0a8(0x152)](){const _0xb77912=a0_0x42d0a8;return this[_0xb77912(0x149)](_0xb77912(0x158),{});}async[a0_0x42d0a8(0x163)](_0x34a901,_0x45b0b7){const _0x29aa3b=a0_0x42d0a8;return this[_0x29aa3b(0x149)](_0x29aa3b(0x163),{'message':_0x34a901,'filter_server':_0x45b0b7?.[_0x29aa3b(0x124)],'filter_status':_0x45b0b7?.['status']});}async['connectSSE'](){const _0x23552a=a0_0x42d0a8;let _0x40e746=encodeURIComponent(this['alias']),_0x17a3a0=this[_0x23552a(0x138)]+_0x23552a(0x168)+_0x40e746,_0x4b0e79=this[_0x23552a(0x128)];while(this['running']){try{this[_0x23552a(0x12a)]=new AbortController();let _0x6b7920={'Accept':_0x23552a(0x12e)};if(this[_0x23552a(0x13e)])_0x6b7920[_0x23552a(0x13f)]=_0x23552a(0x132)+this[_0x23552a(0x13e)];let _0x4d10e5=await fetch(_0x17a3a0,{'headers':_0x6b7920,'signal':this[_0x23552a(0x12a)][_0x23552a(0x11c)]});if(!_0x4d10e5['ok']||!_0x4d10e5['body']){this[_0x23552a(0x117)](_0x23552a(0x13a)+_0x4d10e5[_0x23552a(0x145)]),await this['sleep'](_0x4b0e79),_0x4b0e79=Math[_0x23552a(0x114)](_0x4b0e79*1.5,0xea60);continue;}_0x4b0e79=this[_0x23552a(0x128)];let _0x49467b=_0x4d10e5['body'][_0x23552a(0x157)](),_0xf0099b=new TextDecoder(),_0x28377e='';while(this[_0x23552a(0x160)]){let {done:_0x3659ed,value:_0x3fff9d}=await _0x49467b['read']();if(_0x3659ed)break;_0x28377e+=_0xf0099b['decode'](_0x3fff9d,{'stream':!0x0});let _0x546cf1=_0x28377e[_0x23552a(0x12d)]('\x0a');_0x28377e=_0x546cf1[_0x23552a(0x155)]()||'';for(let _0x56154c of _0x546cf1){if(!_0x56154c[_0x23552a(0x154)](_0x23552a(0x133)))continue;try{let _0x591038=JSON['parse'](_0x56154c[_0x23552a(0x159)](0x6));if(_0x591038[_0x23552a(0x14b)]===_0x23552a(0x11f)){this[_0x23552a(0x117)](_0x23552a(0x135)),this[_0x23552a(0x13b)](_0x23552a(0x11f));continue;}if(_0x591038[_0x23552a(0x14b)]===_0x23552a(0x121)||_0x591038[_0x23552a(0x14b)]===_0x23552a(0x139)||_0x591038[_0x23552a(0x14b)]===_0x23552a(0x163))await this[_0x23552a(0x11d)]();}catch{}}}}catch(_0x4cdde7){if(_0x4cdde7[_0x23552a(0x14f)]==='AbortError')break;this['emit'](_0x23552a(0x148),_0x4cdde7),this[_0x23552a(0x117)](_0x23552a(0x165)+_0x4cdde7['message']);}if(this[_0x23552a(0x160)])this[_0x23552a(0x13b)](_0x23552a(0x126)),this[_0x23552a(0x117)](_0x23552a(0x12f)+_0x4b0e79/0x3e8+_0x23552a(0x141)),await this[_0x23552a(0x12c)](_0x4b0e79),_0x4b0e79=Math[_0x23552a(0x114)](_0x4b0e79*1.5,0xea60);}}async[a0_0x42d0a8(0x11d)](){const _0x3e41cc=a0_0x42d0a8;try{let _0xb5a9a6=(await this[_0x3e41cc(0x149)](_0x3e41cc(0x15e),{'alias':this['alias'],'limit':0xa}))?.['messages']||[];for(let _0x44d8cc of _0xb5a9a6)await this[_0x3e41cc(0x149)](_0x3e41cc(0x144),{'alias':this[_0x3e41cc(0x119)],'message_id':_0x44d8cc['id']}),this[_0x3e41cc(0x117)]('←\x20'+_0x44d8cc[_0x3e41cc(0x161)]+':\x20'+_0x44d8cc['content']['slice'](0x0,0x3c)),this[_0x3e41cc(0x13b)](_0x3e41cc(0x15b),_0x44d8cc),this[_0x3e41cc(0x13b)](_0x3e41cc(0x150),_0x44d8cc);}catch(_0x1f11a3){this[_0x3e41cc(0x117)]('inbox\x20error:\x20'+_0x1f11a3[_0x3e41cc(0x150)]);}}['sleep'](_0x1f687f){return new Promise(_0x364aa6=>setTimeout(_0x364aa6,_0x1f687f));}}var $=T;export{$ as default,T as CommHub};
1
+ const a0_0x24d132=a0_0x518c;function a0_0x518c(_0x5a7409,_0x34d0d6){_0x5a7409=_0x5a7409-0xeb;const _0x1f19f7=a0_0x1f19();let _0x518cf1=_0x1f19f7[_0x5a7409];return _0x518cf1;}(function(_0xb8d80f,_0x5487d7){const _0x156597=a0_0x518c,_0x531af0=_0xb8d80f();while(!![]){try{const _0x336449=-parseInt(_0x156597(0x10b))/0x1*(-parseInt(_0x156597(0x129))/0x2)+parseInt(_0x156597(0xfe))/0x3*(parseInt(_0x156597(0xfa))/0x4)+parseInt(_0x156597(0x11c))/0x5+-parseInt(_0x156597(0x135))/0x6+-parseInt(_0x156597(0x101))/0x7*(-parseInt(_0x156597(0xfb))/0x8)+-parseInt(_0x156597(0xfc))/0x9+-parseInt(_0x156597(0xf1))/0xa;if(_0x336449===_0x5487d7)break;else _0x531af0['push'](_0x531af0['shift']());}catch(_0x5f1cd8){_0x531af0['push'](_0x531af0['shift']());}}}(a0_0x1f19,0x43b0a));import{EventEmitter as a0_0x3de462}from'events';import{hostname as a0_0x28bce7}from'os';class T extends a0_0x3de462{[a0_0x24d132(0x140)];['alias'];['token'];['agent'];[a0_0x24d132(0x10c)];['heartbeatInterval'];[a0_0x24d132(0x11b)];[a0_0x24d132(0x12a)];[a0_0x24d132(0xf7)];[a0_0x24d132(0x12f)]=!0x1;constructor(_0x2ec6e2){const _0x261a44=a0_0x24d132;super();if(this[_0x261a44(0x140)]=_0x2ec6e2['url'][_0x261a44(0x12c)](/\/$/,''),this[_0x261a44(0x13d)]=_0x2ec6e2[_0x261a44(0x13d)],this['token']=_0x2ec6e2[_0x261a44(0x117)],this[_0x261a44(0x106)]=_0x2ec6e2[_0x261a44(0x106)]||_0x261a44(0x10f),this[_0x261a44(0x10c)]=_0x261a44(0x125)+_0x2ec6e2[_0x261a44(0x13d)]+'-'+Date['now']()[_0x261a44(0x128)](0x24),this[_0x261a44(0x13b)]=_0x2ec6e2[_0x261a44(0x13b)]??0x2bf20,this[_0x261a44(0x11b)]=_0x2ec6e2[_0x261a44(0x11b)]??0xbb8,_0x2ec6e2[_0x261a44(0x11d)]!==!0x1)this[_0x261a44(0x107)]();}[a0_0x24d132(0x132)](_0x5684c2){const _0x6c72be=a0_0x24d132;console['log']('['+new Date()[_0x6c72be(0xec)]()[_0x6c72be(0x109)](0x0,0x8)+_0x6c72be(0xf3)+this['alias']+']\x20'+_0x5684c2);}async[a0_0x24d132(0x133)](_0x474755,_0x37a46a){const _0x474007=a0_0x24d132;let _0x1952e0={'Content-Type':'application/json','Accept':'application/json,\x20text/event-stream'};if(this[_0x474007(0x117)])_0x1952e0[_0x474007(0x12e)]='Bearer\x20'+this[_0x474007(0x117)];let _0xd7a2d1=await(await fetch(this[_0x474007(0x140)]+_0x474007(0x13a),{'method':'POST','headers':_0x1952e0,'body':JSON[_0x474007(0x11f)]({'jsonrpc':'2.0','id':Date[_0x474007(0xf2)](),'method':'tools/call','params':{'name':_0x474755,'arguments':_0x37a46a}})}))[_0x474007(0x13f)](),_0x42c036=_0xd7a2d1[_0x474007(0x143)](/data: (.+)/),_0x4663c5=_0x42c036?JSON[_0x474007(0x141)](_0x42c036[0x1]):JSON['parse'](_0xd7a2d1),_0xdfd9bd=_0x4663c5?.[_0x474007(0x10a)]?.[_0x474007(0xeb)]?.[0x0]?.['text'];return _0xdfd9bd?JSON[_0x474007(0x141)](_0xdfd9bd):_0x4663c5;}async[a0_0x24d132(0x107)](){const _0x1dd6b2=a0_0x24d132;if(this[_0x1dd6b2(0x12f)])return;this[_0x1dd6b2(0x12f)]=!0x0,await this[_0x1dd6b2(0x139)](_0x1dd6b2(0x105)),this['log']('registered'),this['heartbeatTimer']=setInterval(()=>{const _0x4a7b9=_0x1dd6b2;this[_0x4a7b9(0x139)]('idle')[_0x4a7b9(0xed)](_0x5da592=>this['log'](_0x4a7b9(0x12b)+_0x5da592[_0x4a7b9(0xfd)]));},this[_0x1dd6b2(0x13b)]),this[_0x1dd6b2(0xf5)]();}async['disconnect'](){const _0x468fb0=a0_0x24d132;if(this[_0x468fb0(0x12f)]=!0x1,this['sseAbort']?.[_0x468fb0(0x103)](),this[_0x468fb0(0x12a)])clearInterval(this[_0x468fb0(0x12a)]);await this[_0x468fb0(0x139)]('offline')[_0x468fb0(0xed)](()=>{}),this['log']('disconnected');}async['send'](_0x4f85c8,_0xdaad74,_0x1af516='normal'){const _0x862833=a0_0x24d132;return this[_0x862833(0x133)](_0x862833(0x118),{'alias':_0x4f85c8,'task':_0xdaad74,'priority':_0x1af516,'from_session':this[_0x862833(0x13d)]});}async[a0_0x24d132(0xfd)](_0x1b42fc,_0x51121f){const _0x2d45ab=a0_0x24d132;return this[_0x2d45ab(0x133)](_0x2d45ab(0x116),{'alias':_0x1b42fc,'message':_0x51121f,'from_session':this['alias']});}async[a0_0x24d132(0x110)](_0x3eecdc,_0x597b84,_0x29102=a0_0x24d132(0x12d)){const _0x4a1fcd=a0_0x24d132;return this[_0x4a1fcd(0x133)](_0x4a1fcd(0x120),{'in_reply_to':_0x3eecdc,'text':_0x597b84,'status':_0x29102});}async[a0_0x24d132(0x139)](_0x385c4b,_0x10ab68){const _0x53c3cd=a0_0x24d132;return this[_0x53c3cd(0x133)](_0x53c3cd(0x115),{'resume_id':this[_0x53c3cd(0x10c)],'alias':this[_0x53c3cd(0x13d)],'status':_0x385c4b,'server':a0_0x28bce7(),'hostname':a0_0x28bce7(),'agent':this[_0x53c3cd(0x106)],'project_dir':process[_0x53c3cd(0x13e)](),..._0x10ab68});}async[a0_0x24d132(0x100)](){const _0x3918be=a0_0x24d132;return this[_0x3918be(0x133)](_0x3918be(0x111),{});}async[a0_0x24d132(0x122)](_0x3df8f5,_0x52b01a){const _0x39bad7=a0_0x24d132;return this['call'](_0x39bad7(0x122),{'message':_0x3df8f5,'filter_server':_0x52b01a?.[_0x39bad7(0x11e)],'filter_status':_0x52b01a?.[_0x39bad7(0x139)]});}async[a0_0x24d132(0xf5)](){const _0x17c83a=a0_0x24d132;let _0x52d741=encodeURIComponent(this['alias']),_0x3fcc76=this[_0x17c83a(0x140)]+_0x17c83a(0xf6)+_0x52d741,_0x2da2d2=this[_0x17c83a(0x11b)];while(this[_0x17c83a(0x12f)]){try{this[_0x17c83a(0xf7)]=new AbortController();let _0x41bb0f={'Accept':_0x17c83a(0x137)};if(this[_0x17c83a(0x117)])_0x41bb0f[_0x17c83a(0x12e)]=_0x17c83a(0x108)+this['token'];let _0x5d3615=await fetch(_0x3fcc76,{'headers':_0x41bb0f,'signal':this[_0x17c83a(0xf7)]['signal']});if(!_0x5d3615['ok']||!_0x5d3615[_0x17c83a(0xf4)]){this[_0x17c83a(0x132)](_0x17c83a(0x142)+_0x5d3615[_0x17c83a(0x139)]),await this['sleep'](_0x2da2d2),_0x2da2d2=Math[_0x17c83a(0xf8)](_0x2da2d2*1.5,0xea60);continue;}_0x2da2d2=this[_0x17c83a(0x11b)];let _0x27978b=_0x5d3615[_0x17c83a(0xf4)]['getReader'](),_0x5fee5f=new TextDecoder(),_0x2a98a8='';while(this[_0x17c83a(0x12f)]){let {done:_0x3949c9,value:_0xd756da}=await _0x27978b[_0x17c83a(0x138)]();if(_0x3949c9)break;_0x2a98a8+=_0x5fee5f[_0x17c83a(0x124)](_0xd756da,{'stream':!0x0});let _0x40e0f4=_0x2a98a8['split']('\x0a');_0x2a98a8=_0x40e0f4[_0x17c83a(0x114)]()||'';for(let _0x3a729f of _0x40e0f4){if(!_0x3a729f[_0x17c83a(0xee)](_0x17c83a(0x13c)))continue;try{let _0x41d396=JSON[_0x17c83a(0x141)](_0x3a729f['slice'](0x6));if(_0x41d396[_0x17c83a(0x104)]===_0x17c83a(0xf9)){this[_0x17c83a(0x132)](_0x17c83a(0x121)),this[_0x17c83a(0x126)]('connected');continue;}if(_0x41d396['type']===_0x17c83a(0x131)||_0x41d396[_0x17c83a(0x104)]===_0x17c83a(0xf0)||_0x41d396['type']===_0x17c83a(0x122))await this['processInbox']();}catch{}}}}catch(_0x1cfae1){if(_0x1cfae1[_0x17c83a(0x136)]===_0x17c83a(0xef))break;this['emit'](_0x17c83a(0x113),_0x1cfae1),this[_0x17c83a(0x132)](_0x17c83a(0x10d)+_0x1cfae1[_0x17c83a(0xfd)]);}if(this[_0x17c83a(0x12f)])this[_0x17c83a(0x126)](_0x17c83a(0x130)),this[_0x17c83a(0x132)](_0x17c83a(0x119)+_0x2da2d2/0x3e8+_0x17c83a(0x134)),await this[_0x17c83a(0x112)](_0x2da2d2),_0x2da2d2=Math[_0x17c83a(0xf8)](_0x2da2d2*1.5,0xea60);}}async[a0_0x24d132(0x127)](){const _0x34e590=a0_0x24d132;try{let _0xba5fcf=(await this[_0x34e590(0x133)](_0x34e590(0x11a),{'alias':this[_0x34e590(0x13d)],'limit':0xa}))?.['messages']||[];for(let _0x11d91d of _0xba5fcf)await this[_0x34e590(0x133)](_0x34e590(0x123),{'alias':this[_0x34e590(0x13d)],'message_id':_0x11d91d['id']}),this['log']('←\x20'+_0x11d91d[_0x34e590(0x10e)]+':\x20'+_0x11d91d['content'][_0x34e590(0x109)](0x0,0x3c)),this[_0x34e590(0x126)](_0x34e590(0x102),_0x11d91d),this[_0x34e590(0x126)](_0x34e590(0xfd),_0x11d91d);}catch(_0x26d0ea){this[_0x34e590(0x132)](_0x34e590(0xff)+_0x26d0ea[_0x34e590(0xfd)]);}}['sleep'](_0x41228a){return new Promise(_0x30bdbb=>setTimeout(_0x30bdbb,_0x41228a));}}function a0_0x1f19(){const _0x4f2705=['connectSSE','/events/','sseAbort','min','connected','8opeoAV','736ZMIxQh','145557IRhapH','message','31839suTsHj','inbox\x20error:\x20','getAllStatus','22519KlLWwV','task','abort','type','idle','agent','connect','Bearer\x20','slice','result','1792GdYDLr','resumeId','SSE\x20error:\x20','from_session','sdk','reply','get_all_status','sleep','error','pop','report_status','send_message','token','send_task','SSE\x20reconnecting\x20in\x20','get_inbox','reconnectDelay','1395865adKqft','autoConnect','server','stringify','send_reply','SSE\x20connected','broadcast','ack_inbox','decode','sdk-','emit','processInbox','toString','226qNEfMB','heartbeatTimer','heartbeat\x20failed:\x20','replace','completed','Authorization','running','disconnected','new_task','log','call','s...','2596344nUCvZE','name','text/event-stream','read','status','/mcp','heartbeatInterval','data:\x20','alias','cwd','text','url','parse','SSE\x20failed:\x20','match','content','toTimeString','catch','startsWith','AbortError','new_message','727040vfFkuu','now',']\x20[commhub:','body'];a0_0x1f19=function(){return _0x4f2705;};return a0_0x1f19();}var $=T;export{$ as default,T as CommHub};