@sleep2agi/agent-network 2.3.0-preview.27 → 2.3.0-preview.29

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_0x39040b=a0_0x83b7;(function(_0x3d9895,_0x1da5f7){const _0x56236a=a0_0x83b7,_0x47d527=_0x3d9895();while(!![]){try{const _0x439c11=-parseInt(_0x56236a(0xcb))/0x1+-parseInt(_0x56236a(0xcd))/0x2*(-parseInt(_0x56236a(0x107))/0x3)+-parseInt(_0x56236a(0x108))/0x4+parseInt(_0x56236a(0xeb))/0x5+parseInt(_0x56236a(0xfa))/0x6+parseInt(_0x56236a(0xed))/0x7*(-parseInt(_0x56236a(0xe5))/0x8)+parseInt(_0x56236a(0xe7))/0x9*(-parseInt(_0x56236a(0xf8))/0xa);if(_0x439c11===_0x1da5f7)break;else _0x47d527['push'](_0x47d527['shift']());}catch(_0x5a9b37){_0x47d527['push'](_0x47d527['shift']());}}}(a0_0x6800,0xb7804));import{EventEmitter as a0_0x72c79f}from'events';import{hostname as a0_0x128a22}from'os';function a0_0x83b7(_0x4099dd,_0x63a88c){_0x4099dd=_0x4099dd-0xb3;const _0x68007=a0_0x6800();let _0x83b7b5=_0x68007[_0x4099dd];return _0x83b7b5;}class T extends a0_0x72c79f{[a0_0x39040b(0xfc)];[a0_0x39040b(0xf4)];['token'];[a0_0x39040b(0xe8)];[a0_0x39040b(0xf6)];[a0_0x39040b(0xc8)];['reconnectDelay'];['heartbeatTimer'];[a0_0x39040b(0xdd)];['running']=!0x1;constructor(_0x28d2a3){const _0x23e39f=a0_0x39040b;super();if(this[_0x23e39f(0xfc)]=_0x28d2a3['url'][_0x23e39f(0xe2)](/\/$/,''),this[_0x23e39f(0xf4)]=_0x28d2a3[_0x23e39f(0xf4)],this[_0x23e39f(0xf9)]=_0x28d2a3[_0x23e39f(0xf9)],this[_0x23e39f(0xe8)]=_0x28d2a3['agent']||_0x23e39f(0xb8),this[_0x23e39f(0xf6)]=_0x23e39f(0xb4)+_0x28d2a3['alias']+'-'+Date[_0x23e39f(0xfd)]()[_0x23e39f(0xc5)](0x24),this[_0x23e39f(0xc8)]=_0x28d2a3[_0x23e39f(0xc8)]??0x2bf20,this[_0x23e39f(0xf5)]=_0x28d2a3[_0x23e39f(0xf5)]??0xbb8,_0x28d2a3[_0x23e39f(0xe6)]!==!0x1)this[_0x23e39f(0xc0)]();}[a0_0x39040b(0xf3)](_0x38416c){const _0x1529e6=a0_0x39040b;console[_0x1529e6(0xf3)]('['+new Date()[_0x1529e6(0xfb)]()[_0x1529e6(0x105)](0x0,0x8)+_0x1529e6(0xc3)+this[_0x1529e6(0xf4)]+']\x20'+_0x38416c);}async[a0_0x39040b(0x109)](_0x503ff9,_0x278668){const _0x482186=a0_0x39040b;let _0x4fe4dd={'Content-Type':_0x482186(0x104),'Accept':'application/json,\x20text/event-stream'};if(this[_0x482186(0xf9)])_0x4fe4dd[_0x482186(0xfe)]=_0x482186(0xe1)+this[_0x482186(0xf9)];let _0x2ad69b=await(await fetch(this[_0x482186(0xfc)]+_0x482186(0xba),{'method':_0x482186(0x106),'headers':_0x4fe4dd,'body':JSON['stringify']({'jsonrpc':_0x482186(0xd3),'id':Date[_0x482186(0xfd)](),'method':_0x482186(0xdf),'params':{'name':_0x503ff9,'arguments':_0x278668}})}))[_0x482186(0xda)](),_0x4c6347=_0x2ad69b['match'](/data: (.+)/),_0x1f3bf9=_0x4c6347?JSON[_0x482186(0xdc)](_0x4c6347[0x1]):JSON[_0x482186(0xdc)](_0x2ad69b),_0x108842=_0x1f3bf9?.[_0x482186(0xff)]?.[_0x482186(0xc4)]?.[0x0]?.[_0x482186(0xda)];return _0x108842?JSON[_0x482186(0xdc)](_0x108842):_0x1f3bf9;}async['connect'](){const _0x507dec=a0_0x39040b;if(this[_0x507dec(0x102)])return;this[_0x507dec(0x102)]=!0x0,await this[_0x507dec(0xd1)](_0x507dec(0xc7)),this['log']('registered'),this[_0x507dec(0xd0)]=setInterval(()=>{const _0x5749fe=_0x507dec;this[_0x5749fe(0xd1)](_0x5749fe(0xc7))['catch'](_0x54f549=>this[_0x5749fe(0xf3)](_0x5749fe(0xd2)+_0x54f549[_0x5749fe(0xb7)]));},this[_0x507dec(0xc8)]),this['connectSSE']();}async['disconnect'](){const _0x2b6c17=a0_0x39040b;if(this[_0x2b6c17(0x102)]=!0x1,this['sseAbort']?.[_0x2b6c17(0xd8)](),this[_0x2b6c17(0xd0)])clearInterval(this[_0x2b6c17(0xd0)]);await this[_0x2b6c17(0xd1)](_0x2b6c17(0xe4))[_0x2b6c17(0xf1)](()=>{}),this[_0x2b6c17(0xf3)]('disconnected');}async['send'](_0x24aed3,_0x192b0f,_0x306d83=a0_0x39040b(0xd4)){const _0x3a92af=a0_0x39040b;return this[_0x3a92af(0x109)](_0x3a92af(0xc2),{'alias':_0x24aed3,'task':_0x192b0f,'priority':_0x306d83,'from_session':this['alias']});}async['message'](_0x2f029e,_0x5dacc3){const _0x3a7b44=a0_0x39040b;return this[_0x3a7b44(0x109)](_0x3a7b44(0xf7),{'alias':_0x2f029e,'message':_0x5dacc3,'from_session':this[_0x3a7b44(0xf4)]});}async[a0_0x39040b(0xc6)](_0x592113,_0x5742a2,_0x2c3bbf=a0_0x39040b(0xea)){const _0x16eccb=a0_0x39040b;return this['call'](_0x16eccb(0xd9),{'in_reply_to':_0x592113,'text':_0x5742a2,'status':_0x2c3bbf});}async['status'](_0x143e91,_0x17b06e){const _0x121db4=a0_0x39040b;return this[_0x121db4(0x109)](_0x121db4(0x101),{'resume_id':this[_0x121db4(0xf6)],'alias':this[_0x121db4(0xf4)],'status':_0x143e91,'server':a0_0x128a22(),'hostname':a0_0x128a22(),'agent':this[_0x121db4(0xe8)],'project_dir':process[_0x121db4(0xcf)](),..._0x17b06e});}async[a0_0x39040b(0xe0)](){const _0x40ba54=a0_0x39040b;return this[_0x40ba54(0x109)]('get_all_status',{});}async[a0_0x39040b(0xc1)](_0x330e12,_0x19fbbf){const _0xd4ee60=a0_0x39040b;return this[_0xd4ee60(0x109)](_0xd4ee60(0xc1),{'message':_0x330e12,'filter_server':_0x19fbbf?.[_0xd4ee60(0xb5)],'filter_status':_0x19fbbf?.[_0xd4ee60(0xd1)]});}async[a0_0x39040b(0xb3)](){const _0x168cba=a0_0x39040b;let _0x2b2e0e=encodeURIComponent(this[_0x168cba(0xf4)]),_0x3e799d=this[_0x168cba(0xfc)]+'/events/'+_0x2b2e0e,_0x38efbc=this[_0x168cba(0xf5)];while(this[_0x168cba(0x102)]){try{this[_0x168cba(0xdd)]=new AbortController();let _0x1003f6={'Accept':_0x168cba(0xf2)};if(this[_0x168cba(0xf9)])_0x1003f6[_0x168cba(0xfe)]=_0x168cba(0xe1)+this[_0x168cba(0xf9)];let _0x451ca2=await fetch(_0x3e799d,{'headers':_0x1003f6,'signal':this[_0x168cba(0xdd)][_0x168cba(0xe9)]});if(!_0x451ca2['ok']||!_0x451ca2[_0x168cba(0xc9)]){this[_0x168cba(0xf3)](_0x168cba(0xee)+_0x451ca2[_0x168cba(0xd1)]),await this['sleep'](_0x38efbc),_0x38efbc=Math['min'](_0x38efbc*1.5,0xea60);continue;}_0x38efbc=this[_0x168cba(0xf5)];let _0x467679=_0x451ca2[_0x168cba(0xc9)]['getReader'](),_0x1fe17d=new TextDecoder(),_0x19ee25='';while(this[_0x168cba(0x102)]){let {done:_0xdc7ac5,value:_0xd8036}=await _0x467679[_0x168cba(0xb6)]();if(_0xdc7ac5)break;_0x19ee25+=_0x1fe17d[_0x168cba(0xef)](_0xd8036,{'stream':!0x0});let _0x4134c1=_0x19ee25[_0x168cba(0xec)]('\x0a');_0x19ee25=_0x4134c1[_0x168cba(0xbe)]()||'';for(let _0x547216 of _0x4134c1){if(!_0x547216[_0x168cba(0xbb)](_0x168cba(0xbd)))continue;try{let _0xd8573d=JSON[_0x168cba(0xdc)](_0x547216[_0x168cba(0x105)](0x6));if(_0xd8573d[_0x168cba(0xb9)]==='connected'){this[_0x168cba(0xf3)]('SSE\x20connected'),this[_0x168cba(0xf0)]('connected');continue;}if(_0xd8573d['type']===_0x168cba(0xd5)||_0xd8573d['type']===_0x168cba(0xbf)||_0xd8573d['type']===_0x168cba(0xc1))await this[_0x168cba(0xd6)]();}catch{}}}}catch(_0x76544a){if(_0x76544a[_0x168cba(0xdb)]===_0x168cba(0xbc))break;this[_0x168cba(0xf0)]('error',_0x76544a),this[_0x168cba(0xf3)](_0x168cba(0xe3)+_0x76544a[_0x168cba(0xb7)]);}if(this[_0x168cba(0x102)])this[_0x168cba(0xf0)](_0x168cba(0xca)),this[_0x168cba(0xf3)]('SSE\x20reconnecting\x20in\x20'+_0x38efbc/0x3e8+'s...'),await this['sleep'](_0x38efbc),_0x38efbc=Math[_0x168cba(0xde)](_0x38efbc*1.5,0xea60);}}async[a0_0x39040b(0xd6)](){const _0x1d0c4c=a0_0x39040b;try{let _0x516bb7=(await this[_0x1d0c4c(0x109)](_0x1d0c4c(0x100),{'alias':this[_0x1d0c4c(0xf4)],'limit':0xa}))?.[_0x1d0c4c(0xd7)]||[];for(let _0x2d7ff2 of _0x516bb7)await this[_0x1d0c4c(0x109)](_0x1d0c4c(0x103),{'alias':this[_0x1d0c4c(0xf4)],'message_id':_0x2d7ff2['id']}),this[_0x1d0c4c(0xf3)]('←\x20'+_0x2d7ff2[_0x1d0c4c(0xcc)]+':\x20'+_0x2d7ff2[_0x1d0c4c(0xc4)][_0x1d0c4c(0x105)](0x0,0x3c)),this[_0x1d0c4c(0xf0)]('task',_0x2d7ff2),this['emit'](_0x1d0c4c(0xb7),_0x2d7ff2);}catch(_0x49cb9c){this[_0x1d0c4c(0xf3)](_0x1d0c4c(0xce)+_0x49cb9c[_0x1d0c4c(0xb7)]);}}['sleep'](_0x32e54e){return new Promise(_0x493b64=>setTimeout(_0x493b64,_0x32e54e));}}function a0_0x6800(){const _0x5745bb=['signal','completed','423660GDjeqU','split','171332ZuXwpb','SSE\x20failed:\x20','decode','emit','catch','text/event-stream','log','alias','reconnectDelay','resumeId','send_message','60pnXDEj','token','5749638dLjXbO','toTimeString','url','now','Authorization','result','get_inbox','report_status','running','ack_inbox','application/json','slice','POST','93723yHyEix','164760amRLki','call','connectSSE','sdk-','server','read','message','sdk','type','/mcp','startsWith','AbortError','data:\x20','pop','new_message','connect','broadcast','send_task',']\x20[commhub:','content','toString','reply','idle','heartbeatInterval','body','disconnected','327932mZSOHZ','from_session','94gvhBQl','inbox\x20error:\x20','cwd','heartbeatTimer','status','heartbeat\x20failed:\x20','2.0','normal','new_task','processInbox','messages','abort','send_reply','text','name','parse','sseAbort','min','tools/call','getAllStatus','Bearer\x20','replace','SSE\x20error:\x20','offline','24LrbntV','autoConnect','1975743NlnNmf','agent'];a0_0x6800=function(){return _0x5745bb;};return a0_0x6800();}var $=T;export{$ as default,T as CommHub};
1
+ const a0_0x250cdf=a0_0x4677;(function(_0x3d841c,_0x3e398f){const _0x111405=a0_0x4677,_0x383e2e=_0x3d841c();while(!![]){try{const _0x3beac9=-parseInt(_0x111405(0x1b2))/0x1+-parseInt(_0x111405(0x186))/0x2+-parseInt(_0x111405(0x1ad))/0x3+-parseInt(_0x111405(0x1c6))/0x4+-parseInt(_0x111405(0x1c9))/0x5+parseInt(_0x111405(0x1b6))/0x6*(-parseInt(_0x111405(0x1bd))/0x7)+parseInt(_0x111405(0x18d))/0x8;if(_0x3beac9===_0x3e398f)break;else _0x383e2e['push'](_0x383e2e['shift']());}catch(_0x3f4211){_0x383e2e['push'](_0x383e2e['shift']());}}}(a0_0x4715,0xb1dd2));import{EventEmitter as a0_0x309668}from'events';import{hostname as a0_0x3f0792}from'os';class T extends a0_0x309668{[a0_0x250cdf(0x1af)];[a0_0x250cdf(0x1aa)];[a0_0x250cdf(0x1a8)];[a0_0x250cdf(0x197)];['resumeId'];[a0_0x250cdf(0x18b)];[a0_0x250cdf(0x1a9)];[a0_0x250cdf(0x1c4)];[a0_0x250cdf(0x187)];[a0_0x250cdf(0x1c8)]=!0x1;constructor(_0x516cc0){const _0x6d857f=a0_0x250cdf;super();if(this[_0x6d857f(0x1af)]=_0x516cc0[_0x6d857f(0x1af)][_0x6d857f(0x18f)](/\/$/,''),this['alias']=_0x516cc0['alias'],this['token']=_0x516cc0[_0x6d857f(0x1a8)],this[_0x6d857f(0x197)]=_0x516cc0['agent']||_0x6d857f(0x181),this[_0x6d857f(0x1a4)]=_0x6d857f(0x1c7)+_0x516cc0[_0x6d857f(0x1aa)]+'-'+Date['now']()['toString'](0x24),this[_0x6d857f(0x18b)]=_0x516cc0[_0x6d857f(0x18b)]??0x2bf20,this[_0x6d857f(0x1a9)]=_0x516cc0['reconnectDelay']??0xbb8,_0x516cc0[_0x6d857f(0x1a5)]!==!0x1)this[_0x6d857f(0x196)]();}[a0_0x250cdf(0x19b)](_0x434f84){const _0x5bc8f1=a0_0x250cdf;console[_0x5bc8f1(0x19b)]('['+new Date()[_0x5bc8f1(0x185)]()[_0x5bc8f1(0x18c)](0x0,0x8)+_0x5bc8f1(0x1bc)+this['alias']+']\x20'+_0x434f84);}async[a0_0x250cdf(0x184)](_0x446951,_0x4b8bcc){const _0x418997=a0_0x250cdf;let _0x285c4c={'Content-Type':_0x418997(0x1cf),'Accept':_0x418997(0x199)};if(this[_0x418997(0x1a8)])_0x285c4c[_0x418997(0x1c0)]=_0x418997(0x1ae)+this[_0x418997(0x1a8)];let _0x858029=await(await fetch(this[_0x418997(0x1af)]+_0x418997(0x182),{'method':_0x418997(0x1a0),'headers':_0x285c4c,'body':JSON[_0x418997(0x1ca)]({'jsonrpc':'2.0','id':Date[_0x418997(0x1be)](),'method':_0x418997(0x1d5),'params':{'name':_0x446951,'arguments':_0x4b8bcc}})}))[_0x418997(0x1a3)](),_0x2a598b=_0x858029[_0x418997(0x195)](/data: (.+)/),_0x4cf25d=_0x2a598b?JSON['parse'](_0x2a598b[0x1]):JSON[_0x418997(0x1cc)](_0x858029),_0x28e7df=_0x4cf25d?.['result']?.[_0x418997(0x191)]?.[0x0]?.['text'];return _0x28e7df?JSON[_0x418997(0x1cc)](_0x28e7df):_0x4cf25d;}async['connect'](){const _0x2fc98c=a0_0x250cdf;if(this[_0x2fc98c(0x1c8)])return;this[_0x2fc98c(0x1c8)]=!0x0,await this[_0x2fc98c(0x193)](_0x2fc98c(0x19a)),this['log'](_0x2fc98c(0x1b9)),this[_0x2fc98c(0x1c4)]=setInterval(()=>{const _0x387e9d=_0x2fc98c;this[_0x387e9d(0x193)](_0x387e9d(0x19a))[_0x387e9d(0x1c5)](_0x64a13d=>this[_0x387e9d(0x19b)]('heartbeat\x20failed:\x20'+_0x64a13d[_0x387e9d(0x1d4)]));},this[_0x2fc98c(0x18b)]),this['connectSSE']();}async[a0_0x250cdf(0x1cd)](){const _0xadb76c=a0_0x250cdf;if(this[_0xadb76c(0x1c8)]=!0x1,this[_0xadb76c(0x187)]?.[_0xadb76c(0x1bf)](),this['heartbeatTimer'])clearInterval(this[_0xadb76c(0x1c4)]);await this[_0xadb76c(0x193)](_0xadb76c(0x1b8))[_0xadb76c(0x1c5)](()=>{}),this['log']('disconnected');}async['send'](_0x1fb168,_0x49b26d,_0x6d8236=a0_0x250cdf(0x1a7)){const _0x1414b9=a0_0x250cdf;return this['call'](_0x1414b9(0x1ba),{'alias':_0x1fb168,'task':_0x49b26d,'priority':_0x6d8236,'from_session':this['alias']});}async[a0_0x250cdf(0x1d4)](_0x462158,_0x5429f3){const _0x5305c6=a0_0x250cdf;return this[_0x5305c6(0x184)](_0x5305c6(0x198),{'alias':_0x462158,'message':_0x5429f3,'from_session':this[_0x5305c6(0x1aa)]});}async[a0_0x250cdf(0x1ac)](_0x2955c7,_0x4494bb,_0x16acfe='completed'){const _0x1d8e3f=a0_0x250cdf;return this[_0x1d8e3f(0x184)](_0x1d8e3f(0x1bb),{'in_reply_to':_0x2955c7,'text':_0x4494bb,'status':_0x16acfe});}async['status'](_0x95492e,_0xc08285){const _0x494c3d=a0_0x250cdf;return this[_0x494c3d(0x184)](_0x494c3d(0x1ab),{'resume_id':this[_0x494c3d(0x1a4)],'alias':this['alias'],'status':_0x95492e,'server':a0_0x3f0792(),'hostname':a0_0x3f0792(),'agent':this[_0x494c3d(0x197)],'project_dir':process[_0x494c3d(0x194)](),..._0xc08285});}async[a0_0x250cdf(0x1d7)](){const _0x50666b=a0_0x250cdf;return this[_0x50666b(0x184)](_0x50666b(0x1d1),{});}async[a0_0x250cdf(0x1d0)](_0x4d173a,_0x2f58f9){const _0x3ea67a=a0_0x250cdf;return this['call'](_0x3ea67a(0x1d0),{'message':_0x4d173a,'filter_server':_0x2f58f9?.[_0x3ea67a(0x1a2)],'filter_status':_0x2f58f9?.[_0x3ea67a(0x193)]});}async['connectSSE'](){const _0x4b39df=a0_0x250cdf;let _0x381dd3=encodeURIComponent(this['alias']),_0x384f90=this[_0x4b39df(0x1af)]+'/events/'+_0x381dd3,_0x3b14aa=this[_0x4b39df(0x1a9)];while(this[_0x4b39df(0x1c8)]){try{this[_0x4b39df(0x187)]=new AbortController();let _0x263d23={'Accept':_0x4b39df(0x18e)};if(this[_0x4b39df(0x1a8)])_0x263d23[_0x4b39df(0x1c0)]=_0x4b39df(0x1ae)+this[_0x4b39df(0x1a8)];let _0x4459f8=await fetch(_0x384f90,{'headers':_0x263d23,'signal':this[_0x4b39df(0x187)][_0x4b39df(0x19d)]});if(!_0x4459f8['ok']||!_0x4459f8[_0x4b39df(0x19c)]){this[_0x4b39df(0x19b)](_0x4b39df(0x18a)+_0x4459f8[_0x4b39df(0x193)]),await this[_0x4b39df(0x1c2)](_0x3b14aa),_0x3b14aa=Math['min'](_0x3b14aa*1.5,0xea60);continue;}_0x3b14aa=this['reconnectDelay'];let _0x182646=_0x4459f8[_0x4b39df(0x19c)]['getReader'](),_0x486719=new TextDecoder(),_0x58f33e='';while(this[_0x4b39df(0x1c8)]){let {done:_0x2bbe69,value:_0x1a5f17}=await _0x182646['read']();if(_0x2bbe69)break;_0x58f33e+=_0x486719[_0x4b39df(0x1cb)](_0x1a5f17,{'stream':!0x0});let _0x7cb404=_0x58f33e[_0x4b39df(0x19e)]('\x0a');_0x58f33e=_0x7cb404[_0x4b39df(0x1d2)]()||'';for(let _0xdaa037 of _0x7cb404){if(!_0xdaa037[_0x4b39df(0x189)]('data:\x20'))continue;try{let _0x4d5427=JSON[_0x4b39df(0x1cc)](_0xdaa037[_0x4b39df(0x18c)](0x6));if(_0x4d5427['type']===_0x4b39df(0x1b5)){this['log'](_0x4b39df(0x1ce)),this[_0x4b39df(0x1c3)](_0x4b39df(0x1b5));continue;}if(_0x4d5427['type']===_0x4b39df(0x188)||_0x4d5427[_0x4b39df(0x19f)]===_0x4b39df(0x192)||_0x4d5427[_0x4b39df(0x19f)]===_0x4b39df(0x1d0))await this[_0x4b39df(0x1a1)]();}catch{}}}}catch(_0x2d91e0){if(_0x2d91e0[_0x4b39df(0x1b0)]===_0x4b39df(0x1d3))break;this['emit'](_0x4b39df(0x1d6),_0x2d91e0),this[_0x4b39df(0x19b)](_0x4b39df(0x1b3)+_0x2d91e0['message']);}if(this[_0x4b39df(0x1c8)])this[_0x4b39df(0x1c3)]('disconnected'),this[_0x4b39df(0x19b)]('SSE\x20reconnecting\x20in\x20'+_0x3b14aa/0x3e8+_0x4b39df(0x1b4)),await this['sleep'](_0x3b14aa),_0x3b14aa=Math[_0x4b39df(0x1b7)](_0x3b14aa*1.5,0xea60);}}async[a0_0x250cdf(0x1a1)](){const _0x8aaecd=a0_0x250cdf;try{let _0x434a19=(await this[_0x8aaecd(0x184)](_0x8aaecd(0x183),{'alias':this[_0x8aaecd(0x1aa)],'limit':0xa}))?.[_0x8aaecd(0x190)]||[];for(let _0x480999 of _0x434a19)await this[_0x8aaecd(0x184)](_0x8aaecd(0x1b1),{'alias':this['alias'],'message_id':_0x480999['id']}),this[_0x8aaecd(0x19b)]('←\x20'+_0x480999[_0x8aaecd(0x1c1)]+':\x20'+_0x480999[_0x8aaecd(0x191)]['slice'](0x0,0x3c)),this[_0x8aaecd(0x1c3)](_0x8aaecd(0x180),_0x480999),this['emit'](_0x8aaecd(0x1d4),_0x480999);}catch(_0x1380d1){this[_0x8aaecd(0x19b)](_0x8aaecd(0x1a6)+_0x1380d1[_0x8aaecd(0x1d4)]);}}[a0_0x250cdf(0x1c2)](_0x23a00f){return new Promise(_0x2c042=>setTimeout(_0x2c042,_0x23a00f));}}var $=T;export{$ as default,T as CommHub};function a0_0x4677(_0x5248fa,_0x4d2799){_0x5248fa=_0x5248fa-0x180;const _0x471510=a0_0x4715();let _0x4677e4=_0x471510[_0x5248fa];return _0x4677e4;}function a0_0x4715(){const _0x5bf53f=['text/event-stream','replace','messages','content','new_message','status','cwd','match','connect','agent','send_message','application/json,\x20text/event-stream','idle','log','body','signal','split','type','POST','processInbox','server','text','resumeId','autoConnect','inbox\x20error:\x20','normal','token','reconnectDelay','alias','report_status','reply','1422762feSlcx','Bearer\x20','url','name','ack_inbox','122555XTKFOO','SSE\x20error:\x20','s...','connected','1047048KUNQTd','min','offline','registered','send_task','send_reply',']\x20[commhub:','14ihuYsT','now','abort','Authorization','from_session','sleep','emit','heartbeatTimer','catch','1119604ZgoGXr','sdk-','running','3681955CAezJj','stringify','decode','parse','disconnect','SSE\x20connected','application/json','broadcast','get_all_status','pop','AbortError','message','tools/call','error','getAllStatus','task','sdk','/mcp','get_inbox','call','toTimeString','2459426fEVajg','sseAbort','new_task','startsWith','SSE\x20failed:\x20','heartbeatInterval','slice','31362880SvYiHD'];a0_0x4715=function(){return _0x5bf53f;};return a0_0x4715();}