@myagentroam/node 0.9.24 → 0.9.26

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,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x693d35=_0x9c33;function _0x9c33(_0x1d627b,_0x5b7c66){_0x1d627b=_0x1d627b-(-0x1a9*0x5+0x1633+-0xbf3);const _0x1db7ad=_0x39fe();let _0x538ea6=_0x1db7ad[_0x1d627b];if(_0x9c33['klYUEC']===undefined){var _0xa95777=function(_0x218bf3){const _0x58419a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e5153='',_0x4da85e='';for(let _0x57baeb=-0x1*-0x5c4+-0x4*0x5b3+0x1108,_0x19d901,_0x31ef57,_0x26e1fb=0x3*0x9d9+-0x1*-0x877+-0x2602;_0x31ef57=_0x218bf3['charAt'](_0x26e1fb++);~_0x31ef57&&(_0x19d901=_0x57baeb%(-0x6d+0xe02+-0xd91)?_0x19d901*(-0x4*-0x7cf+-0x1*-0x55d+-0x2459)+_0x31ef57:_0x31ef57,_0x57baeb++%(-0xc5*-0x2b+0x736+-0x2849))?_0x4e5153+=String['fromCharCode'](0x868+0x1e83+0x6*-0x652&_0x19d901>>(-(0x23d2+-0xdc9+-0x1607)*_0x57baeb&0x116a+-0x1be2+0x4f*0x22)):-0x6*-0x1c6+0xc9d+-0x1*0x1741){_0x31ef57=_0x58419a['indexOf'](_0x31ef57);}for(let _0x1051be=0xf92*-0x2+0x9a*-0x1f+0x1*0x31ca,_0x14da00=_0x4e5153['length'];_0x1051be<_0x14da00;_0x1051be++){_0x4da85e+='%'+('00'+_0x4e5153['charCodeAt'](_0x1051be)['toString'](0x12*0x16+-0xf7*0x14+0x11d0))['slice'](-(-0x9*-0xc5+0x2232+-0x291d));}return decodeURIComponent(_0x4da85e);};_0x9c33['qVxtGn']=_0xa95777,_0x9c33['ioGZlm']={},_0x9c33['klYUEC']=!![];}const _0x1d80a1=_0x1db7ad[0x37*0x40+-0x47d*0x1+0x943*-0x1];_0x9c33['wKyROl']!==_0x1d80a1&&(_0x9c33['ioGZlm']={},_0x9c33['wKyROl']=_0x1d80a1);const _0x1d4aa9=_0x9c33['ioGZlm'][_0x1d627b];return _0x1d4aa9===undefined?(_0x538ea6=_0x9c33['qVxtGn'](_0x538ea6),_0x9c33['ioGZlm'][_0x1d627b]=_0x538ea6):_0x538ea6=_0x1d4aa9,_0x538ea6;}function _0x39fe(){const _0x33f98b=['DMvYC2LVBNm','CM91BMq','CNvUBMvY','zxH0zxjUywXtzxnZAw9Uswq','Bwf4vg9Rzw5Z','CgvYy2vUDgfNzq','C3rYAw5N','z2v0','CMvHza','DgHLBG','DMfSDwvZ','nJK3mM9lq1fkva','C3rVChbLza','mZy1mZe2n09bA0HLEG','C25HChnOB3ruAw1LCNm','C25HChnOB3rZ','y3vYCMvUDa','zgvSzxrL','mtjtvNbns0e','C2nOzwr1Bgu','mZe5mdL4v29KBLa','C25HChnOB3q','y2XLyxi','mtj4EfzZvhe','CMvHzenVBNrLEhrvC2fNzq','mJKWodKWmJDeD0f0t1u','CNvUBMvYCW','C2v0','ovDsAxzJDa','B3b0Aw9UCW','ChjVzhvJDa','BgvUz3rO','Bw9KzwW','DgLTzxjZ','ChvIBgLZAa','ote4ntiWDhfVt3Ll','oti3mZC5mfjIuhPcta','zMLUywXSEq','D29YA3nWywnLswq','Dw5Yzwy','C2vZC2LVBG','DxnLzfrVA2vUCW','y2f0y2G','mtuZnJm1wu9Pu2XN','zgLZCg9Zzq','odzZqMzJDMu'];_0x39fe=function(){return _0x33f98b;};return _0x39fe();}(function(_0x3e62a6,_0x52714f){const _0x309f0a=_0x9c33,_0x576eb5=_0x3e62a6();while(!![]){try{const _0x186fb=parseInt(_0x309f0a(0x206))/(0xa28+0x4*-0x871+0xc3*0x1f)+-parseInt(_0x309f0a(0x21f))/(-0x1*0x75b+-0x1873*-0x1+0xa2*-0x1b)*(-parseInt(_0x309f0a(0x1fd))/(0x2*-0xdaf+0xf74*-0x2+-0x1*-0x3a49))+parseInt(_0x309f0a(0x204))/(0x1fa4+0x5d1*0x5+0x1*-0x3cb5)*(-parseInt(_0x309f0a(0x21d))/(-0x150d+0xd6*-0xe+-0x20c6*-0x1))+parseInt(_0x309f0a(0x209))/(0x7*0x51b+0x95*0x9+-0x28f4)*(-parseInt(_0x309f0a(0x1ff))/(0x1*-0x174d+0x1571*0x1+0x1e3))+-parseInt(_0x309f0a(0x215))/(0x53*-0x3+0x2547+-0x2446)+parseInt(_0x309f0a(0x20e))/(-0x1ca9+-0xf*-0x34+-0x19a6*-0x1)*(-parseInt(_0x309f0a(0x216))/(-0x38*0x73+-0x1*-0x20ef+0x7*-0x11b))+parseInt(_0x309f0a(0x20b))/(0x40+-0x3+-0x32);if(_0x186fb===_0x52714f)break;else _0x576eb5['push'](_0x576eb5['shift']());}catch(_0x49d7f1){_0x576eb5['push'](_0x576eb5['shift']());}}}(_0x39fe,0x8a026+-0x226cb+0x2a736));const REFRESH_DELAYS_MS=[0x1eb2+0x9*-0x1a9+0x13*-0xcf,0x1146+-0x254+-0x6*0x23b,0x4*-0x63f+-0x1d*0x3a+-0x22*-0x10b],CONTEXT_SNAPSHOT_TTL_MS=(0x2*-0x61+0x2117+-0x2037)*(-0x1*0x18598+0x64e0+0x4c*0x6e2);export class SessionContextService{[_0x693d35(0x20f)];[_0x693d35(0x201)]=new Map();[_0x693d35(0x200)]=new Map();[_0x693d35(0x213)]=new Map();[_0x693d35(0x220)]=new Map();constructor(_0x1d627b){const _0x333bd5=_0x693d35;this[_0x333bd5(0x20f)]=_0x1d627b;}async[_0x693d35(0x1fa)](_0x5b7c66){const _0x4160c4=_0x693d35;if(_0x5b7c66[_0x4160c4(0x1f5)]===null)return{'context':null,'pending':![]};const _0x1db7ad=await this[_0x4160c4(0x20f)][_0x4160c4(0x20c)][_0x4160c4(0x210)](_0x5b7c66[_0x4160c4(0x1f4)])?.[_0x4160c4(0x20a)](_0x5b7c66);if(_0x1db7ad===undefined)return{'context':null,'pending':![]};const _0x538ea6={'model':_0x1db7ad[_0x4160c4(0x212)]??_0x5b7c66[_0x4160c4(0x212)],'usedTokens':_0x1db7ad[_0x4160c4(0x21b)],'maxTokens':_0x1db7ad[_0x4160c4(0x1f6)],'percentage':Math[_0x4160c4(0x1f3)](_0x1db7ad[_0x4160c4(0x21b)]/_0x1db7ad[_0x4160c4(0x1f6)]*(0x23d2+-0xdc9+-0x1221))/(0x116a+-0x1be2+0x10d*0xa)};this[_0x4160c4(0x201)][_0x4160c4(0x20d)](_0x5b7c66['id'],_0x538ea6);const _0xa95777=this[_0x4160c4(0x200)][_0x4160c4(0x1f9)](_0x5b7c66['id']);if(_0xa95777!==undefined)clearTimeout(_0xa95777);const _0x1d80a1=setTimeout(()=>{const _0x424cd5=_0x4160c4;this[_0x424cd5(0x200)][_0x424cd5(0x203)](_0x5b7c66['id']),this[_0x424cd5(0x201)][_0x424cd5(0x203)](_0x5b7c66['id']);},CONTEXT_SNAPSHOT_TTL_MS);return _0x1d80a1[_0x4160c4(0x219)](),this[_0x4160c4(0x200)][_0x4160c4(0x20d)](_0x5b7c66['id'],_0x1d80a1),{'context':_0x538ea6,'pending':![]};}[_0x693d35(0x207)](_0x1d4aa9){const _0x34c6e8=_0x693d35;return this[_0x34c6e8(0x201)][_0x34c6e8(0x1f9)](_0x1d4aa9)??null;}[_0x693d35(0x205)](_0x218bf3){const _0x1bd59e=_0x693d35,_0x58419a=typeof _0x218bf3===_0x1bd59e(0x1f8)?_0x218bf3:_0x218bf3['id'],_0x4e5153=typeof _0x218bf3===_0x1bd59e(0x1f8)?undefined:_0x218bf3,_0x4da85e=this[_0x1bd59e(0x213)][_0x1bd59e(0x1f9)](_0x58419a);if(_0x4da85e!==undefined)clearTimeout(_0x4da85e);this[_0x1bd59e(0x213)][_0x1bd59e(0x203)](_0x58419a);const _0x57baeb=(this[_0x1bd59e(0x220)][_0x1bd59e(0x1f9)](_0x58419a)??-0x6*-0x1c6+0xc9d+-0x1*0x1741)+(0xf92*-0x2+0x9a*-0x1f+0x1*0x31cb);this[_0x1bd59e(0x220)][_0x1bd59e(0x20d)](_0x58419a,_0x57baeb);let _0x19d901=this[_0x1bd59e(0x201)][_0x1bd59e(0x1f9)](_0x58419a);const _0x31ef57=_0x26e1fb=>{const _0x3c37f9=_0x1bd59e,_0x1051be=setTimeout(()=>{const _0x21c527=_0x9c33;if(this[_0x21c527(0x213)][_0x21c527(0x1f9)](_0x58419a)===_0x1051be)this[_0x21c527(0x213)][_0x21c527(0x203)](_0x58419a);if(!this[_0x21c527(0x202)](_0x58419a,_0x57baeb))return;const _0x14da00=this[_0x21c527(0x20f)][_0x21c527(0x21a)](_0x58419a)??_0x4e5153;if(_0x14da00===undefined||_0x14da00[_0x21c527(0x1f5)]===null)return;void this[_0x21c527(0x1fa)](_0x14da00)[_0x21c527(0x1fb)](({context:_0x40c5e8})=>{const _0x4051d3=_0x21c527;if(!this[_0x4051d3(0x202)](_0x58419a,_0x57baeb))return;_0x40c5e8!==null&&(_0x19d901===undefined||!sameUsage(_0x19d901,_0x40c5e8))&&(_0x19d901=_0x40c5e8,this[_0x4051d3(0x20f)][_0x4051d3(0x214)]({'sessionId':_0x14da00['id'],'workspaceId':_0x14da00[_0x4051d3(0x218)],'context':_0x40c5e8,'pending':![]}));})[_0x21c527(0x21c)](()=>undefined)[_0x21c527(0x217)](()=>{const _0x171c15=_0x21c527;if(!this[_0x171c15(0x202)](_0x58419a,_0x57baeb))return;if(_0x26e1fb+(0x12*0x16+-0xf7*0x14+0x11c1)<REFRESH_DELAYS_MS[_0x171c15(0x211)])_0x31ef57(_0x26e1fb+(-0x9*-0xc5+0x2232+-0x291e));else this[_0x171c15(0x220)][_0x171c15(0x203)](_0x58419a);});},REFRESH_DELAYS_MS[_0x26e1fb]);this[_0x3c37f9(0x213)][_0x3c37f9(0x20d)](_0x58419a,_0x1051be),_0x1051be[_0x3c37f9(0x219)]();};_0x31ef57(0x37*0x40+-0x47d*0x1+0x943*-0x1);}[_0x693d35(0x21e)](){const _0x5f19f0=_0x693d35;for(const _0x36bb9e of this[_0x5f19f0(0x213)][_0x5f19f0(0x1fc)]())clearTimeout(_0x36bb9e);for(const _0x333e7c of this[_0x5f19f0(0x200)][_0x5f19f0(0x1fc)]())clearTimeout(_0x333e7c);this[_0x5f19f0(0x213)][_0x5f19f0(0x208)](),this[_0x5f19f0(0x200)][_0x5f19f0(0x208)](),this[_0x5f19f0(0x220)][_0x5f19f0(0x208)](),this[_0x5f19f0(0x201)][_0x5f19f0(0x208)]();}[_0x693d35(0x202)](_0x3c25cf,_0x4db19b){const _0x211006=_0x693d35;return!this[_0x211006(0x20f)][_0x211006(0x1fe)]()&&this[_0x211006(0x220)][_0x211006(0x1f9)](_0x3c25cf)===_0x4db19b;}}function sameUsage(_0x1ebae4,_0x4703a0){const _0x49952c=_0x693d35;return _0x1ebae4[_0x49952c(0x212)]===_0x4703a0[_0x49952c(0x212)]&&_0x1ebae4[_0x49952c(0x21b)]===_0x4703a0[_0x49952c(0x21b)]&&_0x1ebae4[_0x49952c(0x1f6)]===_0x4703a0[_0x49952c(0x1f6)]&&_0x1ebae4[_0x49952c(0x1f7)]===_0x4703a0[_0x49952c(0x1f7)];}
2
+ const _0x11350d=_0x3441;(function(_0x3bc180,_0x27a6a5){const _0x20d664=_0x3441,_0x3bf83b=_0x3bc180();while(!![]){try{const _0x406267=parseInt(_0x20d664(0x111))/(0x1067+-0x1e1*-0x11+-0x3057)+parseInt(_0x20d664(0x119))/(0x1d64+0x1*-0x1f49+0x1e7)*(parseInt(_0x20d664(0x114))/(-0x1c60+0x1*0x210d+-0x4aa))+-parseInt(_0x20d664(0x11b))/(-0x6c1*0x1+-0x45*-0x3b+-0x922*0x1)*(parseInt(_0x20d664(0x110))/(-0x2600*-0x1+-0x36d*0x5+-0x14da))+parseInt(_0x20d664(0x117))/(0x525*0x7+-0xe37+0x1*-0x15c6)+-parseInt(_0x20d664(0xf5))/(0xf4*-0x1+-0x3*0xbec+0x24bf)*(parseInt(_0x20d664(0x104))/(-0x3*0xc33+-0xaf1+0x2f92))+parseInt(_0x20d664(0xf3))/(-0x1a2d+-0x9c*-0x1f+0x752)*(-parseInt(_0x20d664(0xf1))/(-0x456+0x2*-0x83e+0x14dc))+parseInt(_0x20d664(0x10c))/(0x3*0x945+0x1*0x167b+-0x323f)*(parseInt(_0x20d664(0x115))/(0x66f+-0x2397+0x59*0x54));if(_0x406267===_0x27a6a5)break;else _0x3bf83b['push'](_0x3bf83b['shift']());}catch(_0x3e8734){_0x3bf83b['push'](_0x3bf83b['shift']());}}}(_0x3928,0x3a02b+0x15*-0x2335+-0xb1*-0x858));function _0x3928(){const _0x444114=['ntC3mtG4DM1NzMzq','zgLZCg9Zzq','odjTterLBw4','Bwf4vg9Rzw5Z','mJu1mty3nM5lrNjHqq','CNvUBMvY','C2nOzwr1Bgu','C2vZC2LVBG','DgHLBG','C25HChnOB3rZ','mtaWndiWyxrTqvj2','zMLUywXSEq','mtyYEfLNC1r6','y3vYCMvUDa','mZC1mte3nenSu1rnuW','CMvHzenVBNrLEhrvC2fNzq','CgvYy2vUDgfNzq','zxH0zxjUywXtzxnZAw9Uswq','C3rYAw5N','y2f0y2G','Bw9KzwW','CMvHza','B3b0Aw9UCW','C2v0','Dw5Yzwy','z2v0','ChjVzhvJDa','zgvSzxrL','C25HChnOB3q','oe1yC2rwsG','ChvIBgLZAa','C3rVChbLza','DMvYC2LVBNm','y2XLyxi','C25HChnOB3ruAw1LCNm','CNvUBMvYCW','y2XLyxjtBMfWC2HVDa','odHxvKzPEum','CM91BMq','DgLTzxjZ','D29YA3nWywnLswq','nuzozhrODW','nZy5ndKWq011zefk','DxnLzfrVA2vUCW','DMfSDwvZ','otGXm0zmvfHWzG','mte3mtC1mNLzt2rRua','BgvUz3rO'];_0x3928=function(){return _0x444114;};return _0x3928();}const REFRESH_DELAYS_MS=[0xf2*-0x1+0xaaf+-0x959,-0x3a*0x45+0x11*0x22+0xef0,-0x2*0x63+-0x29*0xad+0x2063],CONTEXT_SNAPSHOT_TTL_MS=(-0x581*-0x1+0x1*-0xfd1+-0x1*-0xa6e)*(0x1*0x122f2+0x39*-0x599+0x1067f);export class SessionContextService{[_0x11350d(0xfd)];[_0x11350d(0xf0)]=new Map();[_0x11350d(0x109)]=new Map();[_0x11350d(0x10e)]=new Map();[_0x11350d(0x107)]=new Map();constructor(_0x1a412a){const _0x58f6b6=_0x11350d;this[_0x58f6b6(0xfd)]=_0x1a412a;}async[_0x11350d(0xfc)](_0x1cfa36){const _0x1d8245=_0x11350d;if(_0x1cfa36[_0x1d8245(0xf8)]===null)return this[_0x1d8245(0x10b)](_0x1cfa36['id']),{'context':null,'pending':![]};const _0x38f75f=await this[_0x1d8245(0xfd)][_0x1d8245(0x10a)][_0x1d8245(0x101)](_0x1cfa36[_0x1d8245(0x11c)])?.[_0x1d8245(0xf6)](_0x1cfa36);if(_0x38f75f===undefined)return this[_0x1d8245(0x10b)](_0x1cfa36['id']),{'context':null,'pending':![]};const _0x37f31a={'model':_0x38f75f[_0x1d8245(0xfb)]??_0x1cfa36[_0x1d8245(0xfb)],'usedTokens':_0x38f75f[_0x1d8245(0x112)],'maxTokens':_0x38f75f[_0x1d8245(0x11a)],'percentage':Math[_0x1d8245(0x10d)](_0x38f75f[_0x1d8245(0x112)]/_0x38f75f[_0x1d8245(0x11a)]*(-0x10*0x1a5+0x1a29+0x40f))/(0x2220+-0x1*-0xf85+-0x53*0x99)};this[_0x1d8245(0xf0)][_0x1d8245(0xfe)](_0x1cfa36['id'],_0x37f31a);const _0x3e2e24=this[_0x1d8245(0x109)][_0x1d8245(0x100)](_0x1cfa36['id']);if(_0x3e2e24!==undefined)clearTimeout(_0x3e2e24);const _0x2271f5=setTimeout(()=>{const _0x305631=_0x1d8245;this[_0x305631(0x109)][_0x305631(0x102)](_0x1cfa36['id']),this[_0x305631(0xf0)][_0x305631(0x102)](_0x1cfa36['id']);},CONTEXT_SNAPSHOT_TTL_MS);return _0x2271f5[_0x1d8245(0xff)](),this[_0x1d8245(0x109)][_0x1d8245(0xfe)](_0x1cfa36['id'],_0x2271f5),{'context':_0x37f31a,'pending':![]};}[_0x11350d(0x103)](_0x46e7af){const _0x2e5856=_0x11350d;return this[_0x2e5856(0xf0)][_0x2e5856(0x100)](_0x46e7af)??null;}[_0x11350d(0xed)](_0x10f6e5){const _0x4f9a78=_0x11350d,_0x460f4f=typeof _0x10f6e5===_0x4f9a78(0xf9)?_0x10f6e5:_0x10f6e5['id'],_0x8c9495=typeof _0x10f6e5===_0x4f9a78(0xf9)?undefined:_0x10f6e5,_0x387819=this[_0x4f9a78(0x10e)][_0x4f9a78(0x100)](_0x460f4f);if(_0x387819!==undefined)clearTimeout(_0x387819);this[_0x4f9a78(0x10e)][_0x4f9a78(0x102)](_0x460f4f);const _0x5c4efe=(this[_0x4f9a78(0x107)][_0x4f9a78(0x100)](_0x460f4f)??-0x255+-0x264f+0x28a4)+(0xda8*-0x2+-0xea1+0x19d*0x1a);this[_0x4f9a78(0x107)][_0x4f9a78(0xfe)](_0x460f4f,_0x5c4efe);let _0x273bd5=this[_0x4f9a78(0xf0)][_0x4f9a78(0x100)](_0x460f4f);const _0x4a1ef3=_0x2be342=>{const _0xba663f=_0x4f9a78,_0xff5e51=setTimeout(()=>{const _0x2bbd61=_0x3441;if(this[_0x2bbd61(0x10e)][_0x2bbd61(0x100)](_0x460f4f)===_0xff5e51)this[_0x2bbd61(0x10e)][_0x2bbd61(0x102)](_0x460f4f);if(!this[_0x2bbd61(0xf4)](_0x460f4f,_0x5c4efe))return;const _0x16335f=this[_0x2bbd61(0xfd)][_0x2bbd61(0xee)](_0x460f4f)??_0x8c9495;if(_0x16335f===undefined||_0x16335f[_0x2bbd61(0xf8)]===null)return;void this[_0x2bbd61(0xfc)](_0x16335f)[_0x2bbd61(0xef)](({context:_0x30b93f})=>{const _0x3eb654=_0x2bbd61;if(!this[_0x3eb654(0xf4)](_0x460f4f,_0x5c4efe))return;if(_0x30b93f===null){if(_0x273bd5===undefined)return;_0x273bd5=undefined,this[_0x3eb654(0xfd)][_0x3eb654(0x105)]({'sessionId':_0x16335f['id'],'workspaceId':_0x16335f[_0x3eb654(0x10f)],'context':null,'pending':![]});}else(_0x273bd5===undefined||!sameUsage(_0x273bd5,_0x30b93f))&&(_0x273bd5=_0x30b93f,this[_0x3eb654(0xfd)][_0x3eb654(0x105)]({'sessionId':_0x16335f['id'],'workspaceId':_0x16335f[_0x3eb654(0x10f)],'context':_0x30b93f,'pending':![]}));})[_0x2bbd61(0xfa)](()=>undefined)[_0x2bbd61(0xf2)](()=>{const _0x2bf4e4=_0x2bbd61;if(!this[_0x2bf4e4(0xf4)](_0x460f4f,_0x5c4efe))return;if(_0x2be342+(0x1*-0xb0c+0x8c4+0x249)<REFRESH_DELAYS_MS[_0x2bf4e4(0x116)])_0x4a1ef3(_0x2be342+(-0x1*0x23ce+0x25db+-0x20c));else this[_0x2bf4e4(0x107)][_0x2bf4e4(0x102)](_0x460f4f);});},REFRESH_DELAYS_MS[_0x2be342]);this[_0xba663f(0x10e)][_0xba663f(0xfe)](_0x460f4f,_0xff5e51),_0xff5e51[_0xba663f(0xff)]();};_0x4a1ef3(0x1*-0x677+-0x2f5*0xb+0x26fe);}[_0x11350d(0x118)](){const _0x3de8d4=_0x11350d;for(const _0xd46d32 of this[_0x3de8d4(0x10e)][_0x3de8d4(0x113)]())clearTimeout(_0xd46d32);for(const _0x465559 of this[_0x3de8d4(0x109)][_0x3de8d4(0x113)]())clearTimeout(_0x465559);this[_0x3de8d4(0x10e)][_0x3de8d4(0x108)](),this[_0x3de8d4(0x109)][_0x3de8d4(0x108)](),this[_0x3de8d4(0x107)][_0x3de8d4(0x108)](),this[_0x3de8d4(0xf0)][_0x3de8d4(0x108)]();}[_0x11350d(0xf4)](_0x37c187,_0x572de7){const _0x50a331=_0x11350d;return!this[_0x50a331(0xfd)][_0x50a331(0x106)]()&&this[_0x50a331(0x107)][_0x50a331(0x100)](_0x37c187)===_0x572de7;}[_0x11350d(0x10b)](_0x14ddd3){const _0x4ead41=_0x11350d,_0x5c72d7=this[_0x4ead41(0x109)][_0x4ead41(0x100)](_0x14ddd3);if(_0x5c72d7!==undefined)clearTimeout(_0x5c72d7);this[_0x4ead41(0x109)][_0x4ead41(0x102)](_0x14ddd3),this[_0x4ead41(0xf0)][_0x4ead41(0x102)](_0x14ddd3);}}function _0x3441(_0x460f4f,_0x8c9495){_0x460f4f=_0x460f4f-(0x3*-0xc57+0x1a7*0xc+0x121e);const _0x387819=_0x3928();let _0x5c4efe=_0x387819[_0x460f4f];if(_0x3441['wHTTsf']===undefined){var _0x273bd5=function(_0xff5e51){const _0x16335f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30b93f='',_0xd46d32='';for(let _0x465559=-0x1*0x76e+0x2f9*-0xd+-0x695*-0x7,_0x37c187,_0x572de7,_0x14ddd3=0x25*-0x35+-0xfa2+0x43*0x59;_0x572de7=_0xff5e51['charAt'](_0x14ddd3++);~_0x572de7&&(_0x37c187=_0x465559%(-0x217c+-0x2*0x63+-0x52*-0x6b)?_0x37c187*(-0x13ab+-0x581*-0x1+0x29*0x5a)+_0x572de7:_0x572de7,_0x465559++%(-0x20*-0x6+0x1*-0x183+0x1*0xc7))?_0x30b93f+=String['fromCharCode'](0x15*-0xe2+-0x1a50+0x2dd9&_0x37c187>>(-(-0x1*0x203b+-0x8*-0x444+-0x15*0x17)*_0x465559&-0x255+-0x264f+0x28aa)):0xda8*-0x2+-0xea1+0x4a9*0x9){_0x572de7=_0x16335f['indexOf'](_0x572de7);}for(let _0x5c72d7=0x1*-0xb0c+0x8c4+0x248,_0x5a1888=_0x30b93f['length'];_0x5c72d7<_0x5a1888;_0x5c72d7++){_0xd46d32+='%'+('00'+_0x30b93f['charCodeAt'](_0x5c72d7)['toString'](-0x1*0x23ce+0x25db+-0x1fd))['slice'](-(0x1*-0x677+-0x2f5*0xb+0x2700));}return decodeURIComponent(_0xd46d32);};_0x3441['rFyYcO']=_0x273bd5,_0x3441['nfyPqI']={},_0x3441['wHTTsf']=!![];}const _0x4a1ef3=_0x387819[0x2*-0x8c8+-0x5*0x311+-0x4b3*-0x7];_0x3441['zUbfwF']!==_0x4a1ef3&&(_0x3441['nfyPqI']={},_0x3441['zUbfwF']=_0x4a1ef3);const _0x2be342=_0x3441['nfyPqI'][_0x460f4f];return _0x2be342===undefined?(_0x5c4efe=_0x3441['rFyYcO'](_0x5c4efe),_0x3441['nfyPqI'][_0x460f4f]=_0x5c4efe):_0x5c4efe=_0x2be342,_0x5c4efe;}function sameUsage(_0x5a1888,_0x4d5602){const _0x294152=_0x11350d;return _0x5a1888[_0x294152(0xfb)]===_0x4d5602[_0x294152(0xfb)]&&_0x5a1888[_0x294152(0x112)]===_0x4d5602[_0x294152(0x112)]&&_0x5a1888[_0x294152(0x11a)]===_0x4d5602[_0x294152(0x11a)]&&_0x5a1888[_0x294152(0xf7)]===_0x4d5602[_0x294152(0xf7)];}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0xe862(){const _0xb712a0=['mtzYCgLkrLO','B3b0Aw9UCW','twLZC2LVBIbdB250Aw51zq','CMvXDwLYzq','y29TBwfUzhm','CgvUzgLUz01LC3nHz2vZ','C29Tzq','zxH0zxjUywXtzxnZAw9Uswq','B2jQzwn0','DxbSB2fKCW','ndK3mtiZEhnuugns','CgXHBG','ywnJzxb0','twLZC2LVBIbtDgfYDa','ywn0AxzLu2vZC2LVBLj1BG','A2LUza','zgvMzxjYzwq','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','z2v0','z2v0qwDLBNrtzxnZAw9U','AxnbCNjHEq','mM1pyK95wq','D29YA3nWywnLswq','CMvZB2X2zq','BgLZDa','C3vIBwL0twLZC2LVBG','tuvtu0fhrv9jtLzbteLe','y2XLyw51Ca','BwLZC2LVBK1LC3nHz2u','ntb4ANbYtMm','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','mZyWmdC4veTVzuPr','CxvLDwvjDgvT','y2fJAgu','ChjLC2vUDa','y2XLyxi','CNvUDgLTzq','yxr0ywnOBwvUDhm','CgvYC2LZDef0DgfJAg1LBNrZ','C2vZC2LVBKLK','zMLUze1LC3nHz2vtDwjTAxnZAw9U','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','mte3nJKZA1bfvhPM','zMLSDgvY','Dg9Rzw4','CgvYC2LZDezPBgvZ','ChvIBgLZAen1CNjLBNruDxjU','ywn0AxzHDgvK','AxnjBNrLz2vY','CMvHzhK','zgvMyxvSDa','u0vtu0LptL9jtLzbteLe','B3bLCMf0Aw9UCW','BwvZC2fNzq','mtqYotC3mgjnDxbgua','uvvfvuu','C2vZC2LVBG','BwfYqwDLBNrnB2rLBa','y29UC3vTzq','y29TBwfUzeLK','y3DK','uKvtvefsveLorW','CxvLDwu','Aw50zxjUywXnAxnZAw9U','mtyWmdqYnxrQCeP2sG','ndjtwuzXBMu','nJi0nJzMuePHthy','BwLZC2LVBG','y2XPzw50twvZC2fNzuLK','CNvU','zw1PDfnLC3nPB24','x19Yzxf1zxn0vxnLCKLK','BwfW','zgvSzxrL','C2vZC2LVBLf1zxvL','uKvqtefdrv9dvvjsru5u','BwLZC2LVBJO','y2HHBM5LBfrVA2vU','CNvUBMvY','y2f0y2G','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','zMfZDa','BwLZC2LVBLbYzxbHCMf0Aw9UrMfPBgvK','AxntywzLsw50zwDLCG','yxr0ywnOBwvUDeLKCW','CMv2AxnPB24','AxrLBq','ChjLCgfYzu1LC3nHz2vjBNb1Da','CNvUBMvYCW','x19TAxnZAw9U','ChjLCgfYzq','uvvfvuve','C3rYAw5N','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','mtmXmZi4otzyvenJAKq','BwfYqwDLBNrnB2rLBhm','Bw9KzwW','x19YDw5UzxjdB250zw50','ChjLCgfYzu1PC3nPB25jBNnLCNrPB24','C3rHCNq','CgvYC29UywXjBNn0CNvJDgLVBNm','zMfPBfbYzxbHCMf0Aw9U','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','zwzMB3j0','ywnJzxnZ','BgvUz3rO','C2vJCMv0rw52AxjVBM1LBNq','ntuYy0fVA0vL','CNvUBMvYq29UDgvUDa','C2v0','y29UDgvUDa','yxr0ywnOBwvUDa','y2HHBM5LBe1LC3nHz2u','u1rbuLrfra','C2v0DgXL','x19TAxnZAw9UuMvM','u0vora','C2vYDMLJzvrPzxi','zgvSAxzLCNLjBNrLBNq','y29VCMrPBMf0B3i'];_0xe862=function(){return _0xb712a0;};return _0xe862();}const _0x2ab189=_0x2660;(function(_0x559b03,_0x4a1826){const _0x2e7433=_0x2660,_0x365557=_0x559b03();while(!![]){try{const _0x48ae54=parseInt(_0x2e7433(0x1c6))/(-0x10d4+0x4*-0x680+-0xff*-0x2b)*(-parseInt(_0x2e7433(0x212))/(-0x1*-0x446+-0x4*0x4f4+0xf8c))+parseInt(_0x2e7433(0x21d))/(0x7df+-0x64d+0x18f*-0x1)*(-parseInt(_0x2e7433(0x1fd))/(0xe6a+0xa0e+-0x1874))+-parseInt(_0x2e7433(0x1c4))/(0x11f*-0x1d+-0x1c52+0x1e6d*0x2)+parseInt(_0x2e7433(0x1ba))/(-0x702+0x4bd+-0x1*-0x24b)*(parseInt(_0x2e7433(0x1c5))/(0x1486+-0x19dc+0x55d))+-parseInt(_0x2e7433(0x1f0))/(0x20a6+-0x1*-0x23ae+-0x444c)*(parseInt(_0x2e7433(0x228))/(0x1*-0xa39+0x1c74*-0x1+0x26b6))+parseInt(_0x2e7433(0x21a))/(-0x1a85*0x1+-0xc74+-0x1*-0x2703)*(parseInt(_0x2e7433(0x207))/(-0x2f1+0x1*0xa8d+-0x791))+parseInt(_0x2e7433(0x1e3))/(-0xcbd*-0x1+0x1*-0x73f+-0x572);if(_0x48ae54===_0x4a1826)break;else _0x365557['push'](_0x365557['shift']());}catch(_0x2f05c3){_0x365557['push'](_0x365557['shift']());}}}(_0xe862,0x2e*0x4c67+0x89bf2+-0x35*0x2349));import{randomUUID}from'node:crypto';function _0x2660(_0xc31afe,_0x3bf3a2){_0xc31afe=_0xc31afe-(0xd27+-0x1931+0xdbc);const _0x54008f=_0xe862();let _0x3dae79=_0x54008f[_0xc31afe];if(_0x2660['JzbTJQ']===undefined){var _0xc000cf=function(_0x5b1c44){const _0x9e044='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48990c='',_0x28e92c='';for(let _0x64889e=-0xe0b+0x2bb*-0x2+0x1381,_0x4a00ea,_0x5f1c9f,_0x283a62=0x23b1+0x1*0x18ee+-0x3c9f;_0x5f1c9f=_0x5b1c44['charAt'](_0x283a62++);~_0x5f1c9f&&(_0x4a00ea=_0x64889e%(0x253d*-0x1+0x1274+-0x12cd*-0x1)?_0x4a00ea*(0x17*0x4f+0x1334+-0x1a0d)+_0x5f1c9f:_0x5f1c9f,_0x64889e++%(-0x25b7+-0x406+-0x3*-0xdeb))?_0x48990c+=String['fromCharCode'](-0x4*0x770+-0xa*0x3e+-0x212b*-0x1&_0x4a00ea>>(-(-0x5*-0x4d+0x23a+-0x3b9)*_0x64889e&0xa57+0x1f*-0xa9+-0x2*-0x513)):0x1*0x131c+0x8c2+-0x1bde){_0x5f1c9f=_0x9e044['indexOf'](_0x5f1c9f);}for(let _0xf425f0=-0x2*-0xbd3+0x243e+-0x3be4,_0x9644b4=_0x48990c['length'];_0xf425f0<_0x9644b4;_0xf425f0++){_0x28e92c+='%'+('00'+_0x48990c['charCodeAt'](_0xf425f0)['toString'](0x65*0x27+-0x4*-0x6a3+-0x29df))['slice'](-(0x1e8c+0x1*-0x82d+-0x165d));}return decodeURIComponent(_0x28e92c);};_0x2660['ugrfEd']=_0xc000cf,_0x2660['CfsiWp']={},_0x2660['JzbTJQ']=!![];}const _0x3deb3b=_0x54008f[-0x22b8+0x1bf4+0x6c4];_0x2660['ERjfKL']!==_0x3deb3b&&(_0x2660['CfsiWp']={},_0x2660['ERjfKL']=_0x3deb3b);const _0x367137=_0x2660['CfsiWp'][_0xc31afe];return _0x367137===undefined?(_0x3dae79=_0x2660['ugrfEd'](_0x3dae79),_0x2660['CfsiWp'][_0xc31afe]=_0x3dae79):_0x3dae79=_0x367137,_0x3dae79;}import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';const INTERNAL_MISSION=Symbol(_0x2ab189(0x1c3));export class SessionMessageService{[_0x2ab189(0x1fe)];[_0x2ab189(0x202)]=new Map();constructor(_0x54f903){const _0x427bab=_0x2ab189;this[_0x427bab(0x1fe)]=_0x54f903;}[_0x2ab189(0x1b8)](){const _0x1bd730=_0x2ab189;return{'session.message':_0x25b574=>this[_0x1bd730(0x1b9)](record(_0x25b574)),'session.channel.message':_0x2db24a=>this[_0x1bd730(0x1f5)](record(_0x2db24a)),'session.channel.token':_0x3c47f0=>this[_0x1bd730(0x1d1)](record(_0x3c47f0))};}[_0x2ab189(0x216)](_0x32c91b){const _0x4072b6=_0x2ab189;return this[_0x4072b6(0x1b9)]({[INTERNAL_MISSION]:!![],'sessionId':_0x32c91b[_0x4072b6(0x225)],'clientMessageId':_0x4072b6(0x1d0)+randomUUID(),'content':_0x32c91b[_0x4072b6(0x20c)]===_0x4072b6(0x1e8)?_0x4072b6(0x20a):_0x4072b6(0x1ff),'__runnerContent':_0x32c91b[_0x4072b6(0x1f3)],'__missionRef':_0x32c91b[_0x4072b6(0x1c7)],'deliveryIntent':_0x32c91b[_0x4072b6(0x1fb)],'secretEnvironment':_0x32c91b[_0x4072b6(0x1ef)],'personalInstructions':_0x32c91b[_0x4072b6(0x1e9)]});}async[_0x2ab189(0x1b9)](_0x24aff0){const _0x11364b=_0x2ab189;if(typeof _0x24aff0[_0x11364b(0x225)]!==_0x11364b(0x1e1)||typeof _0x24aff0[_0x11364b(0x1c8)]!==_0x11364b(0x1e1)||_0x24aff0[_0x11364b(0x1c8)][_0x11364b(0x1ee)]===-0x2fe*0x4+0x1*0x23b1+-0x17b9||typeof _0x24aff0[_0x11364b(0x1f3)]!==_0x11364b(0x1e1)||_0x24aff0[_0x11364b(0x1f3)][_0x11364b(0x1ee)]===0x253d*-0x1+0x1274+-0x643*-0x3)throw new Error(_0x11364b(0x217));const _0x5504a5=_0x24aff0[_0x11364b(0x1c8)],_0x51ce58=_0x24aff0[_0x11364b(0x1f3)],_0x2b8ae9=_0x24aff0[INTERNAL_MISSION]===!![],_0x11a279=_0x2b8ae9&&typeof _0x24aff0[_0x11364b(0x1e6)]===_0x11364b(0x1e1)?_0x24aff0[_0x11364b(0x1e6)]:_0x51ce58,_0x2b3659=parseMessageAttachments(_0x24aff0[_0x11364b(0x223)]),_0xc31afe=parseSecretEnvironment(_0x24aff0[_0x11364b(0x1ef)]),_0x3bf3a2=parseComposerAttachmentIds(_0x24aff0[_0x11364b(0x1d9)]);if(_0x2b3659[_0x11364b(0x1ee)]>0x17*0x4f+0x1334+-0x1a4d&&_0x3bf3a2[_0x11364b(0x1ee)]>-0x25b7+-0x406+-0x1*-0x29bd)throw new Error(_0x11364b(0x1d5));const _0x54008f=await this[_0x11364b(0x1fe)][_0x11364b(0x214)](_0x24aff0[_0x11364b(0x225)]),_0x3dae79=_0x54008f[_0x11364b(0x1bc)],_0xc000cf=_0x2b8ae9&&typeof _0x24aff0[_0x11364b(0x1e9)]===_0x11364b(0x1e1)?_0x24aff0[_0x11364b(0x1e9)]:personalInstructionsForRunner(_0x24aff0[_0x11364b(0x1e9)],_0x3dae79[_0x11364b(0x1d2)]),_0x3deb3b=_0x24aff0[_0x11364b(0x1fb)]??_0x11364b(0x1f9);if(_0x3deb3b!==_0x11364b(0x1f9)&&_0x3deb3b!==_0x11364b(0x1bb)&&_0x3deb3b!==_0x11364b(0x1cf))throw new Error(_0x11364b(0x217));const _0x367137=_0x3dae79['id']+'\x00'+_0x5504a5,_0x5b1c44=this[_0x11364b(0x202)][_0x11364b(0x20f)](_0x367137);if(_0x5b1c44!==undefined)return _0x5b1c44;const _0x9e044=this[_0x11364b(0x1fe)][_0x11364b(0x222)][_0x11364b(0x20e)](_0x3dae79['id'],_0x5504a5);if(_0x9e044!==undefined)throw new Error(_0x9e044);const _0x48990c=this[_0x11364b(0x1fe)][_0x11364b(0x222)][_0x11364b(0x226)](_0x3dae79['id'],_0x5504a5);if(_0x48990c!==undefined)return{'session':this[_0x11364b(0x1fe)][_0x11364b(0x220)](_0x3dae79),'run':_0x48990c[_0x11364b(0x1c9)],..._0x48990c[_0x11364b(0x20c)]===_0x11364b(0x1c2)?{'queueItemId':_0x48990c[_0x11364b(0x1db)]['id']}:{},'delivery':_0x48990c[_0x11364b(0x20c)]===_0x11364b(0x1c2)?_0x11364b(0x1e0):_0x11364b(0x1f6),'idempotent':!![]};const _0x28e92c=_0x2b8ae9?undefined:this[_0x11364b(0x1fe)][_0x11364b(0x219)](_0x3dae79,_0x51ce58),_0x64889e=_0x28e92c?.[_0x11364b(0x1f1)]??_0x11a279,_0x4a00ea=_0x28e92c?.[_0x11364b(0x1b3)]===!![]?_0x11364b(0x20a):_0x51ce58,_0x5f1c9f=_0x28e92c===undefined?_0x3deb3b:_0x11364b(0x1cf),_0x283a62=((async()=>{const _0x4f3e8d=_0x11364b,_0xf425f0=randomUUID(),_0x9644b4=this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x1ce)](_0x3dae79['id']),_0xb36fab=this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x20b)](_0x3dae79['id']),_0xef78b2=_0x5f1c9f===_0x4f3e8d(0x1cf)?_0xb36fab:undefined,_0x565d7b=this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x1fc)][_0x4f3e8d(0x209)]({'runId':_0xf425f0,'sessionId':_0x3dae79['id'],'clientMessageId':_0x5504a5,'content':_0x4a00ea,...Number[_0x4f3e8d(0x1d8)](_0x24aff0[_0x4f3e8d(0x1cb)])?{'initiatedByUserId':_0x24aff0[_0x4f3e8d(0x1cb)]}:{},..._0x2b3659[_0x4f3e8d(0x1ee)]===-0x4*0x770+-0xa*0x3e+-0x80b*-0x4?{}:{'attachments':_0x2b3659}}),_0x253b8d=_0x565d7b[_0x4f3e8d(0x21e)]?.['id']??_0x565d7b[_0x4f3e8d(0x1c9)]['id'],_0x4a796a=_0x24aff0[_0x4f3e8d(0x1de)]===!![]?_0x3dae79:this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x1d4)](_0x3dae79['id'],sessionTitleFromFirstMessage(_0x51ce58)),_0x1fbef1=_0x54008f[_0x4f3e8d(0x20d)]&&_0x3bf3a2[_0x4f3e8d(0x1ee)]===-0x5*-0x4d+0x23a+-0x3bb&&_0x2b3659[_0x4f3e8d(0x1ee)]===0xa57+0x1f*-0xa9+-0x9*-0x120;this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x1ca)](_0x4a796a);if(_0x565d7b[_0x4f3e8d(0x21e)]===undefined)this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x1fc)][_0x4f3e8d(0x1b2)](_0x565d7b[_0x4f3e8d(0x1c9)]['id']);const _0x3088ae=async()=>{const _0xe9d1f8=_0x4f3e8d;try{const _0x5717e0=await _0x54008f[_0xe9d1f8(0x1b5)];if(_0x1fbef1)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1ca)](_0x5717e0);const _0x17aead=await this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x206)][_0xe9d1f8(0x214)](_0x3dae79[_0xe9d1f8(0x213)],_0x3bf3a2),_0x3c47ee=_0x3bf3a2[_0xe9d1f8(0x1ee)]===0x1*0x131c+0x8c2+-0x1bde?_0x2b3659:_0x17aead[_0xe9d1f8(0x1cc)](_0x2f9450=>_0x2f9450[_0xe9d1f8(0x1f4)]),_0x2fbcc8=_0x3c47ee[_0xe9d1f8(0x229)](isImageAttachment),_0x20db64=_0x3c47ee[_0xe9d1f8(0x229)](isRunnerImageAttachment),_0x1844d9=await this[_0xe9d1f8(0x224)](_0x3dae79,_0xf425f0,_0x3c47ee),_0x4cec08=withNonImageAttachmentPrompt(_0x64889e,_0x1844d9),_0x315f34=this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x201)][_0xe9d1f8(0x215)](_0x3dae79['id'])[_0xe9d1f8(0x203)](_0x5ec30e=>_0x5ec30e[_0xe9d1f8(0x1bf)]===_0xe9d1f8(0x208)),_0x23fb2b=this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1dd)][_0xe9d1f8(0x200)](_0x5717e0[_0xe9d1f8(0x1d2)]);if(_0x565d7b[_0xe9d1f8(0x21e)]===undefined){this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x222)][_0xe9d1f8(0x1e2)](_0x565d7b[_0xe9d1f8(0x1c9)]['id'],_0x3c47ee);if(_0x3bf3a2[_0xe9d1f8(0x1ee)]>-0x2*-0xbd3+0x243e+-0x3be4)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1b2)](_0x565d7b[_0xe9d1f8(0x1c9)]['id']);}else this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x222)][_0xe9d1f8(0x1eb)](_0x565d7b[_0xe9d1f8(0x21e)]['id'],_0x3c47ee);this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1df)](_0x253b8d,{'runId':_0xf425f0,'sessionId':_0x5717e0['id'],'workspaceId':_0x5717e0[_0xe9d1f8(0x213)],'runner':_0x5717e0[_0xe9d1f8(0x1d2)],'input':_0x23fb2b[_0xe9d1f8(0x1dc)](_0x4cec08,_0x315f34?_0xe9d1f8(0x208):_0xe9d1f8(0x1b6)),'clientMessageId':_0x5504a5,'attachments':_0x20db64,'attachmentPaths':_0x1844d9,'cwd':_0x5717e0[_0xe9d1f8(0x1c0)],'externalSessionId':_0x5717e0[_0xe9d1f8(0x204)],'model':_0x5717e0[_0xe9d1f8(0x1e5)],'effort':_0x5717e0[_0xe9d1f8(0x1ec)],'access':_0x5717e0[_0xe9d1f8(0x1ed)],'collaborationMode':_0x315f34?_0xe9d1f8(0x208):_0xe9d1f8(0x1b6),'secretEnvironment':_0xc31afe,..._0xc000cf===undefined?{}:{'personalInstructions':_0xc000cf},..._0x24aff0[_0xe9d1f8(0x1bd)]===undefined?{}:{'marAgentModel':_0x24aff0[_0xe9d1f8(0x1bd)]},..._0x24aff0[_0xe9d1f8(0x1e4)]===undefined?{}:{'marAgentModels':_0x24aff0[_0xe9d1f8(0x1e4)]},..._0x28e92c!==undefined?{'mission':_0x28e92c[_0xe9d1f8(0x1c7)]}:isMissionRef(_0x24aff0[_0xe9d1f8(0x1f8)])?{'mission':_0x24aff0[_0xe9d1f8(0x1f8)]}:{},..._0x23fb2b[_0xe9d1f8(0x1fa)]()===_0xe9d1f8(0x1d6)?{'serviceTier':_0xe9d1f8(0x1d6)}:{}}),this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x223)][_0xe9d1f8(0x21f)](_0x253b8d,_0x2fbcc8),void this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x206)][_0xe9d1f8(0x1be)](_0x3bf3a2)[_0xe9d1f8(0x1d3)](()=>undefined);if(_0x28e92c!==undefined)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1e7)](_0x3dae79['id'],_0x253b8d);return this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1f7)]({'submissionId':_0x253b8d,'intent':_0x5f1c9f,'queueBefore':_0x9644b4,..._0xef78b2===undefined?{}:{'activeRunId':_0xef78b2['id']}});}catch(_0x5ba611){if(_0x28e92c!==undefined)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1d7)](_0x3dae79,_0x28e92c[_0xe9d1f8(0x1c7)],_0x28e92c[_0xe9d1f8(0x1b3)]);this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1ea)](_0x253b8d,safeErrorCode(_0x5ba611,_0xe9d1f8(0x21b))),this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x223)][_0xe9d1f8(0x221)](_0x253b8d),this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x223)][_0xe9d1f8(0x218)](_0x253b8d);throw _0x5ba611;}};if(_0x1fbef1)void _0x3088ae()[_0x4f3e8d(0x1d3)](()=>undefined);const _0x4926c9=_0x1fbef1?_0x565d7b[_0x4f3e8d(0x21e)]===undefined?_0x4f3e8d(0x1f6):_0x5f1c9f===_0x4f3e8d(0x1cf)?_0x4f3e8d(0x1c1):_0x4f3e8d(0x1e0):await _0x3088ae();return{'session':this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x220)](_0x4a796a),'run':_0x565d7b[_0x4f3e8d(0x1c9)],..._0x565d7b[_0x4f3e8d(0x21e)]===undefined&&(_0x2b8ae9||_0x28e92c?.[_0x4f3e8d(0x1b3)]===!![])?{'turn':this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x21c)](_0x565d7b[_0x4f3e8d(0x1c9)]['id'])}:{},..._0x565d7b[_0x4f3e8d(0x21e)]===undefined?{}:{'queueItemId':_0x565d7b[_0x4f3e8d(0x21e)]['id']},'delivery':_0x4926c9,'idempotent':![]};})());this[_0x11364b(0x202)][_0x11364b(0x1f2)](_0x367137,_0x283a62);try{return await _0x283a62;}finally{if(this[_0x11364b(0x202)][_0x11364b(0x20f)](_0x367137)===_0x283a62)this[_0x11364b(0x202)][_0x11364b(0x1cd)](_0x367137);}}async[_0x2ab189(0x224)](_0x652bc0,_0x5f4ec7,_0x4b07a4){const _0x39f7c9=_0x2ab189;return this[_0x39f7c9(0x1fe)][_0x39f7c9(0x223)][_0x39f7c9(0x22b)](_0x652bc0[_0x39f7c9(0x1c0)],_0x5f4ec7,_0x4b07a4[_0x39f7c9(0x229)](_0x4299f2=>!isRunnerImageAttachment(_0x4299f2)));}async[_0x2ab189(0x1f5)](_0x28139b){const _0x47fe00=_0x2ab189;if(typeof _0x28139b[_0x47fe00(0x225)]!==_0x47fe00(0x1e1)||typeof _0x28139b[_0x47fe00(0x22a)]!==_0x47fe00(0x1e1)||typeof _0x28139b[_0x47fe00(0x1c8)]!==_0x47fe00(0x1e1)||typeof _0x28139b[_0x47fe00(0x1f3)]!==_0x47fe00(0x1e1)||_0x28139b[_0x47fe00(0x1f3)][_0x47fe00(0x1ee)]===0x65*0x27+-0x4*-0x6a3+-0x29ef||!Number[_0x47fe00(0x1d8)](_0x28139b[_0x47fe00(0x1cb)]))throw new Error(_0x47fe00(0x217));const _0x47d25d=this[_0x47fe00(0x1fe)][_0x47fe00(0x222)][_0x47fe00(0x210)](_0x28139b[_0x47fe00(0x225)]);if(_0x47d25d===undefined||_0x47d25d[_0x47fe00(0x1d1)]!==_0x28139b[_0x47fe00(0x22a)])throw new Error(_0x47fe00(0x227));return this[_0x47fe00(0x1b9)]({'sessionId':_0x28139b[_0x47fe00(0x225)],'clientMessageId':_0x28139b[_0x47fe00(0x1c8)],'content':_0x28139b[_0x47fe00(0x1f3)],'deliveryIntent':_0x47fe00(0x1bb),'__requestUserId':_0x28139b[_0x47fe00(0x1cb)]});}[_0x2ab189(0x1d1)](_0x27bcfb){const _0x27a44c=_0x2ab189;if(typeof _0x27bcfb[_0x27a44c(0x225)]!==_0x27a44c(0x1e1))throw new Error(_0x27a44c(0x1b7));const _0x441da7=this[_0x27a44c(0x1fe)][_0x27a44c(0x1d1)](_0x27bcfb[_0x27a44c(0x225)]);if(_0x441da7===undefined)throw new Error(_0x27a44c(0x227));return{'token':_0x441da7};}}function record(_0x1e8b4f){const _0x2e862b=_0x2ab189;if(_0x1e8b4f===null||typeof _0x1e8b4f!==_0x2e862b(0x205)||Array[_0x2e862b(0x211)](_0x1e8b4f))return{};return _0x1e8b4f;}function isMissionRef(_0x86c3df){const _0x2a95d3=_0x2ab189;return _0x86c3df!==null&&typeof _0x86c3df===_0x2a95d3(0x205)&&typeof _0x86c3df['id']===_0x2a95d3(0x1e1)&&Number[_0x2a95d3(0x1b4)](_0x86c3df[_0x2a95d3(0x1da)]);}
2
+ const _0x3b5585=_0x1c84;(function(_0x56f5da,_0x352127){const _0x9a6bc9=_0x1c84,_0x1a89aa=_0x56f5da();while(!![]){try{const _0x4b3518=parseInt(_0x9a6bc9(0x1b2))/(0x2*-0xa72+-0x4d8*0x5+0x2d1d)*(parseInt(_0x9a6bc9(0x1a1))/(-0x2325+0x25e5+-0x2be))+parseInt(_0x9a6bc9(0x1d1))/(-0x1a9c+-0x1cf*0x8+0x2917*0x1)*(parseInt(_0x9a6bc9(0x1c5))/(0x37e+-0x1fc+0xbf*-0x2))+parseInt(_0x9a6bc9(0x19e))/(-0x192a+-0x12fb+0x1*0x2c2a)*(-parseInt(_0x9a6bc9(0x1a6))/(0x218f+0x2248+-0x43d1))+-parseInt(_0x9a6bc9(0x1cc))/(0x1802+0x11e4+-0x29df)+-parseInt(_0x9a6bc9(0x196))/(-0x136f+-0x95f*0x1+-0xe6b*-0x2)+-parseInt(_0x9a6bc9(0x17a))/(-0x10bc+0x7*0x197+-0x5a4*-0x1)+parseInt(_0x9a6bc9(0x184))/(0x1bf5+-0x1eef+-0x1*-0x304);if(_0x4b3518===_0x352127)break;else _0x1a89aa['push'](_0x1a89aa['shift']());}catch(_0x2e3370){_0x1a89aa['push'](_0x1a89aa['shift']());}}}(_0x44a0,0x13e9f9*-0x1+-0x3886e+-0x26*-0xf87a));import{randomUUID}from'node:crypto';import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';function _0x1c84(_0x53fe7d,_0x2c529a){_0x53fe7d=_0x53fe7d-(0x886+0xba1+0x12af*-0x1);const _0x1b6419=_0x44a0();let _0x5b2320=_0x1b6419[_0x53fe7d];if(_0x1c84['KjPCwh']===undefined){var _0x28965c=function(_0x23afbd){const _0x1b6afd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a6208='',_0x427994='';for(let _0x2788a2=0x1d37+0xc70+-0x1*0x29a7,_0x484434,_0x4d5909,_0x3e31eb=0x1*0xbfd+-0x2198*0x1+0x159b;_0x4d5909=_0x23afbd['charAt'](_0x3e31eb++);~_0x4d5909&&(_0x484434=_0x2788a2%(-0xaf9*-0x3+-0xa4e*-0x2+0x3583*-0x1)?_0x484434*(-0x11c3*0x2+-0x9c9+0x2d8f)+_0x4d5909:_0x4d5909,_0x2788a2++%(0x11*0x24a+0xd3d*-0x2+0xd4*-0xf))?_0x5a6208+=String['fromCharCode'](-0x1a*0x17b+0x1a85+0xcf8&_0x484434>>(-(-0xb87+-0x115*0x13+-0x34*-0x9e)*_0x2788a2&-0xa*-0x133+-0xb51*0x1+-0xa7)):-0x1857+-0x1ba6+0x33fd){_0x4d5909=_0x1b6afd['indexOf'](_0x4d5909);}for(let _0x2abb2d=-0x1*-0x174d+-0x8ee+0xe5f*-0x1,_0x4e6ba8=_0x5a6208['length'];_0x2abb2d<_0x4e6ba8;_0x2abb2d++){_0x427994+='%'+('00'+_0x5a6208['charCodeAt'](_0x2abb2d)['toString'](0x65f*0x2+-0xb89*-0x2+-0x23c*0x10))['slice'](-(0x17*-0xab+-0xd3f*-0x1+0x220));}return decodeURIComponent(_0x427994);};_0x1c84['YLhFXE']=_0x28965c,_0x1c84['CWvkeq']={},_0x1c84['KjPCwh']=!![];}const _0x2e0821=_0x1b6419[0x1e8+-0xd99*-0x1+-0xf81];_0x1c84['rSIsSW']!==_0x2e0821&&(_0x1c84['CWvkeq']={},_0x1c84['rSIsSW']=_0x2e0821);const _0xdcd790=_0x1c84['CWvkeq'][_0x53fe7d];return _0xdcd790===undefined?(_0x5b2320=_0x1c84['YLhFXE'](_0x5b2320),_0x1c84['CWvkeq'][_0x53fe7d]=_0x5b2320):_0x5b2320=_0xdcd790,_0x5b2320;}const INTERNAL_MISSION=Symbol(_0x3b5585(0x1c0));export class SessionMessageService{[_0x3b5585(0x1c4)];[_0x3b5585(0x1dd)]=new Map();constructor(_0x14815f){const _0x446146=_0x3b5585;this[_0x446146(0x1c4)]=_0x14815f;}[_0x3b5585(0x1cf)](){const _0x4734af=_0x3b5585;return{'session.message':_0x2ff4ca=>this[_0x4734af(0x1d4)](record(_0x2ff4ca)),'session.channel.message':_0xb08877=>this[_0x4734af(0x1d9)](record(_0xb08877)),'session.channel.token':_0x1cf049=>this[_0x4734af(0x1a9)](record(_0x1cf049))};}[_0x3b5585(0x191)](_0x3fdb2e){const _0x291616=_0x3b5585;return this[_0x291616(0x1d4)]({[INTERNAL_MISSION]:!![],'sessionId':_0x3fdb2e[_0x291616(0x17c)],'clientMessageId':_0x291616(0x1e3)+randomUUID(),'content':_0x3fdb2e[_0x291616(0x180)]===_0x291616(0x1ec)?_0x291616(0x1b9):_0x291616(0x1d7),'__runnerContent':_0x3fdb2e[_0x291616(0x195)],'__missionRef':_0x3fdb2e[_0x291616(0x1ca)],'deliveryIntent':_0x3fdb2e[_0x291616(0x1b4)],'secretEnvironment':_0x3fdb2e[_0x291616(0x17d)],'personalInstructions':_0x3fdb2e[_0x291616(0x1df)]});}async[_0x3b5585(0x1d4)](_0x5498fd){const _0xcd4903=_0x3b5585;if(typeof _0x5498fd[_0xcd4903(0x17c)]!==_0xcd4903(0x1d5)||typeof _0x5498fd[_0xcd4903(0x1a2)]!==_0xcd4903(0x1d5)||_0x5498fd[_0xcd4903(0x1a2)][_0xcd4903(0x1de)]===-0xe66*-0x2+0x1*-0x596+-0x1736*0x1||typeof _0x5498fd[_0xcd4903(0x195)]!==_0xcd4903(0x1d5)||_0x5498fd[_0xcd4903(0x195)][_0xcd4903(0x1de)]===0x9d*-0x17+0x20eb+-0x2b0*0x7)throw new Error(_0xcd4903(0x190));const _0x413731=_0x5498fd[_0xcd4903(0x1a2)],_0x436ae8=_0x5498fd[_0xcd4903(0x195)],_0x1286b7=_0x5498fd[INTERNAL_MISSION]===!![],_0x875585=_0x1286b7&&typeof _0x5498fd[_0xcd4903(0x18d)]===_0xcd4903(0x1d5)?_0x5498fd[_0xcd4903(0x18d)]:_0x436ae8,_0x3203ee=parseMessageAttachments(_0x5498fd[_0xcd4903(0x1c1)]),_0x404862=parseSecretEnvironment(_0x5498fd[_0xcd4903(0x17d)]),_0xc13438=parseComposerAttachmentIds(_0x5498fd[_0xcd4903(0x1b7)]);if(_0x3203ee[_0xcd4903(0x1de)]>0x2233+0x24c4+-0x1eb*0x25&&_0xc13438[_0xcd4903(0x1de)]>-0x10a*0x1b+0x11*-0xe8+0x15bb*0x2)throw new Error(_0xcd4903(0x1bc));const _0x4ed64c=await this[_0xcd4903(0x1c4)][_0xcd4903(0x185)](_0x5498fd[_0xcd4903(0x17c)]),_0xf1eeef=_0x4ed64c[_0xcd4903(0x1a7)],_0x277306=_0x1286b7&&typeof _0x5498fd[_0xcd4903(0x1df)]===_0xcd4903(0x1d5)?_0x5498fd[_0xcd4903(0x1df)]:personalInstructionsForRunner(_0x5498fd[_0xcd4903(0x1df)],_0xf1eeef[_0xcd4903(0x198)]),_0x53fe7d=_0x5498fd[_0xcd4903(0x1b4)]??_0xcd4903(0x1ee);if(_0x53fe7d!==_0xcd4903(0x1ee)&&_0x53fe7d!==_0xcd4903(0x1ae)&&_0x53fe7d!==_0xcd4903(0x1b6))throw new Error(_0xcd4903(0x190));const _0x2c529a=_0xf1eeef['id']+'\x00'+_0x413731,_0x1b6419=this[_0xcd4903(0x1dd)][_0xcd4903(0x1dc)](_0x2c529a);if(_0x1b6419!==undefined)return _0x1b6419;const _0x5b2320=this[_0xcd4903(0x1c4)][_0xcd4903(0x1e1)][_0xcd4903(0x183)](_0xf1eeef['id'],_0x413731);if(_0x5b2320!==undefined)throw new Error(_0x5b2320);const _0x28965c=this[_0xcd4903(0x1c4)][_0xcd4903(0x1e1)][_0xcd4903(0x1a5)](_0xf1eeef['id'],_0x413731);if(_0x28965c!==undefined)return{'session':this[_0xcd4903(0x1c4)][_0xcd4903(0x187)](_0xf1eeef),'run':_0x28965c[_0xcd4903(0x1ad)],..._0x28965c[_0xcd4903(0x180)]===_0xcd4903(0x1ac)?{'queueItemId':_0x28965c[_0xcd4903(0x192)]['id']}:{},'delivery':_0x28965c[_0xcd4903(0x180)]===_0xcd4903(0x1ac)?_0xcd4903(0x1db):_0xcd4903(0x1d3),'idempotent':!![]};const _0x2e0821=_0x1286b7?undefined:this[_0xcd4903(0x1c4)][_0xcd4903(0x1be)](_0xf1eeef,_0x436ae8),_0xdcd790=_0x2e0821?.[_0xcd4903(0x19a)]??_0x875585,_0x23afbd=_0x2e0821?.[_0xcd4903(0x18c)]===!![]?_0xcd4903(0x1b9):_0x436ae8,_0x1b6afd=_0x2e0821===undefined?_0x53fe7d:_0xcd4903(0x1b6),_0x5a6208=((async()=>{const _0x2ca5a9=_0xcd4903,_0x427994=randomUUID(),_0x2788a2=this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x19d)](_0xf1eeef['id']),_0x484434=this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x1a0)](_0xf1eeef['id']),_0x4d5909=_0x1b6afd===_0x2ca5a9(0x1b6)?_0x484434:undefined,_0x3e31eb=this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1b1)][_0x2ca5a9(0x182)]({'runId':_0x427994,'sessionId':_0xf1eeef['id'],'clientMessageId':_0x413731,'content':_0x23afbd,...Number[_0x2ca5a9(0x197)](_0x5498fd[_0x2ca5a9(0x1ce)])?{'initiatedByUserId':_0x5498fd[_0x2ca5a9(0x1ce)]}:{},..._0x3203ee[_0x2ca5a9(0x1de)]===0x4b7+0x191b*0x1+-0x1dd2?{}:{'attachments':_0x3203ee}}),_0x2abb2d=_0x3e31eb[_0x2ca5a9(0x188)]?.['id']??_0x3e31eb[_0x2ca5a9(0x1ad)]['id'],_0x4e6ba8=_0x5498fd[_0x2ca5a9(0x1c2)]===!![]?_0xf1eeef:this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x18a)](_0xf1eeef['id'],sessionTitleFromFirstMessage(_0x436ae8)),_0x3f4c74=_0x4ed64c[_0x2ca5a9(0x18b)]&&_0xc13438[_0x2ca5a9(0x1de)]===-0x314+-0x1c84+0x1f98&&_0x3203ee[_0x2ca5a9(0x1de)]===-0x1c*-0x50+-0x2*0xa12+-0x1b*-0x6c;this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x19f)](_0x4e6ba8);if(_0x3e31eb[_0x2ca5a9(0x188)]===undefined)this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1b1)][_0x2ca5a9(0x1ed)](_0x3e31eb[_0x2ca5a9(0x1ad)]['id']);const _0x53f780=async()=>{const _0x12186f=_0x2ca5a9;try{const _0x16ec60=await _0x4ed64c[_0x12186f(0x1ef)];if(_0x3f4c74)this[_0x12186f(0x1c4)][_0x12186f(0x19f)](_0x16ec60);const _0xce33e=await this[_0x12186f(0x1c4)][_0x12186f(0x1b3)][_0x12186f(0x185)](_0xf1eeef[_0x12186f(0x1c6)],_0xc13438),_0x27f09d=_0xc13438[_0x12186f(0x1de)]===0x1072+-0x1796+0x724?_0x3203ee:_0xce33e[_0x12186f(0x17e)](_0x501434=>_0x501434[_0x12186f(0x1e6)]),_0x1116d2=_0x27f09d[_0x12186f(0x1eb)](isImageAttachment),_0x467b75=_0x27f09d[_0x12186f(0x1eb)](isRunnerImageAttachment),_0x3f4ac0=await this[_0x12186f(0x18f)](_0xf1eeef,_0x427994,_0x27f09d),_0x124da9=withNonImageAttachmentPrompt(_0x23afbd,_0x3f4ac0),_0x4184cb=withNonImageAttachmentPrompt(_0xdcd790,_0x3f4ac0),_0xc75c99=this[_0x12186f(0x1c4)][_0x12186f(0x19b)][_0x12186f(0x17f)](_0xf1eeef['id'])[_0x12186f(0x179)](_0x52d9a0=>_0x52d9a0[_0x12186f(0x1e9)]===_0x12186f(0x1bd)),_0x10aa1d=this[_0x12186f(0x1c4)][_0x12186f(0x1cd)][_0x12186f(0x181)](_0x16ec60[_0x12186f(0x198)]);if(_0x3e31eb[_0x12186f(0x188)]===undefined){this[_0x12186f(0x1c4)][_0x12186f(0x1e1)][_0x12186f(0x1c3)](_0x3e31eb[_0x12186f(0x1ad)]['id'],_0x124da9,_0x27f09d);if(_0xc13438[_0x12186f(0x1de)]>-0x2059+-0x7*0x75+-0xd*-0x2bc||_0x124da9!==_0x23afbd)this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x1ed)](_0x3e31eb[_0x12186f(0x1ad)]['id']);}else this[_0x12186f(0x1c4)][_0x12186f(0x1e1)][_0x12186f(0x1d0)](_0x3e31eb[_0x12186f(0x188)]['id'],_0x27f09d);this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x1d2)](_0x2abb2d,{'runId':_0x427994,'sessionId':_0x16ec60['id'],'workspaceId':_0x16ec60[_0x12186f(0x1c6)],'runner':_0x16ec60[_0x12186f(0x198)],'input':_0x10aa1d[_0x12186f(0x199)](_0x4184cb,_0xc75c99?_0x12186f(0x1bd):_0x12186f(0x1b5)),'clientMessageId':_0x413731,'attachments':_0x467b75,'attachmentPaths':_0x3f4ac0,'cwd':_0x16ec60[_0x12186f(0x1a8)],'externalSessionId':_0x16ec60[_0x12186f(0x1a4)],'model':_0x16ec60[_0x12186f(0x1ea)],'effort':_0x16ec60[_0x12186f(0x1ba)],'access':_0x16ec60[_0x12186f(0x1aa)],'collaborationMode':_0xc75c99?_0x12186f(0x1bd):_0x12186f(0x1b5),'secretEnvironment':_0x404862,..._0x277306===undefined?{}:{'personalInstructions':_0x277306},..._0x5498fd[_0x12186f(0x1e5)]===undefined?{}:{'marAgentModel':_0x5498fd[_0x12186f(0x1e5)]},..._0x5498fd[_0x12186f(0x1e2)]===undefined?{}:{'marAgentModels':_0x5498fd[_0x12186f(0x1e2)]},..._0x2e0821!==undefined?{'mission':_0x2e0821[_0x12186f(0x1ca)]}:isMissionRef(_0x5498fd[_0x12186f(0x1af)])?{'mission':_0x5498fd[_0x12186f(0x1af)]}:{},..._0x10aa1d[_0x12186f(0x1a3)]()===_0x12186f(0x1ab)?{'serviceTier':_0x12186f(0x1ab)}:{}}),this[_0x12186f(0x1c4)][_0x12186f(0x1c1)][_0x12186f(0x1b8)](_0x2abb2d,_0x1116d2);if(_0x2e0821!==undefined)this[_0x12186f(0x1c4)][_0x12186f(0x1c9)](_0xf1eeef['id'],_0x2abb2d);const _0x39c3aa=this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x193)]({'submissionId':_0x2abb2d,'intent':_0x1b6afd,'queueBefore':_0x2788a2,..._0x4d5909===undefined?{}:{'activeRunId':_0x4d5909['id']}});return void this[_0x12186f(0x1c4)][_0x12186f(0x1b3)][_0x12186f(0x17b)](_0xc13438)[_0x12186f(0x19c)](()=>undefined),_0x39c3aa;}catch(_0x2469d2){if(_0x2e0821!==undefined)this[_0x12186f(0x1c4)][_0x12186f(0x1e4)](_0xf1eeef,_0x2e0821[_0x12186f(0x1ca)],_0x2e0821[_0x12186f(0x18c)]);this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x1d8)](_0x2abb2d,safeErrorCode(_0x2469d2,_0x12186f(0x1b0))),this[_0x12186f(0x1c4)][_0x12186f(0x1c1)][_0x12186f(0x1bf)](_0x2abb2d),this[_0x12186f(0x1c4)][_0x12186f(0x1c1)][_0x12186f(0x1c8)](_0x2abb2d);throw _0x2469d2;}};if(_0x3f4c74)void _0x53f780()[_0x2ca5a9(0x19c)](()=>undefined);const _0x4aea8a=_0x3f4c74?_0x3e31eb[_0x2ca5a9(0x188)]===undefined?_0x2ca5a9(0x1d3):_0x1b6afd===_0x2ca5a9(0x1b6)?_0x2ca5a9(0x1cb):_0x2ca5a9(0x1db):await _0x53f780();return{'session':this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x187)](_0x4e6ba8),'run':_0x3e31eb[_0x2ca5a9(0x1ad)],..._0x3e31eb[_0x2ca5a9(0x188)]===undefined&&(_0x1286b7||_0x2e0821?.[_0x2ca5a9(0x18c)]===!![])?{'turn':this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x1c7)](_0x3e31eb[_0x2ca5a9(0x1ad)]['id'])}:{},..._0x3e31eb[_0x2ca5a9(0x188)]===undefined?{}:{'queueItemId':_0x3e31eb[_0x2ca5a9(0x188)]['id']},'delivery':_0x4aea8a,'idempotent':![]};})());this[_0xcd4903(0x1dd)][_0xcd4903(0x1d6)](_0x2c529a,_0x5a6208);try{return await _0x5a6208;}finally{if(this[_0xcd4903(0x1dd)][_0xcd4903(0x1dc)](_0x2c529a)===_0x5a6208)this[_0xcd4903(0x1dd)][_0xcd4903(0x194)](_0x2c529a);}}async[_0x3b5585(0x18f)](_0x1b2ad5,_0x1e8f52,_0x9f516e){const _0x3d7243=_0x3b5585;return this[_0x3d7243(0x1c4)][_0x3d7243(0x1c1)][_0x3d7243(0x1da)](_0x1b2ad5[_0x3d7243(0x1a8)],_0x1e8f52,_0x9f516e[_0x3d7243(0x1eb)](_0xe2dbe7=>!isRunnerImageAttachment(_0xe2dbe7)));}async[_0x3b5585(0x1d9)](_0x3f3fa2){const _0x542e43=_0x3b5585;if(typeof _0x3f3fa2[_0x542e43(0x17c)]!==_0x542e43(0x1d5)||typeof _0x3f3fa2[_0x542e43(0x189)]!==_0x542e43(0x1d5)||typeof _0x3f3fa2[_0x542e43(0x1a2)]!==_0x542e43(0x1d5)||typeof _0x3f3fa2[_0x542e43(0x195)]!==_0x542e43(0x1d5)||_0x3f3fa2[_0x542e43(0x195)][_0x542e43(0x1de)]===0xb*-0x2d1+0x1*0x1e5d+0x9e*0x1||!Number[_0x542e43(0x197)](_0x3f3fa2[_0x542e43(0x1ce)]))throw new Error(_0x542e43(0x190));const _0x476a9d=this[_0x542e43(0x1c4)][_0x542e43(0x1e1)][_0x542e43(0x1bb)](_0x3f3fa2[_0x542e43(0x17c)]);if(_0x476a9d===undefined||_0x476a9d[_0x542e43(0x1a9)]!==_0x3f3fa2[_0x542e43(0x189)])throw new Error(_0x542e43(0x18e));return this[_0x542e43(0x1d4)]({'sessionId':_0x3f3fa2[_0x542e43(0x17c)],'clientMessageId':_0x3f3fa2[_0x542e43(0x1a2)],'content':_0x3f3fa2[_0x542e43(0x195)],'deliveryIntent':_0x542e43(0x1ae),'__requestUserId':_0x3f3fa2[_0x542e43(0x1ce)]});}[_0x3b5585(0x1a9)](_0x411f1f){const _0x165ea8=_0x3b5585;if(typeof _0x411f1f[_0x165ea8(0x17c)]!==_0x165ea8(0x1d5))throw new Error(_0x165ea8(0x1e8));const _0xfa908d=this[_0x165ea8(0x1c4)][_0x165ea8(0x1a9)](_0x411f1f[_0x165ea8(0x17c)]);if(_0xfa908d===undefined)throw new Error(_0x165ea8(0x18e));return{'token':_0xfa908d};}}function _0x44a0(){const _0x55bf87=['Dg9Rzw4','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','zgvMzxjYzwq','ywn0AxzHDgvK','x19YDw5UzxjdB250zw50','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','CgvYC2LZDef0DgfJAg1LBNrZ','tuvtu0fhrv9jtLzbteLe','C3vIBwL0twLZC2LVBG','AxrLBq','C2v0DgXL','zgvSzxrL','y29UDgvUDa','mtm2nJm0odHsu2jpAwm','AxntywzLsw50zwDLCG','CNvUBMvY','ChjLCgfYzu1LC3nHz2vjBNb1Da','CNvUBMvYq29UDgvUDa','y29TBwfUzhm','y2f0y2G','C2vZC2LVBLf1zxvL','nwnwAu1AEG','zw1PDfnLC3nPB24','ywn0AxzLu2vZC2LVBLj1BG','mte0nJe4ofPjrNHRAa','y2XPzw50twvZC2fNzuLK','C2vYDMLJzvrPzxi','zxH0zxjUywXtzxnZAw9Uswq','zMLUze1LC3nHz2vtDwjTAxnZAw9U','mZuWntC0A3zswxvx','C2vZC2LVBG','y3DK','y2HHBM5LBfrVA2vU','ywnJzxnZ','zMfZDa','CxvLDwu','CNvU','uvvfvuu','x19TAxnZAw9UuMvM','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','y29VCMrPBMf0B3i','mLzlEvzdEG','DxbSB2fKCW','zgvSAxzLCNLjBNrLBNq','zgvMyxvSDa','uKvqtefdrv9dvvjsru5u','yxr0ywnOBwvUDeLKCW','y2fJAgu','twLZC2LVBIbtDgfYDa','zwzMB3j0','z2v0qwDLBNrtzxnZAw9U','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','CgXHBG','BwLZC2LVBK1LC3nHz2u','y2XLyxi','Aw50zxjUywXnAxnZAw9U','yxr0ywnOBwvUDhm','x19TAxnZAw9U','DxbKyxrLuhjLCgfYAw5NvhvYBK1LC3nHz2u','B3b0Aw9UCW','mte3mte3mLnfy1rcAa','D29YA3nWywnLswq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','y2XLyw51Ca','ChjLCgfYzu1PC3nPB25jBNnLCNrPB24','BwLZC2LVBG','uKvtvefsveLorW','ntu1odK0nw1hvKPjqG','CNvUBMvYCW','x19Yzxf1zxn0vxnLCKLK','B3bLCMf0Aw9UCW','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','m0XcrNjAyG','ChjLCgfYzq','u1rbuLrfra','BwvZC2fNzq','C3rYAw5N','C2v0','twLZC2LVBIbdB250Aw51zq','zMfPBfbYzxbHCMf0Aw9U','y2HHBM5LBe1LC3nHz2u','CgvYC2LZDezPBgvZ','uvvfvuve','z2v0','CgvUzgLUz01LC3nHz2vZ','BgvUz3rO','CgvYC29UywXjBNn0CNvJDgLVBNm','B2jQzwn0','CNvUDgLTzq','BwfYqwDLBNrnB2rLBhm','BwLZC2LVBJO','BwLZC2LVBLbYzxbHCMf0Aw9UrMfPBgvK','BwfYqwDLBNrnB2rLBa','yxr0ywnOBwvUDa','AxnjBNrLz2vY','u0vtu0LptL9jtLzbteLe','y29TBwfUzeLK','Bw9KzwW','zMLSDgvY','C3rHCNq','ChvIBgLZAen1CNjLBNruDxjU','u0vora','CMvHzhK','AxnbCNjHEq','C29Tzq','mtu2mteWndbur25Rvg4','y29UC3vTzq','C2vZC2LVBKLK','C2vJCMv0rw52AxjVBM1LBNq','BwfW','BgLZDa','A2LUza','CMvXDwLYzq','ywnJzxb0','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','mZCZnJy0ndbqAxLqt3O','CMvZB2X2zq','CMv2AxnPB24','ChjLC2vUDa','CxvLDwvjDgvT'];_0x44a0=function(){return _0x55bf87;};return _0x44a0();}function record(_0x5e4f8c){const _0x5ef281=_0x3b5585;if(_0x5e4f8c===null||typeof _0x5e4f8c!==_0x5ef281(0x1e0)||Array[_0x5ef281(0x178)](_0x5e4f8c))return{};return _0x5e4f8c;}function isMissionRef(_0x17ef62){const _0x5a3884=_0x3b5585;return _0x17ef62!==null&&typeof _0x17ef62===_0x5a3884(0x1e0)&&typeof _0x17ef62['id']===_0x5a3884(0x1d5)&&Number[_0x5a3884(0x1e7)](_0x17ef62[_0x5a3884(0x186)]);}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x14c135=_0x4449;function _0x4449(_0x148fc8,_0x387edd){_0x148fc8=_0x148fc8-(0x1b*-0xd3+-0x1*-0x1f61+-0x7d4);const _0x4920d1=_0x5540();let _0x24bb3b=_0x4920d1[_0x148fc8];if(_0x4449['BBCXIG']===undefined){var _0x4ac169=function(_0x4f2cd4){const _0xa766e5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17c5ff='',_0x3689ba='';for(let _0xba61f7=0x201f+-0x7*-0x149+-0x291e,_0x3e2190,_0x515bda,_0x1a2819=-0x1194+0x1*-0xc49+0x1ddd;_0x515bda=_0x4f2cd4['charAt'](_0x1a2819++);~_0x515bda&&(_0x3e2190=_0xba61f7%(-0xd97+0x1*0xeb+-0x7*-0x1d0)?_0x3e2190*(0xc91+-0x356+-0x1*0x8fb)+_0x515bda:_0x515bda,_0xba61f7++%(0x931+0x135e+-0x1c8b))?_0x17c5ff+=String['fromCharCode'](0x2310+0x596*0x2+-0x2d3d&_0x3e2190>>(-(0x1*-0x162e+-0x2*0x577+0x3*0xb0a)*_0xba61f7&0xb1a*-0x1+0x26e5+0x1*-0x1bc5)):0x84f*-0x2+-0x3*-0x8ef+0xb*-0xed){_0x515bda=_0xa766e5['indexOf'](_0x515bda);}for(let _0x1042a2=-0x2383*-0x1+-0x1960+-0xa23,_0x1d6548=_0x17c5ff['length'];_0x1042a2<_0x1d6548;_0x1042a2++){_0x3689ba+='%'+('00'+_0x17c5ff['charCodeAt'](_0x1042a2)['toString'](0x1*-0x5c1+0x6df*-0x3+0x2*0xd37))['slice'](-(0xff0+-0x54*0x33+0xce));}return decodeURIComponent(_0x3689ba);};_0x4449['ujquBf']=_0x4ac169,_0x4449['oKtoEe']={},_0x4449['BBCXIG']=!![];}const _0x2d28e0=_0x4920d1[0xd3*-0x22+-0x37*-0x55+0x9c3];_0x4449['urMUQL']!==_0x2d28e0&&(_0x4449['oKtoEe']={},_0x4449['urMUQL']=_0x2d28e0);const _0x542201=_0x4449['oKtoEe'][_0x148fc8];return _0x542201===undefined?(_0x24bb3b=_0x4449['ujquBf'](_0x24bb3b),_0x4449['oKtoEe'][_0x148fc8]=_0x24bb3b):_0x24bb3b=_0x542201,_0x24bb3b;}(function(_0x506024,_0x1e9f73){const _0x16e060=_0x4449,_0x4277c9=_0x506024();while(!![]){try{const _0x4b595a=parseInt(_0x16e060(0x17c))/(-0x22cb*-0x1+0x17*-0x1+-0x3*0xb91)*(-parseInt(_0x16e060(0x17e))/(0x8b*0x7+0xffd+-0x13c8))+-parseInt(_0x16e060(0x171))/(-0x4c3+0xaaa+-0x5e4)*(-parseInt(_0x16e060(0x18b))/(0x1*0x182b+-0x1351+0x1*-0x4d6))+-parseInt(_0x16e060(0x16a))/(-0x21*-0x37+-0x264c+0x1*0x1f3a)*(-parseInt(_0x16e060(0x14f))/(-0x1168+-0x2*0xc5a+0x1*0x2a22))+parseInt(_0x16e060(0x156))/(0x17+-0x1*0x1c08+0x1bf8*0x1)+parseInt(_0x16e060(0x15c))/(-0x100d+-0x1*-0x242b+-0x1416)+-parseInt(_0x16e060(0x168))/(0x2*0xc5f+-0x586+-0x1*0x132f)+-parseInt(_0x16e060(0x162))/(0x59a+0x15dc+-0x1b6c);if(_0x4b595a===_0x1e9f73)break;else _0x4277c9['push'](_0x4277c9['shift']());}catch(_0x3c3968){_0x4277c9['push'](_0x4277c9['shift']());}}}(_0x5540,0x75d9d*0x1+-0x15805f+0x19a8e7*0x1));import{isPlainRecord,withNonImageAttachmentPrompt}from'../runner/codex/conversation-parser.js';import{assertQueueItemOwner,assertSessionControlOwner}from'./run-ownership-policy.js';function _0x5540(){const _0xffadf3=['mJe2mdy1EvrszM1e','zgvSzxrL','B3bLCMf0Aw9UCW','u0vtu0LptL9ot1rFrK9vtKq','DMvYC2LVBG','CgvUzgLUzW','CNvUDgLTzq','mtyZnJi5Ae1nufPV','CMvXDwLYzvnLC3nPB24','ChjLCgfYzuLUChv0','zw1PDa','CNvUBMvY','y3jLyxrLzef0','zMXHDe1HCa','y29SBgfIB3jHDgLVBK1Vzgu','zgvSzxrLuxvLDwvjDgvT','C25HChnOB3q','BgvUz3rO','ne9dvvbhrG','CMvVCMrLCLnLC3nPB25rDwv1zq','mZiXmJy4s295u2XV','AxrLBuLKCW','C3rYAw5N','CMvZDw1L','CxvLDwvjDgvTswrZ','zxHLy3v0zvf1zxvLsxrLBq','zxHLy3v0zq','Cgf1C2vK','y29UDgvUDa','C3rHCNrZv2L0Aa','y29VCMrPBMf0B3i','y3vZDg9TvgL0Bgu','x19Yzxf1zxn0vxnLCKLK','nZzHBevoDu8','uvvfvuvFsu5wquXjra','vw50AxrSzwqGC2vZC2LVBG','AxnjBNrLz2vY','z2v0','C2vZC2LVBKLK','DhjPBq','CxvLDwvjDgvTswq','Cgf1C2u','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','nZHNsfnVAxe','y2XPzw50twvZC2fNzuLK','Cgf1C2vtzxnZAw9UuxvLDwu','D29YA3nWywnLswq','B3b0Aw9UCW','BwLZC2LVBJO','z2v0uxvLDwvjDgvT','ote1otu5mw92EMftBq','uvvfvuvFsvrftv9jtLzbteLe','DxbKyxrLuhjLCgfYzwrjBNb1Da','CMvXDwLYzuL0zw0','DxbKyxrLuxvLDwvjDgvT','Cgf1C2vpCLjLC3vTzq','mZu4odmZnKXwyMXiDG','C29Tzq','v09ss1nqqunfx05pvf9gt1vora','ChjLC2vUDa','zxHWzwn0zwrwzxjZAw9U','CNvUBMvYvgL0Bgu','mtu3nJa1nJbHwe5IEee','AxnbCNjHEq','C2vZC2LVBLf1zxvL','z2v0qwDLBNrtzxnZAw9U','yxr0ywnOBwvUDfbHDgHZ','DxbKyxrL','mZqZmtGWohbxsefbsa','CMvVCMrLCG'];_0x5540=function(){return _0xffadf3;};return _0x5540();}export class WorkspaceQueueWorkbenchService{[_0x14c135(0x153)];constructor(_0x4cb659){const _0xb77cef=_0x14c135;this[_0xb77cef(0x153)]=_0x4cb659;}[_0x14c135(0x16c)](){const _0x8f5ef5=_0x14c135;return{'workspace.queue.get':_0x45fa60=>this[_0x8f5ef5(0x18f)](record(_0x45fa60)),'workspace.queue.resume':_0x30ab62=>this[_0x8f5ef5(0x15b)](_0x8f5ef5(0x181),record(_0x30ab62)),'workspace.queue.pause':_0x887951=>this[_0x8f5ef5(0x15b)](_0x8f5ef5(0x14d),record(_0x887951)),'workspace.queue.reorder':_0x1f19a3=>this[_0x8f5ef5(0x169)](record(_0x1f19a3)),'workspace.queue.message.update':_0x30cf81=>this[_0x8f5ef5(0x167)](record(_0x30cf81)),'workspace.queue.message.delete':_0x1a8f3e=>this[_0x8f5ef5(0x16b)](record(_0x1a8f3e)),'workspace.queue.message.execute':_0x57affc=>this[_0x8f5ef5(0x184)](record(_0x57affc))};}[_0x14c135(0x151)](_0x38e746){const _0x3e4343=_0x14c135,_0x3ce3d4=this[_0x3e4343(0x153)][_0x3e4343(0x170)][_0x3e4343(0x165)](_0x38e746);if(_0x3ce3d4===undefined)throw new Error(_0x3e4343(0x16d));this[_0x3e4343(0x153)][_0x3e4343(0x170)][_0x3e4343(0x151)](_0x3ce3d4['id']),this[_0x3e4343(0x153)][_0x3e4343(0x174)](_0x3ce3d4[_0x3e4343(0x152)],_0x3ce3d4['id']);}[_0x14c135(0x14e)](_0x2640e4){const _0x39fabe=_0x14c135,_0x3f0740=this[_0x39fabe(0x153)][_0x39fabe(0x170)][_0x39fabe(0x165)](_0x2640e4);if(_0x3f0740===undefined)throw new Error(_0x39fabe(0x16d));if(!this[_0x39fabe(0x153)][_0x39fabe(0x170)][_0x39fabe(0x164)](_0x3f0740['id'])[_0x39fabe(0x185)])return;this[_0x39fabe(0x153)][_0x39fabe(0x188)][_0x39fabe(0x181)](_0x3f0740['id']),this[_0x39fabe(0x153)][_0x39fabe(0x174)](_0x3f0740[_0x39fabe(0x152)],_0x3f0740['id']);}[_0x14c135(0x15f)](_0x2b9dc3,_0x1f5402){const _0x5a29c6=_0x14c135,_0x163049=this[_0x5a29c6(0x153)][_0x5a29c6(0x170)][_0x5a29c6(0x165)](_0x1f5402);if(_0x163049?.[_0x5a29c6(0x152)]!==_0x2b9dc3)throw new Error(_0x5a29c6(0x16d));return this[_0x5a29c6(0x17a)](_0x1f5402);}[_0x14c135(0x17a)](_0x5714a1){const _0x3a16cd=_0x14c135,_0x2ee815=this[_0x3a16cd(0x153)][_0x3a16cd(0x170)][_0x3a16cd(0x164)](_0x5714a1);return{'version':_0x2ee815[_0x3a16cd(0x16e)],'paused':_0x2ee815[_0x3a16cd(0x185)],'items':_0x2ee815[_0x3a16cd(0x17f)][_0x3a16cd(0x177)](_0x3ae85c=>{const _0xe1ab12=_0x3a16cd,_0x47530a=this[_0xe1ab12(0x153)][_0xe1ab12(0x170)][_0xe1ab12(0x155)](_0x3ae85c);if(_0x47530a===undefined||_0x47530a[_0xe1ab12(0x150)][_0xe1ab12(0x187)](_0xe1ab12(0x154)))return[];const _0x25bd8f=this[_0xe1ab12(0x153)][_0xe1ab12(0x170)][_0xe1ab12(0x165)](_0x47530a[_0xe1ab12(0x190)]);return[{'queueItemId':_0x47530a['id'],'sessionId':_0x47530a[_0xe1ab12(0x190)],'workspaceId':_0x47530a[_0xe1ab12(0x152)],'runner':_0x47530a[_0xe1ab12(0x175)],'clientMessageId':_0x47530a[_0xe1ab12(0x150)],'sessionTitle':_0x25bd8f?.[_0xe1ab12(0x189)]??_0x25bd8f?.[_0xe1ab12(0x161)]??_0xe1ab12(0x18d),'content':_0x47530a[_0xe1ab12(0x186)],'createdAt':_0x47530a[_0xe1ab12(0x176)]}];})};}[_0x14c135(0x18f)](_0x1d5fdf){const _0x276ea4=_0x14c135,_0x4fb3ae=this[_0x276ea4(0x172)](_0x1d5fdf);return{'queue':this[_0x276ea4(0x15f)](_0x4fb3ae[_0x276ea4(0x152)],_0x4fb3ae['id'])};}[_0x14c135(0x15b)](_0x5a7be3,_0x3d528c){const _0x379550=_0x14c135,_0x28d594=this[_0x379550(0x172)](_0x3d528c);assertSessionControlOwner(this[_0x379550(0x153)][_0x379550(0x170)],_0x28d594['id'],_0x3d528c[_0x379550(0x18a)]);if(_0x5a7be3===_0x379550(0x181))this[_0x379550(0x153)][_0x379550(0x188)][_0x379550(0x181)](_0x28d594['id']);else this[_0x379550(0x153)][_0x379550(0x170)][_0x379550(0x151)](_0x28d594['id']);return this[_0x379550(0x153)][_0x379550(0x174)](_0x28d594[_0x379550(0x152)],_0x28d594['id']),{'queue':this[_0x379550(0x15f)](_0x28d594[_0x379550(0x152)],_0x28d594['id'])};}[_0x14c135(0x169)](_0x5f227a){const _0x495fb9=_0x14c135;if(!Number[_0x495fb9(0x18e)](_0x5f227a[_0x495fb9(0x160)])||!Array[_0x495fb9(0x163)](_0x5f227a[_0x495fb9(0x182)])||_0x5f227a[_0x495fb9(0x182)][_0x495fb9(0x15d)](_0x3431c7=>typeof _0x3431c7!==_0x495fb9(0x180)))throw new Error(_0x495fb9(0x18c));const _0x5be3c6=this[_0x495fb9(0x172)](_0x5f227a);return assertSessionControlOwner(this[_0x495fb9(0x153)][_0x495fb9(0x170)],_0x5be3c6['id'],_0x5f227a[_0x495fb9(0x18a)]),this[_0x495fb9(0x153)][_0x495fb9(0x170)][_0x495fb9(0x17d)](_0x5be3c6['id'],_0x5f227a[_0x495fb9(0x160)],_0x5f227a[_0x495fb9(0x182)]),this[_0x495fb9(0x153)][_0x495fb9(0x174)](_0x5be3c6[_0x495fb9(0x152)],_0x5be3c6['id']),{'queue':this[_0x495fb9(0x15f)](_0x5be3c6[_0x495fb9(0x152)],_0x5be3c6['id'])};}[_0x14c135(0x167)](_0x149d9a){const _0x22a482=_0x14c135;if(typeof _0x149d9a[_0x22a482(0x14c)]!==_0x22a482(0x180)||typeof _0x149d9a[_0x22a482(0x186)]!==_0x22a482(0x180)||_0x149d9a[_0x22a482(0x186)][_0x22a482(0x191)]()[_0x22a482(0x17b)]===0x207+-0x899+0x692)throw new Error(_0x22a482(0x18c));const _0x2258ca=this[_0x22a482(0x159)](_0x149d9a[_0x22a482(0x14c)],_0x149d9a[_0x22a482(0x152)]);assertQueueItemOwner(_0x2258ca,_0x149d9a[_0x22a482(0x18a)]);const _0x3e5d55=_0x149d9a[_0x22a482(0x186)][_0x22a482(0x191)]();this[_0x22a482(0x153)][_0x22a482(0x170)][_0x22a482(0x15a)](_0x2258ca['id'],_0x3e5d55);const _0x30839b=this[_0x22a482(0x153)][_0x22a482(0x188)][_0x22a482(0x16f)](_0x2258ca['id']);if(_0x30839b!==undefined){const _0x49ee63=withNonImageAttachmentPrompt(_0x3e5d55,_0x30839b[_0x22a482(0x166)]);this[_0x22a482(0x153)][_0x22a482(0x188)][_0x22a482(0x158)](_0x2258ca['id'],this[_0x22a482(0x153)][_0x22a482(0x173)](_0x30839b[_0x22a482(0x175)],_0x49ee63,_0x30839b[_0x22a482(0x178)]));}return this[_0x22a482(0x153)][_0x22a482(0x174)](_0x2258ca[_0x22a482(0x152)],_0x2258ca[_0x22a482(0x190)]),{'queue':this[_0x22a482(0x15f)](_0x2258ca[_0x22a482(0x152)],_0x2258ca[_0x22a482(0x190)])};}[_0x14c135(0x16b)](_0x1f6afe){const _0x3d2388=_0x14c135;if(typeof _0x1f6afe[_0x3d2388(0x14c)]!==_0x3d2388(0x180))throw new Error(_0x3d2388(0x18c));const _0x5cde7f=this[_0x3d2388(0x159)](_0x1f6afe[_0x3d2388(0x14c)],_0x1f6afe[_0x3d2388(0x152)]);return assertQueueItemOwner(_0x5cde7f,_0x1f6afe[_0x3d2388(0x18a)]),this[_0x3d2388(0x153)][_0x3d2388(0x188)][_0x3d2388(0x179)](_0x5cde7f['id']),{'queue':this[_0x3d2388(0x15f)](_0x5cde7f[_0x3d2388(0x152)],_0x5cde7f[_0x3d2388(0x190)])};}[_0x14c135(0x184)](_0x365b6d){const _0x197ce7=_0x14c135;if(typeof _0x365b6d[_0x197ce7(0x14c)]!==_0x197ce7(0x180))throw new Error(_0x197ce7(0x18c));return assertQueueItemOwner(this[_0x197ce7(0x159)](_0x365b6d[_0x197ce7(0x14c)],_0x365b6d[_0x197ce7(0x152)]),_0x365b6d[_0x197ce7(0x18a)]),this[_0x197ce7(0x153)][_0x197ce7(0x188)][_0x197ce7(0x183)](_0x365b6d[_0x197ce7(0x14c)]);}[_0x14c135(0x172)](_0x2223e2){const _0x29469f=_0x14c135;if(typeof _0x2223e2[_0x29469f(0x152)]!==_0x29469f(0x180)||typeof _0x2223e2[_0x29469f(0x190)]!==_0x29469f(0x180))throw new Error(_0x29469f(0x15e));const _0x5f28f0=this[_0x29469f(0x153)][_0x29469f(0x170)][_0x29469f(0x165)](_0x2223e2[_0x29469f(0x190)]);if(_0x5f28f0?.[_0x29469f(0x152)]!==_0x2223e2[_0x29469f(0x152)])throw new Error(_0x29469f(0x16d));return _0x5f28f0;}[_0x14c135(0x159)](_0x4d3757,_0x5cb9c6){const _0x4a4689=_0x14c135,_0x154f3b=this[_0x4a4689(0x153)][_0x4a4689(0x170)][_0x4a4689(0x155)](_0x4d3757);if(_0x154f3b===undefined)throw new Error(_0x4a4689(0x157));if(typeof _0x5cb9c6!==_0x4a4689(0x180)||_0x154f3b[_0x4a4689(0x152)]!==_0x5cb9c6)throw new Error(_0x4a4689(0x157));return _0x154f3b;}}function record(_0x571eb1){return isPlainRecord(_0x571eb1)?_0x571eb1:{};}
2
+ function _0x345f(){const _0x39cb22=['zxHWzwn0zwrwzxjZAw9U','zgvSzxrLuxvLDwvjDgvT','mZa5nJe0ntjyqxjxzM4','B3bLCMf0Aw9UCW','mtnsyvrADhK','mJfxCvbiBhe','DxbKyxrL','Cgf1C2u','BwLZC2LVBJO','ndvjwM1xCu0','mJeWnJG0sK1zENrU','CMvXDwLYzuL0zw0','y2XPzw50twvZC2fNzuLK','Cgf1C2vK','odyYmtuWDxPksLPH','AxnbCNjHEq','C2vZC2LVBKLK','v09ss1nqqunfx05pvf9gt1vora','y3vZDg9TvgL0Bgu','y29UDgvUDa','DxbKyxrLuhjLCgfYzwrjBNb1Da','Cgf1C2vpCLjLC3vTzq','CgvUzgLUzW','CxvLDwvjDgvTswq','BgvUz3rO','mJiZmfz4BMrrAW','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','y29SBgfIB3jHDgLVBK1Vzgu','z2v0','C25HChnOB3q','CxvLDwvjDgvTswrZ','vw50AxrSzwqGC2vZC2LVBG','C3rHCNrZv2L0Aa','CNvUDgLTzq','D29YA3nWywnLswq','C3rYAw5N','zxHLy3v0zq','u0vtu0LptL9ot1rFrK9vtKq','CMvXDwLYzvnLC3nPB24','CMvVCMrLCG','z2v0qwDLBNrtzxnZAw9U','AxrLBuLKCW','CNvUBMvYvgL0Bgu','C29Tzq','CMvZDw1L','DMvYC2LVBG','B3b0Aw9UCW','uvvfvuvFsvrftv9jtLzbteLe','y29VCMrPBMf0B3i','zMXHDe1HCa','ChjLCgfYzuLUChv0','zgvSzxrL','C2vZC2LVBLf1zxvL','yxr0ywnOBwvUDfbHDgHZ','CNvUBMvY','otC4nti4vM1vvwrr','DxbKyxrLuxvLDwvjDgvT','zxHLy3v0zvf1zxvLsxrLBq','DhjPBq','CMvVCMrLCLnLC3nPB25rDwv1zq','mZuXote2tuHMywXJ','AxnjBNrLz2vY','y3jLyxrLzef0','mteZmdG2mZHHC3rhANm','Cgf1C2vtzxnZAw9UuxvLDwu','z2v0uxvLDwvjDgvT','uvvfvuvFsu5wquXjra','ChjLC2vUDa','mteWuMTIvM1x','ntCZs1z4BLv1','mZnWtgTtrNi','x19Yzxf1zxn0vxnLCKLK','zw1PDa'];_0x345f=function(){return _0x39cb22;};return _0x345f();}function _0x2465(_0x522af3,_0x394ddf){_0x522af3=_0x522af3-(-0x9*0x29b+0xd6e+0xadb);const _0x209a06=_0x345f();let _0x46eb54=_0x209a06[_0x522af3];if(_0x2465['SjQqhy']===undefined){var _0x3d3784=function(_0x1550aa){const _0x457647='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fff66='',_0x12f0d3='';for(let _0x327773=-0x1*-0x523+-0x3*0x4ff+0x9da,_0x57e8a0,_0x16a2ba,_0x592af4=0xa17+-0xa24+0xd;_0x16a2ba=_0x1550aa['charAt'](_0x592af4++);~_0x16a2ba&&(_0x57e8a0=_0x327773%(0xb6*-0x2b+0x445*-0x3+0xe77*0x3)?_0x57e8a0*(-0x2244+-0x12ef+0x1*0x3573)+_0x16a2ba:_0x16a2ba,_0x327773++%(0xcd*-0xd+0xccd+0x98*-0x4))?_0x4fff66+=String['fromCharCode'](0x2429+-0xcd1+0x1659*-0x1&_0x57e8a0>>(-(0x2204+-0x553*0x7+-0xa7*-0x5)*_0x327773&-0x1c98+0x303*0x8+0x2*0x243)):0x7*-0x2ba+-0x1cea+0x3000){_0x16a2ba=_0x457647['indexOf'](_0x16a2ba);}for(let _0x40c44f=0x1*0x266+0x2*0x7a5+-0x2*0x8d8,_0x45fa0f=_0x4fff66['length'];_0x40c44f<_0x45fa0f;_0x40c44f++){_0x12f0d3+='%'+('00'+_0x4fff66['charCodeAt'](_0x40c44f)['toString'](0x1e02+-0x4b6*0x1+0x50c*-0x5))['slice'](-(-0x1*0x36d+-0x1*0x1316+0x1685));}return decodeURIComponent(_0x12f0d3);};_0x2465['znzKbf']=_0x3d3784,_0x2465['OWxtPX']={},_0x2465['SjQqhy']=!![];}const _0xabec0e=_0x209a06[-0x217b+0x189a+-0x8e1*-0x1];_0x2465['vMPdsP']!==_0xabec0e&&(_0x2465['OWxtPX']={},_0x2465['vMPdsP']=_0xabec0e);const _0x5c93=_0x2465['OWxtPX'][_0x522af3];return _0x5c93===undefined?(_0x46eb54=_0x2465['znzKbf'](_0x46eb54),_0x2465['OWxtPX'][_0x522af3]=_0x46eb54):_0x46eb54=_0x5c93,_0x46eb54;}const _0x35cb6a=_0x2465;(function(_0x3c5ef0,_0x28b817){const _0x19b552=_0x2465,_0x133e54=_0x3c5ef0();while(!![]){try{const _0x2906d0=parseInt(_0x19b552(0xdb))/(0xaf1+-0x2409+0x101*0x19)*(-parseInt(_0x19b552(0xf8))/(-0x1f29+0x1fd*-0xa+-0x1*-0x330d))+parseInt(_0x19b552(0xdc))/(-0xeb8+0x12e6+0x1*-0x42b)*(-parseInt(_0x19b552(0x11b))/(-0x1842+0x13b3+-0x1*-0x493))+parseInt(_0x19b552(0xda))/(-0x1ff*0x9+-0xfc*-0xd+0x530)*(parseInt(_0x19b552(0xe9))/(0xc3a+0x4c*-0x1+-0x5f4*0x2))+-parseInt(_0x19b552(0xe4))/(-0x69d*0x2+0x14e3+-0x7a2)*(-parseInt(_0x19b552(0x116))/(-0x132c*0x1+0x169*0x7+0x1*0x955))+-parseInt(_0x19b552(0xe8))/(-0x2392*0x1+0x1*0x174b+0x1*0xc50)*(parseInt(_0x19b552(0xed))/(0x1193*0x2+0x39*0x67+-0x3a0b))+-parseInt(_0x19b552(0x11e))/(-0x1*-0x19d5+-0x1f1f+0x555)+-parseInt(_0x19b552(0xe1))/(-0x230b+0x14d*-0xe+0x354d*0x1)*(-parseInt(_0x19b552(0xe3))/(0x12a*-0x1+0x2027+-0x1ef0));if(_0x2906d0===_0x28b817)break;else _0x133e54['push'](_0x133e54['shift']());}catch(_0x22ebb6){_0x133e54['push'](_0x133e54['shift']());}}}(_0x345f,0x194*0x960+-0x96339+0x4918d));import{isPlainRecord,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{assertQueueItemOwner,assertSessionControlOwner}from'./run-ownership-policy.js';export class WorkspaceQueueWorkbenchService{[_0x35cb6a(0x10d)];constructor(_0x592806){const _0x361e73=_0x35cb6a;this[_0x361e73(0x10d)]=_0x592806;}[_0x35cb6a(0xe2)](){const _0x30abad=_0x35cb6a;return{'workspace.queue.get':_0xb3798e=>this[_0x30abad(0xfb)](record(_0xb3798e)),'workspace.queue.resume':_0xa60b7d=>this[_0x30abad(0xf4)](_0x30abad(0x10b),record(_0xa60b7d)),'workspace.queue.pause':_0x200e55=>this[_0x30abad(0xf4)](_0x30abad(0xe6),record(_0x200e55)),'workspace.queue.reorder':_0x48436f=>this[_0x30abad(0x106)](record(_0x48436f)),'workspace.queue.message.update':_0x4d7a40=>this[_0x30abad(0xe5)](record(_0x4d7a40)),'workspace.queue.message.delete':_0x54092d=>this[_0x30abad(0x112)](record(_0x54092d)),'workspace.queue.message.execute':_0x5040df=>this[_0x30abad(0x103)](record(_0x5040df))};}[_0x35cb6a(0xd6)](_0x5d53bf){const _0x2d9559=_0x35cb6a,_0x5b5bce=this[_0x2d9559(0x10d)][_0x2d9559(0x100)][_0x2d9559(0x107)](_0x5d53bf);if(_0x5b5bce===undefined)throw new Error(_0x2d9559(0x104));this[_0x2d9559(0x10d)][_0x2d9559(0x100)][_0x2d9559(0xd6)](_0x5b5bce['id']),this[_0x2d9559(0x10d)][_0x2d9559(0xde)](_0x5b5bce[_0x2d9559(0x101)],_0x5b5bce['id']);}[_0x35cb6a(0xf9)](_0x5ddb92){const _0x49b049=_0x35cb6a,_0x18941c=this[_0x49b049(0x10d)][_0x49b049(0x100)][_0x49b049(0x107)](_0x5ddb92);if(_0x18941c===undefined)throw new Error(_0x49b049(0x104));if(!this[_0x49b049(0x10d)][_0x49b049(0x100)][_0x49b049(0x113)](_0x18941c['id'])[_0x49b049(0xec)])return;this[_0x49b049(0x10d)][_0x49b049(0x10f)][_0x49b049(0x10b)](_0x18941c['id']),this[_0x49b049(0x10d)][_0x49b049(0xde)](_0x18941c[_0x49b049(0x101)],_0x18941c['id']);}[_0x35cb6a(0xd9)](_0x279547,_0x28f7c9){const _0x1ffedc=_0x35cb6a,_0x5adc97=this[_0x1ffedc(0x10d)][_0x1ffedc(0x100)][_0x1ffedc(0x107)](_0x28f7c9);if(_0x5adc97?.[_0x1ffedc(0x101)]!==_0x279547)throw new Error(_0x1ffedc(0x104));return this[_0x1ffedc(0xfc)](_0x28f7c9);}[_0x35cb6a(0xfc)](_0x31f8f0){const _0x43969b=_0x35cb6a,_0x22fb5e=this[_0x43969b(0x10d)][_0x43969b(0x100)][_0x43969b(0x113)](_0x31f8f0);return{'version':_0x22fb5e[_0x43969b(0x10c)],'paused':_0x22fb5e[_0x43969b(0xec)],'items':_0x22fb5e[_0x43969b(0x108)][_0x43969b(0x110)](_0x3f503e=>{const _0x3f1246=_0x43969b,_0x4f1521=this[_0x3f1246(0x10d)][_0x3f1246(0x100)][_0x3f1246(0xd7)](_0x3f503e);if(_0x4f1521===undefined||_0x4f1521[_0x3f1246(0xeb)][_0x3f1246(0xff)](_0x3f1246(0xe7)))return[];const _0x5201fc=this[_0x3f1246(0x10d)][_0x3f1246(0x100)][_0x3f1246(0x107)](_0x4f1521[_0x3f1246(0xef)]);return[{'queueItemId':_0x4f1521['id'],'sessionId':_0x4f1521[_0x3f1246(0xef)],'workspaceId':_0x4f1521[_0x3f1246(0x101)],'runner':_0x4f1521[_0x3f1246(0x115)],'clientMessageId':_0x4f1521[_0x3f1246(0xeb)],'sessionTitle':_0x5201fc?.[_0x3f1246(0xf1)]??_0x5201fc?.[_0x3f1246(0x109)]??_0x3f1246(0xfe),'content':_0x4f1521[_0x3f1246(0xf2)],'createdAt':_0x4f1521[_0x3f1246(0x11d)]}];})};}[_0x35cb6a(0xfb)](_0x1b0a5a){const _0x10bf15=_0x35cb6a,_0x3f4ca0=this[_0x10bf15(0x105)](_0x1b0a5a);return{'queue':this[_0x10bf15(0xd9)](_0x3f4ca0[_0x10bf15(0x101)],_0x3f4ca0['id'])};}[_0x35cb6a(0xf4)](_0x54235d,_0x5bd2e8){const _0x143fad=_0x35cb6a,_0x200bd3=this[_0x143fad(0x105)](_0x5bd2e8);assertSessionControlOwner(this[_0x143fad(0x10d)][_0x143fad(0x100)],_0x200bd3['id'],_0x5bd2e8[_0x143fad(0xdd)]);if(_0x54235d===_0x143fad(0x10b))this[_0x143fad(0x10d)][_0x143fad(0x10f)][_0x143fad(0x10b)](_0x200bd3['id']);else this[_0x143fad(0x10d)][_0x143fad(0x100)][_0x143fad(0xd6)](_0x200bd3['id']);return this[_0x143fad(0x10d)][_0x143fad(0xde)](_0x200bd3[_0x143fad(0x101)],_0x200bd3['id']),{'queue':this[_0x143fad(0xd9)](_0x200bd3[_0x143fad(0x101)],_0x200bd3['id'])};}[_0x35cb6a(0x106)](_0x700be2){const _0x2c12ab=_0x35cb6a;if(!Number[_0x2c12ab(0x11c)](_0x700be2[_0x2c12ab(0xdf)])||!Array[_0x2c12ab(0xee)](_0x700be2[_0x2c12ab(0xfd)])||_0x700be2[_0x2c12ab(0xfd)][_0x2c12ab(0x10a)](_0x394f13=>typeof _0x394f13!==_0x2c12ab(0x102)))throw new Error(_0x2c12ab(0xd8));const _0x48b110=this[_0x2c12ab(0x105)](_0x700be2);return assertSessionControlOwner(this[_0x2c12ab(0x10d)][_0x2c12ab(0x100)],_0x48b110['id'],_0x700be2[_0x2c12ab(0xdd)]),this[_0x2c12ab(0x10d)][_0x2c12ab(0x100)][_0x2c12ab(0x11a)](_0x48b110['id'],_0x700be2[_0x2c12ab(0xdf)],_0x700be2[_0x2c12ab(0xfd)]),this[_0x2c12ab(0x10d)][_0x2c12ab(0xde)](_0x48b110[_0x2c12ab(0x101)],_0x48b110['id']),{'queue':this[_0x2c12ab(0xd9)](_0x48b110[_0x2c12ab(0x101)],_0x48b110['id'])};}[_0x35cb6a(0xe5)](_0x56d448){const _0x36cafa=_0x35cb6a;if(typeof _0x56d448[_0x36cafa(0xf6)]!==_0x36cafa(0x102)||typeof _0x56d448[_0x36cafa(0xf2)]!==_0x36cafa(0x102)||_0x56d448[_0x36cafa(0xf2)][_0x36cafa(0x119)]()[_0x36cafa(0xf7)]===0x1941+-0xf*0xdc+-0xc5d)throw new Error(_0x36cafa(0xd8));const _0x5934e5=this[_0x36cafa(0xea)](_0x56d448[_0x36cafa(0xf6)],_0x56d448[_0x36cafa(0x101)]);assertQueueItemOwner(_0x5934e5,_0x56d448[_0x36cafa(0xdd)]);const _0x232f7a=_0x56d448[_0x36cafa(0xf2)][_0x36cafa(0x119)]();this[_0x36cafa(0x10d)][_0x36cafa(0x100)][_0x36cafa(0x117)](_0x5934e5['id'],_0x232f7a);const _0x22b94c=this[_0x36cafa(0x10d)][_0x36cafa(0x10f)][_0x36cafa(0xf5)](_0x5934e5['id']);if(_0x22b94c!==undefined){const _0x416ace=withNonImageAttachmentPrompt(_0x232f7a,_0x22b94c[_0x36cafa(0x114)]);this[_0x36cafa(0x10d)][_0x36cafa(0x10f)][_0x36cafa(0xf3)](_0x5934e5['id'],this[_0x36cafa(0x10d)][_0x36cafa(0x111)](_0x22b94c[_0x36cafa(0x115)],_0x416ace,_0x22b94c[_0x36cafa(0xfa)]));}return this[_0x36cafa(0x10d)][_0x36cafa(0xde)](_0x5934e5[_0x36cafa(0x101)],_0x5934e5[_0x36cafa(0xef)]),{'queue':this[_0x36cafa(0xd9)](_0x5934e5[_0x36cafa(0x101)],_0x5934e5[_0x36cafa(0xef)])};}[_0x35cb6a(0x112)](_0x6cecc4){const _0x2dbef3=_0x35cb6a;if(typeof _0x6cecc4[_0x2dbef3(0xf6)]!==_0x2dbef3(0x102))throw new Error(_0x2dbef3(0xd8));const _0x574a98=this[_0x2dbef3(0xea)](_0x6cecc4[_0x2dbef3(0xf6)],_0x6cecc4[_0x2dbef3(0x101)]);return assertQueueItemOwner(_0x574a98,_0x6cecc4[_0x2dbef3(0xdd)]),this[_0x2dbef3(0x10d)][_0x2dbef3(0x10f)][_0x2dbef3(0xe0)](_0x574a98['id']),{'queue':this[_0x2dbef3(0xd9)](_0x574a98[_0x2dbef3(0x101)],_0x574a98[_0x2dbef3(0xef)])};}[_0x35cb6a(0x103)](_0x1121ea){const _0x274436=_0x35cb6a;if(typeof _0x1121ea[_0x274436(0xf6)]!==_0x274436(0x102))throw new Error(_0x274436(0xd8));return assertQueueItemOwner(this[_0x274436(0xea)](_0x1121ea[_0x274436(0xf6)],_0x1121ea[_0x274436(0x101)]),_0x1121ea[_0x274436(0xdd)]),this[_0x274436(0x10d)][_0x274436(0x10f)][_0x274436(0x118)](_0x1121ea[_0x274436(0xf6)]);}[_0x35cb6a(0x105)](_0xcc9f46){const _0x22e824=_0x35cb6a;if(typeof _0xcc9f46[_0x22e824(0x101)]!==_0x22e824(0x102)||typeof _0xcc9f46[_0x22e824(0xef)]!==_0x22e824(0x102))throw new Error(_0x22e824(0xf0));const _0x4d18de=this[_0x22e824(0x10d)][_0x22e824(0x100)][_0x22e824(0x107)](_0xcc9f46[_0x22e824(0xef)]);if(_0x4d18de?.[_0x22e824(0x101)]!==_0xcc9f46[_0x22e824(0x101)])throw new Error(_0x22e824(0x104));return _0x4d18de;}[_0x35cb6a(0xea)](_0x1fe86f,_0x37b7c8){const _0x30f6a8=_0x35cb6a,_0x505b89=this[_0x30f6a8(0x10d)][_0x30f6a8(0x100)][_0x30f6a8(0xd7)](_0x1fe86f);if(_0x505b89===undefined)throw new Error(_0x30f6a8(0x10e));if(typeof _0x37b7c8!==_0x30f6a8(0x102)||_0x505b89[_0x30f6a8(0x101)]!==_0x37b7c8)throw new Error(_0x30f6a8(0x10e));return _0x505b89;}}function record(_0x52040b){return isPlainRecord(_0x52040b)?_0x52040b:{};}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- (function(_0x186c3a,_0xf0c6fb){const _0x49b519=_0x43ae,_0x4e871c=_0x186c3a();while(!![]){try{const _0x1963fd=-parseInt(_0x49b519(0xbe))/(0x1*0x1111+0x607+-0x1*0x1717)+parseInt(_0x49b519(0x110))/(-0x2*-0xefb+-0x2ff+-0x1af5)*(-parseInt(_0x49b519(0xcc))/(0xaf9+-0x682+-0x474))+-parseInt(_0x49b519(0x100))/(0xc1*-0x31+-0x3*0x259+0x2c00)*(parseInt(_0x49b519(0xc1))/(-0x2672+-0x2119+0x4790))+parseInt(_0x49b519(0xa9))/(-0x1691+0x4*0x2bf+0xb9b*0x1)*(-parseInt(_0x49b519(0x131))/(-0x1793+0xe5*-0x5+-0x1*-0x1c13))+-parseInt(_0x49b519(0xe4))/(-0x29*-0x3+0x4dd*-0x1+0x46a)+-parseInt(_0x49b519(0xb2))/(0x22ba+0x87*0x2a+-0x38d7)*(-parseInt(_0x49b519(0x127))/(-0x3f0+-0x1ada+0x1ed4))+parseInt(_0x49b519(0x118))/(0x4f*0x13+-0x183c+0x126a);if(_0x1963fd===_0xf0c6fb)break;else _0x4e871c['push'](_0x4e871c['shift']());}catch(_0x26838d){_0x4e871c['push'](_0x4e871c['shift']());}}}(_0xb419,-0xcb9*0x89+-0x98c41+0x15f87d));import{createHash}from'node:crypto';import{fileURLToPath}from'node:url';import{stripClaudePlanTag}from'../runner-command-engine.js';import{stripMissionStartPrompt}from'../service/mission-runtime.js';import{parseCodexComposerImageMarkers}from'../runner/codex/composer-image-markers.js';import{normalizeCodexTool}from'../runner/codex/tool-normalizer.js';import{normalizeClaudeTool}from'../runner/claude/tool-normalizer.js';import{compactRunnerText,isPlainRecord,nativePageEnd}from'./node-operation-parsers.js';export function extractId(_0x4f64e3,_0xa37386){const _0x57840d=_0x43ae;if(typeof _0x4f64e3===_0x57840d(0x108)&&_0x4f64e3!==null&&_0xa37386 in _0x4f64e3&&typeof _0x4f64e3[_0xa37386]===_0x57840d(0x108)&&_0x4f64e3[_0xa37386]!==null&&typeof _0x4f64e3[_0xa37386]['id']===_0x57840d(0xe3))return _0x4f64e3[_0xa37386]['id'];throw new Error(_0x57840d(0xa2)+_0xa37386[_0x57840d(0x10a)]()+_0x57840d(0xa3));}export async function settleWithin(_0x593f4c,_0x6f2180){const _0x1488cf=_0x43ae;let _0x4b20bd;try{return await Promise[_0x1488cf(0xcb)]([_0x593f4c,new Promise(_0x1987dc=>{const _0x287aac=_0x1488cf;_0x4b20bd=setTimeout(()=>_0x1987dc(undefined),_0x6f2180),_0x4b20bd[_0x287aac(0xf6)]();})]);}finally{if(_0x4b20bd!==undefined)clearTimeout(_0x4b20bd);}}export function extractCodexThreads(_0x30ddd8){const _0x323084=_0x43ae;if(typeof _0x30ddd8!==_0x323084(0x108)||_0x30ddd8===null||!(_0x323084(0xd4)in _0x30ddd8))return[];const _0x36e8af=_0x30ddd8[_0x323084(0xd4)];if(!Array[_0x323084(0x119)](_0x36e8af))return[];return _0x36e8af[_0x323084(0xf9)](_0x172eb7=>{const _0x19b69c=_0x323084;if(typeof _0x172eb7!==_0x19b69c(0x108)||_0x172eb7===null)return[];const _0x17f92f=_0x172eb7;if(typeof _0x17f92f['id']!==_0x19b69c(0xe3))return[];const _0x396105=typeof _0x17f92f[_0x19b69c(0xf4)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xf4)]:typeof _0x17f92f[_0x19b69c(0xaf)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xaf)]:typeof _0x17f92f[_0x19b69c(0xaf)]===_0x19b69c(0x108)&&_0x17f92f[_0x19b69c(0xaf)]!==null&&typeof _0x17f92f[_0x19b69c(0xaf)][_0x19b69c(0xf1)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xaf)][_0x19b69c(0xf1)]:undefined,_0x16fc60=isPlainRecord(_0x17f92f[_0x19b69c(0xaf)])?_0x17f92f[_0x19b69c(0xaf)]:undefined,_0x23afbc=_0x396105===_0x19b69c(0x122)||_0x16fc60?.[_0x19b69c(0xf1)]===_0x19b69c(0x122)||isPlainRecord(_0x16fc60?.[_0x19b69c(0x122)])||isPlainRecord(_0x16fc60?.[_0x19b69c(0xc3)]),_0x7d1ff0=typeof _0x17f92f[_0x19b69c(0xcf)]===_0x19b69c(0xe3)&&_0x17f92f[_0x19b69c(0xcf)][_0x19b69c(0xa7)]()[_0x19b69c(0xc7)]>0x3ae+-0x1a77*-0x1+0x1e25*-0x1?_0x17f92f[_0x19b69c(0xcf)][_0x19b69c(0xa7)]():typeof _0x17f92f[_0x19b69c(0xd3)]===_0x19b69c(0xe3)&&_0x17f92f[_0x19b69c(0xd3)][_0x19b69c(0xa7)]()[_0x19b69c(0xc7)]>0x3f7*0x5+-0x71a+-0xcb9*0x1?_0x17f92f[_0x19b69c(0xd3)][_0x19b69c(0xa7)]():undefined;return[{'id':_0x17f92f['id'],'source':_0x396105,'derived':_0x23afbc,'cwd':_0x17f92f[_0x19b69c(0xd2)],'title':_0x7d1ff0}];});}export function codexThreadActivity(_0x2d9d18){const _0xd32624=_0x43ae;if(!isPlainRecord(_0x2d9d18)||!isPlainRecord(_0x2d9d18[_0xd32624(0x114)]))return _0xd32624(0xc0);const _0x2b88e2=_0x2d9d18[_0xd32624(0x114)][_0xd32624(0xfe)];if(!isPlainRecord(_0x2b88e2)||typeof _0x2b88e2[_0xd32624(0x120)]!==_0xd32624(0xe3))return _0xd32624(0xc0);if(_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0xf8))return _0xd32624(0xd5);if(_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0xe2)||_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0x135))return _0xd32624(0x11f);return _0xd32624(0xc0);}export function codexActiveTurnId(_0x28c626){const _0x30ffe4=_0x43ae;if(!isPlainRecord(_0x28c626)||!isPlainRecord(_0x28c626[_0x30ffe4(0x114)])||!Array[_0x30ffe4(0x119)](_0x28c626[_0x30ffe4(0x114)][_0x30ffe4(0xc2)]))return undefined;const _0x339f20=_0x28c626[_0x30ffe4(0x114)][_0x30ffe4(0xc2)][_0x30ffe4(0x101)](_0x5f5783=>isPlainRecord(_0x5f5783)&&typeof _0x5f5783['id']===_0x30ffe4(0xe3)&&(_0x5f5783[_0x30ffe4(0xfe)]===_0x30ffe4(0xf8)||_0x5f5783[_0x30ffe4(0xfe)]===_0x30ffe4(0xde)));return isPlainRecord(_0x339f20)&&typeof _0x339f20['id']===_0x30ffe4(0xe3)?_0x339f20['id']:undefined;}export function codexThreadCwd(_0x14a040){const _0x2c2b35=_0x43ae;if(typeof _0x14a040!==_0x2c2b35(0xe3)||_0x14a040[_0x2c2b35(0xc7)]===-0x109*-0x1e+-0x1*-0x231a+-0x4228)throw new Error(_0x2c2b35(0x11d));if(!_0x14a040[_0x2c2b35(0xd6)](_0x2c2b35(0x105)))return _0x14a040;try{return fileURLToPath(_0x14a040);}catch{throw new Error(_0x2c2b35(0x11d));}}export function isWithinWorkspace(_0xc36245,_0x151334){const _0x5b59ec=_0x43ae,_0x172094=_0xc7813a=>{const _0x53a03b=_0x43ae,_0x223361=_0xc7813a[_0x53a03b(0xef)](/[\\/]+/g,'/')[_0x53a03b(0xef)](/\/$/,'');return process[_0x53a03b(0xce)]===_0x53a03b(0xdf)?_0x223361[_0x53a03b(0xc9)]():_0x223361;},_0x2607f0=_0x172094(_0xc36245),_0x282793=_0x172094(_0x151334);if(_0x2607f0===_0x282793)return!![];return _0x2607f0[_0x5b59ec(0xd6)](_0x282793+'/');}export function claudeDiscoveredSession(_0x28eee7,_0x27f243){const _0x31a9c2=_0x43ae;if(typeof _0x28eee7!==_0x31a9c2(0x108)||_0x28eee7===null)return undefined;const _0x557220=_0x28eee7;if(_0x557220[_0x31a9c2(0xdc)]===!![])return undefined;const _0x1670c0=typeof _0x557220[_0x31a9c2(0xdd)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0xdd)]:typeof _0x557220['id']===_0x31a9c2(0xe3)?_0x557220['id']:undefined;if(_0x1670c0===undefined||_0x1670c0[_0x31a9c2(0xc7)]===-0x256f+-0x2589+0x4af8)return undefined;const _0x56f97c=typeof _0x557220[_0x31a9c2(0x123)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0x123)]:typeof _0x557220[_0x31a9c2(0x113)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0x113)]:undefined,_0x41f7ed=typeof _0x557220[_0x31a9c2(0xd2)]===_0x31a9c2(0xe3)&&_0x557220[_0x31a9c2(0xd2)][_0x31a9c2(0xc7)]>-0xe33+-0x268b+0x34be?_0x557220[_0x31a9c2(0xd2)]:_0x27f243;return{'externalSessionId':_0x1670c0,'cwd':_0x41f7ed,..._0x56f97c===undefined?{}:{'title':_0x56f97c[_0x31a9c2(0x130)](0x1ccc+0x195b+-0x3627,0xd4*0x13+-0x7*-0x321+-0x2553)}};}export function latestNativeActivity(_0x2131de){const _0x24930b=_0x43ae;return _0x2131de[_0x24930b(0x12e)];}export function sameContextUsage(_0x3c075b,_0x298ba7){const _0x33ac9c=_0x43ae;return _0x3c075b[_0x33ac9c(0x125)]===_0x298ba7[_0x33ac9c(0x125)]&&_0x3c075b[_0x33ac9c(0xfd)]===_0x298ba7[_0x33ac9c(0xfd)]&&_0x3c075b[_0x33ac9c(0x12d)]===_0x298ba7[_0x33ac9c(0x12d)];}export function isNativeHistory(_0x2803f1){const _0x4761b8=_0x43ae;return typeof _0x2803f1===_0x4761b8(0x108)&&_0x2803f1!==null&&Array[_0x4761b8(0x119)](_0x2803f1[_0x4761b8(0x11c)]);}export function deduplicateDirectSessions(_0x500ec4){const _0x127a8b=_0x43ae,_0x1a0ca2=new Map();for(const _0x364125 of _0x500ec4){const _0x572929=_0x1a0ca2[_0x127a8b(0x12a)](_0x364125['id']);if(_0x572929===undefined||_0x572929[_0x127a8b(0x12e)]<_0x364125[_0x127a8b(0x12e)])_0x1a0ca2[_0x127a8b(0xd7)](_0x364125['id'],_0x364125);}return[..._0x1a0ca2[_0x127a8b(0x124)]()][_0x127a8b(0xc5)]((_0xaad4c0,_0x1f5cf9)=>_0x1f5cf9[_0x127a8b(0x12e)]-_0xaad4c0[_0x127a8b(0x12e)]);}export function nativeConversationPage(_0x210fc7,_0x205f07,_0x5469cd,_0x130cc3=[],_0x357388=()=>[]){const _0x3074ec=_0x43ae,_0x162d0f=Math[_0x3074ec(0xd9)](Math[_0x3074ec(0xaa)](_0x5469cd[_0x3074ec(0xed)]??-0x1e8e+-0x1*0x139+0x1fe5,-0x1d*0xb8+-0xa63*0x3+-0xe*-0x3b7),0xb*0x172+0xcf7*-0x3+-0x3*-0x851),_0x441f4b=_0x205f07[_0x3074ec(0x133)]===!![]?undefined:_0x5469cd[_0x3074ec(0xcd)],_0x2e5f58=nativeTranscriptTurns(_0x205f07[_0x3074ec(0x11c)]),_0x1cc79d=nativeTranscriptTurnIds(_0x210fc7['id'],_0x2e5f58),_0x2f29dd=nativePageEnd(_0x441f4b,_0x210fc7['id'],_0x2e5f58[_0x3074ec(0xc7)]),_0x2e7c21=Math[_0x3074ec(0xaa)](0x1a*-0x102+-0x4*0x412+0x2*0x153e,_0x2f29dd-_0x162d0f),_0x235530=_0x2e5f58[_0x3074ec(0x130)](_0x2e7c21,_0x2f29dd)[_0x3074ec(0xfb)]((_0x194679,_0x3e6a93)=>{const _0x3870e5=_0x3074ec,_0x487124=_0x194679[_0x3870e5(0x101)](({entry:_0x23f68c})=>_0x23f68c[_0x3870e5(0xf1)]===_0x3870e5(0xf3)&&_0x23f68c[_0x3870e5(0x9f)]===_0x3870e5(0x112))?.[_0x3870e5(0x106)],_0xd04aad=_0x487124?.[_0x3870e5(0xf1)]===_0x3870e5(0xf3)?nativeUserClientMessageId(_0x210fc7[_0x3870e5(0xf0)],_0x487124,_0x487124[_0x3870e5(0xba)],_0x130cc3):null,_0x48ab5f=typeof _0xd04aad===_0x3870e5(0xe3)?_0x130cc3[_0x3870e5(0x101)](_0x5b95d4=>runtimeTurnClientMessageId(_0x5b95d4)===_0xd04aad):undefined,_0xa414aa=_0x48ab5f?.['id']??_0x1cc79d[_0x2e7c21+_0x3e6a93],_0x2fa0a9=nativeTranscriptItemIdentities(_0x194679),_0x457868=_0x194679[_0x3870e5(0xfb)](({entry:_0x47a011,index:_0x4b932f},_0x8643e8)=>({...nativeTranscriptConversationItem(_0x210fc7,_0x47a011,_0x4b932f,_0x2fa0a9[_0x8643e8],_0xa414aa,_0x130cc3,_0x357388),'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null})),_0xb7041e=(_0x48ab5f?.[_0x3870e5(0x11c)]??[])[_0x3870e5(0xec)](_0x43cec6=>_0x43cec6[_0x3870e5(0xf1)]===_0x3870e5(0xc8))[_0x3870e5(0xfb)](_0x3c77b9=>({..._0x3c77b9,'turnId':_0xa414aa,'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null})),_0x57d6ce=runtimeAssistantProjectionMoreComplete(_0x48ab5f,_0x457868)?_0x48ab5f[_0x3870e5(0x11c)][_0x3870e5(0xfb)](_0x40f677=>({..._0x40f677,'turnId':_0xa414aa,'runId':_0x48ab5f[_0x3870e5(0xfc)]})):[..._0x457868,..._0xb7041e[_0x3870e5(0xec)](_0x44fd28=>!_0x457868[_0x3870e5(0xe7)](_0x515b4b=>_0x515b4b['id']===_0x44fd28['id']))],_0x397b4c=_0x57d6ce[0x143b+-0x5*-0x6f9+-0x3718*0x1]?.[_0x3870e5(0xb7)]??null,_0x3163b4=_0x57d6ce['at'](-(0x12cd+-0x70*-0x5+-0x14fc))?.[_0x3870e5(0xb3)]??_0x397b4c,_0x5b3f01=lastNativeItemId(_0x194679);return{'id':_0xa414aa,'sessionId':_0x210fc7['id'],'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null,'userItemId':_0x57d6ce[_0x3870e5(0x101)](_0xcad2b8=>_0xcad2b8[_0x3870e5(0xf1)]===_0x3870e5(0x10b))?.['id']??null,'status':_0xb7041e[_0x3870e5(0xc7)]>-0x8a5+-0x253+-0xaf8*-0x1?_0x3870e5(0xb4):_0x3870e5(0xa5),'model':null,'effort':null,'access':null,..._0x5b3f01===undefined||_0x210fc7[_0x3870e5(0xf0)]!==_0x3870e5(0xee)?{}:{'rewind':{'before':lastNativeItemId(_0x2e5f58[_0x2e7c21+_0x3e6a93-(-0x1*0x107+0x5e*0x43+-0x1792)]??[])??null,'after':_0x5b3f01}},'items':_0x57d6ce,'startedAt':_0x397b4c,'completedAt':_0x3163b4};}),_0x1c8fbe=_0x235530,_0x3aae68=_0x2e7c21,_0x2ff75d={'sessionId':_0x210fc7['id'],..._0x205f07[_0x3074ec(0xb9)]===undefined?{}:{'snapshotEnd':_0x205f07[_0x3074ec(0xb9)]},..._0x205f07[_0x3074ec(0x115)]===undefined?{}:{'nextEnd':_0x205f07[_0x3074ec(0x115)]},..._0x205f07[_0x3074ec(0x11e)]===undefined?{}:{'fileAnchor':_0x205f07[_0x3074ec(0x11e)]},..._0x205f07[_0x3074ec(0xf5)]===undefined?{}:{'anchorBytes':_0x205f07[_0x3074ec(0xf5)]},'readLimit':_0x205f07[_0x3074ec(0xe5)]??_0x162d0f},_0x2fd0dc=_0x205f07[_0x3074ec(0x137)]===!![]&&_0x205f07[_0x3074ec(0x104)]!==undefined&&_0x205f07[_0x3074ec(0xb9)]!==undefined&&_0x205f07[_0x3074ec(0x11e)]!==undefined&&_0x205f07[_0x3074ec(0xf5)]!==undefined?Buffer[_0x3074ec(0xc4)](JSON[_0x3074ec(0xe0)]({'sessionId':_0x210fc7['id'],'snapshotEnd':_0x205f07[_0x3074ec(0xb9)],'nextEnd':_0x205f07[_0x3074ec(0x104)],'fileAnchor':_0x205f07[_0x3074ec(0x11e)],'anchorBytes':_0x205f07[_0x3074ec(0xf5)],'readLimit':_0x205f07[_0x3074ec(0xe5)]??_0x162d0f}))[_0x3074ec(0x117)](_0x3074ec(0xad)):null;return{'turns':_0x1c8fbe,'nextCursor':_0x3aae68>-0x1*-0x337+-0xf9*-0x13+-0x15b2?Buffer[_0x3074ec(0xc4)](JSON[_0x3074ec(0xe0)]({..._0x2ff75d,'end':_0x3aae68}))[_0x3074ec(0x117)](_0x3074ec(0xad)):_0x2fd0dc};}export function runtimeAssistantProjectionMoreComplete(_0x2aacc4,_0x275b37){const _0x1087c6=_0x43ae;if(_0x2aacc4===undefined)return![];const _0x299275=_0x8f4351=>_0x8f4351[_0x1087c6(0xc6)]((_0x420a61,_0x556031)=>{const _0x95d9d4=_0x1087c6;if(_0x556031[_0x95d9d4(0xf1)]!==_0x95d9d4(0xac)||!isPlainRecord(_0x556031[_0x95d9d4(0xb5)]))return _0x420a61;return{'count':_0x420a61[_0x95d9d4(0x107)]+(0x1a94+-0x207*-0x9+-0x2cd2),'characters':_0x420a61[_0x95d9d4(0xa8)]+(typeof _0x556031[_0x95d9d4(0xb5)][_0x95d9d4(0xa0)]===_0x95d9d4(0xe3)?_0x556031[_0x95d9d4(0xb5)][_0x95d9d4(0xa0)][_0x95d9d4(0xc7)]:0x61*0x10+0x228e+-0x289e)};},{'count':0x0,'characters':0x0}),_0x2a9d44=_0x299275(_0x2aacc4[_0x1087c6(0x11c)]),_0x54b156=_0x299275(_0x275b37);return _0x2a9d44[_0x1087c6(0x107)]>_0x54b156[_0x1087c6(0x107)]||_0x2a9d44[_0x1087c6(0xa8)]>_0x54b156[_0x1087c6(0xa8)];}function _0x43ae(_0x252396,_0x2cd9ba){_0x252396=_0x252396-(0xf8e+-0x16db*-0x1+-0xa4*0x3b);const _0x2ddf3d=_0xb419();let _0x1d7cb1=_0x2ddf3d[_0x252396];if(_0x43ae['ZIEqHH']===undefined){var _0x400445=function(_0x4db6d4){const _0x58946c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17f917='',_0x5b37df='';for(let _0x482d14=0x1*0x166+-0x343*0x1+-0x1dd*-0x1,_0x229298,_0x339d18,_0x463e2b=-0x4*-0x36a+0x5d8*0x6+-0x30b8;_0x339d18=_0x4db6d4['charAt'](_0x463e2b++);~_0x339d18&&(_0x229298=_0x482d14%(0x7da*0x4+-0x382*0x7+-0x2*0x36b)?_0x229298*(-0x2068+-0x256f+0x4617)+_0x339d18:_0x339d18,_0x482d14++%(-0xbb0+-0xe33+0x19e7))?_0x17f917+=String['fromCharCode'](-0xdf*0x1+0x1ccc+-0x1aee&_0x229298>>(-(0xd4*0x13+-0x7*-0x321+-0x25a1)*_0x482d14&-0x1e8e+-0x1*0x139+0x1fcd)):-0x1d*0xb8+-0xa63*0x3+-0x1*-0x3401){_0x339d18=_0x58946c['indexOf'](_0x339d18);}for(let _0x59360b=0xb*0x172+0xcf7*-0x3+-0x1d*-0xcb,_0x2df7be=_0x17f917['length'];_0x59360b<_0x2df7be;_0x59360b++){_0x5b37df+='%'+('00'+_0x17f917['charCodeAt'](_0x59360b)['toString'](0x1a*-0x102+-0x4*0x412+0x4*0xaa3))['slice'](-(0x143b+-0x5*-0x6f9+-0x3716*0x1));}return decodeURIComponent(_0x5b37df);};_0x43ae['KExybL']=_0x400445,_0x43ae['mMkjpx']={},_0x43ae['ZIEqHH']=!![];}const _0xcf76b=_0x2ddf3d[0x12cd+-0x70*-0x5+-0x14fd];_0x43ae['OAClza']!==_0xcf76b&&(_0x43ae['mMkjpx']={},_0x43ae['OAClza']=_0xcf76b);const _0x2e6f0e=_0x43ae['mMkjpx'][_0x252396];return _0x2e6f0e===undefined?(_0x1d7cb1=_0x43ae['KExybL'](_0x1d7cb1),_0x43ae['mMkjpx'][_0x252396]=_0x1d7cb1):_0x1d7cb1=_0x2e6f0e,_0x1d7cb1;}function runtimeTurnClientMessageId(_0x3e8e23){const _0x48cf3f=_0x43ae,_0x31dd7c=_0x3e8e23[_0x48cf3f(0x11c)][_0x48cf3f(0x101)](_0x36d84b=>_0x36d84b[_0x48cf3f(0xf1)]===_0x48cf3f(0x10b));return isPlainRecord(_0x31dd7c?.[_0x48cf3f(0xb5)])&&typeof _0x31dd7c[_0x48cf3f(0xb5)][_0x48cf3f(0x12f)]===_0x48cf3f(0xe3)?_0x31dd7c[_0x48cf3f(0xb5)][_0x48cf3f(0x12f)]:undefined;}function lastNativeItemId(_0x111e4b){const _0x5def02=_0x43ae;return _0x111e4b[_0x5def02(0x12c)](({entry:_0x46833a})=>_0x46833a[_0x5def02(0xb1)]!==undefined)?.[_0x5def02(0x106)][_0x5def02(0xb1)];}function _0xb419(){const _0x371d13=['mte0mxf6v3r3vW','AxrLBs0','y3vYC29YuMvZzxq','B3b0Aw9UCW','BM90tg9HzgvK','zgLZDgfUy2u','Dhj1BMnHDgvK','qxnRvxnLCLf1zxn0Aw9U','C2HHmJu2','CM9Szq','Dgv4Da','Dg9VBf9JywXS','q09ervHF','x0Lex01ju1njtKC','CxvLC3rPB24','u1vdq0vfreve','y29UDgv4Df9JB21Wywn0Aw9U','DhjPBq','y2HHCMfJDgvYCW','nJC3ne52uKfPtW','Bwf4','Aw5WDxruCNvUy2f0zwq','yxnZAxn0yw50x21LC3nHz2u','yMfZzty0DxjS','Dg9VBe5HBwu','C291CMnL','Aw5WDxrtDw1Tyxj5','BMf0AxzLswq','oxfsA09MvG','y29TCgXLDgvKqxq','rKfjteve','Cgf5Bg9Hza','CxvLC3rPB25Z','C3rHCNrLzef0','u0Lor0Xfx1nftevdva','C25HChnOB3rfBMq','y3jLyxrLzef0','BwfYA2rVD24','q09nueXfveve','DxnLCL9PBNb1Df9Yzxf1zxn0','mtmXntKXz0vjDg5s','u0HpuLrFvevyva','vu5bvKfjtefcteu','mtu4nJmZmePSrLz5BW','DhvYBNm','C3vIqwDLBNq','zNjVBq','C29YDa','CMvKDwnL','BgvUz3rO','zxjYB3i','Dg9mB3DLCKnHC2u','C2vJDgLVBNm','CMfJzq','mJeWmZyZy3j4D0fH','y3vYC29Y','CgXHDgzVCM0','BMfTzq','BgfIzwW','BMf0AxzLlwzPBgu','y3DK','ChjLDMLLDW','zgf0yq','rvHurvjoquXFqunusvzf','C3rHCNrZv2L0Aa','C2v0','C291CMnLrxzLBNruExbL','BwLU','oML0zw06','B3v0Chv0vhj1BMnHDgvK','AxntAwrLy2HHAw4','C2vZC2LVBKLK','Aw5qCM9NCMvZCW','D2LUmZi','C3rYAw5NAwz5','zgLNzxn0','AwrSzq','C3rYAw5N','ndK4ndmZnKzSr1fJvG','D2LUzg93uMvHzeXPBwL0','CgHHC2u','C29Tzq','BxvSDgLtzwXLy3q','tvvmveLFu0vmrunu','ChvZAa','y2XHDwrLlxf1zxn0Aw9Ulq','zMLSDgvY','BgLTAxq','y2XHDwrLlwnVzgu','CMvWBgfJzq','CNvUBMvY','A2LUza','Dg9VBfvZzuLK','BwvZC2fNzq','C291CMnLs2LUza','yw5JAg9YqNL0zxm','Dw5Yzwy','CgXHBG','ywn0AxzL','zMXHDe1HCa','Dw5RBM93BG','BwfW','CNvUswq','DxnLzfrVA2vUCW','C3rHDhvZ','ve9ptf9fwevdvvrjt05FrKfjteve','nhnhqNLKzq','zMLUza','y29KzxG','zMfPBgvK','D2LUzg93u3rHCNq','zMLSztO','zw50CNK','y291BNq','B2jQzwn0','qundrvburuq','Dg9vChbLCKnHC2u','DxnLCL9TzxnZywDL','ywjZ','B3v0Chv0u3vTBwfYEq','zw50CMLLCW','zgvZy3jPChrPB24','mtz0y25Suem','BMf0AxzLoG','vvnfuG','DgL0Bgu','DgHYzwfK','D2LUzg93rw5K','oM5HDgL2ztO','Dg9tDhjPBMC','mtK2ntq2nJHbtfjPu2G','AxnbCNjHEq','DgvZDa','yxr0ywnOBwvUDhm','AxrLBxm','q09ervHFveHsrufex0nxrf9jtLzbteLe','zMLSzufUy2HVCG','surmrq','DhLWzq','Aw1Hz2vbDhrHy2HTzw50CW','C3vIywDLBNq','C3vTBwfYEq','DMfSDwvZ','Bw9KzwW','Aw5WDxq','mZK4mdm3meXNuufhBa','phbYB3bVC2vKx3bSyw4+','DxbKyxrL','z2v0','CMvHC29UAw5Nx3n1Bw1HCNK','zMLUzeXHC3q','Bwf4vg9Rzw5Z','BgfZDefJDgL2Axr5qxq','y2XPzw50twvZC2fNzuLK','C2XPy2u'];_0xb419=function(){return _0x371d13;};return _0xb419();}function nativeTranscriptTurnIds(_0xf2831a,_0x27b601){const _0x173948=_0x43ae,_0x5cf8db=new Map();return _0x27b601[_0x173948(0xfb)](_0x4b9f4b=>{const _0x37eabf=_0x173948,_0x2bf3d7=_0x4b9f4b[_0x37eabf(0x101)](({entry:_0x5c737e})=>_0x5c737e[_0x37eabf(0xf1)]===_0x37eabf(0xf3)&&_0x5c737e[_0x37eabf(0x9f)]===_0x37eabf(0x112))?.[_0x37eabf(0x106)],_0x161a86=_0x2bf3d7??_0x4b9f4b[0x9*-0x33b+0x4*0x4fd+-0x1d3*-0x5]?.[_0x37eabf(0x106)],_0x263a77=_0x161a86?.[_0x37eabf(0xb1)]??nativeTranscriptItemFingerprint(_0x161a86),_0x13e096=_0x5cf8db[_0x37eabf(0x12a)](_0x263a77)??0x204e*-0x1+-0xf*0x14b+0x5*0xa57;return _0x5cf8db[_0x37eabf(0xd7)](_0x263a77,_0x13e096+(0x3f5*-0x8+0x1d39+0x270)),_0xf2831a+_0x37eabf(0x116)+_0x263a77+(_0x13e096===-0xd73*0x1+-0x7*0x2a1+-0x38a*-0x9?'':':'+_0x13e096);});}function nativeTranscriptItemIdentities(_0x18123f){const _0xbb64ca=_0x43ae,_0x1ebad1=new Map();for(const {entry:_0x48d588}of _0x18123f)if(_0x48d588[_0xbb64ca(0xb1)]!==undefined)_0x1ebad1[_0xbb64ca(0xd7)](_0x48d588[_0xbb64ca(0xb1)],(_0x1ebad1[_0xbb64ca(0x12a)](_0x48d588[_0xbb64ca(0xb1)])??0x5b8+0x11aa+-0x1762)+(0x45b+-0x1*-0xeef+-0x1349));const _0x27bc60=new Map();return _0x18123f[_0xbb64ca(0xfb)](({entry:_0x1b801d})=>{const _0x4b6278=_0xbb64ca,_0x41ae98=_0x1b801d[_0x4b6278(0xb1)]!==undefined&&_0x1ebad1[_0x4b6278(0x12a)](_0x1b801d[_0x4b6278(0xb1)])===0xc62+-0x1a1e+0xdbd?_0x1b801d[_0x4b6278(0xb1)]:''+(_0x1b801d[_0x4b6278(0xb1)]===undefined?'':_0x1b801d[_0x4b6278(0xb1)]+':')+nativeTranscriptItemFingerprint(_0x1b801d),_0x4750e2=_0x27bc60[_0x4b6278(0x12a)](_0x41ae98)??0x179*0x14+0x1ece*0x1+-0x3c42;return _0x27bc60[_0x4b6278(0xd7)](_0x41ae98,_0x4750e2+(0x2*0xa6a+-0xb7c*0x2+0x9*0x3d)),_0x4750e2===-0xb*0x10f+0x1558+-0x9b3?_0x41ae98:_0x41ae98+':'+_0x4750e2;});}function nativeTranscriptItemFingerprint(_0x15d684){const _0x1d6bdd=_0x43ae;return createHash(_0x1d6bdd(0x9e))[_0x1d6bdd(0x129)](JSON[_0x1d6bdd(0xe0)](_0x15d684??null))[_0x1d6bdd(0xe1)](_0x1d6bdd(0xad))[_0x1d6bdd(0x130)](0x3*0x138+-0x85f*-0x3+-0x1cc5,-0x15e2+0x19f6+-0x3fc);}function nativeTranscriptTurns(_0x44798b){const _0x1365ab=_0x43ae,_0x2e19e0=[];let _0x383301=[];for(const [_0x89405c,_0x2653ac]of _0x44798b[_0x1365ab(0x10e)]()){_0x2653ac[_0x1365ab(0xf1)]===_0x1365ab(0xf3)&&_0x2653ac[_0x1365ab(0x9f)]===_0x1365ab(0x112)&&_0x383301[_0x1365ab(0xc7)]>-0x2557+-0x311*-0xb+0x21*0x1c&&(_0x2e19e0[_0x1365ab(0xea)](_0x383301),_0x383301=[]),_0x383301[_0x1365ab(0xea)]({'entry':_0x2653ac,'index':_0x89405c});}if(_0x383301[_0x1365ab(0xc7)]>0x1d99+0x1*-0x12c1+-0xad8)_0x2e19e0[_0x1365ab(0xea)](_0x383301);return _0x2e19e0;}function nativeTranscriptConversationItem(_0x1f2454,_0x26534f,_0x5bf859,_0x2dce03,_0x1375ab,_0x53f8c9,_0x1b029d){const _0x1de226=_0x43ae,_0x7e9a69=_0x26534f[_0x1de226(0xba)],_0x167170=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa1),_0x442faa=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xfa),_0x46cd85=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0x12b),_0xc05ca0=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa6),_0x491923=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0xee)&&_0x167170?normalizeClaudeTool(_0x26534f[_0x1de226(0xae)],_0x26534f[_0x1de226(0x126)],_0x26534f[_0x1de226(0x10d)],_0x26534f[_0x1de226(0x103)],_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)]):undefined,_0x303866=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0x102)&&_0x167170?normalizeCodexTool({'name':_0x26534f[_0x1de226(0xae)],'namespace':_0x1de226(0x102),'rawInput':_0x26534f[_0x1de226(0x126)],'inputSummary':_0x26534f[_0x1de226(0xb0)],'outputSummary':_0x26534f[_0x1de226(0x10d)],'truncated':_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)],..._0x26534f[_0x1de226(0x121)]===undefined?{}:{'attachments':_0x26534f[_0x1de226(0x121)]}}):undefined,_0x4dfe58=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0xee)&&_0x167170&&_0x26534f[_0x1de226(0xae)]===_0x1de226(0x9d)&&isPlainRecord(_0x26534f[_0x1de226(0x126)])?claudeUserInputQuestions(_0x26534f[_0x1de226(0x126)]):[],_0x3f658f=_0x4dfe58[_0x1de226(0xc7)]>0xb29+0xb26+-0x1*0x164f,_0x5aea59=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?nativeUserClientMessageId(_0x1f2454[_0x1de226(0xf0)],_0x26534f,_0x7e9a69,_0x53f8c9):null,_0x5d7a13=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)?_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?nativeUserMessageText(_0x1f2454[_0x1de226(0xf0)],_0x26534f[_0x1de226(0xa0)]):_0x26534f[_0x1de226(0xa0)]:'',_0x38c2cf=_0x5aea59===null?undefined:runtimeUserMessagePayload(_0x5aea59,_0x53f8c9),_0x1d04db=Array[_0x1de226(0x119)](_0x38c2cf?.[_0x1de226(0x11b)])?_0x38c2cf[_0x1de226(0x11b)]:_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)&&_0x26534f[_0x1de226(0x121)]!==undefined?_0x1b029d(_0x26534f[_0x1de226(0x121)]):[],_0x26a212=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]!==_0x1de226(0x112)?claudePlanText(_0x5d7a13):undefined,_0x819786={'id':_0x1375ab+_0x1de226(0xda)+_0x2dce03,'sessionId':_0x1f2454['id'],'turnId':_0x1375ab,'runId':null,'parentItemId':null,'sourceSequence':_0x5bf859,'revision':0x0,'kind':_0x3f658f?_0x1de226(0xbd):_0x46cd85?_0x1de226(0x12b):_0xc05ca0?_0x1de226(0xa6):_0x167170?_0x491923?.[_0x1de226(0xf1)]??_0x303866?.[_0x1de226(0xf1)]??_0x1de226(0xa1):_0x442faa?_0x1de226(0xfa):_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?_0x1de226(0x10b):_0x26a212!==undefined?_0x1de226(0xf7):_0x1de226(0xac),'status':_0x1de226(0xbc),'payload':_0x3f658f?{'requestId':_0x1de226(0x111)+(_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa1)?_0x26534f[_0x1de226(0xf2)]:_0x1de226(0x132)+_0x2dce03),'questions':_0x4dfe58}:_0x46cd85?{'sections':_0x26534f[_0x1de226(0xca)]}:_0xc05ca0?{'phase':_0x26534f[_0x1de226(0xe6)],'summary':_0x26534f[_0x1de226(0x123)]}:_0x167170?{..._0x491923?.[_0x1de226(0xb5)]??_0x303866?.[_0x1de226(0xb5)]??{'namespace':_0x1f2454[_0x1de226(0xf0)],'toolName':_0x26534f[_0x1de226(0xae)],'title':_0x26534f[_0x1de226(0xae)],'inputSummary':_0x26534f[_0x1de226(0xb0)],'outputSummary':_0x26534f[_0x1de226(0x10d)],'progressLabel':null,'errorCode':_0x26534f[_0x1de226(0x103)]?_0x1de226(0xff):null,'truncated':_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)]},..._0x26534f[_0x1de226(0x121)]===undefined?{}:{'attachments':_0x1b029d(_0x26534f[_0x1de226(0x121)])}}:_0x442faa?{'sourceEventType':_0x26534f[_0x1de226(0xd8)],'label':_0x26534f[_0x1de226(0xd0)]}:_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?{'clientMessageId':_0x5aea59,'text':_0x5d7a13,'contexts':[],'delivery':_0x1de226(0x109),..._0x1d04db[_0x1de226(0xc7)]===0x268f+-0x51c+0x1*-0x2173?{}:{'attachments':_0x1d04db}}:_0x26a212!==undefined?{'explanation':compactRunnerText(_0x26a212,0x1*0x610f+0x1be5*0x2+-0x4ab9),'steps':[]}:{'text':_0x5d7a13,'format':_0x1de226(0xbb),'source':_0x1de226(0xd1)},'startedAt':_0x7e9a69,'completedAt':_0x7e9a69};return _0x819786;}export function nativeUserClientMessageId(_0x25aa5a,_0x4392f,_0x356c4d,_0x174c2d){const _0x3a360b=_0x43ae,_0x17c8d4=[];for(const _0x29d12d of _0x174c2d){const _0x3d98f3=_0x29d12d[_0x3a360b(0x11c)][_0x3a360b(0x101)](_0x19bcf3=>_0x19bcf3[_0x3a360b(0xf1)]===_0x3a360b(0x10b));if(_0x3d98f3===undefined||!isPlainRecord(_0x3d98f3[_0x3a360b(0xb5)]))continue;const _0x5aec8b=_0x3d98f3[_0x3a360b(0xb5)],_0x277545=typeof _0x5aec8b[_0x3a360b(0x12f)]===_0x3a360b(0xe3)?_0x5aec8b[_0x3a360b(0x12f)]:null;if(_0x277545===null||_0x5aec8b[_0x3a360b(0xa0)]!==nativeUserMessageText(_0x25aa5a,_0x4392f[_0x3a360b(0xa0)]))continue;const _0x59859c=_0x3d98f3[_0x3a360b(0xb7)]??_0x29d12d[_0x3a360b(0xb7)];_0x17c8d4[_0x3a360b(0xea)]({'clientMessageId':_0x277545,'createdAt':_0x59859c??null});}if(_0x356c4d===null)return _0x17c8d4[_0x3a360b(0xc7)]===0xcde+-0x21f5+-0x546*-0x4?_0x17c8d4[0x1c8b+-0x2350+-0x1*-0x6c5][_0x3a360b(0x12f)]:null;const _0x49568c=_0x17c8d4[_0x3a360b(0xec)](_0x5ad566=>_0x5ad566[_0x3a360b(0xba)]!==null)[_0x3a360b(0xfb)](_0x159aca=>({..._0x159aca,'distance':Math[_0x3a360b(0x10c)](_0x356c4d-_0x159aca[_0x3a360b(0xba)])}))[_0x3a360b(0xec)](_0x5da53a=>_0x5da53a[_0x3a360b(0x136)]<=0x1*-0xac51+-0x1*0x1254d+0x2*0x15dff)[_0x3a360b(0xc5)]((_0x489fe0,_0x2f0d57)=>_0x489fe0[_0x3a360b(0x136)]-_0x2f0d57[_0x3a360b(0x136)]);return _0x49568c[-0x2f*0xce+0x132c+-0xb*-0x1b2]?.[_0x3a360b(0x12f)]??null;}function runtimeUserMessagePayload(_0x5efae2,_0x4d3423){const _0x4ae3e5=_0x43ae;for(const _0x53fb8c of _0x4d3423){const _0x3e5541=_0x53fb8c[_0x4ae3e5(0x11c)][_0x4ae3e5(0x101)](_0x446de6=>_0x446de6[_0x4ae3e5(0xf1)]===_0x4ae3e5(0x10b));if(!isPlainRecord(_0x3e5541?.[_0x4ae3e5(0xb5)])||_0x3e5541[_0x4ae3e5(0xb5)][_0x4ae3e5(0x12f)]!==_0x5efae2)continue;return _0x3e5541[_0x4ae3e5(0xb5)];}return undefined;}function nativeUserMessageText(_0x5e13ef,_0x2a474a){const _0xb8efc0=_0x43ae,_0x5ed162=stripMissionStartPrompt(_0x2a474a),_0x4673b1=_0x5e13ef===_0xb8efc0(0xee)?stripClaudePlanTag(_0x5ed162):_0x5ed162;if(_0x5e13ef!==_0xb8efc0(0x102))return _0x4673b1;return parseCodexComposerImageMarkers(_0x4673b1)[_0xb8efc0(0xa0)];}export function claudePlanText(_0x57a24c){const _0x4d51c9=_0x43ae,_0x58ec6f=_0x57a24c[_0x4d51c9(0xa7)]();if(!_0x58ec6f[_0x4d51c9(0xd6)](_0x4d51c9(0x128))||!/<\/proposed_plan>\s*$/[_0x4d51c9(0x11a)](_0x58ec6f))return undefined;const _0x270cd1=_0x58ec6f[_0x4d51c9(0x130)](_0x4d51c9(0x128)[_0x4d51c9(0xc7)])[_0x4d51c9(0xef)](/<\/proposed_plan>\s*$/,'')[_0x4d51c9(0xa7)]();return _0x270cd1[_0x4d51c9(0xc7)]>-0x9b1+-0x1406+0x1*0x1db7?_0x270cd1:undefined;}export function claudeUserInputQuestions(_0x4c8b43){const _0x2c1abd=_0x43ae;if(!Array[_0x2c1abd(0x119)](_0x4c8b43[_0x2c1abd(0xb6)])||_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xc7)]===0x4c7*-0x1+0x1fc5*-0x1+0x923*0x4||_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xc7)]>0x190c+-0x1*0x1106+0x29*-0x32)return[];const _0x493648=_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xfb)]((_0x1bc1ec,_0xc4cd03)=>{const _0x35d1f3=_0x2c1abd;if(!isPlainRecord(_0x1bc1ec)||typeof _0x1bc1ec[_0x35d1f3(0xa4)]!==_0x35d1f3(0xe3))return undefined;const _0x274569=Array[_0x35d1f3(0x119)](_0x1bc1ec[_0x35d1f3(0x134)])?_0x1bc1ec[_0x35d1f3(0x134)][_0x35d1f3(0xf9)](_0x1229c3=>{const _0x28e1bc=_0x35d1f3;if(!isPlainRecord(_0x1229c3)||typeof _0x1229c3[_0x28e1bc(0xd0)]!==_0x28e1bc(0xe3))return[];const _0x4ac138=compactRunnerText(_0x1229c3[_0x28e1bc(0xd0)],0x4*0x17f+-0x1ef8+-0x35e*-0x8);return _0x4ac138[_0x28e1bc(0xc7)]===0xb3*-0x16+-0x1276+0x21d8?[]:[{'value':_0x4ac138,'label':_0x4ac138,'description':typeof _0x1229c3[_0x28e1bc(0x10f)]===_0x28e1bc(0xe3)?compactRunnerText(_0x1229c3[_0x28e1bc(0x10f)],0xb33+0x2d*-0x6a+0xb57):null}];}):[],_0x1fd612=_0x1bc1ec[_0x35d1f3(0xe8)]===!![];return{'id':_0x35d1f3(0xeb)+_0xc4cd03,'prompt':compactRunnerText(_0x1bc1ec[_0x35d1f3(0xa4)],-0x2*0x1063+0x6a6+0x16d4*0x2),'input':_0x274569[_0x35d1f3(0xc7)]===0xd99*-0x1+-0x1ad8+0x11*0x261?_0x35d1f3(0xbf):_0x1fd612?_0x35d1f3(0xe9):_0x35d1f3(0xb8),'options':_0x274569,'allowOther':!![],'multiSelect':_0x1fd612};});return _0x493648[_0x2c1abd(0xe7)](_0x2e0f4a=>_0x2e0f4a===undefined)?[]:_0x493648;}
2
+ (function(_0x15786c,_0x1c8b86){const _0x27c443=_0x5867,_0x189afc=_0x15786c();while(!![]){try{const _0x237620=-parseInt(_0x27c443(0x1ef))/(-0xf73+-0x247*-0x2+0xae6)+parseInt(_0x27c443(0x1d7))/(0x2*-0xda3+0x1*-0xda9+0x28f1)*(-parseInt(_0x27c443(0x241))/(0x1bc4*0x1+0x13c5+-0x2f86))+parseInt(_0x27c443(0x1c4))/(-0x6a6+0x2fa+0x1d8*0x2)+-parseInt(_0x27c443(0x1c7))/(-0x250a+0x1507*0x1+0x1008)*(-parseInt(_0x27c443(0x1f8))/(0x6d*-0x1d+0x3*0x232+0x5c9))+-parseInt(_0x27c443(0x204))/(0x134a+-0xdac+0x35*-0x1b)+parseInt(_0x27c443(0x21d))/(-0xb0b*-0x3+-0x1c62+-0x4b7)+parseInt(_0x27c443(0x227))/(0x1d1*-0x13+0x1*-0x10a6+0x3332)*(parseInt(_0x27c443(0x1f7))/(0xe82*-0x2+-0x194b+0x3659));if(_0x237620===_0x1c8b86)break;else _0x189afc['push'](_0x189afc['shift']());}catch(_0x2116fc){_0x189afc['push'](_0x189afc['shift']());}}}(_0x3bda,0x54751+0x413ff+0x37*-0xe03));import{createHash}from'node:crypto';import{fileURLToPath}from'node:url';import{stripClaudePlanTag}from'../runner-command-engine.js';import{stripMissionStartPrompt}from'../service/mission-runtime.js';import{parseCodexComposerImageMarkers}from'../runner/codex/composer-image-markers.js';import{normalizeCodexTool}from'../runner/codex/tool-normalizer.js';import{normalizeClaudeTool}from'../runner/claude/tool-normalizer.js';import{compactRunnerText,isPlainRecord,nativePageEnd}from'./node-operation-parsers.js';export function extractId(_0x546b4e,_0x49656e){const _0x2cf9b1=_0x5867;if(typeof _0x546b4e===_0x2cf9b1(0x209)&&_0x546b4e!==null&&_0x49656e in _0x546b4e&&typeof _0x546b4e[_0x49656e]===_0x2cf9b1(0x209)&&_0x546b4e[_0x49656e]!==null&&typeof _0x546b4e[_0x49656e]['id']===_0x2cf9b1(0x212))return _0x546b4e[_0x49656e]['id'];throw new Error(_0x2cf9b1(0x1cf)+_0x49656e[_0x2cf9b1(0x1d6)]()+_0x2cf9b1(0x1fa));}export async function settleWithin(_0x27edce,_0x3f227a){const _0x83bbc4=_0x5867;let _0x139c02;try{return await Promise[_0x83bbc4(0x1bf)]([_0x27edce,new Promise(_0x3b5d3a=>{const _0x186de4=_0x83bbc4;_0x139c02=setTimeout(()=>_0x3b5d3a(undefined),_0x3f227a),_0x139c02[_0x186de4(0x1e4)]();})]);}finally{if(_0x139c02!==undefined)clearTimeout(_0x139c02);}}export function extractCodexThreads(_0x10d17c){const _0x55bbd5=_0x5867;if(typeof _0x10d17c!==_0x55bbd5(0x209)||_0x10d17c===null||!(_0x55bbd5(0x203)in _0x10d17c))return[];const _0x245778=_0x10d17c[_0x55bbd5(0x203)];if(!Array[_0x55bbd5(0x23f)](_0x245778))return[];return _0x245778[_0x55bbd5(0x1ce)](_0x436e9d=>{const _0x5856cf=_0x55bbd5;if(typeof _0x436e9d!==_0x5856cf(0x209)||_0x436e9d===null)return[];const _0x32428b=_0x436e9d;if(typeof _0x32428b['id']!==_0x5856cf(0x212))return[];const _0xdca072=typeof _0x32428b[_0x5856cf(0x1f6)]===_0x5856cf(0x212)?_0x32428b[_0x5856cf(0x1f6)]:typeof _0x32428b[_0x5856cf(0x222)]===_0x5856cf(0x212)?_0x32428b[_0x5856cf(0x222)]:typeof _0x32428b[_0x5856cf(0x222)]===_0x5856cf(0x209)&&_0x32428b[_0x5856cf(0x222)]!==null&&typeof _0x32428b[_0x5856cf(0x222)][_0x5856cf(0x1f2)]===_0x5856cf(0x212)?_0x32428b[_0x5856cf(0x222)][_0x5856cf(0x1f2)]:undefined,_0x53a142=isPlainRecord(_0x32428b[_0x5856cf(0x222)])?_0x32428b[_0x5856cf(0x222)]:undefined,_0xb48520=_0xdca072===_0x5856cf(0x1e6)||_0x53a142?.[_0x5856cf(0x1f2)]===_0x5856cf(0x1e6)||isPlainRecord(_0x53a142?.[_0x5856cf(0x1e6)])||isPlainRecord(_0x53a142?.[_0x5856cf(0x225)]),_0x5a502e=typeof _0x32428b[_0x5856cf(0x22d)]===_0x5856cf(0x212)&&_0x32428b[_0x5856cf(0x22d)][_0x5856cf(0x206)]()[_0x5856cf(0x219)]>0x1824+0x641+-0xfb*0x1f?_0x32428b[_0x5856cf(0x22d)][_0x5856cf(0x206)]():typeof _0x32428b[_0x5856cf(0x1e8)]===_0x5856cf(0x212)&&_0x32428b[_0x5856cf(0x1e8)][_0x5856cf(0x206)]()[_0x5856cf(0x219)]>0x59*-0x35+0x1273*-0x1+0x8*0x49c?_0x32428b[_0x5856cf(0x1e8)][_0x5856cf(0x206)]():undefined;return[{'id':_0x32428b['id'],'source':_0xdca072,'derived':_0xb48520,'cwd':_0x32428b[_0x5856cf(0x1b5)],'title':_0x5a502e}];});}export function codexThreadCwd(_0x2c4f91){const _0x44bf52=_0x5867;if(typeof _0x2c4f91!==_0x44bf52(0x212)||_0x2c4f91[_0x44bf52(0x219)]===0x7*-0x517+-0x1*-0xaf+-0x1*-0x22f2)throw new Error(_0x44bf52(0x239));if(!_0x2c4f91[_0x44bf52(0x233)](_0x44bf52(0x1de)))return _0x2c4f91;try{return fileURLToPath(_0x2c4f91);}catch{throw new Error(_0x44bf52(0x239));}}export function isWithinWorkspace(_0x58f095,_0x3e043c){const _0x4c5a73=_0x5867,_0x4bbd90=_0x2db6fd=>{const _0x3e2bf6=_0x5867,_0x544a42=_0x2db6fd[_0x3e2bf6(0x221)](/[\\/]+/g,'/')[_0x3e2bf6(0x221)](/\/$/,'');return process[_0x3e2bf6(0x1ec)]===_0x3e2bf6(0x237)?_0x544a42[_0x3e2bf6(0x214)]():_0x544a42;},_0x13221b=_0x4bbd90(_0x58f095),_0x36b00a=_0x4bbd90(_0x3e043c);if(_0x13221b===_0x36b00a)return!![];return _0x13221b[_0x4c5a73(0x233)](_0x36b00a+'/');}export function claudeDiscoveredSession(_0x1228cc,_0x2003d8){const _0xd712b=_0x5867;if(typeof _0x1228cc!==_0xd712b(0x209)||_0x1228cc===null)return undefined;const _0x3dc6b4=_0x1228cc;if(_0x3dc6b4[_0xd712b(0x22a)]===!![])return undefined;const _0x51797e=typeof _0x3dc6b4[_0xd712b(0x1d3)]===_0xd712b(0x212)?_0x3dc6b4[_0xd712b(0x1d3)]:typeof _0x3dc6b4['id']===_0xd712b(0x212)?_0x3dc6b4['id']:undefined;if(_0x51797e===undefined||_0x51797e[_0xd712b(0x219)]===-0x2190+-0x1933*0x1+0x865*0x7)return undefined;const _0x2b07ec=typeof _0x3dc6b4[_0xd712b(0x1bb)]===_0xd712b(0x212)?_0x3dc6b4[_0xd712b(0x1bb)]:typeof _0x3dc6b4[_0xd712b(0x1d9)]===_0xd712b(0x212)?_0x3dc6b4[_0xd712b(0x1d9)]:undefined,_0x54e36a=typeof _0x3dc6b4[_0xd712b(0x1b5)]===_0xd712b(0x212)&&_0x3dc6b4[_0xd712b(0x1b5)][_0xd712b(0x219)]>0x1*-0x253d+-0x15ef+-0x874*-0x7?_0x3dc6b4[_0xd712b(0x1b5)]:_0x2003d8;return{'externalSessionId':_0x51797e,'cwd':_0x54e36a,..._0x2b07ec===undefined?{}:{'title':_0x2b07ec[_0xd712b(0x1c2)](0x750+0x1926+-0x2076,0x1*0x769+-0x2111*-0x1+-0x282a)}};}export function latestNativeActivity(_0x289dd0){const _0x5fa6eb=_0x5867;return _0x289dd0[_0x5fa6eb(0x23d)];}export function sameContextUsage(_0x24d5f7,_0x3c6cac){const _0x4adc6d=_0x5867;return _0x24d5f7[_0x4adc6d(0x217)]===_0x3c6cac[_0x4adc6d(0x217)]&&_0x24d5f7[_0x4adc6d(0x1ff)]===_0x3c6cac[_0x4adc6d(0x1ff)]&&_0x24d5f7[_0x4adc6d(0x205)]===_0x3c6cac[_0x4adc6d(0x205)];}function _0x5867(_0x3a834c,_0x46b1ba){_0x3a834c=_0x3a834c-(0x1724*-0x1+0x1c19*0x1+-0x340);const _0x561f29=_0x3bda();let _0x4a3e7b=_0x561f29[_0x3a834c];if(_0x5867['CXTDfJ']===undefined){var _0x588dce=function(_0x34bb89){const _0x43ee75='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ba8fa='',_0x89b234='';for(let _0x46f8e1=0xe5*-0xa+-0x1*0x2126+0x2a18,_0x8b8a3a,_0x5490a8,_0x58907d=0x1e80+-0x13d6+0xb6*-0xf;_0x5490a8=_0x34bb89['charAt'](_0x58907d++);~_0x5490a8&&(_0x8b8a3a=_0x46f8e1%(0x1*0x1d0e+0x16aa+0xced*-0x4)?_0x8b8a3a*(0xbef+-0x1*-0x1852+-0x2401)+_0x5490a8:_0x5490a8,_0x46f8e1++%(-0x1933*0x1+0x6f4*-0x5+0x3bfb))?_0x4ba8fa+=String['fromCharCode'](-0x15ef*0x1+-0xd5*-0xd+0x1bb*0x7&_0x8b8a3a>>(-(-0x866+0x242*-0x1+0x1*0xaaa)*_0x46f8e1&0x1d47+-0x7*0x556+0x819)):-0x2*-0xfb+0xcc4+-0xeba){_0x5490a8=_0x43ee75['indexOf'](_0x5490a8);}for(let _0x86f7ec=0x1a68+-0x2f*-0x68+-0x68*0x70,_0x34367f=_0x4ba8fa['length'];_0x86f7ec<_0x34367f;_0x86f7ec++){_0x89b234+='%'+('00'+_0x4ba8fa['charCodeAt'](_0x86f7ec)['toString'](0x1e08+-0x125b+-0xb9d))['slice'](-(0x289*-0x1+0x21ed*-0x1+0x2478));}return decodeURIComponent(_0x89b234);};_0x5867['olNuKR']=_0x588dce,_0x5867['DtQqbO']={},_0x5867['CXTDfJ']=!![];}const _0x5373cb=_0x561f29[-0x488+0x83*0x49+-0x20d3];_0x5867['cIuSRR']!==_0x5373cb&&(_0x5867['DtQqbO']={},_0x5867['cIuSRR']=_0x5373cb);const _0x2308d1=_0x5867['DtQqbO'][_0x3a834c];return _0x2308d1===undefined?(_0x4a3e7b=_0x5867['olNuKR'](_0x4a3e7b),_0x5867['DtQqbO'][_0x3a834c]=_0x4a3e7b):_0x4a3e7b=_0x2308d1,_0x4a3e7b;}export function isNativeHistory(_0x285a69){const _0xa6c037=_0x5867;return typeof _0x285a69===_0xa6c037(0x209)&&_0x285a69!==null&&Array[_0xa6c037(0x23f)](_0x285a69[_0xa6c037(0x23b)]);}export function deduplicateDirectSessions(_0x322687){const _0x41e068=_0x5867,_0x31831b=new Map();for(const _0x3d7437 of _0x322687){const _0x596a79=_0x31831b[_0x41e068(0x20c)](_0x3d7437['id']);if(_0x596a79===undefined||_0x596a79[_0x41e068(0x23d)]<_0x3d7437[_0x41e068(0x23d)])_0x31831b[_0x41e068(0x208)](_0x3d7437['id'],_0x3d7437);}return[..._0x31831b[_0x41e068(0x1f0)]()][_0x41e068(0x1f3)]((_0x2c8bfb,_0x265c55)=>_0x265c55[_0x41e068(0x23d)]-_0x2c8bfb[_0x41e068(0x23d)]);}export function nativeConversationPage(_0x2cb19b,_0x5c40c0,_0x10661a,_0x50f20a=[],_0x5b35b8=()=>[]){const _0x2e89e8=_0x5867,_0x3b54af=Math[_0x2e89e8(0x20d)](Math[_0x2e89e8(0x1d5)](_0x10661a[_0x2e89e8(0x1f5)]??0x22e+0xe*-0xf2+-0x16*-0x82,0x3b*-0x63+-0xd3e+-0x10*-0x241),-0x10*-0x83+-0x1377+0xd3b),_0x40232c=_0x5c40c0[_0x2e89e8(0x1c0)]===!![]?undefined:_0x10661a[_0x2e89e8(0x1f1)],_0x41c815=nativeTranscriptTurns(_0x5c40c0[_0x2e89e8(0x23b)]),_0x5d6ec5=nativeTranscriptTurnIds(_0x2cb19b['id'],_0x41c815),_0x15fb64=nativePageEnd(_0x40232c,_0x2cb19b['id'],_0x41c815[_0x2e89e8(0x219)]),_0x5ceb7d=Math[_0x2e89e8(0x1d5)](-0xdf2+0x289*-0x1+0x107b*0x1,_0x15fb64-_0x3b54af),_0x1cde99=_0x41c815[_0x2e89e8(0x1c2)](_0x5ceb7d,_0x15fb64)[_0x2e89e8(0x1b7)]((_0x19e3ec,_0x10f077)=>{const _0x23a3b3=_0x2e89e8,_0x3936f2=_0x19e3ec[_0x23a3b3(0x1c9)](({entry:_0x24c72b})=>_0x24c72b[_0x23a3b3(0x1f2)]===_0x23a3b3(0x235)&&_0x24c72b[_0x23a3b3(0x224)]===_0x23a3b3(0x1e7))?.[_0x23a3b3(0x1c6)],_0xac5e43=_0x3936f2?.[_0x23a3b3(0x1f2)]===_0x23a3b3(0x235)?nativeUserClientMessageId(_0x2cb19b[_0x23a3b3(0x1c8)],_0x3936f2,_0x3936f2[_0x23a3b3(0x20f)],_0x50f20a):null,_0x36ab2b=typeof _0xac5e43===_0x23a3b3(0x212)?_0x50f20a[_0x23a3b3(0x1c9)](_0x831046=>runtimeTurnClientMessageId(_0x831046)===_0xac5e43):undefined,_0x402753=_0x36ab2b?.['id']??_0x5d6ec5[_0x5ceb7d+_0x10f077],_0x307b2c=nativeTranscriptItemIdentities(_0x19e3ec),_0x36e28f=_0x19e3ec[_0x23a3b3(0x1b7)](({entry:_0x3cc0ea,index:_0x1d1d71},_0x42e0b6)=>({...nativeTranscriptConversationItem(_0x2cb19b,_0x3cc0ea,_0x1d1d71,_0x307b2c[_0x42e0b6],_0x402753,_0x50f20a,_0x5b35b8),'runId':_0x36ab2b?.[_0x23a3b3(0x228)]??null})),_0x46b0d2=(_0x36ab2b?.[_0x23a3b3(0x23b)]??[])[_0x23a3b3(0x1e1)](_0x4c46f3=>_0x4c46f3[_0x23a3b3(0x1f2)]===_0x23a3b3(0x21c))[_0x23a3b3(0x1b7)](_0x327963=>({..._0x327963,'turnId':_0x402753,'runId':_0x36ab2b?.[_0x23a3b3(0x228)]??null})),_0x5ef9f1=runtimeAssistantProjectionMoreComplete(_0x36ab2b,_0x36e28f)?_0x36ab2b[_0x23a3b3(0x23b)][_0x23a3b3(0x1b7)](_0x28e531=>({..._0x28e531,'turnId':_0x402753,'runId':_0x36ab2b[_0x23a3b3(0x228)]})):[..._0x36e28f,..._0x46b0d2[_0x23a3b3(0x1e1)](_0x435f3e=>!_0x36e28f[_0x23a3b3(0x23a)](_0x2801c6=>_0x2801c6['id']===_0x435f3e['id']))],_0x507372=_0x5ef9f1[-0x4ab*0x1+0x28*-0x1d+0x933]?.[_0x23a3b3(0x22f)]??null,_0xc86ecf=_0x5ef9f1['at'](-(0xe3*0xa+0x3c5*0x5+-0x1bb6))?.[_0x23a3b3(0x1b8)]??_0x507372,_0x527cdd=lastNativeItemId(_0x19e3ec);return{'id':_0x402753,'sessionId':_0x2cb19b['id'],'runId':_0x36ab2b?.[_0x23a3b3(0x228)]??null,'userItemId':_0x5ef9f1[_0x23a3b3(0x1c9)](_0x18b8c5=>_0x18b8c5[_0x23a3b3(0x1f2)]===_0x23a3b3(0x1e5))?.['id']??null,'status':_0x46b0d2[_0x23a3b3(0x219)]>-0x211*-0x2+-0x84b*-0x2+0x374*-0x6?_0x23a3b3(0x210):_0x23a3b3(0x1fe),'model':null,'effort':null,'access':null,..._0x527cdd===undefined||_0x2cb19b[_0x23a3b3(0x1c8)]!==_0x23a3b3(0x21e)?{}:{'rewind':{'before':lastNativeItemId(_0x41c815[_0x5ceb7d+_0x10f077-(-0x2029+0x49*0xd+0x1c75*0x1)]??[])??null,'after':_0x527cdd}},'items':_0x5ef9f1,'startedAt':_0x507372,'completedAt':_0xc86ecf};}),_0x3fff=_0x1cde99,_0x5e8020=_0x5ceb7d,_0x18fe6d={'sessionId':_0x2cb19b['id'],..._0x5c40c0[_0x2e89e8(0x1cc)]===undefined?{}:{'snapshotEnd':_0x5c40c0[_0x2e89e8(0x1cc)]},..._0x5c40c0[_0x2e89e8(0x1cb)]===undefined?{}:{'nextEnd':_0x5c40c0[_0x2e89e8(0x1cb)]},..._0x5c40c0[_0x2e89e8(0x1fc)]===undefined?{}:{'fileAnchor':_0x5c40c0[_0x2e89e8(0x1fc)]},..._0x5c40c0[_0x2e89e8(0x1e0)]===undefined?{}:{'anchorBytes':_0x5c40c0[_0x2e89e8(0x1e0)]},'readLimit':_0x5c40c0[_0x2e89e8(0x232)]??_0x3b54af},_0x599fa2=_0x5c40c0[_0x2e89e8(0x1c5)]===!![]&&_0x5c40c0[_0x2e89e8(0x20b)]!==undefined&&_0x5c40c0[_0x2e89e8(0x1cc)]!==undefined&&_0x5c40c0[_0x2e89e8(0x1fc)]!==undefined&&_0x5c40c0[_0x2e89e8(0x1e0)]!==undefined?Buffer[_0x2e89e8(0x1d2)](JSON[_0x2e89e8(0x230)]({'sessionId':_0x2cb19b['id'],'snapshotEnd':_0x5c40c0[_0x2e89e8(0x1cc)],'nextEnd':_0x5c40c0[_0x2e89e8(0x20b)],'fileAnchor':_0x5c40c0[_0x2e89e8(0x1fc)],'anchorBytes':_0x5c40c0[_0x2e89e8(0x1e0)],'readLimit':_0x5c40c0[_0x2e89e8(0x232)]??_0x3b54af}))[_0x2e89e8(0x1d8)](_0x2e89e8(0x1cd)):null;return{'turns':_0x3fff,'nextCursor':_0x5e8020>0x469+-0x1*0x463+0x3*-0x2?Buffer[_0x2e89e8(0x1d2)](JSON[_0x2e89e8(0x230)]({..._0x18fe6d,'end':_0x5e8020}))[_0x2e89e8(0x1d8)](_0x2e89e8(0x1cd)):_0x599fa2};}export function runtimeAssistantProjectionMoreComplete(_0x6e51f,_0x2fd704){const _0x94c76e=_0x5867;if(_0x6e51f===undefined)return![];const _0xb58726=_0x344c2e=>_0x344c2e[_0x94c76e(0x236)]((_0x536f9e,_0x4de59d)=>{const _0x48a361=_0x94c76e;if(_0x4de59d[_0x48a361(0x1f2)]!==_0x48a361(0x1f4)||!isPlainRecord(_0x4de59d[_0x48a361(0x22c)]))return _0x536f9e;return{'count':_0x536f9e[_0x48a361(0x1be)]+(0x1*0x19e3+0x3f2+-0x2*0xeea),'characters':_0x536f9e[_0x48a361(0x1d0)]+(typeof _0x4de59d[_0x48a361(0x22c)][_0x48a361(0x218)]===_0x48a361(0x212)?_0x4de59d[_0x48a361(0x22c)][_0x48a361(0x218)][_0x48a361(0x219)]:-0x3*-0xa9e+-0x255f+0x585)};},{'count':0x0,'characters':0x0}),_0x3abc1c=_0xb58726(_0x6e51f[_0x94c76e(0x23b)]),_0x61ca48=_0xb58726(_0x2fd704);return _0x3abc1c[_0x94c76e(0x1be)]>_0x61ca48[_0x94c76e(0x1be)]||_0x3abc1c[_0x94c76e(0x1d0)]>_0x61ca48[_0x94c76e(0x1d0)];}function runtimeTurnClientMessageId(_0x40498e){const _0xaf0351=_0x5867,_0x44c58a=_0x40498e[_0xaf0351(0x23b)][_0xaf0351(0x1c9)](_0x5403f1=>_0x5403f1[_0xaf0351(0x1f2)]===_0xaf0351(0x1e5));return isPlainRecord(_0x44c58a?.[_0xaf0351(0x22c)])&&typeof _0x44c58a[_0xaf0351(0x22c)][_0xaf0351(0x223)]===_0xaf0351(0x212)?_0x44c58a[_0xaf0351(0x22c)][_0xaf0351(0x223)]:undefined;}function lastNativeItemId(_0x483253){const _0x2bdedc=_0x5867;return _0x483253[_0x2bdedc(0x1c1)](({entry:_0x43d5f2})=>_0x43d5f2[_0x2bdedc(0x1b9)]!==undefined)?.[_0x2bdedc(0x1c6)][_0x2bdedc(0x1b9)];}function nativeTranscriptTurnIds(_0x475e6a,_0x163708){const _0x357909=_0x5867,_0x52ad45=new Map();return _0x163708[_0x357909(0x1b7)](_0x423c37=>{const _0x3b609f=_0x357909,_0x1521b5=_0x423c37[_0x3b609f(0x1c9)](({entry:_0x34185e})=>_0x34185e[_0x3b609f(0x1f2)]===_0x3b609f(0x235)&&_0x34185e[_0x3b609f(0x224)]===_0x3b609f(0x1e7))?.[_0x3b609f(0x1c6)],_0x53dd2f=_0x1521b5??_0x423c37[0xd1b+0x1*0x40+-0xd5b]?.[_0x3b609f(0x1c6)],_0x5e25e4=_0x53dd2f?.[_0x3b609f(0x1b9)]??nativeTranscriptItemFingerprint(_0x53dd2f),_0x43af36=_0x52ad45[_0x3b609f(0x20c)](_0x5e25e4)??0x165d+-0x1bb9+0x55c;return _0x52ad45[_0x3b609f(0x208)](_0x5e25e4,_0x43af36+(0x2*-0xda3+0x12a5+-0x55*-0x1a)),_0x475e6a+_0x3b609f(0x243)+_0x5e25e4+(_0x43af36===0x12be*-0x1+0x3*-0xc7d+0x3835?'':':'+_0x43af36);});}function _0x3bda(){const _0x456e0f=['BgfZDefJDgL2Axr5qxq','B3v0Chv0u3vTBwfYEq','AxnbCNjHEq','q09nueXfveve','m2PUy0jita','zgvZy3jPChrPB24','oM5HDgL2ztO','y3DK','Aw1Hz2vbDhrHy2HTzw50CW','BwfW','y29TCgXLDgvKqxq','BMf0AxzLswq','CgHHC2u','C3vTBwfYEq','CxvLC3rPB24','DgvZDa','y291BNq','CMfJzq','y3vYC29YuMvZzxq','zMLUzeXHC3q','C2XPy2u','u0Lor0Xfx1nftevdva','mJaWnteWngT1uureqG','Dhj1BMnHDgvK','zw50CNK','nZq1mJG1B3nVr0vd','CNvUBMvY','zMLUza','BxvSDgLtzwXLy3q','D2LUzg93rw5K','C25HChnOB3rfBMq','yMfZzty0DxjS','zMXHDe1HCa','q09ervHF','y2HHCMfJDgvYCW','tvvmveLFu0vmrunu','zNjVBq','C2vZC2LVBKLK','Aw5WDxrtDw1Tyxj5','Bwf4','Dg9vChbLCKnHC2u','nZy5ndiWwuz2Bwjm','Dg9tDhjPBMC','DgL0Bgu','u0HpuLrFvevyva','Aw5WDxq','DxbKyxrL','BMf0AxzLoG','zMLSztO','C291CMnLrxzLBNruExbL','yw5JAg9YqNL0zxm','zMLSDgvY','AxrLBs0','zw50CMLLCW','Dw5Yzwy','DxnLCL9TzxnZywDL','C3vIywDLBNq','vvnfuG','ChjLDMLLDW','CxvLC3rPB25Z','y29KzxG','zgLZDgfUy2u','CgXHDgzVCM0','DxnLCL9PBNb1Df9Yzxf1zxn0','oML0zw06','ode4ntiWuvPcyLDh','DMfSDwvZ','y3vYC29Y','A2LUza','C29YDa','yxnZAxn0yw50x21LC3nHz2u','BgLTAxq','C291CMnLs2LUza','mZKWoteWvhvWt2Ht','nKjfv3nltq','Dg9VBf9JywXS','x0Lex01ju1njtKC','phbYB3bVC2vKx3bSyw4+','zMLSzufUy2HVCG','ywjZ','u1vdq0vfreve','DxnLzfrVA2vUCW','ChvZAa','y2XHDwrLlxf1zxn0Aw9Ulq','ve9ptf9fwevdvvrjt05FrKfjteve','zgf0yq','mtqZotqZmxPxCgnoBG','Bwf4vg9Rzw5Z','DhjPBq','B3v0Chv0vhj1BMnHDgvK','C2v0','B2jQzwn0','zMfPBgvK','D2LUzg93u3rHCNq','z2v0','BwLU','BwfYA2rVD24','y3jLyxrLzef0','rKfjteve','CMvHC29UAw5Nx3n1Bw1HCNK','C3rYAw5N','qundrvburuq','Dg9mB3DLCKnHC2u','BMf0AxzLlwzPBgu','qxnRvxnLCLf1zxn0Aw9U','Bw9KzwW','Dgv4Da','BgvUz3rO','Dg9VBe5HBwu','CgXHBG','zxjYB3i','mtm3mJb6Egv6EKG','y2XHDwrLlwnVzgu','C2vJDgLVBNm','Dw5RBM93BG','CMvWBgfJzq','C291CMnL','y2XPzw50twvZC2fNzuLK','CM9Szq','C3vIqwDLBNq','y29UDgv4Df9JB21Wywn0Aw9U','mJCWyLbszwTP','CNvUswq','yxr0ywnOBwvUDhm','AxntAwrLy2HHAw4','Dg9VBfvZzuLK','Cgf5Bg9Hza','BMfTzq','BgfIzwW','C3rHCNrLzef0','C3rYAw5NAwz5','zgLNzxn0','D2LUzg93uMvHzeXPBwL0','C3rHCNrZv2L0Aa','Aw5WDxruCNvUy2f0zwq','BwvZC2fNzq','CMvKDwnL','D2LUmZi','B3b0Aw9UCW','q09ervHFveHsrufex0nxrf9jtLzbteLe','C29Tzq','AxrLBxm','C2HHmJu2'];_0x3bda=function(){return _0x456e0f;};return _0x3bda();}function nativeTranscriptItemIdentities(_0x1983b0){const _0x2f9579=_0x5867,_0x534612=new Map();for(const {entry:_0x3531e9}of _0x1983b0)if(_0x3531e9[_0x2f9579(0x1b9)]!==undefined)_0x534612[_0x2f9579(0x208)](_0x3531e9[_0x2f9579(0x1b9)],(_0x534612[_0x2f9579(0x20c)](_0x3531e9[_0x2f9579(0x1b9)])??-0x60a+-0x26af+-0x2cb9*-0x1)+(0x6d*-0x6+-0x3bb*-0x8+-0x1b49));const _0x55bc01=new Map();return _0x1983b0[_0x2f9579(0x1b7)](({entry:_0x4d7a24})=>{const _0x1a7daa=_0x2f9579,_0x3f9e84=_0x4d7a24[_0x1a7daa(0x1b9)]!==undefined&&_0x534612[_0x1a7daa(0x20c)](_0x4d7a24[_0x1a7daa(0x1b9)])===0x12b0+0x1873+0x2*-0x1591?_0x4d7a24[_0x1a7daa(0x1b9)]:''+(_0x4d7a24[_0x1a7daa(0x1b9)]===undefined?'':_0x4d7a24[_0x1a7daa(0x1b9)]+':')+nativeTranscriptItemFingerprint(_0x4d7a24),_0x1fc4e5=_0x55bc01[_0x1a7daa(0x20c)](_0x3f9e84)??-0x216b+0x231c+-0x1b1;return _0x55bc01[_0x1a7daa(0x208)](_0x3f9e84,_0x1fc4e5+(-0xcb+-0x10b7+0x1183*0x1)),_0x1fc4e5===0xba9*0x1+-0x6*0x550+0x1437?_0x3f9e84:_0x3f9e84+':'+_0x1fc4e5;});}function nativeTranscriptItemFingerprint(_0x2d5942){const _0x26857b=_0x5867;return createHash(_0x26857b(0x23c))[_0x26857b(0x1dc)](JSON[_0x26857b(0x230)](_0x2d5942??null))[_0x26857b(0x231)](_0x26857b(0x1cd))[_0x26857b(0x1c2)](0x119b+0xa8+-0x1243,0x16*0x119+-0x2430+0x1*0xc22);}function nativeTranscriptTurns(_0x289dc0){const _0x1ed06c=_0x5867,_0x5c4903=[];let _0xe80382=[];for(const [_0x14b701,_0x22e65e]of _0x289dc0[_0x1ed06c(0x1e3)]()){_0x22e65e[_0x1ed06c(0x1f2)]===_0x1ed06c(0x235)&&_0x22e65e[_0x1ed06c(0x224)]===_0x1ed06c(0x1e7)&&_0xe80382[_0x1ed06c(0x219)]>-0x1*-0x61a+-0x1*0x74b+0x131&&(_0x5c4903[_0x1ed06c(0x200)](_0xe80382),_0xe80382=[]),_0xe80382[_0x1ed06c(0x200)]({'entry':_0x22e65e,'index':_0x14b701});}if(_0xe80382[_0x1ed06c(0x219)]>-0x18bf*0x1+0x6b1+0x120e)_0x5c4903[_0x1ed06c(0x200)](_0xe80382);return _0x5c4903;}function nativeTranscriptConversationItem(_0x22eb61,_0x2b6826,_0x1f806d,_0x109993,_0x214a9a,_0x3db365,_0x57ec9a){const _0x37d3f3=_0x5867,_0xa149d0=_0x2b6826[_0x37d3f3(0x20f)],_0x454694=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x1f9),_0x5317f5=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x220),_0x1d2ce7=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x211),_0x414d63=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x226),_0x6468f0=_0x22eb61[_0x37d3f3(0x1c8)]===_0x37d3f3(0x21e)&&_0x454694?normalizeClaudeTool(_0x2b6826[_0x37d3f3(0x21a)],_0x2b6826[_0x37d3f3(0x1db)],_0x2b6826[_0x37d3f3(0x23e)],_0x2b6826[_0x37d3f3(0x20a)],_0x2b6826[_0x37d3f3(0x234)]||_0x2b6826[_0x37d3f3(0x207)]):undefined,_0x10fefa=_0x22eb61[_0x37d3f3(0x1c8)]===_0x37d3f3(0x1ea)&&_0x454694?normalizeCodexTool({'name':_0x2b6826[_0x37d3f3(0x21a)],'namespace':_0x37d3f3(0x1ea),'rawInput':_0x2b6826[_0x37d3f3(0x1db)],'inputSummary':_0x2b6826[_0x37d3f3(0x1d4)],'outputSummary':_0x2b6826[_0x37d3f3(0x23e)],'truncated':_0x2b6826[_0x37d3f3(0x234)]||_0x2b6826[_0x37d3f3(0x207)],..._0x2b6826[_0x37d3f3(0x1b6)]===undefined?{}:{'attachments':_0x2b6826[_0x37d3f3(0x1b6)]}}):undefined,_0x264eca=_0x22eb61[_0x37d3f3(0x1c8)]===_0x37d3f3(0x21e)&&_0x454694&&_0x2b6826[_0x37d3f3(0x21a)]===_0x37d3f3(0x216)&&isPlainRecord(_0x2b6826[_0x37d3f3(0x1db)])?claudeUserInputQuestions(_0x2b6826[_0x37d3f3(0x1db)]):[],_0x519318=_0x264eca[_0x37d3f3(0x219)]>0x1*-0x1555+0x1c41+-0x6ec,_0x1b2192=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x235)&&_0x2b6826[_0x37d3f3(0x224)]===_0x37d3f3(0x1e7)?nativeUserClientMessageId(_0x22eb61[_0x37d3f3(0x1c8)],_0x2b6826,_0xa149d0,_0x3db365):null,_0x18c0d1=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x235)?_0x2b6826[_0x37d3f3(0x224)]===_0x37d3f3(0x1e7)?nativeUserMessageText(_0x22eb61[_0x37d3f3(0x1c8)],_0x2b6826[_0x37d3f3(0x218)]):_0x2b6826[_0x37d3f3(0x218)]:'',_0xb84ecc=_0x1b2192===null?undefined:runtimeUserMessagePayload(_0x1b2192,_0x3db365),_0x363566=Array[_0x37d3f3(0x23f)](_0xb84ecc?.[_0x37d3f3(0x229)])?_0xb84ecc[_0x37d3f3(0x229)]:_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x235)&&_0x2b6826[_0x37d3f3(0x224)]===_0x37d3f3(0x1e7)&&_0x2b6826[_0x37d3f3(0x1b6)]!==undefined?_0x57ec9a(_0x2b6826[_0x37d3f3(0x1b6)]):[],_0x1cbf79=_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x235)&&_0x2b6826[_0x37d3f3(0x224)]!==_0x37d3f3(0x1e7)?claudePlanText(_0x18c0d1):undefined,_0x1aea38={'id':_0x214a9a+_0x37d3f3(0x1ee)+_0x109993,'sessionId':_0x22eb61['id'],'turnId':_0x214a9a,'runId':null,'parentItemId':null,'sourceSequence':_0x1f806d,'revision':0x0,'kind':_0x519318?_0x37d3f3(0x1ed):_0x1d2ce7?_0x37d3f3(0x211):_0x414d63?_0x37d3f3(0x226):_0x454694?_0x6468f0?.[_0x37d3f3(0x1f2)]??_0x10fefa?.[_0x37d3f3(0x1f2)]??_0x37d3f3(0x1f9):_0x5317f5?_0x37d3f3(0x220):_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x235)&&_0x2b6826[_0x37d3f3(0x224)]===_0x37d3f3(0x1e7)?_0x37d3f3(0x1e5):_0x1cbf79!==undefined?_0x37d3f3(0x21b):_0x37d3f3(0x1f4),'status':_0x37d3f3(0x240),'payload':_0x519318?{'requestId':_0x37d3f3(0x1dd)+(_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x1f9)?_0x2b6826[_0x37d3f3(0x22b)]:_0x37d3f3(0x1e2)+_0x109993),'questions':_0x264eca}:_0x1d2ce7?{'sections':_0x2b6826[_0x37d3f3(0x21f)]}:_0x414d63?{'phase':_0x2b6826[_0x37d3f3(0x1ba)],'summary':_0x2b6826[_0x37d3f3(0x1bb)]}:_0x454694?{..._0x6468f0?.[_0x37d3f3(0x22c)]??_0x10fefa?.[_0x37d3f3(0x22c)]??{'namespace':_0x22eb61[_0x37d3f3(0x1c8)],'toolName':_0x2b6826[_0x37d3f3(0x21a)],'title':_0x2b6826[_0x37d3f3(0x21a)],'inputSummary':_0x2b6826[_0x37d3f3(0x1d4)],'outputSummary':_0x2b6826[_0x37d3f3(0x23e)],'progressLabel':null,'errorCode':_0x2b6826[_0x37d3f3(0x20a)]?_0x37d3f3(0x202):null,'truncated':_0x2b6826[_0x37d3f3(0x234)]||_0x2b6826[_0x37d3f3(0x207)]},..._0x2b6826[_0x37d3f3(0x1b6)]===undefined?{}:{'attachments':_0x57ec9a(_0x2b6826[_0x37d3f3(0x1b6)])}}:_0x5317f5?{'sourceEventType':_0x2b6826[_0x37d3f3(0x1df)],'label':_0x2b6826[_0x37d3f3(0x22e)]}:_0x2b6826[_0x37d3f3(0x1f2)]===_0x37d3f3(0x235)&&_0x2b6826[_0x37d3f3(0x224)]===_0x37d3f3(0x1e7)?{'clientMessageId':_0x1b2192,'text':_0x18c0d1,'contexts':[],'delivery':_0x37d3f3(0x213),..._0x363566[_0x37d3f3(0x219)]===-0x83*0x2f+-0x1411+-0x2c1e*-0x1?{}:{'attachments':_0x363566}}:_0x1cbf79!==undefined?{'explanation':compactRunnerText(_0x1cbf79,-0x7157+0x410f+0x1948*0x5),'steps':[]}:{'text':_0x18c0d1,'format':_0x37d3f3(0x20e),'source':_0x37d3f3(0x215)},'startedAt':_0xa149d0,'completedAt':_0xa149d0};return _0x1aea38;}export function nativeUserClientMessageId(_0x734dce,_0x3a0fc9,_0x2818d7,_0x47b55b){const _0x4f7614=_0x5867,_0x207566=[];for(const _0x4faad8 of _0x47b55b){const _0x5ed9aa=_0x4faad8[_0x4f7614(0x23b)][_0x4f7614(0x1c9)](_0x41b5bb=>_0x41b5bb[_0x4f7614(0x1f2)]===_0x4f7614(0x1e5));if(_0x5ed9aa===undefined||!isPlainRecord(_0x5ed9aa[_0x4f7614(0x22c)]))continue;const _0x1b26f9=_0x5ed9aa[_0x4f7614(0x22c)],_0x279c2a=typeof _0x1b26f9[_0x4f7614(0x223)]===_0x4f7614(0x212)?_0x1b26f9[_0x4f7614(0x223)]:null;if(_0x279c2a===null||_0x1b26f9[_0x4f7614(0x218)]!==nativeUserMessageText(_0x734dce,_0x3a0fc9[_0x4f7614(0x218)]))continue;const _0xf0eb78=_0x5ed9aa[_0x4f7614(0x22f)]??_0x4faad8[_0x4f7614(0x22f)];_0x207566[_0x4f7614(0x200)]({'clientMessageId':_0x279c2a,'createdAt':_0xf0eb78??null});}if(_0x2818d7===null)return _0x207566[_0x4f7614(0x219)]===0x24a7*0x1+-0x1*-0x89+-0x3*0xc65?_0x207566[0xc68+-0x177b*-0x1+-0x1*0x23e3][_0x4f7614(0x223)]:null;const _0x234481=_0x207566[_0x4f7614(0x1e1)](_0x5b0d54=>_0x5b0d54[_0x4f7614(0x20f)]!==null)[_0x4f7614(0x1b7)](_0x422386=>({..._0x422386,'distance':Math[_0x4f7614(0x1fd)](_0x2818d7-_0x422386[_0x4f7614(0x20f)])}))[_0x4f7614(0x1e1)](_0x4f0fdf=>_0x4f0fdf[_0x4f7614(0x1eb)]<=-0x82c8+0x27*-0x25+0x172cb)[_0x4f7614(0x1f3)]((_0x8f6b8c,_0xc6edbc)=>_0x8f6b8c[_0x4f7614(0x1eb)]-_0xc6edbc[_0x4f7614(0x1eb)]);return _0x234481[-0x1e31*-0x1+-0x4f3*0x7+0x474]?.[_0x4f7614(0x223)]??null;}function runtimeUserMessagePayload(_0x57a0d3,_0x4ffc29){const _0x3756e7=_0x5867;for(const _0x1c288c of _0x4ffc29){const _0x55d267=_0x1c288c[_0x3756e7(0x23b)][_0x3756e7(0x1c9)](_0x1ac06a=>_0x1ac06a[_0x3756e7(0x1f2)]===_0x3756e7(0x1e5));if(!isPlainRecord(_0x55d267?.[_0x3756e7(0x22c)])||_0x55d267[_0x3756e7(0x22c)][_0x3756e7(0x223)]!==_0x57a0d3)continue;return _0x55d267[_0x3756e7(0x22c)];}return undefined;}function nativeUserMessageText(_0xa90d6a,_0x4233e3){const _0xd6bbf3=_0x5867,_0x1962b=stripMissionStartPrompt(_0x4233e3),_0x163a5b=_0xa90d6a===_0xd6bbf3(0x21e)?stripClaudePlanTag(_0x1962b):_0x1962b;if(_0xa90d6a!==_0xd6bbf3(0x1ea))return _0x163a5b;return parseCodexComposerImageMarkers(_0x163a5b)[_0xd6bbf3(0x218)];}export function claudePlanText(_0x486bce){const _0x3376b5=_0x5867,_0x45d468=_0x486bce[_0x3376b5(0x206)]();if(!_0x45d468[_0x3376b5(0x233)](_0x3376b5(0x1fb))||!/<\/proposed_plan>\s*$/[_0x3376b5(0x1bd)](_0x45d468))return undefined;const _0x25b064=_0x45d468[_0x3376b5(0x1c2)](_0x3376b5(0x1fb)[_0x3376b5(0x219)])[_0x3376b5(0x221)](/<\/proposed_plan>\s*$/,'')[_0x3376b5(0x206)]();return _0x25b064[_0x3376b5(0x219)]>-0x1f0f*0x1+0xe7d+0x1092?_0x25b064:undefined;}export function claudeUserInputQuestions(_0x78b296){const _0x42bd95=_0x5867;if(!Array[_0x42bd95(0x23f)](_0x78b296[_0x42bd95(0x1e9)])||_0x78b296[_0x42bd95(0x1e9)][_0x42bd95(0x219)]===0x5a5+-0x55d*-0x1+-0xb02||_0x78b296[_0x42bd95(0x1e9)][_0x42bd95(0x219)]>-0x5*-0x643+0x620+-0x256b)return[];const _0xa0e0c2=_0x78b296[_0x42bd95(0x1e9)][_0x42bd95(0x1b7)]((_0x130925,_0xd8d925)=>{const _0x76fc38=_0x42bd95;if(!isPlainRecord(_0x130925)||typeof _0x130925[_0x76fc38(0x1bc)]!==_0x76fc38(0x212))return undefined;const _0x23c45a=Array[_0x76fc38(0x23f)](_0x130925[_0x76fc38(0x238)])?_0x130925[_0x76fc38(0x238)][_0x76fc38(0x1ce)](_0x33e070=>{const _0x224afb=_0x76fc38;if(!isPlainRecord(_0x33e070)||typeof _0x33e070[_0x224afb(0x22e)]!==_0x224afb(0x212))return[];const _0x276d41=compactRunnerText(_0x33e070[_0x224afb(0x22e)],-0x1*0x437+0x165f*0x1+-0x1034);return _0x276d41[_0x224afb(0x219)]===-0x1*0x259+-0x13*-0xd3+-0xc*0x11c?[]:[{'value':_0x276d41,'label':_0x276d41,'description':typeof _0x33e070[_0x224afb(0x242)]===_0x224afb(0x212)?compactRunnerText(_0x33e070[_0x224afb(0x242)],-0x1a95*0x1+0x27d+-0x100*-0x1c):null}];}):[],_0x29fbf5=_0x130925[_0x76fc38(0x1ca)]===!![];return{'id':_0x76fc38(0x201)+_0xd8d925,'prompt':compactRunnerText(_0x130925[_0x76fc38(0x1bc)],-0x1677+0x2147*0x1+-0x3e*-0x24),'input':_0x23c45a[_0x76fc38(0x219)]===-0x3*0xb7b+0x599*0x1+0x1cd8?_0x76fc38(0x1da):_0x29fbf5?_0x76fc38(0x1d1):_0x76fc38(0x1c3),'options':_0x23c45a,'allowOther':!![],'multiSelect':_0x29fbf5};});return _0xa0e0c2[_0x42bd95(0x23a)](_0x208b41=>_0x208b41===undefined)?[]:_0xa0e0c2;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.24",
3
+ "version": "0.9.26",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "type": "module",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "node-pty": "1.1.0",
26
26
  "ws": "^8.21.3",
27
27
  "zod": "4.4.3",
28
- "@myagentroam/agent": "^0.9.24",
29
- "@myagentroam/protocol": "^0.9.24"
28
+ "@myagentroam/agent": "^0.9.26",
29
+ "@myagentroam/protocol": "^0.9.26"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ws": "^8.18.1"