@sleep2agi/agent-network 2.3.0-preview.28 → 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_0x594ba2=a0_0x5a88;(function(_0x4b764d,_0x2d1e14){const _0x593750=a0_0x5a88,_0x1d2280=_0x4b764d();while(!![]){try{const _0x2cc4a1=parseInt(_0x593750(0x15c))/0x1*(-parseInt(_0x593750(0x175))/0x2)+parseInt(_0x593750(0x136))/0x3*(-parseInt(_0x593750(0x143))/0x4)+parseInt(_0x593750(0x157))/0x5*(parseInt(_0x593750(0x17c))/0x6)+parseInt(_0x593750(0x15f))/0x7*(-parseInt(_0x593750(0x134))/0x8)+-parseInt(_0x593750(0x186))/0x9*(parseInt(_0x593750(0x160))/0xa)+-parseInt(_0x593750(0x15a))/0xb*(-parseInt(_0x593750(0x13c))/0xc)+parseInt(_0x593750(0x13e))/0xd*(parseInt(_0x593750(0x12f))/0xe);if(_0x2cc4a1===_0x2d1e14)break;else _0x1d2280['push'](_0x1d2280['shift']());}catch(_0x3dfae7){_0x1d2280['push'](_0x1d2280['shift']());}}}(a0_0x57b9,0x72f78));function a0_0x57b9(){const _0x222a26=['/events/','sdk','parse','SSE\x20error:\x20','sseAbort','reply','error','s...','running','2533070XmcIWY','text/event-stream','idle','55SEOicz','autoConnect','1RyZPvI','/mcp','disconnect','9289ZQDcIO','430GjoZlp','heartbeatInterval','SSE\x20reconnecting\x20in\x20','heartbeatTimer','messages','connected','connectSSE','send_message','Authorization','match','text','Bearer\x20','message','content','broadcast','connect','split','now','server','toTimeString','offline','1537994jcLiQT','min','completed','resumeId','get_inbox','data:\x20','tools/call','6aoFAVA','new_task','catch','name','emit','signal','processInbox','send','SSE\x20connected','task','142407pCFBFk','disconnected','1050rPFClq','url','agent','status','SSE\x20failed:\x20','5584nLxqTn','call','621597dNEjnh','inbox\x20error:\x20','POST','AbortError','alias','type','2082648BMfxFY','normal','327002wDJiUg','sleep','2.0','new_message','result','8SLqXMY','token','send_task',']\x20[commhub:','log','stringify','reconnectDelay','cwd','heartbeat\x20failed:\x20','slice','read'];a0_0x57b9=function(){return _0x222a26;};return a0_0x57b9();}import{EventEmitter as a0_0x2e46ec}from'events';import{hostname as a0_0x216e53}from'os';function a0_0x5a88(_0x4e3c6f,_0x2c886c){_0x4e3c6f=_0x4e3c6f-0x12f;const _0x57b909=a0_0x57b9();let _0x5a88be=_0x57b909[_0x4e3c6f];return _0x5a88be;}class T extends a0_0x2e46ec{[a0_0x594ba2(0x130)];[a0_0x594ba2(0x13a)];['token'];[a0_0x594ba2(0x131)];[a0_0x594ba2(0x178)];[a0_0x594ba2(0x161)];['reconnectDelay'];[a0_0x594ba2(0x163)];['sseAbort'];[a0_0x594ba2(0x156)]=!0x1;constructor(_0x52ba96){const _0x2f5b86=a0_0x594ba2;super();if(this[_0x2f5b86(0x130)]=_0x52ba96[_0x2f5b86(0x130)]['replace'](/\/$/,''),this[_0x2f5b86(0x13a)]=_0x52ba96['alias'],this[_0x2f5b86(0x144)]=_0x52ba96[_0x2f5b86(0x144)],this['agent']=_0x52ba96[_0x2f5b86(0x131)]||_0x2f5b86(0x14f),this['resumeId']='sdk-'+_0x52ba96[_0x2f5b86(0x13a)]+'-'+Date[_0x2f5b86(0x171)]()['toString'](0x24),this['heartbeatInterval']=_0x52ba96[_0x2f5b86(0x161)]??0x2bf20,this['reconnectDelay']=_0x52ba96[_0x2f5b86(0x149)]??0xbb8,_0x52ba96[_0x2f5b86(0x15b)]!==!0x1)this[_0x2f5b86(0x16f)]();}[a0_0x594ba2(0x147)](_0x3674ac){const _0x4165c3=a0_0x594ba2;console['log']('['+new Date()[_0x4165c3(0x173)]()[_0x4165c3(0x14c)](0x0,0x8)+_0x4165c3(0x146)+this[_0x4165c3(0x13a)]+']\x20'+_0x3674ac);}async[a0_0x594ba2(0x135)](_0x4a1261,_0x48ee4a){const _0x22cfa1=a0_0x594ba2;let _0x18c233={'Content-Type':'application/json','Accept':'application/json,\x20text/event-stream'};if(this[_0x22cfa1(0x144)])_0x18c233[_0x22cfa1(0x168)]='Bearer\x20'+this[_0x22cfa1(0x144)];let _0x31e4fe=await(await fetch(this[_0x22cfa1(0x130)]+_0x22cfa1(0x15d),{'method':_0x22cfa1(0x138),'headers':_0x18c233,'body':JSON[_0x22cfa1(0x148)]({'jsonrpc':_0x22cfa1(0x140),'id':Date[_0x22cfa1(0x171)](),'method':_0x22cfa1(0x17b),'params':{'name':_0x4a1261,'arguments':_0x48ee4a}})}))[_0x22cfa1(0x16a)](),_0x4d1ab2=_0x31e4fe[_0x22cfa1(0x169)](/data: (.+)/),_0x4ad537=_0x4d1ab2?JSON['parse'](_0x4d1ab2[0x1]):JSON[_0x22cfa1(0x150)](_0x31e4fe),_0x4badcc=_0x4ad537?.[_0x22cfa1(0x142)]?.[_0x22cfa1(0x16d)]?.[0x0]?.[_0x22cfa1(0x16a)];return _0x4badcc?JSON[_0x22cfa1(0x150)](_0x4badcc):_0x4ad537;}async[a0_0x594ba2(0x16f)](){const _0x3d0b35=a0_0x594ba2;if(this[_0x3d0b35(0x156)])return;this[_0x3d0b35(0x156)]=!0x0,await this['status'](_0x3d0b35(0x159)),this[_0x3d0b35(0x147)]('registered'),this['heartbeatTimer']=setInterval(()=>{const _0x5a6dcd=_0x3d0b35;this[_0x5a6dcd(0x132)](_0x5a6dcd(0x159))['catch'](_0x45a269=>this[_0x5a6dcd(0x147)](_0x5a6dcd(0x14b)+_0x45a269[_0x5a6dcd(0x16c)]));},this[_0x3d0b35(0x161)]),this[_0x3d0b35(0x166)]();}async[a0_0x594ba2(0x15e)](){const _0x430266=a0_0x594ba2;if(this[_0x430266(0x156)]=!0x1,this[_0x430266(0x152)]?.['abort'](),this[_0x430266(0x163)])clearInterval(this[_0x430266(0x163)]);await this[_0x430266(0x132)](_0x430266(0x174))[_0x430266(0x17e)](()=>{}),this[_0x430266(0x147)](_0x430266(0x187));}async[a0_0x594ba2(0x183)](_0x568577,_0x5a409d,_0x418b3e=a0_0x594ba2(0x13d)){const _0x3ab2be=a0_0x594ba2;return this['call'](_0x3ab2be(0x145),{'alias':_0x568577,'task':_0x5a409d,'priority':_0x418b3e,'from_session':this['alias']});}async[a0_0x594ba2(0x16c)](_0x32f41a,_0x1ffe74){const _0x43fa69=a0_0x594ba2;return this['call'](_0x43fa69(0x167),{'alias':_0x32f41a,'message':_0x1ffe74,'from_session':this[_0x43fa69(0x13a)]});}async[a0_0x594ba2(0x153)](_0x4ec8ca,_0x4ce4ef,_0x598710=a0_0x594ba2(0x177)){return this['call']('send_reply',{'in_reply_to':_0x4ec8ca,'text':_0x4ce4ef,'status':_0x598710});}async[a0_0x594ba2(0x132)](_0x5ca2cc,_0x590a45){const _0x3eb0d0=a0_0x594ba2;return this[_0x3eb0d0(0x135)]('report_status',{'resume_id':this[_0x3eb0d0(0x178)],'alias':this[_0x3eb0d0(0x13a)],'status':_0x5ca2cc,'server':a0_0x216e53(),'hostname':a0_0x216e53(),'agent':this[_0x3eb0d0(0x131)],'project_dir':process[_0x3eb0d0(0x14a)](),..._0x590a45});}async['getAllStatus'](){const _0x149697=a0_0x594ba2;return this[_0x149697(0x135)]('get_all_status',{});}async[a0_0x594ba2(0x16e)](_0x4b0330,_0x7a19d7){const _0x3598d7=a0_0x594ba2;return this['call'](_0x3598d7(0x16e),{'message':_0x4b0330,'filter_server':_0x7a19d7?.[_0x3598d7(0x172)],'filter_status':_0x7a19d7?.[_0x3598d7(0x132)]});}async[a0_0x594ba2(0x166)](){const _0x5aade6=a0_0x594ba2;let _0xcf14da=encodeURIComponent(this[_0x5aade6(0x13a)]),_0x2f51f2=this[_0x5aade6(0x130)]+_0x5aade6(0x14e)+_0xcf14da,_0x5555f5=this['reconnectDelay'];while(this[_0x5aade6(0x156)]){try{this[_0x5aade6(0x152)]=new AbortController();let _0x33c577={'Accept':_0x5aade6(0x158)};if(this[_0x5aade6(0x144)])_0x33c577[_0x5aade6(0x168)]=_0x5aade6(0x16b)+this[_0x5aade6(0x144)];let _0x150625=await fetch(_0x2f51f2,{'headers':_0x33c577,'signal':this[_0x5aade6(0x152)][_0x5aade6(0x181)]});if(!_0x150625['ok']||!_0x150625['body']){this[_0x5aade6(0x147)](_0x5aade6(0x133)+_0x150625[_0x5aade6(0x132)]),await this[_0x5aade6(0x13f)](_0x5555f5),_0x5555f5=Math[_0x5aade6(0x176)](_0x5555f5*1.5,0xea60);continue;}_0x5555f5=this[_0x5aade6(0x149)];let _0x3dab86=_0x150625['body']['getReader'](),_0x2f49f7=new TextDecoder(),_0x3042e7='';while(this[_0x5aade6(0x156)]){let {done:_0x5990ed,value:_0x486889}=await _0x3dab86[_0x5aade6(0x14d)]();if(_0x5990ed)break;_0x3042e7+=_0x2f49f7['decode'](_0x486889,{'stream':!0x0});let _0x2221b7=_0x3042e7[_0x5aade6(0x170)]('\x0a');_0x3042e7=_0x2221b7['pop']()||'';for(let _0x2d29b6 of _0x2221b7){if(!_0x2d29b6['startsWith'](_0x5aade6(0x17a)))continue;try{let _0x39fff3=JSON[_0x5aade6(0x150)](_0x2d29b6['slice'](0x6));if(_0x39fff3[_0x5aade6(0x13b)]===_0x5aade6(0x165)){this['log'](_0x5aade6(0x184)),this[_0x5aade6(0x180)](_0x5aade6(0x165));continue;}if(_0x39fff3[_0x5aade6(0x13b)]===_0x5aade6(0x17d)||_0x39fff3[_0x5aade6(0x13b)]===_0x5aade6(0x141)||_0x39fff3[_0x5aade6(0x13b)]===_0x5aade6(0x16e))await this[_0x5aade6(0x182)]();}catch{}}}}catch(_0x4b9573){if(_0x4b9573[_0x5aade6(0x17f)]===_0x5aade6(0x139))break;this[_0x5aade6(0x180)](_0x5aade6(0x154),_0x4b9573),this[_0x5aade6(0x147)](_0x5aade6(0x151)+_0x4b9573[_0x5aade6(0x16c)]);}if(this[_0x5aade6(0x156)])this[_0x5aade6(0x180)]('disconnected'),this[_0x5aade6(0x147)](_0x5aade6(0x162)+_0x5555f5/0x3e8+_0x5aade6(0x155)),await this[_0x5aade6(0x13f)](_0x5555f5),_0x5555f5=Math['min'](_0x5555f5*1.5,0xea60);}}async[a0_0x594ba2(0x182)](){const _0x1a2460=a0_0x594ba2;try{let _0x1d16e2=(await this[_0x1a2460(0x135)](_0x1a2460(0x179),{'alias':this['alias'],'limit':0xa}))?.[_0x1a2460(0x164)]||[];for(let _0xcd9da4 of _0x1d16e2)await this[_0x1a2460(0x135)]('ack_inbox',{'alias':this['alias'],'message_id':_0xcd9da4['id']}),this['log']('←\x20'+_0xcd9da4['from_session']+':\x20'+_0xcd9da4['content']['slice'](0x0,0x3c)),this[_0x1a2460(0x180)](_0x1a2460(0x185),_0xcd9da4),this[_0x1a2460(0x180)](_0x1a2460(0x16c),_0xcd9da4);}catch(_0x463c14){this[_0x1a2460(0x147)](_0x1a2460(0x137)+_0x463c14[_0x1a2460(0x16c)]);}}['sleep'](_0x304ab2){return new Promise(_0x283b8d=>setTimeout(_0x283b8d,_0x304ab2));}}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();}